From b7696a9f7e738c416a67927f8e0737ce3b6b42c5 Mon Sep 17 00:00:00 2001 From: Fedorov Vladimir Date: Mon, 5 Oct 2026 01:20:07 +0700 Subject: [PATCH] up --- frontend/dist/assets/Alert-CWmvp18Y.js | 48 -- frontend/dist/assets/Button-D8HO8D_D.js | 109 ----- frontend/dist/assets/Card-BX9nnwGC.js | 190 -------- frontend/dist/assets/CatalogView-Cht9pfXA.js | 1 - frontend/dist/assets/ConsentView-ihWgF1BE.js | 1 - frontend/dist/assets/DocsPage-Dt91bPTm.js | 43 -- frontend/dist/assets/Flex-LW-PCNxv.js | 1 - frontend/dist/assets/Follower-Bm7xH84Z.js | 1 - .../dist/assets/GameResultsView-yqRvFASD.js | 1 - frontend/dist/assets/GameView-CLny06h6.js | 7 - frontend/dist/assets/GameView-DehtTlnF.css | 1 - frontend/dist/assets/GamesView-Y7iWJsX5.js | 362 -------------- frontend/dist/assets/HeaderMenu--hCKWQY2.js | 1 - frontend/dist/assets/HeaderMenu-B00Lip4O.css | 1 - frontend/dist/assets/HomeView-CwY9V2vM.js | 1 - frontend/dist/assets/Input-B3ERgh42.js | 234 ---------- frontend/dist/assets/LoginView-C7kNhOvh.js | 113 ----- frontend/dist/assets/Modal-a8TxC5Fw.js | 108 ----- frontend/dist/assets/OfficeView-Hndeqd3w.js | 1 - .../dist/assets/ParticipationView-BSm9ZH0f.js | 1 - frontend/dist/assets/PlaceBlock-lvcHyG82.js | 207 -------- frontend/dist/assets/Popover-D_PD8cLD.js | 117 ----- .../dist/assets/PrivacyPolicyView-C4BPsXgv.js | 1 - frontend/dist/assets/Rate-BlfAKQvG.js | 36 -- frontend/dist/assets/ReviewsView-SsQRgG3N.js | 1 - frontend/dist/assets/ScenarioView-DTRuwAMu.js | 1 - .../assets/ScenariosEditorView-CGEDi4to.js | 1 - .../dist/assets/ScenariosView-BY33aKCt.js | 1 - frontend/dist/assets/ScreenView-DjL9TWbI.js | 1 - frontend/dist/assets/Select-CqnQA6h4.js | 210 --------- frontend/dist/assets/Space-B8J_02Fa.js | 1 - frontend/dist/assets/Suffix-BVApm8eE.js | 25 - frontend/dist/assets/Tabs-DpaEFwbI.js | 352 -------------- frontend/dist/assets/Tag-wKk--N0F.js | 71 --- .../dist/assets/TeamStoryView-DuxsuXaz.js | 1 - .../assets/TicketScannerView-CCl0qPXf.css | 1 - .../dist/assets/TicketScannerView-CTELQxSO.js | 1 - frontend/dist/assets/TicketView-BIpPaETb.js | 1 - frontend/dist/assets/Upload-DWDjLEkv.js | 440 ------------------ .../dist/assets/UserAgreementView-d3yiTDGl.js | 1 - frontend/dist/assets/UsersView-CBg-opwf.js | 105 ----- .../dist/assets/binary_client-C7IqFUIC.js | 1 - frontend/dist/assets/es-BS8VS4O3.js | 10 - .../assets/fade-in-scale-up.cssr-DOaveAHn.js | 1 - frontend/dist/assets/get-0R_rx1dU.js | 1 - frontend/dist/assets/index-oex1uI7H.js | 200 -------- frontend/dist/assets/keep-tsznRFn-.js | 1 - frontend/dist/assets/text-CQ4PuMIN.js | 21 - frontend/dist/assets/utils-COJuPdUX.js | 131 ------ frontend/dist/index.html | 2 +- 50 files changed, 1 insertion(+), 3167 deletions(-) delete mode 100644 frontend/dist/assets/Alert-CWmvp18Y.js delete mode 100644 frontend/dist/assets/Button-D8HO8D_D.js delete mode 100644 frontend/dist/assets/Card-BX9nnwGC.js delete mode 100644 frontend/dist/assets/CatalogView-Cht9pfXA.js delete mode 100644 frontend/dist/assets/ConsentView-ihWgF1BE.js delete mode 100644 frontend/dist/assets/DocsPage-Dt91bPTm.js delete mode 100644 frontend/dist/assets/Flex-LW-PCNxv.js delete mode 100644 frontend/dist/assets/Follower-Bm7xH84Z.js delete mode 100644 frontend/dist/assets/GameResultsView-yqRvFASD.js delete mode 100644 frontend/dist/assets/GameView-CLny06h6.js delete mode 100644 frontend/dist/assets/GameView-DehtTlnF.css delete mode 100644 frontend/dist/assets/GamesView-Y7iWJsX5.js delete mode 100644 frontend/dist/assets/HeaderMenu--hCKWQY2.js delete mode 100644 frontend/dist/assets/HeaderMenu-B00Lip4O.css delete mode 100644 frontend/dist/assets/HomeView-CwY9V2vM.js delete mode 100644 frontend/dist/assets/Input-B3ERgh42.js delete mode 100644 frontend/dist/assets/LoginView-C7kNhOvh.js delete mode 100644 frontend/dist/assets/Modal-a8TxC5Fw.js delete mode 100644 frontend/dist/assets/OfficeView-Hndeqd3w.js delete mode 100644 frontend/dist/assets/ParticipationView-BSm9ZH0f.js delete mode 100644 frontend/dist/assets/PlaceBlock-lvcHyG82.js delete mode 100644 frontend/dist/assets/Popover-D_PD8cLD.js delete mode 100644 frontend/dist/assets/PrivacyPolicyView-C4BPsXgv.js delete mode 100644 frontend/dist/assets/Rate-BlfAKQvG.js delete mode 100644 frontend/dist/assets/ReviewsView-SsQRgG3N.js delete mode 100644 frontend/dist/assets/ScenarioView-DTRuwAMu.js delete mode 100644 frontend/dist/assets/ScenariosEditorView-CGEDi4to.js delete mode 100644 frontend/dist/assets/ScenariosView-BY33aKCt.js delete mode 100644 frontend/dist/assets/ScreenView-DjL9TWbI.js delete mode 100644 frontend/dist/assets/Select-CqnQA6h4.js delete mode 100644 frontend/dist/assets/Space-B8J_02Fa.js delete mode 100644 frontend/dist/assets/Suffix-BVApm8eE.js delete mode 100644 frontend/dist/assets/Tabs-DpaEFwbI.js delete mode 100644 frontend/dist/assets/Tag-wKk--N0F.js delete mode 100644 frontend/dist/assets/TeamStoryView-DuxsuXaz.js delete mode 100644 frontend/dist/assets/TicketScannerView-CCl0qPXf.css delete mode 100644 frontend/dist/assets/TicketScannerView-CTELQxSO.js delete mode 100644 frontend/dist/assets/TicketView-BIpPaETb.js delete mode 100644 frontend/dist/assets/Upload-DWDjLEkv.js delete mode 100644 frontend/dist/assets/UserAgreementView-d3yiTDGl.js delete mode 100644 frontend/dist/assets/UsersView-CBg-opwf.js delete mode 100644 frontend/dist/assets/binary_client-C7IqFUIC.js delete mode 100644 frontend/dist/assets/es-BS8VS4O3.js delete mode 100644 frontend/dist/assets/fade-in-scale-up.cssr-DOaveAHn.js delete mode 100644 frontend/dist/assets/get-0R_rx1dU.js delete mode 100644 frontend/dist/assets/index-oex1uI7H.js delete mode 100644 frontend/dist/assets/keep-tsznRFn-.js delete mode 100644 frontend/dist/assets/text-CQ4PuMIN.js delete mode 100644 frontend/dist/assets/utils-COJuPdUX.js diff --git a/frontend/dist/assets/Alert-CWmvp18Y.js b/frontend/dist/assets/Alert-CWmvp18Y.js deleted file mode 100644 index 2292602..0000000 --- a/frontend/dist/assets/Alert-CWmvp18Y.js +++ /dev/null @@ -1,48 +0,0 @@ -import{I as e,N as t,V as n,w as r,yt as i}from"./client-CT8bsOZT.js";import{G as a,H as o,I as s,L as c,M as l,N as u,V as d,W as f,o as p,q as m,r as h,t as g}from"./light-DhgSQSdG.js";import{r as _}from"./css-DEmdllcC.js";import{a as v,r as y}from"./resolve-slot-BEScaVot.js";import{B as b,E as x,F as S,L as C,P as w,R as T,T as E,U as D,z as O}from"./index-oex1uI7H.js";function k(e){let{lineHeight:t,borderRadius:n,fontWeightStrong:r,baseColor:i,dividerColor:a,actionColor:o,textColor1:l,textColor2:u,closeColorHover:d,closeColorPressed:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,infoColor:g,successColor:_,warningColor:v,errorColor:y,fontSize:b}=e;return Object.assign(Object.assign({},x),{fontSize:b,lineHeight:t,titleFontWeight:r,borderRadius:n,border:`1px solid ${a}`,color:o,titleTextColor:l,iconColor:u,contentTextColor:u,closeBorderRadius:n,closeColorHover:d,closeColorPressed:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,borderInfo:`1px solid ${c(i,s(g,{alpha:.25}))}`,colorInfo:c(i,s(g,{alpha:.08})),titleTextColorInfo:l,iconColorInfo:g,contentTextColorInfo:u,closeColorHoverInfo:d,closeColorPressedInfo:f,closeIconColorInfo:p,closeIconColorHoverInfo:m,closeIconColorPressedInfo:h,borderSuccess:`1px solid ${c(i,s(_,{alpha:.25}))}`,colorSuccess:c(i,s(_,{alpha:.08})),titleTextColorSuccess:l,iconColorSuccess:_,contentTextColorSuccess:u,closeColorHoverSuccess:d,closeColorPressedSuccess:f,closeIconColorSuccess:p,closeIconColorHoverSuccess:m,closeIconColorPressedSuccess:h,borderWarning:`1px solid ${c(i,s(v,{alpha:.33}))}`,colorWarning:c(i,s(v,{alpha:.08})),titleTextColorWarning:l,iconColorWarning:v,contentTextColorWarning:u,closeColorHoverWarning:d,closeColorPressedWarning:f,closeIconColorWarning:p,closeIconColorHoverWarning:m,closeIconColorPressedWarning:h,borderError:`1px solid ${c(i,s(y,{alpha:.25}))}`,colorError:c(i,s(y,{alpha:.08})),titleTextColorError:l,iconColorError:y,contentTextColorError:u,closeColorHoverError:d,closeColorPressedError:f,closeIconColorError:p,closeIconColorHoverError:m,closeIconColorPressedError:h})}var A={name:`Alert`,common:g,self:k},j=o(`alert`,` - line-height: var(--n-line-height); - border-radius: var(--n-border-radius); - position: relative; - transition: background-color .3s var(--n-bezier); - background-color: var(--n-color); - text-align: start; - word-break: break-word; -`,[f(`border`,` - border-radius: inherit; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - transition: border-color .3s var(--n-bezier); - border: var(--n-border); - pointer-events: none; - `),a(`closable`,[o(`alert-body`,[f(`title`,` - padding-right: 24px; - `)])]),f(`icon`,{color:`var(--n-icon-color)`}),o(`alert-body`,{padding:`var(--n-padding)`},[f(`title`,{color:`var(--n-title-text-color)`}),f(`content`,{color:`var(--n-content-text-color)`})]),E({originalTransition:`transform .3s var(--n-bezier)`,enterToProps:{transform:`scale(1)`},leaveToProps:{transform:`scale(0.9)`}}),f(`icon`,` - position: absolute; - left: 0; - top: 0; - align-items: center; - justify-content: center; - display: flex; - width: var(--n-icon-size); - height: var(--n-icon-size); - font-size: var(--n-icon-size); - margin: var(--n-icon-margin); - `),f(`close`,` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - position: absolute; - right: 0; - top: 0; - margin: var(--n-close-margin); - `),a(`show-icon`,[o(`alert-body`,{paddingLeft:`calc(var(--n-icon-margin-left) + var(--n-icon-size) + var(--n-icon-margin-right))`})]),a(`right-adjust`,[o(`alert-body`,{paddingRight:`calc(var(--n-close-size) + var(--n-padding) + 2px)`})]),o(`alert-body`,` - border-radius: var(--n-border-radius); - transition: border-color .3s var(--n-bezier); - `,[f(`title`,` - transition: color .3s var(--n-bezier); - font-size: 16px; - line-height: 19px; - font-weight: var(--n-title-font-weight); - `,[d(`& +`,[f(`content`,{marginTop:`9px`})])]),f(`content`,{transition:`color .3s var(--n-bezier)`,fontSize:`var(--n-font-size)`})]),f(`icon`,{transition:`color .3s var(--n-bezier)`})]),M=t({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=p(`Alert`,o,t),d=r(()=>{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:p,closeMargin:h,closeMarginRtl:g,padding:v}=n,{type:y}=e,{left:b,right:x}=_(l);return{"--n-bezier":t,"--n-color":n[m(`color`,y)],"--n-close-icon-size":d,"--n-close-border-radius":f,"--n-close-color-hover":n[m(`closeColorHover`,y)],"--n-close-color-pressed":n[m(`closeColorPressed`,y)],"--n-close-icon-color":n[m(`closeIconColor`,y)],"--n-close-icon-color-hover":n[m(`closeIconColorHover`,y)],"--n-close-icon-color-pressed":n[m(`closeIconColorPressed`,y)],"--n-icon-color":n[m(`iconColor`,y)],"--n-border":n[m(`border`,y)],"--n-title-text-color":n[m(`titleTextColor`,y)],"--n-content-text-color":n[m(`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":p,"--n-close-margin":h,"--n-close-margin-rtl":g,"--n-padding":v,"--n-icon-margin-left":b,"--n-icon-margin-right":x}}),f=a?l(`alert`,r(()=>e.type[0]),d,e):void 0,g=i(!0),v=()=>{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:()=>{v()},mergedTheme:s,cssVars:a?void 0:d,themeClass:f?.themeClass,onRender:f?.onRender}},render(){var t;return(t=this.onRender)==null||t.call(this),e(w,{onAfterLeave:this.handleAfterLeave},{default:()=>{let{mergedClsPrefix:t,$slots:r}=this,i={class:[`${t}-alert`,this.themeClass,this.closable&&`${t}-alert--closable`,this.showIcon&&`${t}-alert--show-icon`,!this.title&&this.closable&&`${t}-alert--right-adjust`,this.rtlEnabled&&`${t}-alert--rtl`],style:this.cssVars,role:`alert`};return this.visible?e(`div`,Object.assign({},n(this.$attrs,i)),this.closable&&e(S,{clsPrefix:t,class:`${t}-alert__close`,onClick:this.handleCloseClick}),this.bordered&&e(`div`,{class:`${t}-alert__border`}),this.showIcon&&e(`div`,{class:`${t}-alert__icon`,"aria-hidden":`true`},y(r.icon,()=>[e(D,{clsPrefix:t},{default:()=>{switch(this.type){case`success`:return e(T,null);case`info`:return e(O,null);case`warning`:return e(C,null);case`error`:return e(b,null);default:return null}}})])),e(`div`,{class:[`${t}-alert-body`,this.mergedBordered&&`${t}-alert-body--bordered`]},v(r.header,n=>{let r=n||this.title;return r?e(`div`,{class:`${t}-alert-body__title`},r):null}),r.default&&e(`div`,{class:`${t}-alert-body__content`},r))):null}})}});export{M as t}; \ No newline at end of file diff --git a/frontend/dist/assets/Button-D8HO8D_D.js b/frontend/dist/assets/Button-D8HO8D_D.js deleted file mode 100644 index 28b8e90..0000000 --- a/frontend/dist/assets/Button-D8HO8D_D.js +++ /dev/null @@ -1,109 +0,0 @@ -import{G as e,H as t,I as n,N as r,R as i,St as a,m as o,w as s,yt as c}from"./client-CT8bsOZT.js";import{G as l,H as u,I as d,K as f,L as p,M as m,N as h,V as g,W as _,a as v,i as y,o as b,q as x,r as S}from"./light-DhgSQSdG.js";import{i as C,n as w,r as T}from"./use-form-item-CBXe24ar.js";import{a as E,n as D}from"./resolve-slot-BEScaVot.js";import{H as O,I as k,M as A,P as j,S as M,X as N}from"./index-oex1uI7H.js";var P=typeof document<`u`&&typeof window<`u`,{cubicBezierEaseInOut:F}=v;function I({duration:e=`.2s`,delay:t=`.1s`}={}){return[g(`&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to`,{opacity:1}),g(`&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from`,` - opacity: 0!important; - margin-left: 0!important; - margin-right: 0!important; - `),g(`&.fade-in-width-expand-transition-leave-active`,` - overflow: hidden; - transition: - opacity ${e} ${F}, - max-width ${e} ${F} ${t}, - margin-left ${e} ${F} ${t}, - margin-right ${e} ${F} ${t}; - `),g(`&.fade-in-width-expand-transition-enter-active`,` - overflow: hidden; - transition: - opacity ${e} ${F} ${t}, - max-width ${e} ${F}, - margin-left ${e} ${F}, - margin-right ${e} ${F}; - `)]}var L=u(`base-wave`,` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; -`),R=r({name:`BaseWave`,props:{clsPrefix:{type:String,required:!0}},setup(n){y(`-base-wave`,L,a(n,`clsPrefix`));let r=c(null),i=c(!1),o=null;return e(()=>{o!==null&&window.clearTimeout(o)}),{active:i,selfRef:r,play(){o!==null&&(window.clearTimeout(o),i.value=!1,o=null),t(()=>{var e;(e=r.value)==null||e.offsetHeight,i.value=!0,o=window.setTimeout(()=>{i.value=!1,o=null},1e3)})}}},render(){let{clsPrefix:e}=this;return n(`div`,{ref:`selfRef`,"aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),z=P&&`chrome`in window;P&&navigator.userAgent.includes(`Firefox`);var B=P&&navigator.userAgent.includes(`Safari`)&&!z;function V(e){return p(e,[255,255,255,.16])}function H(e){return p(e,[0,0,0,.12])}var U=o(`n-button-group`),W=g([u(`button`,` - margin: 0; - font-weight: var(--n-font-weight); - line-height: 1; - font-family: inherit; - padding: var(--n-padding); - height: var(--n-height); - font-size: var(--n-font-size); - border-radius: var(--n-border-radius); - color: var(--n-text-color); - background-color: var(--n-color); - width: var(--n-width); - white-space: nowrap; - outline: none; - position: relative; - z-index: auto; - border: none; - display: inline-flex; - flex-wrap: nowrap; - flex-shrink: 0; - align-items: center; - justify-content: center; - user-select: none; - -webkit-user-select: none; - text-align: center; - cursor: pointer; - text-decoration: none; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[l(`color`,[_(`border`,{borderColor:`var(--n-border-color)`}),l(`disabled`,[_(`border`,{borderColor:`var(--n-border-color-disabled)`})]),f(`disabled`,[g(`&:focus`,[_(`state-border`,{borderColor:`var(--n-border-color-focus)`})]),g(`&:hover`,[_(`state-border`,{borderColor:`var(--n-border-color-hover)`})]),g(`&:active`,[_(`state-border`,{borderColor:`var(--n-border-color-pressed)`})]),l(`pressed`,[_(`state-border`,{borderColor:`var(--n-border-color-pressed)`})])])]),l(`disabled`,{backgroundColor:`var(--n-color-disabled)`,color:`var(--n-text-color-disabled)`},[_(`border`,{border:`var(--n-border-disabled)`})]),f(`disabled`,[g(`&:focus`,{backgroundColor:`var(--n-color-focus)`,color:`var(--n-text-color-focus)`},[_(`state-border`,{border:`var(--n-border-focus)`})]),g(`&:hover`,{backgroundColor:`var(--n-color-hover)`,color:`var(--n-text-color-hover)`},[_(`state-border`,{border:`var(--n-border-hover)`})]),g(`&:active`,{backgroundColor:`var(--n-color-pressed)`,color:`var(--n-text-color-pressed)`},[_(`state-border`,{border:`var(--n-border-pressed)`})]),l(`pressed`,{backgroundColor:`var(--n-color-pressed)`,color:`var(--n-text-color-pressed)`},[_(`state-border`,{border:`var(--n-border-pressed)`})])]),l(`loading`,`cursor: wait;`),u(`base-wave`,` - pointer-events: none; - top: 0; - right: 0; - bottom: 0; - left: 0; - animation-iteration-count: 1; - animation-duration: var(--n-ripple-duration); - animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out); - `,[l(`active`,{zIndex:1,animationName:`button-wave-spread, button-wave-opacity`})]),P&&`MozBoxSizing`in document.createElement(`div`).style?g(`&::moz-focus-inner`,{border:0}):null,_(`border, state-border`,` - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - border-radius: inherit; - transition: border-color .3s var(--n-bezier); - pointer-events: none; - `),_(`border`,` - border: var(--n-border); - `),_(`state-border`,` - border: var(--n-border); - border-color: #0000; - z-index: 1; - `),_(`icon`,` - margin: var(--n-icon-margin); - margin-left: 0; - height: var(--n-icon-size); - width: var(--n-icon-size); - max-width: var(--n-icon-size); - font-size: var(--n-icon-size); - position: relative; - flex-shrink: 0; - `,[u(`icon-slot`,` - height: var(--n-icon-size); - width: var(--n-icon-size); - position: absolute; - left: 0; - top: 50%; - transform: translateY(-50%); - display: flex; - align-items: center; - justify-content: center; - `,[k({top:`50%`,originalTransform:`translateY(-50%)`})]),I()]),_(`content`,` - display: flex; - align-items: center; - flex-wrap: nowrap; - min-width: 0; - `,[g(`~`,[_(`icon`,{margin:`var(--n-icon-margin)`,marginRight:0})])]),l(`block`,` - display: flex; - width: 100%; - `),l(`dashed`,[_(`border, state-border`,{borderStyle:`dashed !important`})]),l(`disabled`,{cursor:`not-allowed`,opacity:`var(--n-opacity-disabled)`})]),g(`@keyframes button-wave-spread`,{from:{boxShadow:`0 0 0.5px 0 var(--n-ripple-color)`},to:{boxShadow:`0 0 0.5px 4.5px var(--n-ripple-color)`}}),g(`@keyframes button-wave-opacity`,{from:{opacity:`var(--n-wave-opacity)`},to:{opacity:0}})]),G=r({name:`Button`,props:Object.assign(Object.assign({},S.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:`button`},type:{type:String,default:`default`},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:`left`},attrType:{type:String,default:`button`},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!B},spinProps:Object}),slots:Object,setup(e){let t=c(null),n=c(null),r=c(!1),a=N(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),o=i(U,{}),{inlineThemeDisabled:l,mergedClsPrefixRef:u,mergedRtlRef:f,mergedComponentPropsRef:p}=h(e),{mergedSizeRef:g}=w({},{defaultSize:`medium`,mergedSize:t=>{let{size:n}=e;if(n)return n;let{size:r}=o;if(r)return r;let{mergedSize:i}=t||{};return i?i.value:p?.value?.Button?.size||`medium`}}),_=s(()=>e.focusable&&!e.disabled),v=n=>{var r;_.value||n.preventDefault(),!e.nativeFocusBehavior&&(n.preventDefault(),!e.disabled&&_.value&&((r=t.value)==null||r.focus({preventScroll:!0})))},y=t=>{var r;if(!e.disabled&&!e.loading){let{onClick:i}=e;i&&T(i,t),e.text||(r=n.value)==null||r.play()}},E=t=>{switch(t.key){case`Enter`:if(!e.keyboard)return;r.value=!1}},D=t=>{switch(t.key){case`Enter`:if(!e.keyboard||e.loading){t.preventDefault();return}r.value=!0}},O=()=>{r.value=!1},k=S(`Button`,`-button`,W,M,e,u),A=b(`Button`,f,u),j=s(()=>{let{common:{cubicBezierEaseInOut:t,cubicBezierEaseOut:n},self:r}=k.value,{rippleDuration:i,opacityDisabled:a,fontWeight:o,fontWeightStrong:s}=r,c=g.value,{dashed:l,type:u,ghost:f,text:p,color:m,round:h,circle:_,textColor:v,secondary:y,tertiary:b,quaternary:S,strong:C}=e,w={"--n-font-weight":C?s:o},T={"--n-color":`initial`,"--n-color-hover":`initial`,"--n-color-pressed":`initial`,"--n-color-focus":`initial`,"--n-color-disabled":`initial`,"--n-ripple-color":`initial`,"--n-text-color":`initial`,"--n-text-color-hover":`initial`,"--n-text-color-pressed":`initial`,"--n-text-color-focus":`initial`,"--n-text-color-disabled":`initial`},E=u===`tertiary`,D=u==="default",O=E?`default`:u;if(p){let e=v||m;T={"--n-color":`#0000`,"--n-color-hover":`#0000`,"--n-color-pressed":`#0000`,"--n-color-focus":`#0000`,"--n-color-disabled":`#0000`,"--n-ripple-color":`#0000`,"--n-text-color":e||r[x(`textColorText`,O)],"--n-text-color-hover":e?V(e):r[x(`textColorTextHover`,O)],"--n-text-color-pressed":e?H(e):r[x(`textColorTextPressed`,O)],"--n-text-color-focus":e?V(e):r[x(`textColorTextHover`,O)],"--n-text-color-disabled":e||r[x(`textColorTextDisabled`,O)]}}else if(f||l){let e=v||m;T={"--n-color":`#0000`,"--n-color-hover":`#0000`,"--n-color-pressed":`#0000`,"--n-color-focus":`#0000`,"--n-color-disabled":`#0000`,"--n-ripple-color":m||r[x(`rippleColor`,O)],"--n-text-color":e||r[x(`textColorGhost`,O)],"--n-text-color-hover":e?V(e):r[x(`textColorGhostHover`,O)],"--n-text-color-pressed":e?H(e):r[x(`textColorGhostPressed`,O)],"--n-text-color-focus":e?V(e):r[x(`textColorGhostHover`,O)],"--n-text-color-disabled":e||r[x(`textColorGhostDisabled`,O)]}}else if(y){let e=D?r.textColor:E?r.textColorTertiary:r[x(`color`,O)],t=m||e,n=u!=="default"&&u!==`tertiary`;T={"--n-color":n?d(t,{alpha:Number(r.colorOpacitySecondary)}):r.colorSecondary,"--n-color-hover":n?d(t,{alpha:Number(r.colorOpacitySecondaryHover)}):r.colorSecondaryHover,"--n-color-pressed":n?d(t,{alpha:Number(r.colorOpacitySecondaryPressed)}):r.colorSecondaryPressed,"--n-color-focus":n?d(t,{alpha:Number(r.colorOpacitySecondaryHover)}):r.colorSecondaryHover,"--n-color-disabled":r.colorSecondary,"--n-ripple-color":`#0000`,"--n-text-color":t,"--n-text-color-hover":t,"--n-text-color-pressed":t,"--n-text-color-focus":t,"--n-text-color-disabled":t}}else if(b||S){let e=D?r.textColor:E?r.textColorTertiary:r[x(`color`,O)],t=m||e;b?(T[`--n-color`]=r.colorTertiary,T[`--n-color-hover`]=r.colorTertiaryHover,T[`--n-color-pressed`]=r.colorTertiaryPressed,T[`--n-color-focus`]=r.colorSecondaryHover,T[`--n-color-disabled`]=r.colorTertiary):(T[`--n-color`]=r.colorQuaternary,T[`--n-color-hover`]=r.colorQuaternaryHover,T[`--n-color-pressed`]=r.colorQuaternaryPressed,T[`--n-color-focus`]=r.colorQuaternaryHover,T[`--n-color-disabled`]=r.colorQuaternary),T[`--n-ripple-color`]=`#0000`,T[`--n-text-color`]=t,T[`--n-text-color-hover`]=t,T[`--n-text-color-pressed`]=t,T[`--n-text-color-focus`]=t,T[`--n-text-color-disabled`]=t}else T={"--n-color":m||r[x(`color`,O)],"--n-color-hover":m?V(m):r[x(`colorHover`,O)],"--n-color-pressed":m?H(m):r[x(`colorPressed`,O)],"--n-color-focus":m?V(m):r[x(`colorFocus`,O)],"--n-color-disabled":m||r[x(`colorDisabled`,O)],"--n-ripple-color":m||r[x(`rippleColor`,O)],"--n-text-color":v||(m?r.textColorPrimary:E?r.textColorTertiary:r[x(`textColor`,O)]),"--n-text-color-hover":v||(m?r.textColorHoverPrimary:r[x(`textColorHover`,O)]),"--n-text-color-pressed":v||(m?r.textColorPressedPrimary:r[x(`textColorPressed`,O)]),"--n-text-color-focus":v||(m?r.textColorFocusPrimary:r[x(`textColorFocus`,O)]),"--n-text-color-disabled":v||(m?r.textColorDisabledPrimary:r[x(`textColorDisabled`,O)])};let A={"--n-border":`initial`,"--n-border-hover":`initial`,"--n-border-pressed":`initial`,"--n-border-focus":`initial`,"--n-border-disabled":`initial`};A=p?{"--n-border":`none`,"--n-border-hover":`none`,"--n-border-pressed":`none`,"--n-border-focus":`none`,"--n-border-disabled":`none`}:{"--n-border":r[x(`border`,O)],"--n-border-hover":r[x(`borderHover`,O)],"--n-border-pressed":r[x(`borderPressed`,O)],"--n-border-focus":r[x(`borderFocus`,O)],"--n-border-disabled":r[x(`borderDisabled`,O)]};let{[x(`height`,c)]:j,[x(`fontSize`,c)]:M,[x(`padding`,c)]:N,[x(`paddingRound`,c)]:P,[x(`iconSize`,c)]:F,[x(`borderRadius`,c)]:I,[x(`iconMargin`,c)]:L,waveOpacity:R}=r,z={"--n-width":_&&!p?j:`initial`,"--n-height":p?`initial`:j,"--n-font-size":M,"--n-padding":_||p?`initial`:h?P:N,"--n-icon-size":F,"--n-icon-margin":L,"--n-border-radius":p?`initial`:_||h?j:I};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":t,"--n-bezier-ease-out":n,"--n-ripple-duration":i,"--n-opacity-disabled":a,"--n-wave-opacity":R},w),T),A),z)}),P=l?m(`button`,s(()=>{let t=``,{dashed:n,type:r,ghost:i,text:a,color:o,round:s,circle:c,textColor:l,secondary:u,tertiary:d,quaternary:f,strong:p}=e;n&&(t+=`a`),i&&(t+=`b`),a&&(t+=`c`),s&&(t+=`d`),c&&(t+=`e`),u&&(t+=`f`),d&&(t+=`g`),f&&(t+=`h`),p&&(t+=`i`),o&&(t+=`j${C(o)}`),l&&(t+=`k${C(l)}`);let{value:m}=g;return t+=`l${m[0]}`,t+=`m${r[0]}`,t}),j,e):void 0;return{selfElRef:t,waveElRef:n,mergedClsPrefix:u,mergedFocusable:_,mergedSize:g,showBorder:a,enterPressed:r,rtlEnabled:A,handleMousedown:v,handleKeydown:D,handleBlur:O,handleKeyup:E,handleClick:y,customColorCssVars:s(()=>{let{color:t}=e;if(!t)return null;let n=V(t);return{"--n-border-color":t,"--n-border-color-hover":n,"--n-border-color-pressed":H(t),"--n-border-color-focus":n,"--n-border-color-disabled":t}}),cssVars:l?void 0:j,themeClass:P?.themeClass,onRender:P?.onRender}},render(){let{mergedClsPrefix:e,tag:t,onRender:r}=this;r?.();let i=E(this.$slots.default,t=>t&&n(`span`,{class:`${e}-button__content`},t));return n(t,{ref:`selfElRef`,class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},this.iconPlacement===`right`&&i,n(j,{width:!0},{default:()=>E(this.$slots.icon,t=>(this.loading||this.renderIcon||t)&&n(`span`,{class:`${e}-button__icon`,style:{margin:D(this.$slots.default)?`0`:``}},n(O,null,{default:()=>this.loading?n(A,Object.assign({clsPrefix:e,key:`loading`,class:`${e}-icon-slot`,strokeWidth:20},this.spinProps)):n(`div`,{key:`icon`,class:`${e}-icon-slot`,role:`none`},this.renderIcon?this.renderIcon():t)})))}),this.iconPlacement===`left`&&i,this.text?null:n(R,{ref:`waveElRef`,clsPrefix:e}),this.showBorder?n(`div`,{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?n(`div`,{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),K=G;export{P as a,B as i,K as n,U as r,G as t}; \ No newline at end of file diff --git a/frontend/dist/assets/Card-BX9nnwGC.js b/frontend/dist/assets/Card-BX9nnwGC.js deleted file mode 100644 index 4a39127..0000000 --- a/frontend/dist/assets/Card-BX9nnwGC.js +++ /dev/null @@ -1,190 +0,0 @@ -import{$ as e,G as t,I as n,K as r,N as i,P as a,U as o,V as s,q as c,st as l,w as u,y as d,yt as f}from"./client-CT8bsOZT.js";import{B as p,G as m,H as h,J as g,M as _,N as v,V as y,W as b,Y as x,o as S,q as C,r as w}from"./light-DhgSQSdG.js";import{i as T,r as E,t as D}from"./css-DEmdllcC.js";import{r as O}from"./use-form-item-CBXe24ar.js";import{a as k,t as A}from"./resolve-slot-BEScaVot.js";import{t as j}from"./fade-in.cssr-9JVxREOe.js";import{r as ee,t as M}from"./light-DW22zwJY.js";import{F as N,Q as P}from"./index-oex1uI7H.js";function te(e){return e.composedPath()[0]||null}function F(e){return e.composedPath()[0]}var ne={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function I(e,t,n){if(e===`mousemoveoutside`){let e=e=>{t.contains(F(e))||n(e)};return{mousemove:e,touchstart:e}}else if(e===`clickoutside`){let e=!1,r=n=>{e=!t.contains(F(n))},i=r=>{e&&(t.contains(F(r))||n(r))};return{mousedown:r,mouseup:i,touchstart:r,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function L(e,t,n){let r=ne[e],i=r.get(t);i===void 0&&r.set(t,i=new WeakMap);let a=i.get(n);return a===void 0&&i.set(n,a=I(e,t,n)),a}function re(e,t,n,r){if(e===`mousemoveoutside`||e===`clickoutside`){let i=L(e,t,n);return Object.keys(i).forEach(e=>{z(e,document,i[e],r)}),!0}return!1}function ie(e,t,n,r){if(e===`mousemoveoutside`||e===`clickoutside`){let i=L(e,t,n);return Object.keys(i).forEach(e=>{B(e,document,i[e],r)}),!0}return!1}function R(){if(typeof window>`u`)return{on:()=>{},off:()=>{}};let e=new WeakMap,t=new WeakMap;function n(){e.set(this,!0)}function r(){e.set(this,!0),t.set(this,!0)}function i(e,t,n){let r=e[t];return e[t]=function(){return n.apply(e,arguments),r.apply(e,arguments)},e}function a(e,t){e[t]=Event.prototype[t]}let o=new WeakMap,s=Object.getOwnPropertyDescriptor(Event.prototype,`currentTarget`);function c(){return o.get(this)??null}function l(e,t){s!==void 0&&Object.defineProperty(e,"currentTarget",{configurable:!0,enumerable:!0,get:t??s.get})}let u={bubble:{},capture:{}},d={};function f(){let s=function(s){let{type:d,eventPhase:f,bubbles:p}=s,m=F(s);if(f===2)return;let h=f===1?`capture`:`bubble`,g=m,_=[];for(;g===null&&(g=window),_.push(g),g!==window;)g=g.parentNode||null;let v=u.capture[d],y=u.bubble[d];if(i(s,`stopPropagation`,n),i(s,`stopImmediatePropagation`,r),l(s,c),h===`capture`){if(v===void 0)return;for(let n=_.length-1;n>=0&&!e.has(s);--n){let e=_[n],r=v.get(e);if(r!==void 0){o.set(s,e);for(let e of r){if(t.has(s))break;e(s)}}if(n===0&&!p&&y!==void 0){let n=y.get(e);if(n!==void 0)for(let e of n){if(t.has(s))break;e(s)}}}}else if(h===`bubble`){if(y===void 0)return;for(let n=0;n<_.length&&!e.has(s);++n){let e=_[n],r=y.get(e);if(r!==void 0){o.set(s,e);for(let e of r){if(t.has(s))break;e(s)}}}}a(s,`stopPropagation`),a(s,`stopImmediatePropagation`),l(s)};return s.displayName=`evtdUnifiedHandler`,s}function p(){let e=function(e){let{type:t,eventPhase:n}=e;if(n!==2)return;let r=d[t];r!==void 0&&r.forEach(t=>t(e))};return e.displayName=`evtdUnifiedWindowEventHandler`,e}let m=f(),h=p();function g(e,t){let n=u[e];return n[t]===void 0&&(n[t]=new Map,window.addEventListener(t,m,e===`capture`)),n[t]}function _(e){return d[e]===void 0&&(d[e]=new Set,window.addEventListener(e,h)),d[e]}function v(e,t){let n=e.get(t);return n===void 0&&e.set(t,n=new Set),n}function y(e,t,n,r){let i=u[t][n];if(i!==void 0){let t=i.get(e);if(t!==void 0&&t.has(r))return!0}return!1}function b(e,t){let n=d[e];return!!(n!==void 0&&n.has(t))}function x(e,t,n,r){let i;if(i=typeof r==`object`&&r.once===!0?a=>{S(e,t,i,r),n(a)}:n,re(e,t,i,r))return;let a=v(g(r===!0||typeof r==`object`&&r.capture===!0?`capture`:`bubble`,e),t);if(a.has(i)||a.add(i),t===window){let t=_(e);t.has(i)||t.add(i)}}function S(e,t,n,r){if(ie(e,t,n,r))return;let i=r===!0||typeof r==`object`&&r.capture===!0,a=i?`capture`:`bubble`,o=g(a,e),s=v(o,t);if(t===window&&!y(t,i?`bubble`:`capture`,e,n)&&b(e,n)){let t=d[e];t.delete(n),t.size===0&&(window.removeEventListener(e,h),d[e]=void 0)}s.has(n)&&s.delete(n),s.size===0&&o.delete(t),o.size===0&&(window.removeEventListener(e,m,a===`capture`),u[a][e]=void 0)}return{on:x,off:S}}var{on:z,off:B}=R(),ae=(typeof window>`u`?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform===`MacIntel`&&navigator.maxTouchPoints>1)&&!window.MSStream;function oe(){return ae}function se(e){let t={isDeactivated:!1},n=!1;return o(()=>{if(t.isDeactivated=!1,!n){n=!0;return}e()}),r(()=>{t.isDeactivated=!0,n||=!0}),t}function V(e,t){console.error(`[vueuc/${e}]: ${t}`)}var H=[],ce=function(){return H.some(function(e){return e.activeTargets.length>0})},le=function(){return H.some(function(e){return e.skippedTargets.length>0})},ue=`ResizeObserver loop completed with undelivered notifications.`,de=function(){var e;typeof ErrorEvent==`function`?e=new ErrorEvent(`error`,{message:ue}):(e=document.createEvent(`Event`),e.initEvent(`error`,!1,!1),e.message=ue),window.dispatchEvent(e)},U;(function(e){e.BORDER_BOX=`border-box`,e.CONTENT_BOX=`content-box`,e.DEVICE_PIXEL_CONTENT_BOX=`device-pixel-content-box`})(U||={});var W=function(e){return Object.freeze(e)},fe=function(){function e(e,t){this.inlineSize=e,this.blockSize=t,W(this)}return e}(),pe=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,W(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),G=function(e){return e instanceof SVGElement&&`getBBox`in e},me=function(e){if(G(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var i=e,a=i.offsetWidth,o=i.offsetHeight;return!(a||o||e.getClientRects().length)},K=function(e){if(e instanceof Element)return!0;var t=e?.ownerDocument?.defaultView;return!!(t&&e instanceof t.Element)},he=function(e){switch(e.tagName){case`INPUT`:if(e.type!==`image`)break;case`VIDEO`:case`AUDIO`:case`EMBED`:case`OBJECT`:case`CANVAS`:case`IFRAME`:case`IMG`:return!0}return!1},q=typeof window<`u`?window:{},J=new WeakMap,ge=/auto|scroll/,Y=/^tb|vertical/,_e=/msie|trident/i.test(q.navigator&&q.navigator.userAgent),X=function(e){return parseFloat(e||`0`)},Z=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new fe((n?t:e)||0,(n?e:t)||0)},ve=W({devicePixelContentBoxSize:Z(),borderBoxSize:Z(),contentBoxSize:Z(),contentRect:new pe(0,0,0,0)}),ye=function(e,t){if(t===void 0&&(t=!1),J.has(e)&&!t)return J.get(e);if(me(e))return J.set(e,ve),ve;var n=getComputedStyle(e),r=G(e)&&e.ownerSVGElement&&e.getBBox(),i=!_e&&n.boxSizing===`border-box`,a=Y.test(n.writingMode||``),o=!r&&ge.test(n.overflowY||``),s=!r&&ge.test(n.overflowX||``),c=r?0:X(n.paddingTop),l=r?0:X(n.paddingRight),u=r?0:X(n.paddingBottom),d=r?0:X(n.paddingLeft),f=r?0:X(n.borderTopWidth),p=r?0:X(n.borderRightWidth),m=r?0:X(n.borderBottomWidth),h=r?0:X(n.borderLeftWidth),g=d+l,_=c+u,v=h+p,y=f+m,b=s?e.offsetHeight-y-e.clientHeight:0,x=o?e.offsetWidth-v-e.clientWidth:0,S=i?g+v:0,C=i?_+y:0,w=r?r.width:X(n.width)-S-x,T=r?r.height:X(n.height)-C-b,E=w+g+x+v,D=T+_+b+y,O=W({devicePixelContentBoxSize:Z(Math.round(w*devicePixelRatio),Math.round(T*devicePixelRatio),a),borderBoxSize:Z(E,D,a),contentBoxSize:Z(w,T,a),contentRect:new pe(d,c,w,T)});return J.set(e,O),O},be=function(e,t,n){var r=ye(e,n),i=r.borderBoxSize,a=r.contentBoxSize,o=r.devicePixelContentBoxSize;switch(t){case U.DEVICE_PIXEL_CONTENT_BOX:return o;case U.BORDER_BOX:return i;default:return a}},xe=function(){function e(e){var t=ye(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=W([t.borderBoxSize]),this.contentBoxSize=W([t.contentBoxSize]),this.devicePixelContentBoxSize=W([t.devicePixelContentBoxSize])}return e}(),Se=function(e){if(me(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},Ce=function(){var e=1/0,t=[];H.forEach(function(n){if(n.activeTargets.length!==0){var r=[];n.activeTargets.forEach(function(t){var n=new xe(t.target),i=Se(t.target);r.push(n),t.lastReportedSize=be(t.target,t.observedBox),ie?t.activeTargets.push(n):t.skippedTargets.push(n))})})},Te=function(){var e=0;for(we(e);ce();)e=Ce(),we(e);return le()&&de(),e>0},Q,Ee=[],De=function(){return Ee.splice(0).forEach(function(e){return e()})},Oe=function(e){if(!Q){var t=0,n=document.createTextNode(``);new MutationObserver(function(){return De()}).observe(n,{characterData:!0}),Q=function(){n.textContent=`${t?t--:t++}`}}Ee.push(e),Q()},ke=function(e){Oe(function(){requestAnimationFrame(e)})},$=0,Ae=function(){return!!$},je=250,Me={attributes:!0,characterData:!0,childList:!0,subtree:!0},Ne=[`resize`,`load`,`transitionend`,`animationend`,`animationstart`,`animationiteration`,`keyup`,`keydown`,`mouseup`,`mousedown`,`mouseover`,`mouseout`,`blur`,`focus`],Pe=function(e){return e===void 0&&(e=0),Date.now()+e},Fe=!1,Ie=new(function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(e===void 0&&(e=je),!Fe){Fe=!0;var n=Pe(e);ke(function(){var r=!1;try{r=Te()}finally{if(Fe=!1,e=n-Pe(),!Ae())return;r?t.run(1e3):e>0?t.run(e):t.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,Me)};document.body?t():q.addEventListener(`DOMContentLoaded`,t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Ne.forEach(function(t){return q.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||=(this.observer&&this.observer.disconnect(),Ne.forEach(function(t){return q.removeEventListener(t,e.listener,!0)}),!0)},e}()),Le=function(e){!$&&e>0&&Ie.start(),$+=e,!$&&Ie.stop()},Re=function(e){return!G(e)&&!he(e)&&getComputedStyle(e).display===`inline`},ze=function(){function e(e,t){this.target=e,this.observedBox=t||U.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=be(this.target,this.observedBox,!0);return Re(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},e}(),Be=function(){function e(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t}return e}(),Ve=new WeakMap,He=function(e,t){for(var n=0;n=0&&(i&&H.splice(H.indexOf(n),1),n.observationTargets.splice(r,1),Le(-1))},e.disconnect=function(e){var t=this,n=Ve.get(e);n.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),We=function(){function e(e){if(arguments.length===0)throw TypeError(`Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.`);if(typeof e!=`function`)throw TypeError(`Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.`);Ue.connect(this,e)}return e.prototype.observe=function(e,t){if(arguments.length===0)throw TypeError(`Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.`);if(!K(e))throw TypeError(`Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element`);Ue.observe(this,e,t)},e.prototype.unobserve=function(e){if(arguments.length===0)throw TypeError(`Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.`);if(!K(e))throw TypeError(`Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element`);Ue.unobserve(this,e)},e.prototype.disconnect=function(){Ue.disconnect(this)},e.toString=function(){return`function ResizeObserver () { [polyfill code] }`},e}(),Ge=new class{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<`u`&&window.ResizeObserver||We)(this.handleResize),this.elHandlersMap=new Map}handleResize(e){for(let t of e){let e=this.elHandlersMap.get(t.target);e!==void 0&&e(t)}}registerHandler(e,t){this.elHandlersMap.set(e,t),this.observer.observe(e)}unregisterHandler(e){this.elHandlersMap.has(e)&&(this.elHandlersMap.delete(e),this.observer.unobserve(e))}},Ke=i({name:`ResizeObserver`,props:{onResize:Function},setup(e){let n=!1,r=a().proxy;function i(t){let{onResize:n}=e;n!==void 0&&n(t)}c(()=>{let e=r.$el;if(e===void 0){V(`resize-observer`,`$el does not exist.`);return}if(e.nextElementSibling!==e.nextSibling&&e.nodeType===3&&e.nodeValue!==``){V(`resize-observer`,`$el can not be observed (it may be a text node).`);return}e.nextElementSibling!==null&&(Ge.registerHandler(e.nextElementSibling,i),n=!0)}),t(()=>{n&&Ge.unregisterHandler(r.$el.nextElementSibling)})},render(){return e(this.$slots,`default`)}});function qe(e){let{left:t,right:n,top:r,bottom:i}=E(e);return`${r} ${t} ${i} ${n}`}function Je(e){return Object.keys(e)}var Ye=i({render(){var e;return(e=this.$slots).default?.call(e)}}),Xe=h(`scrollbar`,` - overflow: hidden; - position: relative; - z-index: auto; - height: 100%; - width: 100%; -`,[y(`>`,[h(`scrollbar-container`,` - width: 100%; - overflow: scroll; - height: 100%; - min-height: inherit; - max-height: inherit; - scrollbar-width: none; - `,[y(`&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb`,` - width: 0; - height: 0; - display: none; - `),y(`>`,[h(`scrollbar-content`,` - box-sizing: border-box; - min-width: 100%; - `)])])]),y(`>, +`,[h(`scrollbar-rail`,` - position: absolute; - pointer-events: none; - user-select: none; - background: var(--n-scrollbar-rail-color); - -webkit-user-select: none; - `,[m(`horizontal`,` - height: var(--n-scrollbar-height); - `,[y(`>`,[b(`scrollbar`,` - height: var(--n-scrollbar-height); - border-radius: var(--n-scrollbar-border-radius); - right: 0; - `)])]),m(`horizontal--top`,` - top: var(--n-scrollbar-rail-top-horizontal-top); - right: var(--n-scrollbar-rail-right-horizontal-top); - bottom: var(--n-scrollbar-rail-bottom-horizontal-top); - left: var(--n-scrollbar-rail-left-horizontal-top); - `),m(`horizontal--bottom`,` - top: var(--n-scrollbar-rail-top-horizontal-bottom); - right: var(--n-scrollbar-rail-right-horizontal-bottom); - bottom: var(--n-scrollbar-rail-bottom-horizontal-bottom); - left: var(--n-scrollbar-rail-left-horizontal-bottom); - `),m(`vertical`,` - width: var(--n-scrollbar-width); - `,[y(`>`,[b(`scrollbar`,` - width: var(--n-scrollbar-width); - border-radius: var(--n-scrollbar-border-radius); - bottom: 0; - `)])]),m(`vertical--left`,` - top: var(--n-scrollbar-rail-top-vertical-left); - right: var(--n-scrollbar-rail-right-vertical-left); - bottom: var(--n-scrollbar-rail-bottom-vertical-left); - left: var(--n-scrollbar-rail-left-vertical-left); - `),m(`vertical--right`,` - top: var(--n-scrollbar-rail-top-vertical-right); - right: var(--n-scrollbar-rail-right-vertical-right); - bottom: var(--n-scrollbar-rail-bottom-vertical-right); - left: var(--n-scrollbar-rail-left-vertical-right); - `),m(`disabled`,[y(`>`,[b(`scrollbar`,`pointer-events: none;`)])]),y(`>`,[b(`scrollbar`,` - z-index: 1; - position: absolute; - cursor: pointer; - pointer-events: all; - background-color: var(--n-scrollbar-color); - transition: background-color .2s var(--n-scrollbar-bezier); - `,[j(),y(`&:hover`,`background-color: var(--n-scrollbar-color-hover);`)])])])])]),Ze=i({name:`Scrollbar`,props:Object.assign(Object.assign({},w.props),{duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:`hover`},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean,internalExposeWidthCssVar:Boolean,yPlacement:{type:String,default:`right`},xPlacement:{type:String,default:`bottom`}}),inheritAttrs:!1,setup(e){let{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:i}=v(e),a=S(`Scrollbar`,i,n),o=f(null),s=f(null),d=f(null),p=f(null),m=f(null),h=f(null),g=f(null),y=f(null),b=f(null),x=f(null),C=f(null),T=f(0),O=f(0),k=f(!1),A=f(!1),j=!1,M=!1,N,P,F=0,ne=0,I=0,L=0,re=oe(),ie=w(`Scrollbar`,`-scrollbar`,Xe,ee,e,n),R=u(()=>{let{value:e}=y,{value:t}=h,{value:n}=x;return e===null||t===null||n===null?0:Math.min(e,n*e/t+D(ie.value.self.width)*1.5)}),ae=u(()=>`${R.value}px`),V=u(()=>{let{value:e}=b,{value:t}=g,{value:n}=C;return e===null||t===null||n===null?0:n*e/t+D(ie.value.self.height)*1.5}),H=u(()=>`${V.value}px`),ce=u(()=>{let{value:e}=y,{value:t}=T,{value:n}=h,{value:r}=x;if(e===null||n===null||r===null)return 0;{let i=n-e;return i?t/i*(r-R.value):0}}),le=u(()=>`${ce.value}px`),ue=u(()=>{let{value:e}=b,{value:t}=O,{value:n}=g,{value:r}=C;if(e===null||n===null||r===null)return 0;{let i=n-e;return i?t/i*(r-V.value):0}}),de=u(()=>`${ue.value}px`),U=u(()=>{let{value:e}=y,{value:t}=h;return e!==null&&t!==null&&t>e}),W=u(()=>{let{value:e}=b,{value:t}=g;return e!==null&&t!==null&&t>e}),fe=u(()=>{let{trigger:t}=e;return t===`none`||k.value}),pe=u(()=>{let{trigger:t}=e;return t===`none`||A.value}),G=u(()=>{let{container:t}=e;return t?t():s.value}),me=u(()=>{let{content:t}=e;return t?t():d.value}),K=(t,n)=>{if(!e.scrollable)return;if(typeof t==`number`){Y(t,n??0,0,!1,`auto`);return}let{left:r,top:i,index:a,elSize:o,position:s,behavior:c,el:l,debounce:u=!0}=t;(r!==void 0||i!==void 0)&&Y(r??0,i??0,0,!1,c),l===void 0?a!==void 0&&o!==void 0?Y(0,a*o,o,u,c):s===`bottom`?Y(0,2**53-1,0,!1,c):s===`top`&&Y(0,0,0,!1,c):Y(0,l.offsetTop,l.offsetHeight,u,c)},he=se(()=>{e.container||K({top:T.value,left:O.value})}),q=()=>{he.isDeactivated||Q()},J=t=>{if(he.isDeactivated)return;let{onResize:n}=e;n&&n(t),Q()},ge=(t,n)=>{if(!e.scrollable)return;let{value:r}=G;r&&(typeof t==`object`?r.scrollBy(t):r.scrollBy(t,n||0))};function Y(e,t,n,r,i){let{value:a}=G;if(a){if(r){let{scrollTop:r,offsetHeight:o}=a;if(t>r){t+n<=r+o||a.scrollTo({left:e,top:t+n-o,behavior:i});return}}a.scrollTo({left:e,top:t,behavior:i})}}function _e(){be(),xe(),Q()}function X(){Z()}function Z(){ve(),ye()}function ve(){P!==void 0&&window.clearTimeout(P),P=window.setTimeout(()=>{A.value=!1},e.duration)}function ye(){N!==void 0&&window.clearTimeout(N),N=window.setTimeout(()=>{k.value=!1},e.duration)}function be(){N!==void 0&&window.clearTimeout(N),k.value=!0}function xe(){P!==void 0&&window.clearTimeout(P),A.value=!0}function Se(t){let{onScroll:n}=e;n&&n(t),Ce()}function Ce(){let{value:e}=G;e&&(T.value=e.scrollTop,O.value=e.scrollLeft*(a?.value?-1:1))}function we(){let{value:e}=me;e&&(h.value=e.offsetHeight,g.value=e.offsetWidth);let{value:t}=G;t&&(y.value=t.offsetHeight,b.value=t.offsetWidth);let{value:n}=m,{value:r}=p;n&&(C.value=n.offsetWidth),r&&(x.value=r.offsetHeight)}function Te(){let{value:e}=G;e&&(T.value=e.scrollTop,O.value=e.scrollLeft*(a?.value?-1:1),y.value=e.offsetHeight,b.value=e.offsetWidth,h.value=e.scrollHeight,g.value=e.scrollWidth);let{value:t}=m,{value:n}=p;t&&(C.value=t.offsetWidth),n&&(x.value=n.offsetHeight)}function Q(){e.scrollable&&(e.useUnifiedContainer?Te():(we(),Ce()))}function Ee(e){return!o.value?.contains(te(e))}function De(e){e.preventDefault(),e.stopPropagation(),M=!0,z(`mousemove`,window,Oe,!0),z(`mouseup`,window,ke,!0),ne=O.value,I=a?.value?window.innerWidth-e.clientX:e.clientX}function Oe(t){if(!M)return;N!==void 0&&window.clearTimeout(N),P!==void 0&&window.clearTimeout(P);let{value:n}=b,{value:r}=g,{value:i}=V;if(n===null||r===null)return;let o=(a?.value?window.innerWidth-t.clientX-I:t.clientX-I)*(r-n)/(n-i),s=r-n,c=ne+o;c=Math.min(s,c),c=Math.max(c,0);let{value:l}=G;if(l){l.scrollLeft=c*(a?.value?-1:1);let{internalOnUpdateScrollLeft:t}=e;t&&t(c)}}function ke(e){e.preventDefault(),e.stopPropagation(),B(`mousemove`,window,Oe,!0),B(`mouseup`,window,ke,!0),M=!1,Q(),Ee(e)&&Z()}function $(e){e.preventDefault(),e.stopPropagation(),j=!0,z(`mousemove`,window,Ae,!0),z(`mouseup`,window,je,!0),F=T.value,L=e.clientY}function Ae(e){if(!j)return;N!==void 0&&window.clearTimeout(N),P!==void 0&&window.clearTimeout(P);let{value:t}=y,{value:n}=h,{value:r}=R;if(t===null||n===null)return;let i=(e.clientY-L)*(n-t)/(t-r),a=n-t,o=F+i;o=Math.min(a,o),o=Math.max(o,0);let{value:s}=G;s&&(s.scrollTop=o)}function je(e){e.preventDefault(),e.stopPropagation(),B(`mousemove`,window,Ae,!0),B(`mouseup`,window,je,!0),j=!1,Q(),Ee(e)&&Z()}l(()=>{let{value:e}=W,{value:t}=U,{value:r}=n,{value:i}=m,{value:a}=p;i&&(e?i.classList.remove(`${r}-scrollbar-rail--disabled`):i.classList.add(`${r}-scrollbar-rail--disabled`)),a&&(t?a.classList.remove(`${r}-scrollbar-rail--disabled`):a.classList.add(`${r}-scrollbar-rail--disabled`))}),c(()=>{e.container||Q()}),t(()=>{N!==void 0&&window.clearTimeout(N),P!==void 0&&window.clearTimeout(P),B(`mousemove`,window,Ae,!0),B(`mouseup`,window,je,!0)});let Me=u(()=>{let{common:{cubicBezierEaseInOut:e},self:{color:t,colorHover:n,height:r,width:i,borderRadius:o,railInsetHorizontalTop:s,railInsetHorizontalBottom:c,railInsetVerticalRight:l,railInsetVerticalLeft:u,railColor:d}}=ie.value,{top:f,right:p,bottom:m,left:h}=E(s),{top:g,right:_,bottom:v,left:y}=E(c),{top:b,right:x,bottom:S,left:C}=E(a?.value?qe(l):l),{top:w,right:T,bottom:D,left:O}=E(a?.value?qe(u):u);return{"--n-scrollbar-bezier":e,"--n-scrollbar-color":t,"--n-scrollbar-color-hover":n,"--n-scrollbar-border-radius":o,"--n-scrollbar-width":i,"--n-scrollbar-height":r,"--n-scrollbar-rail-top-horizontal-top":f,"--n-scrollbar-rail-right-horizontal-top":p,"--n-scrollbar-rail-bottom-horizontal-top":m,"--n-scrollbar-rail-left-horizontal-top":h,"--n-scrollbar-rail-top-horizontal-bottom":g,"--n-scrollbar-rail-right-horizontal-bottom":_,"--n-scrollbar-rail-bottom-horizontal-bottom":v,"--n-scrollbar-rail-left-horizontal-bottom":y,"--n-scrollbar-rail-top-vertical-right":b,"--n-scrollbar-rail-right-vertical-right":x,"--n-scrollbar-rail-bottom-vertical-right":S,"--n-scrollbar-rail-left-vertical-right":C,"--n-scrollbar-rail-top-vertical-left":w,"--n-scrollbar-rail-right-vertical-left":T,"--n-scrollbar-rail-bottom-vertical-left":D,"--n-scrollbar-rail-left-vertical-left":O,"--n-scrollbar-rail-color":d}}),Ne=r?_(`scrollbar`,void 0,Me,e):void 0;return Object.assign(Object.assign({},{scrollTo:K,scrollBy:ge,sync:Q,syncUnifiedContainer:Te,handleMouseEnterWrapper:_e,handleMouseLeaveWrapper:X}),{mergedClsPrefix:n,rtlEnabled:a,containerScrollTop:T,wrapperRef:o,containerRef:s,contentRef:d,yRailRef:p,xRailRef:m,needYBar:U,needXBar:W,yBarSizePx:ae,xBarSizePx:H,yBarTopPx:le,xBarLeftPx:de,isShowXBar:fe,isShowYBar:pe,isIos:re,handleScroll:Se,handleContentResize:q,handleContainerResize:J,handleYScrollMouseDown:$,handleXScrollMouseDown:De,containerWidth:b,cssVars:r?void 0:Me,themeClass:Ne?.themeClass,onRender:Ne?.onRender})},render(){let{$slots:e,mergedClsPrefix:t,triggerDisplayManually:r,rtlEnabled:i,internalHoistYRail:a,yPlacement:o,xPlacement:c,xScrollable:l}=this;if(!this.scrollable)return e.default?.call(e);let u=this.trigger===`none`,f=(e,r)=>n(`div`,{ref:`yRailRef`,class:[`${t}-scrollbar-rail`,`${t}-scrollbar-rail--vertical`,`${t}-scrollbar-rail--vertical--${o}`,e],"data-scrollbar-rail":!0,style:[r||``,this.verticalRailStyle],"aria-hidden":!0},n(u?Ye:P,u?null:{name:`fade-in-transition`},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?n(`div`,{class:`${t}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),p=()=>{var o;return(o=this.onRender)==null||o.call(this),n(`div`,s(this.$attrs,{role:`none`,ref:`wrapperRef`,class:[`${t}-scrollbar`,this.themeClass,i&&`${t}-scrollbar--rtl`],style:this.cssVars,onMouseenter:r?void 0:this.handleMouseEnterWrapper,onMouseleave:r?void 0:this.handleMouseLeaveWrapper}),[this.container?e.default?.call(e):n(`div`,{role:`none`,ref:`containerRef`,class:[`${t}-scrollbar-container`,this.containerClass],style:[this.containerStyle,this.internalExposeWidthCssVar?{"--n-scrollbar-current-width":T(this.containerWidth)}:void 0],onScroll:this.handleScroll,onWheel:this.onWheel},n(Ke,{onResize:this.handleContentResize},{default:()=>n(`div`,{ref:`contentRef`,role:`none`,style:[{width:this.xScrollable?`fit-content`:null},this.contentStyle],class:[`${t}-scrollbar-content`,this.contentClass]},e)})),a?null:f(void 0,void 0),l&&n(`div`,{ref:`xRailRef`,class:[`${t}-scrollbar-rail`,`${t}-scrollbar-rail--horizontal`,`${t}-scrollbar-rail--horizontal--${c}`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},n(u?Ye:P,u?null:{name:`fade-in-transition`},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?n(`div`,{class:`${t}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:i?this.xBarLeftPx:void 0,left:i?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},m=this.container?p():n(Ke,{onResize:this.handleContainerResize},{default:p});return a?n(d,null,m,f(this.themeClass,this.cssVars)):m}}),Qe=Ze,$e=h(`card-content`,` - flex: 1; - min-width: 0; - box-sizing: border-box; - padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left); - font-size: var(--n-font-size); -`),et=y([h(`card`,` - font-size: var(--n-font-size); - line-height: var(--n-line-height); - display: flex; - flex-direction: column; - width: 100%; - box-sizing: border-box; - position: relative; - border-radius: var(--n-border-radius); - background-color: var(--n-color); - color: var(--n-text-color); - word-break: break-word; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[p({background:`var(--n-color-modal)`}),m(`hoverable`,[y(`&:hover`,`box-shadow: var(--n-box-shadow);`)]),m(`content-segmented`,[y(`>`,[h(`card-content`,` - padding-top: var(--n-padding-bottom); - `),b(`content-scrollbar`,[y(`>`,[h(`scrollbar-container`,[y(`>`,[h(`card-content`,` - padding-top: var(--n-padding-bottom); - `)])])])])])]),m(`content-soft-segmented`,[y(`>`,[h(`card-content`,` - margin: 0 var(--n-padding-left); - padding: var(--n-padding-bottom) 0; - `),b(`content-scrollbar`,[y(`>`,[h(`scrollbar-container`,[y(`>`,[h(`card-content`,` - margin: 0 var(--n-padding-left); - padding: var(--n-padding-bottom) 0; - `)])])])])])]),m(`footer-segmented`,[y(`>`,[b(`footer`,` - padding-top: var(--n-padding-bottom); - `)])]),m(`footer-soft-segmented`,[y(`>`,[b(`footer`,` - padding: var(--n-padding-bottom) 0; - margin: 0 var(--n-padding-left); - `)])]),y(`>`,[h(`card-header`,` - box-sizing: border-box; - display: flex; - align-items: center; - font-size: var(--n-title-font-size); - padding: - var(--n-padding-top) - var(--n-padding-left) - var(--n-padding-bottom) - var(--n-padding-left); - `,[b(`main`,` - font-weight: var(--n-title-font-weight); - transition: color .3s var(--n-bezier); - flex: 1; - min-width: 0; - color: var(--n-title-text-color); - `),b(`extra`,` - display: flex; - align-items: center; - font-size: var(--n-font-size); - font-weight: 400; - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - `),b(`close`,` - margin: 0 0 0 8px; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `)]),b(`action`,` - box-sizing: border-box; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - background-clip: padding-box; - background-color: var(--n-action-color); - `),$e,h(`card-content`,[y(`&:first-child`,` - padding-top: var(--n-padding-bottom); - `)]),b(`content-scrollbar`,` - display: flex; - flex-direction: column; - `,[y(`>`,[h(`scrollbar-container`,[y(`>`,[$e])])]),y(`&:first-child >`,[h(`scrollbar-container`,[y(`>`,[h(`card-content`,` - padding-top: var(--n-padding-bottom); - `)])])])]),b(`footer`,` - box-sizing: border-box; - padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left); - font-size: var(--n-font-size); - `,[y(`&:first-child`,` - padding-top: var(--n-padding-bottom); - `)]),b(`action`,` - background-color: var(--n-action-color); - padding: var(--n-padding-bottom) var(--n-padding-left); - border-bottom-left-radius: var(--n-border-radius); - border-bottom-right-radius: var(--n-border-radius); - `)]),h(`card-cover`,` - overflow: hidden; - width: 100%; - border-radius: var(--n-border-radius) var(--n-border-radius) 0 0; - `,[y(`img`,` - display: block; - width: 100%; - `)]),m(`bordered`,` - border: 1px solid var(--n-border-color); - `,[y(`&:target`,`border-color: var(--n-color-target);`)]),m(`action-segmented`,[y(`>`,[b(`action`,[y(`&:not(:first-child)`,` - border-top: 1px solid var(--n-border-color); - `)])])]),m(`content-segmented, content-soft-segmented`,[y(`>`,[h(`card-content`,` - transition: border-color 0.3s var(--n-bezier); - `,[y(`&:not(:first-child)`,` - border-top: 1px solid var(--n-border-color); - `)]),b(`content-scrollbar`,` - transition: border-color 0.3s var(--n-bezier); - `,[y(`&:not(:first-child)`,` - border-top: 1px solid var(--n-border-color); - `)])])]),m(`footer-segmented, footer-soft-segmented`,[y(`>`,[b(`footer`,` - transition: border-color 0.3s var(--n-bezier); - `,[y(`&:not(:first-child)`,` - border-top: 1px solid var(--n-border-color); - `)])])]),m(`embedded`,` - background-color: var(--n-color-embedded); - `)]),g(h(`card`,` - background: var(--n-color-modal); - `,[m(`embedded`,` - background-color: var(--n-color-embedded-modal); - `)])),x(h(`card`,` - background: var(--n-color-popover); - `,[m(`embedded`,` - background-color: var(--n-color-embedded-popover); - `)]))]),tt={title:[String,Function],contentClass:String,contentStyle:[Object,String],contentScrollable:Boolean,headerClass:String,headerStyle:[Object,String],headerExtraClass:String,headerExtraStyle:[Object,String],footerClass:String,footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:String,bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:`div`},cover:Function,content:[String,Function],footer:Function,action:Function,headerExtra:Function,closeFocusable:Boolean},nt=Je(tt),rt=i({name:`Card`,props:Object.assign(Object.assign({},w.props),tt),slots:Object,setup(e){let t=()=>{let{onClose:t}=e;t&&O(t)},{inlineThemeDisabled:n,mergedClsPrefixRef:r,mergedRtlRef:i,mergedComponentPropsRef:a}=v(e),o=w(`Card`,`-card`,et,M,e,r),s=S(`Card`,i,r),c=u(()=>e.size||a?.value?.Card?.size||`medium`),l=u(()=>{let e=c.value,{self:{color:t,colorModal:n,colorTarget:r,textColor:i,titleTextColor:a,titleFontWeight:s,borderColor:l,actionColor:u,borderRadius:d,lineHeight:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,closeColorHover:g,closeColorPressed:_,closeBorderRadius:v,closeIconSize:y,closeSize:b,boxShadow:x,colorPopover:S,colorEmbedded:w,colorEmbeddedModal:T,colorEmbeddedPopover:D,[C(`padding`,e)]:O,[C(`fontSize`,e)]:k,[C(`titleFontSize`,e)]:A},common:{cubicBezierEaseInOut:j}}=o.value,{top:ee,left:M,bottom:N}=E(O);return{"--n-bezier":j,"--n-border-radius":d,"--n-color":t,"--n-color-modal":n,"--n-color-popover":S,"--n-color-embedded":w,"--n-color-embedded-modal":T,"--n-color-embedded-popover":D,"--n-color-target":r,"--n-text-color":i,"--n-line-height":f,"--n-action-color":u,"--n-title-text-color":a,"--n-title-font-weight":s,"--n-close-icon-color":p,"--n-close-icon-color-hover":m,"--n-close-icon-color-pressed":h,"--n-close-color-hover":g,"--n-close-color-pressed":_,"--n-border-color":l,"--n-box-shadow":x,"--n-padding-top":ee,"--n-padding-bottom":N,"--n-padding-left":M,"--n-font-size":k,"--n-title-font-size":A,"--n-close-size":b,"--n-close-icon-size":y,"--n-close-border-radius":v}}),d=n?_(`card`,u(()=>c.value[0]),l,e):void 0;return{rtlEnabled:s,mergedClsPrefix:r,mergedTheme:o,handleCloseClick:t,cssVars:n?void 0:l,themeClass:d?.themeClass,onRender:d?.onRender}},render(){let{segmented:e,bordered:t,hoverable:r,mergedClsPrefix:i,rtlEnabled:a,onRender:o,embedded:s,tag:c,$slots:l}=this;return o?.(),n(c,{class:[`${i}-card`,this.themeClass,s&&`${i}-card--embedded`,{[`${i}-card--rtl`]:a,[`${i}-card--content-scrollable`]:this.contentScrollable,[`${i}-card--content${typeof e!=`boolean`&&e.content===`soft`?`-soft`:``}-segmented`]:e===!0||e!==!1&&e.content,[`${i}-card--footer${typeof e!=`boolean`&&e.footer===`soft`?`-soft`:``}-segmented`]:e===!0||e!==!1&&e.footer,[`${i}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${i}-card--bordered`]:t,[`${i}-card--hoverable`]:r}],style:this.cssVars,role:this.role},k(l.cover,e=>{let t=this.cover?A([this.cover()]):e;return t&&n(`div`,{class:`${i}-card-cover`,role:`none`},t)}),k(l.header,e=>{let{title:t}=this,r=t?A(typeof t==`function`?[t()]:[t]):e;return r||this.closable?n(`div`,{class:[`${i}-card-header`,this.headerClass],style:this.headerStyle,role:`heading`},n(`div`,{class:`${i}-card-header__main`,role:`heading`},r),k(l[`header-extra`],e=>{let t=this.headerExtra?A([this.headerExtra()]):e;return t&&n(`div`,{class:[`${i}-card-header__extra`,this.headerExtraClass],style:this.headerExtraStyle},t)}),this.closable&&n(N,{clsPrefix:i,class:`${i}-card-header__close`,onClick:this.handleCloseClick,focusable:this.closeFocusable,absolute:!0})):null}),k(l.default,e=>{let{content:t}=this,r=t?A(typeof t==`function`?[t()]:[t]):e;return r?this.contentScrollable?n(Ze,{class:`${i}-card__content-scrollbar`,contentClass:[`${i}-card-content`,this.contentClass],contentStyle:this.contentStyle},r):n(`div`,{class:[`${i}-card-content`,this.contentClass],style:this.contentStyle,role:`none`},r):null}),k(l.footer,e=>{let t=this.footer?A([this.footer()]):e;return t&&n(`div`,{class:[`${i}-card__footer`,this.footerClass],style:this.footerStyle,role:`none`},t)}),k(l.action,e=>{let t=this.action?A([this.action()]):e;return t&&n(`div`,{class:`${i}-card__action`,role:`none`},t)}))}});export{Qe as a,Ke as c,z as d,te as f,Ze as i,Ge as l,nt as n,Ye as o,tt as r,Je as s,rt as t,B as u}; \ No newline at end of file diff --git a/frontend/dist/assets/CatalogView-Cht9pfXA.js b/frontend/dist/assets/CatalogView-Cht9pfXA.js deleted file mode 100644 index 48741bf..0000000 --- a/frontend/dist/assets/CatalogView-Cht9pfXA.js +++ /dev/null @@ -1 +0,0 @@ -import{D as e,E as t,Ht as n,M as r,N as i,O as a,Q as o,T as s,Vt as c,X as l,ct as u,j as d,u as f,wt as p,y as m,yt as h}from"./client-CT8bsOZT.js";import{t as g}from"./Tag-wKk--N0F.js";import{n as _}from"./es-BS8VS4O3.js";import{t as v}from"./Rate-BlfAKQvG.js";import{t as y}from"./HeaderMenu--hCKWQY2.js";import{t as b}from"./_plugin-vue_export-helper-BDNMzG2s.js";var x={class:`center-block-custom`},S={class:`width1200 display-table catalog-grid`},C=[`onClick`],w={class:`scenario-content-block`},T={class:`scenario-title`},E={class:`scenario-description`},D={class:`scenario-rating`},O={key:1},k={key:2},A={key:0,class:`scenario-difficulty`},j={class:`scenario-label`},M=b(i({__name:`CatalogPage`,setup(i){let b=_(),M=h([]),N=f();async function P(){M.value=[];let e=await b.GetScenariosCatalog({});M.value=e.scenarios}async function F(e){N.push(`/scenarios/`+e)}return P(),(i,f)=>(l(),a(m,null,[s(`div`,x,[s(`div`,S,[(l(!0),a(m,null,o(M.value,i=>(l(),a(`div`,{class:`scenario-block`,onClick:e=>F(i.ID),key:i.ID},[s(`div`,{class:`scenario-image-block scenario-image`,style:c({backgroundImage:`url(${i.image})`})},null,4),s(`div`,w,[s(`p`,T,n(i.name),1),s(`p`,E,n(i.description),1),s(`div`,D,[i.reviewsCount?(l(),t(p(v),{key:0,value:i.averageRating,readonly:``,"allow-half":``,size:`small`},null,8,[`value`])):e(``,!0),i.reviewsCount?(l(),a(`span`,O,n(i.averageRating?.toFixed(1))+` · `+n(i.reviewsCount),1)):(l(),a(`span`,k,`Пока нет оценок`))]),i.difficulty?(l(),a(`div`,A,`Сложность: `+n(i.difficulty),1)):e(``,!0),s(`p`,j,[r(p(g),{bordered:!1,type:`success`,class:`status-block`},{default:u(()=>[d(`Автор: `+n(i.author?.username),1)]),_:2},1024)])])],8,C))),128))])]),r(y,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-935ff4be`]]),N=i({__name:`CatalogView`,setup(e){return(e,n)=>(l(),t(M))}});export{N as default}; \ No newline at end of file diff --git a/frontend/dist/assets/ConsentView-ihWgF1BE.js b/frontend/dist/assets/ConsentView-ihWgF1BE.js deleted file mode 100644 index f66bd41..0000000 --- a/frontend/dist/assets/ConsentView-ihWgF1BE.js +++ /dev/null @@ -1 +0,0 @@ -import{M as e,N as t,O as n,X as r,y as i}from"./client-CT8bsOZT.js";import{t as a}from"./DocsPage-Dt91bPTm.js";import{t as o}from"./HeaderMenu--hCKWQY2.js";var s=t({__name:`ConsentView`,setup(t){return(t,s)=>(r(),n(i,null,[e(a,{kind:`consent`}),e(o)],64))}});export{s as default}; \ No newline at end of file diff --git a/frontend/dist/assets/DocsPage-Dt91bPTm.js b/frontend/dist/assets/DocsPage-Dt91bPTm.js deleted file mode 100644 index 1bd7f70..0000000 --- a/frontend/dist/assets/DocsPage-Dt91bPTm.js +++ /dev/null @@ -1,43 +0,0 @@ -import{E as e,Ht as t,I as n,M as r,N as i,O as a,T as o,X as s,a as c,ct as l,j as u,q as d,st as f,w as p,wt as m,yt as h}from"./client-CT8bsOZT.js";import{G as g,H as _,M as v,N as y,V as b,q as x,r as S}from"./light-DhgSQSdG.js";import{i as C}from"./css-DEmdllcC.js";import{t as w}from"./use-compitable-DR1_4TS5.js";import{t as T}from"./fade-in.cssr-9JVxREOe.js";import{t as E}from"./Alert-CWmvp18Y.js";import{n as D}from"./es-BS8VS4O3.js";import{M as O,N as k,Q as A,s as j}from"./index-oex1uI7H.js";import{t as M}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as N}from"./HeaderText-CQkOA8j1.js";var P=b([b(`@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); - `,[g(`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; - `,[g(`spinning`,` - user-select: none; - -webkit-user-select: none; - pointer-events: none; - opacity: var(--n-opacity-spinning); - `)])]),F={small:20,medium:18,large:16},I=i({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}),k),slots:Object,setup(e){let{mergedClsPrefixRef:t,inlineThemeDisabled:n}=y(e),r=S(`Spin`,`-spin`,P,j,e,t),i=p(()=>{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`,p(()=>{let{size:t}=e;return typeof t==`number`?String(t):t[0]}),i,e):void 0,o=w(e,[`spinning`,`show`]),s=h(!1);return f(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:p(()=>{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:r,description:i}=this,a=t.icon&&this.rotate,o=(i||t.description)&&n(`div`,{class:`${r}-spin-description`},i||t.description?.call(t)),s=t.icon?n(`div`,{class:[`${r}-spin-body`,this.themeClass]},n(`div`,{class:[`${r}-spin`,a&&`${r}-spin--rotate`],style:t.default?``:this.cssVars},t.icon()),o):n(`div`,{class:[`${r}-spin-body`,this.themeClass]},n(O,{clsPrefix:r,style:t.default?``:this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,radius:this.radius,scale:this.scale,class:`${r}-spin`}),o);return(e=this.onRender)==null||e.call(this),t.default?n(`div`,{class:[`${r}-spin-container`,this.themeClass],style:this.cssVars},n(`div`,{class:[`${r}-spin-content`,this.active&&`${r}-spin-content--spinning`,this.contentClass],style:this.contentStyle},t),n(A,{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(i({__name:`DocsPage`,props:{kind:{}},setup(n){let i=n,f={terms:`Пользовательское соглашение`,privacy:`Политика конфиденциальности`,consent:`Согласие на обработку персональных данных`},p=h(``),g=h(!0),_=h(``);return d(async()=>{let e=D(),t={terms:()=>e.GetTerms({}),privacy:()=>e.GetPrivacy({}),consent:()=>e.GetConsent({})};try{let e=await t[i.kind]();p.value=e.text||``}catch(e){_.value=e instanceof Error?e.message:`Не удалось загрузить документ`}finally{g.value=!1}}),(n,d)=>(s(),a(`div`,L,[o(`div`,R,[o(`h1`,z,[r(N,null,{default:l(()=>[u(t(f[i.kind]),1)]),_:1})]),g.value?(s(),a(`div`,B,[r(m(I),{size:`large`})])):_.value?(s(),e(m(E),{key:1,type:`error`,"show-icon":!1,class:`doc-error`},{default:l(()=>[u(t(_.value),1)]),_:1})):(s(),a(`div`,V,[o(`div`,H,[o(`p`,U,t(p.value),1)]),d[0]||=o(`div`,{class:`paper-shadow paper-shadow-left`},null,-1),d[1]||=o(`div`,{class:`paper-shadow paper-shadow-right`},null,-1)])),o(`div`,W,[d[5]||=u(` Смотрите также: `,-1),r(m(c),{to:`/user-agreement`,class:`docs-link`},{default:l(()=>[...d[2]||=[u(`Пользовательское соглашение`,-1)]]),_:1}),d[6]||=u(` · `,-1),r(m(c),{to:`/privacy-policy`,class:`docs-link`},{default:l(()=>[...d[3]||=[u(`Политика конфиденциальности`,-1)]]),_:1}),d[7]||=u(` · `,-1),r(m(c),{to:`/consent`,class:`docs-link`},{default:l(()=>[...d[4]||=[u(`Согласие на обработку персональных данных`,-1)]]),_:1})])])]))}}),[[`__scopeId`,`data-v-a0534098`]]);export{G as t}; \ No newline at end of file diff --git a/frontend/dist/assets/Flex-LW-PCNxv.js b/frontend/dist/assets/Flex-LW-PCNxv.js deleted file mode 100644 index 0127202..0000000 --- a/frontend/dist/assets/Flex-LW-PCNxv.js +++ /dev/null @@ -1 +0,0 @@ -import{I as e,N as t,w as n}from"./client-CT8bsOZT.js";import{N as r,o as i,q as a,r as o}from"./light-DhgSQSdG.js";import{n as s,t as c}from"./css-DEmdllcC.js";import{t as l}from"./flatten-K6HmZnua.js";import{t as u}from"./get-slot-6kXJmSMP.js";import{u as d}from"./index-oex1uI7H.js";function f(){return d}var p={name:`Flex`,self:f},m=t({name:`Flex`,props:Object.assign(Object.assign({},o.props),{align:String,justify:{type:String,default:`start`},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:`medium`},wrap:{type:Boolean,default:!0}}),setup(e){let{mergedClsPrefixRef:t,mergedRtlRef:l}=r(e),u=o(`Flex`,`-flex`,void 0,p,e,t);return{rtlEnabled:i(`Flex`,l,t),mergedClsPrefix:t,margin:n(()=>{let{size:t}=e;if(Array.isArray(t))return{horizontal:t[0],vertical:t[1]};if(typeof t==`number`)return{horizontal:t,vertical:t};let{self:{[a(`gap`,t)]:n}}=u.value,{row:r,col:i}=s(n);return{horizontal:c(i),vertical:c(r)}})}},render(){let{vertical:t,reverse:n,align:r,inline:i,justify:a,margin:o,wrap:s,mergedClsPrefix:c,rtlEnabled:d}=this,f=l(u(this),!1);return f.length?e(`div`,{role:`none`,class:[`${c}-flex`,d&&`${c}-flex--rtl`],style:{display:i?`inline-flex`:`flex`,flexDirection:t&&!n?`column`:t&&n?`column-reverse`:!t&&n?`row-reverse`:`row`,justifyContent:a,flexWrap:!s||t?`nowrap`:`wrap`,alignItems:r,gap:`${o.vertical}px ${o.horizontal}px`}},f):null}});export{m as t}; \ No newline at end of file diff --git a/frontend/dist/assets/Follower-Bm7xH84Z.js b/frontend/dist/assets/Follower-Bm7xH84Z.js deleted file mode 100644 index 2a6571b..0000000 --- a/frontend/dist/assets/Follower-Bm7xH84Z.js +++ /dev/null @@ -1 +0,0 @@ -import{G as e,H as t,I as n,N as r,P as i,R as a,St as o,Z as s,lt as c,m as l,ot as u,q as d,yt as f}from"./client-CT8bsOZT.js";import{F as p,X as m}from"./light-DhgSQSdG.js";import{d as h,u as g}from"./Card-BX9nnwGC.js";import{a as _,c as v,h as y,i as b,l as x,p as S,s as C,u as w}from"./fade-in-scale-up.cssr-DOaveAHn.js";import{X as T,Y as E}from"./index-oex1uI7H.js";var D=[],O=new WeakMap;function k(){D.forEach(e=>e(...O.get(e))),D=[]}function A(e,...t){O.set(e,t),!D.includes(e)&&D.push(e)===1&&requestAnimationFrame(k)}var j=y?document?.fonts?.ready:void 0,M=!1;j===void 0?M=!0:j.then(()=>{M=!0});function N(t){if(M)return;let n=!1;d(()=>{M||j?.then(()=>{n||t()})}),e(()=>{n=!0})}var P=l(`n-internal-select-menu`),F=l(`n-internal-select-menu-body`),I=`__disabled__`;function L(t){let n=a(w,null),r=a(S,null),i=a(x,null),o=a(F,null),s=f();if(typeof document<`u`){s.value=document.fullscreenElement;let t=()=>{s.value=document.fullscreenElement};d(()=>{h(`fullscreenchange`,document,t)}),e(()=>{g(`fullscreenchange`,document,t)})}return T(()=>{let{to:e}=t;return e===void 0?n?.value?n.value.$el??n.value:r?.value?r.value:i?.value?i.value:o?.value?o.value:e??(s.value||`body`):e===!1?I:e===!0?s.value||`body`:e})}L.tdkey=I,L.propTo={type:[String,Object,Boolean],default:void 0};var R=null;function z(){if(R===null&&(R=document.getElementById(`v-binder-view-measurer`),R===null)){R=document.createElement(`div`),R.id=`v-binder-view-measurer`;let{style:e}=R;e.position=`fixed`,e.left=`0`,e.right=`0`,e.top=`0`,e.bottom=`0`,e.pointerEvents=`none`,e.visibility=`hidden`,document.body.appendChild(R)}return R.getBoundingClientRect()}function B(e,t){let n=z();return{top:t,left:e,height:0,width:0,right:n.width-e,bottom:n.height-t}}function V(e){let t=e.getBoundingClientRect(),n=z();return{left:t.left-n.left,top:t.top-n.top,bottom:n.height+n.top-t.bottom,right:n.width+n.left-t.right,width:t.width,height:t.height}}function H(e){return e.nodeType===9?null:e.parentNode}function U(e){if(e===null)return null;let t=H(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){let{overflow:e,overflowX:n,overflowY:r}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(e+r+n))return t}return U(t)}var W=r({name:`Binder`,props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(t){s(`VBinder`,i()?.proxy);let n=a(`VBinder`,null),r=f(null),o=e=>{r.value=e,n&&t.syncTargetWithParent&&n.setTargetRef(e)},c=[],l=()=>{let e=r.value;for(;e=U(e),e!==null;)c.push(e);for(let e of c)h(`scroll`,e,_,!0)},u=()=>{for(let e of c)g(`scroll`,e,_,!0);c=[]},d=new Set,p=e=>{d.size===0&&l(),d.has(e)||d.add(e)},m=e=>{d.has(e)&&d.delete(e),d.size===0&&u()},_=()=>{A(v)},v=()=>{d.forEach(e=>e())},y=new Set,b=e=>{y.size===0&&h(`resize`,window,S),y.has(e)||y.add(e)},x=e=>{y.has(e)&&y.delete(e),y.size===0&&g(`resize`,window,S)},S=()=>{y.forEach(e=>e())};return e(()=>{g(`resize`,window,S),u()}),{targetRef:r,setTargetRef:o,addScrollListener:p,removeScrollListener:m,addResizeListener:b,removeResizeListener:x}},render(){return v(`binder`,this.$slots)}}),G=r({name:`Target`,setup(){let{setTargetRef:e,syncTarget:t}=a(`VBinder`);return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){let{syncTarget:e,setTargetDirective:t}=this;return e?c(C(`follower`,this.$slots),[[t]]):C(`follower`,this.$slots)}}),{c:K}=m(),q=`vueuc-style`,J={top:`bottom`,bottom:`top`,left:`right`,right:`left`},Y={start:`end`,center:`center`,end:`start`},X={top:`height`,bottom:`height`,left:`width`,right:`width`},Z={"bottom-start":`top left`,bottom:`top center`,"bottom-end":`top right`,"top-start":`bottom left`,top:`bottom center`,"top-end":`bottom right`,"right-start":`top left`,right:`center left`,"right-end":`bottom left`,"left-start":`top right`,left:`center right`,"left-end":`bottom right`},ee={"bottom-start":`bottom left`,bottom:`bottom center`,"bottom-end":`bottom right`,"top-start":`top left`,top:`top center`,"top-end":`top right`,"right-start":`top right`,right:`center right`,"right-end":`bottom right`,"left-start":`top left`,left:`center left`,"left-end":`bottom left`},te={"bottom-start":`right`,"bottom-end":`left`,"top-start":`right`,"top-end":`left`,"right-start":`bottom`,"right-end":`top`,"left-start":`bottom`,"left-end":`top`},Q={top:!0,bottom:!1,left:!0,right:!1},$={top:`end`,bottom:`start`,left:`end`,right:`start`};function ne(e,t,n,r,i,a){if(!i||a)return{placement:e,top:0,left:0};let[o,s]=e.split(`-`),c=s??`center`,l={top:0,left:0},u=(e,i,a)=>{let o=0,s=0,c=n[e]-t[i]-t[e];return c>0&&r&&(a?s=Q[i]?c:-c:o=Q[i]?c:-c),{left:o,top:s}},d=o===`left`||o===`right`;if(c!==`center`){let r=te[e],i=J[r],a=X[r];if(n[a]>t[a]){if(t[r]+t[a]t[i]&&(c=Y[s])}else{let e=o===`bottom`||o===`top`?`left`:`top`,r=J[e],i=X[e],a=(n[i]-t[i])/2;(t[e]t[r]?(c=$[e],l=u(i,e,d)):(c=$[r],l=u(i,r,d)))}let f=o;return t[o] *`,{pointerEvents:`all`})])]),oe=r({name:`Follower`,inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:`bottom`},syncTrigger:{type:Array,default:[`resize`,`scroll`]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(n){let r=a(`VBinder`),i=T(()=>n.enabled===void 0?n.show:n.enabled),s=f(null),c=f(null),l=()=>{let{syncTrigger:e}=n;e.includes(`scroll`)&&r.addScrollListener(g),e.includes(`resize`)&&r.addResizeListener(g)},m=()=>{r.removeScrollListener(g),r.removeResizeListener(g)};d(()=>{i.value&&(g(),l())});let h=p();ae.mount({id:`vueuc/binder`,head:!0,anchorMetaName:q,ssr:h}),e(()=>{m()}),N(()=>{i.value&&g()});let g=()=>{if(!i.value)return;let e=s.value;if(e===null)return;let t=r.targetRef,{x:a,y:o,overlap:l}=n,u=a!==void 0&&o!==void 0?B(a,o):V(t);e.style.setProperty(`--v-target-width`,`${Math.round(u.width)}px`),e.style.setProperty(`--v-target-height`,`${Math.round(u.height)}px`);let{width:d,minWidth:f,placement:p,internalShift:m,flip:h}=n;e.setAttribute(`v-placement`,p),l?e.setAttribute(`v-overlap`,``):e.removeAttribute(`v-overlap`);let{style:g}=e;d===`target`?g.width=`${u.width}px`:d===void 0?g.width=``:g.width=d,f===`target`?g.minWidth=`${u.width}px`:f===void 0?g.minWidth=``:g.minWidth=f;let _=V(e),v=V(c.value),{left:y,top:b,placement:x}=ne(p,u,_,m,h,l),S=re(x,l),{left:C,top:w,transform:T}=ie(x,v,u,b,y,l);e.setAttribute(`v-placement`,x),e.style.setProperty(`--v-offset-left`,`${Math.round(y)}px`),e.style.setProperty(`--v-offset-top`,`${Math.round(b)}px`),e.style.transform=`translateX(${C}) translateY(${w}) ${T}`,e.style.setProperty(`--v-transform-origin`,S),e.style.transformOrigin=S};u(i,e=>{e?(l(),_()):m()});let _=()=>{t().then(g).catch(e=>console.error(e))};[`placement`,`x`,`y`,`internalShift`,`flip`,`width`,`overlap`,`minWidth`].forEach(e=>{u(o(n,e),g)}),[`teleportDisabled`].forEach(e=>{u(o(n,e),_)}),u(o(n,`syncTrigger`),e=>{e.includes(`resize`)?r.addResizeListener(g):r.removeResizeListener(g),e.includes(`scroll`)?r.addScrollListener(g):r.removeScrollListener(g)});let v=E();return{VBinder:r,mergedEnabled:i,offsetContainerRef:c,followerRef:s,mergedTo:T(()=>{let{to:e}=n;if(e!==void 0)return e;v.value}),syncPosition:g}},render(){return n(b,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e;let t=n(`div`,{class:[`v-binder-follower-container`,this.containerClass],ref:`offsetContainerRef`},[n(`div`,{class:`v-binder-follower-content`,ref:`followerRef`},(e=this.$slots).default?.call(e))]);return this.zindexable?c(t,[[_,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):t}})}});export{W as a,P as c,G as i,N as l,K as n,L as o,q as r,F as s,oe as t,A as u}; \ No newline at end of file diff --git a/frontend/dist/assets/GameResultsView-yqRvFASD.js b/frontend/dist/assets/GameResultsView-yqRvFASD.js deleted file mode 100644 index 060b21e..0000000 --- a/frontend/dist/assets/GameResultsView-yqRvFASD.js +++ /dev/null @@ -1 +0,0 @@ -import{Bt as e,D as t,E as ee,Ht as n,M as r,N as i,O as a,Q as o,T as s,X as c,ct as l,j as u,l as d,u as f,w as p,wt as m,y as h,yt as g}from"./client-CT8bsOZT.js";import{t as _}from"./Button-D8HO8D_D.js";import{n as te,r as ne,t as v}from"./es-BS8VS4O3.js";import{t as y}from"./Flex-LW-PCNxv.js";import{t as re}from"./index-oex1uI7H.js";import{t as ie}from"./HeaderMenu--hCKWQY2.js";import{t as b}from"./_plugin-vue_export-helper-BDNMzG2s.js";var x={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},ae=i({name:`TrophyFilled`,render:function(e,t){return c(),a(`svg`,x,t[0]||=[s(`path`,{d:`M26 7h-2V6a2.002 2.002 0 0 0-2-2H10a2.002 2.002 0 0 0-2 2v1H6a2.002 2.002 0 0 0-2 2v3a4.005 4.005 0 0 0 4 4h.322A8.169 8.169 0 0 0 15 21.934V26h-5v2h12v-2h-5v-4.069A7.966 7.966 0 0 0 23.74 16H24a4.005 4.005 0 0 0 4-4V9a2.002 2.002 0 0 0-2-2zM8 14a2.002 2.002 0 0 1-2-2V9h2zm18-2a2.002 2.002 0 0 1-2 2V9h2z`,fill:`currentColor`},null,-1)])}}),oe={class:`center-block-custom`},S={class:`width1200`},C={class:`page-header`},w={key:0,class:`game-name`},se={key:0,class:`winner-block`},T={class:`winner-cup`,"aria-hidden":`true`},E={class:`winner-label`},D={class:`winner-names`},O={class:`winner-stats`},k={key:1,class:`info-block`},A={key:2,class:`info-block`},j={class:`info-title`},M={key:3,class:`info-block`},N={key:4,class:`table-scroll`},P={class:`results-table`},F=[`title`],I={class:`question-text`},L={class:`place-col`},R={key:1,class:`place-plain`},z={class:`team-col`},B={class:`number-col`},V={class:`number-col`},H=b(i({__name:`GameResultsPage`,setup(ee){let i=te(),b=re(),x=ne(),H=d(),U=f(),W=H.params.id,G=g(!1),K=g(!1),q=g(``),J=g(!1),Y=g(!1),X=g([]),Z=g([]),Q=g(``);async function ce(){G.value=!1,K.value=!1,Y.value=!1,J.value=!1;try{let e=await i.GetGameResults({gameID:Number(W)});X.value=e.questions||[],Z.value=e.teams||[],G.value=!0}catch{b.isAuthenticated?(q.value=`Не удалось загрузить результаты`,x.error(q.value),J.value=!0,K.value=!0):Y.value=!0}}ce();async function le(){try{let e=await i.GetGame({ID:Number(W)});Q.value=e.game?.name||``}catch{}}le();function ue(e,t){return(e.answers||[]).find(e=>e.questionCode==t)?.score??`—`}let $=p(()=>{let e=Z.value.map(e=>e.place).filter(e=>e!=null);if(e.length==0)return[];let t=Math.min(...e);return Z.value.filter(e=>e.place===t)}),de=p(()=>$.value.length>1?`Победители`:`Победитель`),fe=p(()=>{let e=$.value.map(e=>e.team?.name||``).filter(e=>e!=``);return e.length<=1?e[0]||``:e.length==2?e[0]+` и `+e[1]:e.slice(0,-1).join(`, `)+` и `+e[e.length-1]});function pe(){U.push(`/login`)}function me(){b.logout(),U.push(`/login`)}function he(){if(window.history.state?.back){U.back();return}U.push(`/games`)}return(ee,i)=>(c(),a(h,null,[s(`div`,oe,[s(`div`,S,[s(`div`,C,[r(m(y),{justify:`space-between`,align:`center`},{default:l(()=>[s(`div`,null,[i[0]||=s(`div`,{class:`page-title`},`Итоги игры`,-1),Q.value?(c(),a(`div`,w,n(Q.value),1)):t(``,!0)]),r(m(_),{quaternary:``,onClick:he},{default:l(()=>[...i[1]||=[u(`Назад`,-1)]]),_:1})]),_:1})]),G.value&&$.value.length>0?(c(),a(`div`,se,[s(`span`,T,[r(m(v),{size:`56`},{default:l(()=>[r(m(ae))]),_:1})]),s(`div`,E,n(de.value),1),s(`div`,D,n(fe.value),1),s(`div`,O,` Баллы: `+n($.value[0]?.totalScore??0)+` · Поездки: `+n($.value[0]?.actionsCount??0),1),i[2]||=s(`div`,{class:`winner-congrats`},`Поздравляем!`,-1)])):t(``,!0),Y.value?(c(),a(`div`,k,[i[4]||=s(`p`,{class:`info-title`},`Для просмотра итогов игры нужно войти в систему`,-1),r(m(y),{justify:`end`},{default:l(()=>[r(m(_),{onClick:pe},{default:l(()=>[...i[3]||=[u(`Войти`,-1)]]),_:1})]),_:1})])):K.value?(c(),a(`div`,A,[s(`p`,j,n(q.value),1),J.value?(c(),a(h,{key:0},[i[6]||=s(`p`,{class:`info-subtitle`},`Сессия могла истечь — попробуйте войти заново`,-1),r(m(y),{justify:`end`},{default:l(()=>[r(m(_),{onClick:me},{default:l(()=>[...i[5]||=[u(`Войти заново`,-1)]]),_:1})]),_:1})],64)):t(``,!0)])):G.value&&Z.value.length==0?(c(),a(`div`,M,[...i[7]||=[s(`p`,{class:`info-title`},`Результаты пока не готовы`,-1)]])):G.value?(c(),a(`div`,N,[s(`table`,P,[s(`thead`,null,[s(`tr`,null,[i[8]||=s(`th`,{class:`place-col`},`Место`,-1),i[9]||=s(`th`,{class:`team-col`},`Команда`,-1),(c(!0),a(h,null,o(X.value,e=>(c(),a(`th`,{key:e.code,class:`question-col`,title:e.text},[s(`div`,I,n(e.text),1)],8,F))),128)),i[10]||=s(`th`,{class:`number-col`},`Сумма`,-1),i[11]||=s(`th`,{class:`number-col`},`Поездки`,-1)])]),s(`tbody`,null,[(c(!0),a(h,null,o(Z.value,t=>(c(),a(`tr`,{key:t.team?.ID},[s(`td`,L,[t.place!=null&&t.place>=1&&t.place<=3?(c(),a(`span`,{key:0,class:e([`place-badge`,`place-`+t.place])},n(t.place),3)):(c(),a(`span`,R,n(t.place),1))]),s(`td`,z,n(t.team?.name),1),(c(!0),a(h,null,o(X.value,e=>(c(),a(`td`,{key:e.code,class:`number-col`},n(ue(t,e.code)),1))),128)),s(`td`,B,n(t.totalScore),1),s(`td`,V,n(t.actionsCount),1)]))),128))])])])):t(``,!0)])]),r(ie,{active:`games`})],64))}}),[[`__scopeId`,`data-v-ed9aeaf7`]]),U=i({__name:`GameResultsView`,setup(e){return(e,t)=>(c(),ee(H))}});export{U as default}; \ No newline at end of file diff --git a/frontend/dist/assets/GameView-CLny06h6.js b/frontend/dist/assets/GameView-CLny06h6.js deleted file mode 100644 index 33b504e..0000000 --- a/frontend/dist/assets/GameView-CLny06h6.js +++ /dev/null @@ -1,7 +0,0 @@ -import{$ as e,B as t,Bt as n,D as r,E as i,G as a,H as o,Ht as s,I as c,J as l,M as u,N as d,O as f,Q as p,St as m,T as h,Vt as g,X as _,ct as v,it as y,j as b,l as ee,lt as x,ot as S,q as C,tt as w,u as T,w as E,wt as D,y as O,yt as k}from"./client-CT8bsOZT.js";import{H as A,N as j,R as te,V as M,n as N,o as P,r as ne,t as re}from"./light-DhgSQSdG.js";import{d as ie,t as ae}from"./Card-BX9nnwGC.js";import{t as oe}from"./Modal-a8TxC5Fw.js";import{t as se}from"./use-merged-state-CRia4_FA.js";import{n as F,t as I}from"./Button-D8HO8D_D.js";import{n as ce,t as le}from"./Tabs-DpaEFwbI.js";import{t as ue}from"./Select-CqnQA6h4.js";import{n as de,r as L}from"./use-form-item-CBXe24ar.js";import{a as fe,r as R}from"./resolve-slot-BEScaVot.js";import{r as pe}from"./Suffix-BVApm8eE.js";import{t as me}from"./Add-D3YI1YD1.js";import{t as z}from"./Input-B3ERgh42.js";import{t as B}from"./Remove-Bacfd-Dy.js";import{t as V}from"./Tag-wKk--N0F.js";import{t as H}from"./Alert-CWmvp18Y.js";import{n as he,r as ge,t as _e}from"./es-BS8VS4O3.js";import{t as U}from"./Space-B8J_02Fa.js";import{t as W}from"./Flex-LW-PCNxv.js";import{t as ve}from"./Rate-BlfAKQvG.js";import{t as ye}from"./QrCode-VQE44Zo-.js";import{t as be}from"./text-CQ4PuMIN.js";import{S as G,U as K,X as q,rt as J,tt as xe,w as Se}from"./index-oex1uI7H.js";import{t as Ce}from"./HeaderMenu--hCKWQY2.js";import{t as Y}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as we}from"./binary_client-C7IqFUIC.js";import{n as Te,r as Ee}from"./application-DrhMrvIJ.js";import{t as De}from"./useSimplePolling-yv2K0bkR.js";import{n as Oe,t as ke}from"./datetime-BJNH0M1T.js";function Ae(e){let{textColorDisabled:t}=e;return{iconColorDisabled:t}}var je=N({name:`InputNumber`,common:re,peers:{Button:G,Input:Se},self:Ae}),Me=M([A(`input-number-suffix`,` - display: inline-block; - margin-right: 10px; - `),A(`input-number-prefix`,` - display: inline-block; - margin-left: 10px; - `)]);function Ne(e){return e==null||typeof e==`string`&&e.trim()===``?null:Number(e)}function X(e){return e.includes(`.`)&&(/^(-)?\d+.*(\.|0)$/.test(e)||/^-?\d*$/.test(e))||e===`-`||e===`-0`}function Z(e){return e==null?!0:!Number.isNaN(e)}function Pe(e,t){return typeof e==`number`?t===void 0?String(e):e.toFixed(t):``}function Fe(e){if(e===null)return null;if(typeof e==`number`)return e;{let t=Number(e);return Number.isNaN(t)?null:t}}var Ie=800,Le=100,Re=d({name:`InputNumber`,props:Object.assign(Object.assign({},ne.props),{autofocus:Boolean,loading:{type:Boolean,default:void 0},placeholder:String,defaultValue:{type:Number,default:null},value:Number,step:{type:[Number,String],default:1},min:[Number,String],max:[Number,String],size:String,disabled:{type:Boolean,default:void 0},validator:Function,bordered:{type:Boolean,default:void 0},showButton:{type:Boolean,default:!0},buttonPlacement:{type:String,default:`right`},inputProps:Object,readonly:Boolean,clearable:Boolean,keyboard:{type:Object,default:{}},updateValueOnInput:{type:Boolean,default:!0},round:{type:Boolean,default:void 0},parse:Function,format:Function,precision:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onChange:[Function,Array]}),slots:Object,setup(e){let{mergedBorderedRef:t,mergedClsPrefixRef:n,mergedRtlRef:r,mergedComponentPropsRef:i}=j(e),a=ne(`InputNumber`,`-input-number`,Me,je,e,n),{localeRef:s}=pe(`InputNumber`),c=de(e,{mergedSize:t=>{let{size:n}=e;if(n)return n;let{mergedSize:r}=t||{};return r?.value?r.value:i?.value?.InputNumber?.size||`medium`}}),{mergedSizeRef:l,mergedDisabledRef:u,mergedStatusRef:d}=c,f=k(null),p=k(null),h=k(null),g=k(e.defaultValue),_=se(m(e,`value`),g),v=k(``),y=e=>{let t=String(e).split(`.`)[1];return t?t.length:0},b=t=>{let n=[e.min,e.max,e.step,t].map(e=>e===void 0?0:y(e));return Math.max(...n)},ee=q(()=>{let{placeholder:t}=e;return t===void 0?s.value.placeholder:t}),x=q(()=>{let t=Fe(e.step);return t===null||t===0?1:Math.abs(t)}),C=q(()=>{let t=Fe(e.min);return t===null?null:t}),w=q(()=>{let t=Fe(e.max);return t===null?null:t}),T=()=>{let{value:t}=_;if(Z(t)){let{format:n,precision:r}=e;n?v.value=n(t):t===null||r===void 0||y(t)>r?v.value=Pe(t,void 0):v.value=Pe(t,r)}else v.value=String(t)};T();let D=t=>{let{value:n}=_;if(t===n){T();return}let{"onUpdate:value":r,onUpdateValue:i,onChange:a}=e,{nTriggerFormInput:o,nTriggerFormChange:s}=c;a&&L(a,t),i&&L(i,t),r&&L(r,t),g.value=t,o(),s()},O=({offset:t,doUpdateIfValid:n,fixPrecision:r,isInputing:i})=>{let{value:a}=v;if(i&&X(a))return!1;let o=(e.parse||Ne)(a);if(o===null)return n&&D(null),null;if(Z(o)){let a=y(o),{precision:s}=e;if(s!==void 0&&st){if(!n||i)return!1;c=t}if(r!==null&&cO({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),M=q(()=>{let{value:t}=_;if(e.validator&&t===null)return!1;let{value:n}=x;return O({offset:-n,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),N=q(()=>{let{value:t}=_;if(e.validator&&t===null)return!1;let{value:n}=x;return O({offset:+n,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function re(t){let{onFocus:n}=e,{nTriggerFormFocus:r}=c;n&&L(n,t),r()}function ae(t){if(t.target===f.value?.wrapperElRef)return;let n=O({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if(n!==!1){let e=f.value?.inputElRef;e&&(e.value=String(n||``)),_.value===n&&T()}else T();let{onBlur:r}=e,{nTriggerFormBlur:i}=c;r&&L(r,t),i(),o(()=>{T()})}function oe(t){let{onClear:n}=e;n&&L(n,t)}function F(){let{value:t}=N;if(!t){he();return}let{value:n}=_;if(n===null)e.validator||D(ue());else{let{value:e}=x;O({offset:e,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function I(){let{value:t}=M;if(!t){V();return}let{value:n}=_;if(n===null)e.validator||D(ue());else{let{value:e}=x;O({offset:-e,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}let ce=re,le=ae;function ue(){if(e.validator)return null;let{value:t}=C,{value:n}=w;return t===null?n===null?0:Math.min(0,n):Math.max(0,t)}function fe(e){oe(e),D(null)}function R(e){var t;h.value?.$el.contains(e.target)&&e.preventDefault(),p.value?.$el.contains(e.target)&&e.preventDefault(),(t=f.value)==null||t.activate()}let me=null,z=null,B=null;function V(){B&&=(window.clearTimeout(B),null),me&&=(window.clearInterval(me),null)}let H=null;function he(){H&&=(window.clearTimeout(H),null),z&&=(window.clearInterval(z),null)}function ge(){V(),B=window.setTimeout(()=>{me=window.setInterval(()=>{I()},Le)},Ie),ie(`mouseup`,document,V,{once:!0})}function _e(){he(),H=window.setTimeout(()=>{z=window.setInterval(()=>{F()},Le)},Ie),ie(`mouseup`,document,he,{once:!0})}let U=()=>{z||F()},W=()=>{me||I()};function ve(t){var n;if(t.key===`Enter`){if(t.target===f.value?.wrapperElRef)return;O({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((n=f.value)==null||n.deactivate())}else if(t.key===`ArrowUp`){if(!N.value||e.keyboard.ArrowUp===!1)return;t.preventDefault(),O({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&F()}else if(t.key===`ArrowDown`){if(!M.value||e.keyboard.ArrowDown===!1)return;t.preventDefault(),O({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&I()}}function ye(t){v.value=t,e.updateValueOnInput&&!e.format&&!e.parse&&e.precision===void 0&&O({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}S(_,()=>{T()});let be={focus:()=>f.value?.focus(),blur:()=>f.value?.blur(),select:()=>f.value?.select()},G=P(`InputNumber`,r,n);return Object.assign(Object.assign({},be),{rtlEnabled:G,inputInstRef:f,minusButtonInstRef:p,addButtonInstRef:h,mergedClsPrefix:n,mergedBordered:t,uncontrolledValue:g,mergedValue:_,mergedPlaceholder:ee,displayedValueInvalid:A,mergedSize:l,mergedDisabled:u,displayedValue:v,addable:N,minusable:M,mergedStatus:d,handleFocus:ce,handleBlur:le,handleClear:fe,handleMouseDown:R,handleAddClick:U,handleMinusClick:W,handleAddMousedown:_e,handleMinusMousedown:ge,handleKeyDown:ve,handleUpdateDisplayedValue:ye,mergedTheme:a,inputThemeOverrides:{paddingSmall:`0 8px 0 10px`,paddingMedium:`0 8px 0 12px`,paddingLarge:`0 8px 0 14px`},buttonThemeOverrides:E(()=>{let{self:{iconColorDisabled:e}}=a.value,[t,n,r,i]=te(e);return{textColorTextDisabled:`rgb(${t}, ${n}, ${r})`,opacityDisabled:`${i}`}})})},render(){let{mergedClsPrefix:e,$slots:t}=this,n=()=>c(F,{text:!0,disabled:!this.minusable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleMinusClick,onMousedown:this.handleMinusMousedown,ref:`minusButtonInstRef`},{icon:()=>R(t[`minus-icon`],()=>[c(K,{clsPrefix:e},{default:()=>c(B,null)})])}),r=()=>c(F,{text:!0,disabled:!this.addable||this.mergedDisabled||this.readonly,focusable:!1,theme:this.mergedTheme.peers.Button,themeOverrides:this.mergedTheme.peerOverrides.Button,builtinThemeOverrides:this.buttonThemeOverrides,onClick:this.handleAddClick,onMousedown:this.handleAddMousedown,ref:`addButtonInstRef`},{icon:()=>R(t[`add-icon`],()=>[c(K,{clsPrefix:e},{default:()=>c(me,null)})])});return c(`div`,{class:[`${e}-input-number`,this.rtlEnabled&&`${e}-input-number--rtl`]},c(z,{ref:`inputInstRef`,autofocus:this.autofocus,status:this.mergedStatus,bordered:this.mergedBordered,loading:this.loading,value:this.displayedValue,onUpdateValue:this.handleUpdateDisplayedValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,builtinThemeOverrides:this.inputThemeOverrides,size:this.mergedSize,placeholder:this.mergedPlaceholder,disabled:this.mergedDisabled,readonly:this.readonly,round:this.round,textDecoration:this.displayedValueInvalid?`line-through`:void 0,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onClear:this.handleClear,clearable:this.clearable,inputProps:this.inputProps,internalLoadingBeforeSuffix:!0},{prefix:()=>this.showButton&&this.buttonPlacement===`both`?[n(),fe(t.prefix,t=>t?c(`span`,{class:`${e}-input-number-prefix`},t):null)]:t.prefix?.call(t),suffix:()=>this.showButton?[fe(t.suffix,t=>t?c(`span`,{class:`${e}-input-number-suffix`},t):null),this.buttonPlacement===`right`?n():null,r()]:t.suffix?.call(t)}))}}),ze={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},Be=d({name:`Flag`,render:function(e,t){return _(),f(`svg`,ze,t[0]||=[h(`path`,{d:`M6 30H4V2h24l-5.8 9l5.8 9H6zm0-12h18.33l-4.53-7l4.53-7H6z`,fill:`currentColor`},null,-1)])}}),Ve={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},He=d({name:`Pause`,render:function(e,t){return _(),f(`svg`,Ve,t[0]||=[h(`path`,{d:`M12 8v16H8V8h4m0-2H8a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2z`,fill:`currentColor`},null,-1),h(`path`,{d:`M24 8v16h-4V8h4m0-2h-4a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h4a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2z`,fill:`currentColor`},null,-1)])}}),Ue={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},We=d({name:`Play`,render:function(e,t){return _(),f(`svg`,Ue,t[0]||=[h(`path`,{d:`M7 28a1 1 0 0 1-1-1V5a1 1 0 0 1 1.482-.876l20 11a1 1 0 0 1 0 1.752l-20 11A1 1 0 0 1 7 28zM8 6.69V25.31L24.925 16z`,fill:`currentColor`},null,-1)])}}),Ge={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},Ke=d({name:`Reset`,render:function(e,t){return _(),f(`svg`,Ge,t[0]||=[h(`path`,{d:`M18 28A12 12 0 1 0 6 16v6.2l-3.6-3.6L1 20l6 6l6-6l-1.4-1.4L8 22.2V16a10 10 0 1 1 10 10z`,fill:`currentColor`},null,-1)])}}),qe={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},Je=d({name:`Trophy`,render:function(e,t){return _(),f(`svg`,qe,t[0]||=[h(`path`,{d:`M26 7h-2V6a2.002 2.002 0 0 0-2-2H10a2.002 2.002 0 0 0-2 2v1H6a2.002 2.002 0 0 0-2 2v3a4.005 4.005 0 0 0 4 4h.322A8.169 8.169 0 0 0 15 21.934V26h-5v2h12v-2h-5v-4.069A7.966 7.966 0 0 0 23.74 16H24a4.005 4.005 0 0 0 4-4V9a2.002 2.002 0 0 0-2-2zM8 14a2.002 2.002 0 0 1-2-2V9h2zm14 0a6 6 0 0 1-6.186 5.997A6.2 6.2 0 0 1 10 13.707V6h12zm4-2a2.002 2.002 0 0 1-2 2V9h2z`,fill:`currentColor`},null,-1)])}}),Ye={key:0,class:`timer-preview`},Xe=[`src`],Ze=[`src`],Qe={key:3,class:`preview-message`},$e={key:4,class:`preview-message`},et={key:5,class:`preview-message`},tt={key:6,class:`preview-message`},nt={key:7,class:`preview-results`},rt=[`src`],it=Y(d({__name:`ScreenPreview`,props:{state:{},questions:{},teams:{}},setup(e){let t=e,n=k(Date.now()),i=k(0),a=k(Date.now()),o=k(),c=null,u=E(()=>{let e=t.state.backgroundImage||t.state.coverImage;return e?{backgroundImage:`linear-gradient(rgb(0 0 0 / 55%), rgb(0 0 0 / 55%)), url("${e}")`}:{}}),d=E(()=>t.state.timerState===`SCREEN_TIMER_STATE_RUNNING`?Math.max(0,i.value-(n.value-a.value)/1e3):i.value),m=E(()=>{let e=Math.floor(d.value/60),t=Math.floor(d.value%60);return`${String(e).padStart(2,`0`)}:${String(t).padStart(2,`0`)}`}),v=E(()=>Ee(t.state.introAudio)),y=E(()=>Ee(t.state.conclusionVideo));return S(()=>[t.state.timerRemainingSeconds,t.state.timerState,t.state.stateVersion],()=>{let e=Math.max(0,Number(t.state.timerRemainingSeconds||0));if(t.state.timerState===`SCREEN_TIMER_STATE_RUNNING`&&o.value===t.state.timerState){let t=Math.max(0,i.value-(Date.now()-a.value)/1e3);if(Math.abs(e-t)<=.5)return}i.value=e,a.value=Date.now(),o.value=t.state.timerState},{immediate:!0}),C(()=>{c=window.setInterval(()=>{n.value=Date.now()},250)}),l(()=>{c!=null&&window.clearInterval(c)}),(t,n)=>(_(),f(`div`,{class:`screen-preview`,style:g(u.value)},[e.state.mode===`SCREEN_MODE_TIMER`?(_(),f(`div`,Ye,[h(`h2`,null,s(e.state.timerLabel||`Перерыв`),1),h(`strong`,null,s(m.value),1)])):e.state.mode===`SCREEN_MODE_INTRO`&&v.value?(_(),f(`audio`,{key:1,src:v.value,controls:``},null,8,Xe)):e.state.mode===`SCREEN_MODE_CONCLUSION`&&y.value?(_(),f(`video`,{key:2,src:y.value,autoplay:``,class:`preview-video`,loop:``,muted:``,playsinline:``},null,8,Ze)):e.state.mode===`SCREEN_MODE_CONCLUSION`?(_(),f(`div`,Qe,` Видео закрывашки не задано `)):e.state.mode===`SCREEN_MODE_INTRO_DONE`?(_(),f(`div`,$e,`Успехов`)):e.state.mode===`SCREEN_MODE_CONCLUSION_DONE`?(_(),f(`div`,et,` Спасибо за игру! `)):e.state.mode===`SCREEN_MODE_TEXT`?(_(),f(`div`,tt,s(e.state.text),1)):e.state.mode===`SCREEN_MODE_RESULTS`?(_(),f(`div`,nt,[n[4]||=h(`h2`,null,`Результаты`,-1),h(`table`,null,[h(`thead`,null,[h(`tr`,null,[n[0]||=h(`th`,null,`Место`,-1),n[1]||=h(`th`,null,`Команда`,-1),(_(!0),f(O,null,p(e.questions,e=>(_(),f(`th`,{key:e.code},s(e.code),1))),128)),n[2]||=h(`th`,null,`Сумма`,-1),n[3]||=h(`th`,null,`Ходы`,-1)])]),h(`tbody`,null,[(_(!0),f(O,null,p(e.teams,t=>(_(),f(`tr`,{key:t.team?.ID},[h(`td`,null,s(t.place),1),h(`td`,null,s(t.team?.name),1),(_(!0),f(O,null,p(e.questions,e=>(_(),f(`td`,{key:e.code},s(t.answers?.find(t=>t.questionCode===e.code)?.score??0),1))),128)),h(`td`,null,s(t.totalScore),1),h(`td`,null,s(t.actionsCount),1)]))),128))])])])):e.state.coverImage?(_(),f(`img`,{key:8,src:e.state.coverImage,alt:`Обложка дела`,class:`preview-cover`},null,8,rt)):r(``,!0)],4))}}),[[`__scopeId`,`data-v-d5134fb8`]]),Q=Y(d({__name:`UiBlock`,props:{tag:{default:`div`}},setup(t){return(n,r)=>(_(),i(w(t.tag),{class:`ui-block`},{default:v(()=>[e(n.$slots,`default`,{},void 0,!0)]),_:3}))}}),[[`__scopeId`,`data-v-80193f22`]]),at={class:`map-preview-layout`},ot=[`onPointerdown`],st=[`onPointerdown`],ct={key:2},lt=[`onClick`],ut={key:1,class:`screen-preview-placeholder`},$={class:`screen-plan`},dt={key:0,class:`screen-empty`},ft=Y(d({__name:`GameMapPanel`,props:{mapItems:{},teams:{},screens:{},previewQuestions:{},previewTeams:{},screenPlan:{},screenPlanDraft:{},screenPlanDirty:{type:Boolean},screenPlanSaving:{type:Boolean},screenPlanMode:{},screenVolume:{},screenPosition:{}},emits:[`saveItem`,`giveApplication`,`addStep`,`edit`,`cancel`,`removeStep`,`moveStep`,`dirty`,`clearPlan`,`save`,`setStep`,`command`,`update:screenVolume`,`update:screenPosition`],setup(e,{emit:t}){let o=e,c=t,l=k(1),d=k({x:0,y:0}),m=E(()=>o.screens.find(e=>e.status===`connected`)||o.screens[0]),y=E(()=>new Map(o.teams.filter(e=>e.applications?.length).map(e=>[e.ID,e]))),ee=[{label:`Обложка`,value:`SCREEN_MODE_COVER`},{label:`Введение`,value:`SCREEN_MODE_INTRO`},{label:`Успехов`,value:`SCREEN_MODE_INTRO_DONE`},{label:`Закрывашка`,value:`SCREEN_MODE_CONCLUSION`},{label:`Спасибо за игру`,value:`SCREEN_MODE_CONCLUSION_DONE`},{label:`Результаты`,value:`SCREEN_MODE_RESULTS`},{label:`Таймер`,value:`SCREEN_MODE_TIMER`},{label:`Текст`,value:`SCREEN_MODE_TEXT`}],S,C;function w(e,t){S={item:e,startX:t.clientX,startY:t.clientY,itemX:e.x||0,itemY:e.y||0},window.addEventListener(`pointermove`,T),window.addEventListener(`pointerup`,A,{once:!0})}function T(e){if(!S)return;let t=S.item.kind===`team`?20:1;S.item.x=Math.round((S.itemX+(e.clientX-S.startX)/l.value)/t)*t,S.item.y=Math.round((S.itemY+(e.clientY-S.startY)/l.value)/t)*t}function A(){if(!S)return;let e=S.item;S=void 0,window.removeEventListener(`pointermove`,T),c(`saveItem`,e)}function j(e){e.hidden=!e.hidden,c(`saveItem`,e,e.hidden)}function te(e){l.value=Math.min(2,Math.max(.5,Number((l.value+e).toFixed(2))))}function M(){l.value=1,d.value={x:0,y:0}}function N(e){e.button===0&&(C={startX:e.clientX,startY:e.clientY,offsetX:d.value.x,offsetY:d.value.y},window.addEventListener(`pointermove`,P),window.addEventListener(`pointerup`,ne,{once:!0}))}function P(e){C&&(d.value={x:C.offsetX+e.clientX-C.startX,y:C.offsetY+e.clientY-C.startY})}function ne(){C=void 0,window.removeEventListener(`pointermove`,P)}function re(e){e.preventDefault(),te(e.deltaY<0?.1:-.1)}return a(()=>{window.removeEventListener(`pointermove`,T),window.removeEventListener(`pointermove`,P)}),(t,a)=>(_(),f(`div`,at,[u(Q,null,{default:v(()=>[u(D(W),{align:`center`,justify:`space-between`,class:`screen-header`},{default:v(()=>[a[18]||=h(`p`,{class:`screens-title`},`Карта помещения`,-1),u(D(U),null,{default:v(()=>[u(D(I),{size:`small`,onClick:a[0]||=e=>te(-.1)},{default:v(()=>[...a[15]||=[b(`−`,-1)]]),_:1}),u(D(be),null,{default:v(()=>[b(s(Math.round(l.value*100))+`%`,1)]),_:1}),u(D(I),{size:`small`,onClick:a[1]||=e=>te(.1)},{default:v(()=>[...a[16]||=[b(`+`,-1)]]),_:1}),u(D(I),{size:`small`,onClick:M},{default:v(()=>[...a[17]||=[b(`Сбросить`,-1)]]),_:1})]),_:1})]),_:1}),h(`div`,{class:`map-field`,onPointerdown:N,onWheel:re},[h(`div`,{class:`map-canvas`,style:g({transform:`translate(${d.value.x}px, ${d.value.y}px) scale(${l.value})`})},[(_(!0),f(O,null,p(e.mapItems,e=>x((_(),f(`div`,{key:`${e.kind}-${e.itemID}`,class:n([`map-item`,[e.kind===`screen`?`map-screen`:e.kind===`organizer_desk`?`map-organizer-desk`:`map-team`,{"map-team-needs-applications":e.kind===`team`&&y.value.has(e.itemID)}]]),style:g({left:`${e.x||0}px`,top:`${e.y||0}px`}),onPointerdown:J(t=>e.kind!==`team`&&w(e,t),[`stop`])},[e.kind===`team`?(_(),f(`div`,{key:0,class:`map-team-handle`,onPointerdown:J(t=>w(e,t),[`stop`])},null,40,st)):r(``,!0),h(`span`,null,s(e.label),1),e.kind===`team`&&y.value.has(e.itemID)?(_(),i(D(U),{key:1,class:`map-team-applications`,vertical:``},{default:v(()=>[(_(!0),f(O,null,p(y.value.get(e.itemID)?.applications,t=>(_(),i(D(I),{key:t.name,size:`small`,onClick:n=>c(`giveApplication`,y.value.get(e.itemID),t)},{default:v(()=>[b(` Выдать: `+s(t.name),1)]),_:2},1032,[`onClick`]))),128))]),_:2},1024)):r(``,!0),e.kind===`screen`?(_(),f(`small`,ct,s(e.status)+s(e.soundEnabled?` · звук`:``),1)):r(``,!0),h(`button`,{class:`map-item-hide`,type:`button`,onPointerdown:a[2]||=J(()=>{},[`stop`]),onClick:J(t=>j(e),[`stop`])},` × `,40,lt)],46,ot)),[[xe,!e.hidden]])),128))],4)],32),e.mapItems.some(e=>e.hidden)?(_(),i(D(U),{key:0,class:`map-hidden-items`},{default:v(()=>[(_(!0),f(O,null,p(e.mapItems.filter(e=>e.hidden),e=>(_(),i(D(I),{key:`hidden-${e.kind}-${e.itemID}`,size:`small`,onClick:t=>j(e)},{default:v(()=>[b(` Добавить `+s(e.label),1)]),_:2},1032,[`onClick`]))),128))]),_:1})):r(``,!0)]),_:1}),u(Q,{tag:`aside`,class:`screen-preview-panel`},{default:v(()=>[a[41]||=h(`p`,{class:`screens-title`},`Превью экрана`,-1),m.value?.status===`connected`?(_(),i(it,{key:0,state:m.value,questions:e.previewQuestions,teams:e.previewTeams},null,8,[`state`,`questions`,`teams`])):(_(),f(`div`,ut,`Экран не подключён`)),h(`div`,$,[u(D(W),{align:`center`,justify:`space-between`,class:`screen-header`},{default:v(()=>[a[23]||=h(`p`,{class:`screens-title`},`План экранов`,-1),u(D(U),null,{default:v(()=>[!e.screenPlan&&e.screenPlanMode===`use`?(_(),i(D(I),{key:0,size:`small`,onClick:a[3]||=e=>c(`addStep`)},{default:v(()=>[...a[19]||=[b(` Создать план `,-1)]]),_:1})):r(``,!0),e.screenPlan&&e.screenPlanMode===`use`?(_(),i(D(I),{key:1,size:`small`,onClick:a[4]||=e=>c(`edit`)},{default:v(()=>[...a[20]||=[b(` Редактировать `,-1)]]),_:1})):r(``,!0),e.screenPlanMode===`edit`?(_(),f(O,{key:2},[u(D(I),{size:`small`,disabled:e.screenPlanSaving,onClick:a[5]||=e=>c(`cancel`)},{default:v(()=>[...a[21]||=[b(` Отменить `,-1)]]),_:1},8,[`disabled`]),u(D(I),{size:`small`,type:`primary`,loading:e.screenPlanSaving,disabled:e.screenPlanSaving,onClick:a[6]||=e=>c(`save`)},{default:v(()=>[...a[22]||=[b(` Сохранить план `,-1)]]),_:1},8,[`loading`,`disabled`])],64)):r(``,!0)]),_:1})]),_:1}),!e.screenPlan&&e.screenPlanMode===`use`?(_(),f(`p`,dt,` План экранов ещё не создан. `)):e.screenPlanMode===`edit`?(_(),f(O,{key:1},[(_(!0),f(O,null,p(e.screenPlanDraft,(t,n)=>(_(),i(D(U),{key:n,class:`screen-plan-step`,align:`center`,justify:`space-between`,wrap:``},{default:v(()=>[u(D(U),{align:`center`,wrap:``},{default:v(()=>[u(D(be),null,{default:v(()=>[b(s(n+1),1)]),_:2},1024),u(D(ue),{value:t.mode,"onUpdate:value":[e=>t.mode=e,a[7]||=e=>c(`dirty`)],options:ee,disabled:e.screenPlanSaving,size:`small`,style:{width:`180px`}},null,8,[`value`,`onUpdate:value`,`disabled`]),t.mode===`SCREEN_MODE_TEXT`?(_(),i(D(z),{key:0,value:t.text,"onUpdate:value":[e=>t.text=e,a[8]||=e=>c(`dirty`)],disabled:e.screenPlanSaving,size:`small`,placeholder:`Текст экрана`,style:{"min-width":`240px`}},null,8,[`value`,`onUpdate:value`,`disabled`])):r(``,!0),t.mode===`SCREEN_MODE_TIMER`?(_(),f(O,{key:1},[u(D(z),{value:t.timerLabel,"onUpdate:value":[e=>t.timerLabel=e,a[9]||=e=>c(`dirty`)],disabled:e.screenPlanSaving,size:`small`,placeholder:`Надпись таймера`},null,8,[`value`,`onUpdate:value`,`disabled`]),u(D(Re),{value:t.timerDurationSeconds,"onUpdate:value":[e=>t.timerDurationSeconds=e,a[10]||=e=>c(`dirty`)],min:1,max:86400,disabled:e.screenPlanSaving,size:`small`,placeholder:`Секунды`},null,8,[`value`,`onUpdate:value`,`disabled`])],64)):r(``,!0)]),_:2},1024),u(D(U),{class:`screen-plan-actions`},{default:v(()=>[u(D(I),{size:`small`,disabled:e.screenPlanSaving||n===0,onClick:e=>c(`moveStep`,n,-1)},{default:v(()=>[...a[24]||=[b(` ↑ `,-1)]]),_:1},8,[`disabled`,`onClick`]),u(D(I),{size:`small`,disabled:e.screenPlanSaving||n===e.screenPlanDraft.length-1,onClick:e=>c(`moveStep`,n,1)},{default:v(()=>[...a[25]||=[b(` ↓ `,-1)]]),_:1},8,[`disabled`,`onClick`]),u(D(I),{size:`small`,type:`error`,ghost:``,disabled:e.screenPlanSaving,onClick:e=>c(`removeStep`,n)},{default:v(()=>[...a[26]||=[b(` Удалить `,-1)]]),_:1},8,[`disabled`,`onClick`])]),_:2},1024)]),_:2},1024))),128)),u(D(U),null,{default:v(()=>[u(D(I),{size:`small`,disabled:e.screenPlanSaving,onClick:a[11]||=e=>c(`addStep`)},{default:v(()=>[...a[27]||=[b(` Добавить шаг `,-1)]]),_:1},8,[`disabled`]),e.screenPlanDraft.length?(_(),i(D(I),{key:0,size:`small`,disabled:e.screenPlanSaving,onClick:a[12]||=e=>c(`clearPlan`)},{default:v(()=>[...a[28]||=[b(` Удалить план `,-1)]]),_:1},8,[`disabled`])):r(``,!0)]),_:1})],64)):e.screenPlan?(_(!0),f(O,{key:2},p(e.screenPlan.steps||[],(t,n)=>(_(),i(D(U),{key:n,class:`screen-plan-step`,align:`center`,justify:`space-between`,wrap:``},{default:v(()=>[u(D(U),{align:`center`},{default:v(()=>[u(D(be),null,{default:v(()=>[b(s(n+1),1)]),_:2},1024),u(D(be),null,{default:v(()=>[b(s(ee.find(e=>e.value===t.mode)?.label)+` `,1),t.mode===`SCREEN_MODE_TEXT`?(_(),f(O,{key:0},[b(`: `+s(t.text),1)],64)):t.mode===`SCREEN_MODE_TIMER`?(_(),f(O,{key:1},[b(` : `+s(t.timerLabel)+` (`+s(t.timerDurationSeconds)+` с) `,1)],64)):r(``,!0)]),_:2},1024)]),_:2},1024),u(D(U),{class:`screen-plan-actions`},{default:v(()=>[u(D(I),{size:`small`,type:e.screenPlan.currentStep===n?`primary`:`default`,disabled:e.screenPlan.currentStep===n,onClick:e=>c(`setStep`,n)},{default:v(()=>[...a[29]||=[b(` Показать `,-1)]]),_:1},8,[`type`,`disabled`,`onClick`]),e.screenPlan.currentStep===n?(_(),f(O,{key:0},[t.mode===`SCREEN_MODE_TIMER`?(_(),f(O,{key:0},[u(D(I),{size:`small`,onClick:e=>c(`command`,t.mode,`SCREEN_COMMAND_TIMER_START`)},{default:v(()=>[...a[30]||=[b(` Старт `,-1)]]),_:1},8,[`onClick`]),u(D(I),{size:`small`,onClick:e=>c(`command`,t.mode,`SCREEN_COMMAND_TIMER_PAUSE`)},{default:v(()=>[...a[31]||=[b(` Пауза `,-1)]]),_:1},8,[`onClick`]),u(D(I),{size:`small`,onClick:e=>c(`command`,t.mode,`SCREEN_COMMAND_TIMER_RESUME`)},{default:v(()=>[...a[32]||=[b(` Продолжить `,-1)]]),_:1},8,[`onClick`]),u(D(I),{size:`small`,onClick:e=>c(`command`,t.mode,`SCREEN_COMMAND_TIMER_RESET`)},{default:v(()=>[...a[33]||=[b(` Сбросить `,-1)]]),_:1},8,[`onClick`])],64)):t.mode===`SCREEN_MODE_INTRO`||t.mode===`SCREEN_MODE_CONCLUSION`?(_(),f(O,{key:1},[u(D(I),{size:`small`,onClick:e=>c(`command`,t.mode,`SCREEN_COMMAND_PLAY`)},{default:v(()=>[...a[34]||=[b(` Запуск `,-1)]]),_:1},8,[`onClick`]),u(D(I),{size:`small`,onClick:e=>c(`command`,t.mode,`SCREEN_COMMAND_PAUSE`)},{default:v(()=>[...a[35]||=[b(` Пауза `,-1)]]),_:1},8,[`onClick`]),u(D(I),{size:`small`,onClick:e=>c(`command`,t.mode,`SCREEN_COMMAND_RESUME`)},{default:v(()=>[...a[36]||=[b(` Продолжить `,-1)]]),_:1},8,[`onClick`]),u(D(I),{size:`small`,onClick:e=>c(`command`,t.mode,`SCREEN_COMMAND_STOP`)},{default:v(()=>[...a[37]||=[b(` Стоп `,-1)]]),_:1},8,[`onClick`]),u(D(I),{size:`small`,onClick:e=>c(`command`,t.mode,`SCREEN_COMMAND_REPLAY`)},{default:v(()=>[...a[38]||=[b(` Повтор `,-1)]]),_:1},8,[`onClick`]),u(D(Re),{value:e.screenVolume,min:0,max:100,step:5,size:`small`,"onUpdate:value":a[13]||=e=>c(`update:screenVolume`,e)},null,8,[`value`]),u(D(I),{size:`small`,onClick:e=>c(`command`,t.mode,`SCREEN_COMMAND_VOLUME`)},{default:v(()=>[...a[39]||=[b(` Громкость `,-1)]]),_:1},8,[`onClick`]),u(D(Re),{value:e.screenPosition,min:0,step:5,size:`small`,"onUpdate:value":a[14]||=e=>c(`update:screenPosition`,e)},null,8,[`value`]),u(D(I),{size:`small`,onClick:e=>c(`command`,t.mode,`SCREEN_COMMAND_SEEK`)},{default:v(()=>[...a[40]||=[b(` Перемотать `,-1)]]),_:1},8,[`onClick`])],64)):r(``,!0)],64)):r(``,!0)]),_:2},1024)]),_:2},1024))),128)):r(``,!0)])]),_:1})]))}}),[[`__scopeId`,`data-v-ac34927b`]]),pt=Y(d({__name:`ScreenBindingModal`,props:t({binding:{type:Boolean}},{show:{type:Boolean,required:!0},showModifiers:{}}),emits:t([`scanned`],[`update:show`]),setup(e,{emit:t}){let n=y(e,`show`),c=t,l=k(``),d=k(),f=k(!1),p,m=0;function g(){cancelAnimationFrame(m),p?.getTracks().forEach(e=>e.stop()),p=void 0,f.value=!1}function ee(e){try{let t=new URL(e,window.location.origin),n=t.searchParams.get(`screenId`),r=t.searchParams.get(`accessToken`);return t.pathname!==`/screen`||!n||!r?void 0:{screenID:n,accessToken:r}}catch{return}}async function x(){let e=window.BarcodeDetector;if(!e||!navigator.mediaDevices?.getUserMedia){l.value=`Сканирование камерой не поддерживается в этом браузере.`;return}l.value=``;try{if(p=await navigator.mediaDevices.getUserMedia({video:{facingMode:`environment`}}),f.value=!0,await o(),!d.value)return;d.value.srcObject=p,await d.value.play();let t=new e,r=async()=>{if(!(!d.value||!p))try{let e=(await t.detect(d.value))[0]?.rawValue;if(e){let t=ee(e);if(t){g(),n.value=!1,c(`scanned`,t.screenID,t.accessToken);return}l.value=`Это не QR-код экрана.`}m=requestAnimationFrame(r)}catch{l.value=`Не удалось распознать QR-код.`,g()}};m=requestAnimationFrame(r)}catch{l.value=`Не удалось открыть камеру.`,g()}}function C(){g(),n.value=!1}return S(n,e=>{e?x():g()}),a(g),(t,a)=>(_(),i(D(oe),{show:n.value,"onUpdate:show":a[0]||=e=>n.value=e},{default:v(()=>[u(D(ae),{style:{width:`min(600px, 94vw)`},title:`Привязать экран`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":v(()=>[u(D(I),{onClick:C},{default:v(()=>[...a[1]||=[b(` x `,-1)]]),_:1})]),default:v(()=>[u(D(U),{vertical:``},{default:v(()=>[h(`video`,{ref_key:`scannerVideo`,ref:d,class:`screen-scanner-video`,muted:``,playsinline:``},null,512),l.value?(_(),i(D(H),{key:0,type:`error`},{default:v(()=>[b(s(l.value),1)]),_:1})):r(``,!0),!f.value&&!e.binding?(_(),i(D(I),{key:1,type:`primary`,onClick:x},{default:v(()=>[...a[2]||=[b(` Сканировать QR-код `,-1)]]),_:1})):r(``,!0),f.value?(_(),i(D(I),{key:2,onClick:g},{default:v(()=>[...a[3]||=[b(`Остановить камеру`,-1)]]),_:1})):r(``,!0),e.binding?(_(),i(D(I),{key:3,type:`primary`,loading:``},{default:v(()=>[...a[4]||=[b(`Привязка…`,-1)]]),_:1})):r(``,!0)]),_:1})]),_:1})]),_:1},8,[`show`]))}}),[[`__scopeId`,`data-v-5f530845`]]),mt={key:1,class:`screen-empty`},ht={class:`screen-status`},gt={key:0,class:`screen-error`},_t=Y(d({__name:`GameScreensPanel`,props:{screens:{},screenBinding:{type:Boolean}},emits:[`bind`,`setSound`,`unbind`],setup(e,{emit:t}){let n=e,a=t,o=k(!1);return(t,c)=>(_(),f(O,null,[u(Q,null,{default:v(()=>[u(D(W),{align:`center`,justify:`space-between`,class:`screen-header`},{default:v(()=>[c[4]||=h(`p`,{class:`screens-title`},`Экраны`,-1),u(D(I),{size:`small`,onClick:c[0]||=e=>o.value=!0},{default:v(()=>[...c[3]||=[b(` Привязать экран `,-1)]]),_:1})]),_:1}),e.screens.some(e=>e.status===`disconnected`)?(_(),i(D(H),{key:0,type:`warning`,title:`Проверьте подключение экрана`},{default:v(()=>[...c[5]||=[b(` Один или несколько экранов не выходят на связь более минуты. `,-1)]]),_:1})):r(``,!0),e.screens.length===0?(_(),f(`p`,mt,`К игре пока не привязаны экраны.`)):(_(!0),f(O,{key:2},p(e.screens,e=>(_(),f(`div`,{key:e.ID,class:`screen-row`},[h(`div`,null,[h(`div`,null,`Экран `+s(e.ID),1),h(`div`,ht,s(e.status===`connected`?`Онлайн`:`Оффлайн`),1),e.error?(_(),f(`div`,gt,s(e.error),1)):r(``,!0)]),u(D(W),{justify:`end`},{default:v(()=>[e.soundEnabled?(_(),i(D(V),{key:0,type:`success`},{default:v(()=>[...c[6]||=[b(`Со звуком`,-1)]]),_:1})):(_(),i(D(I),{key:1,size:`small`,onClick:t=>a(`setSound`,e)},{default:v(()=>[...c[7]||=[b(`Назначить звук`,-1)]]),_:1},8,[`onClick`])),u(D(I),{size:`small`,type:`error`,ghost:``,onClick:t=>a(`unbind`,e)},{default:v(()=>[...c[8]||=[b(` Отвязать `,-1)]]),_:1},8,[`onClick`])]),_:2},1024)]))),128))]),_:1}),u(pt,{show:o.value,"onUpdate:show":c[1]||=e=>o.value=e,binding:n.screenBinding,onScanned:c[2]||=(e,t)=>a(`bind`,e,t)},null,8,[`show`,`binding`])],64))}}),[[`__scopeId`,`data-v-043f3f37`]]),vt={class:`team-content-block`},yt={class:`title-block`},bt={class:`team-name-block`},xt={key:0},St={key:1},Ct={key:0},wt={key:0},Tt={key:1},Et={key:2},Dt={key:3},Ot={key:4},kt=Y(d({__name:`GameTeamsPanel`,props:{teams:{},participationOptions:{}},emits:[`add`,`open-qr`,`preview`,`delete`,`give-application`],setup(e,{emit:t}){let n=t;return(t,a)=>(_(),f(O,null,[u(Q,{class:`team-block-hover`,onClick:a[0]||=e=>n(`add`)},{default:v(()=>[...a[1]||=[h(`p`,{class:`place-image-plus`},`+`,-1)]]),_:1}),(_(!0),f(O,null,p(e.teams,t=>(_(),i(Q,{key:t.ID},{default:v(()=>[h(`div`,vt,[u(D(W),{justify:`space-between`},{default:v(()=>[h(`div`,yt,[h(`span`,bt,[b(s(t.name)+` `,1),t.captainEmail?(_(),f(`small`,xt,` — `+s(t.captainEmail),1)):r(``,!0),t.participantsCount?(_(),f(`small`,St,` · Участников: `+s(t.participantsCount),1)):r(``,!0)]),t.captainEmail||t.participationStatus!==`pending`?(_(),f(`div`,Ct,[b(s(e.participationOptions.find(e=>e.value===t.participationStatus)?.label),1),t.participationSource===`automatic`?(_(),f(`span`,wt,` · автоматически`)):r(``,!0)])):r(``,!0),t.captainEmail?t.participationEmailError?(_(),f(`div`,Et,` Ошибка отправки: `+s(t.participationEmailError),1)):t.participationEmailSent?(_(),f(`div`,Dt,`Письмо отправлено`)):r(``,!0):(_(),f(`div`,Tt,`Почта капитана не указана`)),t.participationStatus===`cancelled`?r(``,!0):(_(),f(`div`,Ot,` Поездки: `+s(t.actionsCount),1))]),u(D(W),{justify:`end`},{default:v(()=>[t.participationStatus===`cancelled`?r(``,!0):(_(),i(D(I),{key:0,onClick:e=>n(`open-qr`,t)},{default:v(()=>[...a[2]||=[b(`QR`,-1)]]),_:1},8,[`onClick`])),t.participationStatus===`cancelled`?r(``,!0):(_(),i(D(I),{key:1,onClick:e=>n(`preview`,t.ID,t.password)},{default:v(()=>[...a[3]||=[b(`Подсмотреть игру`,-1)]]),_:1},8,[`onClick`])),u(D(I),{type:`error`,ghost:``,onClick:e=>n(`delete`,t)},{default:v(()=>[...a[4]||=[b(`Удалить`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)]),_:2},1024),(_(!0),f(O,null,p(t.applications,e=>(_(),i(D(I),{key:e.name,class:`link-button`,onClick:r=>n(`give-application`,t,e)},{default:v(()=>[b(` Выдать: `+s(e.name),1)]),_:2},1032,[`onClick`]))),128))])]),_:2},1024))),128))],64))}}),[[`__scopeId`,`data-v-561486cb`]]),At={class:`center-block-custom`},jt={class:`width1200`},Mt={class:`game-tab-content`},Nt=[`href`],Pt={class:`game-tab-content`},Ft={class:`game-tab-content`},It={class:`game-tab-content`},Lt={class:`game-tab-content`},Rt={key:0,class:`answers-empty`},zt={class:`answers-question-title`},Bt={class:`answers-question-answer`},Vt={class:`correct-answer`},Ht={class:`answers-team-name`},Ut={class:`answers-team-answer`},Wt={key:0,class:`give-application-image-block`},Gt=[`src`],Kt=[`src`],qt=[`href`],Jt={class:`qr-block`},Yt={key:0,class:`answers-empty`},Xt=Y(d({__name:`GamePage`,setup(e){let t=he(),n=we(),a=k(!1),o=T(),c=ee(),l=c.params.id;function d(e){return[`game`,`answers`,`teams`,`screens`,`screens-map`].includes(e)}let m=typeof c.query.tab==`string`?c.query.tab:``,g=k(d(m)?m:`screens-map`);async function y(e){d(e)&&(g.value=e,await o.replace({query:{...c.query,tab:e}}),e===`answers`&&await sn())}let x=ge(),S=k({name:``,description:``,format:`online`,location:``}),C=k(!1),w=k(!1),A=k(!1),j=k(!1),te=k(!1),M=k(``),N=k(``),P=k(1),ne=k(``),re=k(!1),ie=k(``),se=k(``),F=k(1),de=k([]),L=k(!1),fe=k(!1),R=k({ID:void 0,name:void 0,description:void 0,startAt:void 0,status:void 0,format:void 0,location:void 0,scenario:void 0,teams:void 0}),pe=[{label:`Ожидает ответа`,value:`pending`},{label:`Подтверждено`,value:`confirmed`},{label:`Отменено`,value:`cancelled`}],me=E(()=>(R.value.teams||[]).filter(e=>e.participationStatus!==`cancelled`).length),B=k([]),H=k(),G=k([]),K=k(!1),q=k(!1),J=k(`use`),xe=0,Se=k([]),Y=k([]),Ae=k([]),je=k(!1),Me=k(100),Ne=k(0);async function X(e){let n=await t.GetGame({ID:e});R.value=n.game,C.value||=(S.value={name:R.value.name||``,description:R.value.description||``,format:R.value.format||`online`,location:R.value.location||``},!0),R.value.teams=R.value.teams?.sort((e,t)=>{let n=0;(e.applications?.length||0)>0&&(n=1);let r=0;if((t.applications?.length||0)>0&&(r=1),n>r)return-1;if(na?1:ie.status===`connected`)||B.value[0])?.mode===`SCREEN_MODE_RESULTS`){let e=await t.GetGameResults({gameID:Number(l)});Se.value=e.questions||[],Y.value=e.teams||[]}else Se.value=[],Y.value=[]}Z();function Pe(){return J.value===`edit`}async function Fe(){if(console.log(`getScreenPlan`),Pe()||K.value)return;console.log(`no skip getScreenPlan`);let e=++xe,n=await t.GetScreenPlan({gameID:Number(l)});e!==xe||Pe()||K.value||(H.value=n.plan,G.value=n.plan?.steps?.map(e=>({...e}))||[])}Fe();function Ie(){G.value.push({mode:`SCREEN_MODE_TEXT`,text:`Новый экран`,timerLabel:`Перерыв`,timerDurationSeconds:600}),K.value=!0,J.value=`edit`}function Le(){H.value&&(G.value=H.value.steps?.map(e=>({...e}))||[],J.value=`edit`)}function ze(){K.value&&!window.confirm(`Отменить несохранённые изменения плана?`)||(G.value=H.value?.steps?.map(e=>({...e}))||[],K.value=!1,J.value=`use`)}function Ve(e){G.value.splice(e,1),K.value=!0}function Ue(e,t){let n=e+t;if(n<0||n>=G.value.length)return;let[r]=G.value.splice(e,1);G.value.splice(n,0,r),K.value=!0}function Ge(){K.value=!0}function qe(){G.value=[],Ge()}async function Ye(){if(!q.value){xe+=1,q.value=!0;try{let e=Math.min(H.value?.currentStep||0,Math.max(0,G.value.length-1)),n=await t.SaveScreenPlan({gameID:Number(l),steps:G.value,currentStep:e});H.value=n.plan,G.value=n.plan?.steps?.map(e=>({...e}))||[],K.value=!1,J.value=`use`,x.success(n.plan?`План экранов сохранён`:`План экранов удалён`)}catch(e){x.error(e instanceof Error?e.message:`Не удалось сохранить план экранов`)}finally{q.value=!1}}}async function Xe(e){if(!(K.value||!H.value))try{let n=await t.SetScreenPlanStep({gameID:Number(l),currentStep:e});H.value=n.plan,await Z()}catch(e){x.error(e instanceof Error?e.message:`Не удалось перейти на шаг плана`)}}async function Ze(e,n){if(!(K.value||e!==`SCREEN_MODE_TIMER`&&e!==`SCREEN_MODE_INTRO`&&e!==`SCREEN_MODE_CONCLUSION`))try{await t.SendScreenCommand({gameID:Number(l),command:n,positionMs:Math.max(0,Math.round(Ne.value*1e3)),volume:Math.max(0,Math.min(100,Math.round(Me.value)))}),await Z()}catch(e){x.error(e instanceof Error?e.message:`Не удалось управлять экраном`)}}async function Qe(e,n){if(!fe.value){fe.value=!0;try{await t.BindScreen({screenID:e,accessToken:n,gameID:Number(l)}),x.success(`Экран привязан к игре`),await Z()}catch(e){x.error(e instanceof Error?e.message:`Не удалось привязать экран`)}finally{fe.value=!1}}}async function $e(){if(je.value)return;let e=await t.GetGameMap({gameID:Number(l)});Ae.value=e.items||[]}$e();async function et(e,n=e.hidden){je.value=!0;try{await t.UpdateGameMapItem({gameID:Number(l),kind:e.kind,itemID:e.itemID,x:Math.round(e.x||0),y:Math.round(e.y||0),hidden:n})}finally{je.value=!1}}async function tt(e,t=e.hidden){await et(e,t),await $e()}async function nt(e){await t.SetScreenSound({screenID:e.ID,soundEnabled:!0}),await Z()}async function rt(e){await t.UnbindScreen({screenID:e.ID}),await Z()}async function it(e,t,n=!1){let r=`/team-story/`+e+`?password=`+t;if(n){window.open(r,`_blank`);return}o.push(r)}async function at(){if(!(a.value||!R.value.teams?.length)){a.value=!0;try{let{blob:e,filename:t}=await n.downloadTeamQR(R.value.ID),r=URL.createObjectURL(e),i=document.createElement(`a`);i.href=r,i.download=t,document.body.appendChild(i),i.click(),i.remove(),setTimeout(()=>URL.revokeObjectURL(r),1e3)}catch(e){x.error(e instanceof Error?e.message:`Не удалось скачать QR команд`)}finally{a.value=!1}}}function ot(){o.push(`/games/`+l+`/results`)}async function st(){await t.UpdateGame({ID:R.value.ID,name:S.value.name,description:S.value.description,format:S.value.format,location:S.value.location.trim(),startAt:R.value.startAt,scenarioID:R.value.scenario?.ID}),await X(R.value.ID)}let ct=k({ID:0,name:``,status:``,password:``,actionsCount:0,applications:[],captainEmail:void 0,participantsCount:void 0,participationStatus:void 0,participationSource:void 0,participationEmailError:void 0,participationEmailSent:void 0}),lt=k(``),ut=k({ID:0,name:``,status:``,password:``,actionsCount:0,applications:[],captainEmail:void 0,participantsCount:void 0,participationStatus:void 0,participationSource:void 0,participationEmailError:void 0,participationEmailSent:void 0}),$=k({name:``,image:``,file_type:``}),dt=window.location.href;function pt(e,t){ct.value=e,$.value=t,w.value=!0}async function mt(){if(P.value<1||P.value>8){x.error(`Укажите от 1 до 8 игроков`);return}await t.AddTeam({gameID:R.value.ID,name:M.value,captainEmail:N.value.trim(),participantsCount:P.value}),await X(R.value.ID),A.value=!1,N.value=``,P.value=1}async function ht(){await t.GiveTeamApplications({ID:ct.value.ID,name:$.value.name}),await X(R.value.ID),w.value=!1}async function gt(e){ut.value=e,j.value=!0}async function vt(){await t.DeleteTeam({ID:ut.value.ID}),await X(R.value.ID),j.value=!1}async function yt(){await t.DeleteGame({ID:R.value.ID}),x.success(`Игра удалена`),o.push(`/games`)}function bt(e,t){let n=new URL(`/team-story/${e}`,window.location.origin);return n.searchParams.set(`password`,t),n.toString()}function xt(e){St(bt(e.ID,e.password),`Подсмотреть игру`)}async function St(e,t){ie.value=e,se.value=t,re.value=!0}async function Ct(){if(!(L.value||!R.value.ID)){L.value=!0;try{let e=await t.IssueGameTickets({gameID:R.value.ID,count:F.value});de.value=e.tickets||[],x.success(`Выпущено билетов: ${de.value.length}`)}catch(e){x.error(e instanceof Error?e.message:`Не удалось выпустить билеты`)}finally{L.value=!1}}}De(()=>{X(Number(l)),Z(),Fe(),$e()},2e3);async function wt(){await t.ResetGame({ID:R.value.ID}),await X(R.value.ID)}async function Tt(){await t.StartGame({ID:R.value.ID}),await X(R.value.ID)}async function Et(){await t.PauseGame({ID:R.value.ID}),await X(R.value.ID)}async function Dt(){await t.PlayGame({ID:R.value.ID}),await X(R.value.ID)}async function Ot(){await t.FinishGame({ID:R.value.ID}),await X(R.value.ID)}let Xt=k(!1),Zt=k([]),Qt=k(0),$t=k(0),en=k([]),tn=k([]),nn=k({});function rn(e,t){return(e??``)+`:`+(t??``)}function an(e,t){return(e.answers||[]).find(e=>e.questionCode==t)?.answer||``}function on(e,t){nn.value[e]=t===null?void 0:t}async function sn(){let e=await t.GetGameAnswers({gameID:Number(l)});en.value=e.questions||[],tn.value=e.teams||[];let n={};for(let e of tn.value)for(let t of e.answers||[])n[rn(e.team?.ID,t.questionCode)]=t.score;nn.value=n}async function cn(){Xt.value=!0;let e=await t.GetGameReviewsForModeration({gameID:Number(l)});Zt.value=e.reviews||[],Qt.value=e.averageRating||0,$t.value=e.reviewsCount||0}async function ln(e,n){await t.ModerateGameReview({ID:e.ID,status:n}),await cn()}async function un(){for(let e of en.value)for(let n of tn.value){let r=nn.value[rn(n.team?.ID,e.code)];await t.SetTeamAnswerScore({ID:n.team?.ID,questionCode:e.code,score:r??void 0})}x.success(`Баллы сохранены`),await sn()}g.value===`answers`&&sn();function dn(){let e=new Date;return new Date(e.getTime()-e.getTimezoneOffset()*6e4)}function fn(e,t){if(e==``)return`Игра ещё не началась`;let n=Oe(e),r=dn();t!=``&&(r=Oe(t));let i=r.getTime()-n.getTime();if(i<0)return`Игра ещё не началась`;let a=Math.floor(i/1e3),o=Math.floor(a/60),s=Math.floor(o/60),c=Math.floor(s/24),l=Math.floor(c/30),u=Math.floor(c/365);return u>0?`${u}г ${c%365}д`:l>0?`${l}мес ${c%30}д`:c>0?`${c}д ${s%24}ч`:s>0?`${s}ч ${o%60}м`:o>0?`${o}м ${a%60}с`:`${a}с`}let pn=k(``);return De(()=>{pn.value=fn(R.value.startedAt||``,R.value.endedAt||``)},1e3),(e,t)=>(_(),f(O,null,[h(`div`,At,[h(`div`,jt,[u(D(le),{value:g.value,type:`line`,animated:``,"onUpdate:value":y},{default:v(()=>[u(D(ce),{name:`game`,tab:`Настройки`},{default:v(()=>[h(`div`,Mt,[u(Q,null,{default:v(()=>[u(D(W),{justify:`end`},{default:v(()=>[u(D(I),{quaternary:``,onClick:t[0]||=e=>St(D(dt),`Админка`)},{default:v(()=>[...t[42]||=[b(`QR`,-1)]]),_:1}),R.value.status==`finish`?(_(),i(D(I),{key:0,quaternary:``,onClick:t[1]||=e=>ot()},{default:v(()=>[u(D(_e),{class:`settings-icon`},{default:v(()=>[u(D(Je))]),_:1}),t[43]||=b(` Итоги `,-1)]),_:1})):r(``,!0),(R.value.teams?.length||0)==0?(_(),i(D(I),{key:1,type:`error`,quaternary:``,onClick:t[2]||=e=>te.value=!0},{default:v(()=>[...t[44]||=[b(` Удалить игру `,-1)]]),_:1})):r(``,!0)]),_:1})]),_:1}),u(Q,null,{default:v(()=>[t[50]||=h(`p`,{class:`screens-title`},`Настройки игры`,-1),u(D(U),{vertical:``},{default:v(()=>[t[45]||=h(`p`,null,`Название`,-1),u(D(z),{value:S.value.name,"onUpdate:value":t[3]||=e=>S.value.name=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`]),t[46]||=h(`p`,{class:`settings-header`},`Формат игры`,-1),u(D(ue),{value:S.value.format,"onUpdate:value":t[4]||=e=>S.value.format=e,options:[{label:`Online`,value:`online`},{label:`Offline`,value:`offline`}],"aria-label":`Формат игры`},null,8,[`value`]),t[47]||=h(`p`,{class:`settings-header`},`Описание`,-1),u(D(z),{value:S.value.description,"onUpdate:value":t[5]||=e=>S.value.description=e,type:`textarea`,placeholder:`Убийство пастуха...`},null,8,[`value`]),t[48]||=h(`p`,{class:`settings-header`},`Место проведения`,-1),u(D(z),{value:S.value.location,"onUpdate:value":t[6]||=e=>S.value.location=e,type:`text`,placeholder:`Оставьте пустым для онлайн-игры`},null,8,[`value`])]),_:1}),u(D(W),{justify:`end`,class:`settings-actions`},{default:v(()=>[u(D(I),{onClick:t[7]||=e=>st()},{default:v(()=>[...t[49]||=[b(`Сохранить изменения`,-1)]]),_:1})]),_:1})]),_:1}),u(Q,null,{default:v(()=>[t[53]||=h(`p`,{class:`screens-title`},`Выпуск билетов`,-1),u(D(U),{vertical:``},{default:v(()=>[u(D(Re),{value:F.value,"onUpdate:value":t[8]||=e=>F.value=e,min:1,max:100},null,8,[`value`]),(_(!0),f(O,null,p(de.value,e=>(_(),f(`div`,{key:e.ID,class:`issued-ticket`},[h(`div`,null,`Билет №`+s(e.ID),1),h(`a`,{href:e.URL,target:`_blank`,rel:`noreferrer`},`Открыть страницу билета`,8,Nt),u(D(I),{size:`small`,onClick:t=>St(e.URL,`Билет №${e.ID}`)},{default:v(()=>[...t[51]||=[b(` Показать QR `,-1)]]),_:1},8,[`onClick`])]))),128))]),_:1}),u(D(W),{justify:`end`,class:`settings-actions`},{default:v(()=>[u(D(I),{loading:L.value,disabled:L.value,onClick:t[9]||=e=>Ct()},{default:v(()=>[...t[52]||=[b(` Выпустить `,-1)]]),_:1},8,[`loading`,`disabled`])]),_:1})]),_:1})])]),_:1}),u(D(ce),{name:`teams`,tab:`Команды`},{default:v(()=>[h(`div`,Pt,[u(D(W),{justify:`space-between`,align:`center`},{default:v(()=>[u(D(V),{bordered:!1,type:`info`},{default:v(()=>[b(` Участвуют команд: `+s(me.value),1)]),_:1}),me.value?(_(),i(D(I),{key:0,quaternary:``,loading:a.value,disabled:a.value,onClick:t[10]||=e=>at()},{default:v(()=>[...t[54]||=[b(` QR команд `,-1)]]),_:1},8,[`loading`,`disabled`])):r(``,!0)]),_:1}),u(kt,{teams:R.value.teams||[],"participation-options":pe,onAdd:t[11]||=e=>A.value=!0,onOpenQr:xt,onPreview:t[12]||=(e,t)=>it(e,t,!0),onDelete:gt,onGiveApplication:pt},null,8,[`teams`])])]),_:1}),u(D(ce),{name:`screens`,tab:`Экраны`},{default:v(()=>[h(`div`,Ft,[u(_t,{screens:B.value,"screen-binding":fe.value,onBind:Qe,onSetSound:nt,onUnbind:rt},null,8,[`screens`,`screen-binding`])])]),_:1}),u(D(ce),{name:`screens-map`,tab:`Игра`},{default:v(()=>[h(`div`,It,[u(Q,null,{default:v(()=>[u(D(W),{justify:`space-between`},{default:v(()=>[u(D(U),null,{default:v(()=>[u(D(V),{type:`info`},{default:v(()=>[b(s(pn.value),1)]),_:1}),D(ke)(R.value.startAt)?(_(),i(D(V),{key:0,type:`info`},{default:v(()=>[b(` Начало: `+s(D(ke)(R.value.startAt)),1)]),_:1})):r(``,!0)]),_:1}),u(D(W),{justify:`end`},{default:v(()=>[R.value.status==`draft`?r(``,!0):(_(),i(D(I),{key:0,type:`info`,dashed:``,onClick:t[13]||=e=>wt()},{default:v(()=>[u(D(_e),null,{default:v(()=>[u(D(Ke))]),_:1})]),_:1})),R.value.status==`draft`?(_(),i(D(I),{key:1,type:`info`,dashed:``,onClick:t[14]||=e=>Tt()},{default:v(()=>[u(D(_e),null,{default:v(()=>[u(D(We))]),_:1})]),_:1})):r(``,!0),R.value.status==`pause`?(_(),i(D(I),{key:2,type:`info`,dashed:``,onClick:t[15]||=e=>Dt()},{default:v(()=>[u(D(_e),null,{default:v(()=>[u(D(We))]),_:1})]),_:1})):r(``,!0),R.value.status==`run`?(_(),i(D(I),{key:3,type:`info`,dashed:``,onClick:t[16]||=e=>Et()},{default:v(()=>[u(D(_e),null,{default:v(()=>[u(D(He))]),_:1})]),_:1})):r(``,!0),R.value.status==`finish`?r(``,!0):(_(),i(D(I),{key:4,type:`info`,dashed:``,onClick:t[17]||=e=>Ot()},{default:v(()=>[u(D(_e),null,{default:v(()=>[u(D(Be))]),_:1})]),_:1}))]),_:1})]),_:1})]),_:1}),u(ft,{"map-items":Ae.value,teams:R.value.teams||[],screens:B.value,"preview-questions":Se.value,"preview-teams":Y.value,"screen-plan":H.value,"screen-plan-draft":G.value,"screen-plan-dirty":K.value,"screen-plan-saving":q.value,"screen-plan-mode":J.value,"screen-volume":Me.value,"screen-position":Ne.value,onSaveItem:tt,onGiveApplication:pt,onAddStep:Ie,onEdit:Le,onCancel:ze,onRemoveStep:Ve,onMoveStep:Ue,onDirty:Ge,onClearPlan:qe,onSave:Ye,onSetStep:Xe,onCommand:Ze,"onUpdate:screenVolume":t[18]||=e=>Me.value=e??0,"onUpdate:screenPosition":t[19]||=e=>Ne.value=e??0},null,8,[`map-items`,`teams`,`screens`,`preview-questions`,`preview-teams`,`screen-plan`,`screen-plan-draft`,`screen-plan-dirty`,`screen-plan-saving`,`screen-plan-mode`,`screen-volume`,`screen-position`])])]),_:1}),u(D(ce),{name:`answers`,tab:`Проверка ответов`},{default:v(()=>[h(`div`,Lt,[en.value.length==0?(_(),f(`div`,Rt,` Вопросы дела не заданы или команды ещё не отвечали. `)):r(``,!0),(_(!0),f(O,null,p(en.value,e=>(_(),i(Q,{key:e.code},{default:v(()=>[h(`p`,zt,s(e.code)+`: `+s(e.text),1),h(`p`,Bt,[t[55]||=b(` Правильный ответ:`,-1),t[56]||=h(`br`,null,null,-1),h(`span`,Vt,s(e.answer||`—`),1)]),(_(!0),f(O,null,p(tn.value,t=>(_(),f(`div`,{key:t.team?.ID,class:`answers-team-row`},[h(`div`,Ht,s(t.team?.name),1),h(`div`,Ut,s(an(t,e.code)||`—`),1),u(D(Re),{value:nn.value[rn(t.team?.ID,e.code)],"onUpdate:value":n=>on(rn(t.team?.ID,e.code),n),placeholder:`Балл`,class:`answers-score-input`},null,8,[`value`,`onUpdate:value`])]))),128))]),_:2},1024))),128)),u(D(W),{justify:`end`},{default:v(()=>[u(D(I),{onClick:t[20]||=e=>un(),disabled:en.value.length==0},{default:v(()=>[...t[57]||=[b(` Сохранить баллы `,-1)]]),_:1},8,[`disabled`])]),_:1})])]),_:1})]),_:1},8,[`value`])])]),u(D(oe),{show:w.value,"onUpdate:show":t[23]||=e=>w.value=e},{default:v(()=>[u(D(ae),{style:{width:`600px`},title:`Настройки игры`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":v(()=>[u(D(I),{onClick:t[21]||=e=>w.value=!1},{default:v(()=>[...t[58]||=[b(` x `,-1)]]),_:1})]),footer:v(()=>[u(D(W),{justify:`end`},{default:v(()=>[u(D(I),{onClick:t[22]||=e=>ht(),ghost:``},{default:v(()=>[...t[61]||=[b(` Выдать `,-1)]]),_:1})]),_:1})]),default:v(()=>[u(D(U),{vertical:``},{default:v(()=>[t[59]||=h(`p`,null,`Команда`,-1),h(`h3`,null,s(ct.value.name),1),t[60]||=h(`p`,null,`Улика`,-1),h(`h3`,null,s($.value.name),1),D(Te)($.value)==`image`&&$.value.image?(_(),f(`div`,Wt,[h(`img`,{src:D(Ee)($.value.image),class:`give-application-image`},null,8,Gt)])):D(Te)($.value)==`audio`&&$.value.image?(_(),f(`audio`,{key:1,src:D(Ee)($.value.image),controls:``,preload:`none`,class:`give-application-audio`},null,8,Kt)):D(Te)($.value)==`pdf`&&$.value.image?(_(),f(`a`,{key:2,href:D(Ee)($.value.image),target:`_blank`,rel:`noopener`,class:`give-application-pdf-link`},` PDF `,8,qt)):r(``,!0)]),_:1})]),_:1})]),_:1},8,[`show`]),u(D(oe),{show:A.value,"onUpdate:show":t[29]||=e=>A.value=e},{default:v(()=>[u(D(ae),{style:{width:`600px`},title:`Создание команды`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":v(()=>[u(D(I),{onClick:t[24]||=e=>A.value=!1},{default:v(()=>[...t[62]||=[b(` x `,-1)]]),_:1})]),footer:v(()=>[u(D(W),{justify:`end`},{default:v(()=>[u(D(I),{onClick:t[28]||=e=>mt(),disabled:M.value.length==0},{default:v(()=>[...t[63]||=[b(` Создать `,-1)]]),_:1},8,[`disabled`])]),_:1})]),default:v(()=>[u(D(U),{vertical:``},{default:v(()=>[u(D(z),{value:M.value,"onUpdate:value":t[25]||=e=>M.value=e,type:`text`,placeholder:`Три дебила`},null,8,[`value`]),u(D(z),{value:N.value,"onUpdate:value":t[26]||=e=>N.value=e,"input-props":{type:`email`,autocomplete:`email`},placeholder:`Почта капитана (необязательно)`,"aria-label":`Почта капитана (необязательно)`},null,8,[`value`]),u(D(Re),{value:P.value,"onUpdate:value":t[27]||=e=>P.value=e,min:1,max:8,precision:0,placeholder:`Количество игроков`,"aria-label":`Количество игроков`},null,8,[`value`])]),_:1})]),_:1})]),_:1},8,[`show`]),u(D(oe),{show:j.value,"onUpdate:show":t[33]||=e=>j.value=e},{default:v(()=>[u(D(ae),{style:{width:`600px`},title:`Удаление команды`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":v(()=>[u(D(I),{onClick:t[30]||=e=>j.value=!1},{default:v(()=>[...t[64]||=[b(` x `,-1)]]),_:1})]),footer:v(()=>[u(D(W),{justify:`end`},{default:v(()=>[u(D(I),{onClick:t[32]||=e=>vt(),disabled:lt.value!=ut.value.name},{default:v(()=>[...t[67]||=[b(` Удалить `,-1)]]),_:1},8,[`disabled`])]),_:1})]),default:v(()=>[u(D(U),{vertical:``},{default:v(()=>[h(`p`,null,[t[65]||=b(` Введите название команды `,-1),u(D(be),{class:`name-text`,strong:``},{default:v(()=>[b(s(ut.value.name),1)]),_:1}),t[66]||=b(` чтобы удалить его `,-1)]),u(D(z),{value:lt.value,"onUpdate:value":t[31]||=e=>lt.value=e,type:`text`,placeholder:`Три дебила`},null,8,[`value`])]),_:1})]),_:1})]),_:1},8,[`show`]),u(D(oe),{show:te.value,"onUpdate:show":t[37]||=e=>te.value=e},{default:v(()=>[u(D(ae),{style:{width:`600px`},title:`Удаление игры`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":v(()=>[u(D(I),{onClick:t[34]||=e=>te.value=!1},{default:v(()=>[...t[68]||=[b(` x `,-1)]]),_:1})]),footer:v(()=>[u(D(W),{justify:`end`},{default:v(()=>[u(D(I),{onClick:t[36]||=e=>yt(),disabled:ne.value!=R.value.name},{default:v(()=>[...t[71]||=[b(` Удалить `,-1)]]),_:1},8,[`disabled`])]),_:1})]),default:v(()=>[u(D(U),{vertical:``},{default:v(()=>[h(`p`,null,[t[69]||=b(` Введите название игры `,-1),u(D(be),{class:`name-text`,strong:``},{default:v(()=>[b(s(R.value.name),1)]),_:1}),t[70]||=b(` чтобы удалить её `,-1)]),u(D(z),{value:ne.value,"onUpdate:value":t[35]||=e=>ne.value=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`])]),_:1})]),_:1})]),_:1},8,[`show`]),u(D(oe),{show:re.value,"onUpdate:show":t[39]||=e=>re.value=e},{default:v(()=>[u(D(ae),{style:{width:`600px`},title:se.value,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":v(()=>[u(D(I),{onClick:t[38]||=e=>re.value=!1},{default:v(()=>[...t[72]||=[b(` x `,-1)]]),_:1})]),footer:v(()=>[...t[73]||=[]]),default:v(()=>[u(D(U),{vertical:``},{default:v(()=>[h(`div`,Jt,[u(D(ye),{value:ie.value,size:300,padding:0},null,8,[`value`])])]),_:1})]),_:1},8,[`title`])]),_:1},8,[`show`]),u(D(oe),{show:Xt.value,"onUpdate:show":t[41]||=e=>Xt.value=e},{default:v(()=>[u(D(ae),{style:{width:`min(94vw, 800px)`},title:`Отзывы игры`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`,"content-style":{maxHeight:`70vh`,overflow:`auto`}},{"header-extra":v(()=>[u(D(I),{onClick:t[40]||=e=>Xt.value=!1},{default:v(()=>[...t[74]||=[b(` x `,-1)]]),_:1})]),default:v(()=>[u(D(W),{align:`center`,class:`reviews-summary`},{default:v(()=>[u(D(ve),{value:Qt.value,readonly:``,"allow-half":``},null,8,[`value`]),h(`span`,null,s($t.value?`${Qt.value.toFixed(1)} · ${$t.value}`:`Пока нет отзывов`),1)]),_:1}),Zt.value.length==0?(_(),f(`div`,Yt,`Отзывов пока нет.`)):r(``,!0),(_(!0),f(O,null,p(Zt.value,e=>(_(),f(`div`,{key:e.ID,class:`review-row`},[u(D(W),{justify:`space-between`,align:`center`},{default:v(()=>[h(`strong`,null,s(e.teamName),1),u(D(V),null,{default:v(()=>[b(s(e.status),1)]),_:2},1024)]),_:2},1024),u(D(ve),{value:e.rating,readonly:``,size:`small`},null,8,[`value`]),h(`div`,null,`Сложность: `+s([``,`лёгкая`,`средняя`,`тяжёлая`][e.difficulty||0]),1),h(`p`,null,s(e.text),1),e.status==`pending`?(_(),i(D(W),{key:0,justify:`end`},{default:v(()=>[u(D(I),{type:`success`,onClick:t=>ln(e,`approved`)},{default:v(()=>[...t[75]||=[b(`Одобрить`,-1)]]),_:1},8,[`onClick`]),u(D(I),{type:`error`,ghost:``,onClick:t=>ln(e,`rejected`)},{default:v(()=>[...t[76]||=[b(`Отклонить`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):e.status==`approved`?(_(),i(D(W),{key:1,justify:`end`},{default:v(()=>[u(D(I),{type:`error`,ghost:``,onClick:t=>ln(e,`hidden`)},{default:v(()=>[...t[77]||=[b(`Скрыть`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):r(``,!0)]))),128))]),_:1})]),_:1},8,[`show`]),u(Ce,{active:`games`})],64))}}),[[`__scopeId`,`data-v-5c49f067`]]),Zt=d({__name:`GameView`,setup(e){return(e,t)=>(_(),i(Xt))}});export{Zt as default}; \ No newline at end of file diff --git a/frontend/dist/assets/GameView-DehtTlnF.css b/frontend/dist/assets/GameView-DehtTlnF.css deleted file mode 100644 index 7a93388..0000000 --- a/frontend/dist/assets/GameView-DehtTlnF.css +++ /dev/null @@ -1 +0,0 @@ -.screen-preview[data-v-d5134fb8]{aspect-ratio:16/9;color:#eee;text-align:center;background-color:#111;background-position:50%;background-size:cover;justify-content:center;align-items:center;width:100%;display:flex;position:relative;overflow:hidden}.timer-preview[data-v-d5134fb8]{max-width:95%}.timer-preview h2[data-v-d5134fb8],.preview-message[data-v-d5134fb8],.preview-results h2[data-v-d5134fb8]{margin:0 0 10px;font-size:clamp(16px,3vw,32px)}.timer-preview strong[data-v-d5134fb8]{font-variant-numeric:tabular-nums;font-size:clamp(48px,10vw,120px);line-height:.9;display:block}.screen-preview audio[data-v-d5134fb8],.preview-video[data-v-d5134fb8]{pointer-events:none;width:90%;max-width:90%}.preview-video[data-v-d5134fb8]{object-fit:contain;height:100%}.preview-cover[data-v-d5134fb8]{object-fit:contain;width:100%;height:100%}.preview-results[data-v-d5134fb8]{width:100%;max-width:96%;max-height:90%;overflow:hidden}.preview-results table[data-v-d5134fb8]{border-collapse:collapse;width:100%;font-size:10px}.preview-results th[data-v-d5134fb8],.preview-results td[data-v-d5134fb8]{text-align:left;border-bottom:1px solid #ffffff2e;padding:3px}.ui-block[data-v-80193f22]{background-color:#222;border-radius:10px;margin:8px 0;padding:16px}.map-preview-layout[data-v-ac34927b]{grid-template-columns:minmax(0,1fr) minmax(280px,420px);gap:8px;display:grid}.screens-title[data-v-ac34927b]{margin:0;font-size:18px;font-weight:600}.screen-header[data-v-ac34927b]{margin-bottom:8px}.screen-preview-placeholder[data-v-ac34927b]{aspect-ratio:16/9;color:#aaa;text-align:center;background-color:#111;justify-content:center;align-items:center;display:flex}.screen-preview-panel>.screens-title[data-v-ac34927b]{margin-bottom:8px}.screen-plan[data-v-ac34927b]{margin-top:16px}.screen-plan-step[data-v-ac34927b]{border-top:1px solid #ffffff1a;padding:8px 0}.map-field[data-v-ac34927b]{aspect-ratio:1;cursor:grab;resize:vertical;touch-action:none;background-color:#151515;border:1px dashed #fff3;height:auto;min-height:200px;position:relative;overflow:hidden}.map-field[data-v-ac34927b]:active{cursor:grabbing}.map-canvas[data-v-ac34927b]{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-ac34927b]{cursor:grab;-webkit-user-select:none;user-select:none;border-radius:6px;min-width:90px;padding:8px 24px 8px 8px;position:absolute}.map-item[data-v-ac34927b]:active{cursor:grabbing}.map-screen[data-v-ac34927b]{background-color:#355b75}.map-organizer-desk[data-v-ac34927b]{background-color:#48633a}.map-team[data-v-ac34927b]{background-color:#222}.map-team[data-v-ac34927b],.map-team[data-v-ac34927b]:active{cursor:default}.map-team-handle[data-v-ac34927b]{cursor:grab;background-color:#48633a;border-radius:6px 6px 0 0;margin:-8px -24px 8px -8px;padding:8px 24px 8px 8px}.map-team-handle[data-v-ac34927b]:active{cursor:grabbing}.map-team-applications[data-v-ac34927b]{margin-top:8px}.map-team-needs-applications[data-v-ac34927b]{outline:2px solid gold}.map-item small[data-v-ac34927b]{opacity:.75;display:block}.map-item-hide[data-v-ac34927b]{color:inherit;cursor:pointer;background:0 0;border:0;font-size:16px;position:absolute;top:5px;right:5px}.map-team .map-item-hide[data-v-ac34927b]{padding:0 2px;line-height:16px;top:0}.map-hidden-items[data-v-ac34927b]{margin-top:16px}@media (width<1024px){.map-preview-layout[data-v-ac34927b]{grid-template-columns:1fr}}.screen-scanner-video[data-v-5f530845]{aspect-ratio:1;object-fit:cover;background-color:#000;width:100%;max-height:60vh}.screens-title[data-v-043f3f37]{margin:0;font-size:18px;font-weight:600}.screen-header[data-v-043f3f37]{margin-bottom:8px}.screen-row[data-v-043f3f37]{border-top:1px solid #ffffff1a;justify-content:space-between;align-items:center;gap:8px;padding:8px 0;display:flex}.screen-status[data-v-043f3f37]{color:#aaa;font-size:13px}.screen-empty[data-v-043f3f37]{color:#aaa;margin:16px 0 0}.screen-error[data-v-043f3f37]{color:#f2a2a2;font-size:13px}.team-block-hover[data-v-561486cb]:hover{cursor:pointer;background-color:#333}.team-content-block[data-v-561486cb]{padding:8px 16px}.team-name-block[data-v-561486cb]{font-size:20px}.link-button[data-v-561486cb]{margin:8px 8px 0 0}.place-image-plus[data-v-561486cb]{text-align:center;margin:0;padding:16px;font-size:32px}.reviews-summary[data-v-5c49f067]{margin-bottom:16px}.game-tab-content[data-v-5c49f067]{padding-top:0}.review-row[data-v-5c49f067]{border-top:1px solid #777;padding:16px 0}.review-row p[data-v-5c49f067]{white-space:pre-wrap}.team-block-hover[data-v-5c49f067]:hover{color:#63e2b7;cursor:pointer;border:1px solid #63e2b7}.team-content-block[data-v-5c49f067]{padding:20px}.team-name-block[data-v-5c49f067]{font-size:20px;font-weight:600}.settings-icon[data-v-5c49f067]{width:20px}.settings-actions[data-v-5c49f067]{margin-top:16px}.link-button[data-v-5c49f067]{width:100%;margin-top:16px}.place-image-plus[data-v-5c49f067]{justify-content:center;align-items:center;font-size:30px;display:flex}.name-text[data-v-5c49f067]{background-color:#ffffff1a;border-radius:3px;padding:3px}.qr-block[data-v-5c49f067]{background-color:#fff;margin:0 auto;padding:16px;line-height:0;display:inline-block}.give-application-image-block[data-v-5c49f067]{background-image:url(/assets/paper_white-ZSlTzOTx.jpg);background-size:cover;max-width:320px;margin:8px 0;padding:8px;box-shadow:0 3px 15px #626262}.give-application-image[data-v-5c49f067]{width:100%}.give-application-audio[data-v-5c49f067]{width:100%;margin:8px 0}.give-application-pdf-link[data-v-5c49f067]{margin:8px 0;text-decoration:underline;display:inline-block}.answers-empty[data-v-5c49f067]{color:#777}.answers-question-title[data-v-5c49f067]{margin:0 0 8px;font-size:17px;font-weight:600}.answers-question-answer[data-v-5c49f067]{color:#aaa;margin:0 0 16px}.correct-answer[data-v-5c49f067]{color:gold;white-space:pre-wrap;margin-top:8px;font-weight:500;display:inline-block}.answers-team-row[data-v-5c49f067]{background-color:#ffffff0d;border-radius:6px;flex-flow:wrap;align-items:center;gap:8px;margin:8px 0;padding:8px;display:flex}.answers-team-name[data-v-5c49f067]{width:180px;font-weight:600}.answers-team-answer[data-v-5c49f067]{color:#aaa;white-space:pre-wrap;flex:200px}.answers-score-input[data-v-5c49f067]{width:110px}.screens-title[data-v-5c49f067]{margin-bottom:8px;font-size:18px;font-weight:600}.screen-row[data-v-5c49f067]{border-top:1px solid #ffffff1a;justify-content:space-between;align-items:center;gap:8px;padding:16px 0;display:flex}.screen-status[data-v-5c49f067]{color:#aaa;font-size:13px}.screen-empty[data-v-5c49f067]{color:#aaa;margin:16px 0 0}.screen-error[data-v-5c49f067]{color:#f2a2a2;font-size:13px}.map-preview-layout[data-v-5c49f067]{grid-template-columns:minmax(0,1fr) minmax(280px,420px);gap:16px;display:grid}.screen-preview-placeholder[data-v-5c49f067]{aspect-ratio:16/9;color:#aaa;text-align:center;background-color:#111;justify-content:center;align-items:center;display:flex}.map-field[data-v-5c49f067]{cursor:grab;resize:vertical;touch-action:none;background-color:#151515;border:1px dashed #fff3;height:420px;min-height:200px;position:relative;overflow:hidden}.map-field[data-v-5c49f067]:active{cursor:grabbing}.map-canvas[data-v-5c49f067]{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-5c49f067]{cursor:grab;-webkit-user-select:none;user-select:none;border-radius:6px;min-width:90px;padding:8px 24px 8px 8px;position:absolute}.map-item[data-v-5c49f067]:active{cursor:grabbing}.map-screen[data-v-5c49f067]{background-color:#355b75}.map-organizer-desk[data-v-5c49f067]{background-color:#48633a}.map-team[data-v-5c49f067]{background-color:#222}.map-team[data-v-5c49f067],.map-team[data-v-5c49f067]:active{cursor:default}.map-team-handle[data-v-5c49f067]{cursor:grab;background-color:#48633a;border-radius:6px 6px 0 0;margin:-8px -24px 8px -8px;padding:8px 24px 8px 10px}.map-team-handle[data-v-5c49f067]:active{cursor:grabbing}.map-team-applications[data-v-5c49f067]{margin-top:8px}.map-team-needs-applications[data-v-5c49f067]{outline:2px solid gold}.map-item small[data-v-5c49f067]{opacity:.75;display:block}.map-item-hide[data-v-5c49f067]{color:inherit;cursor:pointer;background:0 0;border:0;font-size:16px;position:absolute;top:5px;right:5px}.map-team .map-item-hide[data-v-5c49f067]{padding:0 2px;line-height:16px;top:0}.map-hidden-items[data-v-5c49f067]{margin-top:16px}@media (width<1024px){.map-preview-layout[data-v-5c49f067]{grid-template-columns:1fr}}.issued-ticket[data-v-5c49f067]{border-top:1px solid #777;flex-wrap:wrap;align-items:center;gap:8px;padding-top:8px;display:flex} diff --git a/frontend/dist/assets/GamesView-Y7iWJsX5.js b/frontend/dist/assets/GamesView-Y7iWJsX5.js deleted file mode 100644 index 21fa1d2..0000000 --- a/frontend/dist/assets/GamesView-Y7iWJsX5.js +++ /dev/null @@ -1,362 +0,0 @@ -import{D as e,E as t,G as n,H as r,Ht as i,I as a,M as o,N as s,O as c,Q as l,R as u,St as d,T as f,W as ee,X as p,Z as te,_t as m,ct as h,f as g,j as _,lt as v,m as y,ot as b,p as x,q as S,st as C,u as ne,vt as w,w as T,wt as E,y as D,yt as O}from"./client-CT8bsOZT.js";import{G as k,H as A,K as re,M as ie,N as ae,V as j,W as M,q as oe,r as se}from"./light-DhgSQSdG.js";import{a as ce,i as N,o as P,t as le}from"./Follower-Bm7xH84Z.js";import{l as ue,s as F,u as de}from"./utils-COJuPdUX.js";import{d as fe,f as pe,i as I,t as me,u as he}from"./Card-BX9nnwGC.js";import{m as ge,o as _e,t as ve}from"./fade-in-scale-up.cssr-DOaveAHn.js";import{t as ye}from"./Modal-a8TxC5Fw.js";import{t as be}from"./use-merged-state-CRia4_FA.js";import{n as xe,t as L}from"./Button-D8HO8D_D.js";import{r as Se}from"./keep-tsznRFn-.js";import{t as R}from"./Select-CqnQA6h4.js";import{n as Ce,r as z}from"./use-form-item-CBXe24ar.js";import{a as we,i as B,r as V}from"./resolve-slot-BEScaVot.js";import{i as Te,r as Ee}from"./Suffix-BVApm8eE.js";import{t as De}from"./Input-B3ERgh42.js";import{n as Oe,r as ke}from"./es-BS8VS4O3.js";import{t as Ae}from"./Space-B8J_02Fa.js";import{t as je}from"./Flex-LW-PCNxv.js";import{Q as Me,U as Ne,V as Pe,Y as Fe,_ as Ie,g as Le,rt as Re}from"./index-oex1uI7H.js";import{t as ze}from"./HeaderMenu--hCKWQY2.js";import{t as Be}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as Ve}from"./datetime-BJNH0M1T.js";function He(e={},t){let r=m({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:i,keyup:a}=e,o=e=>{switch(e.key){case`Control`:r.ctrl=!0;break;case`Meta`:r.command=!0,r.win=!0;break;case`Shift`:r.shift=!0;break;case`Tab`:r.tab=!0;break}i!==void 0&&Object.keys(i).forEach(t=>{if(t!==e.key)return;let n=i[t];if(typeof n==`function`)n(e);else{let{stop:t=!1,prevent:r=!1}=n;t&&e.stopPropagation(),r&&e.preventDefault(),n.handler(e)}})},s=e=>{switch(e.key){case`Control`:r.ctrl=!1;break;case`Meta`:r.command=!1,r.win=!1;break;case`Shift`:r.shift=!1;break;case`Tab`:r.tab=!1;break}a!==void 0&&Object.keys(a).forEach(t=>{if(t!==e.key)return;let n=a[t];if(typeof n==`function`)n(e);else{let{stop:t=!1,prevent:r=!1}=n;t&&e.stopPropagation(),r&&e.preventDefault(),n.handler(e)}})},c=()=>{(t===void 0||t.value)&&(fe(`keydown`,document,o),fe(`keyup`,document,s)),t!==void 0&&b(t,e=>{e?(fe(`keydown`,document,o),fe(`keyup`,document,s)):(he(`keydown`,document,o),he(`keyup`,document,s))})};return ge()?(ee(c),n(()=>{(t===void 0||t.value)&&(he(`keydown`,document,o),he(`keyup`,document,s))})):c(),w(r)}var Ue=365.2425,We=6048e5,Ge=864e5,Ke=6e4,qe=36e5,Je=1e3,Ye=3600*24;Ye*7,Ye*Ue/12*3;var Xe=Symbol.for(`constructDateFrom`);function H(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&Xe in e?e[Xe](t):e instanceof Date?new e.constructor(t):new Date(t)}function Ze(e,...t){let n=H.bind(null,e||t.find(e=>typeof e==`object`));return t.map(n)}var Qe={};function $e(){return Qe}function U(e,t){return H(t||e,e)}function et(e,t){let n=$e(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=U(e,t?.in),a=i.getDay(),o=(aa(`svg`,{width:`28px`,height:`28px`,viewBox:`0 0 28 28`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},a(`g`,{stroke:`none`,"stroke-width":`1`,"fill-rule":`evenodd`},a(`g`,{"fill-rule":`nonzero`},a(`path`,{d:`M21.75,3 C23.5449254,3 25,4.45507456 25,6.25 L25,21.75 C25,23.5449254 23.5449254,25 21.75,25 L6.25,25 C4.45507456,25 3,23.5449254 3,21.75 L3,6.25 C3,4.45507456 4.45507456,3 6.25,3 L21.75,3 Z M23.5,9.503 L4.5,9.503 L4.5,21.75 C4.5,22.7164983 5.28350169,23.5 6.25,23.5 L21.75,23.5 C22.7164983,23.5 23.5,22.7164983 23.5,21.75 L23.5,9.503 Z M21.75,4.5 L6.25,4.5 C5.28350169,4.5 4.5,5.28350169 4.5,6.25 L4.5,8.003 L23.5,8.003 L23.5,6.25 C23.5,5.28350169 22.7164983,4.5 21.75,4.5 Z`}))))),it=s({name:`FastBackward`,render(){return a(`svg`,{viewBox:`0 0 20 20`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},a(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},a(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},a(`path`,{d:`M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z`}))))}}),at=s({name:`FastForward`,render(){return a(`svg`,{viewBox:`0 0 20 20`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},a(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},a(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},a(`path`,{d:`M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z`}))))}}),ot=s({name:`Forward`,render(){return a(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},a(`path`,{d:`M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z`,fill:`currentColor`}))}}),st=Pe(`time`,()=>a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},a(`path`,{d:`M256,64C150,64,64,150,64,256s86,192,192,192,192-86,192-192S362,64,256,64Z`,style:` - fill: none; - stroke: currentColor; - stroke-miterlimit: 10; - stroke-width: 32px; - `}),a(`polyline`,{points:`256 128 256 272 352 272`,style:` - fill: none; - stroke: currentColor; - stroke-linecap: round; - stroke-linejoin: round; - stroke-width: 32px; - `}))),ct=Pe(`to`,()=>a(`svg`,{viewBox:`0 0 20 20`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},a(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},a(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},a(`path`,{d:`M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z`})))));function lt(e,t,n){let r=U(e,n?.in);return isNaN(t)?H(n?.in||e,NaN):(t&&r.setDate(r.getDate()+t),r)}function ut(e,t,n){let r=U(e,n?.in);if(isNaN(t))return H(n?.in||e,NaN);if(!t)return r;let i=r.getDate(),a=H(n?.in||e,r.getTime());return a.setMonth(r.getMonth()+t+1,0),i>=a.getDate()?a:(r.setFullYear(a.getFullYear(),a.getMonth(),i),r)}function dt(e,t){return et(e,{...t,weekStartsOn:1})}function ft(e,t){let n=U(e,t?.in),r=n.getFullYear(),i=H(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);let a=dt(i),o=H(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);let s=dt(o);return n.getTime()>=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function pt(e){let t=U(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),e-+n}function mt(e,t){let n=U(e,t?.in);return n.setHours(0,0,0,0),n}function ht(e,t,n){let[r,i]=Ze(n?.in,e,t),a=mt(r),o=mt(i),s=+a-pt(a),c=+o-pt(o);return Math.round((s-c)/Ge)}function gt(e,t){let n=ft(e,t),r=H(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),dt(r)}function _t(e,t,n){return ut(e,t*3,n)}function vt(e,t,n){return ut(e,t*12,n)}function yt(e,t,n){let[r,i]=Ze(n?.in,e,t);return+mt(r)==+mt(i)}function bt(e){return e instanceof Date||typeof e==`object`&&Object.prototype.toString.call(e)===`[object Date]`}function xt(e){return!(!bt(e)&&typeof e!=`number`||isNaN(+U(e)))}function St(e,t){let n=U(e,t?.in);return Math.trunc(n.getMonth()/3)+1}function Ct(e,t){let n=U(e,t?.in),r=n.getMonth(),i=r-r%3;return n.setMonth(i,1),n.setHours(0,0,0,0),n}function wt(e,t){let n=U(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function Tt(e,t){let n=U(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function Et(e,t){let n=U(e,t?.in);return ht(n,Tt(n))+1}function Dt(e,t){let n=U(e,t?.in),r=dt(n)-+gt(n);return Math.round(r/We)+1}function Ot(e,t){let n=U(e,t?.in),r=n.getFullYear(),i=$e(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=H(t?.in||e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);let s=et(o,t),c=H(t?.in||e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);let l=et(c,t);return+n>=+s?r+1:+n>=+l?r:r-1}function kt(e,t){let n=$e(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=Ot(e,t),a=H(t?.in||e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),et(a,t)}function At(e,t){let n=U(e,t?.in),r=et(n,t)-+kt(n,t);return Math.round(r/We)+1}function W(e,t){return(e<0?`-`:``)+Math.abs(e).toString().padStart(t,`0`)}var jt={y(e,t){let n=e.getFullYear(),r=n>0?n:1-n;return W(t===`yy`?r%100:r,t.length)},M(e,t){let n=e.getMonth();return t===`M`?String(n+1):W(n+1,2)},d(e,t){return W(e.getDate(),t.length)},a(e,t){let n=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.toUpperCase();case`aaa`:return n;case`aaaaa`:return n[0];default:return n===`am`?`a.m.`:`p.m.`}},h(e,t){return W(e.getHours()%12||12,t.length)},H(e,t){return W(e.getHours(),t.length)},m(e,t){return W(e.getMinutes(),t.length)},s(e,t){return W(e.getSeconds(),t.length)},S(e,t){let n=t.length,r=e.getMilliseconds();return W(Math.trunc(r*10**(n-3)),t.length)}},Mt={am:`am`,pm:`pm`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},Nt={G:function(e,t,n){let r=+(e.getFullYear()>0);switch(t){case`G`:case`GG`:case`GGG`:return n.era(r,{width:`abbreviated`});case`GGGGG`:return n.era(r,{width:`narrow`});default:return n.era(r,{width:`wide`})}},y:function(e,t,n){if(t===`yo`){let t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:`year`})}return jt.y(e,t)},Y:function(e,t,n,r){let i=Ot(e,r),a=i>0?i:1-i;return t===`YY`?W(a%100,2):t===`Yo`?n.ordinalNumber(a,{unit:`year`}):W(a,t.length)},R:function(e,t){return W(ft(e),t.length)},u:function(e,t){return W(e.getFullYear(),t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`Q`:return String(r);case`QQ`:return W(r,2);case`Qo`:return n.ordinalNumber(r,{unit:`quarter`});case`QQQ`:return n.quarter(r,{width:`abbreviated`,context:`formatting`});case`QQQQQ`:return n.quarter(r,{width:`narrow`,context:`formatting`});default:return n.quarter(r,{width:`wide`,context:`formatting`})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`q`:return String(r);case`qq`:return W(r,2);case`qo`:return n.ordinalNumber(r,{unit:`quarter`});case`qqq`:return n.quarter(r,{width:`abbreviated`,context:`standalone`});case`qqqqq`:return n.quarter(r,{width:`narrow`,context:`standalone`});default:return n.quarter(r,{width:`wide`,context:`standalone`})}},M:function(e,t,n){let r=e.getMonth();switch(t){case`M`:case`MM`:return jt.M(e,t);case`Mo`:return n.ordinalNumber(r+1,{unit:`month`});case`MMM`:return n.month(r,{width:`abbreviated`,context:`formatting`});case`MMMMM`:return n.month(r,{width:`narrow`,context:`formatting`});default:return n.month(r,{width:`wide`,context:`formatting`})}},L:function(e,t,n){let r=e.getMonth();switch(t){case`L`:return String(r+1);case`LL`:return W(r+1,2);case`Lo`:return n.ordinalNumber(r+1,{unit:`month`});case`LLL`:return n.month(r,{width:`abbreviated`,context:`standalone`});case`LLLLL`:return n.month(r,{width:`narrow`,context:`standalone`});default:return n.month(r,{width:`wide`,context:`standalone`})}},w:function(e,t,n,r){let i=At(e,r);return t===`wo`?n.ordinalNumber(i,{unit:`week`}):W(i,t.length)},I:function(e,t,n){let r=Dt(e);return t===`Io`?n.ordinalNumber(r,{unit:`week`}):W(r,t.length)},d:function(e,t,n){return t===`do`?n.ordinalNumber(e.getDate(),{unit:`date`}):jt.d(e,t)},D:function(e,t,n){let r=Et(e);return t===`Do`?n.ordinalNumber(r,{unit:`dayOfYear`}):W(r,t.length)},E:function(e,t,n){let r=e.getDay();switch(t){case`E`:case`EE`:case`EEE`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`EEEEE`:return n.day(r,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},e:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`e`:return String(a);case`ee`:return W(a,2);case`eo`:return n.ordinalNumber(a,{unit:`day`});case`eee`:return n.day(i,{width:`abbreviated`,context:`formatting`});case`eeeee`:return n.day(i,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(i,{width:`short`,context:`formatting`});default:return n.day(i,{width:`wide`,context:`formatting`})}},c:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`c`:return String(a);case`cc`:return W(a,t.length);case`co`:return n.ordinalNumber(a,{unit:`day`});case`ccc`:return n.day(i,{width:`abbreviated`,context:`standalone`});case`ccccc`:return n.day(i,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(i,{width:`short`,context:`standalone`});default:return n.day(i,{width:`wide`,context:`standalone`})}},i:function(e,t,n){let r=e.getDay(),i=r===0?7:r;switch(t){case`i`:return String(i);case`ii`:return W(i,t.length);case`io`:return n.ordinalNumber(i,{unit:`day`});case`iii`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`iiiii`:return n.day(r,{width:`narrow`,context:`formatting`});case`iiiiii`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},a:function(e,t,n){let r=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`});case`aaa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`aaaaa`:return n.dayPeriod(r,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(r,{width:`wide`,context:`formatting`})}},b:function(e,t,n){let r=e.getHours(),i;switch(i=r===12?Mt.noon:r===0?Mt.midnight:r/12>=1?`pm`:`am`,t){case`b`:case`bb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`bbb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`bbbbb`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},B:function(e,t,n){let r=e.getHours(),i;switch(i=r>=17?Mt.evening:r>=12?Mt.afternoon:r>=4?Mt.morning:Mt.night,t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`BBBBB`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},h:function(e,t,n){if(t===`ho`){let t=e.getHours()%12;return t===0&&(t=12),n.ordinalNumber(t,{unit:`hour`})}return jt.h(e,t)},H:function(e,t,n){return t===`Ho`?n.ordinalNumber(e.getHours(),{unit:`hour`}):jt.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return t===`Ko`?n.ordinalNumber(r,{unit:`hour`}):W(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t===`ko`?n.ordinalNumber(r,{unit:`hour`}):W(r,t.length)},m:function(e,t,n){return t===`mo`?n.ordinalNumber(e.getMinutes(),{unit:`minute`}):jt.m(e,t)},s:function(e,t,n){return t===`so`?n.ordinalNumber(e.getSeconds(),{unit:`second`}):jt.s(e,t)},S:function(e,t){return jt.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(r===0)return`Z`;switch(t){case`X`:return Ft(r);case`XXXX`:case`XX`:return It(r);default:return It(r,`:`)}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`x`:return Ft(r);case`xxxx`:case`xx`:return It(r);default:return It(r,`:`)}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`O`:case`OO`:case`OOO`:return`GMT`+Pt(r,`:`);default:return`GMT`+It(r,`:`)}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`z`:case`zz`:case`zzz`:return`GMT`+Pt(r,`:`);default:return`GMT`+It(r,`:`)}},t:function(e,t,n){return W(Math.trunc(e/1e3),t.length)},T:function(e,t,n){return W(+e,t.length)}};function Pt(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+W(a,2)}function Ft(e,t){return e%60==0?(e>0?`-`:`+`)+W(Math.abs(e)/60,2):It(e,t)}function It(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=W(Math.trunc(r/60),2),a=W(r%60,2);return n+i+t+a}var Lt=(e,t)=>{switch(e){case`P`:return t.date({width:`short`});case`PP`:return t.date({width:`medium`});case`PPP`:return t.date({width:`long`});default:return t.date({width:`full`})}},Rt=(e,t)=>{switch(e){case`p`:return t.time({width:`short`});case`pp`:return t.time({width:`medium`});case`ppp`:return t.time({width:`long`});default:return t.time({width:`full`})}},zt={p:Rt,P:(e,t)=>{let n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return Lt(e,t);let a;switch(r){case`P`:a=t.dateTime({width:`short`});break;case`PP`:a=t.dateTime({width:`medium`});break;case`PPP`:a=t.dateTime({width:`long`});break;default:a=t.dateTime({width:`full`});break}return a.replace(`{{date}}`,Lt(r,t)).replace(`{{time}}`,Rt(i,t))}},Bt=/^D+$/,Vt=/^Y+$/,Ht=[`D`,`DD`,`YY`,`YYYY`];function Ut(e){return Bt.test(e)}function Wt(e){return Vt.test(e)}function Gt(e,t,n){let r=Kt(e,t,n);if(console.warn(r),Ht.includes(e))throw RangeError(r)}function Kt(e,t,n){let r=e[0]===`Y`?`years`:`days of the month`;return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var qt=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Jt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Yt=/^'([^]*?)'?$/,Xt=/''/g,Zt=/[a-zA-Z]/;function G(e,t,n){let r=$e(),i=n?.locale??r.locale??Te,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=U(e,n?.in);if(!xt(s))throw RangeError(`Invalid time value`);let c=t.match(Jt).map(e=>{let t=e[0];if(t===`p`||t===`P`){let n=zt[t];return n(e,i.formatLong)}return e}).join(``).match(qt).map(e=>{if(e===`''`)return{isToken:!1,value:`'`};let t=e[0];if(t===`'`)return{isToken:!1,value:Qt(e)};if(Nt[t])return{isToken:!0,value:e};if(t.match(Zt))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));let l={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return c.map(r=>{if(!r.isToken)return r.value;let a=r.value;(!n?.useAdditionalWeekYearTokens&&Wt(a)||!n?.useAdditionalDayOfYearTokens&&Ut(a))&&Gt(a,t,String(e));let o=Nt[a[0]];return o(s,a,i.localize,l)}).join(``)}function Qt(e){let t=e.match(Yt);return t?t[1].replace(Xt,`'`):e}function $t(e,t){return U(e,t?.in).getDate()}function en(e,t){return U(e,t?.in).getDay()}function tn(e,t){let n=U(e,t?.in),r=n.getFullYear(),i=n.getMonth(),a=H(n,0);return a.setFullYear(r,i+1,0),a.setHours(0,0,0,0),a.getDate()}function nn(){return Object.assign({},$e())}function rn(e,t){return U(e,t?.in).getHours()}function an(e,t){let n=U(e,t?.in).getDay();return n===0?7:n}function on(e){return U(e).getMilliseconds()}function sn(e,t){return U(e,t?.in).getMinutes()}function K(e,t){return U(e,t?.in).getMonth()}function cn(e){return U(e).getSeconds()}function q(e){return+U(e)}function J(e,t){return U(e,t?.in).getFullYear()}function ln(e,t){let n=un(t)?new t(0):H(t,0);return n.setFullYear(e.getFullYear(),e.getMonth(),e.getDate()),n.setHours(e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()),n}function un(e){return typeof e==`function`&&e.prototype?.constructor===e}var dn=10,fn=class{subPriority=0;validate(e,t){return!0}},pn=class extends fn{constructor(e,t,n,r,i){super(),this.value=e,this.validateValue=t,this.setValue=n,this.priority=r,i&&(this.subPriority=i)}validate(e,t){return this.validateValue(e,this.value,t)}set(e,t,n){return this.setValue(e,t,this.value,n)}},mn=class extends fn{priority=dn;subPriority=-1;constructor(e,t){super(),this.context=e||(e=>H(t,e))}set(e,t){return t.timestampIsSet?e:H(e,ln(e,this.context))}},Y=class{run(e,t,n,r){let i=this.parse(e,t,n,r);return i?{setter:new pn(i.value,this.validate,this.set,this.priority,this.subPriority),rest:i.rest}:null}validate(e,t,n){return!0}},hn=class extends Y{priority=140;parse(e,t,n){switch(t){case`G`:case`GG`:case`GGG`:return n.era(e,{width:`abbreviated`})||n.era(e,{width:`narrow`});case`GGGGG`:return n.era(e,{width:`narrow`});default:return n.era(e,{width:`wide`})||n.era(e,{width:`abbreviated`})||n.era(e,{width:`narrow`})}}set(e,t,n){return t.era=n,e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`R`,`u`,`t`,`T`]},X={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},gn={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Z(e,t){return e&&{value:t(e.value),rest:e.rest}}function Q(e,t){let n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function _n(e,t){let n=t.match(e);if(!n)return null;if(n[0]===`Z`)return{value:0,rest:t.slice(1)};let r=n[1]===`+`?1:-1,i=n[2]?parseInt(n[2],10):0,a=n[3]?parseInt(n[3],10):0,o=n[5]?parseInt(n[5],10):0;return{value:r*(i*qe+a*Ke+o*Je),rest:t.slice(n[0].length)}}function vn(e){return Q(X.anyDigitsSigned,e)}function $(e,t){switch(e){case 1:return Q(X.singleDigit,t);case 2:return Q(X.twoDigits,t);case 3:return Q(X.threeDigits,t);case 4:return Q(X.fourDigits,t);default:return Q(RegExp(`^\\d{1,`+e+`}`),t)}}function yn(e,t){switch(e){case 1:return Q(X.singleDigitSigned,t);case 2:return Q(X.twoDigitsSigned,t);case 3:return Q(X.threeDigitsSigned,t);case 4:return Q(X.fourDigitsSigned,t);default:return Q(RegExp(`^-?\\d{1,`+e+`}`),t)}}function bn(e){switch(e){case`morning`:return 4;case`evening`:return 17;case`pm`:case`noon`:case`afternoon`:return 12;default:return 0}}function xn(e,t){let n=t>0,r=n?t:1-t,i;if(r<=50)i=e||100;else{let t=r+50,n=Math.trunc(t/100)*100,a=e>=t%100;i=e+n-(a?100:0)}return n?i:1-i}function Sn(e){return e%400==0||e%4==0&&e%100!=0}var Cn=class extends Y{priority=130;incompatibleTokens=[`Y`,`R`,`u`,`w`,`I`,`i`,`e`,`c`,`t`,`T`];parse(e,t,n){let r=e=>({year:e,isTwoDigitYear:t===`yy`});switch(t){case`y`:return Z($(4,e),r);case`yo`:return Z(n.ordinalNumber(e,{unit:`year`}),r);default:return Z($(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n){let r=e.getFullYear();if(n.isTwoDigitYear){let t=xn(n.year,r);return e.setFullYear(t,0,1),e.setHours(0,0,0,0),e}let i=!(`era`in t)||t.era===1?n.year:1-n.year;return e.setFullYear(i,0,1),e.setHours(0,0,0,0),e}},wn=class extends Y{priority=130;parse(e,t,n){let r=e=>({year:e,isTwoDigitYear:t===`YY`});switch(t){case`Y`:return Z($(4,e),r);case`Yo`:return Z(n.ordinalNumber(e,{unit:`year`}),r);default:return Z($(t.length,e),r)}}validate(e,t){return t.isTwoDigitYear||t.year>0}set(e,t,n,r){let i=Ot(e,r);if(n.isTwoDigitYear){let t=xn(n.year,i);return e.setFullYear(t,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),et(e,r)}let a=!(`era`in t)||t.era===1?n.year:1-n.year;return e.setFullYear(a,0,r.firstWeekContainsDate),e.setHours(0,0,0,0),et(e,r)}incompatibleTokens=[`y`,`R`,`u`,`Q`,`q`,`M`,`L`,`I`,`d`,`D`,`i`,`t`,`T`]},Tn=class extends Y{priority=130;parse(e,t){return yn(t===`R`?4:t.length,e)}set(e,t,n){let r=H(e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),dt(r)}incompatibleTokens=[`G`,`y`,`Y`,`u`,`Q`,`q`,`M`,`L`,`w`,`d`,`D`,`e`,`c`,`t`,`T`]},En=class extends Y{priority=130;parse(e,t){return yn(t===`u`?4:t.length,e)}set(e,t,n){return e.setFullYear(n,0,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`G`,`y`,`Y`,`R`,`w`,`I`,`i`,`e`,`c`,`t`,`T`]},Dn=class extends Y{priority=120;parse(e,t,n){switch(t){case`Q`:case`QQ`:return $(t.length,e);case`Qo`:return n.ordinalNumber(e,{unit:`quarter`});case`QQQ`:return n.quarter(e,{width:`abbreviated`,context:`formatting`})||n.quarter(e,{width:`narrow`,context:`formatting`});case`QQQQQ`:return n.quarter(e,{width:`narrow`,context:`formatting`});default:return n.quarter(e,{width:`wide`,context:`formatting`})||n.quarter(e,{width:`abbreviated`,context:`formatting`})||n.quarter(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`M`,`L`,`w`,`I`,`d`,`D`,`i`,`e`,`c`,`t`,`T`]},On=class extends Y{priority=120;parse(e,t,n){switch(t){case`q`:case`qq`:return $(t.length,e);case`qo`:return n.ordinalNumber(e,{unit:`quarter`});case`qqq`:return n.quarter(e,{width:`abbreviated`,context:`standalone`})||n.quarter(e,{width:`narrow`,context:`standalone`});case`qqqqq`:return n.quarter(e,{width:`narrow`,context:`standalone`});default:return n.quarter(e,{width:`wide`,context:`standalone`})||n.quarter(e,{width:`abbreviated`,context:`standalone`})||n.quarter(e,{width:`narrow`,context:`standalone`})}}validate(e,t){return t>=1&&t<=4}set(e,t,n){return e.setMonth((n-1)*3,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`Q`,`M`,`L`,`w`,`I`,`d`,`D`,`i`,`e`,`c`,`t`,`T`]},kn=class extends Y{incompatibleTokens=[`Y`,`R`,`q`,`Q`,`L`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`];priority=110;parse(e,t,n){let r=e=>e-1;switch(t){case`M`:return Z(Q(X.month,e),r);case`MM`:return Z($(2,e),r);case`Mo`:return Z(n.ordinalNumber(e,{unit:`month`}),r);case`MMM`:return n.month(e,{width:`abbreviated`,context:`formatting`})||n.month(e,{width:`narrow`,context:`formatting`});case`MMMMM`:return n.month(e,{width:`narrow`,context:`formatting`});default:return n.month(e,{width:`wide`,context:`formatting`})||n.month(e,{width:`abbreviated`,context:`formatting`})||n.month(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}},An=class extends Y{priority=110;parse(e,t,n){let r=e=>e-1;switch(t){case`L`:return Z(Q(X.month,e),r);case`LL`:return Z($(2,e),r);case`Lo`:return Z(n.ordinalNumber(e,{unit:`month`}),r);case`LLL`:return n.month(e,{width:`abbreviated`,context:`standalone`})||n.month(e,{width:`narrow`,context:`standalone`});case`LLLLL`:return n.month(e,{width:`narrow`,context:`standalone`});default:return n.month(e,{width:`wide`,context:`standalone`})||n.month(e,{width:`abbreviated`,context:`standalone`})||n.month(e,{width:`narrow`,context:`standalone`})}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.setMonth(n,1),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`M`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`]};function jn(e,t,n){let r=U(e,n?.in),i=At(r,n)-t;return r.setDate(r.getDate()-i*7),U(r,n?.in)}var Mn=class extends Y{priority=100;parse(e,t,n){switch(t){case`w`:return Q(X.week,e);case`wo`:return n.ordinalNumber(e,{unit:`week`});default:return $(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n,r){return et(jn(e,n,r),r)}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`i`,`t`,`T`]};function Nn(e,t,n){let r=U(e,n?.in),i=Dt(r,n)-t;return r.setDate(r.getDate()-i*7),r}var Pn=class extends Y{priority=100;parse(e,t,n){switch(t){case`I`:return Q(X.week,e);case`Io`:return n.ordinalNumber(e,{unit:`week`});default:return $(t.length,e)}}validate(e,t){return t>=1&&t<=53}set(e,t,n){return dt(Nn(e,n))}incompatibleTokens=[`y`,`Y`,`u`,`q`,`Q`,`M`,`L`,`w`,`d`,`D`,`e`,`c`,`t`,`T`]},Fn=[31,28,31,30,31,30,31,31,30,31,30,31],In=[31,29,31,30,31,30,31,31,30,31,30,31],Ln=class extends Y{priority=90;subPriority=1;parse(e,t,n){switch(t){case`d`:return Q(X.date,e);case`do`:return n.ordinalNumber(e,{unit:`date`});default:return $(t.length,e)}}validate(e,t){let n=Sn(e.getFullYear()),r=e.getMonth();return n?t>=1&&t<=In[r]:t>=1&&t<=Fn[r]}set(e,t,n){return e.setDate(n),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`w`,`I`,`D`,`i`,`e`,`c`,`t`,`T`]},Rn=class extends Y{priority=90;subpriority=1;parse(e,t,n){switch(t){case`D`:case`DD`:return Q(X.dayOfYear,e);case`Do`:return n.ordinalNumber(e,{unit:`date`});default:return $(t.length,e)}}validate(e,t){return Sn(e.getFullYear())?t>=1&&t<=366:t>=1&&t<=365}set(e,t,n){return e.setMonth(0,n),e.setHours(0,0,0,0),e}incompatibleTokens=[`Y`,`R`,`q`,`Q`,`M`,`L`,`w`,`I`,`d`,`E`,`i`,`e`,`c`,`t`,`T`]};function zn(e,t,n){let r=$e(),i=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,a=U(e,n?.in),o=a.getDay(),s=(t%7+7)%7,c=7-i;return lt(a,t<0||t>6?t-(o+c)%7:(s+c)%7-(o+c)%7,n)}var Bn=class extends Y{priority=90;parse(e,t,n){switch(t){case`E`:case`EE`:case`EEE`:return n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});case`EEEEE`:return n.day(e,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});default:return n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return e=zn(e,n,r),e.setHours(0,0,0,0),e}incompatibleTokens=[`D`,`i`,`e`,`c`,`t`,`T`]},Vn=class extends Y{priority=90;parse(e,t,n,r){let i=e=>{let t=Math.floor((e-1)/7)*7;return(e+r.weekStartsOn+6)%7+t};switch(t){case`e`:case`ee`:return Z($(t.length,e),i);case`eo`:return Z(n.ordinalNumber(e,{unit:`day`}),i);case`eee`:return n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});case`eeeee`:return n.day(e,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`});default:return n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return e=zn(e,n,r),e.setHours(0,0,0,0),e}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`E`,`i`,`c`,`t`,`T`]},Hn=class extends Y{priority=90;parse(e,t,n,r){let i=e=>{let t=Math.floor((e-1)/7)*7;return(e+r.weekStartsOn+6)%7+t};switch(t){case`c`:case`cc`:return Z($(t.length,e),i);case`co`:return Z(n.ordinalNumber(e,{unit:`day`}),i);case`ccc`:return n.day(e,{width:`abbreviated`,context:`standalone`})||n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`});case`ccccc`:return n.day(e,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`});default:return n.day(e,{width:`wide`,context:`standalone`})||n.day(e,{width:`abbreviated`,context:`standalone`})||n.day(e,{width:`short`,context:`standalone`})||n.day(e,{width:`narrow`,context:`standalone`})}}validate(e,t){return t>=0&&t<=6}set(e,t,n,r){return e=zn(e,n,r),e.setHours(0,0,0,0),e}incompatibleTokens=[`y`,`R`,`u`,`q`,`Q`,`M`,`L`,`I`,`d`,`D`,`E`,`i`,`e`,`t`,`T`]};function Un(e,t,n){let r=U(e,n?.in);return lt(r,t-an(r,n),n)}var Wn=class extends Y{priority=90;parse(e,t,n){let r=e=>e===0?7:e;switch(t){case`i`:case`ii`:return $(t.length,e);case`io`:return n.ordinalNumber(e,{unit:`day`});case`iii`:return Z(n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r);case`iiiii`:return Z(n.day(e,{width:`narrow`,context:`formatting`}),r);case`iiiiii`:return Z(n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r);default:return Z(n.day(e,{width:`wide`,context:`formatting`})||n.day(e,{width:`abbreviated`,context:`formatting`})||n.day(e,{width:`short`,context:`formatting`})||n.day(e,{width:`narrow`,context:`formatting`}),r)}}validate(e,t){return t>=1&&t<=7}set(e,t,n){return e=Un(e,n),e.setHours(0,0,0,0),e}incompatibleTokens=[`y`,`Y`,`u`,`q`,`Q`,`M`,`L`,`w`,`d`,`D`,`E`,`e`,`c`,`t`,`T`]},Gn=class extends Y{priority=80;parse(e,t,n){switch(t){case`a`:case`aa`:case`aaa`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`aaaaa`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}set(e,t,n){return e.setHours(bn(n),0,0,0),e}incompatibleTokens=[`b`,`B`,`H`,`k`,`t`,`T`]},Kn=class extends Y{priority=80;parse(e,t,n){switch(t){case`b`:case`bb`:case`bbb`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`bbbbb`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}set(e,t,n){return e.setHours(bn(n),0,0,0),e}incompatibleTokens=[`a`,`B`,`H`,`k`,`t`,`T`]},qn=class extends Y{priority=80;parse(e,t,n){switch(t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`});case`BBBBB`:return n.dayPeriod(e,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(e,{width:`wide`,context:`formatting`})||n.dayPeriod(e,{width:`abbreviated`,context:`formatting`})||n.dayPeriod(e,{width:`narrow`,context:`formatting`})}}set(e,t,n){return e.setHours(bn(n),0,0,0),e}incompatibleTokens=[`a`,`b`,`t`,`T`]},Jn=class extends Y{priority=70;parse(e,t,n){switch(t){case`h`:return Q(X.hour12h,e);case`ho`:return n.ordinalNumber(e,{unit:`hour`});default:return $(t.length,e)}}validate(e,t){return t>=1&&t<=12}set(e,t,n){let r=e.getHours()>=12;return r&&n<12?e.setHours(n+12,0,0,0):!r&&n===12?e.setHours(0,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=[`H`,`K`,`k`,`t`,`T`]},Yn=class extends Y{priority=70;parse(e,t,n){switch(t){case`H`:return Q(X.hour23h,e);case`Ho`:return n.ordinalNumber(e,{unit:`hour`});default:return $(t.length,e)}}validate(e,t){return t>=0&&t<=23}set(e,t,n){return e.setHours(n,0,0,0),e}incompatibleTokens=[`a`,`b`,`h`,`K`,`k`,`t`,`T`]},Xn=class extends Y{priority=70;parse(e,t,n){switch(t){case`K`:return Q(X.hour11h,e);case`Ko`:return n.ordinalNumber(e,{unit:`hour`});default:return $(t.length,e)}}validate(e,t){return t>=0&&t<=11}set(e,t,n){return e.getHours()>=12&&n<12?e.setHours(n+12,0,0,0):e.setHours(n,0,0,0),e}incompatibleTokens=[`h`,`H`,`k`,`t`,`T`]},Zn=class extends Y{priority=70;parse(e,t,n){switch(t){case`k`:return Q(X.hour24h,e);case`ko`:return n.ordinalNumber(e,{unit:`hour`});default:return $(t.length,e)}}validate(e,t){return t>=1&&t<=24}set(e,t,n){let r=n<=24?n%24:n;return e.setHours(r,0,0,0),e}incompatibleTokens=[`a`,`b`,`h`,`H`,`K`,`t`,`T`]},Qn=class extends Y{priority=60;parse(e,t,n){switch(t){case`m`:return Q(X.minute,e);case`mo`:return n.ordinalNumber(e,{unit:`minute`});default:return $(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setMinutes(n,0,0),e}incompatibleTokens=[`t`,`T`]},$n=class extends Y{priority=50;parse(e,t,n){switch(t){case`s`:return Q(X.second,e);case`so`:return n.ordinalNumber(e,{unit:`second`});default:return $(t.length,e)}}validate(e,t){return t>=0&&t<=59}set(e,t,n){return e.setSeconds(n,0),e}incompatibleTokens=[`t`,`T`]},er=class extends Y{priority=30;parse(e,t){return Z($(t.length,e),e=>Math.trunc(e*10**(-t.length+3)))}set(e,t,n){return e.setMilliseconds(n),e}incompatibleTokens=[`t`,`T`]},tr=class extends Y{priority=10;parse(e,t){switch(t){case`X`:return _n(gn.basicOptionalMinutes,e);case`XX`:return _n(gn.basic,e);case`XXXX`:return _n(gn.basicOptionalSeconds,e);case`XXXXX`:return _n(gn.extendedOptionalSeconds,e);default:return _n(gn.extended,e)}}set(e,t,n){return t.timestampIsSet?e:H(e,e.getTime()-pt(e)-n)}incompatibleTokens=[`t`,`T`,`x`]},nr=class extends Y{priority=10;parse(e,t){switch(t){case`x`:return _n(gn.basicOptionalMinutes,e);case`xx`:return _n(gn.basic,e);case`xxxx`:return _n(gn.basicOptionalSeconds,e);case`xxxxx`:return _n(gn.extendedOptionalSeconds,e);default:return _n(gn.extended,e)}}set(e,t,n){return t.timestampIsSet?e:H(e,e.getTime()-pt(e)-n)}incompatibleTokens=[`t`,`T`,`X`]},rr=class extends Y{priority=40;parse(e){return vn(e)}set(e,t,n){return[H(e,n*1e3),{timestampIsSet:!0}]}incompatibleTokens=`*`},ir=class extends Y{priority=20;parse(e){return vn(e)}set(e,t,n){return[H(e,n),{timestampIsSet:!0}]}incompatibleTokens=`*`},ar={G:new hn,y:new Cn,Y:new wn,R:new Tn,u:new En,Q:new Dn,q:new On,M:new kn,L:new An,w:new Mn,I:new Pn,d:new Ln,D:new Rn,E:new Bn,e:new Vn,c:new Hn,i:new Wn,a:new Gn,b:new Kn,B:new qn,h:new Jn,H:new Yn,K:new Xn,k:new Zn,m:new Qn,s:new $n,S:new er,X:new tr,x:new nr,t:new rr,T:new ir},or=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,sr=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,cr=/^'([^]*?)'?$/,lr=/''/g,ur=/\S/,dr=/[a-zA-Z]/;function fr(e,t,n,r){let i=()=>H(r?.in||n,NaN),a=nn(),o=r?.locale??a.locale??Te,s=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??a.firstWeekContainsDate??a.locale?.options?.firstWeekContainsDate??1,c=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??a.weekStartsOn??a.locale?.options?.weekStartsOn??0;if(!t)return e?i():U(n,r?.in);let l={firstWeekContainsDate:s,weekStartsOn:c,locale:o},u=[new mn(r?.in,n)],d=t.match(sr).map(e=>{let t=e[0];if(t in zt){let n=zt[t];return n(e,o.formatLong)}return e}).join(``).match(or),f=[];for(let n of d){!r?.useAdditionalWeekYearTokens&&Wt(n)&&Gt(n,t,e),!r?.useAdditionalDayOfYearTokens&&Ut(n)&&Gt(n,t,e);let a=n[0],s=ar[a];if(s){let{incompatibleTokens:t}=s;if(Array.isArray(t)){let e=f.find(e=>t.includes(e.token)||e.token===a);if(e)throw RangeError(`The format string mustn't contain \`${e.fullToken}\` and \`${n}\` at the same time`)}else if(s.incompatibleTokens===`*`&&f.length>0)throw RangeError(`The format string mustn't contain \`${n}\` and any other token at the same time`);f.push({token:a,fullToken:n});let r=s.run(e,n,o.match,l);if(!r)return i();u.push(r.setter),e=r.rest}else{if(a.match(dr))throw RangeError("Format string contains an unescaped latin alphabet character `"+a+"`");if(n===`''`?n=`'`:a===`'`&&(n=pr(n)),e.indexOf(n)===0)e=e.slice(n.length);else return i()}}if(e.length>0&&ur.test(e))return i();let ee=u.map(e=>e.priority).sort((e,t)=>t-e).filter((e,t,n)=>n.indexOf(e)===t).map(e=>u.filter(t=>t.priority===e).sort((e,t)=>t.subPriority-e.subPriority)).map(e=>e[0]),p=U(n,r?.in);if(isNaN(+p))return i();let te={};for(let e of ee){if(!e.validate(p,l))return i();let t=e.set(p,te,l);Array.isArray(t)?(p=t[0],Object.assign(te,t[1])):p=t}return p}function pr(e){return e.match(cr)[1].replace(lr,`'`)}function mr(e,t){let n=U(e,t?.in);return n.setMinutes(0,0,0),n}function hr(e,t){let n=U(e,t?.in);return n.setSeconds(0,0),n}function gr(e,t,n){let[r,i]=Ze(n?.in,e,t);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}function _r(e,t,n){let[r,i]=Ze(n?.in,e,t);return+Ct(r)==+Ct(i)}function vr(e,t){let n=U(e,t?.in);return n.setMilliseconds(0),n}function yr(e,t,n){let[r,i]=Ze(n?.in,e,t);return r.getFullYear()===i.getFullYear()}function br(e,t,n){let r=U(e,n?.in),i=r.getFullYear(),a=r.getDate(),o=H(n?.in||e,0);o.setFullYear(i,t,15),o.setHours(0,0,0,0);let s=tn(o);return r.setMonth(t,Math.min(a,s)),r}function xr(e,t,n){let r=U(e,n?.in);return isNaN(+r)?H(n?.in||e,NaN):(t.year!=null&&r.setFullYear(t.year),t.month!=null&&(r=br(r,t.month)),t.date!=null&&r.setDate(t.date),t.hours!=null&&r.setHours(t.hours),t.minutes!=null&&r.setMinutes(t.minutes),t.seconds!=null&&r.setSeconds(t.seconds),t.milliseconds!=null&&r.setMilliseconds(t.milliseconds),r)}function Sr(e,t,n){let r=U(e,n?.in);return r.setHours(t),r}function Cr(e,t,n){let r=U(e,n?.in);return r.setMinutes(t),r}function wr(e,t,n){let r=U(e,n?.in),i=t-(Math.trunc(r.getMonth()/3)+1);return br(r,r.getMonth()+i*3)}function Tr(e,t,n){let r=U(e,n?.in);return r.setSeconds(t),r}function Er(e,t,n){let r=U(e,n?.in);return isNaN(+r)?H(n?.in||e,NaN):(r.setFullYear(t),r)}var Dr={date:yt,month:gr,year:yr,quarter:_r};function Or(e){return(t,n)=>tt(t,n,{weekStartsOn:kr(e)})}function kr(e){return(e+1)%7}function Ar(e,t,n,r=0){return(n===`week`?Or(r):Dr[n])(e,t)}function jr(e,t,n,r,i,a){return i===`date`?Mr(e,t,n,r):Ir(e,t,n,r,a)}function Mr(e,t,n,r){let i=!1,a=!1,o=!1;Array.isArray(n)&&(n[0]({locale:t.value.locale})),l=O(null),d=He();function f(){let{onClear:t}=e;t&&t()}function ee(){let{onConfirm:t,value:n}=e;t&&t(n)}function p(t,n){let{onUpdateValue:r}=e;r(t,n)}function te(t=!1){let{onClose:n}=e;n&&n(t)}function m(){let{onTabOut:t}=e;t&&t()}function h(){p(null,!0),te(!0),f()}function g(){m()}function _(){(e.active||e.panel)&&r(()=>{let{value:e}=l;if(!e)return;let t=e.querySelectorAll(`[data-n-date]`);t.forEach(e=>{e.classList.add(`transition-disabled`)}),e.offsetWidth,t.forEach(e=>{e.classList.remove(`transition-disabled`)})})}function v(e){e.key===`Tab`&&e.target===l.value&&d.shift&&(e.preventDefault(),m())}function y(e){let{value:t}=l;d.tab&&e.target===t&&t?.contains(e.relatedTarget)&&m()}let b=null,x=!1;function S(){b=e.value,x=!0}function C(){x=!1}function ne(){x&&=(p(b,!1),!1)}function w(e){return typeof e==`function`?e():e}let E=O(!1);function D(){E.value=!E.value}return{mergedTheme:s,mergedClsPrefix:o,dateFnsOptions:c,timePickerSize:n,timePickerProps:i,selfRef:l,locale:a,doConfirm:ee,doClose:te,doUpdateValue:p,doTabOut:m,handleClearClick:h,handleFocusDetectorFocus:g,disableTransitionOneTick:_,handlePanelKeyDown:v,handlePanelFocus:y,cachePendingValue:S,clearPendingValue:C,restorePendingValue:ne,getShortcutValue:w,handleShortcutMouseleave:ne,showMonthYearPanel:E,handleOpenQuickSelectMonthPanel:D}}var Qr=Object.assign(Object.assign({},Xr),{defaultCalendarStartTime:Number,actions:{type:Array,default:()=>[`now`,`clear`,`confirm`]}});function $r(e,t){let n=Zr(e),{isValueInvalidRef:r,isDateDisabledRef:i,isDateInvalidRef:a,isTimeInvalidRef:o,isDateTimeInvalidRef:s,isHourDisabledRef:c,isMinuteDisabledRef:l,isSecondDisabledRef:d,localeRef:f,firstDayOfWeekRef:ee,datePickerSlots:p,yearFormatRef:te,monthFormatRef:m,quarterFormatRef:h,yearRangeRef:g}=u(Yr),_={isValueInvalid:r,isDateDisabled:i,isDateInvalid:a,isTimeInvalid:o,isDateTimeInvalid:s,isHourDisabled:c,isMinuteDisabled:l,isSecondDisabled:d},v=T(()=>e.dateFormat||f.value.dateFormat),y=T(()=>e.calendarDayFormat||f.value.dayFormat),x=O(e.value===null||Array.isArray(e.value)?``:G(e.value,v.value)),S=O(e.value===null||Array.isArray(e.value)?e.defaultCalendarStartTime??Date.now():e.value),C=O(null),ne=O(null),w=O(null),E=O(Date.now()),D=T(()=>Br(S.value,e.value,E.value,ee.value??f.value.firstDayOfWeek,!1,t===`week`)),k=T(()=>{let{value:t}=e;return Vr(S.value,Array.isArray(t)?null:t,E.value,{monthFormat:m.value})}),A=T(()=>{let{value:t}=e;return Ur(Array.isArray(t)?null:t,E.value,{yearFormat:te.value},g)}),re=T(()=>{let{value:t}=e;return Hr(S.value,Array.isArray(t)?null:t,E.value,{quarterFormat:h.value})}),ie=T(()=>D.value.slice(0,7).map(e=>{let{ts:t}=e;return G(t,y.value,n.dateFnsOptions.value)})),ae=T(()=>G(S.value,e.calendarHeaderMonthFormat||f.value.monthFormat,n.dateFnsOptions.value)),j=T(()=>G(S.value,e.calendarHeaderYearFormat||f.value.yearFormat,n.dateFnsOptions.value)),M=T(()=>e.calendarHeaderMonthBeforeYear??f.value.monthBeforeYear);b(S,(e,r)=>{(t===`date`||t===`datetime`)&&(gr(e,r)||n.disableTransitionOneTick())}),b(T(()=>e.value),e=>{e!==null&&!Array.isArray(e)?(x.value=G(e,v.value,n.dateFnsOptions.value),S.value=e):x.value=``});function oe(e){return q(t===`datetime`?vr(e):t===`month`?wt(e):t===`year`?Tt(e):t===`quarter`?Ct(e):t===`week`?et(e,{weekStartsOn:((ee.value??f.value.firstDayOfWeek)+1)%7}):mt(e))}function se(e,t){let{isDateDisabled:{value:n}}=_;return n?n(e,t):!1}function ce(t){let r=Wr(t,v.value,new Date,n.dateFnsOptions.value);if(xt(r)){if(e.value===null)n.doUpdateValue(q(oe(Date.now())),e.panel);else if(!Array.isArray(e.value)){let t=xr(e.value,{year:J(r),month:K(r),date:$t(r)});n.doUpdateValue(q(oe(q(t))),e.panel)}}else x.value=t}function N(){let t=Wr(x.value,v.value,new Date,n.dateFnsOptions.value);if(xt(t)){if(e.value===null)n.doUpdateValue(q(oe(Date.now())),!1);else if(!Array.isArray(e.value)){let r=xr(e.value,{year:J(t),month:K(t),date:$t(t)});n.doUpdateValue(q(oe(q(r))),!1)}}else me()}function P(){n.doUpdateValue(null,!0),x.value=``,n.doClose(!0),n.handleClearClick()}function le(){n.doUpdateValue(q(oe(Date.now())),!0);let r=Date.now();S.value=r,n.doClose(!0),e.panel&&(t===`month`||t===`quarter`||t===`year`)&&(n.disableTransitionOneTick(),we(r))}let ue=O(null);function F(e){e.type===`date`&&t===`week`&&(ue.value=oe(q(e.ts)))}function de(e){return e.type===`date`&&t===`week`?oe(q(e.ts))===ue.value:!1}function fe(r){if(se(r.ts,r.type===`date`?{type:`date`,year:r.dateObject.year,month:r.dateObject.month,date:r.dateObject.date}:r.type===`month`?{type:`month`,year:r.dateObject.year,month:r.dateObject.month}:r.type===`year`?{type:`year`,year:r.dateObject.year}:{type:`quarter`,year:r.dateObject.year,quarter:r.dateObject.quarter}))return;let i;if(i=e.value!==null&&!Array.isArray(e.value)?e.value:Date.now(),t===`datetime`&&e.defaultTime!==null&&!Array.isArray(e.defaultTime)){let t;t=typeof e.defaultTime==`function`?Gr(r.ts,e.defaultTime):qr(e.defaultTime),t&&(i=q(xr(i,t)))}switch(i=q(r.type===`quarter`&&r.dateObject.quarter?wr(Er(i,r.dateObject.year),r.dateObject.quarter):xr(i,r.dateObject)),n.doUpdateValue(oe(i),e.panel||t===`date`||t===`week`||t===`year`),t){case`date`:case`week`:n.doClose();break;case`year`:e.panel&&n.disableTransitionOneTick(),n.doClose();break;case`month`:n.disableTransitionOneTick(),we(i);break;case`quarter`:n.disableTransitionOneTick(),we(i);break}}function pe(t,n){let r;r=e.value!==null&&!Array.isArray(e.value)?e.value:Date.now(),r=q(t.type===`month`?br(r,t.dateObject.month):Er(r,t.dateObject.year)),n(r),we(r)}function I(e){S.value=e}function me(t){if(e.value===null||Array.isArray(e.value)){x.value=``;return}t===void 0&&(t=e.value),x.value=G(t,v.value,n.dateFnsOptions.value)}function he(){_.isDateInvalid.value||_.isTimeInvalid.value||(n.doConfirm(),ge())}function ge(){e.active&&n.doClose()}function _e(){var t;S.value=q(vt(S.value,1)),(t=e.onNextYear)==null||t.call(e)}function ve(){var t;S.value=q(vt(S.value,-1)),(t=e.onPrevYear)==null||t.call(e)}function ye(){var t;S.value=q(ut(S.value,1)),(t=e.onNextMonth)==null||t.call(e)}function be(){var t;S.value=q(ut(S.value,-1)),(t=e.onPrevMonth)==null||t.call(e)}function xe(){let{value:e}=C;return e?.listElRef||null}function L(){let{value:e}=C;return e?.itemsElRef||null}function Se(){var e;(e=ne.value)==null||e.sync()}function R(t){t!==null&&n.doUpdateValue(t,e.panel)}function Ce(e){n.cachePendingValue();let t=n.getShortcutValue(e);typeof t==`number`&&n.doUpdateValue(t,!1)}function z(t){let r=n.getShortcutValue(t);typeof r==`number`&&(n.doUpdateValue(r,e.panel),n.clearPendingValue(),he())}function we(t){let{value:n}=e;if(w.value){let e=K(t===void 0?n===null?Date.now():n:t);w.value.scrollTo({top:e*40})}if(C.value){let e=J(t===void 0?n===null?Date.now():n:t)-g.value[0];C.value.scrollTo({top:e*40})}}let B={monthScrollbarRef:w,yearScrollbarRef:ne,yearVlRef:C};return Object.assign(Object.assign(Object.assign(Object.assign({dateArray:D,monthArray:k,yearArray:A,quarterArray:re,calendarYear:j,calendarMonth:ae,weekdays:ie,calendarMonthBeforeYear:M,mergedIsDateDisabled:se,nextYear:_e,prevYear:ve,nextMonth:ye,prevMonth:be,handleNowClick:le,handleConfirmClick:he,handleSingleShortcutMouseenter:Ce,handleSingleShortcutClick:z},_),n),B),{handleDateClick:fe,handleDateInputBlur:N,handleDateInput:ce,handleDateMouseEnter:F,isWeekHovered:de,handleTimePickerChange:R,clearSelectedDateTime:P,virtualListContainer:xe,virtualListContent:L,handleVirtualListScroll:Se,timePickerSize:n.timePickerSize,dateInputValue:x,datePickerSlots:p,handleQuickMonthClick:pe,justifyColumnsScrollState:we,calendarValue:S,onUpdateCalendarValue:I})}var ei=s({name:`MonthPanel`,props:Object.assign(Object.assign({},Qr),{type:{type:String,required:!0},useAsQuickJump:Boolean}),setup(e){let t=$r(e,e.type),{dateLocaleRef:n}=Ee(`DatePicker`),r=e=>{switch(e.type){case`year`:return Pr(e.dateObject.year,e.yearFormat,n.value.locale);case`month`:return Nr(e.dateObject.month,e.monthFormat,n.value.locale);case`quarter`:return Fr(e.dateObject.quarter,e.quarterFormat,n.value.locale)}},{useAsQuickJump:i}=e;return S(()=>{t.justifyColumnsScrollState()}),Object.assign(Object.assign({},t),{renderItem:(n,o,s)=>{let{mergedIsDateDisabled:c,handleDateClick:l,handleQuickMonthClick:u}=t;return a(`div`,{"data-n-date":!0,key:o,class:[`${s}-date-panel-month-calendar__picker-col-item`,n.isCurrent&&`${s}-date-panel-month-calendar__picker-col-item--current`,n.selected&&`${s}-date-panel-month-calendar__picker-col-item--selected`,!i&&c(n.ts,n.type===`year`?{type:`year`,year:n.dateObject.year}:n.type===`month`?{type:`month`,year:n.dateObject.year,month:n.dateObject.month}:n.type===`quarter`?{type:`month`,year:n.dateObject.year,month:n.dateObject.quarter}:null)&&`${s}-date-panel-month-calendar__picker-col-item--disabled`],onClick:()=>{var t,r;n.type===`year`?(t=e.onSelectYear)==null||t.call(e):n.type===`month`&&((r=e.onSelectMonth)==null||r.call(e)),i?u(n,t=>{e.onUpdateValue(t,!1)}):l(n)}},r(n))}})},render(){let{mergedClsPrefix:e,mergedTheme:t,shortcuts:n,actions:r,renderItem:i,type:o,onRender:s}=this;return s?.(),a(`div`,{ref:`selfRef`,tabindex:0,class:[`${e}-date-panel`,`${e}-date-panel--month`,!this.panel&&`${e}-date-panel--shadow`,this.themeClass],onFocus:this.handlePanelFocus,onKeydown:this.handlePanelKeyDown},a(`div`,{class:`${e}-date-panel-month-calendar`},a(I,{ref:`yearScrollbarRef`,class:`${e}-date-panel-month-calendar__picker-col`,theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,container:this.virtualListContainer,content:this.virtualListContent,horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>a(ue,{ref:`yearVlRef`,items:this.yearArray,itemSize:40,showScrollbar:!1,keyField:`ts`,onScroll:this.handleVirtualListScroll,paddingBottom:4},{default:({item:t,index:n})=>i(t,n,e)})}),o===`month`||o===`quarter`?a(`div`,{class:`${e}-date-panel-month-calendar__picker-col`},a(I,{ref:`monthScrollbarRef`,theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar},{default:()=>[(o===`month`?this.monthArray:this.quarterArray).map((t,n)=>i(t,n,e)),a(`div`,{class:`${e}-date-panel-${o}-calendar__padding`})]})):null),we(this.datePickerSlots.footer,t=>t?a(`div`,{class:`${e}-date-panel-footer`},t):null),r?.length||n?a(`div`,{class:`${e}-date-panel-actions`},a(`div`,{class:`${e}-date-panel-actions__prefix`},n&&Object.keys(n).map(e=>{let t=n[e];return Array.isArray(t)?null:a(xe,{size:`tiny`,onMouseenter:()=>{this.handleSingleShortcutMouseenter(t)},onClick:()=>{this.handleSingleShortcutClick(t)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>e})})),a(`div`,{class:`${e}-date-panel-actions__suffix`},r?.includes(`clear`)?B(this.datePickerSlots.clear,{onClear:this.handleClearClick,text:this.locale.clear},()=>[a(L,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:`tiny`,onClick:this.handleClearClick},{default:()=>this.locale.clear})]):null,r?.includes(`now`)?B(this.datePickerSlots.now,{onNow:this.handleNowClick,text:this.locale.now},()=>[a(L,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:`tiny`,onClick:this.handleNowClick},{default:()=>this.locale.now})]):null,r?.includes(`confirm`)?B(this.datePickerSlots.confirm,{onConfirm:this.handleConfirmClick,disabled:this.isDateInvalid,text:this.locale.confirm},()=>[a(L,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:`tiny`,type:`primary`,disabled:this.isDateInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm})]):null)):null,a(F,{onFocus:this.handleFocusDetectorFocus}))}}),ti=s({props:{mergedClsPrefix:{type:String,required:!0},value:Number,monthBeforeYear:{type:Boolean,required:!0},monthYearSeparator:{type:String,required:!0},fastYearSelect:Boolean,fastMonthSelect:Boolean,calendarMonth:{type:String,required:!0},calendarYear:{type:String,required:!0},onUpdateValue:{type:Function,required:!0}},setup(e){let t=O(null),n=O(null),r=O(!1);function i(){r.value=!r.value}function a(){e.fastYearSelect&&i()}function o(){e.fastMonthSelect&&i()}function s(e){r.value&&!t.value?.contains(pe(e))&&(r.value=!1)}function c(){i()}return{show:r,triggerRef:t,monthPanelRef:n,handleSelectYear:a,handleSelectMonth:o,handleHeaderClick:c,handleClickOutside:s}},render(){let{handleClickOutside:e,mergedClsPrefix:t}=this;return a(`div`,{class:`${t}-date-panel-month__month-year`,ref:`triggerRef`},a(ce,null,{default:()=>[a(N,null,{default:()=>a(`div`,{class:[`${t}-date-panel-month__text`,this.show&&`${t}-date-panel-month__text--active`],onClick:this.handleHeaderClick},this.monthBeforeYear?[this.calendarMonth,this.monthYearSeparator,this.calendarYear]:[this.calendarYear,this.monthYearSeparator,this.calendarMonth])}),a(le,{show:this.show,teleportDisabled:!0},{default:()=>a(Me,{name:`fade-in-scale-up-transition`,appear:!0},{default:()=>this.show?v(a(ei,{ref:`monthPanelRef`,onUpdateValue:this.onUpdateValue,onSelectYear:this.handleSelectYear,onSelectMonth:this.handleSelectMonth,actions:[],calendarHeaderMonthYearSeparator:this.monthYearSeparator,type:`month`,key:`month`,useAsQuickJump:!0,value:this.value}),[[_e,e,void 0,{capture:!0}]]):null})})]}))}}),ni=s({name:`DatePanel`,props:Object.assign(Object.assign({},Qr),{type:{type:String,required:!0}}),setup(e){return $r(e,e.type)},render(){let{mergedClsPrefix:e,mergedTheme:t,shortcuts:n,onRender:r,datePickerSlots:i,type:o}=this;return r?.(),a(`div`,{ref:`selfRef`,tabindex:0,class:[`${e}-date-panel`,`${e}-date-panel--${o}`,!this.panel&&`${e}-date-panel--shadow`,this.themeClass],onFocus:this.handlePanelFocus,onKeydown:this.handlePanelKeyDown},a(`div`,{class:`${e}-date-panel-calendar`},a(`div`,{class:`${e}-date-panel-month`},a(`div`,{class:`${e}-date-panel-month__fast-prev`,onClick:this.prevYear},V(i[`prev-year`],()=>[a(it,null)])),a(`div`,{class:`${e}-date-panel-month__prev`,onClick:this.prevMonth},V(i[`prev-month`],()=>[a(nt,null)])),a(ti,{fastYearSelect:this.fastYearSelect,fastMonthSelect:this.fastMonthSelect,monthYearSeparator:this.calendarHeaderMonthYearSeparator,monthBeforeYear:this.calendarMonthBeforeYear,value:this.calendarValue,onUpdateValue:this.onUpdateCalendarValue,mergedClsPrefix:e,calendarMonth:this.calendarMonth,calendarYear:this.calendarYear}),a(`div`,{class:`${e}-date-panel-month__next`,onClick:this.nextMonth},V(i[`next-month`],()=>[a(ot,null)])),a(`div`,{class:`${e}-date-panel-month__fast-next`,onClick:this.nextYear},V(i[`next-year`],()=>[a(at,null)]))),a(`div`,{class:`${e}-date-panel-weekdays`},this.weekdays.map(t=>a(`div`,{key:t,class:`${e}-date-panel-weekdays__day`},t))),a(`div`,{class:`${e}-date-panel-dates`},this.dateArray.map((t,n)=>a(`div`,{"data-n-date":!0,key:n,class:[`${e}-date-panel-date`,{[`${e}-date-panel-date--current`]:t.isCurrentDate,[`${e}-date-panel-date--selected`]:t.selected,[`${e}-date-panel-date--excluded`]:!t.inCurrentMonth,[`${e}-date-panel-date--disabled`]:this.mergedIsDateDisabled(t.ts,{type:`date`,year:t.dateObject.year,month:t.dateObject.month,date:t.dateObject.date}),[`${e}-date-panel-date--week-hovered`]:this.isWeekHovered(t),[`${e}-date-panel-date--week-selected`]:t.inSelectedWeek}],onClick:()=>{this.handleDateClick(t)},onMouseenter:()=>{this.handleDateMouseEnter(t)}},a(`div`,{class:`${e}-date-panel-date__trigger`}),t.dateObject.date,t.isCurrentDate?a(`div`,{class:`${e}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?a(`div`,{class:`${e}-date-panel-footer`},this.datePickerSlots.footer()):null,this.actions?.length||n?a(`div`,{class:`${e}-date-panel-actions`},a(`div`,{class:`${e}-date-panel-actions__prefix`},n&&Object.keys(n).map(e=>{let t=n[e];return Array.isArray(t)?null:a(xe,{size:`tiny`,onMouseenter:()=>{this.handleSingleShortcutMouseenter(t)},onClick:()=>{this.handleSingleShortcutClick(t)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>e})})),a(`div`,{class:`${e}-date-panel-actions__suffix`},this.actions?.includes(`clear`)?B(this.$slots.clear,{onClear:this.handleClearClick,text:this.locale.clear},()=>[a(L,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:`tiny`,onClick:this.handleClearClick},{default:()=>this.locale.clear})]):null,this.actions?.includes(`now`)?B(this.$slots.now,{onNow:this.handleNowClick,text:this.locale.now},()=>[a(L,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:`tiny`,onClick:this.handleNowClick},{default:()=>this.locale.now})]):null)):null,a(F,{onFocus:this.handleFocusDetectorFocus}))}}),ri=Object.assign(Object.assign({},Xr),{defaultCalendarStartTime:Number,defaultCalendarEndTime:Number,bindCalendarMonths:Boolean,actions:{type:Array,default:()=>[`clear`,`confirm`]}});function ii(e,t){let{isDateDisabledRef:n,isStartHourDisabledRef:r,isEndHourDisabledRef:i,isStartMinuteDisabledRef:a,isEndMinuteDisabledRef:o,isStartSecondDisabledRef:s,isEndSecondDisabledRef:c,isStartDateInvalidRef:l,isEndDateInvalidRef:d,isStartTimeInvalidRef:f,isEndTimeInvalidRef:ee,isStartValueInvalidRef:p,isEndValueInvalidRef:te,isRangeInvalidRef:m,localeRef:h,rangesRef:g,closeOnSelectRef:_,updateValueOnCloseRef:v,firstDayOfWeekRef:y,datePickerSlots:x,monthFormatRef:S,yearFormatRef:C,quarterFormatRef:ne,yearRangeRef:w}=u(Yr),E={isDateDisabled:n,isStartHourDisabled:r,isEndHourDisabled:i,isStartMinuteDisabled:a,isEndMinuteDisabled:o,isStartSecondDisabled:s,isEndSecondDisabled:c,isStartDateInvalid:l,isEndDateInvalid:d,isStartTimeInvalid:f,isEndTimeInvalid:ee,isStartValueInvalid:p,isEndValueInvalid:te,isRangeInvalid:m},D=Zr(e),k=O(null),A=O(null),re=O(null),ie=O(null),ae=O(null),j=O(null),M=O(null),oe=O(null),{value:se}=e,ce=e.defaultCalendarStartTime??(Array.isArray(se)&&typeof se[0]==`number`?se[0]:Date.now()),N=O(ce),P=O(e.defaultCalendarEndTime??(Array.isArray(se)&&typeof se[1]==`number`?se[1]:q(ut(ce,1))));Oe(!0);let le=O(Date.now()),ue=O(!1),F=O(0),de=T(()=>e.dateFormat||h.value.dateFormat),fe=T(()=>e.calendarDayFormat||h.value.dayFormat),pe=O(Array.isArray(se)?G(se[0],de.value,D.dateFnsOptions.value):``),I=O(Array.isArray(se)?G(se[1],de.value,D.dateFnsOptions.value):``),me=T(()=>ue.value?`end`:`start`),he=T(()=>Br(N.value,e.value,le.value,y.value??h.value.firstDayOfWeek)),ge=T(()=>Br(P.value,e.value,le.value,y.value??h.value.firstDayOfWeek)),_e=T(()=>he.value.slice(0,7).map(e=>{let{ts:t}=e;return G(t,fe.value,D.dateFnsOptions.value)})),ve=T(()=>G(N.value,e.calendarHeaderMonthFormat||h.value.monthFormat,D.dateFnsOptions.value)),ye=T(()=>G(P.value,e.calendarHeaderMonthFormat||h.value.monthFormat,D.dateFnsOptions.value)),be=T(()=>G(N.value,e.calendarHeaderYearFormat||h.value.yearFormat,D.dateFnsOptions.value)),xe=T(()=>G(P.value,e.calendarHeaderYearFormat||h.value.yearFormat,D.dateFnsOptions.value)),L=T(()=>{let{value:t}=e;return Array.isArray(t)?t[0]:null}),Se=T(()=>{let{value:t}=e;return Array.isArray(t)?t[1]:null}),R=T(()=>{let{shortcuts:t}=e;return t||g.value}),Ce=T(()=>Ur(Jr(e.value,`start`),le.value,{yearFormat:C.value},w)),z=T(()=>Ur(Jr(e.value,`end`),le.value,{yearFormat:C.value},w)),we=T(()=>{let t=Jr(e.value,`start`);return Hr(t??Date.now(),t,le.value,{quarterFormat:ne.value})}),B=T(()=>{let t=Jr(e.value,`end`);return Hr(t??Date.now(),t,le.value,{quarterFormat:ne.value})}),V=T(()=>{let t=Jr(e.value,`start`);return Vr(t??Date.now(),t,le.value,{monthFormat:S.value})}),Te=T(()=>{let t=Jr(e.value,`end`);return Vr(t??Date.now(),t,le.value,{monthFormat:S.value})}),Ee=T(()=>e.calendarHeaderMonthBeforeYear??h.value.monthBeforeYear);b(T(()=>e.value),e=>{if(e!==null&&Array.isArray(e)){let[t,n]=e;pe.value=G(t,de.value,D.dateFnsOptions.value),I.value=G(n,de.value,D.dateFnsOptions.value),ue.value||Be(e)}else pe.value=``,I.value=``});function De(e,n){(t===`daterange`||t===`datetimerange`)&&(J(e)!==J(n)||K(e)!==K(n))&&D.disableTransitionOneTick()}b(N,De),b(P,De);function Oe(t){let n=wt(N.value),r=wt(P.value);(e.bindCalendarMonths||n>=r)&&(t?P.value=q(ut(n,1)):N.value=q(ut(r,-1)))}function ke(){N.value=q(ut(N.value,12)),Oe(!0)}function Ae(){N.value=q(ut(N.value,-12)),Oe(!0)}function je(){N.value=q(ut(N.value,1)),Oe(!0)}function Me(){N.value=q(ut(N.value,-1)),Oe(!0)}function Ne(){P.value=q(ut(P.value,12)),Oe(!1)}function Pe(){P.value=q(ut(P.value,-12)),Oe(!1)}function Fe(){P.value=q(ut(P.value,1)),Oe(!1)}function Ie(){P.value=q(ut(P.value,-1)),Oe(!1)}function Le(e){N.value=e,Oe(!0)}function Re(e){P.value=e,Oe(!1)}function ze(t){let r=n.value;if(!r)return!1;if(!Array.isArray(e.value)||me.value===`start`)return r(t,`start`,null);{let{value:e}=F;return t=F.value?qe(F.value,e.ts,`wipPreview`):qe(e.ts,F.value,`wipPreview`)}}function Ue(){m.value||(D.doConfirm(),We())}function We(){ue.value=!1,e.active&&D.doClose()}function Ge(t){typeof t!=`number`&&(t=q(t)),e.value===null?D.doUpdateValue([t,t],e.panel):Array.isArray(e.value)&&D.doUpdateValue([t,Math.max(e.value[1],t)],e.panel)}function Ke(t){typeof t!=`number`&&(t=q(t)),e.value===null?D.doUpdateValue([t,t],e.panel):Array.isArray(e.value)&&D.doUpdateValue([Math.min(e.value[0],t),t],e.panel)}function qe(n,r,i){if(typeof n!=`number`&&(n=q(n)),i!==`shortcutPreview`&&i!==`shortcutDone`){let i,a;if(t===`datetimerange`){let{defaultTime:t}=e;typeof t==`function`?(i=Kr(n,t,`start`,[n,r]),a=Kr(r,t,`end`,[n,r])):Array.isArray(t)?(i=qr(t[0]),a=qr(t[1])):(i=qr(t),a=i)}i&&(n=q(xr(n,i))),a&&(r=q(xr(r,a)))}D.doUpdateValue([n,r],e.panel&&(i===`done`||i===`shortcutDone`))}function Je(e){return q(t===`datetimerange`?vr(e):t===`monthrange`?wt(e):mt(e))}function Ye(t){let n=Wr(t,de.value,new Date,D.dateFnsOptions.value);xt(n)?e.value?Array.isArray(e.value)&&Ge(Je(q(xr(e.value[0],{year:J(n),month:K(n),date:$t(n)})))):Ge(Je(q(xr(new Date,{year:J(n),month:K(n),date:$t(n)})))):pe.value=t}function Xe(t){let n=Wr(t,de.value,new Date,D.dateFnsOptions.value);xt(n)?e.value===null?Ke(Je(q(xr(new Date,{year:J(n),month:K(n),date:$t(n)})))):Array.isArray(e.value)&&Ke(Je(q(xr(e.value[1],{year:J(n),month:K(n),date:$t(n)})))):I.value=t}function H(){let t=Wr(pe.value,de.value,new Date,D.dateFnsOptions.value),{value:n}=e;xt(t)?n===null?Ge(Je(q(xr(new Date,{year:J(t),month:K(t),date:$t(t)})))):Array.isArray(n)&&Ge(Je(q(xr(n[0],{year:J(t),month:K(t),date:$t(t)})))):Qe()}function Ze(){let t=Wr(I.value,de.value,new Date,D.dateFnsOptions.value),{value:n}=e;xt(t)?n===null?Ke(Je(q(xr(new Date,{year:J(t),month:K(t),date:$t(t)})))):Array.isArray(n)&&Ke(Je(q(xr(n[1],{year:J(t),month:K(t),date:$t(t)})))):Qe()}function Qe(t){let{value:n}=e;if(n===null||!Array.isArray(n)){pe.value=``,I.value=``;return}t===void 0&&(t=n),pe.value=G(t[0],de.value,D.dateFnsOptions.value),I.value=G(t[1],de.value,D.dateFnsOptions.value)}function $e(e){e!==null&&Ge(e)}function U(e){e!==null&&Ke(e)}function et(e){D.cachePendingValue();let t=D.getShortcutValue(e);Array.isArray(t)&&qe(t[0],t[1],`shortcutPreview`)}function tt(e){let t=D.getShortcutValue(e);Array.isArray(t)&&(qe(t[0],t[1],`shortcutDone`),D.clearPendingValue(),Ue())}function nt(t,n){let r=t===void 0?e.value:t;if(t===void 0||n===`start`){if(M.value){let e=K(Array.isArray(r)?r[0]:Date.now());M.value.scrollTo({debounce:!1,index:e,elSize:40})}if(ae.value){let e=J(Array.isArray(r)?r[0]:Date.now())-w.value[0];ae.value.scrollTo({index:e,debounce:!1})}}if(t===void 0||n===`end`){if(oe.value){let e=K(Array.isArray(r)?r[1]:Date.now());oe.value.scrollTo({debounce:!1,index:e,elSize:40})}if(j.value){let e=J(Array.isArray(r)?r[1]:Date.now())-w.value[0];j.value.scrollTo({index:e,debounce:!1})}}}function rt(n,r){let{value:i}=e,a=!Array.isArray(i),o=n.type===`year`&&t!==`yearrange`?a?xr(n.ts,{month:K(t===`quarterrange`?Ct(new Date):new Date)}).valueOf():xr(n.ts,{month:K(t===`quarterrange`?Ct(i[r===`start`?0:1]):i[r===`start`?0:1])}).valueOf():n.ts;if(a){let t=Je(o),n=[t,t];D.doUpdateValue(n,e.panel),nt(n,`start`),nt(n,`end`),D.disableTransitionOneTick();return}let s=[i[0],i[1]],c=!1;switch(r===`start`?(s[0]=Je(o),s[0]>s[1]&&(s[1]=s[0],c=!0)):(s[1]=Je(o),s[0]>s[1]&&(s[0]=s[1],c=!0)),D.doUpdateValue(s,e.panel),t){case`monthrange`:case`quarterrange`:D.disableTransitionOneTick(),c?(nt(s,`start`),nt(s,`end`)):nt(s,r);break;case`yearrange`:D.disableTransitionOneTick(),nt(s,`start`),nt(s,`end`)}}function it(){var e;(e=re.value)==null||e.sync()}function at(){var e;(e=ie.value)==null||e.sync()}function ot(e){return e===`start`?ae.value?.listElRef||null:j.value?.listElRef||null}function st(e){return e===`start`?ae.value?.itemsElRef||null:j.value?.itemsElRef||null}let ct={startYearVlRef:ae,endYearVlRef:j,startMonthScrollbarRef:M,endMonthScrollbarRef:oe,startYearScrollbarRef:re,endYearScrollbarRef:ie};return Object.assign(Object.assign(Object.assign(Object.assign({startDatesElRef:k,endDatesElRef:A,handleDateClick:Ve,handleColItemClick:rt,handleDateMouseEnter:He,handleConfirmClick:Ue,startCalendarPrevYear:Ae,startCalendarPrevMonth:Me,startCalendarNextYear:ke,startCalendarNextMonth:je,endCalendarPrevYear:Pe,endCalendarPrevMonth:Ie,endCalendarNextMonth:Fe,endCalendarNextYear:Ne,mergedIsDateDisabled:ze,changeStartEndTime:qe,ranges:g,calendarMonthBeforeYear:Ee,startCalendarMonth:ve,startCalendarYear:be,endCalendarMonth:ye,endCalendarYear:xe,weekdays:_e,startDateArray:he,endDateArray:ge,startYearArray:Ce,startMonthArray:V,startQuarterArray:we,endYearArray:z,endMonthArray:Te,endQuarterArray:B,isSelecting:ue,handleRangeShortcutMouseenter:et,handleRangeShortcutClick:tt},D),E),ct),{startDateDisplayString:pe,endDateInput:I,timePickerSize:D.timePickerSize,startTimeValue:L,endTimeValue:Se,datePickerSlots:x,shortcuts:R,startCalendarDateTime:N,endCalendarDateTime:P,justifyColumnsScrollState:nt,handleFocusDetectorFocus:D.handleFocusDetectorFocus,handleStartTimePickerChange:$e,handleEndTimePickerChange:U,handleStartDateInput:Ye,handleStartDateInputBlur:H,handleEndDateInput:Xe,handleEndDateInputBlur:Ze,handleStartYearVlScroll:it,handleEndYearVlScroll:at,virtualListContainer:ot,virtualListContent:st,onUpdateStartCalendarValue:Le,onUpdateEndCalendarValue:Re})}var ai=s({name:`DateRangePanel`,props:ri,setup(e){return ii(e,`daterange`)},render(){let{mergedClsPrefix:e,mergedTheme:t,shortcuts:n,onRender:r,datePickerSlots:i}=this;return r?.(),a(`div`,{ref:`selfRef`,tabindex:0,class:[`${e}-date-panel`,`${e}-date-panel--daterange`,!this.panel&&`${e}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},a(`div`,{ref:`startDatesElRef`,class:`${e}-date-panel-calendar ${e}-date-panel-calendar--start`},a(`div`,{class:`${e}-date-panel-month`},a(`div`,{class:`${e}-date-panel-month__fast-prev`,onClick:this.startCalendarPrevYear},V(i[`prev-year`],()=>[a(it,null)])),a(`div`,{class:`${e}-date-panel-month__prev`,onClick:this.startCalendarPrevMonth},V(i[`prev-month`],()=>[a(nt,null)])),a(ti,{fastYearSelect:this.fastYearSelect,fastMonthSelect:this.fastMonthSelect,monthYearSeparator:this.calendarHeaderMonthYearSeparator,monthBeforeYear:this.calendarMonthBeforeYear,value:this.startCalendarDateTime,onUpdateValue:this.onUpdateStartCalendarValue,mergedClsPrefix:e,calendarMonth:this.startCalendarMonth,calendarYear:this.startCalendarYear}),a(`div`,{class:`${e}-date-panel-month__next`,onClick:this.startCalendarNextMonth},V(i[`next-month`],()=>[a(ot,null)])),a(`div`,{class:`${e}-date-panel-month__fast-next`,onClick:this.startCalendarNextYear},V(i[`next-year`],()=>[a(at,null)]))),a(`div`,{class:`${e}-date-panel-weekdays`},this.weekdays.map(t=>a(`div`,{key:t,class:`${e}-date-panel-weekdays__day`},t))),a(`div`,{class:`${e}-date-panel__divider`}),a(`div`,{class:`${e}-date-panel-dates`},this.startDateArray.map((t,n)=>a(`div`,{"data-n-date":!0,key:n,class:[`${e}-date-panel-date`,{[`${e}-date-panel-date--excluded`]:!t.inCurrentMonth,[`${e}-date-panel-date--current`]:t.isCurrentDate,[`${e}-date-panel-date--selected`]:t.selected,[`${e}-date-panel-date--covered`]:t.inSpan,[`${e}-date-panel-date--start`]:t.startOfSpan,[`${e}-date-panel-date--end`]:t.endOfSpan,[`${e}-date-panel-date--disabled`]:this.mergedIsDateDisabled(t.ts)}],onClick:()=>{this.handleDateClick(t)},onMouseenter:()=>{this.handleDateMouseEnter(t)}},a(`div`,{class:`${e}-date-panel-date__trigger`}),t.dateObject.date,t.isCurrentDate?a(`div`,{class:`${e}-date-panel-date__sup`}):null)))),a(`div`,{class:`${e}-date-panel__vertical-divider`}),a(`div`,{ref:`endDatesElRef`,class:`${e}-date-panel-calendar ${e}-date-panel-calendar--end`},a(`div`,{class:`${e}-date-panel-month`},a(`div`,{class:`${e}-date-panel-month__fast-prev`,onClick:this.endCalendarPrevYear},V(i[`prev-year`],()=>[a(it,null)])),a(`div`,{class:`${e}-date-panel-month__prev`,onClick:this.endCalendarPrevMonth},V(i[`prev-month`],()=>[a(nt,null)])),a(ti,{fastYearSelect:this.fastYearSelect,fastMonthSelect:this.fastMonthSelect,monthYearSeparator:this.calendarHeaderMonthYearSeparator,monthBeforeYear:this.calendarMonthBeforeYear,value:this.endCalendarDateTime,onUpdateValue:this.onUpdateEndCalendarValue,mergedClsPrefix:e,calendarMonth:this.endCalendarMonth,calendarYear:this.endCalendarYear}),a(`div`,{class:`${e}-date-panel-month__next`,onClick:this.endCalendarNextMonth},V(i[`next-month`],()=>[a(ot,null)])),a(`div`,{class:`${e}-date-panel-month__fast-next`,onClick:this.endCalendarNextYear},V(i[`next-year`],()=>[a(at,null)]))),a(`div`,{class:`${e}-date-panel-weekdays`},this.weekdays.map(t=>a(`div`,{key:t,class:`${e}-date-panel-weekdays__day`},t))),a(`div`,{class:`${e}-date-panel__divider`}),a(`div`,{class:`${e}-date-panel-dates`},this.endDateArray.map((t,n)=>a(`div`,{"data-n-date":!0,key:n,class:[`${e}-date-panel-date`,{[`${e}-date-panel-date--excluded`]:!t.inCurrentMonth,[`${e}-date-panel-date--current`]:t.isCurrentDate,[`${e}-date-panel-date--selected`]:t.selected,[`${e}-date-panel-date--covered`]:t.inSpan,[`${e}-date-panel-date--start`]:t.startOfSpan,[`${e}-date-panel-date--end`]:t.endOfSpan,[`${e}-date-panel-date--disabled`]:this.mergedIsDateDisabled(t.ts)}],onClick:()=>{this.handleDateClick(t)},onMouseenter:()=>{this.handleDateMouseEnter(t)}},a(`div`,{class:`${e}-date-panel-date__trigger`}),t.dateObject.date,t.isCurrentDate?a(`div`,{class:`${e}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?a(`div`,{class:`${e}-date-panel-footer`},this.datePickerSlots.footer()):null,this.actions?.length||n?a(`div`,{class:`${e}-date-panel-actions`},a(`div`,{class:`${e}-date-panel-actions__prefix`},n&&Object.keys(n).map(e=>{let t=n[e];return Array.isArray(t)||typeof t==`function`?a(xe,{size:`tiny`,onMouseenter:()=>{this.handleRangeShortcutMouseenter(t)},onClick:()=>{this.handleRangeShortcutClick(t)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>e}):null})),a(`div`,{class:`${e}-date-panel-actions__suffix`},this.actions?.includes(`clear`)?B(i.clear,{onClear:this.handleClearClick,text:this.locale.clear},()=>[a(L,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:`tiny`,onClick:this.handleClearClick},{default:()=>this.locale.clear})]):null,this.actions?.includes(`confirm`)?B(i.confirm,{onConfirm:this.handleConfirmClick,disabled:this.isRangeInvalid||this.isSelecting,text:this.locale.confirm},()=>[a(L,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:`tiny`,type:`primary`,disabled:this.isRangeInvalid||this.isSelecting,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm})]):null)):null,a(F,{onFocus:this.handleFocusDetectorFocus}))}});function oi(e,t,n){let r=nn(),i=li(e,n.timeZone,n.locale??r.locale);return`formatToParts`in i?si(i,t):ci(i,t)}function si(e,t){let n=e.formatToParts(t);for(let e=n.length-1;e>=0;--e)if(n[e].type===`timeZoneName`)return n[e].value}function ci(e,t){let n=e.format(t).replace(/\u200E/g,``),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):``}function li(e,t,n){return new Intl.DateTimeFormat(n?[n.code,`en-US`]:void 0,{timeZone:t,timeZoneName:e})}function ui(e,t){let n=_i(t);return`formatToParts`in n?fi(n,e):pi(n,e)}var di={year:0,month:1,day:2,hour:3,minute:4,second:5};function fi(e,t){try{let n=e.formatToParts(t),r=[];for(let e=0;e=0?a:1e3+a,r-i}function Ti(e,t,n){let r=e.getTime()-t,i=wi(new Date(r),n);if(t===i)return t;r-=i-t;let a=wi(new Date(r),n);return i===a?i:Math.max(i,a)}function Ei(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}var Di={};function Oi(e){if(Di[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),Di[e]=!0,!0}catch{return!1}}var ki=60*1e3,Ai={X:function(e,t,n){let r=ji(n.timeZone,e);if(r===0)return`Z`;switch(t){case`X`:return Pi(r);case`XXXX`:case`XX`:return Ni(r);default:return Ni(r,`:`)}},x:function(e,t,n){let r=ji(n.timeZone,e);switch(t){case`x`:return Pi(r);case`xxxx`:case`xx`:return Ni(r);default:return Ni(r,`:`)}},O:function(e,t,n){let r=ji(n.timeZone,e);switch(t){case`O`:case`OO`:case`OOO`:return`GMT`+Fi(r,`:`);default:return`GMT`+Ni(r,`:`)}},z:function(e,t,n){switch(t){case`z`:case`zz`:case`zzz`:return oi(`short`,e,n);default:return oi(`long`,e,n)}}};function ji(e,t){let n=e?Si(e,t,!0)/ki:t?.getTimezoneOffset()??0;if(Number.isNaN(n))throw RangeError(`Invalid time zone specified: `+e);return n}function Mi(e,t){let n=e<0?`-`:``,r=Math.abs(e).toString();for(;r.length0?`-`:`+`,r=Math.abs(e),i=Mi(Math.floor(r/60),2),a=Mi(Math.floor(r%60),2);return n+i+t+a}function Pi(e,t){return e%60==0?(e>0?`-`:`+`)+Mi(Math.abs(e)/60,2):Ni(e,t)}function Fi(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=Math.floor(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+Mi(a,2)}function Ii(e){let t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e-+t}var Li=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,Ri=36e5,zi=6e4,Bi=2,Vi={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:Li};function Hi(e,t={}){if(arguments.length<1)throw TypeError(`1 argument required, but only `+arguments.length+` present`);if(e===null)return new Date(NaN);let n=t.additionalDigits==null?Bi:Number(t.additionalDigits);if(n!==2&&n!==1&&n!==0)throw RangeError(`additionalDigits must be 0, 1 or 2`);if(e instanceof Date||typeof e==`object`&&Object.prototype.toString.call(e)===`[object Date]`)return new Date(e.getTime());if(typeof e==`number`||Object.prototype.toString.call(e)===`[object Number]`)return new Date(e);if(Object.prototype.toString.call(e)!==`[object String]`)return new Date(NaN);let r=Ui(e),{year:i,restDateString:a}=Wi(r.date,n),o=Gi(a,i);if(o===null||isNaN(o.getTime()))return new Date(NaN);if(o){let e=o.getTime(),n=0,i;if(r.time&&(n=Ki(r.time),n===null||isNaN(n)))return new Date(NaN);if(r.timeZone||t.timeZone){if(i=Si(r.timeZone||t.timeZone,new Date(e+n)),isNaN(i))return new Date(NaN)}else i=Ii(new Date(e+n)),i=Ii(new Date(e+n+i));return new Date(e+n+i)}else return new Date(NaN)}function Ui(e){let t={},n=Vi.dateTimePattern.exec(e),r;if(n?(t.date=n[1],r=n[3]):(n=Vi.datePattern.exec(e),n?(t.date=n[1],r=n[2]):(t.date=null,r=e)),r){let e=Vi.timeZone.exec(r);e?(t.time=r.replace(e[1],``),t.timeZone=e[1].trim()):t.time=r}return t}function Wi(e,t){if(e){let n=Vi.YYY[t],r=Vi.YYYYY[t],i=Vi.YYYY.exec(e)||r.exec(e);if(i){let t=i[1];return{year:parseInt(t,10),restDateString:e.slice(t.length)}}if(i=Vi.YY.exec(e)||n.exec(e),i){let t=i[1];return{year:parseInt(t,10)*100,restDateString:e.slice(t.length)}}}return{year:null}}function Gi(e,t){if(t===null)return null;let n,r,i;if(!e||!e.length)return n=new Date(0),n.setUTCFullYear(t),n;let a=Vi.MM.exec(e);if(a)return n=new Date(0),r=parseInt(a[1],10)-1,Zi(t,r)?(n.setUTCFullYear(t,r),n):new Date(NaN);if(a=Vi.DDD.exec(e),a){n=new Date(0);let e=parseInt(a[1],10);return Qi(t,e)?(n.setUTCFullYear(t,0,e),n):new Date(NaN)}if(a=Vi.MMDD.exec(e),a){n=new Date(0),r=parseInt(a[1],10)-1;let e=parseInt(a[2],10);return Zi(t,r,e)?(n.setUTCFullYear(t,r,e),n):new Date(NaN)}if(a=Vi.Www.exec(e),a)return i=parseInt(a[1],10)-1,$i(i)?qi(t,i):new Date(NaN);if(a=Vi.WwwD.exec(e),a){i=parseInt(a[1],10)-1;let e=parseInt(a[2],10)-1;return $i(i,e)?qi(t,i,e):new Date(NaN)}return null}function Ki(e){let t,n,r=Vi.HH.exec(e);if(r)return t=parseFloat(r[1].replace(`,`,`.`)),ea(t)?t%24*Ri:NaN;if(r=Vi.HHMM.exec(e),r)return t=parseInt(r[1],10),n=parseFloat(r[2].replace(`,`,`.`)),ea(t,n)?t%24*Ri+n*zi:NaN;if(r=Vi.HHMMSS.exec(e),r){t=parseInt(r[1],10),n=parseInt(r[2],10);let e=parseFloat(r[3].replace(`,`,`.`));return ea(t,n,e)?t%24*Ri+n*zi+e*1e3:NaN}return null}function qi(e,t,n){t||=0,n||=0;let r=new Date(0);r.setUTCFullYear(e,0,4);let i=r.getUTCDay()||7,a=t*7+n+1-i;return r.setUTCDate(r.getUTCDate()+a),r}var Ji=[31,28,31,30,31,30,31,31,30,31,30,31],Yi=[31,29,31,30,31,30,31,31,30,31,30,31];function Xi(e){return e%400==0||e%4==0&&e%100!=0}function Zi(e,t,n){if(t<0||t>11)return!1;if(n!=null){if(n<1)return!1;let r=Xi(e);if(r&&n>Yi[t]||!r&&n>Ji[t])return!1}return!0}function Qi(e,t){if(t<1)return!1;let n=Xi(e);return!(n&&t>366||!n&&t>365)}function $i(e,t){return!(e<0||e>52||t!=null&&(t<0||t>6))}function ea(e,t,n){return!(e<0||e>=25||t!=null&&(t<0||t>=60)||n!=null&&(n<0||n>=60))}var ta=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function na(e,t,n={}){t=String(t);let r=t.match(ta);if(r){let i=Hi(n.originalDate||e,n);t=r.reduce(function(e,t){if(t[0]===`'`)return e;let r=e.indexOf(t),a=e[r-1]===`'`,o=e.replace(t,`'`+Ai[t[0]](i,t,n)+`'`);return a?o.substring(0,r-1)+o.substring(r+1):o},t)}return G(e,t,n)}function ra(e,t,n){e=Hi(e,n);let r=Si(t,e,!0),i=new Date(e.getTime()-r),a=new Date(0);return a.setFullYear(i.getUTCFullYear(),i.getUTCMonth(),i.getUTCDate()),a.setHours(i.getUTCHours(),i.getUTCMinutes(),i.getUTCSeconds(),i.getUTCMilliseconds()),a}function ia(e,t,n,r){return r={...r,timeZone:t,originalDate:e},na(ra(e,t,{timeZone:r.timeZone}),n,r)}var aa=y(`n-time-picker`),oa=s({name:`TimePickerPanelCol`,props:{clsPrefix:{type:String,required:!0},data:{type:Array,required:!0},activeValue:{type:[Number,String],default:null},onItemClick:Function},render(){let{activeValue:e,onItemClick:t,clsPrefix:n}=this;return this.data.map(r=>{let{label:i,disabled:o,value:s}=r,c=e===s;return a(`div`,{key:i,"data-active":c?``:null,class:[`${n}-time-picker-col__item`,c&&`${n}-time-picker-col__item--active`,o&&`${n}-time-picker-col__item--disabled`],onClick:t&&!o?()=>{t(s)}:void 0},i)})}}),sa={amHours:[`00`,`01`,`02`,`03`,`04`,`05`,`06`,`07`,`08`,`09`,`10`,`11`],pmHours:[`12`,`01`,`02`,`03`,`04`,`05`,`06`,`07`,`08`,`09`,`10`,`11`],hours:[`00`,`01`,`02`,`03`,`04`,`05`,`06`,`07`,`08`,`09`,`10`,`11`,`12`,`13`,`14`,`15`,`16`,`17`,`18`,`19`,`20`,`21`,`22`,`23`],minutes:`00.01.02.03.04.05.06.07.08.09.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24.25.26.27.28.29.30.31.32.33.34.35.36.37.38.39.40.41.42.43.44.45.46.47.48.49.50.51.52.53.54.55.56.57.58.59`.split(`.`),seconds:`00.01.02.03.04.05.06.07.08.09.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24.25.26.27.28.29.30.31.32.33.34.35.36.37.38.39.40.41.42.43.44.45.46.47.48.49.50.51.52.53.54.55.56.57.58.59`.split(`.`),period:[`AM`,`PM`]};function ca(e){return`00${e}`.slice(-2)}function la(e,t,n){return Array.isArray(t)?(n===`am`?t.filter(e=>e<12):n===`pm`?t.filter(e=>e>=12).map(e=>e===12?12:e-12):t).map(e=>ca(e)):typeof t==`number`?n===`am`?e.filter(e=>{let n=Number(e);return n<12&&n%t===0}):n===`pm`?e.filter(e=>{let n=Number(e);return n>=12&&n%t===0}).map(e=>{let t=Number(e);return ca(t===12?12:t-12)}):e.filter(e=>Number(e)%t===0):n===`am`?e.filter(e=>Number(e)<12):n===`pm`?e.map(e=>Number(e)).filter(e=>Number(e)>=12).map(e=>ca(e===12?12:e-12)):e}function ua(e,t,n){return n?typeof n==`number`?e%n===0:n.includes(e):!0}function da(e,t,n){let r=la(sa[t],n).map(Number),i,a;for(let t=0;te){a=n;break}i=n}return i===void 0?(a||g(`time-picker`,`Please set 'hours' or 'minutes' or 'seconds' props`),a):a===void 0||a-e>e-i?i:a}function fa(e){return rn(e)<12?`am`:`pm`}var pa=s({name:`TimePickerPanel`,props:{actions:{type:Array,default:()=>[`now`,`confirm`]},showHour:{type:Boolean,default:!0},showMinute:{type:Boolean,default:!0},showSecond:{type:Boolean,default:!0},showPeriod:{type:Boolean,default:!0},isHourInvalid:Boolean,isMinuteInvalid:Boolean,isSecondInvalid:Boolean,isAmPmInvalid:Boolean,isValueInvalid:Boolean,hourValue:{type:Number,default:null},minuteValue:{type:Number,default:null},secondValue:{type:Number,default:null},amPmValue:{type:String,default:null},isHourDisabled:Function,isMinuteDisabled:Function,isSecondDisabled:Function,onHourClick:{type:Function,required:!0},onMinuteClick:{type:Function,required:!0},onSecondClick:{type:Function,required:!0},onAmPmClick:{type:Function,required:!0},onNowClick:Function,clearText:String,nowText:String,confirmText:String,transitionDisabled:Boolean,onClearClick:Function,onConfirmClick:Function,onFocusin:Function,onFocusout:Function,onFocusDetectorFocus:Function,onKeydown:Function,hours:[Number,Array],minutes:[Number,Array],seconds:[Number,Array],use12Hours:Boolean},setup(e){let{mergedThemeRef:t,mergedClsPrefixRef:n}=u(aa);return{mergedTheme:t,mergedClsPrefix:n,hours:T(()=>{let{isHourDisabled:t,hours:n,use12Hours:r,amPmValue:i}=e;if(r){let e=i??fa(Date.now());return la(sa.hours,n,e).map(n=>{let r=Number(n),i=e===`pm`&&r!==12?r+12:r;return{label:n,value:i,disabled:t?t(i):!1}})}else return la(sa.hours,n).map(e=>({label:e,value:Number(e),disabled:t?t(Number(e)):!1}))}),minutes:T(()=>{let{isMinuteDisabled:t,minutes:n}=e;return la(sa.minutes,n).map(n=>({label:n,value:Number(n),disabled:t?t(Number(n),e.hourValue):!1}))}),seconds:T(()=>{let{isSecondDisabled:t,seconds:n}=e;return la(sa.seconds,n).map(n=>({label:n,value:Number(n),disabled:t?t(Number(n),e.minuteValue,e.hourValue):!1}))}),amPm:T(()=>{let{isHourDisabled:t}=e,n=!0,r=!0;for(let e=0;e<12;++e)if(!t?.(e)){n=!1;break}for(let e=12;e<24;++e)if(!t?.(e)){r=!1;break}return[{label:`AM`,value:`am`,disabled:n},{label:`PM`,value:`pm`,disabled:r}]}),hourScrollRef:O(null),minuteScrollRef:O(null),secondScrollRef:O(null),amPmScrollRef:O(null)}},render(){let{mergedClsPrefix:e,mergedTheme:t}=this;return a(`div`,{tabindex:0,class:`${e}-time-picker-panel`,onFocusin:this.onFocusin,onFocusout:this.onFocusout,onKeydown:this.onKeydown},a(`div`,{class:`${e}-time-picker-cols`},this.showHour?a(`div`,{class:[`${e}-time-picker-col`,this.isHourInvalid&&`${e}-time-picker-col--invalid`,this.transitionDisabled&&`${e}-time-picker-col--transition-disabled`]},a(I,{ref:`hourScrollRef`,theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar},{default:()=>[a(oa,{clsPrefix:e,data:this.hours,activeValue:this.hourValue,onItemClick:this.onHourClick}),a(`div`,{class:`${e}-time-picker-col__padding`})]})):null,this.showMinute?a(`div`,{class:[`${e}-time-picker-col`,this.transitionDisabled&&`${e}-time-picker-col--transition-disabled`,this.isMinuteInvalid&&`${e}-time-picker-col--invalid`]},a(I,{ref:`minuteScrollRef`,theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar},{default:()=>[a(oa,{clsPrefix:e,data:this.minutes,activeValue:this.minuteValue,onItemClick:this.onMinuteClick}),a(`div`,{class:`${e}-time-picker-col__padding`})]})):null,this.showSecond?a(`div`,{class:[`${e}-time-picker-col`,this.isSecondInvalid&&`${e}-time-picker-col--invalid`,this.transitionDisabled&&`${e}-time-picker-col--transition-disabled`]},a(I,{ref:`secondScrollRef`,theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar},{default:()=>[a(oa,{clsPrefix:e,data:this.seconds,activeValue:this.secondValue,onItemClick:this.onSecondClick}),a(`div`,{class:`${e}-time-picker-col__padding`})]})):null,this.use12Hours?a(`div`,{class:[`${e}-time-picker-col`,this.isAmPmInvalid&&`${e}-time-picker-col--invalid`,this.transitionDisabled&&`${e}-time-picker-col--transition-disabled`]},a(I,{ref:`amPmScrollRef`,theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar},{default:()=>[a(oa,{clsPrefix:e,data:this.amPm,activeValue:this.amPmValue,onItemClick:this.onAmPmClick}),a(`div`,{class:`${e}-time-picker-col__padding`})]})):null),this.actions?.length?a(`div`,{class:`${e}-time-picker-actions`},this.actions?.includes(`clear`)?a(L,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:`tiny`,onClick:this.onClearClick},{default:()=>this.clearText}):null,this.actions?.includes(`now`)?a(L,{size:`tiny`,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,onClick:this.onNowClick},{default:()=>this.nowText}):null,this.actions?.includes(`confirm`)?a(L,{size:`tiny`,type:`primary`,class:`${e}-time-picker-actions__confirm`,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,disabled:this.isValueInvalid,onClick:this.onConfirmClick},{default:()=>this.confirmText}):null):null,a(F,{onFocus:this.onFocusDetectorFocus}))}}),ma=j([A(`time-picker`,` - z-index: auto; - position: relative; - `,[A(`time-picker-icon`,` - color: var(--n-icon-color-override); - transition: color .3s var(--n-bezier); - `),k(`disabled`,[A(`time-picker-icon`,` - color: var(--n-icon-color-disabled-override); - `)])]),A(`time-picker-panel`,` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - outline: none; - font-size: var(--n-item-font-size); - border-radius: var(--n-border-radius); - margin: 4px 0; - min-width: 104px; - overflow: hidden; - background-color: var(--n-panel-color); - box-shadow: var(--n-panel-box-shadow); - `,[ve(),A(`time-picker-actions`,` - padding: var(--n-panel-action-padding); - align-items: center; - display: flex; - justify-content: space-evenly; - `),A(`time-picker-cols`,` - height: calc(var(--n-item-height) * 6); - display: flex; - position: relative; - transition: border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-panel-divider-color); - `),A(`time-picker-col`,` - flex-grow: 1; - min-width: var(--n-item-width); - height: calc(var(--n-item-height) * 6); - flex-direction: column; - transition: box-shadow .3s var(--n-bezier); - `,[k(`transition-disabled`,[M(`item`,`transition: none;`,[j(`&::before`,`transition: none;`)])]),M(`padding`,` - height: calc(var(--n-item-height) * 5); - `),j(`&:first-child`,`min-width: calc(var(--n-item-width) + 4px);`,[M(`item`,[j(`&::before`,`left: 4px;`)])]),M(`item`,` - cursor: pointer; - height: var(--n-item-height); - display: flex; - align-items: center; - justify-content: center; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - background: #0000; - text-decoration-color: #0000; - color: var(--n-item-text-color); - z-index: 0; - box-sizing: border-box; - padding-top: 4px; - position: relative; - `,[j(`&::before`,` - content: ""; - transition: background-color .3s var(--n-bezier); - z-index: -1; - position: absolute; - left: 0; - right: 4px; - top: 4px; - bottom: 0; - border-radius: var(--n-item-border-radius); - `),re(`disabled`,[j(`&:hover::before`,` - background-color: var(--n-item-color-hover); - `)]),k(`active`,` - color: var(--n-item-text-color-active); - `,[j(`&::before`,` - background-color: var(--n-item-color-hover); - `)]),k(`disabled`,` - opacity: var(--n-item-opacity-disabled); - cursor: not-allowed; - `)]),k(`invalid`,[M(`item`,[k(`active`,` - text-decoration: line-through; - text-decoration-color: var(--n-item-text-color-active); - `)])])])])]);function ha(e,t){return e===void 0?!0:Array.isArray(e)?e.every(e=>e>=0&&e<=t):e>=0&&e<=t}var ga=s({name:`TimePicker`,props:Object.assign(Object.assign({},se.props),{to:P.propTo,bordered:{type:Boolean,default:void 0},actions:Array,defaultValue:{type:Number,default:null},defaultFormattedValue:String,placeholder:String,placement:{type:String,default:`bottom-start`},value:Number,format:{type:String,default:`HH:mm:ss`},valueFormat:String,formattedValue:String,isHourDisabled:Function,size:String,isMinuteDisabled:Function,isSecondDisabled:Function,inputReadonly:Boolean,clearable:Boolean,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onUpdateFormattedValue:[Function,Array],"onUpdate:formattedValue":[Function,Array],onBlur:[Function,Array],onConfirm:[Function,Array],onClear:Function,onFocus:[Function,Array],timeZone:String,showIcon:{type:Boolean,default:!0},disabled:{type:Boolean,default:void 0},show:{type:Boolean,default:void 0},hours:{type:[Number,Array],validator:e=>ha(e,23)},minutes:{type:[Number,Array],validator:e=>ha(e,59)},seconds:{type:[Number,Array],validator:e=>ha(e,59)},use12Hours:Boolean,stateful:{type:Boolean,default:!0},onChange:[Function,Array]}),setup(e){let{mergedBorderedRef:t,mergedClsPrefixRef:n,namespaceRef:i,inlineThemeDisabled:a,mergedComponentPropsRef:o}=ae(e),{localeRef:s,dateLocaleRef:c}=Ee(`TimePicker`),l=Ce(e,{mergedSize:t=>{let{size:n}=e;if(n)return n;let{mergedSize:r}=t||{};return r?.value?r.value:o?.value?.TimePicker?.size||`medium`}}),{mergedSizeRef:u,mergedDisabledRef:f,mergedStatusRef:ee}=l,p=se(`TimePicker`,`-time-picker`,ma,Ie,e,n),m=He(),h=O(null),g=O(null),_=T(()=>({locale:c.value.locale}));function v(t){return t===null?null:Wr(t,e.valueFormat||e.format,new Date,_.value).getTime()}let{defaultValue:y,defaultFormattedValue:x}=e,S=O(x===void 0?y:v(x)),C=T(()=>{let{formattedValue:t}=e;if(t!==void 0)return v(t);let{value:n}=e;return n===void 0?S.value:n}),ne=T(()=>{let{timeZone:t}=e;return t?(e,n,r)=>ia(e,t,n,r):(e,t,n)=>G(e,t,n)}),w=O(``);b(()=>e.timeZone,()=>{let t=C.value;w.value=t===null?``:ne.value(t,e.format,_.value)},{immediate:!0});let E=O(!1),D=be(d(e,`show`),E),k=O(C.value),A=O(!1),re=T(()=>s.value.clear),j=T(()=>s.value.now),M=T(()=>e.placeholder===void 0?s.value.placeholder:e.placeholder),oe=T(()=>s.value.negativeText),ce=T(()=>s.value.positiveText),N=T(()=>/H|h|K|k/.test(e.format)),le=T(()=>e.format.includes(`m`)),ue=T(()=>e.format.includes(`s`)),F=T(()=>{let{value:e}=C;return e===null?null:Number(ne.value(e,`HH`,_.value))}),fe=T(()=>{let{value:e}=C;return e===null?null:Number(ne.value(e,`mm`,_.value))}),I=T(()=>{let{value:e}=C;return e===null?null:Number(ne.value(e,`ss`,_.value))}),me=T(()=>{let{isHourDisabled:t}=e;return F.value===null?!1:ua(F.value,`hours`,e.hours)?t?t(F.value):!1:!0}),he=T(()=>{let{value:t}=fe,{value:n}=F;if(t===null||n===null)return!1;if(!ua(t,`minutes`,e.minutes))return!0;let{isMinuteDisabled:r}=e;return r?r(t,n):!1}),ge=T(()=>{let{value:t}=fe,{value:n}=F,{value:r}=I;if(r===null||t===null||n===null)return!1;if(!ua(r,`seconds`,e.seconds))return!0;let{isSecondDisabled:i}=e;return i?i(r,t,n):!1}),_e=T(()=>me.value||he.value||ge.value),ve=T(()=>e.format.length+4),ye=T(()=>{let{value:e}=C;return e===null?null:rn(e)<12?`am`:`pm`});function xe(t,n){let{onUpdateFormattedValue:r,"onUpdate:formattedValue":i}=e;r&&z(r,t,n),i&&z(i,t,n)}function L(t){return t===null?null:ne.value(t,e.valueFormat||e.format)}function R(t){let{onUpdateValue:n,"onUpdate:value":r,onChange:i}=e,{nTriggerFormChange:a,nTriggerFormInput:o}=l,s=L(t);n&&z(n,t,s),r&&z(r,t,s),i&&z(i,t,s),xe(s,t),S.value=t,a(),o()}function we(t){let{onFocus:n}=e,{nTriggerFormFocus:r}=l;n&&z(n,t),r()}function B(t){let{onBlur:n}=e,{nTriggerFormBlur:r}=l;n&&z(n,t),r()}function V(){let{onConfirm:t}=e;t&&z(t,C.value,L(C.value))}function Te(t){var n;t.stopPropagation(),R(null),ze(null),(n=e.onClear)==null||n.call(e)}function De(){Xe({returnFocus:!0})}function Oe(){R(null),ze(null),Xe({returnFocus:!0})}function ke(e){e.key===`Escape`&&D.value&&Se(e)}function Ae(e){switch(e.key){case`Escape`:D.value&&(Se(e),Xe({returnFocus:!0}));break;case`Tab`:m.shift&&e.target===g.value?.$el&&(e.preventDefault(),Xe({returnFocus:!0}));break}}function je(){A.value=!0,r(()=>{A.value=!1})}function Me(e){f.value||de(e,`clear`)||D.value||Je()}function Ne(e){typeof e!=`string`&&(C.value===null?R(q(Sr(mr(new Date),e))):R(q(Sr(C.value,e))))}function Pe(e){typeof e!=`string`&&(C.value===null?R(q(Cr(hr(new Date),e))):R(q(Cr(C.value,e))))}function Le(e){typeof e!=`string`&&(C.value===null?R(q(Tr(vr(new Date),e))):R(q(Tr(C.value,e))))}function Re(e){let{value:t}=C;if(t===null){let t=new Date,n=rn(t);e===`pm`&&n<12?R(q(Sr(t,n+12))):e===`am`&&n>=12&&R(q(Sr(t,n-12))),R(q(t))}else{let n=rn(t);e===`pm`&&n<12?R(q(Sr(t,n+12))):e===`am`&&n>=12&&R(q(Sr(t,n-12)))}}function ze(t){t===void 0&&(t=C.value),t===null?w.value=``:w.value=ne.value(t,e.format,_.value)}function Be(e){qe(e)||we(e)}function Ve(e){qe(e)||(D.value?(g.value?.$el)?.contains(e.relatedTarget)||(ze(),B(e),Xe({returnFocus:!1})):(ze(),B(e)))}function Ue(){f.value||D.value||Je()}function We(){f.value||(ze(),Xe({returnFocus:!1}))}function Ge(){if(!g.value)return;let{hourScrollRef:e,minuteScrollRef:t,secondScrollRef:n,amPmScrollRef:r}=g.value;[e,t,n,r].forEach(e=>{if(!e)return;let t=e.contentRef?.querySelector(`[data-active]`);t&&e.scrollTo({top:t.offsetTop})})}function Ke(t){E.value=t;let{onUpdateShow:n,"onUpdate:show":r}=e;n&&z(n,t),r&&z(r,t)}function qe(e){return!!((h.value?.wrapperElRef)?.contains(e.relatedTarget)||g.value?.$el.contains(e.relatedTarget))}function Je(){k.value=C.value,Ke(!0),r(Ge)}function Ye(e){D.value&&!(h.value?.wrapperElRef)?.contains(pe(e))&&Xe({returnFocus:!1})}function Xe({returnFocus:e}){var t;D.value&&(Ke(!1),e&&((t=h.value)==null||t.focus()))}function H(t){if(t===``){R(null);return}let n=Wr(t,e.format,new Date,_.value);if(w.value=t,xt(n)){let{value:e}=C;R(q(e===null?n:xr(e,{hours:rn(n),minutes:sn(n),seconds:cn(n),milliseconds:on(n)})))}}function Ze(){R(k.value),Ke(!1)}function Qe(){let t=new Date,n={hours:rn,minutes:sn,seconds:cn},[r,i,a]=[`hours`,`minutes`,`seconds`].map(r=>!e[r]||ua(n[r](t),r,e[r])?n[r](t):da(n[r](t),r,e[r]));R(q(Tr(Cr(Sr(C.value?C.value:q(t),r),i),a)))}function $e(){ze(),V(),Xe({returnFocus:!0})}function U(e){qe(e)||(ze(),B(e),Xe({returnFocus:!1}))}b(C,e=>{ze(e),je(),r(Ge)}),b(D,()=>{_e.value&&R(k.value)}),te(aa,{mergedThemeRef:p,mergedClsPrefixRef:n});let et={focus:()=>{var e;(e=h.value)==null||e.focus()},blur:()=>{var e;(e=h.value)==null||e.blur()}},tt=T(()=>{let{common:{cubicBezierEaseInOut:e},self:{iconColor:t,iconColorDisabled:n}}=p.value;return{"--n-icon-color-override":t,"--n-icon-color-disabled-override":n,"--n-bezier":e}}),nt=a?ie(`time-picker-trigger`,void 0,tt,e):void 0,rt=T(()=>{let{self:{panelColor:e,itemTextColor:t,itemTextColorActive:n,itemColorHover:r,panelDividerColor:i,panelBoxShadow:a,itemOpacityDisabled:o,borderRadius:s,itemFontSize:c,itemWidth:l,itemHeight:u,panelActionPadding:d,itemBorderRadius:f},common:{cubicBezierEaseInOut:ee}}=p.value;return{"--n-bezier":ee,"--n-border-radius":s,"--n-item-color-hover":r,"--n-item-font-size":c,"--n-item-height":u,"--n-item-opacity-disabled":o,"--n-item-text-color":t,"--n-item-text-color-active":n,"--n-item-width":l,"--n-panel-action-padding":d,"--n-panel-box-shadow":a,"--n-panel-color":e,"--n-panel-divider-color":i,"--n-item-border-radius":f}}),it=a?ie(`time-picker`,void 0,rt,e):void 0;return{focus:et.focus,blur:et.blur,mergedStatus:ee,mergedBordered:t,mergedClsPrefix:n,namespace:i,uncontrolledValue:S,mergedValue:C,isMounted:Fe(),inputInstRef:h,panelInstRef:g,adjustedTo:P(e),mergedShow:D,localizedClear:re,localizedNow:j,localizedPlaceholder:M,localizedNegativeText:oe,localizedPositiveText:ce,hourInFormat:N,minuteInFormat:le,secondInFormat:ue,mergedAttrSize:ve,displayTimeString:w,mergedSize:u,mergedDisabled:f,isValueInvalid:_e,isHourInvalid:me,isMinuteInvalid:he,isSecondInvalid:ge,transitionDisabled:A,hourValue:F,minuteValue:fe,secondValue:I,amPmValue:ye,handleInputKeydown:ke,handleTimeInputFocus:Be,handleTimeInputBlur:Ve,handleNowClick:Qe,handleConfirmClick:$e,handleTimeInputUpdateValue:H,handleMenuFocusOut:U,handleCancelClick:Ze,handleClickOutside:Ye,handleTimeInputActivate:Ue,handleTimeInputDeactivate:We,handleHourClick:Ne,handleMinuteClick:Pe,handleSecondClick:Le,handleAmPmClick:Re,handleTimeInputClear:Te,handleFocusDetectorFocus:De,handleMenuKeydown:Ae,handleTriggerClick:Me,mergedTheme:p,triggerCssVars:a?void 0:tt,triggerThemeClass:nt?.themeClass,triggerOnRender:nt?.onRender,cssVars:a?void 0:rt,themeClass:it?.themeClass,onRender:it?.onRender,clearSelectedValue:Oe}},render(){let{mergedClsPrefix:e,$slots:t,triggerOnRender:n}=this;return n?.(),a(`div`,{class:[`${e}-time-picker`,this.triggerThemeClass],style:this.triggerCssVars},a(ce,null,{default:()=>[a(N,null,{default:()=>a(De,{ref:`inputInstRef`,status:this.mergedStatus,value:this.displayTimeString,bordered:this.mergedBordered,passivelyActivated:!0,attrSize:this.mergedAttrSize,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,stateful:this.stateful,size:this.mergedSize,placeholder:this.localizedPlaceholder,clearable:this.clearable,disabled:this.mergedDisabled,textDecoration:this.isValueInvalid?`line-through`:void 0,onFocus:this.handleTimeInputFocus,onBlur:this.handleTimeInputBlur,onActivate:this.handleTimeInputActivate,onDeactivate:this.handleTimeInputDeactivate,onUpdateValue:this.handleTimeInputUpdateValue,onClear:this.handleTimeInputClear,internalDeactivateOnEnter:!0,internalForceFocus:this.mergedShow,readonly:this.inputReadonly||this.mergedDisabled,onClick:this.handleTriggerClick,onKeydown:this.handleInputKeydown},this.showIcon?{[this.clearable?`clear-icon-placeholder`:`suffix`]:()=>a(Ne,{clsPrefix:e,class:`${e}-time-picker-icon`},{default:()=>t.icon?t.icon():a(st,null)})}:null)}),a(le,{teleportDisabled:this.adjustedTo===P.tdkey,show:this.mergedShow,to:this.adjustedTo,containerClass:this.namespace,placement:this.placement},{default:()=>a(Me,{name:`fade-in-scale-up-transition`,appear:this.isMounted},{default:()=>{var e;return this.mergedShow?((e=this.onRender)==null||e.call(this),v(a(pa,{ref:`panelInstRef`,actions:this.actions,class:this.themeClass,style:this.cssVars,seconds:this.seconds,minutes:this.minutes,hours:this.hours,transitionDisabled:this.transitionDisabled,hourValue:this.hourValue,showHour:this.hourInFormat,isHourInvalid:this.isHourInvalid,isHourDisabled:this.isHourDisabled,minuteValue:this.minuteValue,showMinute:this.minuteInFormat,isMinuteInvalid:this.isMinuteInvalid,isMinuteDisabled:this.isMinuteDisabled,secondValue:this.secondValue,amPmValue:this.amPmValue,showSecond:this.secondInFormat,isSecondInvalid:this.isSecondInvalid,isSecondDisabled:this.isSecondDisabled,isValueInvalid:this.isValueInvalid,clearText:this.localizedClear,nowText:this.localizedNow,confirmText:this.localizedPositiveText,use12Hours:this.use12Hours,onFocusout:this.handleMenuFocusOut,onKeydown:this.handleMenuKeydown,onHourClick:this.handleHourClick,onMinuteClick:this.handleMinuteClick,onSecondClick:this.handleSecondClick,onAmPmClick:this.handleAmPmClick,onNowClick:this.handleNowClick,onConfirmClick:this.handleConfirmClick,onClearClick:this.clearSelectedValue,onFocusDetectorFocus:this.handleFocusDetectorFocus}),[[_e,this.handleClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),_a=s({name:`DateTimePanel`,props:Qr,setup(e){return $r(e,`datetime`)},render(){let{mergedClsPrefix:e,mergedTheme:t,shortcuts:n,timePickerProps:r,datePickerSlots:i,onRender:o}=this;return o?.(),a(`div`,{ref:`selfRef`,tabindex:0,class:[`${e}-date-panel`,`${e}-date-panel--datetime`,!this.panel&&`${e}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},a(`div`,{class:`${e}-date-panel-header`},a(De,{value:this.dateInputValue,theme:t.peers.Input,themeOverrides:t.peerOverrides.Input,stateful:!1,size:this.timePickerSize,readonly:this.inputReadonly,class:`${e}-date-panel-date-input`,textDecoration:this.isDateInvalid?`line-through`:``,placeholder:this.locale.selectDate,onBlur:this.handleDateInputBlur,onUpdateValue:this.handleDateInput}),a(ga,Object.assign({size:this.timePickerSize,placeholder:this.locale.selectTime,format:this.timePickerFormat},Array.isArray(r)?void 0:r,{showIcon:!1,to:!1,theme:t.peers.TimePicker,themeOverrides:t.peerOverrides.TimePicker,value:Array.isArray(this.value)?null:this.value,isHourDisabled:this.isHourDisabled,isMinuteDisabled:this.isMinuteDisabled,isSecondDisabled:this.isSecondDisabled,onUpdateValue:this.handleTimePickerChange,stateful:!1}))),a(`div`,{class:`${e}-date-panel-calendar`},a(`div`,{class:`${e}-date-panel-month`},a(`div`,{class:`${e}-date-panel-month__fast-prev`,onClick:this.prevYear},V(i[`prev-year`],()=>[a(it,null)])),a(`div`,{class:`${e}-date-panel-month__prev`,onClick:this.prevMonth},V(i[`prev-month`],()=>[a(nt,null)])),a(ti,{fastYearSelect:this.fastYearSelect,fastMonthSelect:this.fastMonthSelect,monthYearSeparator:this.calendarHeaderMonthYearSeparator,monthBeforeYear:this.calendarMonthBeforeYear,value:this.calendarValue,onUpdateValue:this.onUpdateCalendarValue,mergedClsPrefix:e,calendarMonth:this.calendarMonth,calendarYear:this.calendarYear}),a(`div`,{class:`${e}-date-panel-month__next`,onClick:this.nextMonth},V(i[`next-month`],()=>[a(ot,null)])),a(`div`,{class:`${e}-date-panel-month__fast-next`,onClick:this.nextYear},V(i[`next-year`],()=>[a(at,null)]))),a(`div`,{class:`${e}-date-panel-weekdays`},this.weekdays.map(t=>a(`div`,{key:t,class:`${e}-date-panel-weekdays__day`},t))),a(`div`,{class:`${e}-date-panel-dates`},this.dateArray.map((t,n)=>a(`div`,{"data-n-date":!0,key:n,class:[`${e}-date-panel-date`,{[`${e}-date-panel-date--current`]:t.isCurrentDate,[`${e}-date-panel-date--selected`]:t.selected,[`${e}-date-panel-date--excluded`]:!t.inCurrentMonth,[`${e}-date-panel-date--disabled`]:this.mergedIsDateDisabled(t.ts,{type:`date`,year:t.dateObject.year,month:t.dateObject.month,date:t.dateObject.date})}],onClick:()=>{this.handleDateClick(t)}},a(`div`,{class:`${e}-date-panel-date__trigger`}),t.dateObject.date,t.isCurrentDate?a(`div`,{class:`${e}-date-panel-date__sup`}):null)))),this.datePickerSlots.footer?a(`div`,{class:`${e}-date-panel-footer`},this.datePickerSlots.footer()):null,this.actions?.length||n?a(`div`,{class:`${e}-date-panel-actions`},a(`div`,{class:`${e}-date-panel-actions__prefix`},n&&Object.keys(n).map(e=>{let t=n[e];return Array.isArray(t)?null:a(xe,{size:`tiny`,onMouseenter:()=>{this.handleSingleShortcutMouseenter(t)},onClick:()=>{this.handleSingleShortcutClick(t)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>e})})),a(`div`,{class:`${e}-date-panel-actions__suffix`},this.actions?.includes(`clear`)?B(this.datePickerSlots.clear,{onClear:this.clearSelectedDateTime,text:this.locale.clear},()=>[a(L,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:`tiny`,onClick:this.clearSelectedDateTime},{default:()=>this.locale.clear})]):null,this.actions?.includes(`now`)?B(i.now,{onNow:this.handleNowClick,text:this.locale.now},()=>[a(L,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:`tiny`,onClick:this.handleNowClick},{default:()=>this.locale.now})]):null,this.actions?.includes(`confirm`)?B(i.confirm,{onConfirm:this.handleConfirmClick,disabled:this.isDateInvalid,text:this.locale.confirm},()=>[a(L,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:`tiny`,type:`primary`,disabled:this.isDateInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm})]):null)):null,a(F,{onFocus:this.handleFocusDetectorFocus}))}}),va=s({name:`DateTimeRangePanel`,props:ri,setup(e){return ii(e,`datetimerange`)},render(){let{mergedClsPrefix:e,mergedTheme:t,shortcuts:n,timePickerProps:r,onRender:i,datePickerSlots:o}=this;return i?.(),a(`div`,{ref:`selfRef`,tabindex:0,class:[`${e}-date-panel`,`${e}-date-panel--datetimerange`,!this.panel&&`${e}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},a(`div`,{class:`${e}-date-panel-header`},a(De,{value:this.startDateDisplayString,theme:t.peers.Input,themeOverrides:t.peerOverrides.Input,size:this.timePickerSize,stateful:!1,readonly:this.inputReadonly,class:`${e}-date-panel-date-input`,textDecoration:this.isStartValueInvalid?`line-through`:``,placeholder:this.locale.selectDate,onBlur:this.handleStartDateInputBlur,onUpdateValue:this.handleStartDateInput}),a(ga,Object.assign({placeholder:this.locale.selectTime,format:this.timePickerFormat,size:this.timePickerSize},Array.isArray(r)?r[0]:r,{value:this.startTimeValue,to:!1,showIcon:!1,disabled:this.isSelecting,theme:t.peers.TimePicker,themeOverrides:t.peerOverrides.TimePicker,stateful:!1,isHourDisabled:this.isStartHourDisabled,isMinuteDisabled:this.isStartMinuteDisabled,isSecondDisabled:this.isStartSecondDisabled,onUpdateValue:this.handleStartTimePickerChange})),a(De,{value:this.endDateInput,theme:t.peers.Input,themeOverrides:t.peerOverrides.Input,stateful:!1,size:this.timePickerSize,readonly:this.inputReadonly,class:`${e}-date-panel-date-input`,textDecoration:this.isEndValueInvalid?`line-through`:``,placeholder:this.locale.selectDate,onBlur:this.handleEndDateInputBlur,onUpdateValue:this.handleEndDateInput}),a(ga,Object.assign({placeholder:this.locale.selectTime,format:this.timePickerFormat,size:this.timePickerSize},Array.isArray(r)?r[1]:r,{disabled:this.isSelecting,showIcon:!1,theme:t.peers.TimePicker,themeOverrides:t.peerOverrides.TimePicker,to:!1,stateful:!1,value:this.endTimeValue,isHourDisabled:this.isEndHourDisabled,isMinuteDisabled:this.isEndMinuteDisabled,isSecondDisabled:this.isEndSecondDisabled,onUpdateValue:this.handleEndTimePickerChange}))),a(`div`,{ref:`startDatesElRef`,class:`${e}-date-panel-calendar ${e}-date-panel-calendar--start`},a(`div`,{class:`${e}-date-panel-month`},a(`div`,{class:`${e}-date-panel-month__fast-prev`,onClick:this.startCalendarPrevYear},V(o[`prev-year`],()=>[a(it,null)])),a(`div`,{class:`${e}-date-panel-month__prev`,onClick:this.startCalendarPrevMonth},V(o[`prev-month`],()=>[a(nt,null)])),a(ti,{fastYearSelect:this.fastYearSelect,fastMonthSelect:this.fastMonthSelect,monthYearSeparator:this.calendarHeaderMonthYearSeparator,monthBeforeYear:this.calendarMonthBeforeYear,value:this.startCalendarDateTime,onUpdateValue:this.onUpdateStartCalendarValue,mergedClsPrefix:e,calendarMonth:this.startCalendarMonth,calendarYear:this.startCalendarYear}),a(`div`,{class:`${e}-date-panel-month__next`,onClick:this.startCalendarNextMonth},V(o[`next-month`],()=>[a(ot,null)])),a(`div`,{class:`${e}-date-panel-month__fast-next`,onClick:this.startCalendarNextYear},V(o[`next-year`],()=>[a(at,null)]))),a(`div`,{class:`${e}-date-panel-weekdays`},this.weekdays.map(t=>a(`div`,{key:t,class:`${e}-date-panel-weekdays__day`},t))),a(`div`,{class:`${e}-date-panel__divider`}),a(`div`,{class:`${e}-date-panel-dates`},this.startDateArray.map((t,n)=>{let r=this.mergedIsDateDisabled(t.ts);return a(`div`,{"data-n-date":!0,key:n,class:[`${e}-date-panel-date`,{[`${e}-date-panel-date--excluded`]:!t.inCurrentMonth,[`${e}-date-panel-date--current`]:t.isCurrentDate,[`${e}-date-panel-date--selected`]:t.selected,[`${e}-date-panel-date--covered`]:t.inSpan,[`${e}-date-panel-date--start`]:t.startOfSpan,[`${e}-date-panel-date--end`]:t.endOfSpan,[`${e}-date-panel-date--disabled`]:r}],onClick:r?void 0:()=>{this.handleDateClick(t)},onMouseenter:r?void 0:()=>{this.handleDateMouseEnter(t)}},a(`div`,{class:`${e}-date-panel-date__trigger`}),t.dateObject.date,t.isCurrentDate?a(`div`,{class:`${e}-date-panel-date__sup`}):null)}))),a(`div`,{class:`${e}-date-panel__vertical-divider`}),a(`div`,{ref:`endDatesElRef`,class:`${e}-date-panel-calendar ${e}-date-panel-calendar--end`},a(`div`,{class:`${e}-date-panel-month`},a(`div`,{class:`${e}-date-panel-month__fast-prev`,onClick:this.endCalendarPrevYear},V(o[`prev-year`],()=>[a(it,null)])),a(`div`,{class:`${e}-date-panel-month__prev`,onClick:this.endCalendarPrevMonth},V(o[`prev-month`],()=>[a(nt,null)])),a(ti,{fastYearSelect:this.fastYearSelect,fastMonthSelect:this.fastMonthSelect,monthBeforeYear:this.calendarMonthBeforeYear,value:this.endCalendarDateTime,onUpdateValue:this.onUpdateEndCalendarValue,mergedClsPrefix:e,monthYearSeparator:this.calendarHeaderMonthYearSeparator,calendarMonth:this.endCalendarMonth,calendarYear:this.endCalendarYear}),a(`div`,{class:`${e}-date-panel-month__next`,onClick:this.endCalendarNextMonth},V(o[`next-month`],()=>[a(ot,null)])),a(`div`,{class:`${e}-date-panel-month__fast-next`,onClick:this.endCalendarNextYear},V(o[`next-year`],()=>[a(at,null)]))),a(`div`,{class:`${e}-date-panel-weekdays`},this.weekdays.map(t=>a(`div`,{key:t,class:`${e}-date-panel-weekdays__day`},t))),a(`div`,{class:`${e}-date-panel__divider`}),a(`div`,{class:`${e}-date-panel-dates`},this.endDateArray.map((t,n)=>{let r=this.mergedIsDateDisabled(t.ts);return a(`div`,{"data-n-date":!0,key:n,class:[`${e}-date-panel-date`,{[`${e}-date-panel-date--excluded`]:!t.inCurrentMonth,[`${e}-date-panel-date--current`]:t.isCurrentDate,[`${e}-date-panel-date--selected`]:t.selected,[`${e}-date-panel-date--covered`]:t.inSpan,[`${e}-date-panel-date--start`]:t.startOfSpan,[`${e}-date-panel-date--end`]:t.endOfSpan,[`${e}-date-panel-date--disabled`]:r}],onClick:r?void 0:()=>{this.handleDateClick(t)},onMouseenter:r?void 0:()=>{this.handleDateMouseEnter(t)}},a(`div`,{class:`${e}-date-panel-date__trigger`}),t.dateObject.date,t.isCurrentDate?a(`div`,{class:`${e}-date-panel-date__sup`}):null)}))),this.datePickerSlots.footer?a(`div`,{class:`${e}-date-panel-footer`},this.datePickerSlots.footer()):null,this.actions?.length||n?a(`div`,{class:`${e}-date-panel-actions`},a(`div`,{class:`${e}-date-panel-actions__prefix`},n&&Object.keys(n).map(e=>{let t=n[e];return Array.isArray(t)||typeof t==`function`?a(xe,{size:`tiny`,onMouseenter:()=>{this.handleRangeShortcutMouseenter(t)},onClick:()=>{this.handleRangeShortcutClick(t)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>e}):null})),a(`div`,{class:`${e}-date-panel-actions__suffix`},this.actions?.includes(`clear`)?B(o.clear,{onClear:this.handleClearClick,text:this.locale.clear},()=>[a(L,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:`tiny`,onClick:this.handleClearClick},{default:()=>this.locale.clear})]):null,this.actions?.includes(`confirm`)?B(o.confirm,{onConfirm:this.handleConfirmClick,disabled:this.isRangeInvalid||this.isSelecting,text:this.locale.confirm},()=>[a(L,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:`tiny`,type:`primary`,disabled:this.isRangeInvalid||this.isSelecting,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm})]):null)):null,a(F,{onFocus:this.handleFocusDetectorFocus}))}}),ya=s({name:`MonthRangePanel`,props:Object.assign(Object.assign({},ri),{type:{type:String,required:!0}}),setup(e){let t=ii(e,e.type),{dateLocaleRef:n}=Ee(`DatePicker`);return S(()=>{t.justifyColumnsScrollState()}),Object.assign(Object.assign({},t),{renderItem:(e,r,i,o)=>{let{handleColItemClick:s}=t;return a(`div`,{"data-n-date":!0,key:r,class:[`${i}-date-panel-month-calendar__picker-col-item`,e.isCurrent&&`${i}-date-panel-month-calendar__picker-col-item--current`,e.selected&&`${i}-date-panel-month-calendar__picker-col-item--selected`,!1],onClick:()=>{s(e,o)}},e.type===`month`?Nr(e.dateObject.month,e.monthFormat,n.value.locale):e.type===`quarter`?Fr(e.dateObject.quarter,e.quarterFormat,n.value.locale):Pr(e.dateObject.year,e.yearFormat,n.value.locale))}})},render(){let{mergedClsPrefix:e,mergedTheme:t,shortcuts:n,type:r,renderItem:i,onRender:o}=this;return o?.(),a(`div`,{ref:`selfRef`,tabindex:0,class:[`${e}-date-panel`,`${e}-date-panel--daterange`,!this.panel&&`${e}-date-panel--shadow`,this.themeClass],onKeydown:this.handlePanelKeyDown,onFocus:this.handlePanelFocus},a(`div`,{ref:`startDatesElRef`,class:`${e}-date-panel-calendar ${e}-date-panel-calendar--start`},a(`div`,{class:`${e}-date-panel-month-calendar`},a(I,{ref:`startYearScrollbarRef`,class:`${e}-date-panel-month-calendar__picker-col`,theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,container:()=>this.virtualListContainer(`start`),content:()=>this.virtualListContent(`start`),horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>a(ue,{ref:`startYearVlRef`,items:this.startYearArray,itemSize:40,showScrollbar:!1,keyField:`ts`,onScroll:this.handleStartYearVlScroll,paddingBottom:4},{default:({item:t,index:n})=>i(t,n,e,`start`)})}),r===`monthrange`||r===`quarterrange`?a(`div`,{class:`${e}-date-panel-month-calendar__picker-col`},a(I,{ref:`startMonthScrollbarRef`,theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar},{default:()=>[(r===`monthrange`?this.startMonthArray:this.startQuarterArray).map((t,n)=>i(t,n,e,`start`)),r===`monthrange`&&a(`div`,{class:`${e}-date-panel-month-calendar__padding`})]})):null)),a(`div`,{class:`${e}-date-panel__vertical-divider`}),a(`div`,{ref:`endDatesElRef`,class:`${e}-date-panel-calendar ${e}-date-panel-calendar--end`},a(`div`,{class:`${e}-date-panel-month-calendar`},a(I,{ref:`endYearScrollbarRef`,class:`${e}-date-panel-month-calendar__picker-col`,theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,container:()=>this.virtualListContainer(`end`),content:()=>this.virtualListContent(`end`),horizontalRailStyle:{zIndex:1},verticalRailStyle:{zIndex:1}},{default:()=>a(ue,{ref:`endYearVlRef`,items:this.endYearArray,itemSize:40,showScrollbar:!1,keyField:`ts`,onScroll:this.handleEndYearVlScroll,paddingBottom:4},{default:({item:t,index:n})=>i(t,n,e,`end`)})}),r===`monthrange`||r===`quarterrange`?a(`div`,{class:`${e}-date-panel-month-calendar__picker-col`},a(I,{ref:`endMonthScrollbarRef`,theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar},{default:()=>[(r===`monthrange`?this.endMonthArray:this.endQuarterArray).map((t,n)=>i(t,n,e,`end`)),r===`monthrange`&&a(`div`,{class:`${e}-date-panel-month-calendar__padding`})]})):null)),we(this.datePickerSlots.footer,t=>t?a(`div`,{class:`${e}-date-panel-footer`},t):null),this.actions?.length||n?a(`div`,{class:`${e}-date-panel-actions`},a(`div`,{class:`${e}-date-panel-actions__prefix`},n&&Object.keys(n).map(e=>{let t=n[e];return Array.isArray(t)||typeof t==`function`?a(xe,{size:`tiny`,onMouseenter:()=>{this.handleRangeShortcutMouseenter(t)},onClick:()=>{this.handleRangeShortcutClick(t)},onMouseleave:()=>{this.handleShortcutMouseleave()}},{default:()=>e}):null})),a(`div`,{class:`${e}-date-panel-actions__suffix`},this.actions?.includes(`clear`)?B(this.datePickerSlots.clear,{onClear:this.handleClearClick,text:this.locale.clear},()=>[a(xe,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:`tiny`,onClick:this.handleClearClick},{default:()=>this.locale.clear})]):null,this.actions?.includes(`confirm`)?B(this.datePickerSlots.confirm,{disabled:this.isRangeInvalid,onConfirm:this.handleConfirmClick,text:this.locale.confirm},()=>[a(xe,{theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,size:`tiny`,type:`primary`,disabled:this.isRangeInvalid,onClick:this.handleConfirmClick},{default:()=>this.locale.confirm})]):null)):null,a(F,{onFocus:this.handleFocusDetectorFocus}))}}),ba=Object.assign(Object.assign({},se.props),{to:P.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,fastYearSelect:Boolean,fastMonthSelect:Boolean,updateValueOnClose:Boolean,calendarDayFormat:String,calendarHeaderYearFormat:String,calendarHeaderMonthFormat:String,calendarHeaderMonthYearSeparator:{type:String,default:` `},calendarHeaderMonthBeforeYear:{type:Boolean,default:void 0},defaultValue:[Number,Array],defaultFormattedValue:[String,Array],defaultTime:[Number,String,Array,Function],disabled:{type:Boolean,default:void 0},placement:{type:String,default:`bottom-start`},value:[Number,Array],formattedValue:[String,Array],size:String,type:{type:String,default:`date`},valueFormat:String,separator:String,placeholder:String,startPlaceholder:String,endPlaceholder:String,format:String,dateFormat:String,timePickerFormat:String,actions:Array,shortcuts:Object,isDateDisabled:Function,isTimeDisabled:Function,show:{type:Boolean,default:void 0},panel:Boolean,ranges:Object,firstDayOfWeek:Number,inputReadonly:Boolean,closeOnSelect:Boolean,status:String,timePickerProps:[Object,Array],onClear:Function,onConfirm:Function,defaultCalendarStartTime:Number,defaultCalendarEndTime:Number,bindCalendarMonths:Boolean,monthFormat:{type:String,default:`M`},yearFormat:{type:String,default:`y`},quarterFormat:{type:String,default:`'Q'Q`},yearRange:{type:Array,default:()=>[1901,2100]},"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],"onUpdate:formattedValue":[Function,Array],onUpdateFormattedValue:[Function,Array],"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onNextMonth:Function,onPrevMonth:Function,onNextYear:Function,onPrevYear:Function,onChange:[Function,Array]}),xa=j([A(`date-picker`,` - position: relative; - z-index: auto; - `,[A(`date-picker-icon`,` - color: var(--n-icon-color-override); - transition: color .3s var(--n-bezier); - `),A(`icon`,` - color: var(--n-icon-color-override); - transition: color .3s var(--n-bezier); - `),k(`disabled`,[A(`date-picker-icon`,` - color: var(--n-icon-color-disabled-override); - `),A(`icon`,` - color: var(--n-icon-color-disabled-override); - `)])]),A(`date-panel`,` - width: fit-content; - outline: none; - margin: 4px 0; - display: grid; - grid-template-columns: 0fr; - border-radius: var(--n-panel-border-radius); - background-color: var(--n-panel-color); - color: var(--n-panel-text-color); - user-select: none; - `,[ve(),k(`shadow`,` - box-shadow: var(--n-panel-box-shadow); - `),A(`date-panel-calendar`,{padding:`var(--n-calendar-left-padding)`,display:`grid`,gridTemplateColumns:`1fr`,gridArea:`left-calendar`},[k(`end`,{padding:`var(--n-calendar-right-padding)`,gridArea:`right-calendar`})]),A(`date-panel-month-calendar`,{display:`flex`,gridArea:`left-calendar`},[M(`picker-col`,` - min-width: var(--n-scroll-item-width); - height: calc(var(--n-scroll-item-height) * 6); - user-select: none; - -webkit-user-select: none; - `,[j(`&:first-child`,` - min-width: calc(var(--n-scroll-item-width) + 4px); - `,[M(`picker-col-item`,[j(`&::before`,`left: 4px;`)])]),M(`padding`,` - height: calc(var(--n-scroll-item-height) * 5) - `)]),M(`picker-col-item`,` - z-index: 0; - cursor: pointer; - height: var(--n-scroll-item-height); - box-sizing: border-box; - padding-top: 4px; - display: flex; - align-items: center; - justify-content: center; - position: relative; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - background: #0000; - color: var(--n-item-text-color); - `,[j(`&::before`,` - z-index: -1; - content: ""; - position: absolute; - left: 0; - right: 4px; - top: 4px; - bottom: 0; - border-radius: var(--n-scroll-item-border-radius); - transition: - background-color .3s var(--n-bezier); - `),re(`disabled`,[j(`&:hover::before`,` - background-color: var(--n-item-color-hover); - `),k(`selected`,` - color: var(--n-item-color-active); - `,[j(`&::before`,`background-color: var(--n-item-color-hover);`)])]),k(`disabled`,` - color: var(--n-item-text-color-disabled); - cursor: not-allowed; - `,[k(`selected`,[j(`&::before`,` - background-color: var(--n-item-color-disabled); - `)])])])]),k(`date`,{gridTemplateAreas:` - "left-calendar" - "footer" - "action" - `}),k(`week`,{gridTemplateAreas:` - "left-calendar" - "footer" - "action" - `}),k(`daterange`,{gridTemplateAreas:` - "left-calendar divider right-calendar" - "footer footer footer" - "action action action" - `}),k(`datetime`,{gridTemplateAreas:` - "header" - "left-calendar" - "footer" - "action" - `}),k(`datetimerange`,{gridTemplateAreas:` - "header header header" - "left-calendar divider right-calendar" - "footer footer footer" - "action action action" - `}),k(`month`,{gridTemplateAreas:` - "left-calendar" - "footer" - "action" - `}),A(`date-panel-footer`,{gridArea:`footer`}),A(`date-panel-actions`,{gridArea:`action`}),A(`date-panel-header`,{gridArea:`header`}),A(`date-panel-header`,` - box-sizing: border-box; - width: 100%; - align-items: center; - padding: var(--n-panel-header-padding); - display: flex; - justify-content: space-between; - border-bottom: 1px solid var(--n-panel-header-divider-color); - `,[j(`>`,[j(`*:not(:last-child)`,{marginRight:`10px`}),j(`*`,{flex:1,width:0}),A(`time-picker`,{zIndex:1})])]),A(`date-panel-month`,` - box-sizing: border-box; - display: grid; - grid-template-columns: var(--n-calendar-title-grid-template-columns); - align-items: center; - justify-items: center; - padding: var(--n-calendar-title-padding); - height: var(--n-calendar-title-height); - `,[M(`prev, next, fast-prev, fast-next`,` - line-height: 0; - cursor: pointer; - width: var(--n-arrow-size); - height: var(--n-arrow-size); - color: var(--n-arrow-color); - `),M(`month-year`,` - user-select: none; - -webkit-user-select: none; - flex-grow: 1; - position: relative; - `,[M(`text`,` - font-size: var(--n-calendar-title-font-size); - line-height: var(--n-calendar-title-font-size); - font-weight: var(--n-calendar-title-font-weight); - padding: 6px 8px; - text-align: center; - color: var(--n-calendar-title-text-color); - cursor: pointer; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-panel-border-radius); - `,[k(`active`,` - background-color: var(--n-calendar-title-color-hover); - `),j(`&:hover`,` - background-color: var(--n-calendar-title-color-hover); - `)])])]),A(`date-panel-weekdays`,` - display: grid; - margin: auto; - grid-template-columns: repeat(7, var(--n-item-cell-width)); - grid-template-rows: repeat(1, var(--n-item-cell-height)); - align-items: center; - justify-items: center; - margin-bottom: 4px; - border-bottom: 1px solid var(--n-calendar-days-divider-color); - `,[M(`day`,` - white-space: nowrap; - user-select: none; - -webkit-user-select: none; - line-height: 15px; - width: var(--n-item-size); - text-align: center; - font-size: var(--n-calendar-days-font-size); - color: var(--n-item-text-color); - display: flex; - align-items: center; - justify-content: center; - `)]),A(`date-panel-dates`,` - margin: auto; - display: grid; - grid-template-columns: repeat(7, var(--n-item-cell-width)); - grid-template-rows: repeat(6, var(--n-item-cell-height)); - align-items: center; - justify-items: center; - flex-wrap: wrap; - `,[A(`date-panel-date`,` - user-select: none; - -webkit-user-select: none; - position: relative; - width: var(--n-item-size); - height: var(--n-item-size); - line-height: var(--n-item-size); - text-align: center; - font-size: var(--n-item-font-size); - border-radius: var(--n-item-border-radius); - z-index: 0; - cursor: pointer; - transition: - background-color .2s var(--n-bezier), - color .2s var(--n-bezier); - `,[M(`trigger`,` - position: absolute; - left: calc(var(--n-item-size) / 2 - var(--n-item-cell-width) / 2); - top: calc(var(--n-item-size) / 2 - var(--n-item-cell-height) / 2); - width: var(--n-item-cell-width); - height: var(--n-item-cell-height); - `),k(`current`,[M(`sup`,` - position: absolute; - top: 2px; - right: 2px; - content: ""; - height: 4px; - width: 4px; - border-radius: 2px; - background-color: var(--n-item-color-active); - transition: - background-color .2s var(--n-bezier); - `)]),j(`&::after`,` - content: ""; - z-index: -1; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - transition: background-color .3s var(--n-bezier); - `),k(`covered, start, end`,[re(`excluded`,[j(`&::before`,` - content: ""; - z-index: -2; - position: absolute; - left: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2); - right: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2); - top: 0; - bottom: 0; - background-color: var(--n-item-color-included); - `),j(`&:nth-child(7n + 1)::before`,{borderTopLeftRadius:`var(--n-item-border-radius)`,borderBottomLeftRadius:`var(--n-item-border-radius)`}),j(`&:nth-child(7n + 7)::before`,{borderTopRightRadius:`var(--n-item-border-radius)`,borderBottomRightRadius:`var(--n-item-border-radius)`})])]),k(`selected`,{color:`var(--n-item-text-color-active)`},[j(`&::after`,{backgroundColor:`var(--n-item-color-active)`}),k(`start`,[j(`&::before`,{left:`50%`})]),k(`end`,[j(`&::before`,{right:`50%`})]),M(`sup`,{backgroundColor:`var(--n-panel-color)`})]),k(`excluded`,{color:`var(--n-item-text-color-disabled)`},[k(`selected`,[j(`&::after`,{backgroundColor:`var(--n-item-color-disabled)`})])]),k(`disabled`,{cursor:`not-allowed`,color:`var(--n-item-text-color-disabled)`},[k(`covered`,[j(`&::before`,{backgroundColor:`var(--n-item-color-disabled)`})]),k(`selected`,[j(`&::before`,{backgroundColor:`var(--n-item-color-disabled)`}),j(`&::after`,{backgroundColor:`var(--n-item-color-disabled)`})])]),k(`week-hovered`,[j(`&::before`,` - background-color: var(--n-item-color-included); - `),j(`&:nth-child(7n + 1)::before`,` - border-top-left-radius: var(--n-item-border-radius); - border-bottom-left-radius: var(--n-item-border-radius); - `),j(`&:nth-child(7n + 7)::before`,` - border-top-right-radius: var(--n-item-border-radius); - border-bottom-right-radius: var(--n-item-border-radius); - `)]),k(`week-selected`,` - color: var(--n-item-text-color-active) - `,[j(`&::before`,` - background-color: var(--n-item-color-active); - `),j(`&:nth-child(7n + 1)::before`,` - border-top-left-radius: var(--n-item-border-radius); - border-bottom-left-radius: var(--n-item-border-radius); - `),j(`&:nth-child(7n + 7)::before`,` - border-top-right-radius: var(--n-item-border-radius); - border-bottom-right-radius: var(--n-item-border-radius); - `)])])]),re(`week`,[A(`date-panel-dates`,[A(`date-panel-date`,[re(`disabled`,[re(`selected`,[j(`&:hover`,` - background-color: var(--n-item-color-hover); - `)])])])])]),k(`week`,[A(`date-panel-dates`,[A(`date-panel-date`,[j(`&::before`,` - content: ""; - z-index: -2; - position: absolute; - left: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2); - right: calc((var(--n-item-size) - var(--n-item-cell-width)) / 2); - top: 0; - bottom: 0; - transition: background-color .3s var(--n-bezier); - `)])])]),M(`vertical-divider`,` - grid-area: divider; - height: 100%; - width: 1px; - background-color: var(--n-calendar-divider-color); - `),A(`date-panel-footer`,` - border-top: 1px solid var(--n-panel-action-divider-color); - padding: var(--n-panel-extra-footer-padding); - `),A(`date-panel-actions`,` - flex: 1; - padding: var(--n-panel-action-padding); - display: flex; - align-items: center; - justify-content: space-between; - border-top: 1px solid var(--n-panel-action-divider-color); - `,[M(`prefix, suffix`,` - display: flex; - margin-bottom: -8px; - `),M(`suffix`,` - align-self: flex-end; - `),M(`prefix`,` - flex-wrap: wrap; - `),A(`button`,` - margin-bottom: 8px; - `,[j(`&:not(:last-child)`,` - margin-right: 8px; - `)])])]),j(`[data-n-date].transition-disabled`,{transition:`none !important`},[j(`&::before, &::after`,{transition:`none !important`})])]);function Sa(e,t){let n=T(()=>{let{isTimeDisabled:n}=e,{value:r}=t;if(!(r===null||Array.isArray(r)))return n?.(r)}),r=T(()=>n.value?.isHourDisabled),i=T(()=>n.value?.isMinuteDisabled),a=T(()=>n.value?.isSecondDisabled),o=T(()=>{let{type:n,isDateDisabled:r}=e,{value:i}=t;return i===null||Array.isArray(i)||![`date`,`datetime`].includes(n)||!r?!1:r(i,{type:`input`})}),s=T(()=>{let{type:n}=e,{value:o}=t;if(o===null||n===`datetime`||Array.isArray(o))return!1;let s=new Date(o),c=s.getHours(),l=s.getMinutes(),u=s.getMinutes();return(r.value?r.value(c):!1)||(i.value?i.value(l,c):!1)||(a.value?a.value(u,l,c):!1)}),c=T(()=>o.value||s.value);return{isValueInvalidRef:T(()=>{let{type:t}=e;return t===`date`?o.value:t===`datetime`?c.value:!1}),isDateInvalidRef:o,isTimeInvalidRef:s,isDateTimeInvalidRef:c,isHourDisabledRef:r,isMinuteDisabledRef:i,isSecondDisabledRef:a}}function Ca(e,t){let n=T(()=>{let{isTimeDisabled:n}=e,{value:r}=t;return!Array.isArray(r)||!n?[void 0,void 0]:[n?.(r[0],`start`,r),n?.(r[1],`end`,r)]}),r={isStartHourDisabledRef:T(()=>n.value[0]?.isHourDisabled),isEndHourDisabledRef:T(()=>n.value[1]?.isHourDisabled),isStartMinuteDisabledRef:T(()=>n.value[0]?.isMinuteDisabled),isEndMinuteDisabledRef:T(()=>n.value[1]?.isMinuteDisabled),isStartSecondDisabledRef:T(()=>n.value[0]?.isSecondDisabled),isEndSecondDisabledRef:T(()=>n.value[1]?.isSecondDisabled)},i=T(()=>{let{type:n,isDateDisabled:r}=e,{value:i}=t;return i===null||!Array.isArray(i)||![`daterange`,`datetimerange`].includes(n)||!r?!1:r(i[0],`start`,i)}),a=T(()=>{let{type:n,isDateDisabled:r}=e,{value:i}=t;return i===null||!Array.isArray(i)||![`daterange`,`datetimerange`].includes(n)||!r?!1:r(i[1],`end`,i)}),o=T(()=>{let{type:n}=e,{value:i}=t;if(i===null||!Array.isArray(i)||n!==`datetimerange`)return!1;let a=rn(i[0]),o=sn(i[0]),s=cn(i[0]),{isStartHourDisabledRef:c,isStartMinuteDisabledRef:l,isStartSecondDisabledRef:u}=r;return(c.value?c.value(a):!1)||(l.value?l.value(o,a):!1)||(u.value?u.value(s,o,a):!1)}),s=T(()=>{let{type:n}=e,{value:i}=t;if(i===null||!Array.isArray(i)||n!==`datetimerange`)return!1;let a=rn(i[1]),o=sn(i[1]),s=cn(i[1]),{isEndHourDisabledRef:c,isEndMinuteDisabledRef:l,isEndSecondDisabledRef:u}=r;return(c.value?c.value(a):!1)||(l.value?l.value(o,a):!1)||(u.value?u.value(s,o,a):!1)}),c=T(()=>i.value||o.value),l=T(()=>a.value||s.value),u=T(()=>c.value||l.value);return Object.assign(Object.assign({},r),{isStartDateInvalidRef:i,isEndDateInvalidRef:a,isStartTimeInvalidRef:o,isEndTimeInvalidRef:s,isStartValueInvalidRef:c,isEndValueInvalidRef:l,isRangeInvalidRef:u})}var wa=s({name:`DatePicker`,props:ba,slots:Object,setup(e,{slots:t}){let{localeRef:n,dateLocaleRef:r}=Ee(`DatePicker`),{mergedComponentPropsRef:i,mergedClsPrefixRef:a,mergedBorderedRef:o,namespaceRef:s,inlineThemeDisabled:c}=ae(e),l=Ce(e,{mergedSize:t=>{let{size:n}=e;if(n)return n;let{mergedSize:r}=t||{};return r?.value?r.value:i?.value?.DatePicker?.size||`medium`}}),{mergedSizeRef:u,mergedDisabledRef:f,mergedStatusRef:ee}=l,p=O(null),m=O(null),h=O(null),g=O(!1),_=be(d(e,`show`),g),v=T(()=>({locale:r.value.locale,useAdditionalWeekYearTokens:!0})),y=T(()=>{let{format:t}=e;if(t)return t;switch(e.type){case`date`:case`daterange`:return n.value.dateFormat;case`datetime`:case`datetimerange`:return n.value.dateTimeFormat;case`year`:case`yearrange`:return n.value.yearTypeFormat;case`month`:case`monthrange`:return n.value.monthTypeFormat;case`quarter`:case`quarterrange`:return n.value.quarterFormat;case`week`:return n.value.weekFormat}}),S=T(()=>e.valueFormat??y.value);function ne(e){if(e===null)return null;let{value:t}=S,{value:n}=v;return Array.isArray(e)?[Wr(e[0],t,new Date,n).getTime(),Wr(e[1],t,new Date,n).getTime()]:Wr(e,t,new Date,n).getTime()}let{defaultFormattedValue:w,defaultValue:E}=e,D=O((w===void 0?E:ne(w))??null),k=be(T(()=>{let{formattedValue:t}=e;return t===void 0?e.value:ne(t)}),D),A=O(null);C(()=>{A.value=k.value});let re=O(``),j=O(``),M=O(``),ce=se(`DatePicker`,`-date-picker`,xa,Le,e,a),N=T(()=>i?.value?.DatePicker?.timePickerSize||`small`),le=T(()=>[`daterange`,`datetimerange`,`monthrange`,`quarterrange`,`yearrange`].includes(e.type)),ue=T(()=>{let{placeholder:t}=e;if(t===void 0){let{type:t}=e;switch(t){case`date`:return n.value.datePlaceholder;case`datetime`:return n.value.datetimePlaceholder;case`month`:return n.value.monthPlaceholder;case`year`:return n.value.yearPlaceholder;case`quarter`:return n.value.quarterPlaceholder;case`week`:return n.value.weekPlaceholder;default:return``}}else return t}),F=T(()=>e.startPlaceholder===void 0?e.type===`daterange`?n.value.startDatePlaceholder:e.type===`datetimerange`?n.value.startDatetimePlaceholder:e.type===`monthrange`?n.value.startMonthPlaceholder:``:e.startPlaceholder),fe=T(()=>e.endPlaceholder===void 0?e.type===`daterange`?n.value.endDatePlaceholder:e.type===`datetimerange`?n.value.endDatetimePlaceholder:e.type===`monthrange`?n.value.endMonthPlaceholder:``:e.endPlaceholder),I=T(()=>{let{actions:t,type:n,clearable:r}=e;if(t===null)return[];if(t!==void 0)return t;let i=r?[`clear`]:[];switch(n){case`date`:case`week`:return i.push(`now`),i;case`datetime`:return i.push(`now`,`confirm`),i;case`daterange`:return i.push(`confirm`),i;case`datetimerange`:return i.push(`confirm`),i;case`month`:return i.push(`now`,`confirm`),i;case`year`:return i.push(`now`),i;case`quarter`:return i.push(`now`,`confirm`),i;case`monthrange`:case`yearrange`:case`quarterrange`:return i.push(`confirm`),i;default:x(`date-picker`,"The type is wrong, n-date-picker's type only supports `date`, `datetime`, `daterange` and `datetimerange`.");break}});function me(e){if(e===null)return null;if(Array.isArray(e)){let{value:t}=S,{value:n}=v;return[G(e[0],t,n),G(e[1],t,v.value)]}else return G(e,S.value,v.value)}function he(e){A.value=e}function ge(t,n){let{"onUpdate:formattedValue":r,onUpdateFormattedValue:i}=e;r&&z(r,t,n),i&&z(i,t,n)}function _e(t,n){let{"onUpdate:value":r,onUpdateValue:i,onChange:a}=e,{nTriggerFormChange:o,nTriggerFormInput:s}=l,c=me(t);n.doConfirm&&ye(t,c),i&&z(i,t,c),r&&z(r,t,c),a&&z(a,t,c),D.value=t,ge(c,t),o(),s()}function ve(){let{onClear:t}=e;t?.()}function ye(t,n){let{onConfirm:r}=e;r&&r(t,n)}function xe(t){let{onFocus:n}=e,{nTriggerFormFocus:r}=l;n&&z(n,t),r()}function L(t){let{onBlur:n}=e,{nTriggerFormBlur:r}=l;n&&z(n,t),r()}function R(t){let{"onUpdate:show":n,onUpdateShow:r}=e;n&&z(n,t),r&&z(r,t),g.value=t}function we(e){e.key===`Escape`&&_.value&&(Se(e),Ge({returnFocus:!0}))}function B(e){e.key===`Escape`&&_.value&&Se(e)}function V(){var e;R(!1),(e=h.value)==null||e.deactivate(),ve()}function Te(){var e;(e=h.value)==null||e.deactivate(),ve()}function De(){Ge({returnFocus:!0})}function Oe(e){_.value&&!m.value?.contains(pe(e))&&Ge({returnFocus:!1})}function ke(e){Ge({returnFocus:!0,disableUpdateOnClose:e})}function Ae(e,t){t?_e(e,{doConfirm:!1}):he(e)}function je(){let e=A.value;_e(Array.isArray(e)?[e[0],e[1]]:e,{doConfirm:!0})}function Me(){let{value:e}=A;le.value?(Array.isArray(e)||e===null)&&Pe(e):Array.isArray(e)||Ne(e)}function Ne(e){e===null?re.value=``:re.value=G(e,y.value,v.value)}function Pe(e){if(e===null)j.value=``,M.value=``;else{let t=v.value;j.value=G(e[0],y.value,t),M.value=G(e[1],y.value,t)}}function Ie(){_.value||We()}function Re(e){p.value?.$el.contains(e.relatedTarget)||(L(e),Me(),Ge({returnFocus:!1}))}function ze(){f.value||(Me(),Ge({returnFocus:!1}))}function Be(e){if(e===``){_e(null,{doConfirm:!1}),A.value=null,re.value=``;return}let t=Wr(e,y.value,new Date,v.value);xt(t)?(_e(q(t),{doConfirm:!1}),Me()):re.value=e}function Ve(e,{source:t}){if(e[0]===``&&e[1]===``){_e(null,{doConfirm:!1}),A.value=null,j.value=``,M.value=``;return}let[n,r]=e,i=Wr(n,y.value,new Date,v.value),a=Wr(r,y.value,new Date,v.value);if(xt(i)&&xt(a)){let e=q(i),n=q(a);a{Me()}),Me(),b(_,e=>{e||(A.value=k.value)});let Ke=Sa(e,A),qe=Ca(e,A);te(Yr,Object.assign(Object.assign(Object.assign({mergedClsPrefixRef:a,mergedThemeRef:ce,timePickerSizeRef:N,localeRef:n,dateLocaleRef:r,firstDayOfWeekRef:d(e,`firstDayOfWeek`),isDateDisabledRef:d(e,`isDateDisabled`),rangesRef:d(e,`ranges`),timePickerPropsRef:d(e,`timePickerProps`),closeOnSelectRef:d(e,`closeOnSelect`),updateValueOnCloseRef:d(e,`updateValueOnClose`),monthFormatRef:d(e,`monthFormat`),yearFormatRef:d(e,`yearFormat`),quarterFormatRef:d(e,`quarterFormat`),yearRangeRef:d(e,`yearRange`)},Ke),qe),{datePickerSlots:t}));let Je={focus:()=>{var e;(e=h.value)==null||e.focus()},blur:()=>{var e;(e=h.value)==null||e.blur()}},Ye=T(()=>{let{common:{cubicBezierEaseInOut:e},self:{iconColor:t,iconColorDisabled:n}}=ce.value;return{"--n-bezier":e,"--n-icon-color-override":t,"--n-icon-color-disabled-override":n}}),Xe=c?ie(`date-picker-trigger`,void 0,Ye,e):void 0,H=T(()=>{let{type:t}=e,{common:{cubicBezierEaseInOut:n},self:{calendarTitleFontSize:r,calendarDaysFontSize:i,itemFontSize:a,itemTextColor:o,itemColorDisabled:s,itemColorIncluded:c,itemColorHover:l,itemColorActive:u,itemBorderRadius:d,itemTextColorDisabled:f,itemTextColorActive:ee,panelColor:p,panelTextColor:te,arrowColor:m,calendarTitleTextColor:h,panelActionDividerColor:g,panelHeaderDividerColor:_,calendarDaysDividerColor:v,panelBoxShadow:y,panelBorderRadius:b,calendarTitleFontWeight:x,panelExtraFooterPadding:S,panelActionPadding:C,itemSize:ne,itemCellWidth:w,itemCellHeight:T,scrollItemWidth:E,scrollItemHeight:D,calendarTitlePadding:O,calendarTitleHeight:k,calendarDaysHeight:A,calendarDaysTextColor:re,arrowSize:ie,panelHeaderPadding:ae,calendarDividerColor:j,calendarTitleGridTempateColumns:M,iconColor:se,iconColorDisabled:N,scrollItemBorderRadius:P,calendarTitleColorHover:le,[oe(`calendarLeftPadding`,t)]:ue,[oe(`calendarRightPadding`,t)]:F}}=ce.value;return{"--n-bezier":n,"--n-panel-border-radius":b,"--n-panel-color":p,"--n-panel-box-shadow":y,"--n-panel-text-color":te,"--n-panel-header-padding":ae,"--n-panel-header-divider-color":_,"--n-calendar-left-padding":ue,"--n-calendar-right-padding":F,"--n-calendar-title-color-hover":le,"--n-calendar-title-height":k,"--n-calendar-title-padding":O,"--n-calendar-title-font-size":r,"--n-calendar-title-font-weight":x,"--n-calendar-title-text-color":h,"--n-calendar-title-grid-template-columns":M,"--n-calendar-days-height":A,"--n-calendar-days-divider-color":v,"--n-calendar-days-font-size":i,"--n-calendar-days-text-color":re,"--n-calendar-divider-color":j,"--n-panel-action-padding":C,"--n-panel-extra-footer-padding":S,"--n-panel-action-divider-color":g,"--n-item-font-size":a,"--n-item-border-radius":d,"--n-item-size":ne,"--n-item-cell-width":w,"--n-item-cell-height":T,"--n-item-text-color":o,"--n-item-color-included":c,"--n-item-color-disabled":s,"--n-item-color-hover":l,"--n-item-color-active":u,"--n-item-text-color-disabled":f,"--n-item-text-color-active":ee,"--n-scroll-item-width":E,"--n-scroll-item-height":D,"--n-scroll-item-border-radius":P,"--n-arrow-size":ie,"--n-arrow-color":m,"--n-icon-color":se,"--n-icon-color-disabled":N}}),Ze=c?ie(`date-picker`,T(()=>e.type),H,e):void 0;return Object.assign(Object.assign({},Je),{mergedStatus:ee,mergedClsPrefix:a,mergedBordered:o,namespace:s,uncontrolledValue:D,pendingValue:A,panelInstRef:p,triggerElRef:m,inputInstRef:h,isMounted:Fe(),displayTime:re,displayStartTime:j,displayEndTime:M,mergedShow:_,adjustedTo:P(e),isRange:le,localizedStartPlaceholder:F,localizedEndPlaceholder:fe,mergedSize:u,mergedDisabled:f,localizedPlacehoder:ue,isValueInvalid:Ke.isValueInvalidRef,isStartValueInvalid:qe.isStartValueInvalidRef,isEndValueInvalid:qe.isEndValueInvalidRef,handleInputKeydown:B,handleClickOutside:Oe,handleKeydown:we,handleClear:V,handlePanelClear:Te,handleTriggerClick:He,handleInputActivate:Ie,handleInputDeactivate:ze,handleInputFocus:Ue,handleInputBlur:Re,handlePanelTabOut:De,handlePanelClose:ke,handleRangeUpdateValue:Ve,handleSingleUpdateValue:Be,handlePanelUpdateValue:Ae,handlePanelConfirm:je,mergedTheme:ce,actions:I,triggerCssVars:c?void 0:Ye,triggerThemeClass:Xe?.themeClass,triggerOnRender:Xe?.onRender,cssVars:c?void 0:H,themeClass:Ze?.themeClass,onRender:Ze?.onRender,onNextMonth:e.onNextMonth,onPrevMonth:e.onPrevMonth,onNextYear:e.onNextYear,onPrevYear:e.onPrevYear})},render(){let{clearable:e,triggerOnRender:t,mergedClsPrefix:n,$slots:r}=this,i={onUpdateValue:this.handlePanelUpdateValue,onTabOut:this.handlePanelTabOut,onClose:this.handlePanelClose,onClear:this.handlePanelClear,onKeydown:this.handleKeydown,onConfirm:this.handlePanelConfirm,ref:`panelInstRef`,value:this.pendingValue,active:this.mergedShow,actions:this.actions,shortcuts:this.shortcuts,style:this.cssVars,defaultTime:this.defaultTime,themeClass:this.themeClass,panel:this.panel,inputReadonly:this.inputReadonly||this.mergedDisabled,onRender:this.onRender,onNextMonth:this.onNextMonth,onPrevMonth:this.onPrevMonth,onNextYear:this.onNextYear,onPrevYear:this.onPrevYear,timePickerFormat:this.timePickerFormat,dateFormat:this.dateFormat,fastYearSelect:this.fastYearSelect,fastMonthSelect:this.fastMonthSelect,calendarDayFormat:this.calendarDayFormat,calendarHeaderYearFormat:this.calendarHeaderYearFormat,calendarHeaderMonthFormat:this.calendarHeaderMonthFormat,calendarHeaderMonthYearSeparator:this.calendarHeaderMonthYearSeparator,calendarHeaderMonthBeforeYear:this.calendarHeaderMonthBeforeYear},o=()=>{let{type:e}=this;return e===`datetime`?a(_a,Object.assign({},i,{defaultCalendarStartTime:this.defaultCalendarStartTime}),r):e===`daterange`?a(ai,Object.assign({},i,{defaultCalendarStartTime:this.defaultCalendarStartTime,defaultCalendarEndTime:this.defaultCalendarEndTime,bindCalendarMonths:this.bindCalendarMonths}),r):e===`datetimerange`?a(va,Object.assign({},i,{defaultCalendarStartTime:this.defaultCalendarStartTime,defaultCalendarEndTime:this.defaultCalendarEndTime,bindCalendarMonths:this.bindCalendarMonths}),r):e===`month`||e===`year`||e===`quarter`?a(ei,Object.assign({},i,{type:e,key:e})):e===`monthrange`||e===`yearrange`||e===`quarterrange`?a(ya,Object.assign({},i,{type:e})):a(ni,Object.assign({},i,{type:e,defaultCalendarStartTime:this.defaultCalendarStartTime}),r)};if(this.panel)return o();t?.();let s={bordered:this.mergedBordered,size:this.mergedSize,passivelyActivated:!0,disabled:this.mergedDisabled,readonly:this.inputReadonly||this.mergedDisabled,clearable:e,onClear:this.handleClear,onClick:this.handleTriggerClick,onKeydown:this.handleInputKeydown,onActivate:this.handleInputActivate,onDeactivate:this.handleInputDeactivate,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur};return a(`div`,{ref:`triggerElRef`,class:[`${n}-date-picker`,this.mergedDisabled&&`${n}-date-picker--disabled`,this.isRange&&`${n}-date-picker--range`,this.triggerThemeClass],style:this.triggerCssVars,onKeydown:this.handleKeydown},a(ce,null,{default:()=>[a(N,null,{default:()=>this.isRange?a(De,Object.assign({ref:`inputInstRef`,status:this.mergedStatus,value:[this.displayStartTime,this.displayEndTime],placeholder:[this.localizedStartPlaceholder,this.localizedEndPlaceholder],textDecoration:[this.isStartValueInvalid?`line-through`:``,this.isEndValueInvalid?`line-through`:``],pair:!0,onUpdateValue:this.handleRangeUpdateValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,internalForceFocus:this.mergedShow,internalDeactivateOnEnter:!0},s),{separator:()=>this.separator===void 0?V(r.separator,()=>[a(Ne,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>a(ct,null)})]):this.separator,[e?`clear-icon-placeholder`:`suffix`]:()=>V(r[`date-icon`],()=>[a(Ne,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>a(rt,null)})])}):a(De,Object.assign({ref:`inputInstRef`,status:this.mergedStatus,value:this.displayTime,placeholder:this.localizedPlacehoder,textDecoration:this.isValueInvalid&&!this.isRange?`line-through`:``,onUpdateValue:this.handleSingleUpdateValue,theme:this.mergedTheme.peers.Input,themeOverrides:this.mergedTheme.peerOverrides.Input,internalForceFocus:this.mergedShow,internalDeactivateOnEnter:!0},s),{[e?`clear-icon-placeholder`:`suffix`]:()=>a(Ne,{clsPrefix:n,class:`${n}-date-picker-icon`},{default:()=>V(r[`date-icon`],()=>[a(rt,null)])})})}),a(le,{show:this.mergedShow,containerClass:this.namespace,to:this.adjustedTo,teleportDisabled:this.adjustedTo===P.tdkey,placement:this.placement},{default:()=>a(Me,{name:`fade-in-scale-up-transition`,appear:this.isMounted},{default:()=>this.mergedShow?v(o(),[[_e,this.handleClickOutside,void 0,{capture:!0}]]):null})})]}))}}),Ta={class:`center-block-custom`},Ea={class:`width1200`},Da=[`onClick`],Oa={class:`game-title`},ka={class:`game-description`},Aa={key:0,class:`game-date`},ja={key:1,class:`game-date`},Ma={key:2,class:`game-actions`},Na={key:0,class:`create-hint`},Pa={key:1,class:`create-hint`},Fa=Be(s({__name:`GamesPage`,setup(t){let n=Oe(),r=ke(),a=ne(),s=O([]);async function u(){try{s.value=[];let e=await n.GetGames({});s.value=e.games||[]}catch(e){r.error(e instanceof Error?e.message:`Не удалось загрузить игры`)}}u();async function d(e){a.push(`/games/`+e)}function ee(e){a.push(`/games/`+e+`/results`)}let te=O(!1),m=O(``),g=O(`online`),v=O(``),y=O(``),b=O(null),x=O(null),S=O(!1),C=O(!1),w=O(!1),k=O([]),A=T(()=>k.value.filter(e=>e.status==`public`&&e.ID!=null).map(e=>({label:e.name||``,value:e.ID})));async function re(){C.value=!0,w.value=!1;try{let e=await n.GetScenariosCatalog({});k.value=e.scenarios||[]}catch(e){w.value=!0,r.error(e instanceof Error?e.message:`Не удалось загрузить сценарии`)}finally{C.value=!1}}function ie(){m.value=``,g.value=`online`,v.value=``,y.value=``,b.value=null,x.value=null,te.value=!0,re()}async function ae(){let e=m.value.trim(),t=b.value,i=x.value;if(!(e==``||t==null||i==null)){S.value=!0;try{let o=await n.AddGame({name:e,description:v.value,location:y.value.trim(),format:g.value,startAt:new Date(i).toISOString(),scenarioID:t});r.success(`Игра создана`),te.value=!1,a.push(`/games/`+o.ID)}catch(e){r.error(e instanceof Error?e.message:`Не удалось создать игру`)}finally{S.value=!1}}}return(t,n)=>(p(),c(D,null,[f(`div`,Ta,[f(`div`,Ea,[f(`div`,{class:`game-block game-block-hover`,onClick:n[0]||=e=>ie()},[...n[10]||=[f(`div`,{class:`game-create-content`},[f(`span`,{class:`game-create-plus`},`+`),f(`span`,null,`Создать игру`)],-1)]]),(p(!0),c(D,null,l(s.value,t=>(p(),c(`div`,{key:t.ID,class:`game-block`,onClick:e=>d(t.ID)},[f(`div`,Oa,i(t.name)+` — `+i(t.format===`offline`?`Offline`:`Online`),1),f(`div`,ka,i(t.description),1),E(Ve)(t.startAt)?(p(),c(`div`,Aa,` Начало: `+i(E(Ve)(t.startAt)),1)):e(``,!0),t.location?(p(),c(`div`,ja,`Место: `+i(t.location),1)):e(``,!0),t.status==`finish`?(p(),c(`div`,Ma,[o(E(L),{size:`small`,ghost:``,onClick:Re(e=>ee(t.ID),[`stop`])},{default:h(()=>[...n[11]||=[_(`Результаты`,-1)]]),_:1},8,[`onClick`])])):e(``,!0)],8,Da))),128))])]),o(E(ye),{show:te.value,"onUpdate:show":n[9]||=e=>te.value=e},{default:h(()=>[o(E(me),{style:{width:`min(94vw, 600px)`},title:`Создание игры`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":h(()=>[o(E(L),{onClick:n[1]||=e=>te.value=!1},{default:h(()=>[...n[12]||=[_(` x `,-1)]]),_:1})]),footer:h(()=>[o(E(je),{justify:`end`},{default:h(()=>[o(E(L),{onClick:n[8]||=e=>ae(),loading:S.value,disabled:m.value.trim().length==0||b.value==null||x.value==null||S.value},{default:h(()=>[...n[19]||=[_(` Создать `,-1)]]),_:1},8,[`loading`,`disabled`])]),_:1})]),default:h(()=>[o(E(Ae),{vertical:``},{default:h(()=>[n[13]||=f(`p`,null,`Название`,-1),o(E(De),{value:m.value,"onUpdate:value":n[2]||=e=>m.value=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`]),n[14]||=f(`p`,null,`Формат игры`,-1),o(E(R),{value:g.value,"onUpdate:value":n[3]||=e=>g.value=e,options:[{label:`Online`,value:`online`},{label:`Offline`,value:`offline`}],"aria-label":`Формат игры`},null,8,[`value`]),n[15]||=f(`p`,null,`Описание`,-1),o(E(De),{value:v.value,"onUpdate:value":n[4]||=e=>v.value=e,type:`textarea`,placeholder:`Убийство пастуха...`},null,8,[`value`]),n[16]||=f(`p`,null,`Место проведения`,-1),o(E(De),{value:y.value,"onUpdate:value":n[5]||=e=>y.value=e,type:`text`,placeholder:`Оставьте пустым для онлайн-игры`},null,8,[`value`]),n[17]||=f(`p`,null,`Сценарий (дело из каталога)`,-1),o(E(R),{value:b.value,"onUpdate:value":n[6]||=e=>b.value=e,options:A.value,placeholder:`Выберите дело из каталога`},null,8,[`value`,`options`]),C.value?(p(),c(`p`,Na,`Загружаем сценарии...`)):A.value.length==0?(p(),c(`p`,Pa,i(w.value?`Не удалось загрузить список сценариев`:`В каталоге пока нет опубликованных сценариев`),1)):e(``,!0),n[18]||=f(`p`,null,`Дата и время проведения`,-1),o(E(wa),{value:x.value,"onUpdate:value":n[7]||=e=>x.value=e,type:`datetime`},null,8,[`value`])]),_:1})]),_:1})]),_:1},8,[`show`]),o(ze,{active:`games`})],64))}}),[[`__scopeId`,`data-v-5b88a650`]]),Ia=s({__name:`GamesView`,setup(e){return(e,n)=>(p(),t(Fa))}});export{Ia as default}; \ No newline at end of file diff --git a/frontend/dist/assets/HeaderMenu--hCKWQY2.js b/frontend/dist/assets/HeaderMenu--hCKWQY2.js deleted file mode 100644 index 531702c..0000000 --- a/frontend/dist/assets/HeaderMenu--hCKWQY2.js +++ /dev/null @@ -1 +0,0 @@ -import{Bt as e,D as t,M as n,N as r,O as i,T as a,X as o,ct as s,u as c,wt as l,yt as u}from"./client-CT8bsOZT.js";import{n as d,r as f,t as p}from"./es-BS8VS4O3.js";import{t as m}from"./index-oex1uI7H.js";import{t as h}from"./_plugin-vue_export-helper-BDNMzG2s.js";var g={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},_=r({name:`MenuOutlined`,render:function(e,t){return o(),i(`svg`,g,t[0]||=[a(`path`,{d:`M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z`,fill:`currentColor`},null,-1)])}}),v={class:`menu-block`},y=[`aria-expanded`,`aria-label`],b={class:`right-group`},x=h(r({__name:`HeaderMenu`,props:{active:{}},setup(r){let h=r,g=m(),x=c(),S=d(),C=f(),w=u([]);async function T(){w.value=[];try{let e=await S.GetPermissions({});w.value=e.permissions||[]}catch(e){C.error(`Не удалось загрузить права доступа`),console.error(`Failed to load permissions:`,e)}}T();function E(e){return w.value.includes(e)}let D=()=>{x.push(`/login`)},O=()=>{g.logout(),x.push(`/login`)},k=u(!1);return(r,c)=>(o(),i(`div`,v,[a(`button`,{type:`button`,class:`burger-button`,"aria-expanded":k.value,"aria-label":k.value?`Закрыть меню`:`Открыть меню`,onClick:c[0]||=e=>k.value=!k.value},[n(l(p),{class:`burger-icon`,size:`28`},{default:s(()=>[n(l(_))]),_:1})],8,y),a(`div`,{class:e([`left-group menu-buttons-block`,k.value?``:`menu-buttons-block-active`])},[a(`button`,{type:`button`,class:e([`menu-item-block`,{active:h.active==`main`}]),onClick:c[1]||=e=>l(x).push(`/`)},` Главная `,2),l(g).hasRole(`user`)?(o(),i(`button`,{key:0,type:`button`,class:e([`menu-item-block`,{active:h.active==`office`}]),onClick:c[2]||=e=>l(x).push(`/office`)},` Кабинет `,2)):t(``,!0),E(`games_page`)?(o(),i(`button`,{key:1,type:`button`,class:e([`menu-item-block`,{active:h.active==`games`}]),onClick:c[3]||=e=>l(x).push(`/games`)},` Игры `,2)):t(``,!0),E(`games_page`)?(o(),i(`button`,{key:2,type:`button`,class:`menu-item-block`,onClick:c[4]||=e=>l(x).push(`/tickets/check`)},` Проверка билетов `)):t(``,!0),a(`button`,{type:`button`,class:`menu-item-block`,onClick:c[5]||=e=>l(x).push(`/screen`)},` Экран `),a(`button`,{type:`button`,class:e([`menu-item-block`,{active:h.active==`catalog`}]),onClick:c[6]||=e=>l(x).push(`/catalog`)},` Каталог `,2),E(`scenarios_page`)?(o(),i(`button`,{key:3,type:`button`,class:e([`menu-item-block`,{active:h.active==`scenarios`}]),onClick:c[7]||=e=>l(x).push(`/scenarios`)},` Сценарии `,2)):t(``,!0),E(`users_page`)?(o(),i(`button`,{key:4,type:`button`,class:e([`menu-item-block`,{active:h.active==`users`}]),onClick:c[8]||=e=>l(x).push(`/users`)},` Пользователи `,2)):t(``,!0),E(`reviews_page`)?(o(),i(`button`,{key:5,type:`button`,class:e([`menu-item-block`,{active:h.active==`reviews`}]),onClick:c[9]||=e=>l(x).push(`/reviews`)},` Отзывы `,2)):t(``,!0)],2),a(`div`,b,[l(g).isAuthenticated?t(``,!0):(o(),i(`button`,{key:0,type:`button`,class:`menu-item-block right`,onClick:D},` Войти `)),l(g).isAuthenticated?(o(),i(`button`,{key:1,type:`button`,class:`menu-item-block right`,onClick:O},` Выйти `)):t(``,!0)])]))}}),[[`__scopeId`,`data-v-4d2e6623`]]);export{x as t}; \ No newline at end of file diff --git a/frontend/dist/assets/HeaderMenu-B00Lip4O.css b/frontend/dist/assets/HeaderMenu-B00Lip4O.css deleted file mode 100644 index 620b458..0000000 --- a/frontend/dist/assets/HeaderMenu-B00Lip4O.css +++ /dev/null @@ -1 +0,0 @@ -.menu-block[data-v-4d2e6623]{background-color:#222;justify-content:space-between;align-items:center;width:100%;height:70px;padding:20px;display:flex;position:fixed;top:0;left:0}.menu-item-block[data-v-4d2e6623]{color:inherit;cursor:pointer;background:0 0;border:0;margin-left:10px;padding:5px;font-family:inherit;font-size:1.1em;display:inline-block}.menu-item-block[data-v-4d2e6623]:hover{color:#63e2b7;opacity:.8}.right[data-v-4d2e6623]{margin-left:auto}.active[data-v-4d2e6623]{color:#63e2b7}.burger-button[data-v-4d2e6623]{color:inherit;cursor:pointer;background:0 0;border:0;padding:0}@media (width>=1024px){.burger-button[data-v-4d2e6623]{display:none}}@media (width<1024px){.menu-buttons-block[data-v-4d2e6623]{background-color:#222;flex-direction:column;width:100%;padding-bottom:5px;display:flex;position:fixed;top:70px;left:0}.menu-buttons-block button[data-v-4d2e6623]{padding:15px 5px}.menu-buttons-block-active[data-v-4d2e6623]{position:relative;top:-1000px}.burger-icon[data-v-4d2e6623]{position:relative;top:5px}} diff --git a/frontend/dist/assets/HomeView-CwY9V2vM.js b/frontend/dist/assets/HomeView-CwY9V2vM.js deleted file mode 100644 index 63fde16..0000000 --- a/frontend/dist/assets/HomeView-CwY9V2vM.js +++ /dev/null @@ -1 +0,0 @@ -import{E as e,M as t,N as n,O as r,T as i,X as a,y as o}from"./client-CT8bsOZT.js";import{t as s}from"./HeaderMenu--hCKWQY2.js";import{t as c}from"./_plugin-vue_export-helper-BDNMzG2s.js";var l=c(n({__name:`HomePage`,setup(e){return(e,n)=>(a(),r(o,null,[n[0]||=i(`div`,{class:`center-block-custom content-block center-middle-block-custom height80`},[i(`div`,null,[i(`h1`,{class:`font-text`},`Вечерний детектив`),i(`h3`,{class:`font-text`},`Дело №0`),i(`p`,{class:`content-text`},`Поиграем?`)])],-1),t(s,{active:`main`})],64))}}),[[`__scopeId`,`data-v-3ca82fba`]]),u=n({__name:`HomeView`,setup(t){return(t,n)=>(a(),e(l))}});export{u as default}; \ No newline at end of file diff --git a/frontend/dist/assets/Input-B3ERgh42.js b/frontend/dist/assets/Input-B3ERgh42.js deleted file mode 100644 index 1fc3a48..0000000 --- a/frontend/dist/assets/Input-B3ERgh42.js +++ /dev/null @@ -1,234 +0,0 @@ -import{H as e,I as t,N as n,P as r,R as i,St as a,Z as o,m as s,ot as c,q as l,st as u,w as d,y as f,yt as p}from"./client-CT8bsOZT.js";import{G as m,H as h,K as g,M as ee,N as te,V as _,W as v,i as ne,o as re,q as y,r as ie}from"./light-DhgSQSdG.js";import{c as b,d as x,i as S,u as C}from"./Card-BX9nnwGC.js";import{r as ae}from"./css-DEmdllcC.js";import{t as oe}from"./use-merged-state-CRia4_FA.js";import{i as se}from"./Button-D8HO8D_D.js";import{n as ce,r as w}from"./use-form-item-CBXe24ar.js";import{a as T,i as E,r as D}from"./resolve-slot-BEScaVot.js";import{n as O,r as le,t as k}from"./Suffix-BVApm8eE.js";import{U as A,X as j,w as ue}from"./index-oex1uI7H.js";var M=n({name:`Eye`,render(){return t(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},t(`path`,{d:`M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`32`}),t(`circle`,{cx:`256`,cy:`256`,r:`80`,fill:`none`,stroke:`currentColor`,"stroke-miterlimit":`10`,"stroke-width":`32`}))}}),N=n({name:`EyeOff`,render(){return t(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},t(`path`,{d:`M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z`,fill:`currentColor`}),t(`path`,{d:`M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z`,fill:`currentColor`}),t(`path`,{d:`M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z`,fill:`currentColor`}),t(`path`,{d:`M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z`,fill:`currentColor`}),t(`path`,{d:`M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z`,fill:`currentColor`}))}}),P=s(`n-input`),de=h(`input`,` - max-width: 100%; - cursor: text; - line-height: 1.5; - z-index: auto; - outline: none; - box-sizing: border-box; - position: relative; - display: inline-flex; - border-radius: var(--n-border-radius); - background-color: var(--n-color); - transition: background-color .3s var(--n-bezier); - font-size: var(--n-font-size); - font-weight: var(--n-font-weight); - --n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2); -`,[v(`input, textarea`,` - overflow: hidden; - flex-grow: 1; - position: relative; - `),v(`input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder`,` - box-sizing: border-box; - font-size: inherit; - line-height: 1.5; - font-family: inherit; - border: none; - outline: none; - background-color: #0000; - text-align: inherit; - transition: - -webkit-text-fill-color .3s var(--n-bezier), - caret-color .3s var(--n-bezier), - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - `),v(`input-el, textarea-el`,` - -webkit-appearance: none; - scrollbar-width: none; - width: 100%; - min-width: 0; - text-decoration-color: var(--n-text-decoration-color); - color: var(--n-text-color); - caret-color: var(--n-caret-color); - background-color: transparent; - `,[_(`&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb`,` - width: 0; - height: 0; - display: none; - `),_(`&::placeholder`,` - color: #0000; - -webkit-text-fill-color: transparent !important; - `),_(`&:-webkit-autofill ~`,[v(`placeholder`,`display: none;`)])]),m(`round`,[g(`textarea`,`border-radius: calc(var(--n-height) / 2);`)]),v(`placeholder`,` - pointer-events: none; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - overflow: hidden; - color: var(--n-placeholder-color); - `,[_(`span`,` - width: 100%; - display: inline-block; - `)]),m(`textarea`,[v(`placeholder`,`overflow: visible;`)]),g(`autosize`,`width: 100%;`),m(`autosize`,[v(`textarea-el, input-el`,` - position: absolute; - top: 0; - left: 0; - height: 100%; - `)]),h(`input-wrapper`,` - overflow: hidden; - display: inline-flex; - flex-grow: 1; - position: relative; - padding-left: var(--n-padding-left); - padding-right: var(--n-padding-right); - `),v(`input-mirror`,` - padding: 0; - height: var(--n-height); - line-height: var(--n-height); - overflow: hidden; - visibility: hidden; - position: static; - white-space: pre; - pointer-events: none; - `),v(`input-el`,` - padding: 0; - height: var(--n-height); - line-height: var(--n-height); - `,[_(`&[type=password]::-ms-reveal`,`display: none;`),_(`+`,[v(`placeholder`,` - display: flex; - align-items: center; - `)])]),g(`textarea`,[v(`placeholder`,`white-space: nowrap;`)]),v(`eye`,` - display: flex; - align-items: center; - justify-content: center; - transition: color .3s var(--n-bezier); - `),m(`textarea`,`width: 100%;`,[h(`input-word-count`,` - position: absolute; - right: var(--n-padding-right); - bottom: var(--n-padding-vertical); - `),m(`resizable`,[h(`input-wrapper`,` - resize: vertical; - min-height: var(--n-height); - `)]),v(`textarea-el, textarea-mirror, placeholder`,` - height: 100%; - padding-left: 0; - padding-right: 0; - padding-top: var(--n-padding-vertical); - padding-bottom: var(--n-padding-vertical); - word-break: break-word; - display: inline-block; - vertical-align: bottom; - box-sizing: border-box; - line-height: var(--n-line-height-textarea); - margin: 0; - resize: none; - white-space: pre-wrap; - scroll-padding-block-end: var(--n-padding-vertical); - `),v(`textarea-mirror`,` - width: 100%; - pointer-events: none; - overflow: hidden; - visibility: hidden; - position: static; - white-space: pre-wrap; - overflow-wrap: break-word; - `)]),m(`pair`,[v(`input-el, placeholder`,`text-align: center;`),v(`separator`,` - display: flex; - align-items: center; - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - white-space: nowrap; - `,[h(`icon`,` - color: var(--n-icon-color); - `),h(`base-icon`,` - color: var(--n-icon-color); - `)])]),m(`disabled`,` - cursor: not-allowed; - background-color: var(--n-color-disabled); - `,[v(`border`,`border: var(--n-border-disabled);`),v(`input-el, textarea-el`,` - cursor: not-allowed; - color: var(--n-text-color-disabled); - text-decoration-color: var(--n-text-color-disabled); - `),v(`placeholder`,`color: var(--n-placeholder-color-disabled);`),v(`separator`,`color: var(--n-text-color-disabled);`,[h(`icon`,` - color: var(--n-icon-color-disabled); - `),h(`base-icon`,` - color: var(--n-icon-color-disabled); - `)]),h(`input-word-count`,` - color: var(--n-count-text-color-disabled); - `),v(`suffix, prefix`,`color: var(--n-text-color-disabled);`,[h(`icon`,` - color: var(--n-icon-color-disabled); - `),h(`internal-icon`,` - color: var(--n-icon-color-disabled); - `)])]),g(`disabled`,[v(`eye`,` - color: var(--n-icon-color); - cursor: pointer; - `,[_(`&:hover`,` - color: var(--n-icon-color-hover); - `),_(`&:active`,` - color: var(--n-icon-color-pressed); - `)]),_(`&:hover`,[v(`state-border`,`border: var(--n-border-hover);`)]),m(`focus`,`background-color: var(--n-color-focus);`,[v(`state-border`,` - border: var(--n-border-focus); - box-shadow: var(--n-box-shadow-focus); - `)])]),v(`border, state-border`,` - box-sizing: border-box; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - pointer-events: none; - border-radius: inherit; - border: var(--n-border); - transition: - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `),v(`state-border`,` - border-color: #0000; - z-index: 1; - `),v(`prefix`,`margin-right: 4px;`),v(`suffix`,` - margin-left: 4px; - `),v(`suffix, prefix`,` - transition: color .3s var(--n-bezier); - flex-wrap: nowrap; - flex-shrink: 0; - line-height: var(--n-height); - white-space: nowrap; - display: inline-flex; - align-items: center; - justify-content: center; - color: var(--n-suffix-text-color); - `,[h(`base-loading`,` - font-size: var(--n-icon-size); - margin: 0 2px; - color: var(--n-loading-color); - `),h(`base-clear`,` - font-size: var(--n-icon-size); - `,[v(`placeholder`,[h(`base-icon`,` - transition: color .3s var(--n-bezier); - color: var(--n-icon-color); - font-size: var(--n-icon-size); - `)])]),_(`>`,[h(`icon`,` - transition: color .3s var(--n-bezier); - color: var(--n-icon-color); - font-size: var(--n-icon-size); - `)]),h(`base-icon`,` - font-size: var(--n-icon-size); - `)]),h(`input-word-count`,` - pointer-events: none; - line-height: 1.5; - font-size: .85em; - color: var(--n-count-text-color); - transition: color .3s var(--n-bezier); - margin-left: 4px; - font-variant: tabular-nums; - `),[`warning`,`error`].map(e=>m(`${e}-status`,[g(`disabled`,[h(`base-loading`,` - color: var(--n-loading-color-${e}) - `),v(`input-el, textarea-el`,` - caret-color: var(--n-caret-color-${e}); - `),v(`state-border`,` - border: var(--n-border-${e}); - `),_(`&:hover`,[v(`state-border`,` - border: var(--n-border-hover-${e}); - `)]),_(`&:focus`,` - background-color: var(--n-color-focus-${e}); - `,[v(`state-border`,` - box-shadow: var(--n-box-shadow-focus-${e}); - border: var(--n-border-focus-${e}); - `)]),m(`focus`,` - background-color: var(--n-color-focus-${e}); - `,[v(`state-border`,` - box-shadow: var(--n-box-shadow-focus-${e}); - border: var(--n-border-focus-${e}); - `)])])]))]),fe=h(`input`,[m(`disabled`,[v(`input-el, textarea-el`,` - -webkit-text-fill-color: var(--n-text-color-disabled); - `)])]);function F(e){let t=0;for(let n of e)t++;return t}function I(e){return e===``||e==null}function pe(e){let t=p(null);function n(){let{value:n}=e;if(!n?.focus){i();return}let{selectionStart:r,selectionEnd:a,value:o}=n;if(r==null||a==null){i();return}t.value={start:r,end:a,beforeText:o.slice(0,r),afterText:o.slice(a)}}function r(){var n;let{value:r}=t,{value:i}=e;if(!r||!i)return;let{value:a}=i,{start:o,beforeText:s,afterText:c}=r,l=a.length;if(a.endsWith(c))l=a.length-c.length;else if(a.startsWith(s))l=s.length;else{let e=s[o-1],t=a.indexOf(e,o-1);t!==-1&&(l=t+1)}(n=i.setSelectionRange)==null||n.call(i,l,l)}function i(){t.value=null}return c(e,i),{recordCursor:n,restoreCursor:r}}var L=n({name:`InputWordCount`,setup(e,{slots:n}){let{mergedValueRef:r,maxlengthRef:a,mergedClsPrefixRef:o,countGraphemesRef:s}=i(P),c=d(()=>{let{value:e}=r;return e===null||Array.isArray(e)?0:(s.value||F)(e)});return()=>{let{value:e}=a,{value:i}=r;return t(`span`,{class:`${o.value}-input-word-count`},E(n.default,{value:i===null||Array.isArray(i)?``:i},()=>[e===void 0?c.value:`${c.value} / ${e}`]))}}}),R=n({name:`Input`,props:Object.assign(Object.assign({},ie.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:`text`},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:[Function,Array],onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:{type:Boolean,default:!0},showPasswordToggle:Boolean}),slots:Object,setup(t){let{mergedClsPrefixRef:n,mergedBorderedRef:i,inlineThemeDisabled:s,mergedRtlRef:f,mergedComponentPropsRef:m}=te(t),h=ie(`Input`,`-input`,de,ue,t,n);se&&ne(`-input-safari`,fe,n);let g=p(null),_=p(null),v=p(null),b=p(null),S=p(null),T=p(null),E=p(null),D=pe(E),O=p(null),{localeRef:k}=le(`Input`),A=p(t.defaultValue),M=oe(a(t,`value`),A),N=ce(t,{mergedSize:e=>{let{size:n}=t;if(n)return n;let{mergedSize:r}=e||{};return r?.value?r.value:m?.value?.Input?.size||`medium`}}),{mergedSizeRef:F,mergedDisabledRef:L,mergedStatusRef:R}=N,z=p(!1),B=p(!1),V=p(!1),H=p(!1),U=null,W=d(()=>{let{placeholder:e,pair:n}=t;return n?Array.isArray(e)?e:e===void 0?[``,``]:[e,e]:e===void 0?[k.value.placeholder]:[e]}),me=d(()=>{let{value:e}=V,{value:t}=M,{value:n}=W;return!e&&(I(t)||Array.isArray(t)&&I(t[0]))&&n[0]}),he=d(()=>{let{value:e}=V,{value:t}=M,{value:n}=W;return!e&&n[1]&&(I(t)||Array.isArray(t)&&I(t[1]))}),G=j(()=>t.internalForceFocus||z.value),ge=j(()=>{if(L.value||t.readonly||!t.clearable||!G.value&&!B.value)return!1;let{value:e}=M,{value:n}=G;return t.pair?!!(Array.isArray(e)&&(e[0]||e[1]))&&(B.value||n):!!e&&(B.value||n)}),K=d(()=>{let{showPasswordOn:e}=t;if(e)return e;if(t.showPasswordToggle)return`click`}),q=p(!1),_e=d(()=>{let{textDecoration:e}=t;return e?Array.isArray(e)?e.map(e=>({textDecoration:e})):[{textDecoration:e}]:[``,``]}),ve=p(void 0),ye=()=>{if(t.type===`textarea`){let{autosize:e}=t;if(e&&(ve.value=O.value?.$el?.offsetWidth),!_.value||typeof e==`boolean`)return;let{paddingTop:n,paddingBottom:r,lineHeight:i}=window.getComputedStyle(_.value),a=Number(n.slice(0,-2)),o=Number(r.slice(0,-2)),s=Number(i.slice(0,-2)),{value:c}=v;if(!c)return;if(e.minRows){let t=Math.max(e.minRows,1),n=`${a+o+s*t}px`;c.style.minHeight=n}if(e.maxRows){let t=`${a+o+s*e.maxRows}px`;c.style.maxHeight=t}}},be=d(()=>{let{maxlength:e}=t;return e===void 0?void 0:Number(e)});l(()=>{let{value:e}=M;Array.isArray(e)||$(e)});let xe=r().proxy;function J(e,n){let{onUpdateValue:r,"onUpdate:value":i,onInput:a}=t,{nTriggerFormInput:o}=N;r&&w(r,e,n),i&&w(i,e,n),a&&w(a,e,n),A.value=e,o()}function Y(e,n){let{onChange:r}=t,{nTriggerFormChange:i}=N;r&&w(r,e,n),A.value=e,i()}function Se(e){let{onBlur:n}=t,{nTriggerFormBlur:r}=N;n&&w(n,e),r()}function Ce(e){let{onFocus:n}=t,{nTriggerFormFocus:r}=N;n&&w(n,e),r()}function we(e){let{onClear:n}=t;n&&w(n,e)}function Te(e){let{onInputBlur:n}=t;n&&w(n,e)}function Ee(e){let{onInputFocus:n}=t;n&&w(n,e)}function De(){let{onDeactivate:e}=t;e&&w(e)}function Oe(){let{onActivate:e}=t;e&&w(e)}function ke(e){let{onClick:n}=t;n&&w(n,e)}function Ae(e){let{onWrapperFocus:n}=t;n&&w(n,e)}function je(e){let{onWrapperBlur:n}=t;n&&w(n,e)}function Me(){V.value=!0}function Ne(e){V.value=!1,e.target===T.value?X(e,1):X(e,0)}function X(n,r=0,i=`input`){let a=n.target.value;if($(a),n instanceof InputEvent&&!n.isComposing&&(V.value=!1),t.type===`textarea`){let{value:e}=O;e&&e.syncUnifiedContainer()}if(U=a,V.value)return;D.recordCursor();let o=Pe(a);if(o)if(!t.pair)i===`input`?J(a,{source:r}):Y(a,{source:r});else{let{value:e}=M;e=Array.isArray(e)?[e[0],e[1]]:[``,``],e[r]=a,i===`input`?J(e,{source:r}):Y(e,{source:r})}xe.$forceUpdate(),o||e(D.restoreCursor)}function Pe(e){let{countGraphemes:n,maxlength:r,minlength:i}=t;if(n){let t;if(r!==void 0&&(t===void 0&&(t=n(e)),t>Number(r))||i!==void 0&&(t===void 0&&(t=n(e)),t{e.preventDefault(),C(`mouseup`,document,t)};if(x(`mouseup`,document,t),K.value!==`mousedown`)return;q.value=!0;let n=()=>{q.value=!1,C(`mouseup`,document,n)};x(`mouseup`,document,n)}function Je(e){t.onKeyup&&w(t.onKeyup,e)}function Ye(e){switch(t.onKeydown&&w(t.onKeydown,e),e.key){case`Escape`:Q();break;case`Enter`:Xe(e);break}}function Xe(e){var n,r;if(t.passivelyActivated){let{value:i}=H;if(i){t.internalDeactivateOnEnter&&Q();return}e.preventDefault(),t.type===`textarea`?(n=_.value)==null||n.focus():(r=S.value)==null||r.focus()}}function Q(){t.passivelyActivated&&(H.value=!1,e(()=>{var e;(e=g.value)==null||e.focus()}))}function Ze(){var e,n,r;L.value||(t.passivelyActivated?(e=g.value)==null||e.focus():((n=_.value)==null||n.focus(),(r=S.value)==null||r.focus()))}function Qe(){g.value?.contains(document.activeElement)&&document.activeElement.blur()}function $e(){var e,t;(e=_.value)==null||e.select(),(t=S.value)==null||t.select()}function et(){L.value||(_.value?_.value.focus():S.value&&S.value.focus())}function tt(){let{value:e}=g;e?.contains(document.activeElement)&&e!==document.activeElement&&Q()}function nt(e){if(t.type===`textarea`){let{value:t}=_;t?.scrollTo(e)}else{let{value:t}=S;t?.scrollTo(e)}}function $(e){let{type:n,pair:r,autosize:i}=t;if(!r&&i)if(n===`textarea`){let{value:t}=v;t&&(t.textContent=`${e??``}\r\n`)}else{let{value:t}=b;t&&(e?t.textContent=e:t.innerHTML=` `)}}function rt(){ye()}let it=p({top:`0`});function at(e){var t;let{scrollTop:n}=e.target;it.value.top=`${-n}px`,(t=O.value)==null||t.syncUnifiedContainer()}let ot=null;u(()=>{let{autosize:e,type:n}=t;e&&n===`textarea`?ot=c(M,e=>{!Array.isArray(e)&&e!==U&&$(e)}):ot?.()});let st=null;u(()=>{t.type===`textarea`?st=c(M,e=>{var t;!Array.isArray(e)&&e!==U&&((t=O.value)==null||t.syncUnifiedContainer())}):st?.()}),o(P,{mergedValueRef:M,maxlengthRef:be,mergedClsPrefixRef:n,countGraphemesRef:a(t,`countGraphemes`)});let ct={wrapperElRef:g,inputElRef:S,textareaElRef:_,isCompositing:V,clear:He,focus:Ze,blur:Qe,select:$e,deactivate:tt,activate:et,scrollTo:nt},lt=re(`Input`,f,n),ut=d(()=>{let{value:e}=F,{common:{cubicBezierEaseInOut:t},self:{color:n,borderRadius:r,textColor:i,caretColor:a,caretColorError:o,caretColorWarning:s,textDecorationColor:c,border:l,borderDisabled:u,borderHover:d,borderFocus:f,placeholderColor:p,placeholderColorDisabled:m,lineHeightTextarea:g,colorDisabled:ee,colorFocus:te,textColorDisabled:_,boxShadowFocus:v,iconSize:ne,colorFocusWarning:re,boxShadowFocusWarning:ie,borderWarning:b,borderFocusWarning:x,borderHoverWarning:S,colorFocusError:C,boxShadowFocusError:oe,borderError:se,borderFocusError:ce,borderHoverError:w,clearSize:T,clearColor:E,clearColorHover:D,clearColorPressed:O,iconColor:le,iconColorDisabled:k,suffixTextColor:A,countTextColor:j,countTextColorDisabled:ue,iconColorHover:M,iconColorPressed:N,loadingColor:P,loadingColorError:de,loadingColorWarning:fe,fontWeight:I,[y(`padding`,e)]:pe,[y(`fontSize`,e)]:L,[y(`height`,e)]:R}}=h.value,{left:z,right:B}=ae(pe);return{"--n-bezier":t,"--n-count-text-color":j,"--n-count-text-color-disabled":ue,"--n-color":n,"--n-font-size":L,"--n-font-weight":I,"--n-border-radius":r,"--n-height":R,"--n-padding-left":z,"--n-padding-right":B,"--n-text-color":i,"--n-caret-color":a,"--n-text-decoration-color":c,"--n-border":l,"--n-border-disabled":u,"--n-border-hover":d,"--n-border-focus":f,"--n-placeholder-color":p,"--n-placeholder-color-disabled":m,"--n-icon-size":ne,"--n-line-height-textarea":g,"--n-color-disabled":ee,"--n-color-focus":te,"--n-text-color-disabled":_,"--n-box-shadow-focus":v,"--n-loading-color":P,"--n-caret-color-warning":s,"--n-color-focus-warning":re,"--n-box-shadow-focus-warning":ie,"--n-border-warning":b,"--n-border-focus-warning":x,"--n-border-hover-warning":S,"--n-loading-color-warning":fe,"--n-caret-color-error":o,"--n-color-focus-error":C,"--n-box-shadow-focus-error":oe,"--n-border-error":se,"--n-border-focus-error":ce,"--n-border-hover-error":w,"--n-loading-color-error":de,"--n-clear-color":E,"--n-clear-size":T,"--n-clear-color-hover":D,"--n-clear-color-pressed":O,"--n-icon-color":le,"--n-icon-color-hover":M,"--n-icon-color-pressed":N,"--n-icon-color-disabled":k,"--n-suffix-text-color":A}}),dt=s?ee(`input`,d(()=>{let{value:e}=F;return e[0]}),ut,t):void 0;return Object.assign(Object.assign({},ct),{wrapperElRef:g,inputElRef:S,inputMirrorElRef:b,inputEl2Ref:T,textareaElRef:_,textareaMirrorElRef:v,textareaScrollbarInstRef:O,rtlEnabled:lt,uncontrolledValue:A,mergedValue:M,passwordVisible:q,mergedPlaceholder:W,showPlaceholder1:me,showPlaceholder2:he,mergedFocus:G,isComposing:V,activated:H,showClearButton:ge,mergedSize:F,mergedDisabled:L,textDecorationStyle:_e,mergedClsPrefix:n,mergedBordered:i,mergedShowPasswordOn:K,placeholderStyle:it,mergedStatus:R,textAreaScrollContainerWidth:ve,handleTextAreaScroll:at,handleCompositionStart:Me,handleCompositionEnd:Ne,handleInput:X,handleInputBlur:Fe,handleInputFocus:Ie,handleWrapperBlur:Le,handleWrapperFocus:Re,handleMouseEnter:We,handleMouseLeave:Ge,handleMouseDown:Ue,handleChange:ze,handleClick:Be,handleClear:Ve,handlePasswordToggleClick:Ke,handlePasswordToggleMousedown:qe,handleWrapperKeydown:Ye,handleWrapperKeyup:Je,handleTextAreaMirrorResize:rt,getTextareaScrollContainer:()=>_.value,mergedTheme:h,cssVars:s?void 0:ut,themeClass:dt?.themeClass,onRender:dt?.onRender})},render(){let{mergedClsPrefix:e,mergedStatus:n,themeClass:r,type:i,countGraphemes:a,onRender:o}=this,s=this.$slots;return o?.(),t(`div`,{ref:`wrapperElRef`,class:[`${e}-input`,`${e}-input--${this.mergedSize}-size`,r,n&&`${e}-input--${n}-status`,{[`${e}-input--rtl`]:this.rtlEnabled,[`${e}-input--disabled`]:this.mergedDisabled,[`${e}-input--textarea`]:i===`textarea`,[`${e}-input--resizable`]:this.resizable&&!this.autosize,[`${e}-input--autosize`]:this.autosize,[`${e}-input--round`]:this.round&&i!==`textarea`,[`${e}-input--pair`]:this.pair,[`${e}-input--focus`]:this.mergedFocus,[`${e}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.handleWrapperKeyup,onKeydown:this.handleWrapperKeydown},t(`div`,{class:`${e}-input-wrapper`},T(s.prefix,n=>n&&t(`div`,{class:`${e}-input__prefix`},n)),i===`textarea`?t(S,{ref:`textareaScrollbarInstRef`,class:`${e}-input__textarea`,container:this.getTextareaScrollContainer,theme:this.theme?.peers?.Scrollbar,themeOverrides:this.themeOverrides?.peers?.Scrollbar,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{let{textAreaScrollContainerWidth:n}=this,r={width:this.autosize&&n&&`${n}px`};return t(f,null,t(`textarea`,Object.assign({},this.inputProps,{ref:`textareaElRef`,class:[`${e}-input__textarea-el`,this.inputProps?.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],this.inputProps?.style,r],onBlur:this.handleInputBlur,onFocus:e=>{this.handleInputFocus(e,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?t(`div`,{class:`${e}-input__placeholder`,style:[this.placeholderStyle,r],key:`placeholder`},this.mergedPlaceholder[0]):null,this.autosize?t(b,{onResize:this.handleTextAreaMirrorResize},{default:()=>t(`div`,{ref:`textareaMirrorElRef`,class:`${e}-input__textarea-mirror`,key:`mirror`})}):null)}}):t(`div`,{class:`${e}-input__input`},t(`input`,Object.assign({type:i===`password`&&this.mergedShowPasswordOn&&this.passwordVisible?`text`:i},this.inputProps,{ref:`inputElRef`,class:[`${e}-input__input-el`,this.inputProps?.class],style:[this.textDecorationStyle[0],this.inputProps?.style],tabindex:this.passivelyActivated&&!this.activated?-1:this.inputProps?.tabindex,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:e=>{this.handleInputFocus(e,0)},onInput:e=>{this.handleInput(e,0)},onChange:e=>{this.handleChange(e,0)}})),this.showPlaceholder1?t(`div`,{class:`${e}-input__placeholder`},t(`span`,null,this.mergedPlaceholder[0])):null,this.autosize?t(`div`,{class:`${e}-input__input-mirror`,key:`mirror`,ref:`inputMirrorElRef`},`\xA0`):null),!this.pair&&T(s.suffix,n=>n||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?t(`div`,{class:`${e}-input__suffix`},[T(s[`clear-icon-placeholder`],n=>(this.clearable||n)&&t(O,{clsPrefix:e,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>n,icon:()=>{var e;return(e=this.$slots)[`clear-icon`]?.call(e)}})),this.internalLoadingBeforeSuffix?null:n,this.loading===void 0?null:t(k,{clsPrefix:e,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}),this.internalLoadingBeforeSuffix?n:null,this.showCount&&this.type!==`textarea`?t(L,null,{default:e=>{let{renderCount:t}=this;return t?t(e):s.count?.call(s,e)}}):null,this.mergedShowPasswordOn&&this.type===`password`?t(`div`,{class:`${e}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?D(s[`password-visible-icon`],()=>[t(A,{clsPrefix:e},{default:()=>t(M,null)})]):D(s[`password-invisible-icon`],()=>[t(A,{clsPrefix:e},{default:()=>t(N,null)})])):null]):null)),this.pair?t(`span`,{class:`${e}-input__separator`},D(s.separator,()=>[this.separator])):null,this.pair?t(`div`,{class:`${e}-input-wrapper`},t(`div`,{class:`${e}-input__input`},t(`input`,{ref:`inputEl2Ref`,type:this.type,class:`${e}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:a?void 0:this.maxlength,minlength:a?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:e=>{this.handleInputFocus(e,1)},onInput:e=>{this.handleInput(e,1)},onChange:e=>{this.handleChange(e,1)}}),this.showPlaceholder2?t(`div`,{class:`${e}-input__placeholder`},t(`span`,null,this.mergedPlaceholder[1])):null),T(s.suffix,n=>(this.clearable||n)&&t(`div`,{class:`${e}-input__suffix`},[this.clearable&&t(O,{clsPrefix:e,show:this.showClearButton,onClear:this.handleClear},{icon:()=>s[`clear-icon`]?.call(s),placeholder:()=>s[`clear-icon-placeholder`]?.call(s)}),n]))):null,this.mergedBordered?t(`div`,{class:`${e}-input__border`}):null,this.mergedBordered?t(`div`,{class:`${e}-input__state-border`}):null,this.showCount&&i===`textarea`?t(L,null,{default:e=>{let{renderCount:t}=this;return t?t(e):s.count?.call(s,e)}}):null)}});export{M as n,R as t}; \ No newline at end of file diff --git a/frontend/dist/assets/LoginView-C7kNhOvh.js b/frontend/dist/assets/LoginView-C7kNhOvh.js deleted file mode 100644 index 9356820..0000000 --- a/frontend/dist/assets/LoginView-C7kNhOvh.js +++ /dev/null @@ -1,113 +0,0 @@ -import{I as e,M as t,N as n,O as r,R as i,St as a,T as o,X as s,Z as c,ct as l,j as u,lt as d,m as f,u as p,w as m,wt as h,y as g,yt as _}from"./client-CT8bsOZT.js";import{G as v,H as y,J as b,M as x,N as S,V as C,W as w,Y as T,o as E,q as D,r as O}from"./light-DhgSQSdG.js";import{a as k,i as A,o as j,t as M}from"./Follower-Bm7xH84Z.js";import{a as N,o as ee,t as te}from"./utils-COJuPdUX.js";import{d as P,f as ne,t as F}from"./Card-BX9nnwGC.js";import{o as I,r as L,t as R}from"./fade-in-scale-up.cssr-DOaveAHn.js";import{t as z}from"./use-merged-state-CRia4_FA.js";import{t as B}from"./Button-D8HO8D_D.js";import{n as V,t as H}from"./Tabs-DpaEFwbI.js";import{n as U,r as W}from"./use-form-item-CBXe24ar.js";import{a as G}from"./resolve-slot-BEScaVot.js";import{t as K}from"./Input-B3ERgh42.js";import{r as q}from"./es-BS8VS4O3.js";import{t as J}from"./Space-B8J_02Fa.js";import{C as re,H as Y,I as ie,Q as ae,X as oe,Y as se,Z as ce,t as le,x as ue}from"./index-oex1uI7H.js";import{t as de}from"./HeaderMenu--hCKWQY2.js";import{t as fe}from"./_plugin-vue_export-helper-BDNMzG2s.js";var pe=C([y(`auto-complete`,` - z-index: auto; - position: relative; - display: inline-flex; - width: 100%; - `),y(`auto-complete-menu`,` - margin: 4px 0; - box-shadow: var(--n-menu-box-shadow); - `,[R({originalTransition:`background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)`})])]);function me(e){return e.map(X)}function X(e){return typeof e==`string`?{label:e,value:e}:e.type===`group`?{type:`group`,label:e.label??e.name,value:e.value??e.name,key:e.key||e.name,children:e.children.map(e=>X(e))}:e}var Z=n({name:`AutoComplete`,props:Object.assign(Object.assign({},O.props),{to:j.propTo,menuProps:Object,append:Boolean,bordered:{type:Boolean,default:void 0},clearable:{type:Boolean,default:void 0},defaultValue:{type:String,default:null},loading:{type:Boolean,default:void 0},disabled:{type:Boolean,default:void 0},placeholder:String,placement:{type:String,default:`bottom-start`},value:String,blurAfterSelect:Boolean,clearAfterSelect:Boolean,getShow:Function,showEmpty:Boolean,inputProps:Object,renderOption:Function,renderLabel:Function,size:String,options:{type:Array,default:()=>[]},zIndex:Number,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onSelect:[Function,Array],onBlur:[Function,Array],onFocus:[Function,Array],scrollbarProps:Object,onInput:[Function,Array]}),slots:Object,setup(e){let{mergedBorderedRef:t,namespaceRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:i,mergedComponentPropsRef:o}=S(e),s=U(e,{mergedSize:t=>{let{size:n}=e;if(n)return n;let{mergedSize:r}=t||{};return r?.value?r.value:o?.value?.AutoComplete?.size||`medium`}}),{mergedSizeRef:c,mergedDisabledRef:l,mergedStatusRef:u}=s,d=_(null),f=_(null),p=_(e.defaultValue),h=z(a(e,`value`),p),g=_(!1),v=_(!1),y=O(`AutoComplete`,`-auto-complete`,pe,re,e,r),b=m(()=>me(e.options)),C=m(()=>{let{getShow:t}=e;return t?t(h.value||``):!!h.value}),w=m(()=>C.value&&g.value&&(e.showEmpty?!0:!!b.value.length)),T=m(()=>ee(b.value,te(`value`,`children`)));function E(t){let{"onUpdate:value":n,onUpdateValue:r,onInput:i}=e,{nTriggerFormInput:a,nTriggerFormChange:o}=s;r&&W(r,t),n&&W(n,t),i&&W(i,t),p.value=t,a(),o()}function D(t){let{onSelect:n}=e,{nTriggerFormInput:r,nTriggerFormChange:i}=s;n&&W(n,t),r(),i()}function k(t){let{onBlur:n}=e,{nTriggerFormBlur:r}=s;n&&W(n,t),r()}function A(t){let{onFocus:n}=e,{nTriggerFormFocus:r}=s;n&&W(n,t),r()}function M(){v.value=!0}function N(){window.setTimeout(()=>{v.value=!1},0)}function P(e){var t,n;switch(e.key){case`Enter`:if(!v.value){let t=f.value?.getPendingTmNode();t&&(F(t.rawNode),e.preventDefault())}break;case`ArrowDown`:(t=f.value)==null||t.next();break;case`ArrowUp`:(n=f.value)==null||n.prev();break}}function F(t){t?.value!==void 0&&(D(t.value),e.clearAfterSelect?E(null):t.label!==void 0&&E(e.append?`${h.value}${t.label}`:t.label),g.value=!1,e.blurAfterSelect&&G())}function I(){E(null)}function L(e){g.value=!0,A(e)}function R(e){g.value=!1,k(e)}function B(e){g.value=!0,E(e)}function V(e){F(e.rawNode)}function H(e){d.value?.contains(ne(e))||(g.value=!1)}function G(){var e;d.value?.contains(document.activeElement)&&((e=document.activeElement)==null||e.blur())}let K=m(()=>{let{common:{cubicBezierEaseInOut:e},self:{menuBoxShadow:t}}=y.value;return{"--n-menu-box-shadow":t,"--n-bezier":e}}),q=i?x(`auto-complete`,void 0,K,e):void 0,J=_(null),Y={focus:()=>{var e;(e=J.value)==null||e.focus()},blur:()=>{var e;(e=J.value)==null||e.blur()}};return{focus:Y.focus,blur:Y.blur,inputInstRef:J,uncontrolledValue:p,mergedValue:h,isMounted:se(),adjustedTo:j(e),menuInstRef:f,triggerElRef:d,treeMate:T,mergedSize:c,mergedDisabled:l,active:w,mergedStatus:u,handleClear:I,handleFocus:L,handleBlur:R,handleInput:B,handleToggle:V,handleClickOutsideMenu:H,handleCompositionStart:M,handleCompositionEnd:N,handleKeyDown:P,mergedTheme:y,cssVars:i?void 0:K,themeClass:q?.themeClass,onRender:q?.onRender,mergedBordered:t,namespace:n,mergedClsPrefix:r}},render(){let{mergedClsPrefix:t}=this;return e(`div`,{class:`${t}-auto-complete`,ref:`triggerElRef`,onKeydown:this.handleKeyDown,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd},e(k,null,{default:()=>[e(A,null,{default:()=>{let t=this.$slots.default;if(t)return L(`default`,t,{handleInput:this.handleInput,handleFocus:this.handleFocus,handleBlur:this.handleBlur,value:this.mergedValue});let{mergedTheme:n}=this;return e(K,{ref:`inputInstRef`,status:this.mergedStatus,theme:n.peers.Input,themeOverrides:n.peerOverrides.Input,bordered:this.mergedBordered,value:this.mergedValue,placeholder:this.placeholder,size:this.mergedSize,disabled:this.mergedDisabled,clearable:this.clearable,loading:this.loading,inputProps:this.inputProps,onClear:this.handleClear,onFocus:this.handleFocus,onUpdateValue:this.handleInput,onBlur:this.handleBlur},{suffix:()=>{var e;return(e=this.$slots).suffix?.call(e)},prefix:()=>{var e;return(e=this.$slots).prefix?.call(e)}})}}),e(M,{show:this.active,to:this.adjustedTo,containerClass:this.namespace,zIndex:this.zIndex,teleportDisabled:this.adjustedTo===j.tdkey,placement:this.placement,width:`target`},{default:()=>e(ae,{name:`fade-in-scale-up-transition`,appear:this.isMounted},{default:()=>{var n;if((n=this.onRender)==null||n.call(this),!this.active)return null;let{menuProps:r}=this;return d(e(N,Object.assign({},r,{clsPrefix:t,ref:`menuInstRef`,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,"auto-pending":!0,class:[`${t}-auto-complete-menu`,this.themeClass,r?.class],style:[r?.style,this.cssVars],treeMate:this.treeMate,multiple:!1,renderLabel:this.renderLabel,renderOption:this.renderOption,size:`medium`,onToggle:this.handleToggle,scrollbarProps:this.scrollbarProps}),{empty:()=>{var e;return(e=this.$slots).empty?.call(e)}}),[[I,this.handleClickOutsideMenu,void 0,{capture:!0}]])}})})]}))}}),Q=f(`n-checkbox-group`);n({name:`CheckboxGroup`,props:{min:Number,max:Number,size:String,value:Array,defaultValue:{type:Array,default:null},disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]},setup(e){let{mergedClsPrefixRef:t}=S(e),n=U(e),{mergedSizeRef:r,mergedDisabledRef:i}=n,o=_(e.defaultValue),s=z(m(()=>e.value),o),l=m(()=>s.value?.length||0),u=m(()=>Array.isArray(s.value)?new Set(s.value):new Set);function d(t,r){let{nTriggerFormInput:i,nTriggerFormChange:a}=n,{onChange:c,"onUpdate:value":l,onUpdateValue:u}=e;if(Array.isArray(s.value)){let e=Array.from(s.value),n=e.findIndex(e=>e===r);t?~n||(e.push(r),u&&W(u,e,{actionType:`check`,value:r}),l&&W(l,e,{actionType:`check`,value:r}),i(),a(),o.value=e,c&&W(c,e)):~n&&(e.splice(n,1),u&&W(u,e,{actionType:`uncheck`,value:r}),l&&W(l,e,{actionType:`uncheck`,value:r}),c&&W(c,e),o.value=e,i(),a())}else t?(u&&W(u,[r],{actionType:`check`,value:r}),l&&W(l,[r],{actionType:`check`,value:r}),c&&W(c,[r]),o.value=[r],i(),a()):(u&&W(u,[],{actionType:`uncheck`,value:r}),l&&W(l,[],{actionType:`uncheck`,value:r}),c&&W(c,[]),o.value=[],i(),a())}return c(Q,{checkedCountRef:l,maxRef:a(e,`max`),minRef:a(e,`min`),valueSetRef:u,disabledRef:i,mergedSizeRef:r,toggleCheckbox:d}),{mergedClsPrefix:t}},render(){return e(`div`,{class:`${this.mergedClsPrefix}-checkbox-group`,role:`group`},this.$slots)}});var he=()=>e(`svg`,{viewBox:`0 0 64 64`,class:`check-icon`},e(`path`,{d:`M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z`})),ge=()=>e(`svg`,{viewBox:`0 0 100 100`,class:`line-icon`},e(`path`,{d:`M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z`})),_e=C([y(`checkbox`,` - font-size: var(--n-font-size); - outline: none; - cursor: pointer; - display: inline-flex; - flex-wrap: nowrap; - align-items: flex-start; - word-break: break-word; - line-height: var(--n-size); - --n-merged-color-table: var(--n-color-table); - `,[v(`show-label`,`line-height: var(--n-label-line-height);`),C(`&:hover`,[y(`checkbox-box`,[w(`border`,`border: var(--n-border-checked);`)])]),C(`&:focus:not(:active)`,[y(`checkbox-box`,[w(`border`,` - border: var(--n-border-focus); - box-shadow: var(--n-box-shadow-focus); - `)])]),v(`inside-table`,[y(`checkbox-box`,` - background-color: var(--n-merged-color-table); - `)]),v(`checked`,[y(`checkbox-box`,` - background-color: var(--n-color-checked); - `,[y(`checkbox-icon`,[C(`.check-icon`,` - opacity: 1; - transform: scale(1); - `)])])]),v(`indeterminate`,[y(`checkbox-box`,[y(`checkbox-icon`,[C(`.check-icon`,` - opacity: 0; - transform: scale(.5); - `),C(`.line-icon`,` - opacity: 1; - transform: scale(1); - `)])])]),v(`checked, indeterminate`,[C(`&:focus:not(:active)`,[y(`checkbox-box`,[w(`border`,` - border: var(--n-border-checked); - box-shadow: var(--n-box-shadow-focus); - `)])]),y(`checkbox-box`,` - background-color: var(--n-color-checked); - border-left: 0; - border-top: 0; - `,[w(`border`,{border:`var(--n-border-checked)`})])]),v(`disabled`,{cursor:`not-allowed`},[v(`checked`,[y(`checkbox-box`,` - background-color: var(--n-color-disabled-checked); - `,[w(`border`,{border:`var(--n-border-disabled-checked)`}),y(`checkbox-icon`,[C(`.check-icon, .line-icon`,{fill:`var(--n-check-mark-color-disabled-checked)`})])])]),y(`checkbox-box`,` - background-color: var(--n-color-disabled); - `,[w(`border`,` - border: var(--n-border-disabled); - `),y(`checkbox-icon`,[C(`.check-icon, .line-icon`,` - fill: var(--n-check-mark-color-disabled); - `)])]),w(`label`,` - color: var(--n-text-color-disabled); - `)]),y(`checkbox-box-wrapper`,` - position: relative; - width: var(--n-size); - flex-shrink: 0; - flex-grow: 0; - user-select: none; - -webkit-user-select: none; - `),y(`checkbox-box`,` - position: absolute; - left: 0; - top: 50%; - transform: translateY(-50%); - height: var(--n-size); - width: var(--n-size); - display: inline-block; - box-sizing: border-box; - border-radius: var(--n-border-radius); - background-color: var(--n-color); - transition: background-color 0.3s var(--n-bezier); - `,[w(`border`,` - transition: - border-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - border-radius: inherit; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border: var(--n-border); - `),y(`checkbox-icon`,` - display: flex; - align-items: center; - justify-content: center; - position: absolute; - left: 1px; - right: 1px; - top: 1px; - bottom: 1px; - `,[C(`.check-icon, .line-icon`,` - width: 100%; - fill: var(--n-check-mark-color); - opacity: 0; - transform: scale(0.5); - transform-origin: center; - transition: - fill 0.3s var(--n-bezier), - transform 0.3s var(--n-bezier), - opacity 0.3s var(--n-bezier), - border-color 0.3s var(--n-bezier); - `),ie({left:`1px`,top:`1px`})])]),w(`label`,` - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - user-select: none; - -webkit-user-select: none; - padding: var(--n-label-padding); - font-weight: var(--n-label-font-weight); - `,[C(`&:empty`,{display:`none`})])]),b(y(`checkbox`,` - --n-merged-color-table: var(--n-color-table-modal); - `)),T(y(`checkbox`,` - --n-merged-color-table: var(--n-color-table-popover); - `))]),$=n({name:`Checkbox`,props:Object.assign(Object.assign({},O.props),{size:String,checked:{type:[Boolean,String,Number],default:void 0},defaultChecked:{type:[Boolean,String,Number],default:!1},value:[String,Number],disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:String,focusable:{type:Boolean,default:!0},checkedValue:{type:[Boolean,String,Number],default:!0},uncheckedValue:{type:[Boolean,String,Number],default:!1},"onUpdate:checked":[Function,Array],onUpdateChecked:[Function,Array],privateInsideTable:Boolean,onChange:[Function,Array]}),setup(e){let t=i(Q,null),n=_(null),{mergedClsPrefixRef:r,inlineThemeDisabled:o,mergedRtlRef:s,mergedComponentPropsRef:c}=S(e),l=_(e.defaultChecked),u=z(a(e,`checked`),l),d=oe(()=>{if(t){let n=t.valueSetRef.value;return n&&e.value!==void 0?n.has(e.value):!1}else return u.value===e.checkedValue}),f=U(e,{mergedSize(n){let{size:r}=e;if(r!==void 0)return r;if(t){let{value:e}=t.mergedSizeRef;if(e!==void 0)return e}if(n){let{mergedSize:e}=n;if(e!==void 0)return e.value}return c?.value?.Checkbox?.size||`medium`},mergedDisabled(n){let{disabled:r}=e;if(r!==void 0)return r;if(t){if(t.disabledRef.value)return!0;let{maxRef:{value:e},checkedCountRef:n}=t;if(e!==void 0&&n.value>=e&&!d.value)return!0;let{minRef:{value:r}}=t;if(r!==void 0&&n.value<=r&&d.value)return!0}return n?n.disabled.value:!1}}),{mergedDisabledRef:p,mergedSizeRef:h}=f,g=O(`Checkbox`,`-checkbox`,_e,ue,e,r);function v(n){if(t&&e.value!==void 0)t.toggleCheckbox(!d.value,e.value);else{let{onChange:t,"onUpdate:checked":r,onUpdateChecked:i}=e,{nTriggerFormInput:a,nTriggerFormChange:o}=f,s=d.value?e.uncheckedValue:e.checkedValue;r&&W(r,s,n),i&&W(i,s,n),t&&W(t,s,n),a(),o(),l.value=s}}function y(e){p.value||v(e)}function b(e){if(!p.value)switch(e.key){case` `:case`Enter`:v(e)}}function C(e){switch(e.key){case` `:e.preventDefault()}}let w={focus:()=>{var e;(e=n.value)==null||e.focus()},blur:()=>{var e;(e=n.value)==null||e.blur()}},T=E(`Checkbox`,s,r),k=m(()=>{let{value:e}=h,{common:{cubicBezierEaseInOut:t},self:{borderRadius:n,color:r,colorChecked:i,colorDisabled:a,colorTableHeader:o,colorTableHeaderModal:s,colorTableHeaderPopover:c,checkMarkColor:l,checkMarkColorDisabled:u,border:d,borderFocus:f,borderDisabled:p,borderChecked:m,boxShadowFocus:_,textColor:v,textColorDisabled:y,checkMarkColorDisabledChecked:b,colorDisabledChecked:x,borderDisabledChecked:S,labelPadding:C,labelLineHeight:w,labelFontWeight:T,[D(`fontSize`,e)]:E,[D(`size`,e)]:O}}=g.value;return{"--n-label-line-height":w,"--n-label-font-weight":T,"--n-size":O,"--n-bezier":t,"--n-border-radius":n,"--n-border":d,"--n-border-checked":m,"--n-border-focus":f,"--n-border-disabled":p,"--n-border-disabled-checked":S,"--n-box-shadow-focus":_,"--n-color":r,"--n-color-checked":i,"--n-color-table":o,"--n-color-table-modal":s,"--n-color-table-popover":c,"--n-color-disabled":a,"--n-color-disabled-checked":x,"--n-text-color":v,"--n-text-color-disabled":y,"--n-check-mark-color":l,"--n-check-mark-color-disabled":u,"--n-check-mark-color-disabled-checked":b,"--n-font-size":E,"--n-label-padding":C}}),A=o?x(`checkbox`,m(()=>h.value[0]),k,e):void 0;return Object.assign(f,w,{rtlEnabled:T,selfRef:n,mergedClsPrefix:r,mergedDisabled:p,renderedChecked:d,mergedTheme:g,labelId:ce(),handleClick:y,handleKeyUp:b,handleKeyDown:C,cssVars:o?void 0:k,themeClass:A?.themeClass,onRender:A?.onRender})},render(){var t;let{$slots:n,renderedChecked:r,mergedDisabled:i,indeterminate:a,privateInsideTable:o,cssVars:s,labelId:c,label:l,mergedClsPrefix:u,focusable:d,handleKeyUp:f,handleKeyDown:p,handleClick:m}=this;(t=this.onRender)==null||t.call(this);let h=G(n.default,t=>l||t?e(`span`,{class:`${u}-checkbox__label`,id:c},l||t):null);return e(`div`,{ref:`selfRef`,class:[`${u}-checkbox`,this.themeClass,this.rtlEnabled&&`${u}-checkbox--rtl`,r&&`${u}-checkbox--checked`,i&&`${u}-checkbox--disabled`,a&&`${u}-checkbox--indeterminate`,o&&`${u}-checkbox--inside-table`,h&&`${u}-checkbox--show-label`],tabindex:i||!d?void 0:0,role:`checkbox`,"aria-checked":a?`mixed`:r,"aria-labelledby":c,style:s,onKeyup:f,onKeydown:p,onClick:m,onMousedown:()=>{P(`selectstart`,window,e=>{e.preventDefault()},{once:!0})}},e(`div`,{class:`${u}-checkbox-box-wrapper`},`\xA0`,e(`div`,{class:`${u}-checkbox-box`},e(Y,null,{default:()=>this.indeterminate?e(`div`,{key:`indeterminate`,class:`${u}-checkbox-icon`},ge()):e(`div`,{key:`check`,class:`${u}-checkbox-icon`},he())}),e(`div`,{class:`${u}-checkbox-box__border`}))),h)}}),ve={class:`center-block-custom content-block center-middle-block-custom height80`},ye={class:`form-button-wrapper`},be={class:`form-label`},xe={key:0},Se={key:1},Ce={class:`form-label`},we={class:`form-label`},Te={class:`form-button-wrapper`},Ee={class:`form-label`},De={key:0},Oe={key:1},ke={class:`form-button-wrapper`},Ae={class:`form-label`},je={key:0},Me={key:1},Ne=fe(n({__name:`LoginPage`,setup(e){let n=le(),i=p(),a=q(),c=_(``),d=_(``),f=_(``),g=_(!1),v=_(!1),y=m(()=>[`@mail.ru`,`@yandex.ru`,`@gmail.com`].map(e=>{let t=d.value.split(`@`)[0];return{label:t+e,value:t+e}}));async function b(){if(!await n.login(d.value,f.value)&&n.error!=null){a.error(n.error);return}i.push(`/office`)}async function x(){if(!(!g.value||!v.value)){if(!await n.signup(c.value,d.value,g.value,v.value)&&n.error!=null){a.error(n.error);return}a.info(`Пароль отправлен на почту`),g.value=!1,v.value=!1}}async function S(){if(!await n.refreshPassword(d.value)&&n.error!=null){a.error(n.error);return}a.info(`Пароль отправлен на почту`)}return(e,i)=>(s(),r(`div`,ve,[t(h(F),{style:{"margin-bottom":`16px`},class:`sign-card`},{default:l(()=>[t(h(H),{type:`line`,animated:``},{default:l(()=>[t(h(V),{name:`signin`,tab:`Вход`},{default:l(()=>[t(h(J),{vertical:``},{default:l(()=>[i[7]||=o(`div`,{class:`form-label`},`Почта`,-1),t(h(Z),{value:d.value,"onUpdate:value":i[0]||=e=>d.value=e,"input-props":{autocomplete:`disabled`},options:y.value,placeholder:`detective@mail.ru`,clearable:``},null,8,[`value`,`options`]),i[8]||=o(`div`,{class:`form-label`},`Пароль`,-1),t(h(K),{value:f.value,"onUpdate:value":i[1]||=e=>f.value=e,type:`password`,"show-password-on":`click`,placeholder:`********`},null,8,[`value`]),o(`div`,ye,[o(`div`,be,[t(h(B),{onClick:b,disabled:d.value.length==0||f.value.length==0},{default:l(()=>[h(n).isLoading?(s(),r(`span`,Se,` Подождите... `)):(s(),r(`span`,xe,` Вход `))]),_:1},8,[`disabled`])])])]),_:1})]),_:1}),t(h(V),{name:`signup`,tab:`Регистрация`},{default:l(()=>[t(h(J),{vertical:``},{default:l(()=>[i[11]||=o(`div`,{class:`form-label`},`Позывной`,-1),t(h(K),{value:c.value,"onUpdate:value":i[2]||=e=>c.value=e,type:`text`,placeholder:`Шерлок`},null,8,[`value`]),i[12]||=o(`div`,{class:`form-label`},`Почта`,-1),t(h(Z),{value:d.value,"onUpdate:value":i[3]||=e=>d.value=e,"input-props":{autocomplete:`disabled`},options:y.value,placeholder:`detective@mail.ru`,clearable:``},null,8,[`value`,`options`]),o(`div`,Ce,[t(h($),{checked:g.value,"onUpdate:checked":i[4]||=e=>g.value=e},{default:l(()=>[...i[9]||=[u(` Я принимаю условия `,-1),o(`a`,{href:`/user-agreement`,target:`_blank`,class:`docs-link`},`пользовательского соглашения`,-1)]]),_:1},8,[`checked`])]),o(`div`,we,[t(h($),{checked:v.value,"onUpdate:checked":i[5]||=e=>v.value=e},{default:l(()=>[...i[10]||=[u(` Я даю согласие на обработку `,-1),o(`a`,{href:`/privacy-policy`,target:`_blank`,class:`docs-link`},`персональных данных`,-1)]]),_:1},8,[`checked`])]),o(`div`,Te,[o(`div`,Ee,[t(h(B),{onClick:x,disabled:c.value.length==0||d.value.length==0||!g.value||!v.value},{default:l(()=>[h(n).isLoading?(s(),r(`span`,Oe,` Подождите... `)):(s(),r(`span`,De,` Регистрация `))]),_:1},8,[`disabled`])])])]),_:1})]),_:1}),t(h(V),{name:`new-password`,tab:`Новый пароль`},{default:l(()=>[t(h(J),{vertical:``},{default:l(()=>[i[13]||=o(`div`,{class:`form-label`},`Почта`,-1),t(h(Z),{value:d.value,"onUpdate:value":i[6]||=e=>d.value=e,"input-props":{autocomplete:`disabled`},options:y.value,placeholder:`detective@mail.ru`,clearable:``},null,8,[`value`,`options`]),o(`div`,ke,[o(`div`,Ae,[t(h(B),{onClick:S,disabled:d.value.length==0},{default:l(()=>[h(n).isLoading?(s(),r(`span`,Me,` Подождите... `)):(s(),r(`span`,je,` Прислать новый пароль `))]),_:1},8,[`disabled`])])])]),_:1})]),_:1})]),_:1})]),_:1})]))}}),[[`__scopeId`,`data-v-e7ea0635`]]),Pe=n({__name:`LoginView`,setup(e){return(e,n)=>(s(),r(g,null,[t(Ne),t(de)],64))}});export{Pe as default}; \ No newline at end of file diff --git a/frontend/dist/assets/Modal-a8TxC5Fw.js b/frontend/dist/assets/Modal-a8TxC5Fw.js deleted file mode 100644 index 859a73a..0000000 --- a/frontend/dist/assets/Modal-a8TxC5Fw.js +++ /dev/null @@ -1,108 +0,0 @@ -import{Bt as e,C as t,G as n,H as r,I as i,J as a,N as o,R as s,St as c,V as l,W as u,Z as d,lt as f,m as p,ot as m,p as h,q as g,vt as _,w as v,yt as y}from"./client-CT8bsOZT.js";import{B as b,G as x,H as S,J as C,M as w,N as T,V as E,W as D,o as O,q as k,r as A}from"./light-DhgSQSdG.js";import{d as j,f as ee,i as te,n as ne,r as re,s as M,t as ie,u as N}from"./Card-BX9nnwGC.js";import{r as ae}from"./css-DEmdllcC.js";import{a as oe,d as se,f as ce,h as P,i as le,l as ue,m as de,o as fe,p as pe,r as me,t as he,u as ge}from"./fade-in-scale-up.cssr-DOaveAHn.js";import{a as _e,t as F}from"./Button-D8HO8D_D.js";import{i as ve,n as ye,t as I}from"./keep-tsznRFn-.js";import{r as L}from"./use-form-item-CBXe24ar.js";import{a as R,r as z}from"./resolve-slot-BEScaVot.js";import{t as be}from"./fade-in.cssr-9JVxREOe.js";import{B as xe,F as Se,L as Ce,Q as B,R as we,U as Te,Y as Ee,h as De,m as Oe,q as V,tt as H,z as U}from"./index-oex1uI7H.js";var W=y(null);function G(e){if(e.clientX>0||e.clientY>0)W.value={x:e.clientX,y:e.clientY};else{let{target:t}=e;if(t instanceof Element){let{left:e,top:n,width:r,height:i}=t.getBoundingClientRect();e>0||n>0?W.value={x:e+r/2,y:n+i/2}:W.value={x:0,y:0}}else W.value=null}}var K=0,ke=!0;function Ae(){if(!P)return _(y(null));K===0&&j(`click`,document,G,!0);let e=()=>{K+=1};return(ke&&=de())?(u(e),n(()=>{--K,K===0&&N(`click`,document,G,!0)})):e(),_(W)}var je=y(void 0),q=0;function Me(){je.value=Date.now()}var Ne=!0;function Pe(e){if(!P)return _(y(!1));let t=y(!1),r=null;function i(){r!==null&&window.clearTimeout(r)}function a(){i(),t.value=!0,r=window.setTimeout(()=>{t.value=!1},e)}q===0&&j(`click`,window,Me,!0);let o=()=>{q+=1,j(`click`,window,a,!0)};return(Ne&&=de())?(u(o),n(()=>{--q,q===0&&N(`click`,window,Me,!0),N(`click`,window,a,!0),i()})):o(),_(t)}var J=y(!1);function Fe(){J.value=!0}function Ie(){J.value=!1}var Y=0;function Le(){return _e&&(u(()=>{Y||(window.addEventListener(`compositionstart`,Fe),window.addEventListener(`compositionend`,Ie)),Y++}),n(()=>{Y<=1?(window.removeEventListener(`compositionstart`,Fe),window.removeEventListener(`compositionend`,Ie),Y=0):Y--})),J}var X=0,Re=``,ze=``,Be=``,Ve=``,He=y(`0px`);function Ue(e){if(typeof document>`u`)return;let t=document.documentElement,r,i=!1,a=()=>{t.style.marginRight=Re,t.style.overflow=ze,t.style.overflowX=Be,t.style.overflowY=Ve,He.value=`0px`};g(()=>{r=m(e,e=>{if(e){if(!X){let e=window.innerWidth-t.offsetWidth;e>0&&(Re=t.style.marginRight,t.style.marginRight=`${e}px`,He.value=`${e}px`),ze=t.style.overflow,Be=t.style.overflowX,Ve=t.style.overflowY,t.style.overflow=`hidden`,t.style.overflowX=`hidden`,t.style.overflowY=`hidden`}i=!0,X++}else X--,X||a(),i=!1},{immediate:!0})}),n(()=>{r?.(),i&&=(X--,X||a(),!1)})}var We=p(`n-dialog-provider`);p(`n-dialog-api`),p(`n-dialog-reactive-list`);var Z={icon:Function,type:{type:String,default:`default`},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,titleClass:[String,Array],titleStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],actionClass:[String,Array],actionStyle:[String,Object],onPositiveClick:Function,onNegativeClick:Function,onClose:Function,closeFocusable:Boolean},Ge=M(Z),Ke=E([S(`dialog`,` - --n-icon-margin: var(--n-icon-margin-top) var(--n-icon-margin-right) var(--n-icon-margin-bottom) var(--n-icon-margin-left); - word-break: break-word; - line-height: var(--n-line-height); - position: relative; - background: var(--n-color); - color: var(--n-text-color); - box-sizing: border-box; - margin: auto; - border-radius: var(--n-border-radius); - padding: var(--n-padding); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `,[D(`icon`,` - color: var(--n-icon-color); - `),x(`bordered`,` - border: var(--n-border); - `),x(`icon-top`,[D(`close`,` - margin: var(--n-close-margin); - `),D(`icon`,` - margin: var(--n-icon-margin); - `),D(`content`,` - text-align: center; - `),D(`title`,` - justify-content: center; - `),D(`action`,` - justify-content: center; - `)]),x(`icon-left`,[D(`icon`,` - margin: var(--n-icon-margin); - `),x(`closable`,[D(`title`,` - padding-right: calc(var(--n-close-size) + 6px); - `)])]),D(`close`,` - position: absolute; - right: 0; - top: 0; - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - z-index: 1; - `),D(`content`,` - font-size: var(--n-font-size); - margin: var(--n-content-margin); - position: relative; - word-break: break-word; - `,[x(`last`,`margin-bottom: 0;`)]),D(`action`,` - display: flex; - justify-content: flex-end; - `,[E(`> *:not(:last-child)`,` - margin-right: var(--n-action-space); - `)]),D(`icon`,` - font-size: var(--n-icon-size); - transition: color .3s var(--n-bezier); - `),D(`title`,` - transition: color .3s var(--n-bezier); - display: flex; - align-items: center; - font-size: var(--n-title-font-size); - font-weight: var(--n-title-font-weight); - color: var(--n-title-text-color); - `),S(`dialog-icon-container`,` - display: flex; - justify-content: center; - `)]),C(S(`dialog`,` - width: 446px; - max-width: calc(100vw - 32px); - `)),S(`dialog`,[b(` - width: 446px; - max-width: calc(100vw - 32px); - `)])]),qe={default:()=>i(U,null),info:()=>i(U,null),success:()=>i(we,null),warning:()=>i(Ce,null),error:()=>i(xe,null)},Je=o({name:`Dialog`,alias:[`NimbusConfirmCard`,`Confirm`],props:Object.assign(Object.assign({},A.props),Z),slots:Object,setup(e){let{mergedComponentPropsRef:t,mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:i}=T(e),a=O(`Dialog`,i,n),o=v(()=>{let{iconPlacement:n}=e;return n||t?.value?.Dialog?.iconPlacement||`left`});function s(t){let{onPositiveClick:n}=e;n&&n(t)}function c(t){let{onNegativeClick:n}=e;n&&n(t)}function l(){let{onClose:t}=e;t&&t()}let u=A(`Dialog`,`-dialog`,Ke,De,e,n),d=v(()=>{let{type:t}=e,n=o.value,{common:{cubicBezierEaseInOut:r},self:{fontSize:i,lineHeight:a,border:s,titleTextColor:c,textColor:l,color:d,closeBorderRadius:f,closeColorHover:p,closeColorPressed:m,closeIconColor:h,closeIconColorHover:g,closeIconColorPressed:_,closeIconSize:v,borderRadius:y,titleFontWeight:b,titleFontSize:x,padding:S,iconSize:C,actionSpace:w,contentMargin:T,closeSize:E,[n===`top`?`iconMarginIconTop`:`iconMargin`]:D,[n===`top`?`closeMarginIconTop`:`closeMargin`]:O,[k(`iconColor`,t)]:A}}=u.value,j=ae(D);return{"--n-font-size":i,"--n-icon-color":A,"--n-bezier":r,"--n-close-margin":O,"--n-icon-margin-top":j.top,"--n-icon-margin-right":j.right,"--n-icon-margin-bottom":j.bottom,"--n-icon-margin-left":j.left,"--n-icon-size":C,"--n-close-size":E,"--n-close-icon-size":v,"--n-close-border-radius":f,"--n-close-color-hover":p,"--n-close-color-pressed":m,"--n-close-icon-color":h,"--n-close-icon-color-hover":g,"--n-close-icon-color-pressed":_,"--n-color":d,"--n-text-color":l,"--n-border-radius":y,"--n-padding":S,"--n-line-height":a,"--n-border":s,"--n-content-margin":T,"--n-title-font-size":x,"--n-title-font-weight":b,"--n-title-text-color":c,"--n-action-space":w}}),f=r?w(`dialog`,v(()=>`${e.type[0]}${o.value[0]}`),d,e):void 0;return{mergedClsPrefix:n,rtlEnabled:a,mergedIconPlacement:o,mergedTheme:u,handlePositiveClick:s,handleNegativeClick:c,handleCloseClick:l,cssVars:r?void 0:d,themeClass:f?.themeClass,onRender:f?.onRender}},render(){var e;let{bordered:t,mergedIconPlacement:n,cssVars:r,closable:a,showIcon:o,title:s,content:c,action:l,negativeText:u,positiveText:d,positiveButtonProps:f,negativeButtonProps:p,handlePositiveClick:m,handleNegativeClick:h,mergedTheme:g,loading:_,type:v,mergedClsPrefix:y}=this;(e=this.onRender)==null||e.call(this);let b=o?i(Te,{clsPrefix:y,class:`${y}-dialog__icon`},{default:()=>R(this.$slots.icon,e=>e||(this.icon?V(this.icon):qe[this.type]()))}):null,x=R(this.$slots.action,e=>e||d||u||l?i(`div`,{class:[`${y}-dialog__action`,this.actionClass],style:this.actionStyle},e||(l?[V(l)]:[this.negativeText&&i(F,Object.assign({theme:g.peers.Button,themeOverrides:g.peerOverrides.Button,ghost:!0,size:`small`,onClick:h},p),{default:()=>V(this.negativeText)}),this.positiveText&&i(F,Object.assign({theme:g.peers.Button,themeOverrides:g.peerOverrides.Button,size:`small`,type:v==="default"?`primary`:v,disabled:_,loading:_,onClick:m},f),{default:()=>V(this.positiveText)})])):null);return i(`div`,{class:[`${y}-dialog`,this.themeClass,this.closable&&`${y}-dialog--closable`,`${y}-dialog--icon-${n}`,t&&`${y}-dialog--bordered`,this.rtlEnabled&&`${y}-dialog--rtl`],style:r,role:`dialog`},a?R(this.$slots.close,e=>{let t=[`${y}-dialog__close`,this.rtlEnabled&&`${y}-dialog--rtl`];return e?i(`div`,{class:t},e):i(Se,{focusable:this.closeFocusable,clsPrefix:y,class:t,onClick:this.handleCloseClick})}):null,o&&n===`top`?i(`div`,{class:`${y}-dialog-icon-container`},b):null,i(`div`,{class:[`${y}-dialog__title`,this.titleClass],style:this.titleStyle},o&&n===`left`?b:null,z(this.$slots.header,()=>[V(s)])),i(`div`,{class:[`${y}-dialog__content`,x?``:`${y}-dialog__content--last`,this.contentClass],style:this.contentStyle},z(this.$slots.default,()=>[V(c)])),x)}}),Q=`n-draggable`;function Ye(e,t){let n,r=v(()=>e.value!==!1),i=v(()=>r.value?Q:``),o=v(()=>{let t=e.value;return t===!0||t===!1?!0:t?t.bounds!==`none`:!0});function s(e){let r=e.querySelector(`.${Q}`);if(!r||!i.value)return;let a=0,s=0,c=0,l=0,u=0,d=0,f,p=null,m=null;function h(t){t.preventDefault(),f=t;let{x:n,y:r,right:i,bottom:o}=e.getBoundingClientRect();s=n,l=r,a=window.innerWidth-i,c=window.innerHeight-o;let{left:p,top:m}=e.style;u=+m.slice(0,-2),d=+p.slice(0,-2)}function g(){m&&=(e.style.top=`${m.y}px`,e.style.left=`${m.x}px`,null),p=null}function _(e){if(!f)return;let{clientX:t,clientY:n}=f,r=e.clientX-t,i=e.clientY-n;o.value&&(r>a?r=a:-r>s&&(r=-s),i>c?i=c:-i>l&&(i=-l)),m={x:r+d,y:i+u},p||=requestAnimationFrame(g)}function v(){f=void 0,p&&=(cancelAnimationFrame(p),null),m&&=(e.style.top=`${m.y}px`,e.style.left=`${m.x}px`,null),t.onEnd(e)}j(`mousedown`,r,h),j(`mousemove`,window,_),j(`mouseup`,window,v),n=()=>{p&&cancelAnimationFrame(p),N(`mousedown`,r,h),N(`mousemove`,window,_),N(`mouseup`,window,v)}}function c(){n&&=(n(),void 0)}return a(c),{stopDrag:c,startDrag:s,draggableRef:r,draggableClassRef:i}}var $=Object.assign(Object.assign({},re),Z),Xe=M($),Ze=o({name:`ModalBody`,inheritAttrs:!1,slots:Object,props:Object.assign(Object.assign({show:{type:Boolean,required:!0},preset:String,displayDirective:{type:String,required:!0},trapFocus:{type:Boolean,default:!0},autoFocus:{type:Boolean,default:!0},blockScroll:Boolean,draggable:{type:[Boolean,Object],default:!1},maskHidden:Boolean},$),{renderMask:Function,onClickoutside:Function,onBeforeLeave:{type:Function,required:!0},onAfterLeave:{type:Function,required:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0},onClose:{type:Function,required:!0},onAfterEnter:Function,onEsc:Function}),setup(t){let n=y(null),i=y(null),a=y(t.show),o=y(null),l=y(null),u=s(se),f=null;m(c(t,`show`),e=>{e&&(f=u.getMousePosition())},{immediate:!0});let{stopDrag:p,startDrag:h,draggableRef:g,draggableClassRef:_}=Ye(c(t,`draggable`),{onEnd:e=>{C(e)}}),b=v(()=>e([t.titleClass,_.value])),x=v(()=>e([t.headerClass,_.value]));m(c(t,`show`),e=>{e&&(a.value=!0)}),Ue(v(()=>t.blockScroll&&a.value));function S(){if(u.transformOriginRef.value===`center`)return``;let{value:e}=o,{value:t}=l;return e===null||t===null?``:i.value?`${e}px ${t+i.value.containerScrollTop}px`:``}function C(e){if(u.transformOriginRef.value===`center`||!f||!i.value)return;let t=i.value.containerScrollTop,{offsetLeft:n,offsetTop:r}=e,a=f.y,s=f.x;o.value=-(n-s),l.value=-(r-a-t),e.style.transformOrigin=S()}function w(e){r(()=>{C(e)})}function T(e){e.style.transformOrigin=S(),t.onBeforeLeave()}function E(e){let n=e;g.value&&h(n),t.onAfterEnter&&t.onAfterEnter(n)}function D(){a.value=!1,o.value=null,l.value=null,p(),t.onAfterLeave()}function O(){let{onClose:e}=t;e&&e()}function k(){t.onNegativeClick()}function A(){t.onPositiveClick()}let j=y(null);return m(j,e=>{e&&r(()=>{let t=e.el;t&&n.value!==t&&(n.value=t)})}),d(ge,n),d(pe,null),d(ue,null),{mergedTheme:u.mergedThemeRef,appear:u.appearRef,isMounted:u.isMountedRef,mergedClsPrefix:u.mergedClsPrefixRef,bodyRef:n,scrollbarRef:i,draggableClass:_,displayed:a,childNodeRef:j,cardHeaderClass:x,dialogTitleClass:b,handlePositiveClick:A,handleNegativeClick:k,handleCloseClick:O,handleAfterEnter:E,handleAfterLeave:D,handleBeforeLeave:T,handleEnter:w}},render(){let{$slots:e,$attrs:n,handleEnter:r,handleAfterEnter:a,handleAfterLeave:o,handleBeforeLeave:s,preset:c,mergedClsPrefix:u}=this,d=null;if(!c){if(d=me(`default`,e.default,{draggableClass:this.draggableClass}),!d){h(`modal`,`default slot is empty`);return}d=t(d),d.props=l({class:`${u}-modal`},n,d.props||{})}return this.displayDirective===`show`||this.displayed||this.show?f(i(`div`,{role:`none`,class:[`${u}-modal-body-wrapper`,this.maskHidden&&`${u}-modal-body-wrapper--mask-hidden`]},i(te,{ref:`scrollbarRef`,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:`${u}-modal-scroll-content`},{default:()=>[this.renderMask?.call(this),i(ve,{disabled:!this.trapFocus||this.maskHidden,active:this.show,onEsc:this.onEsc,autoFocus:this.autoFocus},{default:()=>i(B,{name:`fade-in-scale-up-transition`,appear:this.appear??this.isMounted,onEnter:r,onAfterEnter:a,onAfterLeave:o,onBeforeLeave:s},{default:()=>{let t=[[H,this.show]],{onClickoutside:n}=this;return n&&t.push([fe,this.onClickoutside,void 0,{capture:!0}]),f(this.preset===`confirm`||this.preset===`dialog`?i(Je,Object.assign({},this.$attrs,{class:[`${u}-modal`,this.$attrs.class],ref:`bodyRef`,theme:this.mergedTheme.peers.Dialog,themeOverrides:this.mergedTheme.peerOverrides.Dialog},I(this.$props,Ge),{titleClass:this.dialogTitleClass,"aria-modal":`true`}),e):this.preset===`card`?i(ie,Object.assign({},this.$attrs,{ref:`bodyRef`,class:[`${u}-modal`,this.$attrs.class],theme:this.mergedTheme.peers.Card,themeOverrides:this.mergedTheme.peerOverrides.Card},I(this.$props,ne),{headerClass:this.cardHeaderClass,"aria-modal":`true`,role:`dialog`}),e):this.childNodeRef=d,t)}})})]})),[[H,this.displayDirective===`if`||this.displayed||this.show]]):null}}),Qe=E([S(`modal-container`,` - position: fixed; - left: 0; - top: 0; - height: 0; - width: 0; - display: flex; - `),S(`modal-mask`,` - position: fixed; - left: 0; - right: 0; - top: 0; - bottom: 0; - background-color: rgba(0, 0, 0, .4); - `,[be({enterDuration:`.25s`,leaveDuration:`.25s`,enterCubicBezier:`var(--n-bezier-ease-out)`,leaveCubicBezier:`var(--n-bezier-ease-out)`})]),S(`modal-body-wrapper`,` - position: fixed; - left: 0; - right: 0; - top: 0; - bottom: 0; - overflow: visible; - `,[S(`modal-scroll-content`,` - min-height: 100%; - display: flex; - position: relative; - `),x(`mask-hidden`,`pointer-events: none;`,[S(`modal-scroll-content`,[E(`> *`,` - pointer-events: all; - `)])])]),S(`modal`,` - position: relative; - align-self: center; - color: var(--n-text-color); - margin: auto; - box-shadow: var(--n-box-shadow); - `,[he({duration:`.25s`,enterScale:`.5`}),E(`.${Q}`,` - cursor: move; - user-select: none; - `)])]),$e=o({name:`Modal`,inheritAttrs:!1,props:Object.assign(Object.assign(Object.assign(Object.assign({},A.props),{show:Boolean,showMask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},preset:String,to:[String,Object],displayDirective:{type:String,default:`if`},transformOrigin:{type:String,default:`mouse`},zIndex:Number,autoFocus:{type:Boolean,default:!0},trapFocus:{type:Boolean,default:!0},closeOnEsc:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!0}}),$),{draggable:[Boolean,Object],onEsc:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onAfterEnter:Function,onBeforeLeave:Function,onAfterLeave:Function,onClose:Function,onPositiveClick:Function,onNegativeClick:Function,onMaskClick:Function,internalDialog:Boolean,internalModal:Boolean,internalAppear:{type:Boolean,default:void 0},overlayStyle:[String,Object],onBeforeHide:Function,onAfterHide:Function,onHide:Function,unstableShowMask:{type:Boolean,default:void 0}}),slots:Object,setup(e){let t=y(null),{mergedClsPrefixRef:n,namespaceRef:r,inlineThemeDisabled:i}=T(e),a=A(`Modal`,`-modal`,Qe,Oe,e,n),o=Pe(64),l=Ae(),u=Ee(),f=e.internalDialog?s(We,null):null,p=e.internalModal?s(ce,null):null,m=Le();function h(t){let{onUpdateShow:n,"onUpdate:show":r,onHide:i}=e;n&&L(n,t),r&&L(r,t),i&&!t&&i(t)}function g(){let{onClose:t}=e;t?Promise.resolve(t()).then(e=>{e!==!1&&h(!1)}):h(!1)}function _(){let{onPositiveClick:t}=e;t?Promise.resolve(t()).then(e=>{e!==!1&&h(!1)}):h(!1)}function b(){let{onNegativeClick:t}=e;t?Promise.resolve(t()).then(e=>{e!==!1&&h(!1)}):h(!1)}function x(){let{onBeforeLeave:t,onBeforeHide:n}=e;t&&L(t),n&&n()}function S(){let{onAfterLeave:t,onAfterHide:n}=e;t&&L(t),n&&n()}function C(n){let{onMaskClick:r}=e;r&&r(n),e.maskClosable&&t.value?.contains(ee(n))&&h(!1)}function E(t){var n;(n=e.onEsc)==null||n.call(e),e.show&&e.closeOnEsc&&ye(t)&&(m.value||h(!1))}d(se,{getMousePosition:()=>{let e=f||p;if(e){let{clickedRef:t,clickedPositionRef:n}=e;if(t.value&&n.value)return n.value}return o.value?l.value:null},mergedClsPrefixRef:n,mergedThemeRef:a,isMountedRef:u,appearRef:c(e,`internalAppear`),transformOriginRef:c(e,`transformOrigin`)});let D=v(()=>{let{common:{cubicBezierEaseOut:e},self:{boxShadow:t,color:n,textColor:r}}=a.value;return{"--n-bezier-ease-out":e,"--n-box-shadow":t,"--n-color":n,"--n-text-color":r}}),O=i?w(`theme-class`,void 0,D,e):void 0;return{mergedClsPrefix:n,namespace:r,isMounted:u,containerRef:t,presetProps:v(()=>I(e,Xe)),handleEsc:E,handleAfterLeave:S,handleClickoutside:C,handleBeforeLeave:x,doUpdateShow:h,handleNegativeClick:b,handlePositiveClick:_,handleCloseClick:g,cssVars:i?void 0:D,themeClass:O?.themeClass,onRender:O?.onRender}},render(){let{mergedClsPrefix:e}=this;return i(le,{to:this.to,show:this.show},{default:()=>{var t;(t=this.onRender)==null||t.call(this);let{showMask:n}=this;return f(i(`div`,{role:`none`,ref:`containerRef`,class:[`${e}-modal-container`,this.themeClass,this.namespace],style:this.cssVars},i(Ze,Object.assign({style:this.overlayStyle},this.$attrs,{ref:`bodyWrapper`,displayDirective:this.displayDirective,show:this.show,preset:this.preset,autoFocus:this.autoFocus,trapFocus:this.trapFocus,draggable:this.draggable,blockScroll:this.blockScroll,maskHidden:!n},this.presetProps,{onEsc:this.handleEsc,onClose:this.handleCloseClick,onNegativeClick:this.handleNegativeClick,onPositiveClick:this.handlePositiveClick,onBeforeLeave:this.handleBeforeLeave,onAfterEnter:this.onAfterEnter,onAfterLeave:this.handleAfterLeave,onClickoutside:n?void 0:this.handleClickoutside,renderMask:n?()=>i(B,{name:`fade-in-transition`,key:`mask`,appear:this.internalAppear??this.isMounted},{default:()=>this.show?i(`div`,{"aria-hidden":!0,ref:`containerRef`,class:`${e}-modal-mask`,onClick:this.handleClickoutside}):null}):void 0}),this.$slots)),[[oe,{zIndex:this.zIndex,enabled:this.show}]])}})}});export{$e as t}; \ No newline at end of file diff --git a/frontend/dist/assets/OfficeView-Hndeqd3w.js b/frontend/dist/assets/OfficeView-Hndeqd3w.js deleted file mode 100644 index c740daf..0000000 --- a/frontend/dist/assets/OfficeView-Hndeqd3w.js +++ /dev/null @@ -1 +0,0 @@ -import{D as e,E as t,Ht as n,M as r,N as i,O as a,T as o,X as s,ct as c,j as l,u,wt as d,y as f,yt as p}from"./client-CT8bsOZT.js";import{t as m}from"./Card-BX9nnwGC.js";import{t as h}from"./Modal-a8TxC5Fw.js";import{t as g}from"./Button-D8HO8D_D.js";import{t as _}from"./Input-B3ERgh42.js";import{t as v}from"./Alert-CWmvp18Y.js";import{n as y,r as b}from"./es-BS8VS4O3.js";import{nt as x,t as S}from"./index-oex1uI7H.js";import{t as C}from"./HeaderMenu--hCKWQY2.js";import{t as w}from"./_plugin-vue_export-helper-BDNMzG2s.js";var T={class:`center-block-custom`},E={class:`width700`},D={class:`danger-zone`},O={key:0,class:`delete-modal-error`},k={class:`delete-modal-buttons`},A=w(i({__name:`OfficePage`,setup(t){let i=S(),w=u(),A=b(),j=y(),M=p([]);async function N(){M.value=[];try{let e=await j.GetPermissions({});M.value=e.permissions||[]}catch(e){A.error(`Не удалось загрузить права доступа`),console.error(`Failed to load permissions:`,e)}}N();function P(){let e=new Date,t=e.getDay(),n=e.getDate(),r=e.getMonth()+1,i=t===1,a=t===5&&n===13,o=r===1&&n===1||r===12&&n===31,s=r>=6&&r<=8,c=r===12||r<=2,l=n%5==0,u=[`Всегда носи с собой запасную ручку — признания любят записывать в самый неподходящий момент.`,`Если подозреваемый слишком вежлив, он либо дипломат, либо прячет труп в гараже.`,`Кофе в участке — это не напиток, это яд для улик. Пей только свой.`,`Следы на месте преступления всегда ведут к тому, кто забыл закрыть дверь.`,`Лучший способ разговорить молчуна — предложить ему чай с тремя ложками сахара.`,`Если всё указывает на дворецкого, ищи того, кто нанимал дворецкого.`,`Записывай каждую мелочь. Особенно цвет носков убитого.`,`Не верь алиби, которое начинается со слов 'Я бы никогда...'`,`Преступник всегда возвращается на место преступления. Или за забытым телефоном.`,`Ищи того, кому есть что терять, кроме своего времени.`,`Если женщина плачет в кабинете — дай ей платок. Если мужчина — дай ему стакан воды.`,`Самое опасное оружие — не пистолет, а бухгалтерская книга.`,`Собака всегда знает убийцу. Но она не говорит, потому что у неё контракт.`,`Проверяй чеки, билеты и смс. Ложь не терпит документации.`,`Если у тела нет врагов — ты плохо искал врагов.`,`Лупа нужна не для увеличения улик, а для того, чтобы выглядеть умнее.`,`Интуиция — это когда ты уже знаешь ответ, но хочешь убедиться, что не ошибся.`,`Подозревай всех, даже самого себя. Иногда преступник — это ты в прошлом.`,`Хороший детектив видит улики. Великий — видит их отсутствие.`,`Никогда не допрашивай свидетеля на голодный желудок. И себя тоже.`,`Если дело зашло в тупик, переверни бумаги вверх ногами.`,`Самый ценный свидетель — это камера наблюдения, у которой сломана защита.`,`Не ищи мотив. Ищи возможность.`,`Преступник не оставляет следов. Он оставляет выбор.`,`Если дверь была закрыта изнутри — ищи люк, который открывается снаружи.`,`Лучший детектив — тот, кого не замечают в толпе.`,`Учись читать по губам. Пригодится на допросах с адвокатом.`,`Запах духов на месте преступления важнее запаха пороха.`,`Если ты нашел отпечаток пальца — проверь, не твой ли он.`,`Раскрыть дело — это искусство. Не раскрыть — тоже искусство, но другое.`,`Никогда не спорь с баллистикой. Она всегда права, даже если ты не согласен.`,`В каждом деле есть одна странная деталь. Найди её — и пазл сложится.`,`Если преступник умный — он оставит ложный след. Если глупый — он оставит следы в соцсетях.`,`Лучший друг детектива — тишина. Второй друг — кофе.`,`Если свидетель говорит слишком много, он врет. Если молчит — он тоже врет.`,`Преступление редко бывает идеальным. Идеальным бывает только алиби жены.`,`Всегда смотри на часы на трупе. Возможно, они показывают время, когда он перестал верить в людей.`,`Воры любят темноту. Детективы — свет. А маньяки — полную луну.`,`Если ты поймал преступника, не радуйся раньше времени — может, он просто лжец.`,`В каждом городе есть одно место, где собираются все сплетники. Начни оттуда.`,`Не верь в совпадения. Но верь в удачу.`,`Если у тебя нет улик — придумай их. Но только мысленно, чтобы знать, где искать.`,`Жертва всегда знала убийцу. Даже если она не знала, что знает.`,`Проверяй алиби на разрыв. Если оно выдерживает — ты ошибся.`,`Самый страшный враг детектива — не маньяк, а его собственная лень.`,`Если преступник оставил записку — прочитай её. И сожги, чтобы никто не узнал твой почерк.`,`Всегда носи с собой фонарик. Даже днём. Для эффекта.`,`В деле важно всё: от укуса комара до размера обуви.`,`Если ты думаешь, что дело простое — значит, ты не додумал.`,`Убийца всегда ищет внимания. Или наоборот, избегает его.`,`Стук в дверь в полночь — это либо полиция, либо заказчик.`,`Никогда не давай обещаний родственникам жертвы. Только факты.`,`Если у тебя есть три версии — выбирай четвёртую.`,`Лучшее оружие — это бумага. На ней можно написать что угодно.`,`Когда ты смотришь на улику, смотри на неё глазами преступника.`,`Все любят детективы, пока не становятся подозреваемыми.`,`Следы крови важны. Но важнее — следы лжи.`,`Если ты не спишь третьи сутки, значит, ты либо гений, либо дурак.`,`Проверяй каждого, кто говорит 'Я ничего не видел'.`,`В каждом деле есть один человек, который знает всё. И он не говорит.`,`Не суди преступника по одежде. Суди по тому, как он её снимал.`,`Дыра в алиби — это как дыра в лодке. Рано или поздно она утонет.`,`Если преступник использует перчатки — он профессионал. Если нет — он любитель.`,`Запомни: первая версия — всегда неверная.`,`Если у тебя кончились идеи, иди в бар. Там всегда есть кто-то, кто расскажет тебе дело.`,`Свидетель с фотороботом — это как слепой с компасом.`,`Никогда не смейся над уликами. Они могут обидеться и исчезнуть.`,`Если ты нашёл оружие — не трогай его. Иначе твои отпечатки будут на нём.`,`Преступник умён, но ты умнее. Потому что ты пьёшь правильный кофе.`,`Всегда пересматривай видеозаписи. Особенно в два раза медленнее.`,`Если на месте преступления есть кот — он видел всё. Но он не скажет.`,`Лучший способ поймать преступника — пригласить его на обед.`,`Если подозреваемый улыбается, он либо невиновен, либо психопат.`,`Проверяй мусор. В нём всегда есть что-то полезное.`,`Никогда не доверяй красивым историям. Только уродливым фактам.`,`Если ты нашёл улику слишком легко — это ловушка.`,`Убийца всегда оставляет послание. Даже если это просто тишина.`,`Если ты запнулся на допросе — делай вид, что так и задумано.`,`Помни: все врут. Даже я тебе советую.`,`Если ты боишься темноты — стань детективом. Страх пройдёт.`,`Самые лучшие признания случаются под утро, когда все устали.`,`Если преступник использовал компьютер, значит, он либо хакер, либо дурак.`,`Следы шин — это как подпись на дороге.`,`Никогда не забывай про запах. Он помнит дольше, чем люди.`,`Если ты не знаешь, что делать — съешь шоколадку.`,`В каждом деле есть одна минута слабости. Найди её.`,`Преступник всегда нервничает. Даже если он не нервничает.`,`Если у тебя есть подозреваемый и нет улик — подожди. Улики появятся.`,`Не верь в чудеса. Верь в логику.`,`Если ты устал — возьми отпуск. Преступление никуда не денется.`,`Запомни: самый опасный преступник — тот, кто читал детективы.`,`Если ты думаешь, что всё кончено — значит, ты пропустил поворот.`,`Следы на полу важнее следов в душе.`,`Если преступник оставил окурок — он курил. Или хотел, чтобы ты так думал.`,`Хороший детектив всегда голоден. Это помогает мыслить.`,`Не суди по первому впечатлению. Суди по второму, когда увидишь его в наручниках.`,`Если у тебя есть тайный агент — не доверяй ему.`,`В деле всегда есть тот, кто знает больше, чем говорит.`,`Если ты не можешь найти убийцу — стань им (в мыслях).`,`И последнее: всегда проверяй, закрыл ли ты дверь участка.`],d=[];i&&d.push(`☕ Понедельник: Сегодня даже преступники не хотят работать. Проверь тех, кто был слишком бодр.`),a&&d.push(`🔮 Пятница 13-е: Если улики ведут к чёрной кошке, ищи чёрного кота с алиби.`),o&&d.push(`🎄 Новый год: Свидетель в костюме Деда Мороза врёт. Настоящий Дед Мороз всегда в отпуске.`),s&&d.push(`☀️ Лето: В жару преступники забывают улики в карманах, потому что снимают пиджаки.`),c&&d.push(`❄️ Зима: Следы на снегу ведут к тому, у кого самые холодные руки.`),l&&d.push(`🌕 Полнолуние: Если подозреваемый воет на луну, он либо оборотень, либо фанат рока.`);let f=u.concat(d),p=f[Math.floor(Math.random()*f.length)],m=[`🔍 Заметки сыщика:`,`📓 Из дневника инспектора:`,`🕵️ Мудрость Шерлока:`,`🧠 Гениально и просто:`,`📌 Правило большого пальца:`,`☕ Кофейная истина:`];return{header:m[Math.floor(Math.random()*m.length)],text:p}}let F=P(),I=p(!1),L=p(``),R=p(``);async function z(){if(R.value=``,!await i.deleteAccount(L.value)){R.value=i.error||`Не удалось удалить аккаунт`;return}A.success(`Аккаунт и персональные данные удалены`),I.value=!1,w.push(`/login`)}return(t,u)=>(s(),a(f,null,[o(`div`,T,[o(`div`,E,[r(d(v),{title:d(F).header,"show-icon":!1,type:`info`,style:{"margin-bottom":`20px`}},{default:c(()=>[l(n(d(F).text),1)]),_:1},8,[`title`]),o(`p`,null,`Доброго времени суток, `+n(d(i).username)+`.`,1),o(`div`,D,[u[6]||=o(`div`,{class:`danger-zone-text`},[o(`div`,{class:`danger-zone-title`},`Удаление аккаунта`),o(`div`,{class:`danger-zone-hint`},` Удаление необратимо: аккаунт и все персональные данные будут стёрты (ст. 21 152-ФЗ). `)],-1),r(d(g),{type:`error`,ghost:``,onClick:u[0]||=e=>I.value=!0},{default:c(()=>[...u[5]||=[l(`Удалить аккаунт`,-1)]]),_:1})])])]),r(d(h),{show:I.value,"onUpdate:show":u[4]||=e=>I.value=e,class:`delete-modal`},{default:c(()=>[r(d(m),{title:`Удаление аккаунта`,bordered:!1,role:`dialog`,"aria-modal":`true`,closable:``,onClose:u[3]||=e=>I.value=!1},{default:c(()=>[u[9]||=o(`p`,{class:`delete-modal-text`},` Это действие необратимо. Для подтверждения удаления введите пароль от учётной записи — он понадобится, чтобы убедиться, что аккаунт удаляет его владелец. `,-1),r(d(_),{value:L.value,"onUpdate:value":u[1]||=e=>L.value=e,type:`password`,placeholder:`Пароль для подтверждения`,onKeyup:x(z,[`enter`])},null,8,[`value`]),R.value?(s(),a(`p`,O,n(R.value),1)):e(``,!0),o(`div`,k,[r(d(g),{onClick:u[2]||=e=>I.value=!1},{default:c(()=>[...u[7]||=[l(`Отмена`,-1)]]),_:1}),r(d(g),{type:`error`,disabled:L.value.length==0,loading:d(i).isLoading,onClick:z},{default:c(()=>[...u[8]||=[l(` Удалить навсегда `,-1)]]),_:1},8,[`disabled`,`loading`])])]),_:1})]),_:1},8,[`show`]),r(C,{active:`office`})],64))}}),[[`__scopeId`,`data-v-37e6a597`]]),j=i({__name:`OfficeView`,setup(e){return(e,n)=>(s(),t(A))}});export{j as default}; \ No newline at end of file diff --git a/frontend/dist/assets/ParticipationView-BSm9ZH0f.js b/frontend/dist/assets/ParticipationView-BSm9ZH0f.js deleted file mode 100644 index 70e0cb6..0000000 --- a/frontend/dist/assets/ParticipationView-BSm9ZH0f.js +++ /dev/null @@ -1 +0,0 @@ -import{D as e,E as t,Ht as n,M as r,N as i,O as a,T as o,X as s,ct as c,j as l,l as u,q as d,t as f,wt as p,y as m,yt as h}from"./client-CT8bsOZT.js";import{t as g}from"./Card-BX9nnwGC.js";import{t as _}from"./Button-D8HO8D_D.js";import{t as v}from"./Space-B8J_02Fa.js";import{t as y}from"./index-oex1uI7H.js";import{t as b}from"./HeaderMenu--hCKWQY2.js";import{t as x}from"./datetime-BJNH0M1T.js";var S={class:`center-block-custom`},C={class:`width700`},w={key:0,role:`alert`},T={key:0,role:`status`},E={key:1,role:`status`},D={key:2},O=i({__name:`ParticipationPage`,setup(i){let O=u(),k=new URLSearchParams(O.hash.slice(1)),A=k.get(`token`)||``,j=h(k.get(`answer`)===`cancelled`?`cancelled`:`confirmed`),M=f(),N=y(),P=h(),F=h(!1),I=h(``);async function L(){F.value=!0,I.value=``;try{let e=await M.GetParticipation({token:A});P.value=e}catch{I.value=`Не удалось загрузить данные. Попробуйте ещё раз.`}finally{F.value=!1}}async function R(){if(!F.value){F.value=!0,I.value=``;try{let e=await M.AnswerParticipation({token:A,answer:j.value});P.value=e}catch{I.value=`Не удалось сохранить ответ. Попробуйте ещё раз.`}finally{F.value=!1}}}return d(L),(i,u)=>(s(),a(m,null,[p(N).isAuthenticated?(s(),t(b,{key:0})):e(``,!0),o(`div`,S,[o(`div`,C,[r(p(g),{title:`Участие в игре`},{default:c(()=>[I.value?(s(),a(`p`,w,n(I.value),1)):e(``,!0),P.value?(s(),a(m,{key:1},[o(`h2`,null,n(P.value.gameName),1),o(`p`,null,`Команда: `+n(P.value.teamName),1),o(`p`,null,`Начало: `+n(p(x)(P.value.startAt)),1),o(`p`,null,`Участников: `+n(P.value.participantsCount),1),P.value.status===`confirmed`?(s(),a(`p`,T,` Участие подтверждено. Ждём вас на игре! Решение окончательное. `)):P.value.status===`cancelled`?(s(),a(`p`,E,` Запись отменена. Решение окончательное. `)):P.value.closed?(s(),a(`p`,D,` Приём ответов закрыт. Ваша запись сохранена со статусом «Ожидает ответа». `)):(s(),a(m,{key:3},[u[4]||=o(`p`,null,[o(`strong`,null,`Решение окончательное: изменить его нельзя.`)],-1),u[5]||=o(`p`,null,`Без ответа запись сохраняется со статусом «Ожидает ответа».`,-1),r(p(v),{vertical:``},{default:c(()=>[r(p(v),null,{default:c(()=>[r(p(_),{disabled:F.value,type:j.value===`confirmed`?`primary`:`default`,"aria-pressed":j.value===`confirmed`,onClick:u[0]||=e=>j.value=`confirmed`},{default:c(()=>[...u[2]||=[l(`Мы участвуем`,-1)]]),_:1},8,[`disabled`,`type`,`aria-pressed`]),r(p(_),{disabled:F.value,type:j.value===`cancelled`?`error`:`default`,"aria-pressed":j.value===`cancelled`,onClick:u[1]||=e=>j.value=`cancelled`},{default:c(()=>[...u[3]||=[l(`Мы не участвуем`,-1)]]),_:1},8,[`disabled`,`type`,`aria-pressed`])]),_:1}),r(p(_),{loading:F.value,disabled:F.value,type:j.value===`cancelled`?`error`:`primary`,onClick:R},{default:c(()=>[l(n(j.value===`confirmed`?`Подтверждаю участие`:`Подтверждаю отмену`),1)]),_:1},8,[`loading`,`disabled`,`type`])]),_:1})],64))],64)):(s(),t(p(_),{key:2,loading:F.value,onClick:L},{default:c(()=>[l(n(F.value?`Загрузка`:`Повторить`),1)]),_:1},8,[`loading`]))]),_:1})])])],64))}}),k=i({__name:`ParticipationView`,setup(e){return(e,n)=>(s(),t(O))}});export{k as default}; \ No newline at end of file diff --git a/frontend/dist/assets/PlaceBlock-lvcHyG82.js b/frontend/dist/assets/PlaceBlock-lvcHyG82.js deleted file mode 100644 index de3a086..0000000 --- a/frontend/dist/assets/PlaceBlock-lvcHyG82.js +++ /dev/null @@ -1,207 +0,0 @@ -import{$ as e,A as t,Bt as n,D as r,E as i,Ht as a,I as o,M as s,N as c,O as l,Q as u,R as d,St as f,T as p,Vt as m,X as h,Z as g,ct as _,ft as v,j as y,m as b,r as x,w as S,wt as C,xt as w,y as T,yt as E}from"./client-CT8bsOZT.js";import{G as D,H as O,I as k,K as A,M as j,N as M,V as N,W as P,i as F,n as ee,o as I,q as L,r as R,t as z}from"./light-DhgSQSdG.js";import{t as te}from"./Card-BX9nnwGC.js";import{i as B,t as V}from"./css-DEmdllcC.js";import{t as ne}from"./Modal-a8TxC5Fw.js";import{t as re}from"./use-merged-state-CRia4_FA.js";import{r as ie,t as H}from"./Button-D8HO8D_D.js";import{n as ae,r as U,t as oe}from"./use-form-item-CBXe24ar.js";import{n as se,t as ce}from"./Upload-DWDjLEkv.js";import{a as W,i as le,n as ue,r as de}from"./resolve-slot-BEScaVot.js";import{r as fe}from"./Suffix-BVApm8eE.js";import{t as pe}from"./Add-D3YI1YD1.js";import{t as G}from"./Input-B3ERgh42.js";import{t as me}from"./Remove-Bacfd-Dy.js";import{t as he}from"./Tag-wKk--N0F.js";import{t as ge}from"./es-BS8VS4O3.js";import{t as K}from"./Space-B8J_02Fa.js";import{t as _e}from"./text-CQ4PuMIN.js";import{H as ve,I as ye,M as be,S as xe,U as q,Z as Se,f as Ce,o as we,rt as J,w as Te}from"./index-oex1uI7H.js";import{t as Ee}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as Y,r as X,t as De}from"./application-DrhMrvIJ.js";import{t as Oe}from"./MessagePaper-DDMbPgod.js";var ke=c({name:`ArrowDown`,render(){return o(`svg`,{viewBox:`0 0 28 28`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},o(`g`,{stroke:`none`,"stroke-width":`1`,"fill-rule":`evenodd`},o(`g`,{"fill-rule":`nonzero`},o(`path`,{d:`M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z`}))))}}),Ae=c({name:`ArrowUp`,render(){return o(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`},o(`g`,{fill:`none`},o(`path`,{d:`M3.13 9.163a.5.5 0 1 0 .74.674L9.5 3.67V17.5a.5.5 0 0 0 1 0V3.672l5.63 6.165a.5.5 0 0 0 .738-.674l-6.315-6.916a.746.746 0 0 0-.632-.24a.746.746 0 0 0-.476.24L3.131 9.163z`,fill:`currentColor`})))}}),je=O(`input-group`,` - display: inline-flex; - width: 100%; - flex-wrap: nowrap; - vertical-align: bottom; -`,[N(`>`,[O(`input`,[N(`&:not(:last-child)`,` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),N(`&:not(:first-child)`,` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - margin-left: -1px!important; - `)]),O(`button`,[N(`&:not(:last-child)`,` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `,[P(`state-border, border`,` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `)]),N(`&:not(:first-child)`,` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `,[P(`state-border, border`,` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `)])]),N(`*`,[N(`&:not(:last-child)`,` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `,[N(`>`,[O(`input`,` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),O(`base-selection`,[O(`base-selection-label`,` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),O(`base-selection-tags`,` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `),P(`box-shadow, border, state-border`,` - border-top-right-radius: 0!important; - border-bottom-right-radius: 0!important; - `)])])]),N(`&:not(:first-child)`,` - margin-left: -1px!important; - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `,[N(`>`,[O(`input`,` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `),O(`base-selection`,[O(`base-selection-label`,` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `),O(`base-selection-tags`,` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `),P(`box-shadow, border, state-border`,` - border-top-left-radius: 0!important; - border-bottom-left-radius: 0!important; - `)])])])])])]),Me=c({name:`InputGroup`,props:{},setup(e){let{mergedClsPrefixRef:t}=M(e);return F(`-input-group`,je,t),{mergedClsPrefix:t}},render(){let{mergedClsPrefix:e}=this;return o(`div`,{class:`${e}-input-group`},this.$slots)}}),Z=`0!important`,Ne=`-1px!important`;function Q(e){return D(`${e}-type`,[N(`& +`,[O(`button`,{},[D(`${e}-type`,[P(`border`,{borderLeftWidth:Z}),P(`state-border`,{left:Ne})])])])])}function $(e){return D(`${e}-type`,[N(`& +`,[O(`button`,[D(`${e}-type`,[P(`border`,{borderTopWidth:Z}),P(`state-border`,{top:Ne})])])])])}var Pe=O(`button-group`,` - flex-wrap: nowrap; - display: inline-flex; - position: relative; -`,[A(`vertical`,{flexDirection:`row`},[A(`rtl`,[O(`button`,[N(`&:first-child:not(:last-child)`,` - margin-right: ${Z}; - border-top-right-radius: ${Z}; - border-bottom-right-radius: ${Z}; - `),N(`&:last-child:not(:first-child)`,` - margin-left: ${Z}; - border-top-left-radius: ${Z}; - border-bottom-left-radius: ${Z}; - `),N(`&:not(:first-child):not(:last-child)`,` - margin-left: ${Z}; - margin-right: ${Z}; - border-radius: ${Z}; - `),Q(`default`),D(`ghost`,[Q(`primary`),Q(`info`),Q(`success`),Q(`warning`),Q(`error`)])])])]),D(`vertical`,{flexDirection:`column`},[O(`button`,[N(`&:first-child:not(:last-child)`,` - margin-bottom: ${Z}; - margin-left: ${Z}; - margin-right: ${Z}; - border-bottom-left-radius: ${Z}; - border-bottom-right-radius: ${Z}; - `),N(`&:last-child:not(:first-child)`,` - margin-top: ${Z}; - margin-left: ${Z}; - margin-right: ${Z}; - border-top-left-radius: ${Z}; - border-top-right-radius: ${Z}; - `),N(`&:not(:first-child):not(:last-child)`,` - margin: ${Z}; - border-radius: ${Z}; - `),$(`default`),D(`ghost`,[$(`primary`),$(`info`),$(`success`),$(`warning`),$(`error`)])])])]),Fe=c({name:`ButtonGroup`,props:{size:String,vertical:Boolean},setup(e){let{mergedClsPrefixRef:t,mergedRtlRef:n}=M(e);return F(`-button-group`,Pe,t),g(ie,e),{rtlEnabled:I(`ButtonGroup`,n,t),mergedClsPrefix:t}},render(){let{mergedClsPrefix:e}=this;return o(`div`,{class:[`${e}-button-group`,this.rtlEnabled&&`${e}-button-group--rtl`,this.vertical&&`${e}-button-group--vertical`],role:`group`},this.$slots)}});function Ie(){return Ce}var Le=ee({name:`DynamicInput`,common:z,peers:{Input:Te,Button:xe},self:Ie}),Re=b(`n-dynamic-input`),ze=c({name:`DynamicInputInputPreset`,props:{clsPrefix:{type:String,required:!0},value:{type:String,default:``},disabled:Boolean,parentPath:String,path:String,onUpdateValue:{type:Function,required:!0}},setup(){let{mergedThemeRef:e,placeholderRef:t}=d(Re);return{mergedTheme:e,placeholder:t}},render(){let{mergedTheme:e,placeholder:t,value:n,clsPrefix:r,onUpdateValue:i,disabled:a}=this;return o(`div`,{class:`${r}-dynamic-input-preset-input`},o(G,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:n,placeholder:t,onUpdateValue:i,disabled:a}))}}),Be=c({name:`DynamicInputPairPreset`,props:{clsPrefix:{type:String,required:!0},value:{type:Object,default:()=>({key:``,value:``})},disabled:Boolean,parentPath:String,path:String,onUpdateValue:{type:Function,required:!0}},setup(e){let{mergedThemeRef:t,keyPlaceholderRef:n,valuePlaceholderRef:r}=d(Re);return{mergedTheme:t,keyPlaceholder:n,valuePlaceholder:r,handleKeyInput(t){e.onUpdateValue({key:t,value:e.value.value})},handleValueInput(t){e.onUpdateValue({key:e.value.key,value:t})}}},render(){let{mergedTheme:e,keyPlaceholder:t,valuePlaceholder:n,value:r,clsPrefix:i,disabled:a}=this;return o(`div`,{class:`${i}-dynamic-input-preset-pair`},o(G,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:r.key,class:`${i}-dynamic-input-pair-input`,placeholder:t,onUpdateValue:this.handleKeyInput,disabled:a}),o(G,{theme:e.peers.Input,"theme-overrides":e.peerOverrides.Input,value:r.value,class:`${i}-dynamic-input-pair-input`,placeholder:n,onUpdateValue:this.handleValueInput,disabled:a}))}}),Ve=O(`dynamic-input`,{width:`100%`},[O(`dynamic-input-item`,` - margin-bottom: 10px; - display: flex; - flex-wrap: nowrap; - `,[O(`dynamic-input-preset-input`,{flex:1,alignItems:`center`}),O(`dynamic-input-preset-pair`,` - flex: 1; - display: flex; - align-items: center; - `,[O(`dynamic-input-pair-input`,[N(`&:first-child`,{"margin-right":`12px`})])]),P(`action`,` - align-self: flex-start; - display: flex; - justify-content: flex-end; - flex-shrink: 0; - flex-grow: 0; - margin: var(--action-margin); - `,[D(`icon`,{cursor:`pointer`})]),N(`&:last-child`,{marginBottom:0})]),O(`form-item`,` - padding-top: 0 !important; - margin-right: 0 !important; - `,[O(`form-item-blank`,{paddingTop:`0 !important`})])]),He=new WeakMap,Ue=c({name:`DynamicInput`,props:Object.assign(Object.assign({},R.props),{max:Number,min:{type:Number,default:0},value:Array,defaultValue:{type:Array,default:()=>[]},preset:{type:String,default:`input`},keyField:String,itemClass:String,itemStyle:[String,Object],keyPlaceholder:{type:String,default:``},valuePlaceholder:{type:String,default:``},placeholder:{type:String,default:``},disabled:Boolean,showSortButton:Boolean,createButtonProps:Object,onCreate:Function,onRemove:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClear:Function,onInput:[Function,Array]}),setup(e,{slots:t}){let{mergedComponentPropsRef:n,mergedClsPrefixRef:r,mergedRtlRef:i,inlineThemeDisabled:a}=M(),o=d(oe,null),s=E(e.defaultValue),c=re(f(e,`value`),s),l=R(`DynamicInput`,`-dynamic-input`,Ve,Le,e,r),u=S(()=>{let{value:t}=c;if(Array.isArray(t)){let{max:n}=e;return n!==void 0&&t.length>=n}return!1}),p=S(()=>{let{value:t}=c;return Array.isArray(t)?t.length<=e.min:!0}),m=S(()=>n?.value?.DynamicInput?.buttonSize);function h(t){let{onInput:n,"onUpdate:value":r,onUpdateValue:i}=e;n&&U(n,t),r&&U(r,t),i&&U(i,t),s.value=t}function _(e,t){if(typeof e!=`object`||!e)return t;let n=v(e)?w(e):e,r=He.get(n);return r===void 0&&He.set(n,r=Se()),r}function y(e,t){let{value:n}=c,r=Array.from(n??[]),i=r[e];if(r[e]=t,i&&t&&typeof i==`object`&&typeof t==`object`){let e=v(i)?w(i):i,n=v(t)?w(t):t,r=He.get(e);r!==void 0&&He.set(n,r)}h(r)}function b(){x(-1)}function x(n){let{value:r}=c,{onCreate:i}=e,a=Array.from(r??[]);if(i)a.splice(n+1,0,i(n+1)),h(a);else if(t.default)a.splice(n+1,0,null),h(a);else switch(e.preset){case`input`:a.splice(n+1,0,``),h(a);break;case`pair`:a.splice(n+1,0,{key:``,value:``}),h(a);break}}function C(t){let{value:n}=c;if(!Array.isArray(n))return;let{min:r}=e;if(n.length<=r)return;let{onRemove:i}=e;i&&i(t);let a=Array.from(n);a.splice(t,1),h(a)}function T(e,t,n){if(t<0||n<0||t>=e.length||n>=e.length||t===n)return;let r=e[t];e[t]=e[n],e[n]=r}function D(e,t){let{value:n}=c;if(!Array.isArray(n))return;let r=Array.from(n);e===`up`&&T(r,t,t-1),e===`down`&&T(r,t,t+1),h(r)}g(Re,{mergedThemeRef:l,keyPlaceholderRef:f(e,`keyPlaceholder`),valuePlaceholderRef:f(e,`valuePlaceholder`),placeholderRef:f(e,`placeholder`)});let O=I(`DynamicInput`,i,r),k=S(()=>{let{self:{actionMargin:e,actionMarginRtl:t}}=l.value;return{"--action-margin":e,"--action-margin-rtl":t}}),A=a?j(`dynamic-input`,void 0,k,e):void 0;return{locale:fe(`DynamicInput`).localeRef,rtlEnabled:O,buttonSize:m,mergedClsPrefix:r,NFormItem:o,uncontrolledValue:s,mergedValue:c,insertionDisabled:u,removeDisabled:p,handleCreateClick:b,ensureKey:_,handleValueChange:y,remove:C,move:D,createItem:x,mergedTheme:l,cssVars:a?void 0:k,themeClass:A?.themeClass,onRender:A?.onRender}},render(){let{$slots:e,itemClass:t,buttonSize:n,mergedClsPrefix:r,mergedValue:i,locale:a,mergedTheme:s,keyField:c,itemStyle:l,preset:u,showSortButton:d,NFormItem:f,ensureKey:p,handleValueChange:m,remove:h,createItem:g,move:_,onRender:v,disabled:y}=this;return v?.(),o(`div`,{class:[`${r}-dynamic-input`,this.rtlEnabled&&`${r}-dynamic-input--rtl`,this.themeClass],style:this.cssVars},!Array.isArray(i)||i.length===0?o(H,Object.assign({block:!0,ghost:!0,dashed:!0,size:n},this.createButtonProps,{disabled:this.insertionDisabled||y,theme:s.peers.Button,themeOverrides:s.peerOverrides.Button,onClick:this.handleCreateClick}),{default:()=>de(e[`create-button-default`],()=>[a.create]),icon:()=>de(e[`create-button-icon`],()=>[o(q,{clsPrefix:r},{default:()=>o(pe,null)})])}):i.map((a,v)=>o(`div`,{key:c?a[c]:p(a,v),"data-key":c?a[c]:p(a,v),class:[`${r}-dynamic-input-item`,t],style:l},le(e.default,{value:i[v],index:v},()=>[u===`input`?o(ze,{disabled:y,clsPrefix:r,value:i[v],parentPath:f?f.path.value:void 0,path:f?.path.value?`${f.path.value}[${v}]`:void 0,onUpdateValue:e=>{m(v,e)}}):u===`pair`?o(Be,{disabled:y,clsPrefix:r,value:i[v],parentPath:f?f.path.value:void 0,path:f?.path.value?`${f.path.value}[${v}]`:void 0,onUpdateValue:e=>{m(v,e)}}):null]),le(e.action,{value:i[v],index:v,create:g,remove:h,move:_},()=>[o(`div`,{class:`${r}-dynamic-input-item__action`},o(Fe,{size:n},{default:()=>[o(H,{disabled:this.removeDisabled||y,theme:s.peers.Button,themeOverrides:s.peerOverrides.Button,circle:!0,onClick:()=>{h(v)}},{icon:()=>o(q,{clsPrefix:r},{default:()=>o(me,null)})}),o(H,{disabled:this.insertionDisabled||y,circle:!0,theme:s.peers.Button,themeOverrides:s.peerOverrides.Button,onClick:()=>{g(v)}},{icon:()=>o(q,{clsPrefix:r},{default:()=>o(pe,null)})}),d?o(H,{disabled:v===0||y,circle:!0,theme:s.peers.Button,themeOverrides:s.peerOverrides.Button,onClick:()=>{_(`up`,v)}},{icon:()=>o(q,{clsPrefix:r},{default:()=>o(Ae,null)})}):null,d?o(H,{disabled:v===i.length-1||y,circle:!0,theme:s.peers.Button,themeOverrides:s.peerOverrides.Button,onClick:()=>{_(`down`,v)}},{icon:()=>o(q,{clsPrefix:r},{default:()=>o(ke,null)})}):null]}))]))))}});function We(e){let{primaryColor:t,opacityDisabled:n,borderRadius:r,textColor3:i}=e;return Object.assign(Object.assign({},we),{iconColor:i,textColor:`white`,loadingColor:t,opacityDisabled:n,railColor:`rgba(0, 0, 0, .14)`,railColorActive:t,buttonBoxShadow:`0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)`,buttonColor:`#FFF`,railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 0 2px ${k(t,{alpha:.2})}`})}var Ge={name:`Switch`,common:z,self:We},Ke=O(`switch`,` - height: var(--n-height); - min-width: var(--n-width); - vertical-align: middle; - user-select: none; - -webkit-user-select: none; - display: inline-flex; - outline: none; - justify-content: center; - align-items: center; -`,[P(`children-placeholder`,` - height: var(--n-rail-height); - display: flex; - flex-direction: column; - overflow: hidden; - pointer-events: none; - visibility: hidden; - `),P(`rail-placeholder`,` - display: flex; - flex-wrap: none; - `),P(`button-placeholder`,` - width: calc(1.75 * var(--n-rail-height)); - height: var(--n-rail-height); - `),O(`base-loading`,` - position: absolute; - top: 50%; - left: 50%; - transform: translateX(-50%) translateY(-50%); - font-size: calc(var(--n-button-width) - 4px); - color: var(--n-loading-color); - transition: color .3s var(--n-bezier); - `,[ye({left:`50%`,top:`50%`,originalTransform:`translateX(-50%) translateY(-50%)`})]),P(`checked, unchecked`,` - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - box-sizing: border-box; - position: absolute; - white-space: nowrap; - top: 0; - bottom: 0; - display: flex; - align-items: center; - line-height: 1; - `),P(`checked`,` - right: 0; - padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset)); - `),P(`unchecked`,` - left: 0; - justify-content: flex-end; - padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset)); - `),N(`&:focus`,[P(`rail`,` - box-shadow: var(--n-box-shadow-focus); - `)]),D(`round`,[P(`rail`,`border-radius: calc(var(--n-rail-height) / 2);`,[P(`button`,`border-radius: calc(var(--n-button-height) / 2);`)])]),A(`disabled`,[A(`icon`,[D(`rubber-band`,[D(`pressed`,[P(`rail`,[P(`button`,`max-width: var(--n-button-width-pressed);`)])]),P(`rail`,[N(`&:active`,[P(`button`,`max-width: var(--n-button-width-pressed);`)])]),D(`active`,[D(`pressed`,[P(`rail`,[P(`button`,`left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));`)])]),P(`rail`,[N(`&:active`,[P(`button`,`left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));`)])])])])])]),D(`active`,[P(`rail`,[P(`button`,`left: calc(100% - var(--n-button-width) - var(--n-offset))`)])]),P(`rail`,` - overflow: hidden; - height: var(--n-rail-height); - min-width: var(--n-rail-width); - border-radius: var(--n-rail-border-radius); - cursor: pointer; - position: relative; - transition: - opacity .3s var(--n-bezier), - background .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - background-color: var(--n-rail-color); - `,[P(`button-icon`,` - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - font-size: calc(var(--n-button-height) - 4px); - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - justify-content: center; - align-items: center; - line-height: 1; - `,[ye()]),P(`button`,` - align-items: center; - top: var(--n-offset); - left: var(--n-offset); - height: var(--n-button-height); - width: var(--n-button-width-pressed); - max-width: var(--n-button-width); - border-radius: var(--n-button-border-radius); - background-color: var(--n-button-color); - box-shadow: var(--n-button-box-shadow); - box-sizing: border-box; - cursor: inherit; - content: ""; - position: absolute; - transition: - background-color .3s var(--n-bezier), - left .3s var(--n-bezier), - opacity .3s var(--n-bezier), - max-width .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - `)]),D(`active`,[P(`rail`,`background-color: var(--n-rail-color-active);`)]),D(`loading`,[P(`rail`,` - cursor: wait; - `)]),D(`disabled`,[P(`rail`,` - cursor: not-allowed; - opacity: .5; - `)])]),qe=Object.assign(Object.assign({},R.props),{size:String,value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},spinProps:Object,onChange:[Function,Array]}),Je,Ye=c({name:`Switch`,props:qe,slots:Object,setup(e){Je===void 0&&(Je=typeof CSS<`u`?CSS.supports===void 0?!1:CSS.supports(`width`,`max(1px)`):!0);let{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedComponentPropsRef:r}=M(e),i=R(`Switch`,`-switch`,Ke,Ge,e,t),a=ae(e,{mergedSize(t){return e.size===void 0?t?t.mergedSize.value:r?.value?.Switch?.size||`medium`:e.size}}),{mergedSizeRef:o,mergedDisabledRef:s}=a,c=E(e.defaultValue),l=re(f(e,`value`),c),u=S(()=>l.value===e.checkedValue),d=E(!1),p=E(!1),m=S(()=>{let{railStyle:t}=e;if(t)return t({focused:p.value,checked:u.value})});function h(t){let{"onUpdate:value":n,onChange:r,onUpdateValue:i}=e,{nTriggerFormInput:o,nTriggerFormChange:s}=a;n&&U(n,t),i&&U(i,t),r&&U(r,t),c.value=t,o(),s()}function g(){let{nTriggerFormFocus:e}=a;e()}function _(){let{nTriggerFormBlur:e}=a;e()}function v(){e.loading||s.value||(l.value===e.checkedValue?h(e.uncheckedValue):h(e.checkedValue))}function y(){p.value=!0,g()}function b(){p.value=!1,_(),d.value=!1}function x(t){e.loading||s.value||t.key===` `&&(l.value===e.checkedValue?h(e.uncheckedValue):h(e.checkedValue),d.value=!1)}function C(t){e.loading||s.value||t.key===` `&&(t.preventDefault(),d.value=!0)}let w=S(()=>{let{value:e}=o,{self:{opacityDisabled:t,railColor:n,railColorActive:r,buttonBoxShadow:a,buttonColor:s,boxShadowFocus:c,loadingColor:l,textColor:u,iconColor:d,[L(`buttonHeight`,e)]:f,[L(`buttonWidth`,e)]:p,[L(`buttonWidthPressed`,e)]:m,[L(`railHeight`,e)]:h,[L(`railWidth`,e)]:g,[L(`railBorderRadius`,e)]:_,[L(`buttonBorderRadius`,e)]:v},common:{cubicBezierEaseInOut:y}}=i.value,b,x,S;return Je?(b=`calc((${h} - ${f}) / 2)`,x=`max(${h}, ${f})`,S=`max(${g}, calc(${g} + ${f} - ${h}))`):(b=B((V(h)-V(f))/2),x=B(Math.max(V(h),V(f))),S=V(h)>V(f)?g:B(V(g)+V(f)-V(h))),{"--n-bezier":y,"--n-button-border-radius":v,"--n-button-box-shadow":a,"--n-button-color":s,"--n-button-width":p,"--n-button-width-pressed":m,"--n-button-height":f,"--n-height":x,"--n-offset":b,"--n-opacity-disabled":t,"--n-rail-border-radius":_,"--n-rail-color":n,"--n-rail-color-active":r,"--n-rail-height":h,"--n-rail-width":g,"--n-width":S,"--n-box-shadow-focus":c,"--n-loading-color":l,"--n-text-color":u,"--n-icon-color":d}}),T=n?j(`switch`,S(()=>o.value[0]),w,e):void 0;return{handleClick:v,handleBlur:b,handleFocus:y,handleKeyup:x,handleKeydown:C,mergedRailStyle:m,pressed:d,mergedClsPrefix:t,mergedValue:l,checked:u,mergedDisabled:s,cssVars:n?void 0:w,themeClass:T?.themeClass,onRender:T?.onRender}},render(){let{mergedClsPrefix:e,mergedDisabled:t,checked:n,mergedRailStyle:r,onRender:i,$slots:a}=this;i?.();let{checked:s,unchecked:c,icon:l,"checked-icon":u,"unchecked-icon":d}=a,f=!(ue(l)&&ue(u)&&ue(d));return o(`div`,{role:`switch`,"aria-checked":n,class:[`${e}-switch`,this.themeClass,f&&`${e}-switch--icon`,n&&`${e}-switch--active`,t&&`${e}-switch--disabled`,this.round&&`${e}-switch--round`,this.loading&&`${e}-switch--loading`,this.pressed&&`${e}-switch--pressed`,this.rubberBand&&`${e}-switch--rubber-band`],tabindex:this.mergedDisabled?void 0:0,style:this.cssVars,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},o(`div`,{class:`${e}-switch__rail`,"aria-hidden":`true`,style:r},W(s,t=>W(c,n=>t||n?o(`div`,{"aria-hidden":!0,class:`${e}-switch__children-placeholder`},o(`div`,{class:`${e}-switch__rail-placeholder`},o(`div`,{class:`${e}-switch__button-placeholder`}),t),o(`div`,{class:`${e}-switch__rail-placeholder`},o(`div`,{class:`${e}-switch__button-placeholder`}),n)):null)),o(`div`,{class:`${e}-switch__button`},W(l,t=>W(u,n=>W(d,r=>o(ve,null,{default:()=>this.loading?o(be,Object.assign({key:`loading`,clsPrefix:e,strokeWidth:20},this.spinProps)):this.checked&&(n||t)?o(`div`,{class:`${e}-switch__button-icon`,key:n?`checked-icon`:`icon`},n||t):!this.checked&&(r||t)?o(`div`,{class:`${e}-switch__button-icon`,key:r?`unchecked-icon`:`icon`},r||t):null})))),W(s,t=>t&&o(`div`,{key:`checked`,class:`${e}-switch__checked`},t)),W(c,t=>t&&o(`div`,{key:`unchecked`,class:`${e}-switch__unchecked`},t)))))}}),Xe={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},Ze=c({name:`CloseOutlined`,render:function(e,t){return h(),l(`svg`,Xe,t[0]||=[p(`path`,{d:`M19 6.41L17.59 5L12 10.59L6.41 5L5 6.41L10.59 12L5 17.59L6.41 19L12 13.41L17.59 19L19 17.59L13.41 12L19 6.41z`,fill:`currentColor`},null,-1)])}}),Qe={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},$e=c({name:`LockOutlined`,render:function(e,t){return h(),l(`svg`,Qe,t[0]||=[p(`path`,{d:`M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zM9 6c0-1.66 1.34-3 3-3s3 1.34 3 3v2H9V6zm9 14H6V10h12v10zm-6-3c1.1 0 2-.9 2-2s-.9-2-2-2s-2 .9-2 2s.9 2 2 2z`,fill:`currentColor`},null,-1)])}}),et={key:0},tt={class:`intro-text font`},nt={key:0,class:`intro-audio-block`},rt=[`src`],it={class:`message-content`},at={key:0},ot={key:1,class:`intro-empty`},st={key:2,class:`intro-audio-block`},ct=[`src`],lt={key:2,class:`place-block`},ut={class:`intro-edit-audio`},dt=[`src`],ft={class:`slot-block`},pt=Ee(c({__name:`IntroBlock`,props:{introduction:{},mode:{}},emits:[`update:mode`],setup(t,{emit:n}){let o=t,c=n,u=e=>{c(`update:mode`,e)},d=S(()=>!!o.introduction?.text),f=S(()=>!!o.introduction?.audio),m=S(()=>{let e=o.introduction?.audio;if(e)return/^https?:\/\//i.test(e)?e:`${x()}/api/files/${encodeURIComponent(e)}`}),g=()=>{o.introduction&&(o.introduction.audio=``,o.introduction.fileList=void 0)};return(n,c)=>(h(),l(T,null,[t.mode==`show`?(h(),l(`div`,et,[s(Oe,null,{default:_(()=>[c[4]||=p(`div`,{class:`font`},`Вступление`,-1),c[5]||=p(`hr`,{class:`intro-hr`},null,-1),p(`div`,tt,a(t.introduction.text),1),f.value?(h(),l(`div`,nt,[p(`audio`,{src:m.value,controls:``,preload:`none`,class:`intro-audio`},null,8,rt)])):r(``,!0)]),_:1})])):r(``,!0),t.mode==`show-editor`?(h(),l(`div`,{key:1,class:`place-block-hover show-editor-block`,onClick:c[0]||=e=>u(`edit`)},[c[6]||=p(`div`,{class:`message-header`},`Вступление`,-1),c[7]||=p(`hr`,{class:`hr`},null,-1),p(`div`,it,[d.value?(h(),l(`span`,at,a(t.introduction.text),1)):(h(),l(`span`,ot,`Введение не задано — нажмите, чтобы добавить`)),f.value?(h(),l(`div`,st,[p(`audio`,{src:m.value,controls:``,preload:`none`,class:`intro-audio`},null,8,ct)])):r(``,!0)])])):r(``,!0),t.mode==`edit`?(h(),l(`div`,lt,[s(C(K),{vertical:``},{default:_(()=>[c[11]||=p(`p`,{class:`settings-header`},`Текст вступления`,-1),s(C(G),{value:o.introduction.text,"onUpdate:value":c[1]||=e=>o.introduction.text=e,type:`textarea`,autosize:{minRows:4,maxRows:12},placeholder:`Дорогие сыщики! В этом деле вам предстоит...`},null,8,[`value`]),c[12]||=p(`p`,{class:`settings-header`},`Аудио вступления`,-1),p(`div`,ut,[s(C(K),{vertical:``},{default:_(()=>[f.value?(h(),l(`audio`,{key:0,src:m.value,controls:``,preload:`none`,class:`intro-audio`},null,8,dt)):(h(),i(C(_e),{key:1,depth:`3`},{default:_(()=>[...c[8]||=[y(`Аудио не задано`,-1)]]),_:1})),s(C(H),{onClick:c[2]||=e=>g(),disabled:!f.value},{default:_(()=>[...c[9]||=[y(`Убрать аудио`,-1)]]),_:1},8,[`disabled`])]),_:1}),s(C(ce),{"directory-dnd":``,max:1,"file-list":o.introduction.fileList,"onUpdate:fileList":c[3]||=e=>o.introduction.fileList=e},{default:_(()=>[s(C(se),null,{default:_(()=>[s(C(_e),{style:{"font-size":`16px`}},{default:_(()=>[...c[10]||=[y(` Щелкните или перетащите аудиофайл в эту область для загрузки `,-1)]]),_:1})]),_:1})]),_:1},8,[`file-list`])]),p(`div`,ft,[e(n.$slots,`default`,{},void 0,!0)])]),_:3})])):r(``,!0)],64))}}),[[`__scopeId`,`data-v-11f63e45`]]),mt={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},ht=c({name:`Key24Regular`,render:function(e,t){return h(),l(`svg`,mt,t[0]||=[p(`g`,{fill:`none`},[p(`path`,{d:`M18.25 7a1.25 1.25 0 1 1-2.5 0a1.25 1.25 0 0 1 2.5 0zM15.5 2.05A6.554 6.554 0 0 0 8.95 8.6c0 .387.05.76.11 1.104a.275.275 0 0 1-.07.244l-6.235 6.236a2.75 2.75 0 0 0-.806 1.944V20.3c0 .966.784 1.75 1.75 1.75h2.5a1.75 1.75 0 0 0 1.75-1.75v-1.25H9.7c.69 0 1.25-.56 1.25-1.25v-1.75h1.75a1.25 1.25 0 0 0 1.25-1.204c.496.128 1.02.204 1.55.204a6.554 6.554 0 0 0 6.55-6.55c0-3.631-2.953-6.45-6.55-6.45zM10.45 8.6a5.054 5.054 0 0 1 5.05-5.05c2.802 0 5.05 2.181 5.05 4.95a5.054 5.054 0 0 1-5.05 5.05c-.68 0-1.38-.171-2.005-.44a.75.75 0 0 0-1.046.69v.75H10.7c-.69 0-1.25.56-1.25 1.25v1.75H7.7c-.69 0-1.25.56-1.25 1.25v1.5a.25.25 0 0 1-.25.25H3.7a.25.25 0 0 1-.25-.25v-2.172c0-.331.132-.65.366-.884l6.236-6.235a1.774 1.774 0 0 0 .486-1.564a4.917 4.917 0 0 1-.088-.845z`,fill:`currentColor`})],-1)])}}),gt={key:1,class:`place-block`},_t={class:`message-header`},vt={class:`message-content`},yt={key:0},bt=[`src`,`alt`],xt={class:`door-button-label`},St={key:0,class:`hr`},Ct={class:`application-name`},wt=[`onClick`],Tt=[`src`,`alt`],Et=[`src`],Dt=[`href`],Ot={class:`gray-block`},kt={key:0},At={key:3},jt={class:`message-show-header font`},Mt={key:0,class:`mcp-label`,title:`Ход сделан через MCP`},Nt={class:`message-show-content font`},Pt={key:0},Ft=[`src`,`alt`],It=[`src`,`alt`],Lt={key:2,class:`show-applications-block`},Rt=[`onClick`],zt=[`src`,`alt`],Bt={key:0,class:`show-hr`},Vt=[`onClick`],Ht={class:`button-dialog-text`},Ut={key:1,class:`show-hr`},Wt=[`href`],Gt={class:`application-label`},Kt=[`src`],qt={key:4},Jt={class:`message-header font`},Yt={key:0,class:`mcp-label`,title:`Ход сделан через MCP`},Xt={key:5,class:`place-block`},Zt=[`src`,`alt`],Qt={style:{display:`flex`,"flex-direction":`column`,width:`100%`}},$t={key:0,class:`application-edit-file`},en=[`src`,`alt`],tn=[`src`],nn=[`href`],rn={style:{display:`flex`,"flex-direction":`column`}},an={style:{display:`flex`,"flex-direction":`column`,width:`100%`}},on={class:`door-add-block`},sn={class:`door-field`},cn={style:{"align-items":`center`,display:`flex`,width:`100%`}},ln={style:{"align-items":`center`,display:`flex`,width:`100%`}},un={class:`slot-block`},dn={key:0,class:`view-application-image-block`},fn=[`src`,`alt`],pn=[`src`],mn=[`src`],hn={key:3,class:`view-application-image-block`},gn=[`src`,`alt`],_n=Ee(c({__name:`PlaceBlock`,props:{newPlaceCode:{},newPlaceName:{},newPlaceText:{},place:{},mode:{},mcp:{type:Boolean,default:!1},addAction:{}},emits:[`update:newPlaceCode`,`update:newPlaceName`,`update:newPlaceText`,`update:mode`,`navigate`],setup(i,{emit:o}){let c=i,d=o,f=e=>{d(`update:newPlaceCode`,e)},g=e=>{d(`update:newPlaceName`,e)},v=e=>{d(`update:newPlaceText`,e)},b=e=>{d(`update:mode`,e)};function x(){return{name:void 0,image:void 0,file_type:void 0}}function w(){return{code:void 0,name:void 0,keys:void 0}}function D(){return{name:void 0}}function O(e){return e}function k(e){e.image=void 0,e.file_type=void 0,e.fileList=void 0}let A=E(null),j=E(null),M=E(!1),N=S(()=>j.value?j.value.url:Y(A.value||void 0)==`image`?X(A.value?.image):``);function P(e){A.value=e,j.value=null,M.value=!0}function F(e,t){j.value={title:e,url:t},A.value=null,M.value=!0}function ee(){M.value=!1,A.value=null,j.value=null}function I(e){let t=e||``;if(t.length==0)return{before:``,after:``};let n=Math.min(t.length,Math.max(120,Math.floor(t.length*.45))),r=-1,i=1/0;for(let e=0;eI(c.place?.text).before),R=S(()=>I(c.place?.text).after),z=S(()=>c.place?.image?null:(c.place?.applications||[]).find(e=>Y(e)==`image`&&e.image)||null),B=S(()=>(c.place?.applications||[]).filter(e=>e===z.value?!1:Y(e)==`image`&&e.image)),V=S(()=>(c.place?.applications||[]).filter(e=>e===z.value?!1:!(Y(e)==`image`&&e.image)));return(o,S)=>(h(),l(T,null,[i.mode==`mini-add`?(h(),l(`div`,{key:0,class:`place-block-hover show-editor-block`,onClick:S[0]||=e=>b(`add`)},[...S[21]||=[p(`p`,{class:`place-image-plus`},`+`,-1)]])):r(``,!0),i.mode==`add`?(h(),l(`div`,gt,[s(C(K),{vertical:``},{default:_(()=>[s(C(Me),null,{default:_(()=>[s(C(G),{style:{width:`20%`},value:i.newPlaceCode,"onUpdate:value":f,type:`text`,placeholder:`Ы-1`},null,8,[`value`]),s(C(G),{style:{width:`80%`},value:i.newPlaceName,"onUpdate:value":g,type:`text`,placeholder:`Дом №Ы`},null,8,[`value`])]),_:1}),s(C(G),{value:i.newPlaceText,"onUpdate:value":v,type:`textarea`,autosize:{minRows:3},placeholder:`В начале было слово...`},null,8,[`value`]),e(o.$slots,`default`,{},void 0,!0)]),_:3})])):r(``,!0),i.mode==`show-editor`?(h(),l(`div`,{key:2,class:`place-block-hover show-editor-block`,onClick:S[4]||=e=>b(`edit`)},[p(`div`,_t,a(c.place?.code)+`: `+a(c.place?.name),1),S[22]||=p(`hr`,{class:`hr`},null,-1),p(`div`,vt,[c.place?.image?(h(),l(`div`,yt,[p(`div`,{class:`message-image-border`,onClick:S[1]||=J(e=>F(c.place?.name||``,c.place?.image||``),[`stop`])},[p(`img`,{src:c.place?.image,alt:c.place?.name||`Изображение точки`,class:`message-image`},null,8,bt)])])):r(``,!0),p(`span`,null,a(c.place?.text),1)]),(h(!0),l(T,null,u(c.place?.doors,e=>(h(),l(`div`,{key:e.code,class:`door-block`},[s(C(H),{class:`door-button`,onClick:J(t=>d(`navigate`,e.code),[`stop`])},{default:_(()=>[p(`span`,xt,a(e.name||e.code||`Перейти к точке`),1)]),_:2},1032,[`onClick`]),(h(!0),l(T,null,u(e.keys,e=>(h(),l(`span`,{key:e.name,class:`key-block`},[s(C(ge),{class:`lock-icon`},{default:_(()=>[s(C($e))]),_:1}),y(` `+a(e.name),1)]))),128))]))),128)),c.place?.applications?.length?(h(),l(`hr`,St)):r(``,!0),(h(!0),l(T,null,u(c.place?.applications,e=>(h(),l(`div`,{class:`message-footer application-block`,key:e.name},[p(`div`,Ct,`Приложение: `+a(e.name),1),C(Y)(e)==`image`&&e.image?(h(),l(`div`,{key:0,class:`application-image-border`,onClick:J(t=>P(e),[`stop`])},[p(`img`,{src:C(X)(e.image),alt:e.name||`Изображение улики`,class:`application-image`},null,8,Tt)],8,wt)):C(Y)(e)==`audio`&&e.image?(h(),l(`audio`,{key:1,src:C(X)(e.image),controls:``,preload:`none`,class:`application-audio`,onClick:S[2]||=J(()=>{},[`stop`])},null,8,Et)):C(Y)(e)==`pdf`&&e.image?(h(),l(`a`,{key:2,href:C(X)(e.image),target:`_blank`,rel:`noopener`,class:`application-pdf-link`,onClick:S[3]||=J(()=>{},[`stop`])},` PDF `,8,Dt)):r(``,!0)]))),128)),p(`p`,Ot,[c.place?.hidden?(h(),l(`span`,kt,` Скрытая точка `)):r(``,!0),(h(!0),l(T,null,u(c.place?.keys,e=>(h(),l(`span`,{key:e.name,class:`key-block`},[s(C(ge),{class:`lock-icon`},{default:_(()=>[s(C(ht))]),_:1}),y(` `+a(e.name),1)]))),128))])])):r(``,!0),i.mode==`show`?(h(),l(`div`,At,[s(Oe,null,{default:_(()=>[p(`div`,jt,[i.mcp?(h(),l(`span`,Mt,`MCP`)):r(``,!0),y(` `+a(i.place?.code)+`: `+a(i.place?.name)+` `,1),p(`span`,{class:`collapse-icon collapse-icon-up`,onClick:S[5]||=e=>b(`show-collapse`)})]),S[23]||=p(`hr`,{class:`show-hr`},null,-1),p(`div`,Nt,[i.place?.image?.length?(h(),l(`div`,Pt,[p(`div`,{class:`message-image-border`,onClick:S[6]||=e=>F(i.place?.name||``,i.place?.image||``)},[p(`img`,{src:i.place?.image,alt:i.place?.name||`Изображение точки`,class:`message-image`},null,8,Ft)])])):z.value?(h(),l(`div`,{key:1,class:`message-image-border`,onClick:S[7]||=e=>P(z.value)},[p(`img`,{src:C(X)(z.value.image),alt:z.value.name||`Изображение улики`,class:`message-image`},null,8,It)])):r(``,!0),p(`span`,null,a(L.value),1),B.value.length?(h(),l(`div`,Lt,[(h(!0),l(T,null,u(B.value,e=>(h(),l(`div`,{class:`show-application`,key:e.name},[p(`div`,{class:`application-image-block`,onClick:t=>P(e)},[p(`img`,{src:C(X)(e.image),alt:e.name||`Изображение улики`,class:`application-image`},null,8,zt)],8,Rt)]))),128))])):r(``,!0),p(`span`,null,a(R.value),1)]),c.place?.doors?.length?(h(),l(`hr`,Bt)):r(``,!0),(h(!0),l(T,null,u(c.place?.doors,e=>(h(),l(`div`,{key:e.code,class:`button-dialog font`,onClick:t=>i.addAction(e.code)},[p(`div`,Ht,a(e.code)+` `+a(e.name),1)],8,Vt))),128)),V.value.length?(h(),l(`hr`,Ut)):r(``,!0),(h(!0),l(T,null,u(V.value,e=>(h(),l(`div`,{class:`message-show-footer font`,key:e.name},[C(Y)(e)==`pdf`&&e.image?(h(),l(`a`,{key:0,href:C(X)(e.image),target:`_blank`,rel:`noopener`,class:`pdf-application-name`},` Приложение: `+a(e.name),9,Wt)):(h(),l(T,{key:1},[p(`div`,Gt,`Приложение: `+a(e.name),1),C(Y)(e)==`audio`&&e.image?(h(),l(`audio`,{key:0,src:C(X)(e.image),controls:``,preload:`none`,class:`application-audio`},null,8,Kt)):r(``,!0)],64))]))),128))]),_:1})])):r(``,!0),i.mode==`show-collapse`?(h(),l(`div`,qt,[s(Oe,null,{default:_(()=>[p(`div`,Jt,[i.mcp?(h(),l(`span`,Yt,`MCP`)):r(``,!0),y(` `+a(i.place?.code)+`: `+a(i.place?.name)+` `,1),p(`span`,{class:`collapse-icon`,onClick:S[8]||=e=>b(`show`)})])]),_:1})])):r(``,!0),i.mode==`edit`?(h(),l(`div`,Xt,[s(C(K),{vertical:``},{default:_(()=>[s(C(Me),null,{default:_(()=>[s(C(G),{style:{width:`20%`},value:c.place.code,"onUpdate:value":S[9]||=e=>c.place.code=e,type:`text`,placeholder:`Ы-1`},null,8,[`value`]),s(C(G),{style:{width:`80%`},value:c.place.name,"onUpdate:value":S[10]||=e=>c.place.name=e,type:`text`,placeholder:`Дом №Ы`},null,8,[`value`])]),_:1}),s(C(G),{value:c.place.text,"onUpdate:value":S[11]||=e=>c.place.text=e,type:`textarea`,autosize:{minRows:3},placeholder:`В начале было слово...`},null,8,[`value`]),S[37]||=p(`p`,{class:`settings-header`},`Картинка`,-1),p(`div`,null,[s(C(K),null,{default:_(()=>[s(C(K),{vertical:``},{default:_(()=>[p(`img`,{src:c.place.image,alt:c.place?.name||`Изображение точки`,class:`message-edit-image`},null,8,Zt),s(C(H),{onClick:S[12]||=e=>(c.place.image=``,c.place.fileList=void 0)},{default:_(()=>[...S[24]||=[y(`Убрать картинку`,-1)]]),_:1})]),_:1}),s(C(K),{vertical:``},{default:_(()=>[s(C(G),{value:c.place.image,"onUpdate:value":S[13]||=e=>c.place.image=e,type:`text`,placeholder:`Не задано`,disabled:``},null,8,[`value`]),s(C(ce),{"directory-dnd":``,max:1,"file-list":c.place.fileList,"onUpdate:fileList":S[14]||=e=>c.place.fileList=e},{default:_(()=>[s(C(se),null,{default:_(()=>[s(C(_e),{style:{"font-size":`16px`}},{default:_(()=>[...S[25]||=[y(` Щелкните или перетащите файл в эту область для загрузки `,-1)]]),_:1})]),_:1})]),_:1},8,[`file-list`])]),_:1})]),_:1})]),S[38]||=p(`p`,{class:`settings-header`},`Видимость точки`,-1),s(C(Ye),{value:c.place.hidden,"onUpdate:value":S[15]||=e=>c.place.hidden=e},{checked:_(()=>[...S[26]||=[y(` Скрытая точка `,-1)]]),unchecked:_(()=>[...S[27]||=[y(` Обычная точка `,-1)]]),_:1},8,[`value`]),S[39]||=y(` Улики `,-1),s(C(Ue),{value:c.place.applications,"onUpdate:value":S[16]||=e=>c.place.applications=e,"on-create":x},{"create-button-default":_(()=>[...S[28]||=[y(` Добавить улику `,-1)]]),default:_(({value:e})=>[p(`div`,Qt,[s(C(G),{value:e.name,"onUpdate:value":t=>e.name=t,type:`text`,placeholder:`Название`},null,8,[`value`,`onUpdate:value`]),e.image?(h(),l(`div`,$t,[s(C(K),{align:`center`,justify:`space-between`},{default:_(()=>[s(C(_e),{depth:`3`},{default:_(()=>[y(a(C(De)(e.image))+` `,1),s(C(he),{size:`small`,bordered:!1},{default:_(()=>[y(a(C(Y)(e)||`файл`),1)]),_:2},1024)]),_:2},1024),s(C(H),{size:`small`,quaternary:``,onClick:t=>k(O(e))},{default:_(()=>[...S[29]||=[y(` Убрать файл `,-1)]]),_:1},8,[`onClick`])]),_:2},1024),C(Y)(e)==`image`?(h(),l(`img`,{key:0,src:C(X)(e.image),alt:e.name||`Изображение улики`,class:`application-edit-image`},null,8,en)):C(Y)(e)==`audio`?(h(),l(`audio`,{key:1,src:C(X)(e.image),controls:``,preload:`none`,class:`application-edit-audio`},null,8,tn)):C(Y)(e)==`pdf`?(h(),l(`a`,{key:2,href:C(X)(e.image),target:`_blank`,rel:`noopener`,class:`application-pdf-link`},` PDF `,8,nn)):r(``,!0)])):r(``,!0),s(C(ce),{max:1,"file-list":O(e).fileList,"onUpdate:fileList":t=>O(e).fileList=t,accept:`image/*,application/pdf,audio/*`},{default:_(()=>[s(C(H),{size:`small`},{default:_(()=>[...S[30]||=[y(`Загрузить файл улики`,-1)]]),_:1})]),_:1},8,[`file-list`,`onUpdate:fileList`])])]),_:1},8,[`value`]),S[40]||=y(` Действия `,-1),s(C(Ue),{value:c.place.doors,"onUpdate:value":S[17]||=e=>c.place.doors=e,"on-create":w},{"create-button-default":_(()=>[...S[31]||=[y(` Добавить действие `,-1)]]),action:_(({index:e,create:t,remove:n})=>[p(`div`,rn,[s(C(H),{onClick:()=>t(e),class:`plus-minus-buttons`},{default:_(()=>[...S[32]||=[y(`+`,-1)]]),_:1},8,[`onClick`]),s(C(H),{onClick:()=>n(e),class:`plus-minus-buttons`},{default:_(()=>[...S[33]||=[y(`-`,-1)]]),_:1},8,[`onClick`])])]),default:_(({value:e})=>[p(`div`,an,[p(`div`,on,[s(C(Me),null,{default:_(()=>[s(C(G),{style:{width:`30%`},value:e.code,"onUpdate:value":t=>e.code=t,type:`text`,placeholder:`Код`},null,8,[`value`,`onUpdate:value`]),s(C(G),{style:{width:`70%`},value:e.name,"onUpdate:value":t=>e.name=t,type:`text`,placeholder:`Название`},null,8,[`value`,`onUpdate:value`])]),_:2},1024),S[35]||=p(`p`,{class:`need-keys-text`},`Требуемые ключи`,-1),p(`div`,sn,[s(C(Ue),{value:e.keys,"onUpdate:value":t=>e.keys=t,"on-create":D},{"create-button-default":_(()=>[...S[34]||=[y(` Добавить ключ `,-1)]]),default:_(({value:e})=>[p(`div`,cn,[s(C(G),{value:e.name,"onUpdate:value":t=>e.name=t,type:`text`,placeholder:`Название`},null,8,[`value`,`onUpdate:value`])])]),_:1},8,[`value`,`onUpdate:value`])])])])]),_:1},8,[`value`]),S[41]||=y(` Получаемые ключи `,-1),s(C(Ue),{value:c.place.keys,"onUpdate:value":S[18]||=e=>c.place.keys=e,"on-create":D},{"create-button-default":_(()=>[...S[36]||=[y(` Добавить ключ `,-1)]]),default:_(({value:e})=>[p(`div`,ln,[s(C(G),{value:e.name,"onUpdate:value":t=>e.name=t,type:`text`,placeholder:`Название`},null,8,[`value`,`onUpdate:value`])])]),_:1},8,[`value`]),p(`div`,un,[e(o.$slots,`default`,{},void 0,!0)])]),_:3})])):r(``,!0),s(C(ne),{show:M.value,"onUpdate:show":S[20]||=e=>M.value=e,"mask-closable":!0},{default:_(()=>[s(C(te),{class:n({"photo-paper":N.value}),"theme-overrides":N.value?{titleTextColor:`black`,actionColor:`transparent`,paddingMedium:`14px`,borderRadius:`10px`}:void 0,style:m({maxWidth:`min(94vw, 1200px)`,width:N.value?`max-content`:`min(94vw, 1200px)`}),bordered:!1,role:`dialog`,"aria-modal":`true`,"header-style":N.value?{paddingBottom:`10px`}:void 0,"content-style":{padding:N.value?`0 14px`:`14px`}},t({header:_(()=>[p(`span`,{class:n({"photo-paper-title":N.value})},a(A.value?.name||j.value?.title),3)]),"header-extra":_(()=>[s(C(H),{quaternary:``,circle:``,"theme-overrides":N.value?{textColor:`black`,textColorHover:`#63e2b7`}:void 0,"aria-label":`Закрыть`,onClick:S[19]||=e=>ee()},{default:_(()=>[s(C(ge),{size:`20`},{default:_(()=>[s(C(Ze))]),_:1})]),_:1},8,[`theme-overrides`])]),default:_(()=>[A.value&&C(Y)(A.value)==`image`?(h(),l(`div`,dn,[p(`img`,{src:C(X)(A.value.image),alt:A.value.name||`Фото улики`,class:`view-application-image`},null,8,fn)])):A.value&&C(Y)(A.value)==`pdf`?(h(),l(`iframe`,{key:1,src:C(X)(A.value.image),class:`view-application-pdf`},null,8,pn)):A.value&&C(Y)(A.value)==`audio`?(h(),l(`audio`,{key:2,src:C(X)(A.value.image),controls:``,autoplay:``,class:`view-application-audio`},null,8,mn)):j.value?(h(),l(`div`,hn,[p(`img`,{src:j.value.url,alt:j.value.title||`Фото точки`,class:`view-application-image`},null,8,gn)])):r(``,!0)]),_:2},[N.value?{name:`action`,fn:_(()=>[s(C(H),{class:`photo-paper-action`,tag:`a`,href:N.value,target:`_blank`,rel:`noopener noreferrer`,bordered:!1,"theme-overrides":{textColor:`#bfa07d`,textColorHover:`#63e2b7`}},{default:_(()=>[...S[42]||=[y(` Открыть в новой вкладке `,-1)]]),_:1},8,[`href`])]),key:`0`}:void 0]),1032,[`class`,`theme-overrides`,`style`,`header-style`,`content-style`])]),_:1},8,[`show`])],64))}}),[[`__scopeId`,`data-v-c907363d`]]);export{pt as n,Me as r,_n as t}; \ No newline at end of file diff --git a/frontend/dist/assets/Popover-D_PD8cLD.js b/frontend/dist/assets/Popover-D_PD8cLD.js deleted file mode 100644 index e694409..0000000 --- a/frontend/dist/assets/Popover-D_PD8cLD.js +++ /dev/null @@ -1,117 +0,0 @@ -import{C as e,G as t,I as n,N as r,R as i,St as a,V as o,Z as s,lt as c,ot as l,st as u,w as d,x as f,y as p,yt as m}from"./client-CT8bsOZT.js";import{A as h,C as g,D as _,E as v,G as y,H as b,K as x,M as S,N as C,O as w,S as T,T as E,U as D,V as O,W as k,_ as A,b as j,c as M,d as N,f as P,g as F,h as ee,j as I,k as te,l as ne,m as re,o as ie,p as ae,r as oe,u as L,v as se,w as R,x as ce,y as z}from"./light-DhgSQSdG.js";import{a as le,i as ue,o as B,t as de}from"./Follower-Bm7xH84Z.js";import{a as fe,d as V,f as pe,u as H}from"./Card-BX9nnwGC.js";import{a as me,l as he,n as ge,o as _e,p as ve,u as ye}from"./fade-in-scale-up.cssr-DOaveAHn.js";import{t as be}from"./use-merged-state-CRia4_FA.js";import{t as xe}from"./use-compitable-DR1_4TS5.js";import{i as Se,t as Ce}from"./keep-tsznRFn-.js";import{r as U}from"./use-form-item-CBXe24ar.js";import{a as we,i as Te,n as Ee,o as W,r as G,t as De}from"./get-0R_rx1dU.js";import{a as K,n as Oe}from"./resolve-slot-BEScaVot.js";import{G as ke,Q as Ae,X as je,Y as Me,k as Ne,tt as Pe}from"./index-oex1uI7H.js";var q=`@@mmoContext`,Fe={mounted(e,{value:t}){e[q]={handler:void 0},typeof t==`function`&&(e[q].handler=t,V(`mousemoveoutside`,e,t))},updated(e,{value:t}){let n=e[q];typeof t==`function`?n.handler?n.handler!==t&&(H(`mousemoveoutside`,e,n.handler),n.handler=t,V(`mousemoveoutside`,e,t)):(e[q].handler=t,V(`mousemoveoutside`,e,t)):n.handler&&=(H(`mousemoveoutside`,e,n.handler),void 0)},unmounted(e){let{handler:t}=e[q];t&&H(`mousemoveoutside`,e,t),e[q].handler=void 0}},Ie;function Le(){return Ie===void 0&&(Ie=navigator.userAgent.includes(`Node.js`)||navigator.userAgent.includes(`jsdom`)),Ie}var Re=g(I,`WeakMap`),ze=ae(Object.keys,Object),Be=Object.prototype.hasOwnProperty;function Ve(e){if(!se(e))return ze(e);var t=[];for(var n in Object(e))Be.call(e,n)&&n!=`constructor`&&t.push(n);return t}function He(e){return z(e)?re(e):Ve(e)}function Ue(e,t){for(var n=-1,r=t.length,i=e.length;++ns))return!1;var l=a.get(e),u=a.get(t);if(l&&u)return l==t&&u==e;var d=-1,f=!0,p=n&vt?new Y:void 0;for(a.set(e,t),a.set(t,e);++d`,[b(`scrollbar`,` - height: inherit; - max-height: inherit; - `)]),x(`raw`,` - background-color: var(--n-color); - border-radius: var(--n-border-radius); - `,[x(`scrollable`,[x(`show-header-or-footer`,`padding: var(--n-padding);`)])]),k(`header`,` - padding: var(--n-padding); - border-bottom: 1px solid var(--n-divider-color); - transition: border-color .3s var(--n-bezier); - `),k(`footer`,` - padding: var(--n-padding); - border-top: 1px solid var(--n-divider-color); - transition: border-color .3s var(--n-bezier); - `),y(`scrollable, show-header-or-footer`,[k(`content`,` - padding: var(--n-padding); - `)])]),b(`popover-shared`,` - transform-origin: inherit; - `,[b(`popover-arrow-wrapper`,` - position: absolute; - overflow: hidden; - pointer-events: none; - `,[b(`popover-arrow`,` - transition: background-color .3s var(--n-bezier); - position: absolute; - display: block; - width: calc(${Z}); - height: calc(${Z}); - box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12); - transform: rotate(45deg); - background-color: var(--n-color); - pointer-events: all; - `)]),O(`&.popover-transition-enter-from, &.popover-transition-leave-to`,` - opacity: 0; - transform: scale(.85); - `),O(`&.popover-transition-enter-to, &.popover-transition-leave-from`,` - transform: scale(1); - opacity: 1; - `),O(`&.popover-transition-enter-active`,` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .15s var(--n-bezier-ease-out), - transform .15s var(--n-bezier-ease-out); - `),O(`&.popover-transition-leave-active`,` - transition: - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - opacity .15s var(--n-bezier-ease-in), - transform .15s var(--n-bezier-ease-in); - `)]),$(`top-start`,` - top: calc(${Z} / -2); - left: calc(${Q(`top-start`)} - var(--v-offset-left)); - `),$(`top`,` - top: calc(${Z} / -2); - transform: translateX(calc(${Z} / -2)) rotate(45deg); - left: 50%; - `),$(`top-end`,` - top: calc(${Z} / -2); - right: calc(${Q(`top-end`)} + var(--v-offset-left)); - `),$(`bottom-start`,` - bottom: calc(${Z} / -2); - left: calc(${Q(`bottom-start`)} - var(--v-offset-left)); - `),$(`bottom`,` - bottom: calc(${Z} / -2); - transform: translateX(calc(${Z} / -2)) rotate(45deg); - left: 50%; - `),$(`bottom-end`,` - bottom: calc(${Z} / -2); - right: calc(${Q(`bottom-end`)} + var(--v-offset-left)); - `),$(`left-start`,` - left: calc(${Z} / -2); - top: calc(${Q(`left-start`)} - var(--v-offset-top)); - `),$(`left`,` - left: calc(${Z} / -2); - transform: translateY(calc(${Z} / -2)) rotate(45deg); - top: 50%; - `),$(`left-end`,` - left: calc(${Z} / -2); - bottom: calc(${Q(`left-end`)} + var(--v-offset-top)); - `),$(`right-start`,` - right: calc(${Z} / -2); - top: calc(${Q(`right-start`)} - var(--v-offset-top)); - `),$(`right`,` - right: calc(${Z} / -2); - transform: translateY(calc(${Z} / -2)) rotate(45deg); - top: 50%; - `),$(`right-end`,` - right: calc(${Z} / -2); - bottom: calc(${Q(`right-end`)} + var(--v-offset-top)); - `),...hn({top:[`right-start`,`left-start`],right:[`top-end`,`bottom-end`],bottom:[`right-end`,`left-end`],left:[`top-start`,`bottom-start`]},(e,t)=>{let n=[`right`,`left`].includes(t),r=n?`width`:`height`;return e.map(e=>{let i=e.split(`-`)[1]===`end`,a=`calc((${`var(--v-target-${r}, 0px)`} - ${Z}) / 2)`,o=Q(e);return O(`[v-placement="${e}"] >`,[b(`popover-shared`,[y(`center-arrow`,[b(`popover-arrow`,`${t}: calc(max(${a}, ${o}) ${i?`+`:`-`} var(--v-offset-${n?`left`:`top`}));`)])])])})})]);function Q(e){return[`top`,`bottom`].includes(e.split(`-`)[0])?`var(--n-arrow-offset)`:`var(--n-arrow-offset-vertical)`}function $(e,t){let n=e.split(`-`)[0],r=[`top`,`bottom`].includes(n)?`height: var(--n-space-arrow);`:`width: var(--n-space-arrow);`;return O(`[v-placement="${e}"] >`,[b(`popover-shared`,` - margin-${gn[n]}: var(--n-space); - `,[y(`show-arrow`,` - margin-${gn[n]}: var(--n-space-arrow); - `),y(`overlap`,` - margin: 0; - `),D(`popover-arrow-wrapper`,` - right: 0; - left: 0; - top: 0; - bottom: 0; - ${n}: 100%; - ${gn[n]}: auto; - ${r} - `,[b(`popover-arrow`,t)])])])}var vn=Object.assign(Object.assign({},oe.props),{to:B.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number});function yn({arrowClass:e,arrowStyle:t,arrowWrapperClass:r,arrowWrapperStyle:i,clsPrefix:a}){return n(`div`,{key:`__popover-arrow__`,style:i,class:[`${a}-popover-arrow-wrapper`,r]},n(`div`,{class:[`${a}-popover-arrow`,e],style:t}))}var bn=r({name:`PopoverBody`,inheritAttrs:!1,props:vn,setup(e,{slots:r,attrs:f}){let{namespaceRef:h,mergedClsPrefixRef:g,inlineThemeDisabled:_,mergedRtlRef:v}=C(e),y=oe(`Popover`,`-popover`,_n,Ne,e,g),b=ie(`Popover`,v,g),x=m(null),w=i(`NPopover`),T=m(null),E=m(e.show),D=m(!1);u(()=>{let{show:t}=e;t&&!Le()&&!e.internalDeactivateImmediately&&(D.value=!0)});let O=d(()=>{let{trigger:t,onClickoutside:n}=e,r=[],{positionManuallyRef:{value:i}}=w;return i||(t===`click`&&!n&&r.push([_e,ee,void 0,{capture:!0}]),t===`hover`&&r.push([Fe,F])),n&&r.push([_e,ee,void 0,{capture:!0}]),(e.displayDirective===`show`||e.animated&&D.value)&&r.push([Pe,e.show]),r}),k=d(()=>{let{common:{cubicBezierEaseInOut:e,cubicBezierEaseIn:t,cubicBezierEaseOut:n},self:{space:r,spaceArrow:i,padding:a,fontSize:o,textColor:s,dividerColor:c,color:l,boxShadow:u,borderRadius:d,arrowHeight:f,arrowOffset:p,arrowOffsetVertical:m}}=y.value;return{"--n-box-shadow":u,"--n-bezier":e,"--n-bezier-ease-in":t,"--n-bezier-ease-out":n,"--n-font-size":o,"--n-text-color":s,"--n-color":l,"--n-divider-color":c,"--n-border-radius":d,"--n-arrow-height":f,"--n-arrow-offset":p,"--n-arrow-offset-vertical":m,"--n-padding":a,"--n-space":r,"--n-space-arrow":i}}),A=d(()=>{let t=e.width===`trigger`?void 0:W(e.width),n=[];t&&n.push({width:t});let{maxWidth:r,minWidth:i}=e;return r&&n.push({maxWidth:W(r)}),i&&n.push({maxWidth:W(i)}),_||n.push(k.value),n}),j=_?S(`popover`,void 0,k,e):void 0;w.setBodyInstance({syncPosition:M}),t(()=>{w.setBodyInstance(null)}),l(a(e,`show`),t=>{e.animated||(t?E.value=!0:E.value=!1)});function M(){var e;(e=x.value)==null||e.syncPosition()}function N(t){e.trigger===`hover`&&e.keepAliveOnHover&&e.show&&w.handleMouseEnter(t)}function P(t){e.trigger===`hover`&&e.keepAliveOnHover&&w.handleMouseLeave(t)}function F(t){e.trigger===`hover`&&!I().contains(pe(t))&&w.handleMouseMoveOutside(t)}function ee(t){(e.trigger===`click`&&!I().contains(pe(t))||e.onClickoutside)&&w.handleClickOutside(t)}function I(){return w.getTriggerElement()}s(he,T),s(ve,null),s(ye,null);function te(){if(j?.onRender(),!(e.displayDirective===`show`||e.show||e.animated&&D.value))return null;let t,i=w.internalRenderBodyRef.value,{value:a}=g;if(i)t=i([`${a}-popover-shared`,b?.value&&`${a}-popover--rtl`,j?.themeClass.value,e.overlap&&`${a}-popover-shared--overlap`,e.showArrow&&`${a}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${a}-popover-shared--center-arrow`],T,A.value,N,P);else{let{value:i}=w.extraClassRef,{internalTrapFocus:s}=e,c=!Oe(r.header)||!Oe(r.footer),l=()=>{let t=c?n(p,null,K(r.header,t=>t?n(`div`,{class:[`${a}-popover__header`,e.headerClass],style:e.headerStyle},t):null),K(r.default,t=>t?n(`div`,{class:[`${a}-popover__content`,e.contentClass],style:e.contentStyle},r):null),K(r.footer,t=>t?n(`div`,{class:[`${a}-popover__footer`,e.footerClass],style:e.footerStyle},t):null)):e.scrollable?r.default?.call(r):n(`div`,{class:[`${a}-popover__content`,e.contentClass],style:e.contentStyle},r);return[e.scrollable?n(fe,{themeOverrides:y.value.peerOverrides.Scrollbar,theme:y.value.peers.Scrollbar,contentClass:c?void 0:`${a}-popover__content ${e.contentClass??``}`,contentStyle:c?void 0:e.contentStyle},{default:()=>t}):t,e.showArrow?yn({arrowClass:e.arrowClass,arrowStyle:e.arrowStyle,arrowWrapperClass:e.arrowWrapperClass,arrowWrapperStyle:e.arrowWrapperStyle,clsPrefix:a}):null]};t=n(`div`,o({class:[`${a}-popover`,`${a}-popover-shared`,b?.value&&`${a}-popover--rtl`,j?.themeClass.value,i.map(e=>`${a}-${e}`),{[`${a}-popover--scrollable`]:e.scrollable,[`${a}-popover--show-header-or-footer`]:c,[`${a}-popover--raw`]:e.raw,[`${a}-popover-shared--overlap`]:e.overlap,[`${a}-popover-shared--show-arrow`]:e.showArrow,[`${a}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:T,style:A.value,onKeydown:w.handleKeydown,onMouseenter:N,onMouseleave:P},f),s?n(Se,{active:e.show,autoFocus:!0},{default:l}):l())}return c(t,O.value)}return{displayed:D,namespace:h,isMounted:w.isMountedRef,zIndex:w.zIndexRef,followerRef:x,adjustedTo:B(e),followerEnabled:E,renderContentNode:te}},render(){return n(de,{ref:`followerRef`,zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width===`trigger`?`target`:void 0,teleportDisabled:this.adjustedTo===B.tdkey},{default:()=>this.animated?n(Ae,{name:`popover-transition`,appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;(e=this.internalOnAfterLeave)==null||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),xn=Object.keys(vn),Sn={focus:[`onFocus`,`onBlur`],click:[`onClick`],hover:[`onMouseenter`,`onMouseleave`],manual:[],nested:[`onFocus`,`onBlur`,`onMouseenter`,`onMouseleave`,`onClick`]};function Cn(e,t,n){Sn[t].forEach(t=>{e.props?e.props=Object.assign({},e.props):e.props={};let r=e.props[t],i=n[t];r?e.props[t]=(...e)=>{r(...e),i(...e)}:e.props[t]=i})}var wn={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:`hover`},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:`top`},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:`if`},arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:B.propTo,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},Tn=r({name:`Popover`,inheritAttrs:!1,props:Object.assign(Object.assign(Object.assign({},oe.props),wn),{internalOnAfterLeave:Function,internalRenderBody:Function}),slots:Object,__popover__:!0,setup(e){let t=Me(),n=m(null),r=d(()=>e.show),i=m(e.defaultShow),o=be(r,i),c=je(()=>e.disabled?!1:o.value),l=()=>{if(e.disabled)return!0;let{getDisabled:t}=e;return!!t?.()},f=()=>l()?!1:o.value,p=xe(e,[`arrow`,`showArrow`]),h=d(()=>e.overlap?!1:p.value),g=null,_=m(null),v=m(null),y=je(()=>e.x!==void 0&&e.y!==void 0);function b(t){let{"onUpdate:show":n,onUpdateShow:r,onShow:a,onHide:o}=e;i.value=t,n&&U(n,t),r&&U(r,t),t&&a&&U(a,!0),t&&o&&U(o,!1)}function x(){g&&g.syncPosition()}function S(){let{value:e}=_;e&&(window.clearTimeout(e),_.value=null)}function C(){let{value:e}=v;e&&(window.clearTimeout(e),v.value=null)}function w(){let t=l();if(e.trigger===`focus`&&!t){if(f())return;b(!0)}}function T(){let t=l();if(e.trigger===`focus`&&!t){if(!f())return;b(!1)}}function E(){let t=l();if(e.trigger===`hover`&&!t){if(C(),_.value!==null||f())return;let t=()=>{b(!0),_.value=null},{delay:n}=e;n===0?t():_.value=window.setTimeout(t,n)}}function D(){let t=l();if(e.trigger===`hover`&&!t){if(S(),v.value!==null||!f())return;let t=()=>{b(!1),v.value=null},{duration:n}=e;n===0?t():v.value=window.setTimeout(t,n)}}function O(){D()}function k(t){var n;f()&&(e.trigger===`click`&&(S(),C(),b(!1)),(n=e.onClickoutside)==null||n.call(e,t))}function A(){e.trigger===`click`&&!l()&&(S(),C(),b(!f()))}function j(t){e.internalTrapFocus&&t.key===`Escape`&&(S(),C(),b(!1))}function M(e){i.value=e}function N(){return n.value?.targetRef}function P(e){g=e}return s(`NPopover`,{getTriggerElement:N,handleKeydown:j,handleMouseEnter:E,handleMouseLeave:D,handleClickOutside:k,handleMouseMoveOutside:O,setBodyInstance:P,positionManuallyRef:y,isMountedRef:t,zIndexRef:a(e,`zIndex`),extraClassRef:a(e,`internalExtraClass`),internalRenderBodyRef:a(e,`internalRenderBody`)}),u(()=>{o.value&&l()&&b(!1)}),{binderInstRef:n,positionManually:y,mergedShowConsideringDisabledProp:c,uncontrolledShow:i,mergedShowArrow:h,getMergedShow:f,setShow:M,handleClick:A,handleMouseEnter:E,handleMouseLeave:D,handleFocus:w,handleBlur:T,syncPosition:x}},render(){let{positionManually:t,$slots:r}=this,i,a=!1;if(!t&&(i=ge(r,`trigger`),i)){i=e(i),i=i.type===f?n(`span`,[i]):i;let r={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(i.type?.__popover__)a=!0,i.props||={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]},i.props.internalSyncTargetWithParent=!0,i.props.internalInheritedEventHandlers?i.props.internalInheritedEventHandlers=[r,...i.props.internalInheritedEventHandlers]:i.props.internalInheritedEventHandlers=[r];else{let{internalInheritedEventHandlers:e}=this,n=[r,...e];Cn(i,e?`nested`:t?`manual`:this.trigger,{onBlur:e=>{n.forEach(t=>{t.onBlur(e)})},onFocus:e=>{n.forEach(t=>{t.onFocus(e)})},onClick:e=>{n.forEach(t=>{t.onClick(e)})},onMouseenter:e=>{n.forEach(t=>{t.onMouseenter(e)})},onMouseleave:e=>{n.forEach(t=>{t.onMouseleave(e)})}})}}return n(le,{ref:`binderInstRef`,syncTarget:!a,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;let e=this.getMergedShow();return[this.internalTrapFocus&&e?c(n(`div`,{style:{position:`fixed`,top:0,right:0,bottom:0,left:0}}),[[me,{enabled:e,zIndex:this.zIndex}]]):null,t?null:n(ue,null,{default:()=>i}),n(bn,Ce(this.$props,xn,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:e})),{default:()=>{var e;return(e=this.$slots).default?.call(e)},header:()=>{var e;return(e=this.$slots).header?.call(e)},footer:()=>{var e;return(e=this.$slots).footer?.call(e)}})]}})}});export{wn as n,Tn as t}; \ No newline at end of file diff --git a/frontend/dist/assets/PrivacyPolicyView-C4BPsXgv.js b/frontend/dist/assets/PrivacyPolicyView-C4BPsXgv.js deleted file mode 100644 index 50e2071..0000000 --- a/frontend/dist/assets/PrivacyPolicyView-C4BPsXgv.js +++ /dev/null @@ -1 +0,0 @@ -import{M as e,N as t,O as n,X as r,y as i}from"./client-CT8bsOZT.js";import{t as a}from"./DocsPage-Dt91bPTm.js";import{t as o}from"./HeaderMenu--hCKWQY2.js";var s=t({__name:`PrivacyPolicyView`,setup(t){return(t,s)=>(r(),n(i,null,[e(a,{kind:`privacy`}),e(o)],64))}});export{s as default}; \ No newline at end of file diff --git a/frontend/dist/assets/Rate-BlfAKQvG.js b/frontend/dist/assets/Rate-BlfAKQvG.js deleted file mode 100644 index 59bbb05..0000000 --- a/frontend/dist/assets/Rate-BlfAKQvG.js +++ /dev/null @@ -1,36 +0,0 @@ -import{I as e,N as t,Q as n,St as r,w as i,yt as a}from"./client-CT8bsOZT.js";import{G as o,H as s,K as c,M as l,N as u,V as d,W as f,q as p,r as m,t as h}from"./light-DhgSQSdG.js";import{t as g}from"./use-merged-state-CRia4_FA.js";import{i as _,n as v,r as y}from"./use-form-item-CBXe24ar.js";import{U as b}from"./index-oex1uI7H.js";function x(e){let{railColor:t}=e;return{itemColor:t,itemColorActive:`#FFCC33`,sizeSmall:`16px`,sizeMedium:`20px`,sizeLarge:`24px`}}var S={name:`Rate`,common:h,self:x},C=()=>e(`svg`,{viewBox:`0 0 512 512`},e(`path`,{d:`M394 480a16 16 0 01-9.39-3L256 383.76 127.39 477a16 16 0 01-24.55-18.08L153 310.35 23 221.2a16 16 0 019-29.2h160.38l48.4-148.95a16 16 0 0130.44 0l48.4 149H480a16 16 0 019.05 29.2L359 310.35l50.13 148.53A16 16 0 01394 480z`})),w=s(`rate`,{display:`inline-flex`,flexWrap:`nowrap`},[d(`&:hover`,[f(`item`,` - transition: - transform .1s var(--n-bezier), - color .3s var(--n-bezier); - `)]),f(`item`,` - position: relative; - display: flex; - transition: - transform .1s var(--n-bezier), - color .3s var(--n-bezier); - transform: scale(1); - font-size: var(--n-item-size); - color: var(--n-item-color); - `,[d(`&:not(:first-child)`,` - margin-left: 6px; - `),o(`active`,` - color: var(--n-item-color-active); - `)]),c(`readonly`,` - cursor: pointer; - `,[f(`item`,[d(`&:hover`,` - transform: scale(1.05); - `),d(`&:active`,` - transform: scale(0.96); - `)])]),f(`half`,` - display: flex; - transition: inherit; - position: absolute; - top: 0; - left: 0; - bottom: 0; - width: 50%; - overflow: hidden; - color: rgba(255, 255, 255, 0); - `,[o(`active`,` - color: var(--n-item-color-active); - `)])]),T=t({name:`Rate`,props:Object.assign(Object.assign({},m.props),{allowHalf:Boolean,count:{type:Number,default:5},value:Number,defaultValue:{type:Number,default:null},readonly:Boolean,size:[String,Number],clearable:Boolean,color:String,onClear:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),setup(e){let{mergedClsPrefixRef:t,inlineThemeDisabled:n,mergedComponentPropsRef:o}=u(e),s=m(`Rate`,`-rate`,w,S,e,t),c=r(e,`value`),d=a(e.defaultValue),f=a(null),h=v(e,{mergedSize(t){if(e.size!==void 0)return e.size;if(t)return t.mergedSize.value;let n=o?.value?.Rate?.size;return n===void 0?`medium`:n}}),b=g(c,d);function x(t){let{"onUpdate:value":n,onUpdateValue:r}=e,{nTriggerFormChange:i,nTriggerFormInput:a}=h;n&&y(n,t),r&&y(r,t),d.value=t,i(),a()}function C(t,n){return e.allowHalf?n.offsetX>=Math.floor(n.currentTarget.offsetWidth/2)?t+1:t+.5:t+1}let T=!1;function E(e,t){T||(f.value=C(e,t))}function D(){f.value=null}function O(t,n){var r;let{clearable:i}=e,a=C(t,n);i&&a===b.value?(T=!0,(r=e.onClear)==null||r.call(e),f.value=null,x(null)):x(a)}function k(){T=!1}let{mergedSizeRef:A}=h,j=i(()=>{let e=A.value,{self:t}=s.value;return typeof e==`number`?`${e}px`:t[p(`size`,e)]}),M=i(()=>{let{common:{cubicBezierEaseInOut:t},self:n}=s.value,{itemColor:r,itemColorActive:i}=n,{color:a}=e;return{"--n-bezier":t,"--n-item-color":r,"--n-item-color-active":a||i,"--n-item-size":j.value}}),N=n?l(`rate`,i(()=>{let t=j.value,{color:n}=e,r=``;return t&&(r+=t[0]),n&&(r+=_(n)),r}),M,e):void 0;return{mergedClsPrefix:t,mergedValue:b,hoverIndex:f,handleMouseMove:E,handleClick:O,handleMouseLeave:D,handleMouseEnterSomeStar:k,cssVars:n?void 0:M,themeClass:N?.themeClass,onRender:N?.onRender}},render(){let{readonly:t,hoverIndex:r,mergedValue:i,mergedClsPrefix:a,onRender:o,$slots:{default:s}}=this;return o?.(),e(`div`,{class:[`${a}-rate`,{[`${a}-rate--readonly`]:t},this.themeClass],style:this.cssVars,onMouseleave:this.handleMouseLeave},n(this.count,(n,o)=>{let c=s?s({index:o}):e(b,{clsPrefix:a},{default:C}),l=r===null?o+1<=(i||0):o+1<=r;return e(`div`,{key:o,class:[`${a}-rate__item`,l&&`${a}-rate__item--active`],onClick:t?void 0:e=>{this.handleClick(o,e)},onMouseenter:this.handleMouseEnterSomeStar,onMousemove:t?void 0:e=>{this.handleMouseMove(o,e)}},c,this.allowHalf?e(`div`,{class:[`${a}-rate__half`,{[`${a}-rate__half--active`]:!l&&r!==null?o+.5<=r:o+.5<=(i||0)}]},c):null)}))}});export{T as t}; \ No newline at end of file diff --git a/frontend/dist/assets/ReviewsView-SsQRgG3N.js b/frontend/dist/assets/ReviewsView-SsQRgG3N.js deleted file mode 100644 index e490115..0000000 --- a/frontend/dist/assets/ReviewsView-SsQRgG3N.js +++ /dev/null @@ -1 +0,0 @@ -import{D as e,E as t,Ht as n,M as r,N as i,O as a,Q as o,T as s,X as c,ct as l,j as u,wt as d,y as f,yt as p}from"./client-CT8bsOZT.js";import{t as m}from"./Card-BX9nnwGC.js";import{t as h}from"./Button-D8HO8D_D.js";import{t as g}from"./Tag-wKk--N0F.js";import{n as _,r as v}from"./es-BS8VS4O3.js";import{t as y}from"./Flex-LW-PCNxv.js";import{t as b}from"./Rate-BlfAKQvG.js";import{t as x}from"./HeaderMenu--hCKWQY2.js";import{t as S}from"./_plugin-vue_export-helper-BDNMzG2s.js";var C={class:`center-block-custom`},w={class:`width1200`},T={class:`page-header`},E={class:`review-game`},D={class:`review-text`},O=S(i({__name:`ReviewsPage`,setup(i){let S=_(),O=v(),k=p([]);async function A(){try{let e=await S.GetReviewsForModeration({});k.value=e.reviews||[]}catch(e){O.error(e instanceof Error?e.message:`Не удалось загрузить отзывы`)}}async function j(e,t){try{await S.ModerateGameReview({ID:e.ID,status:t}),await A()}catch(e){O.error(e instanceof Error?e.message:`Не удалось изменить отзыв`)}}return A(),(i,p)=>(c(),a(f,null,[s(`div`,C,[s(`div`,w,[s(`div`,T,[p[1]||=s(`h1`,null,`Отзывы`,-1),r(d(h),{onClick:A},{default:l(()=>[...p[0]||=[u(`Обновить`,-1)]]),_:1})]),k.value.length==0?(c(),t(d(m),{key:0},{default:l(()=>[...p[2]||=[u(`Очередь отзывов пуста.`,-1)]]),_:1})):e(``,!0),(c(!0),a(f,null,o(k.value,i=>(c(),t(d(m),{key:i.ID,class:`review-card`},{default:l(()=>[r(d(y),{justify:`space-between`,align:`center`},{default:l(()=>[s(`div`,null,[s(`div`,E,n(i.gameName),1),s(`strong`,null,n(i.teamName),1)]),r(d(g),null,{default:l(()=>[u(n(i.status),1)]),_:2},1024)]),_:2},1024),r(d(b),{value:i.rating,readonly:``},null,8,[`value`]),s(`div`,null,`Сложность: `+n([``,`лёгкая`,`средняя`,`тяжёлая`][i.difficulty||0]),1),s(`p`,D,n(i.text),1),i.status==`pending`?(c(),t(d(y),{key:0,justify:`end`},{default:l(()=>[r(d(h),{type:`success`,onClick:e=>j(i,`approved`)},{default:l(()=>[...p[3]||=[u(`Одобрить`,-1)]]),_:1},8,[`onClick`]),r(d(h),{type:`error`,ghost:``,onClick:e=>j(i,`rejected`)},{default:l(()=>[...p[4]||=[u(`Отклонить`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):i.status==`approved`?(c(),t(d(y),{key:1,justify:`end`},{default:l(()=>[r(d(h),{type:`error`,ghost:``,onClick:e=>j(i,`hidden`)},{default:l(()=>[...p[5]||=[u(`Скрыть`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):e(``,!0)]),_:2},1024))),128))])]),r(x,{active:`reviews`})],64))}}),[[`__scopeId`,`data-v-0b64d5d0`]]),k=i({__name:`ReviewsView`,setup(e){return(e,n)=>(c(),t(O))}});export{k as default}; \ No newline at end of file diff --git a/frontend/dist/assets/ScenarioView-DTRuwAMu.js b/frontend/dist/assets/ScenarioView-DTRuwAMu.js deleted file mode 100644 index e312685..0000000 --- a/frontend/dist/assets/ScenarioView-DTRuwAMu.js +++ /dev/null @@ -1 +0,0 @@ -import{D as e,E as t,Ht as n,M as r,N as i,O as a,Q as o,T as s,X as c,ct as l,j as u,l as d,wt as f,y as p,yt as m}from"./client-CT8bsOZT.js";import{t as h}from"./Tag-wKk--N0F.js";import{n as g,r as _}from"./es-BS8VS4O3.js";import{t as v}from"./Rate-BlfAKQvG.js";import{t as y}from"./HeaderMenu--hCKWQY2.js";import{t as b}from"./_plugin-vue_export-helper-BDNMzG2s.js";var x={class:`center-block-custom`},S={class:`width700`},C={class:`scenario-card`},w={class:`scenario-heading`},T={class:`scenario-title`},E={class:`scenario-image-frame`},D=[`src`,`alt`],O={class:`scenario-details`},k={class:`scenario-description`},A={class:`scenario-rating`},j={key:1},M={key:2},N={key:0,class:`scenario-difficulty`},P={class:`scenario-author`},F={key:1,class:`reviews-section`},I={class:`review-heading`},L={class:`review-game`},R={class:`review-text`},z=b(i({__name:`ScenarioPage`,setup(i){let b=_(),z=g(),B=d().params.id,V=m([]),H=m({ID:void 0,name:void 0,story:void 0,author:void 0,status:void 0,updatedAt:void 0,createdAt:void 0,publishedAt:void 0,averageRating:void 0,reviewsCount:void 0,difficulty:void 0});async function U(e){try{let t=await z.GetScenario({ID:e});H.value=t.scenario}catch(e){b.error(e instanceof Error?e.message:`Не удалось загрузить сценарий`)}}U(Number(B));async function W(e){try{let t=await z.GetScenarioReviews({scenarioID:e});V.value=t.reviews||[]}catch(e){b.error(e instanceof Error?e.message:`Не удалось загрузить отзывы`)}}return W(Number(B)),(i,d)=>(c(),a(p,null,[s(`div`,x,[s(`div`,S,[s(`section`,C,[s(`div`,w,[d[0]||=s(`p`,{class:`scenario-kicker`},`ДЕЛО ИЗ КАТАЛОГА`,-1),s(`h1`,T,n(H.value.name),1)]),s(`div`,E,[s(`img`,{class:`scenario-image`,src:H.value.image,alt:H.value.name},null,8,D)]),s(`div`,O,[s(`p`,k,n(H.value.description),1),s(`div`,A,[H.value.reviewsCount?(c(),t(f(v),{key:0,value:H.value.averageRating,readonly:``,"allow-half":``,size:`small`},null,8,[`value`])):e(``,!0),H.value.reviewsCount?(c(),a(`span`,j,n(H.value.averageRating?.toFixed(1))+` · `+n(H.value.reviewsCount)+` отзывов`,1)):(c(),a(`span`,M,`Пока нет оценок`))]),H.value.difficulty?(c(),a(`div`,N,`Сложность: `+n(H.value.difficulty),1)):e(``,!0),s(`div`,P,[r(f(h),{bordered:!1,type:`success`,class:`status-block`},{default:l(()=>[u(` Автор: `+n(H.value.author?.username),1)]),_:1})]),V.value.length?(c(),a(`section`,F,[d[1]||=s(`h2`,{class:`reviews-title`},`Отзывы команд`,-1),(c(!0),a(p,null,o(V.value,e=>(c(),a(`article`,{key:e.ID,class:`review-card`},[s(`div`,I,[s(`strong`,null,n(e.teamName),1),r(f(v),{value:e.rating,readonly:``,size:`small`},null,8,[`value`])]),s(`div`,null,`Сложность: `+n([``,`лёгкая`,`средняя`,`тяжёлая`][e.difficulty||0]),1),s(`div`,L,n(e.gameName),1),s(`p`,R,n(e.text),1)]))),128))])):e(``,!0)])])])]),r(y,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-fd1f9c93`]]),B=i({__name:`ScenarioView`,setup(e){return(e,n)=>(c(),t(z))}});export{B as default}; \ No newline at end of file diff --git a/frontend/dist/assets/ScenariosEditorView-CGEDi4to.js b/frontend/dist/assets/ScenariosEditorView-CGEDi4to.js deleted file mode 100644 index 319c7c9..0000000 --- a/frontend/dist/assets/ScenariosEditorView-CGEDi4to.js +++ /dev/null @@ -1 +0,0 @@ -import{$ as e,D as t,E as n,Ht as r,M as i,N as a,O as o,Q as s,T as c,X as l,ct as u,j as d,l as f,w as p,wt as m,y as h,yt as g}from"./client-CT8bsOZT.js";import{t as _}from"./Card-BX9nnwGC.js";import{t as v}from"./Modal-a8TxC5Fw.js";import{t as y}from"./Button-D8HO8D_D.js";import{n as ee,t as b}from"./Upload-DWDjLEkv.js";import{n as te,r as x,t as ne}from"./PlaceBlock-lvcHyG82.js";import{t as S}from"./Input-B3ERgh42.js";import{t as re}from"./Tag-wKk--N0F.js";import{t as ie}from"./Alert-CWmvp18Y.js";import{n as ae,r as oe,t as se}from"./es-BS8VS4O3.js";import{t as C}from"./Space-B8J_02Fa.js";import{t as w}from"./Flex-LW-PCNxv.js";import{t as T}from"./text-CQ4PuMIN.js";import{n as ce,t as le}from"./index-oex1uI7H.js";import{t as ue}from"./HeaderMenu--hCKWQY2.js";import{t as E}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as de}from"./binary_client-C7IqFUIC.js";import{r as fe}from"./application-DrhMrvIJ.js";var D={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},pe=a({name:`Settings`,render:function(e,t){return l(),o(`svg`,D,t[0]||=[c(`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),c(`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)])}}),O={key:1,class:`place-block`},k={class:`message-header`},A={class:`message-content`},j={key:0},M={class:`correct-answer`},N={key:1,class:`intro-empty`},P={key:3,class:`place-block`},F={class:`slot-block`},me=E(a({__name:`QuestionBlock`,props:{newQuestionCode:{},newQuestionText:{},newQuestionAnswer:{},question:{},mode:{}},emits:[`update:newQuestionCode`,`update:newQuestionText`,`update:newQuestionAnswer`,`update:mode`],setup(n,{emit:a}){let s=n,f=a,p=e=>{f(`update:newQuestionCode`,e)},g=e=>{f(`update:newQuestionText`,e)},_=e=>{f(`update:newQuestionAnswer`,e)},v=e=>{f(`update:mode`,e)};return(a,f)=>(l(),o(h,null,[n.mode==`mini-add`?(l(),o(`div`,{key:0,class:`place-block-hover show-editor-block`,onClick:f[0]||=e=>v(`add`)},[...f[5]||=[c(`p`,{class:`place-image-plus`},`+`,-1)]])):t(``,!0),n.mode==`add`?(l(),o(`div`,O,[i(m(C),{vertical:``},{default:u(()=>[i(m(x),null,{default:u(()=>[i(m(S),{style:{width:`25%`},value:n.newQuestionCode,"onUpdate:value":p,type:`text`,placeholder:`В-1`},null,8,[`value`]),i(m(S),{style:{width:`75%`},value:n.newQuestionText,"onUpdate:value":g,type:`text`,placeholder:`Кто украл пастуха?`},null,8,[`value`])]),_:1}),i(m(S),{value:n.newQuestionAnswer,"onUpdate:value":_,type:`textarea`,autosize:{minRows:2},placeholder:`Правильный ответ (виден только автору и организаторам)`},null,8,[`value`]),e(a.$slots,`default`,{},void 0,!0)]),_:3})])):t(``,!0),n.mode==`show-editor`?(l(),o(`div`,{key:2,class:`place-block-hover show-editor-block`,onClick:f[1]||=e=>v(`edit`)},[c(`div`,k,r(s.question?.code)+`: `+r(s.question?.text),1),f[8]||=c(`hr`,{class:`hr`},null,-1),c(`div`,A,[s.question?.answer?(l(),o(`span`,j,[f[6]||=d(` Ответ:`,-1),f[7]||=c(`br`,null,null,-1),c(`span`,M,r(s.question.answer),1)])):(l(),o(`span`,N,`Ответ не задан`))])])):t(``,!0),n.mode==`edit`?(l(),o(`div`,P,[i(m(C),{vertical:``},{default:u(()=>[i(m(x),null,{default:u(()=>[i(m(S),{style:{width:`25%`},value:s.question.code,"onUpdate:value":f[2]||=e=>s.question.code=e,type:`text`,placeholder:`В-1`},null,8,[`value`]),i(m(S),{style:{width:`75%`},value:s.question.text,"onUpdate:value":f[3]||=e=>s.question.text=e,type:`text`,placeholder:`Кто украл пастуха?`},null,8,[`value`])]),_:1}),f[10]||=c(`p`,{class:`settings-header`},`Правильный ответ`,-1),i(m(S),{value:s.question.answer,"onUpdate:value":f[4]||=e=>s.question.answer=e,type:`textarea`,autosize:{minRows:2},placeholder:`Правильный ответ (виден только автору и организаторам)`},null,8,[`value`]),i(m(T),{class:`hint`,depth:`3`},{default:u(()=>[...f[9]||=[d(` Смена кода вопроса не переносит ответы команд, отправленные под старым кодом. `,-1)]]),_:1}),c(`div`,F,[e(a.$slots,`default`,{},void 0,!0)])]),_:3})])):t(``,!0)],64))}}),[[`__scopeId`,`data-v-b506c9f9`]]),he={class:`width700`},ge={class:`places-container`},_e={class:`settings-block`},ve=[`src`],ye=[`src`],be=[`aria-label`],I=E(a({__name:`ScenariosEditorPage`,setup(e){let a=le(),x=ae(),E=de(),D=f().params.id,O=g(!1),k=g(``),A=g(``),j=g(!1),M=oe(),N=g([]),P=g({ID:void 0,name:void 0,story:void 0,author:void 0,status:void 0,updatedAt:void 0,createdAt:void 0,publishedAt:void 0,averageRating:void 0,reviewsCount:void 0,difficulty:void 0}),F=g([]),I=g(!1),L=g({text:``,audio:``}),R=g(`show-editor`),z=g({text:``,video:``}),B=g([]),V=g(!1),xe=p(()=>fe(z.value.video));function H(){z.value={text:``,video:``,...P.value.story?.conclusion},B.value=[]}function Se(){z.value.video=``,B.value=[]}async function Ce(e=!1){V.value=!0;try{let t=qe(z.value.video);if(!e&&B.value.length){let e=B.value[0].file;if(!e)return;let n=await G(e,`scenarios_`+P.value.ID+`_conclusion_`+e.name);if(!n.filename)return;if(n.fileType!==`video`){M.error(`Закрывашка должна содержать видео MP4 или WebM`);return}t=n.filename}let n=e?{text:``,video:``}:{text:z.value.text,video:t};await x.UpdateScenarioConclusion({ID:P.value.ID,conclusion:n}),P.value.story.conclusion=n,H(),M.success(e?`Закрывашка удалена`:`Закрывашка сохранена`)}catch{M.error(`Не удалось сохранить закрывашку`)}finally{V.value=!1}}let we=p(()=>P.value.story?.places||[]),Te=g(null),U=new Map;function Ee(e){let t=e?we.value.find(t=>(t.oldCode??t.code)===e):void 0,n=t&&U.get(t),r=Te.value;if(!n||!r){M.error(e?`Точка «${e}» не найдена`:`У действия не указан код точки`);return}n.focus({preventScroll:!0}),r.scrollTo({top:r.scrollTop+n.getBoundingClientRect().top-r.getBoundingClientRect().top-10,behavior:`smooth`})}let De=p(()=>P.value.story?.questions||[]);async function W(e){let t=await x.GetFullScenario({ID:e});P.value=t.scenario,H(),P.value.story?.places?.forEach(e=>{let t=e;t.oldCode=t.code,t.mode=`show-editor`}),P.value.story?.questions?.forEach(e=>{let t=e;t.oldCode=t.code,t.mode=`show-editor`}),L.value=P.value.story?.introduction||{text:``,audio:``},R.value=`show-editor`}W(Number(D));async function Oe(e){await x.DeleteScenario({ID:e}),ce.push(`/scenarios`)}async function ke(e){await x.PublicScenario({ID:e}),await W(Number(D)),k.value=``,O.value=!1}async function Ae(e,t){let n=new Date().toISOString(),r=await x.AddGame({name:(`Тестовая игра: `+e).trim(),description:`Тестовая игра`,location:``,format:`online`,startAt:n,scenarioID:t}),i=await x.AddTeam({name:`Тестовая команда`,captainEmail:``,gameID:r.ID,participantsCount:void 0});ce.push(`/team-story/`+i.ID+`?password=`+i.password)}async function je(e){await x.DraftScenario({ID:e}),await W(Number(D)),k.value=``,O.value=!1}async function Me(){j.value=!0;try{let{blob:e,filename:t}=await E.downloadScenarioArchive(P.value.ID),n=URL.createObjectURL(e),r=document.createElement(`a`);r.href=n,r.download=t,document.body.appendChild(r),r.click(),r.remove(),setTimeout(()=>URL.revokeObjectURL(n),1e3),M.success(`Архив сценария скачан`)}catch(e){M.error(e instanceof Error?e.message:`Не удалось скачать архив`)}finally{j.value=!1}}async function G(e,t){if(!e)return{filename:``,fileType:``};let n=await e.arrayBuffer(),r=new Uint8Array(n),i=await x.UploadFile({filename:t,data:Pe(r)});return{filename:i.filename||``,fileType:i.file_type||``}}async function Ne(){let e=``;if(N.value&&N.value.length>0){let t=N.value[0].file||null;if(t==null)return;let n=await G(t,`scenarios_`+P.value.ID+`_`+t.name);if(n.filename===``)return;e=n.filename}await x.UpdateScenario({ID:P.value.ID,name:P.value.name,description:P.value.description,image:e}),await W(Number(D)),O.value=!1}function Pe(e){let t=Fe(e);return btoa(t)}function Fe(e){let t=``;for(let n=0;ne.code==n.code)??await x.AddScenarioPlace({ID:e.ID,place:{code:n.code,name:n.name,text:void 0,image:void 0,hidden:!0,applications:void 0,doors:void 0,keys:void 0}})}async function ze(e){await W(Number(D)),e.mode=`show-editor`}async function Be(e){if(e.fileList&&e.fileList.length>0){let t=e.fileList[0].file||null;if(t==null)return;let n=await G(t,`scenarios_`+P.value.ID+`_place_`+e.code+`_`+t.name);if(n.filename===``)return;e.image=n.filename}let t=e.applications||[];for(let n of t){if(!n.fileList||n.fileList.length==0)continue;let t=n.fileList[0].file||null;if(t==null)continue;let r=await G(t,`scenarios_`+P.value.ID+`_place_`+e.code+`_app_`+t.name);if(r.filename===``)return;n.image=r.filename,n.file_type=r.fileType}await Re(P.value,e),await x.UpdateScenarioPlace({ID:P.value.ID,code:e.oldCode,place:e}),await W(Number(D)),e.mode=`show-editor`}async function Ve(e){await x.DeleteScenarioPlace({ID:P.value.ID,code:e.oldCode}),await W(Number(D))}let X=g(``),Z=g(``),Q=g(``),$=g(`mini-add`);async function He(){await x.AddScenarioQuestion({ID:P.value.ID,question:{code:X.value,text:Z.value,answer:Q.value}}),await W(Number(D)),X.value=``,Z.value=``,Q.value=``,$.value=`add`}async function Ue(){X.value=``,Z.value=``,Q.value=``,$.value=`mini-add`}async function We(e){await x.UpdateScenarioQuestion({ID:P.value.ID,code:e.oldCode,question:{code:e.code,text:e.text,answer:e.answer}}),await W(Number(D)),e.mode=`show-editor`}async function Ge(e){await W(Number(D)),e.mode=`show-editor`}async function Ke(e){await x.DeleteScenarioQuestion({ID:P.value.ID,code:e.oldCode}),await W(Number(D))}function qe(e){return e&&e.split(`/`).pop()||``}async function Je(){let e=``;if(L.value.fileList&&L.value.fileList.length>0){let t=L.value.fileList[0].file||null;if(t==null||(e=(await G(t,`scenarios_`+P.value.ID+`_intro_`+t.name)).filename,e===``))return}else e=qe(L.value.audio);await x.UpdateScenarioIntro({ID:P.value.ID,introduction:{text:L.value.text,audio:e}}),await W(Number(D))}async function Ye(e=!1){I.value=!0;try{let t=``;if(!e){let e=F.value[0]?.file;if(!e)return;let n=await G(e,`scenarios_`+P.value.ID+`_background_`+e.name);if(!n.filename)return;if(n.fileType!==`image`){M.error(`Фон дела должен быть изображением`);return}t=n.filename}await x.UpdateScenarioBackground({ID:P.value.ID,background:t}),await W(Number(D)),F.value=[]}catch{M.error(`Не удалось сохранить фон дела`)}finally{I.value=!1}}async function Xe(){await W(Number(D))}function Ze(){let e=[{text:`Настя, ты просто ослепительна сегодня!`,nameForm:`Настя`},{text:`У Насти невероятный вкус!`,nameForm:`Насти`},{text:`Настенька, твоя улыбка делает мир ярче.`,nameForm:`Настенька`},{text:`С Настей всегда интересно общаться.`,nameForm:`Настей`},{text:`Настя, ты — источник вдохновения для всех вокруг.`,nameForm:`Настя`},{text:`Мне нравится, как Настя смотрит на мир.`,nameForm:`Настя`},{text:`Настюха, ты супер!`,nameForm:`Настюха`},{text:`Талант Насти поражает!`,nameForm:`Насти`},{text:`Настя, твоя энергия заряжает батарейки!`,nameForm:`Настя`},{text:`С Настей хочется проводить каждую минуту.`,nameForm:`Настей`},{text:`Настенька, ты — самое красивое, что случилось в этом мире.`,nameForm:`Настенька`},{text:`У Насти золотое сердце.`,nameForm:`Насти`}];return e[Math.floor(Math.random()*e.length)].text}return(e,f)=>(l(),o(h,null,[c(`div`,{ref_key:`scrollContainer`,ref:Te,class:`center-block-custom`},[c(`div`,he,[c(`div`,ge,[P.value.status==`public`?(l(),n(m(ie),{key:0,title:`Сценарий опубликован`,type:`warning`,style:{"margin-bottom":`20px`}},{default:u(()=>[...f[39]||=[d(` Не рекомендуется редактировать сценарий когда он опубликован. `,-1)]]),_:1})):t(``,!0),m(a).user?.ID==2?(l(),n(m(ie),{key:1,title:Ze(),type:`info`,style:{"margin-bottom":`20px`}},null,8,[`title`])):t(``,!0),c(`div`,_e,[d(` Точек: `+r(P.value.story?.places?.length)+`, Вопросов: `+r(P.value.story?.questions?.length)+` `,1),i(m(y),{quaternary:``,onClick:f[0]||=e=>O.value=!0,class:`settings-button`},{default:u(()=>[i(m(se),{class:`settings-icon`},{default:u(()=>[i(m(pe))]),_:1}),f[40]||=d(` Настройки `,-1)]),_:1})]),i(m(_),{title:`Фон дела`},{default:u(()=>[i(m(C),{vertical:``},{default:u(()=>[P.value.story?.background?(l(),o(`img`,{key:0,src:P.value.story.background,alt:`Фон дела`,class:`background-preview`},null,8,ve)):t(``,!0),i(m(b),{"file-list":F.value,"onUpdate:fileList":f[1]||=e=>F.value=e,accept:`.jpg,.jpeg,.png,.gif,.webp`,max:1,"default-upload":!1,disabled:I.value},{default:u(()=>[i(m(y),{disabled:I.value},{default:u(()=>[...f[41]||=[d(`Выбрать фон`,-1)]]),_:1},8,[`disabled`])]),_:1},8,[`file-list`,`disabled`]),i(m(w),null,{default:u(()=>[i(m(y),{loading:I.value,disabled:!F.value.length||I.value,onClick:f[2]||=e=>Ye()},{default:u(()=>[...f[42]||=[d(`Сохранить фон`,-1)]]),_:1},8,[`loading`,`disabled`]),P.value.story?.background?(l(),n(m(y),{key:0,disabled:I.value,onClick:f[3]||=e=>Ye(!0)},{default:u(()=>[...f[43]||=[d(`Удалить фон`,-1)]]),_:1},8,[`disabled`])):t(``,!0)]),_:1})]),_:1})]),_:1}),i(te,{introduction:L.value,mode:R.value,"onUpdate:mode":f[6]||=e=>R.value=e},{default:u(()=>[i(m(w),{justify:`end`},{default:u(()=>[i(m(y),{onClick:f[4]||=e=>Xe()},{default:u(()=>[...f[44]||=[d(`Отмена`,-1)]]),_:1}),i(m(y),{onClick:f[5]||=e=>Je()},{default:u(()=>[...f[45]||=[d(`Сохранить вступление`,-1)]]),_:1})]),_:1})]),_:1},8,[`introduction`,`mode`]),i(m(_),{title:`Закрывашка сценария`},{default:u(()=>[i(m(C),{vertical:``},{default:u(()=>[i(m(T),{depth:`3`},{default:u(()=>[...f[46]||=[d(`Разгадка дела для автора. Игрокам не показывается.`,-1)]]),_:1}),i(m(S),{value:z.value.text,"onUpdate:value":f[7]||=e=>z.value.text=e,type:`textarea`,autosize:{minRows:4,maxRows:12},placeholder:`Текст закрывашки`,"aria-label":`Текст закрывашки`,disabled:V.value},null,8,[`value`,`disabled`]),xe.value?(l(),o(`video`,{key:0,src:xe.value,controls:``,preload:`none`,class:`conclusion-video`,"aria-label":`Видео закрывашки`},null,8,ye)):t(``,!0),z.value.video?(l(),n(m(y),{key:1,disabled:V.value,onClick:f[8]||=e=>Se()},{default:u(()=>[...f[47]||=[d(`Убрать видео`,-1)]]),_:1},8,[`disabled`])):t(``,!0),i(m(b),{"file-list":B.value,"onUpdate:fileList":f[9]||=e=>B.value=e,accept:`.mp4,.webm`,max:1,"default-upload":!1,disabled:V.value},{default:u(()=>[i(m(y),{disabled:V.value},{default:u(()=>[...f[48]||=[d(`Выбрать видео MP4/WebM`,-1)]]),_:1},8,[`disabled`])]),_:1},8,[`file-list`,`disabled`]),i(m(w),{justify:`end`},{default:u(()=>[P.value.story?.conclusion?.text||P.value.story?.conclusion?.video?(l(),n(m(y),{key:0,disabled:V.value,onClick:f[10]||=e=>Ce(!0)},{default:u(()=>[...f[49]||=[d(`Удалить закрывашку`,-1)]]),_:1},8,[`disabled`])):t(``,!0),i(m(y),{disabled:V.value,onClick:f[11]||=e=>H()},{default:u(()=>[...f[50]||=[d(`Отмена`,-1)]]),_:1},8,[`disabled`]),i(m(y),{loading:V.value,disabled:V.value||!P.value.story,onClick:f[12]||=e=>Ce()},{default:u(()=>[...f[51]||=[d(`Сохранить закрывашку`,-1)]]),_:1},8,[`loading`,`disabled`])]),_:1})]),_:1})]),_:1}),f[62]||=c(`div`,{class:`questions-header`},`Вопросы дела`,-1),i(me,{mode:$.value,"onUpdate:mode":f[15]||=e=>$.value=e,newQuestionCode:X.value,"onUpdate:newQuestionCode":f[16]||=e=>X.value=e,newQuestionText:Z.value,"onUpdate:newQuestionText":f[17]||=e=>Z.value=e,newQuestionAnswer:Q.value,"onUpdate:newQuestionAnswer":f[18]||=e=>Q.value=e},{default:u(()=>[i(m(w),{justify:`end`},{default:u(()=>[i(m(y),{onClick:f[13]||=e=>Ue()},{default:u(()=>[...f[52]||=[d(`Отмена`,-1)]]),_:1}),i(m(y),{onClick:f[14]||=e=>He(),disabled:!X.value},{default:u(()=>[...f[53]||=[d(`Добавить вопрос`,-1)]]),_:1},8,[`disabled`])]),_:1})]),_:1},8,[`mode`,`newQuestionCode`,`newQuestionText`,`newQuestionAnswer`]),(l(!0),o(h,null,s(De.value,e=>(l(),n(me,{question:e,mode:e.mode,"onUpdate:mode":t=>e.mode=t,key:e.oldCode??e.code??``},{default:u(()=>[i(m(w),{justify:`end`},{default:u(()=>[i(m(y),{onClick:t=>Ke(e),type:`error`,ghost:``},{default:u(()=>[...f[54]||=[d(`Удалить`,-1)]]),_:1},8,[`onClick`]),i(m(y),{onClick:t=>Ge(e)},{default:u(()=>[...f[55]||=[d(`Отмена`,-1)]]),_:1},8,[`onClick`]),i(m(y),{onClick:t=>We(e),disabled:e.code==``},{default:u(()=>[...f[56]||=[d(`Сохранить`,-1)]]),_:1},8,[`onClick`,`disabled`])]),_:2},1024)]),_:2},1032,[`question`,`mode`,`onUpdate:mode`]))),128)),i(ne,{mode:Y.value,"onUpdate:mode":f[21]||=e=>Y.value=e,newPlaceCode:K.value,"onUpdate:newPlaceCode":f[22]||=e=>K.value=e,newPlaceName:q.value,"onUpdate:newPlaceName":f[23]||=e=>q.value=e,newPlaceText:J.value,"onUpdate:newPlaceText":f[24]||=e=>J.value=e},{default:u(()=>[i(m(w),{justify:`end`},{default:u(()=>[i(m(y),{onClick:f[19]||=e=>Le()},{default:u(()=>[...f[57]||=[d(`Отмена`,-1)]]),_:1}),i(m(y),{onClick:f[20]||=e=>Ie(),disabled:!K.value},{default:u(()=>[...f[58]||=[d(`Добавить точку`,-1)]]),_:1},8,[`disabled`])]),_:1})]),_:1},8,[`mode`,`newPlaceCode`,`newPlaceName`,`newPlaceText`]),(l(!0),o(h,null,s(we.value,e=>(l(),o(`div`,{key:e.oldCode??e.code??``,ref_for:!0,ref:t=>t?m(U).set(e,t):m(U).delete(e),class:`place-card`,tabindex:`-1`,role:`group`,"aria-label":`${e.code}: ${e.name}`},[i(ne,{place:e,mode:e.mode,"onUpdate:mode":t=>e.mode=t,onNavigate:Ee},{default:u(()=>[i(m(w),{justify:`end`},{default:u(()=>[i(m(y),{onClick:t=>Ve(e),type:`error`,ghost:``},{default:u(()=>[...f[59]||=[d(`Удалить`,-1)]]),_:1},8,[`onClick`]),i(m(y),{onClick:t=>ze(e)},{default:u(()=>[...f[60]||=[d(`Отмена`,-1)]]),_:1},8,[`onClick`]),i(m(y),{onClick:t=>Be(e),disabled:e.code==``},{default:u(()=>[...f[61]||=[d(`Сохранить`,-1)]]),_:1},8,[`onClick`,`disabled`])]),_:2},1024)]),_:2},1032,[`place`,`mode`,`onUpdate:mode`])],8,be))),128))])])],512),i(m(v),{show:O.value,"onUpdate:show":f[38]||=e=>O.value=e},{default:u(()=>[i(m(_),{style:{width:`600px`},title:`Настройки сценария`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":u(()=>[i(m(y),{onClick:f[25]||=e=>O.value=!1},{default:u(()=>[...f[63]||=[d(` x `,-1)]]),_:1})]),footer:u(()=>[...f[87]||=[]]),default:u(()=>[i(m(C),{vertical:``},{default:u(()=>[f[76]||=c(`p`,null,`Название`,-1),i(m(S),{value:P.value.name,"onUpdate:value":f[26]||=e=>P.value.name=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`]),f[77]||=c(`p`,{class:`settings-header`},`Описание`,-1),i(m(S),{value:P.value.description,"onUpdate:value":f[27]||=e=>P.value.description=e,type:`textarea`,placeholder:`Убийство пастуха...`},null,8,[`value`]),f[78]||=c(`p`,{class:`settings-header`},`Картинка`,-1),i(m(S),{value:P.value.image,"onUpdate:value":f[28]||=e=>P.value.image=e,type:`text`,placeholder:`default_scenario.png`,disabled:``},null,8,[`value`]),i(m(b),{"directory-dnd":``,max:1,"file-list":N.value,"onUpdate:fileList":f[29]||=e=>N.value=e},{default:u(()=>[i(m(ee),null,{default:u(()=>[i(m(T),{style:{"font-size":`16px`}},{default:u(()=>[...f[64]||=[d(` Щелкните или перетащите файл в эту область для загрузки `,-1)]]),_:1})]),_:1})]),_:1},8,[`file-list`]),i(m(y),{onClick:f[30]||=e=>Ne(),ghost:``},{default:u(()=>[...f[65]||=[d(` Сохранить изменения `,-1)]]),_:1}),f[79]||=c(`hr`,{class:`settings-hr`},null,-1),f[80]||=c(`p`,{class:`settings-header`},`Архив сценария`,-1),f[81]||=c(`p`,{class:`settings-hint`},` Скачайте сценарий ZIP-архивом (scenario.json + изображения) и импортируйте его в другом аккаунте. `,-1),i(m(y),{loading:j.value,disabled:!P.value.ID,ghost:``,onClick:f[31]||=e=>Me()},{default:u(()=>[...f[66]||=[d(` Скачать архив (.zip) `,-1)]]),_:1},8,[`loading`,`disabled`]),f[82]||=c(`hr`,{class:`settings-hr`},null,-1),f[83]||=c(`p`,null,`Создать тестовую игру`,-1),i(m(y),{onClick:f[32]||=e=>Ae(P.value.name||``,P.value.ID),ghost:``},{default:u(()=>[...f[67]||=[d(` Создать игру `,-1)]]),_:1}),f[84]||=c(`hr`,{class:`settings-hr`},null,-1),f[85]||=c(`p`,null,`Публикация`,-1),c(`p`,null,[P.value.status==`public`?(l(),n(m(re),{key:0,bordered:!1,type:`success`,class:`status-block`},{default:u(()=>[...f[68]||=[d(` Опубликовано `,-1)]]),_:1})):t(``,!0),P.value.status==`draft`?(l(),n(m(re),{key:1,bordered:!1,type:`warning`,class:`status-block`},{default:u(()=>[...f[69]||=[d(` В разработке `,-1)]]),_:1})):t(``,!0)]),c(`p`,null,[f[70]||=d(` Введите название сценария `,-1),i(m(T),{class:`name-text`,strong:``},{default:u(()=>[d(r(P.value.name),1)]),_:1})]),i(m(S),{value:k.value,"onUpdate:value":f[33]||=e=>k.value=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`]),P.value.status==`public`?t(``,!0):(l(),n(m(y),{key:0,onClick:f[34]||=e=>ke(P.value.ID),ghost:``,disabled:k.value!=P.value.name},{default:u(()=>[...f[71]||=[d(` Опубликовать сценарий `,-1)]]),_:1},8,[`disabled`])),P.value.status==`draft`?t(``,!0):(l(),n(m(y),{key:1,onClick:f[35]||=e=>je(P.value.ID),ghost:``,disabled:k.value!=P.value.name},{default:u(()=>[...f[72]||=[d(` Снять сценарий с публикации `,-1)]]),_:1},8,[`disabled`])),f[86]||=c(`hr`,{class:`settings-hr`},null,-1),c(`p`,null,[f[73]||=d(` Введите название сценария `,-1),i(m(T),{class:`name-text`,strong:``},{default:u(()=>[d(r(P.value.name),1)]),_:1}),f[74]||=d(` чтобы удалить его `,-1)]),i(m(S),{value:A.value,"onUpdate:value":f[36]||=e=>A.value=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`]),i(m(y),{onClick:f[37]||=e=>Oe(P.value.ID),type:`error`,ghost:``,disabled:A.value!=P.value.name},{default:u(()=>[...f[75]||=[d(` Удалить сценарий `,-1)]]),_:1},8,[`disabled`])]),_:1})]),_:1})]),_:1},8,[`show`]),i(ue,{active:`scenarios`})],64))}}),[[`__scopeId`,`data-v-f8a6b8da`]]),L=a({__name:`ScenariosEditorView`,setup(e){return(e,t)=>(l(),n(I))}});export{L as default}; \ No newline at end of file diff --git a/frontend/dist/assets/ScenariosView-BY33aKCt.js b/frontend/dist/assets/ScenariosView-BY33aKCt.js deleted file mode 100644 index 1656f39..0000000 --- a/frontend/dist/assets/ScenariosView-BY33aKCt.js +++ /dev/null @@ -1 +0,0 @@ -import{D as e,E as t,Ht as n,M as r,N as i,O as a,Q as o,T as s,Vt as c,X as l,ct as u,j as d,u as f,wt as p,y as m,yt as h}from"./client-CT8bsOZT.js";import{t as g}from"./Card-BX9nnwGC.js";import{t as _}from"./Modal-a8TxC5Fw.js";import{t as v}from"./Button-D8HO8D_D.js";import{n as y,t as b}from"./Upload-DWDjLEkv.js";import{t as x}from"./Input-B3ERgh42.js";import{t as S}from"./Tag-wKk--N0F.js";import{n as C,r as w,t as T}from"./es-BS8VS4O3.js";import{t as E}from"./Flex-LW-PCNxv.js";import{t as D}from"./text-CQ4PuMIN.js";import{t as O}from"./HeaderMenu--hCKWQY2.js";import{t as k}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as A}from"./binary_client-C7IqFUIC.js";var j={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},M=i({name:`Archive`,render:function(e,t){return l(),a(`svg`,j,t[0]||=[s(`path`,{d:`M14 19h4v2h-4z`,fill:`currentColor`},null,-1),s(`path`,{d:`M6 2v26a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V2zm18 26H8V16h16zm0-14H8v-4h16zM8 8V4h16v4z`,fill:`currentColor`},null,-1)])}}),N={class:`center-block-custom`},P={class:`width1200 display-table catalog-grid`},F={class:`scenario-image-block scenario-image-plus import-icon`},I=[`onClick`],L={class:`scenario-content-block`},R={class:`scenario-title`},z={class:`scenario-label`},B=k(i({__name:`ScenariosPage`,setup(i){let k=C(),j=A(),B=h([]),V=f(),H=w(),U=h(!1),W=h(``),G=h(!1),K=h([]),q=h(!1);async function J(){try{B.value=[];let e=await k.GetMyScenarios({});B.value=e.scenarios}catch(e){H.error(e instanceof Error?e.message:`Не удалось загрузить сценарии`)}}async function Y(e){try{await X((await k.AddScenario({name:e})).ID)}catch(e){H.error(e instanceof Error?e.message:`Не удалось создать сценарий`)}}async function X(e){V.push(`/scenarios/`+e+`/editor`)}function Z(){K.value=[],G.value=!1}async function Q(){let e=K.value[0]?.file;if(e){q.value=!0;try{let t=await j.uploadScenarioArchive(e);H.success(`Сценарий импортирован из архива`),Z(),await X(t.ID)}catch(e){H.error(e instanceof Error?e.message:`Не удалось импортировать архив`)}finally{q.value=!1}}}return J(),(i,f)=>(l(),a(m,null,[s(`div`,N,[s(`div`,P,[s(`div`,{class:`scenario-block`,onClick:f[0]||=e=>U.value=!0},[...f[11]||=[s(`div`,{class:`scenario-image-block scenario-image-plus`},`+`,-1),s(`div`,{class:`scenario-content-block`},[s(`p`,{class:`scenario-title`},`Создать новый сценарий`)],-1)]]),s(`div`,{class:`scenario-block`,onClick:f[1]||=e=>G.value=!0},[s(`div`,F,[r(p(T),null,{default:u(()=>[r(p(M))]),_:1})]),f[12]||=s(`div`,{class:`scenario-content-block`},[s(`p`,{class:`scenario-title`},`Импортировать из архива`)],-1)]),(l(!0),a(m,null,o(B.value,r=>(l(),a(`div`,{class:`scenario-block`,onClick:e=>X(r.ID),key:r.ID},[s(`div`,{class:`scenario-image-block scenario-image`,style:c({backgroundImage:`url(${r.image})`})},null,4),s(`div`,L,[s(`p`,R,n(r.name),1),s(`p`,z,[r.status==`public`?(l(),t(p(S),{key:0,bordered:!1,type:`success`,class:`status-block`},{default:u(()=>[...f[13]||=[d(`Опубликовано`,-1)]]),_:1})):e(``,!0),r.status==`draft`?(l(),t(p(S),{key:1,bordered:!1,type:`warning`,class:`status-block`},{default:u(()=>[...f[14]||=[d(`В разработке`,-1)]]),_:1})):e(``,!0)])])],8,I))),128))])]),r(p(_),{show:U.value,"onUpdate:show":f[5]||=e=>U.value=e},{default:u(()=>[r(p(g),{style:{width:`600px`},title:`Создание сценария`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":u(()=>[r(p(v),{onClick:f[2]||=e=>U.value=!1},{default:u(()=>[...f[15]||=[d(` x `,-1)]]),_:1})]),footer:u(()=>[r(p(E),{justify:`end`},{default:u(()=>[r(p(v),{onClick:f[4]||=e=>Y(W.value),disabled:W.value.length==0},{default:u(()=>[...f[16]||=[d(` Создать `,-1)]]),_:1},8,[`disabled`])]),_:1})]),default:u(()=>[r(p(x),{value:W.value,"onUpdate:value":f[3]||=e=>W.value=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`])]),_:1})]),_:1},8,[`show`]),r(p(_),{show:G.value,"onUpdate:show":f[10]||=e=>G.value=e},{default:u(()=>[r(p(g),{style:{width:`600px`},title:`Импорт сценария из архива`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":u(()=>[r(p(v),{onClick:f[6]||=e=>Z()},{default:u(()=>[...f[17]||=[d(` x `,-1)]]),_:1})]),footer:u(()=>[r(p(E),{justify:`end`},{default:u(()=>[r(p(v),{onClick:f[8]||=e=>Z()},{default:u(()=>[...f[19]||=[d(`Отмена`,-1)]]),_:1}),r(p(v),{type:`primary`,loading:q.value,disabled:K.value.length==0,onClick:f[9]||=e=>Q()},{default:u(()=>[...f[20]||=[d(` Импортировать `,-1)]]),_:1},8,[`loading`,`disabled`])]),_:1})]),default:u(()=>[f[21]||=s(`p`,{class:`import-hint`},` Выберите ZIP-архив сценария (файл scenario.json + папка images). Архив можно получить через «Скачать архив» в настройках сценария. `,-1),r(p(b),{max:1,"file-list":K.value,"onUpdate:fileList":f[7]||=e=>K.value=e,accept:`.zip,application/zip,application/x-zip-compressed,application/octet-stream`},{default:u(()=>[r(p(y),null,{default:u(()=>[r(p(D),{style:{"font-size":`16px`}},{default:u(()=>[...f[18]||=[d(` Щелкните или перетащите ZIP-архив в эту область `,-1)]]),_:1})]),_:1})]),_:1},8,[`file-list`])]),_:1})]),_:1},8,[`show`]),r(O,{active:`scenarios`})],64))}}),[[`__scopeId`,`data-v-05f24200`]]),V=i({__name:`ScenariosView`,setup(e){return(e,n)=>(l(),t(B))}});export{V as default}; \ No newline at end of file diff --git a/frontend/dist/assets/ScreenView-DjL9TWbI.js b/frontend/dist/assets/ScreenView-DjL9TWbI.js deleted file mode 100644 index 315f58b..0000000 --- a/frontend/dist/assets/ScreenView-DjL9TWbI.js +++ /dev/null @@ -1 +0,0 @@ -import{D as e,E as t,H as n,Ht as r,J as i,M as a,N as o,O as s,Q as c,T as l,Vt as ee,X as u,ct as d,j as f,l as te,lt as p,ot as ne,q as re,t as ie,w as m,wt as h,y as g,yt as _}from"./client-CT8bsOZT.js";import{t as ae}from"./Card-BX9nnwGC.js";import{t as v}from"./Button-D8HO8D_D.js";import{t as oe}from"./Select-CqnQA6h4.js";import{n as se,r as ce}from"./es-BS8VS4O3.js";import{t as le}from"./QrCode-VQE44Zo-.js";import{tt as y}from"./index-oex1uI7H.js";import{t as ue}from"./HeaderMenu--hCKWQY2.js";import{t as b}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{r as x}from"./application-DrhMrvIJ.js";import{t as de}from"./useSimplePolling-yv2K0bkR.js";import{t as fe}from"./datetime-BJNH0M1T.js";var pe={key:0,class:`screen-center`},me={key:1,class:`screen-page`},he={key:0,class:`screen-center`},ge={key:0,class:`screen-center`},_e={key:0,class:`screen-qr`},ve={key:0,class:`media-error`},ye={key:1,class:`screen-media`},be=[`src`,`muted`],xe={key:2,class:`conclusion-screen`},Se=[`src`,`muted`],Ce={key:3,class:`screen-message`},we={key:4,class:`screen-message`},Te={key:5,class:`screen-message`},Ee={key:6,class:`screen-message`},De={key:7,class:`timer-screen`},Oe={class:`timer-label`},ke={class:`timer-value`},Ae={key:9,class:`screen-cover`},je=[`src`],Me={key:1,class:`cover-controls`},S=`evening-detective-screen-session`,C=b(o({__name:`ScreenPage`,setup(o){let b=ie(),C=se(),w=ce(),T=te(),E=_(``),D=_(``),O=_(),k=_([]),A=_([]),j=_(),M,N=!1,P=_([]),F=_(null),I=_(!1),L=_(``),R=_(!0),z=_(!1),B=_(!1),V=_(Date.now()),H=_(0),U=_(Date.now()),W=_(),G=_(!1),K=_(),q=_(),J=0,Y=null,X=m(()=>!!(T.query.screenID&&T.query.accessToken)),Z=m(()=>{if(!E.value||!D.value)return``;let e=new URL(`/screen`,window.location.origin);return e.searchParams.set(`screenId`,E.value),e.searchParams.set(`accessToken`,D.value),e.toString()}),Ne=m(()=>P.value.map(e=>({label:`${fe(e.startAt).split(`,`)[0]||`дата не указана`} — ${e.name||`Игра ${e.ID}`}`,value:e.ID}))),Q=m(()=>O.value?.mode||`SCREEN_MODE_COVER`),Pe=m(()=>O.value?.timerState===`SCREEN_TIMER_STATE_RUNNING`?Math.max(0,H.value-(V.value-U.value)/1e3):H.value),Fe=m(()=>{let e=Math.floor(Pe.value/60),t=Math.floor(Pe.value%60);return`${String(e).padStart(2,`0`)}:${String(t).padStart(2,`0`)}`}),Ie=m(()=>x(O.value?.introAudio)),Le=m(()=>x(O.value?.conclusionVideo)),Re=m(()=>{let e=O.value?.backgroundImage||O.value?.coverImage;return e?{backgroundImage:`linear-gradient(rgb(0 0 0 / 55%), rgb(0 0 0 / 55%)), url("${e}")`}:{}});function ze(){sessionStorage.setItem(S,JSON.stringify({screenID:E.value,accessToken:D.value}))}function Be(e){let t=Math.max(0,Number(e?.timerRemainingSeconds||0));if(e?.timerState===`SCREEN_TIMER_STATE_RUNNING`&&W.value===e.timerState){let e=Math.max(0,H.value-(Date.now()-U.value)/1e3);if(Math.abs(t-e)<=.5)return}H.value=t,U.value=Date.now(),W.value=e?.timerState}function Ve(){try{let e=JSON.parse(sessionStorage.getItem(S)||`{}`);E.value=e.screenId||``,D.value=e.accessToken||``}catch{sessionStorage.removeItem(S)}}async function He(){let e=await b.CreateScreenSession({});if(!e.screenID||!e.accessToken)throw Error(`Не удалось создать сессию экрана`);E.value=e.screenID,D.value=e.accessToken,ze()}async function $(e=!0){if(!(!E.value||!D.value))try{let e=await b.GetScreenState({screenID:E.value,accessToken:D.value});O.value=e.state,Be(O.value),O.value?.gameID&&O.value.mode===`SCREEN_MODE_RESULTS`&&await Ue()}catch(t){if(e&&t instanceof Error&&t.message===`unauthorized`){sessionStorage.removeItem(S),E.value=``,D.value=``,await He(),await $(!1);return}w.error(t instanceof Error?t.message:`Не удалось получить состояние экрана`)}}async function Ue(){if(!E.value||!D.value)return;let e=await b.GetScreenResults({screenID:E.value,accessToken:D.value});if(A.value=e.questions||[],k.value=e.teams||[],!N){N=!0,await n();let e=j.value;e&&(e.scrollTop=e.scrollHeight,M=window.setInterval(()=>{e.scrollTop=Math.max(0,e.scrollTop-32),e.scrollTop===0&&M!=null&&(window.clearInterval(M),M=void 0)},1e3))}}async function We(){try{let e=await C.GetGames({});P.value=e.games||[]}catch(e){w.error(e instanceof Error?e.message:`Не удалось загрузить игры`)}}de(()=>{G.value&&$()},1e3),ne(O,async e=>{if(!e||!e.command||e.stateVersion===J)return;J=e.stateVersion||0,await n();let t=Q.value===`SCREEN_MODE_CONCLUSION`?q.value:K.value;t&&(t.currentTime=(e.positionMs||0)/1e3,t.volume=Math.max(0,Math.min(1,(e.volume??100)/100)),e.command!==`SCREEN_COMMAND_SEEK`&&e.command!==`SCREEN_COMMAND_VOLUME`&&(e.command===`SCREEN_COMMAND_PLAY`||e.command===`SCREEN_COMMAND_RESUME`||e.command===`SCREEN_COMMAND_REPLAY`?(e.command===`SCREEN_COMMAND_REPLAY`&&(t.currentTime=0),t.play().catch(()=>{L.value=`Браузер заблокировал воспроизведение. Нажмите «Подготовить экран» на этом устройстве.`})):(e.command===`SCREEN_COMMAND_PAUSE`||e.command===`SCREEN_COMMAND_STOP`)&&t.pause()))});async function Ge(){if(!(!F.value||!T.query.screenID||!T.query.accessToken)){z.value=!0;try{await C.BindScreen({screenID:String(T.query.screenID),accessToken:String(T.query.accessToken),gameID:F.value}),B.value=!0}catch(e){w.error(e instanceof Error?e.message:`Не удалось привязать экран`)}finally{z.value=!1}}}async function Ke(){try{await document.documentElement.requestFullscreen?.()}catch{w.warning(`Полноэкранный режим недоступен в этом браузере`)}I.value=!0,await n();for(let e of[K.value,q.value])if(e){e.muted=!0;try{await e.play(),e.pause(),e.currentTime=0,e.muted=!O.value?.soundEnabled}catch{L.value=`Браузер не разрешил подготовить воспроизведение на этом устройстве.`}}}return re(async()=>{if(X.value){await We(),R.value=!1;return}Ve();try{(!E.value||!D.value)&&await He(),await $(),G.value=!0,Y=window.setInterval(()=>{V.value=Date.now()},250)}catch(e){w.error(e instanceof Error?e.message:`Не удалось подготовить экран`)}finally{R.value=!1}}),i(()=>{Y!=null&&window.clearInterval(Y),M!=null&&window.clearInterval(M)}),(n,i)=>(u(),s(g,null,[X.value?(u(),s(`div`,pe,[a(h(ae),{class:`binding-card`,title:`Привязка экрана`},{default:d(()=>[B.value?(u(),s(g,{key:0},[i[1]||=l(`p`,null,`Экран привязан к игре.`,-1),i[2]||=l(`p`,null,`Можно закрыть эту страницу.`,-1)],64)):(u(),s(g,{key:1},[i[4]||=l(`p`,null,`Выберите игру, к которой привязать экран.`,-1),a(h(oe),{value:F.value,"onUpdate:value":i[0]||=e=>F.value=e,options:Ne.value,placeholder:`Игра`},null,8,[`value`,`options`]),a(h(v),{type:`primary`,loading:z.value,disabled:F.value==null,onClick:Ge},{default:d(()=>[...i[3]||=[f(` Привязать `,-1)]]),_:1},8,[`loading`,`disabled`])],64))]),_:1})])):(u(),s(`div`,me,[R.value?(u(),s(`div`,he,`Подготовка экрана…`)):(u(),s(g,{key:1},[O.value?.gameID?(u(),s(`div`,{key:1,class:`screen-content`,style:ee(Re.value)},[L.value?(u(),s(`p`,ve,r(L.value),1)):e(``,!0),O.value.introAudio?p((u(),s(`div`,ye,[l(`audio`,{ref_key:`introAudioElement`,ref:K,src:Ie.value,muted:!O.value.soundEnabled,controls:``},null,8,be)],512)),[[y,Q.value===`SCREEN_MODE_INTRO`]]):e(``,!0),O.value.conclusionVideo?p((u(),s(`div`,xe,[l(`video`,{ref_key:`conclusionVideoElement`,ref:q,src:Le.value,muted:!O.value.soundEnabled,playsinline:``},null,8,Se)],512)),[[y,Q.value===`SCREEN_MODE_CONCLUSION`]]):e(``,!0),Q.value===`SCREEN_MODE_CONCLUSION`&&!O.value.conclusionVideo?(u(),s(`div`,Ce,`Видео закрывашки не задано`)):e(``,!0),Q.value===`SCREEN_MODE_INTRO_DONE`?(u(),s(`div`,we,`Успехов`)):e(``,!0),Q.value===`SCREEN_MODE_CONCLUSION_DONE`?(u(),s(`div`,Te,`Спасибо за игру!`)):e(``,!0),Q.value===`SCREEN_MODE_TEXT`?(u(),s(`div`,Ee,r(O.value.text),1)):e(``,!0),Q.value===`SCREEN_MODE_TIMER`?(u(),s(`div`,De,[l(`h1`,Oe,r(O.value.timerLabel||`Перерыв`),1),l(`div`,ke,r(Fe.value),1)])):e(``,!0),Q.value===`SCREEN_MODE_RESULTS`?(u(),s(`div`,{key:8,ref_key:`resultsContainer`,ref:j,class:`results-screen`},[i[11]||=l(`h1`,null,`Результаты`,-1),l(`table`,null,[l(`thead`,null,[l(`tr`,null,[i[7]||=l(`th`,null,`Место`,-1),i[8]||=l(`th`,null,`Команда`,-1),(u(!0),s(g,null,c(A.value,e=>(u(),s(`th`,{key:e.code},r(e.code),1))),128)),i[9]||=l(`th`,null,`Сумма`,-1),i[10]||=l(`th`,null,`Ходы`,-1)])]),l(`tbody`,null,[(u(!0),s(g,null,c(k.value,e=>(u(),s(`tr`,{key:e.team?.ID},[l(`td`,null,r(e.place),1),l(`td`,null,r(e.team?.name),1),(u(!0),s(g,null,c(A.value,t=>(u(),s(`td`,{key:t.code},r(e.answers?.find(e=>e.questionCode===t.code)?.score??0),1))),128)),l(`td`,null,r(e.totalScore),1),l(`td`,null,r(e.actionsCount),1)]))),128))])])],512)):e(``,!0),Q.value===`SCREEN_MODE_COVER`?(u(),s(`div`,Ae,[O.value.coverImage?(u(),s(`img`,{key:0,src:O.value.coverImage,class:`cover-image`,alt:`Обложка дела`},null,8,je)):e(``,!0),I.value?e(``,!0):(u(),s(`div`,Me,[a(h(v),{type:`primary`,onClick:Ke},{default:d(()=>[...i[12]||=[f(`Подготовить экран`,-1)]]),_:1})]))])):e(``,!0)],4)):(u(),s(`div`,ge,[a(h(ae),{class:`qr-card`,title:`Подключение экрана`},{default:d(()=>[Z.value?(u(),s(`div`,_e,[a(h(le),{value:Z.value,size:260,padding:0},null,8,[`value`])])):e(``,!0),i[6]||=l(`p`,null,`Отсканируйте QR телефоном организатора и выберите игру.`,-1),I.value?e(``,!0):(u(),t(h(v),{key:1,type:`primary`,onClick:Ke},{default:d(()=>[...i[5]||=[f(`Подготовить экран`,-1)]]),_:1}))]),_:1})]))],64))])),X.value?(u(),t(ue,{key:2,active:`games`})):e(``,!0)],64))}}),[[`__scopeId`,`data-v-c2081c29`]]),w=o({__name:`ScreenView`,setup(e){return(e,n)=>(u(),t(C))}});export{w as default}; \ No newline at end of file diff --git a/frontend/dist/assets/Select-CqnQA6h4.js b/frontend/dist/assets/Select-CqnQA6h4.js deleted file mode 100644 index 4592c9e..0000000 --- a/frontend/dist/assets/Select-CqnQA6h4.js +++ /dev/null @@ -1,210 +0,0 @@ -import{$ as e,H as t,I as n,N as r,St as i,lt as a,ot as o,q as s,st as c,w as l,y as u,yt as d}from"./client-CT8bsOZT.js";import{F as f,G as p,H as m,K as h,M as g,N as _,V as v,W as y,o as b,q as x,r as S}from"./light-DhgSQSdG.js";import{a as C,i as w,n as T,o as E,r as D,t as O}from"./Follower-Bm7xH84Z.js";import{a as k,c as ee,i as A,n as te,o as ne,r as j,t as M,u as N}from"./utils-COJuPdUX.js";import{f as re,o as P}from"./Card-BX9nnwGC.js";import{r as ie}from"./css-DEmdllcC.js";import{o as F,t as I}from"./fade-in-scale-up.cssr-DOaveAHn.js";import{t as L}from"./use-merged-state-CRia4_FA.js";import{t as R}from"./use-compitable-DR1_4TS5.js";import{t as z}from"./Popover-D_PD8cLD.js";import{r as ae}from"./keep-tsznRFn-.js";import{n as oe,r as B}from"./use-form-item-CBXe24ar.js";import{r as se,t as V}from"./Suffix-BVApm8eE.js";import{t as H}from"./Tag-wKk--N0F.js";import{D as U,Q as W,Y as ce,q as G,tt as K,y as le}from"./index-oex1uI7H.js";var q=`v-hidden`,ue=T(`[v-hidden]`,{display:`none!important`}),J=r({name:`Overflow`,props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:t}){let n=d(null),r=d(null);function i(i){let{value:a}=n,{getCounter:o,getTail:s}=e,c;if(c=o===void 0?r.value:o(),!a||!c)return;c.hasAttribute(q)&&c.removeAttribute(q);let{children:l}=a;if(i.showAllItemsBeforeCalculate)for(let e of l)e.hasAttribute(q)&&e.removeAttribute(q);let u=a.offsetWidth,d=[],f=t.tail?s?.():null,p=f?f.offsetWidth:0,m=!1,h=a.children.length-+!!t.tail;for(let t=0;tu){let{updateCounter:n}=e;for(let r=t;r>=0;--r){let i=h-1-r;n===void 0?c.textContent=`${i}`:n(i);let a=c.offsetWidth;if(p-=d[r],p+a<=u||r===0){m=!0,t=r-1,f&&(t===-1?(f.style.maxWidth=`${u-a}px`,f.style.boxSizing=`border-box`):f.style.maxWidth=``);let{onUpdateCount:n}=e;n&&n(i);break}}}}let{onUpdateOverflow:g}=e;m?g!==void 0&&g(!0):(g!==void 0&&g(!1),c.setAttribute(q,``))}let a=f();return ue.mount({id:`vueuc/overflow`,head:!0,anchorMetaName:D,ssr:a}),s(()=>i({showAllItemsBeforeCalculate:!1})),{selfRef:n,counterRef:r,sync:i}},render(){let{$slots:r}=this;return t(()=>this.sync({showAllItemsBeforeCalculate:!1})),n(`div`,{class:`v-overflow`,ref:`selfRef`},[e(r,`default`),r.counter?r.counter():n(`span`,{style:{display:`inline-block`},ref:`counterRef`}),r.tail?r.tail():null])}});function Y(e){switch(typeof e){case`string`:return e||void 0;case`number`:return String(e);default:return}}var de=v([m(`base-selection`,` - --n-padding-single: var(--n-padding-single-top) var(--n-padding-single-right) var(--n-padding-single-bottom) var(--n-padding-single-left); - --n-padding-multiple: var(--n-padding-multiple-top) var(--n-padding-multiple-right) var(--n-padding-multiple-bottom) var(--n-padding-multiple-left); - position: relative; - z-index: auto; - box-shadow: none; - width: 100%; - max-width: 100%; - display: inline-block; - vertical-align: bottom; - border-radius: var(--n-border-radius); - min-height: var(--n-height); - line-height: 1.5; - font-size: var(--n-font-size); - `,[m(`base-loading`,` - color: var(--n-loading-color); - `),m(`base-selection-tags`,`min-height: var(--n-height);`),y(`border, state-border`,` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - pointer-events: none; - border: var(--n-border); - border-radius: inherit; - transition: - box-shadow .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `),y(`state-border`,` - z-index: 1; - border-color: #0000; - `),m(`base-suffix`,` - cursor: pointer; - position: absolute; - top: 50%; - transform: translateY(-50%); - right: 10px; - `,[y(`arrow`,` - font-size: var(--n-arrow-size); - color: var(--n-arrow-color); - transition: color .3s var(--n-bezier); - `)]),m(`base-selection-overlay`,` - display: flex; - align-items: center; - white-space: nowrap; - pointer-events: none; - position: absolute; - top: 0; - right: 0; - bottom: 0; - left: 0; - padding: var(--n-padding-single); - transition: color .3s var(--n-bezier); - `,[y(`wrapper`,` - flex-basis: 0; - flex-grow: 1; - overflow: hidden; - text-overflow: ellipsis; - `)]),m(`base-selection-placeholder`,` - color: var(--n-placeholder-color); - `,[y(`inner`,` - max-width: 100%; - overflow: hidden; - `)]),m(`base-selection-tags`,` - cursor: pointer; - outline: none; - box-sizing: border-box; - position: relative; - z-index: auto; - display: flex; - padding: var(--n-padding-multiple); - flex-wrap: wrap; - align-items: center; - width: 100%; - vertical-align: bottom; - background-color: var(--n-color); - border-radius: inherit; - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `),m(`base-selection-label`,` - height: var(--n-height); - display: inline-flex; - width: 100%; - vertical-align: bottom; - cursor: pointer; - outline: none; - z-index: auto; - box-sizing: border-box; - position: relative; - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier); - border-radius: inherit; - background-color: var(--n-color); - align-items: center; - `,[m(`base-selection-input`,` - font-size: inherit; - line-height: inherit; - outline: none; - cursor: pointer; - box-sizing: border-box; - border:none; - width: 100%; - padding: var(--n-padding-single); - background-color: #0000; - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - caret-color: var(--n-caret-color); - `,[y(`content`,` - text-overflow: ellipsis; - overflow: hidden; - white-space: nowrap; - `)]),y(`render-label`,` - color: var(--n-text-color); - `)]),h(`disabled`,[v(`&:hover`,[y(`state-border`,` - box-shadow: var(--n-box-shadow-hover); - border: var(--n-border-hover); - `)]),p(`focus`,[y(`state-border`,` - box-shadow: var(--n-box-shadow-focus); - border: var(--n-border-focus); - `)]),p(`active`,[y(`state-border`,` - box-shadow: var(--n-box-shadow-active); - border: var(--n-border-active); - `),m(`base-selection-label`,`background-color: var(--n-color-active);`),m(`base-selection-tags`,`background-color: var(--n-color-active);`)])]),p(`disabled`,`cursor: not-allowed;`,[y(`arrow`,` - color: var(--n-arrow-color-disabled); - `),m(`base-selection-label`,` - cursor: not-allowed; - background-color: var(--n-color-disabled); - `,[m(`base-selection-input`,` - cursor: not-allowed; - color: var(--n-text-color-disabled); - `),y(`render-label`,` - color: var(--n-text-color-disabled); - `)]),m(`base-selection-tags`,` - cursor: not-allowed; - background-color: var(--n-color-disabled); - `),m(`base-selection-placeholder`,` - cursor: not-allowed; - color: var(--n-placeholder-color-disabled); - `)]),m(`base-selection-input-tag`,` - height: calc(var(--n-height) - 6px); - line-height: calc(var(--n-height) - 6px); - outline: none; - display: none; - position: relative; - margin-bottom: 3px; - max-width: 100%; - vertical-align: bottom; - `,[y(`input`,` - font-size: inherit; - font-family: inherit; - min-width: 1px; - padding: 0; - background-color: #0000; - outline: none; - border: none; - max-width: 100%; - overflow: hidden; - width: 1em; - line-height: inherit; - cursor: pointer; - color: var(--n-text-color); - caret-color: var(--n-caret-color); - `),y(`mirror`,` - position: absolute; - left: 0; - top: 0; - white-space: pre; - visibility: hidden; - user-select: none; - -webkit-user-select: none; - opacity: 0; - `)]),[`warning`,`error`].map(e=>p(`${e}-status`,[y(`state-border`,`border: var(--n-border-${e});`),h(`disabled`,[v(`&:hover`,[y(`state-border`,` - box-shadow: var(--n-box-shadow-hover-${e}); - border: var(--n-border-hover-${e}); - `)]),p(`active`,[y(`state-border`,` - box-shadow: var(--n-box-shadow-active-${e}); - border: var(--n-border-active-${e}); - `),m(`base-selection-label`,`background-color: var(--n-color-active-${e});`),m(`base-selection-tags`,`background-color: var(--n-color-active-${e});`)]),p(`focus`,[y(`state-border`,` - box-shadow: var(--n-box-shadow-focus-${e}); - border: var(--n-border-focus-${e}); - `)])])]))]),m(`base-selection-popover`,` - margin-bottom: -3px; - display: flex; - flex-wrap: wrap; - margin-right: -8px; - `),m(`base-selection-tag-wrapper`,` - max-width: 100%; - display: inline-flex; - padding: 0 7px 3px 0; - `,[v(`&:last-child`,`padding-right: 0;`),m(`tag`,` - font-size: 14px; - max-width: 100%; - `,[y(`content`,` - line-height: 1.25; - text-overflow: ellipsis; - overflow: hidden; - `)])])]),fe=r({name:`InternalSelection`,props:Object.assign(Object.assign({},S.props),{clsPrefix:{type:String,required:!0},bordered:{type:Boolean,default:void 0},active:Boolean,pattern:{type:String,default:``},placeholder:String,selectedOption:{type:Object,default:null},selectedOptions:{type:Array,default:null},labelField:{type:String,default:`label`},valueField:{type:String,default:`value`},multiple:Boolean,filterable:Boolean,clearable:Boolean,disabled:Boolean,size:{type:String,default:`medium`},loading:Boolean,autofocus:Boolean,showArrow:{type:Boolean,default:!0},inputProps:Object,focused:Boolean,renderTag:Function,onKeydown:Function,onClick:Function,onBlur:Function,onFocus:Function,onDeleteOption:Function,maxTagCount:[String,Number],ellipsisTagPopoverProps:Object,onClear:Function,onPatternInput:Function,onPatternFocus:Function,onPatternBlur:Function,renderLabel:Function,status:String,inlineThemeDisabled:Boolean,ignoreComposition:{type:Boolean,default:!0},onResize:Function}),setup(e){let{mergedClsPrefixRef:n,mergedRtlRef:r}=_(e),a=b(`InternalSelection`,r,n),u=d(null),f=d(null),p=d(null),m=d(null),h=d(null),v=d(null),y=d(null),C=d(null),w=d(null),T=d(null),E=d(!1),D=d(!1),O=d(!1),k=S(`InternalSelection`,`-internal-selection`,de,U,e,i(e,`clsPrefix`)),A=l(()=>e.clearable&&!e.disabled&&(O.value||e.active)),te=l(()=>e.selectedOption?e.renderTag?e.renderTag({option:e.selectedOption,handleClose:()=>{}}):e.renderLabel?e.renderLabel(e.selectedOption,!0):G(e.selectedOption[e.labelField],e.selectedOption,!0):e.placeholder),ne=l(()=>{let t=e.selectedOption;if(t)return t[e.labelField]}),j=l(()=>e.multiple?!!(Array.isArray(e.selectedOptions)&&e.selectedOptions.length):e.selectedOption!==null);function M(){var t;let{value:n}=u;if(n){let{value:r}=f;r&&(r.style.width=`${n.offsetWidth}px`,e.maxTagCount!==`responsive`&&((t=w.value)==null||t.sync({showAllItemsBeforeCalculate:!1})))}}function N(){let{value:e}=T;e&&(e.style.display=`none`)}function re(){let{value:e}=T;e&&(e.style.display=`inline-block`)}o(i(e,`active`),e=>{e||N()}),o(i(e,`pattern`),()=>{e.multiple&&t(M)});function P(t){let{onFocus:n}=e;n&&n(t)}function F(t){let{onBlur:n}=e;n&&n(t)}function I(t){let{onDeleteOption:n}=e;n&&n(t)}function L(t){let{onClear:n}=e;n&&n(t)}function R(t){let{onPatternInput:n}=e;n&&n(t)}function z(e){(!e.relatedTarget||!p.value?.contains(e.relatedTarget))&&P(e)}function ae(e){p.value?.contains(e.relatedTarget)||F(e)}function oe(e){L(e)}function B(){O.value=!0}function se(){O.value=!1}function V(t){!e.active||!e.filterable||t.target!==f.value&&t.preventDefault()}function H(e){I(e)}let W=d(!1);function ce(t){if(t.key===`Backspace`&&!W.value&&!e.pattern.length){let{selectedOptions:t}=e;t?.length&&H(t[t.length-1])}}let K=null;function le(t){let{value:n}=u;n&&(n.textContent=t.target.value,M()),e.ignoreComposition&&W.value?K=t:R(t)}function q(){W.value=!0}function ue(){W.value=!1,e.ignoreComposition&&R(K),K=null}function J(t){var n;D.value=!0,(n=e.onPatternFocus)==null||n.call(e,t)}function Y(t){var n;D.value=!1,(n=e.onPatternBlur)==null||n.call(e,t)}function fe(){var t,n;if(e.filterable)D.value=!1,(t=v.value)==null||t.blur(),(n=f.value)==null||n.blur();else if(e.multiple){let{value:e}=m;e?.blur()}else{let{value:e}=h;e?.blur()}}function pe(){var t,n,r;e.filterable?(D.value=!1,(t=v.value)==null||t.focus()):e.multiple?(n=m.value)==null||n.focus():(r=h.value)==null||r.focus()}function me(){let{value:e}=f;e&&(re(),e.focus())}function he(){let{value:e}=f;e&&e.blur()}function ge(e){let{value:t}=y;t&&t.setTextContent(`+${e}`)}function _e(){let{value:e}=C;return e}function X(){return f.value}let Z=null;function Q(){Z!==null&&window.clearTimeout(Z)}function $(){e.active||(Q(),Z=window.setTimeout(()=>{j.value&&(E.value=!0)},100))}function ve(){Q()}function ye(e){e||(Q(),E.value=!1)}o(j,e=>{e||(E.value=!1)}),s(()=>{c(()=>{let t=v.value;t&&(e.disabled?t.removeAttribute(`tabindex`):t.tabIndex=D.value?-1:0)})}),ee(p,e.onResize);let{inlineThemeDisabled:be}=e,xe=l(()=>{let{size:t}=e,{common:{cubicBezierEaseInOut:n},self:{fontWeight:r,borderRadius:i,color:a,placeholderColor:o,textColor:s,paddingSingle:c,paddingMultiple:l,caretColor:u,colorDisabled:d,textColorDisabled:f,placeholderColorDisabled:p,colorActive:m,boxShadowFocus:h,boxShadowActive:g,boxShadowHover:_,border:v,borderFocus:y,borderHover:b,borderActive:S,arrowColor:C,arrowColorDisabled:w,loadingColor:T,colorActiveWarning:E,boxShadowFocusWarning:D,boxShadowActiveWarning:O,boxShadowHoverWarning:ee,borderWarning:A,borderFocusWarning:te,borderHoverWarning:ne,borderActiveWarning:j,colorActiveError:M,boxShadowFocusError:N,boxShadowActiveError:re,boxShadowHoverError:P,borderError:F,borderFocusError:I,borderHoverError:L,borderActiveError:R,clearColor:z,clearColorHover:ae,clearColorPressed:oe,clearSize:B,arrowSize:se,[x(`height`,t)]:V,[x(`fontSize`,t)]:H}}=k.value,U=ie(c),W=ie(l);return{"--n-bezier":n,"--n-border":v,"--n-border-active":S,"--n-border-focus":y,"--n-border-hover":b,"--n-border-radius":i,"--n-box-shadow-active":g,"--n-box-shadow-focus":h,"--n-box-shadow-hover":_,"--n-caret-color":u,"--n-color":a,"--n-color-active":m,"--n-color-disabled":d,"--n-font-size":H,"--n-height":V,"--n-padding-single-top":U.top,"--n-padding-multiple-top":W.top,"--n-padding-single-right":U.right,"--n-padding-multiple-right":W.right,"--n-padding-single-left":U.left,"--n-padding-multiple-left":W.left,"--n-padding-single-bottom":U.bottom,"--n-padding-multiple-bottom":W.bottom,"--n-placeholder-color":o,"--n-placeholder-color-disabled":p,"--n-text-color":s,"--n-text-color-disabled":f,"--n-arrow-color":C,"--n-arrow-color-disabled":w,"--n-loading-color":T,"--n-color-active-warning":E,"--n-box-shadow-focus-warning":D,"--n-box-shadow-active-warning":O,"--n-box-shadow-hover-warning":ee,"--n-border-warning":A,"--n-border-focus-warning":te,"--n-border-hover-warning":ne,"--n-border-active-warning":j,"--n-color-active-error":M,"--n-box-shadow-focus-error":N,"--n-box-shadow-active-error":re,"--n-box-shadow-hover-error":P,"--n-border-error":F,"--n-border-focus-error":I,"--n-border-hover-error":L,"--n-border-active-error":R,"--n-clear-size":B,"--n-clear-color":z,"--n-clear-color-hover":ae,"--n-clear-color-pressed":oe,"--n-arrow-size":se,"--n-font-weight":r}}),Se=be?g(`internal-selection`,l(()=>e.size[0]),xe,e):void 0;return{mergedTheme:k,mergedClearable:A,mergedClsPrefix:n,rtlEnabled:a,patternInputFocused:D,filterablePlaceholder:te,label:ne,selected:j,showTagsPanel:E,isComposing:W,counterRef:y,counterWrapperRef:C,patternInputMirrorRef:u,patternInputRef:f,selfRef:p,multipleElRef:m,singleElRef:h,patternInputWrapperRef:v,overflowRef:w,inputTagElRef:T,handleMouseDown:V,handleFocusin:z,handleClear:oe,handleMouseEnter:B,handleMouseLeave:se,handleDeleteOption:H,handlePatternKeyDown:ce,handlePatternInputInput:le,handlePatternInputBlur:Y,handlePatternInputFocus:J,handleMouseEnterCounter:$,handleMouseLeaveCounter:ve,handleFocusout:ae,handleCompositionEnd:ue,handleCompositionStart:q,onPopoverUpdateShow:ye,focus:pe,focusInput:me,blur:fe,blurInput:he,updateCounter:ge,getCounter:_e,getTail:X,renderLabel:e.renderLabel,cssVars:be?void 0:xe,themeClass:Se?.themeClass,onRender:Se?.onRender}},render(){let{status:e,multiple:t,size:r,disabled:i,filterable:a,maxTagCount:o,bordered:s,clsPrefix:c,ellipsisTagPopoverProps:l,onRender:d,renderTag:f,renderLabel:p}=this;d?.();let m=o===`responsive`,h=typeof o==`number`,g=m||h,_=n(P,null,{default:()=>n(V,{clsPrefix:c,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear},{default:()=>{var e;return(e=this.$slots).arrow?.call(e)}})}),v;if(t){let{labelField:e}=this,t=t=>n(`div`,{class:`${c}-base-selection-tag-wrapper`,key:t.value},f?f({option:t,handleClose:()=>{this.handleDeleteOption(t)}}):n(H,{size:r,closable:!t.disabled,disabled:i,onClose:()=>{this.handleDeleteOption(t)},internalCloseIsButtonTag:!1,internalCloseFocusable:!1},{default:()=>p?p(t,!0):G(t[e],t,!0)})),s=()=>(h?this.selectedOptions.slice(0,o):this.selectedOptions).map(t),d=a?n(`div`,{class:`${c}-base-selection-input-tag`,ref:`inputTagElRef`,key:`__input-tag__`},n(`input`,Object.assign({},this.inputProps,{ref:`patternInputRef`,tabindex:-1,disabled:i,value:this.pattern,autofocus:this.autofocus,class:`${c}-base-selection-input-tag__input`,onBlur:this.handlePatternInputBlur,onFocus:this.handlePatternInputFocus,onKeydown:this.handlePatternKeyDown,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),n(`span`,{ref:`patternInputMirrorRef`,class:`${c}-base-selection-input-tag__mirror`},this.pattern)):null,y=m?()=>n(`div`,{class:`${c}-base-selection-tag-wrapper`,ref:`counterWrapperRef`},n(H,{size:r,ref:`counterRef`,onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:i})):void 0,b;if(h){let e=this.selectedOptions.length-o;e>0&&(b=n(`div`,{class:`${c}-base-selection-tag-wrapper`,key:`__counter__`},n(H,{size:r,ref:`counterRef`,onMouseenter:this.handleMouseEnterCounter,disabled:i},{default:()=>`+${e}`})))}let x=m?a?n(J,{ref:`overflowRef`,updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:`100%`,display:`flex`,overflow:`hidden`}},{default:s,counter:y,tail:()=>d}):n(J,{ref:`overflowRef`,updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:`100%`,display:`flex`,overflow:`hidden`}},{default:s,counter:y}):h&&b?s().concat(b):s(),S=g?()=>n(`div`,{class:`${c}-base-selection-popover`},m?s():this.selectedOptions.map(t)):void 0,C=g?Object.assign({show:this.showTagsPanel,trigger:`hover`,overlap:!0,placement:`top`,width:`trigger`,onUpdateShow:this.onPopoverUpdateShow,theme:this.mergedTheme.peers.Popover,themeOverrides:this.mergedTheme.peerOverrides.Popover},l):null,w=!this.selected&&(!this.active||!this.pattern&&!this.isComposing)?n(`div`,{class:`${c}-base-selection-placeholder ${c}-base-selection-overlay`},n(`div`,{class:`${c}-base-selection-placeholder__inner`},this.placeholder)):null,T=a?n(`div`,{ref:`patternInputWrapperRef`,class:`${c}-base-selection-tags`},x,m?null:d,_):n(`div`,{ref:`multipleElRef`,class:`${c}-base-selection-tags`,tabindex:i?void 0:0},x,_);v=n(u,null,g?n(z,Object.assign({},C,{scrollable:!0,style:`max-height: calc(var(--v-target-height) * 6.6);`}),{trigger:()=>T,default:S}):T,w)}else if(a){let e=this.pattern||this.isComposing,t=this.active?!e:!this.selected,r=this.active?!1:this.selected;v=n(`div`,{ref:`patternInputWrapperRef`,class:`${c}-base-selection-label`,title:this.patternInputFocused?void 0:Y(this.label)},n(`input`,Object.assign({},this.inputProps,{ref:`patternInputRef`,class:`${c}-base-selection-input`,value:this.active?this.pattern:``,placeholder:``,readonly:i,disabled:i,tabindex:-1,autofocus:this.autofocus,onFocus:this.handlePatternInputFocus,onBlur:this.handlePatternInputBlur,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),r?n(`div`,{class:`${c}-base-selection-label__render-label ${c}-base-selection-overlay`,key:`input`},n(`div`,{class:`${c}-base-selection-overlay__wrapper`},f?f({option:this.selectedOption,handleClose:()=>{}}):p?p(this.selectedOption,!0):G(this.label,this.selectedOption,!0))):null,t?n(`div`,{class:`${c}-base-selection-placeholder ${c}-base-selection-overlay`,key:`placeholder`},n(`div`,{class:`${c}-base-selection-overlay__wrapper`},this.filterablePlaceholder)):null,_)}else v=n(`div`,{ref:`singleElRef`,class:`${c}-base-selection-label`,tabindex:this.disabled?void 0:0},this.label===void 0?n(`div`,{class:`${c}-base-selection-placeholder ${c}-base-selection-overlay`,key:`placeholder`},n(`div`,{class:`${c}-base-selection-placeholder__inner`},this.placeholder)):n(`div`,{class:`${c}-base-selection-input`,title:Y(this.label),key:`input`},n(`div`,{class:`${c}-base-selection-input__content`},f?f({option:this.selectedOption,handleClose:()=>{}}):p?p(this.selectedOption,!0):G(this.label,this.selectedOption,!0))),_);return n(`div`,{ref:`selfRef`,class:[`${c}-base-selection`,this.rtlEnabled&&`${c}-base-selection--rtl`,this.themeClass,e&&`${c}-base-selection--${e}-status`,{[`${c}-base-selection--active`]:this.active,[`${c}-base-selection--selected`]:this.selected||this.active&&this.pattern,[`${c}-base-selection--disabled`]:this.disabled,[`${c}-base-selection--multiple`]:this.multiple,[`${c}-base-selection--focus`]:this.focused}],style:this.cssVars,onClick:this.onClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onKeydown:this.onKeydown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onMousedown:this.handleMouseDown},v,s?n(`div`,{class:`${c}-base-selection__border`}):null,s?n(`div`,{class:`${c}-base-selection__state-border`}):null)}}),pe=v([m(`select`,` - z-index: auto; - outline: none; - width: 100%; - position: relative; - font-weight: var(--n-font-weight); - `),m(`select-menu`,` - margin: 4px 0; - box-shadow: var(--n-menu-box-shadow); - `,[I({originalTransition:`background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)`})])]),me=r({name:`Select`,props:Object.assign(Object.assign({},S.props),{to:E.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,clearCreatedOptionsOnClear:{type:Boolean,default:!0},clearFilterAfterSelect:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},defaultValue:{type:[String,Number,Array],default:null},keyboard:{type:Boolean,default:!0},value:[String,Number,Array],placeholder:String,menuProps:Object,multiple:Boolean,size:String,menuSize:{type:String},filterable:Boolean,disabled:{type:Boolean,default:void 0},remote:Boolean,loading:Boolean,filter:Function,placement:{type:String,default:`bottom-start`},widthMode:{type:String,default:`trigger`},tag:Boolean,onCreate:Function,fallbackOption:{type:[Function,Boolean],default:void 0},show:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:!0},maxTagCount:[Number,String],ellipsisTagPopoverProps:Object,consistentMenuWidth:{type:Boolean,default:!0},virtualScroll:{type:Boolean,default:!0},labelField:{type:String,default:`label`},valueField:{type:String,default:`value`},childrenField:{type:String,default:`children`},renderLabel:Function,renderOption:Function,renderTag:Function,"onUpdate:value":[Function,Array],inputProps:Object,nodeProps:Function,ignoreComposition:{type:Boolean,default:!0},showOnFocus:Boolean,onUpdateValue:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onFocus:[Function,Array],onScroll:[Function,Array],onSearch:[Function,Array],onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],displayDirective:{type:String,default:`show`},resetMenuOnOptionsChange:{type:Boolean,default:!0},status:String,showCheckmark:{type:Boolean,default:!0},scrollbarProps:Object,onChange:[Function,Array],items:Array}),slots:Object,setup(e){let{mergedClsPrefixRef:t,mergedBorderedRef:n,namespaceRef:r,inlineThemeDisabled:a,mergedComponentPropsRef:s}=_(e),c=S(`Select`,`-select`,pe,le,e,t),u=d(e.defaultValue),f=L(i(e,`value`),u),p=d(!1),m=d(``),h=R(e,[`items`,`options`]),v=d([]),y=d([]),b=l(()=>y.value.concat(v.value).concat(h.value)),x=l(()=>{let{filter:t}=e;if(t)return t;let{labelField:n,valueField:r}=e;return(e,t)=>{if(!t)return!1;let i=t[n];if(typeof i==`string`)return A(e,i);let a=t[r];return typeof a==`string`?A(e,a):typeof a==`number`?A(e,String(a)):!1}}),C=l(()=>{if(e.remote)return h.value;{let{value:t}=b,{value:n}=m;return!n.length||!e.filterable?t:j(t,x.value,n,e.childrenField)}}),w=l(()=>{let{valueField:t,childrenField:n}=e,r=M(t,n);return ne(C.value,r)}),T=l(()=>te(b.value,e.valueField,e.childrenField)),D=d(!1),O=L(i(e,`show`),D),k=d(null),ee=d(null),P=d(null),{localeRef:ie}=se(`Select`),F=l(()=>e.placeholder??ie.value.placeholder),I=[],z=d(new Map),V=l(()=>{let{fallbackOption:t}=e;if(t===void 0){let{labelField:t,valueField:n}=e;return e=>({[t]:String(e),[n]:e})}return t===!1?!1:e=>Object.assign(t(e),{value:e})});function H(t){let n=e.remote,{value:r}=z,{value:i}=T,{value:a}=V,o=[];return t.forEach(e=>{if(i.has(e))o.push(i.get(e));else if(n&&r.has(e))o.push(r.get(e));else if(a){let t=a(e);t&&o.push(t)}}),o}let U=l(()=>{if(e.multiple){let{value:e}=f;return Array.isArray(e)?H(e):[]}return null}),W=l(()=>{let{value:t}=f;return!e.multiple&&!Array.isArray(t)?t===null?null:H([t])[0]||null:null}),G=oe(e,{mergedSize:t=>{let{size:n}=e;if(n)return n;let{mergedSize:r}=t||{};return r?.value?r.value:s?.value?.Select?.size||`medium`}}),{mergedSizeRef:K,mergedDisabledRef:q,mergedStatusRef:ue}=G;function J(t,n){let{onChange:r,"onUpdate:value":i,onUpdateValue:a}=e,{nTriggerFormChange:o,nTriggerFormInput:s}=G;r&&B(r,t,n),a&&B(a,t,n),i&&B(i,t,n),u.value=t,o(),s()}function Y(t){let{onBlur:n}=e,{nTriggerFormBlur:r}=G;n&&B(n,t),r()}function de(){let{onClear:t}=e;t&&B(t)}function fe(t){let{onFocus:n,showOnFocus:r}=e,{nTriggerFormFocus:i}=G;n&&B(n,t),i(),r&&X()}function me(t){let{onSearch:n}=e;n&&B(n,t)}function he(t){let{onScroll:n}=e;n&&B(n,t)}function ge(){var t;let{remote:n,multiple:r}=e;if(n){let{value:n}=z;if(r){let{valueField:r}=e;(t=U.value)==null||t.forEach(e=>{n.set(e[r],e)})}else{let t=W.value;t&&n.set(t[e.valueField],t)}}}function _e(t){let{onUpdateShow:n,"onUpdate:show":r}=e;n&&B(n,t),r&&B(r,t),D.value=t}function X(){q.value||(_e(!0),D.value=!0,e.filterable&&Le())}function Z(){_e(!1)}function Q(){m.value=``,y.value=I}let $=d(!1);function ve(){e.filterable&&($.value=!0)}function ye(){e.filterable&&($.value=!1,O.value||Q())}function be(){q.value||(O.value?e.filterable?Le():Z():X())}function xe(e){(P.value?.selfRef)?.contains(e.relatedTarget)||(p.value=!1,Y(e),Z())}function Se(e){fe(e),p.value=!0}function Ce(){p.value=!0}function we(e){k.value?.$el.contains(e.relatedTarget)||(p.value=!1,Y(e),Z())}function Te(){var e;(e=k.value)==null||e.focus(),Z()}function Ee(e){O.value&&(k.value?.$el.contains(re(e))||Z())}function De(t){if(!Array.isArray(t))return[];if(V.value)return Array.from(t);{let{remote:n}=e,{value:r}=T;if(n){let{value:e}=z;return t.filter(t=>r.has(t)||e.has(t))}else return t.filter(e=>r.has(e))}}function Oe(e){ke(e.rawNode)}function ke(t){if(q.value)return;let{tag:n,remote:r,clearFilterAfterSelect:i,valueField:a}=e;if(n&&!r){let{value:e}=y,t=e[0]||null;if(t){let e=v.value;e.length?e.push(t):v.value=[t],y.value=I}}if(r&&z.value.set(t[a],t),e.multiple){let e=De(f.value),o=e.findIndex(e=>e===t[a]);if(~o){if(e.splice(o,1),n&&!r){let e=Ae(t[a]);~e&&(v.value.splice(e,1),i&&(m.value=``))}}else e.push(t[a]),i&&(m.value=``);J(e,H(e))}else{if(n&&!r){let e=Ae(t[a]);~e?v.value=[v.value[e]]:v.value=I}Ie(),Z(),J(t[a],t)}}function Ae(t){return v.value.findIndex(n=>n[e.valueField]===t)}function je(t){O.value||X();let{value:n}=t.target;m.value=n;let{tag:r,remote:i}=e;if(me(n),r&&!i){if(!n){y.value=I;return}let{onCreate:t}=e,r=t?t(n):{[e.labelField]:n,[e.valueField]:n},{valueField:i,labelField:a}=e;h.value.some(e=>e[i]===r[i]||e[a]===r[a])||v.value.some(e=>e[i]===r[i]||e[a]===r[a])?y.value=I:y.value=[r]}}function Me(t){t.stopPropagation();let{multiple:n,tag:r,remote:i,clearCreatedOptionsOnClear:a}=e;!n&&e.filterable&&Z(),r&&!i&&a&&(v.value=I),de(),n?J([],[]):J(null,null)}function Ne(e){!N(e,`action`)&&!N(e,`empty`)&&!N(e,`header`)&&e.preventDefault()}function Pe(e){he(e)}function Fe(t){var n,r,i;if(!e.keyboard){t.preventDefault();return}switch(t.key){case` `:if(e.filterable)break;t.preventDefault();case`Enter`:if(!k.value?.isComposing){if(O.value){let t=P.value?.getPendingTmNode();t?Oe(t):e.filterable||(Z(),Ie())}else if(X(),e.tag&&$.value){let t=y.value[0];if(t){let n=t[e.valueField],{value:r}=f;e.multiple&&Array.isArray(r)&&r.includes(n)||ke(t)}}}t.preventDefault();break;case`ArrowUp`:if(t.preventDefault(),e.loading)return;O.value&&((n=P.value)==null||n.prev());break;case`ArrowDown`:if(t.preventDefault(),e.loading)return;O.value?(r=P.value)==null||r.next():X();break;case`Escape`:O.value&&(ae(t),Z()),(i=k.value)==null||i.focus();break}}function Ie(){var e;(e=k.value)==null||e.focus()}function Le(){var e;(e=k.value)==null||e.focusInput()}function Re(){var e;O.value&&((e=ee.value)==null||e.syncPosition())}ge(),o(i(e,`options`),ge);let ze={focus:()=>{var e;(e=k.value)==null||e.focus()},focusInput:()=>{var e;(e=k.value)==null||e.focusInput()},blur:()=>{var e;(e=k.value)==null||e.blur()},blurInput:()=>{var e;(e=k.value)==null||e.blurInput()}},Be=l(()=>{let{self:{menuBoxShadow:e}}=c.value;return{"--n-menu-box-shadow":e}}),Ve=a?g(`select`,void 0,Be,e):void 0;return Object.assign(Object.assign({},ze),{mergedStatus:ue,mergedClsPrefix:t,mergedBordered:n,namespace:r,treeMate:w,isMounted:ce(),triggerRef:k,menuRef:P,pattern:m,uncontrolledShow:D,mergedShow:O,adjustedTo:E(e),uncontrolledValue:u,mergedValue:f,followerRef:ee,localizedPlaceholder:F,selectedOption:W,selectedOptions:U,mergedSize:K,mergedDisabled:q,focused:p,activeWithoutMenuOpen:$,inlineThemeDisabled:a,onTriggerInputFocus:ve,onTriggerInputBlur:ye,handleTriggerOrMenuResize:Re,handleMenuFocus:Ce,handleMenuBlur:we,handleMenuTabOut:Te,handleTriggerClick:be,handleToggle:Oe,handleDeleteOption:ke,handlePatternInput:je,handleClear:Me,handleTriggerBlur:xe,handleTriggerFocus:Se,handleKeydown:Fe,handleMenuAfterLeave:Q,handleMenuClickOutside:Ee,handleMenuScroll:Pe,handleMenuKeydown:Fe,handleMenuMousedown:Ne,mergedTheme:c,cssVars:a?void 0:Be,themeClass:Ve?.themeClass,onRender:Ve?.onRender})},render(){return n(`div`,{class:`${this.mergedClsPrefix}-select`},n(C,null,{default:()=>[n(w,null,{default:()=>n(fe,{ref:`triggerRef`,inlineThemeDisabled:this.inlineThemeDisabled,status:this.mergedStatus,inputProps:this.inputProps,clsPrefix:this.mergedClsPrefix,showArrow:this.showArrow,maxTagCount:this.maxTagCount,ellipsisTagPopoverProps:this.ellipsisTagPopoverProps,bordered:this.mergedBordered,active:this.activeWithoutMenuOpen||this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,renderTag:this.renderTag,renderLabel:this.renderLabel,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,labelField:this.labelField,valueField:this.valueField,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,loading:this.loading,focused:this.focused,onClick:this.handleTriggerClick,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onBlur:this.handleTriggerBlur,onFocus:this.handleTriggerFocus,onKeydown:this.handleKeydown,onPatternBlur:this.onTriggerInputBlur,onPatternFocus:this.onTriggerInputFocus,onResize:this.handleTriggerOrMenuResize,ignoreComposition:this.ignoreComposition},{arrow:()=>{var e;return[(e=this.$slots).arrow?.call(e)]}})}),n(O,{ref:`followerRef`,show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===E.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?`target`:void 0,minWidth:`target`,placement:this.placement},{default:()=>n(W,{name:`fade-in-scale-up-transition`,appear:this.isMounted,onAfterLeave:this.handleMenuAfterLeave},{default:()=>{var e;return this.mergedShow||this.displayDirective===`show`?((e=this.onRender)==null||e.call(this),a(n(k,Object.assign({},this.menuProps,{ref:`menuRef`,onResize:this.handleTriggerOrMenuResize,inlineThemeDisabled:this.inlineThemeDisabled,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,class:[`${this.mergedClsPrefix}-select-menu`,this.themeClass,this.menuProps?.class],clsPrefix:this.mergedClsPrefix,focusable:!0,labelField:this.labelField,valueField:this.valueField,autoPending:!0,nodeProps:this.nodeProps,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,treeMate:this.treeMate,multiple:this.multiple,size:this.menuSize,renderOption:this.renderOption,renderLabel:this.renderLabel,value:this.mergedValue,style:[this.menuProps?.style,this.cssVars],onToggle:this.handleToggle,onScroll:this.handleMenuScroll,onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onTabOut:this.handleMenuTabOut,onMousedown:this.handleMenuMousedown,show:this.mergedShow,showCheckmark:this.showCheckmark,resetMenuOnOptionsChange:this.resetMenuOnOptionsChange,scrollbarProps:this.scrollbarProps}),{empty:()=>{var e;return[(e=this.$slots).empty?.call(e)]},header:()=>{var e;return[(e=this.$slots).header?.call(e)]},action:()=>{var e;return[(e=this.$slots).action?.call(e)]}}),this.displayDirective===`show`?[[K,this.mergedShow],[F,this.handleMenuClickOutside,void 0,{capture:!0}]]:[[F,this.handleMenuClickOutside,void 0,{capture:!0}]])):null}})})]}))}});export{me as t}; \ No newline at end of file diff --git a/frontend/dist/assets/Space-B8J_02Fa.js b/frontend/dist/assets/Space-B8J_02Fa.js deleted file mode 100644 index 9ddfe75..0000000 --- a/frontend/dist/assets/Space-B8J_02Fa.js +++ /dev/null @@ -1 +0,0 @@ -import{I as e,N as t,v as n,w as r}from"./client-CT8bsOZT.js";import{N as i,o as a,q as o,r as s}from"./light-DhgSQSdG.js";import{n as c,t as l}from"./css-DEmdllcC.js";import{a as u}from"./Button-D8HO8D_D.js";import{t as d}from"./flatten-K6HmZnua.js";import{t as f}from"./get-slot-6kXJmSMP.js";import{d as p}from"./index-oex1uI7H.js";function m(){return p}var h={name:`Space`,self:m},g;function _(){if(!u)return!0;if(g===void 0){let e=document.createElement(`div`);e.style.display=`flex`,e.style.flexDirection=`column`,e.style.rowGap=`1px`,e.appendChild(document.createElement(`div`)),e.appendChild(document.createElement(`div`)),document.body.appendChild(e);let t=e.scrollHeight===1;return document.body.removeChild(e),g=t}return g}var v=t({name:`Space`,props:Object.assign(Object.assign({},s.props),{align:String,justify:{type:String,default:`start`},inline:Boolean,vertical:Boolean,reverse:Boolean,size:[String,Number,Array],wrapItem:{type:Boolean,default:!0},itemClass:String,itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),setup(e){let{mergedClsPrefixRef:t,mergedRtlRef:n,mergedComponentPropsRef:u}=i(e),d=r(()=>e.size||u?.value?.Space?.size||`medium`),f=s(`Space`,`-space`,void 0,h,e,t),p=a(`Space`,n,t);return{useGap:_(),rtlEnabled:p,mergedClsPrefix:t,margin:r(()=>{let e=d.value;if(Array.isArray(e))return{horizontal:e[0],vertical:e[1]};if(typeof e==`number`)return{horizontal:e,vertical:e};let{self:{[o(`gap`,e)]:t}}=f.value,{row:n,col:r}=c(t);return{horizontal:l(r),vertical:l(n)}})}},render(){let{vertical:t,reverse:r,align:i,inline:a,justify:o,itemClass:s,itemStyle:c,margin:l,wrap:u,mergedClsPrefix:p,rtlEnabled:m,useGap:h,wrapItem:g,internalUseGap:_}=this,v=d(f(this),!1);if(!v.length)return null;let y=`${l.horizontal}px`,b=`${l.horizontal/2}px`,x=`${l.vertical}px`,S=`${l.vertical/2}px`,C=v.length-1,w=o.startsWith(`space-`);return e(`div`,{role:`none`,class:[`${p}-space`,m&&`${p}-space--rtl`],style:{display:a?`inline-flex`:`flex`,flexDirection:t&&!r?`column`:t&&r?`column-reverse`:!t&&r?`row-reverse`:`row`,justifyContent:[`start`,`end`].includes(o)?`flex-${o}`:o,flexWrap:!u||t?`nowrap`:`wrap`,marginTop:h||t?``:`-${S}`,marginBottom:h||t?``:`-${S}`,alignItems:i,gap:h?`${l.vertical}px ${l.horizontal}px`:``}},!g&&(h||_)?v:v.map((r,i)=>r.type===n?r:e(`div`,{role:`none`,class:s,style:[c,{maxWidth:`100%`},h?``:t?{marginBottom:i===C?``:x}:m?{marginLeft:w?o===`space-between`&&i===C?``:b:i===C?``:y,marginRight:w?o===`space-between`&&i===0?``:b:``,paddingTop:S,paddingBottom:S}:{marginRight:w?o===`space-between`&&i===C?``:b:i===C?``:y,marginLeft:w?o===`space-between`&&i===0?``:b:``,paddingTop:S,paddingBottom:S}]},r)))}});export{v as t}; \ No newline at end of file diff --git a/frontend/dist/assets/Suffix-BVApm8eE.js b/frontend/dist/assets/Suffix-BVApm8eE.js deleted file mode 100644 index 1c6f58f..0000000 --- a/frontend/dist/assets/Suffix-BVApm8eE.js +++ /dev/null @@ -1,25 +0,0 @@ -import{I as e,N as t,R as n,St as r,w as i}from"./client-CT8bsOZT.js";import{H as a,P as o,V as s,W as c,i as l}from"./light-DhgSQSdG.js";import{r as u}from"./resolve-slot-BEScaVot.js";import{H as d,I as f,M as p,U as m,V as h}from"./index-oex1uI7H.js";var g={name:`en-US`,global:{undo:`Undo`,redo:`Redo`,confirm:`Confirm`,clear:`Clear`},Popconfirm:{positiveText:`Confirm`,negativeText:`Cancel`},Cascader:{placeholder:`Please Select`,loading:`Loading`,loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:`yyyy-MM-dd`,dateTimeFormat:`yyyy-MM-dd HH:mm:ss`},DatePicker:{yearFormat:`yyyy`,monthFormat:`MMM`,dayFormat:`eeeeee`,yearTypeFormat:`yyyy`,monthTypeFormat:`yyyy-MM`,dateFormat:`yyyy-MM-dd`,dateTimeFormat:`yyyy-MM-dd HH:mm:ss`,quarterFormat:`yyyy-qqq`,weekFormat:`YYYY-w`,clear:`Clear`,now:`Now`,confirm:`Confirm`,selectTime:`Select Time`,selectDate:`Select Date`,datePlaceholder:`Select Date`,datetimePlaceholder:`Select Date and Time`,monthPlaceholder:`Select Month`,yearPlaceholder:`Select Year`,quarterPlaceholder:`Select Quarter`,weekPlaceholder:`Select Week`,startDatePlaceholder:`Start Date`,endDatePlaceholder:`End Date`,startDatetimePlaceholder:`Start Date and Time`,endDatetimePlaceholder:`End Date and Time`,startMonthPlaceholder:`Start Month`,endMonthPlaceholder:`End Month`,monthBeforeYear:!0,firstDayOfWeek:6,today:`Today`},DataTable:{checkTableAll:`Select all in the table`,uncheckTableAll:`Unselect all in the table`,confirm:`Confirm`,clear:`Clear`},LegacyTransfer:{sourceTitle:`Source`,targetTitle:`Target`},Transfer:{selectAll:`Select all`,unselectAll:`Unselect all`,clearAll:`Clear`,total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:`No Data`},Select:{placeholder:`Please Select`},TimePicker:{placeholder:`Select Time`,positiveText:`OK`,negativeText:`Cancel`,now:`Now`,clear:`Clear`},Pagination:{goto:`Goto`,selectionSuffix:`page`},DynamicTags:{add:`Add`},Log:{loading:`Loading`},Input:{placeholder:`Please Input`},InputNumber:{placeholder:`Please Input`},DynamicInput:{create:`Create`},ThemeEditor:{title:`Theme Editor`,clearAllVars:`Clear All Variables`,clearSearch:`Clear Search`,filterCompName:`Filter Component Name`,filterVarName:`Filter Variable Name`,import:`Import`,export:`Export`,restore:`Reset to Default`},Image:{tipPrevious:`Previous picture (←)`,tipNext:`Next picture (→)`,tipCounterclockwise:`Counterclockwise`,tipClockwise:`Clockwise`,tipZoomOut:`Zoom out`,tipZoomIn:`Zoom in`,tipDownload:`Download`,tipClose:`Close (Esc)`,tipOriginalSize:`Zoom to original size`},Heatmap:{less:`less`,more:`more`,monthFormat:`MMM`,weekdayFormat:`eee`}};function _(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}function v(e){return(t,n)=>{let r=n?.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,r=n?.width?String(n.width):t;i=e.formattingValues[r]||e.formattingValues[t]}else{let t=e.defaultWidth,r=n?.width?String(n.width):e.defaultWidth;i=e.values[r]||e.values[t]}let a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}function y(e){return(t,n={})=>{let r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;let o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?x(s,e=>e.test(o)):b(s,e=>e.test(o)),l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;let u=t.slice(o.length);return{value:l,rest:u}}}function b(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function x(e,t){for(let n=0;n{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;let s=t.slice(i.length);return{value:o,rest:s}}}var C={lessThanXSeconds:{one:`less than a second`,other:`less than {{count}} seconds`},xSeconds:{one:`1 second`,other:`{{count}} seconds`},halfAMinute:`half a minute`,lessThanXMinutes:{one:`less than a minute`,other:`less than {{count}} minutes`},xMinutes:{one:`1 minute`,other:`{{count}} minutes`},aboutXHours:{one:`about 1 hour`,other:`about {{count}} hours`},xHours:{one:`1 hour`,other:`{{count}} hours`},xDays:{one:`1 day`,other:`{{count}} days`},aboutXWeeks:{one:`about 1 week`,other:`about {{count}} weeks`},xWeeks:{one:`1 week`,other:`{{count}} weeks`},aboutXMonths:{one:`about 1 month`,other:`about {{count}} months`},xMonths:{one:`1 month`,other:`{{count}} months`},aboutXYears:{one:`about 1 year`,other:`about {{count}} years`},xYears:{one:`1 year`,other:`{{count}} years`},overXYears:{one:`over 1 year`,other:`over {{count}} years`},almostXYears:{one:`almost 1 year`,other:`almost {{count}} years`}},w=(e,t,n)=>{let r,i=C[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?`in `+r:r+` ago`:r},T={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},E=(e,t,n,r)=>T[e],D={ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:v({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:v({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:v({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:v({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:v({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})},O={ordinalNumber:S({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:y({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:y({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:y({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:y({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:y({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},k={code:`en-US`,formatDistance:w,formatLong:{date:_({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:_({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:_({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},formatRelative:E,localize:D,match:O,options:{weekStartsOn:0,firstWeekContainsDate:1}},A={name:`en-US`,locale:k};function j(e){let{mergedLocaleRef:t,mergedDateLocaleRef:r}=n(o,null)||{},a=i(()=>t?.value?.[e]??g[e]);return{dateLocaleRef:i(()=>r?.value??A),localeRef:a}}var M=t({name:`ChevronDown`,render(){return e(`svg`,{viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e(`path`,{d:`M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z`,fill:`currentColor`}))}}),N=h(`clear`,()=>e(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},e(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},e(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},e(`path`,{d:`M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z`}))))),P=a(`base-clear`,` - flex-shrink: 0; - height: 1em; - width: 1em; - position: relative; -`,[s(`>`,[c(`clear`,` - font-size: var(--n-clear-size); - height: 1em; - width: 1em; - cursor: pointer; - color: var(--n-clear-color); - transition: color .3s var(--n-bezier); - display: flex; - `,[s(`&:hover`,` - color: var(--n-clear-color-hover)!important; - `),s(`&:active`,` - color: var(--n-clear-color-pressed)!important; - `)]),c(`placeholder`,` - display: flex; - `),c(`clear, placeholder`,` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - `,[f({originalTransform:`translateX(-50%) translateY(-50%)`,left:`50%`,top:`50%`})])])]),F=t({name:`BaseClear`,props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){return l(`-base-clear`,P,r(e,`clsPrefix`)),{handleMouseDown(e){e.preventDefault()}}},render(){let{clsPrefix:t}=this;return e(`div`,{class:`${t}-base-clear`},e(d,null,{default:()=>{var n;return this.show?e(`div`,{key:`dismiss`,class:`${t}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},u(this.$slots.icon,()=>[e(m,{clsPrefix:t},{default:()=>e(N,null)})])):e(`div`,{key:`icon`,class:`${t}-base-clear__placeholder`},(n=this.$slots).placeholder?.call(n))}}))}}),I=t({name:`InternalSelectionSuffix`,props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup(t,{slots:n}){return()=>{let{clsPrefix:r}=t;return e(p,{clsPrefix:r,class:`${r}-base-suffix`,strokeWidth:24,scale:.85,show:t.loading},{default:()=>t.showArrow?e(F,{clsPrefix:r,show:t.showClear,onClear:t.onClear},{placeholder:()=>e(m,{clsPrefix:r,class:`${r}-base-suffix__arrow`},{default:()=>u(n.default,()=>[e(M,null)])})}):null})}}});export{k as i,F as n,j as r,I as t}; \ No newline at end of file diff --git a/frontend/dist/assets/Tabs-DpaEFwbI.js b/frontend/dist/assets/Tabs-DpaEFwbI.js deleted file mode 100644 index 3d6e697..0000000 --- a/frontend/dist/assets/Tabs-DpaEFwbI.js +++ /dev/null @@ -1,352 +0,0 @@ -import{C as e,H as t,I as n,N as r,R as i,St as a,V as o,Z as s,f as c,lt as l,m as u,ot as d,q as f,st as p,w as m,y as h,yt as g}from"./client-CT8bsOZT.js";import{E as _,F as v,G as y,H as b,K as x,M as S,N as C,V as w,W as T,j as E,q as D,r as O}from"./light-DhgSQSdG.js";import{l as ee,n as k,r as A}from"./Follower-Bm7xH84Z.js";import{c as j}from"./Card-BX9nnwGC.js";import{r as M,t as te}from"./css-DEmdllcC.js";import{t as ne}from"./use-merged-state-CRia4_FA.js";import{t as N}from"./use-compitable-DR1_4TS5.js";import{r as P}from"./use-form-item-CBXe24ar.js";import{t as F}from"./flatten-K6HmZnua.js";import{a as re}from"./resolve-slot-BEScaVot.js";import{t as I}from"./Add-D3YI1YD1.js";import{$ as ie,F as ae,J as L,K as R,U as oe,a as se,q as z,tt as B}from"./index-oex1uI7H.js";var V=k(`.v-x-scroll`,{overflow:`auto`,scrollbarWidth:`none`},[k(`&::-webkit-scrollbar`,{width:0,height:0})]),ce=r({name:`XScroll`,props:{disabled:Boolean,onScroll:Function},setup(){let e=g(null);function t(e){!(e.currentTarget.offsetWidth=t||n<0||d&&r>=a}function v(){var e=J();if(g(e))return y(e);s=setTimeout(v,h(e))}function y(e){return s=void 0,f&&r?p(e):(r=i=void 0,o)}function b(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0}function x(){return s===void 0?o:y(J())}function S(){var e=J(),n=g(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return m(c);if(d)return clearTimeout(s),s=setTimeout(v,t),p(c)}return s===void 0&&(s=setTimeout(v,t)),o}return S.cancel=b,S.flush=x,S}var ge=`Expected a function`;function _e(e,t,n){var r=!0,i=!0;if(typeof e!=`function`)throw TypeError(ge);return _(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),Y(e,t,{leading:r,maxWait:t,trailing:i})}var ve=u(`n-tabs`),ye={tab:[String,Number,Object,Function],name:{type:[String,Number],required:!0},disabled:Boolean,displayDirective:{type:String,default:`if`},closable:{type:Boolean,default:void 0},tabProps:Object,label:[String,Number,Object,Function]},X=r({__TAB_PANE__:!0,name:`TabPane`,alias:[`TabPanel`],props:ye,slots:Object,setup(e){let t=i(ve,null);return t||c(`tab-pane`,"`n-tab-pane` must be placed inside `n-tabs`."),{style:t.paneStyleRef,class:t.paneClassRef,mergedClsPrefix:t.mergedClsPrefixRef}},render(){return n(`div`,{class:[`${this.mergedClsPrefix}-tab-pane`,this.class],style:this.style},this.$slots)}}),Z=r({__TAB__:!0,inheritAttrs:!1,name:`Tab`,props:Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},L(ye,[`displayDirective`])),setup(e){let{mergedClsPrefixRef:t,valueRef:n,typeRef:r,closableRef:a,tabStyleRef:o,addTabStyleRef:s,tabClassRef:c,addTabClassRef:l,tabChangeIdRef:u,onBeforeLeaveRef:d,triggerRef:f,handleAdd:p,activateTab:h,handleClose:g}=i(ve);return{trigger:f,mergedClosable:m(()=>{if(e.internalAddable)return!1;let{closable:t}=e;return t===void 0?a.value:t}),style:o,addStyle:s,tabClass:c,addTabClass:l,clsPrefix:t,value:n,type:r,handleClose(t){t.stopPropagation(),!e.disabled&&g(e.name)},activateTab(){if(e.disabled)return;if(e.internalAddable){p();return}let{name:t}=e,r=++u.id;if(t!==n.value){let{value:i}=d;i?Promise.resolve(i(e.name,n.value)).then(e=>{e&&u.id===r&&h(t)}):h(t)}}}},render(){let{internalAddable:e,clsPrefix:t,name:r,disabled:i,label:a,tab:s,value:c,mergedClosable:l,trigger:u,$slots:{default:d}}=this,f=a??s;return n(`div`,{class:`${t}-tabs-tab-wrapper`},this.internalLeftPadded?n(`div`,{class:`${t}-tabs-tab-pad`}):null,n(`div`,Object.assign({key:r,"data-name":r,"data-disabled":i?!0:void 0},o({class:[`${t}-tabs-tab`,c===r&&`${t}-tabs-tab--active`,i&&`${t}-tabs-tab--disabled`,l&&`${t}-tabs-tab--closable`,e&&`${t}-tabs-tab--addable`,e?this.addTabClass:this.tabClass],onClick:u===`click`?this.activateTab:void 0,onMouseenter:u===`hover`?this.activateTab:void 0,style:e?this.addStyle:this.style},this.internalCreatedByPane?this.tabProps||{}:this.$attrs)),n(`span`,{class:`${t}-tabs-tab__label`},e?n(h,null,n(`div`,{class:`${t}-tabs-tab__height-placeholder`},`\xA0`),n(oe,{clsPrefix:t},{default:()=>n(I,null)})):d?d():typeof f==`object`?f:z(f??r)),l&&this.type===`card`?n(ae,{clsPrefix:t,class:`${t}-tabs-tab__close`,onClick:this.handleClose,disabled:i}):null))}}),be=b(`tabs`,` - box-sizing: border-box; - width: 100%; - display: flex; - flex-direction: column; - transition: - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); -`,[y(`segment-type`,[b(`tabs-rail`,[w(`&.transition-disabled`,[b(`tabs-capsule`,` - transition: none; - `)])])]),y(`top`,[b(`tab-pane`,` - padding: var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left); - `)]),y(`left`,[b(`tab-pane`,` - padding: var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left) var(--n-pane-padding-top); - `)]),y(`left, right`,` - flex-direction: row; - `,[b(`tabs-bar`,` - width: 2px; - right: 0; - transition: - top .2s var(--n-bezier), - max-height .2s var(--n-bezier), - background-color .3s var(--n-bezier); - `),b(`tabs-tab`,` - padding: var(--n-tab-padding-vertical); - `)]),y(`right`,` - flex-direction: row-reverse; - `,[b(`tab-pane`,` - padding: var(--n-pane-padding-left) var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom); - `),b(`tabs-bar`,` - left: 0; - `)]),y(`bottom`,` - flex-direction: column-reverse; - justify-content: flex-end; - `,[b(`tab-pane`,` - padding: var(--n-pane-padding-bottom) var(--n-pane-padding-right) var(--n-pane-padding-top) var(--n-pane-padding-left); - `),b(`tabs-bar`,` - top: 0; - `)]),b(`tabs-rail`,` - position: relative; - padding: 3px; - border-radius: var(--n-tab-border-radius); - width: 100%; - background-color: var(--n-color-segment); - transition: background-color .3s var(--n-bezier); - display: flex; - align-items: center; - `,[b(`tabs-capsule`,` - border-radius: var(--n-tab-border-radius); - position: absolute; - pointer-events: none; - background-color: var(--n-tab-color-segment); - box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08); - transition: transform 0.3s var(--n-bezier); - `),b(`tabs-tab-wrapper`,` - flex-basis: 0; - flex-grow: 1; - display: flex; - align-items: center; - justify-content: center; - `,[b(`tabs-tab`,` - overflow: hidden; - border-radius: var(--n-tab-border-radius); - width: 100%; - display: flex; - align-items: center; - justify-content: center; - `,[y(`active`,` - font-weight: var(--n-font-weight-strong); - color: var(--n-tab-text-color-active); - `),w(`&:hover`,` - color: var(--n-tab-text-color-hover); - `)])])]),y(`flex`,[b(`tabs-nav`,` - width: 100%; - position: relative; - `,[b(`tabs-wrapper`,` - width: 100%; - `,[b(`tabs-tab`,` - margin-right: 0; - `)])])]),b(`tabs-nav`,` - box-sizing: border-box; - line-height: 1.5; - display: flex; - transition: border-color .3s var(--n-bezier); - `,[T(`prefix, suffix`,` - display: flex; - align-items: center; - `),T(`prefix`,`padding-right: 16px;`),T(`suffix`,`padding-left: 16px;`)]),y(`top, bottom`,[w(`>`,[b(`tabs-nav`,[b(`tabs-nav-scroll-wrapper`,[w(`&::before`,` - top: 0; - bottom: 0; - left: 0; - width: 20px; - `),w(`&::after`,` - top: 0; - bottom: 0; - right: 0; - width: 20px; - `),y(`shadow-start`,[w(`&::before`,` - box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12); - `)]),y(`shadow-end`,[w(`&::after`,` - box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12); - `)])])])])]),y(`left, right`,[b(`tabs-nav-scroll-content`,` - flex-direction: column; - `),w(`>`,[b(`tabs-nav`,[b(`tabs-nav-scroll-wrapper`,[w(`&::before`,` - top: 0; - left: 0; - right: 0; - height: 20px; - `),w(`&::after`,` - bottom: 0; - left: 0; - right: 0; - height: 20px; - `),y(`shadow-start`,[w(`&::before`,` - box-shadow: inset 0 10px 8px -8px rgba(0, 0, 0, .12); - `)]),y(`shadow-end`,[w(`&::after`,` - box-shadow: inset 0 -10px 8px -8px rgba(0, 0, 0, .12); - `)])])])])]),b(`tabs-nav-scroll-wrapper`,` - flex: 1; - position: relative; - overflow: hidden; - `,[b(`tabs-nav-y-scroll`,` - height: 100%; - width: 100%; - overflow-y: auto; - scrollbar-width: none; - `,[w(`&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb`,` - width: 0; - height: 0; - display: none; - `)]),w(`&::before, &::after`,` - transition: box-shadow .3s var(--n-bezier); - pointer-events: none; - content: ""; - position: absolute; - z-index: 1; - `)]),b(`tabs-nav-scroll-content`,` - display: flex; - position: relative; - min-width: 100%; - min-height: 100%; - width: fit-content; - box-sizing: border-box; - `),b(`tabs-wrapper`,` - display: inline-flex; - flex-wrap: nowrap; - position: relative; - `),b(`tabs-tab-wrapper`,` - display: flex; - flex-wrap: nowrap; - flex-shrink: 0; - flex-grow: 0; - `),b(`tabs-tab`,` - cursor: pointer; - white-space: nowrap; - flex-wrap: nowrap; - display: inline-flex; - align-items: center; - color: var(--n-tab-text-color); - font-size: var(--n-tab-font-size); - background-clip: padding-box; - padding: var(--n-tab-padding); - transition: - box-shadow .3s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - `,[y(`disabled`,{cursor:`not-allowed`}),T(`close`,` - margin-left: 6px; - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `),T(`label`,` - display: flex; - align-items: center; - z-index: 1; - `)]),b(`tabs-bar`,` - position: absolute; - bottom: 0; - height: 2px; - border-radius: 1px; - background-color: var(--n-bar-color); - transition: - left .2s var(--n-bezier), - max-width .2s var(--n-bezier), - opacity .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `,[w(`&.transition-disabled`,` - transition: none; - `),y(`disabled`,` - background-color: var(--n-tab-text-color-disabled) - `)]),b(`tabs-pane-wrapper`,` - position: relative; - overflow: hidden; - transition: max-height .2s var(--n-bezier); - `),b(`tab-pane`,` - color: var(--n-pane-text-color); - width: 100%; - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .2s var(--n-bezier); - left: 0; - right: 0; - top: 0; - `,[w(`&.next-transition-leave-active, &.prev-transition-leave-active, &.next-transition-enter-active, &.prev-transition-enter-active`,` - transition: - color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - transform .2s var(--n-bezier), - opacity .2s var(--n-bezier); - `),w(`&.next-transition-leave-active, &.prev-transition-leave-active`,` - position: absolute; - `),w(`&.next-transition-enter-from, &.prev-transition-leave-to`,` - transform: translateX(32px); - opacity: 0; - `),w(`&.next-transition-leave-to, &.prev-transition-enter-from`,` - transform: translateX(-32px); - opacity: 0; - `),w(`&.next-transition-leave-from, &.next-transition-enter-to, &.prev-transition-leave-from, &.prev-transition-enter-to`,` - transform: translateX(0); - opacity: 1; - `)]),b(`tabs-tab-pad`,` - box-sizing: border-box; - width: var(--n-tab-gap); - flex-grow: 0; - flex-shrink: 0; - `),y(`line-type, bar-type`,[b(`tabs-tab`,` - font-weight: var(--n-tab-font-weight); - box-sizing: border-box; - vertical-align: bottom; - `,[w(`&:hover`,{color:`var(--n-tab-text-color-hover)`}),y(`active`,` - color: var(--n-tab-text-color-active); - font-weight: var(--n-tab-font-weight-active); - `),y(`disabled`,{color:`var(--n-tab-text-color-disabled)`})])]),b(`tabs-nav`,[y(`line-type`,[y(`top`,[T(`prefix, suffix`,` - border-bottom: 1px solid var(--n-tab-border-color); - `),b(`tabs-nav-scroll-content`,` - border-bottom: 1px solid var(--n-tab-border-color); - `),b(`tabs-bar`,` - bottom: -1px; - `)]),y(`left`,[T(`prefix, suffix`,` - border-right: 1px solid var(--n-tab-border-color); - `),b(`tabs-nav-scroll-content`,` - border-right: 1px solid var(--n-tab-border-color); - `),b(`tabs-bar`,` - right: -1px; - `)]),y(`right`,[T(`prefix, suffix`,` - border-left: 1px solid var(--n-tab-border-color); - `),b(`tabs-nav-scroll-content`,` - border-left: 1px solid var(--n-tab-border-color); - `),b(`tabs-bar`,` - left: -1px; - `)]),y(`bottom`,[T(`prefix, suffix`,` - border-top: 1px solid var(--n-tab-border-color); - `),b(`tabs-nav-scroll-content`,` - border-top: 1px solid var(--n-tab-border-color); - `),b(`tabs-bar`,` - top: -1px; - `)]),T(`prefix, suffix`,` - transition: border-color .3s var(--n-bezier); - `),b(`tabs-nav-scroll-content`,` - transition: border-color .3s var(--n-bezier); - `),b(`tabs-bar`,` - border-radius: 0; - `)]),y(`card-type`,[T(`prefix, suffix`,` - transition: border-color .3s var(--n-bezier); - `),b(`tabs-pad`,` - flex-grow: 1; - transition: border-color .3s var(--n-bezier); - `),b(`tabs-tab-pad`,` - transition: border-color .3s var(--n-bezier); - `),b(`tabs-tab`,` - font-weight: var(--n-tab-font-weight); - border: 1px solid var(--n-tab-border-color); - background-color: var(--n-tab-color); - box-sizing: border-box; - position: relative; - vertical-align: bottom; - display: flex; - justify-content: space-between; - font-size: var(--n-tab-font-size); - color: var(--n-tab-text-color); - `,[y(`addable`,` - padding-left: 8px; - padding-right: 8px; - font-size: 16px; - justify-content: center; - `,[T(`height-placeholder`,` - width: 0; - font-size: var(--n-tab-font-size); - `),x(`disabled`,[w(`&:hover`,` - color: var(--n-tab-text-color-hover); - `)])]),y(`closable`,`padding-right: 8px;`),y(`active`,` - background-color: #0000; - font-weight: var(--n-tab-font-weight-active); - color: var(--n-tab-text-color-active); - `),y(`disabled`,`color: var(--n-tab-text-color-disabled);`)])]),y(`left, right`,` - flex-direction: column; - `,[T(`prefix, suffix`,` - padding: var(--n-tab-padding-vertical); - `),b(`tabs-wrapper`,` - flex-direction: column; - `),b(`tabs-tab-wrapper`,` - flex-direction: column; - `,[b(`tabs-tab-pad`,` - height: var(--n-tab-gap-vertical); - width: 100%; - `)])]),y(`top`,[y(`card-type`,[b(`tabs-scroll-padding`,`border-bottom: 1px solid var(--n-tab-border-color);`),T(`prefix, suffix`,` - border-bottom: 1px solid var(--n-tab-border-color); - `),b(`tabs-tab`,` - border-top-left-radius: var(--n-tab-border-radius); - border-top-right-radius: var(--n-tab-border-radius); - `,[y(`active`,` - border-bottom: 1px solid #0000; - `)]),b(`tabs-tab-pad`,` - border-bottom: 1px solid var(--n-tab-border-color); - `),b(`tabs-pad`,` - border-bottom: 1px solid var(--n-tab-border-color); - `)])]),y(`left`,[y(`card-type`,[b(`tabs-scroll-padding`,`border-right: 1px solid var(--n-tab-border-color);`),T(`prefix, suffix`,` - border-right: 1px solid var(--n-tab-border-color); - `),b(`tabs-tab`,` - border-top-left-radius: var(--n-tab-border-radius); - border-bottom-left-radius: var(--n-tab-border-radius); - `,[y(`active`,` - border-right: 1px solid #0000; - `)]),b(`tabs-tab-pad`,` - border-right: 1px solid var(--n-tab-border-color); - `),b(`tabs-pad`,` - border-right: 1px solid var(--n-tab-border-color); - `)])]),y(`right`,[y(`card-type`,[b(`tabs-scroll-padding`,`border-left: 1px solid var(--n-tab-border-color);`),T(`prefix, suffix`,` - border-left: 1px solid var(--n-tab-border-color); - `),b(`tabs-tab`,` - border-top-right-radius: var(--n-tab-border-radius); - border-bottom-right-radius: var(--n-tab-border-radius); - `,[y(`active`,` - border-left: 1px solid #0000; - `)]),b(`tabs-tab-pad`,` - border-left: 1px solid var(--n-tab-border-color); - `),b(`tabs-pad`,` - border-left: 1px solid var(--n-tab-border-color); - `)])]),y(`bottom`,[y(`card-type`,[b(`tabs-scroll-padding`,`border-top: 1px solid var(--n-tab-border-color);`),T(`prefix, suffix`,` - border-top: 1px solid var(--n-tab-border-color); - `),b(`tabs-tab`,` - border-bottom-left-radius: var(--n-tab-border-radius); - border-bottom-right-radius: var(--n-tab-border-radius); - `,[y(`active`,` - border-top: 1px solid #0000; - `)]),b(`tabs-tab-pad`,` - border-top: 1px solid var(--n-tab-border-color); - `),b(`tabs-pad`,` - border-top: 1px solid var(--n-tab-border-color); - `)])])])]),xe=_e,Se=r({name:`Tabs`,props:Object.assign(Object.assign({},O.props),{value:[String,Number],defaultValue:[String,Number],trigger:{type:String,default:`click`},type:{type:String,default:`bar`},closable:Boolean,justifyContent:String,size:String,placement:{type:String,default:`top`},tabStyle:[String,Object],tabClass:String,addTabStyle:[String,Object],addTabClass:String,barWidth:Number,paneClass:String,paneStyle:[String,Object],paneWrapperClass:String,paneWrapperStyle:[String,Object],addable:[Boolean,Object],tabsPadding:{type:Number,default:0},animated:Boolean,onBeforeLeave:Function,onAdd:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClose:[Function,Array],labelSize:String,activeName:[String,Number],onActiveNameChange:[Function,Array]}),slots:Object,setup(e,{slots:n}){let{mergedClsPrefixRef:r,inlineThemeDisabled:i,mergedComponentPropsRef:o}=C(e),c=O(`Tabs`,`-tabs`,be,se,e,r),l=g(null),u=g(null),h=g(null),_=g(null),v=g(null),y=g(null),b=g(!0),x=g(!0),w=N(e,[`labelSize`,`size`]),T=m(()=>w.value?w.value:o?.value?.Tabs?.size||`medium`),E=N(e,[`activeName`,`value`]),k=g(E.value??e.defaultValue??(n.default?F(n.default())[0]?.props?.name:null)),A=ne(E,k),j={id:0},re=m(()=>{if(!(!e.justifyContent||e.type===`card`))return{display:`flex`,justifyContent:e.justifyContent}});d(A,()=>{j.id=0,R(),oe()});function I(){let{value:e}=A;return e===null?null:l.value?.querySelector(`[data-name="${e}"]`)}function ie(t){if(e.type===`card`)return;let{value:n}=u;if(!n)return;let i=n.style.opacity===`0`;if(t){let a=`${r.value}-tabs-bar--disabled`,{barWidth:o,placement:s}=e;if(t.dataset.disabled===`true`?n.classList.add(a):n.classList.remove(a),[`top`,`bottom`].includes(s)){if(L([`top`,`maxHeight`,`height`]),typeof o==`number`&&t.offsetWidth>=o){let e=Math.floor((t.offsetWidth-o)/2)+t.offsetLeft;n.style.left=`${e}px`,n.style.maxWidth=`${o}px`}else n.style.left=`${t.offsetLeft}px`,n.style.maxWidth=`${t.offsetWidth}px`;n.style.width=`8192px`,i&&(n.style.transition=`none`),n.offsetWidth,i&&(n.style.transition=``,n.style.opacity=`1`)}else{if(L([`left`,`maxWidth`,`width`]),typeof o==`number`&&t.offsetHeight>=o){let e=Math.floor((t.offsetHeight-o)/2)+t.offsetTop;n.style.top=`${e}px`,n.style.maxHeight=`${o}px`}else n.style.top=`${t.offsetTop}px`,n.style.maxHeight=`${t.offsetHeight}px`;n.style.height=`8192px`,i&&(n.style.transition=`none`),n.offsetHeight,i&&(n.style.transition=``,n.style.opacity=`1`)}}}function ae(){if(e.type===`card`)return;let{value:t}=u;t&&(t.style.opacity=`0`)}function L(e){let{value:t}=u;if(t)for(let n of e)t.style[n]=``}function R(){if(e.type===`card`)return;let t=I();t?ie(t):ae()}function oe(){let e=v.value?.$el;if(!e)return;let t=I();if(!t)return;let{scrollLeft:n,offsetWidth:r}=e,{offsetLeft:i,offsetWidth:a}=t;n>i?e.scrollTo({top:0,left:i,behavior:`smooth`}):i+a>n+r&&e.scrollTo({top:0,left:i+a-r,behavior:`smooth`})}let z=g(null),B=0,V=null;function ce(e){let t=z.value;if(t){B=e.getBoundingClientRect().height;let n=`${B}px`,r=()=>{t.style.height=n,t.style.maxHeight=n};V?(r(),V(),V=null):V=r}}function le(e){let t=z.value;if(t){let n=e.getBoundingClientRect().height,r=()=>{document.body.offsetHeight,t.style.maxHeight=`${n}px`,t.style.height=`${Math.max(B,n)}px`};V?(V(),V=null,r()):V=r}}function ue(){let t=z.value;if(t){t.style.maxHeight=``,t.style.height=``;let{paneWrapperStyle:n}=e;if(typeof n==`string`)t.style.cssText=n;else if(n){let{maxHeight:e,height:r}=n;e!==void 0&&(t.style.maxHeight=e),r!==void 0&&(t.style.height=r)}}}let H={value:[]},U=g(`next`);function W(e){let t=A.value,n=`next`;for(let r of H.value){if(r===t)break;if(r===e){n=`prev`;break}}U.value=n,de(e)}function de(t){let{onActiveNameChange:n,onUpdateValue:r,"onUpdate:value":i}=e;n&&P(n,t),r&&P(r,t),i&&P(i,t),k.value=t}function fe(t){let{onClose:n}=e;n&&P(n,t)}let G=!0;function K(){let{value:e}=u;if(!e)return;G||=!1;let t=`transition-disabled`;e.classList.add(t),R(),e.classList.remove(t)}let q=g(null);function J({transitionDisabled:e}){let t=l.value;if(!t)return;e&&t.classList.add(`transition-disabled`);let n=I();n&&q.value&&(q.value.style.width=`${n.offsetWidth}px`,q.value.style.height=`${n.offsetHeight}px`,q.value.style.transform=`translateX(${n.offsetLeft-te(getComputedStyle(t).paddingLeft)}px)`,e&&q.value.offsetWidth),e&&t.classList.remove(`transition-disabled`)}d([A],()=>{e.type===`segment`&&t(()=>{J({transitionDisabled:!1})})}),f(()=>{e.type===`segment`&&J({transitionDisabled:!0})});let pe=0;function me(t){if(t.contentRect.width===0&&t.contentRect.height===0||pe===t.contentRect.width)return;pe=t.contentRect.width;let{type:n}=e;if((n===`line`||n===`bar`)&&(G||e.justifyContent?.startsWith(`space`))&&K(),n!==`segment`){let{placement:t}=e;X((t===`top`||t===`bottom`?v.value?.$el:y.value)||null)}}let he=xe(me,64);d([()=>e.justifyContent,()=>e.size],()=>{t(()=>{let{type:t}=e;(t===`line`||t===`bar`)&&K()})});let Y=g(!1);function ge(t){let{target:n,contentRect:{width:r,height:i}}=t,a=n.parentElement.parentElement.offsetWidth,o=n.parentElement.parentElement.offsetHeight,{placement:s}=e;if(!Y.value)s===`top`||s===`bottom`?ae.$el.offsetWidth&&(Y.value=!1):o-i>e.$el.offsetHeight&&(Y.value=!1)}X(v.value?.$el||null)}let _e=xe(ge,64);function ye(){let{onAdd:n}=e;n&&n(),t(()=>{let e=I(),{value:t}=v;!e||!t||t.scrollTo({left:e.offsetLeft,top:0,behavior:`smooth`})})}function X(t){if(!t)return;let{placement:n}=e;if(n===`top`||n===`bottom`){let{scrollLeft:e,scrollWidth:n,offsetWidth:r}=t;b.value=e<=0,x.value=e+r>=n}else{let{scrollTop:e,scrollHeight:n,offsetHeight:r}=t;b.value=e<=0,x.value=e+r>=n}}let Z=xe(e=>{X(e.target)},64);s(ve,{triggerRef:a(e,`trigger`),tabStyleRef:a(e,`tabStyle`),tabClassRef:a(e,`tabClass`),addTabStyleRef:a(e,`addTabStyle`),addTabClassRef:a(e,`addTabClass`),paneClassRef:a(e,`paneClass`),paneStyleRef:a(e,`paneStyle`),mergedClsPrefixRef:r,typeRef:a(e,`type`),closableRef:a(e,`closable`),valueRef:A,tabChangeIdRef:j,onBeforeLeaveRef:a(e,`onBeforeLeave`),activateTab:W,handleClose:fe,handleAdd:ye}),ee(()=>{R(),oe()}),p(()=>{let{value:e}=h;if(!e)return;let{value:t}=r,n=`${t}-tabs-nav-scroll-wrapper--shadow-start`,i=`${t}-tabs-nav-scroll-wrapper--shadow-end`;b.value?e.classList.remove(n):e.classList.add(n),x.value?e.classList.remove(i):e.classList.add(i)});let Se={syncBarPosition:()=>{R()}},Ce=()=>{J({transitionDisabled:!0})},Q=m(()=>{let{value:t}=T,{type:n}=e,r=`${t}${{card:`Card`,bar:`Bar`,line:`Line`,segment:`Segment`}[n]}`,{self:{barColor:i,closeIconColor:a,closeIconColorHover:o,closeIconColorPressed:s,tabColor:l,tabBorderColor:u,paneTextColor:d,tabFontWeight:f,tabBorderRadius:p,tabFontWeightActive:m,colorSegment:h,fontWeightStrong:g,tabColorSegment:_,closeSize:v,closeIconSize:y,closeColorHover:b,closeColorPressed:x,closeBorderRadius:S,[D(`panePadding`,t)]:C,[D(`tabPadding`,r)]:w,[D(`tabPaddingVertical`,r)]:E,[D(`tabGap`,r)]:O,[D(`tabGap`,`${r}Vertical`)]:ee,[D(`tabTextColor`,n)]:k,[D(`tabTextColorActive`,n)]:A,[D(`tabTextColorHover`,n)]:j,[D(`tabTextColorDisabled`,n)]:te,[D(`tabFontSize`,t)]:ne},common:{cubicBezierEaseInOut:N}}=c.value;return{"--n-bezier":N,"--n-color-segment":h,"--n-bar-color":i,"--n-tab-font-size":ne,"--n-tab-text-color":k,"--n-tab-text-color-active":A,"--n-tab-text-color-disabled":te,"--n-tab-text-color-hover":j,"--n-pane-text-color":d,"--n-tab-border-color":u,"--n-tab-border-radius":p,"--n-close-size":v,"--n-close-icon-size":y,"--n-close-color-hover":b,"--n-close-color-pressed":x,"--n-close-border-radius":S,"--n-close-icon-color":a,"--n-close-icon-color-hover":o,"--n-close-icon-color-pressed":s,"--n-tab-color":l,"--n-tab-font-weight":f,"--n-tab-font-weight-active":m,"--n-tab-padding":w,"--n-tab-padding-vertical":E,"--n-tab-gap":O,"--n-tab-gap-vertical":ee,"--n-pane-padding-left":M(C,`left`),"--n-pane-padding-right":M(C,`right`),"--n-pane-padding-top":M(C,`top`),"--n-pane-padding-bottom":M(C,`bottom`),"--n-font-weight-strong":g,"--n-tab-color-segment":_}}),$=i?S(`tabs`,m(()=>`${T.value[0]}${e.type[0]}`),Q,e):void 0;return Object.assign({mergedClsPrefix:r,mergedValue:A,renderedNames:new Set,segmentCapsuleElRef:q,tabsPaneWrapperRef:z,tabsElRef:l,barElRef:u,addTabInstRef:_,xScrollInstRef:v,scrollWrapperElRef:h,addTabFixed:Y,tabWrapperStyle:re,handleNavResize:he,mergedSize:T,handleScroll:Z,handleTabsResize:_e,cssVars:i?void 0:Q,themeClass:$?.themeClass,animationDirection:U,renderNameListRef:H,yScrollElRef:y,handleSegmentResize:Ce,onAnimationBeforeLeave:ce,onAnimationEnter:le,onAnimationAfterEnter:ue,onRender:$?.onRender},Se)},render(){let{mergedClsPrefix:e,type:t,placement:r,addTabFixed:i,addable:a,mergedSize:o,renderNameListRef:s,onRender:c,paneWrapperClass:l,paneWrapperStyle:u,$slots:{default:d,prefix:f,suffix:p}}=this;c?.();let m=d?F(d()).filter(e=>e.type.__TAB_PANE__===!0):[],h=d?F(d()).filter(e=>e.type.__TAB__===!0):[],g=!h.length,_=t===`card`,v=t===`segment`,y=!_&&!v&&this.justifyContent;s.value=[];let b=()=>{let t=n(`div`,{style:this.tabWrapperStyle,class:`${e}-tabs-wrapper`},y?null:n(`div`,{class:`${e}-tabs-scroll-padding`,style:r===`top`||r===`bottom`?{width:`${this.tabsPadding}px`}:{height:`${this.tabsPadding}px`}}),g?m.map((e,t)=>(s.value.push(e.props.name),we(n(Z,Object.assign({},e.props,{internalCreatedByPane:!0,internalLeftPadded:t!==0&&(!y||y===`center`||y===`start`||y===`end`)}),e.children?{default:e.children.tab}:void 0)))):h.map((e,t)=>(s.value.push(e.props.name),we(t!==0&&!y?$(e):e))),!i&&a&&_?Q(a,(g?m.length:h.length)!==0):null,y?null:n(`div`,{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));return n(`div`,{ref:`tabsElRef`,class:`${e}-tabs-nav-scroll-content`},_&&a?n(j,{onResize:this.handleTabsResize},{default:()=>t}):t,_?n(`div`,{class:`${e}-tabs-pad`}):null,_?null:n(`div`,{ref:`barElRef`,class:`${e}-tabs-bar`}))},x=v?`top`:r;return n(`div`,{class:[`${e}-tabs`,this.themeClass,`${e}-tabs--${t}-type`,`${e}-tabs--${o}-size`,y&&`${e}-tabs--flex`,`${e}-tabs--${x}`],style:this.cssVars},n(`div`,{class:[`${e}-tabs-nav--${t}-type`,`${e}-tabs-nav--${x}`,`${e}-tabs-nav`]},re(f,t=>t&&n(`div`,{class:`${e}-tabs-nav__prefix`},t)),v?n(j,{onResize:this.handleSegmentResize},{default:()=>n(`div`,{class:`${e}-tabs-rail`,ref:`tabsElRef`},n(`div`,{class:`${e}-tabs-capsule`,ref:`segmentCapsuleElRef`},n(`div`,{class:`${e}-tabs-wrapper`},n(`div`,{class:`${e}-tabs-tab`}))),g?m.map((e,t)=>(s.value.push(e.props.name),n(Z,Object.assign({},e.props,{internalCreatedByPane:!0,internalLeftPadded:t!==0}),e.children?{default:e.children.tab}:void 0))):h.map((e,t)=>(s.value.push(e.props.name),t===0?e:$(e))))}):n(j,{onResize:this.handleNavResize},{default:()=>n(`div`,{class:`${e}-tabs-nav-scroll-wrapper`,ref:`scrollWrapperElRef`},[`top`,`bottom`].includes(x)?n(ce,{ref:`xScrollInstRef`,onScroll:this.handleScroll},{default:b}):n(`div`,{class:`${e}-tabs-nav-y-scroll`,onScroll:this.handleScroll,ref:`yScrollElRef`},b()))}),i&&a&&_?Q(a,!0):null,re(p,t=>t&&n(`div`,{class:`${e}-tabs-nav__suffix`},t))),g&&(this.animated&&(x===`top`||x===`bottom`)?n(`div`,{ref:`tabsPaneWrapperRef`,style:u,class:[`${e}-tabs-pane-wrapper`,l]},Ce(m,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):Ce(m,this.mergedValue,this.renderedNames)))}});function Ce(e,t,r,i,a,o,s){let c=[];return e.forEach(e=>{let{name:n,displayDirective:i,"display-directive":a}=e.props,o=e=>i===e||a===e,s=t===n;if(e.key!==void 0&&(e.key=n),s||o(`show`)||o(`show:lazy`)&&r.has(n)){r.has(n)||r.add(n);let t=!o(`if`);c.push(t?l(e,[[B,s]]):e)}}),s?n(ie,{name:`${s}-transition`,onBeforeLeave:i,onEnter:a,onAfterEnter:o},{default:()=>c}):c}function Q(e,t){return n(Z,{ref:`addTabInstRef`,key:`__addable`,name:`__addable`,internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:t,disabled:typeof e==`object`&&e.disabled})}function $(t){let n=e(t);return n.props?n.props.internalLeftPadded=!0:n.props={internalLeftPadded:!0},n}function we(e){return Array.isArray(e.dynamicProps)?e.dynamicProps.includes(`internalLeftPadded`)||e.dynamicProps.push(`internalLeftPadded`):e.dynamicProps=[`internalLeftPadded`],e}export{X as n,Se as t}; \ No newline at end of file diff --git a/frontend/dist/assets/Tag-wKk--N0F.js b/frontend/dist/assets/Tag-wKk--N0F.js deleted file mode 100644 index f126412..0000000 --- a/frontend/dist/assets/Tag-wKk--N0F.js +++ /dev/null @@ -1,71 +0,0 @@ -import{I as e,N as t,St as n,Z as r,m as i,w as a,yt as o}from"./client-CT8bsOZT.js";import{G as s,H as c,I as l,K as u,M as d,N as f,V as p,W as m,o as h,q as g,r as _,t as v}from"./light-DhgSQSdG.js";import{r as y}from"./css-DEmdllcC.js";import{i as b,r as x}from"./use-form-item-CBXe24ar.js";import{a as S}from"./resolve-slot-BEScaVot.js";import{F as C,O as w}from"./index-oex1uI7H.js";function T(e){let{textColor2:t,primaryColorHover:n,primaryColorPressed:r,primaryColor:i,infoColor:a,successColor:o,warningColor:s,errorColor:c,baseColor:u,borderColor:d,opacityDisabled:f,tagColor:p,closeIconColor:m,closeIconColorHover:h,closeIconColorPressed:g,borderRadiusSmall:_,fontSizeMini:v,fontSizeTiny:y,fontSizeSmall:b,fontSizeMedium:x,heightMini:S,heightTiny:C,heightSmall:T,heightMedium:E,closeColorHover:D,closeColorPressed:O,buttonColor2Hover:k,buttonColor2Pressed:A,fontWeightStrong:j}=e;return Object.assign(Object.assign({},w),{closeBorderRadius:_,heightTiny:S,heightSmall:C,heightMedium:T,heightLarge:E,borderRadius:_,opacityDisabled:f,fontSizeTiny:v,fontSizeSmall:y,fontSizeMedium:b,fontSizeLarge:x,fontWeightStrong:j,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:u,colorCheckable:`#0000`,colorHoverCheckable:k,colorPressedCheckable:A,colorChecked:i,colorCheckedHover:n,colorCheckedPressed:r,border:`1px solid ${d}`,textColor:t,color:p,colorBordered:`rgb(250, 250, 252)`,closeIconColor:m,closeIconColorHover:h,closeIconColorPressed:g,closeColorHover:D,closeColorPressed:O,borderPrimary:`1px solid ${l(i,{alpha:.3})}`,textColorPrimary:i,colorPrimary:l(i,{alpha:.12}),colorBorderedPrimary:l(i,{alpha:.1}),closeIconColorPrimary:i,closeIconColorHoverPrimary:i,closeIconColorPressedPrimary:i,closeColorHoverPrimary:l(i,{alpha:.12}),closeColorPressedPrimary:l(i,{alpha:.18}),borderInfo:`1px solid ${l(a,{alpha:.3})}`,textColorInfo:a,colorInfo:l(a,{alpha:.12}),colorBorderedInfo:l(a,{alpha:.1}),closeIconColorInfo:a,closeIconColorHoverInfo:a,closeIconColorPressedInfo:a,closeColorHoverInfo:l(a,{alpha:.12}),closeColorPressedInfo:l(a,{alpha:.18}),borderSuccess:`1px solid ${l(o,{alpha:.3})}`,textColorSuccess:o,colorSuccess:l(o,{alpha:.12}),colorBorderedSuccess:l(o,{alpha:.1}),closeIconColorSuccess:o,closeIconColorHoverSuccess:o,closeIconColorPressedSuccess:o,closeColorHoverSuccess:l(o,{alpha:.12}),closeColorPressedSuccess:l(o,{alpha:.18}),borderWarning:`1px solid ${l(s,{alpha:.35})}`,textColorWarning:s,colorWarning:l(s,{alpha:.15}),colorBorderedWarning:l(s,{alpha:.12}),closeIconColorWarning:s,closeIconColorHoverWarning:s,closeIconColorPressedWarning:s,closeColorHoverWarning:l(s,{alpha:.12}),closeColorPressedWarning:l(s,{alpha:.18}),borderError:`1px solid ${l(c,{alpha:.23})}`,textColorError:c,colorError:l(c,{alpha:.1}),colorBorderedError:l(c,{alpha:.08}),closeIconColorError:c,closeIconColorHoverError:c,closeIconColorPressedError:c,closeColorHoverError:l(c,{alpha:.12}),closeColorPressedError:l(c,{alpha:.18})})}var E={name:`Tag`,common:v,self:T},D={color:Object,type:{type:String,default:`default`},round:Boolean,size:String,closable:Boolean,disabled:{type:Boolean,default:void 0}},O=c(`tag`,` - --n-close-margin: var(--n-close-margin-top) var(--n-close-margin-right) var(--n-close-margin-bottom) var(--n-close-margin-left); - white-space: nowrap; - position: relative; - box-sizing: border-box; - cursor: default; - display: inline-flex; - align-items: center; - flex-wrap: nowrap; - padding: var(--n-padding); - border-radius: var(--n-border-radius); - color: var(--n-text-color); - background-color: var(--n-color); - transition: - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier), - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - opacity .3s var(--n-bezier); - line-height: 1; - height: var(--n-height); - font-size: var(--n-font-size); -`,[s(`strong`,` - font-weight: var(--n-font-weight-strong); - `),m(`border`,` - pointer-events: none; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - border: var(--n-border); - transition: border-color .3s var(--n-bezier); - `),m(`icon`,` - display: flex; - margin: 0 4px 0 0; - color: var(--n-text-color); - transition: color .3s var(--n-bezier); - font-size: var(--n-avatar-size-override); - `),m(`avatar`,` - display: flex; - margin: 0 6px 0 0; - `),m(`close`,` - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - `),s(`round`,` - padding: 0 calc(var(--n-height) / 3); - border-radius: calc(var(--n-height) / 2); - `,[m(`icon`,` - margin: 0 4px 0 calc((var(--n-height) - 8px) / -2); - `),m(`avatar`,` - margin: 0 6px 0 calc((var(--n-height) - 8px) / -2); - `),s(`closable`,` - padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3); - `)]),s(`icon, avatar`,[s(`round`,` - padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2); - `)]),s(`disabled`,` - cursor: not-allowed !important; - opacity: var(--n-opacity-disabled); - `),s(`checkable`,` - cursor: pointer; - box-shadow: none; - color: var(--n-text-color-checkable); - background-color: var(--n-color-checkable); - `,[u(`disabled`,[p(`&:hover`,`background-color: var(--n-color-hover-checkable);`,[u(`checked`,`color: var(--n-text-color-hover-checkable);`)]),p(`&:active`,`background-color: var(--n-color-pressed-checkable);`,[u(`checked`,`color: var(--n-text-color-pressed-checkable);`)])]),s(`checked`,` - color: var(--n-text-color-checked); - background-color: var(--n-color-checked); - `,[u(`disabled`,[p(`&:hover`,`background-color: var(--n-color-checked-hover);`),p(`&:active`,`background-color: var(--n-color-checked-pressed);`)])])])]),k=Object.assign(Object.assign(Object.assign({},_.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=i(`n-tag`),j=t({name:`Tag`,props:k,slots:Object,setup(e){let t=o(null),{mergedBorderedRef:i,mergedClsPrefixRef:s,inlineThemeDisabled:c,mergedRtlRef:l,mergedComponentPropsRef:u}=f(e),p=a(()=>e.size||u?.value?.Tag?.size||`medium`),m=_(`Tag`,`-tag`,O,E,e,s);r(A,{roundRef:n(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 S(t){if(e.triggerClickOnClose||t.stopPropagation(),!e.disabled){let{onClose:n}=e;n&&x(n,t)}}let C={setTextContent(e){let{value:n}=t;n&&(n.textContent=e)}},w=h(`Tag`,l,s),T=a(()=>{let{type:t,color:{color:n,textColor:r}={}}=e,a=p.value,{common:{cubicBezierEaseInOut:o},self:{padding:s,closeMargin:c,borderRadius:l,opacityDisabled:u,textColorCheckable:d,textColorHoverCheckable:f,textColorPressedCheckable:h,textColorChecked:_,colorCheckable:v,colorHoverCheckable:b,colorPressedCheckable:x,colorChecked:S,colorCheckedHover:C,colorCheckedPressed:w,closeBorderRadius:T,fontWeightStrong:E,[g(`colorBordered`,t)]:D,[g(`closeSize`,a)]:O,[g(`closeIconSize`,a)]:k,[g(`fontSize`,a)]:A,[g(`height`,a)]:j,[g(`color`,t)]:M,[g(`textColor`,t)]:N,[g(`border`,t)]:P,[g(`closeIconColor`,t)]:F,[g(`closeIconColorHover`,t)]:I,[g(`closeIconColorPressed`,t)]:L,[g(`closeColorHover`,t)]:R,[g(`closeColorPressed`,t)]:z}}=m.value,B=y(c);return{"--n-font-weight-strong":E,"--n-avatar-size-override":`calc(${j} - 8px)`,"--n-bezier":o,"--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||(i.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":b,"--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":_,"--n-text-color-hover-checkable":f,"--n-text-color-pressed-checkable":h}}),D=c?d(`tag`,a(()=>{let t=``,{type:n,color:{color:r,textColor:a}={}}=e;return t+=n[0],t+=p.value[0],r&&(t+=`a${b(r)}`),a&&(t+=`b${b(a)}`),i.value&&(t+=`c`),t}),T,e):void 0;return Object.assign(Object.assign({},C),{rtlEnabled:w,mergedClsPrefix:s,contentRef:t,mergedBordered:i,handleClick:v,handleCloseClick:S,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=S(c.avatar,t=>t&&e(`div`,{class:`${n}-tag__avatar`},t)),u=S(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(C,{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}; \ No newline at end of file diff --git a/frontend/dist/assets/TeamStoryView-DuxsuXaz.js b/frontend/dist/assets/TeamStoryView-DuxsuXaz.js deleted file mode 100644 index 05c7e43..0000000 --- a/frontend/dist/assets/TeamStoryView-DuxsuXaz.js +++ /dev/null @@ -1 +0,0 @@ -import{$ as e,Bt as t,D as n,E as r,H as i,Ht as a,M as o,N as s,O as c,Q as l,T as u,Vt as d,X as f,ct as p,et as ee,j as m,l as h,lt as g,w as _,wt as v,y,yt as b}from"./client-CT8bsOZT.js";import{t as te}from"./Button-D8HO8D_D.js";import{n as ne,t as re}from"./PlaceBlock-lvcHyG82.js";import{t as x}from"./Input-B3ERgh42.js";import{t as ie}from"./Alert-CWmvp18Y.js";import{n as ae,r as oe,t as S}from"./es-BS8VS4O3.js";import{t as C}from"./Flex-LW-PCNxv.js";import{t as w}from"./Rate-BlfAKQvG.js";import{t as se}from"./QrCode-VQE44Zo-.js";import{b as T,et as E,t as ce}from"./index-oex1uI7H.js";import{t as D}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as O}from"./HeaderText-CQkOA8j1.js";import{t as le}from"./useSimplePolling-yv2K0bkR.js";import{t as k}from"./MessagePaper-DDMbPgod.js";var A={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},j=s({name:`ContactMailRound`,render:function(e,t){return f(),c(`svg`,A,t[0]||=[u(`path`,{d:`M21 8V7l-3 2l-3-2v1l2.72 1.82a.5.5 0 0 0 .55 0L21 8zm1-5H2C.9 3 0 3.9 0 5v14c0 1.1.9 2 2 2h20c1.1 0 1.99-.9 1.99-2L24 5c0-1.1-.9-2-2-2zM8 6c1.66 0 3 1.34 3 3s-1.34 3-3 3s-3-1.34-3-3s1.34-3 3-3zm6 12H2v-1c0-2 4-3.1 6-3.1s6 1.1 6 3.1v1zm7.5-6h-7c-.28 0-.5-.22-.5-.5v-5c0-.28.22-.5.5-.5h7c.28 0 .5.22.5.5v5c0 .28-.22.5-.5.5z`,fill:`currentColor`},null,-1)])}}),M={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 512 512`},N=s({name:`Footsteps`,render:function(e,t){return f(),c(`svg`,M,t[0]||=[u(`path`,{d:`M133.83 361.27c-22.61 0-41-8.17-54.79-24.39s-22.84-40.29-28.11-75.31c-7.76-51.61-.06-95.11 21.68-122.48c12.8-16.12 29.6-25.44 48.58-26.94c16.25-1.3 40.54 5.29 64 44c14.69 24.24 25.86 56.44 30.65 88.34c5.79 38.51 1.48 66.86-13.18 86.65c-11.64 15.72-29.54 25.46-53.21 29a106.46 106.46 0 0 1-15.62 1.13z`,fill:`currentColor`},null,-1),u(`path`,{d:`M173 496c-13.21 0-26.6-4.23-38.66-12.36a79.79 79.79 0 0 1-33.52-50.6c-2.85-14.66-1.14-26.31 5.22-35.64c10.33-15.15 28.87-18.56 48.49-22.18c2.07-.38 4.17-.76 6.3-1.17c4.52-.86 9.14-2 13.62-3.11c16.78-4.14 34.14-8.43 48.47 1.75c9.59 6.8 15 18.36 16.62 35.32c1.84 19.57-2.36 39.1-11.83 55c-10.19 17.11-25.47 28.42-43 31.86A61 61 0 0 1 173 496z`,fill:`currentColor`},null,-1),u(`path`,{d:`M378.17 265.27a106.69 106.69 0 0 1-15.6-1.2c-23.66-3.5-41.56-13.25-53.2-29c-14.66-19.79-19-48.13-13.18-86.65c4.79-31.93 15.93-64.1 30.55-88.25c23.34-38.57 47.66-45.26 64-44.08c18.92 1.38 35.69 10.57 48.51 26.6c21.89 27.37 29.65 71 21.86 122.84c-5.27 35-14.2 58.95-28.11 75.31s-32.22 24.43-54.83 24.43z`,fill:`currentColor`},null,-1),u(`path`,{d:`M339 400a61 61 0 0 1-11.68-1.13c-17.56-3.44-32.84-14.75-43-31.86c-9.47-15.9-13.67-35.43-11.83-55c1.6-17 7-28.52 16.62-35.33c14.33-10.17 31.69-5.89 48.47-1.74c4.48 1.1 9.1 2.24 13.62 3.11l6.29 1.17c19.63 3.61 38.17 7 48.5 22.17c6.36 9.33 8.07 21 5.22 35.64a79.78 79.78 0 0 1-33.52 50.61C365.56 395.78 352.17 400 339 400z`,fill:`currentColor`},null,-1)])}}),P={},F={class:`belt-block`};function I(t,n){return f(),c(`div`,null,[n[0]||=u(`div`,{class:`shadow shadow-top`},null,-1),n[1]||=u(`div`,{class:`shadow shadow-bottom`},null,-1),u(`div`,F,[e(t.$slots,`default`,{},void 0,!0)])])}var L=D(P,[[`render`,I],[`__scopeId`,`data-v-bec154c5`]]),R={},z={class:`plate-block`},B={class:`metal-plate-block`};function V(t,n){return f(),c(`div`,z,[u(`div`,B,[e(t.$slots,`default`,{},void 0,!0)]),n[0]||=u(`div`,{class:`pin pin-top-left`},null,-1),n[1]||=u(`div`,{class:`pin pin-top-right`},null,-1),n[2]||=u(`div`,{class:`pin pin-bottom-right`},null,-1),n[3]||=u(`div`,{class:`pin pin-bottom-left`},null,-1)])}var H=D(R,[[`render`,V],[`__scopeId`,`data-v-4833fe7e`]]),U={class:`form-custom`},W={class:`center-block-700`},G={class:`controller`},K={class:`counters-block`},q={class:`counter-block`},J={class:`places-text`},Y={class:`counter-block`},X={class:`places-text`},Z={class:`game-input`},Q=[`placeholder`,`disabled`],ue=[`disabled`],de=D(s({__name:`GameInputForm`,props:{addAction:{type:Function},allPlacesCount:{},newPlacesCount:{},gameStatus:{}},setup(e){let t=b(``),i=e;async function s(){await i.addAction(t.value),t.value=``}function d(e){e%=100;let t=Math.floor(e/10)%10,n=e%10,r=`–`,i=`–`;return t>0&&(r=String(t)),(n>0||t>0)&&(i=String(n)),[r,i]}return(ee,h)=>(f(),c(`div`,U,[o(L,{class:`input-form`},{default:p(()=>[o(H,{class:`controller-metal controller-metal-left`}),o(H,{class:`controller-metal controller-metal-right`}),u(`div`,W,[u(`div`,G,[u(`div`,K,[u(`div`,q,[u(`div`,J,[o(v(S),{class:`icon-for-counter`},{default:p(()=>[o(v(N))]),_:1})]),(f(!0),c(y,null,l(d(e.allPlacesCount),(e,t)=>(f(),c(`div`,{key:t,class:`places-text places-text-number`},a(e),1))),128))]),u(`div`,Y,[u(`div`,X,[o(v(S),{class:`icon-for-counter`},{default:p(()=>[o(v(j))]),_:1})]),(f(!0),c(y,null,l(d(e.newPlacesCount),(e,t)=>(f(),c(`div`,{key:t,class:`places-text places-text-number`},a(e),1))),128))])]),u(`div`,Z,[g(u(`input`,{id:`run`,class:`game-input-run`,"onUpdate:modelValue":h[0]||=e=>t.value=e,type:`text`,placeholder:i.gameStatus==`run`?`Место назначения`:`Ходы запрещены`,disabled:i.gameStatus!=`run`},null,8,Q),[[E,t.value]])]),h[4]||=u(`div`,{class:`game-button-run-shadow`},null,-1),u(`button`,{class:`game-button-run`,type:`submit`,disabled:t.value.length==0,onClick:s},[i.gameStatus==`run`?(f(),r(O,{key:0},{default:p(()=>[...h[1]||=[m(`Поехали`,-1)]]),_:1})):n(``,!0),i.gameStatus==`pause`||i.gameStatus==`draft`?(f(),r(O,{key:1},{default:p(()=>[...h[2]||=[m(`Ждём`,-1)]]),_:1})):n(``,!0),i.gameStatus==`finish`?(f(),r(O,{key:2},{default:p(()=>[...h[3]||=[m(`Всё`,-1)]]),_:1})):n(``,!0)],8,ue)])])]),_:1})]))}}),[[`__scopeId`,`data-v-3d06b938`]]),fe={key:0,class:`width700`},pe=[`disabled`],me={key:1,class:`width700`},he={class:`question-text`},ge={class:`qr-block`},_e={key:4,class:`edit-panel`},$=D(s({__name:`TeamStoryPage`,setup(e){let s=ce(),g=ae(),S=oe(),E=h(),D=E.params.id,O=E.query.password,A=b(0),j=b([]),M=b(``),N=b(),P=b({introduction:void 0,places:[],questions:[]}),F=b({ID:void 0,name:void 0,description:void 0,startAt:void 0,status:void 0,format:void 0,location:void 0,scenario:void 0,teams:void 0}),I=b(``),L=`game-review-${D}`,R=b(localStorage.getItem(L)===`1`),z=b(0),B=b(0),V=b(``),H=b(!1),U=window.location.href,W=()=>{let e=N.value;return e?e.scrollHeight-e.scrollTop-e.clientHeight<1:!1};async function G(){let e=P.value,t;try{t=await g.GetTeamStory({ID:Number(D),password:O})}catch(e){M.value=`Не удалось загрузить дело. Попробуйте обновить страницу.`,console.error(`Failed to load team story:`,e);return}M.value=``,F.value=t.game;let n=W();n&&(A.value=0);let r=P.value.places.length;P.value={background:t.story.background,introduction:t.story.introduction,places:t.story.places?.map((t,n)=>(console.log(e?.places[n]?.mode),{place:t,mode:e?.places[n]?.mode||`show`}))||[],questions:t.story.questions||[]},j.value=t.actions||[];let a=P.value.places.length;if(a>r&&r!=0&&(A.value+=a-r),await i(),n&&r!=0){let e=N.value;if(!e)return!1;e.scrollTop=e.scrollHeight}}G(),J();async function K(e){await g.AddTeamAction({ID:Number(D),password:O,code:e}),await G(),I.value=``,await i(),A.value=0}let q=b({});async function J(){let e;try{e=await g.GetTeamAnswers({ID:Number(D),password:O})}catch(e){M.value=`Не удалось загрузить ответы команды. Попробуйте обновить страницу.`,console.error(`Failed to load team answers:`,e);return}M.value=``;let t={};for(let n of e.answers||[])t[n.questionCode||``]=n.answer||``;q.value=t}async function Y(){await g.SubmitTeamAnswers({ID:Number(D),password:O,answers:(P.value.questions||[]).map(e=>({questionCode:e.code,answer:q.value[e.code||``]||``}))}),S.success(`Ответы сохранены`),await J()}let X=_(()=>F.value?.format!==`offline`&&(F.value?.status==`run`||F.value?.status==`pause`)),Z=_(()=>F.value?.format!==`offline`&&(P.value.questions?.length||0)>0),Q={Input:{border:`1px dashed black`,borderDisabled:`1px dashed black`,borderFocus:`1px solid black`,borderHover:`1px dashed black`,boxShadowFocus:`0 0 0 1px black`,caretColor:`black`,color:`transparent`,colorDisabled:`transparent`,colorFocus:`transparent`,fontSizeMedium:`18px`,placeholderColor:`black`,placeholderColorDisabled:`black`,textColor:`black`,textColorDisabled:`black`},Rate:{itemColor:`black`,itemColorHover:`#b8860b`,itemColorActive:`#b8860b`}};async function ue(){if(!z.value||!B.value||V.value.trim()===``){S.error(`Поставьте оценки и напишите отзыв`);return}H.value=!0,await g.CreateGameReview({gameID:Number(F.value?.ID),teamID:Number(D),password:O,rating:z.value,difficulty:B.value,text:V.value.trim()}),H.value=!1,R.value=!0,localStorage.setItem(L,`1`),S.success(`Спасибо за отзыв`)}async function $(){await g.DeleteLastTeamAction({ID:Number(D)}),await G(),I.value=``}return le(()=>{G()},2e3),(e,i)=>{let h=ee(`n-space`);return f(),c(y,null,[P.value.background?(f(),c(`div`,{key:0,class:`case-background`,style:d({backgroundImage:`url(${JSON.stringify(P.value.background)})`}),"aria-hidden":`true`},null,4)):n(``,!0),u(`div`,{class:t([`center-block-custom bottom-margin smooth-scroll`,{"game-finished":F.value?.status===`finish`}]),ref_key:`scrollContainer`,ref:N},[F.value?.status===`finish`?(f(),c(`div`,fe,[o(k,{role:`status`},{default:p(()=>[...i[4]||=[u(`div`,{class:`font`},`Игра завершена. Спасибо за участие!`,-1)]]),_:1}),R.value?n(``,!0):(f(),r(k,{key:0,class:`review-block`},{default:p(()=>[i[7]||=u(`div`,{class:`font`},`Оцените игру`,-1),i[8]||=u(`hr`,{class:`questions-hr`},null,-1),o(v(T),{"theme-overrides":Q},{default:p(()=>[i[5]||=u(`div`,{class:`review-rating font`},`Оценка`,-1),o(v(w),{value:z.value,"onUpdate:value":i[0]||=e=>z.value=e,count:5,class:`review-rate`},null,8,[`value`]),i[6]||=u(`div`,{class:`review-rating font`},`Сложность`,-1),o(v(w),{value:B.value,"onUpdate:value":i[1]||=e=>B.value=e,count:3,class:`review-rate`},null,8,[`value`]),o(v(x),{value:V.value,"onUpdate:value":i[2]||=e=>V.value=e,class:`review-input`,type:`textarea`,autosize:{minRows:4,maxRows:8},placeholder:`Расскажите, как прошла игра`},null,8,[`value`]),o(v(C),{justify:`end`,class:`questions-actions`},{default:p(()=>[u(`button`,{type:`button`,class:`paper-button`,disabled:H.value,onClick:ue},` Отправить отзыв `,8,pe)]),_:1})]),_:1})]),_:1}))])):(f(),c(`div`,me,[M.value?(f(),r(v(ie),{key:0,type:`error`,role:`alert`},{default:p(()=>[m(a(M.value),1)]),_:1})):n(``,!0),o(de,{addAction:K,allPlacesCount:P.value.places.length,newPlacesCount:A.value,gameStatus:F.value?.status||``},null,8,[`allPlacesCount`,`newPlacesCount`,`gameStatus`]),F.value?.format!==`offline`&&F.value?.status&&F.value.status!=`draft`&&P.value.introduction&&(P.value.introduction.text||P.value.introduction.audio)?(f(),r(ne,{key:1,introduction:P.value.introduction,mode:`show`},null,8,[`introduction`])):n(``,!0),Z.value&&F.value?.status&&F.value.status!=`draft`?(f(),r(k,{key:2,class:`questions-block`},{default:p(()=>[i[9]||=u(`div`,{class:`font`},`Вопросы дела`,-1),i[10]||=u(`hr`,{class:`questions-hr`},null,-1),i[11]||=u(`p`,{class:`questions-hint font`},` Ответьте на вопросы дела. Ответы можно менять, пока игра идёт. `,-1),o(v(T),{"theme-overrides":Q},{default:p(()=>[(f(!0),c(y,null,l(P.value.questions,e=>(f(),c(`div`,{key:e.code,class:`question-item font`},[u(`div`,he,a(e.code)+`: `+a(e.text),1),o(v(x),{value:q.value[e.code||``],"onUpdate:value":t=>q.value[e.code||``]=t,type:`textarea`,autosize:{minRows:2,maxRows:6},disabled:!X.value,placeholder:`Ваш ответ...`},null,8,[`value`,`onUpdate:value`,`disabled`])]))),128)),X.value?(f(),r(v(C),{key:0,justify:`end`,class:`questions-actions`},{default:p(()=>[u(`button`,{type:`button`,class:`paper-button`,onClick:i[3]||=e=>Y()},` Сохранить ответы `)]),_:1})):n(``,!0)]),_:1})]),_:1})):n(``,!0),(f(!0),c(y,null,l(P.value.places,(e,t)=>(f(),r(re,{place:e.place,mode:e.mode,"onUpdate:mode":t=>e.mode=t,key:`${F.value?.format}:${e.place.code}`,mcp:v(s).hasRole(`author`)&&j.value[t]?.mcp,addAction:K},null,8,[`place`,`mode`,`onUpdate:mode`,`mcp`]))),128)),P.value.places.length==0&&F.value?.status==`draft`?(f(),r(k,{key:3,class:`qr-main-block`},{default:p(()=>[o(h,{vertical:``},{default:p(()=>[i[12]||=u(`h2`,{class:`qr-main-block-text`},`Это код этого дела`,-1),i[13]||=u(`p`,{class:`qr-main-block-text`},`Поделись с командой`,-1),u(`div`,ge,[o(v(se),{value:v(U),size:300,padding:0},null,8,[`value`])]),i[14]||=u(`p`,{class:`qr-main-block-text`},`Игра скоро начнется`,-1)]),_:1})]),_:1})):n(``,!0),v(s).hasRole(`author`)&&P.value.places.length>0?(f(),c(`div`,_e,[o(v(C),{justify:`end`},{default:p(()=>[o(v(te),{onClick:$},{default:p(()=>[...i[15]||=[m(`Удалить последний ход`,-1)]]),_:1})]),_:1})])):n(``,!0)]))],2)],64)}}}),[[`__scopeId`,`data-v-6b0532ed`]]),ve=s({__name:`TeamStoryView`,setup(e){return(e,t)=>(f(),r($))}});export{ve as default}; \ No newline at end of file diff --git a/frontend/dist/assets/TicketScannerView-CCl0qPXf.css b/frontend/dist/assets/TicketScannerView-CCl0qPXf.css deleted file mode 100644 index d6b6ec9..0000000 --- a/frontend/dist/assets/TicketScannerView-CCl0qPXf.css +++ /dev/null @@ -1 +0,0 @@ -.scanner-page[data-v-42390d77]{padding:20px}.scanner-card[data-v-42390d77]{width:100%;max-width:700px}.scanner-video[data-v-42390d77]{aspect-ratio:1;object-fit:cover;background:#000;width:100%} diff --git a/frontend/dist/assets/TicketScannerView-CTELQxSO.js b/frontend/dist/assets/TicketScannerView-CTELQxSO.js deleted file mode 100644 index 7c64608..0000000 --- a/frontend/dist/assets/TicketScannerView-CTELQxSO.js +++ /dev/null @@ -1 +0,0 @@ -import{D as e,E as t,G as n,H as r,Ht as i,M as a,N as o,O as s,T as c,X as l,ct as u,j as d,q as f,u as p,w as m,wt as h,y as g,yt as _}from"./client-CT8bsOZT.js";import{t as v}from"./Card-BX9nnwGC.js";import{t as y}from"./Button-D8HO8D_D.js";import{t as b}from"./Input-B3ERgh42.js";import{t as x}from"./Alert-CWmvp18Y.js";import{n as S,r as C}from"./es-BS8VS4O3.js";import{t as w}from"./Space-B8J_02Fa.js";import{nt as T,t as E}from"./index-oex1uI7H.js";import{t as D}from"./HeaderMenu--hCKWQY2.js";import{t as O}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as k}from"./datetime-BJNH0M1T.js";var A={class:`center-block-custom center-middle-block-custom scanner-page`},j={key:0},M={key:1},N={key:2},P=O(o({__name:`TicketScannerPage`,setup(o){let O=E(),P=p(),F=S(),I=C(),L=_(``),R=_(),z=_(``),B=_(!1),V=_(),H=_(!1),U,W=0,G=m(()=>{try{return new URL(L.value.trim()).pathname.match(/\/tickets\/([^/]+)/)?.[1]||``}catch{return L.value.trim()}});async function K(){if(!(!G.value||B.value)){B.value=!0,z.value=``,R.value=void 0;try{let e=await F.GetTicket({token:G.value});e.ticket?R.value=e.ticket:z.value=`Билет не найден`}catch(e){z.value=e instanceof Error?e.message:`Не удалось проверить билет`}finally{B.value=!1}}}async function q(){if(!(!G.value||B.value)){B.value=!0,z.value=``;try{let e=await F.AcceptTicket({token:G.value});e.ticket?(R.value=e.ticket,I.success(`Билет принят`)):z.value=`Не удалось принять билет`}catch(e){z.value=e instanceof Error?e.message:`Не удалось принять билет`}finally{B.value=!1}}}async function J(){let e=window.BarcodeDetector;if(!e||!navigator.mediaDevices?.getUserMedia){z.value=`Сканирование камерой не поддерживается. Введите ссылку вручную.`;return}try{U=await navigator.mediaDevices.getUserMedia({video:{facingMode:`environment`}}),H.value=!0,await r(),V.value&&(V.value.srcObject=U,await V.value.play());let t=new e,n=async()=>{if(!H.value||!V.value)return;let e=await t.detect(V.value);if(e[0]?.rawValue){L.value=e[0].rawValue,Y(),await K();return}W=requestAnimationFrame(n)};W=requestAnimationFrame(n)}catch{z.value=`Не удалось открыть камеру. Введите ссылку вручную.`}}function Y(){H.value=!1,cancelAnimationFrame(W),U?.getTracks().forEach(e=>e.stop()),U=void 0}return f(()=>{O.isAuthenticated||P.replace(`/login`)}),n(Y),(n,r)=>(l(),s(g,null,[a(D,{active:`games`}),c(`div`,A,[a(h(v),{title:`Проверка билета`,class:`scanner-card`},{default:u(()=>[a(h(w),{vertical:``},{default:u(()=>[H.value?(l(),s(`video`,{key:0,ref_key:`video`,ref:V,class:`scanner-video`,muted:``,playsinline:``},null,512)):e(``,!0),H.value?(l(),t(h(y),{key:2,onClick:Y},{default:u(()=>[...r[2]||=[d(`Остановить камеру`,-1)]]),_:1})):(l(),t(h(y),{key:1,onClick:J},{default:u(()=>[...r[1]||=[d(`Сканировать камерой`,-1)]]),_:1})),a(h(b),{value:L.value,"onUpdate:value":r[0]||=e=>L.value=e,placeholder:`Или вставьте ссылку на билет`,onKeyup:T(K,[`enter`])},null,8,[`value`]),a(h(y),{type:`primary`,loading:B.value,onClick:K},{default:u(()=>[...r[3]||=[d(`Проверить билет`,-1)]]),_:1},8,[`loading`]),z.value?(l(),t(h(x),{key:3,type:`error`},{default:u(()=>[d(i(z.value),1)]),_:1})):e(``,!0),R.value?(l(),s(g,{key:4},[a(h(x),{type:R.value.status===`active`?`success`:`warning`},{default:u(()=>[d(i(R.value.gameName),1),r[4]||=c(`br`,null,null,-1),d(` Статус: `+i(R.value.status===`active`?`действителен`:`уже использован`)+` `,1),R.value.usedBy?(l(),s(`span`,j,` · `+i(R.value.usedBy),1)):e(``,!0),R.value.usedAt?(l(),s(`br`,M)):e(``,!0),R.value.usedAt?(l(),s(`span`,N,`Использован: `+i(h(k)(R.value.usedAt)),1)):e(``,!0)]),_:1},8,[`type`]),R.value.status===`active`&&R.value.gameStatus!==`finish`?(l(),t(h(y),{key:0,type:`primary`,loading:B.value,onClick:q},{default:u(()=>[...r[5]||=[d(` Принять билет `,-1)]]),_:1},8,[`loading`])):e(``,!0)],64)):e(``,!0)]),_:1})]),_:1})])],64))}}),[[`__scopeId`,`data-v-42390d77`]]),F=o({__name:`TicketScannerView`,setup(e){return(e,n)=>(l(),t(P))}});export{F as default}; \ No newline at end of file diff --git a/frontend/dist/assets/TicketView-BIpPaETb.js b/frontend/dist/assets/TicketView-BIpPaETb.js deleted file mode 100644 index 378f19c..0000000 --- a/frontend/dist/assets/TicketView-BIpPaETb.js +++ /dev/null @@ -1 +0,0 @@ -import{E as e,Ht as t,M as n,N as r,O as i,T as a,X as o,ct as s,j as c,l,q as u,t as d,w as f,wt as p,y as m,yt as h}from"./client-CT8bsOZT.js";import{t as g}from"./Button-D8HO8D_D.js";import{t as _}from"./QrCode-VQE44Zo-.js";import{t as v}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as y}from"./datetime-BJNH0M1T.js";import{t as b}from"./MessagePaper-DDMbPgod.js";var x={class:`ticket-page center-block-custom`},S={class:`width700`},C={class:`ticket-card`},w={key:0,class:`error`,role:`alert`},T={class:`qr-block`},E={class:`used`,role:`status`},D={key:1,class:`used`,role:`status`},O=v(r({__name:`TicketPage`,setup(r){let v=l(),O=d(),k=f(()=>String(v.params.token||``)),A=h(),j=h(!1),M=h(``),N=f(()=>window.location.href);async function P(){j.value=!0,M.value=``;try{let e=await O.GetTicket({token:k.value});if(!e.ticket){M.value=`Билет не найден`;return}A.value=e.ticket}catch{M.value=`Не удалось загрузить билет. Попробуйте ещё раз.`}finally{j.value=!1}}return u(P),(r,l)=>(o(),i(`div`,x,[a(`div`,S,[n(b,null,{default:s(()=>[a(`div`,C,[l[7]||=a(`p`,{class:`ticket-kicker`},`ВЕЧЕРНИЙ ДЕТЕКТИВ · ПРОПУСК`,-1),l[8]||=a(`h1`,null,`Билет на игру`,-1),M.value?(o(),i(`p`,w,t(M.value),1)):A.value?(o(),i(m,{key:1},[a(`h2`,null,t(A.value.gameName),1),l[5]||=a(`hr`,null,null,-1),a(`dl`,null,[a(`div`,null,[l[0]||=a(`dt`,null,`Начало`,-1),a(`dd`,null,t(p(y)(A.value.startAt)),1)]),a(`div`,null,[l[1]||=a(`dt`,null,`Место`,-1),a(`dd`,null,t(A.value.location||`Онлайн`),1)])]),a(`div`,T,[n(p(_),{value:N.value,size:300,padding:0},null,8,[`value`])]),l[6]||=a(`p`,null,`Покажите этот QR-код организатору.`,-1),A.value.status===`used`?(o(),i(m,{key:0},[l[2]||=a(`hr`,null,null,-1),a(`p`,E,` Билет уже использован`+t(A.value.usedAt?` ${p(y)(A.value.usedAt)}`:``)+t(A.value.usedBy?` организатором ${A.value.usedBy}`:``)+`. `,1)],64)):A.value.gameStatus===`finish`?(o(),i(`p`,D,` Игра уже завершена. `)):(o(),i(m,{key:2},[l[3]||=a(`hr`,null,null,-1),l[4]||=a(`p`,{class:`active`,role:`status`},`Билет действителен.`,-1)],64))],64)):(o(),e(p(g),{key:2,loading:j.value,onClick:P},{default:s(()=>[c(t(j.value?`Загрузка`:`Повторить`),1)]),_:1},8,[`loading`]))])]),_:1})])]))}}),[[`__scopeId`,`data-v-f8e89dbd`]]),k=r({__name:`TicketView`,setup(t){return(t,n)=>(o(),e(O))}});export{k as default}; \ No newline at end of file diff --git a/frontend/dist/assets/Upload-DWDjLEkv.js b/frontend/dist/assets/Upload-DWDjLEkv.js deleted file mode 100644 index d301ae8..0000000 --- a/frontend/dist/assets/Upload-DWDjLEkv.js +++ /dev/null @@ -1,440 +0,0 @@ -import{Ct as e,G as t,H as n,I as r,N as i,R as a,St as o,Vt as s,Z as c,b as l,d as u,f as d,h as f,lt as p,m,ot as h,p as g,q as _,st as v,w as y,y as b,yt as x}from"./client-CT8bsOZT.js";import{G as S,H as C,K as w,M as T,N as E,V as D,W as O,n as k,o as A,q as j,r as M,t as ee}from"./light-DhgSQSdG.js";import{u as te}from"./Follower-Bm7xH84Z.js";import{d as N,u as P}from"./Card-BX9nnwGC.js";import{a as F,i as ne,t as re}from"./fade-in-scale-up.cssr-DOaveAHn.js";import{t as I}from"./use-merged-state-CRia4_FA.js";import{a as ie,t as L}from"./Button-D8HO8D_D.js";import{n as R,t as ae}from"./Popover-D_PD8cLD.js";import{n as z,r as B}from"./use-form-item-CBXe24ar.js";import{o as V}from"./get-0R_rx1dU.js";import{r as H}from"./resolve-slot-BEScaVot.js";import{r as oe}from"./Suffix-BVApm8eE.js";import{t as U}from"./Add-D3YI1YD1.js";import{n as se}from"./Input-B3ERgh42.js";import{t as W}from"./fade-in.cssr-9JVxREOe.js";import{B as ce,H as le,I as ue,L as de,P as fe,Q as G,R as K,T as q,U as J,V as Y,W as X,X as pe,Y as me,Z as he,c as ge,r as _e,tt as ve,v as ye,z as be}from"./index-oex1uI7H.js";function xe(e,t){if(!e)return;let n=document.createElement(`a`);n.href=e,t!==void 0&&(n.download=t),document.body.appendChild(n),n.click(),document.body.removeChild(n)}function Se(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++ir(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},r(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},r(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},r(`path`,{d:`M3.25735931,8.70710678 L7.85355339,4.1109127 C8.82986412,3.13460197 10.4127766,3.13460197 11.3890873,4.1109127 C12.365398,5.08722343 12.365398,6.67013588 11.3890873,7.64644661 L6.08578644,12.9497475 C5.69526215,13.3402718 5.06209717,13.3402718 4.67157288,12.9497475 C4.28104858,12.5592232 4.28104858,11.9260582 4.67157288,11.5355339 L9.97487373,6.23223305 C10.1701359,6.0369709 10.1701359,5.72038841 9.97487373,5.52512627 C9.77961159,5.32986412 9.4630291,5.32986412 9.26776695,5.52512627 L3.96446609,10.8284271 C3.18341751,11.6094757 3.18341751,12.8758057 3.96446609,13.6568542 C4.74551468,14.4379028 6.01184464,14.4379028 6.79289322,13.6568542 L12.0961941,8.35355339 C13.4630291,6.98671837 13.4630291,4.77064094 12.0961941,3.40380592 C10.7293591,2.0369709 8.51328163,2.0369709 7.14644661,3.40380592 L2.55025253,8 C2.35499039,8.19526215 2.35499039,8.51184464 2.55025253,8.70710678 C2.74551468,8.90236893 3.06209717,8.90236893 3.25735931,8.70710678 Z`}))))),yt=Y(`cancel`,()=>r(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},r(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},r(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},r(`path`,{d:`M2.58859116,2.7156945 L2.64644661,2.64644661 C2.82001296,2.47288026 3.08943736,2.45359511 3.2843055,2.58859116 L3.35355339,2.64644661 L8,7.293 L12.6464466,2.64644661 C12.8417088,2.45118446 13.1582912,2.45118446 13.3535534,2.64644661 C13.5488155,2.84170876 13.5488155,3.15829124 13.3535534,3.35355339 L8.707,8 L13.3535534,12.6464466 C13.5271197,12.820013 13.5464049,13.0894374 13.4114088,13.2843055 L13.3535534,13.3535534 C13.179987,13.5271197 12.9105626,13.5464049 12.7156945,13.4114088 L12.6464466,13.3535534 L8,8.707 L3.35355339,13.3535534 C3.15829124,13.5488155 2.84170876,13.5488155 2.64644661,13.3535534 C2.45118446,13.1582912 2.45118446,12.8417088 2.64644661,12.6464466 L7.293,8 L2.64644661,3.35355339 C2.47288026,3.17998704 2.45359511,2.91056264 2.58859116,2.7156945 L2.64644661,2.64644661 L2.58859116,2.7156945 Z`}))))),bt=Y(`download`,()=>r(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},r(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},r(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},r(`path`,{d:`M3.5,13 L12.5,13 C12.7761424,13 13,13.2238576 13,13.5 C13,13.7454599 12.8231248,13.9496084 12.5898756,13.9919443 L12.5,14 L3.5,14 C3.22385763,14 3,13.7761424 3,13.5 C3,13.2545401 3.17687516,13.0503916 3.41012437,13.0080557 L3.5,13 L12.5,13 L3.5,13 Z M7.91012437,1.00805567 L8,1 C8.24545989,1 8.44960837,1.17687516 8.49194433,1.41012437 L8.5,1.5 L8.5,10.292 L11.1819805,7.6109127 C11.3555469,7.43734635 11.6249713,7.4180612 11.8198394,7.55305725 L11.8890873,7.6109127 C12.0626536,7.78447906 12.0819388,8.05390346 11.9469427,8.2487716 L11.8890873,8.31801948 L8.35355339,11.8535534 C8.17998704,12.0271197 7.91056264,12.0464049 7.7156945,11.9114088 L7.64644661,11.8535534 L4.1109127,8.31801948 C3.91565056,8.12275734 3.91565056,7.80617485 4.1109127,7.6109127 C4.28447906,7.43734635 4.55390346,7.4180612 4.7487716,7.55305725 L4.81801948,7.6109127 L7.5,10.292 L7.5,1.5 C7.5,1.25454011 7.67687516,1.05039163 7.91012437,1.00805567 L8,1 L7.91012437,1.00805567 Z`}))))),xt=i({name:`ResizeSmall`,render(){return r(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`},r(`g`,{fill:`none`},r(`path`,{d:`M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z`,fill:`currentColor`})))}}),St=Y(`retry`,()=>r(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},r(`path`,{d:`M320,146s24.36-12-64-12A160,160,0,1,0,416,294`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-miterlimit: 10; stroke-width: 32px;`}),r(`polyline`,{points:`256 58 336 138 256 218`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}))),Ct=Y(`rotateClockwise`,()=>r(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},r(`path`,{d:`M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z`,fill:`currentColor`}),r(`path`,{d:`M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z`,fill:`currentColor`}))),wt=Y(`rotateClockwise`,()=>r(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},r(`path`,{d:`M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z`,fill:`currentColor`}),r(`path`,{d:`M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z`,fill:`currentColor`}))),Tt=Y(`trash`,()=>r(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},r(`path`,{d:`M432,144,403.33,419.74A32,32,0,0,1,371.55,448H140.46a32,32,0,0,1-31.78-28.26L80,144`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}),r(`rect`,{x:`32`,y:`64`,width:`448`,height:`80`,rx:`16`,ry:`16`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}),r(`line`,{x1:`312`,y1:`240`,x2:`200`,y2:`352`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}),r(`line`,{x1:`312`,y1:`352`,x2:`200`,y2:`240`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}))),Et=Y(`zoomIn`,()=>r(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},r(`path`,{d:`M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z`,fill:`currentColor`}),r(`path`,{d:`M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z`,fill:`currentColor`}))),Dt=Y(`zoomOut`,()=>r(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},r(`path`,{d:`M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z`,fill:`currentColor`}),r(`path`,{d:`M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z`,fill:`currentColor`}))),Ot=ie&&`loading`in document.createElement(`img`);function kt(e={}){let{root:t=null}=e;return{hash:`${e.rootMargin||`0px 0px 0px 0px`}-${Array.isArray(e.threshold)?e.threshold.join(`,`):e.threshold??`0`}`,options:Object.assign(Object.assign({},e),{root:(typeof t==`string`?document.querySelector(t):t)||document.documentElement})}}var At=new WeakMap,jt=new WeakMap,Mt=new WeakMap,Nt=(e,t,n)=>{if(!e)return()=>{};let r=kt(t),{root:i}=r.options,a,o=At.get(i);o?a=o:(a=new Map,At.set(i,a));let s,c;a.has(r.hash)?(c=a.get(r.hash),c[1].has(e)||(s=c[0],c[1].add(e),s.observe(e))):(s=new IntersectionObserver(e=>{e.forEach(e=>{if(e.isIntersecting){let t=jt.get(e.target),n=Mt.get(e.target);t&&t(),n&&(n.value=!0)}})},r.options),s.observe(e),c=[s,new Set([e])],a.set(r.hash,c));let l=!1,u=()=>{l||(jt.delete(e),Mt.delete(e),l=!0,c[1].has(e)&&(c[0].unobserve(e),c[1].delete(e)),c[1].size<=0&&a.delete(r.hash),a.size||At.delete(i))};return jt.set(e,u),Mt.set(e,n),u},Pt=i({name:`Tooltip`,props:Object.assign(Object.assign({},R),M.props),slots:Object,__popover__:!0,setup(e){let{mergedClsPrefixRef:t}=E(e),n=M(`Tooltip`,`-tooltip`,void 0,ye,e,t),r=x(null);return Object.assign(Object.assign({},{syncPosition(){r.value.syncPosition()},setShow(e){r.value.setShow(e)}}),{popoverRef:r,mergedTheme:n,popoverThemeOverrides:y(()=>n.value.self)})},render(){let{mergedTheme:e,internalExtraClass:t}=this;return r(ae,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat(`tooltip`),ref:`popoverRef`}),this.$slots)}});function Ft(){return{toolbarIconColor:`rgba(255, 255, 255, .9)`,toolbarColor:`rgba(0, 0, 0, .35)`,toolbarBoxShadow:`none`,toolbarBorderRadius:`24px`}}var It=k({name:`Image`,common:ee,peers:{Tooltip:ye},self:Ft});function Lt(){return r(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},r(`path`,{d:`M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z`,fill:`currentColor`}))}function Rt(){return r(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},r(`path`,{d:`M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z`,fill:`currentColor`}))}function zt(){return r(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},r(`path`,{d:`M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z`,fill:`currentColor`}))}var Bt=Object.assign(Object.assign({},M.props),{onPreviewPrev:Function,onPreviewNext:Function,showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean,renderToolbar:Function}),Vt=m(`n-image`),Ht=D([D(`body >`,[C(`image-container`,`position: fixed;`)]),C(`image-preview-container`,` - position: fixed; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - `),C(`image-preview-overlay`,` - z-index: -1; - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - background: rgba(0, 0, 0, .3); - `,[W()]),C(`image-preview-toolbar`,` - z-index: 1; - position: absolute; - left: 50%; - transform: translateX(-50%); - border-radius: var(--n-toolbar-border-radius); - height: 48px; - bottom: 40px; - padding: 0 12px; - background: var(--n-toolbar-color); - box-shadow: var(--n-toolbar-box-shadow); - color: var(--n-toolbar-icon-color); - transition: color .3s var(--n-bezier); - display: flex; - align-items: center; - `,[C(`base-icon`,` - padding: 0 8px; - font-size: 28px; - cursor: pointer; - `),W()]),C(`image-preview-wrapper`,` - position: absolute; - left: 0; - right: 0; - top: 0; - bottom: 0; - display: flex; - pointer-events: none; - `,[re()]),C(`image-preview`,` - user-select: none; - -webkit-user-select: none; - pointer-events: all; - margin: auto; - max-height: calc(100vh - 32px); - max-width: calc(100vw - 32px); - transition: transform .3s var(--n-bezier); - `),C(`image`,` - display: inline-flex; - max-height: 100%; - max-width: 100%; - `,[w(`preview-disabled`,` - cursor: pointer; - `),D(`img`,` - border-radius: inherit; - `)])]),Ut=32,Wt=i({name:`ImagePreview`,props:Object.assign(Object.assign({},Bt),{src:String,show:{type:Boolean,default:void 0},defaultShow:Boolean,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],onNext:Function,onPrev:Function,onClose:[Function,Array]}),setup(n){let{src:i}=e(n),{mergedClsPrefixRef:c}=E(n),l=M(`Image`,`-image`,Ht,It,n,c),u=null,d=x(null),f=x(null),p=x(!1),{localeRef:m}=oe(`Image`),g=x(n.defaultShow),_=I(o(n,`show`),g);function v(){let{value:e}=f;if(!u||!e)return;let{style:t}=e,n=u.getBoundingClientRect();t.transformOrigin=`${n.left+n.width/2}px ${n.top+n.height/2}px`}function b(e){var t,r;switch(e.key){case` `:e.preventDefault();break;case`ArrowLeft`:(t=n.onPrev)==null||t.call(n);break;case`ArrowRight`:(r=n.onNext)==null||r.call(n);break;case`ArrowUp`:e.preventDefault(),K();break;case`ArrowDown`:e.preventDefault(),q();break;case`Escape`:X();break}}function S(e){let{onUpdateShow:t,"onUpdate:show":r}=n;t&&B(t,e),r&&B(r,e),g.value=e,p.value=!0}h(_,e=>{e?N(`keydown`,document,b):P(`keydown`,document,b)}),t(()=>{P(`keydown`,document,b)});let C=0,w=0,D=0,O=0,k=0,A=0,j=0,ee=0,F=!1;function ne(e){let{clientX:t,clientY:n}=e;D=t-C,O=n-w,te(Y)}function re(e){let{mouseUpClientX:t,mouseUpClientY:n,mouseDownClientX:r,mouseDownClientY:i}=e,a=r-t,o=i-n;return{moveVerticalDirection:`vertical${o>0?`Top`:`Bottom`}`,moveHorizontalDirection:`horizontal${a>0?`Left`:`Right`}`,deltaHorizontal:a,deltaVertical:o}}function ie(e){let{value:t}=d;if(!t)return{offsetX:0,offsetY:0};let n=t.getBoundingClientRect(),{moveVerticalDirection:r,moveHorizontalDirection:i,deltaHorizontal:a,deltaVertical:o}=e||{},s=0,c=0;return s=n.width<=window.innerWidth?0:n.left>0?(n.width-window.innerWidth)/2:n.right0?(n.height-window.innerHeight)/2:n.bottom.5){let e=H;--V,H=Math.max(.5,z**V);let t=e-H;Y(!1);let n=ie();H+=t,Y(!1),H-=t,D=n.offsetX,O=n.offsetY,Y()}}function J(){let e=i.value;e&&xe(e,void 0)}function Y(e=!0){let{value:t}=d;if(!t)return;let{style:n}=t,r=s(R?.previewedImgPropsRef.value?.style),i=``;if(typeof r==`string`)i=`${r};`;else for(let e in r)i+=`${_t(e)}: ${r[e]};`;let a=`transform-origin: center; transform: translateX(${D}px) translateY(${O}px) rotate(${U}deg) scale(${H});`;F?n.cssText=`${i}cursor: grabbing; transition: none;${a}`:n.cssText=`${i}cursor: grab;${a}${e?``:`transition: none;`}`,e||t.offsetHeight}function X(){if(_.value){let{onClose:e}=n;e&&B(e),S(!1),g.value=!1}}function pe(){H=G(),V=Math.ceil(Math.log(H)/Math.log(z)),D=0,O=0,Y()}let he={setThumbnailEl:e=>{u=e}};function ge(e,t){if(n.showToolbarTooltip){let{value:n}=l;return r(Pt,{to:!1,theme:n.peers.Tooltip,themeOverrides:n.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>m.value[t],trigger:()=>e})}else return e}let _e=y(()=>{let{common:{cubicBezierEaseInOut:e},self:{toolbarIconColor:t,toolbarBorderRadius:n,toolbarBoxShadow:r,toolbarColor:i}}=l.value;return{"--n-bezier":e,"--n-toolbar-icon-color":t,"--n-toolbar-color":i,"--n-toolbar-border-radius":n,"--n-toolbar-box-shadow":r}}),{inlineThemeDisabled:ve}=E(),ye=ve?T(`image-preview`,void 0,_e,n):void 0;function be(e){e.preventDefault()}return Object.assign({clsPrefix:c,previewRef:d,previewWrapperRef:f,previewSrc:i,mergedShow:_,appear:me(),displayed:p,previewedImgProps:R?.previewedImgPropsRef,handleWheel:be,handlePreviewMousedown:ae,handlePreviewDblclick:se,syncTransformOrigin:v,handleAfterLeave:()=>{W(),U=0,p.value=!1},handleDragStart:e=>{var t,n;(n=(t=R?.previewedImgPropsRef.value)?.onDragstart)==null||n.call(t,e),e.preventDefault()},zoomIn:K,zoomOut:q,handleDownloadClick:J,rotateCounterclockwise:ue,rotateClockwise:de,handleSwitchPrev:ce,handleSwitchNext:le,withTooltip:ge,resizeToOrignalImageSize:pe,cssVars:ve?void 0:_e,themeClass:ye?.themeClass,onRender:ye?.onRender,doUpdateShow:S,close:X},he)},render(){var e;let{clsPrefix:t,renderToolbar:n,withTooltip:i}=this,a=i(r(J,{clsPrefix:t,onClick:this.handleSwitchPrev},{default:Lt}),`tipPrevious`),o=i(r(J,{clsPrefix:t,onClick:this.handleSwitchNext},{default:Rt}),`tipNext`),s=i(r(J,{clsPrefix:t,onClick:this.rotateCounterclockwise},{default:()=>r(wt,null)}),`tipCounterclockwise`),c=i(r(J,{clsPrefix:t,onClick:this.rotateClockwise},{default:()=>r(Ct,null)}),`tipClockwise`),l=i(r(J,{clsPrefix:t,onClick:this.resizeToOrignalImageSize},{default:()=>r(xt,null)}),`tipOriginalSize`),u=i(r(J,{clsPrefix:t,onClick:this.zoomOut},{default:()=>r(Dt,null)}),`tipZoomOut`),d=i(r(J,{clsPrefix:t,onClick:this.handleDownloadClick},{default:()=>r(bt,null)}),`tipDownload`),f=i(r(J,{clsPrefix:t,onClick:()=>this.close()},{default:zt}),`tipClose`),m=i(r(J,{clsPrefix:t,onClick:this.zoomIn},{default:()=>r(Et,null)}),`tipZoomIn`);return r(b,null,(e=this.$slots).default?.call(e),r(ne,{show:this.mergedShow},{default:()=>{var e;return this.mergedShow||this.displayed?((e=this.onRender)==null||e.call(this),p(r(`div`,{ref:`containerRef`,class:[`${t}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},r(G,{name:`fade-in-transition`,appear:this.appear},{default:()=>this.mergedShow?r(`div`,{class:`${t}-image-preview-overlay`,onClick:()=>this.close()}):null}),this.showToolbar?r(G,{name:`fade-in-transition`,appear:this.appear},{default:()=>this.mergedShow?r(`div`,{class:`${t}-image-preview-toolbar`},n?n({nodes:{prev:a,next:o,rotateCounterclockwise:s,rotateClockwise:c,resizeToOriginalSize:l,zoomOut:u,zoomIn:m,download:d,close:f}}):r(b,null,this.onPrev?r(b,null,a,o):null,s,c,l,u,m,d,f)):null}):null,r(G,{name:`fade-in-scale-up-transition`,onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>{let{previewedImgProps:e={}}=this;return p(r(`div`,{class:`${t}-image-preview-wrapper`,ref:`previewWrapperRef`},r(`img`,Object.assign({},e,{draggable:!1,onMousedown:this.handlePreviewMousedown,onDblclick:this.handlePreviewDblclick,class:[`${t}-image-preview`,e.class],key:this.previewSrc,src:this.previewSrc,ref:`previewRef`,onDragstart:this.handleDragStart}))),[[ve,this.mergedShow]])}})),[[F,{enabled:this.mergedShow}]])):null}}))}}),Gt=m(`n-image-group`),Kt=i({name:`ImageGroup`,props:Object.assign(Object.assign({},Bt),{srcList:Array,current:Number,defaultCurrent:{type:Number,default:0},show:{type:Boolean,default:void 0},defaultShow:Boolean,onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],onUpdateCurrent:[Function,Array],"onUpdate:current":[Function,Array]}),setup(e){let{mergedClsPrefixRef:t}=E(e),n=`c${he()}`,r=x(null),i=x(e.defaultShow),a=I(o(e,`show`),i),s=x(new Map),l=y(()=>{if(e.srcList){let t=new Map;return e.srcList.forEach((e,n)=>{t.set(`p${n}`,e)}),t}return s.value}),u=y(()=>Array.from(l.value.keys())),f=()=>u.value.length;function p(t,n){e.srcList&&d(`image-group`,"`n-image` can't be placed inside `n-image-group` when image group's `src-list` prop is set.");let r=`r${t}`;return s.value.has(`r${r}`)||s.value.set(r,n),function(){s.value.has(r)||s.value.delete(r)}}let m=x(e.defaultCurrent),h=I(o(e,`current`),m),g=t=>{if(t!==h.value){let{onUpdateCurrent:n,"onUpdate:current":r}=e;n&&B(n,t),r&&B(r,t),m.value=t}},_=y(()=>u.value[h.value]),v=e=>{let t=u.value.indexOf(e);t!==h.value&&g(t)},b=y(()=>l.value.get(_.value));function S(t){let{onUpdateShow:n,"onUpdate:show":r}=e;n&&B(n,t),r&&B(r,t),i.value=t}function C(){S(!1)}let w=y(()=>{let e=(e,t)=>{for(let n=e;n<=t;n++){let e=u.value[n];if(l.value.get(e))return n}},t=e(h.value+1,f()-1);return t===void 0?e(0,h.value-1):t}),T=y(()=>{let e=(e,t)=>{for(let n=e;n>=t;n--){let e=u.value[n];if(l.value.get(e))return n}},t=e(h.value-1,0);return t===void 0?e(f()-1,h.value+1):t});function D(t){var n,r;t===1?(T.value!==void 0&&g(w.value),(n=e.onPreviewNext)==null||n.call(e)):(w.value!==void 0&&g(T.value),(r=e.onPreviewPrev)==null||r.call(e))}return c(Gt,{mergedClsPrefixRef:t,registerImageUrl:p,setThumbnailEl:e=>{var t;(t=r.value)==null||t.setThumbnailEl(e)},toggleShow:e=>{S(!0),v(e)},groupId:n,renderToolbarRef:o(e,`renderToolbar`)}),{mergedClsPrefix:t,previewInstRef:r,mergedShow:a,src:b,onClose:C,next:()=>{D(1)},prev:()=>{D(-1)}}},render(){return r(Wt,{theme:this.theme,themeOverrides:this.themeOverrides,ref:`previewInstRef`,onPrev:this.prev,onNext:this.next,src:this.src,show:this.mergedShow,showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip,renderToolbar:this.renderToolbar,onClose:this.onClose},this.$slots)}}),qt=Object.assign({alt:String,height:[String,Number],imgProps:Object,previewedImgProps:Object,lazy:Boolean,intersectionObserverOptions:Object,objectFit:{type:String,default:`fill`},previewSrc:String,fallbackSrc:String,width:[String,Number],src:String,previewDisabled:Boolean,loadDescription:String,onError:Function,onLoad:Function},Bt),Jt=0,Yt=i({name:`Image`,props:qt,slots:Object,inheritAttrs:!1,setup(e){let n=x(null),r=x(!1),i=x(null),s=a(Gt,null),{mergedClsPrefixRef:l}=s||E(e),u=y(()=>e.previewSrc||e.src),d=x(!1),f=Jt++,p=()=>{if(e.previewDisabled||r.value)return;if(s){s.setThumbnailEl(n.value),s.toggleShow(`r${f}`);return}let{value:t}=i;t&&(t.setThumbnailEl(n.value),d.value=!0)},m={click:()=>{p()},showPreview:p},h=x(!e.lazy);_(()=>{var e;(e=n.value)==null||e.setAttribute(`data-group-id`,s?.groupId||``)}),_(()=>{if(e.lazy&&e.intersectionObserverOptions){let r,i=v(()=>{r?.(),r=void 0,r=Nt(n.value,e.intersectionObserverOptions,h)});t(()=>{i(),r?.()})}}),v(()=>{var t;e.src||(t=e.imgProps)==null||t.src,r.value=!1}),v(e=>{let t=(s?.registerImageUrl)?.call(s,f,u.value||``);e(()=>{t?.()})});function g(t){var n,r;m.showPreview(),(r=(n=e.imgProps)?.onClick)==null||r.call(n,t)}function b(){d.value=!1}let S=x(!1);return c(Vt,{previewedImgPropsRef:o(e,`previewedImgProps`)}),Object.assign({mergedClsPrefix:l,groupId:s?.groupId,previewInstRef:i,imageRef:n,mergedPreviewSrc:u,showError:r,shouldStartLoading:h,loaded:S,mergedOnClick:e=>{g(e)},onPreviewClose:b,mergedOnError:t=>{if(!h.value)return;r.value=!0;let{onError:n,imgProps:{onError:i}={}}=e;n?.(t),i?.(t)},mergedOnLoad:t=>{let{onLoad:n,imgProps:{onLoad:r}={}}=e;n?.(t),r?.(t),S.value=!0},previewShow:d},m)},render(){var e;let{mergedClsPrefix:t,imgProps:n={},loaded:i,$attrs:a,lazy:o}=this,s=H(this.$slots.error,()=>[]),c=(e=this.$slots).placeholder?.call(e),l=this.src||n.src,u=this.showError&&s.length?s:r(`img`,Object.assign(Object.assign({},n),{ref:`imageRef`,width:this.width||n.width,height:this.height||n.height,src:this.showError?this.fallbackSrc:o&&this.intersectionObserverOptions?this.shouldStartLoading?l:void 0:l,alt:this.alt||n.alt,"aria-label":this.alt||n.alt,onClick:this.mergedOnClick,onError:this.mergedOnError,onLoad:this.mergedOnLoad,loading:Ot&&o&&!this.intersectionObserverOptions?`lazy`:`eager`,style:[n.style||``,c&&!i?{height:`0`,width:`0`,visibility:`hidden`}:``,{objectFit:this.objectFit}],"data-error":this.showError,"data-preview-src":this.previewSrc||this.src}));return r(`div`,Object.assign({},a,{role:`none`,class:[a.class,`${t}-image`,(this.previewDisabled||this.showError)&&`${t}-image--preview-disabled`]}),this.groupId?u:r(Wt,{theme:this.theme,themeOverrides:this.themeOverrides,ref:`previewInstRef`,showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip,renderToolbar:this.renderToolbar,src:this.mergedPreviewSrc,show:!this.previewDisabled&&this.previewShow,onClose:this.onPreviewClose},{default:()=>u}),!i&&c)}}),Xt={success:r(K,null),error:r(ce,null),warning:r(de,null),info:r(be,null)},Zt=i({name:`ProgressCircle`,props:{clsPrefix:{type:String,required:!0},status:{type:String,required:!0},strokeWidth:{type:Number,required:!0},fillColor:[String,Object],railColor:String,railStyle:[String,Object],percentage:{type:Number,default:0},offsetDegree:{type:Number,default:0},showIndicator:{type:Boolean,required:!0},indicatorTextColor:String,unit:String,viewBoxWidth:{type:Number,required:!0},gapDegree:{type:Number,required:!0},gapOffsetDegree:{type:Number,default:0}},setup(e,{slots:t}){let n=y(()=>{let t=`gradient`,{fillColor:n}=e;return typeof n==`object`?`${t}-${f(JSON.stringify(n))}`:t});function i(t,r,i,a){let{gapDegree:o,viewBoxWidth:s,strokeWidth:c}=e,l=50+c/2,u=`M ${l},${l} m 0,50 - a 50,50 0 1 1 0,-100 - a 50,50 0 1 1 0,100`,d=Math.PI*2*50;return{pathString:u,pathStyle:{stroke:a===`rail`?i:typeof e.fillColor==`object`?`url(#${n.value})`:i,strokeDasharray:`${Math.min(t,100)/100*(d-o)}px ${s*8}px`,strokeDashoffset:`-${o/2}px`,transformOrigin:r?`center`:void 0,transform:r?`rotate(${r}deg)`:void 0}}}let a=()=>{let t=typeof e.fillColor==`object`,i=t?e.fillColor.stops[0]:``,a=t?e.fillColor.stops[1]:``;return t&&r(`defs`,null,r(`linearGradient`,{id:n.value,x1:`0%`,y1:`100%`,x2:`100%`,y2:`0%`},r(`stop`,{offset:`0%`,"stop-color":i}),r(`stop`,{offset:`100%`,"stop-color":a})))};return()=>{let{fillColor:n,railColor:o,strokeWidth:s,offsetDegree:c,status:l,percentage:u,showIndicator:d,indicatorTextColor:f,unit:p,gapOffsetDegree:m,clsPrefix:h}=e,{pathString:g,pathStyle:_}=i(100,0,o,`rail`),{pathString:v,pathStyle:y}=i(u,c,n,`fill`),b=100+s;return r(`div`,{class:`${h}-progress-content`,role:`none`},r(`div`,{class:`${h}-progress-graph`,"aria-hidden":!0},r(`div`,{class:`${h}-progress-graph-circle`,style:{transform:m?`rotate(${m}deg)`:void 0}},r(`svg`,{viewBox:`0 0 ${b} ${b}`},a(),r(`g`,null,r(`path`,{class:`${h}-progress-graph-circle-rail`,d:g,"stroke-width":s,"stroke-linecap":`round`,fill:`none`,style:_})),r(`g`,null,r(`path`,{class:[`${h}-progress-graph-circle-fill`,u===0&&`${h}-progress-graph-circle-fill--empty`],d:v,"stroke-width":s,"stroke-linecap":`round`,fill:`none`,style:y}))))),d?r(`div`,null,t.default?r(`div`,{class:`${h}-progress-custom-content`,role:`none`},t.default()):l==="default"?r(`div`,{class:`${h}-progress-text`,style:{color:f},role:`none`},r(`span`,{class:`${h}-progress-text__percentage`},u),r(`span`,{class:`${h}-progress-text__unit`},p)):r(`div`,{class:`${h}-progress-icon`,"aria-hidden":!0},r(J,{clsPrefix:h},{default:()=>Xt[l]}))):null)}}}),Qt={success:r(K,null),error:r(ce,null),warning:r(de,null),info:r(be,null)},$t=i({name:`ProgressLine`,props:{clsPrefix:{type:String,required:!0},percentage:{type:Number,default:0},railColor:String,railStyle:[String,Object],fillColor:[String,Object],status:{type:String,required:!0},indicatorPlacement:{type:String,required:!0},indicatorTextColor:String,unit:{type:String,default:`%`},processing:{type:Boolean,required:!0},showIndicator:{type:Boolean,required:!0},height:[String,Number],railBorderRadius:[String,Number],fillBorderRadius:[String,Number]},setup(e,{slots:t}){let n=y(()=>V(e.height)),i=y(()=>typeof e.fillColor==`object`?`linear-gradient(to right, ${e.fillColor?.stops[0]} , ${e.fillColor?.stops[1]})`:e.fillColor),a=y(()=>e.railBorderRadius===void 0?e.height===void 0?``:V(e.height,{c:.5}):V(e.railBorderRadius)),o=y(()=>e.fillBorderRadius===void 0?e.railBorderRadius===void 0?e.height===void 0?``:V(e.height,{c:.5}):V(e.railBorderRadius):V(e.fillBorderRadius));return()=>{let{indicatorPlacement:s,railColor:c,railStyle:l,percentage:u,unit:d,indicatorTextColor:f,status:p,showIndicator:m,processing:h,clsPrefix:g}=e;return r(`div`,{class:`${g}-progress-content`,role:`none`},r(`div`,{class:`${g}-progress-graph`,"aria-hidden":!0},r(`div`,{class:[`${g}-progress-graph-line`,{[`${g}-progress-graph-line--indicator-${s}`]:!0}]},r(`div`,{class:`${g}-progress-graph-line-rail`,style:[{backgroundColor:c,height:n.value,borderRadius:a.value},l]},r(`div`,{class:[`${g}-progress-graph-line-fill`,h&&`${g}-progress-graph-line-fill--processing`],style:{maxWidth:`${e.percentage}%`,background:i.value,height:n.value,lineHeight:n.value,borderRadius:o.value}},s===`inside`?r(`div`,{class:`${g}-progress-graph-line-indicator`,style:{color:f}},t.default?t.default():`${u}${d}`):null)))),m&&s===`outside`?r(`div`,null,t.default?r(`div`,{class:`${g}-progress-custom-content`,style:{color:f},role:`none`},t.default()):p==="default"?r(`div`,{role:`none`,class:`${g}-progress-icon ${g}-progress-icon--as-text`,style:{color:f}},u,d):r(`div`,{class:`${g}-progress-icon`,"aria-hidden":!0},r(J,{clsPrefix:g},{default:()=>Qt[p]}))):null)}}});function en(e,t,n=100){return`m ${n/2} ${n/2-e} a ${e} ${e} 0 1 1 0 ${2*e} a ${e} ${e} 0 1 1 0 -${2*e}`}var tn=i({name:`ProgressMultipleCircle`,props:{clsPrefix:{type:String,required:!0},viewBoxWidth:{type:Number,required:!0},percentage:{type:Array,default:[0]},strokeWidth:{type:Number,required:!0},circleGap:{type:Number,required:!0},showIndicator:{type:Boolean,required:!0},fillColor:{type:Array,default:()=>[]},railColor:{type:Array,default:()=>[]},railStyle:{type:Array,default:()=>[]}},setup(e,{slots:t}){let n=y(()=>e.percentage.map((t,n)=>`${Math.PI*t/100*(e.viewBoxWidth/2-e.strokeWidth/2*(1+2*n)-e.circleGap*n)*2}, ${e.viewBoxWidth*8}`)),i=(t,n)=>{let i=e.fillColor[n],a=typeof i==`object`?i.stops[0]:``,o=typeof i==`object`?i.stops[1]:``;return typeof e.fillColor[n]==`object`&&r(`linearGradient`,{id:`gradient-${n}`,x1:`100%`,y1:`0%`,x2:`0%`,y2:`100%`},r(`stop`,{offset:`0%`,"stop-color":a}),r(`stop`,{offset:`100%`,"stop-color":o}))};return()=>{let{viewBoxWidth:a,strokeWidth:o,circleGap:s,showIndicator:c,fillColor:l,railColor:u,railStyle:d,percentage:f,clsPrefix:p}=e;return r(`div`,{class:`${p}-progress-content`,role:`none`},r(`div`,{class:`${p}-progress-graph`,"aria-hidden":!0},r(`div`,{class:`${p}-progress-graph-circle`},r(`svg`,{viewBox:`0 0 ${a} ${a}`},r(`defs`,null,f.map((e,t)=>i(e,t))),f.map((e,t)=>r(`g`,{key:t},r(`path`,{class:`${p}-progress-graph-circle-rail`,d:en(a/2-o/2*(1+2*t)-s*t,o,a),"stroke-width":o,"stroke-linecap":`round`,fill:`none`,style:[{strokeDashoffset:0,stroke:u[t]},d[t]]}),r(`path`,{class:[`${p}-progress-graph-circle-fill`,e===0&&`${p}-progress-graph-circle-fill--empty`],d:en(a/2-o/2*(1+2*t)-s*t,o,a),"stroke-width":o,"stroke-linecap":`round`,fill:`none`,style:{strokeDasharray:n.value[t],strokeDashoffset:0,stroke:typeof l[t]==`object`?`url(#gradient-${t})`:l[t]}})))))),c&&t.default?r(`div`,null,r(`div`,{class:`${p}-progress-text`},t.default())):null)}}}),nn=D([C(`progress`,{display:`inline-block`},[C(`progress-icon`,` - color: var(--n-icon-color); - transition: color .3s var(--n-bezier); - `),S(`line`,` - width: 100%; - display: block; - `,[C(`progress-content`,` - display: flex; - align-items: center; - `,[C(`progress-graph`,{flex:1})]),C(`progress-custom-content`,{marginLeft:`14px`}),C(`progress-icon`,` - width: 30px; - padding-left: 14px; - height: var(--n-icon-size-line); - line-height: var(--n-icon-size-line); - font-size: var(--n-icon-size-line); - `,[S(`as-text`,` - color: var(--n-text-color-line-outer); - text-align: center; - width: 40px; - font-size: var(--n-font-size); - padding-left: 4px; - transition: color .3s var(--n-bezier); - `)])]),S(`circle, dashboard`,{width:`120px`},[C(`progress-custom-content`,` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - justify-content: center; - `),C(`progress-text`,` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - color: inherit; - font-size: var(--n-font-size-circle); - color: var(--n-text-color-circle); - font-weight: var(--n-font-weight-circle); - transition: color .3s var(--n-bezier); - white-space: nowrap; - `),C(`progress-icon`,` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - color: var(--n-icon-color); - font-size: var(--n-icon-size-circle); - `)]),S(`multiple-circle`,` - width: 200px; - color: inherit; - `,[C(`progress-text`,` - font-weight: var(--n-font-weight-circle); - color: var(--n-text-color-circle); - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - display: flex; - align-items: center; - justify-content: center; - transition: color .3s var(--n-bezier); - `)]),C(`progress-content`,{position:`relative`}),C(`progress-graph`,{position:`relative`},[C(`progress-graph-circle`,[D(`svg`,{verticalAlign:`bottom`}),C(`progress-graph-circle-fill`,` - stroke: var(--n-fill-color); - transition: - opacity .3s var(--n-bezier), - stroke .3s var(--n-bezier), - stroke-dasharray .3s var(--n-bezier); - `,[S(`empty`,{opacity:0})]),C(`progress-graph-circle-rail`,` - transition: stroke .3s var(--n-bezier); - overflow: hidden; - stroke: var(--n-rail-color); - `)]),C(`progress-graph-line`,[S(`indicator-inside`,[C(`progress-graph-line-rail`,` - height: 16px; - line-height: 16px; - border-radius: 10px; - `,[C(`progress-graph-line-fill`,` - height: inherit; - border-radius: 10px; - `),C(`progress-graph-line-indicator`,` - background: #0000; - white-space: nowrap; - text-align: right; - margin-left: 14px; - margin-right: 14px; - height: inherit; - font-size: 12px; - color: var(--n-text-color-line-inner); - transition: color .3s var(--n-bezier); - `)])]),S(`indicator-inside-label`,` - height: 16px; - display: flex; - align-items: center; - `,[C(`progress-graph-line-rail`,` - flex: 1; - transition: background-color .3s var(--n-bezier); - `),C(`progress-graph-line-indicator`,` - background: var(--n-fill-color); - font-size: 12px; - transform: translateZ(0); - display: flex; - vertical-align: middle; - height: 16px; - line-height: 16px; - padding: 0 10px; - border-radius: 10px; - position: absolute; - white-space: nowrap; - color: var(--n-text-color-line-inner); - transition: - right .2s var(--n-bezier), - color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - `)]),C(`progress-graph-line-rail`,` - position: relative; - overflow: hidden; - height: var(--n-rail-height); - border-radius: 5px; - background-color: var(--n-rail-color); - transition: background-color .3s var(--n-bezier); - `,[C(`progress-graph-line-fill`,` - background: var(--n-fill-color); - position: relative; - border-radius: 5px; - height: inherit; - width: 100%; - max-width: 0%; - transition: - background-color .3s var(--n-bezier), - max-width .2s var(--n-bezier); - `,[S(`processing`,[D(`&::after`,` - content: ""; - background-image: var(--n-line-bg-processing); - animation: progress-processing-animation 2s var(--n-bezier) infinite; - `)])])])])])]),D(`@keyframes progress-processing-animation`,` - 0% { - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 100%; - opacity: 1; - } - 66% { - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 0; - opacity: 0; - } - 100% { - position: absolute; - left: 0; - top: 0; - bottom: 0; - right: 0; - opacity: 0; - } - `)]),rn=i({name:`Progress`,props:Object.assign(Object.assign({},M.props),{processing:Boolean,type:{type:String,default:`line`},gapDegree:Number,gapOffsetDegree:Number,status:{type:String,default:`default`},railColor:[String,Array],railStyle:[String,Array],color:[String,Array,Object],viewBoxWidth:{type:Number,default:100},strokeWidth:{type:Number,default:7},percentage:[Number,Array],unit:{type:String,default:`%`},showIndicator:{type:Boolean,default:!0},indicatorPosition:{type:String,default:`outside`},indicatorPlacement:{type:String,default:`outside`},indicatorTextColor:String,circleGap:{type:Number,default:1},height:Number,borderRadius:[String,Number],fillBorderRadius:[String,Number],offsetDegree:Number}),setup(e){let t=y(()=>e.indicatorPlacement||e.indicatorPosition),n=y(()=>{if(e.gapDegree||e.gapDegree===0)return e.gapDegree;if(e.type===`dashboard`)return 75}),{mergedClsPrefixRef:r,inlineThemeDisabled:i}=E(e),a=M(`Progress`,`-progress`,nn,ge,e,r),o=y(()=>{let{status:t}=e,{common:{cubicBezierEaseInOut:n},self:{fontSize:r,fontSizeCircle:i,railColor:o,railHeight:s,iconSizeCircle:c,iconSizeLine:l,textColorCircle:u,textColorLineInner:d,textColorLineOuter:f,lineBgProcessing:p,fontWeightCircle:m,[j(`iconColor`,t)]:h,[j(`fillColor`,t)]:g}}=a.value;return{"--n-bezier":n,"--n-fill-color":g,"--n-font-size":r,"--n-font-size-circle":i,"--n-font-weight-circle":m,"--n-icon-color":h,"--n-icon-size-circle":c,"--n-icon-size-line":l,"--n-line-bg-processing":p,"--n-rail-color":o,"--n-rail-height":s,"--n-text-color-circle":u,"--n-text-color-line-inner":d,"--n-text-color-line-outer":f}}),s=i?T(`progress`,y(()=>e.status[0]),o,e):void 0;return{mergedClsPrefix:r,mergedIndicatorPlacement:t,gapDeg:n,cssVars:i?void 0:o,themeClass:s?.themeClass,onRender:s?.onRender}},render(){let{type:e,cssVars:t,indicatorTextColor:n,showIndicator:i,status:a,railColor:o,railStyle:s,color:c,percentage:l,viewBoxWidth:u,strokeWidth:d,mergedIndicatorPlacement:f,unit:p,borderRadius:m,fillBorderRadius:h,height:g,processing:_,circleGap:v,mergedClsPrefix:y,gapDeg:b,gapOffsetDegree:x,themeClass:S,$slots:C,onRender:w}=this;return w?.(),r(`div`,{class:[S,`${y}-progress`,`${y}-progress--${e}`,`${y}-progress--${a}`],style:t,"aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":l,role:e===`circle`||e===`line`||e===`dashboard`?`progressbar`:`none`},e===`circle`||e===`dashboard`?r(Zt,{clsPrefix:y,status:a,showIndicator:i,indicatorTextColor:n,railColor:o,fillColor:c,railStyle:s,offsetDegree:this.offsetDegree,percentage:l,viewBoxWidth:u,strokeWidth:d,gapDegree:b===void 0?e===`dashboard`?75:0:b,gapOffsetDegree:x,unit:p},C):e===`line`?r($t,{clsPrefix:y,status:a,showIndicator:i,indicatorTextColor:n,railColor:o,fillColor:c,railStyle:s,percentage:l,processing:_,indicatorPlacement:f,unit:p,fillBorderRadius:h,railBorderRadius:m,height:g},C):e===`multiple-circle`?r(tn,{clsPrefix:y,strokeWidth:d,railColor:o,fillColor:c,railStyle:s,viewBoxWidth:u,percentage:l,showIndicator:i,circleGap:v},C):null)}}),Q=m(`n-upload`),an=D([C(`upload`,`width: 100%;`,[S(`dragger-inside`,[C(`upload-trigger`,` - display: block; - `)]),S(`drag-over`,[C(`upload-dragger`,` - border: var(--n-dragger-border-hover); - `)])]),C(`upload-dragger`,` - cursor: pointer; - box-sizing: border-box; - width: 100%; - text-align: center; - border-radius: var(--n-border-radius); - padding: 24px; - opacity: 1; - transition: - opacity .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - background-color: var(--n-dragger-color); - border: var(--n-dragger-border); - `,[D(`&:hover`,` - border: var(--n-dragger-border-hover); - `),S(`disabled`,` - cursor: not-allowed; - `)]),C(`upload-trigger`,` - display: inline-block; - box-sizing: border-box; - opacity: 1; - transition: opacity .3s var(--n-bezier); - `,[D(`+`,[C(`upload-file-list`,`margin-top: 8px;`)]),S(`disabled`,` - opacity: var(--n-item-disabled-opacity); - cursor: not-allowed; - `),S(`image-card`,` - width: 96px; - height: 96px; - `,[C(`base-icon`,` - font-size: 24px; - `),C(`upload-dragger`,` - padding: 0; - height: 100%; - width: 100%; - display: flex; - align-items: center; - justify-content: center; - `)])]),C(`upload-file-list`,` - line-height: var(--n-line-height); - opacity: 1; - transition: opacity .3s var(--n-bezier); - `,[D(`a, img`,`outline: none;`),S(`disabled`,` - opacity: var(--n-item-disabled-opacity); - cursor: not-allowed; - `,[C(`upload-file`,`cursor: not-allowed;`)]),S(`grid`,` - display: grid; - grid-template-columns: repeat(auto-fill, 96px); - grid-gap: 8px; - margin-top: 0; - `),C(`upload-file`,` - display: block; - box-sizing: border-box; - cursor: default; - padding: 0px 12px 0 6px; - transition: background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - `,[q(),C(`progress`,[q({foldPadding:!0})]),D(`&:hover`,` - background-color: var(--n-item-color-hover); - `,[C(`upload-file-info`,[O(`action`,` - opacity: 1; - `)])]),S(`image-type`,` - border-radius: var(--n-border-radius); - text-decoration: underline; - text-decoration-color: #0000; - `,[C(`upload-file-info`,` - padding-top: 0px; - padding-bottom: 0px; - width: 100%; - height: 100%; - display: flex; - justify-content: space-between; - align-items: center; - padding: 6px 0; - `,[C(`progress`,` - padding: 2px 0; - margin-bottom: 0; - `),O(`name`,` - padding: 0 8px; - `),O(`thumbnail`,` - width: 32px; - height: 32px; - font-size: 28px; - display: flex; - justify-content: center; - align-items: center; - `,[D(`img`,` - width: 100%; - `)])])]),S(`text-type`,[C(`progress`,` - box-sizing: border-box; - padding-bottom: 6px; - margin-bottom: 6px; - `)]),S(`image-card-type`,` - position: relative; - width: 96px; - height: 96px; - border: var(--n-item-border-image-card); - border-radius: var(--n-border-radius); - padding: 0; - display: flex; - align-items: center; - justify-content: center; - transition: border-color .3s var(--n-bezier), background-color .3s var(--n-bezier); - border-radius: var(--n-border-radius); - overflow: hidden; - `,[C(`progress`,` - position: absolute; - left: 8px; - bottom: 8px; - right: 8px; - width: unset; - `),C(`upload-file-info`,` - padding: 0; - width: 100%; - height: 100%; - `,[O(`thumbnail`,` - width: 100%; - height: 100%; - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - font-size: 36px; - `,[D(`img`,` - width: 100%; - `)])]),D(`&::before`,` - position: absolute; - z-index: 1; - left: 0; - right: 0; - top: 0; - bottom: 0; - border-radius: inherit; - opacity: 0; - transition: opacity .2s var(--n-bezier); - content: ""; - `),D(`&:hover`,[D(`&::before`,`opacity: 1;`),C(`upload-file-info`,[O(`thumbnail`,`opacity: .12;`)])])]),S(`error-status`,[D(`&:hover`,` - background-color: var(--n-item-color-hover-error); - `),C(`upload-file-info`,[O(`name`,`color: var(--n-item-text-color-error);`),O(`thumbnail`,`color: var(--n-item-text-color-error);`)]),S(`image-card-type`,` - border: var(--n-item-border-image-card-error); - `)]),S(`with-url`,` - cursor: pointer; - `,[C(`upload-file-info`,[O(`name`,` - color: var(--n-item-text-color-success); - text-decoration-color: var(--n-item-text-color-success); - `,[D(`a`,` - text-decoration: underline; - `)])])]),C(`upload-file-info`,` - position: relative; - padding-top: 6px; - padding-bottom: 6px; - display: flex; - flex-wrap: nowrap; - `,[O(`thumbnail`,` - font-size: 18px; - opacity: 1; - transition: opacity .2s var(--n-bezier); - color: var(--n-item-icon-color); - `,[C(`base-icon`,` - margin-right: 2px; - vertical-align: middle; - transition: color .3s var(--n-bezier); - `)]),O(`action`,` - padding-top: inherit; - padding-bottom: inherit; - position: absolute; - right: 0; - top: 0; - bottom: 0; - width: 80px; - display: flex; - align-items: center; - transition: opacity .2s var(--n-bezier); - justify-content: flex-end; - opacity: 0; - `,[C(`button`,[D(`&:not(:last-child)`,{marginRight:`4px`}),C(`base-icon`,[D(`svg`,[ue()])])]),S(`image-type`,` - position: relative; - max-width: 80px; - width: auto; - `),S(`image-card-type`,` - z-index: 2; - position: absolute; - width: 100%; - height: 100%; - left: 0; - right: 0; - bottom: 0; - top: 0; - display: flex; - justify-content: center; - align-items: center; - `)]),O(`name`,` - color: var(--n-item-text-color); - flex: 1; - display: flex; - justify-content: center; - text-overflow: ellipsis; - overflow: hidden; - flex-direction: column; - text-decoration-color: #0000; - font-size: var(--n-font-size); - transition: - color .3s var(--n-bezier), - text-decoration-color .3s var(--n-bezier); - `,[D(`a`,` - color: inherit; - text-decoration: underline; - `)])])])]),C(`upload-file-input`,` - display: none; - width: 0; - height: 0; - opacity: 0; - `)]),on=i({name:`UploadDragger`,__UPLOAD_DRAGGER__:!0,setup(e,{slots:t}){let n=a(Q,null);return n||d(`upload-dragger`,"`n-upload-dragger` must be placed inside `n-upload`."),()=>{let{mergedClsPrefixRef:{value:e},mergedDisabledRef:{value:i},maxReachedRef:{value:a}}=n;return r(`div`,{class:[`${e}-upload-dragger`,(i||a)&&`${e}-upload-dragger--disabled`]},t)}}});function sn(){return r(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 28 28`},r(`g`,{fill:`none`},r(`path`,{d:`M21.75 3A3.25 3.25 0 0 1 25 6.25v15.5A3.25 3.25 0 0 1 21.75 25H6.25A3.25 3.25 0 0 1 3 21.75V6.25A3.25 3.25 0 0 1 6.25 3h15.5zm.583 20.4l-7.807-7.68a.75.75 0 0 0-.968-.07l-.084.07l-7.808 7.68c.183.065.38.1.584.1h15.5c.204 0 .4-.035.583-.1l-7.807-7.68l7.807 7.68zM21.75 4.5H6.25A1.75 1.75 0 0 0 4.5 6.25v15.5c0 .208.036.408.103.593l7.82-7.692a2.25 2.25 0 0 1 3.026-.117l.129.117l7.82 7.692c.066-.185.102-.385.102-.593V6.25a1.75 1.75 0 0 0-1.75-1.75zm-3.25 3a2.5 2.5 0 1 1 0 5a2.5 2.5 0 0 1 0-5zm0 1.5a1 1 0 1 0 0 2a1 1 0 0 0 0-2z`,fill:`currentColor`})))}function cn(){return r(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 28 28`},r(`g`,{fill:`none`},r(`path`,{d:`M6.4 2A2.4 2.4 0 0 0 4 4.4v19.2A2.4 2.4 0 0 0 6.4 26h15.2a2.4 2.4 0 0 0 2.4-2.4V11.578c0-.729-.29-1.428-.805-1.944l-6.931-6.931A2.4 2.4 0 0 0 14.567 2H6.4zm-.9 2.4a.9.9 0 0 1 .9-.9H14V10a2 2 0 0 0 2 2h6.5v11.6a.9.9 0 0 1-.9.9H6.4a.9.9 0 0 1-.9-.9V4.4zm16.44 6.1H16a.5.5 0 0 1-.5-.5V4.06l6.44 6.44z`,fill:`currentColor`})))}var ln=i({name:`UploadProgress`,props:{show:Boolean,percentage:{type:Number,required:!0},status:{type:String,required:!0}},setup(){return{mergedTheme:a(Q).mergedThemeRef}},render(){return r(fe,null,{default:()=>this.show?r(rn,{type:`line`,showIndicator:!1,percentage:this.percentage,status:this.status,height:2,theme:this.mergedTheme.peers.Progress,themeOverrides:this.mergedTheme.peerOverrides.Progress}):null})}}),un=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function dn(e){return e.includes(`image/`)}function fn(e=``){let t=e.split(`/`),n=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(n)||[``])[0]}var pn=/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico)$/i,mn=e=>{if(e.type)return dn(e.type);let t=fn(e.name||``);if(pn.test(t))return!0;let n=e.thumbnailUrl||e.url||``,r=fn(n);return!!(/^data:image\//.test(n)||pn.test(r))};function hn(e){return un(this,void 0,void 0,function*(){return yield new Promise(t=>{if(!e.type||!dn(e.type)){t(``);return}t(window.URL.createObjectURL(e))})})}var gn=ie&&window.FileReader&&window.File;function _n(e){return e.isDirectory}function vn(e){return e.isFile}function yn(e,t){return un(this,void 0,void 0,function*(){let n=[];function r(e){return un(this,void 0,void 0,function*(){for(let i of e)if(i){if(t&&_n(i)){let e=i.createReader(),t=[],n;try{do n=yield new Promise((t,n)=>{e.readEntries(t,n)}),t=t.concat(n);while(n.length>0)}catch(e){u(`upload`,`error happens when handling directory upload`,e)}yield r(t)}else if(vn(i))try{let e=yield new Promise((e,t)=>{i.file(e,t)});n.push({file:e,entry:i,source:`dnd`})}catch(e){u(`upload`,`error happens when handling file upload`,e)}}})}return yield r(e),n})}function $(e){let{id:t,name:n,percentage:r,status:i,url:a,file:o,thumbnailUrl:s,type:c,fullPath:l,batchId:u}=e;return{id:t,name:n,percentage:r??null,status:i,url:a??null,file:o??null,thumbnailUrl:s??null,type:c??null,fullPath:l??null,batchId:u??null}}function bn(e,t,n){return e=e.toLowerCase(),t=t.toLocaleLowerCase(),n=n.toLocaleLowerCase(),n.split(`,`).map(e=>e.trim()).filter(Boolean).some(n=>{if(n.startsWith(`.`)){if(e.endsWith(n))return!0}else if(n.includes(`/`)){let[e,r]=t.split(`/`),[i,a]=n.split(`/`);if((i===`*`||e&&i&&i===e)&&(a===`*`||r&&a&&a===r))return!0}else return!0;return!1})}var xn=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},Sn={paddingMedium:`0 3px`,heightMedium:`24px`,iconSizeMedium:`18px`},Cn=i({name:`UploadFile`,props:{clsPrefix:{type:String,required:!0},file:{type:Object,required:!0},listType:{type:String,required:!0},index:{type:Number,required:!0}},setup(e){let t=a(Q),n=x(null),r=x(``),i=y(()=>{let{file:t}=e;return t.status===`finished`?`success`:t.status===`error`?`error`:`info`}),o=y(()=>{let{file:t}=e;if(t.status===`error`)return`error`}),s=y(()=>{let{file:t}=e;return t.status===`uploading`}),c=y(()=>{if(!t.showCancelButtonRef.value)return!1;let{file:n}=e;return[`uploading`,`pending`,`error`].includes(n.status)}),l=y(()=>{if(!t.showRemoveButtonRef.value)return!1;let{file:n}=e;return[`finished`].includes(n.status)}),u=y(()=>{if(!t.showDownloadButtonRef.value)return!1;let{file:n}=e;return[`finished`].includes(n.status)}),d=y(()=>{if(!t.showRetryButtonRef.value)return!1;let{file:n}=e;return[`error`].includes(n.status)}),f=pe(()=>r.value||e.file.thumbnailUrl||e.file.url),p=y(()=>{if(!t.showPreviewButtonRef.value)return!1;let{file:{status:n},listType:r}=e;return[`finished`].includes(n)&&f.value&&r===`image-card`});function m(){return xn(this,void 0,void 0,function*(){let n=t.onRetryRef.value;n&&(yield n({file:e.file}))===!1||t.submit({fileId:e.file.id})})}function h(t){t.preventDefault();let{file:n}=e;[`finished`,`pending`,`error`].includes(n.status)?b(n):[`uploading`].includes(n.status)?C(n):g(`upload`,`The button clicked type is unknown.`)}function _(t){t.preventDefault(),S(e.file)}function b(n){let{xhrMap:r,doChange:i,onRemoveRef:{value:a},mergedFileListRef:{value:o}}=t;Promise.resolve(a?a({file:Object.assign({},n),fileList:o,index:e.index}):!0).then(e=>{if(e===!1)return;let t=Object.assign({},n,{status:`removed`});r.delete(n.id),i(t,void 0,{remove:!0})})}function S(e){let{onDownloadRef:{value:n},customDownloadRef:{value:r}}=t;Promise.resolve(n?n(Object.assign({},e)):!0).then(t=>{t!==!1&&(r?r(Object.assign({},e)):xe(e.url,e.name))})}function C(e){let{xhrMap:n}=t;n.get(e.id)?.abort(),b(Object.assign({},e))}function w(r){let{onPreviewRef:{value:i}}=t;if(i)i(e.file,{event:r});else if(e.listType===`image-card`){let{value:e}=n;if(!e)return;e.showPreview()}}let T=()=>xn(this,void 0,void 0,function*(){let{listType:n}=e;n!==`image`&&n!==`image-card`||t.shouldUseThumbnailUrlRef.value(e.file)&&(r.value=yield t.getFileThumbnailUrlResolver(e.file))});return v(()=>{T()}),{mergedTheme:t.mergedThemeRef,progressStatus:i,buttonType:o,showProgress:s,disabled:t.mergedDisabledRef,showCancelButton:c,showRemoveButton:l,showDownloadButton:u,showRetryButton:d,showPreviewButton:p,mergedThumbnailUrl:f,shouldUseThumbnailUrl:t.shouldUseThumbnailUrlRef,renderIcon:t.renderIconRef,imageRef:n,handleRemoveOrCancelClick:h,handleDownloadClick:_,handleRetryClick:m,handlePreviewClick:w}},render(){let{clsPrefix:e,mergedTheme:t,listType:n,file:i,renderIcon:a}=this,o,s=n===`image`;o=s||n===`image-card`?!this.shouldUseThumbnailUrl(i)||!this.mergedThumbnailUrl?r(`span`,{class:`${e}-upload-file-info__thumbnail`},a?a(i):mn(i)?r(J,{clsPrefix:e},{default:sn}):r(J,{clsPrefix:e},{default:cn})):r(`a`,{rel:`noopener noreferer`,target:`_blank`,href:i.url||void 0,class:`${e}-upload-file-info__thumbnail`,onClick:this.handlePreviewClick},n===`image-card`?r(Yt,{src:this.mergedThumbnailUrl||void 0,previewSrc:i.url||void 0,alt:i.name,ref:`imageRef`}):r(`img`,{src:this.mergedThumbnailUrl||void 0,alt:i.name})):r(`span`,{class:`${e}-upload-file-info__thumbnail`},a?a(i):r(J,{clsPrefix:e},{default:()=>r(vt,null)}));let c=r(ln,{show:this.showProgress,percentage:i.percentage||0,status:this.progressStatus}),l=n===`text`||n===`image`;return r(`div`,{class:[`${e}-upload-file`,`${e}-upload-file--${this.progressStatus}-status`,i.url&&i.status!==`error`&&n!==`image-card`&&`${e}-upload-file--with-url`,`${e}-upload-file--${n}-type`]},r(`div`,{class:`${e}-upload-file-info`},o,r(`div`,{class:`${e}-upload-file-info__name`},l&&(i.url&&i.status!==`error`?r(`a`,{rel:`noopener noreferer`,target:`_blank`,href:i.url||void 0,onClick:this.handlePreviewClick},i.name):r(`span`,{onClick:this.handlePreviewClick},i.name)),s&&c),r(`div`,{class:[`${e}-upload-file-info__action`,`${e}-upload-file-info__action--${n}-type`]},this.showPreviewButton?r(L,{key:`preview`,quaternary:!0,type:this.buttonType,onClick:this.handlePreviewClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:Sn},{icon:()=>r(J,{clsPrefix:e},{default:()=>r(se,null)})}):null,(this.showRemoveButton||this.showCancelButton)&&!this.disabled&&r(L,{key:`cancelOrTrash`,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,quaternary:!0,builtinThemeOverrides:Sn,type:this.buttonType,onClick:this.handleRemoveOrCancelClick},{icon:()=>r(le,null,{default:()=>this.showRemoveButton?r(J,{clsPrefix:e,key:`trash`},{default:()=>r(Tt,null)}):r(J,{clsPrefix:e,key:`cancel`},{default:()=>r(yt,null)})})}),this.showRetryButton&&!this.disabled&&r(L,{key:`retry`,quaternary:!0,type:this.buttonType,onClick:this.handleRetryClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:Sn},{icon:()=>r(J,{clsPrefix:e},{default:()=>r(St,null)})}),this.showDownloadButton?r(L,{key:`download`,quaternary:!0,type:this.buttonType,onClick:this.handleDownloadClick,theme:t.peers.Button,themeOverrides:t.peerOverrides.Button,builtinThemeOverrides:Sn},{icon:()=>r(J,{clsPrefix:e},{default:()=>r(bt,null)})}):null)),!s&&c)}}),wn=i({name:`UploadTrigger`,props:{abstract:Boolean},slots:Object,setup(e,{slots:t}){let n=a(Q,null);n||d(`upload-trigger`,"`n-upload-trigger` must be placed inside `n-upload`.");let{mergedClsPrefixRef:i,mergedDisabledRef:o,maxReachedRef:s,listTypeRef:c,dragOverRef:l,openOpenFileDialog:u,draggerInsideRef:f,handleFileAddition:p,mergedDirectoryDndRef:m,triggerClassRef:h,triggerStyleRef:g}=n,_=y(()=>c.value===`image-card`);function v(){o.value||s.value||u()}function b(e){e.preventDefault(),l.value=!0}function x(e){e.preventDefault(),l.value=!0}function S(e){e.preventDefault(),l.value=!1}function C(e){if(e.preventDefault(),!f.value||o.value||s.value){l.value=!1;return}let t=e.dataTransfer?.items;t?.length?yn(Array.from(t).map(e=>e.webkitGetAsEntry()),m.value).then(e=>{p(e)}).finally(()=>{l.value=!1}):l.value=!1}return()=>{let{value:n}=i;return e.abstract?t.default?.call(t,{handleClick:v,handleDrop:C,handleDragOver:b,handleDragEnter:x,handleDragLeave:S}):r(`div`,{class:[`${n}-upload-trigger`,(o.value||s.value)&&`${n}-upload-trigger--disabled`,_.value&&`${n}-upload-trigger--image-card`,h.value],style:g.value,onClick:v,onDrop:C,onDragover:b,onDragenter:x,onDragleave:S},_.value?r(on,null,{default:()=>H(t.default,()=>[r(J,{clsPrefix:n},{default:()=>r(U,null)})])}):t)}}}),Tn=i({name:`UploadFileList`,setup(e,{slots:t}){let n=a(Q,null);n||d(`upload-file-list`,"`n-upload-file-list` must be placed inside `n-upload`.");let{abstractRef:i,mergedClsPrefixRef:o,listTypeRef:s,mergedFileListRef:c,fileListClassRef:l,fileListStyleRef:u,cssVarsRef:f,themeClassRef:p,maxReachedRef:m,showTriggerRef:h,imageGroupPropsRef:g}=n,_=y(()=>s.value===`image-card`),v=()=>c.value.map((e,t)=>r(Cn,{clsPrefix:o.value,key:e.id,file:e,index:t,listType:s.value})),b=()=>_.value?r(Kt,Object.assign({},g.value),{default:v}):r(fe,{group:!0},{default:v});return()=>{let{value:e}=o,{value:n}=i;return r(`div`,{class:[`${e}-upload-file-list`,_.value&&`${e}-upload-file-list--grid`,n?p?.value:void 0,l.value],style:[n&&f?f.value:``,u.value]},b(),h.value&&!m.value&&_.value&&r(wn,null,t))}}}),En=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})};function Dn(e,t,n){let{doChange:r,xhrMap:i}=e,a=0;function o(n){let o=Object.assign({},t,{status:`error`,percentage:a});i.delete(t.id),o=$(e.onError?.call(e,{file:o,event:n})||o),r(o,n)}function s(s){if(e.isErrorState){if(e.isErrorState(n)){o(s);return}}else if(n.status<200||n.status>=300){o(s);return}let c=Object.assign({},t,{status:`finished`,percentage:a});i.delete(t.id),c=$(e.onFinish?.call(e,{file:c,event:s})||c),r(c,s)}return{handleXHRLoad:s,handleXHRError:o,handleXHRAbort(e){let n=Object.assign({},t,{status:`removed`,file:null,percentage:a});i.delete(t.id),r(n,e)},handleXHRProgress(e){let n=Object.assign({},t,{status:`uploading`});if(e.lengthComputable){let t=Math.ceil(e.loaded/e.total*100);n.percentage=t,a=t}r(n,e)}}}function On(e){let{inst:t,file:n,data:r,headers:i,withCredentials:a,action:o,customRequest:s}=e,{doChange:c}=e.inst,l=0;s({file:n,data:r,headers:i,withCredentials:a,action:o,onProgress(e){let t=Object.assign({},n,{status:`uploading`}),r=e.percent;t.percentage=r,l=r,c(t)},onFinish(){let e=Object.assign({},n,{status:`finished`,percentage:l});e=$(t.onFinish?.call(t,{file:e})||e),c(e)},onError(){let e=Object.assign({},n,{status:`error`,percentage:l});e=$(t.onError?.call(t,{file:e})||e),c(e)}})}function kn(e,t,n){let r=Dn(e,t,n);n.onabort=r.handleXHRAbort,n.onerror=r.handleXHRError,n.onload=r.handleXHRLoad,n.upload&&(n.upload.onprogress=r.handleXHRProgress)}function An(e,t){return typeof e==`function`?e({file:t}):e||{}}function jn(e,t,n){let r=An(t,n);r&&Object.keys(r).forEach(t=>{e.setRequestHeader(t,r[t])})}function Mn(e,t,n){let r=An(t,n);r&&Object.keys(r).forEach(t=>{e.append(t,r[t])})}function Nn(e,t,n,{method:r,action:i,withCredentials:a,responseType:o,headers:s,data:c}){let l=new XMLHttpRequest;l.responseType=o,e.xhrMap.set(n.id,l),l.withCredentials=a;let u=new FormData;if(Mn(u,c,n),n.file!==null&&u.append(t,n.file),kn(e,n,l),i!==void 0){l.open(r.toUpperCase(),i),jn(l,s,n),l.send(u);let t=Object.assign({},n,{status:`uploading`});e.doChange(t)}}var Pn=i({name:`Upload`,props:Object.assign(Object.assign({},M.props),{name:{type:String,default:`file`},accept:String,action:String,customRequest:Function,directory:Boolean,directoryDnd:{type:Boolean,default:void 0},method:{type:String,default:`POST`},multiple:Boolean,showFileList:{type:Boolean,default:!0},data:[Object,Function],headers:[Object,Function],withCredentials:Boolean,responseType:{type:String,default:``},disabled:{type:Boolean,default:void 0},onChange:Function,onRemove:Function,onFinish:Function,onError:Function,onRetry:Function,onBeforeUpload:Function,isErrorState:Function,onDownload:Function,customDownload:Function,defaultUpload:{type:Boolean,default:!0},fileList:Array,"onUpdate:fileList":[Function,Array],onUpdateFileList:[Function,Array],fileListClass:String,fileListStyle:[String,Object],defaultFileList:{type:Array,default:()=>[]},showCancelButton:{type:Boolean,default:!0},showRemoveButton:{type:Boolean,default:!0},showDownloadButton:Boolean,showRetryButton:{type:Boolean,default:!0},showPreviewButton:{type:Boolean,default:!0},listType:{type:String,default:`text`},onPreview:Function,shouldUseThumbnailUrl:{type:Function,default:e=>gn?mn(e):!1},createThumbnailUrl:Function,abstract:Boolean,max:Number,showTrigger:{type:Boolean,default:!0},imageGroupProps:Object,inputProps:Object,triggerClass:String,triggerStyle:[String,Object],renderIcon:Function}),setup(e){e.abstract&&e.listType===`image-card`&&d(`upload`,`when the list-type is image-card, abstract is not supported.`);let{mergedClsPrefixRef:t,inlineThemeDisabled:r,mergedRtlRef:i}=E(e),a=M(`Upload`,`-upload`,an,_e,e,t),s=A(`Upload`,i,t),l=z(e),u=x(e.defaultFileList),f=o(e,`fileList`),p=x(null),m={value:!1},h=x(!1),g=new Map,_=I(f,u),v=y(()=>_.value.map($)),b=y(()=>{let{max:t}=e;return t===void 0?!1:v.value.length>=t});function S(){var e;(e=p.value)==null||e.click()}function C(e){let t=e.target;k(t.files?Array.from(t.files).map(e=>({file:e,entry:null,source:`input`})):null,e),t.value=``}function w(t){let{"onUpdate:fileList":n,onUpdateFileList:r}=e;n&&B(n,t),r&&B(r,t),u.value=t}let D=y(()=>e.multiple||e.directory),O=(t,n,r={append:!1,remove:!1})=>{let{append:i,remove:a}=r,o=Array.from(v.value),s=o.findIndex(e=>e.id===t.id);if(i||a||~s){i?o.push(t):a?o.splice(s,1):o.splice(s,1,t);let{onChange:r}=e;r&&r({file:t,fileList:o,event:n}),w(o)}};function k(t,r){if(!t||t.length===0)return;let{onBeforeUpload:i}=e;t=D.value?t:[t[0]];let{max:a,accept:o}=e;t=t.filter(({file:e,source:t})=>t===`dnd`&&o?.trim()?bn(e.name,e.type,o):!0),a&&(t=t.slice(0,a-v.value.length));let s=he();Promise.all(t.map(e=>En(this,[e],void 0,function*({file:e,entry:t}){let n={id:he(),batchId:s,name:e.name,status:`pending`,percentage:0,file:e,url:null,type:e.type,thumbnailUrl:null,fullPath:t?.fullPath??`/${e.webkitRelativePath||e.name}`};return!i||(yield i({file:n,fileList:v.value}))!==!1?n:null}))).then(e=>En(this,void 0,void 0,function*(){let t=Promise.resolve();e.forEach(e=>{t=t.then(n).then(()=>{e&&O(e,r,{append:!0})})}),yield t})).then(()=>{e.defaultUpload&&j()})}function j({fileId:t,retry:n=!1}={}){let{method:r,action:i,withCredentials:a,headers:o,data:s,name:c}=e,l=t===void 0?v.value:v.value.filter(e=>e.id===t),u=n||t!==void 0;l.forEach(t=>{let{status:n}=t;(n===`pending`||n===`error`&&u)&&(e.customRequest?On({inst:{doChange:O,xhrMap:g,onFinish:e.onFinish,onError:e.onError},file:t,action:i,withCredentials:a,headers:o,data:s,customRequest:e.customRequest}):Nn({doChange:O,xhrMap:g,onFinish:e.onFinish,onError:e.onError,isErrorState:e.isErrorState},c,t,{method:r,action:i,withCredentials:a,responseType:e.responseType,headers:o,data:s}))})}function ee(t){if(t.thumbnailUrl)return t.thumbnailUrl;let{createThumbnailUrl:n}=e;return n?n(t.file,t)??(t.url||``):t.url?t.url:t.file?hn(t.file):``}let te=y(()=>{let{common:{cubicBezierEaseInOut:e},self:{draggerColor:t,draggerBorder:n,draggerBorderHover:r,itemColorHover:i,itemColorHoverError:o,itemTextColorError:s,itemTextColorSuccess:c,itemTextColor:l,itemIconColor:u,itemDisabledOpacity:d,lineHeight:f,borderRadius:p,fontSize:m,itemBorderImageCardError:h,itemBorderImageCard:g}}=a.value;return{"--n-bezier":e,"--n-border-radius":p,"--n-dragger-border":n,"--n-dragger-border-hover":r,"--n-dragger-color":t,"--n-font-size":m,"--n-item-color-hover":i,"--n-item-color-hover-error":o,"--n-item-disabled-opacity":d,"--n-item-icon-color":u,"--n-item-text-color":l,"--n-item-text-color-error":s,"--n-item-text-color-success":c,"--n-line-height":f,"--n-item-border-image-card-error":h,"--n-item-border-image-card":g}}),N=r?T(`upload`,void 0,te,e):void 0;c(Q,{mergedClsPrefixRef:t,mergedThemeRef:a,showCancelButtonRef:o(e,`showCancelButton`),showDownloadButtonRef:o(e,`showDownloadButton`),showRemoveButtonRef:o(e,`showRemoveButton`),showRetryButtonRef:o(e,`showRetryButton`),onRemoveRef:o(e,`onRemove`),onDownloadRef:o(e,`onDownload`),customDownloadRef:o(e,`customDownload`),mergedFileListRef:v,triggerClassRef:o(e,`triggerClass`),triggerStyleRef:o(e,`triggerStyle`),shouldUseThumbnailUrlRef:o(e,`shouldUseThumbnailUrl`),renderIconRef:o(e,`renderIcon`),xhrMap:g,submit:j,doChange:O,showPreviewButtonRef:o(e,`showPreviewButton`),onPreviewRef:o(e,`onPreview`),getFileThumbnailUrlResolver:ee,listTypeRef:o(e,`listType`),dragOverRef:h,openOpenFileDialog:S,draggerInsideRef:m,handleFileAddition:k,mergedDisabledRef:l.mergedDisabledRef,maxReachedRef:b,fileListClassRef:o(e,`fileListClass`),fileListStyleRef:o(e,`fileListStyle`),abstractRef:o(e,`abstract`),acceptRef:o(e,`accept`),cssVarsRef:r?void 0:te,themeClassRef:N?.themeClass,onRender:N?.onRender,showTriggerRef:o(e,`showTrigger`),imageGroupPropsRef:o(e,`imageGroupProps`),mergedDirectoryDndRef:y(()=>e.directoryDnd??e.directory),onRetryRef:o(e,`onRetry`)});let P={clear:()=>{u.value=[]},submit:j,openOpenFileDialog:S};return Object.assign({mergedClsPrefix:t,draggerInsideRef:m,rtlEnabled:s,inputElRef:p,mergedTheme:a,dragOver:h,mergedMultiple:D,cssVars:r?void 0:te,themeClass:N?.themeClass,onRender:N?.onRender,handleFileInputChange:C},P)},render(){let{draggerInsideRef:e,mergedClsPrefix:t,$slots:n,directory:i,onRender:a}=this;n.default&&!this.abstract&&n.default()[0]?.type?.__UPLOAD_DRAGGER__&&(e.value=!0);let o=r(`input`,Object.assign({},this.inputProps,{ref:`inputElRef`,type:`file`,class:`${t}-upload-file-input`,accept:this.accept,multiple:this.mergedMultiple,onChange:this.handleFileInputChange,webkitdirectory:i||void 0,directory:i||void 0}));return this.abstract?r(b,null,n.default?.call(n),r(l,{to:`body`},o)):(a?.(),r(`div`,{class:[`${t}-upload`,this.rtlEnabled&&`${t}-upload--rtl`,e.value&&`${t}-upload--dragger-inside`,this.dragOver&&`${t}-upload--drag-over`,this.themeClass],style:this.cssVars},o,this.showTrigger&&this.listType!==`image-card`&&r(wn,null,n),this.showFileList&&r(Tn,null,n)))}});export{on as n,Pn as t}; \ No newline at end of file diff --git a/frontend/dist/assets/UserAgreementView-d3yiTDGl.js b/frontend/dist/assets/UserAgreementView-d3yiTDGl.js deleted file mode 100644 index 858d372..0000000 --- a/frontend/dist/assets/UserAgreementView-d3yiTDGl.js +++ /dev/null @@ -1 +0,0 @@ -import{M as e,N as t,O as n,X as r,y as i}from"./client-CT8bsOZT.js";import{t as a}from"./DocsPage-Dt91bPTm.js";import{t as o}from"./HeaderMenu--hCKWQY2.js";var s=t({__name:`UserAgreementView`,setup(t){return(t,s)=>(r(),n(i,null,[e(a,{kind:`terms`}),e(o)],64))}});export{s as default}; \ No newline at end of file diff --git a/frontend/dist/assets/UsersView-CBg-opwf.js b/frontend/dist/assets/UsersView-CBg-opwf.js deleted file mode 100644 index faee729..0000000 --- a/frontend/dist/assets/UsersView-CBg-opwf.js +++ /dev/null @@ -1,105 +0,0 @@ -import{D as e,E as t,G as n,Ht as r,I as i,M as a,N as o,O as s,P as c,Q as l,R as u,St as d,T as f,X as p,Z as m,ct as h,j as g,m as _,ot as v,p as y,q as b,w as x,wt as S,y as C,yt as w}from"./client-CT8bsOZT.js";import{G as T,H as E,M as ee,N as te,V as D,W as O,a as ne,q as k,r as re}from"./light-DhgSQSdG.js";import{s as ie,t as ae}from"./Card-BX9nnwGC.js";import{t as oe}from"./Modal-a8TxC5Fw.js";import{t as A}from"./Button-D8HO8D_D.js";import{t as se}from"./use-form-item-CBXe24ar.js";import{o as j,t as ce}from"./get-0R_rx1dU.js";import{a as M}from"./resolve-slot-BEScaVot.js";import{t as N}from"./Input-B3ERgh42.js";import{t as le}from"./Tag-wKk--N0F.js";import{n as ue,r as de}from"./es-BS8VS4O3.js";import{t as fe}from"./Space-B8J_02Fa.js";import{t as P}from"./Flex-LW-PCNxv.js";import{Q as pe,Z as me,l as he,rt as ge,t as _e}from"./index-oex1uI7H.js";import{t as ve}from"./HeaderMenu--hCKWQY2.js";import{t as ye}from"./_plugin-vue_export-helper-BDNMzG2s.js";function be(e,t,r){let i=u(e,null);if(i===null)return;let a=c()?.proxy;v(r,o),o(r.value),n(()=>{o(void 0,r.value)});function o(e,n){if(!i)return;let r=i[t];n!==void 0&&s(r,n),e!==void 0&&l(r,e)}function s(e,t){e[t]||(e[t]=[]),e[t].splice(e[t].findIndex(e=>e===a),1)}function l(e,t){e[t]||(e[t]=[]),~e[t].findIndex(e=>e===a)||e[t].push(a)}}var F=_(`n-form`),xe=_(`n-form-item-insts`);function I(){return I=Object.assign?Object.assign.bind():function(e){for(var t=1;t`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function z(e,t,n){return z=Ce()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&R(i,n.prototype),i},z.apply(null,arguments)}function we(e){return Function.toString.call(e).indexOf(`[native code]`)!==-1}function B(e){var t=typeof Map==`function`?new Map:void 0;return B=function(e){if(e===null||!we(e))return e;if(typeof e!=`function`)throw TypeError(`Super expression must either be null or a function`);if(t!==void 0){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return z(e,arguments,L(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),R(n,e)},B(e)}var Te=/%[sdj%]/g,Ee=function(){};function V(e){if(!e||!e.length)return null;var t={};return e.forEach(function(e){var n=e.field;t[n]=t[n]||[],t[n].push(e)}),t}function H(e){var t=[...arguments].slice(1),n=0,r=t.length;return typeof e==`function`?e.apply(null,t):typeof e==`string`?e.replace(Te,function(e){if(e===`%%`)return`%`;if(n>=r)return e;switch(e){case`%s`:return String(t[n++]);case`%d`:return Number(t[n++]);case`%j`:try{return JSON.stringify(t[n++])}catch{return`[Circular]`}break;default:return e}}):e}function De(e){return e===`string`||e===`url`||e===`hex`||e===`email`||e===`date`||e===`pattern`}function U(e,t){return!!(e==null||t===`array`&&Array.isArray(e)&&!e.length||De(t)&&typeof e==`string`&&!e)}function Oe(e,t,n){var r=[],i=0,a=e.length;function o(e){r.push.apply(r,e||[]),i++,i===a&&n(r)}e.forEach(function(e){t(e,o)})}function ke(e,t,n){var r=0,i=e.length;function a(o){if(o&&o.length){n(o);return}var s=r;r+=1,s()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},G={integer:function(e){return G.number(e)&&parseInt(e,10)===e},float:function(e){return G.number(e)&&!G.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime==`function`&&typeof e.getMonth==`function`&&typeof e.getYear==`function`&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e==`number`},object:function(e){return typeof e==`object`&&!G.array(e)},method:function(e){return typeof e==`function`},email:function(e){return typeof e==`string`&&e.length<=320&&!!e.match(Be.email)},url:function(e){return typeof e==`string`&&e.length<=2048&&!!e.match(ze())},hex:function(e){return typeof e==`string`&&!!e.match(Be.hex)}},Ve=function(e,t,n,r,i){if(e.required&&t===void 0){Le(e,t,n,r,i);return}var a=[`integer`,`float`,`array`,`regexp`,`object`,`method`,`email`,`number`,`date`,`url`,`hex`],o=e.type;a.indexOf(o)>-1?G[o](t)||r.push(H(i.messages.types[o],e.fullField,e.type)):o&&typeof t!==e.type&&r.push(H(i.messages.types[o],e.fullField,e.type))},He=function(e,t,n,r,i){var a=typeof e.len==`number`,o=typeof e.min==`number`,s=typeof e.max==`number`,c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,l=t,u=null,d=typeof t==`number`,f=typeof t==`string`,p=Array.isArray(t);if(d?u=`number`:f?u=`string`:p&&(u=`array`),!u)return!1;p&&(l=t.length),f&&(l=t.replace(c,`_`).length),a?l!==e.len&&r.push(H(i.messages[u].len,e.fullField,e.len)):o&&!s&&le.max?r.push(H(i.messages[u].max,e.fullField,e.max)):o&&s&&(le.max)&&r.push(H(i.messages[u].range,e.fullField,e.min,e.max))},K=`enum`,q={required:Le,whitespace:Re,type:Ve,range:He,enum:function(e,t,n,r,i){e[K]=Array.isArray(e[K])?e[K]:[],e[K].indexOf(t)===-1&&r.push(H(i.messages[K],e.fullField,e[K].join(`, `)))},pattern:function(e,t,n,r,i){e.pattern&&(e.pattern instanceof RegExp?(e.pattern.lastIndex=0,e.pattern.test(t)||r.push(H(i.messages.pattern.mismatch,e.fullField,t,e.pattern))):typeof e.pattern==`string`&&(new RegExp(e.pattern).test(t)||r.push(H(i.messages.pattern.mismatch,e.fullField,t,e.pattern))))}},Ue=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(U(t,`string`)&&!e.required)return n();q.required(e,t,r,a,i,`string`),U(t,`string`)||(q.type(e,t,r,a,i),q.range(e,t,r,a,i),q.pattern(e,t,r,a,i),e.whitespace===!0&&q.whitespace(e,t,r,a,i))}n(a)},We=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(U(t)&&!e.required)return n();q.required(e,t,r,a,i),t!==void 0&&q.type(e,t,r,a,i)}n(a)},Ge=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t===``&&(t=void 0),U(t)&&!e.required)return n();q.required(e,t,r,a,i),t!==void 0&&(q.type(e,t,r,a,i),q.range(e,t,r,a,i))}n(a)},Ke=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(U(t)&&!e.required)return n();q.required(e,t,r,a,i),t!==void 0&&q.type(e,t,r,a,i)}n(a)},qe=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(U(t)&&!e.required)return n();q.required(e,t,r,a,i),U(t)||q.type(e,t,r,a,i)}n(a)},Je=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(U(t)&&!e.required)return n();q.required(e,t,r,a,i),t!==void 0&&(q.type(e,t,r,a,i),q.range(e,t,r,a,i))}n(a)},Ye=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(U(t)&&!e.required)return n();q.required(e,t,r,a,i),t!==void 0&&(q.type(e,t,r,a,i),q.range(e,t,r,a,i))}n(a)},Xe=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(t==null&&!e.required)return n();q.required(e,t,r,a,i,`array`),t!=null&&(q.type(e,t,r,a,i),q.range(e,t,r,a,i))}n(a)},Ze=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(U(t)&&!e.required)return n();q.required(e,t,r,a,i),t!==void 0&&q.type(e,t,r,a,i)}n(a)},Qe=`enum`,$e=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(U(t)&&!e.required)return n();q.required(e,t,r,a,i),t!==void 0&&q[Qe](e,t,r,a,i)}n(a)},et=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(U(t,`string`)&&!e.required)return n();q.required(e,t,r,a,i),U(t,`string`)||q.pattern(e,t,r,a,i)}n(a)},tt=function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(U(t,`date`)&&!e.required)return n();if(q.required(e,t,r,a,i),!U(t,`date`)){var o=t instanceof Date?t:new Date(t);q.type(e,o,r,a,i),o&&q.range(e,o.getTime(),r,a,i)}}n(a)},nt=function(e,t,n,r,i){var a=[],o=Array.isArray(t)?`array`:typeof t;q.required(e,t,r,a,i,o),n(a)},J=function(e,t,n,r,i){var a=e.type,o=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(U(t,a)&&!e.required)return n();q.required(e,t,r,o,i,a),U(t,a)||q.type(e,t,r,o,i)}n(o)},Y={string:Ue,method:We,number:Ge,boolean:Ke,regexp:qe,integer:Je,float:Ye,array:Xe,object:Ze,enum:$e,pattern:et,date:tt,url:J,hex:J,email:J,required:nt,any:function(e,t,n,r,i){var a=[];if(e.required||!e.required&&r.hasOwnProperty(e.field)){if(U(t)&&!e.required)return n();q.required(e,t,r,a,i)}n(a)}};function X(){return{default:`Validation error on field %s`,required:`%s is required`,enum:`%s must be one of %s`,whitespace:`%s cannot be empty`,date:{format:`%s date %s is invalid for format %s`,parse:`%s date could not be parsed, %s is invalid `,invalid:`%s date %s is invalid`},types:{string:`%s is not a %s`,method:`%s is not a %s (function)`,array:`%s is not an %s`,object:`%s is not an %s`,number:`%s is not a %s`,date:`%s is not a %s`,boolean:`%s is not a %s`,integer:`%s is not an %s`,float:`%s is not a %s`,regexp:`%s is not a valid %s`,email:`%s is not a valid %s`,url:`%s is not a valid %s`,hex:`%s is not a valid %s`},string:{len:`%s must be exactly %s characters`,min:`%s must be at least %s characters`,max:`%s cannot be longer than %s characters`,range:`%s must be between %s and %s characters`},number:{len:`%s must equal %s`,min:`%s cannot be less than %s`,max:`%s cannot be greater than %s`,range:`%s must be between %s and %s`},array:{len:`%s must be exactly %s in length`,min:`%s cannot be less than %s in length`,max:`%s cannot be greater than %s in length`,range:`%s must be between %s and %s in length`},pattern:{mismatch:`%s value %s does not match pattern %s`},clone:function(){var e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var Z=X(),Q=function(){function e(e){this.rules=null,this._messages=Z,this.define(e)}var t=e.prototype;return t.define=function(e){var t=this;if(!e)throw Error(`Cannot configure a schema with no rules`);if(typeof e!=`object`||Array.isArray(e))throw Error(`Rules must be an object`);this.rules={},Object.keys(e).forEach(function(n){var r=e[n];t.rules[n]=Array.isArray(r)?r:[r]})},t.messages=function(e){return e&&(this._messages=Ie(X(),e)),this._messages},t.validate=function(t,n,r){var i=this;n===void 0&&(n={}),r===void 0&&(r=function(){});var a=t,o=n,s=r;if(typeof o==`function`&&(s=o,o={}),!this.rules||Object.keys(this.rules).length===0)return s&&s(null,a),Promise.resolve(a);function c(e){var t=[],n={};function r(e){if(Array.isArray(e)){var n;t=(n=t).concat.apply(n,e)}else t.push(e)}for(var i=0;ie.size===void 0?t?.props.size===void 0?n?.value?.Form?.size||`medium`:t.props.size:e.size)}}function st(e){let t=u(F,null),n=x(()=>{let{labelPlacement:n}=e;return n===void 0?t?.props.labelPlacement?t.props.labelPlacement:`top`:n}),r=x(()=>n.value===`left`&&(e.labelWidth===`auto`||t?.props.labelWidth===`auto`)),i=x(()=>{if(n.value===`top`)return;let{labelWidth:i}=e;if(i!==void 0&&i!==`auto`)return j(i);if(r.value){let e=t?.maxChildLabelWidthRef.value;return e===void 0?void 0:j(e)}if(t?.props.labelWidth!==void 0)return j(t.props.labelWidth)}),a=x(()=>{let{labelAlign:n}=e;if(n)return n;if(t?.props.labelAlign)return t.props.labelAlign}),o=x(()=>[e.labelProps?.style,e.labelStyle,{width:i.value}]),s=x(()=>{let{showRequireMark:n}=e;return n===void 0?t?.props.showRequireMark:n}),c=x(()=>{let{requireMarkPlacement:n}=e;return n===void 0?t?.props.requireMarkPlacement||`right`:n}),l=w(!1),d=w(!1);return{validationErrored:l,validationWarned:d,mergedLabelStyle:o,mergedLabelPlacement:n,mergedLabelAlign:a,mergedShowRequireMark:s,mergedRequireMarkPlacement:c,mergedValidationStatus:x(()=>{let{validationStatus:t}=e;if(t!==void 0)return t;if(l.value)return`error`;if(d.value)return`warning`}),mergedShowFeedback:x(()=>{let{showFeedback:n}=e;return n===void 0?t?.props.showFeedback===void 0?!0:t.props.showFeedback:n}),mergedShowLabel:x(()=>{let{showLabel:n}=e;return n===void 0?t?.props.showLabel===void 0?!0:t.props.showLabel:n}),isAutoLabelWidth:r}}function ct(e){let t=u(F,null),n=x(()=>{let{rulePath:t}=e;if(t!==void 0)return t;let{path:n}=e;if(n!==void 0)return n}),r=x(()=>{let r=[],{rule:i}=e;if(i!==void 0&&(Array.isArray(i)?r.push(...i):r.push(i)),t){let{rules:e}=t.props,{value:i}=n;if(e!==void 0&&i!==void 0){let t=ce(e,i);t!==void 0&&(Array.isArray(t)?r.push(...t):r.push(t))}}return r}),i=x(()=>r.value.some(e=>e.required));return{mergedRules:r,mergedRequired:x(()=>i.value||e.required)}}var lt=function(e,t,n,r){function i(e){return e instanceof n?e:new n(function(t){t(e)})}return new(n||=Promise)(function(n,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){e.done?n(e.value):i(e.value).then(o,s)}c((r=r.apply(e,t||[])).next())})},ut=Object.assign(Object.assign({},re.props),{label:String,labelWidth:[Number,String],labelStyle:[String,Object],labelAlign:String,labelPlacement:String,path:String,first:Boolean,rulePath:String,required:Boolean,showRequireMark:{type:Boolean,default:void 0},requireMarkPlacement:String,showFeedback:{type:Boolean,default:void 0},rule:[Object,Array],size:String,ignorePathChange:Boolean,validationStatus:String,feedback:String,feedbackClass:String,feedbackStyle:[String,Object],showLabel:{type:Boolean,default:void 0},labelProps:Object,contentClass:String,contentStyle:[String,Object]});ie(ut);function dt(e,t){return(...n)=>{try{let r=e(...n);return!t&&(typeof r==`boolean`||r instanceof Error||Array.isArray(r))||r?.then?r:(r===void 0||y(`form-item/validate`,`You return a ${typeof r} typed value in the validator method, which is not recommended. Please use ${t?"`Promise`":"`boolean`, `Error` or `Promise`"} typed value instead.`),!0)}catch(e){y(`form-item/validate`,"An error is catched in the validation, so the validation won't be done. Your callback in `validate` method of `n-form` or `n-form-item` won't be called in this validation."),console.error(e);return}}}var $=o({name:`FormItem`,props:ut,slots:Object,setup(e){be(xe,`formItems`,d(e,`path`));let{mergedClsPrefixRef:t,inlineThemeDisabled:n}=te(e),r=u(F,null),i=ot(e),a=st(e),{validationErrored:o,validationWarned:s}=a,{mergedRequired:c,mergedRules:l}=ct(e),{mergedSize:f}=i,{mergedLabelPlacement:p,mergedLabelAlign:h,mergedRequireMarkPlacement:g}=a,_=w([]),y=w(me()),S=w(null),C=r?d(r.props,`disabled`):w(!1),T=re(`Form`,`-form-item`,at,he,e,t);v(d(e,`path`),()=>{e.ignorePathChange||D()});function E(){if(!a.isAutoLabelWidth.value)return;let e=S.value;if(e!==null){let t=e.style.whiteSpace;e.style.whiteSpace=`nowrap`,e.style.width=``,r?.deriveMaxChildLabelWidth(Number(getComputedStyle(e).width.slice(0,-2))),e.style.whiteSpace=t}}function D(){_.value=[],o.value=!1,s.value=!1,e.feedback&&(y.value=me())}let O=(...t)=>lt(this,[...t],void 0,function*(t=null,n=()=>!0,i={suppressWarning:!0}){let{path:a}=e;i?i.first||=e.first:i={};let{value:c}=l,u=r?ce(r.props.model,a||``):void 0,d={},f={},p=(t?c.filter(e=>Array.isArray(e.trigger)?e.trigger.includes(t):e.trigger===t):c).filter(n).map((e,t)=>{let n=Object.assign({},e);if(n.validator&&=dt(n.validator,!1),n.asyncValidator&&=dt(n.asyncValidator,!0),n.renderMessage){let e=`__renderMessage__${t}`;f[e]=n.message,n.message=e,d[e]=n.renderMessage}return n}),m=p.filter(e=>e.level!==`warning`),h=p.filter(e=>e.level===`warning`),g={valid:!0,errors:void 0,warnings:void 0};if(!p.length)return g;let v=a??`__n_no_path__`,y=new Q({[v]:m}),b=new Q({[v]:h}),{validateMessages:x}=r?.props||{};x&&(y.messages(x),b.messages(x));let S=e=>{_.value=e.map(e=>{let t=e?.message||``;return{key:t,render:()=>t.startsWith(`__renderMessage__`)?d[t]():t}}),e.forEach(e=>{e.message?.startsWith(`__renderMessage__`)&&(e.message=f[e.message])})};if(m.length){let e=yield new Promise(e=>{y.validate({[v]:u},i,e)});e?.length&&(g.valid=!1,g.errors=e,S(e))}if(h.length&&!g.errors){let e=yield new Promise(e=>{b.validate({[v]:u},i,e)});e?.length&&(S(e),g.warnings=e)}return!g.errors&&!g.warnings?D():(o.value=!!g.errors,s.value=!!g.warnings),g});function ne(){O(`blur`)}function ie(){O(`change`)}function ae(){O(`focus`)}function oe(){O(`input`)}function A(e,t){return lt(this,void 0,void 0,function*(){let n,r,i,a;return typeof e==`string`?(n=e,r=t):typeof e==`object`&&e&&(n=e.trigger,r=e.callback,i=e.shouldRuleBeApplied,a=e.options),yield new Promise((e,t)=>{O(n,i,a).then(({valid:n,errors:i,warnings:a})=>{n?(r&&r(void 0,{warnings:a}),e({warnings:a})):(r&&r(i,{warnings:a}),t(i))})})})}m(se,{path:d(e,`path`),disabled:C,mergedSize:i.mergedSize,mergedValidationStatus:a.mergedValidationStatus,restoreValidation:D,handleContentBlur:ne,handleContentChange:ie,handleContentFocus:ae,handleContentInput:oe});let j={validate:A,restoreValidation:D,internalValidate:O,invalidateLabelWidth:E};b(E);let M=x(()=>{let{value:e}=f,{value:t}=p,n=t===`top`?`vertical`:`horizontal`,{common:{cubicBezierEaseInOut:r},self:{labelTextColor:i,asteriskColor:a,lineHeight:o,feedbackTextColor:s,feedbackTextColorWarning:c,feedbackTextColorError:l,feedbackPadding:u,labelFontWeight:d,[k(`labelHeight`,e)]:m,[k(`blankHeight`,e)]:g,[k(`feedbackFontSize`,e)]:_,[k(`feedbackHeight`,e)]:v,[k(`labelPadding`,n)]:y,[k(`labelTextAlign`,n)]:b,[k(k(`labelFontSize`,t),e)]:x}}=T.value,S=h.value??b;return t===`top`&&(S=S===`right`?`flex-end`:`flex-start`),{"--n-bezier":r,"--n-line-height":o,"--n-blank-height":g,"--n-label-font-size":x,"--n-label-text-align":S,"--n-label-height":m,"--n-label-padding":y,"--n-label-font-weight":d,"--n-asterisk-color":a,"--n-label-text-color":i,"--n-feedback-padding":u,"--n-feedback-font-size":_,"--n-feedback-height":v,"--n-feedback-text-color":s,"--n-feedback-text-color-warning":c,"--n-feedback-text-color-error":l}}),N=n?ee(`form-item`,x(()=>`${f.value[0]}${p.value[0]}${h.value?.[0]||``}`),M,e):void 0,le=x(()=>p.value===`left`&&g.value===`left`&&h.value===`left`);return Object.assign(Object.assign(Object.assign(Object.assign({labelElementRef:S,mergedClsPrefix:t,mergedRequired:c,feedbackId:y,renderExplains:_,reverseColSpace:le},a),i),j),{cssVars:n?void 0:M,themeClass:N?.themeClass,onRender:N?.onRender})},render(){let{$slots:e,mergedClsPrefix:t,mergedShowLabel:n,mergedShowRequireMark:r,mergedRequireMarkPlacement:a,onRender:o}=this,s=r===void 0?this.mergedRequired:r;return o?.(),i(`div`,{class:[`${t}-form-item`,this.themeClass,`${t}-form-item--${this.mergedSize}-size`,`${t}-form-item--${this.mergedLabelPlacement}-labelled`,this.isAutoLabelWidth&&`${t}-form-item--auto-label-width`,!n&&`${t}-form-item--no-label`],style:this.cssVars},n&&(()=>{let e=this.$slots.label?this.$slots.label():this.label;if(!e)return null;let n=i(`span`,{class:`${t}-form-item-label__text`},e),r=s?i(`span`,{class:`${t}-form-item-label__asterisk`},a===`left`?`*\xA0`:`\xA0*`):a===`right-hanging`&&i(`span`,{class:`${t}-form-item-label__asterisk-placeholder`},`\xA0*`),{labelProps:o}=this;return i(`label`,Object.assign({},o,{class:[o?.class,`${t}-form-item-label`,`${t}-form-item-label--${a}-mark`,this.reverseColSpace&&`${t}-form-item-label--reverse-columns-space`],style:this.mergedLabelStyle,ref:`labelElementRef`}),a===`left`?[r,n]:[n,r])})(),i(`div`,{class:[`${t}-form-item-blank`,this.contentClass,this.mergedValidationStatus&&`${t}-form-item-blank--${this.mergedValidationStatus}`],style:this.contentStyle},e),this.mergedShowFeedback?i(`div`,{key:this.feedbackId,style:this.feedbackStyle,class:[`${t}-form-item-feedback-wrapper`,this.feedbackClass]},i(pe,{name:`fade-down-transition`,mode:`out-in`},{default:()=>{let{mergedValidationStatus:n}=this;return M(e.feedback,e=>{let{feedback:r}=this,a=e||r?i(`div`,{key:`__feedback__`,class:`${t}-form-item-feedback__line`},e||r):this.renderExplains.length?this.renderExplains?.map(({key:e,render:n})=>i(`div`,{key:e,class:`${t}-form-item-feedback__line`},n())):null;return a?n===`warning`?i(`div`,{key:`controlled-warning`,class:`${t}-form-item-feedback ${t}-form-item-feedback--warning`},a):n===`error`?i(`div`,{key:`controlled-error`,class:`${t}-form-item-feedback ${t}-form-item-feedback--error`},a):n===`success`?i(`div`,{key:`controlled-success`,class:`${t}-form-item-feedback ${t}-form-item-feedback--success`},a):i(`div`,{key:`controlled-default`,class:`${t}-form-item-feedback`},a):null})}})):null)}}),ft={class:`center-block-custom`},pt={class:`width700`},mt={class:`user-field`},ht={class:`user-field`},gt={class:`user-field`},_t=ye(o({__name:`UsersPage`,setup(n){let i=ue(),o=de(),c=w([]),u=_e(),d=w(null),m=w(``),_=w(``),v=w(!1);function y(){d.value=null,m.value=``,_.value=``}async function b(){if(!(!d.value||v.value)){if([...m.value].length<8||[...m.value].length>16){o.error(`Пароль должен содержать минимум 8 символов и не более 16 символов`);return}if(m.value!==_.value){o.error(`Пароли не совпадают`);return}v.value=!0;try{await i.ChangeUserPassword({ID:d.value.ID,newPassword:m.value}),y(),o.success(`Пароль изменён`)}catch(e){o.error(e instanceof Error?e.message:`Не удалось изменить пароль`)}finally{v.value=!1}}}async function x(){try{let e=await i.GetUsers({});c.value=e.users}catch(e){o.error(e instanceof Error?e.message:`Не удалось загрузить пользователей`)}}x();async function T(e,t){try{await i.AddUserRole({ID:e,role:t}),await x()}catch(e){o.error(e instanceof Error?e.message:`Не удалось изменить роль`)}}async function E(e,t){try{await i.DeleteUserRole({ID:e,role:t}),await x()}catch(e){o.error(e instanceof Error?e.message:`Не удалось изменить роль`)}}return(n,i)=>(p(),s(C,null,[f(`div`,ft,[f(`div`,pt,[(p(!0),s(C,null,l(c.value,n=>(p(),s(`div`,{key:n.ID,class:`user-block`},[f(`div`,mt,`Позывной: `+r(n.username),1),f(`div`,ht,`Почта: `+r(n.email),1),f(`div`,gt,[a(S(fe),null,{default:h(()=>[i[3]||=g(` Роли: `,-1),(p(!0),s(C,null,l(n.roles,e=>(p(),t(S(le),{bordered:!1,key:e},{default:h(()=>[g(r(e),1)]),_:2},1024))),128))]),_:2},1024)]),a(S(P),{justify:`end`,class:`roles-buttons-block`},{default:h(()=>[S(u).hasRole(`admin`)&&S(u).user&&n.ID!==S(u).user.ID?(p(),t(S(A),{key:0,onClick:e=>d.value=n},{default:h(()=>[...i[4]||=[g(`Изменить пароль`,-1)]]),_:1},8,[`onClick`])):e(``,!0),n.roles?.includes(`author`)?(p(),t(S(A),{key:2,onClick:e=>E(n.ID,`author`)},{default:h(()=>[...i[6]||=[g(`Забрать роль автора`,-1)]]),_:1},8,[`onClick`])):(p(),t(S(A),{key:1,onClick:e=>T(n.ID,`author`)},{default:h(()=>[...i[5]||=[g(`Сделать автором`,-1)]]),_:1},8,[`onClick`])),n.roles?.includes(`organizer`)?(p(),t(S(A),{key:4,onClick:e=>E(n.ID,`organizer`)},{default:h(()=>[...i[8]||=[g(`Забрать роль организатора`,-1)]]),_:1},8,[`onClick`])):(p(),t(S(A),{key:3,onClick:e=>T(n.ID,`organizer`)},{default:h(()=>[...i[7]||=[g(`Сделать организатором`,-1)]]),_:1},8,[`onClick`]))]),_:2},1024)]))),128))])]),a(S(oe),{show:d.value!==null,style:{width:`min(94vw, 480px)`},closable:!v.value,"mask-closable":!v.value,"close-on-esc":!v.value,"onUpdate:show":i[2]||=e=>{e||y()}},{default:h(()=>[a(S(ae),{title:`Изменить пароль`,bordered:!1,role:`dialog`,"aria-modal":`true`,closable:!v.value,onClose:y},{default:h(()=>[f(`p`,null,r(d.value?.username)+` — `+r(d.value?.email),1),f(`form`,{onSubmit:ge(b,[`prevent`])},[a(S($),{label:`Новый пароль`,"label-for":`new-user-password`},{default:h(()=>[a(S(N),{value:m.value,"onUpdate:value":i[0]||=e=>m.value=e,"input-props":{id:`new-user-password`,autocomplete:`new-password`},type:`password`,"show-password-on":`click`,disabled:v.value,placeholder:`От 8 символов, не более 16 символов`},null,8,[`value`,`disabled`])]),_:1}),a(S($),{label:`Повторите пароль`,"label-for":`confirm-user-password`},{default:h(()=>[a(S(N),{value:_.value,"onUpdate:value":i[1]||=e=>_.value=e,"input-props":{id:`confirm-user-password`,autocomplete:`new-password`},type:`password`,"show-password-on":`click`,disabled:v.value,placeholder:`Повторите новый пароль`},null,8,[`value`,`disabled`])]),_:1}),a(S(P),{justify:`end`},{default:h(()=>[a(S(A),{disabled:v.value,onClick:y},{default:h(()=>[...i[9]||=[g(`Отмена`,-1)]]),_:1},8,[`disabled`]),a(S(A),{"attr-type":`submit`,type:`primary`,loading:v.value},{default:h(()=>[...i[10]||=[g(`Сохранить`,-1)]]),_:1},8,[`loading`])]),_:1})],32)]),_:1},8,[`closable`])]),_:1},8,[`show`,`closable`,`mask-closable`,`close-on-esc`]),a(ve,{active:`users`})],64))}}),[[`__scopeId`,`data-v-248d8ad2`]]),vt=o({__name:`UsersView`,setup(e){return(e,n)=>(p(),t(_t))}});export{vt as default}; \ No newline at end of file diff --git a/frontend/dist/assets/binary_client-C7IqFUIC.js b/frontend/dist/assets/binary_client-C7IqFUIC.js deleted file mode 100644 index 79b03d1..0000000 --- a/frontend/dist/assets/binary_client-C7IqFUIC.js +++ /dev/null @@ -1 +0,0 @@ -import{r as e}from"./client-CT8bsOZT.js";import{t}from"./index-oex1uI7H.js";function n(){let e=t();return r(e.refreshTokenAction,e.getToken)}function r(t,n){async function r(r,i){let a={},o=n();o&&(a.Authorization=`Bearer ${o}`);let s=await fetch(`${e()}/${r}`,{...i,headers:{...a,...i.headers}});if(s.status==401){await t();let o=n();o&&(a.Authorization=`Bearer ${o}`),s=await fetch(`${e()}/${r}`,{...i,headers:{...a,...i.headers}})}return s}async function o(e,t){let n=await r(e,{method:`GET`});if(!n.ok)throw Error(await a(n));return{blob:await n.blob(),filename:i(n.headers.get(`Content-Disposition`))||t}}function s(e){return o(`api/scenarios/${e}/archive`,`scenario-${e}.zip`)}function c(e){return o(`api/games/${e}/teams/qr.pdf`,`game-${e}.pdf`)}async function l(e){let t=await r(`api/scenarios/archive`,{method:`POST`,headers:{"Content-Type":e.type||`application/zip`},body:e}),n=await t.json().catch(()=>null);if(!t.ok)throw Error(n?.message||`Ошибка сервера (${t.status})`);return{ID:typeof n?.ID==`number`?n.ID:null}}return{downloadScenarioArchive:s,downloadTeamQR:c,uploadScenarioArchive:l}}function i(e){if(!e)return``;let t=e.match(/filename\*=UTF-8''([^;]+)/i);if(t)try{return decodeURIComponent(t[1].trim()).replace(/[\\/:*?"<>|]/g,`_`)}catch{}let n=e.match(/filename="?([^";]+)"?/i);return(n?n[1]:``).replace(/[\\/:*?"<>|]/g,`_`)}async function a(e){let t=await e.json().catch(()=>null);return t&&typeof t.message==`string`&&t.message!==``?t.message:`Ошибка сервера (${e.status})`}export{n as t}; \ No newline at end of file diff --git a/frontend/dist/assets/es-BS8VS4O3.js b/frontend/dist/assets/es-BS8VS4O3.js deleted file mode 100644 index 75e3353..0000000 --- a/frontend/dist/assets/es-BS8VS4O3.js +++ /dev/null @@ -1,10 +0,0 @@ -import{$ as e,I as t,N as n,R as r,W as i,Z as a,f as o,h as s,i as c,n as l,w as u}from"./client-CT8bsOZT.js";import{p as d,t as f}from"./index-oex1uI7H.js";function p(){let e=r(d,null);return e===null&&o(`use-message`,"No outer founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}function m(){let e=f();return h(e.refreshTokenAction,e.getToken)}function h(e,t){return c(g(e,l(t)))}function g(e,t){return async n=>{let r;try{r=await t(n)}catch{await e(),r=await t(n)}if(r&&typeof r==`object`&&`code`in r&&r.code!==0)throw Error(`message`in r&&typeof r.message==`string`?r.message:`Ошибка запроса`);return r}}function _(e){let t=0;for(let n=0;n{let r=_(t);if(!r){e.forEach(e=>{n.push((e&&e+` `)+t)});return}else if(r===1){e.forEach(e=>{n.push(t.replace(`&`,e))});return}let i=[t];for(;r--;){let t=[];i.forEach(n=>{e.forEach(e=>{t.push(n.replace(`&`,e))})}),i=t}i.forEach(e=>n.push(e))}),n}function x(e,t){let n=[];return t.split(v).forEach(t=>{e.forEach(e=>{n.push((e&&e+` `)+t)})}),n}function S(e){let t=[``];return e.forEach(e=>{e&&=e.trim(),e&&(t=e.includes(`&`)?b(t,e):x(t,e))}),t.join(`, `).replace(y,` `)}var C=/[A-Z]/g;function w(e){return e.replace(C,e=>`-`+e.toLowerCase())}function T(e,t=` `){return typeof e==`object`&&e?` { -`+Object.entries(e).map(e=>t+` ${w(e[0])}: ${e[1]};`).join(` -`)+` -`+t+`}`:`: ${e};`}function E(e,t,n){return typeof e==`function`?e({context:t.context,props:n}):e}function D(e,t,n,r){if(!t)return``;let i=E(t,n,r);if(!i)return``;if(typeof i==`string`)return`${e} {\n${i}\n}`;let a=Object.keys(i);if(a.length===0)return n.config.keepEmptyBlock?e+` { -}`:``;let o=e?[e+` {`]:[];return a.forEach(e=>{let t=i[e];if(e===`raw`){o.push(` -`+t+` -`);return}e=w(e),t!=null&&o.push(` ${e}${T(t)}`)}),e&&o.push(`}`),o.join(` -`)}function O(e,t,n){e&&e.forEach(e=>{if(Array.isArray(e))O(e,t,n);else if(typeof e==`function`){let r=e(t);Array.isArray(r)?O(r,t,n):r&&n(r)}else e&&n(e)})}function k(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=S(t),c=D(s,e.props,r,i);a&&c&&a.insertRule(c),!a&&c.length&&n.push(c),e.children&&O(e.children,{context:r.context,props:i},e=>{if(typeof e==`string`){let t=D(s,{raw:e},r,i);a?a.insertRule(t):n.push(t)}else k(e,t,n,r,i,a)}),t.pop(),o&&o.after&&o.after(r.context)}function A(e,t,n,r=!1){let i=[];return k(e,[],i,t,n,r?e.instance.__styleSheet:void 0),r?``:i.join(` - -`)}function j(e){if(!e)return;let t=e.parentElement;t&&t.removeChild(e)}function M(e){return document.querySelector(`style[cssr-id="${e}"]`)}function N(e){let t=document.createElement(`style`);return t.setAttribute(`cssr-id`,e),t}window&&(window.__cssrContext={});function P(e){let t=e.getAttribute(`mount-count`);return t===null?null:Number(t)}function F(e,t){e.setAttribute(`mount-count`,String(t))}function I(e,t,n,r){let{els:i}=t;if(n===void 0)i.forEach(j),t.els=[];else{let e=M(n);if(e&&i.includes(e)){let a=P(e);r?a===null?console.error(`[css-render/unmount]: The style with target='${n}' is mounted in count mode.`):a<=1?(j(e),t.els=i.filter(t=>t!==e)):F(e,a-1):a===null?(j(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 L(e,t){e.push(t)}function R(e,t,n,r,i,a,o,c,l){if(o&&!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,A(t,e,r,o));return}let u,{els:d}=t,f;if(n===void 0&&(f=t.render(r),n=s(f)),l){l(n,f??t.render(r));return}let p=M(n);if(c||p===null){if(u=p===null?N(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&&F(u,1),L(d,u)}else{let e=P(p);a?e===null?console.error(`[css-render/mount]: The style with id='${n}' has been mounted in no-count mode.`):F(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 z(e){return A(this,this.instance,e)}function B(e={}){let{target:t,id:n,ssr:r,props:i,count:a=!1,head:o=!1,boost:s=!1,force:c=!1}=e;return R(this.instance,this,n??t,i,o,a,s,c,r)}function V(e={}){let{id:t,target:n,delay:r=0,count:i=!1}=e;r===0?I(this.instance,this,t??n,i):setTimeout(()=>I(this.instance,this,t??n,i),r)}var H=function(e,t,n,r){return{instance:e,$:t,props:n,children:r,els:[],render:z,mount:B,unmount:V}},U=function(e,t,n,r){return Array.isArray(t)?H(e,{$:null},null,t):Array.isArray(n)?H(e,t,null,n):Array.isArray(r)?H(e,t,n,r):H(e,t,n,null)};function W(e={}){let t=null,n={c:((...e)=>U(n,...e)),use:(e,...t)=>e.install(n,...t),find:M,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:G}=W(),K=G(`.xicon`,{width:`1em`,height:`1em`,display:`inline-flex`},[G(`svg`,{width:`1em`,height:`1em`}),G(`svg:not([fill])`,{fill:`currentColor`})]),q=()=>{K.mount({id:`xicons-icon`})},J={size:[String,Number],color:String,tag:String},Y=Symbol(`IconConfigInjection`);n({name:`IconConfigProvider`,props:J,setup(t,{slots:n}){return a(Y,t),()=>e(n,`default`)}});var X=`span`,Z=n({name:`Icon`,props:J,setup(n,{slots:a}){let o=r(Y,null),s=u(()=>{let e=n.size??o?.size;if(e!==void 0)return typeof e==`number`||/^\d+$/.test(e)?`${e}px`:e}),c=u(()=>{let{color:e}=n;return e===void 0?o?o.color:void 0:e}),l=u(()=>{let{tag:e}=n;return e===void 0?o?.tag??X:e});return i(()=>{q()}),()=>t(l.value,{class:`xicon`,style:{color:c.value,fontSize:s.value}},[e(a,`default`)])}});export{m as n,p as r,Z as t}; \ No newline at end of file diff --git a/frontend/dist/assets/fade-in-scale-up.cssr-DOaveAHn.js b/frontend/dist/assets/fade-in-scale-up.cssr-DOaveAHn.js deleted file mode 100644 index 5a0fa52..0000000 --- a/frontend/dist/assets/fade-in-scale-up.cssr-DOaveAHn.js +++ /dev/null @@ -1 +0,0 @@ -import{I as e,N as t,P as n,St as r,b as i,j as a,m as o,ot as s,p as c,v as l,vt as u,w as d,y as f,yt as p}from"./client-CT8bsOZT.js";import{V as m,a as h}from"./light-DhgSQSdG.js";import{d as g,u as _}from"./Card-BX9nnwGC.js";import{t as v}from"./flatten-K6HmZnua.js";function y(e){let t=p(!!e.value);if(t.value)return u(t);let n=s(e,e=>{e&&(t.value=!0,n())});return u(t)}function b(){return n()!==null}var x=typeof window<`u`,S=o(`n-drawer-body`);o(`n-drawer`);var C=o(`n-modal-body`),w=o(`n-modal-provider`),T=o(`n-modal`),E=o(`n-popover-body`);function D(e,t,n=`default`){let r=t[n];if(r===void 0)throw Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}function O(e,t=!0,n=[]){return e.forEach(e=>{if(e!==null){if(typeof e!=`object`){(typeof e==`string`||typeof e==`number`)&&n.push(a(String(e)));return}if(Array.isArray(e)){O(e,t,n);return}if(e.type===f){if(e.children===null)return;Array.isArray(e.children)&&O(e.children,t,n)}else e.type!==l&&n.push(e)}}),n}function k(e,t,n=`default`){let r=t[n];if(r===void 0)throw Error(`[vueuc/${e}]: slot[${n}] is empty.`);let i=O(r());if(i.length===1)return i[0];throw Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}var A=`@@coContext`,j={mounted(e,{value:t,modifiers:n}){e[A]={handler:void 0},typeof t==`function`&&(e[A].handler=t,g(`clickoutside`,e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){let r=e[A];typeof t==`function`?r.handler?r.handler!==t&&(_(`clickoutside`,e,r.handler,{capture:n.capture}),r.handler=t,g(`clickoutside`,e,t,{capture:n.capture})):(e[A].handler=t,g(`clickoutside`,e,t,{capture:n.capture})):r.handler&&=(_(`clickoutside`,e,r.handler,{capture:n.capture}),void 0)},unmounted(e,{modifiers:t}){let{handler:n}=e[A];n&&_(`clickoutside`,e,n,{capture:t.capture}),e[A].handler=void 0}};function M(e,t){console.error(`[vdirs/${e}]: ${t}`)}var N=new class{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(e,t){let{elementZIndex:n}=this;if(t!==void 0){e.style.zIndex=`${t}`,n.delete(e);return}let{nextZIndex:r}=this;n.has(e)&&n.get(e)+1===this.nextZIndex||(e.style.zIndex=`${r}`,n.set(e,r),this.nextZIndex=r+1,this.squashState())}unregister(e,t){let{elementZIndex:n}=this;n.has(e)?n.delete(e):t===void 0&&M(`z-index-manager/unregister-element`,`Element not found when unregistering.`),this.squashState()}squashState(){let{elementCount:e}=this;e||(this.nextZIndex=2e3),this.nextZIndex-e>2500&&this.rearrange()}rearrange(){let e=Array.from(this.elementZIndex.entries());e.sort((e,t)=>e[1]-t[1]),this.nextZIndex=2e3,e.forEach(e=>{let t=e[0],n=this.nextZIndex++;`${n}`!==t.style.zIndex&&(t.style.zIndex=`${n}`)})}},P=`@@ziContext`,F={mounted(e,t){let{value:n={}}=t,{zIndex:r,enabled:i}=n;e[P]={enabled:!!i,initialized:!1},i&&(N.ensureZIndex(e,r),e[P].initialized=!0)},updated(e,t){let{value:n={}}=t,{zIndex:r,enabled:i}=n,a=e[P].enabled;i&&!a&&(N.ensureZIndex(e,r),e[P].initialized=!0),e[P].enabled=!!i},unmounted(e,t){if(!e[P].initialized)return;let{value:n={}}=t,{zIndex:r}=n;N.unregister(e,r)}},I=t({name:`LazyTeleport`,props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:y(r(e,`show`)),mergedTo:d(()=>{let{to:t}=e;return t??`body`})}},render(){return this.showTeleport?this.disabled?D(`lazy-teleport`,this.$slots):e(i,{disabled:this.disabled,to:this.mergedTo},D(`lazy-teleport`,this.$slots)):null}});function L(e,t=`default`,n=void 0){let r=e[t];if(!r)return c(`getFirstSlotVNode`,`slot[${t}] is empty`),null;let i=v(r(n));return i.length===1?i[0]:(c(`getFirstSlotVNode`,`slot[${t}] should have exactly one child`),null)}function R(e,t,n){if(!t)return null;let r=v(t(n));return r.length===1?r[0]:(c(`getFirstSlotVNode`,`slot[${e}] should have exactly one child`),null)}var{cubicBezierEaseIn:z,cubicBezierEaseOut:B}=h;function V({transformOrigin:e=`inherit`,duration:t=`.2s`,enterScale:n=`.9`,originalTransform:r=``,originalTransition:i=``}={}){return[m(`&.fade-in-scale-up-transition-leave-active`,{transformOrigin:e,transition:`opacity ${t} ${z}, transform ${t} ${z} ${i&&`,${i}`}`}),m(`&.fade-in-scale-up-transition-enter-active`,{transformOrigin:e,transition:`opacity ${t} ${B}, transform ${t} ${B} ${i&&`,${i}`}`}),m(`&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to`,{opacity:0,transform:`${r} scale(${n})`}),m(`&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to`,{opacity:1,transform:`${r} scale(1)`})]}export{F as a,D as c,T as d,w as f,x as h,I as i,E as l,b as m,L as n,j as o,S as p,R as r,k as s,V as t,C as u}; \ No newline at end of file diff --git a/frontend/dist/assets/get-0R_rx1dU.js b/frontend/dist/assets/get-0R_rx1dU.js deleted file mode 100644 index b2104fa..0000000 --- a/frontend/dist/assets/get-0R_rx1dU.js +++ /dev/null @@ -1 +0,0 @@ -import{D as e,d as t}from"./light-DhgSQSdG.js";import{K as n,W as r}from"./index-oex1uI7H.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&&ni.map(i=>d[i]); -import{At as e,Ct as t,Dt as n,E as r,Et as i,F as a,Ft as o,H as s,I as c,It as l,L as u,Lt as d,M as f,Mt as p,N as m,Nt as h,Ot as g,P as _,Pt as v,R as y,Rt as b,S as x,St as S,Tt as C,Ut as w,X as T,Y as E,Z as D,_ as O,_t as k,at as ee,b as te,c as ne,ct as re,dt as ie,g as ae,gt as oe,h as se,ht as ce,j as le,jt as ue,k as de,kt as fe,m as pe,mt as me,nt as he,o as ge,ot as _e,p as ve,pt as ye,q as be,rt as xe,s as Se,t as Ce,ut as we,vt as Te,w as A,wt as Ee,xt as De,y as Oe,yt as j,zt as ke}from"./client-CT8bsOZT.js";import{A as Ae,D as je,G as M,H as Me,I as N,K as Ne,L as P,M as Pe,N as Fe,O as Ie,P as Le,R as Re,V as F,W as ze,a as Be,i as Ve,k as He,n as I,o as Ue,q as We,r as Ge,s as Ke,t as L,z as R}from"./light-DhgSQSdG.js";import{i as qe,n as Je,r as z,t as Ye}from"./light-DW22zwJY.js";(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var Xe=void 0,Ze=typeof window<`u`&&window.trustedTypes;if(Ze)try{Xe=Ze.createPolicy(`vue`,{createHTML:e=>e})}catch{}var Qe=Xe?e=>Xe.createHTML(e):e=>e,$e=`http://www.w3.org/2000/svg`,et=`http://www.w3.org/1998/Math/MathML`,B=typeof document<`u`?document:null,tt=B&&B.createElement(`template`),nt={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{let t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{let i=t===`svg`?B.createElementNS($e,e):t===`mathml`?B.createElementNS(et,e):n?B.createElement(e,{is:n}):B.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>B.createTextNode(e),createComment:e=>B.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>B.querySelector(e),setScopeId(e,t){e.setAttribute(t,``)},insertStaticContent(e,t,n,r,i,a){let o=n?n.previousSibling:t.lastChild;if(i&&(i===a||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===a||!(i=i.nextSibling)););else{tt.innerHTML=Qe(r===`svg`?`${e}`:r===`mathml`?`${e}`:e);let i=tt.content;if(r===`svg`||r===`mathml`){let e=i.firstChild;for(;e.firstChild;)i.appendChild(e.firstChild);i.removeChild(e)}t.insertBefore(i,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},V=`transition`,rt=`animation`,it=Symbol(`_vtc`),at={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},ot=n({},O,at),st=(e=>(e.displayName=`Transition`,e.props=ot,e))((e,{slots:t})=>c(ae,ut(e),t)),ct=(e,t=[])=>{ue(e)?e.forEach(e=>e(...t)):e&&e(...t)},lt=e=>e?ue(e)?e.some(e=>e.length>1):e.length>1:!1;function ut(e){let t={};for(let n in e)n in at||(t[n]=e[n]);if(e.css===!1)return t;let{name:r=`v`,type:i,duration:a,enterFromClass:o=`${r}-enter-from`,enterActiveClass:s=`${r}-enter-active`,enterToClass:c=`${r}-enter-to`,appearFromClass:l=o,appearActiveClass:u=s,appearToClass:d=c,leaveFromClass:f=`${r}-leave-from`,leaveActiveClass:p=`${r}-leave-active`,leaveToClass:m=`${r}-leave-to`}=e,h=dt(a),g=h&&h[0],_=h&&h[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:b,onLeave:x,onLeaveCancelled:S,onBeforeAppear:C=v,onAppear:w=y,onAppearCancelled:T=b}=t,E=(e,t,n,r)=>{e._enterCancelled=r,U(e,t?d:c),U(e,t?u:s),n&&n()},D=(e,t)=>{e._isLeaving=!1,U(e,f),U(e,m),U(e,p),t&&t()},O=e=>(t,n)=>{let r=e?w:y,a=()=>E(t,e,n);ct(r,[t,a]),pt(()=>{U(t,e?l:o),H(t,e?d:c),lt(r)||ht(t,i,g,a)})};return n(t,{onBeforeEnter(e){ct(v,[e]),H(e,o),H(e,s)},onBeforeAppear(e){ct(C,[e]),H(e,l),H(e,u)},onEnter:O(!1),onAppear:O(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>D(e,t);H(e,f),e._enterCancelled?(H(e,p),yt(e)):(yt(e),H(e,p)),pt(()=>{e._isLeaving&&(U(e,f),H(e,m),lt(x)||ht(e,i,_,n))}),ct(x,[e,n])},onEnterCancelled(e){E(e,!1,void 0,!0),ct(b,[e])},onAppearCancelled(e){E(e,!0,void 0,!0),ct(T,[e])},onLeaveCancelled(e){D(e),ct(S,[e])}})}function dt(e){if(e==null)return null;if(v(e))return[ft(e.enter),ft(e.leave)];{let t=ft(e);return[t,t]}}function ft(e){return w(e)}function H(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[it]||(e[it]=new Set)).add(t)}function U(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[it];n&&(n.delete(t),n.size||(e[it]=void 0))}function pt(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var mt=0;function ht(e,t,n,r){let i=e._endId=++mt,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=gt(e,t);if(!o)return r();let l=o+`end`,u=0,d=()=>{e.removeEventListener(l,f),a()},f=t=>{t.target===e&&++u>=c&&d()};setTimeout(()=>{u(n[e]||``).split(`, `),i=r(`${V}Delay`),a=r(`${V}Duration`),o=_t(i,a),s=r(`${rt}Delay`),c=r(`${rt}Duration`),l=_t(s,c),u=null,d=0,f=0;t===V?o>0&&(u=V,d=o,f=a.length):t===rt?l>0&&(u=rt,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?V:rt:null,f=u?u===V?a.length:c.length:0);let p=u===V&&/\b(?:transform|all)(?:,|$)/.test(r(`${V}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function _t(e,t){for(;e.lengthvt(t)+vt(e[n])))}function vt(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function yt(e){return(e?e.ownerDocument:document).body.offsetHeight}function bt(e,t,n){let r=e[it];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var xt=Symbol(`_vod`),St=Symbol(`_vsh`),Ct={name:`show`,beforeMount(e,{value:t},{transition:n}){e[xt]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):wt(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),wt(e,!0),r.enter(e)):r.leave(e,()=>{wt(e,!1)}):wt(e,t))},beforeUnmount(e,{value:t}){wt(e,t)}};function wt(e,t){e.style.display=t?e[xt]:`none`,e[St]=!t}var Tt=Symbol(``),Et=/(?:^|;)\s*display\s*:/;function Dt(e,t,n){let r=e.style,i=d(n),a=!1;if(n&&!i){if(t)if(d(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??kt(r,t,``)}else for(let e in t)n[e]??kt(r,e,``);for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?kt(r,i,``):Nt(e,i,!d(t)&&t?t[i]:void 0,o)||kt(r,i,o)}}else if(i){if(t!==n){let e=r[Tt];e&&(n+=`;`+e),r.cssText=n,a=Et.test(n)}}else t&&e.removeAttribute(`style`);xt in e&&(e[xt]=a?r.display:``,e[St]&&(r.display=`none`))}var Ot=/\s*!important$/;function kt(e,t,n){if(ue(n))n.forEach(n=>kt(e,t,n));else if(n??=``,t.startsWith(`--`))e.setProperty(t,n);else{let r=Mt(e,t);Ot.test(n)?e.setProperty(g(r),n.replace(Ot,``),`important`):e[r]=n}}var At=[`Webkit`,`Moz`,`ms`],jt={};function Mt(e,t){let n=jt[t];if(n)return n;let r=C(t);if(r!==`filter`&&r in e)return jt[t]=r;r=i(r);for(let n=0;nWt||=(Gt.then(()=>Wt=0),Date.now());function qt(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(ue(r)){let n=e.stopImmediatePropagation;e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0};let i=r.slice(),a=[e];for(let n=0;ne.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Yt=(e,t,n,r,i,a)=>{let s=i===`svg`;t===`class`?bt(e,r,s):t===`style`?Dt(e,n,r):o(t)?h(t)||Bt(e,t,n,r,a):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):Xt(e,t,r,s))?(It(e,t,r),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&Ft(e,t,r,s,a,t!==`value`)):e._isVueCE&&(Zt(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!d(r)))?It(e,C(t),r,a,t):(t===`true-value`?e._trueValue=r:t===`false-value`&&(e._falseValue=r),Ft(e,t,r,s))};function Xt(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&Jt(t)&&p(n));if(t===`spellcheck`||t===`draggable`||t===`translate`||t===`autocorrect`||t===`sandbox`&&e.tagName===`IFRAME`||t===`form`||t===`list`&&e.tagName===`INPUT`||t===`type`&&e.tagName===`TEXTAREA`)return!1;if(t===`width`||t===`height`){let t=e.tagName;if(t===`IMG`||t===`VIDEO`||t===`CANVAS`||t===`SOURCE`)return!1}return Jt(t)&&d(n)?!1:t in e}function Zt(e,t){let n=e._def.props;if(!n)return!1;let r=C(t);return Array.isArray(n)?n.some(e=>C(e)===r):Object.keys(n).some(e=>C(e)===r)}var Qt=new WeakMap,$t=new WeakMap,en=Symbol(`_moveCb`),tn=Symbol(`_enterCb`),nn=(e=>(delete e.props.mode,e))({name:`TransitionGroup`,props:n({},ot,{tag:String,moveClass:String}),setup(e,{slots:t}){let n=_(),r=ee(),i,o;return E(()=>{if(!i.length)return;let t=e.moveClass||`${e.name||`v`}-move`;if(!cn(i[0].el,n.vnode.el,t)){i=[];return}i.forEach(rn),i.forEach(an);let r=i.filter(on);yt(n.vnode.el),r.forEach(e=>{let n=e.el,r=n.style;H(n,t),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[en]=e=>{e&&e.target!==n||(!e||e.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[en]=null,U(n,t))};n.addEventListener(`transitionend`,i)}),i=[]}),()=>{let s=De(e),c=ut(s),l=s.tag||Oe;if(i=[],o)for(let e=0;e{e.split(/\s+/).forEach(e=>e&&r.classList.remove(e))}),n.split(/\s+/).forEach(e=>e&&r.classList.add(e)),r.style.display=`none`;let a=t.nodeType===1?t:t.parentNode;a.appendChild(r);let{hasTransform:o}=gt(r);return a.removeChild(r),o}var ln=t=>{let n=t.props[`onUpdate:modelValue`]||!1;return ue(n)?t=>e(n,t):n};function un(e){e.target.composing=!0}function dn(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var fn=Symbol(`_assign`);function pn(e,t,n){return t&&(e=e.trim()),n&&(e=ke(e)),e}var mn={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[fn]=ln(i);let a=r||i.props&&i.props.type===`number`;Lt(e,t?`change`:`input`,t=>{t.target.composing||e[fn](pn(e.value,n,a))}),(n||a)&&Lt(e,`change`,()=>{e.value=pn(e.value,n,a)}),t||(Lt(e,`compositionstart`,un),Lt(e,`compositionend`,dn),Lt(e,`change`,dn))},mounted(e,{value:t}){e.value=t??``},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[fn]=ln(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?ke(e.value):e.value,c=t??``;if(s===c)return;let l=e.getRootNode();(l instanceof Document||l instanceof ShadowRoot)&&l.activeElement===e&&e.type!==`range`&&(r&&t===n||i&&e.value.trim()===c)||(e.value=c)}},hn=[`ctrl`,`shift`,`alt`,`meta`],gn={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>`button`in e&&e.button!==0,middle:e=>`button`in e&&e.button!==1,right:e=>`button`in e&&e.button!==2,exact:(e,t)=>hn.some(n=>e[`${n}Key`]&&!t.includes(n))},_n=(e,t)=>{if(!e)return e;let n=e._withMods||={},r=t.join(`.`);return n[r]||(n[r]=((n,...r)=>{for(let e=0;e{let n=e._withKeys||={},r=t.join(`.`);return n[r]||(n[r]=(n=>{if(!(`key`in n))return;let r=g(n.key);if(t.some(e=>e===r||vn[e]===r))return e(n)}))},bn=n({patchProp:Yt},nt),xn;function Sn(){return xn||=de(bn)}var Cn=((...e)=>{let t=Sn().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=Tn(e);if(!r)return;let i=t._component;!p(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,wn(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function wn(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function Tn(e){return d(e)?document.querySelector(e):e}var En=typeof window<`u`,Dn,On=e=>Dn=e,kn=Symbol();function An(e){return e&&typeof e==`object`&&Object.prototype.toString.call(e)===`[object Object]`&&typeof e.toJSON!=`function`}var jn;(function(e){e.direct=`direct`,e.patchObject=`patch object`,e.patchFunction=`patch function`})(jn||={});var Mn=typeof window==`object`&&window.window===window?window:typeof self==`object`&&self.self===self?self:typeof global==`object`&&global.global===global?global:typeof globalThis==`object`?globalThis:{HTMLElement:null};function Nn(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([``,e],{type:e.type}):e}function Pn(e,t,n){let r=new XMLHttpRequest;r.open(`GET`,e),r.responseType=`blob`,r.onload=function(){zn(r.response,t,n)},r.onerror=function(){console.error(`could not download file`)},r.send()}function Fn(e){let t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function In(e){try{e.dispatchEvent(new MouseEvent(`click`))}catch{let t=new MouseEvent(`click`,{bubbles:!0,cancelable:!0,view:window,detail:0,screenX:80,screenY:20,clientX:80,clientY:20,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});e.dispatchEvent(t)}}var Ln=typeof navigator==`object`?navigator:{userAgent:``},Rn=/Macintosh/.test(Ln.userAgent)&&/AppleWebKit/.test(Ln.userAgent)&&!/Safari/.test(Ln.userAgent),zn=En?typeof HTMLAnchorElement<`u`&&`download`in HTMLAnchorElement.prototype&&!Rn?Bn:`msSaveOrOpenBlob`in Ln?Vn:Hn:()=>{};function Bn(e,t=`download`,n){let r=document.createElement(`a`);r.download=t,r.rel=`noopener`,typeof e==`string`?(r.href=e,r.origin===location.origin?In(r):Fn(r.href)?Pn(e,t,n):(r.target=`_blank`,In(r))):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){In(r)},0))}function Vn(e,t=`download`,n){if(typeof e==`string`)if(Fn(e))Pn(e,t,n);else{let t=document.createElement(`a`);t.href=e,t.target=`_blank`,setTimeout(function(){In(t)})}else navigator.msSaveOrOpenBlob(Nn(e,n),t)}function Hn(e,t,n,r){if(r||=open(``,`_blank`),r&&(r.document.title=r.document.body.innerText=`downloading...`),typeof e==`string`)return Pn(e,t,n);let i=e.type===`application/octet-stream`,a=/constructor/i.test(String(Mn.HTMLElement))||`safari`in Mn,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a||Rn)&&typeof FileReader<`u`){let t=new FileReader;t.onloadend=function(){let e=t.result;if(typeof e!=`string`)throw r=null,Error(`Wrong reader.result type`);e=o?e:e.replace(/^data:[^;]*;/,`data:attachment/file;`),r?r.location.href=e:location.assign(e),r=null},t.readAsDataURL(e)}else{let t=URL.createObjectURL(e);r?r.location.assign(t):location.href=t,r=null,setTimeout(function(){URL.revokeObjectURL(t)},4e4)}}var{assign:Un}=Object;function Wn(){let e=we(!0),t=e.run(()=>j({})),n=[],r=[],i=ce({install(e){On(i),i._a=e,e.provide(kn,i),e.config.globalProperties.$pinia=i,r.forEach(e=>n.push(e)),r=[]},use(e){return this._a?n.push(e):r.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}var Gn=()=>{};function Kn(e,t,n,r=Gn){e.add(t);let i=()=>{e.delete(t)&&r()};return!n&&ie()&&oe(i),i}function qn(e,...t){e.forEach(e=>{e(...t)})}var Jn=e=>e(),Yn=Symbol(),Xn=Symbol();function Zn(e,t){e instanceof Map&&t instanceof Map?t.forEach((t,n)=>e.set(n,t)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(let n in t){if(!t.hasOwnProperty(n))continue;let r=t[n],i=e[n];An(i)&&An(r)&&e.hasOwnProperty(n)&&!me(r)&&!ye(r)?e[n]=Zn(i,r):e[n]=r}return e}var Qn=Symbol();function $n(e){return!An(e)||!Object.prototype.hasOwnProperty.call(e,Qn)}var{assign:W}=Object;function er(e){return!!(me(e)&&e.effect)}function tr(e,n,r,i){let{state:a,actions:o,getters:s}=n,c=r.state.value[e],l;function u(){return c||(r.state.value[e]=a?a():{}),W(t(r.state.value[e]),o,Object.keys(s||{}).reduce((t,n)=>(t[n]=ce(A(()=>{On(r);let t=r._s.get(e);return s[n].call(t,t)})),t),{}))}return l=nr(e,u,n,r,i,!0),l}function nr(e,t,n={},r,i,a){let o,c=W({actions:{}},n),l={deep:!0},u,d,f=new Set,p=new Set,m=r.state.value[e];!a&&!m&&(r.state.value[e]={}),j({});let h;function g(t){let n;u=d=!1,typeof t==`function`?(t(r.state.value[e]),n={type:jn.patchFunction,storeId:e,events:void 0}):(Zn(r.state.value[e],t),n={type:jn.patchObject,payload:t,storeId:e,events:void 0});let i=h=Symbol();s().then(()=>{h===i&&(u=!0)}),d=!0,qn(f,n,r.state.value[e])}let _=a?function(){let{state:e}=n,t=e?e():{};this.$patch(e=>{W(e,t)})}:Gn;function v(){o.stop(),f.clear(),p.clear(),r._s.delete(e)}let y=(t,n=``)=>{if(Yn in t)return t[Xn]=n,t;let i=function(){On(r);let n=Array.from(arguments),a=new Set,o=new Set;function s(e){a.add(e)}function c(e){o.add(e)}qn(p,{args:n,name:i[Xn],store:b,after:s,onError:c});let l;try{l=t.apply(this&&this.$id===e?this:b,n)}catch(e){throw qn(o,e),e}return l instanceof Promise?l.then(e=>(qn(a,e),e)).catch(e=>(qn(o,e),Promise.reject(e))):(qn(a,l),l)};return i[Yn]=!0,i[Xn]=n,i},b=k({_p:r,$id:e,$onAction:Kn.bind(null,p),$patch:g,$reset:_,$subscribe(t,n={}){let i=Kn(f,t,n.detached,()=>a()),a=o.run(()=>_e(()=>r.state.value[e],r=>{(n.flush===`sync`?d:u)&&t({storeId:e,type:jn.direct,events:void 0},r)},W({},l,n)));return i},$dispose:v});r._s.set(e,b);let x=(r._a&&r._a.runWithContext||Jn)(()=>r._e.run(()=>(o=we()).run(()=>t({action:y}))));for(let t in x){let n=x[t];me(n)&&!er(n)||ye(n)?a||(m&&$n(n)&&(me(n)?n.value=m[t]:Zn(n,m[t])),r.state.value[e][t]=n):typeof n==`function`&&(x[t]=y(n,t),c.actions[t]=n)}return W(b,x),W(De(b),x),Object.defineProperty(b,"$state",{get:()=>r.state.value[e],set:e=>{g(t=>{W(t,e)})}}),r._p.forEach(e=>{W(b,o.run(()=>e({store:b,app:r._a,pinia:r,options:c})))}),m&&a&&n.hydrate&&n.hydrate(b.$state,m),u=!0,d=!0,b}function rr(e,t,n){let r,i=typeof t==`function`;r=i?n:t;function a(n,a){let o=u();return n||=o?y(kn,null):null,n&&On(n),n=Dn,n._s.has(e)||(i?nr(e,t,r,n):tr(e,r,n)),n._s.get(e)}return a.$id=e,a}function ir(e=8){return Math.random().toString(16).slice(2,2+e)}function ar(e){let t=A(e),n=j(t.value);return _e(t,e=>{n.value=e}),typeof e==`function`?n:{__v_isRef:!0,get value(){return n.value},set value(t){e.set(t)}}}function or(){let e=j(!1);return be(()=>{e.value=!0}),Te(e)}function sr(e,t=[],n){let r={};return Object.getOwnPropertyNames(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),Object.assign(r,n)}function cr(e,...t){return typeof e==`function`?e(...t):typeof e==`string`?le(e):typeof e==`number`?le(String(e)):null}var lr=`[object Symbol]`;function ur(e){return typeof e==`symbol`||Ie(e)&&He(e)==lr}function dr(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++ni?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=Array(i);++r=r?e:_r(e,t,n)}var yr=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]`);function br(e){return yr.test(e)}function xr(e){return e.split(``)}var Sr=`\\ud800-\\udfff`,Cr=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,wr=`\\ufe0e\\ufe0f`,Tr=`[`+Sr+`]`,Er=`[`+Cr+`]`,Dr=`\\ud83c[\\udffb-\\udfff]`,Or=`(?:`+Er+`|`+Dr+`)`,kr=`[^`+Sr+`]`,Ar=`(?:\\ud83c[\\udde6-\\uddff]){2}`,jr=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Mr=`\\u200d`,Nr=Or+`?`,Pr=`[`+wr+`]?`,Fr=`(?:`+Mr+`(?:`+[kr,Ar,jr].join(`|`)+`)`+Pr+Nr+`)*`,Ir=Pr+Nr+Fr,Lr=`(?:`+[kr+Er+`?`,Er,Ar,jr,Tr].join(`|`)+`)`,Rr=RegExp(Dr+`(?=`+Dr+`)|`+Lr+Ir,`g`);function zr(e){return e.match(Rr)||[]}function Br(e){return br(e)?zr(e):xr(e)}function Vr(e){return function(t){t=gr(t);var n=br(t)?Br(t):void 0,r=n?n[0]:t.charAt(0),i=n?vr(n,1).join(``):t.slice(1);return r[e]()+i}}var Hr=Vr(`toUpperCase`),Ur=Me(`base-icon`,` - height: 1em; - width: 1em; - line-height: 1em; - text-align: center; - display: inline-block; - position: relative; - fill: currentColor; -`,[F(`svg`,` - height: 1em; - width: 1em; - `)]),Wr=m({name:`BaseIcon`,props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){Ve(`-base-icon`,Ur,S(e,`clsPrefix`))},render(){return c(`i`,{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),Gr=m({name:`BaseIconSwitchTransition`,setup(e,{slots:t}){let n=or();return()=>c(st,{name:`icon-switch-transition`,appear:n.value},t)}});function Kr(e,t){let n=m({render(){return t()}});return m({name:Hr(e),setup(){let t=y(Le,null)?.mergedIconsRef;return()=>{let r=t?.value?.[e];return r?r():c(n,null)}}})}var qr=Kr(`close`,()=>c(`svg`,{viewBox:`0 0 12 12`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`,"aria-hidden":!0},c(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},c(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},c(`path`,{d:`M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z`}))))),Jr=Kr(`error`,()=>c(`svg`,{viewBox:`0 0 48 48`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},c(`g`,{stroke:`none`,"stroke-width":`1`,"fill-rule":`evenodd`},c(`g`,{"fill-rule":`nonzero`},c(`path`,{d:`M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z`}))))),Yr=Kr(`info`,()=>c(`svg`,{viewBox:`0 0 28 28`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},c(`g`,{stroke:`none`,"stroke-width":`1`,"fill-rule":`evenodd`},c(`g`,{"fill-rule":`nonzero`},c(`path`,{d:`M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z`}))))),Xr=Kr(`success`,()=>c(`svg`,{viewBox:`0 0 48 48`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},c(`g`,{stroke:`none`,"stroke-width":`1`,"fill-rule":`evenodd`},c(`g`,{"fill-rule":`nonzero`},c(`path`,{d:`M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z`}))))),Zr=Kr(`warning`,()=>c(`svg`,{viewBox:`0 0 24 24`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},c(`g`,{stroke:`none`,"stroke-width":`1`,"fill-rule":`evenodd`},c(`g`,{"fill-rule":`nonzero`},c(`path`,{d:`M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z`}))))),{cubicBezierEaseInOut:Qr}=Be;function $r({originalTransform:e=``,left:t=0,top:n=0,transition:r=`all .3s ${Qr} !important`}={}){return[F(`&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to`,{transform:`${e} scale(0.75)`,left:t,top:n,opacity:0}),F(`&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from`,{transform:`scale(1) ${e}`,left:t,top:n,opacity:1}),F(`&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active`,{transformOrigin:`center`,position:`absolute`,left:t,top:n,transition:r})]}var ei=Me(`base-close`,` - display: flex; - align-items: center; - justify-content: center; - cursor: pointer; - background-color: transparent; - color: var(--n-close-icon-color); - border-radius: var(--n-close-border-radius); - height: var(--n-close-size); - width: var(--n-close-size); - font-size: var(--n-close-icon-size); - outline: none; - border: none; - position: relative; - padding: 0; -`,[M(`absolute`,` - height: var(--n-close-icon-size); - width: var(--n-close-icon-size); - `),F(`&::before`,` - content: ""; - position: absolute; - width: var(--n-close-size); - height: var(--n-close-size); - left: 50%; - top: 50%; - transform: translateY(-50%) translateX(-50%); - transition: inherit; - border-radius: inherit; - `),Ne(`disabled`,[F(`&:hover`,` - color: var(--n-close-icon-color-hover); - `),F(`&:hover::before`,` - background-color: var(--n-close-color-hover); - `),F(`&:focus::before`,` - background-color: var(--n-close-color-hover); - `),F(`&:active`,` - color: var(--n-close-icon-color-pressed); - `),F(`&:active::before`,` - background-color: var(--n-close-color-pressed); - `)]),M(`disabled`,` - cursor: not-allowed; - color: var(--n-close-icon-color-disabled); - background-color: transparent; - `),M(`round`,[F(`&::before`,` - border-radius: 50%; - `)])]),ti=m({name:`BaseClose`,props:{isButtonTag:{type:Boolean,default:!0},clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},focusable:{type:Boolean,default:!0},round:Boolean,onClick:Function,absolute:Boolean},setup(e){return Ve(`-base-close`,ei,S(e,`clsPrefix`)),()=>{let{clsPrefix:t,disabled:n,absolute:r,round:i,isButtonTag:a}=e;return c(a?`button`:`div`,{type:a?`button`:void 0,tabindex:n||!e.focusable?-1:0,"aria-disabled":n,"aria-label":`close`,role:a?void 0:`button`,disabled:n,class:[`${t}-base-close`,r&&`${t}-base-close--absolute`,n&&`${t}-base-close--disabled`,i&&`${t}-base-close--round`],onMousedown:t=>{e.focusable||t.preventDefault()},onClick:e.onClick},c(Wr,{clsPrefix:t},{default:()=>c(qr,null)}))}}}),ni=m({name:`FadeInExpandTransition`,props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function n(t){e.width?t.style.maxWidth=`${t.offsetWidth}px`:t.style.maxHeight=`${t.offsetHeight}px`,t.offsetWidth}function r(t){e.width?t.style.maxWidth=`0`:t.style.maxHeight=`0`,t.offsetWidth;let{onLeave:n}=e;n&&n()}function i(t){e.width?t.style.maxWidth=``:t.style.maxHeight=``;let{onAfterLeave:n}=e;n&&n()}function a(t){if(t.style.transition=`none`,e.width){let e=t.offsetWidth;t.style.maxWidth=`0`,t.offsetWidth,t.style.transition=``,t.style.maxWidth=`${e}px`}else if(e.reverse)t.style.maxHeight=`${t.offsetHeight}px`,t.offsetHeight,t.style.transition=``,t.style.maxHeight=`0`;else{let e=t.offsetHeight;t.style.maxHeight=`0`,t.offsetWidth,t.style.transition=``,t.style.maxHeight=`${e}px`}t.offsetWidth}function o(t){var n;e.width?t.style.maxWidth=``:e.reverse||(t.style.maxHeight=``),(n=e.onAfterEnter)==null||n.call(e)}return()=>{let{group:s,width:l,appear:u,mode:d}=e,f=s?nn:st,p={name:l?`fade-in-width-expand-transition`:`fade-in-height-expand-transition`,appear:u,onEnter:a,onAfterEnter:o,onBeforeLeave:n,onLeave:r,onAfterLeave:i};return s||(p.mode=d),c(f,p,t)}}}),ri=F([F(`@keyframes rotator`,` - 0% { - -webkit-transform: rotate(0deg); - transform: rotate(0deg); - } - 100% { - -webkit-transform: rotate(360deg); - transform: rotate(360deg); - }`),Me(`base-loading`,` - position: relative; - line-height: 0; - width: 1em; - height: 1em; - `,[ze(`transition-wrapper`,` - position: absolute; - width: 100%; - height: 100%; - `,[$r()]),ze(`placeholder`,` - position: absolute; - left: 50%; - top: 50%; - transform: translateX(-50%) translateY(-50%); - `,[$r({left:`50%`,top:`50%`,originalTransform:`translateX(-50%) translateY(-50%)`})]),ze(`container`,` - animation: rotator 3s linear infinite both; - `,[ze(`icon`,` - height: 1em; - width: 1em; - `)])])]),ii=`1.6s`,ai={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0},scale:{type:Number,default:1},radius:{type:Number,default:100}},oi=m({name:`BaseLoading`,props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0}},ai),setup(e){Ve(`-base-loading`,ri,S(e,`clsPrefix`))},render(){let{clsPrefix:e,radius:t,strokeWidth:n,stroke:r,scale:i}=this,a=t/i;return c(`div`,{class:`${e}-base-loading`,role:`img`,"aria-label":`loading`},c(Gr,null,{default:()=>this.show?c(`div`,{key:`icon`,class:`${e}-base-loading__transition-wrapper`},c(`div`,{class:`${e}-base-loading__container`},c(`svg`,{class:`${e}-base-loading__icon`,viewBox:`0 0 ${2*a} ${2*a}`,xmlns:`http://www.w3.org/2000/svg`,style:{color:r}},c(`g`,null,c(`animateTransform`,{attributeName:`transform`,type:`rotate`,values:`0 ${a} ${a};270 ${a} ${a}`,begin:`0s`,dur:ii,fill:`freeze`,repeatCount:`indefinite`}),c(`circle`,{class:`${e}-base-loading__icon`,fill:`none`,stroke:`currentColor`,"stroke-width":n,"stroke-linecap":`round`,cx:a,cy:a,r:t-n/2,"stroke-dasharray":5.67*t,"stroke-dashoffset":18.48*t},c(`animateTransform`,{attributeName:`transform`,type:`rotate`,values:`0 ${a} ${a};135 ${a} ${a};450 ${a} ${a}`,begin:`0s`,dur:ii,fill:`freeze`,repeatCount:`indefinite`}),c(`animate`,{attributeName:`stroke-dashoffset`,values:`${5.67*t};${1.42*t};${5.67*t}`,begin:`0s`,dur:ii,fill:`freeze`,repeatCount:`indefinite`})))))):c(`div`,{key:`placeholder`,class:`${e}-base-loading__placeholder`},this.$slots)}))}}),G={neutralBase:`#000`,neutralInvertBase:`#fff`,neutralTextBase:`#fff`,neutralPopover:`rgb(72, 72, 78)`,neutralCard:`rgb(24, 24, 28)`,neutralModal:`rgb(44, 44, 50)`,neutralBody:`rgb(16, 16, 20)`,alpha1:`0.9`,alpha2:`0.82`,alpha3:`0.52`,alpha4:`0.38`,alpha5:`0.28`,alphaClose:`0.52`,alphaDisabled:`0.38`,alphaDisabledInput:`0.06`,alphaPending:`0.09`,alphaTablePending:`0.06`,alphaTableStriped:`0.05`,alphaPressed:`0.05`,alphaAvatar:`0.18`,alphaRail:`0.2`,alphaProgressRail:`0.12`,alphaBorder:`0.24`,alphaDivider:`0.09`,alphaInput:`0.1`,alphaAction:`0.06`,alphaTab:`0.04`,alphaScrollbar:`0.2`,alphaScrollbarHover:`0.3`,alphaCode:`0.12`,alphaTag:`0.2`,primaryHover:`#7fe7c4`,primaryDefault:`#63e2b7`,primaryActive:`#5acea7`,primarySuppl:`rgb(42, 148, 125)`,infoHover:`#8acbec`,infoDefault:`#70c0e8`,infoActive:`#66afd3`,infoSuppl:`rgb(56, 137, 197)`,errorHover:`#e98b8b`,errorDefault:`#e88080`,errorActive:`#e57272`,errorSuppl:`rgb(208, 58, 82)`,warningHover:`#f5d599`,warningDefault:`#f2c97d`,warningActive:`#e6c260`,warningSuppl:`rgb(240, 138, 0)`,successHover:`#7fe7c4`,successDefault:`#63e2b7`,successActive:`#5acea7`,successSuppl:`rgb(42, 148, 125)`},si=Re(G.neutralBase),ci=Re(G.neutralInvertBase),li=`rgba(${ci.slice(0,3).join(`, `)}, `;function K(e){return`${li+String(e)})`}function ui(e){let t=Array.from(ci);return t[3]=Number(e),P(si,t)}var q=Object.assign(Object.assign({name:`common`},Be),{baseColor:G.neutralBase,primaryColor:G.primaryDefault,primaryColorHover:G.primaryHover,primaryColorPressed:G.primaryActive,primaryColorSuppl:G.primarySuppl,infoColor:G.infoDefault,infoColorHover:G.infoHover,infoColorPressed:G.infoActive,infoColorSuppl:G.infoSuppl,successColor:G.successDefault,successColorHover:G.successHover,successColorPressed:G.successActive,successColorSuppl:G.successSuppl,warningColor:G.warningDefault,warningColorHover:G.warningHover,warningColorPressed:G.warningActive,warningColorSuppl:G.warningSuppl,errorColor:G.errorDefault,errorColorHover:G.errorHover,errorColorPressed:G.errorActive,errorColorSuppl:G.errorSuppl,textColorBase:G.neutralTextBase,textColor1:K(G.alpha1),textColor2:K(G.alpha2),textColor3:K(G.alpha3),textColorDisabled:K(G.alpha4),placeholderColor:K(G.alpha4),placeholderColorDisabled:K(G.alpha5),iconColor:K(G.alpha4),iconColorDisabled:K(G.alpha5),iconColorHover:K(Number(G.alpha4)*1.25),iconColorPressed:K(Number(G.alpha4)*.8),opacity1:G.alpha1,opacity2:G.alpha2,opacity3:G.alpha3,opacity4:G.alpha4,opacity5:G.alpha5,dividerColor:K(G.alphaDivider),borderColor:K(G.alphaBorder),closeIconColorHover:K(Number(G.alphaClose)),closeIconColor:K(Number(G.alphaClose)),closeIconColorPressed:K(Number(G.alphaClose)),closeColorHover:`rgba(255, 255, 255, .12)`,closeColorPressed:`rgba(255, 255, 255, .08)`,clearColor:K(G.alpha4),clearColorHover:R(K(G.alpha4),{alpha:1.25}),clearColorPressed:R(K(G.alpha4),{alpha:.8}),scrollbarColor:K(G.alphaScrollbar),scrollbarColorHover:K(G.alphaScrollbarHover),scrollbarWidth:`5px`,scrollbarHeight:`5px`,scrollbarBorderRadius:`5px`,progressRailColor:K(G.alphaProgressRail),railColor:K(G.alphaRail),popoverColor:G.neutralPopover,tableColor:G.neutralCard,cardColor:G.neutralCard,modalColor:G.neutralModal,bodyColor:G.neutralBody,tagColor:ui(G.alphaTag),avatarColor:K(G.alphaAvatar),invertedColor:G.neutralBase,inputColor:K(G.alphaInput),codeColor:K(G.alphaCode),tabColor:K(G.alphaTab),actionColor:K(G.alphaAction),tableHeaderColor:K(G.alphaAction),hoverColor:K(G.alphaPending),tableColorHover:K(G.alphaTablePending),tableColorStriped:K(G.alphaTableStriped),pressedColor:K(G.alphaPressed),opacityDisabled:G.alphaDisabled,inputColorDisabled:K(G.alphaDisabledInput),buttonColor2:`rgba(255, 255, 255, .08)`,buttonColor2Hover:`rgba(255, 255, 255, .12)`,buttonColor2Pressed:`rgba(255, 255, 255, .08)`,boxShadow1:`0 1px 2px -2px rgba(0, 0, 0, .24), 0 3px 6px 0 rgba(0, 0, 0, .18), 0 5px 12px 4px rgba(0, 0, 0, .12)`,boxShadow2:`0 3px 6px -4px rgba(0, 0, 0, .24), 0 6px 12px 0 rgba(0, 0, 0, .16), 0 9px 18px 8px rgba(0, 0, 0, .10)`,boxShadow3:`0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)`}),J={name:`Scrollbar`,common:q,self:qe},di={iconSizeTiny:`28px`,iconSizeSmall:`34px`,iconSizeMedium:`40px`,iconSizeLarge:`46px`,iconSizeHuge:`52px`};function fi(e){let{textColorDisabled:t,iconColor:n,textColor2:r,fontSizeTiny:i,fontSizeSmall:a,fontSizeMedium:o,fontSizeLarge:s,fontSizeHuge:c}=e;return Object.assign(Object.assign({},di),{fontSizeTiny:i,fontSizeSmall:a,fontSizeMedium:o,fontSizeLarge:s,fontSizeHuge:c,textColor:t,iconColor:n,extraTextColor:r})}var pi={name:`Empty`,common:L,self:fi},mi={name:`Empty`,common:q,self:fi},hi={height:`calc(var(--n-option-height) * 7.6)`,paddingTiny:`4px 0`,paddingSmall:`4px 0`,paddingMedium:`4px 0`,paddingLarge:`4px 0`,paddingHuge:`4px 0`,optionPaddingTiny:`0 12px`,optionPaddingSmall:`0 12px`,optionPaddingMedium:`0 12px`,optionPaddingLarge:`0 12px`,optionPaddingHuge:`0 12px`,loadingSize:`18px`};function gi(e){let{borderRadius:t,popoverColor:n,textColor3:r,dividerColor:i,textColor2:a,primaryColorPressed:o,textColorDisabled:s,primaryColor:c,opacityDisabled:l,hoverColor:u,fontSizeTiny:d,fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:m,fontSizeHuge:h,heightTiny:g,heightSmall:_,heightMedium:v,heightLarge:y,heightHuge:b}=e;return Object.assign(Object.assign({},hi),{optionFontSizeTiny:d,optionFontSizeSmall:f,optionFontSizeMedium:p,optionFontSizeLarge:m,optionFontSizeHuge:h,optionHeightTiny:g,optionHeightSmall:_,optionHeightMedium:v,optionHeightLarge:y,optionHeightHuge:b,borderRadius:t,color:n,groupHeaderTextColor:r,actionDividerColor:i,optionTextColor:a,optionTextColorPressed:o,optionTextColorDisabled:s,optionTextColorActive:c,optionOpacityDisabled:l,optionCheckColor:c,optionColorPending:u,optionColorActive:`rgba(0, 0, 0, 0)`,optionColorActivePending:u,actionTextColor:a,loadingColor:c})}var _i=I({name:`InternalSelectMenu`,common:L,peers:{Scrollbar:z,Empty:pi},self:gi}),vi={name:`InternalSelectMenu`,common:q,peers:{Scrollbar:J,Empty:mi},self:gi},yi={space:`6px`,spaceArrow:`10px`,arrowOffset:`10px`,arrowOffsetVertical:`10px`,arrowHeight:`6px`,padding:`8px 14px`};function bi(e){let{boxShadow2:t,popoverColor:n,textColor2:r,borderRadius:i,fontSize:a,dividerColor:o}=e;return Object.assign(Object.assign({},yi),{fontSize:a,borderRadius:i,color:n,dividerColor:o,textColor:r,boxShadow:t})}var xi=I({name:`Popover`,common:L,peers:{Scrollbar:z},self:bi}),Si={name:`Popover`,common:q,peers:{Scrollbar:J},self:bi},Ci={closeIconSizeTiny:`12px`,closeIconSizeSmall:`12px`,closeIconSizeMedium:`14px`,closeIconSizeLarge:`14px`,closeSizeTiny:`16px`,closeSizeSmall:`16px`,closeSizeMedium:`18px`,closeSizeLarge:`18px`,padding:`0 7px`,closeMargin:`0 0 0 4px`},wi={name:`Tag`,common:q,self(e){let{textColor2:t,primaryColorHover:n,primaryColorPressed:r,primaryColor:i,infoColor:a,successColor:o,warningColor:s,errorColor:c,baseColor:l,borderColor:u,tagColor:d,opacityDisabled:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,closeColorHover:g,closeColorPressed:_,borderRadiusSmall:v,fontSizeMini:y,fontSizeTiny:b,fontSizeSmall:x,fontSizeMedium:S,heightMini:C,heightTiny:w,heightSmall:T,heightMedium:E,buttonColor2Hover:D,buttonColor2Pressed:O,fontWeightStrong:k}=e;return Object.assign(Object.assign({},Ci),{closeBorderRadius:v,heightTiny:C,heightSmall:w,heightMedium:T,heightLarge:E,borderRadius:v,opacityDisabled:f,fontSizeTiny:y,fontSizeSmall:b,fontSizeMedium:x,fontSizeLarge:S,fontWeightStrong:k,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:l,colorCheckable:`#0000`,colorHoverCheckable:D,colorPressedCheckable:O,colorChecked:i,colorCheckedHover:n,colorCheckedPressed:r,border:`1px solid ${u}`,textColor:t,color:d,colorBordered:`#0000`,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,closeColorHover:g,closeColorPressed:_,borderPrimary:`1px solid ${N(i,{alpha:.3})}`,textColorPrimary:i,colorPrimary:N(i,{alpha:.16}),colorBorderedPrimary:`#0000`,closeIconColorPrimary:R(i,{lightness:.7}),closeIconColorHoverPrimary:R(i,{lightness:.7}),closeIconColorPressedPrimary:R(i,{lightness:.7}),closeColorHoverPrimary:N(i,{alpha:.16}),closeColorPressedPrimary:N(i,{alpha:.12}),borderInfo:`1px solid ${N(a,{alpha:.3})}`,textColorInfo:a,colorInfo:N(a,{alpha:.16}),colorBorderedInfo:`#0000`,closeIconColorInfo:R(a,{alpha:.7}),closeIconColorHoverInfo:R(a,{alpha:.7}),closeIconColorPressedInfo:R(a,{alpha:.7}),closeColorHoverInfo:N(a,{alpha:.16}),closeColorPressedInfo:N(a,{alpha:.12}),borderSuccess:`1px solid ${N(o,{alpha:.3})}`,textColorSuccess:o,colorSuccess:N(o,{alpha:.16}),colorBorderedSuccess:`#0000`,closeIconColorSuccess:R(o,{alpha:.7}),closeIconColorHoverSuccess:R(o,{alpha:.7}),closeIconColorPressedSuccess:R(o,{alpha:.7}),closeColorHoverSuccess:N(o,{alpha:.16}),closeColorPressedSuccess:N(o,{alpha:.12}),borderWarning:`1px solid ${N(s,{alpha:.3})}`,textColorWarning:s,colorWarning:N(s,{alpha:.16}),colorBorderedWarning:`#0000`,closeIconColorWarning:R(s,{alpha:.7}),closeIconColorHoverWarning:R(s,{alpha:.7}),closeIconColorPressedWarning:R(s,{alpha:.7}),closeColorHoverWarning:N(s,{alpha:.16}),closeColorPressedWarning:N(s,{alpha:.11}),borderError:`1px solid ${N(c,{alpha:.3})}`,textColorError:c,colorError:N(c,{alpha:.16}),colorBorderedError:`#0000`,closeIconColorError:R(c,{alpha:.7}),closeIconColorHoverError:R(c,{alpha:.7}),closeIconColorPressedError:R(c,{alpha:.7}),closeColorHoverError:N(c,{alpha:.16}),closeColorPressedError:N(c,{alpha:.12})})}},Ti={paddingSingle:`0 26px 0 12px`,paddingMultiple:`3px 26px 0 12px`,clearSize:`16px`,arrowSize:`16px`},Ei={name:`InternalSelection`,common:q,peers:{Popover:Si},self(e){let{borderRadius:t,textColor2:n,textColorDisabled:r,inputColor:i,inputColorDisabled:a,primaryColor:o,primaryColorHover:s,warningColor:c,warningColorHover:l,errorColor:u,errorColorHover:d,iconColor:f,iconColorDisabled:p,clearColor:m,clearColorHover:h,clearColorPressed:g,placeholderColor:_,placeholderColorDisabled:v,fontSizeTiny:y,fontSizeSmall:b,fontSizeMedium:x,fontSizeLarge:S,heightTiny:C,heightSmall:w,heightMedium:T,heightLarge:E,fontWeight:D}=e;return Object.assign(Object.assign({},Ti),{fontWeight:D,fontSizeTiny:y,fontSizeSmall:b,fontSizeMedium:x,fontSizeLarge:S,heightTiny:C,heightSmall:w,heightMedium:T,heightLarge:E,borderRadius:t,textColor:n,textColorDisabled:r,placeholderColor:_,placeholderColorDisabled:v,color:i,colorDisabled:a,colorActive:N(o,{alpha:.1}),border:`1px solid #0000`,borderHover:`1px solid ${s}`,borderActive:`1px solid ${o}`,borderFocus:`1px solid ${s}`,boxShadowHover:`none`,boxShadowActive:`0 0 8px 0 ${N(o,{alpha:.4})}`,boxShadowFocus:`0 0 8px 0 ${N(o,{alpha:.4})}`,caretColor:o,arrowColor:f,arrowColorDisabled:p,loadingColor:o,borderWarning:`1px solid ${c}`,borderHoverWarning:`1px solid ${l}`,borderActiveWarning:`1px solid ${c}`,borderFocusWarning:`1px solid ${l}`,boxShadowHoverWarning:`none`,boxShadowActiveWarning:`0 0 8px 0 ${N(c,{alpha:.4})}`,boxShadowFocusWarning:`0 0 8px 0 ${N(c,{alpha:.4})}`,colorActiveWarning:N(c,{alpha:.1}),caretColorWarning:c,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${d}`,borderActiveError:`1px solid ${u}`,borderFocusError:`1px solid ${d}`,boxShadowHoverError:`none`,boxShadowActiveError:`0 0 8px 0 ${N(u,{alpha:.4})}`,boxShadowFocusError:`0 0 8px 0 ${N(u,{alpha:.4})}`,colorActiveError:N(u,{alpha:.1}),caretColorError:u,clearColor:m,clearColorHover:h,clearColorPressed:g})}};function Di(e){let{borderRadius:t,textColor2:n,textColorDisabled:r,inputColor:i,inputColorDisabled:a,primaryColor:o,primaryColorHover:s,warningColor:c,warningColorHover:l,errorColor:u,errorColorHover:d,borderColor:f,iconColor:p,iconColorDisabled:m,clearColor:h,clearColorHover:g,clearColorPressed:_,placeholderColor:v,placeholderColorDisabled:y,fontSizeTiny:b,fontSizeSmall:x,fontSizeMedium:S,fontSizeLarge:C,heightTiny:w,heightSmall:T,heightMedium:E,heightLarge:D,fontWeight:O}=e;return Object.assign(Object.assign({},Ti),{fontSizeTiny:b,fontSizeSmall:x,fontSizeMedium:S,fontSizeLarge:C,heightTiny:w,heightSmall:T,heightMedium:E,heightLarge:D,borderRadius:t,fontWeight:O,textColor:n,textColorDisabled:r,placeholderColor:v,placeholderColorDisabled:y,color:i,colorDisabled:a,colorActive:i,border:`1px solid ${f}`,borderHover:`1px solid ${s}`,borderActive:`1px solid ${o}`,borderFocus:`1px solid ${s}`,boxShadowHover:`none`,boxShadowActive:`0 0 0 2px ${N(o,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${N(o,{alpha:.2})}`,caretColor:o,arrowColor:p,arrowColorDisabled:m,loadingColor:o,borderWarning:`1px solid ${c}`,borderHoverWarning:`1px solid ${l}`,borderActiveWarning:`1px solid ${c}`,borderFocusWarning:`1px solid ${l}`,boxShadowHoverWarning:`none`,boxShadowActiveWarning:`0 0 0 2px ${N(c,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${N(c,{alpha:.2})}`,colorActiveWarning:i,caretColorWarning:c,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${d}`,borderActiveError:`1px solid ${u}`,borderFocusError:`1px solid ${d}`,boxShadowHoverError:`none`,boxShadowActiveError:`0 0 0 2px ${N(u,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${N(u,{alpha:.2})}`,colorActiveError:i,caretColorError:u,clearColor:h,clearColorHover:g,clearColorPressed:_})}var Oi=I({name:`InternalSelection`,common:L,peers:{Popover:xi},self:Di}),ki={iconMargin:`11px 8px 0 12px`,iconMarginRtl:`11px 12px 0 8px`,iconSize:`24px`,closeIconSize:`16px`,closeSize:`20px`,closeMargin:`13px 14px 0 0`,closeMarginRtl:`13px 0 0 14px`,padding:`13px`},Ai={name:`Alert`,common:q,self(e){let{lineHeight:t,borderRadius:n,fontWeightStrong:r,dividerColor:i,inputColor:a,textColor1:o,textColor2:s,closeColorHover:c,closeColorPressed:l,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,infoColorSuppl:p,successColorSuppl:m,warningColorSuppl:h,errorColorSuppl:g,fontSize:_}=e;return Object.assign(Object.assign({},ki),{fontSize:_,lineHeight:t,titleFontWeight:r,borderRadius:n,border:`1px solid ${i}`,color:a,titleTextColor:o,iconColor:s,contentTextColor:s,closeBorderRadius:n,closeColorHover:c,closeColorPressed:l,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,borderInfo:`1px solid ${N(p,{alpha:.35})}`,colorInfo:N(p,{alpha:.25}),titleTextColorInfo:o,iconColorInfo:p,contentTextColorInfo:s,closeColorHoverInfo:c,closeColorPressedInfo:l,closeIconColorInfo:u,closeIconColorHoverInfo:d,closeIconColorPressedInfo:f,borderSuccess:`1px solid ${N(m,{alpha:.35})}`,colorSuccess:N(m,{alpha:.25}),titleTextColorSuccess:o,iconColorSuccess:m,contentTextColorSuccess:s,closeColorHoverSuccess:c,closeColorPressedSuccess:l,closeIconColorSuccess:u,closeIconColorHoverSuccess:d,closeIconColorPressedSuccess:f,borderWarning:`1px solid ${N(h,{alpha:.35})}`,colorWarning:N(h,{alpha:.25}),titleTextColorWarning:o,iconColorWarning:h,contentTextColorWarning:s,closeColorHoverWarning:c,closeColorPressedWarning:l,closeIconColorWarning:u,closeIconColorHoverWarning:d,closeIconColorPressedWarning:f,borderError:`1px solid ${N(g,{alpha:.35})}`,colorError:N(g,{alpha:.25}),titleTextColorError:o,iconColorError:g,contentTextColorError:s,closeColorHoverError:c,closeColorPressedError:l,closeIconColorError:u,closeIconColorHoverError:d,closeIconColorPressedError:f})}},{cubicBezierEaseInOut:Y,cubicBezierEaseOut:ji,cubicBezierEaseIn:Mi}=Be;function Ni({overflow:e=`hidden`,duration:t=`.3s`,originalTransition:n=``,leavingDelay:r=`0s`,foldPadding:i=!1,enterToProps:a=void 0,leaveToProps:o=void 0,reverse:s=!1}={}){let c=s?`leave`:`enter`,l=s?`enter`:`leave`;return[F(`&.fade-in-height-expand-transition-${l}-from, - &.fade-in-height-expand-transition-${c}-to`,Object.assign(Object.assign({},a),{opacity:1})),F(`&.fade-in-height-expand-transition-${l}-to, - &.fade-in-height-expand-transition-${c}-from`,Object.assign(Object.assign({},o),{opacity:0,marginTop:`0 !important`,marginBottom:`0 !important`,paddingTop:i?`0 !important`:void 0,paddingBottom:i?`0 !important`:void 0})),F(`&.fade-in-height-expand-transition-${l}-active`,` - overflow: ${e}; - transition: - max-height ${t} ${Y} ${r}, - opacity ${t} ${ji} ${r}, - margin-top ${t} ${Y} ${r}, - margin-bottom ${t} ${Y} ${r}, - padding-top ${t} ${Y} ${r}, - padding-bottom ${t} ${Y} ${r} - ${n?`,${n}`:``} - `),F(`&.fade-in-height-expand-transition-${c}-active`,` - overflow: ${e}; - transition: - max-height ${t} ${Y}, - opacity ${t} ${Mi}, - margin-top ${t} ${Y}, - margin-bottom ${t} ${Y}, - padding-top ${t} ${Y}, - padding-bottom ${t} ${Y} - ${n?`,${n}`:``} - `)]}var Pi={linkFontSize:`13px`,linkPadding:`0 0 0 16px`,railWidth:`4px`};function Fi(e){let{borderRadius:t,railColor:n,primaryColor:r,primaryColorHover:i,primaryColorPressed:a,textColor2:o}=e;return Object.assign(Object.assign({},Pi),{borderRadius:t,railColor:n,railColorActive:r,linkColor:N(r,{alpha:.15}),linkTextColor:o,linkTextColorHover:i,linkTextColorPressed:a,linkTextColorActive:r})}var Ii={name:`Anchor`,common:q,self:Fi},Li={paddingTiny:`0 8px`,paddingSmall:`0 10px`,paddingMedium:`0 12px`,paddingLarge:`0 14px`,clearSize:`16px`};function Ri(e){let{textColor2:t,textColor3:n,textColorDisabled:r,primaryColor:i,primaryColorHover:a,inputColor:o,inputColorDisabled:s,warningColor:c,warningColorHover:l,errorColor:u,errorColorHover:d,borderRadius:f,lineHeight:p,fontSizeTiny:m,fontSizeSmall:h,fontSizeMedium:g,fontSizeLarge:_,heightTiny:v,heightSmall:y,heightMedium:b,heightLarge:x,clearColor:S,clearColorHover:C,clearColorPressed:w,placeholderColor:T,placeholderColorDisabled:E,iconColor:D,iconColorDisabled:O,iconColorHover:k,iconColorPressed:ee,fontWeight:te}=e;return Object.assign(Object.assign({},Li),{fontWeight:te,countTextColorDisabled:r,countTextColor:n,heightTiny:v,heightSmall:y,heightMedium:b,heightLarge:x,fontSizeTiny:m,fontSizeSmall:h,fontSizeMedium:g,fontSizeLarge:_,lineHeight:p,lineHeightTextarea:p,borderRadius:f,iconSize:`16px`,groupLabelColor:o,textColor:t,textColorDisabled:r,textDecorationColor:t,groupLabelTextColor:t,caretColor:i,placeholderColor:T,placeholderColorDisabled:E,color:o,colorDisabled:s,colorFocus:N(i,{alpha:.1}),groupLabelBorder:`1px solid #0000`,border:`1px solid #0000`,borderHover:`1px solid ${a}`,borderDisabled:`1px solid #0000`,borderFocus:`1px solid ${a}`,boxShadowFocus:`0 0 8px 0 ${N(i,{alpha:.3})}`,loadingColor:i,loadingColorWarning:c,borderWarning:`1px solid ${c}`,borderHoverWarning:`1px solid ${l}`,colorFocusWarning:N(c,{alpha:.1}),borderFocusWarning:`1px solid ${l}`,boxShadowFocusWarning:`0 0 8px 0 ${N(c,{alpha:.3})}`,caretColorWarning:c,loadingColorError:u,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${d}`,colorFocusError:N(u,{alpha:.1}),borderFocusError:`1px solid ${d}`,boxShadowFocusError:`0 0 8px 0 ${N(u,{alpha:.3})}`,caretColorError:u,clearColor:S,clearColorHover:C,clearColorPressed:w,iconColor:D,iconColorDisabled:O,iconColorHover:k,iconColorPressed:ee,suffixTextColor:t})}var X=I({name:`Input`,common:q,peers:{Scrollbar:J},self:Ri});function zi(e){let{textColor2:t,textColor3:n,textColorDisabled:r,primaryColor:i,primaryColorHover:a,inputColor:o,inputColorDisabled:s,borderColor:c,warningColor:l,warningColorHover:u,errorColor:d,errorColorHover:f,borderRadius:p,lineHeight:m,fontSizeTiny:h,fontSizeSmall:g,fontSizeMedium:_,fontSizeLarge:v,heightTiny:y,heightSmall:b,heightMedium:x,heightLarge:S,actionColor:C,clearColor:w,clearColorHover:T,clearColorPressed:E,placeholderColor:D,placeholderColorDisabled:O,iconColor:k,iconColorDisabled:ee,iconColorHover:te,iconColorPressed:ne,fontWeight:re}=e;return Object.assign(Object.assign({},Li),{fontWeight:re,countTextColorDisabled:r,countTextColor:n,heightTiny:y,heightSmall:b,heightMedium:x,heightLarge:S,fontSizeTiny:h,fontSizeSmall:g,fontSizeMedium:_,fontSizeLarge:v,lineHeight:m,lineHeightTextarea:m,borderRadius:p,iconSize:`16px`,groupLabelColor:C,groupLabelTextColor:t,textColor:t,textColorDisabled:r,textDecorationColor:t,caretColor:i,placeholderColor:D,placeholderColorDisabled:O,color:o,colorDisabled:s,colorFocus:o,groupLabelBorder:`1px solid ${c}`,border:`1px solid ${c}`,borderHover:`1px solid ${a}`,borderDisabled:`1px solid ${c}`,borderFocus:`1px solid ${a}`,boxShadowFocus:`0 0 0 2px ${N(i,{alpha:.2})}`,loadingColor:i,loadingColorWarning:l,borderWarning:`1px solid ${l}`,borderHoverWarning:`1px solid ${u}`,colorFocusWarning:o,borderFocusWarning:`1px solid ${u}`,boxShadowFocusWarning:`0 0 0 2px ${N(l,{alpha:.2})}`,caretColorWarning:l,loadingColorError:d,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${f}`,colorFocusError:o,borderFocusError:`1px solid ${f}`,boxShadowFocusError:`0 0 0 2px ${N(d,{alpha:.2})}`,caretColorError:d,clearColor:w,clearColorHover:T,clearColorPressed:E,iconColor:k,iconColorDisabled:ee,iconColorHover:te,iconColorPressed:ne,suffixTextColor:t})}var Bi=I({name:`Input`,common:L,peers:{Scrollbar:z},self:zi});function Vi(e){let{boxShadow2:t}=e;return{menuBoxShadow:t}}var Hi=I({name:`AutoComplete`,common:L,peers:{InternalSelectMenu:_i,Input:Bi},self:Vi}),Ui={name:`AutoComplete`,common:q,peers:{InternalSelectMenu:vi,Input:X},self:Vi};function Wi(e){let{borderRadius:t,avatarColor:n,cardColor:r,fontSize:i,heightTiny:a,heightSmall:o,heightMedium:s,heightLarge:c,heightHuge:l,modalColor:u,popoverColor:d}=e;return{borderRadius:t,fontSize:i,border:`2px solid ${r}`,heightTiny:a,heightSmall:o,heightMedium:s,heightLarge:c,heightHuge:l,color:P(r,n),colorModal:P(u,n),colorPopover:P(d,n)}}var Gi={name:`Avatar`,common:L,self:Wi},Ki={name:`Avatar`,common:q,self:Wi};function qi(){return{gap:`-12px`}}I({name:`AvatarGroup`,common:L,peers:{Avatar:Gi},self:qi});var Ji={name:`AvatarGroup`,common:q,peers:{Avatar:Ki},self:qi},Yi={width:`44px`,height:`44px`,borderRadius:`22px`,iconSize:`26px`},Xi={name:`BackTop`,common:q,self(e){let{popoverColor:t,textColor2:n,primaryColorHover:r,primaryColorPressed:i}=e;return Object.assign(Object.assign({},Yi),{color:t,textColor:n,iconColor:n,iconColorHover:r,iconColorPressed:i,boxShadow:`0 2px 8px 0px rgba(0, 0, 0, .12)`,boxShadowHover:`0 2px 12px 0px rgba(0, 0, 0, .18)`,boxShadowPressed:`0 2px 12px 0px rgba(0, 0, 0, .18)`})}},Zi={name:`Badge`,common:q,self(e){let{errorColorSuppl:t,infoColorSuppl:n,successColorSuppl:r,warningColorSuppl:i,fontFamily:a}=e;return{color:t,colorInfo:n,colorSuccess:r,colorError:t,colorWarning:i,fontSize:`12px`,fontFamily:a}}},Qi={fontWeightActive:`400`};function $i(e){let{fontSize:t,textColor3:n,textColor2:r,borderRadius:i,buttonColor2Hover:a,buttonColor2Pressed:o}=e;return Object.assign(Object.assign({},Qi),{fontSize:t,itemLineHeight:`1.25`,itemTextColor:n,itemTextColorHover:r,itemTextColorPressed:r,itemTextColorActive:r,itemBorderRadius:i,itemColorHover:a,itemColorPressed:o,separatorColor:n})}var ea={name:`Breadcrumb`,common:q,self:$i},ta={paddingTiny:`0 6px`,paddingSmall:`0 10px`,paddingMedium:`0 14px`,paddingLarge:`0 18px`,paddingRoundTiny:`0 10px`,paddingRoundSmall:`0 14px`,paddingRoundMedium:`0 18px`,paddingRoundLarge:`0 22px`,iconMarginTiny:`6px`,iconMarginSmall:`6px`,iconMarginMedium:`6px`,iconMarginLarge:`6px`,iconSizeTiny:`14px`,iconSizeSmall:`18px`,iconSizeMedium:`18px`,iconSizeLarge:`20px`,rippleDuration:`.6s`};function na(e){let{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:i,borderRadius:a,fontSizeTiny:o,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:l,opacityDisabled:u,textColor2:d,textColor3:f,primaryColorHover:p,primaryColorPressed:m,borderColor:h,primaryColor:g,baseColor:_,infoColor:v,infoColorHover:y,infoColorPressed:b,successColor:x,successColorHover:S,successColorPressed:C,warningColor:w,warningColorHover:T,warningColorPressed:E,errorColor:D,errorColorHover:O,errorColorPressed:k,fontWeight:ee,buttonColor2:te,buttonColor2Hover:ne,buttonColor2Pressed:re,fontWeightStrong:ie}=e;return Object.assign(Object.assign({},ta),{heightTiny:t,heightSmall:n,heightMedium:r,heightLarge:i,borderRadiusTiny:a,borderRadiusSmall:a,borderRadiusMedium:a,borderRadiusLarge:a,fontSizeTiny:o,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:l,opacityDisabled:u,colorOpacitySecondary:`0.16`,colorOpacitySecondaryHover:`0.22`,colorOpacitySecondaryPressed:`0.28`,colorSecondary:te,colorSecondaryHover:ne,colorSecondaryPressed:re,colorTertiary:te,colorTertiaryHover:ne,colorTertiaryPressed:re,colorQuaternary:`#0000`,colorQuaternaryHover:ne,colorQuaternaryPressed:re,color:`#0000`,colorHover:`#0000`,colorPressed:`#0000`,colorFocus:`#0000`,colorDisabled:`#0000`,textColor:d,textColorTertiary:f,textColorHover:p,textColorPressed:m,textColorFocus:p,textColorDisabled:d,textColorText:d,textColorTextHover:p,textColorTextPressed:m,textColorTextFocus:p,textColorTextDisabled:d,textColorGhost:d,textColorGhostHover:p,textColorGhostPressed:m,textColorGhostFocus:p,textColorGhostDisabled:d,border:`1px solid ${h}`,borderHover:`1px solid ${p}`,borderPressed:`1px solid ${m}`,borderFocus:`1px solid ${p}`,borderDisabled:`1px solid ${h}`,rippleColor:g,colorPrimary:g,colorHoverPrimary:p,colorPressedPrimary:m,colorFocusPrimary:p,colorDisabledPrimary:g,textColorPrimary:_,textColorHoverPrimary:_,textColorPressedPrimary:_,textColorFocusPrimary:_,textColorDisabledPrimary:_,textColorTextPrimary:g,textColorTextHoverPrimary:p,textColorTextPressedPrimary:m,textColorTextFocusPrimary:p,textColorTextDisabledPrimary:d,textColorGhostPrimary:g,textColorGhostHoverPrimary:p,textColorGhostPressedPrimary:m,textColorGhostFocusPrimary:p,textColorGhostDisabledPrimary:g,borderPrimary:`1px solid ${g}`,borderHoverPrimary:`1px solid ${p}`,borderPressedPrimary:`1px solid ${m}`,borderFocusPrimary:`1px solid ${p}`,borderDisabledPrimary:`1px solid ${g}`,rippleColorPrimary:g,colorInfo:v,colorHoverInfo:y,colorPressedInfo:b,colorFocusInfo:y,colorDisabledInfo:v,textColorInfo:_,textColorHoverInfo:_,textColorPressedInfo:_,textColorFocusInfo:_,textColorDisabledInfo:_,textColorTextInfo:v,textColorTextHoverInfo:y,textColorTextPressedInfo:b,textColorTextFocusInfo:y,textColorTextDisabledInfo:d,textColorGhostInfo:v,textColorGhostHoverInfo:y,textColorGhostPressedInfo:b,textColorGhostFocusInfo:y,textColorGhostDisabledInfo:v,borderInfo:`1px solid ${v}`,borderHoverInfo:`1px solid ${y}`,borderPressedInfo:`1px solid ${b}`,borderFocusInfo:`1px solid ${y}`,borderDisabledInfo:`1px solid ${v}`,rippleColorInfo:v,colorSuccess:x,colorHoverSuccess:S,colorPressedSuccess:C,colorFocusSuccess:S,colorDisabledSuccess:x,textColorSuccess:_,textColorHoverSuccess:_,textColorPressedSuccess:_,textColorFocusSuccess:_,textColorDisabledSuccess:_,textColorTextSuccess:x,textColorTextHoverSuccess:S,textColorTextPressedSuccess:C,textColorTextFocusSuccess:S,textColorTextDisabledSuccess:d,textColorGhostSuccess:x,textColorGhostHoverSuccess:S,textColorGhostPressedSuccess:C,textColorGhostFocusSuccess:S,textColorGhostDisabledSuccess:x,borderSuccess:`1px solid ${x}`,borderHoverSuccess:`1px solid ${S}`,borderPressedSuccess:`1px solid ${C}`,borderFocusSuccess:`1px solid ${S}`,borderDisabledSuccess:`1px solid ${x}`,rippleColorSuccess:x,colorWarning:w,colorHoverWarning:T,colorPressedWarning:E,colorFocusWarning:T,colorDisabledWarning:w,textColorWarning:_,textColorHoverWarning:_,textColorPressedWarning:_,textColorFocusWarning:_,textColorDisabledWarning:_,textColorTextWarning:w,textColorTextHoverWarning:T,textColorTextPressedWarning:E,textColorTextFocusWarning:T,textColorTextDisabledWarning:d,textColorGhostWarning:w,textColorGhostHoverWarning:T,textColorGhostPressedWarning:E,textColorGhostFocusWarning:T,textColorGhostDisabledWarning:w,borderWarning:`1px solid ${w}`,borderHoverWarning:`1px solid ${T}`,borderPressedWarning:`1px solid ${E}`,borderFocusWarning:`1px solid ${T}`,borderDisabledWarning:`1px solid ${w}`,rippleColorWarning:w,colorError:D,colorHoverError:O,colorPressedError:k,colorFocusError:O,colorDisabledError:D,textColorError:_,textColorHoverError:_,textColorPressedError:_,textColorFocusError:_,textColorDisabledError:_,textColorTextError:D,textColorTextHoverError:O,textColorTextPressedError:k,textColorTextFocusError:O,textColorTextDisabledError:d,textColorGhostError:D,textColorGhostHoverError:O,textColorGhostPressedError:k,textColorGhostFocusError:O,textColorGhostDisabledError:D,borderError:`1px solid ${D}`,borderHoverError:`1px solid ${O}`,borderPressedError:`1px solid ${k}`,borderFocusError:`1px solid ${O}`,borderDisabledError:`1px solid ${D}`,rippleColorError:D,waveOpacity:`0.6`,fontWeight:ee,fontWeightStrong:ie})}var Z={name:`Button`,common:L,self:na},Q={name:`Button`,common:q,self(e){let t=na(e);return t.waveOpacity=`0.8`,t.colorOpacitySecondary=`0.16`,t.colorOpacitySecondaryHover=`0.2`,t.colorOpacitySecondaryPressed=`0.12`,t}},ra={titleFontSize:`22px`};function ia(e){let{borderRadius:t,fontSize:n,lineHeight:r,textColor2:i,textColor1:a,textColorDisabled:o,dividerColor:s,fontWeightStrong:c,primaryColor:l,baseColor:u,hoverColor:d,cardColor:f,modalColor:p,popoverColor:m}=e;return Object.assign(Object.assign({},ra),{borderRadius:t,borderColor:P(f,s),borderColorModal:P(p,s),borderColorPopover:P(m,s),textColor:i,titleFontWeight:c,titleTextColor:a,dayTextColor:o,fontSize:n,lineHeight:r,dateColorCurrent:l,dateTextColorCurrent:u,cellColorHover:P(f,d),cellColorHoverModal:P(p,d),cellColorHoverPopover:P(m,d),cellColor:f,cellColorModal:p,cellColorPopover:m,barColor:l})}I({name:`Calendar`,common:L,peers:{Button:Z},self:ia});var aa={name:`Calendar`,common:q,peers:{Button:Q},self:ia},oa={name:`Card`,common:q,self(e){let t=Je(e),{cardColor:n,modalColor:r,popoverColor:i}=e;return t.colorEmbedded=n,t.colorEmbeddedModal=r,t.colorEmbeddedPopover=i,t}};function sa(){return{dotSize:`8px`,dotColor:`rgba(255, 255, 255, .3)`,dotColorActive:`rgba(255, 255, 255, 1)`,dotColorFocus:`rgba(255, 255, 255, .5)`,dotLineWidth:`16px`,dotLineWidthActive:`24px`,arrowColor:`#eee`}}var ca={name:`Carousel`,common:q,self:sa},la={sizeSmall:`14px`,sizeMedium:`16px`,sizeLarge:`18px`,labelPadding:`0 8px`,labelFontWeight:`400`};function ua(e){let{baseColor:t,inputColorDisabled:n,cardColor:r,modalColor:i,popoverColor:a,textColorDisabled:o,borderColor:s,primaryColor:c,textColor2:l,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,borderRadiusSmall:p,lineHeight:m}=e;return Object.assign(Object.assign({},la),{labelLineHeight:m,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,borderRadius:p,color:t,colorChecked:c,colorDisabled:n,colorDisabledChecked:n,colorTableHeader:r,colorTableHeaderModal:i,colorTableHeaderPopover:a,checkMarkColor:t,checkMarkColorDisabled:o,checkMarkColorDisabledChecked:o,border:`1px solid ${s}`,borderDisabled:`1px solid ${s}`,borderDisabledChecked:`1px solid ${s}`,borderChecked:`1px solid ${c}`,borderFocus:`1px solid ${c}`,boxShadowFocus:`0 0 0 2px ${N(c,{alpha:.3})}`,textColor:l,textColorDisabled:o})}var da={name:`Checkbox`,common:L,self:ua},fa={name:`Checkbox`,common:q,self(e){let{cardColor:t}=e,n=ua(e);return n.color=`#0000`,n.checkMarkColor=t,n}};function pa(e){let{borderRadius:t,boxShadow2:n,popoverColor:r,textColor2:i,textColor3:a,primaryColor:o,textColorDisabled:s,dividerColor:c,hoverColor:l,fontSizeMedium:u,heightMedium:d}=e;return{menuBorderRadius:t,menuColor:r,menuBoxShadow:n,menuDividerColor:c,menuHeight:`calc(var(--n-option-height) * 6.6)`,optionArrowColor:a,optionHeight:d,optionFontSize:u,optionColorHover:l,optionTextColor:i,optionTextColorActive:o,optionTextColorDisabled:s,optionCheckMarkColor:o,loadingColor:o,columnWidth:`180px`}}I({name:`Cascader`,common:L,peers:{InternalSelectMenu:_i,InternalSelection:Oi,Scrollbar:z,Checkbox:da,Empty:pi},self:pa});var ma={name:`Cascader`,common:q,peers:{InternalSelectMenu:vi,InternalSelection:Ei,Scrollbar:J,Checkbox:fa,Empty:pi},self:pa},ha={name:`Code`,common:q,self(e){let{textColor2:t,fontSize:n,fontWeightStrong:r,textColor3:i}=e;return{textColor:t,fontSize:n,fontWeightStrong:r,"mono-3":`#5c6370`,"hue-1":`#56b6c2`,"hue-2":`#61aeee`,"hue-3":`#c678dd`,"hue-4":`#98c379`,"hue-5":`#e06c75`,"hue-5-2":`#be5046`,"hue-6":`#d19a66`,"hue-6-2":`#e6c07b`,lineNumberTextColor:i}}};function ga(e){let{fontWeight:t,textColor1:n,textColor2:r,textColorDisabled:i,dividerColor:a,fontSize:o}=e;return{titleFontSize:o,titleFontWeight:t,dividerColor:a,titleTextColor:n,titleTextColorDisabled:i,fontSize:o,textColor:r,arrowColor:r,arrowColorDisabled:i,itemMargin:`16px 0 0 0`,titlePadding:`16px 0 0 0`}}var _a={name:`Collapse`,common:q,self:ga};function va(e){let{cubicBezierEaseInOut:t}=e;return{bezier:t}}var ya={name:`CollapseTransition`,common:q,self:va};function ba(e){let{fontSize:t,boxShadow2:n,popoverColor:r,textColor2:i,borderRadius:a,borderColor:o,heightSmall:s,heightMedium:c,heightLarge:l,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,dividerColor:p}=e;return{panelFontSize:t,boxShadow:n,color:r,textColor:i,borderRadius:a,border:`1px solid ${o}`,heightSmall:s,heightMedium:c,heightLarge:l,fontSizeSmall:u,fontSizeMedium:d,fontSizeLarge:f,dividerColor:p}}I({name:`ColorPicker`,common:L,peers:{Input:Bi,Button:Z},self:ba});var xa={name:`ColorPicker`,common:q,peers:{Input:X,Button:Q},self:ba},Sa=m({name:`ConfigProvider`,alias:[`App`],props:{abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:String,locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:`div`},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,styleMountTarget:Object,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(ve(`config-provider`,"`as` is deprecated, please use `tag` instead."),!0),default:void 0}},setup(e){let t=y(Le,null),n=A(()=>{let{theme:n}=e;if(n===null)return;let r=t?.mergedThemeRef.value;return n===void 0?r:r===void 0?n:Object.assign({},r,n)}),r=A(()=>{let{themeOverrides:n}=e;if(n!==null){if(n===void 0)return t?.mergedThemeOverridesRef.value;{let e=t?.mergedThemeOverridesRef.value;return e===void 0?n:Ke({},e,n)}}}),i=ar(()=>{let{namespace:n}=e;return n===void 0?t?.mergedNamespaceRef.value:n}),a=ar(()=>{let{bordered:n}=e;return n===void 0?t?.mergedBorderedRef.value:n}),o=A(()=>{let{icons:n}=e;return n===void 0?t?.mergedIconsRef.value:n}),s=A(()=>{let{componentOptions:n}=e;return n===void 0?t?.mergedComponentPropsRef.value:n}),c=A(()=>{let{clsPrefix:n}=e;return n===void 0?t?t.mergedClsPrefixRef.value:`n`:n}),l=A(()=>{var n;let{rtl:r}=e;if(r===void 0)return t?.mergedRtlRef.value;let i={};for(let e of r)i[e.name]=ce(e),(n=e.peers)==null||n.forEach(e=>{e.name in i||(i[e.name]=ce(e))});return i}),u=A(()=>e.breakpoints||t?.mergedBreakpointsRef.value),d=e.inlineThemeDisabled||t?.inlineThemeDisabled,f=e.preflightStyleDisabled||t?.preflightStyleDisabled,p=e.styleMountTarget||t?.styleMountTarget;return D(Le,{mergedThemeHashRef:A(()=>{let{value:e}=n,{value:t}=r,i=t&&Object.keys(t).length!==0,a=e?.name;return a?i?`${a}-${se(JSON.stringify(r.value))}`:a:i?se(JSON.stringify(r.value)):``}),mergedBreakpointsRef:u,mergedRtlRef:l,mergedIconsRef:o,mergedComponentPropsRef:s,mergedBorderedRef:a,mergedNamespaceRef:i,mergedClsPrefixRef:c,mergedLocaleRef:A(()=>{let{locale:n}=e;if(n!==null)return n===void 0?t?.mergedLocaleRef.value:n}),mergedDateLocaleRef:A(()=>{let{dateLocale:n}=e;if(n!==null)return n===void 0?t?.mergedDateLocaleRef.value:n}),mergedHljsRef:A(()=>{let{hljs:n}=e;return n===void 0?t?.mergedHljsRef.value:n}),mergedKatexRef:A(()=>{let{katex:n}=e;return n===void 0?t?.mergedKatexRef.value:n}),mergedThemeRef:n,mergedThemeOverridesRef:r,inlineThemeDisabled:d||!1,preflightStyleDisabled:f||!1,styleMountTarget:p}),{mergedClsPrefix:c,mergedBordered:a,mergedNamespace:i,mergedTheme:n,mergedThemeOverrides:r}},render(){var e,t;return this.abstract?(t=this.$slots).default?.call(t):c(this.as||this.tag,{class:`${this.mergedClsPrefix||`n`}-config-provider`},(e=this.$slots).default?.call(e))}}),Ca={name:`Popselect`,common:q,peers:{Popover:Si,InternalSelectMenu:vi}};function wa(e){let{boxShadow2:t}=e;return{menuBoxShadow:t}}var Ta=I({name:`Popselect`,common:L,peers:{Popover:xi,InternalSelectMenu:_i},self:wa});function Ea(e){let{boxShadow2:t}=e;return{menuBoxShadow:t}}var Da=I({name:`Select`,common:L,peers:{InternalSelection:Oi,InternalSelectMenu:_i},self:Ea}),Oa={name:`Select`,common:q,peers:{InternalSelection:Ei,InternalSelectMenu:vi},self:Ea},ka={itemPaddingSmall:`0 4px`,itemMarginSmall:`0 0 0 8px`,itemMarginSmallRtl:`0 8px 0 0`,itemPaddingMedium:`0 4px`,itemMarginMedium:`0 0 0 8px`,itemMarginMediumRtl:`0 8px 0 0`,itemPaddingLarge:`0 4px`,itemMarginLarge:`0 0 0 8px`,itemMarginLargeRtl:`0 8px 0 0`,buttonIconSizeSmall:`14px`,buttonIconSizeMedium:`16px`,buttonIconSizeLarge:`18px`,inputWidthSmall:`60px`,selectWidthSmall:`unset`,inputMarginSmall:`0 0 0 8px`,inputMarginSmallRtl:`0 8px 0 0`,selectMarginSmall:`0 0 0 8px`,prefixMarginSmall:`0 8px 0 0`,suffixMarginSmall:`0 0 0 8px`,inputWidthMedium:`60px`,selectWidthMedium:`unset`,inputMarginMedium:`0 0 0 8px`,inputMarginMediumRtl:`0 8px 0 0`,selectMarginMedium:`0 0 0 8px`,prefixMarginMedium:`0 8px 0 0`,suffixMarginMedium:`0 0 0 8px`,inputWidthLarge:`60px`,selectWidthLarge:`unset`,inputMarginLarge:`0 0 0 8px`,inputMarginLargeRtl:`0 8px 0 0`,selectMarginLarge:`0 0 0 8px`,prefixMarginLarge:`0 8px 0 0`,suffixMarginLarge:`0 0 0 8px`};function Aa(e){let{textColor2:t,primaryColor:n,primaryColorHover:r,primaryColorPressed:i,inputColorDisabled:a,textColorDisabled:o,borderColor:s,borderRadius:c,fontSizeTiny:l,fontSizeSmall:u,fontSizeMedium:d,heightTiny:f,heightSmall:p,heightMedium:m}=e;return Object.assign(Object.assign({},ka),{buttonColor:`#0000`,buttonColorHover:`#0000`,buttonColorPressed:`#0000`,buttonBorder:`1px solid ${s}`,buttonBorderHover:`1px solid ${s}`,buttonBorderPressed:`1px solid ${s}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:r,itemTextColorPressed:i,itemTextColorActive:n,itemTextColorDisabled:o,itemColor:`#0000`,itemColorHover:`#0000`,itemColorPressed:`#0000`,itemColorActive:`#0000`,itemColorActiveHover:`#0000`,itemColorDisabled:a,itemBorder:`1px solid #0000`,itemBorderHover:`1px solid #0000`,itemBorderPressed:`1px solid #0000`,itemBorderActive:`1px solid ${n}`,itemBorderDisabled:`1px solid ${s}`,itemBorderRadius:c,itemSizeSmall:f,itemSizeMedium:p,itemSizeLarge:m,itemFontSizeSmall:l,itemFontSizeMedium:u,itemFontSizeLarge:d,jumperFontSizeSmall:l,jumperFontSizeMedium:u,jumperFontSizeLarge:d,jumperTextColor:t,jumperTextColorDisabled:o})}var ja=I({name:`Pagination`,common:L,peers:{Select:Da,Input:Bi,Popselect:Ta},self:Aa}),Ma={name:`Pagination`,common:q,peers:{Select:Oa,Input:X,Popselect:Ca},self(e){let{primaryColor:t,opacity3:n}=e,r=N(t,{alpha:Number(n)}),i=Aa(e);return i.itemBorderActive=`1px solid ${r}`,i.itemBorderDisabled=`1px solid #0000`,i}},Na={padding:`4px 0`,optionIconSizeSmall:`14px`,optionIconSizeMedium:`16px`,optionIconSizeLarge:`16px`,optionIconSizeHuge:`18px`,optionSuffixWidthSmall:`14px`,optionSuffixWidthMedium:`14px`,optionSuffixWidthLarge:`16px`,optionSuffixWidthHuge:`16px`,optionIconSuffixWidthSmall:`32px`,optionIconSuffixWidthMedium:`32px`,optionIconSuffixWidthLarge:`36px`,optionIconSuffixWidthHuge:`36px`,optionPrefixWidthSmall:`14px`,optionPrefixWidthMedium:`14px`,optionPrefixWidthLarge:`16px`,optionPrefixWidthHuge:`16px`,optionIconPrefixWidthSmall:`36px`,optionIconPrefixWidthMedium:`36px`,optionIconPrefixWidthLarge:`40px`,optionIconPrefixWidthHuge:`40px`};function Pa(e){let{primaryColor:t,textColor2:n,dividerColor:r,hoverColor:i,popoverColor:a,invertedColor:o,borderRadius:s,fontSizeSmall:c,fontSizeMedium:l,fontSizeLarge:u,fontSizeHuge:d,heightSmall:f,heightMedium:p,heightLarge:m,heightHuge:h,textColor3:g,opacityDisabled:_}=e;return Object.assign(Object.assign({},Na),{optionHeightSmall:f,optionHeightMedium:p,optionHeightLarge:m,optionHeightHuge:h,borderRadius:s,fontSizeSmall:c,fontSizeMedium:l,fontSizeLarge:u,fontSizeHuge:d,optionTextColor:n,optionTextColorHover:n,optionTextColorActive:t,optionTextColorChildActive:t,color:a,dividerColor:r,suffixColor:n,prefixColor:n,optionColorHover:i,optionColorActive:N(t,{alpha:.1}),groupHeaderTextColor:g,optionTextColorInverted:`#BBB`,optionTextColorHoverInverted:`#FFF`,optionTextColorActiveInverted:`#FFF`,optionTextColorChildActiveInverted:`#FFF`,colorInverted:o,dividerColorInverted:`#BBB`,suffixColorInverted:`#BBB`,prefixColorInverted:`#BBB`,optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:`#AAA`,optionOpacityDisabled:_})}var Fa=I({name:`Dropdown`,common:L,peers:{Popover:xi},self:Pa}),Ia={name:`Dropdown`,common:q,peers:{Popover:Si},self(e){let{primaryColorSuppl:t,primaryColor:n,popoverColor:r}=e,i=Pa(e);return i.colorInverted=r,i.optionColorActive=N(n,{alpha:.15}),i.optionColorActiveInverted=t,i.optionColorHoverInverted=t,i}},La={padding:`8px 14px`},Ra={name:`Tooltip`,common:q,peers:{Popover:Si},self(e){let{borderRadius:t,boxShadow2:n,popoverColor:r,textColor2:i}=e;return Object.assign(Object.assign({},La),{borderRadius:t,boxShadow:n,color:r,textColor:i})}};function za(e){let{borderRadius:t,boxShadow2:n,baseColor:r}=e;return Object.assign(Object.assign({},La),{borderRadius:t,boxShadow:n,color:P(r,`rgba(0, 0, 0, .85)`),textColor:r})}var Ba=I({name:`Tooltip`,common:L,peers:{Popover:xi},self:za}),Va={name:`Ellipsis`,common:q,peers:{Tooltip:Ra}},Ha=I({name:`Ellipsis`,common:L,peers:{Tooltip:Ba}}),Ua={radioSizeSmall:`14px`,radioSizeMedium:`16px`,radioSizeLarge:`18px`,labelPadding:`0 8px`,labelFontWeight:`400`},Wa={name:`Radio`,common:q,self(e){let{borderColor:t,primaryColor:n,baseColor:r,textColorDisabled:i,inputColorDisabled:a,textColor2:o,opacityDisabled:s,borderRadius:c,fontSizeSmall:l,fontSizeMedium:u,fontSizeLarge:d,heightSmall:f,heightMedium:p,heightLarge:m,lineHeight:h}=e;return Object.assign(Object.assign({},Ua),{labelLineHeight:h,buttonHeightSmall:f,buttonHeightMedium:p,buttonHeightLarge:m,fontSizeSmall:l,fontSizeMedium:u,fontSizeLarge:d,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${n}`,boxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${N(n,{alpha:.3})}`,boxShadowHover:`inset 0 0 0 1px ${n}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:`#0000`,colorDisabled:a,colorActive:`#0000`,textColor:o,textColorDisabled:i,dotColorActive:n,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:n,buttonBorderColorHover:n,buttonColor:`#0000`,buttonColorActive:n,buttonTextColor:o,buttonTextColorActive:r,buttonTextColorHover:n,opacityDisabled:s,buttonBoxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${N(n,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px ${n}`,buttonBoxShadow:`inset 0 0 0 1px #0000`,buttonBorderRadius:c})}};function Ga(e){let{borderColor:t,primaryColor:n,baseColor:r,textColorDisabled:i,inputColorDisabled:a,textColor2:o,opacityDisabled:s,borderRadius:c,fontSizeSmall:l,fontSizeMedium:u,fontSizeLarge:d,heightSmall:f,heightMedium:p,heightLarge:m,lineHeight:h}=e;return Object.assign(Object.assign({},Ua),{labelLineHeight:h,buttonHeightSmall:f,buttonHeightMedium:p,buttonHeightLarge:m,fontSizeSmall:l,fontSizeMedium:u,fontSizeLarge:d,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${n}`,boxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${N(n,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${n}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:r,colorDisabled:a,colorActive:`#0000`,textColor:o,textColorDisabled:i,dotColorActive:n,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:n,buttonBorderColorHover:t,buttonColor:r,buttonColorActive:r,buttonTextColor:o,buttonTextColorActive:n,buttonTextColorHover:n,opacityDisabled:s,buttonBoxShadowFocus:`inset 0 0 0 1px ${n}, 0 0 0 2px ${N(n,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px #0000`,buttonBoxShadow:`inset 0 0 0 1px #0000`,buttonBorderRadius:c})}var Ka={name:`Radio`,common:L,self:Ga},qa={thPaddingSmall:`8px`,thPaddingMedium:`12px`,thPaddingLarge:`12px`,tdPaddingSmall:`8px`,tdPaddingMedium:`12px`,tdPaddingLarge:`12px`,sorterSize:`15px`,resizableContainerSize:`8px`,resizableSize:`2px`,filterSize:`15px`,paginationMargin:`12px 0 0 0`,emptyPadding:`48px 0`,actionPadding:`8px 12px`,actionButtonMargin:`0 8px 0 0`};function Ja(e){let{cardColor:t,modalColor:n,popoverColor:r,textColor2:i,textColor1:a,tableHeaderColor:o,tableColorHover:s,iconColor:c,primaryColor:l,fontWeightStrong:u,borderRadius:d,lineHeight:f,fontSizeSmall:p,fontSizeMedium:m,fontSizeLarge:h,dividerColor:g,heightSmall:_,opacityDisabled:v,tableColorStriped:y}=e;return Object.assign(Object.assign({},qa),{actionDividerColor:g,lineHeight:f,borderRadius:d,fontSizeSmall:p,fontSizeMedium:m,fontSizeLarge:h,borderColor:P(t,g),tdColorHover:P(t,s),tdColorSorting:P(t,s),tdColorStriped:P(t,y),thColor:P(t,o),thColorHover:P(P(t,o),s),thColorSorting:P(P(t,o),s),tdColor:t,tdTextColor:i,thTextColor:a,thFontWeight:u,thButtonColorHover:s,thIconColor:c,thIconColorActive:l,borderColorModal:P(n,g),tdColorHoverModal:P(n,s),tdColorSortingModal:P(n,s),tdColorStripedModal:P(n,y),thColorModal:P(n,o),thColorHoverModal:P(P(n,o),s),thColorSortingModal:P(P(n,o),s),tdColorModal:n,borderColorPopover:P(r,g),tdColorHoverPopover:P(r,s),tdColorSortingPopover:P(r,s),tdColorStripedPopover:P(r,y),thColorPopover:P(r,o),thColorHoverPopover:P(P(r,o),s),thColorSortingPopover:P(P(r,o),s),tdColorPopover:r,boxShadowBefore:`inset -12px 0 8px -12px rgba(0, 0, 0, .18)`,boxShadowAfter:`inset 12px 0 8px -12px rgba(0, 0, 0, .18)`,loadingColor:l,loadingSize:_,opacityLoading:v})}I({name:`DataTable`,common:L,peers:{Button:Z,Checkbox:da,Radio:Ka,Pagination:ja,Scrollbar:z,Empty:pi,Popover:xi,Ellipsis:Ha,Dropdown:Fa},self:Ja});var Ya={name:`DataTable`,common:q,peers:{Button:Q,Checkbox:fa,Radio:Wa,Pagination:Ma,Scrollbar:J,Empty:mi,Popover:Si,Ellipsis:Va,Dropdown:Ia},self(e){let t=Ja(e);return t.boxShadowAfter=`inset 12px 0 8px -12px rgba(0, 0, 0, .36)`,t.boxShadowBefore=`inset -12px 0 8px -12px rgba(0, 0, 0, .36)`,t}};function Xa(e){let{textColorBase:t,opacity1:n,opacity2:r,opacity3:i,opacity4:a,opacity5:o}=e;return{color:t,opacity1Depth:n,opacity2Depth:r,opacity3Depth:i,opacity4Depth:a,opacity5Depth:o}}var Za={name:`Icon`,common:q,self:Xa},Qa={itemFontSize:`12px`,itemHeight:`36px`,itemWidth:`52px`,panelActionPadding:`8px 0`};function $a(e){let{popoverColor:t,textColor2:n,primaryColor:r,hoverColor:i,dividerColor:a,opacityDisabled:o,boxShadow2:s,borderRadius:c,iconColor:l,iconColorDisabled:u}=e;return Object.assign(Object.assign({},Qa),{panelColor:t,panelBoxShadow:s,panelDividerColor:a,itemTextColor:n,itemTextColorActive:r,itemColorHover:i,itemOpacityDisabled:o,itemBorderRadius:c,borderRadius:c,iconColor:l,iconColorDisabled:u})}var eo=I({name:`TimePicker`,common:L,peers:{Scrollbar:z,Button:Z,Input:Bi},self:$a}),to={name:`TimePicker`,common:q,peers:{Scrollbar:J,Button:Q,Input:X},self:$a},no={itemSize:`24px`,itemCellWidth:`38px`,itemCellHeight:`32px`,scrollItemWidth:`80px`,scrollItemHeight:`40px`,panelExtraFooterPadding:`8px 12px`,panelActionPadding:`8px 12px`,calendarTitlePadding:`0`,calendarTitleHeight:`28px`,arrowSize:`14px`,panelHeaderPadding:`8px 12px`,calendarDaysHeight:`32px`,calendarTitleGridTempateColumns:`28px 28px 1fr 28px 28px`,calendarLeftPaddingDate:`6px 12px 4px 12px`,calendarLeftPaddingDatetime:`4px 12px`,calendarLeftPaddingDaterange:`6px 12px 4px 12px`,calendarLeftPaddingDatetimerange:`4px 12px`,calendarLeftPaddingMonth:`0`,calendarLeftPaddingYear:`0`,calendarLeftPaddingQuarter:`0`,calendarLeftPaddingMonthrange:`0`,calendarLeftPaddingQuarterrange:`0`,calendarLeftPaddingYearrange:`0`,calendarLeftPaddingWeek:`6px 12px 4px 12px`,calendarRightPaddingDate:`6px 12px 4px 12px`,calendarRightPaddingDatetime:`4px 12px`,calendarRightPaddingDaterange:`6px 12px 4px 12px`,calendarRightPaddingDatetimerange:`4px 12px`,calendarRightPaddingMonth:`0`,calendarRightPaddingYear:`0`,calendarRightPaddingQuarter:`0`,calendarRightPaddingMonthrange:`0`,calendarRightPaddingQuarterrange:`0`,calendarRightPaddingYearrange:`0`,calendarRightPaddingWeek:`0`};function ro(e){let{hoverColor:t,fontSize:n,textColor2:r,textColorDisabled:i,popoverColor:a,primaryColor:o,borderRadiusSmall:s,iconColor:c,iconColorDisabled:l,textColor1:u,dividerColor:d,boxShadow2:f,borderRadius:p,fontWeightStrong:m}=e;return Object.assign(Object.assign({},no),{itemFontSize:n,calendarDaysFontSize:n,calendarTitleFontSize:n,itemTextColor:r,itemTextColorDisabled:i,itemTextColorActive:a,itemTextColorCurrent:o,itemColorIncluded:N(o,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:o,itemBorderRadius:s,panelColor:a,panelTextColor:r,arrowColor:c,calendarTitleTextColor:u,calendarTitleColorHover:t,calendarDaysTextColor:r,panelHeaderDividerColor:d,calendarDaysDividerColor:d,calendarDividerColor:d,panelActionDividerColor:d,panelBoxShadow:f,panelBorderRadius:p,calendarTitleFontWeight:m,scrollItemBorderRadius:p,iconColor:c,iconColorDisabled:l})}var io=I({name:`DatePicker`,common:L,peers:{Input:Bi,Button:Z,TimePicker:eo,Scrollbar:z},self:ro}),ao={name:`DatePicker`,common:q,peers:{Input:X,Button:Q,TimePicker:to,Scrollbar:J},self(e){let{popoverColor:t,hoverColor:n,primaryColor:r}=e,i=ro(e);return i.itemColorDisabled=P(t,n),i.itemColorIncluded=N(r,{alpha:.15}),i.itemColorHover=P(t,n),i}},oo={thPaddingBorderedSmall:`8px 12px`,thPaddingBorderedMedium:`12px 16px`,thPaddingBorderedLarge:`16px 24px`,thPaddingSmall:`0`,thPaddingMedium:`0`,thPaddingLarge:`0`,tdPaddingBorderedSmall:`8px 12px`,tdPaddingBorderedMedium:`12px 16px`,tdPaddingBorderedLarge:`16px 24px`,tdPaddingSmall:`0 0 8px 0`,tdPaddingMedium:`0 0 12px 0`,tdPaddingLarge:`0 0 16px 0`};function so(e){let{tableHeaderColor:t,textColor2:n,textColor1:r,cardColor:i,modalColor:a,popoverColor:o,dividerColor:s,borderRadius:c,fontWeightStrong:l,lineHeight:u,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:p}=e;return Object.assign(Object.assign({},oo),{lineHeight:u,fontSizeSmall:d,fontSizeMedium:f,fontSizeLarge:p,titleTextColor:r,thColor:P(i,t),thColorModal:P(a,t),thColorPopover:P(o,t),thTextColor:r,thFontWeight:l,tdTextColor:n,tdColor:i,tdColorModal:a,tdColorPopover:o,borderColor:P(i,s),borderColorModal:P(a,s),borderColorPopover:P(o,s),borderRadius:c})}var co={name:`Descriptions`,common:q,self:so},lo={titleFontSize:`18px`,padding:`16px 28px 20px 28px`,iconSize:`28px`,actionSpace:`12px`,contentMargin:`8px 0 16px 0`,iconMargin:`0 4px 0 0`,iconMarginIconTop:`4px 0 8px 0`,closeSize:`22px`,closeIconSize:`18px`,closeMargin:`20px 26px 0 0`,closeMarginIconTop:`10px 16px 0 0`};function uo(e){let{textColor1:t,textColor2:n,modalColor:r,closeIconColor:i,closeIconColorHover:a,closeIconColorPressed:o,closeColorHover:s,closeColorPressed:c,infoColor:l,successColor:u,warningColor:d,errorColor:f,primaryColor:p,dividerColor:m,borderRadius:h,fontWeightStrong:g,lineHeight:_,fontSize:v}=e;return Object.assign(Object.assign({},lo),{fontSize:v,lineHeight:_,border:`1px solid ${m}`,titleTextColor:t,textColor:n,color:r,closeColorHover:s,closeColorPressed:c,closeIconColor:i,closeIconColorHover:a,closeIconColorPressed:o,closeBorderRadius:h,iconColor:p,iconColorInfo:l,iconColorSuccess:u,iconColorWarning:d,iconColorError:f,borderRadius:h,titleFontWeight:g})}var fo=I({name:`Dialog`,common:L,peers:{Button:Z},self:uo}),po={name:`Dialog`,common:q,peers:{Button:Q},self:uo};function mo(e){let{modalColor:t,textColor2:n,boxShadow3:r}=e;return{color:t,textColor:n,boxShadow:r}}var ho=I({name:`Modal`,common:L,peers:{Scrollbar:z,Dialog:fo,Card:Ye},self:mo}),go={name:`Modal`,common:q,peers:{Scrollbar:J,Dialog:po,Card:oa},self:mo},_o={name:`LoadingBar`,common:q,self(e){let{primaryColor:t}=e;return{colorError:`red`,colorLoading:t,height:`2px`}}},vo=pe(`n-message-api`),yo=pe(`n-message-provider`),bo={margin:`0 0 8px 0`,padding:`10px 20px`,maxWidth:`720px`,minWidth:`420px`,iconMargin:`0 10px 0 0`,closeMargin:`0 0 0 10px`,closeSize:`20px`,closeIconSize:`16px`,iconSize:`20px`,fontSize:`14px`};function xo(e){let{textColor2:t,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:i,infoColor:a,successColor:o,errorColor:s,warningColor:c,popoverColor:l,boxShadow2:u,primaryColor:d,lineHeight:f,borderRadius:p,closeColorHover:m,closeColorPressed:h}=e;return Object.assign(Object.assign({},bo),{closeBorderRadius:p,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:l,colorInfo:l,colorSuccess:l,colorError:l,colorWarning:l,colorLoading:l,boxShadow:u,boxShadowInfo:u,boxShadowSuccess:u,boxShadowError:u,boxShadowWarning:u,boxShadowLoading:u,iconColor:t,iconColorInfo:a,iconColorSuccess:o,iconColorWarning:c,iconColorError:s,iconColorLoading:d,closeColorHover:m,closeColorPressed:h,closeIconColor:n,closeIconColorHover:r,closeIconColorPressed:i,closeColorHoverInfo:m,closeColorPressedInfo:h,closeIconColorInfo:n,closeIconColorHoverInfo:r,closeIconColorPressedInfo:i,closeColorHoverSuccess:m,closeColorPressedSuccess:h,closeIconColorSuccess:n,closeIconColorHoverSuccess:r,closeIconColorPressedSuccess:i,closeColorHoverError:m,closeColorPressedError:h,closeIconColorError:n,closeIconColorHoverError:r,closeIconColorPressedError:i,closeColorHoverWarning:m,closeColorPressedWarning:h,closeIconColorWarning:n,closeIconColorHoverWarning:r,closeIconColorPressedWarning:i,closeColorHoverLoading:m,closeColorPressedLoading:h,closeIconColorLoading:n,closeIconColorHoverLoading:r,closeIconColorPressedLoading:i,loadingColor:d,lineHeight:f,borderRadius:p,border:`0`})}var So={name:`Message`,common:L,self:xo},Co={name:`Message`,common:q,self:xo},wo={icon:Function,type:{type:String,default:`info`},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,spinProps:Object,onClose:Function,onMouseenter:Function,onMouseleave:Function},To=F([Me(`message-wrapper`,` - margin: var(--n-margin); - z-index: 0; - transform-origin: top center; - display: flex; - `,[Ni({overflow:`visible`,originalTransition:`transform .3s var(--n-bezier)`,enterToProps:{transform:`scale(1)`},leaveToProps:{transform:`scale(0.85)`}})]),Me(`message`,` - box-sizing: border-box; - display: flex; - align-items: center; - transition: - color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier), - background-color .3s var(--n-bezier), - opacity .3s var(--n-bezier), - transform .3s var(--n-bezier), - margin-bottom .3s var(--n-bezier); - padding: var(--n-padding); - border-radius: var(--n-border-radius); - border: var(--n-border); - flex-wrap: nowrap; - overflow: hidden; - max-width: var(--n-max-width); - color: var(--n-text-color); - background-color: var(--n-color); - box-shadow: var(--n-box-shadow); - `,[ze(`content`,` - display: inline-block; - line-height: var(--n-line-height); - font-size: var(--n-font-size); - `),ze(`icon`,` - position: relative; - margin: var(--n-icon-margin); - height: var(--n-icon-size); - width: var(--n-icon-size); - font-size: var(--n-icon-size); - flex-shrink: 0; - `,[[`default`,`info`,`success`,`warning`,`error`,`loading`].map(e=>M(`${e}-type`,[F(`> *`,` - color: var(--n-icon-color-${e}); - transition: color .3s var(--n-bezier); - `)])),F(`> *`,` - position: absolute; - left: 0; - top: 0; - right: 0; - bottom: 0; - `,[$r()])]),ze(`close`,` - margin: var(--n-close-margin); - transition: - background-color .3s var(--n-bezier), - color .3s var(--n-bezier); - flex-shrink: 0; - `,[F(`&:hover`,` - color: var(--n-close-icon-color-hover); - `),F(`&:active`,` - color: var(--n-close-icon-color-pressed); - `)])]),Me(`message-container`,` - z-index: 6000; - position: fixed; - height: 0; - overflow: visible; - display: flex; - flex-direction: column; - align-items: center; - `,[M(`top`,` - top: 12px; - left: 0; - right: 0; - `),M(`top-left`,` - top: 12px; - left: 12px; - right: 0; - align-items: flex-start; - `),M(`top-right`,` - top: 12px; - left: 0; - right: 12px; - align-items: flex-end; - `),M(`bottom`,` - bottom: 4px; - left: 0; - right: 0; - justify-content: flex-end; - `),M(`bottom-left`,` - bottom: 4px; - left: 12px; - right: 0; - justify-content: flex-end; - align-items: flex-start; - `),M(`bottom-right`,` - bottom: 4px; - left: 0; - right: 12px; - justify-content: flex-end; - align-items: flex-end; - `)])]),Eo={info:()=>c(Yr,null),success:()=>c(Xr,null),warning:()=>c(Zr,null),error:()=>c(Jr,null),default:()=>null},Do=m({name:`Message`,props:Object.assign(Object.assign({},wo),{render:Function}),setup(e){let{inlineThemeDisabled:t,mergedRtlRef:n}=Fe(e),{props:r,mergedClsPrefixRef:i}=y(yo),a=Ue(`Message`,n,i),o=Ge(`Message`,`-message`,To,So,r,i),s=A(()=>{let{type:t}=e,{common:{cubicBezierEaseInOut:n},self:{padding:r,margin:i,maxWidth:a,iconMargin:s,closeMargin:c,closeSize:l,iconSize:u,fontSize:d,lineHeight:f,borderRadius:p,border:m,iconColorInfo:h,iconColorSuccess:g,iconColorWarning:_,iconColorError:v,iconColorLoading:y,closeIconSize:b,closeBorderRadius:x,[We(`textColor`,t)]:S,[We(`boxShadow`,t)]:C,[We(`color`,t)]:w,[We(`closeColorHover`,t)]:T,[We(`closeColorPressed`,t)]:E,[We(`closeIconColor`,t)]:D,[We(`closeIconColorPressed`,t)]:O,[We(`closeIconColorHover`,t)]:k}}=o.value;return{"--n-bezier":n,"--n-margin":i,"--n-padding":r,"--n-max-width":a,"--n-font-size":d,"--n-icon-margin":s,"--n-icon-size":u,"--n-close-icon-size":b,"--n-close-border-radius":x,"--n-close-size":l,"--n-close-margin":c,"--n-text-color":S,"--n-color":w,"--n-box-shadow":C,"--n-icon-color-info":h,"--n-icon-color-success":g,"--n-icon-color-warning":_,"--n-icon-color-error":v,"--n-icon-color-loading":y,"--n-close-color-hover":T,"--n-close-color-pressed":E,"--n-close-icon-color":D,"--n-close-icon-color-pressed":O,"--n-close-icon-color-hover":k,"--n-line-height":f,"--n-border-radius":p,"--n-border":m}}),c=t?Pe(`message`,A(()=>e.type[0]),s,{}):void 0;return{mergedClsPrefix:i,rtlEnabled:a,messageProviderProps:r,handleClose(){var t;(t=e.onClose)==null||t.call(e)},cssVars:t?void 0:s,themeClass:c?.themeClass,onRender:c?.onRender,placement:r.placement}},render(){let{render:e,type:t,closable:n,content:r,mergedClsPrefix:i,cssVars:a,themeClass:o,onRender:s,icon:l,handleClose:u,showIcon:d}=this;s?.();let f;return c(`div`,{class:[`${i}-message-wrapper`,o],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith(`top`)?`flex-start`:`flex-end`},a]},e?e(this.$props):c(`div`,{class:[`${i}-message ${i}-message--${t}-type`,this.rtlEnabled&&`${i}-message--rtl`]},(f=Oo(l,t,i,this.spinProps))&&d?c(`div`,{class:`${i}-message__icon ${i}-message__icon--${t}-type`},c(Gr,null,{default:()=>f})):null,c(`div`,{class:`${i}-message__content`},cr(r)),n?c(ti,{clsPrefix:i,class:`${i}-message__close`,onClick:u,absolute:!0}):null))}});function Oo(e,t,n,r){if(typeof e==`function`)return e();{let e=t===`loading`?c(oi,Object.assign({clsPrefix:n,strokeWidth:24,scale:.85},r)):Eo[t]();return e?c(Wr,{clsPrefix:n,key:t},{default:()=>e}):null}}var ko=m({name:`MessageEnvironment`,props:Object.assign(Object.assign({},wo),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let t=null,n=j(!0);be(()=>{r()});function r(){let{duration:n}=e;n&&(t=window.setTimeout(o,n))}function i(e){e.currentTarget===e.target&&t!==null&&(window.clearTimeout(t),t=null)}function a(e){e.currentTarget===e.target&&r()}function o(){let{onHide:r}=e;n.value=!1,t&&=(window.clearTimeout(t),null),r&&r()}function s(){let{onClose:t}=e;t&&t(),o()}function c(){let{onAfterLeave:t,onInternalAfterLeave:n,onAfterHide:r,internalKey:i}=e;t&&t(),n&&n(i),r&&r()}function l(){o()}return{show:n,hide:o,handleClose:s,handleAfterLeave:c,handleMouseleave:a,handleMouseenter:i,deactivate:l}},render(){return c(ni,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?c(Do,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,spinProps:this.spinProps,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),Ao=m({name:`MessageProvider`,props:Object.assign(Object.assign({},Ge.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:`top`},closable:Boolean,containerClass:String,containerStyle:[String,Object]}),setup(e){let{mergedClsPrefixRef:t}=Fe(e),n=j([]),r=j({}),i={create(e,t){return a(e,Object.assign({type:`default`},t))},info(e,t){return a(e,Object.assign(Object.assign({},t),{type:`info`}))},success(e,t){return a(e,Object.assign(Object.assign({},t),{type:`success`}))},warning(e,t){return a(e,Object.assign(Object.assign({},t),{type:`warning`}))},error(e,t){return a(e,Object.assign(Object.assign({},t),{type:`error`}))},loading(e,t){return a(e,Object.assign(Object.assign({},t),{type:`loading`}))},destroyAll:s};D(yo,{props:e,mergedClsPrefixRef:t}),D(vo,i);function a(t,i){let a=ir(),o=k(Object.assign(Object.assign({},i),{content:t,key:a,destroy:()=>{var e;(e=r.value[a])==null||e.hide()}})),{max:s}=e;return s&&n.value.length>=s&&n.value.shift(),n.value.push(o),o}function o(e){n.value.splice(n.value.findIndex(t=>t.key===e),1),delete r.value[e]}function s(){Object.values(r.value).forEach(e=>{e.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:r,messageList:n,handleAfterLeave:o},i)},render(){var e;return c(Oe,null,(e=this.$slots).default?.call(e),this.messageList.length?c(te,{to:this.to??`body`},c(`div`,{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`,this.containerClass],key:`message-container`,style:this.containerStyle},this.messageList.map(e=>c(ko,Object.assign({ref:t=>{t&&(this.messageRefs[e.key]=t)},internalKey:e.key,onInternalAfterLeave:this.handleAfterLeave},sr(e,[`destroy`],void 0),{duration:e.duration===void 0?this.duration:e.duration,keepAliveOnHover:e.keepAliveOnHover===void 0?this.keepAliveOnHover:e.keepAliveOnHover,closable:e.closable===void 0?this.closable:e.closable}))))):null)}}),jo={closeMargin:`16px 12px`,closeSize:`20px`,closeIconSize:`16px`,width:`365px`,padding:`16px`,titleFontSize:`16px`,metaFontSize:`12px`,descriptionFontSize:`12px`};function Mo(e){let{textColor2:t,successColor:n,infoColor:r,warningColor:i,errorColor:a,popoverColor:o,closeIconColor:s,closeIconColorHover:c,closeIconColorPressed:l,closeColorHover:u,closeColorPressed:d,textColor1:f,textColor3:p,borderRadius:m,fontWeightStrong:h,boxShadow2:g,lineHeight:_,fontSize:v}=e;return Object.assign(Object.assign({},jo),{borderRadius:m,lineHeight:_,fontSize:v,headerFontWeight:h,iconColor:t,iconColorSuccess:n,iconColorInfo:r,iconColorWarning:i,iconColorError:a,color:o,textColor:t,closeIconColor:s,closeIconColorHover:c,closeIconColorPressed:l,closeBorderRadius:m,closeColorHover:u,closeColorPressed:d,headerTextColor:f,descriptionTextColor:p,actionTextColor:t,boxShadow:g})}I({name:`Notification`,common:L,peers:{Scrollbar:z},self:Mo});var No={name:`Notification`,common:q,peers:{Scrollbar:J},self:Mo};function Po(e){let{textColor1:t,dividerColor:n,fontWeightStrong:r}=e;return{textColor:t,color:n,fontWeight:r}}var Fo={name:`Divider`,common:q,self:Po};function Io(e){let{modalColor:t,textColor1:n,textColor2:r,boxShadow3:i,lineHeight:a,fontWeightStrong:o,dividerColor:s,closeColorHover:c,closeColorPressed:l,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,borderRadius:p,primaryColorHover:m}=e;return{bodyPadding:`16px 24px`,borderRadius:p,headerPadding:`16px 24px`,footerPadding:`16px 24px`,color:t,textColor:r,titleTextColor:n,titleFontSize:`18px`,titleFontWeight:o,boxShadow:i,lineHeight:a,headerBorderBottom:`1px solid ${s}`,footerBorderTop:`1px solid ${s}`,closeIconColor:u,closeIconColorHover:d,closeIconColorPressed:f,closeSize:`22px`,closeIconSize:`18px`,closeColorHover:c,closeColorPressed:l,closeBorderRadius:p,resizableTriggerColorHover:m}}I({name:`Drawer`,common:L,peers:{Scrollbar:z},self:Io});var Lo={name:`Drawer`,common:q,peers:{Scrollbar:J},self:Io},Ro={actionMargin:`0 0 0 20px`,actionMarginRtl:`0 20px 0 0`},zo={name:`DynamicInput`,common:q,peers:{Input:X,Button:Q},self(){return Ro}},Bo={gapSmall:`4px 8px`,gapMedium:`8px 12px`,gapLarge:`12px 16px`},Vo={name:`Space`,self(){return Bo}},Ho={name:`DynamicTags`,common:q,peers:{Input:X,Button:Q,Tag:wi,Space:Vo},self(){return{inputWidth:`64px`}}},Uo={name:`Element`,common:q},Wo={gapSmall:`4px 8px`,gapMedium:`8px 12px`,gapLarge:`12px 16px`},Go={name:`Flex`,self(){return Wo}},Ko={name:`ButtonGroup`,common:q},qo={feedbackPadding:`4px 0 0 2px`,feedbackHeightSmall:`24px`,feedbackHeightMedium:`24px`,feedbackHeightLarge:`26px`,feedbackFontSizeSmall:`13px`,feedbackFontSizeMedium:`14px`,feedbackFontSizeLarge:`14px`,labelFontSizeLeftSmall:`14px`,labelFontSizeLeftMedium:`14px`,labelFontSizeLeftLarge:`15px`,labelFontSizeTopSmall:`13px`,labelFontSizeTopMedium:`14px`,labelFontSizeTopLarge:`14px`,labelHeightSmall:`24px`,labelHeightMedium:`26px`,labelHeightLarge:`28px`,labelPaddingVertical:`0 0 6px 2px`,labelPaddingHorizontal:`0 12px 0 0`,labelTextAlignVertical:`left`,labelTextAlignHorizontal:`right`,labelFontWeight:`400`};function Jo(e){let{heightSmall:t,heightMedium:n,heightLarge:r,textColor1:i,errorColor:a,warningColor:o,lineHeight:s,textColor3:c}=e;return Object.assign(Object.assign({},qo),{blankHeightSmall:t,blankHeightMedium:n,blankHeightLarge:r,lineHeight:s,labelTextColor:i,asteriskColor:a,feedbackTextColorError:a,feedbackTextColorWarning:o,feedbackTextColor:c})}var Yo={name:`Form`,common:L,self:Jo},Xo={name:`Form`,common:q,self:Jo},Zo={name:`GradientText`,common:q,self(e){let{primaryColor:t,successColor:n,warningColor:r,errorColor:i,infoColor:a,primaryColorSuppl:o,successColorSuppl:s,warningColorSuppl:c,errorColorSuppl:l,infoColorSuppl:u,fontWeightStrong:d}=e;return{fontWeight:d,rotate:`252deg`,colorStartPrimary:t,colorEndPrimary:o,colorStartInfo:a,colorEndInfo:u,colorStartWarning:r,colorEndWarning:c,colorStartError:i,colorEndError:l,colorStartSuccess:n,colorEndSuccess:s}}},Qo={name:`InputNumber`,common:q,peers:{Button:Q,Input:X},self(e){let{textColorDisabled:t}=e;return{iconColorDisabled:t}}};function $o(){return{inputWidthSmall:`24px`,inputWidthMedium:`30px`,inputWidthLarge:`36px`,gapSmall:`8px`,gapMedium:`8px`,gapLarge:`8px`}}I({name:`InputOtp`,common:L,peers:{Input:Bi},self:$o});var es={name:`InputOtp`,common:q,peers:{Input:X},self:$o},ts={name:`Layout`,common:q,peers:{Scrollbar:J},self(e){let{textColor2:t,bodyColor:n,popoverColor:r,cardColor:i,dividerColor:a,scrollbarColor:o,scrollbarColorHover:s}=e;return{textColor:t,textColorInverted:t,color:n,colorEmbedded:n,headerColor:i,headerColorInverted:i,footerColor:i,footerColorInverted:i,headerBorderColor:a,headerBorderColorInverted:a,footerBorderColor:a,footerBorderColorInverted:a,siderBorderColor:a,siderBorderColorInverted:a,siderColor:i,siderColorInverted:i,siderToggleButtonBorder:`1px solid transparent`,siderToggleButtonColor:r,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:P(n,o),siderToggleBarColorHover:P(n,s),__invertScrollbar:`false`}}},ns={name:`Row`,common:q};function rs(e){let{textColor2:t,cardColor:n,modalColor:r,popoverColor:i,dividerColor:a,borderRadius:o,fontSize:s,hoverColor:c}=e;return{textColor:t,color:n,colorHover:c,colorModal:r,colorHoverModal:P(r,c),colorPopover:i,colorHoverPopover:P(i,c),borderColor:a,borderColorModal:P(r,a),borderColorPopover:P(i,a),borderRadius:o,fontSize:s}}var is={name:`List`,common:q,self:rs},as={name:`Log`,common:q,peers:{Scrollbar:J,Code:ha},self(e){let{textColor2:t,inputColor:n,fontSize:r,primaryColor:i}=e;return{loaderFontSize:r,loaderTextColor:t,loaderColor:n,loaderBorder:`1px solid #0000`,loadingColor:i}}},os={name:`Mention`,common:q,peers:{InternalSelectMenu:vi,Input:X},self(e){let{boxShadow2:t}=e;return{menuBoxShadow:t}}};function ss(e,t,n,r){return{itemColorHoverInverted:`#0000`,itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:n,itemTextColorChildActiveInverted:n,itemTextColorChildActiveHoverInverted:n,itemTextColorActiveInverted:n,itemTextColorActiveHoverInverted:n,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:n,itemTextColorChildActiveHorizontalInverted:n,itemTextColorChildActiveHoverHorizontalInverted:n,itemTextColorActiveHorizontalInverted:n,itemTextColorActiveHoverHorizontalInverted:n,itemIconColorInverted:e,itemIconColorHoverInverted:n,itemIconColorActiveInverted:n,itemIconColorActiveHoverInverted:n,itemIconColorChildActiveInverted:n,itemIconColorChildActiveHoverInverted:n,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:n,itemIconColorActiveHorizontalInverted:n,itemIconColorActiveHoverHorizontalInverted:n,itemIconColorChildActiveHorizontalInverted:n,itemIconColorChildActiveHoverHorizontalInverted:n,arrowColorInverted:e,arrowColorHoverInverted:n,arrowColorActiveInverted:n,arrowColorActiveHoverInverted:n,arrowColorChildActiveInverted:n,arrowColorChildActiveHoverInverted:n,groupTextColorInverted:r}}function cs(e){let{borderRadius:t,textColor3:n,primaryColor:r,textColor2:i,textColor1:a,fontSize:o,dividerColor:s,hoverColor:c,primaryColorHover:l}=e;return Object.assign({borderRadius:t,color:`#0000`,groupTextColor:n,itemColorHover:c,itemColorActive:N(r,{alpha:.1}),itemColorActiveHover:N(r,{alpha:.1}),itemColorActiveCollapsed:N(r,{alpha:.1}),itemTextColor:i,itemTextColorHover:i,itemTextColorActive:r,itemTextColorActiveHover:r,itemTextColorChildActive:r,itemTextColorChildActiveHover:r,itemTextColorHorizontal:i,itemTextColorHoverHorizontal:l,itemTextColorActiveHorizontal:r,itemTextColorActiveHoverHorizontal:r,itemTextColorChildActiveHorizontal:r,itemTextColorChildActiveHoverHorizontal:r,itemIconColor:a,itemIconColorHover:a,itemIconColorActive:r,itemIconColorActiveHover:r,itemIconColorChildActive:r,itemIconColorChildActiveHover:r,itemIconColorCollapsed:a,itemIconColorHorizontal:a,itemIconColorHoverHorizontal:l,itemIconColorActiveHorizontal:r,itemIconColorActiveHoverHorizontal:r,itemIconColorChildActiveHorizontal:r,itemIconColorChildActiveHoverHorizontal:r,itemHeight:`42px`,arrowColor:i,arrowColorHover:i,arrowColorActive:r,arrowColorActiveHover:r,arrowColorChildActive:r,arrowColorChildActiveHover:r,colorInverted:`#0000`,borderColorHorizontal:`#0000`,fontSize:o,dividerColor:s},ss(`#BBB`,r,`#FFF`,`#AAA`))}I({name:`Menu`,common:L,peers:{Tooltip:Ba,Dropdown:Fa},self:cs});var ls={name:`Menu`,common:q,peers:{Tooltip:Ra,Dropdown:Ia},self(e){let{primaryColor:t,primaryColorSuppl:n}=e,r=cs(e);return r.itemColorActive=N(t,{alpha:.15}),r.itemColorActiveHover=N(t,{alpha:.15}),r.itemColorActiveCollapsed=N(t,{alpha:.15}),r.itemColorActiveInverted=n,r.itemColorActiveHoverInverted=n,r.itemColorActiveCollapsedInverted=n,r}},us={titleFontSize:`18px`,backSize:`22px`};function ds(e){let{textColor1:t,textColor2:n,textColor3:r,fontSize:i,fontWeightStrong:a,primaryColorHover:o,primaryColorPressed:s}=e;return Object.assign(Object.assign({},us),{titleFontWeight:a,fontSize:i,titleTextColor:t,backColor:n,backColorHover:o,backColorPressed:s,subtitleTextColor:r})}I({name:`PageHeader`,common:L,self:ds});var fs={name:`PageHeader`,common:q,self:ds},ps={iconSize:`22px`};function ms(e){let{fontSize:t,warningColor:n}=e;return Object.assign(Object.assign({},ps),{fontSize:t,iconColor:n})}I({name:`Popconfirm`,common:L,peers:{Button:Z,Popover:xi},self:ms});var hs={name:`Popconfirm`,common:q,peers:{Button:Q,Popover:Si},self:ms};function gs(e){let{infoColor:t,successColor:n,warningColor:r,errorColor:i,textColor2:a,progressRailColor:o,fontSize:s,fontWeight:c}=e;return{fontSize:s,fontSizeCircle:`28px`,fontWeightCircle:c,railColor:o,railHeight:`8px`,iconSizeCircle:`36px`,iconSizeLine:`18px`,iconColor:t,iconColorInfo:t,iconColorSuccess:n,iconColorWarning:r,iconColorError:i,textColorCircle:a,textColorLineInner:`rgb(255, 255, 255)`,textColorLineOuter:a,fillColor:t,fillColorInfo:t,fillColorSuccess:n,fillColorWarning:r,fillColorError:i,lineBgProcessing:`linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)`}}var _s={name:`Progress`,common:L,self:gs},vs={name:`Progress`,common:q,self(e){let t=gs(e);return t.textColorLineInner=`rgb(0, 0, 0)`,t.lineBgProcessing=`linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)`,t}},ys={name:`Rate`,common:q,self(e){let{railColor:t}=e;return{itemColor:t,itemColorActive:`#CCAA33`,itemSize:`20px`,sizeSmall:`16px`,sizeMedium:`20px`,sizeLarge:`24px`}}},bs={titleFontSizeSmall:`26px`,titleFontSizeMedium:`32px`,titleFontSizeLarge:`40px`,titleFontSizeHuge:`48px`,fontSizeSmall:`14px`,fontSizeMedium:`14px`,fontSizeLarge:`15px`,fontSizeHuge:`16px`,iconSizeSmall:`64px`,iconSizeMedium:`80px`,iconSizeLarge:`100px`,iconSizeHuge:`125px`,iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0};function xs(e){let{textColor2:t,textColor1:n,errorColor:r,successColor:i,infoColor:a,warningColor:o,lineHeight:s,fontWeightStrong:c}=e;return Object.assign(Object.assign({},bs),{lineHeight:s,titleFontWeight:c,titleTextColor:n,textColor:t,iconColorError:r,iconColorSuccess:i,iconColorInfo:a,iconColorWarning:o})}var Ss={name:`Result`,common:q,self:xs},Cs={railHeight:`4px`,railWidthVertical:`4px`,handleSize:`18px`,dotHeight:`8px`,dotWidth:`8px`,dotBorderRadius:`4px`},ws={name:`Slider`,common:q,self(e){let{railColor:t,modalColor:n,primaryColorSuppl:r,popoverColor:i,textColor2:a,cardColor:o,borderRadius:s,fontSize:c,opacityDisabled:l}=e;return Object.assign(Object.assign({},Cs),{fontSize:c,markFontSize:c,railColor:t,railColorHover:t,fillColor:r,fillColorHover:r,opacityDisabled:l,handleColor:`#FFF`,dotColor:o,dotColorModal:n,dotColorPopover:i,handleBoxShadow:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,handleBoxShadowHover:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,handleBoxShadowActive:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,handleBoxShadowFocus:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,indicatorColor:i,indicatorBoxShadow:`0 2px 8px 0 rgba(0, 0, 0, 0.12)`,indicatorTextColor:a,indicatorBorderRadius:s,dotBorder:`2px solid ${t}`,dotBorderActive:`2px solid ${r}`,dotBoxShadow:``})}};function Ts(e){let{opacityDisabled:t,heightTiny:n,heightSmall:r,heightMedium:i,heightLarge:a,heightHuge:o,primaryColor:s,fontSize:c}=e;return{fontSize:c,textColor:s,sizeTiny:n,sizeSmall:r,sizeMedium:i,sizeLarge:a,sizeHuge:o,color:s,opacitySpinning:t}}var Es={name:`Spin`,common:L,self:Ts},Ds={name:`Spin`,common:q,self:Ts};function Os(e){let{textColor2:t,textColor3:n,fontSize:r,fontWeight:i}=e;return{labelFontSize:r,labelFontWeight:i,valueFontWeight:i,valueFontSize:`24px`,labelTextColor:n,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}}var ks={name:`Statistic`,common:q,self:Os},As={stepHeaderFontSizeSmall:`14px`,stepHeaderFontSizeMedium:`16px`,indicatorIndexFontSizeSmall:`14px`,indicatorIndexFontSizeMedium:`16px`,indicatorSizeSmall:`22px`,indicatorSizeMedium:`28px`,indicatorIconSizeSmall:`14px`,indicatorIconSizeMedium:`18px`};function js(e){let{fontWeightStrong:t,baseColor:n,textColorDisabled:r,primaryColor:i,errorColor:a,textColor1:o,textColor2:s}=e;return Object.assign(Object.assign({},As),{stepHeaderFontWeight:t,indicatorTextColorProcess:n,indicatorTextColorWait:r,indicatorTextColorFinish:i,indicatorTextColorError:a,indicatorBorderColorProcess:i,indicatorBorderColorWait:r,indicatorBorderColorFinish:i,indicatorBorderColorError:a,indicatorColorProcess:i,indicatorColorWait:`#0000`,indicatorColorFinish:`#0000`,indicatorColorError:`#0000`,splitorColorProcess:r,splitorColorWait:r,splitorColorFinish:i,splitorColorError:r,headerTextColorProcess:o,headerTextColorWait:r,headerTextColorFinish:r,headerTextColorError:a,descriptionTextColorProcess:s,descriptionTextColorWait:r,descriptionTextColorFinish:r,descriptionTextColorError:a})}var Ms={name:`Steps`,common:q,self:js},Ns={buttonHeightSmall:`14px`,buttonHeightMedium:`18px`,buttonHeightLarge:`22px`,buttonWidthSmall:`14px`,buttonWidthMedium:`18px`,buttonWidthLarge:`22px`,buttonWidthPressedSmall:`20px`,buttonWidthPressedMedium:`24px`,buttonWidthPressedLarge:`28px`,railHeightSmall:`18px`,railHeightMedium:`22px`,railHeightLarge:`26px`,railWidthSmall:`32px`,railWidthMedium:`40px`,railWidthLarge:`48px`},Ps={name:`Switch`,common:q,self(e){let{primaryColorSuppl:t,opacityDisabled:n,borderRadius:r,primaryColor:i,textColor2:a,baseColor:o}=e;return Object.assign(Object.assign({},Ns),{iconColor:o,textColor:a,loadingColor:t,opacityDisabled:n,railColor:`rgba(255, 255, 255, .20)`,railColorActive:t,buttonBoxShadow:`0px 2px 4px 0 rgba(0, 0, 0, 0.4)`,buttonColor:`#FFF`,railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 8px 0 ${N(i,{alpha:.3})}`})}},Fs={thPaddingSmall:`6px`,thPaddingMedium:`12px`,thPaddingLarge:`12px`,tdPaddingSmall:`6px`,tdPaddingMedium:`12px`,tdPaddingLarge:`12px`};function Is(e){let{dividerColor:t,cardColor:n,modalColor:r,popoverColor:i,tableHeaderColor:a,tableColorStriped:o,textColor1:s,textColor2:c,borderRadius:l,fontWeightStrong:u,lineHeight:d,fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:m}=e;return Object.assign(Object.assign({},Fs),{fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:m,lineHeight:d,borderRadius:l,borderColor:P(n,t),borderColorModal:P(r,t),borderColorPopover:P(i,t),tdColor:n,tdColorModal:r,tdColorPopover:i,tdColorStriped:P(n,o),tdColorStripedModal:P(r,o),tdColorStripedPopover:P(i,o),thColor:P(n,a),thColorModal:P(r,a),thColorPopover:P(i,a),thTextColor:s,tdTextColor:c,thFontWeight:u})}var Ls={name:`Table`,common:q,self:Is},Rs={tabFontSizeSmall:`14px`,tabFontSizeMedium:`14px`,tabFontSizeLarge:`16px`,tabGapSmallLine:`36px`,tabGapMediumLine:`36px`,tabGapLargeLine:`36px`,tabGapSmallLineVertical:`8px`,tabGapMediumLineVertical:`8px`,tabGapLargeLineVertical:`8px`,tabPaddingSmallLine:`6px 0`,tabPaddingMediumLine:`10px 0`,tabPaddingLargeLine:`14px 0`,tabPaddingVerticalSmallLine:`6px 12px`,tabPaddingVerticalMediumLine:`8px 16px`,tabPaddingVerticalLargeLine:`10px 20px`,tabGapSmallBar:`36px`,tabGapMediumBar:`36px`,tabGapLargeBar:`36px`,tabGapSmallBarVertical:`8px`,tabGapMediumBarVertical:`8px`,tabGapLargeBarVertical:`8px`,tabPaddingSmallBar:`4px 0`,tabPaddingMediumBar:`6px 0`,tabPaddingLargeBar:`10px 0`,tabPaddingVerticalSmallBar:`6px 12px`,tabPaddingVerticalMediumBar:`8px 16px`,tabPaddingVerticalLargeBar:`10px 20px`,tabGapSmallCard:`4px`,tabGapMediumCard:`4px`,tabGapLargeCard:`4px`,tabGapSmallCardVertical:`4px`,tabGapMediumCardVertical:`4px`,tabGapLargeCardVertical:`4px`,tabPaddingSmallCard:`8px 16px`,tabPaddingMediumCard:`10px 20px`,tabPaddingLargeCard:`12px 24px`,tabPaddingSmallSegment:`4px 0`,tabPaddingMediumSegment:`6px 0`,tabPaddingLargeSegment:`8px 0`,tabPaddingVerticalLargeSegment:`0 8px`,tabPaddingVerticalSmallCard:`8px 12px`,tabPaddingVerticalMediumCard:`10px 16px`,tabPaddingVerticalLargeCard:`12px 20px`,tabPaddingVerticalSmallSegment:`0 4px`,tabPaddingVerticalMediumSegment:`0 6px`,tabGapSmallSegment:`0`,tabGapMediumSegment:`0`,tabGapLargeSegment:`0`,tabGapSmallSegmentVertical:`0`,tabGapMediumSegmentVertical:`0`,tabGapLargeSegmentVertical:`0`,panePaddingSmall:`8px 0 0 0`,panePaddingMedium:`12px 0 0 0`,panePaddingLarge:`16px 0 0 0`,closeSize:`18px`,closeIconSize:`14px`};function zs(e){let{textColor2:t,primaryColor:n,textColorDisabled:r,closeIconColor:i,closeIconColorHover:a,closeIconColorPressed:o,closeColorHover:s,closeColorPressed:c,tabColor:l,baseColor:u,dividerColor:d,fontWeight:f,textColor1:p,borderRadius:m,fontSize:h,fontWeightStrong:g}=e;return Object.assign(Object.assign({},Rs),{colorSegment:l,tabFontSizeCard:h,tabTextColorLine:p,tabTextColorActiveLine:n,tabTextColorHoverLine:n,tabTextColorDisabledLine:r,tabTextColorSegment:p,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:r,tabTextColorBar:p,tabTextColorActiveBar:n,tabTextColorHoverBar:n,tabTextColorDisabledBar:r,tabTextColorCard:p,tabTextColorHoverCard:p,tabTextColorActiveCard:n,tabTextColorDisabledCard:r,barColor:n,closeIconColor:i,closeIconColorHover:a,closeIconColorPressed:o,closeColorHover:s,closeColorPressed:c,closeBorderRadius:m,tabColor:l,tabColorSegment:u,tabBorderColor:d,tabFontWeightActive:f,tabFontWeight:f,tabBorderRadius:m,paneTextColor:t,fontWeightStrong:g})}var Bs={name:`Tabs`,common:L,self:zs},Vs={name:`Tabs`,common:q,self(e){let t=zs(e),{inputColor:n}=e;return t.colorSegment=n,t.tabColorSegment=n,t}};function Hs(e){let{textColor1:t,textColor2:n,fontWeightStrong:r,fontSize:i}=e;return{fontSize:i,titleTextColor:t,textColor:n,titleFontWeight:r}}var Us={name:`Thing`,common:q,self:Hs},Ws={titleMarginMedium:`0 0 6px 0`,titleMarginLarge:`-2px 0 6px 0`,titleFontSizeMedium:`14px`,titleFontSizeLarge:`16px`,iconSizeMedium:`14px`,iconSizeLarge:`14px`},Gs={name:`Timeline`,common:q,self(e){let{textColor3:t,infoColorSuppl:n,errorColorSuppl:r,successColorSuppl:i,warningColorSuppl:a,textColor1:o,textColor2:s,railColor:c,fontWeightStrong:l,fontSize:u}=e;return Object.assign(Object.assign({},Ws),{contentFontSize:u,titleFontWeight:l,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${n}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${i}`,circleBorderWarning:`2px solid ${a}`,iconColor:t,iconColorInfo:n,iconColorError:r,iconColorSuccess:i,iconColorWarning:a,titleTextColor:o,contentTextColor:s,metaTextColor:t,lineColor:c})}},Ks={extraFontSizeSmall:`12px`,extraFontSizeMedium:`12px`,extraFontSizeLarge:`14px`,titleFontSizeSmall:`14px`,titleFontSizeMedium:`16px`,titleFontSizeLarge:`16px`,closeSize:`20px`,closeIconSize:`16px`,headerHeightSmall:`44px`,headerHeightMedium:`44px`,headerHeightLarge:`50px`},qs={name:`Transfer`,common:q,peers:{Checkbox:fa,Scrollbar:J,Input:X,Empty:mi,Button:Q},self(e){let{fontWeight:t,fontSizeLarge:n,fontSizeMedium:r,fontSizeSmall:i,heightLarge:a,heightMedium:o,borderRadius:s,inputColor:c,tableHeaderColor:l,textColor1:u,textColorDisabled:d,textColor2:f,textColor3:p,hoverColor:m,closeColorHover:h,closeColorPressed:g,closeIconColor:_,closeIconColorHover:v,closeIconColorPressed:y,dividerColor:b}=e;return Object.assign(Object.assign({},Ks),{itemHeightSmall:o,itemHeightMedium:o,itemHeightLarge:a,fontSizeSmall:i,fontSizeMedium:r,fontSizeLarge:n,borderRadius:s,dividerColor:b,borderColor:`#0000`,listColor:c,headerColor:l,titleTextColor:u,titleTextColorDisabled:d,extraTextColor:p,extraTextColorDisabled:d,itemTextColor:f,itemTextColorDisabled:d,itemColorPending:m,titleFontWeight:t,closeColorHover:h,closeColorPressed:g,closeIconColor:_,closeIconColorHover:v,closeIconColorPressed:y})}};function Js(e){let{borderRadiusSmall:t,dividerColor:n,hoverColor:r,pressedColor:i,primaryColor:a,textColor3:o,textColor2:s,textColorDisabled:c,fontSize:l}=e;return{fontSize:l,lineHeight:`1.5`,nodeHeight:`30px`,nodeWrapperPadding:`3px 0`,nodeBorderRadius:t,nodeColorHover:r,nodeColorPressed:i,nodeColorActive:N(a,{alpha:.1}),arrowColor:o,nodeTextColor:s,nodeTextColorDisabled:c,loadingColor:a,dropMarkColor:a,lineColor:n}}I({name:`Tree`,common:L,peers:{Checkbox:da,Scrollbar:z,Empty:pi},self:Js});var Ys={name:`Tree`,common:q,peers:{Checkbox:fa,Scrollbar:J,Empty:mi},self(e){let{primaryColor:t}=e,n=Js(e);return n.nodeColorActive=N(t,{alpha:.15}),n}},Xs={name:`TreeSelect`,common:q,peers:{Tree:Ys,Empty:mi,InternalSelection:Ei}},Zs={headerFontSize1:`30px`,headerFontSize2:`22px`,headerFontSize3:`18px`,headerFontSize4:`16px`,headerFontSize5:`16px`,headerFontSize6:`16px`,headerMargin1:`28px 0 20px 0`,headerMargin2:`28px 0 20px 0`,headerMargin3:`28px 0 20px 0`,headerMargin4:`28px 0 18px 0`,headerMargin5:`28px 0 18px 0`,headerMargin6:`28px 0 18px 0`,headerPrefixWidth1:`16px`,headerPrefixWidth2:`16px`,headerPrefixWidth3:`12px`,headerPrefixWidth4:`12px`,headerPrefixWidth5:`12px`,headerPrefixWidth6:`12px`,headerBarWidth1:`4px`,headerBarWidth2:`4px`,headerBarWidth3:`3px`,headerBarWidth4:`3px`,headerBarWidth5:`3px`,headerBarWidth6:`3px`,pMargin:`16px 0 16px 0`,liMargin:`.25em 0 0 0`,olPadding:`0 0 0 2em`,ulPadding:`0 0 0 2em`};function Qs(e){let{primaryColor:t,textColor2:n,borderColor:r,lineHeight:i,fontSize:a,borderRadiusSmall:o,dividerColor:s,fontWeightStrong:c,textColor1:l,textColor3:u,infoColor:d,warningColor:f,errorColor:p,successColor:m,codeColor:h}=e;return Object.assign(Object.assign({},Zs),{aTextColor:t,blockquoteTextColor:n,blockquotePrefixColor:r,blockquoteLineHeight:i,blockquoteFontSize:a,codeBorderRadius:o,liTextColor:n,liLineHeight:i,liFontSize:a,hrColor:s,headerFontWeight:c,headerTextColor:l,pTextColor:n,pTextColor1Depth:l,pTextColor2Depth:n,pTextColor3Depth:u,pLineHeight:i,pFontSize:a,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:d,headerBarColorError:p,headerBarColorWarning:f,headerBarColorSuccess:m,textColor:n,textColor1Depth:l,textColor2Depth:n,textColor3Depth:u,textColorPrimary:t,textColorInfo:d,textColorSuccess:m,textColorWarning:f,textColorError:p,codeTextColor:n,codeColor:h,codeBorder:`1px solid #0000`})}var $s={name:`Typography`,common:L,self:Qs},ec={name:`Typography`,common:q,self:Qs};function tc(e){let{iconColor:t,primaryColor:n,errorColor:r,textColor2:i,successColor:a,opacityDisabled:o,actionColor:s,borderColor:c,hoverColor:l,lineHeight:u,borderRadius:d,fontSize:f}=e;return{fontSize:f,lineHeight:u,borderRadius:d,draggerColor:s,draggerBorder:`1px dashed ${c}`,draggerBorderHover:`1px dashed ${n}`,itemColorHover:l,itemColorHoverError:N(r,{alpha:.06}),itemTextColor:i,itemTextColorError:r,itemTextColorSuccess:a,itemIconColor:t,itemDisabledOpacity:o,itemBorderImageCardError:`1px solid ${r}`,itemBorderImageCard:`1px solid ${c}`}}var nc=I({name:`Upload`,common:L,peers:{Button:Z,Progress:_s},self:tc}),rc={name:`Upload`,common:q,peers:{Button:Q,Progress:vs},self(e){let{errorColor:t}=e,n=tc(e);return n.itemColorHoverError=N(t,{alpha:.09}),n}},ic={name:`Watermark`,common:q,self(e){let{fontFamily:t}=e;return{fontFamily:t}}},ac={name:`FloatButton`,common:q,self(e){let{popoverColor:t,textColor2:n,buttonColor2Hover:r,buttonColor2Pressed:i,primaryColor:a,primaryColorHover:o,primaryColorPressed:s,baseColor:c,borderRadius:l}=e;return{color:t,textColor:n,boxShadow:`0 2px 8px 0px rgba(0, 0, 0, .12)`,boxShadowHover:`0 2px 12px 0px rgba(0, 0, 0, .18)`,boxShadowPressed:`0 2px 12px 0px rgba(0, 0, 0, .18)`,colorHover:r,colorPressed:i,colorPrimary:a,colorPrimaryHover:o,colorPrimaryPressed:s,textColorPrimary:c,borderRadiusSquare:l}}};function oc(e){let{borderRadius:t,fontSizeMini:n,fontSizeTiny:r,fontSizeSmall:i,fontWeight:a,textColor2:o,cardColor:s,buttonColor2Hover:c}=e;return{activeColors:[`#9be9a8`,`#40c463`,`#30a14e`,`#216e39`],borderRadius:t,borderColor:s,textColor:o,mininumColor:c,fontWeight:a,loadingColorStart:`rgba(0, 0, 0, 0.06)`,loadingColorEnd:`rgba(0, 0, 0, 0.12)`,rectSizeSmall:`10px`,rectSizeMedium:`11px`,rectSizeLarge:`12px`,borderRadiusSmall:`2px`,borderRadiusMedium:`2px`,borderRadiusLarge:`2px`,xGapSmall:`2px`,xGapMedium:`3px`,xGapLarge:`3px`,yGapSmall:`2px`,yGapMedium:`3px`,yGapLarge:`3px`,fontSizeSmall:r,fontSizeMedium:n,fontSizeLarge:i}}I({name:`Heatmap`,common:L,self:oc});var sc={name:`Heatmap`,common:q,self(e){let t=oc(e);return Object.assign(Object.assign({},t),{activeColors:[`#0d4429`,`#006d32`,`#26a641`,`#39d353`],mininumColor:`rgba(255, 255, 255, 0.1)`,loadingColorStart:`rgba(255, 255, 255, 0.12)`,loadingColorEnd:`rgba(255, 255, 255, 0.18)`})}};function cc(e){let{primaryColor:t,baseColor:n}=e;return{color:t,iconColor:n}}var lc={name:`IconWrapper`,common:q,self:cc},uc={name:`Image`,common:q,peers:{Tooltip:Ra},self:e=>{let{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:`rgba(0, 0, 0, .35)`,toolbarBoxShadow:`none`,toolbarBorderRadius:`24px`}}},dc={extraFontSize:`12px`,width:`440px`},fc={name:`Transfer`,common:q,peers:{Checkbox:fa,Scrollbar:J,Input:X,Empty:mi,Button:Q},self(e){let{iconColorDisabled:t,iconColor:n,fontWeight:r,fontSizeLarge:i,fontSizeMedium:a,fontSizeSmall:o,heightLarge:s,heightMedium:c,heightSmall:l,borderRadius:u,inputColor:d,tableHeaderColor:f,textColor1:p,textColorDisabled:m,textColor2:h,hoverColor:g}=e;return Object.assign(Object.assign({},dc),{itemHeightSmall:l,itemHeightMedium:c,itemHeightLarge:s,fontSizeSmall:o,fontSizeMedium:a,fontSizeLarge:i,borderRadius:u,borderColor:`#0000`,listColor:d,headerColor:f,titleTextColor:p,titleTextColorDisabled:m,extraTextColor:h,filterDividerColor:`#0000`,itemTextColor:h,itemTextColorDisabled:m,itemColorPending:g,titleFontWeight:r,iconColor:n,iconColorDisabled:t})}};function pc(){return{}}var mc={name:`dark`,common:q,Alert:Ai,Anchor:Ii,AutoComplete:Ui,Avatar:Ki,AvatarGroup:Ji,BackTop:Xi,Badge:Zi,Breadcrumb:ea,Button:Q,ButtonGroup:Ko,Calendar:aa,Card:oa,Carousel:ca,Cascader:ma,Checkbox:fa,Code:ha,Collapse:_a,CollapseTransition:ya,ColorPicker:xa,DataTable:Ya,DatePicker:ao,Descriptions:co,Dialog:po,Divider:Fo,Drawer:Lo,Dropdown:Ia,DynamicInput:zo,DynamicTags:Ho,Element:Uo,Empty:mi,Ellipsis:Va,Equation:{name:`Equation`,common:q,self:()=>({})},Flex:Go,Form:Xo,GradientText:Zo,Heatmap:sc,Icon:Za,IconWrapper:lc,Image:uc,Input:X,InputNumber:Qo,InputOtp:es,LegacyTransfer:fc,Layout:ts,List:is,LoadingBar:_o,Log:as,Menu:ls,Mention:os,Message:Co,Modal:go,Notification:No,PageHeader:fs,Pagination:Ma,Popconfirm:hs,Popover:Si,Popselect:Ca,Progress:vs,QrCode:{name:`QrCode`,common:q,self:e=>({borderRadius:e.borderRadius})},Radio:Wa,Rate:ys,Result:Ss,Row:ns,Scrollbar:J,Select:Oa,Skeleton:{name:`Skeleton`,common:q,self(e){let{heightSmall:t,heightMedium:n,heightLarge:r,borderRadius:i}=e;return{color:`rgba(255, 255, 255, 0.12)`,colorEnd:`rgba(255, 255, 255, 0.18)`,borderRadius:i,heightSmall:t,heightMedium:n,heightLarge:r}}},Slider:ws,Space:Vo,Spin:Ds,Statistic:ks,Steps:Ms,Switch:Ps,Table:Ls,Tabs:Vs,Tag:wi,Thing:Us,TimePicker:to,Timeline:Gs,Tooltip:Ra,Transfer:qs,Tree:Ys,TreeSelect:Xs,Typography:ec,Upload:rc,Watermark:ic,Split:{name:`Split`,common:q},FloatButton:ac,FloatButtonGroup:{name:`FloatButtonGroup`,common:q,self(e){let{popoverColor:t,dividerColor:n,borderRadius:r}=e;return{color:t,buttonBorderColor:n,borderRadiusSquare:r,boxShadow:`0 2px 8px 0px rgba(0, 0, 0, .12)`}}},Marquee:{name:`Marquee`,common:q,self:pc}},hc=m({__name:`App`,setup(e){return(e,t)=>(T(),r(Ee(Sa),{theme:Ee(mc)},{default:re(()=>[f(Ee(Ao),null,{default:re(()=>[f(Ee(ge))]),_:1})]),_:1},8,[`theme`]))}}),gc=`modulepreload`,_c=function(e){return`/`+e},vc={},$=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,new URL(`../../../src/node/plugins/importAnalysisBuild.ts`,import.meta.url)).href}r=o(t.map(t=>{if(t=_c(t,n),t=s(t),t in vc)return;vc[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:gc,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},yc=Se({history:ne(`/`),routes:[{path:`/participation`,name:`participation`,component:()=>$(()=>import(`./ParticipationView-BSm9ZH0f.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]))},{path:`/tickets/check`,name:`ticket-check`,component:()=>$(()=>import(`./TicketScannerView-CTELQxSO.js`),__vite__mapDeps([18,1,2,3,4,5,6,7,8,9,19,20,21,22,14,10,11,12,13,15,16,17,23]))},{path:`/tickets/:token`,name:`ticket`,component:()=>$(()=>import(`./TicketView-BIpPaETb.js`),__vite__mapDeps([24,1,9,3,5,6,25,15,17,26,27,28]))},{path:`/`,name:`home`,component:()=>$(()=>import(`./HomeView-CwY9V2vM.js`),__vite__mapDeps([29,1,13,14,15,16,30]))},{path:`/login`,name:`login`,component:()=>$(()=>import(`./LoginView-C7kNhOvh.js`),__vite__mapDeps([31,1,3,32,2,4,5,6,7,8,33,11,34,21,20,9,35,36,37,19,14,10,12,13,15,16,38]))},{path:`/office`,name:`office`,component:()=>$(()=>import(`./OfficeView-Hndeqd3w.js`),__vite__mapDeps([39,1,2,3,4,5,6,7,8,40,33,11,9,41,19,20,21,22,14,13,15,16,42]))},{path:`/user-agreement`,name:`user-agreement`,component:()=>$(()=>import(`./UserAgreementView-d3yiTDGl.js`),__vite__mapDeps([43,1,44,3,4,36,7,22,6,14,15,45,46,47,13,16]))},{path:`/privacy-policy`,name:`privacy-policy`,component:()=>$(()=>import(`./PrivacyPolicyView-C4BPsXgv.js`),__vite__mapDeps([48,1,44,3,4,36,7,22,6,14,15,45,46,47,13,16]))},{path:`/consent`,name:`consent`,component:()=>$(()=>import(`./ConsentView-ihWgF1BE.js`),__vite__mapDeps([49,1,44,3,4,36,7,22,6,14,15,45,46,47,13,16]))},{path:`/games`,name:`games`,component:()=>$(()=>import(`./GamesView-Y7iWJsX5.js`),__vite__mapDeps([50,1,3,32,2,4,5,6,7,8,33,11,34,21,40,9,41,20,51,36,52,53,54,19,14,10,12,55,13,15,16,17,56]))},{path:`/screen`,name:`screen`,component:()=>$(()=>import(`./ScreenView-DjL9TWbI.js`),__vite__mapDeps([57,1,2,3,4,5,6,7,8,9,51,32,33,11,34,21,20,36,52,41,53,54,14,25,13,15,16,58,59,17,60]))},{path:`/games/:id/results`,name:`game-results`,component:()=>$(()=>import(`./GameResultsView-yqRvFASD.js`),__vite__mapDeps([61,1,9,3,5,6,14,55,4,11,12,13,15,16,62]))},{path:`/games/:id`,name:`game`,component:()=>$(()=>import(`./GameView-CLny06h6.js`),__vite__mapDeps([63,1,3,2,4,5,6,7,8,40,33,11,9,41,20,35,32,36,37,51,34,21,52,53,54,19,64,22,14,10,12,55,65,25,66,13,15,16,67,58,59,17,68]))},{path:`/team-story/:id`,name:`team-story`,component:()=>$(()=>import(`./TeamStoryView-DuxsuXaz.js`),__vite__mapDeps([69,1,9,3,5,6,70,2,4,7,8,40,33,11,41,20,71,32,52,36,53,21,37,19,64,54,14,10,12,66,15,58,26,27,72,22,55,65,25,45,46,59,73]))},{path:`/scenarios`,name:`scenarios`,component:()=>$(()=>import(`./ScenariosView-BY33aKCt.js`),__vite__mapDeps([74,1,2,3,4,5,6,7,8,40,33,11,9,41,71,32,20,52,36,53,21,37,19,54,14,55,12,66,13,15,16,67,75]))},{path:`/catalog`,name:`catalog`,component:()=>$(()=>import(`./CatalogView-Cht9pfXA.js`),__vite__mapDeps([76,1,54,3,4,5,6,14,65,20,13,15,16,77]))},{path:`/scenarios/:id/editor`,name:`scenario-editor`,component:()=>$(()=>import(`./ScenariosEditorView-CGEDi4to.js`),__vite__mapDeps([78,1,2,3,4,5,6,7,8,40,33,11,9,41,71,32,20,52,36,53,21,37,19,70,64,54,14,10,12,66,15,58,26,27,72,22,55,13,16,67,79]))},{path:`/scenarios/:id`,name:`scenario`,component:()=>$(()=>import(`./ScenarioView-DTRuwAMu.js`),__vite__mapDeps([80,1,54,3,4,5,6,14,65,20,13,15,16,81]))},{path:`/users`,name:`users`,component:()=>$(()=>import(`./UsersView-CBg-opwf.js`),__vite__mapDeps([82,1,3,2,4,5,6,7,8,40,33,11,9,41,53,19,20,21,54,14,10,12,55,13,15,16,83]))},{path:`/reviews`,name:`reviews`,component:()=>$(()=>import(`./ReviewsView-SsQRgG3N.js`),__vite__mapDeps([84,1,2,3,4,5,6,7,8,9,54,14,55,11,12,65,20,13,15,16,85]))}]}),bc=rr(`auth`,()=>{let e=j(null),t=j(null),n=j(null),r=j(!1),i=j(null),a=A(()=>!!e.value),o=A(()=>n.value?.username||``),s=A(()=>n.value?.roles||[]);function c(){let n=localStorage.getItem(`accessToken`),r=localStorage.getItem(`refreshToken`);n&&(e.value=n,t.value=r,u())}function l(){return e.value}async function u(){if(e.value)try{let e=await Ce(l).GetMe({});e.user&&(n.value=e.user)}catch(e){console.error(`Failed to fetch user:`,e),e instanceof Error&&e.message.includes(`401`)&&await g()}}async function d(n,a){r.value=!0,i.value=null;try{let r=await Ce(l).Login({email:n,password:a});return r.accessToken?(e.value=r.accessToken,t.value=r.refreshToken||null,localStorage.setItem(`accessToken`,r.accessToken),r.refreshToken&&localStorage.setItem(`refreshToken`,r.refreshToken),await u(),!0):!1}catch(e){return i.value=e instanceof Error?e.message:`Login failed`,!1}finally{r.value=!1}}async function f(){if(!t.value)return!1;try{let n=await Ce(l).Refresh({refreshToken:t.value});return n.accessToken?(e.value=n.accessToken,t.value=n.refreshToken||null,localStorage.setItem(`accessToken`,n.accessToken),n.refreshToken&&localStorage.setItem(`refreshToken`,n.refreshToken),!0):!1}catch{return!1}}async function p(e,t,n,a){r.value=!0,i.value=null;try{return await Ce(l).Signup({username:e,email:t,acceptTerms:n,acceptPrivacy:a}),!0}catch(e){return i.value=e instanceof Error?e.message:`Signup failed`,!1}finally{r.value=!1}}async function m(e){r.value=!0,i.value=null;try{return await Ce(l,()=>({"X-Password":e})).DeleteAccount({}),await g(),!0}catch(e){return i.value=e instanceof Error?e.message:`Account deletion failed`,!1}finally{r.value=!1}}async function h(e){r.value=!0,i.value=null;try{return await Ce(l).RefreshPassword({email:e}),!0}catch(e){return i.value=e instanceof Error?e.message:`Password reset failed`,!1}finally{r.value=!1}}async function g(){e.value=null,t.value=null,n.value=null,i.value=null,localStorage.removeItem(`accessToken`),localStorage.removeItem(`refreshToken`)}function _(e){return s.value.includes(e)}function v(e){return e.some(e=>s.value.includes(e))}return{accessToken:e,refreshToken:t,user:n,isLoading:r,error:i,isAuthenticated:a,username:o,userRoles:s,initFromStorage:c,getToken:l,login:d,signup:p,deleteAccount:m,refreshPassword:h,logout:g,fetchUser:u,refreshTokenAction:f,hasRole:_,hasAnyRole:v}}),xc=Cn(hc);xc.use(Wn()),bc().initFromStorage(),xc.use(yc),xc.mount(`#app`);export{nn as $,_i as A,Jr as B,Hi as C,Oi as D,ki as E,ti as F,dr as G,Gr as H,$r as I,sr as J,ur as K,Zr as L,oi as M,ai as N,Ci as O,ni as P,st as Q,Xr as R,Z as S,Ni as T,Wr as U,Kr as V,gr as W,ar as X,or as Y,ir as Z,eo as _,Bs as a,Sa as b,_s as c,Bo as d,mn as et,Ro as f,io as g,fo as h,$s as i,pi as j,xi as k,Yo as l,ho as m,yc as n,yn as nt,Ns as o,vo as p,cr as q,nc as r,_n as rt,Es as s,bc as t,Ct as tt,Wo as u,Ba as v,Bi as w,da as x,Da as y,Yr as z}; \ No newline at end of file diff --git a/frontend/dist/assets/keep-tsznRFn-.js b/frontend/dist/assets/keep-tsznRFn-.js deleted file mode 100644 index ec614c1..0000000 --- a/frontend/dist/assets/keep-tsznRFn-.js +++ /dev/null @@ -1 +0,0 @@ -import{G as e,I as t,N as n,ot as r,q as i,y as a,yt as o}from"./client-CT8bsOZT.js";import{d as s,f as c,u as l}from"./Card-BX9nnwGC.js";import{Z as u}from"./index-oex1uI7H.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=0;t--){let n=e.childNodes[t];if(f(n)&&(h(n)||m(n)))return!0}return!1}function h(e){if(!g(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function g(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute(`tabIndex`)!==null)return!0;if(e.getAttribute(`disabled`))return!1;switch(e.nodeName){case`A`:return!!e.href&&e.rel!==`ignore`;case`INPUT`:return e.type!==`hidden`&&e.type!==`file`;case`SELECT`:case`TEXTAREA`:return!0;default:return!1}}var _=[],v=n({name:`FocusTrap`,props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:[String,Function],finalFocusTo:[String,Function],returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(t){let n=u(),a=o(null),f=o(null),h=!1,g=!1,v=typeof document>`u`?null:document.activeElement;function y(){return _[_.length-1]===n}function b(e){var n;e.code===`Escape`&&y()&&((n=t.onEsc)==null||n.call(t,e))}i(()=>{r(()=>t.active,e=>{e?(C(),s(`keydown`,document,b)):(l(`keydown`,document,b),h&&w())},{immediate:!0})}),e(()=>{l(`keydown`,document,b),h&&w()});function x(e){if(!g&&y()){let t=S();if(t===null||t.contains(c(e)))return;T(`first`)}}function S(){let e=a.value;if(e===null)return null;let t=e;for(;t=t.nextSibling,!(t===null||t instanceof Element&&t.tagName===`DIV`););return t}function C(){var e;if(!t.disabled){if(_.push(n),t.autoFocus){let{initialFocusTo:n}=t;n===void 0?T(`first`):(e=d(n))==null||e.focus({preventScroll:!0})}h=!0,document.addEventListener(`focus`,x,!0)}}function w(){var e;if(t.disabled||(document.removeEventListener(`focus`,x,!0),_=_.filter(e=>e!==n),y()))return;let{finalFocusTo:r}=t;r===void 0?t.returnFocusOnDeactivated&&v instanceof HTMLElement&&(g=!0,v.focus({preventScroll:!0}),g=!1):(e=d(r))==null||e.focus({preventScroll:!0})}function T(e){if(y()&&t.active){let t=a.value,n=f.value;if(t!==null&&n!==null){let r=S();if(r==null||r===n){g=!0,t.focus({preventScroll:!0}),g=!1;return}g=!0;let i=e===`first`?p(r):m(r);g=!1,i||(g=!0,t.focus({preventScroll:!0}),g=!1)}}}function E(e){if(g)return;let t=S();t!==null&&(e.relatedTarget!==null&&t.contains(e.relatedTarget)?T(`last`):T(`first`))}function D(e){g||(e.relatedTarget!==null&&e.relatedTarget===a.value?T(`last`):T(`first`))}return{focusableStartRef:a,focusableEndRef:f,focusableStyle:`position: absolute; height: 0; width: 0;`,handleStartFocus:E,handleEndFocus:D}},render(){let{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();let{active:n,focusableStyle:r}=this;return t(a,null,[t(`div`,{"aria-hidden":`true`,tabindex:n?`0`:`-1`,ref:`focusableStartRef`,style:r,onFocus:this.handleStartFocus}),e(),t(`div`,{"aria-hidden":`true`,style:r,ref:`focusableEndRef`,tabindex:n?`0`:`-1`,onFocus:this.handleEndFocus})])}}),y=new WeakSet;function b(e){y.add(e)}function x(e){return!y.has(e)}function S(e,t=[],n){let r={};return t.forEach(t=>{r[t]=e[t]}),Object.assign(r,n)}export{v as i,x as n,b as r,S as t}; \ No newline at end of file diff --git a/frontend/dist/assets/text-CQ4PuMIN.js b/frontend/dist/assets/text-CQ4PuMIN.js deleted file mode 100644 index 16a3deb..0000000 --- a/frontend/dist/assets/text-CQ4PuMIN.js +++ /dev/null @@ -1,21 +0,0 @@ -import{I as e,N as t,w as n}from"./client-CT8bsOZT.js";import{G as r,H as i,M as a,N as o,q as s,r as c}from"./light-DhgSQSdG.js";import{t as l}from"./use-compitable-DR1_4TS5.js";import{i as u}from"./index-oex1uI7H.js";var d=i(`text`,` - transition: color .3s var(--n-bezier); - color: var(--n-text-color); -`,[r(`strong`,` - font-weight: var(--n-font-weight-strong); - `),r(`italic`,{fontStyle:`italic`}),r(`underline`,{textDecoration:`underline`}),r(`code`,` - line-height: 1.4; - display: inline-block; - font-family: var(--n-font-famliy-mono); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier), - background-color .3s var(--n-bezier); - box-sizing: border-box; - padding: .05em .35em 0 .35em; - border-radius: var(--n-code-border-radius); - font-size: .9em; - color: var(--n-code-text-color); - background-color: var(--n-code-color); - border: var(--n-code-border); - `)]),f=t({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}=o(e),i=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:a,fontFamilyMono:o,cubicBezierEaseInOut:c},self:{codeTextColor:l,codeBorderRadius:u,codeColor:d,codeBorder:f,[r]:p}}=i.value;return{"--n-bezier":c,"--n-text-color":p,"--n-font-weight-strong":a,"--n-font-famliy-mono":o,"--n-code-border-radius":u,"--n-code-text-color":l,"--n-code-color":d,"--n-code-border":f}}),p=r?a(`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 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}; \ No newline at end of file diff --git a/frontend/dist/assets/utils-COJuPdUX.js b/frontend/dist/assets/utils-COJuPdUX.js deleted file mode 100644 index a9c7e5e..0000000 --- a/frontend/dist/assets/utils-COJuPdUX.js +++ /dev/null @@ -1,131 +0,0 @@ -import{G as e,H as t,I as n,K as r,N as i,R as a,St as o,U as s,V as c,Z as l,ot as u,q as d,w as f,yt as p}from"./client-CT8bsOZT.js";import{F as m,G as h,H as g,K as _,M as v,N as y,V as b,W as x,o as S,q as C,r as w}from"./light-DhgSQSdG.js";import{c as T,n as E,r as D,s as O,u as k}from"./Follower-Bm7xH84Z.js";import{c as A,i as j,l as M}from"./Card-BX9nnwGC.js";import{i as N,r as P,t as F}from"./css-DEmdllcC.js";import{t as ee}from"./fade-in-scale-up.cssr-DOaveAHn.js";import{a as I,r as L}from"./resolve-slot-BEScaVot.js";import{r as R}from"./Suffix-BVApm8eE.js";import{A as te,M as ne,Q as re,U as ie,X as z,j as ae,q as B}from"./index-oex1uI7H.js";function V(e,t){let{target:n}=e;for(;n;){if(n.dataset&&n.dataset[t]!==void 0)return!0;n=n.parentElement}return!1}function H(e){return e&-e}var U=class{constructor(e,t){this.l=e,this.min=t;let n=Array(e+1);for(let t=0;tr)throw Error("[FinweckTree.sum]: `i` is larger than length.");let i=e*n;for(;e>0;)i+=t[e],e-=H(e);return i}getBound(e){let t=0,n=this.l;for(;n>t;){let r=Math.floor((t+n)/2),i=this.sum(r);if(i>e){n=r;continue}else if(i`u`?!1:(W===void 0&&(W=`matchMedia`in window?window.matchMedia(`(pointer:coarse)`).matches:!1),W)}var K;function q(){return typeof document>`u`?1:(K===void 0&&(K=`chrome`in window?window.devicePixelRatio:1),K)}var J=`VVirtualListXScroll`;function Y({columnsRef:e,renderColRef:t,renderItemWithColsRef:n}){let r=p(0),i=p(0),a=f(()=>{let t=e.value;if(t.length===0)return null;let n=new U(t.length,0);return t.forEach((e,t)=>{n.add(t,e.width)}),n});return l(J,{startIndexRef:z(()=>{let e=a.value;return e===null?0:Math.max(e.getBound(i.value)-1,0)}),endIndexRef:z(()=>{let t=a.value;return t===null?0:Math.min(t.getBound(i.value+r.value)+1,e.value.length-1)}),columnsRef:e,renderColRef:t,renderItemWithColsRef:n,getLeft:e=>{let t=a.value;return t===null?0:t.sum(e)}}),{listWidthRef:r,scrollLeftRef:i}}var X=i({name:`VirtualListRow`,props:{index:{type:Number,required:!0},item:{type:Object,required:!0}},setup(){let{startIndexRef:e,endIndexRef:t,columnsRef:n,getLeft:r,renderColRef:i,renderItemWithColsRef:o}=a(J);return{startIndex:e,endIndex:t,columns:n,renderCol:i,renderItemWithCols:o,getLeft:r}},render(){let{startIndex:e,endIndex:t,columns:n,renderCol:r,renderItemWithCols:i,getLeft:a,item:o}=this;if(i!=null)return i({itemIndex:this.index,startColIndex:e,endColIndex:t,allColumns:n,item:o,getLeft:a});if(r!=null){let i=[];for(let s=e;s<=t;++s){let e=n[s];i.push(r({column:e,left:a(s),item:o}))}return i}return null}}),oe=E(`.v-vl`,{maxHeight:`inherit`,height:`100%`,overflow:`auto`,minWidth:`1px`},[E(`&:not(.v-vl--show-scrollbar)`,{scrollbarWidth:`none`},[E(`&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb`,{width:0,height:0,display:`none`})])]),se=i({name:`VirtualList`,inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},renderCol:Function,renderItemWithCols:Function,items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:`div`},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:`key`},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){let t=m();oe.mount({id:`vueuc/virtual-list`,head:!0,anchorMetaName:D,ssr:t}),d(()=>{let{defaultScrollIndex:t,defaultScrollKey:n}=e;t==null?n!=null&&C({key:n}):C({index:t})});let n=!1,i=!1;s(()=>{if(n=!1,!i){i=!0;return}C({top:b.value,left:l.value})}),r(()=>{n=!0,i||=!0});let a=z(()=>{if(e.renderCol==null&&e.renderItemWithCols==null||e.columns.length===0)return;let t=0;return e.columns.forEach(e=>{t+=e.width}),t}),c=f(()=>{let t=new Map,{keyField:n}=e;return e.items.forEach((e,r)=>{t.set(e[n],r)}),t}),{scrollLeftRef:l,listWidthRef:u}=Y({columnsRef:o(e,`columns`),renderColRef:o(e,`renderCol`),renderItemWithColsRef:o(e,`renderItemWithCols`)}),h=p(null),g=p(void 0),_=new Map,v=f(()=>{let{items:t,itemSize:n,keyField:r}=e,i=new U(t.length,n);return t.forEach((e,t)=>{let n=e[r],a=_.get(n);a!==void 0&&i.add(t,a)}),i}),y=p(0),b=p(0),x=z(()=>Math.max(v.value.getBound(b.value-F(e.paddingTop))-1,0)),S=f(()=>{let{value:t}=g;if(t===void 0)return[];let{items:n,itemSize:r}=e,i=x.value,a=Math.min(i+Math.ceil(t/r+1),n.length-1),o=[];for(let e=i;e<=a;++e)o.push(n[e]);return o}),C=(e,t)=>{if(typeof e==`number`){O(e,t,`auto`);return}let{left:n,top:r,index:i,key:a,position:o,behavior:s,debounce:l=!0}=e;if(n!==void 0||r!==void 0)O(n,r,s);else if(i!==void 0)E(i,s,l);else if(a!==void 0){let e=c.value.get(a);e!==void 0&&E(e,s,l)}else o===`bottom`?O(0,2**53-1,s):o===`top`&&O(0,0,s)},w,T=null;function E(t,n,r){let{value:i}=v,a=i.sum(t)+F(e.paddingTop);if(!r)h.value.scrollTo({left:0,top:a,behavior:n});else{w=t,T!==null&&window.clearTimeout(T),T=window.setTimeout(()=>{w=void 0,T=null},16);let{scrollTop:e,offsetHeight:r}=h.value;if(a>e){let o=i.get(t);a+o<=e+r||h.value.scrollTo({left:0,top:a+o-r,behavior:n})}else h.value.scrollTo({left:0,top:a,behavior:n})}}function O(e,t,n){h.value.scrollTo({left:e,top:t,behavior:n})}function A(t,r){if(n||e.ignoreItemResize||R(r.target))return;let{value:i}=v,a=c.value.get(t),o=i.get(a),s=r.borderBoxSize?.[0]?.blockSize??r.contentRect.height;if(s===o)return;s-e.itemSize===0?_.delete(t):_.set(t,s-e.itemSize);let l=s-o;if(l===0)return;i.add(a,l);let u=h.value;if(u!=null){if(w===void 0){let e=i.sum(a);u.scrollTop>e&&u.scrollBy(0,l)}else(au.scrollTop+u.offsetHeight)&&u.scrollBy(0,l);L()}y.value++}let j=!G(),M=!1;function P(t){var n;(n=e.onScroll)==null||n.call(e,t),(!j||!M)&&L()}function ee(t){var n;if((n=e.onWheel)==null||n.call(e,t),j){let e=h.value;if(e!=null){if(t.deltaX===0&&(e.scrollTop===0&&t.deltaY<=0||e.scrollTop+e.offsetHeight>=e.scrollHeight&&t.deltaY>=0))return;t.preventDefault(),e.scrollTop+=t.deltaY/q(),e.scrollLeft+=t.deltaX/q(),L(),M=!0,k(()=>{M=!1})}}}function I(t){if(n||R(t.target))return;if(e.renderCol==null&&e.renderItemWithCols==null){if(t.contentRect.height===g.value)return}else if(t.contentRect.height===g.value&&t.contentRect.width===u.value)return;g.value=t.contentRect.height,u.value=t.contentRect.width;let{onResize:r}=e;r!==void 0&&r(t)}function L(){let{value:e}=h;e!=null&&(b.value=e.scrollTop,l.value=e.scrollLeft)}function R(e){let t=e;for(;t!==null;){if(t.style.display===`none`)return!0;t=t.parentElement}return!1}return{listHeight:g,listStyle:{overflow:`auto`},keyToIndex:c,itemsStyle:f(()=>{let{itemResizable:t}=e,n=N(v.value.sum());return y.value,[e.itemsStyle,{boxSizing:`content-box`,width:N(a.value),height:t?``:n,minHeight:t?n:``,paddingTop:N(e.paddingTop),paddingBottom:N(e.paddingBottom)}]}),visibleItemsStyle:f(()=>(y.value,{transform:`translateY(${N(v.value.sum(x.value))})`})),viewportItems:S,listElRef:h,itemsElRef:p(null),scrollTo:C,handleListResize:I,handleListScroll:P,handleListWheel:ee,handleItemResize:A}},render(){let{itemResizable:e,keyField:t,keyToIndex:r,visibleItemsTag:i}=this;return n(A,{onResize:this.handleListResize},{default:()=>{var a;return n(`div`,c(this.$attrs,{class:[`v-vl`,this.showScrollbar&&`v-vl--show-scrollbar`],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:`listElRef`}),[this.items.length===0?(a=this.$slots).empty?.call(a):n(`div`,{ref:`itemsElRef`,class:`v-vl-items`,style:this.itemsStyle},[n(i,Object.assign({class:`v-vl-visible-items`,style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>{let{renderCol:i,renderItemWithCols:a}=this;return this.viewportItems.map(o=>{let s=o[t],c=r.get(s),l=i==null?void 0:n(X,{index:c,item:o}),u=a==null?void 0:n(X,{index:c,item:o}),d=this.$slots.default({item:o,renderedCols:l,renderedItemWithCols:u,index:c})[0];return e?n(A,{key:s,onResize:e=>this.handleItemResize(s,e)},{default:()=>d}):(d.key=s,d)})}})])])}})}});function ce(t,n){n&&(d(()=>{let{value:e}=t;e&&M.registerHandler(e,n)}),u(t,(e,t)=>{t&&M.unregisterHandler(t)},{deep:!1}),e(()=>{let{value:e}=t;e&&M.unregisterHandler(e)}))}function Z(e){let t=e.filter(e=>e!==void 0);if(t.length!==0)return t.length===1?t[0]:t=>{e.forEach(e=>{e&&e(t)})}}var le=i({name:`Checkmark`,render(){return n(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 16 16`},n(`g`,{fill:`none`},n(`path`,{d:`M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z`,fill:`currentColor`})))}}),ue=i({name:`Empty`,render(){return n(`svg`,{viewBox:`0 0 28 28`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},n(`path`,{d:`M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z`,fill:`currentColor`}),n(`path`,{d:`M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z`,fill:`currentColor`}))}}),de=i({props:{onFocus:Function,onBlur:Function},setup(e){return()=>n(`div`,{style:`width: 0; height: 0`,tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}});function fe(e){return Array.isArray(e)?e:[e]}var pe={STOP:`STOP`};function me(e,t){let n=t(e);e.children!==void 0&&n!==pe.STOP&&e.children.forEach(e=>me(e,t))}function he(e,t={}){let{preserveGroup:n=!1}=t,r=[],i=n?e=>{e.isLeaf||(r.push(e.key),a(e.children))}:e=>{e.isLeaf||(e.isGroup||r.push(e.key),a(e.children))};function a(e){e.forEach(i)}return a(e),r}function ge(e,t){let{isLeaf:n}=e;return n===void 0?!t(e):n}function _e(e){return e.children}function ve(e){return e.key}function ye(){return!1}function be(e,t){let{isLeaf:n}=e;return!(n===!1&&!Array.isArray(t(e)))}function xe(e){return e.disabled===!0}function Se(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function Ce(e){return e==null?[]:Array.isArray(e)?e:e.checkedKeys??[]}function we(e){return e==null||Array.isArray(e)?[]:e.indeterminateKeys??[]}function Te(e,t){let n=new Set(e);return t.forEach(e=>{n.has(e)||n.add(e)}),Array.from(n)}function Ee(e,t){let n=new Set(e);return t.forEach(e=>{n.has(e)&&n.delete(e)}),Array.from(n)}function De(e){return e?.type===`group`}function Oe(e){let t=new Map;return e.forEach((e,n)=>{t.set(e.key,n)}),e=>t.get(e)??null}var ke=class extends Error{constructor(){super(),this.message=`SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded.`}};function Ae(e,t,n,r){return Q(t.concat(e),n,r,!1)}function je(e,t){let n=new Set;return e.forEach(e=>{let r=t.treeNodeMap.get(e);if(r!==void 0){let e=r.parent;for(;e!==null&&!(e.disabled||n.has(e.key));)n.add(e.key),e=e.parent}}),n}function Me(e,t,n,r){let i=Q(t,n,r,!1),a=Q(e,n,r,!0),o=je(e,n),s=[];return i.forEach(e=>{(a.has(e)||o.has(e))&&s.push(e)}),s.forEach(e=>i.delete(e)),i}function Ne(e,t){let{checkedKeys:n,keysToCheck:r,keysToUncheck:i,indeterminateKeys:a,cascade:o,leafOnly:s,checkStrategy:c,allowNotLoaded:l}=e;if(!o)return r===void 0?i===void 0?{checkedKeys:Array.from(n),indeterminateKeys:Array.from(a)}:{checkedKeys:Ee(n,i),indeterminateKeys:Array.from(a)}:{checkedKeys:Te(n,r),indeterminateKeys:Array.from(a)};let{levelTreeNodeMap:u}=t,d;d=i===void 0?r===void 0?Q(n,t,l,!1):Ae(r,n,t,l):Me(i,n,t,l);let f=c===`parent`,p=c===`child`||s,m=d,h=new Set,g=Math.max.apply(null,Array.from(u.keys()));for(let e=g;e>=0;--e){let t=e===0,n=u.get(e);for(let e of n){if(e.isLeaf)continue;let{key:n,shallowLoaded:r}=e;if(p&&r&&e.children.forEach(e=>{!e.disabled&&!e.isLeaf&&e.shallowLoaded&&m.has(e.key)&&m.delete(e.key)}),e.disabled||!r)continue;let i=!0,a=!1,o=!0;for(let t of e.children){let e=t.key;if(!t.disabled){if(o&&=!1,m.has(e))a=!0;else if(h.has(e)){a=!0,i=!1;break}else if(i=!1,a)break}}i&&!o?(f&&e.children.forEach(e=>{!e.disabled&&m.has(e.key)&&m.delete(e.key)}),m.add(n)):a&&h.add(n),t&&p&&m.has(n)&&m.delete(n)}}return{checkedKeys:Array.from(m),indeterminateKeys:Array.from(h)}}function Q(e,t,n,r){let{treeNodeMap:i,getChildren:a}=t,o=new Set,s=new Set(e);return e.forEach(e=>{let t=i.get(e);t!==void 0&&me(t,e=>{if(e.disabled)return pe.STOP;let{key:t}=e;if(!o.has(t)&&(o.add(t),s.add(t),Se(e.rawNode,a))){if(r)return pe.STOP;if(!n)throw new ke}})}),s}function Pe(e,{includeGroup:t=!1,includeSelf:n=!0},r){let i=r.treeNodeMap,a=e==null?null:i.get(e)??null,o={keyPath:[],treeNodePath:[],treeNode:a};if(a?.ignored)return o.treeNode=null,o;for(;a;)!a.ignored&&(t||!a.isGroup)&&o.treeNodePath.push(a),a=a.parent;return o.treeNodePath.reverse(),n||o.treeNodePath.pop(),o.keyPath=o.treeNodePath.map(e=>e.key),o}function Fe(e){if(e.length===0)return null;let t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function Ie(e,t){let n=e.siblings,r=n.length,{index:i}=e;return t?n[(i+1)%r]:i===n.length-1?null:n[i+1]}function Le(e,t,{loop:n=!1,includeDisabled:r=!1}={}){let i=t===`prev`?Re:Ie,a={reverse:t===`prev`},o=!1,s=null;function c(t){if(t!==null){if(t===e){if(!o)o=!0;else if(!e.disabled&&!e.isGroup){s=e;return}}else if((!t.disabled||r)&&!t.ignored&&!t.isGroup){s=t;return}if(t.isGroup){let e=Be(t,a);e===null?c(i(t,n)):s=e}else{let e=i(t,!1);if(e!==null)c(e);else{let e=ze(t);e?.isGroup?c(i(e,n)):n&&c(i(t,!0))}}}}return c(e),s}function Re(e,t){let n=e.siblings,r=n.length,{index:i}=e;return t?n[(i-1+r)%r]:i===0?null:n[i-1]}function ze(e){return e.parent}function Be(e,t={}){let{reverse:n=!1}=t,{children:r}=e;if(r){let{length:e}=r,i=n?e-1:0,a=n?-1:e,o=n?-1:1;for(let e=i;e!==a;e+=o){let n=r[e];if(!n.disabled&&!n.ignored)if(n.isGroup){let e=Be(n,t);if(e!==null)return e}else return n}}return null}var Ve={getChild(){return this.ignored?null:Be(this)},getParent(){let{parent:e}=this;return e?.isGroup?e.getParent():e},getNext(e={}){return Le(this,`next`,e)},getPrev(e={}){return Le(this,`prev`,e)}};function He(e,t){let n=t?new Set(t):void 0,r=[];function i(e){e.forEach(e=>{r.push(e),!(e.isLeaf||!e.children||e.ignored)&&(e.isGroup||n===void 0||n.has(e.key))&&i(e.children)})}return i(e),r}function Ue(e,t){let n=e.key;for(;t;){if(t.key===n)return!0;t=t.parent}return!1}function We(e,t,n,r,i,a=null,o=0){let s=[];return e.forEach((c,l)=>{var u;let d=Object.create(r);if(d.rawNode=c,d.siblings=s,d.level=o,d.index=l,d.isFirstChild=l===0,d.isLastChild=l+1===e.length,d.parent=a,!d.ignored){let e=i(c);Array.isArray(e)&&(d.children=We(e,t,n,r,i,d,o+1))}s.push(d),t.set(d.key,d),n.has(o)||n.set(o,[]),(u=n.get(o))==null||u.push(d)}),s}function Ge(e,t={}){let n=new Map,r=new Map,{getDisabled:i=xe,getIgnored:a=ye,getIsGroup:o=De,getKey:s=ve}=t,c=t.getChildren??_e,l=t.ignoreEmptyChildren?e=>{let t=c(e);return Array.isArray(t)?t.length?t:null:t}:c,u=We(e,n,r,Object.assign({get key(){return s(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return o(this.rawNode)},get isLeaf(){return ge(this.rawNode,l)},get shallowLoaded(){return be(this.rawNode,l)},get ignored(){return a(this.rawNode)},contains(e){return Ue(this,e)}},Ve),l);function d(e){if(e==null)return null;let t=n.get(e);return t&&!t.isGroup&&!t.ignored?t:null}function f(e){if(e==null)return null;let t=n.get(e);return t&&!t.ignored?t:null}function p(e,t){let n=f(e);return n?n.getPrev(t):null}function m(e,t){let n=f(e);return n?n.getNext(t):null}function h(e){let t=f(e);return t?t.getParent():null}function g(e){let t=f(e);return t?t.getChild():null}let _={treeNodes:u,treeNodeMap:n,levelTreeNodeMap:r,maxLevel:Math.max(...r.keys()),getChildren:l,getFlattenedNodes(e){return He(u,e)},getNode:d,getPrev:p,getNext:m,getParent:h,getChild:g,getFirstAvailableNode(){return Fe(u)},getPath(e,t={}){return Pe(e,t,_)},getCheckedKeys(e,t={}){let{cascade:n=!0,leafOnly:r=!1,checkStrategy:i=`all`,allowNotLoaded:a=!1}=t;return Ne({checkedKeys:Ce(e),indeterminateKeys:we(e),cascade:n,leafOnly:r,checkStrategy:i,allowNotLoaded:a},_)},check(e,t,n={}){let{cascade:r=!0,leafOnly:i=!1,checkStrategy:a=`all`,allowNotLoaded:o=!1}=n;return Ne({checkedKeys:Ce(t),indeterminateKeys:we(t),keysToCheck:e==null?[]:fe(e),cascade:r,leafOnly:i,checkStrategy:a,allowNotLoaded:o},_)},uncheck(e,t,n={}){let{cascade:r=!0,leafOnly:i=!1,checkStrategy:a=`all`,allowNotLoaded:o=!1}=n;return Ne({checkedKeys:Ce(t),indeterminateKeys:we(t),keysToUncheck:e==null?[]:fe(e),cascade:r,leafOnly:i,checkStrategy:a,allowNotLoaded:o},_)},getNonLeafKeys(e={}){return he(u,e)}};return _}var Ke=g(`empty`,` - display: flex; - flex-direction: column; - align-items: center; - font-size: var(--n-font-size); -`,[x(`icon`,` - width: var(--n-icon-size); - height: var(--n-icon-size); - font-size: var(--n-icon-size); - line-height: var(--n-icon-size); - color: var(--n-icon-color); - transition: - color .3s var(--n-bezier); - `,[b(`+`,[x(`description`,` - margin-top: 8px; - `)])]),x(`description`,` - transition: color .3s var(--n-bezier); - color: var(--n-text-color); - `),x(`extra`,` - text-align: center; - transition: color .3s var(--n-bezier); - margin-top: 12px; - color: var(--n-extra-text-color); - `)]),qe=i({name:`Empty`,props:Object.assign(Object.assign({},w.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:`medium`},renderIcon:Function}),slots:Object,setup(e){let{mergedClsPrefixRef:t,inlineThemeDisabled:r,mergedComponentPropsRef:i}=y(e),a=w(`Empty`,`-empty`,Ke,ae,e,t),{localeRef:o}=R(`Empty`),s=f(()=>e.description??i?.value?.Empty?.description),c=f(()=>i?.value?.Empty?.renderIcon||(()=>n(ue,null))),l=f(()=>{let{size:t}=e,{common:{cubicBezierEaseInOut:n},self:{[C(`iconSize`,t)]:r,[C(`fontSize`,t)]:i,textColor:o,iconColor:s,extraTextColor:c}}=a.value;return{"--n-icon-size":r,"--n-font-size":i,"--n-bezier":n,"--n-text-color":o,"--n-icon-color":s,"--n-extra-text-color":c}}),u=r?v(`empty`,f(()=>{let t=``,{size:n}=e;return t+=n[0],t}),l,e):void 0;return{mergedClsPrefix:t,mergedRenderIcon:c,localizedDescription:f(()=>s.value||o.value.description),cssVars:r?void 0:l,themeClass:u?.themeClass,onRender:u?.onRender}},render(){let{$slots:e,mergedClsPrefix:t,onRender:r}=this;return r?.(),n(`div`,{class:[`${t}-empty`,this.themeClass],style:this.cssVars},this.showIcon?n(`div`,{class:`${t}-empty__icon`},e.icon?e.icon():n(ie,{clsPrefix:t},{default:this.mergedRenderIcon})):null,this.showDescription?n(`div`,{class:`${t}-empty__description`},e.default?e.default():this.localizedDescription):null,e.extra?n(`div`,{class:`${t}-empty__extra`},e.extra()):null)}}),Je=i({name:`NBaseSelectGroupHeader`,props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){let{renderLabelRef:e,renderOptionRef:t,labelFieldRef:n,nodePropsRef:r}=a(T);return{labelField:n,nodeProps:r,renderLabel:e,renderOption:t}},render(){let{clsPrefix:e,renderLabel:t,renderOption:r,nodeProps:i,tmNode:{rawNode:a}}=this,o=i?.(a),s=t?t(a,!1):B(a[this.labelField],a,!1),c=n(`div`,Object.assign({},o,{class:[`${e}-base-select-group-header`,o?.class]}),s);return a.render?a.render({node:c,option:a}):r?r({node:c,option:a,selected:!1}):c}});function Ye(e,t){return n(re,{name:`fade-in-scale-up-transition`},{default:()=>e?n(ie,{clsPrefix:t,class:`${t}-base-select-option__check`},{default:()=>n(le)}):null})}var Xe=i({name:`NBaseSelectOption`,props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){let{valueRef:t,pendingTmNodeRef:n,multipleRef:r,valueSetRef:i,renderLabelRef:o,renderOptionRef:s,labelFieldRef:c,valueFieldRef:l,showCheckmarkRef:u,nodePropsRef:d,handleOptionClick:f,handleOptionMouseEnter:p}=a(T),m=z(()=>{let{value:t}=n;return t?e.tmNode.key===t.key:!1});function h(t){let{tmNode:n}=e;n.disabled||f(t,n)}function g(t){let{tmNode:n}=e;n.disabled||p(t,n)}function _(t){let{tmNode:n}=e,{value:r}=m;n.disabled||r||p(t,n)}return{multiple:r,isGrouped:z(()=>{let{tmNode:t}=e,{parent:n}=t;return n&&n.rawNode.type===`group`}),showCheckmark:u,nodeProps:d,isPending:m,isSelected:z(()=>{let{value:n}=t,{value:a}=r;if(n===null)return!1;let o=e.tmNode.rawNode[l.value];if(a){let{value:e}=i;return e.has(o)}else return n===o}),labelField:c,renderLabel:o,renderOption:s,handleMouseMove:_,handleMouseEnter:g,handleClick:h}},render(){let{clsPrefix:e,tmNode:{rawNode:t},isSelected:r,isPending:i,isGrouped:a,showCheckmark:o,nodeProps:s,renderOption:c,renderLabel:l,handleClick:u,handleMouseEnter:d,handleMouseMove:f}=this,p=Ye(r,e),m=l?[l(t,r),o&&p]:[B(t[this.labelField],t,r),o&&p],h=s?.(t),g=n(`div`,Object.assign({},h,{class:[`${e}-base-select-option`,t.class,h?.class,{[`${e}-base-select-option--disabled`]:t.disabled,[`${e}-base-select-option--selected`]:r,[`${e}-base-select-option--grouped`]:a,[`${e}-base-select-option--pending`]:i,[`${e}-base-select-option--show-checkmark`]:o}],style:[h?.style||``,t.style||``],onClick:Z([u,h?.onClick]),onMouseenter:Z([d,h?.onMouseenter]),onMousemove:Z([f,h?.onMousemove])}),n(`div`,{class:`${e}-base-select-option__content`},m));return t.render?t.render({node:g,option:t,selected:r}):c?c({node:g,option:t,selected:r}):g}}),Ze=g(`base-select-menu`,` - line-height: 1.5; - outline: none; - z-index: 0; - position: relative; - border-radius: var(--n-border-radius); - transition: - background-color .3s var(--n-bezier), - box-shadow .3s var(--n-bezier); - background-color: var(--n-color); -`,[g(`scrollbar`,` - max-height: var(--n-height); - `),g(`virtual-list`,` - max-height: var(--n-height); - `),g(`base-select-option`,` - min-height: var(--n-option-height); - font-size: var(--n-option-font-size); - display: flex; - align-items: center; - `,[x(`content`,` - z-index: 1; - white-space: nowrap; - text-overflow: ellipsis; - overflow: hidden; - `)]),g(`base-select-group-header`,` - min-height: var(--n-option-height); - font-size: .93em; - display: flex; - align-items: center; - `),g(`base-select-menu-option-wrapper`,` - position: relative; - width: 100%; - `),x(`loading, empty`,` - display: flex; - padding: 12px 32px; - flex: 1; - justify-content: center; - `),x(`loading`,` - color: var(--n-loading-color); - font-size: var(--n-loading-size); - `),x(`header`,` - padding: 8px var(--n-option-padding-left); - font-size: var(--n-option-font-size); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - border-bottom: 1px solid var(--n-action-divider-color); - color: var(--n-action-text-color); - `),x(`action`,` - padding: 8px var(--n-option-padding-left); - font-size: var(--n-option-font-size); - transition: - color .3s var(--n-bezier), - border-color .3s var(--n-bezier); - border-top: 1px solid var(--n-action-divider-color); - color: var(--n-action-text-color); - `),g(`base-select-group-header`,` - position: relative; - cursor: default; - padding: var(--n-option-padding); - color: var(--n-group-header-text-color); - `),g(`base-select-option`,` - cursor: pointer; - position: relative; - padding: var(--n-option-padding); - transition: - color .3s var(--n-bezier), - opacity .3s var(--n-bezier); - box-sizing: border-box; - color: var(--n-option-text-color); - opacity: 1; - `,[h(`show-checkmark`,` - padding-right: calc(var(--n-option-padding-right) + 20px); - `),b(`&::before`,` - content: ""; - position: absolute; - left: 4px; - right: 4px; - top: 0; - bottom: 0; - border-radius: var(--n-border-radius); - transition: background-color .3s var(--n-bezier); - `),b(`&:active`,` - color: var(--n-option-text-color-pressed); - `),h(`grouped`,` - padding-left: calc(var(--n-option-padding-left) * 1.5); - `),h(`pending`,[b(`&::before`,` - background-color: var(--n-option-color-pending); - `)]),h(`selected`,` - color: var(--n-option-text-color-active); - `,[b(`&::before`,` - background-color: var(--n-option-color-active); - `),h(`pending`,[b(`&::before`,` - background-color: var(--n-option-color-active-pending); - `)])]),h(`disabled`,` - cursor: not-allowed; - `,[_(`selected`,` - color: var(--n-option-text-color-disabled); - `),h(`selected`,` - opacity: var(--n-option-opacity-disabled); - `)]),x(`check`,` - font-size: 16px; - position: absolute; - right: calc(var(--n-option-padding-right) - 4px); - top: calc(50% - 7px); - color: var(--n-option-check-color); - transition: color .3s var(--n-bezier); - `,[ee({enterScale:`0.5`})])])]),Qe=i({name:`InternalSelectMenu`,props:Object.assign(Object.assign({},w.props),{clsPrefix:{type:String,required:!0},scrollable:{type:Boolean,default:!0},treeMate:{type:Object,required:!0},multiple:Boolean,size:{type:String,default:`medium`},value:{type:[String,Number,Array],default:null},autoPending:Boolean,virtualScroll:{type:Boolean,default:!0},show:{type:Boolean,default:!0},labelField:{type:String,default:`label`},valueField:{type:String,default:`value`},loading:Boolean,focusable:Boolean,renderLabel:Function,renderOption:Function,nodeProps:Function,showCheckmark:{type:Boolean,default:!0},onMousedown:Function,onScroll:Function,onFocus:Function,onBlur:Function,onKeyup:Function,onKeydown:Function,onTabOut:Function,onMouseenter:Function,onMouseleave:Function,onResize:Function,resetMenuOnOptionsChange:{type:Boolean,default:!0},inlineThemeDisabled:Boolean,scrollbarProps:Object,onToggle:Function}),setup(n){let{mergedClsPrefixRef:r,mergedRtlRef:i,mergedComponentPropsRef:a}=y(n),s=S(`InternalSelectMenu`,i,r),c=w(`InternalSelectMenu`,`-internal-select-menu`,Ze,te,n,o(n,`clsPrefix`)),m=p(null),h=p(null),g=p(null),_=f(()=>n.treeMate.getFlattenedNodes()),b=f(()=>Oe(_.value)),x=p(null);function E(){let{treeMate:e}=n,t=null,{value:r}=n;r===null?t=e.getFirstAvailableNode():(t=n.multiple?e.getNode((r||[])[(r||[]).length-1]):e.getNode(r),(!t||t.disabled)&&(t=e.getFirstAvailableNode())),G(t||null)}function D(){let{value:e}=x;e&&!n.treeMate.getNode(e.key)&&(x.value=null)}let k;u(()=>n.show,e=>{e?k=u(()=>n.treeMate,()=>{n.resetMenuOnOptionsChange?(n.autoPending?E():D(),t(K)):D()},{immediate:!0}):k?.()},{immediate:!0}),e(()=>{k?.()});let A=f(()=>F(c.value.self[C(`optionHeight`,n.size)])),j=f(()=>P(c.value.self[C(`padding`,n.size)])),M=f(()=>n.multiple&&Array.isArray(n.value)?new Set(n.value):new Set),N=f(()=>{let e=_.value;return e&&e.length===0}),ee=f(()=>a?.value?.Select?.renderEmpty);function I(e){let{onToggle:t}=n;t&&t(e)}function L(e){let{onScroll:t}=n;t&&t(e)}function R(e){var t;(t=g.value)==null||t.sync(),L(e)}function ne(){var e;(e=g.value)==null||e.sync()}function re(){let{value:e}=x;return e||null}function ie(e,t){t.disabled||G(t,!1)}function z(e,t){t.disabled||I(t)}function ae(e){var t;V(e,`action`)||(t=n.onKeyup)==null||t.call(n,e)}function B(e){var t;V(e,`action`)||(t=n.onKeydown)==null||t.call(n,e)}function H(e){var t;(t=n.onMousedown)==null||t.call(n,e),!n.focusable&&e.preventDefault()}function U(){let{value:e}=x;e&&G(e.getNext({loop:!0}),!0)}function W(){let{value:e}=x;e&&G(e.getPrev({loop:!0}),!0)}function G(e,t=!1){x.value=e,t&&K()}function K(){var e,t;let r=x.value;if(!r)return;let i=b.value(r.key);i!==null&&(n.virtualScroll?(e=h.value)==null||e.scrollTo({index:i}):(t=g.value)==null||t.scrollTo({index:i,elSize:A.value}))}function q(e){var t;m.value?.contains(e.target)&&((t=n.onFocus)==null||t.call(n,e))}function J(e){var t;m.value?.contains(e.relatedTarget)||(t=n.onBlur)==null||t.call(n,e)}l(T,{handleOptionMouseEnter:ie,handleOptionClick:z,valueSetRef:M,pendingTmNodeRef:x,nodePropsRef:o(n,`nodeProps`),showCheckmarkRef:o(n,`showCheckmark`),multipleRef:o(n,`multiple`),valueRef:o(n,`value`),renderLabelRef:o(n,`renderLabel`),renderOptionRef:o(n,`renderOption`),labelFieldRef:o(n,`labelField`),valueFieldRef:o(n,`valueField`)}),l(O,m),d(()=>{let{value:e}=g;e&&e.sync()});let Y=f(()=>{let{size:e}=n,{common:{cubicBezierEaseInOut:t},self:{height:r,borderRadius:i,color:a,groupHeaderTextColor:o,actionDividerColor:s,optionTextColorPressed:l,optionTextColor:u,optionTextColorDisabled:d,optionTextColorActive:f,optionOpacityDisabled:p,optionCheckColor:m,actionTextColor:h,optionColorPending:g,optionColorActive:_,loadingColor:v,loadingSize:y,optionColorActivePending:b,[C(`optionFontSize`,e)]:x,[C(`optionHeight`,e)]:S,[C(`optionPadding`,e)]:w}}=c.value;return{"--n-height":r,"--n-action-divider-color":s,"--n-action-text-color":h,"--n-bezier":t,"--n-border-radius":i,"--n-color":a,"--n-option-font-size":x,"--n-group-header-text-color":o,"--n-option-check-color":m,"--n-option-color-pending":g,"--n-option-color-active":_,"--n-option-color-active-pending":b,"--n-option-height":S,"--n-option-opacity-disabled":p,"--n-option-text-color":u,"--n-option-text-color-active":f,"--n-option-text-color-disabled":d,"--n-option-text-color-pressed":l,"--n-option-padding":w,"--n-option-padding-left":P(w,`left`),"--n-option-padding-right":P(w,`right`),"--n-loading-color":v,"--n-loading-size":y}}),{inlineThemeDisabled:X}=n,oe=X?v(`internal-select-menu`,f(()=>n.size[0]),Y,n):void 0,se={selfRef:m,next:U,prev:W,getPendingTmNode:re};return ce(m,n.onResize),Object.assign({mergedTheme:c,mergedClsPrefix:r,rtlEnabled:s,virtualListRef:h,scrollbarRef:g,itemSize:A,padding:j,flattenedNodes:_,empty:N,mergedRenderEmpty:ee,virtualListContainer(){let{value:e}=h;return e?.listElRef},virtualListContent(){let{value:e}=h;return e?.itemsElRef},doScroll:L,handleFocusin:q,handleFocusout:J,handleKeyUp:ae,handleKeyDown:B,handleMouseDown:H,handleVirtualListResize:ne,handleVirtualListScroll:R,cssVars:X?void 0:Y,themeClass:oe?.themeClass,onRender:oe?.onRender},se)},render(){let{$slots:e,virtualScroll:t,clsPrefix:r,mergedTheme:i,themeClass:a,onRender:o}=this;return o?.(),n(`div`,{ref:`selfRef`,tabindex:this.focusable?0:-1,class:[`${r}-base-select-menu`,`${r}-base-select-menu--${this.size}-size`,this.rtlEnabled&&`${r}-base-select-menu--rtl`,a,this.multiple&&`${r}-base-select-menu--multiple`],style:this.cssVars,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeyup:this.handleKeyUp,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},I(e.header,e=>e&&n(`div`,{class:`${r}-base-select-menu__header`,"data-header":!0,key:`header`},e)),this.loading?n(`div`,{class:`${r}-base-select-menu__loading`},n(ne,{clsPrefix:r,strokeWidth:20})):this.empty?n(`div`,{class:`${r}-base-select-menu__empty`,"data-empty":!0},L(e.empty,()=>[this.mergedRenderEmpty?.call(this)||n(qe,{theme:i.peers.Empty,themeOverrides:i.peerOverrides.Empty,size:this.size})])):n(j,Object.assign({ref:`scrollbarRef`,theme:i.peers.Scrollbar,themeOverrides:i.peerOverrides.Scrollbar,scrollable:this.scrollable,container:t?this.virtualListContainer:void 0,content:t?this.virtualListContent:void 0,onScroll:t?void 0:this.doScroll},this.scrollbarProps),{default:()=>t?n(se,{ref:`virtualListRef`,class:`${r}-virtual-list`,items:this.flattenedNodes,itemSize:this.itemSize,showScrollbar:!1,paddingTop:this.padding.top,paddingBottom:this.padding.bottom,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemResizable:!0},{default:({item:e})=>e.isGroup?n(Je,{key:e.key,clsPrefix:r,tmNode:e}):e.ignored?null:n(Xe,{clsPrefix:r,key:e.key,tmNode:e})}):n(`div`,{class:`${r}-base-select-menu-option-wrapper`,style:{paddingTop:this.padding.top,paddingBottom:this.padding.bottom}},this.flattenedNodes.map(e=>e.isGroup?n(Je,{key:e.key,clsPrefix:r,tmNode:e}):n(Xe,{clsPrefix:r,key:e.key,tmNode:e})))}),I(e.action,e=>e&&[n(`div`,{class:`${r}-base-select-menu__action`,"data-action":!0,key:`action`},e),n(de,{onFocus:this.onTabOut,key:`focus-detector`})]))}});function $(e){return e.type===`group`}function $e(e){return e.type===`ignored`}function et(e,t){try{return!!(1+t.toString().toLowerCase().indexOf(e.trim().toLowerCase()))}catch{return!1}}function tt(e,t){return{getIsGroup:$,getIgnored:$e,getKey(t){return $(t)?t.name||t.key||`key-required`:t[e]},getChildren(e){return e[t]}}}function nt(e,t,n,r){if(!t)return e;function i(e){if(!Array.isArray(e))return[];let a=[];for(let o of e)if($(o)){let e=i(o[r]);e.length&&a.push(Object.assign({},o,{[r]:e}))}else if($e(o))continue;else t(n,o)&&a.push(o);return a}return i(e)}function rt(e,t,n){let r=new Map;return e.forEach(e=>{$(e)?e[n].forEach(e=>{r.set(e[t],e)}):r.set(e[t],e)}),r}export{Qe as a,ce as c,et as i,se as l,rt as n,Ge as o,nt as r,de as s,tt as t,V as u}; \ No newline at end of file diff --git a/frontend/dist/index.html b/frontend/dist/index.html index 025a5bd..970ee9a 100644 --- a/frontend/dist/index.html +++ b/frontend/dist/index.html @@ -5,7 +5,7 @@ Вечерний детектив - +