This commit is contained in:
2026-10-11 02:38:28 +07:00
parent 6c04260332
commit 46a9864c8c
58 changed files with 520 additions and 519 deletions
@@ -1,4 +1,4 @@
import{H as e,Lt as t,Mt as n,U as r,X as i,Z as a,at as o,bt as s,d as c,g as l,hn as u,it as d,kt as f,nt as p,p as m,st as h,tt as g}from"./client-Cr-cm5gA.js";import{o as _}from"./es-BgZM4SOf.js";import{i as v,o as y}from"./_plugin-vue_export-helper-D-vCjaLb.js";import{B as b,D as x,G as S,H as C,I as w,L as T,O as E,V as D,z as O}from"./index-BDx9g-XU.js";function k(e){let{lineHeight:t,borderRadius:n,fontWeightStrong:r,baseColor:o,dividerColor:s,actionColor:c,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({},E),{fontSize:b,lineHeight:t,titleFontWeight:r,borderRadius:n,border:`1px solid ${s}`,color:c,titleTextColor:l,iconColor:u,contentTextColor:u,closeBorderRadius:n,closeColorHover:d,closeColorPressed:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,borderInfo:`1px solid ${a(o,i(g,{alpha:.25}))}`,colorInfo:a(o,i(g,{alpha:.08})),titleTextColorInfo:l,iconColorInfo:g,contentTextColorInfo:u,closeColorHoverInfo:d,closeColorPressedInfo:f,closeIconColorInfo:p,closeIconColorHoverInfo:m,closeIconColorPressedInfo:h,borderSuccess:`1px solid ${a(o,i(_,{alpha:.25}))}`,colorSuccess:a(o,i(_,{alpha:.08})),titleTextColorSuccess:l,iconColorSuccess:_,contentTextColorSuccess:u,closeColorHoverSuccess:d,closeColorPressedSuccess:f,closeIconColorSuccess:p,closeIconColorHoverSuccess:m,closeIconColorPressedSuccess:h,borderWarning:`1px solid ${a(o,i(v,{alpha:.33}))}`,colorWarning:a(o,i(v,{alpha:.08})),titleTextColorWarning:l,iconColorWarning:v,contentTextColorWarning:u,closeColorHoverWarning:d,closeColorPressedWarning:f,closeIconColorWarning:p,closeIconColorHoverWarning:m,closeIconColorPressedWarning:h,borderError:`1px solid ${a(o,i(y,{alpha:.25}))}`,colorError:a(o,i(y,{alpha:.08})),titleTextColorError:l,iconColorError:y,contentTextColorError:u,closeColorHoverError:d,closeColorPressedError:f,closeIconColorError:p,closeIconColorHoverError:m,closeIconColorPressedError:h})}var A={name:`Alert`,common:c,self:k},j=p(`alert`,` import{H as e,Lt as t,Mt as n,U as r,X as i,Z as a,at as o,bt as s,d as c,g as l,hn as u,it as d,kt as f,nt as p,p as m,st as h,tt as g}from"./client-Cr-cm5gA.js";import{o as _}from"./es-B8t08Ksa.js";import{i as v,o as y}from"./_plugin-vue_export-helper-D-vCjaLb.js";import{B as b,D as x,G as S,H as C,I as w,L as T,O as E,V as D,z as O}from"./index-DvRZPtUt.js";function k(e){let{lineHeight:t,borderRadius:n,fontWeightStrong:r,baseColor:o,dividerColor:s,actionColor:c,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({},E),{fontSize:b,lineHeight:t,titleFontWeight:r,borderRadius:n,border:`1px solid ${s}`,color:c,titleTextColor:l,iconColor:u,contentTextColor:u,closeBorderRadius:n,closeColorHover:d,closeColorPressed:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,borderInfo:`1px solid ${a(o,i(g,{alpha:.25}))}`,colorInfo:a(o,i(g,{alpha:.08})),titleTextColorInfo:l,iconColorInfo:g,contentTextColorInfo:u,closeColorHoverInfo:d,closeColorPressedInfo:f,closeIconColorInfo:p,closeIconColorHoverInfo:m,closeIconColorPressedInfo:h,borderSuccess:`1px solid ${a(o,i(_,{alpha:.25}))}`,colorSuccess:a(o,i(_,{alpha:.08})),titleTextColorSuccess:l,iconColorSuccess:_,contentTextColorSuccess:u,closeColorHoverSuccess:d,closeColorPressedSuccess:f,closeIconColorSuccess:p,closeIconColorHoverSuccess:m,closeIconColorPressedSuccess:h,borderWarning:`1px solid ${a(o,i(v,{alpha:.33}))}`,colorWarning:a(o,i(v,{alpha:.08})),titleTextColorWarning:l,iconColorWarning:v,contentTextColorWarning:u,closeColorHoverWarning:d,closeColorPressedWarning:f,closeIconColorWarning:p,closeIconColorHoverWarning:m,closeIconColorPressedWarning:h,borderError:`1px solid ${a(o,i(y,{alpha:.25}))}`,colorError:a(o,i(y,{alpha:.08})),titleTextColorError:l,iconColorError:y,contentTextColorError:u,closeColorHoverError:d,closeColorPressedError:f,closeIconColorError:p,closeIconColorHoverError:m,closeIconColorPressedError:h})}var A={name:`Alert`,common:c,self:k},j=p(`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,4 +1,4 @@
import{H as e,Mt as t,Pt as n,Rt as r,U as i,Vt as a,X as o,Y as s,Z as c,_n as l,at as u,bt as d,g as f,h as p,hn as m,it as h,kt as g,m as _,nt as v,ot as y,p as b,st as x,tt as S}from"./client-Cr-cm5gA.js";import{c as C,o as w,r as T,s as E}from"./_plugin-vue_export-helper-D-vCjaLb.js";import{n as D}from"./use-form-item-D5MDIr54.js";import{I as O,P as k,Q as A,R as j,W as M,w as N}from"./index-BDx9g-XU.js";var P=typeof document<`u`&&typeof window<`u`,{cubicBezierEaseInOut:F}=p;function I({duration:e=`.2s`,delay:t=`.1s`}={}){return[S(`&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to`,{opacity:1}),S(`&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from`,` import{H as e,Mt as t,Pt as n,Rt as r,U as i,Vt as a,X as o,Y as s,Z as c,_n as l,at as u,bt as d,g as f,h as p,hn as m,it as h,kt as g,m as _,nt as v,ot as y,p as b,st as x,tt as S}from"./client-Cr-cm5gA.js";import{c as C,o as w,r as T,s as E}from"./_plugin-vue_export-helper-D-vCjaLb.js";import{n as D}from"./use-form-item-D5MDIr54.js";import{I as O,P as k,Q as A,R as j,W as M,w as N}from"./index-DvRZPtUt.js";var P=typeof document<`u`&&typeof window<`u`,{cubicBezierEaseInOut:F}=p;function I({duration:e=`.2s`,delay:t=`.1s`}={}){return[S(`&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to`,{opacity:1}),S(`&.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;
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
import{Ct as e,Dt as t,In as n,Jt as r,Kt as i,Ln as a,Ot as o,St as s,hn as c,ht as l,in as u,kt as d,u as f,wt as p,xt as m,yn as h}from"./client-Cr-cm5gA.js";import{r as g}from"./es-BgZM4SOf.js";import{t as _}from"./_plugin-vue_export-helper-D-vCjaLb.js";import{t as v}from"./Rate-Dh3MJbR7.js";import{n as y}from"./index-BDx9g-XU.js";import{t as b}from"./HeaderMenu-B9QH_cmH.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=_(d({__name:`CatalogPage`,setup(d){let _=y(),M=c([]),N=f();async function P(){M.value=[];let e=await _.GetScenariosCatalog({});M.value=e.scenarios}async function F(e){N.push(`/scenarios/`+e)}return P(),(c,d)=>(i(),p(l,null,[m(`div`,x,[m(`div`,S,[(i(!0),p(l,null,r(M.value,r=>(i(),p(`div`,{class:`scenario-block`,onClick:e=>F(r.ID),key:r.ID},[m(`div`,{class:`scenario-image-block scenario-image`,style:n({backgroundImage:`url(${r.image})`})},null,4),m(`div`,w,[m(`p`,T,a(r.name),1),m(`p`,E,a(r.description),1),m(`div`,D,[r.reviewsCount?(i(),s(h(v),{key:0,value:r.averageRating,readonly:``,"allow-half":``,size:`small`},null,8,[`value`])):e(``,!0),r.reviewsCount?(i(),p(`span`,O,a(r.averageRating?.toFixed(1))+` · `+a(r.reviewsCount),1)):(i(),p(`span`,k,`Пока нет оценок`))]),r.difficulty?(i(),p(`div`,A,`Сложность: `+a(r.difficulty),1)):e(``,!0),m(`p`,j,[o(h(g),{bordered:!1,type:`success`,class:`status-block`},{default:u(()=>[t(`Автор: `+a(r.author?.username),1)]),_:2},1024)])])],8,C))),128))])]),o(b,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-935ff4be`]]),N=d({__name:`CatalogView`,setup(e){return(e,t)=>(i(),s(M))}});export{N as default}; import{Ct as e,Dt as t,In as n,Jt as r,Kt as i,Ln as a,Ot as o,St as s,hn as c,ht as l,in as u,kt as d,u as f,wt as p,xt as m,yn as h}from"./client-Cr-cm5gA.js";import{r as g}from"./es-B8t08Ksa.js";import{t as _}from"./_plugin-vue_export-helper-D-vCjaLb.js";import{t as v}from"./Rate-C4fTGXsf.js";import{n as y}from"./index-DvRZPtUt.js";import{t as b}from"./HeaderMenu-BACZAM90.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=_(d({__name:`CatalogPage`,setup(d){let _=y(),M=c([]),N=f();async function P(){M.value=[];let e=await _.GetScenariosCatalog({});M.value=e.scenarios}async function F(e){N.push(`/scenarios/`+e)}return P(),(c,d)=>(i(),p(l,null,[m(`div`,x,[m(`div`,S,[(i(!0),p(l,null,r(M.value,r=>(i(),p(`div`,{class:`scenario-block`,onClick:e=>F(r.ID),key:r.ID},[m(`div`,{class:`scenario-image-block scenario-image`,style:n({backgroundImage:`url(${r.image})`})},null,4),m(`div`,w,[m(`p`,T,a(r.name),1),m(`p`,E,a(r.description),1),m(`div`,D,[r.reviewsCount?(i(),s(h(v),{key:0,value:r.averageRating,readonly:``,"allow-half":``,size:`small`},null,8,[`value`])):e(``,!0),r.reviewsCount?(i(),p(`span`,O,a(r.averageRating?.toFixed(1))+` · `+a(r.reviewsCount),1)):(i(),p(`span`,k,`Пока нет оценок`))]),r.difficulty?(i(),p(`div`,A,`Сложность: `+a(r.difficulty),1)):e(``,!0),m(`p`,j,[o(h(g),{bordered:!1,type:`success`,class:`status-block`},{default:u(()=>[t(`Автор: `+a(r.author?.username),1)]),_:2},1024)])])],8,C))),128))])]),o(b,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-935ff4be`]]),N=d({__name:`CatalogView`,setup(e){return(e,t)=>(i(),s(M))}});export{N as default};
@@ -1 +1 @@
import{Kt as e,Ot as t,ht as n,kt as r,wt as i}from"./client-Cr-cm5gA.js";import{t as a}from"./HeaderMenu-B9QH_cmH.js";import{t as o}from"./DocsPage-XwzRbNGh.js";var s=r({__name:`ConsentView`,setup(r){return(r,s)=>(e(),i(n,null,[t(o,{kind:`consent`}),t(a)],64))}});export{s as default}; import{Kt as e,Ot as t,ht as n,kt as r,wt as i}from"./client-Cr-cm5gA.js";import{t as a}from"./HeaderMenu-BACZAM90.js";import{t as o}from"./DocsPage-DZ3doZ4c.js";var s=r({__name:`ConsentView`,setup(r){return(r,s)=>(e(),i(n,null,[t(o,{kind:`consent`}),t(a)],64))}});export{s as default};
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
import{Dt as e,Kt as t,Ln as n,Ot as r,St as i,Ut as a,a as o,hn as s,in as c,kt as l,wt as u,xt as d,yn as f}from"./client-Cr-cm5gA.js";import{t as p}from"./_plugin-vue_export-helper-D-vCjaLb.js";import{t as m}from"./Alert-BoY7vQTP.js";import{t as h}from"./Spin-BB__INGR.js";import{n as g}from"./index-BDx9g-XU.js";import{t as _}from"./HeaderText-CcPAOa5d.js";var v={class:`center-block-custom`},y={class:`width700 doc-page`},b={class:`doc-title`},x={key:0,class:`doc-loading`},S={key:2,class:`paper-block`},C={class:`paper`},w={class:`doc-text`},T={class:`docs-links`},E=p(l({__name:`DocsPage`,props:{kind:{}},setup(l){let p=l,E={terms:`Пользовательское соглашение`,privacy:`Политика конфиденциальности`,consent:`Согласие на обработку персональных данных`},D=s(``),O=s(!0),k=s(``);return a(async()=>{let e=g(),t={terms:()=>e.GetTerms({}),privacy:()=>e.GetPrivacy({}),consent:()=>e.GetConsent({})};try{let e=await t[p.kind]();D.value=e.text||``}catch(e){k.value=e instanceof Error?e.message:`Не удалось загрузить документ`}finally{O.value=!1}}),(a,s)=>(t(),u(`div`,v,[d(`div`,y,[d(`h1`,b,[r(_,null,{default:c(()=>[e(n(E[p.kind]),1)]),_:1})]),O.value?(t(),u(`div`,x,[r(f(h),{size:`large`})])):k.value?(t(),i(f(m),{key:1,type:`error`,"show-icon":!1,class:`doc-error`},{default:c(()=>[e(n(k.value),1)]),_:1})):(t(),u(`div`,S,[d(`div`,C,[d(`p`,w,n(D.value),1)]),s[0]||=d(`div`,{class:`paper-shadow paper-shadow-left`},null,-1),s[1]||=d(`div`,{class:`paper-shadow paper-shadow-right`},null,-1)])),d(`div`,T,[s[5]||=e(` Смотрите также: `,-1),r(f(o),{to:`/user-agreement`,class:`docs-link`},{default:c(()=>[...s[2]||=[e(`Пользовательское соглашение`,-1)]]),_:1}),s[6]||=e(` · `,-1),r(f(o),{to:`/privacy-policy`,class:`docs-link`},{default:c(()=>[...s[3]||=[e(`Политика конфиденциальности`,-1)]]),_:1}),s[7]||=e(` · `,-1),r(f(o),{to:`/consent`,class:`docs-link`},{default:c(()=>[...s[4]||=[e(`Согласие на обработку персональных данных`,-1)]]),_:1})])])]))}}),[[`__scopeId`,`data-v-a0534098`]]);export{E as t}; import{Dt as e,Kt as t,Ln as n,Ot as r,St as i,Ut as a,a as o,hn as s,in as c,kt as l,wt as u,xt as d,yn as f}from"./client-Cr-cm5gA.js";import{t as p}from"./_plugin-vue_export-helper-D-vCjaLb.js";import{t as m}from"./Alert-CzuICZ6p.js";import{t as h}from"./Spin-BKDcJlol.js";import{n as g}from"./index-DvRZPtUt.js";import{t as _}from"./HeaderText-CcPAOa5d.js";var v={class:`center-block-custom`},y={class:`width700 doc-page`},b={class:`doc-title`},x={key:0,class:`doc-loading`},S={key:2,class:`paper-block`},C={class:`paper`},w={class:`doc-text`},T={class:`docs-links`},E=p(l({__name:`DocsPage`,props:{kind:{}},setup(l){let p=l,E={terms:`Пользовательское соглашение`,privacy:`Политика конфиденциальности`,consent:`Согласие на обработку персональных данных`},D=s(``),O=s(!0),k=s(``);return a(async()=>{let e=g(),t={terms:()=>e.GetTerms({}),privacy:()=>e.GetPrivacy({}),consent:()=>e.GetConsent({})};try{let e=await t[p.kind]();D.value=e.text||``}catch(e){k.value=e instanceof Error?e.message:`Не удалось загрузить документ`}finally{O.value=!1}}),(a,s)=>(t(),u(`div`,v,[d(`div`,y,[d(`h1`,b,[r(_,null,{default:c(()=>[e(n(E[p.kind]),1)]),_:1})]),O.value?(t(),u(`div`,x,[r(f(h),{size:`large`})])):k.value?(t(),i(f(m),{key:1,type:`error`,"show-icon":!1,class:`doc-error`},{default:c(()=>[e(n(k.value),1)]),_:1})):(t(),u(`div`,S,[d(`div`,C,[d(`p`,w,n(D.value),1)]),s[0]||=d(`div`,{class:`paper-shadow paper-shadow-left`},null,-1),s[1]||=d(`div`,{class:`paper-shadow paper-shadow-right`},null,-1)])),d(`div`,T,[s[5]||=e(` Смотрите также: `,-1),r(f(o),{to:`/user-agreement`,class:`docs-link`},{default:c(()=>[...s[2]||=[e(`Пользовательское соглашение`,-1)]]),_:1}),s[6]||=e(` · `,-1),r(f(o),{to:`/privacy-policy`,class:`docs-link`},{default:c(()=>[...s[3]||=[e(`Политика конфиденциальности`,-1)]]),_:1}),s[7]||=e(` · `,-1),r(f(o),{to:`/consent`,class:`docs-link`},{default:c(()=>[...s[4]||=[e(`Согласие на обработку персональных данных`,-1)]]),_:1})])])]))}}),[[`__scopeId`,`data-v-a0534098`]]);export{E as t};
@@ -1 +1 @@
import{Mt as e,U as t,bt as n,g as r,kt as i,p as a,st as o}from"./client-Cr-cm5gA.js";import{a as s,i as c}from"./es-BgZM4SOf.js";import{t as l}from"./flatten-CV6OhBgk.js";import{t as u}from"./get-slot-6kXJmSMP.js";import{f as d}from"./index-BDx9g-XU.js";function f(){return d}var p={name:`Flex`,self:f},m=i({name:`Flex`,props:Object.assign(Object.assign({},a.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:i,mergedRtlRef:l}=t(e),u=a(`Flex`,`-flex`,void 0,p,e,i);return{rtlEnabled:r(`Flex`,l,i),mergedClsPrefix:i,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:{[o(`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{Mt as e,U as t,bt as n,g as r,kt as i,p as a,st as o}from"./client-Cr-cm5gA.js";import{a as s,i as c}from"./es-B8t08Ksa.js";import{t as l}from"./flatten-CV6OhBgk.js";import{t as u}from"./get-slot-6kXJmSMP.js";import{f as d}from"./index-DvRZPtUt.js";function f(){return d}var p={name:`Flex`,self:f},m=i({name:`Flex`,props:Object.assign(Object.assign({},a.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:i,mergedRtlRef:l}=t(e),u=a(`Flex`,`-flex`,void 0,p,e,i);return{rtlEnabled:r(`Flex`,l,i),mergedClsPrefix:i,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:{[o(`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};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
-1
View File
@@ -1 +0,0 @@
.game-block[data-v-4f1f6d78]{background-color:#222;border:1px solid #222;border-radius:10px;margin:10px 0;padding:20px}.game-block-hover[data-v-4f1f6d78]:hover{color:#63e2b7;cursor:pointer;border:1px solid #63e2b7}.game-create-content[data-v-4f1f6d78]{justify-content:center;align-items:center;gap:12px;display:flex}.game-create-plus[data-v-4f1f6d78]{font-size:30px}.game-block[data-v-4f1f6d78]:hover{color:#63e2b7;cursor:pointer}.game-title[data-v-4f1f6d78]{margin-bottom:10px;font-size:24px}.game-actions[data-v-4f1f6d78]{justify-content:flex-end;margin-top:10px;display:flex}.game-date[data-v-4f1f6d78],.game-description[data-v-4f1f6d78]{color:#aaa;margin-bottom:10px}.create-hint[data-v-4f1f6d78]{color:#aaa}
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
.game-block[data-v-c3285f17]{background-color:#222;border:1px solid #222;border-radius:10px;margin:10px 0;padding:20px}.game-block-hover[data-v-c3285f17]:hover{color:#63e2b7;cursor:pointer;border:1px solid #63e2b7}.game-create-content[data-v-c3285f17]{justify-content:center;align-items:center;gap:12px;display:flex}.game-create-plus[data-v-c3285f17]{font-size:30px}.game-block[data-v-c3285f17]:hover{color:#63e2b7;cursor:pointer}.game-title[data-v-c3285f17]{margin-bottom:10px;font-size:24px}.game-actions[data-v-c3285f17]{justify-content:flex-end;margin-top:10px;display:flex}.game-date[data-v-c3285f17],.game-description[data-v-c3285f17]{color:#aaa;margin-bottom:10px}.create-hint[data-v-c3285f17]{color:#aaa}
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
import{Ct as e,Dt as t,Fn as n,Kt as r,Ln as i,Ot as a,bt as o,hn as s,in as c,kt as l,nn as u,u as d,wt as f,xt as p,yn as m}from"./client-Cr-cm5gA.js";import{n as h,r as g,t as _}from"./es-BgZM4SOf.js";import{t as v}from"./_plugin-vue_export-helper-D-vCjaLb.js";import{et as y,n as b,t as x,tt as S}from"./index-BDx9g-XU.js";var C={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},w=l({name:`MenuOutlined`,render:function(e,t){return r(),f(`svg`,C,t[0]||=[p(`path`,{d:`M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z`,fill:`currentColor`},null,-1)])}}),T=y(`ui`,()=>{let e=s([]),t=s(null),n=s(!0),r=0;async function i(){let i=x(),a=i.getToken(),o=++r;e.value=[],t.value=null,n.value=!0;try{let n=await b().GetPermissions({});if(o!==r)return;a===i.getToken()&&(e.value=n.permissions||[]),(n.environment===`prod`||n.environment===`venue`)&&(t.value=n.environment)}catch(e){if(o===r)throw e}finally{o===r&&(n.value=!1)}}return{permissions:e,environment:t,isLoadingEnvironment:n,load:i}}),E={class:`menu-block`},D=[`aria-expanded`,`aria-label`],O={class:`right-group`},k=v(l({__name:`HeaderMenu`,props:{active:{}},setup(l){let v=l,y=x(),b=d(),C=T(),k=h(),{permissions:A,environment:j,isLoadingEnvironment:M}=S(C),N=o(()=>M.value?`Среда: …`:j.value===`prod`?`Сервер`:j.value===`venue`?`Локальная сеть`:`Среда: ?`);u(()=>y.user,async()=>{try{await C.load()}catch(e){k.error(`Не удалось загрузить сведения сервера`),console.error(`Failed to load server information:`,e)}},{immediate:!0});function P(e){return A.value.includes(e)}let F=()=>{b.push(`/login`)},I=()=>{y.logout(),b.push(`/login`)},L=s(!1);return(o,s)=>(r(),f(`div`,E,[p(`button`,{type:`button`,class:`burger-button`,"aria-expanded":L.value,"aria-label":L.value?`Закрыть меню`:`Открыть меню`,onClick:s[0]||=e=>L.value=!L.value},[a(m(_),{class:`burger-icon`,size:`28`},{default:c(()=>[a(m(w))]),_:1})],8,D),p(`div`,{class:n([`left-group menu-buttons-block`,L.value?``:`menu-buttons-block-active`])},[p(`button`,{type:`button`,class:n([`menu-item-block`,{active:v.active==`main`}]),onClick:s[1]||=e=>m(b).push(`/`)},` Главная `,2),m(y).hasRole(`user`)?(r(),f(`button`,{key:0,type:`button`,class:n([`menu-item-block`,{active:v.active==`office`}]),onClick:s[2]||=e=>m(b).push(`/office`)},` Кабинет `,2)):e(``,!0),P(`games_page`)?(r(),f(`button`,{key:1,type:`button`,class:n([`menu-item-block`,{active:v.active==`games`}]),onClick:s[3]||=e=>m(b).push(`/games`)},` Игры `,2)):e(``,!0),p(`button`,{type:`button`,class:`menu-item-block`,onClick:s[4]||=e=>m(b).push(`/screen`)},`Экран`),p(`button`,{type:`button`,class:n([`menu-item-block`,{active:v.active==`catalog`}]),onClick:s[5]||=e=>m(b).push(`/catalog`)},` Каталог `,2),P(`scenarios_page`)?(r(),f(`button`,{key:2,type:`button`,class:n([`menu-item-block`,{active:v.active==`scenarios`}]),onClick:s[6]||=e=>m(b).push(`/scenarios`)},` Сценарии `,2)):e(``,!0),P(`tasks_page`)?(r(),f(`button`,{key:3,type:`button`,class:n([`menu-item-block`,{active:v.active==`tasks`}]),onClick:s[7]||=e=>m(b).push(`/tasks`)},` Задачи `,2)):e(``,!0),P(`users_page`)?(r(),f(`button`,{key:4,type:`button`,class:n([`menu-item-block`,{active:v.active==`users`}]),onClick:s[8]||=e=>m(b).push(`/users`)},` Пользователи `,2)):e(``,!0),P(`reviews_page`)?(r(),f(`button`,{key:5,type:`button`,class:n([`menu-item-block`,{active:v.active==`reviews`}]),onClick:s[9]||=e=>m(b).push(`/reviews`)},` Отзывы `,2)):e(``,!0)],2),p(`div`,O,[a(m(g),{size:`small`,type:m(j)===`venue`?`warning`:`default`,title:m(j)?`Среда подключённого сервера`:`Среда сервера не определена`,role:`status`},{default:c(()=>[t(i(N.value),1)]),_:1},8,[`type`,`title`]),m(y).isAuthenticated?e(``,!0):(r(),f(`button`,{key:0,type:`button`,class:`menu-item-block right`,onClick:F},` Войти `)),m(y).isAuthenticated?(r(),f(`button`,{key:1,type:`button`,class:`menu-item-block right`,onClick:I},` Выйти `)):e(``,!0)])]))}}),[[`__scopeId`,`data-v-90c8cda8`]]);export{k as t}; import{Ct as e,Dt as t,Fn as n,Kt as r,Ln as i,Ot as a,bt as o,hn as s,in as c,kt as l,nn as u,u as d,wt as f,xt as p,yn as m}from"./client-Cr-cm5gA.js";import{n as h,r as g,t as _}from"./es-B8t08Ksa.js";import{t as v}from"./_plugin-vue_export-helper-D-vCjaLb.js";import{et as y,n as b,t as x,tt as S}from"./index-DvRZPtUt.js";var C={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},w=l({name:`MenuOutlined`,render:function(e,t){return r(),f(`svg`,C,t[0]||=[p(`path`,{d:`M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z`,fill:`currentColor`},null,-1)])}}),T=y(`ui`,()=>{let e=s([]),t=s(null),n=s(!0),r=0;async function i(){let i=x(),a=i.getToken(),o=++r;e.value=[],t.value=null,n.value=!0;try{let n=await b().GetPermissions({});if(o!==r)return;a===i.getToken()&&(e.value=n.permissions||[]),(n.environment===`prod`||n.environment===`venue`)&&(t.value=n.environment)}catch(e){if(o===r)throw e}finally{o===r&&(n.value=!1)}}return{permissions:e,environment:t,isLoadingEnvironment:n,load:i}}),E={class:`menu-block`},D=[`aria-expanded`,`aria-label`],O={class:`right-group`},k=v(l({__name:`HeaderMenu`,props:{active:{}},setup(l){let v=l,y=x(),b=d(),C=T(),k=h(),{permissions:A,environment:j,isLoadingEnvironment:M}=S(C),N=o(()=>M.value?`Среда: …`:j.value===`prod`?`Сервер`:j.value===`venue`?`Локальная сеть`:`Среда: ?`);u(()=>y.user,async()=>{try{await C.load()}catch(e){k.error(`Не удалось загрузить сведения сервера`),console.error(`Failed to load server information:`,e)}},{immediate:!0});function P(e){return A.value.includes(e)}let F=()=>{b.push(`/login`)},I=()=>{y.logout(),b.push(`/login`)},L=s(!1);return(o,s)=>(r(),f(`div`,E,[p(`button`,{type:`button`,class:`burger-button`,"aria-expanded":L.value,"aria-label":L.value?`Закрыть меню`:`Открыть меню`,onClick:s[0]||=e=>L.value=!L.value},[a(m(_),{class:`burger-icon`,size:`28`},{default:c(()=>[a(m(w))]),_:1})],8,D),p(`div`,{class:n([`left-group menu-buttons-block`,L.value?``:`menu-buttons-block-active`])},[p(`button`,{type:`button`,class:n([`menu-item-block`,{active:v.active==`main`}]),onClick:s[1]||=e=>m(b).push(`/`)},` Главная `,2),m(y).hasRole(`user`)?(r(),f(`button`,{key:0,type:`button`,class:n([`menu-item-block`,{active:v.active==`office`}]),onClick:s[2]||=e=>m(b).push(`/office`)},` Кабинет `,2)):e(``,!0),P(`games_page`)?(r(),f(`button`,{key:1,type:`button`,class:n([`menu-item-block`,{active:v.active==`games`}]),onClick:s[3]||=e=>m(b).push(`/games`)},` Игры `,2)):e(``,!0),p(`button`,{type:`button`,class:`menu-item-block`,onClick:s[4]||=e=>m(b).push(`/screen`)},`Экран`),p(`button`,{type:`button`,class:n([`menu-item-block`,{active:v.active==`catalog`}]),onClick:s[5]||=e=>m(b).push(`/catalog`)},` Каталог `,2),P(`scenarios_page`)?(r(),f(`button`,{key:2,type:`button`,class:n([`menu-item-block`,{active:v.active==`scenarios`}]),onClick:s[6]||=e=>m(b).push(`/scenarios`)},` Сценарии `,2)):e(``,!0),P(`tasks_page`)?(r(),f(`button`,{key:3,type:`button`,class:n([`menu-item-block`,{active:v.active==`tasks`}]),onClick:s[7]||=e=>m(b).push(`/tasks`)},` Задачи `,2)):e(``,!0),P(`users_page`)?(r(),f(`button`,{key:4,type:`button`,class:n([`menu-item-block`,{active:v.active==`users`}]),onClick:s[8]||=e=>m(b).push(`/users`)},` Пользователи `,2)):e(``,!0),P(`reviews_page`)?(r(),f(`button`,{key:5,type:`button`,class:n([`menu-item-block`,{active:v.active==`reviews`}]),onClick:s[9]||=e=>m(b).push(`/reviews`)},` Отзывы `,2)):e(``,!0)],2),p(`div`,O,[a(m(g),{size:`small`,type:m(j)===`venue`?`warning`:`default`,title:m(j)?`Среда подключённого сервера`:`Среда сервера не определена`,role:`status`},{default:c(()=>[t(i(N.value),1)]),_:1},8,[`type`,`title`]),m(y).isAuthenticated?e(``,!0):(r(),f(`button`,{key:0,type:`button`,class:`menu-item-block right`,onClick:F},` Войти `)),m(y).isAuthenticated?(r(),f(`button`,{key:1,type:`button`,class:`menu-item-block right`,onClick:I},` Выйти `)):e(``,!0)])]))}}),[[`__scopeId`,`data-v-90c8cda8`]]);export{T as n,k as t};
@@ -1 +1 @@
import{Kt as e,Ot as t,St as n,ht as r,kt as i,wt as a,xt as o}from"./client-Cr-cm5gA.js";import{t as s}from"./_plugin-vue_export-helper-D-vCjaLb.js";import{t as c}from"./HeaderMenu-B9QH_cmH.js";var l=s(i({__name:`HomePage`,setup(n){return(n,i)=>(e(),a(r,null,[i[0]||=o(`div`,{class:`center-block-custom content-block center-middle-block-custom height80`},[o(`div`,null,[o(`h1`,{class:`font-text`},`Вечерний детектив`),o(`h3`,{class:`font-text`},`Дело №0`),o(`p`,{class:`content-text`},`Поиграем?`)])],-1),t(c,{active:`main`})],64))}}),[[`__scopeId`,`data-v-3ca82fba`]]),u=i({__name:`HomeView`,setup(t){return(t,r)=>(e(),n(l))}});export{u as default}; import{Kt as e,Ot as t,St as n,ht as r,kt as i,wt as a,xt as o}from"./client-Cr-cm5gA.js";import{t as s}from"./_plugin-vue_export-helper-D-vCjaLb.js";import{t as c}from"./HeaderMenu-BACZAM90.js";var l=s(i({__name:`HomePage`,setup(n){return(n,i)=>(e(),a(r,null,[i[0]||=o(`div`,{class:`center-block-custom content-block center-middle-block-custom height80`},[o(`div`,null,[o(`h1`,{class:`font-text`},`Вечерний детектив`),o(`h3`,{class:`font-text`},`Дело №0`),o(`p`,{class:`content-text`},`Поиграем?`)])],-1),t(c,{active:`main`})],64))}}),[[`__scopeId`,`data-v-3ca82fba`]]),u=i({__name:`HomeView`,setup(t){return(t,r)=>(e(),n(l))}});export{u as default};
@@ -1,4 +1,4 @@
import{At as e,H as t,Mt as n,Pt as r,Rt as i,U as a,Ut as o,Y as s,_n as c,at as l,bt as u,g as ee,hn as d,ht as f,it as p,kt as m,m as te,nn as h,nt as g,ot as _,p as v,qt as ne,rn as y,st as b,tt as x}from"./client-Cr-cm5gA.js";import{c as S,d as C,i as w,u as re}from"./Card-BXfpL_-k.js";import{o as ie}from"./es-BgZM4SOf.js";import{i as ae,r as T,t as E}from"./Suffix-lZCP2rA2.js";import{t as oe}from"./use-merged-state-3avmaBFV.js";import{i as se}from"./Button-htLGEUWP.js";import{a as D,i as O,o as k,s as A}from"./_plugin-vue_export-helper-D-vCjaLb.js";import{n as ce}from"./use-form-item-D5MDIr54.js";import{E as le,G as j,Q as M}from"./index-BDx9g-XU.js";var N=m({name:`Eye`,render(){return n(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},n(`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`}),n(`circle`,{cx:`256`,cy:`256`,r:`80`,fill:`none`,stroke:`currentColor`,"stroke-miterlimit":`10`,"stroke-width":`32`}))}}),P=m({name:`EyeOff`,render(){return n(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},n(`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`}),n(`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`}),n(`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`}),n(`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`}),n(`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=g(`input`,` import{At as e,H as t,Mt as n,Pt as r,Rt as i,U as a,Ut as o,Y as s,_n as c,at as l,bt as u,g as ee,hn as d,ht as f,it as p,kt as m,m as te,nn as h,nt as g,ot as _,p as v,qt as ne,rn as y,st as b,tt as x}from"./client-Cr-cm5gA.js";import{c as S,d as C,i as w,u as re}from"./Card-BKTR7RSt.js";import{o as ie}from"./es-B8t08Ksa.js";import{i as ae,r as T,t as E}from"./Suffix-CvlR_XVb.js";import{t as oe}from"./use-merged-state-3avmaBFV.js";import{i as se}from"./Button-ywRLIydo.js";import{a as D,i as O,o as k,s as A}from"./_plugin-vue_export-helper-D-vCjaLb.js";import{n as ce}from"./use-form-item-D5MDIr54.js";import{E as le,G as j,Q as M}from"./index-DvRZPtUt.js";var N=m({name:`Eye`,render(){return n(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},n(`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`}),n(`circle`,{cx:`256`,cy:`256`,r:`80`,fill:`none`,stroke:`currentColor`,"stroke-miterlimit":`10`,"stroke-width":`32`}))}}),P=m({name:`EyeOff`,render(){return n(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},n(`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`}),n(`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`}),n(`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`}),n(`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`}),n(`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=g(`input`,`
max-width: 100%; max-width: 100%;
cursor: text; cursor: text;
line-height: 1.5; line-height: 1.5;
@@ -1,4 +1,4 @@
import{Dt as e,H as t,Kt as n,Mt as r,Ot as i,Pt as a,U as o,Y as s,_n as c,an as l,at as u,bt as d,ct as f,g as p,hn as m,ht as h,in as g,it as _,kt as v,lt as y,nt as b,p as x,qt as S,st as C,tt as w,u as T,wt as E,xt as D,yn as O}from"./client-Cr-cm5gA.js";import{a as k,i as A,o as j,t as M}from"./Follower-Dcotonxv.js";import{a as N,s as ee,t as te}from"./utils-BynIPk14.js";import{d as P,f as ne,t as F}from"./Card-BXfpL_-k.js";import{n as I}from"./es-BgZM4SOf.js";import{d as L,m as R,n as z}from"./Suffix-lZCP2rA2.js";import{t as B}from"./use-merged-state-3avmaBFV.js";import{t as V}from"./Button-htLGEUWP.js";import{n as H,t as U}from"./Tabs-DUxAT3l9.js";import{o as W,s as G,t as K}from"./_plugin-vue_export-helper-D-vCjaLb.js";import{n as q}from"./use-form-item-D5MDIr54.js";import{t as J}from"./Input-Dj4f4oJP.js";import{t as Y}from"./Space-DZ8U-a9w.js";import{$ as re,C as ie,Q as ae,R as oe,T as se,W as ce,Z as le,nt as ue,t as de}from"./index-BDx9g-XU.js";import{t as fe}from"./HeaderMenu-B9QH_cmH.js";var pe=w([b(`auto-complete`,` import{Dt as e,H as t,Kt as n,Mt as r,Ot as i,Pt as a,U as o,Y as s,_n as c,an as l,at as u,bt as d,ct as f,g as p,hn as m,ht as h,in as g,it as _,kt as v,lt as y,nt as b,p as x,qt as S,st as C,tt as w,u as T,wt as E,xt as D,yn as O}from"./client-Cr-cm5gA.js";import{a as k,i as A,o as j,t as M}from"./Follower-iSO8rl8v.js";import{a as N,s as ee,t as te}from"./utils-B90v_o3J.js";import{d as P,f as ne,t as F}from"./Card-BKTR7RSt.js";import{n as I}from"./es-B8t08Ksa.js";import{d as L,m as R,n as z}from"./Suffix-CvlR_XVb.js";import{t as B}from"./use-merged-state-3avmaBFV.js";import{t as V}from"./Button-ywRLIydo.js";import{n as H,t as U}from"./Tabs-DXT16ZKz.js";import{o as W,s as G,t as K}from"./_plugin-vue_export-helper-D-vCjaLb.js";import{n as q}from"./use-form-item-D5MDIr54.js";import{t as J}from"./Input-DQgehthd.js";import{t as Y}from"./Space-DlNRQ2oe.js";import{$ as re,C as ie,Q as ae,R as oe,T as se,W as ce,Z as le,nt as ue,t as de}from"./index-DvRZPtUt.js";import{t as fe}from"./HeaderMenu-BACZAM90.js";var pe=w([b(`auto-complete`,`
z-index: auto; z-index: auto;
position: relative; position: relative;
display: inline-flex; display: inline-flex;
@@ -1,4 +1,4 @@
import{Bt as e,Fn as t,H as n,Lt as r,Mt as i,Pt as a,Rt as o,U as s,Ut as c,Vt as l,Wt as u,Y as d,_n as f,an as p,at as m,bt as h,ct as g,et as _,g as v,hn as y,it as b,kt as x,mn as S,nn as C,nt as w,p as T,q as E,qt as D,st as O,tt as k,yt as A}from"./client-Cr-cm5gA.js";import{d as j,f as ee,i as te,n as ne,r as re,s as ie,t as ae,u as M}from"./Card-BXfpL_-k.js";import{o as oe}from"./es-BgZM4SOf.js";import{C as se,S as N,_ as ce,b as le,d as ue,f as de,m as fe,n as pe,p as me,v as he,x as ge,y as P}from"./Suffix-lZCP2rA2.js";import{a as _e,t as F}from"./Button-htLGEUWP.js";import{i as ve,n as ye,t as I}from"./keep-DoHnMBWT.js";import{i as L,o as R,s as z}from"./_plugin-vue_export-helper-D-vCjaLb.js";import{t as be}from"./fade-in.cssr-Q4qxrdA6.js";import{B as xe,G as Se,H as Ce,L as we,V as B,Y as V,Z as Te,_ as Ee,at as H,g as De,nt as U,z as Oe}from"./index-BDx9g-XU.js";var W=y(null);function G(e){if(e.clientX>0||e.clientY>0)W.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?W.value={x:e+r/2,y:n+i/2}:W.value={x:0,y:0}}else W.value=null}}var K=0,ke=!0;function Ae(){if(!se)return S(y(null));K===0&&j(`click`,document,G,!0);let t=()=>{K+=1};return(ke&&=N())?(e(t),l(()=>{--K,K===0&&M(`click`,document,G,!0)})):t(),S(W)}var je=y(void 0),q=0;function Me(){je.value=Date.now()}var Ne=!0;function Pe(t){if(!se)return S(y(!1));let n=y(!1),r=null;function i(){r!==null&&window.clearTimeout(r)}function a(){i(),n.value=!0,r=window.setTimeout(()=>{n.value=!1},t)}q===0&&j(`click`,window,Me,!0);let o=()=>{q+=1,j(`click`,window,a,!0)};return(Ne&&=N())?(e(o),l(()=>{--q,q===0&&M(`click`,window,Me,!0),M(`click`,window,a,!0),i()})):o(),S(n)}var J=y(!1);function Fe(){J.value=!0}function Ie(){J.value=!1}var Y=0;function Le(){return _e&&(e(()=>{Y||(window.addEventListener(`compositionstart`,Fe),window.addEventListener(`compositionend`,Ie)),Y++}),l(()=>{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,n,r=!1,i=()=>{t.style.marginRight=Re,t.style.overflow=ze,t.style.overflowX=Be,t.style.overflowY=Ve,He.value=`0px`};c(()=>{n=C(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`}r=!0,X++}else X--,X||i(),r=!1},{immediate:!0})}),l(()=>{n?.(),r&&=(X--,X||i(),!1)})}var We=d(`n-dialog-provider`);d(`n-dialog-api`),d(`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=ie(Z),Ke=k([w(`dialog`,` import{Bt as e,Fn as t,H as n,Lt as r,Mt as i,Pt as a,Rt as o,U as s,Ut as c,Vt as l,Wt as u,Y as d,_n as f,an as p,at as m,bt as h,ct as g,et as _,g as v,hn as y,it as b,kt as x,mn as S,nn as C,nt as w,p as T,q as E,qt as D,st as O,tt as k,yt as A}from"./client-Cr-cm5gA.js";import{d as j,f as ee,i as te,n as ne,r as re,s as ie,t as ae,u as M}from"./Card-BKTR7RSt.js";import{o as oe}from"./es-B8t08Ksa.js";import{C as se,S as N,_ as ce,b as le,d as ue,f as de,m as fe,n as pe,p as me,v as he,x as ge,y as P}from"./Suffix-CvlR_XVb.js";import{a as _e,t as F}from"./Button-ywRLIydo.js";import{i as ve,n as ye,t as I}from"./keep-DEbSQvlE.js";import{i as L,o as R,s as z}from"./_plugin-vue_export-helper-D-vCjaLb.js";import{t as be}from"./fade-in.cssr-Q4qxrdA6.js";import{B as xe,G as Se,H as Ce,L as we,V as B,Y as V,Z as Te,_ as Ee,at as H,g as De,nt as U,z as Oe}from"./index-DvRZPtUt.js";var W=y(null);function G(e){if(e.clientX>0||e.clientY>0)W.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?W.value={x:e+r/2,y:n+i/2}:W.value={x:0,y:0}}else W.value=null}}var K=0,ke=!0;function Ae(){if(!se)return S(y(null));K===0&&j(`click`,document,G,!0);let t=()=>{K+=1};return(ke&&=N())?(e(t),l(()=>{--K,K===0&&M(`click`,document,G,!0)})):t(),S(W)}var je=y(void 0),q=0;function Me(){je.value=Date.now()}var Ne=!0;function Pe(t){if(!se)return S(y(!1));let n=y(!1),r=null;function i(){r!==null&&window.clearTimeout(r)}function a(){i(),n.value=!0,r=window.setTimeout(()=>{n.value=!1},t)}q===0&&j(`click`,window,Me,!0);let o=()=>{q+=1,j(`click`,window,a,!0)};return(Ne&&=N())?(e(o),l(()=>{--q,q===0&&M(`click`,window,Me,!0),M(`click`,window,a,!0),i()})):o(),S(n)}var J=y(!1);function Fe(){J.value=!0}function Ie(){J.value=!1}var Y=0;function Le(){return _e&&(e(()=>{Y||(window.addEventListener(`compositionstart`,Fe),window.addEventListener(`compositionend`,Ie)),Y++}),l(()=>{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,n,r=!1,i=()=>{t.style.marginRight=Re,t.style.overflow=ze,t.style.overflowX=Be,t.style.overflowY=Ve,He.value=`0px`};c(()=>{n=C(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`}r=!0,X++}else X--,X||i(),r=!1},{immediate:!0})}),l(()=>{n?.(),r&&=(X--,X||i(),!1)})}var We=d(`n-dialog-provider`);d(`n-dialog-api`),d(`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=ie(Z),Ke=k([w(`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);
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
import{Ct as e,Dt as t,Kt as n,Ln as r,Ot as i,St as a,Ut as o,hn as s,ht as c,in as l,kt as u,l as d,t as f,wt as p,xt as m,yn as h}from"./client-Cr-cm5gA.js";import{t as g}from"./Card-BXfpL_-k.js";import{t as _}from"./Button-htLGEUWP.js";import{t as v}from"./Space-DZ8U-a9w.js";import{t as y}from"./index-BDx9g-XU.js";import{t as b}from"./HeaderMenu-B9QH_cmH.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=u({__name:`ParticipationPage`,setup(u){let O=d(),k=new URLSearchParams(O.hash.slice(1)),A=k.get(`token`)||``,j=s(k.get(`answer`)===`cancelled`?`cancelled`:`confirmed`),M=f(),N=y(),P=s(),F=s(!1),I=s(``);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 o(L),(o,s)=>(n(),p(c,null,[h(N).isAuthenticated?(n(),a(b,{key:0})):e(``,!0),m(`div`,S,[m(`div`,C,[i(h(g),{title:`Участие в игре`},{default:l(()=>[I.value?(n(),p(`p`,w,r(I.value),1)):e(``,!0),P.value?(n(),p(c,{key:1},[m(`h2`,null,r(P.value.gameName),1),m(`p`,null,`Команда: `+r(P.value.teamName),1),m(`p`,null,`Начало: `+r(h(x)(P.value.startAt)),1),m(`p`,null,`Участников: `+r(P.value.participantsCount),1),P.value.status===`confirmed`?(n(),p(`p`,T,` Участие подтверждено. Ждём вас на игре! Решение окончательное. `)):P.value.status===`cancelled`?(n(),p(`p`,E,` Запись отменена. Решение окончательное. `)):P.value.closed?(n(),p(`p`,D,` Приём ответов закрыт. Ваша запись сохранена со статусом «Ожидает ответа». `)):(n(),p(c,{key:3},[s[4]||=m(`p`,null,[m(`strong`,null,`Решение окончательное: изменить его нельзя.`)],-1),s[5]||=m(`p`,null,`Без ответа запись сохраняется со статусом «Ожидает ответа».`,-1),i(h(v),{vertical:``},{default:l(()=>[i(h(v),null,{default:l(()=>[i(h(_),{disabled:F.value,type:j.value===`confirmed`?`primary`:`default`,"aria-pressed":j.value===`confirmed`,onClick:s[0]||=e=>j.value=`confirmed`},{default:l(()=>[...s[2]||=[t(`Мы участвуем`,-1)]]),_:1},8,[`disabled`,`type`,`aria-pressed`]),i(h(_),{disabled:F.value,type:j.value===`cancelled`?`error`:`default`,"aria-pressed":j.value===`cancelled`,onClick:s[1]||=e=>j.value=`cancelled`},{default:l(()=>[...s[3]||=[t(`Мы не участвуем`,-1)]]),_:1},8,[`disabled`,`type`,`aria-pressed`])]),_:1}),i(h(_),{loading:F.value,disabled:F.value,type:j.value===`cancelled`?`error`:`primary`,onClick:R},{default:l(()=>[t(r(j.value===`confirmed`?`Подтверждаю участие`:`Подтверждаю отмену`),1)]),_:1},8,[`loading`,`disabled`,`type`])]),_:1})],64))],64)):(n(),a(h(_),{key:2,loading:F.value,onClick:L},{default:l(()=>[t(r(F.value?`Загрузка`:`Повторить`),1)]),_:1},8,[`loading`]))]),_:1})])])],64))}}),k=u({__name:`ParticipationView`,setup(e){return(e,t)=>(n(),a(O))}});export{k as default}; import{Ct as e,Dt as t,Kt as n,Ln as r,Ot as i,St as a,Ut as o,hn as s,ht as c,in as l,kt as u,l as d,t as f,wt as p,xt as m,yn as h}from"./client-Cr-cm5gA.js";import{t as g}from"./Card-BKTR7RSt.js";import{t as _}from"./Button-ywRLIydo.js";import{t as v}from"./Space-DlNRQ2oe.js";import{t as y}from"./index-DvRZPtUt.js";import{t as b}from"./HeaderMenu-BACZAM90.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=u({__name:`ParticipationPage`,setup(u){let O=d(),k=new URLSearchParams(O.hash.slice(1)),A=k.get(`token`)||``,j=s(k.get(`answer`)===`cancelled`?`cancelled`:`confirmed`),M=f(),N=y(),P=s(),F=s(!1),I=s(``);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 o(L),(o,s)=>(n(),p(c,null,[h(N).isAuthenticated?(n(),a(b,{key:0})):e(``,!0),m(`div`,S,[m(`div`,C,[i(h(g),{title:`Участие в игре`},{default:l(()=>[I.value?(n(),p(`p`,w,r(I.value),1)):e(``,!0),P.value?(n(),p(c,{key:1},[m(`h2`,null,r(P.value.gameName),1),m(`p`,null,`Команда: `+r(P.value.teamName),1),m(`p`,null,`Начало: `+r(h(x)(P.value.startAt)),1),m(`p`,null,`Участников: `+r(P.value.participantsCount),1),P.value.status===`confirmed`?(n(),p(`p`,T,` Участие подтверждено. Ждём вас на игре! Решение окончательное. `)):P.value.status===`cancelled`?(n(),p(`p`,E,` Запись отменена. Решение окончательное. `)):P.value.closed?(n(),p(`p`,D,` Приём ответов закрыт. Ваша запись сохранена со статусом «Ожидает ответа». `)):(n(),p(c,{key:3},[s[4]||=m(`p`,null,[m(`strong`,null,`Решение окончательное: изменить его нельзя.`)],-1),s[5]||=m(`p`,null,`Без ответа запись сохраняется со статусом «Ожидает ответа».`,-1),i(h(v),{vertical:``},{default:l(()=>[i(h(v),null,{default:l(()=>[i(h(_),{disabled:F.value,type:j.value===`confirmed`?`primary`:`default`,"aria-pressed":j.value===`confirmed`,onClick:s[0]||=e=>j.value=`confirmed`},{default:l(()=>[...s[2]||=[t(`Мы участвуем`,-1)]]),_:1},8,[`disabled`,`type`,`aria-pressed`]),i(h(_),{disabled:F.value,type:j.value===`cancelled`?`error`:`default`,"aria-pressed":j.value===`cancelled`,onClick:s[1]||=e=>j.value=`cancelled`},{default:l(()=>[...s[3]||=[t(`Мы не участвуем`,-1)]]),_:1},8,[`disabled`,`type`,`aria-pressed`])]),_:1}),i(h(_),{loading:F.value,disabled:F.value,type:j.value===`cancelled`?`error`:`primary`,onClick:R},{default:l(()=>[t(r(j.value===`confirmed`?`Подтверждаю участие`:`Подтверждаю отмену`),1)]),_:1},8,[`loading`,`disabled`,`type`])]),_:1})],64))],64)):(n(),a(h(_),{key:2,loading:F.value,onClick:L},{default:l(()=>[t(r(F.value?`Загрузка`:`Повторить`),1)]),_:1},8,[`loading`]))]),_:1})])])],64))}}),k=u({__name:`ParticipationView`,setup(e){return(e,t)=>(n(),a(O))}});export{k as default};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
import{Kt as e,Ot as t,ht as n,kt as r,wt as i}from"./client-Cr-cm5gA.js";import{t as a}from"./HeaderMenu-B9QH_cmH.js";import{t as o}from"./DocsPage-XwzRbNGh.js";var s=r({__name:`PrivacyPolicyView`,setup(r){return(r,s)=>(e(),i(n,null,[t(o,{kind:`privacy`}),t(a)],64))}});export{s as default}; import{Kt as e,Ot as t,ht as n,kt as r,wt as i}from"./client-Cr-cm5gA.js";import{t as a}from"./HeaderMenu-BACZAM90.js";import{t as o}from"./DocsPage-DZ3doZ4c.js";var s=r({__name:`PrivacyPolicyView`,setup(r){return(r,s)=>(e(),i(n,null,[t(o,{kind:`privacy`}),t(a)],64))}});export{s as default};
@@ -1,4 +1,4 @@
import{H as e,Jt as t,Mt as n,U as r,_n as i,at as a,bt as o,d as s,hn as c,it as l,kt as u,nt as d,ot as f,p,st as m,tt as h}from"./client-Cr-cm5gA.js";import{t as g}from"./use-merged-state-3avmaBFV.js";import{c as _,s as v}from"./_plugin-vue_export-helper-D-vCjaLb.js";import{n as y}from"./use-form-item-D5MDIr54.js";import{G as b}from"./index-BDx9g-XU.js";function x(e){let{railColor:t}=e;return{itemColor:t,itemColorActive:`#FFCC33`,sizeSmall:`16px`,sizeMedium:`20px`,sizeLarge:`24px`}}var S={name:`Rate`,common:s,self:x},C=()=>n(`svg`,{viewBox:`0 0 512 512`},n(`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=d(`rate`,{display:`inline-flex`,flexWrap:`nowrap`},[h(`&:hover`,[l(`item`,` import{H as e,Jt as t,Mt as n,U as r,_n as i,at as a,bt as o,d as s,hn as c,it as l,kt as u,nt as d,ot as f,p,st as m,tt as h}from"./client-Cr-cm5gA.js";import{t as g}from"./use-merged-state-3avmaBFV.js";import{c as _,s as v}from"./_plugin-vue_export-helper-D-vCjaLb.js";import{n as y}from"./use-form-item-D5MDIr54.js";import{G as b}from"./index-DvRZPtUt.js";function x(e){let{railColor:t}=e;return{itemColor:t,itemColorActive:`#FFCC33`,sizeSmall:`16px`,sizeMedium:`20px`,sizeLarge:`24px`}}var S={name:`Rate`,common:s,self:x},C=()=>n(`svg`,{viewBox:`0 0 512 512`},n(`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=d(`rate`,{display:`inline-flex`,flexWrap:`nowrap`},[h(`&:hover`,[l(`item`,`
transition: transition:
transform .1s var(--n-bezier), transform .1s var(--n-bezier),
color .3s var(--n-bezier); color .3s var(--n-bezier);
@@ -1 +1 @@
import{Ct as e,Dt as t,Jt as n,Kt as r,Ln as i,Ot as a,St as o,hn as s,ht as c,in as l,kt as u,wt as d,xt as f,yn as p}from"./client-Cr-cm5gA.js";import{t as m}from"./Card-BXfpL_-k.js";import{n as h,r as g}from"./es-BgZM4SOf.js";import{t as _}from"./Button-htLGEUWP.js";import{t as v}from"./_plugin-vue_export-helper-D-vCjaLb.js";import{t as y}from"./Flex-69ypf5Me.js";import{t as b}from"./Rate-Dh3MJbR7.js";import{n as x}from"./index-BDx9g-XU.js";import{t as S}from"./HeaderMenu-B9QH_cmH.js";var C={class:`center-block-custom`},w={class:`width1200`},T={class:`page-header`},E={class:`review-game`},D={class:`review-text`},O=v(u({__name:`ReviewsPage`,setup(u){let v=x(),O=h(),k=s([]);async function A(){try{let e=await v.GetReviewsForModeration({});k.value=e.reviews||[]}catch(e){O.error(e instanceof Error?e.message:`Не удалось загрузить отзывы`)}}async function j(e,t){try{await v.ModerateGameReview({ID:e.ID,status:t}),await A()}catch(e){O.error(e instanceof Error?e.message:`Не удалось изменить отзыв`)}}return A(),(s,u)=>(r(),d(c,null,[f(`div`,C,[f(`div`,w,[f(`div`,T,[u[1]||=f(`h1`,null,`Отзывы`,-1),a(p(_),{onClick:A},{default:l(()=>[...u[0]||=[t(`Обновить`,-1)]]),_:1})]),k.value.length==0?(r(),o(p(m),{key:0},{default:l(()=>[...u[2]||=[t(`Очередь отзывов пуста.`,-1)]]),_:1})):e(``,!0),(r(!0),d(c,null,n(k.value,n=>(r(),o(p(m),{key:n.ID,class:`review-card`},{default:l(()=>[a(p(y),{justify:`space-between`,align:`center`},{default:l(()=>[f(`div`,null,[f(`div`,E,i(n.gameName),1),f(`strong`,null,i(n.teamName),1)]),a(p(g),null,{default:l(()=>[t(i(n.status),1)]),_:2},1024)]),_:2},1024),a(p(b),{value:n.rating,readonly:``},null,8,[`value`]),f(`div`,null,`Сложность: `+i([``,`лёгкая`,`средняя`,`тяжёлая`][n.difficulty||0]),1),f(`p`,D,i(n.text),1),n.status==`pending`?(r(),o(p(y),{key:0,justify:`end`},{default:l(()=>[a(p(_),{type:`success`,onClick:e=>j(n,`approved`)},{default:l(()=>[...u[3]||=[t(`Одобрить`,-1)]]),_:1},8,[`onClick`]),a(p(_),{type:`error`,ghost:``,onClick:e=>j(n,`rejected`)},{default:l(()=>[...u[4]||=[t(`Отклонить`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):n.status==`approved`?(r(),o(p(y),{key:1,justify:`end`},{default:l(()=>[a(p(_),{type:`error`,ghost:``,onClick:e=>j(n,`hidden`)},{default:l(()=>[...u[5]||=[t(`Скрыть`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):e(``,!0)]),_:2},1024))),128))])]),a(S,{active:`reviews`})],64))}}),[[`__scopeId`,`data-v-0b64d5d0`]]),k=u({__name:`ReviewsView`,setup(e){return(e,t)=>(r(),o(O))}});export{k as default}; import{Ct as e,Dt as t,Jt as n,Kt as r,Ln as i,Ot as a,St as o,hn as s,ht as c,in as l,kt as u,wt as d,xt as f,yn as p}from"./client-Cr-cm5gA.js";import{t as m}from"./Card-BKTR7RSt.js";import{n as h,r as g}from"./es-B8t08Ksa.js";import{t as _}from"./Button-ywRLIydo.js";import{t as v}from"./_plugin-vue_export-helper-D-vCjaLb.js";import{t as y}from"./Flex-lSz649iM.js";import{t as b}from"./Rate-C4fTGXsf.js";import{n as x}from"./index-DvRZPtUt.js";import{t as S}from"./HeaderMenu-BACZAM90.js";var C={class:`center-block-custom`},w={class:`width1200`},T={class:`page-header`},E={class:`review-game`},D={class:`review-text`},O=v(u({__name:`ReviewsPage`,setup(u){let v=x(),O=h(),k=s([]);async function A(){try{let e=await v.GetReviewsForModeration({});k.value=e.reviews||[]}catch(e){O.error(e instanceof Error?e.message:`Не удалось загрузить отзывы`)}}async function j(e,t){try{await v.ModerateGameReview({ID:e.ID,status:t}),await A()}catch(e){O.error(e instanceof Error?e.message:`Не удалось изменить отзыв`)}}return A(),(s,u)=>(r(),d(c,null,[f(`div`,C,[f(`div`,w,[f(`div`,T,[u[1]||=f(`h1`,null,`Отзывы`,-1),a(p(_),{onClick:A},{default:l(()=>[...u[0]||=[t(`Обновить`,-1)]]),_:1})]),k.value.length==0?(r(),o(p(m),{key:0},{default:l(()=>[...u[2]||=[t(`Очередь отзывов пуста.`,-1)]]),_:1})):e(``,!0),(r(!0),d(c,null,n(k.value,n=>(r(),o(p(m),{key:n.ID,class:`review-card`},{default:l(()=>[a(p(y),{justify:`space-between`,align:`center`},{default:l(()=>[f(`div`,null,[f(`div`,E,i(n.gameName),1),f(`strong`,null,i(n.teamName),1)]),a(p(g),null,{default:l(()=>[t(i(n.status),1)]),_:2},1024)]),_:2},1024),a(p(b),{value:n.rating,readonly:``},null,8,[`value`]),f(`div`,null,`Сложность: `+i([``,`лёгкая`,`средняя`,`тяжёлая`][n.difficulty||0]),1),f(`p`,D,i(n.text),1),n.status==`pending`?(r(),o(p(y),{key:0,justify:`end`},{default:l(()=>[a(p(_),{type:`success`,onClick:e=>j(n,`approved`)},{default:l(()=>[...u[3]||=[t(`Одобрить`,-1)]]),_:1},8,[`onClick`]),a(p(_),{type:`error`,ghost:``,onClick:e=>j(n,`rejected`)},{default:l(()=>[...u[4]||=[t(`Отклонить`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):n.status==`approved`?(r(),o(p(y),{key:1,justify:`end`},{default:l(()=>[a(p(_),{type:`error`,ghost:``,onClick:e=>j(n,`hidden`)},{default:l(()=>[...u[5]||=[t(`Скрыть`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):e(``,!0)]),_:2},1024))),128))])]),a(S,{active:`reviews`})],64))}}),[[`__scopeId`,`data-v-0b64d5d0`]]),k=u({__name:`ReviewsView`,setup(e){return(e,t)=>(r(),o(O))}});export{k as default};
@@ -1 +1 @@
import{Ct as e,Dt as t,Jt as n,Kt as r,Ln as i,Ot as a,St as o,hn as s,ht as c,in as l,kt as u,l as d,wt as f,xt as p,yn as m}from"./client-Cr-cm5gA.js";import{n as h,r as g}from"./es-BgZM4SOf.js";import{t as _}from"./_plugin-vue_export-helper-D-vCjaLb.js";import{t as v}from"./Rate-Dh3MJbR7.js";import{n as y}from"./index-BDx9g-XU.js";import{t as b}from"./HeaderMenu-B9QH_cmH.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=_(u({__name:`ScenarioPage`,setup(u){let _=h(),z=y(),B=d().params.id,V=s([]),H=s({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){_.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){_.error(e instanceof Error?e.message:`Не удалось загрузить отзывы`)}}return W(Number(B)),(s,u)=>(r(),f(c,null,[p(`div`,x,[p(`div`,S,[p(`section`,C,[p(`div`,w,[u[0]||=p(`p`,{class:`scenario-kicker`},`ДЕЛО ИЗ КАТАЛОГА`,-1),p(`h1`,T,i(H.value.name),1)]),p(`div`,E,[p(`img`,{class:`scenario-image`,src:H.value.image,alt:H.value.name},null,8,D)]),p(`div`,O,[p(`p`,k,i(H.value.description),1),p(`div`,A,[H.value.reviewsCount?(r(),o(m(v),{key:0,value:H.value.averageRating,readonly:``,"allow-half":``,size:`small`},null,8,[`value`])):e(``,!0),H.value.reviewsCount?(r(),f(`span`,j,i(H.value.averageRating?.toFixed(1))+` · `+i(H.value.reviewsCount)+` отзывов`,1)):(r(),f(`span`,M,`Пока нет оценок`))]),H.value.difficulty?(r(),f(`div`,N,`Сложность: `+i(H.value.difficulty),1)):e(``,!0),p(`div`,P,[a(m(g),{bordered:!1,type:`success`,class:`status-block`},{default:l(()=>[t(` Автор: `+i(H.value.author?.username),1)]),_:1})]),V.value.length?(r(),f(`section`,F,[u[1]||=p(`h2`,{class:`reviews-title`},`Отзывы команд`,-1),(r(!0),f(c,null,n(V.value,e=>(r(),f(`article`,{key:e.ID,class:`review-card`},[p(`div`,I,[p(`strong`,null,i(e.teamName),1),a(m(v),{value:e.rating,readonly:``,size:`small`},null,8,[`value`])]),p(`div`,null,`Сложность: `+i([``,`лёгкая`,`средняя`,`тяжёлая`][e.difficulty||0]),1),p(`div`,L,i(e.gameName),1),p(`p`,R,i(e.text),1)]))),128))])):e(``,!0)])])])]),a(b,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-fd1f9c93`]]),B=u({__name:`ScenarioView`,setup(e){return(e,t)=>(r(),o(z))}});export{B as default}; import{Ct as e,Dt as t,Jt as n,Kt as r,Ln as i,Ot as a,St as o,hn as s,ht as c,in as l,kt as u,l as d,wt as f,xt as p,yn as m}from"./client-Cr-cm5gA.js";import{n as h,r as g}from"./es-B8t08Ksa.js";import{t as _}from"./_plugin-vue_export-helper-D-vCjaLb.js";import{t as v}from"./Rate-C4fTGXsf.js";import{n as y}from"./index-DvRZPtUt.js";import{t as b}from"./HeaderMenu-BACZAM90.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=_(u({__name:`ScenarioPage`,setup(u){let _=h(),z=y(),B=d().params.id,V=s([]),H=s({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){_.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){_.error(e instanceof Error?e.message:`Не удалось загрузить отзывы`)}}return W(Number(B)),(s,u)=>(r(),f(c,null,[p(`div`,x,[p(`div`,S,[p(`section`,C,[p(`div`,w,[u[0]||=p(`p`,{class:`scenario-kicker`},`ДЕЛО ИЗ КАТАЛОГА`,-1),p(`h1`,T,i(H.value.name),1)]),p(`div`,E,[p(`img`,{class:`scenario-image`,src:H.value.image,alt:H.value.name},null,8,D)]),p(`div`,O,[p(`p`,k,i(H.value.description),1),p(`div`,A,[H.value.reviewsCount?(r(),o(m(v),{key:0,value:H.value.averageRating,readonly:``,"allow-half":``,size:`small`},null,8,[`value`])):e(``,!0),H.value.reviewsCount?(r(),f(`span`,j,i(H.value.averageRating?.toFixed(1))+` · `+i(H.value.reviewsCount)+` отзывов`,1)):(r(),f(`span`,M,`Пока нет оценок`))]),H.value.difficulty?(r(),f(`div`,N,`Сложность: `+i(H.value.difficulty),1)):e(``,!0),p(`div`,P,[a(m(g),{bordered:!1,type:`success`,class:`status-block`},{default:l(()=>[t(` Автор: `+i(H.value.author?.username),1)]),_:1})]),V.value.length?(r(),f(`section`,F,[u[1]||=p(`h2`,{class:`reviews-title`},`Отзывы команд`,-1),(r(!0),f(c,null,n(V.value,e=>(r(),f(`article`,{key:e.ID,class:`review-card`},[p(`div`,I,[p(`strong`,null,i(e.teamName),1),a(m(v),{value:e.rating,readonly:``,size:`small`},null,8,[`value`])]),p(`div`,null,`Сложность: `+i([``,`лёгкая`,`средняя`,`тяжёлая`][e.difficulty||0]),1),p(`div`,L,i(e.gameName),1),p(`p`,R,i(e.text),1)]))),128))])):e(``,!0)])])])]),a(b,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-fd1f9c93`]]),B=u({__name:`ScenarioView`,setup(e){return(e,t)=>(r(),o(z))}});export{B as default};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
import{H as e,J as t,Mt as n,Rt as r,U as i,Ut as a,Yt as o,_n as s,an as c,at as l,bt as u,g as d,hn as f,ht as p,it as m,kt as h,nn as g,nt as _,ot as v,p as y,rn as b,st as x,tt as S}from"./client-Cr-cm5gA.js";import{a as C,i as w,n as T,o as E,r as D,t as O}from"./Follower-Dcotonxv.js";import{a as k,d as A,i as j,l as ee,n as te,r as M,s as N,t as ne}from"./utils-BynIPk14.js";import{f as re,o as P}from"./Card-BXfpL_-k.js";import{o as ie,r as F}from"./es-BgZM4SOf.js";import{i as ae,m as I,n as L,t as R}from"./Suffix-lZCP2rA2.js";import{t as z}from"./use-merged-state-3avmaBFV.js";import{t as oe}from"./use-compitable-BGh6qEk0.js";import{t as B}from"./Popover-2LGFIrFs.js";import{r as se}from"./keep-DoHnMBWT.js";import{s as V}from"./_plugin-vue_export-helper-D-vCjaLb.js";import{n as H}from"./use-form-item-D5MDIr54.js";import{Y as U,Z as W,at as ce,k as G,nt as K,x as le}from"./index-BDx9g-XU.js";var q=`v-hidden`,ue=T(`[v-hidden]`,{display:`none!important`}),J=h({name:`Overflow`,props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:n}){let r=f(null),i=f(null);function o(t){let{value:a}=r,{getCounter:o,getTail:s}=e,c;if(c=o===void 0?i.value:o(),!a||!c)return;c.hasAttribute(q)&&c.removeAttribute(q);let{children:l}=a;if(t.showAllItemsBeforeCalculate)for(let e of l)e.hasAttribute(q)&&e.removeAttribute(q);let u=a.offsetWidth,d=[],f=n.tail?s?.():null,p=f?f.offsetWidth:0,m=!1,h=a.children.length-+!!n.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 s=t();return ue.mount({id:`vueuc/overflow`,head:!0,anchorMetaName:D,ssr:s}),a(()=>o({showAllItemsBeforeCalculate:!1})),{selfRef:r,counterRef:i,sync:o}},render(){let{$slots:e}=this;return r(()=>this.sync({showAllItemsBeforeCalculate:!1})),n(`div`,{class:`v-overflow`,ref:`selfRef`},[o(e,`default`),e.counter?e.counter():n(`span`,{style:{display:`inline-block`},ref:`counterRef`}),e.tail?e.tail():null])}});function Y(e){switch(typeof e){case`string`:return e||void 0;case`number`:return String(e);default:return}}var de=S([_(`base-selection`,` import{H as e,J as t,Mt as n,Rt as r,U as i,Ut as a,Yt as o,_n as s,an as c,at as l,bt as u,g as d,hn as f,ht as p,it as m,kt as h,nn as g,nt as _,ot as v,p as y,rn as b,st as x,tt as S}from"./client-Cr-cm5gA.js";import{a as C,i as w,n as T,o as E,r as D,t as O}from"./Follower-iSO8rl8v.js";import{a as k,d as A,i as j,l as ee,n as te,r as M,s as N,t as ne}from"./utils-B90v_o3J.js";import{f as re,o as P}from"./Card-BKTR7RSt.js";import{o as ie,r as F}from"./es-B8t08Ksa.js";import{i as ae,m as I,n as L,t as R}from"./Suffix-CvlR_XVb.js";import{t as z}from"./use-merged-state-3avmaBFV.js";import{t as oe}from"./use-compitable-BGh6qEk0.js";import{t as B}from"./Popover-F9cg-UnG.js";import{r as se}from"./keep-DEbSQvlE.js";import{s as V}from"./_plugin-vue_export-helper-D-vCjaLb.js";import{n as H}from"./use-form-item-D5MDIr54.js";import{Y as U,Z as W,at as ce,k as G,nt as K,x as le}from"./index-DvRZPtUt.js";var q=`v-hidden`,ue=T(`[v-hidden]`,{display:`none!important`}),J=h({name:`Overflow`,props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:n}){let r=f(null),i=f(null);function o(t){let{value:a}=r,{getCounter:o,getTail:s}=e,c;if(c=o===void 0?i.value:o(),!a||!c)return;c.hasAttribute(q)&&c.removeAttribute(q);let{children:l}=a;if(t.showAllItemsBeforeCalculate)for(let e of l)e.hasAttribute(q)&&e.removeAttribute(q);let u=a.offsetWidth,d=[],f=n.tail?s?.():null,p=f?f.offsetWidth:0,m=!1,h=a.children.length-+!!n.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 s=t();return ue.mount({id:`vueuc/overflow`,head:!0,anchorMetaName:D,ssr:s}),a(()=>o({showAllItemsBeforeCalculate:!1})),{selfRef:r,counterRef:i,sync:o}},render(){let{$slots:e}=this;return r(()=>this.sync({showAllItemsBeforeCalculate:!1})),n(`div`,{class:`v-overflow`,ref:`selfRef`},[o(e,`default`),e.counter?e.counter():n(`span`,{style:{display:`inline-block`},ref:`counterRef`}),e.tail?e.tail():null])}});function Y(e){switch(typeof e){case`string`:return e||void 0;case`number`:return String(e);default:return}}var de=S([_(`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 @@
import{Mt as e,U as t,bt as n,g as r,kt as i,mt as a,p as o,st as s}from"./client-Cr-cm5gA.js";import{a as c,i as l}from"./es-BgZM4SOf.js";import{a as u}from"./Button-htLGEUWP.js";import{t as d}from"./flatten-CV6OhBgk.js";import{t as f}from"./get-slot-6kXJmSMP.js";import{p}from"./index-BDx9g-XU.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=i({name:`Space`,props:Object.assign(Object.assign({},o.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:i,mergedRtlRef:a,mergedComponentPropsRef:u}=t(e),d=n(()=>e.size||u?.value?.Space?.size||`medium`),f=o(`Space`,`-space`,void 0,h,e,i),p=r(`Space`,a,i);return{useGap:_(),rtlEnabled:p,mergedClsPrefix:i,margin:n(()=>{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:{[s(`gap`,e)]:t}}=f.value,{row:n,col:r}=c(t);return{horizontal:l(r),vertical:l(n)}})}},render(){let{vertical:t,reverse:n,align:r,inline:i,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:i?`inline-flex`:`flex`,flexDirection:t&&!n?`column`:t&&n?`column-reverse`:!t&&n?`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:r,gap:h?`${l.vertical}px ${l.horizontal}px`:``}},!g&&(h||_)?v:v.map((n,r)=>n.type===a?n:e(`div`,{role:`none`,class:s,style:[c,{maxWidth:`100%`},h?``:t?{marginBottom:r===C?``:x}:m?{marginLeft:w?o===`space-between`&&r===C?``:b:r===C?``:y,marginRight:w?o===`space-between`&&r===0?``:b:``,paddingTop:S,paddingBottom:S}:{marginRight:w?o===`space-between`&&r===C?``:b:r===C?``:y,marginLeft:w?o===`space-between`&&r===0?``:b:``,paddingTop:S,paddingBottom:S}]},n)))}});export{v as t}; import{Mt as e,U as t,bt as n,g as r,kt as i,mt as a,p as o,st as s}from"./client-Cr-cm5gA.js";import{a as c,i as l}from"./es-B8t08Ksa.js";import{a as u}from"./Button-ywRLIydo.js";import{t as d}from"./flatten-CV6OhBgk.js";import{t as f}from"./get-slot-6kXJmSMP.js";import{p}from"./index-DvRZPtUt.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=i({name:`Space`,props:Object.assign(Object.assign({},o.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:i,mergedRtlRef:a,mergedComponentPropsRef:u}=t(e),d=n(()=>e.size||u?.value?.Space?.size||`medium`),f=o(`Space`,`-space`,void 0,h,e,i),p=r(`Space`,a,i);return{useGap:_(),rtlEnabled:p,mergedClsPrefix:i,margin:n(()=>{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:{[s(`gap`,e)]:t}}=f.value,{row:n,col:r}=c(t);return{horizontal:l(r),vertical:l(n)}})}},render(){let{vertical:t,reverse:n,align:r,inline:i,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:i?`inline-flex`:`flex`,flexDirection:t&&!n?`column`:t&&n?`column-reverse`:!t&&n?`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:r,gap:h?`${l.vertical}px ${l.horizontal}px`:``}},!g&&(h||_)?v:v.map((n,r)=>n.type===a?n:e(`div`,{role:`none`,class:s,style:[c,{maxWidth:`100%`},h?``:t?{marginBottom:r===C?``:x}:m?{marginLeft:w?o===`space-between`&&r===C?``:b:r===C?``:y,marginRight:w?o===`space-between`&&r===0?``:b:``,paddingTop:S,paddingBottom:S}:{marginRight:w?o===`space-between`&&r===C?``:b:r===C?``:y,marginLeft:w?o===`space-between`&&r===0?``:b:``,paddingTop:S,paddingBottom:S}]},n)))}});export{v as t};
@@ -1,4 +1,4 @@
import{H as e,Mt as t,U as n,at as r,bt as i,hn as a,kt as o,nt as s,p as c,rn as l,st as u,tt as d}from"./client-Cr-cm5gA.js";import{s as f}from"./es-BgZM4SOf.js";import{t as p}from"./use-compitable-BGh6qEk0.js";import{t as m}from"./fade-in.cssr-Q4qxrdA6.js";import{F as h,P as g,l as _,nt as v}from"./index-BDx9g-XU.js";var y=d([d(`@keyframes spin-rotate`,` import{H as e,Mt as t,U as n,at as r,bt as i,hn as a,kt as o,nt as s,p as c,rn as l,st as u,tt as d}from"./client-Cr-cm5gA.js";import{s as f}from"./es-B8t08Ksa.js";import{t as p}from"./use-compitable-BGh6qEk0.js";import{t as m}from"./fade-in.cssr-Q4qxrdA6.js";import{F as h,P as g,l as _,nt as v}from"./index-DvRZPtUt.js";var y=d([d(`@keyframes spin-rotate`,`
from { from {
transform: rotate(0); transform: rotate(0);
} }
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
import{H as e,Mt as t,U as n,X as r,_n as i,at as a,bt as o,d as s,hn as c,it as l,kt as u,nt as d,ot as f,p,st as m,tt as h}from"./client-Cr-cm5gA.js";import{i as g,s as _}from"./es-BgZM4SOf.js";import{t as v}from"./use-merged-state-3avmaBFV.js";import{o as y,r as b,s as x}from"./_plugin-vue_export-helper-D-vCjaLb.js";import{n as S}from"./use-form-item-D5MDIr54.js";import{P as C,R as w,W as T,c as E}from"./index-BDx9g-XU.js";var D=u({name:`Remove`,render(){return t(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},t(`line`,{x1:`400`,y1:`256`,x2:`112`,y2:`256`,style:` import{H as e,Mt as t,U as n,X as r,_n as i,at as a,bt as o,d as s,hn as c,it as l,kt as u,nt as d,ot as f,p,st as m,tt as h}from"./client-Cr-cm5gA.js";import{i as g,s as _}from"./es-B8t08Ksa.js";import{t as v}from"./use-merged-state-3avmaBFV.js";import{o as y,r as b,s as x}from"./_plugin-vue_export-helper-D-vCjaLb.js";import{n as S}from"./use-form-item-D5MDIr54.js";import{P as C,R as w,W as T,c as E}from"./index-DvRZPtUt.js";var D=u({name:`Remove`,render(){return t(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},t(`line`,{x1:`400`,y1:`256`,x2:`112`,y2:`256`,style:`
fill: none; fill: none;
stroke: currentColor; stroke: currentColor;
stroke-linecap: round; stroke-linecap: round;
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
import{Dt as e,Kt as t,Ln as n,Ot as r,St as i,Ut as a,bt as o,hn as s,ht as c,in as l,kt as u,l as d,t as f,wt as p,xt as m,yn as h}from"./client-Cr-cm5gA.js";import{t as g}from"./Button-htLGEUWP.js";import{t as _}from"./_plugin-vue_export-helper-D-vCjaLb.js";import{t as v}from"./QrCode-DCMU89nB.js";import{t as y}from"./datetime-BJNH0M1T.js";import{t as b}from"./MessagePaper-Bmyt-U13.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=_(u({__name:`TicketPage`,setup(u){let _=d(),O=f(),k=o(()=>String(_.params.token||``)),A=s(),j=s(!1),M=s(``),N=o(()=>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 a(P),(a,o)=>(t(),p(`div`,x,[m(`div`,S,[r(b,null,{default:l(()=>[m(`div`,C,[o[7]||=m(`p`,{class:`ticket-kicker`},`ВЕЧЕРНИЙ ДЕТЕКТИВ · ПРОПУСК`,-1),o[8]||=m(`h1`,null,`Билет на игру`,-1),M.value?(t(),p(`p`,w,n(M.value),1)):A.value?(t(),p(c,{key:1},[m(`h2`,null,n(A.value.gameName),1),o[5]||=m(`hr`,null,null,-1),m(`dl`,null,[m(`div`,null,[o[0]||=m(`dt`,null,`Начало`,-1),m(`dd`,null,n(h(y)(A.value.startAt)),1)]),m(`div`,null,[o[1]||=m(`dt`,null,`Место`,-1),m(`dd`,null,n(A.value.location||`Онлайн`),1)])]),m(`div`,T,[r(h(v),{value:N.value,size:300,padding:0},null,8,[`value`])]),o[6]||=m(`p`,null,`Покажите этот QR-код организатору.`,-1),A.value.status===`used`?(t(),p(c,{key:0},[o[2]||=m(`hr`,null,null,-1),m(`p`,E,` Билет уже использован`+n(A.value.usedAt?` ${h(y)(A.value.usedAt)}`:``)+n(A.value.usedBy?` организатором ${A.value.usedBy}`:``)+`. `,1)],64)):A.value.gameStatus===`finish`?(t(),p(`p`,D,` Игра уже завершена. `)):(t(),p(c,{key:2},[o[3]||=m(`hr`,null,null,-1),o[4]||=m(`p`,{class:`active`,role:`status`},`Билет действителен.`,-1)],64))],64)):(t(),i(h(g),{key:2,loading:j.value,onClick:P},{default:l(()=>[e(n(j.value?`Загрузка`:`Повторить`),1)]),_:1},8,[`loading`]))])]),_:1})])]))}}),[[`__scopeId`,`data-v-5f755593`]]),k=u({__name:`TicketView`,setup(e){return(e,n)=>(t(),i(O))}});export{k as default}; import{Dt as e,Kt as t,Ln as n,Ot as r,St as i,Ut as a,bt as o,hn as s,ht as c,in as l,kt as u,l as d,t as f,wt as p,xt as m,yn as h}from"./client-Cr-cm5gA.js";import{t as g}from"./Button-ywRLIydo.js";import{t as _}from"./_plugin-vue_export-helper-D-vCjaLb.js";import{t as v}from"./QrCode-DCMU89nB.js";import{t as y}from"./datetime-BJNH0M1T.js";import{t as b}from"./MessagePaper-Bmyt-U13.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=_(u({__name:`TicketPage`,setup(u){let _=d(),O=f(),k=o(()=>String(_.params.token||``)),A=s(),j=s(!1),M=s(``),N=o(()=>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 a(P),(a,o)=>(t(),p(`div`,x,[m(`div`,S,[r(b,null,{default:l(()=>[m(`div`,C,[o[7]||=m(`p`,{class:`ticket-kicker`},`ВЕЧЕРНИЙ ДЕТЕКТИВ · ПРОПУСК`,-1),o[8]||=m(`h1`,null,`Билет на игру`,-1),M.value?(t(),p(`p`,w,n(M.value),1)):A.value?(t(),p(c,{key:1},[m(`h2`,null,n(A.value.gameName),1),o[5]||=m(`hr`,null,null,-1),m(`dl`,null,[m(`div`,null,[o[0]||=m(`dt`,null,`Начало`,-1),m(`dd`,null,n(h(y)(A.value.startAt)),1)]),m(`div`,null,[o[1]||=m(`dt`,null,`Место`,-1),m(`dd`,null,n(A.value.location||`Онлайн`),1)])]),m(`div`,T,[r(h(v),{value:N.value,size:300,padding:0},null,8,[`value`])]),o[6]||=m(`p`,null,`Покажите этот QR-код организатору.`,-1),A.value.status===`used`?(t(),p(c,{key:0},[o[2]||=m(`hr`,null,null,-1),m(`p`,E,` Билет уже использован`+n(A.value.usedAt?` ${h(y)(A.value.usedAt)}`:``)+n(A.value.usedBy?` организатором ${A.value.usedBy}`:``)+`. `,1)],64)):A.value.gameStatus===`finish`?(t(),p(`p`,D,` Игра уже завершена. `)):(t(),p(c,{key:2},[o[3]||=m(`hr`,null,null,-1),o[4]||=m(`p`,{class:`active`,role:`status`},`Билет действителен.`,-1)],64))],64)):(t(),i(h(g),{key:2,loading:j.value,onClick:P},{default:l(()=>[e(n(j.value?`Загрузка`:`Повторить`),1)]),_:1},8,[`loading`]))])]),_:1})])]))}}),[[`__scopeId`,`data-v-5f755593`]]),k=u({__name:`TicketView`,setup(e){return(e,n)=>(t(),i(O))}});export{k as default};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
import{Kt as e,Ot as t,ht as n,kt as r,wt as i}from"./client-Cr-cm5gA.js";import{t as a}from"./HeaderMenu-B9QH_cmH.js";import{t as o}from"./DocsPage-XwzRbNGh.js";var s=r({__name:`UserAgreementView`,setup(r){return(r,s)=>(e(),i(n,null,[t(o,{kind:`terms`}),t(a)],64))}});export{s as default}; import{Kt as e,Ot as t,ht as n,kt as r,wt as i}from"./client-Cr-cm5gA.js";import{t as a}from"./HeaderMenu-BACZAM90.js";import{t as o}from"./DocsPage-DZ3doZ4c.js";var s=r({__name:`UserAgreementView`,setup(r){return(r,s)=>(e(),i(n,null,[t(o,{kind:`terms`}),t(a)],64))}});export{s as default};
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
import{r as e}from"./client-Cr-cm5gA.js";import{r as t,t as n}from"./index-DvRZPtUt.js";function r(){let e=n();return i(e.refreshTokenAction,e.getToken)}function i(n,r){async function i(i,a){return t(async()=>{let t=new Headers(a.headers),n=r();n&&t.set(`Authorization`,`Bearer ${n}`);let o=await fetch(`${e()}/${i}`,{...a,headers:t});if(o.status===401)throw Error(`unauthorized`);return o},n,r)}async function s(e,t){let n=await i(e,{method:`GET`});if(!n.ok)throw Error(await o(n));return{blob:await n.blob(),filename:a(n.headers.get(`Content-Disposition`))||t}}function c(e){return s(`api/scenarios/${e}/archive`,`scenario-${e}.zip`)}function l(e){return s(`api/games/${e}/teams/qr.pdf`,`game-${e}.pdf`)}function u(e){return s(`api/games/${e}/export/download`,`game-${e}.zip`)}async function d(e){let t=await i(`api/games/import`,{method:`POST`,headers:{"Content-Type":`application/zip`},body:e});if(!t.ok)throw Error(await o(t));let n=await t.json();if(!n||typeof n!=`object`||!(`gameID`in n)||typeof n.gameID!=`number`||!Number.isSafeInteger(n.gameID)||n.gameID<=0||!(`packageID`in n)||typeof n.packageID!=`string`||!(`repeated`in n)||typeof n.repeated!=`boolean`)throw Error(`Некорректный ответ импорта игры`);return{gameID:n.gameID,packageID:n.packageID,repeated:n.repeated}}async function f(e){let t=await i(`api/scenarios/archive`,{method:`POST`,headers:{"Content-Type":e.type||`application/zip`},body:e});if(!t.ok)throw Error(await o(t));let n=await t.json().catch(()=>null);return{ID:typeof n?.ID==`number`?n.ID:null}}return{downloadScenarioArchive:c,downloadTeamQR:l,uploadScenarioArchive:f,downloadGamePackage:u,uploadGamePackage:d}}function a(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 o(e){let t=await e.json().catch(()=>null);if(t&&typeof t==`object`){if(`message`in t&&typeof t.message==`string`&&t.message!==``)return t.message;if(`error`in t&&typeof t.error==`string`&&t.error!==``)return t.error}return`Ошибка сервера (${e.status})`}export{r as t};
-1
View File
@@ -1 +0,0 @@
import{r as e}from"./client-Cr-cm5gA.js";import{r as t,t as n}from"./index-BDx9g-XU.js";function r(){let e=n();return i(e.refreshTokenAction,e.getToken)}function i(n,r){async function i(i,a){return t(async()=>{let t=new Headers(a.headers),n=r();n&&t.set(`Authorization`,`Bearer ${n}`);let o=await fetch(`${e()}/${i}`,{...a,headers:t});if(o.status===401)throw Error(`unauthorized`);return o},n,r)}async function s(e,t){let n=await i(e,{method:`GET`});if(!n.ok)throw Error(await o(n));return{blob:await n.blob(),filename:a(n.headers.get(`Content-Disposition`))||t}}function c(e){return s(`api/scenarios/${e}/archive`,`scenario-${e}.zip`)}function l(e){return s(`api/games/${e}/teams/qr.pdf`,`game-${e}.pdf`)}async function u(e){let t=await i(`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:c,downloadTeamQR:l,uploadScenarioArchive:u}}function a(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 o(e){let t=await e.json().catch(()=>null);return t&&typeof t.message==`string`&&t.message!==``?t.message:`Ошибка сервера (${e.status})`}export{r as t};
@@ -1,4 +1,4 @@
import{Bt as e,H as t,K as n,Mt as r,Pt as i,U as a,X as o,Y as s,Yt as c,_n as l,at as u,bt as d,d as f,dt as p,g as m,hn as h,it as g,kt as _,nt as v,ot as y,p as b,qt as x,st as S,tt as C}from"./client-Cr-cm5gA.js";import{c as w,o as T,s as E}from"./_plugin-vue_export-helper-D-vCjaLb.js";import{A as D,L as O,h as k}from"./index-BDx9g-XU.js";function A(e){return typeof e==`string`?e.endsWith(`px`)?Number(e.slice(0,e.length-2)):Number(e):e}function j(e){if(e!=null)return typeof e==`number`?`${e}px`:e.endsWith(`px`)?e:`${e}px`}function M(e,t){let n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw Error(`[seemly/getMargin]:`+e+` is not a valid value.`)}return t===void 0?r:r[t]}function ee(e,t){let[n,r]=e.split(` `);return t?t===`row`?n:r:{row:n,col:r||n}}function N(e){let{textColor2:t,primaryColorHover:n,primaryColorPressed:r,primaryColor:i,infoColor:a,successColor:s,warningColor:c,errorColor:l,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:w,heightMedium:T,closeColorHover:E,closeColorPressed:O,buttonColor2Hover:k,buttonColor2Pressed:A,fontWeightStrong:j}=e;return Object.assign(Object.assign({},D),{closeBorderRadius:_,heightTiny:S,heightSmall:C,heightMedium:w,heightLarge:T,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:E,closeColorPressed:O,borderPrimary:`1px solid ${o(i,{alpha:.3})}`,textColorPrimary:i,colorPrimary:o(i,{alpha:.12}),colorBorderedPrimary:o(i,{alpha:.1}),closeIconColorPrimary:i,closeIconColorHoverPrimary:i,closeIconColorPressedPrimary:i,closeColorHoverPrimary:o(i,{alpha:.12}),closeColorPressedPrimary:o(i,{alpha:.18}),borderInfo:`1px solid ${o(a,{alpha:.3})}`,textColorInfo:a,colorInfo:o(a,{alpha:.12}),colorBorderedInfo:o(a,{alpha:.1}),closeIconColorInfo:a,closeIconColorHoverInfo:a,closeIconColorPressedInfo:a,closeColorHoverInfo:o(a,{alpha:.12}),closeColorPressedInfo:o(a,{alpha:.18}),borderSuccess:`1px solid ${o(s,{alpha:.3})}`,textColorSuccess:s,colorSuccess:o(s,{alpha:.12}),colorBorderedSuccess:o(s,{alpha:.1}),closeIconColorSuccess:s,closeIconColorHoverSuccess:s,closeIconColorPressedSuccess:s,closeColorHoverSuccess:o(s,{alpha:.12}),closeColorPressedSuccess:o(s,{alpha:.18}),borderWarning:`1px solid ${o(c,{alpha:.35})}`,textColorWarning:c,colorWarning:o(c,{alpha:.15}),colorBorderedWarning:o(c,{alpha:.12}),closeIconColorWarning:c,closeIconColorHoverWarning:c,closeIconColorPressedWarning:c,closeColorHoverWarning:o(c,{alpha:.12}),closeColorPressedWarning:o(c,{alpha:.18}),borderError:`1px solid ${o(l,{alpha:.23})}`,textColorError:l,colorError:o(l,{alpha:.1}),colorBorderedError:o(l,{alpha:.08}),closeIconColorError:l,closeIconColorHoverError:l,closeIconColorPressedError:l,closeColorHoverError:o(l,{alpha:.12}),closeColorPressedError:o(l,{alpha:.18})})}var P={name:`Tag`,common:f,self:N},F={color:Object,type:{type:String,default:`default`},round:Boolean,size:String,closable:Boolean,disabled:{type:Boolean,default:void 0}},I=v(`tag`,` import{Bt as e,H as t,K as n,Mt as r,Pt as i,U as a,X as o,Y as s,Yt as c,_n as l,at as u,bt as d,d as f,dt as p,g as m,hn as h,it as g,kt as _,nt as v,ot as y,p as b,qt as x,st as S,tt as C}from"./client-Cr-cm5gA.js";import{c as w,o as T,s as E}from"./_plugin-vue_export-helper-D-vCjaLb.js";import{A as D,L as O,h as k}from"./index-DvRZPtUt.js";function A(e){return typeof e==`string`?e.endsWith(`px`)?Number(e.slice(0,e.length-2)):Number(e):e}function j(e){if(e!=null)return typeof e==`number`?`${e}px`:e.endsWith(`px`)?e:`${e}px`}function M(e,t){let n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw Error(`[seemly/getMargin]:`+e+` is not a valid value.`)}return t===void 0?r:r[t]}function ee(e,t){let[n,r]=e.split(` `);return t?t===`row`?n:r:{row:n,col:r||n}}function N(e){let{textColor2:t,primaryColorHover:n,primaryColorPressed:r,primaryColor:i,infoColor:a,successColor:s,warningColor:c,errorColor:l,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:w,heightMedium:T,closeColorHover:E,closeColorPressed:O,buttonColor2Hover:k,buttonColor2Pressed:A,fontWeightStrong:j}=e;return Object.assign(Object.assign({},D),{closeBorderRadius:_,heightTiny:S,heightSmall:C,heightMedium:w,heightLarge:T,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:E,closeColorPressed:O,borderPrimary:`1px solid ${o(i,{alpha:.3})}`,textColorPrimary:i,colorPrimary:o(i,{alpha:.12}),colorBorderedPrimary:o(i,{alpha:.1}),closeIconColorPrimary:i,closeIconColorHoverPrimary:i,closeIconColorPressedPrimary:i,closeColorHoverPrimary:o(i,{alpha:.12}),closeColorPressedPrimary:o(i,{alpha:.18}),borderInfo:`1px solid ${o(a,{alpha:.3})}`,textColorInfo:a,colorInfo:o(a,{alpha:.12}),colorBorderedInfo:o(a,{alpha:.1}),closeIconColorInfo:a,closeIconColorHoverInfo:a,closeIconColorPressedInfo:a,closeColorHoverInfo:o(a,{alpha:.12}),closeColorPressedInfo:o(a,{alpha:.18}),borderSuccess:`1px solid ${o(s,{alpha:.3})}`,textColorSuccess:s,colorSuccess:o(s,{alpha:.12}),colorBorderedSuccess:o(s,{alpha:.1}),closeIconColorSuccess:s,closeIconColorHoverSuccess:s,closeIconColorPressedSuccess:s,closeColorHoverSuccess:o(s,{alpha:.12}),closeColorPressedSuccess:o(s,{alpha:.18}),borderWarning:`1px solid ${o(c,{alpha:.35})}`,textColorWarning:c,colorWarning:o(c,{alpha:.15}),colorBorderedWarning:o(c,{alpha:.12}),closeIconColorWarning:c,closeIconColorHoverWarning:c,closeIconColorPressedWarning:c,closeColorHoverWarning:o(c,{alpha:.12}),closeColorPressedWarning:o(c,{alpha:.18}),borderError:`1px solid ${o(l,{alpha:.23})}`,textColorError:l,colorError:o(l,{alpha:.1}),colorBorderedError:o(l,{alpha:.08}),closeIconColorError:l,closeIconColorHoverError:l,closeIconColorPressedError:l,closeColorHoverError:o(l,{alpha:.12}),closeColorPressedError:o(l,{alpha:.18})})}var P={name:`Tag`,common:f,self:N},F={color:Object,type:{type:String,default:`default`},round:Boolean,size:String,closable:Boolean,disabled:{type:Boolean,default:void 0}},I=v(`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;
@@ -1 +1 @@
import{L as e,x as t}from"./client-Cr-cm5gA.js";import{J as n,K as r}from"./index-BDx9g-XU.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{L as e,x as t}from"./client-Cr-cm5gA.js";import{J as n,K as r}from"./index-DvRZPtUt.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};
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
import{Mt as e,Ut as t,Vt as n,hn as r,ht as i,kt as a,nn as o}from"./client-Cr-cm5gA.js";import{d as s,f as c,u as l}from"./Card-BXfpL_-k.js";import{$ as u}from"./index-BDx9g-XU.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=a({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(e){let i=u(),a=r(null),f=r(null),h=!1,g=!1,v=typeof document>`u`?null:document.activeElement;function y(){return _[_.length-1]===i}function b(t){var n;t.code===`Escape`&&y()&&((n=e.onEsc)==null||n.call(e,t))}t(()=>{o(()=>e.active,e=>{e?(C(),s(`keydown`,document,b)):(l(`keydown`,document,b),h&&w())},{immediate:!0})}),n(()=>{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 t;if(!e.disabled){if(_.push(i),e.autoFocus){let{initialFocusTo:n}=e;n===void 0?T(`first`):(t=d(n))==null||t.focus({preventScroll:!0})}h=!0,document.addEventListener(`focus`,x,!0)}}function w(){var t;if(e.disabled||(document.removeEventListener(`focus`,x,!0),_=_.filter(e=>e!==i),y()))return;let{finalFocusTo:n}=e;n===void 0?e.returnFocusOnDeactivated&&v instanceof HTMLElement&&(g=!0,v.focus({preventScroll:!0}),g=!1):(t=d(n))==null||t.focus({preventScroll:!0})}function T(t){if(y()&&e.active){let e=a.value,n=f.value;if(e!==null&&n!==null){let r=S();if(r==null||r===n){g=!0,e.focus({preventScroll:!0}),g=!1;return}g=!0;let i=t===`first`?p(r):m(r);g=!1,i||(g=!0,e.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:t}=this.$slots;if(t===void 0)return null;if(this.disabled)return t();let{active:n,focusableStyle:r}=this;return e(i,null,[e(`div`,{"aria-hidden":`true`,tabindex:n?`0`:`-1`,ref:`focusableStartRef`,style:r,onFocus:this.handleStartFocus}),t(),e(`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{Mt as e,Ut as t,Vt as n,hn as r,ht as i,kt as a,nn as o}from"./client-Cr-cm5gA.js";import{d as s,f as c,u as l}from"./Card-BKTR7RSt.js";import{$ as u}from"./index-DvRZPtUt.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=a({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(e){let i=u(),a=r(null),f=r(null),h=!1,g=!1,v=typeof document>`u`?null:document.activeElement;function y(){return _[_.length-1]===i}function b(t){var n;t.code===`Escape`&&y()&&((n=e.onEsc)==null||n.call(e,t))}t(()=>{o(()=>e.active,e=>{e?(C(),s(`keydown`,document,b)):(l(`keydown`,document,b),h&&w())},{immediate:!0})}),n(()=>{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 t;if(!e.disabled){if(_.push(i),e.autoFocus){let{initialFocusTo:n}=e;n===void 0?T(`first`):(t=d(n))==null||t.focus({preventScroll:!0})}h=!0,document.addEventListener(`focus`,x,!0)}}function w(){var t;if(e.disabled||(document.removeEventListener(`focus`,x,!0),_=_.filter(e=>e!==i),y()))return;let{finalFocusTo:n}=e;n===void 0?e.returnFocusOnDeactivated&&v instanceof HTMLElement&&(g=!0,v.focus({preventScroll:!0}),g=!1):(t=d(n))==null||t.focus({preventScroll:!0})}function T(t){if(y()&&e.active){let e=a.value,n=f.value;if(e!==null&&n!==null){let r=S();if(r==null||r===n){g=!0,e.focus({preventScroll:!0}),g=!1;return}g=!0;let i=t===`first`?p(r):m(r);g=!1,i||(g=!0,e.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:t}=this.$slots;if(t===void 0)return null;if(this.disabled)return t();let{active:n,focusableStyle:r}=this;return e(i,null,[e(`div`,{"aria-hidden":`true`,tabindex:n?`0`:`-1`,ref:`focusableStartRef`,style:r,onFocus:this.handleStartFocus}),t(),e(`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};
+21
View File
@@ -0,0 +1,21 @@
import{H as e,Mt as t,U as n,at as r,bt as i,kt as a,nt as o,p as s,st as c}from"./client-Cr-cm5gA.js";import{t as l}from"./use-compitable-BGh6qEk0.js";import{o as u}from"./index-DvRZPtUt.js";var d=o(`text`,`
transition: color .3s var(--n-bezier);
color: var(--n-text-color);
`,[r(`strong`,`
font-weight: var(--n-font-weight-strong);
`),r(`italic`,{fontStyle:`italic`}),r(`underline`,{textDecoration:`underline`}),r(`code`,`
line-height: 1.4;
display: inline-block;
font-family: var(--n-font-famliy-mono);
transition:
color .3s var(--n-bezier),
border-color .3s var(--n-bezier),
background-color .3s var(--n-bezier);
box-sizing: border-box;
padding: .05em .35em 0 .35em;
border-radius: var(--n-code-border-radius);
font-size: .9em;
color: var(--n-code-text-color);
background-color: var(--n-code-color);
border: var(--n-code-border);
`)]),f=a({name:`Text`,props:Object.assign(Object.assign({},s.props),{code:Boolean,type:{type:String,default:`default`},delete:Boolean,strong:Boolean,italic:Boolean,underline:Boolean,depth:[String,Number],tag:String,as:{type:String,validator:()=>!0,default:void 0}}),setup(t){let{mergedClsPrefixRef:r,inlineThemeDisabled:a}=n(t),o=s(`Typography`,`-text`,d,u,t,r),f=i(()=>{let{depth:e,type:n}=t,r=n==="default"?e===void 0?`textColor`:`textColor${e}Depth`:c(`textColor`,n),{common:{fontWeightStrong:i,fontFamilyMono:a,cubicBezierEaseInOut:s},self:{codeTextColor:l,codeBorderRadius:u,codeColor:d,codeBorder:f,[r]:p}}=o.value;return{"--n-bezier":s,"--n-text-color":p,"--n-font-weight-strong":i,"--n-font-famliy-mono":a,"--n-code-border-radius":u,"--n-code-text-color":l,"--n-code-color":d,"--n-code-border":f}}),p=a?e(`text`,i(()=>`${t.type[0]}${t.depth||``}`),f,t):void 0;return{mergedClsPrefix:r,compitableTag:l(t,[`as`,`tag`]),cssVars:a?void 0:f,themeClass:p?.themeClass,onRender:p?.onRender}},render(){var e,n;let{mergedClsPrefix:r}=this;(e=this.onRender)==null||e.call(this);let i=[`${r}-text`,this.themeClass,{[`${r}-text--code`]:this.code,[`${r}-text--delete`]:this.delete,[`${r}-text--strong`]:this.strong,[`${r}-text--italic`]:this.italic,[`${r}-text--underline`]:this.underline}],a=(n=this.$slots).default?.call(n);return this.code?t(`code`,{class:i,style:this.cssVars},this.delete?t(`del`,null,a):a):this.delete?t(`del`,{class:i,style:this.cssVars},a):t(this.compitableTag||`span`,{class:i,style:this.cssVars},a)}});export{f as t};
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -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-BDx9g-XU.js"></script> <script type="module" crossorigin src="/assets/index-DvRZPtUt.js"></script>
<link rel="modulepreload" crossorigin href="/assets/client-Cr-cm5gA.js"> <link rel="modulepreload" crossorigin href="/assets/client-Cr-cm5gA.js">
<link rel="modulepreload" crossorigin href="/assets/light-nDFR5FTC.js"> <link rel="modulepreload" crossorigin href="/assets/light-nDFR5FTC.js">
<link rel="stylesheet" crossorigin href="/assets/index-CF62QB4P.css"> <link rel="stylesheet" crossorigin href="/assets/index-CF62QB4P.css">