generated from VLADIMIR/template_frontend
add
This commit is contained in:
Vendored
-1
@@ -1 +0,0 @@
|
||||
import{A as e,N as t}from"./auth-Dlv0TZH7.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};
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
import{P as e,j as t}from"./auth-CwtlbtVe.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};
|
||||
@@ -1,4 +1,4 @@
|
||||
import{A as e,I as t,N as n,st as r,x as i}from"./auth-Dlv0TZH7.js";import{B as a,G as o,J as s,K as c,M as l,N as u,V as d,Y as f,Z as p,o as m,r as h,t as g}from"./light-CW1_EUxw.js";import{a as _,c as v,r as y}from"./resolve-slot-DN9_xhmA.js";import{H as b,I as x,L as S,N as C,P as w,R as T,T as E,w as D,z as O}from"./index-DRS1zBKt.js";function k(e){let{lineHeight:t,borderRadius:n,fontWeightStrong:r,baseColor:i,dividerColor:o,actionColor:s,textColor1:c,textColor2:l,closeColorHover:u,closeColorPressed:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,infoColor:g,successColor:_,warningColor:v,errorColor:y,fontSize:b}=e;return Object.assign(Object.assign({},E),{fontSize:b,lineHeight:t,titleFontWeight:r,borderRadius:n,border:`1px solid ${o}`,color:s,titleTextColor:c,iconColor:l,contentTextColor:l,closeBorderRadius:n,closeColorHover:u,closeColorPressed:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,borderInfo:`1px solid ${d(i,a(g,{alpha:.25}))}`,colorInfo:d(i,a(g,{alpha:.08})),titleTextColorInfo:c,iconColorInfo:g,contentTextColorInfo:l,closeColorHoverInfo:u,closeColorPressedInfo:f,closeIconColorInfo:p,closeIconColorHoverInfo:m,closeIconColorPressedInfo:h,borderSuccess:`1px solid ${d(i,a(_,{alpha:.25}))}`,colorSuccess:d(i,a(_,{alpha:.08})),titleTextColorSuccess:c,iconColorSuccess:_,contentTextColorSuccess:l,closeColorHoverSuccess:u,closeColorPressedSuccess:f,closeIconColorSuccess:p,closeIconColorHoverSuccess:m,closeIconColorPressedSuccess:h,borderWarning:`1px solid ${d(i,a(v,{alpha:.33}))}`,colorWarning:d(i,a(v,{alpha:.08})),titleTextColorWarning:c,iconColorWarning:v,contentTextColorWarning:l,closeColorHoverWarning:u,closeColorPressedWarning:f,closeIconColorWarning:p,closeIconColorHoverWarning:m,closeIconColorPressedWarning:h,borderError:`1px solid ${d(i,a(y,{alpha:.25}))}`,colorError:d(i,a(y,{alpha:.08})),titleTextColorError:c,iconColorError:y,contentTextColorError:l,closeColorHoverError:u,closeColorPressedError:f,closeIconColorError:p,closeIconColorHoverError:m,closeIconColorPressedError:h})}var A={name:`Alert`,common:g,self:k},j=c(`alert`,`
|
||||
import{L as e,P as t,S as n,ct as r,j as i}from"./auth-CwtlbtVe.js";import{B as a,G as o,J as s,K as c,M as l,N as u,V as d,Y as f,Z as p,o as m,r as h,t as g}from"./light-BRabMcHj.js";import{a as _,c as v,r as y}from"./resolve-slot-Bet7d-Yr.js";import{H as b,I as x,L as S,N as C,P as w,R as T,T as E,w as D,z as O}from"./index-BXcPK7uX.js";function k(e){let{lineHeight:t,borderRadius:n,fontWeightStrong:r,baseColor:i,dividerColor:o,actionColor:s,textColor1:c,textColor2:l,closeColorHover:u,closeColorPressed:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,infoColor:g,successColor:_,warningColor:v,errorColor:y,fontSize:b}=e;return Object.assign(Object.assign({},E),{fontSize:b,lineHeight:t,titleFontWeight:r,borderRadius:n,border:`1px solid ${o}`,color:s,titleTextColor:c,iconColor:l,contentTextColor:l,closeBorderRadius:n,closeColorHover:u,closeColorPressed:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,borderInfo:`1px solid ${d(i,a(g,{alpha:.25}))}`,colorInfo:d(i,a(g,{alpha:.08})),titleTextColorInfo:c,iconColorInfo:g,contentTextColorInfo:l,closeColorHoverInfo:u,closeColorPressedInfo:f,closeIconColorInfo:p,closeIconColorHoverInfo:m,closeIconColorPressedInfo:h,borderSuccess:`1px solid ${d(i,a(_,{alpha:.25}))}`,colorSuccess:d(i,a(_,{alpha:.08})),titleTextColorSuccess:c,iconColorSuccess:_,contentTextColorSuccess:l,closeColorHoverSuccess:u,closeColorPressedSuccess:f,closeIconColorSuccess:p,closeIconColorHoverSuccess:m,closeIconColorPressedSuccess:h,borderWarning:`1px solid ${d(i,a(v,{alpha:.33}))}`,colorWarning:d(i,a(v,{alpha:.08})),titleTextColorWarning:c,iconColorWarning:v,contentTextColorWarning:l,closeColorHoverWarning:u,closeColorPressedWarning:f,closeIconColorWarning:p,closeIconColorHoverWarning:m,closeIconColorPressedWarning:h,borderError:`1px solid ${d(i,a(y,{alpha:.25}))}`,colorError:d(i,a(y,{alpha:.08})),titleTextColorError:c,iconColorError:y,contentTextColorError:l,closeColorHoverError:u,closeColorPressedError:f,closeIconColorError:p,closeIconColorHoverError:m,closeIconColorPressedError:h})}var A={name:`Alert`,common:g,self:k},j=c(`alert`,`
|
||||
line-height: var(--n-line-height);
|
||||
border-radius: var(--n-border-radius);
|
||||
position: relative;
|
||||
@@ -45,4 +45,4 @@ import{A as e,I as t,N as n,st as r,x as i}from"./auth-Dlv0TZH7.js";import{B as
|
||||
font-size: 16px;
|
||||
line-height: 19px;
|
||||
font-weight: var(--n-title-font-weight);
|
||||
`,[o(`& +`,[s(`content`,{marginTop:`9px`})])]),s(`content`,{transition:`color .3s var(--n-bezier)`,fontSize:`var(--n-font-size)`})]),s(`icon`,{transition:`color .3s var(--n-bezier)`})]),M=e({name:`Alert`,inheritAttrs:!1,props:Object.assign(Object.assign({},h.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:a,mergedRtlRef:o}=u(e),s=h(`Alert`,`-alert`,j,A,e,t),c=m(`Alert`,o,t),d=i(()=>{let{common:{cubicBezierEaseInOut:t},self:n}=s.value,{fontSize:r,borderRadius:i,titleFontWeight:a,lineHeight:o,iconSize:c,iconMargin:l,iconMarginRtl:u,closeIconSize:d,closeBorderRadius:f,closeSize:m,closeMargin:h,closeMarginRtl:g,padding:_}=n,{type:y}=e,{left:b,right:x}=v(l);return{"--n-bezier":t,"--n-color":n[p(`color`,y)],"--n-close-icon-size":d,"--n-close-border-radius":f,"--n-close-color-hover":n[p(`closeColorHover`,y)],"--n-close-color-pressed":n[p(`closeColorPressed`,y)],"--n-close-icon-color":n[p(`closeIconColor`,y)],"--n-close-icon-color-hover":n[p(`closeIconColorHover`,y)],"--n-close-icon-color-pressed":n[p(`closeIconColorPressed`,y)],"--n-icon-color":n[p(`iconColor`,y)],"--n-border":n[p(`border`,y)],"--n-title-text-color":n[p(`titleTextColor`,y)],"--n-content-text-color":n[p(`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":l,"--n-icon-margin-rtl":u,"--n-close-size":m,"--n-close-margin":h,"--n-close-margin-rtl":g,"--n-padding":_,"--n-icon-margin-left":b,"--n-icon-margin-right":x}}),f=a?l(`alert`,i(()=>e.type[0]),d,e):void 0,g=r(!0),_=()=>{let{onAfterLeave:t,onAfterHide:n}=e;t&&t(),n&&n()};return{rtlEnabled:c,mergedClsPrefix:t,mergedBordered:n,visible:g,handleCloseClick:()=>{Promise.resolve(e.onClose?.call(e)).then(e=>{e!==!1&&(g.value=!1)})},handleAfterLeave:()=>{_()},mergedTheme:s,cssVars:a?void 0:d,themeClass:f?.themeClass,onRender:f?.onRender}},render(){var e;return(e=this.onRender)==null||e.call(this),n(C,{onAfterLeave:this.handleAfterLeave},{default:()=>{let{mergedClsPrefix:e,$slots:r}=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?n(`div`,Object.assign({},t(this.$attrs,i)),this.closable&&n(w,{clsPrefix:e,class:`${e}-alert__close`,onClick:this.handleCloseClick}),this.bordered&&n(`div`,{class:`${e}-alert__border`}),this.showIcon&&n(`div`,{class:`${e}-alert__icon`,"aria-hidden":`true`},y(r.icon,()=>[n(b,{clsPrefix:e},{default:()=>{switch(this.type){case`success`:return n(S,null);case`info`:return n(T,null);case`warning`:return n(x,null);case`error`:return n(O,null);default:return null}}})])),n(`div`,{class:[`${e}-alert-body`,this.mergedBordered&&`${e}-alert-body--bordered`]},_(r.header,t=>{let r=t||this.title;return r?n(`div`,{class:`${e}-alert-body__title`},r):null}),r.default&&n(`div`,{class:`${e}-alert-body__content`},r))):null}})}});export{M as t};
|
||||
`,[o(`& +`,[s(`content`,{marginTop:`9px`})])]),s(`content`,{transition:`color .3s var(--n-bezier)`,fontSize:`var(--n-font-size)`})]),s(`icon`,{transition:`color .3s var(--n-bezier)`})]),M=i({name:`Alert`,inheritAttrs:!1,props:Object.assign(Object.assign({},h.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:a,mergedRtlRef:o}=u(e),s=h(`Alert`,`-alert`,j,A,e,t),c=m(`Alert`,o,t),d=n(()=>{let{common:{cubicBezierEaseInOut:t},self:n}=s.value,{fontSize:r,borderRadius:i,titleFontWeight:a,lineHeight:o,iconSize:c,iconMargin:l,iconMarginRtl:u,closeIconSize:d,closeBorderRadius:f,closeSize:m,closeMargin:h,closeMarginRtl:g,padding:_}=n,{type:y}=e,{left:b,right:x}=v(l);return{"--n-bezier":t,"--n-color":n[p(`color`,y)],"--n-close-icon-size":d,"--n-close-border-radius":f,"--n-close-color-hover":n[p(`closeColorHover`,y)],"--n-close-color-pressed":n[p(`closeColorPressed`,y)],"--n-close-icon-color":n[p(`closeIconColor`,y)],"--n-close-icon-color-hover":n[p(`closeIconColorHover`,y)],"--n-close-icon-color-pressed":n[p(`closeIconColorPressed`,y)],"--n-icon-color":n[p(`iconColor`,y)],"--n-border":n[p(`border`,y)],"--n-title-text-color":n[p(`titleTextColor`,y)],"--n-content-text-color":n[p(`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":l,"--n-icon-margin-rtl":u,"--n-close-size":m,"--n-close-margin":h,"--n-close-margin-rtl":g,"--n-padding":_,"--n-icon-margin-left":b,"--n-icon-margin-right":x}}),f=a?l(`alert`,n(()=>e.type[0]),d,e):void 0,g=r(!0),_=()=>{let{onAfterLeave:t,onAfterHide:n}=e;t&&t(),n&&n()};return{rtlEnabled:c,mergedClsPrefix:t,mergedBordered:i,visible:g,handleCloseClick:()=>{Promise.resolve(e.onClose?.call(e)).then(e=>{e!==!1&&(g.value=!1)})},handleAfterLeave:()=>{_()},mergedTheme:s,cssVars:a?void 0:d,themeClass:f?.themeClass,onRender:f?.onRender}},render(){var n;return(n=this.onRender)==null||n.call(this),t(C,{onAfterLeave:this.handleAfterLeave},{default:()=>{let{mergedClsPrefix:n,$slots:r}=this,i={class:[`${n}-alert`,this.themeClass,this.closable&&`${n}-alert--closable`,this.showIcon&&`${n}-alert--show-icon`,!this.title&&this.closable&&`${n}-alert--right-adjust`,this.rtlEnabled&&`${n}-alert--rtl`],style:this.cssVars,role:`alert`};return this.visible?t(`div`,Object.assign({},e(this.$attrs,i)),this.closable&&t(w,{clsPrefix:n,class:`${n}-alert__close`,onClick:this.handleCloseClick}),this.bordered&&t(`div`,{class:`${n}-alert__border`}),this.showIcon&&t(`div`,{class:`${n}-alert__icon`,"aria-hidden":`true`},y(r.icon,()=>[t(b,{clsPrefix:n},{default:()=>{switch(this.type){case`success`:return t(S,null);case`info`:return t(T,null);case`warning`:return t(x,null);case`error`:return t(O,null);default:return null}}})])),t(`div`,{class:[`${n}-alert-body`,this.mergedBordered&&`${n}-alert-body--bordered`]},_(r.header,e=>{let r=e||this.title;return r?t(`div`,{class:`${n}-alert-body__title`},r):null}),r.default&&t(`div`,{class:`${n}-alert-body__content`},r))):null}})}});export{M as t};
|
||||
File diff suppressed because one or more lines are too long
Vendored
+190
File diff suppressed because one or more lines are too long
Vendored
-214
File diff suppressed because one or more lines are too long
Vendored
+1
@@ -0,0 +1 @@
|
||||
import{A as e,At as t,C as n,E as r,J as i,K as a,_ as o,ct as s,d as c,j as l,jt as u,k as d,nt as f,pt as p,w as m}from"./auth-CwtlbtVe.js";import{t as h}from"./Tag-Dr74wMsP.js";import{r as g,t as _}from"./_plugin-vue_export-helper-CeoQyasH.js";import{t as v}from"./HeaderMenu-DA_N0lwe.js";var y={class:`center-block-custom`},b={class:`width1200 display-table catalog-grid`},x=[`onClick`],S={class:`scenario-content-block`},C={class:`scenario-title`},w={class:`scenario-description`},T={class:`scenario-label`},E=_(l({__name:`CatalogPage`,setup(l){let m=g(),_=s([]),E=c();async function D(){_.value=[];let e=await m.GetScenariosCatalog({});_.value=e.scenarios}async function O(e){E.push(`/scenarios/`+e)}return D(),(s,c)=>(a(),r(o,null,[n(`div`,y,[n(`div`,b,[(a(!0),r(o,null,i(_.value,i=>(a(),r(`div`,{class:`scenario-block`,onClick:e=>O(i.id),key:i.id},[n(`div`,{class:`scenario-image-block scenario-image`,style:t({backgroundImage:`url(${i.image})`})},null,4),n(`div`,S,[n(`p`,C,u(i.name),1),n(`p`,w,u(i.description),1),n(`p`,T,[e(p(h),{bordered:!1,type:`success`,class:`status-block`},{default:f(()=>[d(`Автор: `+u(i.author?.username),1)]),_:2},1024)])])],8,x))),128))])]),e(v,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-14025c2d`]]),D=l({__name:`CatalogView`,setup(e){return(e,t)=>(a(),m(E))}});export{D as default};
|
||||
Vendored
-1
@@ -1 +0,0 @@
|
||||
import{A as e,At as t,C as n,G as r,O as i,S as a,T as o,ft as s,g as c,k as l,kt as u,q as d,st as f,tt as p,u as m}from"./auth-Dlv0TZH7.js";import{t as h}from"./Tag-DWY4EXx8.js";import{r as g,t as _}from"./_plugin-vue_export-helper-DBdhPFAA.js";import{t as v}from"./HeaderMenu-BXoZTzNp.js";var y={class:`center-block-custom`},b={class:`width1200 display-table catalog-grid`},x=[`onClick`],S={class:`scenario-content-block`},C={class:`scenario-title`},w={class:`scenario-description`},T={class:`scenario-label`},E=_(e({__name:`CatalogPage`,setup(e){let n=g(),_=f([]),E=m();async function D(){_.value=[];let e=await n.GetScenariosCatalog({});_.value=e.scenarios}async function O(e){E.push(`/scenarios/`+e)}return D(),(e,n)=>(r(),o(c,null,[a(`div`,y,[a(`div`,b,[(r(!0),o(c,null,d(_.value,e=>(r(),o(`div`,{class:`scenario-block`,onClick:t=>O(e.id),key:e.id},[a(`div`,{class:`scenario-image-block scenario-image`,style:u({backgroundImage:`url(${e.image})`})},null,4),a(`div`,S,[a(`p`,C,t(e.name),1),a(`p`,w,t(e.description),1),a(`p`,T,[l(s(h),{bordered:!1,type:`success`,class:`status-block`},{default:p(()=>[i(`Автор: `+t(e.author?.username),1)]),_:2},1024)])])],8,x))),128))])]),l(v,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-14025c2d`]]),D=e({__name:`CatalogView`,setup(e){return(e,t)=>(r(),n(E))}});export{D as default};
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
import{A as e,E as t,K as n,_ as r,j as i}from"./auth-CwtlbtVe.js";import{t as a}from"./DocsPage-FdLga6vJ.js";import{t as o}from"./HeaderMenu-DA_N0lwe.js";var s=i({__name:`ConsentView`,setup(i){return(i,s)=>(n(),t(r,null,[e(a,{kind:`consent`}),e(o)],64))}});export{s as default};
|
||||
Vendored
-1
@@ -1 +0,0 @@
|
||||
import{A as e,G as t,T as n,g as r,k as i}from"./auth-Dlv0TZH7.js";import{t as a}from"./DocsPage-Dkoum0aK.js";import{t as o}from"./HeaderMenu-BXoZTzNp.js";var s=e({__name:`ConsentView`,setup(e){return(e,s)=>(t(),n(r,null,[i(a,{kind:`consent`}),i(o)],64))}});export{s as default};
|
||||
Vendored
-43
@@ -1,43 +0,0 @@
|
||||
import{A as e,At as t,C as n,G as r,H as i,N as a,O as o,S as s,T as c,a as l,et as u,ft as d,k as f,st as p,tt as m,x as h}from"./auth-Dlv0TZH7.js";import{G as g,K as _,M as v,N as y,Y as b,Z as x,r as S}from"./light-CW1_EUxw.js";import{l as C}from"./resolve-slot-DN9_xhmA.js";import{t as w}from"./use-compitable-s8dIAO0Z.js";import{t as T}from"./fade-in.cssr-BZpV6jF9.js";import{t as E}from"./Alert-DZtGf-H_.js";import{M as D,Y as O,j as k,o as A}from"./index-DRS1zBKt.js";import{r as j,t as M}from"./_plugin-vue_export-helper-DBdhPFAA.js";import{t as N}from"./HeaderText-BoxSNnZQ.js";var P=g([g(`@keyframes spin-rotate`,`
|
||||
from {
|
||||
transform: rotate(0);
|
||||
}
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
`),_(`spin-container`,`
|
||||
position: relative;
|
||||
`,[_(`spin-body`,`
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translateX(-50%) translateY(-50%);
|
||||
`,[T()])]),_(`spin-body`,`
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
`),_(`spin`,`
|
||||
display: inline-flex;
|
||||
height: var(--n-size);
|
||||
width: var(--n-size);
|
||||
font-size: var(--n-size);
|
||||
color: var(--n-color);
|
||||
`,[b(`rotate`,`
|
||||
animation: spin-rotate 2s linear infinite;
|
||||
`)]),_(`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;
|
||||
`),_(`spin-content`,`
|
||||
opacity: 1;
|
||||
transition: opacity .3s var(--n-bezier);
|
||||
pointer-events: all;
|
||||
`,[b(`spinning`,`
|
||||
user-select: none;
|
||||
-webkit-user-select: none;
|
||||
pointer-events: none;
|
||||
opacity: var(--n-opacity-spinning);
|
||||
`)])]),F={small:20,medium:18,large:16},I=e({name:`Spin`,props:Object.assign(Object.assign(Object.assign({},S.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}),D),slots:Object,setup(e){let{mergedClsPrefixRef:t,inlineThemeDisabled:n}=y(e),r=S(`Spin`,`-spin`,P,A,e,t),i=h(()=>{let{size:t}=e,{common:{cubicBezierEaseInOut:n},self:i}=r.value,{opacitySpinning:a,color:o,textColor:s}=i;return{"--n-bezier":n,"--n-opacity-spinning":a,"--n-size":typeof t==`number`?C(t):i[x(`size`,t)],"--n-color":o,"--n-text-color":s}}),a=n?v(`spin`,h(()=>{let{size:t}=e;return typeof t==`number`?String(t):t[0]}),i,e):void 0,o=w(e,[`spinning`,`show`]),s=p(!1);return u(t=>{let n;if(o.value){let{delay:r}=e;if(r){n=window.setTimeout(()=>{s.value=!0},r),t(()=>{clearTimeout(n)});return}}s.value=o.value}),{mergedClsPrefix:t,active:s,mergedStrokeWidth:h(()=>{let{strokeWidth:t}=e;if(t!==void 0)return t;let{size:n}=e;return F[typeof n==`number`?`medium`:n]}),cssVars:n?void 0:i,themeClass:a?.themeClass,onRender:a?.onRender}},render(){var e;let{$slots:t,mergedClsPrefix:n,description:r}=this,i=t.icon&&this.rotate,o=(r||t.description)&&a(`div`,{class:`${n}-spin-description`},r||t.description?.call(t)),s=t.icon?a(`div`,{class:[`${n}-spin-body`,this.themeClass]},a(`div`,{class:[`${n}-spin`,i&&`${n}-spin--rotate`],style:t.default?``:this.cssVars},t.icon()),o):a(`div`,{class:[`${n}-spin-body`,this.themeClass]},a(k,{clsPrefix:n,style:t.default?``:this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,radius:this.radius,scale:this.scale,class:`${n}-spin`}),o);return(e=this.onRender)==null||e.call(this),t.default?a(`div`,{class:[`${n}-spin-container`,this.themeClass],style:this.cssVars},a(`div`,{class:[`${n}-spin-content`,this.active&&`${n}-spin-content--spinning`,this.contentClass],style:this.contentStyle},t),a(O,{name:`fade-in-transition`},{default:()=>this.active?s:null})):s}}),L={class:`center-block-custom`},R={class:`width700 doc-page`},z={class:`doc-title`},B={key:0,class:`doc-loading`},V={key:2,class:`paper-block`},H={class:`paper`},U={class:`doc-text`},W={class:`docs-links`},G=M(e({__name:`DocsPage`,props:{kind:{}},setup(e){let a=e,u={terms:`Пользовательское соглашение`,privacy:`Политика конфиденциальности`,consent:`Согласие на обработку персональных данных`},h=p(``),g=p(!0),_=p(``);return i(async()=>{let e=j(),t={terms:()=>e.GetTerms({}),privacy:()=>e.GetPrivacy({}),consent:()=>e.GetConsent({})};try{let e=await t[a.kind]();e.error?_.value=e.error:h.value=e.text||``}catch(e){_.value=e instanceof Error?e.message:`Не удалось загрузить документ`}finally{g.value=!1}}),(e,i)=>(r(),c(`div`,L,[s(`div`,R,[s(`h1`,z,[f(N,null,{default:m(()=>[o(t(u[a.kind]),1)]),_:1})]),g.value?(r(),c(`div`,B,[f(d(I),{size:`large`})])):_.value?(r(),n(d(E),{key:1,type:`error`,"show-icon":!1,class:`doc-error`},{default:m(()=>[o(t(_.value),1)]),_:1})):(r(),c(`div`,V,[s(`div`,H,[s(`p`,U,t(h.value),1)]),i[0]||=s(`div`,{class:`paper-shadow paper-shadow-left`},null,-1),i[1]||=s(`div`,{class:`paper-shadow paper-shadow-right`},null,-1)])),s(`div`,W,[i[5]||=o(` Смотрите также: `,-1),f(d(l),{to:`/user-agreement`,class:`docs-link`},{default:m(()=>[...i[2]||=[o(`Пользовательское соглашение`,-1)]]),_:1}),i[6]||=o(` · `,-1),f(d(l),{to:`/privacy-policy`,class:`docs-link`},{default:m(()=>[...i[3]||=[o(`Политика конфиденциальности`,-1)]]),_:1}),i[7]||=o(` · `,-1),f(d(l),{to:`/consent`,class:`docs-link`},{default:m(()=>[...i[4]||=[o(`Согласие на обработку персональных данных`,-1)]]),_:1})])])]))}}),[[`__scopeId`,`data-v-f5dde12c`]]);export{G as t};
|
||||
Vendored
+43
@@ -0,0 +1,43 @@
|
||||
import{A as e,C as t,E as n,K as r,P as i,S as a,U as o,ct as s,j as c,jt as l,k as u,nt as d,o as f,pt as p,tt as m,w as h}from"./auth-CwtlbtVe.js";import{G as g,K as _,M as v,N as y,Y as b,Z as x,r as S}from"./light-BRabMcHj.js";import{l as C}from"./resolve-slot-Bet7d-Yr.js";import{t as w}from"./use-compitable-BlhpvjTe.js";import{t as T}from"./fade-in.cssr-DOGWbHPq.js";import{t as E}from"./Alert-DWQspOo7.js";import{M as D,Z as O,j as k,o as A}from"./index-BXcPK7uX.js";import{r as j,t as M}from"./_plugin-vue_export-helper-CeoQyasH.js";import{t as N}from"./HeaderText-DehgMXyU.js";var P=g([g(`@keyframes spin-rotate`,`
|
||||
from {
|
||||
transform: rotate(0);
|
||||
}
|
||||
to {
|
||||
transform: rotate(360deg);
|
||||
}
|
||||
`),_(`spin-container`,`
|
||||
position: relative;
|
||||
`,[_(`spin-body`,`
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translateX(-50%) translateY(-50%);
|
||||
`,[T()])]),_(`spin-body`,`
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
`),_(`spin`,`
|
||||
display: inline-flex;
|
||||
height: var(--n-size);
|
||||
width: var(--n-size);
|
||||
font-size: var(--n-size);
|
||||
color: var(--n-color);
|
||||
`,[b(`rotate`,`
|
||||
animation: spin-rotate 2s linear infinite;
|
||||
`)]),_(`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;
|
||||
`),_(`spin-content`,`
|
||||
opacity: 1;
|
||||
transition: opacity .3s var(--n-bezier);
|
||||
pointer-events: all;
|
||||
`,[b(`spinning`,`
|
||||
user-select: none;
|
||||
-webkit-user-select: none;
|
||||
pointer-events: none;
|
||||
opacity: var(--n-opacity-spinning);
|
||||
`)])]),F={small:20,medium:18,large:16},I=c({name:`Spin`,props:Object.assign(Object.assign(Object.assign({},S.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}),D),slots:Object,setup(e){let{mergedClsPrefixRef:t,inlineThemeDisabled:n}=y(e),r=S(`Spin`,`-spin`,P,A,e,t),i=a(()=>{let{size:t}=e,{common:{cubicBezierEaseInOut:n},self:i}=r.value,{opacitySpinning:a,color:o,textColor:s}=i;return{"--n-bezier":n,"--n-opacity-spinning":a,"--n-size":typeof t==`number`?C(t):i[x(`size`,t)],"--n-color":o,"--n-text-color":s}}),o=n?v(`spin`,a(()=>{let{size:t}=e;return typeof t==`number`?String(t):t[0]}),i,e):void 0,c=w(e,[`spinning`,`show`]),l=s(!1);return m(t=>{let n;if(c.value){let{delay:r}=e;if(r){n=window.setTimeout(()=>{l.value=!0},r),t(()=>{clearTimeout(n)});return}}l.value=c.value}),{mergedClsPrefix:t,active:l,mergedStrokeWidth:a(()=>{let{strokeWidth:t}=e;if(t!==void 0)return t;let{size:n}=e;return F[typeof n==`number`?`medium`:n]}),cssVars:n?void 0:i,themeClass:o?.themeClass,onRender:o?.onRender}},render(){var e;let{$slots:t,mergedClsPrefix:n,description:r}=this,a=t.icon&&this.rotate,o=(r||t.description)&&i(`div`,{class:`${n}-spin-description`},r||t.description?.call(t)),s=t.icon?i(`div`,{class:[`${n}-spin-body`,this.themeClass]},i(`div`,{class:[`${n}-spin`,a&&`${n}-spin--rotate`],style:t.default?``:this.cssVars},t.icon()),o):i(`div`,{class:[`${n}-spin-body`,this.themeClass]},i(k,{clsPrefix:n,style:t.default?``:this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,radius:this.radius,scale:this.scale,class:`${n}-spin`}),o);return(e=this.onRender)==null||e.call(this),t.default?i(`div`,{class:[`${n}-spin-container`,this.themeClass],style:this.cssVars},i(`div`,{class:[`${n}-spin-content`,this.active&&`${n}-spin-content--spinning`,this.contentClass],style:this.contentStyle},t),i(O,{name:`fade-in-transition`},{default:()=>this.active?s:null})):s}}),L={class:`center-block-custom`},R={class:`width700 doc-page`},z={class:`doc-title`},B={key:0,class:`doc-loading`},V={key:2,class:`paper-block`},H={class:`paper`},U={class:`doc-text`},W={class:`docs-links`},G=M(c({__name:`DocsPage`,props:{kind:{}},setup(i){let a=i,c={terms:`Пользовательское соглашение`,privacy:`Политика конфиденциальности`,consent:`Согласие на обработку персональных данных`},m=s(``),g=s(!0),_=s(``);return o(async()=>{let e=j(),t={terms:()=>e.GetTerms({}),privacy:()=>e.GetPrivacy({}),consent:()=>e.GetConsent({})};try{let e=await t[a.kind]();e.error?_.value=e.error:m.value=e.text||``}catch(e){_.value=e instanceof Error?e.message:`Не удалось загрузить документ`}finally{g.value=!1}}),(i,o)=>(r(),n(`div`,L,[t(`div`,R,[t(`h1`,z,[e(N,null,{default:d(()=>[u(l(c[a.kind]),1)]),_:1})]),g.value?(r(),n(`div`,B,[e(p(I),{size:`large`})])):_.value?(r(),h(p(E),{key:1,type:`error`,"show-icon":!1,class:`doc-error`},{default:d(()=>[u(l(_.value),1)]),_:1})):(r(),n(`div`,V,[t(`div`,H,[t(`p`,U,l(m.value),1)]),o[0]||=t(`div`,{class:`paper-shadow paper-shadow-left`},null,-1),o[1]||=t(`div`,{class:`paper-shadow paper-shadow-right`},null,-1)])),t(`div`,W,[o[5]||=u(` Смотрите также: `,-1),e(p(f),{to:`/user-agreement`,class:`docs-link`},{default:d(()=>[...o[2]||=[u(`Пользовательское соглашение`,-1)]]),_:1}),o[6]||=u(` · `,-1),e(p(f),{to:`/privacy-policy`,class:`docs-link`},{default:d(()=>[...o[3]||=[u(`Политика конфиденциальности`,-1)]]),_:1}),o[7]||=u(` · `,-1),e(p(f),{to:`/consent`,class:`docs-link`},{default:d(()=>[...o[4]||=[u(`Согласие на обработку персональных данных`,-1)]]),_:1})])])]))}}),[[`__scopeId`,`data-v-f5dde12c`]]);export{G as t};
|
||||
Vendored
-1
@@ -1 +0,0 @@
|
||||
import{A as e,N as t,x as n}from"./auth-Dlv0TZH7.js";import{N as r,Z as i,o as a,r as o}from"./light-CW1_EUxw.js";import{o as s,s as c}from"./resolve-slot-DN9_xhmA.js";import{s as l}from"./Button-D7SvPTTG.js";import{t as u}from"./get-slot-6kXJmSMP.js";import{l as d}from"./index-DRS1zBKt.js";function f(){return d}var p={name:`Flex`,self:f},m=e({name:`Flex`,props:Object.assign(Object.assign({},o.props),{align:String,justify:{type:String,default:`start`},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:`medium`},wrap:{type:Boolean,default:!0}}),setup(e){let{mergedClsPrefixRef:t,mergedRtlRef:l}=r(e),u=o(`Flex`,`-flex`,void 0,p,e,t);return{rtlEnabled:a(`Flex`,l,t),mergedClsPrefix:t,margin:n(()=>{let{size:t}=e;if(Array.isArray(t))return{horizontal:t[0],vertical:t[1]};if(typeof t==`number`)return{horizontal:t,vertical:t};let{self:{[i(`gap`,t)]:n}}=u.value,{row:r,col:a}=c(n);return{horizontal:s(a),vertical:s(r)}})}},render(){let{vertical:e,reverse:n,align:r,inline:i,justify:a,margin:o,wrap:s,mergedClsPrefix:c,rtlEnabled:d}=this,f=l(u(this),!1);return f.length?t(`div`,{role:`none`,class:[`${c}-flex`,d&&`${c}-flex--rtl`],style:{display:i?`inline-flex`:`flex`,flexDirection:e&&!n?`column`:e&&n?`column-reverse`:!e&&n?`row-reverse`:`row`,justifyContent:a,flexWrap:!s||e?`nowrap`:`wrap`,alignItems:r,gap:`${o.vertical}px ${o.horizontal}px`}},f):null}});export{m as t};
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
import{P as e,S as t,j as n}from"./auth-CwtlbtVe.js";import{N as r,Z as i,o as a,r as o}from"./light-BRabMcHj.js";import{o as s,s as c}from"./resolve-slot-Bet7d-Yr.js";import{s as l}from"./Button-DkAW_2H6.js";import{t as u}from"./get-slot-6kXJmSMP.js";import{l as d}from"./index-BXcPK7uX.js";function f(){return d}var p={name:`Flex`,self:f},m=n({name:`Flex`,props:Object.assign(Object.assign({},o.props),{align:String,justify:{type:String,default:`start`},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:`medium`},wrap:{type:Boolean,default:!0}}),setup(e){let{mergedClsPrefixRef:n,mergedRtlRef:l}=r(e),u=o(`Flex`,`-flex`,void 0,p,e,n);return{rtlEnabled:a(`Flex`,l,n),mergedClsPrefix:n,margin:t(()=>{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: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};
|
||||
Vendored
+1
File diff suppressed because one or more lines are too long
Vendored
-1
File diff suppressed because one or more lines are too long
-1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
Vendored
+1
@@ -0,0 +1 @@
|
||||
.team-block[data-v-44d38d65]{background-color:#222;border:1px solid #222;border-radius:10px;margin:10px 0}.team-block-hover[data-v-44d38d65]:hover{color:#63e2b7;cursor:pointer;border:1px solid #63e2b7}.team-content-block[data-v-44d38d65]{padding:20px}.team-name-block[data-v-44d38d65]{font-size:20px;font-weight:600}.settings-icon[data-v-44d38d65]{width:20px}.link-button[data-v-44d38d65]{width:100%;margin-top:20px}.place-image-plus[data-v-44d38d65]{justify-content:center;align-items:center;font-size:30px;display:flex}.name-text[data-v-44d38d65]{background-color:#ffffff1a;border-radius:3px;padding:3px}.qr-block[data-v-44d38d65]{background-color:#fff;margin:0 auto;padding:12px;line-height:0;display:inline-block}.give-application-image-block[data-v-44d38d65]{background-image:url(/assets/paper_white-ZSlTzOTx.jpg);background-size:cover;max-width:320px;margin:10px 0 5px;padding:7px;box-shadow:0 3px 15px #626262}.give-application-image[data-v-44d38d65]{width:100%}.give-application-audio[data-v-44d38d65]{width:100%;margin:10px 0 5px}.give-application-pdf-link[data-v-44d38d65]{margin:10px 0 5px;text-decoration:underline;display:inline-block}.answers-empty[data-v-44d38d65]{color:#777}.answers-question-block[data-v-44d38d65]{background-color:#222;border-radius:8px;margin:15px 0;padding:12px}.answers-question-title[data-v-44d38d65]{margin:0 0 4px;font-size:17px;font-weight:600}.answers-question-answer[data-v-44d38d65]{color:#aaa;margin:0 0 10px}.correct-answer[data-v-44d38d65]{color:gold;white-space:pre-wrap;margin-top:4px;font-weight:500;display:inline-block}.answers-team-row[data-v-44d38d65]{background-color:#ffffff0d;border-radius:6px;flex-flow:wrap;align-items:center;gap:10px;margin:8px 0;padding:8px 10px;display:flex}.answers-team-name[data-v-44d38d65]{width:180px;font-weight:600}.answers-team-answer[data-v-44d38d65]{color:#aaa;white-space:pre-wrap;flex:200px}.answers-score-input[data-v-44d38d65]{width:110px}.screens-block[data-v-44d38d65]{background-color:#222;border-radius:10px;margin:12px 0;padding:16px}.screens-title[data-v-44d38d65]{margin-bottom:12px;font-size:18px;font-weight:600}.screen-row[data-v-44d38d65]{border-top:1px solid #ffffff1a;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;display:flex}.screen-status[data-v-44d38d65]{color:#aaa;font-size:13px}.screen-error[data-v-44d38d65]{color:#f2a2a2;font-size:13px}.screen-mode-controls[data-v-44d38d65]{margin-top:12px}.map-block[data-v-44d38d65]{background-color:#222;border-radius:10px;margin:12px 0;padding:16px}.map-field[data-v-44d38d65]{cursor:grab;touch-action:none;background-color:#151515;border:1px dashed #fff3;height:420px;position:relative;overflow:hidden}.map-field[data-v-44d38d65]:active{cursor:grabbing}.map-canvas[data-v-44d38d65]{transform-origin:0 0;background-image:linear-gradient(#ffffff14 1px,#0000 1px),linear-gradient(90deg,#ffffff14 1px,#0000 1px);background-size:20px 20px;width:2000px;height:1000px;position:absolute}.map-item[data-v-44d38d65]{cursor:grab;-webkit-user-select:none;user-select:none;border-radius:6px;min-width:90px;padding:8px 24px 8px 10px;position:absolute}.map-item[data-v-44d38d65]:active{cursor:grabbing}.map-screen[data-v-44d38d65]{background-color:#355b75}.map-team[data-v-44d38d65]{background-color:#48633a}.map-item small[data-v-44d38d65]{opacity:.75;display:block}.map-item button[data-v-44d38d65]{color:inherit;cursor:pointer;background:0 0;border:0;font-size:16px;position:absolute;top:5px;right:5px}.map-hidden-items[data-v-44d38d65]{margin-top:10px}
|
||||
Vendored
+7
File diff suppressed because one or more lines are too long
Vendored
-7
File diff suppressed because one or more lines are too long
Vendored
-1
@@ -1 +0,0 @@
|
||||
.team-block[data-v-994fc09f]{background-color:#222;border:1px solid #222;border-radius:10px;margin:10px 0}.team-block-hover[data-v-994fc09f]:hover{color:#63e2b7;cursor:pointer;border:1px solid #63e2b7}.team-content-block[data-v-994fc09f]{padding:20px}.team-name-block[data-v-994fc09f]{font-size:20px;font-weight:600}.settings-icon[data-v-994fc09f]{width:20px}.link-button[data-v-994fc09f]{width:100%;margin-top:20px}.place-image-plus[data-v-994fc09f]{justify-content:center;align-items:center;font-size:30px;display:flex}.name-text[data-v-994fc09f]{background-color:#ffffff1a;border-radius:3px;padding:3px}.qr-block[data-v-994fc09f]{background-color:#fff;margin:0 auto;padding:12px;line-height:0;display:inline-block}.give-application-image-block[data-v-994fc09f]{background-image:url(/assets/paper_white-ZSlTzOTx.jpg);background-size:cover;max-width:320px;margin:10px 0 5px;padding:7px;box-shadow:0 3px 15px #626262}.give-application-image[data-v-994fc09f]{width:100%}.give-application-audio[data-v-994fc09f]{width:100%;margin:10px 0 5px}.give-application-pdf-link[data-v-994fc09f]{margin:10px 0 5px;text-decoration:underline;display:inline-block}.answers-empty[data-v-994fc09f]{color:#777}.answers-question-block[data-v-994fc09f]{background-color:#222;border-radius:8px;margin:15px 0;padding:12px}.answers-question-title[data-v-994fc09f]{margin:0 0 4px;font-size:17px;font-weight:600}.answers-question-answer[data-v-994fc09f]{color:#aaa;margin:0 0 10px}.correct-answer[data-v-994fc09f]{color:gold;white-space:pre-wrap;margin-top:4px;font-weight:500;display:inline-block}.answers-team-row[data-v-994fc09f]{background-color:#ffffff0d;border-radius:6px;flex-flow:wrap;align-items:center;gap:10px;margin:8px 0;padding:8px 10px;display:flex}.answers-team-name[data-v-994fc09f]{width:180px;font-weight:600}.answers-team-answer[data-v-994fc09f]{color:#aaa;white-space:pre-wrap;flex:200px}.answers-score-input[data-v-994fc09f]{width:110px}.screens-block[data-v-994fc09f]{background-color:#222;border-radius:10px;margin:12px 0;padding:16px}.screens-title[data-v-994fc09f]{margin-bottom:12px;font-size:18px;font-weight:600}.screen-row[data-v-994fc09f]{border-top:1px solid #ffffff1a;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;display:flex}.screen-status[data-v-994fc09f]{color:#aaa;font-size:13px}.screen-error[data-v-994fc09f]{color:#f2a2a2;font-size:13px}.screen-mode-controls[data-v-994fc09f]{margin-top:12px}.map-block[data-v-994fc09f]{background-color:#222;border-radius:10px;margin:12px 0;padding:16px}.map-field[data-v-994fc09f]{cursor:grab;touch-action:none;background-color:#151515;border:1px dashed #fff3;height:420px;position:relative;overflow:hidden}.map-field[data-v-994fc09f]:active{cursor:grabbing}.map-canvas[data-v-994fc09f]{transform-origin:0 0;background-image:linear-gradient(#ffffff14 1px,#0000 1px),linear-gradient(90deg,#ffffff14 1px,#0000 1px);background-size:20px 20px;width:2000px;height:1000px;position:absolute}.map-item[data-v-994fc09f]{cursor:grab;-webkit-user-select:none;user-select:none;border-radius:6px;min-width:90px;padding:8px 24px 8px 10px;position:absolute}.map-item[data-v-994fc09f]:active{cursor:grabbing}.map-screen[data-v-994fc09f]{background-color:#355b75}.map-team[data-v-994fc09f]{background-color:#48633a}.map-item small[data-v-994fc09f]{opacity:.75;display:block}.map-item button[data-v-994fc09f]{color:inherit;cursor:pointer;background:0 0;border:0;font-size:16px;position:absolute;top:5px;right:5px}.map-hidden-items[data-v-994fc09f]{margin-top:10px}
|
||||
Vendored
-362
File diff suppressed because one or more lines are too long
Vendored
+362
File diff suppressed because one or more lines are too long
Vendored
-1
@@ -1 +0,0 @@
|
||||
import{A as e,G as t,Ot as n,S as r,T as i,ft as a,k as o,st as s,t as c,tt as l,u,w as d}from"./auth-Dlv0TZH7.js";import{n as f,r as p,t as m}from"./_plugin-vue_export-helper-DBdhPFAA.js";var h={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},g=e({name:`MenuOutlined`,render:function(e,n){return t(),i(`svg`,h,n[0]||=[r(`path`,{d:`M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z`,fill:`currentColor`},null,-1)])}}),_={class:`menu-block`},v={class:`right-group`},y=m(e({__name:`HeaderMenu`,props:{active:{type:String,required:!1}},setup(e){let m=e,h=c(),y=u(),b=p(),x=s([]);async function S(){x.value=[];let e=await b.GetPermissions({});x.value=e.permissions}S();function C(e){return x.value.includes(e)}let w=()=>{y.push(`/login`)},T=()=>{h.logout(),y.push(`/login`)},E=s(!1);return(e,s)=>(t(),i(`div`,_,[r(`div`,{onClick:s[0]||=e=>E.value=!E.value,class:`burger-button`},[o(a(f),{class:`burger-icon`,size:`28`},{default:l(()=>[o(a(g))]),_:1})]),r(`div`,{class:n([`left-group menu-buttons-block`,E.value?``:`menu-buttons-block-active`])},[r(`div`,{class:n([`menu-item-block`,{active:m.active==`main`}]),onClick:s[1]||=e=>a(y).push(`/`)},` Главная `,2),a(h).hasRole(`user`)?(t(),i(`div`,{key:0,class:n([`menu-item-block`,{active:m.active==`office`}]),onClick:s[2]||=e=>a(y).push(`/office`)},` Кабинет `,2)):d(``,!0),C(`games_page`)?(t(),i(`div`,{key:1,class:n([`menu-item-block`,{active:m.active==`games`}]),onClick:s[3]||=e=>a(y).push(`/games`)},` Игры `,2)):d(``,!0),r(`div`,{class:n([`menu-item-block`,{active:m.active==`catalog`}]),onClick:s[4]||=e=>a(y).push(`/catalog`)},` Каталог `,2),C(`scenarios_page`)?(t(),i(`div`,{key:2,class:n([`menu-item-block`,{active:m.active==`scenarios`}]),onClick:s[5]||=e=>a(y).push(`/scenarios`)},` Мои сценарии `,2)):d(``,!0),C(`users_page`)?(t(),i(`div`,{key:3,class:n([`menu-item-block`,{active:m.active==`users`}]),onClick:s[6]||=e=>a(y).push(`/users`)},` Пользователи `,2)):d(``,!0)],2),r(`div`,v,[a(h).isAuthenticated?d(``,!0):(t(),i(`div`,{key:0,class:`menu-item-block right`,onClick:w},` Войти `)),a(h).isAuthenticated?(t(),i(`div`,{key:1,class:`menu-item-block right`,onClick:T},` Выйти `)):d(``,!0)])]))}}),[[`__scopeId`,`data-v-f920c62b`]]);export{y as t};
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
import{A as e,C as t,E as n,K as r,T as i,ct as a,d as o,j as s,kt as c,nt as l,pt as u,t as d}from"./auth-CwtlbtVe.js";import{n as f,r as p,t as m}from"./_plugin-vue_export-helper-CeoQyasH.js";var h={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},g=s({name:`MenuOutlined`,render:function(e,i){return r(),n(`svg`,h,i[0]||=[t(`path`,{d:`M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z`,fill:`currentColor`},null,-1)])}}),_={class:`menu-block`},v={class:`right-group`},y=m(s({__name:`HeaderMenu`,props:{active:{type:String,required:!1}},setup(s){let m=s,h=d(),y=o(),b=p(),x=a([]);async function S(){x.value=[];let e=await b.GetPermissions({});x.value=e.permissions}S();function C(e){return x.value.includes(e)}let w=()=>{y.push(`/login`)},T=()=>{h.logout(),y.push(`/login`)},E=a(!1);return(a,o)=>(r(),n(`div`,_,[t(`div`,{onClick:o[0]||=e=>E.value=!E.value,class:`burger-button`},[e(u(f),{class:`burger-icon`,size:`28`},{default:l(()=>[e(u(g))]),_:1})]),t(`div`,{class:c([`left-group menu-buttons-block`,E.value?``:`menu-buttons-block-active`])},[t(`div`,{class:c([`menu-item-block`,{active:m.active==`main`}]),onClick:o[1]||=e=>u(y).push(`/`)},` Главная `,2),u(h).hasRole(`user`)?(r(),n(`div`,{key:0,class:c([`menu-item-block`,{active:m.active==`office`}]),onClick:o[2]||=e=>u(y).push(`/office`)},` Кабинет `,2)):i(``,!0),C(`games_page`)?(r(),n(`div`,{key:1,class:c([`menu-item-block`,{active:m.active==`games`}]),onClick:o[3]||=e=>u(y).push(`/games`)},` Игры `,2)):i(``,!0),t(`div`,{class:c([`menu-item-block`,{active:m.active==`catalog`}]),onClick:o[4]||=e=>u(y).push(`/catalog`)},` Каталог `,2),C(`scenarios_page`)?(r(),n(`div`,{key:2,class:c([`menu-item-block`,{active:m.active==`scenarios`}]),onClick:o[5]||=e=>u(y).push(`/scenarios`)},` Мои сценарии `,2)):i(``,!0),C(`users_page`)?(r(),n(`div`,{key:3,class:c([`menu-item-block`,{active:m.active==`users`}]),onClick:o[6]||=e=>u(y).push(`/users`)},` Пользователи `,2)):i(``,!0)],2),t(`div`,v,[u(h).isAuthenticated?i(``,!0):(r(),n(`div`,{key:0,class:`menu-item-block right`,onClick:w},` Войти `)),u(h).isAuthenticated?(r(),n(`div`,{key:1,class:`menu-item-block right`,onClick:T},` Выйти `)):i(``,!0)])]))}}),[[`__scopeId`,`data-v-f920c62b`]]);export{y as t};
|
||||
Vendored
-1
@@ -1 +0,0 @@
|
||||
import{A as e,G as t,J as n,T as r}from"./auth-Dlv0TZH7.js";import{t as i}from"./_plugin-vue_export-helper-DBdhPFAA.js";var a={class:`text-with-font`},o=i(e({__name:`HeaderText`,setup(e){return(e,i)=>(t(),r(`span`,a,[n(e.$slots,`default`,{},void 0,!0)]))}}),[[`__scopeId`,`data-v-689794e0`]]);export{o as t};
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
import{E as e,K as t,Y as n,j as r}from"./auth-CwtlbtVe.js";import{t as i}from"./_plugin-vue_export-helper-CeoQyasH.js";var a={class:`text-with-font`},o=i(r({__name:`HeaderText`,setup(r){return(r,i)=>(t(),e(`span`,a,[n(r.$slots,`default`,{},void 0,!0)]))}}),[[`__scopeId`,`data-v-689794e0`]]);export{o as t};
|
||||
Vendored
-1
@@ -1 +0,0 @@
|
||||
import{A as e,G as t,S as n,T as r,g as i,k as a}from"./auth-Dlv0TZH7.js";import{t as o}from"./HeaderMenu-BXoZTzNp.js";var s=e({__name:`HomeView`,setup(e){return(e,s)=>(t(),r(i,null,[s[0]||=n(`div`,{class:`center-block-custom content-block center-middle-block-custom height80`},[n(`div`,null,[n(`h1`,{class:`font-text`},`Вечерний детектив`),n(`h3`,{class:`font-text`},`Дело №0`),n(`p`,{class:`content-text`},`Поиграем?`)])],-1),a(o,{active:`main`})],64))}});export{s as default};
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
import{A as e,C as t,E as n,K as r,_ as i,j as a}from"./auth-CwtlbtVe.js";import{t as o}from"./HeaderMenu-DA_N0lwe.js";var s=a({__name:`HomeView`,setup(a){return(a,s)=>(r(),n(i,null,[s[0]||=t(`div`,{class:`center-block-custom content-block center-middle-block-custom height80`},[t(`div`,null,[t(`h1`,{class:`font-text`},`Вечерний детектив`),t(`h3`,{class:`font-text`},`Дело №0`),t(`p`,{class:`content-text`},`Поиграем?`)])],-1),e(o,{active:`main`})],64))}});export{s as default};
|
||||
Vendored
+234
File diff suppressed because one or more lines are too long
Vendored
-234
File diff suppressed because one or more lines are too long
Vendored
-464
File diff suppressed because one or more lines are too long
Vendored
+464
File diff suppressed because one or more lines are too long
Vendored
+108
File diff suppressed because one or more lines are too long
Vendored
-108
File diff suppressed because one or more lines are too long
Vendored
+1
File diff suppressed because one or more lines are too long
Vendored
-1
File diff suppressed because one or more lines are too long
+1
@@ -0,0 +1 @@
|
||||
import{A as e,C as t,E as n,K as r,T as i,U as a,_ as o,ct as s,j as c,jt as l,k as u,n as d,nt as f,pt as p,t as m,u as h,w as g}from"./auth-CwtlbtVe.js";import{t as _}from"./Card-CZpe3Jmm.js";import{t as v}from"./Button-DkAW_2H6.js";import{t as y}from"./use-message-fiSrGoHc.js";import{t as b}from"./Space-CT5XFRAd.js";import{t as x}from"./HeaderMenu-DA_N0lwe.js";import{t as S}from"./datetime-BJNH0M1T.js";var C={class:`center-block-custom`},w={class:`width700`},T={key:0,role:`alert`},E={key:0,role:`status`},D={key:1,role:`status`},O={key:2},k=c({__name:`ParticipationPage`,setup(c){let k=h(),A=new URLSearchParams(k.hash.slice(1)),j=A.get(`token`)||``,M=s(A.get(`answer`)===`cancelled`?`cancelled`:`confirmed`),N=d(),P=m(),F=y(),I=s(),L=s(!1),R=s(``);async function z(){L.value=!0,R.value=``;try{let e=await N.GetParticipation({token:j});if(e.error){R.value=e.error,F.error(e.error);return}I.value=e}catch{R.value=`Не удалось загрузить данные. Попробуйте ещё раз.`}finally{L.value=!1}}async function B(){if(!L.value){L.value=!0,R.value=``;try{let e=await N.AnswerParticipation({token:j,answer:M.value});e.status&&(I.value=e),e.error&&(R.value=e.error,F.error(e.error))}catch{R.value=`Не удалось сохранить ответ. Попробуйте ещё раз.`}finally{L.value=!1}}}return a(z),(a,s)=>(r(),n(o,null,[p(P).isAuthenticated?(r(),g(x,{key:0})):i(``,!0),t(`div`,C,[t(`div`,w,[e(p(_),{title:`Участие в игре`},{default:f(()=>[R.value?(r(),n(`p`,T,l(R.value),1)):i(``,!0),I.value?(r(),n(o,{key:1},[t(`h2`,null,l(I.value.gameName),1),t(`p`,null,`Команда: `+l(I.value.teamName),1),t(`p`,null,`Начало: `+l(p(S)(I.value.startAt)),1),t(`p`,null,`Участников: `+l(I.value.participantsCount),1),I.value.status===`confirmed`?(r(),n(`p`,E,` Участие подтверждено. Ждём вас на игре! Решение окончательное. `)):I.value.status===`cancelled`?(r(),n(`p`,D,` Запись отменена. Решение окончательное. `)):I.value.closed?(r(),n(`p`,O,` Приём ответов закрыт. Ваша запись сохранена со статусом «Ожидает ответа». `)):(r(),n(o,{key:3},[s[4]||=t(`p`,null,[t(`strong`,null,`Решение окончательное: изменить его нельзя.`)],-1),s[5]||=t(`p`,null,`Без ответа запись сохраняется со статусом «Ожидает ответа».`,-1),e(p(b),{vertical:``},{default:f(()=>[e(p(b),null,{default:f(()=>[e(p(v),{disabled:L.value,type:M.value===`confirmed`?`primary`:`default`,"aria-pressed":M.value===`confirmed`,onClick:s[0]||=e=>M.value=`confirmed`},{default:f(()=>[...s[2]||=[u(`Мы участвуем`,-1)]]),_:1},8,[`disabled`,`type`,`aria-pressed`]),e(p(v),{disabled:L.value,type:M.value===`cancelled`?`error`:`default`,"aria-pressed":M.value===`cancelled`,onClick:s[1]||=e=>M.value=`cancelled`},{default:f(()=>[...s[3]||=[u(`Мы не участвуем`,-1)]]),_:1},8,[`disabled`,`type`,`aria-pressed`])]),_:1}),e(p(v),{loading:L.value,disabled:L.value,type:M.value===`cancelled`?`error`:`primary`,onClick:B},{default:f(()=>[u(l(M.value===`confirmed`?`Подтверждаю участие`:`Подтверждаю отмену`),1)]),_:1},8,[`loading`,`disabled`,`type`])]),_:1})],64))],64)):(r(),g(p(v),{key:2,loading:L.value,onClick:z},{default:f(()=>[u(l(L.value?`Загрузка`:`Повторить`),1)]),_:1},8,[`loading`]))]),_:1})])])],64))}}),A=c({__name:`ParticipationView`,setup(e){return(e,t)=>(r(),g(k))}});export{A as default};
|
||||
Vendored
+207
File diff suppressed because one or more lines are too long
Vendored
-207
File diff suppressed because one or more lines are too long
Vendored
+117
File diff suppressed because one or more lines are too long
Vendored
-117
File diff suppressed because one or more lines are too long
-1
@@ -1 +0,0 @@
|
||||
import{A as e,G as t,T as n,g as r,k as i}from"./auth-Dlv0TZH7.js";import{t as a}from"./DocsPage-Dkoum0aK.js";import{t as o}from"./HeaderMenu-BXoZTzNp.js";var s=e({__name:`PrivacyPolicyView`,setup(e){return(e,s)=>(t(),n(r,null,[i(a,{kind:`privacy`}),i(o)],64))}});export{s as default};
|
||||
+1
@@ -0,0 +1 @@
|
||||
import{A as e,E as t,K as n,_ as r,j as i}from"./auth-CwtlbtVe.js";import{t as a}from"./DocsPage-FdLga6vJ.js";import{t as o}from"./HeaderMenu-DA_N0lwe.js";var s=i({__name:`PrivacyPolicyView`,setup(i){return(i,s)=>(n(),t(r,null,[e(a,{kind:`privacy`}),e(o)],64))}});export{s as default};
|
||||
File diff suppressed because one or more lines are too long
Vendored
-7
@@ -1,7 +0,0 @@
|
||||
import{A as e,N as t}from"./auth-Dlv0TZH7.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};
|
||||
Vendored
+7
@@ -0,0 +1,7 @@
|
||||
import{P as e,j as t}from"./auth-CwtlbtVe.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};
|
||||
Vendored
-1
@@ -1 +0,0 @@
|
||||
import{A as e,At as t,C as n,G as r,O as i,S as a,T as o,ft as s,g as c,k as l,l as u,st as d,tt as f}from"./auth-Dlv0TZH7.js";import{t as p}from"./Tag-DWY4EXx8.js";import{t as m}from"./use-message-BHS1zSJG.js";import{r as h,t as g}from"./_plugin-vue_export-helper-DBdhPFAA.js";import{t as _}from"./HeaderMenu-BXoZTzNp.js";var v={class:`center-block-custom`},y={class:`width700`},b={class:`scenario-card`},x={class:`scenario-heading`},S={class:`scenario-title`},C={class:`scenario-image-frame`},w=[`src`,`alt`],T={class:`scenario-details`},E={class:`scenario-description`},D={class:`scenario-author`},O=g(e({__name:`ScenarioPage`,setup(e){let n=m(),g=h(),O=u().params.id,k=d({id:void 0,name:void 0,story:void 0,author:void 0,status:void 0,updatedAt:void 0,createdAt:void 0,publishedAt:void 0});async function A(e){let t=await g.GetScenario({id:e});if(t.error!=``){n.error(t.error);return}k.value=t.scenario}return A(Number(O)),(e,n)=>(r(),o(c,null,[a(`div`,v,[a(`div`,y,[a(`section`,b,[a(`div`,x,[n[0]||=a(`p`,{class:`scenario-kicker`},`ДЕЛО ИЗ КАТАЛОГА`,-1),a(`h1`,S,t(k.value.name),1)]),a(`div`,C,[a(`img`,{class:`scenario-image`,src:k.value.image,alt:k.value.name},null,8,w)]),a(`div`,T,[a(`p`,E,t(k.value.description),1),a(`div`,D,[l(s(p),{bordered:!1,type:`success`,class:`status-block`},{default:f(()=>[i(` Автор: `+t(k.value.author?.username),1)]),_:1})])])])])]),l(_,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-17249bca`]]),k=e({__name:`ScenarioView`,setup(e){return(e,t)=>(r(),n(O))}});export{k as default};
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
import{A as e,C as t,E as n,K as r,_ as i,ct as a,j as o,jt as s,k as c,nt as l,pt as u,u as d,w as f}from"./auth-CwtlbtVe.js";import{t as p}from"./Tag-Dr74wMsP.js";import{t as m}from"./use-message-fiSrGoHc.js";import{r as h,t as g}from"./_plugin-vue_export-helper-CeoQyasH.js";import{t as _}from"./HeaderMenu-DA_N0lwe.js";var v={class:`center-block-custom`},y={class:`width700`},b={class:`scenario-card`},x={class:`scenario-heading`},S={class:`scenario-title`},C={class:`scenario-image-frame`},w=[`src`,`alt`],T={class:`scenario-details`},E={class:`scenario-description`},D={class:`scenario-author`},O=g(o({__name:`ScenarioPage`,setup(o){let f=m(),g=h(),O=d().params.id,k=a({id:void 0,name:void 0,story:void 0,author:void 0,status:void 0,updatedAt:void 0,createdAt:void 0,publishedAt:void 0});async function A(e){let t=await g.GetScenario({id:e});if(t.error!=``){f.error(t.error);return}k.value=t.scenario}return A(Number(O)),(a,o)=>(r(),n(i,null,[t(`div`,v,[t(`div`,y,[t(`section`,b,[t(`div`,x,[o[0]||=t(`p`,{class:`scenario-kicker`},`ДЕЛО ИЗ КАТАЛОГА`,-1),t(`h1`,S,s(k.value.name),1)]),t(`div`,C,[t(`img`,{class:`scenario-image`,src:k.value.image,alt:k.value.name},null,8,w)]),t(`div`,T,[t(`p`,E,s(k.value.description),1),t(`div`,D,[e(u(p),{bordered:!1,type:`success`,class:`status-block`},{default:l(()=>[c(` Автор: `+s(k.value.author?.username),1)]),_:1})])])])])]),e(_,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-17249bca`]]),k=o({__name:`ScenarioView`,setup(e){return(e,t)=>(r(),f(O))}});export{k as default};
|
||||
-1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
-1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
Vendored
+1
File diff suppressed because one or more lines are too long
Vendored
-1
File diff suppressed because one or more lines are too long
Vendored
+210
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
import{A as e,G as t,S as n,T as r}from"./auth-Dlv0TZH7.js";var i={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},a=e({name:`Settings`,render:function(e,a){return t(),r(`svg`,i,a[0]||=[n(`path`,{d:`M27 16.76V16v-.77l1.92-1.68A2 2 0 0 0 29.3 11l-2.36-4a2 2 0 0 0-1.73-1a2 2 0 0 0-.64.1l-2.43.82a11.35 11.35 0 0 0-1.31-.75l-.51-2.52a2 2 0 0 0-2-1.61h-4.68a2 2 0 0 0-2 1.61l-.51 2.52a11.48 11.48 0 0 0-1.32.75l-2.38-.86A2 2 0 0 0 6.79 6a2 2 0 0 0-1.73 1L2.7 11a2 2 0 0 0 .41 2.51L5 15.24v1.53l-1.89 1.68A2 2 0 0 0 2.7 21l2.36 4a2 2 0 0 0 1.73 1a2 2 0 0 0 .64-.1l2.43-.82a11.35 11.35 0 0 0 1.31.75l.51 2.52a2 2 0 0 0 2 1.61h4.72a2 2 0 0 0 2-1.61l.51-2.52a11.48 11.48 0 0 0 1.32-.75l2.42.82a2 2 0 0 0 .64.1a2 2 0 0 0 1.73-1l2.28-4a2 2 0 0 0-.41-2.51zM25.21 24l-3.43-1.16a8.86 8.86 0 0 1-2.71 1.57L18.36 28h-4.72l-.71-3.55a9.36 9.36 0 0 1-2.7-1.57L6.79 24l-2.36-4l2.72-2.4a8.9 8.9 0 0 1 0-3.13L4.43 12l2.36-4l3.43 1.16a8.86 8.86 0 0 1 2.71-1.57L13.64 4h4.72l.71 3.55a9.36 9.36 0 0 1 2.7 1.57L25.21 8l2.36 4l-2.72 2.4a8.9 8.9 0 0 1 0 3.13L27.57 20z`,fill:`currentColor`},null,-1),n(`path`,{d:`M16 22a6 6 0 1 1 6-6a5.94 5.94 0 0 1-6 6zm0-10a3.91 3.91 0 0 0-4 4a3.91 3.91 0 0 0 4 4a3.91 3.91 0 0 0 4-4a3.91 3.91 0 0 0-4-4z`,fill:`currentColor`},null,-1)])}});export{a as t};
|
||||
import{C as e,E as t,K as n,j as r}from"./auth-CwtlbtVe.js";var i={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},a=r({name:`Settings`,render:function(r,a){return n(),t(`svg`,i,a[0]||=[e(`path`,{d:`M27 16.76V16v-.77l1.92-1.68A2 2 0 0 0 29.3 11l-2.36-4a2 2 0 0 0-1.73-1a2 2 0 0 0-.64.1l-2.43.82a11.35 11.35 0 0 0-1.31-.75l-.51-2.52a2 2 0 0 0-2-1.61h-4.68a2 2 0 0 0-2 1.61l-.51 2.52a11.48 11.48 0 0 0-1.32.75l-2.38-.86A2 2 0 0 0 6.79 6a2 2 0 0 0-1.73 1L2.7 11a2 2 0 0 0 .41 2.51L5 15.24v1.53l-1.89 1.68A2 2 0 0 0 2.7 21l2.36 4a2 2 0 0 0 1.73 1a2 2 0 0 0 .64-.1l2.43-.82a11.35 11.35 0 0 0 1.31.75l.51 2.52a2 2 0 0 0 2 1.61h4.72a2 2 0 0 0 2-1.61l.51-2.52a11.48 11.48 0 0 0 1.32-.75l2.42.82a2 2 0 0 0 .64.1a2 2 0 0 0 1.73-1l2.28-4a2 2 0 0 0-.41-2.51zM25.21 24l-3.43-1.16a8.86 8.86 0 0 1-2.71 1.57L18.36 28h-4.72l-.71-3.55a9.36 9.36 0 0 1-2.7-1.57L6.79 24l-2.36-4l2.72-2.4a8.9 8.9 0 0 1 0-3.13L4.43 12l2.36-4l3.43 1.16a8.86 8.86 0 0 1 2.71-1.57L13.64 4h4.72l.71 3.55a9.36 9.36 0 0 1 2.7 1.57L25.21 8l2.36 4l-2.72 2.4a8.9 8.9 0 0 1 0 3.13L27.57 20z`,fill:`currentColor`},null,-1),e(`path`,{d:`M16 22a6 6 0 1 1 6-6a5.94 5.94 0 0 1-6 6zm0-10a3.91 3.91 0 0 0-4 4a3.91 3.91 0 0 0 4 4a3.91 3.91 0 0 0 4-4a3.91 3.91 0 0 0-4-4z`,fill:`currentColor`},null,-1)])}});export{a as t};
|
||||
@@ -1 +1 @@
|
||||
import{A as e,N as t,h as n,x as r}from"./auth-Dlv0TZH7.js";import{N as i,Z as a,o,r as s}from"./light-CW1_EUxw.js";import{o as c,s as l}from"./resolve-slot-DN9_xhmA.js";import{c as u,s as d}from"./Button-D7SvPTTG.js";import{t as f}from"./get-slot-6kXJmSMP.js";import{u as p}from"./index-DRS1zBKt.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({},s.props),{align:String,justify:{type:String,default:`start`},inline:Boolean,vertical:Boolean,reverse:Boolean,size:[String,Number,Array],wrapItem:{type:Boolean,default:!0},itemClass:String,itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),setup(e){let{mergedClsPrefixRef:t,mergedRtlRef:n,mergedComponentPropsRef:u}=i(e),d=r(()=>e.size||u?.value?.Space?.size||`medium`),f=s(`Space`,`-space`,void 0,h,e,t),p=o(`Space`,n,t);return{useGap:_(),rtlEnabled:p,mergedClsPrefix:t,margin:r(()=>{let e=d.value;if(Array.isArray(e))return{horizontal:e[0],vertical:e[1]};if(typeof e==`number`)return{horizontal:e,vertical:e};let{self:{[a(`gap`,e)]:t}}=f.value,{row:n,col:r}=l(t);return{horizontal:c(r),vertical:c(n)}})}},render(){let{vertical:e,reverse:r,align:i,inline:a,justify:o,itemClass:s,itemStyle:c,margin:l,wrap: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:a?`inline-flex`:`flex`,flexDirection:e&&!r?`column`:e&&r?`column-reverse`:!e&&r?`row-reverse`:`row`,justifyContent:[`start`,`end`].includes(o)?`flex-${o}`:o,flexWrap:!u||e?`nowrap`:`wrap`,marginTop:h||e?``:`-${S}`,marginBottom:h||e?``:`-${S}`,alignItems:i,gap:h?`${l.vertical}px ${l.horizontal}px`:``}},!g&&(h||_)?v:v.map((r,i)=>r.type===n?r:t(`div`,{role:`none`,class:s,style:[c,{maxWidth:`100%`},h?``:e?{marginBottom:i===C?``:x}:m?{marginLeft:w?o===`space-between`&&i===C?``:b:i===C?``:y,marginRight:w?o===`space-between`&&i===0?``:b:``,paddingTop:S,paddingBottom:S}:{marginRight:w?o===`space-between`&&i===C?``:b:i===C?``:y,marginLeft:w?o===`space-between`&&i===0?``:b:``,paddingTop:S,paddingBottom:S}]},r)))}});export{v as t};
|
||||
import{P as e,S as t,g as n,j as r}from"./auth-CwtlbtVe.js";import{N as i,Z as a,o,r as s}from"./light-BRabMcHj.js";import{o as c,s as l}from"./resolve-slot-Bet7d-Yr.js";import{c as u,s as d}from"./Button-DkAW_2H6.js";import{t as f}from"./get-slot-6kXJmSMP.js";import{u as p}from"./index-BXcPK7uX.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=r({name:`Space`,props:Object.assign(Object.assign({},s.props),{align:String,justify:{type:String,default:`start`},inline:Boolean,vertical:Boolean,reverse:Boolean,size:[String,Number,Array],wrapItem:{type:Boolean,default:!0},itemClass:String,itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),setup(e){let{mergedClsPrefixRef:n,mergedRtlRef:r,mergedComponentPropsRef:u}=i(e),d=t(()=>e.size||u?.value?.Space?.size||`medium`),f=s(`Space`,`-space`,void 0,h,e,n),p=o(`Space`,r,n);return{useGap:_(),rtlEnabled:p,mergedClsPrefix:n,margin:t(()=>{let e=d.value;if(Array.isArray(e))return{horizontal:e[0],vertical:e[1]};if(typeof e==`number`)return{horizontal:e,vertical:e};let{self:{[a(`gap`,e)]:t}}=f.value,{row:n,col:r}=l(t);return{horizontal:c(r),vertical:c(n)}})}},render(){let{vertical:t,reverse:r,align:i,inline:a,justify:o,itemClass:s,itemStyle:c,margin:l,wrap:u,mergedClsPrefix:p,rtlEnabled:m,useGap:h,wrapItem:g,internalUseGap:_}=this,v=d(f(this),!1);if(!v.length)return null;let y=`${l.horizontal}px`,b=`${l.horizontal/2}px`,x=`${l.vertical}px`,S=`${l.vertical/2}px`,C=v.length-1,w=o.startsWith(`space-`);return e(`div`,{role:`none`,class:[`${p}-space`,m&&`${p}-space--rtl`],style:{display:a?`inline-flex`:`flex`,flexDirection:t&&!r?`column`:t&&r?`column-reverse`:!t&&r?`row-reverse`:`row`,justifyContent:[`start`,`end`].includes(o)?`flex-${o}`:o,flexWrap:!u||t?`nowrap`:`wrap`,marginTop:h||t?``:`-${S}`,marginBottom:h||t?``:`-${S}`,alignItems:i,gap:h?`${l.vertical}px ${l.horizontal}px`:``}},!g&&(h||_)?v:v.map((r,i)=>r.type===n?r:e(`div`,{role:`none`,class:s,style:[c,{maxWidth:`100%`},h?``:t?{marginBottom:i===C?``:x}:m?{marginLeft:w?o===`space-between`&&i===C?``:b:i===C?``:y,marginRight:w?o===`space-between`&&i===0?``:b:``,paddingTop:S,paddingBottom:S}:{marginRight:w?o===`space-between`&&i===C?``:b:i===C?``:y,marginLeft:w?o===`space-between`&&i===0?``:b:``,paddingTop:S,paddingBottom:S}]},r)))}});export{v as t};
|
||||
Vendored
+25
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
|
||||
import{A as e,K as t,N as n,st as r,ut as i,x as a}from"./auth-Dlv0TZH7.js";import{B as o,G as s,J as c,K as l,M as u,N as d,X as f,Y as p,Z as m,o as h,r as g,t as _,z as v}from"./light-CW1_EUxw.js";import{a as y,c as b}from"./resolve-slot-DN9_xhmA.js";import{n as x,t as S}from"./call-ChHlm4-m.js";import{D as C,P as w}from"./index-DRS1zBKt.js";function T(e){let{textColor2:t,primaryColorHover:n,primaryColorPressed:r,primaryColor:i,infoColor:a,successColor:s,warningColor:c,errorColor:l,baseColor:u,borderColor:d,opacityDisabled:f,tagColor:p,closeIconColor:m,closeIconColorHover:h,closeIconColorPressed:g,borderRadiusSmall:_,fontSizeMini:v,fontSizeTiny:y,fontSizeSmall:b,fontSizeMedium:x,heightMini:S,heightTiny:w,heightSmall:T,heightMedium:E,closeColorHover:D,closeColorPressed:O,buttonColor2Hover:k,buttonColor2Pressed:A,fontWeightStrong:j}=e;return Object.assign(Object.assign({},C),{closeBorderRadius:_,heightTiny:S,heightSmall:w,heightMedium:T,heightLarge:E,borderRadius:_,opacityDisabled:f,fontSizeTiny:v,fontSizeSmall:y,fontSizeMedium:b,fontSizeLarge:x,fontWeightStrong:j,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:u,colorCheckable:`#0000`,colorHoverCheckable:k,colorPressedCheckable:A,colorChecked:i,colorCheckedHover:n,colorCheckedPressed:r,border:`1px solid ${d}`,textColor:t,color:p,colorBordered:`rgb(250, 250, 252)`,closeIconColor:m,closeIconColorHover:h,closeIconColorPressed:g,closeColorHover:D,closeColorPressed:O,borderPrimary:`1px solid ${o(i,{alpha:.3})}`,textColorPrimary:i,colorPrimary:o(i,{alpha:.12}),colorBorderedPrimary:o(i,{alpha:.1}),closeIconColorPrimary:i,closeIconColorHoverPrimary:i,closeIconColorPressedPrimary:i,closeColorHoverPrimary:o(i,{alpha:.12}),closeColorPressedPrimary:o(i,{alpha:.18}),borderInfo:`1px solid ${o(a,{alpha:.3})}`,textColorInfo:a,colorInfo:o(a,{alpha:.12}),colorBorderedInfo:o(a,{alpha:.1}),closeIconColorInfo:a,closeIconColorHoverInfo:a,closeIconColorPressedInfo:a,closeColorHoverInfo:o(a,{alpha:.12}),closeColorPressedInfo:o(a,{alpha:.18}),borderSuccess:`1px solid ${o(s,{alpha:.3})}`,textColorSuccess:s,colorSuccess:o(s,{alpha:.12}),colorBorderedSuccess:o(s,{alpha:.1}),closeIconColorSuccess:s,closeIconColorHoverSuccess:s,closeIconColorPressedSuccess:s,closeColorHoverSuccess:o(s,{alpha:.12}),closeColorPressedSuccess:o(s,{alpha:.18}),borderWarning:`1px solid ${o(c,{alpha:.35})}`,textColorWarning:c,colorWarning:o(c,{alpha:.15}),colorBorderedWarning:o(c,{alpha:.12}),closeIconColorWarning:c,closeIconColorHoverWarning:c,closeIconColorPressedWarning:c,closeColorHoverWarning:o(c,{alpha:.12}),closeColorPressedWarning:o(c,{alpha:.18}),borderError:`1px solid ${o(l,{alpha:.23})}`,textColorError:l,colorError:o(l,{alpha:.1}),colorBorderedError:o(l,{alpha:.08}),closeIconColorError:l,closeIconColorHoverError:l,closeIconColorPressedError:l,closeColorHoverError:o(l,{alpha:.12}),closeColorPressedError:o(l,{alpha:.18})})}var E={name:`Tag`,common:_,self:T},D={color:Object,type:{type:String,default:`default`},round:Boolean,size:String,closable:Boolean,disabled:{type:Boolean,default:void 0}},O=l(`tag`,`
|
||||
import{P as e,S as t,ct as n,dt as r,j as i,q as a}from"./auth-CwtlbtVe.js";import{B as o,G as s,J as c,K as l,M as u,N as d,X as f,Y as p,Z as m,o as h,r as g,t as _,z as v}from"./light-BRabMcHj.js";import{a as y,c as b}from"./resolve-slot-Bet7d-Yr.js";import{n as x,t as S}from"./call-ChHlm4-m.js";import{D as C,P as w}from"./index-BXcPK7uX.js";function T(e){let{textColor2:t,primaryColorHover:n,primaryColorPressed:r,primaryColor:i,infoColor:a,successColor:s,warningColor:c,errorColor:l,baseColor:u,borderColor:d,opacityDisabled:f,tagColor:p,closeIconColor:m,closeIconColorHover:h,closeIconColorPressed:g,borderRadiusSmall:_,fontSizeMini:v,fontSizeTiny:y,fontSizeSmall:b,fontSizeMedium:x,heightMini:S,heightTiny:w,heightSmall:T,heightMedium:E,closeColorHover:D,closeColorPressed:O,buttonColor2Hover:k,buttonColor2Pressed:A,fontWeightStrong:j}=e;return Object.assign(Object.assign({},C),{closeBorderRadius:_,heightTiny:S,heightSmall:w,heightMedium:T,heightLarge:E,borderRadius:_,opacityDisabled:f,fontSizeTiny:v,fontSizeSmall:y,fontSizeMedium:b,fontSizeLarge:x,fontWeightStrong:j,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:u,colorCheckable:`#0000`,colorHoverCheckable:k,colorPressedCheckable:A,colorChecked:i,colorCheckedHover:n,colorCheckedPressed:r,border:`1px solid ${d}`,textColor:t,color:p,colorBordered:`rgb(250, 250, 252)`,closeIconColor:m,closeIconColorHover:h,closeIconColorPressed:g,closeColorHover:D,closeColorPressed:O,borderPrimary:`1px solid ${o(i,{alpha:.3})}`,textColorPrimary:i,colorPrimary:o(i,{alpha:.12}),colorBorderedPrimary:o(i,{alpha:.1}),closeIconColorPrimary:i,closeIconColorHoverPrimary:i,closeIconColorPressedPrimary:i,closeColorHoverPrimary:o(i,{alpha:.12}),closeColorPressedPrimary:o(i,{alpha:.18}),borderInfo:`1px solid ${o(a,{alpha:.3})}`,textColorInfo:a,colorInfo:o(a,{alpha:.12}),colorBorderedInfo:o(a,{alpha:.1}),closeIconColorInfo:a,closeIconColorHoverInfo:a,closeIconColorPressedInfo:a,closeColorHoverInfo:o(a,{alpha:.12}),closeColorPressedInfo:o(a,{alpha:.18}),borderSuccess:`1px solid ${o(s,{alpha:.3})}`,textColorSuccess:s,colorSuccess:o(s,{alpha:.12}),colorBorderedSuccess:o(s,{alpha:.1}),closeIconColorSuccess:s,closeIconColorHoverSuccess:s,closeIconColorPressedSuccess:s,closeColorHoverSuccess:o(s,{alpha:.12}),closeColorPressedSuccess:o(s,{alpha:.18}),borderWarning:`1px solid ${o(c,{alpha:.35})}`,textColorWarning:c,colorWarning:o(c,{alpha:.15}),colorBorderedWarning:o(c,{alpha:.12}),closeIconColorWarning:c,closeIconColorHoverWarning:c,closeIconColorPressedWarning:c,closeColorHoverWarning:o(c,{alpha:.12}),closeColorPressedWarning:o(c,{alpha:.18}),borderError:`1px solid ${o(l,{alpha:.23})}`,textColorError:l,colorError:o(l,{alpha:.1}),colorBorderedError:o(l,{alpha:.08}),closeIconColorError:l,closeIconColorHoverError:l,closeIconColorPressedError:l,closeColorHoverError:o(l,{alpha:.12}),closeColorPressedError:o(l,{alpha:.18})})}var E={name:`Tag`,common:_,self:T},D={color:Object,type:{type:String,default:`default`},round:Boolean,size:String,closable:Boolean,disabled:{type:Boolean,default:void 0}},O=l(`tag`,`
|
||||
--n-close-margin: var(--n-close-margin-top) var(--n-close-margin-right) var(--n-close-margin-bottom) var(--n-close-margin-left);
|
||||
white-space: nowrap;
|
||||
position: relative;
|
||||
@@ -68,4 +68,4 @@ import{A as e,K as t,N as n,st as r,ut as i,x as a}from"./auth-Dlv0TZH7.js";impo
|
||||
`,[f(`disabled`,[s(`&:hover`,`background-color: var(--n-color-hover-checkable);`,[f(`checked`,`color: var(--n-text-color-hover-checkable);`)]),s(`&:active`,`background-color: var(--n-color-pressed-checkable);`,[f(`checked`,`color: var(--n-text-color-pressed-checkable);`)])]),p(`checked`,`
|
||||
color: var(--n-text-color-checked);
|
||||
background-color: var(--n-color-checked);
|
||||
`,[f(`disabled`,[s(`&:hover`,`background-color: var(--n-color-checked-hover);`),s(`&:active`,`background-color: var(--n-color-checked-pressed);`)])])])]),k=Object.assign(Object.assign(Object.assign({},g.props),D),{bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,strong:Boolean,triggerClickOnClose:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalCloseFocusable:{type:Boolean,default:!0},internalCloseIsButtonTag:{type:Boolean,default:!0},onCheckedChange:Function}),A=v(`n-tag`),j=e({name:`Tag`,props:k,slots:Object,setup(e){let n=r(null),{mergedBorderedRef:o,mergedClsPrefixRef:s,inlineThemeDisabled:c,mergedRtlRef:l,mergedComponentPropsRef:f}=d(e),p=a(()=>e.size||f?.value?.Tag?.size||`medium`),_=g(`Tag`,`-tag`,O,E,e,s);t(A,{roundRef:i(e,`round`)});function v(){if(!e.disabled&&e.checkable){let{checked:t,onCheckedChange:n,onUpdateChecked:r,"onUpdate:checked":i}=e;r&&r(!t),i&&i(!t),n&&n(!t)}}function y(t){if(e.triggerClickOnClose||t.stopPropagation(),!e.disabled){let{onClose:n}=e;n&&S(n,t)}}let C={setTextContent(e){let{value:t}=n;t&&(t.textContent=e)}},w=h(`Tag`,l,s),T=a(()=>{let{type:t,color:{color:n,textColor:r}={}}=e,i=p.value,{common:{cubicBezierEaseInOut:a},self:{padding:s,closeMargin:c,borderRadius:l,opacityDisabled:u,textColorCheckable:d,textColorHoverCheckable:f,textColorPressedCheckable:h,textColorChecked:g,colorCheckable:v,colorHoverCheckable:y,colorPressedCheckable:x,colorChecked:S,colorCheckedHover:C,colorCheckedPressed:w,closeBorderRadius:T,fontWeightStrong:E,[m(`colorBordered`,t)]:D,[m(`closeSize`,i)]:O,[m(`closeIconSize`,i)]:k,[m(`fontSize`,i)]:A,[m(`height`,i)]:j,[m(`color`,t)]:M,[m(`textColor`,t)]:N,[m(`border`,t)]:P,[m(`closeIconColor`,t)]:F,[m(`closeIconColorHover`,t)]:I,[m(`closeIconColorPressed`,t)]:L,[m(`closeColorHover`,t)]:R,[m(`closeColorPressed`,t)]:z}}=_.value,B=b(c);return{"--n-font-weight-strong":E,"--n-avatar-size-override":`calc(${j} - 8px)`,"--n-bezier":a,"--n-border-radius":l,"--n-border":P,"--n-close-icon-size":k,"--n-close-color-pressed":z,"--n-close-color-hover":R,"--n-close-border-radius":T,"--n-close-icon-color":F,"--n-close-icon-color-hover":I,"--n-close-icon-color-pressed":L,"--n-close-icon-color-disabled":F,"--n-close-margin-top":B.top,"--n-close-margin-right":B.right,"--n-close-margin-bottom":B.bottom,"--n-close-margin-left":B.left,"--n-close-size":O,"--n-color":n||(o.value?D:M),"--n-color-checkable":v,"--n-color-checked":S,"--n-color-checked-hover":C,"--n-color-checked-pressed":w,"--n-color-hover-checkable":y,"--n-color-pressed-checkable":x,"--n-font-size":A,"--n-height":j,"--n-opacity-disabled":u,"--n-padding":s,"--n-text-color":r||N,"--n-text-color-checkable":d,"--n-text-color-checked":g,"--n-text-color-hover-checkable":f,"--n-text-color-pressed-checkable":h}}),D=c?u(`tag`,a(()=>{let t=``,{type:n,color:{color:r,textColor:i}={}}=e;return t+=n[0],t+=p.value[0],r&&(t+=`a${x(r)}`),i&&(t+=`b${x(i)}`),o.value&&(t+=`c`),t}),T,e):void 0;return Object.assign(Object.assign({},C),{rtlEnabled:w,mergedClsPrefix:s,contentRef:n,mergedBordered:o,handleClick:v,handleCloseClick:y,cssVars:c?void 0:T,themeClass:D?.themeClass,onRender:D?.onRender})},render(){var e;let{mergedClsPrefix:t,rtlEnabled:r,closable:i,color:{borderColor:a}={},round:o,onRender:s,$slots:c}=this;s?.();let l=y(c.avatar,e=>e&&n(`div`,{class:`${t}-tag__avatar`},e)),u=y(c.icon,e=>e&&n(`div`,{class:`${t}-tag__icon`},e));return n(`div`,{class:[`${t}-tag`,this.themeClass,{[`${t}-tag--rtl`]:r,[`${t}-tag--strong`]:this.strong,[`${t}-tag--disabled`]:this.disabled,[`${t}-tag--checkable`]:this.checkable,[`${t}-tag--checked`]:this.checkable&&this.checked,[`${t}-tag--round`]:o,[`${t}-tag--avatar`]:l,[`${t}-tag--icon`]:u,[`${t}-tag--closable`]:i}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},u||l,n(`span`,{class:`${t}-tag__content`,ref:`contentRef`},(e=this.$slots).default?.call(e)),!this.checkable&&i?n(w,{clsPrefix:t,class:`${t}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:o,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?n(`div`,{class:`${t}-tag__border`,style:{borderColor:a}}):null)}});export{j as t};
|
||||
`,[f(`disabled`,[s(`&:hover`,`background-color: var(--n-color-checked-hover);`),s(`&:active`,`background-color: var(--n-color-checked-pressed);`)])])])]),k=Object.assign(Object.assign(Object.assign({},g.props),D),{bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,strong:Boolean,triggerClickOnClose:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalCloseFocusable:{type:Boolean,default:!0},internalCloseIsButtonTag:{type:Boolean,default:!0},onCheckedChange:Function}),A=v(`n-tag`),j=i({name:`Tag`,props:k,slots:Object,setup(e){let i=n(null),{mergedBorderedRef:o,mergedClsPrefixRef:s,inlineThemeDisabled:c,mergedRtlRef:l,mergedComponentPropsRef:f}=d(e),p=t(()=>e.size||f?.value?.Tag?.size||`medium`),_=g(`Tag`,`-tag`,O,E,e,s);a(A,{roundRef:r(e,`round`)});function v(){if(!e.disabled&&e.checkable){let{checked:t,onCheckedChange:n,onUpdateChecked:r,"onUpdate:checked":i}=e;r&&r(!t),i&&i(!t),n&&n(!t)}}function y(t){if(e.triggerClickOnClose||t.stopPropagation(),!e.disabled){let{onClose:n}=e;n&&S(n,t)}}let C={setTextContent(e){let{value:t}=i;t&&(t.textContent=e)}},w=h(`Tag`,l,s),T=t(()=>{let{type:t,color:{color:n,textColor:r}={}}=e,i=p.value,{common:{cubicBezierEaseInOut:a},self:{padding:s,closeMargin:c,borderRadius:l,opacityDisabled:u,textColorCheckable:d,textColorHoverCheckable:f,textColorPressedCheckable:h,textColorChecked:g,colorCheckable:v,colorHoverCheckable:y,colorPressedCheckable:x,colorChecked:S,colorCheckedHover:C,colorCheckedPressed:w,closeBorderRadius:T,fontWeightStrong:E,[m(`colorBordered`,t)]:D,[m(`closeSize`,i)]:O,[m(`closeIconSize`,i)]:k,[m(`fontSize`,i)]:A,[m(`height`,i)]:j,[m(`color`,t)]:M,[m(`textColor`,t)]:N,[m(`border`,t)]:P,[m(`closeIconColor`,t)]:F,[m(`closeIconColorHover`,t)]:I,[m(`closeIconColorPressed`,t)]:L,[m(`closeColorHover`,t)]:R,[m(`closeColorPressed`,t)]:z}}=_.value,B=b(c);return{"--n-font-weight-strong":E,"--n-avatar-size-override":`calc(${j} - 8px)`,"--n-bezier":a,"--n-border-radius":l,"--n-border":P,"--n-close-icon-size":k,"--n-close-color-pressed":z,"--n-close-color-hover":R,"--n-close-border-radius":T,"--n-close-icon-color":F,"--n-close-icon-color-hover":I,"--n-close-icon-color-pressed":L,"--n-close-icon-color-disabled":F,"--n-close-margin-top":B.top,"--n-close-margin-right":B.right,"--n-close-margin-bottom":B.bottom,"--n-close-margin-left":B.left,"--n-close-size":O,"--n-color":n||(o.value?D:M),"--n-color-checkable":v,"--n-color-checked":S,"--n-color-checked-hover":C,"--n-color-checked-pressed":w,"--n-color-hover-checkable":y,"--n-color-pressed-checkable":x,"--n-font-size":A,"--n-height":j,"--n-opacity-disabled":u,"--n-padding":s,"--n-text-color":r||N,"--n-text-color-checkable":d,"--n-text-color-checked":g,"--n-text-color-hover-checkable":f,"--n-text-color-pressed-checkable":h}}),D=c?u(`tag`,t(()=>{let t=``,{type:n,color:{color:r,textColor:i}={}}=e;return t+=n[0],t+=p.value[0],r&&(t+=`a${x(r)}`),i&&(t+=`b${x(i)}`),o.value&&(t+=`c`),t}),T,e):void 0;return Object.assign(Object.assign({},C),{rtlEnabled:w,mergedClsPrefix:s,contentRef:i,mergedBordered:o,handleClick:v,handleCloseClick:y,cssVars:c?void 0:T,themeClass:D?.themeClass,onRender:D?.onRender})},render(){var t;let{mergedClsPrefix:n,rtlEnabled:r,closable:i,color:{borderColor:a}={},round:o,onRender:s,$slots:c}=this;s?.();let l=y(c.avatar,t=>t&&e(`div`,{class:`${n}-tag__avatar`},t)),u=y(c.icon,t=>t&&e(`div`,{class:`${n}-tag__icon`},t));return e(`div`,{class:[`${n}-tag`,this.themeClass,{[`${n}-tag--rtl`]:r,[`${n}-tag--strong`]:this.strong,[`${n}-tag--disabled`]:this.disabled,[`${n}-tag--checkable`]:this.checkable,[`${n}-tag--checked`]:this.checkable&&this.checked,[`${n}-tag--round`]:o,[`${n}-tag--avatar`]:l,[`${n}-tag--icon`]:u,[`${n}-tag--closable`]:i}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},u||l,e(`span`,{class:`${n}-tag__content`,ref:`contentRef`},(t=this.$slots).default?.call(t)),!this.checkable&&i?e(w,{clsPrefix:n,class:`${n}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:o,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?e(`div`,{class:`${n}-tag__border`,style:{borderColor:a}}):null)}});export{j as t};
|
||||
-1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
Vendored
-440
File diff suppressed because one or more lines are too long
Vendored
+440
File diff suppressed because one or more lines are too long
-1
@@ -1 +0,0 @@
|
||||
import{A as e,G as t,T as n,g as r,k as i}from"./auth-Dlv0TZH7.js";import{t as a}from"./DocsPage-Dkoum0aK.js";import{t as o}from"./HeaderMenu-BXoZTzNp.js";var s=e({__name:`UserAgreementView`,setup(e){return(e,s)=>(t(),n(r,null,[i(a,{kind:`terms`}),i(o)],64))}});export{s as default};
|
||||
+1
@@ -0,0 +1 @@
|
||||
import{A as e,E as t,K as n,_ as r,j as i}from"./auth-CwtlbtVe.js";import{t as a}from"./DocsPage-FdLga6vJ.js";import{t as o}from"./HeaderMenu-DA_N0lwe.js";var s=i({__name:`UserAgreementView`,setup(i){return(i,s)=>(n(),t(r,null,[e(a,{kind:`terms`}),e(o)],64))}});export{s as default};
|
||||
Vendored
+105
File diff suppressed because one or more lines are too long
Vendored
-105
File diff suppressed because one or more lines are too long
+2
-2
@@ -1,4 +1,4 @@
|
||||
import{A as e,J as t,K as n,N as r,P as i,d as a,i as o,n as s,t as c,x as l,z as u}from"./auth-Dlv0TZH7.js";function d(){let e=c();return f(e.refreshTokenAction,e.getToken)}function f(e,t){return o(p(e,s(t)))}function p(e,t){return async n=>{let r;try{r=await t(n)}catch{await e(),r=await t(n)}if(r&&typeof r==`object`&&`code`in r&&r.code!==0)throw Error(`message`in r&&typeof r.message==`string`?r.message:`Ошибка запроса`);return r}}function m(e){let t=0;for(let n=0;n<e.length;++n)e[n]===`&`&&++t;return t}var h=/\s*,(?![^(]*\))\s*/g,g=/\s+/g;function _(e,t){let n=[];return t.split(h).forEach(t=>{let r=m(t);if(!r){e.forEach(e=>{n.push((e&&e+` `)+t)});return}else if(r===1){e.forEach(e=>{n.push(t.replace(`&`,e))});return}let i=[t];for(;r--;){let t=[];i.forEach(n=>{e.forEach(e=>{t.push(n.replace(`&`,e))})}),i=t}i.forEach(e=>n.push(e))}),n}function v(e,t){let n=[];return t.split(h).forEach(t=>{e.forEach(e=>{n.push((e&&e+` `)+t)})}),n}function y(e){let t=[``];return e.forEach(e=>{e&&=e.trim(),e&&(t=e.includes(`&`)?_(t,e):v(t,e))}),t.join(`, `).replace(g,` `)}var b=/[A-Z]/g;function x(e){return e.replace(b,e=>`-`+e.toLowerCase())}function S(e,t=` `){return typeof e==`object`&&e?` {
|
||||
import{B as e,F as t,P as n,S as r,Y as i,a,f as o,j as s,q as c,r as l,t as u}from"./auth-CwtlbtVe.js";function d(){let e=u();return f(e.refreshTokenAction,e.getToken)}function f(e,t){return a(p(e,l(t)))}function p(e,t){return async n=>{let r;try{r=await t(n)}catch{await e(),r=await t(n)}if(r&&typeof r==`object`&&`code`in r&&r.code!==0)throw Error(`message`in r&&typeof r.message==`string`?r.message:`Ошибка запроса`);return r}}function m(e){let t=0;for(let n=0;n<e.length;++n)e[n]===`&`&&++t;return t}var h=/\s*,(?![^(]*\))\s*/g,g=/\s+/g;function _(e,t){let n=[];return t.split(h).forEach(t=>{let r=m(t);if(!r){e.forEach(e=>{n.push((e&&e+` `)+t)});return}else if(r===1){e.forEach(e=>{n.push(t.replace(`&`,e))});return}let i=[t];for(;r--;){let t=[];i.forEach(n=>{e.forEach(e=>{t.push(n.replace(`&`,e))})}),i=t}i.forEach(e=>n.push(e))}),n}function v(e,t){let n=[];return t.split(h).forEach(t=>{e.forEach(e=>{n.push((e&&e+` `)+t)})}),n}function y(e){let t=[``];return e.forEach(e=>{e&&=e.trim(),e&&(t=e.includes(`&`)?_(t,e):v(t,e))}),t.join(`, `).replace(g,` `)}var b=/[A-Z]/g;function x(e){return e.replace(b,e=>`-`+e.toLowerCase())}function S(e,t=` `){return typeof e==`object`&&e?` {
|
||||
`+Object.entries(e).map(e=>t+` ${x(e[0])}: ${e[1]};`).join(`
|
||||
`)+`
|
||||
`+t+`}`:`: ${e};`}function C(e,t,n){return typeof e==`function`?e({context:t.context,props:n}):e}function w(e,t,n,r){if(!t)return``;let i=C(t,n,r);if(!i)return``;if(typeof i==`string`)return`${e} {\n${i}\n}`;let a=Object.keys(i);if(a.length===0)return n.config.keepEmptyBlock?e+` {
|
||||
@@ -7,4 +7,4 @@ import{A as e,J as t,K as n,N as r,P as i,d as a,i as o,n as s,t as c,x as l,z a
|
||||
`);return}e=x(e),t!=null&&o.push(` ${e}${S(t)}`)}),e&&o.push(`}`),o.join(`
|
||||
`)}function T(e,t,n){e&&e.forEach(e=>{if(Array.isArray(e))T(e,t,n);else if(typeof e==`function`){let r=e(t);Array.isArray(r)?T(r,t,n):r&&n(r)}else e&&n(e)})}function E(e,t,n,r,i,a){let o=e.$;!o||typeof o==`string`?t.push(o):typeof o==`function`?t.push(o({context:r.context,props:i})):(o.before&&o.before(r.context),!o.$||typeof o.$==`string`?t.push(o.$):o.$&&t.push(o.$({context:r.context,props:i})));let s=y(t),c=w(s,e.props,r,i);a&&c&&a.insertRule(c),!a&&c.length&&n.push(c),e.children&&T(e.children,{context:r.context,props:i},e=>{if(typeof e==`string`){let t=w(s,{raw:e},r,i);a?a.insertRule(t):n.push(t)}else E(e,t,n,r,i,a)}),t.pop(),o&&o.after&&o.after(r.context)}function D(e,t,n,r=!1){let i=[];return E(e,[],i,t,n,r?e.instance.__styleSheet:void 0),r?``:i.join(`
|
||||
|
||||
`)}function O(e){if(!e)return;let t=e.parentElement;t&&t.removeChild(e)}function k(e){return document.querySelector(`style[cssr-id="${e}"]`)}function A(e){let t=document.createElement(`style`);return t.setAttribute(`cssr-id`,e),t}window&&(window.__cssrContext={});function j(e){let t=e.getAttribute(`mount-count`);return t===null?null:Number(t)}function M(e,t){e.setAttribute(`mount-count`,String(t))}function N(e,t,n,r){let{els:i}=t;if(n===void 0)i.forEach(O),t.els=[];else{let e=k(n);if(e&&i.includes(e)){let a=j(e);r?a===null?console.error(`[css-render/unmount]: The style with target='${n}' is mounted in count mode.`):a<=1?(O(e),t.els=i.filter(t=>t!==e)):M(e,a-1):a===null?(O(e),t.els=i.filter(t=>t!==e)):console.error(`[css-render/unmount]: The style with target='${n}' is mounted in no-count mode.`)}}}function P(e,t){e.push(t)}function F(e,t,n,r,i,o,s,c,l){if(s&&!l){if(n===void 0){console.error("[css-render/mount]: `id` is required in `boost` mode.");return}let i=window.__cssrContext;i[n]||(i[n]=!0,D(t,e,r,s));return}let u,{els:d}=t,f;if(n===void 0&&(f=t.render(r),n=a(f)),l){l(n,f??t.render(r));return}let p=k(n);if(c||p===null){if(u=p===null?A(n):p,f===void 0&&(f=t.render(r)),u.textContent=f,p!==null)return;if(i){let e=document.head.getElementsByTagName(`style`)[0]||null;document.head.insertBefore(u,e)}else document.head.appendChild(u);o&&M(u,1),P(d,u)}else{let e=j(p);o?e===null?console.error(`[css-render/mount]: The style with id='${n}' has been mounted in no-count mode.`):M(p,e+1):e!==null&&console.error(`[css-render/mount]: The style with id='${n}' has been mounted in count mode.`)}return p??u}function I(e){return D(this,this.instance,e)}function L(e={}){let{target:t,id:n,ssr:r,props:i,count:a=!1,head:o=!1,boost:s=!1,force:c=!1}=e;return F(this.instance,this,n??t,i,o,a,s,c,r)}function R(e={}){let{id:t,target:n,delay:r=0,count:i=!1}=e;r===0?N(this.instance,this,t??n,i):setTimeout(()=>N(this.instance,this,t??n,i),r)}var z=function(e,t,n,r){return{instance:e,$:t,props:n,children:r,els:[],render:I,mount:L,unmount:R}},B=function(e,t,n,r){return Array.isArray(t)?z(e,{$:null},null,t):Array.isArray(n)?z(e,t,null,n):Array.isArray(r)?z(e,t,n,r):z(e,t,n,null)};function V(e={}){let t=null,n={c:((...e)=>B(n,...e)),use:(e,...t)=>e.install(n,...t),find:k,context:{},config:e,get __styleSheet(){if(!t){let e=document.createElement(`style`);return document.head.appendChild(e),t=document.styleSheets[document.styleSheets.length-1],t}return t}};return n}var{c:H}=V(),U=H(`.xicon`,{width:`1em`,height:`1em`,display:`inline-flex`},[H(`svg`,{width:`1em`,height:`1em`}),H(`svg:not([fill])`,{fill:`currentColor`})]),W=()=>{U.mount({id:`xicons-icon`})},G={size:[String,Number],color:String,tag:String},K=Symbol(`IconConfigInjection`);e({name:`IconConfigProvider`,props:G,setup(e,{slots:r}){return n(K,e),()=>t(r,`default`)}});var q=`span`,J=e({name:`Icon`,props:G,setup(e,{slots:n}){let a=i(K,null),o=l(()=>{let t=e.size??a?.size;if(t!==void 0)return typeof t==`number`||/^\d+$/.test(t)?`${t}px`:t}),s=l(()=>{let{color:t}=e;return t===void 0?a?a.color:void 0:t}),c=l(()=>{let{tag:t}=e;return t===void 0?a?.tag??q:t});return u(()=>{W()}),()=>r(c.value,{class:`xicon`,style:{color:s.value,fontSize:o.value}},[t(n,`default`)])}}),Y=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n};export{J as n,d as r,Y as t};
|
||||
`)}function O(e){if(!e)return;let t=e.parentElement;t&&t.removeChild(e)}function k(e){return document.querySelector(`style[cssr-id="${e}"]`)}function A(e){let t=document.createElement(`style`);return t.setAttribute(`cssr-id`,e),t}window&&(window.__cssrContext={});function j(e){let t=e.getAttribute(`mount-count`);return t===null?null:Number(t)}function M(e,t){e.setAttribute(`mount-count`,String(t))}function N(e,t,n,r){let{els:i}=t;if(n===void 0)i.forEach(O),t.els=[];else{let e=k(n);if(e&&i.includes(e)){let a=j(e);r?a===null?console.error(`[css-render/unmount]: The style with target='${n}' is mounted in count mode.`):a<=1?(O(e),t.els=i.filter(t=>t!==e)):M(e,a-1):a===null?(O(e),t.els=i.filter(t=>t!==e)):console.error(`[css-render/unmount]: The style with target='${n}' is mounted in no-count mode.`)}}}function P(e,t){e.push(t)}function F(e,t,n,r,i,a,s,c,l){if(s&&!l){if(n===void 0){console.error("[css-render/mount]: `id` is required in `boost` mode.");return}let i=window.__cssrContext;i[n]||(i[n]=!0,D(t,e,r,s));return}let u,{els:d}=t,f;if(n===void 0&&(f=t.render(r),n=o(f)),l){l(n,f??t.render(r));return}let p=k(n);if(c||p===null){if(u=p===null?A(n):p,f===void 0&&(f=t.render(r)),u.textContent=f,p!==null)return;if(i){let e=document.head.getElementsByTagName(`style`)[0]||null;document.head.insertBefore(u,e)}else document.head.appendChild(u);a&&M(u,1),P(d,u)}else{let e=j(p);a?e===null?console.error(`[css-render/mount]: The style with id='${n}' has been mounted in no-count mode.`):M(p,e+1):e!==null&&console.error(`[css-render/mount]: The style with id='${n}' has been mounted in count mode.`)}return p??u}function I(e){return D(this,this.instance,e)}function L(e={}){let{target:t,id:n,ssr:r,props:i,count:a=!1,head:o=!1,boost:s=!1,force:c=!1}=e;return F(this.instance,this,n??t,i,o,a,s,c,r)}function R(e={}){let{id:t,target:n,delay:r=0,count:i=!1}=e;r===0?N(this.instance,this,t??n,i):setTimeout(()=>N(this.instance,this,t??n,i),r)}var z=function(e,t,n,r){return{instance:e,$:t,props:n,children:r,els:[],render:I,mount:L,unmount:R}},B=function(e,t,n,r){return Array.isArray(t)?z(e,{$:null},null,t):Array.isArray(n)?z(e,t,null,n):Array.isArray(r)?z(e,t,n,r):z(e,t,n,null)};function V(e={}){let t=null,n={c:((...e)=>B(n,...e)),use:(e,...t)=>e.install(n,...t),find:k,context:{},config:e,get __styleSheet(){if(!t){let e=document.createElement(`style`);return document.head.appendChild(e),t=document.styleSheets[document.styleSheets.length-1],t}return t}};return n}var{c:H}=V(),U=H(`.xicon`,{width:`1em`,height:`1em`,display:`inline-flex`},[H(`svg`,{width:`1em`,height:`1em`}),H(`svg:not([fill])`,{fill:`currentColor`})]),W=()=>{U.mount({id:`xicons-icon`})},G={size:[String,Number],color:String,tag:String},K=Symbol(`IconConfigInjection`);s({name:`IconConfigProvider`,props:G,setup(e,{slots:t}){return c(K,e),()=>i(t,`default`)}});var q=`span`,J=s({name:`Icon`,props:G,setup(a,{slots:o}){let s=t(K,null),c=r(()=>{let e=a.size??s?.size;if(e!==void 0)return typeof e==`number`||/^\d+$/.test(e)?`${e}px`:e}),l=r(()=>{let{color:e}=a;return e===void 0?s?s.color:void 0:e}),u=r(()=>{let{tag:e}=a;return e===void 0?s?.tag??q:e});return e(()=>{W()}),()=>n(u.value,{class:`xicon`,style:{color:l.value,fontSize:c.value}},[i(o,`default`)])}}),Y=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n};export{J as n,d as r,Y as t};
|
||||
@@ -1 +1 @@
|
||||
import{r as e}from"./auth-Dlv0TZH7.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{i as e}from"./auth-CwtlbtVe.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};
|
||||
Vendored
+1
File diff suppressed because one or more lines are too long
Vendored
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
||||
import{r as e,t}from"./auth-Dlv0TZH7.js";function n(){let e=t();return r(e.refreshTokenAction,e.getToken)}function r(t,n){async function r(r,i){let a={},o=n();o&&(a.Authorization=`Bearer ${o}`);let s=await fetch(`${e()}/${r}`,{...i,headers:{...a,...i.headers}});if(s.status==401){await t();let o=n();o&&(a.Authorization=`Bearer ${o}`),s=await fetch(`${e()}/${r}`,{...i,headers:{...a,...i.headers}})}return s}async function o(e,t){let n=await r(e,{method:`GET`});if(!n.ok)throw Error(await a(n));return{blob:await n.blob(),filename:i(n.headers.get(`Content-Disposition`))||t}}function s(e){return o(`api/scenarios/${e}/archive`,`scenario-${e}.zip`)}function c(e){return o(`api/games/${e}/teams/qr.pdf`,`game-${e}.pdf`)}async function l(e){let t=await r(`api/scenarios/archive`,{method:`POST`,headers:{"Content-Type":e.type||`application/zip`},body:e}),n=await t.json().catch(()=>null);if(!t.ok)return{id:null,error:n?.message||`Ошибка сервера (${t.status})`};let i=typeof n?.error==`string`&&n.error!==``?n.error:null;return{id:typeof n?.id==`number`?n.id:null,error:i}}return{downloadScenarioArchive:s,downloadTeamQR:c,uploadScenarioArchive:l}}function i(e){if(!e)return``;let t=e.match(/filename\*=UTF-8''([^;]+)/i);if(t)try{return decodeURIComponent(t[1].trim()).replace(/[\\/:*?"<>|]/g,`_`)}catch{}let n=e.match(/filename="?([^";]+)"?/i);return(n?n[1]:``).replace(/[\\/:*?"<>|]/g,`_`)}async function a(e){let t=await e.json().catch(()=>null);return t&&typeof t.message==`string`&&t.message!==``?t.message:`Ошибка сервера (${e.status})`}export{n as t};
|
||||
import{i as e,t}from"./auth-CwtlbtVe.js";function n(){let e=t();return r(e.refreshTokenAction,e.getToken)}function r(t,n){async function r(r,i){let a={},o=n();o&&(a.Authorization=`Bearer ${o}`);let s=await fetch(`${e()}/${r}`,{...i,headers:{...a,...i.headers}});if(s.status==401){await t();let o=n();o&&(a.Authorization=`Bearer ${o}`),s=await fetch(`${e()}/${r}`,{...i,headers:{...a,...i.headers}})}return s}async function o(e,t){let n=await r(e,{method:`GET`});if(!n.ok)throw Error(await a(n));return{blob:await n.blob(),filename:i(n.headers.get(`Content-Disposition`))||t}}function s(e){return o(`api/scenarios/${e}/archive`,`scenario-${e}.zip`)}function c(e){return o(`api/games/${e}/teams/qr.pdf`,`game-${e}.pdf`)}async function l(e){let t=await r(`api/scenarios/archive`,{method:`POST`,headers:{"Content-Type":e.type||`application/zip`},body:e}),n=await t.json().catch(()=>null);if(!t.ok)return{id:null,error:n?.message||`Ошибка сервера (${t.status})`};let i=typeof n?.error==`string`&&n.error!==``?n.error:null;return{id:typeof n?.id==`number`?n.id:null,error:i}}return{downloadScenarioArchive:s,downloadTeamQR:c,uploadScenarioArchive:l}}function i(e){if(!e)return``;let t=e.match(/filename\*=UTF-8''([^;]+)/i);if(t)try{return decodeURIComponent(t[1].trim()).replace(/[\\/:*?"<>|]/g,`_`)}catch{}let n=e.match(/filename="?([^";]+)"?/i);return(n?n[1]:``).replace(/[\\/:*?"<>|]/g,`_`)}async function a(e){let t=await e.json().catch(()=>null);return t&&typeof t.message==`string`&&t.message!==``?t.message:`Ошибка сервера (${e.status})`}export{n as t};
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
function e(e){let[t,n=``]=e.split(`T`),[r,i,a]=t.split(`-`).map(Number),[o,s,c]=(n.split(`.`)[0]||`00:00:00`).split(`:`).map(Number);return new Date(Date.UTC(r,i-1,a,o,s,c||0))}function t(t){if(!t)return``;let n=e(t);return Number.isNaN(n.getTime())?``:n.toLocaleString(`ru-RU`,{day:`2-digit`,month:`2-digit`,year:`numeric`,hour:`2-digit`,minute:`2-digit`})}export{e as n,t};
|
||||
Vendored
-210
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
||||
import{G as e,a as t}from"./light-CW1_EUxw.js";var{cubicBezierEaseInOut:n}=t;function r({name:t=`fade-in`,enterDuration:r=`0.2s`,leaveDuration:i=`0.2s`,enterCubicBezier:a=n,leaveCubicBezier:o=n}={}){return[e(`&.${t}-transition-enter-active`,{transition:`all ${r} ${a}!important`}),e(`&.${t}-transition-leave-active`,{transition:`all ${i} ${o}!important`}),e(`&.${t}-transition-enter-from, &.${t}-transition-leave-to`,{opacity:0}),e(`&.${t}-transition-leave-from, &.${t}-transition-enter-to`,{opacity:1})]}export{r as t};
|
||||
import{G as e,a as t}from"./light-BRabMcHj.js";var{cubicBezierEaseInOut:n}=t;function r({name:t=`fade-in`,enterDuration:r=`0.2s`,leaveDuration:i=`0.2s`,enterCubicBezier:a=n,leaveCubicBezier:o=n}={}){return[e(`&.${t}-transition-enter-active`,{transition:`all ${r} ${a}!important`}),e(`&.${t}-transition-leave-active`,{transition:`all ${i} ${o}!important`}),e(`&.${t}-transition-enter-from, &.${t}-transition-leave-to`,{opacity:0}),e(`&.${t}-transition-leave-from, &.${t}-transition-enter-to`,{opacity:1})]}export{r as t};
|
||||
@@ -1 +1 @@
|
||||
import{D as e,d as t}from"./light-CW1_EUxw.js";import{G as n,U as r}from"./index-DRS1zBKt.js";var i=/^(\d|\.)+$/,a=/(\d|\.)+/;function o(e,{c:t=1,offset:n=0,attachPx:r=!0}={}){if(typeof e==`number`){let r=(e+n)*t;return r===0?`0`:`${r}px`}else if(typeof e==`string`)if(i.test(e)){let i=(Number(e)+n)*t;return r?i===0?`0`:`${i}px`:`${i}`}else{let r=a.exec(e);return r?e.replace(a,String((Number(r[0])+n)*t)):e}return e}var s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/;function l(t,r){if(e(t))return!1;var i=typeof t;return i==`number`||i==`symbol`||i==`boolean`||t==null||n(t)?!0:c.test(t)||!s.test(t)||r!=null&&t in Object(r)}var u=`Expected a function`;function d(e,n){if(typeof e!=`function`||n!=null&&typeof n!=`function`)throw TypeError(u);var r=function(){var t=arguments,i=n?n.apply(this,t):t[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,t);return r.cache=a.set(i,o)||a,o};return r.cache=new(d.Cache||t),r}d.Cache=t;var f=500;function p(e){var t=d(e,function(e){return n.size===f&&n.clear(),e}),n=t.cache;return t}var m=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,h=/\\(\\)?/g,g=p(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(m,function(e,n,r,i){t.push(r?i.replace(h,`$1`):n||e)}),t});function _(t,n){return e(t)?t:l(t,n)?[t]:g(r(t))}var v=1/0;function y(e){if(typeof e==`string`||n(e))return e;var t=e+``;return t==`0`&&1/e==-v?`-0`:t}function b(e,t){t=_(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[y(t[n++])];return n&&n==r?e:void 0}function x(e,t,n){var r=e==null?void 0:b(e,t);return r===void 0?n:r}export{l as a,_ as i,b as n,o,y as r,x as t};
|
||||
import{D as e,d as t}from"./light-BRabMcHj.js";import{G as n,U as r}from"./index-BXcPK7uX.js";var i=/^(\d|\.)+$/,a=/(\d|\.)+/;function o(e,{c:t=1,offset:n=0,attachPx:r=!0}={}){if(typeof e==`number`){let r=(e+n)*t;return r===0?`0`:`${r}px`}else if(typeof e==`string`)if(i.test(e)){let i=(Number(e)+n)*t;return r?i===0?`0`:`${i}px`:`${i}`}else{let r=a.exec(e);return r?e.replace(a,String((Number(r[0])+n)*t)):e}return e}var s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/;function l(t,r){if(e(t))return!1;var i=typeof t;return i==`number`||i==`symbol`||i==`boolean`||t==null||n(t)?!0:c.test(t)||!s.test(t)||r!=null&&t in Object(r)}var u=`Expected a function`;function d(e,n){if(typeof e!=`function`||n!=null&&typeof n!=`function`)throw TypeError(u);var r=function(){var t=arguments,i=n?n.apply(this,t):t[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,t);return r.cache=a.set(i,o)||a,o};return r.cache=new(d.Cache||t),r}d.Cache=t;var f=500;function p(e){var t=d(e,function(e){return n.size===f&&n.clear(),e}),n=t.cache;return t}var m=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,h=/\\(\\)?/g,g=p(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(m,function(e,n,r,i){t.push(r?i.replace(h,`$1`):n||e)}),t});function _(t,n){return e(t)?t:l(t,n)?[t]:g(r(t))}var v=1/0;function y(e){if(typeof e==`string`||n(e))return e;var t=e+``;return t==`0`&&1/e==-v?`-0`:t}function b(e,t){t=_(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[y(t[n++])];return n&&n==r?e:void 0}function x(e,t,n){var r=e==null?void 0:b(e,t);return r===void 0?n:r}export{l as a,_ as i,b as n,o,y as r,x as t};
|
||||
Vendored
+200
File diff suppressed because one or more lines are too long
Vendored
-200
File diff suppressed because one or more lines are too long
Vendored
+1
@@ -0,0 +1 @@
|
||||
import{P as e,U as t,V as n,_ as r,ct as i,et as a,j as o}from"./auth-CwtlbtVe.js";import{d as s,f as c,u as l}from"./Card-CZpe3Jmm.js";import{X as u}from"./index-BXcPK7uX.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=o({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(),o=i(null),f=i(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=o.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=o.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===o.value?T(`last`):T(`first`))}return{focusableStartRef:o,focusableEndRef:f,focusableStyle:`position: absolute; height: 0; width: 0;`,handleStartFocus:E,handleEndFocus:D}},render(){let{default:t}=this.$slots;if(t===void 0)return null;if(this.disabled)return t();let{active:n,focusableStyle:i}=this;return e(r,null,[e(`div`,{"aria-hidden":`true`,tabindex:n?`0`:`-1`,ref:`focusableStartRef`,style:i,onFocus:this.handleStartFocus}),t(),e(`div`,{"aria-hidden":`true`,style:i,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};
|
||||
Vendored
-1
@@ -1 +0,0 @@
|
||||
import{$ as e,A as t,B as n,H as r,N as i,g as a,st as o}from"./auth-Dlv0TZH7.js";import{A as s,M as c,j as l}from"./Card-CfZWA1ay.js";import{o as u}from"./light-B-plK5Ph.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=t({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))}r(()=>{e(()=>t.active,e=>{e?(C(),l(`keydown`,document,b)):(s(`keydown`,document,b),h&&w())},{immediate:!0})}),n(()=>{s(`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:t,focusableStyle:n}=this;return i(a,null,[i(`div`,{"aria-hidden":`true`,tabindex:t?`0`:`-1`,ref:`focusableStartRef`,style:n,onFocus:this.handleStartFocus}),e(),i(`div`,{"aria-hidden":`true`,style:n,ref:`focusableEndRef`,tabindex:t?`0`:`-1`,onFocus:this.handleEndFocus})])}}),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};
|
||||
Vendored
-1
@@ -1 +0,0 @@
|
||||
import{O as e}from"./auth-Dlv0TZH7.js";import{t}from"./light-CW1_EUxw.js";function n(e=8){return Math.random().toString(16).slice(2,2+e)}function r(t,...n){return typeof t==`function`?t(...n):typeof t==`string`?e(t):typeof t==`number`?e(String(t)):null}var i={railInsetHorizontalBottom:`auto 2px 4px 2px`,railInsetHorizontalTop:`4px 2px auto 2px`,railInsetVerticalRight:`2px 4px 2px auto`,railInsetVerticalLeft:`2px auto 2px 4px`,railColor:`transparent`};function a(e){let{scrollbarColor:t,scrollbarColorHover:n,scrollbarHeight:r,scrollbarWidth:a,scrollbarBorderRadius:o}=e;return Object.assign(Object.assign({},i),{height:r,width:a,borderRadius:o,color:t,colorHover:n})}var o={name:`Scrollbar`,common:t,self:a},s={paddingSmall:`12px 16px 12px`,paddingMedium:`19px 24px 20px`,paddingLarge:`23px 32px 24px`,paddingHuge:`27px 40px 28px`,titleFontSizeSmall:`16px`,titleFontSizeMedium:`18px`,titleFontSizeLarge:`18px`,titleFontSizeHuge:`18px`,closeIconSize:`18px`,closeSize:`22px`};function c(e){let{primaryColor:t,borderRadius:n,lineHeight:r,fontSize:i,cardColor:a,textColor2:o,textColor1:c,dividerColor:l,fontWeightStrong:u,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:p,closeColorHover:m,closeColorPressed:h,modalColor:g,boxShadow1:_,popoverColor:v,actionColor:y}=e;return Object.assign(Object.assign({},s),{lineHeight:r,color:a,colorModal:g,colorPopover:v,colorTarget:t,colorEmbedded:y,colorEmbeddedModal:y,colorEmbeddedPopover:y,textColor:o,titleTextColor:c,borderColor:l,actionColor:y,titleFontWeight:u,closeColorHover:m,closeColorPressed:h,closeBorderRadius:n,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:p,fontSizeSmall:i,fontSizeMedium:i,fontSizeLarge:i,fontSizeHuge:i,boxShadow:_,borderRadius:n})}var l={name:`Card`,common:t,self:c};export{r as a,a as i,c as n,n as o,o as r,l as t};
|
||||
File diff suppressed because one or more lines are too long
Vendored
+1
@@ -0,0 +1 @@
|
||||
import{t as e}from"./light-BRabMcHj.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},i={paddingSmall:`12px 16px 12px`,paddingMedium:`19px 24px 20px`,paddingLarge:`23px 32px 24px`,paddingHuge:`27px 40px 28px`,titleFontSizeSmall:`16px`,titleFontSizeMedium:`18px`,titleFontSizeLarge:`18px`,titleFontSizeHuge:`18px`,closeIconSize:`18px`,closeSize:`22px`};function a(e){let{primaryColor:t,borderRadius:n,lineHeight:r,fontSize:a,cardColor:o,textColor2:s,textColor1:c,dividerColor:l,fontWeightStrong:u,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:p,closeColorHover:m,closeColorPressed:h,modalColor:g,boxShadow1:_,popoverColor:v,actionColor:y}=e;return Object.assign(Object.assign({},i),{lineHeight:r,color:o,colorModal:g,colorPopover:v,colorTarget:t,colorEmbedded:y,colorEmbeddedModal:y,colorEmbeddedPopover:y,textColor:s,titleTextColor:c,borderColor:l,actionColor:y,titleFontWeight:u,closeColorHover:m,closeColorPressed:h,closeBorderRadius:n,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:p,fontSizeSmall:a,fontSizeMedium:a,fontSizeLarge:a,fontSizeHuge:a,boxShadow:_,borderRadius:n})}var o={name:`Card`,common:e,self:a};export{n as i,a as n,r,o as t};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{F as e,g as t,h as n}from"./auth-Dlv0TZH7.js";function r(e){return typeof e==`string`?e.endsWith(`px`)?Number(e.slice(0,e.length-2)):Number(e):e}function i(e){if(e!=null)return typeof e==`number`?`${e}px`:e.endsWith(`px`)?e:`${e}px`}function a(e,t){let n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw Error(`[seemly/getMargin]:`+e+` is not a valid value.`)}return t===void 0?r:r[t]}function o(e,t){let[n,r]=e.split(` `);return t?t===`row`?n:r:{row:n,col:r||n}}function s(r){return r.some(r=>e(r)?!(r.type===n||r.type===t&&!s(r.children)):!0)?r:null}function c(e,t){return e&&s(e())||t()}function l(e,t,n){return e&&s(e(t))||n(t)}function u(e,t){return t(e&&s(e())||null)}function d(e){return!(e&&s(e()))}export{u as a,a as c,l as i,i as l,d as n,r as o,c as r,o as s,s as t};
|
||||
import{I as e,_ as t,g as n}from"./auth-CwtlbtVe.js";function r(e){return typeof e==`string`?e.endsWith(`px`)?Number(e.slice(0,e.length-2)):Number(e):e}function i(e){if(e!=null)return typeof e==`number`?`${e}px`:e.endsWith(`px`)?e:`${e}px`}function a(e,t){let n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw Error(`[seemly/getMargin]:`+e+` is not a valid value.`)}return t===void 0?r:r[t]}function o(e,t){let[n,r]=e.split(` `);return t?t===`row`?n:r:{row:n,col:r||n}}function s(r){return r.some(r=>e(r)?!(r.type===n||r.type===t&&!s(r.children)):!0)?r:null}function c(e,t){return e&&s(e())||t()}function l(e,t,n){return e&&s(e(t))||n(t)}function u(e,t){return t(e&&s(e())||null)}function d(e){return!(e&&s(e()))}export{u as a,a as c,l as i,i as l,d as n,r as o,c as r,o as s,s as t};
|
||||
@@ -1,4 +1,4 @@
|
||||
import{A as e,N as t,x as n}from"./auth-Dlv0TZH7.js";import{K as r,M as i,N as a,Y as o,Z as s,r as c}from"./light-CW1_EUxw.js";import{t as l}from"./use-compitable-s8dIAO0Z.js";import{r as u}from"./index-DRS1zBKt.js";var d=r(`text`,`
|
||||
import{P as e,S as t,j as n}from"./auth-CwtlbtVe.js";import{K as r,M as i,N as a,Y as o,Z as s,r as c}from"./light-BRabMcHj.js";import{t as l}from"./use-compitable-BlhpvjTe.js";import{r as u}from"./index-BXcPK7uX.js";var d=r(`text`,`
|
||||
transition: color .3s var(--n-bezier);
|
||||
color: var(--n-text-color);
|
||||
`,[o(`strong`,`
|
||||
@@ -18,4 +18,4 @@ import{A as e,N as t,x as n}from"./auth-Dlv0TZH7.js";import{K as r,M as i,N as a
|
||||
color: var(--n-code-text-color);
|
||||
background-color: var(--n-code-color);
|
||||
border: var(--n-code-border);
|
||||
`)]),f=e({name:`Text`,props:Object.assign(Object.assign({},c.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:r}=a(e),o=c(`Typography`,`-text`,d,u,e,t),f=n(()=>{let{depth:t,type:n}=e,r=n==="default"?t===void 0?`textColor`:`textColor${t}Depth`:s(`textColor`,n),{common:{fontWeightStrong:i,fontFamilyMono:a,cubicBezierEaseInOut:c},self:{codeTextColor:l,codeBorderRadius:u,codeColor:d,codeBorder:f,[r]:p}}=o.value;return{"--n-bezier":c,"--n-text-color":p,"--n-font-weight-strong":i,"--n-font-famliy-mono":a,"--n-code-border-radius":u,"--n-code-text-color":l,"--n-code-color":d,"--n-code-border":f}}),p=r?i(`text`,n(()=>`${e.type[0]}${e.depth||``}`),f,e):void 0;return{mergedClsPrefix:t,compitableTag:l(e,[`as`,`tag`]),cssVars:r?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=n({name:`Text`,props:Object.assign(Object.assign({},c.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:n,inlineThemeDisabled:r}=a(e),o=c(`Typography`,`-text`,d,u,e,n),f=t(()=>{let{depth:t,type:n}=e,r=n==="default"?t===void 0?`textColor`:`textColor${t}Depth`:s(`textColor`,n),{common:{fontWeightStrong:i,fontFamilyMono:a,cubicBezierEaseInOut:c},self:{codeTextColor:l,codeBorderRadius:u,codeColor:d,codeBorder:f,[r]:p}}=o.value;return{"--n-bezier":c,"--n-text-color":p,"--n-font-weight-strong":i,"--n-font-famliy-mono":a,"--n-code-border-radius":u,"--n-code-text-color":l,"--n-code-color":d,"--n-code-border":f}}),p=r?i(`text`,t(()=>`${e.type[0]}${e.depth||``}`),f,e):void 0;return{mergedClsPrefix:n,compitableTag:l(e,[`as`,`tag`]),cssVars:r?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};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{x as e}from"./auth-Dlv0TZH7.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{S as e}from"./auth-CwtlbtVe.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{P as e}from"./auth-Dlv0TZH7.js";import{I as t}from"./light-CW1_EUxw.js";import{f as n}from"./index-DRS1zBKt.js";function r(){let r=e(n,null);return r===null&&t(`use-message`,"No outer <n-message-provider /> founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),r}export{r as t};
|
||||
import{F as e}from"./auth-CwtlbtVe.js";import{I as t}from"./light-BRabMcHj.js";import{f as n}from"./index-BXcPK7uX.js";function r(){let r=e(n,null);return r===null&&t(`use-message`,"No outer <n-message-provider /> founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),r}export{r as t};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{H as e,U as t,st as n}from"./auth-Dlv0TZH7.js";function r(r,i=5e3){let a=n(!0),o=null,s=()=>{a.value=!0,r(),o=window.setInterval(r,i)},c=()=>{a.value=!1,o&&=(clearInterval(o),null)};return e(s),t(c),{isActive:a,start:s,stop:c}}export{r as t};
|
||||
import{U as e,W as t,ct as n}from"./auth-CwtlbtVe.js";function r(r,i=5e3){let a=n(!0),o=null,s=()=>{a.value=!0,r(),o=window.setInterval(r,i)},c=()=>{a.value=!1,o&&=(clearInterval(o),null)};return e(s),t(c),{isActive:a,start:s,stop:c}}export{r as t};
|
||||
Vendored
-131
File diff suppressed because one or more lines are too long
Vendored
+131
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user