This commit is contained in:
2026-10-27 22:40:37 +07:00
parent 8c1e3e0e16
commit 13bcb22dcd
109 changed files with 1863 additions and 1863 deletions
-1
View File
@@ -1 +0,0 @@
import{At as e,Nt as t}from"./client-DrrW410h.js";var n=e({name:`Add`,render(){return t(`svg`,{width:`512`,height:`512`,viewBox:`0 0 512 512`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},t(`path`,{d:`M256 112V400M400 256H112`,stroke:`currentColor`,"stroke-width":`32`,"stroke-linecap":`round`,"stroke-linejoin":`round`}))}});export{n as t};
+1
View File
@@ -0,0 +1 @@
import{Pt as e,jt as t}from"./client-Be0b5AZU.js";var n=t({name:`Add`,render(){return e(`svg`,{width:`512`,height:`512`,viewBox:`0 0 512 512`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e(`path`,{d:`M256 112V400M400 256H112`,stroke:`currentColor`,"stroke-width":`32`,"stroke-linecap":`round`,"stroke-linejoin":`round`}))}});export{n as t};
-48
View File
@@ -1,48 +0,0 @@
import{At as e,Nt as t,Q as n,Rt as r,U as i,W as a,Z as o,_ as s,at as c,ct as l,f as u,m as d,nt as f,ot as p,rt as m,vn as h,xt as g}from"./client-DrrW410h.js";import{s as _}from"./ui-BXphkCO3.js";import{i as v,o as y}from"./_plugin-vue_export-helper-2ZWAS1ss.js";import{F as b,J as x,K as S,P as C,Q as w,U as T,W as E,Y as D,q as O}from"./index-CvfVA1ID.js";function k(e){let{lineHeight:t,borderRadius:r,fontWeightStrong:i,baseColor:a,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:x}=e;return Object.assign(Object.assign({},b),{fontSize:x,lineHeight:t,titleFontWeight:i,borderRadius:r,border:`1px solid ${s}`,color:c,titleTextColor:l,iconColor:u,contentTextColor:u,closeBorderRadius:r,closeColorHover:d,closeColorPressed:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,borderInfo:`1px solid ${n(a,o(g,{alpha:.25}))}`,colorInfo:n(a,o(g,{alpha:.08})),titleTextColorInfo:l,iconColorInfo:g,contentTextColorInfo:u,closeColorHoverInfo:d,closeColorPressedInfo:f,closeIconColorInfo:p,closeIconColorHoverInfo:m,closeIconColorPressedInfo:h,borderSuccess:`1px solid ${n(a,o(_,{alpha:.25}))}`,colorSuccess:n(a,o(_,{alpha:.08})),titleTextColorSuccess:l,iconColorSuccess:_,contentTextColorSuccess:u,closeColorHoverSuccess:d,closeColorPressedSuccess:f,closeIconColorSuccess:p,closeIconColorHoverSuccess:m,closeIconColorPressedSuccess:h,borderWarning:`1px solid ${n(a,o(v,{alpha:.33}))}`,colorWarning:n(a,o(v,{alpha:.08})),titleTextColorWarning:l,iconColorWarning:v,contentTextColorWarning:u,closeColorHoverWarning:d,closeColorPressedWarning:f,closeIconColorWarning:p,closeIconColorHoverWarning:m,closeIconColorPressedWarning:h,borderError:`1px solid ${n(a,o(y,{alpha:.25}))}`,colorError:n(a,o(y,{alpha:.08})),titleTextColorError:l,iconColorError:y,contentTextColorError:u,closeColorHoverError:d,closeColorPressedError:f,closeIconColorError:p,closeIconColorHoverError:m,closeIconColorPressedError:h})}var A={name:`Alert`,common:u,self:k},j=m(`alert`,`
line-height: var(--n-line-height);
border-radius: var(--n-border-radius);
position: relative;
transition: background-color .3s var(--n-bezier);
background-color: var(--n-color);
text-align: start;
word-break: break-word;
`,[c(`border`,`
border-radius: inherit;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
transition: border-color .3s var(--n-bezier);
border: var(--n-border);
pointer-events: none;
`),p(`closable`,[m(`alert-body`,[c(`title`,`
padding-right: 24px;
`)])]),c(`icon`,{color:`var(--n-icon-color)`}),m(`alert-body`,{padding:`var(--n-padding)`},[c(`title`,{color:`var(--n-title-text-color)`}),c(`content`,{color:`var(--n-content-text-color)`})]),C({originalTransition:`transform .3s var(--n-bezier)`,enterToProps:{transform:`scale(1)`},leaveToProps:{transform:`scale(0.9)`}}),c(`icon`,`
position: absolute;
left: 0;
top: 0;
align-items: center;
justify-content: center;
display: flex;
width: var(--n-icon-size);
height: var(--n-icon-size);
font-size: var(--n-icon-size);
margin: var(--n-icon-margin);
`),c(`close`,`
transition:
color .3s var(--n-bezier),
background-color .3s var(--n-bezier);
position: absolute;
right: 0;
top: 0;
margin: var(--n-close-margin);
`),p(`show-icon`,[m(`alert-body`,{paddingLeft:`calc(var(--n-icon-margin-left) + var(--n-icon-size) + var(--n-icon-margin-right))`})]),p(`right-adjust`,[m(`alert-body`,{paddingRight:`calc(var(--n-close-size) + var(--n-padding) + 2px)`})]),m(`alert-body`,`
border-radius: var(--n-border-radius);
transition: border-color .3s var(--n-bezier);
`,[c(`title`,`
transition: color .3s var(--n-bezier);
font-size: 16px;
line-height: 19px;
font-weight: var(--n-title-font-weight);
`,[f(`& +`,[c(`content`,{marginTop:`9px`})])]),c(`content`,{transition:`color .3s var(--n-bezier)`,fontSize:`var(--n-font-size)`})]),c(`icon`,{transition:`color .3s var(--n-bezier)`})]),M=e({name:`Alert`,inheritAttrs:!1,props:Object.assign(Object.assign({},d.props),{title:String,showIcon:{type:Boolean,default:!0},type:{type:String,default:`default`},bordered:{type:Boolean,default:!0},closable:Boolean,onClose:Function,onAfterLeave:Function,onAfterHide:Function}),slots:Object,setup(e){let{mergedClsPrefixRef:t,mergedBorderedRef:n,inlineThemeDisabled:r,mergedRtlRef:o}=a(e),c=d(`Alert`,`-alert`,j,A,e,t),u=s(`Alert`,o,t),f=g(()=>{let{common:{cubicBezierEaseInOut:t},self:n}=c.value,{fontSize:r,borderRadius:i,titleFontWeight:a,lineHeight:o,iconSize:s,iconMargin:u,iconMarginRtl:d,closeIconSize:f,closeBorderRadius:p,closeSize:m,closeMargin:h,closeMarginRtl:g,padding:v}=n,{type:y}=e,{left:b,right:x}=_(u);return{"--n-bezier":t,"--n-color":n[l(`color`,y)],"--n-close-icon-size":f,"--n-close-border-radius":p,"--n-close-color-hover":n[l(`closeColorHover`,y)],"--n-close-color-pressed":n[l(`closeColorPressed`,y)],"--n-close-icon-color":n[l(`closeIconColor`,y)],"--n-close-icon-color-hover":n[l(`closeIconColorHover`,y)],"--n-close-icon-color-pressed":n[l(`closeIconColorPressed`,y)],"--n-icon-color":n[l(`iconColor`,y)],"--n-border":n[l(`border`,y)],"--n-title-text-color":n[l(`titleTextColor`,y)],"--n-content-text-color":n[l(`contentTextColor`,y)],"--n-line-height":o,"--n-border-radius":i,"--n-font-size":r,"--n-title-font-weight":a,"--n-icon-size":s,"--n-icon-margin":u,"--n-icon-margin-rtl":d,"--n-close-size":m,"--n-close-margin":h,"--n-close-margin-rtl":g,"--n-padding":v,"--n-icon-margin-left":b,"--n-icon-margin-right":x}}),p=r?i(`alert`,g(()=>e.type[0]),f,e):void 0,m=h(!0),v=()=>{let{onAfterLeave:t,onAfterHide:n}=e;t&&t(),n&&n()};return{rtlEnabled:u,mergedClsPrefix:t,mergedBordered:n,visible:m,handleCloseClick:()=>{Promise.resolve(e.onClose?.call(e)).then(e=>{e!==!1&&(m.value=!1)})},handleAfterLeave:()=>{v()},mergedTheme:c,cssVars:r?void 0:f,themeClass:p?.themeClass,onRender:p?.onRender}},render(){var e;return(e=this.onRender)==null||e.call(this),t(T,{onAfterLeave:this.handleAfterLeave},{default:()=>{let{mergedClsPrefix:e,$slots:n}=this,i={class:[`${e}-alert`,this.themeClass,this.closable&&`${e}-alert--closable`,this.showIcon&&`${e}-alert--show-icon`,!this.title&&this.closable&&`${e}-alert--right-adjust`,this.rtlEnabled&&`${e}-alert--rtl`],style:this.cssVars,role:`alert`};return this.visible?t(`div`,Object.assign({},r(this.$attrs,i)),this.closable&&t(E,{clsPrefix:e,class:`${e}-alert__close`,onClick:this.handleCloseClick}),this.bordered&&t(`div`,{class:`${e}-alert__border`}),this.showIcon&&t(`div`,{class:`${e}-alert__icon`,"aria-hidden":`true`},v(n.icon,()=>[t(w,{clsPrefix:e},{default:()=>{switch(this.type){case`success`:return t(O,null);case`info`:return t(x,null);case`warning`:return t(S,null);case`error`:return t(D,null);default:return null}}})])),t(`div`,{class:[`${e}-alert-body`,this.mergedBordered&&`${e}-alert-body--bordered`]},y(n.header,n=>{let r=n||this.title;return r?t(`div`,{class:`${e}-alert-body__title`},r):null}),n.default&&t(`div`,{class:`${e}-alert-body__content`},n))):null}})}});export{M as t};
+48
View File
@@ -0,0 +1,48 @@
import{Pt as e,Q as t,U as n,W as r,Z as i,_ as a,at as o,ct as s,f as c,jt as l,m as u,nt as d,ot as f,rt as p,xt as m,yn as h,zt as g}from"./client-Be0b5AZU.js";import{s as _}from"./ui-DePKLhY8.js";import{i as v,o as y}from"./_plugin-vue_export-helper-C_Iw6R3j.js";import{F as b,J as x,K as S,P as C,Q as w,U as T,W as E,Y as D,q as O}from"./index-DpxjEbFc.js";function k(e){let{lineHeight:n,borderRadius:r,fontWeightStrong:a,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:x}=e;return Object.assign(Object.assign({},b),{fontSize:x,lineHeight:n,titleFontWeight:a,borderRadius:r,border:`1px solid ${s}`,color:c,titleTextColor:l,iconColor:u,contentTextColor:u,closeBorderRadius:r,closeColorHover:d,closeColorPressed:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,borderInfo:`1px solid ${t(o,i(g,{alpha:.25}))}`,colorInfo:t(o,i(g,{alpha:.08})),titleTextColorInfo:l,iconColorInfo:g,contentTextColorInfo:u,closeColorHoverInfo:d,closeColorPressedInfo:f,closeIconColorInfo:p,closeIconColorHoverInfo:m,closeIconColorPressedInfo:h,borderSuccess:`1px solid ${t(o,i(_,{alpha:.25}))}`,colorSuccess:t(o,i(_,{alpha:.08})),titleTextColorSuccess:l,iconColorSuccess:_,contentTextColorSuccess:u,closeColorHoverSuccess:d,closeColorPressedSuccess:f,closeIconColorSuccess:p,closeIconColorHoverSuccess:m,closeIconColorPressedSuccess:h,borderWarning:`1px solid ${t(o,i(v,{alpha:.33}))}`,colorWarning:t(o,i(v,{alpha:.08})),titleTextColorWarning:l,iconColorWarning:v,contentTextColorWarning:u,closeColorHoverWarning:d,closeColorPressedWarning:f,closeIconColorWarning:p,closeIconColorHoverWarning:m,closeIconColorPressedWarning:h,borderError:`1px solid ${t(o,i(y,{alpha:.25}))}`,colorError:t(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);
border-radius: var(--n-border-radius);
position: relative;
transition: background-color .3s var(--n-bezier);
background-color: var(--n-color);
text-align: start;
word-break: break-word;
`,[o(`border`,`
border-radius: inherit;
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
transition: border-color .3s var(--n-bezier);
border: var(--n-border);
pointer-events: none;
`),f(`closable`,[p(`alert-body`,[o(`title`,`
padding-right: 24px;
`)])]),o(`icon`,{color:`var(--n-icon-color)`}),p(`alert-body`,{padding:`var(--n-padding)`},[o(`title`,{color:`var(--n-title-text-color)`}),o(`content`,{color:`var(--n-content-text-color)`})]),C({originalTransition:`transform .3s var(--n-bezier)`,enterToProps:{transform:`scale(1)`},leaveToProps:{transform:`scale(0.9)`}}),o(`icon`,`
position: absolute;
left: 0;
top: 0;
align-items: center;
justify-content: center;
display: flex;
width: var(--n-icon-size);
height: var(--n-icon-size);
font-size: var(--n-icon-size);
margin: var(--n-icon-margin);
`),o(`close`,`
transition:
color .3s var(--n-bezier),
background-color .3s var(--n-bezier);
position: absolute;
right: 0;
top: 0;
margin: var(--n-close-margin);
`),f(`show-icon`,[p(`alert-body`,{paddingLeft:`calc(var(--n-icon-margin-left) + var(--n-icon-size) + var(--n-icon-margin-right))`})]),f(`right-adjust`,[p(`alert-body`,{paddingRight:`calc(var(--n-close-size) + var(--n-padding) + 2px)`})]),p(`alert-body`,`
border-radius: var(--n-border-radius);
transition: border-color .3s var(--n-bezier);
`,[o(`title`,`
transition: color .3s var(--n-bezier);
font-size: 16px;
line-height: 19px;
font-weight: var(--n-title-font-weight);
`,[d(`& +`,[o(`content`,{marginTop:`9px`})])]),o(`content`,{transition:`color .3s var(--n-bezier)`,fontSize:`var(--n-font-size)`})]),o(`icon`,{transition:`color .3s var(--n-bezier)`})]),M=l({name:`Alert`,inheritAttrs:!1,props:Object.assign(Object.assign({},u.props),{title:String,showIcon:{type:Boolean,default:!0},type:{type:String,default:`default`},bordered:{type:Boolean,default:!0},closable:Boolean,onClose:Function,onAfterLeave:Function,onAfterHide:Function}),slots:Object,setup(e){let{mergedClsPrefixRef:t,mergedBorderedRef:i,inlineThemeDisabled:o,mergedRtlRef:c}=r(e),l=u(`Alert`,`-alert`,j,A,e,t),d=a(`Alert`,c,t),f=m(()=>{let{common:{cubicBezierEaseInOut:t},self:n}=l.value,{fontSize:r,borderRadius:i,titleFontWeight:a,lineHeight:o,iconSize:c,iconMargin:u,iconMarginRtl:d,closeIconSize:f,closeBorderRadius:p,closeSize:m,closeMargin:h,closeMarginRtl:g,padding:v}=n,{type:y}=e,{left:b,right:x}=_(u);return{"--n-bezier":t,"--n-color":n[s(`color`,y)],"--n-close-icon-size":f,"--n-close-border-radius":p,"--n-close-color-hover":n[s(`closeColorHover`,y)],"--n-close-color-pressed":n[s(`closeColorPressed`,y)],"--n-close-icon-color":n[s(`closeIconColor`,y)],"--n-close-icon-color-hover":n[s(`closeIconColorHover`,y)],"--n-close-icon-color-pressed":n[s(`closeIconColorPressed`,y)],"--n-icon-color":n[s(`iconColor`,y)],"--n-border":n[s(`border`,y)],"--n-title-text-color":n[s(`titleTextColor`,y)],"--n-content-text-color":n[s(`contentTextColor`,y)],"--n-line-height":o,"--n-border-radius":i,"--n-font-size":r,"--n-title-font-weight":a,"--n-icon-size":c,"--n-icon-margin":u,"--n-icon-margin-rtl":d,"--n-close-size":m,"--n-close-margin":h,"--n-close-margin-rtl":g,"--n-padding":v,"--n-icon-margin-left":b,"--n-icon-margin-right":x}}),p=o?n(`alert`,m(()=>e.type[0]),f,e):void 0,g=h(!0),v=()=>{let{onAfterLeave:t,onAfterHide:n}=e;t&&t(),n&&n()};return{rtlEnabled:d,mergedClsPrefix:t,mergedBordered:i,visible:g,handleCloseClick:()=>{Promise.resolve(e.onClose?.call(e)).then(e=>{e!==!1&&(g.value=!1)})},handleAfterLeave:()=>{v()},mergedTheme:l,cssVars:o?void 0:f,themeClass:p?.themeClass,onRender:p?.onRender}},render(){var t;return(t=this.onRender)==null||t.call(this),e(T,{onAfterLeave:this.handleAfterLeave},{default:()=>{let{mergedClsPrefix:t,$slots:n}=this,r={class:[`${t}-alert`,this.themeClass,this.closable&&`${t}-alert--closable`,this.showIcon&&`${t}-alert--show-icon`,!this.title&&this.closable&&`${t}-alert--right-adjust`,this.rtlEnabled&&`${t}-alert--rtl`],style:this.cssVars,role:`alert`};return this.visible?e(`div`,Object.assign({},g(this.$attrs,r)),this.closable&&e(E,{clsPrefix:t,class:`${t}-alert__close`,onClick:this.handleCloseClick}),this.bordered&&e(`div`,{class:`${t}-alert__border`}),this.showIcon&&e(`div`,{class:`${t}-alert__icon`,"aria-hidden":`true`},v(n.icon,()=>[e(w,{clsPrefix:t},{default:()=>{switch(this.type){case`success`:return e(O,null);case`info`:return e(x,null);case`warning`:return e(S,null);case`error`:return e(D,null);default:return null}}})])),e(`div`,{class:[`${t}-alert-body`,this.mergedBordered&&`${t}-alert-body--bordered`]},y(n.header,n=>{let r=n||this.title;return r?e(`div`,{class:`${t}-alert-body__title`},r):null}),n.default&&e(`div`,{class:`${t}-alert-body__content`},n))):null}})}});export{M as t};
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
import{At as e,Nt as t,U as n,W as r,_ as i,at as a,ct as o,lt as s,m as c,nt as l,ot as u,rt as d,tt as f,ut as p,xt as m}from"./client-DrrW410h.js";import{i as h,t as g}from"./Scrollbar-DGnXZ64x.js";import{s as _}from"./ui-BXphkCO3.js";import{c as v,n as y,o as b}from"./_plugin-vue_export-helper-2ZWAS1ss.js";import{A as x,W as S}from"./index-CvfVA1ID.js";var C=d(`card-content`,` import{Pt as e,U as t,W as n,_ as r,at as i,ct as a,jt as o,lt as s,m as c,nt as l,ot as u,rt as d,tt as f,ut as p,xt as m}from"./client-Be0b5AZU.js";import{i as h,t as g}from"./Scrollbar-LRArvNxj.js";import{s as _}from"./ui-DePKLhY8.js";import{c as v,n as y,o as b}from"./_plugin-vue_export-helper-C_Iw6R3j.js";import{A as x,W as S}from"./index-DpxjEbFc.js";var C=d(`card-content`,`
flex: 1; flex: 1;
min-width: 0; min-width: 0;
box-sizing: border-box; box-sizing: border-box;
@@ -23,17 +23,17 @@ import{At as e,Nt as t,U as n,W as r,_ as i,at as a,ct as o,lt as s,m as c,nt as
border-color .3s var(--n-bezier); border-color .3s var(--n-bezier);
`,[f({background:`var(--n-color-modal)`}),u(`hoverable`,[l(`&:hover`,`box-shadow: var(--n-box-shadow);`)]),u(`content-segmented`,[l(`>`,[d(`card-content`,` `,[f({background:`var(--n-color-modal)`}),u(`hoverable`,[l(`&:hover`,`box-shadow: var(--n-box-shadow);`)]),u(`content-segmented`,[l(`>`,[d(`card-content`,`
padding-top: var(--n-padding-bottom); padding-top: var(--n-padding-bottom);
`),a(`content-scrollbar`,[l(`>`,[d(`scrollbar-container`,[l(`>`,[d(`card-content`,` `),i(`content-scrollbar`,[l(`>`,[d(`scrollbar-container`,[l(`>`,[d(`card-content`,`
padding-top: var(--n-padding-bottom); padding-top: var(--n-padding-bottom);
`)])])])])])]),u(`content-soft-segmented`,[l(`>`,[d(`card-content`,` `)])])])])])]),u(`content-soft-segmented`,[l(`>`,[d(`card-content`,`
margin: 0 var(--n-padding-left); margin: 0 var(--n-padding-left);
padding: var(--n-padding-bottom) 0; padding: var(--n-padding-bottom) 0;
`),a(`content-scrollbar`,[l(`>`,[d(`scrollbar-container`,[l(`>`,[d(`card-content`,` `),i(`content-scrollbar`,[l(`>`,[d(`scrollbar-container`,[l(`>`,[d(`card-content`,`
margin: 0 var(--n-padding-left); margin: 0 var(--n-padding-left);
padding: var(--n-padding-bottom) 0; padding: var(--n-padding-bottom) 0;
`)])])])])])]),u(`footer-segmented`,[l(`>`,[a(`footer`,` `)])])])])])]),u(`footer-segmented`,[l(`>`,[i(`footer`,`
padding-top: var(--n-padding-bottom); padding-top: var(--n-padding-bottom);
`)])]),u(`footer-soft-segmented`,[l(`>`,[a(`footer`,` `)])]),u(`footer-soft-segmented`,[l(`>`,[i(`footer`,`
padding: var(--n-padding-bottom) 0; padding: var(--n-padding-bottom) 0;
margin: 0 var(--n-padding-left); margin: 0 var(--n-padding-left);
`)])]),l(`>`,[d(`card-header`,` `)])]),l(`>`,[d(`card-header`,`
@@ -46,25 +46,25 @@ import{At as e,Nt as t,U as n,W as r,_ as i,at as a,ct as o,lt as s,m as c,nt as
var(--n-padding-left) var(--n-padding-left)
var(--n-padding-bottom) var(--n-padding-bottom)
var(--n-padding-left); var(--n-padding-left);
`,[a(`main`,` `,[i(`main`,`
font-weight: var(--n-title-font-weight); font-weight: var(--n-title-font-weight);
transition: color .3s var(--n-bezier); transition: color .3s var(--n-bezier);
flex: 1; flex: 1;
min-width: 0; min-width: 0;
color: var(--n-title-text-color); color: var(--n-title-text-color);
`),a(`extra`,` `),i(`extra`,`
display: flex; display: flex;
align-items: center; align-items: center;
font-size: var(--n-font-size); font-size: var(--n-font-size);
font-weight: 400; font-weight: 400;
transition: color .3s var(--n-bezier); transition: color .3s var(--n-bezier);
color: var(--n-text-color); color: var(--n-text-color);
`),a(`close`,` `),i(`close`,`
margin: 0 0 0 8px; margin: 0 0 0 8px;
transition: transition:
background-color .3s var(--n-bezier), background-color .3s var(--n-bezier),
color .3s var(--n-bezier); color .3s var(--n-bezier);
`)]),a(`action`,` `)]),i(`action`,`
box-sizing: border-box; box-sizing: border-box;
transition: transition:
background-color .3s var(--n-bezier), background-color .3s var(--n-bezier),
@@ -73,18 +73,18 @@ import{At as e,Nt as t,U as n,W as r,_ as i,at as a,ct as o,lt as s,m as c,nt as
background-color: var(--n-action-color); background-color: var(--n-action-color);
`),C,d(`card-content`,[l(`&:first-child`,` `),C,d(`card-content`,[l(`&:first-child`,`
padding-top: var(--n-padding-bottom); padding-top: var(--n-padding-bottom);
`)]),a(`content-scrollbar`,` `)]),i(`content-scrollbar`,`
display: flex; display: flex;
flex-direction: column; flex-direction: column;
`,[l(`>`,[d(`scrollbar-container`,[l(`>`,[C])])]),l(`&:first-child >`,[d(`scrollbar-container`,[l(`>`,[d(`card-content`,` `,[l(`>`,[d(`scrollbar-container`,[l(`>`,[C])])]),l(`&:first-child >`,[d(`scrollbar-container`,[l(`>`,[d(`card-content`,`
padding-top: var(--n-padding-bottom); padding-top: var(--n-padding-bottom);
`)])])])]),a(`footer`,` `)])])])]),i(`footer`,`
box-sizing: border-box; box-sizing: border-box;
padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left); padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left);
font-size: var(--n-font-size); font-size: var(--n-font-size);
`,[l(`&:first-child`,` `,[l(`&:first-child`,`
padding-top: var(--n-padding-bottom); padding-top: var(--n-padding-bottom);
`)]),a(`action`,` `)]),i(`action`,`
background-color: var(--n-action-color); background-color: var(--n-action-color);
padding: var(--n-padding-bottom) var(--n-padding-left); padding: var(--n-padding-bottom) var(--n-padding-left);
border-bottom-left-radius: var(--n-border-radius); border-bottom-left-radius: var(--n-border-radius);
@@ -98,17 +98,17 @@ import{At as e,Nt as t,U as n,W as r,_ as i,at as a,ct as o,lt as s,m as c,nt as
width: 100%; width: 100%;
`)]),u(`bordered`,` `)]),u(`bordered`,`
border: 1px solid var(--n-border-color); border: 1px solid var(--n-border-color);
`,[l(`&:target`,`border-color: var(--n-color-target);`)]),u(`action-segmented`,[l(`>`,[a(`action`,[l(`&:not(:first-child)`,` `,[l(`&:target`,`border-color: var(--n-color-target);`)]),u(`action-segmented`,[l(`>`,[i(`action`,[l(`&:not(:first-child)`,`
border-top: 1px solid var(--n-border-color); border-top: 1px solid var(--n-border-color);
`)])])]),u(`content-segmented, content-soft-segmented`,[l(`>`,[d(`card-content`,` `)])])]),u(`content-segmented, content-soft-segmented`,[l(`>`,[d(`card-content`,`
transition: border-color 0.3s var(--n-bezier); transition: border-color 0.3s var(--n-bezier);
`,[l(`&:not(:first-child)`,` `,[l(`&:not(:first-child)`,`
border-top: 1px solid var(--n-border-color); border-top: 1px solid var(--n-border-color);
`)]),a(`content-scrollbar`,` `)]),i(`content-scrollbar`,`
transition: border-color 0.3s var(--n-bezier); transition: border-color 0.3s var(--n-bezier);
`,[l(`&:not(:first-child)`,` `,[l(`&:not(:first-child)`,`
border-top: 1px solid var(--n-border-color); border-top: 1px solid var(--n-border-color);
`)])])]),u(`footer-segmented, footer-soft-segmented`,[l(`>`,[a(`footer`,` `)])])]),u(`footer-segmented, footer-soft-segmented`,[l(`>`,[i(`footer`,`
transition: border-color 0.3s var(--n-bezier); transition: border-color 0.3s var(--n-bezier);
`,[l(`&:not(:first-child)`,` `,[l(`&:not(:first-child)`,`
border-top: 1px solid var(--n-border-color); border-top: 1px solid var(--n-border-color);
@@ -122,4 +122,4 @@ import{At as e,Nt as t,U as n,W as r,_ as i,at as a,ct as o,lt as s,m as c,nt as
background: var(--n-color-popover); background: var(--n-color-popover);
`,[u(`embedded`,` `,[u(`embedded`,`
background-color: var(--n-color-embedded-popover); background-color: var(--n-color-embedded-popover);
`)]))]),T={title:[String,Function],contentClass:String,contentStyle:[Object,String],contentScrollable:Boolean,headerClass:String,headerStyle:[Object,String],headerExtraClass:String,headerExtraStyle:[Object,String],footerClass:String,footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:String,bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:`div`},cover:Function,content:[String,Function],footer:Function,action:Function,headerExtra:Function,closeFocusable:Boolean},E=h(T),D=e({name:`Card`,props:Object.assign(Object.assign({},c.props),T),slots:Object,setup(e){let t=()=>{let{onClose:t}=e;t&&v(t)},{inlineThemeDisabled:a,mergedClsPrefixRef:s,mergedRtlRef:l,mergedComponentPropsRef:u}=r(e),d=c(`Card`,`-card`,w,x,e,s),f=i(`Card`,l,s),p=m(()=>e.size||u?.value?.Card?.size||`medium`),h=m(()=>{let e=p.value,{self:{color:t,colorModal:n,colorTarget:r,textColor:i,titleTextColor:a,titleFontWeight:s,borderColor:c,actionColor:l,borderRadius:u,lineHeight:f,closeIconColor:m,closeIconColorHover:h,closeIconColorPressed:g,closeColorHover:v,closeColorPressed:y,closeBorderRadius:b,closeIconSize:x,closeSize:S,boxShadow:C,colorPopover:w,colorEmbedded:T,colorEmbeddedModal:E,colorEmbeddedPopover:D,[o(`padding`,e)]:O,[o(`fontSize`,e)]:k,[o(`titleFontSize`,e)]:A},common:{cubicBezierEaseInOut:j}}=d.value,{top:M,left:N,bottom:P}=_(O);return{"--n-bezier":j,"--n-border-radius":u,"--n-color":t,"--n-color-modal":n,"--n-color-popover":w,"--n-color-embedded":T,"--n-color-embedded-modal":E,"--n-color-embedded-popover":D,"--n-color-target":r,"--n-text-color":i,"--n-line-height":f,"--n-action-color":l,"--n-title-text-color":a,"--n-title-font-weight":s,"--n-close-icon-color":m,"--n-close-icon-color-hover":h,"--n-close-icon-color-pressed":g,"--n-close-color-hover":v,"--n-close-color-pressed":y,"--n-border-color":c,"--n-box-shadow":C,"--n-padding-top":M,"--n-padding-bottom":P,"--n-padding-left":N,"--n-font-size":k,"--n-title-font-size":A,"--n-close-size":S,"--n-close-icon-size":x,"--n-close-border-radius":b}}),g=a?n(`card`,m(()=>p.value[0]),h,e):void 0;return{rtlEnabled:f,mergedClsPrefix:s,mergedTheme:d,handleCloseClick:t,cssVars:a?void 0:h,themeClass:g?.themeClass,onRender:g?.onRender}},render(){let{segmented:e,bordered:n,hoverable:r,mergedClsPrefix:i,rtlEnabled:a,onRender:o,embedded:s,tag:c,$slots:l}=this;return o?.(),t(c,{class:[`${i}-card`,this.themeClass,s&&`${i}-card--embedded`,{[`${i}-card--rtl`]:a,[`${i}-card--content-scrollable`]:this.contentScrollable,[`${i}-card--content${typeof e!=`boolean`&&e.content===`soft`?`-soft`:``}-segmented`]:e===!0||e!==!1&&e.content,[`${i}-card--footer${typeof e!=`boolean`&&e.footer===`soft`?`-soft`:``}-segmented`]:e===!0||e!==!1&&e.footer,[`${i}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${i}-card--bordered`]:n,[`${i}-card--hoverable`]:r}],style:this.cssVars,role:this.role},b(l.cover,e=>{let n=this.cover?y([this.cover()]):e;return n&&t(`div`,{class:`${i}-card-cover`,role:`none`},n)}),b(l.header,e=>{let{title:n}=this,r=n?y(typeof n==`function`?[n()]:[n]):e;return r||this.closable?t(`div`,{class:[`${i}-card-header`,this.headerClass],style:this.headerStyle,role:`heading`},t(`div`,{class:`${i}-card-header__main`,role:`heading`},r),b(l[`header-extra`],e=>{let n=this.headerExtra?y([this.headerExtra()]):e;return n&&t(`div`,{class:[`${i}-card-header__extra`,this.headerExtraClass],style:this.headerExtraStyle},n)}),this.closable&&t(S,{clsPrefix:i,class:`${i}-card-header__close`,onClick:this.handleCloseClick,focusable:this.closeFocusable,absolute:!0})):null}),b(l.default,e=>{let{content:n}=this,r=n?y(typeof n==`function`?[n()]:[n]):e;return r?this.contentScrollable?t(g,{class:`${i}-card__content-scrollbar`,contentClass:[`${i}-card-content`,this.contentClass],contentStyle:this.contentStyle},r):t(`div`,{class:[`${i}-card-content`,this.contentClass],style:this.contentStyle,role:`none`},r):null}),b(l.footer,e=>{let n=this.footer?y([this.footer()]):e;return n&&t(`div`,{class:[`${i}-card__footer`,this.footerClass],style:this.footerStyle,role:`none`},n)}),b(l.action,e=>{let n=this.action?y([this.action()]):e;return n&&t(`div`,{class:`${i}-card__action`,role:`none`},n)}))}});export{E as n,T as r,D as t}; `)]))]),T={title:[String,Function],contentClass:String,contentStyle:[Object,String],contentScrollable:Boolean,headerClass:String,headerStyle:[Object,String],headerExtraClass:String,headerExtraStyle:[Object,String],footerClass:String,footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:String,bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:`div`},cover:Function,content:[String,Function],footer:Function,action:Function,headerExtra:Function,closeFocusable:Boolean},E=h(T),D=o({name:`Card`,props:Object.assign(Object.assign({},c.props),T),slots:Object,setup(e){let i=()=>{let{onClose:t}=e;t&&v(t)},{inlineThemeDisabled:o,mergedClsPrefixRef:s,mergedRtlRef:l,mergedComponentPropsRef:u}=n(e),d=c(`Card`,`-card`,w,x,e,s),f=r(`Card`,l,s),p=m(()=>e.size||u?.value?.Card?.size||`medium`),h=m(()=>{let e=p.value,{self:{color:t,colorModal:n,colorTarget:r,textColor:i,titleTextColor:o,titleFontWeight:s,borderColor:c,actionColor:l,borderRadius:u,lineHeight:f,closeIconColor:m,closeIconColorHover:h,closeIconColorPressed:g,closeColorHover:v,closeColorPressed:y,closeBorderRadius:b,closeIconSize:x,closeSize:S,boxShadow:C,colorPopover:w,colorEmbedded:T,colorEmbeddedModal:E,colorEmbeddedPopover:D,[a(`padding`,e)]:O,[a(`fontSize`,e)]:k,[a(`titleFontSize`,e)]:A},common:{cubicBezierEaseInOut:j}}=d.value,{top:M,left:N,bottom:P}=_(O);return{"--n-bezier":j,"--n-border-radius":u,"--n-color":t,"--n-color-modal":n,"--n-color-popover":w,"--n-color-embedded":T,"--n-color-embedded-modal":E,"--n-color-embedded-popover":D,"--n-color-target":r,"--n-text-color":i,"--n-line-height":f,"--n-action-color":l,"--n-title-text-color":o,"--n-title-font-weight":s,"--n-close-icon-color":m,"--n-close-icon-color-hover":h,"--n-close-icon-color-pressed":g,"--n-close-color-hover":v,"--n-close-color-pressed":y,"--n-border-color":c,"--n-box-shadow":C,"--n-padding-top":M,"--n-padding-bottom":P,"--n-padding-left":N,"--n-font-size":k,"--n-title-font-size":A,"--n-close-size":S,"--n-close-icon-size":x,"--n-close-border-radius":b}}),g=o?t(`card`,m(()=>p.value[0]),h,e):void 0;return{rtlEnabled:f,mergedClsPrefix:s,mergedTheme:d,handleCloseClick:i,cssVars:o?void 0:h,themeClass:g?.themeClass,onRender:g?.onRender}},render(){let{segmented:t,bordered:n,hoverable:r,mergedClsPrefix:i,rtlEnabled:a,onRender:o,embedded:s,tag:c,$slots:l}=this;return o?.(),e(c,{class:[`${i}-card`,this.themeClass,s&&`${i}-card--embedded`,{[`${i}-card--rtl`]:a,[`${i}-card--content-scrollable`]:this.contentScrollable,[`${i}-card--content${typeof t!=`boolean`&&t.content===`soft`?`-soft`:``}-segmented`]:t===!0||t!==!1&&t.content,[`${i}-card--footer${typeof t!=`boolean`&&t.footer===`soft`?`-soft`:``}-segmented`]:t===!0||t!==!1&&t.footer,[`${i}-card--action-segmented`]:t===!0||t!==!1&&t.action,[`${i}-card--bordered`]:n,[`${i}-card--hoverable`]:r}],style:this.cssVars,role:this.role},b(l.cover,t=>{let n=this.cover?y([this.cover()]):t;return n&&e(`div`,{class:`${i}-card-cover`,role:`none`},n)}),b(l.header,t=>{let{title:n}=this,r=n?y(typeof n==`function`?[n()]:[n]):t;return r||this.closable?e(`div`,{class:[`${i}-card-header`,this.headerClass],style:this.headerStyle,role:`heading`},e(`div`,{class:`${i}-card-header__main`,role:`heading`},r),b(l[`header-extra`],t=>{let n=this.headerExtra?y([this.headerExtra()]):t;return n&&e(`div`,{class:[`${i}-card-header__extra`,this.headerExtraClass],style:this.headerExtraStyle},n)}),this.closable&&e(S,{clsPrefix:i,class:`${i}-card-header__close`,onClick:this.handleCloseClick,focusable:this.closeFocusable,absolute:!0})):null}),b(l.default,t=>{let{content:n}=this,r=n?y(typeof n==`function`?[n()]:[n]):t;return r?this.contentScrollable?e(g,{class:`${i}-card__content-scrollbar`,contentClass:[`${i}-card-content`,this.contentClass],contentStyle:this.contentStyle},r):e(`div`,{class:[`${i}-card-content`,this.contentClass],style:this.contentStyle,role:`none`},r):null}),b(l.footer,t=>{let n=this.footer?y([this.footer()]):t;return n&&e(`div`,{class:[`${i}-card__footer`,this.footerClass],style:this.footerStyle,role:`none`},n)}),b(l.action,t=>{let n=this.action?y([this.action()]):t;return n&&e(`div`,{class:`${i}-card__action`,role:`none`},n)}))}});export{E as n,T as r,D as t};
+1
View File
@@ -0,0 +1 @@
import{At as e,Ct as t,Hn as n,St as r,Tn as i,Tt as a,Un as o,Yt as s,Zt as c,cn as l,d as u,gt as d,jt as f,kt as p,wt as m,yn as h}from"./client-Be0b5AZU.js";import{i as g}from"./ui-DePKLhY8.js";import{t as _}from"./_plugin-vue_export-helper-C_Iw6R3j.js";import{t as v}from"./Rate-BhaAZrt2.js";import{i as y}from"./index-DpxjEbFc.js";import{t as b}from"./HeaderMenu-BhUQ_vLn.js";import{t as x}from"./SiteFooter-DUGYOD36.js";var S={class:`center-block-custom`},C={class:`width1200 display-table catalog-grid`},w=[`onClick`],T={class:`scenario-content-block`},E={class:`scenario-title`},D={class:`scenario-description`},O={class:`scenario-rating`},k={key:1},A={key:2},j={key:0,class:`scenario-difficulty`},M={class:`scenario-label`},N=_(f({__name:`CatalogPage`,setup(f){let _=y(),N=h([]),P=u();async function F(){N.value=[];let e=await _.GetScenariosCatalog({});N.value=e.scenarios}async function I(e){P.push(`/scenarios/`+e)}return F(),(u,f)=>(s(),a(d,null,[r(`div`,S,[r(`div`,C,[(s(!0),a(d,null,c(N.value,c=>(s(),a(`div`,{class:`scenario-block`,onClick:e=>I(c.ID),key:c.ID},[r(`div`,{class:`scenario-image-block scenario-image`,style:n({backgroundImage:`url(${c.image})`})},null,4),r(`div`,T,[r(`p`,E,o(c.name),1),r(`p`,D,o(c.description),1),r(`div`,O,[c.reviewsCount?(s(),t(i(v),{key:0,value:c.averageRating,readonly:``,"allow-half":``,size:`small`},null,8,[`value`])):m(``,!0),c.reviewsCount?(s(),a(`span`,k,o(c.averageRating?.toFixed(1))+` · `+o(c.reviewsCount),1)):(s(),a(`span`,A,`Пока нет оценок`))]),c.difficulty?(s(),a(`div`,j,`Сложность: `+o(c.difficulty),1)):m(``,!0),r(`p`,M,[e(i(g),{bordered:!1,type:`success`,class:`status-block`},{default:l(()=>[p(`Автор: `+o(c.author?.username),1)]),_:2},1024)])])],8,w))),128))]),e(x)]),e(b,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-90b28396`]]),P=f({__name:`CatalogView`,setup(e){return(e,n)=>(s(),t(N))}});export{P as default};
-1
View File
@@ -1 +0,0 @@
import{At as e,Bn as t,Cn as n,Ct as r,Jt as i,Ot as a,St as o,Tt as s,Vn as c,Xt as l,d as u,gt as d,kt as f,sn as p,vn as m,wt as h}from"./client-DrrW410h.js";import{i as g}from"./ui-BXphkCO3.js";import{t as _}from"./_plugin-vue_export-helper-2ZWAS1ss.js";import{t as v}from"./Rate-DzWTiM8f.js";import{i as y}from"./index-CvfVA1ID.js";import{t as b}from"./HeaderMenu-DjAjwijB.js";import{t as x}from"./SiteFooter-BjbzmgYc.js";var S={class:`center-block-custom`},C={class:`width1200 display-table catalog-grid`},w=[`onClick`],T={class:`scenario-content-block`},E={class:`scenario-title`},D={class:`scenario-description`},O={class:`scenario-rating`},k={key:1},A={key:2},j={key:0,class:`scenario-difficulty`},M={class:`scenario-label`},N=_(e({__name:`CatalogPage`,setup(e){let _=y(),N=m([]),P=u();async function F(){N.value=[];let e=await _.GetScenariosCatalog({});N.value=e.scenarios}async function I(e){P.push(`/scenarios/`+e)}return F(),(e,u)=>(i(),s(d,null,[o(`div`,S,[o(`div`,C,[(i(!0),s(d,null,l(N.value,e=>(i(),s(`div`,{class:`scenario-block`,onClick:t=>I(e.ID),key:e.ID},[o(`div`,{class:`scenario-image-block scenario-image`,style:t({backgroundImage:`url(${e.image})`})},null,4),o(`div`,T,[o(`p`,E,c(e.name),1),o(`p`,D,c(e.description),1),o(`div`,O,[e.reviewsCount?(i(),r(n(v),{key:0,value:e.averageRating,readonly:``,"allow-half":``,size:`small`},null,8,[`value`])):h(``,!0),e.reviewsCount?(i(),s(`span`,k,c(e.averageRating?.toFixed(1))+` · `+c(e.reviewsCount),1)):(i(),s(`span`,A,`Пока нет оценок`))]),e.difficulty?(i(),s(`div`,j,`Сложность: `+c(e.difficulty),1)):h(``,!0),o(`p`,M,[f(n(g),{bordered:!1,type:`success`,class:`status-block`},{default:p(()=>[a(`Автор: `+c(e.author?.username),1)]),_:2},1024)])])],8,w))),128))]),f(x)]),f(b,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-90b28396`]]),P=e({__name:`CatalogView`,setup(e){return(e,t)=>(i(),r(N))}});export{P as default};
+1
View File
@@ -0,0 +1 @@
import{At as e,Tt as t,Yt as n,gt as r,jt as i}from"./client-Be0b5AZU.js";import{t as a}from"./HeaderMenu-BhUQ_vLn.js";import{t as o}from"./DocsPage-BpYUTY7w.js";var s=i({__name:`ConsentView`,setup(i){return(i,s)=>(n(),t(r,null,[e(o,{kind:`consent`}),e(a)],64))}});export{s as default};
-1
View File
@@ -1 +0,0 @@
import{At as e,Jt as t,Tt as n,gt as r,kt as i}from"./client-DrrW410h.js";import{t as a}from"./HeaderMenu-DjAjwijB.js";import{t as o}from"./DocsPage-ZV8KFkx6.js";var s=e({__name:`ConsentView`,setup(e){return(e,s)=>(t(),n(r,null,[i(o,{kind:`consent`}),i(a)],64))}});export{s 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
View File
@@ -0,0 +1 @@
import{At as e,Ct as t,Kt as n,St as r,Tn as i,Tt as a,Un as o,Yt as s,a as c,cn as l,jt as u,kt as d,yn as f}from"./client-Be0b5AZU.js";import{t as p}from"./_plugin-vue_export-helper-C_Iw6R3j.js";import{t as m}from"./Alert-CNQloVdC.js";import{t as h}from"./Spin-D4c-N3AC.js";import{i as g}from"./index-DpxjEbFc.js";import{t as _}from"./SiteFooter-DUGYOD36.js";import{t as v}from"./HeaderText-CVAvj4rZ.js";var y={class:`center-block-custom`},b={class:`width700 doc-page`},x={class:`doc-title`},S={key:0,class:`doc-loading`},C={key:2,class:`paper-block`},w={class:`paper`},T={class:`doc-text`},E={class:`docs-links`},D=p(u({__name:`DocsPage`,props:{kind:{}},setup(u){let p=u,D={terms:`Пользовательское соглашение`,privacy:`Политика конфиденциальности`,consent:`Согласие на обработку персональных данных`},O=f(``),k=f(!0),A=f(``);return n(async()=>{let e=g(),t={terms:()=>e.GetTerms({}),privacy:()=>e.GetPrivacy({}),consent:()=>e.GetConsent({})};try{let e=await t[p.kind]();O.value=e.text||``}catch(e){A.value=e instanceof Error?e.message:`Не удалось загрузить документ`}finally{k.value=!1}}),(n,u)=>(s(),a(`div`,y,[r(`div`,b,[r(`h1`,x,[e(v,null,{default:l(()=>[d(o(D[p.kind]),1)]),_:1})]),k.value?(s(),a(`div`,S,[e(i(h),{size:`large`})])):A.value?(s(),t(i(m),{key:1,type:`error`,"show-icon":!1,class:`doc-error`},{default:l(()=>[d(o(A.value),1)]),_:1})):(s(),a(`div`,C,[r(`div`,w,[r(`p`,T,o(O.value),1)]),u[0]||=r(`div`,{class:`paper-shadow paper-shadow-left`},null,-1),u[1]||=r(`div`,{class:`paper-shadow paper-shadow-right`},null,-1)])),r(`div`,E,[u[5]||=d(` Смотрите также: `,-1),e(i(c),{to:`/user-agreement`,class:`docs-link`},{default:l(()=>[...u[2]||=[d(`Пользовательское соглашение`,-1)]]),_:1}),u[6]||=d(` · `,-1),e(i(c),{to:`/privacy-policy`,class:`docs-link`},{default:l(()=>[...u[3]||=[d(`Политика конфиденциальности`,-1)]]),_:1}),u[7]||=d(` · `,-1),e(i(c),{to:`/consent`,class:`docs-link`},{default:l(()=>[...u[4]||=[d(`Согласие на обработку персональных данных`,-1)]]),_:1})])]),e(_)]))}}),[[`__scopeId`,`data-v-e5a76370`]]);export{D as t};
-1
View File
@@ -1 +0,0 @@
import{At as e,Cn as t,Ct as n,Gt as r,Jt as i,Ot as a,St as o,Tt as s,Vn as c,a as l,kt as u,sn as d,vn as f}from"./client-DrrW410h.js";import{t as p}from"./_plugin-vue_export-helper-2ZWAS1ss.js";import{t as m}from"./Alert-CKEVYkKu.js";import{t as h}from"./Spin-v_Oo9RkU.js";import{i as g}from"./index-CvfVA1ID.js";import{t as _}from"./SiteFooter-BjbzmgYc.js";import{t as v}from"./HeaderText-BIRJQexj.js";var y={class:`center-block-custom`},b={class:`width700 doc-page`},x={class:`doc-title`},S={key:0,class:`doc-loading`},C={key:2,class:`paper-block`},w={class:`paper`},T={class:`doc-text`},E={class:`docs-links`},D=p(e({__name:`DocsPage`,props:{kind:{}},setup(e){let p=e,D={terms:`Пользовательское соглашение`,privacy:`Политика конфиденциальности`,consent:`Согласие на обработку персональных данных`},O=f(``),k=f(!0),A=f(``);return r(async()=>{let e=g(),t={terms:()=>e.GetTerms({}),privacy:()=>e.GetPrivacy({}),consent:()=>e.GetConsent({})};try{let e=await t[p.kind]();O.value=e.text||``}catch(e){A.value=e instanceof Error?e.message:`Не удалось загрузить документ`}finally{k.value=!1}}),(e,r)=>(i(),s(`div`,y,[o(`div`,b,[o(`h1`,x,[u(v,null,{default:d(()=>[a(c(D[p.kind]),1)]),_:1})]),k.value?(i(),s(`div`,S,[u(t(h),{size:`large`})])):A.value?(i(),n(t(m),{key:1,type:`error`,"show-icon":!1,class:`doc-error`},{default:d(()=>[a(c(A.value),1)]),_:1})):(i(),s(`div`,C,[o(`div`,w,[o(`p`,T,c(O.value),1)]),r[0]||=o(`div`,{class:`paper-shadow paper-shadow-left`},null,-1),r[1]||=o(`div`,{class:`paper-shadow paper-shadow-right`},null,-1)])),o(`div`,E,[r[5]||=a(` Смотрите также: `,-1),u(t(l),{to:`/user-agreement`,class:`docs-link`},{default:d(()=>[...r[2]||=[a(`Пользовательское соглашение`,-1)]]),_:1}),r[6]||=a(` · `,-1),u(t(l),{to:`/privacy-policy`,class:`docs-link`},{default:d(()=>[...r[3]||=[a(`Политика конфиденциальности`,-1)]]),_:1}),r[7]||=a(` · `,-1),u(t(l),{to:`/consent`,class:`docs-link`},{default:d(()=>[...r[4]||=[a(`Согласие на обработку персональных данных`,-1)]]),_:1})])]),u(_)]))}}),[[`__scopeId`,`data-v-e5a76370`]]);export{D as t};
+1
View File
@@ -0,0 +1 @@
import{Pt as e,W as t,_ as n,ct as r,jt as i,m as a,xt as o}from"./client-Be0b5AZU.js";import{a as s,o as c}from"./ui-DePKLhY8.js";import{t as l}from"./flatten-CetjII2I.js";import{t as u}from"./get-slot-6kXJmSMP.js";import{_ as d}from"./index-DpxjEbFc.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:n(`Flex`,l,i),mergedClsPrefix:i,margin:o(()=>{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:{[r(`gap`,t)]:n}}=u.value,{row:i,col:a}=c(n);return{horizontal:s(a),vertical:s(i)}})}},render(){let{vertical:t,reverse:n,align:r,inline:i,justify:a,margin:o,wrap:s,mergedClsPrefix:c,rtlEnabled:d}=this,f=l(u(this),!1);return f.length?e(`div`,{role:`none`,class:[`${c}-flex`,d&&`${c}-flex--rtl`],style:{display:i?`inline-flex`:`flex`,flexDirection:t&&!n?`column`:t&&n?`column-reverse`:!t&&n?`row-reverse`:`row`,justifyContent:a,flexWrap:!s||t?`nowrap`:`wrap`,alignItems:r,gap:`${o.vertical}px ${o.horizontal}px`}},f):null}});export{m as t};
-1
View File
@@ -1 +0,0 @@
import{At as e,Nt as t,W as n,_ as r,ct as i,m as a,xt as o}from"./client-DrrW410h.js";import{a as s,o as c}from"./ui-BXphkCO3.js";import{t as l}from"./flatten-C6dhMlvE.js";import{t as u}from"./get-slot-6kXJmSMP.js";import{_ as d}from"./index-CvfVA1ID.js";function f(){return d}var p={name:`Flex`,self:f},m=e({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:t,mergedRtlRef:l}=n(e),u=a(`Flex`,`-flex`,void 0,p,e,t);return{rtlEnabled:r(`Flex`,l,t),mergedClsPrefix:t,margin:o(()=>{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
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
@@ -0,0 +1 @@
import{At as e,Ct as t,St as n,Tn as r,Tt as i,Un as a,Vn as o,Yt as s,an as c,cn as l,d as u,jt as d,kt as f,wt as p,xt as m,yn as h}from"./client-Be0b5AZU.js";import{i as g,n as _,r as v,t as y}from"./ui-DePKLhY8.js";import{t as b}from"./_plugin-vue_export-helper-C_Iw6R3j.js";import{ct as x,o as S}from"./index-DpxjEbFc.js";var C={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},w=d({name:`MenuOutlined`,render:function(e,t){return s(),i(`svg`,C,t[0]||=[n(`path`,{d:`M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z`,fill:`currentColor`},null,-1)])}}),T={class:`menu-block`},E=[`aria-expanded`,`aria-label`],D={class:`right-group`},O=b(d({__name:`HeaderMenu`,props:{active:{}},setup(d){let b=d,C=S(),O=u(),k=y(),A=v(),{permissions:j,environment:M,isLoadingEnvironment:N}=x(k),P=m(()=>N.value?`Среда: …`:M.value===`prod`?`Сервер`:M.value===`venue`?`Локальная сеть`:`Среда: ?`);c(()=>C.user,async()=>{try{await k.load()}catch(e){A.error(`Не удалось загрузить сведения сервера`),console.error(`Failed to load server information:`,e)}},{immediate:!0});function F(e){return j.value.includes(e)}let I=()=>{O.push(`/login`)},L=()=>{C.logout(),O.push(`/login`)},R=h(!1);return(c,u)=>(s(),i(`div`,T,[n(`button`,{type:`button`,class:`burger-button`,"aria-expanded":R.value,"aria-label":R.value?`Закрыть меню`:`Открыть меню`,onClick:u[0]||=e=>R.value=!R.value},[e(r(_),{class:`burger-icon`,size:`28`},{default:l(()=>[e(r(w))]),_:1})],8,E),n(`div`,{class:o([`left-group menu-buttons-block`,R.value?``:`menu-buttons-block-active`])},[n(`button`,{type:`button`,class:o([`menu-item-block`,{active:b.active==`main`}]),onClick:u[1]||=e=>r(O).push(`/`)},` Главная `,2),r(C).hasRole(`user`)?(s(),i(`button`,{key:0,type:`button`,class:o([`menu-item-block`,{active:b.active==`office`}]),onClick:u[2]||=e=>r(O).push(`/office`)},` Кабинет `,2)):p(``,!0),F(`games_page`)?(s(),i(`button`,{key:1,type:`button`,class:o([`menu-item-block`,{active:b.active==`games`}]),onClick:u[3]||=e=>r(O).push(`/games`)},` Игры `,2)):p(``,!0),r(C).isAuthenticated?(s(),i(`button`,{key:2,type:`button`,class:`menu-item-block`,onClick:u[4]||=e=>r(O).push(`/screen`)},` Экран `)):p(``,!0),r(C).hasAnyRole([`author`,`organizer`])?(s(),i(`button`,{key:3,type:`button`,class:o([`menu-item-block`,{active:b.active==`playlists`}]),onClick:u[5]||=e=>r(O).push(`/playlists`)},` Плейлисты `,2)):p(``,!0),n(`button`,{type:`button`,class:o([`menu-item-block`,{active:b.active==`catalog`}]),onClick:u[6]||=e=>r(O).push(`/catalog`)},` Каталог `,2),F(`scenarios_page`)?(s(),i(`button`,{key:4,type:`button`,class:o([`menu-item-block`,{active:b.active==`scenarios`}]),onClick:u[7]||=e=>r(O).push(`/scenarios`)},` Сценарии `,2)):p(``,!0),F(`tasks_page`)?(s(),i(`button`,{key:5,type:`button`,class:o([`menu-item-block`,{active:b.active==`tasks`}]),onClick:u[8]||=e=>r(O).push(`/tasks`)},` Задачи `,2)):p(``,!0),F(`users_page`)?(s(),i(`button`,{key:6,type:`button`,class:o([`menu-item-block`,{active:b.active==`users`}]),onClick:u[9]||=e=>r(O).push(`/users`)},` Пользователи `,2)):p(``,!0),F(`reviews_page`)?(s(),i(`button`,{key:7,type:`button`,class:o([`menu-item-block`,{active:b.active==`reviews`}]),onClick:u[10]||=e=>r(O).push(`/reviews`)},` Отзывы `,2)):p(``,!0)],2),n(`div`,D,[r(C).isAuthenticated?(s(),t(r(g),{key:0,size:`small`,type:r(M)===`venue`?`warning`:`default`,title:r(M)?`Среда подключённого сервера`:`Среда сервера не определена`,role:`status`},{default:l(()=>[f(a(P.value),1)]),_:1},8,[`type`,`title`])):p(``,!0),r(C).isAuthenticated?p(``,!0):(s(),i(`button`,{key:1,type:`button`,class:`menu-item-block right`,onClick:I},` Войти `)),r(C).isAuthenticated?(s(),i(`button`,{key:2,type:`button`,class:`menu-item-block right`,onClick:L},` Выйти `)):p(``,!0)])]))}}),[[`__scopeId`,`data-v-e44a1008`]]);export{O as t};
-1
View File
@@ -1 +0,0 @@
import{At as e,Cn as t,Ct as n,Jt as r,Ot as i,St as a,Tt as o,Vn as s,d as c,in as l,kt as u,sn as d,vn as f,wt as p,xt as m,zn as h}from"./client-DrrW410h.js";import{i as g,n as _,r as v,t as y}from"./ui-BXphkCO3.js";import{t as b}from"./_plugin-vue_export-helper-2ZWAS1ss.js";import{ct as x,o as S}from"./index-CvfVA1ID.js";var C={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},w=e({name:`MenuOutlined`,render:function(e,t){return r(),o(`svg`,C,t[0]||=[a(`path`,{d:`M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z`,fill:`currentColor`},null,-1)])}}),T={class:`menu-block`},E=[`aria-expanded`,`aria-label`],D={class:`right-group`},O=b(e({__name:`HeaderMenu`,props:{active:{}},setup(e){let b=e,C=S(),O=c(),k=y(),A=v(),{permissions:j,environment:M,isLoadingEnvironment:N}=x(k),P=m(()=>N.value?`Среда: …`:M.value===`prod`?`Сервер`:M.value===`venue`?`Локальная сеть`:`Среда: ?`);l(()=>C.user,async()=>{try{await k.load()}catch(e){A.error(`Не удалось загрузить сведения сервера`),console.error(`Failed to load server information:`,e)}},{immediate:!0});function F(e){return j.value.includes(e)}let I=()=>{O.push(`/login`)},L=()=>{C.logout(),O.push(`/login`)},R=f(!1);return(e,c)=>(r(),o(`div`,T,[a(`button`,{type:`button`,class:`burger-button`,"aria-expanded":R.value,"aria-label":R.value?`Закрыть меню`:`Открыть меню`,onClick:c[0]||=e=>R.value=!R.value},[u(t(_),{class:`burger-icon`,size:`28`},{default:d(()=>[u(t(w))]),_:1})],8,E),a(`div`,{class:h([`left-group menu-buttons-block`,R.value?``:`menu-buttons-block-active`])},[a(`button`,{type:`button`,class:h([`menu-item-block`,{active:b.active==`main`}]),onClick:c[1]||=e=>t(O).push(`/`)},` Главная `,2),t(C).hasRole(`user`)?(r(),o(`button`,{key:0,type:`button`,class:h([`menu-item-block`,{active:b.active==`office`}]),onClick:c[2]||=e=>t(O).push(`/office`)},` Кабинет `,2)):p(``,!0),F(`games_page`)?(r(),o(`button`,{key:1,type:`button`,class:h([`menu-item-block`,{active:b.active==`games`}]),onClick:c[3]||=e=>t(O).push(`/games`)},` Игры `,2)):p(``,!0),t(C).isAuthenticated?(r(),o(`button`,{key:2,type:`button`,class:`menu-item-block`,onClick:c[4]||=e=>t(O).push(`/screen`)},` Экран `)):p(``,!0),t(C).hasAnyRole([`author`,`organizer`])?(r(),o(`button`,{key:3,type:`button`,class:h([`menu-item-block`,{active:b.active==`playlists`}]),onClick:c[5]||=e=>t(O).push(`/playlists`)},` Плейлисты `,2)):p(``,!0),a(`button`,{type:`button`,class:h([`menu-item-block`,{active:b.active==`catalog`}]),onClick:c[6]||=e=>t(O).push(`/catalog`)},` Каталог `,2),F(`scenarios_page`)?(r(),o(`button`,{key:4,type:`button`,class:h([`menu-item-block`,{active:b.active==`scenarios`}]),onClick:c[7]||=e=>t(O).push(`/scenarios`)},` Сценарии `,2)):p(``,!0),F(`tasks_page`)?(r(),o(`button`,{key:5,type:`button`,class:h([`menu-item-block`,{active:b.active==`tasks`}]),onClick:c[8]||=e=>t(O).push(`/tasks`)},` Задачи `,2)):p(``,!0),F(`users_page`)?(r(),o(`button`,{key:6,type:`button`,class:h([`menu-item-block`,{active:b.active==`users`}]),onClick:c[9]||=e=>t(O).push(`/users`)},` Пользователи `,2)):p(``,!0),F(`reviews_page`)?(r(),o(`button`,{key:7,type:`button`,class:h([`menu-item-block`,{active:b.active==`reviews`}]),onClick:c[10]||=e=>t(O).push(`/reviews`)},` Отзывы `,2)):p(``,!0)],2),a(`div`,D,[t(C).isAuthenticated?(r(),n(t(g),{key:0,size:`small`,type:t(M)===`venue`?`warning`:`default`,title:t(M)?`Среда подключённого сервера`:`Среда сервера не определена`,role:`status`},{default:d(()=>[i(s(P.value),1)]),_:1},8,[`type`,`title`])):p(``,!0),t(C).isAuthenticated?p(``,!0):(r(),o(`button`,{key:1,type:`button`,class:`menu-item-block right`,onClick:I},` Войти `)),t(C).isAuthenticated?(r(),o(`button`,{key:2,type:`button`,class:`menu-item-block right`,onClick:L},` Выйти `)):p(``,!0)])]))}}),[[`__scopeId`,`data-v-e44a1008`]]);export{O as t};
-1
View File
@@ -1 +0,0 @@
import{At as e,Jt as t,Tt as n,Zt as r}from"./client-DrrW410h.js";import{t as i}from"./_plugin-vue_export-helper-2ZWAS1ss.js";var a={class:`text-with-font`},o=i(e({__name:`HeaderText`,setup(e){return(e,i)=>(t(),n(`span`,a,[r(e.$slots,`default`,{},void 0,!0)]))}}),[[`__scopeId`,`data-v-689794e0`]]);export{o as t};
+1
View File
@@ -0,0 +1 @@
import{Qt as e,Tt as t,Yt as n,jt as r}from"./client-Be0b5AZU.js";import{t as i}from"./_plugin-vue_export-helper-C_Iw6R3j.js";var a={class:`text-with-font`},o=i(r({__name:`HeaderText`,setup(r){return(r,i)=>(n(),t(`span`,a,[e(r.$slots,`default`,{},void 0,!0)]))}}),[[`__scopeId`,`data-v-689794e0`]]);export{o 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 @@
import{At as e,Jt as t,St as n,Tt as r,Zt as i}from"./client-DrrW410h.js";import{t as a}from"./_plugin-vue_export-helper-2ZWAS1ss.js";var o={class:`main`},s={class:`message-cloud`},c=a(e({__name:`MessagePaper`,setup(e){return(e,a)=>(t(),r(`div`,o,[a[0]||=n(`div`,{class:`message-cloud-3`},null,-1),a[1]||=n(`div`,{class:`message-cloud-2`},null,-1),n(`div`,s,[i(e.$slots,`default`,{},void 0,!0)])]))}}),[[`__scopeId`,`data-v-0b1b8d3f`]]);export{c as t};
+1
View File
@@ -0,0 +1 @@
import{Qt as e,St as t,Tt as n,Yt as r,jt as i}from"./client-Be0b5AZU.js";import{t as a}from"./_plugin-vue_export-helper-C_Iw6R3j.js";var o={class:`main`},s={class:`message-cloud`},c=a(i({__name:`MessagePaper`,setup(i){return(i,a)=>(r(),n(`div`,o,[a[0]||=t(`div`,{class:`message-cloud-3`},null,-1),a[1]||=t(`div`,{class:`message-cloud-2`},null,-1),t(`div`,s,[e(i.$slots,`default`,{},void 0,!0)])]))}}),[[`__scopeId`,`data-v-0b1b8d3f`]]);export{c 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
View File
@@ -1 +0,0 @@
import{At as e,Cn as t,Ct as n,Gt as r,Jt as i,Ot as a,St as o,Tt as s,Vn as c,gt as l,kt as u,sn as d,t as f,u as p,vn as m,wt as h}from"./client-DrrW410h.js";import{t as g}from"./Button-VP0HlDWp.js";import{t as _}from"./Card-DpsyX5Gm.js";import{t as v}from"./Space-J-gv2y5L.js";import{o as y}from"./index-CvfVA1ID.js";import{t as b}from"./HeaderMenu-DjAjwijB.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=e({__name:`ParticipationPage`,setup(e){let O=p(),k=new URLSearchParams(O.hash.slice(1)),A=k.get(`token`)||``,j=m(k.get(`answer`)===`cancelled`?`cancelled`:`confirmed`),M=f(),N=y(),P=m(),F=m(!1),I=m(``);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 r(L),(e,r)=>(i(),s(l,null,[t(N).isAuthenticated?(i(),n(b,{key:0})):h(``,!0),o(`div`,S,[o(`div`,C,[u(t(_),{title:`Участие в игре`},{default:d(()=>[I.value?(i(),s(`p`,w,c(I.value),1)):h(``,!0),P.value?(i(),s(l,{key:1},[o(`h2`,null,c(P.value.gameName),1),o(`p`,null,`Команда: `+c(P.value.teamName),1),o(`p`,null,`Начало: `+c(t(x)(P.value.startAt)),1),o(`p`,null,`Участников: `+c(P.value.participantsCount),1),P.value.status===`confirmed`?(i(),s(`p`,T,` Участие подтверждено. Ждём вас на игре! Решение окончательное. `)):P.value.status===`cancelled`?(i(),s(`p`,E,` Запись отменена. Решение окончательное. `)):P.value.closed?(i(),s(`p`,D,` Приём ответов закрыт. Ваша запись сохранена со статусом «Ожидает ответа». `)):(i(),s(l,{key:3},[r[4]||=o(`p`,null,[o(`strong`,null,`Решение окончательное: изменить его нельзя.`)],-1),r[5]||=o(`p`,null,`Без ответа запись сохраняется со статусом «Ожидает ответа».`,-1),u(t(v),{vertical:``},{default:d(()=>[u(t(v),null,{default:d(()=>[u(t(g),{disabled:F.value,type:j.value===`confirmed`?`primary`:`default`,"aria-pressed":j.value===`confirmed`,onClick:r[0]||=e=>j.value=`confirmed`},{default:d(()=>[...r[2]||=[a(`Мы участвуем`,-1)]]),_:1},8,[`disabled`,`type`,`aria-pressed`]),u(t(g),{disabled:F.value,type:j.value===`cancelled`?`error`:`default`,"aria-pressed":j.value===`cancelled`,onClick:r[1]||=e=>j.value=`cancelled`},{default:d(()=>[...r[3]||=[a(`Мы не участвуем`,-1)]]),_:1},8,[`disabled`,`type`,`aria-pressed`])]),_:1}),u(t(g),{loading:F.value,disabled:F.value,type:j.value===`cancelled`?`error`:`primary`,onClick:R},{default:d(()=>[a(c(j.value===`confirmed`?`Подтверждаю участие`:`Подтверждаю отмену`),1)]),_:1},8,[`loading`,`disabled`,`type`])]),_:1})],64))],64)):(i(),n(t(g),{key:2,loading:F.value,onClick:L},{default:d(()=>[a(c(F.value?`Загрузка`:`Повторить`),1)]),_:1},8,[`loading`]))]),_:1})])])],64))}}),k=e({__name:`ParticipationView`,setup(e){return(e,t)=>(i(),n(O))}});export{k as default};
+1
View File
@@ -0,0 +1 @@
import{At as e,Ct as t,Kt as n,St as r,Tn as i,Tt as a,Un as o,Yt as s,cn as c,gt as l,jt as u,kt as d,t as f,u as p,wt as m,yn as h}from"./client-Be0b5AZU.js";import{t as g}from"./Button-B0cBJTB7.js";import{t as _}from"./Card-2FpXQWHo.js";import{t as v}from"./Space-DM1L-JDA.js";import{o as y}from"./index-DpxjEbFc.js";import{t as b}from"./HeaderMenu-BhUQ_vLn.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=p(),k=new URLSearchParams(O.hash.slice(1)),A=k.get(`token`)||``,j=h(k.get(`answer`)===`cancelled`?`cancelled`:`confirmed`),M=f(),N=y(),P=h(),F=h(!1),I=h(``);async function L(){F.value=!0,I.value=``;try{let e=await M.GetParticipation({token:A});P.value=e}catch{I.value=`Не удалось загрузить данные. Попробуйте ещё раз.`}finally{F.value=!1}}async function R(){if(!F.value){F.value=!0,I.value=``;try{let e=await M.AnswerParticipation({token:A,answer:j.value});P.value=e}catch{I.value=`Не удалось сохранить ответ. Попробуйте ещё раз.`}finally{F.value=!1}}}return n(L),(n,u)=>(s(),a(l,null,[i(N).isAuthenticated?(s(),t(b,{key:0})):m(``,!0),r(`div`,S,[r(`div`,C,[e(i(_),{title:`Участие в игре`},{default:c(()=>[I.value?(s(),a(`p`,w,o(I.value),1)):m(``,!0),P.value?(s(),a(l,{key:1},[r(`h2`,null,o(P.value.gameName),1),r(`p`,null,`Команда: `+o(P.value.teamName),1),r(`p`,null,`Начало: `+o(i(x)(P.value.startAt)),1),r(`p`,null,`Участников: `+o(P.value.participantsCount),1),P.value.status===`confirmed`?(s(),a(`p`,T,` Участие подтверждено. Ждём вас на игре! Решение окончательное. `)):P.value.status===`cancelled`?(s(),a(`p`,E,` Запись отменена. Решение окончательное. `)):P.value.closed?(s(),a(`p`,D,` Приём ответов закрыт. Ваша запись сохранена со статусом «Ожидает ответа». `)):(s(),a(l,{key:3},[u[4]||=r(`p`,null,[r(`strong`,null,`Решение окончательное: изменить его нельзя.`)],-1),u[5]||=r(`p`,null,`Без ответа запись сохраняется со статусом «Ожидает ответа».`,-1),e(i(v),{vertical:``},{default:c(()=>[e(i(v),null,{default:c(()=>[e(i(g),{disabled:F.value,type:j.value===`confirmed`?`primary`:`default`,"aria-pressed":j.value===`confirmed`,onClick:u[0]||=e=>j.value=`confirmed`},{default:c(()=>[...u[2]||=[d(`Мы участвуем`,-1)]]),_:1},8,[`disabled`,`type`,`aria-pressed`]),e(i(g),{disabled:F.value,type:j.value===`cancelled`?`error`:`default`,"aria-pressed":j.value===`cancelled`,onClick:u[1]||=e=>j.value=`cancelled`},{default:c(()=>[...u[3]||=[d(`Мы не участвуем`,-1)]]),_:1},8,[`disabled`,`type`,`aria-pressed`])]),_:1}),e(i(g),{loading:F.value,disabled:F.value,type:j.value===`cancelled`?`error`:`primary`,onClick:R},{default:c(()=>[d(o(j.value===`confirmed`?`Подтверждаю участие`:`Подтверждаю отмену`),1)]),_:1},8,[`loading`,`disabled`,`type`])]),_:1})],64))],64)):(s(),t(i(g),{key:2,loading:F.value,onClick:L},{default:c(()=>[d(o(F.value?`Загрузка`:`Повторить`),1)]),_:1},8,[`loading`]))]),_:1})])])],64))}}),k=u({__name:`ParticipationView`,setup(e){return(e,n)=>(s(),t(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
View File
@@ -1 +0,0 @@
import{At as e,Cn as t,Ct as n,Jt as r,Ot as i,St as a,Tt as o,Vn as s,gt as c,in as l,kt as u,sn as d,vn as f,wt as p,xt as m}from"./client-DrrW410h.js";import{t as h}from"./Button-VP0HlDWp.js";import{t as g}from"./_plugin-vue_export-helper-2ZWAS1ss.js";import{t as _}from"./ruRU-GUVPj0Y9.js";import{t as v}from"./Alert-CKEVYkKu.js";import{n as y,t as b}from"./usePlaylistActions-BX_JK6Ey.js";import{t as x}from"./Spin-v_Oo9RkU.js";import{D as S,i as C,o as w}from"./index-CvfVA1ID.js";import{t as T}from"./HeaderMenu-DjAjwijB.js";var E={class:`center-block-custom`},D={class:`width1200 playlists-page`},O=g(e({__name:`PlaylistsPage`,setup(e){let g=w(),O=C(),k=m(()=>g.hasAnyRole([`author`,`organizer`])),A=f([]),j=f(!1),M=f(!1),N=f(!1),P=f(``),F=0;async function I(){if(!k.value)return;let e=++F;j.value=!0,P.value=``;try{let t=await O.GetPlaylists({});if(e!==F)return;A.value=t.playlists??[],N.value=!0}catch(t){e===F&&(P.value=t instanceof Error?t.message:`Не удалось загрузить плейлисты`)}finally{e===F&&(j.value=!1)}}let{saveGroup:L,deleteGroup:R,reorderGroups:z,setTrackGroup:B,createPlaylist:V,renamePlaylist:H,reorderTracks:U,deletePlaylist:W,uploadTrack:G,deleteTrack:K}=b(M,I);return l(()=>g.user,()=>{F+=1,A.value=[],N.value=!1,j.value=!1,P.value=``,I()},{immediate:!0}),(e,l)=>(r(),o(c,null,[u(T,{active:`playlists`}),a(`div`,E,[u(t(S),{locale:t(_)},{default:d(()=>[a(`main`,D,[l[3]||=a(`h1`,null,`Плейлисты`,-1),t(g).isAuthenticated?!t(g).user&&!t(g).error?(r(),n(t(x),{key:1})):k.value?(r(),o(c,{key:3},[P.value?(r(),n(t(v),{key:0,type:`error`},{default:d(()=>[i(s(P.value)+` `,1),u(t(h),{disabled:M.value||j.value,onClick:I},{default:d(()=>[...l[2]||=[i(`Повторить загрузку`,-1)]]),_:1},8,[`disabled`])]),_:1})):p(``,!0),j.value&&!N.value?(r(),n(t(x),{key:1})):p(``,!0),N.value?(r(),n(y,{key:2,playlists:A.value,"is-busy":M.value||j.value,onSaveGroup:t(L),onDeleteGroup:t(R),onReorderGroups:t(z),onSetTrackGroup:t(B),onCreatePlaylist:t(V),onRenamePlaylist:t(H),onReorderTracks:t(U),onDeletePlaylist:t(W),onUploadTrack:t(G),onDeleteTrack:t(K)},null,8,[`playlists`,`is-busy`,`onSaveGroup`,`onDeleteGroup`,`onReorderGroups`,`onSetTrackGroup`,`onCreatePlaylist`,`onRenamePlaylist`,`onReorderTracks`,`onDeletePlaylist`,`onUploadTrack`,`onDeleteTrack`])):p(``,!0)],64)):(r(),n(t(v),{key:2,type:`warning`},{default:d(()=>[...l[1]||=[i(`Нет доступа к плейлистам. Нужна роль автора или организатора.`,-1)]]),_:1})):(r(),n(t(v),{key:0,type:`warning`},{default:d(()=>[...l[0]||=[i(`Войдите как автор или организатор для работы с плейлистами.`,-1)]]),_:1}))])]),_:1},8,[`locale`])])],64))}}),[[`__scopeId`,`data-v-c0ac573f`]]),k=e({__name:`PlaylistsView`,setup(e){return(e,t)=>(r(),n(O))}});export{k as default};
+1
View File
@@ -0,0 +1 @@
import{At as e,Ct as t,St as n,Tn as r,Tt as i,Un as a,Yt as o,an as s,cn as c,gt as l,jt as u,kt as d,wt as f,xt as p,yn as m}from"./client-Be0b5AZU.js";import{t as h}from"./Button-B0cBJTB7.js";import{t as g}from"./_plugin-vue_export-helper-C_Iw6R3j.js";import{t as _}from"./ruRU-GUVPj0Y9.js";import{t as v}from"./Alert-CNQloVdC.js";import{n as y,t as b}from"./usePlaylistActions-Cw7mnGf8.js";import{t as x}from"./Spin-D4c-N3AC.js";import{D as S,i as C,o as w}from"./index-DpxjEbFc.js";import{t as T}from"./HeaderMenu-BhUQ_vLn.js";var E={class:`center-block-custom`},D={class:`width1200 playlists-page`},O=g(u({__name:`PlaylistsPage`,setup(u){let g=w(),O=C(),k=p(()=>g.hasAnyRole([`author`,`organizer`])),A=m([]),j=m(!1),M=m(!1),N=m(!1),P=m(``),F=0;async function I(){if(!k.value)return;let e=++F;j.value=!0,P.value=``;try{let t=await O.GetPlaylists({});if(e!==F)return;A.value=t.playlists??[],N.value=!0}catch(t){e===F&&(P.value=t instanceof Error?t.message:`Не удалось загрузить плейлисты`)}finally{e===F&&(j.value=!1)}}let{saveGroup:L,deleteGroup:R,reorderGroups:z,setTrackGroup:B,createPlaylist:V,renamePlaylist:H,reorderTracks:U,deletePlaylist:W,uploadTrack:G,deleteTrack:K}=b(M,I);return s(()=>g.user,()=>{F+=1,A.value=[],N.value=!1,j.value=!1,P.value=``,I()},{immediate:!0}),(s,u)=>(o(),i(l,null,[e(T,{active:`playlists`}),n(`div`,E,[e(r(S),{locale:r(_)},{default:c(()=>[n(`main`,D,[u[3]||=n(`h1`,null,`Плейлисты`,-1),r(g).isAuthenticated?!r(g).user&&!r(g).error?(o(),t(r(x),{key:1})):k.value?(o(),i(l,{key:3},[P.value?(o(),t(r(v),{key:0,type:`error`},{default:c(()=>[d(a(P.value)+` `,1),e(r(h),{disabled:M.value||j.value,onClick:I},{default:c(()=>[...u[2]||=[d(`Повторить загрузку`,-1)]]),_:1},8,[`disabled`])]),_:1})):f(``,!0),j.value&&!N.value?(o(),t(r(x),{key:1})):f(``,!0),N.value?(o(),t(y,{key:2,playlists:A.value,"is-busy":M.value||j.value,onSaveGroup:r(L),onDeleteGroup:r(R),onReorderGroups:r(z),onSetTrackGroup:r(B),onCreatePlaylist:r(V),onRenamePlaylist:r(H),onReorderTracks:r(U),onDeletePlaylist:r(W),onUploadTrack:r(G),onDeleteTrack:r(K)},null,8,[`playlists`,`is-busy`,`onSaveGroup`,`onDeleteGroup`,`onReorderGroups`,`onSetTrackGroup`,`onCreatePlaylist`,`onRenamePlaylist`,`onReorderTracks`,`onDeletePlaylist`,`onUploadTrack`,`onDeleteTrack`])):f(``,!0)],64)):(o(),t(r(v),{key:2,type:`warning`},{default:c(()=>[...u[1]||=[d(`Нет доступа к плейлистам. Нужна роль автора или организатора.`,-1)]]),_:1})):(o(),t(r(v),{key:0,type:`warning`},{default:c(()=>[...u[0]||=[d(`Войдите как автор или организатор для работы с плейлистами.`,-1)]]),_:1}))])]),_:1},8,[`locale`])])],64))}}),[[`__scopeId`,`data-v-c0ac573f`]]),k=u({__name:`PlaylistsView`,setup(e){return(e,n)=>(o(),t(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
View File
@@ -0,0 +1 @@
import{At as e,Tt as t,Yt as n,gt as r,jt as i}from"./client-Be0b5AZU.js";import{t as a}from"./HeaderMenu-BhUQ_vLn.js";import{t as o}from"./DocsPage-BpYUTY7w.js";var s=i({__name:`PrivacyPolicyView`,setup(i){return(i,s)=>(n(),t(r,null,[e(o,{kind:`privacy`}),e(a)],64))}});export{s as default};
-1
View File
@@ -1 +0,0 @@
import{At as e,Jt as t,Tt as n,gt as r,kt as i}from"./client-DrrW410h.js";import{t as a}from"./HeaderMenu-DjAjwijB.js";import{t as o}from"./DocsPage-ZV8KFkx6.js";var s=e({__name:`PrivacyPolicyView`,setup(e){return(e,s)=>(t(),n(r,null,[i(o,{kind:`privacy`}),i(a)],64))}});export{s as default};
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
import{At as e,Nt as t,U as n,W as r,Xt as i,at as a,ct as o,f as s,m as c,nt as l,ot as u,rt as d,st as f,vn as p,xn as m,xt as h}from"./client-DrrW410h.js";import{t as g}from"./use-merged-state-CIQwNmUb.js";import{c as _,l as v}from"./_plugin-vue_export-helper-2ZWAS1ss.js";import{n as y}from"./use-form-item-CNQ45NOh.js";import{Q as b}from"./index-CvfVA1ID.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=()=>t(`svg`,{viewBox:`0 0 512 512`},t(`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`},[l(`&:hover`,[a(`item`,` import{Cn as e,Pt as t,U as n,W as r,Zt as i,at as a,ct as o,f as s,jt as c,m as l,nt as u,ot as d,rt as f,st as p,xt as m,yn as h}from"./client-Be0b5AZU.js";import{t as g}from"./use-merged-state-DltLwRXB.js";import{c as _,l as v}from"./_plugin-vue_export-helper-C_Iw6R3j.js";import{n as y}from"./use-form-item-DRm_M51j.js";import{Q as b}from"./index-DpxjEbFc.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=()=>t(`svg`,{viewBox:`0 0 512 512`},t(`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=f(`rate`,{display:`inline-flex`,flexWrap:`nowrap`},[u(`&:hover`,[a(`item`,`
transition: transition:
transform .1s var(--n-bezier), transform .1s var(--n-bezier),
color .3s var(--n-bezier); color .3s var(--n-bezier);
@@ -11,15 +11,15 @@ import{At as e,Nt as t,U as n,W as r,Xt as i,at as a,ct as o,f as s,m as c,nt as
transform: scale(1); transform: scale(1);
font-size: var(--n-item-size); font-size: var(--n-item-size);
color: var(--n-item-color); color: var(--n-item-color);
`,[l(`&:not(:first-child)`,` `,[u(`&:not(:first-child)`,`
margin-left: 6px; margin-left: 6px;
`),u(`active`,` `),d(`active`,`
color: var(--n-item-color-active); color: var(--n-item-color-active);
`)]),f(`readonly`,` `)]),p(`readonly`,`
cursor: pointer; cursor: pointer;
`,[a(`item`,[l(`&:hover`,` `,[a(`item`,[u(`&:hover`,`
transform: scale(1.05); transform: scale(1.05);
`),l(`&:active`,` `),u(`&:active`,`
transform: scale(0.96); transform: scale(0.96);
`)])]),a(`half`,` `)])]),a(`half`,`
display: flex; display: flex;
@@ -31,6 +31,6 @@ import{At as e,Nt as t,U as n,W as r,Xt as i,at as a,ct as o,f as s,m as c,nt as
width: 50%; width: 50%;
overflow: hidden; overflow: hidden;
color: rgba(255, 255, 255, 0); color: rgba(255, 255, 255, 0);
`,[u(`active`,` `,[d(`active`,`
color: var(--n-item-color-active); color: var(--n-item-color-active);
`)])]),T=e({name:`Rate`,props:Object.assign(Object.assign({},c.props),{allowHalf:Boolean,count:{type:Number,default:5},value:Number,defaultValue:{type:Number,default:null},readonly:Boolean,size:[String,Number],clearable:Boolean,color:String,onClear:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),setup(e){let{mergedClsPrefixRef:t,inlineThemeDisabled:i,mergedComponentPropsRef:a}=r(e),s=c(`Rate`,`-rate`,w,S,e,t),l=m(e,`value`),u=p(e.defaultValue),d=p(null),f=y(e,{mergedSize(t){if(e.size!==void 0)return e.size;if(t)return t.mergedSize.value;let n=a?.value?.Rate?.size;return n===void 0?`medium`:n}}),b=g(l,u);function x(t){let{"onUpdate:value":n,onUpdateValue:r}=e,{nTriggerFormChange:i,nTriggerFormInput:a}=f;n&&_(n,t),r&&_(r,t),u.value=t,i(),a()}function C(t,n){return e.allowHalf?n.offsetX>=Math.floor(n.currentTarget.offsetWidth/2)?t+1:t+.5:t+1}let T=!1;function E(e,t){T||(d.value=C(e,t))}function D(){d.value=null}function O(t,n){var r;let{clearable:i}=e,a=C(t,n);i&&a===b.value?(T=!0,(r=e.onClear)==null||r.call(e),d.value=null,x(null)):x(a)}function k(){T=!1}let{mergedSizeRef:A}=f,j=h(()=>{let e=A.value,{self:t}=s.value;return typeof e==`number`?`${e}px`:t[o(`size`,e)]}),M=h(()=>{let{common:{cubicBezierEaseInOut:t},self:n}=s.value,{itemColor:r,itemColorActive:i}=n,{color:a}=e;return{"--n-bezier":t,"--n-item-color":r,"--n-item-color-active":a||i,"--n-item-size":j.value}}),N=i?n(`rate`,h(()=>{let t=j.value,{color:n}=e,r=``;return t&&(r+=t[0]),n&&(r+=v(n)),r}),M,e):void 0;return{mergedClsPrefix:t,mergedValue:b,hoverIndex:d,handleMouseMove:E,handleClick:O,handleMouseLeave:D,handleMouseEnterSomeStar:k,cssVars:i?void 0:M,themeClass:N?.themeClass,onRender:N?.onRender}},render(){let{readonly:e,hoverIndex:n,mergedValue:r,mergedClsPrefix:a,onRender:o,$slots:{default:s}}=this;return o?.(),t(`div`,{class:[`${a}-rate`,{[`${a}-rate--readonly`]:e},this.themeClass],style:this.cssVars,onMouseleave:this.handleMouseLeave},i(this.count,(i,o)=>{let c=s?s({index:o}):t(b,{clsPrefix:a},{default:C}),l=n===null?o+1<=(r||0):o+1<=n;return t(`div`,{key:o,class:[`${a}-rate__item`,l&&`${a}-rate__item--active`],onClick:e?void 0:e=>{this.handleClick(o,e)},onMouseenter:this.handleMouseEnterSomeStar,onMousemove:e?void 0:e=>{this.handleMouseMove(o,e)}},c,this.allowHalf?t(`div`,{class:[`${a}-rate__half`,{[`${a}-rate__half--active`]:!l&&n!==null?o+.5<=n:o+.5<=(r||0)}]},c):null)}))}});export{T as t}; `)])]),T=c({name:`Rate`,props:Object.assign(Object.assign({},l.props),{allowHalf:Boolean,count:{type:Number,default:5},value:Number,defaultValue:{type:Number,default:null},readonly:Boolean,size:[String,Number],clearable:Boolean,color:String,onClear:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),setup(t){let{mergedClsPrefixRef:i,inlineThemeDisabled:a,mergedComponentPropsRef:s}=r(t),c=l(`Rate`,`-rate`,w,S,t,i),u=e(t,`value`),d=h(t.defaultValue),f=h(null),p=y(t,{mergedSize(e){if(t.size!==void 0)return t.size;if(e)return e.mergedSize.value;let n=s?.value?.Rate?.size;return n===void 0?`medium`:n}}),b=g(u,d);function x(e){let{"onUpdate:value":n,onUpdateValue:r}=t,{nTriggerFormChange:i,nTriggerFormInput:a}=p;n&&_(n,e),r&&_(r,e),d.value=e,i(),a()}function C(e,n){return t.allowHalf?n.offsetX>=Math.floor(n.currentTarget.offsetWidth/2)?e+1:e+.5:e+1}let T=!1;function E(e,t){T||(f.value=C(e,t))}function D(){f.value=null}function O(e,n){var r;let{clearable:i}=t,a=C(e,n);i&&a===b.value?(T=!0,(r=t.onClear)==null||r.call(t),f.value=null,x(null)):x(a)}function k(){T=!1}let{mergedSizeRef:A}=p,j=m(()=>{let e=A.value,{self:t}=c.value;return typeof e==`number`?`${e}px`:t[o(`size`,e)]}),M=m(()=>{let{common:{cubicBezierEaseInOut:e},self:n}=c.value,{itemColor:r,itemColorActive:i}=n,{color:a}=t;return{"--n-bezier":e,"--n-item-color":r,"--n-item-color-active":a||i,"--n-item-size":j.value}}),N=a?n(`rate`,m(()=>{let e=j.value,{color:n}=t,r=``;return e&&(r+=e[0]),n&&(r+=v(n)),r}),M,t):void 0;return{mergedClsPrefix:i,mergedValue:b,hoverIndex:f,handleMouseMove:E,handleClick:O,handleMouseLeave:D,handleMouseEnterSomeStar:k,cssVars:a?void 0:M,themeClass:N?.themeClass,onRender:N?.onRender}},render(){let{readonly:e,hoverIndex:n,mergedValue:r,mergedClsPrefix:a,onRender:o,$slots:{default:s}}=this;return o?.(),t(`div`,{class:[`${a}-rate`,{[`${a}-rate--readonly`]:e},this.themeClass],style:this.cssVars,onMouseleave:this.handleMouseLeave},i(this.count,(i,o)=>{let c=s?s({index:o}):t(b,{clsPrefix:a},{default:C}),l=n===null?o+1<=(r||0):o+1<=n;return t(`div`,{key:o,class:[`${a}-rate__item`,l&&`${a}-rate__item--active`],onClick:e?void 0:e=>{this.handleClick(o,e)},onMouseenter:this.handleMouseEnterSomeStar,onMousemove:e?void 0:e=>{this.handleMouseMove(o,e)}},c,this.allowHalf?t(`div`,{class:[`${a}-rate__half`,{[`${a}-rate__half--active`]:!l&&n!==null?o+.5<=n:o+.5<=(r||0)}]},c):null)}))}});export{T as t};
+7
View File
@@ -0,0 +1,7 @@
import{Pt as e,jt as t}from"./client-Be0b5AZU.js";var n=t({name:`Remove`,render(){return e(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},e(`line`,{x1:`400`,y1:`256`,x2:`112`,y2:`256`,style:`
fill: none;
stroke: currentColor;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 32px;
`}))}});export{n as t};
-7
View File
@@ -1,7 +0,0 @@
import{At as e,Nt as t}from"./client-DrrW410h.js";var n=e({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;
stroke: currentColor;
stroke-linecap: round;
stroke-linejoin: round;
stroke-width: 32px;
`}))}});export{n as t};
-1
View File
@@ -1 +0,0 @@
import{At as e,Cn as t,Ct as n,Jt as r,Ot as i,St as a,Tt as o,Vn as s,Xt as c,gt as l,kt as u,sn as d,vn as f,wt as p}from"./client-DrrW410h.js";import{i as m,r as h}from"./ui-BXphkCO3.js";import{t as g}from"./Button-VP0HlDWp.js";import{t as _}from"./_plugin-vue_export-helper-2ZWAS1ss.js";import{t as v}from"./Card-DpsyX5Gm.js";import{t as y}from"./Flex-C50LOLeC.js";import{t as b}from"./Rate-DzWTiM8f.js";import{i as x}from"./index-CvfVA1ID.js";import{t as S}from"./HeaderMenu-DjAjwijB.js";var C={class:`center-block-custom`},w={class:`width1200`},T={class:`page-header`},E={class:`review-game`},D={class:`review-text`},O=_(e({__name:`ReviewsPage`,setup(e){let _=x(),O=h(),k=f([]);async function A(){try{let e=await _.GetReviewsForModeration({});k.value=e.reviews||[]}catch(e){O.error(e instanceof Error?e.message:`Не удалось загрузить отзывы`)}}async function j(e,t){try{await _.ModerateGameReview({ID:e.ID,status:t}),await A()}catch(e){O.error(e instanceof Error?e.message:`Не удалось изменить отзыв`)}}return A(),(e,f)=>(r(),o(l,null,[a(`div`,C,[a(`div`,w,[a(`div`,T,[f[1]||=a(`h1`,null,`Отзывы`,-1),u(t(g),{onClick:A},{default:d(()=>[...f[0]||=[i(`Обновить`,-1)]]),_:1})]),k.value.length==0?(r(),n(t(v),{key:0},{default:d(()=>[...f[2]||=[i(`Очередь отзывов пуста.`,-1)]]),_:1})):p(``,!0),(r(!0),o(l,null,c(k.value,e=>(r(),n(t(v),{key:e.ID,class:`review-card`},{default:d(()=>[u(t(y),{justify:`space-between`,align:`center`},{default:d(()=>[a(`div`,null,[a(`div`,E,s(e.gameName),1),a(`strong`,null,s(e.teamName),1)]),u(t(m),null,{default:d(()=>[i(s(e.status),1)]),_:2},1024)]),_:2},1024),u(t(b),{value:e.rating,readonly:``},null,8,[`value`]),a(`div`,null,`Сложность: `+s([``,`лёгкая`,`средняя`,`тяжёлая`][e.difficulty||0]),1),a(`p`,D,s(e.text),1),e.status==`pending`?(r(),n(t(y),{key:0,justify:`end`},{default:d(()=>[u(t(g),{type:`success`,onClick:t=>j(e,`approved`)},{default:d(()=>[...f[3]||=[i(`Одобрить`,-1)]]),_:1},8,[`onClick`]),u(t(g),{type:`error`,ghost:``,onClick:t=>j(e,`rejected`)},{default:d(()=>[...f[4]||=[i(`Отклонить`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):e.status==`approved`?(r(),n(t(y),{key:1,justify:`end`},{default:d(()=>[u(t(g),{type:`error`,ghost:``,onClick:t=>j(e,`hidden`)},{default:d(()=>[...f[5]||=[i(`Скрыть`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):p(``,!0)]),_:2},1024))),128))])]),u(S,{active:`reviews`})],64))}}),[[`__scopeId`,`data-v-0b64d5d0`]]),k=e({__name:`ReviewsView`,setup(e){return(e,t)=>(r(),n(O))}});export{k as default};
+1
View File
@@ -0,0 +1 @@
import{At as e,Ct as t,St as n,Tn as r,Tt as i,Un as a,Yt as o,Zt as s,cn as c,gt as l,jt as u,kt as d,wt as f,yn as p}from"./client-Be0b5AZU.js";import{i as m,r as h}from"./ui-DePKLhY8.js";import{t as g}from"./Button-B0cBJTB7.js";import{t as _}from"./_plugin-vue_export-helper-C_Iw6R3j.js";import{t as v}from"./Card-2FpXQWHo.js";import{t as y}from"./Flex-C-iTpmES.js";import{t as b}from"./Rate-BhaAZrt2.js";import{i as x}from"./index-DpxjEbFc.js";import{t as S}from"./HeaderMenu-BhUQ_vLn.js";var C={class:`center-block-custom`},w={class:`width1200`},T={class:`page-header`},E={class:`review-game`},D={class:`review-text`},O=_(u({__name:`ReviewsPage`,setup(u){let _=x(),O=h(),k=p([]);async function A(){try{let e=await _.GetReviewsForModeration({});k.value=e.reviews||[]}catch(e){O.error(e instanceof Error?e.message:`Не удалось загрузить отзывы`)}}async function j(e,t){try{await _.ModerateGameReview({ID:e.ID,status:t}),await A()}catch(e){O.error(e instanceof Error?e.message:`Не удалось изменить отзыв`)}}return A(),(u,p)=>(o(),i(l,null,[n(`div`,C,[n(`div`,w,[n(`div`,T,[p[1]||=n(`h1`,null,`Отзывы`,-1),e(r(g),{onClick:A},{default:c(()=>[...p[0]||=[d(`Обновить`,-1)]]),_:1})]),k.value.length==0?(o(),t(r(v),{key:0},{default:c(()=>[...p[2]||=[d(`Очередь отзывов пуста.`,-1)]]),_:1})):f(``,!0),(o(!0),i(l,null,s(k.value,i=>(o(),t(r(v),{key:i.ID,class:`review-card`},{default:c(()=>[e(r(y),{justify:`space-between`,align:`center`},{default:c(()=>[n(`div`,null,[n(`div`,E,a(i.gameName),1),n(`strong`,null,a(i.teamName),1)]),e(r(m),null,{default:c(()=>[d(a(i.status),1)]),_:2},1024)]),_:2},1024),e(r(b),{value:i.rating,readonly:``},null,8,[`value`]),n(`div`,null,`Сложность: `+a([``,`лёгкая`,`средняя`,`тяжёлая`][i.difficulty||0]),1),n(`p`,D,a(i.text),1),i.status==`pending`?(o(),t(r(y),{key:0,justify:`end`},{default:c(()=>[e(r(g),{type:`success`,onClick:e=>j(i,`approved`)},{default:c(()=>[...p[3]||=[d(`Одобрить`,-1)]]),_:1},8,[`onClick`]),e(r(g),{type:`error`,ghost:``,onClick:e=>j(i,`rejected`)},{default:c(()=>[...p[4]||=[d(`Отклонить`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):i.status==`approved`?(o(),t(r(y),{key:1,justify:`end`},{default:c(()=>[e(r(g),{type:`error`,ghost:``,onClick:e=>j(i,`hidden`)},{default:c(()=>[...p[5]||=[d(`Скрыть`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):f(``,!0)]),_:2},1024))),128))])]),e(S,{active:`reviews`})],64))}}),[[`__scopeId`,`data-v-0b64d5d0`]]),k=u({__name:`ReviewsView`,setup(e){return(e,n)=>(o(),t(O))}});export{k as default};
-1
View File
@@ -1 +0,0 @@
import{At as e,Cn as t,Ct as n,Jt as r,Ot as i,St as a,Tt as o,Vn as s,Xt as c,gt as l,kt as u,sn as d,u as f,vn as p,wt as m}from"./client-DrrW410h.js";import{i as h,r as g}from"./ui-BXphkCO3.js";import{t as _}from"./_plugin-vue_export-helper-2ZWAS1ss.js";import{t as v}from"./Rate-DzWTiM8f.js";import{i as y}from"./index-CvfVA1ID.js";import{t as b}from"./HeaderMenu-DjAjwijB.js";import{t as x}from"./SiteFooter-BjbzmgYc.js";var S={class:`center-block-custom`},C={class:`width700`},w={class:`scenario-card`},T={class:`scenario-heading`},E={class:`scenario-title`},D={class:`scenario-image-frame`},O=[`src`,`alt`],k={class:`scenario-details`},A={class:`scenario-description`},j={class:`scenario-rating`},M={key:1},N={key:2},P={key:0,class:`scenario-difficulty`},F={class:`scenario-author`},I={key:1,class:`reviews-section`},L={class:`review-heading`},R={class:`review-game`},z={class:`review-text`},B=_(e({__name:`ScenarioPage`,setup(e){let _=g(),B=y(),V=f().params.id,H=p([]),U=p({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 W(e){try{let t=await B.GetScenario({ID:e});U.value=t.scenario}catch(e){_.error(e instanceof Error?e.message:`Не удалось загрузить сценарий`)}}W(Number(V));async function G(e){try{let t=await B.GetScenarioReviews({scenarioID:e});H.value=t.reviews||[]}catch(e){_.error(e instanceof Error?e.message:`Не удалось загрузить отзывы`)}}return G(Number(V)),(e,f)=>(r(),o(l,null,[a(`div`,S,[a(`div`,C,[a(`section`,w,[a(`div`,T,[f[0]||=a(`p`,{class:`scenario-kicker`},`ДЕЛО ИЗ КАТАЛОГА`,-1),a(`h1`,E,s(U.value.name),1)]),a(`div`,D,[a(`img`,{class:`scenario-image`,src:U.value.image,alt:U.value.name},null,8,O)]),a(`div`,k,[a(`p`,A,s(U.value.description),1),a(`div`,j,[U.value.reviewsCount?(r(),n(t(v),{key:0,value:U.value.averageRating,readonly:``,"allow-half":``,size:`small`},null,8,[`value`])):m(``,!0),U.value.reviewsCount?(r(),o(`span`,M,s(U.value.averageRating?.toFixed(1))+` · `+s(U.value.reviewsCount)+` отзывов`,1)):(r(),o(`span`,N,`Пока нет оценок`))]),U.value.difficulty?(r(),o(`div`,P,`Сложность: `+s(U.value.difficulty),1)):m(``,!0),a(`div`,F,[u(t(h),{bordered:!1,type:`success`,class:`status-block`},{default:d(()=>[i(` Автор: `+s(U.value.author?.username),1)]),_:1})]),H.value.length?(r(),o(`section`,I,[f[1]||=a(`h2`,{class:`reviews-title`},`Отзывы команд`,-1),(r(!0),o(l,null,c(H.value,e=>(r(),o(`article`,{key:e.ID,class:`review-card`},[a(`div`,L,[a(`strong`,null,s(e.teamName),1),u(t(v),{value:e.rating,readonly:``,size:`small`},null,8,[`value`])]),a(`div`,null,`Сложность: `+s([``,`лёгкая`,`средняя`,`тяжёлая`][e.difficulty||0]),1),a(`div`,R,s(e.gameName),1),a(`p`,z,s(e.text),1)]))),128))])):m(``,!0)])])]),u(x)]),u(b,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-557cbdd2`]]),V=e({__name:`ScenarioView`,setup(e){return(e,t)=>(r(),n(B))}});export{V as default};
+1
View File
@@ -0,0 +1 @@
import{At as e,Ct as t,St as n,Tn as r,Tt as i,Un as a,Yt as o,Zt as s,cn as c,gt as l,jt as u,kt as d,u as f,wt as p,yn as m}from"./client-Be0b5AZU.js";import{i as h,r as g}from"./ui-DePKLhY8.js";import{t as _}from"./_plugin-vue_export-helper-C_Iw6R3j.js";import{t as v}from"./Rate-BhaAZrt2.js";import{i as y}from"./index-DpxjEbFc.js";import{t as b}from"./HeaderMenu-BhUQ_vLn.js";import{t as x}from"./SiteFooter-DUGYOD36.js";var S={class:`center-block-custom`},C={class:`width700`},w={class:`scenario-card`},T={class:`scenario-heading`},E={class:`scenario-title`},D={class:`scenario-image-frame`},O=[`src`,`alt`],k={class:`scenario-details`},A={class:`scenario-description`},j={class:`scenario-rating`},M={key:1},N={key:2},P={key:0,class:`scenario-difficulty`},F={class:`scenario-author`},I={key:1,class:`reviews-section`},L={class:`review-heading`},R={class:`review-game`},z={class:`review-text`},B=_(u({__name:`ScenarioPage`,setup(u){let _=g(),B=y(),V=f().params.id,H=m([]),U=m({ID:void 0,name:void 0,story:void 0,author:void 0,status:void 0,updatedAt:void 0,createdAt:void 0,publishedAt:void 0,averageRating:void 0,reviewsCount:void 0,difficulty:void 0});async function W(e){try{let t=await B.GetScenario({ID:e});U.value=t.scenario}catch(e){_.error(e instanceof Error?e.message:`Не удалось загрузить сценарий`)}}W(Number(V));async function G(e){try{let t=await B.GetScenarioReviews({scenarioID:e});H.value=t.reviews||[]}catch(e){_.error(e instanceof Error?e.message:`Не удалось загрузить отзывы`)}}return G(Number(V)),(u,f)=>(o(),i(l,null,[n(`div`,S,[n(`div`,C,[n(`section`,w,[n(`div`,T,[f[0]||=n(`p`,{class:`scenario-kicker`},`ДЕЛО ИЗ КАТАЛОГА`,-1),n(`h1`,E,a(U.value.name),1)]),n(`div`,D,[n(`img`,{class:`scenario-image`,src:U.value.image,alt:U.value.name},null,8,O)]),n(`div`,k,[n(`p`,A,a(U.value.description),1),n(`div`,j,[U.value.reviewsCount?(o(),t(r(v),{key:0,value:U.value.averageRating,readonly:``,"allow-half":``,size:`small`},null,8,[`value`])):p(``,!0),U.value.reviewsCount?(o(),i(`span`,M,a(U.value.averageRating?.toFixed(1))+` · `+a(U.value.reviewsCount)+` отзывов`,1)):(o(),i(`span`,N,`Пока нет оценок`))]),U.value.difficulty?(o(),i(`div`,P,`Сложность: `+a(U.value.difficulty),1)):p(``,!0),n(`div`,F,[e(r(h),{bordered:!1,type:`success`,class:`status-block`},{default:c(()=>[d(` Автор: `+a(U.value.author?.username),1)]),_:1})]),H.value.length?(o(),i(`section`,I,[f[1]||=n(`h2`,{class:`reviews-title`},`Отзывы команд`,-1),(o(!0),i(l,null,s(H.value,t=>(o(),i(`article`,{key:t.ID,class:`review-card`},[n(`div`,L,[n(`strong`,null,a(t.teamName),1),e(r(v),{value:t.rating,readonly:``,size:`small`},null,8,[`value`])]),n(`div`,null,`Сложность: `+a([``,`лёгкая`,`средняя`,`тяжёлая`][t.difficulty||0]),1),n(`div`,R,a(t.gameName),1),n(`p`,z,a(t.text),1)]))),128))])):p(``,!0)])])]),e(x)]),e(b,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-557cbdd2`]]),V=u({__name:`ScenarioView`,setup(e){return(e,n)=>(o(),t(B))}});export{V 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
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 @@
import{At as e,Cn as t,Jt as n,Ot as r,St as i,Tt as a,Vn as o,a as s,kt as c,sn as l}from"./client-DrrW410h.js";import{t as u}from"./_plugin-vue_export-helper-2ZWAS1ss.js";var d={class:`site-footer`},f={class:`footer-content width1200`},p={class:`footer-brand`},m={class:`copyright`},h={"aria-label":`Навигация в подвале`,class:`footer-group`},g={"aria-label":`Документы`,class:`footer-group`},_=u(e({__name:`SiteFooter`,emits:[`showHowItWorks`],setup(e,{emit:u}){let _=u,v=new Date().getFullYear();return(e,u)=>(n(),a(`footer`,d,[i(`div`,f,[i(`div`,p,[c(t(s),{to:`/`,class:`footer-name`},{default:l(()=>[...u[1]||=[r(`Вечерний детектив`,-1)]]),_:1}),u[2]||=i(`p`,null,`Расследования своей компанией`,-1),i(`p`,m,`© `+o(t(v))+` Вечерний детектив`,1)]),i(`nav`,h,[u[5]||=i(`h2`,null,`Навигация`,-1),c(t(s),{to:`/catalog`},{default:l(()=>[...u[3]||=[r(`Каталог дел`,-1)]]),_:1}),c(t(s),{to:`/#how-it-works`,onClick:u[0]||=e=>_(`showHowItWorks`)},{default:l(()=>[...u[4]||=[r(` Как проходит игра `,-1)]]),_:1})]),u[9]||=i(`div`,{class:`footer-group`},[i(`h2`,null,`Связь`),i(`a`,{href:`https://vk.ru/club231783859`},`Группа ВКонтакте`)],-1),i(`nav`,g,[u[8]||=i(`h2`,null,`Документы`,-1),c(t(s),{to:`/user-agreement`},{default:l(()=>[...u[6]||=[r(`Пользовательское соглашение`,-1)]]),_:1}),c(t(s),{to:`/privacy-policy`},{default:l(()=>[...u[7]||=[r(`Политика конфиденциальности`,-1)]]),_:1})])])]))}}),[[`__scopeId`,`data-v-182080ec`]]);export{_ as t};
+1
View File
@@ -0,0 +1 @@
import{At as e,St as t,Tn as n,Tt as r,Un as i,Yt as a,a as o,cn as s,jt as c,kt as l}from"./client-Be0b5AZU.js";import{t as u}from"./_plugin-vue_export-helper-C_Iw6R3j.js";var d={class:`site-footer`},f={class:`footer-content width1200`},p={class:`footer-brand`},m={class:`copyright`},h={"aria-label":`Навигация в подвале`,class:`footer-group`},g={"aria-label":`Документы`,class:`footer-group`},_=u(c({__name:`SiteFooter`,emits:[`showHowItWorks`],setup(c,{emit:u}){let _=u,v=new Date().getFullYear();return(c,u)=>(a(),r(`footer`,d,[t(`div`,f,[t(`div`,p,[e(n(o),{to:`/`,class:`footer-name`},{default:s(()=>[...u[1]||=[l(`Вечерний детектив`,-1)]]),_:1}),u[2]||=t(`p`,null,`Расследования своей компанией`,-1),t(`p`,m,`© `+i(n(v))+` Вечерний детектив`,1)]),t(`nav`,h,[u[5]||=t(`h2`,null,`Навигация`,-1),e(n(o),{to:`/catalog`},{default:s(()=>[...u[3]||=[l(`Каталог дел`,-1)]]),_:1}),e(n(o),{to:`/#how-it-works`,onClick:u[0]||=e=>_(`showHowItWorks`)},{default:s(()=>[...u[4]||=[l(` Как проходит игра `,-1)]]),_:1})]),u[9]||=t(`div`,{class:`footer-group`},[t(`h2`,null,`Связь`),t(`a`,{href:`https://vk.ru/club231783859`},`Группа ВКонтакте`)],-1),t(`nav`,g,[u[8]||=t(`h2`,null,`Документы`,-1),e(n(o),{to:`/user-agreement`},{default:s(()=>[...u[6]||=[l(`Пользовательское соглашение`,-1)]]),_:1}),e(n(o),{to:`/privacy-policy`},{default:s(()=>[...u[7]||=[l(`Политика конфиденциальности`,-1)]]),_:1})])])]))}}),[[`__scopeId`,`data-v-182080ec`]]);export{_ as t};
@@ -1 +1 @@
import{At as e,Nt as t,W as n,_ as r,ct as i,ht as a,m as o,xt as s}from"./client-DrrW410h.js";import{a as c,o as l}from"./ui-BXphkCO3.js";import{a as u}from"./Button-VP0HlDWp.js";import{t as d}from"./flatten-C6dhMlvE.js";import{t as f}from"./get-slot-6kXJmSMP.js";import{v as p}from"./index-CvfVA1ID.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=e({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:t,mergedRtlRef:a,mergedComponentPropsRef:u}=n(e),d=s(()=>e.size||u?.value?.Space?.size||`medium`),f=o(`Space`,`-space`,void 0,h,e,t),p=r(`Space`,a,t);return{useGap:_(),rtlEnabled:p,mergedClsPrefix:t,margin:s(()=>{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:{[i(`gap`,e)]:t}}=f.value,{row:n,col:r}=l(t);return{horizontal:c(r),vertical:c(n)}})}},render(){let{vertical:e,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 t(`div`,{role:`none`,class:[`${p}-space`,m&&`${p}-space--rtl`],style:{display:i?`inline-flex`:`flex`,flexDirection:e&&!n?`column`:e&&n?`column-reverse`:!e&&n?`row-reverse`:`row`,justifyContent:[`start`,`end`].includes(o)?`flex-${o}`:o,flexWrap:!u||e?`nowrap`:`wrap`,marginTop:h||e?``:`-${S}`,marginBottom:h||e?``:`-${S}`,alignItems:r,gap:h?`${l.vertical}px ${l.horizontal}px`:``}},!g&&(h||_)?v:v.map((n,r)=>n.type===a?n:t(`div`,{role:`none`,class:s,style:[c,{maxWidth:`100%`},h?``:e?{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{Pt as e,W as t,_ as n,ct as r,ht as i,jt as a,m as o,xt as s}from"./client-Be0b5AZU.js";import{a as c,o as l}from"./ui-DePKLhY8.js";import{a as u}from"./Button-B0cBJTB7.js";import{t as d}from"./flatten-CetjII2I.js";import{t as f}from"./get-slot-6kXJmSMP.js";import{v as p}from"./index-DpxjEbFc.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=a({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=s(()=>e.size||u?.value?.Space?.size||`medium`),f=o(`Space`,`-space`,void 0,h,e,i),p=n(`Space`,a,i);return{useGap:_(),rtlEnabled:p,mergedClsPrefix:i,margin:s(()=>{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:{[r(`gap`,e)]:t}}=f.value,{row:n,col:i}=l(t);return{horizontal:c(i),vertical:c(n)}})}},render(){let{vertical:t,reverse:n,align:r,inline:a,justify:o,itemClass:s,itemStyle:c,margin:l,wrap:u,mergedClsPrefix:p,rtlEnabled:m,useGap:h,wrapItem:g,internalUseGap:_}=this,v=d(f(this),!1);if(!v.length)return null;let y=`${l.horizontal}px`,b=`${l.horizontal/2}px`,x=`${l.vertical}px`,S=`${l.vertical/2}px`,C=v.length-1,w=o.startsWith(`space-`);return e(`div`,{role:`none`,class:[`${p}-space`,m&&`${p}-space--rtl`],style:{display:a?`inline-flex`:`flex`,flexDirection:t&&!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===i?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};
+43
View File
@@ -0,0 +1,43 @@
import{Pt as e,U as t,W as n,ct as r,jt as i,m as a,nt as o,on as s,ot as c,rt as l,xt as u,yn as d}from"./client-Be0b5AZU.js";import{c as f}from"./ui-DePKLhY8.js";import{t as p}from"./use-compitable-gFaTNHlg.js";import{t as m}from"./fade-in.cssr-DaPLfaec.js";import{H as h,V as g,f as _,lt as v}from"./index-DpxjEbFc.js";var y=o([o(`@keyframes spin-rotate`,`
from {
transform: rotate(0);
}
to {
transform: rotate(360deg);
}
`),l(`spin-container`,`
position: relative;
`,[l(`spin-body`,`
position: absolute;
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%);
`,[m()])]),l(`spin-body`,`
display: inline-flex;
align-items: center;
justify-content: center;
flex-direction: column;
`),l(`spin`,`
display: inline-flex;
height: var(--n-size);
width: var(--n-size);
font-size: var(--n-size);
color: var(--n-color);
`,[c(`rotate`,`
animation: spin-rotate 2s linear infinite;
`)]),l(`spin-description`,`
display: inline-block;
font-size: var(--n-font-size);
color: var(--n-text-color);
transition: color .3s var(--n-bezier);
margin-top: 8px;
`),l(`spin-content`,`
opacity: 1;
transition: opacity .3s var(--n-bezier);
pointer-events: all;
`,[c(`spinning`,`
user-select: none;
-webkit-user-select: none;
pointer-events: none;
opacity: var(--n-opacity-spinning);
`)])]),b={small:20,medium:18,large:16},x=i({name:`Spin`,props:Object.assign(Object.assign(Object.assign({},a.props),{contentClass:String,contentStyle:[Object,String],description:String,size:{type:[String,Number],default:`medium`},show:{type:Boolean,default:!0},rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0},delay:Number}),h),slots:Object,setup(e){let{mergedClsPrefixRef:i,inlineThemeDisabled:o}=n(e),c=a(`Spin`,`-spin`,y,_,e,i),l=u(()=>{let{size:t}=e,{common:{cubicBezierEaseInOut:n},self:i}=c.value,{opacitySpinning:a,color:o,textColor:s}=i;return{"--n-bezier":n,"--n-opacity-spinning":a,"--n-size":typeof t==`number`?f(t):i[r(`size`,t)],"--n-color":o,"--n-text-color":s}}),m=o?t(`spin`,u(()=>{let{size:t}=e;return typeof t==`number`?String(t):t[0]}),l,e):void 0,h=p(e,[`spinning`,`show`]),g=d(!1);return s(t=>{let n;if(h.value){let{delay:r}=e;if(r){n=window.setTimeout(()=>{g.value=!0},r),t(()=>{clearTimeout(n)});return}}g.value=h.value}),{mergedClsPrefix:i,active:g,mergedStrokeWidth:u(()=>{let{strokeWidth:t}=e;if(t!==void 0)return t;let{size:n}=e;return b[typeof n==`number`?`medium`:n]}),cssVars:o?void 0:l,themeClass:m?.themeClass,onRender:m?.onRender}},render(){var t;let{$slots:n,mergedClsPrefix:r,description:i}=this,a=n.icon&&this.rotate,o=(i||n.description)&&e(`div`,{class:`${r}-spin-description`},i||n.description?.call(n)),s=n.icon?e(`div`,{class:[`${r}-spin-body`,this.themeClass]},e(`div`,{class:[`${r}-spin`,a&&`${r}-spin--rotate`],style:n.default?``:this.cssVars},n.icon()),o):e(`div`,{class:[`${r}-spin-body`,this.themeClass]},e(g,{clsPrefix:r,style:n.default?``:this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,radius:this.radius,scale:this.scale,class:`${r}-spin`}),o);return(t=this.onRender)==null||t.call(this),n.default?e(`div`,{class:[`${r}-spin-container`,this.themeClass],style:this.cssVars},e(`div`,{class:[`${r}-spin-content`,this.active&&`${r}-spin-content--spinning`,this.contentClass],style:this.contentStyle},n),e(v,{name:`fade-in-transition`},{default:()=>this.active?s:null})):s}});export{x as t};
-43
View File
@@ -1,43 +0,0 @@
import{At as e,Nt as t,U as n,W as r,an as i,ct as a,m as o,nt as s,ot as c,rt as l,vn as u,xt as d}from"./client-DrrW410h.js";import{c as f}from"./ui-BXphkCO3.js";import{t as p}from"./use-compitable-BLe2cDdc.js";import{t as m}from"./fade-in.cssr-DIQ8XvO3.js";import{H as h,V as g,f as _,lt as v}from"./index-CvfVA1ID.js";var y=s([s(`@keyframes spin-rotate`,`
from {
transform: rotate(0);
}
to {
transform: rotate(360deg);
}
`),l(`spin-container`,`
position: relative;
`,[l(`spin-body`,`
position: absolute;
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%);
`,[m()])]),l(`spin-body`,`
display: inline-flex;
align-items: center;
justify-content: center;
flex-direction: column;
`),l(`spin`,`
display: inline-flex;
height: var(--n-size);
width: var(--n-size);
font-size: var(--n-size);
color: var(--n-color);
`,[c(`rotate`,`
animation: spin-rotate 2s linear infinite;
`)]),l(`spin-description`,`
display: inline-block;
font-size: var(--n-font-size);
color: var(--n-text-color);
transition: color .3s var(--n-bezier);
margin-top: 8px;
`),l(`spin-content`,`
opacity: 1;
transition: opacity .3s var(--n-bezier);
pointer-events: all;
`,[c(`spinning`,`
user-select: none;
-webkit-user-select: none;
pointer-events: none;
opacity: var(--n-opacity-spinning);
`)])]),b={small:20,medium:18,large:16},x=e({name:`Spin`,props:Object.assign(Object.assign(Object.assign({},o.props),{contentClass:String,contentStyle:[Object,String],description:String,size:{type:[String,Number],default:`medium`},show:{type:Boolean,default:!0},rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0},delay:Number}),h),slots:Object,setup(e){let{mergedClsPrefixRef:t,inlineThemeDisabled:s}=r(e),c=o(`Spin`,`-spin`,y,_,e,t),l=d(()=>{let{size:t}=e,{common:{cubicBezierEaseInOut:n},self:r}=c.value,{opacitySpinning:i,color:o,textColor:s}=r;return{"--n-bezier":n,"--n-opacity-spinning":i,"--n-size":typeof t==`number`?f(t):r[a(`size`,t)],"--n-color":o,"--n-text-color":s}}),m=s?n(`spin`,d(()=>{let{size:t}=e;return typeof t==`number`?String(t):t[0]}),l,e):void 0,h=p(e,[`spinning`,`show`]),g=u(!1);return i(t=>{let n;if(h.value){let{delay:r}=e;if(r){n=window.setTimeout(()=>{g.value=!0},r),t(()=>{clearTimeout(n)});return}}g.value=h.value}),{mergedClsPrefix:t,active:g,mergedStrokeWidth:d(()=>{let{strokeWidth:t}=e;if(t!==void 0)return t;let{size:n}=e;return b[typeof n==`number`?`medium`:n]}),cssVars:s?void 0:l,themeClass:m?.themeClass,onRender:m?.onRender}},render(){var e;let{$slots:n,mergedClsPrefix:r,description:i}=this,a=n.icon&&this.rotate,o=(i||n.description)&&t(`div`,{class:`${r}-spin-description`},i||n.description?.call(n)),s=n.icon?t(`div`,{class:[`${r}-spin-body`,this.themeClass]},t(`div`,{class:[`${r}-spin`,a&&`${r}-spin--rotate`],style:n.default?``:this.cssVars},n.icon()),o):t(`div`,{class:[`${r}-spin-body`,this.themeClass]},t(g,{clsPrefix:r,style:n.default?``:this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,radius:this.radius,scale:this.scale,class:`${r}-spin`}),o);return(e=this.onRender)==null||e.call(this),n.default?t(`div`,{class:[`${r}-spin-container`,this.themeClass],style:this.cssVars},t(`div`,{class:[`${r}-spin-content`,this.active&&`${r}-spin-content--spinning`,this.contentClass],style:this.contentStyle},n),t(v,{name:`fade-in-transition`},{default:()=>this.active?s:null})):s}});export{x 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
File diff suppressed because one or more lines are too long
+1
View File
@@ -0,0 +1 @@
import{At as e,Ct as t,Kt as n,St as r,Tn as i,Tt as a,Un as o,Yt as s,cn as c,gt as l,jt as u,kt as d,t as f,u as p,xt as m,yn as h}from"./client-Be0b5AZU.js";import{t as g}from"./Button-B0cBJTB7.js";import{t as _}from"./_plugin-vue_export-helper-C_Iw6R3j.js";import{t as v}from"./QrCode-BWG8g5fm.js";import{t as y}from"./datetime-BJNH0M1T.js";import{t as b}from"./MessagePaper-rRZLlad3.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 _=p(),O=f(),k=m(()=>String(_.params.token||``)),A=h(),j=h(!1),M=h(``),N=m(()=>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 n(P),(n,u)=>(s(),a(`div`,x,[r(`div`,S,[e(b,null,{default:c(()=>[r(`div`,C,[u[7]||=r(`p`,{class:`ticket-kicker`},`ВЕЧЕРНИЙ ДЕТЕКТИВ · ПРОПУСК`,-1),u[8]||=r(`h1`,null,`Билет на игру`,-1),M.value?(s(),a(`p`,w,o(M.value),1)):A.value?(s(),a(l,{key:1},[r(`h2`,null,o(A.value.gameName),1),u[5]||=r(`hr`,null,null,-1),r(`dl`,null,[r(`div`,null,[u[0]||=r(`dt`,null,`Начало`,-1),r(`dd`,null,o(i(y)(A.value.startAt)),1)]),r(`div`,null,[u[1]||=r(`dt`,null,`Место`,-1),r(`dd`,null,o(A.value.location||`Онлайн`),1)])]),r(`div`,T,[e(i(v),{value:N.value,size:300,padding:0},null,8,[`value`])]),u[6]||=r(`p`,null,`Покажите этот QR-код организатору.`,-1),A.value.status===`used`?(s(),a(l,{key:0},[u[2]||=r(`hr`,null,null,-1),r(`p`,E,` Билет уже использован`+o(A.value.usedAt?` ${i(y)(A.value.usedAt)}`:``)+o(A.value.usedBy?` организатором ${A.value.usedBy}`:``)+`. `,1)],64)):A.value.gameStatus===`finish`?(s(),a(`p`,D,` Игра уже завершена. `)):(s(),a(l,{key:2},[u[3]||=r(`hr`,null,null,-1),u[4]||=r(`p`,{class:`active`,role:`status`},`Билет действителен.`,-1)],64))],64)):(s(),t(i(g),{key:2,loading:j.value,onClick:P},{default:c(()=>[d(o(j.value?`Загрузка`:`Повторить`),1)]),_:1},8,[`loading`]))])]),_:1})])]))}}),[[`__scopeId`,`data-v-5f755593`]]),k=u({__name:`TicketView`,setup(e){return(e,n)=>(s(),t(O))}});export{k as default};
-1
View File
@@ -1 +0,0 @@
import{At as e,Cn as t,Ct as n,Gt as r,Jt as i,Ot as a,St as o,Tt as s,Vn as c,gt as l,kt as u,sn as d,t as f,u as p,vn as m,xt as h}from"./client-DrrW410h.js";import{t as g}from"./Button-VP0HlDWp.js";import{t as _}from"./_plugin-vue_export-helper-2ZWAS1ss.js";import{t as v}from"./QrCode-BtvoRbPn.js";import{t as y}from"./datetime-BJNH0M1T.js";import{t as b}from"./MessagePaper-B4rdZ1RT.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=_(e({__name:`TicketPage`,setup(e){let _=p(),O=f(),k=h(()=>String(_.params.token||``)),A=m(),j=m(!1),M=m(``),N=h(()=>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 r(P),(e,r)=>(i(),s(`div`,x,[o(`div`,S,[u(b,null,{default:d(()=>[o(`div`,C,[r[7]||=o(`p`,{class:`ticket-kicker`},`ВЕЧЕРНИЙ ДЕТЕКТИВ · ПРОПУСК`,-1),r[8]||=o(`h1`,null,`Билет на игру`,-1),M.value?(i(),s(`p`,w,c(M.value),1)):A.value?(i(),s(l,{key:1},[o(`h2`,null,c(A.value.gameName),1),r[5]||=o(`hr`,null,null,-1),o(`dl`,null,[o(`div`,null,[r[0]||=o(`dt`,null,`Начало`,-1),o(`dd`,null,c(t(y)(A.value.startAt)),1)]),o(`div`,null,[r[1]||=o(`dt`,null,`Место`,-1),o(`dd`,null,c(A.value.location||`Онлайн`),1)])]),o(`div`,T,[u(t(v),{value:N.value,size:300,padding:0},null,8,[`value`])]),r[6]||=o(`p`,null,`Покажите этот QR-код организатору.`,-1),A.value.status===`used`?(i(),s(l,{key:0},[r[2]||=o(`hr`,null,null,-1),o(`p`,E,` Билет уже использован`+c(A.value.usedAt?` ${t(y)(A.value.usedAt)}`:``)+c(A.value.usedBy?` организатором ${A.value.usedBy}`:``)+`. `,1)],64)):A.value.gameStatus===`finish`?(i(),s(`p`,D,` Игра уже завершена. `)):(i(),s(l,{key:2},[r[3]||=o(`hr`,null,null,-1),r[4]||=o(`p`,{class:`active`,role:`status`},`Билет действителен.`,-1)],64))],64)):(i(),n(t(g),{key:2,loading:j.value,onClick:P},{default:d(()=>[a(c(j.value?`Загрузка`:`Повторить`),1)]),_:1},8,[`loading`]))])]),_:1})])]))}}),[[`__scopeId`,`data-v-5f755593`]]),k=e({__name:`TicketView`,setup(e){return(e,t)=>(i(),n(O))}});export{k as default};
File diff suppressed because one or more lines are too long
-1
View File
@@ -1 +0,0 @@
import{At as e,Jt as t,Tt as n,gt as r,kt as i}from"./client-DrrW410h.js";import{t as a}from"./HeaderMenu-DjAjwijB.js";import{t as o}from"./DocsPage-ZV8KFkx6.js";var s=e({__name:`UserAgreementView`,setup(e){return(e,s)=>(t(),n(r,null,[i(o,{kind:`terms`}),i(a)],64))}});export{s as default};
+1
View File
@@ -0,0 +1 @@
import{At as e,Tt as t,Yt as n,gt as r,jt as i}from"./client-Be0b5AZU.js";import{t as a}from"./HeaderMenu-BhUQ_vLn.js";import{t as o}from"./DocsPage-BpYUTY7w.js";var s=i({__name:`UserAgreementView`,setup(i){return(i,s)=>(n(),t(r,null,[e(o,{kind:`terms`}),e(a)],64))}});export{s 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{It as e,gt as t,ht as n}from"./client-DrrW410h.js";function r(e){return e.replace(/#|\(|\)|,|\s|\./g,`_`)}function i(e,...t){if(Array.isArray(e))e.forEach(e=>i(e,...t));else return e(...t)}function a(r){return r.some(r=>e(r)?!(r.type===n||r.type===t&&!a(r.children)):!0)?r:null}function o(e,t){return e&&a(e())||t()}function s(e,t,n){return e&&a(e(t))||n(t)}function c(e,t){return t(e&&a(e())||null)}function l(e,t,n){return n(e&&a(e(t))||null)}function u(e){return!(e&&a(e()))}var d=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n};export{s as a,i as c,o as i,r as l,a as n,c as o,u as r,l as s,d as t}; import{Lt as e,gt as t,ht as n}from"./client-Be0b5AZU.js";function r(e){return e.replace(/#|\(|\)|,|\s|\./g,`_`)}function i(e,...t){if(Array.isArray(e))e.forEach(e=>i(e,...t));else return e(...t)}function a(r){return r.some(r=>e(r)?!(r.type===n||r.type===t&&!a(r.children)):!0)?r:null}function o(e,t){return e&&a(e())||t()}function s(e,t,n){return e&&a(e(t))||n(t)}function c(e,t){return t(e&&a(e())||null)}function l(e,t,n){return n(e&&a(e(t))||null)}function u(e){return!(e&&a(e()))}var d=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n};export{s as a,i as c,o as i,r as l,a as n,c as o,u as r,l as s,d as t};
@@ -1 +1 @@
import{r as e}from"./client-DrrW410h.js";function t(e){let t=e?.file_type;if(t===`pdf`||t===`image`||t===`audio`)return t;let n=(e?.image||``).toLowerCase();return/\.pdf($|\?)/.test(n)?`pdf`:/\.(mp3|wav|ogg|m4a|aac|flac|opus)($|\?)/.test(n)?`audio`:/\.(png|jpe?g|gif|webp|bmp|svg)($|\?)/.test(n)?`image`:``}function n(t){if(!t)return``;let n=t.toLowerCase();return n.startsWith(`http://`)||n.startsWith(`https://`)?t:t.startsWith(`/`)?e()+t:`${e()}/api/files/${t}`}function r(e){return e?e.split(`/`).pop()||e:``}export{t as n,n as r,r as t}; import{r as e}from"./client-Be0b5AZU.js";function t(e){let t=e?.file_type;if(t===`pdf`||t===`image`||t===`audio`)return t;let n=(e?.image||``).toLowerCase();return/\.pdf($|\?)/.test(n)?`pdf`:/\.(mp3|wav|ogg|m4a|aac|flac|opus)($|\?)/.test(n)?`audio`:/\.(png|jpe?g|gif|webp|bmp|svg)($|\?)/.test(n)?`image`:``}function n(t){if(!t)return``;let n=t.toLowerCase();return n.startsWith(`http://`)||n.startsWith(`https://`)?t:t.startsWith(`/`)?e()+t:`${e()}/api/files/${t}`}function r(e){return e?e.split(`/`).pop()||e:``}export{t as n,n as r,r as t};
@@ -1 +1 @@
import{r as e}from"./client-DrrW410h.js";import{a as t,o as n}from"./index-CvfVA1ID.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,t){return s(`api/games/${e}/teams/${encodeURIComponent(t)}/receipt.png`,`receipt.png`)}function d(e){return s(`api/games/${e}/print-materials`,`game-${e}-print-materials.zip`)}function f(e){return s(`api/games/${e}/export/download`,`game-${e}.zip`)}function p(e){return s(`api/games/${e}/results-package/download`,`game-results-${e}.zip`)}async function m(e,t){let n=await i(`api/games/${e}/results-package/apply`,{method:`POST`,headers:{"Content-Type":`application/zip`},body:t});if(!n.ok)throw Error(await o(n));let r=await n.json();if(!r||typeof r!=`object`||!(`gameID`in r)||r.gameID!==e||!(`packageID`in r)||typeof r.packageID!=`string`||!(`appliedAt`in r)||typeof r.appliedAt!=`string`)throw Error(`Некорректный ответ применения результатов`);return{gameID:r.gameID,packageID:r.packageID,appliedAt:r.appliedAt}}async function h(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 g(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,downloadTeamReceipt:u,downloadGamePrintMaterials:d,uploadScenarioArchive:g,downloadGamePackage:f,uploadGamePackage:h,downloadGameResultsPackage:p,applyGameResultsPackage:m}}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}; import{r as e}from"./client-Be0b5AZU.js";import{a as t,o as n}from"./index-DpxjEbFc.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,t){return s(`api/games/${e}/teams/${encodeURIComponent(t)}/receipt.png`,`receipt.png`)}function d(e){return s(`api/games/${e}/print-materials`,`game-${e}-print-materials.zip`)}function f(e){return s(`api/games/${e}/export/download`,`game-${e}.zip`)}function p(e){return s(`api/games/${e}/results-package/download`,`game-results-${e}.zip`)}async function m(e,t){let n=await i(`api/games/${e}/results-package/apply`,{method:`POST`,headers:{"Content-Type":`application/zip`},body:t});if(!n.ok)throw Error(await o(n));let r=await n.json();if(!r||typeof r!=`object`||!(`gameID`in r)||r.gameID!==e||!(`packageID`in r)||typeof r.packageID!=`string`||!(`appliedAt`in r)||typeof r.appliedAt!=`string`)throw Error(`Некорректный ответ применения результатов`);return{gameID:r.gameID,packageID:r.packageID,appliedAt:r.appliedAt}}async function h(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 g(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,downloadTeamReceipt:u,downloadGamePrintMaterials:d,uploadScenarioArchive:g,downloadGamePackage:f,uploadGamePackage:h,downloadGameResultsPackage:p,applyGameResultsPackage:m}}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};
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
import{g as e,nt as t}from"./client-DrrW410h.js";var{cubicBezierEaseInOut:n}=e;function r({name:e=`fade-in`,enterDuration:r=`0.2s`,leaveDuration:i=`0.2s`,enterCubicBezier:a=n,leaveCubicBezier:o=n}={}){return[t(`&.${e}-transition-enter-active`,{transition:`all ${r} ${a}!important`}),t(`&.${e}-transition-leave-active`,{transition:`all ${i} ${o}!important`}),t(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),t(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}export{r as t}; import{g as e,nt as t}from"./client-Be0b5AZU.js";var{cubicBezierEaseInOut:n}=e;function r({name:e=`fade-in`,enterDuration:r=`0.2s`,leaveDuration:i=`0.2s`,enterCubicBezier:a=n,leaveCubicBezier:o=n}={}){return[t(`&.${e}-transition-enter-active`,{transition:`all ${r} ${a}!important`}),t(`&.${e}-transition-leave-active`,{transition:`all ${i} ${o}!important`}),t(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),t(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}export{r as t};
-1
View File
@@ -1 +0,0 @@
import{Ot as e,gt as t,ht as n}from"./client-DrrW410h.js";function r(i,a=!0,o=[]){return i.forEach(i=>{if(i!==null){if(typeof i!=`object`){(typeof i==`string`||typeof i==`number`)&&o.push(e(String(i)));return}if(Array.isArray(i)){r(i,a,o);return}if(i.type===t){if(i.children===null)return;Array.isArray(i.children)&&r(i.children,a,o)}else{if(i.type===n&&a)return;o.push(i)}}}),o}export{r as t};
+1
View File
@@ -0,0 +1 @@
import{gt as e,ht as t,kt as n}from"./client-Be0b5AZU.js";function r(i,a=!0,o=[]){return i.forEach(i=>{if(i!==null){if(typeof i!=`object`){(typeof i==`string`||typeof i==`number`)&&o.push(n(String(i)));return}if(Array.isArray(i)){r(i,a,o);return}if(i.type===e){if(i.children===null)return;Array.isArray(i.children)&&r(i.children,a,o)}else{if(i.type===t&&a)return;o.push(i)}}}),o}export{r as t};
@@ -1 +1 @@
import{R as e,S as t}from"./client-DrrW410h.js";import{$ as n,tt as r}from"./index-CvfVA1ID.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,n){if(e(t))return!1;var i=typeof t;return i==`number`||i==`symbol`||i==`boolean`||t==null||r(t)?!0:c.test(t)||!s.test(t)||n!=null&&t in Object(n)}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,r){return e(t)?t:l(t,r)?[t]:g(n(t))}var v=1/0;function y(e){if(typeof e==`string`||r(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{R as e,S as t}from"./client-Be0b5AZU.js";import{$ as n,tt as r}from"./index-DpxjEbFc.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,n){if(e(t))return!1;var i=typeof t;return i==`number`||i==`symbol`||i==`boolean`||t==null||r(t)?!0:c.test(t)||!s.test(t)||n!=null&&t in Object(n)}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,r){return e(t)?t:l(t,r)?[t]:g(n(t))}var v=1/0;function y(e){if(typeof e==`string`||r(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{At as e,Gt as t,Ht as n,Nt as r,gt as i,in as a,vn as o}from"./client-DrrW410h.js";import{c as s,l as c,s as l}from"./Scrollbar-DGnXZ64x.js";import{ot as u}from"./index-CvfVA1ID.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 r=u(),i=o(null),f=o(null),h=!1,g=!1,v=typeof document>`u`?null:document.activeElement;function y(){return _[_.length-1]===r}function b(t){var n;t.code===`Escape`&&y()&&((n=e.onEsc)==null||n.call(e,t))}t(()=>{a(()=>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=i.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(r),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!==r),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=i.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===i.value?T(`last`):T(`first`))}return{focusableStartRef:i,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 r(i,null,[r(`div`,{"aria-hidden":`true`,tabindex:t?`0`:`-1`,ref:`focusableStartRef`,style:n,onFocus:this.handleStartFocus}),e(),r(`div`,{"aria-hidden":`true`,style:n,ref:`focusableEndRef`,tabindex:t?`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{Kt as e,Pt as t,Ut as n,an as r,gt as i,jt as a,yn as o}from"./client-Be0b5AZU.js";import{c as s,l as c,s as l}from"./Scrollbar-LRArvNxj.js";import{ot as u}from"./index-DpxjEbFc.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(t){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(e){var n;e.code===`Escape`&&y()&&((n=t.onEsc)==null||n.call(t,e))}e(()=>{r(()=>t.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 e;if(!t.disabled){if(_.push(i),t.autoFocus){let{initialFocusTo:n}=t;n===void 0?T(`first`):(e=d(n))==null||e.focus({preventScroll:!0})}h=!0,document.addEventListener(`focus`,x,!0)}}function w(){var e;if(t.disabled||(document.removeEventListener(`focus`,x,!0),_=_.filter(e=>e!==i),y()))return;let{finalFocusTo:n}=t;n===void 0?t.returnFocusOnDeactivated&&v instanceof HTMLElement&&(g=!0,v.focus({preventScroll:!0}),g=!1):(e=d(n))==null||e.focus({preventScroll:!0})}function T(e){if(y()&&t.active){let t=a.value,n=f.value;if(t!==null&&n!==null){let r=S();if(r==null||r===n){g=!0,t.focus({preventScroll:!0}),g=!1;return}g=!0;let i=e===`first`?p(r):m(r);g=!1,i||(g=!0,t.focus({preventScroll:!0}),g=!1)}}}function E(e){if(g)return;let t=S();t!==null&&(e.relatedTarget!==null&&t.contains(e.relatedTarget)?T(`last`):T(`first`))}function D(e){g||(e.relatedTarget!==null&&e.relatedTarget===a.value?T(`last`):T(`first`))}return{focusableStartRef:a,focusableEndRef:f,focusableStyle:`position: absolute; height: 0; width: 0;`,handleStartFocus:E,handleEndFocus:D}},render(){let{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();let{active:n,focusableStyle:r}=this;return t(i,null,[t(`div`,{"aria-hidden":`true`,tabindex:n?`0`:`-1`,ref:`focusableStartRef`,style:r,onFocus:this.handleStartFocus}),e(),t(`div`,{"aria-hidden":`true`,style:r,ref:`focusableEndRef`,tabindex:n?`0`:`-1`,onFocus:this.handleEndFocus})])}}),y=new WeakSet;function b(e){y.add(e)}function x(e){return!y.has(e)}function S(e,t=[],n){let r={};return t.forEach(t=>{r[t]=e[t]}),Object.assign(r,n)}export{v as i,x as n,b as r,S as t};
@@ -1 +1 @@
import{f as e}from"./client-DrrW410h.js";var t={railInsetHorizontalBottom:`auto 2px 4px 2px`,railInsetHorizontalTop:`4px 2px auto 2px`,railInsetVerticalRight:`2px 4px 2px auto`,railInsetVerticalLeft:`2px auto 2px 4px`,railColor:`transparent`};function n(e){let{scrollbarColor:n,scrollbarColorHover:r,scrollbarHeight:i,scrollbarWidth:a,scrollbarBorderRadius:o}=e;return Object.assign(Object.assign({},t),{height:i,width:a,borderRadius:o,color:n,colorHover:r})}var r={name:`Scrollbar`,common:e,self:n};export{n,r as t}; import{f as e}from"./client-Be0b5AZU.js";var t={railInsetHorizontalBottom:`auto 2px 4px 2px`,railInsetHorizontalTop:`4px 2px auto 2px`,railInsetVerticalRight:`2px 4px 2px auto`,railInsetVerticalLeft:`2px auto 2px 4px`,railColor:`transparent`};function n(e){let{scrollbarColor:n,scrollbarColorHover:r,scrollbarHeight:i,scrollbarWidth:a,scrollbarBorderRadius:o}=e;return Object.assign(Object.assign({},t),{height:i,width:a,borderRadius:o,color:n,colorHover:r})}var r={name:`Scrollbar`,common:e,self:n};export{n,r as t};
@@ -1,4 +1,4 @@
import{At as e,Nt as t,U as n,W as r,ct as i,m as a,ot as o,rt as s,xt as c}from"./client-DrrW410h.js";import{t as l}from"./use-compitable-BLe2cDdc.js";import{c as u}from"./index-CvfVA1ID.js";var d=s(`text`,` import{Pt as e,U as t,W as n,ct as r,jt as i,m as a,ot as o,rt as s,xt as c}from"./client-Be0b5AZU.js";import{t as l}from"./use-compitable-gFaTNHlg.js";import{c as u}from"./index-DpxjEbFc.js";var d=s(`text`,`
transition: color .3s var(--n-bezier); transition: color .3s var(--n-bezier);
color: var(--n-text-color); color: var(--n-text-color);
`,[o(`strong`,` `,[o(`strong`,`
@@ -18,4 +18,4 @@ import{At as e,Nt as t,U as n,W as r,ct as i,m as a,ot as o,rt as s,xt as c}from
color: var(--n-code-text-color); color: var(--n-code-text-color);
background-color: var(--n-code-color); background-color: var(--n-code-color);
border: var(--n-code-border); border: var(--n-code-border);
`)]),f=e({name:`Text`,props:Object.assign(Object.assign({},a.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(e){let{mergedClsPrefixRef:t,inlineThemeDisabled:o}=r(e),s=a(`Typography`,`-text`,d,u,e,t),f=c(()=>{let{depth:t,type:n}=e,r=n==="default"?t===void 0?`textColor`:`textColor${t}Depth`:i(`textColor`,n),{common:{fontWeightStrong:a,fontFamilyMono:o,cubicBezierEaseInOut:c},self:{codeTextColor:l,codeBorderRadius:u,codeColor:d,codeBorder:f,[r]:p}}=s.value;return{"--n-bezier":c,"--n-text-color":p,"--n-font-weight-strong":a,"--n-font-famliy-mono":o,"--n-code-border-radius":u,"--n-code-text-color":l,"--n-code-color":d,"--n-code-border":f}}),p=o?n(`text`,c(()=>`${e.type[0]}${e.depth||``}`),f,e):void 0;return{mergedClsPrefix:t,compitableTag:l(e,[`as`,`tag`]),cssVars:o?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}; `)]),f=i({name:`Text`,props:Object.assign(Object.assign({},a.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(e){let{mergedClsPrefixRef:i,inlineThemeDisabled:o}=n(e),s=a(`Typography`,`-text`,d,u,e,i),f=c(()=>{let{depth:t,type:n}=e,i=n==="default"?t===void 0?`textColor`:`textColor${t}Depth`:r(`textColor`,n),{common:{fontWeightStrong:a,fontFamilyMono:o,cubicBezierEaseInOut:c},self:{codeTextColor:l,codeBorderRadius:u,codeColor:d,codeBorder:f,[i]:p}}=s.value;return{"--n-bezier":c,"--n-text-color":p,"--n-font-weight-strong":a,"--n-font-famliy-mono":o,"--n-code-border-radius":u,"--n-code-text-color":l,"--n-code-color":d,"--n-code-border":f}}),p=o?t(`text`,c(()=>`${e.type[0]}${e.depth||``}`),f,e):void 0;return{mergedClsPrefix:i,compitableTag:l(e,[`as`,`tag`]),cssVars:o?void 0:f,themeClass:p?.themeClass,onRender:p?.onRender}},render(){var t,n;let{mergedClsPrefix:r}=this;(t=this.onRender)==null||t.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?e(`code`,{class:i,style:this.cssVars},this.delete?e(`del`,null,a):a):this.delete?e(`del`,{class:i,style:this.cssVars},a):e(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 @@
import{xt as e}from"./client-DrrW410h.js";function t(t,n){return e(()=>{for(let e of n)if(t[e]!==void 0)return t[e];return t[n[n.length-1]]})}export{t}; import{xt as e}from"./client-Be0b5AZU.js";function t(t,n){return e(()=>{for(let e of n)if(t[e]!==void 0)return t[e];return t[n[n.length-1]]})}export{t};
@@ -1 +1 @@
import{Ft as e,Ht as t,X as n,Yt as r,xt as i}from"./client-DrrW410h.js";var a=n(`n-form-item`);function o(n,{defaultSize:o=`medium`,mergedSize:s,mergedDisabled:c}={}){let l=e(a,null);r(a,null);let u=i(s?()=>s(l):()=>{let{size:e}=n;if(e)return e;if(l){let{mergedSize:e}=l;if(e.value!==void 0)return e.value}return o}),d=i(c?()=>c(l):()=>{let{disabled:e}=n;return e===void 0?l?l.disabled.value:!1:e}),f=i(()=>{let{status:e}=n;return e||l?.mergedValidationStatus.value});return t(()=>{l&&l.restoreValidation()}),{mergedSizeRef:u,mergedDisabledRef:d,mergedStatusRef:f,nTriggerFormBlur(){l&&l.handleContentBlur()},nTriggerFormChange(){l&&l.handleContentChange()},nTriggerFormFocus(){l&&l.handleContentFocus()},nTriggerFormInput(){l&&l.handleContentInput()}}}export{o as n,a as t}; import{It as e,Ut as t,X as n,Xt as r,xt as i}from"./client-Be0b5AZU.js";var a=n(`n-form-item`);function o(n,{defaultSize:o=`medium`,mergedSize:s,mergedDisabled:c}={}){let l=e(a,null);r(a,null);let u=i(s?()=>s(l):()=>{let{size:e}=n;if(e)return e;if(l){let{mergedSize:e}=l;if(e.value!==void 0)return e.value}return o}),d=i(c?()=>c(l):()=>{let{disabled:e}=n;return e===void 0?l?l.disabled.value:!1:e}),f=i(()=>{let{status:e}=n;return e||l?.mergedValidationStatus.value});return t(()=>{l&&l.restoreValidation()}),{mergedSizeRef:u,mergedDisabledRef:d,mergedStatusRef:f,nTriggerFormBlur(){l&&l.handleContentBlur()},nTriggerFormChange(){l&&l.handleContentChange()},nTriggerFormFocus(){l&&l.handleContentFocus()},nTriggerFormInput(){l&&l.handleContentInput()}}}export{o as n,a as t};

Some files were not shown because too many files have changed in this diff Show More