diff --git a/backend/evening_detective_server b/backend/evening_detective_server index 909d1ae..4832688 100755 Binary files a/backend/evening_detective_server and b/backend/evening_detective_server differ diff --git a/frontend/dist/assets/Add-7eYe2Si6.js b/frontend/dist/assets/Add-Cwgq0nEf.js similarity index 81% rename from frontend/dist/assets/Add-7eYe2Si6.js rename to frontend/dist/assets/Add-Cwgq0nEf.js index dfac1cf..44cb767 100644 --- a/frontend/dist/assets/Add-7eYe2Si6.js +++ b/frontend/dist/assets/Add-Cwgq0nEf.js @@ -1 +1 @@ -import{Mt as e,kt as t}from"./client-vZFx54yb.js";var n=t({name:`Add`,render(){return e(`svg`,{width:`512`,height:`512`,viewBox:`0 0 512 512`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e(`path`,{d:`M256 112V400M400 256H112`,stroke:`currentColor`,"stroke-width":`32`,"stroke-linecap":`round`,"stroke-linejoin":`round`}))}});export{n as t}; \ No newline at end of file +import{Mt as e,kt as t}from"./client-CREJv8AD.js";var n=t({name:`Add`,render(){return e(`svg`,{width:`512`,height:`512`,viewBox:`0 0 512 512`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e(`path`,{d:`M256 112V400M400 256H112`,stroke:`currentColor`,"stroke-width":`32`,"stroke-linecap":`round`,"stroke-linejoin":`round`}))}});export{n as t}; \ No newline at end of file diff --git a/frontend/dist/assets/Alert-aZxDGAB-.js b/frontend/dist/assets/Alert-CvCnaLc2.js similarity index 96% rename from frontend/dist/assets/Alert-aZxDGAB-.js rename to frontend/dist/assets/Alert-CvCnaLc2.js index 7ad9560..05fdeaa 100644 --- a/frontend/dist/assets/Alert-aZxDGAB-.js +++ b/frontend/dist/assets/Alert-CvCnaLc2.js @@ -1,4 +1,4 @@ -import{H as e,Lt as t,Mt as n,U as r,X as i,Z as a,at as o,bt as s,d as c,g as l,hn as u,it as d,kt as f,nt as p,p as m,st as h,tt as g}from"./client-vZFx54yb.js";import{o as _}from"./es-DSPBzgpf.js";import{i as v,o as y}from"./_plugin-vue_export-helper-FodinAjS.js";import{B as b,D as x,G as S,H as C,I as w,L as T,O as E,V as D,z as O}from"./index-Ci0r-yTA.js";function k(e){let{lineHeight:t,borderRadius:n,fontWeightStrong:r,baseColor:o,dividerColor:s,actionColor:c,textColor1:l,textColor2:u,closeColorHover:d,closeColorPressed:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,infoColor:g,successColor:_,warningColor:v,errorColor:y,fontSize:b}=e;return Object.assign(Object.assign({},E),{fontSize:b,lineHeight:t,titleFontWeight:r,borderRadius:n,border:`1px solid ${s}`,color:c,titleTextColor:l,iconColor:u,contentTextColor:u,closeBorderRadius:n,closeColorHover:d,closeColorPressed:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,borderInfo:`1px solid ${a(o,i(g,{alpha:.25}))}`,colorInfo:a(o,i(g,{alpha:.08})),titleTextColorInfo:l,iconColorInfo:g,contentTextColorInfo:u,closeColorHoverInfo:d,closeColorPressedInfo:f,closeIconColorInfo:p,closeIconColorHoverInfo:m,closeIconColorPressedInfo:h,borderSuccess:`1px solid ${a(o,i(_,{alpha:.25}))}`,colorSuccess:a(o,i(_,{alpha:.08})),titleTextColorSuccess:l,iconColorSuccess:_,contentTextColorSuccess:u,closeColorHoverSuccess:d,closeColorPressedSuccess:f,closeIconColorSuccess:p,closeIconColorHoverSuccess:m,closeIconColorPressedSuccess:h,borderWarning:`1px solid ${a(o,i(v,{alpha:.33}))}`,colorWarning:a(o,i(v,{alpha:.08})),titleTextColorWarning:l,iconColorWarning:v,contentTextColorWarning:u,closeColorHoverWarning:d,closeColorPressedWarning:f,closeIconColorWarning:p,closeIconColorHoverWarning:m,closeIconColorPressedWarning:h,borderError:`1px solid ${a(o,i(y,{alpha:.25}))}`,colorError:a(o,i(y,{alpha:.08})),titleTextColorError:l,iconColorError:y,contentTextColorError:u,closeColorHoverError:d,closeColorPressedError:f,closeIconColorError:p,closeIconColorHoverError:m,closeIconColorPressedError:h})}var A={name:`Alert`,common:c,self:k},j=p(`alert`,` +import{H as e,Lt as t,Mt as n,U as r,X as i,Z as a,at as o,bt as s,d as c,g as l,hn as u,it as d,kt as f,nt as p,p as m,st as h,tt as g}from"./client-CREJv8AD.js";import{o as _}from"./es-CevmKZP_.js";import{i as v,o as y}from"./_plugin-vue_export-helper-BkfvhliL.js";import{B as b,D as x,G as S,H as C,I as w,L as T,O as E,V as D,z as O}from"./index-DZpFhWFx.js";function k(e){let{lineHeight:t,borderRadius:n,fontWeightStrong:r,baseColor:o,dividerColor:s,actionColor:c,textColor1:l,textColor2:u,closeColorHover:d,closeColorPressed:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,infoColor:g,successColor:_,warningColor:v,errorColor:y,fontSize:b}=e;return Object.assign(Object.assign({},E),{fontSize:b,lineHeight:t,titleFontWeight:r,borderRadius:n,border:`1px solid ${s}`,color:c,titleTextColor:l,iconColor:u,contentTextColor:u,closeBorderRadius:n,closeColorHover:d,closeColorPressed:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,borderInfo:`1px solid ${a(o,i(g,{alpha:.25}))}`,colorInfo:a(o,i(g,{alpha:.08})),titleTextColorInfo:l,iconColorInfo:g,contentTextColorInfo:u,closeColorHoverInfo:d,closeColorPressedInfo:f,closeIconColorInfo:p,closeIconColorHoverInfo:m,closeIconColorPressedInfo:h,borderSuccess:`1px solid ${a(o,i(_,{alpha:.25}))}`,colorSuccess:a(o,i(_,{alpha:.08})),titleTextColorSuccess:l,iconColorSuccess:_,contentTextColorSuccess:u,closeColorHoverSuccess:d,closeColorPressedSuccess:f,closeIconColorSuccess:p,closeIconColorHoverSuccess:m,closeIconColorPressedSuccess:h,borderWarning:`1px solid ${a(o,i(v,{alpha:.33}))}`,colorWarning:a(o,i(v,{alpha:.08})),titleTextColorWarning:l,iconColorWarning:v,contentTextColorWarning:u,closeColorHoverWarning:d,closeColorPressedWarning:f,closeIconColorWarning:p,closeIconColorHoverWarning:m,closeIconColorPressedWarning:h,borderError:`1px solid ${a(o,i(y,{alpha:.25}))}`,colorError:a(o,i(y,{alpha:.08})),titleTextColorError:l,iconColorError:y,contentTextColorError:u,closeColorHoverError:d,closeColorPressedError:f,closeIconColorError:p,closeIconColorHoverError:m,closeIconColorPressedError:h})}var A={name:`Alert`,common:c,self:k},j=p(`alert`,` line-height: var(--n-line-height); border-radius: var(--n-border-radius); position: relative; diff --git a/frontend/dist/assets/Button-Bx9JIj0e.js b/frontend/dist/assets/Button-MvNgQLzL.js similarity index 98% rename from frontend/dist/assets/Button-Bx9JIj0e.js rename to frontend/dist/assets/Button-MvNgQLzL.js index a64e276..e7aa9d5 100644 --- a/frontend/dist/assets/Button-Bx9JIj0e.js +++ b/frontend/dist/assets/Button-MvNgQLzL.js @@ -1,4 +1,4 @@ -import{H as e,Mt as t,Pt as n,Rt as r,U as i,Vt as a,X as o,Y as s,Z as c,_n as l,at as u,bt as d,g as f,h as p,hn as m,it as h,kt as g,m as _,nt as v,ot as y,p as b,st as x,tt as S}from"./client-vZFx54yb.js";import{c as C,o as w,r as T,s as E}from"./_plugin-vue_export-helper-FodinAjS.js";import{n as D}from"./use-form-item-DwWmLpgT.js";import{I as O,P as k,Q as A,R as j,W as M,w as N}from"./index-Ci0r-yTA.js";var P=typeof document<`u`&&typeof window<`u`,{cubicBezierEaseInOut:F}=p;function I({duration:e=`.2s`,delay:t=`.1s`}={}){return[S(`&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to`,{opacity:1}),S(`&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from`,` +import{H as e,Mt as t,Pt as n,Rt as r,U as i,Vt as a,X as o,Y as s,Z as c,_n as l,at as u,bt as d,g as f,h as p,hn as m,it as h,kt as g,m as _,nt as v,ot as y,p as b,st as x,tt as S}from"./client-CREJv8AD.js";import{c as C,o as w,r as T,s as E}from"./_plugin-vue_export-helper-BkfvhliL.js";import{n as D}from"./use-form-item-CbDeFP5E.js";import{I as O,P as k,Q as A,R as j,W as M,w as N}from"./index-DZpFhWFx.js";var P=typeof document<`u`&&typeof window<`u`,{cubicBezierEaseInOut:F}=p;function I({duration:e=`.2s`,delay:t=`.1s`}={}){return[S(`&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to`,{opacity:1}),S(`&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from`,` opacity: 0!important; margin-left: 0!important; margin-right: 0!important; diff --git a/frontend/dist/assets/Card-DO3oxl4F.js b/frontend/dist/assets/Card-CJC2gN5t.js similarity index 99% rename from frontend/dist/assets/Card-DO3oxl4F.js rename to frontend/dist/assets/Card-CJC2gN5t.js index ffc0c83..81c2d24 100644 --- a/frontend/dist/assets/Card-DO3oxl4F.js +++ b/frontend/dist/assets/Card-CJC2gN5t.js @@ -1,4 +1,4 @@ -import{At as e,H as t,Ht as n,Lt as r,Mt as i,U as a,Ut as o,Vt as s,Yt as c,at as l,bt as u,ct as d,et as f,g as p,hn as m,ht as h,it as g,kt as _,lt as v,nt as y,p as b,rn as x,st as S,tt as C,zt as w}from"./client-vZFx54yb.js";import{i as T,o as E,s as D}from"./es-DSPBzgpf.js";import{n as O,o as k,s as A}from"./_plugin-vue_export-helper-FodinAjS.js";import{t as j}from"./fade-in.cssr-BsIdh_o6.js";import{r as ee,t as M}from"./light-Xi4LoDb_.js";import{L as N,nt as P}from"./index-Ci0r-yTA.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 re(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 ie(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=re(e,t,n)),a}function ae(e,t,n,r){if(e===`mousemoveoutside`||e===`clickoutside`){let i=ie(e,t,n);return Object.keys(i).forEach(e=>{R(e,document,i[e],r)}),!0}return!1}function I(e,t,n,r){if(e===`mousemoveoutside`||e===`clickoutside`){let i=ie(e,t,n);return Object.keys(i).forEach(e=>{z(e,document,i[e],r)}),!0}return!1}function L(){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,ae(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(I(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:R,off:z}=L(),oe=(typeof window>`u`?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform===`MacIntel`&&navigator.maxTouchPoints>1)&&!window.MSStream;function se(){return oe}function ce(e){let t={isDeactivated:!1},r=!1;return w(()=>{if(t.isDeactivated=!1,!r){r=!0;return}e()}),n(()=>{t.isDeactivated=!0,r||=!0}),t}function B(e,t){console.error(`[vueuc/${e}]: ${t}`)}var V=[],le=function(){return V.some(function(e){return e.activeTargets.length>0})},ue=function(){return V.some(function(e){return e.skippedTargets.length>0})},de=`ResizeObserver loop completed with undelivered notifications.`,fe=function(){var e;typeof ErrorEvent==`function`?e=new ErrorEvent(`error`,{message:de}):(e=document.createEvent(`Event`),e.initEvent(`error`,!1,!1),e.message=de),window.dispatchEvent(e)},H;(function(e){e.BORDER_BOX=`border-box`,e.CONTENT_BOX=`content-box`,e.DEVICE_PIXEL_CONTENT_BOX=`device-pixel-content-box`})(H||={});var U=function(e){return Object.freeze(e)},pe=function(){function e(e,t){this.inlineSize=e,this.blockSize=t,U(this)}return e}(),me=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,U(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}(),W=function(e){return e instanceof SVGElement&&`getBBox`in e},he=function(e){if(W(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)},G=function(e){if(e instanceof Element)return!0;var t=e?.ownerDocument?.defaultView;return!!(t&&e instanceof t.Element)},ge=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},K=typeof window<`u`?window:{},q=new WeakMap,_e=/auto|scroll/,J=/^tb|vertical/,ve=/msie|trident/i.test(K.navigator&&K.navigator.userAgent),Y=function(e){return parseFloat(e||`0`)},X=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new pe((n?t:e)||0,(n?e:t)||0)},ye=U({devicePixelContentBoxSize:X(),borderBoxSize:X(),contentBoxSize:X(),contentRect:new me(0,0,0,0)}),be=function(e,t){if(t===void 0&&(t=!1),q.has(e)&&!t)return q.get(e);if(he(e))return q.set(e,ye),ye;var n=getComputedStyle(e),r=W(e)&&e.ownerSVGElement&&e.getBBox(),i=!ve&&n.boxSizing===`border-box`,a=J.test(n.writingMode||``),o=!r&&_e.test(n.overflowY||``),s=!r&&_e.test(n.overflowX||``),c=r?0:Y(n.paddingTop),l=r?0:Y(n.paddingRight),u=r?0:Y(n.paddingBottom),d=r?0:Y(n.paddingLeft),f=r?0:Y(n.borderTopWidth),p=r?0:Y(n.borderRightWidth),m=r?0:Y(n.borderBottomWidth),h=r?0:Y(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:Y(n.width)-S-x,T=r?r.height:Y(n.height)-C-b,E=w+g+x+v,D=T+_+b+y,O=U({devicePixelContentBoxSize:X(Math.round(w*devicePixelRatio),Math.round(T*devicePixelRatio),a),borderBoxSize:X(E,D,a),contentBoxSize:X(w,T,a),contentRect:new me(d,c,w,T)});return q.set(e,O),O},xe=function(e,t,n){var r=be(e,n),i=r.borderBoxSize,a=r.contentBoxSize,o=r.devicePixelContentBoxSize;switch(t){case H.DEVICE_PIXEL_CONTENT_BOX:return o;case H.BORDER_BOX:return i;default:return a}},Se=function(){function e(e){var t=be(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=U([t.borderBoxSize]),this.contentBoxSize=U([t.contentBoxSize]),this.devicePixelContentBoxSize=U([t.devicePixelContentBoxSize])}return e}(),Ce=function(e){if(he(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},we=function(){var e=1/0,t=[];V.forEach(function(n){if(n.activeTargets.length!==0){var r=[];n.activeTargets.forEach(function(t){var n=new Se(t.target),i=Ce(t.target);r.push(n),t.lastReportedSize=xe(t.target,t.observedBox),ie?t.activeTargets.push(n):t.skippedTargets.push(n))})})},Ee=function(){var e=0;for(Te(e);le();)e=we(),Te(e);return ue()&&fe(),e>0},Z,De=[],Oe=function(){return De.splice(0).forEach(function(e){return e()})},ke=function(e){if(!Z){var t=0,n=document.createTextNode(``);new MutationObserver(function(){return Oe()}).observe(n,{characterData:!0}),Z=function(){n.textContent=`${t?t--:t++}`}}De.push(e),Z()},Ae=function(e){ke(function(){requestAnimationFrame(e)})},Q=0,je=function(){return!!Q},Me=250,Ne={attributes:!0,characterData:!0,childList:!0,subtree:!0},Pe=[`resize`,`load`,`transitionend`,`animationend`,`animationstart`,`animationiteration`,`keyup`,`keydown`,`mouseup`,`mousedown`,`mouseover`,`mouseout`,`blur`,`focus`],Fe=function(e){return e===void 0&&(e=0),Date.now()+e},Ie=!1,Le=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=Me),!Ie){Ie=!0;var n=Fe(e);Ae(function(){var r=!1;try{r=Ee()}finally{if(Ie=!1,e=n-Fe(),!je())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,Ne)};document.body?t():K.addEventListener(`DOMContentLoaded`,t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Pe.forEach(function(t){return K.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||=(this.observer&&this.observer.disconnect(),Pe.forEach(function(t){return K.removeEventListener(t,e.listener,!0)}),!0)},e}()),Re=function(e){!Q&&e>0&&Le.start(),Q+=e,!Q&&Le.stop()},ze=function(e){return!W(e)&&!ge(e)&&getComputedStyle(e).display===`inline`},Be=function(){function e(e,t){this.target=e,this.observedBox=t||H.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=xe(this.target,this.observedBox,!0);return ze(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},e}(),Ve=function(){function e(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t}return e}(),He=new WeakMap,Ue=function(e,t){for(var n=0;n=0&&(i&&V.splice(V.indexOf(n),1),n.observationTargets.splice(r,1),Re(-1))},e.disconnect=function(e){var t=this,n=He.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.`);$.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(!G(e))throw TypeError(`Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element`);$.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(!G(e))throw TypeError(`Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element`);$.unobserve(this,e)},e.prototype.disconnect=function(){$.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=_({name:`ResizeObserver`,props:{onResize:Function},setup(t){let n=!1,r=e().proxy;function i(e){let{onResize:n}=t;n!==void 0&&n(e)}o(()=>{let e=r.$el;if(e===void 0){B(`resize-observer`,`$el does not exist.`);return}if(e.nextElementSibling!==e.nextSibling&&e.nodeType===3&&e.nodeValue!==``){B(`resize-observer`,`$el can not be observed (it may be a text node).`);return}e.nextElementSibling!==null&&(Ge.registerHandler(e.nextElementSibling,i),n=!0)}),s(()=>{n&&Ge.unregisterHandler(r.$el.nextElementSibling)})},render(){return c(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=_({render(){var e;return(e=this.$slots).default?.call(e)}}),Xe=y(`scrollbar`,` +import{At as e,H as t,Ht as n,Lt as r,Mt as i,U as a,Ut as o,Vt as s,Yt as c,at as l,bt as u,ct as d,et as f,g as p,hn as m,ht as h,it as g,kt as _,lt as v,nt as y,p as b,rn as x,st as S,tt as C,zt as w}from"./client-CREJv8AD.js";import{i as T,o as E,s as D}from"./es-CevmKZP_.js";import{n as O,o as k,s as A}from"./_plugin-vue_export-helper-BkfvhliL.js";import{t as j}from"./fade-in.cssr-CL3cAgSL.js";import{r as ee,t as M}from"./light-B8TOsMif.js";import{L as N,nt as P}from"./index-DZpFhWFx.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 re(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 ie(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=re(e,t,n)),a}function ae(e,t,n,r){if(e===`mousemoveoutside`||e===`clickoutside`){let i=ie(e,t,n);return Object.keys(i).forEach(e=>{R(e,document,i[e],r)}),!0}return!1}function I(e,t,n,r){if(e===`mousemoveoutside`||e===`clickoutside`){let i=ie(e,t,n);return Object.keys(i).forEach(e=>{z(e,document,i[e],r)}),!0}return!1}function L(){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,ae(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(I(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:R,off:z}=L(),oe=(typeof window>`u`?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform===`MacIntel`&&navigator.maxTouchPoints>1)&&!window.MSStream;function se(){return oe}function ce(e){let t={isDeactivated:!1},r=!1;return w(()=>{if(t.isDeactivated=!1,!r){r=!0;return}e()}),n(()=>{t.isDeactivated=!0,r||=!0}),t}function B(e,t){console.error(`[vueuc/${e}]: ${t}`)}var V=[],le=function(){return V.some(function(e){return e.activeTargets.length>0})},ue=function(){return V.some(function(e){return e.skippedTargets.length>0})},de=`ResizeObserver loop completed with undelivered notifications.`,fe=function(){var e;typeof ErrorEvent==`function`?e=new ErrorEvent(`error`,{message:de}):(e=document.createEvent(`Event`),e.initEvent(`error`,!1,!1),e.message=de),window.dispatchEvent(e)},H;(function(e){e.BORDER_BOX=`border-box`,e.CONTENT_BOX=`content-box`,e.DEVICE_PIXEL_CONTENT_BOX=`device-pixel-content-box`})(H||={});var U=function(e){return Object.freeze(e)},pe=function(){function e(e,t){this.inlineSize=e,this.blockSize=t,U(this)}return e}(),me=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,U(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}(),W=function(e){return e instanceof SVGElement&&`getBBox`in e},he=function(e){if(W(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)},G=function(e){if(e instanceof Element)return!0;var t=e?.ownerDocument?.defaultView;return!!(t&&e instanceof t.Element)},ge=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},K=typeof window<`u`?window:{},q=new WeakMap,_e=/auto|scroll/,J=/^tb|vertical/,ve=/msie|trident/i.test(K.navigator&&K.navigator.userAgent),Y=function(e){return parseFloat(e||`0`)},X=function(e,t,n){return e===void 0&&(e=0),t===void 0&&(t=0),n===void 0&&(n=!1),new pe((n?t:e)||0,(n?e:t)||0)},ye=U({devicePixelContentBoxSize:X(),borderBoxSize:X(),contentBoxSize:X(),contentRect:new me(0,0,0,0)}),be=function(e,t){if(t===void 0&&(t=!1),q.has(e)&&!t)return q.get(e);if(he(e))return q.set(e,ye),ye;var n=getComputedStyle(e),r=W(e)&&e.ownerSVGElement&&e.getBBox(),i=!ve&&n.boxSizing===`border-box`,a=J.test(n.writingMode||``),o=!r&&_e.test(n.overflowY||``),s=!r&&_e.test(n.overflowX||``),c=r?0:Y(n.paddingTop),l=r?0:Y(n.paddingRight),u=r?0:Y(n.paddingBottom),d=r?0:Y(n.paddingLeft),f=r?0:Y(n.borderTopWidth),p=r?0:Y(n.borderRightWidth),m=r?0:Y(n.borderBottomWidth),h=r?0:Y(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:Y(n.width)-S-x,T=r?r.height:Y(n.height)-C-b,E=w+g+x+v,D=T+_+b+y,O=U({devicePixelContentBoxSize:X(Math.round(w*devicePixelRatio),Math.round(T*devicePixelRatio),a),borderBoxSize:X(E,D,a),contentBoxSize:X(w,T,a),contentRect:new me(d,c,w,T)});return q.set(e,O),O},xe=function(e,t,n){var r=be(e,n),i=r.borderBoxSize,a=r.contentBoxSize,o=r.devicePixelContentBoxSize;switch(t){case H.DEVICE_PIXEL_CONTENT_BOX:return o;case H.BORDER_BOX:return i;default:return a}},Se=function(){function e(e){var t=be(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=U([t.borderBoxSize]),this.contentBoxSize=U([t.contentBoxSize]),this.devicePixelContentBoxSize=U([t.devicePixelContentBoxSize])}return e}(),Ce=function(e){if(he(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},we=function(){var e=1/0,t=[];V.forEach(function(n){if(n.activeTargets.length!==0){var r=[];n.activeTargets.forEach(function(t){var n=new Se(t.target),i=Ce(t.target);r.push(n),t.lastReportedSize=xe(t.target,t.observedBox),ie?t.activeTargets.push(n):t.skippedTargets.push(n))})})},Ee=function(){var e=0;for(Te(e);le();)e=we(),Te(e);return ue()&&fe(),e>0},Z,De=[],Oe=function(){return De.splice(0).forEach(function(e){return e()})},ke=function(e){if(!Z){var t=0,n=document.createTextNode(``);new MutationObserver(function(){return Oe()}).observe(n,{characterData:!0}),Z=function(){n.textContent=`${t?t--:t++}`}}De.push(e),Z()},Ae=function(e){ke(function(){requestAnimationFrame(e)})},Q=0,je=function(){return!!Q},Me=250,Ne={attributes:!0,characterData:!0,childList:!0,subtree:!0},Pe=[`resize`,`load`,`transitionend`,`animationend`,`animationstart`,`animationiteration`,`keyup`,`keydown`,`mouseup`,`mousedown`,`mouseover`,`mouseout`,`blur`,`focus`],Fe=function(e){return e===void 0&&(e=0),Date.now()+e},Ie=!1,Le=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=Me),!Ie){Ie=!0;var n=Fe(e);Ae(function(){var r=!1;try{r=Ee()}finally{if(Ie=!1,e=n-Fe(),!je())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,Ne)};document.body?t():K.addEventListener(`DOMContentLoaded`,t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Pe.forEach(function(t){return K.addEventListener(t,e.listener,!0)}))},e.prototype.stop=function(){var e=this;this.stopped||=(this.observer&&this.observer.disconnect(),Pe.forEach(function(t){return K.removeEventListener(t,e.listener,!0)}),!0)},e}()),Re=function(e){!Q&&e>0&&Le.start(),Q+=e,!Q&&Le.stop()},ze=function(e){return!W(e)&&!ge(e)&&getComputedStyle(e).display===`inline`},Be=function(){function e(e,t){this.target=e,this.observedBox=t||H.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e=xe(this.target,this.observedBox,!0);return ze(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},e}(),Ve=function(){function e(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t}return e}(),He=new WeakMap,Ue=function(e,t){for(var n=0;n=0&&(i&&V.splice(V.indexOf(n),1),n.observationTargets.splice(r,1),Re(-1))},e.disconnect=function(e){var t=this,n=He.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.`);$.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(!G(e))throw TypeError(`Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element`);$.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(!G(e))throw TypeError(`Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element`);$.unobserve(this,e)},e.prototype.disconnect=function(){$.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=_({name:`ResizeObserver`,props:{onResize:Function},setup(t){let n=!1,r=e().proxy;function i(e){let{onResize:n}=t;n!==void 0&&n(e)}o(()=>{let e=r.$el;if(e===void 0){B(`resize-observer`,`$el does not exist.`);return}if(e.nextElementSibling!==e.nextSibling&&e.nodeType===3&&e.nodeValue!==``){B(`resize-observer`,`$el can not be observed (it may be a text node).`);return}e.nextElementSibling!==null&&(Ge.registerHandler(e.nextElementSibling,i),n=!0)}),s(()=>{n&&Ge.unregisterHandler(r.$el.nextElementSibling)})},render(){return c(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=_({render(){var e;return(e=this.$slots).default?.call(e)}}),Xe=y(`scrollbar`,` overflow: hidden; position: relative; z-index: auto; diff --git a/frontend/dist/assets/CatalogView-DuXz4hUk.js b/frontend/dist/assets/CatalogView-DaT0U2l-.js similarity index 86% rename from frontend/dist/assets/CatalogView-DuXz4hUk.js rename to frontend/dist/assets/CatalogView-DaT0U2l-.js index c7fcc11..e144217 100644 --- a/frontend/dist/assets/CatalogView-DuXz4hUk.js +++ b/frontend/dist/assets/CatalogView-DaT0U2l-.js @@ -1 +1 @@ -import{Ct as e,Dt as t,In as n,Jt as r,Kt as i,Ln as a,Ot as o,St as s,hn as c,ht as l,in as u,kt as d,u as f,wt as p,xt as m,yn as h}from"./client-vZFx54yb.js";import{r as g}from"./es-DSPBzgpf.js";import{t as _}from"./_plugin-vue_export-helper-FodinAjS.js";import{t as v}from"./Rate-DGhiVNSc.js";import{n as y}from"./index-Ci0r-yTA.js";import{t as b}from"./HeaderMenu-CoWgnRN4.js";var x={class:`center-block-custom`},S={class:`width1200 display-table catalog-grid`},C=[`onClick`],w={class:`scenario-content-block`},T={class:`scenario-title`},E={class:`scenario-description`},D={class:`scenario-rating`},O={key:1},k={key:2},A={key:0,class:`scenario-difficulty`},j={class:`scenario-label`},M=_(d({__name:`CatalogPage`,setup(d){let _=y(),M=c([]),N=f();async function P(){M.value=[];let e=await _.GetScenariosCatalog({});M.value=e.scenarios}async function F(e){N.push(`/scenarios/`+e)}return P(),(c,d)=>(i(),p(l,null,[m(`div`,x,[m(`div`,S,[(i(!0),p(l,null,r(M.value,r=>(i(),p(`div`,{class:`scenario-block`,onClick:e=>F(r.ID),key:r.ID},[m(`div`,{class:`scenario-image-block scenario-image`,style:n({backgroundImage:`url(${r.image})`})},null,4),m(`div`,w,[m(`p`,T,a(r.name),1),m(`p`,E,a(r.description),1),m(`div`,D,[r.reviewsCount?(i(),s(h(v),{key:0,value:r.averageRating,readonly:``,"allow-half":``,size:`small`},null,8,[`value`])):e(``,!0),r.reviewsCount?(i(),p(`span`,O,a(r.averageRating?.toFixed(1))+` · `+a(r.reviewsCount),1)):(i(),p(`span`,k,`Пока нет оценок`))]),r.difficulty?(i(),p(`div`,A,`Сложность: `+a(r.difficulty),1)):e(``,!0),m(`p`,j,[o(h(g),{bordered:!1,type:`success`,class:`status-block`},{default:u(()=>[t(`Автор: `+a(r.author?.username),1)]),_:2},1024)])])],8,C))),128))])]),o(b,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-935ff4be`]]),N=d({__name:`CatalogView`,setup(e){return(e,t)=>(i(),s(M))}});export{N as default}; \ No newline at end of file +import{Ct as e,Dt as t,In as n,Jt as r,Kt as i,Ln as a,Ot as o,St as s,hn as c,ht as l,in as u,kt as d,u as f,wt as p,xt as m,yn as h}from"./client-CREJv8AD.js";import{r as g}from"./es-CevmKZP_.js";import{t as _}from"./_plugin-vue_export-helper-BkfvhliL.js";import{t as v}from"./Rate-BybamiWd.js";import{n as y}from"./index-DZpFhWFx.js";import{t as b}from"./HeaderMenu-BarRlY0P.js";var x={class:`center-block-custom`},S={class:`width1200 display-table catalog-grid`},C=[`onClick`],w={class:`scenario-content-block`},T={class:`scenario-title`},E={class:`scenario-description`},D={class:`scenario-rating`},O={key:1},k={key:2},A={key:0,class:`scenario-difficulty`},j={class:`scenario-label`},M=_(d({__name:`CatalogPage`,setup(d){let _=y(),M=c([]),N=f();async function P(){M.value=[];let e=await _.GetScenariosCatalog({});M.value=e.scenarios}async function F(e){N.push(`/scenarios/`+e)}return P(),(c,d)=>(i(),p(l,null,[m(`div`,x,[m(`div`,S,[(i(!0),p(l,null,r(M.value,r=>(i(),p(`div`,{class:`scenario-block`,onClick:e=>F(r.ID),key:r.ID},[m(`div`,{class:`scenario-image-block scenario-image`,style:n({backgroundImage:`url(${r.image})`})},null,4),m(`div`,w,[m(`p`,T,a(r.name),1),m(`p`,E,a(r.description),1),m(`div`,D,[r.reviewsCount?(i(),s(h(v),{key:0,value:r.averageRating,readonly:``,"allow-half":``,size:`small`},null,8,[`value`])):e(``,!0),r.reviewsCount?(i(),p(`span`,O,a(r.averageRating?.toFixed(1))+` · `+a(r.reviewsCount),1)):(i(),p(`span`,k,`Пока нет оценок`))]),r.difficulty?(i(),p(`div`,A,`Сложность: `+a(r.difficulty),1)):e(``,!0),m(`p`,j,[o(h(g),{bordered:!1,type:`success`,class:`status-block`},{default:u(()=>[t(`Автор: `+a(r.author?.username),1)]),_:2},1024)])])],8,C))),128))])]),o(b,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-935ff4be`]]),N=d({__name:`CatalogView`,setup(e){return(e,t)=>(i(),s(M))}});export{N as default}; \ No newline at end of file diff --git a/frontend/dist/assets/ConsentView-BhM6C8xZ.js b/frontend/dist/assets/ConsentView-BhM6C8xZ.js deleted file mode 100644 index 56d59f1..0000000 --- a/frontend/dist/assets/ConsentView-BhM6C8xZ.js +++ /dev/null @@ -1 +0,0 @@ -import{Kt as e,Ot as t,ht as n,kt as r,wt as i}from"./client-vZFx54yb.js";import{t as a}from"./HeaderMenu-CoWgnRN4.js";import{t as o}from"./DocsPage-x66dtzHN.js";var s=r({__name:`ConsentView`,setup(r){return(r,s)=>(e(),i(n,null,[t(o,{kind:`consent`}),t(a)],64))}});export{s as default}; \ No newline at end of file diff --git a/frontend/dist/assets/ConsentView-BxOLnfG5.js b/frontend/dist/assets/ConsentView-BxOLnfG5.js new file mode 100644 index 0000000..ef4bf10 --- /dev/null +++ b/frontend/dist/assets/ConsentView-BxOLnfG5.js @@ -0,0 +1 @@ +import{Kt as e,Ot as t,ht as n,kt as r,wt as i}from"./client-CREJv8AD.js";import{t as a}from"./HeaderMenu-BarRlY0P.js";import{t as o}from"./DocsPage-Bi3DTzmc.js";var s=r({__name:`ConsentView`,setup(r){return(r,s)=>(e(),i(n,null,[t(o,{kind:`consent`}),t(a)],64))}});export{s as default}; \ No newline at end of file diff --git a/frontend/dist/assets/DatePicker-BuccjoRz.js b/frontend/dist/assets/DatePicker-CISUUqG0.js similarity index 99% rename from frontend/dist/assets/DatePicker-BuccjoRz.js rename to frontend/dist/assets/DatePicker-CISUUqG0.js index 630f61d..69673e0 100644 --- a/frontend/dist/assets/DatePicker-BuccjoRz.js +++ b/frontend/dist/assets/DatePicker-CISUUqG0.js @@ -1,4 +1,4 @@ -import{Bt as e,H as t,K as n,Mt as r,Pt as i,Rt as a,U as o,Ut as s,Vt as c,Y as l,_n as u,an as d,at as f,bt as p,hn as m,it as h,kt as g,mn as ee,nn as te,nt as _,ot as v,p as ne,pn as y,q as re,qt as ie,rn as b,st as x,tt as S}from"./client-vZFx54yb.js";import{a as C,i as w,o as ae,t as T}from"./Follower-CdAIcE29.js";import{c as E,d as oe,u as se}from"./utils-DJHY09qj.js";import{d as ce,f as le,i as D,u as ue}from"./Card-DO3oxl4F.js";import{S as O,a as k,i as de,m as A,n as j}from"./Suffix-iau-0Xu1.js";import{t as fe}from"./use-merged-state-CEu_RNRJ.js";import{n as M,t as N}from"./Button-Bx9JIj0e.js";import{r as pe}from"./keep-ChD__NI5.js";import{a as P,i as F,o as me,s as I}from"./_plugin-vue_export-helper-FodinAjS.js";import{n as he}from"./use-form-item-DwWmLpgT.js";import{t as ge}from"./Input-D7YePN-E.js";import{G as _e,U as ve,Z as ye,nt as be,v as xe,y as Se}from"./index-Ci0r-yTA.js";function Ce(t={},n){let r=y({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:i,keyup:a}=t,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)}})},l=()=>{(n===void 0||n.value)&&(ce(`keydown`,document,o),ce(`keyup`,document,s)),n!==void 0&&te(n,e=>{e?(ce(`keydown`,document,o),ce(`keyup`,document,s)):(ue(`keydown`,document,o),ue(`keyup`,document,s))})};return O()?(e(l),c(()=>{(n===void 0||n.value)&&(ue(`keydown`,document,o),ue(`keyup`,document,s))})):l(),ee(r)}var we=365.2425,Te=6048e5,Ee=864e5,De=6e4,Oe=36e5,ke=1e3,L=3600*24;L*7,L*we/12*3;var Ae=Symbol.for(`constructDateFrom`);function R(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&Ae in e?e[Ae](t):e instanceof Date?new e.constructor(t):new Date(t)}function z(e,...t){let n=R.bind(null,e||t.find(e=>typeof e==`object`));return t.map(n)}var je={};function Me(){return je}function B(e,t){return R(t||e,e)}function Ne(e,t){let n=Me(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=B(e,t?.in),a=i.getDay(),o=(ar(`svg`,{width:`28px`,height:`28px`,viewBox:`0 0 28 28`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},r(`g`,{stroke:`none`,"stroke-width":`1`,"fill-rule":`evenodd`},r(`g`,{"fill-rule":`nonzero`},r(`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`}))))),Le=g({name:`FastBackward`,render(){return r(`svg`,{viewBox:`0 0 20 20`,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:`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`}))))}}),Re=g({name:`FastForward`,render(){return r(`svg`,{viewBox:`0 0 20 20`,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:`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`}))))}}),ze=g({name:`Forward`,render(){return r(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},r(`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`}))}}),Be=ve(`time`,()=>r(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},r(`path`,{d:`M256,64C150,64,64,150,64,256s86,192,192,192,192-86,192-192S362,64,256,64Z`,style:` +import{Bt as e,H as t,K as n,Mt as r,Pt as i,Rt as a,U as o,Ut as s,Vt as c,Y as l,_n as u,an as d,at as f,bt as p,hn as m,it as h,kt as g,mn as ee,nn as te,nt as _,ot as v,p as ne,pn as y,q as re,qt as ie,rn as b,st as x,tt as S}from"./client-CREJv8AD.js";import{a as C,i as w,o as ae,t as T}from"./Follower-DAIDHT2D.js";import{c as E,d as oe,u as se}from"./utils-BJnNAJm2.js";import{d as ce,f as le,i as D,u as ue}from"./Card-CJC2gN5t.js";import{S as O,a as k,i as de,m as A,n as j}from"./Suffix-iFHNypz-.js";import{t as fe}from"./use-merged-state-B6hyXujy.js";import{n as M,t as N}from"./Button-MvNgQLzL.js";import{r as pe}from"./keep-Du8BxhQs.js";import{a as P,i as F,o as me,s as I}from"./_plugin-vue_export-helper-BkfvhliL.js";import{n as he}from"./use-form-item-CbDeFP5E.js";import{t as ge}from"./Input-B41xxqED.js";import{G as _e,U as ve,Z as ye,nt as be,v as xe,y as Se}from"./index-DZpFhWFx.js";function Ce(t={},n){let r=y({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:i,keyup:a}=t,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)}})},l=()=>{(n===void 0||n.value)&&(ce(`keydown`,document,o),ce(`keyup`,document,s)),n!==void 0&&te(n,e=>{e?(ce(`keydown`,document,o),ce(`keyup`,document,s)):(ue(`keydown`,document,o),ue(`keyup`,document,s))})};return O()?(e(l),c(()=>{(n===void 0||n.value)&&(ue(`keydown`,document,o),ue(`keyup`,document,s))})):l(),ee(r)}var we=365.2425,Te=6048e5,Ee=864e5,De=6e4,Oe=36e5,ke=1e3,L=3600*24;L*7,L*we/12*3;var Ae=Symbol.for(`constructDateFrom`);function R(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&Ae in e?e[Ae](t):e instanceof Date?new e.constructor(t):new Date(t)}function z(e,...t){let n=R.bind(null,e||t.find(e=>typeof e==`object`));return t.map(n)}var je={};function Me(){return je}function B(e,t){return R(t||e,e)}function Ne(e,t){let n=Me(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=B(e,t?.in),a=i.getDay(),o=(ar(`svg`,{width:`28px`,height:`28px`,viewBox:`0 0 28 28`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},r(`g`,{stroke:`none`,"stroke-width":`1`,"fill-rule":`evenodd`},r(`g`,{"fill-rule":`nonzero`},r(`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`}))))),Le=g({name:`FastBackward`,render(){return r(`svg`,{viewBox:`0 0 20 20`,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:`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`}))))}}),Re=g({name:`FastForward`,render(){return r(`svg`,{viewBox:`0 0 20 20`,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:`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`}))))}}),ze=g({name:`Forward`,render(){return r(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},r(`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`}))}}),Be=ve(`time`,()=>r(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},r(`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; diff --git a/frontend/dist/assets/DocsPage-x66dtzHN.js b/frontend/dist/assets/DocsPage-Bi3DTzmc.js similarity index 85% rename from frontend/dist/assets/DocsPage-x66dtzHN.js rename to frontend/dist/assets/DocsPage-Bi3DTzmc.js index f1f5942..72d9180 100644 --- a/frontend/dist/assets/DocsPage-x66dtzHN.js +++ b/frontend/dist/assets/DocsPage-Bi3DTzmc.js @@ -1 +1 @@ -import{Dt as e,Kt as t,Ln as n,Ot as r,St as i,Ut as a,a as o,hn as s,in as c,kt as l,wt as u,xt as d,yn as f}from"./client-vZFx54yb.js";import{t as p}from"./_plugin-vue_export-helper-FodinAjS.js";import{t as m}from"./Alert-aZxDGAB-.js";import{t as h}from"./Spin-Dj4Psaz0.js";import{n as g}from"./index-Ci0r-yTA.js";import{t as _}from"./HeaderText-BK8aY5U4.js";var v={class:`center-block-custom`},y={class:`width700 doc-page`},b={class:`doc-title`},x={key:0,class:`doc-loading`},S={key:2,class:`paper-block`},C={class:`paper`},w={class:`doc-text`},T={class:`docs-links`},E=p(l({__name:`DocsPage`,props:{kind:{}},setup(l){let p=l,E={terms:`Пользовательское соглашение`,privacy:`Политика конфиденциальности`,consent:`Согласие на обработку персональных данных`},D=s(``),O=s(!0),k=s(``);return a(async()=>{let e=g(),t={terms:()=>e.GetTerms({}),privacy:()=>e.GetPrivacy({}),consent:()=>e.GetConsent({})};try{let e=await t[p.kind]();D.value=e.text||``}catch(e){k.value=e instanceof Error?e.message:`Не удалось загрузить документ`}finally{O.value=!1}}),(a,s)=>(t(),u(`div`,v,[d(`div`,y,[d(`h1`,b,[r(_,null,{default:c(()=>[e(n(E[p.kind]),1)]),_:1})]),O.value?(t(),u(`div`,x,[r(f(h),{size:`large`})])):k.value?(t(),i(f(m),{key:1,type:`error`,"show-icon":!1,class:`doc-error`},{default:c(()=>[e(n(k.value),1)]),_:1})):(t(),u(`div`,S,[d(`div`,C,[d(`p`,w,n(D.value),1)]),s[0]||=d(`div`,{class:`paper-shadow paper-shadow-left`},null,-1),s[1]||=d(`div`,{class:`paper-shadow paper-shadow-right`},null,-1)])),d(`div`,T,[s[5]||=e(` Смотрите также: `,-1),r(f(o),{to:`/user-agreement`,class:`docs-link`},{default:c(()=>[...s[2]||=[e(`Пользовательское соглашение`,-1)]]),_:1}),s[6]||=e(` · `,-1),r(f(o),{to:`/privacy-policy`,class:`docs-link`},{default:c(()=>[...s[3]||=[e(`Политика конфиденциальности`,-1)]]),_:1}),s[7]||=e(` · `,-1),r(f(o),{to:`/consent`,class:`docs-link`},{default:c(()=>[...s[4]||=[e(`Согласие на обработку персональных данных`,-1)]]),_:1})])])]))}}),[[`__scopeId`,`data-v-a0534098`]]);export{E as t}; \ No newline at end of file +import{Dt as e,Kt as t,Ln as n,Ot as r,St as i,Ut as a,a as o,hn as s,in as c,kt as l,wt as u,xt as d,yn as f}from"./client-CREJv8AD.js";import{t as p}from"./_plugin-vue_export-helper-BkfvhliL.js";import{t as m}from"./Alert-CvCnaLc2.js";import{t as h}from"./Spin-fslC_m7x.js";import{n as g}from"./index-DZpFhWFx.js";import{t as _}from"./HeaderText-B83p3PsD.js";var v={class:`center-block-custom`},y={class:`width700 doc-page`},b={class:`doc-title`},x={key:0,class:`doc-loading`},S={key:2,class:`paper-block`},C={class:`paper`},w={class:`doc-text`},T={class:`docs-links`},E=p(l({__name:`DocsPage`,props:{kind:{}},setup(l){let p=l,E={terms:`Пользовательское соглашение`,privacy:`Политика конфиденциальности`,consent:`Согласие на обработку персональных данных`},D=s(``),O=s(!0),k=s(``);return a(async()=>{let e=g(),t={terms:()=>e.GetTerms({}),privacy:()=>e.GetPrivacy({}),consent:()=>e.GetConsent({})};try{let e=await t[p.kind]();D.value=e.text||``}catch(e){k.value=e instanceof Error?e.message:`Не удалось загрузить документ`}finally{O.value=!1}}),(a,s)=>(t(),u(`div`,v,[d(`div`,y,[d(`h1`,b,[r(_,null,{default:c(()=>[e(n(E[p.kind]),1)]),_:1})]),O.value?(t(),u(`div`,x,[r(f(h),{size:`large`})])):k.value?(t(),i(f(m),{key:1,type:`error`,"show-icon":!1,class:`doc-error`},{default:c(()=>[e(n(k.value),1)]),_:1})):(t(),u(`div`,S,[d(`div`,C,[d(`p`,w,n(D.value),1)]),s[0]||=d(`div`,{class:`paper-shadow paper-shadow-left`},null,-1),s[1]||=d(`div`,{class:`paper-shadow paper-shadow-right`},null,-1)])),d(`div`,T,[s[5]||=e(` Смотрите также: `,-1),r(f(o),{to:`/user-agreement`,class:`docs-link`},{default:c(()=>[...s[2]||=[e(`Пользовательское соглашение`,-1)]]),_:1}),s[6]||=e(` · `,-1),r(f(o),{to:`/privacy-policy`,class:`docs-link`},{default:c(()=>[...s[3]||=[e(`Политика конфиденциальности`,-1)]]),_:1}),s[7]||=e(` · `,-1),r(f(o),{to:`/consent`,class:`docs-link`},{default:c(()=>[...s[4]||=[e(`Согласие на обработку персональных данных`,-1)]]),_:1})])])]))}}),[[`__scopeId`,`data-v-a0534098`]]);export{E as t}; \ No newline at end of file diff --git a/frontend/dist/assets/Flex-CjWQ3AmY.js b/frontend/dist/assets/Flex-B0ZjnZ3e.js similarity index 86% rename from frontend/dist/assets/Flex-CjWQ3AmY.js rename to frontend/dist/assets/Flex-B0ZjnZ3e.js index 4d765ae..dab9bd7 100644 --- a/frontend/dist/assets/Flex-CjWQ3AmY.js +++ b/frontend/dist/assets/Flex-B0ZjnZ3e.js @@ -1 +1 @@ -import{Mt as e,U as t,bt as n,g as r,kt as i,p as a,st as o}from"./client-vZFx54yb.js";import{a as s,i as c}from"./es-DSPBzgpf.js";import{t as l}from"./flatten-IKpQWAcc.js";import{t as u}from"./get-slot-6kXJmSMP.js";import{f as d}from"./index-Ci0r-yTA.js";function f(){return d}var p={name:`Flex`,self:f},m=i({name:`Flex`,props:Object.assign(Object.assign({},a.props),{align:String,justify:{type:String,default:`start`},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:`medium`},wrap:{type:Boolean,default:!0}}),setup(e){let{mergedClsPrefixRef:i,mergedRtlRef:l}=t(e),u=a(`Flex`,`-flex`,void 0,p,e,i);return{rtlEnabled:r(`Flex`,l,i),mergedClsPrefix:i,margin:n(()=>{let{size:t}=e;if(Array.isArray(t))return{horizontal:t[0],vertical:t[1]};if(typeof t==`number`)return{horizontal:t,vertical:t};let{self:{[o(`gap`,t)]:n}}=u.value,{row:r,col:i}=s(n);return{horizontal:c(i),vertical:c(r)}})}},render(){let{vertical:t,reverse:n,align:r,inline:i,justify:a,margin:o,wrap:s,mergedClsPrefix:c,rtlEnabled:d}=this,f=l(u(this),!1);return f.length?e(`div`,{role:`none`,class:[`${c}-flex`,d&&`${c}-flex--rtl`],style:{display:i?`inline-flex`:`flex`,flexDirection:t&&!n?`column`:t&&n?`column-reverse`:!t&&n?`row-reverse`:`row`,justifyContent:a,flexWrap:!s||t?`nowrap`:`wrap`,alignItems:r,gap:`${o.vertical}px ${o.horizontal}px`}},f):null}});export{m as t}; \ No newline at end of file +import{Mt as e,U as t,bt as n,g as r,kt as i,p as a,st as o}from"./client-CREJv8AD.js";import{a as s,i as c}from"./es-CevmKZP_.js";import{t as l}from"./flatten-BBShpVqF.js";import{t as u}from"./get-slot-6kXJmSMP.js";import{f as d}from"./index-DZpFhWFx.js";function f(){return d}var p={name:`Flex`,self:f},m=i({name:`Flex`,props:Object.assign(Object.assign({},a.props),{align:String,justify:{type:String,default:`start`},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:`medium`},wrap:{type:Boolean,default:!0}}),setup(e){let{mergedClsPrefixRef:i,mergedRtlRef:l}=t(e),u=a(`Flex`,`-flex`,void 0,p,e,i);return{rtlEnabled:r(`Flex`,l,i),mergedClsPrefix:i,margin:n(()=>{let{size:t}=e;if(Array.isArray(t))return{horizontal:t[0],vertical:t[1]};if(typeof t==`number`)return{horizontal:t,vertical:t};let{self:{[o(`gap`,t)]:n}}=u.value,{row:r,col:i}=s(n);return{horizontal:c(i),vertical:c(r)}})}},render(){let{vertical:t,reverse:n,align:r,inline:i,justify:a,margin:o,wrap:s,mergedClsPrefix:c,rtlEnabled:d}=this,f=l(u(this),!1);return f.length?e(`div`,{role:`none`,class:[`${c}-flex`,d&&`${c}-flex--rtl`],style:{display:i?`inline-flex`:`flex`,flexDirection:t&&!n?`column`:t&&n?`column-reverse`:!t&&n?`row-reverse`:`row`,justifyContent:a,flexWrap:!s||t?`nowrap`:`wrap`,alignItems:r,gap:`${o.vertical}px ${o.horizontal}px`}},f):null}});export{m as t}; \ No newline at end of file diff --git a/frontend/dist/assets/Follower-CdAIcE29.js b/frontend/dist/assets/Follower-DAIDHT2D.js similarity index 97% rename from frontend/dist/assets/Follower-CdAIcE29.js rename to frontend/dist/assets/Follower-DAIDHT2D.js index 08118d1..a9cc78f 100644 --- a/frontend/dist/assets/Follower-CdAIcE29.js +++ b/frontend/dist/assets/Follower-DAIDHT2D.js @@ -1 +1 @@ -import{At as e,J as t,Mt as n,Pt as r,Rt as i,Ut as a,Vt as o,Y as s,_n as c,an as l,hn as u,kt as d,nn as f,qt as p,ut as m}from"./client-vZFx54yb.js";import{d as h,u as g}from"./Card-DO3oxl4F.js";import{C as _,_ as v,f as y,g as b,h as x,p as S,v as C,x as w}from"./Suffix-iau-0Xu1.js";import{Q as T,Z as E}from"./index-Ci0r-yTA.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=_?document?.fonts?.ready:void 0,M=!1;j===void 0?M=!0:j.then(()=>{M=!0});function N(e){if(M)return;let t=!1;a(()=>{M||j?.then(()=>{t||e()})}),o(()=>{t=!0})}var P=s(`n-internal-select-menu`),F=s(`n-internal-select-menu-body`),I=`__disabled__`;function L(e){let t=r(C,null),n=r(w,null),i=r(v,null),s=r(F,null),c=u();if(typeof document<`u`){c.value=document.fullscreenElement;let e=()=>{c.value=document.fullscreenElement};a(()=>{h(`fullscreenchange`,document,e)}),o(()=>{g(`fullscreenchange`,document,e)})}return T(()=>{let{to:r}=e;return r===void 0?t?.value?t.value.$el??t.value:n?.value?n.value:i?.value?i.value:s?.value?s.value:r??(c.value||`body`):r===!1?I:r===!0?c.value||`body`:r})}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=d({name:`Binder`,props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(t){p(`VBinder`,e()?.proxy);let n=r(`VBinder`,null),i=u(null),a=e=>{i.value=e,n&&t.syncTargetWithParent&&n.setTargetRef(e)},s=[],c=()=>{let e=i.value;for(;e=U(e),e!==null;)s.push(e);for(let e of s)h(`scroll`,e,_,!0)},l=()=>{for(let e of s)g(`scroll`,e,_,!0);s=[]},d=new Set,f=e=>{d.size===0&&c(),d.has(e)||d.add(e)},m=e=>{d.has(e)&&d.delete(e),d.size===0&&l()},_=()=>{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 o(()=>{g(`resize`,window,S),l()}),{targetRef:i,setTargetRef:a,addScrollListener:f,removeScrollListener:m,addResizeListener:b,removeResizeListener:x}},render(){return b(`binder`,this.$slots)}}),G=d({name:`Target`,setup(){let{setTargetRef:e,syncTarget:t}=r(`VBinder`);return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){let{syncTarget:e,setTargetDirective:t}=this;return e?l(x(`follower`,this.$slots),[[t]]):x(`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=d({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(e){let n=r(`VBinder`),s=T(()=>e.enabled===void 0?e.show:e.enabled),l=u(null),d=u(null),p=()=>{let{syncTrigger:t}=e;t.includes(`scroll`)&&n.addScrollListener(g),t.includes(`resize`)&&n.addResizeListener(g)},m=()=>{n.removeScrollListener(g),n.removeResizeListener(g)};a(()=>{s.value&&(g(),p())});let h=t();ae.mount({id:`vueuc/binder`,head:!0,anchorMetaName:q,ssr:h}),o(()=>{m()}),N(()=>{s.value&&g()});let g=()=>{if(!s.value)return;let t=l.value;if(t===null)return;let r=n.targetRef,{x:i,y:a,overlap:o}=e,c=i!==void 0&&a!==void 0?B(i,a):V(r);t.style.setProperty(`--v-target-width`,`${Math.round(c.width)}px`),t.style.setProperty(`--v-target-height`,`${Math.round(c.height)}px`);let{width:u,minWidth:f,placement:p,internalShift:m,flip:h}=e;t.setAttribute(`v-placement`,p),o?t.setAttribute(`v-overlap`,``):t.removeAttribute(`v-overlap`);let{style:g}=t;u===`target`?g.width=`${c.width}px`:u===void 0?g.width=``:g.width=u,f===`target`?g.minWidth=`${c.width}px`:f===void 0?g.minWidth=``:g.minWidth=f;let _=V(t),v=V(d.value),{left:y,top:b,placement:x}=ne(p,c,_,m,h,o),S=re(x,o),{left:C,top:w,transform:T}=ie(x,v,c,b,y,o);t.setAttribute(`v-placement`,x),t.style.setProperty(`--v-offset-left`,`${Math.round(y)}px`),t.style.setProperty(`--v-offset-top`,`${Math.round(b)}px`),t.style.transform=`translateX(${C}) translateY(${w}) ${T}`,t.style.setProperty(`--v-transform-origin`,S),t.style.transformOrigin=S};f(s,e=>{e?(p(),_()):m()});let _=()=>{i().then(g).catch(e=>console.error(e))};[`placement`,`x`,`y`,`internalShift`,`flip`,`width`,`overlap`,`minWidth`].forEach(t=>{f(c(e,t),g)}),[`teleportDisabled`].forEach(t=>{f(c(e,t),_)}),f(c(e,`syncTrigger`),e=>{e.includes(`resize`)?n.addResizeListener(g):n.removeResizeListener(g),e.includes(`scroll`)?n.addScrollListener(g):n.removeScrollListener(g)});let v=E();return{VBinder:n,mergedEnabled:s,offsetContainerRef:d,followerRef:l,mergedTo:T(()=>{let{to:t}=e;if(t!==void 0)return t;v.value}),syncPosition:g}},render(){return n(y,{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?l(t,[[S,{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 +import{At as e,J as t,Mt as n,Pt as r,Rt as i,Ut as a,Vt as o,Y as s,_n as c,an as l,hn as u,kt as d,nn as f,qt as p,ut as m}from"./client-CREJv8AD.js";import{d as h,u as g}from"./Card-CJC2gN5t.js";import{C as _,_ as v,f as y,g as b,h as x,p as S,v as C,x as w}from"./Suffix-iFHNypz-.js";import{Q as T,Z as E}from"./index-DZpFhWFx.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=_?document?.fonts?.ready:void 0,M=!1;j===void 0?M=!0:j.then(()=>{M=!0});function N(e){if(M)return;let t=!1;a(()=>{M||j?.then(()=>{t||e()})}),o(()=>{t=!0})}var P=s(`n-internal-select-menu`),F=s(`n-internal-select-menu-body`),I=`__disabled__`;function L(e){let t=r(C,null),n=r(w,null),i=r(v,null),s=r(F,null),c=u();if(typeof document<`u`){c.value=document.fullscreenElement;let e=()=>{c.value=document.fullscreenElement};a(()=>{h(`fullscreenchange`,document,e)}),o(()=>{g(`fullscreenchange`,document,e)})}return T(()=>{let{to:r}=e;return r===void 0?t?.value?t.value.$el??t.value:n?.value?n.value:i?.value?i.value:s?.value?s.value:r??(c.value||`body`):r===!1?I:r===!0?c.value||`body`:r})}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=d({name:`Binder`,props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(t){p(`VBinder`,e()?.proxy);let n=r(`VBinder`,null),i=u(null),a=e=>{i.value=e,n&&t.syncTargetWithParent&&n.setTargetRef(e)},s=[],c=()=>{let e=i.value;for(;e=U(e),e!==null;)s.push(e);for(let e of s)h(`scroll`,e,_,!0)},l=()=>{for(let e of s)g(`scroll`,e,_,!0);s=[]},d=new Set,f=e=>{d.size===0&&c(),d.has(e)||d.add(e)},m=e=>{d.has(e)&&d.delete(e),d.size===0&&l()},_=()=>{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 o(()=>{g(`resize`,window,S),l()}),{targetRef:i,setTargetRef:a,addScrollListener:f,removeScrollListener:m,addResizeListener:b,removeResizeListener:x}},render(){return b(`binder`,this.$slots)}}),G=d({name:`Target`,setup(){let{setTargetRef:e,syncTarget:t}=r(`VBinder`);return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){let{syncTarget:e,setTargetDirective:t}=this;return e?l(x(`follower`,this.$slots),[[t]]):x(`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=d({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(e){let n=r(`VBinder`),s=T(()=>e.enabled===void 0?e.show:e.enabled),l=u(null),d=u(null),p=()=>{let{syncTrigger:t}=e;t.includes(`scroll`)&&n.addScrollListener(g),t.includes(`resize`)&&n.addResizeListener(g)},m=()=>{n.removeScrollListener(g),n.removeResizeListener(g)};a(()=>{s.value&&(g(),p())});let h=t();ae.mount({id:`vueuc/binder`,head:!0,anchorMetaName:q,ssr:h}),o(()=>{m()}),N(()=>{s.value&&g()});let g=()=>{if(!s.value)return;let t=l.value;if(t===null)return;let r=n.targetRef,{x:i,y:a,overlap:o}=e,c=i!==void 0&&a!==void 0?B(i,a):V(r);t.style.setProperty(`--v-target-width`,`${Math.round(c.width)}px`),t.style.setProperty(`--v-target-height`,`${Math.round(c.height)}px`);let{width:u,minWidth:f,placement:p,internalShift:m,flip:h}=e;t.setAttribute(`v-placement`,p),o?t.setAttribute(`v-overlap`,``):t.removeAttribute(`v-overlap`);let{style:g}=t;u===`target`?g.width=`${c.width}px`:u===void 0?g.width=``:g.width=u,f===`target`?g.minWidth=`${c.width}px`:f===void 0?g.minWidth=``:g.minWidth=f;let _=V(t),v=V(d.value),{left:y,top:b,placement:x}=ne(p,c,_,m,h,o),S=re(x,o),{left:C,top:w,transform:T}=ie(x,v,c,b,y,o);t.setAttribute(`v-placement`,x),t.style.setProperty(`--v-offset-left`,`${Math.round(y)}px`),t.style.setProperty(`--v-offset-top`,`${Math.round(b)}px`),t.style.transform=`translateX(${C}) translateY(${w}) ${T}`,t.style.setProperty(`--v-transform-origin`,S),t.style.transformOrigin=S};f(s,e=>{e?(p(),_()):m()});let _=()=>{i().then(g).catch(e=>console.error(e))};[`placement`,`x`,`y`,`internalShift`,`flip`,`width`,`overlap`,`minWidth`].forEach(t=>{f(c(e,t),g)}),[`teleportDisabled`].forEach(t=>{f(c(e,t),_)}),f(c(e,`syncTrigger`),e=>{e.includes(`resize`)?n.addResizeListener(g):n.removeResizeListener(g),e.includes(`scroll`)?n.addScrollListener(g):n.removeScrollListener(g)});let v=E();return{VBinder:n,mergedEnabled:s,offsetContainerRef:d,followerRef:l,mergedTo:T(()=>{let{to:t}=e;if(t!==void 0)return t;v.value}),syncPosition:g}},render(){return n(y,{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?l(t,[[S,{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/FormItem-DcGe8Cb7.js b/frontend/dist/assets/FormItem-DVxlQf-S.js similarity index 98% rename from frontend/dist/assets/FormItem-DcGe8Cb7.js rename to frontend/dist/assets/FormItem-DVxlQf-S.js index d648aa3..40fa94c 100644 --- a/frontend/dist/assets/FormItem-DcGe8Cb7.js +++ b/frontend/dist/assets/FormItem-DVxlQf-S.js @@ -1,4 +1,4 @@ -import{At as e,H as t,Mt as n,Pt as r,U as i,Ut as a,Vt as o,Y as s,_n as c,at as l,bt as u,h as d,hn as f,it as p,kt as m,nn as h,nt as g,p as _,q as v,qt as y,st as b,tt as x}from"./client-vZFx54yb.js";import{s as S}from"./Card-DO3oxl4F.js";import{o as C}from"./_plugin-vue_export-helper-FodinAjS.js";import{o as w,t as T}from"./get-kvHFoxYO.js";import{t as ee}from"./use-form-item-DwWmLpgT.js";import{$ as te,d as ne,nt as E}from"./index-Ci0r-yTA.js";function re(t,n,i){let a=r(t,null);if(a===null)return;let s=e()?.proxy;h(i,c),c(i.value),o(()=>{c(void 0,i.value)});function c(e,t){if(!a)return;let r=a[n];t!==void 0&&l(r,t),e!==void 0&&u(r,e)}function l(e,t){e[t]||(e[t]=[]),e[t].splice(e[t].findIndex(e=>e===s),1)}function u(e,t){e[t]||(e[t]=[]),~e[t].findIndex(e=>e===s)||e[t].push(s)}}var D=s(`n-form`),ie=s(`n-form-item-insts`);function O(){return O=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 N(e,t,n){return N=M()?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&&j(i,n.prototype),i},N.apply(null,arguments)}function P(e){return Function.toString.call(e).indexOf(`[native code]`)!==-1}function F(e){var t=typeof Map==`function`?new Map:void 0;return F=function(e){if(e===null||!P(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 N(e,arguments,A(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),j(n,e)},F(e)}var I=/%[sdj%]/g,L=function(){};function R(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 z(e){var t=[...arguments].slice(1),n=0,r=t.length;return typeof e==`function`?e.apply(null,t):typeof e==`string`?e.replace(I,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 B(e){return e===`string`||e===`url`||e===`hex`||e===`email`||e===`date`||e===`pattern`}function V(e,t){return!!(e==null||t===`array`&&Array.isArray(e)&&!e.length||B(t)&&typeof e==`string`&&!e)}function H(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 U(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{c(void 0,i.value)});function c(e,t){if(!a)return;let r=a[n];t!==void 0&&l(r,t),e!==void 0&&u(r,e)}function l(e,t){e[t]||(e[t]=[]),e[t].splice(e[t].findIndex(e=>e===s),1)}function u(e,t){e[t]||(e[t]=[]),~e[t].findIndex(e=>e===s)||e[t].push(s)}}var D=s(`n-form`),ie=s(`n-form-item-insts`);function O(){return O=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 N(e,t,n){return N=M()?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&&j(i,n.prototype),i},N.apply(null,arguments)}function P(e){return Function.toString.call(e).indexOf(`[native code]`)!==-1}function F(e){var t=typeof Map==`function`?new Map:void 0;return F=function(e){if(e===null||!P(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 N(e,arguments,A(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),j(n,e)},F(e)}var I=/%[sdj%]/g,L=function(){};function R(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 z(e){var t=[...arguments].slice(1),n=0,r=t.length;return typeof e==`function`?e.apply(null,t):typeof e==`string`?e.replace(I,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 B(e){return e===`string`||e===`url`||e===`hex`||e===`email`||e===`date`||e===`pattern`}function V(e,t){return!!(e==null||t===`array`&&Array.isArray(e)&&!e.length||B(t)&&typeof e==`string`&&!e)}function H(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 U(e,t,n){var r=0,i=e.length;function a(o){if(o&&o.length){n(o);return}var s=r;r+=1,se.questionCode==t)?.score??`—`}let $=o(()=>{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=o(()=>$.value.length>1?`Победители`:`Победитель`),fe=o(()=>{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(){y.logout(),U.push(`/login`)}function he(){if(window.history.state?.back){U.back();return}U.push(`/games`)}return(te,o)=>(r(),p(c,null,[m(`div`,re,[m(`div`,ie,[m(`div`,ae,[a(h(b),{justify:`space-between`,align:`center`},{default:l(()=>[m(`div`,null,[o[0]||=m(`div`,{class:`page-title`},`Итоги игры`,-1),Q.value?(r(),p(`div`,oe,i(Q.value),1)):e(``,!0)]),a(h(v),{quaternary:``,onClick:he},{default:l(()=>[...o[1]||=[t(`Назад`,-1)]]),_:1})]),_:1})]),G.value&&$.value.length>0?(r(),p(`div`,T,[m(`span`,E,[a(h(_),{size:`56`},{default:l(()=>[a(h(ne))]),_:1})]),m(`div`,D,i(de.value),1),m(`div`,O,i(fe.value),1),m(`div`,k,` Баллы: `+i($.value[0]?.totalScore??0)+` · Поездки: `+i($.value[0]?.actionsCount??0),1),o[2]||=m(`div`,{class:`winner-congrats`},`Поздравляем!`,-1)])):e(``,!0),Y.value?(r(),p(`div`,A,[o[4]||=m(`p`,{class:`info-title`},`Для просмотра итогов игры нужно войти в систему`,-1),a(h(b),{justify:`end`},{default:l(()=>[a(h(v),{onClick:pe},{default:l(()=>[...o[3]||=[t(`Войти`,-1)]]),_:1})]),_:1})])):K.value?(r(),p(`div`,j,[m(`p`,M,i(q.value),1),J.value?(r(),p(c,{key:0},[o[6]||=m(`p`,{class:`info-subtitle`},`Сессия могла истечь — попробуйте войти заново`,-1),a(h(b),{justify:`end`},{default:l(()=>[a(h(v),{onClick:me},{default:l(()=>[...o[5]||=[t(`Войти заново`,-1)]]),_:1})]),_:1})],64)):e(``,!0)])):G.value&&Z.value.length==0?(r(),p(`div`,N,[...o[7]||=[m(`p`,{class:`info-title`},`Результаты пока не готовы`,-1)]])):G.value?(r(),p(`div`,P,[m(`table`,F,[m(`thead`,null,[m(`tr`,null,[o[8]||=m(`th`,{class:`place-col`},`Место`,-1),o[9]||=m(`th`,{class:`team-col`},`Команда`,-1),(r(!0),p(c,null,n(X.value,e=>(r(),p(`th`,{key:e.code,class:`question-col`,title:e.text},[m(`div`,L,i(e.text),1)],8,I))),128)),o[10]||=m(`th`,{class:`number-col`},`Сумма`,-1),o[11]||=m(`th`,{class:`number-col`},`Поездки`,-1)])]),m(`tbody`,null,[(r(!0),p(c,null,n(Z.value,e=>(r(),p(`tr`,{key:e.team?.ID},[m(`td`,R,[e.place!=null&&e.place>=1&&e.place<=3?(r(),p(`span`,{key:0,class:ee([`place-badge`,`place-`+e.place])},i(e.place),3)):(r(),p(`span`,z,i(e.place),1))]),m(`td`,se,i(e.team?.name),1),(r(!0),p(c,null,n(X.value,t=>(r(),p(`td`,{key:t.code,class:`number-col`},i(ue(e,t.code)),1))),128)),m(`td`,B,i(e.totalScore),1),m(`td`,V,i(e.actionsCount),1)]))),128))])])])):e(``,!0)])]),a(C,{active:`games`})],64))}}),[[`__scopeId`,`data-v-ed9aeaf7`]]),U=u({__name:`GameResultsView`,setup(e){return(e,t)=>(r(),te(H))}});export{U as default}; \ No newline at end of file +import{Ct as e,Dt as t,Fn as ee,Jt as n,Kt as r,Ln as i,Ot as a,St as te,bt as o,hn as s,ht as c,in as l,kt as u,l as d,u as f,wt as p,xt as m,yn as h}from"./client-CREJv8AD.js";import{n as g,t as _}from"./es-CevmKZP_.js";import{t as v}from"./Button-MvNgQLzL.js";import{t as y}from"./_plugin-vue_export-helper-BkfvhliL.js";import{t as b}from"./Flex-B0ZjnZ3e.js";import{n as x,t as S}from"./index-DZpFhWFx.js";import{t as C}from"./HeaderMenu-BarRlY0P.js";var w={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},ne=u({name:`TrophyFilled`,render:function(e,t){return r(),p(`svg`,w,t[0]||=[m(`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)])}}),re={class:`center-block-custom`},ie={class:`width1200`},ae={class:`page-header`},oe={key:0,class:`game-name`},T={key:0,class:`winner-block`},E={class:`winner-cup`,"aria-hidden":`true`},D={class:`winner-label`},O={class:`winner-names`},k={class:`winner-stats`},A={key:1,class:`info-block`},j={key:2,class:`info-block`},M={class:`info-title`},N={key:3,class:`info-block`},P={key:4,class:`table-scroll`},F={class:`results-table`},I=[`title`],L={class:`question-text`},R={class:`place-col`},z={key:1,class:`place-plain`},se={class:`team-col`},B={class:`number-col`},V={class:`number-col`},H=y(u({__name:`GameResultsPage`,setup(te){let u=x(),y=S(),w=g(),H=d(),U=f(),W=H.params.id,G=s(!1),K=s(!1),q=s(``),J=s(!1),Y=s(!1),X=s([]),Z=s([]),Q=s(``);async function ce(){G.value=!1,K.value=!1,Y.value=!1,J.value=!1;try{let e=await u.GetGameResults({gameID:Number(W)});X.value=e.questions||[],Z.value=e.teams||[],G.value=!0}catch{y.isAuthenticated?(q.value=`Не удалось загрузить результаты`,w.error(q.value),J.value=!0,K.value=!0):Y.value=!0}}ce();async function le(){try{let e=await u.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 $=o(()=>{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=o(()=>$.value.length>1?`Победители`:`Победитель`),fe=o(()=>{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(){y.logout(),U.push(`/login`)}function he(){if(window.history.state?.back){U.back();return}U.push(`/games`)}return(te,o)=>(r(),p(c,null,[m(`div`,re,[m(`div`,ie,[m(`div`,ae,[a(h(b),{justify:`space-between`,align:`center`},{default:l(()=>[m(`div`,null,[o[0]||=m(`div`,{class:`page-title`},`Итоги игры`,-1),Q.value?(r(),p(`div`,oe,i(Q.value),1)):e(``,!0)]),a(h(v),{quaternary:``,onClick:he},{default:l(()=>[...o[1]||=[t(`Назад`,-1)]]),_:1})]),_:1})]),G.value&&$.value.length>0?(r(),p(`div`,T,[m(`span`,E,[a(h(_),{size:`56`},{default:l(()=>[a(h(ne))]),_:1})]),m(`div`,D,i(de.value),1),m(`div`,O,i(fe.value),1),m(`div`,k,` Баллы: `+i($.value[0]?.totalScore??0)+` · Поездки: `+i($.value[0]?.actionsCount??0),1),o[2]||=m(`div`,{class:`winner-congrats`},`Поздравляем!`,-1)])):e(``,!0),Y.value?(r(),p(`div`,A,[o[4]||=m(`p`,{class:`info-title`},`Для просмотра итогов игры нужно войти в систему`,-1),a(h(b),{justify:`end`},{default:l(()=>[a(h(v),{onClick:pe},{default:l(()=>[...o[3]||=[t(`Войти`,-1)]]),_:1})]),_:1})])):K.value?(r(),p(`div`,j,[m(`p`,M,i(q.value),1),J.value?(r(),p(c,{key:0},[o[6]||=m(`p`,{class:`info-subtitle`},`Сессия могла истечь — попробуйте войти заново`,-1),a(h(b),{justify:`end`},{default:l(()=>[a(h(v),{onClick:me},{default:l(()=>[...o[5]||=[t(`Войти заново`,-1)]]),_:1})]),_:1})],64)):e(``,!0)])):G.value&&Z.value.length==0?(r(),p(`div`,N,[...o[7]||=[m(`p`,{class:`info-title`},`Результаты пока не готовы`,-1)]])):G.value?(r(),p(`div`,P,[m(`table`,F,[m(`thead`,null,[m(`tr`,null,[o[8]||=m(`th`,{class:`place-col`},`Место`,-1),o[9]||=m(`th`,{class:`team-col`},`Команда`,-1),(r(!0),p(c,null,n(X.value,e=>(r(),p(`th`,{key:e.code,class:`question-col`,title:e.text},[m(`div`,L,i(e.text),1)],8,I))),128)),o[10]||=m(`th`,{class:`number-col`},`Сумма`,-1),o[11]||=m(`th`,{class:`number-col`},`Поездки`,-1)])]),m(`tbody`,null,[(r(!0),p(c,null,n(Z.value,e=>(r(),p(`tr`,{key:e.team?.ID},[m(`td`,R,[e.place!=null&&e.place>=1&&e.place<=3?(r(),p(`span`,{key:0,class:ee([`place-badge`,`place-`+e.place])},i(e.place),3)):(r(),p(`span`,z,i(e.place),1))]),m(`td`,se,i(e.team?.name),1),(r(!0),p(c,null,n(X.value,t=>(r(),p(`td`,{key:t.code,class:`number-col`},i(ue(e,t.code)),1))),128)),m(`td`,B,i(e.totalScore),1),m(`td`,V,i(e.actionsCount),1)]))),128))])])])):e(``,!0)])]),a(C,{active:`games`})],64))}}),[[`__scopeId`,`data-v-ed9aeaf7`]]),U=u({__name:`GameResultsView`,setup(e){return(e,t)=>(r(),te(H))}});export{U as default}; \ No newline at end of file diff --git a/frontend/dist/assets/GameView-WS0tQgtY.css b/frontend/dist/assets/GameView-iXmnCzpU.css similarity index 68% rename from frontend/dist/assets/GameView-WS0tQgtY.css rename to frontend/dist/assets/GameView-iXmnCzpU.css index 3e4630b..d989ac1 100644 --- a/frontend/dist/assets/GameView-WS0tQgtY.css +++ b/frontend/dist/assets/GameView-iXmnCzpU.css @@ -1 +1 @@ -.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-1e1af018]{grid-template-columns:minmax(0,1fr) minmax(280px,420px);gap:8px;display:grid}.screens-title[data-v-1e1af018]{margin:0;font-size:18px;font-weight:600}.screen-header[data-v-1e1af018]{margin-bottom:8px}.screen-preview-placeholder[data-v-1e1af018]{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-1e1af018]{margin-bottom:8px}.screen-plan[data-v-1e1af018]{margin-top:16px}.screen-plan-step[data-v-1e1af018]{border-top:1px solid #ffffff1a;padding:8px 0}.map-field[data-v-1e1af018]{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-1e1af018]:active{cursor:grabbing}.map-canvas[data-v-1e1af018]{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-1e1af018]{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-1e1af018]:active{cursor:grabbing}.map-screen[data-v-1e1af018]{background-color:#355b75}.map-organizer-desk[data-v-1e1af018]{background-color:#48633a}.map-team[data-v-1e1af018]{background-color:#222}.map-team[data-v-1e1af018],.map-team[data-v-1e1af018]:active{cursor:default}.map-team-handle[data-v-1e1af018]{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-1e1af018]:active{cursor:grabbing}.map-team-applications[data-v-1e1af018]{margin-top:8px}.map-team-needs-applications[data-v-1e1af018]{outline:2px solid gold}.map-item small[data-v-1e1af018]{opacity:.75;display:block}.map-item-hide[data-v-1e1af018]{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-1e1af018]{padding:0 2px;line-height:16px;top:0}.map-hidden-items[data-v-1e1af018]{margin-top:16px}@media (width<1024px){.map-preview-layout[data-v-1e1af018]{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-c8e2dfff]{margin:0;font-size:18px;font-weight:600}.screen-header[data-v-c8e2dfff]{margin-bottom:8px}.music-block[data-v-c8e2dfff]{margin-top:12px}.playlist-actions[data-v-c8e2dfff]{margin:8px 0}.volume-control[data-v-c8e2dfff]{align-items:center;gap:6px;display:inline-flex}.volume-label[data-v-c8e2dfff]{white-space:nowrap}.volume-input[data-v-c8e2dfff]{width:108px}.screen-row[data-v-c8e2dfff]{border-top:1px solid #ffffff1a;justify-content:space-between;align-items:center;gap:8px;padding:8px 0;display:flex}.screen-status[data-v-c8e2dfff]{color:#aaa;font-size:13px}.screen-empty[data-v-c8e2dfff]{color:#aaa;margin:16px 0 0}.screen-error[data-v-c8e2dfff]{color:#f2a2a2;font-size:13px}.track-list[data-v-c8e2dfff]{flex-basis:100%;margin-top:8px;padding:0 8px}.track-empty[data-v-c8e2dfff]{color:#aaa;margin:0}.track-row[data-v-c8e2dfff]{border-top:1px solid #ffffff1a;justify-content:space-between;align-items:center;gap:8px;min-height:56px;padding:12px 8px;display:flex}.track-row-active[data-v-c8e2dfff]{background:#ffffff1f}.track-main[data-v-c8e2dfff]{flex:1;align-items:center;gap:12px;display:flex;overflow:hidden}.track-number[data-v-c8e2dfff]{color:#aaa;font-variant-numeric:tabular-nums;text-align:left;flex:0 0 20px}.track-details[data-v-c8e2dfff]{text-align:left;flex-direction:column;min-width:0;display:flex}.track-name[data-v-c8e2dfff]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.track-actions[data-v-c8e2dfff]{flex:none}.track-switch-active[data-v-c8e2dfff]{font-weight:600}@media (width<1024px){.track-list[data-v-c8e2dfff]{padding:0}.track-row[data-v-c8e2dfff]{flex-direction:column;align-items:stretch;gap:12px;padding:12px}.track-main[data-v-c8e2dfff]{width:100%}.track-actions[data-v-c8e2dfff]{justify-content:flex-end;width:100%}.track-actions .n-button[data-v-c8e2dfff]{flex:1}.volume-control[data-v-c8e2dfff]{justify-content:space-between;width:100%}.volume-input[data-v-c8e2dfff]{flex:1;width:auto}}.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}.ticket-scanner-video[data-v-fe322487]{aspect-ratio:1;object-fit:cover;background-color:#000;width:100%;max-height:60vh}.reviews-summary[data-v-55e6455c]{margin-bottom:16px}.game-tab-content[data-v-55e6455c]{padding-top:0}.review-row[data-v-55e6455c]{border-top:1px solid #777;padding:16px 0}.review-row p[data-v-55e6455c]{white-space:pre-wrap}.team-block-hover[data-v-55e6455c]:hover{color:#63e2b7;cursor:pointer;border:1px solid #63e2b7}.team-content-block[data-v-55e6455c]{padding:20px}.team-name-block[data-v-55e6455c]{font-size:20px;font-weight:600}.settings-icon[data-v-55e6455c]{width:20px}.settings-actions[data-v-55e6455c]{margin-top:16px}.link-button[data-v-55e6455c]{width:100%;margin-top:16px}.place-image-plus[data-v-55e6455c]{justify-content:center;align-items:center;font-size:30px;display:flex}.name-text[data-v-55e6455c]{background-color:#ffffff1a;border-radius:3px;padding:3px}.qr-block[data-v-55e6455c]{background-color:#fff;margin:0 auto;padding:16px;line-height:0;display:inline-block}.payment-link[data-v-55e6455c]{color:#63e2b7}.payment-link[data-v-55e6455c]:focus,.payment-link[data-v-55e6455c]:hover{color:#8ff0cc}.give-application-image-block[data-v-55e6455c]{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-55e6455c]{width:100%}.give-application-audio[data-v-55e6455c]{width:100%;margin:8px 0}.give-application-pdf-link[data-v-55e6455c]{margin:8px 0;text-decoration:underline;display:inline-block}.answers-empty[data-v-55e6455c]{color:#777}.answers-question-title[data-v-55e6455c]{margin:0 0 8px;font-size:17px;font-weight:600}.answers-question-answer[data-v-55e6455c]{color:#aaa;margin:0 0 16px}.correct-answer[data-v-55e6455c]{color:gold;white-space:pre-wrap;margin-top:8px;font-weight:500;display:inline-block}.answers-team-row[data-v-55e6455c]{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-55e6455c]{width:180px;font-weight:600}.answers-team-answer[data-v-55e6455c]{color:#aaa;white-space:pre-wrap;flex:200px}.answers-score-input[data-v-55e6455c]{width:110px}.screens-title[data-v-55e6455c]{margin-bottom:8px;font-size:18px;font-weight:600}.screen-row[data-v-55e6455c]{border-top:1px solid #ffffff1a;justify-content:space-between;align-items:center;gap:8px;padding:16px 0;display:flex}.screen-status[data-v-55e6455c]{color:#aaa;font-size:13px}.screen-empty[data-v-55e6455c]{color:#aaa;margin:16px 0 0}.screen-error[data-v-55e6455c]{color:#f2a2a2;font-size:13px}.map-preview-layout[data-v-55e6455c]{grid-template-columns:minmax(0,1fr) minmax(280px,420px);gap:16px;display:grid}.screen-preview-placeholder[data-v-55e6455c]{aspect-ratio:16/9;color:#aaa;text-align:center;background-color:#111;justify-content:center;align-items:center;display:flex}.map-field[data-v-55e6455c]{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-55e6455c]:active{cursor:grabbing}.map-canvas[data-v-55e6455c]{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-55e6455c]{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-55e6455c]:active{cursor:grabbing}.map-screen[data-v-55e6455c]{background-color:#355b75}.map-organizer-desk[data-v-55e6455c]{background-color:#48633a}.map-team[data-v-55e6455c]{background-color:#222}.map-team[data-v-55e6455c],.map-team[data-v-55e6455c]:active{cursor:default}.map-team-handle[data-v-55e6455c]{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-55e6455c]:active{cursor:grabbing}.map-team-applications[data-v-55e6455c]{margin-top:8px}.map-team-needs-applications[data-v-55e6455c]{outline:2px solid gold}.map-item small[data-v-55e6455c]{opacity:.75;display:block}.map-item-hide[data-v-55e6455c]{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-55e6455c]{padding:0 2px;line-height:16px;top:0}.map-hidden-items[data-v-55e6455c]{margin-top:16px}@media (width<1024px){.map-preview-layout[data-v-55e6455c]{grid-template-columns:1fr}}.issued-ticket[data-v-55e6455c]{border-top:1px solid #777;flex-wrap:wrap;align-items:center;gap:8px;padding-top:8px;display:flex} +.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-1e1af018]{grid-template-columns:minmax(0,1fr) minmax(280px,420px);gap:8px;display:grid}.screens-title[data-v-1e1af018]{margin:0;font-size:18px;font-weight:600}.screen-header[data-v-1e1af018]{margin-bottom:8px}.screen-preview-placeholder[data-v-1e1af018]{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-1e1af018]{margin-bottom:8px}.screen-plan[data-v-1e1af018]{margin-top:16px}.screen-plan-step[data-v-1e1af018]{border-top:1px solid #ffffff1a;padding:8px 0}.map-field[data-v-1e1af018]{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-1e1af018]:active{cursor:grabbing}.map-canvas[data-v-1e1af018]{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-1e1af018]{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-1e1af018]:active{cursor:grabbing}.map-screen[data-v-1e1af018]{background-color:#355b75}.map-organizer-desk[data-v-1e1af018]{background-color:#48633a}.map-team[data-v-1e1af018]{background-color:#222}.map-team[data-v-1e1af018],.map-team[data-v-1e1af018]:active{cursor:default}.map-team-handle[data-v-1e1af018]{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-1e1af018]:active{cursor:grabbing}.map-team-applications[data-v-1e1af018]{margin-top:8px}.map-team-needs-applications[data-v-1e1af018]{outline:2px solid gold}.map-item small[data-v-1e1af018]{opacity:.75;display:block}.map-item-hide[data-v-1e1af018]{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-1e1af018]{padding:0 2px;line-height:16px;top:0}.map-hidden-items[data-v-1e1af018]{margin-top:16px}@media (width<1024px){.map-preview-layout[data-v-1e1af018]{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-c8e2dfff]{margin:0;font-size:18px;font-weight:600}.screen-header[data-v-c8e2dfff]{margin-bottom:8px}.music-block[data-v-c8e2dfff]{margin-top:12px}.playlist-actions[data-v-c8e2dfff]{margin:8px 0}.volume-control[data-v-c8e2dfff]{align-items:center;gap:6px;display:inline-flex}.volume-label[data-v-c8e2dfff]{white-space:nowrap}.volume-input[data-v-c8e2dfff]{width:108px}.screen-row[data-v-c8e2dfff]{border-top:1px solid #ffffff1a;justify-content:space-between;align-items:center;gap:8px;padding:8px 0;display:flex}.screen-status[data-v-c8e2dfff]{color:#aaa;font-size:13px}.screen-empty[data-v-c8e2dfff]{color:#aaa;margin:16px 0 0}.screen-error[data-v-c8e2dfff]{color:#f2a2a2;font-size:13px}.track-list[data-v-c8e2dfff]{flex-basis:100%;margin-top:8px;padding:0 8px}.track-empty[data-v-c8e2dfff]{color:#aaa;margin:0}.track-row[data-v-c8e2dfff]{border-top:1px solid #ffffff1a;justify-content:space-between;align-items:center;gap:8px;min-height:56px;padding:12px 8px;display:flex}.track-row-active[data-v-c8e2dfff]{background:#ffffff1f}.track-main[data-v-c8e2dfff]{flex:1;align-items:center;gap:12px;display:flex;overflow:hidden}.track-number[data-v-c8e2dfff]{color:#aaa;font-variant-numeric:tabular-nums;text-align:left;flex:0 0 20px}.track-details[data-v-c8e2dfff]{text-align:left;flex-direction:column;min-width:0;display:flex}.track-name[data-v-c8e2dfff]{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.track-actions[data-v-c8e2dfff]{flex:none}.track-switch-active[data-v-c8e2dfff]{font-weight:600}@media (width<1024px){.track-list[data-v-c8e2dfff]{padding:0}.track-row[data-v-c8e2dfff]{flex-direction:column;align-items:stretch;gap:12px;padding:12px}.track-main[data-v-c8e2dfff]{width:100%}.track-actions[data-v-c8e2dfff]{justify-content:flex-end;width:100%}.track-actions .n-button[data-v-c8e2dfff]{flex:1}.volume-control[data-v-c8e2dfff]{justify-content:space-between;width:100%}.volume-input[data-v-c8e2dfff]{flex:1;width:auto}}.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}.ticket-scanner-video[data-v-fe322487]{aspect-ratio:1;object-fit:cover;background-color:#000;width:100%;max-height:60vh}.reviews-summary[data-v-9207dc34]{margin-bottom:16px}.game-tab-content[data-v-9207dc34]{padding-top:0}.review-row[data-v-9207dc34]{border-top:1px solid #777;padding:16px 0}.review-row p[data-v-9207dc34]{white-space:pre-wrap}.team-block-hover[data-v-9207dc34]:hover{color:#63e2b7;cursor:pointer;border:1px solid #63e2b7}.team-content-block[data-v-9207dc34]{padding:20px}.team-name-block[data-v-9207dc34]{font-size:20px;font-weight:600}.settings-icon[data-v-9207dc34]{width:20px}.settings-actions[data-v-9207dc34]{margin-top:16px}.link-button[data-v-9207dc34]{width:100%;margin-top:16px}.place-image-plus[data-v-9207dc34]{justify-content:center;align-items:center;font-size:30px;display:flex}.name-text[data-v-9207dc34]{background-color:#ffffff1a;border-radius:3px;padding:3px}.qr-block[data-v-9207dc34]{background-color:#fff;margin:0 auto;padding:16px;line-height:0;display:inline-block}.payment-link[data-v-9207dc34]{color:#63e2b7}.payment-link[data-v-9207dc34]:focus,.payment-link[data-v-9207dc34]:hover{color:#8ff0cc}.give-application-image-block[data-v-9207dc34]{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-9207dc34]{width:100%}.give-application-audio[data-v-9207dc34]{width:100%;margin:8px 0}.give-application-pdf-link[data-v-9207dc34]{margin:8px 0;text-decoration:underline;display:inline-block}.answers-empty[data-v-9207dc34]{color:#777}.answers-question-title[data-v-9207dc34]{margin:0 0 8px;font-size:17px;font-weight:600}.answers-question-answer[data-v-9207dc34]{color:#aaa;margin:0 0 16px}.correct-answer[data-v-9207dc34]{color:gold;white-space:pre-wrap;margin-top:8px;font-weight:500;display:inline-block}.answers-team-row[data-v-9207dc34]{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-9207dc34]{width:180px;font-weight:600}.answers-team-answer[data-v-9207dc34]{color:#aaa;white-space:pre-wrap;flex:200px}.answers-score-input[data-v-9207dc34]{width:110px}.screens-title[data-v-9207dc34]{margin-bottom:8px;font-size:18px;font-weight:600}.screen-row[data-v-9207dc34]{border-top:1px solid #ffffff1a;justify-content:space-between;align-items:center;gap:8px;padding:16px 0;display:flex}.screen-status[data-v-9207dc34]{color:#aaa;font-size:13px}.screen-empty[data-v-9207dc34]{color:#aaa;margin:16px 0 0}.screen-error[data-v-9207dc34]{color:#f2a2a2;font-size:13px}.map-preview-layout[data-v-9207dc34]{grid-template-columns:minmax(0,1fr) minmax(280px,420px);gap:16px;display:grid}.screen-preview-placeholder[data-v-9207dc34]{aspect-ratio:16/9;color:#aaa;text-align:center;background-color:#111;justify-content:center;align-items:center;display:flex}.map-field[data-v-9207dc34]{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-9207dc34]:active{cursor:grabbing}.map-canvas[data-v-9207dc34]{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-9207dc34]{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-9207dc34]:active{cursor:grabbing}.map-screen[data-v-9207dc34]{background-color:#355b75}.map-organizer-desk[data-v-9207dc34]{background-color:#48633a}.map-team[data-v-9207dc34]{background-color:#222}.map-team[data-v-9207dc34],.map-team[data-v-9207dc34]:active{cursor:default}.map-team-handle[data-v-9207dc34]{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-9207dc34]:active{cursor:grabbing}.map-team-applications[data-v-9207dc34]{margin-top:8px}.map-team-needs-applications[data-v-9207dc34]{outline:2px solid gold}.map-item small[data-v-9207dc34]{opacity:.75;display:block}.map-item-hide[data-v-9207dc34]{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-9207dc34]{padding:0 2px;line-height:16px;top:0}.map-hidden-items[data-v-9207dc34]{margin-top:16px}@media (width<1024px){.map-preview-layout[data-v-9207dc34]{grid-template-columns:1fr}}.issued-ticket[data-v-9207dc34]{border-top:1px solid #777;flex-wrap:wrap;align-items:center;gap:8px;padding-top:8px;display:flex} diff --git a/frontend/dist/assets/GameView-kWM4_0LQ.js b/frontend/dist/assets/GameView-kWM4_0LQ.js deleted file mode 100644 index b9c367a..0000000 --- a/frontend/dist/assets/GameView-kWM4_0LQ.js +++ /dev/null @@ -1,7 +0,0 @@ -import{Ct as e,Dt as t,Fn as n,In as r,It as i,Jt as a,Kt as o,Ln as s,Mt as c,Ot as l,Q as u,Rt as d,St as f,U as p,Ut as m,Vt as h,Wt as g,Xt as _,Yt as v,Zt as y,_n as b,an as x,bt as S,d as C,en as w,f as T,g as E,hn as D,ht as O,in as k,kt as A,l as ee,nn as j,nt as M,p as te,tt as ne,u as re,wt as N,xt as P,yn as F}from"./client-vZFx54yb.js";import{d as ie,t as I}from"./Card-DO3oxl4F.js";import{n as ae,r as oe,t as se}from"./es-DSPBzgpf.js";import{i as ce}from"./Suffix-iau-0Xu1.js";import{t as le}from"./Modal-XDlBuRmh.js";import{t as ue}from"./use-merged-state-CEu_RNRJ.js";import{n as de,t as L}from"./Button-Bx9JIj0e.js";import{n as fe,t as pe}from"./Tabs-DXSr-RHo.js";import{t as me}from"./Select-BDMkhuNb.js";import{i as R,o as z,s as B,t as V}from"./_plugin-vue_export-helper-FodinAjS.js";import{r as H,t as he}from"./Upload-B6W9RuvF.js";import{n as ge}from"./use-form-item-DwWmLpgT.js";import{t as _e}from"./Add-7eYe2Si6.js";import{t as U}from"./Input-D7YePN-E.js";import{n as ve,t as W}from"./Switch-CAv0P3By.js";import{t as G}from"./Alert-aZxDGAB-.js";import{t as K}from"./Space-BBIv_CVW.js";import{t as q}from"./Flex-CjWQ3AmY.js";import{t as ye}from"./Rate-DGhiVNSc.js";import{t as be}from"./QrCode-DxK4gby4.js";import{E as J,G as xe,Q as Y,at as Se,n as Ce,ot as we,st as Te,w as Ee}from"./index-Ci0r-yTA.js";import{t as De}from"./HeaderMenu-CoWgnRN4.js";import{t as Oe}from"./binary_client-B2m6lbs2.js";import{n as ke,r as Ae}from"./application-BR-GaUH8.js";import{n as je,t as Me}from"./datetime-BJNH0M1T.js";import{t as Ne}from"./useSimplePolling-ntn8lfqD.js";function Pe(e){let{textColorDisabled:t}=e;return{iconColorDisabled:t}}var Fe=T({name:`InputNumber`,common:C,peers:{Button:Ee,Input:J},self:Pe}),Ie=ne([M(`input-number-suffix`,` - display: inline-block; - margin-right: 10px; - `),M(`input-number-prefix`,` - display: inline-block; - margin-left: 10px; - `)]);function Le(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 Re(e,t){return typeof e==`number`?t===void 0?String(e):e.toFixed(t):``}function ze(e){if(e===null)return null;if(typeof e==`number`)return e;{let t=Number(e);return Number.isNaN(t)?null:t}}var Be=800,Ve=100,He=A({name:`InputNumber`,props:Object.assign(Object.assign({},te.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}=p(e),a=te(`InputNumber`,`-input-number`,Ie,Fe,e,n),{localeRef:o}=ce(`InputNumber`),s=ge(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:c,mergedDisabledRef:l,mergedStatusRef:f}=s,m=D(null),h=D(null),g=D(null),_=D(e.defaultValue),v=ue(b(e,`value`),_),y=D(``),x=e=>{let t=String(e).split(`.`)[1];return t?t.length:0},C=t=>{let n=[e.min,e.max,e.step,t].map(e=>e===void 0?0:x(e));return Math.max(...n)},w=Y(()=>{let{placeholder:t}=e;return t===void 0?o.value.placeholder:t}),T=Y(()=>{let t=ze(e.step);return t===null||t===0?1:Math.abs(t)}),O=Y(()=>{let t=ze(e.min);return t===null?null:t}),k=Y(()=>{let t=ze(e.max);return t===null?null:t}),A=()=>{let{value:t}=v;if(Z(t)){let{format:n,precision:r}=e;n?y.value=n(t):t===null||r===void 0||x(t)>r?y.value=Re(t,void 0):y.value=Re(t,r)}else y.value=String(t)};A();let ee=t=>{let{value:n}=v;if(t===n){A();return}let{"onUpdate:value":r,onUpdateValue:i,onChange:a}=e,{nTriggerFormInput:o,nTriggerFormChange:c}=s;a&&B(a,t),i&&B(i,t),r&&B(r,t),_.value=t,o(),c()},M=({offset:t,doUpdateIfValid:n,fixPrecision:r,isInputing:i})=>{let{value:a}=y;if(i&&X(a))return!1;let o=(e.parse||Le)(a);if(o===null)return n&&ee(null),null;if(Z(o)){let a=x(o),{precision:s}=e;if(s!==void 0&&st){if(!n||i)return!1;c=t}if(r!==null&&cM({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),re=Y(()=>{let{value:t}=v;if(e.validator&&t===null)return!1;let{value:n}=T;return M({offset:-n,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),N=Y(()=>{let{value:t}=v;if(e.validator&&t===null)return!1;let{value:n}=T;return M({offset:+n,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function P(t){let{onFocus:n}=e,{nTriggerFormFocus:r}=s;n&&B(n,t),r()}function F(t){if(t.target===m.value?.wrapperElRef)return;let n=M({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if(n!==!1){let e=m.value?.inputElRef;e&&(e.value=String(n||``)),v.value===n&&A()}else A();let{onBlur:r}=e,{nTriggerFormBlur:i}=s;r&&B(r,t),i(),d(()=>{A()})}function I(t){let{onClear:n}=e;n&&B(n,t)}function ae(){let{value:t}=N;if(!t){H();return}let{value:n}=v;if(n===null)e.validator||ee(de());else{let{value:e}=T;M({offset:e,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function oe(){let{value:t}=re;if(!t){z();return}let{value:n}=v;if(n===null)e.validator||ee(de());else{let{value:e}=T;M({offset:-e,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}let se=P,le=F;function de(){if(e.validator)return null;let{value:t}=O,{value:n}=k;return t===null?n===null?0:Math.min(0,n):Math.max(0,t)}function L(e){I(e),ee(null)}function fe(e){var t;g.value?.$el.contains(e.target)&&e.preventDefault(),h.value?.$el.contains(e.target)&&e.preventDefault(),(t=m.value)==null||t.activate()}let pe=null,me=null,R=null;function z(){R&&=(window.clearTimeout(R),null),pe&&=(window.clearInterval(pe),null)}let V=null;function H(){V&&=(window.clearTimeout(V),null),me&&=(window.clearInterval(me),null)}function he(){z(),R=window.setTimeout(()=>{pe=window.setInterval(()=>{oe()},Ve)},Be),ie(`mouseup`,document,z,{once:!0})}function _e(){H(),V=window.setTimeout(()=>{me=window.setInterval(()=>{ae()},Ve)},Be),ie(`mouseup`,document,H,{once:!0})}let U=()=>{me||ae()},ve=()=>{pe||oe()};function W(t){var n;if(t.key===`Enter`){if(t.target===m.value?.wrapperElRef)return;M({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((n=m.value)==null||n.deactivate())}else if(t.key===`ArrowUp`){if(!N.value||e.keyboard.ArrowUp===!1)return;t.preventDefault(),M({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&ae()}else if(t.key===`ArrowDown`){if(!re.value||e.keyboard.ArrowDown===!1)return;t.preventDefault(),M({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&oe()}}function G(t){y.value=t,e.updateValueOnInput&&!e.format&&!e.parse&&e.precision===void 0&&M({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}j(v,()=>{A()});let K={focus:()=>m.value?.focus(),blur:()=>m.value?.blur(),select:()=>m.value?.select()},q=E(`InputNumber`,r,n);return Object.assign(Object.assign({},K),{rtlEnabled:q,inputInstRef:m,minusButtonInstRef:h,addButtonInstRef:g,mergedClsPrefix:n,mergedBordered:t,uncontrolledValue:_,mergedValue:v,mergedPlaceholder:w,displayedValueInvalid:ne,mergedSize:c,mergedDisabled:l,displayedValue:y,addable:N,minusable:re,mergedStatus:f,handleFocus:se,handleBlur:le,handleClear:L,handleMouseDown:fe,handleAddClick:U,handleMinusClick:ve,handleAddMousedown:_e,handleMinusMousedown:he,handleKeyDown:W,handleUpdateDisplayedValue:G,mergedTheme:a,inputThemeOverrides:{paddingSmall:`0 8px 0 10px`,paddingMedium:`0 8px 0 12px`,paddingLarge:`0 8px 0 14px`},buttonThemeOverrides:S(()=>{let{self:{iconColorDisabled:e}}=a.value,[t,n,r,i]=u(e);return{textColorTextDisabled:`rgb(${t}, ${n}, ${r})`,opacityDisabled:`${i}`}})})},render(){let{mergedClsPrefix:e,$slots:t}=this,n=()=>c(de,{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(xe,{clsPrefix:e},{default:()=>c(ve,null)})])}),r=()=>c(de,{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(xe,{clsPrefix:e},{default:()=>c(_e,null)})])});return c(`div`,{class:[`${e}-input-number`,this.rtlEnabled&&`${e}-input-number--rtl`]},c(U,{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(),z(t.prefix,t=>t?c(`span`,{class:`${e}-input-number-prefix`},t):null)]:t.prefix?.call(t),suffix:()=>this.showButton?[z(t.suffix,t=>t?c(`span`,{class:`${e}-input-number-suffix`},t):null),this.buttonPlacement===`right`?n():null,r()]:t.suffix?.call(t)}))}}),Ue={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},We=A({name:`Flag`,render:function(e,t){return o(),N(`svg`,Ue,t[0]||=[P(`path`,{d:`M6 30H4V2h24l-5.8 9l5.8 9H6zm0-12h18.33l-4.53-7l4.53-7H6z`,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=A({name:`Pause`,render:function(e,t){return o(),N(`svg`,Ge,t[0]||=[P(`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),P(`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)])}}),qe={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},Je=A({name:`Play`,render:function(e,t){return o(),N(`svg`,qe,t[0]||=[P(`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)])}}),Ye={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},Xe=A({name:`Reset`,render:function(e,t){return o(),N(`svg`,Ye,t[0]||=[P(`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)])}}),Ze={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},Qe=A({name:`Trophy`,render:function(e,t){return o(),N(`svg`,Ze,t[0]||=[P(`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)])}}),$e={key:0,class:`timer-preview`},et=[`src`],tt=[`src`],nt={key:3,class:`preview-message`},rt={key:4,class:`preview-message`},it={key:5,class:`preview-message`},at={key:6,class:`preview-message`},ot={key:7,class:`preview-results`},st=[`src`],ct=V(A({__name:`ScreenPreview`,props:{state:{},questions:{},teams:{}},setup(t){let n=t,i=D(Date.now()),c=D(0),l=D(Date.now()),u=D(),d=null,f=S(()=>{let e=n.state.backgroundImage||n.state.coverImage;return e?{backgroundImage:`linear-gradient(rgb(0 0 0 / 55%), rgb(0 0 0 / 55%)), url("${e}")`}:{}}),p=S(()=>n.state.timerState===`SCREEN_TIMER_STATE_RUNNING`?Math.max(0,c.value-(i.value-l.value)/1e3):c.value),h=S(()=>{let e=Math.floor(p.value/60),t=Math.floor(p.value%60);return`${String(e).padStart(2,`0`)}:${String(t).padStart(2,`0`)}`}),_=S(()=>Ae(n.state.introAudio)),v=S(()=>Ae(n.state.conclusionVideo));return j(()=>[n.state.timerRemainingSeconds,n.state.timerState,n.state.stateVersion],()=>{let e=Math.max(0,Number(n.state.timerRemainingSeconds||0));if(n.state.timerState===`SCREEN_TIMER_STATE_RUNNING`&&u.value===n.state.timerState){let t=Math.max(0,c.value-(Date.now()-l.value)/1e3);if(Math.abs(e-t)<=.5)return}c.value=e,l.value=Date.now(),u.value=n.state.timerState},{immediate:!0}),m(()=>{d=window.setInterval(()=>{i.value=Date.now()},250)}),g(()=>{d!=null&&window.clearInterval(d)}),(n,i)=>(o(),N(`div`,{class:`screen-preview`,style:r(f.value)},[t.state.mode===`SCREEN_MODE_TIMER`?(o(),N(`div`,$e,[P(`h2`,null,s(t.state.timerLabel||`Перерыв`),1),P(`strong`,null,s(h.value),1)])):t.state.mode===`SCREEN_MODE_INTRO`&&_.value?(o(),N(`audio`,{key:1,src:_.value,controls:``},null,8,et)):t.state.mode===`SCREEN_MODE_CONCLUSION`&&v.value?(o(),N(`video`,{key:2,src:v.value,autoplay:``,class:`preview-video`,loop:``,muted:``,playsinline:``},null,8,tt)):t.state.mode===`SCREEN_MODE_CONCLUSION`?(o(),N(`div`,nt,` Видео закрывашки не задано `)):t.state.mode===`SCREEN_MODE_INTRO_DONE`?(o(),N(`div`,rt,`Успехов`)):t.state.mode===`SCREEN_MODE_CONCLUSION_DONE`?(o(),N(`div`,it,` Спасибо за игру! `)):t.state.mode===`SCREEN_MODE_TEXT`?(o(),N(`div`,at,s(t.state.text),1)):t.state.mode===`SCREEN_MODE_RESULTS`?(o(),N(`div`,ot,[i[4]||=P(`h2`,null,`Результаты`,-1),P(`table`,null,[P(`thead`,null,[P(`tr`,null,[i[0]||=P(`th`,null,`Место`,-1),i[1]||=P(`th`,null,`Команда`,-1),(o(!0),N(O,null,a(t.questions,e=>(o(),N(`th`,{key:e.code},s(e.code),1))),128)),i[2]||=P(`th`,null,`Сумма`,-1),i[3]||=P(`th`,null,`Ходы`,-1)])]),P(`tbody`,null,[(o(!0),N(O,null,a(t.teams,e=>(o(),N(`tr`,{key:e.team?.ID},[P(`td`,null,s(e.place),1),P(`td`,null,s(e.team?.name),1),(o(!0),N(O,null,a(t.questions,t=>(o(),N(`td`,{key:t.code},s(e.answers?.find(e=>e.questionCode===t.code)?.score??0),1))),128)),P(`td`,null,s(e.totalScore),1),P(`td`,null,s(e.actionsCount),1)]))),128))])])])):t.state.coverImage?(o(),N(`img`,{key:8,src:t.state.coverImage,alt:`Обложка дела`,class:`preview-cover`},null,8,st)):e(``,!0)],4))}}),[[`__scopeId`,`data-v-d5134fb8`]]),Q=V(A({__name:`UiBlock`,props:{tag:{default:`div`}},setup(e){return(t,n)=>(o(),f(y(e.tag),{class:`ui-block`},{default:k(()=>[v(t.$slots,`default`,{},void 0,!0)]),_:3}))}}),[[`__scopeId`,`data-v-80193f22`]]),lt={class:`map-preview-layout`},ut=[`onPointerdown`],dt=[`onPointerdown`],ft={key:2},pt=[`onClick`],mt={key:1,class:`screen-preview-placeholder`},ht={class:`screen-plan`},gt={key:0,class:`screen-empty`},_t=20,vt=V(A({__name:`GameMapPanel`,props:{mapItems:{},teams:{},screens:{},previewQuestions:{},previewTeams:{},screenPlan:{},screenPlanDraft:{},screenPlanDirty:{type:Boolean},screenPlanSaving:{type:Boolean},screenPlanMode:{},screenVolume:{},screenPosition:{}},emits:[`saveItem`,`dragging`,`giveApplication`,`addStep`,`edit`,`cancel`,`removeStep`,`moveStep`,`dirty`,`clearPlan`,`save`,`setStep`,`command`,`update:screenVolume`,`update:screenPosition`],setup(i,{emit:c}){let u=i,d=c,p=D(1),m=D({x:0,y:0}),g=D(),_=S(()=>u.screens.find(e=>e.status===`connected`)||u.screens[0]),v=S(()=>new Map(u.teams.filter(e=>e.applications?.length).map(e=>[e.ID,e]))),y=[{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`}],b,C;function w(e){let t=g.value;if(!t)return;let n=t.getBoundingClientRect();return{x:(e.clientX-n.left-t.clientLeft-m.value.x)/p.value,y:(e.clientY-n.top-t.clientTop-m.value.y)/p.value}}function T(e,t){let n=w(t);n&&(b={item:e,offsetX:n.x-(e.x||0),offsetY:n.y-(e.y||0)},d(`dragging`,!0),window.addEventListener(`pointermove`,E),window.addEventListener(`pointerup`,A,{once:!0}),window.addEventListener(`pointercancel`,A,{once:!0}))}function E(e){if(!b)return;let t=w(e);t&&(b.item.x=Math.round((t.x-b.offsetX)/_t)*_t,b.item.y=Math.round((t.y-b.offsetY)/_t)*_t)}function A(){if(!b)return;let e=b.item;b=void 0,window.removeEventListener(`pointermove`,E),window.removeEventListener(`pointerup`,A),window.removeEventListener(`pointercancel`,A),d(`dragging`,!1),d(`saveItem`,e)}function ee(e){e.hidden=!e.hidden,d(`saveItem`,e,e.hidden)}function j(e){p.value=Math.min(2,Math.max(.5,Number((p.value+e).toFixed(2))))}function M(){p.value=1,m.value={x:0,y:0}}function te(e){e.button===0&&(C={startX:e.clientX,startY:e.clientY,offsetX:m.value.x,offsetY:m.value.y},window.addEventListener(`pointermove`,ne),window.addEventListener(`pointerup`,re,{once:!0}))}function ne(e){C&&(m.value={x:C.offsetX+e.clientX-C.startX,y:C.offsetY+e.clientY-C.startY})}function re(){C=void 0,window.removeEventListener(`pointermove`,ne)}function ie(e){e.preventDefault(),j(e.deltaY<0?.1:-.1)}return h(()=>{b&&d(`dragging`,!1),window.removeEventListener(`pointermove`,E),window.removeEventListener(`pointerup`,A),window.removeEventListener(`pointercancel`,A),window.removeEventListener(`pointermove`,ne),window.removeEventListener(`pointerup`,re)}),(c,u)=>(o(),N(`div`,lt,[l(Q,null,{default:k(()=>[l(F(q),{align:`center`,justify:`space-between`,class:`screen-header`},{default:k(()=>[u[18]||=P(`p`,{class:`screens-title`},`Карта помещения`,-1),l(F(K),null,{default:k(()=>[l(F(L),{size:`small`,onClick:u[0]||=e=>j(-.1)},{default:k(()=>[...u[15]||=[t(`−`,-1)]]),_:1}),l(F(H),null,{default:k(()=>[t(s(Math.round(p.value*100))+`%`,1)]),_:1}),l(F(L),{size:`small`,onClick:u[1]||=e=>j(.1)},{default:k(()=>[...u[16]||=[t(`+`,-1)]]),_:1}),l(F(L),{size:`small`,onClick:M},{default:k(()=>[...u[17]||=[t(`Сбросить`,-1)]]),_:1})]),_:1})]),_:1}),P(`div`,{ref_key:`mapField`,ref:g,class:`map-field`,onPointerdown:te,onWheel:ie},[P(`div`,{class:`map-canvas`,style:r({transform:`translate(${m.value.x}px, ${m.value.y}px) scale(${p.value})`})},[(o(!0),N(O,null,a(i.mapItems,i=>x((o(),N(`div`,{key:`${i.kind}-${i.itemID}`,class:n([`map-item`,[i.kind===`screen`?`map-screen`:i.kind===`organizer_desk`?`map-organizer-desk`:`map-team`,{"map-team-needs-applications":i.kind===`team`&&v.value.has(i.itemID)}]]),style:r({left:`${i.x||0}px`,top:`${i.y||0}px`}),onPointerdown:Te(e=>i.kind!==`team`&&T(i,e),[`stop`])},[i.kind===`team`?(o(),N(`div`,{key:0,class:`map-team-handle`,onPointerdown:Te(e=>T(i,e),[`stop`])},null,40,dt)):e(``,!0),P(`span`,null,s(i.label),1),i.kind===`team`&&v.value.has(i.itemID)?(o(),f(F(K),{key:1,class:`map-team-applications`,vertical:``},{default:k(()=>[(o(!0),N(O,null,a(v.value.get(i.itemID)?.applications,e=>(o(),f(F(L),{key:e.name,size:`small`,onClick:t=>d(`giveApplication`,v.value.get(i.itemID),e)},{default:k(()=>[t(` Выдать: `+s(e.name),1)]),_:2},1032,[`onClick`]))),128))]),_:2},1024)):e(``,!0),i.kind===`screen`?(o(),N(`small`,ft,s(i.status)+s(i.soundEnabled?` · звук`:``),1)):e(``,!0),P(`button`,{class:`map-item-hide`,type:`button`,onPointerdown:u[2]||=Te(()=>{},[`stop`]),onClick:Te(e=>ee(i),[`stop`])},` × `,40,pt)],46,ut)),[[Se,!i.hidden]])),128))],4)],544),i.mapItems.some(e=>e.hidden)?(o(),f(F(K),{key:0,class:`map-hidden-items`},{default:k(()=>[(o(!0),N(O,null,a(i.mapItems.filter(e=>e.hidden),e=>(o(),f(F(L),{key:`hidden-${e.kind}-${e.itemID}`,size:`small`,onClick:t=>ee(e)},{default:k(()=>[t(` Добавить `+s(e.label),1)]),_:2},1032,[`onClick`]))),128))]),_:1})):e(``,!0)]),_:1}),l(Q,{tag:`aside`,class:`screen-preview-panel`},{default:k(()=>[u[41]||=P(`p`,{class:`screens-title`},`Превью экрана`,-1),_.value?.status===`connected`?(o(),f(ct,{key:0,state:_.value,questions:i.previewQuestions,teams:i.previewTeams},null,8,[`state`,`questions`,`teams`])):(o(),N(`div`,mt,`Экран не подключён`)),P(`div`,ht,[l(F(q),{align:`center`,justify:`space-between`,class:`screen-header`},{default:k(()=>[u[23]||=P(`p`,{class:`screens-title`},`План экранов`,-1),l(F(K),null,{default:k(()=>[!i.screenPlan&&i.screenPlanMode===`use`?(o(),f(F(L),{key:0,size:`small`,onClick:u[3]||=e=>d(`addStep`)},{default:k(()=>[...u[19]||=[t(` Создать план `,-1)]]),_:1})):e(``,!0),i.screenPlan&&i.screenPlanMode===`use`?(o(),f(F(L),{key:1,size:`small`,onClick:u[4]||=e=>d(`edit`)},{default:k(()=>[...u[20]||=[t(` Редактировать `,-1)]]),_:1})):e(``,!0),i.screenPlanMode===`edit`?(o(),N(O,{key:2},[l(F(L),{size:`small`,disabled:i.screenPlanSaving,onClick:u[5]||=e=>d(`cancel`)},{default:k(()=>[...u[21]||=[t(` Отменить `,-1)]]),_:1},8,[`disabled`]),l(F(L),{size:`small`,type:`primary`,loading:i.screenPlanSaving,disabled:i.screenPlanSaving,onClick:u[6]||=e=>d(`save`)},{default:k(()=>[...u[22]||=[t(` Сохранить план `,-1)]]),_:1},8,[`loading`,`disabled`])],64)):e(``,!0)]),_:1})]),_:1}),!i.screenPlan&&i.screenPlanMode===`use`?(o(),N(`p`,gt,` План экранов ещё не создан. `)):i.screenPlanMode===`edit`?(o(),N(O,{key:1},[(o(!0),N(O,null,a(i.screenPlanDraft,(n,r)=>(o(),f(F(K),{key:r,class:`screen-plan-step`,align:`center`,justify:`space-between`,wrap:``},{default:k(()=>[l(F(K),{align:`center`,wrap:``},{default:k(()=>[l(F(H),null,{default:k(()=>[t(s(r+1),1)]),_:2},1024),l(F(me),{value:n.mode,"onUpdate:value":[e=>n.mode=e,u[7]||=e=>d(`dirty`)],options:y,disabled:i.screenPlanSaving,size:`small`,style:{width:`180px`}},null,8,[`value`,`onUpdate:value`,`disabled`]),n.mode===`SCREEN_MODE_TEXT`?(o(),f(F(U),{key:0,value:n.text,"onUpdate:value":[e=>n.text=e,u[8]||=e=>d(`dirty`)],disabled:i.screenPlanSaving,size:`small`,placeholder:`Текст экрана`,style:{"min-width":`240px`}},null,8,[`value`,`onUpdate:value`,`disabled`])):e(``,!0),n.mode===`SCREEN_MODE_TIMER`?(o(),N(O,{key:1},[l(F(U),{value:n.timerLabel,"onUpdate:value":[e=>n.timerLabel=e,u[9]||=e=>d(`dirty`)],disabled:i.screenPlanSaving,size:`small`,placeholder:`Надпись таймера`},null,8,[`value`,`onUpdate:value`,`disabled`]),l(F(He),{value:n.timerDurationSeconds,"onUpdate:value":[e=>n.timerDurationSeconds=e,u[10]||=e=>d(`dirty`)],min:1,max:86400,disabled:i.screenPlanSaving,size:`small`,placeholder:`Секунды`},null,8,[`value`,`onUpdate:value`,`disabled`])],64)):e(``,!0)]),_:2},1024),l(F(K),{class:`screen-plan-actions`},{default:k(()=>[l(F(L),{size:`small`,disabled:i.screenPlanSaving||r===0,onClick:e=>d(`moveStep`,r,-1)},{default:k(()=>[...u[24]||=[t(` ↑ `,-1)]]),_:1},8,[`disabled`,`onClick`]),l(F(L),{size:`small`,disabled:i.screenPlanSaving||r===i.screenPlanDraft.length-1,onClick:e=>d(`moveStep`,r,1)},{default:k(()=>[...u[25]||=[t(` ↓ `,-1)]]),_:1},8,[`disabled`,`onClick`]),l(F(L),{size:`small`,type:`error`,ghost:``,disabled:i.screenPlanSaving,onClick:e=>d(`removeStep`,r)},{default:k(()=>[...u[26]||=[t(` Удалить `,-1)]]),_:1},8,[`disabled`,`onClick`])]),_:2},1024)]),_:2},1024))),128)),l(F(K),null,{default:k(()=>[l(F(L),{size:`small`,disabled:i.screenPlanSaving,onClick:u[11]||=e=>d(`addStep`)},{default:k(()=>[...u[27]||=[t(` Добавить шаг `,-1)]]),_:1},8,[`disabled`]),i.screenPlanDraft.length?(o(),f(F(L),{key:0,size:`small`,disabled:i.screenPlanSaving,onClick:u[12]||=e=>d(`clearPlan`)},{default:k(()=>[...u[28]||=[t(` Удалить план `,-1)]]),_:1},8,[`disabled`])):e(``,!0)]),_:1})],64)):i.screenPlan?(o(!0),N(O,{key:2},a(i.screenPlan.steps||[],(n,r)=>(o(),f(F(K),{key:r,class:`screen-plan-step`,align:`center`,justify:`space-between`,wrap:``},{default:k(()=>[l(F(K),{align:`center`},{default:k(()=>[l(F(H),null,{default:k(()=>[t(s(r+1),1)]),_:2},1024),l(F(H),null,{default:k(()=>[t(s(y.find(e=>e.value===n.mode)?.label)+` `,1),n.mode===`SCREEN_MODE_TEXT`?(o(),N(O,{key:0},[t(`: `+s(n.text),1)],64)):n.mode===`SCREEN_MODE_TIMER`?(o(),N(O,{key:1},[t(` : `+s(n.timerLabel)+` (`+s(n.timerDurationSeconds)+` с) `,1)],64)):e(``,!0)]),_:2},1024)]),_:2},1024),l(F(K),{class:`screen-plan-actions`},{default:k(()=>[l(F(L),{size:`small`,type:i.screenPlan.currentStep===r?`primary`:`default`,disabled:i.screenPlan.currentStep===r,onClick:e=>d(`setStep`,r)},{default:k(()=>[...u[29]||=[t(` Показать `,-1)]]),_:1},8,[`type`,`disabled`,`onClick`]),i.screenPlan.currentStep===r?(o(),N(O,{key:0},[n.mode===`SCREEN_MODE_TIMER`?(o(),N(O,{key:0},[l(F(L),{size:`small`,onClick:e=>d(`command`,n.mode,`SCREEN_COMMAND_TIMER_START`)},{default:k(()=>[...u[30]||=[t(` Старт `,-1)]]),_:1},8,[`onClick`]),l(F(L),{size:`small`,onClick:e=>d(`command`,n.mode,`SCREEN_COMMAND_TIMER_PAUSE`)},{default:k(()=>[...u[31]||=[t(` Пауза `,-1)]]),_:1},8,[`onClick`]),l(F(L),{size:`small`,onClick:e=>d(`command`,n.mode,`SCREEN_COMMAND_TIMER_RESUME`)},{default:k(()=>[...u[32]||=[t(` Продолжить `,-1)]]),_:1},8,[`onClick`]),l(F(L),{size:`small`,onClick:e=>d(`command`,n.mode,`SCREEN_COMMAND_TIMER_RESET`)},{default:k(()=>[...u[33]||=[t(` Сбросить `,-1)]]),_:1},8,[`onClick`])],64)):n.mode===`SCREEN_MODE_INTRO`||n.mode===`SCREEN_MODE_CONCLUSION`?(o(),N(O,{key:1},[l(F(L),{size:`small`,onClick:e=>d(`command`,n.mode,`SCREEN_COMMAND_PLAY`)},{default:k(()=>[...u[34]||=[t(` Запуск `,-1)]]),_:1},8,[`onClick`]),l(F(L),{size:`small`,onClick:e=>d(`command`,n.mode,`SCREEN_COMMAND_PAUSE`)},{default:k(()=>[...u[35]||=[t(` Пауза `,-1)]]),_:1},8,[`onClick`]),l(F(L),{size:`small`,onClick:e=>d(`command`,n.mode,`SCREEN_COMMAND_RESUME`)},{default:k(()=>[...u[36]||=[t(` Продолжить `,-1)]]),_:1},8,[`onClick`]),l(F(L),{size:`small`,onClick:e=>d(`command`,n.mode,`SCREEN_COMMAND_STOP`)},{default:k(()=>[...u[37]||=[t(` Стоп `,-1)]]),_:1},8,[`onClick`]),l(F(L),{size:`small`,onClick:e=>d(`command`,n.mode,`SCREEN_COMMAND_REPLAY`)},{default:k(()=>[...u[38]||=[t(` Повтор `,-1)]]),_:1},8,[`onClick`]),l(F(He),{value:i.screenVolume,min:0,max:100,step:5,size:`small`,"onUpdate:value":u[13]||=e=>d(`update:screenVolume`,e)},null,8,[`value`]),l(F(L),{size:`small`,onClick:e=>d(`command`,n.mode,`SCREEN_COMMAND_VOLUME`)},{default:k(()=>[...u[39]||=[t(` Громкость `,-1)]]),_:1},8,[`onClick`]),l(F(He),{value:i.screenPosition,min:0,step:5,size:`small`,"onUpdate:value":u[14]||=e=>d(`update:screenPosition`,e)},null,8,[`value`]),l(F(L),{size:`small`,onClick:e=>d(`command`,n.mode,`SCREEN_COMMAND_SEEK`)},{default:k(()=>[...u[40]||=[t(` Перемотать `,-1)]]),_:1},8,[`onClick`])],64)):e(``,!0)],64)):e(``,!0)]),_:2},1024)]),_:2},1024))),128)):e(``,!0)])]),_:1})]))}}),[[`__scopeId`,`data-v-1e1af018`]]),yt=V(A({__name:`ScreenBindingModal`,props:i({binding:{type:Boolean}},{show:{type:Boolean,required:!0},showModifiers:{}}),emits:i([`scanned`],[`update:show`]),setup(n,{emit:r}){let i=w(n,`show`),a=r,c=D(``),u=D(),p=D(!1),m,g=0;function _(){cancelAnimationFrame(g),m?.getTracks().forEach(e=>e.stop()),m=void 0,p.value=!1}function v(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 y(){let e=window.BarcodeDetector;if(!e||!navigator.mediaDevices?.getUserMedia){c.value=`Сканирование камерой не поддерживается в этом браузере.`;return}c.value=``;try{if(m=await navigator.mediaDevices.getUserMedia({video:{facingMode:`environment`}}),p.value=!0,await d(),!u.value)return;u.value.srcObject=m,await u.value.play();let t=new e,n=async()=>{if(!(!u.value||!m))try{let e=(await t.detect(u.value))[0]?.rawValue;if(e){let t=v(e);if(t){_(),i.value=!1,a(`scanned`,t.screenID,t.accessToken);return}c.value=`Это не QR-код экрана.`}g=requestAnimationFrame(n)}catch{c.value=`Не удалось распознать QR-код.`,_()}};g=requestAnimationFrame(n)}catch{c.value=`Не удалось открыть камеру.`,_()}}function b(){_(),i.value=!1}return j(i,e=>{e?y():_()}),h(_),(r,a)=>(o(),f(F(le),{show:i.value,"onUpdate:show":a[0]||=e=>i.value=e},{default:k(()=>[l(F(I),{style:{width:`min(600px, 94vw)`},title:`Привязать экран`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":k(()=>[l(F(L),{onClick:b},{default:k(()=>[...a[1]||=[t(` x `,-1)]]),_:1})]),default:k(()=>[l(F(K),{vertical:``},{default:k(()=>[P(`video`,{ref_key:`scannerVideo`,ref:u,class:`screen-scanner-video`,muted:``,playsinline:``},null,512),c.value?(o(),f(F(G),{key:0,type:`error`},{default:k(()=>[t(s(c.value),1)]),_:1})):e(``,!0),!p.value&&!n.binding?(o(),f(F(L),{key:1,type:`primary`,onClick:y},{default:k(()=>[...a[2]||=[t(` Сканировать QR-код `,-1)]]),_:1})):e(``,!0),p.value?(o(),f(F(L),{key:2,onClick:_},{default:k(()=>[...a[3]||=[t(`Остановить камеру`,-1)]]),_:1})):e(``,!0),n.binding?(o(),f(F(L),{key:3,type:`primary`,loading:``},{default:k(()=>[...a[4]||=[t(`Привязка…`,-1)]]),_:1})):e(``,!0)]),_:1})]),_:1})]),_:1},8,[`show`]))}}),[[`__scopeId`,`data-v-5f530845`]]),bt={key:1,class:`screen-empty`},xt={class:`screen-status`},St={key:0,class:`screen-error`},$={key:0,class:`track-list`},Ct={key:0,class:`track-empty`},wt={class:`track-main`},Tt={class:`track-number`},Et={class:`track-details`},Dt={class:`track-name`},Ot={class:`volume-control`},kt=V(A({__name:`GameScreensPanel`,props:{screens:{},screenBinding:{type:Boolean},playlists:{},music:{}},emits:[`bind`,`setSound`,`unbind`,`setMusic`,`createPlaylist`,`deletePlaylist`,`uploadTrack`,`deleteTrack`],setup(r,{emit:i}){let c=r,u=i,d=D(!1),p=D(``);function m(e){e.file.file&&u(`uploadTrack`,e.file.file)}function h(e){e!==c.music?.trackIndex&&u(`setMusic`,{trackIndex:e,positionMs:0})}return(i,g)=>{let v=_(`n-tag`);return o(),N(O,null,[l(Q,null,{default:k(()=>[l(F(q),{align:`center`,justify:`space-between`,class:`screen-header`},{default:k(()=>[g[13]||=P(`p`,{class:`screens-title`},`Экраны`,-1),l(F(L),{size:`small`,onClick:g[0]||=e=>d.value=!0},{default:k(()=>[...g[12]||=[t(` Привязать экран `,-1)]]),_:1})]),_:1}),r.screens.some(e=>e.status===`disconnected`)?(o(),f(F(G),{key:0,type:`warning`,title:`Проверьте подключение экрана`},{default:k(()=>[...g[14]||=[t(` Один или несколько экранов не выходят на связь более минуты. `,-1)]]),_:1})):e(``,!0),r.screens.length===0?(o(),N(`p`,bt,`К игре пока не привязаны экраны.`)):(o(!0),N(O,{key:2},a(r.screens,n=>(o(),N(`div`,{key:n.ID,class:`screen-row`},[P(`div`,null,[P(`div`,null,`Экран `+s(n.ID),1),P(`div`,xt,s(n.status===`connected`?`Онлайн`:`Оффлайн`),1),n.error?(o(),N(`div`,St,s(n.error),1)):e(``,!0)]),l(F(q),{justify:`end`},{default:k(()=>[n.soundEnabled?(o(),f(v,{key:0,type:`success`},{default:k(()=>[...g[15]||=[t(`Со звуком`,-1)]]),_:1})):(o(),f(F(L),{key:1,size:`small`,onClick:e=>u(`setSound`,n)},{default:k(()=>[...g[16]||=[t(`Назначить звук`,-1)]]),_:1},8,[`onClick`])),l(F(L),{size:`small`,type:`error`,ghost:``,onClick:e=>u(`unbind`,n)},{default:k(()=>[...g[17]||=[t(` Отвязать `,-1)]]),_:1},8,[`onClick`])]),_:2},1024)]))),128))]),_:1}),l(yt,{show:d.value,"onUpdate:show":g[1]||=e=>d.value=e,binding:c.screenBinding,onScanned:g[2]||=(e,t)=>u(`bind`,e,t)},null,8,[`show`,`binding`]),l(Q,{class:`music-block`},{default:k(()=>[g[29]||=P(`p`,{class:`screens-title`},`Музыка`,-1),l(F(q),{align:`center`,wrap:``,class:`playlist-actions`},{default:k(()=>[l(F(U),{value:p.value,"onUpdate:value":g[3]||=e=>p.value=e,placeholder:`Новый плейлист`,style:{"max-width":`220px`}},null,8,[`value`]),l(F(L),{size:`small`,disabled:!p.value.trim(),onClick:g[4]||=e=>{u(`createPlaylist`,p.value.trim()),p.value=``}},{default:k(()=>[...g[18]||=[t(` Создать `,-1)]]),_:1},8,[`disabled`]),c.music?.playlist?.ID?(o(),f(F(L),{key:0,size:`small`,type:`error`,ghost:``,onClick:g[5]||=e=>u(`deletePlaylist`,c.music.playlist.ID)},{default:k(()=>[...g[19]||=[t(` Удалить плейлист `,-1)]]),_:1})):e(``,!0),l(F(he),{accept:`.mp3,audio/mpeg`,"default-upload":!1,"show-file-list":!1,onChange:m},{default:k(()=>[l(F(L),{size:`small`},{default:k(()=>[...g[20]||=[t(`Добавить MP3`,-1)]]),_:1})]),_:1})]),_:1}),l(F(q),{align:`center`,wrap:``},{default:k(()=>[l(F(me),{value:c.music?.playlist?.ID,options:c.playlists.map(e=>({label:e.name,value:e.ID})),placeholder:`Плейлист`,clearable:``,style:{"min-width":`220px`},"onUpdate:value":g[6]||=e=>u(`setMusic`,{playlistID:e||0,trackIndex:0,playback:`MUSIC_PLAYBACK_STOPPED`})},null,8,[`value`,`options`]),c.music?.playlist?(o(),N(`div`,$,[c.music.playlist.tracks?.length?e(``,!0):(o(),N(`p`,Ct,`В плейлисте пока нет треков.`)),(o(!0),N(O,null,a(c.music.playlist.tracks,(e,r)=>(o(),N(`div`,{key:e.ID,class:n([`track-row`,{"track-row-active":r===(c.music.trackIndex??0)}])},[P(`div`,wt,[P(`span`,Tt,s(r+1),1),P(`span`,Et,[P(`span`,Dt,s(e.name||`Трек ${r+1}`),1)])]),l(F(q),{align:`center`,class:`track-actions`},{default:k(()=>[l(F(L),{size:`small`,type:r===(c.music.trackIndex??0)?`success`:`primary`,ghost:``,class:n({"track-switch-active":r===(c.music.trackIndex??0)}),onClick:e=>h(r)},{default:k(()=>[t(s(r===(c.music.trackIndex??0)?c.music.playback===`MUSIC_PLAYBACK_PLAYING`?`Играет`:`Выбран`:`Включить`),1)]),_:2},1032,[`type`,`class`,`onClick`]),l(F(L),{size:`small`,type:`error`,ghost:``,onClick:t=>u(`deleteTrack`,e.ID)},{default:k(()=>[...g[21]||=[t(` Удалить `,-1)]]),_:1},8,[`onClick`])]),_:2},1024)],2))),128))])):e(``,!0),l(F(L),{size:`small`,onClick:g[7]||=e=>u(`setMusic`,{playback:`MUSIC_PLAYBACK_PLAYING`})},{default:k(()=>[...g[22]||=[t(`Старт`,-1)]]),_:1}),l(F(L),{size:`small`,onClick:g[8]||=e=>u(`setMusic`,{playback:`MUSIC_PLAYBACK_PAUSED`})},{default:k(()=>[...g[23]||=[t(`Пауза`,-1)]]),_:1}),l(F(L),{size:`small`,onClick:g[9]||=e=>u(`setMusic`,{playback:`MUSIC_PLAYBACK_STOPPED`,positionMs:0})},{default:k(()=>[...g[24]||=[t(`Стоп`,-1)]]),_:1}),P(`div`,Ot,[g[26]||=P(`span`,{class:`volume-label`},`Громкость`,-1),l(F(He),{value:c.music?.volume??100,min:0,max:100,step:5,size:`small`,"show-button":!0,"aria-label":`Громкость музыки`,class:`volume-input`,"onUpdate:value":g[10]||=e=>e!=null&&u(`setMusic`,{volume:e})},{suffix:k(()=>[...g[25]||=[t(`%`,-1)]]),_:1},8,[`value`])]),l(F(W),{value:c.music?.loop,round:!1,"onUpdate:value":g[11]||=e=>u(`setMusic`,{loop:e})},{checked:k(()=>[...g[27]||=[t(`Loop`,-1)]]),unchecked:k(()=>[...g[28]||=[t(`Loop`,-1)]]),_:1},8,[`value`])]),_:1})]),_:1})],64)}}}),[[`__scopeId`,`data-v-c8e2dfff`]]),At={class:`team-content-block`},jt={class:`title-block`},Mt={class:`team-name-block`},Nt={key:0},Pt={key:1},Ft={key:0},It={key:0},Lt={key:1},Rt={key:2},zt={key:3},Bt={key:4},Vt=V(A({__name:`GameTeamsPanel`,props:{teams:{},participationOptions:{}},emits:[`add`,`open-qr`,`preview`,`delete`,`give-application`],setup(n,{emit:r}){let i=r;return(r,c)=>(o(),N(O,null,[l(Q,{class:`team-block-hover`,onClick:c[0]||=e=>i(`add`)},{default:k(()=>[...c[1]||=[P(`p`,{class:`place-image-plus`},`+`,-1)]]),_:1}),(o(!0),N(O,null,a(n.teams,r=>(o(),f(Q,{key:r.ID},{default:k(()=>[P(`div`,At,[l(F(q),{justify:`space-between`},{default:k(()=>[P(`div`,jt,[P(`span`,Mt,[t(s(r.name)+` `,1),r.captainEmail?(o(),N(`small`,Nt,` — `+s(r.captainEmail),1)):e(``,!0),r.participantsCount?(o(),N(`small`,Pt,` · Участников: `+s(r.participantsCount),1)):e(``,!0)]),r.captainEmail||r.participationStatus!==`pending`?(o(),N(`div`,Ft,[t(s(n.participationOptions.find(e=>e.value===r.participationStatus)?.label),1),r.participationSource===`automatic`?(o(),N(`span`,It,` · автоматически`)):e(``,!0)])):e(``,!0),r.captainEmail?r.participationEmailError?(o(),N(`div`,Rt,` Ошибка отправки: `+s(r.participationEmailError),1)):r.participationEmailSent?(o(),N(`div`,zt,`Письмо отправлено`)):e(``,!0):(o(),N(`div`,Lt,`Почта капитана не указана`)),r.participationStatus===`cancelled`?e(``,!0):(o(),N(`div`,Bt,` Поездки: `+s(r.actionsCount),1))]),l(F(q),{justify:`end`},{default:k(()=>[r.participationStatus===`cancelled`?e(``,!0):(o(),f(F(L),{key:0,onClick:e=>i(`open-qr`,r)},{default:k(()=>[...c[2]||=[t(`QR`,-1)]]),_:1},8,[`onClick`])),r.participationStatus===`cancelled`?e(``,!0):(o(),f(F(L),{key:1,onClick:e=>i(`preview`,r.ID,r.password)},{default:k(()=>[...c[3]||=[t(`Подсмотреть игру`,-1)]]),_:1},8,[`onClick`])),l(F(L),{type:`error`,ghost:``,onClick:e=>i(`delete`,r)},{default:k(()=>[...c[4]||=[t(`Удалить`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)]),_:2},1024),(o(!0),N(O,null,a(r.applications,e=>(o(),f(F(L),{key:e.name,class:`link-button`,onClick:t=>i(`give-application`,r,e)},{default:k(()=>[t(` Выдать: `+s(e.name),1)]),_:2},1032,[`onClick`]))),128))])]),_:2},1024))),128))],64))}}),[[`__scopeId`,`data-v-561486cb`]]),Ht={key:0},Ut={key:1},Wt={key:2},Gt=V(A({__name:`TicketCheckModal`,props:{show:{type:Boolean,required:!0},showModifiers:{}},emits:[`update:show`],setup(n){let r=w(n,`show`),i=Ce(),a=ae(),c=D(``),u=D(),p=D(``),m=D(!1),g=D(),_=D(!1),v,y=0,b=S(()=>{try{return new URL(c.value.trim()).pathname.match(/\/tickets\/([^/]+)/)?.[1]||``}catch{return c.value.trim()}});async function x(){if(!(!b.value||m.value)){m.value=!0,p.value=``,u.value=void 0;try{let e=await i.GetTicket({token:b.value});e.ticket?u.value=e.ticket:p.value=`Билет не найден`}catch(e){p.value=e instanceof Error?e.message:`Не удалось проверить билет`}finally{m.value=!1}}}async function C(){if(!(!b.value||m.value)){m.value=!0,p.value=``;try{let e=await i.AcceptTicket({token:b.value});e.ticket?(u.value=e.ticket,a.success(`Билет принят`)):p.value=`Не удалось принять билет`}catch(e){p.value=e instanceof Error?e.message:`Не удалось принять билет`}finally{m.value=!1}}}async function T(){let e=window.BarcodeDetector;if(!e||!navigator.mediaDevices?.getUserMedia){p.value=`Сканирование камерой не поддерживается. Введите ссылку вручную.`;return}p.value=``;try{if(v=await navigator.mediaDevices.getUserMedia({video:{facingMode:`environment`}}),_.value=!0,await d(),!g.value)return;g.value.srcObject=v,await g.value.play();let t=new e,n=async()=>{if(!(!_.value||!g.value))try{let e=(await t.detect(g.value))[0]?.rawValue;if(e){c.value=e,E(),await x();return}y=requestAnimationFrame(n)}catch{p.value=`Не удалось распознать QR-код.`,E()}};y=requestAnimationFrame(n)}catch{p.value=`Не удалось открыть камеру. Введите ссылку вручную.`,E()}}function E(){cancelAnimationFrame(y),v?.getTracks().forEach(e=>e.stop()),v=void 0,_.value=!1}function A(){E(),r.value=!1}return j(r,e=>{e?T():E()}),h(E),(n,i)=>(o(),f(F(le),{show:r.value,"onUpdate:show":i[1]||=e=>r.value=e},{default:k(()=>[l(F(I),{style:{width:`min(600px, 94vw)`},title:`Проверка билета`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":k(()=>[l(F(L),{onClick:A},{default:k(()=>[...i[2]||=[t(` x `,-1)]]),_:1})]),default:k(()=>[l(F(K),{vertical:``},{default:k(()=>[_.value?(o(),N(`video`,{key:0,ref_key:`video`,ref:g,class:`ticket-scanner-video`,muted:``,playsinline:``},null,512)):e(``,!0),p.value?(o(),f(F(G),{key:1,type:`error`},{default:k(()=>[t(s(p.value),1)]),_:1})):e(``,!0),_.value?(o(),f(F(L),{key:3,onClick:E},{default:k(()=>[...i[4]||=[t(`Остановить камеру`,-1)]]),_:1})):(o(),f(F(L),{key:2,onClick:T},{default:k(()=>[...i[3]||=[t(`Сканировать QR-код`,-1)]]),_:1})),l(F(U),{value:c.value,"onUpdate:value":i[0]||=e=>c.value=e,placeholder:`Или вставьте ссылку на билет`,onKeyup:we(x,[`enter`])},null,8,[`value`]),l(F(L),{type:`primary`,loading:m.value,onClick:x},{default:k(()=>[...i[5]||=[t(` Проверить билет `,-1)]]),_:1},8,[`loading`]),u.value?(o(),N(O,{key:4},[l(F(G),{type:u.value.status===`active`?`success`:`warning`},{default:k(()=>[t(s(u.value.gameName),1),i[6]||=P(`br`,null,null,-1),t(` Статус: `+s(u.value.status===`active`?`действителен`:`уже использован`)+` `,1),u.value.usedBy?(o(),N(`span`,Ht,` · `+s(u.value.usedBy),1)):e(``,!0),u.value.usedAt?(o(),N(`br`,Ut)):e(``,!0),u.value.usedAt?(o(),N(`span`,Wt,`Использован: `+s(F(Me)(u.value.usedAt)),1)):e(``,!0)]),_:1},8,[`type`]),u.value.status===`active`&&u.value.gameStatus!==`finish`?(o(),f(F(L),{key:0,type:`primary`,loading:m.value,onClick:C},{default:k(()=>[...i[7]||=[t(` Принять билет `,-1)]]),_:1},8,[`loading`])):e(``,!0)],64)):e(``,!0)]),_:1})]),_:1})]),_:1},8,[`show`]))}}),[[`__scopeId`,`data-v-fe322487`]]),Kt={class:`center-block-custom`},qt={class:`width1200`},Jt={class:`game-tab-content`},Yt=[`href`],Xt={class:`game-tab-content`},Zt={class:`game-tab-content`},Qt={class:`game-tab-content`},$t={class:`game-tab-content`},en={class:`qr-block`},tn={class:`game-tab-content`},nn={key:0,class:`answers-empty`},rn={class:`answers-question-title`},an={class:`answers-question-answer`},on={class:`correct-answer`},sn={class:`answers-team-name`},cn={class:`answers-team-answer`},ln={key:0,class:`give-application-image-block`},un=[`src`],dn=[`src`],fn=[`href`],pn={class:`qr-block`},mn={key:0,class:`answers-empty`},hn=`https://www.sberbank.ru/ru/choise_bank?requisiteNumber=79609361994&bankCode=100000000111`,gn=V(A({__name:`GamePage`,setup(n){let r=Ce(),i=Oe(),c=D(!1),u=re(),d=ee(),p=d.params.id;function m(e){return[`settings`,`teams`,`screens`,`game`,`payment`,`answers`].includes(e)}let h=typeof d.query.tab==`string`?d.query.tab:``,g=D(m(h)?h:`game`);async function _(e){m(e)&&(g.value=e,await u.replace({query:{...d.query,tab:e}}),e===`answers`&&await Sn())}let v=ae(),y=D({name:``,description:``,format:`online`,location:``}),b=D(!1),x=D(!1),C=D(!1),w=D(!1),T=D(!1),E=D(``),A=D(``),j=D(1),M=D(``),te=D(!1),ne=D(``),ie=D(``),ce=D(!1),ue=D(1),de=D([]),R=D(!1),z=D(!1),B=D({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}),V=[{label:`Ожидает ответа`,value:`pending`},{label:`Подтверждено`,value:`confirmed`},{label:`Отменено`,value:`cancelled`}],he=S(()=>(B.value.teams||[]).filter(e=>e.participationStatus!==`cancelled`).length),ge=D([]),_e=D([]),ve=D(),W=D(),G=D([]),J=D(!1),xe=D(!1),Y=D(`use`),Se=0,we=D([]),Te=D([]),Ee=D([]),Pe=D(!1),Fe=D(!1),Ie=D(100),Le=D(0);async function X(e){let t=await r.GetGame({ID:e});B.value=t.game,b.value||=(y.value={name:B.value.name||``,description:B.value.description||``,format:B.value.format||`online`,location:B.value.location||``},!0),B.value.teams=B.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`)||ge.value[0])?.mode===`SCREEN_MODE_RESULTS`){let e=await r.GetGameResults({gameID:Number(p)});we.value=e.questions||[],Te.value=e.teams||[]}else we.value=[],Te.value=[]}Z();async function Re(){try{let e=await r.GetGameMusic({gameID:Number(p)});_e.value=e.playlists||[],ve.value=e.state}catch(e){v.error(e instanceof Error?e.message:`Не удалось получить музыку игры`)}}Re();function ze(){return Y.value===`edit`}async function Be(){if(console.log(`getScreenPlan`),ze()||J.value)return;console.log(`no skip getScreenPlan`);let e=++Se,t=await r.GetScreenPlan({gameID:Number(p)});e!==Se||ze()||J.value||(W.value=t.plan,G.value=t.plan?.steps?.map(e=>({...e}))||[])}Be();function Ve(){G.value.push({mode:`SCREEN_MODE_TEXT`,text:`Новый экран`,timerLabel:`Перерыв`,timerDurationSeconds:600}),J.value=!0,Y.value=`edit`}function Ue(){W.value&&(G.value=W.value.steps?.map(e=>({...e}))||[],Y.value=`edit`)}function Ge(){J.value&&!window.confirm(`Отменить несохранённые изменения плана?`)||(G.value=W.value?.steps?.map(e=>({...e}))||[],J.value=!1,Y.value=`use`)}function qe(e){G.value.splice(e,1),J.value=!0}function Ye(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),J.value=!0}function Ze(){J.value=!0}function $e(){G.value=[],Ze()}async function et(){if(!xe.value){Se+=1,xe.value=!0;try{let e=Math.min(W.value?.currentStep||0,Math.max(0,G.value.length-1)),t=await r.SaveScreenPlan({gameID:Number(p),steps:G.value,currentStep:e});W.value=t.plan,G.value=t.plan?.steps?.map(e=>({...e}))||[],J.value=!1,Y.value=`use`,v.success(t.plan?`План экранов сохранён`:`План экранов удалён`)}catch(e){v.error(e instanceof Error?e.message:`Не удалось сохранить план экранов`)}finally{xe.value=!1}}}async function tt(e){if(!(J.value||!W.value))try{let t=await r.SetScreenPlanStep({gameID:Number(p),currentStep:e});W.value=t.plan,await Z()}catch(e){v.error(e instanceof Error?e.message:`Не удалось перейти на шаг плана`)}}async function nt(e,t){if(!(J.value||e!==`SCREEN_MODE_TIMER`&&e!==`SCREEN_MODE_INTRO`&&e!==`SCREEN_MODE_CONCLUSION`))try{await r.SendScreenCommand({gameID:Number(p),command:t,positionMs:Math.max(0,Math.round(Le.value*1e3)),volume:Math.max(0,Math.min(100,Math.round(Ie.value)))}),await Z()}catch(e){v.error(e instanceof Error?e.message:`Не удалось управлять экраном`)}}async function rt(e,t){if(!z.value){z.value=!0;try{await r.BindScreen({screenID:e,accessToken:t,gameID:Number(p)}),v.success(`Экран привязан к игре`),await Z()}catch(e){v.error(e instanceof Error?e.message:`Не удалось привязать экран`)}finally{z.value=!1}}}async function it(){if(Pe.value||Fe.value)return;let e=await r.GetGameMap({gameID:Number(p)});Pe.value||Fe.value||(Ee.value=e.items||[])}it();async function at(e,t=e.hidden){Pe.value=!0;try{await r.UpdateGameMapItem({gameID:Number(p),kind:e.kind,itemID:e.itemID,x:Math.round(e.x||0),y:Math.round(e.y||0),hidden:t})}finally{Pe.value=!1}}async function ot(e,t=e.hidden){await at(e,t),await it()}async function st(e){await r.SetScreenSound({screenID:e.ID,soundEnabled:!0}),await Z()}async function ct(e){let t=ve.value;try{let n=await r.SetGameMusic({gameID:Number(p),playlistID:e.playlistID??t?.playlist?.ID??0,trackIndex:e.trackIndex??t?.trackIndex??0,positionMs:e.positionMs??t?.positionMs??0,volume:e.volume??t?.volume??100,loop:e.loop??t?.loop??!1,playback:e.playback??t?.playback??`MUSIC_PLAYBACK_STOPPED`});ve.value=n.state}catch(e){v.error(e instanceof Error?e.message:`Не удалось изменить музыку`)}}async function lt(e){try{await r.CreatePlaylist({name:e}),await Re()}catch(e){v.error(e instanceof Error?e.message:`Не удалось создать плейлист`)}}async function ut(e){try{await r.DeletePlaylist({ID:e}),await Re()}catch(e){v.error(e instanceof Error?e.message:`Не удалось удалить плейлист`)}}async function dt(e){let t=ve.value?.playlist?.ID;if(!t){v.warning(`Сначала выберите плейлист`);return}try{let n=pt(new Uint8Array(await e.arrayBuffer()));await r.UploadPlaylistTrack({playlistID:t,name:e.name,filename:e.name,data:n}),await Re()}catch(e){v.error(e instanceof Error?e.message:`Не удалось загрузить MP3`)}}async function ft(e){let t=ve.value?.playlist?.ID;if(t)try{await r.DeletePlaylistTrack({playlistID:t,trackID:e}),await Re()}catch(e){v.error(e instanceof Error?e.message:`Не удалось удалить трек`)}}function pt(e){let t=``;for(let n=0;nURL.revokeObjectURL(n),1e3)}catch(e){v.error(e instanceof Error?e.message:`Не удалось скачать QR команд`)}finally{c.value=!1}}}function _t(){u.push(`/games/`+p+`/results`)}async function yt(){await r.UpdateGame({ID:B.value.ID,name:y.value.name,description:y.value.description,format:y.value.format,location:y.value.location.trim(),startAt:B.value.startAt,scenarioID:B.value.scenario?.ID}),await X(B.value.ID)}let bt=D({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}),xt=D(``),St=D({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}),$=D({name:``,image:``,file_type:``}),Ct=window.location.href;function wt(e,t){bt.value=e,$.value=t,x.value=!0}async function Tt(){if(j.value<1||j.value>8){v.error(`Укажите от 1 до 8 игроков`);return}await r.AddTeam({gameID:B.value.ID,name:E.value,captainEmail:A.value.trim(),participantsCount:j.value}),await X(B.value.ID),C.value=!1,A.value=``,j.value=1}async function Et(){await r.GiveTeamApplications({ID:bt.value.ID,name:$.value.name}),await X(B.value.ID),x.value=!1}async function Dt(e){St.value=e,w.value=!0}async function Ot(){await r.DeleteTeam({ID:St.value.ID}),await X(B.value.ID),w.value=!1}async function At(){await r.DeleteGame({ID:B.value.ID}),v.success(`Игра удалена`),u.push(`/games`)}function jt(e,t){let n=new URL(`/team-story/${e}`,window.location.origin);return n.searchParams.set(`password`,t),n.toString()}function Mt(e){Nt(jt(e.ID,e.password),`Подсмотреть игру`)}async function Nt(e,t){ne.value=e,ie.value=t,te.value=!0}async function Pt(){if(!(R.value||!B.value.ID)){R.value=!0;try{let e=await r.IssueGameTickets({gameID:B.value.ID,count:ue.value});de.value=e.tickets||[],v.success(`Выпущено билетов: ${de.value.length}`)}catch(e){v.error(e instanceof Error?e.message:`Не удалось выпустить билеты`)}finally{R.value=!1}}}Ne(()=>{X(Number(p)),Z(),Re(),Be(),it()},2e3);async function Ft(){await r.ResetGame({ID:B.value.ID}),await X(B.value.ID)}async function It(){await r.StartGame({ID:B.value.ID}),await X(B.value.ID)}async function Lt(){await r.PauseGame({ID:B.value.ID}),await X(B.value.ID)}async function Rt(){await r.PlayGame({ID:B.value.ID}),await X(B.value.ID)}async function zt(){await r.FinishGame({ID:B.value.ID}),await X(B.value.ID)}let Bt=D(!1),Ht=D([]),Ut=D(0),Wt=D(0),gn=D([]),_n=D([]),vn=D({});function yn(e,t){return(e??``)+`:`+(t??``)}function bn(e,t){return(e.answers||[]).find(e=>e.questionCode==t)?.answer||``}function xn(e,t){vn.value[e]=t===null?void 0:t}async function Sn(){let e=await r.GetGameAnswers({gameID:Number(p)});gn.value=e.questions||[],_n.value=e.teams||[];let t={};for(let e of _n.value)for(let n of e.answers||[])t[yn(e.team?.ID,n.questionCode)]=n.score;vn.value=t}async function Cn(){Bt.value=!0;let e=await r.GetGameReviewsForModeration({gameID:Number(p)});Ht.value=e.reviews||[],Ut.value=e.averageRating||0,Wt.value=e.reviewsCount||0}async function wn(e,t){await r.ModerateGameReview({ID:e.ID,status:t}),await Cn()}async function Tn(){for(let e of gn.value)for(let t of _n.value){let n=vn.value[yn(t.team?.ID,e.code)];await r.SetTeamAnswerScore({ID:t.team?.ID,questionCode:e.code,score:n??void 0})}v.success(`Баллы сохранены`),await Sn()}g.value===`answers`&&Sn();function En(){let e=new Date;return new Date(e.getTime()-e.getTimezoneOffset()*6e4)}function Dn(e,t){if(e==``)return`Игра ещё не началась`;let n=je(e),r=En();t!=``&&(r=je(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 On=D(``);return Ne(()=>{On.value=Dn(B.value.startedAt||``,B.value.endedAt||``)},1e3),(n,r)=>(o(),N(O,null,[P(`div`,Kt,[P(`div`,qt,[l(F(pe),{value:g.value,type:`line`,animated:``,"onUpdate:value":_},{default:k(()=>[l(F(fe),{name:`settings`,tab:`Настройки`},{default:k(()=>[P(`div`,Jt,[l(Q,null,{default:k(()=>[l(F(q),{justify:`end`},{default:k(()=>[l(F(L),{quaternary:``,onClick:r[0]||=e=>Nt(F(Ct),`Админка`)},{default:k(()=>[...r[45]||=[t(`QR`,-1)]]),_:1}),B.value.status==`finish`?(o(),f(F(L),{key:0,quaternary:``,onClick:r[1]||=e=>_t()},{default:k(()=>[l(F(se),{class:`settings-icon`},{default:k(()=>[l(F(Qe))]),_:1}),r[46]||=t(` Итоги `,-1)]),_:1})):e(``,!0),(B.value.teams?.length||0)==0?(o(),f(F(L),{key:1,type:`error`,quaternary:``,onClick:r[2]||=e=>T.value=!0},{default:k(()=>[...r[47]||=[t(` Удалить игру `,-1)]]),_:1})):e(``,!0)]),_:1})]),_:1}),l(Q,null,{default:k(()=>[r[53]||=P(`p`,{class:`screens-title`},`Настройки игры`,-1),l(F(K),{vertical:``},{default:k(()=>[r[48]||=P(`p`,null,`Название`,-1),l(F(U),{value:y.value.name,"onUpdate:value":r[3]||=e=>y.value.name=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`]),r[49]||=P(`p`,{class:`settings-header`},`Формат игры`,-1),l(F(me),{value:y.value.format,"onUpdate:value":r[4]||=e=>y.value.format=e,options:[{label:`Online`,value:`online`},{label:`Offline`,value:`offline`}],"aria-label":`Формат игры`},null,8,[`value`]),r[50]||=P(`p`,{class:`settings-header`},`Описание`,-1),l(F(U),{value:y.value.description,"onUpdate:value":r[5]||=e=>y.value.description=e,type:`textarea`,placeholder:`Убийство пастуха...`},null,8,[`value`]),r[51]||=P(`p`,{class:`settings-header`},`Место проведения`,-1),l(F(U),{value:y.value.location,"onUpdate:value":r[6]||=e=>y.value.location=e,type:`text`,placeholder:`Оставьте пустым для онлайн-игры`},null,8,[`value`])]),_:1}),l(F(q),{justify:`end`,class:`settings-actions`},{default:k(()=>[l(F(L),{onClick:r[7]||=e=>yt()},{default:k(()=>[...r[52]||=[t(`Сохранить изменения`,-1)]]),_:1})]),_:1})]),_:1}),l(Q,null,{default:k(()=>[r[56]||=P(`p`,{class:`screens-title`},`Выпуск билетов`,-1),l(F(K),{vertical:``},{default:k(()=>[l(F(He),{value:ue.value,"onUpdate:value":r[8]||=e=>ue.value=e,min:1,max:100},null,8,[`value`]),(o(!0),N(O,null,a(de.value,e=>(o(),N(`div`,{key:e.ID,class:`issued-ticket`},[P(`div`,null,`Билет №`+s(e.ID),1),P(`a`,{href:e.URL,class:`payment-link`,target:`_blank`,rel:`noreferrer`},` Открыть страницу билета `,8,Yt),l(F(L),{size:`small`,onClick:t=>Nt(e.URL,`Билет №${e.ID}`)},{default:k(()=>[...r[54]||=[t(` Показать QR `,-1)]]),_:1},8,[`onClick`])]))),128))]),_:1}),l(F(q),{justify:`end`,class:`settings-actions`},{default:k(()=>[l(F(L),{loading:R.value,disabled:R.value,onClick:r[9]||=e=>Pt()},{default:k(()=>[...r[55]||=[t(` Выпустить `,-1)]]),_:1},8,[`loading`,`disabled`])]),_:1})]),_:1})])]),_:1}),l(F(fe),{name:`teams`,tab:`Команды`},{default:k(()=>[P(`div`,Xt,[l(F(q),{justify:`space-between`,align:`center`},{default:k(()=>[l(F(oe),{bordered:!1,type:`info`},{default:k(()=>[t(` Участвуют команд: `+s(he.value),1)]),_:1}),he.value?(o(),f(F(L),{key:0,quaternary:``,loading:c.value,disabled:c.value,onClick:r[10]||=e=>gt()},{default:k(()=>[...r[57]||=[t(` QR команд `,-1)]]),_:1},8,[`loading`,`disabled`])):e(``,!0)]),_:1}),l(Vt,{teams:B.value.teams||[],"participation-options":V,onAdd:r[11]||=e=>C.value=!0,onOpenQr:Mt,onPreview:r[12]||=(e,t)=>ht(e,t,!0),onDelete:Dt,onGiveApplication:wt},null,8,[`teams`])])]),_:1}),l(F(fe),{name:`screens`,tab:`Экраны`},{default:k(()=>[P(`div`,Zt,[l(kt,{screens:ge.value,"screen-binding":z.value,playlists:_e.value,music:ve.value,onBind:rt,onSetSound:st,onUnbind:mt,onSetMusic:ct,onCreatePlaylist:lt,onDeletePlaylist:ut,onUploadTrack:dt,onDeleteTrack:ft},null,8,[`screens`,`screen-binding`,`playlists`,`music`])])]),_:1}),l(F(fe),{name:`game`,tab:`Игра`},{default:k(()=>[P(`div`,Qt,[l(Q,null,{default:k(()=>[l(F(q),{justify:`space-between`},{default:k(()=>[l(F(K),null,{default:k(()=>[l(F(oe),{type:`info`},{default:k(()=>[t(s(On.value),1)]),_:1}),F(Me)(B.value.startAt)?(o(),f(F(oe),{key:0,type:`info`},{default:k(()=>[t(` Начало: `+s(F(Me)(B.value.startAt)),1)]),_:1})):e(``,!0)]),_:1}),l(F(q),{justify:`end`},{default:k(()=>[B.value.status==`draft`?e(``,!0):(o(),f(F(L),{key:0,type:`info`,dashed:``,onClick:r[13]||=e=>Ft()},{default:k(()=>[l(F(se),null,{default:k(()=>[l(F(Xe))]),_:1})]),_:1})),B.value.status==`draft`?(o(),f(F(L),{key:1,type:`info`,dashed:``,onClick:r[14]||=e=>It()},{default:k(()=>[l(F(se),null,{default:k(()=>[l(F(Je))]),_:1})]),_:1})):e(``,!0),B.value.status==`pause`?(o(),f(F(L),{key:2,type:`info`,dashed:``,onClick:r[15]||=e=>Rt()},{default:k(()=>[l(F(se),null,{default:k(()=>[l(F(Je))]),_:1})]),_:1})):e(``,!0),B.value.status==`run`?(o(),f(F(L),{key:3,type:`info`,dashed:``,onClick:r[16]||=e=>Lt()},{default:k(()=>[l(F(se),null,{default:k(()=>[l(F(Ke))]),_:1})]),_:1})):e(``,!0),B.value.status==`finish`?e(``,!0):(o(),f(F(L),{key:4,type:`info`,dashed:``,onClick:r[17]||=e=>zt()},{default:k(()=>[l(F(se),null,{default:k(()=>[l(F(We))]),_:1})]),_:1}))]),_:1})]),_:1})]),_:1}),l(vt,{"map-items":Ee.value,teams:B.value.teams||[],screens:ge.value,"preview-questions":we.value,"preview-teams":Te.value,"screen-plan":W.value,"screen-plan-draft":G.value,"screen-plan-dirty":J.value,"screen-plan-saving":xe.value,"screen-plan-mode":Y.value,"screen-volume":Ie.value,"screen-position":Le.value,onSaveItem:ot,onDragging:r[18]||=e=>Fe.value=e,onGiveApplication:wt,onAddStep:Ve,onEdit:Ue,onCancel:Ge,onRemoveStep:qe,onMoveStep:Ye,onDirty:Ze,onClearPlan:$e,onSave:et,onSetStep:tt,onCommand:nt,"onUpdate:screenVolume":r[19]||=e=>Ie.value=e??0,"onUpdate:screenPosition":r[20]||=e=>Le.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}),l(F(fe),{name:`payment`,tab:`Оплата`},{default:k(()=>[P(`div`,$t,[l(Q,null,{default:k(()=>[l(F(q),{align:`center`,justify:`space-between`},{default:k(()=>[r[59]||=P(`p`,{class:`screens-title`},`Билеты`,-1),l(F(L),{size:`small`,onClick:r[21]||=e=>ce.value=!0},{default:k(()=>[...r[58]||=[t(` Проверить билет `,-1)]]),_:1})]),_:1})]),_:1}),l(Q,null,{default:k(()=>[r[60]||=P(`p`,{class:`screens-title`},`Оплата игры`,-1),P(`div`,en,[l(F(be),{value:hn,size:300,padding:0})]),P(`p`,null,[P(`a`,{href:hn,class:`payment-link`,target:`_blank`,rel:`noreferrer`},` Открыть ссылку оплаты `)])]),_:1})])]),_:1}),l(F(fe),{name:`answers`,tab:`Проверка ответов`},{default:k(()=>[P(`div`,tn,[gn.value.length==0?(o(),N(`div`,nn,` Вопросы дела не заданы или команды ещё не отвечали. `)):e(``,!0),(o(!0),N(O,null,a(gn.value,e=>(o(),f(Q,{key:e.code},{default:k(()=>[P(`p`,rn,s(e.code)+`: `+s(e.text),1),P(`p`,an,[r[61]||=t(` Правильный ответ:`,-1),r[62]||=P(`br`,null,null,-1),P(`span`,on,s(e.answer||`—`),1)]),(o(!0),N(O,null,a(_n.value,t=>(o(),N(`div`,{key:t.team?.ID,class:`answers-team-row`},[P(`div`,sn,s(t.team?.name),1),P(`div`,cn,s(bn(t,e.code)||`—`),1),l(F(He),{value:vn.value[yn(t.team?.ID,e.code)],"onUpdate:value":n=>xn(yn(t.team?.ID,e.code),n),placeholder:`Балл`,class:`answers-score-input`},null,8,[`value`,`onUpdate:value`])]))),128))]),_:2},1024))),128)),l(F(q),{justify:`end`},{default:k(()=>[l(F(L),{onClick:r[22]||=e=>Tn(),disabled:gn.value.length==0},{default:k(()=>[...r[63]||=[t(` Сохранить баллы `,-1)]]),_:1},8,[`disabled`])]),_:1})])]),_:1})]),_:1},8,[`value`])])]),l(Gt,{show:ce.value,"onUpdate:show":r[23]||=e=>ce.value=e},null,8,[`show`]),l(F(le),{show:x.value,"onUpdate:show":r[26]||=e=>x.value=e},{default:k(()=>[l(F(I),{style:{width:`600px`},title:`Настройки игры`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":k(()=>[l(F(L),{onClick:r[24]||=e=>x.value=!1},{default:k(()=>[...r[64]||=[t(` x `,-1)]]),_:1})]),footer:k(()=>[l(F(q),{justify:`end`},{default:k(()=>[l(F(L),{onClick:r[25]||=e=>Et(),ghost:``},{default:k(()=>[...r[67]||=[t(` Выдать `,-1)]]),_:1})]),_:1})]),default:k(()=>[l(F(K),{vertical:``},{default:k(()=>[r[65]||=P(`p`,null,`Команда`,-1),P(`h3`,null,s(bt.value.name),1),r[66]||=P(`p`,null,`Улика`,-1),P(`h3`,null,s($.value.name),1),F(ke)($.value)==`image`&&$.value.image?(o(),N(`div`,ln,[P(`img`,{src:F(Ae)($.value.image),class:`give-application-image`},null,8,un)])):F(ke)($.value)==`audio`&&$.value.image?(o(),N(`audio`,{key:1,src:F(Ae)($.value.image),controls:``,preload:`none`,class:`give-application-audio`},null,8,dn)):F(ke)($.value)==`pdf`&&$.value.image?(o(),N(`a`,{key:2,href:F(Ae)($.value.image),target:`_blank`,rel:`noopener`,class:`give-application-pdf-link`},` PDF `,8,fn)):e(``,!0)]),_:1})]),_:1})]),_:1},8,[`show`]),l(F(le),{show:C.value,"onUpdate:show":r[32]||=e=>C.value=e},{default:k(()=>[l(F(I),{style:{width:`600px`},title:`Создание команды`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":k(()=>[l(F(L),{onClick:r[27]||=e=>C.value=!1},{default:k(()=>[...r[68]||=[t(` x `,-1)]]),_:1})]),footer:k(()=>[l(F(q),{justify:`end`},{default:k(()=>[l(F(L),{onClick:r[31]||=e=>Tt(),disabled:E.value.length==0},{default:k(()=>[...r[69]||=[t(` Создать `,-1)]]),_:1},8,[`disabled`])]),_:1})]),default:k(()=>[l(F(K),{vertical:``},{default:k(()=>[l(F(U),{value:E.value,"onUpdate:value":r[28]||=e=>E.value=e,type:`text`,placeholder:`Три дебила`},null,8,[`value`]),l(F(U),{value:A.value,"onUpdate:value":r[29]||=e=>A.value=e,"input-props":{type:`email`,autocomplete:`email`},placeholder:`Почта капитана (необязательно)`,"aria-label":`Почта капитана (необязательно)`},null,8,[`value`]),l(F(He),{value:j.value,"onUpdate:value":r[30]||=e=>j.value=e,min:1,max:8,precision:0,placeholder:`Количество игроков`,"aria-label":`Количество игроков`},null,8,[`value`])]),_:1})]),_:1})]),_:1},8,[`show`]),l(F(le),{show:w.value,"onUpdate:show":r[36]||=e=>w.value=e},{default:k(()=>[l(F(I),{style:{width:`600px`},title:`Удаление команды`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":k(()=>[l(F(L),{onClick:r[33]||=e=>w.value=!1},{default:k(()=>[...r[70]||=[t(` x `,-1)]]),_:1})]),footer:k(()=>[l(F(q),{justify:`end`},{default:k(()=>[l(F(L),{onClick:r[35]||=e=>Ot(),disabled:xt.value!=St.value.name},{default:k(()=>[...r[73]||=[t(` Удалить `,-1)]]),_:1},8,[`disabled`])]),_:1})]),default:k(()=>[l(F(K),{vertical:``},{default:k(()=>[P(`p`,null,[r[71]||=t(` Введите название команды `,-1),l(F(H),{class:`name-text`,strong:``},{default:k(()=>[t(s(St.value.name),1)]),_:1}),r[72]||=t(` чтобы удалить его `,-1)]),l(F(U),{value:xt.value,"onUpdate:value":r[34]||=e=>xt.value=e,type:`text`,placeholder:`Три дебила`},null,8,[`value`])]),_:1})]),_:1})]),_:1},8,[`show`]),l(F(le),{show:T.value,"onUpdate:show":r[40]||=e=>T.value=e},{default:k(()=>[l(F(I),{style:{width:`600px`},title:`Удаление игры`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":k(()=>[l(F(L),{onClick:r[37]||=e=>T.value=!1},{default:k(()=>[...r[74]||=[t(` x `,-1)]]),_:1})]),footer:k(()=>[l(F(q),{justify:`end`},{default:k(()=>[l(F(L),{onClick:r[39]||=e=>At(),disabled:M.value!=B.value.name},{default:k(()=>[...r[77]||=[t(` Удалить `,-1)]]),_:1},8,[`disabled`])]),_:1})]),default:k(()=>[l(F(K),{vertical:``},{default:k(()=>[P(`p`,null,[r[75]||=t(` Введите название игры `,-1),l(F(H),{class:`name-text`,strong:``},{default:k(()=>[t(s(B.value.name),1)]),_:1}),r[76]||=t(` чтобы удалить её `,-1)]),l(F(U),{value:M.value,"onUpdate:value":r[38]||=e=>M.value=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`])]),_:1})]),_:1})]),_:1},8,[`show`]),l(F(le),{show:te.value,"onUpdate:show":r[42]||=e=>te.value=e},{default:k(()=>[l(F(I),{style:{width:`600px`},title:ie.value,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":k(()=>[l(F(L),{onClick:r[41]||=e=>te.value=!1},{default:k(()=>[...r[78]||=[t(` x `,-1)]]),_:1})]),footer:k(()=>[...r[79]||=[]]),default:k(()=>[l(F(K),{vertical:``},{default:k(()=>[P(`div`,pn,[l(F(be),{value:ne.value,size:300,padding:0},null,8,[`value`])])]),_:1})]),_:1},8,[`title`])]),_:1},8,[`show`]),l(F(le),{show:Bt.value,"onUpdate:show":r[44]||=e=>Bt.value=e},{default:k(()=>[l(F(I),{style:{width:`min(94vw, 800px)`},title:`Отзывы игры`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`,"content-style":{maxHeight:`70vh`,overflow:`auto`}},{"header-extra":k(()=>[l(F(L),{onClick:r[43]||=e=>Bt.value=!1},{default:k(()=>[...r[80]||=[t(` x `,-1)]]),_:1})]),default:k(()=>[l(F(q),{align:`center`,class:`reviews-summary`},{default:k(()=>[l(F(ye),{value:Ut.value,readonly:``,"allow-half":``},null,8,[`value`]),P(`span`,null,s(Wt.value?`${Ut.value.toFixed(1)} · ${Wt.value}`:`Пока нет отзывов`),1)]),_:1}),Ht.value.length==0?(o(),N(`div`,mn,`Отзывов пока нет.`)):e(``,!0),(o(!0),N(O,null,a(Ht.value,n=>(o(),N(`div`,{key:n.ID,class:`review-row`},[l(F(q),{justify:`space-between`,align:`center`},{default:k(()=>[P(`strong`,null,s(n.teamName),1),l(F(oe),null,{default:k(()=>[t(s(n.status),1)]),_:2},1024)]),_:2},1024),l(F(ye),{value:n.rating,readonly:``,size:`small`},null,8,[`value`]),P(`div`,null,`Сложность: `+s([``,`лёгкая`,`средняя`,`тяжёлая`][n.difficulty||0]),1),P(`p`,null,s(n.text),1),n.status==`pending`?(o(),f(F(q),{key:0,justify:`end`},{default:k(()=>[l(F(L),{type:`success`,onClick:e=>wn(n,`approved`)},{default:k(()=>[...r[81]||=[t(`Одобрить`,-1)]]),_:1},8,[`onClick`]),l(F(L),{type:`error`,ghost:``,onClick:e=>wn(n,`rejected`)},{default:k(()=>[...r[82]||=[t(`Отклонить`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):n.status==`approved`?(o(),f(F(q),{key:1,justify:`end`},{default:k(()=>[l(F(L),{type:`error`,ghost:``,onClick:e=>wn(n,`hidden`)},{default:k(()=>[...r[83]||=[t(`Скрыть`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):e(``,!0)]))),128))]),_:1})]),_:1},8,[`show`]),l(De,{active:`games`})],64))}}),[[`__scopeId`,`data-v-55e6455c`]]),_n=A({__name:`GameView`,setup(e){return(e,t)=>(o(),f(gn))}});export{_n as default}; \ No newline at end of file diff --git a/frontend/dist/assets/GameView-yKXpSb6C.js b/frontend/dist/assets/GameView-yKXpSb6C.js new file mode 100644 index 0000000..b925622 --- /dev/null +++ b/frontend/dist/assets/GameView-yKXpSb6C.js @@ -0,0 +1,7 @@ +import{Ct as e,Dt as t,Fn as n,In as r,It as i,Jt as a,Kt as o,Ln as s,Mt as c,Ot as l,Q as u,Rt as d,St as f,U as p,Ut as m,Vt as h,Wt as g,Xt as _,Yt as v,Zt as y,_n as b,an as x,bt as S,d as C,en as w,f as T,g as E,hn as D,ht as O,in as k,kt as A,l as ee,nn as j,nt as M,p as te,tt as ne,u as re,wt as N,xt as P,yn as F}from"./client-CREJv8AD.js";import{d as ie,t as I}from"./Card-CJC2gN5t.js";import{n as ae,r as oe,t as se}from"./es-CevmKZP_.js";import{i as ce}from"./Suffix-iFHNypz-.js";import{t as L}from"./Modal-BNDyI0AJ.js";import{t as le}from"./use-merged-state-B6hyXujy.js";import{n as ue,t as R}from"./Button-MvNgQLzL.js";import{n as de,t as fe}from"./Tabs-BCjotlcB.js";import{t as pe}from"./Select-CvgyidIa.js";import{i as z,o as B,s as V,t as H}from"./_plugin-vue_export-helper-BkfvhliL.js";import{r as U,t as me}from"./Upload-CKwlW1lG.js";import{n as he}from"./use-form-item-CbDeFP5E.js";import{t as ge}from"./Add-Cwgq0nEf.js";import{t as W}from"./Input-B41xxqED.js";import{n as _e,t as G}from"./Switch-Dp58TJPL.js";import{t as ve}from"./Alert-CvCnaLc2.js";import{t as K}from"./Space-ChWks6od.js";import{t as q}from"./Flex-B0ZjnZ3e.js";import{t as ye}from"./Rate-BybamiWd.js";import{t as be}from"./QrCode-CgX_T1UU.js";import{E as J,G as Y,Q as X,at as xe,n as Se,ot as Ce,st as we,w as Te}from"./index-DZpFhWFx.js";import{t as Ee}from"./HeaderMenu-BarRlY0P.js";import{t as De}from"./binary_client-C9h3ErPB.js";import{n as Oe,r as ke}from"./application-6wLYVOst.js";import{n as Ae,t as je}from"./datetime-BJNH0M1T.js";import{t as Me}from"./useSimplePolling-C5AtW5j-.js";function Ne(e){let{textColorDisabled:t}=e;return{iconColorDisabled:t}}var Pe=T({name:`InputNumber`,common:C,peers:{Button:Te,Input:J},self:Ne}),Fe=ne([M(`input-number-suffix`,` + display: inline-block; + margin-right: 10px; + `),M(`input-number-prefix`,` + display: inline-block; + margin-left: 10px; + `)]);function Ie(e){return e==null||typeof e==`string`&&e.trim()===``?null:Number(e)}function Le(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 Re(e,t){return typeof e==`number`?t===void 0?String(e):e.toFixed(t):``}function ze(e){if(e===null)return null;if(typeof e==`number`)return e;{let t=Number(e);return Number.isNaN(t)?null:t}}var Be=800,Ve=100,He=A({name:`InputNumber`,props:Object.assign(Object.assign({},te.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}=p(e),a=te(`InputNumber`,`-input-number`,Fe,Pe,e,n),{localeRef:o}=ce(`InputNumber`),s=he(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:c,mergedDisabledRef:l,mergedStatusRef:f}=s,m=D(null),h=D(null),g=D(null),_=D(e.defaultValue),v=le(b(e,`value`),_),y=D(``),x=e=>{let t=String(e).split(`.`)[1];return t?t.length:0},C=t=>{let n=[e.min,e.max,e.step,t].map(e=>e===void 0?0:x(e));return Math.max(...n)},w=X(()=>{let{placeholder:t}=e;return t===void 0?o.value.placeholder:t}),T=X(()=>{let t=ze(e.step);return t===null||t===0?1:Math.abs(t)}),O=X(()=>{let t=ze(e.min);return t===null?null:t}),k=X(()=>{let t=ze(e.max);return t===null?null:t}),A=()=>{let{value:t}=v;if(Z(t)){let{format:n,precision:r}=e;n?y.value=n(t):t===null||r===void 0||x(t)>r?y.value=Re(t,void 0):y.value=Re(t,r)}else y.value=String(t)};A();let ee=t=>{let{value:n}=v;if(t===n){A();return}let{"onUpdate:value":r,onUpdateValue:i,onChange:a}=e,{nTriggerFormInput:o,nTriggerFormChange:c}=s;a&&V(a,t),i&&V(i,t),r&&V(r,t),_.value=t,o(),c()},M=({offset:t,doUpdateIfValid:n,fixPrecision:r,isInputing:i})=>{let{value:a}=y;if(i&&Le(a))return!1;let o=(e.parse||Ie)(a);if(o===null)return n&&ee(null),null;if(Z(o)){let a=x(o),{precision:s}=e;if(s!==void 0&&st){if(!n||i)return!1;c=t}if(r!==null&&cM({offset:0,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})===!1),re=X(()=>{let{value:t}=v;if(e.validator&&t===null)return!1;let{value:n}=T;return M({offset:-n,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1}),N=X(()=>{let{value:t}=v;if(e.validator&&t===null)return!1;let{value:n}=T;return M({offset:+n,doUpdateIfValid:!1,isInputing:!1,fixPrecision:!1})!==!1});function P(t){let{onFocus:n}=e,{nTriggerFormFocus:r}=s;n&&V(n,t),r()}function F(t){if(t.target===m.value?.wrapperElRef)return;let n=M({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0});if(n!==!1){let e=m.value?.inputElRef;e&&(e.value=String(n||``)),v.value===n&&A()}else A();let{onBlur:r}=e,{nTriggerFormBlur:i}=s;r&&V(r,t),i(),d(()=>{A()})}function I(t){let{onClear:n}=e;n&&V(n,t)}function ae(){let{value:t}=N;if(!t){U();return}let{value:n}=v;if(n===null)e.validator||ee(ue());else{let{value:e}=T;M({offset:e,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}function oe(){let{value:t}=re;if(!t){B();return}let{value:n}=v;if(n===null)e.validator||ee(ue());else{let{value:e}=T;M({offset:-e,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})}}let se=P,L=F;function ue(){if(e.validator)return null;let{value:t}=O,{value:n}=k;return t===null?n===null?0:Math.min(0,n):Math.max(0,t)}function R(e){I(e),ee(null)}function de(e){var t;g.value?.$el.contains(e.target)&&e.preventDefault(),h.value?.$el.contains(e.target)&&e.preventDefault(),(t=m.value)==null||t.activate()}let fe=null,pe=null,z=null;function B(){z&&=(window.clearTimeout(z),null),fe&&=(window.clearInterval(fe),null)}let H=null;function U(){H&&=(window.clearTimeout(H),null),pe&&=(window.clearInterval(pe),null)}function me(){B(),z=window.setTimeout(()=>{fe=window.setInterval(()=>{oe()},Ve)},Be),ie(`mouseup`,document,B,{once:!0})}function ge(){U(),H=window.setTimeout(()=>{pe=window.setInterval(()=>{ae()},Ve)},Be),ie(`mouseup`,document,U,{once:!0})}let W=()=>{pe||ae()},_e=()=>{fe||oe()};function G(t){var n;if(t.key===`Enter`){if(t.target===m.value?.wrapperElRef)return;M({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&((n=m.value)==null||n.deactivate())}else if(t.key===`ArrowUp`){if(!N.value||e.keyboard.ArrowUp===!1)return;t.preventDefault(),M({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&ae()}else if(t.key===`ArrowDown`){if(!re.value||e.keyboard.ArrowDown===!1)return;t.preventDefault(),M({offset:0,doUpdateIfValid:!0,isInputing:!1,fixPrecision:!0})!==!1&&oe()}}function ve(t){y.value=t,e.updateValueOnInput&&!e.format&&!e.parse&&e.precision===void 0&&M({offset:0,doUpdateIfValid:!0,isInputing:!0,fixPrecision:!1})}j(v,()=>{A()});let K={focus:()=>m.value?.focus(),blur:()=>m.value?.blur(),select:()=>m.value?.select()},q=E(`InputNumber`,r,n);return Object.assign(Object.assign({},K),{rtlEnabled:q,inputInstRef:m,minusButtonInstRef:h,addButtonInstRef:g,mergedClsPrefix:n,mergedBordered:t,uncontrolledValue:_,mergedValue:v,mergedPlaceholder:w,displayedValueInvalid:ne,mergedSize:c,mergedDisabled:l,displayedValue:y,addable:N,minusable:re,mergedStatus:f,handleFocus:se,handleBlur:L,handleClear:R,handleMouseDown:de,handleAddClick:W,handleMinusClick:_e,handleAddMousedown:ge,handleMinusMousedown:me,handleKeyDown:G,handleUpdateDisplayedValue:ve,mergedTheme:a,inputThemeOverrides:{paddingSmall:`0 8px 0 10px`,paddingMedium:`0 8px 0 12px`,paddingLarge:`0 8px 0 14px`},buttonThemeOverrides:S(()=>{let{self:{iconColorDisabled:e}}=a.value,[t,n,r,i]=u(e);return{textColorTextDisabled:`rgb(${t}, ${n}, ${r})`,opacityDisabled:`${i}`}})})},render(){let{mergedClsPrefix:e,$slots:t}=this,n=()=>c(ue,{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:()=>z(t[`minus-icon`],()=>[c(Y,{clsPrefix:e},{default:()=>c(_e,null)})])}),r=()=>c(ue,{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:()=>z(t[`add-icon`],()=>[c(Y,{clsPrefix:e},{default:()=>c(ge,null)})])});return c(`div`,{class:[`${e}-input-number`,this.rtlEnabled&&`${e}-input-number--rtl`]},c(W,{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(),B(t.prefix,t=>t?c(`span`,{class:`${e}-input-number-prefix`},t):null)]:t.prefix?.call(t),suffix:()=>this.showButton?[B(t.suffix,t=>t?c(`span`,{class:`${e}-input-number-suffix`},t):null),this.buttonPlacement===`right`?n():null,r()]:t.suffix?.call(t)}))}}),Ue={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},We=A({name:`Flag`,render:function(e,t){return o(),N(`svg`,Ue,t[0]||=[P(`path`,{d:`M6 30H4V2h24l-5.8 9l5.8 9H6zm0-12h18.33l-4.53-7l4.53-7H6z`,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=A({name:`Pause`,render:function(e,t){return o(),N(`svg`,Ge,t[0]||=[P(`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),P(`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)])}}),qe={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},Je=A({name:`Play`,render:function(e,t){return o(),N(`svg`,qe,t[0]||=[P(`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)])}}),Ye={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},Xe=A({name:`Reset`,render:function(e,t){return o(),N(`svg`,Ye,t[0]||=[P(`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)])}}),Ze={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},Qe=A({name:`Trophy`,render:function(e,t){return o(),N(`svg`,Ze,t[0]||=[P(`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)])}}),$e={key:0,class:`timer-preview`},et=[`src`],tt=[`src`],nt={key:3,class:`preview-message`},rt={key:4,class:`preview-message`},it={key:5,class:`preview-message`},at={key:6,class:`preview-message`},ot={key:7,class:`preview-results`},st=[`src`],ct=H(A({__name:`ScreenPreview`,props:{state:{},questions:{},teams:{}},setup(t){let n=t,i=D(Date.now()),c=D(0),l=D(Date.now()),u=D(),d=null,f=S(()=>{let e=n.state.backgroundImage||n.state.coverImage;return e?{backgroundImage:`linear-gradient(rgb(0 0 0 / 55%), rgb(0 0 0 / 55%)), url("${e}")`}:{}}),p=S(()=>n.state.timerState===`SCREEN_TIMER_STATE_RUNNING`?Math.max(0,c.value-(i.value-l.value)/1e3):c.value),h=S(()=>{let e=Math.floor(p.value/60),t=Math.floor(p.value%60);return`${String(e).padStart(2,`0`)}:${String(t).padStart(2,`0`)}`}),_=S(()=>ke(n.state.introAudio)),v=S(()=>ke(n.state.conclusionVideo));return j(()=>[n.state.timerRemainingSeconds,n.state.timerState,n.state.stateVersion],()=>{let e=Math.max(0,Number(n.state.timerRemainingSeconds||0));if(n.state.timerState===`SCREEN_TIMER_STATE_RUNNING`&&u.value===n.state.timerState){let t=Math.max(0,c.value-(Date.now()-l.value)/1e3);if(Math.abs(e-t)<=.5)return}c.value=e,l.value=Date.now(),u.value=n.state.timerState},{immediate:!0}),m(()=>{d=window.setInterval(()=>{i.value=Date.now()},250)}),g(()=>{d!=null&&window.clearInterval(d)}),(n,i)=>(o(),N(`div`,{class:`screen-preview`,style:r(f.value)},[t.state.mode===`SCREEN_MODE_TIMER`?(o(),N(`div`,$e,[P(`h2`,null,s(t.state.timerLabel||`Перерыв`),1),P(`strong`,null,s(h.value),1)])):t.state.mode===`SCREEN_MODE_INTRO`&&_.value?(o(),N(`audio`,{key:1,src:_.value,controls:``},null,8,et)):t.state.mode===`SCREEN_MODE_CONCLUSION`&&v.value?(o(),N(`video`,{key:2,src:v.value,autoplay:``,class:`preview-video`,loop:``,muted:``,playsinline:``},null,8,tt)):t.state.mode===`SCREEN_MODE_CONCLUSION`?(o(),N(`div`,nt,` Видео закрывашки не задано `)):t.state.mode===`SCREEN_MODE_INTRO_DONE`?(o(),N(`div`,rt,`Успехов`)):t.state.mode===`SCREEN_MODE_CONCLUSION_DONE`?(o(),N(`div`,it,` Спасибо за игру! `)):t.state.mode===`SCREEN_MODE_TEXT`?(o(),N(`div`,at,s(t.state.text),1)):t.state.mode===`SCREEN_MODE_RESULTS`?(o(),N(`div`,ot,[i[4]||=P(`h2`,null,`Результаты`,-1),P(`table`,null,[P(`thead`,null,[P(`tr`,null,[i[0]||=P(`th`,null,`Место`,-1),i[1]||=P(`th`,null,`Команда`,-1),(o(!0),N(O,null,a(t.questions,e=>(o(),N(`th`,{key:e.code},s(e.code),1))),128)),i[2]||=P(`th`,null,`Сумма`,-1),i[3]||=P(`th`,null,`Ходы`,-1)])]),P(`tbody`,null,[(o(!0),N(O,null,a(t.teams,e=>(o(),N(`tr`,{key:e.team?.ID},[P(`td`,null,s(e.place),1),P(`td`,null,s(e.team?.name),1),(o(!0),N(O,null,a(t.questions,t=>(o(),N(`td`,{key:t.code},s(e.answers?.find(e=>e.questionCode===t.code)?.score??0),1))),128)),P(`td`,null,s(e.totalScore),1),P(`td`,null,s(e.actionsCount),1)]))),128))])])])):t.state.coverImage?(o(),N(`img`,{key:8,src:t.state.coverImage,alt:`Обложка дела`,class:`preview-cover`},null,8,st)):e(``,!0)],4))}}),[[`__scopeId`,`data-v-d5134fb8`]]),Q=H(A({__name:`UiBlock`,props:{tag:{default:`div`}},setup(e){return(t,n)=>(o(),f(y(e.tag),{class:`ui-block`},{default:k(()=>[v(t.$slots,`default`,{},void 0,!0)]),_:3}))}}),[[`__scopeId`,`data-v-80193f22`]]),lt={class:`map-preview-layout`},ut=[`onPointerdown`],dt=[`onPointerdown`],ft={key:2},pt=[`onClick`],mt={key:1,class:`screen-preview-placeholder`},ht={class:`screen-plan`},gt={key:0,class:`screen-empty`},_t=20,vt=H(A({__name:`GameMapPanel`,props:{mapItems:{},teams:{},screens:{},previewQuestions:{},previewTeams:{},screenPlan:{},screenPlanDraft:{},screenPlanDirty:{type:Boolean},screenPlanSaving:{type:Boolean},screenPlanMode:{},screenVolume:{},screenPosition:{}},emits:[`saveItem`,`dragging`,`giveApplication`,`addStep`,`edit`,`cancel`,`removeStep`,`moveStep`,`dirty`,`clearPlan`,`save`,`setStep`,`command`,`update:screenVolume`,`update:screenPosition`],setup(i,{emit:c}){let u=i,d=c,p=D(1),m=D({x:0,y:0}),g=D(),_=S(()=>u.screens.find(e=>e.status===`connected`)||u.screens[0]),v=S(()=>new Map(u.teams.filter(e=>e.applications?.length).map(e=>[e.ID,e]))),y=[{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`}],b,C;function w(e){let t=g.value;if(!t)return;let n=t.getBoundingClientRect();return{x:(e.clientX-n.left-t.clientLeft-m.value.x)/p.value,y:(e.clientY-n.top-t.clientTop-m.value.y)/p.value}}function T(e,t){let n=w(t);n&&(b={item:e,offsetX:n.x-(e.x||0),offsetY:n.y-(e.y||0)},d(`dragging`,!0),window.addEventListener(`pointermove`,E),window.addEventListener(`pointerup`,A,{once:!0}),window.addEventListener(`pointercancel`,A,{once:!0}))}function E(e){if(!b)return;let t=w(e);t&&(b.item.x=Math.round((t.x-b.offsetX)/_t)*_t,b.item.y=Math.round((t.y-b.offsetY)/_t)*_t)}function A(){if(!b)return;let e=b.item;b=void 0,window.removeEventListener(`pointermove`,E),window.removeEventListener(`pointerup`,A),window.removeEventListener(`pointercancel`,A),d(`dragging`,!1),d(`saveItem`,e)}function ee(e){e.hidden=!e.hidden,d(`saveItem`,e,e.hidden)}function j(e){p.value=Math.min(2,Math.max(.5,Number((p.value+e).toFixed(2))))}function M(){p.value=1,m.value={x:0,y:0}}function te(e){e.button===0&&(C={startX:e.clientX,startY:e.clientY,offsetX:m.value.x,offsetY:m.value.y},window.addEventListener(`pointermove`,ne),window.addEventListener(`pointerup`,re,{once:!0}))}function ne(e){C&&(m.value={x:C.offsetX+e.clientX-C.startX,y:C.offsetY+e.clientY-C.startY})}function re(){C=void 0,window.removeEventListener(`pointermove`,ne)}function ie(e){e.preventDefault(),j(e.deltaY<0?.1:-.1)}return h(()=>{b&&d(`dragging`,!1),window.removeEventListener(`pointermove`,E),window.removeEventListener(`pointerup`,A),window.removeEventListener(`pointercancel`,A),window.removeEventListener(`pointermove`,ne),window.removeEventListener(`pointerup`,re)}),(c,u)=>(o(),N(`div`,lt,[l(Q,null,{default:k(()=>[l(F(q),{align:`center`,justify:`space-between`,class:`screen-header`},{default:k(()=>[u[18]||=P(`p`,{class:`screens-title`},`Карта помещения`,-1),l(F(K),null,{default:k(()=>[l(F(R),{size:`small`,onClick:u[0]||=e=>j(-.1)},{default:k(()=>[...u[15]||=[t(`−`,-1)]]),_:1}),l(F(U),null,{default:k(()=>[t(s(Math.round(p.value*100))+`%`,1)]),_:1}),l(F(R),{size:`small`,onClick:u[1]||=e=>j(.1)},{default:k(()=>[...u[16]||=[t(`+`,-1)]]),_:1}),l(F(R),{size:`small`,onClick:M},{default:k(()=>[...u[17]||=[t(`Сбросить`,-1)]]),_:1})]),_:1})]),_:1}),P(`div`,{ref_key:`mapField`,ref:g,class:`map-field`,onPointerdown:te,onWheel:ie},[P(`div`,{class:`map-canvas`,style:r({transform:`translate(${m.value.x}px, ${m.value.y}px) scale(${p.value})`})},[(o(!0),N(O,null,a(i.mapItems,i=>x((o(),N(`div`,{key:`${i.kind}-${i.itemID}`,class:n([`map-item`,[i.kind===`screen`?`map-screen`:i.kind===`organizer_desk`?`map-organizer-desk`:`map-team`,{"map-team-needs-applications":i.kind===`team`&&v.value.has(i.itemID)}]]),style:r({left:`${i.x||0}px`,top:`${i.y||0}px`}),onPointerdown:we(e=>i.kind!==`team`&&T(i,e),[`stop`])},[i.kind===`team`?(o(),N(`div`,{key:0,class:`map-team-handle`,onPointerdown:we(e=>T(i,e),[`stop`])},null,40,dt)):e(``,!0),P(`span`,null,s(i.label),1),i.kind===`team`&&v.value.has(i.itemID)?(o(),f(F(K),{key:1,class:`map-team-applications`,vertical:``},{default:k(()=>[(o(!0),N(O,null,a(v.value.get(i.itemID)?.applications,e=>(o(),f(F(R),{key:e.name,size:`small`,onClick:t=>d(`giveApplication`,v.value.get(i.itemID),e)},{default:k(()=>[t(` Выдать: `+s(e.name),1)]),_:2},1032,[`onClick`]))),128))]),_:2},1024)):e(``,!0),i.kind===`screen`?(o(),N(`small`,ft,s(i.status)+s(i.soundEnabled?` · звук`:``),1)):e(``,!0),P(`button`,{class:`map-item-hide`,type:`button`,onPointerdown:u[2]||=we(()=>{},[`stop`]),onClick:we(e=>ee(i),[`stop`])},` × `,40,pt)],46,ut)),[[xe,!i.hidden]])),128))],4)],544),i.mapItems.some(e=>e.hidden)?(o(),f(F(K),{key:0,class:`map-hidden-items`},{default:k(()=>[(o(!0),N(O,null,a(i.mapItems.filter(e=>e.hidden),e=>(o(),f(F(R),{key:`hidden-${e.kind}-${e.itemID}`,size:`small`,onClick:t=>ee(e)},{default:k(()=>[t(` Добавить `+s(e.label),1)]),_:2},1032,[`onClick`]))),128))]),_:1})):e(``,!0)]),_:1}),l(Q,{tag:`aside`,class:`screen-preview-panel`},{default:k(()=>[u[41]||=P(`p`,{class:`screens-title`},`Превью экрана`,-1),_.value?.status===`connected`?(o(),f(ct,{key:0,state:_.value,questions:i.previewQuestions,teams:i.previewTeams},null,8,[`state`,`questions`,`teams`])):(o(),N(`div`,mt,`Экран не подключён`)),P(`div`,ht,[l(F(q),{align:`center`,justify:`space-between`,class:`screen-header`},{default:k(()=>[u[23]||=P(`p`,{class:`screens-title`},`План экранов`,-1),l(F(K),null,{default:k(()=>[!i.screenPlan&&i.screenPlanMode===`use`?(o(),f(F(R),{key:0,size:`small`,onClick:u[3]||=e=>d(`addStep`)},{default:k(()=>[...u[19]||=[t(` Создать план `,-1)]]),_:1})):e(``,!0),i.screenPlan&&i.screenPlanMode===`use`?(o(),f(F(R),{key:1,size:`small`,onClick:u[4]||=e=>d(`edit`)},{default:k(()=>[...u[20]||=[t(` Редактировать `,-1)]]),_:1})):e(``,!0),i.screenPlanMode===`edit`?(o(),N(O,{key:2},[l(F(R),{size:`small`,disabled:i.screenPlanSaving,onClick:u[5]||=e=>d(`cancel`)},{default:k(()=>[...u[21]||=[t(` Отменить `,-1)]]),_:1},8,[`disabled`]),l(F(R),{size:`small`,type:`primary`,loading:i.screenPlanSaving,disabled:i.screenPlanSaving,onClick:u[6]||=e=>d(`save`)},{default:k(()=>[...u[22]||=[t(` Сохранить план `,-1)]]),_:1},8,[`loading`,`disabled`])],64)):e(``,!0)]),_:1})]),_:1}),!i.screenPlan&&i.screenPlanMode===`use`?(o(),N(`p`,gt,` План экранов ещё не создан. `)):i.screenPlanMode===`edit`?(o(),N(O,{key:1},[(o(!0),N(O,null,a(i.screenPlanDraft,(n,r)=>(o(),f(F(K),{key:r,class:`screen-plan-step`,align:`center`,justify:`space-between`,wrap:``},{default:k(()=>[l(F(K),{align:`center`,wrap:``},{default:k(()=>[l(F(U),null,{default:k(()=>[t(s(r+1),1)]),_:2},1024),l(F(pe),{value:n.mode,"onUpdate:value":[e=>n.mode=e,u[7]||=e=>d(`dirty`)],options:y,disabled:i.screenPlanSaving,size:`small`,style:{width:`180px`}},null,8,[`value`,`onUpdate:value`,`disabled`]),n.mode===`SCREEN_MODE_TEXT`?(o(),f(F(W),{key:0,value:n.text,"onUpdate:value":[e=>n.text=e,u[8]||=e=>d(`dirty`)],disabled:i.screenPlanSaving,size:`small`,placeholder:`Текст экрана`,style:{"min-width":`240px`}},null,8,[`value`,`onUpdate:value`,`disabled`])):e(``,!0),n.mode===`SCREEN_MODE_TIMER`?(o(),N(O,{key:1},[l(F(W),{value:n.timerLabel,"onUpdate:value":[e=>n.timerLabel=e,u[9]||=e=>d(`dirty`)],disabled:i.screenPlanSaving,size:`small`,placeholder:`Надпись таймера`},null,8,[`value`,`onUpdate:value`,`disabled`]),l(F(He),{value:n.timerDurationSeconds,"onUpdate:value":[e=>n.timerDurationSeconds=e,u[10]||=e=>d(`dirty`)],min:1,max:86400,disabled:i.screenPlanSaving,size:`small`,placeholder:`Секунды`},null,8,[`value`,`onUpdate:value`,`disabled`])],64)):e(``,!0)]),_:2},1024),l(F(K),{class:`screen-plan-actions`},{default:k(()=>[l(F(R),{size:`small`,disabled:i.screenPlanSaving||r===0,onClick:e=>d(`moveStep`,r,-1)},{default:k(()=>[...u[24]||=[t(` ↑ `,-1)]]),_:1},8,[`disabled`,`onClick`]),l(F(R),{size:`small`,disabled:i.screenPlanSaving||r===i.screenPlanDraft.length-1,onClick:e=>d(`moveStep`,r,1)},{default:k(()=>[...u[25]||=[t(` ↓ `,-1)]]),_:1},8,[`disabled`,`onClick`]),l(F(R),{size:`small`,type:`error`,ghost:``,disabled:i.screenPlanSaving,onClick:e=>d(`removeStep`,r)},{default:k(()=>[...u[26]||=[t(` Удалить `,-1)]]),_:1},8,[`disabled`,`onClick`])]),_:2},1024)]),_:2},1024))),128)),l(F(K),null,{default:k(()=>[l(F(R),{size:`small`,disabled:i.screenPlanSaving,onClick:u[11]||=e=>d(`addStep`)},{default:k(()=>[...u[27]||=[t(` Добавить шаг `,-1)]]),_:1},8,[`disabled`]),i.screenPlanDraft.length?(o(),f(F(R),{key:0,size:`small`,disabled:i.screenPlanSaving,onClick:u[12]||=e=>d(`clearPlan`)},{default:k(()=>[...u[28]||=[t(` Удалить план `,-1)]]),_:1},8,[`disabled`])):e(``,!0)]),_:1})],64)):i.screenPlan?(o(!0),N(O,{key:2},a(i.screenPlan.steps||[],(n,r)=>(o(),f(F(K),{key:r,class:`screen-plan-step`,align:`center`,justify:`space-between`,wrap:``},{default:k(()=>[l(F(K),{align:`center`},{default:k(()=>[l(F(U),null,{default:k(()=>[t(s(r+1),1)]),_:2},1024),l(F(U),null,{default:k(()=>[t(s(y.find(e=>e.value===n.mode)?.label)+` `,1),n.mode===`SCREEN_MODE_TEXT`?(o(),N(O,{key:0},[t(`: `+s(n.text),1)],64)):n.mode===`SCREEN_MODE_TIMER`?(o(),N(O,{key:1},[t(` : `+s(n.timerLabel)+` (`+s(n.timerDurationSeconds)+` с) `,1)],64)):e(``,!0)]),_:2},1024)]),_:2},1024),l(F(K),{class:`screen-plan-actions`},{default:k(()=>[l(F(R),{size:`small`,type:i.screenPlan.currentStep===r?`primary`:`default`,disabled:i.screenPlan.currentStep===r,onClick:e=>d(`setStep`,r)},{default:k(()=>[...u[29]||=[t(` Показать `,-1)]]),_:1},8,[`type`,`disabled`,`onClick`]),i.screenPlan.currentStep===r?(o(),N(O,{key:0},[n.mode===`SCREEN_MODE_TIMER`?(o(),N(O,{key:0},[l(F(R),{size:`small`,onClick:e=>d(`command`,n.mode,`SCREEN_COMMAND_TIMER_START`)},{default:k(()=>[...u[30]||=[t(` Старт `,-1)]]),_:1},8,[`onClick`]),l(F(R),{size:`small`,onClick:e=>d(`command`,n.mode,`SCREEN_COMMAND_TIMER_PAUSE`)},{default:k(()=>[...u[31]||=[t(` Пауза `,-1)]]),_:1},8,[`onClick`]),l(F(R),{size:`small`,onClick:e=>d(`command`,n.mode,`SCREEN_COMMAND_TIMER_RESUME`)},{default:k(()=>[...u[32]||=[t(` Продолжить `,-1)]]),_:1},8,[`onClick`]),l(F(R),{size:`small`,onClick:e=>d(`command`,n.mode,`SCREEN_COMMAND_TIMER_RESET`)},{default:k(()=>[...u[33]||=[t(` Сбросить `,-1)]]),_:1},8,[`onClick`])],64)):n.mode===`SCREEN_MODE_INTRO`||n.mode===`SCREEN_MODE_CONCLUSION`?(o(),N(O,{key:1},[l(F(R),{size:`small`,onClick:e=>d(`command`,n.mode,`SCREEN_COMMAND_PLAY`)},{default:k(()=>[...u[34]||=[t(` Запуск `,-1)]]),_:1},8,[`onClick`]),l(F(R),{size:`small`,onClick:e=>d(`command`,n.mode,`SCREEN_COMMAND_PAUSE`)},{default:k(()=>[...u[35]||=[t(` Пауза `,-1)]]),_:1},8,[`onClick`]),l(F(R),{size:`small`,onClick:e=>d(`command`,n.mode,`SCREEN_COMMAND_RESUME`)},{default:k(()=>[...u[36]||=[t(` Продолжить `,-1)]]),_:1},8,[`onClick`]),l(F(R),{size:`small`,onClick:e=>d(`command`,n.mode,`SCREEN_COMMAND_STOP`)},{default:k(()=>[...u[37]||=[t(` Стоп `,-1)]]),_:1},8,[`onClick`]),l(F(R),{size:`small`,onClick:e=>d(`command`,n.mode,`SCREEN_COMMAND_REPLAY`)},{default:k(()=>[...u[38]||=[t(` Повтор `,-1)]]),_:1},8,[`onClick`]),l(F(He),{value:i.screenVolume,min:0,max:100,step:5,size:`small`,"onUpdate:value":u[13]||=e=>d(`update:screenVolume`,e)},null,8,[`value`]),l(F(R),{size:`small`,onClick:e=>d(`command`,n.mode,`SCREEN_COMMAND_VOLUME`)},{default:k(()=>[...u[39]||=[t(` Громкость `,-1)]]),_:1},8,[`onClick`]),l(F(He),{value:i.screenPosition,min:0,step:5,size:`small`,"onUpdate:value":u[14]||=e=>d(`update:screenPosition`,e)},null,8,[`value`]),l(F(R),{size:`small`,onClick:e=>d(`command`,n.mode,`SCREEN_COMMAND_SEEK`)},{default:k(()=>[...u[40]||=[t(` Перемотать `,-1)]]),_:1},8,[`onClick`])],64)):e(``,!0)],64)):e(``,!0)]),_:2},1024)]),_:2},1024))),128)):e(``,!0)])]),_:1})]))}}),[[`__scopeId`,`data-v-1e1af018`]]),yt=H(A({__name:`ScreenBindingModal`,props:i({binding:{type:Boolean}},{show:{type:Boolean,required:!0},showModifiers:{}}),emits:i([`scanned`],[`update:show`]),setup(n,{emit:r}){let i=w(n,`show`),a=r,c=D(``),u=D(),p=D(!1),m,g=0;function _(){cancelAnimationFrame(g),m?.getTracks().forEach(e=>e.stop()),m=void 0,p.value=!1}function v(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 y(){let e=window.BarcodeDetector;if(!e||!navigator.mediaDevices?.getUserMedia){c.value=`Сканирование камерой не поддерживается в этом браузере.`;return}c.value=``;try{if(m=await navigator.mediaDevices.getUserMedia({video:{facingMode:`environment`}}),p.value=!0,await d(),!u.value)return;u.value.srcObject=m,await u.value.play();let t=new e,n=async()=>{if(!(!u.value||!m))try{let e=(await t.detect(u.value))[0]?.rawValue;if(e){let t=v(e);if(t){_(),i.value=!1,a(`scanned`,t.screenID,t.accessToken);return}c.value=`Это не QR-код экрана.`}g=requestAnimationFrame(n)}catch{c.value=`Не удалось распознать QR-код.`,_()}};g=requestAnimationFrame(n)}catch{c.value=`Не удалось открыть камеру.`,_()}}function b(){_(),i.value=!1}return j(i,e=>{e?y():_()}),h(_),(r,a)=>(o(),f(F(L),{show:i.value,"onUpdate:show":a[0]||=e=>i.value=e},{default:k(()=>[l(F(I),{style:{width:`min(600px, 94vw)`},title:`Привязать экран`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":k(()=>[l(F(R),{onClick:b},{default:k(()=>[...a[1]||=[t(` x `,-1)]]),_:1})]),default:k(()=>[l(F(K),{vertical:``},{default:k(()=>[P(`video`,{ref_key:`scannerVideo`,ref:u,class:`screen-scanner-video`,muted:``,playsinline:``},null,512),c.value?(o(),f(F(ve),{key:0,type:`error`},{default:k(()=>[t(s(c.value),1)]),_:1})):e(``,!0),!p.value&&!n.binding?(o(),f(F(R),{key:1,type:`primary`,onClick:y},{default:k(()=>[...a[2]||=[t(` Сканировать QR-код `,-1)]]),_:1})):e(``,!0),p.value?(o(),f(F(R),{key:2,onClick:_},{default:k(()=>[...a[3]||=[t(`Остановить камеру`,-1)]]),_:1})):e(``,!0),n.binding?(o(),f(F(R),{key:3,type:`primary`,loading:``},{default:k(()=>[...a[4]||=[t(`Привязка…`,-1)]]),_:1})):e(``,!0)]),_:1})]),_:1})]),_:1},8,[`show`]))}}),[[`__scopeId`,`data-v-5f530845`]]),bt={key:1,class:`screen-empty`},xt={class:`screen-status`},St={key:0,class:`screen-error`},Ct={key:0,class:`track-list`},$={key:0,class:`track-empty`},wt={class:`track-main`},Tt={class:`track-number`},Et={class:`track-details`},Dt={class:`track-name`},Ot={class:`volume-control`},kt=H(A({__name:`GameScreensPanel`,props:{screens:{},screenBinding:{type:Boolean},playlists:{},music:{}},emits:[`bind`,`setSound`,`unbind`,`setMusic`,`createPlaylist`,`deletePlaylist`,`uploadTrack`,`deleteTrack`],setup(r,{emit:i}){let c=r,u=i,d=D(!1),p=D(``);function m(e){e.file.file&&u(`uploadTrack`,e.file.file)}function h(e){e!==c.music?.trackIndex&&u(`setMusic`,{trackIndex:e,positionMs:0})}return(i,g)=>{let v=_(`n-tag`);return o(),N(O,null,[l(Q,null,{default:k(()=>[l(F(q),{align:`center`,justify:`space-between`,class:`screen-header`},{default:k(()=>[g[13]||=P(`p`,{class:`screens-title`},`Экраны`,-1),l(F(R),{size:`small`,onClick:g[0]||=e=>d.value=!0},{default:k(()=>[...g[12]||=[t(` Привязать экран `,-1)]]),_:1})]),_:1}),r.screens.some(e=>e.status===`disconnected`)?(o(),f(F(ve),{key:0,type:`warning`,title:`Проверьте подключение экрана`},{default:k(()=>[...g[14]||=[t(` Один или несколько экранов не выходят на связь более минуты. `,-1)]]),_:1})):e(``,!0),r.screens.length===0?(o(),N(`p`,bt,`К игре пока не привязаны экраны.`)):(o(!0),N(O,{key:2},a(r.screens,n=>(o(),N(`div`,{key:n.ID,class:`screen-row`},[P(`div`,null,[P(`div`,null,`Экран `+s(n.ID),1),P(`div`,xt,s(n.status===`connected`?`Онлайн`:`Оффлайн`),1),n.error?(o(),N(`div`,St,s(n.error),1)):e(``,!0)]),l(F(q),{justify:`end`},{default:k(()=>[n.soundEnabled?(o(),f(v,{key:0,type:`success`},{default:k(()=>[...g[15]||=[t(`Со звуком`,-1)]]),_:1})):(o(),f(F(R),{key:1,size:`small`,onClick:e=>u(`setSound`,n)},{default:k(()=>[...g[16]||=[t(`Назначить звук`,-1)]]),_:1},8,[`onClick`])),l(F(R),{size:`small`,type:`error`,ghost:``,onClick:e=>u(`unbind`,n)},{default:k(()=>[...g[17]||=[t(` Отвязать `,-1)]]),_:1},8,[`onClick`])]),_:2},1024)]))),128))]),_:1}),l(yt,{show:d.value,"onUpdate:show":g[1]||=e=>d.value=e,binding:c.screenBinding,onScanned:g[2]||=(e,t)=>u(`bind`,e,t)},null,8,[`show`,`binding`]),l(Q,{class:`music-block`},{default:k(()=>[g[29]||=P(`p`,{class:`screens-title`},`Музыка`,-1),l(F(q),{align:`center`,wrap:``,class:`playlist-actions`},{default:k(()=>[l(F(W),{value:p.value,"onUpdate:value":g[3]||=e=>p.value=e,placeholder:`Новый плейлист`,style:{"max-width":`220px`}},null,8,[`value`]),l(F(R),{size:`small`,disabled:!p.value.trim(),onClick:g[4]||=e=>{u(`createPlaylist`,p.value.trim()),p.value=``}},{default:k(()=>[...g[18]||=[t(` Создать `,-1)]]),_:1},8,[`disabled`]),c.music?.playlist?.ID?(o(),f(F(R),{key:0,size:`small`,type:`error`,ghost:``,onClick:g[5]||=e=>u(`deletePlaylist`,c.music.playlist.ID)},{default:k(()=>[...g[19]||=[t(` Удалить плейлист `,-1)]]),_:1})):e(``,!0),l(F(me),{accept:`.mp3,audio/mpeg`,"default-upload":!1,"show-file-list":!1,onChange:m},{default:k(()=>[l(F(R),{size:`small`},{default:k(()=>[...g[20]||=[t(`Добавить MP3`,-1)]]),_:1})]),_:1})]),_:1}),l(F(q),{align:`center`,wrap:``},{default:k(()=>[l(F(pe),{value:c.music?.playlist?.ID,options:c.playlists.map(e=>({label:e.name,value:e.ID})),placeholder:`Плейлист`,clearable:``,style:{"min-width":`220px`},"onUpdate:value":g[6]||=e=>u(`setMusic`,{playlistID:e||0,trackIndex:0,playback:`MUSIC_PLAYBACK_STOPPED`})},null,8,[`value`,`options`]),c.music?.playlist?(o(),N(`div`,Ct,[c.music.playlist.tracks?.length?e(``,!0):(o(),N(`p`,$,`В плейлисте пока нет треков.`)),(o(!0),N(O,null,a(c.music.playlist.tracks,(e,r)=>(o(),N(`div`,{key:e.ID,class:n([`track-row`,{"track-row-active":r===(c.music.trackIndex??0)}])},[P(`div`,wt,[P(`span`,Tt,s(r+1),1),P(`span`,Et,[P(`span`,Dt,s(e.name||`Трек ${r+1}`),1)])]),l(F(q),{align:`center`,class:`track-actions`},{default:k(()=>[l(F(R),{size:`small`,type:r===(c.music.trackIndex??0)?`success`:`primary`,ghost:``,class:n({"track-switch-active":r===(c.music.trackIndex??0)}),onClick:e=>h(r)},{default:k(()=>[t(s(r===(c.music.trackIndex??0)?c.music.playback===`MUSIC_PLAYBACK_PLAYING`?`Играет`:`Выбран`:`Включить`),1)]),_:2},1032,[`type`,`class`,`onClick`]),l(F(R),{size:`small`,type:`error`,ghost:``,onClick:t=>u(`deleteTrack`,e.ID)},{default:k(()=>[...g[21]||=[t(` Удалить `,-1)]]),_:1},8,[`onClick`])]),_:2},1024)],2))),128))])):e(``,!0),l(F(R),{size:`small`,onClick:g[7]||=e=>u(`setMusic`,{playback:`MUSIC_PLAYBACK_PLAYING`})},{default:k(()=>[...g[22]||=[t(`Старт`,-1)]]),_:1}),l(F(R),{size:`small`,onClick:g[8]||=e=>u(`setMusic`,{playback:`MUSIC_PLAYBACK_PAUSED`})},{default:k(()=>[...g[23]||=[t(`Пауза`,-1)]]),_:1}),l(F(R),{size:`small`,onClick:g[9]||=e=>u(`setMusic`,{playback:`MUSIC_PLAYBACK_STOPPED`,positionMs:0})},{default:k(()=>[...g[24]||=[t(`Стоп`,-1)]]),_:1}),P(`div`,Ot,[g[26]||=P(`span`,{class:`volume-label`},`Громкость`,-1),l(F(He),{value:c.music?.volume??100,min:0,max:100,step:5,size:`small`,"show-button":!0,"aria-label":`Громкость музыки`,class:`volume-input`,"onUpdate:value":g[10]||=e=>e!=null&&u(`setMusic`,{volume:e})},{suffix:k(()=>[...g[25]||=[t(`%`,-1)]]),_:1},8,[`value`])]),l(F(G),{value:c.music?.loop,round:!1,"onUpdate:value":g[11]||=e=>u(`setMusic`,{loop:e})},{checked:k(()=>[...g[27]||=[t(`Loop`,-1)]]),unchecked:k(()=>[...g[28]||=[t(`Loop`,-1)]]),_:1},8,[`value`])]),_:1})]),_:1})],64)}}}),[[`__scopeId`,`data-v-c8e2dfff`]]),At={class:`team-content-block`},jt={class:`title-block`},Mt={class:`team-name-block`},Nt={key:0},Pt={key:1},Ft={key:0},It={key:0},Lt={key:1},Rt={key:2},zt={key:3},Bt={key:4},Vt=H(A({__name:`GameTeamsPanel`,props:{teams:{},participationOptions:{}},emits:[`add`,`open-qr`,`preview`,`delete`,`give-application`],setup(n,{emit:r}){let i=r;return(r,c)=>(o(),N(O,null,[l(Q,{class:`team-block-hover`,onClick:c[0]||=e=>i(`add`)},{default:k(()=>[...c[1]||=[P(`p`,{class:`place-image-plus`},`+`,-1)]]),_:1}),(o(!0),N(O,null,a(n.teams,r=>(o(),f(Q,{key:r.ID},{default:k(()=>[P(`div`,At,[l(F(q),{justify:`space-between`},{default:k(()=>[P(`div`,jt,[P(`span`,Mt,[t(s(r.name)+` `,1),r.captainEmail?(o(),N(`small`,Nt,` — `+s(r.captainEmail),1)):e(``,!0),r.participantsCount?(o(),N(`small`,Pt,` · Участников: `+s(r.participantsCount),1)):e(``,!0)]),r.captainEmail||r.participationStatus!==`pending`?(o(),N(`div`,Ft,[t(s(n.participationOptions.find(e=>e.value===r.participationStatus)?.label),1),r.participationSource===`automatic`?(o(),N(`span`,It,` · автоматически`)):e(``,!0)])):e(``,!0),r.captainEmail?r.participationEmailError?(o(),N(`div`,Rt,` Ошибка отправки: `+s(r.participationEmailError),1)):r.participationEmailSent?(o(),N(`div`,zt,`Письмо отправлено`)):e(``,!0):(o(),N(`div`,Lt,`Почта капитана не указана`)),r.participationStatus===`cancelled`?e(``,!0):(o(),N(`div`,Bt,` Поездки: `+s(r.actionsCount),1))]),l(F(q),{justify:`end`},{default:k(()=>[r.participationStatus===`cancelled`?e(``,!0):(o(),f(F(R),{key:0,onClick:e=>i(`open-qr`,r)},{default:k(()=>[...c[2]||=[t(`QR`,-1)]]),_:1},8,[`onClick`])),r.participationStatus===`cancelled`?e(``,!0):(o(),f(F(R),{key:1,onClick:e=>i(`preview`,r.ID,r.password)},{default:k(()=>[...c[3]||=[t(`Подсмотреть игру`,-1)]]),_:1},8,[`onClick`])),l(F(R),{type:`error`,ghost:``,onClick:e=>i(`delete`,r)},{default:k(()=>[...c[4]||=[t(`Удалить`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)]),_:2},1024),(o(!0),N(O,null,a(r.applications,e=>(o(),f(F(R),{key:e.name,class:`link-button`,onClick:t=>i(`give-application`,r,e)},{default:k(()=>[t(` Выдать: `+s(e.name),1)]),_:2},1032,[`onClick`]))),128))])]),_:2},1024))),128))],64))}}),[[`__scopeId`,`data-v-561486cb`]]),Ht={key:0},Ut={key:1},Wt={key:2},Gt=H(A({__name:`TicketCheckModal`,props:{show:{type:Boolean,required:!0},showModifiers:{}},emits:[`update:show`],setup(n){let r=w(n,`show`),i=Se(),a=ae(),c=D(``),u=D(),p=D(``),m=D(!1),g=D(),_=D(!1),v,y=0,b=S(()=>{try{return new URL(c.value.trim()).pathname.match(/\/tickets\/([^/]+)/)?.[1]||``}catch{return c.value.trim()}});async function x(){if(!(!b.value||m.value)){m.value=!0,p.value=``,u.value=void 0;try{let e=await i.GetTicket({token:b.value});e.ticket?u.value=e.ticket:p.value=`Билет не найден`}catch(e){p.value=e instanceof Error?e.message:`Не удалось проверить билет`}finally{m.value=!1}}}async function C(){if(!(!b.value||m.value)){m.value=!0,p.value=``;try{let e=await i.AcceptTicket({token:b.value});e.ticket?(u.value=e.ticket,a.success(`Билет принят`)):p.value=`Не удалось принять билет`}catch(e){p.value=e instanceof Error?e.message:`Не удалось принять билет`}finally{m.value=!1}}}async function T(){let e=window.BarcodeDetector;if(!e||!navigator.mediaDevices?.getUserMedia){p.value=`Сканирование камерой не поддерживается. Введите ссылку вручную.`;return}p.value=``;try{if(v=await navigator.mediaDevices.getUserMedia({video:{facingMode:`environment`}}),_.value=!0,await d(),!g.value)return;g.value.srcObject=v,await g.value.play();let t=new e,n=async()=>{if(!(!_.value||!g.value))try{let e=(await t.detect(g.value))[0]?.rawValue;if(e){c.value=e,E(),await x();return}y=requestAnimationFrame(n)}catch{p.value=`Не удалось распознать QR-код.`,E()}};y=requestAnimationFrame(n)}catch{p.value=`Не удалось открыть камеру. Введите ссылку вручную.`,E()}}function E(){cancelAnimationFrame(y),v?.getTracks().forEach(e=>e.stop()),v=void 0,_.value=!1}function A(){E(),r.value=!1}return j(r,e=>{e?T():E()}),h(E),(n,i)=>(o(),f(F(L),{show:r.value,"onUpdate:show":i[1]||=e=>r.value=e},{default:k(()=>[l(F(I),{style:{width:`min(600px, 94vw)`},title:`Проверка билета`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":k(()=>[l(F(R),{onClick:A},{default:k(()=>[...i[2]||=[t(` x `,-1)]]),_:1})]),default:k(()=>[l(F(K),{vertical:``},{default:k(()=>[_.value?(o(),N(`video`,{key:0,ref_key:`video`,ref:g,class:`ticket-scanner-video`,muted:``,playsinline:``},null,512)):e(``,!0),p.value?(o(),f(F(ve),{key:1,type:`error`},{default:k(()=>[t(s(p.value),1)]),_:1})):e(``,!0),_.value?(o(),f(F(R),{key:3,onClick:E},{default:k(()=>[...i[4]||=[t(`Остановить камеру`,-1)]]),_:1})):(o(),f(F(R),{key:2,onClick:T},{default:k(()=>[...i[3]||=[t(`Сканировать QR-код`,-1)]]),_:1})),l(F(W),{value:c.value,"onUpdate:value":i[0]||=e=>c.value=e,placeholder:`Или вставьте ссылку на билет`,onKeyup:Ce(x,[`enter`])},null,8,[`value`]),l(F(R),{type:`primary`,loading:m.value,onClick:x},{default:k(()=>[...i[5]||=[t(` Проверить билет `,-1)]]),_:1},8,[`loading`]),u.value?(o(),N(O,{key:4},[l(F(ve),{type:u.value.status===`active`?`success`:`warning`},{default:k(()=>[t(s(u.value.gameName),1),i[6]||=P(`br`,null,null,-1),t(` Статус: `+s(u.value.status===`active`?`действителен`:`уже использован`)+` `,1),u.value.usedBy?(o(),N(`span`,Ht,` · `+s(u.value.usedBy),1)):e(``,!0),u.value.usedAt?(o(),N(`br`,Ut)):e(``,!0),u.value.usedAt?(o(),N(`span`,Wt,`Использован: `+s(F(je)(u.value.usedAt)),1)):e(``,!0)]),_:1},8,[`type`]),u.value.status===`active`&&u.value.gameStatus!==`finish`?(o(),f(F(R),{key:0,type:`primary`,loading:m.value,onClick:C},{default:k(()=>[...i[7]||=[t(` Принять билет `,-1)]]),_:1},8,[`loading`])):e(``,!0)],64)):e(``,!0)]),_:1})]),_:1})]),_:1},8,[`show`]))}}),[[`__scopeId`,`data-v-fe322487`]]),Kt={class:`center-block-custom`},qt={class:`width1200`},Jt={class:`game-tab-content`},Yt=[`href`],Xt={class:`game-tab-content`},Zt={class:`game-tab-content`},Qt={class:`game-tab-content`},$t={class:`game-tab-content`},en={class:`qr-block`},tn={class:`game-tab-content`},nn={key:0,class:`answers-empty`},rn={class:`answers-question-title`},an={class:`answers-question-answer`},on={class:`correct-answer`},sn={class:`answers-team-name`},cn={class:`answers-team-answer`},ln={key:0,class:`give-application-image-block`},un=[`src`],dn=[`src`],fn=[`href`],pn={class:`qr-block`},mn={key:0,class:`answers-empty`},hn=`https://www.sberbank.ru/ru/choise_bank?requisiteNumber=79609361994&bankCode=100000000111`,gn=H(A({__name:`GamePage`,setup(n){let r=Se(),i=De(),c=D(!1),u=re(),d=ee(),p=d.params.id;function m(e){return[`settings`,`teams`,`screens`,`game`,`payment`,`answers`].includes(e)}let h=typeof d.query.tab==`string`?d.query.tab:``,g=D(m(h)?h:`game`);async function _(e){m(e)&&(g.value=e,await u.replace({query:{...d.query,tab:e}}),e===`answers`&&await Cn())}let v=ae(),y=D({name:``,description:``,format:`online`,location:``}),b=D(!1),x=D(!1),C=D(!1),w=D(!1),T=D(!1),E=D(``),A=D(``),j=D(1),M=D(``),te=D(!1),ne=D(``),ie=D(``),ce=D(!1),le=D(1),ue=D([]),z=D(!1),B=D(!1),V=D({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,export:void 0}),H=[{label:`Ожидает ответа`,value:`pending`},{label:`Подтверждено`,value:`confirmed`},{label:`Отменено`,value:`cancelled`}],me=S(()=>(V.value.teams||[]).filter(e=>e.participationStatus!==`cancelled`).length),he=D([]),ge=D([]),_e=D(),G=D(),J=D([]),Y=D(!1),X=D(!1),xe=D(`use`),Ce=0,we=D([]),Te=D([]),Ne=D([]),Pe=D(!1),Fe=D(!1),Ie=D(100),Le=D(0);async function Z(e){let t=await r.GetGame({ID:e});V.value=t.game,b.value||=(y.value={name:V.value.name||``,description:V.value.description||``,format:V.value.format||`online`,location:V.value.location||``},!0),V.value.teams=V.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`)||he.value[0])?.mode===`SCREEN_MODE_RESULTS`){let e=await r.GetGameResults({gameID:Number(p)});we.value=e.questions||[],Te.value=e.teams||[]}else we.value=[],Te.value=[]}Re();async function ze(){try{let e=await r.GetGameMusic({gameID:Number(p)});ge.value=e.playlists||[],_e.value=e.state}catch(e){v.error(e instanceof Error?e.message:`Не удалось получить музыку игры`)}}ze();function Be(){return xe.value===`edit`}async function Ve(){if(console.log(`getScreenPlan`),Be()||Y.value)return;console.log(`no skip getScreenPlan`);let e=++Ce,t=await r.GetScreenPlan({gameID:Number(p)});e!==Ce||Be()||Y.value||(G.value=t.plan,J.value=t.plan?.steps?.map(e=>({...e}))||[])}Ve();function Ue(){J.value.push({mode:`SCREEN_MODE_TEXT`,text:`Новый экран`,timerLabel:`Перерыв`,timerDurationSeconds:600}),Y.value=!0,xe.value=`edit`}function Ge(){G.value&&(J.value=G.value.steps?.map(e=>({...e}))||[],xe.value=`edit`)}function qe(){Y.value&&!window.confirm(`Отменить несохранённые изменения плана?`)||(J.value=G.value?.steps?.map(e=>({...e}))||[],Y.value=!1,xe.value=`use`)}function Ye(e){J.value.splice(e,1),Y.value=!0}function Ze(e,t){let n=e+t;if(n<0||n>=J.value.length)return;let[r]=J.value.splice(e,1);J.value.splice(n,0,r),Y.value=!0}function $e(){Y.value=!0}function et(){J.value=[],$e()}async function tt(){if(!X.value){Ce+=1,X.value=!0;try{let e=Math.min(G.value?.currentStep||0,Math.max(0,J.value.length-1)),t=await r.SaveScreenPlan({gameID:Number(p),steps:J.value,currentStep:e});G.value=t.plan,J.value=t.plan?.steps?.map(e=>({...e}))||[],Y.value=!1,xe.value=`use`,v.success(t.plan?`План экранов сохранён`:`План экранов удалён`)}catch(e){v.error(e instanceof Error?e.message:`Не удалось сохранить план экранов`)}finally{X.value=!1}}}async function nt(e){if(!(Y.value||!G.value))try{let t=await r.SetScreenPlanStep({gameID:Number(p),currentStep:e});G.value=t.plan,await Re()}catch(e){v.error(e instanceof Error?e.message:`Не удалось перейти на шаг плана`)}}async function rt(e,t){if(!(Y.value||e!==`SCREEN_MODE_TIMER`&&e!==`SCREEN_MODE_INTRO`&&e!==`SCREEN_MODE_CONCLUSION`))try{await r.SendScreenCommand({gameID:Number(p),command:t,positionMs:Math.max(0,Math.round(Le.value*1e3)),volume:Math.max(0,Math.min(100,Math.round(Ie.value)))}),await Re()}catch(e){v.error(e instanceof Error?e.message:`Не удалось управлять экраном`)}}async function it(e,t){if(!B.value){B.value=!0;try{await r.BindScreen({screenID:e,accessToken:t,gameID:Number(p)}),v.success(`Экран привязан к игре`),await Re()}catch(e){v.error(e instanceof Error?e.message:`Не удалось привязать экран`)}finally{B.value=!1}}}async function at(){if(Pe.value||Fe.value)return;let e=await r.GetGameMap({gameID:Number(p)});Pe.value||Fe.value||(Ne.value=e.items||[])}at();async function ot(e,t=e.hidden){Pe.value=!0;try{await r.UpdateGameMapItem({gameID:Number(p),kind:e.kind,itemID:e.itemID,x:Math.round(e.x||0),y:Math.round(e.y||0),hidden:t})}finally{Pe.value=!1}}async function st(e,t=e.hidden){await ot(e,t),await at()}async function ct(e){await r.SetScreenSound({screenID:e.ID,soundEnabled:!0}),await Re()}async function lt(e){let t=_e.value;try{let n=await r.SetGameMusic({gameID:Number(p),playlistID:e.playlistID??t?.playlist?.ID??0,trackIndex:e.trackIndex??t?.trackIndex??0,positionMs:e.positionMs??t?.positionMs??0,volume:e.volume??t?.volume??100,loop:e.loop??t?.loop??!1,playback:e.playback??t?.playback??`MUSIC_PLAYBACK_STOPPED`});_e.value=n.state}catch(e){v.error(e instanceof Error?e.message:`Не удалось изменить музыку`)}}async function ut(e){try{await r.CreatePlaylist({name:e}),await ze()}catch(e){v.error(e instanceof Error?e.message:`Не удалось создать плейлист`)}}async function dt(e){try{await r.DeletePlaylist({ID:e}),await ze()}catch(e){v.error(e instanceof Error?e.message:`Не удалось удалить плейлист`)}}async function ft(e){let t=_e.value?.playlist?.ID;if(!t){v.warning(`Сначала выберите плейлист`);return}try{let n=mt(new Uint8Array(await e.arrayBuffer()));await r.UploadPlaylistTrack({playlistID:t,name:e.name,filename:e.name,data:n}),await ze()}catch(e){v.error(e instanceof Error?e.message:`Не удалось загрузить MP3`)}}async function pt(e){let t=_e.value?.playlist?.ID;if(t)try{await r.DeletePlaylistTrack({playlistID:t,trackID:e}),await ze()}catch(e){v.error(e instanceof Error?e.message:`Не удалось удалить трек`)}}function mt(e){let t=``;for(let n=0;nURL.revokeObjectURL(n),1e3)}catch(e){v.error(e instanceof Error?e.message:`Не удалось скачать QR команд`)}finally{c.value=!1}}}function yt(){u.push(`/games/`+p+`/results`)}async function bt(){await r.UpdateGame({ID:V.value.ID,name:y.value.name,description:y.value.description,format:y.value.format,location:y.value.location.trim(),startAt:V.value.startAt,scenarioID:V.value.scenario?.ID}),await Z(V.value.ID)}let xt=D({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}),St=D(``),Ct=D({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}),$=D({name:``,image:``,file_type:``}),wt=window.location.href;function Tt(e,t){xt.value=e,$.value=t,x.value=!0}async function Et(){if(j.value<1||j.value>8){v.error(`Укажите от 1 до 8 игроков`);return}await r.AddTeam({gameID:V.value.ID,name:E.value,captainEmail:A.value.trim(),participantsCount:j.value}),await Z(V.value.ID),C.value=!1,A.value=``,j.value=1}async function Dt(){await r.GiveTeamApplications({ID:xt.value.ID,name:$.value.name}),await Z(V.value.ID),x.value=!1}async function Ot(e){Ct.value=e,w.value=!0}async function At(){await r.DeleteTeam({ID:Ct.value.ID}),await Z(V.value.ID),w.value=!1}async function jt(){await r.DeleteGame({ID:V.value.ID}),v.success(`Игра удалена`),u.push(`/games`)}function Mt(e,t){let n=new URL(`/team-story/${e}`,window.location.origin);return n.searchParams.set(`password`,t),n.toString()}function Nt(e){Pt(Mt(e.ID,e.password),`Подсмотреть игру`)}async function Pt(e,t){ne.value=e,ie.value=t,te.value=!0}async function Ft(){if(!(z.value||!V.value.ID)){z.value=!0;try{let e=await r.IssueGameTickets({gameID:V.value.ID,count:le.value});ue.value=e.tickets||[],v.success(`Выпущено билетов: ${ue.value.length}`)}catch(e){v.error(e instanceof Error?e.message:`Не удалось выпустить билеты`)}finally{z.value=!1}}}Me(()=>{Z(Number(p)),Re(),ze(),Ve(),at()},2e3);async function It(){await r.ResetGame({ID:V.value.ID}),await Z(V.value.ID)}async function Lt(){await r.StartGame({ID:V.value.ID}),await Z(V.value.ID)}async function Rt(){await r.PauseGame({ID:V.value.ID}),await Z(V.value.ID)}async function zt(){await r.PlayGame({ID:V.value.ID}),await Z(V.value.ID)}async function Bt(){await r.FinishGame({ID:V.value.ID}),await Z(V.value.ID)}let Ht=D(!1),Ut=D([]),Wt=D(0),gn=D(0),_n=D([]),vn=D([]),yn=D({});function bn(e,t){return(e??``)+`:`+(t??``)}function xn(e,t){return(e.answers||[]).find(e=>e.questionCode==t)?.answer||``}function Sn(e,t){yn.value[e]=t===null?void 0:t}async function Cn(){let e=await r.GetGameAnswers({gameID:Number(p)});_n.value=e.questions||[],vn.value=e.teams||[];let t={};for(let e of vn.value)for(let n of e.answers||[])t[bn(e.team?.ID,n.questionCode)]=n.score;yn.value=t}async function wn(){Ht.value=!0;let e=await r.GetGameReviewsForModeration({gameID:Number(p)});Ut.value=e.reviews||[],Wt.value=e.averageRating||0,gn.value=e.reviewsCount||0}async function Tn(e,t){await r.ModerateGameReview({ID:e.ID,status:t}),await wn()}async function En(){for(let e of _n.value)for(let t of vn.value){let n=yn.value[bn(t.team?.ID,e.code)];await r.SetTeamAnswerScore({ID:t.team?.ID,questionCode:e.code,score:n??void 0})}v.success(`Баллы сохранены`),await Cn()}g.value===`answers`&&Cn();function Dn(){let e=new Date;return new Date(e.getTime()-e.getTimezoneOffset()*6e4)}function On(e,t){if(e==``)return`Игра ещё не началась`;let n=Ae(e),r=Dn();t!=``&&(r=Ae(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 kn=D(``);return Me(()=>{kn.value=On(V.value.startedAt||``,V.value.endedAt||``)},1e3),(n,r)=>(o(),N(O,null,[P(`div`,Kt,[P(`div`,qt,[V.value.export?.state===`preparing`||V.value.export?.state===`ready`?(o(),f(Q,{key:0},{default:k(()=>[l(F(ve),{type:`info`,title:V.value.export.state===`ready`?`Игра в офлайн-режиме`:`Подготовка офлайн-пакета`},{default:k(()=>[t(s(V.value.export.state===`ready`?`Изменения на онлайн-сервере не синхронизируются с офлайн-площадкой.`:`Создаётся пакет для офлайн-площадки.`),1)]),_:1},8,[`title`])]),_:1})):e(``,!0),l(F(fe),{value:g.value,type:`line`,animated:``,"onUpdate:value":_},{default:k(()=>[l(F(de),{name:`settings`,tab:`Настройки`},{default:k(()=>[P(`div`,Jt,[l(Q,null,{default:k(()=>[l(F(q),{justify:`end`},{default:k(()=>[l(F(R),{quaternary:``,onClick:r[0]||=e=>Pt(F(wt),`Админка`)},{default:k(()=>[...r[45]||=[t(`QR`,-1)]]),_:1}),V.value.status==`finish`?(o(),f(F(R),{key:0,quaternary:``,onClick:r[1]||=e=>yt()},{default:k(()=>[l(F(se),{class:`settings-icon`},{default:k(()=>[l(F(Qe))]),_:1}),r[46]||=t(` Итоги `,-1)]),_:1})):e(``,!0),(V.value.teams?.length||0)==0?(o(),f(F(R),{key:1,type:`error`,quaternary:``,onClick:r[2]||=e=>T.value=!0},{default:k(()=>[...r[47]||=[t(` Удалить игру `,-1)]]),_:1})):e(``,!0)]),_:1})]),_:1}),l(Q,null,{default:k(()=>[r[53]||=P(`p`,{class:`screens-title`},`Настройки игры`,-1),l(F(K),{vertical:``},{default:k(()=>[r[48]||=P(`p`,null,`Название`,-1),l(F(W),{value:y.value.name,"onUpdate:value":r[3]||=e=>y.value.name=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`]),r[49]||=P(`p`,{class:`settings-header`},`Формат игры`,-1),l(F(pe),{value:y.value.format,"onUpdate:value":r[4]||=e=>y.value.format=e,options:[{label:`Online`,value:`online`},{label:`Offline`,value:`offline`}],"aria-label":`Формат игры`},null,8,[`value`]),r[50]||=P(`p`,{class:`settings-header`},`Описание`,-1),l(F(W),{value:y.value.description,"onUpdate:value":r[5]||=e=>y.value.description=e,type:`textarea`,placeholder:`Убийство пастуха...`},null,8,[`value`]),r[51]||=P(`p`,{class:`settings-header`},`Место проведения`,-1),l(F(W),{value:y.value.location,"onUpdate:value":r[6]||=e=>y.value.location=e,type:`text`,placeholder:`Оставьте пустым для онлайн-игры`},null,8,[`value`])]),_:1}),l(F(q),{justify:`end`,class:`settings-actions`},{default:k(()=>[l(F(R),{onClick:r[7]||=e=>bt()},{default:k(()=>[...r[52]||=[t(`Сохранить изменения`,-1)]]),_:1})]),_:1})]),_:1}),l(Q,null,{default:k(()=>[r[56]||=P(`p`,{class:`screens-title`},`Выпуск билетов`,-1),l(F(K),{vertical:``},{default:k(()=>[l(F(He),{value:le.value,"onUpdate:value":r[8]||=e=>le.value=e,min:1,max:100},null,8,[`value`]),(o(!0),N(O,null,a(ue.value,e=>(o(),N(`div`,{key:e.ID,class:`issued-ticket`},[P(`div`,null,`Билет №`+s(e.ID),1),P(`a`,{href:e.URL,class:`payment-link`,target:`_blank`,rel:`noreferrer`},` Открыть страницу билета `,8,Yt),l(F(R),{size:`small`,onClick:t=>Pt(e.URL,`Билет №${e.ID}`)},{default:k(()=>[...r[54]||=[t(` Показать QR `,-1)]]),_:1},8,[`onClick`])]))),128))]),_:1}),l(F(q),{justify:`end`,class:`settings-actions`},{default:k(()=>[l(F(R),{loading:z.value,disabled:z.value,onClick:r[9]||=e=>Ft()},{default:k(()=>[...r[55]||=[t(` Выпустить `,-1)]]),_:1},8,[`loading`,`disabled`])]),_:1})]),_:1})])]),_:1}),l(F(de),{name:`teams`,tab:`Команды`},{default:k(()=>[P(`div`,Xt,[l(F(q),{justify:`space-between`,align:`center`},{default:k(()=>[l(F(oe),{bordered:!1,type:`info`},{default:k(()=>[t(` Участвуют команд: `+s(me.value),1)]),_:1}),me.value?(o(),f(F(R),{key:0,quaternary:``,loading:c.value,disabled:c.value,onClick:r[10]||=e=>_t()},{default:k(()=>[...r[57]||=[t(` QR команд `,-1)]]),_:1},8,[`loading`,`disabled`])):e(``,!0)]),_:1}),l(Vt,{teams:V.value.teams||[],"participation-options":H,onAdd:r[11]||=e=>C.value=!0,onOpenQr:Nt,onPreview:r[12]||=(e,t)=>gt(e,t,!0),onDelete:Ot,onGiveApplication:Tt},null,8,[`teams`])])]),_:1}),l(F(de),{name:`screens`,tab:`Экраны`},{default:k(()=>[P(`div`,Zt,[l(kt,{screens:he.value,"screen-binding":B.value,playlists:ge.value,music:_e.value,onBind:it,onSetSound:ct,onUnbind:ht,onSetMusic:lt,onCreatePlaylist:ut,onDeletePlaylist:dt,onUploadTrack:ft,onDeleteTrack:pt},null,8,[`screens`,`screen-binding`,`playlists`,`music`])])]),_:1}),l(F(de),{name:`game`,tab:`Игра`},{default:k(()=>[P(`div`,Qt,[l(Q,null,{default:k(()=>[l(F(q),{justify:`space-between`},{default:k(()=>[l(F(K),null,{default:k(()=>[l(F(oe),{type:`info`},{default:k(()=>[t(s(kn.value),1)]),_:1}),F(je)(V.value.startAt)?(o(),f(F(oe),{key:0,type:`info`},{default:k(()=>[t(` Начало: `+s(F(je)(V.value.startAt)),1)]),_:1})):e(``,!0)]),_:1}),l(F(q),{justify:`end`},{default:k(()=>[V.value.status==`draft`?e(``,!0):(o(),f(F(R),{key:0,type:`info`,dashed:``,onClick:r[13]||=e=>It()},{default:k(()=>[l(F(se),null,{default:k(()=>[l(F(Xe))]),_:1})]),_:1})),V.value.status==`draft`?(o(),f(F(R),{key:1,type:`info`,dashed:``,onClick:r[14]||=e=>Lt()},{default:k(()=>[l(F(se),null,{default:k(()=>[l(F(Je))]),_:1})]),_:1})):e(``,!0),V.value.status==`pause`?(o(),f(F(R),{key:2,type:`info`,dashed:``,onClick:r[15]||=e=>zt()},{default:k(()=>[l(F(se),null,{default:k(()=>[l(F(Je))]),_:1})]),_:1})):e(``,!0),V.value.status==`run`?(o(),f(F(R),{key:3,type:`info`,dashed:``,onClick:r[16]||=e=>Rt()},{default:k(()=>[l(F(se),null,{default:k(()=>[l(F(Ke))]),_:1})]),_:1})):e(``,!0),V.value.status==`finish`?e(``,!0):(o(),f(F(R),{key:4,type:`info`,dashed:``,onClick:r[17]||=e=>Bt()},{default:k(()=>[l(F(se),null,{default:k(()=>[l(F(We))]),_:1})]),_:1}))]),_:1})]),_:1})]),_:1}),l(vt,{"map-items":Ne.value,teams:V.value.teams||[],screens:he.value,"preview-questions":we.value,"preview-teams":Te.value,"screen-plan":G.value,"screen-plan-draft":J.value,"screen-plan-dirty":Y.value,"screen-plan-saving":X.value,"screen-plan-mode":xe.value,"screen-volume":Ie.value,"screen-position":Le.value,onSaveItem:st,onDragging:r[18]||=e=>Fe.value=e,onGiveApplication:Tt,onAddStep:Ue,onEdit:Ge,onCancel:qe,onRemoveStep:Ye,onMoveStep:Ze,onDirty:$e,onClearPlan:et,onSave:tt,onSetStep:nt,onCommand:rt,"onUpdate:screenVolume":r[19]||=e=>Ie.value=e??0,"onUpdate:screenPosition":r[20]||=e=>Le.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}),l(F(de),{name:`payment`,tab:`Оплата`},{default:k(()=>[P(`div`,$t,[l(Q,null,{default:k(()=>[l(F(q),{align:`center`,justify:`space-between`},{default:k(()=>[r[59]||=P(`p`,{class:`screens-title`},`Билеты`,-1),l(F(R),{size:`small`,onClick:r[21]||=e=>ce.value=!0},{default:k(()=>[...r[58]||=[t(` Проверить билет `,-1)]]),_:1})]),_:1})]),_:1}),l(Q,null,{default:k(()=>[r[60]||=P(`p`,{class:`screens-title`},`Оплата игры`,-1),P(`div`,en,[l(F(be),{value:hn,size:300,padding:0})]),P(`p`,null,[P(`a`,{href:hn,class:`payment-link`,target:`_blank`,rel:`noreferrer`},` Открыть ссылку оплаты `)])]),_:1})])]),_:1}),l(F(de),{name:`answers`,tab:`Проверка ответов`},{default:k(()=>[P(`div`,tn,[_n.value.length==0?(o(),N(`div`,nn,` Вопросы дела не заданы или команды ещё не отвечали. `)):e(``,!0),(o(!0),N(O,null,a(_n.value,e=>(o(),f(Q,{key:e.code},{default:k(()=>[P(`p`,rn,s(e.code)+`: `+s(e.text),1),P(`p`,an,[r[61]||=t(` Правильный ответ:`,-1),r[62]||=P(`br`,null,null,-1),P(`span`,on,s(e.answer||`—`),1)]),(o(!0),N(O,null,a(vn.value,t=>(o(),N(`div`,{key:t.team?.ID,class:`answers-team-row`},[P(`div`,sn,s(t.team?.name),1),P(`div`,cn,s(xn(t,e.code)||`—`),1),l(F(He),{value:yn.value[bn(t.team?.ID,e.code)],"onUpdate:value":n=>Sn(bn(t.team?.ID,e.code),n),placeholder:`Балл`,class:`answers-score-input`},null,8,[`value`,`onUpdate:value`])]))),128))]),_:2},1024))),128)),l(F(q),{justify:`end`},{default:k(()=>[l(F(R),{onClick:r[22]||=e=>En(),disabled:_n.value.length==0},{default:k(()=>[...r[63]||=[t(` Сохранить баллы `,-1)]]),_:1},8,[`disabled`])]),_:1})])]),_:1})]),_:1},8,[`value`])])]),l(Gt,{show:ce.value,"onUpdate:show":r[23]||=e=>ce.value=e},null,8,[`show`]),l(F(L),{show:x.value,"onUpdate:show":r[26]||=e=>x.value=e},{default:k(()=>[l(F(I),{style:{width:`600px`},title:`Настройки игры`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":k(()=>[l(F(R),{onClick:r[24]||=e=>x.value=!1},{default:k(()=>[...r[64]||=[t(` x `,-1)]]),_:1})]),footer:k(()=>[l(F(q),{justify:`end`},{default:k(()=>[l(F(R),{onClick:r[25]||=e=>Dt(),ghost:``},{default:k(()=>[...r[67]||=[t(` Выдать `,-1)]]),_:1})]),_:1})]),default:k(()=>[l(F(K),{vertical:``},{default:k(()=>[r[65]||=P(`p`,null,`Команда`,-1),P(`h3`,null,s(xt.value.name),1),r[66]||=P(`p`,null,`Улика`,-1),P(`h3`,null,s($.value.name),1),F(Oe)($.value)==`image`&&$.value.image?(o(),N(`div`,ln,[P(`img`,{src:F(ke)($.value.image),class:`give-application-image`},null,8,un)])):F(Oe)($.value)==`audio`&&$.value.image?(o(),N(`audio`,{key:1,src:F(ke)($.value.image),controls:``,preload:`none`,class:`give-application-audio`},null,8,dn)):F(Oe)($.value)==`pdf`&&$.value.image?(o(),N(`a`,{key:2,href:F(ke)($.value.image),target:`_blank`,rel:`noopener`,class:`give-application-pdf-link`},` PDF `,8,fn)):e(``,!0)]),_:1})]),_:1})]),_:1},8,[`show`]),l(F(L),{show:C.value,"onUpdate:show":r[32]||=e=>C.value=e},{default:k(()=>[l(F(I),{style:{width:`600px`},title:`Создание команды`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":k(()=>[l(F(R),{onClick:r[27]||=e=>C.value=!1},{default:k(()=>[...r[68]||=[t(` x `,-1)]]),_:1})]),footer:k(()=>[l(F(q),{justify:`end`},{default:k(()=>[l(F(R),{onClick:r[31]||=e=>Et(),disabled:E.value.length==0},{default:k(()=>[...r[69]||=[t(` Создать `,-1)]]),_:1},8,[`disabled`])]),_:1})]),default:k(()=>[l(F(K),{vertical:``},{default:k(()=>[l(F(W),{value:E.value,"onUpdate:value":r[28]||=e=>E.value=e,type:`text`,placeholder:`Три дебила`},null,8,[`value`]),l(F(W),{value:A.value,"onUpdate:value":r[29]||=e=>A.value=e,"input-props":{type:`email`,autocomplete:`email`},placeholder:`Почта капитана (необязательно)`,"aria-label":`Почта капитана (необязательно)`},null,8,[`value`]),l(F(He),{value:j.value,"onUpdate:value":r[30]||=e=>j.value=e,min:1,max:8,precision:0,placeholder:`Количество игроков`,"aria-label":`Количество игроков`},null,8,[`value`])]),_:1})]),_:1})]),_:1},8,[`show`]),l(F(L),{show:w.value,"onUpdate:show":r[36]||=e=>w.value=e},{default:k(()=>[l(F(I),{style:{width:`600px`},title:`Удаление команды`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":k(()=>[l(F(R),{onClick:r[33]||=e=>w.value=!1},{default:k(()=>[...r[70]||=[t(` x `,-1)]]),_:1})]),footer:k(()=>[l(F(q),{justify:`end`},{default:k(()=>[l(F(R),{onClick:r[35]||=e=>At(),disabled:St.value!=Ct.value.name},{default:k(()=>[...r[73]||=[t(` Удалить `,-1)]]),_:1},8,[`disabled`])]),_:1})]),default:k(()=>[l(F(K),{vertical:``},{default:k(()=>[P(`p`,null,[r[71]||=t(` Введите название команды `,-1),l(F(U),{class:`name-text`,strong:``},{default:k(()=>[t(s(Ct.value.name),1)]),_:1}),r[72]||=t(` чтобы удалить его `,-1)]),l(F(W),{value:St.value,"onUpdate:value":r[34]||=e=>St.value=e,type:`text`,placeholder:`Три дебила`},null,8,[`value`])]),_:1})]),_:1})]),_:1},8,[`show`]),l(F(L),{show:T.value,"onUpdate:show":r[40]||=e=>T.value=e},{default:k(()=>[l(F(I),{style:{width:`600px`},title:`Удаление игры`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":k(()=>[l(F(R),{onClick:r[37]||=e=>T.value=!1},{default:k(()=>[...r[74]||=[t(` x `,-1)]]),_:1})]),footer:k(()=>[l(F(q),{justify:`end`},{default:k(()=>[l(F(R),{onClick:r[39]||=e=>jt(),disabled:M.value!=V.value.name},{default:k(()=>[...r[77]||=[t(` Удалить `,-1)]]),_:1},8,[`disabled`])]),_:1})]),default:k(()=>[l(F(K),{vertical:``},{default:k(()=>[P(`p`,null,[r[75]||=t(` Введите название игры `,-1),l(F(U),{class:`name-text`,strong:``},{default:k(()=>[t(s(V.value.name),1)]),_:1}),r[76]||=t(` чтобы удалить её `,-1)]),l(F(W),{value:M.value,"onUpdate:value":r[38]||=e=>M.value=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`])]),_:1})]),_:1})]),_:1},8,[`show`]),l(F(L),{show:te.value,"onUpdate:show":r[42]||=e=>te.value=e},{default:k(()=>[l(F(I),{style:{width:`600px`},title:ie.value,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":k(()=>[l(F(R),{onClick:r[41]||=e=>te.value=!1},{default:k(()=>[...r[78]||=[t(` x `,-1)]]),_:1})]),footer:k(()=>[...r[79]||=[]]),default:k(()=>[l(F(K),{vertical:``},{default:k(()=>[P(`div`,pn,[l(F(be),{value:ne.value,size:300,padding:0},null,8,[`value`])])]),_:1})]),_:1},8,[`title`])]),_:1},8,[`show`]),l(F(L),{show:Ht.value,"onUpdate:show":r[44]||=e=>Ht.value=e},{default:k(()=>[l(F(I),{style:{width:`min(94vw, 800px)`},title:`Отзывы игры`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`,"content-style":{maxHeight:`70vh`,overflow:`auto`}},{"header-extra":k(()=>[l(F(R),{onClick:r[43]||=e=>Ht.value=!1},{default:k(()=>[...r[80]||=[t(` x `,-1)]]),_:1})]),default:k(()=>[l(F(q),{align:`center`,class:`reviews-summary`},{default:k(()=>[l(F(ye),{value:Wt.value,readonly:``,"allow-half":``},null,8,[`value`]),P(`span`,null,s(gn.value?`${Wt.value.toFixed(1)} · ${gn.value}`:`Пока нет отзывов`),1)]),_:1}),Ut.value.length==0?(o(),N(`div`,mn,`Отзывов пока нет.`)):e(``,!0),(o(!0),N(O,null,a(Ut.value,n=>(o(),N(`div`,{key:n.ID,class:`review-row`},[l(F(q),{justify:`space-between`,align:`center`},{default:k(()=>[P(`strong`,null,s(n.teamName),1),l(F(oe),null,{default:k(()=>[t(s(n.status),1)]),_:2},1024)]),_:2},1024),l(F(ye),{value:n.rating,readonly:``,size:`small`},null,8,[`value`]),P(`div`,null,`Сложность: `+s([``,`лёгкая`,`средняя`,`тяжёлая`][n.difficulty||0]),1),P(`p`,null,s(n.text),1),n.status==`pending`?(o(),f(F(q),{key:0,justify:`end`},{default:k(()=>[l(F(R),{type:`success`,onClick:e=>Tn(n,`approved`)},{default:k(()=>[...r[81]||=[t(`Одобрить`,-1)]]),_:1},8,[`onClick`]),l(F(R),{type:`error`,ghost:``,onClick:e=>Tn(n,`rejected`)},{default:k(()=>[...r[82]||=[t(`Отклонить`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):n.status==`approved`?(o(),f(F(q),{key:1,justify:`end`},{default:k(()=>[l(F(R),{type:`error`,ghost:``,onClick:e=>Tn(n,`hidden`)},{default:k(()=>[...r[83]||=[t(`Скрыть`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):e(``,!0)]))),128))]),_:1})]),_:1},8,[`show`]),l(Ee,{active:`games`})],64))}}),[[`__scopeId`,`data-v-9207dc34`]]),_n=A({__name:`GameView`,setup(e){return(e,t)=>(o(),f(gn))}});export{_n as default}; \ No newline at end of file diff --git a/frontend/dist/assets/GamesView-B2o5LJbs.css b/frontend/dist/assets/GamesView-B2o5LJbs.css new file mode 100644 index 0000000..181b1be --- /dev/null +++ b/frontend/dist/assets/GamesView-B2o5LJbs.css @@ -0,0 +1 @@ +.game-block[data-v-4f1f6d78]{background-color:#222;border:1px solid #222;border-radius:10px;margin:10px 0;padding:20px}.game-block-hover[data-v-4f1f6d78]:hover{color:#63e2b7;cursor:pointer;border:1px solid #63e2b7}.game-create-content[data-v-4f1f6d78]{justify-content:center;align-items:center;gap:12px;display:flex}.game-create-plus[data-v-4f1f6d78]{font-size:30px}.game-block[data-v-4f1f6d78]:hover{color:#63e2b7;cursor:pointer}.game-title[data-v-4f1f6d78]{margin-bottom:10px;font-size:24px}.game-actions[data-v-4f1f6d78]{justify-content:flex-end;margin-top:10px;display:flex}.game-date[data-v-4f1f6d78],.game-description[data-v-4f1f6d78]{color:#aaa;margin-bottom:10px}.create-hint[data-v-4f1f6d78]{color:#aaa} diff --git a/frontend/dist/assets/GamesView-BY-rpPoj.js b/frontend/dist/assets/GamesView-BY-rpPoj.js deleted file mode 100644 index 463c254..0000000 --- a/frontend/dist/assets/GamesView-BY-rpPoj.js +++ /dev/null @@ -1 +0,0 @@ -import{Ct as e,Dt as t,Jt as n,Kt as r,Ln as i,Ot as a,St as o,bt as s,hn as c,ht as l,in as u,kt as d,u as f,wt as p,xt as m,yn as h}from"./client-vZFx54yb.js";import{t as g}from"./Card-DO3oxl4F.js";import{n as _}from"./es-DSPBzgpf.js";import{t as v}from"./Modal-XDlBuRmh.js";import{t as y}from"./DatePicker-BuccjoRz.js";import{t as b}from"./Button-Bx9JIj0e.js";import{t as x}from"./Select-BDMkhuNb.js";import{t as S}from"./_plugin-vue_export-helper-FodinAjS.js";import{t as C}from"./Input-D7YePN-E.js";import{t as w}from"./Space-BBIv_CVW.js";import{t as T}from"./Flex-CjWQ3AmY.js";import{n as E,st as D}from"./index-Ci0r-yTA.js";import{t as O}from"./HeaderMenu-CoWgnRN4.js";import{t as k}from"./datetime-BJNH0M1T.js";var A={class:`center-block-custom`},ee={class:`width1200`},te=[`onClick`],ne={class:`game-title`},j={class:`game-description`},M={key:0,class:`game-date`},N={key:1,class:`game-date`},P={key:2,class:`game-actions`},F={key:0,class:`create-hint`},I={key:1,class:`create-hint`},L=S(d({__name:`GamesPage`,setup(o){let d=E(),S=_(),L=f(),R=c([]);async function z(){try{R.value=[];let e=await d.GetGames({});R.value=e.games||[]}catch(e){S.error(e instanceof Error?e.message:`Не удалось загрузить игры`)}}z();async function B(e){L.push(`/games/`+e)}function V(e){L.push(`/games/`+e+`/results`)}let H=c(!1),U=c(``),W=c(`online`),G=c(``),K=c(``),q=c(null),J=c(null),Y=c(!1),X=c(!1),Z=c(!1),Q=c([]),$=s(()=>Q.value.filter(e=>e.status==`public`&&e.ID!=null).map(e=>({label:e.name||``,value:e.ID})));async function re(){X.value=!0,Z.value=!1;try{let e=await d.GetScenariosCatalog({});Q.value=e.scenarios||[]}catch(e){Z.value=!0,S.error(e instanceof Error?e.message:`Не удалось загрузить сценарии`)}finally{X.value=!1}}function ie(){U.value=``,W.value=`online`,G.value=``,K.value=``,q.value=null,J.value=null,H.value=!0,re()}async function ae(){let e=U.value.trim(),t=q.value,n=J.value;if(!(e==``||t==null||n==null)){Y.value=!0;try{let r=await d.AddGame({name:e,description:G.value,location:K.value.trim(),format:W.value,startAt:new Date(n).toISOString(),scenarioID:t});S.success(`Игра создана`),H.value=!1,L.push(`/games/`+r.ID)}catch(e){S.error(e instanceof Error?e.message:`Не удалось создать игру`)}finally{Y.value=!1}}}return(o,s)=>(r(),p(l,null,[m(`div`,A,[m(`div`,ee,[m(`div`,{class:`game-block game-block-hover`,onClick:s[0]||=e=>ie()},[...s[10]||=[m(`div`,{class:`game-create-content`},[m(`span`,{class:`game-create-plus`},`+`),m(`span`,null,`Создать игру`)],-1)]]),(r(!0),p(l,null,n(R.value,n=>(r(),p(`div`,{key:n.ID,class:`game-block`,onClick:e=>B(n.ID)},[m(`div`,ne,i(n.name)+` — `+i(n.format===`offline`?`Offline`:`Online`),1),m(`div`,j,i(n.description),1),h(k)(n.startAt)?(r(),p(`div`,M,` Начало: `+i(h(k)(n.startAt)),1)):e(``,!0),n.location?(r(),p(`div`,N,`Место: `+i(n.location),1)):e(``,!0),n.status==`finish`?(r(),p(`div`,P,[a(h(b),{size:`small`,ghost:``,onClick:D(e=>V(n.ID),[`stop`])},{default:u(()=>[...s[11]||=[t(`Результаты`,-1)]]),_:1},8,[`onClick`])])):e(``,!0)],8,te))),128))])]),a(h(v),{show:H.value,"onUpdate:show":s[9]||=e=>H.value=e},{default:u(()=>[a(h(g),{style:{width:`min(94vw, 600px)`},title:`Создание игры`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":u(()=>[a(h(b),{onClick:s[1]||=e=>H.value=!1},{default:u(()=>[...s[12]||=[t(` x `,-1)]]),_:1})]),footer:u(()=>[a(h(T),{justify:`end`},{default:u(()=>[a(h(b),{onClick:s[8]||=e=>ae(),loading:Y.value,disabled:U.value.trim().length==0||q.value==null||J.value==null||Y.value},{default:u(()=>[...s[19]||=[t(` Создать `,-1)]]),_:1},8,[`loading`,`disabled`])]),_:1})]),default:u(()=>[a(h(w),{vertical:``},{default:u(()=>[s[13]||=m(`p`,null,`Название`,-1),a(h(C),{value:U.value,"onUpdate:value":s[2]||=e=>U.value=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`]),s[14]||=m(`p`,null,`Формат игры`,-1),a(h(x),{value:W.value,"onUpdate:value":s[3]||=e=>W.value=e,options:[{label:`Online`,value:`online`},{label:`Offline`,value:`offline`}],"aria-label":`Формат игры`},null,8,[`value`]),s[15]||=m(`p`,null,`Описание`,-1),a(h(C),{value:G.value,"onUpdate:value":s[4]||=e=>G.value=e,type:`textarea`,placeholder:`Убийство пастуха...`},null,8,[`value`]),s[16]||=m(`p`,null,`Место проведения`,-1),a(h(C),{value:K.value,"onUpdate:value":s[5]||=e=>K.value=e,type:`text`,placeholder:`Оставьте пустым для онлайн-игры`},null,8,[`value`]),s[17]||=m(`p`,null,`Сценарий (дело из каталога)`,-1),a(h(x),{value:q.value,"onUpdate:value":s[6]||=e=>q.value=e,options:$.value,placeholder:`Выберите дело из каталога`},null,8,[`value`,`options`]),X.value?(r(),p(`p`,F,`Загружаем сценарии...`)):$.value.length==0?(r(),p(`p`,I,i(Z.value?`Не удалось загрузить список сценариев`:`В каталоге пока нет опубликованных сценариев`),1)):e(``,!0),s[18]||=m(`p`,null,`Дата и время проведения`,-1),a(h(y),{value:J.value,"onUpdate:value":s[7]||=e=>J.value=e,type:`datetime`},null,8,[`value`])]),_:1})]),_:1})]),_:1},8,[`show`]),a(O,{active:`games`})],64))}}),[[`__scopeId`,`data-v-5b88a650`]]),R=d({__name:`GamesView`,setup(e){return(e,t)=>(r(),o(L))}});export{R as default}; \ No newline at end of file diff --git a/frontend/dist/assets/GamesView-LAiEFAQo.css b/frontend/dist/assets/GamesView-LAiEFAQo.css deleted file mode 100644 index 890d442..0000000 --- a/frontend/dist/assets/GamesView-LAiEFAQo.css +++ /dev/null @@ -1 +0,0 @@ -.game-block[data-v-5b88a650]{background-color:#222;border:1px solid #222;border-radius:10px;margin:10px 0;padding:20px}.game-block-hover[data-v-5b88a650]:hover{color:#63e2b7;cursor:pointer;border:1px solid #63e2b7}.game-create-content[data-v-5b88a650]{justify-content:center;align-items:center;gap:12px;display:flex}.game-create-plus[data-v-5b88a650]{font-size:30px}.game-block[data-v-5b88a650]:hover{color:#63e2b7;cursor:pointer}.game-title[data-v-5b88a650]{margin-bottom:10px;font-size:24px}.game-actions[data-v-5b88a650]{justify-content:flex-end;margin-top:10px;display:flex}.game-date[data-v-5b88a650],.game-description[data-v-5b88a650]{color:#aaa;margin-bottom:10px}.create-hint[data-v-5b88a650]{color:#aaa} diff --git a/frontend/dist/assets/GamesView-vdPy4Ojw.js b/frontend/dist/assets/GamesView-vdPy4Ojw.js new file mode 100644 index 0000000..5a5fc05 --- /dev/null +++ b/frontend/dist/assets/GamesView-vdPy4Ojw.js @@ -0,0 +1 @@ +import{Ct as e,Dt as t,Jt as n,Kt as r,Ln as i,Ot as a,St as o,bt as s,hn as c,ht as l,in as u,kt as d,u as f,wt as p,xt as m,yn as h}from"./client-CREJv8AD.js";import{t as g}from"./Card-CJC2gN5t.js";import{n as _,r as v}from"./es-CevmKZP_.js";import{t as y}from"./Modal-BNDyI0AJ.js";import{t as b}from"./DatePicker-CISUUqG0.js";import{t as x}from"./Button-MvNgQLzL.js";import{t as S}from"./Select-CvgyidIa.js";import{t as C}from"./_plugin-vue_export-helper-BkfvhliL.js";import{t as w}from"./Input-B41xxqED.js";import{t as T}from"./Space-ChWks6od.js";import{t as E}from"./Flex-B0ZjnZ3e.js";import{n as D,st as O}from"./index-DZpFhWFx.js";import{t as k}from"./HeaderMenu-BarRlY0P.js";import{t as A}from"./datetime-BJNH0M1T.js";var ee={class:`center-block-custom`},te={class:`width1200`},ne=[`onClick`],re={class:`game-title`},ie={class:`game-description`},j={key:2,class:`game-date`},M={key:3,class:`game-date`},N={key:4,class:`game-actions`},P={key:0,class:`create-hint`},F={key:1,class:`create-hint`},I=C(d({__name:`GamesPage`,setup(d){let C=D(),I=_(),L=f(),R=c([]);async function z(){try{R.value=[];let e=await C.GetGames({});R.value=e.games||[]}catch(e){I.error(e instanceof Error?e.message:`Не удалось загрузить игры`)}}z();async function B(e){L.push(`/games/`+e)}function V(e){L.push(`/games/`+e+`/results`)}let H=c(!1),U=c(``),W=c(`online`),G=c(``),K=c(``),q=c(null),J=c(null),Y=c(!1),X=c(!1),Z=c(!1),Q=c([]),$=s(()=>Q.value.filter(e=>e.status==`public`&&e.ID!=null).map(e=>({label:e.name||``,value:e.ID})));async function ae(){X.value=!0,Z.value=!1;try{let e=await C.GetScenariosCatalog({});Q.value=e.scenarios||[]}catch(e){Z.value=!0,I.error(e instanceof Error?e.message:`Не удалось загрузить сценарии`)}finally{X.value=!1}}function oe(){U.value=``,W.value=`online`,G.value=``,K.value=``,q.value=null,J.value=null,H.value=!0,ae()}async function se(){let e=U.value.trim(),t=q.value,n=J.value;if(!(e==``||t==null||n==null)){Y.value=!0;try{let r=await C.AddGame({name:e,description:G.value,location:K.value.trim(),format:W.value,startAt:new Date(n).toISOString(),scenarioID:t});I.success(`Игра создана`),H.value=!1,L.push(`/games/`+r.ID)}catch(e){I.error(e instanceof Error?e.message:`Не удалось создать игру`)}finally{Y.value=!1}}}return(s,c)=>(r(),p(l,null,[m(`div`,ee,[m(`div`,te,[m(`div`,{class:`game-block game-block-hover`,onClick:c[0]||=e=>oe()},[...c[10]||=[m(`div`,{class:`game-create-content`},[m(`span`,{class:`game-create-plus`},`+`),m(`span`,null,`Создать игру`)],-1)]]),(r(!0),p(l,null,n(R.value,n=>(r(),p(`div`,{key:n.ID,class:`game-block`,onClick:e=>B(n.ID)},[m(`div`,re,i(n.name)+` — `+i(n.format===`offline`?`Offline`:`Online`),1),n.export?.state===`preparing`?(r(),o(h(v),{key:0,type:`warning`,size:`small`},{default:u(()=>[...c[11]||=[t(` Подготовка офлайн-пакета `,-1)]]),_:1})):n.export?.state===`ready`?(r(),o(h(v),{key:1,type:`info`,size:`small`},{default:u(()=>[...c[12]||=[t(` Игра в офлайн-режиме `,-1)]]),_:1})):e(``,!0),m(`div`,ie,i(n.description),1),h(A)(n.startAt)?(r(),p(`div`,j,` Начало: `+i(h(A)(n.startAt)),1)):e(``,!0),n.location?(r(),p(`div`,M,`Место: `+i(n.location),1)):e(``,!0),n.status==`finish`?(r(),p(`div`,N,[a(h(x),{size:`small`,ghost:``,onClick:O(e=>V(n.ID),[`stop`])},{default:u(()=>[...c[13]||=[t(`Результаты`,-1)]]),_:1},8,[`onClick`])])):e(``,!0)],8,ne))),128))])]),a(h(y),{show:H.value,"onUpdate:show":c[9]||=e=>H.value=e},{default:u(()=>[a(h(g),{style:{width:`min(94vw, 600px)`},title:`Создание игры`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":u(()=>[a(h(x),{onClick:c[1]||=e=>H.value=!1},{default:u(()=>[...c[14]||=[t(` x `,-1)]]),_:1})]),footer:u(()=>[a(h(E),{justify:`end`},{default:u(()=>[a(h(x),{onClick:c[8]||=e=>se(),loading:Y.value,disabled:U.value.trim().length==0||q.value==null||J.value==null||Y.value},{default:u(()=>[...c[21]||=[t(` Создать `,-1)]]),_:1},8,[`loading`,`disabled`])]),_:1})]),default:u(()=>[a(h(T),{vertical:``},{default:u(()=>[c[15]||=m(`p`,null,`Название`,-1),a(h(w),{value:U.value,"onUpdate:value":c[2]||=e=>U.value=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`]),c[16]||=m(`p`,null,`Формат игры`,-1),a(h(S),{value:W.value,"onUpdate:value":c[3]||=e=>W.value=e,options:[{label:`Online`,value:`online`},{label:`Offline`,value:`offline`}],"aria-label":`Формат игры`},null,8,[`value`]),c[17]||=m(`p`,null,`Описание`,-1),a(h(w),{value:G.value,"onUpdate:value":c[4]||=e=>G.value=e,type:`textarea`,placeholder:`Убийство пастуха...`},null,8,[`value`]),c[18]||=m(`p`,null,`Место проведения`,-1),a(h(w),{value:K.value,"onUpdate:value":c[5]||=e=>K.value=e,type:`text`,placeholder:`Оставьте пустым для онлайн-игры`},null,8,[`value`]),c[19]||=m(`p`,null,`Сценарий (дело из каталога)`,-1),a(h(S),{value:q.value,"onUpdate:value":c[6]||=e=>q.value=e,options:$.value,placeholder:`Выберите дело из каталога`},null,8,[`value`,`options`]),X.value?(r(),p(`p`,P,`Загружаем сценарии...`)):$.value.length==0?(r(),p(`p`,F,i(Z.value?`Не удалось загрузить список сценариев`:`В каталоге пока нет опубликованных сценариев`),1)):e(``,!0),c[20]||=m(`p`,null,`Дата и время проведения`,-1),a(h(b),{value:J.value,"onUpdate:value":c[7]||=e=>J.value=e,type:`datetime`},null,8,[`value`])]),_:1})]),_:1})]),_:1},8,[`show`]),a(k,{active:`games`})],64))}}),[[`__scopeId`,`data-v-4f1f6d78`]]),L=d({__name:`GamesView`,setup(e){return(e,t)=>(r(),o(I))}});export{L as default}; \ No newline at end of file diff --git a/frontend/dist/assets/HeaderMenu-CoWgnRN4.js b/frontend/dist/assets/HeaderMenu-BarRlY0P.js similarity index 93% rename from frontend/dist/assets/HeaderMenu-CoWgnRN4.js rename to frontend/dist/assets/HeaderMenu-BarRlY0P.js index 0e8daca..52660fc 100644 --- a/frontend/dist/assets/HeaderMenu-CoWgnRN4.js +++ b/frontend/dist/assets/HeaderMenu-BarRlY0P.js @@ -1 +1 @@ -import{Ct as e,Dt as t,Fn as n,Kt as r,Ln as i,Ot as a,bt as o,hn as s,in as c,kt as l,nn as u,u as d,wt as f,xt as p,yn as m}from"./client-vZFx54yb.js";import{n as h,r as g,t as _}from"./es-DSPBzgpf.js";import{t as v}from"./_plugin-vue_export-helper-FodinAjS.js";import{et as y,n as b,t as x,tt as S}from"./index-Ci0r-yTA.js";var C={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},w=l({name:`MenuOutlined`,render:function(e,t){return r(),f(`svg`,C,t[0]||=[p(`path`,{d:`M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z`,fill:`currentColor`},null,-1)])}}),T=y(`ui`,()=>{let e=s([]),t=s(null),n=s(!0),r=0;async function i(){let i=x(),a=i.getToken(),o=++r;e.value=[],t.value=null,n.value=!0;try{let n=await b().GetPermissions({});if(o!==r)return;a===i.getToken()&&(e.value=n.permissions||[]),(n.environment===`prod`||n.environment===`venue`)&&(t.value=n.environment)}catch(e){if(o===r)throw e}finally{o===r&&(n.value=!1)}}return{permissions:e,environment:t,isLoadingEnvironment:n,load:i}}),E={class:`menu-block`},D=[`aria-expanded`,`aria-label`],O={class:`right-group`},k=v(l({__name:`HeaderMenu`,props:{active:{}},setup(l){let v=l,y=x(),b=d(),C=T(),k=h(),{permissions:A,environment:j,isLoadingEnvironment:M}=S(C),N=o(()=>M.value?`Среда: …`:j.value===`prod`?`Сервер`:j.value===`venue`?`Локальная сеть`:`Среда: ?`);u(()=>y.user,async()=>{try{await C.load()}catch(e){k.error(`Не удалось загрузить сведения сервера`),console.error(`Failed to load server information:`,e)}},{immediate:!0});function P(e){return A.value.includes(e)}let F=()=>{b.push(`/login`)},I=()=>{y.logout(),b.push(`/login`)},L=s(!1);return(o,s)=>(r(),f(`div`,E,[p(`button`,{type:`button`,class:`burger-button`,"aria-expanded":L.value,"aria-label":L.value?`Закрыть меню`:`Открыть меню`,onClick:s[0]||=e=>L.value=!L.value},[a(m(_),{class:`burger-icon`,size:`28`},{default:c(()=>[a(m(w))]),_:1})],8,D),p(`div`,{class:n([`left-group menu-buttons-block`,L.value?``:`menu-buttons-block-active`])},[p(`button`,{type:`button`,class:n([`menu-item-block`,{active:v.active==`main`}]),onClick:s[1]||=e=>m(b).push(`/`)},` Главная `,2),m(y).hasRole(`user`)?(r(),f(`button`,{key:0,type:`button`,class:n([`menu-item-block`,{active:v.active==`office`}]),onClick:s[2]||=e=>m(b).push(`/office`)},` Кабинет `,2)):e(``,!0),P(`games_page`)?(r(),f(`button`,{key:1,type:`button`,class:n([`menu-item-block`,{active:v.active==`games`}]),onClick:s[3]||=e=>m(b).push(`/games`)},` Игры `,2)):e(``,!0),p(`button`,{type:`button`,class:`menu-item-block`,onClick:s[4]||=e=>m(b).push(`/screen`)},`Экран`),p(`button`,{type:`button`,class:n([`menu-item-block`,{active:v.active==`catalog`}]),onClick:s[5]||=e=>m(b).push(`/catalog`)},` Каталог `,2),P(`scenarios_page`)?(r(),f(`button`,{key:2,type:`button`,class:n([`menu-item-block`,{active:v.active==`scenarios`}]),onClick:s[6]||=e=>m(b).push(`/scenarios`)},` Сценарии `,2)):e(``,!0),P(`tasks_page`)?(r(),f(`button`,{key:3,type:`button`,class:n([`menu-item-block`,{active:v.active==`tasks`}]),onClick:s[7]||=e=>m(b).push(`/tasks`)},` Задачи `,2)):e(``,!0),P(`users_page`)?(r(),f(`button`,{key:4,type:`button`,class:n([`menu-item-block`,{active:v.active==`users`}]),onClick:s[8]||=e=>m(b).push(`/users`)},` Пользователи `,2)):e(``,!0),P(`reviews_page`)?(r(),f(`button`,{key:5,type:`button`,class:n([`menu-item-block`,{active:v.active==`reviews`}]),onClick:s[9]||=e=>m(b).push(`/reviews`)},` Отзывы `,2)):e(``,!0)],2),p(`div`,O,[a(m(g),{size:`small`,type:m(j)===`venue`?`warning`:`default`,title:m(j)?`Среда подключённого сервера`:`Среда сервера не определена`,role:`status`},{default:c(()=>[t(i(N.value),1)]),_:1},8,[`type`,`title`]),m(y).isAuthenticated?e(``,!0):(r(),f(`button`,{key:0,type:`button`,class:`menu-item-block right`,onClick:F},` Войти `)),m(y).isAuthenticated?(r(),f(`button`,{key:1,type:`button`,class:`menu-item-block right`,onClick:I},` Выйти `)):e(``,!0)])]))}}),[[`__scopeId`,`data-v-90c8cda8`]]);export{k as t}; \ No newline at end of file +import{Ct as e,Dt as t,Fn as n,Kt as r,Ln as i,Ot as a,bt as o,hn as s,in as c,kt as l,nn as u,u as d,wt as f,xt as p,yn as m}from"./client-CREJv8AD.js";import{n as h,r as g,t as _}from"./es-CevmKZP_.js";import{t as v}from"./_plugin-vue_export-helper-BkfvhliL.js";import{et as y,n as b,t as x,tt as S}from"./index-DZpFhWFx.js";var C={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},w=l({name:`MenuOutlined`,render:function(e,t){return r(),f(`svg`,C,t[0]||=[p(`path`,{d:`M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z`,fill:`currentColor`},null,-1)])}}),T=y(`ui`,()=>{let e=s([]),t=s(null),n=s(!0),r=0;async function i(){let i=x(),a=i.getToken(),o=++r;e.value=[],t.value=null,n.value=!0;try{let n=await b().GetPermissions({});if(o!==r)return;a===i.getToken()&&(e.value=n.permissions||[]),(n.environment===`prod`||n.environment===`venue`)&&(t.value=n.environment)}catch(e){if(o===r)throw e}finally{o===r&&(n.value=!1)}}return{permissions:e,environment:t,isLoadingEnvironment:n,load:i}}),E={class:`menu-block`},D=[`aria-expanded`,`aria-label`],O={class:`right-group`},k=v(l({__name:`HeaderMenu`,props:{active:{}},setup(l){let v=l,y=x(),b=d(),C=T(),k=h(),{permissions:A,environment:j,isLoadingEnvironment:M}=S(C),N=o(()=>M.value?`Среда: …`:j.value===`prod`?`Сервер`:j.value===`venue`?`Локальная сеть`:`Среда: ?`);u(()=>y.user,async()=>{try{await C.load()}catch(e){k.error(`Не удалось загрузить сведения сервера`),console.error(`Failed to load server information:`,e)}},{immediate:!0});function P(e){return A.value.includes(e)}let F=()=>{b.push(`/login`)},I=()=>{y.logout(),b.push(`/login`)},L=s(!1);return(o,s)=>(r(),f(`div`,E,[p(`button`,{type:`button`,class:`burger-button`,"aria-expanded":L.value,"aria-label":L.value?`Закрыть меню`:`Открыть меню`,onClick:s[0]||=e=>L.value=!L.value},[a(m(_),{class:`burger-icon`,size:`28`},{default:c(()=>[a(m(w))]),_:1})],8,D),p(`div`,{class:n([`left-group menu-buttons-block`,L.value?``:`menu-buttons-block-active`])},[p(`button`,{type:`button`,class:n([`menu-item-block`,{active:v.active==`main`}]),onClick:s[1]||=e=>m(b).push(`/`)},` Главная `,2),m(y).hasRole(`user`)?(r(),f(`button`,{key:0,type:`button`,class:n([`menu-item-block`,{active:v.active==`office`}]),onClick:s[2]||=e=>m(b).push(`/office`)},` Кабинет `,2)):e(``,!0),P(`games_page`)?(r(),f(`button`,{key:1,type:`button`,class:n([`menu-item-block`,{active:v.active==`games`}]),onClick:s[3]||=e=>m(b).push(`/games`)},` Игры `,2)):e(``,!0),p(`button`,{type:`button`,class:`menu-item-block`,onClick:s[4]||=e=>m(b).push(`/screen`)},`Экран`),p(`button`,{type:`button`,class:n([`menu-item-block`,{active:v.active==`catalog`}]),onClick:s[5]||=e=>m(b).push(`/catalog`)},` Каталог `,2),P(`scenarios_page`)?(r(),f(`button`,{key:2,type:`button`,class:n([`menu-item-block`,{active:v.active==`scenarios`}]),onClick:s[6]||=e=>m(b).push(`/scenarios`)},` Сценарии `,2)):e(``,!0),P(`tasks_page`)?(r(),f(`button`,{key:3,type:`button`,class:n([`menu-item-block`,{active:v.active==`tasks`}]),onClick:s[7]||=e=>m(b).push(`/tasks`)},` Задачи `,2)):e(``,!0),P(`users_page`)?(r(),f(`button`,{key:4,type:`button`,class:n([`menu-item-block`,{active:v.active==`users`}]),onClick:s[8]||=e=>m(b).push(`/users`)},` Пользователи `,2)):e(``,!0),P(`reviews_page`)?(r(),f(`button`,{key:5,type:`button`,class:n([`menu-item-block`,{active:v.active==`reviews`}]),onClick:s[9]||=e=>m(b).push(`/reviews`)},` Отзывы `,2)):e(``,!0)],2),p(`div`,O,[a(m(g),{size:`small`,type:m(j)===`venue`?`warning`:`default`,title:m(j)?`Среда подключённого сервера`:`Среда сервера не определена`,role:`status`},{default:c(()=>[t(i(N.value),1)]),_:1},8,[`type`,`title`]),m(y).isAuthenticated?e(``,!0):(r(),f(`button`,{key:0,type:`button`,class:`menu-item-block right`,onClick:F},` Войти `)),m(y).isAuthenticated?(r(),f(`button`,{key:1,type:`button`,class:`menu-item-block right`,onClick:I},` Выйти `)):e(``,!0)])]))}}),[[`__scopeId`,`data-v-90c8cda8`]]);export{k as t}; \ No newline at end of file diff --git a/frontend/dist/assets/HeaderText-BK8aY5U4.js b/frontend/dist/assets/HeaderText-B83p3PsD.js similarity index 59% rename from frontend/dist/assets/HeaderText-BK8aY5U4.js rename to frontend/dist/assets/HeaderText-B83p3PsD.js index 8f59ee7..92b9c68 100644 --- a/frontend/dist/assets/HeaderText-BK8aY5U4.js +++ b/frontend/dist/assets/HeaderText-B83p3PsD.js @@ -1 +1 @@ -import{Kt as e,Yt as t,kt as n,wt as r}from"./client-vZFx54yb.js";import{t as i}from"./_plugin-vue_export-helper-FodinAjS.js";var a={class:`text-with-font`},o=i(n({__name:`HeaderText`,setup(n){return(n,i)=>(e(),r(`span`,a,[t(n.$slots,`default`,{},void 0,!0)]))}}),[[`__scopeId`,`data-v-689794e0`]]);export{o as t}; \ No newline at end of file +import{Kt as e,Yt as t,kt as n,wt as r}from"./client-CREJv8AD.js";import{t as i}from"./_plugin-vue_export-helper-BkfvhliL.js";var a={class:`text-with-font`},o=i(n({__name:`HeaderText`,setup(n){return(n,i)=>(e(),r(`span`,a,[t(n.$slots,`default`,{},void 0,!0)]))}}),[[`__scopeId`,`data-v-689794e0`]]);export{o as t}; \ No newline at end of file diff --git a/frontend/dist/assets/HomeView-2xKcd5tZ.js b/frontend/dist/assets/HomeView-C-IPdwNi.js similarity index 81% rename from frontend/dist/assets/HomeView-2xKcd5tZ.js rename to frontend/dist/assets/HomeView-C-IPdwNi.js index 2c06c6f..2cf9bc2 100644 --- a/frontend/dist/assets/HomeView-2xKcd5tZ.js +++ b/frontend/dist/assets/HomeView-C-IPdwNi.js @@ -1 +1 @@ -import{Kt as e,Ot as t,St as n,ht as r,kt as i,wt as a,xt as o}from"./client-vZFx54yb.js";import{t as s}from"./_plugin-vue_export-helper-FodinAjS.js";import{t as c}from"./HeaderMenu-CoWgnRN4.js";var l=s(i({__name:`HomePage`,setup(n){return(n,i)=>(e(),a(r,null,[i[0]||=o(`div`,{class:`center-block-custom content-block center-middle-block-custom height80`},[o(`div`,null,[o(`h1`,{class:`font-text`},`Вечерний детектив`),o(`h3`,{class:`font-text`},`Дело №0`),o(`p`,{class:`content-text`},`Поиграем?`)])],-1),t(c,{active:`main`})],64))}}),[[`__scopeId`,`data-v-3ca82fba`]]),u=i({__name:`HomeView`,setup(t){return(t,r)=>(e(),n(l))}});export{u as default}; \ No newline at end of file +import{Kt as e,Ot as t,St as n,ht as r,kt as i,wt as a,xt as o}from"./client-CREJv8AD.js";import{t as s}from"./_plugin-vue_export-helper-BkfvhliL.js";import{t as c}from"./HeaderMenu-BarRlY0P.js";var l=s(i({__name:`HomePage`,setup(n){return(n,i)=>(e(),a(r,null,[i[0]||=o(`div`,{class:`center-block-custom content-block center-middle-block-custom height80`},[o(`div`,null,[o(`h1`,{class:`font-text`},`Вечерний детектив`),o(`h3`,{class:`font-text`},`Дело №0`),o(`p`,{class:`content-text`},`Поиграем?`)])],-1),t(c,{active:`main`})],64))}}),[[`__scopeId`,`data-v-3ca82fba`]]),u=i({__name:`HomeView`,setup(t){return(t,r)=>(e(),n(l))}});export{u as default}; \ No newline at end of file diff --git a/frontend/dist/assets/Input-D7YePN-E.js b/frontend/dist/assets/Input-B41xxqED.js similarity index 98% rename from frontend/dist/assets/Input-D7YePN-E.js rename to frontend/dist/assets/Input-B41xxqED.js index 63b7f09..0834d2e 100644 --- a/frontend/dist/assets/Input-D7YePN-E.js +++ b/frontend/dist/assets/Input-B41xxqED.js @@ -1,4 +1,4 @@ -import{At as e,H as t,Mt as n,Pt as r,Rt as i,U as a,Ut as o,Y as s,_n as c,at as l,bt as u,g as ee,hn as d,ht as f,it as p,kt as m,m as te,nn as h,nt as g,ot as _,p as v,qt as ne,rn as y,st as b,tt as x}from"./client-vZFx54yb.js";import{c as S,d as C,i as w,u as re}from"./Card-DO3oxl4F.js";import{o as ie}from"./es-DSPBzgpf.js";import{i as ae,r as T,t as E}from"./Suffix-iau-0Xu1.js";import{t as oe}from"./use-merged-state-CEu_RNRJ.js";import{i as se}from"./Button-Bx9JIj0e.js";import{a as D,i as O,o as k,s as A}from"./_plugin-vue_export-helper-FodinAjS.js";import{n as ce}from"./use-form-item-DwWmLpgT.js";import{E as le,G as j,Q as M}from"./index-Ci0r-yTA.js";var N=m({name:`Eye`,render(){return n(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},n(`path`,{d:`M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`32`}),n(`circle`,{cx:`256`,cy:`256`,r:`80`,fill:`none`,stroke:`currentColor`,"stroke-miterlimit":`10`,"stroke-width":`32`}))}}),P=m({name:`EyeOff`,render(){return n(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},n(`path`,{d:`M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z`,fill:`currentColor`}),n(`path`,{d:`M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z`,fill:`currentColor`}),n(`path`,{d:`M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z`,fill:`currentColor`}),n(`path`,{d:`M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z`,fill:`currentColor`}),n(`path`,{d:`M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z`,fill:`currentColor`}))}}),F=s(`n-input`),ue=g(`input`,` +import{At as e,H as t,Mt as n,Pt as r,Rt as i,U as a,Ut as o,Y as s,_n as c,at as l,bt as u,g as ee,hn as d,ht as f,it as p,kt as m,m as te,nn as h,nt as g,ot as _,p as v,qt as ne,rn as y,st as b,tt as x}from"./client-CREJv8AD.js";import{c as S,d as C,i as w,u as re}from"./Card-CJC2gN5t.js";import{o as ie}from"./es-CevmKZP_.js";import{i as ae,r as T,t as E}from"./Suffix-iFHNypz-.js";import{t as oe}from"./use-merged-state-B6hyXujy.js";import{i as se}from"./Button-MvNgQLzL.js";import{a as D,i as O,o as k,s as A}from"./_plugin-vue_export-helper-BkfvhliL.js";import{n as ce}from"./use-form-item-CbDeFP5E.js";import{E as le,G as j,Q as M}from"./index-DZpFhWFx.js";var N=m({name:`Eye`,render(){return n(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},n(`path`,{d:`M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`32`}),n(`circle`,{cx:`256`,cy:`256`,r:`80`,fill:`none`,stroke:`currentColor`,"stroke-miterlimit":`10`,"stroke-width":`32`}))}}),P=m({name:`EyeOff`,render(){return n(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},n(`path`,{d:`M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z`,fill:`currentColor`}),n(`path`,{d:`M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z`,fill:`currentColor`}),n(`path`,{d:`M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z`,fill:`currentColor`}),n(`path`,{d:`M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z`,fill:`currentColor`}),n(`path`,{d:`M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z`,fill:`currentColor`}))}}),F=s(`n-input`),ue=g(`input`,` max-width: 100%; cursor: text; line-height: 1.5; diff --git a/frontend/dist/assets/LoginView-DMxr3e_j.js b/frontend/dist/assets/LoginView-WiQEiLme.js similarity index 96% rename from frontend/dist/assets/LoginView-DMxr3e_j.js rename to frontend/dist/assets/LoginView-WiQEiLme.js index 4f3c770..b73f748 100644 --- a/frontend/dist/assets/LoginView-DMxr3e_j.js +++ b/frontend/dist/assets/LoginView-WiQEiLme.js @@ -1,4 +1,4 @@ -import{Dt as e,H as t,Kt as n,Mt as r,Ot as i,Pt as a,U as o,Y as s,_n as c,an as l,at as u,bt as d,ct as f,g as p,hn as m,ht as h,in as g,it as _,kt as v,lt as y,nt as b,p as x,qt as S,st as C,tt as w,u as T,wt as E,xt as D,yn as O}from"./client-vZFx54yb.js";import{a as k,i as A,o as j,t as M}from"./Follower-CdAIcE29.js";import{a as N,s as ee,t as te}from"./utils-DJHY09qj.js";import{d as P,f as ne,t as F}from"./Card-DO3oxl4F.js";import{n as I}from"./es-DSPBzgpf.js";import{d as L,m as R,n as z}from"./Suffix-iau-0Xu1.js";import{t as B}from"./use-merged-state-CEu_RNRJ.js";import{t as V}from"./Button-Bx9JIj0e.js";import{n as H,t as U}from"./Tabs-DXSr-RHo.js";import{o as W,s as G,t as K}from"./_plugin-vue_export-helper-FodinAjS.js";import{n as q}from"./use-form-item-DwWmLpgT.js";import{t as J}from"./Input-D7YePN-E.js";import{t as Y}from"./Space-BBIv_CVW.js";import{$ as re,C as ie,Q as ae,R as oe,T as se,W as ce,Z as le,nt as ue,t as de}from"./index-Ci0r-yTA.js";import{t as fe}from"./HeaderMenu-CoWgnRN4.js";var pe=w([b(`auto-complete`,` +import{Dt as e,H as t,Kt as n,Mt as r,Ot as i,Pt as a,U as o,Y as s,_n as c,an as l,at as u,bt as d,ct as f,g as p,hn as m,ht as h,in as g,it as _,kt as v,lt as y,nt as b,p as x,qt as S,st as C,tt as w,u as T,wt as E,xt as D,yn as O}from"./client-CREJv8AD.js";import{a as k,i as A,o as j,t as M}from"./Follower-DAIDHT2D.js";import{a as N,s as ee,t as te}from"./utils-BJnNAJm2.js";import{d as P,f as ne,t as F}from"./Card-CJC2gN5t.js";import{n as I}from"./es-CevmKZP_.js";import{d as L,m as R,n as z}from"./Suffix-iFHNypz-.js";import{t as B}from"./use-merged-state-B6hyXujy.js";import{t as V}from"./Button-MvNgQLzL.js";import{n as H,t as U}from"./Tabs-BCjotlcB.js";import{o as W,s as G,t as K}from"./_plugin-vue_export-helper-BkfvhliL.js";import{n as q}from"./use-form-item-CbDeFP5E.js";import{t as J}from"./Input-B41xxqED.js";import{t as Y}from"./Space-ChWks6od.js";import{$ as re,C as ie,Q as ae,R as oe,T as se,W as ce,Z as le,nt as ue,t as de}from"./index-DZpFhWFx.js";import{t as fe}from"./HeaderMenu-BarRlY0P.js";var pe=w([b(`auto-complete`,` z-index: auto; position: relative; display: inline-flex; diff --git a/frontend/dist/assets/MessagePaper-C4zKJpgE.js b/frontend/dist/assets/MessagePaper-C1j55G49.js similarity index 57% rename from frontend/dist/assets/MessagePaper-C4zKJpgE.js rename to frontend/dist/assets/MessagePaper-C1j55G49.js index a412089..768072e 100644 --- a/frontend/dist/assets/MessagePaper-C4zKJpgE.js +++ b/frontend/dist/assets/MessagePaper-C1j55G49.js @@ -1 +1 @@ -import{Kt as e,Yt as t,kt as n,wt as r,xt as i}from"./client-vZFx54yb.js";import{t as a}from"./_plugin-vue_export-helper-FodinAjS.js";var o={class:`main`},s={class:`message-cloud`},c=a(n({__name:`MessagePaper`,setup(n){return(n,a)=>(e(),r(`div`,o,[a[0]||=i(`div`,{class:`message-cloud-3`},null,-1),a[1]||=i(`div`,{class:`message-cloud-2`},null,-1),i(`div`,s,[t(n.$slots,`default`,{},void 0,!0)])]))}}),[[`__scopeId`,`data-v-0b1b8d3f`]]);export{c as t}; \ No newline at end of file +import{Kt as e,Yt as t,kt as n,wt as r,xt as i}from"./client-CREJv8AD.js";import{t as a}from"./_plugin-vue_export-helper-BkfvhliL.js";var o={class:`main`},s={class:`message-cloud`},c=a(n({__name:`MessagePaper`,setup(n){return(n,a)=>(e(),r(`div`,o,[a[0]||=i(`div`,{class:`message-cloud-3`},null,-1),a[1]||=i(`div`,{class:`message-cloud-2`},null,-1),i(`div`,s,[t(n.$slots,`default`,{},void 0,!0)])]))}}),[[`__scopeId`,`data-v-0b1b8d3f`]]);export{c as t}; \ No newline at end of file diff --git a/frontend/dist/assets/Modal-XDlBuRmh.js b/frontend/dist/assets/Modal-BNDyI0AJ.js similarity index 97% rename from frontend/dist/assets/Modal-XDlBuRmh.js rename to frontend/dist/assets/Modal-BNDyI0AJ.js index 4f77473..ef0cbfa 100644 --- a/frontend/dist/assets/Modal-XDlBuRmh.js +++ b/frontend/dist/assets/Modal-BNDyI0AJ.js @@ -1,4 +1,4 @@ -import{Bt as e,Fn as t,H as n,Lt as r,Mt as i,Pt as a,Rt as o,U as s,Ut as c,Vt as l,Wt as u,Y as d,_n as f,an as p,at as m,bt as h,ct as g,et as _,g as v,hn as y,it as b,kt as x,mn as S,nn as C,nt as w,p as T,q as E,qt as D,st as O,tt as k,yt as A}from"./client-vZFx54yb.js";import{d as j,f as ee,i as te,n as ne,r as re,s as ie,t as ae,u as M}from"./Card-DO3oxl4F.js";import{o as oe}from"./es-DSPBzgpf.js";import{C as se,S as N,_ as ce,b as le,d as ue,f as de,m as fe,n as pe,p as me,v as he,x as ge,y as P}from"./Suffix-iau-0Xu1.js";import{a as _e,t as F}from"./Button-Bx9JIj0e.js";import{i as ve,n as ye,t as I}from"./keep-ChD__NI5.js";import{i as L,o as R,s as z}from"./_plugin-vue_export-helper-FodinAjS.js";import{t as be}from"./fade-in.cssr-BsIdh_o6.js";import{B as xe,G as Se,H as Ce,L as we,V as B,Y as V,Z as Te,_ as Ee,at as H,g as De,nt as U,z as Oe}from"./index-Ci0r-yTA.js";var W=y(null);function G(e){if(e.clientX>0||e.clientY>0)W.value={x:e.clientX,y:e.clientY};else{let{target:t}=e;if(t instanceof Element){let{left:e,top:n,width:r,height:i}=t.getBoundingClientRect();e>0||n>0?W.value={x:e+r/2,y:n+i/2}:W.value={x:0,y:0}}else W.value=null}}var K=0,ke=!0;function Ae(){if(!se)return S(y(null));K===0&&j(`click`,document,G,!0);let t=()=>{K+=1};return(ke&&=N())?(e(t),l(()=>{--K,K===0&&M(`click`,document,G,!0)})):t(),S(W)}var je=y(void 0),q=0;function Me(){je.value=Date.now()}var Ne=!0;function Pe(t){if(!se)return S(y(!1));let n=y(!1),r=null;function i(){r!==null&&window.clearTimeout(r)}function a(){i(),n.value=!0,r=window.setTimeout(()=>{n.value=!1},t)}q===0&&j(`click`,window,Me,!0);let o=()=>{q+=1,j(`click`,window,a,!0)};return(Ne&&=N())?(e(o),l(()=>{--q,q===0&&M(`click`,window,Me,!0),M(`click`,window,a,!0),i()})):o(),S(n)}var J=y(!1);function Fe(){J.value=!0}function Ie(){J.value=!1}var Y=0;function Le(){return _e&&(e(()=>{Y||(window.addEventListener(`compositionstart`,Fe),window.addEventListener(`compositionend`,Ie)),Y++}),l(()=>{Y<=1?(window.removeEventListener(`compositionstart`,Fe),window.removeEventListener(`compositionend`,Ie),Y=0):Y--})),J}var X=0,Re=``,ze=``,Be=``,Ve=``,He=y(`0px`);function Ue(e){if(typeof document>`u`)return;let t=document.documentElement,n,r=!1,i=()=>{t.style.marginRight=Re,t.style.overflow=ze,t.style.overflowX=Be,t.style.overflowY=Ve,He.value=`0px`};c(()=>{n=C(e,e=>{if(e){if(!X){let e=window.innerWidth-t.offsetWidth;e>0&&(Re=t.style.marginRight,t.style.marginRight=`${e}px`,He.value=`${e}px`),ze=t.style.overflow,Be=t.style.overflowX,Ve=t.style.overflowY,t.style.overflow=`hidden`,t.style.overflowX=`hidden`,t.style.overflowY=`hidden`}r=!0,X++}else X--,X||i(),r=!1},{immediate:!0})}),l(()=>{n?.(),r&&=(X--,X||i(),!1)})}var We=d(`n-dialog-provider`);d(`n-dialog-api`),d(`n-dialog-reactive-list`);var Z={icon:Function,type:{type:String,default:`default`},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,titleClass:[String,Array],titleStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],actionClass:[String,Array],actionStyle:[String,Object],onPositiveClick:Function,onNegativeClick:Function,onClose:Function,closeFocusable:Boolean},Ge=ie(Z),Ke=k([w(`dialog`,` +import{Bt as e,Fn as t,H as n,Lt as r,Mt as i,Pt as a,Rt as o,U as s,Ut as c,Vt as l,Wt as u,Y as d,_n as f,an as p,at as m,bt as h,ct as g,et as _,g as v,hn as y,it as b,kt as x,mn as S,nn as C,nt as w,p as T,q as E,qt as D,st as O,tt as k,yt as A}from"./client-CREJv8AD.js";import{d as j,f as ee,i as te,n as ne,r as re,s as ie,t as ae,u as M}from"./Card-CJC2gN5t.js";import{o as oe}from"./es-CevmKZP_.js";import{C as se,S as N,_ as ce,b as le,d as ue,f as de,m as fe,n as pe,p as me,v as he,x as ge,y as P}from"./Suffix-iFHNypz-.js";import{a as _e,t as F}from"./Button-MvNgQLzL.js";import{i as ve,n as ye,t as I}from"./keep-Du8BxhQs.js";import{i as L,o as R,s as z}from"./_plugin-vue_export-helper-BkfvhliL.js";import{t as be}from"./fade-in.cssr-CL3cAgSL.js";import{B as xe,G as Se,H as Ce,L as we,V as B,Y as V,Z as Te,_ as Ee,at as H,g as De,nt as U,z as Oe}from"./index-DZpFhWFx.js";var W=y(null);function G(e){if(e.clientX>0||e.clientY>0)W.value={x:e.clientX,y:e.clientY};else{let{target:t}=e;if(t instanceof Element){let{left:e,top:n,width:r,height:i}=t.getBoundingClientRect();e>0||n>0?W.value={x:e+r/2,y:n+i/2}:W.value={x:0,y:0}}else W.value=null}}var K=0,ke=!0;function Ae(){if(!se)return S(y(null));K===0&&j(`click`,document,G,!0);let t=()=>{K+=1};return(ke&&=N())?(e(t),l(()=>{--K,K===0&&M(`click`,document,G,!0)})):t(),S(W)}var je=y(void 0),q=0;function Me(){je.value=Date.now()}var Ne=!0;function Pe(t){if(!se)return S(y(!1));let n=y(!1),r=null;function i(){r!==null&&window.clearTimeout(r)}function a(){i(),n.value=!0,r=window.setTimeout(()=>{n.value=!1},t)}q===0&&j(`click`,window,Me,!0);let o=()=>{q+=1,j(`click`,window,a,!0)};return(Ne&&=N())?(e(o),l(()=>{--q,q===0&&M(`click`,window,Me,!0),M(`click`,window,a,!0),i()})):o(),S(n)}var J=y(!1);function Fe(){J.value=!0}function Ie(){J.value=!1}var Y=0;function Le(){return _e&&(e(()=>{Y||(window.addEventListener(`compositionstart`,Fe),window.addEventListener(`compositionend`,Ie)),Y++}),l(()=>{Y<=1?(window.removeEventListener(`compositionstart`,Fe),window.removeEventListener(`compositionend`,Ie),Y=0):Y--})),J}var X=0,Re=``,ze=``,Be=``,Ve=``,He=y(`0px`);function Ue(e){if(typeof document>`u`)return;let t=document.documentElement,n,r=!1,i=()=>{t.style.marginRight=Re,t.style.overflow=ze,t.style.overflowX=Be,t.style.overflowY=Ve,He.value=`0px`};c(()=>{n=C(e,e=>{if(e){if(!X){let e=window.innerWidth-t.offsetWidth;e>0&&(Re=t.style.marginRight,t.style.marginRight=`${e}px`,He.value=`${e}px`),ze=t.style.overflow,Be=t.style.overflowX,Ve=t.style.overflowY,t.style.overflow=`hidden`,t.style.overflowX=`hidden`,t.style.overflowY=`hidden`}r=!0,X++}else X--,X||i(),r=!1},{immediate:!0})}),l(()=>{n?.(),r&&=(X--,X||i(),!1)})}var We=d(`n-dialog-provider`);d(`n-dialog-api`),d(`n-dialog-reactive-list`);var Z={icon:Function,type:{type:String,default:`default`},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,titleClass:[String,Array],titleStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],actionClass:[String,Array],actionStyle:[String,Object],onPositiveClick:Function,onNegativeClick:Function,onClose:Function,closeFocusable:Boolean},Ge=ie(Z),Ke=k([w(`dialog`,` --n-icon-margin: var(--n-icon-margin-top) var(--n-icon-margin-right) var(--n-icon-margin-bottom) var(--n-icon-margin-left); word-break: break-word; line-height: var(--n-line-height); diff --git a/frontend/dist/assets/OfficeView-0a8KHSvF.js b/frontend/dist/assets/OfficeView-CtpHPH8n.js similarity index 96% rename from frontend/dist/assets/OfficeView-0a8KHSvF.js rename to frontend/dist/assets/OfficeView-CtpHPH8n.js index 3391b2a..fc2ae96 100644 --- a/frontend/dist/assets/OfficeView-0a8KHSvF.js +++ b/frontend/dist/assets/OfficeView-CtpHPH8n.js @@ -1 +1 @@ -import{Ct as e,Dt as t,Kt as n,Ln as r,Ot as i,St as a,hn as o,ht as s,in as c,kt as l,u,wt as d,xt as f,yn as p}from"./client-vZFx54yb.js";import{t as m}from"./Card-DO3oxl4F.js";import{n as h}from"./es-DSPBzgpf.js";import{t as g}from"./Modal-XDlBuRmh.js";import{t as _}from"./Button-Bx9JIj0e.js";import{t as v}from"./_plugin-vue_export-helper-FodinAjS.js";import{t as y}from"./Input-D7YePN-E.js";import{t as b}from"./Alert-aZxDGAB-.js";import{n as x,ot as S,t as C}from"./index-Ci0r-yTA.js";import{t as w}from"./HeaderMenu-CoWgnRN4.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=v(l({__name:`OfficePage`,setup(a){let l=C(),v=u(),A=h(),j=x(),M=o([]);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=o(!1),L=o(``),R=o(``);async function z(){if(R.value=``,!await l.deleteAccount(L.value)){R.value=l.error||`Не удалось удалить аккаунт`;return}A.success(`Аккаунт и персональные данные удалены`),I.value=!1,v.push(`/login`)}return(a,o)=>(n(),d(s,null,[f(`div`,T,[f(`div`,E,[i(p(b),{title:p(F).header,"show-icon":!1,type:`info`,style:{"margin-bottom":`20px`}},{default:c(()=>[t(r(p(F).text),1)]),_:1},8,[`title`]),f(`p`,null,`Доброго времени суток, `+r(p(l).username)+`.`,1),f(`div`,D,[o[6]||=f(`div`,{class:`danger-zone-text`},[f(`div`,{class:`danger-zone-title`},`Удаление аккаунта`),f(`div`,{class:`danger-zone-hint`},` Удаление необратимо: аккаунт и все персональные данные будут стёрты (ст. 21 152-ФЗ). `)],-1),i(p(_),{type:`error`,ghost:``,onClick:o[0]||=e=>I.value=!0},{default:c(()=>[...o[5]||=[t(`Удалить аккаунт`,-1)]]),_:1})])])]),i(p(g),{show:I.value,"onUpdate:show":o[4]||=e=>I.value=e,class:`delete-modal`},{default:c(()=>[i(p(m),{title:`Удаление аккаунта`,bordered:!1,role:`dialog`,"aria-modal":`true`,closable:``,onClose:o[3]||=e=>I.value=!1},{default:c(()=>[o[9]||=f(`p`,{class:`delete-modal-text`},` Это действие необратимо. Для подтверждения удаления введите пароль от учётной записи — он понадобится, чтобы убедиться, что аккаунт удаляет его владелец. `,-1),i(p(y),{value:L.value,"onUpdate:value":o[1]||=e=>L.value=e,type:`password`,placeholder:`Пароль для подтверждения`,onKeyup:S(z,[`enter`])},null,8,[`value`]),R.value?(n(),d(`p`,O,r(R.value),1)):e(``,!0),f(`div`,k,[i(p(_),{onClick:o[2]||=e=>I.value=!1},{default:c(()=>[...o[7]||=[t(`Отмена`,-1)]]),_:1}),i(p(_),{type:`error`,disabled:L.value.length==0,loading:p(l).isLoading,onClick:z},{default:c(()=>[...o[8]||=[t(` Удалить навсегда `,-1)]]),_:1},8,[`disabled`,`loading`])])]),_:1})]),_:1},8,[`show`]),i(w,{active:`office`})],64))}}),[[`__scopeId`,`data-v-37e6a597`]]),j=l({__name:`OfficeView`,setup(e){return(e,t)=>(n(),a(A))}});export{j as default}; \ No newline at end of file +import{Ct as e,Dt as t,Kt as n,Ln as r,Ot as i,St as a,hn as o,ht as s,in as c,kt as l,u,wt as d,xt as f,yn as p}from"./client-CREJv8AD.js";import{t as m}from"./Card-CJC2gN5t.js";import{n as h}from"./es-CevmKZP_.js";import{t as g}from"./Modal-BNDyI0AJ.js";import{t as _}from"./Button-MvNgQLzL.js";import{t as v}from"./_plugin-vue_export-helper-BkfvhliL.js";import{t as y}from"./Input-B41xxqED.js";import{t as b}from"./Alert-CvCnaLc2.js";import{n as x,ot as S,t as C}from"./index-DZpFhWFx.js";import{t as w}from"./HeaderMenu-BarRlY0P.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=v(l({__name:`OfficePage`,setup(a){let l=C(),v=u(),A=h(),j=x(),M=o([]);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=o(!1),L=o(``),R=o(``);async function z(){if(R.value=``,!await l.deleteAccount(L.value)){R.value=l.error||`Не удалось удалить аккаунт`;return}A.success(`Аккаунт и персональные данные удалены`),I.value=!1,v.push(`/login`)}return(a,o)=>(n(),d(s,null,[f(`div`,T,[f(`div`,E,[i(p(b),{title:p(F).header,"show-icon":!1,type:`info`,style:{"margin-bottom":`20px`}},{default:c(()=>[t(r(p(F).text),1)]),_:1},8,[`title`]),f(`p`,null,`Доброго времени суток, `+r(p(l).username)+`.`,1),f(`div`,D,[o[6]||=f(`div`,{class:`danger-zone-text`},[f(`div`,{class:`danger-zone-title`},`Удаление аккаунта`),f(`div`,{class:`danger-zone-hint`},` Удаление необратимо: аккаунт и все персональные данные будут стёрты (ст. 21 152-ФЗ). `)],-1),i(p(_),{type:`error`,ghost:``,onClick:o[0]||=e=>I.value=!0},{default:c(()=>[...o[5]||=[t(`Удалить аккаунт`,-1)]]),_:1})])])]),i(p(g),{show:I.value,"onUpdate:show":o[4]||=e=>I.value=e,class:`delete-modal`},{default:c(()=>[i(p(m),{title:`Удаление аккаунта`,bordered:!1,role:`dialog`,"aria-modal":`true`,closable:``,onClose:o[3]||=e=>I.value=!1},{default:c(()=>[o[9]||=f(`p`,{class:`delete-modal-text`},` Это действие необратимо. Для подтверждения удаления введите пароль от учётной записи — он понадобится, чтобы убедиться, что аккаунт удаляет его владелец. `,-1),i(p(y),{value:L.value,"onUpdate:value":o[1]||=e=>L.value=e,type:`password`,placeholder:`Пароль для подтверждения`,onKeyup:S(z,[`enter`])},null,8,[`value`]),R.value?(n(),d(`p`,O,r(R.value),1)):e(``,!0),f(`div`,k,[i(p(_),{onClick:o[2]||=e=>I.value=!1},{default:c(()=>[...o[7]||=[t(`Отмена`,-1)]]),_:1}),i(p(_),{type:`error`,disabled:L.value.length==0,loading:p(l).isLoading,onClick:z},{default:c(()=>[...o[8]||=[t(` Удалить навсегда `,-1)]]),_:1},8,[`disabled`,`loading`])])]),_:1})]),_:1},8,[`show`]),i(w,{active:`office`})],64))}}),[[`__scopeId`,`data-v-37e6a597`]]),j=l({__name:`OfficeView`,setup(e){return(e,t)=>(n(),a(A))}});export{j as default}; \ No newline at end of file diff --git a/frontend/dist/assets/ParticipationView-DyTDDQH1.js b/frontend/dist/assets/ParticipationView-B0CQImSi.js similarity index 92% rename from frontend/dist/assets/ParticipationView-DyTDDQH1.js rename to frontend/dist/assets/ParticipationView-B0CQImSi.js index b036126..00b0053 100644 --- a/frontend/dist/assets/ParticipationView-DyTDDQH1.js +++ b/frontend/dist/assets/ParticipationView-B0CQImSi.js @@ -1 +1 @@ -import{Ct as e,Dt as t,Kt as n,Ln as r,Ot as i,St as a,Ut as o,hn as s,ht as c,in as l,kt as u,l as d,t as f,wt as p,xt as m,yn as h}from"./client-vZFx54yb.js";import{t as g}from"./Card-DO3oxl4F.js";import{t as _}from"./Button-Bx9JIj0e.js";import{t as v}from"./Space-BBIv_CVW.js";import{t as y}from"./index-Ci0r-yTA.js";import{t as b}from"./HeaderMenu-CoWgnRN4.js";import{t as x}from"./datetime-BJNH0M1T.js";var S={class:`center-block-custom`},C={class:`width700`},w={key:0,role:`alert`},T={key:0,role:`status`},E={key:1,role:`status`},D={key:2},O=u({__name:`ParticipationPage`,setup(u){let O=d(),k=new URLSearchParams(O.hash.slice(1)),A=k.get(`token`)||``,j=s(k.get(`answer`)===`cancelled`?`cancelled`:`confirmed`),M=f(),N=y(),P=s(),F=s(!1),I=s(``);async function L(){F.value=!0,I.value=``;try{let e=await M.GetParticipation({token:A});P.value=e}catch{I.value=`Не удалось загрузить данные. Попробуйте ещё раз.`}finally{F.value=!1}}async function R(){if(!F.value){F.value=!0,I.value=``;try{let e=await M.AnswerParticipation({token:A,answer:j.value});P.value=e}catch{I.value=`Не удалось сохранить ответ. Попробуйте ещё раз.`}finally{F.value=!1}}}return o(L),(o,s)=>(n(),p(c,null,[h(N).isAuthenticated?(n(),a(b,{key:0})):e(``,!0),m(`div`,S,[m(`div`,C,[i(h(g),{title:`Участие в игре`},{default:l(()=>[I.value?(n(),p(`p`,w,r(I.value),1)):e(``,!0),P.value?(n(),p(c,{key:1},[m(`h2`,null,r(P.value.gameName),1),m(`p`,null,`Команда: `+r(P.value.teamName),1),m(`p`,null,`Начало: `+r(h(x)(P.value.startAt)),1),m(`p`,null,`Участников: `+r(P.value.participantsCount),1),P.value.status===`confirmed`?(n(),p(`p`,T,` Участие подтверждено. Ждём вас на игре! Решение окончательное. `)):P.value.status===`cancelled`?(n(),p(`p`,E,` Запись отменена. Решение окончательное. `)):P.value.closed?(n(),p(`p`,D,` Приём ответов закрыт. Ваша запись сохранена со статусом «Ожидает ответа». `)):(n(),p(c,{key:3},[s[4]||=m(`p`,null,[m(`strong`,null,`Решение окончательное: изменить его нельзя.`)],-1),s[5]||=m(`p`,null,`Без ответа запись сохраняется со статусом «Ожидает ответа».`,-1),i(h(v),{vertical:``},{default:l(()=>[i(h(v),null,{default:l(()=>[i(h(_),{disabled:F.value,type:j.value===`confirmed`?`primary`:`default`,"aria-pressed":j.value===`confirmed`,onClick:s[0]||=e=>j.value=`confirmed`},{default:l(()=>[...s[2]||=[t(`Мы участвуем`,-1)]]),_:1},8,[`disabled`,`type`,`aria-pressed`]),i(h(_),{disabled:F.value,type:j.value===`cancelled`?`error`:`default`,"aria-pressed":j.value===`cancelled`,onClick:s[1]||=e=>j.value=`cancelled`},{default:l(()=>[...s[3]||=[t(`Мы не участвуем`,-1)]]),_:1},8,[`disabled`,`type`,`aria-pressed`])]),_:1}),i(h(_),{loading:F.value,disabled:F.value,type:j.value===`cancelled`?`error`:`primary`,onClick:R},{default:l(()=>[t(r(j.value===`confirmed`?`Подтверждаю участие`:`Подтверждаю отмену`),1)]),_:1},8,[`loading`,`disabled`,`type`])]),_:1})],64))],64)):(n(),a(h(_),{key:2,loading:F.value,onClick:L},{default:l(()=>[t(r(F.value?`Загрузка`:`Повторить`),1)]),_:1},8,[`loading`]))]),_:1})])])],64))}}),k=u({__name:`ParticipationView`,setup(e){return(e,t)=>(n(),a(O))}});export{k as default}; \ No newline at end of file +import{Ct as e,Dt as t,Kt as n,Ln as r,Ot as i,St as a,Ut as o,hn as s,ht as c,in as l,kt as u,l as d,t as f,wt as p,xt as m,yn as h}from"./client-CREJv8AD.js";import{t as g}from"./Card-CJC2gN5t.js";import{t as _}from"./Button-MvNgQLzL.js";import{t as v}from"./Space-ChWks6od.js";import{t as y}from"./index-DZpFhWFx.js";import{t as b}from"./HeaderMenu-BarRlY0P.js";import{t as x}from"./datetime-BJNH0M1T.js";var S={class:`center-block-custom`},C={class:`width700`},w={key:0,role:`alert`},T={key:0,role:`status`},E={key:1,role:`status`},D={key:2},O=u({__name:`ParticipationPage`,setup(u){let O=d(),k=new URLSearchParams(O.hash.slice(1)),A=k.get(`token`)||``,j=s(k.get(`answer`)===`cancelled`?`cancelled`:`confirmed`),M=f(),N=y(),P=s(),F=s(!1),I=s(``);async function L(){F.value=!0,I.value=``;try{let e=await M.GetParticipation({token:A});P.value=e}catch{I.value=`Не удалось загрузить данные. Попробуйте ещё раз.`}finally{F.value=!1}}async function R(){if(!F.value){F.value=!0,I.value=``;try{let e=await M.AnswerParticipation({token:A,answer:j.value});P.value=e}catch{I.value=`Не удалось сохранить ответ. Попробуйте ещё раз.`}finally{F.value=!1}}}return o(L),(o,s)=>(n(),p(c,null,[h(N).isAuthenticated?(n(),a(b,{key:0})):e(``,!0),m(`div`,S,[m(`div`,C,[i(h(g),{title:`Участие в игре`},{default:l(()=>[I.value?(n(),p(`p`,w,r(I.value),1)):e(``,!0),P.value?(n(),p(c,{key:1},[m(`h2`,null,r(P.value.gameName),1),m(`p`,null,`Команда: `+r(P.value.teamName),1),m(`p`,null,`Начало: `+r(h(x)(P.value.startAt)),1),m(`p`,null,`Участников: `+r(P.value.participantsCount),1),P.value.status===`confirmed`?(n(),p(`p`,T,` Участие подтверждено. Ждём вас на игре! Решение окончательное. `)):P.value.status===`cancelled`?(n(),p(`p`,E,` Запись отменена. Решение окончательное. `)):P.value.closed?(n(),p(`p`,D,` Приём ответов закрыт. Ваша запись сохранена со статусом «Ожидает ответа». `)):(n(),p(c,{key:3},[s[4]||=m(`p`,null,[m(`strong`,null,`Решение окончательное: изменить его нельзя.`)],-1),s[5]||=m(`p`,null,`Без ответа запись сохраняется со статусом «Ожидает ответа».`,-1),i(h(v),{vertical:``},{default:l(()=>[i(h(v),null,{default:l(()=>[i(h(_),{disabled:F.value,type:j.value===`confirmed`?`primary`:`default`,"aria-pressed":j.value===`confirmed`,onClick:s[0]||=e=>j.value=`confirmed`},{default:l(()=>[...s[2]||=[t(`Мы участвуем`,-1)]]),_:1},8,[`disabled`,`type`,`aria-pressed`]),i(h(_),{disabled:F.value,type:j.value===`cancelled`?`error`:`default`,"aria-pressed":j.value===`cancelled`,onClick:s[1]||=e=>j.value=`cancelled`},{default:l(()=>[...s[3]||=[t(`Мы не участвуем`,-1)]]),_:1},8,[`disabled`,`type`,`aria-pressed`])]),_:1}),i(h(_),{loading:F.value,disabled:F.value,type:j.value===`cancelled`?`error`:`primary`,onClick:R},{default:l(()=>[t(r(j.value===`confirmed`?`Подтверждаю участие`:`Подтверждаю отмену`),1)]),_:1},8,[`loading`,`disabled`,`type`])]),_:1})],64))],64)):(n(),a(h(_),{key:2,loading:F.value,onClick:L},{default:l(()=>[t(r(F.value?`Загрузка`:`Повторить`),1)]),_:1},8,[`loading`]))]),_:1})])])],64))}}),k=u({__name:`ParticipationView`,setup(e){return(e,t)=>(n(),a(O))}});export{k as default}; \ No newline at end of file diff --git a/frontend/dist/assets/PlaceBlock-h6Syh7Mw.js b/frontend/dist/assets/PlaceBlock-CxzGePrT.js similarity index 97% rename from frontend/dist/assets/PlaceBlock-h6Syh7Mw.js rename to frontend/dist/assets/PlaceBlock-CxzGePrT.js index c872b3c..bafcaa5 100644 --- a/frontend/dist/assets/PlaceBlock-h6Syh7Mw.js +++ b/frontend/dist/assets/PlaceBlock-CxzGePrT.js @@ -1,4 +1,4 @@ -import{Ct as e,Dt as t,Et as n,Fn as r,H as i,In as a,Jt as o,Kt as s,Ln as c,Mt as l,Ot as u,Pt as d,St as f,U as p,Y as m,Yt as h,_n as g,at as _,bt as v,cn as y,d as ee,f as b,g as x,gn as S,hn as C,ht as w,in as T,it as E,kt as D,m as O,nt as k,ot as A,p as j,qt as te,r as M,tt as N,wt as P,xt as F,yn as I}from"./client-vZFx54yb.js";import{t as ne}from"./Card-DO3oxl4F.js";import{r as re,t as ie}from"./es-DSPBzgpf.js";import{i as ae}from"./Suffix-iau-0Xu1.js";import{t as oe}from"./Modal-XDlBuRmh.js";import{t as L}from"./use-merged-state-CEu_RNRJ.js";import{r as se,t as R}from"./Button-Bx9JIj0e.js";import{a as z,i as ce,s as le,t as ue}from"./_plugin-vue_export-helper-FodinAjS.js";import{n as de,r as B,t as fe}from"./Upload-B6W9RuvF.js";import{t as pe}from"./use-form-item-DwWmLpgT.js";import{t as me}from"./Add-7eYe2Si6.js";import{t as V}from"./Input-D7YePN-E.js";import{n as he,t as ge}from"./Switch-CAv0P3By.js";import{t as H}from"./Space-BBIv_CVW.js";import{$ as _e,E as ve,G as U,m as ye,st as W,w as be}from"./index-Ci0r-yTA.js";import{n as G,r as K,t as xe}from"./application-BR-GaUH8.js";import{t as Se}from"./MessagePaper-C4zKJpgE.js";var Ce=D({name:`ArrowDown`,render(){return l(`svg`,{viewBox:`0 0 28 28`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},l(`g`,{stroke:`none`,"stroke-width":`1`,"fill-rule":`evenodd`},l(`g`,{"fill-rule":`nonzero`},l(`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`}))))}}),we=D({name:`ArrowUp`,render(){return l(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`},l(`g`,{fill:`none`},l(`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`})))}}),Te=k(`input-group`,` +import{Ct as e,Dt as t,Et as n,Fn as r,H as i,In as a,Jt as o,Kt as s,Ln as c,Mt as l,Ot as u,Pt as d,St as f,U as p,Y as m,Yt as h,_n as g,at as _,bt as v,cn as y,d as ee,f as b,g as x,gn as S,hn as C,ht as w,in as T,it as E,kt as D,m as O,nt as k,ot as A,p as j,qt as te,r as M,tt as N,wt as P,xt as F,yn as I}from"./client-CREJv8AD.js";import{t as ne}from"./Card-CJC2gN5t.js";import{r as re,t as ie}from"./es-CevmKZP_.js";import{i as ae}from"./Suffix-iFHNypz-.js";import{t as oe}from"./Modal-BNDyI0AJ.js";import{t as L}from"./use-merged-state-B6hyXujy.js";import{r as se,t as R}from"./Button-MvNgQLzL.js";import{a as z,i as ce,s as le,t as ue}from"./_plugin-vue_export-helper-BkfvhliL.js";import{n as de,r as B,t as fe}from"./Upload-CKwlW1lG.js";import{t as pe}from"./use-form-item-CbDeFP5E.js";import{t as me}from"./Add-Cwgq0nEf.js";import{t as V}from"./Input-B41xxqED.js";import{n as he,t as ge}from"./Switch-Dp58TJPL.js";import{t as H}from"./Space-ChWks6od.js";import{$ as _e,E as ve,G as U,m as ye,st as W,w as be}from"./index-DZpFhWFx.js";import{n as G,r as K,t as xe}from"./application-6wLYVOst.js";import{t as Se}from"./MessagePaper-C1j55G49.js";var Ce=D({name:`ArrowDown`,render(){return l(`svg`,{viewBox:`0 0 28 28`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},l(`g`,{stroke:`none`,"stroke-width":`1`,"fill-rule":`evenodd`},l(`g`,{"fill-rule":`nonzero`},l(`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`}))))}}),we=D({name:`ArrowUp`,render(){return l(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`},l(`g`,{fill:`none`},l(`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`})))}}),Te=k(`input-group`,` display: inline-flex; width: 100%; flex-wrap: nowrap; diff --git a/frontend/dist/assets/Popover-CgvsZgY0.js b/frontend/dist/assets/Popover-C32Z2jyV.js similarity index 97% rename from frontend/dist/assets/Popover-CgvsZgY0.js rename to frontend/dist/assets/Popover-C32Z2jyV.js index ae35b4a..3aa0bd6 100644 --- a/frontend/dist/assets/Popover-CgvsZgY0.js +++ b/frontend/dist/assets/Popover-C32Z2jyV.js @@ -1,4 +1,4 @@ -import{A as e,B as t,C as n,D as r,E as i,F as a,H as o,I as s,L as c,Lt as l,M as u,Mt as d,N as f,O as p,P as m,Pt as h,R as g,S as _,T as v,U as y,V as b,Vt as x,_n as S,_t as C,an as w,at as T,b as E,bt as D,g as ee,hn as O,ht as te,it as k,j as A,k as j,kt as M,nn as ne,nt as N,ot as P,p as F,qt as I,rn as re,rt as ie,tt as L,v as ae,w as oe,x as se,y as ce,yt as le,z as ue}from"./client-vZFx54yb.js";import{a as de,i as fe,o as R,t as pe}from"./Follower-CdAIcE29.js";import{a as me,d as z,f as he,u as B}from"./Card-DO3oxl4F.js";import{_ as ge,m as _e,p as ve,u as ye,v as be,x as xe}from"./Suffix-iau-0Xu1.js";import{t as Se}from"./use-merged-state-CEu_RNRJ.js";import{t as Ce}from"./use-compitable-CCPds9Cc.js";import{i as we,t as Te}from"./keep-ChD__NI5.js";import{o as V,r as Ee,s as H}from"./_plugin-vue_export-helper-FodinAjS.js";import{a as De,i as Oe,n as ke,o as U,r as W,t as Ae}from"./get-kvHFoxYO.js";import{Q as je,Z as Me,at as Ne,j as Pe,nt as Fe,q as Ie}from"./index-Ci0r-yTA.js";var G=`@@mmoContext`,Le={mounted(e,{value:t}){e[G]={handler:void 0},typeof t==`function`&&(e[G].handler=t,z(`mousemoveoutside`,e,t))},updated(e,{value:t}){let n=e[G];typeof t==`function`?n.handler?n.handler!==t&&(B(`mousemoveoutside`,e,n.handler),n.handler=t,z(`mousemoveoutside`,e,t)):(e[G].handler=t,z(`mousemoveoutside`,e,t)):n.handler&&=(B(`mousemoveoutside`,e,n.handler),void 0)},unmounted(e){let{handler:t}=e[G];t&&B(`mousemoveoutside`,e,t),e[G].handler=void 0}},K;function Re(){return K===void 0&&(K=navigator.userAgent.includes(`Node.js`)||navigator.userAgent.includes(`jsdom`)),K}var q=f(b,`WeakMap`),ze=n(Object.keys,Object),Be=Object.prototype.hasOwnProperty;function Ve(e){if(!p(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 j(e)?oe(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);++ds))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(e(),i(n,null,[t(o,{kind:`privacy`}),t(a)],64))}});export{s as default}; \ No newline at end of file diff --git a/frontend/dist/assets/PrivacyPolicyView-DpUhOBh2.js b/frontend/dist/assets/PrivacyPolicyView-DpUhOBh2.js deleted file mode 100644 index d622ac1..0000000 --- a/frontend/dist/assets/PrivacyPolicyView-DpUhOBh2.js +++ /dev/null @@ -1 +0,0 @@ -import{Kt as e,Ot as t,ht as n,kt as r,wt as i}from"./client-vZFx54yb.js";import{t as a}from"./HeaderMenu-CoWgnRN4.js";import{t as o}from"./DocsPage-x66dtzHN.js";var s=r({__name:`PrivacyPolicyView`,setup(r){return(r,s)=>(e(),i(n,null,[t(o,{kind:`privacy`}),t(a)],64))}});export{s as default}; \ No newline at end of file diff --git a/frontend/dist/assets/QrCode-DxK4gby4.js b/frontend/dist/assets/QrCode-CgX_T1UU.js similarity index 99% rename from frontend/dist/assets/QrCode-DxK4gby4.js rename to frontend/dist/assets/QrCode-CgX_T1UU.js index efd3c97..6f89b76 100644 --- a/frontend/dist/assets/QrCode-DxK4gby4.js +++ b/frontend/dist/assets/QrCode-CgX_T1UU.js @@ -1,4 +1,4 @@ -import{H as e,Mt as t,U as n,Ut as r,bt as i,d as a,hn as o,kt as s,nt as c,p as l,rn as u,tt as d}from"./client-vZFx54yb.js";function f(e){return{borderRadius:e.borderRadius}}var p={name:`QrCode`,common:a,self:f},m;(function(e){class t{static encodeText(n,r){let i=e.QrSegment.makeSegments(n);return t.encodeSegments(i,r)}static encodeBinary(n,r){let i=e.QrSegment.makeBytes(n);return t.encodeSegments([i],r)}static encodeSegments(e,r,a=1,o=40,s=-1,c=!0){if(!(t.MIN_VERSION<=a&&a<=o&&o<=t.MAX_VERSION)||s<-1||s>7)throw RangeError(`Invalid value`);let l,u;for(l=a;;l++){let n=t.getNumDataCodewords(l,r)*8,a=i.getTotalBits(e,l);if(a<=n){u=a;break}if(l>=o)throw RangeError(`Data too long`)}for(let e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])c&&u<=t.getNumDataCodewords(l,e)*8&&(r=e);let d=[];for(let t of e){n(t.mode.modeBits,4,d),n(t.numChars,t.mode.numCharCountBits(l),d);for(let e of t.getData())d.push(e)}let f=t.getNumDataCodewords(l,r)*8;n(0,Math.min(4,f-d.length),d),n(0,(8-d.length%8)%8,d);for(let e=236;d.lengthp[t>>>3]|=e<<7-(t&7)),new t(l,r,p,s)}constructor(e,n,r,i){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],et.MAX_VERSION)throw RangeError(`Version value out of range`);if(i<-1||i>7)throw RangeError(`Mask value out of range`);this.size=e*4+17;let a=[];for(let e=0;e=0&&e=0&&t>>9)*1335;let i=(t<<10|n)^21522;for(let e=0;e<=5;e++)this.setFunctionModule(8,e,r(i,e));this.setFunctionModule(8,7,r(i,6)),this.setFunctionModule(8,8,r(i,7)),this.setFunctionModule(7,8,r(i,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,r(i,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,r(i,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,r(i,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^(e>>>11)*7973;let t=this.version<<12|e;for(let e=0;e<18;e++){let n=r(t,e),i=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(i,a,n),this.setFunctionModule(a,i,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){let i=Math.max(Math.abs(r),Math.abs(n)),a=e+r,o=t+n;a>=0&&a=0&&o{(e!==c-a||n>=s)&&d.push(t[e])});return d}drawCodewords(e){if(e.length!==Math.floor(t.getNumRawDataModules(this.version)/8))throw RangeError(`Invalid argument`);let n=0;for(let t=this.size-1;t>=1;t-=2){t===6&&(t=5);for(let i=0;i>>3],7-(n&7)),n++)}}}applyMask(e){if(e<0||e>7)throw RangeError(`Mask value out of range`);for(let t=0;t5&&e++):(this.finderPenaltyAddHistory(i,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[n][o],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,a)*t.PENALTY_N3}for(let n=0;n5&&e++):(this.finderPenaltyAddHistory(i,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[o][n],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,a)*t.PENALTY_N3}for(let n=0;ne+ +!!t,n);let r=this.size*this.size,i=Math.ceil(Math.abs(n*20-r*10)/r)-1;return e+=i*t.PENALTY_N4,e}getAlignmentPatternPositions(){if(this.version===1)return[];{let e=Math.floor(this.version/7)+2,t=this.version===32?26:Math.ceil((this.version*4+4)/(e*2-2))*2,n=[6];for(let r=this.size-7;n.lengtht.MAX_VERSION)throw RangeError(`Version number out of range`);let n=(16*e+128)*e+64;if(e>=2){let t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw RangeError(`Degree out of range`);let n=[];for(let t=0;t0);for(let i of e){let e=i^r.shift();r.push(0),n.forEach((n,i)=>r[i]^=t.reedSolomonMultiply(n,e))}return r}static reedSolomonMultiply(e,t){if(e>>>8||t>>>8)throw RangeError(`Byte out of range`);let n=0;for(let r=7;r>=0;r--)n=n<<1^(n>>>7)*285,n^=(t>>>r&1)*e;return n}finderPenaltyCountPatterns(e){let t=e[1],n=t>0&&e[2]===t&&e[3]===t*3&&e[4]===t&&e[5]===t;return(n&&e[0]>=t*4&&e[6]>=t?1:0)+(n&&e[6]>=t*4&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){t[0]===0&&(e+=this.size),t.pop(),t.unshift(e)}}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(e,t,n){if(t<0||t>31||e>>>t)throw RangeError(`Value out of range`);for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function r(e,t){return(e>>>t&1)!=0}class i{static makeBytes(e){let t=[];for(let r of e)n(r,8,t);return new i(i.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!i.isNumeric(e))throw RangeError(`String contains non-numeric characters`);let t=[];for(let r=0;r=1<7)throw RangeError(`Invalid value`);let l,u;for(l=a;;l++){let n=t.getNumDataCodewords(l,r)*8,a=i.getTotalBits(e,l);if(a<=n){u=a;break}if(l>=o)throw RangeError(`Data too long`)}for(let e of[t.Ecc.MEDIUM,t.Ecc.QUARTILE,t.Ecc.HIGH])c&&u<=t.getNumDataCodewords(l,e)*8&&(r=e);let d=[];for(let t of e){n(t.mode.modeBits,4,d),n(t.numChars,t.mode.numCharCountBits(l),d);for(let e of t.getData())d.push(e)}let f=t.getNumDataCodewords(l,r)*8;n(0,Math.min(4,f-d.length),d),n(0,(8-d.length%8)%8,d);for(let e=236;d.lengthp[t>>>3]|=e<<7-(t&7)),new t(l,r,p,s)}constructor(e,n,r,i){if(this.version=e,this.errorCorrectionLevel=n,this.modules=[],this.isFunction=[],et.MAX_VERSION)throw RangeError(`Version value out of range`);if(i<-1||i>7)throw RangeError(`Mask value out of range`);this.size=e*4+17;let a=[];for(let e=0;e=0&&e=0&&t>>9)*1335;let i=(t<<10|n)^21522;for(let e=0;e<=5;e++)this.setFunctionModule(8,e,r(i,e));this.setFunctionModule(8,7,r(i,6)),this.setFunctionModule(8,8,r(i,7)),this.setFunctionModule(7,8,r(i,8));for(let e=9;e<15;e++)this.setFunctionModule(14-e,8,r(i,e));for(let e=0;e<8;e++)this.setFunctionModule(this.size-1-e,8,r(i,e));for(let e=8;e<15;e++)this.setFunctionModule(8,this.size-15+e,r(i,e));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let e=this.version;for(let t=0;t<12;t++)e=e<<1^(e>>>11)*7973;let t=this.version<<12|e;for(let e=0;e<18;e++){let n=r(t,e),i=this.size-11+e%3,a=Math.floor(e/3);this.setFunctionModule(i,a,n),this.setFunctionModule(a,i,n)}}drawFinderPattern(e,t){for(let n=-4;n<=4;n++)for(let r=-4;r<=4;r++){let i=Math.max(Math.abs(r),Math.abs(n)),a=e+r,o=t+n;a>=0&&a=0&&o{(e!==c-a||n>=s)&&d.push(t[e])});return d}drawCodewords(e){if(e.length!==Math.floor(t.getNumRawDataModules(this.version)/8))throw RangeError(`Invalid argument`);let n=0;for(let t=this.size-1;t>=1;t-=2){t===6&&(t=5);for(let i=0;i>>3],7-(n&7)),n++)}}}applyMask(e){if(e<0||e>7)throw RangeError(`Mask value out of range`);for(let t=0;t5&&e++):(this.finderPenaltyAddHistory(i,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[n][o],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,a)*t.PENALTY_N3}for(let n=0;n5&&e++):(this.finderPenaltyAddHistory(i,a),r||(e+=this.finderPenaltyCountPatterns(a)*t.PENALTY_N3),r=this.modules[o][n],i=1);e+=this.finderPenaltyTerminateAndCount(r,i,a)*t.PENALTY_N3}for(let n=0;ne+ +!!t,n);let r=this.size*this.size,i=Math.ceil(Math.abs(n*20-r*10)/r)-1;return e+=i*t.PENALTY_N4,e}getAlignmentPatternPositions(){if(this.version===1)return[];{let e=Math.floor(this.version/7)+2,t=this.version===32?26:Math.ceil((this.version*4+4)/(e*2-2))*2,n=[6];for(let r=this.size-7;n.lengtht.MAX_VERSION)throw RangeError(`Version number out of range`);let n=(16*e+128)*e+64;if(e>=2){let t=Math.floor(e/7)+2;n-=(25*t-10)*t-55,e>=7&&(n-=36)}return n}static getNumDataCodewords(e,n){return Math.floor(t.getNumRawDataModules(e)/8)-t.ECC_CODEWORDS_PER_BLOCK[n.ordinal][e]*t.NUM_ERROR_CORRECTION_BLOCKS[n.ordinal][e]}static reedSolomonComputeDivisor(e){if(e<1||e>255)throw RangeError(`Degree out of range`);let n=[];for(let t=0;t0);for(let i of e){let e=i^r.shift();r.push(0),n.forEach((n,i)=>r[i]^=t.reedSolomonMultiply(n,e))}return r}static reedSolomonMultiply(e,t){if(e>>>8||t>>>8)throw RangeError(`Byte out of range`);let n=0;for(let r=7;r>=0;r--)n=n<<1^(n>>>7)*285,n^=(t>>>r&1)*e;return n}finderPenaltyCountPatterns(e){let t=e[1],n=t>0&&e[2]===t&&e[3]===t*3&&e[4]===t&&e[5]===t;return(n&&e[0]>=t*4&&e[6]>=t?1:0)+(n&&e[6]>=t*4&&e[0]>=t?1:0)}finderPenaltyTerminateAndCount(e,t,n){return e&&(this.finderPenaltyAddHistory(t,n),t=0),t+=this.size,this.finderPenaltyAddHistory(t,n),this.finderPenaltyCountPatterns(n)}finderPenaltyAddHistory(e,t){t[0]===0&&(e+=this.size),t.pop(),t.unshift(e)}}t.MIN_VERSION=1,t.MAX_VERSION=40,t.PENALTY_N1=3,t.PENALTY_N2=3,t.PENALTY_N3=40,t.PENALTY_N4=10,t.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],t.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],e.QrCode=t;function n(e,t,n){if(t<0||t>31||e>>>t)throw RangeError(`Value out of range`);for(let r=t-1;r>=0;r--)n.push(e>>>r&1)}function r(e,t){return(e>>>t&1)!=0}class i{static makeBytes(e){let t=[];for(let r of e)n(r,8,t);return new i(i.Mode.BYTE,e.length,t)}static makeNumeric(e){if(!i.isNumeric(e))throw RangeError(`String contains non-numeric characters`);let t=[];for(let r=0;r=1<n(`svg`,{viewBox:`0 0 512 512`},n(`path`,{d:`M394 480a16 16 0 01-9.39-3L256 383.76 127.39 477a16 16 0 01-24.55-18.08L153 310.35 23 221.2a16 16 0 019-29.2h160.38l48.4-148.95a16 16 0 0130.44 0l48.4 149H480a16 16 0 019.05 29.2L359 310.35l50.13 148.53A16 16 0 01394 480z`})),w=d(`rate`,{display:`inline-flex`,flexWrap:`nowrap`},[h(`&:hover`,[l(`item`,` +import{H as e,Jt as t,Mt as n,U as r,_n as i,at as a,bt as o,d as s,hn as c,it as l,kt as u,nt as d,ot as f,p,st as m,tt as h}from"./client-CREJv8AD.js";import{t as g}from"./use-merged-state-B6hyXujy.js";import{c as _,s as v}from"./_plugin-vue_export-helper-BkfvhliL.js";import{n as y}from"./use-form-item-CbDeFP5E.js";import{G as b}from"./index-DZpFhWFx.js";function x(e){let{railColor:t}=e;return{itemColor:t,itemColorActive:`#FFCC33`,sizeSmall:`16px`,sizeMedium:`20px`,sizeLarge:`24px`}}var S={name:`Rate`,common:s,self:x},C=()=>n(`svg`,{viewBox:`0 0 512 512`},n(`path`,{d:`M394 480a16 16 0 01-9.39-3L256 383.76 127.39 477a16 16 0 01-24.55-18.08L153 310.35 23 221.2a16 16 0 019-29.2h160.38l48.4-148.95a16 16 0 0130.44 0l48.4 149H480a16 16 0 019.05 29.2L359 310.35l50.13 148.53A16 16 0 01394 480z`})),w=d(`rate`,{display:`inline-flex`,flexWrap:`nowrap`},[h(`&:hover`,[l(`item`,` transition: transform .1s var(--n-bezier), color .3s var(--n-bezier); diff --git a/frontend/dist/assets/ReviewsView-DzoPF-21.js b/frontend/dist/assets/ReviewsView-H3v1Qjq_.js similarity index 85% rename from frontend/dist/assets/ReviewsView-DzoPF-21.js rename to frontend/dist/assets/ReviewsView-H3v1Qjq_.js index 84c4cc5..730c242 100644 --- a/frontend/dist/assets/ReviewsView-DzoPF-21.js +++ b/frontend/dist/assets/ReviewsView-H3v1Qjq_.js @@ -1 +1 @@ -import{Ct as e,Dt as t,Jt as n,Kt as r,Ln as i,Ot as a,St as o,hn as s,ht as c,in as l,kt as u,wt as d,xt as f,yn as p}from"./client-vZFx54yb.js";import{t as m}from"./Card-DO3oxl4F.js";import{n as h,r as g}from"./es-DSPBzgpf.js";import{t as _}from"./Button-Bx9JIj0e.js";import{t as v}from"./_plugin-vue_export-helper-FodinAjS.js";import{t as y}from"./Flex-CjWQ3AmY.js";import{t as b}from"./Rate-DGhiVNSc.js";import{n as x}from"./index-Ci0r-yTA.js";import{t as S}from"./HeaderMenu-CoWgnRN4.js";var C={class:`center-block-custom`},w={class:`width1200`},T={class:`page-header`},E={class:`review-game`},D={class:`review-text`},O=v(u({__name:`ReviewsPage`,setup(u){let v=x(),O=h(),k=s([]);async function A(){try{let e=await v.GetReviewsForModeration({});k.value=e.reviews||[]}catch(e){O.error(e instanceof Error?e.message:`Не удалось загрузить отзывы`)}}async function j(e,t){try{await v.ModerateGameReview({ID:e.ID,status:t}),await A()}catch(e){O.error(e instanceof Error?e.message:`Не удалось изменить отзыв`)}}return A(),(s,u)=>(r(),d(c,null,[f(`div`,C,[f(`div`,w,[f(`div`,T,[u[1]||=f(`h1`,null,`Отзывы`,-1),a(p(_),{onClick:A},{default:l(()=>[...u[0]||=[t(`Обновить`,-1)]]),_:1})]),k.value.length==0?(r(),o(p(m),{key:0},{default:l(()=>[...u[2]||=[t(`Очередь отзывов пуста.`,-1)]]),_:1})):e(``,!0),(r(!0),d(c,null,n(k.value,n=>(r(),o(p(m),{key:n.ID,class:`review-card`},{default:l(()=>[a(p(y),{justify:`space-between`,align:`center`},{default:l(()=>[f(`div`,null,[f(`div`,E,i(n.gameName),1),f(`strong`,null,i(n.teamName),1)]),a(p(g),null,{default:l(()=>[t(i(n.status),1)]),_:2},1024)]),_:2},1024),a(p(b),{value:n.rating,readonly:``},null,8,[`value`]),f(`div`,null,`Сложность: `+i([``,`лёгкая`,`средняя`,`тяжёлая`][n.difficulty||0]),1),f(`p`,D,i(n.text),1),n.status==`pending`?(r(),o(p(y),{key:0,justify:`end`},{default:l(()=>[a(p(_),{type:`success`,onClick:e=>j(n,`approved`)},{default:l(()=>[...u[3]||=[t(`Одобрить`,-1)]]),_:1},8,[`onClick`]),a(p(_),{type:`error`,ghost:``,onClick:e=>j(n,`rejected`)},{default:l(()=>[...u[4]||=[t(`Отклонить`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):n.status==`approved`?(r(),o(p(y),{key:1,justify:`end`},{default:l(()=>[a(p(_),{type:`error`,ghost:``,onClick:e=>j(n,`hidden`)},{default:l(()=>[...u[5]||=[t(`Скрыть`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):e(``,!0)]),_:2},1024))),128))])]),a(S,{active:`reviews`})],64))}}),[[`__scopeId`,`data-v-0b64d5d0`]]),k=u({__name:`ReviewsView`,setup(e){return(e,t)=>(r(),o(O))}});export{k as default}; \ No newline at end of file +import{Ct as e,Dt as t,Jt as n,Kt as r,Ln as i,Ot as a,St as o,hn as s,ht as c,in as l,kt as u,wt as d,xt as f,yn as p}from"./client-CREJv8AD.js";import{t as m}from"./Card-CJC2gN5t.js";import{n as h,r as g}from"./es-CevmKZP_.js";import{t as _}from"./Button-MvNgQLzL.js";import{t as v}from"./_plugin-vue_export-helper-BkfvhliL.js";import{t as y}from"./Flex-B0ZjnZ3e.js";import{t as b}from"./Rate-BybamiWd.js";import{n as x}from"./index-DZpFhWFx.js";import{t as S}from"./HeaderMenu-BarRlY0P.js";var C={class:`center-block-custom`},w={class:`width1200`},T={class:`page-header`},E={class:`review-game`},D={class:`review-text`},O=v(u({__name:`ReviewsPage`,setup(u){let v=x(),O=h(),k=s([]);async function A(){try{let e=await v.GetReviewsForModeration({});k.value=e.reviews||[]}catch(e){O.error(e instanceof Error?e.message:`Не удалось загрузить отзывы`)}}async function j(e,t){try{await v.ModerateGameReview({ID:e.ID,status:t}),await A()}catch(e){O.error(e instanceof Error?e.message:`Не удалось изменить отзыв`)}}return A(),(s,u)=>(r(),d(c,null,[f(`div`,C,[f(`div`,w,[f(`div`,T,[u[1]||=f(`h1`,null,`Отзывы`,-1),a(p(_),{onClick:A},{default:l(()=>[...u[0]||=[t(`Обновить`,-1)]]),_:1})]),k.value.length==0?(r(),o(p(m),{key:0},{default:l(()=>[...u[2]||=[t(`Очередь отзывов пуста.`,-1)]]),_:1})):e(``,!0),(r(!0),d(c,null,n(k.value,n=>(r(),o(p(m),{key:n.ID,class:`review-card`},{default:l(()=>[a(p(y),{justify:`space-between`,align:`center`},{default:l(()=>[f(`div`,null,[f(`div`,E,i(n.gameName),1),f(`strong`,null,i(n.teamName),1)]),a(p(g),null,{default:l(()=>[t(i(n.status),1)]),_:2},1024)]),_:2},1024),a(p(b),{value:n.rating,readonly:``},null,8,[`value`]),f(`div`,null,`Сложность: `+i([``,`лёгкая`,`средняя`,`тяжёлая`][n.difficulty||0]),1),f(`p`,D,i(n.text),1),n.status==`pending`?(r(),o(p(y),{key:0,justify:`end`},{default:l(()=>[a(p(_),{type:`success`,onClick:e=>j(n,`approved`)},{default:l(()=>[...u[3]||=[t(`Одобрить`,-1)]]),_:1},8,[`onClick`]),a(p(_),{type:`error`,ghost:``,onClick:e=>j(n,`rejected`)},{default:l(()=>[...u[4]||=[t(`Отклонить`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):n.status==`approved`?(r(),o(p(y),{key:1,justify:`end`},{default:l(()=>[a(p(_),{type:`error`,ghost:``,onClick:e=>j(n,`hidden`)},{default:l(()=>[...u[5]||=[t(`Скрыть`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):e(``,!0)]),_:2},1024))),128))])]),a(S,{active:`reviews`})],64))}}),[[`__scopeId`,`data-v-0b64d5d0`]]),k=u({__name:`ReviewsView`,setup(e){return(e,t)=>(r(),o(O))}});export{k as default}; \ No newline at end of file diff --git a/frontend/dist/assets/ScenarioView-w4z13Q1-.js b/frontend/dist/assets/ScenarioView-BhGQzLNp.js similarity index 91% rename from frontend/dist/assets/ScenarioView-w4z13Q1-.js rename to frontend/dist/assets/ScenarioView-BhGQzLNp.js index 83b7971..60399f6 100644 --- a/frontend/dist/assets/ScenarioView-w4z13Q1-.js +++ b/frontend/dist/assets/ScenarioView-BhGQzLNp.js @@ -1 +1 @@ -import{Ct as e,Dt as t,Jt as n,Kt as r,Ln as i,Ot as a,St as o,hn as s,ht as c,in as l,kt as u,l as d,wt as f,xt as p,yn as m}from"./client-vZFx54yb.js";import{n as h,r as g}from"./es-DSPBzgpf.js";import{t as _}from"./_plugin-vue_export-helper-FodinAjS.js";import{t as v}from"./Rate-DGhiVNSc.js";import{n as y}from"./index-Ci0r-yTA.js";import{t as b}from"./HeaderMenu-CoWgnRN4.js";var x={class:`center-block-custom`},S={class:`width700`},C={class:`scenario-card`},w={class:`scenario-heading`},T={class:`scenario-title`},E={class:`scenario-image-frame`},D=[`src`,`alt`],O={class:`scenario-details`},k={class:`scenario-description`},A={class:`scenario-rating`},j={key:1},M={key:2},N={key:0,class:`scenario-difficulty`},P={class:`scenario-author`},F={key:1,class:`reviews-section`},I={class:`review-heading`},L={class:`review-game`},R={class:`review-text`},z=_(u({__name:`ScenarioPage`,setup(u){let _=h(),z=y(),B=d().params.id,V=s([]),H=s({ID:void 0,name:void 0,story:void 0,author:void 0,status:void 0,updatedAt:void 0,createdAt:void 0,publishedAt:void 0,averageRating:void 0,reviewsCount:void 0,difficulty:void 0});async function U(e){try{let t=await z.GetScenario({ID:e});H.value=t.scenario}catch(e){_.error(e instanceof Error?e.message:`Не удалось загрузить сценарий`)}}U(Number(B));async function W(e){try{let t=await z.GetScenarioReviews({scenarioID:e});V.value=t.reviews||[]}catch(e){_.error(e instanceof Error?e.message:`Не удалось загрузить отзывы`)}}return W(Number(B)),(s,u)=>(r(),f(c,null,[p(`div`,x,[p(`div`,S,[p(`section`,C,[p(`div`,w,[u[0]||=p(`p`,{class:`scenario-kicker`},`ДЕЛО ИЗ КАТАЛОГА`,-1),p(`h1`,T,i(H.value.name),1)]),p(`div`,E,[p(`img`,{class:`scenario-image`,src:H.value.image,alt:H.value.name},null,8,D)]),p(`div`,O,[p(`p`,k,i(H.value.description),1),p(`div`,A,[H.value.reviewsCount?(r(),o(m(v),{key:0,value:H.value.averageRating,readonly:``,"allow-half":``,size:`small`},null,8,[`value`])):e(``,!0),H.value.reviewsCount?(r(),f(`span`,j,i(H.value.averageRating?.toFixed(1))+` · `+i(H.value.reviewsCount)+` отзывов`,1)):(r(),f(`span`,M,`Пока нет оценок`))]),H.value.difficulty?(r(),f(`div`,N,`Сложность: `+i(H.value.difficulty),1)):e(``,!0),p(`div`,P,[a(m(g),{bordered:!1,type:`success`,class:`status-block`},{default:l(()=>[t(` Автор: `+i(H.value.author?.username),1)]),_:1})]),V.value.length?(r(),f(`section`,F,[u[1]||=p(`h2`,{class:`reviews-title`},`Отзывы команд`,-1),(r(!0),f(c,null,n(V.value,e=>(r(),f(`article`,{key:e.ID,class:`review-card`},[p(`div`,I,[p(`strong`,null,i(e.teamName),1),a(m(v),{value:e.rating,readonly:``,size:`small`},null,8,[`value`])]),p(`div`,null,`Сложность: `+i([``,`лёгкая`,`средняя`,`тяжёлая`][e.difficulty||0]),1),p(`div`,L,i(e.gameName),1),p(`p`,R,i(e.text),1)]))),128))])):e(``,!0)])])])]),a(b,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-fd1f9c93`]]),B=u({__name:`ScenarioView`,setup(e){return(e,t)=>(r(),o(z))}});export{B as default}; \ No newline at end of file +import{Ct as e,Dt as t,Jt as n,Kt as r,Ln as i,Ot as a,St as o,hn as s,ht as c,in as l,kt as u,l as d,wt as f,xt as p,yn as m}from"./client-CREJv8AD.js";import{n as h,r as g}from"./es-CevmKZP_.js";import{t as _}from"./_plugin-vue_export-helper-BkfvhliL.js";import{t as v}from"./Rate-BybamiWd.js";import{n as y}from"./index-DZpFhWFx.js";import{t as b}from"./HeaderMenu-BarRlY0P.js";var x={class:`center-block-custom`},S={class:`width700`},C={class:`scenario-card`},w={class:`scenario-heading`},T={class:`scenario-title`},E={class:`scenario-image-frame`},D=[`src`,`alt`],O={class:`scenario-details`},k={class:`scenario-description`},A={class:`scenario-rating`},j={key:1},M={key:2},N={key:0,class:`scenario-difficulty`},P={class:`scenario-author`},F={key:1,class:`reviews-section`},I={class:`review-heading`},L={class:`review-game`},R={class:`review-text`},z=_(u({__name:`ScenarioPage`,setup(u){let _=h(),z=y(),B=d().params.id,V=s([]),H=s({ID:void 0,name:void 0,story:void 0,author:void 0,status:void 0,updatedAt:void 0,createdAt:void 0,publishedAt:void 0,averageRating:void 0,reviewsCount:void 0,difficulty:void 0});async function U(e){try{let t=await z.GetScenario({ID:e});H.value=t.scenario}catch(e){_.error(e instanceof Error?e.message:`Не удалось загрузить сценарий`)}}U(Number(B));async function W(e){try{let t=await z.GetScenarioReviews({scenarioID:e});V.value=t.reviews||[]}catch(e){_.error(e instanceof Error?e.message:`Не удалось загрузить отзывы`)}}return W(Number(B)),(s,u)=>(r(),f(c,null,[p(`div`,x,[p(`div`,S,[p(`section`,C,[p(`div`,w,[u[0]||=p(`p`,{class:`scenario-kicker`},`ДЕЛО ИЗ КАТАЛОГА`,-1),p(`h1`,T,i(H.value.name),1)]),p(`div`,E,[p(`img`,{class:`scenario-image`,src:H.value.image,alt:H.value.name},null,8,D)]),p(`div`,O,[p(`p`,k,i(H.value.description),1),p(`div`,A,[H.value.reviewsCount?(r(),o(m(v),{key:0,value:H.value.averageRating,readonly:``,"allow-half":``,size:`small`},null,8,[`value`])):e(``,!0),H.value.reviewsCount?(r(),f(`span`,j,i(H.value.averageRating?.toFixed(1))+` · `+i(H.value.reviewsCount)+` отзывов`,1)):(r(),f(`span`,M,`Пока нет оценок`))]),H.value.difficulty?(r(),f(`div`,N,`Сложность: `+i(H.value.difficulty),1)):e(``,!0),p(`div`,P,[a(m(g),{bordered:!1,type:`success`,class:`status-block`},{default:l(()=>[t(` Автор: `+i(H.value.author?.username),1)]),_:1})]),V.value.length?(r(),f(`section`,F,[u[1]||=p(`h2`,{class:`reviews-title`},`Отзывы команд`,-1),(r(!0),f(c,null,n(V.value,e=>(r(),f(`article`,{key:e.ID,class:`review-card`},[p(`div`,I,[p(`strong`,null,i(e.teamName),1),a(m(v),{value:e.rating,readonly:``,size:`small`},null,8,[`value`])]),p(`div`,null,`Сложность: `+i([``,`лёгкая`,`средняя`,`тяжёлая`][e.difficulty||0]),1),p(`div`,L,i(e.gameName),1),p(`p`,R,i(e.text),1)]))),128))])):e(``,!0)])])])]),a(b,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-fd1f9c93`]]),B=u({__name:`ScenarioView`,setup(e){return(e,t)=>(r(),o(z))}});export{B as default}; \ No newline at end of file diff --git a/frontend/dist/assets/ScenariosEditorView-CCW0u0oN.js b/frontend/dist/assets/ScenariosEditorView-Ckw1jh0g.js similarity index 96% rename from frontend/dist/assets/ScenariosEditorView-CCW0u0oN.js rename to frontend/dist/assets/ScenariosEditorView-Ckw1jh0g.js index 20cc568..5682c58 100644 --- a/frontend/dist/assets/ScenariosEditorView-CCW0u0oN.js +++ b/frontend/dist/assets/ScenariosEditorView-Ckw1jh0g.js @@ -1 +1 @@ -import{Ct as e,Dt as t,Jt as n,Kt as r,Ln as i,Ot as a,St as o,Yt as ee,bt as s,hn as c,ht as l,in as u,kt as d,l as te,wt as f,xt as p,yn as m}from"./client-vZFx54yb.js";import{t as h}from"./Card-DO3oxl4F.js";import{n as g,r as ne,t as re}from"./es-DSPBzgpf.js";import{t as ie}from"./Modal-XDlBuRmh.js";import{t as _}from"./Button-Bx9JIj0e.js";import{t as ae}from"./Select-BDMkhuNb.js";import{t as v}from"./_plugin-vue_export-helper-FodinAjS.js";import{n as oe,r as y,t as b}from"./Upload-B6W9RuvF.js";import{n as se,r as x,t as ce}from"./PlaceBlock-h6Syh7Mw.js";import{t as S}from"./Input-D7YePN-E.js";import{t as le}from"./Alert-aZxDGAB-.js";import{t as C}from"./Space-BBIv_CVW.js";import{t as w}from"./Flex-CjWQ3AmY.js";import{i as ue,n as de,t as fe}from"./index-Ci0r-yTA.js";import{t as pe}from"./HeaderMenu-CoWgnRN4.js";import{t as me}from"./binary_client-B2m6lbs2.js";import{r as he}from"./application-BR-GaUH8.js";var T={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},ge=d({name:`Settings`,render:function(e,t){return r(),f(`svg`,T,t[0]||=[p(`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),p(`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)])}}),E={key:1,class:`place-block`},D={class:`message-header`},O={class:`message-content`},k={key:0},A={class:`correct-answer`},j={key:1,class:`intro-empty`},M={key:3,class:`place-block`},N={class:`slot-block`},_e=v(d({__name:`QuestionBlock`,props:{newQuestionCode:{},newQuestionText:{},newQuestionAnswer:{},question:{},mode:{}},emits:[`update:newQuestionCode`,`update:newQuestionText`,`update:newQuestionAnswer`,`update:mode`],setup(n,{emit:o}){let s=n,c=o,d=e=>{c(`update:newQuestionCode`,e)},te=e=>{c(`update:newQuestionText`,e)},h=e=>{c(`update:newQuestionAnswer`,e)},g=e=>{c(`update:mode`,e)};return(o,c)=>(r(),f(l,null,[n.mode==`mini-add`?(r(),f(`div`,{key:0,class:`place-block-hover show-editor-block`,onClick:c[0]||=e=>g(`add`)},[...c[5]||=[p(`p`,{class:`place-image-plus`},`+`,-1)]])):e(``,!0),n.mode==`add`?(r(),f(`div`,E,[a(m(C),{vertical:``},{default:u(()=>[a(m(x),null,{default:u(()=>[a(m(S),{style:{width:`25%`},value:n.newQuestionCode,"onUpdate:value":d,type:`text`,placeholder:`В-1`},null,8,[`value`]),a(m(S),{style:{width:`75%`},value:n.newQuestionText,"onUpdate:value":te,type:`text`,placeholder:`Кто украл пастуха?`},null,8,[`value`])]),_:1}),a(m(S),{value:n.newQuestionAnswer,"onUpdate:value":h,type:`textarea`,autosize:{minRows:2},placeholder:`Правильный ответ (виден только автору и организаторам)`},null,8,[`value`]),ee(o.$slots,`default`,{},void 0,!0)]),_:3})])):e(``,!0),n.mode==`show-editor`?(r(),f(`div`,{key:2,class:`place-block-hover show-editor-block`,onClick:c[1]||=e=>g(`edit`)},[p(`div`,D,i(s.question?.code)+`: `+i(s.question?.text),1),c[8]||=p(`hr`,{class:`hr`},null,-1),p(`div`,O,[s.question?.answer?(r(),f(`span`,k,[c[6]||=t(` Ответ:`,-1),c[7]||=p(`br`,null,null,-1),p(`span`,A,i(s.question.answer),1)])):(r(),f(`span`,j,`Ответ не задан`))])])):e(``,!0),n.mode==`edit`?(r(),f(`div`,M,[a(m(C),{vertical:``},{default:u(()=>[a(m(x),null,{default:u(()=>[a(m(S),{style:{width:`25%`},value:s.question.code,"onUpdate:value":c[2]||=e=>s.question.code=e,type:`text`,placeholder:`В-1`},null,8,[`value`]),a(m(S),{style:{width:`75%`},value:s.question.text,"onUpdate:value":c[3]||=e=>s.question.text=e,type:`text`,placeholder:`Кто украл пастуха?`},null,8,[`value`])]),_:1}),c[10]||=p(`p`,{class:`settings-header`},`Правильный ответ`,-1),a(m(S),{value:s.question.answer,"onUpdate:value":c[4]||=e=>s.question.answer=e,type:`textarea`,autosize:{minRows:2},placeholder:`Правильный ответ (виден только автору и организаторам)`},null,8,[`value`]),a(m(y),{class:`hint`,depth:`3`},{default:u(()=>[...c[9]||=[t(` Смена кода вопроса не переносит ответы команд, отправленные под старым кодом. `,-1)]]),_:1}),p(`div`,N,[ee(o.$slots,`default`,{},void 0,!0)])]),_:3})])):e(``,!0)],64))}}),[[`__scopeId`,`data-v-b506c9f9`]]),ve={class:`width700`},ye={class:`places-container`},be={class:`settings-block`},xe=[`src`],Se=[`src`],Ce=[`aria-label`],P=v(d({__name:`ScenariosEditorPage`,setup(ee){let d=fe(),v=de(),x=me(),T=te().params.id,E=c(!1),D=c(``),O=c(``),k=c(!1),A=g(),j=c([]),M=c({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}),N=c([]),P=c(!1),F=c({text:``,audio:``}),I=c(`show-editor`),L=c({text:``,video:``}),R=c([]),z=c(!1),we=s(()=>he(L.value.video)),Te=c([]),B=c(null);function V(){L.value={text:``,video:``,...M.value.story?.conclusion},R.value=[]}function Ee(){L.value.video=``,R.value=[]}async function H(e=!1){z.value=!0;try{let t=Qe(L.value.video);if(!e&&R.value.length){let e=R.value[0].file;if(!e)return;let n=await G(e,`scenarios_`+M.value.ID+`_conclusion_`+e.name);if(!n.filename)return;if(n.fileType!==`video`){A.error(`Закрывашка должна содержать видео MP4 или WebM`);return}t=n.filename}let n=e?{text:``,video:``}:{text:L.value.text,video:t};await v.UpdateScenarioConclusion({ID:M.value.ID,conclusion:n}),M.value.story.conclusion=n,V(),A.success(e?`Закрывашка удалена`:`Закрывашка сохранена`)}catch{A.error(`Не удалось сохранить закрывашку`)}finally{z.value=!1}}let De=s(()=>M.value.story?.places||[]),Oe=c(null),U=new Map;function ke(e){let t=e?De.value.find(t=>(t.oldCode??t.code)===e):void 0,n=t&&U.get(t),r=Oe.value;if(!n||!r){A.error(e?`Точка «${e}» не найдена`:`У действия не указан код точки`);return}n.focus({preventScroll:!0}),r.scrollTo({top:r.scrollTop+n.getBoundingClientRect().top-r.getBoundingClientRect().top-10,behavior:`smooth`})}let Ae=s(()=>M.value.story?.questions||[]);async function W(e){let t=await v.GetFullScenario({ID:e});M.value=t.scenario,B.value=M.value.music_playlist_id||null,V(),M.value.story?.places?.forEach(e=>{let t=e;t.oldCode=t.code,t.mode=`show-editor`}),M.value.story?.questions?.forEach(e=>{let t=e;t.oldCode=t.code,t.mode=`show-editor`}),F.value=M.value.story?.introduction||{text:``,audio:``},I.value=`show-editor`}W(Number(T));async function je(){try{let e=await v.GetPlaylists({});Te.value=e.playlists||[]}catch(e){A.error(e instanceof Error?e.message:`Не удалось загрузить плейлисты`)}}je();async function Me(e){try{await v.SetScenarioPlaylist({ID:Number(T),playlistID:e||0}),A.success(`Плейлист сценария сохранён`)}catch(e){A.error(e instanceof Error?e.message:`Не удалось сохранить плейлист`)}}async function Ne(e){await v.DeleteScenario({ID:e}),ue.push(`/scenarios`)}async function Pe(e){await v.PublicScenario({ID:e}),await W(Number(T)),D.value=``,E.value=!1}async function Fe(e,t){let n=new Date().toISOString(),r=await v.AddGame({name:(`Тестовая игра: `+e).trim(),description:`Тестовая игра`,location:``,format:`online`,startAt:n,scenarioID:t}),i=await v.AddTeam({name:`Тестовая команда`,captainEmail:``,gameID:r.ID,participantsCount:void 0});ue.push(`/team-story/`+i.ID+`?password=`+i.password)}async function Ie(e){await v.DraftScenario({ID:e}),await W(Number(T)),D.value=``,E.value=!1}async function Le(){k.value=!0;try{let{blob:e,filename:t}=await x.downloadScenarioArchive(M.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),A.success(`Архив сценария скачан`)}catch(e){A.error(e instanceof Error?e.message:`Не удалось скачать архив`)}finally{k.value=!1}}async function G(e,t){if(!e)return{filename:``,fileType:``};let n=await e.arrayBuffer(),r=new Uint8Array(n),i=await v.UploadFile({filename:t,data:ze(r)});return{filename:i.filename||``,fileType:i.file_type||``}}async function Re(){let e=``;if(j.value&&j.value.length>0){let t=j.value[0].file||null;if(t==null)return;let n=await G(t,`scenarios_`+M.value.ID+`_`+t.name);if(n.filename===``)return;e=n.filename}await v.UpdateScenario({ID:M.value.ID,name:M.value.name,description:M.value.description,image:e}),await W(Number(T)),E.value=!1}function ze(e){let t=Be(e);return btoa(t)}function Be(e){let t=``;for(let n=0;ne.code==n.code)??await v.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 We(e){await W(Number(T)),e.mode=`show-editor`}async function Ge(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_`+M.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_`+M.value.ID+`_place_`+e.code+`_app_`+t.name);if(r.filename===``)return;n.image=r.filename,n.file_type=r.fileType}await Ue(M.value,e),await v.UpdateScenarioPlace({ID:M.value.ID,code:e.oldCode,place:e}),await W(Number(T)),e.mode=`show-editor`}async function Ke(e){await v.DeleteScenarioPlace({ID:M.value.ID,code:e.oldCode}),await W(Number(T))}let X=c(``),Z=c(``),Q=c(``),$=c(`mini-add`);async function qe(){await v.AddScenarioQuestion({ID:M.value.ID,question:{code:X.value,text:Z.value,answer:Q.value}}),await W(Number(T)),X.value=``,Z.value=``,Q.value=``,$.value=`add`}async function Je(){X.value=``,Z.value=``,Q.value=``,$.value=`mini-add`}async function Ye(e){await v.UpdateScenarioQuestion({ID:M.value.ID,code:e.oldCode,question:{code:e.code,text:e.text,answer:e.answer}}),await W(Number(T)),e.mode=`show-editor`}async function Xe(e){await W(Number(T)),e.mode=`show-editor`}async function Ze(e){await v.DeleteScenarioQuestion({ID:M.value.ID,code:e.oldCode}),await W(Number(T))}function Qe(e){return e&&e.split(`/`).pop()||``}async function $e(){let e=``;if(F.value.fileList&&F.value.fileList.length>0){let t=F.value.fileList[0].file||null;if(t==null||(e=(await G(t,`scenarios_`+M.value.ID+`_intro_`+t.name)).filename,e===``))return}else e=Qe(F.value.audio);await v.UpdateScenarioIntro({ID:M.value.ID,introduction:{text:F.value.text,audio:e}}),await W(Number(T))}async function et(e=!1){P.value=!0;try{let t=``;if(!e){let e=N.value[0]?.file;if(!e)return;let n=await G(e,`scenarios_`+M.value.ID+`_background_`+e.name);if(!n.filename)return;if(n.fileType!==`image`){A.error(`Фон дела должен быть изображением`);return}t=n.filename}await v.UpdateScenarioBackground({ID:M.value.ID,background:t}),await W(Number(T)),N.value=[]}catch{A.error(`Не удалось сохранить фон дела`)}finally{P.value=!1}}async function tt(){await W(Number(T))}function nt(){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(ee,s)=>(r(),f(l,null,[p(`div`,{ref_key:`scrollContainer`,ref:Oe,class:`center-block-custom`},[p(`div`,ve,[p(`div`,ye,[M.value.status==`public`?(r(),o(m(le),{key:0,title:`Сценарий опубликован`,type:`warning`,style:{"margin-bottom":`20px`}},{default:u(()=>[...s[40]||=[t(` Не рекомендуется редактировать сценарий когда он опубликован. `,-1)]]),_:1})):e(``,!0),m(d).user?.ID==2?(r(),o(m(le),{key:1,title:nt(),type:`info`,style:{"margin-bottom":`20px`}},null,8,[`title`])):e(``,!0),p(`div`,be,[t(` Точек: `+i(M.value.story?.places?.length)+`, Вопросов: `+i(M.value.story?.questions?.length)+` `,1),a(m(_),{quaternary:``,onClick:s[0]||=e=>E.value=!0,class:`settings-button`},{default:u(()=>[a(m(re),{class:`settings-icon`},{default:u(()=>[a(m(ge))]),_:1}),s[41]||=t(` Настройки `,-1)]),_:1})]),a(m(h),{title:`Музыка сценария`},{default:u(()=>[a(m(ae),{value:B.value,"onUpdate:value":[s[1]||=e=>B.value=e,Me],options:Te.value.map(e=>({label:e.name,value:e.ID})),clearable:``,placeholder:`Плейлист по умолчанию`},null,8,[`value`,`options`])]),_:1}),a(m(h),{title:`Фон дела`},{default:u(()=>[a(m(C),{vertical:``},{default:u(()=>[M.value.story?.background?(r(),f(`img`,{key:0,src:M.value.story.background,alt:`Фон дела`,class:`background-preview`},null,8,xe)):e(``,!0),a(m(b),{"file-list":N.value,"onUpdate:fileList":s[2]||=e=>N.value=e,accept:`.jpg,.jpeg,.png,.gif,.webp`,max:1,"default-upload":!1,disabled:P.value},{default:u(()=>[a(m(_),{disabled:P.value},{default:u(()=>[...s[42]||=[t(`Выбрать фон`,-1)]]),_:1},8,[`disabled`])]),_:1},8,[`file-list`,`disabled`]),a(m(w),null,{default:u(()=>[a(m(_),{loading:P.value,disabled:!N.value.length||P.value,onClick:s[3]||=e=>et()},{default:u(()=>[...s[43]||=[t(`Сохранить фон`,-1)]]),_:1},8,[`loading`,`disabled`]),M.value.story?.background?(r(),o(m(_),{key:0,disabled:P.value,onClick:s[4]||=e=>et(!0)},{default:u(()=>[...s[44]||=[t(`Удалить фон`,-1)]]),_:1},8,[`disabled`])):e(``,!0)]),_:1})]),_:1})]),_:1}),a(se,{introduction:F.value,mode:I.value,"onUpdate:mode":s[7]||=e=>I.value=e},{default:u(()=>[a(m(w),{justify:`end`},{default:u(()=>[a(m(_),{onClick:s[5]||=e=>tt()},{default:u(()=>[...s[45]||=[t(`Отмена`,-1)]]),_:1}),a(m(_),{onClick:s[6]||=e=>$e()},{default:u(()=>[...s[46]||=[t(`Сохранить вступление`,-1)]]),_:1})]),_:1})]),_:1},8,[`introduction`,`mode`]),a(m(h),{title:`Закрывашка сценария`},{default:u(()=>[a(m(C),{vertical:``},{default:u(()=>[a(m(y),{depth:`3`},{default:u(()=>[...s[47]||=[t(`Разгадка дела для автора. Игрокам не показывается.`,-1)]]),_:1}),a(m(S),{value:L.value.text,"onUpdate:value":s[8]||=e=>L.value.text=e,type:`textarea`,autosize:{minRows:4,maxRows:12},placeholder:`Текст закрывашки`,"aria-label":`Текст закрывашки`,disabled:z.value},null,8,[`value`,`disabled`]),we.value?(r(),f(`video`,{key:0,src:we.value,controls:``,preload:`none`,class:`conclusion-video`,"aria-label":`Видео закрывашки`},null,8,Se)):e(``,!0),L.value.video?(r(),o(m(_),{key:1,disabled:z.value,onClick:s[9]||=e=>Ee()},{default:u(()=>[...s[48]||=[t(`Убрать видео`,-1)]]),_:1},8,[`disabled`])):e(``,!0),a(m(b),{"file-list":R.value,"onUpdate:fileList":s[10]||=e=>R.value=e,accept:`.mp4,.webm`,max:1,"default-upload":!1,disabled:z.value},{default:u(()=>[a(m(_),{disabled:z.value},{default:u(()=>[...s[49]||=[t(`Выбрать видео MP4/WebM`,-1)]]),_:1},8,[`disabled`])]),_:1},8,[`file-list`,`disabled`]),a(m(w),{justify:`end`},{default:u(()=>[M.value.story?.conclusion?.text||M.value.story?.conclusion?.video?(r(),o(m(_),{key:0,disabled:z.value,onClick:s[11]||=e=>H(!0)},{default:u(()=>[...s[50]||=[t(`Удалить закрывашку`,-1)]]),_:1},8,[`disabled`])):e(``,!0),a(m(_),{disabled:z.value,onClick:s[12]||=e=>V()},{default:u(()=>[...s[51]||=[t(`Отмена`,-1)]]),_:1},8,[`disabled`]),a(m(_),{loading:z.value,disabled:z.value||!M.value.story,onClick:s[13]||=e=>H()},{default:u(()=>[...s[52]||=[t(`Сохранить закрывашку`,-1)]]),_:1},8,[`loading`,`disabled`])]),_:1})]),_:1})]),_:1}),s[63]||=p(`div`,{class:`questions-header`},`Вопросы дела`,-1),a(_e,{mode:$.value,"onUpdate:mode":s[16]||=e=>$.value=e,newQuestionCode:X.value,"onUpdate:newQuestionCode":s[17]||=e=>X.value=e,newQuestionText:Z.value,"onUpdate:newQuestionText":s[18]||=e=>Z.value=e,newQuestionAnswer:Q.value,"onUpdate:newQuestionAnswer":s[19]||=e=>Q.value=e},{default:u(()=>[a(m(w),{justify:`end`},{default:u(()=>[a(m(_),{onClick:s[14]||=e=>Je()},{default:u(()=>[...s[53]||=[t(`Отмена`,-1)]]),_:1}),a(m(_),{onClick:s[15]||=e=>qe(),disabled:!X.value},{default:u(()=>[...s[54]||=[t(`Добавить вопрос`,-1)]]),_:1},8,[`disabled`])]),_:1})]),_:1},8,[`mode`,`newQuestionCode`,`newQuestionText`,`newQuestionAnswer`]),(r(!0),f(l,null,n(Ae.value,e=>(r(),o(_e,{question:e,mode:e.mode,"onUpdate:mode":t=>e.mode=t,key:e.oldCode??e.code??``},{default:u(()=>[a(m(w),{justify:`end`},{default:u(()=>[a(m(_),{onClick:t=>Ze(e),type:`error`,ghost:``},{default:u(()=>[...s[55]||=[t(`Удалить`,-1)]]),_:1},8,[`onClick`]),a(m(_),{onClick:t=>Xe(e)},{default:u(()=>[...s[56]||=[t(`Отмена`,-1)]]),_:1},8,[`onClick`]),a(m(_),{onClick:t=>Ye(e),disabled:e.code==``},{default:u(()=>[...s[57]||=[t(`Сохранить`,-1)]]),_:1},8,[`onClick`,`disabled`])]),_:2},1024)]),_:2},1032,[`question`,`mode`,`onUpdate:mode`]))),128)),a(ce,{mode:Y.value,"onUpdate:mode":s[22]||=e=>Y.value=e,newPlaceCode:K.value,"onUpdate:newPlaceCode":s[23]||=e=>K.value=e,newPlaceName:q.value,"onUpdate:newPlaceName":s[24]||=e=>q.value=e,newPlaceText:J.value,"onUpdate:newPlaceText":s[25]||=e=>J.value=e},{default:u(()=>[a(m(w),{justify:`end`},{default:u(()=>[a(m(_),{onClick:s[20]||=e=>He()},{default:u(()=>[...s[58]||=[t(`Отмена`,-1)]]),_:1}),a(m(_),{onClick:s[21]||=e=>Ve(),disabled:!K.value},{default:u(()=>[...s[59]||=[t(`Добавить точку`,-1)]]),_:1},8,[`disabled`])]),_:1})]),_:1},8,[`mode`,`newPlaceCode`,`newPlaceName`,`newPlaceText`]),(r(!0),f(l,null,n(De.value,e=>(r(),f(`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}`},[a(ce,{place:e,mode:e.mode,"onUpdate:mode":t=>e.mode=t,onNavigate:ke},{default:u(()=>[a(m(w),{justify:`end`},{default:u(()=>[a(m(_),{onClick:t=>Ke(e),type:`error`,ghost:``},{default:u(()=>[...s[60]||=[t(`Удалить`,-1)]]),_:1},8,[`onClick`]),a(m(_),{onClick:t=>We(e)},{default:u(()=>[...s[61]||=[t(`Отмена`,-1)]]),_:1},8,[`onClick`]),a(m(_),{onClick:t=>Ge(e),disabled:e.code==``},{default:u(()=>[...s[62]||=[t(`Сохранить`,-1)]]),_:1},8,[`onClick`,`disabled`])]),_:2},1024)]),_:2},1032,[`place`,`mode`,`onUpdate:mode`])],8,Ce))),128))])])],512),a(m(ie),{show:E.value,"onUpdate:show":s[39]||=e=>E.value=e},{default:u(()=>[a(m(h),{style:{width:`600px`},title:`Настройки сценария`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":u(()=>[a(m(_),{onClick:s[26]||=e=>E.value=!1},{default:u(()=>[...s[64]||=[t(` x `,-1)]]),_:1})]),footer:u(()=>[...s[88]||=[]]),default:u(()=>[a(m(C),{vertical:``},{default:u(()=>[s[77]||=p(`p`,null,`Название`,-1),a(m(S),{value:M.value.name,"onUpdate:value":s[27]||=e=>M.value.name=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`]),s[78]||=p(`p`,{class:`settings-header`},`Описание`,-1),a(m(S),{value:M.value.description,"onUpdate:value":s[28]||=e=>M.value.description=e,type:`textarea`,placeholder:`Убийство пастуха...`},null,8,[`value`]),s[79]||=p(`p`,{class:`settings-header`},`Картинка`,-1),a(m(S),{value:M.value.image,"onUpdate:value":s[29]||=e=>M.value.image=e,type:`text`,placeholder:`default_scenario.png`,disabled:``},null,8,[`value`]),a(m(b),{"directory-dnd":``,max:1,"file-list":j.value,"onUpdate:fileList":s[30]||=e=>j.value=e},{default:u(()=>[a(m(oe),null,{default:u(()=>[a(m(y),{style:{"font-size":`16px`}},{default:u(()=>[...s[65]||=[t(` Щелкните или перетащите файл в эту область для загрузки `,-1)]]),_:1})]),_:1})]),_:1},8,[`file-list`]),a(m(_),{onClick:s[31]||=e=>Re(),ghost:``},{default:u(()=>[...s[66]||=[t(` Сохранить изменения `,-1)]]),_:1}),s[80]||=p(`hr`,{class:`settings-hr`},null,-1),s[81]||=p(`p`,{class:`settings-header`},`Архив сценария`,-1),s[82]||=p(`p`,{class:`settings-hint`},` Скачайте сценарий ZIP-архивом (scenario.json + изображения) и импортируйте его в другом аккаунте. `,-1),a(m(_),{loading:k.value,disabled:!M.value.ID,ghost:``,onClick:s[32]||=e=>Le()},{default:u(()=>[...s[67]||=[t(` Скачать архив (.zip) `,-1)]]),_:1},8,[`loading`,`disabled`]),s[83]||=p(`hr`,{class:`settings-hr`},null,-1),s[84]||=p(`p`,null,`Создать тестовую игру`,-1),a(m(_),{onClick:s[33]||=e=>Fe(M.value.name||``,M.value.ID),ghost:``},{default:u(()=>[...s[68]||=[t(` Создать игру `,-1)]]),_:1}),s[85]||=p(`hr`,{class:`settings-hr`},null,-1),s[86]||=p(`p`,null,`Публикация`,-1),p(`p`,null,[M.value.status==`public`?(r(),o(m(ne),{key:0,bordered:!1,type:`success`,class:`status-block`},{default:u(()=>[...s[69]||=[t(` Опубликовано `,-1)]]),_:1})):e(``,!0),M.value.status==`draft`?(r(),o(m(ne),{key:1,bordered:!1,type:`warning`,class:`status-block`},{default:u(()=>[...s[70]||=[t(` В разработке `,-1)]]),_:1})):e(``,!0)]),p(`p`,null,[s[71]||=t(` Введите название сценария `,-1),a(m(y),{class:`name-text`,strong:``},{default:u(()=>[t(i(M.value.name),1)]),_:1})]),a(m(S),{value:D.value,"onUpdate:value":s[34]||=e=>D.value=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`]),M.value.status==`public`?e(``,!0):(r(),o(m(_),{key:0,onClick:s[35]||=e=>Pe(M.value.ID),ghost:``,disabled:D.value!=M.value.name},{default:u(()=>[...s[72]||=[t(` Опубликовать сценарий `,-1)]]),_:1},8,[`disabled`])),M.value.status==`draft`?e(``,!0):(r(),o(m(_),{key:1,onClick:s[36]||=e=>Ie(M.value.ID),ghost:``,disabled:D.value!=M.value.name},{default:u(()=>[...s[73]||=[t(` Снять сценарий с публикации `,-1)]]),_:1},8,[`disabled`])),s[87]||=p(`hr`,{class:`settings-hr`},null,-1),p(`p`,null,[s[74]||=t(` Введите название сценария `,-1),a(m(y),{class:`name-text`,strong:``},{default:u(()=>[t(i(M.value.name),1)]),_:1}),s[75]||=t(` чтобы удалить его `,-1)]),a(m(S),{value:O.value,"onUpdate:value":s[37]||=e=>O.value=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`]),a(m(_),{onClick:s[38]||=e=>Ne(M.value.ID),type:`error`,ghost:``,disabled:O.value!=M.value.name},{default:u(()=>[...s[76]||=[t(` Удалить сценарий `,-1)]]),_:1},8,[`disabled`])]),_:1})]),_:1})]),_:1},8,[`show`]),a(pe,{active:`scenarios`})],64))}}),[[`__scopeId`,`data-v-82e71240`]]),F=d({__name:`ScenariosEditorView`,setup(e){return(e,t)=>(r(),o(P))}});export{F as default}; \ No newline at end of file +import{Ct as e,Dt as t,Jt as n,Kt as r,Ln as i,Ot as a,St as o,Yt as ee,bt as s,hn as c,ht as l,in as u,kt as d,l as te,wt as f,xt as p,yn as m}from"./client-CREJv8AD.js";import{t as h}from"./Card-CJC2gN5t.js";import{n as g,r as ne,t as re}from"./es-CevmKZP_.js";import{t as ie}from"./Modal-BNDyI0AJ.js";import{t as _}from"./Button-MvNgQLzL.js";import{t as ae}from"./Select-CvgyidIa.js";import{t as v}from"./_plugin-vue_export-helper-BkfvhliL.js";import{n as oe,r as y,t as b}from"./Upload-CKwlW1lG.js";import{n as se,r as x,t as ce}from"./PlaceBlock-CxzGePrT.js";import{t as S}from"./Input-B41xxqED.js";import{t as le}from"./Alert-CvCnaLc2.js";import{t as C}from"./Space-ChWks6od.js";import{t as w}from"./Flex-B0ZjnZ3e.js";import{i as ue,n as de,t as fe}from"./index-DZpFhWFx.js";import{t as pe}from"./HeaderMenu-BarRlY0P.js";import{t as me}from"./binary_client-C9h3ErPB.js";import{r as he}from"./application-6wLYVOst.js";var T={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},ge=d({name:`Settings`,render:function(e,t){return r(),f(`svg`,T,t[0]||=[p(`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),p(`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)])}}),E={key:1,class:`place-block`},D={class:`message-header`},O={class:`message-content`},k={key:0},A={class:`correct-answer`},j={key:1,class:`intro-empty`},M={key:3,class:`place-block`},N={class:`slot-block`},_e=v(d({__name:`QuestionBlock`,props:{newQuestionCode:{},newQuestionText:{},newQuestionAnswer:{},question:{},mode:{}},emits:[`update:newQuestionCode`,`update:newQuestionText`,`update:newQuestionAnswer`,`update:mode`],setup(n,{emit:o}){let s=n,c=o,d=e=>{c(`update:newQuestionCode`,e)},te=e=>{c(`update:newQuestionText`,e)},h=e=>{c(`update:newQuestionAnswer`,e)},g=e=>{c(`update:mode`,e)};return(o,c)=>(r(),f(l,null,[n.mode==`mini-add`?(r(),f(`div`,{key:0,class:`place-block-hover show-editor-block`,onClick:c[0]||=e=>g(`add`)},[...c[5]||=[p(`p`,{class:`place-image-plus`},`+`,-1)]])):e(``,!0),n.mode==`add`?(r(),f(`div`,E,[a(m(C),{vertical:``},{default:u(()=>[a(m(x),null,{default:u(()=>[a(m(S),{style:{width:`25%`},value:n.newQuestionCode,"onUpdate:value":d,type:`text`,placeholder:`В-1`},null,8,[`value`]),a(m(S),{style:{width:`75%`},value:n.newQuestionText,"onUpdate:value":te,type:`text`,placeholder:`Кто украл пастуха?`},null,8,[`value`])]),_:1}),a(m(S),{value:n.newQuestionAnswer,"onUpdate:value":h,type:`textarea`,autosize:{minRows:2},placeholder:`Правильный ответ (виден только автору и организаторам)`},null,8,[`value`]),ee(o.$slots,`default`,{},void 0,!0)]),_:3})])):e(``,!0),n.mode==`show-editor`?(r(),f(`div`,{key:2,class:`place-block-hover show-editor-block`,onClick:c[1]||=e=>g(`edit`)},[p(`div`,D,i(s.question?.code)+`: `+i(s.question?.text),1),c[8]||=p(`hr`,{class:`hr`},null,-1),p(`div`,O,[s.question?.answer?(r(),f(`span`,k,[c[6]||=t(` Ответ:`,-1),c[7]||=p(`br`,null,null,-1),p(`span`,A,i(s.question.answer),1)])):(r(),f(`span`,j,`Ответ не задан`))])])):e(``,!0),n.mode==`edit`?(r(),f(`div`,M,[a(m(C),{vertical:``},{default:u(()=>[a(m(x),null,{default:u(()=>[a(m(S),{style:{width:`25%`},value:s.question.code,"onUpdate:value":c[2]||=e=>s.question.code=e,type:`text`,placeholder:`В-1`},null,8,[`value`]),a(m(S),{style:{width:`75%`},value:s.question.text,"onUpdate:value":c[3]||=e=>s.question.text=e,type:`text`,placeholder:`Кто украл пастуха?`},null,8,[`value`])]),_:1}),c[10]||=p(`p`,{class:`settings-header`},`Правильный ответ`,-1),a(m(S),{value:s.question.answer,"onUpdate:value":c[4]||=e=>s.question.answer=e,type:`textarea`,autosize:{minRows:2},placeholder:`Правильный ответ (виден только автору и организаторам)`},null,8,[`value`]),a(m(y),{class:`hint`,depth:`3`},{default:u(()=>[...c[9]||=[t(` Смена кода вопроса не переносит ответы команд, отправленные под старым кодом. `,-1)]]),_:1}),p(`div`,N,[ee(o.$slots,`default`,{},void 0,!0)])]),_:3})])):e(``,!0)],64))}}),[[`__scopeId`,`data-v-b506c9f9`]]),ve={class:`width700`},ye={class:`places-container`},be={class:`settings-block`},xe=[`src`],Se=[`src`],Ce=[`aria-label`],P=v(d({__name:`ScenariosEditorPage`,setup(ee){let d=fe(),v=de(),x=me(),T=te().params.id,E=c(!1),D=c(``),O=c(``),k=c(!1),A=g(),j=c([]),M=c({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}),N=c([]),P=c(!1),F=c({text:``,audio:``}),I=c(`show-editor`),L=c({text:``,video:``}),R=c([]),z=c(!1),we=s(()=>he(L.value.video)),Te=c([]),B=c(null);function V(){L.value={text:``,video:``,...M.value.story?.conclusion},R.value=[]}function Ee(){L.value.video=``,R.value=[]}async function H(e=!1){z.value=!0;try{let t=Qe(L.value.video);if(!e&&R.value.length){let e=R.value[0].file;if(!e)return;let n=await G(e,`scenarios_`+M.value.ID+`_conclusion_`+e.name);if(!n.filename)return;if(n.fileType!==`video`){A.error(`Закрывашка должна содержать видео MP4 или WebM`);return}t=n.filename}let n=e?{text:``,video:``}:{text:L.value.text,video:t};await v.UpdateScenarioConclusion({ID:M.value.ID,conclusion:n}),M.value.story.conclusion=n,V(),A.success(e?`Закрывашка удалена`:`Закрывашка сохранена`)}catch{A.error(`Не удалось сохранить закрывашку`)}finally{z.value=!1}}let De=s(()=>M.value.story?.places||[]),Oe=c(null),U=new Map;function ke(e){let t=e?De.value.find(t=>(t.oldCode??t.code)===e):void 0,n=t&&U.get(t),r=Oe.value;if(!n||!r){A.error(e?`Точка «${e}» не найдена`:`У действия не указан код точки`);return}n.focus({preventScroll:!0}),r.scrollTo({top:r.scrollTop+n.getBoundingClientRect().top-r.getBoundingClientRect().top-10,behavior:`smooth`})}let Ae=s(()=>M.value.story?.questions||[]);async function W(e){let t=await v.GetFullScenario({ID:e});M.value=t.scenario,B.value=M.value.music_playlist_id||null,V(),M.value.story?.places?.forEach(e=>{let t=e;t.oldCode=t.code,t.mode=`show-editor`}),M.value.story?.questions?.forEach(e=>{let t=e;t.oldCode=t.code,t.mode=`show-editor`}),F.value=M.value.story?.introduction||{text:``,audio:``},I.value=`show-editor`}W(Number(T));async function je(){try{let e=await v.GetPlaylists({});Te.value=e.playlists||[]}catch(e){A.error(e instanceof Error?e.message:`Не удалось загрузить плейлисты`)}}je();async function Me(e){try{await v.SetScenarioPlaylist({ID:Number(T),playlistID:e||0}),A.success(`Плейлист сценария сохранён`)}catch(e){A.error(e instanceof Error?e.message:`Не удалось сохранить плейлист`)}}async function Ne(e){await v.DeleteScenario({ID:e}),ue.push(`/scenarios`)}async function Pe(e){await v.PublicScenario({ID:e}),await W(Number(T)),D.value=``,E.value=!1}async function Fe(e,t){let n=new Date().toISOString(),r=await v.AddGame({name:(`Тестовая игра: `+e).trim(),description:`Тестовая игра`,location:``,format:`online`,startAt:n,scenarioID:t}),i=await v.AddTeam({name:`Тестовая команда`,captainEmail:``,gameID:r.ID,participantsCount:void 0});ue.push(`/team-story/`+i.ID+`?password=`+i.password)}async function Ie(e){await v.DraftScenario({ID:e}),await W(Number(T)),D.value=``,E.value=!1}async function Le(){k.value=!0;try{let{blob:e,filename:t}=await x.downloadScenarioArchive(M.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),A.success(`Архив сценария скачан`)}catch(e){A.error(e instanceof Error?e.message:`Не удалось скачать архив`)}finally{k.value=!1}}async function G(e,t){if(!e)return{filename:``,fileType:``};let n=await e.arrayBuffer(),r=new Uint8Array(n),i=await v.UploadFile({filename:t,data:ze(r)});return{filename:i.filename||``,fileType:i.file_type||``}}async function Re(){let e=``;if(j.value&&j.value.length>0){let t=j.value[0].file||null;if(t==null)return;let n=await G(t,`scenarios_`+M.value.ID+`_`+t.name);if(n.filename===``)return;e=n.filename}await v.UpdateScenario({ID:M.value.ID,name:M.value.name,description:M.value.description,image:e}),await W(Number(T)),E.value=!1}function ze(e){let t=Be(e);return btoa(t)}function Be(e){let t=``;for(let n=0;ne.code==n.code)??await v.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 We(e){await W(Number(T)),e.mode=`show-editor`}async function Ge(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_`+M.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_`+M.value.ID+`_place_`+e.code+`_app_`+t.name);if(r.filename===``)return;n.image=r.filename,n.file_type=r.fileType}await Ue(M.value,e),await v.UpdateScenarioPlace({ID:M.value.ID,code:e.oldCode,place:e}),await W(Number(T)),e.mode=`show-editor`}async function Ke(e){await v.DeleteScenarioPlace({ID:M.value.ID,code:e.oldCode}),await W(Number(T))}let X=c(``),Z=c(``),Q=c(``),$=c(`mini-add`);async function qe(){await v.AddScenarioQuestion({ID:M.value.ID,question:{code:X.value,text:Z.value,answer:Q.value}}),await W(Number(T)),X.value=``,Z.value=``,Q.value=``,$.value=`add`}async function Je(){X.value=``,Z.value=``,Q.value=``,$.value=`mini-add`}async function Ye(e){await v.UpdateScenarioQuestion({ID:M.value.ID,code:e.oldCode,question:{code:e.code,text:e.text,answer:e.answer}}),await W(Number(T)),e.mode=`show-editor`}async function Xe(e){await W(Number(T)),e.mode=`show-editor`}async function Ze(e){await v.DeleteScenarioQuestion({ID:M.value.ID,code:e.oldCode}),await W(Number(T))}function Qe(e){return e&&e.split(`/`).pop()||``}async function $e(){let e=``;if(F.value.fileList&&F.value.fileList.length>0){let t=F.value.fileList[0].file||null;if(t==null||(e=(await G(t,`scenarios_`+M.value.ID+`_intro_`+t.name)).filename,e===``))return}else e=Qe(F.value.audio);await v.UpdateScenarioIntro({ID:M.value.ID,introduction:{text:F.value.text,audio:e}}),await W(Number(T))}async function et(e=!1){P.value=!0;try{let t=``;if(!e){let e=N.value[0]?.file;if(!e)return;let n=await G(e,`scenarios_`+M.value.ID+`_background_`+e.name);if(!n.filename)return;if(n.fileType!==`image`){A.error(`Фон дела должен быть изображением`);return}t=n.filename}await v.UpdateScenarioBackground({ID:M.value.ID,background:t}),await W(Number(T)),N.value=[]}catch{A.error(`Не удалось сохранить фон дела`)}finally{P.value=!1}}async function tt(){await W(Number(T))}function nt(){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(ee,s)=>(r(),f(l,null,[p(`div`,{ref_key:`scrollContainer`,ref:Oe,class:`center-block-custom`},[p(`div`,ve,[p(`div`,ye,[M.value.status==`public`?(r(),o(m(le),{key:0,title:`Сценарий опубликован`,type:`warning`,style:{"margin-bottom":`20px`}},{default:u(()=>[...s[40]||=[t(` Не рекомендуется редактировать сценарий когда он опубликован. `,-1)]]),_:1})):e(``,!0),m(d).user?.ID==2?(r(),o(m(le),{key:1,title:nt(),type:`info`,style:{"margin-bottom":`20px`}},null,8,[`title`])):e(``,!0),p(`div`,be,[t(` Точек: `+i(M.value.story?.places?.length)+`, Вопросов: `+i(M.value.story?.questions?.length)+` `,1),a(m(_),{quaternary:``,onClick:s[0]||=e=>E.value=!0,class:`settings-button`},{default:u(()=>[a(m(re),{class:`settings-icon`},{default:u(()=>[a(m(ge))]),_:1}),s[41]||=t(` Настройки `,-1)]),_:1})]),a(m(h),{title:`Музыка сценария`},{default:u(()=>[a(m(ae),{value:B.value,"onUpdate:value":[s[1]||=e=>B.value=e,Me],options:Te.value.map(e=>({label:e.name,value:e.ID})),clearable:``,placeholder:`Плейлист по умолчанию`},null,8,[`value`,`options`])]),_:1}),a(m(h),{title:`Фон дела`},{default:u(()=>[a(m(C),{vertical:``},{default:u(()=>[M.value.story?.background?(r(),f(`img`,{key:0,src:M.value.story.background,alt:`Фон дела`,class:`background-preview`},null,8,xe)):e(``,!0),a(m(b),{"file-list":N.value,"onUpdate:fileList":s[2]||=e=>N.value=e,accept:`.jpg,.jpeg,.png,.gif,.webp`,max:1,"default-upload":!1,disabled:P.value},{default:u(()=>[a(m(_),{disabled:P.value},{default:u(()=>[...s[42]||=[t(`Выбрать фон`,-1)]]),_:1},8,[`disabled`])]),_:1},8,[`file-list`,`disabled`]),a(m(w),null,{default:u(()=>[a(m(_),{loading:P.value,disabled:!N.value.length||P.value,onClick:s[3]||=e=>et()},{default:u(()=>[...s[43]||=[t(`Сохранить фон`,-1)]]),_:1},8,[`loading`,`disabled`]),M.value.story?.background?(r(),o(m(_),{key:0,disabled:P.value,onClick:s[4]||=e=>et(!0)},{default:u(()=>[...s[44]||=[t(`Удалить фон`,-1)]]),_:1},8,[`disabled`])):e(``,!0)]),_:1})]),_:1})]),_:1}),a(se,{introduction:F.value,mode:I.value,"onUpdate:mode":s[7]||=e=>I.value=e},{default:u(()=>[a(m(w),{justify:`end`},{default:u(()=>[a(m(_),{onClick:s[5]||=e=>tt()},{default:u(()=>[...s[45]||=[t(`Отмена`,-1)]]),_:1}),a(m(_),{onClick:s[6]||=e=>$e()},{default:u(()=>[...s[46]||=[t(`Сохранить вступление`,-1)]]),_:1})]),_:1})]),_:1},8,[`introduction`,`mode`]),a(m(h),{title:`Закрывашка сценария`},{default:u(()=>[a(m(C),{vertical:``},{default:u(()=>[a(m(y),{depth:`3`},{default:u(()=>[...s[47]||=[t(`Разгадка дела для автора. Игрокам не показывается.`,-1)]]),_:1}),a(m(S),{value:L.value.text,"onUpdate:value":s[8]||=e=>L.value.text=e,type:`textarea`,autosize:{minRows:4,maxRows:12},placeholder:`Текст закрывашки`,"aria-label":`Текст закрывашки`,disabled:z.value},null,8,[`value`,`disabled`]),we.value?(r(),f(`video`,{key:0,src:we.value,controls:``,preload:`none`,class:`conclusion-video`,"aria-label":`Видео закрывашки`},null,8,Se)):e(``,!0),L.value.video?(r(),o(m(_),{key:1,disabled:z.value,onClick:s[9]||=e=>Ee()},{default:u(()=>[...s[48]||=[t(`Убрать видео`,-1)]]),_:1},8,[`disabled`])):e(``,!0),a(m(b),{"file-list":R.value,"onUpdate:fileList":s[10]||=e=>R.value=e,accept:`.mp4,.webm`,max:1,"default-upload":!1,disabled:z.value},{default:u(()=>[a(m(_),{disabled:z.value},{default:u(()=>[...s[49]||=[t(`Выбрать видео MP4/WebM`,-1)]]),_:1},8,[`disabled`])]),_:1},8,[`file-list`,`disabled`]),a(m(w),{justify:`end`},{default:u(()=>[M.value.story?.conclusion?.text||M.value.story?.conclusion?.video?(r(),o(m(_),{key:0,disabled:z.value,onClick:s[11]||=e=>H(!0)},{default:u(()=>[...s[50]||=[t(`Удалить закрывашку`,-1)]]),_:1},8,[`disabled`])):e(``,!0),a(m(_),{disabled:z.value,onClick:s[12]||=e=>V()},{default:u(()=>[...s[51]||=[t(`Отмена`,-1)]]),_:1},8,[`disabled`]),a(m(_),{loading:z.value,disabled:z.value||!M.value.story,onClick:s[13]||=e=>H()},{default:u(()=>[...s[52]||=[t(`Сохранить закрывашку`,-1)]]),_:1},8,[`loading`,`disabled`])]),_:1})]),_:1})]),_:1}),s[63]||=p(`div`,{class:`questions-header`},`Вопросы дела`,-1),a(_e,{mode:$.value,"onUpdate:mode":s[16]||=e=>$.value=e,newQuestionCode:X.value,"onUpdate:newQuestionCode":s[17]||=e=>X.value=e,newQuestionText:Z.value,"onUpdate:newQuestionText":s[18]||=e=>Z.value=e,newQuestionAnswer:Q.value,"onUpdate:newQuestionAnswer":s[19]||=e=>Q.value=e},{default:u(()=>[a(m(w),{justify:`end`},{default:u(()=>[a(m(_),{onClick:s[14]||=e=>Je()},{default:u(()=>[...s[53]||=[t(`Отмена`,-1)]]),_:1}),a(m(_),{onClick:s[15]||=e=>qe(),disabled:!X.value},{default:u(()=>[...s[54]||=[t(`Добавить вопрос`,-1)]]),_:1},8,[`disabled`])]),_:1})]),_:1},8,[`mode`,`newQuestionCode`,`newQuestionText`,`newQuestionAnswer`]),(r(!0),f(l,null,n(Ae.value,e=>(r(),o(_e,{question:e,mode:e.mode,"onUpdate:mode":t=>e.mode=t,key:e.oldCode??e.code??``},{default:u(()=>[a(m(w),{justify:`end`},{default:u(()=>[a(m(_),{onClick:t=>Ze(e),type:`error`,ghost:``},{default:u(()=>[...s[55]||=[t(`Удалить`,-1)]]),_:1},8,[`onClick`]),a(m(_),{onClick:t=>Xe(e)},{default:u(()=>[...s[56]||=[t(`Отмена`,-1)]]),_:1},8,[`onClick`]),a(m(_),{onClick:t=>Ye(e),disabled:e.code==``},{default:u(()=>[...s[57]||=[t(`Сохранить`,-1)]]),_:1},8,[`onClick`,`disabled`])]),_:2},1024)]),_:2},1032,[`question`,`mode`,`onUpdate:mode`]))),128)),a(ce,{mode:Y.value,"onUpdate:mode":s[22]||=e=>Y.value=e,newPlaceCode:K.value,"onUpdate:newPlaceCode":s[23]||=e=>K.value=e,newPlaceName:q.value,"onUpdate:newPlaceName":s[24]||=e=>q.value=e,newPlaceText:J.value,"onUpdate:newPlaceText":s[25]||=e=>J.value=e},{default:u(()=>[a(m(w),{justify:`end`},{default:u(()=>[a(m(_),{onClick:s[20]||=e=>He()},{default:u(()=>[...s[58]||=[t(`Отмена`,-1)]]),_:1}),a(m(_),{onClick:s[21]||=e=>Ve(),disabled:!K.value},{default:u(()=>[...s[59]||=[t(`Добавить точку`,-1)]]),_:1},8,[`disabled`])]),_:1})]),_:1},8,[`mode`,`newPlaceCode`,`newPlaceName`,`newPlaceText`]),(r(!0),f(l,null,n(De.value,e=>(r(),f(`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}`},[a(ce,{place:e,mode:e.mode,"onUpdate:mode":t=>e.mode=t,onNavigate:ke},{default:u(()=>[a(m(w),{justify:`end`},{default:u(()=>[a(m(_),{onClick:t=>Ke(e),type:`error`,ghost:``},{default:u(()=>[...s[60]||=[t(`Удалить`,-1)]]),_:1},8,[`onClick`]),a(m(_),{onClick:t=>We(e)},{default:u(()=>[...s[61]||=[t(`Отмена`,-1)]]),_:1},8,[`onClick`]),a(m(_),{onClick:t=>Ge(e),disabled:e.code==``},{default:u(()=>[...s[62]||=[t(`Сохранить`,-1)]]),_:1},8,[`onClick`,`disabled`])]),_:2},1024)]),_:2},1032,[`place`,`mode`,`onUpdate:mode`])],8,Ce))),128))])])],512),a(m(ie),{show:E.value,"onUpdate:show":s[39]||=e=>E.value=e},{default:u(()=>[a(m(h),{style:{width:`600px`},title:`Настройки сценария`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":u(()=>[a(m(_),{onClick:s[26]||=e=>E.value=!1},{default:u(()=>[...s[64]||=[t(` x `,-1)]]),_:1})]),footer:u(()=>[...s[88]||=[]]),default:u(()=>[a(m(C),{vertical:``},{default:u(()=>[s[77]||=p(`p`,null,`Название`,-1),a(m(S),{value:M.value.name,"onUpdate:value":s[27]||=e=>M.value.name=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`]),s[78]||=p(`p`,{class:`settings-header`},`Описание`,-1),a(m(S),{value:M.value.description,"onUpdate:value":s[28]||=e=>M.value.description=e,type:`textarea`,placeholder:`Убийство пастуха...`},null,8,[`value`]),s[79]||=p(`p`,{class:`settings-header`},`Картинка`,-1),a(m(S),{value:M.value.image,"onUpdate:value":s[29]||=e=>M.value.image=e,type:`text`,placeholder:`default_scenario.png`,disabled:``},null,8,[`value`]),a(m(b),{"directory-dnd":``,max:1,"file-list":j.value,"onUpdate:fileList":s[30]||=e=>j.value=e},{default:u(()=>[a(m(oe),null,{default:u(()=>[a(m(y),{style:{"font-size":`16px`}},{default:u(()=>[...s[65]||=[t(` Щелкните или перетащите файл в эту область для загрузки `,-1)]]),_:1})]),_:1})]),_:1},8,[`file-list`]),a(m(_),{onClick:s[31]||=e=>Re(),ghost:``},{default:u(()=>[...s[66]||=[t(` Сохранить изменения `,-1)]]),_:1}),s[80]||=p(`hr`,{class:`settings-hr`},null,-1),s[81]||=p(`p`,{class:`settings-header`},`Архив сценария`,-1),s[82]||=p(`p`,{class:`settings-hint`},` Скачайте сценарий ZIP-архивом (scenario.json + изображения) и импортируйте его в другом аккаунте. `,-1),a(m(_),{loading:k.value,disabled:!M.value.ID,ghost:``,onClick:s[32]||=e=>Le()},{default:u(()=>[...s[67]||=[t(` Скачать архив (.zip) `,-1)]]),_:1},8,[`loading`,`disabled`]),s[83]||=p(`hr`,{class:`settings-hr`},null,-1),s[84]||=p(`p`,null,`Создать тестовую игру`,-1),a(m(_),{onClick:s[33]||=e=>Fe(M.value.name||``,M.value.ID),ghost:``},{default:u(()=>[...s[68]||=[t(` Создать игру `,-1)]]),_:1}),s[85]||=p(`hr`,{class:`settings-hr`},null,-1),s[86]||=p(`p`,null,`Публикация`,-1),p(`p`,null,[M.value.status==`public`?(r(),o(m(ne),{key:0,bordered:!1,type:`success`,class:`status-block`},{default:u(()=>[...s[69]||=[t(` Опубликовано `,-1)]]),_:1})):e(``,!0),M.value.status==`draft`?(r(),o(m(ne),{key:1,bordered:!1,type:`warning`,class:`status-block`},{default:u(()=>[...s[70]||=[t(` В разработке `,-1)]]),_:1})):e(``,!0)]),p(`p`,null,[s[71]||=t(` Введите название сценария `,-1),a(m(y),{class:`name-text`,strong:``},{default:u(()=>[t(i(M.value.name),1)]),_:1})]),a(m(S),{value:D.value,"onUpdate:value":s[34]||=e=>D.value=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`]),M.value.status==`public`?e(``,!0):(r(),o(m(_),{key:0,onClick:s[35]||=e=>Pe(M.value.ID),ghost:``,disabled:D.value!=M.value.name},{default:u(()=>[...s[72]||=[t(` Опубликовать сценарий `,-1)]]),_:1},8,[`disabled`])),M.value.status==`draft`?e(``,!0):(r(),o(m(_),{key:1,onClick:s[36]||=e=>Ie(M.value.ID),ghost:``,disabled:D.value!=M.value.name},{default:u(()=>[...s[73]||=[t(` Снять сценарий с публикации `,-1)]]),_:1},8,[`disabled`])),s[87]||=p(`hr`,{class:`settings-hr`},null,-1),p(`p`,null,[s[74]||=t(` Введите название сценария `,-1),a(m(y),{class:`name-text`,strong:``},{default:u(()=>[t(i(M.value.name),1)]),_:1}),s[75]||=t(` чтобы удалить его `,-1)]),a(m(S),{value:O.value,"onUpdate:value":s[37]||=e=>O.value=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`]),a(m(_),{onClick:s[38]||=e=>Ne(M.value.ID),type:`error`,ghost:``,disabled:O.value!=M.value.name},{default:u(()=>[...s[76]||=[t(` Удалить сценарий `,-1)]]),_:1},8,[`disabled`])]),_:1})]),_:1})]),_:1},8,[`show`]),a(pe,{active:`scenarios`})],64))}}),[[`__scopeId`,`data-v-82e71240`]]),F=d({__name:`ScenariosEditorView`,setup(e){return(e,t)=>(r(),o(P))}});export{F as default}; \ No newline at end of file diff --git a/frontend/dist/assets/ScenariosView-fFBu3P3h.js b/frontend/dist/assets/ScenariosView-jOOTATsM.js similarity index 89% rename from frontend/dist/assets/ScenariosView-fFBu3P3h.js rename to frontend/dist/assets/ScenariosView-jOOTATsM.js index b2b9220..669b356 100644 --- a/frontend/dist/assets/ScenariosView-fFBu3P3h.js +++ b/frontend/dist/assets/ScenariosView-jOOTATsM.js @@ -1 +1 @@ -import{Ct as e,Dt as t,In as n,Jt as r,Kt as i,Ln as a,Ot as o,St as s,hn as c,ht as l,in as u,kt as d,u as f,wt as p,xt as m,yn as h}from"./client-vZFx54yb.js";import{t as g}from"./Card-DO3oxl4F.js";import{n as _,r as v,t as y}from"./es-DSPBzgpf.js";import{t as b}from"./Modal-XDlBuRmh.js";import{t as x}from"./Button-Bx9JIj0e.js";import{t as S}from"./_plugin-vue_export-helper-FodinAjS.js";import{n as C,r as w,t as T}from"./Upload-B6W9RuvF.js";import{t as E}from"./Input-D7YePN-E.js";import{t as D}from"./Flex-CjWQ3AmY.js";import{n as O}from"./index-Ci0r-yTA.js";import{t as k}from"./HeaderMenu-CoWgnRN4.js";import{t as A}from"./binary_client-B2m6lbs2.js";var j={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},M=d({name:`Archive`,render:function(e,t){return i(),p(`svg`,j,t[0]||=[m(`path`,{d:`M14 19h4v2h-4z`,fill:`currentColor`},null,-1),m(`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=S(d({__name:`ScenariosPage`,setup(d){let S=O(),j=A(),B=c([]),V=f(),H=_(),U=c(!1),W=c(``),G=c(!1),K=c([]),q=c(!1);async function J(){try{B.value=[];let e=await S.GetMyScenarios({});B.value=e.scenarios}catch(e){H.error(e instanceof Error?e.message:`Не удалось загрузить сценарии`)}}async function Y(e){try{await X((await S.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(),(c,d)=>(i(),p(l,null,[m(`div`,N,[m(`div`,P,[m(`div`,{class:`scenario-block`,onClick:d[0]||=e=>U.value=!0},[...d[11]||=[m(`div`,{class:`scenario-image-block scenario-image-plus`},`+`,-1),m(`div`,{class:`scenario-content-block`},[m(`p`,{class:`scenario-title`},`Создать новый сценарий`)],-1)]]),m(`div`,{class:`scenario-block`,onClick:d[1]||=e=>G.value=!0},[m(`div`,F,[o(h(y),null,{default:u(()=>[o(h(M))]),_:1})]),d[12]||=m(`div`,{class:`scenario-content-block`},[m(`p`,{class:`scenario-title`},`Импортировать из архива`)],-1)]),(i(!0),p(l,null,r(B.value,r=>(i(),p(`div`,{class:`scenario-block`,onClick:e=>X(r.ID),key:r.ID},[m(`div`,{class:`scenario-image-block scenario-image`,style:n({backgroundImage:`url(${r.image})`})},null,4),m(`div`,L,[m(`p`,R,a(r.name),1),m(`p`,z,[r.status==`public`?(i(),s(h(v),{key:0,bordered:!1,type:`success`,class:`status-block`},{default:u(()=>[...d[13]||=[t(`Опубликовано`,-1)]]),_:1})):e(``,!0),r.status==`draft`?(i(),s(h(v),{key:1,bordered:!1,type:`warning`,class:`status-block`},{default:u(()=>[...d[14]||=[t(`В разработке`,-1)]]),_:1})):e(``,!0)])])],8,I))),128))])]),o(h(b),{show:U.value,"onUpdate:show":d[5]||=e=>U.value=e},{default:u(()=>[o(h(g),{style:{width:`600px`},title:`Создание сценария`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":u(()=>[o(h(x),{onClick:d[2]||=e=>U.value=!1},{default:u(()=>[...d[15]||=[t(` x `,-1)]]),_:1})]),footer:u(()=>[o(h(D),{justify:`end`},{default:u(()=>[o(h(x),{onClick:d[4]||=e=>Y(W.value),disabled:W.value.length==0},{default:u(()=>[...d[16]||=[t(` Создать `,-1)]]),_:1},8,[`disabled`])]),_:1})]),default:u(()=>[o(h(E),{value:W.value,"onUpdate:value":d[3]||=e=>W.value=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`])]),_:1})]),_:1},8,[`show`]),o(h(b),{show:G.value,"onUpdate:show":d[10]||=e=>G.value=e},{default:u(()=>[o(h(g),{style:{width:`600px`},title:`Импорт сценария из архива`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":u(()=>[o(h(x),{onClick:d[6]||=e=>Z()},{default:u(()=>[...d[17]||=[t(` x `,-1)]]),_:1})]),footer:u(()=>[o(h(D),{justify:`end`},{default:u(()=>[o(h(x),{onClick:d[8]||=e=>Z()},{default:u(()=>[...d[19]||=[t(`Отмена`,-1)]]),_:1}),o(h(x),{type:`primary`,loading:q.value,disabled:K.value.length==0,onClick:d[9]||=e=>Q()},{default:u(()=>[...d[20]||=[t(` Импортировать `,-1)]]),_:1},8,[`loading`,`disabled`])]),_:1})]),default:u(()=>[d[21]||=m(`p`,{class:`import-hint`},` Выберите ZIP-архив сценария (файл scenario.json + папка images). Архив можно получить через «Скачать архив» в настройках сценария. `,-1),o(h(T),{max:1,"file-list":K.value,"onUpdate:fileList":d[7]||=e=>K.value=e,accept:`.zip,application/zip,application/x-zip-compressed,application/octet-stream`},{default:u(()=>[o(h(C),null,{default:u(()=>[o(h(w),{style:{"font-size":`16px`}},{default:u(()=>[...d[18]||=[t(` Щелкните или перетащите ZIP-архив в эту область `,-1)]]),_:1})]),_:1})]),_:1},8,[`file-list`])]),_:1})]),_:1},8,[`show`]),o(k,{active:`scenarios`})],64))}}),[[`__scopeId`,`data-v-05f24200`]]),V=d({__name:`ScenariosView`,setup(e){return(e,t)=>(i(),s(B))}});export{V as default}; \ No newline at end of file +import{Ct as e,Dt as t,In as n,Jt as r,Kt as i,Ln as a,Ot as o,St as s,hn as c,ht as l,in as u,kt as d,u as f,wt as p,xt as m,yn as h}from"./client-CREJv8AD.js";import{t as g}from"./Card-CJC2gN5t.js";import{n as _,r as v,t as y}from"./es-CevmKZP_.js";import{t as b}from"./Modal-BNDyI0AJ.js";import{t as x}from"./Button-MvNgQLzL.js";import{t as S}from"./_plugin-vue_export-helper-BkfvhliL.js";import{n as C,r as w,t as T}from"./Upload-CKwlW1lG.js";import{t as E}from"./Input-B41xxqED.js";import{t as D}from"./Flex-B0ZjnZ3e.js";import{n as O}from"./index-DZpFhWFx.js";import{t as k}from"./HeaderMenu-BarRlY0P.js";import{t as A}from"./binary_client-C9h3ErPB.js";var j={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},M=d({name:`Archive`,render:function(e,t){return i(),p(`svg`,j,t[0]||=[m(`path`,{d:`M14 19h4v2h-4z`,fill:`currentColor`},null,-1),m(`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=S(d({__name:`ScenariosPage`,setup(d){let S=O(),j=A(),B=c([]),V=f(),H=_(),U=c(!1),W=c(``),G=c(!1),K=c([]),q=c(!1);async function J(){try{B.value=[];let e=await S.GetMyScenarios({});B.value=e.scenarios}catch(e){H.error(e instanceof Error?e.message:`Не удалось загрузить сценарии`)}}async function Y(e){try{await X((await S.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(),(c,d)=>(i(),p(l,null,[m(`div`,N,[m(`div`,P,[m(`div`,{class:`scenario-block`,onClick:d[0]||=e=>U.value=!0},[...d[11]||=[m(`div`,{class:`scenario-image-block scenario-image-plus`},`+`,-1),m(`div`,{class:`scenario-content-block`},[m(`p`,{class:`scenario-title`},`Создать новый сценарий`)],-1)]]),m(`div`,{class:`scenario-block`,onClick:d[1]||=e=>G.value=!0},[m(`div`,F,[o(h(y),null,{default:u(()=>[o(h(M))]),_:1})]),d[12]||=m(`div`,{class:`scenario-content-block`},[m(`p`,{class:`scenario-title`},`Импортировать из архива`)],-1)]),(i(!0),p(l,null,r(B.value,r=>(i(),p(`div`,{class:`scenario-block`,onClick:e=>X(r.ID),key:r.ID},[m(`div`,{class:`scenario-image-block scenario-image`,style:n({backgroundImage:`url(${r.image})`})},null,4),m(`div`,L,[m(`p`,R,a(r.name),1),m(`p`,z,[r.status==`public`?(i(),s(h(v),{key:0,bordered:!1,type:`success`,class:`status-block`},{default:u(()=>[...d[13]||=[t(`Опубликовано`,-1)]]),_:1})):e(``,!0),r.status==`draft`?(i(),s(h(v),{key:1,bordered:!1,type:`warning`,class:`status-block`},{default:u(()=>[...d[14]||=[t(`В разработке`,-1)]]),_:1})):e(``,!0)])])],8,I))),128))])]),o(h(b),{show:U.value,"onUpdate:show":d[5]||=e=>U.value=e},{default:u(()=>[o(h(g),{style:{width:`600px`},title:`Создание сценария`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":u(()=>[o(h(x),{onClick:d[2]||=e=>U.value=!1},{default:u(()=>[...d[15]||=[t(` x `,-1)]]),_:1})]),footer:u(()=>[o(h(D),{justify:`end`},{default:u(()=>[o(h(x),{onClick:d[4]||=e=>Y(W.value),disabled:W.value.length==0},{default:u(()=>[...d[16]||=[t(` Создать `,-1)]]),_:1},8,[`disabled`])]),_:1})]),default:u(()=>[o(h(E),{value:W.value,"onUpdate:value":d[3]||=e=>W.value=e,type:`text`,placeholder:`Дело №0 "Следствие ведут овечки"`},null,8,[`value`])]),_:1})]),_:1},8,[`show`]),o(h(b),{show:G.value,"onUpdate:show":d[10]||=e=>G.value=e},{default:u(()=>[o(h(g),{style:{width:`600px`},title:`Импорт сценария из архива`,bordered:!1,size:`huge`,role:`dialog`,"aria-modal":`true`},{"header-extra":u(()=>[o(h(x),{onClick:d[6]||=e=>Z()},{default:u(()=>[...d[17]||=[t(` x `,-1)]]),_:1})]),footer:u(()=>[o(h(D),{justify:`end`},{default:u(()=>[o(h(x),{onClick:d[8]||=e=>Z()},{default:u(()=>[...d[19]||=[t(`Отмена`,-1)]]),_:1}),o(h(x),{type:`primary`,loading:q.value,disabled:K.value.length==0,onClick:d[9]||=e=>Q()},{default:u(()=>[...d[20]||=[t(` Импортировать `,-1)]]),_:1},8,[`loading`,`disabled`])]),_:1})]),default:u(()=>[d[21]||=m(`p`,{class:`import-hint`},` Выберите ZIP-архив сценария (файл scenario.json + папка images). Архив можно получить через «Скачать архив» в настройках сценария. `,-1),o(h(T),{max:1,"file-list":K.value,"onUpdate:fileList":d[7]||=e=>K.value=e,accept:`.zip,application/zip,application/x-zip-compressed,application/octet-stream`},{default:u(()=>[o(h(C),null,{default:u(()=>[o(h(w),{style:{"font-size":`16px`}},{default:u(()=>[...d[18]||=[t(` Щелкните или перетащите ZIP-архив в эту область `,-1)]]),_:1})]),_:1})]),_:1},8,[`file-list`])]),_:1})]),_:1},8,[`show`]),o(k,{active:`scenarios`})],64))}}),[[`__scopeId`,`data-v-05f24200`]]),V=d({__name:`ScenariosView`,setup(e){return(e,t)=>(i(),s(B))}});export{V as default}; \ No newline at end of file diff --git a/frontend/dist/assets/ScreenView-CVDqTuwa.js b/frontend/dist/assets/ScreenView-DCEFicdZ.js similarity index 95% rename from frontend/dist/assets/ScreenView-CVDqTuwa.js rename to frontend/dist/assets/ScreenView-DCEFicdZ.js index 70a5a4a..75b9adb 100644 --- a/frontend/dist/assets/ScreenView-CVDqTuwa.js +++ b/frontend/dist/assets/ScreenView-DCEFicdZ.js @@ -1 +1 @@ -import{Ct as e,Dt as t,In as n,Jt as r,Kt as i,Ln as a,Ot as o,Rt as s,St as c,Ut as l,Wt as ee,an as u,bt as d,hn as f,ht as p,in as m,kt as h,l as te,nn as g,t as ne,wt as _,xt as v,yn as y}from"./client-vZFx54yb.js";import{t as b}from"./Card-DO3oxl4F.js";import{n as re}from"./es-DSPBzgpf.js";import{t as x}from"./Button-Bx9JIj0e.js";import{t as ie}from"./Select-BDMkhuNb.js";import{t as S}from"./_plugin-vue_export-helper-FodinAjS.js";import{t as ae}from"./QrCode-DxK4gby4.js";import{at as C,n as oe}from"./index-Ci0r-yTA.js";import{t as se}from"./HeaderMenu-CoWgnRN4.js";import{r as w}from"./application-BR-GaUH8.js";import{t as ce}from"./datetime-BJNH0M1T.js";import{t as le}from"./useSimplePolling-ntn8lfqD.js";var ue={key:0,class:`screen-center`},de={key:1,class:`screen-page`},fe={key:0,class:`screen-center`},pe={key:0,class:`screen-center`},me={key:0,class:`screen-qr`},he={key:0,class:`media-error`},ge={key:1,class:`screen-media`},_e=[`src`,`muted`],ve=[`src`,`muted`],ye={key:3,class:`conclusion-screen`},be=[`src`,`muted`],xe={key:4,class:`screen-message`},Se={key:5,class:`screen-message`},Ce={key:6,class:`screen-message`},we={key:7,class:`screen-message`},Te={key:8,class:`timer-screen`},Ee={class:`timer-label`},De={class:`timer-value`},Oe={key:10,class:`screen-cover`},ke=[`src`],Ae={key:1,class:`cover-controls`},T=`evening-detective-screen-session`,E=S(h({__name:`ScreenPage`,setup(h){let S=ne(),E=oe(),D=re(),O=te(),k=f(``),A=f(``),j=f(),M=f([]),N=f([]),P=f(),F,I=!1,L=f([]),R=f(null),z=f(!1),B=f(``),V=f(!0),H=f(!1),U=f(!1),W=f(Date.now()),G=f(0),K=f(Date.now()),je=f(),Me=f(!1),q=f(),J=f(),Y=f(),Ne=0,X=null,Z=d(()=>!!(O.query.screenID&&O.query.accessToken)),Pe=d(()=>{if(!k.value||!A.value)return``;let e=new URL(`/screen`,window.location.origin);return e.searchParams.set(`screenId`,k.value),e.searchParams.set(`accessToken`,A.value),e.toString()}),Fe=d(()=>L.value.map(e=>({label:`${ce(e.startAt).split(`,`)[0]||`дата не указана`} — ${e.name||`Игра ${e.ID}`}`,value:e.ID}))),Q=d(()=>j.value?.mode||`SCREEN_MODE_COVER`),Ie=d(()=>j.value?.timerState===`SCREEN_TIMER_STATE_RUNNING`?Math.max(0,G.value-(W.value-K.value)/1e3):G.value),Le=d(()=>{let e=Math.floor(Ie.value/60),t=Math.floor(Ie.value%60);return`${String(e).padStart(2,`0`)}:${String(t).padStart(2,`0`)}`}),Re=d(()=>w(j.value?.introAudio)),ze=d(()=>w(j.value?.conclusionVideo)),Be=d(()=>w((j.value?.music?.playlist?.tracks||[])[j.value?.music?.trackIndex||0]?.filename)),Ve=d(()=>[j.value?.music?.playlist?.ID,j.value?.music?.trackIndex,j.value?.music?.playback]),He=d(()=>{let e=j.value?.backgroundImage||j.value?.coverImage;return e?{backgroundImage:`linear-gradient(rgb(0 0 0 / 55%), rgb(0 0 0 / 55%)), url("${e}")`}:{}});function Ue(){sessionStorage.setItem(T,JSON.stringify({screenID:k.value,accessToken:A.value}))}function We(e){let t=Math.max(0,Number(e?.timerRemainingSeconds||0));if(e?.timerState===`SCREEN_TIMER_STATE_RUNNING`&&je.value===e.timerState){let e=Math.max(0,G.value-(Date.now()-K.value)/1e3);if(Math.abs(t-e)<=.5)return}G.value=t,K.value=Date.now(),je.value=e?.timerState}function Ge(){try{let e=JSON.parse(sessionStorage.getItem(T)||`{}`);k.value=e.screenId||``,A.value=e.accessToken||``}catch{sessionStorage.removeItem(T)}}async function Ke(){let e=await S.CreateScreenSession({});if(!e.screenID||!e.accessToken)throw Error(`Не удалось создать сессию экрана`);k.value=e.screenID,A.value=e.accessToken,Ue()}async function $(e=!0){if(!(!k.value||!A.value))try{let e=await S.GetScreenState({screenID:k.value,accessToken:A.value});j.value=e.state,We(j.value),j.value?.gameID&&j.value.mode===`SCREEN_MODE_RESULTS`&&await qe()}catch(t){if(e&&t instanceof Error&&t.message===`unauthorized`){sessionStorage.removeItem(T),k.value=``,A.value=``,await Ke(),await $(!1);return}D.error(t instanceof Error?t.message:`Не удалось получить состояние экрана`)}}async function qe(){if(!k.value||!A.value)return;let e=await S.GetScreenResults({screenID:k.value,accessToken:A.value});if(N.value=e.questions||[],M.value=e.teams||[],!I){I=!0,await s();let e=P.value;e&&(e.scrollTop=e.scrollHeight,F=window.setInterval(()=>{e.scrollTop=Math.max(0,e.scrollTop-32),e.scrollTop===0&&F!=null&&(window.clearInterval(F),F=void 0)},1e3))}}async function Je(){try{let e=await E.GetGames({});L.value=e.games||[]}catch(e){D.error(e instanceof Error?e.message:`Не удалось загрузить игры`)}}le(()=>{Me.value&&$()},1e3),g(j,async e=>{if(!e||!e.command||e.stateVersion===Ne)return;Ne=e.stateVersion||0,await s();let t=Q.value===`SCREEN_MODE_CONCLUSION`?Y.value:q.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(()=>{B.value=`Браузер заблокировал воспроизведение. Нажмите «Подготовить экран» на этом устройстве.`})):(e.command===`SCREEN_COMMAND_PAUSE`||e.command===`SCREEN_COMMAND_STOP`)&&t.pause()))});function Ye(e){return e.readyState>=HTMLMediaElement.HAVE_METADATA?Promise.resolve():new Promise(t=>{let n=()=>{e.removeEventListener(`loadedmetadata`,n),e.removeEventListener(`error`,n),t()};e.addEventListener(`loadedmetadata`,n,{once:!0}),e.addEventListener(`error`,n,{once:!0})})}g(Ve,async(e,t)=>{let n=j.value?.music;if(!n||!n.playlist?.tracks?.length)return;await s();let r=J.value;if(!r)return;let i=!t||e[0]!==t[0]||e[1]!==t[1],a=!t||e[2]!==t[2];!i&&!a||(await Ye(r),r.currentTime=i?0:(n.positionMs||0)/1e3,n.playback===`MUSIC_PLAYBACK_PLAYING`?r.play().catch(()=>{B.value=`Браузер заблокировал воспроизведение музыки. Нажмите «Подготовить экран».`}):r.pause())},{immediate:!0}),g(()=>[j.value?.music?.volume,j.value?.soundEnabled],([e,t])=>{let n=J.value;n&&(n.volume=Math.max(0,Math.min(1,(e??100)/100)),n.muted=!t)},{immediate:!0});async function Xe(){if(!(!k.value||!A.value))try{await S.AdvanceScreenMusic({screenID:k.value,accessToken:A.value})}catch{B.value=`Не удалось синхронизировать музыку. Повторная попытка выполняется автоматически.`}}async function Ze(){if(!(!R.value||!O.query.screenID||!O.query.accessToken)){H.value=!0;try{await E.BindScreen({screenID:String(O.query.screenID),accessToken:String(O.query.accessToken),gameID:R.value}),U.value=!0}catch(e){D.error(e instanceof Error?e.message:`Не удалось привязать экран`)}finally{H.value=!1}}}async function Qe(){try{await document.documentElement.requestFullscreen?.()}catch{D.warning(`Полноэкранный режим недоступен в этом браузере`)}z.value=!0,await s();for(let e of[q.value,Y.value,J.value])if(e){e.muted=!0;try{await e.play(),e.pause(),e.currentTime=0,e.muted=!j.value?.soundEnabled}catch{B.value=`Браузер не разрешил подготовить воспроизведение на этом устройстве.`}}}return l(async()=>{if(Z.value){await Je(),V.value=!1;return}Ge();try{(!k.value||!A.value)&&await Ke(),await $(),Me.value=!0,X=window.setInterval(()=>{W.value=Date.now()},250)}catch(e){D.error(e instanceof Error?e.message:`Не удалось подготовить экран`)}finally{V.value=!1}}),ee(()=>{X!=null&&window.clearInterval(X),F!=null&&window.clearInterval(F)}),(s,l)=>(i(),_(p,null,[Z.value?(i(),_(`div`,ue,[o(y(b),{class:`binding-card`,title:`Привязка экрана`},{default:m(()=>[U.value?(i(),_(p,{key:0},[l[1]||=v(`p`,null,`Экран привязан к игре.`,-1),l[2]||=v(`p`,null,`Можно закрыть эту страницу.`,-1)],64)):(i(),_(p,{key:1},[l[4]||=v(`p`,null,`Выберите игру, к которой привязать экран.`,-1),o(y(ie),{value:R.value,"onUpdate:value":l[0]||=e=>R.value=e,options:Fe.value,placeholder:`Игра`},null,8,[`value`,`options`]),o(y(x),{type:`primary`,loading:H.value,disabled:R.value==null,onClick:Ze},{default:m(()=>[...l[3]||=[t(` Привязать `,-1)]]),_:1},8,[`loading`,`disabled`])],64))]),_:1})])):(i(),_(`div`,de,[V.value?(i(),_(`div`,fe,`Подготовка экрана…`)):(i(),_(p,{key:1},[j.value?.gameID?(i(),_(`div`,{key:1,class:`screen-content`,style:n(He.value)},[B.value?(i(),_(`p`,he,a(B.value),1)):e(``,!0),j.value.introAudio?u((i(),_(`div`,ge,[v(`audio`,{ref_key:`introAudioElement`,ref:q,src:Re.value,muted:!j.value.soundEnabled,controls:``},null,8,_e)],512)),[[C,Q.value===`SCREEN_MODE_INTRO`]]):e(``,!0),j.value.music?.playlist?.tracks?.length?(i(),_(`audio`,{key:2,ref_key:`musicAudioElement`,ref:J,src:Be.value,muted:!j.value.soundEnabled,onEnded:Xe},null,40,ve)):e(``,!0),j.value.conclusionVideo?u((i(),_(`div`,ye,[v(`video`,{ref_key:`conclusionVideoElement`,ref:Y,src:ze.value,muted:!j.value.soundEnabled,playsinline:``},null,8,be)],512)),[[C,Q.value===`SCREEN_MODE_CONCLUSION`]]):e(``,!0),Q.value===`SCREEN_MODE_CONCLUSION`&&!j.value.conclusionVideo?(i(),_(`div`,xe,`Видео закрывашки не задано`)):e(``,!0),Q.value===`SCREEN_MODE_INTRO_DONE`?(i(),_(`div`,Se,`Успехов`)):e(``,!0),Q.value===`SCREEN_MODE_CONCLUSION_DONE`?(i(),_(`div`,Ce,`Спасибо за игру!`)):e(``,!0),Q.value===`SCREEN_MODE_TEXT`?(i(),_(`div`,we,a(j.value.text),1)):e(``,!0),Q.value===`SCREEN_MODE_TIMER`?(i(),_(`div`,Te,[v(`h1`,Ee,a(j.value.timerLabel||`Перерыв`),1),v(`div`,De,a(Le.value),1)])):e(``,!0),Q.value===`SCREEN_MODE_RESULTS`?(i(),_(`div`,{key:9,ref_key:`resultsContainer`,ref:P,class:`results-screen`},[l[11]||=v(`h1`,null,`Результаты`,-1),v(`table`,null,[v(`thead`,null,[v(`tr`,null,[l[7]||=v(`th`,null,`Место`,-1),l[8]||=v(`th`,null,`Команда`,-1),(i(!0),_(p,null,r(N.value,e=>(i(),_(`th`,{key:e.code},a(e.code),1))),128)),l[9]||=v(`th`,null,`Сумма`,-1),l[10]||=v(`th`,null,`Ходы`,-1)])]),v(`tbody`,null,[(i(!0),_(p,null,r(M.value,e=>(i(),_(`tr`,{key:e.team?.ID},[v(`td`,null,a(e.place),1),v(`td`,null,a(e.team?.name),1),(i(!0),_(p,null,r(N.value,t=>(i(),_(`td`,{key:t.code},a(e.answers?.find(e=>e.questionCode===t.code)?.score??0),1))),128)),v(`td`,null,a(e.totalScore),1),v(`td`,null,a(e.actionsCount),1)]))),128))])])],512)):e(``,!0),Q.value===`SCREEN_MODE_COVER`?(i(),_(`div`,Oe,[j.value.coverImage?(i(),_(`img`,{key:0,src:j.value.coverImage,class:`cover-image`,alt:`Обложка дела`},null,8,ke)):e(``,!0),z.value?e(``,!0):(i(),_(`div`,Ae,[o(y(x),{type:`primary`,onClick:Qe},{default:m(()=>[...l[12]||=[t(`Подготовить экран`,-1)]]),_:1})]))])):e(``,!0)],4)):(i(),_(`div`,pe,[o(y(b),{class:`qr-card`,title:`Подключение экрана`},{default:m(()=>[Pe.value?(i(),_(`div`,me,[o(y(ae),{value:Pe.value,size:260,padding:0},null,8,[`value`])])):e(``,!0),l[6]||=v(`p`,null,`Отсканируйте QR телефоном организатора и выберите игру.`,-1),z.value?e(``,!0):(i(),c(y(x),{key:1,type:`primary`,onClick:Qe},{default:m(()=>[...l[5]||=[t(`Подготовить экран`,-1)]]),_:1}))]),_:1})]))],64))])),Z.value?(i(),c(se,{key:2,active:`games`})):e(``,!0)],64))}}),[[`__scopeId`,`data-v-cf99ca4a`]]),D=h({__name:`ScreenView`,setup(e){return(e,t)=>(i(),c(E))}});export{D as default}; \ No newline at end of file +import{Ct as e,Dt as t,In as n,Jt as r,Kt as i,Ln as a,Ot as o,Rt as s,St as c,Ut as l,Wt as ee,an as u,bt as d,hn as f,ht as p,in as m,kt as h,l as te,nn as g,t as ne,wt as _,xt as v,yn as y}from"./client-CREJv8AD.js";import{t as b}from"./Card-CJC2gN5t.js";import{n as re}from"./es-CevmKZP_.js";import{t as x}from"./Button-MvNgQLzL.js";import{t as ie}from"./Select-CvgyidIa.js";import{t as S}from"./_plugin-vue_export-helper-BkfvhliL.js";import{t as ae}from"./QrCode-CgX_T1UU.js";import{at as C,n as oe}from"./index-DZpFhWFx.js";import{t as se}from"./HeaderMenu-BarRlY0P.js";import{r as w}from"./application-6wLYVOst.js";import{t as ce}from"./datetime-BJNH0M1T.js";import{t as le}from"./useSimplePolling-C5AtW5j-.js";var ue={key:0,class:`screen-center`},de={key:1,class:`screen-page`},fe={key:0,class:`screen-center`},pe={key:0,class:`screen-center`},me={key:0,class:`screen-qr`},he={key:0,class:`media-error`},ge={key:1,class:`screen-media`},_e=[`src`,`muted`],ve=[`src`,`muted`],ye={key:3,class:`conclusion-screen`},be=[`src`,`muted`],xe={key:4,class:`screen-message`},Se={key:5,class:`screen-message`},Ce={key:6,class:`screen-message`},we={key:7,class:`screen-message`},Te={key:8,class:`timer-screen`},Ee={class:`timer-label`},De={class:`timer-value`},Oe={key:10,class:`screen-cover`},ke=[`src`],Ae={key:1,class:`cover-controls`},T=`evening-detective-screen-session`,E=S(h({__name:`ScreenPage`,setup(h){let S=ne(),E=oe(),D=re(),O=te(),k=f(``),A=f(``),j=f(),M=f([]),N=f([]),P=f(),F,I=!1,L=f([]),R=f(null),z=f(!1),B=f(``),V=f(!0),H=f(!1),U=f(!1),W=f(Date.now()),G=f(0),K=f(Date.now()),je=f(),Me=f(!1),q=f(),J=f(),Y=f(),Ne=0,X=null,Z=d(()=>!!(O.query.screenID&&O.query.accessToken)),Pe=d(()=>{if(!k.value||!A.value)return``;let e=new URL(`/screen`,window.location.origin);return e.searchParams.set(`screenId`,k.value),e.searchParams.set(`accessToken`,A.value),e.toString()}),Fe=d(()=>L.value.map(e=>({label:`${ce(e.startAt).split(`,`)[0]||`дата не указана`} — ${e.name||`Игра ${e.ID}`}`,value:e.ID}))),Q=d(()=>j.value?.mode||`SCREEN_MODE_COVER`),Ie=d(()=>j.value?.timerState===`SCREEN_TIMER_STATE_RUNNING`?Math.max(0,G.value-(W.value-K.value)/1e3):G.value),Le=d(()=>{let e=Math.floor(Ie.value/60),t=Math.floor(Ie.value%60);return`${String(e).padStart(2,`0`)}:${String(t).padStart(2,`0`)}`}),Re=d(()=>w(j.value?.introAudio)),ze=d(()=>w(j.value?.conclusionVideo)),Be=d(()=>w((j.value?.music?.playlist?.tracks||[])[j.value?.music?.trackIndex||0]?.filename)),Ve=d(()=>[j.value?.music?.playlist?.ID,j.value?.music?.trackIndex,j.value?.music?.playback]),He=d(()=>{let e=j.value?.backgroundImage||j.value?.coverImage;return e?{backgroundImage:`linear-gradient(rgb(0 0 0 / 55%), rgb(0 0 0 / 55%)), url("${e}")`}:{}});function Ue(){sessionStorage.setItem(T,JSON.stringify({screenID:k.value,accessToken:A.value}))}function We(e){let t=Math.max(0,Number(e?.timerRemainingSeconds||0));if(e?.timerState===`SCREEN_TIMER_STATE_RUNNING`&&je.value===e.timerState){let e=Math.max(0,G.value-(Date.now()-K.value)/1e3);if(Math.abs(t-e)<=.5)return}G.value=t,K.value=Date.now(),je.value=e?.timerState}function Ge(){try{let e=JSON.parse(sessionStorage.getItem(T)||`{}`);k.value=e.screenId||``,A.value=e.accessToken||``}catch{sessionStorage.removeItem(T)}}async function Ke(){let e=await S.CreateScreenSession({});if(!e.screenID||!e.accessToken)throw Error(`Не удалось создать сессию экрана`);k.value=e.screenID,A.value=e.accessToken,Ue()}async function $(e=!0){if(!(!k.value||!A.value))try{let e=await S.GetScreenState({screenID:k.value,accessToken:A.value});j.value=e.state,We(j.value),j.value?.gameID&&j.value.mode===`SCREEN_MODE_RESULTS`&&await qe()}catch(t){if(e&&t instanceof Error&&t.message===`unauthorized`){sessionStorage.removeItem(T),k.value=``,A.value=``,await Ke(),await $(!1);return}D.error(t instanceof Error?t.message:`Не удалось получить состояние экрана`)}}async function qe(){if(!k.value||!A.value)return;let e=await S.GetScreenResults({screenID:k.value,accessToken:A.value});if(N.value=e.questions||[],M.value=e.teams||[],!I){I=!0,await s();let e=P.value;e&&(e.scrollTop=e.scrollHeight,F=window.setInterval(()=>{e.scrollTop=Math.max(0,e.scrollTop-32),e.scrollTop===0&&F!=null&&(window.clearInterval(F),F=void 0)},1e3))}}async function Je(){try{let e=await E.GetGames({});L.value=e.games||[]}catch(e){D.error(e instanceof Error?e.message:`Не удалось загрузить игры`)}}le(()=>{Me.value&&$()},1e3),g(j,async e=>{if(!e||!e.command||e.stateVersion===Ne)return;Ne=e.stateVersion||0,await s();let t=Q.value===`SCREEN_MODE_CONCLUSION`?Y.value:q.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(()=>{B.value=`Браузер заблокировал воспроизведение. Нажмите «Подготовить экран» на этом устройстве.`})):(e.command===`SCREEN_COMMAND_PAUSE`||e.command===`SCREEN_COMMAND_STOP`)&&t.pause()))});function Ye(e){return e.readyState>=HTMLMediaElement.HAVE_METADATA?Promise.resolve():new Promise(t=>{let n=()=>{e.removeEventListener(`loadedmetadata`,n),e.removeEventListener(`error`,n),t()};e.addEventListener(`loadedmetadata`,n,{once:!0}),e.addEventListener(`error`,n,{once:!0})})}g(Ve,async(e,t)=>{let n=j.value?.music;if(!n||!n.playlist?.tracks?.length)return;await s();let r=J.value;if(!r)return;let i=!t||e[0]!==t[0]||e[1]!==t[1],a=!t||e[2]!==t[2];!i&&!a||(await Ye(r),r.currentTime=i?0:(n.positionMs||0)/1e3,n.playback===`MUSIC_PLAYBACK_PLAYING`?r.play().catch(()=>{B.value=`Браузер заблокировал воспроизведение музыки. Нажмите «Подготовить экран».`}):r.pause())},{immediate:!0}),g(()=>[j.value?.music?.volume,j.value?.soundEnabled],([e,t])=>{let n=J.value;n&&(n.volume=Math.max(0,Math.min(1,(e??100)/100)),n.muted=!t)},{immediate:!0});async function Xe(){if(!(!k.value||!A.value))try{await S.AdvanceScreenMusic({screenID:k.value,accessToken:A.value})}catch{B.value=`Не удалось синхронизировать музыку. Повторная попытка выполняется автоматически.`}}async function Ze(){if(!(!R.value||!O.query.screenID||!O.query.accessToken)){H.value=!0;try{await E.BindScreen({screenID:String(O.query.screenID),accessToken:String(O.query.accessToken),gameID:R.value}),U.value=!0}catch(e){D.error(e instanceof Error?e.message:`Не удалось привязать экран`)}finally{H.value=!1}}}async function Qe(){try{await document.documentElement.requestFullscreen?.()}catch{D.warning(`Полноэкранный режим недоступен в этом браузере`)}z.value=!0,await s();for(let e of[q.value,Y.value,J.value])if(e){e.muted=!0;try{await e.play(),e.pause(),e.currentTime=0,e.muted=!j.value?.soundEnabled}catch{B.value=`Браузер не разрешил подготовить воспроизведение на этом устройстве.`}}}return l(async()=>{if(Z.value){await Je(),V.value=!1;return}Ge();try{(!k.value||!A.value)&&await Ke(),await $(),Me.value=!0,X=window.setInterval(()=>{W.value=Date.now()},250)}catch(e){D.error(e instanceof Error?e.message:`Не удалось подготовить экран`)}finally{V.value=!1}}),ee(()=>{X!=null&&window.clearInterval(X),F!=null&&window.clearInterval(F)}),(s,l)=>(i(),_(p,null,[Z.value?(i(),_(`div`,ue,[o(y(b),{class:`binding-card`,title:`Привязка экрана`},{default:m(()=>[U.value?(i(),_(p,{key:0},[l[1]||=v(`p`,null,`Экран привязан к игре.`,-1),l[2]||=v(`p`,null,`Можно закрыть эту страницу.`,-1)],64)):(i(),_(p,{key:1},[l[4]||=v(`p`,null,`Выберите игру, к которой привязать экран.`,-1),o(y(ie),{value:R.value,"onUpdate:value":l[0]||=e=>R.value=e,options:Fe.value,placeholder:`Игра`},null,8,[`value`,`options`]),o(y(x),{type:`primary`,loading:H.value,disabled:R.value==null,onClick:Ze},{default:m(()=>[...l[3]||=[t(` Привязать `,-1)]]),_:1},8,[`loading`,`disabled`])],64))]),_:1})])):(i(),_(`div`,de,[V.value?(i(),_(`div`,fe,`Подготовка экрана…`)):(i(),_(p,{key:1},[j.value?.gameID?(i(),_(`div`,{key:1,class:`screen-content`,style:n(He.value)},[B.value?(i(),_(`p`,he,a(B.value),1)):e(``,!0),j.value.introAudio?u((i(),_(`div`,ge,[v(`audio`,{ref_key:`introAudioElement`,ref:q,src:Re.value,muted:!j.value.soundEnabled,controls:``},null,8,_e)],512)),[[C,Q.value===`SCREEN_MODE_INTRO`]]):e(``,!0),j.value.music?.playlist?.tracks?.length?(i(),_(`audio`,{key:2,ref_key:`musicAudioElement`,ref:J,src:Be.value,muted:!j.value.soundEnabled,onEnded:Xe},null,40,ve)):e(``,!0),j.value.conclusionVideo?u((i(),_(`div`,ye,[v(`video`,{ref_key:`conclusionVideoElement`,ref:Y,src:ze.value,muted:!j.value.soundEnabled,playsinline:``},null,8,be)],512)),[[C,Q.value===`SCREEN_MODE_CONCLUSION`]]):e(``,!0),Q.value===`SCREEN_MODE_CONCLUSION`&&!j.value.conclusionVideo?(i(),_(`div`,xe,`Видео закрывашки не задано`)):e(``,!0),Q.value===`SCREEN_MODE_INTRO_DONE`?(i(),_(`div`,Se,`Успехов`)):e(``,!0),Q.value===`SCREEN_MODE_CONCLUSION_DONE`?(i(),_(`div`,Ce,`Спасибо за игру!`)):e(``,!0),Q.value===`SCREEN_MODE_TEXT`?(i(),_(`div`,we,a(j.value.text),1)):e(``,!0),Q.value===`SCREEN_MODE_TIMER`?(i(),_(`div`,Te,[v(`h1`,Ee,a(j.value.timerLabel||`Перерыв`),1),v(`div`,De,a(Le.value),1)])):e(``,!0),Q.value===`SCREEN_MODE_RESULTS`?(i(),_(`div`,{key:9,ref_key:`resultsContainer`,ref:P,class:`results-screen`},[l[11]||=v(`h1`,null,`Результаты`,-1),v(`table`,null,[v(`thead`,null,[v(`tr`,null,[l[7]||=v(`th`,null,`Место`,-1),l[8]||=v(`th`,null,`Команда`,-1),(i(!0),_(p,null,r(N.value,e=>(i(),_(`th`,{key:e.code},a(e.code),1))),128)),l[9]||=v(`th`,null,`Сумма`,-1),l[10]||=v(`th`,null,`Ходы`,-1)])]),v(`tbody`,null,[(i(!0),_(p,null,r(M.value,e=>(i(),_(`tr`,{key:e.team?.ID},[v(`td`,null,a(e.place),1),v(`td`,null,a(e.team?.name),1),(i(!0),_(p,null,r(N.value,t=>(i(),_(`td`,{key:t.code},a(e.answers?.find(e=>e.questionCode===t.code)?.score??0),1))),128)),v(`td`,null,a(e.totalScore),1),v(`td`,null,a(e.actionsCount),1)]))),128))])])],512)):e(``,!0),Q.value===`SCREEN_MODE_COVER`?(i(),_(`div`,Oe,[j.value.coverImage?(i(),_(`img`,{key:0,src:j.value.coverImage,class:`cover-image`,alt:`Обложка дела`},null,8,ke)):e(``,!0),z.value?e(``,!0):(i(),_(`div`,Ae,[o(y(x),{type:`primary`,onClick:Qe},{default:m(()=>[...l[12]||=[t(`Подготовить экран`,-1)]]),_:1})]))])):e(``,!0)],4)):(i(),_(`div`,pe,[o(y(b),{class:`qr-card`,title:`Подключение экрана`},{default:m(()=>[Pe.value?(i(),_(`div`,me,[o(y(ae),{value:Pe.value,size:260,padding:0},null,8,[`value`])])):e(``,!0),l[6]||=v(`p`,null,`Отсканируйте QR телефоном организатора и выберите игру.`,-1),z.value?e(``,!0):(i(),c(y(x),{key:1,type:`primary`,onClick:Qe},{default:m(()=>[...l[5]||=[t(`Подготовить экран`,-1)]]),_:1}))]),_:1})]))],64))])),Z.value?(i(),c(se,{key:2,active:`games`})):e(``,!0)],64))}}),[[`__scopeId`,`data-v-cf99ca4a`]]),D=h({__name:`ScreenView`,setup(e){return(e,t)=>(i(),c(E))}});export{D as default}; \ No newline at end of file diff --git a/frontend/dist/assets/Select-BDMkhuNb.js b/frontend/dist/assets/Select-CvgyidIa.js similarity index 97% rename from frontend/dist/assets/Select-BDMkhuNb.js rename to frontend/dist/assets/Select-CvgyidIa.js index 580e942..e1831fa 100644 --- a/frontend/dist/assets/Select-BDMkhuNb.js +++ b/frontend/dist/assets/Select-CvgyidIa.js @@ -1,4 +1,4 @@ -import{H as e,J as t,Mt as n,Rt as r,U as i,Ut as a,Yt as o,_n as s,an as c,at as l,bt as u,g as d,hn as f,ht as p,it as m,kt as h,nn as g,nt as _,ot as v,p as y,rn as b,st as x,tt as S}from"./client-vZFx54yb.js";import{a as C,i as w,n as T,o as E,r as D,t as O}from"./Follower-CdAIcE29.js";import{a as k,d as A,i as j,l as ee,n as te,r as M,s as N,t as ne}from"./utils-DJHY09qj.js";import{f as re,o as P}from"./Card-DO3oxl4F.js";import{o as ie,r as F}from"./es-DSPBzgpf.js";import{i as ae,m as I,n as L,t as R}from"./Suffix-iau-0Xu1.js";import{t as z}from"./use-merged-state-CEu_RNRJ.js";import{t as oe}from"./use-compitable-CCPds9Cc.js";import{t as B}from"./Popover-CgvsZgY0.js";import{r as se}from"./keep-ChD__NI5.js";import{s as V}from"./_plugin-vue_export-helper-FodinAjS.js";import{n as H}from"./use-form-item-DwWmLpgT.js";import{Y as U,Z as W,at as ce,k as G,nt as K,x as le}from"./index-Ci0r-yTA.js";var q=`v-hidden`,ue=T(`[v-hidden]`,{display:`none!important`}),J=h({name:`Overflow`,props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:n}){let r=f(null),i=f(null);function o(t){let{value:a}=r,{getCounter:o,getTail:s}=e,c;if(c=o===void 0?i.value:o(),!a||!c)return;c.hasAttribute(q)&&c.removeAttribute(q);let{children:l}=a;if(t.showAllItemsBeforeCalculate)for(let e of l)e.hasAttribute(q)&&e.removeAttribute(q);let u=a.offsetWidth,d=[],f=n.tail?s?.():null,p=f?f.offsetWidth:0,m=!1,h=a.children.length-+!!n.tail;for(let t=0;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 s=t();return ue.mount({id:`vueuc/overflow`,head:!0,anchorMetaName:D,ssr:s}),a(()=>o({showAllItemsBeforeCalculate:!1})),{selfRef:r,counterRef:i,sync:o}},render(){let{$slots:e}=this;return r(()=>this.sync({showAllItemsBeforeCalculate:!1})),n(`div`,{class:`v-overflow`,ref:`selfRef`},[o(e,`default`),e.counter?e.counter():n(`span`,{style:{display:`inline-block`},ref:`counterRef`}),e.tail?e.tail():null])}});function Y(e){switch(typeof e){case`string`:return e||void 0;case`number`:return String(e);default:return}}var de=S([_(`base-selection`,` +import{H as e,J as t,Mt as n,Rt as r,U as i,Ut as a,Yt as o,_n as s,an as c,at as l,bt as u,g as d,hn as f,ht as p,it as m,kt as h,nn as g,nt as _,ot as v,p as y,rn as b,st as x,tt as S}from"./client-CREJv8AD.js";import{a as C,i as w,n as T,o as E,r as D,t as O}from"./Follower-DAIDHT2D.js";import{a as k,d as A,i as j,l as ee,n as te,r as M,s as N,t as ne}from"./utils-BJnNAJm2.js";import{f as re,o as P}from"./Card-CJC2gN5t.js";import{o as ie,r as F}from"./es-CevmKZP_.js";import{i as ae,m as I,n as L,t as R}from"./Suffix-iFHNypz-.js";import{t as z}from"./use-merged-state-B6hyXujy.js";import{t as oe}from"./use-compitable-Be-NyPXq.js";import{t as B}from"./Popover-C32Z2jyV.js";import{r as se}from"./keep-Du8BxhQs.js";import{s as V}from"./_plugin-vue_export-helper-BkfvhliL.js";import{n as H}from"./use-form-item-CbDeFP5E.js";import{Y as U,Z as W,at as ce,k as G,nt as K,x as le}from"./index-DZpFhWFx.js";var q=`v-hidden`,ue=T(`[v-hidden]`,{display:`none!important`}),J=h({name:`Overflow`,props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:n}){let r=f(null),i=f(null);function o(t){let{value:a}=r,{getCounter:o,getTail:s}=e,c;if(c=o===void 0?i.value:o(),!a||!c)return;c.hasAttribute(q)&&c.removeAttribute(q);let{children:l}=a;if(t.showAllItemsBeforeCalculate)for(let e of l)e.hasAttribute(q)&&e.removeAttribute(q);let u=a.offsetWidth,d=[],f=n.tail?s?.():null,p=f?f.offsetWidth:0,m=!1,h=a.children.length-+!!n.tail;for(let t=0;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 s=t();return ue.mount({id:`vueuc/overflow`,head:!0,anchorMetaName:D,ssr:s}),a(()=>o({showAllItemsBeforeCalculate:!1})),{selfRef:r,counterRef:i,sync:o}},render(){let{$slots:e}=this;return r(()=>this.sync({showAllItemsBeforeCalculate:!1})),n(`div`,{class:`v-overflow`,ref:`selfRef`},[o(e,`default`),e.counter?e.counter():n(`span`,{style:{display:`inline-block`},ref:`counterRef`}),e.tail?e.tail():null])}});function Y(e){switch(typeof e){case`string`:return e||void 0;case`number`:return String(e);default:return}}var de=S([_(`base-selection`,` --n-padding-single: var(--n-padding-single-top) var(--n-padding-single-right) var(--n-padding-single-bottom) var(--n-padding-single-left); --n-padding-multiple: var(--n-padding-multiple-top) var(--n-padding-multiple-right) var(--n-padding-multiple-bottom) var(--n-padding-multiple-left); position: relative; diff --git a/frontend/dist/assets/Space-BBIv_CVW.js b/frontend/dist/assets/Space-ChWks6od.js similarity index 90% rename from frontend/dist/assets/Space-BBIv_CVW.js rename to frontend/dist/assets/Space-ChWks6od.js index 1b47afa..05bcd0c 100644 --- a/frontend/dist/assets/Space-BBIv_CVW.js +++ b/frontend/dist/assets/Space-ChWks6od.js @@ -1 +1 @@ -import{Mt as e,U as t,bt as n,g as r,kt as i,mt as a,p as o,st as s}from"./client-vZFx54yb.js";import{a as c,i as l}from"./es-DSPBzgpf.js";import{a as u}from"./Button-Bx9JIj0e.js";import{t as d}from"./flatten-IKpQWAcc.js";import{t as f}from"./get-slot-6kXJmSMP.js";import{p}from"./index-Ci0r-yTA.js";function m(){return p}var h={name:`Space`,self:m},g;function _(){if(!u)return!0;if(g===void 0){let e=document.createElement(`div`);e.style.display=`flex`,e.style.flexDirection=`column`,e.style.rowGap=`1px`,e.appendChild(document.createElement(`div`)),e.appendChild(document.createElement(`div`)),document.body.appendChild(e);let t=e.scrollHeight===1;return document.body.removeChild(e),g=t}return g}var v=i({name:`Space`,props:Object.assign(Object.assign({},o.props),{align:String,justify:{type:String,default:`start`},inline:Boolean,vertical:Boolean,reverse:Boolean,size:[String,Number,Array],wrapItem:{type:Boolean,default:!0},itemClass:String,itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),setup(e){let{mergedClsPrefixRef:i,mergedRtlRef:a,mergedComponentPropsRef:u}=t(e),d=n(()=>e.size||u?.value?.Space?.size||`medium`),f=o(`Space`,`-space`,void 0,h,e,i),p=r(`Space`,a,i);return{useGap:_(),rtlEnabled:p,mergedClsPrefix:i,margin:n(()=>{let e=d.value;if(Array.isArray(e))return{horizontal:e[0],vertical:e[1]};if(typeof e==`number`)return{horizontal:e,vertical:e};let{self:{[s(`gap`,e)]:t}}=f.value,{row:n,col:r}=c(t);return{horizontal:l(r),vertical:l(n)}})}},render(){let{vertical:t,reverse:n,align:r,inline:i,justify:o,itemClass:s,itemStyle:c,margin:l,wrap:u,mergedClsPrefix:p,rtlEnabled:m,useGap:h,wrapItem:g,internalUseGap:_}=this,v=d(f(this),!1);if(!v.length)return null;let y=`${l.horizontal}px`,b=`${l.horizontal/2}px`,x=`${l.vertical}px`,S=`${l.vertical/2}px`,C=v.length-1,w=o.startsWith(`space-`);return e(`div`,{role:`none`,class:[`${p}-space`,m&&`${p}-space--rtl`],style:{display:i?`inline-flex`:`flex`,flexDirection:t&&!n?`column`:t&&n?`column-reverse`:!t&&n?`row-reverse`:`row`,justifyContent:[`start`,`end`].includes(o)?`flex-${o}`:o,flexWrap:!u||t?`nowrap`:`wrap`,marginTop:h||t?``:`-${S}`,marginBottom:h||t?``:`-${S}`,alignItems:r,gap:h?`${l.vertical}px ${l.horizontal}px`:``}},!g&&(h||_)?v:v.map((n,r)=>n.type===a?n:e(`div`,{role:`none`,class:s,style:[c,{maxWidth:`100%`},h?``:t?{marginBottom:r===C?``:x}:m?{marginLeft:w?o===`space-between`&&r===C?``:b:r===C?``:y,marginRight:w?o===`space-between`&&r===0?``:b:``,paddingTop:S,paddingBottom:S}:{marginRight:w?o===`space-between`&&r===C?``:b:r===C?``:y,marginLeft:w?o===`space-between`&&r===0?``:b:``,paddingTop:S,paddingBottom:S}]},n)))}});export{v as t}; \ No newline at end of file +import{Mt as e,U as t,bt as n,g as r,kt as i,mt as a,p as o,st as s}from"./client-CREJv8AD.js";import{a as c,i as l}from"./es-CevmKZP_.js";import{a as u}from"./Button-MvNgQLzL.js";import{t as d}from"./flatten-BBShpVqF.js";import{t as f}from"./get-slot-6kXJmSMP.js";import{p}from"./index-DZpFhWFx.js";function m(){return p}var h={name:`Space`,self:m},g;function _(){if(!u)return!0;if(g===void 0){let e=document.createElement(`div`);e.style.display=`flex`,e.style.flexDirection=`column`,e.style.rowGap=`1px`,e.appendChild(document.createElement(`div`)),e.appendChild(document.createElement(`div`)),document.body.appendChild(e);let t=e.scrollHeight===1;return document.body.removeChild(e),g=t}return g}var v=i({name:`Space`,props:Object.assign(Object.assign({},o.props),{align:String,justify:{type:String,default:`start`},inline:Boolean,vertical:Boolean,reverse:Boolean,size:[String,Number,Array],wrapItem:{type:Boolean,default:!0},itemClass:String,itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),setup(e){let{mergedClsPrefixRef:i,mergedRtlRef:a,mergedComponentPropsRef:u}=t(e),d=n(()=>e.size||u?.value?.Space?.size||`medium`),f=o(`Space`,`-space`,void 0,h,e,i),p=r(`Space`,a,i);return{useGap:_(),rtlEnabled:p,mergedClsPrefix:i,margin:n(()=>{let e=d.value;if(Array.isArray(e))return{horizontal:e[0],vertical:e[1]};if(typeof e==`number`)return{horizontal:e,vertical:e};let{self:{[s(`gap`,e)]:t}}=f.value,{row:n,col:r}=c(t);return{horizontal:l(r),vertical:l(n)}})}},render(){let{vertical:t,reverse:n,align:r,inline:i,justify:o,itemClass:s,itemStyle:c,margin:l,wrap:u,mergedClsPrefix:p,rtlEnabled:m,useGap:h,wrapItem:g,internalUseGap:_}=this,v=d(f(this),!1);if(!v.length)return null;let y=`${l.horizontal}px`,b=`${l.horizontal/2}px`,x=`${l.vertical}px`,S=`${l.vertical/2}px`,C=v.length-1,w=o.startsWith(`space-`);return e(`div`,{role:`none`,class:[`${p}-space`,m&&`${p}-space--rtl`],style:{display:i?`inline-flex`:`flex`,flexDirection:t&&!n?`column`:t&&n?`column-reverse`:!t&&n?`row-reverse`:`row`,justifyContent:[`start`,`end`].includes(o)?`flex-${o}`:o,flexWrap:!u||t?`nowrap`:`wrap`,marginTop:h||t?``:`-${S}`,marginBottom:h||t?``:`-${S}`,alignItems:r,gap:h?`${l.vertical}px ${l.horizontal}px`:``}},!g&&(h||_)?v:v.map((n,r)=>n.type===a?n:e(`div`,{role:`none`,class:s,style:[c,{maxWidth:`100%`},h?``:t?{marginBottom:r===C?``:x}:m?{marginLeft:w?o===`space-between`&&r===C?``:b:r===C?``:y,marginRight:w?o===`space-between`&&r===0?``:b:``,paddingTop:S,paddingBottom:S}:{marginRight:w?o===`space-between`&&r===C?``:b:r===C?``:y,marginLeft:w?o===`space-between`&&r===0?``:b:``,paddingTop:S,paddingBottom:S}]},n)))}});export{v as t}; \ No newline at end of file diff --git a/frontend/dist/assets/Spin-Dj4Psaz0.js b/frontend/dist/assets/Spin-fslC_m7x.js similarity index 92% rename from frontend/dist/assets/Spin-Dj4Psaz0.js rename to frontend/dist/assets/Spin-fslC_m7x.js index b20c01c..18a8d23 100644 --- a/frontend/dist/assets/Spin-Dj4Psaz0.js +++ b/frontend/dist/assets/Spin-fslC_m7x.js @@ -1,4 +1,4 @@ -import{H as e,Mt as t,U as n,at as r,bt as i,hn as a,kt as o,nt as s,p as c,rn as l,st as u,tt as d}from"./client-vZFx54yb.js";import{s as f}from"./es-DSPBzgpf.js";import{t as p}from"./use-compitable-CCPds9Cc.js";import{t as m}from"./fade-in.cssr-BsIdh_o6.js";import{F as h,P as g,l as _,nt as v}from"./index-Ci0r-yTA.js";var y=d([d(`@keyframes spin-rotate`,` +import{H as e,Mt as t,U as n,at as r,bt as i,hn as a,kt as o,nt as s,p as c,rn as l,st as u,tt as d}from"./client-CREJv8AD.js";import{s as f}from"./es-CevmKZP_.js";import{t as p}from"./use-compitable-Be-NyPXq.js";import{t as m}from"./fade-in.cssr-CL3cAgSL.js";import{F as h,P as g,l as _,nt as v}from"./index-DZpFhWFx.js";var y=d([d(`@keyframes spin-rotate`,` from { transform: rotate(0); } diff --git a/frontend/dist/assets/Suffix-iau-0Xu1.js b/frontend/dist/assets/Suffix-iFHNypz-.js similarity index 98% rename from frontend/dist/assets/Suffix-iau-0Xu1.js rename to frontend/dist/assets/Suffix-iFHNypz-.js index aa822f4..1b98671 100644 --- a/frontend/dist/assets/Suffix-iau-0Xu1.js +++ b/frontend/dist/assets/Suffix-iFHNypz-.js @@ -1,4 +1,4 @@ -import{At as e,Dt as t,Mt as n,Pt as r,W as i,Y as a,_n as o,bt as s,gt as c,h as l,hn as u,ht as d,it as f,kt as p,m as ee,mn as m,mt as h,nn as g,nt as _,q as v,tt as y}from"./client-vZFx54yb.js";import{d as b,u as x}from"./Card-DO3oxl4F.js";import{i as S}from"./_plugin-vue_export-helper-FodinAjS.js";import{t as C}from"./flatten-IKpQWAcc.js";import{G as w,P as T,R as E,U as D,W as O}from"./index-Ci0r-yTA.js";function te(e){let t=u(!!e.value);if(t.value)return m(t);let n=g(e,e=>{e&&(t.value=!0,n())});return m(t)}function ne(){return e()!==null}var re=typeof window<`u`,ie=a(`n-drawer-body`);a(`n-drawer`);var ae=a(`n-modal-body`),oe=a(`n-modal-provider`),k=a(`n-modal`),A=a(`n-popover-body`);function j(e,t,n=`default`){let r=t[n];if(r===void 0)throw Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}function M(e,n=!0,r=[]){return e.forEach(e=>{if(e!==null){if(typeof e!=`object`){(typeof e==`string`||typeof e==`number`)&&r.push(t(String(e)));return}if(Array.isArray(e)){M(e,n,r);return}if(e.type===d){if(e.children===null)return;Array.isArray(e.children)&&M(e.children,n,r)}else e.type!==h&&r.push(e)}}),r}function N(e,t,n=`default`){let r=t[n];if(r===void 0)throw Error(`[vueuc/${e}]: slot[${n}] is empty.`);let i=M(r());if(i.length===1)return i[0];throw Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}var P=`@@coContext`,F={mounted(e,{value:t,modifiers:n}){e[P]={handler:void 0},typeof t==`function`&&(e[P].handler=t,b(`clickoutside`,e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){let r=e[P];typeof t==`function`?r.handler?r.handler!==t&&(x(`clickoutside`,e,r.handler,{capture:n.capture}),r.handler=t,b(`clickoutside`,e,t,{capture:n.capture})):(e[P].handler=t,b(`clickoutside`,e,t,{capture:n.capture})):r.handler&&=(x(`clickoutside`,e,r.handler,{capture:n.capture}),void 0)},unmounted(e,{modifiers:t}){let{handler:n}=e[P];n&&x(`clickoutside`,e,n,{capture:t.capture}),e[P].handler=void 0}};function I(e,t){console.error(`[vdirs/${e}]: ${t}`)}var L=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&&I(`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}`)})}},R=`@@ziContext`,z={mounted(e,t){let{value:n={}}=t,{zIndex:r,enabled:i}=n;e[R]={enabled:!!i,initialized:!1},i&&(L.ensureZIndex(e,r),e[R].initialized=!0)},updated(e,t){let{value:n={}}=t,{zIndex:r,enabled:i}=n,a=e[R].enabled;i&&!a&&(L.ensureZIndex(e,r),e[R].initialized=!0),e[R].enabled=!!i},unmounted(e,t){if(!e[R].initialized)return;let{value:n={}}=t,{zIndex:r}=n;L.unregister(e,r)}},B=p({name:`LazyTeleport`,props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:te(o(e,`show`)),mergedTo:s(()=>{let{to:t}=e;return t??`body`})}},render(){return this.showTeleport?this.disabled?j(`lazy-teleport`,this.$slots):n(c,{disabled:this.disabled,to:this.mergedTo},j(`lazy-teleport`,this.$slots)):null}});function V(e,t=`default`,n=void 0){let r=e[t];if(!r)return v(`getFirstSlotVNode`,`slot[${t}] is empty`),null;let i=C(r(n));return i.length===1?i[0]:(v(`getFirstSlotVNode`,`slot[${t}] should have exactly one child`),null)}function H(e,t,n){if(!t)return null;let r=C(t(n));return r.length===1?r[0]:(v(`getFirstSlotVNode`,`slot[${e}] should have exactly one child`),null)}var U={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 W(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}function G(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 K(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)?se(s,e=>e.test(o)):q(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 q(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function se(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 ce={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`}},le=(e,t,n)=>{let r,i=ce[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},ue={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},de=(e,t,n,r)=>ue[e],fe={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:G({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:G({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:G({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:G({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:G({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`})},pe={ordinalNumber:J({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:K({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:K({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:K({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:K({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:K({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`})},Y={code:`en-US`,formatDistance:le,formatLong:{date:W({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:W({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:W({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},formatRelative:de,localize:fe,match:pe,options:{weekStartsOn:0,firstWeekContainsDate:1}},me={name:`en-US`,locale:Y};function he(e){let{mergedLocaleRef:t,mergedDateLocaleRef:n}=r(i,null)||{},a=s(()=>t?.value?.[e]??U[e]);return{dateLocaleRef:s(()=>n?.value??me),localeRef:a}}var ge=p({name:`ChevronDown`,render(){return n(`svg`,{viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},n(`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`}))}}),X=D(`clear`,()=>n(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},n(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},n(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},n(`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`}))))),_e=_(`base-clear`,` +import{At as e,Dt as t,Mt as n,Pt as r,W as i,Y as a,_n as o,bt as s,gt as c,h as l,hn as u,ht as d,it as f,kt as p,m as ee,mn as m,mt as h,nn as g,nt as _,q as v,tt as y}from"./client-CREJv8AD.js";import{d as b,u as x}from"./Card-CJC2gN5t.js";import{i as S}from"./_plugin-vue_export-helper-BkfvhliL.js";import{t as C}from"./flatten-BBShpVqF.js";import{G as w,P as T,R as E,U as D,W as O}from"./index-DZpFhWFx.js";function te(e){let t=u(!!e.value);if(t.value)return m(t);let n=g(e,e=>{e&&(t.value=!0,n())});return m(t)}function ne(){return e()!==null}var re=typeof window<`u`,ie=a(`n-drawer-body`);a(`n-drawer`);var ae=a(`n-modal-body`),oe=a(`n-modal-provider`),k=a(`n-modal`),A=a(`n-popover-body`);function j(e,t,n=`default`){let r=t[n];if(r===void 0)throw Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}function M(e,n=!0,r=[]){return e.forEach(e=>{if(e!==null){if(typeof e!=`object`){(typeof e==`string`||typeof e==`number`)&&r.push(t(String(e)));return}if(Array.isArray(e)){M(e,n,r);return}if(e.type===d){if(e.children===null)return;Array.isArray(e.children)&&M(e.children,n,r)}else e.type!==h&&r.push(e)}}),r}function N(e,t,n=`default`){let r=t[n];if(r===void 0)throw Error(`[vueuc/${e}]: slot[${n}] is empty.`);let i=M(r());if(i.length===1)return i[0];throw Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}var P=`@@coContext`,F={mounted(e,{value:t,modifiers:n}){e[P]={handler:void 0},typeof t==`function`&&(e[P].handler=t,b(`clickoutside`,e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){let r=e[P];typeof t==`function`?r.handler?r.handler!==t&&(x(`clickoutside`,e,r.handler,{capture:n.capture}),r.handler=t,b(`clickoutside`,e,t,{capture:n.capture})):(e[P].handler=t,b(`clickoutside`,e,t,{capture:n.capture})):r.handler&&=(x(`clickoutside`,e,r.handler,{capture:n.capture}),void 0)},unmounted(e,{modifiers:t}){let{handler:n}=e[P];n&&x(`clickoutside`,e,n,{capture:t.capture}),e[P].handler=void 0}};function I(e,t){console.error(`[vdirs/${e}]: ${t}`)}var L=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&&I(`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}`)})}},R=`@@ziContext`,z={mounted(e,t){let{value:n={}}=t,{zIndex:r,enabled:i}=n;e[R]={enabled:!!i,initialized:!1},i&&(L.ensureZIndex(e,r),e[R].initialized=!0)},updated(e,t){let{value:n={}}=t,{zIndex:r,enabled:i}=n,a=e[R].enabled;i&&!a&&(L.ensureZIndex(e,r),e[R].initialized=!0),e[R].enabled=!!i},unmounted(e,t){if(!e[R].initialized)return;let{value:n={}}=t,{zIndex:r}=n;L.unregister(e,r)}},B=p({name:`LazyTeleport`,props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:te(o(e,`show`)),mergedTo:s(()=>{let{to:t}=e;return t??`body`})}},render(){return this.showTeleport?this.disabled?j(`lazy-teleport`,this.$slots):n(c,{disabled:this.disabled,to:this.mergedTo},j(`lazy-teleport`,this.$slots)):null}});function V(e,t=`default`,n=void 0){let r=e[t];if(!r)return v(`getFirstSlotVNode`,`slot[${t}] is empty`),null;let i=C(r(n));return i.length===1?i[0]:(v(`getFirstSlotVNode`,`slot[${t}] should have exactly one child`),null)}function H(e,t,n){if(!t)return null;let r=C(t(n));return r.length===1?r[0]:(v(`getFirstSlotVNode`,`slot[${e}] should have exactly one child`),null)}var U={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 W(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}function G(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 K(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)?se(s,e=>e.test(o)):q(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 q(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function se(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 ce={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`}},le=(e,t,n)=>{let r,i=ce[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},ue={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},de=(e,t,n,r)=>ue[e],fe={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:G({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:G({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:G({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:G({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:G({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`})},pe={ordinalNumber:J({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:K({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:K({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:K({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:K({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:K({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`})},Y={code:`en-US`,formatDistance:le,formatLong:{date:W({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:W({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:W({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},formatRelative:de,localize:fe,match:pe,options:{weekStartsOn:0,firstWeekContainsDate:1}},me={name:`en-US`,locale:Y};function he(e){let{mergedLocaleRef:t,mergedDateLocaleRef:n}=r(i,null)||{},a=s(()=>t?.value?.[e]??U[e]);return{dateLocaleRef:s(()=>n?.value??me),localeRef:a}}var ge=p({name:`ChevronDown`,render(){return n(`svg`,{viewBox:`0 0 16 16`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},n(`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`}))}}),X=D(`clear`,()=>n(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},n(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},n(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},n(`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`}))))),_e=_(`base-clear`,` flex-shrink: 0; height: 1em; width: 1em; diff --git a/frontend/dist/assets/Switch-CAv0P3By.js b/frontend/dist/assets/Switch-Dp58TJPL.js similarity index 96% rename from frontend/dist/assets/Switch-CAv0P3By.js rename to frontend/dist/assets/Switch-Dp58TJPL.js index 3fc1060..3283a86 100644 --- a/frontend/dist/assets/Switch-CAv0P3By.js +++ b/frontend/dist/assets/Switch-Dp58TJPL.js @@ -1,4 +1,4 @@ -import{H as e,Mt as t,U as n,X as r,_n as i,at as a,bt as o,d as s,hn as c,it as l,kt as u,nt as d,ot as f,p,st as m,tt as h}from"./client-vZFx54yb.js";import{i as g,s as _}from"./es-DSPBzgpf.js";import{t as v}from"./use-merged-state-CEu_RNRJ.js";import{o as y,r as b,s as x}from"./_plugin-vue_export-helper-FodinAjS.js";import{n as S}from"./use-form-item-DwWmLpgT.js";import{P as C,R as w,W as T,c as E}from"./index-Ci0r-yTA.js";var D=u({name:`Remove`,render(){return t(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},t(`line`,{x1:`400`,y1:`256`,x2:`112`,y2:`256`,style:` +import{H as e,Mt as t,U as n,X as r,_n as i,at as a,bt as o,d as s,hn as c,it as l,kt as u,nt as d,ot as f,p,st as m,tt as h}from"./client-CREJv8AD.js";import{i as g,s as _}from"./es-CevmKZP_.js";import{t as v}from"./use-merged-state-B6hyXujy.js";import{o as y,r as b,s as x}from"./_plugin-vue_export-helper-BkfvhliL.js";import{n as S}from"./use-form-item-CbDeFP5E.js";import{P as C,R as w,W as T,c as E}from"./index-DZpFhWFx.js";var D=u({name:`Remove`,render(){return t(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},t(`line`,{x1:`400`,y1:`256`,x2:`112`,y2:`256`,style:` fill: none; stroke: currentColor; stroke-linecap: round; diff --git a/frontend/dist/assets/Tabs-DXSr-RHo.js b/frontend/dist/assets/Tabs-BCjotlcB.js similarity index 98% rename from frontend/dist/assets/Tabs-DXSr-RHo.js rename to frontend/dist/assets/Tabs-BCjotlcB.js index 3c7cb12..395279b 100644 --- a/frontend/dist/assets/Tabs-DXSr-RHo.js +++ b/frontend/dist/assets/Tabs-BCjotlcB.js @@ -1,4 +1,4 @@ -import{H as e,I as t,J as n,K as r,Lt as i,Mt as a,Pt as o,Rt as s,U as c,Ut as l,V as u,Y as d,_n as f,an as p,at as m,bt as h,hn as g,ht as _,it as v,kt as y,nn as b,nt as x,ot as S,p as C,qt as ee,rn as te,st as w,tt as T,yt as E}from"./client-vZFx54yb.js";import{l as ne,n as D,r as O}from"./Follower-CdAIcE29.js";import{c as k}from"./Card-DO3oxl4F.js";import{i as re,o as A}from"./es-DSPBzgpf.js";import{t as ie}from"./use-merged-state-CEu_RNRJ.js";import{t as j}from"./use-compitable-CCPds9Cc.js";import{o as M,s as N}from"./_plugin-vue_export-helper-FodinAjS.js";import{t as ae}from"./flatten-IKpQWAcc.js";import{t as P}from"./Add-7eYe2Si6.js";import{G as oe,J as se,L as F,X as I,Y as L,at as R,rt as z,s as ce}from"./index-Ci0r-yTA.js";var B=D(`.v-x-scroll`,{overflow:`auto`,scrollbarWidth:`none`},[D(`&::-webkit-scrollbar`,{width:0,height:0})]),le=y({name:`XScroll`,props:{disabled:Boolean,onScroll:Function},setup(){let e=g(null);function t(e){!(e.currentTarget.offsetWidth=n||t<0||f&&r>=o}function v(){var e=q();if(_(e))return y(e);c=setTimeout(v,g(e))}function y(e){return c=void 0,p&&i?m(e):(i=a=void 0,s)}function b(){c!==void 0&&clearTimeout(c),u=0,i=l=a=c=void 0}function x(){return c===void 0?s:y(q())}function S(){var e=q(),t=_(e);if(i=arguments,a=this,l=e,t){if(c===void 0)return h(l);if(f)return clearTimeout(c),c=setTimeout(v,n),m(l)}return c===void 0&&(c=setTimeout(v,n)),s}return S.cancel=b,S.flush=x,S}var _e=`Expected a function`;function ve(e,n,r){var i=!0,a=!0;if(typeof e!=`function`)throw TypeError(_e);return t(r)&&(i=`leading`in r?!!r.leading:i,a=`trailing`in r?!!r.trailing:a),J(e,n,{leading:i,maxWait:n,trailing:a})}var ye=d(`n-tabs`),be={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]},Y=y({__TAB_PANE__:!0,name:`TabPane`,alias:[`TabPanel`],props:be,slots:Object,setup(e){let t=o(ye,null);return t||r(`tab-pane`,"`n-tab-pane` must be placed inside `n-tabs`."),{style:t.paneStyleRef,class:t.paneClassRef,mergedClsPrefix:t.mergedClsPrefixRef}},render(){return a(`div`,{class:[`${this.mergedClsPrefix}-tab-pane`,this.class],style:this.style},this.$slots)}}),X=y({__TAB__:!0,inheritAttrs:!1,name:`Tab`,props:Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},I(be,[`displayDirective`])),setup(e){let{mergedClsPrefixRef:t,valueRef:n,typeRef:r,closableRef:i,tabStyleRef:a,addTabStyleRef:s,tabClassRef:c,addTabClassRef:l,tabChangeIdRef:u,onBeforeLeaveRef:d,triggerRef:f,handleAdd:p,activateTab:m,handleClose:g}=o(ye);return{trigger:f,mergedClosable:h(()=>{if(e.internalAddable)return!1;let{closable:t}=e;return t===void 0?i.value:t}),style:a,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&&m(t)}):m(t)}}}},render(){let{internalAddable:e,clsPrefix:t,name:n,disabled:r,label:o,tab:s,value:c,mergedClosable:l,trigger:u,$slots:{default:d}}=this,f=o??s;return a(`div`,{class:`${t}-tabs-tab-wrapper`},this.internalLeftPadded?a(`div`,{class:`${t}-tabs-tab-pad`}):null,a(`div`,Object.assign({key:n,"data-name":n,"data-disabled":r?!0:void 0},i({class:[`${t}-tabs-tab`,c===n&&`${t}-tabs-tab--active`,r&&`${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)),a(`span`,{class:`${t}-tabs-tab__label`},e?a(_,null,a(`div`,{class:`${t}-tabs-tab__height-placeholder`},`\xA0`),a(oe,{clsPrefix:t},{default:()=>a(P,null)})):d?d():typeof f==`object`?f:L(f??n)),l&&this.type===`card`?a(F,{clsPrefix:t,class:`${t}-tabs-tab__close`,onClick:this.handleClose,disabled:r}):null))}}),xe=x(`tabs`,` +import{H as e,I as t,J as n,K as r,Lt as i,Mt as a,Pt as o,Rt as s,U as c,Ut as l,V as u,Y as d,_n as f,an as p,at as m,bt as h,hn as g,ht as _,it as v,kt as y,nn as b,nt as x,ot as S,p as C,qt as ee,rn as te,st as w,tt as T,yt as E}from"./client-CREJv8AD.js";import{l as ne,n as D,r as O}from"./Follower-DAIDHT2D.js";import{c as k}from"./Card-CJC2gN5t.js";import{i as re,o as A}from"./es-CevmKZP_.js";import{t as ie}from"./use-merged-state-B6hyXujy.js";import{t as j}from"./use-compitable-Be-NyPXq.js";import{o as M,s as N}from"./_plugin-vue_export-helper-BkfvhliL.js";import{t as ae}from"./flatten-BBShpVqF.js";import{t as P}from"./Add-Cwgq0nEf.js";import{G as oe,J as se,L as F,X as I,Y as L,at as R,rt as z,s as ce}from"./index-DZpFhWFx.js";var B=D(`.v-x-scroll`,{overflow:`auto`,scrollbarWidth:`none`},[D(`&::-webkit-scrollbar`,{width:0,height:0})]),le=y({name:`XScroll`,props:{disabled:Boolean,onScroll:Function},setup(){let e=g(null);function t(e){!(e.currentTarget.offsetWidth=n||t<0||f&&r>=o}function v(){var e=q();if(_(e))return y(e);c=setTimeout(v,g(e))}function y(e){return c=void 0,p&&i?m(e):(i=a=void 0,s)}function b(){c!==void 0&&clearTimeout(c),u=0,i=l=a=c=void 0}function x(){return c===void 0?s:y(q())}function S(){var e=q(),t=_(e);if(i=arguments,a=this,l=e,t){if(c===void 0)return h(l);if(f)return clearTimeout(c),c=setTimeout(v,n),m(l)}return c===void 0&&(c=setTimeout(v,n)),s}return S.cancel=b,S.flush=x,S}var _e=`Expected a function`;function ve(e,n,r){var i=!0,a=!0;if(typeof e!=`function`)throw TypeError(_e);return t(r)&&(i=`leading`in r?!!r.leading:i,a=`trailing`in r?!!r.trailing:a),J(e,n,{leading:i,maxWait:n,trailing:a})}var ye=d(`n-tabs`),be={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]},Y=y({__TAB_PANE__:!0,name:`TabPane`,alias:[`TabPanel`],props:be,slots:Object,setup(e){let t=o(ye,null);return t||r(`tab-pane`,"`n-tab-pane` must be placed inside `n-tabs`."),{style:t.paneStyleRef,class:t.paneClassRef,mergedClsPrefix:t.mergedClsPrefixRef}},render(){return a(`div`,{class:[`${this.mergedClsPrefix}-tab-pane`,this.class],style:this.style},this.$slots)}}),X=y({__TAB__:!0,inheritAttrs:!1,name:`Tab`,props:Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},I(be,[`displayDirective`])),setup(e){let{mergedClsPrefixRef:t,valueRef:n,typeRef:r,closableRef:i,tabStyleRef:a,addTabStyleRef:s,tabClassRef:c,addTabClassRef:l,tabChangeIdRef:u,onBeforeLeaveRef:d,triggerRef:f,handleAdd:p,activateTab:m,handleClose:g}=o(ye);return{trigger:f,mergedClosable:h(()=>{if(e.internalAddable)return!1;let{closable:t}=e;return t===void 0?i.value:t}),style:a,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&&m(t)}):m(t)}}}},render(){let{internalAddable:e,clsPrefix:t,name:n,disabled:r,label:o,tab:s,value:c,mergedClosable:l,trigger:u,$slots:{default:d}}=this,f=o??s;return a(`div`,{class:`${t}-tabs-tab-wrapper`},this.internalLeftPadded?a(`div`,{class:`${t}-tabs-tab-pad`}):null,a(`div`,Object.assign({key:n,"data-name":n,"data-disabled":r?!0:void 0},i({class:[`${t}-tabs-tab`,c===n&&`${t}-tabs-tab--active`,r&&`${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)),a(`span`,{class:`${t}-tabs-tab__label`},e?a(_,null,a(`div`,{class:`${t}-tabs-tab__height-placeholder`},`\xA0`),a(oe,{clsPrefix:t},{default:()=>a(P,null)})):d?d():typeof f==`object`?f:L(f??n)),l&&this.type===`card`?a(F,{clsPrefix:t,class:`${t}-tabs-tab__close`,onClick:this.handleClose,disabled:r}):null))}}),xe=x(`tabs`,` box-sizing: border-box; width: 100%; display: flex; diff --git a/frontend/dist/assets/TasksView-D3v_9-n1.js b/frontend/dist/assets/TasksView-MKm56lSe.js similarity index 97% rename from frontend/dist/assets/TasksView-D3v_9-n1.js rename to frontend/dist/assets/TasksView-MKm56lSe.js index a2bddae..5ec94af 100644 --- a/frontend/dist/assets/TasksView-D3v_9-n1.js +++ b/frontend/dist/assets/TasksView-MKm56lSe.js @@ -1 +1 @@ -import{Ct as e,Dt as t,Jt as n,Kt as r,Ln as i,Ot as a,St as o,Ut as s,bt as c,hn as l,ht as u,in as d,kt as f,pn as ee,wt as p,xt as m,yn as h}from"./client-vZFx54yb.js";import{o as te}from"./utils-DJHY09qj.js";import{t as g}from"./Card-DO3oxl4F.js";import{n as ne,r as _}from"./es-DSPBzgpf.js";import{c as v,l as y,o as b,s as x}from"./Suffix-iau-0Xu1.js";import{t as S}from"./Modal-XDlBuRmh.js";import{n as C,t as re}from"./DatePicker-BuccjoRz.js";import{t as w}from"./FormItem-DcGe8Cb7.js";import{t as T}from"./Button-Bx9JIj0e.js";import{t as E}from"./Select-BDMkhuNb.js";import{t as D}from"./_plugin-vue_export-helper-FodinAjS.js";import{t as O}from"./Input-D7YePN-E.js";import{t as k}from"./Alert-aZxDGAB-.js";import{t as A}from"./Flex-CjWQ3AmY.js";import{t as j}from"./Spin-Dj4Psaz0.js";import{S as ie,n as ae,st as M}from"./index-Ci0r-yTA.js";import{t as oe}from"./HeaderMenu-CoWgnRN4.js";var se={name:`ru-RU`,global:{undo:`Отменить`,redo:`Вернуть`,confirm:`Подтвердить`,clear:`Очистить`},Popconfirm:{positiveText:`Подтвердить`,negativeText:`Отмена`},Cascader:{placeholder:`Выбрать`,loading:`Загрузка`,loadingRequiredMessage:e=>`Загрузите все дочерние узлы ${e} прежде чем они станут необязательными`},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:`Очистить`,now:`Сейчас`,confirm:`Подтвердить`,selectTime:`Выбрать время`,selectDate:`Выбрать дату`,datePlaceholder:`Выбрать дату`,datetimePlaceholder:`Выбрать дату и время`,monthPlaceholder:`Выберите месяц`,yearPlaceholder:`Выберите год`,quarterPlaceholder:`Выберите квартал`,weekPlaceholder:`Select Week`,startDatePlaceholder:`Дата начала`,endDatePlaceholder:`Дата окончания`,startDatetimePlaceholder:`Дата и время начала`,endDatetimePlaceholder:`Дата и время окончания`,startMonthPlaceholder:`Начало месяца`,endMonthPlaceholder:`Конец месяца`,monthBeforeYear:!0,firstDayOfWeek:0,today:`Сегодня`},DataTable:{checkTableAll:`Выбрать все в таблице`,uncheckTableAll:`Отменить все в таблице`,confirm:`Подтвердить`,clear:`Очистить`},LegacyTransfer:{sourceTitle:`Источник`,targetTitle:`Назначение`},Transfer:{selectAll:`Выбрать все`,unselectAll:`Снять все`,clearAll:`Очистить`,total:e=>`Всего ${e} элементов`,selected:e=>`${e} выбрано элементов`},Empty:{description:`Нет данных`},Select:{placeholder:`Выбрать`},TimePicker:{placeholder:`Выбрать время`,positiveText:`OK`,negativeText:`Отменить`,now:`Сейчас`,clear:`Очистить`},Pagination:{goto:`Перейти`,selectionSuffix:`страница`},DynamicTags:{add:`Добавить`},Log:{loading:`Загрузка`},Input:{placeholder:`Ввести`},InputNumber:{placeholder:`Ввести`},DynamicInput:{create:`Создать`},ThemeEditor:{title:`Редактор темы`,clearAllVars:`Очистить все`,clearSearch:`Очистить поиск`,filterCompName:`Фильтровать по имени компонента`,filterVarName:`Фильтровать имена переменных`,import:`Импорт`,export:`Экспорт`,restore:`Сбросить`},Image:{tipPrevious:`Предыдущее изображение (←)`,tipNext:`Следующее изображение (→)`,tipCounterclockwise:`Против часовой стрелки`,tipClockwise:`По часовой стрелке`,tipZoomOut:`Отдалить`,tipZoomIn:`Приблизить`,tipDownload:`Скачать`,tipClose:`Закрыть (Esc)`,tipOriginalSize:`Вернуть исходный размер`},Heatmap:{less:`меньше`,more:`больше`,monthFormat:`MMM`,weekdayFormat:`eeeeee`}};function N(e,t){if(e.one!==void 0&&t===1)return e.one;let n=t%10,r=t%100;return n===1&&r!==11?e.singularNominative.replace(`{{count}}`,String(t)):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace(`{{count}}`,String(t)):e.pluralGenitive.replace(`{{count}}`,String(t))}function P(e){return(t,n)=>n?.addSuffix?n.comparison&&n.comparison>0?e.future?N(e.future,t):`через `+N(e.regular,t):e.past?N(e.past,t):N(e.regular,t)+` назад`:N(e.regular,t)}var F={lessThanXSeconds:P({regular:{one:`меньше секунды`,singularNominative:`меньше {{count}} секунды`,singularGenitive:`меньше {{count}} секунд`,pluralGenitive:`меньше {{count}} секунд`},future:{one:`меньше, чем через секунду`,singularNominative:`меньше, чем через {{count}} секунду`,singularGenitive:`меньше, чем через {{count}} секунды`,pluralGenitive:`меньше, чем через {{count}} секунд`}}),xSeconds:P({regular:{singularNominative:`{{count}} секунда`,singularGenitive:`{{count}} секунды`,pluralGenitive:`{{count}} секунд`},past:{singularNominative:`{{count}} секунду назад`,singularGenitive:`{{count}} секунды назад`,pluralGenitive:`{{count}} секунд назад`},future:{singularNominative:`через {{count}} секунду`,singularGenitive:`через {{count}} секунды`,pluralGenitive:`через {{count}} секунд`}}),halfAMinute:(e,t)=>t?.addSuffix?t.comparison&&t.comparison>0?`через полминуты`:`полминуты назад`:`полминуты`,lessThanXMinutes:P({regular:{one:`меньше минуты`,singularNominative:`меньше {{count}} минуты`,singularGenitive:`меньше {{count}} минут`,pluralGenitive:`меньше {{count}} минут`},future:{one:`меньше, чем через минуту`,singularNominative:`меньше, чем через {{count}} минуту`,singularGenitive:`меньше, чем через {{count}} минуты`,pluralGenitive:`меньше, чем через {{count}} минут`}}),xMinutes:P({regular:{singularNominative:`{{count}} минута`,singularGenitive:`{{count}} минуты`,pluralGenitive:`{{count}} минут`},past:{singularNominative:`{{count}} минуту назад`,singularGenitive:`{{count}} минуты назад`,pluralGenitive:`{{count}} минут назад`},future:{singularNominative:`через {{count}} минуту`,singularGenitive:`через {{count}} минуты`,pluralGenitive:`через {{count}} минут`}}),aboutXHours:P({regular:{singularNominative:`около {{count}} часа`,singularGenitive:`около {{count}} часов`,pluralGenitive:`около {{count}} часов`},future:{singularNominative:`приблизительно через {{count}} час`,singularGenitive:`приблизительно через {{count}} часа`,pluralGenitive:`приблизительно через {{count}} часов`}}),xHours:P({regular:{singularNominative:`{{count}} час`,singularGenitive:`{{count}} часа`,pluralGenitive:`{{count}} часов`}}),xDays:P({regular:{singularNominative:`{{count}} день`,singularGenitive:`{{count}} дня`,pluralGenitive:`{{count}} дней`}}),aboutXWeeks:P({regular:{singularNominative:`около {{count}} недели`,singularGenitive:`около {{count}} недель`,pluralGenitive:`около {{count}} недель`},future:{singularNominative:`приблизительно через {{count}} неделю`,singularGenitive:`приблизительно через {{count}} недели`,pluralGenitive:`приблизительно через {{count}} недель`}}),xWeeks:P({regular:{singularNominative:`{{count}} неделя`,singularGenitive:`{{count}} недели`,pluralGenitive:`{{count}} недель`}}),aboutXMonths:P({regular:{singularNominative:`около {{count}} месяца`,singularGenitive:`около {{count}} месяцев`,pluralGenitive:`около {{count}} месяцев`},future:{singularNominative:`приблизительно через {{count}} месяц`,singularGenitive:`приблизительно через {{count}} месяца`,pluralGenitive:`приблизительно через {{count}} месяцев`}}),xMonths:P({regular:{singularNominative:`{{count}} месяц`,singularGenitive:`{{count}} месяца`,pluralGenitive:`{{count}} месяцев`}}),aboutXYears:P({regular:{singularNominative:`около {{count}} года`,singularGenitive:`около {{count}} лет`,pluralGenitive:`около {{count}} лет`},future:{singularNominative:`приблизительно через {{count}} год`,singularGenitive:`приблизительно через {{count}} года`,pluralGenitive:`приблизительно через {{count}} лет`}}),xYears:P({regular:{singularNominative:`{{count}} год`,singularGenitive:`{{count}} года`,pluralGenitive:`{{count}} лет`}}),overXYears:P({regular:{singularNominative:`больше {{count}} года`,singularGenitive:`больше {{count}} лет`,pluralGenitive:`больше {{count}} лет`},future:{singularNominative:`больше, чем через {{count}} год`,singularGenitive:`больше, чем через {{count}} года`,pluralGenitive:`больше, чем через {{count}} лет`}}),almostXYears:P({regular:{singularNominative:`почти {{count}} год`,singularGenitive:`почти {{count}} года`,pluralGenitive:`почти {{count}} лет`},future:{singularNominative:`почти через {{count}} год`,singularGenitive:`почти через {{count}} года`,pluralGenitive:`почти через {{count}} лет`}})},I=(e,t,n)=>F[e](t,n),L={date:y({formats:{full:`EEEE, d MMMM y 'г.'`,long:`d MMMM y 'г.'`,medium:`d MMM y 'г.'`,short:`dd.MM.y`},defaultWidth:`full`}),time:y({formats:{full:`H:mm:ss zzzz`,long:`H:mm:ss z`,medium:`H:mm:ss`,short:`H:mm`},defaultWidth:`full`}),dateTime:y({formats:{any:`{{date}}, {{time}}`},defaultWidth:`any`})},R=[`воскресенье`,`понедельник`,`вторник`,`среду`,`четверг`,`пятницу`,`субботу`];function z(e){let t=R[e];switch(e){case 0:return`'в прошлое `+t+` в' p`;case 1:case 2:case 4:return`'в прошлый `+t+` в' p`;case 3:case 5:case 6:return`'в прошлую `+t+` в' p`}}function B(e){let t=R[e];return e===2?`'во `+t+` в' p`:`'в `+t+` в' p`}function V(e){let t=R[e];switch(e){case 0:return`'в следующее `+t+` в' p`;case 1:case 2:case 4:return`'в следующий `+t+` в' p`;case 3:case 5:case 6:return`'в следующую `+t+` в' p`}}var H={lastWeek:(e,t,n)=>{let r=e.getDay();return C(e,t,n)?B(r):z(r)},yesterday:`'вчера в' p`,today:`'сегодня в' p`,tomorrow:`'завтра в' p`,nextWeek:(e,t,n)=>{let r=e.getDay();return C(e,t,n)?B(r):V(r)},other:`P`},ce={name:`ru-RU`,locale:{code:`ru`,formatDistance:I,formatLong:L,formatRelative:(e,t,n,r)=>{let i=H[e];return typeof i==`function`?i(t,n,r):i},localize:{ordinalNumber:(e,t)=>{let n=Number(e),r=t?.unit,i;return i=r===`date`?`-е`:r===`week`||r===`minute`||r===`second`?`-я`:`-й`,n+i},era:v({values:{narrow:[`до н.э.`,`н.э.`],abbreviated:[`до н. э.`,`н. э.`],wide:[`до нашей эры`,`нашей эры`]},defaultWidth:`wide`}),quarter:v({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`1-й кв.`,`2-й кв.`,`3-й кв.`,`4-й кв.`],wide:[`1-й квартал`,`2-й квартал`,`3-й квартал`,`4-й квартал`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:v({values:{narrow:[`Я`,`Ф`,`М`,`А`,`М`,`И`,`И`,`А`,`С`,`О`,`Н`,`Д`],abbreviated:[`янв.`,`фев.`,`март`,`апр.`,`май`,`июнь`,`июль`,`авг.`,`сент.`,`окт.`,`нояб.`,`дек.`],wide:[`январь`,`февраль`,`март`,`апрель`,`май`,`июнь`,`июль`,`август`,`сентябрь`,`октябрь`,`ноябрь`,`декабрь`]},defaultWidth:`wide`,formattingValues:{narrow:[`Я`,`Ф`,`М`,`А`,`М`,`И`,`И`,`А`,`С`,`О`,`Н`,`Д`],abbreviated:[`янв.`,`фев.`,`мар.`,`апр.`,`мая`,`июн.`,`июл.`,`авг.`,`сент.`,`окт.`,`нояб.`,`дек.`],wide:[`января`,`февраля`,`марта`,`апреля`,`мая`,`июня`,`июля`,`августа`,`сентября`,`октября`,`ноября`,`декабря`]},defaultFormattingWidth:`wide`}),day:v({values:{narrow:[`В`,`П`,`В`,`С`,`Ч`,`П`,`С`],short:[`вс`,`пн`,`вт`,`ср`,`чт`,`пт`,`сб`],abbreviated:[`вск`,`пнд`,`втр`,`срд`,`чтв`,`птн`,`суб`],wide:[`воскресенье`,`понедельник`,`вторник`,`среда`,`четверг`,`пятница`,`суббота`]},defaultWidth:`wide`}),dayPeriod:v({values:{narrow:{am:`ДП`,pm:`ПП`,midnight:`полн.`,noon:`полд.`,morning:`утро`,afternoon:`день`,evening:`веч.`,night:`ночь`},abbreviated:{am:`ДП`,pm:`ПП`,midnight:`полн.`,noon:`полд.`,morning:`утро`,afternoon:`день`,evening:`веч.`,night:`ночь`},wide:{am:`ДП`,pm:`ПП`,midnight:`полночь`,noon:`полдень`,morning:`утро`,afternoon:`день`,evening:`вечер`,night:`ночь`}},defaultWidth:`any`,formattingValues:{narrow:{am:`ДП`,pm:`ПП`,midnight:`полн.`,noon:`полд.`,morning:`утра`,afternoon:`дня`,evening:`веч.`,night:`ночи`},abbreviated:{am:`ДП`,pm:`ПП`,midnight:`полн.`,noon:`полд.`,morning:`утра`,afternoon:`дня`,evening:`веч.`,night:`ночи`},wide:{am:`ДП`,pm:`ПП`,midnight:`полночь`,noon:`полдень`,morning:`утра`,afternoon:`дня`,evening:`вечера`,night:`ночи`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:b({matchPattern:/^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:x({matchPatterns:{narrow:/^((до )?н\.?\s?э\.?)/i,abbreviated:/^((до )?н\.?\s?э\.?)/i,wide:/^(до нашей эры|нашей эры|наша эра)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^д/i,/^н/i]},defaultParseWidth:`any`}),quarter:x({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыои]?й?)? кв.?/i,wide:/^[1234](-?[ыои]?й?)? квартал/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:x({matchPatterns:{narrow:/^[яфмаисонд]/i,abbreviated:/^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,wide:/^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^я/i,/^ф/i,/^м/i,/^а/i,/^м/i,/^и/i,/^и/i,/^а/i,/^с/i,/^о/i,/^н/i,/^я/i],any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^ав/i,/^с/i,/^о/i,/^н/i,/^д/i]},defaultParseWidth:`any`}),day:x({matchPatterns:{narrow:/^[впсч]/i,short:/^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,abbreviated:/^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,wide:/^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^в/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^в[ос]/i,/^п[он]/i,/^в/i,/^ср/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},defaultParseWidth:`any`}),dayPeriod:x({matchPatterns:{narrow:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,abbreviated:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,wide:/^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i},defaultMatchWidth:`wide`,parsePatterns:{any:{am:/^дп/i,pm:/^пп/i,midnight:/^полн/i,noon:/^полд/i,morning:/^у/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}}};function le(e,t=new Date){let n=`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,`0`)}-${String(t.getDate()).padStart(2,`0`)}`;return e.status!==`done`&&!!e.dueDate&&e.dueDateC.value.map(e=>({label:e.name||`#${e.ID}`,value:e.ID}))),W=c(()=>[{label:`Все ответственные`,value:`all`},{label:`Без ответственного`,value:0},...U.value,...x.value.filter(e=>e.assigneeID&&!C.value.some(t=>t.ID===e.assigneeID)).filter((e,t,n)=>n.findIndex(t=>t.assigneeID===e.assigneeID)===t).map(e=>({label:e.assigneeName||`#${e.assigneeID}`,value:e.assigneeID}))]),_e=c(()=>{if(!H.assigneeID||U.value.some(e=>e.value===H.assigneeID))return U.value;let e=x.value.find(e=>e.ID===R.value);return[...U.value,{label:`${e?.assigneeName||`#${H.assigneeID}`} (роль отозвана)`,value:H.assigneeID,disabled:!0}]}),ve=c(()=>b.map(e=>({...e,tasks:x.value.filter(t=>t.status===e.value&&(I.value===`all`||(t.assigneeID||0)===I.value))}))),G=c(()=>x.value.find(e=>e.ID===R.value)),K=c(()=>H.title.trim()?[...H.title.trim()].length>255?`Не более 255 символов`:void 0:`Введите название задачи`),q=c(()=>[...H.description].length>1e4?`Не более 10 000 символов`:void 0),J=c(()=>R.value!==void 0&&G.value!==void 0&&G.value.version!==z.value),Y=c(()=>R.value!==void 0&&!G.value);function ye(e){return b.find(t=>t.value===e)?.label||e}function X(e){return e?e.split(`-`).reverse().join(`.`):`Без срока`}async function Z(){if(!(N.value||P.value)){N.value=!0,F.value=``;try{let e=await v.GetPermissions({});if(D.value=e.permissions?.includes(`tasks_page`)||!1,!D.value)return;let[t,n]=await Promise.all([v.GetTasks({}),v.GetTaskAssignees({})]);x.value=t.tasks||[],C.value=n.assignees||[]}catch(e){F.value=e instanceof Error&&e.message===`unauthorized`?`Войдите под учётной записью разработчика или администратора`:e instanceof Error?e.message:`Не удалось загрузить задачи`,y.error(F.value)}finally{N.value=!1}}}function Q(e){P.value||(R.value=e?.ID,z.value=e?.version,Object.assign(H,{title:e?.title||``,description:e?.description||``,status:e?.status||`new`,assigneeID:e?.assigneeID??null,dueDate:e?.dueDate||null}),L.value=!0)}async function $(){if(P.value||N.value||J.value||Y.value)return;let e=H.title.trim();if(!e||[...e].length>255||[...H.description].length>1e4){y.error(`Введите название до 255 символов и описание до 10 000 символов`);return}P.value=!0;try{let t={title:e,description:H.description,status:H.status,assigneeID:H.assigneeID??void 0,dueDate:H.dueDate||``},n=R.value===void 0?await v.CreateTask(t):await v.UpdateTask({...t,ID:R.value,version:z.value});if(n.task){let e=n.task;x.value=R.value===void 0?[e,...x.value]:x.value.map(t=>t.ID===e.ID?e:t)}L.value=!1,y.success(`Задача сохранена`)}catch(e){y.error(e instanceof Error?e.message:`Не удалось сохранить задачу`)}finally{P.value=!1}await Z()}function be(e,t){if(P.value||N.value||!e.dataTransfer){e.preventDefault();return}V.value=t.ID,e.dataTransfer.effectAllowed=`move`,e.dataTransfer.setData(`text/plain`,String(t.ID))}async function xe(e){let t=x.value.find(e=>e.ID===V.value);if(V.value=void 0,!(!t||t.status===e||P.value||N.value)){P.value=!0;try{let n=await v.SetTaskStatus({ID:t.ID,status:e,version:t.version});if(n.task){let e=n.task;x.value=x.value.map(n=>n.ID===t.ID?e:n)}y.success(`Статус изменён`)}catch(e){y.error(e instanceof Error?e.message:`Не удалось изменить статус`)}finally{P.value=!1}await Z()}}async function Se(){if(!(!B.value||P.value||N.value)){P.value=!0;try{await v.DeleteTask({ID:B.value.ID,version:B.value.version}),x.value=x.value.filter(e=>e.ID!==B.value?.ID),B.value=null,L.value=!1,y.success(`Задача удалена`)}catch(e){y.error(e instanceof Error?e.message:`Не удалось удалить задачу`),B.value=null}finally{P.value=!1}await Z()}}function Ce(){z.value=G.value?.version}return s(()=>{N.value=!1,Z()}),(s,c)=>(r(),o(h(ie),{locale:h(se),"date-locale":h(ce)},{default:d(()=>[m(`div`,ue,[m(`div`,de,[a(h(A),{class:`toolbar`,justify:`space-between`,align:`center`},{default:d(()=>[c[16]||=m(`h1`,null,`Задачи`,-1),a(h(A),null,{default:d(()=>[a(h(T),{loading:N.value,disabled:P.value,onClick:Z},{default:d(()=>[...c[14]||=[t(`Обновить`,-1)]]),_:1},8,[`loading`,`disabled`]),D.value?(r(),o(h(T),{key:0,type:`primary`,disabled:P.value||N.value,onClick:c[0]||=e=>Q()},{default:d(()=>[...c[15]||=[t(` Создать задачу `,-1)]]),_:1},8,[`disabled`])):e(``,!0)]),_:1})]),_:1}),F.value?(r(),o(h(k),{key:0,type:`error`,class:`notice`},{default:d(()=>[t(i(F.value),1)]),_:1})):e(``,!0),N.value&&!D.value?(r(),o(h(j),{key:1,class:`initial-loading`})):!D.value&&!F.value?(r(),o(h(k),{key:2,type:`warning`},{default:d(()=>[...c[17]||=[t(` Страница доступна разработчикам и администратору. `,-1)]]),_:1})):e(``,!0),D.value?(r(),p(u,{key:3},[a(h(E),{value:I.value,"onUpdate:value":c[1]||=e=>I.value=e,options:W.value,"aria-label":`Фильтр по ответственному`,class:`assignee-filter`},null,8,[`value`,`options`]),a(h(j),{show:N.value||P.value},{default:d(()=>[m(`div`,fe,[(r(!0),p(u,null,n(ve.value,s=>(r(),p(`section`,{key:s.value,class:`column`,"aria-label":s.label,onDragover:c[3]||=M(()=>{},[`prevent`]),onDrop:M(e=>xe(s.value),[`prevent`])},[a(h(A),{justify:`space-between`,align:`center`,class:`column-heading`},{default:d(()=>[m(`h2`,null,i(s.label),1),a(h(_),{size:`small`},{default:d(()=>[t(i(s.tasks.length),1)]),_:2},1024)]),_:2},1024),s.tasks.length?e(``,!0):(r(),o(h(te),{key:0,description:`Нет задач`,class:`empty-column`})),(r(!0),p(u,null,n(s.tasks,n=>(r(),o(h(g),{key:n.ID,class:`task-card`,size:`small`,draggable:!P.value&&!N.value,onDragstart:e=>be(e,n),onDragend:c[2]||=e=>V.value=void 0},{default:d(()=>[m(`div`,me,`#`+i(n.ID),1),m(`h3`,he,i(n.title),1),m(`p`,null,i(n.assigneeName||`Без ответственного`),1),a(h(A),{align:`center`,class:`task-due`},{default:d(()=>[m(`span`,null,i(X(n.dueDate)),1),h(le)(n)?(r(),o(h(_),{key:0,type:`error`,size:`small`},{default:d(()=>[...c[18]||=[t(`Просрочена`,-1)]]),_:1})):e(``,!0)]),_:2},1024),a(h(T),{size:`small`,disabled:P.value||N.value,onClick:e=>Q(n)},{default:d(()=>[...c[19]||=[t(` Открыть задачу `,-1)]]),_:1},8,[`disabled`,`onClick`])]),_:2},1032,[`draggable`,`onDragstart`]))),128))],40,pe))),128))])]),_:1},8,[`show`])],64)):e(``,!0)])]),a(oe,{active:`tasks`}),a(h(S),{show:L.value,"onUpdate:show":c[11]||=e=>L.value=e,"mask-closable":!P.value,"close-on-esc":!P.value},{default:d(()=>[a(h(g),{class:`task-modal`,title:R.value?`Задача #${R.value}`:`Новая задача`,role:`dialog`,"aria-modal":`true`},{default:d(()=>[Y.value?(r(),o(h(k),{key:0,type:`warning`,class:`notice`},{default:d(()=>[...c[20]||=[t(` Задача удалена другим пользователем. Черновик сохранён в этой форме. `,-1)]]),_:1})):e(``,!0),J.value&&G.value?(r(),o(h(k),{key:1,type:`warning`,class:`notice`},{default:d(()=>[c[22]||=t(` Задача изменена другим пользователем. Ваш черновик сохранён. Актуальные данные: `,-1),m(`p`,null,i(G.value.title)+` — `+i(ye(G.value.status)),1),m(`p`,null,i(G.value.assigneeName||`Без ответственного`)+` · `+i(X(G.value.dueDate)),1),m(`p`,ge,i(G.value.description||`Без описания`),1),a(h(T),{disabled:N.value||P.value,onClick:Ce},{default:d(()=>[...c[21]||=[t(` Продолжить с моим черновиком `,-1)]]),_:1},8,[`disabled`])]),_:1})):e(``,!0),a(h(w),{label:`Название *`,"label-for":`task-title`,feedback:K.value,"validation-status":K.value?`error`:void 0},{default:d(()=>[a(h(O),{"input-props":{id:`task-title`},value:H.title,"onUpdate:value":c[4]||=e=>H.title=e,disabled:P.value,placeholder:`Название задачи`},null,8,[`value`,`disabled`])]),_:1},8,[`feedback`,`validation-status`]),a(h(w),{label:`Описание`,"label-for":`task-description`,feedback:q.value,"validation-status":q.value?`error`:void 0},{default:d(()=>[a(h(O),{"input-props":{id:`task-description`},value:H.description,"onUpdate:value":c[5]||=e=>H.description=e,type:`textarea`,disabled:P.value,placeholder:`Что нужно сделать`,autosize:{minRows:3,maxRows:10}},null,8,[`value`,`disabled`])]),_:1},8,[`feedback`,`validation-status`]),a(h(w),{label:`Статус`,"label-for":`task-status`},{default:d(()=>[a(h(E),{"input-props":{id:`task-status`,"aria-label":`Статус`},filterable:``,value:H.status,"onUpdate:value":c[6]||=e=>H.status=e,options:b,disabled:P.value},null,8,[`value`,`disabled`])]),_:1}),a(h(w),{label:`Ответственный`,"label-for":`task-assignee`},{default:d(()=>[a(h(E),{"input-props":{id:`task-assignee`,"aria-label":`Ответственный`},value:H.assigneeID,"onUpdate:value":c[7]||=e=>H.assigneeID=e,options:_e.value,disabled:P.value,placeholder:`Без ответственного`,clearable:``,filterable:``},null,8,[`value`,`options`,`disabled`])]),_:1}),a(h(w),{label:`Срок выполнения`,"label-for":`task-due-date`},{default:d(()=>[a(h(re),{id:`task-due-date`,"formatted-value":H.dueDate,"onUpdate:formattedValue":c[8]||=e=>H.dueDate=e,type:`date`,placeholder:`Дата завершения`,"value-format":`yyyy-MM-dd`,format:`dd.MM.yyyy`,disabled:P.value,clearable:``,class:`date-picker`},null,8,[`formatted-value`,`disabled`])]),_:1}),a(h(A),{justify:`space-between`},{default:d(()=>[R.value&&G.value?(r(),o(h(T),{key:0,type:`error`,disabled:P.value||N.value,onClick:c[9]||=e=>B.value=G.value},{default:d(()=>[...c[23]||=[t(`Удалить`,-1)]]),_:1},8,[`disabled`])):e(``,!0),a(h(A),null,{default:d(()=>[a(h(T),{disabled:P.value,onClick:c[10]||=e=>L.value=!1},{default:d(()=>[...c[24]||=[t(`Закрыть`,-1)]]),_:1},8,[`disabled`]),a(h(T),{type:`primary`,loading:P.value,disabled:N.value||J.value||Y.value||!!K.value||!!q.value,onClick:$},{default:d(()=>[...c[25]||=[t(`Сохранить`,-1)]]),_:1},8,[`loading`,`disabled`])]),_:1})]),_:1})]),_:1},8,[`title`])]),_:1},8,[`show`,`mask-closable`,`close-on-esc`]),a(h(S),{show:!!B.value,"mask-closable":!P.value,"close-on-esc":!P.value,"onUpdate:show":c[13]||=e=>!P.value&&(B.value=null)},{default:d(()=>[a(h(g),{class:`task-modal`,title:`Удалить задачу?`,role:`dialog`,"aria-modal":`true`},{default:d(()=>[m(`p`,null,`Удалить «`+i(B.value?.title)+`»? Это действие необратимо.`,1),a(h(A),{justify:`end`,class:`delete-actions`},{default:d(()=>[a(h(T),{disabled:P.value,onClick:c[12]||=e=>B.value=null},{default:d(()=>[...c[26]||=[t(`Отмена`,-1)]]),_:1},8,[`disabled`]),a(h(T),{type:`error`,loading:P.value,onClick:Se},{default:d(()=>[...c[27]||=[t(`Удалить`,-1)]]),_:1},8,[`loading`])]),_:1})]),_:1})]),_:1},8,[`show`,`mask-closable`,`close-on-esc`])]),_:1},8,[`locale`,`date-locale`]))}}),[[`__scopeId`,`data-v-ff75f974`]]),W=f({__name:`TasksView`,setup(e){return(e,t)=>(r(),o(U))}});export{W as default}; \ No newline at end of file +import{Ct as e,Dt as t,Jt as n,Kt as r,Ln as i,Ot as a,St as o,Ut as s,bt as c,hn as l,ht as u,in as d,kt as f,pn as ee,wt as p,xt as m,yn as h}from"./client-CREJv8AD.js";import{o as te}from"./utils-BJnNAJm2.js";import{t as g}from"./Card-CJC2gN5t.js";import{n as ne,r as _}from"./es-CevmKZP_.js";import{c as v,l as y,o as b,s as x}from"./Suffix-iFHNypz-.js";import{t as S}from"./Modal-BNDyI0AJ.js";import{n as C,t as re}from"./DatePicker-CISUUqG0.js";import{t as w}from"./FormItem-DVxlQf-S.js";import{t as T}from"./Button-MvNgQLzL.js";import{t as E}from"./Select-CvgyidIa.js";import{t as D}from"./_plugin-vue_export-helper-BkfvhliL.js";import{t as O}from"./Input-B41xxqED.js";import{t as k}from"./Alert-CvCnaLc2.js";import{t as A}from"./Flex-B0ZjnZ3e.js";import{t as j}from"./Spin-fslC_m7x.js";import{S as ie,n as ae,st as M}from"./index-DZpFhWFx.js";import{t as oe}from"./HeaderMenu-BarRlY0P.js";var se={name:`ru-RU`,global:{undo:`Отменить`,redo:`Вернуть`,confirm:`Подтвердить`,clear:`Очистить`},Popconfirm:{positiveText:`Подтвердить`,negativeText:`Отмена`},Cascader:{placeholder:`Выбрать`,loading:`Загрузка`,loadingRequiredMessage:e=>`Загрузите все дочерние узлы ${e} прежде чем они станут необязательными`},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:`Очистить`,now:`Сейчас`,confirm:`Подтвердить`,selectTime:`Выбрать время`,selectDate:`Выбрать дату`,datePlaceholder:`Выбрать дату`,datetimePlaceholder:`Выбрать дату и время`,monthPlaceholder:`Выберите месяц`,yearPlaceholder:`Выберите год`,quarterPlaceholder:`Выберите квартал`,weekPlaceholder:`Select Week`,startDatePlaceholder:`Дата начала`,endDatePlaceholder:`Дата окончания`,startDatetimePlaceholder:`Дата и время начала`,endDatetimePlaceholder:`Дата и время окончания`,startMonthPlaceholder:`Начало месяца`,endMonthPlaceholder:`Конец месяца`,monthBeforeYear:!0,firstDayOfWeek:0,today:`Сегодня`},DataTable:{checkTableAll:`Выбрать все в таблице`,uncheckTableAll:`Отменить все в таблице`,confirm:`Подтвердить`,clear:`Очистить`},LegacyTransfer:{sourceTitle:`Источник`,targetTitle:`Назначение`},Transfer:{selectAll:`Выбрать все`,unselectAll:`Снять все`,clearAll:`Очистить`,total:e=>`Всего ${e} элементов`,selected:e=>`${e} выбрано элементов`},Empty:{description:`Нет данных`},Select:{placeholder:`Выбрать`},TimePicker:{placeholder:`Выбрать время`,positiveText:`OK`,negativeText:`Отменить`,now:`Сейчас`,clear:`Очистить`},Pagination:{goto:`Перейти`,selectionSuffix:`страница`},DynamicTags:{add:`Добавить`},Log:{loading:`Загрузка`},Input:{placeholder:`Ввести`},InputNumber:{placeholder:`Ввести`},DynamicInput:{create:`Создать`},ThemeEditor:{title:`Редактор темы`,clearAllVars:`Очистить все`,clearSearch:`Очистить поиск`,filterCompName:`Фильтровать по имени компонента`,filterVarName:`Фильтровать имена переменных`,import:`Импорт`,export:`Экспорт`,restore:`Сбросить`},Image:{tipPrevious:`Предыдущее изображение (←)`,tipNext:`Следующее изображение (→)`,tipCounterclockwise:`Против часовой стрелки`,tipClockwise:`По часовой стрелке`,tipZoomOut:`Отдалить`,tipZoomIn:`Приблизить`,tipDownload:`Скачать`,tipClose:`Закрыть (Esc)`,tipOriginalSize:`Вернуть исходный размер`},Heatmap:{less:`меньше`,more:`больше`,monthFormat:`MMM`,weekdayFormat:`eeeeee`}};function N(e,t){if(e.one!==void 0&&t===1)return e.one;let n=t%10,r=t%100;return n===1&&r!==11?e.singularNominative.replace(`{{count}}`,String(t)):n>=2&&n<=4&&(r<10||r>20)?e.singularGenitive.replace(`{{count}}`,String(t)):e.pluralGenitive.replace(`{{count}}`,String(t))}function P(e){return(t,n)=>n?.addSuffix?n.comparison&&n.comparison>0?e.future?N(e.future,t):`через `+N(e.regular,t):e.past?N(e.past,t):N(e.regular,t)+` назад`:N(e.regular,t)}var F={lessThanXSeconds:P({regular:{one:`меньше секунды`,singularNominative:`меньше {{count}} секунды`,singularGenitive:`меньше {{count}} секунд`,pluralGenitive:`меньше {{count}} секунд`},future:{one:`меньше, чем через секунду`,singularNominative:`меньше, чем через {{count}} секунду`,singularGenitive:`меньше, чем через {{count}} секунды`,pluralGenitive:`меньше, чем через {{count}} секунд`}}),xSeconds:P({regular:{singularNominative:`{{count}} секунда`,singularGenitive:`{{count}} секунды`,pluralGenitive:`{{count}} секунд`},past:{singularNominative:`{{count}} секунду назад`,singularGenitive:`{{count}} секунды назад`,pluralGenitive:`{{count}} секунд назад`},future:{singularNominative:`через {{count}} секунду`,singularGenitive:`через {{count}} секунды`,pluralGenitive:`через {{count}} секунд`}}),halfAMinute:(e,t)=>t?.addSuffix?t.comparison&&t.comparison>0?`через полминуты`:`полминуты назад`:`полминуты`,lessThanXMinutes:P({regular:{one:`меньше минуты`,singularNominative:`меньше {{count}} минуты`,singularGenitive:`меньше {{count}} минут`,pluralGenitive:`меньше {{count}} минут`},future:{one:`меньше, чем через минуту`,singularNominative:`меньше, чем через {{count}} минуту`,singularGenitive:`меньше, чем через {{count}} минуты`,pluralGenitive:`меньше, чем через {{count}} минут`}}),xMinutes:P({regular:{singularNominative:`{{count}} минута`,singularGenitive:`{{count}} минуты`,pluralGenitive:`{{count}} минут`},past:{singularNominative:`{{count}} минуту назад`,singularGenitive:`{{count}} минуты назад`,pluralGenitive:`{{count}} минут назад`},future:{singularNominative:`через {{count}} минуту`,singularGenitive:`через {{count}} минуты`,pluralGenitive:`через {{count}} минут`}}),aboutXHours:P({regular:{singularNominative:`около {{count}} часа`,singularGenitive:`около {{count}} часов`,pluralGenitive:`около {{count}} часов`},future:{singularNominative:`приблизительно через {{count}} час`,singularGenitive:`приблизительно через {{count}} часа`,pluralGenitive:`приблизительно через {{count}} часов`}}),xHours:P({regular:{singularNominative:`{{count}} час`,singularGenitive:`{{count}} часа`,pluralGenitive:`{{count}} часов`}}),xDays:P({regular:{singularNominative:`{{count}} день`,singularGenitive:`{{count}} дня`,pluralGenitive:`{{count}} дней`}}),aboutXWeeks:P({regular:{singularNominative:`около {{count}} недели`,singularGenitive:`около {{count}} недель`,pluralGenitive:`около {{count}} недель`},future:{singularNominative:`приблизительно через {{count}} неделю`,singularGenitive:`приблизительно через {{count}} недели`,pluralGenitive:`приблизительно через {{count}} недель`}}),xWeeks:P({regular:{singularNominative:`{{count}} неделя`,singularGenitive:`{{count}} недели`,pluralGenitive:`{{count}} недель`}}),aboutXMonths:P({regular:{singularNominative:`около {{count}} месяца`,singularGenitive:`около {{count}} месяцев`,pluralGenitive:`около {{count}} месяцев`},future:{singularNominative:`приблизительно через {{count}} месяц`,singularGenitive:`приблизительно через {{count}} месяца`,pluralGenitive:`приблизительно через {{count}} месяцев`}}),xMonths:P({regular:{singularNominative:`{{count}} месяц`,singularGenitive:`{{count}} месяца`,pluralGenitive:`{{count}} месяцев`}}),aboutXYears:P({regular:{singularNominative:`около {{count}} года`,singularGenitive:`около {{count}} лет`,pluralGenitive:`около {{count}} лет`},future:{singularNominative:`приблизительно через {{count}} год`,singularGenitive:`приблизительно через {{count}} года`,pluralGenitive:`приблизительно через {{count}} лет`}}),xYears:P({regular:{singularNominative:`{{count}} год`,singularGenitive:`{{count}} года`,pluralGenitive:`{{count}} лет`}}),overXYears:P({regular:{singularNominative:`больше {{count}} года`,singularGenitive:`больше {{count}} лет`,pluralGenitive:`больше {{count}} лет`},future:{singularNominative:`больше, чем через {{count}} год`,singularGenitive:`больше, чем через {{count}} года`,pluralGenitive:`больше, чем через {{count}} лет`}}),almostXYears:P({regular:{singularNominative:`почти {{count}} год`,singularGenitive:`почти {{count}} года`,pluralGenitive:`почти {{count}} лет`},future:{singularNominative:`почти через {{count}} год`,singularGenitive:`почти через {{count}} года`,pluralGenitive:`почти через {{count}} лет`}})},I=(e,t,n)=>F[e](t,n),L={date:y({formats:{full:`EEEE, d MMMM y 'г.'`,long:`d MMMM y 'г.'`,medium:`d MMM y 'г.'`,short:`dd.MM.y`},defaultWidth:`full`}),time:y({formats:{full:`H:mm:ss zzzz`,long:`H:mm:ss z`,medium:`H:mm:ss`,short:`H:mm`},defaultWidth:`full`}),dateTime:y({formats:{any:`{{date}}, {{time}}`},defaultWidth:`any`})},R=[`воскресенье`,`понедельник`,`вторник`,`среду`,`четверг`,`пятницу`,`субботу`];function z(e){let t=R[e];switch(e){case 0:return`'в прошлое `+t+` в' p`;case 1:case 2:case 4:return`'в прошлый `+t+` в' p`;case 3:case 5:case 6:return`'в прошлую `+t+` в' p`}}function B(e){let t=R[e];return e===2?`'во `+t+` в' p`:`'в `+t+` в' p`}function V(e){let t=R[e];switch(e){case 0:return`'в следующее `+t+` в' p`;case 1:case 2:case 4:return`'в следующий `+t+` в' p`;case 3:case 5:case 6:return`'в следующую `+t+` в' p`}}var H={lastWeek:(e,t,n)=>{let r=e.getDay();return C(e,t,n)?B(r):z(r)},yesterday:`'вчера в' p`,today:`'сегодня в' p`,tomorrow:`'завтра в' p`,nextWeek:(e,t,n)=>{let r=e.getDay();return C(e,t,n)?B(r):V(r)},other:`P`},ce={name:`ru-RU`,locale:{code:`ru`,formatDistance:I,formatLong:L,formatRelative:(e,t,n,r)=>{let i=H[e];return typeof i==`function`?i(t,n,r):i},localize:{ordinalNumber:(e,t)=>{let n=Number(e),r=t?.unit,i;return i=r===`date`?`-е`:r===`week`||r===`minute`||r===`second`?`-я`:`-й`,n+i},era:v({values:{narrow:[`до н.э.`,`н.э.`],abbreviated:[`до н. э.`,`н. э.`],wide:[`до нашей эры`,`нашей эры`]},defaultWidth:`wide`}),quarter:v({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`1-й кв.`,`2-й кв.`,`3-й кв.`,`4-й кв.`],wide:[`1-й квартал`,`2-й квартал`,`3-й квартал`,`4-й квартал`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:v({values:{narrow:[`Я`,`Ф`,`М`,`А`,`М`,`И`,`И`,`А`,`С`,`О`,`Н`,`Д`],abbreviated:[`янв.`,`фев.`,`март`,`апр.`,`май`,`июнь`,`июль`,`авг.`,`сент.`,`окт.`,`нояб.`,`дек.`],wide:[`январь`,`февраль`,`март`,`апрель`,`май`,`июнь`,`июль`,`август`,`сентябрь`,`октябрь`,`ноябрь`,`декабрь`]},defaultWidth:`wide`,formattingValues:{narrow:[`Я`,`Ф`,`М`,`А`,`М`,`И`,`И`,`А`,`С`,`О`,`Н`,`Д`],abbreviated:[`янв.`,`фев.`,`мар.`,`апр.`,`мая`,`июн.`,`июл.`,`авг.`,`сент.`,`окт.`,`нояб.`,`дек.`],wide:[`января`,`февраля`,`марта`,`апреля`,`мая`,`июня`,`июля`,`августа`,`сентября`,`октября`,`ноября`,`декабря`]},defaultFormattingWidth:`wide`}),day:v({values:{narrow:[`В`,`П`,`В`,`С`,`Ч`,`П`,`С`],short:[`вс`,`пн`,`вт`,`ср`,`чт`,`пт`,`сб`],abbreviated:[`вск`,`пнд`,`втр`,`срд`,`чтв`,`птн`,`суб`],wide:[`воскресенье`,`понедельник`,`вторник`,`среда`,`четверг`,`пятница`,`суббота`]},defaultWidth:`wide`}),dayPeriod:v({values:{narrow:{am:`ДП`,pm:`ПП`,midnight:`полн.`,noon:`полд.`,morning:`утро`,afternoon:`день`,evening:`веч.`,night:`ночь`},abbreviated:{am:`ДП`,pm:`ПП`,midnight:`полн.`,noon:`полд.`,morning:`утро`,afternoon:`день`,evening:`веч.`,night:`ночь`},wide:{am:`ДП`,pm:`ПП`,midnight:`полночь`,noon:`полдень`,morning:`утро`,afternoon:`день`,evening:`вечер`,night:`ночь`}},defaultWidth:`any`,formattingValues:{narrow:{am:`ДП`,pm:`ПП`,midnight:`полн.`,noon:`полд.`,morning:`утра`,afternoon:`дня`,evening:`веч.`,night:`ночи`},abbreviated:{am:`ДП`,pm:`ПП`,midnight:`полн.`,noon:`полд.`,morning:`утра`,afternoon:`дня`,evening:`веч.`,night:`ночи`},wide:{am:`ДП`,pm:`ПП`,midnight:`полночь`,noon:`полдень`,morning:`утра`,afternoon:`дня`,evening:`вечера`,night:`ночи`}},defaultFormattingWidth:`wide`})},match:{ordinalNumber:b({matchPattern:/^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:x({matchPatterns:{narrow:/^((до )?н\.?\s?э\.?)/i,abbreviated:/^((до )?н\.?\s?э\.?)/i,wide:/^(до нашей эры|нашей эры|наша эра)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^д/i,/^н/i]},defaultParseWidth:`any`}),quarter:x({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыои]?й?)? кв.?/i,wide:/^[1234](-?[ыои]?й?)? квартал/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:x({matchPatterns:{narrow:/^[яфмаисонд]/i,abbreviated:/^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,wide:/^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^я/i,/^ф/i,/^м/i,/^а/i,/^м/i,/^и/i,/^и/i,/^а/i,/^с/i,/^о/i,/^н/i,/^я/i],any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^ав/i,/^с/i,/^о/i,/^н/i,/^д/i]},defaultParseWidth:`any`}),day:x({matchPatterns:{narrow:/^[впсч]/i,short:/^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,abbreviated:/^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,wide:/^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^в/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^в[ос]/i,/^п[он]/i,/^в/i,/^ср/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},defaultParseWidth:`any`}),dayPeriod:x({matchPatterns:{narrow:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,abbreviated:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,wide:/^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i},defaultMatchWidth:`wide`,parsePatterns:{any:{am:/^дп/i,pm:/^пп/i,midnight:/^полн/i,noon:/^полд/i,morning:/^у/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},defaultParseWidth:`any`})},options:{weekStartsOn:1,firstWeekContainsDate:1}}};function le(e,t=new Date){let n=`${t.getFullYear()}-${String(t.getMonth()+1).padStart(2,`0`)}-${String(t.getDate()).padStart(2,`0`)}`;return e.status!==`done`&&!!e.dueDate&&e.dueDateC.value.map(e=>({label:e.name||`#${e.ID}`,value:e.ID}))),W=c(()=>[{label:`Все ответственные`,value:`all`},{label:`Без ответственного`,value:0},...U.value,...x.value.filter(e=>e.assigneeID&&!C.value.some(t=>t.ID===e.assigneeID)).filter((e,t,n)=>n.findIndex(t=>t.assigneeID===e.assigneeID)===t).map(e=>({label:e.assigneeName||`#${e.assigneeID}`,value:e.assigneeID}))]),_e=c(()=>{if(!H.assigneeID||U.value.some(e=>e.value===H.assigneeID))return U.value;let e=x.value.find(e=>e.ID===R.value);return[...U.value,{label:`${e?.assigneeName||`#${H.assigneeID}`} (роль отозвана)`,value:H.assigneeID,disabled:!0}]}),ve=c(()=>b.map(e=>({...e,tasks:x.value.filter(t=>t.status===e.value&&(I.value===`all`||(t.assigneeID||0)===I.value))}))),G=c(()=>x.value.find(e=>e.ID===R.value)),K=c(()=>H.title.trim()?[...H.title.trim()].length>255?`Не более 255 символов`:void 0:`Введите название задачи`),q=c(()=>[...H.description].length>1e4?`Не более 10 000 символов`:void 0),J=c(()=>R.value!==void 0&&G.value!==void 0&&G.value.version!==z.value),Y=c(()=>R.value!==void 0&&!G.value);function ye(e){return b.find(t=>t.value===e)?.label||e}function X(e){return e?e.split(`-`).reverse().join(`.`):`Без срока`}async function Z(){if(!(N.value||P.value)){N.value=!0,F.value=``;try{let e=await v.GetPermissions({});if(D.value=e.permissions?.includes(`tasks_page`)||!1,!D.value)return;let[t,n]=await Promise.all([v.GetTasks({}),v.GetTaskAssignees({})]);x.value=t.tasks||[],C.value=n.assignees||[]}catch(e){F.value=e instanceof Error&&e.message===`unauthorized`?`Войдите под учётной записью разработчика или администратора`:e instanceof Error?e.message:`Не удалось загрузить задачи`,y.error(F.value)}finally{N.value=!1}}}function Q(e){P.value||(R.value=e?.ID,z.value=e?.version,Object.assign(H,{title:e?.title||``,description:e?.description||``,status:e?.status||`new`,assigneeID:e?.assigneeID??null,dueDate:e?.dueDate||null}),L.value=!0)}async function $(){if(P.value||N.value||J.value||Y.value)return;let e=H.title.trim();if(!e||[...e].length>255||[...H.description].length>1e4){y.error(`Введите название до 255 символов и описание до 10 000 символов`);return}P.value=!0;try{let t={title:e,description:H.description,status:H.status,assigneeID:H.assigneeID??void 0,dueDate:H.dueDate||``},n=R.value===void 0?await v.CreateTask(t):await v.UpdateTask({...t,ID:R.value,version:z.value});if(n.task){let e=n.task;x.value=R.value===void 0?[e,...x.value]:x.value.map(t=>t.ID===e.ID?e:t)}L.value=!1,y.success(`Задача сохранена`)}catch(e){y.error(e instanceof Error?e.message:`Не удалось сохранить задачу`)}finally{P.value=!1}await Z()}function be(e,t){if(P.value||N.value||!e.dataTransfer){e.preventDefault();return}V.value=t.ID,e.dataTransfer.effectAllowed=`move`,e.dataTransfer.setData(`text/plain`,String(t.ID))}async function xe(e){let t=x.value.find(e=>e.ID===V.value);if(V.value=void 0,!(!t||t.status===e||P.value||N.value)){P.value=!0;try{let n=await v.SetTaskStatus({ID:t.ID,status:e,version:t.version});if(n.task){let e=n.task;x.value=x.value.map(n=>n.ID===t.ID?e:n)}y.success(`Статус изменён`)}catch(e){y.error(e instanceof Error?e.message:`Не удалось изменить статус`)}finally{P.value=!1}await Z()}}async function Se(){if(!(!B.value||P.value||N.value)){P.value=!0;try{await v.DeleteTask({ID:B.value.ID,version:B.value.version}),x.value=x.value.filter(e=>e.ID!==B.value?.ID),B.value=null,L.value=!1,y.success(`Задача удалена`)}catch(e){y.error(e instanceof Error?e.message:`Не удалось удалить задачу`),B.value=null}finally{P.value=!1}await Z()}}function Ce(){z.value=G.value?.version}return s(()=>{N.value=!1,Z()}),(s,c)=>(r(),o(h(ie),{locale:h(se),"date-locale":h(ce)},{default:d(()=>[m(`div`,ue,[m(`div`,de,[a(h(A),{class:`toolbar`,justify:`space-between`,align:`center`},{default:d(()=>[c[16]||=m(`h1`,null,`Задачи`,-1),a(h(A),null,{default:d(()=>[a(h(T),{loading:N.value,disabled:P.value,onClick:Z},{default:d(()=>[...c[14]||=[t(`Обновить`,-1)]]),_:1},8,[`loading`,`disabled`]),D.value?(r(),o(h(T),{key:0,type:`primary`,disabled:P.value||N.value,onClick:c[0]||=e=>Q()},{default:d(()=>[...c[15]||=[t(` Создать задачу `,-1)]]),_:1},8,[`disabled`])):e(``,!0)]),_:1})]),_:1}),F.value?(r(),o(h(k),{key:0,type:`error`,class:`notice`},{default:d(()=>[t(i(F.value),1)]),_:1})):e(``,!0),N.value&&!D.value?(r(),o(h(j),{key:1,class:`initial-loading`})):!D.value&&!F.value?(r(),o(h(k),{key:2,type:`warning`},{default:d(()=>[...c[17]||=[t(` Страница доступна разработчикам и администратору. `,-1)]]),_:1})):e(``,!0),D.value?(r(),p(u,{key:3},[a(h(E),{value:I.value,"onUpdate:value":c[1]||=e=>I.value=e,options:W.value,"aria-label":`Фильтр по ответственному`,class:`assignee-filter`},null,8,[`value`,`options`]),a(h(j),{show:N.value||P.value},{default:d(()=>[m(`div`,fe,[(r(!0),p(u,null,n(ve.value,s=>(r(),p(`section`,{key:s.value,class:`column`,"aria-label":s.label,onDragover:c[3]||=M(()=>{},[`prevent`]),onDrop:M(e=>xe(s.value),[`prevent`])},[a(h(A),{justify:`space-between`,align:`center`,class:`column-heading`},{default:d(()=>[m(`h2`,null,i(s.label),1),a(h(_),{size:`small`},{default:d(()=>[t(i(s.tasks.length),1)]),_:2},1024)]),_:2},1024),s.tasks.length?e(``,!0):(r(),o(h(te),{key:0,description:`Нет задач`,class:`empty-column`})),(r(!0),p(u,null,n(s.tasks,n=>(r(),o(h(g),{key:n.ID,class:`task-card`,size:`small`,draggable:!P.value&&!N.value,onDragstart:e=>be(e,n),onDragend:c[2]||=e=>V.value=void 0},{default:d(()=>[m(`div`,me,`#`+i(n.ID),1),m(`h3`,he,i(n.title),1),m(`p`,null,i(n.assigneeName||`Без ответственного`),1),a(h(A),{align:`center`,class:`task-due`},{default:d(()=>[m(`span`,null,i(X(n.dueDate)),1),h(le)(n)?(r(),o(h(_),{key:0,type:`error`,size:`small`},{default:d(()=>[...c[18]||=[t(`Просрочена`,-1)]]),_:1})):e(``,!0)]),_:2},1024),a(h(T),{size:`small`,disabled:P.value||N.value,onClick:e=>Q(n)},{default:d(()=>[...c[19]||=[t(` Открыть задачу `,-1)]]),_:1},8,[`disabled`,`onClick`])]),_:2},1032,[`draggable`,`onDragstart`]))),128))],40,pe))),128))])]),_:1},8,[`show`])],64)):e(``,!0)])]),a(oe,{active:`tasks`}),a(h(S),{show:L.value,"onUpdate:show":c[11]||=e=>L.value=e,"mask-closable":!P.value,"close-on-esc":!P.value},{default:d(()=>[a(h(g),{class:`task-modal`,title:R.value?`Задача #${R.value}`:`Новая задача`,role:`dialog`,"aria-modal":`true`},{default:d(()=>[Y.value?(r(),o(h(k),{key:0,type:`warning`,class:`notice`},{default:d(()=>[...c[20]||=[t(` Задача удалена другим пользователем. Черновик сохранён в этой форме. `,-1)]]),_:1})):e(``,!0),J.value&&G.value?(r(),o(h(k),{key:1,type:`warning`,class:`notice`},{default:d(()=>[c[22]||=t(` Задача изменена другим пользователем. Ваш черновик сохранён. Актуальные данные: `,-1),m(`p`,null,i(G.value.title)+` — `+i(ye(G.value.status)),1),m(`p`,null,i(G.value.assigneeName||`Без ответственного`)+` · `+i(X(G.value.dueDate)),1),m(`p`,ge,i(G.value.description||`Без описания`),1),a(h(T),{disabled:N.value||P.value,onClick:Ce},{default:d(()=>[...c[21]||=[t(` Продолжить с моим черновиком `,-1)]]),_:1},8,[`disabled`])]),_:1})):e(``,!0),a(h(w),{label:`Название *`,"label-for":`task-title`,feedback:K.value,"validation-status":K.value?`error`:void 0},{default:d(()=>[a(h(O),{"input-props":{id:`task-title`},value:H.title,"onUpdate:value":c[4]||=e=>H.title=e,disabled:P.value,placeholder:`Название задачи`},null,8,[`value`,`disabled`])]),_:1},8,[`feedback`,`validation-status`]),a(h(w),{label:`Описание`,"label-for":`task-description`,feedback:q.value,"validation-status":q.value?`error`:void 0},{default:d(()=>[a(h(O),{"input-props":{id:`task-description`},value:H.description,"onUpdate:value":c[5]||=e=>H.description=e,type:`textarea`,disabled:P.value,placeholder:`Что нужно сделать`,autosize:{minRows:3,maxRows:10}},null,8,[`value`,`disabled`])]),_:1},8,[`feedback`,`validation-status`]),a(h(w),{label:`Статус`,"label-for":`task-status`},{default:d(()=>[a(h(E),{"input-props":{id:`task-status`,"aria-label":`Статус`},filterable:``,value:H.status,"onUpdate:value":c[6]||=e=>H.status=e,options:b,disabled:P.value},null,8,[`value`,`disabled`])]),_:1}),a(h(w),{label:`Ответственный`,"label-for":`task-assignee`},{default:d(()=>[a(h(E),{"input-props":{id:`task-assignee`,"aria-label":`Ответственный`},value:H.assigneeID,"onUpdate:value":c[7]||=e=>H.assigneeID=e,options:_e.value,disabled:P.value,placeholder:`Без ответственного`,clearable:``,filterable:``},null,8,[`value`,`options`,`disabled`])]),_:1}),a(h(w),{label:`Срок выполнения`,"label-for":`task-due-date`},{default:d(()=>[a(h(re),{id:`task-due-date`,"formatted-value":H.dueDate,"onUpdate:formattedValue":c[8]||=e=>H.dueDate=e,type:`date`,placeholder:`Дата завершения`,"value-format":`yyyy-MM-dd`,format:`dd.MM.yyyy`,disabled:P.value,clearable:``,class:`date-picker`},null,8,[`formatted-value`,`disabled`])]),_:1}),a(h(A),{justify:`space-between`},{default:d(()=>[R.value&&G.value?(r(),o(h(T),{key:0,type:`error`,disabled:P.value||N.value,onClick:c[9]||=e=>B.value=G.value},{default:d(()=>[...c[23]||=[t(`Удалить`,-1)]]),_:1},8,[`disabled`])):e(``,!0),a(h(A),null,{default:d(()=>[a(h(T),{disabled:P.value,onClick:c[10]||=e=>L.value=!1},{default:d(()=>[...c[24]||=[t(`Закрыть`,-1)]]),_:1},8,[`disabled`]),a(h(T),{type:`primary`,loading:P.value,disabled:N.value||J.value||Y.value||!!K.value||!!q.value,onClick:$},{default:d(()=>[...c[25]||=[t(`Сохранить`,-1)]]),_:1},8,[`loading`,`disabled`])]),_:1})]),_:1})]),_:1},8,[`title`])]),_:1},8,[`show`,`mask-closable`,`close-on-esc`]),a(h(S),{show:!!B.value,"mask-closable":!P.value,"close-on-esc":!P.value,"onUpdate:show":c[13]||=e=>!P.value&&(B.value=null)},{default:d(()=>[a(h(g),{class:`task-modal`,title:`Удалить задачу?`,role:`dialog`,"aria-modal":`true`},{default:d(()=>[m(`p`,null,`Удалить «`+i(B.value?.title)+`»? Это действие необратимо.`,1),a(h(A),{justify:`end`,class:`delete-actions`},{default:d(()=>[a(h(T),{disabled:P.value,onClick:c[12]||=e=>B.value=null},{default:d(()=>[...c[26]||=[t(`Отмена`,-1)]]),_:1},8,[`disabled`]),a(h(T),{type:`error`,loading:P.value,onClick:Se},{default:d(()=>[...c[27]||=[t(`Удалить`,-1)]]),_:1},8,[`loading`])]),_:1})]),_:1})]),_:1},8,[`show`,`mask-closable`,`close-on-esc`])]),_:1},8,[`locale`,`date-locale`]))}}),[[`__scopeId`,`data-v-ff75f974`]]),W=f({__name:`TasksView`,setup(e){return(e,t)=>(r(),o(U))}});export{W as default}; \ No newline at end of file diff --git a/frontend/dist/assets/TeamStoryView-BUkO6pvQ.css b/frontend/dist/assets/TeamStoryView-DEj7NOiS.css similarity index 75% rename from frontend/dist/assets/TeamStoryView-BUkO6pvQ.css rename to frontend/dist/assets/TeamStoryView-DEj7NOiS.css index f529920..796e21c 100644 --- a/frontend/dist/assets/TeamStoryView-BUkO6pvQ.css +++ b/frontend/dist/assets/TeamStoryView-DEj7NOiS.css @@ -1 +1 @@ -.belt-block[data-v-bec154c5]{background-color:#000;background-image:url(/assets/belt-DVqk2_uL.png);background-size:cover;height:100%;position:relative}.shadow[data-v-bec154c5]{background-color:#000;width:100%;height:10px;position:absolute}.shadow-top[data-v-bec154c5]{top:0;box-shadow:0 -5px 10px #000}.shadow-bottom[data-v-bec154c5]{bottom:0;box-shadow:0 5px 10px #000}.plate-block[data-v-4833fe7e]{position:relative;box-shadow:0 0 10px #000}.metal-plate-block[data-v-4833fe7e]{background-image:url(/assets/metal-BiL2PH1r.png);background-size:cover;border-radius:4px;height:100%;position:relative}.pin[data-v-4833fe7e]{background-image:url(/assets/pin-CJfldk-j.png);background-size:cover;width:7px;height:7px;position:absolute}.pin-top-left[data-v-4833fe7e]{top:3px;left:3px}.pin-top-right[data-v-4833fe7e]{top:3px;right:3px}.pin-bottom-right[data-v-4833fe7e]{bottom:3px;right:3px}.pin-bottom-left[data-v-4833fe7e]{bottom:3px;left:3px}.form-custom[data-v-3d06b938]{color:#fff;z-index:1000;width:100%;position:fixed;bottom:0;left:0}.input-form[data-v-3d06b938]{z-index:1000;max-width:1920px;height:76px;margin:0 auto;position:relative}.controller-metal[data-v-3d06b938]{width:30px;height:calc(100% + 2px);position:absolute;top:-1px}.controller-metal-left[data-v-3d06b938]{left:-30px}.controller-metal-right[data-v-3d06b938]{right:-30px}.controller[data-v-3d06b938]{display:flex;position:relative}.game-input[data-v-3d06b938]{width:calc(100% - 175px);height:50px;position:relative;top:14px;left:15px}.game-input-run[data-v-3d06b938]{background-color:#0000;background-image:url(/assets/input_center-DZZtEHaZ.png);background-size:cover;border:0;width:100%;height:100%;padding-left:27px;font-family:font_old_typer,serif;font-size:18px}.game-input-run[data-v-3d06b938]::placeholder{color:#333}.game-input-run[data-v-3d06b938]:focus{border:0;outline:none}.game-button-run-shadow[data-v-3d06b938]{width:150px;height:80px;position:absolute;top:-5px;right:10px;box-shadow:-5px 5px 10px #000}.game-button-run[data-v-3d06b938]{cursor:pointer;background-color:#0000;background-image:url(/assets/button-DdziMEJE.png);background-size:cover;border:0;width:155px;height:80px;margin:0;padding:0;font-size:1.5em;position:absolute;top:-5px;right:10px}.new-places-label[data-v-3d06b938],.all-places-label[data-v-3d06b938]{height:48px;position:absolute}.new-places-label[data-v-3d06b938]{width:40px;top:14px;left:85px}.all-places-label[data-v-3d06b938]{width:60px;top:14px;left:15px}.places-text[data-v-3d06b938]{color:#111;text-align:center;background-color:#d1cebd;background-image:url(/assets/paper-CuqvoKhN.jpg);background-size:cover;border:1px solid #9e9982;border-radius:7px;margin:0 1px;font-family:font_old_typer,serif;font-size:1.4em;display:inline-block;box-shadow:0 -2px 5px #000}.places-text-number[data-v-3d06b938]{width:18px}.counters-block[data-v-3d06b938]{margin:20px 10px 20px 5px;position:absolute;top:-40px;left:23px}.counter-block[data-v-3d06b938]{margin:5px;display:inline-block}.icon-for-counter[data-v-3d06b938]{margin:0 4px;position:relative;top:3px}@media (width>=1025px){.center-block-700[data-v-3d06b938]{width:700px;margin:0 auto}}.case-background[data-v-6b0532ed]{pointer-events:none;z-index:-1;background-position:50%;background-size:cover;position:fixed;inset:0}.bottom-margin[data-v-6b0532ed]{height:calc(100dvh - 76px);margin-top:0}.game-finished[data-v-6b0532ed]{height:100dvh}.review-block[data-v-6b0532ed]{margin-top:20px}.review-rating[data-v-6b0532ed]{margin-top:20px;margin-bottom:6px}.review-rate[data-v-6b0532ed]{margin-top:4px;margin-bottom:8px}.review-input[data-v-6b0532ed]{margin-top:14px}.smooth-scroll[data-v-6b0532ed]{scroll-behavior:smooth}.edit-panel[data-v-6b0532ed]{background-color:#222;border-radius:10px;margin:30px 0;padding:20px}.qr-main-block[data-v-6b0532ed]{justify-content:center;align-items:center;display:flex}.questions-hr[data-v-6b0532ed]{border:1px dashed #000;margin:10px 0}.questions-hint[data-v-6b0532ed]{color:#000}.question-item[data-v-6b0532ed]{margin:15px 0}.question-text[data-v-6b0532ed]{margin-bottom:6px;font-weight:500}.questions-actions[data-v-6b0532ed]{margin-top:10px}.paper-button[data-v-6b0532ed]{color:#bfa07d;cursor:pointer;background-image:url(/assets/belt-DVqk2_uL.png);background-size:cover;border:0;border-radius:5px;margin-top:10px;padding:5px 12px;font-family:font_old_typer,serif;font-size:16px;font-weight:600;display:inline-block}.paper-button[data-v-6b0532ed]:hover{color:#63e2b7}.font[data-v-6b0532ed]{font-family:font_old_typer,serif;font-size:18px}.qr-main-block-text[data-v-6b0532ed]{text-align:left;margin:10px 0;font-family:font_old_typer,serif;font-size:18px}p.qr-main-block-text[data-v-6b0532ed]{font-weight:500}.qr-block[data-v-6b0532ed]{background-color:#fff;padding:12px;display:inline-block} +.belt-block[data-v-bec154c5]{background-color:#000;background-image:url(/assets/belt-DVqk2_uL.png);background-size:cover;height:100%;position:relative}.shadow[data-v-bec154c5]{background-color:#000;width:100%;height:10px;position:absolute}.shadow-top[data-v-bec154c5]{top:0;box-shadow:0 -5px 10px #000}.shadow-bottom[data-v-bec154c5]{bottom:0;box-shadow:0 5px 10px #000}.plate-block[data-v-4833fe7e]{position:relative;box-shadow:0 0 10px #000}.metal-plate-block[data-v-4833fe7e]{background-image:url(/assets/metal-BiL2PH1r.png);background-size:cover;border-radius:4px;height:100%;position:relative}.pin[data-v-4833fe7e]{background-image:url(/assets/pin-CJfldk-j.png);background-size:cover;width:7px;height:7px;position:absolute}.pin-top-left[data-v-4833fe7e]{top:3px;left:3px}.pin-top-right[data-v-4833fe7e]{top:3px;right:3px}.pin-bottom-right[data-v-4833fe7e]{bottom:3px;right:3px}.pin-bottom-left[data-v-4833fe7e]{bottom:3px;left:3px}.form-custom[data-v-3d06b938]{color:#fff;z-index:1000;width:100%;position:fixed;bottom:0;left:0}.input-form[data-v-3d06b938]{z-index:1000;max-width:1920px;height:76px;margin:0 auto;position:relative}.controller-metal[data-v-3d06b938]{width:30px;height:calc(100% + 2px);position:absolute;top:-1px}.controller-metal-left[data-v-3d06b938]{left:-30px}.controller-metal-right[data-v-3d06b938]{right:-30px}.controller[data-v-3d06b938]{display:flex;position:relative}.game-input[data-v-3d06b938]{width:calc(100% - 175px);height:50px;position:relative;top:14px;left:15px}.game-input-run[data-v-3d06b938]{background-color:#0000;background-image:url(/assets/input_center-DZZtEHaZ.png);background-size:cover;border:0;width:100%;height:100%;padding-left:27px;font-family:font_old_typer,serif;font-size:18px}.game-input-run[data-v-3d06b938]::placeholder{color:#333}.game-input-run[data-v-3d06b938]:focus{border:0;outline:none}.game-button-run-shadow[data-v-3d06b938]{width:150px;height:80px;position:absolute;top:-5px;right:10px;box-shadow:-5px 5px 10px #000}.game-button-run[data-v-3d06b938]{cursor:pointer;background-color:#0000;background-image:url(/assets/button-DdziMEJE.png);background-size:cover;border:0;width:155px;height:80px;margin:0;padding:0;font-size:1.5em;position:absolute;top:-5px;right:10px}.new-places-label[data-v-3d06b938],.all-places-label[data-v-3d06b938]{height:48px;position:absolute}.new-places-label[data-v-3d06b938]{width:40px;top:14px;left:85px}.all-places-label[data-v-3d06b938]{width:60px;top:14px;left:15px}.places-text[data-v-3d06b938]{color:#111;text-align:center;background-color:#d1cebd;background-image:url(/assets/paper-CuqvoKhN.jpg);background-size:cover;border:1px solid #9e9982;border-radius:7px;margin:0 1px;font-family:font_old_typer,serif;font-size:1.4em;display:inline-block;box-shadow:0 -2px 5px #000}.places-text-number[data-v-3d06b938]{width:18px}.counters-block[data-v-3d06b938]{margin:20px 10px 20px 5px;position:absolute;top:-40px;left:23px}.counter-block[data-v-3d06b938]{margin:5px;display:inline-block}.icon-for-counter[data-v-3d06b938]{margin:0 4px;position:relative;top:3px}@media (width>=1025px){.center-block-700[data-v-3d06b938]{width:700px;margin:0 auto}}.case-background[data-v-24ac6c6e]{pointer-events:none;z-index:-1;background-position:50%;background-size:cover;position:fixed;inset:0}.bottom-margin[data-v-24ac6c6e]{height:calc(100dvh - 76px);margin-top:0}.game-finished[data-v-24ac6c6e]{height:100dvh}.review-block[data-v-24ac6c6e]{margin-top:20px}.review-rating[data-v-24ac6c6e]{margin-top:20px;margin-bottom:6px}.review-rate[data-v-24ac6c6e]{margin-top:4px;margin-bottom:8px}.review-input[data-v-24ac6c6e]{margin-top:14px}.smooth-scroll[data-v-24ac6c6e]{scroll-behavior:smooth}.edit-panel[data-v-24ac6c6e]{background-color:#222;border-radius:10px;margin:30px 0;padding:20px}.qr-main-block[data-v-24ac6c6e]{justify-content:center;align-items:center;display:flex}.questions-hr[data-v-24ac6c6e]{border:1px dashed #000;margin:10px 0}.questions-hint[data-v-24ac6c6e]{color:#000}.question-item[data-v-24ac6c6e]{margin:15px 0}.question-text[data-v-24ac6c6e]{margin-bottom:6px;font-weight:500}.questions-actions[data-v-24ac6c6e]{margin-top:10px}.paper-button[data-v-24ac6c6e]{color:#bfa07d;cursor:pointer;background-image:url(/assets/belt-DVqk2_uL.png);background-size:cover;border:0;border-radius:5px;margin-top:10px;padding:5px 12px;font-family:font_old_typer,serif;font-size:16px;font-weight:600;display:inline-block}.paper-button[data-v-24ac6c6e]:hover{color:#63e2b7}.font[data-v-24ac6c6e]{font-family:font_old_typer,serif;font-size:18px}.qr-main-block-text[data-v-24ac6c6e]{text-align:left;margin:10px 0;font-family:font_old_typer,serif;font-size:18px}p.qr-main-block-text[data-v-24ac6c6e]{font-weight:500}.qr-block[data-v-24ac6c6e]{background-color:#fff;padding:12px;display:inline-block} diff --git a/frontend/dist/assets/TeamStoryView-DRyU8F-4.js b/frontend/dist/assets/TeamStoryView-DRyU8F-4.js deleted file mode 100644 index 3738a50..0000000 --- a/frontend/dist/assets/TeamStoryView-DRyU8F-4.js +++ /dev/null @@ -1 +0,0 @@ -import{Ct as e,Dt as t,Fn as n,In as r,Jt as i,Kt as a,Ln as o,Ot as s,Rt as c,St as l,Xt as u,Yt as d,an as f,bt as p,hn as m,ht as h,in as g,kt as _,l as ee,wt as v,xt as y,yn as b}from"./client-vZFx54yb.js";import{n as te,t as x}from"./es-DSPBzgpf.js";import{t as ne}from"./Button-Bx9JIj0e.js";import{t as S}from"./_plugin-vue_export-helper-FodinAjS.js";import{n as re,t as ie}from"./PlaceBlock-h6Syh7Mw.js";import{t as C}from"./Input-D7YePN-E.js";import{t as ae}from"./Alert-aZxDGAB-.js";import{t as w}from"./Flex-CjWQ3AmY.js";import{t as T}from"./Rate-DGhiVNSc.js";import{t as oe}from"./QrCode-DxK4gby4.js";import{S as E,it as D,n as se,t as ce}from"./index-Ci0r-yTA.js";import{t as O}from"./HeaderText-BK8aY5U4.js";import{t as le}from"./useSimplePolling-ntn8lfqD.js";import{t as k}from"./MessagePaper-C4zKJpgE.js";var A={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},j=_({name:`ContactMailRound`,render:function(e,t){return a(),v(`svg`,A,t[0]||=[y(`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=_({name:`Footsteps`,render:function(e,t){return a(),v(`svg`,M,t[0]||=[y(`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),y(`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),y(`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),y(`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(e,t){return a(),v(`div`,null,[t[0]||=y(`div`,{class:`shadow shadow-top`},null,-1),t[1]||=y(`div`,{class:`shadow shadow-bottom`},null,-1),y(`div`,F,[d(e.$slots,`default`,{},void 0,!0)])])}var L=S(P,[[`render`,I],[`__scopeId`,`data-v-bec154c5`]]),R={},z={class:`plate-block`},B={class:`metal-plate-block`};function V(e,t){return a(),v(`div`,z,[y(`div`,B,[d(e.$slots,`default`,{},void 0,!0)]),t[0]||=y(`div`,{class:`pin pin-top-left`},null,-1),t[1]||=y(`div`,{class:`pin pin-top-right`},null,-1),t[2]||=y(`div`,{class:`pin pin-bottom-right`},null,-1),t[3]||=y(`div`,{class:`pin pin-bottom-left`},null,-1)])}var H=S(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`],$=[`disabled`],ue=S(_({__name:`GameInputForm`,props:{addAction:{type:Function},allPlacesCount:{},newPlacesCount:{},gameStatus:{}},setup(n){let r=m(``),c=n;async function u(){await c.addAction(r.value),r.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(p,m)=>(a(),v(`div`,U,[s(L,{class:`input-form`},{default:g(()=>[s(H,{class:`controller-metal controller-metal-left`}),s(H,{class:`controller-metal controller-metal-right`}),y(`div`,W,[y(`div`,G,[y(`div`,K,[y(`div`,q,[y(`div`,J,[s(b(x),{class:`icon-for-counter`},{default:g(()=>[s(b(N))]),_:1})]),(a(!0),v(h,null,i(d(n.allPlacesCount),(e,t)=>(a(),v(`div`,{key:t,class:`places-text places-text-number`},o(e),1))),128))]),y(`div`,Y,[y(`div`,X,[s(b(x),{class:`icon-for-counter`},{default:g(()=>[s(b(j))]),_:1})]),(a(!0),v(h,null,i(d(n.newPlacesCount),(e,t)=>(a(),v(`div`,{key:t,class:`places-text places-text-number`},o(e),1))),128))])]),y(`div`,Z,[f(y(`input`,{id:`run`,class:`game-input-run`,"onUpdate:modelValue":m[0]||=e=>r.value=e,type:`text`,placeholder:c.gameStatus==`run`?`Место назначения`:`Ходы запрещены`,disabled:c.gameStatus!=`run`},null,8,Q),[[D,r.value]])]),m[4]||=y(`div`,{class:`game-button-run-shadow`},null,-1),y(`button`,{class:`game-button-run`,type:`submit`,disabled:r.value.length==0,onClick:u},[c.gameStatus==`run`?(a(),l(O,{key:0},{default:g(()=>[...m[1]||=[t(`Поехали`,-1)]]),_:1})):e(``,!0),c.gameStatus==`pause`||c.gameStatus==`draft`?(a(),l(O,{key:1},{default:g(()=>[...m[2]||=[t(`Ждём`,-1)]]),_:1})):e(``,!0),c.gameStatus==`finish`?(a(),l(O,{key:2},{default:g(()=>[...m[3]||=[t(`Всё`,-1)]]),_:1})):e(``,!0)],8,$)])])]),_:1})]))}}),[[`__scopeId`,`data-v-3d06b938`]]),de={key:0,class:`width700`},fe=[`disabled`],pe={key:1,class:`width700`},me={class:`question-text`},he={class:`qr-block`},ge={key:4,class:`edit-panel`},_e=S(_({__name:`TeamStoryPage`,setup(d){let f=ce(),_=se(),x=te(),S=ee(),D=S.params.id,O=S.query.password,A=m(0),j=m([]),M=m(``),N=m(),P=m({introduction:void 0,places:[],questions:[]}),F=m({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=m(``),L=`game-review-${D}`,R=m(localStorage.getItem(L)===`1`),z=m(0),B=m(0),V=m(``),H=m(!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 _.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 i=P.value.places.length;if(i>r&&r!=0&&(A.value+=i-r),await c(),n&&r!=0){let e=N.value;if(!e)return!1;e.scrollTop=e.scrollHeight}}G(),J();async function K(e){await _.AddTeamAction({ID:Number(D),password:O,code:e}),await G(),I.value=``,await c(),A.value=0}let q=m({});async function J(){let e;try{e=await _.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 _.SubmitTeamAnswers({ID:Number(D),password:O,answers:(P.value.questions||[]).map(e=>({questionCode:e.code,answer:q.value[e.code||``]||``}))}),x.success(`Ответы сохранены`),await J()}let X=p(()=>F.value?.format!==`offline`&&(F.value?.status==`run`||F.value?.status==`pause`)),Z=p(()=>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 $(){if(!z.value||!B.value||V.value.trim()===``){x.error(`Поставьте оценки и напишите отзыв`);return}H.value=!0,await _.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`),x.success(`Спасибо за отзыв`)}async function _e(){await _.DeleteLastTeamAction({ID:Number(D)}),await G(),I.value=``}return le(()=>{G()},2e3),(c,d)=>{let p=u(`n-space`);return a(),v(h,null,[P.value.background?(a(),v(`div`,{key:0,class:`case-background`,style:r({backgroundImage:`url(${JSON.stringify(P.value.background)})`}),"aria-hidden":`true`},null,4)):e(``,!0),y(`div`,{class:n([`center-block-custom bottom-margin smooth-scroll`,{"game-finished":F.value?.status===`finish`}]),ref_key:`scrollContainer`,ref:N},[F.value?.status===`finish`?(a(),v(`div`,de,[s(k,{role:`status`},{default:g(()=>[...d[4]||=[y(`div`,{class:`font`},`Игра завершена. Спасибо за участие!`,-1)]]),_:1}),R.value?e(``,!0):(a(),l(k,{key:0,class:`review-block`},{default:g(()=>[d[7]||=y(`div`,{class:`font`},`Оцените игру`,-1),d[8]||=y(`hr`,{class:`questions-hr`},null,-1),s(b(E),{"theme-overrides":Q},{default:g(()=>[d[5]||=y(`div`,{class:`review-rating font`},`Оценка`,-1),s(b(T),{value:z.value,"onUpdate:value":d[0]||=e=>z.value=e,count:5,class:`review-rate`},null,8,[`value`]),d[6]||=y(`div`,{class:`review-rating font`},`Сложность`,-1),s(b(T),{value:B.value,"onUpdate:value":d[1]||=e=>B.value=e,count:3,class:`review-rate`},null,8,[`value`]),s(b(C),{value:V.value,"onUpdate:value":d[2]||=e=>V.value=e,class:`review-input`,type:`textarea`,autosize:{minRows:4,maxRows:8},placeholder:`Расскажите, как прошла игра`},null,8,[`value`]),s(b(w),{justify:`end`,class:`questions-actions`},{default:g(()=>[y(`button`,{type:`button`,class:`paper-button`,disabled:H.value,onClick:$},` Отправить отзыв `,8,fe)]),_:1})]),_:1})]),_:1}))])):(a(),v(`div`,pe,[M.value?(a(),l(b(ae),{key:0,type:`error`,role:`alert`},{default:g(()=>[t(o(M.value),1)]),_:1})):e(``,!0),s(ue,{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)?(a(),l(re,{key:1,introduction:P.value.introduction,mode:`show`},null,8,[`introduction`])):e(``,!0),Z.value&&F.value?.status&&F.value.status!=`draft`?(a(),l(k,{key:2,class:`questions-block`},{default:g(()=>[d[9]||=y(`div`,{class:`font`},`Вопросы дела`,-1),d[10]||=y(`hr`,{class:`questions-hr`},null,-1),d[11]||=y(`p`,{class:`questions-hint font`},` Ответьте на вопросы дела. Ответы можно менять, пока игра идёт. `,-1),s(b(E),{"theme-overrides":Q},{default:g(()=>[(a(!0),v(h,null,i(P.value.questions,e=>(a(),v(`div`,{key:e.code,class:`question-item font`},[y(`div`,me,o(e.code)+`: `+o(e.text),1),s(b(C),{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?(a(),l(b(w),{key:0,justify:`end`,class:`questions-actions`},{default:g(()=>[y(`button`,{type:`button`,class:`paper-button`,onClick:d[3]||=e=>Y()},` Сохранить ответы `)]),_:1})):e(``,!0)]),_:1})]),_:1})):e(``,!0),(a(!0),v(h,null,i(P.value.places,(e,t)=>(a(),l(ie,{place:e.place,mode:e.mode,"onUpdate:mode":t=>e.mode=t,key:`${F.value?.format}:${e.place.code}`,mcp:b(f).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`?(a(),l(k,{key:3,class:`qr-main-block`},{default:g(()=>[s(p,{vertical:``},{default:g(()=>[d[12]||=y(`h2`,{class:`qr-main-block-text`},`Это код этого дела`,-1),d[13]||=y(`p`,{class:`qr-main-block-text`},`Поделись с командой`,-1),y(`div`,he,[s(b(oe),{value:b(U),size:300,padding:0},null,8,[`value`])]),d[14]||=y(`p`,{class:`qr-main-block-text`},`Игра скоро начнется`,-1)]),_:1})]),_:1})):e(``,!0),b(f).hasRole(`author`)&&P.value.places.length>0?(a(),v(`div`,ge,[s(b(w),{justify:`end`},{default:g(()=>[s(b(ne),{onClick:_e},{default:g(()=>[...d[15]||=[t(`Удалить последний ход`,-1)]]),_:1})]),_:1})])):e(``,!0)]))],2)],64)}}}),[[`__scopeId`,`data-v-6b0532ed`]]),ve=_({__name:`TeamStoryView`,setup(e){return(e,t)=>(a(),l(_e))}});export{ve as default}; \ No newline at end of file diff --git a/frontend/dist/assets/TeamStoryView-Dh33lDbt.js b/frontend/dist/assets/TeamStoryView-Dh33lDbt.js new file mode 100644 index 0000000..91a4d2c --- /dev/null +++ b/frontend/dist/assets/TeamStoryView-Dh33lDbt.js @@ -0,0 +1 @@ +import{Ct as e,Dt as t,Fn as n,In as r,Jt as i,Kt as a,Ln as o,Ot as s,Rt as c,St as l,Xt as u,Yt as d,an as f,bt as p,hn as m,ht as h,in as g,kt as _,l as ee,wt as v,xt as y,yn as b}from"./client-CREJv8AD.js";import{n as te,t as x}from"./es-CevmKZP_.js";import{t as ne}from"./Button-MvNgQLzL.js";import{t as S}from"./_plugin-vue_export-helper-BkfvhliL.js";import{n as re,t as ie}from"./PlaceBlock-CxzGePrT.js";import{t as C}from"./Input-B41xxqED.js";import{t as ae}from"./Alert-CvCnaLc2.js";import{t as w}from"./Flex-B0ZjnZ3e.js";import{t as T}from"./Rate-BybamiWd.js";import{t as oe}from"./QrCode-CgX_T1UU.js";import{S as E,it as D,n as se,t as ce}from"./index-DZpFhWFx.js";import{t as O}from"./HeaderText-B83p3PsD.js";import{t as le}from"./useSimplePolling-C5AtW5j-.js";import{t as k}from"./MessagePaper-C1j55G49.js";var A={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},j=_({name:`ContactMailRound`,render:function(e,t){return a(),v(`svg`,A,t[0]||=[y(`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=_({name:`Footsteps`,render:function(e,t){return a(),v(`svg`,M,t[0]||=[y(`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),y(`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),y(`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),y(`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(e,t){return a(),v(`div`,null,[t[0]||=y(`div`,{class:`shadow shadow-top`},null,-1),t[1]||=y(`div`,{class:`shadow shadow-bottom`},null,-1),y(`div`,F,[d(e.$slots,`default`,{},void 0,!0)])])}var L=S(P,[[`render`,I],[`__scopeId`,`data-v-bec154c5`]]),R={},z={class:`plate-block`},B={class:`metal-plate-block`};function V(e,t){return a(),v(`div`,z,[y(`div`,B,[d(e.$slots,`default`,{},void 0,!0)]),t[0]||=y(`div`,{class:`pin pin-top-left`},null,-1),t[1]||=y(`div`,{class:`pin pin-top-right`},null,-1),t[2]||=y(`div`,{class:`pin pin-bottom-right`},null,-1),t[3]||=y(`div`,{class:`pin pin-bottom-left`},null,-1)])}var H=S(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`],$=[`disabled`],ue=S(_({__name:`GameInputForm`,props:{addAction:{type:Function},allPlacesCount:{},newPlacesCount:{},gameStatus:{}},setup(n){let r=m(``),c=n;async function u(){await c.addAction(r.value),r.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(p,m)=>(a(),v(`div`,U,[s(L,{class:`input-form`},{default:g(()=>[s(H,{class:`controller-metal controller-metal-left`}),s(H,{class:`controller-metal controller-metal-right`}),y(`div`,W,[y(`div`,G,[y(`div`,K,[y(`div`,q,[y(`div`,J,[s(b(x),{class:`icon-for-counter`},{default:g(()=>[s(b(N))]),_:1})]),(a(!0),v(h,null,i(d(n.allPlacesCount),(e,t)=>(a(),v(`div`,{key:t,class:`places-text places-text-number`},o(e),1))),128))]),y(`div`,Y,[y(`div`,X,[s(b(x),{class:`icon-for-counter`},{default:g(()=>[s(b(j))]),_:1})]),(a(!0),v(h,null,i(d(n.newPlacesCount),(e,t)=>(a(),v(`div`,{key:t,class:`places-text places-text-number`},o(e),1))),128))])]),y(`div`,Z,[f(y(`input`,{id:`run`,class:`game-input-run`,"onUpdate:modelValue":m[0]||=e=>r.value=e,type:`text`,placeholder:c.gameStatus==`run`?`Место назначения`:`Ходы запрещены`,disabled:c.gameStatus!=`run`},null,8,Q),[[D,r.value]])]),m[4]||=y(`div`,{class:`game-button-run-shadow`},null,-1),y(`button`,{class:`game-button-run`,type:`submit`,disabled:r.value.length==0,onClick:u},[c.gameStatus==`run`?(a(),l(O,{key:0},{default:g(()=>[...m[1]||=[t(`Поехали`,-1)]]),_:1})):e(``,!0),c.gameStatus==`pause`||c.gameStatus==`draft`?(a(),l(O,{key:1},{default:g(()=>[...m[2]||=[t(`Ждём`,-1)]]),_:1})):e(``,!0),c.gameStatus==`finish`?(a(),l(O,{key:2},{default:g(()=>[...m[3]||=[t(`Всё`,-1)]]),_:1})):e(``,!0)],8,$)])])]),_:1})]))}}),[[`__scopeId`,`data-v-3d06b938`]]),de={key:0,class:`width700`},fe=[`disabled`],pe={key:1,class:`width700`},me={class:`question-text`},he={class:`qr-block`},ge={key:4,class:`edit-panel`},_e=S(_({__name:`TeamStoryPage`,setup(d){let f=ce(),_=se(),x=te(),S=ee(),D=S.params.id,O=S.query.password,A=m(0),j=m([]),M=m(``),N=m(),P=m({introduction:void 0,places:[],questions:[]}),F=m({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,export:void 0}),I=m(``),L=`game-review-${D}`,R=m(localStorage.getItem(L)===`1`),z=m(0),B=m(0),V=m(``),H=m(!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 _.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 i=P.value.places.length;if(i>r&&r!=0&&(A.value+=i-r),await c(),n&&r!=0){let e=N.value;if(!e)return!1;e.scrollTop=e.scrollHeight}}G(),J();async function K(e){await _.AddTeamAction({ID:Number(D),password:O,code:e}),await G(),I.value=``,await c(),A.value=0}let q=m({});async function J(){let e;try{e=await _.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 _.SubmitTeamAnswers({ID:Number(D),password:O,answers:(P.value.questions||[]).map(e=>({questionCode:e.code,answer:q.value[e.code||``]||``}))}),x.success(`Ответы сохранены`),await J()}let X=p(()=>F.value?.format!==`offline`&&(F.value?.status==`run`||F.value?.status==`pause`)),Z=p(()=>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 $(){if(!z.value||!B.value||V.value.trim()===``){x.error(`Поставьте оценки и напишите отзыв`);return}H.value=!0,await _.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`),x.success(`Спасибо за отзыв`)}async function _e(){await _.DeleteLastTeamAction({ID:Number(D)}),await G(),I.value=``}return le(()=>{G()},2e3),(c,d)=>{let p=u(`n-space`);return a(),v(h,null,[P.value.background?(a(),v(`div`,{key:0,class:`case-background`,style:r({backgroundImage:`url(${JSON.stringify(P.value.background)})`}),"aria-hidden":`true`},null,4)):e(``,!0),y(`div`,{class:n([`center-block-custom bottom-margin smooth-scroll`,{"game-finished":F.value?.status===`finish`}]),ref_key:`scrollContainer`,ref:N},[F.value?.status===`finish`?(a(),v(`div`,de,[s(k,{role:`status`},{default:g(()=>[...d[4]||=[y(`div`,{class:`font`},`Игра завершена. Спасибо за участие!`,-1)]]),_:1}),R.value?e(``,!0):(a(),l(k,{key:0,class:`review-block`},{default:g(()=>[d[7]||=y(`div`,{class:`font`},`Оцените игру`,-1),d[8]||=y(`hr`,{class:`questions-hr`},null,-1),s(b(E),{"theme-overrides":Q},{default:g(()=>[d[5]||=y(`div`,{class:`review-rating font`},`Оценка`,-1),s(b(T),{value:z.value,"onUpdate:value":d[0]||=e=>z.value=e,count:5,class:`review-rate`},null,8,[`value`]),d[6]||=y(`div`,{class:`review-rating font`},`Сложность`,-1),s(b(T),{value:B.value,"onUpdate:value":d[1]||=e=>B.value=e,count:3,class:`review-rate`},null,8,[`value`]),s(b(C),{value:V.value,"onUpdate:value":d[2]||=e=>V.value=e,class:`review-input`,type:`textarea`,autosize:{minRows:4,maxRows:8},placeholder:`Расскажите, как прошла игра`},null,8,[`value`]),s(b(w),{justify:`end`,class:`questions-actions`},{default:g(()=>[y(`button`,{type:`button`,class:`paper-button`,disabled:H.value,onClick:$},` Отправить отзыв `,8,fe)]),_:1})]),_:1})]),_:1}))])):(a(),v(`div`,pe,[M.value?(a(),l(b(ae),{key:0,type:`error`,role:`alert`},{default:g(()=>[t(o(M.value),1)]),_:1})):e(``,!0),s(ue,{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)?(a(),l(re,{key:1,introduction:P.value.introduction,mode:`show`},null,8,[`introduction`])):e(``,!0),Z.value&&F.value?.status&&F.value.status!=`draft`?(a(),l(k,{key:2,class:`questions-block`},{default:g(()=>[d[9]||=y(`div`,{class:`font`},`Вопросы дела`,-1),d[10]||=y(`hr`,{class:`questions-hr`},null,-1),d[11]||=y(`p`,{class:`questions-hint font`},` Ответьте на вопросы дела. Ответы можно менять, пока игра идёт. `,-1),s(b(E),{"theme-overrides":Q},{default:g(()=>[(a(!0),v(h,null,i(P.value.questions,e=>(a(),v(`div`,{key:e.code,class:`question-item font`},[y(`div`,me,o(e.code)+`: `+o(e.text),1),s(b(C),{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?(a(),l(b(w),{key:0,justify:`end`,class:`questions-actions`},{default:g(()=>[y(`button`,{type:`button`,class:`paper-button`,onClick:d[3]||=e=>Y()},` Сохранить ответы `)]),_:1})):e(``,!0)]),_:1})]),_:1})):e(``,!0),(a(!0),v(h,null,i(P.value.places,(e,t)=>(a(),l(ie,{place:e.place,mode:e.mode,"onUpdate:mode":t=>e.mode=t,key:`${F.value?.format}:${e.place.code}`,mcp:b(f).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`?(a(),l(k,{key:3,class:`qr-main-block`},{default:g(()=>[s(p,{vertical:``},{default:g(()=>[d[12]||=y(`h2`,{class:`qr-main-block-text`},`Это код этого дела`,-1),d[13]||=y(`p`,{class:`qr-main-block-text`},`Поделись с командой`,-1),y(`div`,he,[s(b(oe),{value:b(U),size:300,padding:0},null,8,[`value`])]),d[14]||=y(`p`,{class:`qr-main-block-text`},`Игра скоро начнется`,-1)]),_:1})]),_:1})):e(``,!0),b(f).hasRole(`author`)&&P.value.places.length>0?(a(),v(`div`,ge,[s(b(w),{justify:`end`},{default:g(()=>[s(b(ne),{onClick:_e},{default:g(()=>[...d[15]||=[t(`Удалить последний ход`,-1)]]),_:1})]),_:1})])):e(``,!0)]))],2)],64)}}}),[[`__scopeId`,`data-v-24ac6c6e`]]),ve=_({__name:`TeamStoryView`,setup(e){return(e,t)=>(a(),l(_e))}});export{ve as default}; \ No newline at end of file diff --git a/frontend/dist/assets/TicketView-B1FndUn_.js b/frontend/dist/assets/TicketView-DQFkb9_N.js similarity index 87% rename from frontend/dist/assets/TicketView-B1FndUn_.js rename to frontend/dist/assets/TicketView-DQFkb9_N.js index 76987e0..6a74a0d 100644 --- a/frontend/dist/assets/TicketView-B1FndUn_.js +++ b/frontend/dist/assets/TicketView-DQFkb9_N.js @@ -1 +1 @@ -import{Dt as e,Kt as t,Ln as n,Ot as r,St as i,Ut as a,bt as o,hn as s,ht as c,in as l,kt as u,l as d,t as f,wt as p,xt as m,yn as h}from"./client-vZFx54yb.js";import{t as g}from"./Button-Bx9JIj0e.js";import{t as _}from"./_plugin-vue_export-helper-FodinAjS.js";import{t as v}from"./QrCode-DxK4gby4.js";import{t as y}from"./datetime-BJNH0M1T.js";import{t as b}from"./MessagePaper-C4zKJpgE.js";var x={class:`ticket-page center-block-custom`},S={class:`width700`},C={class:`ticket-card`},w={key:0,class:`error`,role:`alert`},T={class:`qr-block`},E={class:`used`,role:`status`},D={key:1,class:`used`,role:`status`},O=_(u({__name:`TicketPage`,setup(u){let _=d(),O=f(),k=o(()=>String(_.params.token||``)),A=s(),j=s(!1),M=s(``),N=o(()=>window.location.href);async function P(){j.value=!0,M.value=``;try{let e=await O.GetTicket({token:k.value});if(!e.ticket){M.value=`Билет не найден`;return}A.value=e.ticket}catch{M.value=`Не удалось загрузить билет. Попробуйте ещё раз.`}finally{j.value=!1}}return a(P),(a,o)=>(t(),p(`div`,x,[m(`div`,S,[r(b,null,{default:l(()=>[m(`div`,C,[o[7]||=m(`p`,{class:`ticket-kicker`},`ВЕЧЕРНИЙ ДЕТЕКТИВ · ПРОПУСК`,-1),o[8]||=m(`h1`,null,`Билет на игру`,-1),M.value?(t(),p(`p`,w,n(M.value),1)):A.value?(t(),p(c,{key:1},[m(`h2`,null,n(A.value.gameName),1),o[5]||=m(`hr`,null,null,-1),m(`dl`,null,[m(`div`,null,[o[0]||=m(`dt`,null,`Начало`,-1),m(`dd`,null,n(h(y)(A.value.startAt)),1)]),m(`div`,null,[o[1]||=m(`dt`,null,`Место`,-1),m(`dd`,null,n(A.value.location||`Онлайн`),1)])]),m(`div`,T,[r(h(v),{value:N.value,size:300,padding:0},null,8,[`value`])]),o[6]||=m(`p`,null,`Покажите этот QR-код организатору.`,-1),A.value.status===`used`?(t(),p(c,{key:0},[o[2]||=m(`hr`,null,null,-1),m(`p`,E,` Билет уже использован`+n(A.value.usedAt?` ${h(y)(A.value.usedAt)}`:``)+n(A.value.usedBy?` организатором ${A.value.usedBy}`:``)+`. `,1)],64)):A.value.gameStatus===`finish`?(t(),p(`p`,D,` Игра уже завершена. `)):(t(),p(c,{key:2},[o[3]||=m(`hr`,null,null,-1),o[4]||=m(`p`,{class:`active`,role:`status`},`Билет действителен.`,-1)],64))],64)):(t(),i(h(g),{key:2,loading:j.value,onClick:P},{default:l(()=>[e(n(j.value?`Загрузка`:`Повторить`),1)]),_:1},8,[`loading`]))])]),_:1})])]))}}),[[`__scopeId`,`data-v-5f755593`]]),k=u({__name:`TicketView`,setup(e){return(e,n)=>(t(),i(O))}});export{k as default}; \ No newline at end of file +import{Dt as e,Kt as t,Ln as n,Ot as r,St as i,Ut as a,bt as o,hn as s,ht as c,in as l,kt as u,l as d,t as f,wt as p,xt as m,yn as h}from"./client-CREJv8AD.js";import{t as g}from"./Button-MvNgQLzL.js";import{t as _}from"./_plugin-vue_export-helper-BkfvhliL.js";import{t as v}from"./QrCode-CgX_T1UU.js";import{t as y}from"./datetime-BJNH0M1T.js";import{t as b}from"./MessagePaper-C1j55G49.js";var x={class:`ticket-page center-block-custom`},S={class:`width700`},C={class:`ticket-card`},w={key:0,class:`error`,role:`alert`},T={class:`qr-block`},E={class:`used`,role:`status`},D={key:1,class:`used`,role:`status`},O=_(u({__name:`TicketPage`,setup(u){let _=d(),O=f(),k=o(()=>String(_.params.token||``)),A=s(),j=s(!1),M=s(``),N=o(()=>window.location.href);async function P(){j.value=!0,M.value=``;try{let e=await O.GetTicket({token:k.value});if(!e.ticket){M.value=`Билет не найден`;return}A.value=e.ticket}catch{M.value=`Не удалось загрузить билет. Попробуйте ещё раз.`}finally{j.value=!1}}return a(P),(a,o)=>(t(),p(`div`,x,[m(`div`,S,[r(b,null,{default:l(()=>[m(`div`,C,[o[7]||=m(`p`,{class:`ticket-kicker`},`ВЕЧЕРНИЙ ДЕТЕКТИВ · ПРОПУСК`,-1),o[8]||=m(`h1`,null,`Билет на игру`,-1),M.value?(t(),p(`p`,w,n(M.value),1)):A.value?(t(),p(c,{key:1},[m(`h2`,null,n(A.value.gameName),1),o[5]||=m(`hr`,null,null,-1),m(`dl`,null,[m(`div`,null,[o[0]||=m(`dt`,null,`Начало`,-1),m(`dd`,null,n(h(y)(A.value.startAt)),1)]),m(`div`,null,[o[1]||=m(`dt`,null,`Место`,-1),m(`dd`,null,n(A.value.location||`Онлайн`),1)])]),m(`div`,T,[r(h(v),{value:N.value,size:300,padding:0},null,8,[`value`])]),o[6]||=m(`p`,null,`Покажите этот QR-код организатору.`,-1),A.value.status===`used`?(t(),p(c,{key:0},[o[2]||=m(`hr`,null,null,-1),m(`p`,E,` Билет уже использован`+n(A.value.usedAt?` ${h(y)(A.value.usedAt)}`:``)+n(A.value.usedBy?` организатором ${A.value.usedBy}`:``)+`. `,1)],64)):A.value.gameStatus===`finish`?(t(),p(`p`,D,` Игра уже завершена. `)):(t(),p(c,{key:2},[o[3]||=m(`hr`,null,null,-1),o[4]||=m(`p`,{class:`active`,role:`status`},`Билет действителен.`,-1)],64))],64)):(t(),i(h(g),{key:2,loading:j.value,onClick:P},{default:l(()=>[e(n(j.value?`Загрузка`:`Повторить`),1)]),_:1},8,[`loading`]))])]),_:1})])]))}}),[[`__scopeId`,`data-v-5f755593`]]),k=u({__name:`TicketView`,setup(e){return(e,n)=>(t(),i(O))}});export{k as default}; \ No newline at end of file diff --git a/frontend/dist/assets/Upload-B6W9RuvF.js b/frontend/dist/assets/Upload-CKwlW1lG.js similarity index 98% rename from frontend/dist/assets/Upload-B6W9RuvF.js rename to frontend/dist/assets/Upload-CKwlW1lG.js index d250ab3..5531cf4 100644 --- a/frontend/dist/assets/Upload-B6W9RuvF.js +++ b/frontend/dist/assets/Upload-CKwlW1lG.js @@ -1,4 +1,4 @@ -import{G as e,H as t,In as n,K as r,Mt as i,Pt as a,Rt as o,U as s,Ut as c,Vt as l,Y as u,_n as d,an as f,at as p,bt as m,d as h,dt as g,f as _,g as v,gt as y,hn as b,ht as x,it as S,kt as C,nn as w,nt as T,ot as E,p as D,q as O,qt as k,rn as A,st as j,tt as M,vn as ee}from"./client-vZFx54yb.js";import{u as N}from"./Follower-CdAIcE29.js";import{d as P,u as F}from"./Card-DO3oxl4F.js";import{f as I,i as te,n as ne,p as re}from"./Suffix-iau-0Xu1.js";import{t as ie}from"./use-merged-state-CEu_RNRJ.js";import{t as ae}from"./use-compitable-CCPds9Cc.js";import{a as L,t as R}from"./Button-Bx9JIj0e.js";import{n as oe,t as se}from"./Popover-CgvsZgY0.js";import{i as z,s as B}from"./_plugin-vue_export-helper-FodinAjS.js";import{o as V}from"./get-kvHFoxYO.js";import{n as H}from"./use-form-item-DwWmLpgT.js";import{t as ce}from"./Add-7eYe2Si6.js";import{n as le}from"./Input-D7YePN-E.js";import{t as ue}from"./fade-in.cssr-BsIdh_o6.js";import{$ as de,B as fe,D as pe,G as U,H as W,I as G,K,Q as me,R as q,U as J,V as he,W as ge,Z as _e,a as ve,at as ye,b as Y,nt as X,o as be,u as xe,z as Se}from"./index-Ci0r-yTA.js";function Ce(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 we(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++ii(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},i(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},i(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},i(`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`}))))),xt=J(`cancel`,()=>i(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},i(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},i(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},i(`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`}))))),St=J(`download`,()=>i(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},i(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},i(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},i(`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`}))))),Ct=C({name:`ResizeSmall`,render(){return i(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`},i(`g`,{fill:`none`},i(`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`})))}}),wt=J(`retry`,()=>i(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},i(`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;`}),i(`polyline`,{points:`256 58 336 138 256 218`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}))),Tt=J(`rotateClockwise`,()=>i(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},i(`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`}),i(`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`}))),Et=J(`rotateClockwise`,()=>i(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},i(`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`}),i(`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`}))),Dt=J(`trash`,()=>i(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},i(`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;`}),i(`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;`}),i(`line`,{x1:`312`,y1:`240`,x2:`200`,y2:`352`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}),i(`line`,{x1:`312`,y1:`352`,x2:`200`,y2:`240`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}))),Ot=J(`zoomIn`,()=>i(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},i(`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`}),i(`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`}))),kt=J(`zoomOut`,()=>i(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},i(`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`}),i(`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`}))),At=L&&`loading`in document.createElement(`img`);function jt(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 Mt=new WeakMap,Nt=new WeakMap,Pt=new WeakMap,Ft=(e,t,n)=>{if(!e)return()=>{};let r=jt(t),{root:i}=r.options,a,o=Mt.get(i);o?a=o:(a=new Map,Mt.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=Nt.get(e.target),n=Pt.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||(Nt.delete(e),Pt.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||Mt.delete(i))};return Nt.set(e,u),Pt.set(e,n),u},It=C({name:`Tooltip`,props:Object.assign(Object.assign({},oe),D.props),slots:Object,__popover__:!0,setup(e){let{mergedClsPrefixRef:t}=s(e),n=D(`Tooltip`,`-tooltip`,void 0,Y,e,t),r=b(null);return Object.assign(Object.assign({},{syncPosition(){r.value.syncPosition()},setShow(e){r.value.setShow(e)}}),{popoverRef:r,mergedTheme:n,popoverThemeOverrides:m(()=>n.value.self)})},render(){let{mergedTheme:e,internalExtraClass:t}=this;return i(se,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 Lt(){return{toolbarIconColor:`rgba(255, 255, 255, .9)`,toolbarColor:`rgba(0, 0, 0, .35)`,toolbarBoxShadow:`none`,toolbarBorderRadius:`24px`}}var Rt=_({name:`Image`,common:h,peers:{Tooltip:Y},self:Lt});function zt(){return i(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},i(`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 Bt(){return i(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},i(`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 Vt(){return i(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},i(`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 Ht=Object.assign(Object.assign({},D.props),{onPreviewPrev:Function,onPreviewNext:Function,showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean,renderToolbar:Function}),Ut=u(`n-image`),Wt=M([M(`body >`,[T(`image-container`,`position: fixed;`)]),T(`image-preview-container`,` +import{G as e,H as t,In as n,K as r,Mt as i,Pt as a,Rt as o,U as s,Ut as c,Vt as l,Y as u,_n as d,an as f,at as p,bt as m,d as h,dt as g,f as _,g as v,gt as y,hn as b,ht as x,it as S,kt as C,nn as w,nt as T,ot as E,p as D,q as O,qt as k,rn as A,st as j,tt as M,vn as ee}from"./client-CREJv8AD.js";import{u as N}from"./Follower-DAIDHT2D.js";import{d as P,u as F}from"./Card-CJC2gN5t.js";import{f as I,i as te,n as ne,p as re}from"./Suffix-iFHNypz-.js";import{t as ie}from"./use-merged-state-B6hyXujy.js";import{t as ae}from"./use-compitable-Be-NyPXq.js";import{a as L,t as R}from"./Button-MvNgQLzL.js";import{n as oe,t as se}from"./Popover-C32Z2jyV.js";import{i as z,s as B}from"./_plugin-vue_export-helper-BkfvhliL.js";import{o as V}from"./get-re2WVCRU.js";import{n as H}from"./use-form-item-CbDeFP5E.js";import{t as ce}from"./Add-Cwgq0nEf.js";import{n as le}from"./Input-B41xxqED.js";import{t as ue}from"./fade-in.cssr-CL3cAgSL.js";import{$ as de,B as fe,D as pe,G as U,H as W,I as G,K,Q as me,R as q,U as J,V as he,W as ge,Z as _e,a as ve,at as ye,b as Y,nt as X,o as be,u as xe,z as Se}from"./index-DZpFhWFx.js";function Ce(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 we(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++ii(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},i(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},i(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},i(`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`}))))),xt=J(`cancel`,()=>i(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},i(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},i(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},i(`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`}))))),St=J(`download`,()=>i(`svg`,{viewBox:`0 0 16 16`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},i(`g`,{stroke:`none`,"stroke-width":`1`,fill:`none`,"fill-rule":`evenodd`},i(`g`,{fill:`currentColor`,"fill-rule":`nonzero`},i(`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`}))))),Ct=C({name:`ResizeSmall`,render(){return i(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`},i(`g`,{fill:`none`},i(`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`})))}}),wt=J(`retry`,()=>i(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},i(`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;`}),i(`polyline`,{points:`256 58 336 138 256 218`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}))),Tt=J(`rotateClockwise`,()=>i(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},i(`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`}),i(`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`}))),Et=J(`rotateClockwise`,()=>i(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},i(`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`}),i(`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`}))),Dt=J(`trash`,()=>i(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},i(`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;`}),i(`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;`}),i(`line`,{x1:`312`,y1:`240`,x2:`200`,y2:`352`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}),i(`line`,{x1:`312`,y1:`352`,x2:`200`,y2:`240`,style:`fill: none; stroke: currentcolor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 32px;`}))),Ot=J(`zoomIn`,()=>i(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},i(`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`}),i(`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`}))),kt=J(`zoomOut`,()=>i(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},i(`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`}),i(`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`}))),At=L&&`loading`in document.createElement(`img`);function jt(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 Mt=new WeakMap,Nt=new WeakMap,Pt=new WeakMap,Ft=(e,t,n)=>{if(!e)return()=>{};let r=jt(t),{root:i}=r.options,a,o=Mt.get(i);o?a=o:(a=new Map,Mt.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=Nt.get(e.target),n=Pt.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||(Nt.delete(e),Pt.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||Mt.delete(i))};return Nt.set(e,u),Pt.set(e,n),u},It=C({name:`Tooltip`,props:Object.assign(Object.assign({},oe),D.props),slots:Object,__popover__:!0,setup(e){let{mergedClsPrefixRef:t}=s(e),n=D(`Tooltip`,`-tooltip`,void 0,Y,e,t),r=b(null);return Object.assign(Object.assign({},{syncPosition(){r.value.syncPosition()},setShow(e){r.value.setShow(e)}}),{popoverRef:r,mergedTheme:n,popoverThemeOverrides:m(()=>n.value.self)})},render(){let{mergedTheme:e,internalExtraClass:t}=this;return i(se,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 Lt(){return{toolbarIconColor:`rgba(255, 255, 255, .9)`,toolbarColor:`rgba(0, 0, 0, .35)`,toolbarBoxShadow:`none`,toolbarBorderRadius:`24px`}}var Rt=_({name:`Image`,common:h,peers:{Tooltip:Y},self:Lt});function zt(){return i(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},i(`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 Bt(){return i(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},i(`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 Vt(){return i(`svg`,{viewBox:`0 0 20 20`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},i(`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 Ht=Object.assign(Object.assign({},D.props),{onPreviewPrev:Function,onPreviewNext:Function,showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean,renderToolbar:Function}),Ut=u(`n-image`),Wt=M([M(`body >`,[T(`image-container`,`position: fixed;`)]),T(`image-preview-container`,` position: fixed; left: 0; right: 0; diff --git a/frontend/dist/assets/UserAgreementView-DVjdLQwc.js b/frontend/dist/assets/UserAgreementView-DVjdLQwc.js deleted file mode 100644 index 12a1567..0000000 --- a/frontend/dist/assets/UserAgreementView-DVjdLQwc.js +++ /dev/null @@ -1 +0,0 @@ -import{Kt as e,Ot as t,ht as n,kt as r,wt as i}from"./client-vZFx54yb.js";import{t as a}from"./HeaderMenu-CoWgnRN4.js";import{t as o}from"./DocsPage-x66dtzHN.js";var s=r({__name:`UserAgreementView`,setup(r){return(r,s)=>(e(),i(n,null,[t(o,{kind:`terms`}),t(a)],64))}});export{s as default}; \ No newline at end of file diff --git a/frontend/dist/assets/UserAgreementView-DgxzZnDR.js b/frontend/dist/assets/UserAgreementView-DgxzZnDR.js new file mode 100644 index 0000000..013c637 --- /dev/null +++ b/frontend/dist/assets/UserAgreementView-DgxzZnDR.js @@ -0,0 +1 @@ +import{Kt as e,Ot as t,ht as n,kt as r,wt as i}from"./client-CREJv8AD.js";import{t as a}from"./HeaderMenu-BarRlY0P.js";import{t as o}from"./DocsPage-Bi3DTzmc.js";var s=r({__name:`UserAgreementView`,setup(r){return(r,s)=>(e(),i(n,null,[t(o,{kind:`terms`}),t(a)],64))}});export{s as default}; \ No newline at end of file diff --git a/frontend/dist/assets/UsersView-jKpW7-mE.js b/frontend/dist/assets/UsersView-DI_JrWt-.js similarity index 90% rename from frontend/dist/assets/UsersView-jKpW7-mE.js rename to frontend/dist/assets/UsersView-DI_JrWt-.js index b2bf869..2f3fcda 100644 --- a/frontend/dist/assets/UsersView-jKpW7-mE.js +++ b/frontend/dist/assets/UsersView-DI_JrWt-.js @@ -1 +1 @@ -import{Ct as e,Dt as t,Jt as n,Kt as r,Ln as i,Ot as a,St as o,hn as s,ht as c,in as l,kt as u,wt as d,xt as f,yn as p}from"./client-vZFx54yb.js";import{t as m}from"./Card-DO3oxl4F.js";import{n as h,r as g}from"./es-DSPBzgpf.js";import{t as _}from"./Modal-XDlBuRmh.js";import{t as v}from"./FormItem-DcGe8Cb7.js";import{t as y}from"./Button-Bx9JIj0e.js";import{t as b}from"./_plugin-vue_export-helper-FodinAjS.js";import{t as x}from"./Input-D7YePN-E.js";import{t as S}from"./Space-BBIv_CVW.js";import{t as C}from"./Flex-CjWQ3AmY.js";import{n as w,st as T,t as E}from"./index-Ci0r-yTA.js";import{t as D}from"./HeaderMenu-CoWgnRN4.js";var O={class:`center-block-custom`},k={class:`width700`},A={class:`user-field`},j={class:`user-field`},M={class:`user-field`},N=b(u({__name:`UsersPage`,setup(u){let b=w(),N=h(),P=s([]),F=E(),I=s(null),L=s(``),R=s(``),z=s(!1);function B(){I.value=null,L.value=``,R.value=``}async function V(){if(!(!I.value||z.value)){if([...L.value].length<8||[...L.value].length>16){N.error(`Пароль должен содержать минимум 8 символов и не более 16 символов`);return}if(L.value!==R.value){N.error(`Пароли не совпадают`);return}z.value=!0;try{await b.ChangeUserPassword({ID:I.value.ID,newPassword:L.value}),B(),N.success(`Пароль изменён`)}catch(e){N.error(e instanceof Error?e.message:`Не удалось изменить пароль`)}finally{z.value=!1}}}async function H(){try{let e=await b.GetUsers({});P.value=e.users}catch(e){N.error(e instanceof Error?e.message:`Не удалось загрузить пользователей`)}}H();async function U(e,t){try{await b.AddUserRole({ID:e,role:t}),await H()}catch(e){N.error(e instanceof Error?e.message:`Не удалось изменить роль`)}}async function W(e,t){try{await b.DeleteUserRole({ID:e,role:t}),await H()}catch(e){N.error(e instanceof Error?e.message:`Не удалось изменить роль`)}}return(s,u)=>(r(),d(c,null,[f(`div`,O,[f(`div`,k,[(r(!0),d(c,null,n(P.value,s=>(r(),d(`div`,{key:s.ID,class:`user-block`},[f(`div`,A,`Позывной: `+i(s.username),1),f(`div`,j,`Почта: `+i(s.email),1),f(`div`,M,[a(p(S),null,{default:l(()=>[u[3]||=t(` Роли: `,-1),(r(!0),d(c,null,n(s.roles,e=>(r(),o(p(g),{bordered:!1,key:e},{default:l(()=>[t(i(e),1)]),_:2},1024))),128))]),_:2},1024)]),a(p(C),{justify:`end`,class:`roles-buttons-block`},{default:l(()=>[p(F).hasRole(`admin`)&&p(F).user&&s.ID!==p(F).user.ID?(r(),o(p(y),{key:0,onClick:e=>I.value=s},{default:l(()=>[...u[4]||=[t(`Изменить пароль`,-1)]]),_:1},8,[`onClick`])):e(``,!0),s.roles?.includes(`developer`)?(r(),o(p(y),{key:2,onClick:e=>W(s.ID,`developer`)},{default:l(()=>[...u[6]||=[t(`Забрать роль разработчика`,-1)]]),_:1},8,[`onClick`])):(r(),o(p(y),{key:1,onClick:e=>U(s.ID,`developer`)},{default:l(()=>[...u[5]||=[t(`Выдать роль разработчика`,-1)]]),_:1},8,[`onClick`])),s.roles?.includes(`author`)?(r(),o(p(y),{key:4,onClick:e=>W(s.ID,`author`)},{default:l(()=>[...u[8]||=[t(`Забрать роль автора`,-1)]]),_:1},8,[`onClick`])):(r(),o(p(y),{key:3,onClick:e=>U(s.ID,`author`)},{default:l(()=>[...u[7]||=[t(`Сделать автором`,-1)]]),_:1},8,[`onClick`])),s.roles?.includes(`organizer`)?(r(),o(p(y),{key:6,onClick:e=>W(s.ID,`organizer`)},{default:l(()=>[...u[10]||=[t(`Забрать роль организатора`,-1)]]),_:1},8,[`onClick`])):(r(),o(p(y),{key:5,onClick:e=>U(s.ID,`organizer`)},{default:l(()=>[...u[9]||=[t(`Сделать организатором`,-1)]]),_:1},8,[`onClick`]))]),_:2},1024)]))),128))])]),a(p(_),{show:I.value!==null,style:{width:`min(94vw, 480px)`},closable:!z.value,"mask-closable":!z.value,"close-on-esc":!z.value,"onUpdate:show":u[2]||=e=>{e||B()}},{default:l(()=>[a(p(m),{title:`Изменить пароль`,bordered:!1,role:`dialog`,"aria-modal":`true`,closable:!z.value,onClose:B},{default:l(()=>[f(`p`,null,i(I.value?.username)+` — `+i(I.value?.email),1),f(`form`,{onSubmit:T(V,[`prevent`])},[a(p(v),{label:`Новый пароль`,"label-for":`new-user-password`},{default:l(()=>[a(p(x),{value:L.value,"onUpdate:value":u[0]||=e=>L.value=e,"input-props":{id:`new-user-password`,autocomplete:`new-password`},type:`password`,"show-password-on":`click`,disabled:z.value,placeholder:`От 8 символов, не более 16 символов`},null,8,[`value`,`disabled`])]),_:1}),a(p(v),{label:`Повторите пароль`,"label-for":`confirm-user-password`},{default:l(()=>[a(p(x),{value:R.value,"onUpdate:value":u[1]||=e=>R.value=e,"input-props":{id:`confirm-user-password`,autocomplete:`new-password`},type:`password`,"show-password-on":`click`,disabled:z.value,placeholder:`Повторите новый пароль`},null,8,[`value`,`disabled`])]),_:1}),a(p(C),{justify:`end`},{default:l(()=>[a(p(y),{disabled:z.value,onClick:B},{default:l(()=>[...u[11]||=[t(`Отмена`,-1)]]),_:1},8,[`disabled`]),a(p(y),{"attr-type":`submit`,type:`primary`,loading:z.value},{default:l(()=>[...u[12]||=[t(`Сохранить`,-1)]]),_:1},8,[`loading`])]),_:1})],32)]),_:1},8,[`closable`])]),_:1},8,[`show`,`closable`,`mask-closable`,`close-on-esc`]),a(D,{active:`users`})],64))}}),[[`__scopeId`,`data-v-da30be55`]]),P=u({__name:`UsersView`,setup(e){return(e,t)=>(r(),o(N))}});export{P as default}; \ No newline at end of file +import{Ct as e,Dt as t,Jt as n,Kt as r,Ln as i,Ot as a,St as o,hn as s,ht as c,in as l,kt as u,wt as d,xt as f,yn as p}from"./client-CREJv8AD.js";import{t as m}from"./Card-CJC2gN5t.js";import{n as h,r as g}from"./es-CevmKZP_.js";import{t as _}from"./Modal-BNDyI0AJ.js";import{t as v}from"./FormItem-DVxlQf-S.js";import{t as y}from"./Button-MvNgQLzL.js";import{t as b}from"./_plugin-vue_export-helper-BkfvhliL.js";import{t as x}from"./Input-B41xxqED.js";import{t as S}from"./Space-ChWks6od.js";import{t as C}from"./Flex-B0ZjnZ3e.js";import{n as w,st as T,t as E}from"./index-DZpFhWFx.js";import{t as D}from"./HeaderMenu-BarRlY0P.js";var O={class:`center-block-custom`},k={class:`width700`},A={class:`user-field`},j={class:`user-field`},M={class:`user-field`},N=b(u({__name:`UsersPage`,setup(u){let b=w(),N=h(),P=s([]),F=E(),I=s(null),L=s(``),R=s(``),z=s(!1);function B(){I.value=null,L.value=``,R.value=``}async function V(){if(!(!I.value||z.value)){if([...L.value].length<8||[...L.value].length>16){N.error(`Пароль должен содержать минимум 8 символов и не более 16 символов`);return}if(L.value!==R.value){N.error(`Пароли не совпадают`);return}z.value=!0;try{await b.ChangeUserPassword({ID:I.value.ID,newPassword:L.value}),B(),N.success(`Пароль изменён`)}catch(e){N.error(e instanceof Error?e.message:`Не удалось изменить пароль`)}finally{z.value=!1}}}async function H(){try{let e=await b.GetUsers({});P.value=e.users}catch(e){N.error(e instanceof Error?e.message:`Не удалось загрузить пользователей`)}}H();async function U(e,t){try{await b.AddUserRole({ID:e,role:t}),await H()}catch(e){N.error(e instanceof Error?e.message:`Не удалось изменить роль`)}}async function W(e,t){try{await b.DeleteUserRole({ID:e,role:t}),await H()}catch(e){N.error(e instanceof Error?e.message:`Не удалось изменить роль`)}}return(s,u)=>(r(),d(c,null,[f(`div`,O,[f(`div`,k,[(r(!0),d(c,null,n(P.value,s=>(r(),d(`div`,{key:s.ID,class:`user-block`},[f(`div`,A,`Позывной: `+i(s.username),1),f(`div`,j,`Почта: `+i(s.email),1),f(`div`,M,[a(p(S),null,{default:l(()=>[u[3]||=t(` Роли: `,-1),(r(!0),d(c,null,n(s.roles,e=>(r(),o(p(g),{bordered:!1,key:e},{default:l(()=>[t(i(e),1)]),_:2},1024))),128))]),_:2},1024)]),a(p(C),{justify:`end`,class:`roles-buttons-block`},{default:l(()=>[p(F).hasRole(`admin`)&&p(F).user&&s.ID!==p(F).user.ID?(r(),o(p(y),{key:0,onClick:e=>I.value=s},{default:l(()=>[...u[4]||=[t(`Изменить пароль`,-1)]]),_:1},8,[`onClick`])):e(``,!0),s.roles?.includes(`developer`)?(r(),o(p(y),{key:2,onClick:e=>W(s.ID,`developer`)},{default:l(()=>[...u[6]||=[t(`Забрать роль разработчика`,-1)]]),_:1},8,[`onClick`])):(r(),o(p(y),{key:1,onClick:e=>U(s.ID,`developer`)},{default:l(()=>[...u[5]||=[t(`Выдать роль разработчика`,-1)]]),_:1},8,[`onClick`])),s.roles?.includes(`author`)?(r(),o(p(y),{key:4,onClick:e=>W(s.ID,`author`)},{default:l(()=>[...u[8]||=[t(`Забрать роль автора`,-1)]]),_:1},8,[`onClick`])):(r(),o(p(y),{key:3,onClick:e=>U(s.ID,`author`)},{default:l(()=>[...u[7]||=[t(`Сделать автором`,-1)]]),_:1},8,[`onClick`])),s.roles?.includes(`organizer`)?(r(),o(p(y),{key:6,onClick:e=>W(s.ID,`organizer`)},{default:l(()=>[...u[10]||=[t(`Забрать роль организатора`,-1)]]),_:1},8,[`onClick`])):(r(),o(p(y),{key:5,onClick:e=>U(s.ID,`organizer`)},{default:l(()=>[...u[9]||=[t(`Сделать организатором`,-1)]]),_:1},8,[`onClick`]))]),_:2},1024)]))),128))])]),a(p(_),{show:I.value!==null,style:{width:`min(94vw, 480px)`},closable:!z.value,"mask-closable":!z.value,"close-on-esc":!z.value,"onUpdate:show":u[2]||=e=>{e||B()}},{default:l(()=>[a(p(m),{title:`Изменить пароль`,bordered:!1,role:`dialog`,"aria-modal":`true`,closable:!z.value,onClose:B},{default:l(()=>[f(`p`,null,i(I.value?.username)+` — `+i(I.value?.email),1),f(`form`,{onSubmit:T(V,[`prevent`])},[a(p(v),{label:`Новый пароль`,"label-for":`new-user-password`},{default:l(()=>[a(p(x),{value:L.value,"onUpdate:value":u[0]||=e=>L.value=e,"input-props":{id:`new-user-password`,autocomplete:`new-password`},type:`password`,"show-password-on":`click`,disabled:z.value,placeholder:`От 8 символов, не более 16 символов`},null,8,[`value`,`disabled`])]),_:1}),a(p(v),{label:`Повторите пароль`,"label-for":`confirm-user-password`},{default:l(()=>[a(p(x),{value:R.value,"onUpdate:value":u[1]||=e=>R.value=e,"input-props":{id:`confirm-user-password`,autocomplete:`new-password`},type:`password`,"show-password-on":`click`,disabled:z.value,placeholder:`Повторите новый пароль`},null,8,[`value`,`disabled`])]),_:1}),a(p(C),{justify:`end`},{default:l(()=>[a(p(y),{disabled:z.value,onClick:B},{default:l(()=>[...u[11]||=[t(`Отмена`,-1)]]),_:1},8,[`disabled`]),a(p(y),{"attr-type":`submit`,type:`primary`,loading:z.value},{default:l(()=>[...u[12]||=[t(`Сохранить`,-1)]]),_:1},8,[`loading`])]),_:1})],32)]),_:1},8,[`closable`])]),_:1},8,[`show`,`closable`,`mask-closable`,`close-on-esc`]),a(D,{active:`users`})],64))}}),[[`__scopeId`,`data-v-da30be55`]]),P=u({__name:`UsersView`,setup(e){return(e,t)=>(r(),o(N))}});export{P as default}; \ No newline at end of file diff --git a/frontend/dist/assets/_plugin-vue_export-helper-FodinAjS.js b/frontend/dist/assets/_plugin-vue_export-helper-BkfvhliL.js similarity index 88% rename from frontend/dist/assets/_plugin-vue_export-helper-FodinAjS.js rename to frontend/dist/assets/_plugin-vue_export-helper-BkfvhliL.js index 6e4fe62..b0ce3f9 100644 --- a/frontend/dist/assets/_plugin-vue_export-helper-FodinAjS.js +++ b/frontend/dist/assets/_plugin-vue_export-helper-BkfvhliL.js @@ -1 +1 @@ -import{Ft as e,ht as t,mt as n}from"./client-vZFx54yb.js";function r(e){return e.replace(/#|\(|\)|,|\s|\./g,`_`)}function i(e,...t){if(Array.isArray(e))e.forEach(e=>i(e,...t));else return e(...t)}function a(r){return r.some(r=>e(r)?!(r.type===n||r.type===t&&!a(r.children)):!0)?r:null}function o(e,t){return e&&a(e())||t()}function s(e,t,n){return e&&a(e(t))||n(t)}function c(e,t){return t(e&&a(e())||null)}function l(e){return!(e&&a(e()))}var u=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n};export{s as a,r as c,o as i,a as n,c as o,l as r,i as s,u as t}; \ No newline at end of file +import{Ft as e,ht as t,mt as n}from"./client-CREJv8AD.js";function r(e){return e.replace(/#|\(|\)|,|\s|\./g,`_`)}function i(e,...t){if(Array.isArray(e))e.forEach(e=>i(e,...t));else return e(...t)}function a(r){return r.some(r=>e(r)?!(r.type===n||r.type===t&&!a(r.children)):!0)?r:null}function o(e,t){return e&&a(e())||t()}function s(e,t,n){return e&&a(e(t))||n(t)}function c(e,t){return t(e&&a(e())||null)}function l(e){return!(e&&a(e()))}var u=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n};export{s as a,r as c,o as i,a as n,c as o,l as r,i as s,u as t}; \ No newline at end of file diff --git a/frontend/dist/assets/application-BR-GaUH8.js b/frontend/dist/assets/application-6wLYVOst.js similarity index 88% rename from frontend/dist/assets/application-BR-GaUH8.js rename to frontend/dist/assets/application-6wLYVOst.js index 93c8f4d..c9f1f41 100644 --- a/frontend/dist/assets/application-BR-GaUH8.js +++ b/frontend/dist/assets/application-6wLYVOst.js @@ -1 +1 @@ -import{r as e}from"./client-vZFx54yb.js";function t(e){let t=e?.file_type;if(t===`pdf`||t===`image`||t===`audio`)return t;let n=(e?.image||``).toLowerCase();return/\.pdf($|\?)/.test(n)?`pdf`:/\.(mp3|wav|ogg|m4a|aac|flac|opus)($|\?)/.test(n)?`audio`:/\.(png|jpe?g|gif|webp|bmp|svg)($|\?)/.test(n)?`image`:``}function n(t){if(!t)return``;let n=t.toLowerCase();return n.startsWith(`http://`)||n.startsWith(`https://`)?t:t.startsWith(`/`)?e()+t:`${e()}/api/files/${t}`}function r(e){return e?e.split(`/`).pop()||e:``}export{t as n,n as r,r as t}; \ No newline at end of file +import{r as e}from"./client-CREJv8AD.js";function t(e){let t=e?.file_type;if(t===`pdf`||t===`image`||t===`audio`)return t;let n=(e?.image||``).toLowerCase();return/\.pdf($|\?)/.test(n)?`pdf`:/\.(mp3|wav|ogg|m4a|aac|flac|opus)($|\?)/.test(n)?`audio`:/\.(png|jpe?g|gif|webp|bmp|svg)($|\?)/.test(n)?`image`:``}function n(t){if(!t)return``;let n=t.toLowerCase();return n.startsWith(`http://`)||n.startsWith(`https://`)?t:t.startsWith(`/`)?e()+t:`${e()}/api/files/${t}`}function r(e){return e?e.split(`/`).pop()||e:``}export{t as n,n as r,r as t}; \ No newline at end of file diff --git a/frontend/dist/assets/binary_client-B2m6lbs2.js b/frontend/dist/assets/binary_client-C9h3ErPB.js similarity index 91% rename from frontend/dist/assets/binary_client-B2m6lbs2.js rename to frontend/dist/assets/binary_client-C9h3ErPB.js index 26eeb88..27215ac 100644 --- a/frontend/dist/assets/binary_client-B2m6lbs2.js +++ b/frontend/dist/assets/binary_client-C9h3ErPB.js @@ -1 +1 @@ -import{r as e}from"./client-vZFx54yb.js";import{r as t,t as n}from"./index-Ci0r-yTA.js";function r(){let e=n();return i(e.refreshTokenAction,e.getToken)}function i(n,r){async function i(i,a){return t(async()=>{let t=new Headers(a.headers),n=r();n&&t.set(`Authorization`,`Bearer ${n}`);let o=await fetch(`${e()}/${i}`,{...a,headers:t});if(o.status===401)throw Error(`unauthorized`);return o},n,r)}async function s(e,t){let n=await i(e,{method:`GET`});if(!n.ok)throw Error(await o(n));return{blob:await n.blob(),filename:a(n.headers.get(`Content-Disposition`))||t}}function c(e){return s(`api/scenarios/${e}/archive`,`scenario-${e}.zip`)}function l(e){return s(`api/games/${e}/teams/qr.pdf`,`game-${e}.pdf`)}async function u(e){let t=await i(`api/scenarios/archive`,{method:`POST`,headers:{"Content-Type":e.type||`application/zip`},body:e}),n=await t.json().catch(()=>null);if(!t.ok)throw Error(n?.message||`Ошибка сервера (${t.status})`);return{ID:typeof n?.ID==`number`?n.ID:null}}return{downloadScenarioArchive:c,downloadTeamQR:l,uploadScenarioArchive:u}}function a(e){if(!e)return``;let t=e.match(/filename\*=UTF-8''([^;]+)/i);if(t)try{return decodeURIComponent(t[1].trim()).replace(/[\\/:*?"<>|]/g,`_`)}catch{}let n=e.match(/filename="?([^";]+)"?/i);return(n?n[1]:``).replace(/[\\/:*?"<>|]/g,`_`)}async function o(e){let t=await e.json().catch(()=>null);return t&&typeof t.message==`string`&&t.message!==``?t.message:`Ошибка сервера (${e.status})`}export{r as t}; \ No newline at end of file +import{r as e}from"./client-CREJv8AD.js";import{r as t,t as n}from"./index-DZpFhWFx.js";function r(){let e=n();return i(e.refreshTokenAction,e.getToken)}function i(n,r){async function i(i,a){return t(async()=>{let t=new Headers(a.headers),n=r();n&&t.set(`Authorization`,`Bearer ${n}`);let o=await fetch(`${e()}/${i}`,{...a,headers:t});if(o.status===401)throw Error(`unauthorized`);return o},n,r)}async function s(e,t){let n=await i(e,{method:`GET`});if(!n.ok)throw Error(await o(n));return{blob:await n.blob(),filename:a(n.headers.get(`Content-Disposition`))||t}}function c(e){return s(`api/scenarios/${e}/archive`,`scenario-${e}.zip`)}function l(e){return s(`api/games/${e}/teams/qr.pdf`,`game-${e}.pdf`)}async function u(e){let t=await i(`api/scenarios/archive`,{method:`POST`,headers:{"Content-Type":e.type||`application/zip`},body:e}),n=await t.json().catch(()=>null);if(!t.ok)throw Error(n?.message||`Ошибка сервера (${t.status})`);return{ID:typeof n?.ID==`number`?n.ID:null}}return{downloadScenarioArchive:c,downloadTeamQR:l,uploadScenarioArchive:u}}function a(e){if(!e)return``;let t=e.match(/filename\*=UTF-8''([^;]+)/i);if(t)try{return decodeURIComponent(t[1].trim()).replace(/[\\/:*?"<>|]/g,`_`)}catch{}let n=e.match(/filename="?([^";]+)"?/i);return(n?n[1]:``).replace(/[\\/:*?"<>|]/g,`_`)}async function o(e){let t=await e.json().catch(()=>null);return t&&typeof t.message==`string`&&t.message!==``?t.message:`Ошибка сервера (${e.status})`}export{r as t}; \ No newline at end of file diff --git a/frontend/dist/assets/client-vZFx54yb.js b/frontend/dist/assets/client-CREJv8AD.js similarity index 90% rename from frontend/dist/assets/client-vZFx54yb.js rename to frontend/dist/assets/client-CREJv8AD.js index 01046f7..14e6df7 100644 --- a/frontend/dist/assets/client-vZFx54yb.js +++ b/frontend/dist/assets/client-CREJv8AD.js @@ -17,4 +17,4 @@ function e(e){let t=Object.create(null);for(let n of e.split(`,`))t[n]=1;return `,[Jo(`input`,` font-family: inherit; font-size: inherit; - `)]);function yd(e,t,n){if(!t)return;let r=Vs(),i=R(Gs,null),a=()=>{let a=n.value;t.mount({id:a===void 0?e:a+e,head:!0,anchorMetaName:fd,props:{bPrefix:a?`.${a}-`:void 0},ssr:r,parent:i?.styleMountTarget}),i?.preflightStyleDisabled||vd.mount({id:`n-global`,head:!0,anchorMetaName:fd,ssr:r,parent:i?.styleMountTarget})};r?a():zr(a)}function bd(e){return e}function xd(e,t,n,r,i,a){let o=Vs(),s=R(Gs,null);if(n){let e=()=>{let e=a?.value;n.mount({id:e===void 0?t:e+t,head:!0,props:{bPrefix:e?`.${e}-`:void 0},anchorMetaName:fd,ssr:o,parent:s?.styleMountTarget}),s?.preflightStyleDisabled||vd.mount({id:`n-global`,head:!0,anchorMetaName:fd,ssr:o,parent:s?.styleMountTarget})};o?e():zr(e)}return K(()=>{let{theme:{common:t,self:n,peers:a={}}={},themeOverrides:o={},builtinThemeOverrides:c={}}=i,{common:l,peers:u}=o,{common:d=void 0,[e]:{common:f=void 0,self:p=void 0,peers:m={}}={}}=s?.mergedThemeRef.value||{},{common:h=void 0,[e]:g={}}=s?.mergedThemeOverridesRef.value||{},{common:_,peers:v={}}=g,y=dd({},t||f||d||r.common,h,_,l);return{common:y,self:dd((n||p||r.self)?.(y),c,g,o),peers:dd({},r.peers,m,a),peerOverrides:dd({},c.peers,v,u)}})}xd.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};var Z={neutralBase:`#FFF`,neutralInvertBase:`#000`,neutralTextBase:`#000`,neutralPopover:`#fff`,neutralCard:`#fff`,neutralModal:`#fff`,neutralBody:`#fff`,alpha1:`0.82`,alpha2:`0.72`,alpha3:`0.38`,alpha4:`0.24`,alpha5:`0.18`,alphaClose:`0.6`,alphaDisabled:`0.5`,alphaDisabledInput:`0.02`,alphaPending:`0.05`,alphaTablePending:`0.02`,alphaPressed:`0.07`,alphaAvatar:`0.2`,alphaRail:`0.14`,alphaProgressRail:`.08`,alphaBorder:`0.12`,alphaDivider:`0.06`,alphaInput:`0`,alphaAction:`0.02`,alphaTab:`0.04`,alphaScrollbar:`0.25`,alphaScrollbarHover:`0.4`,alphaCode:`0.05`,alphaTag:`0.02`,primaryHover:`#36ad6a`,primaryDefault:`#18a058`,primaryActive:`#0c7a43`,primarySuppl:`#36ad6a`,infoHover:`#4098fc`,infoDefault:`#2080f0`,infoActive:`#1060c9`,infoSuppl:`#4098fc`,errorHover:`#de576d`,errorDefault:`#d03050`,errorActive:`#ab1f3f`,errorSuppl:`#de576d`,warningHover:`#fcb040`,warningDefault:`#f0a020`,warningActive:`#c97c10`,warningSuppl:`#fcb040`,successHover:`#36ad6a`,successDefault:`#18a058`,successActive:`#0c7a43`,successSuppl:`#36ad6a`},Sd=Ts(Z.neutralBase),Cd=Ts(Z.neutralInvertBase),wd=`rgba(${Cd.slice(0,3).join(`, `)}, `;function Td(e){return`${wd+String(e)})`}function Q(e){let t=Array.from(Cd);return t[3]=Number(e),ks(Sd,t)}var Ed=Object.assign(Object.assign({name:`common`},md),{baseColor:Z.neutralBase,primaryColor:Z.primaryDefault,primaryColorHover:Z.primaryHover,primaryColorPressed:Z.primaryActive,primaryColorSuppl:Z.primarySuppl,infoColor:Z.infoDefault,infoColorHover:Z.infoHover,infoColorPressed:Z.infoActive,infoColorSuppl:Z.infoSuppl,successColor:Z.successDefault,successColorHover:Z.successHover,successColorPressed:Z.successActive,successColorSuppl:Z.successSuppl,warningColor:Z.warningDefault,warningColorHover:Z.warningHover,warningColorPressed:Z.warningActive,warningColorSuppl:Z.warningSuppl,errorColor:Z.errorDefault,errorColorHover:Z.errorHover,errorColorPressed:Z.errorActive,errorColorSuppl:Z.errorSuppl,textColorBase:Z.neutralTextBase,textColor1:`rgb(31, 34, 37)`,textColor2:`rgb(51, 54, 57)`,textColor3:`rgb(118, 124, 130)`,textColorDisabled:Q(Z.alpha4),placeholderColor:Q(Z.alpha4),placeholderColorDisabled:Q(Z.alpha5),iconColor:Q(Z.alpha4),iconColorHover:js(Q(Z.alpha4),{lightness:.75}),iconColorPressed:js(Q(Z.alpha4),{lightness:.9}),iconColorDisabled:Q(Z.alpha5),opacity1:Z.alpha1,opacity2:Z.alpha2,opacity3:Z.alpha3,opacity4:Z.alpha4,opacity5:Z.alpha5,dividerColor:`rgb(239, 239, 245)`,borderColor:`rgb(224, 224, 230)`,closeIconColor:Q(Number(Z.alphaClose)),closeIconColorHover:Q(Number(Z.alphaClose)),closeIconColorPressed:Q(Number(Z.alphaClose)),closeColorHover:`rgba(0, 0, 0, .09)`,closeColorPressed:`rgba(0, 0, 0, .13)`,clearColor:Q(Z.alpha4),clearColorHover:js(Q(Z.alpha4),{lightness:.75}),clearColorPressed:js(Q(Z.alpha4),{lightness:.9}),scrollbarColor:Td(Z.alphaScrollbar),scrollbarColorHover:Td(Z.alphaScrollbarHover),scrollbarWidth:`5px`,scrollbarHeight:`5px`,scrollbarBorderRadius:`5px`,progressRailColor:Q(Z.alphaProgressRail),railColor:`rgb(219, 219, 223)`,popoverColor:Z.neutralPopover,tableColor:Z.neutralCard,cardColor:Z.neutralCard,modalColor:Z.neutralModal,bodyColor:Z.neutralBody,tagColor:`#eee`,avatarColor:Q(Z.alphaAvatar),invertedColor:`rgb(0, 20, 40)`,inputColor:Q(Z.alphaInput),codeColor:`rgb(244, 244, 248)`,tabColor:`rgb(247, 247, 250)`,actionColor:`rgb(250, 250, 252)`,tableHeaderColor:`rgb(250, 250, 252)`,hoverColor:`rgb(243, 243, 245)`,tableColorHover:`rgba(0, 0, 100, 0.03)`,tableColorStriped:`rgba(0, 0, 100, 0.02)`,pressedColor:`rgb(237, 237, 239)`,opacityDisabled:Z.alphaDisabled,inputColorDisabled:`rgb(250, 250, 252)`,buttonColor2:`rgba(46, 51, 56, .05)`,buttonColor2Hover:`rgba(46, 51, 56, .09)`,buttonColor2Pressed:`rgba(46, 51, 56, .13)`,boxShadow1:`0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)`,boxShadow2:`0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)`,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)`}),Dd=typeof document<`u`;function Od(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function kd(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&Od(e.default)}var $=Object.assign;function Ad(e,t){let n={};for(let r in t){let i=t[r];n[r]=Md(i)?i.map(e):e(i)}return n}var jd=()=>{},Md=Array.isArray;function Nd(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var Pd=Symbol(``);function Fd(e,t){return $(Error(),{type:e,[Pd]:!0},t)}function Id(e,t){return e instanceof Error&&Pd in e&&(t==null||!!(e.type&t))}var Ld=Symbol(``),Rd=Symbol(``),zd=Symbol(``),Bd=Symbol(``),Vd=Symbol(``);function Hd(){return R(zd)}function Ud(e){return R(Bd)}var Wd=/#/g,Gd=/&/g,Kd=/\//g,qd=/=/g,Jd=/\?/g,Yd=/\+/g,Xd=/%5B/g,Zd=/%5D/g,Qd=/%5E/g,$d=/%60/g,ef=/%7B/g,tf=/%7C/g,nf=/%7D/g,rf=/%20/g;function af(e){return e==null?``:encodeURI(``+e).replace(tf,`|`).replace(Xd,`[`).replace(Zd,`]`)}function of(e){return af(e).replace(ef,`{`).replace(nf,`}`).replace(Qd,`^`)}function sf(e){return af(e).replace(Yd,`%2B`).replace(rf,`+`).replace(Wd,`%23`).replace(Gd,`%26`).replace($d,"`").replace(ef,`{`).replace(nf,`}`).replace(Qd,`^`)}function cf(e){return sf(e).replace(qd,`%3D`)}function lf(e){return af(e).replace(Wd,`%23`).replace(Jd,`%3F`)}function uf(e){return lf(e).replace(Kd,`%2F`)}function df(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var ff=/\/$/,pf=e=>e.replace(ff,``);function mf(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=Sf(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:df(o)}}function hf(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function gf(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function _f(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&vf(t.matched[r],n.matched[i])&&yf(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function vf(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function yf(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!bf(e[n],t[n]))return!1;return!0}function bf(e,t){return Md(e)?xf(e,t):Md(t)?xf(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function xf(e,t){return Md(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function Sf(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o1&&a--;else break;return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var Cf={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0};function wf(e){if(!e)if(Dd){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),pf(e)}var Tf=/^[^#]+#/;function Ef(e,t){return e.replace(Tf,`#`)+t}function Df(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var Of=()=>({left:window.scrollX,top:window.scrollY});function kf(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=Df(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function Af(e,t){return(history.state?history.state.position-t:-1)+e}var jf=new Map;function Mf(e,t){jf.set(e,t)}function Nf(e){let t=jf.get(e);return jf.delete(e),t}function Pf(e){return typeof e==`string`||e&&typeof e==`object`}function Ff(e){return typeof e==`string`||typeof e==`symbol`}function If(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;ee&&sf(e)):[r&&sf(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function Rf(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=Md(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function zf(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Bf(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(Fd(4,{from:n,to:t})):e instanceof Error?c(e):Pf(e)?c(Fd(2,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function Vf(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e]))if(Od(s)){let c=(s.__vccOpts||s)[t];c&&a.push(Bf(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=kd(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&Bf(c,n,r,o,e,i)()}))}}return a}function Hf(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;ovf(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>vf(e,s))||i.push(s))}return[n,r,i]}var Uf=()=>location.protocol+`//`+location.host;function Wf(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),gf(n,``)}return gf(n,e)+r+i}function Gf(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=Wf(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:`pop`,direction:u?u>0?`forward`:`back`:``})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState($({},e.state,{scroll:Of()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function Kf(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?Of():null}}function qf(e){let{history:t,location:n}=window,r={value:Wf(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:Uf()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,$({},t.state,Kf(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=$({},i.value,t.state,{forward:e,scroll:Of()});a(o.current,o,!0),a(e,$({},Kf(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function Jf(e){e=wf(e);let t=qf(e),n=Gf(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=$({location:``,base:e,go:r,createHref:Ef.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}var Yf={type:0,value:``},Xf=/[a-zA-Z0-9_]/;function Zf(e){if(!e)return[[]];if(e===`/`)return[[Yf]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=0,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===0?a.push({type:0,value:l}):n===1||n===2||n===3?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;st.length?t.length===1&&t[0]===80?1:-1:0}function rp(e,t){let n=0,r=e.score,i=t.score;for(;n0&&t[t.length-1]<0}var ap={strict:!1,end:!0,sensitive:!1};function op(e,t,n){let r=$(tp(Zf(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function sp(e,t){let n=[],r=new Map;t=Nd(ap,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=lp(e);s.aliasOf=r&&r.record;let l=Nd(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(lp($({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=op(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!dp(d)&&o(e.name)),hp(d)&&c(d),s.children){let e=s.children;for(let t=0;t{o(f)}:jd}function o(e){if(Ff(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=pp(e,n);n.splice(t,0,e),e.record.name&&!dp(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw Fd(1,{location:e});s=i.record.name,a=$(cp(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&cp(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name,i.keys.forEach(e=>{e.optional&&!a[e.name]&&delete a[e.name]}));else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw Fd(1,{location:e,currentLocation:t});s=i.record.name,a=$({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:fp(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function cp(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function lp(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:up(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function up(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function dp(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function fp(e){return e.reduce((e,t)=>$(e,t.meta),{})}function pp(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;rp(e,t[i])<0?r=i:n=i+1}let i=mp(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function mp(e){let t=e;for(;t=t.parent;)if(hp(t)&&rp(e,t)===0)return t}function hp({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function gp(e){let t=R(zd),n=R(Bd),r=K(()=>{let n=Zt(e.to);return t.resolve(n)}),i=K(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(vf.bind(null,i));if(o>-1)return o;let s=xp(e[t-2]);return t>1&&xp(i)===s&&a[a.length-1].path!==s?a.findIndex(vf.bind(null,e[t-2])):o}),a=K(()=>i.value>-1&&bp(n.params,r.value.params)),o=K(()=>i.value>-1&&i.value===n.matched.length-1&&yf(n.params,r.value.params));function s(n={}){if(yp(n)){let n=t[Zt(e.replace)?`replace`:`push`](Zt(e.to)).catch(jd);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:K(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function _p(e){return e.length===1?e[0]:e}var vp=Tr({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:gp,setup(e,{slots:t}){let n=Lt(gp(e)),{options:r}=R(zd),i=K(()=>({[Sp(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[Sp(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&_p(t.default(n));return e.custom?r:uo(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function yp(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function bp(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!Md(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function xp(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var Sp=(e,t,n)=>e??t??n,Cp=Tr({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=R(Vd),i=K(()=>e.route||r.value),a=R(Rd,0),o=K(()=>{let e=Zt(a),{matched:t}=i.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),s=K(()=>i.value.matched[o.value]);Bn(Rd,K(()=>o.value+1)),Bn(Ld,s),Bn(Vd,i);let c=qt();return Kn(()=>[c.value,s.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!vf(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=i.value,a=e.name,o=s.value,l=o&&o.components[a];if(!l)return wp(n.default,{Component:l,route:r});let u=o.props[a],d=uo(l,$({},u?u===!0?r.params:typeof u==`function`?u(r):u:null,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[a]=null)},ref:c}));return wp(n.default,{Component:d,route:r})||d}}});function wp(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var Tp=Cp;function Ep(e){let t=sp(e.routes,e),n=e.parseQuery||If,r=e.stringifyQuery||Lf,i=e.history,a=zf(),o=zf(),s=zf(),c=Jt(Cf),l=Cf;Dd&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let u=Ad.bind(null,e=>``+e),d=Ad.bind(null,uf),f=Ad.bind(null,df);function p(e,n){let r,i;return Ff(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function m(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function h(){return t.getRoutes().map(e=>e.record)}function g(e){return!!t.getRecordMatcher(e)}function _(e,a){if(a=$({},a||c.value),typeof e==`string`){let r=mf(n,e,a.path),o=t.resolve({path:r.path},a),s=i.createHref(r.fullPath);return $(r,o,{params:f(o.params),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=$({},e,{path:mf(n,e.path,a.path).path});else{let t=$({},e.params);for(let e in t)t[e]??delete t[e];o=$({},e,{params:d(t)}),a.params=d(a.params)}let s=t.resolve(o,a),l=e.hash||``;s.params=u(f(s.params));let p=hf(r,$({},e,{hash:of(l),path:s.path})),m=i.createHref(p);return $({fullPath:p,hash:l,query:r===Lf?Rf(e.query):e.query||{}},s,{redirectedFrom:void 0,href:m})}function v(e){return typeof e==`string`?mf(n,e,c.value.path):$({},e)}function y(e,t){if(l!==e)return Fd(8,{from:t,to:e})}function b(e){return C(e)}function x(e){return b($(v(e),{replace:!0}))}function S(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=v(i):{path:i},i.params={}),$({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function C(e,t){let n=l=_(e),i=c.value,a=e.state,o=e.force,s=e.replace===!0,u=S(n,i);if(u)return C($(v(u),{state:typeof u==`object`?$({},a,u.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&_f(r,i,n)&&(f=Fd(16,{to:d,from:i}),se(i,i,!0,!1)),(f?Promise.resolve(f):ee(d,i)).catch(e=>Id(e)?Id(e,2)?e:oe(e):ae(e,d,i)).then(e=>{if(e){if(Id(e,2))return C($({replace:s},v(e.to),{state:typeof e.to==`object`?$({},a,e.to.state):a,force:o}),t||d)}else e=E(d,i,!0,s,a);return te(d,i,e),e})}function w(e,t){let n=y(e,t);return n?Promise.reject(n):Promise.resolve()}function T(e){let t=ue.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function ee(e,t){let n,[r,i,s]=Hf(e,t);n=Vf(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(Bf(r,e,t))});let c=w.bind(null,e,t);return n.push(c),fe(n).then(()=>{n=[];for(let r of a.list())n.push(Bf(r,e,t));return n.push(c),fe(n)}).then(()=>{n=Vf(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(Bf(r,e,t))});return n.push(c),fe(n)}).then(()=>{n=[];for(let r of s)if(r.beforeEnter)if(Md(r.beforeEnter))for(let i of r.beforeEnter)n.push(Bf(i,e,t));else n.push(Bf(r.beforeEnter,e,t));return n.push(c),fe(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=Vf(s,`beforeRouteEnter`,e,t,T),n.push(c),fe(n))).then(()=>{n=[];for(let r of o.list())n.push(Bf(r,e,t));return n.push(c),fe(n)}).catch(e=>Id(e,8)?e:Promise.reject(e))}function te(e,t,n){s.list().forEach(r=>T(()=>r(e,t,n)))}function E(e,t,n,r,a){let o=y(e,t);if(o)return o;let s=t===Cf,l=Dd?history.state:{};n&&(r||s?i.replace(e.fullPath,$({scroll:s&&l&&l.scroll},a)):i.push(e.fullPath,a)),c.value=e,se(e,t,n,s),oe()}let ne;function D(){ne||=i.listen((e,t,n)=>{if(!de.listening)return;let r=_(e),a=S(r,de.currentRoute.value);if(a){C($(a,{replace:!0,force:!0}),r).catch(jd);return}l=r;let o=c.value;Dd&&Mf(Af(o.fullPath,n.delta),Of()),ee(r,o).catch(e=>Id(e,12)?e:Id(e,2)?(C($(v(e.to),{force:!0}),r).then(e=>{Id(e,20)&&!n.delta&&n.type===`pop`&&i.go(-1,!1)}).catch(jd),Promise.reject()):(n.delta&&i.go(-n.delta,!1),ae(e,r,o))).then(e=>{e||=E(r,o,!1),e&&(n.delta&&!Id(e,8)?i.go(-n.delta,!1):n.type===`pop`&&Id(e,20)&&i.go(-1,!1)),te(r,o,e)}).catch(jd)})}let re=zf(),ie=zf(),O;function ae(e,t,n){oe(e);let r=ie.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function k(){return O&&c.value!==Cf?Promise.resolve():new Promise((e,t)=>{re.add([e,t])})}function oe(e){return O||(O=!e,D(),re.list().forEach(([t,n])=>e?n(e):t()),re.reset()),e}function se(t,n,r,i){let{scrollBehavior:a}=e;if(!Dd||!a)return Promise.resolve();let o=!r&&Nf(Af(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return En().then(()=>a(t,n,o)).then(e=>e&&kf(e)).catch(e=>ae(e,t,n))}let ce=e=>i.go(e),le,ue=new Set,de={currentRoute:c,listening:!0,addRoute:p,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:h,resolve:_,options:e,push:b,replace:x,go:ce,back:()=>ce(-1),forward:()=>ce(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:ie.add,isReady:k,install(e){e.component(`RouterLink`,vp),e.component(`RouterView`,Tp),e.config.globalProperties.$router=de,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>Zt(c)}),Dd&&!le&&c.value===Cf&&(le=!0,b(i.location).catch(e=>{}));let t={};for(let e in Cf)Object.defineProperty(t,e,{get:()=>c.value[e],enumerable:!0});e.provide(zd,de),e.provide(Bd,Rt(t)),e.provide(Vd,c);let n=e.unmount;ue.add(e),e.unmount=function(){ue.delete(e),ue.size<1&&(l=Cf,ne&&ne(),ne=null,c.value=Cf,le=!1,O=!1),n()}}};function fe(e){return e.reduce((e,t)=>e.then(()=>T(t)),Promise.resolve())}return de}function Dp(e){return{GetTasks(t){let n=[],r=`api/tasks`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetTasks`})},GetTaskAssignees(t){let n=[],r=`api/tasks/assignees`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetTaskAssignees`})},CreateTask(t){let n=JSON.stringify(t),r=[],i=`api/tasks`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`CreateTask`})},UpdateTask(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/tasks/${t.ID}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateTask`})},SetTaskStatus(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/tasks/${t.ID}/status`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`SetTaskStatus`})},DeleteTask(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/tasks/${t.ID}/delete`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`DeleteTask`})},GetParticipation(t){let n=JSON.stringify(t),r=[],i=`api/participation/get`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`GetParticipation`})},AnswerParticipation(t){let n=JSON.stringify(t),r=[],i=`api/participation/answer`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`AnswerParticipation`})},Ping(t){let n=[],r=`api/test/ping`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`Ping`})},Echo(t){let n=[];t.text&&n.push(`text=${encodeURIComponent(t.text.toString())}`);let r=`api/test/echo`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`POST`,body:null},{service:`EveningDetectiveServer`,method:`Echo`})},Signup(t){let n=JSON.stringify(t),r=[],i=`api/auth/signup`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`Signup`})},RefreshPassword(t){let n=JSON.stringify(t),r=[],i=`api/auth/refresh-password`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`RefreshPassword`})},Login(t){let n=JSON.stringify(t),r=[],i=`api/auth/login`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`Login`})},Refresh(t){let n=JSON.stringify(t),r=[],i=`api/auth/refresh`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`Refresh`})},DeleteAccount(t){let n=[],r=`api/auth/delete-account`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeleteAccount`})},GetTerms(t){let n=[],r=`api/terms`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetTerms`})},GetPrivacy(t){let n=[],r=`api/privacy`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetPrivacy`})},GetConsent(t){let n=[],r=`api/consent`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetConsent`})},GetUsers(t){let n=[],r=`api/users`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetUsers`})},GetUserByID(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/users/${t.ID}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetUserByID`})},GetMe(t){let n=[],r=`api/users/me`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetMe`})},ChangeUserPassword(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/users/${t.ID}/password`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`ChangeUserPassword`})},AddUserRole(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/users/${t.ID}/role/add`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`AddUserRole`})},DeleteUserRole(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/users/${t.ID}/role/delete`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`DeleteUserRole`})},GetPermissions(t){let n=[],r=`api/ui/permissions`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetPermissions`})},UploadFile(t){let n=JSON.stringify(t),r=[],i=`api/files/upload`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`UploadFile`})},DownloadFile(t){if(!t.filename)throw Error(`missing required field request.filename`);let n=`api/files/${t.filename}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`DownloadFile`})},GetPlaylists(t){let n=[],r=`api/playlists`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetPlaylists`})},CreatePlaylist(t){let n=JSON.stringify(t),r=[],i=`api/playlists`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`CreatePlaylist`})},UpdatePlaylist(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/playlists/${t.ID}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdatePlaylist`})},DeletePlaylist(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/playlists/${t.ID}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeletePlaylist`})},UploadPlaylistTrack(t){if(!t.playlistID)throw Error(`missing required field request.playlistID`);let n=`api/playlists/${t.playlistID}/tracks`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`UploadPlaylistTrack`})},DeletePlaylistTrack(t){if(!t.playlistID)throw Error(`missing required field request.playlistID`);if(!t.trackID)throw Error(`missing required field request.trackID`);let n=`api/playlists/${t.playlistID}/tracks/${t.trackID}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeletePlaylistTrack`})},SetScenarioPlaylist(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/scenarios/${t.ID}/playlist`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`SetScenarioPlaylist`})},AddScenario(t){let n=JSON.stringify(t),r=[],i=`api/scenario`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`AddScenario`})},GetMyScenarios(t){let n=[],r=`api/my-scenarios`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetMyScenarios`})},GetScenariosCatalog(t){let n=[],r=`api/catalog`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetScenariosCatalog`})},GetFullScenario(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/scenarios/${t.ID}/full`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetFullScenario`})},GetScenario(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/scenarios/${t.ID}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetScenario`})},UpdateScenario(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/scenarios/${t.ID}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateScenario`})},PublicScenario(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/scenarios/${t.ID}/public`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`PublicScenario`})},DraftScenario(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/scenarios/${t.ID}/draft`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`DraftScenario`})},DeleteScenario(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/scenarios/${t.ID}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeleteScenario`})},AddScenarioPlace(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/scenarios/${t.ID}/places`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`AddScenarioPlace`})},UpdateScenarioPlace(t){if(!t.ID)throw Error(`missing required field request.ID`);if(!t.code)throw Error(`missing required field request.code`);let n=`api/scenarios/${t.ID}/places/${t.code}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateScenarioPlace`})},DeleteScenarioPlace(t){if(!t.ID)throw Error(`missing required field request.ID`);if(!t.code)throw Error(`missing required field request.code`);let n=`api/scenarios/${t.ID}/places/${t.code}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeleteScenarioPlace`})},AddScenarioQuestion(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/scenarios/${t.ID}/questions`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`AddScenarioQuestion`})},UpdateScenarioQuestion(t){if(!t.ID)throw Error(`missing required field request.ID`);if(!t.code)throw Error(`missing required field request.code`);let n=`api/scenarios/${t.ID}/questions/${t.code}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateScenarioQuestion`})},DeleteScenarioQuestion(t){if(!t.ID)throw Error(`missing required field request.ID`);if(!t.code)throw Error(`missing required field request.code`);let n=`api/scenarios/${t.ID}/questions/${t.code}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeleteScenarioQuestion`})},UpdateScenarioBackground(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/scenarios/${t.ID}/background`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateScenarioBackground`})},UpdateScenarioIntro(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/scenarios/${t.ID}/introduction`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateScenarioIntro`})},UpdateScenarioConclusion(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/scenarios/${t.ID}/conclusion`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateScenarioConclusion`})},DownloadScenarioArchive(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/scenarios/${t.ID}/archive`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`DownloadScenarioArchive`})},UploadScenarioArchive(t){let n=JSON.stringify(t),r=[],i=`api/scenarios/archive`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`UploadScenarioArchive`})},AddGame(t){let n=JSON.stringify(t),r=[],i=`api/games`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`AddGame`})},GetGames(t){let n=[],r=`api/games`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGames`})},GetGame(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/games/${t.ID}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGame`})},IssueGameTickets(t){if(!t.gameID)throw Error(`missing required field request.gameID`);let n=`api/games/${t.gameID}/tickets`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`IssueGameTickets`})},GetTicket(t){if(!t.token)throw Error(`missing required field request.token`);let n=`api/tickets/${t.token}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetTicket`})},AcceptTicket(t){if(!t.token)throw Error(`missing required field request.token`);let n=`api/tickets/${t.token}/accept`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`AcceptTicket`})},CreateScreenSession(t){let n=JSON.stringify(t),r=[],i=`api/screens`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`CreateScreenSession`})},GetScreenState(t){let n=JSON.stringify(t),r=[],i=`api/screens/state`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`GetScreenState`})},GetGameScreens(t){if(!t.gameID)throw Error(`missing required field request.gameID`);let n=`api/games/${t.gameID}/screens`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGameScreens`})},GetGameMusic(t){if(!t.gameID)throw Error(`missing required field request.gameID`);let n=`api/games/${t.gameID}/music`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGameMusic`})},SetGameMusic(t){if(!t.gameID)throw Error(`missing required field request.gameID`);let n=`api/games/${t.gameID}/music`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`SetGameMusic`})},AdvanceScreenMusic(t){let n=JSON.stringify(t),r=[],i=`api/screens/music/advance`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`AdvanceScreenMusic`})},BindScreen(t){if(!t.screenID)throw Error(`missing required field request.screenID`);let n=`api/screens/${t.screenID}/bind`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`BindScreen`})},UnbindScreen(t){if(!t.screenID)throw Error(`missing required field request.screenID`);let n=`api/screens/${t.screenID}/unbind`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`UnbindScreen`})},SetScreenSound(t){if(!t.screenID)throw Error(`missing required field request.screenID`);let n=`api/screens/${t.screenID}/sound`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`SetScreenSound`})},GetGameMap(t){if(!t.gameID)throw Error(`missing required field request.gameID`);let n=`api/games/${t.gameID}/map`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGameMap`})},UpdateGameMapItem(t){if(!t.gameID)throw Error(`missing required field request.gameID`);if(!t.kind)throw Error(`missing required field request.kind`);if(!t.itemID)throw Error(`missing required field request.itemID`);let n=`api/games/${t.gameID}/map/items/${t.kind}/${t.itemID}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`UpdateGameMapItem`})},SetScreenMode(t){if(!t.gameID)throw Error(`missing required field request.gameID`);let n=`api/games/${t.gameID}/screens/mode`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`SetScreenMode`})},SetScreenTimer(t){if(!t.gameID)throw Error(`missing required field request.gameID`);let n=`api/games/${t.gameID}/screens/timer`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`SetScreenTimer`})},SendScreenCommand(t){if(!t.gameID)throw Error(`missing required field request.gameID`);let n=`api/games/${t.gameID}/screens/command`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`SendScreenCommand`})},GetScreenPlan(t){if(!t.gameID)throw Error(`missing required field request.gameID`);let n=`api/games/${t.gameID}/screen-plan`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetScreenPlan`})},SaveScreenPlan(t){if(!t.gameID)throw Error(`missing required field request.gameID`);let n=`api/games/${t.gameID}/screen-plan`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`SaveScreenPlan`})},SetScreenPlanStep(t){if(!t.gameID)throw Error(`missing required field request.gameID`);let n=`api/games/${t.gameID}/screen-plan/step`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`SetScreenPlanStep`})},GetScreenResults(t){let n=JSON.stringify(t),r=[],i=`api/screens/results`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`GetScreenResults`})},DownloadTeamQR(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/games/${t.ID}/teams/qr.pdf`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`DownloadTeamQR`})},GetGameAnswers(t){if(!t.gameID)throw Error(`missing required field request.gameID`);let n=`api/games/${t.gameID}/answers`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGameAnswers`})},GetGameResults(t){if(!t.gameID)throw Error(`missing required field request.gameID`);let n=`api/games/${t.gameID}/results`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGameResults`})},CreateGameReview(t){if(!t.gameID)throw Error(`missing required field request.gameID`);let n=`api/games/${t.gameID}/reviews`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`CreateGameReview`})},GetGameReviews(t){if(!t.gameID)throw Error(`missing required field request.gameID`);let n=`api/games/${t.gameID}/reviews`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGameReviews`})},GetScenarioReviews(t){if(!t.scenarioID)throw Error(`missing required field request.scenarioID`);let n=`api/scenarios/${t.scenarioID}/reviews`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetScenarioReviews`})},GetGameReviewsForModeration(t){if(!t.gameID)throw Error(`missing required field request.gameID`);let n=`api/admin/games/${t.gameID}/reviews`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGameReviewsForModeration`})},GetReviewsForModeration(t){let n=[],r=`api/admin/game-reviews`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetReviewsForModeration`})},ModerateGameReview(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/admin/game-reviews/${t.ID}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`ModerateGameReview`})},UpdateGame(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/games/${t.ID}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateGame`})},StartGame(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/games/${t.ID}/start`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`StartGame`})},PauseGame(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/games/${t.ID}/pause`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`PauseGame`})},PlayGame(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/games/${t.ID}/play`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`PlayGame`})},FinishGame(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/games/${t.ID}/finish`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`FinishGame`})},ResetGame(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/games/${t.ID}/reset`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`ResetGame`})},DeleteGame(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/games/${t.ID}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeleteGame`})},AddTeam(t){let n=JSON.stringify(t),r=[],i=`api/teams`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`AddTeam`})},UpdateTeam(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/teams/${t.ID}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateTeam`})},DeleteTeam(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/teams/${t.ID}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeleteTeam`})},GiveTeamApplications(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/teams/${t.ID}/applications`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`GiveTeamApplications`})},GetTeamStory(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/teams/${t.ID}/story`,r=[];t.password&&r.push(`password=${encodeURIComponent(t.password.toString())}`);let i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetTeamStory`})},AddTeamAction(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/teams/${t.ID}/actions`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`AddTeamAction`})},DeleteLastTeamAction(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/teams/${t.ID}/last-actions`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeleteLastTeamAction`})},GetTeamAnswers(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/teams/${t.ID}/answers`,r=[];t.password&&r.push(`password=${encodeURIComponent(t.password.toString())}`);let i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetTeamAnswers`})},SubmitTeamAnswers(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/teams/${t.ID}/answers`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`SubmitTeamAnswers`})},SetTeamAnswerScore(t){if(!t.ID)throw Error(`missing required field request.ID`);if(!t.questionCode)throw Error(`missing required field request.questionCode`);let n=`api/teams/${t.ID}/answers/${t.questionCode}/score`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`SetTeamAnswerScore`})}}}function Op(e,t){return Dp(kp(e,t))}function kp(e,t){return async n=>{let r=`${Ap()}/${n.path}`,i={"Content-Type":`application/json`},a=e?.();a&&(i.Authorization=`Bearer ${a}`);let o=t?.();o&&Object.assign(i,o);let s=await fetch(r,{method:n.method,headers:i,body:n.body});if(s.status==401)throw Error(`unauthorized`);let c=await s.json();if(c&&typeof c==`object`&&`code`in c&&c.code!==0)throw Error(`message`in c&&typeof c.message==`string`?c.message:`Ошибка запроса`);return c}}function Ap(){return`https://evening-detective-api.crabs-games.art`}export{js as $,Cr as $t,nl as A,a as An,Ka as At,Zs as B,zr as Bt,eu as C,D as Cn,La as Ct,ml as D,h as Dn,Ia as Dt,yl as E,d as En,ni as Et,fc as F,he as Fn,Oa as Ft,Us as G,Hr as Gt,qs as H,Pr as Ht,dc as I,ue as In,ui as It,Vs as J,ti as Jt,Ws as K,xa as Kt,uc as L,Se as Ln,Va as Lt,Kc as M,g as Mn,uo as Mt,Mc as N,_ as Nn,Vn as Nt,sl as O,o as On,W as Ot,Sc as P,oe as Pn,R as Pt,Ts as Q,br as Qt,lc as R,se as Rn,En as Rt,wu as S,s as Sn,Da as St,Zl as T,ae as Tn,oa as Tt,Ks as U,Br as Ut,Xs as V,Ur as Vt,Gs as W,Wr as Wt,As as X,Xr as Xt,Is as Y,ri as Yt,ks as Z,Qr as Zt,dd as _,on as _n,va as _t,vp as a,Rn as an,Qo as at,qu as b,E as bn,K as bt,Jf as c,Ut as cn,es as ct,Ed as d,Wt as dn,Mo as dt,ki as en,ns as et,bd as f,Oe as fn,vr as ft,pd as g,P as gn,sr as gt,md as h,qt as hn,V as ht,Dp as i,Ln as in,Zo as it,Jc as j,_e as jn,wr as jt,rl as k,v as kn,Tr as kt,Ud as l,Vt as ln,ts as lt,yd as m,zt as mn,H as mt,kp as n,Kn as nn,Xo as nt,Tp as o,Ee as on,$o as ot,xd as p,Lt as pn,mr as pt,Hs as q,Bn as qt,Ap as r,Wn as rn,rs as rt,Ep as s,De as sn,is as st,Op as t,fr as tn,Jo as tt,Hd as u,F as un,Vo as ut,id as v,nn as vn,_n as vt,$l as w,ve as wn,Ea as wt,Mu as x,re as xn,Ma as xt,$u as y,Zt as yn,Fa as yt,cc as z,Nr as zt}; \ No newline at end of file + `)]);function yd(e,t,n){if(!t)return;let r=Vs(),i=R(Gs,null),a=()=>{let a=n.value;t.mount({id:a===void 0?e:a+e,head:!0,anchorMetaName:fd,props:{bPrefix:a?`.${a}-`:void 0},ssr:r,parent:i?.styleMountTarget}),i?.preflightStyleDisabled||vd.mount({id:`n-global`,head:!0,anchorMetaName:fd,ssr:r,parent:i?.styleMountTarget})};r?a():zr(a)}function bd(e){return e}function xd(e,t,n,r,i,a){let o=Vs(),s=R(Gs,null);if(n){let e=()=>{let e=a?.value;n.mount({id:e===void 0?t:e+t,head:!0,props:{bPrefix:e?`.${e}-`:void 0},anchorMetaName:fd,ssr:o,parent:s?.styleMountTarget}),s?.preflightStyleDisabled||vd.mount({id:`n-global`,head:!0,anchorMetaName:fd,ssr:o,parent:s?.styleMountTarget})};o?e():zr(e)}return K(()=>{let{theme:{common:t,self:n,peers:a={}}={},themeOverrides:o={},builtinThemeOverrides:c={}}=i,{common:l,peers:u}=o,{common:d=void 0,[e]:{common:f=void 0,self:p=void 0,peers:m={}}={}}=s?.mergedThemeRef.value||{},{common:h=void 0,[e]:g={}}=s?.mergedThemeOverridesRef.value||{},{common:_,peers:v={}}=g,y=dd({},t||f||d||r.common,h,_,l);return{common:y,self:dd((n||p||r.self)?.(y),c,g,o),peers:dd({},r.peers,m,a),peerOverrides:dd({},c.peers,v,u)}})}xd.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};var Z={neutralBase:`#FFF`,neutralInvertBase:`#000`,neutralTextBase:`#000`,neutralPopover:`#fff`,neutralCard:`#fff`,neutralModal:`#fff`,neutralBody:`#fff`,alpha1:`0.82`,alpha2:`0.72`,alpha3:`0.38`,alpha4:`0.24`,alpha5:`0.18`,alphaClose:`0.6`,alphaDisabled:`0.5`,alphaDisabledInput:`0.02`,alphaPending:`0.05`,alphaTablePending:`0.02`,alphaPressed:`0.07`,alphaAvatar:`0.2`,alphaRail:`0.14`,alphaProgressRail:`.08`,alphaBorder:`0.12`,alphaDivider:`0.06`,alphaInput:`0`,alphaAction:`0.02`,alphaTab:`0.04`,alphaScrollbar:`0.25`,alphaScrollbarHover:`0.4`,alphaCode:`0.05`,alphaTag:`0.02`,primaryHover:`#36ad6a`,primaryDefault:`#18a058`,primaryActive:`#0c7a43`,primarySuppl:`#36ad6a`,infoHover:`#4098fc`,infoDefault:`#2080f0`,infoActive:`#1060c9`,infoSuppl:`#4098fc`,errorHover:`#de576d`,errorDefault:`#d03050`,errorActive:`#ab1f3f`,errorSuppl:`#de576d`,warningHover:`#fcb040`,warningDefault:`#f0a020`,warningActive:`#c97c10`,warningSuppl:`#fcb040`,successHover:`#36ad6a`,successDefault:`#18a058`,successActive:`#0c7a43`,successSuppl:`#36ad6a`},Sd=Ts(Z.neutralBase),Cd=Ts(Z.neutralInvertBase),wd=`rgba(${Cd.slice(0,3).join(`, `)}, `;function Td(e){return`${wd+String(e)})`}function Q(e){let t=Array.from(Cd);return t[3]=Number(e),ks(Sd,t)}var Ed=Object.assign(Object.assign({name:`common`},md),{baseColor:Z.neutralBase,primaryColor:Z.primaryDefault,primaryColorHover:Z.primaryHover,primaryColorPressed:Z.primaryActive,primaryColorSuppl:Z.primarySuppl,infoColor:Z.infoDefault,infoColorHover:Z.infoHover,infoColorPressed:Z.infoActive,infoColorSuppl:Z.infoSuppl,successColor:Z.successDefault,successColorHover:Z.successHover,successColorPressed:Z.successActive,successColorSuppl:Z.successSuppl,warningColor:Z.warningDefault,warningColorHover:Z.warningHover,warningColorPressed:Z.warningActive,warningColorSuppl:Z.warningSuppl,errorColor:Z.errorDefault,errorColorHover:Z.errorHover,errorColorPressed:Z.errorActive,errorColorSuppl:Z.errorSuppl,textColorBase:Z.neutralTextBase,textColor1:`rgb(31, 34, 37)`,textColor2:`rgb(51, 54, 57)`,textColor3:`rgb(118, 124, 130)`,textColorDisabled:Q(Z.alpha4),placeholderColor:Q(Z.alpha4),placeholderColorDisabled:Q(Z.alpha5),iconColor:Q(Z.alpha4),iconColorHover:js(Q(Z.alpha4),{lightness:.75}),iconColorPressed:js(Q(Z.alpha4),{lightness:.9}),iconColorDisabled:Q(Z.alpha5),opacity1:Z.alpha1,opacity2:Z.alpha2,opacity3:Z.alpha3,opacity4:Z.alpha4,opacity5:Z.alpha5,dividerColor:`rgb(239, 239, 245)`,borderColor:`rgb(224, 224, 230)`,closeIconColor:Q(Number(Z.alphaClose)),closeIconColorHover:Q(Number(Z.alphaClose)),closeIconColorPressed:Q(Number(Z.alphaClose)),closeColorHover:`rgba(0, 0, 0, .09)`,closeColorPressed:`rgba(0, 0, 0, .13)`,clearColor:Q(Z.alpha4),clearColorHover:js(Q(Z.alpha4),{lightness:.75}),clearColorPressed:js(Q(Z.alpha4),{lightness:.9}),scrollbarColor:Td(Z.alphaScrollbar),scrollbarColorHover:Td(Z.alphaScrollbarHover),scrollbarWidth:`5px`,scrollbarHeight:`5px`,scrollbarBorderRadius:`5px`,progressRailColor:Q(Z.alphaProgressRail),railColor:`rgb(219, 219, 223)`,popoverColor:Z.neutralPopover,tableColor:Z.neutralCard,cardColor:Z.neutralCard,modalColor:Z.neutralModal,bodyColor:Z.neutralBody,tagColor:`#eee`,avatarColor:Q(Z.alphaAvatar),invertedColor:`rgb(0, 20, 40)`,inputColor:Q(Z.alphaInput),codeColor:`rgb(244, 244, 248)`,tabColor:`rgb(247, 247, 250)`,actionColor:`rgb(250, 250, 252)`,tableHeaderColor:`rgb(250, 250, 252)`,hoverColor:`rgb(243, 243, 245)`,tableColorHover:`rgba(0, 0, 100, 0.03)`,tableColorStriped:`rgba(0, 0, 100, 0.02)`,pressedColor:`rgb(237, 237, 239)`,opacityDisabled:Z.alphaDisabled,inputColorDisabled:`rgb(250, 250, 252)`,buttonColor2:`rgba(46, 51, 56, .05)`,buttonColor2Hover:`rgba(46, 51, 56, .09)`,buttonColor2Pressed:`rgba(46, 51, 56, .13)`,boxShadow1:`0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)`,boxShadow2:`0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)`,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)`}),Dd=typeof document<`u`;function Od(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function kd(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&Od(e.default)}var $=Object.assign;function Ad(e,t){let n={};for(let r in t){let i=t[r];n[r]=Md(i)?i.map(e):e(i)}return n}var jd=()=>{},Md=Array.isArray;function Nd(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var Pd=Symbol(``);function Fd(e,t){return $(Error(),{type:e,[Pd]:!0},t)}function Id(e,t){return e instanceof Error&&Pd in e&&(t==null||!!(e.type&t))}var Ld=Symbol(``),Rd=Symbol(``),zd=Symbol(``),Bd=Symbol(``),Vd=Symbol(``);function Hd(){return R(zd)}function Ud(e){return R(Bd)}var Wd=/#/g,Gd=/&/g,Kd=/\//g,qd=/=/g,Jd=/\?/g,Yd=/\+/g,Xd=/%5B/g,Zd=/%5D/g,Qd=/%5E/g,$d=/%60/g,ef=/%7B/g,tf=/%7C/g,nf=/%7D/g,rf=/%20/g;function af(e){return e==null?``:encodeURI(``+e).replace(tf,`|`).replace(Xd,`[`).replace(Zd,`]`)}function of(e){return af(e).replace(ef,`{`).replace(nf,`}`).replace(Qd,`^`)}function sf(e){return af(e).replace(Yd,`%2B`).replace(rf,`+`).replace(Wd,`%23`).replace(Gd,`%26`).replace($d,"`").replace(ef,`{`).replace(nf,`}`).replace(Qd,`^`)}function cf(e){return sf(e).replace(qd,`%3D`)}function lf(e){return af(e).replace(Wd,`%23`).replace(Jd,`%3F`)}function uf(e){return lf(e).replace(Kd,`%2F`)}function df(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var ff=/\/$/,pf=e=>e.replace(ff,``);function mf(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=Sf(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:df(o)}}function hf(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function gf(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function _f(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&vf(t.matched[r],n.matched[i])&&yf(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function vf(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function yf(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!bf(e[n],t[n]))return!1;return!0}function bf(e,t){return Md(e)?xf(e,t):Md(t)?xf(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function xf(e,t){return Md(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function Sf(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o1&&a--;else break;return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var Cf={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0};function wf(e){if(!e)if(Dd){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),pf(e)}var Tf=/^[^#]+#/;function Ef(e,t){return e.replace(Tf,`#`)+t}function Df(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var Of=()=>({left:window.scrollX,top:window.scrollY});function kf(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=Df(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function Af(e,t){return(history.state?history.state.position-t:-1)+e}var jf=new Map;function Mf(e,t){jf.set(e,t)}function Nf(e){let t=jf.get(e);return jf.delete(e),t}function Pf(e){return typeof e==`string`||e&&typeof e==`object`}function Ff(e){return typeof e==`string`||typeof e==`symbol`}function If(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;ee&&sf(e)):[r&&sf(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function Rf(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=Md(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function zf(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Bf(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(Fd(4,{from:n,to:t})):e instanceof Error?c(e):Pf(e)?c(Fd(2,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function Vf(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e]))if(Od(s)){let c=(s.__vccOpts||s)[t];c&&a.push(Bf(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=kd(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&Bf(c,n,r,o,e,i)()}))}}return a}function Hf(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;ovf(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>vf(e,s))||i.push(s))}return[n,r,i]}var Uf=()=>location.protocol+`//`+location.host;function Wf(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),gf(n,``)}return gf(n,e)+r+i}function Gf(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=Wf(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:`pop`,direction:u?u>0?`forward`:`back`:``})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState($({},e.state,{scroll:Of()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function Kf(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?Of():null}}function qf(e){let{history:t,location:n}=window,r={value:Wf(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:Uf()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,$({},t.state,Kf(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=$({},i.value,t.state,{forward:e,scroll:Of()});a(o.current,o,!0),a(e,$({},Kf(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function Jf(e){e=wf(e);let t=qf(e),n=Gf(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=$({location:``,base:e,go:r,createHref:Ef.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}var Yf={type:0,value:``},Xf=/[a-zA-Z0-9_]/;function Zf(e){if(!e)return[[]];if(e===`/`)return[[Yf]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=0,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===0?a.push({type:0,value:l}):n===1||n===2||n===3?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;st.length?t.length===1&&t[0]===80?1:-1:0}function rp(e,t){let n=0,r=e.score,i=t.score;for(;n0&&t[t.length-1]<0}var ap={strict:!1,end:!0,sensitive:!1};function op(e,t,n){let r=$(tp(Zf(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function sp(e,t){let n=[],r=new Map;t=Nd(ap,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=lp(e);s.aliasOf=r&&r.record;let l=Nd(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(lp($({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=op(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!dp(d)&&o(e.name)),hp(d)&&c(d),s.children){let e=s.children;for(let t=0;t{o(f)}:jd}function o(e){if(Ff(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=pp(e,n);n.splice(t,0,e),e.record.name&&!dp(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw Fd(1,{location:e});s=i.record.name,a=$(cp(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&cp(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name,i.keys.forEach(e=>{e.optional&&!a[e.name]&&delete a[e.name]}));else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw Fd(1,{location:e,currentLocation:t});s=i.record.name,a=$({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:fp(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function cp(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function lp(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:up(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function up(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function dp(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function fp(e){return e.reduce((e,t)=>$(e,t.meta),{})}function pp(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;rp(e,t[i])<0?r=i:n=i+1}let i=mp(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function mp(e){let t=e;for(;t=t.parent;)if(hp(t)&&rp(e,t)===0)return t}function hp({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function gp(e){let t=R(zd),n=R(Bd),r=K(()=>{let n=Zt(e.to);return t.resolve(n)}),i=K(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(vf.bind(null,i));if(o>-1)return o;let s=xp(e[t-2]);return t>1&&xp(i)===s&&a[a.length-1].path!==s?a.findIndex(vf.bind(null,e[t-2])):o}),a=K(()=>i.value>-1&&bp(n.params,r.value.params)),o=K(()=>i.value>-1&&i.value===n.matched.length-1&&yf(n.params,r.value.params));function s(n={}){if(yp(n)){let n=t[Zt(e.replace)?`replace`:`push`](Zt(e.to)).catch(jd);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:K(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function _p(e){return e.length===1?e[0]:e}var vp=Tr({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:gp,setup(e,{slots:t}){let n=Lt(gp(e)),{options:r}=R(zd),i=K(()=>({[Sp(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[Sp(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&_p(t.default(n));return e.custom?r:uo(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function yp(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function bp(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!Md(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function xp(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var Sp=(e,t,n)=>e??t??n,Cp=Tr({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=R(Vd),i=K(()=>e.route||r.value),a=R(Rd,0),o=K(()=>{let e=Zt(a),{matched:t}=i.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),s=K(()=>i.value.matched[o.value]);Bn(Rd,K(()=>o.value+1)),Bn(Ld,s),Bn(Vd,i);let c=qt();return Kn(()=>[c.value,s.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!vf(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=i.value,a=e.name,o=s.value,l=o&&o.components[a];if(!l)return wp(n.default,{Component:l,route:r});let u=o.props[a],d=uo(l,$({},u?u===!0?r.params:typeof u==`function`?u(r):u:null,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[a]=null)},ref:c}));return wp(n.default,{Component:d,route:r})||d}}});function wp(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var Tp=Cp;function Ep(e){let t=sp(e.routes,e),n=e.parseQuery||If,r=e.stringifyQuery||Lf,i=e.history,a=zf(),o=zf(),s=zf(),c=Jt(Cf),l=Cf;Dd&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let u=Ad.bind(null,e=>``+e),d=Ad.bind(null,uf),f=Ad.bind(null,df);function p(e,n){let r,i;return Ff(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function m(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function h(){return t.getRoutes().map(e=>e.record)}function g(e){return!!t.getRecordMatcher(e)}function _(e,a){if(a=$({},a||c.value),typeof e==`string`){let r=mf(n,e,a.path),o=t.resolve({path:r.path},a),s=i.createHref(r.fullPath);return $(r,o,{params:f(o.params),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=$({},e,{path:mf(n,e.path,a.path).path});else{let t=$({},e.params);for(let e in t)t[e]??delete t[e];o=$({},e,{params:d(t)}),a.params=d(a.params)}let s=t.resolve(o,a),l=e.hash||``;s.params=u(f(s.params));let p=hf(r,$({},e,{hash:of(l),path:s.path})),m=i.createHref(p);return $({fullPath:p,hash:l,query:r===Lf?Rf(e.query):e.query||{}},s,{redirectedFrom:void 0,href:m})}function v(e){return typeof e==`string`?mf(n,e,c.value.path):$({},e)}function y(e,t){if(l!==e)return Fd(8,{from:t,to:e})}function b(e){return C(e)}function x(e){return b($(v(e),{replace:!0}))}function S(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=v(i):{path:i},i.params={}),$({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function C(e,t){let n=l=_(e),i=c.value,a=e.state,o=e.force,s=e.replace===!0,u=S(n,i);if(u)return C($(v(u),{state:typeof u==`object`?$({},a,u.state):a,force:o,replace:s}),t||n);let d=n;d.redirectedFrom=t;let f;return!o&&_f(r,i,n)&&(f=Fd(16,{to:d,from:i}),se(i,i,!0,!1)),(f?Promise.resolve(f):ee(d,i)).catch(e=>Id(e)?Id(e,2)?e:oe(e):ae(e,d,i)).then(e=>{if(e){if(Id(e,2))return C($({replace:s},v(e.to),{state:typeof e.to==`object`?$({},a,e.to.state):a,force:o}),t||d)}else e=E(d,i,!0,s,a);return te(d,i,e),e})}function w(e,t){let n=y(e,t);return n?Promise.reject(n):Promise.resolve()}function T(e){let t=ue.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function ee(e,t){let n,[r,i,s]=Hf(e,t);n=Vf(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(Bf(r,e,t))});let c=w.bind(null,e,t);return n.push(c),fe(n).then(()=>{n=[];for(let r of a.list())n.push(Bf(r,e,t));return n.push(c),fe(n)}).then(()=>{n=Vf(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(Bf(r,e,t))});return n.push(c),fe(n)}).then(()=>{n=[];for(let r of s)if(r.beforeEnter)if(Md(r.beforeEnter))for(let i of r.beforeEnter)n.push(Bf(i,e,t));else n.push(Bf(r.beforeEnter,e,t));return n.push(c),fe(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=Vf(s,`beforeRouteEnter`,e,t,T),n.push(c),fe(n))).then(()=>{n=[];for(let r of o.list())n.push(Bf(r,e,t));return n.push(c),fe(n)}).catch(e=>Id(e,8)?e:Promise.reject(e))}function te(e,t,n){s.list().forEach(r=>T(()=>r(e,t,n)))}function E(e,t,n,r,a){let o=y(e,t);if(o)return o;let s=t===Cf,l=Dd?history.state:{};n&&(r||s?i.replace(e.fullPath,$({scroll:s&&l&&l.scroll},a)):i.push(e.fullPath,a)),c.value=e,se(e,t,n,s),oe()}let ne;function D(){ne||=i.listen((e,t,n)=>{if(!de.listening)return;let r=_(e),a=S(r,de.currentRoute.value);if(a){C($(a,{replace:!0,force:!0}),r).catch(jd);return}l=r;let o=c.value;Dd&&Mf(Af(o.fullPath,n.delta),Of()),ee(r,o).catch(e=>Id(e,12)?e:Id(e,2)?(C($(v(e.to),{force:!0}),r).then(e=>{Id(e,20)&&!n.delta&&n.type===`pop`&&i.go(-1,!1)}).catch(jd),Promise.reject()):(n.delta&&i.go(-n.delta,!1),ae(e,r,o))).then(e=>{e||=E(r,o,!1),e&&(n.delta&&!Id(e,8)?i.go(-n.delta,!1):n.type===`pop`&&Id(e,20)&&i.go(-1,!1)),te(r,o,e)}).catch(jd)})}let re=zf(),ie=zf(),O;function ae(e,t,n){oe(e);let r=ie.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function k(){return O&&c.value!==Cf?Promise.resolve():new Promise((e,t)=>{re.add([e,t])})}function oe(e){return O||(O=!e,D(),re.list().forEach(([t,n])=>e?n(e):t()),re.reset()),e}function se(t,n,r,i){let{scrollBehavior:a}=e;if(!Dd||!a)return Promise.resolve();let o=!r&&Nf(Af(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return En().then(()=>a(t,n,o)).then(e=>e&&kf(e)).catch(e=>ae(e,t,n))}let ce=e=>i.go(e),le,ue=new Set,de={currentRoute:c,listening:!0,addRoute:p,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:g,getRoutes:h,resolve:_,options:e,push:b,replace:x,go:ce,back:()=>ce(-1),forward:()=>ce(1),beforeEach:a.add,beforeResolve:o.add,afterEach:s.add,onError:ie.add,isReady:k,install(e){e.component(`RouterLink`,vp),e.component(`RouterView`,Tp),e.config.globalProperties.$router=de,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>Zt(c)}),Dd&&!le&&c.value===Cf&&(le=!0,b(i.location).catch(e=>{}));let t={};for(let e in Cf)Object.defineProperty(t,e,{get:()=>c.value[e],enumerable:!0});e.provide(zd,de),e.provide(Bd,Rt(t)),e.provide(Vd,c);let n=e.unmount;ue.add(e),e.unmount=function(){ue.delete(e),ue.size<1&&(l=Cf,ne&&ne(),ne=null,c.value=Cf,le=!1,O=!1),n()}}};function fe(e){return e.reduce((e,t)=>e.then(()=>T(t)),Promise.resolve())}return de}function Dp(e){return{GetTasks(t){let n=[],r=`api/tasks`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetTasks`})},GetTaskAssignees(t){let n=[],r=`api/tasks/assignees`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetTaskAssignees`})},CreateTask(t){let n=JSON.stringify(t),r=[],i=`api/tasks`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`CreateTask`})},UpdateTask(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/tasks/${t.ID}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateTask`})},SetTaskStatus(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/tasks/${t.ID}/status`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`SetTaskStatus`})},DeleteTask(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/tasks/${t.ID}/delete`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`DeleteTask`})},GetParticipation(t){let n=JSON.stringify(t),r=[],i=`api/participation/get`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`GetParticipation`})},AnswerParticipation(t){let n=JSON.stringify(t),r=[],i=`api/participation/answer`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`AnswerParticipation`})},Ping(t){let n=[],r=`api/test/ping`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`Ping`})},Echo(t){let n=[];t.text&&n.push(`text=${encodeURIComponent(t.text.toString())}`);let r=`api/test/echo`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`POST`,body:null},{service:`EveningDetectiveServer`,method:`Echo`})},Signup(t){let n=JSON.stringify(t),r=[],i=`api/auth/signup`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`Signup`})},RefreshPassword(t){let n=JSON.stringify(t),r=[],i=`api/auth/refresh-password`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`RefreshPassword`})},Login(t){let n=JSON.stringify(t),r=[],i=`api/auth/login`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`Login`})},Refresh(t){let n=JSON.stringify(t),r=[],i=`api/auth/refresh`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`Refresh`})},DeleteAccount(t){let n=[],r=`api/auth/delete-account`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeleteAccount`})},GetTerms(t){let n=[],r=`api/terms`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetTerms`})},GetPrivacy(t){let n=[],r=`api/privacy`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetPrivacy`})},GetConsent(t){let n=[],r=`api/consent`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetConsent`})},GetUsers(t){let n=[],r=`api/users`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetUsers`})},GetUserByID(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/users/${t.ID}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetUserByID`})},GetMe(t){let n=[],r=`api/users/me`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetMe`})},ChangeUserPassword(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/users/${t.ID}/password`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`ChangeUserPassword`})},AddUserRole(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/users/${t.ID}/role/add`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`AddUserRole`})},DeleteUserRole(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/users/${t.ID}/role/delete`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`DeleteUserRole`})},GetPermissions(t){let n=[],r=`api/ui/permissions`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetPermissions`})},UploadFile(t){let n=JSON.stringify(t),r=[],i=`api/files/upload`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`UploadFile`})},DownloadFile(t){if(!t.filename)throw Error(`missing required field request.filename`);let n=`api/files/${t.filename}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`DownloadFile`})},GetPlaylists(t){let n=[],r=`api/playlists`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetPlaylists`})},CreatePlaylist(t){let n=JSON.stringify(t),r=[],i=`api/playlists`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`CreatePlaylist`})},UpdatePlaylist(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/playlists/${t.ID}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdatePlaylist`})},DeletePlaylist(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/playlists/${t.ID}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeletePlaylist`})},UploadPlaylistTrack(t){if(!t.playlistID)throw Error(`missing required field request.playlistID`);let n=`api/playlists/${t.playlistID}/tracks`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`UploadPlaylistTrack`})},DeletePlaylistTrack(t){if(!t.playlistID)throw Error(`missing required field request.playlistID`);if(!t.trackID)throw Error(`missing required field request.trackID`);let n=`api/playlists/${t.playlistID}/tracks/${t.trackID}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeletePlaylistTrack`})},SetScenarioPlaylist(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/scenarios/${t.ID}/playlist`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`SetScenarioPlaylist`})},AddScenario(t){let n=JSON.stringify(t),r=[],i=`api/scenario`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`AddScenario`})},GetMyScenarios(t){let n=[],r=`api/my-scenarios`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetMyScenarios`})},GetScenariosCatalog(t){let n=[],r=`api/catalog`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetScenariosCatalog`})},GetFullScenario(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/scenarios/${t.ID}/full`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetFullScenario`})},GetScenario(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/scenarios/${t.ID}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetScenario`})},UpdateScenario(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/scenarios/${t.ID}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateScenario`})},PublicScenario(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/scenarios/${t.ID}/public`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`PublicScenario`})},DraftScenario(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/scenarios/${t.ID}/draft`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`DraftScenario`})},DeleteScenario(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/scenarios/${t.ID}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeleteScenario`})},AddScenarioPlace(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/scenarios/${t.ID}/places`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`AddScenarioPlace`})},UpdateScenarioPlace(t){if(!t.ID)throw Error(`missing required field request.ID`);if(!t.code)throw Error(`missing required field request.code`);let n=`api/scenarios/${t.ID}/places/${t.code}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateScenarioPlace`})},DeleteScenarioPlace(t){if(!t.ID)throw Error(`missing required field request.ID`);if(!t.code)throw Error(`missing required field request.code`);let n=`api/scenarios/${t.ID}/places/${t.code}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeleteScenarioPlace`})},AddScenarioQuestion(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/scenarios/${t.ID}/questions`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`AddScenarioQuestion`})},UpdateScenarioQuestion(t){if(!t.ID)throw Error(`missing required field request.ID`);if(!t.code)throw Error(`missing required field request.code`);let n=`api/scenarios/${t.ID}/questions/${t.code}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateScenarioQuestion`})},DeleteScenarioQuestion(t){if(!t.ID)throw Error(`missing required field request.ID`);if(!t.code)throw Error(`missing required field request.code`);let n=`api/scenarios/${t.ID}/questions/${t.code}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeleteScenarioQuestion`})},UpdateScenarioBackground(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/scenarios/${t.ID}/background`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateScenarioBackground`})},UpdateScenarioIntro(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/scenarios/${t.ID}/introduction`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateScenarioIntro`})},UpdateScenarioConclusion(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/scenarios/${t.ID}/conclusion`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateScenarioConclusion`})},DownloadScenarioArchive(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/scenarios/${t.ID}/archive`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`DownloadScenarioArchive`})},UploadScenarioArchive(t){let n=JSON.stringify(t),r=[],i=`api/scenarios/archive`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`UploadScenarioArchive`})},AddGame(t){let n=JSON.stringify(t),r=[],i=`api/games`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`AddGame`})},GetGames(t){let n=[],r=`api/games`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGames`})},GetGame(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/games/${t.ID}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGame`})},StartGameExport(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/games/${t.ID}/export`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`StartGameExport`})},GetGameExport(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/games/${t.ID}/export`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGameExport`})},IssueGameTickets(t){if(!t.gameID)throw Error(`missing required field request.gameID`);let n=`api/games/${t.gameID}/tickets`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`IssueGameTickets`})},GetTicket(t){if(!t.token)throw Error(`missing required field request.token`);let n=`api/tickets/${t.token}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetTicket`})},AcceptTicket(t){if(!t.token)throw Error(`missing required field request.token`);let n=`api/tickets/${t.token}/accept`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`AcceptTicket`})},CreateScreenSession(t){let n=JSON.stringify(t),r=[],i=`api/screens`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`CreateScreenSession`})},GetScreenState(t){let n=JSON.stringify(t),r=[],i=`api/screens/state`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`GetScreenState`})},GetGameScreens(t){if(!t.gameID)throw Error(`missing required field request.gameID`);let n=`api/games/${t.gameID}/screens`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGameScreens`})},GetGameMusic(t){if(!t.gameID)throw Error(`missing required field request.gameID`);let n=`api/games/${t.gameID}/music`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGameMusic`})},SetGameMusic(t){if(!t.gameID)throw Error(`missing required field request.gameID`);let n=`api/games/${t.gameID}/music`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`SetGameMusic`})},AdvanceScreenMusic(t){let n=JSON.stringify(t),r=[],i=`api/screens/music/advance`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`AdvanceScreenMusic`})},BindScreen(t){if(!t.screenID)throw Error(`missing required field request.screenID`);let n=`api/screens/${t.screenID}/bind`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`BindScreen`})},UnbindScreen(t){if(!t.screenID)throw Error(`missing required field request.screenID`);let n=`api/screens/${t.screenID}/unbind`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`UnbindScreen`})},SetScreenSound(t){if(!t.screenID)throw Error(`missing required field request.screenID`);let n=`api/screens/${t.screenID}/sound`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`SetScreenSound`})},GetGameMap(t){if(!t.gameID)throw Error(`missing required field request.gameID`);let n=`api/games/${t.gameID}/map`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGameMap`})},UpdateGameMapItem(t){if(!t.gameID)throw Error(`missing required field request.gameID`);if(!t.kind)throw Error(`missing required field request.kind`);if(!t.itemID)throw Error(`missing required field request.itemID`);let n=`api/games/${t.gameID}/map/items/${t.kind}/${t.itemID}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`UpdateGameMapItem`})},SetScreenMode(t){if(!t.gameID)throw Error(`missing required field request.gameID`);let n=`api/games/${t.gameID}/screens/mode`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`SetScreenMode`})},SetScreenTimer(t){if(!t.gameID)throw Error(`missing required field request.gameID`);let n=`api/games/${t.gameID}/screens/timer`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`SetScreenTimer`})},SendScreenCommand(t){if(!t.gameID)throw Error(`missing required field request.gameID`);let n=`api/games/${t.gameID}/screens/command`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`SendScreenCommand`})},GetScreenPlan(t){if(!t.gameID)throw Error(`missing required field request.gameID`);let n=`api/games/${t.gameID}/screen-plan`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetScreenPlan`})},SaveScreenPlan(t){if(!t.gameID)throw Error(`missing required field request.gameID`);let n=`api/games/${t.gameID}/screen-plan`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`SaveScreenPlan`})},SetScreenPlanStep(t){if(!t.gameID)throw Error(`missing required field request.gameID`);let n=`api/games/${t.gameID}/screen-plan/step`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`SetScreenPlanStep`})},GetScreenResults(t){let n=JSON.stringify(t),r=[],i=`api/screens/results`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`GetScreenResults`})},DownloadTeamQR(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/games/${t.ID}/teams/qr.pdf`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`DownloadTeamQR`})},GetGameAnswers(t){if(!t.gameID)throw Error(`missing required field request.gameID`);let n=`api/games/${t.gameID}/answers`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGameAnswers`})},GetGameResults(t){if(!t.gameID)throw Error(`missing required field request.gameID`);let n=`api/games/${t.gameID}/results`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGameResults`})},CreateGameReview(t){if(!t.gameID)throw Error(`missing required field request.gameID`);let n=`api/games/${t.gameID}/reviews`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`CreateGameReview`})},GetGameReviews(t){if(!t.gameID)throw Error(`missing required field request.gameID`);let n=`api/games/${t.gameID}/reviews`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGameReviews`})},GetScenarioReviews(t){if(!t.scenarioID)throw Error(`missing required field request.scenarioID`);let n=`api/scenarios/${t.scenarioID}/reviews`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetScenarioReviews`})},GetGameReviewsForModeration(t){if(!t.gameID)throw Error(`missing required field request.gameID`);let n=`api/admin/games/${t.gameID}/reviews`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetGameReviewsForModeration`})},GetReviewsForModeration(t){let n=[],r=`api/admin/game-reviews`;return n.length>0&&(r+=`?${n.join(`&`)}`),e({path:r,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetReviewsForModeration`})},ModerateGameReview(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/admin/game-reviews/${t.ID}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`ModerateGameReview`})},UpdateGame(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/games/${t.ID}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateGame`})},StartGame(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/games/${t.ID}/start`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`StartGame`})},PauseGame(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/games/${t.ID}/pause`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`PauseGame`})},PlayGame(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/games/${t.ID}/play`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`PlayGame`})},FinishGame(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/games/${t.ID}/finish`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`FinishGame`})},ResetGame(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/games/${t.ID}/reset`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`ResetGame`})},DeleteGame(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/games/${t.ID}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeleteGame`})},AddTeam(t){let n=JSON.stringify(t),r=[],i=`api/teams`;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`POST`,body:n},{service:`EveningDetectiveServer`,method:`AddTeam`})},UpdateTeam(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/teams/${t.ID}`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`UpdateTeam`})},DeleteTeam(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/teams/${t.ID}`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeleteTeam`})},GiveTeamApplications(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/teams/${t.ID}/applications`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`GiveTeamApplications`})},GetTeamStory(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/teams/${t.ID}/story`,r=[];t.password&&r.push(`password=${encodeURIComponent(t.password.toString())}`);let i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetTeamStory`})},AddTeamAction(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/teams/${t.ID}/actions`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`AddTeamAction`})},DeleteLastTeamAction(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/teams/${t.ID}/last-actions`,r=[],i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`DELETE`,body:null},{service:`EveningDetectiveServer`,method:`DeleteLastTeamAction`})},GetTeamAnswers(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/teams/${t.ID}/answers`,r=[];t.password&&r.push(`password=${encodeURIComponent(t.password.toString())}`);let i=n;return r.length>0&&(i+=`?${r.join(`&`)}`),e({path:i,method:`GET`,body:null},{service:`EveningDetectiveServer`,method:`GetTeamAnswers`})},SubmitTeamAnswers(t){if(!t.ID)throw Error(`missing required field request.ID`);let n=`api/teams/${t.ID}/answers`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`POST`,body:r},{service:`EveningDetectiveServer`,method:`SubmitTeamAnswers`})},SetTeamAnswerScore(t){if(!t.ID)throw Error(`missing required field request.ID`);if(!t.questionCode)throw Error(`missing required field request.questionCode`);let n=`api/teams/${t.ID}/answers/${t.questionCode}/score`,r=JSON.stringify(t),i=[],a=n;return i.length>0&&(a+=`?${i.join(`&`)}`),e({path:a,method:`PUT`,body:r},{service:`EveningDetectiveServer`,method:`SetTeamAnswerScore`})}}}function Op(e,t){return Dp(kp(e,t))}function kp(e,t){return async n=>{let r=`${Ap()}/${n.path}`,i={"Content-Type":`application/json`},a=e?.();a&&(i.Authorization=`Bearer ${a}`);let o=t?.();o&&Object.assign(i,o);let s=await fetch(r,{method:n.method,headers:i,body:n.body});if(s.status==401)throw Error(`unauthorized`);let c=await s.json();if(c&&typeof c==`object`&&`code`in c&&c.code!==0)throw Error(`message`in c&&typeof c.message==`string`?c.message:`Ошибка запроса`);return c}}function Ap(){return`https://evening-detective-api.crabs-games.art`}export{js as $,Cr as $t,nl as A,a as An,Ka as At,Zs as B,zr as Bt,eu as C,D as Cn,La as Ct,ml as D,h as Dn,Ia as Dt,yl as E,d as En,ni as Et,fc as F,he as Fn,Oa as Ft,Us as G,Hr as Gt,qs as H,Pr as Ht,dc as I,ue as In,ui as It,Vs as J,ti as Jt,Ws as K,xa as Kt,uc as L,Se as Ln,Va as Lt,Kc as M,g as Mn,uo as Mt,Mc as N,_ as Nn,Vn as Nt,sl as O,o as On,W as Ot,Sc as P,oe as Pn,R as Pt,Ts as Q,br as Qt,lc as R,se as Rn,En as Rt,wu as S,s as Sn,Da as St,Zl as T,ae as Tn,oa as Tt,Ks as U,Br as Ut,Xs as V,Ur as Vt,Gs as W,Wr as Wt,As as X,Xr as Xt,Is as Y,ri as Yt,ks as Z,Qr as Zt,dd as _,on as _n,va as _t,vp as a,Rn as an,Qo as at,qu as b,E as bn,K as bt,Jf as c,Ut as cn,es as ct,Ed as d,Wt as dn,Mo as dt,ki as en,ns as et,bd as f,Oe as fn,vr as ft,pd as g,P as gn,sr as gt,md as h,qt as hn,V as ht,Dp as i,Ln as in,Zo as it,Jc as j,_e as jn,wr as jt,rl as k,v as kn,Tr as kt,Ud as l,Vt as ln,ts as lt,yd as m,zt as mn,H as mt,kp as n,Kn as nn,Xo as nt,Tp as o,Ee as on,$o as ot,xd as p,Lt as pn,mr as pt,Hs as q,Bn as qt,Ap as r,Wn as rn,rs as rt,Ep as s,De as sn,is as st,Op as t,fr as tn,Jo as tt,Hd as u,F as un,Vo as ut,id as v,nn as vn,_n as vt,$l as w,ve as wn,Ea as wt,Mu as x,re as xn,Ma as xt,$u as y,Zt as yn,Fa as yt,cc as z,Nr as zt}; \ No newline at end of file diff --git a/frontend/dist/assets/es-DSPBzgpf.js b/frontend/dist/assets/es-CevmKZP_.js similarity index 98% rename from frontend/dist/assets/es-DSPBzgpf.js rename to frontend/dist/assets/es-CevmKZP_.js index 18a3a45..4c67f0d 100644 --- a/frontend/dist/assets/es-DSPBzgpf.js +++ b/frontend/dist/assets/es-CevmKZP_.js @@ -1,4 +1,4 @@ -import{Bt as e,H as t,K as n,Mt as r,Pt as i,U as a,X as o,Y as s,Yt as c,_n as l,at as u,bt as d,d as f,dt as p,g as m,hn as h,it as g,kt as _,nt as v,ot as y,p as b,qt as x,st as S,tt as C}from"./client-vZFx54yb.js";import{c as w,o as T,s as E}from"./_plugin-vue_export-helper-FodinAjS.js";import{A as D,L as O,h as k}from"./index-Ci0r-yTA.js";function A(e){return typeof e==`string`?e.endsWith(`px`)?Number(e.slice(0,e.length-2)):Number(e):e}function j(e){if(e!=null)return typeof e==`number`?`${e}px`:e.endsWith(`px`)?e:`${e}px`}function M(e,t){let n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw Error(`[seemly/getMargin]:`+e+` is not a valid value.`)}return t===void 0?r:r[t]}function ee(e,t){let[n,r]=e.split(` `);return t?t===`row`?n:r:{row:n,col:r||n}}function N(e){let{textColor2:t,primaryColorHover:n,primaryColorPressed:r,primaryColor:i,infoColor:a,successColor:s,warningColor:c,errorColor:l,baseColor:u,borderColor:d,opacityDisabled:f,tagColor:p,closeIconColor:m,closeIconColorHover:h,closeIconColorPressed:g,borderRadiusSmall:_,fontSizeMini:v,fontSizeTiny:y,fontSizeSmall:b,fontSizeMedium:x,heightMini:S,heightTiny:C,heightSmall:w,heightMedium:T,closeColorHover:E,closeColorPressed:O,buttonColor2Hover:k,buttonColor2Pressed:A,fontWeightStrong:j}=e;return Object.assign(Object.assign({},D),{closeBorderRadius:_,heightTiny:S,heightSmall:C,heightMedium:w,heightLarge:T,borderRadius:_,opacityDisabled:f,fontSizeTiny:v,fontSizeSmall:y,fontSizeMedium:b,fontSizeLarge:x,fontWeightStrong:j,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:u,colorCheckable:`#0000`,colorHoverCheckable:k,colorPressedCheckable:A,colorChecked:i,colorCheckedHover:n,colorCheckedPressed:r,border:`1px solid ${d}`,textColor:t,color:p,colorBordered:`rgb(250, 250, 252)`,closeIconColor:m,closeIconColorHover:h,closeIconColorPressed:g,closeColorHover:E,closeColorPressed:O,borderPrimary:`1px solid ${o(i,{alpha:.3})}`,textColorPrimary:i,colorPrimary:o(i,{alpha:.12}),colorBorderedPrimary:o(i,{alpha:.1}),closeIconColorPrimary:i,closeIconColorHoverPrimary:i,closeIconColorPressedPrimary:i,closeColorHoverPrimary:o(i,{alpha:.12}),closeColorPressedPrimary:o(i,{alpha:.18}),borderInfo:`1px solid ${o(a,{alpha:.3})}`,textColorInfo:a,colorInfo:o(a,{alpha:.12}),colorBorderedInfo:o(a,{alpha:.1}),closeIconColorInfo:a,closeIconColorHoverInfo:a,closeIconColorPressedInfo:a,closeColorHoverInfo:o(a,{alpha:.12}),closeColorPressedInfo:o(a,{alpha:.18}),borderSuccess:`1px solid ${o(s,{alpha:.3})}`,textColorSuccess:s,colorSuccess:o(s,{alpha:.12}),colorBorderedSuccess:o(s,{alpha:.1}),closeIconColorSuccess:s,closeIconColorHoverSuccess:s,closeIconColorPressedSuccess:s,closeColorHoverSuccess:o(s,{alpha:.12}),closeColorPressedSuccess:o(s,{alpha:.18}),borderWarning:`1px solid ${o(c,{alpha:.35})}`,textColorWarning:c,colorWarning:o(c,{alpha:.15}),colorBorderedWarning:o(c,{alpha:.12}),closeIconColorWarning:c,closeIconColorHoverWarning:c,closeIconColorPressedWarning:c,closeColorHoverWarning:o(c,{alpha:.12}),closeColorPressedWarning:o(c,{alpha:.18}),borderError:`1px solid ${o(l,{alpha:.23})}`,textColorError:l,colorError:o(l,{alpha:.1}),colorBorderedError:o(l,{alpha:.08}),closeIconColorError:l,closeIconColorHoverError:l,closeIconColorPressedError:l,closeColorHoverError:o(l,{alpha:.12}),closeColorPressedError:o(l,{alpha:.18})})}var P={name:`Tag`,common:f,self:N},F={color:Object,type:{type:String,default:`default`},round:Boolean,size:String,closable:Boolean,disabled:{type:Boolean,default:void 0}},I=v(`tag`,` +import{Bt as e,H as t,K as n,Mt as r,Pt as i,U as a,X as o,Y as s,Yt as c,_n as l,at as u,bt as d,d as f,dt as p,g as m,hn as h,it as g,kt as _,nt as v,ot as y,p as b,qt as x,st as S,tt as C}from"./client-CREJv8AD.js";import{c as w,o as T,s as E}from"./_plugin-vue_export-helper-BkfvhliL.js";import{A as D,L as O,h as k}from"./index-DZpFhWFx.js";function A(e){return typeof e==`string`?e.endsWith(`px`)?Number(e.slice(0,e.length-2)):Number(e):e}function j(e){if(e!=null)return typeof e==`number`?`${e}px`:e.endsWith(`px`)?e:`${e}px`}function M(e,t){let n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw Error(`[seemly/getMargin]:`+e+` is not a valid value.`)}return t===void 0?r:r[t]}function ee(e,t){let[n,r]=e.split(` `);return t?t===`row`?n:r:{row:n,col:r||n}}function N(e){let{textColor2:t,primaryColorHover:n,primaryColorPressed:r,primaryColor:i,infoColor:a,successColor:s,warningColor:c,errorColor:l,baseColor:u,borderColor:d,opacityDisabled:f,tagColor:p,closeIconColor:m,closeIconColorHover:h,closeIconColorPressed:g,borderRadiusSmall:_,fontSizeMini:v,fontSizeTiny:y,fontSizeSmall:b,fontSizeMedium:x,heightMini:S,heightTiny:C,heightSmall:w,heightMedium:T,closeColorHover:E,closeColorPressed:O,buttonColor2Hover:k,buttonColor2Pressed:A,fontWeightStrong:j}=e;return Object.assign(Object.assign({},D),{closeBorderRadius:_,heightTiny:S,heightSmall:C,heightMedium:w,heightLarge:T,borderRadius:_,opacityDisabled:f,fontSizeTiny:v,fontSizeSmall:y,fontSizeMedium:b,fontSizeLarge:x,fontWeightStrong:j,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:u,colorCheckable:`#0000`,colorHoverCheckable:k,colorPressedCheckable:A,colorChecked:i,colorCheckedHover:n,colorCheckedPressed:r,border:`1px solid ${d}`,textColor:t,color:p,colorBordered:`rgb(250, 250, 252)`,closeIconColor:m,closeIconColorHover:h,closeIconColorPressed:g,closeColorHover:E,closeColorPressed:O,borderPrimary:`1px solid ${o(i,{alpha:.3})}`,textColorPrimary:i,colorPrimary:o(i,{alpha:.12}),colorBorderedPrimary:o(i,{alpha:.1}),closeIconColorPrimary:i,closeIconColorHoverPrimary:i,closeIconColorPressedPrimary:i,closeColorHoverPrimary:o(i,{alpha:.12}),closeColorPressedPrimary:o(i,{alpha:.18}),borderInfo:`1px solid ${o(a,{alpha:.3})}`,textColorInfo:a,colorInfo:o(a,{alpha:.12}),colorBorderedInfo:o(a,{alpha:.1}),closeIconColorInfo:a,closeIconColorHoverInfo:a,closeIconColorPressedInfo:a,closeColorHoverInfo:o(a,{alpha:.12}),closeColorPressedInfo:o(a,{alpha:.18}),borderSuccess:`1px solid ${o(s,{alpha:.3})}`,textColorSuccess:s,colorSuccess:o(s,{alpha:.12}),colorBorderedSuccess:o(s,{alpha:.1}),closeIconColorSuccess:s,closeIconColorHoverSuccess:s,closeIconColorPressedSuccess:s,closeColorHoverSuccess:o(s,{alpha:.12}),closeColorPressedSuccess:o(s,{alpha:.18}),borderWarning:`1px solid ${o(c,{alpha:.35})}`,textColorWarning:c,colorWarning:o(c,{alpha:.15}),colorBorderedWarning:o(c,{alpha:.12}),closeIconColorWarning:c,closeIconColorHoverWarning:c,closeIconColorPressedWarning:c,closeColorHoverWarning:o(c,{alpha:.12}),closeColorPressedWarning:o(c,{alpha:.18}),borderError:`1px solid ${o(l,{alpha:.23})}`,textColorError:l,colorError:o(l,{alpha:.1}),colorBorderedError:o(l,{alpha:.08}),closeIconColorError:l,closeIconColorHoverError:l,closeIconColorPressedError:l,closeColorHoverError:o(l,{alpha:.12}),closeColorPressedError:o(l,{alpha:.18})})}var P={name:`Tag`,common:f,self:N},F={color:Object,type:{type:String,default:`default`},round:Boolean,size:String,closable:Boolean,disabled:{type:Boolean,default:void 0}},I=v(`tag`,` --n-close-margin: var(--n-close-margin-top) var(--n-close-margin-right) var(--n-close-margin-bottom) var(--n-close-margin-left); white-space: nowrap; position: relative; diff --git a/frontend/dist/assets/fade-in.cssr-BsIdh_o6.js b/frontend/dist/assets/fade-in.cssr-CL3cAgSL.js similarity index 87% rename from frontend/dist/assets/fade-in.cssr-BsIdh_o6.js rename to frontend/dist/assets/fade-in.cssr-CL3cAgSL.js index 3dfa0ec..da04e1b 100644 --- a/frontend/dist/assets/fade-in.cssr-BsIdh_o6.js +++ b/frontend/dist/assets/fade-in.cssr-CL3cAgSL.js @@ -1 +1 @@ -import{h as e,tt as t}from"./client-vZFx54yb.js";var{cubicBezierEaseInOut:n}=e;function r({name:e=`fade-in`,enterDuration:r=`0.2s`,leaveDuration:i=`0.2s`,enterCubicBezier:a=n,leaveCubicBezier:o=n}={}){return[t(`&.${e}-transition-enter-active`,{transition:`all ${r} ${a}!important`}),t(`&.${e}-transition-leave-active`,{transition:`all ${i} ${o}!important`}),t(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),t(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}export{r as t}; \ No newline at end of file +import{h as e,tt as t}from"./client-CREJv8AD.js";var{cubicBezierEaseInOut:n}=e;function r({name:e=`fade-in`,enterDuration:r=`0.2s`,leaveDuration:i=`0.2s`,enterCubicBezier:a=n,leaveCubicBezier:o=n}={}){return[t(`&.${e}-transition-enter-active`,{transition:`all ${r} ${a}!important`}),t(`&.${e}-transition-leave-active`,{transition:`all ${i} ${o}!important`}),t(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),t(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}export{r as t}; \ No newline at end of file diff --git a/frontend/dist/assets/flatten-IKpQWAcc.js b/frontend/dist/assets/flatten-BBShpVqF.js similarity index 83% rename from frontend/dist/assets/flatten-IKpQWAcc.js rename to frontend/dist/assets/flatten-BBShpVqF.js index 683a788..6d9e228 100644 --- a/frontend/dist/assets/flatten-IKpQWAcc.js +++ b/frontend/dist/assets/flatten-BBShpVqF.js @@ -1 +1 @@ -import{Dt as e,ht as t,mt as n}from"./client-vZFx54yb.js";function r(i,a=!0,o=[]){return i.forEach(i=>{if(i!==null){if(typeof i!=`object`){(typeof i==`string`||typeof i==`number`)&&o.push(e(String(i)));return}if(Array.isArray(i)){r(i,a,o);return}if(i.type===t){if(i.children===null)return;Array.isArray(i.children)&&r(i.children,a,o)}else{if(i.type===n&&a)return;o.push(i)}}}),o}export{r as t}; \ No newline at end of file +import{Dt as e,ht as t,mt as n}from"./client-CREJv8AD.js";function r(i,a=!0,o=[]){return i.forEach(i=>{if(i!==null){if(typeof i!=`object`){(typeof i==`string`||typeof i==`number`)&&o.push(e(String(i)));return}if(Array.isArray(i)){r(i,a,o);return}if(i.type===t){if(i.children===null)return;Array.isArray(i.children)&&r(i.children,a,o)}else{if(i.type===n&&a)return;o.push(i)}}}),o}export{r as t}; \ No newline at end of file diff --git a/frontend/dist/assets/get-kvHFoxYO.js b/frontend/dist/assets/get-re2WVCRU.js similarity index 92% rename from frontend/dist/assets/get-kvHFoxYO.js rename to frontend/dist/assets/get-re2WVCRU.js index bd6ae95..fdc7cc8 100644 --- a/frontend/dist/assets/get-kvHFoxYO.js +++ b/frontend/dist/assets/get-re2WVCRU.js @@ -1 +1 @@ -import{L as e,x as t}from"./client-vZFx54yb.js";import{J as n,K as r}from"./index-Ci0r-yTA.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{$ as e,$t as t,An as n,At as r,B as i,Cn as a,Dn as o,Dt as s,En as c,Gt as l,H as u,Kt as d,L as f,Mn as p,Mt as m,Nn as h,Nt as g,On as _,Ot as v,Pn as y,Pt as b,Q as x,Qt as S,R as C,Rn as w,Rt as T,Sn as E,St as D,Tn as O,Tt as k,U as ee,Ut as te,W as ne,X as A,Y as re,Z as j,_ as ie,_n as ae,at as M,bn as oe,bt as N,c as se,d as P,dn as ce,dt as le,f as F,fn as ue,ft as de,g as fe,gn as pe,gt as me,h as he,hn as I,ht as ge,i as _e,in as ve,it as ye,jn as be,jt as xe,kn as Se,kt as L,ln as Ce,m as we,mn as Te,n as Ee,nn as De,nt as Oe,o as ke,on as Ae,ot as je,p as Me,pn as Ne,pt as Pe,q as Fe,qt as Ie,s as Le,sn as Re,st as R,t as ze,tn as Be,tt as z,un as Ve,vn as He,vt as Ue,wn as We,xn as Ge,yn as Ke,z as qe}from"./client-vZFx54yb.js";import{i as Je,n as Ye,r as B,t as Xe}from"./light-Xi4LoDb_.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 Ze=void 0,Qe=typeof window<`u`&&window.trustedTypes;if(Qe)try{Ze=Qe.createPolicy(`vue`,{createHTML:e=>e})}catch{}var $e=Ze?e=>Ze.createHTML(e):e=>e,et=`http://www.w3.org/2000/svg`,tt=`http://www.w3.org/1998/Math/MathML`,V=typeof document<`u`?document:null,nt=V&&V.createElement(`template`),rt={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`?V.createElementNS(et,e):t===`mathml`?V.createElementNS(tt,e):n?V.createElement(e,{is:n}):V.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>V.createTextNode(e),createComment:e=>V.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>V.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{nt.innerHTML=$e(r===`svg`?`${e}`:r===`mathml`?`${e}`:e);let i=nt.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]}},H=`transition`,it=`animation`,at=Symbol(`_vtc`),ot={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},st=E({},Pe,ot),ct=(e=>(e.displayName=`Transition`,e.props=st,e))((e,{slots:t})=>m(de,dt(e),t)),lt=(e,t=[])=>{c(e)?e.forEach(e=>e(...t)):e&&e(...t)},ut=e=>e?c(e)?e.some(e=>e.length>1):e.length>1:!1;function dt(e){let t={};for(let n in e)n in ot||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:l=o,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=ft(i),h=m&&m[0],g=m&&m[1],{onBeforeEnter:_,onEnter:v,onEnterCancelled:y,onLeave:b,onLeaveCancelled:x,onBeforeAppear:S=_,onAppear:C=v,onAppearCancelled:w=y}=t,T=(e,t,n,r)=>{e._enterCancelled=r,mt(e,t?u:s),mt(e,t?l:o),n&&n()},D=(e,t)=>{e._isLeaving=!1,mt(e,d),mt(e,p),mt(e,f),t&&t()},O=e=>(t,n)=>{let i=e?C:v,o=()=>T(t,e,n);lt(i,[t,o]),ht(()=>{mt(t,e?c:a),U(t,e?u:s),ut(i)||_t(t,r,h,o)})};return E(t,{onBeforeEnter(e){lt(_,[e]),U(e,a),U(e,o)},onBeforeAppear(e){lt(S,[e]),U(e,c),U(e,l)},onEnter:O(!1),onAppear:O(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>D(e,t);U(e,d),e._enterCancelled?(U(e,f),xt(e)):(xt(e),U(e,f)),ht(()=>{e._isLeaving&&(mt(e,d),U(e,p),ut(b)||_t(e,r,g,n))}),lt(b,[e,n])},onEnterCancelled(e){T(e,!1,void 0,!0),lt(y,[e])},onAppearCancelled(e){T(e,!0,void 0,!0),lt(w,[e])},onLeaveCancelled(e){D(e),lt(x,[e])}})}function ft(e){if(e==null)return null;if(Se(e))return[pt(e.enter),pt(e.leave)];{let t=pt(e);return[t,t]}}function pt(e){return w(e)}function U(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[at]||(e[at]=new Set)).add(t)}function mt(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[at];n&&(n.delete(t),n.size||(e[at]=void 0))}function ht(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var gt=0;function _t(e,t,n,r){let i=e._endId=++gt,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=vt(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(`${H}Delay`),a=r(`${H}Duration`),o=yt(i,a),s=r(`${it}Delay`),c=r(`${it}Duration`),l=yt(s,c),u=null,d=0,f=0;t===H?o>0&&(u=H,d=o,f=a.length):t===it?l>0&&(u=it,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?H:it:null,f=u?u===H?a.length:c.length:0);let p=u===H&&/\b(?:transform|all)(?:,|$)/.test(r(`${H}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function yt(e,t){for(;e.lengthbt(t)+bt(e[n])))}function bt(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function xt(e){return(e?e.ownerDocument:document).body.offsetHeight}function St(e,t,n){let r=e[at];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var Ct=Symbol(`_vod`),wt=Symbol(`_vsh`),Tt={name:`show`,beforeMount(e,{value:t},{transition:n}){e[Ct]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):Et(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),Et(e,!0),r.enter(e)):r.leave(e,()=>{Et(e,!1)}):Et(e,t))},beforeUnmount(e,{value:t}){Et(e,t)}};function Et(e,t){e.style.display=t?e[Ct]:`none`,e[wt]=!t}var Dt=Symbol(``),Ot=/(?:^|;)\s*display\s*:/;function kt(e,t,n){let r=e.style,i=p(n),a=!1;if(n&&!i){if(t)if(p(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??jt(r,t,``)}else for(let e in t)n[e]??jt(r,e,``);for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?jt(r,i,``):Ft(e,i,!p(t)&&t?t[i]:void 0,o)||jt(r,i,o)}}else if(i){if(t!==n){let e=r[Dt];e&&(n+=`;`+e),r.cssText=n,a=Ot.test(n)}}else t&&e.removeAttribute(`style`);Ct in e&&(e[Ct]=a?r.display:``,e[wt]&&(r.display=`none`))}var At=/\s*!important$/;function jt(e,t,n){if(c(n))n.forEach(n=>jt(e,t,n));else if(n??=``,t.startsWith(`--`))e.setProperty(t,n);else{let r=Pt(e,t);At.test(n)?e.setProperty(a(r),n.replace(At,``),`important`):e[r]=n}}var Mt=[`Webkit`,`Moz`,`ms`],Nt={};function Pt(e,t){let n=Nt[t];if(n)return n;let r=oe(t);if(r!==`filter`&&r in e)return Nt[t]=r;r=Ge(r);for(let n=0;nKt||=(qt.then(()=>Kt=0),Date.now());function Yt(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(c(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,Zt=(e,t,r,i,a,o)=>{let s=a===`svg`;t===`class`?St(e,i,s):t===`style`?kt(e,r,i):n(t)?_(t)||Ht(e,t,r,i,o):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):Qt(e,t,i,s))?(Rt(e,t,i),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&Lt(e,t,i,s,o,t!==`value`)):e._isVueCE&&($t(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!p(i)))?Rt(e,oe(t),i,o,t):(t===`true-value`?e._trueValue=i:t===`false-value`&&(e._falseValue=i),Lt(e,t,i,s))};function Qt(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&Xt(t)&&o(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 Xt(t)&&p(n)?!1:t in e}function $t(e,t){let n=e._def.props;if(!n)return!1;let r=oe(t);return Array.isArray(n)?n.some(e=>oe(e)===r):Object.keys(n).some(e=>oe(e)===r)}var en=new WeakMap,tn=new WeakMap,nn=Symbol(`_moveCb`),rn=Symbol(`_enterCb`),an=(e=>(delete e.props.mode,e))({name:`TransitionGroup`,props:E({},st,{tag:String,moveClass:String}),setup(e,{slots:n}){let i=r(),a=Be(),o,s;return l(()=>{if(!o.length)return;let t=e.moveClass||`${e.name||`v`}-move`;if(!un(o[0].el,i.vnode.el,t)){o=[];return}o.forEach(on),o.forEach(sn);let n=o.filter(cn);xt(i.vnode.el),n.forEach(e=>{let n=e.el,r=n.style;U(n,t),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[nn]=e=>{e&&e.target!==n||(!e||e.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[nn]=null,mt(n,t))};n.addEventListener(`transitionend`,i)}),o=[]}),()=>{let r=pe(e),c=dt(r),l=r.tag||ge;if(o=[],s)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}=vt(r);return a.removeChild(r),o}var dn=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return c(t)?e=>O(t,e):t};function fn(e){e.target.composing=!0}function pn(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var mn=Symbol(`_assign`);function hn(e,t,n){return t&&(e=e.trim()),n&&(e=y(e)),e}var gn={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[mn]=dn(i);let a=r||i.props&&i.props.type===`number`;zt(e,t?`change`:`input`,t=>{t.target.composing||e[mn](hn(e.value,n,a))}),(n||a)&&zt(e,`change`,()=>{e.value=hn(e.value,n,a)}),t||(zt(e,`compositionstart`,fn),zt(e,`compositionend`,pn),zt(e,`change`,pn))},mounted(e,{value:t}){e.value=t??``},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[mn]=dn(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?y(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)}},_n=[`ctrl`,`shift`,`alt`,`meta`],vn={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)=>_n.some(n=>e[`${n}Key`]&&!t.includes(n))},yn=(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=a(n.key);if(t.some(e=>e===r||bn[e]===r))return e(n)}))},Sn=E({patchProp:Zt},rt),Cn;function wn(){return Cn||=k(Sn)}var Tn=((...e)=>{let t=wn().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=Dn(e);if(!r)return;let i=t._component;!o(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,En(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function En(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function Dn(e){return p(e)?document.querySelector(e):e}var On=typeof window<`u`,kn,An=e=>kn=e,jn=Symbol();function Mn(e){return e&&typeof e==`object`&&Object.prototype.toString.call(e)===`[object Object]`&&typeof e.toJSON!=`function`}var Nn;(function(e){e.direct=`direct`,e.patchObject=`patch object`,e.patchFunction=`patch function`})(Nn||={});var Pn=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 Fn(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 In(e,t,n){let r=new XMLHttpRequest;r.open(`GET`,e),r.responseType=`blob`,r.onload=function(){Vn(r.response,t,n)},r.onerror=function(){console.error(`could not download file`)},r.send()}function Ln(e){let t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Rn(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 zn=typeof navigator==`object`?navigator:{userAgent:``},Bn=/Macintosh/.test(zn.userAgent)&&/AppleWebKit/.test(zn.userAgent)&&!/Safari/.test(zn.userAgent),Vn=On?typeof HTMLAnchorElement<`u`&&`download`in HTMLAnchorElement.prototype&&!Bn?Hn:`msSaveOrOpenBlob`in zn?Un:Wn:()=>{};function Hn(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?Rn(r):Ln(r.href)?In(e,t,n):(r.target=`_blank`,Rn(r))):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){Rn(r)},0))}function Un(e,t=`download`,n){if(typeof e==`string`)if(Ln(e))In(e,t,n);else{let t=document.createElement(`a`);t.href=e,t.target=`_blank`,setTimeout(function(){Rn(t)})}else navigator.msSaveOrOpenBlob(Fn(e,n),t)}function Wn(e,t,n,r){if(r||=open(``,`_blank`),r&&(r.document.title=r.document.body.innerText=`downloading...`),typeof e==`string`)return In(e,t,n);let i=e.type===`application/octet-stream`,a=/constructor/i.test(String(Pn.HTMLElement))||`safari`in Pn,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a||Bn)&&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:Gn}=Object;function Kn(){let e=Ae(!0),t=e.run(()=>I({})),n=[],r=[],i=ce({install(e){An(i),i._a=e,e.provide(jn,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 qn=()=>{};function Jn(e,t,n,r=qn){e.add(t);let i=()=>{e.delete(t)&&r()};return!n&&Re()&&ue(i),i}function Yn(e,...t){e.forEach(e=>{e(...t)})}var Xn=e=>e(),Zn=Symbol(),Qn=Symbol();function $n(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];Mn(i)&&Mn(r)&&e.hasOwnProperty(n)&&!Ve(r)&&!Ce(r)?e[n]=$n(i,r):e[n]=r}return e}var er=Symbol();function tr(e){return!Mn(e)||!Object.prototype.hasOwnProperty.call(e,er)}var{assign:W}=Object;function nr(e){return!!(Ve(e)&&e.effect)}function rr(e,t,n,r){let{state:i,actions:a,getters:o}=t,s=n.state.value[e],c;function l(){return s||(n.state.value[e]=i?i():{}),W(He(n.state.value[e]),a,Object.keys(o||{}).reduce((t,r)=>(t[r]=ce(N(()=>{An(n);let t=n._s.get(e);return o[r].call(t,t)})),t),{}))}return c=ir(e,l,t,n,r,!0),c}function ir(e,t,n={},r,i,a){let o,s=W({actions:{}},n),c={deep:!0},l,u,d=new Set,f=new Set,p=r.state.value[e];!a&&!p&&(r.state.value[e]={}),I({});let m;function h(t){let n;l=u=!1,typeof t==`function`?(t(r.state.value[e]),n={type:Nn.patchFunction,storeId:e,events:void 0}):($n(r.state.value[e],t),n={type:Nn.patchObject,payload:t,storeId:e,events:void 0});let i=m=Symbol();T().then(()=>{m===i&&(l=!0)}),u=!0,Yn(d,n,r.state.value[e])}let g=a?function(){let{state:e}=n,t=e?e():{};this.$patch(e=>{W(e,t)})}:qn;function _(){o.stop(),d.clear(),f.clear(),r._s.delete(e)}let v=(t,n=``)=>{if(Zn in t)return t[Qn]=n,t;let i=function(){An(r);let n=Array.from(arguments),a=new Set,o=new Set;function s(e){a.add(e)}function c(e){o.add(e)}Yn(f,{args:n,name:i[Qn],store:y,after:s,onError:c});let l;try{l=t.apply(this&&this.$id===e?this:y,n)}catch(e){throw Yn(o,e),e}return l instanceof Promise?l.then(e=>(Yn(a,e),e)).catch(e=>(Yn(o,e),Promise.reject(e))):(Yn(a,l),l)};return i[Zn]=!0,i[Qn]=n,i},y=Ne({_p:r,$id:e,$onAction:Jn.bind(null,f),$patch:h,$reset:g,$subscribe(t,n={}){let i=Jn(d,t,n.detached,()=>a()),a=o.run(()=>De(()=>r.state.value[e],r=>{(n.flush===`sync`?u:l)&&t({storeId:e,type:Nn.direct,events:void 0},r)},W({},c,n)));return i},$dispose:_});r._s.set(e,y);let b=(r._a&&r._a.runWithContext||Xn)(()=>r._e.run(()=>(o=Ae()).run(()=>t({action:v}))));for(let t in b){let n=b[t];Ve(n)&&!nr(n)||Ce(n)?a||(p&&tr(n)&&(Ve(n)?n.value=p[t]:$n(n,p[t])),r.state.value[e][t]=n):typeof n==`function`&&(b[t]=v(n,t),s.actions[t]=n)}return W(y,b),W(pe(y),b),Object.defineProperty(y,"$state",{get:()=>r.state.value[e],set:e=>{h(t=>{W(t,e)})}}),r._p.forEach(e=>{W(y,o.run(()=>e({store:y,app:r._a,pinia:r,options:s})))}),p&&a&&n.hydrate&&n.hydrate(y.$state,p),l=!0,u=!0,y}function ar(e,t,n){let r,i=typeof t==`function`;r=i?n:t;function a(n,a){let o=g();return n||=o?b(jn,null):null,n&&An(n),n=kn,n._s.has(e)||(i?ir(e,t,r,n):rr(e,r,n)),n._s.get(e)}return a.$id=e,a}function or(e){let t=pe(e),n={};for(let r in t){let i=t[r];i.effect?n[r]=N({get:()=>e[r],set(t){e[r]=t}}):(Ve(i)||Ce(i))&&(n[r]=ae(e,r))}return n}function sr(e=8){return Math.random().toString(16).slice(2,2+e)}function cr(e){let t=N(e),n=I(t.value);return De(t,e=>{n.value=e}),typeof e==`function`?n:{__v_isRef:!0,get value(){return n.value},set value(t){e.set(t)}}}function lr(){let e=I(!1);return te(()=>{e.value=!0}),Te(e)}function ur(e,t=[],n){let r={};return Object.getOwnPropertyNames(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),Object.assign(r,n)}function dr(e,...t){return typeof e==`function`?e(...t):typeof e==`string`?s(e):typeof e==`number`?s(String(e)):null}var fr=`[object Symbol]`;function pr(e){return typeof e==`symbol`||C(e)&&qe(e)==fr}function mr(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:br(e,t,n)}var Sr=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]`);function Cr(e){return Sr.test(e)}function wr(e){return e.split(``)}var Tr=`\\ud800-\\udfff`,Er=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,Dr=`\\ufe0e\\ufe0f`,Or=`[`+Tr+`]`,kr=`[`+Er+`]`,Ar=`\\ud83c[\\udffb-\\udfff]`,jr=`(?:`+kr+`|`+Ar+`)`,Mr=`[^`+Tr+`]`,Nr=`(?:\\ud83c[\\udde6-\\uddff]){2}`,Pr=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Fr=`\\u200d`,Ir=jr+`?`,Lr=`[`+Dr+`]?`,Rr=`(?:`+Fr+`(?:`+[Mr,Nr,Pr].join(`|`)+`)`+Lr+Ir+`)*`,zr=Lr+Ir+Rr,Br=`(?:`+[Mr+kr+`?`,kr,Nr,Pr,Or].join(`|`)+`)`,Vr=RegExp(Ar+`(?=`+Ar+`)|`+Br+zr,`g`);function Hr(e){return e.match(Vr)||[]}function Ur(e){return Cr(e)?Hr(e):wr(e)}function Wr(e){return function(t){t=yr(t);var n=Cr(t)?Ur(t):void 0,r=n?n[0]:t.charAt(0),i=n?xr(n,1).join(``):t.slice(1);return r[e]()+i}}var Gr=Wr(`toUpperCase`),Kr=Oe(`base-icon`,` +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/ParticipationView-B0CQImSi.js","assets/client-CREJv8AD.js","assets/Card-CJC2gN5t.js","assets/es-CevmKZP_.js","assets/_plugin-vue_export-helper-BkfvhliL.js","assets/fade-in.cssr-CL3cAgSL.js","assets/light-B8TOsMif.js","assets/Button-MvNgQLzL.js","assets/use-form-item-CbDeFP5E.js","assets/Space-ChWks6od.js","assets/flatten-BBShpVqF.js","assets/get-slot-6kXJmSMP.js","assets/HeaderMenu-BarRlY0P.js","assets/HeaderMenu-DC2pqpCt.css","assets/datetime-BJNH0M1T.js","assets/TicketView-DQFkb9_N.js","assets/QrCode-CgX_T1UU.js","assets/MessagePaper-C1j55G49.js","assets/MessagePaper-LComeSyV.css","assets/TicketView-CnMhzuVy.css","assets/HomeView-C-IPdwNi.js","assets/HomeView-DGARWv81.css","assets/LoginView-WiQEiLme.js","assets/Follower-DAIDHT2D.js","assets/Suffix-iFHNypz-.js","assets/utils-BJnNAJm2.js","assets/use-merged-state-B6hyXujy.js","assets/Tabs-BCjotlcB.js","assets/use-compitable-Be-NyPXq.js","assets/Add-Cwgq0nEf.js","assets/Input-B41xxqED.js","assets/LoginView-DKQmdgOL.css","assets/OfficeView-CtpHPH8n.js","assets/Modal-BNDyI0AJ.js","assets/keep-Du8BxhQs.js","assets/Alert-CvCnaLc2.js","assets/OfficeView-DabVS74N.css","assets/UserAgreementView-DgxzZnDR.js","assets/DocsPage-Bi3DTzmc.js","assets/Spin-fslC_m7x.js","assets/HeaderText-B83p3PsD.js","assets/HeaderText-DghUu1Eo.css","assets/DocsPage-DGRLd6MK.css","assets/PrivacyPolicyView-D-D-Zo2F.js","assets/ConsentView-BxOLnfG5.js","assets/GamesView-vdPy4Ojw.js","assets/DatePicker-CISUUqG0.js","assets/Select-CvgyidIa.js","assets/Popover-C32Z2jyV.js","assets/get-re2WVCRU.js","assets/Flex-B0ZjnZ3e.js","assets/GamesView-B2o5LJbs.css","assets/ScreenView-DCEFicdZ.js","assets/application-6wLYVOst.js","assets/useSimplePolling-C5AtW5j-.js","assets/ScreenView-atTOc7C9.css","assets/GameResultsView-BO5qR0pX.js","assets/GameResultsView-CFRKPJXC.css","assets/GameView-yKXpSb6C.js","assets/Upload-CKwlW1lG.js","assets/Switch-Dp58TJPL.js","assets/Rate-BybamiWd.js","assets/binary_client-C9h3ErPB.js","assets/GameView-iXmnCzpU.css","assets/TeamStoryView-Dh33lDbt.js","assets/PlaceBlock-CxzGePrT.js","assets/PlaceBlock-DJ2ZROXg.css","assets/TeamStoryView-DEj7NOiS.css","assets/ScenariosView-jOOTATsM.js","assets/ScenariosView-CPnxFjF8.css","assets/CatalogView-DaT0U2l-.js","assets/CatalogView-ZB3NVwd8.css","assets/ScenariosEditorView-Ckw1jh0g.js","assets/ScenariosEditorView-BwbT183t.css","assets/ScenarioView-BhGQzLNp.js","assets/ScenarioView-stexBLSZ.css","assets/TasksView-MKm56lSe.js","assets/FormItem-DVxlQf-S.js","assets/TasksView-BN0skjQJ.css","assets/UsersView-DI_JrWt-.js","assets/UsersView-BRqNFbMB.css","assets/ReviewsView-H3v1Qjq_.js","assets/ReviewsView-cXuEHQyX.css"])))=>i.map(i=>d[i]); +import{$ as e,$t as t,An as n,At as r,B as i,Cn as a,Dn as o,Dt as s,En as c,Gt as l,H as u,Kt as d,L as f,Mn as p,Mt as m,Nn as h,Nt as g,On as _,Ot as v,Pn as y,Pt as b,Q as x,Qt as S,R as C,Rn as w,Rt as T,Sn as E,St as D,Tn as O,Tt as k,U as ee,Ut as te,W as ne,X as A,Y as re,Z as j,_ as ie,_n as ae,at as M,bn as oe,bt as N,c as se,d as P,dn as ce,dt as le,f as F,fn as ue,ft as de,g as fe,gn as pe,gt as me,h as he,hn as I,ht as ge,i as _e,in as ve,it as ye,jn as be,jt as xe,kn as Se,kt as L,ln as Ce,m as we,mn as Te,n as Ee,nn as De,nt as Oe,o as ke,on as Ae,ot as je,p as Me,pn as Ne,pt as Pe,q as Fe,qt as Ie,s as Le,sn as Re,st as R,t as ze,tn as Be,tt as z,un as Ve,vn as He,vt as Ue,wn as We,xn as Ge,yn as Ke,z as qe}from"./client-CREJv8AD.js";import{i as Je,n as Ye,r as B,t as Xe}from"./light-B8TOsMif.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 Ze=void 0,Qe=typeof window<`u`&&window.trustedTypes;if(Qe)try{Ze=Qe.createPolicy(`vue`,{createHTML:e=>e})}catch{}var $e=Ze?e=>Ze.createHTML(e):e=>e,et=`http://www.w3.org/2000/svg`,tt=`http://www.w3.org/1998/Math/MathML`,V=typeof document<`u`?document:null,nt=V&&V.createElement(`template`),rt={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`?V.createElementNS(et,e):t===`mathml`?V.createElementNS(tt,e):n?V.createElement(e,{is:n}):V.createElement(e);return e===`select`&&r&&r.multiple!=null&&i.setAttribute(`multiple`,r.multiple),i},createText:e=>V.createTextNode(e),createComment:e=>V.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>V.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{nt.innerHTML=$e(r===`svg`?`${e}`:r===`mathml`?`${e}`:e);let i=nt.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]}},H=`transition`,it=`animation`,at=Symbol(`_vtc`),ot={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},st=E({},Pe,ot),ct=(e=>(e.displayName=`Transition`,e.props=st,e))((e,{slots:t})=>m(de,dt(e),t)),lt=(e,t=[])=>{c(e)?e.forEach(e=>e(...t)):e&&e(...t)},ut=e=>e?c(e)?e.some(e=>e.length>1):e.length>1:!1;function dt(e){let t={};for(let n in e)n in ot||(t[n]=e[n]);if(e.css===!1)return t;let{name:n=`v`,type:r,duration:i,enterFromClass:a=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:l=o,appearToClass:u=s,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=ft(i),h=m&&m[0],g=m&&m[1],{onBeforeEnter:_,onEnter:v,onEnterCancelled:y,onLeave:b,onLeaveCancelled:x,onBeforeAppear:S=_,onAppear:C=v,onAppearCancelled:w=y}=t,T=(e,t,n,r)=>{e._enterCancelled=r,mt(e,t?u:s),mt(e,t?l:o),n&&n()},D=(e,t)=>{e._isLeaving=!1,mt(e,d),mt(e,p),mt(e,f),t&&t()},O=e=>(t,n)=>{let i=e?C:v,o=()=>T(t,e,n);lt(i,[t,o]),ht(()=>{mt(t,e?c:a),U(t,e?u:s),ut(i)||_t(t,r,h,o)})};return E(t,{onBeforeEnter(e){lt(_,[e]),U(e,a),U(e,o)},onBeforeAppear(e){lt(S,[e]),U(e,c),U(e,l)},onEnter:O(!1),onAppear:O(!0),onLeave(e,t){e._isLeaving=!0;let n=()=>D(e,t);U(e,d),e._enterCancelled?(U(e,f),xt(e)):(xt(e),U(e,f)),ht(()=>{e._isLeaving&&(mt(e,d),U(e,p),ut(b)||_t(e,r,g,n))}),lt(b,[e,n])},onEnterCancelled(e){T(e,!1,void 0,!0),lt(y,[e])},onAppearCancelled(e){T(e,!0,void 0,!0),lt(w,[e])},onLeaveCancelled(e){D(e),lt(x,[e])}})}function ft(e){if(e==null)return null;if(Se(e))return[pt(e.enter),pt(e.leave)];{let t=pt(e);return[t,t]}}function pt(e){return w(e)}function U(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.add(t)),(e[at]||(e[at]=new Set)).add(t)}function mt(e,t){t.split(/\s+/).forEach(t=>t&&e.classList.remove(t));let n=e[at];n&&(n.delete(t),n.size||(e[at]=void 0))}function ht(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}var gt=0;function _t(e,t,n,r){let i=e._endId=++gt,a=()=>{i===e._endId&&r()};if(n!=null)return setTimeout(a,n);let{type:o,timeout:s,propCount:c}=vt(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(`${H}Delay`),a=r(`${H}Duration`),o=yt(i,a),s=r(`${it}Delay`),c=r(`${it}Duration`),l=yt(s,c),u=null,d=0,f=0;t===H?o>0&&(u=H,d=o,f=a.length):t===it?l>0&&(u=it,d=l,f=c.length):(d=Math.max(o,l),u=d>0?o>l?H:it:null,f=u?u===H?a.length:c.length:0);let p=u===H&&/\b(?:transform|all)(?:,|$)/.test(r(`${H}Property`).toString());return{type:u,timeout:d,propCount:f,hasTransform:p}}function yt(e,t){for(;e.lengthbt(t)+bt(e[n])))}function bt(e){return e===`auto`?0:Number(e.slice(0,-1).replace(`,`,`.`))*1e3}function xt(e){return(e?e.ownerDocument:document).body.offsetHeight}function St(e,t,n){let r=e[at];r&&(t=(t?[t,...r]:[...r]).join(` `)),t==null?e.removeAttribute(`class`):n?e.setAttribute(`class`,t):e.className=t}var Ct=Symbol(`_vod`),wt=Symbol(`_vsh`),Tt={name:`show`,beforeMount(e,{value:t},{transition:n}){e[Ct]=e.style.display===`none`?``:e.style.display,n&&t?n.beforeEnter(e):Et(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),Et(e,!0),r.enter(e)):r.leave(e,()=>{Et(e,!1)}):Et(e,t))},beforeUnmount(e,{value:t}){Et(e,t)}};function Et(e,t){e.style.display=t?e[Ct]:`none`,e[wt]=!t}var Dt=Symbol(``),Ot=/(?:^|;)\s*display\s*:/;function kt(e,t,n){let r=e.style,i=p(n),a=!1;if(n&&!i){if(t)if(p(t))for(let e of t.split(`;`)){let t=e.slice(0,e.indexOf(`:`)).trim();n[t]??jt(r,t,``)}else for(let e in t)n[e]??jt(r,e,``);for(let i in n){i===`display`&&(a=!0);let o=n[i];o==null?jt(r,i,``):Ft(e,i,!p(t)&&t?t[i]:void 0,o)||jt(r,i,o)}}else if(i){if(t!==n){let e=r[Dt];e&&(n+=`;`+e),r.cssText=n,a=Ot.test(n)}}else t&&e.removeAttribute(`style`);Ct in e&&(e[Ct]=a?r.display:``,e[wt]&&(r.display=`none`))}var At=/\s*!important$/;function jt(e,t,n){if(c(n))n.forEach(n=>jt(e,t,n));else if(n??=``,t.startsWith(`--`))e.setProperty(t,n);else{let r=Pt(e,t);At.test(n)?e.setProperty(a(r),n.replace(At,``),`important`):e[r]=n}}var Mt=[`Webkit`,`Moz`,`ms`],Nt={};function Pt(e,t){let n=Nt[t];if(n)return n;let r=oe(t);if(r!==`filter`&&r in e)return Nt[t]=r;r=Ge(r);for(let n=0;nKt||=(qt.then(()=>Kt=0),Date.now());function Yt(e,t){let n=e=>{if(!e._vts)e._vts=Date.now();else if(e._vts<=n.attached)return;let r=n.value;if(c(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,Zt=(e,t,r,i,a,o)=>{let s=a===`svg`;t===`class`?St(e,i,s):t===`style`?kt(e,r,i):n(t)?_(t)||Ht(e,t,r,i,o):(t[0]===`.`?(t=t.slice(1),!0):t[0]===`^`?(t=t.slice(1),!1):Qt(e,t,i,s))?(Rt(e,t,i),!e.tagName.includes(`-`)&&(t===`value`||t===`checked`||t===`selected`)&&Lt(e,t,i,s,o,t!==`value`)):e._isVueCE&&($t(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!p(i)))?Rt(e,oe(t),i,o,t):(t===`true-value`?e._trueValue=i:t===`false-value`&&(e._falseValue=i),Lt(e,t,i,s))};function Qt(e,t,n,r){if(r)return!!(t===`innerHTML`||t===`textContent`||t in e&&Xt(t)&&o(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 Xt(t)&&p(n)?!1:t in e}function $t(e,t){let n=e._def.props;if(!n)return!1;let r=oe(t);return Array.isArray(n)?n.some(e=>oe(e)===r):Object.keys(n).some(e=>oe(e)===r)}var en=new WeakMap,tn=new WeakMap,nn=Symbol(`_moveCb`),rn=Symbol(`_enterCb`),an=(e=>(delete e.props.mode,e))({name:`TransitionGroup`,props:E({},st,{tag:String,moveClass:String}),setup(e,{slots:n}){let i=r(),a=Be(),o,s;return l(()=>{if(!o.length)return;let t=e.moveClass||`${e.name||`v`}-move`;if(!un(o[0].el,i.vnode.el,t)){o=[];return}o.forEach(on),o.forEach(sn);let n=o.filter(cn);xt(i.vnode.el),n.forEach(e=>{let n=e.el,r=n.style;U(n,t),r.transform=r.webkitTransform=r.transitionDuration=``;let i=n[nn]=e=>{e&&e.target!==n||(!e||e.propertyName.endsWith(`transform`))&&(n.removeEventListener(`transitionend`,i),n[nn]=null,mt(n,t))};n.addEventListener(`transitionend`,i)}),o=[]}),()=>{let r=pe(e),c=dt(r),l=r.tag||ge;if(o=[],s)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}=vt(r);return a.removeChild(r),o}var dn=e=>{let t=e.props[`onUpdate:modelValue`]||!1;return c(t)?e=>O(t,e):t};function fn(e){e.target.composing=!0}function pn(e){let t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event(`input`)))}var mn=Symbol(`_assign`);function hn(e,t,n){return t&&(e=e.trim()),n&&(e=y(e)),e}var gn={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e[mn]=dn(i);let a=r||i.props&&i.props.type===`number`;zt(e,t?`change`:`input`,t=>{t.target.composing||e[mn](hn(e.value,n,a))}),(n||a)&&zt(e,`change`,()=>{e.value=hn(e.value,n,a)}),t||(zt(e,`compositionstart`,fn),zt(e,`compositionend`,pn),zt(e,`change`,pn))},mounted(e,{value:t}){e.value=t??``},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:i,number:a}},o){if(e[mn]=dn(o),e.composing)return;let s=(a||e.type===`number`)&&!/^0\d/.test(e.value)?y(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)}},_n=[`ctrl`,`shift`,`alt`,`meta`],vn={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)=>_n.some(n=>e[`${n}Key`]&&!t.includes(n))},yn=(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=a(n.key);if(t.some(e=>e===r||bn[e]===r))return e(n)}))},Sn=E({patchProp:Zt},rt),Cn;function wn(){return Cn||=k(Sn)}var Tn=((...e)=>{let t=wn().createApp(...e),{mount:n}=t;return t.mount=e=>{let r=Dn(e);if(!r)return;let i=t._component;!o(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent=``);let a=n(r,!1,En(r));return r instanceof Element&&(r.removeAttribute(`v-cloak`),r.setAttribute(`data-v-app`,``)),a},t});function En(e){if(e instanceof SVGElement)return`svg`;if(typeof MathMLElement==`function`&&e instanceof MathMLElement)return`mathml`}function Dn(e){return p(e)?document.querySelector(e):e}var On=typeof window<`u`,kn,An=e=>kn=e,jn=Symbol();function Mn(e){return e&&typeof e==`object`&&Object.prototype.toString.call(e)===`[object Object]`&&typeof e.toJSON!=`function`}var Nn;(function(e){e.direct=`direct`,e.patchObject=`patch object`,e.patchFunction=`patch function`})(Nn||={});var Pn=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 Fn(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 In(e,t,n){let r=new XMLHttpRequest;r.open(`GET`,e),r.responseType=`blob`,r.onload=function(){Vn(r.response,t,n)},r.onerror=function(){console.error(`could not download file`)},r.send()}function Ln(e){let t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function Rn(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 zn=typeof navigator==`object`?navigator:{userAgent:``},Bn=/Macintosh/.test(zn.userAgent)&&/AppleWebKit/.test(zn.userAgent)&&!/Safari/.test(zn.userAgent),Vn=On?typeof HTMLAnchorElement<`u`&&`download`in HTMLAnchorElement.prototype&&!Bn?Hn:`msSaveOrOpenBlob`in zn?Un:Wn:()=>{};function Hn(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?Rn(r):Ln(r.href)?In(e,t,n):(r.target=`_blank`,Rn(r))):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){Rn(r)},0))}function Un(e,t=`download`,n){if(typeof e==`string`)if(Ln(e))In(e,t,n);else{let t=document.createElement(`a`);t.href=e,t.target=`_blank`,setTimeout(function(){Rn(t)})}else navigator.msSaveOrOpenBlob(Fn(e,n),t)}function Wn(e,t,n,r){if(r||=open(``,`_blank`),r&&(r.document.title=r.document.body.innerText=`downloading...`),typeof e==`string`)return In(e,t,n);let i=e.type===`application/octet-stream`,a=/constructor/i.test(String(Pn.HTMLElement))||`safari`in Pn,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a||Bn)&&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:Gn}=Object;function Kn(){let e=Ae(!0),t=e.run(()=>I({})),n=[],r=[],i=ce({install(e){An(i),i._a=e,e.provide(jn,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 qn=()=>{};function Jn(e,t,n,r=qn){e.add(t);let i=()=>{e.delete(t)&&r()};return!n&&Re()&&ue(i),i}function Yn(e,...t){e.forEach(e=>{e(...t)})}var Xn=e=>e(),Zn=Symbol(),Qn=Symbol();function $n(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];Mn(i)&&Mn(r)&&e.hasOwnProperty(n)&&!Ve(r)&&!Ce(r)?e[n]=$n(i,r):e[n]=r}return e}var er=Symbol();function tr(e){return!Mn(e)||!Object.prototype.hasOwnProperty.call(e,er)}var{assign:W}=Object;function nr(e){return!!(Ve(e)&&e.effect)}function rr(e,t,n,r){let{state:i,actions:a,getters:o}=t,s=n.state.value[e],c;function l(){return s||(n.state.value[e]=i?i():{}),W(He(n.state.value[e]),a,Object.keys(o||{}).reduce((t,r)=>(t[r]=ce(N(()=>{An(n);let t=n._s.get(e);return o[r].call(t,t)})),t),{}))}return c=ir(e,l,t,n,r,!0),c}function ir(e,t,n={},r,i,a){let o,s=W({actions:{}},n),c={deep:!0},l,u,d=new Set,f=new Set,p=r.state.value[e];!a&&!p&&(r.state.value[e]={}),I({});let m;function h(t){let n;l=u=!1,typeof t==`function`?(t(r.state.value[e]),n={type:Nn.patchFunction,storeId:e,events:void 0}):($n(r.state.value[e],t),n={type:Nn.patchObject,payload:t,storeId:e,events:void 0});let i=m=Symbol();T().then(()=>{m===i&&(l=!0)}),u=!0,Yn(d,n,r.state.value[e])}let g=a?function(){let{state:e}=n,t=e?e():{};this.$patch(e=>{W(e,t)})}:qn;function _(){o.stop(),d.clear(),f.clear(),r._s.delete(e)}let v=(t,n=``)=>{if(Zn in t)return t[Qn]=n,t;let i=function(){An(r);let n=Array.from(arguments),a=new Set,o=new Set;function s(e){a.add(e)}function c(e){o.add(e)}Yn(f,{args:n,name:i[Qn],store:y,after:s,onError:c});let l;try{l=t.apply(this&&this.$id===e?this:y,n)}catch(e){throw Yn(o,e),e}return l instanceof Promise?l.then(e=>(Yn(a,e),e)).catch(e=>(Yn(o,e),Promise.reject(e))):(Yn(a,l),l)};return i[Zn]=!0,i[Qn]=n,i},y=Ne({_p:r,$id:e,$onAction:Jn.bind(null,f),$patch:h,$reset:g,$subscribe(t,n={}){let i=Jn(d,t,n.detached,()=>a()),a=o.run(()=>De(()=>r.state.value[e],r=>{(n.flush===`sync`?u:l)&&t({storeId:e,type:Nn.direct,events:void 0},r)},W({},c,n)));return i},$dispose:_});r._s.set(e,y);let b=(r._a&&r._a.runWithContext||Xn)(()=>r._e.run(()=>(o=Ae()).run(()=>t({action:v}))));for(let t in b){let n=b[t];Ve(n)&&!nr(n)||Ce(n)?a||(p&&tr(n)&&(Ve(n)?n.value=p[t]:$n(n,p[t])),r.state.value[e][t]=n):typeof n==`function`&&(b[t]=v(n,t),s.actions[t]=n)}return W(y,b),W(pe(y),b),Object.defineProperty(y,"$state",{get:()=>r.state.value[e],set:e=>{h(t=>{W(t,e)})}}),r._p.forEach(e=>{W(y,o.run(()=>e({store:y,app:r._a,pinia:r,options:s})))}),p&&a&&n.hydrate&&n.hydrate(y.$state,p),l=!0,u=!0,y}function ar(e,t,n){let r,i=typeof t==`function`;r=i?n:t;function a(n,a){let o=g();return n||=o?b(jn,null):null,n&&An(n),n=kn,n._s.has(e)||(i?ir(e,t,r,n):rr(e,r,n)),n._s.get(e)}return a.$id=e,a}function or(e){let t=pe(e),n={};for(let r in t){let i=t[r];i.effect?n[r]=N({get:()=>e[r],set(t){e[r]=t}}):(Ve(i)||Ce(i))&&(n[r]=ae(e,r))}return n}function sr(e=8){return Math.random().toString(16).slice(2,2+e)}function cr(e){let t=N(e),n=I(t.value);return De(t,e=>{n.value=e}),typeof e==`function`?n:{__v_isRef:!0,get value(){return n.value},set value(t){e.set(t)}}}function lr(){let e=I(!1);return te(()=>{e.value=!0}),Te(e)}function ur(e,t=[],n){let r={};return Object.getOwnPropertyNames(e).forEach(n=>{t.includes(n)||(r[n]=e[n])}),Object.assign(r,n)}function dr(e,...t){return typeof e==`function`?e(...t):typeof e==`string`?s(e):typeof e==`number`?s(String(e)):null}var fr=`[object Symbol]`;function pr(e){return typeof e==`symbol`||C(e)&&qe(e)==fr}function mr(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:br(e,t,n)}var Sr=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]`);function Cr(e){return Sr.test(e)}function wr(e){return e.split(``)}var Tr=`\\ud800-\\udfff`,Er=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,Dr=`\\ufe0e\\ufe0f`,Or=`[`+Tr+`]`,kr=`[`+Er+`]`,Ar=`\\ud83c[\\udffb-\\udfff]`,jr=`(?:`+kr+`|`+Ar+`)`,Mr=`[^`+Tr+`]`,Nr=`(?:\\ud83c[\\udde6-\\uddff]){2}`,Pr=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Fr=`\\u200d`,Ir=jr+`?`,Lr=`[`+Dr+`]?`,Rr=`(?:`+Fr+`(?:`+[Mr,Nr,Pr].join(`|`)+`)`+Lr+Ir+`)*`,zr=Lr+Ir+Rr,Br=`(?:`+[Mr+kr+`?`,kr,Nr,Pr,Or].join(`|`)+`)`,Vr=RegExp(Ar+`(?=`+Ar+`)|`+Br+zr,`g`);function Hr(e){return e.match(Vr)||[]}function Ur(e){return Cr(e)?Hr(e):wr(e)}function Wr(e){return function(t){t=yr(t);var n=Cr(t)?Ur(t):void 0,r=n?n[0]:t.charAt(0),i=n?xr(n,1).join(``):t.slice(1);return r[e]()+i}}var Gr=Wr(`toUpperCase`),Kr=Oe(`base-icon`,` height: 1em; width: 1em; line-height: 1em; @@ -197,4 +197,4 @@ import{$ as e,$t as t,An as n,At as r,B as i,Cn as a,Dn as o,Dt as s,En as c,Gt right: 12px; justify-content: flex-end; align-items: flex-end; - `)])]),ko={info:()=>m(Qr,null),success:()=>m($r,null),warning:()=>m(ei,null),error:()=>m(Zr,null),default:()=>null},Ao=L({name:`Message`,props:Object.assign(Object.assign({},Do),{render:Function}),setup(e){let{inlineThemeDisabled:t,mergedRtlRef:n}=ee(e),{props:r,mergedClsPrefixRef:i}=b(So),a=fe(`Message`,n,i),o=Me(`Message`,`-message`,Oo,To,r,i),s=N(()=>{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,[R(`textColor`,t)]:S,[R(`boxShadow`,t)]:C,[R(`color`,t)]:w,[R(`closeColorHover`,t)]:T,[R(`closeColorPressed`,t)]:E,[R(`closeIconColor`,t)]:D,[R(`closeIconColorPressed`,t)]:O,[R(`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?u(`message`,N(()=>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:c,handleClose:l,showIcon:u}=this;s?.();let d;return m(`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):m(`div`,{class:[`${i}-message ${i}-message--${t}-type`,this.rtlEnabled&&`${i}-message--rtl`]},(d=jo(c,t,i,this.spinProps))&&u?m(`div`,{class:`${i}-message__icon ${i}-message__icon--${t}-type`},m(Jr,null,{default:()=>d})):null,m(`div`,{class:`${i}-message__content`},dr(r)),n?m(ii,{clsPrefix:i,class:`${i}-message__close`,onClick:l,absolute:!0}):null))}});function jo(e,t,n,r){if(typeof e==`function`)return e();{let e=t===`loading`?m(li,Object.assign({clsPrefix:n,strokeWidth:24,scale:.85},r)):ko[t]();return e?m(qr,{clsPrefix:n,key:t},{default:()=>e}):null}}var Mo=L({name:`MessageEnvironment`,props:Object.assign(Object.assign({},Do),{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=I(!0);te(()=>{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 m(ai,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?m(Ao,{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]})}}),No=L({name:`MessageProvider`,props:Object.assign(Object.assign({},Me.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}=ee(e),n=I([]),r=I({}),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};Ie(So,{props:e,mergedClsPrefixRef:t}),Ie(xo,i);function a(t,i){let a=sr(),o=Ne(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 m(ge,null,(e=this.$slots).default?.call(e),this.messageList.length?m(me,{to:this.to??`body`},m(`div`,{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`,this.containerClass],key:`message-container`,style:this.containerStyle},this.messageList.map(e=>m(Mo,Object.assign({ref:t=>{t&&(this.messageRefs[e.key]=t)},internalKey:e.key,onInternalAfterLeave:this.handleAfterLeave},ur(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)}}),Po={closeMargin:`16px 12px`,closeSize:`20px`,closeIconSize:`16px`,width:`365px`,padding:`16px`,titleFontSize:`16px`,metaFontSize:`12px`,descriptionFontSize:`12px`};function Fo(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({},Po),{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})}F({name:`Notification`,common:P,peers:{Scrollbar:B},self:Fo});var Io={name:`Notification`,common:q,peers:{Scrollbar:J},self:Fo};function Lo(e){let{textColor1:t,dividerColor:n,fontWeightStrong:r}=e;return{textColor:t,color:n,fontWeight:r}}var Ro={name:`Divider`,common:q,self:Lo};function zo(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}}F({name:`Drawer`,common:P,peers:{Scrollbar:B},self:zo});var Bo={name:`Drawer`,common:q,peers:{Scrollbar:J},self:zo},Vo={actionMargin:`0 0 0 20px`,actionMarginRtl:`0 20px 0 0`},Ho={name:`DynamicInput`,common:q,peers:{Input:X,Button:Q},self(){return Vo}},Uo={gapSmall:`4px 8px`,gapMedium:`8px 12px`,gapLarge:`12px 16px`},Wo={name:`Space`,self(){return Uo}},Go={name:`DynamicTags`,common:q,peers:{Input:X,Button:Q,Tag:Di,Space:Wo},self(){return{inputWidth:`64px`}}},Ko={name:`Element`,common:q},qo={gapSmall:`4px 8px`,gapMedium:`8px 12px`,gapLarge:`12px 16px`},Jo={name:`Flex`,self(){return qo}},Yo={name:`ButtonGroup`,common:q},Xo={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 Zo(e){let{heightSmall:t,heightMedium:n,heightLarge:r,textColor1:i,errorColor:a,warningColor:o,lineHeight:s,textColor3:c}=e;return Object.assign(Object.assign({},Xo),{blankHeightSmall:t,blankHeightMedium:n,blankHeightLarge:r,lineHeight:s,labelTextColor:i,asteriskColor:a,feedbackTextColorError:a,feedbackTextColorWarning:o,feedbackTextColor:c})}var Qo={name:`Form`,common:P,self:Zo},$o={name:`Form`,common:q,self:Zo},es={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}}},ts={name:`InputNumber`,common:q,peers:{Button:Q,Input:X},self(e){let{textColorDisabled:t}=e;return{iconColorDisabled:t}}};function ns(){return{inputWidthSmall:`24px`,inputWidthMedium:`30px`,inputWidthLarge:`36px`,gapSmall:`8px`,gapMedium:`8px`,gapLarge:`8px`}}F({name:`InputOtp`,common:P,peers:{Input:Ui},self:ns});var rs={name:`InputOtp`,common:q,peers:{Input:X},self:ns},is={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:j(n,o),siderToggleBarColorHover:j(n,s),__invertScrollbar:`false`}}},as={name:`Row`,common:q};function os(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:j(r,c),colorPopover:i,colorHoverPopover:j(i,c),borderColor:a,borderColorModal:j(r,a),borderColorPopover:j(i,a),borderRadius:o,fontSize:s}}var ss={name:`List`,common:q,self:os},cs={name:`Log`,common:q,peers:{Scrollbar:J,Code:va},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}}},ls={name:`Mention`,common:q,peers:{InternalSelectMenu:xi,Input:X},self(e){let{boxShadow2:t}=e;return{menuBoxShadow:t}}};function us(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 ds(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:A(r,{alpha:.1}),itemColorActiveHover:A(r,{alpha:.1}),itemColorActiveCollapsed:A(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},us(`#BBB`,r,`#FFF`,`#AAA`))}F({name:`Menu`,common:P,peers:{Tooltip:Ua,Dropdown:Ra},self:ds});var fs={name:`Menu`,common:q,peers:{Tooltip:Va,Dropdown:za},self(e){let{primaryColor:t,primaryColorSuppl:n}=e,r=ds(e);return r.itemColorActive=A(t,{alpha:.15}),r.itemColorActiveHover=A(t,{alpha:.15}),r.itemColorActiveCollapsed=A(t,{alpha:.15}),r.itemColorActiveInverted=n,r.itemColorActiveHoverInverted=n,r.itemColorActiveCollapsedInverted=n,r}},ps={titleFontSize:`18px`,backSize:`22px`};function ms(e){let{textColor1:t,textColor2:n,textColor3:r,fontSize:i,fontWeightStrong:a,primaryColorHover:o,primaryColorPressed:s}=e;return Object.assign(Object.assign({},ps),{titleFontWeight:a,fontSize:i,titleTextColor:t,backColor:n,backColorHover:o,backColorPressed:s,subtitleTextColor:r})}F({name:`PageHeader`,common:P,self:ms});var hs={name:`PageHeader`,common:q,self:ms},gs={iconSize:`22px`};function _s(e){let{fontSize:t,warningColor:n}=e;return Object.assign(Object.assign({},gs),{fontSize:t,iconColor:n})}F({name:`Popconfirm`,common:P,peers:{Button:Z,Popover:wi},self:_s});var vs={name:`Popconfirm`,common:q,peers:{Button:Q,Popover:Ti},self:_s};function ys(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 bs={name:`Progress`,common:P,self:ys},xs={name:`Progress`,common:q,self(e){let t=ys(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}},Ss={name:`Rate`,common:q,self(e){let{railColor:t}=e;return{itemColor:t,itemColorActive:`#CCAA33`,itemSize:`20px`,sizeSmall:`16px`,sizeMedium:`20px`,sizeLarge:`24px`}}},Cs={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 ws(e){let{textColor2:t,textColor1:n,errorColor:r,successColor:i,infoColor:a,warningColor:o,lineHeight:s,fontWeightStrong:c}=e;return Object.assign(Object.assign({},Cs),{lineHeight:s,titleFontWeight:c,titleTextColor:n,textColor:t,iconColorError:r,iconColorSuccess:i,iconColorInfo:a,iconColorWarning:o})}var Ts={name:`Result`,common:q,self:ws},Es={railHeight:`4px`,railWidthVertical:`4px`,handleSize:`18px`,dotHeight:`8px`,dotWidth:`8px`,dotBorderRadius:`4px`},Ds={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({},Es),{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 Os(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 ks={name:`Spin`,common:P,self:Os},As={name:`Spin`,common:q,self:Os};function js(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 Ms={name:`Statistic`,common:q,self:js},Ns={stepHeaderFontSizeSmall:`14px`,stepHeaderFontSizeMedium:`16px`,indicatorIndexFontSizeSmall:`14px`,indicatorIndexFontSizeMedium:`16px`,indicatorSizeSmall:`22px`,indicatorSizeMedium:`28px`,indicatorIconSizeSmall:`14px`,indicatorIconSizeMedium:`18px`};function Ps(e){let{fontWeightStrong:t,baseColor:n,textColorDisabled:r,primaryColor:i,errorColor:a,textColor1:o,textColor2:s}=e;return Object.assign(Object.assign({},Ns),{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 Fs={name:`Steps`,common:q,self:Ps},Is={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`},Ls={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({},Is),{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 ${A(i,{alpha:.3})}`})}},Rs={thPaddingSmall:`6px`,thPaddingMedium:`12px`,thPaddingLarge:`12px`,tdPaddingSmall:`6px`,tdPaddingMedium:`12px`,tdPaddingLarge:`12px`};function zs(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({},Rs),{fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:m,lineHeight:d,borderRadius:l,borderColor:j(n,t),borderColorModal:j(r,t),borderColorPopover:j(i,t),tdColor:n,tdColorModal:r,tdColorPopover:i,tdColorStriped:j(n,o),tdColorStripedModal:j(r,o),tdColorStripedPopover:j(i,o),thColor:j(n,a),thColorModal:j(r,a),thColorPopover:j(i,a),thTextColor:s,tdTextColor:c,thFontWeight:u})}var Bs={name:`Table`,common:q,self:zs},Vs={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 Hs(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({},Vs),{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 Us={name:`Tabs`,common:P,self:Hs},Ws={name:`Tabs`,common:q,self(e){let t=Hs(e),{inputColor:n}=e;return t.colorSegment=n,t.tabColorSegment=n,t}};function Gs(e){let{textColor1:t,textColor2:n,fontWeightStrong:r,fontSize:i}=e;return{fontSize:i,titleTextColor:t,textColor:n,titleFontWeight:r}}var Ks={name:`Thing`,common:q,self:Gs},qs={titleMarginMedium:`0 0 6px 0`,titleMarginLarge:`-2px 0 6px 0`,titleFontSizeMedium:`14px`,titleFontSizeLarge:`16px`,iconSizeMedium:`14px`,iconSizeLarge:`14px`},Js={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({},qs),{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})}},Ys={extraFontSizeSmall:`12px`,extraFontSizeMedium:`12px`,extraFontSizeLarge:`14px`,titleFontSizeSmall:`14px`,titleFontSizeMedium:`16px`,titleFontSizeLarge:`16px`,closeSize:`20px`,closeIconSize:`16px`,headerHeightSmall:`44px`,headerHeightMedium:`44px`,headerHeightLarge:`50px`},Xs={name:`Transfer`,common:q,peers:{Checkbox:ha,Scrollbar:J,Input:X,Empty:_i,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({},Ys),{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 Zs(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:A(a,{alpha:.1}),arrowColor:o,nodeTextColor:s,nodeTextColorDisabled:c,loadingColor:a,dropMarkColor:a,lineColor:n}}F({name:`Tree`,common:P,peers:{Checkbox:ma,Scrollbar:B,Empty:gi},self:Zs});var Qs={name:`Tree`,common:q,peers:{Checkbox:ha,Scrollbar:J,Empty:_i},self(e){let{primaryColor:t}=e,n=Zs(e);return n.nodeColorActive=A(t,{alpha:.15}),n}},$s={name:`TreeSelect`,common:q,peers:{Tree:Qs,Empty:_i,InternalSelection:ki}},ec={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 tc(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({},ec),{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 nc={name:`Typography`,common:P,self:tc},rc={name:`Typography`,common:q,self:tc};function ic(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:A(r,{alpha:.06}),itemTextColor:i,itemTextColorError:r,itemTextColorSuccess:a,itemIconColor:t,itemDisabledOpacity:o,itemBorderImageCardError:`1px solid ${r}`,itemBorderImageCard:`1px solid ${c}`}}var ac=F({name:`Upload`,common:P,peers:{Button:Z,Progress:bs},self:ic}),oc={name:`Upload`,common:q,peers:{Button:Q,Progress:xs},self(e){let{errorColor:t}=e,n=ic(e);return n.itemColorHoverError=A(t,{alpha:.09}),n}},sc={name:`Watermark`,common:q,self(e){let{fontFamily:t}=e;return{fontFamily:t}}},cc={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 lc(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}}F({name:`Heatmap`,common:P,self:lc});var uc={name:`Heatmap`,common:q,self(e){let t=lc(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 dc(e){let{primaryColor:t,baseColor:n}=e;return{color:t,iconColor:n}}var fc={name:`IconWrapper`,common:q,self:dc},pc={name:`Image`,common:q,peers:{Tooltip:Va},self:e=>{let{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:`rgba(0, 0, 0, .35)`,toolbarBoxShadow:`none`,toolbarBorderRadius:`24px`}}},mc={extraFontSize:`12px`,width:`440px`},hc={name:`Transfer`,common:q,peers:{Checkbox:ha,Scrollbar:J,Input:X,Empty:_i,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({},mc),{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 gc(){return{}}var _c={name:`dark`,common:q,Alert:Ni,Anchor:zi,AutoComplete:Ki,Avatar:Yi,AvatarGroup:Zi,BackTop:$i,Badge:ea,Breadcrumb:ra,Button:Q,ButtonGroup:Yo,Calendar:ca,Card:la,Carousel:da,Cascader:_a,Checkbox:ha,Code:va,Collapse:ba,CollapseTransition:Sa,ColorPicker:wa,DataTable:Qa,DatePicker:co,Descriptions:fo,Dialog:go,Divider:Ro,Drawer:Bo,Dropdown:za,DynamicInput:Ho,DynamicTags:Go,Element:Ko,Empty:_i,Ellipsis:Wa,Equation:{name:`Equation`,common:q,self:()=>({})},Flex:Jo,Form:$o,GradientText:es,Heatmap:uc,Icon:eo,IconWrapper:fc,Image:pc,Input:X,InputNumber:ts,InputOtp:rs,LegacyTransfer:hc,Layout:is,List:ss,LoadingBar:bo,Log:cs,Menu:fs,Mention:ls,Message:Eo,Modal:yo,Notification:Io,PageHeader:hs,Pagination:Fa,Popconfirm:vs,Popover:Ti,Popselect:Ea,Progress:xs,QrCode:{name:`QrCode`,common:q,self:e=>({borderRadius:e.borderRadius})},Radio:qa,Rate:Ss,Result:Ts,Row:as,Scrollbar:J,Select:ja,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:Ds,Space:Wo,Spin:As,Statistic:Ms,Steps:Fs,Switch:Ls,Table:Bs,Tabs:Ws,Tag:Di,Thing:Ks,TimePicker:io,Timeline:Js,Tooltip:Va,Transfer:Xs,Tree:Qs,TreeSelect:$s,Typography:rc,Upload:oc,Watermark:sc,Split:{name:`Split`,common:q},FloatButton:cc,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:gc}},vc=L({__name:`App`,setup(e){return(e,t)=>(d(),D(Ke(Ta),{theme:Ke(_c)},{default:ve(()=>[v(Ke(No),null,{default:ve(()=>[v(Ke(ke))]),_:1})]),_:1},8,[`theme`]))}}),yc=`modulepreload`,bc=function(e){return`/`+e},xc={},$=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=bc(t,n),t=s(t),t in xc)return;xc[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`:yc,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)})},Sc=Le({history:se(`/`),routes:[{path:`/participation`,name:`participation`,component:()=>$(()=>import(`./ParticipationView-DyTDDQH1.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))},{path:`/tickets/:token`,name:`ticket`,component:()=>$(()=>import(`./TicketView-B1FndUn_.js`),__vite__mapDeps([15,1,7,4,8,16,14,17,18,19]))},{path:`/`,name:`home`,component:()=>$(()=>import(`./HomeView-2xKcd5tZ.js`),__vite__mapDeps([20,1,4,12,3,13,21]))},{path:`/login`,name:`login`,component:()=>$(()=>import(`./LoginView-DMxr3e_j.js`),__vite__mapDeps([22,1,23,2,3,4,5,6,24,10,25,26,7,8,27,28,29,30,9,11,12,13,31]))},{path:`/office`,name:`office`,component:()=>$(()=>import(`./OfficeView-0a8KHSvF.js`),__vite__mapDeps([32,1,2,3,4,5,6,33,24,10,7,8,34,30,26,35,12,13,36]))},{path:`/user-agreement`,name:`user-agreement`,component:()=>$(()=>import(`./UserAgreementView-DVjdLQwc.js`),__vite__mapDeps([37,1,12,3,4,13,38,35,39,28,5,40,41,42]))},{path:`/privacy-policy`,name:`privacy-policy`,component:()=>$(()=>import(`./PrivacyPolicyView-DpUhOBh2.js`),__vite__mapDeps([43,1,12,3,4,13,38,35,39,28,5,40,41,42]))},{path:`/consent`,name:`consent`,component:()=>$(()=>import(`./ConsentView-BhM6C8xZ.js`),__vite__mapDeps([44,1,12,3,4,13,38,35,39,28,5,40,41,42]))},{path:`/games`,name:`games`,component:()=>$(()=>import(`./GamesView-BY-rpPoj.js`),__vite__mapDeps([45,1,2,3,4,5,6,33,24,10,7,8,34,46,23,25,26,30,47,28,48,49,9,11,50,12,13,14,51]))},{path:`/screen`,name:`screen`,component:()=>$(()=>import(`./ScreenView-CVDqTuwa.js`),__vite__mapDeps([52,1,2,3,4,5,6,7,8,47,23,24,10,25,26,28,48,34,49,16,12,13,53,14,54,55]))},{path:`/games/:id/results`,name:`game-results`,component:()=>$(()=>import(`./GameResultsView-n3vizqJm.js`),__vite__mapDeps([56,1,3,4,7,8,50,10,11,12,13,57]))},{path:`/games/:id`,name:`game`,component:()=>$(()=>import(`./GameView-kWM4_0LQ.js`),__vite__mapDeps([58,1,2,3,4,5,6,24,10,33,7,8,34,26,27,23,28,29,47,25,48,49,59,30,60,35,9,11,50,61,16,12,13,62,53,14,54,63]))},{path:`/team-story/:id`,name:`team-story`,component:()=>$(()=>import(`./TeamStoryView-DRyU8F-4.js`),__vite__mapDeps([64,1,3,4,7,8,65,2,5,6,24,10,33,34,26,59,23,28,48,49,29,30,60,9,11,53,17,18,66,35,50,61,16,40,41,54,67]))},{path:`/scenarios`,name:`scenarios`,component:()=>$(()=>import(`./ScenariosView-fFBu3P3h.js`),__vite__mapDeps([68,1,2,3,4,5,6,33,24,10,7,8,34,59,23,26,28,48,49,29,30,50,11,12,13,62,69]))},{path:`/catalog`,name:`catalog`,component:()=>$(()=>import(`./CatalogView-DuXz4hUk.js`),__vite__mapDeps([70,1,3,4,61,26,8,12,13,71]))},{path:`/scenarios/:id/editor`,name:`scenario-editor`,component:()=>$(()=>import(`./ScenariosEditorView-CCW0u0oN.js`),__vite__mapDeps([72,1,2,3,4,5,6,33,24,10,7,8,34,47,23,25,26,28,48,49,59,29,30,65,60,9,11,53,17,18,66,35,50,12,13,62,73]))},{path:`/scenarios/:id`,name:`scenario`,component:()=>$(()=>import(`./ScenarioView-w4z13Q1-.js`),__vite__mapDeps([74,1,3,4,61,26,8,12,13,75]))},{path:`/tasks`,name:`tasks`,component:()=>$(()=>import(`./TasksView-D3v_9-n1.js`),__vite__mapDeps([76,1,25,23,2,3,4,5,6,24,10,33,7,8,34,46,26,30,77,49,47,28,48,35,50,11,39,12,13,78]))},{path:`/users`,name:`users`,component:()=>$(()=>import(`./UsersView-jKpW7-mE.js`),__vite__mapDeps([79,1,2,3,4,5,6,33,24,10,7,8,34,77,49,30,26,9,11,50,12,13,80]))},{path:`/reviews`,name:`reviews`,component:()=>$(()=>import(`./ReviewsView-DzoPF-21.js`),__vite__mapDeps([81,1,2,3,4,5,6,7,8,50,10,11,61,26,12,13,82]))}]});async function Cc(e,t,n){let r=n();try{return await e()}catch(n){if(!(n instanceof Error)||n.message!==`unauthorized`||!await t(r))throw n;return e()}}function wc(e){let t=Ec();return Tc(t.refreshTokenAction,t.getToken,e)}function Tc(e,t,n){let r=Ee(t,n);return _e(n=>Cc(()=>r(n),e,t))}var Ec=ar(`auth`,()=>{let e=I(null),t=I(null),n=I(null),r=I(!1),i=I(null),a=null,o=0,s=!1,c=N(()=>!!e.value),l=N(()=>n.value?.username||``),u=N(()=>n.value?.roles||[]);function d(){e.value=localStorage.getItem(`accessToken`),t.value=localStorage.getItem(`refreshToken`)}function f(n,r){e.value=n,t.value=r||null,r?localStorage.setItem(`refreshToken`,r):localStorage.removeItem(`refreshToken`),localStorage.setItem(`accessToken`,n)}function p(){d(),s||=(window.addEventListener(`storage`,e=>{if(e.storageArea!==localStorage||e.key!==`accessToken`&&e.key!==null)return;let t=()=>{o++,d(),n.value=null,i.value=null,h()};a&&localStorage.getItem(`accessToken`)&&localStorage.getItem(`refreshToken`)?a.then(t,t):t()}),!0),h()}function m(){return e.value}async function h(){if(!e.value)return;let t=o;try{let r=await wc().GetMe({});r.user&&t===o&&e.value&&(n.value=r.user,i.value=null)}catch(e){t===o&&(i.value=e instanceof Error?e.message:`Не удалось восстановить сессию`)}}async function g(e,t){r.value=!0,i.value=null;let a=++o;try{let r=await ze().Login({email:e,password:t});return r.accessToken&&a===o?(n.value=null,f(r.accessToken,r.refreshToken),await h(),!0):!1}catch(e){return i.value=e instanceof Error?e.message:`Login failed`,!1}finally{r.value=!1}}function _(n=e.value){if(a)return a;let r=o,i=t.value,s=async()=>{if(r!==o)return!1;if(d(),!e.value||!t.value)return await x(),!1;if(e.value!==n||t.value!==i)return!0;try{let e=await ze().Refresh({refreshToken:i||void 0});if(r!==o||localStorage.getItem(`refreshToken`)!==i)return!1;if(!e.accessToken||!e.refreshToken)throw Error(`Сервер не вернул токены сессии`);return f(e.accessToken,e.refreshToken),!0}catch(e){if(r!==o||localStorage.getItem(`refreshToken`)!==i)return!1;if(e instanceof Error&&e.message===`unauthorized`)return await x(),!1;throw e}};return a=(navigator.locks?navigator.locks.request(`evening-detective-auth-refresh`,s):s()).finally(()=>{a=null}),a}async function v(e,t,n,a){r.value=!0,i.value=null;try{return await ze(m).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 y(e){r.value=!0,i.value=null;try{return await wc(()=>({"X-Password":e})).DeleteAccount({}),await x(),!0}catch(e){return i.value=e instanceof Error?e.message:`Account deletion failed`,!1}finally{r.value=!1}}async function b(e){r.value=!0,i.value=null;try{return await ze(m).RefreshPassword({email:e}),!0}catch(e){return i.value=e instanceof Error?e.message:`Password reset failed`,!1}finally{r.value=!1}}async function x(){o++,e.value=null,t.value=null,n.value=null,i.value=null,localStorage.removeItem(`refreshToken`),localStorage.removeItem(`accessToken`)}function S(e){return u.value.includes(e)}function C(e){return e.some(e=>u.value.includes(e))}return{accessToken:e,refreshToken:t,user:n,isLoading:r,error:i,isAuthenticated:c,username:l,userRoles:u,initFromStorage:p,getToken:m,login:g,signup:v,deleteAccount:y,refreshPassword:b,logout:x,fetchUser:h,refreshTokenAction:_,hasRole:S,hasAnyRole:C}}),Dc=Tn(vc);Dc.use(Kn()),Ec().initFromStorage(),Dc.use(Sc),Dc.mount(`#app`);export{sr as $,Ei as A,$r as B,ma as C,Ii as D,Ui as E,ci as F,qr as G,Zr as H,ai as I,pr as J,yr as K,ii as L,bi as M,gi as N,Mi as O,li as P,cr as Q,ni as R,Ta as S,Gi as T,Yr as U,Qr as V,Jr as W,ur as X,dr as Y,lr as Z,ho as _,ac as a,Tt as at,Ua as b,Is as c,Qo as d,ar as et,qo as f,vo as g,xo as h,Sc as i,gn as it,wi as j,ji as k,ks as l,Vo as m,wc as n,ct as nt,nc as o,xn as ot,Uo as p,mr as q,Cc as r,an as rt,Us as s,yn as st,Ec as t,or as tt,bs as u,so as v,Z as w,Aa as x,ro as y,ei as z}; \ No newline at end of file + `)])]),ko={info:()=>m(Qr,null),success:()=>m($r,null),warning:()=>m(ei,null),error:()=>m(Zr,null),default:()=>null},Ao=L({name:`Message`,props:Object.assign(Object.assign({},Do),{render:Function}),setup(e){let{inlineThemeDisabled:t,mergedRtlRef:n}=ee(e),{props:r,mergedClsPrefixRef:i}=b(So),a=fe(`Message`,n,i),o=Me(`Message`,`-message`,Oo,To,r,i),s=N(()=>{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,[R(`textColor`,t)]:S,[R(`boxShadow`,t)]:C,[R(`color`,t)]:w,[R(`closeColorHover`,t)]:T,[R(`closeColorPressed`,t)]:E,[R(`closeIconColor`,t)]:D,[R(`closeIconColorPressed`,t)]:O,[R(`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?u(`message`,N(()=>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:c,handleClose:l,showIcon:u}=this;s?.();let d;return m(`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):m(`div`,{class:[`${i}-message ${i}-message--${t}-type`,this.rtlEnabled&&`${i}-message--rtl`]},(d=jo(c,t,i,this.spinProps))&&u?m(`div`,{class:`${i}-message__icon ${i}-message__icon--${t}-type`},m(Jr,null,{default:()=>d})):null,m(`div`,{class:`${i}-message__content`},dr(r)),n?m(ii,{clsPrefix:i,class:`${i}-message__close`,onClick:l,absolute:!0}):null))}});function jo(e,t,n,r){if(typeof e==`function`)return e();{let e=t===`loading`?m(li,Object.assign({clsPrefix:n,strokeWidth:24,scale:.85},r)):ko[t]();return e?m(qr,{clsPrefix:n,key:t},{default:()=>e}):null}}var Mo=L({name:`MessageEnvironment`,props:Object.assign(Object.assign({},Do),{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=I(!0);te(()=>{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 m(ai,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?m(Ao,{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]})}}),No=L({name:`MessageProvider`,props:Object.assign(Object.assign({},Me.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}=ee(e),n=I([]),r=I({}),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};Ie(So,{props:e,mergedClsPrefixRef:t}),Ie(xo,i);function a(t,i){let a=sr(),o=Ne(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 m(ge,null,(e=this.$slots).default?.call(e),this.messageList.length?m(me,{to:this.to??`body`},m(`div`,{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`,this.containerClass],key:`message-container`,style:this.containerStyle},this.messageList.map(e=>m(Mo,Object.assign({ref:t=>{t&&(this.messageRefs[e.key]=t)},internalKey:e.key,onInternalAfterLeave:this.handleAfterLeave},ur(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)}}),Po={closeMargin:`16px 12px`,closeSize:`20px`,closeIconSize:`16px`,width:`365px`,padding:`16px`,titleFontSize:`16px`,metaFontSize:`12px`,descriptionFontSize:`12px`};function Fo(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({},Po),{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})}F({name:`Notification`,common:P,peers:{Scrollbar:B},self:Fo});var Io={name:`Notification`,common:q,peers:{Scrollbar:J},self:Fo};function Lo(e){let{textColor1:t,dividerColor:n,fontWeightStrong:r}=e;return{textColor:t,color:n,fontWeight:r}}var Ro={name:`Divider`,common:q,self:Lo};function zo(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}}F({name:`Drawer`,common:P,peers:{Scrollbar:B},self:zo});var Bo={name:`Drawer`,common:q,peers:{Scrollbar:J},self:zo},Vo={actionMargin:`0 0 0 20px`,actionMarginRtl:`0 20px 0 0`},Ho={name:`DynamicInput`,common:q,peers:{Input:X,Button:Q},self(){return Vo}},Uo={gapSmall:`4px 8px`,gapMedium:`8px 12px`,gapLarge:`12px 16px`},Wo={name:`Space`,self(){return Uo}},Go={name:`DynamicTags`,common:q,peers:{Input:X,Button:Q,Tag:Di,Space:Wo},self(){return{inputWidth:`64px`}}},Ko={name:`Element`,common:q},qo={gapSmall:`4px 8px`,gapMedium:`8px 12px`,gapLarge:`12px 16px`},Jo={name:`Flex`,self(){return qo}},Yo={name:`ButtonGroup`,common:q},Xo={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 Zo(e){let{heightSmall:t,heightMedium:n,heightLarge:r,textColor1:i,errorColor:a,warningColor:o,lineHeight:s,textColor3:c}=e;return Object.assign(Object.assign({},Xo),{blankHeightSmall:t,blankHeightMedium:n,blankHeightLarge:r,lineHeight:s,labelTextColor:i,asteriskColor:a,feedbackTextColorError:a,feedbackTextColorWarning:o,feedbackTextColor:c})}var Qo={name:`Form`,common:P,self:Zo},$o={name:`Form`,common:q,self:Zo},es={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}}},ts={name:`InputNumber`,common:q,peers:{Button:Q,Input:X},self(e){let{textColorDisabled:t}=e;return{iconColorDisabled:t}}};function ns(){return{inputWidthSmall:`24px`,inputWidthMedium:`30px`,inputWidthLarge:`36px`,gapSmall:`8px`,gapMedium:`8px`,gapLarge:`8px`}}F({name:`InputOtp`,common:P,peers:{Input:Ui},self:ns});var rs={name:`InputOtp`,common:q,peers:{Input:X},self:ns},is={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:j(n,o),siderToggleBarColorHover:j(n,s),__invertScrollbar:`false`}}},as={name:`Row`,common:q};function os(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:j(r,c),colorPopover:i,colorHoverPopover:j(i,c),borderColor:a,borderColorModal:j(r,a),borderColorPopover:j(i,a),borderRadius:o,fontSize:s}}var ss={name:`List`,common:q,self:os},cs={name:`Log`,common:q,peers:{Scrollbar:J,Code:va},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}}},ls={name:`Mention`,common:q,peers:{InternalSelectMenu:xi,Input:X},self(e){let{boxShadow2:t}=e;return{menuBoxShadow:t}}};function us(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 ds(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:A(r,{alpha:.1}),itemColorActiveHover:A(r,{alpha:.1}),itemColorActiveCollapsed:A(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},us(`#BBB`,r,`#FFF`,`#AAA`))}F({name:`Menu`,common:P,peers:{Tooltip:Ua,Dropdown:Ra},self:ds});var fs={name:`Menu`,common:q,peers:{Tooltip:Va,Dropdown:za},self(e){let{primaryColor:t,primaryColorSuppl:n}=e,r=ds(e);return r.itemColorActive=A(t,{alpha:.15}),r.itemColorActiveHover=A(t,{alpha:.15}),r.itemColorActiveCollapsed=A(t,{alpha:.15}),r.itemColorActiveInverted=n,r.itemColorActiveHoverInverted=n,r.itemColorActiveCollapsedInverted=n,r}},ps={titleFontSize:`18px`,backSize:`22px`};function ms(e){let{textColor1:t,textColor2:n,textColor3:r,fontSize:i,fontWeightStrong:a,primaryColorHover:o,primaryColorPressed:s}=e;return Object.assign(Object.assign({},ps),{titleFontWeight:a,fontSize:i,titleTextColor:t,backColor:n,backColorHover:o,backColorPressed:s,subtitleTextColor:r})}F({name:`PageHeader`,common:P,self:ms});var hs={name:`PageHeader`,common:q,self:ms},gs={iconSize:`22px`};function _s(e){let{fontSize:t,warningColor:n}=e;return Object.assign(Object.assign({},gs),{fontSize:t,iconColor:n})}F({name:`Popconfirm`,common:P,peers:{Button:Z,Popover:wi},self:_s});var vs={name:`Popconfirm`,common:q,peers:{Button:Q,Popover:Ti},self:_s};function ys(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 bs={name:`Progress`,common:P,self:ys},xs={name:`Progress`,common:q,self(e){let t=ys(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}},Ss={name:`Rate`,common:q,self(e){let{railColor:t}=e;return{itemColor:t,itemColorActive:`#CCAA33`,itemSize:`20px`,sizeSmall:`16px`,sizeMedium:`20px`,sizeLarge:`24px`}}},Cs={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 ws(e){let{textColor2:t,textColor1:n,errorColor:r,successColor:i,infoColor:a,warningColor:o,lineHeight:s,fontWeightStrong:c}=e;return Object.assign(Object.assign({},Cs),{lineHeight:s,titleFontWeight:c,titleTextColor:n,textColor:t,iconColorError:r,iconColorSuccess:i,iconColorInfo:a,iconColorWarning:o})}var Ts={name:`Result`,common:q,self:ws},Es={railHeight:`4px`,railWidthVertical:`4px`,handleSize:`18px`,dotHeight:`8px`,dotWidth:`8px`,dotBorderRadius:`4px`},Ds={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({},Es),{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 Os(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 ks={name:`Spin`,common:P,self:Os},As={name:`Spin`,common:q,self:Os};function js(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 Ms={name:`Statistic`,common:q,self:js},Ns={stepHeaderFontSizeSmall:`14px`,stepHeaderFontSizeMedium:`16px`,indicatorIndexFontSizeSmall:`14px`,indicatorIndexFontSizeMedium:`16px`,indicatorSizeSmall:`22px`,indicatorSizeMedium:`28px`,indicatorIconSizeSmall:`14px`,indicatorIconSizeMedium:`18px`};function Ps(e){let{fontWeightStrong:t,baseColor:n,textColorDisabled:r,primaryColor:i,errorColor:a,textColor1:o,textColor2:s}=e;return Object.assign(Object.assign({},Ns),{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 Fs={name:`Steps`,common:q,self:Ps},Is={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`},Ls={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({},Is),{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 ${A(i,{alpha:.3})}`})}},Rs={thPaddingSmall:`6px`,thPaddingMedium:`12px`,thPaddingLarge:`12px`,tdPaddingSmall:`6px`,tdPaddingMedium:`12px`,tdPaddingLarge:`12px`};function zs(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({},Rs),{fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:m,lineHeight:d,borderRadius:l,borderColor:j(n,t),borderColorModal:j(r,t),borderColorPopover:j(i,t),tdColor:n,tdColorModal:r,tdColorPopover:i,tdColorStriped:j(n,o),tdColorStripedModal:j(r,o),tdColorStripedPopover:j(i,o),thColor:j(n,a),thColorModal:j(r,a),thColorPopover:j(i,a),thTextColor:s,tdTextColor:c,thFontWeight:u})}var Bs={name:`Table`,common:q,self:zs},Vs={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 Hs(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({},Vs),{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 Us={name:`Tabs`,common:P,self:Hs},Ws={name:`Tabs`,common:q,self(e){let t=Hs(e),{inputColor:n}=e;return t.colorSegment=n,t.tabColorSegment=n,t}};function Gs(e){let{textColor1:t,textColor2:n,fontWeightStrong:r,fontSize:i}=e;return{fontSize:i,titleTextColor:t,textColor:n,titleFontWeight:r}}var Ks={name:`Thing`,common:q,self:Gs},qs={titleMarginMedium:`0 0 6px 0`,titleMarginLarge:`-2px 0 6px 0`,titleFontSizeMedium:`14px`,titleFontSizeLarge:`16px`,iconSizeMedium:`14px`,iconSizeLarge:`14px`},Js={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({},qs),{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})}},Ys={extraFontSizeSmall:`12px`,extraFontSizeMedium:`12px`,extraFontSizeLarge:`14px`,titleFontSizeSmall:`14px`,titleFontSizeMedium:`16px`,titleFontSizeLarge:`16px`,closeSize:`20px`,closeIconSize:`16px`,headerHeightSmall:`44px`,headerHeightMedium:`44px`,headerHeightLarge:`50px`},Xs={name:`Transfer`,common:q,peers:{Checkbox:ha,Scrollbar:J,Input:X,Empty:_i,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({},Ys),{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 Zs(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:A(a,{alpha:.1}),arrowColor:o,nodeTextColor:s,nodeTextColorDisabled:c,loadingColor:a,dropMarkColor:a,lineColor:n}}F({name:`Tree`,common:P,peers:{Checkbox:ma,Scrollbar:B,Empty:gi},self:Zs});var Qs={name:`Tree`,common:q,peers:{Checkbox:ha,Scrollbar:J,Empty:_i},self(e){let{primaryColor:t}=e,n=Zs(e);return n.nodeColorActive=A(t,{alpha:.15}),n}},$s={name:`TreeSelect`,common:q,peers:{Tree:Qs,Empty:_i,InternalSelection:ki}},ec={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 tc(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({},ec),{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 nc={name:`Typography`,common:P,self:tc},rc={name:`Typography`,common:q,self:tc};function ic(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:A(r,{alpha:.06}),itemTextColor:i,itemTextColorError:r,itemTextColorSuccess:a,itemIconColor:t,itemDisabledOpacity:o,itemBorderImageCardError:`1px solid ${r}`,itemBorderImageCard:`1px solid ${c}`}}var ac=F({name:`Upload`,common:P,peers:{Button:Z,Progress:bs},self:ic}),oc={name:`Upload`,common:q,peers:{Button:Q,Progress:xs},self(e){let{errorColor:t}=e,n=ic(e);return n.itemColorHoverError=A(t,{alpha:.09}),n}},sc={name:`Watermark`,common:q,self(e){let{fontFamily:t}=e;return{fontFamily:t}}},cc={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 lc(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}}F({name:`Heatmap`,common:P,self:lc});var uc={name:`Heatmap`,common:q,self(e){let t=lc(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 dc(e){let{primaryColor:t,baseColor:n}=e;return{color:t,iconColor:n}}var fc={name:`IconWrapper`,common:q,self:dc},pc={name:`Image`,common:q,peers:{Tooltip:Va},self:e=>{let{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:`rgba(0, 0, 0, .35)`,toolbarBoxShadow:`none`,toolbarBorderRadius:`24px`}}},mc={extraFontSize:`12px`,width:`440px`},hc={name:`Transfer`,common:q,peers:{Checkbox:ha,Scrollbar:J,Input:X,Empty:_i,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({},mc),{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 gc(){return{}}var _c={name:`dark`,common:q,Alert:Ni,Anchor:zi,AutoComplete:Ki,Avatar:Yi,AvatarGroup:Zi,BackTop:$i,Badge:ea,Breadcrumb:ra,Button:Q,ButtonGroup:Yo,Calendar:ca,Card:la,Carousel:da,Cascader:_a,Checkbox:ha,Code:va,Collapse:ba,CollapseTransition:Sa,ColorPicker:wa,DataTable:Qa,DatePicker:co,Descriptions:fo,Dialog:go,Divider:Ro,Drawer:Bo,Dropdown:za,DynamicInput:Ho,DynamicTags:Go,Element:Ko,Empty:_i,Ellipsis:Wa,Equation:{name:`Equation`,common:q,self:()=>({})},Flex:Jo,Form:$o,GradientText:es,Heatmap:uc,Icon:eo,IconWrapper:fc,Image:pc,Input:X,InputNumber:ts,InputOtp:rs,LegacyTransfer:hc,Layout:is,List:ss,LoadingBar:bo,Log:cs,Menu:fs,Mention:ls,Message:Eo,Modal:yo,Notification:Io,PageHeader:hs,Pagination:Fa,Popconfirm:vs,Popover:Ti,Popselect:Ea,Progress:xs,QrCode:{name:`QrCode`,common:q,self:e=>({borderRadius:e.borderRadius})},Radio:qa,Rate:Ss,Result:Ts,Row:as,Scrollbar:J,Select:ja,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:Ds,Space:Wo,Spin:As,Statistic:Ms,Steps:Fs,Switch:Ls,Table:Bs,Tabs:Ws,Tag:Di,Thing:Ks,TimePicker:io,Timeline:Js,Tooltip:Va,Transfer:Xs,Tree:Qs,TreeSelect:$s,Typography:rc,Upload:oc,Watermark:sc,Split:{name:`Split`,common:q},FloatButton:cc,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:gc}},vc=L({__name:`App`,setup(e){return(e,t)=>(d(),D(Ke(Ta),{theme:Ke(_c)},{default:ve(()=>[v(Ke(No),null,{default:ve(()=>[v(Ke(ke))]),_:1})]),_:1},8,[`theme`]))}}),yc=`modulepreload`,bc=function(e){return`/`+e},xc={},$=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=bc(t,n),t=s(t),t in xc)return;xc[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`:yc,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)})},Sc=Le({history:se(`/`),routes:[{path:`/participation`,name:`participation`,component:()=>$(()=>import(`./ParticipationView-B0CQImSi.js`),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]))},{path:`/tickets/:token`,name:`ticket`,component:()=>$(()=>import(`./TicketView-DQFkb9_N.js`),__vite__mapDeps([15,1,7,4,8,16,14,17,18,19]))},{path:`/`,name:`home`,component:()=>$(()=>import(`./HomeView-C-IPdwNi.js`),__vite__mapDeps([20,1,4,12,3,13,21]))},{path:`/login`,name:`login`,component:()=>$(()=>import(`./LoginView-WiQEiLme.js`),__vite__mapDeps([22,1,23,2,3,4,5,6,24,10,25,26,7,8,27,28,29,30,9,11,12,13,31]))},{path:`/office`,name:`office`,component:()=>$(()=>import(`./OfficeView-CtpHPH8n.js`),__vite__mapDeps([32,1,2,3,4,5,6,33,24,10,7,8,34,30,26,35,12,13,36]))},{path:`/user-agreement`,name:`user-agreement`,component:()=>$(()=>import(`./UserAgreementView-DgxzZnDR.js`),__vite__mapDeps([37,1,12,3,4,13,38,35,39,28,5,40,41,42]))},{path:`/privacy-policy`,name:`privacy-policy`,component:()=>$(()=>import(`./PrivacyPolicyView-D-D-Zo2F.js`),__vite__mapDeps([43,1,12,3,4,13,38,35,39,28,5,40,41,42]))},{path:`/consent`,name:`consent`,component:()=>$(()=>import(`./ConsentView-BxOLnfG5.js`),__vite__mapDeps([44,1,12,3,4,13,38,35,39,28,5,40,41,42]))},{path:`/games`,name:`games`,component:()=>$(()=>import(`./GamesView-vdPy4Ojw.js`),__vite__mapDeps([45,1,2,3,4,5,6,33,24,10,7,8,34,46,23,25,26,30,47,28,48,49,9,11,50,12,13,14,51]))},{path:`/screen`,name:`screen`,component:()=>$(()=>import(`./ScreenView-DCEFicdZ.js`),__vite__mapDeps([52,1,2,3,4,5,6,7,8,47,23,24,10,25,26,28,48,34,49,16,12,13,53,14,54,55]))},{path:`/games/:id/results`,name:`game-results`,component:()=>$(()=>import(`./GameResultsView-BO5qR0pX.js`),__vite__mapDeps([56,1,3,4,7,8,50,10,11,12,13,57]))},{path:`/games/:id`,name:`game`,component:()=>$(()=>import(`./GameView-yKXpSb6C.js`),__vite__mapDeps([58,1,2,3,4,5,6,24,10,33,7,8,34,26,27,23,28,29,47,25,48,49,59,30,60,35,9,11,50,61,16,12,13,62,53,14,54,63]))},{path:`/team-story/:id`,name:`team-story`,component:()=>$(()=>import(`./TeamStoryView-Dh33lDbt.js`),__vite__mapDeps([64,1,3,4,7,8,65,2,5,6,24,10,33,34,26,59,23,28,48,49,29,30,60,9,11,53,17,18,66,35,50,61,16,40,41,54,67]))},{path:`/scenarios`,name:`scenarios`,component:()=>$(()=>import(`./ScenariosView-jOOTATsM.js`),__vite__mapDeps([68,1,2,3,4,5,6,33,24,10,7,8,34,59,23,26,28,48,49,29,30,50,11,12,13,62,69]))},{path:`/catalog`,name:`catalog`,component:()=>$(()=>import(`./CatalogView-DaT0U2l-.js`),__vite__mapDeps([70,1,3,4,61,26,8,12,13,71]))},{path:`/scenarios/:id/editor`,name:`scenario-editor`,component:()=>$(()=>import(`./ScenariosEditorView-Ckw1jh0g.js`),__vite__mapDeps([72,1,2,3,4,5,6,33,24,10,7,8,34,47,23,25,26,28,48,49,59,29,30,65,60,9,11,53,17,18,66,35,50,12,13,62,73]))},{path:`/scenarios/:id`,name:`scenario`,component:()=>$(()=>import(`./ScenarioView-BhGQzLNp.js`),__vite__mapDeps([74,1,3,4,61,26,8,12,13,75]))},{path:`/tasks`,name:`tasks`,component:()=>$(()=>import(`./TasksView-MKm56lSe.js`),__vite__mapDeps([76,1,25,23,2,3,4,5,6,24,10,33,7,8,34,46,26,30,77,49,47,28,48,35,50,11,39,12,13,78]))},{path:`/users`,name:`users`,component:()=>$(()=>import(`./UsersView-DI_JrWt-.js`),__vite__mapDeps([79,1,2,3,4,5,6,33,24,10,7,8,34,77,49,30,26,9,11,50,12,13,80]))},{path:`/reviews`,name:`reviews`,component:()=>$(()=>import(`./ReviewsView-H3v1Qjq_.js`),__vite__mapDeps([81,1,2,3,4,5,6,7,8,50,10,11,61,26,12,13,82]))}]});async function Cc(e,t,n){let r=n();try{return await e()}catch(n){if(!(n instanceof Error)||n.message!==`unauthorized`||!await t(r))throw n;return e()}}function wc(e){let t=Ec();return Tc(t.refreshTokenAction,t.getToken,e)}function Tc(e,t,n){let r=Ee(t,n);return _e(n=>Cc(()=>r(n),e,t))}var Ec=ar(`auth`,()=>{let e=I(null),t=I(null),n=I(null),r=I(!1),i=I(null),a=null,o=0,s=!1,c=N(()=>!!e.value),l=N(()=>n.value?.username||``),u=N(()=>n.value?.roles||[]);function d(){e.value=localStorage.getItem(`accessToken`),t.value=localStorage.getItem(`refreshToken`)}function f(n,r){e.value=n,t.value=r||null,r?localStorage.setItem(`refreshToken`,r):localStorage.removeItem(`refreshToken`),localStorage.setItem(`accessToken`,n)}function p(){d(),s||=(window.addEventListener(`storage`,e=>{if(e.storageArea!==localStorage||e.key!==`accessToken`&&e.key!==null)return;let t=()=>{o++,d(),n.value=null,i.value=null,h()};a&&localStorage.getItem(`accessToken`)&&localStorage.getItem(`refreshToken`)?a.then(t,t):t()}),!0),h()}function m(){return e.value}async function h(){if(!e.value)return;let t=o;try{let r=await wc().GetMe({});r.user&&t===o&&e.value&&(n.value=r.user,i.value=null)}catch(e){t===o&&(i.value=e instanceof Error?e.message:`Не удалось восстановить сессию`)}}async function g(e,t){r.value=!0,i.value=null;let a=++o;try{let r=await ze().Login({email:e,password:t});return r.accessToken&&a===o?(n.value=null,f(r.accessToken,r.refreshToken),await h(),!0):!1}catch(e){return i.value=e instanceof Error?e.message:`Login failed`,!1}finally{r.value=!1}}function _(n=e.value){if(a)return a;let r=o,i=t.value,s=async()=>{if(r!==o)return!1;if(d(),!e.value||!t.value)return await x(),!1;if(e.value!==n||t.value!==i)return!0;try{let e=await ze().Refresh({refreshToken:i||void 0});if(r!==o||localStorage.getItem(`refreshToken`)!==i)return!1;if(!e.accessToken||!e.refreshToken)throw Error(`Сервер не вернул токены сессии`);return f(e.accessToken,e.refreshToken),!0}catch(e){if(r!==o||localStorage.getItem(`refreshToken`)!==i)return!1;if(e instanceof Error&&e.message===`unauthorized`)return await x(),!1;throw e}};return a=(navigator.locks?navigator.locks.request(`evening-detective-auth-refresh`,s):s()).finally(()=>{a=null}),a}async function v(e,t,n,a){r.value=!0,i.value=null;try{return await ze(m).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 y(e){r.value=!0,i.value=null;try{return await wc(()=>({"X-Password":e})).DeleteAccount({}),await x(),!0}catch(e){return i.value=e instanceof Error?e.message:`Account deletion failed`,!1}finally{r.value=!1}}async function b(e){r.value=!0,i.value=null;try{return await ze(m).RefreshPassword({email:e}),!0}catch(e){return i.value=e instanceof Error?e.message:`Password reset failed`,!1}finally{r.value=!1}}async function x(){o++,e.value=null,t.value=null,n.value=null,i.value=null,localStorage.removeItem(`refreshToken`),localStorage.removeItem(`accessToken`)}function S(e){return u.value.includes(e)}function C(e){return e.some(e=>u.value.includes(e))}return{accessToken:e,refreshToken:t,user:n,isLoading:r,error:i,isAuthenticated:c,username:l,userRoles:u,initFromStorage:p,getToken:m,login:g,signup:v,deleteAccount:y,refreshPassword:b,logout:x,fetchUser:h,refreshTokenAction:_,hasRole:S,hasAnyRole:C}}),Dc=Tn(vc);Dc.use(Kn()),Ec().initFromStorage(),Dc.use(Sc),Dc.mount(`#app`);export{sr as $,Ei as A,$r as B,ma as C,Ii as D,Ui as E,ci as F,qr as G,Zr as H,ai as I,pr as J,yr as K,ii as L,bi as M,gi as N,Mi as O,li as P,cr as Q,ni as R,Ta as S,Gi as T,Yr as U,Qr as V,Jr as W,ur as X,dr as Y,lr as Z,ho as _,ac as a,Tt as at,Ua as b,Is as c,Qo as d,ar as et,qo as f,vo as g,xo as h,Sc as i,gn as it,wi as j,ji as k,ks as l,Vo as m,wc as n,ct as nt,nc as o,xn as ot,Uo as p,mr as q,Cc as r,an as rt,Us as s,yn as st,Ec as t,or as tt,bs as u,so as v,Z as w,Aa as x,ro as y,ei as z}; \ No newline at end of file diff --git a/frontend/dist/assets/keep-ChD__NI5.js b/frontend/dist/assets/keep-Du8BxhQs.js similarity index 96% rename from frontend/dist/assets/keep-ChD__NI5.js rename to frontend/dist/assets/keep-Du8BxhQs.js index 67da91a..e4526dd 100644 --- a/frontend/dist/assets/keep-ChD__NI5.js +++ b/frontend/dist/assets/keep-Du8BxhQs.js @@ -1 +1 @@ -import{Mt as e,Ut as t,Vt as n,hn as r,ht as i,kt as a,nn as o}from"./client-vZFx54yb.js";import{d as s,f as c,u as l}from"./Card-DO3oxl4F.js";import{$ as u}from"./index-Ci0r-yTA.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=a({name:`FocusTrap`,props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:[String,Function],finalFocusTo:[String,Function],returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){let i=u(),a=r(null),f=r(null),h=!1,g=!1,v=typeof document>`u`?null:document.activeElement;function y(){return _[_.length-1]===i}function b(t){var n;t.code===`Escape`&&y()&&((n=e.onEsc)==null||n.call(e,t))}t(()=>{o(()=>e.active,e=>{e?(C(),s(`keydown`,document,b)):(l(`keydown`,document,b),h&&w())},{immediate:!0})}),n(()=>{l(`keydown`,document,b),h&&w()});function x(e){if(!g&&y()){let t=S();if(t===null||t.contains(c(e)))return;T(`first`)}}function S(){let e=a.value;if(e===null)return null;let t=e;for(;t=t.nextSibling,!(t===null||t instanceof Element&&t.tagName===`DIV`););return t}function C(){var t;if(!e.disabled){if(_.push(i),e.autoFocus){let{initialFocusTo:n}=e;n===void 0?T(`first`):(t=d(n))==null||t.focus({preventScroll:!0})}h=!0,document.addEventListener(`focus`,x,!0)}}function w(){var t;if(e.disabled||(document.removeEventListener(`focus`,x,!0),_=_.filter(e=>e!==i),y()))return;let{finalFocusTo:n}=e;n===void 0?e.returnFocusOnDeactivated&&v instanceof HTMLElement&&(g=!0,v.focus({preventScroll:!0}),g=!1):(t=d(n))==null||t.focus({preventScroll:!0})}function T(t){if(y()&&e.active){let e=a.value,n=f.value;if(e!==null&&n!==null){let r=S();if(r==null||r===n){g=!0,e.focus({preventScroll:!0}),g=!1;return}g=!0;let i=t===`first`?p(r):m(r);g=!1,i||(g=!0,e.focus({preventScroll:!0}),g=!1)}}}function E(e){if(g)return;let t=S();t!==null&&(e.relatedTarget!==null&&t.contains(e.relatedTarget)?T(`last`):T(`first`))}function D(e){g||(e.relatedTarget!==null&&e.relatedTarget===a.value?T(`last`):T(`first`))}return{focusableStartRef:a,focusableEndRef:f,focusableStyle:`position: absolute; height: 0; width: 0;`,handleStartFocus:E,handleEndFocus:D}},render(){let{default:t}=this.$slots;if(t===void 0)return null;if(this.disabled)return t();let{active:n,focusableStyle:r}=this;return e(i,null,[e(`div`,{"aria-hidden":`true`,tabindex:n?`0`:`-1`,ref:`focusableStartRef`,style:r,onFocus:this.handleStartFocus}),t(),e(`div`,{"aria-hidden":`true`,style:r,ref:`focusableEndRef`,tabindex:n?`0`:`-1`,onFocus:this.handleEndFocus})])}}),y=new WeakSet;function b(e){y.add(e)}function x(e){return!y.has(e)}function S(e,t=[],n){let r={};return t.forEach(t=>{r[t]=e[t]}),Object.assign(r,n)}export{v as i,x as n,b as r,S as t}; \ No newline at end of file +import{Mt as e,Ut as t,Vt as n,hn as r,ht as i,kt as a,nn as o}from"./client-CREJv8AD.js";import{d as s,f as c,u as l}from"./Card-CJC2gN5t.js";import{$ as u}from"./index-DZpFhWFx.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=a({name:`FocusTrap`,props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:[String,Function],finalFocusTo:[String,Function],returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){let i=u(),a=r(null),f=r(null),h=!1,g=!1,v=typeof document>`u`?null:document.activeElement;function y(){return _[_.length-1]===i}function b(t){var n;t.code===`Escape`&&y()&&((n=e.onEsc)==null||n.call(e,t))}t(()=>{o(()=>e.active,e=>{e?(C(),s(`keydown`,document,b)):(l(`keydown`,document,b),h&&w())},{immediate:!0})}),n(()=>{l(`keydown`,document,b),h&&w()});function x(e){if(!g&&y()){let t=S();if(t===null||t.contains(c(e)))return;T(`first`)}}function S(){let e=a.value;if(e===null)return null;let t=e;for(;t=t.nextSibling,!(t===null||t instanceof Element&&t.tagName===`DIV`););return t}function C(){var t;if(!e.disabled){if(_.push(i),e.autoFocus){let{initialFocusTo:n}=e;n===void 0?T(`first`):(t=d(n))==null||t.focus({preventScroll:!0})}h=!0,document.addEventListener(`focus`,x,!0)}}function w(){var t;if(e.disabled||(document.removeEventListener(`focus`,x,!0),_=_.filter(e=>e!==i),y()))return;let{finalFocusTo:n}=e;n===void 0?e.returnFocusOnDeactivated&&v instanceof HTMLElement&&(g=!0,v.focus({preventScroll:!0}),g=!1):(t=d(n))==null||t.focus({preventScroll:!0})}function T(t){if(y()&&e.active){let e=a.value,n=f.value;if(e!==null&&n!==null){let r=S();if(r==null||r===n){g=!0,e.focus({preventScroll:!0}),g=!1;return}g=!0;let i=t===`first`?p(r):m(r);g=!1,i||(g=!0,e.focus({preventScroll:!0}),g=!1)}}}function E(e){if(g)return;let t=S();t!==null&&(e.relatedTarget!==null&&t.contains(e.relatedTarget)?T(`last`):T(`first`))}function D(e){g||(e.relatedTarget!==null&&e.relatedTarget===a.value?T(`last`):T(`first`))}return{focusableStartRef:a,focusableEndRef:f,focusableStyle:`position: absolute; height: 0; width: 0;`,handleStartFocus:E,handleEndFocus:D}},render(){let{default:t}=this.$slots;if(t===void 0)return null;if(this.disabled)return t();let{active:n,focusableStyle:r}=this;return e(i,null,[e(`div`,{"aria-hidden":`true`,tabindex:n?`0`:`-1`,ref:`focusableStartRef`,style:r,onFocus:this.handleStartFocus}),t(),e(`div`,{"aria-hidden":`true`,style:r,ref:`focusableEndRef`,tabindex:n?`0`:`-1`,onFocus:this.handleEndFocus})])}}),y=new WeakSet;function b(e){y.add(e)}function x(e){return!y.has(e)}function S(e,t=[],n){let r={};return t.forEach(t=>{r[t]=e[t]}),Object.assign(r,n)}export{v as i,x as n,b as r,S as t}; \ No newline at end of file diff --git a/frontend/dist/assets/light-Xi4LoDb_.js b/frontend/dist/assets/light-B8TOsMif.js similarity index 95% rename from frontend/dist/assets/light-Xi4LoDb_.js rename to frontend/dist/assets/light-B8TOsMif.js index be1cff5..8d7add1 100644 --- a/frontend/dist/assets/light-Xi4LoDb_.js +++ b/frontend/dist/assets/light-B8TOsMif.js @@ -1 +1 @@ -import{d as e}from"./client-vZFx54yb.js";var t={railInsetHorizontalBottom:`auto 2px 4px 2px`,railInsetHorizontalTop:`4px 2px auto 2px`,railInsetVerticalRight:`2px 4px 2px auto`,railInsetVerticalLeft:`2px auto 2px 4px`,railColor:`transparent`};function n(e){let{scrollbarColor:n,scrollbarColorHover:r,scrollbarHeight:i,scrollbarWidth:a,scrollbarBorderRadius:o}=e;return Object.assign(Object.assign({},t),{height:i,width:a,borderRadius:o,color:n,colorHover:r})}var r={name:`Scrollbar`,common:e,self:n},i={paddingSmall:`12px 16px 12px`,paddingMedium:`19px 24px 20px`,paddingLarge:`23px 32px 24px`,paddingHuge:`27px 40px 28px`,titleFontSizeSmall:`16px`,titleFontSizeMedium:`18px`,titleFontSizeLarge:`18px`,titleFontSizeHuge:`18px`,closeIconSize:`18px`,closeSize:`22px`};function a(e){let{primaryColor:t,borderRadius:n,lineHeight:r,fontSize:a,cardColor:o,textColor2:s,textColor1:c,dividerColor:l,fontWeightStrong:u,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:p,closeColorHover:m,closeColorPressed:h,modalColor:g,boxShadow1:_,popoverColor:v,actionColor:y}=e;return Object.assign(Object.assign({},i),{lineHeight:r,color:o,colorModal:g,colorPopover:v,colorTarget:t,colorEmbedded:y,colorEmbeddedModal:y,colorEmbeddedPopover:y,textColor:s,titleTextColor:c,borderColor:l,actionColor:y,titleFontWeight:u,closeColorHover:m,closeColorPressed:h,closeBorderRadius:n,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:p,fontSizeSmall:a,fontSizeMedium:a,fontSizeLarge:a,fontSizeHuge:a,boxShadow:_,borderRadius:n})}var o={name:`Card`,common:e,self:a};export{n as i,a as n,r,o as t}; \ No newline at end of file +import{d as e}from"./client-CREJv8AD.js";var t={railInsetHorizontalBottom:`auto 2px 4px 2px`,railInsetHorizontalTop:`4px 2px auto 2px`,railInsetVerticalRight:`2px 4px 2px auto`,railInsetVerticalLeft:`2px auto 2px 4px`,railColor:`transparent`};function n(e){let{scrollbarColor:n,scrollbarColorHover:r,scrollbarHeight:i,scrollbarWidth:a,scrollbarBorderRadius:o}=e;return Object.assign(Object.assign({},t),{height:i,width:a,borderRadius:o,color:n,colorHover:r})}var r={name:`Scrollbar`,common:e,self:n},i={paddingSmall:`12px 16px 12px`,paddingMedium:`19px 24px 20px`,paddingLarge:`23px 32px 24px`,paddingHuge:`27px 40px 28px`,titleFontSizeSmall:`16px`,titleFontSizeMedium:`18px`,titleFontSizeLarge:`18px`,titleFontSizeHuge:`18px`,closeIconSize:`18px`,closeSize:`22px`};function a(e){let{primaryColor:t,borderRadius:n,lineHeight:r,fontSize:a,cardColor:o,textColor2:s,textColor1:c,dividerColor:l,fontWeightStrong:u,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:p,closeColorHover:m,closeColorPressed:h,modalColor:g,boxShadow1:_,popoverColor:v,actionColor:y}=e;return Object.assign(Object.assign({},i),{lineHeight:r,color:o,colorModal:g,colorPopover:v,colorTarget:t,colorEmbedded:y,colorEmbeddedModal:y,colorEmbeddedPopover:y,textColor:s,titleTextColor:c,borderColor:l,actionColor:y,titleFontWeight:u,closeColorHover:m,closeColorPressed:h,closeBorderRadius:n,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:p,fontSizeSmall:a,fontSizeMedium:a,fontSizeLarge:a,fontSizeHuge:a,boxShadow:_,borderRadius:n})}var o={name:`Card`,common:e,self:a};export{n as i,a as n,r,o as t}; \ No newline at end of file diff --git a/frontend/dist/assets/use-compitable-CCPds9Cc.js b/frontend/dist/assets/use-compitable-Be-NyPXq.js similarity index 57% rename from frontend/dist/assets/use-compitable-CCPds9Cc.js rename to frontend/dist/assets/use-compitable-Be-NyPXq.js index a77c6c7..384d9a0 100644 --- a/frontend/dist/assets/use-compitable-CCPds9Cc.js +++ b/frontend/dist/assets/use-compitable-Be-NyPXq.js @@ -1 +1 @@ -import{bt as e}from"./client-vZFx54yb.js";function t(t,n){return e(()=>{for(let e of n)if(t[e]!==void 0)return t[e];return t[n[n.length-1]]})}export{t}; \ No newline at end of file +import{bt as e}from"./client-CREJv8AD.js";function t(t,n){return e(()=>{for(let e of n)if(t[e]!==void 0)return t[e];return t[n[n.length-1]]})}export{t}; \ No newline at end of file diff --git a/frontend/dist/assets/use-form-item-DwWmLpgT.js b/frontend/dist/assets/use-form-item-CbDeFP5E.js similarity index 83% rename from frontend/dist/assets/use-form-item-DwWmLpgT.js rename to frontend/dist/assets/use-form-item-CbDeFP5E.js index a0e1940..fe2aae2 100644 --- a/frontend/dist/assets/use-form-item-DwWmLpgT.js +++ b/frontend/dist/assets/use-form-item-CbDeFP5E.js @@ -1 +1 @@ -import{Pt as e,Vt as t,Y as n,bt as r,qt as i}from"./client-vZFx54yb.js";var a=n(`n-form-item`);function o(n,{defaultSize:o=`medium`,mergedSize:s,mergedDisabled:c}={}){let l=e(a,null);i(a,null);let u=r(s?()=>s(l):()=>{let{size:e}=n;if(e)return e;if(l){let{mergedSize:e}=l;if(e.value!==void 0)return e.value}return o}),d=r(c?()=>c(l):()=>{let{disabled:e}=n;return e===void 0?l?l.disabled.value:!1:e}),f=r(()=>{let{status:e}=n;return e||l?.mergedValidationStatus.value});return t(()=>{l&&l.restoreValidation()}),{mergedSizeRef:u,mergedDisabledRef:d,mergedStatusRef:f,nTriggerFormBlur(){l&&l.handleContentBlur()},nTriggerFormChange(){l&&l.handleContentChange()},nTriggerFormFocus(){l&&l.handleContentFocus()},nTriggerFormInput(){l&&l.handleContentInput()}}}export{o as n,a as t}; \ No newline at end of file +import{Pt as e,Vt as t,Y as n,bt as r,qt as i}from"./client-CREJv8AD.js";var a=n(`n-form-item`);function o(n,{defaultSize:o=`medium`,mergedSize:s,mergedDisabled:c}={}){let l=e(a,null);i(a,null);let u=r(s?()=>s(l):()=>{let{size:e}=n;if(e)return e;if(l){let{mergedSize:e}=l;if(e.value!==void 0)return e.value}return o}),d=r(c?()=>c(l):()=>{let{disabled:e}=n;return e===void 0?l?l.disabled.value:!1:e}),f=r(()=>{let{status:e}=n;return e||l?.mergedValidationStatus.value});return t(()=>{l&&l.restoreValidation()}),{mergedSizeRef:u,mergedDisabledRef:d,mergedStatusRef:f,nTriggerFormBlur(){l&&l.handleContentBlur()},nTriggerFormChange(){l&&l.handleContentChange()},nTriggerFormFocus(){l&&l.handleContentFocus()},nTriggerFormInput(){l&&l.handleContentInput()}}}export{o as n,a as t}; \ No newline at end of file diff --git a/frontend/dist/assets/use-merged-state-CEu_RNRJ.js b/frontend/dist/assets/use-merged-state-B6hyXujy.js similarity index 60% rename from frontend/dist/assets/use-merged-state-CEu_RNRJ.js rename to frontend/dist/assets/use-merged-state-B6hyXujy.js index b5d2ee7..b31a6aa 100644 --- a/frontend/dist/assets/use-merged-state-CEu_RNRJ.js +++ b/frontend/dist/assets/use-merged-state-B6hyXujy.js @@ -1 +1 @@ -import{bt as e,nn as t}from"./client-vZFx54yb.js";function n(n,r){return t(n,e=>{e!==void 0&&(r.value=e)}),e(()=>n.value===void 0?r.value:n.value)}export{n as t}; \ No newline at end of file +import{bt as e,nn as t}from"./client-CREJv8AD.js";function n(n,r){return t(n,e=>{e!==void 0&&(r.value=e)}),e(()=>n.value===void 0?r.value:n.value)}export{n as t}; \ No newline at end of file diff --git a/frontend/dist/assets/useSimplePolling-ntn8lfqD.js b/frontend/dist/assets/useSimplePolling-C5AtW5j-.js similarity index 74% rename from frontend/dist/assets/useSimplePolling-ntn8lfqD.js rename to frontend/dist/assets/useSimplePolling-C5AtW5j-.js index a2521f4..e16c85d 100644 --- a/frontend/dist/assets/useSimplePolling-ntn8lfqD.js +++ b/frontend/dist/assets/useSimplePolling-C5AtW5j-.js @@ -1 +1 @@ -import{Ut as e,Wt as t,hn as n}from"./client-vZFx54yb.js";function r(r,i=5e3){let a=n(!0),o=null,s=()=>{a.value=!0,r(),o=window.setInterval(r,i)},c=()=>{a.value=!1,o&&=(clearInterval(o),null)};return e(s),t(c),{isActive:a,start:s,stop:c}}export{r as t}; \ No newline at end of file +import{Ut as e,Wt as t,hn as n}from"./client-CREJv8AD.js";function r(r,i=5e3){let a=n(!0),o=null,s=()=>{a.value=!0,r(),o=window.setInterval(r,i)},c=()=>{a.value=!1,o&&=(clearInterval(o),null)};return e(s),t(c),{isActive:a,start:s,stop:c}}export{r as t}; \ No newline at end of file diff --git a/frontend/dist/assets/utils-DJHY09qj.js b/frontend/dist/assets/utils-BJnNAJm2.js similarity index 98% rename from frontend/dist/assets/utils-DJHY09qj.js rename to frontend/dist/assets/utils-BJnNAJm2.js index dbbe7fe..e7c03f6 100644 --- a/frontend/dist/assets/utils-DJHY09qj.js +++ b/frontend/dist/assets/utils-BJnNAJm2.js @@ -1,4 +1,4 @@ -import{H as e,Ht as t,J as n,Lt as r,Mt as i,Pt as a,Rt as o,U as s,Ut as c,Vt as l,_n as u,at as d,bt as f,g as p,hn as m,it as h,kt as g,nn as _,nt as v,ot as y,p as b,qt as x,st as S,tt as C,zt as w}from"./client-vZFx54yb.js";import{c as T,n as E,r as D,s as O,u as k}from"./Follower-CdAIcE29.js";import{c as A,i as j,l as M}from"./Card-DO3oxl4F.js";import{i as N,o as P,s as F}from"./es-DSPBzgpf.js";import{i as ee,n as I}from"./Suffix-iau-0Xu1.js";import{i as L,o as R}from"./_plugin-vue_export-helper-FodinAjS.js";import{G as te,M as ne,N as re,P as ie,Q as z,Y as B,nt as ae}from"./index-Ci0r-yTA.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=m(0),i=m(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 x(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=g({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=g({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 r=n();oe.mount({id:`vueuc/virtual-list`,head:!0,anchorMetaName:D,ssr:r}),c(()=>{let{defaultScrollIndex:t,defaultScrollKey:n}=e;t==null?n!=null&&S({key:n}):S({index:t})});let i=!1,a=!1;w(()=>{if(i=!1,!a){a=!0;return}S({top:y.value,left:l.value})}),t(()=>{i=!0,a||=!0});let o=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}),s=f(()=>{let t=new Map,{keyField:n}=e;return e.items.forEach((e,r)=>{t.set(e[n],r)}),t}),{scrollLeftRef:l,listWidthRef:d}=Y({columnsRef:u(e,`columns`),renderColRef:u(e,`renderCol`),renderItemWithColsRef:u(e,`renderItemWithCols`)}),p=m(null),h=m(void 0),g=new Map,_=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=g.get(n);a!==void 0&&i.add(t,a)}),i}),v=m(0),y=m(0),b=z(()=>Math.max(_.value.getBound(y.value-N(e.paddingTop))-1,0)),x=f(()=>{let{value:t}=h;if(t===void 0)return[];let{items:n,itemSize:r}=e,i=b.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}),S=(e,t)=>{if(typeof e==`number`){O(e,t,`auto`);return}let{left:n,top:r,index:i,key:a,position:o,behavior:c,debounce:l=!0}=e;if(n!==void 0||r!==void 0)O(n,r,c);else if(i!==void 0)E(i,c,l);else if(a!==void 0){let e=s.value.get(a);e!==void 0&&E(e,c,l)}else o===`bottom`?O(0,2**53-1,c):o===`top`&&O(0,0,c)},C,T=null;function E(t,n,r){let{value:i}=_,a=i.sum(t)+N(e.paddingTop);if(!r)p.value.scrollTo({left:0,top:a,behavior:n});else{C=t,T!==null&&window.clearTimeout(T),T=window.setTimeout(()=>{C=void 0,T=null},16);let{scrollTop:e,offsetHeight:r}=p.value;if(a>e){let o=i.get(t);a+o<=e+r||p.value.scrollTo({left:0,top:a+o-r,behavior:n})}else p.value.scrollTo({left:0,top:a,behavior:n})}}function O(e,t,n){p.value.scrollTo({left:e,top:t,behavior:n})}function A(t,n){if(i||e.ignoreItemResize||R(n.target))return;let{value:r}=_,a=s.value.get(t),o=r.get(a),c=n.borderBoxSize?.[0]?.blockSize??n.contentRect.height;if(c===o)return;c-e.itemSize===0?g.delete(t):g.set(t,c-e.itemSize);let l=c-o;if(l===0)return;r.add(a,l);let u=p.value;if(u!=null){if(C===void 0){let e=r.sum(a);u.scrollTop>e&&u.scrollBy(0,l)}else(au.scrollTop+u.offsetHeight)&&u.scrollBy(0,l);L()}v.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=p.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(i||R(t.target))return;if(e.renderCol==null&&e.renderItemWithCols==null){if(t.contentRect.height===h.value)return}else if(t.contentRect.height===h.value&&t.contentRect.width===d.value)return;h.value=t.contentRect.height,d.value=t.contentRect.width;let{onResize:n}=e;n!==void 0&&n(t)}function L(){let{value:e}=p;e!=null&&(y.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:h,listStyle:{overflow:`auto`},keyToIndex:s,itemsStyle:f(()=>{let{itemResizable:t}=e,n=F(_.value.sum());return v.value,[e.itemsStyle,{boxSizing:`content-box`,width:F(o.value),height:t?``:n,minHeight:t?n:``,paddingTop:F(e.paddingTop),paddingBottom:F(e.paddingBottom)}]}),visibleItemsStyle:f(()=>(v.value,{transform:`translateY(${F(_.value.sum(b.value))})`})),viewportItems:x,listElRef:p,itemsElRef:m(null),scrollTo:S,handleListResize:I,handleListScroll:P,handleListWheel:ee,handleItemResize:A}},render(){let{itemResizable:e,keyField:t,keyToIndex:n,visibleItemsTag:a}=this;return i(A,{onResize:this.handleListResize},{default:()=>{var o;return i(`div`,r(this.$attrs,{class:[`v-vl`,this.showScrollbar&&`v-vl--show-scrollbar`],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:`listElRef`}),[this.items.length===0?(o=this.$slots).empty?.call(o):i(`div`,{ref:`itemsElRef`,class:`v-vl-items`,style:this.itemsStyle},[i(a,Object.assign({class:`v-vl-visible-items`,style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>{let{renderCol:r,renderItemWithCols:a}=this;return this.viewportItems.map(o=>{let s=o[t],c=n.get(s),l=r==null?void 0:i(X,{index:c,item:o}),u=a==null?void 0:i(X,{index:c,item:o}),d=this.$slots.default({item:o,renderedCols:l,renderedItemWithCols:u,index:c})[0];return e?i(A,{key:s,onResize:e=>this.handleItemResize(s,e)},{default:()=>d}):(d.key=s,d)})}})])])}})}});function ce(e,t){t&&(c(()=>{let{value:n}=e;n&&M.registerHandler(n,t)}),_(e,(e,t)=>{t&&M.unregisterHandler(t)},{deep:!1}),l(()=>{let{value:t}=e;t&&M.unregisterHandler(t)}))}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=g({name:`Checkmark`,render(){return i(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 16 16`},i(`g`,{fill:`none`},i(`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=g({name:`Empty`,render(){return i(`svg`,{viewBox:`0 0 28 28`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},i(`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`}),i(`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=g({props:{onFocus:Function,onBlur:Function},setup(e){return()=>i(`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=v(`empty`,` +import{H as e,Ht as t,J as n,Lt as r,Mt as i,Pt as a,Rt as o,U as s,Ut as c,Vt as l,_n as u,at as d,bt as f,g as p,hn as m,it as h,kt as g,nn as _,nt as v,ot as y,p as b,qt as x,st as S,tt as C,zt as w}from"./client-CREJv8AD.js";import{c as T,n as E,r as D,s as O,u as k}from"./Follower-DAIDHT2D.js";import{c as A,i as j,l as M}from"./Card-CJC2gN5t.js";import{i as N,o as P,s as F}from"./es-CevmKZP_.js";import{i as ee,n as I}from"./Suffix-iFHNypz-.js";import{i as L,o as R}from"./_plugin-vue_export-helper-BkfvhliL.js";import{G as te,M as ne,N as re,P as ie,Q as z,Y as B,nt as ae}from"./index-DZpFhWFx.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=m(0),i=m(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 x(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=g({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=g({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 r=n();oe.mount({id:`vueuc/virtual-list`,head:!0,anchorMetaName:D,ssr:r}),c(()=>{let{defaultScrollIndex:t,defaultScrollKey:n}=e;t==null?n!=null&&S({key:n}):S({index:t})});let i=!1,a=!1;w(()=>{if(i=!1,!a){a=!0;return}S({top:y.value,left:l.value})}),t(()=>{i=!0,a||=!0});let o=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}),s=f(()=>{let t=new Map,{keyField:n}=e;return e.items.forEach((e,r)=>{t.set(e[n],r)}),t}),{scrollLeftRef:l,listWidthRef:d}=Y({columnsRef:u(e,`columns`),renderColRef:u(e,`renderCol`),renderItemWithColsRef:u(e,`renderItemWithCols`)}),p=m(null),h=m(void 0),g=new Map,_=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=g.get(n);a!==void 0&&i.add(t,a)}),i}),v=m(0),y=m(0),b=z(()=>Math.max(_.value.getBound(y.value-N(e.paddingTop))-1,0)),x=f(()=>{let{value:t}=h;if(t===void 0)return[];let{items:n,itemSize:r}=e,i=b.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}),S=(e,t)=>{if(typeof e==`number`){O(e,t,`auto`);return}let{left:n,top:r,index:i,key:a,position:o,behavior:c,debounce:l=!0}=e;if(n!==void 0||r!==void 0)O(n,r,c);else if(i!==void 0)E(i,c,l);else if(a!==void 0){let e=s.value.get(a);e!==void 0&&E(e,c,l)}else o===`bottom`?O(0,2**53-1,c):o===`top`&&O(0,0,c)},C,T=null;function E(t,n,r){let{value:i}=_,a=i.sum(t)+N(e.paddingTop);if(!r)p.value.scrollTo({left:0,top:a,behavior:n});else{C=t,T!==null&&window.clearTimeout(T),T=window.setTimeout(()=>{C=void 0,T=null},16);let{scrollTop:e,offsetHeight:r}=p.value;if(a>e){let o=i.get(t);a+o<=e+r||p.value.scrollTo({left:0,top:a+o-r,behavior:n})}else p.value.scrollTo({left:0,top:a,behavior:n})}}function O(e,t,n){p.value.scrollTo({left:e,top:t,behavior:n})}function A(t,n){if(i||e.ignoreItemResize||R(n.target))return;let{value:r}=_,a=s.value.get(t),o=r.get(a),c=n.borderBoxSize?.[0]?.blockSize??n.contentRect.height;if(c===o)return;c-e.itemSize===0?g.delete(t):g.set(t,c-e.itemSize);let l=c-o;if(l===0)return;r.add(a,l);let u=p.value;if(u!=null){if(C===void 0){let e=r.sum(a);u.scrollTop>e&&u.scrollBy(0,l)}else(au.scrollTop+u.offsetHeight)&&u.scrollBy(0,l);L()}v.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=p.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(i||R(t.target))return;if(e.renderCol==null&&e.renderItemWithCols==null){if(t.contentRect.height===h.value)return}else if(t.contentRect.height===h.value&&t.contentRect.width===d.value)return;h.value=t.contentRect.height,d.value=t.contentRect.width;let{onResize:n}=e;n!==void 0&&n(t)}function L(){let{value:e}=p;e!=null&&(y.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:h,listStyle:{overflow:`auto`},keyToIndex:s,itemsStyle:f(()=>{let{itemResizable:t}=e,n=F(_.value.sum());return v.value,[e.itemsStyle,{boxSizing:`content-box`,width:F(o.value),height:t?``:n,minHeight:t?n:``,paddingTop:F(e.paddingTop),paddingBottom:F(e.paddingBottom)}]}),visibleItemsStyle:f(()=>(v.value,{transform:`translateY(${F(_.value.sum(b.value))})`})),viewportItems:x,listElRef:p,itemsElRef:m(null),scrollTo:S,handleListResize:I,handleListScroll:P,handleListWheel:ee,handleItemResize:A}},render(){let{itemResizable:e,keyField:t,keyToIndex:n,visibleItemsTag:a}=this;return i(A,{onResize:this.handleListResize},{default:()=>{var o;return i(`div`,r(this.$attrs,{class:[`v-vl`,this.showScrollbar&&`v-vl--show-scrollbar`],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:`listElRef`}),[this.items.length===0?(o=this.$slots).empty?.call(o):i(`div`,{ref:`itemsElRef`,class:`v-vl-items`,style:this.itemsStyle},[i(a,Object.assign({class:`v-vl-visible-items`,style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>{let{renderCol:r,renderItemWithCols:a}=this;return this.viewportItems.map(o=>{let s=o[t],c=n.get(s),l=r==null?void 0:i(X,{index:c,item:o}),u=a==null?void 0:i(X,{index:c,item:o}),d=this.$slots.default({item:o,renderedCols:l,renderedItemWithCols:u,index:c})[0];return e?i(A,{key:s,onResize:e=>this.handleItemResize(s,e)},{default:()=>d}):(d.key=s,d)})}})])])}})}});function ce(e,t){t&&(c(()=>{let{value:n}=e;n&&M.registerHandler(n,t)}),_(e,(e,t)=>{t&&M.unregisterHandler(t)},{deep:!1}),l(()=>{let{value:t}=e;t&&M.unregisterHandler(t)}))}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=g({name:`Checkmark`,render(){return i(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 16 16`},i(`g`,{fill:`none`},i(`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=g({name:`Empty`,render(){return i(`svg`,{viewBox:`0 0 28 28`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},i(`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`}),i(`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=g({props:{onFocus:Function,onBlur:Function},setup(e){return()=>i(`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=v(`empty`,` display: flex; flex-direction: column; align-items: center; diff --git a/frontend/dist/index.html b/frontend/dist/index.html index 0b9d6e9..842133e 100644 --- a/frontend/dist/index.html +++ b/frontend/dist/index.html @@ -5,9 +5,9 @@ Вечерний детектив - - - + + + diff --git a/migrations/20261010180000_create_game_exports.sql b/migrations/20261010180000_create_game_exports.sql new file mode 100644 index 0000000..8805012 --- /dev/null +++ b/migrations/20261010180000_create_game_exports.sql @@ -0,0 +1,25 @@ +-- +goose Up +CREATE TABLE game_exports ( + id TEXT PRIMARY KEY, + game_id INTEGER REFERENCES games(id) ON DELETE SET NULL, + initiator_id INTEGER REFERENCES users(id) ON DELETE SET NULL, + state TEXT NOT NULL DEFAULT 'preparing' CHECK (state IN ('preparing', 'ready', 'failed')), + snapshot JSONB NOT NULL, + source_server TEXT NOT NULL, + created_at TIMESTAMPTZ NOT NULL DEFAULT clock_timestamp(), + owner_id TEXT, + lease_until TIMESTAMPTZ, + package_id TEXT NOT NULL DEFAULT '', + size BIGINT NOT NULL DEFAULT 0, + sha256 TEXT NOT NULL DEFAULT '', + object_key TEXT NOT NULL UNIQUE, + failure TEXT NOT NULL DEFAULT '', + cleaned_at TIMESTAMPTZ, + CHECK (state <> 'ready' OR (package_id <> '' AND size > 0 AND sha256 <> '')) +); +CREATE UNIQUE INDEX game_exports_active ON game_exports(game_id) WHERE state IN ('preparing', 'ready'); +CREATE INDEX game_exports_game ON game_exports(game_id, created_at DESC); +CREATE INDEX game_exports_pending ON game_exports(created_at) WHERE state = 'preparing'; + +-- +goose Down +DROP TABLE game_exports;