add mcp label

This commit is contained in:
2026-09-06 02:08:38 +07:00
parent 13aad8ff4c
commit 70307e905f
38 changed files with 74 additions and 36 deletions
@@ -1,4 +1,4 @@
import{E as e,M as t,k as n,rt as r,v as i}from"./vue-router-CyfP71JJ.js";import{B as a,G as o,J as s,K as c,M as l,N as u,V as d,Y as f,Z as p,o as m,r as h,t as g}from"./light-CPiNeYrP.js";import{a as _,c as v,r as y}from"./resolve-slot-tPBGpQg9.js";import{C as b,F as x,I as S,L as C,M as w,N as T,R as E,V as D,w as O}from"./index-DN1-lqty.js";function k(e){let{lineHeight:t,borderRadius:n,fontWeightStrong:r,baseColor:i,dividerColor:o,actionColor:s,textColor1:c,textColor2:l,closeColorHover:u,closeColorPressed:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,infoColor:g,successColor:_,warningColor:v,errorColor:y,fontSize:b}=e;return Object.assign(Object.assign({},O),{fontSize:b,lineHeight:t,titleFontWeight:r,borderRadius:n,border:`1px solid ${o}`,color:s,titleTextColor:c,iconColor:l,contentTextColor:l,closeBorderRadius:n,closeColorHover:u,closeColorPressed:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,borderInfo:`1px solid ${d(i,a(g,{alpha:.25}))}`,colorInfo:d(i,a(g,{alpha:.08})),titleTextColorInfo:c,iconColorInfo:g,contentTextColorInfo:l,closeColorHoverInfo:u,closeColorPressedInfo:f,closeIconColorInfo:p,closeIconColorHoverInfo:m,closeIconColorPressedInfo:h,borderSuccess:`1px solid ${d(i,a(_,{alpha:.25}))}`,colorSuccess:d(i,a(_,{alpha:.08})),titleTextColorSuccess:c,iconColorSuccess:_,contentTextColorSuccess:l,closeColorHoverSuccess:u,closeColorPressedSuccess:f,closeIconColorSuccess:p,closeIconColorHoverSuccess:m,closeIconColorPressedSuccess:h,borderWarning:`1px solid ${d(i,a(v,{alpha:.33}))}`,colorWarning:d(i,a(v,{alpha:.08})),titleTextColorWarning:c,iconColorWarning:v,contentTextColorWarning:l,closeColorHoverWarning:u,closeColorPressedWarning:f,closeIconColorWarning:p,closeIconColorHoverWarning:m,closeIconColorPressedWarning:h,borderError:`1px solid ${d(i,a(y,{alpha:.25}))}`,colorError:d(i,a(y,{alpha:.08})),titleTextColorError:c,iconColorError:y,contentTextColorError:l,closeColorHoverError:u,closeColorPressedError:f,closeIconColorError:p,closeIconColorHoverError:m,closeIconColorPressedError:h})}var A={name:`Alert`,common:g,self:k},j=c(`alert`,`
import{E as e,M as t,k as n,rt as r,v as i}from"./vue-router-CyfP71JJ.js";import{B as a,G as o,J as s,K as c,M as l,N as u,V as d,Y as f,Z as p,o as m,r as h,t as g}from"./light-CPiNeYrP.js";import{a as _,c as v,r as y}from"./resolve-slot-tPBGpQg9.js";import{C as b,F as x,I as S,L as C,M as w,N as T,R as E,V as D,w as O}from"./index-DC7nJyPp.js";function k(e){let{lineHeight:t,borderRadius:n,fontWeightStrong:r,baseColor:i,dividerColor:o,actionColor:s,textColor1:c,textColor2:l,closeColorHover:u,closeColorPressed:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,infoColor:g,successColor:_,warningColor:v,errorColor:y,fontSize:b}=e;return Object.assign(Object.assign({},O),{fontSize:b,lineHeight:t,titleFontWeight:r,borderRadius:n,border:`1px solid ${o}`,color:s,titleTextColor:c,iconColor:l,contentTextColor:l,closeBorderRadius:n,closeColorHover:u,closeColorPressed:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,borderInfo:`1px solid ${d(i,a(g,{alpha:.25}))}`,colorInfo:d(i,a(g,{alpha:.08})),titleTextColorInfo:c,iconColorInfo:g,contentTextColorInfo:l,closeColorHoverInfo:u,closeColorPressedInfo:f,closeIconColorInfo:p,closeIconColorHoverInfo:m,closeIconColorPressedInfo:h,borderSuccess:`1px solid ${d(i,a(_,{alpha:.25}))}`,colorSuccess:d(i,a(_,{alpha:.08})),titleTextColorSuccess:c,iconColorSuccess:_,contentTextColorSuccess:l,closeColorHoverSuccess:u,closeColorPressedSuccess:f,closeIconColorSuccess:p,closeIconColorHoverSuccess:m,closeIconColorPressedSuccess:h,borderWarning:`1px solid ${d(i,a(v,{alpha:.33}))}`,colorWarning:d(i,a(v,{alpha:.08})),titleTextColorWarning:c,iconColorWarning:v,contentTextColorWarning:l,closeColorHoverWarning:u,closeColorPressedWarning:f,closeIconColorWarning:p,closeIconColorHoverWarning:m,closeIconColorPressedWarning:h,borderError:`1px solid ${d(i,a(y,{alpha:.25}))}`,colorError:d(i,a(y,{alpha:.08})),titleTextColorError:c,iconColorError:y,contentTextColorError:l,closeColorHoverError:u,closeColorPressedError:f,closeIconColorError:p,closeIconColorHoverError:m,closeIconColorPressedError:h})}var A={name:`Alert`,common:g,self:k},j=c(`alert`,`
line-height: var(--n-line-height);
border-radius: var(--n-border-radius);
position: relative;
@@ -1,4 +1,4 @@
import{E as e,k as t,v as n}from"./vue-router-CyfP71JJ.js";import{$ as r,G as i,J as a,K as o,M as s,N as c,Q as l,W as u,Y as d,Z as f,o as p,r as m}from"./light-CPiNeYrP.js";import{i as h}from"./Input-CbjoGhTU.js";import{a as g,c as _,t as v}from"./resolve-slot-tPBGpQg9.js";import{t as y}from"./call-ChHlm4-m.js";import{N as b,b as x}from"./index-DN1-lqty.js";function S(e){return Object.keys(e)}var C=o(`card-content`,`
import{E as e,k as t,v as n}from"./vue-router-CyfP71JJ.js";import{$ as r,G as i,J as a,K as o,M as s,N as c,Q as l,W as u,Y as d,Z as f,o as p,r as m}from"./light-CPiNeYrP.js";import{i as h}from"./Input-Cd6eEZwQ.js";import{a as g,c as _,t as v}from"./resolve-slot-tPBGpQg9.js";import{t as y}from"./call-ChHlm4-m.js";import{N as b,b as x}from"./index-DC7nJyPp.js";function S(e){return Object.keys(e)}var C=o(`card-content`,`
flex: 1;
min-width: 0;
box-sizing: border-box;
@@ -1 +1 @@
import{E as e,Et as t,S as n,T as r,Tt as i,U as a,V as o,Z as s,b as c,ct as l,o as u,p as d,rt as f,w as p,y as m}from"./vue-router-CyfP71JJ.js";import{t as h}from"./Tag-D-utV0NI.js";import{i as g,n as _,t as v}from"./HeaderMenu-Cw3qZ0wy.js";var y={class:`center-block-custom`},b={class:`width1200 display-table`},x=[`onClick`],S={class:`scenario-content-block`},C={class:`scenario-title`},w={class:`scenario-description`},T={class:`scenario-label`},E=_(e({__name:`CatalogPage`,setup(e){let c=g(),_=f([]),E=u();async function D(){_.value=[];let e=await c.GetScenariosCatalog({});_.value=e.scenarios}async function O(e){E.push(`/scenarios/`+e)}return D(),(e,c)=>(o(),n(d,null,[m(`div`,y,[m(`div`,b,[(o(!0),n(d,null,a(_.value,e=>(o(),n(`div`,{class:`scenario-block`,onClick:t=>O(e.id),key:e.id},[m(`div`,{class:`scenario-image-block scenario-image`,style:i({backgroundImage:`url(${e.image})`})},null,4),m(`div`,S,[m(`p`,C,t(e.name),1),m(`p`,w,t(e.description),1),m(`p`,T,[r(l(h),{bordered:!1,type:`success`,class:`status-block`},{default:s(()=>[p(`Автор: `+t(e.author?.username),1)]),_:2},1024)])])],8,x))),128))])]),r(v,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-eeb868d7`]]),D=e({__name:`CatalogView`,setup(e){return(e,t)=>(o(),c(E))}});export{D as default};
import{E as e,Et as t,S as n,T as r,Tt as i,U as a,V as o,Z as s,b as c,ct as l,o as u,p as d,rt as f,w as p,y as m}from"./vue-router-CyfP71JJ.js";import{t as h}from"./Tag-BtIbiqcj.js";import{i as g,n as _,t as v}from"./HeaderMenu-Cw3qZ0wy.js";var y={class:`center-block-custom`},b={class:`width1200 display-table`},x=[`onClick`],S={class:`scenario-content-block`},C={class:`scenario-title`},w={class:`scenario-description`},T={class:`scenario-label`},E=_(e({__name:`CatalogPage`,setup(e){let c=g(),_=f([]),E=u();async function D(){_.value=[];let e=await c.GetScenariosCatalog({});_.value=e.scenarios}async function O(e){E.push(`/scenarios/`+e)}return D(),(e,c)=>(o(),n(d,null,[m(`div`,y,[m(`div`,b,[(o(!0),n(d,null,a(_.value,e=>(o(),n(`div`,{class:`scenario-block`,onClick:t=>O(e.id),key:e.id},[m(`div`,{class:`scenario-image-block scenario-image`,style:i({backgroundImage:`url(${e.image})`})},null,4),m(`div`,S,[m(`p`,C,t(e.name),1),m(`p`,w,t(e.description),1),m(`p`,T,[r(l(h),{bordered:!1,type:`success`,class:`status-block`},{default:s(()=>[p(`Автор: `+t(e.author?.username),1)]),_:2},1024)])])],8,x))),128))])]),r(v,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-eeb868d7`]]),D=e({__name:`CatalogView`,setup(e){return(e,t)=>(o(),c(E))}});export{D as default};
@@ -1 +1 @@
import{E as e,S as t,T as n,V as r,p as i}from"./vue-router-CyfP71JJ.js";import{t as a}from"./DocsPage-BRmC5FbI.js";import{t as o}from"./HeaderMenu-Cw3qZ0wy.js";var s=e({__name:`ConsentView`,setup(e){return(e,s)=>(r(),t(i,null,[n(a,{kind:`consent`}),n(o)],64))}});export{s as default};
import{E as e,S as t,T as n,V as r,p as i}from"./vue-router-CyfP71JJ.js";import{t as a}from"./DocsPage-DVPK5GG7.js";import{t as o}from"./HeaderMenu-Cw3qZ0wy.js";var s=e({__name:`ConsentView`,setup(e){return(e,s)=>(r(),t(i,null,[n(a,{kind:`consent`}),n(o)],64))}});export{s as default};
@@ -1,4 +1,4 @@
import{E as e,Et as t,R as n,S as r,T as i,V as a,X as o,Z as s,b as c,ct as l,k as u,rt as d,t as f,v as p,w as m,y as h}from"./vue-router-CyfP71JJ.js";import{G as g,K as _,M as v,N as y,Y as b,Z as x,r as S}from"./light-CPiNeYrP.js";import{l as C}from"./resolve-slot-tPBGpQg9.js";import{t as w}from"./use-compitable-Dm6CEJAS.js";import{t as T}from"./fade-in.cssr-C30AOOaV.js";import{t as E}from"./Alert-3BonGtoJ.js";import{A as D,Y as O,j as k,o as A}from"./index-DN1-lqty.js";import{i as j,n as M}from"./HeaderMenu-Cw3qZ0wy.js";import{t as N}from"./HeaderText-B0IeedC-.js";var P=g([g(`@keyframes spin-rotate`,`
import{E as e,Et as t,R as n,S as r,T as i,V as a,X as o,Z as s,b as c,ct as l,k as u,rt as d,t as f,v as p,w as m,y as h}from"./vue-router-CyfP71JJ.js";import{G as g,K as _,M as v,N as y,Y as b,Z as x,r as S}from"./light-CPiNeYrP.js";import{l as C}from"./resolve-slot-tPBGpQg9.js";import{t as w}from"./use-compitable-Dm6CEJAS.js";import{t as T}from"./fade-in.cssr-C30AOOaV.js";import{t as E}from"./Alert-DZcs5uM0.js";import{A as D,Y as O,j as k,o as A}from"./index-DC7nJyPp.js";import{i as j,n as M}from"./HeaderMenu-Cw3qZ0wy.js";import{t as N}from"./HeaderText-B0IeedC-.js";var P=g([g(`@keyframes spin-rotate`,`
from {
transform: rotate(0);
}
@@ -1 +1 @@
import{E as e,k as t,v as n}from"./vue-router-CyfP71JJ.js";import{N as r,Z as i,o as a,r as o}from"./light-CPiNeYrP.js";import{o as s,s as c}from"./resolve-slot-tPBGpQg9.js";import{c as l}from"./use-message-CG9_uVsZ.js";import{t as u}from"./get-slot-6kXJmSMP.js";import{c as d}from"./index-DN1-lqty.js";function f(){return d}var p={name:`Flex`,self:f},m=e({name:`Flex`,props:Object.assign(Object.assign({},o.props),{align:String,justify:{type:String,default:`start`},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:`medium`},wrap:{type:Boolean,default:!0}}),setup(e){let{mergedClsPrefixRef:t,mergedRtlRef:l}=r(e),u=o(`Flex`,`-flex`,void 0,p,e,t);return{rtlEnabled:a(`Flex`,l,t),mergedClsPrefix:t,margin:n(()=>{let{size:t}=e;if(Array.isArray(t))return{horizontal:t[0],vertical:t[1]};if(typeof t==`number`)return{horizontal:t,vertical:t};let{self:{[i(`gap`,t)]:n}}=u.value,{row:r,col:a}=c(n);return{horizontal:s(a),vertical:s(r)}})}},render(){let{vertical:e,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?t(`div`,{role:`none`,class:[`${c}-flex`,d&&`${c}-flex--rtl`],style:{display:i?`inline-flex`:`flex`,flexDirection:e&&!n?`column`:e&&n?`column-reverse`:!e&&n?`row-reverse`:`row`,justifyContent:a,flexWrap:!s||e?`nowrap`:`wrap`,alignItems:r,gap:`${o.vertical}px ${o.horizontal}px`}},f):null}});export{m as t};
import{E as e,k as t,v as n}from"./vue-router-CyfP71JJ.js";import{N as r,Z as i,o as a,r as o}from"./light-CPiNeYrP.js";import{o as s,s as c}from"./resolve-slot-tPBGpQg9.js";import{c as l}from"./use-message-SLv-C_PZ.js";import{t as u}from"./get-slot-6kXJmSMP.js";import{c as d}from"./index-DC7nJyPp.js";function f(){return d}var p={name:`Flex`,self:f},m=e({name:`Flex`,props:Object.assign(Object.assign({},o.props),{align:String,justify:{type:String,default:`start`},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:`medium`},wrap:{type:Boolean,default:!0}}),setup(e){let{mergedClsPrefixRef:t,mergedRtlRef:l}=r(e),u=o(`Flex`,`-flex`,void 0,p,e,t);return{rtlEnabled:a(`Flex`,l,t),mergedClsPrefix:t,margin:n(()=>{let{size:t}=e;if(Array.isArray(t))return{horizontal:t[0],vertical:t[1]};if(typeof t==`number`)return{horizontal:t,vertical:t};let{self:{[i(`gap`,t)]:n}}=u.value,{row:r,col:a}=c(n);return{horizontal:s(a),vertical:s(r)}})}},render(){let{vertical:e,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?t(`div`,{role:`none`,class:[`${c}-flex`,d&&`${c}-flex--rtl`],style:{display:i?`inline-flex`:`flex`,flexDirection:e&&!n?`column`:e&&n?`column-reverse`:!e&&n?`row-reverse`:`row`,justifyContent:a,flexWrap:!s||e?`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
@@ -1,4 +1,4 @@
import{E as e,Et as t,N as n,S as r,T as i,U as a,V as o,Y as s,Z as c,a as l,b as u,ct as d,k as f,o as p,ot as m,p as h,rt as g,v as _,w as v,x as y,y as b}from"./vue-router-CyfP71JJ.js";import{G as x,H as S,K as C,N as w,n as T,o as E,r as D,t as O}from"./light-CPiNeYrP.js";import{O as ee,s as te,t as k,w as A}from"./Input-CbjoGhTU.js";import{a as j,r as M}from"./resolve-slot-tPBGpQg9.js";import{t as N}from"./light-CeesScux.js";import{t as P}from"./Modal-DyqvqHxf.js";import{n as F,r as ne,s as re,t as ie}from"./use-message-CG9_uVsZ.js";import{t as I}from"./call-ChHlm4-m.js";import{t as L}from"./Card-BPELx-RI.js";import{t as R}from"./Add-7_W3iwiV.js";import{i as z,n as ae,r as B}from"./application-BuVGi0fb.js";import{t as V}from"./Tag-D-utV0NI.js";import{t as H}from"./Space-DiK7i7Mu.js";import{t as U}from"./Flex-BudtXCXQ.js";import{n as oe,t as se}from"./useSimplePolling-BJymiuzr.js";import{t as ce}from"./text-B44VmN02.js";import{J as W,V as G,x as K}from"./index-DN1-lqty.js";import{i as le,n as q,o as ue,r as J,t as de}from"./HeaderMenu-Cw3qZ0wy.js";import{t as fe}from"./Settings-BX8XQBVz.js";import{n as pe,t as me}from"./datetime-BJNH0M1T.js";function he(e){let{textColorDisabled:t}=e;return{iconColorDisabled:t}}var ge=T({name:`InputNumber`,common:O,peers:{Button:K,Input:N},self:he}),_e=x([C(`input-number-suffix`,`
import{E as e,Et as t,N as n,S as r,T as i,U as a,V as o,Y as s,Z as c,a as l,b as u,ct as d,k as f,o as p,ot as m,p as h,rt as g,v as _,w as v,x as y,y as b}from"./vue-router-CyfP71JJ.js";import{G as x,H as S,K as C,N as w,n as T,o as E,r as D,t as O}from"./light-CPiNeYrP.js";import{O as ee,s as te,t as k,w as A}from"./Input-Cd6eEZwQ.js";import{a as j,r as M}from"./resolve-slot-tPBGpQg9.js";import{t as N}from"./light-CeesScux.js";import{t as P}from"./Modal-CDNvKF0g.js";import{n as F,r as ne,s as re,t as ie}from"./use-message-SLv-C_PZ.js";import{t as I}from"./call-ChHlm4-m.js";import{t as L}from"./Card-BZj3MTrS.js";import{t as R}from"./Add-7_W3iwiV.js";import{i as z,n as ae,r as B}from"./application-BuVGi0fb.js";import{t as V}from"./Tag-BtIbiqcj.js";import{t as H}from"./Space-1DDS9mJf.js";import{t as U}from"./Flex-bXgyxe_-.js";import{n as oe,t as se}from"./useSimplePolling-BJymiuzr.js";import{t as ce}from"./text-DwgIDc7A.js";import{J as W,V as G,x as K}from"./index-DC7nJyPp.js";import{i as le,n as q,o as ue,r as J,t as de}from"./HeaderMenu-Cw3qZ0wy.js";import{t as fe}from"./Settings-BX8XQBVz.js";import{n as pe,t as me}from"./datetime-BJNH0M1T.js";function he(e){let{textColorDisabled:t}=e;return{iconColorDisabled:t}}var ge=T({name:`InputNumber`,common:O,peers:{Button:K,Input:N},self:he}),_e=x([C(`input-number-suffix`,`
display: inline-block;
margin-right: 10px;
`),C(`input-number-prefix`,`
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{E as e,Et as t,S as n,T as r,V as i,W as a,Z as o,b as s,ct as c,p as l,v as u,w as d,x as f,y as p}from"./vue-router-CyfP71JJ.js";import{t as m}from"./Input-CbjoGhTU.js";import{n as h}from"./use-message-CG9_uVsZ.js";import{n as g,t as _}from"./Upload-BxrhMP1t.js";import{t as v}from"./Space-DiK7i7Mu.js";import{t as y}from"./text-B44VmN02.js";import{n as b,o as x}from"./HeaderMenu-Cw3qZ0wy.js";var S={class:`main`},C={class:`message-cloud`},w=b(e({__name:`MessagePaper`,setup(e){return(e,t)=>(i(),n(`div`,S,[t[0]||=p(`div`,{class:`message-cloud-3`},null,-1),t[1]||=p(`div`,{class:`message-cloud-2`},null,-1),p(`div`,C,[a(e.$slots,`default`,{},void 0,!0)])]))}}),[[`__scopeId`,`data-v-0b1b8d3f`]]),T={key:0},E={class:`intro-text font`},D={key:0,class:`intro-audio-block`},O=[`src`],k={class:`message-content`},A={key:0},j={key:1,class:`intro-empty`},M={key:2,class:`intro-audio-block`},N=[`src`],P={key:2,class:`place-block`},F={class:`intro-edit-audio`},I=[`src`],L={class:`slot-block`},R=b(e({__name:`IntroBlock`,props:{introduction:{type:Object,required:!0},mode:{type:String,required:!0}},emits:[`update:mode`],setup(e,{emit:b}){let S=e,C=b,R=e=>{C(`update:mode`,e)},z=u(()=>!!S.introduction?.text),B=u(()=>!!S.introduction?.audio),V=u(()=>{let e=S.introduction?.audio;if(e)return/^https?:\/\//i.test(e)?e:`${x()}/api/files/${encodeURIComponent(e)}`}),H=()=>{S.introduction&&(S.introduction.audio=``,S.introduction.fileList=void 0)};return(u,b)=>(i(),n(l,null,[e.mode==`show`?(i(),n(`div`,T,[r(w,null,{default:o(()=>[b[4]||=p(`div`,{class:`font`},`Вступление`,-1),b[5]||=p(`hr`,{class:`intro-hr`},null,-1),p(`div`,E,t(e.introduction.text),1),B.value?(i(),n(`div`,D,[p(`audio`,{src:V.value,controls:``,preload:`none`,class:`intro-audio`},null,8,O)])):f(``,!0)]),_:1})])):f(``,!0),e.mode==`show-editor`?(i(),n(`div`,{key:1,class:`place-block-hover show-editor-block`,onClick:b[0]||=e=>R(`edit`)},[b[6]||=p(`div`,{class:`message-header`},`Вступление`,-1),b[7]||=p(`hr`,{class:`hr`},null,-1),p(`div`,k,[z.value?(i(),n(`span`,A,t(e.introduction.text),1)):(i(),n(`span`,j,`Введение не задано — нажмите, чтобы добавить`)),B.value?(i(),n(`div`,M,[p(`audio`,{src:V.value,controls:``,preload:`none`,class:`intro-audio`},null,8,N)])):f(``,!0)])])):f(``,!0),e.mode==`edit`?(i(),n(`div`,P,[r(c(v),{vertical:``},{default:o(()=>[b[11]||=p(`p`,{class:`settings-header`},`Текст вступления`,-1),r(c(m),{value:S.introduction.text,"onUpdate:value":b[1]||=e=>S.introduction.text=e,type:`textarea`,autosize:{minRows:4,maxRows:12},placeholder:`Дорогие сыщики! В этом деле вам предстоит...`},null,8,[`value`]),b[12]||=p(`p`,{class:`settings-header`},`Аудио вступления`,-1),p(`div`,F,[r(c(v),{vertical:``},{default:o(()=>[B.value?(i(),n(`audio`,{key:0,src:V.value,controls:``,preload:`none`,class:`intro-audio`},null,8,I)):(i(),s(c(y),{key:1,depth:`3`},{default:o(()=>[...b[8]||=[d(`Аудио не задано`,-1)]]),_:1})),r(c(h),{onClick:b[2]||=e=>H(),disabled:!B.value},{default:o(()=>[...b[9]||=[d(`Убрать аудио`,-1)]]),_:1},8,[`disabled`])]),_:1}),r(c(_),{"directory-dnd":``,max:1,"file-list":S.introduction.fileList,"onUpdate:fileList":b[3]||=e=>S.introduction.fileList=e},{default:o(()=>[r(c(g),null,{default:o(()=>[r(c(y),{style:{"font-size":`16px`}},{default:o(()=>[...b[10]||=[d(` Щелкните или перетащите аудиофайл в эту область для загрузки `,-1)]]),_:1})]),_:1})]),_:1},8,[`file-list`])]),p(`div`,L,[a(u.$slots,`default`,{},void 0,!0)])]),_:3})])):f(``,!0)],64))}}),[[`__scopeId`,`data-v-0e23a0f8`]]);export{w as n,R as t};
import{E as e,Et as t,S as n,T as r,V as i,W as a,Z as o,b as s,ct as c,p as l,v as u,w as d,x as f,y as p}from"./vue-router-CyfP71JJ.js";import{t as m}from"./Input-Cd6eEZwQ.js";import{n as h}from"./use-message-SLv-C_PZ.js";import{n as g,t as _}from"./Upload-DazQvWXJ.js";import{t as v}from"./Space-1DDS9mJf.js";import{t as y}from"./text-DwgIDc7A.js";import{n as b,o as x}from"./HeaderMenu-Cw3qZ0wy.js";var S={class:`main`},C={class:`message-cloud`},w=b(e({__name:`MessagePaper`,setup(e){return(e,t)=>(i(),n(`div`,S,[t[0]||=p(`div`,{class:`message-cloud-3`},null,-1),t[1]||=p(`div`,{class:`message-cloud-2`},null,-1),p(`div`,C,[a(e.$slots,`default`,{},void 0,!0)])]))}}),[[`__scopeId`,`data-v-0b1b8d3f`]]),T={key:0},E={class:`intro-text font`},D={key:0,class:`intro-audio-block`},O=[`src`],k={class:`message-content`},A={key:0},j={key:1,class:`intro-empty`},M={key:2,class:`intro-audio-block`},N=[`src`],P={key:2,class:`place-block`},F={class:`intro-edit-audio`},I=[`src`],L={class:`slot-block`},R=b(e({__name:`IntroBlock`,props:{introduction:{type:Object,required:!0},mode:{type:String,required:!0}},emits:[`update:mode`],setup(e,{emit:b}){let S=e,C=b,R=e=>{C(`update:mode`,e)},z=u(()=>!!S.introduction?.text),B=u(()=>!!S.introduction?.audio),V=u(()=>{let e=S.introduction?.audio;if(e)return/^https?:\/\//i.test(e)?e:`${x()}/api/files/${encodeURIComponent(e)}`}),H=()=>{S.introduction&&(S.introduction.audio=``,S.introduction.fileList=void 0)};return(u,b)=>(i(),n(l,null,[e.mode==`show`?(i(),n(`div`,T,[r(w,null,{default:o(()=>[b[4]||=p(`div`,{class:`font`},`Вступление`,-1),b[5]||=p(`hr`,{class:`intro-hr`},null,-1),p(`div`,E,t(e.introduction.text),1),B.value?(i(),n(`div`,D,[p(`audio`,{src:V.value,controls:``,preload:`none`,class:`intro-audio`},null,8,O)])):f(``,!0)]),_:1})])):f(``,!0),e.mode==`show-editor`?(i(),n(`div`,{key:1,class:`place-block-hover show-editor-block`,onClick:b[0]||=e=>R(`edit`)},[b[6]||=p(`div`,{class:`message-header`},`Вступление`,-1),b[7]||=p(`hr`,{class:`hr`},null,-1),p(`div`,k,[z.value?(i(),n(`span`,A,t(e.introduction.text),1)):(i(),n(`span`,j,`Введение не задано — нажмите, чтобы добавить`)),B.value?(i(),n(`div`,M,[p(`audio`,{src:V.value,controls:``,preload:`none`,class:`intro-audio`},null,8,N)])):f(``,!0)])])):f(``,!0),e.mode==`edit`?(i(),n(`div`,P,[r(c(v),{vertical:``},{default:o(()=>[b[11]||=p(`p`,{class:`settings-header`},`Текст вступления`,-1),r(c(m),{value:S.introduction.text,"onUpdate:value":b[1]||=e=>S.introduction.text=e,type:`textarea`,autosize:{minRows:4,maxRows:12},placeholder:`Дорогие сыщики! В этом деле вам предстоит...`},null,8,[`value`]),b[12]||=p(`p`,{class:`settings-header`},`Аудио вступления`,-1),p(`div`,F,[r(c(v),{vertical:``},{default:o(()=>[B.value?(i(),n(`audio`,{key:0,src:V.value,controls:``,preload:`none`,class:`intro-audio`},null,8,I)):(i(),s(c(y),{key:1,depth:`3`},{default:o(()=>[...b[8]||=[d(`Аудио не задано`,-1)]]),_:1})),r(c(h),{onClick:b[2]||=e=>H(),disabled:!B.value},{default:o(()=>[...b[9]||=[d(`Убрать аудио`,-1)]]),_:1},8,[`disabled`])]),_:1}),r(c(_),{"directory-dnd":``,max:1,"file-list":S.introduction.fileList,"onUpdate:fileList":b[3]||=e=>S.introduction.fileList=e},{default:o(()=>[r(c(g),null,{default:o(()=>[r(c(y),{style:{"font-size":`16px`}},{default:o(()=>[...b[10]||=[d(` Щелкните или перетащите аудиофайл в эту область для загрузки `,-1)]]),_:1})]),_:1})]),_:1},8,[`file-list`])]),p(`div`,L,[a(u.$slots,`default`,{},void 0,!0)])]),_:3})])):f(``,!0)],64))}}),[[`__scopeId`,`data-v-0e23a0f8`]]);export{w as n,R as t};
@@ -1,4 +1,4 @@
import{A as e,E as t,H as n,M as r,N as i,Q as a,R as o,S as s,T as c,V as l,X as u,Y as d,Z as f,_ as p,ct as m,k as h,o as g,ot as _,p as v,rt as y,v as b,w as x,y as S}from"./vue-router-CyfP71JJ.js";import{$ as C,E as w,G as T,I as E,J as D,K as O,M as ee,N as k,Q as A,R as j,X as M,Y as N,Z as P,j as F,o as I,r as L,z as R}from"./light-CPiNeYrP.js";import{a as z,i as B,l as te,n as V,o as H,r as U,t as W}from"./Follower-BU8lqjCU.js";import{a as ne,o as re,t as ie}from"./utils-CALXt-xa.js";import{O as ae,d as oe,f as G,g as K,k as q,r as se,t as J,w as Y}from"./Input-CbjoGhTU.js";import{a as X,c as Z,o as ce}from"./resolve-slot-tPBGpQg9.js";import{a as Q}from"./light-CeesScux.js";import{t as le}from"./use-compitable-Dm6CEJAS.js";import{c as ue,n as de,s as fe,t as pe}from"./use-message-CG9_uVsZ.js";import{t as $}from"./call-ChHlm4-m.js";import{t as me}from"./Card-BPELx-RI.js";import{t as he}from"./Add-7_W3iwiV.js";import{t as ge}from"./Space-DiK7i7Mu.js";import{B as _e,G as ve,J as ye,K as be,N as xe,P as Se,Q as Ce,S as we,V as Te,W as Ee,X as De,Y as Oe,i as ke,q as Ae,y as je}from"./index-DN1-lqty.js";import{a as Me,n as Ne,t as Pe}from"./HeaderMenu-Cw3qZ0wy.js";var Fe=V(`.v-x-scroll`,{overflow:`auto`,scrollbarWidth:`none`},[V(`&::-webkit-scrollbar`,{width:0,height:0})]),Ie=t({name:`XScroll`,props:{disabled:Boolean,onScroll:Function},setup(){let e=y(null);function t(e){!(e.currentTarget.offsetWidth<e.currentTarget.scrollWidth)||e.deltaY===0||(e.currentTarget.scrollLeft+=e.deltaY+e.deltaX,e.preventDefault())}let n=j();return Fe.mount({id:`vueuc/x-scroll`,head:!0,anchorMetaName:U,ssr:n}),Object.assign({selfRef:e,handleWheel:t},{scrollTo(...t){var n;(n=e.value)==null||n.scrollTo(...t)}})},render(){return h(`div`,{ref:`selfRef`,onScroll:this.onScroll,onWheel:this.disabled?void 0:this.handleWheel,class:`v-x-scroll`},this.$slots)}}),Le=/\s/;function Re(e){for(var t=e.length;t--&&Le.test(e.charAt(t)););return t}var ze=/^\s+/;function Be(e){return e&&e.slice(0,Re(e)+1).replace(ze,``)}var Ve=NaN,He=/^[-+]0x[0-9a-f]+$/i,Ue=/^0b[01]+$/i,We=/^0o[0-7]+$/i,Ge=parseInt;function Ke(e){if(typeof e==`number`)return e;if(Ee(e))return Ve;if(w(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=w(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=Be(e);var n=Ue.test(e);return n||We.test(e)?Ge(e.slice(2),n?2:8):He.test(e)?Ve:+e}var qe=function(){return F.Date.now()},Je=`Expected a function`,Ye=Math.max,Xe=Math.min;function Ze(e,t,n){var r,i,a,o,s,c,l=0,u=!1,d=!1,f=!0;if(typeof e!=`function`)throw TypeError(Je);t=Ke(t)||0,w(n)&&(u=!!n.leading,d=`maxWait`in n,a=d?Ye(Ke(n.maxWait)||0,t):a,f=`trailing`in n?!!n.trailing:f);function p(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n),o}function m(e){return l=e,s=setTimeout(_,t),u?p(e):o}function h(e){var n=e-c,r=e-l,i=t-n;return d?Xe(i,a-r):i}function g(e){var n=e-c,r=e-l;return c===void 0||n>=t||n<0||d&&r>=a}function _(){var e=qe();if(g(e))return v(e);s=setTimeout(_,h(e))}function v(e){return s=void 0,f&&r?p(e):(r=i=void 0,o)}function y(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0}function b(){return s===void 0?o:v(qe())}function x(){var e=qe(),n=g(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return m(c);if(d)return clearTimeout(s),s=setTimeout(_,t),p(c)}return s===void 0&&(s=setTimeout(_,t)),o}return x.cancel=y,x.flush=b,x}var Qe=`Expected a function`;function $e(e,t,n){var r=!0,i=!0;if(typeof e!=`function`)throw TypeError(Qe);return w(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),Ze(e,t,{leading:r,maxWait:t,trailing:i})}var et=T([O(`auto-complete`,`
import{A as e,E as t,H as n,M as r,N as i,Q as a,R as o,S as s,T as c,V as l,X as u,Y as d,Z as f,_ as p,ct as m,k as h,o as g,ot as _,p as v,rt as y,v as b,w as x,y as S}from"./vue-router-CyfP71JJ.js";import{$ as C,E as w,G as T,I as E,J as D,K as O,M as ee,N as k,Q as A,R as j,X as M,Y as N,Z as P,j as F,o as I,r as L,z as R}from"./light-CPiNeYrP.js";import{a as z,i as B,l as te,n as V,o as H,r as U,t as W}from"./Follower-CS9vEAVw.js";import{a as ne,o as re,t as ie}from"./utils-I_bE4fKT.js";import{O as ae,d as oe,f as G,g as K,k as q,r as se,t as J,w as Y}from"./Input-Cd6eEZwQ.js";import{a as X,c as Z,o as ce}from"./resolve-slot-tPBGpQg9.js";import{a as Q}from"./light-CeesScux.js";import{t as le}from"./use-compitable-Dm6CEJAS.js";import{c as ue,n as de,s as fe,t as pe}from"./use-message-SLv-C_PZ.js";import{t as $}from"./call-ChHlm4-m.js";import{t as me}from"./Card-BZj3MTrS.js";import{t as he}from"./Add-7_W3iwiV.js";import{t as ge}from"./Space-1DDS9mJf.js";import{B as _e,G as ve,J as ye,K as be,N as xe,P as Se,Q as Ce,S as we,V as Te,W as Ee,X as De,Y as Oe,i as ke,q as Ae,y as je}from"./index-DC7nJyPp.js";import{a as Me,n as Ne,t as Pe}from"./HeaderMenu-Cw3qZ0wy.js";var Fe=V(`.v-x-scroll`,{overflow:`auto`,scrollbarWidth:`none`},[V(`&::-webkit-scrollbar`,{width:0,height:0})]),Ie=t({name:`XScroll`,props:{disabled:Boolean,onScroll:Function},setup(){let e=y(null);function t(e){!(e.currentTarget.offsetWidth<e.currentTarget.scrollWidth)||e.deltaY===0||(e.currentTarget.scrollLeft+=e.deltaY+e.deltaX,e.preventDefault())}let n=j();return Fe.mount({id:`vueuc/x-scroll`,head:!0,anchorMetaName:U,ssr:n}),Object.assign({selfRef:e,handleWheel:t},{scrollTo(...t){var n;(n=e.value)==null||n.scrollTo(...t)}})},render(){return h(`div`,{ref:`selfRef`,onScroll:this.onScroll,onWheel:this.disabled?void 0:this.handleWheel,class:`v-x-scroll`},this.$slots)}}),Le=/\s/;function Re(e){for(var t=e.length;t--&&Le.test(e.charAt(t)););return t}var ze=/^\s+/;function Be(e){return e&&e.slice(0,Re(e)+1).replace(ze,``)}var Ve=NaN,He=/^[-+]0x[0-9a-f]+$/i,Ue=/^0b[01]+$/i,We=/^0o[0-7]+$/i,Ge=parseInt;function Ke(e){if(typeof e==`number`)return e;if(Ee(e))return Ve;if(w(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=w(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=Be(e);var n=Ue.test(e);return n||We.test(e)?Ge(e.slice(2),n?2:8):He.test(e)?Ve:+e}var qe=function(){return F.Date.now()},Je=`Expected a function`,Ye=Math.max,Xe=Math.min;function Ze(e,t,n){var r,i,a,o,s,c,l=0,u=!1,d=!1,f=!0;if(typeof e!=`function`)throw TypeError(Je);t=Ke(t)||0,w(n)&&(u=!!n.leading,d=`maxWait`in n,a=d?Ye(Ke(n.maxWait)||0,t):a,f=`trailing`in n?!!n.trailing:f);function p(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n),o}function m(e){return l=e,s=setTimeout(_,t),u?p(e):o}function h(e){var n=e-c,r=e-l,i=t-n;return d?Xe(i,a-r):i}function g(e){var n=e-c,r=e-l;return c===void 0||n>=t||n<0||d&&r>=a}function _(){var e=qe();if(g(e))return v(e);s=setTimeout(_,h(e))}function v(e){return s=void 0,f&&r?p(e):(r=i=void 0,o)}function y(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0}function b(){return s===void 0?o:v(qe())}function x(){var e=qe(),n=g(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return m(c);if(d)return clearTimeout(s),s=setTimeout(_,t),p(c)}return s===void 0&&(s=setTimeout(_,t)),o}return x.cancel=y,x.flush=b,x}var Qe=`Expected a function`;function $e(e,t,n){var r=!0,i=!0;if(typeof e!=`function`)throw TypeError(Qe);return w(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),Ze(e,t,{leading:r,maxWait:t,trailing:i})}var et=T([O(`auto-complete`,`
z-index: auto;
position: relative;
display: inline-flex;
@@ -1,4 +1,4 @@
import{A as e,E as t,F as n,H as r,I as i,M as a,N as o,Q as s,R as c,Y as l,_ as u,k as d,nt as f,ot as p,rt as m,v as h,wt as g,z as _}from"./vue-router-CyfP71JJ.js";import{G as v,J as y,K as b,L as x,M as S,N as C,Q as w,W as T,Y as E,Z as D,o as O,r as k,z as A}from"./light-CPiNeYrP.js";import{C as j,D as M,E as ee,O as N,S as te,T as P,b as ne,d as re,g as ie,h as ae,i as oe,k as se,m as ce,r as le,x as ue,y as de}from"./Input-CbjoGhTU.js";import{a as F,c as fe,r as I}from"./resolve-slot-tPBGpQg9.js";import{l as pe,n as L}from"./use-message-CG9_uVsZ.js";import{n as me,t as R}from"./keep-c1myxUyr.js";import{t as z}from"./call-ChHlm4-m.js";import{i as B,n as he,r as ge,t as _e}from"./Card-BPELx-RI.js";import{t as ve}from"./fade-in.cssr-C30AOOaV.js";import{F as ye,G as V,I as be,L as H,N as xe,Q as U,R as Se,V as Ce,Y as we,f as Te,p as Ee,q as De}from"./index-DN1-lqty.js";var W=m(null);function Oe(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 G=0,ke=!0;function Ae(){if(!ee)return f(m(null));G===0&&N(`click`,document,Oe,!0);let e=()=>{G+=1};return(ke&&=P())?(n(e),i(()=>{--G,G===0&&M(`click`,document,Oe,!0)})):e(),f(W)}var je=m(void 0),K=0;function Me(){je.value=Date.now()}var Ne=!0;function Pe(e){if(!ee)return f(m(!1));let t=m(!1),r=null;function a(){r!==null&&window.clearTimeout(r)}function o(){a(),t.value=!0,r=window.setTimeout(()=>{t.value=!1},e)}K===0&&N(`click`,window,Me,!0);let s=()=>{K+=1,N(`click`,window,o,!0)};return(Ne&&=P())?(n(s),i(()=>{--K,K===0&&M(`click`,window,Me,!0),M(`click`,window,o,!0),a()})):s(),f(t)}var q=m(!1);function Fe(){q.value=!0}function Ie(){q.value=!1}var J=0;function Le(){return pe&&(n(()=>{J||(window.addEventListener(`compositionstart`,Fe),window.addEventListener(`compositionend`,Ie)),J++}),i(()=>{J<=1?(window.removeEventListener(`compositionstart`,Fe),window.removeEventListener(`compositionend`,Ie),J=0):J--})),q}var Y=0,Re=``,ze=``,Be=``,X=``,Ve=m(`0px`);function He(e){if(typeof document>`u`)return;let t=document.documentElement,n,r=!1,a=()=>{t.style.marginRight=Re,t.style.overflow=ze,t.style.overflowX=Be,t.style.overflowY=X,Ve.value=`0px`};c(()=>{n=l(e,e=>{if(e){if(!Y){let e=window.innerWidth-t.offsetWidth;e>0&&(Re=t.style.marginRight,t.style.marginRight=`${e}px`,Ve.value=`${e}px`),ze=t.style.overflow,Be=t.style.overflowX,X=t.style.overflowY,t.style.overflow=`hidden`,t.style.overflowX=`hidden`,t.style.overflowY=`hidden`}r=!0,Y++}else Y--,Y||a(),r=!1},{immediate:!0})}),i(()=>{n?.(),r&&=(Y--,Y||a(),!1)})}var Ue=new WeakSet;function We(e){Ue.add(e)}function Ge(e){return!Ue.has(e)}var Ke=A(`n-dialog-provider`);A(`n-dialog-api`),A(`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},qe=B(Z),Je=v([b(`dialog`,`
import{A as e,E as t,F as n,H as r,I as i,M as a,N as o,Q as s,R as c,Y as l,_ as u,k as d,nt as f,ot as p,rt as m,v as h,wt as g,z as _}from"./vue-router-CyfP71JJ.js";import{G as v,J as y,K as b,L as x,M as S,N as C,Q as w,W as T,Y as E,Z as D,o as O,r as k,z as A}from"./light-CPiNeYrP.js";import{C as j,D as M,E as ee,O as N,S as te,T as P,b as ne,d as re,g as ie,h as ae,i as oe,k as se,m as ce,r as le,x as ue,y as de}from"./Input-Cd6eEZwQ.js";import{a as F,c as fe,r as I}from"./resolve-slot-tPBGpQg9.js";import{l as pe,n as L}from"./use-message-SLv-C_PZ.js";import{n as me,t as R}from"./keep-Ccwrf3sj.js";import{t as z}from"./call-ChHlm4-m.js";import{i as B,n as he,r as ge,t as _e}from"./Card-BZj3MTrS.js";import{t as ve}from"./fade-in.cssr-C30AOOaV.js";import{F as ye,G as V,I as be,L as H,N as xe,Q as U,R as Se,V as Ce,Y as we,f as Te,p as Ee,q as De}from"./index-DC7nJyPp.js";var W=m(null);function Oe(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 G=0,ke=!0;function Ae(){if(!ee)return f(m(null));G===0&&N(`click`,document,Oe,!0);let e=()=>{G+=1};return(ke&&=P())?(n(e),i(()=>{--G,G===0&&M(`click`,document,Oe,!0)})):e(),f(W)}var je=m(void 0),K=0;function Me(){je.value=Date.now()}var Ne=!0;function Pe(e){if(!ee)return f(m(!1));let t=m(!1),r=null;function a(){r!==null&&window.clearTimeout(r)}function o(){a(),t.value=!0,r=window.setTimeout(()=>{t.value=!1},e)}K===0&&N(`click`,window,Me,!0);let s=()=>{K+=1,N(`click`,window,o,!0)};return(Ne&&=P())?(n(s),i(()=>{--K,K===0&&M(`click`,window,Me,!0),M(`click`,window,o,!0),a()})):s(),f(t)}var q=m(!1);function Fe(){q.value=!0}function Ie(){q.value=!1}var J=0;function Le(){return pe&&(n(()=>{J||(window.addEventListener(`compositionstart`,Fe),window.addEventListener(`compositionend`,Ie)),J++}),i(()=>{J<=1?(window.removeEventListener(`compositionstart`,Fe),window.removeEventListener(`compositionend`,Ie),J=0):J--})),q}var Y=0,Re=``,ze=``,Be=``,X=``,Ve=m(`0px`);function He(e){if(typeof document>`u`)return;let t=document.documentElement,n,r=!1,a=()=>{t.style.marginRight=Re,t.style.overflow=ze,t.style.overflowX=Be,t.style.overflowY=X,Ve.value=`0px`};c(()=>{n=l(e,e=>{if(e){if(!Y){let e=window.innerWidth-t.offsetWidth;e>0&&(Re=t.style.marginRight,t.style.marginRight=`${e}px`,Ve.value=`${e}px`),ze=t.style.overflow,Be=t.style.overflowX,X=t.style.overflowY,t.style.overflow=`hidden`,t.style.overflowX=`hidden`,t.style.overflowY=`hidden`}r=!0,Y++}else Y--,Y||a(),r=!1},{immediate:!0})}),i(()=>{n?.(),r&&=(Y--,Y||a(),!1)})}var Ue=new WeakSet;function We(e){Ue.add(e)}function Ge(e){return!Ue.has(e)}var Ke=A(`n-dialog-provider`);A(`n-dialog-api`),A(`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},qe=B(Z),Je=v([b(`dialog`,`
--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;
line-height: var(--n-line-height);
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
import{$ as e,A as t,E as n,Et as r,H as i,S as a,T as o,U as s,V as c,W as l,Z as u,at as d,ct as f,k as p,ot as m,p as h,rt as g,v as _,w as v,x as y,y as b}from"./vue-router-CyfP71JJ.js";import{B as x,G as S,J as C,K as w,M as T,N as E,X as D,Y as O,Z as k,i as A,n as j,o as ee,r as M,t as N,z as te}from"./light-CPiNeYrP.js";import{s as P,t as F,w as I}from"./Input-CbjoGhTU.js";import{a as L,i as ne,l as R,n as z,o as B,r as re}from"./resolve-slot-tPBGpQg9.js";import{a as ie,t as ae}from"./light-CeesScux.js";import{t as oe}from"./Modal-DyqvqHxf.js";import{i as se,n as V,o as ce,s as le}from"./use-message-CG9_uVsZ.js";import{t as H}from"./call-ChHlm4-m.js";import{n as ue,t as de}from"./Upload-BxrhMP1t.js";import{t as fe}from"./Card-BPELx-RI.js";import{t as pe}from"./Add-7_W3iwiV.js";import{i as me,n as U,r as W,t as he}from"./application-BuVGi0fb.js";import{t as ge}from"./Tag-D-utV0NI.js";import{t as G}from"./Space-DiK7i7Mu.js";import{t as _e}from"./text-B44VmN02.js";import{A as ve,B as ye,P as be,V as K,a as xe,et as q,u as Se,x as Ce}from"./index-DN1-lqty.js";import{n as we,r as Te}from"./HeaderMenu-Cw3qZ0wy.js";import{n as Ee}from"./IntroBlock-78Dnnzsx.js";var De=n({name:`ArrowDown`,render(){return p(`svg`,{viewBox:`0 0 28 28`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},p(`g`,{stroke:`none`,"stroke-width":`1`,"fill-rule":`evenodd`},p(`g`,{"fill-rule":`nonzero`},p(`path`,{d:`M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z`}))))}}),Oe=n({name:`ArrowUp`,render(){return p(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`},p(`g`,{fill:`none`},p(`path`,{d:`M3.13 9.163a.5.5 0 1 0 .74.674L9.5 3.67V17.5a.5.5 0 0 0 1 0V3.672l5.63 6.165a.5.5 0 0 0 .738-.674l-6.315-6.916a.746.746 0 0 0-.632-.24a.746.746 0 0 0-.476.24L3.131 9.163z`,fill:`currentColor`})))}}),ke=w(`input-group`,`
import{$ as e,A as t,E as n,Et as r,H as i,S as a,T as o,U as s,V as c,W as l,Z as u,at as d,ct as f,k as p,ot as m,p as h,rt as g,v as _,w as v,x as y,y as b}from"./vue-router-CyfP71JJ.js";import{B as x,G as S,J as C,K as w,M as T,N as E,X as D,Y as O,Z as k,i as A,n as j,o as ee,r as M,t as N,z as te}from"./light-CPiNeYrP.js";import{s as P,t as F,w as I}from"./Input-Cd6eEZwQ.js";import{a as L,i as ne,l as R,n as z,o as B,r as re}from"./resolve-slot-tPBGpQg9.js";import{a as ie,t as ae}from"./light-CeesScux.js";import{t as oe}from"./Modal-CDNvKF0g.js";import{i as se,n as V,o as ce,s as le}from"./use-message-SLv-C_PZ.js";import{t as H}from"./call-ChHlm4-m.js";import{n as ue,t as de}from"./Upload-DazQvWXJ.js";import{t as fe}from"./Card-BZj3MTrS.js";import{t as pe}from"./Add-7_W3iwiV.js";import{i as me,n as U,r as W,t as he}from"./application-BuVGi0fb.js";import{t as ge}from"./Tag-BtIbiqcj.js";import{t as G}from"./Space-1DDS9mJf.js";import{t as _e}from"./text-DwgIDc7A.js";import{A as ve,B as ye,P as be,V as K,a as xe,et as q,u as Se,x as Ce}from"./index-DC7nJyPp.js";import{n as we,r as Te}from"./HeaderMenu-Cw3qZ0wy.js";import{n as Ee}from"./IntroBlock-BluoywxU.js";var De=n({name:`ArrowDown`,render(){return p(`svg`,{viewBox:`0 0 28 28`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},p(`g`,{stroke:`none`,"stroke-width":`1`,"fill-rule":`evenodd`},p(`g`,{"fill-rule":`nonzero`},p(`path`,{d:`M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z`}))))}}),Oe=n({name:`ArrowUp`,render(){return p(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`},p(`g`,{fill:`none`},p(`path`,{d:`M3.13 9.163a.5.5 0 1 0 .74.674L9.5 3.67V17.5a.5.5 0 0 0 1 0V3.672l5.63 6.165a.5.5 0 0 0 .738-.674l-6.315-6.916a.746.746 0 0 0-.632-.24a.746.746 0 0 0-.476.24L3.131 9.163z`,fill:`currentColor`})))}}),ke=w(`input-group`,`
display: inline-flex;
width: 100%;
flex-wrap: nowrap;
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
import{E as e,S as t,T as n,V as r,p as i}from"./vue-router-CyfP71JJ.js";import{t as a}from"./DocsPage-BRmC5FbI.js";import{t as o}from"./HeaderMenu-Cw3qZ0wy.js";var s=e({__name:`PrivacyPolicyView`,setup(e){return(e,s)=>(r(),t(i,null,[n(a,{kind:`privacy`}),n(o)],64))}});export{s as default};
import{E as e,S as t,T as n,V as r,p as i}from"./vue-router-CyfP71JJ.js";import{t as a}from"./DocsPage-DVPK5GG7.js";import{t as o}from"./HeaderMenu-Cw3qZ0wy.js";var s=e({__name:`PrivacyPolicyView`,setup(e){return(e,s)=>(r(),t(i,null,[n(a,{kind:`privacy`}),n(o)],64))}});export{s as default};
@@ -1 +1 @@
import{E as e,Et as t,S as n,T as r,V as i,Z as a,a as o,b as s,ct as c,p as l,rt as u,w as d,x as f,y as p}from"./vue-router-CyfP71JJ.js";import{t as m}from"./use-message-CG9_uVsZ.js";import{t as h}from"./Tag-D-utV0NI.js";import{i as g,n as _,t as v}from"./HeaderMenu-Cw3qZ0wy.js";import{t as y}from"./IntroBlock-78Dnnzsx.js";var b={class:`center-block-custom`},x={class:`width700`},S={class:`scenario-title`},C=[`src`],w={class:`scenario-description`},T={class:`scenario-author`},E=_(e({__name:`ScenarioPage`,setup(e){let _=m(),E=g(),D=o().params.id,O=u({id:void 0,name:void 0,story:void 0,author:void 0,status:void 0,updatedAt:void 0,createdAt:void 0,publishedAt:void 0});async function k(e){let t=await E.GetScenario({id:e});if(t.error!=``){_.error(t.error);return}O.value=t.scenario}return k(Number(D)),(e,o)=>(i(),n(l,null,[p(`div`,b,[p(`div`,x,[p(`div`,S,t(O.value.name),1),p(`img`,{class:`scenario-image`,src:O.value.image},null,8,C),p(`div`,w,t(O.value.description),1),p(`div`,T,[r(c(h),{bordered:!1,type:`success`,class:`status-block`},{default:a(()=>[d(`Автор: `+t(O.value.author?.username),1)]),_:1})]),O.value.story?.introduction&&(O.value.story.introduction.text||O.value.story.introduction.audio)?(i(),s(y,{key:0,introduction:O.value.story.introduction,mode:`show`},null,8,[`introduction`])):f(``,!0)])]),r(v,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-223ef01a`]]),D=e({__name:`ScenarioView`,setup(e){return(e,t)=>(i(),s(E))}});export{D as default};
import{E as e,Et as t,S as n,T as r,V as i,Z as a,a as o,b as s,ct as c,p as l,rt as u,w as d,x as f,y as p}from"./vue-router-CyfP71JJ.js";import{t as m}from"./use-message-SLv-C_PZ.js";import{t as h}from"./Tag-BtIbiqcj.js";import{i as g,n as _,t as v}from"./HeaderMenu-Cw3qZ0wy.js";import{t as y}from"./IntroBlock-BluoywxU.js";var b={class:`center-block-custom`},x={class:`width700`},S={class:`scenario-title`},C=[`src`],w={class:`scenario-description`},T={class:`scenario-author`},E=_(e({__name:`ScenarioPage`,setup(e){let _=m(),E=g(),D=o().params.id,O=u({id:void 0,name:void 0,story:void 0,author:void 0,status:void 0,updatedAt:void 0,createdAt:void 0,publishedAt:void 0});async function k(e){let t=await E.GetScenario({id:e});if(t.error!=``){_.error(t.error);return}O.value=t.scenario}return k(Number(D)),(e,o)=>(i(),n(l,null,[p(`div`,b,[p(`div`,x,[p(`div`,S,t(O.value.name),1),p(`img`,{class:`scenario-image`,src:O.value.image},null,8,C),p(`div`,w,t(O.value.description),1),p(`div`,T,[r(c(h),{bordered:!1,type:`success`,class:`status-block`},{default:a(()=>[d(`Автор: `+t(O.value.author?.username),1)]),_:1})]),O.value.story?.introduction&&(O.value.story.introduction.text||O.value.story.introduction.audio)?(i(),s(y,{key:0,introduction:O.value.story.introduction,mode:`show`},null,8,[`introduction`])):f(``,!0)])]),r(v,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-223ef01a`]]),D=e({__name:`ScenarioView`,setup(e){return(e,t)=>(i(),s(E))}});export{D 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{E as e,f as t,k as n,v as r}from"./vue-router-CyfP71JJ.js";import{N as i,Z as a,o,r as s}from"./light-CPiNeYrP.js";import{o as c,s as l}from"./resolve-slot-tPBGpQg9.js";import{c as u,l as d}from"./use-message-CG9_uVsZ.js";import{t as f}from"./get-slot-6kXJmSMP.js";import{l as p}from"./index-DN1-lqty.js";function m(){return p}var h={name:`Space`,self:m},g;function _(){if(!d)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=e({name:`Space`,props:Object.assign(Object.assign({},s.props),{align:String,justify:{type:String,default:`start`},inline:Boolean,vertical:Boolean,reverse:Boolean,size:[String,Number,Array],wrapItem:{type:Boolean,default:!0},itemClass:String,itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),setup(e){let{mergedClsPrefixRef:t,mergedRtlRef:n,mergedComponentPropsRef:u}=i(e),d=r(()=>e.size||u?.value?.Space?.size||`medium`),f=s(`Space`,`-space`,void 0,h,e,t),p=o(`Space`,n,t);return{useGap:_(),rtlEnabled:p,mergedClsPrefix:t,margin:r(()=>{let e=d.value;if(Array.isArray(e))return{horizontal:e[0],vertical:e[1]};if(typeof e==`number`)return{horizontal:e,vertical:e};let{self:{[a(`gap`,e)]:t}}=f.value,{row:n,col:r}=l(t);return{horizontal:c(r),vertical:c(n)}})}},render(){let{vertical:e,reverse:r,align:i,inline:a,justify:o,itemClass:s,itemStyle:c,margin:l,wrap:d,mergedClsPrefix:p,rtlEnabled:m,useGap:h,wrapItem:g,internalUseGap:_}=this,v=u(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 n(`div`,{role:`none`,class:[`${p}-space`,m&&`${p}-space--rtl`],style:{display:a?`inline-flex`:`flex`,flexDirection:e&&!r?`column`:e&&r?`column-reverse`:!e&&r?`row-reverse`:`row`,justifyContent:[`start`,`end`].includes(o)?`flex-${o}`:o,flexWrap:!d||e?`nowrap`:`wrap`,marginTop:h||e?``:`-${S}`,marginBottom:h||e?``:`-${S}`,alignItems:i,gap:h?`${l.vertical}px ${l.horizontal}px`:``}},!g&&(h||_)?v:v.map((r,i)=>r.type===t?r:n(`div`,{role:`none`,class:s,style:[c,{maxWidth:`100%`},h?``:e?{marginBottom:i===C?``:x}:m?{marginLeft:w?o===`space-between`&&i===C?``:b:i===C?``:y,marginRight:w?o===`space-between`&&i===0?``:b:``,paddingTop:S,paddingBottom:S}:{marginRight:w?o===`space-between`&&i===C?``:b:i===C?``:y,marginLeft:w?o===`space-between`&&i===0?``:b:``,paddingTop:S,paddingBottom:S}]},r)))}});export{v as t};
import{E as e,f as t,k as n,v as r}from"./vue-router-CyfP71JJ.js";import{N as i,Z as a,o,r as s}from"./light-CPiNeYrP.js";import{o as c,s as l}from"./resolve-slot-tPBGpQg9.js";import{c as u,l as d}from"./use-message-SLv-C_PZ.js";import{t as f}from"./get-slot-6kXJmSMP.js";import{l as p}from"./index-DC7nJyPp.js";function m(){return p}var h={name:`Space`,self:m},g;function _(){if(!d)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=e({name:`Space`,props:Object.assign(Object.assign({},s.props),{align:String,justify:{type:String,default:`start`},inline:Boolean,vertical:Boolean,reverse:Boolean,size:[String,Number,Array],wrapItem:{type:Boolean,default:!0},itemClass:String,itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),setup(e){let{mergedClsPrefixRef:t,mergedRtlRef:n,mergedComponentPropsRef:u}=i(e),d=r(()=>e.size||u?.value?.Space?.size||`medium`),f=s(`Space`,`-space`,void 0,h,e,t),p=o(`Space`,n,t);return{useGap:_(),rtlEnabled:p,mergedClsPrefix:t,margin:r(()=>{let e=d.value;if(Array.isArray(e))return{horizontal:e[0],vertical:e[1]};if(typeof e==`number`)return{horizontal:e,vertical:e};let{self:{[a(`gap`,e)]:t}}=f.value,{row:n,col:r}=l(t);return{horizontal:c(r),vertical:c(n)}})}},render(){let{vertical:e,reverse:r,align:i,inline:a,justify:o,itemClass:s,itemStyle:c,margin:l,wrap:d,mergedClsPrefix:p,rtlEnabled:m,useGap:h,wrapItem:g,internalUseGap:_}=this,v=u(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 n(`div`,{role:`none`,class:[`${p}-space`,m&&`${p}-space--rtl`],style:{display:a?`inline-flex`:`flex`,flexDirection:e&&!r?`column`:e&&r?`column-reverse`:!e&&r?`row-reverse`:`row`,justifyContent:[`start`,`end`].includes(o)?`flex-${o}`:o,flexWrap:!d||e?`nowrap`:`wrap`,marginTop:h||e?``:`-${S}`,marginBottom:h||e?``:`-${S}`,alignItems:i,gap:h?`${l.vertical}px ${l.horizontal}px`:``}},!g&&(h||_)?v:v.map((r,i)=>r.type===t?r:n(`div`,{role:`none`,class:s,style:[c,{maxWidth:`100%`},h?``:e?{marginBottom:i===C?``:x}:m?{marginLeft:w?o===`space-between`&&i===C?``:b:i===C?``:y,marginRight:w?o===`space-between`&&i===0?``:b:``,paddingTop:S,paddingBottom:S}:{marginRight:w?o===`space-between`&&i===C?``:b:i===C?``:y,marginLeft:w?o===`space-between`&&i===0?``:b:``,paddingTop:S,paddingBottom:S}]},r)))}});export{v as t};
@@ -1,4 +1,4 @@
import{E as e,H as t,k as n,ot as r,rt as i,v as a}from"./vue-router-CyfP71JJ.js";import{B as o,G as s,J as c,K as l,M as u,N as d,X as f,Y as p,Z as m,o as h,r as g,t as _,z as v}from"./light-CPiNeYrP.js";import{a as y,c as b}from"./resolve-slot-tPBGpQg9.js";import{n as x,t as S}from"./call-ChHlm4-m.js";import{E as C,N as w}from"./index-DN1-lqty.js";function T(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:w,heightSmall:T,heightMedium:E,closeColorHover:D,closeColorPressed:O,buttonColor2Hover:k,buttonColor2Pressed:A,fontWeightStrong:j}=e;return Object.assign(Object.assign({},C),{closeBorderRadius:_,heightTiny:S,heightSmall:w,heightMedium:T,heightLarge:E,borderRadius:_,opacityDisabled:f,fontSizeTiny:v,fontSizeSmall:y,fontSizeMedium:b,fontSizeLarge:x,fontWeightStrong:j,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:u,colorCheckable:`#0000`,colorHoverCheckable:k,colorPressedCheckable:A,colorChecked:i,colorCheckedHover:n,colorCheckedPressed:r,border:`1px solid ${d}`,textColor:t,color:p,colorBordered:`rgb(250, 250, 252)`,closeIconColor:m,closeIconColorHover:h,closeIconColorPressed:g,closeColorHover:D,closeColorPressed:O,borderPrimary:`1px solid ${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 E={name:`Tag`,common:_,self:T},D={color:Object,type:{type:String,default:`default`},round:Boolean,size:String,closable:Boolean,disabled:{type:Boolean,default:void 0}},O=l(`tag`,`
import{E as e,H as t,k as n,ot as r,rt as i,v as a}from"./vue-router-CyfP71JJ.js";import{B as o,G as s,J as c,K as l,M as u,N as d,X as f,Y as p,Z as m,o as h,r as g,t as _,z as v}from"./light-CPiNeYrP.js";import{a as y,c as b}from"./resolve-slot-tPBGpQg9.js";import{n as x,t as S}from"./call-ChHlm4-m.js";import{E as C,N as w}from"./index-DC7nJyPp.js";function T(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:w,heightSmall:T,heightMedium:E,closeColorHover:D,closeColorPressed:O,buttonColor2Hover:k,buttonColor2Pressed:A,fontWeightStrong:j}=e;return Object.assign(Object.assign({},C),{closeBorderRadius:_,heightTiny:S,heightSmall:w,heightMedium:T,heightLarge:E,borderRadius:_,opacityDisabled:f,fontSizeTiny:v,fontSizeSmall:y,fontSizeMedium:b,fontSizeLarge:x,fontWeightStrong:j,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:u,colorCheckable:`#0000`,colorHoverCheckable:k,colorPressedCheckable:A,colorChecked:i,colorCheckedHover:n,colorCheckedPressed:r,border:`1px solid ${d}`,textColor:t,color:p,colorBordered:`rgb(250, 250, 252)`,closeIconColor:m,closeIconColorHover:h,closeIconColorPressed:g,closeColorHover:D,closeColorPressed:O,borderPrimary:`1px solid ${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 E={name:`Tag`,common:_,self:T},D={color:Object,type:{type:String,default:`default`},round:Boolean,size:String,closable:Boolean,disabled:{type:Boolean,default:void 0}},O=l(`tag`,`
--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;
position: relative;
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
.belt-block[data-v-bec154c5]{background-color:#000;background-image:url(/assets/belt-DVqk2_uL.png);background-size:cover;height:100%;position:relative}.shadow[data-v-bec154c5]{background-color:#000;width:100%;height:10px;position:absolute}.shadow-top[data-v-bec154c5]{top:0;box-shadow:0 -5px 10px #000}.shadow-bottom[data-v-bec154c5]{bottom:0;box-shadow:0 5px 10px #000}.plate-block[data-v-4833fe7e]{position:relative;box-shadow:0 0 10px #000}.metal-plate-block[data-v-4833fe7e]{background-image:url(/assets/metal-BiL2PH1r.png);background-size:cover;border-radius:4px;height:100%;position:relative}.pin[data-v-4833fe7e]{background-image:url(/assets/pin-CJfldk-j.png);background-size:cover;width:7px;height:7px;position:absolute}.pin-top-left[data-v-4833fe7e]{top:3px;left:3px}.pin-top-right[data-v-4833fe7e]{top:3px;right:3px}.pin-bottom-right[data-v-4833fe7e]{bottom:3px;right:3px}.pin-bottom-left[data-v-4833fe7e]{bottom:3px;left:3px}.form-custom[data-v-4d904ded]{color:#fff;z-index:1000;width:100%;position:fixed;bottom:0;left:0}.input-form[data-v-4d904ded]{z-index:1000;max-width:1920px;height:76px;margin:0 auto;position:relative}.controller-metal[data-v-4d904ded]{width:30px;height:calc(100% + 2px);position:absolute;top:-1px}.controller-metal-left[data-v-4d904ded]{left:-30px}.controller-metal-right[data-v-4d904ded]{right:-30px}.controller[data-v-4d904ded]{display:flex;position:relative}.game-input[data-v-4d904ded]{width:calc(100% - 175px);height:50px;position:relative;top:14px;left:15px}.game-input-run[data-v-4d904ded]{background-color:#0000;background-image:url(/assets/input_center-DZZtEHaZ.png);background-size:cover;border:0;width:100%;height:100%;padding-left:27px;font-family:font_old_typer,serif;font-size:18px}.game-input-run[data-v-4d904ded]::placeholder{color:#333}.game-input-run[data-v-4d904ded]:focus{border:0;outline:none}.game-button-run-shadow[data-v-4d904ded]{width:150px;height:80px;position:absolute;top:-5px;right:10px;box-shadow:-5px 5px 10px #000}.game-button-run[data-v-4d904ded]{cursor:pointer;background-color:#0000;background-image:url(/assets/button-DdziMEJE.png);background-size:cover;border:0;width:155px;height:80px;margin:0;padding:0;font-size:1.5em;position:absolute;top:-5px;right:10px}.new-places-label[data-v-4d904ded],.all-places-label[data-v-4d904ded]{height:48px;position:absolute}.new-places-label[data-v-4d904ded]{width:40px;top:14px;left:85px}.all-places-label[data-v-4d904ded]{width:60px;top:14px;left:15px}.places-text[data-v-4d904ded]{color:#111;text-align:center;background-color:#d1cebd;background-image:url(/assets/paper-CuqvoKhN.jpg);background-size:cover;border:1px solid #9e9982;border-radius:7px;margin:0 1px;font-family:font_old_typer,serif;font-size:1.4em;display:inline-block;box-shadow:0 -2px 5px #000}.places-text-number[data-v-4d904ded]{width:18px}.counters-block[data-v-4d904ded]{margin:20px 10px 20px 5px;position:absolute;top:-40px;left:23px}.counter-block[data-v-4d904ded]{margin:5px;display:inline-block}.icon-for-counter[data-v-4d904ded]{margin:0 4px;position:relative;top:3px}@media (width>=1025px){.center-block-700[data-v-4d904ded]{width:700px;margin:0 auto}}.case-background[data-v-6c3bc371]{pointer-events:none;z-index:-1;background-position:50%;background-size:cover;position:fixed;inset:70px 0 0}.bottom-margin[data-v-6c3bc371]{height:calc(100dvh - 146px)}.smooth-scroll[data-v-6c3bc371]{scroll-behavior:smooth}.edit-panel[data-v-6c3bc371]{background-color:#222;border-radius:10px;margin:30px 0;padding:20px}.qr-main-block[data-v-6c3bc371]{justify-content:center;align-items:center;display:flex}.questions-hr[data-v-6c3bc371]{border:1px dashed #000;margin:10px 0}.questions-hint[data-v-6c3bc371]{color:#000}.question-item[data-v-6c3bc371]{margin:15px 0}.question-text[data-v-6c3bc371]{margin-bottom:6px;font-weight:500}.questions-actions[data-v-6c3bc371]{margin-top:10px}.paper-button[data-v-6c3bc371]{color:#bfa07d;cursor:pointer;background-image:url(/assets/belt-DVqk2_uL.png);background-size:cover;border:0;border-radius:5px;margin-top:10px;padding:5px 12px;font-family:font_old_typer,serif;font-size:16px;font-weight:600;display:inline-block}.paper-button[data-v-6c3bc371]:hover{color:#63e2b7}.font[data-v-6c3bc371]{font-family:font_old_typer,serif;font-size:18px}.qr-main-block-text[data-v-6c3bc371]{text-align:left;margin:10px 0;font-family:font_old_typer,serif;font-size:18px}p.qr-main-block-text[data-v-6c3bc371]{font-weight:500}.qr-block[data-v-6c3bc371]{background-color:#fff;padding:12px;display:inline-block}@media (width>=1024px){.bottom-margin[data-v-6c3bc371]{height:calc(100dvh - 146px)}}
.belt-block[data-v-bec154c5]{background-color:#000;background-image:url(/assets/belt-DVqk2_uL.png);background-size:cover;height:100%;position:relative}.shadow[data-v-bec154c5]{background-color:#000;width:100%;height:10px;position:absolute}.shadow-top[data-v-bec154c5]{top:0;box-shadow:0 -5px 10px #000}.shadow-bottom[data-v-bec154c5]{bottom:0;box-shadow:0 5px 10px #000}.plate-block[data-v-4833fe7e]{position:relative;box-shadow:0 0 10px #000}.metal-plate-block[data-v-4833fe7e]{background-image:url(/assets/metal-BiL2PH1r.png);background-size:cover;border-radius:4px;height:100%;position:relative}.pin[data-v-4833fe7e]{background-image:url(/assets/pin-CJfldk-j.png);background-size:cover;width:7px;height:7px;position:absolute}.pin-top-left[data-v-4833fe7e]{top:3px;left:3px}.pin-top-right[data-v-4833fe7e]{top:3px;right:3px}.pin-bottom-right[data-v-4833fe7e]{bottom:3px;right:3px}.pin-bottom-left[data-v-4833fe7e]{bottom:3px;left:3px}.form-custom[data-v-4d904ded]{color:#fff;z-index:1000;width:100%;position:fixed;bottom:0;left:0}.input-form[data-v-4d904ded]{z-index:1000;max-width:1920px;height:76px;margin:0 auto;position:relative}.controller-metal[data-v-4d904ded]{width:30px;height:calc(100% + 2px);position:absolute;top:-1px}.controller-metal-left[data-v-4d904ded]{left:-30px}.controller-metal-right[data-v-4d904ded]{right:-30px}.controller[data-v-4d904ded]{display:flex;position:relative}.game-input[data-v-4d904ded]{width:calc(100% - 175px);height:50px;position:relative;top:14px;left:15px}.game-input-run[data-v-4d904ded]{background-color:#0000;background-image:url(/assets/input_center-DZZtEHaZ.png);background-size:cover;border:0;width:100%;height:100%;padding-left:27px;font-family:font_old_typer,serif;font-size:18px}.game-input-run[data-v-4d904ded]::placeholder{color:#333}.game-input-run[data-v-4d904ded]:focus{border:0;outline:none}.game-button-run-shadow[data-v-4d904ded]{width:150px;height:80px;position:absolute;top:-5px;right:10px;box-shadow:-5px 5px 10px #000}.game-button-run[data-v-4d904ded]{cursor:pointer;background-color:#0000;background-image:url(/assets/button-DdziMEJE.png);background-size:cover;border:0;width:155px;height:80px;margin:0;padding:0;font-size:1.5em;position:absolute;top:-5px;right:10px}.new-places-label[data-v-4d904ded],.all-places-label[data-v-4d904ded]{height:48px;position:absolute}.new-places-label[data-v-4d904ded]{width:40px;top:14px;left:85px}.all-places-label[data-v-4d904ded]{width:60px;top:14px;left:15px}.places-text[data-v-4d904ded]{color:#111;text-align:center;background-color:#d1cebd;background-image:url(/assets/paper-CuqvoKhN.jpg);background-size:cover;border:1px solid #9e9982;border-radius:7px;margin:0 1px;font-family:font_old_typer,serif;font-size:1.4em;display:inline-block;box-shadow:0 -2px 5px #000}.places-text-number[data-v-4d904ded]{width:18px}.counters-block[data-v-4d904ded]{margin:20px 10px 20px 5px;position:absolute;top:-40px;left:23px}.counter-block[data-v-4d904ded]{margin:5px;display:inline-block}.icon-for-counter[data-v-4d904ded]{margin:0 4px;position:relative;top:3px}@media (width>=1025px){.center-block-700[data-v-4d904ded]{width:700px;margin:0 auto}}.case-background[data-v-12c453c8]{pointer-events:none;z-index:-1;background-position:50%;background-size:cover;position:fixed;inset:70px 0 0}.actions-list[data-v-12c453c8]{margin-bottom:20px}.actions-title[data-v-12c453c8]{color:#aaa;margin-bottom:8px}.action-item[data-v-12c453c8]{align-items:center;gap:8px;margin:4px 0;display:flex}.bottom-margin[data-v-12c453c8]{height:calc(100dvh - 146px)}.smooth-scroll[data-v-12c453c8]{scroll-behavior:smooth}.edit-panel[data-v-12c453c8]{background-color:#222;border-radius:10px;margin:30px 0;padding:20px}.qr-main-block[data-v-12c453c8]{justify-content:center;align-items:center;display:flex}.questions-hr[data-v-12c453c8]{border:1px dashed #000;margin:10px 0}.questions-hint[data-v-12c453c8]{color:#000}.question-item[data-v-12c453c8]{margin:15px 0}.question-text[data-v-12c453c8]{margin-bottom:6px;font-weight:500}.questions-actions[data-v-12c453c8]{margin-top:10px}.paper-button[data-v-12c453c8]{color:#bfa07d;cursor:pointer;background-image:url(/assets/belt-DVqk2_uL.png);background-size:cover;border:0;border-radius:5px;margin-top:10px;padding:5px 12px;font-family:font_old_typer,serif;font-size:16px;font-weight:600;display:inline-block}.paper-button[data-v-12c453c8]:hover{color:#63e2b7}.font[data-v-12c453c8]{font-family:font_old_typer,serif;font-size:18px}.qr-main-block-text[data-v-12c453c8]{text-align:left;margin:10px 0;font-family:font_old_typer,serif;font-size:18px}p.qr-main-block-text[data-v-12c453c8]{font-weight:500}.qr-block[data-v-12c453c8]{background-color:#fff;padding:12px;display:inline-block}@media (width>=1024px){.bottom-margin[data-v-12c453c8]{height:calc(100dvh - 146px)}}
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
import{E as e,S as t,T as n,V as r,p as i}from"./vue-router-CyfP71JJ.js";import{t as a}from"./DocsPage-BRmC5FbI.js";import{t as o}from"./HeaderMenu-Cw3qZ0wy.js";var s=e({__name:`UserAgreementView`,setup(e){return(e,s)=>(r(),t(i,null,[n(a,{kind:`terms`}),n(o)],64))}});export{s as default};
import{E as e,S as t,T as n,V as r,p as i}from"./vue-router-CyfP71JJ.js";import{t as a}from"./DocsPage-DVPK5GG7.js";import{t as o}from"./HeaderMenu-Cw3qZ0wy.js";var s=e({__name:`UserAgreementView`,setup(e){return(e,s)=>(r(),t(i,null,[n(a,{kind:`terms`}),n(o)],64))}});export{s as default};
@@ -1 +1 @@
import{E as e,Et as t,S as n,T as r,U as i,V as a,Z as o,b as s,ct as c,p as l,rt as u,w as d,y as f}from"./vue-router-CyfP71JJ.js";import{n as p,t as m}from"./use-message-CG9_uVsZ.js";import{t as h}from"./Tag-D-utV0NI.js";import{t as g}from"./Space-DiK7i7Mu.js";import{t as _}from"./Flex-BudtXCXQ.js";import{i as v,n as y,t as b}from"./HeaderMenu-Cw3qZ0wy.js";var x={class:`center-block-custom`},S={class:`width700`},C={class:`user-field`},w={class:`user-field`},T={class:`user-field`},E=y(e({__name:`UsersPage`,setup(e){let y=v(),E=m(),D=u([]);async function O(){let e=await y.GetUsers({});if(e.error!=``){E.error(e.error);return}D.value=e.users}O();async function k(e,t){let n=await y.AddUserRole({id:e,role:t});if(n.error!=``){E.error(n.error);return}await O()}async function A(e,t){let n=await y.DeleteUserRole({id:e,role:t});if(n.error!=``){E.error(n.error);return}await O()}return(e,u)=>(a(),n(l,null,[f(`div`,x,[f(`div`,S,[(a(!0),n(l,null,i(D.value,e=>(a(),n(`div`,{key:e.id,class:`user-block`},[f(`div`,C,`Позывной: `+t(e.username),1),f(`div`,w,`Почта: `+t(e.email),1),f(`div`,T,[r(c(g),null,{default:o(()=>[u[0]||=d(` Роли: `,-1),(a(!0),n(l,null,i(e.roles,e=>(a(),s(c(h),{bordered:!1,key:e},{default:o(()=>[d(t(e),1)]),_:2},1024))),128))]),_:2},1024)]),r(c(_),{justify:`end`,class:`roles-buttons-block`},{default:o(()=>[e.roles?.includes(`author`)?(a(),s(c(p),{key:1,onClick:t=>A(e.id,`author`)},{default:o(()=>[...u[2]||=[d(`Забрать роль автора`,-1)]]),_:1},8,[`onClick`])):(a(),s(c(p),{key:0,onClick:t=>k(e.id,`author`)},{default:o(()=>[...u[1]||=[d(`Сделать автором`,-1)]]),_:1},8,[`onClick`])),e.roles?.includes(`organizer`)?(a(),s(c(p),{key:3,onClick:t=>A(e.id,`organizer`)},{default:o(()=>[...u[4]||=[d(`Забрать роль организатора`,-1)]]),_:1},8,[`onClick`])):(a(),s(c(p),{key:2,onClick:t=>k(e.id,`organizer`)},{default:o(()=>[...u[3]||=[d(`Сделать организатором`,-1)]]),_:1},8,[`onClick`]))]),_:2},1024)]))),128))])]),r(b,{active:`users`})],64))}}),[[`__scopeId`,`data-v-7c14036f`]]),D=e({__name:`UsersView`,setup(e){return(e,t)=>(a(),s(E))}});export{D as default};
import{E as e,Et as t,S as n,T as r,U as i,V as a,Z as o,b as s,ct as c,p as l,rt as u,w as d,y as f}from"./vue-router-CyfP71JJ.js";import{n as p,t as m}from"./use-message-SLv-C_PZ.js";import{t as h}from"./Tag-BtIbiqcj.js";import{t as g}from"./Space-1DDS9mJf.js";import{t as _}from"./Flex-bXgyxe_-.js";import{i as v,n as y,t as b}from"./HeaderMenu-Cw3qZ0wy.js";var x={class:`center-block-custom`},S={class:`width700`},C={class:`user-field`},w={class:`user-field`},T={class:`user-field`},E=y(e({__name:`UsersPage`,setup(e){let y=v(),E=m(),D=u([]);async function O(){let e=await y.GetUsers({});if(e.error!=``){E.error(e.error);return}D.value=e.users}O();async function k(e,t){let n=await y.AddUserRole({id:e,role:t});if(n.error!=``){E.error(n.error);return}await O()}async function A(e,t){let n=await y.DeleteUserRole({id:e,role:t});if(n.error!=``){E.error(n.error);return}await O()}return(e,u)=>(a(),n(l,null,[f(`div`,x,[f(`div`,S,[(a(!0),n(l,null,i(D.value,e=>(a(),n(`div`,{key:e.id,class:`user-block`},[f(`div`,C,`Позывной: `+t(e.username),1),f(`div`,w,`Почта: `+t(e.email),1),f(`div`,T,[r(c(g),null,{default:o(()=>[u[0]||=d(` Роли: `,-1),(a(!0),n(l,null,i(e.roles,e=>(a(),s(c(h),{bordered:!1,key:e},{default:o(()=>[d(t(e),1)]),_:2},1024))),128))]),_:2},1024)]),r(c(_),{justify:`end`,class:`roles-buttons-block`},{default:o(()=>[e.roles?.includes(`author`)?(a(),s(c(p),{key:1,onClick:t=>A(e.id,`author`)},{default:o(()=>[...u[2]||=[d(`Забрать роль автора`,-1)]]),_:1},8,[`onClick`])):(a(),s(c(p),{key:0,onClick:t=>k(e.id,`author`)},{default:o(()=>[...u[1]||=[d(`Сделать автором`,-1)]]),_:1},8,[`onClick`])),e.roles?.includes(`organizer`)?(a(),s(c(p),{key:3,onClick:t=>A(e.id,`organizer`)},{default:o(()=>[...u[4]||=[d(`Забрать роль организатора`,-1)]]),_:1},8,[`onClick`])):(a(),s(c(p),{key:2,onClick:t=>k(e.id,`organizer`)},{default:o(()=>[...u[3]||=[d(`Сделать организатором`,-1)]]),_:1},8,[`onClick`]))]),_:2},1024)]))),128))])]),r(b,{active:`users`})],64))}}),[[`__scopeId`,`data-v-7c14036f`]]),D=e({__name:`UsersView`,setup(e){return(e,t)=>(a(),s(E))}});export{D as default};
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
import{E as e,I as t,R as n,Y as r,k as i,p as a,rt as o}from"./vue-router-CyfP71JJ.js";import{D as s,O as c,k as l}from"./Input-CbjoGhTU.js";import{a as u}from"./light-CeesScux.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=e({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=o(null),f=o(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))}n(()=>{r(()=>e.active,e=>{e?(C(),c(`keydown`,document,b)):(s(`keydown`,document,b),h&&w())},{immediate:!0})}),t(()=>{s(`keydown`,document,b),h&&w()});function x(e){if(!g&&y()){let t=S();if(t===null||t.contains(l(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:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();let{active:t,focusableStyle:n}=this;return i(a,null,[i(`div`,{"aria-hidden":`true`,tabindex:t?`0`:`-1`,ref:`focusableStartRef`,style:n,onFocus:this.handleStartFocus}),e(),i(`div`,{"aria-hidden":`true`,style:n,ref:`focusableEndRef`,tabindex:t?`0`:`-1`,onFocus:this.handleEndFocus})])}});function y(e,t=[],n){let r={};return t.forEach(t=>{r[t]=e[t]}),Object.assign(r,n)}export{v as n,y as t};
import{E as e,I as t,R as n,Y as r,k as i,p as a,rt as o}from"./vue-router-CyfP71JJ.js";import{D as s,O as c,k as l}from"./Input-Cd6eEZwQ.js";import{a as u}from"./light-CeesScux.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=e({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=o(null),f=o(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))}n(()=>{r(()=>e.active,e=>{e?(C(),c(`keydown`,document,b)):(s(`keydown`,document,b),h&&w())},{immediate:!0})}),t(()=>{s(`keydown`,document,b),h&&w()});function x(e){if(!g&&y()){let t=S();if(t===null||t.contains(l(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:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();let{active:t,focusableStyle:n}=this;return i(a,null,[i(`div`,{"aria-hidden":`true`,tabindex:t?`0`:`-1`,ref:`focusableStartRef`,style:n,onFocus:this.handleStartFocus}),e(),i(`div`,{"aria-hidden":`true`,style:n,ref:`focusableEndRef`,tabindex:t?`0`:`-1`,onFocus:this.handleEndFocus})])}});function y(e,t=[],n){let r={};return t.forEach(t=>{r[t]=e[t]}),Object.assign(r,n)}export{v as n,y as t};
@@ -1,4 +1,4 @@
import{E as e,k as t,v as n}from"./vue-router-CyfP71JJ.js";import{K as r,M as i,N as a,Y as o,Z as s,r as c}from"./light-CPiNeYrP.js";import{t as l}from"./use-compitable-Dm6CEJAS.js";import{r as u}from"./index-DN1-lqty.js";var d=r(`text`,`
import{E as e,k as t,v as n}from"./vue-router-CyfP71JJ.js";import{K as r,M as i,N as a,Y as o,Z as s,r as c}from"./light-CPiNeYrP.js";import{t as l}from"./use-compitable-Dm6CEJAS.js";import{r as u}from"./index-DC7nJyPp.js";var d=r(`text`,`
transition: color .3s var(--n-bezier);
color: var(--n-text-color);
`,[o(`strong`,`
@@ -1,4 +1,4 @@
import{A as e,E as t,H as n,I as r,N as i,f as a,k as o,ot as s,p as c,rt as l,v as u,w as d}from"./vue-router-CyfP71JJ.js";import{B as f,G as p,I as m,J as h,K as g,M as _,N as v,V as y,X as b,Y as x,Z as S,a as C,i as w,o as T,r as E,z as D}from"./light-CPiNeYrP.js";import{a as O,n as k}from"./resolve-slot-tPBGpQg9.js";import{n as A,t as j}from"./call-ChHlm4-m.js";import{A as M,B as N,J as P,M as F,P as I,d as L,x as R}from"./index-DN1-lqty.js";var z=typeof document<`u`&&typeof window<`u`;function B(e,t=!0,n=[]){return e.forEach(e=>{if(e!==null){if(typeof e!=`object`){(typeof e==`string`||typeof e==`number`)&&n.push(d(String(e)));return}if(Array.isArray(e)){B(e,t,n);return}if(e.type===c){if(e.children===null)return;Array.isArray(e.children)&&B(e.children,t,n)}else{if(e.type===a&&t)return;n.push(e)}}}),n}var V=D(`n-form-item`);function H(t,{defaultSize:i=`medium`,mergedSize:a,mergedDisabled:o}={}){let s=e(V,null);n(V,null);let c=u(a?()=>a(s):()=>{let{size:e}=t;if(e)return e;if(s){let{mergedSize:e}=s;if(e.value!==void 0)return e.value}return i}),l=u(o?()=>o(s):()=>{let{disabled:e}=t;return e===void 0?s?s.disabled.value:!1:e}),d=u(()=>{let{status:e}=t;return e||s?.mergedValidationStatus.value});return r(()=>{s&&s.restoreValidation()}),{mergedSizeRef:c,mergedDisabledRef:l,mergedStatusRef:d,nTriggerFormBlur(){s&&s.handleContentBlur()},nTriggerFormChange(){s&&s.handleContentChange()},nTriggerFormFocus(){s&&s.handleContentFocus()},nTriggerFormInput(){s&&s.handleContentInput()}}}var{cubicBezierEaseInOut:U}=C;function W({duration:e=`.2s`,delay:t=`.1s`}={}){return[p(`&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to`,{opacity:1}),p(`&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from`,`
import{A as e,E as t,H as n,I as r,N as i,f as a,k as o,ot as s,p as c,rt as l,v as u,w as d}from"./vue-router-CyfP71JJ.js";import{B as f,G as p,I as m,J as h,K as g,M as _,N as v,V as y,X as b,Y as x,Z as S,a as C,i as w,o as T,r as E,z as D}from"./light-CPiNeYrP.js";import{a as O,n as k}from"./resolve-slot-tPBGpQg9.js";import{n as A,t as j}from"./call-ChHlm4-m.js";import{A as M,B as N,J as P,M as F,P as I,d as L,x as R}from"./index-DC7nJyPp.js";var z=typeof document<`u`&&typeof window<`u`;function B(e,t=!0,n=[]){return e.forEach(e=>{if(e!==null){if(typeof e!=`object`){(typeof e==`string`||typeof e==`number`)&&n.push(d(String(e)));return}if(Array.isArray(e)){B(e,t,n);return}if(e.type===c){if(e.children===null)return;Array.isArray(e.children)&&B(e.children,t,n)}else{if(e.type===a&&t)return;n.push(e)}}}),n}var V=D(`n-form-item`);function H(t,{defaultSize:i=`medium`,mergedSize:a,mergedDisabled:o}={}){let s=e(V,null);n(V,null);let c=u(a?()=>a(s):()=>{let{size:e}=t;if(e)return e;if(s){let{mergedSize:e}=s;if(e.value!==void 0)return e.value}return i}),l=u(o?()=>o(s):()=>{let{disabled:e}=t;return e===void 0?s?s.disabled.value:!1:e}),d=u(()=>{let{status:e}=t;return e||s?.mergedValidationStatus.value});return r(()=>{s&&s.restoreValidation()}),{mergedSizeRef:c,mergedDisabledRef:l,mergedStatusRef:d,nTriggerFormBlur(){s&&s.handleContentBlur()},nTriggerFormChange(){s&&s.handleContentChange()},nTriggerFormFocus(){s&&s.handleContentFocus()},nTriggerFormInput(){s&&s.handleContentInput()}}}var{cubicBezierEaseInOut:U}=C;function W({duration:e=`.2s`,delay:t=`.1s`}={}){return[p(`&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to`,{opacity:1}),p(`&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from`,`
opacity: 0!important;
margin-left: 0!important;
margin-right: 0!important;
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" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Вечерний детектив</title>
<script type="module" crossorigin src="/assets/index-DN1-lqty.js"></script>
<script type="module" crossorigin src="/assets/index-DC7nJyPp.js"></script>
<link rel="modulepreload" crossorigin href="/assets/vue-router-CyfP71JJ.js">
<link rel="modulepreload" crossorigin href="/assets/light-CPiNeYrP.js">
<link rel="modulepreload" crossorigin href="/assets/light-CeesScux.js">
+6
View File
@@ -1275,6 +1275,12 @@ message GetTeamStoryRsp {
string error = 1;
Story story = 2;
Game game = 3;
repeated TeamAction actions = 4;
}
message TeamAction {
string code = 1;
bool mcp = 2;
}
message AddTeamActionReq {
@@ -604,6 +604,12 @@ export type GetTeamStoryRsp = {
error: string | undefined;
story: Story | undefined;
game: Game | undefined;
actions: TeamAction[] | undefined;
};
export type TeamAction = {
code: string | undefined;
mcp: boolean | undefined;
};
export type AddTeamActionReq = {
+27 -1
View File
@@ -1,5 +1,5 @@
<script setup lang="ts">
import { NButton, NConfigProvider, NFlex, NInput, NQrCode } from 'naive-ui'
import { NButton, NConfigProvider, NFlex, NInput, NQrCode, NTag } from 'naive-ui'
import { useMessage } from 'naive-ui'
import { computed, nextTick, ref } from 'vue'
import { useRoute } from 'vue-router'
@@ -10,6 +10,7 @@ import type {
Introduction,
Place,
Question,
TeamAction,
} from '@/api/generated/crabs/evening_detective_server'
import GameInputForm from '@/components/GameInputForm.vue'
import HeaderMenu from '@/components/HeaderMenu.vue'
@@ -28,6 +29,7 @@ const teamId = route.params.id
const password = route.query.password
const newPlacesCount = ref(0)
const actions = ref<TeamAction[]>([])
const scrollContainer = ref<HTMLDivElement | null>()
@@ -93,6 +95,7 @@ async function getStory() {
}) || [],
questions: res.story!.questions || [],
}
actions.value = res.actions || []
const newCount = story.value.places.length
@@ -306,6 +309,13 @@ useSimplePolling(() => {
</MessagePaper>
<div v-if="authStore.hasRole('author') && story.places.length > 0" class="edit-panel">
<div v-if="actions.length > 0" class="actions-list">
<div class="actions-title">Ходы</div>
<div v-for="(action, index) in actions" :key="index" class="action-item">
<span>{{ index + 1 }}. {{ action.code }}</span>
<n-tag v-if="action.mcp" size="small" type="success">MCP</n-tag>
</div>
</div>
<n-flex justify="end">
<n-button @click="deleteLast">Удалить последний ход</n-button>
</n-flex>
@@ -326,6 +336,22 @@ useSimplePolling(() => {
z-index: -1;
}
.actions-list {
margin-bottom: 20px;
}
.actions-title {
color: #aaa;
margin-bottom: 8px;
}
.action-item {
align-items: center;
display: flex;
gap: 8px;
margin: 4px 0;
}
.bottom-margin {
height: calc(100dvh - 70px - 76px);
}