up
This commit is contained in:
Binary file not shown.
+1
-1
@@ -1 +1 @@
|
||||
import{I as e,N as t}from"./client-DXlIdAPE.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};
|
||||
import{I as e,N as t}from"./client-Dr2LhGo3.js";var n=t({name:`Add`,render(){return e(`svg`,{width:`512`,height:`512`,viewBox:`0 0 512 512`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e(`path`,{d:`M256 112V400M400 256H112`,stroke:`currentColor`,"stroke-width":`32`,"stroke-linecap":`round`,"stroke-linejoin":`round`}))}});export{n as t};
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{B as e,I as t,N as n,gt as r,w as i}from"./client-DXlIdAPE.js";import{G as a,H as o,I as s,L as c,M as l,N as u,V as d,W as f,o as p,q as m,r as h,t as g}from"./light-BIsOPw8z.js";import{r as _}from"./css-DEmdllcC.js";import{a as v,r as y}from"./resolve-slot-CYut2r4x.js";import{B as b,E as x,F as S,L as C,P as w,R as T,T as E,U as D,z as O}from"./index-Cvq506nd.js";function k(e){let{lineHeight:t,borderRadius:n,fontWeightStrong:r,baseColor:i,dividerColor:a,actionColor:o,textColor1:l,textColor2:u,closeColorHover:d,closeColorPressed:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,infoColor:g,successColor:_,warningColor:v,errorColor:y,fontSize:b}=e;return Object.assign(Object.assign({},x),{fontSize:b,lineHeight:t,titleFontWeight:r,borderRadius:n,border:`1px solid ${a}`,color:o,titleTextColor:l,iconColor:u,contentTextColor:u,closeBorderRadius:n,closeColorHover:d,closeColorPressed:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,borderInfo:`1px solid ${c(i,s(g,{alpha:.25}))}`,colorInfo:c(i,s(g,{alpha:.08})),titleTextColorInfo:l,iconColorInfo:g,contentTextColorInfo:u,closeColorHoverInfo:d,closeColorPressedInfo:f,closeIconColorInfo:p,closeIconColorHoverInfo:m,closeIconColorPressedInfo:h,borderSuccess:`1px solid ${c(i,s(_,{alpha:.25}))}`,colorSuccess:c(i,s(_,{alpha:.08})),titleTextColorSuccess:l,iconColorSuccess:_,contentTextColorSuccess:u,closeColorHoverSuccess:d,closeColorPressedSuccess:f,closeIconColorSuccess:p,closeIconColorHoverSuccess:m,closeIconColorPressedSuccess:h,borderWarning:`1px solid ${c(i,s(v,{alpha:.33}))}`,colorWarning:c(i,s(v,{alpha:.08})),titleTextColorWarning:l,iconColorWarning:v,contentTextColorWarning:u,closeColorHoverWarning:d,closeColorPressedWarning:f,closeIconColorWarning:p,closeIconColorHoverWarning:m,closeIconColorPressedWarning:h,borderError:`1px solid ${c(i,s(y,{alpha:.25}))}`,colorError:c(i,s(y,{alpha:.08})),titleTextColorError:l,iconColorError:y,contentTextColorError:u,closeColorHoverError:d,closeColorPressedError:f,closeIconColorError:p,closeIconColorHoverError:m,closeIconColorPressedError:h})}var A={name:`Alert`,common:g,self:k},j=o(`alert`,`
|
||||
import{B as e,I as t,N as n,gt as r,w as i}from"./client-Dr2LhGo3.js";import{G as a,H as o,I as s,L as c,M as l,N as u,V as d,W as f,o as p,q as m,r as h,t as g}from"./light-DXa4IKh6.js";import{r as _}from"./css-DEmdllcC.js";import{a as v,r as y}from"./resolve-slot-DAynYbhJ.js";import{B as b,E as x,F as S,L as C,P as w,R as T,T as E,U as D,z as O}from"./index-CML5W5F9.js";function k(e){let{lineHeight:t,borderRadius:n,fontWeightStrong:r,baseColor:i,dividerColor:a,actionColor:o,textColor1:l,textColor2:u,closeColorHover:d,closeColorPressed:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,infoColor:g,successColor:_,warningColor:v,errorColor:y,fontSize:b}=e;return Object.assign(Object.assign({},x),{fontSize:b,lineHeight:t,titleFontWeight:r,borderRadius:n,border:`1px solid ${a}`,color:o,titleTextColor:l,iconColor:u,contentTextColor:u,closeBorderRadius:n,closeColorHover:d,closeColorPressed:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,borderInfo:`1px solid ${c(i,s(g,{alpha:.25}))}`,colorInfo:c(i,s(g,{alpha:.08})),titleTextColorInfo:l,iconColorInfo:g,contentTextColorInfo:u,closeColorHoverInfo:d,closeColorPressedInfo:f,closeIconColorInfo:p,closeIconColorHoverInfo:m,closeIconColorPressedInfo:h,borderSuccess:`1px solid ${c(i,s(_,{alpha:.25}))}`,colorSuccess:c(i,s(_,{alpha:.08})),titleTextColorSuccess:l,iconColorSuccess:_,contentTextColorSuccess:u,closeColorHoverSuccess:d,closeColorPressedSuccess:f,closeIconColorSuccess:p,closeIconColorHoverSuccess:m,closeIconColorPressedSuccess:h,borderWarning:`1px solid ${c(i,s(v,{alpha:.33}))}`,colorWarning:c(i,s(v,{alpha:.08})),titleTextColorWarning:l,iconColorWarning:v,contentTextColorWarning:u,closeColorHoverWarning:d,closeColorPressedWarning:f,closeIconColorWarning:p,closeIconColorHoverWarning:m,closeIconColorPressedWarning:h,borderError:`1px solid ${c(i,s(y,{alpha:.25}))}`,colorError:c(i,s(y,{alpha:.08})),titleTextColorError:l,iconColorError:y,contentTextColorError:u,closeColorHoverError:d,closeColorPressedError:f,closeIconColorError:p,closeIconColorHoverError:m,closeIconColorPressedError:h})}var A={name:`Alert`,common:g,self:k},j=o(`alert`,`
|
||||
line-height: var(--n-line-height);
|
||||
border-radius: var(--n-border-radius);
|
||||
position: relative;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{I as e,N as t,R as n,V as r,W as i,gt as a,m as o,w as s,yt as c}from"./client-DXlIdAPE.js";import{G as l,H as u,I as d,K as f,L as p,M as m,N as h,V as g,W as _,a as v,i as y,o as b,q as x,r as S}from"./light-BIsOPw8z.js";import{i as C,n as w,r as T}from"./use-form-item-RYm9Vtu-.js";import{a as E,n as D}from"./resolve-slot-CYut2r4x.js";import{H as O,I as k,M as A,P as j,S as M,X as N}from"./index-Cvq506nd.js";var P=typeof document<`u`&&typeof window<`u`,{cubicBezierEaseInOut:F}=v;function I({duration:e=`.2s`,delay:t=`.1s`}={}){return[g(`&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to`,{opacity:1}),g(`&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from`,`
|
||||
import{I as e,N as t,R as n,V as r,W as i,gt as a,m as o,w as s,yt as c}from"./client-Dr2LhGo3.js";import{G as l,H as u,I as d,K as f,L as p,M as m,N as h,V as g,W as _,a as v,i as y,o as b,q as x,r as S}from"./light-DXa4IKh6.js";import{i as C,n as w,r as T}from"./use-form-item-CC5qNKr7.js";import{a as E,n as D}from"./resolve-slot-DAynYbhJ.js";import{H as O,I as k,M as A,P as j,S as M,X as N}from"./index-CML5W5F9.js";var P=typeof document<`u`&&typeof window<`u`,{cubicBezierEaseInOut:F}=v;function I({duration:e=`.2s`,delay:t=`.1s`}={}){return[g(`&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to`,{opacity:1}),g(`&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from`,`
|
||||
opacity: 0!important;
|
||||
margin-left: 0!important;
|
||||
margin-right: 0!important;
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import{D as e,E as t,M as n,N as r,O as i,Rt as a,T as o,Y as s,Z as c,at as l,gt as u,j as d,u as f,xt as p,y as m,zt as h}from"./client-DXlIdAPE.js";import{t as g}from"./Tag-cr1aUmGQ.js";import{n as _}from"./es-FaTWfn-R.js";import{t as v}from"./Rate-BLN6FKiL.js";import{t as y}from"./HeaderMenu-CCe3SZd2.js";import{t as b}from"./_plugin-vue_export-helper-BDNMzG2s.js";var x={class:`center-block-custom`},S={class:`width1200 display-table catalog-grid`},C=[`onClick`],w={class:`scenario-content-block`},T={class:`scenario-title`},E={class:`scenario-description`},D={class:`scenario-rating`},O={key:1},k={key:2},A={key:0,class:`scenario-difficulty`},j={class:`scenario-label`},M=b(r({__name:`CatalogPage`,setup(r){let b=_(),M=u([]),N=f();async function P(){M.value=[];let e=await b.GetScenariosCatalog({});M.value=e.scenarios}async function F(e){N.push(`/scenarios/`+e)}return P(),(r,u)=>(s(),i(m,null,[o(`div`,x,[o(`div`,S,[(s(!0),i(m,null,c(M.value,r=>(s(),i(`div`,{class:`scenario-block`,onClick:e=>F(r.ID),key:r.ID},[o(`div`,{class:`scenario-image-block scenario-image`,style:a({backgroundImage:`url(${r.image})`})},null,4),o(`div`,w,[o(`p`,T,h(r.name),1),o(`p`,E,h(r.description),1),o(`div`,D,[r.reviewsCount?(s(),t(p(v),{key:0,value:r.averageRating,readonly:``,"allow-half":``,size:`small`},null,8,[`value`])):e(``,!0),r.reviewsCount?(s(),i(`span`,O,h(r.averageRating?.toFixed(1))+` · `+h(r.reviewsCount),1)):(s(),i(`span`,k,`Пока нет оценок`))]),r.difficulty?(s(),i(`div`,A,`Сложность: `+h(r.difficulty),1)):e(``,!0),o(`p`,j,[n(p(g),{bordered:!1,type:`success`,class:`status-block`},{default:l(()=>[d(`Автор: `+h(r.author?.username),1)]),_:2},1024)])])],8,C))),128))])]),n(y,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-935ff4be`]]),N=r({__name:`CatalogView`,setup(e){return(e,n)=>(s(),t(M))}});export{N as default};
|
||||
import{D as e,E as t,M as n,N as r,O as i,Rt as a,T as o,Y as s,Z as c,at as l,gt as u,j as d,u as f,xt as p,y as m,zt as h}from"./client-Dr2LhGo3.js";import{t as g}from"./Tag-CR6OUVfK.js";import{n as _}from"./es-DzLJg_jB.js";import{t as v}from"./Rate-BIXw_KSe.js";import{t as y}from"./HeaderMenu-BMv76IOe.js";import{t as b}from"./_plugin-vue_export-helper-BDNMzG2s.js";var x={class:`center-block-custom`},S={class:`width1200 display-table catalog-grid`},C=[`onClick`],w={class:`scenario-content-block`},T={class:`scenario-title`},E={class:`scenario-description`},D={class:`scenario-rating`},O={key:1},k={key:2},A={key:0,class:`scenario-difficulty`},j={class:`scenario-label`},M=b(r({__name:`CatalogPage`,setup(r){let b=_(),M=u([]),N=f();async function P(){M.value=[];let e=await b.GetScenariosCatalog({});M.value=e.scenarios}async function F(e){N.push(`/scenarios/`+e)}return P(),(r,u)=>(s(),i(m,null,[o(`div`,x,[o(`div`,S,[(s(!0),i(m,null,c(M.value,r=>(s(),i(`div`,{class:`scenario-block`,onClick:e=>F(r.ID),key:r.ID},[o(`div`,{class:`scenario-image-block scenario-image`,style:a({backgroundImage:`url(${r.image})`})},null,4),o(`div`,w,[o(`p`,T,h(r.name),1),o(`p`,E,h(r.description),1),o(`div`,D,[r.reviewsCount?(s(),t(p(v),{key:0,value:r.averageRating,readonly:``,"allow-half":``,size:`small`},null,8,[`value`])):e(``,!0),r.reviewsCount?(s(),i(`span`,O,h(r.averageRating?.toFixed(1))+` · `+h(r.reviewsCount),1)):(s(),i(`span`,k,`Пока нет оценок`))]),r.difficulty?(s(),i(`div`,A,`Сложность: `+h(r.difficulty),1)):e(``,!0),o(`p`,j,[n(p(g),{bordered:!1,type:`success`,class:`status-block`},{default:l(()=>[d(`Автор: `+h(r.author?.username),1)]),_:2},1024)])])],8,C))),128))])]),n(y,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-935ff4be`]]),N=r({__name:`CatalogView`,setup(e){return(e,n)=>(s(),t(M))}});export{N as default};
|
||||
@@ -1 +0,0 @@
|
||||
import{M as e,N as t,O as n,Y as r,y as i}from"./client-DXlIdAPE.js";import{t as a}from"./DocsPage-qybdKKJV.js";import{t as o}from"./HeaderMenu-CCe3SZd2.js";var s=t({__name:`ConsentView`,setup(t){return(t,s)=>(r(),n(i,null,[e(a,{kind:`consent`}),e(o)],64))}});export{s as default};
|
||||
@@ -0,0 +1 @@
|
||||
import{M as e,N as t,O as n,Y as r,y as i}from"./client-Dr2LhGo3.js";import{t as a}from"./DocsPage-CjVzUuC6.js";import{t as o}from"./HeaderMenu-BMv76IOe.js";var s=t({__name:`ConsentView`,setup(t){return(t,s)=>(r(),n(i,null,[e(a,{kind:`consent`}),e(o)],64))}});export{s as default};
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{E as e,I as t,K as n,M as r,N as i,O as a,T as o,Y as s,a as c,at as l,gt as u,it as d,j as f,w as p,xt as m,zt as h}from"./client-DXlIdAPE.js";import{G as g,H as _,M as v,N as y,V as b,q as x,r as S}from"./light-BIsOPw8z.js";import{i as C}from"./css-DEmdllcC.js";import{t as w}from"./use-compitable-U-V1aiGL.js";import{t as T}from"./fade-in.cssr-B7--VzDG.js";import{t as E}from"./Alert-CVZSu-oL.js";import{n as D}from"./es-FaTWfn-R.js";import{M as O,N as k,Q as A,s as j}from"./index-Cvq506nd.js";import{t as M}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as N}from"./HeaderText-DmG7aCFZ.js";var P=b([b(`@keyframes spin-rotate`,`
|
||||
import{E as e,I as t,K as n,M as r,N as i,O as a,T as o,Y as s,a as c,at as l,gt as u,it as d,j as f,w as p,xt as m,zt as h}from"./client-Dr2LhGo3.js";import{G as g,H as _,M as v,N as y,V as b,q as x,r as S}from"./light-DXa4IKh6.js";import{i as C}from"./css-DEmdllcC.js";import{t as w}from"./use-compitable-BG72l399.js";import{t as T}from"./fade-in.cssr-CU2nmny-.js";import{t as E}from"./Alert-DIuMKvSU.js";import{n as D}from"./es-DzLJg_jB.js";import{M as O,N as k,Q as A,s as j}from"./index-CML5W5F9.js";import{t as M}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as N}from"./HeaderText-DaAsTchV.js";var P=b([b(`@keyframes spin-rotate`,`
|
||||
from {
|
||||
transform: rotate(0);
|
||||
}
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{I as e,N as t,w as n}from"./client-DXlIdAPE.js";import{N as r,o as i,q as a,r as o}from"./light-BIsOPw8z.js";import{n as s,t as c}from"./css-DEmdllcC.js";import{t as l}from"./flatten-bHHhXrku.js";import{t as u}from"./get-slot-6kXJmSMP.js";import{u as d}from"./index-Cvq506nd.js";function f(){return d}var p={name:`Flex`,self:f},m=t({name:`Flex`,props:Object.assign(Object.assign({},o.props),{align:String,justify:{type:String,default:`start`},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:`medium`},wrap:{type:Boolean,default:!0}}),setup(e){let{mergedClsPrefixRef:t,mergedRtlRef:l}=r(e),u=o(`Flex`,`-flex`,void 0,p,e,t);return{rtlEnabled:i(`Flex`,l,t),mergedClsPrefix:t,margin:n(()=>{let{size:t}=e;if(Array.isArray(t))return{horizontal:t[0],vertical:t[1]};if(typeof t==`number`)return{horizontal:t,vertical:t};let{self:{[a(`gap`,t)]:n}}=u.value,{row:r,col:i}=s(n);return{horizontal:c(i),vertical:c(r)}})}},render(){let{vertical:t,reverse:n,align:r,inline:i,justify:a,margin:o,wrap:s,mergedClsPrefix:c,rtlEnabled:d}=this,f=l(u(this),!1);return f.length?e(`div`,{role:`none`,class:[`${c}-flex`,d&&`${c}-flex--rtl`],style:{display:i?`inline-flex`:`flex`,flexDirection:t&&!n?`column`:t&&n?`column-reverse`:!t&&n?`row-reverse`:`row`,justifyContent:a,flexWrap:!s||t?`nowrap`:`wrap`,alignItems:r,gap:`${o.vertical}px ${o.horizontal}px`}},f):null}});export{m as t};
|
||||
import{I as e,N as t,w as n}from"./client-Dr2LhGo3.js";import{N as r,o as i,q as a,r as o}from"./light-DXa4IKh6.js";import{n as s,t as c}from"./css-DEmdllcC.js";import{t as l}from"./flatten-CUj06cJH.js";import{t as u}from"./get-slot-6kXJmSMP.js";import{u as d}from"./index-CML5W5F9.js";function f(){return d}var p={name:`Flex`,self:f},m=t({name:`Flex`,props:Object.assign(Object.assign({},o.props),{align:String,justify:{type:String,default:`start`},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:`medium`},wrap:{type:Boolean,default:!0}}),setup(e){let{mergedClsPrefixRef:t,mergedRtlRef:l}=r(e),u=o(`Flex`,`-flex`,void 0,p,e,t);return{rtlEnabled:i(`Flex`,l,t),mergedClsPrefix:t,margin:n(()=>{let{size:t}=e;if(Array.isArray(t))return{horizontal:t[0],vertical:t[1]};if(typeof t==`number`)return{horizontal:t,vertical:t};let{self:{[a(`gap`,t)]:n}}=u.value,{row:r,col:i}=s(n);return{horizontal:c(i),vertical:c(r)}})}},render(){let{vertical:t,reverse:n,align:r,inline:i,justify:a,margin:o,wrap:s,mergedClsPrefix:c,rtlEnabled:d}=this,f=l(u(this),!1);return f.length?e(`div`,{role:`none`,class:[`${c}-flex`,d&&`${c}-flex--rtl`],style:{display:i?`inline-flex`:`flex`,flexDirection:t&&!n?`column`:t&&n?`column-reverse`:!t&&n?`row-reverse`:`row`,justifyContent:a,flexWrap:!s||t?`nowrap`:`wrap`,alignItems:r,gap:`${o.vertical}px ${o.horizontal}px`}},f):null}});export{m as t};
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
+7
File diff suppressed because one or more lines are too long
-1
File diff suppressed because one or more lines are too long
-7
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
||||
import{D as e,Lt as t,M as n,N as r,O as i,T as a,Y as o,at as s,gt as c,u as l,xt as u}from"./client-DXlIdAPE.js";import{n as d,r as f,t as p}from"./es-FaTWfn-R.js";import{t as m}from"./index-Cvq506nd.js";import{t as h}from"./_plugin-vue_export-helper-BDNMzG2s.js";var g={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},_=r({name:`MenuOutlined`,render:function(e,t){return o(),i(`svg`,g,t[0]||=[a(`path`,{d:`M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z`,fill:`currentColor`},null,-1)])}}),v={class:`menu-block`},y=[`aria-expanded`,`aria-label`],b={class:`right-group`},x=h(r({__name:`HeaderMenu`,props:{active:{}},setup(r){let h=r,g=m(),x=l(),S=d(),C=f(),w=c([]);async function T(){w.value=[];try{let e=await S.GetPermissions({});w.value=e.permissions||[]}catch(e){C.error(`Не удалось загрузить права доступа`),console.error(`Failed to load permissions:`,e)}}T();function E(e){return w.value.includes(e)}let D=()=>{x.push(`/login`)},O=()=>{g.logout(),x.push(`/login`)},k=c(!1);return(r,c)=>(o(),i(`div`,v,[a(`button`,{type:`button`,class:`burger-button`,"aria-expanded":k.value,"aria-label":k.value?`Закрыть меню`:`Открыть меню`,onClick:c[0]||=e=>k.value=!k.value},[n(u(p),{class:`burger-icon`,size:`28`},{default:s(()=>[n(u(_))]),_:1})],8,y),a(`div`,{class:t([`left-group menu-buttons-block`,k.value?``:`menu-buttons-block-active`])},[a(`button`,{type:`button`,class:t([`menu-item-block`,{active:h.active==`main`}]),onClick:c[1]||=e=>u(x).push(`/`)},` Главная `,2),u(g).hasRole(`user`)?(o(),i(`button`,{key:0,type:`button`,class:t([`menu-item-block`,{active:h.active==`office`}]),onClick:c[2]||=e=>u(x).push(`/office`)},` Кабинет `,2)):e(``,!0),E(`games_page`)?(o(),i(`button`,{key:1,type:`button`,class:t([`menu-item-block`,{active:h.active==`games`}]),onClick:c[3]||=e=>u(x).push(`/games`)},` Игры `,2)):e(``,!0),E(`games_page`)?(o(),i(`button`,{key:2,type:`button`,class:`menu-item-block`,onClick:c[4]||=e=>u(x).push(`/tickets/check`)},` Проверка билетов `)):e(``,!0),a(`button`,{type:`button`,class:`menu-item-block`,onClick:c[5]||=e=>u(x).push(`/screen`)},` Экран `),a(`button`,{type:`button`,class:t([`menu-item-block`,{active:h.active==`catalog`}]),onClick:c[6]||=e=>u(x).push(`/catalog`)},` Каталог `,2),E(`scenarios_page`)?(o(),i(`button`,{key:3,type:`button`,class:t([`menu-item-block`,{active:h.active==`scenarios`}]),onClick:c[7]||=e=>u(x).push(`/scenarios`)},` Сценарии `,2)):e(``,!0),E(`users_page`)?(o(),i(`button`,{key:4,type:`button`,class:t([`menu-item-block`,{active:h.active==`users`}]),onClick:c[8]||=e=>u(x).push(`/users`)},` Пользователи `,2)):e(``,!0),E(`reviews_page`)?(o(),i(`button`,{key:5,type:`button`,class:t([`menu-item-block`,{active:h.active==`reviews`}]),onClick:c[9]||=e=>u(x).push(`/reviews`)},` Отзывы `,2)):e(``,!0)],2),a(`div`,b,[u(g).isAuthenticated?e(``,!0):(o(),i(`button`,{key:0,type:`button`,class:`menu-item-block right`,onClick:D},` Войти `)),u(g).isAuthenticated?(o(),i(`button`,{key:1,type:`button`,class:`menu-item-block right`,onClick:O},` Выйти `)):e(``,!0)])]))}}),[[`__scopeId`,`data-v-4d2e6623`]]);export{x as t};
|
||||
import{D as e,Lt as t,M as n,N as r,O as i,T as a,Y as o,at as s,gt as c,u as l,xt as u}from"./client-Dr2LhGo3.js";import{n as d,r as f,t as p}from"./es-DzLJg_jB.js";import{t as m}from"./index-CML5W5F9.js";import{t as h}from"./_plugin-vue_export-helper-BDNMzG2s.js";var g={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},_=r({name:`MenuOutlined`,render:function(e,t){return o(),i(`svg`,g,t[0]||=[a(`path`,{d:`M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z`,fill:`currentColor`},null,-1)])}}),v={class:`menu-block`},y=[`aria-expanded`,`aria-label`],b={class:`right-group`},x=h(r({__name:`HeaderMenu`,props:{active:{}},setup(r){let h=r,g=m(),x=l(),S=d(),C=f(),w=c([]);async function T(){w.value=[];try{let e=await S.GetPermissions({});w.value=e.permissions||[]}catch(e){C.error(`Не удалось загрузить права доступа`),console.error(`Failed to load permissions:`,e)}}T();function E(e){return w.value.includes(e)}let D=()=>{x.push(`/login`)},O=()=>{g.logout(),x.push(`/login`)},k=c(!1);return(r,c)=>(o(),i(`div`,v,[a(`button`,{type:`button`,class:`burger-button`,"aria-expanded":k.value,"aria-label":k.value?`Закрыть меню`:`Открыть меню`,onClick:c[0]||=e=>k.value=!k.value},[n(u(p),{class:`burger-icon`,size:`28`},{default:s(()=>[n(u(_))]),_:1})],8,y),a(`div`,{class:t([`left-group menu-buttons-block`,k.value?``:`menu-buttons-block-active`])},[a(`button`,{type:`button`,class:t([`menu-item-block`,{active:h.active==`main`}]),onClick:c[1]||=e=>u(x).push(`/`)},` Главная `,2),u(g).hasRole(`user`)?(o(),i(`button`,{key:0,type:`button`,class:t([`menu-item-block`,{active:h.active==`office`}]),onClick:c[2]||=e=>u(x).push(`/office`)},` Кабинет `,2)):e(``,!0),E(`games_page`)?(o(),i(`button`,{key:1,type:`button`,class:t([`menu-item-block`,{active:h.active==`games`}]),onClick:c[3]||=e=>u(x).push(`/games`)},` Игры `,2)):e(``,!0),E(`games_page`)?(o(),i(`button`,{key:2,type:`button`,class:`menu-item-block`,onClick:c[4]||=e=>u(x).push(`/tickets/check`)},` Проверка билетов `)):e(``,!0),a(`button`,{type:`button`,class:`menu-item-block`,onClick:c[5]||=e=>u(x).push(`/screen`)},` Экран `),a(`button`,{type:`button`,class:t([`menu-item-block`,{active:h.active==`catalog`}]),onClick:c[6]||=e=>u(x).push(`/catalog`)},` Каталог `,2),E(`scenarios_page`)?(o(),i(`button`,{key:3,type:`button`,class:t([`menu-item-block`,{active:h.active==`scenarios`}]),onClick:c[7]||=e=>u(x).push(`/scenarios`)},` Сценарии `,2)):e(``,!0),E(`users_page`)?(o(),i(`button`,{key:4,type:`button`,class:t([`menu-item-block`,{active:h.active==`users`}]),onClick:c[8]||=e=>u(x).push(`/users`)},` Пользователи `,2)):e(``,!0),E(`reviews_page`)?(o(),i(`button`,{key:5,type:`button`,class:t([`menu-item-block`,{active:h.active==`reviews`}]),onClick:c[9]||=e=>u(x).push(`/reviews`)},` Отзывы `,2)):e(``,!0)],2),a(`div`,b,[u(g).isAuthenticated?e(``,!0):(o(),i(`button`,{key:0,type:`button`,class:`menu-item-block right`,onClick:D},` Войти `)),u(g).isAuthenticated?(o(),i(`button`,{key:1,type:`button`,class:`menu-item-block right`,onClick:O},` Выйти `)):e(``,!0)])]))}}),[[`__scopeId`,`data-v-4d2e6623`]]);export{x as t};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{N as e,O as t,Q as n,Y as r}from"./client-DXlIdAPE.js";import{t as i}from"./_plugin-vue_export-helper-BDNMzG2s.js";var a={class:`text-with-font`},o=i(e({__name:`HeaderText`,setup(e){return(e,i)=>(r(),t(`span`,a,[n(e.$slots,`default`,{},void 0,!0)]))}}),[[`__scopeId`,`data-v-689794e0`]]);export{o as t};
|
||||
import{N as e,O as t,Q as n,Y as r}from"./client-Dr2LhGo3.js";import{t as i}from"./_plugin-vue_export-helper-BDNMzG2s.js";var a={class:`text-with-font`},o=i(e({__name:`HeaderText`,setup(e){return(e,i)=>(r(),t(`span`,a,[n(e.$slots,`default`,{},void 0,!0)]))}}),[[`__scopeId`,`data-v-689794e0`]]);export{o as t};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{E as e,M as t,N as n,O as r,T as i,Y as a,y as o}from"./client-DXlIdAPE.js";import{t as s}from"./HeaderMenu-CCe3SZd2.js";import{t as c}from"./_plugin-vue_export-helper-BDNMzG2s.js";var l=c(n({__name:`HomePage`,setup(e){return(e,n)=>(a(),r(o,null,[n[0]||=i(`div`,{class:`center-block-custom content-block center-middle-block-custom height80`},[i(`div`,null,[i(`h1`,{class:`font-text`},`Вечерний детектив`),i(`h3`,{class:`font-text`},`Дело №0`),i(`p`,{class:`content-text`},`Поиграем?`)])],-1),t(s,{active:`main`})],64))}}),[[`__scopeId`,`data-v-3ca82fba`]]),u=n({__name:`HomeView`,setup(t){return(t,n)=>(a(),e(l))}});export{u as default};
|
||||
import{E as e,M as t,N as n,O as r,T as i,Y as a,y as o}from"./client-Dr2LhGo3.js";import{t as s}from"./HeaderMenu-BMv76IOe.js";import{t as c}from"./_plugin-vue_export-helper-BDNMzG2s.js";var l=c(n({__name:`HomePage`,setup(e){return(e,n)=>(a(),r(o,null,[n[0]||=i(`div`,{class:`center-block-custom content-block center-middle-block-custom height80`},[i(`div`,null,[i(`h1`,{class:`font-text`},`Вечерний детектив`),i(`h3`,{class:`font-text`},`Дело №0`),i(`p`,{class:`content-text`},`Поиграем?`)])],-1),t(s,{active:`main`})],64))}}),[[`__scopeId`,`data-v-3ca82fba`]]),u=n({__name:`HomeView`,setup(t){return(t,n)=>(a(),e(l))}});export{u as default};
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{I as e,K as t,N as n,P as r,R as i,V as a,X as o,gt as s,it as c,m as l,rt as u,w as d,y as ee,yt as f}from"./client-DXlIdAPE.js";import{G as p,H as m,K as h,M as te,N as ne,V as g,W as _,i as re,o as ie,q as v,r as y}from"./light-BIsOPw8z.js";import{c as b,d as x,i as S,u as C}from"./Card-B9DBICFl.js";import{r as ae}from"./css-DEmdllcC.js";import{t as oe}from"./use-merged-state-UQYRS3II.js";import{i as se}from"./Button-CcjM7zNp.js";import{n as ce,r as w}from"./use-form-item-RYm9Vtu-.js";import{a as T,i as E,r as D}from"./resolve-slot-CYut2r4x.js";import{n as O,r as le,t as k}from"./Suffix-DkvtIJaL.js";import{U as A,X as j,w as ue}from"./index-Cvq506nd.js";var M=n({name:`Eye`,render(){return e(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},e(`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`}),e(`circle`,{cx:`256`,cy:`256`,r:`80`,fill:`none`,stroke:`currentColor`,"stroke-miterlimit":`10`,"stroke-width":`32`}))}}),N=n({name:`EyeOff`,render(){return e(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},e(`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`}),e(`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`}),e(`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`}),e(`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`}),e(`path`,{d:`M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z`,fill:`currentColor`}))}}),P=l(`n-input`),de=m(`input`,`
|
||||
import{I as e,K as t,N as n,P as r,R as i,V as a,X as o,gt as s,it as c,m as l,rt as u,w as d,y as ee,yt as f}from"./client-Dr2LhGo3.js";import{G as p,H as m,K as h,M as te,N as ne,V as g,W as _,i as re,o as ie,q as v,r as y}from"./light-DXa4IKh6.js";import{c as b,d as x,i as S,u as C}from"./Card-C2NfeMd7.js";import{r as ae}from"./css-DEmdllcC.js";import{t as oe}from"./use-merged-state-ByR-vZB2.js";import{i as se}from"./Button-DrSwbbPC.js";import{n as ce,r as w}from"./use-form-item-CC5qNKr7.js";import{a as T,i as E,r as D}from"./resolve-slot-DAynYbhJ.js";import{n as O,r as le,t as k}from"./Suffix-CzE7Vqtu.js";import{U as A,X as j,w as ue}from"./index-CML5W5F9.js";var M=n({name:`Eye`,render(){return e(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},e(`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`}),e(`circle`,{cx:`256`,cy:`256`,r:`80`,fill:`none`,stroke:`currentColor`,"stroke-miterlimit":`10`,"stroke-width":`32`}))}}),N=n({name:`EyeOff`,render(){return e(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},e(`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`}),e(`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`}),e(`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`}),e(`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`}),e(`path`,{d:`M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z`,fill:`currentColor`}))}}),P=l(`n-input`),de=m(`input`,`
|
||||
max-width: 100%;
|
||||
cursor: text;
|
||||
line-height: 1.5;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{B as e,C as t,I as n,K as r,M as i,N as a,O as o,R as s,T as c,V as l,X as u,Y as d,at as f,f as p,gt as m,it as h,j as g,m as _,ot as v,rt as y,u as b,w as x,xt as S,y as C,yt as w}from"./client-DXlIdAPE.js";import{E as T,F as E,G as D,H as O,J as k,K as A,M as j,N as M,V as N,W as P,Y as F,j as ee,o as I,q as L,r as R}from"./light-BIsOPw8z.js";import{a as z,i as B,l as te,n as V,o as H,r as U,t as W}from"./Follower-DdYVvFC3.js";import{a as ne,o as re,t as ie}from"./utils-BniG1THh.js";import{c as G,d as ae,f as oe,t as K}from"./Card-B9DBICFl.js";import{r as q,t as se}from"./css-DEmdllcC.js";import{o as J,r as ce,t as le}from"./fade-in-scale-up.cssr-I7gADEYt.js";import{t as Y}from"./use-merged-state-UQYRS3II.js";import{t as ue}from"./use-compitable-U-V1aiGL.js";import{t as X}from"./Button-CcjM7zNp.js";import{n as Z,r as Q}from"./use-form-item-RYm9Vtu-.js";import{t as de}from"./flatten-bHHhXrku.js";import{a as $}from"./resolve-slot-CYut2r4x.js";import{t as fe}from"./Add-Cn8-zp6r.js";import{t as pe}from"./Input-DXZNHng_.js";import{r as me}from"./es-FaTWfn-R.js";import{t as he}from"./Space-BoT6AgVB.js";import{$ as ge,C as _e,F as ve,H as ye,I as be,J as xe,K as Se,Q as Ce,U as we,X as Te,Y as Ee,Z as De,a as Oe,q as ke,t as Ae,tt as je,x as Me}from"./index-Cvq506nd.js";import{t as Ne}from"./HeaderMenu-CCe3SZd2.js";import{t as Pe}from"./_plugin-vue_export-helper-BDNMzG2s.js";var Fe=V(`.v-x-scroll`,{overflow:`auto`,scrollbarWidth:`none`},[V(`&::-webkit-scrollbar`,{width:0,height:0})]),Ie=a({name:`XScroll`,props:{disabled:Boolean,onScroll:Function},setup(){let e=m(null);function t(e){!(e.currentTarget.offsetWidth<e.currentTarget.scrollWidth)||e.deltaY===0||(e.currentTarget.scrollLeft+=e.deltaY+e.deltaX,e.preventDefault())}let n=E();return Fe.mount({id:`vueuc/x-scroll`,head:!0,anchorMetaName:U,ssr:n}),Object.assign({selfRef:e,handleWheel:t},{scrollTo(...t){var n;(n=e.value)==null||n.scrollTo(...t)}})},render(){return n(`div`,{ref:`selfRef`,onScroll:this.onScroll,onWheel:this.disabled?void 0:this.handleWheel,class:`v-x-scroll`},this.$slots)}}),Le=/\s/;function Re(e){for(var t=e.length;t--&&Le.test(e.charAt(t)););return t}var ze=/^\s+/;function Be(e){return e&&e.slice(0,Re(e)+1).replace(ze,``)}var Ve=NaN,He=/^[-+]0x[0-9a-f]+$/i,Ue=/^0b[01]+$/i,We=/^0o[0-7]+$/i,Ge=parseInt;function Ke(e){if(typeof e==`number`)return e;if(Se(e))return Ve;if(T(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=T(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=Be(e);var n=Ue.test(e);return n||We.test(e)?Ge(e.slice(2),n?2:8):He.test(e)?Ve:+e}var qe=function(){return ee.Date.now()},Je=`Expected a function`,Ye=Math.max,Xe=Math.min;function Ze(e,t,n){var r,i,a,o,s,c,l=0,u=!1,d=!1,f=!0;if(typeof e!=`function`)throw TypeError(Je);t=Ke(t)||0,T(n)&&(u=!!n.leading,d=`maxWait`in n,a=d?Ye(Ke(n.maxWait)||0,t):a,f=`trailing`in n?!!n.trailing:f);function p(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n),o}function m(e){return l=e,s=setTimeout(_,t),u?p(e):o}function h(e){var n=e-c,r=e-l,i=t-n;return d?Xe(i,a-r):i}function g(e){var n=e-c,r=e-l;return c===void 0||n>=t||n<0||d&&r>=a}function _(){var e=qe();if(g(e))return v(e);s=setTimeout(_,h(e))}function v(e){return s=void 0,f&&r?p(e):(r=i=void 0,o)}function y(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0}function b(){return s===void 0?o:v(qe())}function x(){var e=qe(),n=g(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return m(c);if(d)return clearTimeout(s),s=setTimeout(_,t),p(c)}return s===void 0&&(s=setTimeout(_,t)),o}return x.cancel=y,x.flush=b,x}var Qe=`Expected a function`;function $e(e,t,n){var r=!0,i=!0;if(typeof e!=`function`)throw TypeError(Qe);return T(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),Ze(e,t,{leading:r,maxWait:t,trailing:i})}var et=N([O(`auto-complete`,`
|
||||
import{B as e,C as t,I as n,K as r,M as i,N as a,O as o,R as s,T as c,V as l,X as u,Y as d,at as f,f as p,gt as m,it as h,j as g,m as _,ot as v,rt as y,u as b,w as x,xt as S,y as C,yt as w}from"./client-Dr2LhGo3.js";import{E as T,F as E,G as D,H as O,J as k,K as A,M as j,N as M,V as N,W as P,Y as F,j as ee,o as I,q as L,r as R}from"./light-DXa4IKh6.js";import{a as z,i as B,l as te,n as V,o as H,r as U,t as W}from"./Follower-BbLlyu-f.js";import{a as ne,o as re,t as ie}from"./utils-CD7yqOU5.js";import{c as G,d as ae,f as oe,t as K}from"./Card-C2NfeMd7.js";import{r as q,t as se}from"./css-DEmdllcC.js";import{o as J,r as ce,t as le}from"./fade-in-scale-up.cssr-D15e0u2L.js";import{t as Y}from"./use-merged-state-ByR-vZB2.js";import{t as ue}from"./use-compitable-BG72l399.js";import{t as X}from"./Button-DrSwbbPC.js";import{n as Z,r as Q}from"./use-form-item-CC5qNKr7.js";import{t as de}from"./flatten-CUj06cJH.js";import{a as $}from"./resolve-slot-DAynYbhJ.js";import{t as fe}from"./Add-2BconUTZ.js";import{t as pe}from"./Input-C-S2Qhf0.js";import{r as me}from"./es-DzLJg_jB.js";import{t as he}from"./Space-DTbY_9Vu.js";import{$ as ge,C as _e,F as ve,H as ye,I as be,J as xe,K as Se,Q as Ce,U as we,X as Te,Y as Ee,Z as De,a as Oe,q as ke,t as Ae,tt as je,x as Me}from"./index-CML5W5F9.js";import{t as Ne}from"./HeaderMenu-BMv76IOe.js";import{t as Pe}from"./_plugin-vue_export-helper-BDNMzG2s.js";var Fe=V(`.v-x-scroll`,{overflow:`auto`,scrollbarWidth:`none`},[V(`&::-webkit-scrollbar`,{width:0,height:0})]),Ie=a({name:`XScroll`,props:{disabled:Boolean,onScroll:Function},setup(){let e=m(null);function t(e){!(e.currentTarget.offsetWidth<e.currentTarget.scrollWidth)||e.deltaY===0||(e.currentTarget.scrollLeft+=e.deltaY+e.deltaX,e.preventDefault())}let n=E();return Fe.mount({id:`vueuc/x-scroll`,head:!0,anchorMetaName:U,ssr:n}),Object.assign({selfRef:e,handleWheel:t},{scrollTo(...t){var n;(n=e.value)==null||n.scrollTo(...t)}})},render(){return n(`div`,{ref:`selfRef`,onScroll:this.onScroll,onWheel:this.disabled?void 0:this.handleWheel,class:`v-x-scroll`},this.$slots)}}),Le=/\s/;function Re(e){for(var t=e.length;t--&&Le.test(e.charAt(t)););return t}var ze=/^\s+/;function Be(e){return e&&e.slice(0,Re(e)+1).replace(ze,``)}var Ve=NaN,He=/^[-+]0x[0-9a-f]+$/i,Ue=/^0b[01]+$/i,We=/^0o[0-7]+$/i,Ge=parseInt;function Ke(e){if(typeof e==`number`)return e;if(Se(e))return Ve;if(T(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=T(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=Be(e);var n=Ue.test(e);return n||We.test(e)?Ge(e.slice(2),n?2:8):He.test(e)?Ve:+e}var qe=function(){return ee.Date.now()},Je=`Expected a function`,Ye=Math.max,Xe=Math.min;function Ze(e,t,n){var r,i,a,o,s,c,l=0,u=!1,d=!1,f=!0;if(typeof e!=`function`)throw TypeError(Je);t=Ke(t)||0,T(n)&&(u=!!n.leading,d=`maxWait`in n,a=d?Ye(Ke(n.maxWait)||0,t):a,f=`trailing`in n?!!n.trailing:f);function p(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n),o}function m(e){return l=e,s=setTimeout(_,t),u?p(e):o}function h(e){var n=e-c,r=e-l,i=t-n;return d?Xe(i,a-r):i}function g(e){var n=e-c,r=e-l;return c===void 0||n>=t||n<0||d&&r>=a}function _(){var e=qe();if(g(e))return v(e);s=setTimeout(_,h(e))}function v(e){return s=void 0,f&&r?p(e):(r=i=void 0,o)}function y(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0}function b(){return s===void 0?o:v(qe())}function x(){var e=qe(),n=g(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return m(c);if(d)return clearTimeout(s),s=setTimeout(_,t),p(c)}return s===void 0&&(s=setTimeout(_,t)),o}return x.cancel=y,x.flush=b,x}var Qe=`Expected a function`;function $e(e,t,n){var r=!0,i=!0;if(typeof e!=`function`)throw TypeError(Qe);return T(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),Ze(e,t,{leading:r,maxWait:t,trailing:i})}var et=N([O(`auto-complete`,`
|
||||
z-index: auto;
|
||||
position: relative;
|
||||
display: inline-flex;
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import{N as e,O as t,Q as n,T as r,Y as i}from"./client-DXlIdAPE.js";import{t as a}from"./_plugin-vue_export-helper-BDNMzG2s.js";var o={class:`main`},s={class:`message-cloud`},c=a(e({__name:`MessagePaper`,setup(e){return(e,a)=>(i(),t(`div`,o,[a[0]||=r(`div`,{class:`message-cloud-3`},null,-1),a[1]||=r(`div`,{class:`message-cloud-2`},null,-1),r(`div`,s,[n(e.$slots,`default`,{},void 0,!0)])]))}}),[[`__scopeId`,`data-v-0b1b8d3f`]]);export{c as t};
|
||||
import{N as e,O as t,Q as n,T as r,Y as i}from"./client-Dr2LhGo3.js";import{t as a}from"./_plugin-vue_export-helper-BDNMzG2s.js";var o={class:`main`},s={class:`message-cloud`},c=a(e({__name:`MessagePaper`,setup(e){return(e,a)=>(i(),t(`div`,o,[a[0]||=r(`div`,{class:`message-cloud-3`},null,-1),a[1]||=r(`div`,{class:`message-cloud-2`},null,-1),r(`div`,s,[n(e.$slots,`default`,{},void 0,!0)])]))}}),[[`__scopeId`,`data-v-0b1b8d3f`]]);export{c as t};
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{B as e,C as t,I as n,K as r,Lt as i,N as a,R as o,U as s,V as c,W as l,X as u,gt as d,ht as f,m as p,ot as m,p as h,q as g,rt as _,w as v,yt as y}from"./client-DXlIdAPE.js";import{B as b,G as x,H as S,J as C,M as w,N as T,V as E,W as D,o as O,q as k,r as A}from"./light-BIsOPw8z.js";import{d as j,f as ee,i as te,n as ne,r as re,s as M,t as ie,u as N}from"./Card-B9DBICFl.js";import{r as ae}from"./css-DEmdllcC.js";import{a as oe,d as se,f as ce,h as P,i as le,l as ue,m as de,o as fe,p as pe,r as me,t as he,u as ge}from"./fade-in-scale-up.cssr-I7gADEYt.js";import{a as _e,t as F}from"./Button-CcjM7zNp.js";import{i as ve,n as ye,t as I}from"./keep-DSzUswzI.js";import{r as L}from"./use-form-item-RYm9Vtu-.js";import{a as R,r as z}from"./resolve-slot-CYut2r4x.js";import{t as be}from"./fade-in.cssr-B7--VzDG.js";import{B as xe,F as Se,L as Ce,Q as B,R as we,U as Te,Y as Ee,h as De,m as Oe,q as V,tt as H,z as U}from"./index-Cvq506nd.js";var W=d(null);function G(e){if(e.clientX>0||e.clientY>0)W.value={x:e.clientX,y:e.clientY};else{let{target:t}=e;if(t instanceof Element){let{left:e,top:n,width:r,height:i}=t.getBoundingClientRect();e>0||n>0?W.value={x:e+r/2,y:n+i/2}:W.value={x:0,y:0}}else W.value=null}}var K=0,ke=!0;function Ae(){if(!P)return f(d(null));K===0&&j(`click`,document,G,!0);let e=()=>{K+=1};return(ke&&=de())?(s(e),l(()=>{--K,K===0&&N(`click`,document,G,!0)})):e(),f(W)}var je=d(void 0),q=0;function Me(){je.value=Date.now()}var Ne=!0;function Pe(e){if(!P)return f(d(!1));let t=d(!1),n=null;function r(){n!==null&&window.clearTimeout(n)}function i(){r(),t.value=!0,n=window.setTimeout(()=>{t.value=!1},e)}q===0&&j(`click`,window,Me,!0);let a=()=>{q+=1,j(`click`,window,i,!0)};return(Ne&&=de())?(s(a),l(()=>{--q,q===0&&N(`click`,window,Me,!0),N(`click`,window,i,!0),r()})):a(),f(t)}var J=d(!1);function Fe(){J.value=!0}function Ie(){J.value=!1}var Y=0;function Le(){return _e&&(s(()=>{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=d(`0px`);function Ue(e){if(typeof document>`u`)return;let t=document.documentElement,n,i=!1,a=()=>{t.style.marginRight=Re,t.style.overflow=ze,t.style.overflowX=Be,t.style.overflowY=Ve,He.value=`0px`};r(()=>{n=_(e,e=>{if(e){if(!X){let e=window.innerWidth-t.offsetWidth;e>0&&(Re=t.style.marginRight,t.style.marginRight=`${e}px`,He.value=`${e}px`),ze=t.style.overflow,Be=t.style.overflowX,Ve=t.style.overflowY,t.style.overflow=`hidden`,t.style.overflowX=`hidden`,t.style.overflowY=`hidden`}i=!0,X++}else X--,X||a(),i=!1},{immediate:!0})}),l(()=>{n?.(),i&&=(X--,X||a(),!1)})}var We=p(`n-dialog-provider`);p(`n-dialog-api`),p(`n-dialog-reactive-list`);var Z={icon:Function,type:{type:String,default:`default`},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,titleClass:[String,Array],titleStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],actionClass:[String,Array],actionStyle:[String,Object],onPositiveClick:Function,onNegativeClick:Function,onClose:Function,closeFocusable:Boolean},Ge=M(Z),Ke=E([S(`dialog`,`
|
||||
import{B as e,C as t,I as n,K as r,Lt as i,N as a,R as o,U as s,V as c,W as l,X as u,gt as d,ht as f,m as p,ot as m,p as h,q as g,rt as _,w as v,yt as y}from"./client-Dr2LhGo3.js";import{B as b,G as x,H as S,J as C,M as w,N as T,V as E,W as D,o as O,q as k,r as A}from"./light-DXa4IKh6.js";import{d as j,f as ee,i as te,n as ne,r as re,s as M,t as ie,u as N}from"./Card-C2NfeMd7.js";import{r as ae}from"./css-DEmdllcC.js";import{a as oe,d as se,f as ce,h as P,i as le,l as ue,m as de,o as fe,p as pe,r as me,t as he,u as ge}from"./fade-in-scale-up.cssr-D15e0u2L.js";import{a as _e,t as F}from"./Button-DrSwbbPC.js";import{i as ve,n as ye,t as I}from"./keep-0zAzEB29.js";import{r as L}from"./use-form-item-CC5qNKr7.js";import{a as R,r as z}from"./resolve-slot-DAynYbhJ.js";import{t as be}from"./fade-in.cssr-CU2nmny-.js";import{B as xe,F as Se,L as Ce,Q as B,R as we,U as Te,Y as Ee,h as De,m as Oe,q as V,tt as H,z as U}from"./index-CML5W5F9.js";var W=d(null);function G(e){if(e.clientX>0||e.clientY>0)W.value={x:e.clientX,y:e.clientY};else{let{target:t}=e;if(t instanceof Element){let{left:e,top:n,width:r,height:i}=t.getBoundingClientRect();e>0||n>0?W.value={x:e+r/2,y:n+i/2}:W.value={x:0,y:0}}else W.value=null}}var K=0,ke=!0;function Ae(){if(!P)return f(d(null));K===0&&j(`click`,document,G,!0);let e=()=>{K+=1};return(ke&&=de())?(s(e),l(()=>{--K,K===0&&N(`click`,document,G,!0)})):e(),f(W)}var je=d(void 0),q=0;function Me(){je.value=Date.now()}var Ne=!0;function Pe(e){if(!P)return f(d(!1));let t=d(!1),n=null;function r(){n!==null&&window.clearTimeout(n)}function i(){r(),t.value=!0,n=window.setTimeout(()=>{t.value=!1},e)}q===0&&j(`click`,window,Me,!0);let a=()=>{q+=1,j(`click`,window,i,!0)};return(Ne&&=de())?(s(a),l(()=>{--q,q===0&&N(`click`,window,Me,!0),N(`click`,window,i,!0),r()})):a(),f(t)}var J=d(!1);function Fe(){J.value=!0}function Ie(){J.value=!1}var Y=0;function Le(){return _e&&(s(()=>{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=d(`0px`);function Ue(e){if(typeof document>`u`)return;let t=document.documentElement,n,i=!1,a=()=>{t.style.marginRight=Re,t.style.overflow=ze,t.style.overflowX=Be,t.style.overflowY=Ve,He.value=`0px`};r(()=>{n=_(e,e=>{if(e){if(!X){let e=window.innerWidth-t.offsetWidth;e>0&&(Re=t.style.marginRight,t.style.marginRight=`${e}px`,He.value=`${e}px`),ze=t.style.overflow,Be=t.style.overflowX,Ve=t.style.overflowY,t.style.overflow=`hidden`,t.style.overflowX=`hidden`,t.style.overflowY=`hidden`}i=!0,X++}else X--,X||a(),i=!1},{immediate:!0})}),l(()=>{n?.(),i&&=(X--,X||a(),!1)})}var We=p(`n-dialog-provider`);p(`n-dialog-api`),p(`n-dialog-reactive-list`);var Z={icon:Function,type:{type:String,default:`default`},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,titleClass:[String,Array],titleStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],actionClass:[String,Array],actionStyle:[String,Object],onPositiveClick:Function,onNegativeClick:Function,onClose:Function,closeFocusable:Boolean},Ge=M(Z),Ke=E([S(`dialog`,`
|
||||
--n-icon-margin: var(--n-icon-margin-top) var(--n-icon-margin-right) var(--n-icon-margin-bottom) var(--n-icon-margin-left);
|
||||
word-break: break-word;
|
||||
line-height: var(--n-line-height);
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
||||
import{D as e,E as t,K as n,M as r,N as i,O as a,T as o,Y as s,at as c,gt as l,j as u,l as d,t as f,xt as p,y as m,zt as h}from"./client-DXlIdAPE.js";import{t as g}from"./Card-B9DBICFl.js";import{t as _}from"./Button-CcjM7zNp.js";import{t as v}from"./Space-BoT6AgVB.js";import{t as y}from"./index-Cvq506nd.js";import{t as b}from"./HeaderMenu-CCe3SZd2.js";import{t as x}from"./datetime-BJNH0M1T.js";var S={class:`center-block-custom`},C={class:`width700`},w={key:0,role:`alert`},T={key:0,role:`status`},E={key:1,role:`status`},D={key:2},O=i({__name:`ParticipationPage`,setup(i){let O=d(),k=new URLSearchParams(O.hash.slice(1)),A=k.get(`token`)||``,j=l(k.get(`answer`)===`cancelled`?`cancelled`:`confirmed`),M=f(),N=y(),P=l(),F=l(!1),I=l(``);async function L(){F.value=!0,I.value=``;try{let e=await M.GetParticipation({token:A});P.value=e}catch{I.value=`Не удалось загрузить данные. Попробуйте ещё раз.`}finally{F.value=!1}}async function R(){if(!F.value){F.value=!0,I.value=``;try{let e=await M.AnswerParticipation({token:A,answer:j.value});P.value=e}catch{I.value=`Не удалось сохранить ответ. Попробуйте ещё раз.`}finally{F.value=!1}}}return n(L),(n,i)=>(s(),a(m,null,[p(N).isAuthenticated?(s(),t(b,{key:0})):e(``,!0),o(`div`,S,[o(`div`,C,[r(p(g),{title:`Участие в игре`},{default:c(()=>[I.value?(s(),a(`p`,w,h(I.value),1)):e(``,!0),P.value?(s(),a(m,{key:1},[o(`h2`,null,h(P.value.gameName),1),o(`p`,null,`Команда: `+h(P.value.teamName),1),o(`p`,null,`Начало: `+h(p(x)(P.value.startAt)),1),o(`p`,null,`Участников: `+h(P.value.participantsCount),1),P.value.status===`confirmed`?(s(),a(`p`,T,` Участие подтверждено. Ждём вас на игре! Решение окончательное. `)):P.value.status===`cancelled`?(s(),a(`p`,E,` Запись отменена. Решение окончательное. `)):P.value.closed?(s(),a(`p`,D,` Приём ответов закрыт. Ваша запись сохранена со статусом «Ожидает ответа». `)):(s(),a(m,{key:3},[i[4]||=o(`p`,null,[o(`strong`,null,`Решение окончательное: изменить его нельзя.`)],-1),i[5]||=o(`p`,null,`Без ответа запись сохраняется со статусом «Ожидает ответа».`,-1),r(p(v),{vertical:``},{default:c(()=>[r(p(v),null,{default:c(()=>[r(p(_),{disabled:F.value,type:j.value===`confirmed`?`primary`:`default`,"aria-pressed":j.value===`confirmed`,onClick:i[0]||=e=>j.value=`confirmed`},{default:c(()=>[...i[2]||=[u(`Мы участвуем`,-1)]]),_:1},8,[`disabled`,`type`,`aria-pressed`]),r(p(_),{disabled:F.value,type:j.value===`cancelled`?`error`:`default`,"aria-pressed":j.value===`cancelled`,onClick:i[1]||=e=>j.value=`cancelled`},{default:c(()=>[...i[3]||=[u(`Мы не участвуем`,-1)]]),_:1},8,[`disabled`,`type`,`aria-pressed`])]),_:1}),r(p(_),{loading:F.value,disabled:F.value,type:j.value===`cancelled`?`error`:`primary`,onClick:R},{default:c(()=>[u(h(j.value===`confirmed`?`Подтверждаю участие`:`Подтверждаю отмену`),1)]),_:1},8,[`loading`,`disabled`,`type`])]),_:1})],64))],64)):(s(),t(p(_),{key:2,loading:F.value,onClick:L},{default:c(()=>[u(h(F.value?`Загрузка`:`Повторить`),1)]),_:1},8,[`loading`]))]),_:1})])])],64))}}),k=i({__name:`ParticipationView`,setup(e){return(e,n)=>(s(),t(O))}});export{k as default};
|
||||
import{D as e,E as t,K as n,M as r,N as i,O as a,T as o,Y as s,at as c,gt as l,j as u,l as d,t as f,xt as p,y as m,zt as h}from"./client-Dr2LhGo3.js";import{t as g}from"./Card-C2NfeMd7.js";import{t as _}from"./Button-DrSwbbPC.js";import{t as v}from"./Space-DTbY_9Vu.js";import{t as y}from"./index-CML5W5F9.js";import{t as b}from"./HeaderMenu-BMv76IOe.js";import{t as x}from"./datetime-BJNH0M1T.js";var S={class:`center-block-custom`},C={class:`width700`},w={key:0,role:`alert`},T={key:0,role:`status`},E={key:1,role:`status`},D={key:2},O=i({__name:`ParticipationPage`,setup(i){let O=d(),k=new URLSearchParams(O.hash.slice(1)),A=k.get(`token`)||``,j=l(k.get(`answer`)===`cancelled`?`cancelled`:`confirmed`),M=f(),N=y(),P=l(),F=l(!1),I=l(``);async function L(){F.value=!0,I.value=``;try{let e=await M.GetParticipation({token:A});P.value=e}catch{I.value=`Не удалось загрузить данные. Попробуйте ещё раз.`}finally{F.value=!1}}async function R(){if(!F.value){F.value=!0,I.value=``;try{let e=await M.AnswerParticipation({token:A,answer:j.value});P.value=e}catch{I.value=`Не удалось сохранить ответ. Попробуйте ещё раз.`}finally{F.value=!1}}}return n(L),(n,i)=>(s(),a(m,null,[p(N).isAuthenticated?(s(),t(b,{key:0})):e(``,!0),o(`div`,S,[o(`div`,C,[r(p(g),{title:`Участие в игре`},{default:c(()=>[I.value?(s(),a(`p`,w,h(I.value),1)):e(``,!0),P.value?(s(),a(m,{key:1},[o(`h2`,null,h(P.value.gameName),1),o(`p`,null,`Команда: `+h(P.value.teamName),1),o(`p`,null,`Начало: `+h(p(x)(P.value.startAt)),1),o(`p`,null,`Участников: `+h(P.value.participantsCount),1),P.value.status===`confirmed`?(s(),a(`p`,T,` Участие подтверждено. Ждём вас на игре! Решение окончательное. `)):P.value.status===`cancelled`?(s(),a(`p`,E,` Запись отменена. Решение окончательное. `)):P.value.closed?(s(),a(`p`,D,` Приём ответов закрыт. Ваша запись сохранена со статусом «Ожидает ответа». `)):(s(),a(m,{key:3},[i[4]||=o(`p`,null,[o(`strong`,null,`Решение окончательное: изменить его нельзя.`)],-1),i[5]||=o(`p`,null,`Без ответа запись сохраняется со статусом «Ожидает ответа».`,-1),r(p(v),{vertical:``},{default:c(()=>[r(p(v),null,{default:c(()=>[r(p(_),{disabled:F.value,type:j.value===`confirmed`?`primary`:`default`,"aria-pressed":j.value===`confirmed`,onClick:i[0]||=e=>j.value=`confirmed`},{default:c(()=>[...i[2]||=[u(`Мы участвуем`,-1)]]),_:1},8,[`disabled`,`type`,`aria-pressed`]),r(p(_),{disabled:F.value,type:j.value===`cancelled`?`error`:`default`,"aria-pressed":j.value===`cancelled`,onClick:i[1]||=e=>j.value=`cancelled`},{default:c(()=>[...i[3]||=[u(`Мы не участвуем`,-1)]]),_:1},8,[`disabled`,`type`,`aria-pressed`])]),_:1}),r(p(_),{loading:F.value,disabled:F.value,type:j.value===`cancelled`?`error`:`primary`,onClick:R},{default:c(()=>[u(h(j.value===`confirmed`?`Подтверждаю участие`:`Подтверждаю отмену`),1)]),_:1},8,[`loading`,`disabled`,`type`])]),_:1})],64))],64)):(s(),t(p(_),{key:2,loading:F.value,onClick:L},{default:c(()=>[u(h(F.value?`Загрузка`:`Повторить`),1)]),_:1},8,[`loading`]))]),_:1})])])],64))}}),k=i({__name:`ParticipationView`,setup(e){return(e,n)=>(s(),t(O))}});export{k as default};
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{A as e,D as t,E as n,I as r,Lt as i,M as a,N as o,O as s,Q as c,R as l,Rt as u,T as d,X as f,Y as p,Z as m,at as h,gt as g,j as _,lt as v,m as y,r as b,vt as x,w as S,xt as C,y as w,yt as T,zt as E}from"./client-DXlIdAPE.js";import{G as D,H as O,I as k,K as A,M as j,N as M,V as N,W as P,i as F,n as ee,o as I,q as L,r as R,t as z}from"./light-BIsOPw8z.js";import{t as te}from"./Card-B9DBICFl.js";import{i as B,t as V}from"./css-DEmdllcC.js";import{t as ne}from"./Modal-DFHC6g9a.js";import{t as re}from"./use-merged-state-UQYRS3II.js";import{r as ie,t as H}from"./Button-CcjM7zNp.js";import{n as ae,r as U,t as oe}from"./use-form-item-RYm9Vtu-.js";import{n as se,t as ce}from"./Upload-ChxJVPmP.js";import{a as W,i as le,n as ue,r as de}from"./resolve-slot-CYut2r4x.js";import{r as fe}from"./Suffix-DkvtIJaL.js";import{t as pe}from"./Add-Cn8-zp6r.js";import{t as G}from"./Input-DXZNHng_.js";import{t as me}from"./Remove-CfO9HjO6.js";import{t as he}from"./Tag-cr1aUmGQ.js";import{t as ge}from"./es-FaTWfn-R.js";import{t as K}from"./Space-BoT6AgVB.js";import{t as _e}from"./text-QAj6bI83.js";import{H as ve,I as ye,M as be,S as xe,U as q,Z as Se,f as Ce,o as we,rt as J,w as Te}from"./index-Cvq506nd.js";import{t as Ee}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as Y,r as X,t as De}from"./application-unfoo6WB.js";import{t as Oe}from"./MessagePaper-DHCNoTLm.js";var ke=o({name:`ArrowDown`,render(){return r(`svg`,{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:`M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z`}))))}}),Ae=o({name:`ArrowUp`,render(){return r(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`},r(`g`,{fill:`none`},r(`path`,{d:`M3.13 9.163a.5.5 0 1 0 .74.674L9.5 3.67V17.5a.5.5 0 0 0 1 0V3.672l5.63 6.165a.5.5 0 0 0 .738-.674l-6.315-6.916a.746.746 0 0 0-.632-.24a.746.746 0 0 0-.476.24L3.131 9.163z`,fill:`currentColor`})))}}),je=O(`input-group`,`
|
||||
import{A as e,D as t,E as n,I as r,Lt as i,M as a,N as o,O as s,Q as c,R as l,Rt as u,T as d,X as f,Y as p,Z as m,at as h,gt as g,j as _,lt as v,m as y,r as b,vt as x,w as S,xt as C,y as w,yt as T,zt as E}from"./client-Dr2LhGo3.js";import{G as D,H as O,I as k,K as A,M as j,N as M,V as N,W as P,i as F,n as ee,o as I,q as L,r as R,t as z}from"./light-DXa4IKh6.js";import{t as te}from"./Card-C2NfeMd7.js";import{i as B,t as V}from"./css-DEmdllcC.js";import{t as ne}from"./Modal-8bOm9HIg.js";import{t as re}from"./use-merged-state-ByR-vZB2.js";import{r as ie,t as H}from"./Button-DrSwbbPC.js";import{n as ae,r as U,t as oe}from"./use-form-item-CC5qNKr7.js";import{n as se,t as ce}from"./Upload-ijLHduRO.js";import{a as W,i as le,n as ue,r as de}from"./resolve-slot-DAynYbhJ.js";import{r as fe}from"./Suffix-CzE7Vqtu.js";import{t as pe}from"./Add-2BconUTZ.js";import{t as G}from"./Input-C-S2Qhf0.js";import{t as me}from"./Remove-DahbCeLn.js";import{t as he}from"./Tag-CR6OUVfK.js";import{t as ge}from"./es-DzLJg_jB.js";import{t as K}from"./Space-DTbY_9Vu.js";import{t as _e}from"./text-B8OKB-Vq.js";import{H as ve,I as ye,M as be,S as xe,U as q,Z as Se,f as Ce,o as we,rt as J,w as Te}from"./index-CML5W5F9.js";import{t as Ee}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as Y,r as X,t as De}from"./application-DXNAO2qx.js";import{t as Oe}from"./MessagePaper-DVRJzEGA.js";var ke=o({name:`ArrowDown`,render(){return r(`svg`,{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:`M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z`}))))}}),Ae=o({name:`ArrowUp`,render(){return r(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`},r(`g`,{fill:`none`},r(`path`,{d:`M3.13 9.163a.5.5 0 1 0 .74.674L9.5 3.67V17.5a.5.5 0 0 0 1 0V3.672l5.63 6.165a.5.5 0 0 0 .738-.674l-6.315-6.916a.746.746 0 0 0-.632-.24a.746.746 0 0 0-.476.24L3.131 9.163z`,fill:`currentColor`})))}}),je=O(`input-group`,`
|
||||
display: inline-flex;
|
||||
width: 100%;
|
||||
flex-wrap: nowrap;
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
import{M as e,N as t,O as n,Y as r,y as i}from"./client-Dr2LhGo3.js";import{t as a}from"./DocsPage-CjVzUuC6.js";import{t as o}from"./HeaderMenu-BMv76IOe.js";var s=t({__name:`PrivacyPolicyView`,setup(t){return(t,s)=>(r(),n(i,null,[e(a,{kind:`privacy`}),e(o)],64))}});export{s as default};
|
||||
@@ -1 +0,0 @@
|
||||
import{M as e,N as t,O as n,Y as r,y as i}from"./client-DXlIdAPE.js";import{t as a}from"./DocsPage-qybdKKJV.js";import{t as o}from"./HeaderMenu-CCe3SZd2.js";var s=t({__name:`PrivacyPolicyView`,setup(t){return(t,s)=>(r(),n(i,null,[e(a,{kind:`privacy`}),e(o)],64))}});export{s as default};
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{I as e,N as t,Z as n,gt as r,w as i,yt as a}from"./client-DXlIdAPE.js";import{G as o,H as s,K as c,M as l,N as u,V as d,W as f,q as p,r as m,t as h}from"./light-BIsOPw8z.js";import{t as g}from"./use-merged-state-UQYRS3II.js";import{i as _,n as v,r as y}from"./use-form-item-RYm9Vtu-.js";import{U as b}from"./index-Cvq506nd.js";function x(e){let{railColor:t}=e;return{itemColor:t,itemColorActive:`#FFCC33`,sizeSmall:`16px`,sizeMedium:`20px`,sizeLarge:`24px`}}var S={name:`Rate`,common:h,self:x},C=()=>e(`svg`,{viewBox:`0 0 512 512`},e(`path`,{d:`M394 480a16 16 0 01-9.39-3L256 383.76 127.39 477a16 16 0 01-24.55-18.08L153 310.35 23 221.2a16 16 0 019-29.2h160.38l48.4-148.95a16 16 0 0130.44 0l48.4 149H480a16 16 0 019.05 29.2L359 310.35l50.13 148.53A16 16 0 01394 480z`})),w=s(`rate`,{display:`inline-flex`,flexWrap:`nowrap`},[d(`&:hover`,[f(`item`,`
|
||||
import{I as e,N as t,Z as n,gt as r,w as i,yt as a}from"./client-Dr2LhGo3.js";import{G as o,H as s,K as c,M as l,N as u,V as d,W as f,q as p,r as m,t as h}from"./light-DXa4IKh6.js";import{t as g}from"./use-merged-state-ByR-vZB2.js";import{i as _,n as v,r as y}from"./use-form-item-CC5qNKr7.js";import{U as b}from"./index-CML5W5F9.js";function x(e){let{railColor:t}=e;return{itemColor:t,itemColorActive:`#FFCC33`,sizeSmall:`16px`,sizeMedium:`20px`,sizeLarge:`24px`}}var S={name:`Rate`,common:h,self:x},C=()=>e(`svg`,{viewBox:`0 0 512 512`},e(`path`,{d:`M394 480a16 16 0 01-9.39-3L256 383.76 127.39 477a16 16 0 01-24.55-18.08L153 310.35 23 221.2a16 16 0 019-29.2h160.38l48.4-148.95a16 16 0 0130.44 0l48.4 149H480a16 16 0 019.05 29.2L359 310.35l50.13 148.53A16 16 0 01394 480z`})),w=s(`rate`,{display:`inline-flex`,flexWrap:`nowrap`},[d(`&:hover`,[f(`item`,`
|
||||
transition:
|
||||
transform .1s var(--n-bezier),
|
||||
color .3s var(--n-bezier);
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{I as e,N as t}from"./client-DXlIdAPE.js";var n=t({name:`Remove`,render(){return e(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},e(`line`,{x1:`400`,y1:`256`,x2:`112`,y2:`256`,style:`
|
||||
import{I as e,N as t}from"./client-Dr2LhGo3.js";var n=t({name:`Remove`,render(){return e(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},e(`line`,{x1:`400`,y1:`256`,x2:`112`,y2:`256`,style:`
|
||||
fill: none;
|
||||
stroke: currentColor;
|
||||
stroke-linecap: round;
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import{D as e,E as t,M as n,N as r,O as i,T as a,Y as o,Z as s,at as c,gt as l,j as u,xt as d,y as f,zt as p}from"./client-DXlIdAPE.js";import{t as m}from"./Card-B9DBICFl.js";import{t as h}from"./Button-CcjM7zNp.js";import{t as g}from"./Tag-cr1aUmGQ.js";import{n as _,r as v}from"./es-FaTWfn-R.js";import{t as y}from"./Flex-BlFzWn2i.js";import{t as b}from"./Rate-BLN6FKiL.js";import{t as x}from"./HeaderMenu-CCe3SZd2.js";import{t as S}from"./_plugin-vue_export-helper-BDNMzG2s.js";var C={class:`center-block-custom`},w={class:`width1200`},T={class:`page-header`},E={class:`review-game`},D={class:`review-text`},O=S(r({__name:`ReviewsPage`,setup(r){let S=_(),O=v(),k=l([]);async function A(){try{let e=await S.GetReviewsForModeration({});k.value=e.reviews||[]}catch(e){O.error(e instanceof Error?e.message:`Не удалось загрузить отзывы`)}}async function j(e,t){try{await S.ModerateGameReview({ID:e.ID,status:t}),await A()}catch(e){O.error(e instanceof Error?e.message:`Не удалось изменить отзыв`)}}return A(),(r,l)=>(o(),i(f,null,[a(`div`,C,[a(`div`,w,[a(`div`,T,[l[1]||=a(`h1`,null,`Отзывы`,-1),n(d(h),{onClick:A},{default:c(()=>[...l[0]||=[u(`Обновить`,-1)]]),_:1})]),k.value.length==0?(o(),t(d(m),{key:0},{default:c(()=>[...l[2]||=[u(`Очередь отзывов пуста.`,-1)]]),_:1})):e(``,!0),(o(!0),i(f,null,s(k.value,r=>(o(),t(d(m),{key:r.ID,class:`review-card`},{default:c(()=>[n(d(y),{justify:`space-between`,align:`center`},{default:c(()=>[a(`div`,null,[a(`div`,E,p(r.gameName),1),a(`strong`,null,p(r.teamName),1)]),n(d(g),null,{default:c(()=>[u(p(r.status),1)]),_:2},1024)]),_:2},1024),n(d(b),{value:r.rating,readonly:``},null,8,[`value`]),a(`div`,null,`Сложность: `+p([``,`лёгкая`,`средняя`,`тяжёлая`][r.difficulty||0]),1),a(`p`,D,p(r.text),1),r.status==`pending`?(o(),t(d(y),{key:0,justify:`end`},{default:c(()=>[n(d(h),{type:`success`,onClick:e=>j(r,`approved`)},{default:c(()=>[...l[3]||=[u(`Одобрить`,-1)]]),_:1},8,[`onClick`]),n(d(h),{type:`error`,ghost:``,onClick:e=>j(r,`rejected`)},{default:c(()=>[...l[4]||=[u(`Отклонить`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):r.status==`approved`?(o(),t(d(y),{key:1,justify:`end`},{default:c(()=>[n(d(h),{type:`error`,ghost:``,onClick:e=>j(r,`hidden`)},{default:c(()=>[...l[5]||=[u(`Скрыть`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):e(``,!0)]),_:2},1024))),128))])]),n(x,{active:`reviews`})],64))}}),[[`__scopeId`,`data-v-0b64d5d0`]]),k=r({__name:`ReviewsView`,setup(e){return(e,n)=>(o(),t(O))}});export{k as default};
|
||||
import{D as e,E as t,M as n,N as r,O as i,T as a,Y as o,Z as s,at as c,gt as l,j as u,xt as d,y as f,zt as p}from"./client-Dr2LhGo3.js";import{t as m}from"./Card-C2NfeMd7.js";import{t as h}from"./Button-DrSwbbPC.js";import{t as g}from"./Tag-CR6OUVfK.js";import{n as _,r as v}from"./es-DzLJg_jB.js";import{t as y}from"./Flex-PdhhOboI.js";import{t as b}from"./Rate-BIXw_KSe.js";import{t as x}from"./HeaderMenu-BMv76IOe.js";import{t as S}from"./_plugin-vue_export-helper-BDNMzG2s.js";var C={class:`center-block-custom`},w={class:`width1200`},T={class:`page-header`},E={class:`review-game`},D={class:`review-text`},O=S(r({__name:`ReviewsPage`,setup(r){let S=_(),O=v(),k=l([]);async function A(){try{let e=await S.GetReviewsForModeration({});k.value=e.reviews||[]}catch(e){O.error(e instanceof Error?e.message:`Не удалось загрузить отзывы`)}}async function j(e,t){try{await S.ModerateGameReview({ID:e.ID,status:t}),await A()}catch(e){O.error(e instanceof Error?e.message:`Не удалось изменить отзыв`)}}return A(),(r,l)=>(o(),i(f,null,[a(`div`,C,[a(`div`,w,[a(`div`,T,[l[1]||=a(`h1`,null,`Отзывы`,-1),n(d(h),{onClick:A},{default:c(()=>[...l[0]||=[u(`Обновить`,-1)]]),_:1})]),k.value.length==0?(o(),t(d(m),{key:0},{default:c(()=>[...l[2]||=[u(`Очередь отзывов пуста.`,-1)]]),_:1})):e(``,!0),(o(!0),i(f,null,s(k.value,r=>(o(),t(d(m),{key:r.ID,class:`review-card`},{default:c(()=>[n(d(y),{justify:`space-between`,align:`center`},{default:c(()=>[a(`div`,null,[a(`div`,E,p(r.gameName),1),a(`strong`,null,p(r.teamName),1)]),n(d(g),null,{default:c(()=>[u(p(r.status),1)]),_:2},1024)]),_:2},1024),n(d(b),{value:r.rating,readonly:``},null,8,[`value`]),a(`div`,null,`Сложность: `+p([``,`лёгкая`,`средняя`,`тяжёлая`][r.difficulty||0]),1),a(`p`,D,p(r.text),1),r.status==`pending`?(o(),t(d(y),{key:0,justify:`end`},{default:c(()=>[n(d(h),{type:`success`,onClick:e=>j(r,`approved`)},{default:c(()=>[...l[3]||=[u(`Одобрить`,-1)]]),_:1},8,[`onClick`]),n(d(h),{type:`error`,ghost:``,onClick:e=>j(r,`rejected`)},{default:c(()=>[...l[4]||=[u(`Отклонить`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):r.status==`approved`?(o(),t(d(y),{key:1,justify:`end`},{default:c(()=>[n(d(h),{type:`error`,ghost:``,onClick:e=>j(r,`hidden`)},{default:c(()=>[...l[5]||=[u(`Скрыть`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):e(``,!0)]),_:2},1024))),128))])]),n(x,{active:`reviews`})],64))}}),[[`__scopeId`,`data-v-0b64d5d0`]]),k=r({__name:`ReviewsView`,setup(e){return(e,n)=>(o(),t(O))}});export{k as default};
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import{D as e,E as t,M as n,N as r,O as i,T as a,Y as o,Z as s,at as c,gt as l,j as u,l as d,xt as f,y as p,zt as m}from"./client-DXlIdAPE.js";import{t as h}from"./Tag-cr1aUmGQ.js";import{n as g,r as _}from"./es-FaTWfn-R.js";import{t as v}from"./Rate-BLN6FKiL.js";import{t as y}from"./HeaderMenu-CCe3SZd2.js";import{t as b}from"./_plugin-vue_export-helper-BDNMzG2s.js";var x={class:`center-block-custom`},S={class:`width700`},C={class:`scenario-card`},w={class:`scenario-heading`},T={class:`scenario-title`},E={class:`scenario-image-frame`},D=[`src`,`alt`],O={class:`scenario-details`},k={class:`scenario-description`},A={class:`scenario-rating`},j={key:1},M={key:2},N={key:0,class:`scenario-difficulty`},P={class:`scenario-author`},F={key:1,class:`reviews-section`},I={class:`review-heading`},L={class:`review-game`},R={class:`review-text`},z=b(r({__name:`ScenarioPage`,setup(r){let b=_(),z=g(),B=d().params.id,V=l([]),H=l({ID:void 0,name:void 0,story:void 0,author:void 0,status:void 0,updatedAt:void 0,createdAt:void 0,publishedAt:void 0,averageRating:void 0,reviewsCount:void 0,difficulty:void 0});async function U(e){try{let t=await z.GetScenario({ID:e});H.value=t.scenario}catch(e){b.error(e instanceof Error?e.message:`Не удалось загрузить сценарий`)}}U(Number(B));async function W(e){try{let t=await z.GetScenarioReviews({scenarioID:e});V.value=t.reviews||[]}catch(e){b.error(e instanceof Error?e.message:`Не удалось загрузить отзывы`)}}return W(Number(B)),(r,l)=>(o(),i(p,null,[a(`div`,x,[a(`div`,S,[a(`section`,C,[a(`div`,w,[l[0]||=a(`p`,{class:`scenario-kicker`},`ДЕЛО ИЗ КАТАЛОГА`,-1),a(`h1`,T,m(H.value.name),1)]),a(`div`,E,[a(`img`,{class:`scenario-image`,src:H.value.image,alt:H.value.name},null,8,D)]),a(`div`,O,[a(`p`,k,m(H.value.description),1),a(`div`,A,[H.value.reviewsCount?(o(),t(f(v),{key:0,value:H.value.averageRating,readonly:``,"allow-half":``,size:`small`},null,8,[`value`])):e(``,!0),H.value.reviewsCount?(o(),i(`span`,j,m(H.value.averageRating?.toFixed(1))+` · `+m(H.value.reviewsCount)+` отзывов`,1)):(o(),i(`span`,M,`Пока нет оценок`))]),H.value.difficulty?(o(),i(`div`,N,`Сложность: `+m(H.value.difficulty),1)):e(``,!0),a(`div`,P,[n(f(h),{bordered:!1,type:`success`,class:`status-block`},{default:c(()=>[u(` Автор: `+m(H.value.author?.username),1)]),_:1})]),V.value.length?(o(),i(`section`,F,[l[1]||=a(`h2`,{class:`reviews-title`},`Отзывы команд`,-1),(o(!0),i(p,null,s(V.value,e=>(o(),i(`article`,{key:e.ID,class:`review-card`},[a(`div`,I,[a(`strong`,null,m(e.teamName),1),n(f(v),{value:e.rating,readonly:``,size:`small`},null,8,[`value`])]),a(`div`,null,`Сложность: `+m([``,`лёгкая`,`средняя`,`тяжёлая`][e.difficulty||0]),1),a(`div`,L,m(e.gameName),1),a(`p`,R,m(e.text),1)]))),128))])):e(``,!0)])])])]),n(y,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-fd1f9c93`]]),B=r({__name:`ScenarioView`,setup(e){return(e,n)=>(o(),t(z))}});export{B as default};
|
||||
import{D as e,E as t,M as n,N as r,O as i,T as a,Y as o,Z as s,at as c,gt as l,j as u,l as d,xt as f,y as p,zt as m}from"./client-Dr2LhGo3.js";import{t as h}from"./Tag-CR6OUVfK.js";import{n as g,r as _}from"./es-DzLJg_jB.js";import{t as v}from"./Rate-BIXw_KSe.js";import{t as y}from"./HeaderMenu-BMv76IOe.js";import{t as b}from"./_plugin-vue_export-helper-BDNMzG2s.js";var x={class:`center-block-custom`},S={class:`width700`},C={class:`scenario-card`},w={class:`scenario-heading`},T={class:`scenario-title`},E={class:`scenario-image-frame`},D=[`src`,`alt`],O={class:`scenario-details`},k={class:`scenario-description`},A={class:`scenario-rating`},j={key:1},M={key:2},N={key:0,class:`scenario-difficulty`},P={class:`scenario-author`},F={key:1,class:`reviews-section`},I={class:`review-heading`},L={class:`review-game`},R={class:`review-text`},z=b(r({__name:`ScenarioPage`,setup(r){let b=_(),z=g(),B=d().params.id,V=l([]),H=l({ID:void 0,name:void 0,story:void 0,author:void 0,status:void 0,updatedAt:void 0,createdAt:void 0,publishedAt:void 0,averageRating:void 0,reviewsCount:void 0,difficulty:void 0});async function U(e){try{let t=await z.GetScenario({ID:e});H.value=t.scenario}catch(e){b.error(e instanceof Error?e.message:`Не удалось загрузить сценарий`)}}U(Number(B));async function W(e){try{let t=await z.GetScenarioReviews({scenarioID:e});V.value=t.reviews||[]}catch(e){b.error(e instanceof Error?e.message:`Не удалось загрузить отзывы`)}}return W(Number(B)),(r,l)=>(o(),i(p,null,[a(`div`,x,[a(`div`,S,[a(`section`,C,[a(`div`,w,[l[0]||=a(`p`,{class:`scenario-kicker`},`ДЕЛО ИЗ КАТАЛОГА`,-1),a(`h1`,T,m(H.value.name),1)]),a(`div`,E,[a(`img`,{class:`scenario-image`,src:H.value.image,alt:H.value.name},null,8,D)]),a(`div`,O,[a(`p`,k,m(H.value.description),1),a(`div`,A,[H.value.reviewsCount?(o(),t(f(v),{key:0,value:H.value.averageRating,readonly:``,"allow-half":``,size:`small`},null,8,[`value`])):e(``,!0),H.value.reviewsCount?(o(),i(`span`,j,m(H.value.averageRating?.toFixed(1))+` · `+m(H.value.reviewsCount)+` отзывов`,1)):(o(),i(`span`,M,`Пока нет оценок`))]),H.value.difficulty?(o(),i(`div`,N,`Сложность: `+m(H.value.difficulty),1)):e(``,!0),a(`div`,P,[n(f(h),{bordered:!1,type:`success`,class:`status-block`},{default:c(()=>[u(` Автор: `+m(H.value.author?.username),1)]),_:1})]),V.value.length?(o(),i(`section`,F,[l[1]||=a(`h2`,{class:`reviews-title`},`Отзывы команд`,-1),(o(!0),i(p,null,s(V.value,e=>(o(),i(`article`,{key:e.ID,class:`review-card`},[a(`div`,I,[a(`strong`,null,m(e.teamName),1),n(f(v),{value:e.rating,readonly:``,size:`small`},null,8,[`value`])]),a(`div`,null,`Сложность: `+m([``,`лёгкая`,`средняя`,`тяжёлая`][e.difficulty||0]),1),a(`div`,L,m(e.gameName),1),a(`p`,R,m(e.text),1)]))),128))])):e(``,!0)])])])]),n(y,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-fd1f9c93`]]),B=r({__name:`ScenarioView`,setup(e){return(e,n)=>(o(),t(z))}});export{B as default};
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
.binding-card[data-v-ccd8d01d],.qr-card[data-v-ccd8d01d],.ready-card[data-v-ccd8d01d]{text-align:center;width:100%;max-width:min(94vw,520px)}.binding-card p[data-v-ccd8d01d],.qr-card p[data-v-ccd8d01d],.ready-card p[data-v-ccd8d01d]{margin:0 0 16px}.binding-card .n-select[data-v-ccd8d01d]{margin-bottom:8px}.binding-card .n-button[data-v-ccd8d01d],.qr-card .n-button[data-v-ccd8d01d],.ready-card .n-button[data-v-ccd8d01d]{margin-top:8px}.ready-title[data-v-ccd8d01d]{font-size:28px}.screen-qr[data-v-ccd8d01d]{background:#fff;padding:12px;line-height:0}.screen-center[data-v-ccd8d01d]{justify-content:center;align-items:center;min-height:100dvh;padding:20px;display:flex}.screen-page[data-v-ccd8d01d]{color:#eee;background:#111;min-height:100dvh}.screen-content[data-v-ccd8d01d]{text-align:center;background-position:50%;background-size:cover;justify-content:center;align-items:center;min-height:100dvh;display:flex}.media-error[data-v-ccd8d01d]{z-index:2;background:#6b2d2d;border-radius:8px;margin:0;padding:10px 14px;position:fixed;top:20px;left:20px;right:20px}.screen-cover[data-v-ccd8d01d]{width:100vw;height:100dvh;position:relative}.cover-label[data-v-ccd8d01d]{margin:0 0 20px;font-size:clamp(28px,6vw,72px)}.cover-image[data-v-ccd8d01d]{object-fit:contain;width:100%;height:100%;display:block}.cover-controls[data-v-ccd8d01d]{text-align:center;position:absolute;top:50%;left:0;right:0;transform:translateY(-50%)}.cover-controls .n-button[data-v-ccd8d01d]{margin-bottom:16px;font-weight:700}.screen-message[data-v-ccd8d01d]{font-size:clamp(42px,10vw,140px);font-weight:700}.timer-screen[data-v-ccd8d01d]{flex-direction:column;justify-content:center;align-items:center;gap:24px;max-width:90vw;display:flex}.timer-label[data-v-ccd8d01d]{margin:0;font-size:clamp(32px,6vw,88px)}.timer-value[data-v-ccd8d01d]{font-variant-numeric:tabular-nums;font-size:clamp(96px,24vw,360px);font-weight:700;line-height:.9}.screen-media[data-v-ccd8d01d]{width:900px;max-width:90vw}.screen-media audio[data-v-ccd8d01d],.screen-media video[data-v-ccd8d01d]{width:100%;max-height:75dvh}.conclusion-screen[data-v-ccd8d01d]{background:#000;width:100vw;height:100dvh}.conclusion-screen video[data-v-ccd8d01d]{object-fit:contain;width:100%;height:100%;display:block}.results-screen[data-v-ccd8d01d]{width:1400px;max-width:96vw;max-height:90dvh;overflow:hidden}.results-screen h1[data-v-ccd8d01d]{font-size:clamp(28px,5vw,64px)}.results-screen table[data-v-ccd8d01d]{border-collapse:collapse;width:100%;font-size:clamp(14px,2vw,28px)}.results-screen th[data-v-ccd8d01d],.results-screen td[data-v-ccd8d01d]{text-align:left;border-bottom:1px solid #ffffff2e;padding:8px 12px}.results-screen tbody tr[data-v-ccd8d01d]:nth-child(odd){background:#ffffff14}
|
||||
+1
File diff suppressed because one or more lines are too long
-1
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
||||
.binding-card[data-v-d09deff8],.qr-card[data-v-d09deff8],.ready-card[data-v-d09deff8]{text-align:center;width:100%;max-width:min(94vw,520px)}.binding-card p[data-v-d09deff8],.qr-card p[data-v-d09deff8],.ready-card p[data-v-d09deff8]{margin:0 0 16px}.binding-card .n-select[data-v-d09deff8]{margin-bottom:8px}.binding-card .n-button[data-v-d09deff8],.qr-card .n-button[data-v-d09deff8],.ready-card .n-button[data-v-d09deff8]{margin-top:8px}.ready-title[data-v-d09deff8]{font-size:28px}.screen-qr[data-v-d09deff8]{background:#fff;padding:12px;line-height:0}.screen-center[data-v-d09deff8]{justify-content:center;align-items:center;min-height:100dvh;padding:20px;display:flex}.screen-page[data-v-d09deff8]{color:#eee;background:#111;min-height:100dvh}.screen-content[data-v-d09deff8]{text-align:center;background-position:50%;background-size:cover;justify-content:center;align-items:center;min-height:100dvh;display:flex}.media-error[data-v-d09deff8]{z-index:2;background:#6b2d2d;border-radius:8px;margin:0;padding:10px 14px;position:fixed;top:20px;left:20px;right:20px}.screen-cover[data-v-d09deff8]{width:100vw;height:100dvh;position:relative}.cover-label[data-v-d09deff8]{margin:0 0 20px;font-size:clamp(28px,6vw,72px)}.cover-image[data-v-d09deff8]{object-fit:contain;width:100%;height:100%;display:block}.cover-controls[data-v-d09deff8]{text-align:center;position:absolute;top:50%;left:0;right:0;transform:translateY(-50%)}.cover-controls .n-button[data-v-d09deff8]{margin-bottom:16px;font-weight:700}.screen-message[data-v-d09deff8]{font-size:clamp(42px,10vw,140px);font-weight:700}.timer-screen[data-v-d09deff8]{flex-direction:column;justify-content:center;align-items:center;gap:24px;max-width:90vw;display:flex}.timer-label[data-v-d09deff8]{margin:0;font-size:clamp(32px,6vw,88px)}.timer-value[data-v-d09deff8]{font-variant-numeric:tabular-nums;font-size:clamp(96px,24vw,360px);font-weight:700;line-height:.9}.screen-media[data-v-d09deff8]{width:900px;max-width:90vw}.screen-media audio[data-v-d09deff8],.screen-media video[data-v-d09deff8]{width:100%;max-height:75dvh}.conclusion-screen[data-v-d09deff8]{background:#000;width:100vw;height:100dvh}.conclusion-screen video[data-v-d09deff8]{object-fit:contain;width:100%;height:100%;display:block}.results-screen[data-v-d09deff8]{width:1400px;max-width:96vw;max-height:90dvh;overflow:hidden}.results-screen h1[data-v-d09deff8]{font-size:clamp(28px,5vw,64px)}.results-screen table[data-v-d09deff8]{border-collapse:collapse;width:100%;font-size:clamp(14px,2vw,28px)}.results-screen th[data-v-d09deff8],.results-screen td[data-v-d09deff8]{text-align:left;border-bottom:1px solid #ffffff2e;padding:8px 12px}.results-screen tbody tr[data-v-d09deff8]:nth-child(odd){background:#ffffff14}
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{I as e,K as t,N as n,Q as r,V as i,gt as a,it as o,ot as s,rt as c,w as l,y as u,yt as d}from"./client-DXlIdAPE.js";import{F as f,G as p,H as m,K as h,M as g,N as _,V as v,W as y,o as b,q as x,r as S}from"./light-BIsOPw8z.js";import{a as C,i as w,n as T,o as E,r as D,t as O}from"./Follower-DdYVvFC3.js";import{a as k,c as ee,i as A,n as te,o as ne,r as j,t as M,u as N}from"./utils-BniG1THh.js";import{f as re,o as P}from"./Card-B9DBICFl.js";import{r as ie}from"./css-DEmdllcC.js";import{o as F,t as I}from"./fade-in-scale-up.cssr-I7gADEYt.js";import{t as L}from"./use-merged-state-UQYRS3II.js";import{t as R}from"./use-compitable-U-V1aiGL.js";import{t as z}from"./Popover-B4Cvf3m5.js";import{r as ae}from"./keep-DSzUswzI.js";import{n as oe,r as B}from"./use-form-item-RYm9Vtu-.js";import{r as se,t as V}from"./Suffix-DkvtIJaL.js";import{t as H}from"./Tag-cr1aUmGQ.js";import{D as U,Q as W,Y as ce,q as G,tt as K,y as le}from"./index-Cvq506nd.js";var q=`v-hidden`,ue=T(`[v-hidden]`,{display:`none!important`}),J=n({name:`Overflow`,props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:n}){let r=a(null),i=a(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;t<h-1;++t){if(t<0)continue;let n=l[t];if(m){n.hasAttribute(q)||n.setAttribute(q,``);continue}else n.hasAttribute(q)&&n.removeAttribute(q);let r=n.offsetWidth;if(p+=r,d[t]=r,p>u){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=f();return ue.mount({id:`vueuc/overflow`,head:!0,anchorMetaName:D,ssr:s}),t(()=>o({showAllItemsBeforeCalculate:!1})),{selfRef:r,counterRef:i,sync:o}},render(){let{$slots:t}=this;return i(()=>this.sync({showAllItemsBeforeCalculate:!1})),e(`div`,{class:`v-overflow`,ref:`selfRef`},[r(t,`default`),t.counter?t.counter():e(`span`,{style:{display:`inline-block`},ref:`counterRef`}),t.tail?t.tail():null])}});function Y(e){switch(typeof e){case`string`:return e||void 0;case`number`:return String(e);default:return}}var de=v([m(`base-selection`,`
|
||||
import{I as e,K as t,N as n,Q as r,V as i,gt as a,it as o,ot as s,rt as c,w as l,y as u,yt as d}from"./client-Dr2LhGo3.js";import{F as f,G as p,H as m,K as h,M as g,N as _,V as v,W as y,o as b,q as x,r as S}from"./light-DXa4IKh6.js";import{a as C,i as w,n as T,o as E,r as D,t as O}from"./Follower-BbLlyu-f.js";import{a as k,c as ee,i as A,n as te,o as ne,r as j,t as M,u as N}from"./utils-CD7yqOU5.js";import{f as re,o as P}from"./Card-C2NfeMd7.js";import{r as ie}from"./css-DEmdllcC.js";import{o as F,t as I}from"./fade-in-scale-up.cssr-D15e0u2L.js";import{t as L}from"./use-merged-state-ByR-vZB2.js";import{t as R}from"./use-compitable-BG72l399.js";import{t as z}from"./Popover-BkeysbMf.js";import{r as ae}from"./keep-0zAzEB29.js";import{n as oe,r as B}from"./use-form-item-CC5qNKr7.js";import{r as se,t as V}from"./Suffix-CzE7Vqtu.js";import{t as H}from"./Tag-CR6OUVfK.js";import{D as U,Q as W,Y as ce,q as G,tt as K,y as le}from"./index-CML5W5F9.js";var q=`v-hidden`,ue=T(`[v-hidden]`,{display:`none!important`}),J=n({name:`Overflow`,props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:n}){let r=a(null),i=a(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;t<h-1;++t){if(t<0)continue;let n=l[t];if(m){n.hasAttribute(q)||n.setAttribute(q,``);continue}else n.hasAttribute(q)&&n.removeAttribute(q);let r=n.offsetWidth;if(p+=r,d[t]=r,p>u){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=f();return ue.mount({id:`vueuc/overflow`,head:!0,anchorMetaName:D,ssr:s}),t(()=>o({showAllItemsBeforeCalculate:!1})),{selfRef:r,counterRef:i,sync:o}},render(){let{$slots:t}=this;return i(()=>this.sync({showAllItemsBeforeCalculate:!1})),e(`div`,{class:`v-overflow`,ref:`selfRef`},[r(t,`default`),t.counter?t.counter():e(`span`,{style:{display:`inline-block`},ref:`counterRef`}),t.tail?t.tail():null])}});function Y(e){switch(typeof e){case`string`:return e||void 0;case`number`:return String(e);default:return}}var de=v([m(`base-selection`,`
|
||||
--n-padding-single: var(--n-padding-single-top) var(--n-padding-single-right) var(--n-padding-single-bottom) var(--n-padding-single-left);
|
||||
--n-padding-multiple: var(--n-padding-multiple-top) var(--n-padding-multiple-right) var(--n-padding-multiple-bottom) var(--n-padding-multiple-left);
|
||||
position: relative;
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{N as e,O as t,T as n,Y as r}from"./client-DXlIdAPE.js";var i={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},a=e({name:`Settings`,render:function(e,a){return r(),t(`svg`,i,a[0]||=[n(`path`,{d:`M27 16.76V16v-.77l1.92-1.68A2 2 0 0 0 29.3 11l-2.36-4a2 2 0 0 0-1.73-1a2 2 0 0 0-.64.1l-2.43.82a11.35 11.35 0 0 0-1.31-.75l-.51-2.52a2 2 0 0 0-2-1.61h-4.68a2 2 0 0 0-2 1.61l-.51 2.52a11.48 11.48 0 0 0-1.32.75l-2.38-.86A2 2 0 0 0 6.79 6a2 2 0 0 0-1.73 1L2.7 11a2 2 0 0 0 .41 2.51L5 15.24v1.53l-1.89 1.68A2 2 0 0 0 2.7 21l2.36 4a2 2 0 0 0 1.73 1a2 2 0 0 0 .64-.1l2.43-.82a11.35 11.35 0 0 0 1.31.75l.51 2.52a2 2 0 0 0 2 1.61h4.72a2 2 0 0 0 2-1.61l.51-2.52a11.48 11.48 0 0 0 1.32-.75l2.42.82a2 2 0 0 0 .64.1a2 2 0 0 0 1.73-1l2.28-4a2 2 0 0 0-.41-2.51zM25.21 24l-3.43-1.16a8.86 8.86 0 0 1-2.71 1.57L18.36 28h-4.72l-.71-3.55a9.36 9.36 0 0 1-2.7-1.57L6.79 24l-2.36-4l2.72-2.4a8.9 8.9 0 0 1 0-3.13L4.43 12l2.36-4l3.43 1.16a8.86 8.86 0 0 1 2.71-1.57L13.64 4h4.72l.71 3.55a9.36 9.36 0 0 1 2.7 1.57L25.21 8l2.36 4l-2.72 2.4a8.9 8.9 0 0 1 0 3.13L27.57 20z`,fill:`currentColor`},null,-1),n(`path`,{d:`M16 22a6 6 0 1 1 6-6a5.94 5.94 0 0 1-6 6zm0-10a3.91 3.91 0 0 0-4 4a3.91 3.91 0 0 0 4 4a3.91 3.91 0 0 0 4-4a3.91 3.91 0 0 0-4-4z`,fill:`currentColor`},null,-1)])}});export{a as t};
|
||||
import{N as e,O as t,T as n,Y as r}from"./client-Dr2LhGo3.js";var i={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},a=e({name:`Settings`,render:function(e,a){return r(),t(`svg`,i,a[0]||=[n(`path`,{d:`M27 16.76V16v-.77l1.92-1.68A2 2 0 0 0 29.3 11l-2.36-4a2 2 0 0 0-1.73-1a2 2 0 0 0-.64.1l-2.43.82a11.35 11.35 0 0 0-1.31-.75l-.51-2.52a2 2 0 0 0-2-1.61h-4.68a2 2 0 0 0-2 1.61l-.51 2.52a11.48 11.48 0 0 0-1.32.75l-2.38-.86A2 2 0 0 0 6.79 6a2 2 0 0 0-1.73 1L2.7 11a2 2 0 0 0 .41 2.51L5 15.24v1.53l-1.89 1.68A2 2 0 0 0 2.7 21l2.36 4a2 2 0 0 0 1.73 1a2 2 0 0 0 .64-.1l2.43-.82a11.35 11.35 0 0 0 1.31.75l.51 2.52a2 2 0 0 0 2 1.61h4.72a2 2 0 0 0 2-1.61l.51-2.52a11.48 11.48 0 0 0 1.32-.75l2.42.82a2 2 0 0 0 .64.1a2 2 0 0 0 1.73-1l2.28-4a2 2 0 0 0-.41-2.51zM25.21 24l-3.43-1.16a8.86 8.86 0 0 1-2.71 1.57L18.36 28h-4.72l-.71-3.55a9.36 9.36 0 0 1-2.7-1.57L6.79 24l-2.36-4l2.72-2.4a8.9 8.9 0 0 1 0-3.13L4.43 12l2.36-4l3.43 1.16a8.86 8.86 0 0 1 2.71-1.57L13.64 4h4.72l.71 3.55a9.36 9.36 0 0 1 2.7 1.57L25.21 8l2.36 4l-2.72 2.4a8.9 8.9 0 0 1 0 3.13L27.57 20z`,fill:`currentColor`},null,-1),n(`path`,{d:`M16 22a6 6 0 1 1 6-6a5.94 5.94 0 0 1-6 6zm0-10a3.91 3.91 0 0 0-4 4a3.91 3.91 0 0 0 4 4a3.91 3.91 0 0 0 4-4a3.91 3.91 0 0 0-4-4z`,fill:`currentColor`},null,-1)])}});export{a as t};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{I as e,N as t,v as n,w as r}from"./client-DXlIdAPE.js";import{N as i,o as a,q as o,r as s}from"./light-BIsOPw8z.js";import{n as c,t as l}from"./css-DEmdllcC.js";import{a as u}from"./Button-CcjM7zNp.js";import{t as d}from"./flatten-bHHhXrku.js";import{t as f}from"./get-slot-6kXJmSMP.js";import{d as p}from"./index-Cvq506nd.js";function m(){return p}var h={name:`Space`,self:m},g;function _(){if(!u)return!0;if(g===void 0){let e=document.createElement(`div`);e.style.display=`flex`,e.style.flexDirection=`column`,e.style.rowGap=`1px`,e.appendChild(document.createElement(`div`)),e.appendChild(document.createElement(`div`)),document.body.appendChild(e);let t=e.scrollHeight===1;return document.body.removeChild(e),g=t}return g}var v=t({name:`Space`,props:Object.assign(Object.assign({},s.props),{align:String,justify:{type:String,default:`start`},inline:Boolean,vertical:Boolean,reverse:Boolean,size:[String,Number,Array],wrapItem:{type:Boolean,default:!0},itemClass:String,itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),setup(e){let{mergedClsPrefixRef:t,mergedRtlRef:n,mergedComponentPropsRef:u}=i(e),d=r(()=>e.size||u?.value?.Space?.size||`medium`),f=s(`Space`,`-space`,void 0,h,e,t),p=a(`Space`,n,t);return{useGap:_(),rtlEnabled:p,mergedClsPrefix:t,margin:r(()=>{let e=d.value;if(Array.isArray(e))return{horizontal:e[0],vertical:e[1]};if(typeof e==`number`)return{horizontal:e,vertical:e};let{self:{[o(`gap`,e)]:t}}=f.value,{row:n,col:r}=c(t);return{horizontal:l(r),vertical:l(n)}})}},render(){let{vertical:t,reverse:r,align:i,inline:a,justify:o,itemClass:s,itemStyle:c,margin:l,wrap:u,mergedClsPrefix:p,rtlEnabled:m,useGap:h,wrapItem:g,internalUseGap:_}=this,v=d(f(this),!1);if(!v.length)return null;let y=`${l.horizontal}px`,b=`${l.horizontal/2}px`,x=`${l.vertical}px`,S=`${l.vertical/2}px`,C=v.length-1,w=o.startsWith(`space-`);return e(`div`,{role:`none`,class:[`${p}-space`,m&&`${p}-space--rtl`],style:{display:a?`inline-flex`:`flex`,flexDirection:t&&!r?`column`:t&&r?`column-reverse`:!t&&r?`row-reverse`:`row`,justifyContent:[`start`,`end`].includes(o)?`flex-${o}`:o,flexWrap:!u||t?`nowrap`:`wrap`,marginTop:h||t?``:`-${S}`,marginBottom:h||t?``:`-${S}`,alignItems:i,gap:h?`${l.vertical}px ${l.horizontal}px`:``}},!g&&(h||_)?v:v.map((r,i)=>r.type===n?r:e(`div`,{role:`none`,class:s,style:[c,{maxWidth:`100%`},h?``:t?{marginBottom:i===C?``:x}:m?{marginLeft:w?o===`space-between`&&i===C?``:b:i===C?``:y,marginRight:w?o===`space-between`&&i===0?``:b:``,paddingTop:S,paddingBottom:S}:{marginRight:w?o===`space-between`&&i===C?``:b:i===C?``:y,marginLeft:w?o===`space-between`&&i===0?``:b:``,paddingTop:S,paddingBottom:S}]},r)))}});export{v as t};
|
||||
import{I as e,N as t,v as n,w as r}from"./client-Dr2LhGo3.js";import{N as i,o as a,q as o,r as s}from"./light-DXa4IKh6.js";import{n as c,t as l}from"./css-DEmdllcC.js";import{a as u}from"./Button-DrSwbbPC.js";import{t as d}from"./flatten-CUj06cJH.js";import{t as f}from"./get-slot-6kXJmSMP.js";import{d as p}from"./index-CML5W5F9.js";function m(){return p}var h={name:`Space`,self:m},g;function _(){if(!u)return!0;if(g===void 0){let e=document.createElement(`div`);e.style.display=`flex`,e.style.flexDirection=`column`,e.style.rowGap=`1px`,e.appendChild(document.createElement(`div`)),e.appendChild(document.createElement(`div`)),document.body.appendChild(e);let t=e.scrollHeight===1;return document.body.removeChild(e),g=t}return g}var v=t({name:`Space`,props:Object.assign(Object.assign({},s.props),{align:String,justify:{type:String,default:`start`},inline:Boolean,vertical:Boolean,reverse:Boolean,size:[String,Number,Array],wrapItem:{type:Boolean,default:!0},itemClass:String,itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),setup(e){let{mergedClsPrefixRef:t,mergedRtlRef:n,mergedComponentPropsRef:u}=i(e),d=r(()=>e.size||u?.value?.Space?.size||`medium`),f=s(`Space`,`-space`,void 0,h,e,t),p=a(`Space`,n,t);return{useGap:_(),rtlEnabled:p,mergedClsPrefix:t,margin:r(()=>{let e=d.value;if(Array.isArray(e))return{horizontal:e[0],vertical:e[1]};if(typeof e==`number`)return{horizontal:e,vertical:e};let{self:{[o(`gap`,e)]:t}}=f.value,{row:n,col:r}=c(t);return{horizontal:l(r),vertical:l(n)}})}},render(){let{vertical:t,reverse:r,align:i,inline:a,justify:o,itemClass:s,itemStyle:c,margin:l,wrap:u,mergedClsPrefix:p,rtlEnabled:m,useGap:h,wrapItem:g,internalUseGap:_}=this,v=d(f(this),!1);if(!v.length)return null;let y=`${l.horizontal}px`,b=`${l.horizontal/2}px`,x=`${l.vertical}px`,S=`${l.vertical/2}px`,C=v.length-1,w=o.startsWith(`space-`);return e(`div`,{role:`none`,class:[`${p}-space`,m&&`${p}-space--rtl`],style:{display:a?`inline-flex`:`flex`,flexDirection:t&&!r?`column`:t&&r?`column-reverse`:!t&&r?`row-reverse`:`row`,justifyContent:[`start`,`end`].includes(o)?`flex-${o}`:o,flexWrap:!u||t?`nowrap`:`wrap`,marginTop:h||t?``:`-${S}`,marginBottom:h||t?``:`-${S}`,alignItems:i,gap:h?`${l.vertical}px ${l.horizontal}px`:``}},!g&&(h||_)?v:v.map((r,i)=>r.type===n?r:e(`div`,{role:`none`,class:s,style:[c,{maxWidth:`100%`},h?``:t?{marginBottom:i===C?``:x}:m?{marginLeft:w?o===`space-between`&&i===C?``:b:i===C?``:y,marginRight:w?o===`space-between`&&i===0?``:b:``,paddingTop:S,paddingBottom:S}:{marginRight:w?o===`space-between`&&i===C?``:b:i===C?``:y,marginLeft:w?o===`space-between`&&i===0?``:b:``,paddingTop:S,paddingBottom:S}]},r)))}});export{v as t};
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{I as e,N as t,X as n,gt as r,m as i,w as a,yt as o}from"./client-DXlIdAPE.js";import{G as s,H as c,I as l,K as u,M as d,N as f,V as p,W as m,o as h,q as g,r as _,t as v}from"./light-BIsOPw8z.js";import{r as y}from"./css-DEmdllcC.js";import{i as b,r as x}from"./use-form-item-RYm9Vtu-.js";import{a as S}from"./resolve-slot-CYut2r4x.js";import{F as C,O as w}from"./index-Cvq506nd.js";function T(e){let{textColor2:t,primaryColorHover:n,primaryColorPressed:r,primaryColor:i,infoColor:a,successColor:o,warningColor:s,errorColor:c,baseColor:u,borderColor:d,opacityDisabled:f,tagColor:p,closeIconColor:m,closeIconColorHover:h,closeIconColorPressed:g,borderRadiusSmall:_,fontSizeMini:v,fontSizeTiny:y,fontSizeSmall:b,fontSizeMedium:x,heightMini:S,heightTiny:C,heightSmall:T,heightMedium:E,closeColorHover:D,closeColorPressed:O,buttonColor2Hover:k,buttonColor2Pressed:A,fontWeightStrong:j}=e;return Object.assign(Object.assign({},w),{closeBorderRadius:_,heightTiny:S,heightSmall:C,heightMedium:T,heightLarge:E,borderRadius:_,opacityDisabled:f,fontSizeTiny:v,fontSizeSmall:y,fontSizeMedium:b,fontSizeLarge:x,fontWeightStrong:j,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:u,colorCheckable:`#0000`,colorHoverCheckable:k,colorPressedCheckable:A,colorChecked:i,colorCheckedHover:n,colorCheckedPressed:r,border:`1px solid ${d}`,textColor:t,color:p,colorBordered:`rgb(250, 250, 252)`,closeIconColor:m,closeIconColorHover:h,closeIconColorPressed:g,closeColorHover:D,closeColorPressed:O,borderPrimary:`1px solid ${l(i,{alpha:.3})}`,textColorPrimary:i,colorPrimary:l(i,{alpha:.12}),colorBorderedPrimary:l(i,{alpha:.1}),closeIconColorPrimary:i,closeIconColorHoverPrimary:i,closeIconColorPressedPrimary:i,closeColorHoverPrimary:l(i,{alpha:.12}),closeColorPressedPrimary:l(i,{alpha:.18}),borderInfo:`1px solid ${l(a,{alpha:.3})}`,textColorInfo:a,colorInfo:l(a,{alpha:.12}),colorBorderedInfo:l(a,{alpha:.1}),closeIconColorInfo:a,closeIconColorHoverInfo:a,closeIconColorPressedInfo:a,closeColorHoverInfo:l(a,{alpha:.12}),closeColorPressedInfo:l(a,{alpha:.18}),borderSuccess:`1px solid ${l(o,{alpha:.3})}`,textColorSuccess:o,colorSuccess:l(o,{alpha:.12}),colorBorderedSuccess:l(o,{alpha:.1}),closeIconColorSuccess:o,closeIconColorHoverSuccess:o,closeIconColorPressedSuccess:o,closeColorHoverSuccess:l(o,{alpha:.12}),closeColorPressedSuccess:l(o,{alpha:.18}),borderWarning:`1px solid ${l(s,{alpha:.35})}`,textColorWarning:s,colorWarning:l(s,{alpha:.15}),colorBorderedWarning:l(s,{alpha:.12}),closeIconColorWarning:s,closeIconColorHoverWarning:s,closeIconColorPressedWarning:s,closeColorHoverWarning:l(s,{alpha:.12}),closeColorPressedWarning:l(s,{alpha:.18}),borderError:`1px solid ${l(c,{alpha:.23})}`,textColorError:c,colorError:l(c,{alpha:.1}),colorBorderedError:l(c,{alpha:.08}),closeIconColorError:c,closeIconColorHoverError:c,closeIconColorPressedError:c,closeColorHoverError:l(c,{alpha:.12}),closeColorPressedError:l(c,{alpha:.18})})}var E={name:`Tag`,common:v,self:T},D={color:Object,type:{type:String,default:`default`},round:Boolean,size:String,closable:Boolean,disabled:{type:Boolean,default:void 0}},O=c(`tag`,`
|
||||
import{I as e,N as t,X as n,gt as r,m as i,w as a,yt as o}from"./client-Dr2LhGo3.js";import{G as s,H as c,I as l,K as u,M as d,N as f,V as p,W as m,o as h,q as g,r as _,t as v}from"./light-DXa4IKh6.js";import{r as y}from"./css-DEmdllcC.js";import{i as b,r as x}from"./use-form-item-CC5qNKr7.js";import{a as S}from"./resolve-slot-DAynYbhJ.js";import{F as C,O as w}from"./index-CML5W5F9.js";function T(e){let{textColor2:t,primaryColorHover:n,primaryColorPressed:r,primaryColor:i,infoColor:a,successColor:o,warningColor:s,errorColor:c,baseColor:u,borderColor:d,opacityDisabled:f,tagColor:p,closeIconColor:m,closeIconColorHover:h,closeIconColorPressed:g,borderRadiusSmall:_,fontSizeMini:v,fontSizeTiny:y,fontSizeSmall:b,fontSizeMedium:x,heightMini:S,heightTiny:C,heightSmall:T,heightMedium:E,closeColorHover:D,closeColorPressed:O,buttonColor2Hover:k,buttonColor2Pressed:A,fontWeightStrong:j}=e;return Object.assign(Object.assign({},w),{closeBorderRadius:_,heightTiny:S,heightSmall:C,heightMedium:T,heightLarge:E,borderRadius:_,opacityDisabled:f,fontSizeTiny:v,fontSizeSmall:y,fontSizeMedium:b,fontSizeLarge:x,fontWeightStrong:j,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:u,colorCheckable:`#0000`,colorHoverCheckable:k,colorPressedCheckable:A,colorChecked:i,colorCheckedHover:n,colorCheckedPressed:r,border:`1px solid ${d}`,textColor:t,color:p,colorBordered:`rgb(250, 250, 252)`,closeIconColor:m,closeIconColorHover:h,closeIconColorPressed:g,closeColorHover:D,closeColorPressed:O,borderPrimary:`1px solid ${l(i,{alpha:.3})}`,textColorPrimary:i,colorPrimary:l(i,{alpha:.12}),colorBorderedPrimary:l(i,{alpha:.1}),closeIconColorPrimary:i,closeIconColorHoverPrimary:i,closeIconColorPressedPrimary:i,closeColorHoverPrimary:l(i,{alpha:.12}),closeColorPressedPrimary:l(i,{alpha:.18}),borderInfo:`1px solid ${l(a,{alpha:.3})}`,textColorInfo:a,colorInfo:l(a,{alpha:.12}),colorBorderedInfo:l(a,{alpha:.1}),closeIconColorInfo:a,closeIconColorHoverInfo:a,closeIconColorPressedInfo:a,closeColorHoverInfo:l(a,{alpha:.12}),closeColorPressedInfo:l(a,{alpha:.18}),borderSuccess:`1px solid ${l(o,{alpha:.3})}`,textColorSuccess:o,colorSuccess:l(o,{alpha:.12}),colorBorderedSuccess:l(o,{alpha:.1}),closeIconColorSuccess:o,closeIconColorHoverSuccess:o,closeIconColorPressedSuccess:o,closeColorHoverSuccess:l(o,{alpha:.12}),closeColorPressedSuccess:l(o,{alpha:.18}),borderWarning:`1px solid ${l(s,{alpha:.35})}`,textColorWarning:s,colorWarning:l(s,{alpha:.15}),colorBorderedWarning:l(s,{alpha:.12}),closeIconColorWarning:s,closeIconColorHoverWarning:s,closeIconColorPressedWarning:s,closeColorHoverWarning:l(s,{alpha:.12}),closeColorPressedWarning:l(s,{alpha:.18}),borderError:`1px solid ${l(c,{alpha:.23})}`,textColorError:c,colorError:l(c,{alpha:.1}),colorBorderedError:l(c,{alpha:.08}),closeIconColorError:c,closeIconColorHoverError:c,closeIconColorPressedError:c,closeColorHoverError:l(c,{alpha:.12}),closeColorPressedError:l(c,{alpha:.18})})}var E={name:`Tag`,common:v,self:T},D={color:Object,type:{type:String,default:`default`},round:Boolean,size:String,closable:Boolean,disabled:{type:Boolean,default:void 0}},O=c(`tag`,`
|
||||
--n-close-margin: var(--n-close-margin-top) var(--n-close-margin-right) var(--n-close-margin-bottom) var(--n-close-margin-left);
|
||||
white-space: nowrap;
|
||||
position: relative;
|
||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
||||
import{D as e,E as t,K as n,M as r,N as i,O as a,T as o,V as s,W as c,Y as l,at as u,gt as d,j as f,u as p,w as m,xt as h,y as g,zt as _}from"./client-DXlIdAPE.js";import{t as v}from"./Card-B9DBICFl.js";import{t as y}from"./Button-CcjM7zNp.js";import{t as b}from"./Input-DXZNHng_.js";import{t as x}from"./Alert-CVZSu-oL.js";import{n as S,r as C}from"./es-FaTWfn-R.js";import{t as w}from"./Space-BoT6AgVB.js";import{nt as T,t as E}from"./index-Cvq506nd.js";import{t as D}from"./HeaderMenu-CCe3SZd2.js";import{t as O}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as k}from"./datetime-BJNH0M1T.js";var A={class:`center-block-custom center-middle-block-custom scanner-page`},j={key:0},M={key:1},N={key:2},P=O(i({__name:`TicketScannerPage`,setup(i){let O=E(),P=p(),F=S(),I=C(),L=d(``),R=d(),z=d(``),B=d(!1),V=d(),H=d(!1),U,W=0,G=m(()=>{try{return new URL(L.value.trim()).pathname.match(/\/tickets\/([^/]+)/)?.[1]||``}catch{return L.value.trim()}});async function K(){if(!(!G.value||B.value)){B.value=!0,z.value=``,R.value=void 0;try{let e=await F.GetTicket({token:G.value});e.ticket?R.value=e.ticket:z.value=`Билет не найден`}catch(e){z.value=e instanceof Error?e.message:`Не удалось проверить билет`}finally{B.value=!1}}}async function q(){if(!(!G.value||B.value)){B.value=!0,z.value=``;try{let e=await F.AcceptTicket({token:G.value});e.ticket?(R.value=e.ticket,I.success(`Билет принят`)):z.value=`Не удалось принять билет`}catch(e){z.value=e instanceof Error?e.message:`Не удалось принять билет`}finally{B.value=!1}}}async function J(){let e=window.BarcodeDetector;if(!e||!navigator.mediaDevices?.getUserMedia){z.value=`Сканирование камерой не поддерживается. Введите ссылку вручную.`;return}try{U=await navigator.mediaDevices.getUserMedia({video:{facingMode:`environment`}}),H.value=!0,await s(),V.value&&(V.value.srcObject=U,await V.value.play());let t=new e,n=async()=>{if(!H.value||!V.value)return;let e=await t.detect(V.value);if(e[0]?.rawValue){L.value=e[0].rawValue,Y(),await K();return}W=requestAnimationFrame(n)};W=requestAnimationFrame(n)}catch{z.value=`Не удалось открыть камеру. Введите ссылку вручную.`}}function Y(){H.value=!1,cancelAnimationFrame(W),U?.getTracks().forEach(e=>e.stop()),U=void 0}return n(()=>{O.isAuthenticated||P.replace(`/login`)}),c(Y),(n,i)=>(l(),a(g,null,[r(D,{active:`games`}),o(`div`,A,[r(h(v),{title:`Проверка билета`,class:`scanner-card`},{default:u(()=>[r(h(w),{vertical:``},{default:u(()=>[H.value?(l(),a(`video`,{key:0,ref_key:`video`,ref:V,class:`scanner-video`,muted:``,playsinline:``},null,512)):e(``,!0),H.value?(l(),t(h(y),{key:2,onClick:Y},{default:u(()=>[...i[2]||=[f(`Остановить камеру`,-1)]]),_:1})):(l(),t(h(y),{key:1,onClick:J},{default:u(()=>[...i[1]||=[f(`Сканировать камерой`,-1)]]),_:1})),r(h(b),{value:L.value,"onUpdate:value":i[0]||=e=>L.value=e,placeholder:`Или вставьте ссылку на билет`,onKeyup:T(K,[`enter`])},null,8,[`value`]),r(h(y),{type:`primary`,loading:B.value,onClick:K},{default:u(()=>[...i[3]||=[f(`Проверить билет`,-1)]]),_:1},8,[`loading`]),z.value?(l(),t(h(x),{key:3,type:`error`},{default:u(()=>[f(_(z.value),1)]),_:1})):e(``,!0),R.value?(l(),a(g,{key:4},[r(h(x),{type:R.value.status===`active`?`success`:`warning`},{default:u(()=>[f(_(R.value.gameName),1),i[4]||=o(`br`,null,null,-1),f(` Статус: `+_(R.value.status===`active`?`действителен`:`уже использован`)+` `,1),R.value.usedBy?(l(),a(`span`,j,` · `+_(R.value.usedBy),1)):e(``,!0),R.value.usedAt?(l(),a(`br`,M)):e(``,!0),R.value.usedAt?(l(),a(`span`,N,`Использован: `+_(h(k)(R.value.usedAt)),1)):e(``,!0)]),_:1},8,[`type`]),R.value.status===`active`&&R.value.gameStatus!==`finish`?(l(),t(h(y),{key:0,type:`primary`,loading:B.value,onClick:q},{default:u(()=>[...i[5]||=[f(` Принять билет `,-1)]]),_:1},8,[`loading`])):e(``,!0)],64)):e(``,!0)]),_:1})]),_:1})])],64))}}),[[`__scopeId`,`data-v-42390d77`]]),F=i({__name:`TicketScannerView`,setup(e){return(e,n)=>(l(),t(P))}});export{F as default};
|
||||
import{D as e,E as t,K as n,M as r,N as i,O as a,T as o,V as s,W as c,Y as l,at as u,gt as d,j as f,u as p,w as m,xt as h,y as g,zt as _}from"./client-Dr2LhGo3.js";import{t as v}from"./Card-C2NfeMd7.js";import{t as y}from"./Button-DrSwbbPC.js";import{t as b}from"./Input-C-S2Qhf0.js";import{t as x}from"./Alert-DIuMKvSU.js";import{n as S,r as C}from"./es-DzLJg_jB.js";import{t as w}from"./Space-DTbY_9Vu.js";import{nt as T,t as E}from"./index-CML5W5F9.js";import{t as D}from"./HeaderMenu-BMv76IOe.js";import{t as O}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as k}from"./datetime-BJNH0M1T.js";var A={class:`center-block-custom center-middle-block-custom scanner-page`},j={key:0},M={key:1},N={key:2},P=O(i({__name:`TicketScannerPage`,setup(i){let O=E(),P=p(),F=S(),I=C(),L=d(``),R=d(),z=d(``),B=d(!1),V=d(),H=d(!1),U,W=0,G=m(()=>{try{return new URL(L.value.trim()).pathname.match(/\/tickets\/([^/]+)/)?.[1]||``}catch{return L.value.trim()}});async function K(){if(!(!G.value||B.value)){B.value=!0,z.value=``,R.value=void 0;try{let e=await F.GetTicket({token:G.value});e.ticket?R.value=e.ticket:z.value=`Билет не найден`}catch(e){z.value=e instanceof Error?e.message:`Не удалось проверить билет`}finally{B.value=!1}}}async function q(){if(!(!G.value||B.value)){B.value=!0,z.value=``;try{let e=await F.AcceptTicket({token:G.value});e.ticket?(R.value=e.ticket,I.success(`Билет принят`)):z.value=`Не удалось принять билет`}catch(e){z.value=e instanceof Error?e.message:`Не удалось принять билет`}finally{B.value=!1}}}async function J(){let e=window.BarcodeDetector;if(!e||!navigator.mediaDevices?.getUserMedia){z.value=`Сканирование камерой не поддерживается. Введите ссылку вручную.`;return}try{U=await navigator.mediaDevices.getUserMedia({video:{facingMode:`environment`}}),H.value=!0,await s(),V.value&&(V.value.srcObject=U,await V.value.play());let t=new e,n=async()=>{if(!H.value||!V.value)return;let e=await t.detect(V.value);if(e[0]?.rawValue){L.value=e[0].rawValue,Y(),await K();return}W=requestAnimationFrame(n)};W=requestAnimationFrame(n)}catch{z.value=`Не удалось открыть камеру. Введите ссылку вручную.`}}function Y(){H.value=!1,cancelAnimationFrame(W),U?.getTracks().forEach(e=>e.stop()),U=void 0}return n(()=>{O.isAuthenticated||P.replace(`/login`)}),c(Y),(n,i)=>(l(),a(g,null,[r(D,{active:`games`}),o(`div`,A,[r(h(v),{title:`Проверка билета`,class:`scanner-card`},{default:u(()=>[r(h(w),{vertical:``},{default:u(()=>[H.value?(l(),a(`video`,{key:0,ref_key:`video`,ref:V,class:`scanner-video`,muted:``,playsinline:``},null,512)):e(``,!0),H.value?(l(),t(h(y),{key:2,onClick:Y},{default:u(()=>[...i[2]||=[f(`Остановить камеру`,-1)]]),_:1})):(l(),t(h(y),{key:1,onClick:J},{default:u(()=>[...i[1]||=[f(`Сканировать камерой`,-1)]]),_:1})),r(h(b),{value:L.value,"onUpdate:value":i[0]||=e=>L.value=e,placeholder:`Или вставьте ссылку на билет`,onKeyup:T(K,[`enter`])},null,8,[`value`]),r(h(y),{type:`primary`,loading:B.value,onClick:K},{default:u(()=>[...i[3]||=[f(`Проверить билет`,-1)]]),_:1},8,[`loading`]),z.value?(l(),t(h(x),{key:3,type:`error`},{default:u(()=>[f(_(z.value),1)]),_:1})):e(``,!0),R.value?(l(),a(g,{key:4},[r(h(x),{type:R.value.status===`active`?`success`:`warning`},{default:u(()=>[f(_(R.value.gameName),1),i[4]||=o(`br`,null,null,-1),f(` Статус: `+_(R.value.status===`active`?`действителен`:`уже использован`)+` `,1),R.value.usedBy?(l(),a(`span`,j,` · `+_(R.value.usedBy),1)):e(``,!0),R.value.usedAt?(l(),a(`br`,M)):e(``,!0),R.value.usedAt?(l(),a(`span`,N,`Использован: `+_(h(k)(R.value.usedAt)),1)):e(``,!0)]),_:1},8,[`type`]),R.value.status===`active`&&R.value.gameStatus!==`finish`?(l(),t(h(y),{key:0,type:`primary`,loading:B.value,onClick:q},{default:u(()=>[...i[5]||=[f(` Принять билет `,-1)]]),_:1},8,[`loading`])):e(``,!0)],64)):e(``,!0)]),_:1})]),_:1})])],64))}}),[[`__scopeId`,`data-v-42390d77`]]),F=i({__name:`TicketScannerView`,setup(e){return(e,n)=>(l(),t(P))}});export{F as default};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{E as e,K as t,M as n,N as r,O as i,T as a,Y as o,at as s,gt as c,j as l,l as u,t as d,w as f,xt as p,y as m,zt as h}from"./client-DXlIdAPE.js";import{t as g}from"./Button-CcjM7zNp.js";import{t as _}from"./QrCode-DVQJ7F46.js";import{t as v}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as y}from"./datetime-BJNH0M1T.js";import{t as b}from"./MessagePaper-DHCNoTLm.js";var x={class:`ticket-page center-block-custom`},S={class:`width700`},C={class:`ticket-card`},w={key:0,class:`error`,role:`alert`},T={class:`qr-block`},E={class:`used`,role:`status`},D={key:1,class:`used`,role:`status`},O=v(r({__name:`TicketPage`,setup(r){let v=u(),O=d(),k=f(()=>String(v.params.token||``)),A=c(),j=c(!1),M=c(``),N=f(()=>window.location.href);async function P(){j.value=!0,M.value=``;try{let e=await O.GetTicket({token:k.value});if(!e.ticket){M.value=`Билет не найден`;return}A.value=e.ticket}catch{M.value=`Не удалось загрузить билет. Попробуйте ещё раз.`}finally{j.value=!1}}return t(P),(t,r)=>(o(),i(`div`,x,[a(`div`,S,[n(b,null,{default:s(()=>[a(`div`,C,[r[7]||=a(`p`,{class:`ticket-kicker`},`ВЕЧЕРНИЙ ДЕТЕКТИВ · ПРОПУСК`,-1),r[8]||=a(`h1`,null,`Билет на игру`,-1),M.value?(o(),i(`p`,w,h(M.value),1)):A.value?(o(),i(m,{key:1},[a(`h2`,null,h(A.value.gameName),1),r[5]||=a(`hr`,null,null,-1),a(`dl`,null,[a(`div`,null,[r[0]||=a(`dt`,null,`Начало`,-1),a(`dd`,null,h(p(y)(A.value.startAt)),1)]),a(`div`,null,[r[1]||=a(`dt`,null,`Место`,-1),a(`dd`,null,h(A.value.location||`Онлайн`),1)])]),a(`div`,T,[n(p(_),{value:N.value,size:300,padding:0},null,8,[`value`])]),r[6]||=a(`p`,null,`Покажите этот QR-код организатору.`,-1),A.value.status===`used`?(o(),i(m,{key:0},[r[2]||=a(`hr`,null,null,-1),a(`p`,E,` Билет уже использован`+h(A.value.usedAt?` ${p(y)(A.value.usedAt)}`:``)+h(A.value.usedBy?` организатором ${A.value.usedBy}`:``)+`. `,1)],64)):A.value.gameStatus===`finish`?(o(),i(`p`,D,` Игра уже завершена. `)):(o(),i(m,{key:2},[r[3]||=a(`hr`,null,null,-1),r[4]||=a(`p`,{class:`active`,role:`status`},`Билет действителен.`,-1)],64))],64)):(o(),e(p(g),{key:2,loading:j.value,onClick:P},{default:s(()=>[l(h(j.value?`Загрузка`:`Повторить`),1)]),_:1},8,[`loading`]))])]),_:1})])]))}}),[[`__scopeId`,`data-v-f8e89dbd`]]),k=r({__name:`TicketView`,setup(t){return(t,n)=>(o(),e(O))}});export{k as default};
|
||||
import{E as e,K as t,M as n,N as r,O as i,T as a,Y as o,at as s,gt as c,j as l,l as u,t as d,w as f,xt as p,y as m,zt as h}from"./client-Dr2LhGo3.js";import{t as g}from"./Button-DrSwbbPC.js";import{t as _}from"./QrCode-C77qvj1J.js";import{t as v}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as y}from"./datetime-BJNH0M1T.js";import{t as b}from"./MessagePaper-DVRJzEGA.js";var x={class:`ticket-page center-block-custom`},S={class:`width700`},C={class:`ticket-card`},w={key:0,class:`error`,role:`alert`},T={class:`qr-block`},E={class:`used`,role:`status`},D={key:1,class:`used`,role:`status`},O=v(r({__name:`TicketPage`,setup(r){let v=u(),O=d(),k=f(()=>String(v.params.token||``)),A=c(),j=c(!1),M=c(``),N=f(()=>window.location.href);async function P(){j.value=!0,M.value=``;try{let e=await O.GetTicket({token:k.value});if(!e.ticket){M.value=`Билет не найден`;return}A.value=e.ticket}catch{M.value=`Не удалось загрузить билет. Попробуйте ещё раз.`}finally{j.value=!1}}return t(P),(t,r)=>(o(),i(`div`,x,[a(`div`,S,[n(b,null,{default:s(()=>[a(`div`,C,[r[7]||=a(`p`,{class:`ticket-kicker`},`ВЕЧЕРНИЙ ДЕТЕКТИВ · ПРОПУСК`,-1),r[8]||=a(`h1`,null,`Билет на игру`,-1),M.value?(o(),i(`p`,w,h(M.value),1)):A.value?(o(),i(m,{key:1},[a(`h2`,null,h(A.value.gameName),1),r[5]||=a(`hr`,null,null,-1),a(`dl`,null,[a(`div`,null,[r[0]||=a(`dt`,null,`Начало`,-1),a(`dd`,null,h(p(y)(A.value.startAt)),1)]),a(`div`,null,[r[1]||=a(`dt`,null,`Место`,-1),a(`dd`,null,h(A.value.location||`Онлайн`),1)])]),a(`div`,T,[n(p(_),{value:N.value,size:300,padding:0},null,8,[`value`])]),r[6]||=a(`p`,null,`Покажите этот QR-код организатору.`,-1),A.value.status===`used`?(o(),i(m,{key:0},[r[2]||=a(`hr`,null,null,-1),a(`p`,E,` Билет уже использован`+h(A.value.usedAt?` ${p(y)(A.value.usedAt)}`:``)+h(A.value.usedBy?` организатором ${A.value.usedBy}`:``)+`. `,1)],64)):A.value.gameStatus===`finish`?(o(),i(`p`,D,` Игра уже завершена. `)):(o(),i(m,{key:2},[r[3]||=a(`hr`,null,null,-1),r[4]||=a(`p`,{class:`active`,role:`status`},`Билет действителен.`,-1)],64))],64)):(o(),e(p(g),{key:2,loading:j.value,onClick:P},{default:s(()=>[l(h(j.value?`Загрузка`:`Повторить`),1)]),_:1},8,[`loading`]))])]),_:1})])]))}}),[[`__scopeId`,`data-v-f8e89dbd`]]),k=r({__name:`TicketView`,setup(t){return(t,n)=>(o(),e(O))}});export{k as default};
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
import{M as e,N as t,O as n,Y as r,y as i}from"./client-Dr2LhGo3.js";import{t as a}from"./DocsPage-CjVzUuC6.js";import{t as o}from"./HeaderMenu-BMv76IOe.js";var s=t({__name:`UserAgreementView`,setup(t){return(t,s)=>(r(),n(i,null,[e(a,{kind:`terms`}),e(o)],64))}});export{s as default};
|
||||
@@ -1 +0,0 @@
|
||||
import{M as e,N as t,O as n,Y as r,y as i}from"./client-DXlIdAPE.js";import{t as a}from"./DocsPage-qybdKKJV.js";import{t as o}from"./HeaderMenu-CCe3SZd2.js";var s=t({__name:`UserAgreementView`,setup(t){return(t,s)=>(r(),n(i,null,[e(a,{kind:`terms`}),e(o)],64))}});export{s as default};
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import{r as e}from"./client-DXlIdAPE.js";function t(e){let t=e?.file_type;if(t===`pdf`||t===`image`||t===`audio`)return t;let n=(e?.image||``).toLowerCase();return/\.pdf($|\?)/.test(n)?`pdf`:/\.(mp3|wav|ogg|m4a|aac|flac|opus)($|\?)/.test(n)?`audio`:/\.(png|jpe?g|gif|webp|bmp|svg)($|\?)/.test(n)?`image`:``}function n(t){if(!t)return``;let n=t.toLowerCase();return n.startsWith(`http://`)||n.startsWith(`https://`)?t:t.startsWith(`/`)?e()+t:`${e()}/api/files/${t}`}function r(e){return e?e.split(`/`).pop()||e:``}export{t as n,n as r,r as t};
|
||||
import{r as e}from"./client-Dr2LhGo3.js";function t(e){let t=e?.file_type;if(t===`pdf`||t===`image`||t===`audio`)return t;let n=(e?.image||``).toLowerCase();return/\.pdf($|\?)/.test(n)?`pdf`:/\.(mp3|wav|ogg|m4a|aac|flac|opus)($|\?)/.test(n)?`audio`:/\.(png|jpe?g|gif|webp|bmp|svg)($|\?)/.test(n)?`image`:``}function n(t){if(!t)return``;let n=t.toLowerCase();return n.startsWith(`http://`)||n.startsWith(`https://`)?t:t.startsWith(`/`)?e()+t:`${e()}/api/files/${t}`}function r(e){return e?e.split(`/`).pop()||e:``}export{t as n,n as r,r as t};
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import{r as e}from"./client-DXlIdAPE.js";import{t}from"./index-Cvq506nd.js";function n(){let e=t();return r(e.refreshTokenAction,e.getToken)}function r(t,n){async function r(r,i){let a={},o=n();o&&(a.Authorization=`Bearer ${o}`);let s=await fetch(`${e()}/${r}`,{...i,headers:{...a,...i.headers}});if(s.status==401){await t();let o=n();o&&(a.Authorization=`Bearer ${o}`),s=await fetch(`${e()}/${r}`,{...i,headers:{...a,...i.headers}})}return s}async function o(e,t){let n=await r(e,{method:`GET`});if(!n.ok)throw Error(await a(n));return{blob:await n.blob(),filename:i(n.headers.get(`Content-Disposition`))||t}}function s(e){return o(`api/scenarios/${e}/archive`,`scenario-${e}.zip`)}function c(e){return o(`api/games/${e}/teams/qr.pdf`,`game-${e}.pdf`)}async function l(e){let t=await r(`api/scenarios/archive`,{method:`POST`,headers:{"Content-Type":e.type||`application/zip`},body:e}),n=await t.json().catch(()=>null);if(!t.ok)throw Error(n?.message||`Ошибка сервера (${t.status})`);return{ID:typeof n?.ID==`number`?n.ID:null}}return{downloadScenarioArchive:s,downloadTeamQR:c,uploadScenarioArchive:l}}function i(e){if(!e)return``;let t=e.match(/filename\*=UTF-8''([^;]+)/i);if(t)try{return decodeURIComponent(t[1].trim()).replace(/[\\/:*?"<>|]/g,`_`)}catch{}let n=e.match(/filename="?([^";]+)"?/i);return(n?n[1]:``).replace(/[\\/:*?"<>|]/g,`_`)}async function a(e){let t=await e.json().catch(()=>null);return t&&typeof t.message==`string`&&t.message!==``?t.message:`Ошибка сервера (${e.status})`}export{n as t};
|
||||
import{r as e}from"./client-Dr2LhGo3.js";import{t}from"./index-CML5W5F9.js";function n(){let e=t();return r(e.refreshTokenAction,e.getToken)}function r(t,n){async function r(r,i){let a={},o=n();o&&(a.Authorization=`Bearer ${o}`);let s=await fetch(`${e()}/${r}`,{...i,headers:{...a,...i.headers}});if(s.status==401){await t();let o=n();o&&(a.Authorization=`Bearer ${o}`),s=await fetch(`${e()}/${r}`,{...i,headers:{...a,...i.headers}})}return s}async function o(e,t){let n=await r(e,{method:`GET`});if(!n.ok)throw Error(await a(n));return{blob:await n.blob(),filename:i(n.headers.get(`Content-Disposition`))||t}}function s(e){return o(`api/scenarios/${e}/archive`,`scenario-${e}.zip`)}function c(e){return o(`api/games/${e}/teams/qr.pdf`,`game-${e}.pdf`)}async function l(e){let t=await r(`api/scenarios/archive`,{method:`POST`,headers:{"Content-Type":e.type||`application/zip`},body:e}),n=await t.json().catch(()=>null);if(!t.ok)throw Error(n?.message||`Ошибка сервера (${t.status})`);return{ID:typeof n?.ID==`number`?n.ID:null}}return{downloadScenarioArchive:s,downloadTeamQR:c,uploadScenarioArchive:l}}function i(e){if(!e)return``;let t=e.match(/filename\*=UTF-8''([^;]+)/i);if(t)try{return decodeURIComponent(t[1].trim()).replace(/[\\/:*?"<>|]/g,`_`)}catch{}let n=e.match(/filename="?([^";]+)"?/i);return(n?n[1]:``).replace(/[\\/:*?"<>|]/g,`_`)}async function a(e){let t=await e.json().catch(()=>null);return t&&typeof t.message==`string`&&t.message!==``?t.message:`Ошибка сервера (${e.status})`}export{n as t};
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
|
||||
import{I as e,N as t,Q as n,R as r,U as i,X as a,f as o,h as s,i as c,n as l,w as u}from"./client-DXlIdAPE.js";import{p as d,t as f}from"./index-Cvq506nd.js";function p(){let e=r(d,null);return e===null&&o(`use-message`,"No outer <n-message-provider /> founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}function m(){let e=f();return h(e.refreshTokenAction,e.getToken)}function h(e,t){return c(g(e,l(t)))}function g(e,t){return async n=>{let r;try{r=await t(n)}catch{await e(),r=await t(n)}if(r&&typeof r==`object`&&`code`in r&&r.code!==0)throw Error(`message`in r&&typeof r.message==`string`?r.message:`Ошибка запроса`);return r}}function _(e){let t=0;for(let n=0;n<e.length;++n)e[n]===`&`&&++t;return t}var v=/\s*,(?![^(]*\))\s*/g,y=/\s+/g;function b(e,t){let n=[];return t.split(v).forEach(t=>{let r=_(t);if(!r){e.forEach(e=>{n.push((e&&e+` `)+t)});return}else if(r===1){e.forEach(e=>{n.push(t.replace(`&`,e))});return}let i=[t];for(;r--;){let t=[];i.forEach(n=>{e.forEach(e=>{t.push(n.replace(`&`,e))})}),i=t}i.forEach(e=>n.push(e))}),n}function x(e,t){let n=[];return t.split(v).forEach(t=>{e.forEach(e=>{n.push((e&&e+` `)+t)})}),n}function S(e){let t=[``];return e.forEach(e=>{e&&=e.trim(),e&&(t=e.includes(`&`)?b(t,e):x(t,e))}),t.join(`, `).replace(y,` `)}var C=/[A-Z]/g;function w(e){return e.replace(C,e=>`-`+e.toLowerCase())}function T(e,t=` `){return typeof e==`object`&&e?` {
|
||||
import{I as e,N as t,Q as n,R as r,U as i,X as a,f as o,h as s,i as c,n as l,w as u}from"./client-Dr2LhGo3.js";import{p as d,t as f}from"./index-CML5W5F9.js";function p(){let e=r(d,null);return e===null&&o(`use-message`,"No outer <n-message-provider /> founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}function m(){let e=f();return h(e.refreshTokenAction,e.getToken)}function h(e,t){return c(g(e,l(t)))}function g(e,t){return async n=>{let r;try{r=await t(n)}catch{await e(),r=await t(n)}if(r&&typeof r==`object`&&`code`in r&&r.code!==0)throw Error(`message`in r&&typeof r.message==`string`?r.message:`Ошибка запроса`);return r}}function _(e){let t=0;for(let n=0;n<e.length;++n)e[n]===`&`&&++t;return t}var v=/\s*,(?![^(]*\))\s*/g,y=/\s+/g;function b(e,t){let n=[];return t.split(v).forEach(t=>{let r=_(t);if(!r){e.forEach(e=>{n.push((e&&e+` `)+t)});return}else if(r===1){e.forEach(e=>{n.push(t.replace(`&`,e))});return}let i=[t];for(;r--;){let t=[];i.forEach(n=>{e.forEach(e=>{t.push(n.replace(`&`,e))})}),i=t}i.forEach(e=>n.push(e))}),n}function x(e,t){let n=[];return t.split(v).forEach(t=>{e.forEach(e=>{n.push((e&&e+` `)+t)})}),n}function S(e){let t=[``];return e.forEach(e=>{e&&=e.trim(),e&&(t=e.includes(`&`)?b(t,e):x(t,e))}),t.join(`, `).replace(y,` `)}var C=/[A-Z]/g;function w(e){return e.replace(C,e=>`-`+e.toLowerCase())}function T(e,t=` `){return typeof e==`object`&&e?` {
|
||||
`+Object.entries(e).map(e=>t+` ${w(e[0])}: ${e[1]};`).join(`
|
||||
`)+`
|
||||
`+t+`}`:`: ${e};`}function E(e,t,n){return typeof e==`function`?e({context:t.context,props:n}):e}function D(e,t,n,r){if(!t)return``;let i=E(t,n,r);if(!i)return``;if(typeof i==`string`)return`${e} {\n${i}\n}`;let a=Object.keys(i);if(a.length===0)return n.config.keepEmptyBlock?e+` {
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{I as e,N as t,P as n,b as r,gt as i,ht as a,j as o,m as s,p as c,rt as l,v as u,w as d,y as f,yt as p}from"./client-DXlIdAPE.js";import{V as m,a as h}from"./light-BIsOPw8z.js";import{d as g,u as _}from"./Card-B9DBICFl.js";import{t as v}from"./flatten-bHHhXrku.js";function y(e){let t=i(!!e.value);if(t.value)return a(t);let n=l(e,e=>{e&&(t.value=!0,n())});return a(t)}function b(){return n()!==null}var x=typeof window<`u`,S=s(`n-drawer-body`);s(`n-drawer`);var C=s(`n-modal-body`),w=s(`n-modal-provider`),T=s(`n-modal`),E=s(`n-popover-body`);function D(e,t,n=`default`){let r=t[n];if(r===void 0)throw Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}function O(e,t=!0,n=[]){return e.forEach(e=>{if(e!==null){if(typeof e!=`object`){(typeof e==`string`||typeof e==`number`)&&n.push(o(String(e)));return}if(Array.isArray(e)){O(e,t,n);return}if(e.type===f){if(e.children===null)return;Array.isArray(e.children)&&O(e.children,t,n)}else e.type!==u&&n.push(e)}}),n}function k(e,t,n=`default`){let r=t[n];if(r===void 0)throw Error(`[vueuc/${e}]: slot[${n}] is empty.`);let i=O(r());if(i.length===1)return i[0];throw Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}var A=`@@coContext`,j={mounted(e,{value:t,modifiers:n}){e[A]={handler:void 0},typeof t==`function`&&(e[A].handler=t,g(`clickoutside`,e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){let r=e[A];typeof t==`function`?r.handler?r.handler!==t&&(_(`clickoutside`,e,r.handler,{capture:n.capture}),r.handler=t,g(`clickoutside`,e,t,{capture:n.capture})):(e[A].handler=t,g(`clickoutside`,e,t,{capture:n.capture})):r.handler&&=(_(`clickoutside`,e,r.handler,{capture:n.capture}),void 0)},unmounted(e,{modifiers:t}){let{handler:n}=e[A];n&&_(`clickoutside`,e,n,{capture:t.capture}),e[A].handler=void 0}};function M(e,t){console.error(`[vdirs/${e}]: ${t}`)}var N=new class{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(e,t){let{elementZIndex:n}=this;if(t!==void 0){e.style.zIndex=`${t}`,n.delete(e);return}let{nextZIndex:r}=this;n.has(e)&&n.get(e)+1===this.nextZIndex||(e.style.zIndex=`${r}`,n.set(e,r),this.nextZIndex=r+1,this.squashState())}unregister(e,t){let{elementZIndex:n}=this;n.has(e)?n.delete(e):t===void 0&&M(`z-index-manager/unregister-element`,`Element not found when unregistering.`),this.squashState()}squashState(){let{elementCount:e}=this;e||(this.nextZIndex=2e3),this.nextZIndex-e>2500&&this.rearrange()}rearrange(){let e=Array.from(this.elementZIndex.entries());e.sort((e,t)=>e[1]-t[1]),this.nextZIndex=2e3,e.forEach(e=>{let t=e[0],n=this.nextZIndex++;`${n}`!==t.style.zIndex&&(t.style.zIndex=`${n}`)})}},P=`@@ziContext`,F={mounted(e,t){let{value:n={}}=t,{zIndex:r,enabled:i}=n;e[P]={enabled:!!i,initialized:!1},i&&(N.ensureZIndex(e,r),e[P].initialized=!0)},updated(e,t){let{value:n={}}=t,{zIndex:r,enabled:i}=n,a=e[P].enabled;i&&!a&&(N.ensureZIndex(e,r),e[P].initialized=!0),e[P].enabled=!!i},unmounted(e,t){if(!e[P].initialized)return;let{value:n={}}=t,{zIndex:r}=n;N.unregister(e,r)}},I=t({name:`LazyTeleport`,props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:y(p(e,`show`)),mergedTo:d(()=>{let{to:t}=e;return t??`body`})}},render(){return this.showTeleport?this.disabled?D(`lazy-teleport`,this.$slots):e(r,{disabled:this.disabled,to:this.mergedTo},D(`lazy-teleport`,this.$slots)):null}});function L(e,t=`default`,n=void 0){let r=e[t];if(!r)return c(`getFirstSlotVNode`,`slot[${t}] is empty`),null;let i=v(r(n));return i.length===1?i[0]:(c(`getFirstSlotVNode`,`slot[${t}] should have exactly one child`),null)}function R(e,t,n){if(!t)return null;let r=v(t(n));return r.length===1?r[0]:(c(`getFirstSlotVNode`,`slot[${e}] should have exactly one child`),null)}var{cubicBezierEaseIn:z,cubicBezierEaseOut:B}=h;function V({transformOrigin:e=`inherit`,duration:t=`.2s`,enterScale:n=`.9`,originalTransform:r=``,originalTransition:i=``}={}){return[m(`&.fade-in-scale-up-transition-leave-active`,{transformOrigin:e,transition:`opacity ${t} ${z}, transform ${t} ${z} ${i&&`,${i}`}`}),m(`&.fade-in-scale-up-transition-enter-active`,{transformOrigin:e,transition:`opacity ${t} ${B}, transform ${t} ${B} ${i&&`,${i}`}`}),m(`&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to`,{opacity:0,transform:`${r} scale(${n})`}),m(`&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to`,{opacity:1,transform:`${r} scale(1)`})]}export{F as a,D as c,T as d,w as f,x as h,I as i,E as l,b as m,L as n,j as o,S as p,R as r,k as s,V as t,C as u};
|
||||
import{I as e,N as t,P as n,b as r,gt as i,ht as a,j as o,m as s,p as c,rt as l,v as u,w as d,y as f,yt as p}from"./client-Dr2LhGo3.js";import{V as m,a as h}from"./light-DXa4IKh6.js";import{d as g,u as _}from"./Card-C2NfeMd7.js";import{t as v}from"./flatten-CUj06cJH.js";function y(e){let t=i(!!e.value);if(t.value)return a(t);let n=l(e,e=>{e&&(t.value=!0,n())});return a(t)}function b(){return n()!==null}var x=typeof window<`u`,S=s(`n-drawer-body`);s(`n-drawer`);var C=s(`n-modal-body`),w=s(`n-modal-provider`),T=s(`n-modal`),E=s(`n-popover-body`);function D(e,t,n=`default`){let r=t[n];if(r===void 0)throw Error(`[vueuc/${e}]: slot[${n}] is empty.`);return r()}function O(e,t=!0,n=[]){return e.forEach(e=>{if(e!==null){if(typeof e!=`object`){(typeof e==`string`||typeof e==`number`)&&n.push(o(String(e)));return}if(Array.isArray(e)){O(e,t,n);return}if(e.type===f){if(e.children===null)return;Array.isArray(e.children)&&O(e.children,t,n)}else e.type!==u&&n.push(e)}}),n}function k(e,t,n=`default`){let r=t[n];if(r===void 0)throw Error(`[vueuc/${e}]: slot[${n}] is empty.`);let i=O(r());if(i.length===1)return i[0];throw Error(`[vueuc/${e}]: slot[${n}] should have exactly one child.`)}var A=`@@coContext`,j={mounted(e,{value:t,modifiers:n}){e[A]={handler:void 0},typeof t==`function`&&(e[A].handler=t,g(`clickoutside`,e,t,{capture:n.capture}))},updated(e,{value:t,modifiers:n}){let r=e[A];typeof t==`function`?r.handler?r.handler!==t&&(_(`clickoutside`,e,r.handler,{capture:n.capture}),r.handler=t,g(`clickoutside`,e,t,{capture:n.capture})):(e[A].handler=t,g(`clickoutside`,e,t,{capture:n.capture})):r.handler&&=(_(`clickoutside`,e,r.handler,{capture:n.capture}),void 0)},unmounted(e,{modifiers:t}){let{handler:n}=e[A];n&&_(`clickoutside`,e,n,{capture:t.capture}),e[A].handler=void 0}};function M(e,t){console.error(`[vdirs/${e}]: ${t}`)}var N=new class{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(e,t){let{elementZIndex:n}=this;if(t!==void 0){e.style.zIndex=`${t}`,n.delete(e);return}let{nextZIndex:r}=this;n.has(e)&&n.get(e)+1===this.nextZIndex||(e.style.zIndex=`${r}`,n.set(e,r),this.nextZIndex=r+1,this.squashState())}unregister(e,t){let{elementZIndex:n}=this;n.has(e)?n.delete(e):t===void 0&&M(`z-index-manager/unregister-element`,`Element not found when unregistering.`),this.squashState()}squashState(){let{elementCount:e}=this;e||(this.nextZIndex=2e3),this.nextZIndex-e>2500&&this.rearrange()}rearrange(){let e=Array.from(this.elementZIndex.entries());e.sort((e,t)=>e[1]-t[1]),this.nextZIndex=2e3,e.forEach(e=>{let t=e[0],n=this.nextZIndex++;`${n}`!==t.style.zIndex&&(t.style.zIndex=`${n}`)})}},P=`@@ziContext`,F={mounted(e,t){let{value:n={}}=t,{zIndex:r,enabled:i}=n;e[P]={enabled:!!i,initialized:!1},i&&(N.ensureZIndex(e,r),e[P].initialized=!0)},updated(e,t){let{value:n={}}=t,{zIndex:r,enabled:i}=n,a=e[P].enabled;i&&!a&&(N.ensureZIndex(e,r),e[P].initialized=!0),e[P].enabled=!!i},unmounted(e,t){if(!e[P].initialized)return;let{value:n={}}=t,{zIndex:r}=n;N.unregister(e,r)}},I=t({name:`LazyTeleport`,props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:y(p(e,`show`)),mergedTo:d(()=>{let{to:t}=e;return t??`body`})}},render(){return this.showTeleport?this.disabled?D(`lazy-teleport`,this.$slots):e(r,{disabled:this.disabled,to:this.mergedTo},D(`lazy-teleport`,this.$slots)):null}});function L(e,t=`default`,n=void 0){let r=e[t];if(!r)return c(`getFirstSlotVNode`,`slot[${t}] is empty`),null;let i=v(r(n));return i.length===1?i[0]:(c(`getFirstSlotVNode`,`slot[${t}] should have exactly one child`),null)}function R(e,t,n){if(!t)return null;let r=v(t(n));return r.length===1?r[0]:(c(`getFirstSlotVNode`,`slot[${e}] should have exactly one child`),null)}var{cubicBezierEaseIn:z,cubicBezierEaseOut:B}=h;function V({transformOrigin:e=`inherit`,duration:t=`.2s`,enterScale:n=`.9`,originalTransform:r=``,originalTransition:i=``}={}){return[m(`&.fade-in-scale-up-transition-leave-active`,{transformOrigin:e,transition:`opacity ${t} ${z}, transform ${t} ${z} ${i&&`,${i}`}`}),m(`&.fade-in-scale-up-transition-enter-active`,{transformOrigin:e,transition:`opacity ${t} ${B}, transform ${t} ${B} ${i&&`,${i}`}`}),m(`&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to`,{opacity:0,transform:`${r} scale(${n})`}),m(`&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to`,{opacity:1,transform:`${r} scale(1)`})]}export{F as a,D as c,T as d,w as f,x as h,I as i,E as l,b as m,L as n,j as o,S as p,R as r,k as s,V as t,C as u};
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import{V as e,a as t}from"./light-BIsOPw8z.js";var{cubicBezierEaseInOut:n}=t;function r({name:t=`fade-in`,enterDuration:r=`0.2s`,leaveDuration:i=`0.2s`,enterCubicBezier:a=n,leaveCubicBezier:o=n}={}){return[e(`&.${t}-transition-enter-active`,{transition:`all ${r} ${a}!important`}),e(`&.${t}-transition-leave-active`,{transition:`all ${i} ${o}!important`}),e(`&.${t}-transition-enter-from, &.${t}-transition-leave-to`,{opacity:0}),e(`&.${t}-transition-leave-from, &.${t}-transition-enter-to`,{opacity:1})]}export{r as t};
|
||||
import{V as e,a as t}from"./light-DXa4IKh6.js";var{cubicBezierEaseInOut:n}=t;function r({name:t=`fade-in`,enterDuration:r=`0.2s`,leaveDuration:i=`0.2s`,enterCubicBezier:a=n,leaveCubicBezier:o=n}={}){return[e(`&.${t}-transition-enter-active`,{transition:`all ${r} ${a}!important`}),e(`&.${t}-transition-leave-active`,{transition:`all ${i} ${o}!important`}),e(`&.${t}-transition-enter-from, &.${t}-transition-leave-to`,{opacity:0}),e(`&.${t}-transition-leave-from, &.${t}-transition-enter-to`,{opacity:1})]}export{r as t};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{j as e,v as t,y as n}from"./client-DXlIdAPE.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===n){if(i.children===null)return;Array.isArray(i.children)&&r(i.children,a,o)}else{if(i.type===t&&a)return;o.push(i)}}}),o}export{r as t};
|
||||
import{j as e,v as t,y as n}from"./client-Dr2LhGo3.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===n){if(i.children===null)return;Array.isArray(i.children)&&r(i.children,a,o)}else{if(i.type===t&&a)return;o.push(i)}}}),o}export{r as t};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{D as e,d as t}from"./light-BIsOPw8z.js";import{K as n,W as r}from"./index-Cvq506nd.js";var i=/^(\d|\.)+$/,a=/(\d|\.)+/;function o(e,{c:t=1,offset:n=0,attachPx:r=!0}={}){if(typeof e==`number`){let r=(e+n)*t;return r===0?`0`:`${r}px`}else if(typeof e==`string`)if(i.test(e)){let i=(Number(e)+n)*t;return r?i===0?`0`:`${i}px`:`${i}`}else{let r=a.exec(e);return r?e.replace(a,String((Number(r[0])+n)*t)):e}return e}var s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/;function l(t,r){if(e(t))return!1;var i=typeof t;return i==`number`||i==`symbol`||i==`boolean`||t==null||n(t)?!0:c.test(t)||!s.test(t)||r!=null&&t in Object(r)}var u=`Expected a function`;function d(e,n){if(typeof e!=`function`||n!=null&&typeof n!=`function`)throw TypeError(u);var r=function(){var t=arguments,i=n?n.apply(this,t):t[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,t);return r.cache=a.set(i,o)||a,o};return r.cache=new(d.Cache||t),r}d.Cache=t;var f=500;function p(e){var t=d(e,function(e){return n.size===f&&n.clear(),e}),n=t.cache;return t}var m=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,h=/\\(\\)?/g,g=p(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(m,function(e,n,r,i){t.push(r?i.replace(h,`$1`):n||e)}),t});function _(t,n){return e(t)?t:l(t,n)?[t]:g(r(t))}var v=1/0;function y(e){if(typeof e==`string`||n(e))return e;var t=e+``;return t==`0`&&1/e==-v?`-0`:t}function b(e,t){t=_(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[y(t[n++])];return n&&n==r?e:void 0}function x(e,t,n){var r=e==null?void 0:b(e,t);return r===void 0?n:r}export{l as a,_ as i,b as n,o,y as r,x as t};
|
||||
import{D as e,d as t}from"./light-DXa4IKh6.js";import{K as n,W as r}from"./index-CML5W5F9.js";var i=/^(\d|\.)+$/,a=/(\d|\.)+/;function o(e,{c:t=1,offset:n=0,attachPx:r=!0}={}){if(typeof e==`number`){let r=(e+n)*t;return r===0?`0`:`${r}px`}else if(typeof e==`string`)if(i.test(e)){let i=(Number(e)+n)*t;return r?i===0?`0`:`${i}px`:`${i}`}else{let r=a.exec(e);return r?e.replace(a,String((Number(r[0])+n)*t)):e}return e}var s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/;function l(t,r){if(e(t))return!1;var i=typeof t;return i==`number`||i==`symbol`||i==`boolean`||t==null||n(t)?!0:c.test(t)||!s.test(t)||r!=null&&t in Object(r)}var u=`Expected a function`;function d(e,n){if(typeof e!=`function`||n!=null&&typeof n!=`function`)throw TypeError(u);var r=function(){var t=arguments,i=n?n.apply(this,t):t[0],a=r.cache;if(a.has(i))return a.get(i);var o=e.apply(this,t);return r.cache=a.set(i,o)||a,o};return r.cache=new(d.Cache||t),r}d.Cache=t;var f=500;function p(e){var t=d(e,function(e){return n.size===f&&n.clear(),e}),n=t.cache;return t}var m=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,h=/\\(\\)?/g,g=p(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(m,function(e,n,r,i){t.push(r?i.replace(h,`$1`):n||e)}),t});function _(t,n){return e(t)?t:l(t,n)?[t]:g(r(t))}var v=1/0;function y(e){if(typeof e==`string`||n(e))return e;var t=e+``;return t==`0`&&1/e==-v?`-0`:t}function b(e,t){t=_(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[y(t[n++])];return n&&n==r?e:void 0}function x(e,t,n){var r=e==null?void 0:b(e,t);return r===void 0?n:r}export{l as a,_ as i,b as n,o,y as r,x as t};
|
||||
+3
-3
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
||||
import{I as e,K as t,N as n,W as r,gt as i,rt as a,y as o}from"./client-DXlIdAPE.js";import{d as s,f as c,u as l}from"./Card-B9DBICFl.js";import{Z as u}from"./index-Cvq506nd.js";function d(e){return typeof e==`string`?document.querySelector(e):e()||null}function f(e){return e instanceof HTMLElement}function p(e){for(let t=0;t<e.childNodes.length;t++){let n=e.childNodes[t];if(f(n)&&(h(n)||p(n)))return!0}return!1}function m(e){for(let t=e.childNodes.length-1;t>=0;t--){let n=e.childNodes[t];if(f(n)&&(h(n)||m(n)))return!0}return!1}function h(e){if(!g(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function g(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute(`tabIndex`)!==null)return!0;if(e.getAttribute(`disabled`))return!1;switch(e.nodeName){case`A`:return!!e.href&&e.rel!==`ignore`;case`INPUT`:return e.type!==`hidden`&&e.type!==`file`;case`SELECT`:case`TEXTAREA`:return!0;default:return!1}}var _=[],v=n({name:`FocusTrap`,props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:[String,Function],finalFocusTo:[String,Function],returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){let n=u(),o=i(null),f=i(null),h=!1,g=!1,v=typeof document>`u`?null:document.activeElement;function y(){return _[_.length-1]===n}function b(t){var n;t.code===`Escape`&&y()&&((n=e.onEsc)==null||n.call(e,t))}t(()=>{a(()=>e.active,e=>{e?(C(),s(`keydown`,document,b)):(l(`keydown`,document,b),h&&w())},{immediate:!0})}),r(()=>{l(`keydown`,document,b),h&&w()});function x(e){if(!g&&y()){let t=S();if(t===null||t.contains(c(e)))return;T(`first`)}}function S(){let e=o.value;if(e===null)return null;let t=e;for(;t=t.nextSibling,!(t===null||t instanceof Element&&t.tagName===`DIV`););return t}function C(){var t;if(!e.disabled){if(_.push(n),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!==n),y()))return;let{finalFocusTo:r}=e;r===void 0?e.returnFocusOnDeactivated&&v instanceof HTMLElement&&(g=!0,v.focus({preventScroll:!0}),g=!1):(t=d(r))==null||t.focus({preventScroll:!0})}function T(t){if(y()&&e.active){let e=o.value,n=f.value;if(e!==null&&n!==null){let r=S();if(r==null||r===n){g=!0,e.focus({preventScroll:!0}),g=!1;return}g=!0;let i=t===`first`?p(r):m(r);g=!1,i||(g=!0,e.focus({preventScroll:!0}),g=!1)}}}function E(e){if(g)return;let t=S();t!==null&&(e.relatedTarget!==null&&t.contains(e.relatedTarget)?T(`last`):T(`first`))}function D(e){g||(e.relatedTarget!==null&&e.relatedTarget===o.value?T(`last`):T(`first`))}return{focusableStartRef:o,focusableEndRef:f,focusableStyle:`position: absolute; height: 0; width: 0;`,handleStartFocus:E,handleEndFocus:D}},render(){let{default:t}=this.$slots;if(t===void 0)return null;if(this.disabled)return t();let{active:n,focusableStyle:r}=this;return e(o,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};
|
||||
import{I as e,K as t,N as n,W as r,gt as i,rt as a,y as o}from"./client-Dr2LhGo3.js";import{d as s,f as c,u as l}from"./Card-C2NfeMd7.js";import{Z as u}from"./index-CML5W5F9.js";function d(e){return typeof e==`string`?document.querySelector(e):e()||null}function f(e){return e instanceof HTMLElement}function p(e){for(let t=0;t<e.childNodes.length;t++){let n=e.childNodes[t];if(f(n)&&(h(n)||p(n)))return!0}return!1}function m(e){for(let t=e.childNodes.length-1;t>=0;t--){let n=e.childNodes[t];if(f(n)&&(h(n)||m(n)))return!0}return!1}function h(e){if(!g(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function g(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute(`tabIndex`)!==null)return!0;if(e.getAttribute(`disabled`))return!1;switch(e.nodeName){case`A`:return!!e.href&&e.rel!==`ignore`;case`INPUT`:return e.type!==`hidden`&&e.type!==`file`;case`SELECT`:case`TEXTAREA`:return!0;default:return!1}}var _=[],v=n({name:`FocusTrap`,props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:[String,Function],finalFocusTo:[String,Function],returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){let n=u(),o=i(null),f=i(null),h=!1,g=!1,v=typeof document>`u`?null:document.activeElement;function y(){return _[_.length-1]===n}function b(t){var n;t.code===`Escape`&&y()&&((n=e.onEsc)==null||n.call(e,t))}t(()=>{a(()=>e.active,e=>{e?(C(),s(`keydown`,document,b)):(l(`keydown`,document,b),h&&w())},{immediate:!0})}),r(()=>{l(`keydown`,document,b),h&&w()});function x(e){if(!g&&y()){let t=S();if(t===null||t.contains(c(e)))return;T(`first`)}}function S(){let e=o.value;if(e===null)return null;let t=e;for(;t=t.nextSibling,!(t===null||t instanceof Element&&t.tagName===`DIV`););return t}function C(){var t;if(!e.disabled){if(_.push(n),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!==n),y()))return;let{finalFocusTo:r}=e;r===void 0?e.returnFocusOnDeactivated&&v instanceof HTMLElement&&(g=!0,v.focus({preventScroll:!0}),g=!1):(t=d(r))==null||t.focus({preventScroll:!0})}function T(t){if(y()&&e.active){let e=o.value,n=f.value;if(e!==null&&n!==null){let r=S();if(r==null||r===n){g=!0,e.focus({preventScroll:!0}),g=!1;return}g=!0;let i=t===`first`?p(r):m(r);g=!1,i||(g=!0,e.focus({preventScroll:!0}),g=!1)}}}function E(e){if(g)return;let t=S();t!==null&&(e.relatedTarget!==null&&t.contains(e.relatedTarget)?T(`last`):T(`first`))}function D(e){g||(e.relatedTarget!==null&&e.relatedTarget===o.value?T(`last`):T(`first`))}return{focusableStartRef:o,focusableEndRef:f,focusableStyle:`position: absolute; height: 0; width: 0;`,handleStartFocus:E,handleEndFocus:D}},render(){let{default:t}=this.$slots;if(t===void 0)return null;if(this.disabled)return t();let{active:n,focusableStyle:r}=this;return e(o,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};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{t as e}from"./light-BIsOPw8z.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};
|
||||
import{t as e}from"./light-DXa4IKh6.js";var t={railInsetHorizontalBottom:`auto 2px 4px 2px`,railInsetHorizontalTop:`4px 2px auto 2px`,railInsetVerticalRight:`2px 4px 2px auto`,railInsetVerticalLeft:`2px auto 2px 4px`,railColor:`transparent`};function n(e){let{scrollbarColor:n,scrollbarColorHover:r,scrollbarHeight:i,scrollbarWidth:a,scrollbarBorderRadius:o}=e;return Object.assign(Object.assign({},t),{height:i,width:a,borderRadius:o,color:n,colorHover:r})}var r={name:`Scrollbar`,common:e,self:n},i={paddingSmall:`12px 16px 12px`,paddingMedium:`19px 24px 20px`,paddingLarge:`23px 32px 24px`,paddingHuge:`27px 40px 28px`,titleFontSizeSmall:`16px`,titleFontSizeMedium:`18px`,titleFontSizeLarge:`18px`,titleFontSizeHuge:`18px`,closeIconSize:`18px`,closeSize:`22px`};function a(e){let{primaryColor:t,borderRadius:n,lineHeight:r,fontSize:a,cardColor:o,textColor2:s,textColor1:c,dividerColor:l,fontWeightStrong:u,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:p,closeColorHover:m,closeColorPressed:h,modalColor:g,boxShadow1:_,popoverColor:v,actionColor:y}=e;return Object.assign(Object.assign({},i),{lineHeight:r,color:o,colorModal:g,colorPopover:v,colorTarget:t,colorEmbedded:y,colorEmbeddedModal:y,colorEmbeddedPopover:y,textColor:s,titleTextColor:c,borderColor:l,actionColor:y,titleFontWeight:u,closeColorHover:m,closeColorPressed:h,closeBorderRadius:n,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:p,fontSizeSmall:a,fontSizeMedium:a,fontSizeLarge:a,fontSizeHuge:a,boxShadow:_,borderRadius:n})}var o={name:`Card`,common:e,self:a};export{n as i,a as n,r,o as t};
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{R as e,U as t,_t as n,f as r,gt as i,h as a,it as o,m as s,w as c}from"./client-DXlIdAPE.js";function l(e){let t=`.`,n=`__`,r=`--`,i;if(e){let i=e.blockPrefix;i&&(t=i),i=e.elementPrefix,i&&(n=i),i=e.modifierPrefix,i&&(r=i)}let a={install(e){i=e.c;let t=e.context;t.bem={},t.bem.b=null,t.bem.els=null}};function o(e){let n,r;return{before(e){n=e.bem.b,r=e.bem.els,e.bem.els=null},after(e){e.bem.b=n,e.bem.els=r},$({context:n,props:r}){return e=typeof e==`string`?e:e({context:n,props:r}),n.bem.b=e,`${r?.bPrefix||t}${n.bem.b}`}}}function s(e){let r;return{before(e){r=e.bem.els},after(e){e.bem.els=r},$({context:r,props:i}){return e=typeof e==`string`?e:e({context:r,props:i}),r.bem.els=e.split(`,`).map(e=>e.trim()),r.bem.els.map(e=>`${i?.bPrefix||t}${r.bem.b}${n}${e}`).join(`, `)}}}function c(e){return{$({context:i,props:a}){e=typeof e==`string`?e:e({context:i,props:a});let o=e.split(`,`).map(e=>e.trim());function s(e){return o.map(o=>`&${a?.bPrefix||t}${i.bem.b}${e===void 0?``:`${n}${e}`}${r}${o}`).join(`, `)}let c=i.bem.els;return c===null?s():s(c[0])}}}function l(e){return{$({context:i,props:a}){e=typeof e==`string`?e:e({context:i,props:a});let o=i.bem.els;return`&:not(${a?.bPrefix||t}${i.bem.b}${o!==null&&o.length>0?`${n}${o[0]}`:``}${r}${e})`}}}return Object.assign(a,{cB:((...e)=>i(o(e[0]),e[1],e[2])),cE:((...e)=>i(s(e[0]),e[1],e[2])),cM:((...e)=>i(c(e[0]),e[1],e[2])),cNotM:((...e)=>i(l(e[0]),e[1],e[2]))}),a}function u(e){let t=0;for(let n=0;n<e.length;++n)e[n]===`&`&&++t;return t}var d=/\s*,(?![^(]*\))\s*/g,f=/\s+/g;function p(e,t){let n=[];return t.split(d).forEach(t=>{let r=u(t);if(!r){e.forEach(e=>{n.push((e&&e+` `)+t)});return}else if(r===1){e.forEach(e=>{n.push(t.replace(`&`,e))});return}let i=[t];for(;r--;){let t=[];i.forEach(n=>{e.forEach(e=>{t.push(n.replace(`&`,e))})}),i=t}i.forEach(e=>n.push(e))}),n}function m(e,t){let n=[];return t.split(d).forEach(t=>{e.forEach(e=>{n.push((e&&e+` `)+t)})}),n}function ee(e){let t=[``];return e.forEach(e=>{e&&=e.trim(),e&&(t=e.includes(`&`)?p(t,e):m(t,e))}),t.join(`, `).replace(f,` `)}function h(e){if(!e)return;let t=e.parentElement;t&&t.removeChild(e)}function g(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function te(e){let t=document.createElement(`style`);return t.setAttribute(`cssr-id`,e),t}function _(e){return e?/^\s*@(s|m)/.test(e):!1}var ne=/[A-Z]/g;function re(e){return e.replace(ne,e=>`-`+e.toLowerCase())}function ie(e,t=` `){return typeof e==`object`&&e?` {
|
||||
import{R as e,U as t,_t as n,f as r,gt as i,h as a,it as o,m as s,w as c}from"./client-Dr2LhGo3.js";function l(e){let t=`.`,n=`__`,r=`--`,i;if(e){let i=e.blockPrefix;i&&(t=i),i=e.elementPrefix,i&&(n=i),i=e.modifierPrefix,i&&(r=i)}let a={install(e){i=e.c;let t=e.context;t.bem={},t.bem.b=null,t.bem.els=null}};function o(e){let n,r;return{before(e){n=e.bem.b,r=e.bem.els,e.bem.els=null},after(e){e.bem.b=n,e.bem.els=r},$({context:n,props:r}){return e=typeof e==`string`?e:e({context:n,props:r}),n.bem.b=e,`${r?.bPrefix||t}${n.bem.b}`}}}function s(e){let r;return{before(e){r=e.bem.els},after(e){e.bem.els=r},$({context:r,props:i}){return e=typeof e==`string`?e:e({context:r,props:i}),r.bem.els=e.split(`,`).map(e=>e.trim()),r.bem.els.map(e=>`${i?.bPrefix||t}${r.bem.b}${n}${e}`).join(`, `)}}}function c(e){return{$({context:i,props:a}){e=typeof e==`string`?e:e({context:i,props:a});let o=e.split(`,`).map(e=>e.trim());function s(e){return o.map(o=>`&${a?.bPrefix||t}${i.bem.b}${e===void 0?``:`${n}${e}`}${r}${o}`).join(`, `)}let c=i.bem.els;return c===null?s():s(c[0])}}}function l(e){return{$({context:i,props:a}){e=typeof e==`string`?e:e({context:i,props:a});let o=i.bem.els;return`&:not(${a?.bPrefix||t}${i.bem.b}${o!==null&&o.length>0?`${n}${o[0]}`:``}${r}${e})`}}}return Object.assign(a,{cB:((...e)=>i(o(e[0]),e[1],e[2])),cE:((...e)=>i(s(e[0]),e[1],e[2])),cM:((...e)=>i(c(e[0]),e[1],e[2])),cNotM:((...e)=>i(l(e[0]),e[1],e[2]))}),a}function u(e){let t=0;for(let n=0;n<e.length;++n)e[n]===`&`&&++t;return t}var d=/\s*,(?![^(]*\))\s*/g,f=/\s+/g;function p(e,t){let n=[];return t.split(d).forEach(t=>{let r=u(t);if(!r){e.forEach(e=>{n.push((e&&e+` `)+t)});return}else if(r===1){e.forEach(e=>{n.push(t.replace(`&`,e))});return}let i=[t];for(;r--;){let t=[];i.forEach(n=>{e.forEach(e=>{t.push(n.replace(`&`,e))})}),i=t}i.forEach(e=>n.push(e))}),n}function m(e,t){let n=[];return t.split(d).forEach(t=>{e.forEach(e=>{n.push((e&&e+` `)+t)})}),n}function ee(e){let t=[``];return e.forEach(e=>{e&&=e.trim(),e&&(t=e.includes(`&`)?p(t,e):m(t,e))}),t.join(`, `).replace(f,` `)}function h(e){if(!e)return;let t=e.parentElement;t&&t.removeChild(e)}function g(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function te(e){let t=document.createElement(`style`);return t.setAttribute(`cssr-id`,e),t}function _(e){return e?/^\s*@(s|m)/.test(e):!1}var ne=/[A-Z]/g;function re(e){return e.replace(ne,e=>`-`+e.toLowerCase())}function ie(e,t=` `){return typeof e==`object`&&e?` {
|
||||
`+Object.entries(e).map(e=>t+` ${re(e[0])}: ${e[1]};`).join(`
|
||||
`)+`
|
||||
`+t+`}`:`: ${e};`}function ae(e,t,n){return typeof e==`function`?e({context:t.context,props:n}):e}function oe(e,t,n,r){if(!t)return``;let i=ae(t,n,r);if(!i)return``;if(typeof i==`string`)return`${e} {\n${i}\n}`;let a=Object.keys(i);if(a.length===0)return n.config.keepEmptyBlock?e+` {
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import{v as e,y as t,z as n}from"./client-DXlIdAPE.js";function r(i){return i.some(i=>n(i)?!(i.type===e||i.type===t&&!r(i.children)):!0)?i:null}function i(e,t){return e&&r(e())||t()}function a(e,t,n){return e&&r(e(t))||n(t)}function o(e,t){return t(e&&r(e())||null)}function s(e){return!(e&&r(e()))}export{o as a,a as i,s as n,i as r,r as t};
|
||||
import{v as e,y as t,z as n}from"./client-Dr2LhGo3.js";function r(i){return i.some(i=>n(i)?!(i.type===e||i.type===t&&!r(i.children)):!0)?i:null}function i(e,t){return e&&r(e())||t()}function a(e,t,n){return e&&r(e(t))||n(t)}function o(e,t){return t(e&&r(e())||null)}function s(e){return!(e&&r(e()))}export{o as a,a as i,s as n,i as r,r as t};
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{I as e,N as t,w as n}from"./client-DXlIdAPE.js";import{G as r,H as i,M as a,N as o,q as s,r as c}from"./light-BIsOPw8z.js";import{t as l}from"./use-compitable-U-V1aiGL.js";import{i as u}from"./index-Cvq506nd.js";var d=i(`text`,`
|
||||
import{I as e,N as t,w as n}from"./client-Dr2LhGo3.js";import{G as r,H as i,M as a,N as o,q as s,r as c}from"./light-DXa4IKh6.js";import{t as l}from"./use-compitable-BG72l399.js";import{i as u}from"./index-CML5W5F9.js";var d=i(`text`,`
|
||||
transition: color .3s var(--n-bezier);
|
||||
color: var(--n-text-color);
|
||||
`,[r(`strong`,`
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import{w as e}from"./client-DXlIdAPE.js";function t(t,n){return e(()=>{for(let e of n)if(t[e]!==void 0)return t[e];return t[n[n.length-1]]})}export{t};
|
||||
import{w as e}from"./client-Dr2LhGo3.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};
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import{R as e,W as t,X as n,m as r,w as i}from"./client-DXlIdAPE.js";function a(e){return e.replace(/#|\(|\)|,|\s|\./g,`_`)}function o(e,...t){if(Array.isArray(e))e.forEach(e=>o(e,...t));else return e(...t)}var s=r(`n-form-item`);function c(r,{defaultSize:a=`medium`,mergedSize:o,mergedDisabled:c}={}){let l=e(s,null);n(s,null);let u=i(o?()=>o(l):()=>{let{size:e}=r;if(e)return e;if(l){let{mergedSize:e}=l;if(e.value!==void 0)return e.value}return a}),d=i(c?()=>c(l):()=>{let{disabled:e}=r;return e===void 0?l?l.disabled.value:!1:e}),f=i(()=>{let{status:e}=r;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{a as i,c as n,o as r,s as t};
|
||||
import{R as e,W as t,X as n,m as r,w as i}from"./client-Dr2LhGo3.js";function a(e){return e.replace(/#|\(|\)|,|\s|\./g,`_`)}function o(e,...t){if(Array.isArray(e))e.forEach(e=>o(e,...t));else return e(...t)}var s=r(`n-form-item`);function c(r,{defaultSize:a=`medium`,mergedSize:o,mergedDisabled:c}={}){let l=e(s,null);n(s,null);let u=i(o?()=>o(l):()=>{let{size:e}=r;if(e)return e;if(l){let{mergedSize:e}=l;if(e.value!==void 0)return e.value}return a}),d=i(c?()=>c(l):()=>{let{disabled:e}=r;return e===void 0?l?l.disabled.value:!1:e}),f=i(()=>{let{status:e}=r;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{a as i,c as n,o as r,s as t};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{rt as e,w as t}from"./client-DXlIdAPE.js";function n(n,r){return e(n,e=>{e!==void 0&&(r.value=e)}),t(()=>n.value===void 0?r.value:n.value)}export{n as t};
|
||||
import{rt as e,w as t}from"./client-Dr2LhGo3.js";function n(n,r){return e(n,e=>{e!==void 0&&(r.value=e)}),t(()=>n.value===void 0?r.value:n.value)}export{n as t};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{K as e,gt as t,q as n}from"./client-DXlIdAPE.js";function r(r,i=5e3){let a=t(!0),o=null,s=()=>{a.value=!0,r(),o=window.setInterval(r,i)},c=()=>{a.value=!1,o&&=(clearInterval(o),null)};return e(s),n(c),{isActive:a,start:s,stop:c}}export{r as t};
|
||||
import{K as e,gt as t,q as n}from"./client-Dr2LhGo3.js";function r(r,i=5e3){let a=t(!0),o=null,s=()=>{a.value=!0,r(),o=window.setInterval(r,i)},c=()=>{a.value=!1,o&&=(clearInterval(o),null)};return e(s),n(c),{isActive:a,start:s,stop:c}}export{r as t};
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+4
-4
@@ -5,10 +5,10 @@
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>Вечерний детектив</title>
|
||||
<script type="module" crossorigin src="/assets/index-Cvq506nd.js"></script>
|
||||
<link rel="modulepreload" crossorigin href="/assets/client-DXlIdAPE.js">
|
||||
<link rel="modulepreload" crossorigin href="/assets/light-BIsOPw8z.js">
|
||||
<link rel="modulepreload" crossorigin href="/assets/light-DaDb1s6-.js">
|
||||
<script type="module" crossorigin src="/assets/index-CML5W5F9.js"></script>
|
||||
<link rel="modulepreload" crossorigin href="/assets/client-Dr2LhGo3.js">
|
||||
<link rel="modulepreload" crossorigin href="/assets/light-DXa4IKh6.js">
|
||||
<link rel="modulepreload" crossorigin href="/assets/light-4JJV7N1X.js">
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-CF62QB4P.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
-- +goose Up
|
||||
CREATE TABLE IF NOT EXISTS game_screen_plans (
|
||||
game_id INTEGER PRIMARY KEY REFERENCES games(id) ON DELETE CASCADE,
|
||||
steps JSONB NOT NULL DEFAULT '[]'::jsonb,
|
||||
current_step INTEGER NOT NULL DEFAULT 0,
|
||||
updated_at TIMESTAMP NOT NULL DEFAULT NOW()
|
||||
);
|
||||
|
||||
-- +goose Down
|
||||
DROP TABLE IF EXISTS game_screen_plans;
|
||||
@@ -0,0 +1,6 @@
|
||||
-- +goose Up
|
||||
ALTER TABLE screen_sessions
|
||||
ADD COLUMN IF NOT EXISTS text TEXT NOT NULL DEFAULT '';
|
||||
|
||||
-- +goose Down
|
||||
ALTER TABLE screen_sessions DROP COLUMN IF EXISTS text;
|
||||
Reference in New Issue
Block a user