up
This commit is contained in:
Binary file not shown.
+1
-1
@@ -1 +1 @@
|
||||
import{I as e,N as t}from"./client-CT8bsOZT.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-BPUTdqiR.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{I as e,N as t,V as n,w as r,yt as i}from"./client-CT8bsOZT.js";import{G as a,H as o,I as s,L as c,M as l,N as u,V as d,W as f,o as p,q as m,r as h,t as g}from"./light-DhgSQSdG.js";import{r as _}from"./css-DEmdllcC.js";import{a as v,r as y}from"./resolve-slot-BEScaVot.js";import{B as b,E as x,F as S,L as C,P as w,R as T,T as E,U as D,z as O}from"./index-Dw2jAfxR.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{I as e,N as t,V as n,w as r,yt as i}from"./client-BPUTdqiR.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-CAboqKml.js";import{r as _}from"./css-DEmdllcC.js";import{a as v,r as y}from"./resolve-slot-CvI9c3sm.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-GBc-6ZcB.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{G as e,H as t,I as n,N as r,R as i,St as a,m as o,w as s,yt as c}from"./client-CT8bsOZT.js";import{G as l,H as u,I as d,K as f,L as p,M as m,N as h,V as g,W as _,a as v,i as y,o as b,q as x,r as S}from"./light-DhgSQSdG.js";import{i as C,n as w,r as T}from"./use-form-item-CBXe24ar.js";import{a as E,n as D}from"./resolve-slot-BEScaVot.js";import{H as O,I as k,M as A,P as j,S as M,X as N}from"./index-Dw2jAfxR.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{G as e,H as t,I as n,N as r,R as i,St as a,m as o,w as s,yt as c}from"./client-BPUTdqiR.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-CAboqKml.js";import{i as C,n as w,r as T}from"./use-form-item-CmxopeL6.js";import{a as E,n as D}from"./resolve-slot-CvI9c3sm.js";import{H as O,I as k,M as A,P as j,S as M,X as N}from"./index-GBc-6ZcB.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,Ht as n,M as r,N as i,O as a,Q as o,T as s,Vt as c,X as l,ct as u,j as d,u as f,wt as p,y as m,yt as h}from"./client-CT8bsOZT.js";import{t as g}from"./Tag-CVi_Im9M.js";import{n as _}from"./es-Bk-Et3Ln.js";import{t as v}from"./Rate-DwHwnWeb.js";import{t as y}from"./HeaderMenu-7Pj73tF6.js";import{t as b}from"./_plugin-vue_export-helper-BDNMzG2s.js";var x={class:`center-block-custom`},S={class:`width1200 display-table catalog-grid`},C=[`onClick`],w={class:`scenario-content-block`},T={class:`scenario-title`},E={class:`scenario-description`},D={class:`scenario-rating`},O={key:1},k={key:2},A={key:0,class:`scenario-difficulty`},j={class:`scenario-label`},M=b(i({__name:`CatalogPage`,setup(i){let b=_(),M=h([]),N=f();async function P(){M.value=[];let e=await b.GetScenariosCatalog({});M.value=e.scenarios}async function F(e){N.push(`/scenarios/`+e)}return P(),(i,f)=>(l(),a(m,null,[s(`div`,x,[s(`div`,S,[(l(!0),a(m,null,o(M.value,i=>(l(),a(`div`,{class:`scenario-block`,onClick:e=>F(i.ID),key:i.ID},[s(`div`,{class:`scenario-image-block scenario-image`,style:c({backgroundImage:`url(${i.image})`})},null,4),s(`div`,w,[s(`p`,T,n(i.name),1),s(`p`,E,n(i.description),1),s(`div`,D,[i.reviewsCount?(l(),t(p(v),{key:0,value:i.averageRating,readonly:``,"allow-half":``,size:`small`},null,8,[`value`])):e(``,!0),i.reviewsCount?(l(),a(`span`,O,n(i.averageRating?.toFixed(1))+` · `+n(i.reviewsCount),1)):(l(),a(`span`,k,`Пока нет оценок`))]),i.difficulty?(l(),a(`div`,A,`Сложность: `+n(i.difficulty),1)):e(``,!0),s(`p`,j,[r(p(g),{bordered:!1,type:`success`,class:`status-block`},{default:u(()=>[d(`Автор: `+n(i.author?.username),1)]),_:2},1024)])])],8,C))),128))])]),r(y,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-935ff4be`]]),N=i({__name:`CatalogView`,setup(e){return(e,n)=>(l(),t(M))}});export{N as default};
|
||||
import{D as e,E as t,Ht as n,M as r,N as i,O as a,Q as o,T as s,Vt as c,X as l,ct as u,j as d,u as f,wt as p,y as m,yt as h}from"./client-BPUTdqiR.js";import{t as g}from"./Tag-Dn6pvkCE.js";import{n as _}from"./es-pwhLS9ns.js";import{t as v}from"./Rate-CAXKLxI3.js";import{t as y}from"./HeaderMenu-C2nsemcr.js";import{t as b}from"./_plugin-vue_export-helper-BDNMzG2s.js";var x={class:`center-block-custom`},S={class:`width1200 display-table catalog-grid`},C=[`onClick`],w={class:`scenario-content-block`},T={class:`scenario-title`},E={class:`scenario-description`},D={class:`scenario-rating`},O={key:1},k={key:2},A={key:0,class:`scenario-difficulty`},j={class:`scenario-label`},M=b(i({__name:`CatalogPage`,setup(i){let b=_(),M=h([]),N=f();async function P(){M.value=[];let e=await b.GetScenariosCatalog({});M.value=e.scenarios}async function F(e){N.push(`/scenarios/`+e)}return P(),(i,f)=>(l(),a(m,null,[s(`div`,x,[s(`div`,S,[(l(!0),a(m,null,o(M.value,i=>(l(),a(`div`,{class:`scenario-block`,onClick:e=>F(i.ID),key:i.ID},[s(`div`,{class:`scenario-image-block scenario-image`,style:c({backgroundImage:`url(${i.image})`})},null,4),s(`div`,w,[s(`p`,T,n(i.name),1),s(`p`,E,n(i.description),1),s(`div`,D,[i.reviewsCount?(l(),t(p(v),{key:0,value:i.averageRating,readonly:``,"allow-half":``,size:`small`},null,8,[`value`])):e(``,!0),i.reviewsCount?(l(),a(`span`,O,n(i.averageRating?.toFixed(1))+` · `+n(i.reviewsCount),1)):(l(),a(`span`,k,`Пока нет оценок`))]),i.difficulty?(l(),a(`div`,A,`Сложность: `+n(i.difficulty),1)):e(``,!0),s(`p`,j,[r(p(g),{bordered:!1,type:`success`,class:`status-block`},{default:u(()=>[d(`Автор: `+n(i.author?.username),1)]),_:2},1024)])])],8,C))),128))])]),r(y,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-935ff4be`]]),N=i({__name:`CatalogView`,setup(e){return(e,n)=>(l(),t(M))}});export{N as default};
|
||||
@@ -0,0 +1 @@
|
||||
import{M as e,N as t,O as n,X as r,y as i}from"./client-BPUTdqiR.js";import{t as a}from"./DocsPage-DvXHJM7v.js";import{t as o}from"./HeaderMenu-C2nsemcr.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 +0,0 @@
|
||||
import{M as e,N as t,O as n,X as r,y as i}from"./client-CT8bsOZT.js";import{t as a}from"./DocsPage-DIQRt4kF.js";import{t as o}from"./HeaderMenu-7Pj73tF6.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,Ht as t,I as n,M as r,N as i,O as a,T as o,X as s,a as c,ct as l,j as u,q as d,st as f,w as p,wt as m,yt as h}from"./client-CT8bsOZT.js";import{G as g,H as _,M as v,N as y,V as b,q as x,r as S}from"./light-DhgSQSdG.js";import{i as C}from"./css-DEmdllcC.js";import{t as w}from"./use-compitable-DR1_4TS5.js";import{t as T}from"./fade-in.cssr-9JVxREOe.js";import{t as E}from"./Alert-ZR5VUWrU.js";import{n as D}from"./es-Bk-Et3Ln.js";import{M as O,N as k,Q as A,s as j}from"./index-Dw2jAfxR.js";import{t as M}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as N}from"./HeaderText-CQkOA8j1.js";var P=b([b(`@keyframes spin-rotate`,`
|
||||
import{E as e,Ht as t,I as n,M as r,N as i,O as a,T as o,X as s,a as c,ct as l,j as u,q as d,st as f,w as p,wt as m,yt as h}from"./client-BPUTdqiR.js";import{G as g,H as _,M as v,N as y,V as b,q as x,r as S}from"./light-CAboqKml.js";import{i as C}from"./css-DEmdllcC.js";import{t as w}from"./use-compitable-XUeenQPv.js";import{t as T}from"./fade-in.cssr-DXj7wP5I.js";import{t as E}from"./Alert-BErBp-jP.js";import{n as D}from"./es-pwhLS9ns.js";import{M as O,N as k,Q as A,s as j}from"./index-GBc-6ZcB.js";import{t as M}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as N}from"./HeaderText-CmFTPxk6.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-CT8bsOZT.js";import{N as r,o as i,q as a,r as o}from"./light-DhgSQSdG.js";import{n as s,t as c}from"./css-DEmdllcC.js";import{t as l}from"./flatten-K6HmZnua.js";import{t as u}from"./get-slot-6kXJmSMP.js";import{u as d}from"./index-Dw2jAfxR.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-BPUTdqiR.js";import{N as r,o as i,q as a,r as o}from"./light-CAboqKml.js";import{n as s,t as c}from"./css-DEmdllcC.js";import{t as l}from"./flatten-ToATH0lz.js";import{t as u}from"./get-slot-6kXJmSMP.js";import{u as d}from"./index-GBc-6ZcB.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
-7
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
-1
File diff suppressed because one or more lines are too long
+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{Bt as e,D as t,M as n,N as r,O as i,T as a,X as o,ct as s,u as c,wt as l,yt as u}from"./client-CT8bsOZT.js";import{n as d,r as f,t as p}from"./es-Bk-Et3Ln.js";import{t as m}from"./index-Dw2jAfxR.js";import{t as h}from"./_plugin-vue_export-helper-BDNMzG2s.js";var g={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},_=r({name:`MenuOutlined`,render:function(e,t){return o(),i(`svg`,g,t[0]||=[a(`path`,{d:`M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z`,fill:`currentColor`},null,-1)])}}),v={class:`menu-block`},y=[`aria-expanded`,`aria-label`],b={class:`right-group`},x=h(r({__name:`HeaderMenu`,props:{active:{}},setup(r){let h=r,g=m(),x=c(),S=d(),C=f(),w=u([]);async function T(){w.value=[];try{let e=await S.GetPermissions({});w.value=e.permissions||[]}catch(e){C.error(`Не удалось загрузить права доступа`),console.error(`Failed to load permissions:`,e)}}T();function E(e){return w.value.includes(e)}let D=()=>{x.push(`/login`)},O=()=>{g.logout(),x.push(`/login`)},k=u(!1);return(r,c)=>(o(),i(`div`,v,[a(`button`,{type:`button`,class:`burger-button`,"aria-expanded":k.value,"aria-label":k.value?`Закрыть меню`:`Открыть меню`,onClick:c[0]||=e=>k.value=!k.value},[n(l(p),{class:`burger-icon`,size:`28`},{default:s(()=>[n(l(_))]),_:1})],8,y),a(`div`,{class:e([`left-group menu-buttons-block`,k.value?``:`menu-buttons-block-active`])},[a(`button`,{type:`button`,class:e([`menu-item-block`,{active:h.active==`main`}]),onClick:c[1]||=e=>l(x).push(`/`)},` Главная `,2),l(g).hasRole(`user`)?(o(),i(`button`,{key:0,type:`button`,class:e([`menu-item-block`,{active:h.active==`office`}]),onClick:c[2]||=e=>l(x).push(`/office`)},` Кабинет `,2)):t(``,!0),E(`games_page`)?(o(),i(`button`,{key:1,type:`button`,class:e([`menu-item-block`,{active:h.active==`games`}]),onClick:c[3]||=e=>l(x).push(`/games`)},` Игры `,2)):t(``,!0),a(`button`,{type:`button`,class:`menu-item-block`,onClick:c[4]||=e=>l(x).push(`/screen`)},` Экран `),a(`button`,{type:`button`,class:e([`menu-item-block`,{active:h.active==`catalog`}]),onClick:c[5]||=e=>l(x).push(`/catalog`)},` Каталог `,2),E(`scenarios_page`)?(o(),i(`button`,{key:2,type:`button`,class:e([`menu-item-block`,{active:h.active==`scenarios`}]),onClick:c[6]||=e=>l(x).push(`/scenarios`)},` Сценарии `,2)):t(``,!0),E(`users_page`)?(o(),i(`button`,{key:3,type:`button`,class:e([`menu-item-block`,{active:h.active==`users`}]),onClick:c[7]||=e=>l(x).push(`/users`)},` Пользователи `,2)):t(``,!0),E(`reviews_page`)?(o(),i(`button`,{key:4,type:`button`,class:e([`menu-item-block`,{active:h.active==`reviews`}]),onClick:c[8]||=e=>l(x).push(`/reviews`)},` Отзывы `,2)):t(``,!0)],2),a(`div`,b,[l(g).isAuthenticated?t(``,!0):(o(),i(`button`,{key:0,type:`button`,class:`menu-item-block right`,onClick:D},` Войти `)),l(g).isAuthenticated?(o(),i(`button`,{key:1,type:`button`,class:`menu-item-block right`,onClick:O},` Выйти `)):t(``,!0)])]))}}),[[`__scopeId`,`data-v-de69fe07`]]);export{x as t};
|
||||
import{Bt as e,D as t,M as n,N as r,O as i,T as a,X as o,ct as s,u as c,wt as l,yt as u}from"./client-BPUTdqiR.js";import{n as d,r as f,t as p}from"./es-pwhLS9ns.js";import{t as m}from"./index-GBc-6ZcB.js";import{t as h}from"./_plugin-vue_export-helper-BDNMzG2s.js";var g={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},_=r({name:`MenuOutlined`,render:function(e,t){return o(),i(`svg`,g,t[0]||=[a(`path`,{d:`M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z`,fill:`currentColor`},null,-1)])}}),v={class:`menu-block`},y=[`aria-expanded`,`aria-label`],b={class:`right-group`},x=h(r({__name:`HeaderMenu`,props:{active:{}},setup(r){let h=r,g=m(),x=c(),S=d(),C=f(),w=u([]);async function T(){w.value=[];try{let e=await S.GetPermissions({});w.value=e.permissions||[]}catch(e){C.error(`Не удалось загрузить права доступа`),console.error(`Failed to load permissions:`,e)}}T();function E(e){return w.value.includes(e)}let D=()=>{x.push(`/login`)},O=()=>{g.logout(),x.push(`/login`)},k=u(!1);return(r,c)=>(o(),i(`div`,v,[a(`button`,{type:`button`,class:`burger-button`,"aria-expanded":k.value,"aria-label":k.value?`Закрыть меню`:`Открыть меню`,onClick:c[0]||=e=>k.value=!k.value},[n(l(p),{class:`burger-icon`,size:`28`},{default:s(()=>[n(l(_))]),_:1})],8,y),a(`div`,{class:e([`left-group menu-buttons-block`,k.value?``:`menu-buttons-block-active`])},[a(`button`,{type:`button`,class:e([`menu-item-block`,{active:h.active==`main`}]),onClick:c[1]||=e=>l(x).push(`/`)},` Главная `,2),l(g).hasRole(`user`)?(o(),i(`button`,{key:0,type:`button`,class:e([`menu-item-block`,{active:h.active==`office`}]),onClick:c[2]||=e=>l(x).push(`/office`)},` Кабинет `,2)):t(``,!0),E(`games_page`)?(o(),i(`button`,{key:1,type:`button`,class:e([`menu-item-block`,{active:h.active==`games`}]),onClick:c[3]||=e=>l(x).push(`/games`)},` Игры `,2)):t(``,!0),a(`button`,{type:`button`,class:`menu-item-block`,onClick:c[4]||=e=>l(x).push(`/screen`)},` Экран `),a(`button`,{type:`button`,class:e([`menu-item-block`,{active:h.active==`catalog`}]),onClick:c[5]||=e=>l(x).push(`/catalog`)},` Каталог `,2),E(`scenarios_page`)?(o(),i(`button`,{key:2,type:`button`,class:e([`menu-item-block`,{active:h.active==`scenarios`}]),onClick:c[6]||=e=>l(x).push(`/scenarios`)},` Сценарии `,2)):t(``,!0),E(`users_page`)?(o(),i(`button`,{key:3,type:`button`,class:e([`menu-item-block`,{active:h.active==`users`}]),onClick:c[7]||=e=>l(x).push(`/users`)},` Пользователи `,2)):t(``,!0),E(`reviews_page`)?(o(),i(`button`,{key:4,type:`button`,class:e([`menu-item-block`,{active:h.active==`reviews`}]),onClick:c[8]||=e=>l(x).push(`/reviews`)},` Отзывы `,2)):t(``,!0)],2),a(`div`,b,[l(g).isAuthenticated?t(``,!0):(o(),i(`button`,{key:0,type:`button`,class:`menu-item-block right`,onClick:D},` Войти `)),l(g).isAuthenticated?(o(),i(`button`,{key:1,type:`button`,class:`menu-item-block right`,onClick:O},` Выйти `)):t(``,!0)])]))}}),[[`__scopeId`,`data-v-de69fe07`]]);export{x as t};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{$ as e,N as t,O as n,X as r}from"./client-CT8bsOZT.js";import{t as i}from"./_plugin-vue_export-helper-BDNMzG2s.js";var a={class:`text-with-font`},o=i(t({__name:`HeaderText`,setup(t){return(t,i)=>(r(),n(`span`,a,[e(t.$slots,`default`,{},void 0,!0)]))}}),[[`__scopeId`,`data-v-689794e0`]]);export{o as t};
|
||||
import{$ as e,N as t,O as n,X as r}from"./client-BPUTdqiR.js";import{t as i}from"./_plugin-vue_export-helper-BDNMzG2s.js";var a={class:`text-with-font`},o=i(t({__name:`HeaderText`,setup(t){return(t,i)=>(r(),n(`span`,a,[e(t.$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,X as a,y as o}from"./client-CT8bsOZT.js";import{t as s}from"./HeaderMenu-7Pj73tF6.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,X as a,y as o}from"./client-BPUTdqiR.js";import{t as s}from"./HeaderMenu-C2nsemcr.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{H as e,I as t,N as n,P as r,R as i,St as a,Z as o,m as s,ot as c,q as l,st as u,w as d,y as f,yt as p}from"./client-CT8bsOZT.js";import{G as m,H as h,K as g,M as ee,N as te,V as _,W as v,i as ne,o as re,q as y,r as b}from"./light-DhgSQSdG.js";import{c as x,d as S,i as C,u as w}from"./Card-ByTKWmCT.js";import{r as ie}from"./css-DEmdllcC.js";import{i as ae,r as T,t as E}from"./Suffix-BHEvqfdq.js";import{t as oe}from"./use-merged-state-CRia4_FA.js";import{i as se}from"./Button-94okyzLW.js";import{n as ce,r as D}from"./use-form-item-CBXe24ar.js";import{a as O,i as k,r as A}from"./resolve-slot-BEScaVot.js";import{U as j,X as M,w as le}from"./index-Dw2jAfxR.js";var N=n({name:`Eye`,render(){return t(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},t(`path`,{d:`M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`32`}),t(`circle`,{cx:`256`,cy:`256`,r:`80`,fill:`none`,stroke:`currentColor`,"stroke-miterlimit":`10`,"stroke-width":`32`}))}}),P=n({name:`EyeOff`,render(){return t(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},t(`path`,{d:`M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z`,fill:`currentColor`}),t(`path`,{d:`M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z`,fill:`currentColor`}),t(`path`,{d:`M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z`,fill:`currentColor`}),t(`path`,{d:`M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z`,fill:`currentColor`}),t(`path`,{d:`M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z`,fill:`currentColor`}))}}),F=s(`n-input`),ue=h(`input`,`
|
||||
import{H as e,I as t,N as n,P as r,R as i,St as a,Z as o,m as s,ot as c,q as l,st as u,w as d,y as f,yt as p}from"./client-BPUTdqiR.js";import{G as m,H as h,K as g,M as ee,N as te,V as _,W as v,i as ne,o as re,q as y,r as b}from"./light-CAboqKml.js";import{c as x,d as S,i as C,u as w}from"./Card-BGYmeVwK.js";import{r as ie}from"./css-DEmdllcC.js";import{i as ae,r as T,t as E}from"./Suffix-BTQlgMpf.js";import{t as oe}from"./use-merged-state-Cf_5Bk0w.js";import{i as se}from"./Button-C-tqGmGk.js";import{n as ce,r as D}from"./use-form-item-CmxopeL6.js";import{a as O,i as k,r as A}from"./resolve-slot-CvI9c3sm.js";import{U as j,X as M,w as le}from"./index-GBc-6ZcB.js";var N=n({name:`Eye`,render(){return t(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},t(`path`,{d:`M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`32`}),t(`circle`,{cx:`256`,cy:`256`,r:`80`,fill:`none`,stroke:`currentColor`,"stroke-miterlimit":`10`,"stroke-width":`32`}))}}),P=n({name:`EyeOff`,render(){return t(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},t(`path`,{d:`M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z`,fill:`currentColor`}),t(`path`,{d:`M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z`,fill:`currentColor`}),t(`path`,{d:`M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z`,fill:`currentColor`}),t(`path`,{d:`M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z`,fill:`currentColor`}),t(`path`,{d:`M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z`,fill:`currentColor`}))}}),F=s(`n-input`),ue=h(`input`,`
|
||||
max-width: 100%;
|
||||
cursor: text;
|
||||
line-height: 1.5;
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{I as e,M as t,N as n,O as r,R as i,St as a,T as o,X as s,Z as c,ct as l,j as u,lt as d,m as f,u as p,w as m,wt as h,y as g,yt as _}from"./client-CT8bsOZT.js";import{G as v,H as y,J as b,M as x,N as S,V as C,W as w,Y as T,o as E,q as D,r as O}from"./light-DhgSQSdG.js";import{a as k,i as A,o as j,t as M}from"./Follower-Du2kMtxV.js";import{a as N,o as ee,t as te}from"./utils-c9TIQTqi.js";import{d as P,f as ne,t as F}from"./Card-ByTKWmCT.js";import{n as I,s as L,u as R}from"./Suffix-BHEvqfdq.js";import{t as z}from"./use-merged-state-CRia4_FA.js";import{t as B}from"./Button-94okyzLW.js";import{n as V,t as H}from"./Tabs-fqzAxhs_.js";import{n as U,r as W}from"./use-form-item-CBXe24ar.js";import{a as G}from"./resolve-slot-BEScaVot.js";import{t as K}from"./Input-kZvNhDRz.js";import{r as q}from"./es-Bk-Et3Ln.js";import{t as J}from"./Space-DeNVcubp.js";import{C as re,H as Y,I as ie,Q as ae,X as oe,Y as se,Z as ce,t as le,x as ue}from"./index-Dw2jAfxR.js";import{t as de}from"./HeaderMenu-7Pj73tF6.js";import{t as fe}from"./_plugin-vue_export-helper-BDNMzG2s.js";var pe=C([y(`auto-complete`,`
|
||||
import{I as e,M as t,N as n,O as r,R as i,St as a,T as o,X as s,Z as c,ct as l,j as u,lt as d,m as f,u as p,w as m,wt as h,y as g,yt as _}from"./client-BPUTdqiR.js";import{G as v,H as y,J as b,M as x,N as S,V as C,W as w,Y as T,o as E,q as D,r as O}from"./light-CAboqKml.js";import{a as k,i as A,o as j,t as M}from"./Follower-DoBMZJqg.js";import{a as N,o as ee,t as te}from"./utils-8i2laxql.js";import{d as P,f as ne,t as F}from"./Card-BGYmeVwK.js";import{n as I,s as L,u as R}from"./Suffix-BTQlgMpf.js";import{t as z}from"./use-merged-state-Cf_5Bk0w.js";import{t as B}from"./Button-C-tqGmGk.js";import{n as V,t as H}from"./Tabs-Bm5MNrAr.js";import{n as U,r as W}from"./use-form-item-CmxopeL6.js";import{a as G}from"./resolve-slot-CvI9c3sm.js";import{t as K}from"./Input-Bslp1hI0.js";import{r as q}from"./es-pwhLS9ns.js";import{t as J}from"./Space-CIo5lTLm.js";import{C as re,H as Y,I as ie,Q as ae,X as oe,Y as se,Z as ce,t as le,x as ue}from"./index-GBc-6ZcB.js";import{t as de}from"./HeaderMenu-C2nsemcr.js";import{t as fe}from"./_plugin-vue_export-helper-BDNMzG2s.js";var pe=C([y(`auto-complete`,`
|
||||
z-index: auto;
|
||||
position: relative;
|
||||
display: inline-flex;
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import{$ as e,N as t,O as n,T as r,X as i}from"./client-CT8bsOZT.js";import{t as a}from"./_plugin-vue_export-helper-BDNMzG2s.js";var o={class:`main`},s={class:`message-cloud`},c=a(t({__name:`MessagePaper`,setup(t){return(t,a)=>(i(),n(`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,[e(t.$slots,`default`,{},void 0,!0)])]))}}),[[`__scopeId`,`data-v-0b1b8d3f`]]);export{c as t};
|
||||
import{$ as e,N as t,O as n,T as r,X as i}from"./client-BPUTdqiR.js";import{t as a}from"./_plugin-vue_export-helper-BDNMzG2s.js";var o={class:`main`},s={class:`message-cloud`},c=a(t({__name:`MessagePaper`,setup(t){return(t,a)=>(i(),n(`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,[e(t.$slots,`default`,{},void 0,!0)])]))}}),[[`__scopeId`,`data-v-0b1b8d3f`]]);export{c as t};
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{Bt as e,C as t,G as n,H as r,I as i,J as a,N as o,R as s,St as c,V as l,W as u,Z as d,lt as f,m as p,ot as m,p as h,q as g,vt as _,w as v,yt as y}from"./client-CT8bsOZT.js";import{B as b,G as x,H as S,J as C,M as w,N as T,V as E,W as D,o as O,q as ee,r as k}from"./light-DhgSQSdG.js";import{d as A,f as te,i as ne,n as re,r as ie,s as j,t as ae,u as M}from"./Card-ByTKWmCT.js";import{r as oe}from"./css-DEmdllcC.js";import{_ as se,c as ce,g as le,h as N,l as ue,m as de,n as fe,p as pe,s as me,u as he,v as P,y as F}from"./Suffix-BHEvqfdq.js";import{a as ge,t as I}from"./Button-94okyzLW.js";import{i as _e,n as ve,t as L}from"./keep-DgbZT4hk.js";import{r as R}from"./use-form-item-CBXe24ar.js";import{a as z,r as B}from"./resolve-slot-BEScaVot.js";import{t as ye}from"./fade-in.cssr-9JVxREOe.js";import{B as be,F as xe,L as Se,Q as V,R as Ce,U as we,Y as Te,h as Ee,m as De,q as H,tt as U,z as W}from"./index-Dw2jAfxR.js";var G=y(null);function Oe(e){if(e.clientX>0||e.clientY>0)G.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?G.value={x:e+r/2,y:n+i/2}:G.value={x:0,y:0}}else G.value=null}}var K=0,ke=!0;function Ae(){if(!F)return _(y(null));K===0&&A(`click`,document,Oe,!0);let e=()=>{K+=1};return(ke&&=P())?(u(e),n(()=>{--K,K===0&&M(`click`,document,Oe,!0)})):e(),_(G)}var je=y(void 0),q=0;function Me(){je.value=Date.now()}var Ne=!0;function Pe(e){if(!F)return _(y(!1));let t=y(!1),r=null;function i(){r!==null&&window.clearTimeout(r)}function a(){i(),t.value=!0,r=window.setTimeout(()=>{t.value=!1},e)}q===0&&A(`click`,window,Me,!0);let o=()=>{q+=1,A(`click`,window,a,!0)};return(Ne&&=P())?(u(o),n(()=>{--q,q===0&&M(`click`,window,Me,!0),M(`click`,window,a,!0),i()})):o(),_(t)}var J=y(!1);function Fe(){J.value=!0}function Ie(){J.value=!1}var Y=0;function Le(){return ge&&(u(()=>{Y||(window.addEventListener(`compositionstart`,Fe),window.addEventListener(`compositionend`,Ie)),Y++}),n(()=>{Y<=1?(window.removeEventListener(`compositionstart`,Fe),window.removeEventListener(`compositionend`,Ie),Y=0):Y--})),J}var X=0,Re=``,ze=``,Be=``,Ve=``,He=y(`0px`);function Ue(e){if(typeof document>`u`)return;let t=document.documentElement,r,i=!1,a=()=>{t.style.marginRight=Re,t.style.overflow=ze,t.style.overflowX=Be,t.style.overflowY=Ve,He.value=`0px`};g(()=>{r=m(e,e=>{if(e){if(!X){let e=window.innerWidth-t.offsetWidth;e>0&&(Re=t.style.marginRight,t.style.marginRight=`${e}px`,He.value=`${e}px`),ze=t.style.overflow,Be=t.style.overflowX,Ve=t.style.overflowY,t.style.overflow=`hidden`,t.style.overflowX=`hidden`,t.style.overflowY=`hidden`}i=!0,X++}else X--,X||a(),i=!1},{immediate:!0})}),n(()=>{r?.(),i&&=(X--,X||a(),!1)})}var We=p(`n-dialog-provider`);p(`n-dialog-api`),p(`n-dialog-reactive-list`);var Z={icon:Function,type:{type:String,default:`default`},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,titleClass:[String,Array],titleStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],actionClass:[String,Array],actionStyle:[String,Object],onPositiveClick:Function,onNegativeClick:Function,onClose:Function,closeFocusable:Boolean},Ge=j(Z),Ke=E([S(`dialog`,`
|
||||
import{Bt as e,C as t,G as n,H as r,I as i,J as a,N as o,R as s,St as c,V as l,W as u,Z as d,lt as f,m as p,ot as m,p as h,q as g,vt as _,w as v,yt as y}from"./client-BPUTdqiR.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 ee,r as k}from"./light-CAboqKml.js";import{d as A,f as te,i as ne,n as re,r as ie,s as j,t as ae,u as M}from"./Card-BGYmeVwK.js";import{r as oe}from"./css-DEmdllcC.js";import{_ as se,c as ce,g as le,h as N,l as ue,m as de,n as fe,p as pe,s as me,u as he,v as P,y as F}from"./Suffix-BTQlgMpf.js";import{a as ge,t as I}from"./Button-C-tqGmGk.js";import{i as _e,n as ve,t as L}from"./keep-DpjVwsCh.js";import{r as R}from"./use-form-item-CmxopeL6.js";import{a as z,r as B}from"./resolve-slot-CvI9c3sm.js";import{t as ye}from"./fade-in.cssr-DXj7wP5I.js";import{B as be,F as xe,L as Se,Q as V,R as Ce,U as we,Y as Te,h as Ee,m as De,q as H,tt as U,z as W}from"./index-GBc-6ZcB.js";var G=y(null);function Oe(e){if(e.clientX>0||e.clientY>0)G.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?G.value={x:e+r/2,y:n+i/2}:G.value={x:0,y:0}}else G.value=null}}var K=0,ke=!0;function Ae(){if(!F)return _(y(null));K===0&&A(`click`,document,Oe,!0);let e=()=>{K+=1};return(ke&&=P())?(u(e),n(()=>{--K,K===0&&M(`click`,document,Oe,!0)})):e(),_(G)}var je=y(void 0),q=0;function Me(){je.value=Date.now()}var Ne=!0;function Pe(e){if(!F)return _(y(!1));let t=y(!1),r=null;function i(){r!==null&&window.clearTimeout(r)}function a(){i(),t.value=!0,r=window.setTimeout(()=>{t.value=!1},e)}q===0&&A(`click`,window,Me,!0);let o=()=>{q+=1,A(`click`,window,a,!0)};return(Ne&&=P())?(u(o),n(()=>{--q,q===0&&M(`click`,window,Me,!0),M(`click`,window,a,!0),i()})):o(),_(t)}var J=y(!1);function Fe(){J.value=!0}function Ie(){J.value=!1}var Y=0;function Le(){return ge&&(u(()=>{Y||(window.addEventListener(`compositionstart`,Fe),window.addEventListener(`compositionend`,Ie)),Y++}),n(()=>{Y<=1?(window.removeEventListener(`compositionstart`,Fe),window.removeEventListener(`compositionend`,Ie),Y=0):Y--})),J}var X=0,Re=``,ze=``,Be=``,Ve=``,He=y(`0px`);function Ue(e){if(typeof document>`u`)return;let t=document.documentElement,r,i=!1,a=()=>{t.style.marginRight=Re,t.style.overflow=ze,t.style.overflowX=Be,t.style.overflowY=Ve,He.value=`0px`};g(()=>{r=m(e,e=>{if(e){if(!X){let e=window.innerWidth-t.offsetWidth;e>0&&(Re=t.style.marginRight,t.style.marginRight=`${e}px`,He.value=`${e}px`),ze=t.style.overflow,Be=t.style.overflowX,Ve=t.style.overflowY,t.style.overflow=`hidden`,t.style.overflowX=`hidden`,t.style.overflowY=`hidden`}i=!0,X++}else X--,X||a(),i=!1},{immediate:!0})}),n(()=>{r?.(),i&&=(X--,X||a(),!1)})}var We=p(`n-dialog-provider`);p(`n-dialog-api`),p(`n-dialog-reactive-list`);var Z={icon:Function,type:{type:String,default:`default`},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,titleClass:[String,Array],titleStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],actionClass:[String,Array],actionStyle:[String,Object],onPositiveClick:Function,onNegativeClick:Function,onClose:Function,closeFocusable:Boolean},Ge=j(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,Ht as n,M as r,N as i,O as a,T as o,X as s,ct as c,j as l,l as u,q as d,t as f,wt as p,y as m,yt as h}from"./client-CT8bsOZT.js";import{t as g}from"./Card-ByTKWmCT.js";import{t as _}from"./Button-94okyzLW.js";import{t as v}from"./Space-DeNVcubp.js";import{t as y}from"./index-Dw2jAfxR.js";import{t as b}from"./HeaderMenu-7Pj73tF6.js";import{t as x}from"./datetime-BJNH0M1T.js";var S={class:`center-block-custom`},C={class:`width700`},w={key:0,role:`alert`},T={key:0,role:`status`},E={key:1,role:`status`},D={key:2},O=i({__name:`ParticipationPage`,setup(i){let O=u(),k=new URLSearchParams(O.hash.slice(1)),A=k.get(`token`)||``,j=h(k.get(`answer`)===`cancelled`?`cancelled`:`confirmed`),M=f(),N=y(),P=h(),F=h(!1),I=h(``);async function L(){F.value=!0,I.value=``;try{let e=await M.GetParticipation({token:A});P.value=e}catch{I.value=`Не удалось загрузить данные. Попробуйте ещё раз.`}finally{F.value=!1}}async function R(){if(!F.value){F.value=!0,I.value=``;try{let e=await M.AnswerParticipation({token:A,answer:j.value});P.value=e}catch{I.value=`Не удалось сохранить ответ. Попробуйте ещё раз.`}finally{F.value=!1}}}return d(L),(i,u)=>(s(),a(m,null,[p(N).isAuthenticated?(s(),t(b,{key:0})):e(``,!0),o(`div`,S,[o(`div`,C,[r(p(g),{title:`Участие в игре`},{default:c(()=>[I.value?(s(),a(`p`,w,n(I.value),1)):e(``,!0),P.value?(s(),a(m,{key:1},[o(`h2`,null,n(P.value.gameName),1),o(`p`,null,`Команда: `+n(P.value.teamName),1),o(`p`,null,`Начало: `+n(p(x)(P.value.startAt)),1),o(`p`,null,`Участников: `+n(P.value.participantsCount),1),P.value.status===`confirmed`?(s(),a(`p`,T,` Участие подтверждено. Ждём вас на игре! Решение окончательное. `)):P.value.status===`cancelled`?(s(),a(`p`,E,` Запись отменена. Решение окончательное. `)):P.value.closed?(s(),a(`p`,D,` Приём ответов закрыт. Ваша запись сохранена со статусом «Ожидает ответа». `)):(s(),a(m,{key:3},[u[4]||=o(`p`,null,[o(`strong`,null,`Решение окончательное: изменить его нельзя.`)],-1),u[5]||=o(`p`,null,`Без ответа запись сохраняется со статусом «Ожидает ответа».`,-1),r(p(v),{vertical:``},{default:c(()=>[r(p(v),null,{default:c(()=>[r(p(_),{disabled:F.value,type:j.value===`confirmed`?`primary`:`default`,"aria-pressed":j.value===`confirmed`,onClick:u[0]||=e=>j.value=`confirmed`},{default:c(()=>[...u[2]||=[l(`Мы участвуем`,-1)]]),_:1},8,[`disabled`,`type`,`aria-pressed`]),r(p(_),{disabled:F.value,type:j.value===`cancelled`?`error`:`default`,"aria-pressed":j.value===`cancelled`,onClick:u[1]||=e=>j.value=`cancelled`},{default:c(()=>[...u[3]||=[l(`Мы не участвуем`,-1)]]),_:1},8,[`disabled`,`type`,`aria-pressed`])]),_:1}),r(p(_),{loading:F.value,disabled:F.value,type:j.value===`cancelled`?`error`:`primary`,onClick:R},{default:c(()=>[l(n(j.value===`confirmed`?`Подтверждаю участие`:`Подтверждаю отмену`),1)]),_:1},8,[`loading`,`disabled`,`type`])]),_:1})],64))],64)):(s(),t(p(_),{key:2,loading:F.value,onClick:L},{default:c(()=>[l(n(F.value?`Загрузка`:`Повторить`),1)]),_:1},8,[`loading`]))]),_:1})])])],64))}}),k=i({__name:`ParticipationView`,setup(e){return(e,n)=>(s(),t(O))}});export{k as default};
|
||||
import{D as e,E as t,Ht as n,M as r,N as i,O as a,T as o,X as s,ct as c,j as l,l as u,q as d,t as f,wt as p,y as m,yt as h}from"./client-BPUTdqiR.js";import{t as g}from"./Card-BGYmeVwK.js";import{t as _}from"./Button-C-tqGmGk.js";import{t as v}from"./Space-CIo5lTLm.js";import{t as y}from"./index-GBc-6ZcB.js";import{t as b}from"./HeaderMenu-C2nsemcr.js";import{t as x}from"./datetime-BJNH0M1T.js";var S={class:`center-block-custom`},C={class:`width700`},w={key:0,role:`alert`},T={key:0,role:`status`},E={key:1,role:`status`},D={key:2},O=i({__name:`ParticipationPage`,setup(i){let O=u(),k=new URLSearchParams(O.hash.slice(1)),A=k.get(`token`)||``,j=h(k.get(`answer`)===`cancelled`?`cancelled`:`confirmed`),M=f(),N=y(),P=h(),F=h(!1),I=h(``);async function L(){F.value=!0,I.value=``;try{let e=await M.GetParticipation({token:A});P.value=e}catch{I.value=`Не удалось загрузить данные. Попробуйте ещё раз.`}finally{F.value=!1}}async function R(){if(!F.value){F.value=!0,I.value=``;try{let e=await M.AnswerParticipation({token:A,answer:j.value});P.value=e}catch{I.value=`Не удалось сохранить ответ. Попробуйте ещё раз.`}finally{F.value=!1}}}return d(L),(i,u)=>(s(),a(m,null,[p(N).isAuthenticated?(s(),t(b,{key:0})):e(``,!0),o(`div`,S,[o(`div`,C,[r(p(g),{title:`Участие в игре`},{default:c(()=>[I.value?(s(),a(`p`,w,n(I.value),1)):e(``,!0),P.value?(s(),a(m,{key:1},[o(`h2`,null,n(P.value.gameName),1),o(`p`,null,`Команда: `+n(P.value.teamName),1),o(`p`,null,`Начало: `+n(p(x)(P.value.startAt)),1),o(`p`,null,`Участников: `+n(P.value.participantsCount),1),P.value.status===`confirmed`?(s(),a(`p`,T,` Участие подтверждено. Ждём вас на игре! Решение окончательное. `)):P.value.status===`cancelled`?(s(),a(`p`,E,` Запись отменена. Решение окончательное. `)):P.value.closed?(s(),a(`p`,D,` Приём ответов закрыт. Ваша запись сохранена со статусом «Ожидает ответа». `)):(s(),a(m,{key:3},[u[4]||=o(`p`,null,[o(`strong`,null,`Решение окончательное: изменить его нельзя.`)],-1),u[5]||=o(`p`,null,`Без ответа запись сохраняется со статусом «Ожидает ответа».`,-1),r(p(v),{vertical:``},{default:c(()=>[r(p(v),null,{default:c(()=>[r(p(_),{disabled:F.value,type:j.value===`confirmed`?`primary`:`default`,"aria-pressed":j.value===`confirmed`,onClick:u[0]||=e=>j.value=`confirmed`},{default:c(()=>[...u[2]||=[l(`Мы участвуем`,-1)]]),_:1},8,[`disabled`,`type`,`aria-pressed`]),r(p(_),{disabled:F.value,type:j.value===`cancelled`?`error`:`default`,"aria-pressed":j.value===`cancelled`,onClick:u[1]||=e=>j.value=`cancelled`},{default:c(()=>[...u[3]||=[l(`Мы не участвуем`,-1)]]),_:1},8,[`disabled`,`type`,`aria-pressed`])]),_:1}),r(p(_),{loading:F.value,disabled:F.value,type:j.value===`cancelled`?`error`:`primary`,onClick:R},{default:c(()=>[l(n(j.value===`confirmed`?`Подтверждаю участие`:`Подтверждаю отмену`),1)]),_:1},8,[`loading`,`disabled`,`type`])]),_:1})],64))],64)):(s(),t(p(_),{key:2,loading:F.value,onClick:L},{default:c(()=>[l(n(F.value?`Загрузка`:`Повторить`),1)]),_:1},8,[`loading`]))]),_:1})])])],64))}}),k=i({__name:`ParticipationView`,setup(e){return(e,n)=>(s(),t(O))}});export{k as default};
|
||||
+106
File diff suppressed because one or more lines are too long
-207
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 +0,0 @@
|
||||
import{M as e,N as t,O as n,X as r,y as i}from"./client-CT8bsOZT.js";import{t as a}from"./DocsPage-DIQRt4kF.js";import{t as o}from"./HeaderMenu-7Pj73tF6.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};
|
||||
@@ -0,0 +1 @@
|
||||
import{M as e,N as t,O as n,X as r,y as i}from"./client-BPUTdqiR.js";import{t as a}from"./DocsPage-DvXHJM7v.js";import{t as o}from"./HeaderMenu-C2nsemcr.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,Q as n,St as r,w as i,yt as a}from"./client-CT8bsOZT.js";import{G as o,H as s,K as c,M as l,N as u,V as d,W as f,q as p,r as m,t as h}from"./light-DhgSQSdG.js";import{t as g}from"./use-merged-state-CRia4_FA.js";import{i as _,n as v,r as y}from"./use-form-item-CBXe24ar.js";import{U as b}from"./index-Dw2jAfxR.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,Q as n,St as r,w as i,yt as a}from"./client-BPUTdqiR.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-CAboqKml.js";import{t as g}from"./use-merged-state-Cf_5Bk0w.js";import{i as _,n as v,r as y}from"./use-form-item-CmxopeL6.js";import{U as b}from"./index-GBc-6ZcB.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);
|
||||
-7
@@ -1,7 +0,0 @@
|
||||
import{I as e,N as t}from"./client-CT8bsOZT.js";var n=t({name:`Remove`,render(){return e(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},e(`line`,{x1:`400`,y1:`256`,x2:`112`,y2:`256`,style:`
|
||||
fill: none;
|
||||
stroke: currentColor;
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: round;
|
||||
stroke-width: 32px;
|
||||
`}))}});export{n as t};
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import{D as e,E as t,Ht as n,M as r,N as i,O as a,Q as o,T as s,X as c,ct as l,j as u,wt as d,y as f,yt as p}from"./client-CT8bsOZT.js";import{t as m}from"./Card-ByTKWmCT.js";import{t as h}from"./Button-94okyzLW.js";import{t as g}from"./Tag-CVi_Im9M.js";import{n as _,r as v}from"./es-Bk-Et3Ln.js";import{t as y}from"./Flex-D-6FwgqE.js";import{t as b}from"./Rate-DwHwnWeb.js";import{t as x}from"./HeaderMenu-7Pj73tF6.js";import{t as S}from"./_plugin-vue_export-helper-BDNMzG2s.js";var C={class:`center-block-custom`},w={class:`width1200`},T={class:`page-header`},E={class:`review-game`},D={class:`review-text`},O=S(i({__name:`ReviewsPage`,setup(i){let S=_(),O=v(),k=p([]);async function A(){try{let e=await S.GetReviewsForModeration({});k.value=e.reviews||[]}catch(e){O.error(e instanceof Error?e.message:`Не удалось загрузить отзывы`)}}async function j(e,t){try{await S.ModerateGameReview({ID:e.ID,status:t}),await A()}catch(e){O.error(e instanceof Error?e.message:`Не удалось изменить отзыв`)}}return A(),(i,p)=>(c(),a(f,null,[s(`div`,C,[s(`div`,w,[s(`div`,T,[p[1]||=s(`h1`,null,`Отзывы`,-1),r(d(h),{onClick:A},{default:l(()=>[...p[0]||=[u(`Обновить`,-1)]]),_:1})]),k.value.length==0?(c(),t(d(m),{key:0},{default:l(()=>[...p[2]||=[u(`Очередь отзывов пуста.`,-1)]]),_:1})):e(``,!0),(c(!0),a(f,null,o(k.value,i=>(c(),t(d(m),{key:i.ID,class:`review-card`},{default:l(()=>[r(d(y),{justify:`space-between`,align:`center`},{default:l(()=>[s(`div`,null,[s(`div`,E,n(i.gameName),1),s(`strong`,null,n(i.teamName),1)]),r(d(g),null,{default:l(()=>[u(n(i.status),1)]),_:2},1024)]),_:2},1024),r(d(b),{value:i.rating,readonly:``},null,8,[`value`]),s(`div`,null,`Сложность: `+n([``,`лёгкая`,`средняя`,`тяжёлая`][i.difficulty||0]),1),s(`p`,D,n(i.text),1),i.status==`pending`?(c(),t(d(y),{key:0,justify:`end`},{default:l(()=>[r(d(h),{type:`success`,onClick:e=>j(i,`approved`)},{default:l(()=>[...p[3]||=[u(`Одобрить`,-1)]]),_:1},8,[`onClick`]),r(d(h),{type:`error`,ghost:``,onClick:e=>j(i,`rejected`)},{default:l(()=>[...p[4]||=[u(`Отклонить`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):i.status==`approved`?(c(),t(d(y),{key:1,justify:`end`},{default:l(()=>[r(d(h),{type:`error`,ghost:``,onClick:e=>j(i,`hidden`)},{default:l(()=>[...p[5]||=[u(`Скрыть`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):e(``,!0)]),_:2},1024))),128))])]),r(x,{active:`reviews`})],64))}}),[[`__scopeId`,`data-v-0b64d5d0`]]),k=i({__name:`ReviewsView`,setup(e){return(e,n)=>(c(),t(O))}});export{k as default};
|
||||
import{D as e,E as t,Ht as n,M as r,N as i,O as a,Q as o,T as s,X as c,ct as l,j as u,wt as d,y as f,yt as p}from"./client-BPUTdqiR.js";import{t as m}from"./Card-BGYmeVwK.js";import{t as h}from"./Button-C-tqGmGk.js";import{t as g}from"./Tag-Dn6pvkCE.js";import{n as _,r as v}from"./es-pwhLS9ns.js";import{t as y}from"./Flex-qUWWSQLF.js";import{t as b}from"./Rate-CAXKLxI3.js";import{t as x}from"./HeaderMenu-C2nsemcr.js";import{t as S}from"./_plugin-vue_export-helper-BDNMzG2s.js";var C={class:`center-block-custom`},w={class:`width1200`},T={class:`page-header`},E={class:`review-game`},D={class:`review-text`},O=S(i({__name:`ReviewsPage`,setup(i){let S=_(),O=v(),k=p([]);async function A(){try{let e=await S.GetReviewsForModeration({});k.value=e.reviews||[]}catch(e){O.error(e instanceof Error?e.message:`Не удалось загрузить отзывы`)}}async function j(e,t){try{await S.ModerateGameReview({ID:e.ID,status:t}),await A()}catch(e){O.error(e instanceof Error?e.message:`Не удалось изменить отзыв`)}}return A(),(i,p)=>(c(),a(f,null,[s(`div`,C,[s(`div`,w,[s(`div`,T,[p[1]||=s(`h1`,null,`Отзывы`,-1),r(d(h),{onClick:A},{default:l(()=>[...p[0]||=[u(`Обновить`,-1)]]),_:1})]),k.value.length==0?(c(),t(d(m),{key:0},{default:l(()=>[...p[2]||=[u(`Очередь отзывов пуста.`,-1)]]),_:1})):e(``,!0),(c(!0),a(f,null,o(k.value,i=>(c(),t(d(m),{key:i.ID,class:`review-card`},{default:l(()=>[r(d(y),{justify:`space-between`,align:`center`},{default:l(()=>[s(`div`,null,[s(`div`,E,n(i.gameName),1),s(`strong`,null,n(i.teamName),1)]),r(d(g),null,{default:l(()=>[u(n(i.status),1)]),_:2},1024)]),_:2},1024),r(d(b),{value:i.rating,readonly:``},null,8,[`value`]),s(`div`,null,`Сложность: `+n([``,`лёгкая`,`средняя`,`тяжёлая`][i.difficulty||0]),1),s(`p`,D,n(i.text),1),i.status==`pending`?(c(),t(d(y),{key:0,justify:`end`},{default:l(()=>[r(d(h),{type:`success`,onClick:e=>j(i,`approved`)},{default:l(()=>[...p[3]||=[u(`Одобрить`,-1)]]),_:1},8,[`onClick`]),r(d(h),{type:`error`,ghost:``,onClick:e=>j(i,`rejected`)},{default:l(()=>[...p[4]||=[u(`Отклонить`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):i.status==`approved`?(c(),t(d(y),{key:1,justify:`end`},{default:l(()=>[r(d(h),{type:`error`,ghost:``,onClick:e=>j(i,`hidden`)},{default:l(()=>[...p[5]||=[u(`Скрыть`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):e(``,!0)]),_:2},1024))),128))])]),r(x,{active:`reviews`})],64))}}),[[`__scopeId`,`data-v-0b64d5d0`]]),k=i({__name:`ReviewsView`,setup(e){return(e,n)=>(c(),t(O))}});export{k as default};
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import{D as e,E as t,Ht as n,M as r,N as i,O as a,Q as o,T as s,X as c,ct as l,j as u,l as d,wt as f,y as p,yt as m}from"./client-CT8bsOZT.js";import{t as h}from"./Tag-CVi_Im9M.js";import{n as g,r as _}from"./es-Bk-Et3Ln.js";import{t as v}from"./Rate-DwHwnWeb.js";import{t as y}from"./HeaderMenu-7Pj73tF6.js";import{t as b}from"./_plugin-vue_export-helper-BDNMzG2s.js";var x={class:`center-block-custom`},S={class:`width700`},C={class:`scenario-card`},w={class:`scenario-heading`},T={class:`scenario-title`},E={class:`scenario-image-frame`},D=[`src`,`alt`],O={class:`scenario-details`},k={class:`scenario-description`},A={class:`scenario-rating`},j={key:1},M={key:2},N={key:0,class:`scenario-difficulty`},P={class:`scenario-author`},F={key:1,class:`reviews-section`},I={class:`review-heading`},L={class:`review-game`},R={class:`review-text`},z=b(i({__name:`ScenarioPage`,setup(i){let b=_(),z=g(),B=d().params.id,V=m([]),H=m({ID:void 0,name:void 0,story:void 0,author:void 0,status:void 0,updatedAt:void 0,createdAt:void 0,publishedAt:void 0,averageRating:void 0,reviewsCount:void 0,difficulty:void 0});async function U(e){try{let t=await z.GetScenario({ID:e});H.value=t.scenario}catch(e){b.error(e instanceof Error?e.message:`Не удалось загрузить сценарий`)}}U(Number(B));async function W(e){try{let t=await z.GetScenarioReviews({scenarioID:e});V.value=t.reviews||[]}catch(e){b.error(e instanceof Error?e.message:`Не удалось загрузить отзывы`)}}return W(Number(B)),(i,d)=>(c(),a(p,null,[s(`div`,x,[s(`div`,S,[s(`section`,C,[s(`div`,w,[d[0]||=s(`p`,{class:`scenario-kicker`},`ДЕЛО ИЗ КАТАЛОГА`,-1),s(`h1`,T,n(H.value.name),1)]),s(`div`,E,[s(`img`,{class:`scenario-image`,src:H.value.image,alt:H.value.name},null,8,D)]),s(`div`,O,[s(`p`,k,n(H.value.description),1),s(`div`,A,[H.value.reviewsCount?(c(),t(f(v),{key:0,value:H.value.averageRating,readonly:``,"allow-half":``,size:`small`},null,8,[`value`])):e(``,!0),H.value.reviewsCount?(c(),a(`span`,j,n(H.value.averageRating?.toFixed(1))+` · `+n(H.value.reviewsCount)+` отзывов`,1)):(c(),a(`span`,M,`Пока нет оценок`))]),H.value.difficulty?(c(),a(`div`,N,`Сложность: `+n(H.value.difficulty),1)):e(``,!0),s(`div`,P,[r(f(h),{bordered:!1,type:`success`,class:`status-block`},{default:l(()=>[u(` Автор: `+n(H.value.author?.username),1)]),_:1})]),V.value.length?(c(),a(`section`,F,[d[1]||=s(`h2`,{class:`reviews-title`},`Отзывы команд`,-1),(c(!0),a(p,null,o(V.value,e=>(c(),a(`article`,{key:e.ID,class:`review-card`},[s(`div`,I,[s(`strong`,null,n(e.teamName),1),r(f(v),{value:e.rating,readonly:``,size:`small`},null,8,[`value`])]),s(`div`,null,`Сложность: `+n([``,`лёгкая`,`средняя`,`тяжёлая`][e.difficulty||0]),1),s(`div`,L,n(e.gameName),1),s(`p`,R,n(e.text),1)]))),128))])):e(``,!0)])])])]),r(y,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-fd1f9c93`]]),B=i({__name:`ScenarioView`,setup(e){return(e,n)=>(c(),t(z))}});export{B as default};
|
||||
import{D as e,E as t,Ht as n,M as r,N as i,O as a,Q as o,T as s,X as c,ct as l,j as u,l as d,wt as f,y as p,yt as m}from"./client-BPUTdqiR.js";import{t as h}from"./Tag-Dn6pvkCE.js";import{n as g,r as _}from"./es-pwhLS9ns.js";import{t as v}from"./Rate-CAXKLxI3.js";import{t as y}from"./HeaderMenu-C2nsemcr.js";import{t as b}from"./_plugin-vue_export-helper-BDNMzG2s.js";var x={class:`center-block-custom`},S={class:`width700`},C={class:`scenario-card`},w={class:`scenario-heading`},T={class:`scenario-title`},E={class:`scenario-image-frame`},D=[`src`,`alt`],O={class:`scenario-details`},k={class:`scenario-description`},A={class:`scenario-rating`},j={key:1},M={key:2},N={key:0,class:`scenario-difficulty`},P={class:`scenario-author`},F={key:1,class:`reviews-section`},I={class:`review-heading`},L={class:`review-game`},R={class:`review-text`},z=b(i({__name:`ScenarioPage`,setup(i){let b=_(),z=g(),B=d().params.id,V=m([]),H=m({ID:void 0,name:void 0,story:void 0,author:void 0,status:void 0,updatedAt:void 0,createdAt:void 0,publishedAt:void 0,averageRating:void 0,reviewsCount:void 0,difficulty:void 0});async function U(e){try{let t=await z.GetScenario({ID:e});H.value=t.scenario}catch(e){b.error(e instanceof Error?e.message:`Не удалось загрузить сценарий`)}}U(Number(B));async function W(e){try{let t=await z.GetScenarioReviews({scenarioID:e});V.value=t.reviews||[]}catch(e){b.error(e instanceof Error?e.message:`Не удалось загрузить отзывы`)}}return W(Number(B)),(i,d)=>(c(),a(p,null,[s(`div`,x,[s(`div`,S,[s(`section`,C,[s(`div`,w,[d[0]||=s(`p`,{class:`scenario-kicker`},`ДЕЛО ИЗ КАТАЛОГА`,-1),s(`h1`,T,n(H.value.name),1)]),s(`div`,E,[s(`img`,{class:`scenario-image`,src:H.value.image,alt:H.value.name},null,8,D)]),s(`div`,O,[s(`p`,k,n(H.value.description),1),s(`div`,A,[H.value.reviewsCount?(c(),t(f(v),{key:0,value:H.value.averageRating,readonly:``,"allow-half":``,size:`small`},null,8,[`value`])):e(``,!0),H.value.reviewsCount?(c(),a(`span`,j,n(H.value.averageRating?.toFixed(1))+` · `+n(H.value.reviewsCount)+` отзывов`,1)):(c(),a(`span`,M,`Пока нет оценок`))]),H.value.difficulty?(c(),a(`div`,N,`Сложность: `+n(H.value.difficulty),1)):e(``,!0),s(`div`,P,[r(f(h),{bordered:!1,type:`success`,class:`status-block`},{default:l(()=>[u(` Автор: `+n(H.value.author?.username),1)]),_:1})]),V.value.length?(c(),a(`section`,F,[d[1]||=s(`h2`,{class:`reviews-title`},`Отзывы команд`,-1),(c(!0),a(p,null,o(V.value,e=>(c(),a(`article`,{key:e.ID,class:`review-card`},[s(`div`,I,[s(`strong`,null,n(e.teamName),1),r(f(v),{value:e.rating,readonly:``,size:`small`},null,8,[`value`])]),s(`div`,null,`Сложность: `+n([``,`лёгкая`,`средняя`,`тяжёлая`][e.difficulty||0]),1),s(`div`,L,n(e.gameName),1),s(`p`,R,n(e.text),1)]))),128))])):e(``,!0)])])])]),r(y,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-fd1f9c93`]]),B=i({__name:`ScenarioView`,setup(e){return(e,n)=>(c(),t(z))}});export{B as default};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
.place-block-hover[data-v-b506c9f9],.place-block[data-v-b506c9f9]{background-color:#222;border:1px solid #222;border-radius:10px;margin:10px 0;padding:20px}.place-block-hover[data-v-b506c9f9]:hover{color:#63e2b7;cursor:pointer;border:1px solid #63e2b7}.place-image-plus[data-v-b506c9f9]{justify-content:center;align-items:center;font-size:30px;display:flex}.show-editor-block[data-v-b506c9f9]{cursor:pointer;overflow-wrap:anywhere}.hr[data-v-b506c9f9]{border:1px dashed #eee;margin:10px 0}.message-header[data-v-b506c9f9]{padding-right:50px;font-size:20px}.message-content[data-v-b506c9f9]{font-weight:500}.intro-empty[data-v-b506c9f9]{color:#777}.correct-answer[data-v-b506c9f9]{color:gold;white-space:pre-wrap;margin-top:4px;font-weight:500;display:inline-block}.settings-header[data-v-b506c9f9]{margin-top:20px}.hint[data-v-b506c9f9]{margin-top:5px}.slot-block[data-v-b506c9f9]{margin-top:10px}.place-card[data-v-f8a6b8da]{--place-block-margin:0;border-radius:10px;margin:10px 0}.place-card[data-v-f8a6b8da]:focus{outline:2px solid #63e2b7}.conclusion-video[data-v-f8a6b8da]{width:100%}.background-preview[data-v-f8a6b8da]{object-fit:contain;max-width:100%;max-height:200px}.settings-block[data-v-f8a6b8da]{height:40px}.settings-button[data-v-f8a6b8da]{float:right}.settings-icon[data-v-f8a6b8da]{width:20px}.name-text[data-v-f8a6b8da]{background-color:#ffffff1a;border-radius:3px;padding:3px}.settings-header[data-v-f8a6b8da]{margin-top:20px}.settings-hint[data-v-f8a6b8da]{color:#999;margin-bottom:10px}.settings-hr[data-v-f8a6b8da]{margin:20px 0}.questions-header[data-v-f8a6b8da]{color:#aaa;margin:30px 0 5px;font-size:18px}.places-container[data-v-f8a6b8da]{flex-flow:column;display:flex}
|
||||
.place-block-hover[data-v-b506c9f9],.place-block[data-v-b506c9f9]{background-color:#222;border:1px solid #222;border-radius:10px;margin:10px 0;padding:20px}.place-block-hover[data-v-b506c9f9]:hover{color:#63e2b7;cursor:pointer;border:1px solid #63e2b7}.place-image-plus[data-v-b506c9f9]{justify-content:center;align-items:center;font-size:30px;display:flex}.show-editor-block[data-v-b506c9f9]{cursor:pointer;overflow-wrap:anywhere}.hr[data-v-b506c9f9]{border:1px dashed #eee;margin:10px 0}.message-header[data-v-b506c9f9]{padding-right:50px;font-size:20px}.message-content[data-v-b506c9f9]{font-weight:500}.intro-empty[data-v-b506c9f9]{color:#777}.correct-answer[data-v-b506c9f9]{color:gold;white-space:pre-wrap;margin-top:4px;font-weight:500;display:inline-block}.settings-header[data-v-b506c9f9]{margin-top:20px}.hint[data-v-b506c9f9]{margin-top:5px}.slot-block[data-v-b506c9f9]{margin-top:10px}.place-card[data-v-82e71240]{--place-block-margin:0;border-radius:10px;margin:10px 0}.place-card[data-v-82e71240]:focus{outline:2px solid #63e2b7}.conclusion-video[data-v-82e71240]{width:100%}.background-preview[data-v-82e71240]{object-fit:contain;max-width:100%;max-height:200px}.settings-block[data-v-82e71240]{height:40px}.settings-button[data-v-82e71240]{float:right}.settings-icon[data-v-82e71240]{width:20px}.name-text[data-v-82e71240]{background-color:#ffffff1a;border-radius:3px;padding:3px}.settings-header[data-v-82e71240]{margin-top:20px}.settings-hint[data-v-82e71240]{color:#999;margin-bottom:10px}.settings-hr[data-v-82e71240]{margin:20px 0}.questions-header[data-v-82e71240]{color:#aaa;margin:30px 0 5px;font-size:18px}.places-container[data-v-82e71240]{flex-flow:column;display:flex}
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+1
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
.binding-card[data-v-1ced100a],.qr-card[data-v-1ced100a],.ready-card[data-v-1ced100a]{text-align:center;width:100%;max-width:min(94vw,520px)}.binding-card p[data-v-1ced100a],.qr-card p[data-v-1ced100a],.ready-card p[data-v-1ced100a]{margin:0 0 16px}.binding-card .n-select[data-v-1ced100a]{margin-bottom:8px}.binding-card .n-button[data-v-1ced100a],.qr-card .n-button[data-v-1ced100a],.ready-card .n-button[data-v-1ced100a]{margin-top:8px}.ready-title[data-v-1ced100a]{font-size:28px}.screen-qr[data-v-1ced100a]{background:#fff;padding:12px;line-height:0}.screen-center[data-v-1ced100a]{justify-content:center;align-items:center;min-height:100dvh;padding:20px;display:flex}.screen-page[data-v-1ced100a]{color:#eee;background:#111;min-height:100dvh}.screen-content[data-v-1ced100a]{text-align:center;background-position:50%;background-size:cover;justify-content:center;align-items:center;min-height:100dvh;display:flex}.media-error[data-v-1ced100a]{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-1ced100a]{width:100vw;height:100dvh;position:relative}.cover-label[data-v-1ced100a]{margin:0 0 20px;font-size:clamp(28px,6vw,72px)}.cover-image[data-v-1ced100a]{object-fit:contain;width:100%;height:100%;display:block}.cover-controls[data-v-1ced100a]{text-align:center;position:absolute;top:50%;left:0;right:0;transform:translateY(-50%)}.cover-controls .n-button[data-v-1ced100a]{margin-bottom:16px;font-weight:700}.screen-message[data-v-1ced100a]{font-size:clamp(42px,10vw,140px);font-weight:700}.timer-screen[data-v-1ced100a]{flex-direction:column;justify-content:center;align-items:center;gap:24px;max-width:90vw;display:flex}.timer-label[data-v-1ced100a]{margin:0;font-size:clamp(32px,6vw,88px)}.timer-value[data-v-1ced100a]{font-variant-numeric:tabular-nums;font-size:clamp(96px,24vw,360px);font-weight:700;line-height:.9}.screen-media[data-v-1ced100a]{width:900px;max-width:90vw}.screen-media audio[data-v-1ced100a],.screen-media video[data-v-1ced100a]{width:100%;max-height:75dvh}.conclusion-screen[data-v-1ced100a]{background:#000;width:100vw;height:100dvh}.conclusion-screen video[data-v-1ced100a]{object-fit:contain;width:100%;height:100%;display:block}.results-screen[data-v-1ced100a]{width:1400px;max-width:96vw;max-height:90dvh;overflow:hidden}.results-screen h1[data-v-1ced100a]{font-size:clamp(28px,5vw,64px)}.results-screen table[data-v-1ced100a]{border-collapse:collapse;width:100%;font-size:clamp(14px,2vw,28px)}.results-screen th[data-v-1ced100a],.results-screen td[data-v-1ced100a]{text-align:left;border-bottom:1px solid #ffffff2e;padding:8px 12px}.results-screen tbody tr[data-v-1ced100a]:nth-child(odd){background:#ffffff14}
|
||||
@@ -1 +0,0 @@
|
||||
.binding-card[data-v-c2081c29],.qr-card[data-v-c2081c29],.ready-card[data-v-c2081c29]{text-align:center;width:100%;max-width:min(94vw,520px)}.binding-card p[data-v-c2081c29],.qr-card p[data-v-c2081c29],.ready-card p[data-v-c2081c29]{margin:0 0 16px}.binding-card .n-select[data-v-c2081c29]{margin-bottom:8px}.binding-card .n-button[data-v-c2081c29],.qr-card .n-button[data-v-c2081c29],.ready-card .n-button[data-v-c2081c29]{margin-top:8px}.ready-title[data-v-c2081c29]{font-size:28px}.screen-qr[data-v-c2081c29]{background:#fff;padding:12px;line-height:0}.screen-center[data-v-c2081c29]{justify-content:center;align-items:center;min-height:100dvh;padding:20px;display:flex}.screen-page[data-v-c2081c29]{color:#eee;background:#111;min-height:100dvh}.screen-content[data-v-c2081c29]{text-align:center;background-position:50%;background-size:cover;justify-content:center;align-items:center;min-height:100dvh;display:flex}.media-error[data-v-c2081c29]{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-c2081c29]{width:100vw;height:100dvh;position:relative}.cover-label[data-v-c2081c29]{margin:0 0 20px;font-size:clamp(28px,6vw,72px)}.cover-image[data-v-c2081c29]{object-fit:contain;width:100%;height:100%;display:block}.cover-controls[data-v-c2081c29]{text-align:center;position:absolute;top:50%;left:0;right:0;transform:translateY(-50%)}.cover-controls .n-button[data-v-c2081c29]{margin-bottom:16px;font-weight:700}.screen-message[data-v-c2081c29]{font-size:clamp(42px,10vw,140px);font-weight:700}.timer-screen[data-v-c2081c29]{flex-direction:column;justify-content:center;align-items:center;gap:24px;max-width:90vw;display:flex}.timer-label[data-v-c2081c29]{margin:0;font-size:clamp(32px,6vw,88px)}.timer-value[data-v-c2081c29]{font-variant-numeric:tabular-nums;font-size:clamp(96px,24vw,360px);font-weight:700;line-height:.9}.screen-media[data-v-c2081c29]{width:900px;max-width:90vw}.screen-media audio[data-v-c2081c29],.screen-media video[data-v-c2081c29]{width:100%;max-height:75dvh}.conclusion-screen[data-v-c2081c29]{background:#000;width:100vw;height:100dvh}.conclusion-screen video[data-v-c2081c29]{object-fit:contain;width:100%;height:100%;display:block}.results-screen[data-v-c2081c29]{width:1400px;max-width:96vw;max-height:90dvh;overflow:hidden}.results-screen h1[data-v-c2081c29]{font-size:clamp(28px,5vw,64px)}.results-screen table[data-v-c2081c29]{border-collapse:collapse;width:100%;font-size:clamp(14px,2vw,28px)}.results-screen th[data-v-c2081c29],.results-screen td[data-v-c2081c29]{text-align:left;border-bottom:1px solid #ffffff2e;padding:8px 12px}.results-screen tbody tr[data-v-c2081c29]:nth-child(odd){background:#ffffff14}
|
||||
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{$ as e,H as t,I as n,N as r,St as i,lt as a,ot as o,q as s,st as c,w as l,y as u,yt as d}from"./client-CT8bsOZT.js";import{F as f,G as p,H as m,K as h,M as g,N as _,V as v,W as y,o as b,q as x,r as S}from"./light-DhgSQSdG.js";import{a as C,i as w,n as T,o as E,r as D,t as O}from"./Follower-Du2kMtxV.js";import{a as k,c as A,i as j,n as ee,o as te,r as M,t as N,u as P}from"./utils-c9TIQTqi.js";import{f as ne,o as F}from"./Card-ByTKWmCT.js";import{r as re}from"./css-DEmdllcC.js";import{i as ie,n as I,t as L,u as R}from"./Suffix-BHEvqfdq.js";import{t as z}from"./use-merged-state-CRia4_FA.js";import{t as ae}from"./use-compitable-DR1_4TS5.js";import{t as B}from"./Popover-DB2HZW98.js";import{r as oe}from"./keep-DgbZT4hk.js";import{n as se,r as V}from"./use-form-item-CBXe24ar.js";import{t as H}from"./Tag-CVi_Im9M.js";import{D as U,Q as W,Y as ce,q as G,tt as K,y as le}from"./index-Dw2jAfxR.js";var q=`v-hidden`,ue=T(`[v-hidden]`,{display:`none!important`}),J=r({name:`Overflow`,props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:t}){let n=d(null),r=d(null);function i(i){let{value:a}=n,{getCounter:o,getTail:s}=e,c;if(c=o===void 0?r.value:o(),!a||!c)return;c.hasAttribute(q)&&c.removeAttribute(q);let{children:l}=a;if(i.showAllItemsBeforeCalculate)for(let e of l)e.hasAttribute(q)&&e.removeAttribute(q);let u=a.offsetWidth,d=[],f=t.tail?s?.():null,p=f?f.offsetWidth:0,m=!1,h=a.children.length-+!!t.tail;for(let t=0;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 a=f();return ue.mount({id:`vueuc/overflow`,head:!0,anchorMetaName:D,ssr:a}),s(()=>i({showAllItemsBeforeCalculate:!1})),{selfRef:n,counterRef:r,sync:i}},render(){let{$slots:r}=this;return t(()=>this.sync({showAllItemsBeforeCalculate:!1})),n(`div`,{class:`v-overflow`,ref:`selfRef`},[e(r,`default`),r.counter?r.counter():n(`span`,{style:{display:`inline-block`},ref:`counterRef`}),r.tail?r.tail():null])}});function Y(e){switch(typeof e){case`string`:return e||void 0;case`number`:return String(e);default:return}}var de=v([m(`base-selection`,`
|
||||
import{$ as e,H as t,I as n,N as r,St as i,lt as a,ot as o,q as s,st as c,w as l,y as u,yt as d}from"./client-BPUTdqiR.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-CAboqKml.js";import{a as C,i as w,n as T,o as E,r as D,t as O}from"./Follower-DoBMZJqg.js";import{a as k,c as A,i as j,n as ee,o as te,r as M,t as N,u as P}from"./utils-8i2laxql.js";import{f as ne,o as F}from"./Card-BGYmeVwK.js";import{r as re}from"./css-DEmdllcC.js";import{i as ie,n as I,t as L,u as R}from"./Suffix-BTQlgMpf.js";import{t as z}from"./use-merged-state-Cf_5Bk0w.js";import{t as ae}from"./use-compitable-XUeenQPv.js";import{t as B}from"./Popover-C60pf0M0.js";import{r as oe}from"./keep-DpjVwsCh.js";import{n as se,r as V}from"./use-form-item-CmxopeL6.js";import{t as H}from"./Tag-Dn6pvkCE.js";import{D as U,Q as W,Y as ce,q as G,tt as K,y as le}from"./index-GBc-6ZcB.js";var q=`v-hidden`,ue=T(`[v-hidden]`,{display:`none!important`}),J=r({name:`Overflow`,props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:t}){let n=d(null),r=d(null);function i(i){let{value:a}=n,{getCounter:o,getTail:s}=e,c;if(c=o===void 0?r.value:o(),!a||!c)return;c.hasAttribute(q)&&c.removeAttribute(q);let{children:l}=a;if(i.showAllItemsBeforeCalculate)for(let e of l)e.hasAttribute(q)&&e.removeAttribute(q);let u=a.offsetWidth,d=[],f=t.tail?s?.():null,p=f?f.offsetWidth:0,m=!1,h=a.children.length-+!!t.tail;for(let t=0;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 a=f();return ue.mount({id:`vueuc/overflow`,head:!0,anchorMetaName:D,ssr:a}),s(()=>i({showAllItemsBeforeCalculate:!1})),{selfRef:n,counterRef:r,sync:i}},render(){let{$slots:r}=this;return t(()=>this.sync({showAllItemsBeforeCalculate:!1})),n(`div`,{class:`v-overflow`,ref:`selfRef`},[e(r,`default`),r.counter?r.counter():n(`span`,{style:{display:`inline-block`},ref:`counterRef`}),r.tail?r.tail():null])}});function Y(e){switch(typeof e){case`string`:return e||void 0;case`number`:return String(e);default:return}}var de=v([m(`base-selection`,`
|
||||
--n-padding-single: var(--n-padding-single-top) var(--n-padding-single-right) var(--n-padding-single-bottom) var(--n-padding-single-left);
|
||||
--n-padding-multiple: var(--n-padding-multiple-top) var(--n-padding-multiple-right) var(--n-padding-multiple-bottom) var(--n-padding-multiple-left);
|
||||
position: relative;
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{I as e,N as t,v as n,w as r}from"./client-CT8bsOZT.js";import{N as i,o as a,q as o,r as s}from"./light-DhgSQSdG.js";import{n as c,t as l}from"./css-DEmdllcC.js";import{a as u}from"./Button-94okyzLW.js";import{t as d}from"./flatten-K6HmZnua.js";import{t as f}from"./get-slot-6kXJmSMP.js";import{d as p}from"./index-Dw2jAfxR.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-BPUTdqiR.js";import{N as i,o as a,q as o,r as s}from"./light-CAboqKml.js";import{n as c,t as l}from"./css-DEmdllcC.js";import{a as u}from"./Button-C-tqGmGk.js";import{t as d}from"./flatten-ToATH0lz.js";import{t as f}from"./get-slot-6kXJmSMP.js";import{d as p}from"./index-GBc-6ZcB.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
+108
@@ -0,0 +1,108 @@
|
||||
import{I as e,N as t,St as n,w as r,yt as i}from"./client-BPUTdqiR.js";import{G as a,H as o,I 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-CAboqKml.js";import{i as g,t as _}from"./css-DEmdllcC.js";import{t as v}from"./use-merged-state-Cf_5Bk0w.js";import{n as y,r as b}from"./use-form-item-CmxopeL6.js";import{a as x,n as S}from"./resolve-slot-CvI9c3sm.js";import{H as C,I as w,M as T,o as E}from"./index-GBc-6ZcB.js";var D=t({name:`Remove`,render(){return e(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},e(`line`,{x1:`400`,y1:`256`,x2:`112`,y2:`256`,style:`
|
||||
fill: none;
|
||||
stroke: currentColor;
|
||||
stroke-linecap: round;
|
||||
stroke-linejoin: round;
|
||||
stroke-width: 32px;
|
||||
`}))}});function O(e){let{primaryColor:t,opacityDisabled:n,borderRadius:r,textColor3:i}=e;return Object.assign(Object.assign({},E),{iconColor:i,textColor:`white`,loadingColor:t,opacityDisabled:n,railColor:`rgba(0, 0, 0, .14)`,railColorActive:t,buttonBoxShadow:`0 1px 4px 0 rgba(0, 0, 0, 0.3), inset 0 0 1px 0 rgba(0, 0, 0, 0.05)`,buttonColor:`#FFF`,railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 0 2px ${s(t,{alpha:.2})}`})}var k={name:`Switch`,common:h,self:O},A=o(`switch`,`
|
||||
height: var(--n-height);
|
||||
min-width: var(--n-width);
|
||||
vertical-align: middle;
|
||||
user-select: none;
|
||||
-webkit-user-select: none;
|
||||
display: inline-flex;
|
||||
outline: none;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
`,[f(`children-placeholder`,`
|
||||
height: var(--n-rail-height);
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
overflow: hidden;
|
||||
pointer-events: none;
|
||||
visibility: hidden;
|
||||
`),f(`rail-placeholder`,`
|
||||
display: flex;
|
||||
flex-wrap: none;
|
||||
`),f(`button-placeholder`,`
|
||||
width: calc(1.75 * var(--n-rail-height));
|
||||
height: var(--n-rail-height);
|
||||
`),o(`base-loading`,`
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translateX(-50%) translateY(-50%);
|
||||
font-size: calc(var(--n-button-width) - 4px);
|
||||
color: var(--n-loading-color);
|
||||
transition: color .3s var(--n-bezier);
|
||||
`,[w({left:`50%`,top:`50%`,originalTransform:`translateX(-50%) translateY(-50%)`})]),f(`checked, unchecked`,`
|
||||
transition: color .3s var(--n-bezier);
|
||||
color: var(--n-text-color);
|
||||
box-sizing: border-box;
|
||||
position: absolute;
|
||||
white-space: nowrap;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
line-height: 1;
|
||||
`),f(`checked`,`
|
||||
right: 0;
|
||||
padding-right: calc(1.25 * var(--n-rail-height) - var(--n-offset));
|
||||
`),f(`unchecked`,`
|
||||
left: 0;
|
||||
justify-content: flex-end;
|
||||
padding-left: calc(1.25 * var(--n-rail-height) - var(--n-offset));
|
||||
`),d(`&:focus`,[f(`rail`,`
|
||||
box-shadow: var(--n-box-shadow-focus);
|
||||
`)]),a(`round`,[f(`rail`,`border-radius: calc(var(--n-rail-height) / 2);`,[f(`button`,`border-radius: calc(var(--n-button-height) / 2);`)])]),c(`disabled`,[c(`icon`,[a(`rubber-band`,[a(`pressed`,[f(`rail`,[f(`button`,`max-width: var(--n-button-width-pressed);`)])]),f(`rail`,[d(`&:active`,[f(`button`,`max-width: var(--n-button-width-pressed);`)])]),a(`active`,[a(`pressed`,[f(`rail`,[f(`button`,`left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));`)])]),f(`rail`,[d(`&:active`,[f(`button`,`left: calc(100% - var(--n-offset) - var(--n-button-width-pressed));`)])])])])])]),a(`active`,[f(`rail`,[f(`button`,`left: calc(100% - var(--n-button-width) - var(--n-offset))`)])]),f(`rail`,`
|
||||
overflow: hidden;
|
||||
height: var(--n-rail-height);
|
||||
min-width: var(--n-rail-width);
|
||||
border-radius: var(--n-rail-border-radius);
|
||||
cursor: pointer;
|
||||
position: relative;
|
||||
transition:
|
||||
opacity .3s var(--n-bezier),
|
||||
background .3s var(--n-bezier),
|
||||
box-shadow .3s var(--n-bezier);
|
||||
background-color: var(--n-rail-color);
|
||||
`,[f(`button-icon`,`
|
||||
color: var(--n-icon-color);
|
||||
transition: color .3s var(--n-bezier);
|
||||
font-size: calc(var(--n-button-height) - 4px);
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
line-height: 1;
|
||||
`,[w()]),f(`button`,`
|
||||
align-items: center;
|
||||
top: var(--n-offset);
|
||||
left: var(--n-offset);
|
||||
height: var(--n-button-height);
|
||||
width: var(--n-button-width-pressed);
|
||||
max-width: var(--n-button-width);
|
||||
border-radius: var(--n-button-border-radius);
|
||||
background-color: var(--n-button-color);
|
||||
box-shadow: var(--n-button-box-shadow);
|
||||
box-sizing: border-box;
|
||||
cursor: inherit;
|
||||
content: "";
|
||||
position: absolute;
|
||||
transition:
|
||||
background-color .3s var(--n-bezier),
|
||||
left .3s var(--n-bezier),
|
||||
opacity .3s var(--n-bezier),
|
||||
max-width .3s var(--n-bezier),
|
||||
box-shadow .3s var(--n-bezier);
|
||||
`)]),a(`active`,[f(`rail`,`background-color: var(--n-rail-color-active);`)]),a(`loading`,[f(`rail`,`
|
||||
cursor: wait;
|
||||
`)]),a(`disabled`,[f(`rail`,`
|
||||
cursor: not-allowed;
|
||||
opacity: .5;
|
||||
`)])]),j=Object.assign(Object.assign({},m.props),{size:String,value:{type:[String,Number,Boolean],default:void 0},loading:Boolean,defaultValue:{type:[String,Number,Boolean],default:!1},disabled:{type:Boolean,default:void 0},round:{type:Boolean,default:!0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},railStyle:Function,rubberBand:{type:Boolean,default:!0},spinProps:Object,onChange:[Function,Array]}),M,N=t({name:`Switch`,props:j,slots:Object,setup(e){M===void 0&&(M=typeof CSS<`u`?CSS.supports===void 0?!1:CSS.supports(`width`,`max(1px)`):!0);let{mergedClsPrefixRef:t,inlineThemeDisabled:a,mergedComponentPropsRef:o}=u(e),s=m(`Switch`,`-switch`,A,k,e,t),c=y(e,{mergedSize(t){return e.size===void 0?t?t.mergedSize.value:o?.value?.Switch?.size||`medium`:e.size}}),{mergedSizeRef:d,mergedDisabledRef:f}=c,h=i(e.defaultValue),x=v(n(e,`value`),h),S=r(()=>x.value===e.checkedValue),C=i(!1),w=i(!1),T=r(()=>{let{railStyle:t}=e;if(t)return t({focused:w.value,checked:S.value})});function E(t){let{"onUpdate:value":n,onChange:r,onUpdateValue:i}=e,{nTriggerFormInput:a,nTriggerFormChange:o}=c;n&&b(n,t),i&&b(i,t),r&&b(r,t),h.value=t,a(),o()}function D(){let{nTriggerFormFocus:e}=c;e()}function O(){let{nTriggerFormBlur:e}=c;e()}function j(){e.loading||f.value||(x.value===e.checkedValue?E(e.uncheckedValue):E(e.checkedValue))}function N(){w.value=!0,D()}function P(){w.value=!1,O(),C.value=!1}function F(t){e.loading||f.value||t.key===` `&&(x.value===e.checkedValue?E(e.uncheckedValue):E(e.checkedValue),C.value=!1)}function I(t){e.loading||f.value||t.key===` `&&(t.preventDefault(),C.value=!0)}let L=r(()=>{let{value:e}=d,{self:{opacityDisabled:t,railColor:n,railColorActive:r,buttonBoxShadow:i,buttonColor:a,boxShadowFocus:o,loadingColor:c,textColor:l,iconColor:u,[p(`buttonHeight`,e)]:f,[p(`buttonWidth`,e)]:m,[p(`buttonWidthPressed`,e)]:h,[p(`railHeight`,e)]:v,[p(`railWidth`,e)]:y,[p(`railBorderRadius`,e)]:b,[p(`buttonBorderRadius`,e)]:x},common:{cubicBezierEaseInOut:S}}=s.value,C,w,T;return M?(C=`calc((${v} - ${f}) / 2)`,w=`max(${v}, ${f})`,T=`max(${y}, calc(${y} + ${f} - ${v}))`):(C=g((_(v)-_(f))/2),w=g(Math.max(_(v),_(f))),T=_(v)>_(f)?y:g(_(y)+_(f)-_(v))),{"--n-bezier":S,"--n-button-border-radius":x,"--n-button-box-shadow":i,"--n-button-color":a,"--n-button-width":m,"--n-button-width-pressed":h,"--n-button-height":f,"--n-height":w,"--n-offset":C,"--n-opacity-disabled":t,"--n-rail-border-radius":b,"--n-rail-color":n,"--n-rail-color-active":r,"--n-rail-height":v,"--n-rail-width":y,"--n-width":T,"--n-box-shadow-focus":o,"--n-loading-color":c,"--n-text-color":l,"--n-icon-color":u}}),R=a?l(`switch`,r(()=>d.value[0]),L,e):void 0;return{handleClick:j,handleBlur:P,handleFocus:N,handleKeyup:F,handleKeydown:I,mergedRailStyle:T,pressed:C,mergedClsPrefix:t,mergedValue:x,checked:S,mergedDisabled:f,cssVars:a?void 0:L,themeClass:R?.themeClass,onRender:R?.onRender}},render(){let{mergedClsPrefix:t,mergedDisabled:n,checked:r,mergedRailStyle:i,onRender:a,$slots:o}=this;a?.();let{checked:s,unchecked:c,icon:l,"checked-icon":u,"unchecked-icon":d}=o,f=!(S(l)&&S(u)&&S(d));return e(`div`,{role:`switch`,"aria-checked":r,class:[`${t}-switch`,this.themeClass,f&&`${t}-switch--icon`,r&&`${t}-switch--active`,n&&`${t}-switch--disabled`,this.round&&`${t}-switch--round`,this.loading&&`${t}-switch--loading`,this.pressed&&`${t}-switch--pressed`,this.rubberBand&&`${t}-switch--rubber-band`],tabindex:this.mergedDisabled?void 0:0,style:this.cssVars,onClick:this.handleClick,onFocus:this.handleFocus,onBlur:this.handleBlur,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},e(`div`,{class:`${t}-switch__rail`,"aria-hidden":`true`,style:i},x(s,n=>x(c,r=>n||r?e(`div`,{"aria-hidden":!0,class:`${t}-switch__children-placeholder`},e(`div`,{class:`${t}-switch__rail-placeholder`},e(`div`,{class:`${t}-switch__button-placeholder`}),n),e(`div`,{class:`${t}-switch__rail-placeholder`},e(`div`,{class:`${t}-switch__button-placeholder`}),r)):null)),e(`div`,{class:`${t}-switch__button`},x(l,n=>x(u,r=>x(d,i=>e(C,null,{default:()=>this.loading?e(T,Object.assign({key:`loading`,clsPrefix:t,strokeWidth:20},this.spinProps)):this.checked&&(r||n)?e(`div`,{class:`${t}-switch__button-icon`,key:r?`checked-icon`:`icon`},r||n):!this.checked&&(i||n)?e(`div`,{class:`${t}-switch__button-icon`,key:i?`unchecked-icon`:`icon`},i||n):null})))),x(s,n=>n&&e(`div`,{key:`checked`,class:`${t}-switch__checked`},n)),x(c,n=>n&&e(`div`,{key:`unchecked`,class:`${t}-switch__unchecked`},n)))))}});export{D as n,N 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,St as n,Z as r,m as i,w as a,yt as o}from"./client-CT8bsOZT.js";import{G as s,H as c,I as l,K as u,M as d,N as f,V as p,W as m,o as h,q as g,r as _,t as v}from"./light-DhgSQSdG.js";import{r as y}from"./css-DEmdllcC.js";import{i as b,r as x}from"./use-form-item-CBXe24ar.js";import{a as S}from"./resolve-slot-BEScaVot.js";import{F as C,O as w}from"./index-Dw2jAfxR.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,St as n,Z as r,m as i,w as a,yt as o}from"./client-BPUTdqiR.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-CAboqKml.js";import{r as y}from"./css-DEmdllcC.js";import{i as b,r as x}from"./use-form-item-CmxopeL6.js";import{a as S}from"./resolve-slot-CvI9c3sm.js";import{F as C,O as w}from"./index-GBc-6ZcB.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{E as e,Ht as t,M as n,N as r,O as i,T as a,X as o,ct as s,j as c,l,q as u,t as d,w as f,wt as p,y as m,yt as h}from"./client-CT8bsOZT.js";import{t as g}from"./Button-94okyzLW.js";import{t as _}from"./QrCode-VQE44Zo-.js";import{t as v}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as y}from"./datetime-BJNH0M1T.js";import{t as b}from"./MessagePaper-DDMbPgod.js";var x={class:`ticket-page center-block-custom`},S={class:`width700`},C={class:`ticket-card`},w={key:0,class:`error`,role:`alert`},T={class:`qr-block`},E={class:`used`,role:`status`},D={key:1,class:`used`,role:`status`},O=v(r({__name:`TicketPage`,setup(r){let v=l(),O=d(),k=f(()=>String(v.params.token||``)),A=h(),j=h(!1),M=h(``),N=f(()=>window.location.href);async function P(){j.value=!0,M.value=``;try{let e=await O.GetTicket({token:k.value});if(!e.ticket){M.value=`Билет не найден`;return}A.value=e.ticket}catch{M.value=`Не удалось загрузить билет. Попробуйте ещё раз.`}finally{j.value=!1}}return u(P),(r,l)=>(o(),i(`div`,x,[a(`div`,S,[n(b,null,{default:s(()=>[a(`div`,C,[l[7]||=a(`p`,{class:`ticket-kicker`},`ВЕЧЕРНИЙ ДЕТЕКТИВ · ПРОПУСК`,-1),l[8]||=a(`h1`,null,`Билет на игру`,-1),M.value?(o(),i(`p`,w,t(M.value),1)):A.value?(o(),i(m,{key:1},[a(`h2`,null,t(A.value.gameName),1),l[5]||=a(`hr`,null,null,-1),a(`dl`,null,[a(`div`,null,[l[0]||=a(`dt`,null,`Начало`,-1),a(`dd`,null,t(p(y)(A.value.startAt)),1)]),a(`div`,null,[l[1]||=a(`dt`,null,`Место`,-1),a(`dd`,null,t(A.value.location||`Онлайн`),1)])]),a(`div`,T,[n(p(_),{value:N.value,size:300,padding:0},null,8,[`value`])]),l[6]||=a(`p`,null,`Покажите этот QR-код организатору.`,-1),A.value.status===`used`?(o(),i(m,{key:0},[l[2]||=a(`hr`,null,null,-1),a(`p`,E,` Билет уже использован`+t(A.value.usedAt?` ${p(y)(A.value.usedAt)}`:``)+t(A.value.usedBy?` организатором ${A.value.usedBy}`:``)+`. `,1)],64)):A.value.gameStatus===`finish`?(o(),i(`p`,D,` Игра уже завершена. `)):(o(),i(m,{key:2},[l[3]||=a(`hr`,null,null,-1),l[4]||=a(`p`,{class:`active`,role:`status`},`Билет действителен.`,-1)],64))],64)):(o(),e(p(g),{key:2,loading:j.value,onClick:P},{default:s(()=>[c(t(j.value?`Загрузка`:`Повторить`),1)]),_:1},8,[`loading`]))])]),_:1})])]))}}),[[`__scopeId`,`data-v-5f755593`]]),k=r({__name:`TicketView`,setup(t){return(t,n)=>(o(),e(O))}});export{k as default};
|
||||
import{E as e,Ht as t,M as n,N as r,O as i,T as a,X as o,ct as s,j as c,l,q as u,t as d,w as f,wt as p,y as m,yt as h}from"./client-BPUTdqiR.js";import{t as g}from"./Button-C-tqGmGk.js";import{t as _}from"./QrCode-D6_WLICr.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-DBUWHrDL.js";var x={class:`ticket-page center-block-custom`},S={class:`width700`},C={class:`ticket-card`},w={key:0,class:`error`,role:`alert`},T={class:`qr-block`},E={class:`used`,role:`status`},D={key:1,class:`used`,role:`status`},O=v(r({__name:`TicketPage`,setup(r){let v=l(),O=d(),k=f(()=>String(v.params.token||``)),A=h(),j=h(!1),M=h(``),N=f(()=>window.location.href);async function P(){j.value=!0,M.value=``;try{let e=await O.GetTicket({token:k.value});if(!e.ticket){M.value=`Билет не найден`;return}A.value=e.ticket}catch{M.value=`Не удалось загрузить билет. Попробуйте ещё раз.`}finally{j.value=!1}}return u(P),(r,l)=>(o(),i(`div`,x,[a(`div`,S,[n(b,null,{default:s(()=>[a(`div`,C,[l[7]||=a(`p`,{class:`ticket-kicker`},`ВЕЧЕРНИЙ ДЕТЕКТИВ · ПРОПУСК`,-1),l[8]||=a(`h1`,null,`Билет на игру`,-1),M.value?(o(),i(`p`,w,t(M.value),1)):A.value?(o(),i(m,{key:1},[a(`h2`,null,t(A.value.gameName),1),l[5]||=a(`hr`,null,null,-1),a(`dl`,null,[a(`div`,null,[l[0]||=a(`dt`,null,`Начало`,-1),a(`dd`,null,t(p(y)(A.value.startAt)),1)]),a(`div`,null,[l[1]||=a(`dt`,null,`Место`,-1),a(`dd`,null,t(A.value.location||`Онлайн`),1)])]),a(`div`,T,[n(p(_),{value:N.value,size:300,padding:0},null,8,[`value`])]),l[6]||=a(`p`,null,`Покажите этот QR-код организатору.`,-1),A.value.status===`used`?(o(),i(m,{key:0},[l[2]||=a(`hr`,null,null,-1),a(`p`,E,` Билет уже использован`+t(A.value.usedAt?` ${p(y)(A.value.usedAt)}`:``)+t(A.value.usedBy?` организатором ${A.value.usedBy}`:``)+`. `,1)],64)):A.value.gameStatus===`finish`?(o(),i(`p`,D,` Игра уже завершена. `)):(o(),i(m,{key:2},[l[3]||=a(`hr`,null,null,-1),l[4]||=a(`p`,{class:`active`,role:`status`},`Билет действителен.`,-1)],64))],64)):(o(),e(p(g),{key:2,loading:j.value,onClick:P},{default:s(()=>[c(t(j.value?`Загрузка`:`Повторить`),1)]),_:1},8,[`loading`]))])]),_:1})])]))}}),[[`__scopeId`,`data-v-5f755593`]]),k=r({__name:`TicketView`,setup(t){return(t,n)=>(o(),e(O))}});export{k as default};
|
||||
+460
File diff suppressed because one or more lines are too long
-440
File diff suppressed because one or more lines are too long
@@ -0,0 +1 @@
|
||||
import{M as e,N as t,O as n,X as r,y as i}from"./client-BPUTdqiR.js";import{t as a}from"./DocsPage-DvXHJM7v.js";import{t as o}from"./HeaderMenu-C2nsemcr.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,X as r,y as i}from"./client-CT8bsOZT.js";import{t as a}from"./DocsPage-DIQRt4kF.js";import{t as o}from"./HeaderMenu-7Pj73tF6.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-CT8bsOZT.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-BPUTdqiR.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-CT8bsOZT.js";import{t}from"./index-Dw2jAfxR.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-BPUTdqiR.js";import{t}from"./index-GBc-6ZcB.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{$ as e,I as t,N as n,R as r,W as i,Z as a,f as o,h as s,i as c,n as l,w as u}from"./client-CT8bsOZT.js";import{p as d,t as f}from"./index-Dw2jAfxR.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{$ as e,I as t,N as n,R as r,W as i,Z as a,f as o,h as s,i as c,n as l,w as u}from"./client-BPUTdqiR.js";import{p as d,t as f}from"./index-GBc-6ZcB.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+` {
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import{V as e,a as t}from"./light-DhgSQSdG.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-CAboqKml.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-CT8bsOZT.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-BPUTdqiR.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-DhgSQSdG.js";import{K as n,W as r}from"./index-Dw2jAfxR.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-CAboqKml.js";import{K as n,W as r}from"./index-GBc-6ZcB.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{G as e,I as t,N as n,ot as r,q as i,y as a,yt as o}from"./client-CT8bsOZT.js";import{d as s,f as c,u as l}from"./Card-ByTKWmCT.js";import{Z as u}from"./index-Dw2jAfxR.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(t){let n=u(),a=o(null),f=o(null),h=!1,g=!1,v=typeof document>`u`?null:document.activeElement;function y(){return _[_.length-1]===n}function b(e){var n;e.code===`Escape`&&y()&&((n=t.onEsc)==null||n.call(t,e))}i(()=>{r(()=>t.active,e=>{e?(C(),s(`keydown`,document,b)):(l(`keydown`,document,b),h&&w())},{immediate:!0})}),e(()=>{l(`keydown`,document,b),h&&w()});function x(e){if(!g&&y()){let t=S();if(t===null||t.contains(c(e)))return;T(`first`)}}function S(){let e=a.value;if(e===null)return null;let t=e;for(;t=t.nextSibling,!(t===null||t instanceof Element&&t.tagName===`DIV`););return t}function C(){var e;if(!t.disabled){if(_.push(n),t.autoFocus){let{initialFocusTo:n}=t;n===void 0?T(`first`):(e=d(n))==null||e.focus({preventScroll:!0})}h=!0,document.addEventListener(`focus`,x,!0)}}function w(){var e;if(t.disabled||(document.removeEventListener(`focus`,x,!0),_=_.filter(e=>e!==n),y()))return;let{finalFocusTo:r}=t;r===void 0?t.returnFocusOnDeactivated&&v instanceof HTMLElement&&(g=!0,v.focus({preventScroll:!0}),g=!1):(e=d(r))==null||e.focus({preventScroll:!0})}function T(e){if(y()&&t.active){let t=a.value,n=f.value;if(t!==null&&n!==null){let r=S();if(r==null||r===n){g=!0,t.focus({preventScroll:!0}),g=!1;return}g=!0;let i=e===`first`?p(r):m(r);g=!1,i||(g=!0,t.focus({preventScroll:!0}),g=!1)}}}function E(e){if(g)return;let t=S();t!==null&&(e.relatedTarget!==null&&t.contains(e.relatedTarget)?T(`last`):T(`first`))}function D(e){g||(e.relatedTarget!==null&&e.relatedTarget===a.value?T(`last`):T(`first`))}return{focusableStartRef:a,focusableEndRef:f,focusableStyle:`position: absolute; height: 0; width: 0;`,handleStartFocus:E,handleEndFocus:D}},render(){let{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();let{active:n,focusableStyle:r}=this;return t(a,null,[t(`div`,{"aria-hidden":`true`,tabindex:n?`0`:`-1`,ref:`focusableStartRef`,style:r,onFocus:this.handleStartFocus}),e(),t(`div`,{"aria-hidden":`true`,style:r,ref:`focusableEndRef`,tabindex:n?`0`:`-1`,onFocus:this.handleEndFocus})])}}),y=new WeakSet;function b(e){y.add(e)}function x(e){return!y.has(e)}function S(e,t=[],n){let r={};return t.forEach(t=>{r[t]=e[t]}),Object.assign(r,n)}export{v as i,x as n,b as r,S as t};
|
||||
import{G as e,I as t,N as n,ot as r,q as i,y as a,yt as o}from"./client-BPUTdqiR.js";import{d as s,f as c,u as l}from"./Card-BGYmeVwK.js";import{Z as u}from"./index-GBc-6ZcB.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(t){let n=u(),a=o(null),f=o(null),h=!1,g=!1,v=typeof document>`u`?null:document.activeElement;function y(){return _[_.length-1]===n}function b(e){var n;e.code===`Escape`&&y()&&((n=t.onEsc)==null||n.call(t,e))}i(()=>{r(()=>t.active,e=>{e?(C(),s(`keydown`,document,b)):(l(`keydown`,document,b),h&&w())},{immediate:!0})}),e(()=>{l(`keydown`,document,b),h&&w()});function x(e){if(!g&&y()){let t=S();if(t===null||t.contains(c(e)))return;T(`first`)}}function S(){let e=a.value;if(e===null)return null;let t=e;for(;t=t.nextSibling,!(t===null||t instanceof Element&&t.tagName===`DIV`););return t}function C(){var e;if(!t.disabled){if(_.push(n),t.autoFocus){let{initialFocusTo:n}=t;n===void 0?T(`first`):(e=d(n))==null||e.focus({preventScroll:!0})}h=!0,document.addEventListener(`focus`,x,!0)}}function w(){var e;if(t.disabled||(document.removeEventListener(`focus`,x,!0),_=_.filter(e=>e!==n),y()))return;let{finalFocusTo:r}=t;r===void 0?t.returnFocusOnDeactivated&&v instanceof HTMLElement&&(g=!0,v.focus({preventScroll:!0}),g=!1):(e=d(r))==null||e.focus({preventScroll:!0})}function T(e){if(y()&&t.active){let t=a.value,n=f.value;if(t!==null&&n!==null){let r=S();if(r==null||r===n){g=!0,t.focus({preventScroll:!0}),g=!1;return}g=!0;let i=e===`first`?p(r):m(r);g=!1,i||(g=!0,t.focus({preventScroll:!0}),g=!1)}}}function E(e){if(g)return;let t=S();t!==null&&(e.relatedTarget!==null&&t.contains(e.relatedTarget)?T(`last`):T(`first`))}function D(e){g||(e.relatedTarget!==null&&e.relatedTarget===a.value?T(`last`):T(`first`))}return{focusableStartRef:a,focusableEndRef:f,focusableStyle:`position: absolute; height: 0; width: 0;`,handleStartFocus:E,handleEndFocus:D}},render(){let{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();let{active:n,focusableStyle:r}=this;return t(a,null,[t(`div`,{"aria-hidden":`true`,tabindex:n?`0`:`-1`,ref:`focusableStartRef`,style:r,onFocus:this.handleStartFocus}),e(),t(`div`,{"aria-hidden":`true`,style:r,ref:`focusableEndRef`,tabindex:n?`0`:`-1`,onFocus:this.handleEndFocus})])}}),y=new WeakSet;function b(e){y.add(e)}function x(e){return!y.has(e)}function S(e,t=[],n){let r={};return t.forEach(t=>{r[t]=e[t]}),Object.assign(r,n)}export{v as i,x as n,b as r,S as t};
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{R as e,W as t,bt as n,f as r,h as i,m as a,st as o,w as s,yt as c}from"./client-CT8bsOZT.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,W as t,bt as n,f as r,h as i,m as a,st as o,w as s,yt as c}from"./client-BPUTdqiR.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+` {
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{t as e}from"./light-DhgSQSdG.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-CAboqKml.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};
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import{v as e,y as t,z as n}from"./client-CT8bsOZT.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-BPUTdqiR.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};
|
||||
-21
@@ -1,21 +0,0 @@
|
||||
import{I as e,N as t,w as n}from"./client-CT8bsOZT.js";import{G as r,H as i,M as a,N as o,q as s,r as c}from"./light-DhgSQSdG.js";import{t as l}from"./use-compitable-DR1_4TS5.js";import{i as u}from"./index-Dw2jAfxR.js";var d=i(`text`,`
|
||||
transition: color .3s var(--n-bezier);
|
||||
color: var(--n-text-color);
|
||||
`,[r(`strong`,`
|
||||
font-weight: var(--n-font-weight-strong);
|
||||
`),r(`italic`,{fontStyle:`italic`}),r(`underline`,{textDecoration:`underline`}),r(`code`,`
|
||||
line-height: 1.4;
|
||||
display: inline-block;
|
||||
font-family: var(--n-font-famliy-mono);
|
||||
transition:
|
||||
color .3s var(--n-bezier),
|
||||
border-color .3s var(--n-bezier),
|
||||
background-color .3s var(--n-bezier);
|
||||
box-sizing: border-box;
|
||||
padding: .05em .35em 0 .35em;
|
||||
border-radius: var(--n-code-border-radius);
|
||||
font-size: .9em;
|
||||
color: var(--n-code-text-color);
|
||||
background-color: var(--n-code-color);
|
||||
border: var(--n-code-border);
|
||||
`)]),f=t({name:`Text`,props:Object.assign(Object.assign({},c.props),{code:Boolean,type:{type:String,default:`default`},delete:Boolean,strong:Boolean,italic:Boolean,underline:Boolean,depth:[String,Number],tag:String,as:{type:String,validator:()=>!0,default:void 0}}),setup(e){let{mergedClsPrefixRef:t,inlineThemeDisabled:r}=o(e),i=c(`Typography`,`-text`,d,u,e,t),f=n(()=>{let{depth:t,type:n}=e,r=n==="default"?t===void 0?`textColor`:`textColor${t}Depth`:s(`textColor`,n),{common:{fontWeightStrong:a,fontFamilyMono:o,cubicBezierEaseInOut:c},self:{codeTextColor:l,codeBorderRadius:u,codeColor:d,codeBorder:f,[r]:p}}=i.value;return{"--n-bezier":c,"--n-text-color":p,"--n-font-weight-strong":a,"--n-font-famliy-mono":o,"--n-code-border-radius":u,"--n-code-text-color":l,"--n-code-color":d,"--n-code-border":f}}),p=r?a(`text`,n(()=>`${e.type[0]}${e.depth||``}`),f,e):void 0;return{mergedClsPrefix:t,compitableTag:l(e,[`as`,`tag`]),cssVars:r?void 0:f,themeClass:p?.themeClass,onRender:p?.onRender}},render(){var t,n;let{mergedClsPrefix:r}=this;(t=this.onRender)==null||t.call(this);let i=[`${r}-text`,this.themeClass,{[`${r}-text--code`]:this.code,[`${r}-text--delete`]:this.delete,[`${r}-text--strong`]:this.strong,[`${r}-text--italic`]:this.italic,[`${r}-text--underline`]:this.underline}],a=(n=this.$slots).default?.call(n);return this.code?e(`code`,{class:i,style:this.cssVars},this.delete?e(`del`,null,a):a):this.delete?e(`del`,{class:i,style:this.cssVars},a):e(this.compitableTag||`span`,{class:i,style:this.cssVars},a)}});export{f as t};
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import{w as e}from"./client-CT8bsOZT.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-BPUTdqiR.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{G as e,R as t,Z as n,m as r,w as i}from"./client-CT8bsOZT.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=t(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 e(()=>{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{G as e,R as t,Z as n,m as r,w as i}from"./client-BPUTdqiR.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=t(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 e(()=>{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{ot as e,w as t}from"./client-CT8bsOZT.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{ot as e,w as t}from"./client-BPUTdqiR.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{J as e,q as t,yt as n}from"./client-CT8bsOZT.js";function r(r,i=5e3){let a=n(!0),o=null,s=()=>{a.value=!0,r(),o=window.setInterval(r,i)},c=()=>{a.value=!1,o&&=(clearInterval(o),null)};return t(s),e(c),{isActive:a,start:s,stop:c}}export{r as t};
|
||||
import{J as e,q as t,yt as n}from"./client-BPUTdqiR.js";function r(r,i=5e3){let a=n(!0),o=null,s=()=>{a.value=!0,r(),o=window.setInterval(r,i)},c=()=>{a.value=!1,o&&=(clearInterval(o),null)};return t(s),e(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-Dw2jAfxR.js"></script>
|
||||
<link rel="modulepreload" crossorigin href="/assets/client-CT8bsOZT.js">
|
||||
<link rel="modulepreload" crossorigin href="/assets/light-DhgSQSdG.js">
|
||||
<link rel="modulepreload" crossorigin href="/assets/light-DW22zwJY.js">
|
||||
<script type="module" crossorigin src="/assets/index-GBc-6ZcB.js"></script>
|
||||
<link rel="modulepreload" crossorigin href="/assets/client-BPUTdqiR.js">
|
||||
<link rel="modulepreload" crossorigin href="/assets/light-CAboqKml.js">
|
||||
<link rel="modulepreload" crossorigin href="/assets/light-p8ayFy8X.js">
|
||||
<link rel="stylesheet" crossorigin href="/assets/index-CF62QB4P.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
-- +goose Up
|
||||
CREATE TABLE IF NOT EXISTS playlists (
|
||||
id SERIAL PRIMARY KEY,
|
||||
name VARCHAR(255) NOT NULL,
|
||||
created_at TIMESTAMP NOT NULL DEFAULT NOW(),
|
||||
updated_at TIMESTAMP NOT NULL DEFAULT NOW()
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS playlist_tracks (
|
||||
id SERIAL PRIMARY KEY,
|
||||
playlist_id INTEGER NOT NULL REFERENCES playlists(id) ON DELETE CASCADE,
|
||||
name VARCHAR(255) NOT NULL,
|
||||
filename TEXT NOT NULL UNIQUE,
|
||||
position INTEGER NOT NULL DEFAULT 0,
|
||||
created_at TIMESTAMP NOT NULL DEFAULT NOW()
|
||||
);
|
||||
|
||||
ALTER TABLE scenarios ADD COLUMN IF NOT EXISTS playlist_id INTEGER REFERENCES playlists(id) ON DELETE RESTRICT;
|
||||
ALTER TABLE games ADD COLUMN IF NOT EXISTS playlist_id INTEGER REFERENCES playlists(id) ON DELETE RESTRICT;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS game_music_states (
|
||||
game_id INTEGER PRIMARY KEY REFERENCES games(id) ON DELETE CASCADE,
|
||||
playlist_id INTEGER REFERENCES playlists(id) ON DELETE RESTRICT,
|
||||
track_index INTEGER NOT NULL DEFAULT 0,
|
||||
position_ms BIGINT NOT NULL DEFAULT 0,
|
||||
volume INTEGER NOT NULL DEFAULT 100,
|
||||
loop BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
playback INTEGER NOT NULL DEFAULT 1,
|
||||
state_version BIGINT NOT NULL DEFAULT 1,
|
||||
started_at TIMESTAMPTZ,
|
||||
updated_at TIMESTAMP NOT NULL DEFAULT NOW()
|
||||
);
|
||||
|
||||
-- +goose Down
|
||||
DROP TABLE IF EXISTS game_music_states;
|
||||
ALTER TABLE games DROP COLUMN IF EXISTS playlist_id;
|
||||
ALTER TABLE scenarios DROP COLUMN IF EXISTS playlist_id;
|
||||
DROP TABLE IF EXISTS playlist_tracks;
|
||||
DROP TABLE IF EXISTS playlists;
|
||||
Reference in New Issue
Block a user