up
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import{I as e,N as t,V as n,w as r,yt as i}from"./client-BPUTdqiR.js";import{G as a,H as o,I as s,L as c,M as l,N as u,V as d,W as f,o as p,q as m,r as h,t as g}from"./light-CAboqKml.js";import{r as _}from"./css-DEmdllcC.js";import{a as v,r as y}from"./resolve-slot-CvI9c3sm.js";import{B as b,E as x,F as S,L as C,P as w,R as T,T as E,U as D,z as O}from"./index-VWZDnxHd.js";function k(e){let{lineHeight:t,borderRadius:n,fontWeightStrong:r,baseColor:i,dividerColor:a,actionColor:o,textColor1:l,textColor2:u,closeColorHover:d,closeColorPressed:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,infoColor:g,successColor:_,warningColor:v,errorColor:y,fontSize:b}=e;return Object.assign(Object.assign({},x),{fontSize:b,lineHeight:t,titleFontWeight:r,borderRadius:n,border:`1px solid ${a}`,color:o,titleTextColor:l,iconColor:u,contentTextColor:u,closeBorderRadius:n,closeColorHover:d,closeColorPressed:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,borderInfo:`1px solid ${c(i,s(g,{alpha:.25}))}`,colorInfo:c(i,s(g,{alpha:.08})),titleTextColorInfo:l,iconColorInfo:g,contentTextColorInfo:u,closeColorHoverInfo:d,closeColorPressedInfo:f,closeIconColorInfo:p,closeIconColorHoverInfo:m,closeIconColorPressedInfo:h,borderSuccess:`1px solid ${c(i,s(_,{alpha:.25}))}`,colorSuccess:c(i,s(_,{alpha:.08})),titleTextColorSuccess:l,iconColorSuccess:_,contentTextColorSuccess:u,closeColorHoverSuccess:d,closeColorPressedSuccess:f,closeIconColorSuccess:p,closeIconColorHoverSuccess:m,closeIconColorPressedSuccess:h,borderWarning:`1px solid ${c(i,s(v,{alpha:.33}))}`,colorWarning:c(i,s(v,{alpha:.08})),titleTextColorWarning:l,iconColorWarning:v,contentTextColorWarning:u,closeColorHoverWarning:d,closeColorPressedWarning:f,closeIconColorWarning:p,closeIconColorHoverWarning:m,closeIconColorPressedWarning:h,borderError:`1px solid ${c(i,s(y,{alpha:.25}))}`,colorError:c(i,s(y,{alpha:.08})),titleTextColorError:l,iconColorError:y,contentTextColorError:u,closeColorHoverError:d,closeColorPressedError:f,closeIconColorError:p,closeIconColorHoverError:m,closeIconColorPressedError:h})}var A={name:`Alert`,common:g,self:k},j=o(`alert`,`
|
import{I as e,N as t,V as n,w as r,yt as i}from"./client-BPUTdqiR.js";import{G as a,H as o,I as s,L as c,M as l,N as u,V as d,W as f,o as p,q as m,r as h,t as g}from"./light-CAboqKml.js";import{r as _}from"./css-DEmdllcC.js";import{a as v,r as y}from"./resolve-slot-CvI9c3sm.js";import{B as b,E as x,F as S,L as C,P as w,R as T,T as E,U as D,z as O}from"./index-nLpziLPJ.js";function k(e){let{lineHeight:t,borderRadius:n,fontWeightStrong:r,baseColor:i,dividerColor:a,actionColor:o,textColor1:l,textColor2:u,closeColorHover:d,closeColorPressed:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,infoColor:g,successColor:_,warningColor:v,errorColor:y,fontSize:b}=e;return Object.assign(Object.assign({},x),{fontSize:b,lineHeight:t,titleFontWeight:r,borderRadius:n,border:`1px solid ${a}`,color:o,titleTextColor:l,iconColor:u,contentTextColor:u,closeBorderRadius:n,closeColorHover:d,closeColorPressed:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,borderInfo:`1px solid ${c(i,s(g,{alpha:.25}))}`,colorInfo:c(i,s(g,{alpha:.08})),titleTextColorInfo:l,iconColorInfo:g,contentTextColorInfo:u,closeColorHoverInfo:d,closeColorPressedInfo:f,closeIconColorInfo:p,closeIconColorHoverInfo:m,closeIconColorPressedInfo:h,borderSuccess:`1px solid ${c(i,s(_,{alpha:.25}))}`,colorSuccess:c(i,s(_,{alpha:.08})),titleTextColorSuccess:l,iconColorSuccess:_,contentTextColorSuccess:u,closeColorHoverSuccess:d,closeColorPressedSuccess:f,closeIconColorSuccess:p,closeIconColorHoverSuccess:m,closeIconColorPressedSuccess:h,borderWarning:`1px solid ${c(i,s(v,{alpha:.33}))}`,colorWarning:c(i,s(v,{alpha:.08})),titleTextColorWarning:l,iconColorWarning:v,contentTextColorWarning:u,closeColorHoverWarning:d,closeColorPressedWarning:f,closeIconColorWarning:p,closeIconColorHoverWarning:m,closeIconColorPressedWarning:h,borderError:`1px solid ${c(i,s(y,{alpha:.25}))}`,colorError:c(i,s(y,{alpha:.08})),titleTextColorError:l,iconColorError:y,contentTextColorError:u,closeColorHoverError:d,closeColorPressedError:f,closeIconColorError:p,closeIconColorHoverError:m,closeIconColorPressedError:h})}var A={name:`Alert`,common:g,self:k},j=o(`alert`,`
|
||||||
line-height: var(--n-line-height);
|
line-height: var(--n-line-height);
|
||||||
border-radius: var(--n-border-radius);
|
border-radius: var(--n-border-radius);
|
||||||
position: relative;
|
position: relative;
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import{G as e,H as t,I as n,N as r,R as i,St as a,m as o,w as s,yt as c}from"./client-BPUTdqiR.js";import{G as l,H as u,I as d,K as f,L as p,M as m,N as h,V as g,W as _,a as v,i as y,o as b,q as x,r as S}from"./light-CAboqKml.js";import{i as C,n as w,r as T}from"./use-form-item-CmxopeL6.js";import{a as E,n as D}from"./resolve-slot-CvI9c3sm.js";import{H as O,I as k,M as A,P as j,S as M,X as N}from"./index-VWZDnxHd.js";var P=typeof document<`u`&&typeof window<`u`,{cubicBezierEaseInOut:F}=v;function I({duration:e=`.2s`,delay:t=`.1s`}={}){return[g(`&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to`,{opacity:1}),g(`&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from`,`
|
import{G as e,H as t,I as n,N as r,R as i,St as a,m as o,w as s,yt as c}from"./client-BPUTdqiR.js";import{G as l,H as u,I as d,K as f,L as p,M as m,N as h,V as g,W as _,a as v,i as y,o as b,q as x,r as S}from"./light-CAboqKml.js";import{i as C,n as w,r as T}from"./use-form-item-CmxopeL6.js";import{a as E,n as D}from"./resolve-slot-CvI9c3sm.js";import{H as O,I as k,M as A,P as j,S as M,X as N}from"./index-nLpziLPJ.js";var P=typeof document<`u`&&typeof window<`u`,{cubicBezierEaseInOut:F}=v;function I({duration:e=`.2s`,delay:t=`.1s`}={}){return[g(`&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to`,{opacity:1}),g(`&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from`,`
|
||||||
opacity: 0!important;
|
opacity: 0!important;
|
||||||
margin-left: 0!important;
|
margin-left: 0!important;
|
||||||
margin-right: 0!important;
|
margin-right: 0!important;
|
||||||
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
@@ -1 +1 @@
|
|||||||
import{D as e,E as t,Ht as n,M as r,N as i,O as a,Q as o,T as s,Vt as c,X as l,ct as u,j as d,u as f,wt as p,y as m,yt as h}from"./client-BPUTdqiR.js";import{t as g}from"./Tag-BmMTkV6i.js";import{n as _}from"./es-J9wUC8h3.js";import{t as v}from"./Rate-DRwjV1H3.js";import{t as y}from"./HeaderMenu-BJM4gJY8.js";import{t as b}from"./_plugin-vue_export-helper-BDNMzG2s.js";var x={class:`center-block-custom`},S={class:`width1200 display-table catalog-grid`},C=[`onClick`],w={class:`scenario-content-block`},T={class:`scenario-title`},E={class:`scenario-description`},D={class:`scenario-rating`},O={key:1},k={key:2},A={key:0,class:`scenario-difficulty`},j={class:`scenario-label`},M=b(i({__name:`CatalogPage`,setup(i){let b=_(),M=h([]),N=f();async function P(){M.value=[];let e=await b.GetScenariosCatalog({});M.value=e.scenarios}async function F(e){N.push(`/scenarios/`+e)}return P(),(i,f)=>(l(),a(m,null,[s(`div`,x,[s(`div`,S,[(l(!0),a(m,null,o(M.value,i=>(l(),a(`div`,{class:`scenario-block`,onClick:e=>F(i.ID),key:i.ID},[s(`div`,{class:`scenario-image-block scenario-image`,style:c({backgroundImage:`url(${i.image})`})},null,4),s(`div`,w,[s(`p`,T,n(i.name),1),s(`p`,E,n(i.description),1),s(`div`,D,[i.reviewsCount?(l(),t(p(v),{key:0,value:i.averageRating,readonly:``,"allow-half":``,size:`small`},null,8,[`value`])):e(``,!0),i.reviewsCount?(l(),a(`span`,O,n(i.averageRating?.toFixed(1))+` · `+n(i.reviewsCount),1)):(l(),a(`span`,k,`Пока нет оценок`))]),i.difficulty?(l(),a(`div`,A,`Сложность: `+n(i.difficulty),1)):e(``,!0),s(`p`,j,[r(p(g),{bordered:!1,type:`success`,class:`status-block`},{default:u(()=>[d(`Автор: `+n(i.author?.username),1)]),_:2},1024)])])],8,C))),128))])]),r(y,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-935ff4be`]]),N=i({__name:`CatalogView`,setup(e){return(e,n)=>(l(),t(M))}});export{N as default};
|
import{D as e,E as t,Ht as n,M as r,N as i,O as a,Q as o,T as s,Vt as c,X as l,ct as u,j as d,u as f,wt as p,y as m,yt as h}from"./client-BPUTdqiR.js";import{t as g}from"./Tag-hAgKWzfN.js";import{n as _}from"./es-DTK0M7rh.js";import{t as v}from"./Rate-x28u4Ls_.js";import{t as y}from"./HeaderMenu-BFFUwaVE.js";import{t as b}from"./_plugin-vue_export-helper-BDNMzG2s.js";var x={class:`center-block-custom`},S={class:`width1200 display-table catalog-grid`},C=[`onClick`],w={class:`scenario-content-block`},T={class:`scenario-title`},E={class:`scenario-description`},D={class:`scenario-rating`},O={key:1},k={key:2},A={key:0,class:`scenario-difficulty`},j={class:`scenario-label`},M=b(i({__name:`CatalogPage`,setup(i){let b=_(),M=h([]),N=f();async function P(){M.value=[];let e=await b.GetScenariosCatalog({});M.value=e.scenarios}async function F(e){N.push(`/scenarios/`+e)}return P(),(i,f)=>(l(),a(m,null,[s(`div`,x,[s(`div`,S,[(l(!0),a(m,null,o(M.value,i=>(l(),a(`div`,{class:`scenario-block`,onClick:e=>F(i.ID),key:i.ID},[s(`div`,{class:`scenario-image-block scenario-image`,style:c({backgroundImage:`url(${i.image})`})},null,4),s(`div`,w,[s(`p`,T,n(i.name),1),s(`p`,E,n(i.description),1),s(`div`,D,[i.reviewsCount?(l(),t(p(v),{key:0,value:i.averageRating,readonly:``,"allow-half":``,size:`small`},null,8,[`value`])):e(``,!0),i.reviewsCount?(l(),a(`span`,O,n(i.averageRating?.toFixed(1))+` · `+n(i.reviewsCount),1)):(l(),a(`span`,k,`Пока нет оценок`))]),i.difficulty?(l(),a(`div`,A,`Сложность: `+n(i.difficulty),1)):e(``,!0),s(`p`,j,[r(p(g),{bordered:!1,type:`success`,class:`status-block`},{default:u(()=>[d(`Автор: `+n(i.author?.username),1)]),_:2},1024)])])],8,C))),128))])]),r(y,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-935ff4be`]]),N=i({__name:`CatalogView`,setup(e){return(e,n)=>(l(),t(M))}});export{N as default};
|
||||||
Vendored
+1
-1
@@ -1 +1 @@
|
|||||||
import{M as e,N as t,O as n,X as r,y as i}from"./client-BPUTdqiR.js";import{t as a}from"./DocsPage-C7Ksq7hj.js";import{t as o}from"./HeaderMenu-BJM4gJY8.js";var s=t({__name:`ConsentView`,setup(t){return(t,s)=>(r(),n(i,null,[e(a,{kind:`consent`}),e(o)],64))}});export{s as default};
|
import{M as e,N as t,O as n,X as r,y as i}from"./client-BPUTdqiR.js";import{t as a}from"./DocsPage-COOpxzD-.js";import{t as o}from"./HeaderMenu-BFFUwaVE.js";var s=t({__name:`ConsentView`,setup(t){return(t,s)=>(r(),n(i,null,[e(a,{kind:`consent`}),e(o)],64))}});export{s as default};
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import{E as e,Ht as t,I as n,M as r,N as i,O as a,T as o,X as s,a as c,ct as l,j as u,q as d,st as f,w as p,wt as m,yt as h}from"./client-BPUTdqiR.js";import{G as g,H as _,M as v,N as y,V as b,q as x,r as S}from"./light-CAboqKml.js";import{i as C}from"./css-DEmdllcC.js";import{t as w}from"./use-compitable-XUeenQPv.js";import{t as T}from"./fade-in.cssr-DXj7wP5I.js";import{t as E}from"./Alert-CkWUwIuR.js";import{n as D}from"./es-J9wUC8h3.js";import{M as O,N as k,Q as A,s as j}from"./index-VWZDnxHd.js";import{t as M}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as N}from"./HeaderText-CmFTPxk6.js";var P=b([b(`@keyframes spin-rotate`,`
|
import{E as e,Ht as t,I as n,M as r,N as i,O as a,T as o,X as s,a as c,ct as l,j as u,q as d,st as f,w as p,wt as m,yt as h}from"./client-BPUTdqiR.js";import{G as g,H as _,M as v,N as y,V as b,q as x,r as S}from"./light-CAboqKml.js";import{i as C}from"./css-DEmdllcC.js";import{t as w}from"./use-compitable-XUeenQPv.js";import{t as T}from"./fade-in.cssr-DXj7wP5I.js";import{t as E}from"./Alert-KJbToddT.js";import{n as D}from"./es-DTK0M7rh.js";import{M as O,N as k,Q as A,s as j}from"./index-nLpziLPJ.js";import{t as M}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as N}from"./HeaderText-CmFTPxk6.js";var P=b([b(`@keyframes spin-rotate`,`
|
||||||
from {
|
from {
|
||||||
transform: rotate(0);
|
transform: rotate(0);
|
||||||
}
|
}
|
||||||
+1
-1
@@ -1 +1 @@
|
|||||||
import{I as e,N as t,w as n}from"./client-BPUTdqiR.js";import{N as r,o as i,q as a,r as o}from"./light-CAboqKml.js";import{n as s,t as c}from"./css-DEmdllcC.js";import{t as l}from"./flatten-ToATH0lz.js";import{t as u}from"./get-slot-6kXJmSMP.js";import{u as d}from"./index-VWZDnxHd.js";function f(){return d}var p={name:`Flex`,self:f},m=t({name:`Flex`,props:Object.assign(Object.assign({},o.props),{align:String,justify:{type:String,default:`start`},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:`medium`},wrap:{type:Boolean,default:!0}}),setup(e){let{mergedClsPrefixRef:t,mergedRtlRef:l}=r(e),u=o(`Flex`,`-flex`,void 0,p,e,t);return{rtlEnabled:i(`Flex`,l,t),mergedClsPrefix:t,margin:n(()=>{let{size:t}=e;if(Array.isArray(t))return{horizontal:t[0],vertical:t[1]};if(typeof t==`number`)return{horizontal:t,vertical:t};let{self:{[a(`gap`,t)]:n}}=u.value,{row:r,col:i}=s(n);return{horizontal:c(i),vertical:c(r)}})}},render(){let{vertical:t,reverse:n,align:r,inline:i,justify:a,margin:o,wrap:s,mergedClsPrefix:c,rtlEnabled:d}=this,f=l(u(this),!1);return f.length?e(`div`,{role:`none`,class:[`${c}-flex`,d&&`${c}-flex--rtl`],style:{display:i?`inline-flex`:`flex`,flexDirection:t&&!n?`column`:t&&n?`column-reverse`:!t&&n?`row-reverse`:`row`,justifyContent:a,flexWrap:!s||t?`nowrap`:`wrap`,alignItems:r,gap:`${o.vertical}px ${o.horizontal}px`}},f):null}});export{m as t};
|
import{I as e,N as t,w as n}from"./client-BPUTdqiR.js";import{N as r,o as i,q as a,r as o}from"./light-CAboqKml.js";import{n as s,t as c}from"./css-DEmdllcC.js";import{t as l}from"./flatten-ToATH0lz.js";import{t as u}from"./get-slot-6kXJmSMP.js";import{u as d}from"./index-nLpziLPJ.js";function f(){return d}var p={name:`Flex`,self:f},m=t({name:`Flex`,props:Object.assign(Object.assign({},o.props),{align:String,justify:{type:String,default:`start`},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:`medium`},wrap:{type:Boolean,default:!0}}),setup(e){let{mergedClsPrefixRef:t,mergedRtlRef:l}=r(e),u=o(`Flex`,`-flex`,void 0,p,e,t);return{rtlEnabled:i(`Flex`,l,t),mergedClsPrefix:t,margin:n(()=>{let{size:t}=e;if(Array.isArray(t))return{horizontal:t[0],vertical:t[1]};if(typeof t==`number`)return{horizontal:t,vertical:t};let{self:{[a(`gap`,t)]:n}}=u.value,{row:r,col:i}=s(n);return{horizontal:c(i),vertical:c(r)}})}},render(){let{vertical:t,reverse:n,align:r,inline:i,justify:a,margin:o,wrap:s,mergedClsPrefix:c,rtlEnabled:d}=this,f=l(u(this),!1);return f.length?e(`div`,{role:`none`,class:[`${c}-flex`,d&&`${c}-flex--rtl`],style:{display:i?`inline-flex`:`flex`,flexDirection:t&&!n?`column`:t&&n?`column-reverse`:!t&&n?`row-reverse`:`row`,justifyContent:a,flexWrap:!s||t?`nowrap`:`wrap`,alignItems:r,gap:`${o.vertical}px ${o.horizontal}px`}},f):null}});export{m as t};
|
||||||
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+7
File diff suppressed because one or more lines are too long
-7
File diff suppressed because one or more lines are too long
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
|||||||
import{Bt as e,D as t,M as n,N as r,O as i,T as a,X as o,ct as s,u as c,wt as l,yt as u}from"./client-BPUTdqiR.js";import{n as d,r as f,t as p}from"./es-J9wUC8h3.js";import{t as m}from"./index-VWZDnxHd.js";import{t as h}from"./_plugin-vue_export-helper-BDNMzG2s.js";var g={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},_=r({name:`MenuOutlined`,render:function(e,t){return o(),i(`svg`,g,t[0]||=[a(`path`,{d:`M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z`,fill:`currentColor`},null,-1)])}}),v={class:`menu-block`},y=[`aria-expanded`,`aria-label`],b={class:`right-group`},x=h(r({__name:`HeaderMenu`,props:{active:{}},setup(r){let h=r,g=m(),x=c(),S=d(),C=f(),w=u([]);async function T(){w.value=[];try{let e=await S.GetPermissions({});w.value=e.permissions||[]}catch(e){C.error(`Не удалось загрузить права доступа`),console.error(`Failed to load permissions:`,e)}}T();function E(e){return w.value.includes(e)}let D=()=>{x.push(`/login`)},O=()=>{g.logout(),x.push(`/login`)},k=u(!1);return(r,c)=>(o(),i(`div`,v,[a(`button`,{type:`button`,class:`burger-button`,"aria-expanded":k.value,"aria-label":k.value?`Закрыть меню`:`Открыть меню`,onClick:c[0]||=e=>k.value=!k.value},[n(l(p),{class:`burger-icon`,size:`28`},{default:s(()=>[n(l(_))]),_:1})],8,y),a(`div`,{class:e([`left-group menu-buttons-block`,k.value?``:`menu-buttons-block-active`])},[a(`button`,{type:`button`,class:e([`menu-item-block`,{active:h.active==`main`}]),onClick:c[1]||=e=>l(x).push(`/`)},` Главная `,2),l(g).hasRole(`user`)?(o(),i(`button`,{key:0,type:`button`,class:e([`menu-item-block`,{active:h.active==`office`}]),onClick:c[2]||=e=>l(x).push(`/office`)},` Кабинет `,2)):t(``,!0),E(`games_page`)?(o(),i(`button`,{key:1,type:`button`,class:e([`menu-item-block`,{active:h.active==`games`}]),onClick:c[3]||=e=>l(x).push(`/games`)},` Игры `,2)):t(``,!0),a(`button`,{type:`button`,class:`menu-item-block`,onClick:c[4]||=e=>l(x).push(`/screen`)},` Экран `),a(`button`,{type:`button`,class:e([`menu-item-block`,{active:h.active==`catalog`}]),onClick:c[5]||=e=>l(x).push(`/catalog`)},` Каталог `,2),E(`scenarios_page`)?(o(),i(`button`,{key:2,type:`button`,class:e([`menu-item-block`,{active:h.active==`scenarios`}]),onClick:c[6]||=e=>l(x).push(`/scenarios`)},` Сценарии `,2)):t(``,!0),E(`users_page`)?(o(),i(`button`,{key:3,type:`button`,class:e([`menu-item-block`,{active:h.active==`users`}]),onClick:c[7]||=e=>l(x).push(`/users`)},` Пользователи `,2)):t(``,!0),E(`reviews_page`)?(o(),i(`button`,{key:4,type:`button`,class:e([`menu-item-block`,{active:h.active==`reviews`}]),onClick:c[8]||=e=>l(x).push(`/reviews`)},` Отзывы `,2)):t(``,!0)],2),a(`div`,b,[l(g).isAuthenticated?t(``,!0):(o(),i(`button`,{key:0,type:`button`,class:`menu-item-block right`,onClick:D},` Войти `)),l(g).isAuthenticated?(o(),i(`button`,{key:1,type:`button`,class:`menu-item-block right`,onClick:O},` Выйти `)):t(``,!0)])]))}}),[[`__scopeId`,`data-v-de69fe07`]]);export{x as t};
|
import{Bt as e,D as t,M as n,N as r,O as i,T as a,X as o,ct as s,u as c,wt as l,yt as u}from"./client-BPUTdqiR.js";import{n as d,r as f,t as p}from"./es-DTK0M7rh.js";import{t as m}from"./index-nLpziLPJ.js";import{t as h}from"./_plugin-vue_export-helper-BDNMzG2s.js";var g={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},_=r({name:`MenuOutlined`,render:function(e,t){return o(),i(`svg`,g,t[0]||=[a(`path`,{d:`M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z`,fill:`currentColor`},null,-1)])}}),v={class:`menu-block`},y=[`aria-expanded`,`aria-label`],b={class:`right-group`},x=h(r({__name:`HeaderMenu`,props:{active:{}},setup(r){let h=r,g=m(),x=c(),S=d(),C=f(),w=u([]);async function T(){w.value=[];try{let e=await S.GetPermissions({});w.value=e.permissions||[]}catch(e){C.error(`Не удалось загрузить права доступа`),console.error(`Failed to load permissions:`,e)}}T();function E(e){return w.value.includes(e)}let D=()=>{x.push(`/login`)},O=()=>{g.logout(),x.push(`/login`)},k=u(!1);return(r,c)=>(o(),i(`div`,v,[a(`button`,{type:`button`,class:`burger-button`,"aria-expanded":k.value,"aria-label":k.value?`Закрыть меню`:`Открыть меню`,onClick:c[0]||=e=>k.value=!k.value},[n(l(p),{class:`burger-icon`,size:`28`},{default:s(()=>[n(l(_))]),_:1})],8,y),a(`div`,{class:e([`left-group menu-buttons-block`,k.value?``:`menu-buttons-block-active`])},[a(`button`,{type:`button`,class:e([`menu-item-block`,{active:h.active==`main`}]),onClick:c[1]||=e=>l(x).push(`/`)},` Главная `,2),l(g).hasRole(`user`)?(o(),i(`button`,{key:0,type:`button`,class:e([`menu-item-block`,{active:h.active==`office`}]),onClick:c[2]||=e=>l(x).push(`/office`)},` Кабинет `,2)):t(``,!0),E(`games_page`)?(o(),i(`button`,{key:1,type:`button`,class:e([`menu-item-block`,{active:h.active==`games`}]),onClick:c[3]||=e=>l(x).push(`/games`)},` Игры `,2)):t(``,!0),a(`button`,{type:`button`,class:`menu-item-block`,onClick:c[4]||=e=>l(x).push(`/screen`)},` Экран `),a(`button`,{type:`button`,class:e([`menu-item-block`,{active:h.active==`catalog`}]),onClick:c[5]||=e=>l(x).push(`/catalog`)},` Каталог `,2),E(`scenarios_page`)?(o(),i(`button`,{key:2,type:`button`,class:e([`menu-item-block`,{active:h.active==`scenarios`}]),onClick:c[6]||=e=>l(x).push(`/scenarios`)},` Сценарии `,2)):t(``,!0),E(`users_page`)?(o(),i(`button`,{key:3,type:`button`,class:e([`menu-item-block`,{active:h.active==`users`}]),onClick:c[7]||=e=>l(x).push(`/users`)},` Пользователи `,2)):t(``,!0),E(`reviews_page`)?(o(),i(`button`,{key:4,type:`button`,class:e([`menu-item-block`,{active:h.active==`reviews`}]),onClick:c[8]||=e=>l(x).push(`/reviews`)},` Отзывы `,2)):t(``,!0)],2),a(`div`,b,[l(g).isAuthenticated?t(``,!0):(o(),i(`button`,{key:0,type:`button`,class:`menu-item-block right`,onClick:D},` Войти `)),l(g).isAuthenticated?(o(),i(`button`,{key:1,type:`button`,class:`menu-item-block right`,onClick:O},` Выйти `)):t(``,!0)])]))}}),[[`__scopeId`,`data-v-de69fe07`]]);export{x as t};
|
||||||
+1
-1
@@ -1 +1 @@
|
|||||||
import{E as e,M as t,N as n,O as r,T as i,X as a,y as o}from"./client-BPUTdqiR.js";import{t as s}from"./HeaderMenu-BJM4gJY8.js";import{t as c}from"./_plugin-vue_export-helper-BDNMzG2s.js";var l=c(n({__name:`HomePage`,setup(e){return(e,n)=>(a(),r(o,null,[n[0]||=i(`div`,{class:`center-block-custom content-block center-middle-block-custom height80`},[i(`div`,null,[i(`h1`,{class:`font-text`},`Вечерний детектив`),i(`h3`,{class:`font-text`},`Дело №0`),i(`p`,{class:`content-text`},`Поиграем?`)])],-1),t(s,{active:`main`})],64))}}),[[`__scopeId`,`data-v-3ca82fba`]]),u=n({__name:`HomeView`,setup(t){return(t,n)=>(a(),e(l))}});export{u as default};
|
import{E as e,M as t,N as n,O as r,T as i,X as a,y as o}from"./client-BPUTdqiR.js";import{t as s}from"./HeaderMenu-BFFUwaVE.js";import{t as c}from"./_plugin-vue_export-helper-BDNMzG2s.js";var l=c(n({__name:`HomePage`,setup(e){return(e,n)=>(a(),r(o,null,[n[0]||=i(`div`,{class:`center-block-custom content-block center-middle-block-custom height80`},[i(`div`,null,[i(`h1`,{class:`font-text`},`Вечерний детектив`),i(`h3`,{class:`font-text`},`Дело №0`),i(`p`,{class:`content-text`},`Поиграем?`)])],-1),t(s,{active:`main`})],64))}}),[[`__scopeId`,`data-v-3ca82fba`]]),u=n({__name:`HomeView`,setup(t){return(t,n)=>(a(),e(l))}});export{u as default};
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import{H as e,I as t,N as n,P as r,R as i,St as a,Z as o,m as s,ot as c,q as l,st as u,w as d,y as f,yt as p}from"./client-BPUTdqiR.js";import{G as m,H as h,K as g,M as ee,N as te,V as _,W as v,i as ne,o as re,q as y,r as b}from"./light-CAboqKml.js";import{c as x,d as S,i as C,u as w}from"./Card-DxmPfqda.js";import{r as ie}from"./css-DEmdllcC.js";import{i as ae,r as T,t as E}from"./Suffix-FM6mFtCx.js";import{t as oe}from"./use-merged-state-Cf_5Bk0w.js";import{i as se}from"./Button-BRR32HU4.js";import{n as ce,r as D}from"./use-form-item-CmxopeL6.js";import{a as O,i as k,r as A}from"./resolve-slot-CvI9c3sm.js";import{U as j,X as M,w as le}from"./index-VWZDnxHd.js";var N=n({name:`Eye`,render(){return t(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},t(`path`,{d:`M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`32`}),t(`circle`,{cx:`256`,cy:`256`,r:`80`,fill:`none`,stroke:`currentColor`,"stroke-miterlimit":`10`,"stroke-width":`32`}))}}),P=n({name:`EyeOff`,render(){return t(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},t(`path`,{d:`M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z`,fill:`currentColor`}),t(`path`,{d:`M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z`,fill:`currentColor`}),t(`path`,{d:`M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z`,fill:`currentColor`}),t(`path`,{d:`M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z`,fill:`currentColor`}),t(`path`,{d:`M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z`,fill:`currentColor`}))}}),F=s(`n-input`),ue=h(`input`,`
|
import{H as e,I as t,N as n,P as r,R as i,St as a,Z as o,m as s,ot as c,q as l,st as u,w as d,y as f,yt as p}from"./client-BPUTdqiR.js";import{G as m,H as h,K as g,M as ee,N as te,V as _,W as v,i as ne,o as re,q as y,r as b}from"./light-CAboqKml.js";import{c as x,d as S,i as C,u as w}from"./Card-2ODuArBX.js";import{r as ie}from"./css-DEmdllcC.js";import{i as ae,r as T,t as E}from"./Suffix-BwHvhchH.js";import{t as oe}from"./use-merged-state-Cf_5Bk0w.js";import{i as se}from"./Button-B-H5gLEC.js";import{n as ce,r as D}from"./use-form-item-CmxopeL6.js";import{a as O,i as k,r as A}from"./resolve-slot-CvI9c3sm.js";import{U as j,X as M,w as le}from"./index-nLpziLPJ.js";var N=n({name:`Eye`,render(){return t(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},t(`path`,{d:`M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`32`}),t(`circle`,{cx:`256`,cy:`256`,r:`80`,fill:`none`,stroke:`currentColor`,"stroke-miterlimit":`10`,"stroke-width":`32`}))}}),P=n({name:`EyeOff`,render(){return t(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},t(`path`,{d:`M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z`,fill:`currentColor`}),t(`path`,{d:`M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z`,fill:`currentColor`}),t(`path`,{d:`M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z`,fill:`currentColor`}),t(`path`,{d:`M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z`,fill:`currentColor`}),t(`path`,{d:`M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z`,fill:`currentColor`}))}}),F=s(`n-input`),ue=h(`input`,`
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
cursor: text;
|
cursor: text;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import{I as e,M as t,N as n,O as r,R as i,St as a,T as o,X as s,Z as c,ct as l,j as u,lt as d,m as f,u as p,w as m,wt as h,y as g,yt as _}from"./client-BPUTdqiR.js";import{G as v,H as y,J as b,M as x,N as S,V as C,W as w,Y as T,o as E,q as D,r as O}from"./light-CAboqKml.js";import{a as k,i as A,o as j,t as M}from"./Follower-DhW8AwLY.js";import{a as N,o as ee,t as te}from"./utils-pEwtK2l0.js";import{d as P,f as ne,t as F}from"./Card-DxmPfqda.js";import{n as I,s as L,u as R}from"./Suffix-FM6mFtCx.js";import{t as z}from"./use-merged-state-Cf_5Bk0w.js";import{t as B}from"./Button-BRR32HU4.js";import{n as V,t as H}from"./Tabs-BISnT7dU.js";import{n as U,r as W}from"./use-form-item-CmxopeL6.js";import{a as G}from"./resolve-slot-CvI9c3sm.js";import{t as K}from"./Input-BSiuncGB.js";import{r as q}from"./es-J9wUC8h3.js";import{t as J}from"./Space-BbyjHuj2.js";import{C as re,H as Y,I as ie,Q as ae,X as oe,Y as se,Z as ce,t as le,x as ue}from"./index-VWZDnxHd.js";import{t as de}from"./HeaderMenu-BJM4gJY8.js";import{t as fe}from"./_plugin-vue_export-helper-BDNMzG2s.js";var pe=C([y(`auto-complete`,`
|
import{I as e,M as t,N as n,O as r,R as i,St as a,T as o,X as s,Z as c,ct as l,j as u,lt as d,m as f,u as p,w as m,wt as h,y as g,yt as _}from"./client-BPUTdqiR.js";import{G as v,H as y,J as b,M as x,N as S,V as C,W as w,Y as T,o as E,q as D,r as O}from"./light-CAboqKml.js";import{a as k,i as A,o as j,t as M}from"./Follower-CeXodi4L.js";import{a as N,o as ee,t as te}from"./utils-DXe_dfyY.js";import{d as P,f as ne,t as F}from"./Card-2ODuArBX.js";import{n as I,s as L,u as R}from"./Suffix-BwHvhchH.js";import{t as z}from"./use-merged-state-Cf_5Bk0w.js";import{t as B}from"./Button-B-H5gLEC.js";import{n as V,t as H}from"./Tabs-D1ZGoz3M.js";import{n as U,r as W}from"./use-form-item-CmxopeL6.js";import{a as G}from"./resolve-slot-CvI9c3sm.js";import{t as K}from"./Input-BPj8Oeci.js";import{r as q}from"./es-DTK0M7rh.js";import{t as J}from"./Space-HZ2aYVEb.js";import{C as re,H as Y,I as ie,Q as ae,X as oe,Y as se,Z as ce,t as le,x as ue}from"./index-nLpziLPJ.js";import{t as de}from"./HeaderMenu-BFFUwaVE.js";import{t as fe}from"./_plugin-vue_export-helper-BDNMzG2s.js";var pe=C([y(`auto-complete`,`
|
||||||
z-index: auto;
|
z-index: auto;
|
||||||
position: relative;
|
position: relative;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import{Bt as e,C as t,G as n,H as r,I as i,J as a,N as o,R as s,St as c,V as l,W as u,Z as d,lt as f,m as p,ot as m,p as h,q as g,vt as _,w as v,yt as y}from"./client-BPUTdqiR.js";import{B as b,G as x,H as S,J as C,M as w,N as T,V as E,W as D,o as O,q as ee,r as k}from"./light-CAboqKml.js";import{d as A,f as te,i as ne,n as re,r as ie,s as j,t as ae,u as M}from"./Card-DxmPfqda.js";import{r as oe}from"./css-DEmdllcC.js";import{_ as se,c as ce,g as le,h as N,l as ue,m as de,n as fe,p as pe,s as me,u as he,v as P,y as F}from"./Suffix-FM6mFtCx.js";import{a as ge,t as I}from"./Button-BRR32HU4.js";import{i as _e,n as ve,t as L}from"./keep-ZrCZw4fu.js";import{r as R}from"./use-form-item-CmxopeL6.js";import{a as z,r as B}from"./resolve-slot-CvI9c3sm.js";import{t as ye}from"./fade-in.cssr-DXj7wP5I.js";import{B as be,F as xe,L as Se,Q as V,R as Ce,U as we,Y as Te,h as Ee,m as De,q as H,tt as U,z as W}from"./index-VWZDnxHd.js";var G=y(null);function Oe(e){if(e.clientX>0||e.clientY>0)G.value={x:e.clientX,y:e.clientY};else{let{target:t}=e;if(t instanceof Element){let{left:e,top:n,width:r,height:i}=t.getBoundingClientRect();e>0||n>0?G.value={x:e+r/2,y:n+i/2}:G.value={x:0,y:0}}else G.value=null}}var K=0,ke=!0;function Ae(){if(!F)return _(y(null));K===0&&A(`click`,document,Oe,!0);let e=()=>{K+=1};return(ke&&=P())?(u(e),n(()=>{--K,K===0&&M(`click`,document,Oe,!0)})):e(),_(G)}var je=y(void 0),q=0;function Me(){je.value=Date.now()}var Ne=!0;function Pe(e){if(!F)return _(y(!1));let t=y(!1),r=null;function i(){r!==null&&window.clearTimeout(r)}function a(){i(),t.value=!0,r=window.setTimeout(()=>{t.value=!1},e)}q===0&&A(`click`,window,Me,!0);let o=()=>{q+=1,A(`click`,window,a,!0)};return(Ne&&=P())?(u(o),n(()=>{--q,q===0&&M(`click`,window,Me,!0),M(`click`,window,a,!0),i()})):o(),_(t)}var J=y(!1);function Fe(){J.value=!0}function Ie(){J.value=!1}var Y=0;function Le(){return ge&&(u(()=>{Y||(window.addEventListener(`compositionstart`,Fe),window.addEventListener(`compositionend`,Ie)),Y++}),n(()=>{Y<=1?(window.removeEventListener(`compositionstart`,Fe),window.removeEventListener(`compositionend`,Ie),Y=0):Y--})),J}var X=0,Re=``,ze=``,Be=``,Ve=``,He=y(`0px`);function Ue(e){if(typeof document>`u`)return;let t=document.documentElement,r,i=!1,a=()=>{t.style.marginRight=Re,t.style.overflow=ze,t.style.overflowX=Be,t.style.overflowY=Ve,He.value=`0px`};g(()=>{r=m(e,e=>{if(e){if(!X){let e=window.innerWidth-t.offsetWidth;e>0&&(Re=t.style.marginRight,t.style.marginRight=`${e}px`,He.value=`${e}px`),ze=t.style.overflow,Be=t.style.overflowX,Ve=t.style.overflowY,t.style.overflow=`hidden`,t.style.overflowX=`hidden`,t.style.overflowY=`hidden`}i=!0,X++}else X--,X||a(),i=!1},{immediate:!0})}),n(()=>{r?.(),i&&=(X--,X||a(),!1)})}var We=p(`n-dialog-provider`);p(`n-dialog-api`),p(`n-dialog-reactive-list`);var Z={icon:Function,type:{type:String,default:`default`},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,titleClass:[String,Array],titleStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],actionClass:[String,Array],actionStyle:[String,Object],onPositiveClick:Function,onNegativeClick:Function,onClose:Function,closeFocusable:Boolean},Ge=j(Z),Ke=E([S(`dialog`,`
|
import{Bt as e,C as t,G as n,H as r,I as i,J as a,N as o,R as s,St as c,V as l,W as u,Z as d,lt as f,m as p,ot as m,p as h,q as g,vt as _,w as v,yt as y}from"./client-BPUTdqiR.js";import{B as b,G as x,H as S,J as C,M as w,N as T,V as E,W as D,o as O,q as ee,r as k}from"./light-CAboqKml.js";import{d as A,f as te,i as ne,n as re,r as ie,s as j,t as ae,u as M}from"./Card-2ODuArBX.js";import{r as oe}from"./css-DEmdllcC.js";import{_ as se,c as ce,g as le,h as N,l as ue,m as de,n as fe,p as pe,s as me,u as he,v as P,y as F}from"./Suffix-BwHvhchH.js";import{a as ge,t as I}from"./Button-B-H5gLEC.js";import{i as _e,n as ve,t as L}from"./keep-BCgbD9A2.js";import{r as R}from"./use-form-item-CmxopeL6.js";import{a as z,r as B}from"./resolve-slot-CvI9c3sm.js";import{t as ye}from"./fade-in.cssr-DXj7wP5I.js";import{B as be,F as xe,L as Se,Q as V,R as Ce,U as we,Y as Te,h as Ee,m as De,q as H,tt as U,z as W}from"./index-nLpziLPJ.js";var G=y(null);function Oe(e){if(e.clientX>0||e.clientY>0)G.value={x:e.clientX,y:e.clientY};else{let{target:t}=e;if(t instanceof Element){let{left:e,top:n,width:r,height:i}=t.getBoundingClientRect();e>0||n>0?G.value={x:e+r/2,y:n+i/2}:G.value={x:0,y:0}}else G.value=null}}var K=0,ke=!0;function Ae(){if(!F)return _(y(null));K===0&&A(`click`,document,Oe,!0);let e=()=>{K+=1};return(ke&&=P())?(u(e),n(()=>{--K,K===0&&M(`click`,document,Oe,!0)})):e(),_(G)}var je=y(void 0),q=0;function Me(){je.value=Date.now()}var Ne=!0;function Pe(e){if(!F)return _(y(!1));let t=y(!1),r=null;function i(){r!==null&&window.clearTimeout(r)}function a(){i(),t.value=!0,r=window.setTimeout(()=>{t.value=!1},e)}q===0&&A(`click`,window,Me,!0);let o=()=>{q+=1,A(`click`,window,a,!0)};return(Ne&&=P())?(u(o),n(()=>{--q,q===0&&M(`click`,window,Me,!0),M(`click`,window,a,!0),i()})):o(),_(t)}var J=y(!1);function Fe(){J.value=!0}function Ie(){J.value=!1}var Y=0;function Le(){return ge&&(u(()=>{Y||(window.addEventListener(`compositionstart`,Fe),window.addEventListener(`compositionend`,Ie)),Y++}),n(()=>{Y<=1?(window.removeEventListener(`compositionstart`,Fe),window.removeEventListener(`compositionend`,Ie),Y=0):Y--})),J}var X=0,Re=``,ze=``,Be=``,Ve=``,He=y(`0px`);function Ue(e){if(typeof document>`u`)return;let t=document.documentElement,r,i=!1,a=()=>{t.style.marginRight=Re,t.style.overflow=ze,t.style.overflowX=Be,t.style.overflowY=Ve,He.value=`0px`};g(()=>{r=m(e,e=>{if(e){if(!X){let e=window.innerWidth-t.offsetWidth;e>0&&(Re=t.style.marginRight,t.style.marginRight=`${e}px`,He.value=`${e}px`),ze=t.style.overflow,Be=t.style.overflowX,Ve=t.style.overflowY,t.style.overflow=`hidden`,t.style.overflowX=`hidden`,t.style.overflowY=`hidden`}i=!0,X++}else X--,X||a(),i=!1},{immediate:!0})}),n(()=>{r?.(),i&&=(X--,X||a(),!1)})}var We=p(`n-dialog-provider`);p(`n-dialog-api`),p(`n-dialog-reactive-list`);var Z={icon:Function,type:{type:String,default:`default`},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,titleClass:[String,Array],titleStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],actionClass:[String,Array],actionStyle:[String,Object],onPositiveClick:Function,onNegativeClick:Function,onClose:Function,closeFocusable:Boolean},Ge=j(Z),Ke=E([S(`dialog`,`
|
||||||
--n-icon-margin: var(--n-icon-margin-top) var(--n-icon-margin-right) var(--n-icon-margin-bottom) var(--n-icon-margin-left);
|
--n-icon-margin: var(--n-icon-margin-top) var(--n-icon-margin-right) var(--n-icon-margin-bottom) var(--n-icon-margin-left);
|
||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
line-height: var(--n-line-height);
|
line-height: var(--n-line-height);
|
||||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
|||||||
import{D as e,E as t,Ht as n,M as r,N as i,O as a,T as o,X as s,ct as c,j as l,l as u,q as d,t as f,wt as p,y as m,yt as h}from"./client-BPUTdqiR.js";import{t as g}from"./Card-DxmPfqda.js";import{t as _}from"./Button-BRR32HU4.js";import{t as v}from"./Space-BbyjHuj2.js";import{t as y}from"./index-VWZDnxHd.js";import{t as b}from"./HeaderMenu-BJM4gJY8.js";import{t as x}from"./datetime-BJNH0M1T.js";var S={class:`center-block-custom`},C={class:`width700`},w={key:0,role:`alert`},T={key:0,role:`status`},E={key:1,role:`status`},D={key:2},O=i({__name:`ParticipationPage`,setup(i){let O=u(),k=new URLSearchParams(O.hash.slice(1)),A=k.get(`token`)||``,j=h(k.get(`answer`)===`cancelled`?`cancelled`:`confirmed`),M=f(),N=y(),P=h(),F=h(!1),I=h(``);async function L(){F.value=!0,I.value=``;try{let e=await M.GetParticipation({token:A});P.value=e}catch{I.value=`Не удалось загрузить данные. Попробуйте ещё раз.`}finally{F.value=!1}}async function R(){if(!F.value){F.value=!0,I.value=``;try{let e=await M.AnswerParticipation({token:A,answer:j.value});P.value=e}catch{I.value=`Не удалось сохранить ответ. Попробуйте ещё раз.`}finally{F.value=!1}}}return d(L),(i,u)=>(s(),a(m,null,[p(N).isAuthenticated?(s(),t(b,{key:0})):e(``,!0),o(`div`,S,[o(`div`,C,[r(p(g),{title:`Участие в игре`},{default:c(()=>[I.value?(s(),a(`p`,w,n(I.value),1)):e(``,!0),P.value?(s(),a(m,{key:1},[o(`h2`,null,n(P.value.gameName),1),o(`p`,null,`Команда: `+n(P.value.teamName),1),o(`p`,null,`Начало: `+n(p(x)(P.value.startAt)),1),o(`p`,null,`Участников: `+n(P.value.participantsCount),1),P.value.status===`confirmed`?(s(),a(`p`,T,` Участие подтверждено. Ждём вас на игре! Решение окончательное. `)):P.value.status===`cancelled`?(s(),a(`p`,E,` Запись отменена. Решение окончательное. `)):P.value.closed?(s(),a(`p`,D,` Приём ответов закрыт. Ваша запись сохранена со статусом «Ожидает ответа». `)):(s(),a(m,{key:3},[u[4]||=o(`p`,null,[o(`strong`,null,`Решение окончательное: изменить его нельзя.`)],-1),u[5]||=o(`p`,null,`Без ответа запись сохраняется со статусом «Ожидает ответа».`,-1),r(p(v),{vertical:``},{default:c(()=>[r(p(v),null,{default:c(()=>[r(p(_),{disabled:F.value,type:j.value===`confirmed`?`primary`:`default`,"aria-pressed":j.value===`confirmed`,onClick:u[0]||=e=>j.value=`confirmed`},{default:c(()=>[...u[2]||=[l(`Мы участвуем`,-1)]]),_:1},8,[`disabled`,`type`,`aria-pressed`]),r(p(_),{disabled:F.value,type:j.value===`cancelled`?`error`:`default`,"aria-pressed":j.value===`cancelled`,onClick:u[1]||=e=>j.value=`cancelled`},{default:c(()=>[...u[3]||=[l(`Мы не участвуем`,-1)]]),_:1},8,[`disabled`,`type`,`aria-pressed`])]),_:1}),r(p(_),{loading:F.value,disabled:F.value,type:j.value===`cancelled`?`error`:`primary`,onClick:R},{default:c(()=>[l(n(j.value===`confirmed`?`Подтверждаю участие`:`Подтверждаю отмену`),1)]),_:1},8,[`loading`,`disabled`,`type`])]),_:1})],64))],64)):(s(),t(p(_),{key:2,loading:F.value,onClick:L},{default:c(()=>[l(n(F.value?`Загрузка`:`Повторить`),1)]),_:1},8,[`loading`]))]),_:1})])])],64))}}),k=i({__name:`ParticipationView`,setup(e){return(e,n)=>(s(),t(O))}});export{k as default};
|
import{D as e,E as t,Ht as n,M as r,N as i,O as a,T as o,X as s,ct as c,j as l,l as u,q as d,t as f,wt as p,y as m,yt as h}from"./client-BPUTdqiR.js";import{t as g}from"./Card-2ODuArBX.js";import{t as _}from"./Button-B-H5gLEC.js";import{t as v}from"./Space-HZ2aYVEb.js";import{t as y}from"./index-nLpziLPJ.js";import{t as b}from"./HeaderMenu-BFFUwaVE.js";import{t as x}from"./datetime-BJNH0M1T.js";var S={class:`center-block-custom`},C={class:`width700`},w={key:0,role:`alert`},T={key:0,role:`status`},E={key:1,role:`status`},D={key:2},O=i({__name:`ParticipationPage`,setup(i){let O=u(),k=new URLSearchParams(O.hash.slice(1)),A=k.get(`token`)||``,j=h(k.get(`answer`)===`cancelled`?`cancelled`:`confirmed`),M=f(),N=y(),P=h(),F=h(!1),I=h(``);async function L(){F.value=!0,I.value=``;try{let e=await M.GetParticipation({token:A});P.value=e}catch{I.value=`Не удалось загрузить данные. Попробуйте ещё раз.`}finally{F.value=!1}}async function R(){if(!F.value){F.value=!0,I.value=``;try{let e=await M.AnswerParticipation({token:A,answer:j.value});P.value=e}catch{I.value=`Не удалось сохранить ответ. Попробуйте ещё раз.`}finally{F.value=!1}}}return d(L),(i,u)=>(s(),a(m,null,[p(N).isAuthenticated?(s(),t(b,{key:0})):e(``,!0),o(`div`,S,[o(`div`,C,[r(p(g),{title:`Участие в игре`},{default:c(()=>[I.value?(s(),a(`p`,w,n(I.value),1)):e(``,!0),P.value?(s(),a(m,{key:1},[o(`h2`,null,n(P.value.gameName),1),o(`p`,null,`Команда: `+n(P.value.teamName),1),o(`p`,null,`Начало: `+n(p(x)(P.value.startAt)),1),o(`p`,null,`Участников: `+n(P.value.participantsCount),1),P.value.status===`confirmed`?(s(),a(`p`,T,` Участие подтверждено. Ждём вас на игре! Решение окончательное. `)):P.value.status===`cancelled`?(s(),a(`p`,E,` Запись отменена. Решение окончательное. `)):P.value.closed?(s(),a(`p`,D,` Приём ответов закрыт. Ваша запись сохранена со статусом «Ожидает ответа». `)):(s(),a(m,{key:3},[u[4]||=o(`p`,null,[o(`strong`,null,`Решение окончательное: изменить его нельзя.`)],-1),u[5]||=o(`p`,null,`Без ответа запись сохраняется со статусом «Ожидает ответа».`,-1),r(p(v),{vertical:``},{default:c(()=>[r(p(v),null,{default:c(()=>[r(p(_),{disabled:F.value,type:j.value===`confirmed`?`primary`:`default`,"aria-pressed":j.value===`confirmed`,onClick:u[0]||=e=>j.value=`confirmed`},{default:c(()=>[...u[2]||=[l(`Мы участвуем`,-1)]]),_:1},8,[`disabled`,`type`,`aria-pressed`]),r(p(_),{disabled:F.value,type:j.value===`cancelled`?`error`:`default`,"aria-pressed":j.value===`cancelled`,onClick:u[1]||=e=>j.value=`cancelled`},{default:c(()=>[...u[3]||=[l(`Мы не участвуем`,-1)]]),_:1},8,[`disabled`,`type`,`aria-pressed`])]),_:1}),r(p(_),{loading:F.value,disabled:F.value,type:j.value===`cancelled`?`error`:`primary`,onClick:R},{default:c(()=>[l(n(j.value===`confirmed`?`Подтверждаю участие`:`Подтверждаю отмену`),1)]),_:1},8,[`loading`,`disabled`,`type`])]),_:1})],64))],64)):(s(),t(p(_),{key:2,loading:F.value,onClick:L},{default:c(()=>[l(n(F.value?`Загрузка`:`Повторить`),1)]),_:1},8,[`loading`]))]),_:1})])])],64))}}),k=i({__name:`ParticipationView`,setup(e){return(e,n)=>(s(),t(O))}});export{k as default};
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import{$ as e,A as t,Bt as n,D as r,E as i,Ht as a,I as o,M as s,N as c,O as l,Q as u,R as d,St as f,T as p,Vt as m,X as h,Z as g,ct as _,ft as v,j as y,m as b,r as x,w as S,wt as C,xt as w,y as T,yt as E}from"./client-BPUTdqiR.js";import{G as D,H as O,K as k,M as A,N as j,V as M,W as N,i as P,n as ee,o as F,r as I,t as te}from"./light-CAboqKml.js";import{t as ne}from"./Card-DxmPfqda.js";import{i as re}from"./Suffix-FM6mFtCx.js";import{t as ie}from"./Modal-CI8hTIhk.js";import{t as L}from"./use-merged-state-Cf_5Bk0w.js";import{r as ae,t as R}from"./Button-BRR32HU4.js";import{r as z,t as oe}from"./use-form-item-CmxopeL6.js";import{n as se,r as B,t as ce}from"./Upload-D9-YrvcA.js";import{i as le,r as ue}from"./resolve-slot-CvI9c3sm.js";import{t as de}from"./Add-ByzGdZm-.js";import{t as V}from"./Input-BSiuncGB.js";import{n as fe,t as pe}from"./Switch-DNcPvxLe.js";import{t as me}from"./Tag-BmMTkV6i.js";import{t as H}from"./es-J9wUC8h3.js";import{t as U}from"./Space-BbyjHuj2.js";import{S as he,U as W,Z as ge,f as _e,rt as G,w as ve}from"./index-VWZDnxHd.js";import{t as ye}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as K,r as q,t as be}from"./application-1kkupXkH.js";import{t as xe}from"./MessagePaper-DBUWHrDL.js";var Se=c({name:`ArrowDown`,render(){return o(`svg`,{viewBox:`0 0 28 28`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},o(`g`,{stroke:`none`,"stroke-width":`1`,"fill-rule":`evenodd`},o(`g`,{"fill-rule":`nonzero`},o(`path`,{d:`M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z`}))))}}),Ce=c({name:`ArrowUp`,render(){return o(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`},o(`g`,{fill:`none`},o(`path`,{d:`M3.13 9.163a.5.5 0 1 0 .74.674L9.5 3.67V17.5a.5.5 0 0 0 1 0V3.672l5.63 6.165a.5.5 0 0 0 .738-.674l-6.315-6.916a.746.746 0 0 0-.632-.24a.746.746 0 0 0-.476.24L3.131 9.163z`,fill:`currentColor`})))}}),we=O(`input-group`,`
|
import{$ as e,A as t,Bt as n,D as r,E as i,Ht as a,I as o,M as s,N as c,O as l,Q as u,R as d,St as f,T as p,Vt as m,X as h,Z as g,ct as _,ft as v,j as y,m as b,r as x,w as S,wt as C,xt as w,y as T,yt as E}from"./client-BPUTdqiR.js";import{G as D,H as O,K as k,M as A,N as j,V as M,W as N,i as P,n as ee,o as F,r as I,t as te}from"./light-CAboqKml.js";import{t as ne}from"./Card-2ODuArBX.js";import{i as re}from"./Suffix-BwHvhchH.js";import{t as ie}from"./Modal-CWJ8KrgR.js";import{t as L}from"./use-merged-state-Cf_5Bk0w.js";import{r as ae,t as R}from"./Button-B-H5gLEC.js";import{r as z,t as oe}from"./use-form-item-CmxopeL6.js";import{n as se,r as B,t as ce}from"./Upload-Ci50zzDi.js";import{i as le,r as ue}from"./resolve-slot-CvI9c3sm.js";import{t as de}from"./Add-ByzGdZm-.js";import{t as V}from"./Input-BPj8Oeci.js";import{n as fe,t as pe}from"./Switch-C8AaT4Zq.js";import{t as me}from"./Tag-hAgKWzfN.js";import{t as H}from"./es-DTK0M7rh.js";import{t as U}from"./Space-HZ2aYVEb.js";import{S as he,U as W,Z as ge,f as _e,rt as G,w as ve}from"./index-nLpziLPJ.js";import{t as ye}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as K,r as q,t as be}from"./application-1kkupXkH.js";import{t as xe}from"./MessagePaper-DBUWHrDL.js";var Se=c({name:`ArrowDown`,render(){return o(`svg`,{viewBox:`0 0 28 28`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},o(`g`,{stroke:`none`,"stroke-width":`1`,"fill-rule":`evenodd`},o(`g`,{"fill-rule":`nonzero`},o(`path`,{d:`M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z`}))))}}),Ce=c({name:`ArrowUp`,render(){return o(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`},o(`g`,{fill:`none`},o(`path`,{d:`M3.13 9.163a.5.5 0 1 0 .74.674L9.5 3.67V17.5a.5.5 0 0 0 1 0V3.672l5.63 6.165a.5.5 0 0 0 .738-.674l-6.315-6.916a.746.746 0 0 0-.632-.24a.746.746 0 0 0-.476.24L3.131 9.163z`,fill:`currentColor`})))}}),we=O(`input-group`,`
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
flex-wrap: nowrap;
|
flex-wrap: nowrap;
|
||||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
|||||||
import{M as e,N as t,O as n,X as r,y as i}from"./client-BPUTdqiR.js";import{t as a}from"./DocsPage-C7Ksq7hj.js";import{t as o}from"./HeaderMenu-BJM4gJY8.js";var s=t({__name:`PrivacyPolicyView`,setup(t){return(t,s)=>(r(),n(i,null,[e(a,{kind:`privacy`}),e(o)],64))}});export{s as default};
|
import{M as e,N as t,O as n,X as r,y as i}from"./client-BPUTdqiR.js";import{t as a}from"./DocsPage-COOpxzD-.js";import{t as o}from"./HeaderMenu-BFFUwaVE.js";var s=t({__name:`PrivacyPolicyView`,setup(t){return(t,s)=>(r(),n(i,null,[e(a,{kind:`privacy`}),e(o)],64))}});export{s as default};
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import{I as e,N as t,Q as n,St as r,w as i,yt as a}from"./client-BPUTdqiR.js";import{G as o,H as s,K as c,M as l,N as u,V as d,W as f,q as p,r as m,t as h}from"./light-CAboqKml.js";import{t as g}from"./use-merged-state-Cf_5Bk0w.js";import{i as _,n as v,r as y}from"./use-form-item-CmxopeL6.js";import{U as b}from"./index-VWZDnxHd.js";function x(e){let{railColor:t}=e;return{itemColor:t,itemColorActive:`#FFCC33`,sizeSmall:`16px`,sizeMedium:`20px`,sizeLarge:`24px`}}var S={name:`Rate`,common:h,self:x},C=()=>e(`svg`,{viewBox:`0 0 512 512`},e(`path`,{d:`M394 480a16 16 0 01-9.39-3L256 383.76 127.39 477a16 16 0 01-24.55-18.08L153 310.35 23 221.2a16 16 0 019-29.2h160.38l48.4-148.95a16 16 0 0130.44 0l48.4 149H480a16 16 0 019.05 29.2L359 310.35l50.13 148.53A16 16 0 01394 480z`})),w=s(`rate`,{display:`inline-flex`,flexWrap:`nowrap`},[d(`&:hover`,[f(`item`,`
|
import{I as e,N as t,Q as n,St as r,w as i,yt as a}from"./client-BPUTdqiR.js";import{G as o,H as s,K as c,M as l,N as u,V as d,W as f,q as p,r as m,t as h}from"./light-CAboqKml.js";import{t as g}from"./use-merged-state-Cf_5Bk0w.js";import{i as _,n as v,r as y}from"./use-form-item-CmxopeL6.js";import{U as b}from"./index-nLpziLPJ.js";function x(e){let{railColor:t}=e;return{itemColor:t,itemColorActive:`#FFCC33`,sizeSmall:`16px`,sizeMedium:`20px`,sizeLarge:`24px`}}var S={name:`Rate`,common:h,self:x},C=()=>e(`svg`,{viewBox:`0 0 512 512`},e(`path`,{d:`M394 480a16 16 0 01-9.39-3L256 383.76 127.39 477a16 16 0 01-24.55-18.08L153 310.35 23 221.2a16 16 0 019-29.2h160.38l48.4-148.95a16 16 0 0130.44 0l48.4 149H480a16 16 0 019.05 29.2L359 310.35l50.13 148.53A16 16 0 01394 480z`})),w=s(`rate`,{display:`inline-flex`,flexWrap:`nowrap`},[d(`&:hover`,[f(`item`,`
|
||||||
transition:
|
transition:
|
||||||
transform .1s var(--n-bezier),
|
transform .1s var(--n-bezier),
|
||||||
color .3s var(--n-bezier);
|
color .3s var(--n-bezier);
|
||||||
Vendored
+1
-1
@@ -1 +1 @@
|
|||||||
import{D as e,E as t,Ht as n,M as r,N as i,O as a,Q as o,T as s,X as c,ct as l,j as u,wt as d,y as f,yt as p}from"./client-BPUTdqiR.js";import{t as m}from"./Card-DxmPfqda.js";import{t as h}from"./Button-BRR32HU4.js";import{t as g}from"./Tag-BmMTkV6i.js";import{n as _,r as v}from"./es-J9wUC8h3.js";import{t as y}from"./Flex-B73VJ8x5.js";import{t as b}from"./Rate-DRwjV1H3.js";import{t as x}from"./HeaderMenu-BJM4gJY8.js";import{t as S}from"./_plugin-vue_export-helper-BDNMzG2s.js";var C={class:`center-block-custom`},w={class:`width1200`},T={class:`page-header`},E={class:`review-game`},D={class:`review-text`},O=S(i({__name:`ReviewsPage`,setup(i){let S=_(),O=v(),k=p([]);async function A(){try{let e=await S.GetReviewsForModeration({});k.value=e.reviews||[]}catch(e){O.error(e instanceof Error?e.message:`Не удалось загрузить отзывы`)}}async function j(e,t){try{await S.ModerateGameReview({ID:e.ID,status:t}),await A()}catch(e){O.error(e instanceof Error?e.message:`Не удалось изменить отзыв`)}}return A(),(i,p)=>(c(),a(f,null,[s(`div`,C,[s(`div`,w,[s(`div`,T,[p[1]||=s(`h1`,null,`Отзывы`,-1),r(d(h),{onClick:A},{default:l(()=>[...p[0]||=[u(`Обновить`,-1)]]),_:1})]),k.value.length==0?(c(),t(d(m),{key:0},{default:l(()=>[...p[2]||=[u(`Очередь отзывов пуста.`,-1)]]),_:1})):e(``,!0),(c(!0),a(f,null,o(k.value,i=>(c(),t(d(m),{key:i.ID,class:`review-card`},{default:l(()=>[r(d(y),{justify:`space-between`,align:`center`},{default:l(()=>[s(`div`,null,[s(`div`,E,n(i.gameName),1),s(`strong`,null,n(i.teamName),1)]),r(d(g),null,{default:l(()=>[u(n(i.status),1)]),_:2},1024)]),_:2},1024),r(d(b),{value:i.rating,readonly:``},null,8,[`value`]),s(`div`,null,`Сложность: `+n([``,`лёгкая`,`средняя`,`тяжёлая`][i.difficulty||0]),1),s(`p`,D,n(i.text),1),i.status==`pending`?(c(),t(d(y),{key:0,justify:`end`},{default:l(()=>[r(d(h),{type:`success`,onClick:e=>j(i,`approved`)},{default:l(()=>[...p[3]||=[u(`Одобрить`,-1)]]),_:1},8,[`onClick`]),r(d(h),{type:`error`,ghost:``,onClick:e=>j(i,`rejected`)},{default:l(()=>[...p[4]||=[u(`Отклонить`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):i.status==`approved`?(c(),t(d(y),{key:1,justify:`end`},{default:l(()=>[r(d(h),{type:`error`,ghost:``,onClick:e=>j(i,`hidden`)},{default:l(()=>[...p[5]||=[u(`Скрыть`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):e(``,!0)]),_:2},1024))),128))])]),r(x,{active:`reviews`})],64))}}),[[`__scopeId`,`data-v-0b64d5d0`]]),k=i({__name:`ReviewsView`,setup(e){return(e,n)=>(c(),t(O))}});export{k as default};
|
import{D as e,E as t,Ht as n,M as r,N as i,O as a,Q as o,T as s,X as c,ct as l,j as u,wt as d,y as f,yt as p}from"./client-BPUTdqiR.js";import{t as m}from"./Card-2ODuArBX.js";import{t as h}from"./Button-B-H5gLEC.js";import{t as g}from"./Tag-hAgKWzfN.js";import{n as _,r as v}from"./es-DTK0M7rh.js";import{t as y}from"./Flex-ByLPhmpj.js";import{t as b}from"./Rate-x28u4Ls_.js";import{t as x}from"./HeaderMenu-BFFUwaVE.js";import{t as S}from"./_plugin-vue_export-helper-BDNMzG2s.js";var C={class:`center-block-custom`},w={class:`width1200`},T={class:`page-header`},E={class:`review-game`},D={class:`review-text`},O=S(i({__name:`ReviewsPage`,setup(i){let S=_(),O=v(),k=p([]);async function A(){try{let e=await S.GetReviewsForModeration({});k.value=e.reviews||[]}catch(e){O.error(e instanceof Error?e.message:`Не удалось загрузить отзывы`)}}async function j(e,t){try{await S.ModerateGameReview({ID:e.ID,status:t}),await A()}catch(e){O.error(e instanceof Error?e.message:`Не удалось изменить отзыв`)}}return A(),(i,p)=>(c(),a(f,null,[s(`div`,C,[s(`div`,w,[s(`div`,T,[p[1]||=s(`h1`,null,`Отзывы`,-1),r(d(h),{onClick:A},{default:l(()=>[...p[0]||=[u(`Обновить`,-1)]]),_:1})]),k.value.length==0?(c(),t(d(m),{key:0},{default:l(()=>[...p[2]||=[u(`Очередь отзывов пуста.`,-1)]]),_:1})):e(``,!0),(c(!0),a(f,null,o(k.value,i=>(c(),t(d(m),{key:i.ID,class:`review-card`},{default:l(()=>[r(d(y),{justify:`space-between`,align:`center`},{default:l(()=>[s(`div`,null,[s(`div`,E,n(i.gameName),1),s(`strong`,null,n(i.teamName),1)]),r(d(g),null,{default:l(()=>[u(n(i.status),1)]),_:2},1024)]),_:2},1024),r(d(b),{value:i.rating,readonly:``},null,8,[`value`]),s(`div`,null,`Сложность: `+n([``,`лёгкая`,`средняя`,`тяжёлая`][i.difficulty||0]),1),s(`p`,D,n(i.text),1),i.status==`pending`?(c(),t(d(y),{key:0,justify:`end`},{default:l(()=>[r(d(h),{type:`success`,onClick:e=>j(i,`approved`)},{default:l(()=>[...p[3]||=[u(`Одобрить`,-1)]]),_:1},8,[`onClick`]),r(d(h),{type:`error`,ghost:``,onClick:e=>j(i,`rejected`)},{default:l(()=>[...p[4]||=[u(`Отклонить`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):i.status==`approved`?(c(),t(d(y),{key:1,justify:`end`},{default:l(()=>[r(d(h),{type:`error`,ghost:``,onClick:e=>j(i,`hidden`)},{default:l(()=>[...p[5]||=[u(`Скрыть`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):e(``,!0)]),_:2},1024))),128))])]),r(x,{active:`reviews`})],64))}}),[[`__scopeId`,`data-v-0b64d5d0`]]),k=i({__name:`ReviewsView`,setup(e){return(e,n)=>(c(),t(O))}});export{k as default};
|
||||||
Vendored
+1
-1
@@ -1 +1 @@
|
|||||||
import{D as e,E as t,Ht as n,M as r,N as i,O as a,Q as o,T as s,X as c,ct as l,j as u,l as d,wt as f,y as p,yt as m}from"./client-BPUTdqiR.js";import{t as h}from"./Tag-BmMTkV6i.js";import{n as g,r as _}from"./es-J9wUC8h3.js";import{t as v}from"./Rate-DRwjV1H3.js";import{t as y}from"./HeaderMenu-BJM4gJY8.js";import{t as b}from"./_plugin-vue_export-helper-BDNMzG2s.js";var x={class:`center-block-custom`},S={class:`width700`},C={class:`scenario-card`},w={class:`scenario-heading`},T={class:`scenario-title`},E={class:`scenario-image-frame`},D=[`src`,`alt`],O={class:`scenario-details`},k={class:`scenario-description`},A={class:`scenario-rating`},j={key:1},M={key:2},N={key:0,class:`scenario-difficulty`},P={class:`scenario-author`},F={key:1,class:`reviews-section`},I={class:`review-heading`},L={class:`review-game`},R={class:`review-text`},z=b(i({__name:`ScenarioPage`,setup(i){let b=_(),z=g(),B=d().params.id,V=m([]),H=m({ID:void 0,name:void 0,story:void 0,author:void 0,status:void 0,updatedAt:void 0,createdAt:void 0,publishedAt:void 0,averageRating:void 0,reviewsCount:void 0,difficulty:void 0});async function U(e){try{let t=await z.GetScenario({ID:e});H.value=t.scenario}catch(e){b.error(e instanceof Error?e.message:`Не удалось загрузить сценарий`)}}U(Number(B));async function W(e){try{let t=await z.GetScenarioReviews({scenarioID:e});V.value=t.reviews||[]}catch(e){b.error(e instanceof Error?e.message:`Не удалось загрузить отзывы`)}}return W(Number(B)),(i,d)=>(c(),a(p,null,[s(`div`,x,[s(`div`,S,[s(`section`,C,[s(`div`,w,[d[0]||=s(`p`,{class:`scenario-kicker`},`ДЕЛО ИЗ КАТАЛОГА`,-1),s(`h1`,T,n(H.value.name),1)]),s(`div`,E,[s(`img`,{class:`scenario-image`,src:H.value.image,alt:H.value.name},null,8,D)]),s(`div`,O,[s(`p`,k,n(H.value.description),1),s(`div`,A,[H.value.reviewsCount?(c(),t(f(v),{key:0,value:H.value.averageRating,readonly:``,"allow-half":``,size:`small`},null,8,[`value`])):e(``,!0),H.value.reviewsCount?(c(),a(`span`,j,n(H.value.averageRating?.toFixed(1))+` · `+n(H.value.reviewsCount)+` отзывов`,1)):(c(),a(`span`,M,`Пока нет оценок`))]),H.value.difficulty?(c(),a(`div`,N,`Сложность: `+n(H.value.difficulty),1)):e(``,!0),s(`div`,P,[r(f(h),{bordered:!1,type:`success`,class:`status-block`},{default:l(()=>[u(` Автор: `+n(H.value.author?.username),1)]),_:1})]),V.value.length?(c(),a(`section`,F,[d[1]||=s(`h2`,{class:`reviews-title`},`Отзывы команд`,-1),(c(!0),a(p,null,o(V.value,e=>(c(),a(`article`,{key:e.ID,class:`review-card`},[s(`div`,I,[s(`strong`,null,n(e.teamName),1),r(f(v),{value:e.rating,readonly:``,size:`small`},null,8,[`value`])]),s(`div`,null,`Сложность: `+n([``,`лёгкая`,`средняя`,`тяжёлая`][e.difficulty||0]),1),s(`div`,L,n(e.gameName),1),s(`p`,R,n(e.text),1)]))),128))])):e(``,!0)])])])]),r(y,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-fd1f9c93`]]),B=i({__name:`ScenarioView`,setup(e){return(e,n)=>(c(),t(z))}});export{B as default};
|
import{D as e,E as t,Ht as n,M as r,N as i,O as a,Q as o,T as s,X as c,ct as l,j as u,l as d,wt as f,y as p,yt as m}from"./client-BPUTdqiR.js";import{t as h}from"./Tag-hAgKWzfN.js";import{n as g,r as _}from"./es-DTK0M7rh.js";import{t as v}from"./Rate-x28u4Ls_.js";import{t as y}from"./HeaderMenu-BFFUwaVE.js";import{t as b}from"./_plugin-vue_export-helper-BDNMzG2s.js";var x={class:`center-block-custom`},S={class:`width700`},C={class:`scenario-card`},w={class:`scenario-heading`},T={class:`scenario-title`},E={class:`scenario-image-frame`},D=[`src`,`alt`],O={class:`scenario-details`},k={class:`scenario-description`},A={class:`scenario-rating`},j={key:1},M={key:2},N={key:0,class:`scenario-difficulty`},P={class:`scenario-author`},F={key:1,class:`reviews-section`},I={class:`review-heading`},L={class:`review-game`},R={class:`review-text`},z=b(i({__name:`ScenarioPage`,setup(i){let b=_(),z=g(),B=d().params.id,V=m([]),H=m({ID:void 0,name:void 0,story:void 0,author:void 0,status:void 0,updatedAt:void 0,createdAt:void 0,publishedAt:void 0,averageRating:void 0,reviewsCount:void 0,difficulty:void 0});async function U(e){try{let t=await z.GetScenario({ID:e});H.value=t.scenario}catch(e){b.error(e instanceof Error?e.message:`Не удалось загрузить сценарий`)}}U(Number(B));async function W(e){try{let t=await z.GetScenarioReviews({scenarioID:e});V.value=t.reviews||[]}catch(e){b.error(e instanceof Error?e.message:`Не удалось загрузить отзывы`)}}return W(Number(B)),(i,d)=>(c(),a(p,null,[s(`div`,x,[s(`div`,S,[s(`section`,C,[s(`div`,w,[d[0]||=s(`p`,{class:`scenario-kicker`},`ДЕЛО ИЗ КАТАЛОГА`,-1),s(`h1`,T,n(H.value.name),1)]),s(`div`,E,[s(`img`,{class:`scenario-image`,src:H.value.image,alt:H.value.name},null,8,D)]),s(`div`,O,[s(`p`,k,n(H.value.description),1),s(`div`,A,[H.value.reviewsCount?(c(),t(f(v),{key:0,value:H.value.averageRating,readonly:``,"allow-half":``,size:`small`},null,8,[`value`])):e(``,!0),H.value.reviewsCount?(c(),a(`span`,j,n(H.value.averageRating?.toFixed(1))+` · `+n(H.value.reviewsCount)+` отзывов`,1)):(c(),a(`span`,M,`Пока нет оценок`))]),H.value.difficulty?(c(),a(`div`,N,`Сложность: `+n(H.value.difficulty),1)):e(``,!0),s(`div`,P,[r(f(h),{bordered:!1,type:`success`,class:`status-block`},{default:l(()=>[u(` Автор: `+n(H.value.author?.username),1)]),_:1})]),V.value.length?(c(),a(`section`,F,[d[1]||=s(`h2`,{class:`reviews-title`},`Отзывы команд`,-1),(c(!0),a(p,null,o(V.value,e=>(c(),a(`article`,{key:e.ID,class:`review-card`},[s(`div`,I,[s(`strong`,null,n(e.teamName),1),r(f(v),{value:e.rating,readonly:``,size:`small`},null,8,[`value`])]),s(`div`,null,`Сложность: `+n([``,`лёгкая`,`средняя`,`тяжёлая`][e.difficulty||0]),1),s(`div`,L,n(e.gameName),1),s(`p`,R,n(e.text),1)]))),128))])):e(``,!0)])])])]),r(y,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-fd1f9c93`]]),B=i({__name:`ScenarioView`,setup(e){return(e,n)=>(c(),t(z))}});export{B as default};
|
||||||
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import{$ as e,H as t,I as n,N as r,St as i,lt as a,ot as o,q as s,st as c,w as l,y as u,yt as d}from"./client-BPUTdqiR.js";import{F as f,G as p,H as m,K as h,M as g,N as _,V as v,W as y,o as b,q as x,r as S}from"./light-CAboqKml.js";import{a as C,i as w,n as T,o as E,r as D,t as O}from"./Follower-DhW8AwLY.js";import{a as k,c as A,i as j,n as ee,o as te,r as M,t as N,u as P}from"./utils-pEwtK2l0.js";import{f as ne,o as F}from"./Card-DxmPfqda.js";import{r as re}from"./css-DEmdllcC.js";import{i as ie,n as I,t as L,u as R}from"./Suffix-FM6mFtCx.js";import{t as z}from"./use-merged-state-Cf_5Bk0w.js";import{t as ae}from"./use-compitable-XUeenQPv.js";import{t as B}from"./Popover-DZEaH9dk.js";import{r as oe}from"./keep-ZrCZw4fu.js";import{n as se,r as V}from"./use-form-item-CmxopeL6.js";import{t as H}from"./Tag-BmMTkV6i.js";import{D as U,Q as W,Y as ce,q as G,tt as K,y as le}from"./index-VWZDnxHd.js";var q=`v-hidden`,ue=T(`[v-hidden]`,{display:`none!important`}),J=r({name:`Overflow`,props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:t}){let n=d(null),r=d(null);function i(i){let{value:a}=n,{getCounter:o,getTail:s}=e,c;if(c=o===void 0?r.value:o(),!a||!c)return;c.hasAttribute(q)&&c.removeAttribute(q);let{children:l}=a;if(i.showAllItemsBeforeCalculate)for(let e of l)e.hasAttribute(q)&&e.removeAttribute(q);let u=a.offsetWidth,d=[],f=t.tail?s?.():null,p=f?f.offsetWidth:0,m=!1,h=a.children.length-+!!t.tail;for(let t=0;t<h-1;++t){if(t<0)continue;let n=l[t];if(m){n.hasAttribute(q)||n.setAttribute(q,``);continue}else n.hasAttribute(q)&&n.removeAttribute(q);let r=n.offsetWidth;if(p+=r,d[t]=r,p>u){let{updateCounter:n}=e;for(let r=t;r>=0;--r){let i=h-1-r;n===void 0?c.textContent=`${i}`:n(i);let a=c.offsetWidth;if(p-=d[r],p+a<=u||r===0){m=!0,t=r-1,f&&(t===-1?(f.style.maxWidth=`${u-a}px`,f.style.boxSizing=`border-box`):f.style.maxWidth=``);let{onUpdateCount:n}=e;n&&n(i);break}}}}let{onUpdateOverflow:g}=e;m?g!==void 0&&g(!0):(g!==void 0&&g(!1),c.setAttribute(q,``))}let a=f();return ue.mount({id:`vueuc/overflow`,head:!0,anchorMetaName:D,ssr:a}),s(()=>i({showAllItemsBeforeCalculate:!1})),{selfRef:n,counterRef:r,sync:i}},render(){let{$slots:r}=this;return t(()=>this.sync({showAllItemsBeforeCalculate:!1})),n(`div`,{class:`v-overflow`,ref:`selfRef`},[e(r,`default`),r.counter?r.counter():n(`span`,{style:{display:`inline-block`},ref:`counterRef`}),r.tail?r.tail():null])}});function Y(e){switch(typeof e){case`string`:return e||void 0;case`number`:return String(e);default:return}}var de=v([m(`base-selection`,`
|
import{$ as e,H as t,I as n,N as r,St as i,lt as a,ot as o,q as s,st as c,w as l,y as u,yt as d}from"./client-BPUTdqiR.js";import{F as f,G as p,H as m,K as h,M as g,N as _,V as v,W as y,o as b,q as x,r as S}from"./light-CAboqKml.js";import{a as C,i as w,n as T,o as E,r as D,t as O}from"./Follower-CeXodi4L.js";import{a as k,c as A,i as j,n as ee,o as te,r as M,t as N,u as P}from"./utils-DXe_dfyY.js";import{f as ne,o as F}from"./Card-2ODuArBX.js";import{r as re}from"./css-DEmdllcC.js";import{i as ie,n as I,t as L,u as R}from"./Suffix-BwHvhchH.js";import{t as z}from"./use-merged-state-Cf_5Bk0w.js";import{t as ae}from"./use-compitable-XUeenQPv.js";import{t as B}from"./Popover-DCdi2Z1f.js";import{r as oe}from"./keep-BCgbD9A2.js";import{n as se,r as V}from"./use-form-item-CmxopeL6.js";import{t as H}from"./Tag-hAgKWzfN.js";import{D as U,Q as W,Y as ce,q as G,tt as K,y as le}from"./index-nLpziLPJ.js";var q=`v-hidden`,ue=T(`[v-hidden]`,{display:`none!important`}),J=r({name:`Overflow`,props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:t}){let n=d(null),r=d(null);function i(i){let{value:a}=n,{getCounter:o,getTail:s}=e,c;if(c=o===void 0?r.value:o(),!a||!c)return;c.hasAttribute(q)&&c.removeAttribute(q);let{children:l}=a;if(i.showAllItemsBeforeCalculate)for(let e of l)e.hasAttribute(q)&&e.removeAttribute(q);let u=a.offsetWidth,d=[],f=t.tail?s?.():null,p=f?f.offsetWidth:0,m=!1,h=a.children.length-+!!t.tail;for(let t=0;t<h-1;++t){if(t<0)continue;let n=l[t];if(m){n.hasAttribute(q)||n.setAttribute(q,``);continue}else n.hasAttribute(q)&&n.removeAttribute(q);let r=n.offsetWidth;if(p+=r,d[t]=r,p>u){let{updateCounter:n}=e;for(let r=t;r>=0;--r){let i=h-1-r;n===void 0?c.textContent=`${i}`:n(i);let a=c.offsetWidth;if(p-=d[r],p+a<=u||r===0){m=!0,t=r-1,f&&(t===-1?(f.style.maxWidth=`${u-a}px`,f.style.boxSizing=`border-box`):f.style.maxWidth=``);let{onUpdateCount:n}=e;n&&n(i);break}}}}let{onUpdateOverflow:g}=e;m?g!==void 0&&g(!0):(g!==void 0&&g(!1),c.setAttribute(q,``))}let a=f();return ue.mount({id:`vueuc/overflow`,head:!0,anchorMetaName:D,ssr:a}),s(()=>i({showAllItemsBeforeCalculate:!1})),{selfRef:n,counterRef:r,sync:i}},render(){let{$slots:r}=this;return t(()=>this.sync({showAllItemsBeforeCalculate:!1})),n(`div`,{class:`v-overflow`,ref:`selfRef`},[e(r,`default`),r.counter?r.counter():n(`span`,{style:{display:`inline-block`},ref:`counterRef`}),r.tail?r.tail():null])}});function Y(e){switch(typeof e){case`string`:return e||void 0;case`number`:return String(e);default:return}}var de=v([m(`base-selection`,`
|
||||||
--n-padding-single: var(--n-padding-single-top) var(--n-padding-single-right) var(--n-padding-single-bottom) var(--n-padding-single-left);
|
--n-padding-single: var(--n-padding-single-top) var(--n-padding-single-right) var(--n-padding-single-bottom) var(--n-padding-single-left);
|
||||||
--n-padding-multiple: var(--n-padding-multiple-top) var(--n-padding-multiple-right) var(--n-padding-multiple-bottom) var(--n-padding-multiple-left);
|
--n-padding-multiple: var(--n-padding-multiple-top) var(--n-padding-multiple-right) var(--n-padding-multiple-bottom) var(--n-padding-multiple-left);
|
||||||
position: relative;
|
position: relative;
|
||||||
+1
-1
@@ -1 +1 @@
|
|||||||
import{I as e,N as t,v as n,w as r}from"./client-BPUTdqiR.js";import{N as i,o as a,q as o,r as s}from"./light-CAboqKml.js";import{n as c,t as l}from"./css-DEmdllcC.js";import{a as u}from"./Button-BRR32HU4.js";import{t as d}from"./flatten-ToATH0lz.js";import{t as f}from"./get-slot-6kXJmSMP.js";import{d as p}from"./index-VWZDnxHd.js";function m(){return p}var h={name:`Space`,self:m},g;function _(){if(!u)return!0;if(g===void 0){let e=document.createElement(`div`);e.style.display=`flex`,e.style.flexDirection=`column`,e.style.rowGap=`1px`,e.appendChild(document.createElement(`div`)),e.appendChild(document.createElement(`div`)),document.body.appendChild(e);let t=e.scrollHeight===1;return document.body.removeChild(e),g=t}return g}var v=t({name:`Space`,props:Object.assign(Object.assign({},s.props),{align:String,justify:{type:String,default:`start`},inline:Boolean,vertical:Boolean,reverse:Boolean,size:[String,Number,Array],wrapItem:{type:Boolean,default:!0},itemClass:String,itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),setup(e){let{mergedClsPrefixRef:t,mergedRtlRef:n,mergedComponentPropsRef:u}=i(e),d=r(()=>e.size||u?.value?.Space?.size||`medium`),f=s(`Space`,`-space`,void 0,h,e,t),p=a(`Space`,n,t);return{useGap:_(),rtlEnabled:p,mergedClsPrefix:t,margin:r(()=>{let e=d.value;if(Array.isArray(e))return{horizontal:e[0],vertical:e[1]};if(typeof e==`number`)return{horizontal:e,vertical:e};let{self:{[o(`gap`,e)]:t}}=f.value,{row:n,col:r}=c(t);return{horizontal:l(r),vertical:l(n)}})}},render(){let{vertical:t,reverse:r,align:i,inline:a,justify:o,itemClass:s,itemStyle:c,margin:l,wrap:u,mergedClsPrefix:p,rtlEnabled:m,useGap:h,wrapItem:g,internalUseGap:_}=this,v=d(f(this),!1);if(!v.length)return null;let y=`${l.horizontal}px`,b=`${l.horizontal/2}px`,x=`${l.vertical}px`,S=`${l.vertical/2}px`,C=v.length-1,w=o.startsWith(`space-`);return e(`div`,{role:`none`,class:[`${p}-space`,m&&`${p}-space--rtl`],style:{display:a?`inline-flex`:`flex`,flexDirection:t&&!r?`column`:t&&r?`column-reverse`:!t&&r?`row-reverse`:`row`,justifyContent:[`start`,`end`].includes(o)?`flex-${o}`:o,flexWrap:!u||t?`nowrap`:`wrap`,marginTop:h||t?``:`-${S}`,marginBottom:h||t?``:`-${S}`,alignItems:i,gap:h?`${l.vertical}px ${l.horizontal}px`:``}},!g&&(h||_)?v:v.map((r,i)=>r.type===n?r:e(`div`,{role:`none`,class:s,style:[c,{maxWidth:`100%`},h?``:t?{marginBottom:i===C?``:x}:m?{marginLeft:w?o===`space-between`&&i===C?``:b:i===C?``:y,marginRight:w?o===`space-between`&&i===0?``:b:``,paddingTop:S,paddingBottom:S}:{marginRight:w?o===`space-between`&&i===C?``:b:i===C?``:y,marginLeft:w?o===`space-between`&&i===0?``:b:``,paddingTop:S,paddingBottom:S}]},r)))}});export{v as t};
|
import{I as e,N as t,v as n,w as r}from"./client-BPUTdqiR.js";import{N as i,o as a,q as o,r as s}from"./light-CAboqKml.js";import{n as c,t as l}from"./css-DEmdllcC.js";import{a as u}from"./Button-B-H5gLEC.js";import{t as d}from"./flatten-ToATH0lz.js";import{t as f}from"./get-slot-6kXJmSMP.js";import{d as p}from"./index-nLpziLPJ.js";function m(){return p}var h={name:`Space`,self:m},g;function _(){if(!u)return!0;if(g===void 0){let e=document.createElement(`div`);e.style.display=`flex`,e.style.flexDirection=`column`,e.style.rowGap=`1px`,e.appendChild(document.createElement(`div`)),e.appendChild(document.createElement(`div`)),document.body.appendChild(e);let t=e.scrollHeight===1;return document.body.removeChild(e),g=t}return g}var v=t({name:`Space`,props:Object.assign(Object.assign({},s.props),{align:String,justify:{type:String,default:`start`},inline:Boolean,vertical:Boolean,reverse:Boolean,size:[String,Number,Array],wrapItem:{type:Boolean,default:!0},itemClass:String,itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),setup(e){let{mergedClsPrefixRef:t,mergedRtlRef:n,mergedComponentPropsRef:u}=i(e),d=r(()=>e.size||u?.value?.Space?.size||`medium`),f=s(`Space`,`-space`,void 0,h,e,t),p=a(`Space`,n,t);return{useGap:_(),rtlEnabled:p,mergedClsPrefix:t,margin:r(()=>{let e=d.value;if(Array.isArray(e))return{horizontal:e[0],vertical:e[1]};if(typeof e==`number`)return{horizontal:e,vertical:e};let{self:{[o(`gap`,e)]:t}}=f.value,{row:n,col:r}=c(t);return{horizontal:l(r),vertical:l(n)}})}},render(){let{vertical:t,reverse:r,align:i,inline:a,justify:o,itemClass:s,itemStyle:c,margin:l,wrap:u,mergedClsPrefix:p,rtlEnabled:m,useGap:h,wrapItem:g,internalUseGap:_}=this,v=d(f(this),!1);if(!v.length)return null;let y=`${l.horizontal}px`,b=`${l.horizontal/2}px`,x=`${l.vertical}px`,S=`${l.vertical/2}px`,C=v.length-1,w=o.startsWith(`space-`);return e(`div`,{role:`none`,class:[`${p}-space`,m&&`${p}-space--rtl`],style:{display:a?`inline-flex`:`flex`,flexDirection:t&&!r?`column`:t&&r?`column-reverse`:!t&&r?`row-reverse`:`row`,justifyContent:[`start`,`end`].includes(o)?`flex-${o}`:o,flexWrap:!u||t?`nowrap`:`wrap`,marginTop:h||t?``:`-${S}`,marginBottom:h||t?``:`-${S}`,alignItems:i,gap:h?`${l.vertical}px ${l.horizontal}px`:``}},!g&&(h||_)?v:v.map((r,i)=>r.type===n?r:e(`div`,{role:`none`,class:s,style:[c,{maxWidth:`100%`},h?``:t?{marginBottom:i===C?``:x}:m?{marginLeft:w?o===`space-between`&&i===C?``:b:i===C?``:y,marginRight:w?o===`space-between`&&i===0?``:b:``,paddingTop:S,paddingBottom:S}:{marginRight:w?o===`space-between`&&i===C?``:b:i===C?``:y,marginLeft:w?o===`space-between`&&i===0?``:b:``,paddingTop:S,paddingBottom:S}]},r)))}});export{v as t};
|
||||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import{I as e,N as t,St as n,w as r,yt as i}from"./client-BPUTdqiR.js";import{G as a,H as o,I as s,K as c,M as l,N as u,V as d,W as f,q as p,r as m,t as h}from"./light-CAboqKml.js";import{i as g,t as _}from"./css-DEmdllcC.js";import{t as v}from"./use-merged-state-Cf_5Bk0w.js";import{n as y,r as b}from"./use-form-item-CmxopeL6.js";import{a as x,n as S}from"./resolve-slot-CvI9c3sm.js";import{H as C,I as w,M as T,o as E}from"./index-VWZDnxHd.js";var D=t({name:`Remove`,render(){return e(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},e(`line`,{x1:`400`,y1:`256`,x2:`112`,y2:`256`,style:`
|
import{I as e,N as t,St as n,w as r,yt as i}from"./client-BPUTdqiR.js";import{G as a,H as o,I as s,K as c,M as l,N as u,V as d,W as f,q as p,r as m,t as h}from"./light-CAboqKml.js";import{i as g,t as _}from"./css-DEmdllcC.js";import{t as v}from"./use-merged-state-Cf_5Bk0w.js";import{n as y,r as b}from"./use-form-item-CmxopeL6.js";import{a as x,n as S}from"./resolve-slot-CvI9c3sm.js";import{H as C,I as w,M as T,o as E}from"./index-nLpziLPJ.js";var D=t({name:`Remove`,render(){return e(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},e(`line`,{x1:`400`,y1:`256`,x2:`112`,y2:`256`,style:`
|
||||||
fill: none;
|
fill: none;
|
||||||
stroke: currentColor;
|
stroke: currentColor;
|
||||||
stroke-linecap: round;
|
stroke-linecap: round;
|
||||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import{I as e,N as t,St as n,Z as r,m as i,w as a,yt as o}from"./client-BPUTdqiR.js";import{G as s,H as c,I as l,K as u,M as d,N as f,V as p,W as m,o as h,q as g,r as _,t as v}from"./light-CAboqKml.js";import{r as y}from"./css-DEmdllcC.js";import{i as b,r as x}from"./use-form-item-CmxopeL6.js";import{a as S}from"./resolve-slot-CvI9c3sm.js";import{F as C,O as w}from"./index-VWZDnxHd.js";function T(e){let{textColor2:t,primaryColorHover:n,primaryColorPressed:r,primaryColor:i,infoColor:a,successColor:o,warningColor:s,errorColor:c,baseColor:u,borderColor:d,opacityDisabled:f,tagColor:p,closeIconColor:m,closeIconColorHover:h,closeIconColorPressed:g,borderRadiusSmall:_,fontSizeMini:v,fontSizeTiny:y,fontSizeSmall:b,fontSizeMedium:x,heightMini:S,heightTiny:C,heightSmall:T,heightMedium:E,closeColorHover:D,closeColorPressed:O,buttonColor2Hover:k,buttonColor2Pressed:A,fontWeightStrong:j}=e;return Object.assign(Object.assign({},w),{closeBorderRadius:_,heightTiny:S,heightSmall:C,heightMedium:T,heightLarge:E,borderRadius:_,opacityDisabled:f,fontSizeTiny:v,fontSizeSmall:y,fontSizeMedium:b,fontSizeLarge:x,fontWeightStrong:j,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:u,colorCheckable:`#0000`,colorHoverCheckable:k,colorPressedCheckable:A,colorChecked:i,colorCheckedHover:n,colorCheckedPressed:r,border:`1px solid ${d}`,textColor:t,color:p,colorBordered:`rgb(250, 250, 252)`,closeIconColor:m,closeIconColorHover:h,closeIconColorPressed:g,closeColorHover:D,closeColorPressed:O,borderPrimary:`1px solid ${l(i,{alpha:.3})}`,textColorPrimary:i,colorPrimary:l(i,{alpha:.12}),colorBorderedPrimary:l(i,{alpha:.1}),closeIconColorPrimary:i,closeIconColorHoverPrimary:i,closeIconColorPressedPrimary:i,closeColorHoverPrimary:l(i,{alpha:.12}),closeColorPressedPrimary:l(i,{alpha:.18}),borderInfo:`1px solid ${l(a,{alpha:.3})}`,textColorInfo:a,colorInfo:l(a,{alpha:.12}),colorBorderedInfo:l(a,{alpha:.1}),closeIconColorInfo:a,closeIconColorHoverInfo:a,closeIconColorPressedInfo:a,closeColorHoverInfo:l(a,{alpha:.12}),closeColorPressedInfo:l(a,{alpha:.18}),borderSuccess:`1px solid ${l(o,{alpha:.3})}`,textColorSuccess:o,colorSuccess:l(o,{alpha:.12}),colorBorderedSuccess:l(o,{alpha:.1}),closeIconColorSuccess:o,closeIconColorHoverSuccess:o,closeIconColorPressedSuccess:o,closeColorHoverSuccess:l(o,{alpha:.12}),closeColorPressedSuccess:l(o,{alpha:.18}),borderWarning:`1px solid ${l(s,{alpha:.35})}`,textColorWarning:s,colorWarning:l(s,{alpha:.15}),colorBorderedWarning:l(s,{alpha:.12}),closeIconColorWarning:s,closeIconColorHoverWarning:s,closeIconColorPressedWarning:s,closeColorHoverWarning:l(s,{alpha:.12}),closeColorPressedWarning:l(s,{alpha:.18}),borderError:`1px solid ${l(c,{alpha:.23})}`,textColorError:c,colorError:l(c,{alpha:.1}),colorBorderedError:l(c,{alpha:.08}),closeIconColorError:c,closeIconColorHoverError:c,closeIconColorPressedError:c,closeColorHoverError:l(c,{alpha:.12}),closeColorPressedError:l(c,{alpha:.18})})}var E={name:`Tag`,common:v,self:T},D={color:Object,type:{type:String,default:`default`},round:Boolean,size:String,closable:Boolean,disabled:{type:Boolean,default:void 0}},O=c(`tag`,`
|
import{I as e,N as t,St as n,Z as r,m as i,w as a,yt as o}from"./client-BPUTdqiR.js";import{G as s,H as c,I as l,K as u,M as d,N as f,V as p,W as m,o as h,q as g,r as _,t as v}from"./light-CAboqKml.js";import{r as y}from"./css-DEmdllcC.js";import{i as b,r as x}from"./use-form-item-CmxopeL6.js";import{a as S}from"./resolve-slot-CvI9c3sm.js";import{F as C,O as w}from"./index-nLpziLPJ.js";function T(e){let{textColor2:t,primaryColorHover:n,primaryColorPressed:r,primaryColor:i,infoColor:a,successColor:o,warningColor:s,errorColor:c,baseColor:u,borderColor:d,opacityDisabled:f,tagColor:p,closeIconColor:m,closeIconColorHover:h,closeIconColorPressed:g,borderRadiusSmall:_,fontSizeMini:v,fontSizeTiny:y,fontSizeSmall:b,fontSizeMedium:x,heightMini:S,heightTiny:C,heightSmall:T,heightMedium:E,closeColorHover:D,closeColorPressed:O,buttonColor2Hover:k,buttonColor2Pressed:A,fontWeightStrong:j}=e;return Object.assign(Object.assign({},w),{closeBorderRadius:_,heightTiny:S,heightSmall:C,heightMedium:T,heightLarge:E,borderRadius:_,opacityDisabled:f,fontSizeTiny:v,fontSizeSmall:y,fontSizeMedium:b,fontSizeLarge:x,fontWeightStrong:j,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:u,colorCheckable:`#0000`,colorHoverCheckable:k,colorPressedCheckable:A,colorChecked:i,colorCheckedHover:n,colorCheckedPressed:r,border:`1px solid ${d}`,textColor:t,color:p,colorBordered:`rgb(250, 250, 252)`,closeIconColor:m,closeIconColorHover:h,closeIconColorPressed:g,closeColorHover:D,closeColorPressed:O,borderPrimary:`1px solid ${l(i,{alpha:.3})}`,textColorPrimary:i,colorPrimary:l(i,{alpha:.12}),colorBorderedPrimary:l(i,{alpha:.1}),closeIconColorPrimary:i,closeIconColorHoverPrimary:i,closeIconColorPressedPrimary:i,closeColorHoverPrimary:l(i,{alpha:.12}),closeColorPressedPrimary:l(i,{alpha:.18}),borderInfo:`1px solid ${l(a,{alpha:.3})}`,textColorInfo:a,colorInfo:l(a,{alpha:.12}),colorBorderedInfo:l(a,{alpha:.1}),closeIconColorInfo:a,closeIconColorHoverInfo:a,closeIconColorPressedInfo:a,closeColorHoverInfo:l(a,{alpha:.12}),closeColorPressedInfo:l(a,{alpha:.18}),borderSuccess:`1px solid ${l(o,{alpha:.3})}`,textColorSuccess:o,colorSuccess:l(o,{alpha:.12}),colorBorderedSuccess:l(o,{alpha:.1}),closeIconColorSuccess:o,closeIconColorHoverSuccess:o,closeIconColorPressedSuccess:o,closeColorHoverSuccess:l(o,{alpha:.12}),closeColorPressedSuccess:l(o,{alpha:.18}),borderWarning:`1px solid ${l(s,{alpha:.35})}`,textColorWarning:s,colorWarning:l(s,{alpha:.15}),colorBorderedWarning:l(s,{alpha:.12}),closeIconColorWarning:s,closeIconColorHoverWarning:s,closeIconColorPressedWarning:s,closeColorHoverWarning:l(s,{alpha:.12}),closeColorPressedWarning:l(s,{alpha:.18}),borderError:`1px solid ${l(c,{alpha:.23})}`,textColorError:c,colorError:l(c,{alpha:.1}),colorBorderedError:l(c,{alpha:.08}),closeIconColorError:c,closeIconColorHoverError:c,closeIconColorPressedError:c,closeColorHoverError:l(c,{alpha:.12}),closeColorPressedError:l(c,{alpha:.18})})}var E={name:`Tag`,common:v,self:T},D={color:Object,type:{type:String,default:`default`},round:Boolean,size:String,closable:Boolean,disabled:{type:Boolean,default:void 0}},O=c(`tag`,`
|
||||||
--n-close-margin: var(--n-close-margin-top) var(--n-close-margin-right) var(--n-close-margin-bottom) var(--n-close-margin-left);
|
--n-close-margin: var(--n-close-margin-top) var(--n-close-margin-right) var(--n-close-margin-bottom) var(--n-close-margin-left);
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
position: relative;
|
position: relative;
|
||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
|||||||
import{E as e,Ht as t,M as n,N as r,O as i,T as a,X as o,ct as s,j as c,l,q as u,t as d,w as f,wt as p,y as m,yt as h}from"./client-BPUTdqiR.js";import{t as g}from"./Button-BRR32HU4.js";import{t as _}from"./QrCode-D6_WLICr.js";import{t as v}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as y}from"./datetime-BJNH0M1T.js";import{t as b}from"./MessagePaper-DBUWHrDL.js";var x={class:`ticket-page center-block-custom`},S={class:`width700`},C={class:`ticket-card`},w={key:0,class:`error`,role:`alert`},T={class:`qr-block`},E={class:`used`,role:`status`},D={key:1,class:`used`,role:`status`},O=v(r({__name:`TicketPage`,setup(r){let v=l(),O=d(),k=f(()=>String(v.params.token||``)),A=h(),j=h(!1),M=h(``),N=f(()=>window.location.href);async function P(){j.value=!0,M.value=``;try{let e=await O.GetTicket({token:k.value});if(!e.ticket){M.value=`Билет не найден`;return}A.value=e.ticket}catch{M.value=`Не удалось загрузить билет. Попробуйте ещё раз.`}finally{j.value=!1}}return u(P),(r,l)=>(o(),i(`div`,x,[a(`div`,S,[n(b,null,{default:s(()=>[a(`div`,C,[l[7]||=a(`p`,{class:`ticket-kicker`},`ВЕЧЕРНИЙ ДЕТЕКТИВ · ПРОПУСК`,-1),l[8]||=a(`h1`,null,`Билет на игру`,-1),M.value?(o(),i(`p`,w,t(M.value),1)):A.value?(o(),i(m,{key:1},[a(`h2`,null,t(A.value.gameName),1),l[5]||=a(`hr`,null,null,-1),a(`dl`,null,[a(`div`,null,[l[0]||=a(`dt`,null,`Начало`,-1),a(`dd`,null,t(p(y)(A.value.startAt)),1)]),a(`div`,null,[l[1]||=a(`dt`,null,`Место`,-1),a(`dd`,null,t(A.value.location||`Онлайн`),1)])]),a(`div`,T,[n(p(_),{value:N.value,size:300,padding:0},null,8,[`value`])]),l[6]||=a(`p`,null,`Покажите этот QR-код организатору.`,-1),A.value.status===`used`?(o(),i(m,{key:0},[l[2]||=a(`hr`,null,null,-1),a(`p`,E,` Билет уже использован`+t(A.value.usedAt?` ${p(y)(A.value.usedAt)}`:``)+t(A.value.usedBy?` организатором ${A.value.usedBy}`:``)+`. `,1)],64)):A.value.gameStatus===`finish`?(o(),i(`p`,D,` Игра уже завершена. `)):(o(),i(m,{key:2},[l[3]||=a(`hr`,null,null,-1),l[4]||=a(`p`,{class:`active`,role:`status`},`Билет действителен.`,-1)],64))],64)):(o(),e(p(g),{key:2,loading:j.value,onClick:P},{default:s(()=>[c(t(j.value?`Загрузка`:`Повторить`),1)]),_:1},8,[`loading`]))])]),_:1})])]))}}),[[`__scopeId`,`data-v-5f755593`]]),k=r({__name:`TicketView`,setup(t){return(t,n)=>(o(),e(O))}});export{k as default};
|
import{E as e,Ht as t,M as n,N as r,O as i,T as a,X as o,ct as s,j as c,l,q as u,t as d,w as f,wt as p,y as m,yt as h}from"./client-BPUTdqiR.js";import{t as g}from"./Button-B-H5gLEC.js";import{t as _}from"./QrCode-D6_WLICr.js";import{t as v}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as y}from"./datetime-BJNH0M1T.js";import{t as b}from"./MessagePaper-DBUWHrDL.js";var x={class:`ticket-page center-block-custom`},S={class:`width700`},C={class:`ticket-card`},w={key:0,class:`error`,role:`alert`},T={class:`qr-block`},E={class:`used`,role:`status`},D={key:1,class:`used`,role:`status`},O=v(r({__name:`TicketPage`,setup(r){let v=l(),O=d(),k=f(()=>String(v.params.token||``)),A=h(),j=h(!1),M=h(``),N=f(()=>window.location.href);async function P(){j.value=!0,M.value=``;try{let e=await O.GetTicket({token:k.value});if(!e.ticket){M.value=`Билет не найден`;return}A.value=e.ticket}catch{M.value=`Не удалось загрузить билет. Попробуйте ещё раз.`}finally{j.value=!1}}return u(P),(r,l)=>(o(),i(`div`,x,[a(`div`,S,[n(b,null,{default:s(()=>[a(`div`,C,[l[7]||=a(`p`,{class:`ticket-kicker`},`ВЕЧЕРНИЙ ДЕТЕКТИВ · ПРОПУСК`,-1),l[8]||=a(`h1`,null,`Билет на игру`,-1),M.value?(o(),i(`p`,w,t(M.value),1)):A.value?(o(),i(m,{key:1},[a(`h2`,null,t(A.value.gameName),1),l[5]||=a(`hr`,null,null,-1),a(`dl`,null,[a(`div`,null,[l[0]||=a(`dt`,null,`Начало`,-1),a(`dd`,null,t(p(y)(A.value.startAt)),1)]),a(`div`,null,[l[1]||=a(`dt`,null,`Место`,-1),a(`dd`,null,t(A.value.location||`Онлайн`),1)])]),a(`div`,T,[n(p(_),{value:N.value,size:300,padding:0},null,8,[`value`])]),l[6]||=a(`p`,null,`Покажите этот QR-код организатору.`,-1),A.value.status===`used`?(o(),i(m,{key:0},[l[2]||=a(`hr`,null,null,-1),a(`p`,E,` Билет уже использован`+t(A.value.usedAt?` ${p(y)(A.value.usedAt)}`:``)+t(A.value.usedBy?` организатором ${A.value.usedBy}`:``)+`. `,1)],64)):A.value.gameStatus===`finish`?(o(),i(`p`,D,` Игра уже завершена. `)):(o(),i(m,{key:2},[l[3]||=a(`hr`,null,null,-1),l[4]||=a(`p`,{class:`active`,role:`status`},`Билет действителен.`,-1)],64))],64)):(o(),e(p(g),{key:2,loading:j.value,onClick:P},{default:s(()=>[c(t(j.value?`Загрузка`:`Повторить`),1)]),_:1},8,[`loading`]))])]),_:1})])]))}}),[[`__scopeId`,`data-v-5f755593`]]),k=r({__name:`TicketView`,setup(t){return(t,n)=>(o(),e(O))}});export{k as default};
|
||||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
|||||||
import{M as e,N as t,O as n,X as r,y as i}from"./client-BPUTdqiR.js";import{t as a}from"./DocsPage-C7Ksq7hj.js";import{t as o}from"./HeaderMenu-BJM4gJY8.js";var s=t({__name:`UserAgreementView`,setup(t){return(t,s)=>(r(),n(i,null,[e(a,{kind:`terms`}),e(o)],64))}});export{s as default};
|
import{M as e,N as t,O as n,X as r,y as i}from"./client-BPUTdqiR.js";import{t as a}from"./DocsPage-COOpxzD-.js";import{t as o}from"./HeaderMenu-BFFUwaVE.js";var s=t({__name:`UserAgreementView`,setup(t){return(t,s)=>(r(),n(i,null,[e(a,{kind:`terms`}),e(o)],64))}});export{s as default};
|
||||||
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
@@ -1 +1 @@
|
|||||||
import{r as e}from"./client-BPUTdqiR.js";import{t}from"./index-VWZDnxHd.js";function n(){let e=t();return r(e.refreshTokenAction,e.getToken)}function r(t,n){async function r(r,i){let a={},o=n();o&&(a.Authorization=`Bearer ${o}`);let s=await fetch(`${e()}/${r}`,{...i,headers:{...a,...i.headers}});if(s.status==401){await t();let o=n();o&&(a.Authorization=`Bearer ${o}`),s=await fetch(`${e()}/${r}`,{...i,headers:{...a,...i.headers}})}return s}async function o(e,t){let n=await r(e,{method:`GET`});if(!n.ok)throw Error(await a(n));return{blob:await n.blob(),filename:i(n.headers.get(`Content-Disposition`))||t}}function s(e){return o(`api/scenarios/${e}/archive`,`scenario-${e}.zip`)}function c(e){return o(`api/games/${e}/teams/qr.pdf`,`game-${e}.pdf`)}async function l(e){let t=await r(`api/scenarios/archive`,{method:`POST`,headers:{"Content-Type":e.type||`application/zip`},body:e}),n=await t.json().catch(()=>null);if(!t.ok)throw Error(n?.message||`Ошибка сервера (${t.status})`);return{ID:typeof n?.ID==`number`?n.ID:null}}return{downloadScenarioArchive:s,downloadTeamQR:c,uploadScenarioArchive:l}}function i(e){if(!e)return``;let t=e.match(/filename\*=UTF-8''([^;]+)/i);if(t)try{return decodeURIComponent(t[1].trim()).replace(/[\\/:*?"<>|]/g,`_`)}catch{}let n=e.match(/filename="?([^";]+)"?/i);return(n?n[1]:``).replace(/[\\/:*?"<>|]/g,`_`)}async function a(e){let t=await e.json().catch(()=>null);return t&&typeof t.message==`string`&&t.message!==``?t.message:`Ошибка сервера (${e.status})`}export{n as t};
|
import{r as e}from"./client-BPUTdqiR.js";import{t}from"./index-nLpziLPJ.js";function n(){let e=t();return r(e.refreshTokenAction,e.getToken)}function r(t,n){async function r(r,i){let a={},o=n();o&&(a.Authorization=`Bearer ${o}`);let s=await fetch(`${e()}/${r}`,{...i,headers:{...a,...i.headers}});if(s.status==401){await t();let o=n();o&&(a.Authorization=`Bearer ${o}`),s=await fetch(`${e()}/${r}`,{...i,headers:{...a,...i.headers}})}return s}async function o(e,t){let n=await r(e,{method:`GET`});if(!n.ok)throw Error(await a(n));return{blob:await n.blob(),filename:i(n.headers.get(`Content-Disposition`))||t}}function s(e){return o(`api/scenarios/${e}/archive`,`scenario-${e}.zip`)}function c(e){return o(`api/games/${e}/teams/qr.pdf`,`game-${e}.pdf`)}async function l(e){let t=await r(`api/scenarios/archive`,{method:`POST`,headers:{"Content-Type":e.type||`application/zip`},body:e}),n=await t.json().catch(()=>null);if(!t.ok)throw Error(n?.message||`Ошибка сервера (${t.status})`);return{ID:typeof n?.ID==`number`?n.ID:null}}return{downloadScenarioArchive:s,downloadTeamQR:c,uploadScenarioArchive:l}}function i(e){if(!e)return``;let t=e.match(/filename\*=UTF-8''([^;]+)/i);if(t)try{return decodeURIComponent(t[1].trim()).replace(/[\\/:*?"<>|]/g,`_`)}catch{}let n=e.match(/filename="?([^";]+)"?/i);return(n?n[1]:``).replace(/[\\/:*?"<>|]/g,`_`)}async function a(e){let t=await e.json().catch(()=>null);return t&&typeof t.message==`string`&&t.message!==``?t.message:`Ошибка сервера (${e.status})`}export{n as t};
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import{$ as e,I as t,N as n,R as r,W as i,Z as a,f as o,h as s,i as c,n as l,w as u}from"./client-BPUTdqiR.js";import{p as d,t as f}from"./index-VWZDnxHd.js";function p(){let e=r(d,null);return e===null&&o(`use-message`,"No outer <n-message-provider /> founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}function m(){let e=f();return h(e.refreshTokenAction,e.getToken)}function h(e,t){return c(g(e,l(t)))}function g(e,t){return async n=>{let r;try{r=await t(n)}catch{await e(),r=await t(n)}if(r&&typeof r==`object`&&`code`in r&&r.code!==0)throw Error(`message`in r&&typeof r.message==`string`?r.message:`Ошибка запроса`);return r}}function _(e){let t=0;for(let n=0;n<e.length;++n)e[n]===`&`&&++t;return t}var v=/\s*,(?![^(]*\))\s*/g,y=/\s+/g;function b(e,t){let n=[];return t.split(v).forEach(t=>{let r=_(t);if(!r){e.forEach(e=>{n.push((e&&e+` `)+t)});return}else if(r===1){e.forEach(e=>{n.push(t.replace(`&`,e))});return}let i=[t];for(;r--;){let t=[];i.forEach(n=>{e.forEach(e=>{t.push(n.replace(`&`,e))})}),i=t}i.forEach(e=>n.push(e))}),n}function x(e,t){let n=[];return t.split(v).forEach(t=>{e.forEach(e=>{n.push((e&&e+` `)+t)})}),n}function S(e){let t=[``];return e.forEach(e=>{e&&=e.trim(),e&&(t=e.includes(`&`)?b(t,e):x(t,e))}),t.join(`, `).replace(y,` `)}var C=/[A-Z]/g;function w(e){return e.replace(C,e=>`-`+e.toLowerCase())}function T(e,t=` `){return typeof e==`object`&&e?` {
|
import{$ as e,I as t,N as n,R as r,W as i,Z as a,f as o,h as s,i as c,n as l,w as u}from"./client-BPUTdqiR.js";import{p as d,t as f}from"./index-nLpziLPJ.js";function p(){let e=r(d,null);return e===null&&o(`use-message`,"No outer <n-message-provider /> founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}function m(){let e=f();return h(e.refreshTokenAction,e.getToken)}function h(e,t){return c(g(e,l(t)))}function g(e,t){return async n=>{let r;try{r=await t(n)}catch{await e(),r=await t(n)}if(r&&typeof r==`object`&&`code`in r&&r.code!==0)throw Error(`message`in r&&typeof r.message==`string`?r.message:`Ошибка запроса`);return r}}function _(e){let t=0;for(let n=0;n<e.length;++n)e[n]===`&`&&++t;return t}var v=/\s*,(?![^(]*\))\s*/g,y=/\s+/g;function b(e,t){let n=[];return t.split(v).forEach(t=>{let r=_(t);if(!r){e.forEach(e=>{n.push((e&&e+` `)+t)});return}else if(r===1){e.forEach(e=>{n.push(t.replace(`&`,e))});return}let i=[t];for(;r--;){let t=[];i.forEach(n=>{e.forEach(e=>{t.push(n.replace(`&`,e))})}),i=t}i.forEach(e=>n.push(e))}),n}function x(e,t){let n=[];return t.split(v).forEach(t=>{e.forEach(e=>{n.push((e&&e+` `)+t)})}),n}function S(e){let t=[``];return e.forEach(e=>{e&&=e.trim(),e&&(t=e.includes(`&`)?b(t,e):x(t,e))}),t.join(`, `).replace(y,` `)}var C=/[A-Z]/g;function w(e){return e.replace(C,e=>`-`+e.toLowerCase())}function T(e,t=` `){return typeof e==`object`&&e?` {
|
||||||
`+Object.entries(e).map(e=>t+` ${w(e[0])}: ${e[1]};`).join(`
|
`+Object.entries(e).map(e=>t+` ${w(e[0])}: ${e[1]};`).join(`
|
||||||
`)+`
|
`)+`
|
||||||
`+t+`}`:`: ${e};`}function E(e,t,n){return typeof e==`function`?e({context:t.context,props:n}):e}function D(e,t,n,r){if(!t)return``;let i=E(t,n,r);if(!i)return``;if(typeof i==`string`)return`${e} {\n${i}\n}`;let a=Object.keys(i);if(a.length===0)return n.config.keepEmptyBlock?e+` {
|
`+t+`}`:`: ${e};`}function E(e,t,n){return typeof e==`function`?e({context:t.context,props:n}):e}function D(e,t,n,r){if(!t)return``;let i=E(t,n,r);if(!i)return``;if(typeof i==`string`)return`${e} {\n${i}\n}`;let a=Object.keys(i);if(a.length===0)return n.config.keepEmptyBlock?e+` {
|
||||||
+1
-1
@@ -1 +1 @@
|
|||||||
import{D as e,d as t}from"./light-CAboqKml.js";import{K as n,W as r}from"./index-VWZDnxHd.js";var i=/^(\d|\.)+$/,a=/(\d|\.)+/;function o(e,{c:t=1,offset:n=0,attachPx:r=!0}={}){if(typeof e==`number`){let r=(e+n)*t;return r===0?`0`:`${r}px`}else if(typeof e==`string`)if(i.test(e)){let i=(Number(e)+n)*t;return r?i===0?`0`:`${i}px`:`${i}`}else{let r=a.exec(e);return r?e.replace(a,String((Number(r[0])+n)*t)):e}return e}var s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/;function l(t,r){if(e(t))return!1;var i=typeof t;return i==`number`||i==`symbol`||i==`boolean`||t==null||n(t)?!0:c.test(t)||!s.test(t)||r!=null&&t in Object(r)}var u=`Expected a function`;function d(e,n){if(typeof e!=`function`||n!=null&&typeof n!=`function`)throw TypeError(u);var r=function(){var t=arguments,i=n?n.apply(this,t):t[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,t);return r.cache=a.set(i,o)||a,o};return r.cache=new(d.Cache||t),r}d.Cache=t;var f=500;function p(e){var t=d(e,function(e){return n.size===f&&n.clear(),e}),n=t.cache;return t}var m=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,h=/\\(\\)?/g,g=p(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(m,function(e,n,r,i){t.push(r?i.replace(h,`$1`):n||e)}),t});function _(t,n){return e(t)?t:l(t,n)?[t]:g(r(t))}var v=1/0;function y(e){if(typeof e==`string`||n(e))return e;var t=e+``;return t==`0`&&1/e==-v?`-0`:t}function b(e,t){t=_(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[y(t[n++])];return n&&n==r?e:void 0}function x(e,t,n){var r=e==null?void 0:b(e,t);return r===void 0?n:r}export{l as a,_ as i,b as n,o,y as r,x as t};
|
import{D as e,d as t}from"./light-CAboqKml.js";import{K as n,W as r}from"./index-nLpziLPJ.js";var i=/^(\d|\.)+$/,a=/(\d|\.)+/;function o(e,{c:t=1,offset:n=0,attachPx:r=!0}={}){if(typeof e==`number`){let r=(e+n)*t;return r===0?`0`:`${r}px`}else if(typeof e==`string`)if(i.test(e)){let i=(Number(e)+n)*t;return r?i===0?`0`:`${i}px`:`${i}`}else{let r=a.exec(e);return r?e.replace(a,String((Number(r[0])+n)*t)):e}return e}var s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/;function l(t,r){if(e(t))return!1;var i=typeof t;return i==`number`||i==`symbol`||i==`boolean`||t==null||n(t)?!0:c.test(t)||!s.test(t)||r!=null&&t in Object(r)}var u=`Expected a function`;function d(e,n){if(typeof e!=`function`||n!=null&&typeof n!=`function`)throw TypeError(u);var r=function(){var t=arguments,i=n?n.apply(this,t):t[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,t);return r.cache=a.set(i,o)||a,o};return r.cache=new(d.Cache||t),r}d.Cache=t;var f=500;function p(e){var t=d(e,function(e){return n.size===f&&n.clear(),e}),n=t.cache;return t}var m=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,h=/\\(\\)?/g,g=p(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(m,function(e,n,r,i){t.push(r?i.replace(h,`$1`):n||e)}),t});function _(t,n){return e(t)?t:l(t,n)?[t]:g(r(t))}var v=1/0;function y(e){if(typeof e==`string`||n(e))return e;var t=e+``;return t==`0`&&1/e==-v?`-0`:t}function b(e,t){t=_(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[y(t[n++])];return n&&n==r?e:void 0}function x(e,t,n){var r=e==null?void 0:b(e,t);return r===void 0?n:r}export{l as a,_ as i,b as n,o,y as r,x as t};
|
||||||
+2
-2
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
|||||||
import{G as e,I as t,N as n,ot as r,q as i,y as a,yt as o}from"./client-BPUTdqiR.js";import{d as s,f as c,u as l}from"./Card-DxmPfqda.js";import{Z as u}from"./index-VWZDnxHd.js";function d(e){return typeof e==`string`?document.querySelector(e):e()||null}function f(e){return e instanceof HTMLElement}function p(e){for(let t=0;t<e.childNodes.length;t++){let n=e.childNodes[t];if(f(n)&&(h(n)||p(n)))return!0}return!1}function m(e){for(let t=e.childNodes.length-1;t>=0;t--){let n=e.childNodes[t];if(f(n)&&(h(n)||m(n)))return!0}return!1}function h(e){if(!g(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function g(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute(`tabIndex`)!==null)return!0;if(e.getAttribute(`disabled`))return!1;switch(e.nodeName){case`A`:return!!e.href&&e.rel!==`ignore`;case`INPUT`:return e.type!==`hidden`&&e.type!==`file`;case`SELECT`:case`TEXTAREA`:return!0;default:return!1}}var _=[],v=n({name:`FocusTrap`,props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:[String,Function],finalFocusTo:[String,Function],returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(t){let n=u(),a=o(null),f=o(null),h=!1,g=!1,v=typeof document>`u`?null:document.activeElement;function y(){return _[_.length-1]===n}function b(e){var n;e.code===`Escape`&&y()&&((n=t.onEsc)==null||n.call(t,e))}i(()=>{r(()=>t.active,e=>{e?(C(),s(`keydown`,document,b)):(l(`keydown`,document,b),h&&w())},{immediate:!0})}),e(()=>{l(`keydown`,document,b),h&&w()});function x(e){if(!g&&y()){let t=S();if(t===null||t.contains(c(e)))return;T(`first`)}}function S(){let e=a.value;if(e===null)return null;let t=e;for(;t=t.nextSibling,!(t===null||t instanceof Element&&t.tagName===`DIV`););return t}function C(){var e;if(!t.disabled){if(_.push(n),t.autoFocus){let{initialFocusTo:n}=t;n===void 0?T(`first`):(e=d(n))==null||e.focus({preventScroll:!0})}h=!0,document.addEventListener(`focus`,x,!0)}}function w(){var e;if(t.disabled||(document.removeEventListener(`focus`,x,!0),_=_.filter(e=>e!==n),y()))return;let{finalFocusTo:r}=t;r===void 0?t.returnFocusOnDeactivated&&v instanceof HTMLElement&&(g=!0,v.focus({preventScroll:!0}),g=!1):(e=d(r))==null||e.focus({preventScroll:!0})}function T(e){if(y()&&t.active){let t=a.value,n=f.value;if(t!==null&&n!==null){let r=S();if(r==null||r===n){g=!0,t.focus({preventScroll:!0}),g=!1;return}g=!0;let i=e===`first`?p(r):m(r);g=!1,i||(g=!0,t.focus({preventScroll:!0}),g=!1)}}}function E(e){if(g)return;let t=S();t!==null&&(e.relatedTarget!==null&&t.contains(e.relatedTarget)?T(`last`):T(`first`))}function D(e){g||(e.relatedTarget!==null&&e.relatedTarget===a.value?T(`last`):T(`first`))}return{focusableStartRef:a,focusableEndRef:f,focusableStyle:`position: absolute; height: 0; width: 0;`,handleStartFocus:E,handleEndFocus:D}},render(){let{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();let{active:n,focusableStyle:r}=this;return t(a,null,[t(`div`,{"aria-hidden":`true`,tabindex:n?`0`:`-1`,ref:`focusableStartRef`,style:r,onFocus:this.handleStartFocus}),e(),t(`div`,{"aria-hidden":`true`,style:r,ref:`focusableEndRef`,tabindex:n?`0`:`-1`,onFocus:this.handleEndFocus})])}}),y=new WeakSet;function b(e){y.add(e)}function x(e){return!y.has(e)}function S(e,t=[],n){let r={};return t.forEach(t=>{r[t]=e[t]}),Object.assign(r,n)}export{v as i,x as n,b as r,S as t};
|
import{G as e,I as t,N as n,ot as r,q as i,y as a,yt as o}from"./client-BPUTdqiR.js";import{d as s,f as c,u as l}from"./Card-2ODuArBX.js";import{Z as u}from"./index-nLpziLPJ.js";function d(e){return typeof e==`string`?document.querySelector(e):e()||null}function f(e){return e instanceof HTMLElement}function p(e){for(let t=0;t<e.childNodes.length;t++){let n=e.childNodes[t];if(f(n)&&(h(n)||p(n)))return!0}return!1}function m(e){for(let t=e.childNodes.length-1;t>=0;t--){let n=e.childNodes[t];if(f(n)&&(h(n)||m(n)))return!0}return!1}function h(e){if(!g(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function g(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute(`tabIndex`)!==null)return!0;if(e.getAttribute(`disabled`))return!1;switch(e.nodeName){case`A`:return!!e.href&&e.rel!==`ignore`;case`INPUT`:return e.type!==`hidden`&&e.type!==`file`;case`SELECT`:case`TEXTAREA`:return!0;default:return!1}}var _=[],v=n({name:`FocusTrap`,props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:[String,Function],finalFocusTo:[String,Function],returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(t){let n=u(),a=o(null),f=o(null),h=!1,g=!1,v=typeof document>`u`?null:document.activeElement;function y(){return _[_.length-1]===n}function b(e){var n;e.code===`Escape`&&y()&&((n=t.onEsc)==null||n.call(t,e))}i(()=>{r(()=>t.active,e=>{e?(C(),s(`keydown`,document,b)):(l(`keydown`,document,b),h&&w())},{immediate:!0})}),e(()=>{l(`keydown`,document,b),h&&w()});function x(e){if(!g&&y()){let t=S();if(t===null||t.contains(c(e)))return;T(`first`)}}function S(){let e=a.value;if(e===null)return null;let t=e;for(;t=t.nextSibling,!(t===null||t instanceof Element&&t.tagName===`DIV`););return t}function C(){var e;if(!t.disabled){if(_.push(n),t.autoFocus){let{initialFocusTo:n}=t;n===void 0?T(`first`):(e=d(n))==null||e.focus({preventScroll:!0})}h=!0,document.addEventListener(`focus`,x,!0)}}function w(){var e;if(t.disabled||(document.removeEventListener(`focus`,x,!0),_=_.filter(e=>e!==n),y()))return;let{finalFocusTo:r}=t;r===void 0?t.returnFocusOnDeactivated&&v instanceof HTMLElement&&(g=!0,v.focus({preventScroll:!0}),g=!1):(e=d(r))==null||e.focus({preventScroll:!0})}function T(e){if(y()&&t.active){let t=a.value,n=f.value;if(t!==null&&n!==null){let r=S();if(r==null||r===n){g=!0,t.focus({preventScroll:!0}),g=!1;return}g=!0;let i=e===`first`?p(r):m(r);g=!1,i||(g=!0,t.focus({preventScroll:!0}),g=!1)}}}function E(e){if(g)return;let t=S();t!==null&&(e.relatedTarget!==null&&t.contains(e.relatedTarget)?T(`last`):T(`first`))}function D(e){g||(e.relatedTarget!==null&&e.relatedTarget===a.value?T(`last`):T(`first`))}return{focusableStartRef:a,focusableEndRef:f,focusableStyle:`position: absolute; height: 0; width: 0;`,handleStartFocus:E,handleEndFocus:D}},render(){let{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();let{active:n,focusableStyle:r}=this;return t(a,null,[t(`div`,{"aria-hidden":`true`,tabindex:n?`0`:`-1`,ref:`focusableStartRef`,style:r,onFocus:this.handleStartFocus}),e(),t(`div`,{"aria-hidden":`true`,style:r,ref:`focusableEndRef`,tabindex:n?`0`:`-1`,onFocus:this.handleEndFocus})])}}),y=new WeakSet;function b(e){y.add(e)}function x(e){return!y.has(e)}function S(e,t=[],n){let r={};return t.forEach(t=>{r[t]=e[t]}),Object.assign(r,n)}export{v as i,x as n,b as r,S as t};
|
||||||
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
@@ -5,7 +5,7 @@
|
|||||||
<link rel="icon" href="/favicon.ico" />
|
<link rel="icon" href="/favicon.ico" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>Вечерний детектив</title>
|
<title>Вечерний детектив</title>
|
||||||
<script type="module" crossorigin src="/assets/index-VWZDnxHd.js"></script>
|
<script type="module" crossorigin src="/assets/index-nLpziLPJ.js"></script>
|
||||||
<link rel="modulepreload" crossorigin href="/assets/client-BPUTdqiR.js">
|
<link rel="modulepreload" crossorigin href="/assets/client-BPUTdqiR.js">
|
||||||
<link rel="modulepreload" crossorigin href="/assets/light-CAboqKml.js">
|
<link rel="modulepreload" crossorigin href="/assets/light-CAboqKml.js">
|
||||||
<link rel="modulepreload" crossorigin href="/assets/light-p8ayFy8X.js">
|
<link rel="modulepreload" crossorigin href="/assets/light-p8ayFy8X.js">
|
||||||
|
|||||||
Reference in New Issue
Block a user