generated from VLADIMIR/template_frontend
up
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import{I as e,M as t,b as n,ft as r,k as i}from"./client-DoYgjHB1.js";import{B as a,G as o,J as s,K as c,M as l,N as u,V as d,Y as f,Z as p,o as m,r as h,t as g}from"./light-DZR0fP_1.js";import{r as _}from"./css-DEmdllcC.js";import{a as v,r as y}from"./resolve-slot-DCSOtw1o.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-Bz8r5dyZ.js";function k(e){let{lineHeight:t,borderRadius:n,fontWeightStrong:r,baseColor:i,dividerColor:o,actionColor:s,textColor1:c,textColor2:l,closeColorHover:u,closeColorPressed:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,infoColor:g,successColor:_,warningColor:v,errorColor:y,fontSize:b}=e;return Object.assign(Object.assign({},x),{fontSize:b,lineHeight:t,titleFontWeight:r,borderRadius:n,border:`1px solid ${o}`,color:s,titleTextColor:c,iconColor:l,contentTextColor:l,closeBorderRadius:n,closeColorHover:u,closeColorPressed:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,borderInfo:`1px solid ${d(i,a(g,{alpha:.25}))}`,colorInfo:d(i,a(g,{alpha:.08})),titleTextColorInfo:c,iconColorInfo:g,contentTextColorInfo:l,closeColorHoverInfo:u,closeColorPressedInfo:f,closeIconColorInfo:p,closeIconColorHoverInfo:m,closeIconColorPressedInfo:h,borderSuccess:`1px solid ${d(i,a(_,{alpha:.25}))}`,colorSuccess:d(i,a(_,{alpha:.08})),titleTextColorSuccess:c,iconColorSuccess:_,contentTextColorSuccess:l,closeColorHoverSuccess:u,closeColorPressedSuccess:f,closeIconColorSuccess:p,closeIconColorHoverSuccess:m,closeIconColorPressedSuccess:h,borderWarning:`1px solid ${d(i,a(v,{alpha:.33}))}`,colorWarning:d(i,a(v,{alpha:.08})),titleTextColorWarning:c,iconColorWarning:v,contentTextColorWarning:l,closeColorHoverWarning:u,closeColorPressedWarning:f,closeIconColorWarning:p,closeIconColorHoverWarning:m,closeIconColorPressedWarning:h,borderError:`1px solid ${d(i,a(y,{alpha:.25}))}`,colorError:d(i,a(y,{alpha:.08})),titleTextColorError:c,iconColorError:y,contentTextColorError:l,closeColorHoverError:u,closeColorPressedError:f,closeIconColorError:p,closeIconColorHoverError:m,closeIconColorPressedError:h})}var A={name:`Alert`,common:g,self:k},j=c(`alert`,`
|
||||
import{I as e,M as t,b as n,ft as r,k as i}from"./client-DoYgjHB1.js";import{B as a,G as o,J as s,K as c,M as l,N as u,V as d,Y as f,Z as p,o as m,r as h,t as g}from"./light-DZR0fP_1.js";import{r as _}from"./css-DEmdllcC.js";import{a as v,r as y}from"./resolve-slot-DCSOtw1o.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-Di0MkZ8q.js";function k(e){let{lineHeight:t,borderRadius:n,fontWeightStrong:r,baseColor:i,dividerColor:o,actionColor:s,textColor1:c,textColor2:l,closeColorHover:u,closeColorPressed:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,infoColor:g,successColor:_,warningColor:v,errorColor:y,fontSize:b}=e;return Object.assign(Object.assign({},x),{fontSize:b,lineHeight:t,titleFontWeight:r,borderRadius:n,border:`1px solid ${o}`,color:s,titleTextColor:c,iconColor:l,contentTextColor:l,closeBorderRadius:n,closeColorHover:u,closeColorPressed:f,closeIconColor:p,closeIconColorHover:m,closeIconColorPressed:h,borderInfo:`1px solid ${d(i,a(g,{alpha:.25}))}`,colorInfo:d(i,a(g,{alpha:.08})),titleTextColorInfo:c,iconColorInfo:g,contentTextColorInfo:l,closeColorHoverInfo:u,closeColorPressedInfo:f,closeIconColorInfo:p,closeIconColorHoverInfo:m,closeIconColorPressedInfo:h,borderSuccess:`1px solid ${d(i,a(_,{alpha:.25}))}`,colorSuccess:d(i,a(_,{alpha:.08})),titleTextColorSuccess:c,iconColorSuccess:_,contentTextColorSuccess:l,closeColorHoverSuccess:u,closeColorPressedSuccess:f,closeIconColorSuccess:p,closeIconColorHoverSuccess:m,closeIconColorPressedSuccess:h,borderWarning:`1px solid ${d(i,a(v,{alpha:.33}))}`,colorWarning:d(i,a(v,{alpha:.08})),titleTextColorWarning:c,iconColorWarning:v,contentTextColorWarning:l,closeColorHoverWarning:u,closeColorPressedWarning:f,closeIconColorWarning:p,closeIconColorHoverWarning:m,closeIconColorPressedWarning:h,borderError:`1px solid ${d(i,a(y,{alpha:.25}))}`,colorError:d(i,a(y,{alpha:.08})),titleTextColorError:c,iconColorError:y,contentTextColorError:l,closeColorHoverError:u,closeColorPressedError:f,closeIconColorError:p,closeIconColorHoverError:m,closeIconColorPressedError:h})}var A={name:`Alert`,common:g,self:k},j=c(`alert`,`
|
||||
line-height: var(--n-line-height);
|
||||
border-radius: var(--n-border-radius);
|
||||
position: relative;
|
||||
@@ -1,4 +1,4 @@
|
||||
import{B as e,L as t,M as n,P as r,b as i,ft as a,ht as o,k as s}from"./client-DoYgjHB1.js";import{B as c,G as l,J as u,K as d,M as f,N as p,V as m,X as h,Y as g,Z as _,a as v,i as y,o as b,r as x,z as S}from"./light-DZR0fP_1.js";import{i as C,n as w,r as T}from"./use-form-item-D1cm0evg.js";import{a as E,n as D}from"./resolve-slot-DCSOtw1o.js";import{H as O,I as k,M as A,P as j,S as M,X as N}from"./index-Bz8r5dyZ.js";var P=typeof document<`u`&&typeof window<`u`,{cubicBezierEaseInOut:F}=v;function I({duration:e=`.2s`,delay:t=`.1s`}={}){return[l(`&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to`,{opacity:1}),l(`&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from`,`
|
||||
import{B as e,L as t,M as n,P as r,b as i,ft as a,ht as o,k as s}from"./client-DoYgjHB1.js";import{B as c,G as l,J as u,K as d,M as f,N as p,V as m,X as h,Y as g,Z as _,a as v,i as y,o as b,r as x,z as S}from"./light-DZR0fP_1.js";import{i as C,n as w,r as T}from"./use-form-item-D1cm0evg.js";import{a as E,n as D}from"./resolve-slot-DCSOtw1o.js";import{H as O,I as k,M as A,P as j,S as M,X as N}from"./index-Di0MkZ8q.js";var P=typeof document<`u`&&typeof window<`u`,{cubicBezierEaseInOut:F}=v;function I({duration:e=`.2s`,delay:t=`.1s`}={}){return[l(`&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to`,{opacity:1}),l(`&.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;
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
import{C as e,D as t,Ft as n,G as r,O as i,Pt as a,S as o,_t as s,ft as c,h as l,k as u,q as d,tt as f,u as p,w as m,x as h}from"./client-DoYgjHB1.js";import{t as g}from"./Tag-krvoQ2a3.js";import{t as _}from"./Rate-CxNyYxPO.js";import{n as v}from"./es-CozvMiB1.js";import{t as y}from"./HeaderMenu-BAfmMVYl.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={class:`scenario-label`},j=b(u({__name:`CatalogPage`,setup(u){let b=v(),j=c([]),M=p();async function N(){j.value=[];let e=await b.GetScenariosCatalog({});j.value=e.scenarios}async function P(e){M.push(`/scenarios/`+e)}return N(),(c,u)=>(r(),m(l,null,[h(`div`,x,[h(`div`,S,[(r(!0),m(l,null,d(j.value,c=>(r(),m(`div`,{class:`scenario-block`,onClick:e=>P(c.id),key:c.id},[h(`div`,{class:`scenario-image-block scenario-image`,style:a({backgroundImage:`url(${c.image})`})},null,4),h(`div`,w,[h(`p`,T,n(c.name),1),h(`p`,E,n(c.description),1),h(`div`,D,[c.reviewsCount?(r(),o(s(_),{key:0,value:c.averageRating,readonly:``,"allow-half":``,size:`small`},null,8,[`value`])):e(``,!0),c.reviewsCount?(r(),m(`span`,O,n(c.averageRating?.toFixed(1))+` · `+n(c.reviewsCount),1)):(r(),m(`span`,k,`Пока нет оценок`))]),h(`p`,A,[i(s(g),{bordered:!1,type:`success`,class:`status-block`},{default:f(()=>[t(`Автор: `+n(c.author?.username),1)]),_:2},1024)])])],8,C))),128))])]),i(y,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-a11b829e`]]),M=u({__name:`CatalogView`,setup(e){return(e,t)=>(r(),o(j))}});export{M as default};
|
||||
import{C as e,D as t,Ft as n,G as r,O as i,Pt as a,S as o,_t as s,ft as c,h as l,k as u,q as d,tt as f,u as p,w as m,x as h}from"./client-DoYgjHB1.js";import{t as g}from"./Tag-BTPoc9BR.js";import{t as _}from"./Rate-DV7TEAle.js";import{n as v}from"./es--ROG3QMY.js";import{t as y}from"./HeaderMenu-D_AsQLwA.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={class:`scenario-label`},j=b(u({__name:`CatalogPage`,setup(u){let b=v(),j=c([]),M=p();async function N(){j.value=[];let e=await b.GetScenariosCatalog({});j.value=e.scenarios}async function P(e){M.push(`/scenarios/`+e)}return N(),(c,u)=>(r(),m(l,null,[h(`div`,x,[h(`div`,S,[(r(!0),m(l,null,d(j.value,c=>(r(),m(`div`,{class:`scenario-block`,onClick:e=>P(c.id),key:c.id},[h(`div`,{class:`scenario-image-block scenario-image`,style:a({backgroundImage:`url(${c.image})`})},null,4),h(`div`,w,[h(`p`,T,n(c.name),1),h(`p`,E,n(c.description),1),h(`div`,D,[c.reviewsCount?(r(),o(s(_),{key:0,value:c.averageRating,readonly:``,"allow-half":``,size:`small`},null,8,[`value`])):e(``,!0),c.reviewsCount?(r(),m(`span`,O,n(c.averageRating?.toFixed(1))+` · `+n(c.reviewsCount),1)):(r(),m(`span`,k,`Пока нет оценок`))]),h(`p`,A,[i(s(g),{bordered:!1,type:`success`,class:`status-block`},{default:f(()=>[t(`Автор: `+n(c.author?.username),1)]),_:2},1024)])])],8,C))),128))])]),i(y,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-a11b829e`]]),M=u({__name:`CatalogView`,setup(e){return(e,t)=>(r(),o(j))}});export{M as default};
|
||||
@@ -1 +1 @@
|
||||
import{G as e,O as t,h as n,k as r,w as i}from"./client-DoYgjHB1.js";import{t as a}from"./DocsPage-BV1n3lGI.js";import{t as o}from"./HeaderMenu-BAfmMVYl.js";var s=r({__name:`ConsentView`,setup(r){return(r,s)=>(e(),i(n,null,[t(a,{kind:`consent`}),t(o)],64))}});export{s as default};
|
||||
import{G as e,O as t,h as n,k as r,w as i}from"./client-DoYgjHB1.js";import{t as a}from"./DocsPage-gUT56cSV.js";import{t as o}from"./HeaderMenu-D_AsQLwA.js";var s=r({__name:`ConsentView`,setup(r){return(r,s)=>(e(),i(n,null,[t(a,{kind:`consent`}),t(o)],64))}});export{s as default};
|
||||
@@ -1,4 +1,4 @@
|
||||
import{D as e,Ft as t,G as n,H as r,M as i,O as a,S as o,_t as s,a as c,b as l,et as u,ft as d,k as f,tt as p,w as m,x as h}from"./client-DoYgjHB1.js";import{G as g,K as _,M as v,N as y,Y as b,Z as x,r as S}from"./light-DZR0fP_1.js";import{i as C}from"./css-DEmdllcC.js";import{t as w}from"./use-compitable-DUNzxmzx.js";import{t as T}from"./fade-in.cssr-qzHauS5Q.js";import{t as E}from"./Alert-BQSdIWRk.js";import{M as D,N as O,Q as k,s as A}from"./index-Bz8r5dyZ.js";import{n as j}from"./es-CozvMiB1.js";import{t as M}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as N}from"./HeaderText-BO3DJgN2.js";var P=g([g(`@keyframes spin-rotate`,`
|
||||
import{D as e,Ft as t,G as n,H as r,M as i,O as a,S as o,_t as s,a as c,b as l,et as u,ft as d,k as f,tt as p,w as m,x as h}from"./client-DoYgjHB1.js";import{G as g,K as _,M as v,N as y,Y as b,Z as x,r as S}from"./light-DZR0fP_1.js";import{i as C}from"./css-DEmdllcC.js";import{t as w}from"./use-compitable-DUNzxmzx.js";import{t as T}from"./fade-in.cssr-qzHauS5Q.js";import{t as E}from"./Alert-C1an63_J.js";import{M as D,N as O,Q as k,s as A}from"./index-Di0MkZ8q.js";import{n as j}from"./es--ROG3QMY.js";import{t as M}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as N}from"./HeaderText-BO3DJgN2.js";var P=g([g(`@keyframes spin-rotate`,`
|
||||
from {
|
||||
transform: rotate(0);
|
||||
}
|
||||
@@ -1 +1 @@
|
||||
import{M as e,b as t,k as n}from"./client-DoYgjHB1.js";import{N as r,Z as i,o as a,r as o}from"./light-DZR0fP_1.js";import{n as s,t as c}from"./css-DEmdllcC.js";import{t as l}from"./flatten-C4-fSVx4.js";import{t as u}from"./get-slot-6kXJmSMP.js";import{u as d}from"./index-Bz8r5dyZ.js";function f(){return d}var p={name:`Flex`,self:f},m=n({name:`Flex`,props:Object.assign(Object.assign({},o.props),{align:String,justify:{type:String,default:`start`},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:`medium`},wrap:{type:Boolean,default:!0}}),setup(e){let{mergedClsPrefixRef:n,mergedRtlRef:l}=r(e),u=o(`Flex`,`-flex`,void 0,p,e,n);return{rtlEnabled:a(`Flex`,l,n),mergedClsPrefix:n,margin:t(()=>{let{size:t}=e;if(Array.isArray(t))return{horizontal:t[0],vertical:t[1]};if(typeof t==`number`)return{horizontal:t,vertical:t};let{self:{[i(`gap`,t)]:n}}=u.value,{row:r,col:a}=s(n);return{horizontal:c(a),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{M as e,b as t,k as n}from"./client-DoYgjHB1.js";import{N as r,Z as i,o as a,r as o}from"./light-DZR0fP_1.js";import{n as s,t as c}from"./css-DEmdllcC.js";import{t as l}from"./flatten-C4-fSVx4.js";import{t as u}from"./get-slot-6kXJmSMP.js";import{u as d}from"./index-Di0MkZ8q.js";function f(){return d}var p={name:`Flex`,self:f},m=n({name:`Flex`,props:Object.assign(Object.assign({},o.props),{align:String,justify:{type:String,default:`start`},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:`medium`},wrap:{type:Boolean,default:!0}}),setup(e){let{mergedClsPrefixRef:n,mergedRtlRef:l}=r(e),u=o(`Flex`,`-flex`,void 0,p,e,n);return{rtlEnabled:a(`Flex`,l,n),mergedClsPrefix:n,margin:t(()=>{let{size:t}=e;if(Array.isArray(t))return{horizontal:t[0],vertical:t[1]};if(typeof t==`number`)return{horizontal:t,vertical:t};let{self:{[i(`gap`,t)]:n}}=u.value,{row:r,col:a}=s(n);return{horizontal:c(a),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};
|
||||
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,4 +1,4 @@
|
||||
import{$ as e,C as t,D as n,Ft as r,G as i,L as a,M as o,Nt as s,O as c,Pt as l,S as u,_t as d,b as ee,ft as f,h as p,ht as m,k as h,l as te,nt as ne,q as g,r as _,tt as v,u as re,w as y,x as b}from"./client-DoYgjHB1.js";import{G as x,H as S,K as C,N as w,n as T,o as E,r as D,t as O}from"./light-DZR0fP_1.js";import{d as ie,t as k}from"./Card-D1xtzex8.js";import{i as ae}from"./Suffix-CweDIQwl.js";import{t as A}from"./Modal-0flEvZb9.js";import{t as oe}from"./use-merged-state-PkUq5wWw.js";import{n as j,t as M}from"./Button-Dzej_og6.js";import{t as se}from"./Select-qQc-s-Jr.js";import{n as ce,r as N}from"./use-form-item-D1cm0evg.js";import{a as P,r as F}from"./resolve-slot-DCSOtw1o.js";import{t as le}from"./Add-Cp_7glVg.js";import{t as I}from"./Input-HQTsb0aJ.js";import{t as L}from"./Remove-D_YfRvQB.js";import{t as ue}from"./Tag-krvoQ2a3.js";import{t as de}from"./use-message-CH6Y0DxJ.js";import{t as R}from"./Space-CwJJoc56.js";import{t as z}from"./Flex-CuaMurbs.js";import{t as fe}from"./Rate-CxNyYxPO.js";import{t as pe}from"./QrCode-CNcfWFbI.js";import{t as B}from"./text-SWlveBW6.js";import{S as V,U as me,X as H,rt as U,tt as he,w as ge}from"./index-Bz8r5dyZ.js";import{n as _e,t as W}from"./es-CozvMiB1.js";import{t as ve}from"./HeaderMenu-BAfmMVYl.js";import{t as G}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as ye}from"./Settings-CXV-JiOD.js";import{t as be}from"./binary_client-hS3kmoSE.js";import{t as xe}from"./useSimplePolling-RHmCyyzL.js";import{n as Se,r as Ce}from"./application-Tte6uFnl.js";import{n as we,t as Te}from"./datetime-BJNH0M1T.js";function Ee(e){let{textColorDisabled:t}=e;return{iconColorDisabled:t}}var De=T({name:`InputNumber`,common:O,peers:{Button:V,Input:ge},self:Ee}),Oe=x([C(`input-number-suffix`,`
|
||||
import{$ as e,C as t,D as n,Ft as r,G as i,L as a,M as o,Nt as s,O as c,Pt as l,S as u,_t as d,b as ee,ft as f,h as p,ht as m,k as h,l as te,nt as ne,q as g,r as _,tt as v,u as re,w as y,x as b}from"./client-DoYgjHB1.js";import{G as x,H as S,K as C,N as w,n as T,o as E,r as D,t as O}from"./light-DZR0fP_1.js";import{d as ie,t as k}from"./Card-Q5NdYl2h.js";import{i as ae}from"./Suffix-DEmbk3DZ.js";import{t as A}from"./Modal-Dt2Hb-mw.js";import{t as oe}from"./use-merged-state-PkUq5wWw.js";import{n as j,t as M}from"./Button-Cvs9km7Z.js";import{t as se}from"./Select-DrWfotQ_.js";import{n as ce,r as N}from"./use-form-item-D1cm0evg.js";import{a as P,r as F}from"./resolve-slot-DCSOtw1o.js";import{t as le}from"./Add-Cp_7glVg.js";import{t as I}from"./Input-Dimsc136.js";import{t as L}from"./Remove-D_YfRvQB.js";import{t as ue}from"./Tag-BTPoc9BR.js";import{t as de}from"./use-message-DJragLZf.js";import{t as R}from"./Space-DIxXvJ2a.js";import{t as z}from"./Flex-0Y5Tu0n6.js";import{t as fe}from"./Rate-DV7TEAle.js";import{t as pe}from"./QrCode-CNcfWFbI.js";import{t as B}from"./text-CHOxXKSh.js";import{S as V,U as me,X as H,rt as U,tt as he,w as ge}from"./index-Di0MkZ8q.js";import{n as _e,t as W}from"./es--ROG3QMY.js";import{t as ve}from"./HeaderMenu-D_AsQLwA.js";import{t as G}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as ye}from"./Settings-CXV-JiOD.js";import{t as be}from"./binary_client-Bxs-Qpak.js";import{t as xe}from"./useSimplePolling-RHmCyyzL.js";import{n as Se,r as Ce}from"./application-Tte6uFnl.js";import{n as we,t as Te}from"./datetime-BJNH0M1T.js";function Ee(e){let{textColorDisabled:t}=e;return{iconColorDisabled:t}}var De=T({name:`InputNumber`,common:O,peers:{Button:V,Input:ge},self:Ee}),Oe=x([C(`input-number-suffix`,`
|
||||
display: inline-block;
|
||||
margin-right: 10px;
|
||||
`),C(`input-number-prefix`,`
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
import{C as e,G as t,Nt as n,O as r,_t as i,ft as a,k as o,tt as s,u as c,w as l,x as u}from"./client-DoYgjHB1.js";import{t as d}from"./index-Bz8r5dyZ.js";import{n as f,t as p}from"./es-CozvMiB1.js";import{t as m}from"./_plugin-vue_export-helper-BDNMzG2s.js";var h={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},g=o({name:`MenuOutlined`,render:function(e,n){return t(),l(`svg`,h,n[0]||=[u(`path`,{d:`M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z`,fill:`currentColor`},null,-1)])}}),_={class:`menu-block`},v={class:`right-group`},y=m(o({__name:`HeaderMenu`,props:{active:{type:String,required:!1}},setup(o){let m=o,h=d(),y=c(),b=f(),x=a([]);async function S(){x.value=[];let e=await b.GetPermissions({});x.value=e.permissions}S();function C(e){return x.value.includes(e)}let w=()=>{y.push(`/login`)},T=()=>{h.logout(),y.push(`/login`)},E=a(!1);return(a,o)=>(t(),l(`div`,_,[u(`div`,{onClick:o[0]||=e=>E.value=!E.value,class:`burger-button`},[r(i(p),{class:`burger-icon`,size:`28`},{default:s(()=>[r(i(g))]),_:1})]),u(`div`,{class:n([`left-group menu-buttons-block`,E.value?``:`menu-buttons-block-active`])},[u(`div`,{class:n([`menu-item-block`,{active:m.active==`main`}]),onClick:o[1]||=e=>i(y).push(`/`)},` Главная `,2),i(h).hasRole(`user`)?(t(),l(`div`,{key:0,class:n([`menu-item-block`,{active:m.active==`office`}]),onClick:o[2]||=e=>i(y).push(`/office`)},` Кабинет `,2)):e(``,!0),C(`games_page`)?(t(),l(`div`,{key:1,class:n([`menu-item-block`,{active:m.active==`games`}]),onClick:o[3]||=e=>i(y).push(`/games`)},` Игры `,2)):e(``,!0),u(`div`,{class:n([`menu-item-block`,{active:m.active==`catalog`}]),onClick:o[4]||=e=>i(y).push(`/catalog`)},` Каталог `,2),C(`scenarios_page`)?(t(),l(`div`,{key:2,class:n([`menu-item-block`,{active:m.active==`scenarios`}]),onClick:o[5]||=e=>i(y).push(`/scenarios`)},` Мои сценарии `,2)):e(``,!0),C(`users_page`)?(t(),l(`div`,{key:3,class:n([`menu-item-block`,{active:m.active==`users`}]),onClick:o[6]||=e=>i(y).push(`/users`)},` Пользователи `,2)):e(``,!0),C(`reviews_page`)?(t(),l(`div`,{key:4,class:n([`menu-item-block`,{active:m.active==`reviews`}]),onClick:o[7]||=e=>i(y).push(`/reviews`)},` Отзывы `,2)):e(``,!0)],2),u(`div`,v,[i(h).isAuthenticated?e(``,!0):(t(),l(`div`,{key:0,class:`menu-item-block right`,onClick:w},` Войти `)),i(h).isAuthenticated?(t(),l(`div`,{key:1,class:`menu-item-block right`,onClick:T},` Выйти `)):e(``,!0)])]))}}),[[`__scopeId`,`data-v-f4b163cd`]]);export{y as t};
|
||||
import{C as e,G as t,Nt as n,O as r,_t as i,ft as a,k as o,tt as s,u as c,w as l,x as u}from"./client-DoYgjHB1.js";import{t as d}from"./index-Di0MkZ8q.js";import{n as f,t as p}from"./es--ROG3QMY.js";import{t as m}from"./_plugin-vue_export-helper-BDNMzG2s.js";var h={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},g=o({name:`MenuOutlined`,render:function(e,n){return t(),l(`svg`,h,n[0]||=[u(`path`,{d:`M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z`,fill:`currentColor`},null,-1)])}}),_={class:`menu-block`},v={class:`right-group`},y=m(o({__name:`HeaderMenu`,props:{active:{type:String,required:!1}},setup(o){let m=o,h=d(),y=c(),b=f(),x=a([]);async function S(){x.value=[];let e=await b.GetPermissions({});x.value=e.permissions}S();function C(e){return x.value.includes(e)}let w=()=>{y.push(`/login`)},T=()=>{h.logout(),y.push(`/login`)},E=a(!1);return(a,o)=>(t(),l(`div`,_,[u(`div`,{onClick:o[0]||=e=>E.value=!E.value,class:`burger-button`},[r(i(p),{class:`burger-icon`,size:`28`},{default:s(()=>[r(i(g))]),_:1})]),u(`div`,{class:n([`left-group menu-buttons-block`,E.value?``:`menu-buttons-block-active`])},[u(`div`,{class:n([`menu-item-block`,{active:m.active==`main`}]),onClick:o[1]||=e=>i(y).push(`/`)},` Главная `,2),i(h).hasRole(`user`)?(t(),l(`div`,{key:0,class:n([`menu-item-block`,{active:m.active==`office`}]),onClick:o[2]||=e=>i(y).push(`/office`)},` Кабинет `,2)):e(``,!0),C(`games_page`)?(t(),l(`div`,{key:1,class:n([`menu-item-block`,{active:m.active==`games`}]),onClick:o[3]||=e=>i(y).push(`/games`)},` Игры `,2)):e(``,!0),u(`div`,{class:n([`menu-item-block`,{active:m.active==`catalog`}]),onClick:o[4]||=e=>i(y).push(`/catalog`)},` Каталог `,2),C(`scenarios_page`)?(t(),l(`div`,{key:2,class:n([`menu-item-block`,{active:m.active==`scenarios`}]),onClick:o[5]||=e=>i(y).push(`/scenarios`)},` Мои сценарии `,2)):e(``,!0),C(`users_page`)?(t(),l(`div`,{key:3,class:n([`menu-item-block`,{active:m.active==`users`}]),onClick:o[6]||=e=>i(y).push(`/users`)},` Пользователи `,2)):e(``,!0),C(`reviews_page`)?(t(),l(`div`,{key:4,class:n([`menu-item-block`,{active:m.active==`reviews`}]),onClick:o[7]||=e=>i(y).push(`/reviews`)},` Отзывы `,2)):e(``,!0)],2),u(`div`,v,[i(h).isAuthenticated?e(``,!0):(t(),l(`div`,{key:0,class:`menu-item-block right`,onClick:w},` Войти `)),i(h).isAuthenticated?(t(),l(`div`,{key:1,class:`menu-item-block right`,onClick:T},` Выйти `)):e(``,!0)])]))}}),[[`__scopeId`,`data-v-f4b163cd`]]);export{y as t};
|
||||
@@ -1 +1 @@
|
||||
import{G as e,O as t,h as n,k as r,w as i,x as a}from"./client-DoYgjHB1.js";import{t as o}from"./HeaderMenu-BAfmMVYl.js";var s=r({__name:`HomeView`,setup(r){return(r,s)=>(e(),i(n,null,[s[0]||=a(`div`,{class:`center-block-custom content-block center-middle-block-custom height80`},[a(`div`,null,[a(`h1`,{class:`font-text`},`Вечерний детектив`),a(`h3`,{class:`font-text`},`Дело №0`),a(`p`,{class:`content-text`},`Поиграем?`)])],-1),t(o,{active:`main`})],64))}});export{s as default};
|
||||
import{G as e,O as t,h as n,k as r,w as i,x as a}from"./client-DoYgjHB1.js";import{t as o}from"./HeaderMenu-D_AsQLwA.js";var s=r({__name:`HomeView`,setup(r){return(r,s)=>(e(),i(n,null,[s[0]||=a(`div`,{class:`center-block-custom content-block center-middle-block-custom height80`},[a(`div`,null,[a(`h1`,{class:`font-text`},`Вечерний детектив`),a(`h3`,{class:`font-text`},`Дело №0`),a(`p`,{class:`content-text`},`Поиграем?`)])],-1),t(o,{active:`main`})],64))}});export{s as default};
|
||||
@@ -1,4 +1,4 @@
|
||||
import{$ as e,A as t,H as n,K as r,L as i,M as a,P as o,b as s,et as c,ft as l,h as u,ht as d,k as f}from"./client-DoYgjHB1.js";import{G as p,J as m,K as h,M as ee,N as te,X as g,Y as _,Z as v,i as ne,o as re,r as y,z as b}from"./light-DZR0fP_1.js";import{c as x,d as S,i as C,u as w}from"./Card-D1xtzex8.js";import{r as ie}from"./css-DEmdllcC.js";import{i as ae,r as T,t as E}from"./Suffix-CweDIQwl.js";import{t as oe}from"./use-merged-state-PkUq5wWw.js";import{i as se}from"./Button-Dzej_og6.js";import{n as ce,r as D}from"./use-form-item-D1cm0evg.js";import{a as O,i as k,r as A}from"./resolve-slot-DCSOtw1o.js";import{U as j,X as M,w as le}from"./index-Bz8r5dyZ.js";var N=f({name:`Eye`,render(){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},a(`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`}),a(`circle`,{cx:`256`,cy:`256`,r:`80`,fill:`none`,stroke:`currentColor`,"stroke-miterlimit":`10`,"stroke-width":`32`}))}}),P=f({name:`EyeOff`,render(){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},a(`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`}),a(`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`}),a(`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`}),a(`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`}),a(`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=b(`n-input`),ue=h(`input`,`
|
||||
import{$ as e,A as t,H as n,K as r,L as i,M as a,P as o,b as s,et as c,ft as l,h as u,ht as d,k as f}from"./client-DoYgjHB1.js";import{G as p,J as m,K as h,M as ee,N as te,X as g,Y as _,Z as v,i as ne,o as re,r as y,z as b}from"./light-DZR0fP_1.js";import{c as x,d as S,i as C,u as w}from"./Card-Q5NdYl2h.js";import{r as ie}from"./css-DEmdllcC.js";import{i as ae,r as T,t as E}from"./Suffix-DEmbk3DZ.js";import{t as oe}from"./use-merged-state-PkUq5wWw.js";import{i as se}from"./Button-Cvs9km7Z.js";import{n as ce,r as D}from"./use-form-item-D1cm0evg.js";import{a as O,i as k,r as A}from"./resolve-slot-DCSOtw1o.js";import{U as j,X as M,w as le}from"./index-Di0MkZ8q.js";var N=f({name:`Eye`,render(){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},a(`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`}),a(`circle`,{cx:`256`,cy:`256`,r:`80`,fill:`none`,stroke:`currentColor`,"stroke-miterlimit":`10`,"stroke-width":`32`}))}}),P=f({name:`EyeOff`,render(){return a(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},a(`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`}),a(`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`}),a(`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`}),a(`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`}),a(`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=b(`n-input`),ue=h(`input`,`
|
||||
max-width: 100%;
|
||||
cursor: text;
|
||||
line-height: 1.5;
|
||||
@@ -1,4 +1,4 @@
|
||||
import{$ as e,D as t,G as n,H as r,I as i,K as a,L as o,M as s,O as c,P as l,_t as u,b as d,et as f,ft as p,h as m,ht as h,k as g,nt as _,tt as v,u as y,w as b,x,y as S}from"./client-DoYgjHB1.js";import{$ as C,E as w,G as T,I as E,J as D,K as O,M as k,N as A,Q as j,R as M,X as N,Y as P,Z as F,j as I,o as L,r as R,z}from"./light-DZR0fP_1.js";import{a as B,i as V,l as ee,n as H,o as U,r as W,t as G}from"./Follower-8oWfBzRO.js";import{a as te,o as ne,t as re}from"./utils-C3XTAdFp.js";import{c as K,d as ie,f as ae,t as q}from"./Card-D1xtzex8.js";import{r as J,t as oe}from"./css-DEmdllcC.js";import{n as Y,s as se,u as ce}from"./Suffix-CweDIQwl.js";import{t as X}from"./use-merged-state-PkUq5wWw.js";import{t as le}from"./use-compitable-DUNzxmzx.js";import{t as Z}from"./Button-Dzej_og6.js";import{n as Q,r as $}from"./use-form-item-D1cm0evg.js";import{t as ue}from"./flatten-C4-fSVx4.js";import{a as de}from"./resolve-slot-DCSOtw1o.js";import{t as fe}from"./Add-Cp_7glVg.js";import{t as pe}from"./Input-HQTsb0aJ.js";import{t as me}from"./use-message-CH6Y0DxJ.js";import{t as he}from"./Space-CwJJoc56.js";import{$ as ge,C as _e,F as ve,H as ye,I as be,J as xe,K as Se,Q as Ce,U as we,X as Te,Y as Ee,Z as De,a as Oe,q as ke,t as Ae,tt as je,x as Me}from"./index-Bz8r5dyZ.js";import{t as Ne}from"./HeaderMenu-BAfmMVYl.js";import{t as Pe}from"./_plugin-vue_export-helper-BDNMzG2s.js";var Fe=H(`.v-x-scroll`,{overflow:`auto`,scrollbarWidth:`none`},[H(`&::-webkit-scrollbar`,{width:0,height:0})]),Ie=g({name:`XScroll`,props:{disabled:Boolean,onScroll:Function},setup(){let e=p(null);function t(e){!(e.currentTarget.offsetWidth<e.currentTarget.scrollWidth)||e.deltaY===0||(e.currentTarget.scrollLeft+=e.deltaY+e.deltaX,e.preventDefault())}let n=M();return Fe.mount({id:`vueuc/x-scroll`,head:!0,anchorMetaName:W,ssr:n}),Object.assign({selfRef:e,handleWheel:t},{scrollTo(...t){var n;(n=e.value)==null||n.scrollTo(...t)}})},render(){return s(`div`,{ref:`selfRef`,onScroll:this.onScroll,onWheel:this.disabled?void 0:this.handleWheel,class:`v-x-scroll`},this.$slots)}}),Le=/\s/;function Re(e){for(var t=e.length;t--&&Le.test(e.charAt(t)););return t}var ze=/^\s+/;function Be(e){return e&&e.slice(0,Re(e)+1).replace(ze,``)}var Ve=NaN,He=/^[-+]0x[0-9a-f]+$/i,Ue=/^0b[01]+$/i,We=/^0o[0-7]+$/i,Ge=parseInt;function Ke(e){if(typeof e==`number`)return e;if(Se(e))return Ve;if(w(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=w(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=Be(e);var n=Ue.test(e);return n||We.test(e)?Ge(e.slice(2),n?2:8):He.test(e)?Ve:+e}var qe=function(){return I.Date.now()},Je=`Expected a function`,Ye=Math.max,Xe=Math.min;function Ze(e,t,n){var r,i,a,o,s,c,l=0,u=!1,d=!1,f=!0;if(typeof e!=`function`)throw TypeError(Je);t=Ke(t)||0,w(n)&&(u=!!n.leading,d=`maxWait`in n,a=d?Ye(Ke(n.maxWait)||0,t):a,f=`trailing`in n?!!n.trailing:f);function p(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n),o}function m(e){return l=e,s=setTimeout(_,t),u?p(e):o}function h(e){var n=e-c,r=e-l,i=t-n;return d?Xe(i,a-r):i}function g(e){var n=e-c,r=e-l;return c===void 0||n>=t||n<0||d&&r>=a}function _(){var e=qe();if(g(e))return v(e);s=setTimeout(_,h(e))}function v(e){return s=void 0,f&&r?p(e):(r=i=void 0,o)}function y(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0}function b(){return s===void 0?o:v(qe())}function x(){var e=qe(),n=g(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return m(c);if(d)return clearTimeout(s),s=setTimeout(_,t),p(c)}return s===void 0&&(s=setTimeout(_,t)),o}return x.cancel=y,x.flush=b,x}var Qe=`Expected a function`;function $e(e,t,n){var r=!0,i=!0;if(typeof e!=`function`)throw TypeError(Qe);return w(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),Ze(e,t,{leading:r,maxWait:t,trailing:i})}var et=T([O(`auto-complete`,`
|
||||
import{$ as e,D as t,G as n,H as r,I as i,K as a,L as o,M as s,O as c,P as l,_t as u,b as d,et as f,ft as p,h as m,ht as h,k as g,nt as _,tt as v,u as y,w as b,x,y as S}from"./client-DoYgjHB1.js";import{$ as C,E as w,G as T,I as E,J as D,K as O,M as k,N as A,Q as j,R as M,X as N,Y as P,Z as F,j as I,o as L,r as R,z}from"./light-DZR0fP_1.js";import{a as B,i as V,l as ee,n as H,o as U,r as W,t as G}from"./Follower-Cdt60izR.js";import{a as te,o as ne,t as re}from"./utils-bb31Nybp.js";import{c as K,d as ie,f as ae,t as q}from"./Card-Q5NdYl2h.js";import{r as J,t as oe}from"./css-DEmdllcC.js";import{n as Y,s as se,u as ce}from"./Suffix-DEmbk3DZ.js";import{t as X}from"./use-merged-state-PkUq5wWw.js";import{t as le}from"./use-compitable-DUNzxmzx.js";import{t as Z}from"./Button-Cvs9km7Z.js";import{n as Q,r as $}from"./use-form-item-D1cm0evg.js";import{t as ue}from"./flatten-C4-fSVx4.js";import{a as de}from"./resolve-slot-DCSOtw1o.js";import{t as fe}from"./Add-Cp_7glVg.js";import{t as pe}from"./Input-Dimsc136.js";import{t as me}from"./use-message-DJragLZf.js";import{t as he}from"./Space-DIxXvJ2a.js";import{$ as ge,C as _e,F as ve,H as ye,I as be,J as xe,K as Se,Q as Ce,U as we,X as Te,Y as Ee,Z as De,a as Oe,q as ke,t as Ae,tt as je,x as Me}from"./index-Di0MkZ8q.js";import{t as Ne}from"./HeaderMenu-D_AsQLwA.js";import{t as Pe}from"./_plugin-vue_export-helper-BDNMzG2s.js";var Fe=H(`.v-x-scroll`,{overflow:`auto`,scrollbarWidth:`none`},[H(`&::-webkit-scrollbar`,{width:0,height:0})]),Ie=g({name:`XScroll`,props:{disabled:Boolean,onScroll:Function},setup(){let e=p(null);function t(e){!(e.currentTarget.offsetWidth<e.currentTarget.scrollWidth)||e.deltaY===0||(e.currentTarget.scrollLeft+=e.deltaY+e.deltaX,e.preventDefault())}let n=M();return Fe.mount({id:`vueuc/x-scroll`,head:!0,anchorMetaName:W,ssr:n}),Object.assign({selfRef:e,handleWheel:t},{scrollTo(...t){var n;(n=e.value)==null||n.scrollTo(...t)}})},render(){return s(`div`,{ref:`selfRef`,onScroll:this.onScroll,onWheel:this.disabled?void 0:this.handleWheel,class:`v-x-scroll`},this.$slots)}}),Le=/\s/;function Re(e){for(var t=e.length;t--&&Le.test(e.charAt(t)););return t}var ze=/^\s+/;function Be(e){return e&&e.slice(0,Re(e)+1).replace(ze,``)}var Ve=NaN,He=/^[-+]0x[0-9a-f]+$/i,Ue=/^0b[01]+$/i,We=/^0o[0-7]+$/i,Ge=parseInt;function Ke(e){if(typeof e==`number`)return e;if(Se(e))return Ve;if(w(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=w(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=Be(e);var n=Ue.test(e);return n||We.test(e)?Ge(e.slice(2),n?2:8):He.test(e)?Ve:+e}var qe=function(){return I.Date.now()},Je=`Expected a function`,Ye=Math.max,Xe=Math.min;function Ze(e,t,n){var r,i,a,o,s,c,l=0,u=!1,d=!1,f=!0;if(typeof e!=`function`)throw TypeError(Je);t=Ke(t)||0,w(n)&&(u=!!n.leading,d=`maxWait`in n,a=d?Ye(Ke(n.maxWait)||0,t):a,f=`trailing`in n?!!n.trailing:f);function p(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n),o}function m(e){return l=e,s=setTimeout(_,t),u?p(e):o}function h(e){var n=e-c,r=e-l,i=t-n;return d?Xe(i,a-r):i}function g(e){var n=e-c,r=e-l;return c===void 0||n>=t||n<0||d&&r>=a}function _(){var e=qe();if(g(e))return v(e);s=setTimeout(_,h(e))}function v(e){return s=void 0,f&&r?p(e):(r=i=void 0,o)}function y(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0}function b(){return s===void 0?o:v(qe())}function x(){var e=qe(),n=g(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return m(c);if(d)return clearTimeout(s),s=setTimeout(_,t),p(c)}return s===void 0&&(s=setTimeout(_,t)),o}return x.cancel=y,x.flush=b,x}var Qe=`Expected a function`;function $e(e,t,n){var r=!0,i=!0;if(typeof e!=`function`)throw TypeError(Qe);return w(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),Ze(e,t,{leading:r,maxWait:t,trailing:i})}var et=T([O(`auto-complete`,`
|
||||
z-index: auto;
|
||||
position: relative;
|
||||
display: inline-flex;
|
||||
@@ -1,4 +1,4 @@
|
||||
import{$ as e,B as t,H as n,I as r,K as i,L as a,M as o,Nt as s,P as c,U as l,b as u,dt as d,ft as f,ht as p,k as m,nt as h,y as g,z as _}from"./client-DoYgjHB1.js";import{G as v,J as y,K as b,L as x,M as S,N as C,Q as w,W as T,Y as E,Z as D,o as O,r as k,z as A}from"./light-DZR0fP_1.js";import{d as j,f as ee,i as te,n as ne,r as re,s as M,t as ie,u as N}from"./Card-D1xtzex8.js";import{r as ae}from"./css-DEmdllcC.js";import{_ as oe,c as se,g as ce,h as le,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-CweDIQwl.js";import{a as ge,t as I}from"./Button-Dzej_og6.js";import{i as _e,n as ve,t as L}from"./keep-86TT3qDj.js";import{r as R}from"./use-form-item-D1cm0evg.js";import{a as z,r as B}from"./resolve-slot-DCSOtw1o.js";import{t as ye}from"./fade-in.cssr-qzHauS5Q.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 Oe}from"./index-Bz8r5dyZ.js";var W=f(null);function ke(e){if(e.clientX>0||e.clientY>0)W.value={x:e.clientX,y:e.clientY};else{let{target:t}=e;if(t instanceof Element){let{left:e,top:n,width:r,height:i}=t.getBoundingClientRect();e>0||n>0?W.value={x:e+r/2,y:n+i/2}:W.value={x:0,y:0}}else W.value=null}}var G=0,Ae=!0;function je(){if(!F)return d(f(null));G===0&&j(`click`,document,ke,!0);let e=()=>{G+=1};return(Ae&&=P())?(_(e),t(()=>{--G,G===0&&N(`click`,document,ke,!0)})):e(),d(W)}var Me=f(void 0),K=0;function Ne(){Me.value=Date.now()}var Pe=!0;function Fe(e){if(!F)return d(f(!1));let n=f(!1),r=null;function i(){r!==null&&window.clearTimeout(r)}function a(){i(),n.value=!0,r=window.setTimeout(()=>{n.value=!1},e)}K===0&&j(`click`,window,Ne,!0);let o=()=>{K+=1,j(`click`,window,a,!0)};return(Pe&&=P())?(_(o),t(()=>{--K,K===0&&N(`click`,window,Ne,!0),N(`click`,window,a,!0),i()})):o(),d(n)}var q=f(!1);function Ie(){q.value=!0}function Le(){q.value=!1}var J=0;function Re(){return ge&&(_(()=>{J||(window.addEventListener(`compositionstart`,Ie),window.addEventListener(`compositionend`,Le)),J++}),t(()=>{J<=1?(window.removeEventListener(`compositionstart`,Ie),window.removeEventListener(`compositionend`,Le),J=0):J--})),q}var Y=0,ze=``,Be=``,Ve=``,He=``,X=f(`0px`);function Ue(r){if(typeof document>`u`)return;let i=document.documentElement,a,o=!1,s=()=>{i.style.marginRight=ze,i.style.overflow=Be,i.style.overflowX=Ve,i.style.overflowY=He,X.value=`0px`};n(()=>{a=e(r,e=>{if(e){if(!Y){let e=window.innerWidth-i.offsetWidth;e>0&&(ze=i.style.marginRight,i.style.marginRight=`${e}px`,X.value=`${e}px`),Be=i.style.overflow,Ve=i.style.overflowX,He=i.style.overflowY,i.style.overflow=`hidden`,i.style.overflowX=`hidden`,i.style.overflowY=`hidden`}o=!0,Y++}else Y--,Y||s(),o=!1},{immediate:!0})}),t(()=>{a?.(),o&&=(Y--,Y||s(),!1)})}var We=A(`n-dialog-provider`);A(`n-dialog-api`),A(`n-dialog-reactive-list`);var Z={icon:Function,type:{type:String,default:`default`},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,titleClass:[String,Array],titleStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],actionClass:[String,Array],actionStyle:[String,Object],onPositiveClick:Function,onNegativeClick:Function,onClose:Function,closeFocusable:Boolean},Ge=M(Z),Ke=v([b(`dialog`,`
|
||||
import{$ as e,B as t,H as n,I as r,K as i,L as a,M as o,Nt as s,P as c,U as l,b as u,dt as d,ft as f,ht as p,k as m,nt as h,y as g,z as _}from"./client-DoYgjHB1.js";import{G as v,J as y,K as b,L as x,M as S,N as C,Q as w,W as T,Y as E,Z as D,o as O,r as k,z as A}from"./light-DZR0fP_1.js";import{d as j,f as ee,i as te,n as ne,r as re,s as M,t as ie,u as N}from"./Card-Q5NdYl2h.js";import{r as ae}from"./css-DEmdllcC.js";import{_ as oe,c as se,g as ce,h as le,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-DEmbk3DZ.js";import{a as ge,t as I}from"./Button-Cvs9km7Z.js";import{i as _e,n as ve,t as L}from"./keep-DCcprcNo.js";import{r as R}from"./use-form-item-D1cm0evg.js";import{a as z,r as B}from"./resolve-slot-DCSOtw1o.js";import{t as ye}from"./fade-in.cssr-qzHauS5Q.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 Oe}from"./index-Di0MkZ8q.js";var W=f(null);function ke(e){if(e.clientX>0||e.clientY>0)W.value={x:e.clientX,y:e.clientY};else{let{target:t}=e;if(t instanceof Element){let{left:e,top:n,width:r,height:i}=t.getBoundingClientRect();e>0||n>0?W.value={x:e+r/2,y:n+i/2}:W.value={x:0,y:0}}else W.value=null}}var G=0,Ae=!0;function je(){if(!F)return d(f(null));G===0&&j(`click`,document,ke,!0);let e=()=>{G+=1};return(Ae&&=P())?(_(e),t(()=>{--G,G===0&&N(`click`,document,ke,!0)})):e(),d(W)}var Me=f(void 0),K=0;function Ne(){Me.value=Date.now()}var Pe=!0;function Fe(e){if(!F)return d(f(!1));let n=f(!1),r=null;function i(){r!==null&&window.clearTimeout(r)}function a(){i(),n.value=!0,r=window.setTimeout(()=>{n.value=!1},e)}K===0&&j(`click`,window,Ne,!0);let o=()=>{K+=1,j(`click`,window,a,!0)};return(Pe&&=P())?(_(o),t(()=>{--K,K===0&&N(`click`,window,Ne,!0),N(`click`,window,a,!0),i()})):o(),d(n)}var q=f(!1);function Ie(){q.value=!0}function Le(){q.value=!1}var J=0;function Re(){return ge&&(_(()=>{J||(window.addEventListener(`compositionstart`,Ie),window.addEventListener(`compositionend`,Le)),J++}),t(()=>{J<=1?(window.removeEventListener(`compositionstart`,Ie),window.removeEventListener(`compositionend`,Le),J=0):J--})),q}var Y=0,ze=``,Be=``,Ve=``,He=``,X=f(`0px`);function Ue(r){if(typeof document>`u`)return;let i=document.documentElement,a,o=!1,s=()=>{i.style.marginRight=ze,i.style.overflow=Be,i.style.overflowX=Ve,i.style.overflowY=He,X.value=`0px`};n(()=>{a=e(r,e=>{if(e){if(!Y){let e=window.innerWidth-i.offsetWidth;e>0&&(ze=i.style.marginRight,i.style.marginRight=`${e}px`,X.value=`${e}px`),Be=i.style.overflow,Ve=i.style.overflowX,He=i.style.overflowY,i.style.overflow=`hidden`,i.style.overflowX=`hidden`,i.style.overflowY=`hidden`}o=!0,Y++}else Y--,Y||s(),o=!1},{immediate:!0})}),t(()=>{a?.(),o&&=(Y--,Y||s(),!1)})}var We=A(`n-dialog-provider`);A(`n-dialog-api`),A(`n-dialog-reactive-list`);var Z={icon:Function,type:{type:String,default:`default`},title:[String,Function],closable:{type:Boolean,default:!0},negativeText:String,positiveText:String,positiveButtonProps:Object,negativeButtonProps:Object,content:[String,Function],action:Function,showIcon:{type:Boolean,default:!0},loading:Boolean,bordered:Boolean,iconPlacement:String,titleClass:[String,Array],titleStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],actionClass:[String,Array],actionStyle:[String,Object],onPositiveClick:Function,onNegativeClick:Function,onClose:Function,closeFocusable:Boolean},Ge=M(Z),Ke=v([b(`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);
|
||||
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
||||
import{C as e,D as t,Ft as n,G as r,H as i,O as a,S as o,_t as s,ft as c,h as l,k as u,l as d,t as f,tt as p,w as m,x as h}from"./client-DoYgjHB1.js";import{t as g}from"./Card-D1xtzex8.js";import{t as _}from"./Button-Dzej_og6.js";import{t as v}from"./use-message-CH6Y0DxJ.js";import{t as y}from"./Space-CwJJoc56.js";import{t as b}from"./index-Bz8r5dyZ.js";import{t as x}from"./HeaderMenu-BAfmMVYl.js";import{t as S}from"./datetime-BJNH0M1T.js";var C={class:`center-block-custom`},w={class:`width700`},T={key:0,role:`alert`},E={key:0,role:`status`},D={key:1,role:`status`},O={key:2},k=u({__name:`ParticipationPage`,setup(u){let k=d(),A=new URLSearchParams(k.hash.slice(1)),j=A.get(`token`)||``,M=c(A.get(`answer`)===`cancelled`?`cancelled`:`confirmed`),N=f(),P=b(),F=v(),I=c(),L=c(!1),R=c(``);async function z(){L.value=!0,R.value=``;try{let e=await N.GetParticipation({token:j});if(e.error){R.value=e.error,F.error(e.error);return}I.value=e}catch{R.value=`Не удалось загрузить данные. Попробуйте ещё раз.`}finally{L.value=!1}}async function B(){if(!L.value){L.value=!0,R.value=``;try{let e=await N.AnswerParticipation({token:j,answer:M.value});e.status&&(I.value=e),e.error&&(R.value=e.error,F.error(e.error))}catch{R.value=`Не удалось сохранить ответ. Попробуйте ещё раз.`}finally{L.value=!1}}}return i(z),(i,c)=>(r(),m(l,null,[s(P).isAuthenticated?(r(),o(x,{key:0})):e(``,!0),h(`div`,C,[h(`div`,w,[a(s(g),{title:`Участие в игре`},{default:p(()=>[R.value?(r(),m(`p`,T,n(R.value),1)):e(``,!0),I.value?(r(),m(l,{key:1},[h(`h2`,null,n(I.value.gameName),1),h(`p`,null,`Команда: `+n(I.value.teamName),1),h(`p`,null,`Начало: `+n(s(S)(I.value.startAt)),1),h(`p`,null,`Участников: `+n(I.value.participantsCount),1),I.value.status===`confirmed`?(r(),m(`p`,E,` Участие подтверждено. Ждём вас на игре! Решение окончательное. `)):I.value.status===`cancelled`?(r(),m(`p`,D,` Запись отменена. Решение окончательное. `)):I.value.closed?(r(),m(`p`,O,` Приём ответов закрыт. Ваша запись сохранена со статусом «Ожидает ответа». `)):(r(),m(l,{key:3},[c[4]||=h(`p`,null,[h(`strong`,null,`Решение окончательное: изменить его нельзя.`)],-1),c[5]||=h(`p`,null,`Без ответа запись сохраняется со статусом «Ожидает ответа».`,-1),a(s(y),{vertical:``},{default:p(()=>[a(s(y),null,{default:p(()=>[a(s(_),{disabled:L.value,type:M.value===`confirmed`?`primary`:`default`,"aria-pressed":M.value===`confirmed`,onClick:c[0]||=e=>M.value=`confirmed`},{default:p(()=>[...c[2]||=[t(`Мы участвуем`,-1)]]),_:1},8,[`disabled`,`type`,`aria-pressed`]),a(s(_),{disabled:L.value,type:M.value===`cancelled`?`error`:`default`,"aria-pressed":M.value===`cancelled`,onClick:c[1]||=e=>M.value=`cancelled`},{default:p(()=>[...c[3]||=[t(`Мы не участвуем`,-1)]]),_:1},8,[`disabled`,`type`,`aria-pressed`])]),_:1}),a(s(_),{loading:L.value,disabled:L.value,type:M.value===`cancelled`?`error`:`primary`,onClick:B},{default:p(()=>[t(n(M.value===`confirmed`?`Подтверждаю участие`:`Подтверждаю отмену`),1)]),_:1},8,[`loading`,`disabled`,`type`])]),_:1})],64))],64)):(r(),o(s(_),{key:2,loading:L.value,onClick:z},{default:p(()=>[t(n(L.value?`Загрузка`:`Повторить`),1)]),_:1},8,[`loading`]))]),_:1})])])],64))}}),A=u({__name:`ParticipationView`,setup(e){return(e,t)=>(r(),o(k))}});export{A as default};
|
||||
import{C as e,D as t,Ft as n,G as r,H as i,O as a,S as o,_t as s,ft as c,h as l,k as u,l as d,t as f,tt as p,w as m,x as h}from"./client-DoYgjHB1.js";import{t as g}from"./Card-Q5NdYl2h.js";import{t as _}from"./Button-Cvs9km7Z.js";import{t as v}from"./use-message-DJragLZf.js";import{t as y}from"./Space-DIxXvJ2a.js";import{t as b}from"./index-Di0MkZ8q.js";import{t as x}from"./HeaderMenu-D_AsQLwA.js";import{t as S}from"./datetime-BJNH0M1T.js";var C={class:`center-block-custom`},w={class:`width700`},T={key:0,role:`alert`},E={key:0,role:`status`},D={key:1,role:`status`},O={key:2},k=u({__name:`ParticipationPage`,setup(u){let k=d(),A=new URLSearchParams(k.hash.slice(1)),j=A.get(`token`)||``,M=c(A.get(`answer`)===`cancelled`?`cancelled`:`confirmed`),N=f(),P=b(),F=v(),I=c(),L=c(!1),R=c(``);async function z(){L.value=!0,R.value=``;try{let e=await N.GetParticipation({token:j});if(e.error){R.value=e.error,F.error(e.error);return}I.value=e}catch{R.value=`Не удалось загрузить данные. Попробуйте ещё раз.`}finally{L.value=!1}}async function B(){if(!L.value){L.value=!0,R.value=``;try{let e=await N.AnswerParticipation({token:j,answer:M.value});e.status&&(I.value=e),e.error&&(R.value=e.error,F.error(e.error))}catch{R.value=`Не удалось сохранить ответ. Попробуйте ещё раз.`}finally{L.value=!1}}}return i(z),(i,c)=>(r(),m(l,null,[s(P).isAuthenticated?(r(),o(x,{key:0})):e(``,!0),h(`div`,C,[h(`div`,w,[a(s(g),{title:`Участие в игре`},{default:p(()=>[R.value?(r(),m(`p`,T,n(R.value),1)):e(``,!0),I.value?(r(),m(l,{key:1},[h(`h2`,null,n(I.value.gameName),1),h(`p`,null,`Команда: `+n(I.value.teamName),1),h(`p`,null,`Начало: `+n(s(S)(I.value.startAt)),1),h(`p`,null,`Участников: `+n(I.value.participantsCount),1),I.value.status===`confirmed`?(r(),m(`p`,E,` Участие подтверждено. Ждём вас на игре! Решение окончательное. `)):I.value.status===`cancelled`?(r(),m(`p`,D,` Запись отменена. Решение окончательное. `)):I.value.closed?(r(),m(`p`,O,` Приём ответов закрыт. Ваша запись сохранена со статусом «Ожидает ответа». `)):(r(),m(l,{key:3},[c[4]||=h(`p`,null,[h(`strong`,null,`Решение окончательное: изменить его нельзя.`)],-1),c[5]||=h(`p`,null,`Без ответа запись сохраняется со статусом «Ожидает ответа».`,-1),a(s(y),{vertical:``},{default:p(()=>[a(s(y),null,{default:p(()=>[a(s(_),{disabled:L.value,type:M.value===`confirmed`?`primary`:`default`,"aria-pressed":M.value===`confirmed`,onClick:c[0]||=e=>M.value=`confirmed`},{default:p(()=>[...c[2]||=[t(`Мы участвуем`,-1)]]),_:1},8,[`disabled`,`type`,`aria-pressed`]),a(s(_),{disabled:L.value,type:M.value===`cancelled`?`error`:`default`,"aria-pressed":M.value===`cancelled`,onClick:c[1]||=e=>M.value=`cancelled`},{default:p(()=>[...c[3]||=[t(`Мы не участвуем`,-1)]]),_:1},8,[`disabled`,`type`,`aria-pressed`])]),_:1}),a(s(_),{loading:L.value,disabled:L.value,type:M.value===`cancelled`?`error`:`primary`,onClick:B},{default:p(()=>[t(n(M.value===`confirmed`?`Подтверждаю участие`:`Подтверждаю отмену`),1)]),_:1},8,[`loading`,`disabled`,`type`])]),_:1})],64))],64)):(r(),o(s(_),{key:2,loading:L.value,onClick:z},{default:p(()=>[t(n(L.value?`Загрузка`:`Повторить`),1)]),_:1},8,[`loading`]))]),_:1})])])],64))}}),A=u({__name:`ParticipationView`,setup(e){return(e,t)=>(r(),o(k))}});export{A as default};
|
||||
@@ -1,4 +1,4 @@
|
||||
import{C as e,D as t,E as n,Ft as r,G as i,J as a,K as o,M as s,Nt as c,O as l,P as u,Pt as d,S as f,_t as p,at as m,b as h,ft as g,h as _,ht as v,k as y,mt as b,q as x,r as S,tt as C,w,x as T}from"./client-DoYgjHB1.js";import{B as E,G as D,J as O,K as k,M as A,N as j,X as M,Y as N,Z as P,i as ee,n as te,o as F,r as I,t as ne,z as L}from"./light-DZR0fP_1.js";import{t as re}from"./Card-D1xtzex8.js";import{i as R,t as z}from"./css-DEmdllcC.js";import{i as ie}from"./Suffix-CweDIQwl.js";import{t as ae}from"./Modal-0flEvZb9.js";import{t as oe}from"./use-merged-state-PkUq5wWw.js";import{r as se,t as B}from"./Button-Dzej_og6.js";import{n as ce,r as V,t as le}from"./use-form-item-D1cm0evg.js";import{n as ue,t as de}from"./Upload-CBQ3lNR7.js";import{a as H,i as fe,n as pe,r as me}from"./resolve-slot-DCSOtw1o.js";import{t as he}from"./Add-Cp_7glVg.js";import{t as U}from"./Input-HQTsb0aJ.js";import{t as ge}from"./Remove-D_YfRvQB.js";import{t as _e}from"./Tag-krvoQ2a3.js";import{t as W}from"./Space-CwJJoc56.js";import{t as G}from"./text-SWlveBW6.js";import{H as ve,I as ye,M as be,S as xe,U as K,Z as Se,f as Ce,o as we,rt as q,w as Te}from"./index-Bz8r5dyZ.js";import{t as Ee}from"./es-CozvMiB1.js";import{t as De}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as J,r as Y,t as Oe}from"./application-Tte6uFnl.js";import{t as ke}from"./MessagePaper-B2utHh61.js";var Ae=y({name:`ArrowDown`,render(){return s(`svg`,{viewBox:`0 0 28 28`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},s(`g`,{stroke:`none`,"stroke-width":`1`,"fill-rule":`evenodd`},s(`g`,{"fill-rule":`nonzero`},s(`path`,{d:`M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z`}))))}}),je=y({name:`ArrowUp`,render(){return s(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`},s(`g`,{fill:`none`},s(`path`,{d:`M3.13 9.163a.5.5 0 1 0 .74.674L9.5 3.67V17.5a.5.5 0 0 0 1 0V3.672l5.63 6.165a.5.5 0 0 0 .738-.674l-6.315-6.916a.746.746 0 0 0-.632-.24a.746.746 0 0 0-.476.24L3.131 9.163z`,fill:`currentColor`})))}}),Me=k(`input-group`,`
|
||||
import{C as e,D as t,E as n,Ft as r,G as i,J as a,K as o,M as s,Nt as c,O as l,P as u,Pt as d,S as f,_t as p,at as m,b as h,ft as g,h as _,ht as v,k as y,mt as b,q as x,r as S,tt as C,w,x as T}from"./client-DoYgjHB1.js";import{B as E,G as D,J as O,K as k,M as A,N as j,X as M,Y as N,Z as P,i as ee,n as te,o as F,r as I,t as ne,z as L}from"./light-DZR0fP_1.js";import{t as re}from"./Card-Q5NdYl2h.js";import{i as R,t as z}from"./css-DEmdllcC.js";import{i as ie}from"./Suffix-DEmbk3DZ.js";import{t as ae}from"./Modal-Dt2Hb-mw.js";import{t as oe}from"./use-merged-state-PkUq5wWw.js";import{r as se,t as B}from"./Button-Cvs9km7Z.js";import{n as ce,r as V,t as le}from"./use-form-item-D1cm0evg.js";import{n as ue,t as de}from"./Upload-BiYGULOi.js";import{a as H,i as fe,n as pe,r as me}from"./resolve-slot-DCSOtw1o.js";import{t as he}from"./Add-Cp_7glVg.js";import{t as U}from"./Input-Dimsc136.js";import{t as ge}from"./Remove-D_YfRvQB.js";import{t as _e}from"./Tag-BTPoc9BR.js";import{t as W}from"./Space-DIxXvJ2a.js";import{t as G}from"./text-CHOxXKSh.js";import{H as ve,I as ye,M as be,S as xe,U as K,Z as Se,f as Ce,o as we,rt as q,w as Te}from"./index-Di0MkZ8q.js";import{t as Ee}from"./es--ROG3QMY.js";import{t as De}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{n as J,r as Y,t as Oe}from"./application-Tte6uFnl.js";import{t as ke}from"./MessagePaper-B2utHh61.js";var Ae=y({name:`ArrowDown`,render(){return s(`svg`,{viewBox:`0 0 28 28`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},s(`g`,{stroke:`none`,"stroke-width":`1`,"fill-rule":`evenodd`},s(`g`,{"fill-rule":`nonzero`},s(`path`,{d:`M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z`}))))}}),je=y({name:`ArrowUp`,render(){return s(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`},s(`g`,{fill:`none`},s(`path`,{d:`M3.13 9.163a.5.5 0 1 0 .74.674L9.5 3.67V17.5a.5.5 0 0 0 1 0V3.672l5.63 6.165a.5.5 0 0 0 .738-.674l-6.315-6.916a.746.746 0 0 0-.632-.24a.746.746 0 0 0-.476.24L3.131 9.163z`,fill:`currentColor`})))}}),Me=k(`input-group`,`
|
||||
display: inline-flex;
|
||||
width: 100%;
|
||||
flex-wrap: nowrap;
|
||||
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
||||
import{G as e,O as t,h as n,k as r,w as i}from"./client-DoYgjHB1.js";import{t as a}from"./DocsPage-BV1n3lGI.js";import{t as o}from"./HeaderMenu-BAfmMVYl.js";var s=r({__name:`PrivacyPolicyView`,setup(r){return(r,s)=>(e(),i(n,null,[t(a,{kind:`privacy`}),t(o)],64))}});export{s as default};
|
||||
import{G as e,O as t,h as n,k as r,w as i}from"./client-DoYgjHB1.js";import{t as a}from"./DocsPage-gUT56cSV.js";import{t as o}from"./HeaderMenu-D_AsQLwA.js";var s=r({__name:`PrivacyPolicyView`,setup(r){return(r,s)=>(e(),i(n,null,[t(a,{kind:`privacy`}),t(o)],64))}});export{s as default};
|
||||
@@ -1,4 +1,4 @@
|
||||
import{M as e,b as t,ft as n,ht as r,k as i,q as a}from"./client-DoYgjHB1.js";import{G as o,J as s,K as c,M as l,N as u,X as d,Y as f,Z as p,r as m,t as h}from"./light-DZR0fP_1.js";import{t as g}from"./use-merged-state-PkUq5wWw.js";import{i as _,n as v,r as y}from"./use-form-item-D1cm0evg.js";import{U as b}from"./index-Bz8r5dyZ.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=c(`rate`,{display:`inline-flex`,flexWrap:`nowrap`},[o(`&:hover`,[s(`item`,`
|
||||
import{M as e,b as t,ft as n,ht as r,k as i,q as a}from"./client-DoYgjHB1.js";import{G as o,J as s,K as c,M as l,N as u,X as d,Y as f,Z as p,r as m,t as h}from"./light-DZR0fP_1.js";import{t as g}from"./use-merged-state-PkUq5wWw.js";import{i as _,n as v,r as y}from"./use-form-item-D1cm0evg.js";import{U as b}from"./index-Di0MkZ8q.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=c(`rate`,{display:`inline-flex`,flexWrap:`nowrap`},[o(`&:hover`,[s(`item`,`
|
||||
transition:
|
||||
transform .1s var(--n-bezier),
|
||||
color .3s var(--n-bezier);
|
||||
@@ -1 +1 @@
|
||||
import{C as e,D as t,Ft as n,G as r,O as i,S as a,_t as o,ft as s,h as c,k as l,q as u,tt as d,w as f,x as p}from"./client-DoYgjHB1.js";import{t as m}from"./Card-D1xtzex8.js";import{t as h}from"./Button-Dzej_og6.js";import{t as g}from"./Tag-krvoQ2a3.js";import{t as _}from"./use-message-CH6Y0DxJ.js";import{t as v}from"./Flex-CuaMurbs.js";import{t as y}from"./Rate-CxNyYxPO.js";import{n as b}from"./es-CozvMiB1.js";import{t as x}from"./HeaderMenu-BAfmMVYl.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(l({__name:`ReviewsPage`,setup(l){let S=b(),O=_(),k=s([]);async function A(){let e=await S.GetReviewsForModeration({});if(e.error!=``){O.error(e.error);return}k.value=e.reviews||[]}async function j(e,t){let n=await S.ModerateGameReview({id:e.id,status:t});if(n.error!=``){O.error(n.error);return}await A()}return A(),(s,l)=>(r(),f(c,null,[p(`div`,C,[p(`div`,w,[p(`div`,T,[l[1]||=p(`h1`,null,`Отзывы`,-1),i(o(h),{onClick:A},{default:d(()=>[...l[0]||=[t(`Обновить`,-1)]]),_:1})]),k.value.length==0?(r(),a(o(m),{key:0},{default:d(()=>[...l[2]||=[t(`Очередь отзывов пуста.`,-1)]]),_:1})):e(``,!0),(r(!0),f(c,null,u(k.value,s=>(r(),a(o(m),{key:s.id,class:`review-card`},{default:d(()=>[i(o(v),{justify:`space-between`,align:`center`},{default:d(()=>[p(`div`,null,[p(`div`,E,n(s.gameName),1),p(`strong`,null,n(s.teamName),1)]),i(o(g),null,{default:d(()=>[t(n(s.status),1)]),_:2},1024)]),_:2},1024),i(o(y),{value:s.rating,readonly:``},null,8,[`value`]),p(`p`,D,n(s.text),1),s.status==`pending`?(r(),a(o(v),{key:0,justify:`end`},{default:d(()=>[i(o(h),{type:`success`,onClick:e=>j(s,`approved`)},{default:d(()=>[...l[3]||=[t(`Одобрить`,-1)]]),_:1},8,[`onClick`]),i(o(h),{type:`error`,ghost:``,onClick:e=>j(s,`rejected`)},{default:d(()=>[...l[4]||=[t(`Отклонить`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):s.status==`approved`?(r(),a(o(v),{key:1,justify:`end`},{default:d(()=>[i(o(h),{type:`error`,ghost:``,onClick:e=>j(s,`hidden`)},{default:d(()=>[...l[5]||=[t(`Скрыть`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):e(``,!0)]),_:2},1024))),128))])]),i(x,{active:`reviews`})],64))}}),[[`__scopeId`,`data-v-e74ad3c9`]]),k=l({__name:`ReviewsView`,setup(e){return(e,t)=>(r(),a(O))}});export{k as default};
|
||||
import{C as e,D as t,Ft as n,G as r,O as i,S as a,_t as o,ft as s,h as c,k as l,q as u,tt as d,w as f,x as p}from"./client-DoYgjHB1.js";import{t as m}from"./Card-Q5NdYl2h.js";import{t as h}from"./Button-Cvs9km7Z.js";import{t as g}from"./Tag-BTPoc9BR.js";import{t as _}from"./use-message-DJragLZf.js";import{t as v}from"./Flex-0Y5Tu0n6.js";import{t as y}from"./Rate-DV7TEAle.js";import{n as b}from"./es--ROG3QMY.js";import{t as x}from"./HeaderMenu-D_AsQLwA.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(l({__name:`ReviewsPage`,setup(l){let S=b(),O=_(),k=s([]);async function A(){let e=await S.GetReviewsForModeration({});if(e.error!=``){O.error(e.error);return}k.value=e.reviews||[]}async function j(e,t){let n=await S.ModerateGameReview({id:e.id,status:t});if(n.error!=``){O.error(n.error);return}await A()}return A(),(s,l)=>(r(),f(c,null,[p(`div`,C,[p(`div`,w,[p(`div`,T,[l[1]||=p(`h1`,null,`Отзывы`,-1),i(o(h),{onClick:A},{default:d(()=>[...l[0]||=[t(`Обновить`,-1)]]),_:1})]),k.value.length==0?(r(),a(o(m),{key:0},{default:d(()=>[...l[2]||=[t(`Очередь отзывов пуста.`,-1)]]),_:1})):e(``,!0),(r(!0),f(c,null,u(k.value,s=>(r(),a(o(m),{key:s.id,class:`review-card`},{default:d(()=>[i(o(v),{justify:`space-between`,align:`center`},{default:d(()=>[p(`div`,null,[p(`div`,E,n(s.gameName),1),p(`strong`,null,n(s.teamName),1)]),i(o(g),null,{default:d(()=>[t(n(s.status),1)]),_:2},1024)]),_:2},1024),i(o(y),{value:s.rating,readonly:``},null,8,[`value`]),p(`p`,D,n(s.text),1),s.status==`pending`?(r(),a(o(v),{key:0,justify:`end`},{default:d(()=>[i(o(h),{type:`success`,onClick:e=>j(s,`approved`)},{default:d(()=>[...l[3]||=[t(`Одобрить`,-1)]]),_:1},8,[`onClick`]),i(o(h),{type:`error`,ghost:``,onClick:e=>j(s,`rejected`)},{default:d(()=>[...l[4]||=[t(`Отклонить`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):s.status==`approved`?(r(),a(o(v),{key:1,justify:`end`},{default:d(()=>[i(o(h),{type:`error`,ghost:``,onClick:e=>j(s,`hidden`)},{default:d(()=>[...l[5]||=[t(`Скрыть`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):e(``,!0)]),_:2},1024))),128))])]),i(x,{active:`reviews`})],64))}}),[[`__scopeId`,`data-v-e74ad3c9`]]),k=l({__name:`ReviewsView`,setup(e){return(e,t)=>(r(),a(O))}});export{k as default};
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import{C as e,D as t,Ft as n,G as r,O as i,S as a,_t as o,ft as s,h as c,k as l,l as u,q as d,tt as f,w as p,x as m}from"./client-DoYgjHB1.js";import{t as h}from"./Tag-krvoQ2a3.js";import{t as g}from"./use-message-CH6Y0DxJ.js";import{t as _}from"./Rate-CxNyYxPO.js";import{n as v}from"./es-CozvMiB1.js";import{t as y}from"./HeaderMenu-BAfmMVYl.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={class:`scenario-author`},P={key:0,class:`reviews-section`},F={class:`review-heading`},I={class:`review-game`},L={class:`review-text`},R=b(l({__name:`ScenarioPage`,setup(l){let b=g(),R=v(),z=u().params.id,B=s([]),V=s({id:void 0,name:void 0,story:void 0,author:void 0,status:void 0,updatedAt:void 0,createdAt:void 0,publishedAt:void 0,averageRating:void 0,reviewsCount:void 0});async function H(e){let t=await R.GetScenario({id:e});if(t.error!=``){b.error(t.error);return}V.value=t.scenario}H(Number(z));async function U(e){let t=await R.GetScenarioReviews({scenarioId:e});if(t.error!=``){b.error(t.error);return}B.value=t.reviews||[]}return U(Number(z)),(s,l)=>(r(),p(c,null,[m(`div`,x,[m(`div`,S,[m(`section`,C,[m(`div`,w,[l[0]||=m(`p`,{class:`scenario-kicker`},`ДЕЛО ИЗ КАТАЛОГА`,-1),m(`h1`,T,n(V.value.name),1)]),m(`div`,E,[m(`img`,{class:`scenario-image`,src:V.value.image,alt:V.value.name},null,8,D)]),m(`div`,O,[m(`p`,k,n(V.value.description),1),m(`div`,A,[V.value.reviewsCount?(r(),a(o(_),{key:0,value:V.value.averageRating,readonly:``,"allow-half":``,size:`small`},null,8,[`value`])):e(``,!0),V.value.reviewsCount?(r(),p(`span`,j,n(V.value.averageRating?.toFixed(1))+` · `+n(V.value.reviewsCount)+` отзывов`,1)):(r(),p(`span`,M,`Пока нет оценок`))]),m(`div`,N,[i(o(h),{bordered:!1,type:`success`,class:`status-block`},{default:f(()=>[t(` Автор: `+n(V.value.author?.username),1)]),_:1})]),B.value.length?(r(),p(`section`,P,[l[1]||=m(`h2`,{class:`reviews-title`},`Отзывы команд`,-1),(r(!0),p(c,null,d(B.value,e=>(r(),p(`article`,{key:e.id,class:`review-card`},[m(`div`,F,[m(`strong`,null,n(e.teamName),1),i(o(_),{value:e.rating,readonly:``,size:`small`},null,8,[`value`])]),m(`div`,I,n(e.gameName),1),m(`p`,L,n(e.text),1)]))),128))])):e(``,!0)])])])]),i(y,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-1fc7bf2a`]]),z=l({__name:`ScenarioView`,setup(e){return(e,t)=>(r(),a(R))}});export{z as default};
|
||||
import{C as e,D as t,Ft as n,G as r,O as i,S as a,_t as o,ft as s,h as c,k as l,l as u,q as d,tt as f,w as p,x as m}from"./client-DoYgjHB1.js";import{t as h}from"./Tag-BTPoc9BR.js";import{t as g}from"./use-message-DJragLZf.js";import{t as _}from"./Rate-DV7TEAle.js";import{n as v}from"./es--ROG3QMY.js";import{t as y}from"./HeaderMenu-D_AsQLwA.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={class:`scenario-author`},P={key:0,class:`reviews-section`},F={class:`review-heading`},I={class:`review-game`},L={class:`review-text`},R=b(l({__name:`ScenarioPage`,setup(l){let b=g(),R=v(),z=u().params.id,B=s([]),V=s({id:void 0,name:void 0,story:void 0,author:void 0,status:void 0,updatedAt:void 0,createdAt:void 0,publishedAt:void 0,averageRating:void 0,reviewsCount:void 0});async function H(e){let t=await R.GetScenario({id:e});if(t.error!=``){b.error(t.error);return}V.value=t.scenario}H(Number(z));async function U(e){let t=await R.GetScenarioReviews({scenarioId:e});if(t.error!=``){b.error(t.error);return}B.value=t.reviews||[]}return U(Number(z)),(s,l)=>(r(),p(c,null,[m(`div`,x,[m(`div`,S,[m(`section`,C,[m(`div`,w,[l[0]||=m(`p`,{class:`scenario-kicker`},`ДЕЛО ИЗ КАТАЛОГА`,-1),m(`h1`,T,n(V.value.name),1)]),m(`div`,E,[m(`img`,{class:`scenario-image`,src:V.value.image,alt:V.value.name},null,8,D)]),m(`div`,O,[m(`p`,k,n(V.value.description),1),m(`div`,A,[V.value.reviewsCount?(r(),a(o(_),{key:0,value:V.value.averageRating,readonly:``,"allow-half":``,size:`small`},null,8,[`value`])):e(``,!0),V.value.reviewsCount?(r(),p(`span`,j,n(V.value.averageRating?.toFixed(1))+` · `+n(V.value.reviewsCount)+` отзывов`,1)):(r(),p(`span`,M,`Пока нет оценок`))]),m(`div`,N,[i(o(h),{bordered:!1,type:`success`,class:`status-block`},{default:f(()=>[t(` Автор: `+n(V.value.author?.username),1)]),_:1})]),B.value.length?(r(),p(`section`,P,[l[1]||=m(`h2`,{class:`reviews-title`},`Отзывы команд`,-1),(r(!0),p(c,null,d(B.value,e=>(r(),p(`article`,{key:e.id,class:`review-card`},[m(`div`,F,[m(`strong`,null,n(e.teamName),1),i(o(_),{value:e.rating,readonly:``,size:`small`},null,8,[`value`])]),m(`div`,I,n(e.gameName),1),m(`p`,L,n(e.text),1)]))),128))])):e(``,!0)])])])]),i(y,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-1fc7bf2a`]]),z=l({__name:`ScenarioView`,setup(e){return(e,t)=>(r(),a(R))}});export{z as default};
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
|
||||
import{$ as e,H as t,J as n,L as r,M as i,b as a,et as o,ft as s,h as c,ht as l,k as u,nt as d}from"./client-DoYgjHB1.js";import{G as f,J as p,K as m,M as h,N as g,R as _,X as v,Y as y,Z as b,o as x,r as S}from"./light-DZR0fP_1.js";import{a as C,i as w,n as T,o as E,r as D,t as O}from"./Follower-8oWfBzRO.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-C3XTAdFp.js";import{f as ne,o as F}from"./Card-D1xtzex8.js";import{r as re}from"./css-DEmdllcC.js";import{i as ie,n as I,t as L,u as R}from"./Suffix-CweDIQwl.js";import{t as z}from"./use-merged-state-PkUq5wWw.js";import{t as ae}from"./use-compitable-DUNzxmzx.js";import{t as B}from"./Popover-LntH06KH.js";import{r as oe}from"./keep-86TT3qDj.js";import{n as se,r as V}from"./use-form-item-D1cm0evg.js";import{t as H}from"./Tag-krvoQ2a3.js";import{D as U,Q as W,Y as ce,q as G,tt as K,y as le}from"./index-Bz8r5dyZ.js";var q=`v-hidden`,ue=T(`[v-hidden]`,{display:`none!important`}),J=u({name:`Overflow`,props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:n}){let r=s(null),i=s(null);function a(t){let{value:a}=r,{getCounter:o,getTail:s}=e,c;if(c=o===void 0?i.value:o(),!a||!c)return;c.hasAttribute(q)&&c.removeAttribute(q);let{children:l}=a;if(t.showAllItemsBeforeCalculate)for(let e of l)e.hasAttribute(q)&&e.removeAttribute(q);let u=a.offsetWidth,d=[],f=n.tail?s?.():null,p=f?f.offsetWidth:0,m=!1,h=a.children.length-+!!n.tail;for(let t=0;t<h-1;++t){if(t<0)continue;let n=l[t];if(m){n.hasAttribute(q)||n.setAttribute(q,``);continue}else n.hasAttribute(q)&&n.removeAttribute(q);let r=n.offsetWidth;if(p+=r,d[t]=r,p>u){let{updateCounter:n}=e;for(let r=t;r>=0;--r){let i=h-1-r;n===void 0?c.textContent=`${i}`:n(i);let a=c.offsetWidth;if(p-=d[r],p+a<=u||r===0){m=!0,t=r-1,f&&(t===-1?(f.style.maxWidth=`${u-a}px`,f.style.boxSizing=`border-box`):f.style.maxWidth=``);let{onUpdateCount:n}=e;n&&n(i);break}}}}let{onUpdateOverflow:g}=e;m?g!==void 0&&g(!0):(g!==void 0&&g(!1),c.setAttribute(q,``))}let o=_();return ue.mount({id:`vueuc/overflow`,head:!0,anchorMetaName:D,ssr:o}),t(()=>a({showAllItemsBeforeCalculate:!1})),{selfRef:r,counterRef:i,sync:a}},render(){let{$slots:e}=this;return r(()=>this.sync({showAllItemsBeforeCalculate:!1})),i(`div`,{class:`v-overflow`,ref:`selfRef`},[n(e,`default`),e.counter?e.counter():i(`span`,{style:{display:`inline-block`},ref:`counterRef`}),e.tail?e.tail():null])}});function Y(e){switch(typeof e){case`string`:return e||void 0;case`number`:return String(e);default:return}}var de=f([m(`base-selection`,`
|
||||
import{$ as e,H as t,J as n,L as r,M as i,b as a,et as o,ft as s,h as c,ht as l,k as u,nt as d}from"./client-DoYgjHB1.js";import{G as f,J as p,K as m,M as h,N as g,R as _,X as v,Y as y,Z as b,o as x,r as S}from"./light-DZR0fP_1.js";import{a as C,i as w,n as T,o as E,r as D,t as O}from"./Follower-Cdt60izR.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-bb31Nybp.js";import{f as ne,o as F}from"./Card-Q5NdYl2h.js";import{r as re}from"./css-DEmdllcC.js";import{i as ie,n as I,t as L,u as R}from"./Suffix-DEmbk3DZ.js";import{t as z}from"./use-merged-state-PkUq5wWw.js";import{t as ae}from"./use-compitable-DUNzxmzx.js";import{t as B}from"./Popover-K7K6goyT.js";import{r as oe}from"./keep-DCcprcNo.js";import{n as se,r as V}from"./use-form-item-D1cm0evg.js";import{t as H}from"./Tag-BTPoc9BR.js";import{D as U,Q as W,Y as ce,q as G,tt as K,y as le}from"./index-Di0MkZ8q.js";var q=`v-hidden`,ue=T(`[v-hidden]`,{display:`none!important`}),J=u({name:`Overflow`,props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:n}){let r=s(null),i=s(null);function a(t){let{value:a}=r,{getCounter:o,getTail:s}=e,c;if(c=o===void 0?i.value:o(),!a||!c)return;c.hasAttribute(q)&&c.removeAttribute(q);let{children:l}=a;if(t.showAllItemsBeforeCalculate)for(let e of l)e.hasAttribute(q)&&e.removeAttribute(q);let u=a.offsetWidth,d=[],f=n.tail?s?.():null,p=f?f.offsetWidth:0,m=!1,h=a.children.length-+!!n.tail;for(let t=0;t<h-1;++t){if(t<0)continue;let n=l[t];if(m){n.hasAttribute(q)||n.setAttribute(q,``);continue}else n.hasAttribute(q)&&n.removeAttribute(q);let r=n.offsetWidth;if(p+=r,d[t]=r,p>u){let{updateCounter:n}=e;for(let r=t;r>=0;--r){let i=h-1-r;n===void 0?c.textContent=`${i}`:n(i);let a=c.offsetWidth;if(p-=d[r],p+a<=u||r===0){m=!0,t=r-1,f&&(t===-1?(f.style.maxWidth=`${u-a}px`,f.style.boxSizing=`border-box`):f.style.maxWidth=``);let{onUpdateCount:n}=e;n&&n(i);break}}}}let{onUpdateOverflow:g}=e;m?g!==void 0&&g(!0):(g!==void 0&&g(!1),c.setAttribute(q,``))}let o=_();return ue.mount({id:`vueuc/overflow`,head:!0,anchorMetaName:D,ssr:o}),t(()=>a({showAllItemsBeforeCalculate:!1})),{selfRef:r,counterRef:i,sync:a}},render(){let{$slots:e}=this;return r(()=>this.sync({showAllItemsBeforeCalculate:!1})),i(`div`,{class:`v-overflow`,ref:`selfRef`},[n(e,`default`),e.counter?e.counter():i(`span`,{style:{display:`inline-block`},ref:`counterRef`}),e.tail?e.tail():null])}});function Y(e){switch(typeof e){case`string`:return e||void 0;case`number`:return String(e);default:return}}var de=f([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 @@
|
||||
import{M as e,b as t,k as n,m as r}from"./client-DoYgjHB1.js";import{N as i,Z as a,o,r as s}from"./light-DZR0fP_1.js";import{n as c,t as l}from"./css-DEmdllcC.js";import{a as u}from"./Button-Dzej_og6.js";import{t as d}from"./flatten-C4-fSVx4.js";import{t as f}from"./get-slot-6kXJmSMP.js";import{d as p}from"./index-Bz8r5dyZ.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=n({name:`Space`,props:Object.assign(Object.assign({},s.props),{align:String,justify:{type:String,default:`start`},inline:Boolean,vertical:Boolean,reverse:Boolean,size:[String,Number,Array],wrapItem:{type:Boolean,default:!0},itemClass:String,itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),setup(e){let{mergedClsPrefixRef:n,mergedRtlRef:r,mergedComponentPropsRef:u}=i(e),d=t(()=>e.size||u?.value?.Space?.size||`medium`),f=s(`Space`,`-space`,void 0,h,e,n),p=o(`Space`,r,n);return{useGap:_(),rtlEnabled:p,mergedClsPrefix:n,margin:t(()=>{let e=d.value;if(Array.isArray(e))return{horizontal:e[0],vertical:e[1]};if(typeof e==`number`)return{horizontal:e,vertical:e};let{self:{[a(`gap`,e)]:t}}=f.value,{row:n,col:r}=c(t);return{horizontal:l(r),vertical:l(n)}})}},render(){let{vertical:t,reverse:n,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&&!n?`column`:t&&n?`column-reverse`:!t&&n?`row-reverse`:`row`,justifyContent:[`start`,`end`].includes(o)?`flex-${o}`:o,flexWrap:!u||t?`nowrap`:`wrap`,marginTop:h||t?``:`-${S}`,marginBottom:h||t?``:`-${S}`,alignItems:i,gap:h?`${l.vertical}px ${l.horizontal}px`:``}},!g&&(h||_)?v:v.map((n,i)=>n.type===r?n: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}]},n)))}});export{v as t};
|
||||
import{M as e,b as t,k as n,m as r}from"./client-DoYgjHB1.js";import{N as i,Z as a,o,r as s}from"./light-DZR0fP_1.js";import{n as c,t as l}from"./css-DEmdllcC.js";import{a as u}from"./Button-Cvs9km7Z.js";import{t as d}from"./flatten-C4-fSVx4.js";import{t as f}from"./get-slot-6kXJmSMP.js";import{d as p}from"./index-Di0MkZ8q.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=n({name:`Space`,props:Object.assign(Object.assign({},s.props),{align:String,justify:{type:String,default:`start`},inline:Boolean,vertical:Boolean,reverse:Boolean,size:[String,Number,Array],wrapItem:{type:Boolean,default:!0},itemClass:String,itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),setup(e){let{mergedClsPrefixRef:n,mergedRtlRef:r,mergedComponentPropsRef:u}=i(e),d=t(()=>e.size||u?.value?.Space?.size||`medium`),f=s(`Space`,`-space`,void 0,h,e,n),p=o(`Space`,r,n);return{useGap:_(),rtlEnabled:p,mergedClsPrefix:n,margin:t(()=>{let e=d.value;if(Array.isArray(e))return{horizontal:e[0],vertical:e[1]};if(typeof e==`number`)return{horizontal:e,vertical:e};let{self:{[a(`gap`,e)]:t}}=f.value,{row:n,col:r}=c(t);return{horizontal:l(r),vertical:l(n)}})}},render(){let{vertical:t,reverse:n,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&&!n?`column`:t&&n?`column-reverse`:!t&&n?`row-reverse`:`row`,justifyContent:[`start`,`end`].includes(o)?`flex-${o}`:o,flexWrap:!u||t?`nowrap`:`wrap`,marginTop:h||t?``:`-${S}`,marginBottom:h||t?``:`-${S}`,alignItems:i,gap:h?`${l.vertical}px ${l.horizontal}px`:``}},!g&&(h||_)?v:v.map((n,i)=>n.type===r?n: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}]},n)))}});export{v as t};
|
||||
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
|
||||
import{K as e,M as t,b as n,ft as r,ht as i,k as a}from"./client-DoYgjHB1.js";import{B as o,G as s,J as c,K as l,M as u,N as d,X as f,Y as p,Z as m,o as h,r as g,t as _,z as v}from"./light-DZR0fP_1.js";import{r as y}from"./css-DEmdllcC.js";import{i as b,r as x}from"./use-form-item-D1cm0evg.js";import{a as S}from"./resolve-slot-DCSOtw1o.js";import{F as C,O as w}from"./index-Bz8r5dyZ.js";function T(e){let{textColor2:t,primaryColorHover:n,primaryColorPressed:r,primaryColor:i,infoColor:a,successColor:s,warningColor:c,errorColor:l,baseColor:u,borderColor:d,opacityDisabled:f,tagColor:p,closeIconColor:m,closeIconColorHover:h,closeIconColorPressed:g,borderRadiusSmall:_,fontSizeMini:v,fontSizeTiny:y,fontSizeSmall:b,fontSizeMedium:x,heightMini:S,heightTiny: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 ${o(i,{alpha:.3})}`,textColorPrimary:i,colorPrimary:o(i,{alpha:.12}),colorBorderedPrimary:o(i,{alpha:.1}),closeIconColorPrimary:i,closeIconColorHoverPrimary:i,closeIconColorPressedPrimary:i,closeColorHoverPrimary:o(i,{alpha:.12}),closeColorPressedPrimary:o(i,{alpha:.18}),borderInfo:`1px solid ${o(a,{alpha:.3})}`,textColorInfo:a,colorInfo:o(a,{alpha:.12}),colorBorderedInfo:o(a,{alpha:.1}),closeIconColorInfo:a,closeIconColorHoverInfo:a,closeIconColorPressedInfo:a,closeColorHoverInfo:o(a,{alpha:.12}),closeColorPressedInfo:o(a,{alpha:.18}),borderSuccess:`1px solid ${o(s,{alpha:.3})}`,textColorSuccess:s,colorSuccess:o(s,{alpha:.12}),colorBorderedSuccess:o(s,{alpha:.1}),closeIconColorSuccess:s,closeIconColorHoverSuccess:s,closeIconColorPressedSuccess:s,closeColorHoverSuccess:o(s,{alpha:.12}),closeColorPressedSuccess:o(s,{alpha:.18}),borderWarning:`1px solid ${o(c,{alpha:.35})}`,textColorWarning:c,colorWarning:o(c,{alpha:.15}),colorBorderedWarning:o(c,{alpha:.12}),closeIconColorWarning:c,closeIconColorHoverWarning:c,closeIconColorPressedWarning:c,closeColorHoverWarning:o(c,{alpha:.12}),closeColorPressedWarning:o(c,{alpha:.18}),borderError:`1px solid ${o(l,{alpha:.23})}`,textColorError:l,colorError:o(l,{alpha:.1}),colorBorderedError:o(l,{alpha:.08}),closeIconColorError:l,closeIconColorHoverError:l,closeIconColorPressedError:l,closeColorHoverError:o(l,{alpha:.12}),closeColorPressedError:o(l,{alpha:.18})})}var E={name:`Tag`,common:_,self:T},D={color:Object,type:{type:String,default:`default`},round:Boolean,size:String,closable:Boolean,disabled:{type:Boolean,default:void 0}},O=l(`tag`,`
|
||||
import{K as e,M as t,b as n,ft as r,ht as i,k as a}from"./client-DoYgjHB1.js";import{B as o,G as s,J as c,K as l,M as u,N as d,X as f,Y as p,Z as m,o as h,r as g,t as _,z as v}from"./light-DZR0fP_1.js";import{r as y}from"./css-DEmdllcC.js";import{i as b,r as x}from"./use-form-item-D1cm0evg.js";import{a as S}from"./resolve-slot-DCSOtw1o.js";import{F as C,O as w}from"./index-Di0MkZ8q.js";function T(e){let{textColor2:t,primaryColorHover:n,primaryColorPressed:r,primaryColor:i,infoColor:a,successColor:s,warningColor:c,errorColor:l,baseColor:u,borderColor:d,opacityDisabled:f,tagColor:p,closeIconColor:m,closeIconColorHover:h,closeIconColorPressed:g,borderRadiusSmall:_,fontSizeMini:v,fontSizeTiny:y,fontSizeSmall:b,fontSizeMedium:x,heightMini:S,heightTiny: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 ${o(i,{alpha:.3})}`,textColorPrimary:i,colorPrimary:o(i,{alpha:.12}),colorBorderedPrimary:o(i,{alpha:.1}),closeIconColorPrimary:i,closeIconColorHoverPrimary:i,closeIconColorPressedPrimary:i,closeColorHoverPrimary:o(i,{alpha:.12}),closeColorPressedPrimary:o(i,{alpha:.18}),borderInfo:`1px solid ${o(a,{alpha:.3})}`,textColorInfo:a,colorInfo:o(a,{alpha:.12}),colorBorderedInfo:o(a,{alpha:.1}),closeIconColorInfo:a,closeIconColorHoverInfo:a,closeIconColorPressedInfo:a,closeColorHoverInfo:o(a,{alpha:.12}),closeColorPressedInfo:o(a,{alpha:.18}),borderSuccess:`1px solid ${o(s,{alpha:.3})}`,textColorSuccess:s,colorSuccess:o(s,{alpha:.12}),colorBorderedSuccess:o(s,{alpha:.1}),closeIconColorSuccess:s,closeIconColorHoverSuccess:s,closeIconColorPressedSuccess:s,closeColorHoverSuccess:o(s,{alpha:.12}),closeColorPressedSuccess:o(s,{alpha:.18}),borderWarning:`1px solid ${o(c,{alpha:.35})}`,textColorWarning:c,colorWarning:o(c,{alpha:.15}),colorBorderedWarning:o(c,{alpha:.12}),closeIconColorWarning:c,closeIconColorHoverWarning:c,closeIconColorPressedWarning:c,closeColorHoverWarning:o(c,{alpha:.12}),closeColorPressedWarning:o(c,{alpha:.18}),borderError:`1px solid ${o(l,{alpha:.23})}`,textColorError:l,colorError:o(l,{alpha:.1}),colorBorderedError:o(l,{alpha:.08}),closeIconColorError:l,closeIconColorHoverError:l,closeIconColorPressedError:l,closeColorHoverError:o(l,{alpha:.12}),closeColorPressedError:o(l,{alpha:.18})})}var E={name:`Tag`,common:_,self:T},D={color:Object,type:{type:String,default:`default`},round:Boolean,size:String,closable:Boolean,disabled:{type:Boolean,default:void 0}},O=l(`tag`,`
|
||||
--n-close-margin: var(--n-close-margin-top) var(--n-close-margin-right) var(--n-close-margin-bottom) var(--n-close-margin-left);
|
||||
white-space: nowrap;
|
||||
position: relative;
|
||||
+1
-1
File diff suppressed because one or more lines are too long
Vendored
-1
@@ -1 +0,0 @@
|
||||
import{D as e,Ft as t,G as n,H as r,O as i,S as a,_t as o,b as s,ft as c,h as l,k as u,l as d,t as f,tt as p,w as m,x as h}from"./client-DoYgjHB1.js";import{t as g}from"./Button-Dzej_og6.js";import{t as _}from"./QrCode-CNcfWFbI.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-B2utHh61.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={key:0,class:`used`,role:`status`},D={key:1,class:`used`,role:`status`},O={key:2,class:`active`,role:`status`},k=v(u({__name:`TicketPage`,setup(u){let v=d(),k=f(),A=s(()=>String(v.params.token||``)),j=c(),M=c(!1),N=c(``),P=s(()=>window.location.href);async function F(){M.value=!0,N.value=``;try{let e=await k.GetTicket({token:A.value});if(e.error||!e.ticket){N.value=e.error||`Билет не найден`;return}j.value=e.ticket}catch{N.value=`Не удалось загрузить билет. Попробуйте ещё раз.`}finally{M.value=!1}}return r(F),(r,s)=>(n(),m(`div`,x,[h(`div`,S,[i(b,null,{default:p(()=>[h(`div`,C,[s[4]||=h(`p`,{class:`ticket-kicker`},`ВЕЧЕРНИЙ ДЕТЕКТИВ · ПРОПУСК`,-1),s[5]||=h(`h1`,null,`Билет на игру`,-1),N.value?(n(),m(`p`,w,t(N.value),1)):j.value?(n(),m(l,{key:1},[h(`h2`,null,t(j.value.gameName),1),s[3]||=h(`hr`,null,null,-1),h(`dl`,null,[h(`div`,null,[s[0]||=h(`dt`,null,`Начало`,-1),h(`dd`,null,t(o(y)(j.value.startAt)),1)]),h(`div`,null,[s[1]||=h(`dt`,null,`Место`,-1),h(`dd`,null,t(j.value.location||`Онлайн`),1)])]),h(`div`,T,[i(o(_),{value:P.value,size:240},null,8,[`value`]),s[2]||=h(`p`,null,`Покажите этот QR-код организатору на входе.`,-1)]),j.value.status===`used`?(n(),m(`p`,E,` Билет уже использован`+t(j.value.usedAt?` ${o(y)(j.value.usedAt)}`:``)+`. `,1)):j.value.gameStatus===`finish`?(n(),m(`p`,D,` Игра уже завершена. `)):(n(),m(`p`,O,`Билет действителен.`))],64)):(n(),a(o(g),{key:2,loading:M.value,onClick:F},{default:p(()=>[e(t(M.value?`Загрузка`:`Повторить`),1)]),_:1},8,[`loading`]))])]),_:1})])]))}}),[[`__scopeId`,`data-v-7fdf1525`]]),A=u({__name:`TicketView`,setup(e){return(e,t)=>(n(),a(k))}});export{A as default};
|
||||
Vendored
-1
@@ -1 +0,0 @@
|
||||
.ticket-card[data-v-7fdf1525]{margin:15px 0}.ticket-kicker[data-v-7fdf1525]{letter-spacing:1px;margin-bottom:14px;font-size:12px}h1[data-v-7fdf1525],h2[data-v-7fdf1525]{font-weight:400}h1[data-v-7fdf1525]{margin-bottom:24px;font-size:26px}h2[data-v-7fdf1525]{margin-bottom:20px}hr[data-v-7fdf1525]{border:0;border-top:1px dashed;margin:18px 0}dl[data-v-7fdf1525]{gap:12px;display:grid}dt[data-v-7fdf1525]{color:var(--second-color);font-size:13px}dd[data-v-7fdf1525]{margin:0}.qr-block[data-v-7fdf1525]{text-align:center;justify-items:center;gap:12px;margin:28px 0;display:grid}.error[data-v-7fdf1525],.used[data-v-7fdf1525]{color:var(--second-color)}.active[data-v-7fdf1525]{color:#63e2b7}
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
.ticket-card[data-v-c49a1124]{margin:15px 0}.ticket-kicker[data-v-c49a1124]{letter-spacing:1px;margin-bottom:14px;font-size:12px}h1[data-v-c49a1124],h2[data-v-c49a1124]{font-weight:400}h1[data-v-c49a1124]{margin-bottom:24px;font-size:26px}h2[data-v-c49a1124]{margin-bottom:20px}hr[data-v-c49a1124]{border:0;border-top:1px dashed;margin:18px 0}dl[data-v-c49a1124]{gap:12px;display:grid}dt[data-v-c49a1124]{color:var(--second-color);font-size:13px}dd[data-v-c49a1124]{margin:0}.qr-block[data-v-c49a1124]{background-color:#fff;width:fit-content;margin:28px auto;padding:12px;line-height:0;display:block}.error[data-v-c49a1124],.used[data-v-c49a1124]{color:var(--second-color)}.active[data-v-c49a1124]{color:#000}
|
||||
Vendored
+1
@@ -0,0 +1 @@
|
||||
import{D as e,Ft as t,G as n,H as r,O as i,S as a,_t as o,b as s,ft as c,h as l,k as u,l as d,t as f,tt as p,w as m,x as h}from"./client-DoYgjHB1.js";import{t as g}from"./Button-Cvs9km7Z.js";import{t as _}from"./QrCode-CNcfWFbI.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-B2utHh61.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={key:0,class:`used`,role:`status`},D={key:1,class:`used`,role:`status`},O=v(u({__name:`TicketPage`,setup(u){let v=d(),O=f(),k=s(()=>String(v.params.token||``)),A=c(),j=c(!1),M=c(``),N=s(()=>window.location.href);async function P(){j.value=!0,M.value=``;try{let e=await O.GetTicket({token:k.value});if(e.error||!e.ticket){M.value=e.error||`Билет не найден`;return}A.value=e.ticket}catch{M.value=`Не удалось загрузить билет. Попробуйте ещё раз.`}finally{j.value=!1}}return r(P),(r,s)=>(n(),m(`div`,x,[h(`div`,S,[i(b,null,{default:p(()=>[h(`div`,C,[s[6]||=h(`p`,{class:`ticket-kicker`},`ВЕЧЕРНИЙ ДЕТЕКТИВ · ПРОПУСК`,-1),s[7]||=h(`h1`,null,`Билет на игру`,-1),M.value?(n(),m(`p`,w,t(M.value),1)):A.value?(n(),m(l,{key:1},[h(`h2`,null,t(A.value.gameName),1),s[4]||=h(`hr`,null,null,-1),h(`dl`,null,[h(`div`,null,[s[0]||=h(`dt`,null,`Начало`,-1),h(`dd`,null,t(o(y)(A.value.startAt)),1)]),h(`div`,null,[s[1]||=h(`dt`,null,`Место`,-1),h(`dd`,null,t(A.value.location||`Онлайн`),1)])]),h(`div`,T,[i(o(_),{value:N.value,size:300,padding:0},null,8,[`value`])]),s[5]||=h(`p`,null,`Покажите этот QR-код организатору.`,-1),A.value.status===`used`?(n(),m(`p`,E,` Билет уже использован`+t(A.value.usedAt?` ${o(y)(A.value.usedAt)}`:``)+`. `,1)):A.value.gameStatus===`finish`?(n(),m(`p`,D,` Игра уже завершена. `)):(n(),m(l,{key:2},[s[2]||=h(`hr`,null,null,-1),s[3]||=h(`p`,{class:`active`,role:`status`},`Билет действителен.`,-1)],64))],64)):(n(),a(o(g),{key:2,loading:j.value,onClick:P},{default:p(()=>[e(t(j.value?`Загрузка`:`Повторить`),1)]),_:1},8,[`loading`]))])]),_:1})])]))}}),[[`__scopeId`,`data-v-c49a1124`]]),k=u({__name:`TicketView`,setup(e){return(e,t)=>(n(),a(O))}});export{k as default};
|
||||
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
||||
import{G as e,O as t,h as n,k as r,w as i}from"./client-DoYgjHB1.js";import{t as a}from"./DocsPage-BV1n3lGI.js";import{t as o}from"./HeaderMenu-BAfmMVYl.js";var s=r({__name:`UserAgreementView`,setup(r){return(r,s)=>(e(),i(n,null,[t(a,{kind:`terms`}),t(o)],64))}});export{s as default};
|
||||
import{G as e,O as t,h as n,k as r,w as i}from"./client-DoYgjHB1.js";import{t as a}from"./DocsPage-gUT56cSV.js";import{t as o}from"./HeaderMenu-D_AsQLwA.js";var s=r({__name:`UserAgreementView`,setup(r){return(r,s)=>(e(),i(n,null,[t(a,{kind:`terms`}),t(o)],64))}});export{s as default};
|
||||
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
||||
import{r as e}from"./client-DoYgjHB1.js";import{t}from"./index-Bz8r5dyZ.js";function n(){let e=t();return r(e.refreshTokenAction,e.getToken)}function r(t,n){async function r(r,i){let a={},o=n();o&&(a.Authorization=`Bearer ${o}`);let s=await fetch(`${e()}/${r}`,{...i,headers:{...a,...i.headers}});if(s.status==401){await t();let o=n();o&&(a.Authorization=`Bearer ${o}`),s=await fetch(`${e()}/${r}`,{...i,headers:{...a,...i.headers}})}return s}async function o(e,t){let n=await r(e,{method:`GET`});if(!n.ok)throw Error(await a(n));return{blob:await n.blob(),filename:i(n.headers.get(`Content-Disposition`))||t}}function s(e){return o(`api/scenarios/${e}/archive`,`scenario-${e}.zip`)}function c(e){return o(`api/games/${e}/teams/qr.pdf`,`game-${e}.pdf`)}async function l(e){let t=await r(`api/scenarios/archive`,{method:`POST`,headers:{"Content-Type":e.type||`application/zip`},body:e}),n=await t.json().catch(()=>null);if(!t.ok)return{id:null,error:n?.message||`Ошибка сервера (${t.status})`};let i=typeof n?.error==`string`&&n.error!==``?n.error:null;return{id:typeof n?.id==`number`?n.id:null,error:i}}return{downloadScenarioArchive:s,downloadTeamQR:c,uploadScenarioArchive:l}}function i(e){if(!e)return``;let t=e.match(/filename\*=UTF-8''([^;]+)/i);if(t)try{return decodeURIComponent(t[1].trim()).replace(/[\\/:*?"<>|]/g,`_`)}catch{}let n=e.match(/filename="?([^";]+)"?/i);return(n?n[1]:``).replace(/[\\/:*?"<>|]/g,`_`)}async function a(e){let t=await e.json().catch(()=>null);return t&&typeof t.message==`string`&&t.message!==``?t.message:`Ошибка сервера (${e.status})`}export{n as t};
|
||||
import{r as e}from"./client-DoYgjHB1.js";import{t}from"./index-Di0MkZ8q.js";function n(){let e=t();return r(e.refreshTokenAction,e.getToken)}function r(t,n){async function r(r,i){let a={},o=n();o&&(a.Authorization=`Bearer ${o}`);let s=await fetch(`${e()}/${r}`,{...i,headers:{...a,...i.headers}});if(s.status==401){await t();let o=n();o&&(a.Authorization=`Bearer ${o}`),s=await fetch(`${e()}/${r}`,{...i,headers:{...a,...i.headers}})}return s}async function o(e,t){let n=await r(e,{method:`GET`});if(!n.ok)throw Error(await a(n));return{blob:await n.blob(),filename:i(n.headers.get(`Content-Disposition`))||t}}function s(e){return o(`api/scenarios/${e}/archive`,`scenario-${e}.zip`)}function c(e){return o(`api/games/${e}/teams/qr.pdf`,`game-${e}.pdf`)}async function l(e){let t=await r(`api/scenarios/archive`,{method:`POST`,headers:{"Content-Type":e.type||`application/zip`},body:e}),n=await t.json().catch(()=>null);if(!t.ok)return{id:null,error:n?.message||`Ошибка сервера (${t.status})`};let i=typeof n?.error==`string`&&n.error!==``?n.error:null;return{id:typeof n?.id==`number`?n.id:null,error:i}}return{downloadScenarioArchive:s,downloadTeamQR:c,uploadScenarioArchive:l}}function i(e){if(!e)return``;let t=e.match(/filename\*=UTF-8''([^;]+)/i);if(t)try{return decodeURIComponent(t[1].trim()).replace(/[\\/:*?"<>|]/g,`_`)}catch{}let n=e.match(/filename="?([^";]+)"?/i);return(n?n[1]:``).replace(/[\\/:*?"<>|]/g,`_`)}async function a(e){let t=await e.json().catch(()=>null);return t&&typeof t.message==`string`&&t.message!==``?t.message:`Ошибка сервера (${e.status})`}export{n as t};
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import{J as e,K as t,M as n,P as r,b as i,d as a,i as o,k as s,n as c,z as l}from"./client-DoYgjHB1.js";import{t as u}from"./index-Bz8r5dyZ.js";function d(){let e=u();return f(e.refreshTokenAction,e.getToken)}function f(e,t){return o(p(e,c(t)))}function p(e,t){return async n=>{let r;try{r=await t(n)}catch{await e(),r=await t(n)}if(r&&typeof r==`object`&&`code`in r&&r.code!==0)throw Error(`message`in r&&typeof r.message==`string`?r.message:`Ошибка запроса`);return r}}function m(e){let t=0;for(let n=0;n<e.length;++n)e[n]===`&`&&++t;return t}var h=/\s*,(?![^(]*\))\s*/g,g=/\s+/g;function _(e,t){let n=[];return t.split(h).forEach(t=>{let r=m(t);if(!r){e.forEach(e=>{n.push((e&&e+` `)+t)});return}else if(r===1){e.forEach(e=>{n.push(t.replace(`&`,e))});return}let i=[t];for(;r--;){let t=[];i.forEach(n=>{e.forEach(e=>{t.push(n.replace(`&`,e))})}),i=t}i.forEach(e=>n.push(e))}),n}function v(e,t){let n=[];return t.split(h).forEach(t=>{e.forEach(e=>{n.push((e&&e+` `)+t)})}),n}function y(e){let t=[``];return e.forEach(e=>{e&&=e.trim(),e&&(t=e.includes(`&`)?_(t,e):v(t,e))}),t.join(`, `).replace(g,` `)}var b=/[A-Z]/g;function x(e){return e.replace(b,e=>`-`+e.toLowerCase())}function S(e,t=` `){return typeof e==`object`&&e?` {
|
||||
import{J as e,K as t,M as n,P as r,b as i,d as a,i as o,k as s,n as c,z as l}from"./client-DoYgjHB1.js";import{t as u}from"./index-Di0MkZ8q.js";function d(){let e=u();return f(e.refreshTokenAction,e.getToken)}function f(e,t){return o(p(e,c(t)))}function p(e,t){return async n=>{let r;try{r=await t(n)}catch{await e(),r=await t(n)}if(r&&typeof r==`object`&&`code`in r&&r.code!==0)throw Error(`message`in r&&typeof r.message==`string`?r.message:`Ошибка запроса`);return r}}function m(e){let t=0;for(let n=0;n<e.length;++n)e[n]===`&`&&++t;return t}var h=/\s*,(?![^(]*\))\s*/g,g=/\s+/g;function _(e,t){let n=[];return t.split(h).forEach(t=>{let r=m(t);if(!r){e.forEach(e=>{n.push((e&&e+` `)+t)});return}else if(r===1){e.forEach(e=>{n.push(t.replace(`&`,e))});return}let i=[t];for(;r--;){let t=[];i.forEach(n=>{e.forEach(e=>{t.push(n.replace(`&`,e))})}),i=t}i.forEach(e=>n.push(e))}),n}function v(e,t){let n=[];return t.split(h).forEach(t=>{e.forEach(e=>{n.push((e&&e+` `)+t)})}),n}function y(e){let t=[``];return e.forEach(e=>{e&&=e.trim(),e&&(t=e.includes(`&`)?_(t,e):v(t,e))}),t.join(`, `).replace(g,` `)}var b=/[A-Z]/g;function x(e){return e.replace(b,e=>`-`+e.toLowerCase())}function S(e,t=` `){return typeof e==`object`&&e?` {
|
||||
`+Object.entries(e).map(e=>t+` ${x(e[0])}: ${e[1]};`).join(`
|
||||
`)+`
|
||||
`+t+`}`:`: ${e};`}function C(e,t,n){return typeof e==`function`?e({context:t.context,props:n}):e}function w(e,t,n,r){if(!t)return``;let i=C(t,n,r);if(!i)return``;if(typeof i==`string`)return`${e} {\n${i}\n}`;let a=Object.keys(i);if(a.length===0)return n.config.keepEmptyBlock?e+` {
|
||||
@@ -1 +1 @@
|
||||
import{D as e,d as t}from"./light-DZR0fP_1.js";import{K as n,W as r}from"./index-Bz8r5dyZ.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-DZR0fP_1.js";import{K as n,W as r}from"./index-Di0MkZ8q.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};
|
||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
import{$ as e,B as t,H as n,M as r,ft as i,h as a,k as o}from"./client-DoYgjHB1.js";import{d as s,f as c,u as l}from"./Card-D1xtzex8.js";import{Z as u}from"./index-Bz8r5dyZ.js";function d(e){return typeof e==`string`?document.querySelector(e):e()||null}function f(e){return e instanceof HTMLElement}function p(e){for(let t=0;t<e.childNodes.length;t++){let n=e.childNodes[t];if(f(n)&&(h(n)||p(n)))return!0}return!1}function m(e){for(let t=e.childNodes.length-1;t>=0;t--){let n=e.childNodes[t];if(f(n)&&(h(n)||m(n)))return!0}return!1}function h(e){if(!g(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function g(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute(`tabIndex`)!==null)return!0;if(e.getAttribute(`disabled`))return!1;switch(e.nodeName){case`A`:return!!e.href&&e.rel!==`ignore`;case`INPUT`:return e.type!==`hidden`&&e.type!==`file`;case`SELECT`:case`TEXTAREA`:return!0;default:return!1}}var _=[],v=o({name:`FocusTrap`,props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:[String,Function],finalFocusTo:[String,Function],returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(r){let a=u(),o=i(null),f=i(null),h=!1,g=!1,v=typeof document>`u`?null:document.activeElement;function y(){return _[_.length-1]===a}function b(e){var t;e.code===`Escape`&&y()&&((t=r.onEsc)==null||t.call(r,e))}n(()=>{e(()=>r.active,e=>{e?(C(),s(`keydown`,document,b)):(l(`keydown`,document,b),h&&w())},{immediate:!0})}),t(()=>{l(`keydown`,document,b),h&&w()});function x(e){if(!g&&y()){let t=S();if(t===null||t.contains(c(e)))return;T(`first`)}}function S(){let e=o.value;if(e===null)return null;let t=e;for(;t=t.nextSibling,!(t===null||t instanceof Element&&t.tagName===`DIV`););return t}function C(){var e;if(!r.disabled){if(_.push(a),r.autoFocus){let{initialFocusTo:t}=r;t===void 0?T(`first`):(e=d(t))==null||e.focus({preventScroll:!0})}h=!0,document.addEventListener(`focus`,x,!0)}}function w(){var e;if(r.disabled||(document.removeEventListener(`focus`,x,!0),_=_.filter(e=>e!==a),y()))return;let{finalFocusTo:t}=r;t===void 0?r.returnFocusOnDeactivated&&v instanceof HTMLElement&&(g=!0,v.focus({preventScroll:!0}),g=!1):(e=d(t))==null||e.focus({preventScroll:!0})}function T(e){if(y()&&r.active){let t=o.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===o.value?T(`last`):T(`first`))}return{focusableStartRef:o,focusableEndRef:f,focusableStyle:`position: absolute; height: 0; width: 0;`,handleStartFocus:E,handleEndFocus:D}},render(){let{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();let{active:t,focusableStyle:n}=this;return r(a,null,[r(`div`,{"aria-hidden":`true`,tabindex:t?`0`:`-1`,ref:`focusableStartRef`,style:n,onFocus:this.handleStartFocus}),e(),r(`div`,{"aria-hidden":`true`,style:n,ref:`focusableEndRef`,tabindex:t?`0`:`-1`,onFocus:this.handleEndFocus})])}}),y=new WeakSet;function b(e){y.add(e)}function x(e){return!y.has(e)}function S(e,t=[],n){let r={};return t.forEach(t=>{r[t]=e[t]}),Object.assign(r,n)}export{v as i,x as n,b as r,S as t};
|
||||
import{$ as e,B as t,H as n,M as r,ft as i,h as a,k as o}from"./client-DoYgjHB1.js";import{d as s,f as c,u as l}from"./Card-Q5NdYl2h.js";import{Z as u}from"./index-Di0MkZ8q.js";function d(e){return typeof e==`string`?document.querySelector(e):e()||null}function f(e){return e instanceof HTMLElement}function p(e){for(let t=0;t<e.childNodes.length;t++){let n=e.childNodes[t];if(f(n)&&(h(n)||p(n)))return!0}return!1}function m(e){for(let t=e.childNodes.length-1;t>=0;t--){let n=e.childNodes[t];if(f(n)&&(h(n)||m(n)))return!0}return!1}function h(e){if(!g(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function g(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute(`tabIndex`)!==null)return!0;if(e.getAttribute(`disabled`))return!1;switch(e.nodeName){case`A`:return!!e.href&&e.rel!==`ignore`;case`INPUT`:return e.type!==`hidden`&&e.type!==`file`;case`SELECT`:case`TEXTAREA`:return!0;default:return!1}}var _=[],v=o({name:`FocusTrap`,props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:[String,Function],finalFocusTo:[String,Function],returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(r){let a=u(),o=i(null),f=i(null),h=!1,g=!1,v=typeof document>`u`?null:document.activeElement;function y(){return _[_.length-1]===a}function b(e){var t;e.code===`Escape`&&y()&&((t=r.onEsc)==null||t.call(r,e))}n(()=>{e(()=>r.active,e=>{e?(C(),s(`keydown`,document,b)):(l(`keydown`,document,b),h&&w())},{immediate:!0})}),t(()=>{l(`keydown`,document,b),h&&w()});function x(e){if(!g&&y()){let t=S();if(t===null||t.contains(c(e)))return;T(`first`)}}function S(){let e=o.value;if(e===null)return null;let t=e;for(;t=t.nextSibling,!(t===null||t instanceof Element&&t.tagName===`DIV`););return t}function C(){var e;if(!r.disabled){if(_.push(a),r.autoFocus){let{initialFocusTo:t}=r;t===void 0?T(`first`):(e=d(t))==null||e.focus({preventScroll:!0})}h=!0,document.addEventListener(`focus`,x,!0)}}function w(){var e;if(r.disabled||(document.removeEventListener(`focus`,x,!0),_=_.filter(e=>e!==a),y()))return;let{finalFocusTo:t}=r;t===void 0?r.returnFocusOnDeactivated&&v instanceof HTMLElement&&(g=!0,v.focus({preventScroll:!0}),g=!1):(e=d(t))==null||e.focus({preventScroll:!0})}function T(e){if(y()&&r.active){let t=o.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===o.value?T(`last`):T(`first`))}return{focusableStartRef:o,focusableEndRef:f,focusableStyle:`position: absolute; height: 0; width: 0;`,handleStartFocus:E,handleEndFocus:D}},render(){let{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();let{active:t,focusableStyle:n}=this;return r(a,null,[r(`div`,{"aria-hidden":`true`,tabindex:t?`0`:`-1`,ref:`focusableStartRef`,style:n,onFocus:this.handleStartFocus}),e(),r(`div`,{"aria-hidden":`true`,style:n,ref:`focusableEndRef`,tabindex:t?`0`:`-1`,onFocus:this.handleEndFocus})])}}),y=new WeakSet;function b(e){y.add(e)}function x(e){return!y.has(e)}function S(e,t=[],n){let r={};return t.forEach(t=>{r[t]=e[t]}),Object.assign(r,n)}export{v as i,x as n,b as r,S as t};
|
||||
@@ -1,4 +1,4 @@
|
||||
import{M as e,b as t,k as n}from"./client-DoYgjHB1.js";import{K as r,M as i,N as a,Y as o,Z as s,r as c}from"./light-DZR0fP_1.js";import{t as l}from"./use-compitable-DUNzxmzx.js";import{i as u}from"./index-Bz8r5dyZ.js";var d=r(`text`,`
|
||||
import{M as e,b as t,k as n}from"./client-DoYgjHB1.js";import{K as r,M as i,N as a,Y as o,Z as s,r as c}from"./light-DZR0fP_1.js";import{t as l}from"./use-compitable-DUNzxmzx.js";import{i as u}from"./index-Di0MkZ8q.js";var d=r(`text`,`
|
||||
transition: color .3s var(--n-bezier);
|
||||
color: var(--n-text-color);
|
||||
`,[o(`strong`,`
|
||||
@@ -1 +1 @@
|
||||
import{P as e}from"./client-DoYgjHB1.js";import{I as t}from"./light-DZR0fP_1.js";import{p as n}from"./index-Bz8r5dyZ.js";function r(){let r=e(n,null);return r===null&&t(`use-message`,"No outer <n-message-provider /> founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),r}export{r as t};
|
||||
import{P as e}from"./client-DoYgjHB1.js";import{I as t}from"./light-DZR0fP_1.js";import{p as n}from"./index-Di0MkZ8q.js";function r(){let r=e(n,null);return r===null&&t(`use-message`,"No outer <n-message-provider /> founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),r}export{r as t};
|
||||
File diff suppressed because one or more lines are too long
Vendored
+1
-1
@@ -5,7 +5,7 @@
|
||||
<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-Bz8r5dyZ.js"></script>
|
||||
<script type="module" crossorigin src="/assets/index-Di0MkZ8q.js"></script>
|
||||
<link rel="modulepreload" crossorigin href="/assets/client-DoYgjHB1.js">
|
||||
<link rel="modulepreload" crossorigin href="/assets/light-DZR0fP_1.js">
|
||||
<link rel="modulepreload" crossorigin href="/assets/light-iXisWhjq.js">
|
||||
|
||||
@@ -59,9 +59,9 @@ onMounted(load)
|
||||
</dl>
|
||||
|
||||
<div class="qr-block">
|
||||
<n-qr-code :value="ticketURL" :size="240" />
|
||||
<p>Покажите этот QR-код организатору на входе.</p>
|
||||
<n-qr-code :value="ticketURL" :size="300" :padding="0" />
|
||||
</div>
|
||||
<p>Покажите этот QR-код организатору.</p>
|
||||
|
||||
<p v-if="ticket.status === 'used'" class="used" role="status">
|
||||
Билет уже использован{{ ticket.usedAt ? ` ${formatGameDateTime(ticket.usedAt)}` : '' }}.
|
||||
@@ -69,7 +69,10 @@ onMounted(load)
|
||||
<p v-else-if="ticket.gameStatus === 'finish'" class="used" role="status">
|
||||
Игра уже завершена.
|
||||
</p>
|
||||
<p v-else class="active" role="status">Билет действителен.</p>
|
||||
<template v-else>
|
||||
<hr />
|
||||
<p class="active" role="status">Билет действителен.</p>
|
||||
</template>
|
||||
</template>
|
||||
<n-button v-else :loading="loading" @click="load">
|
||||
{{ loading ? 'Загрузка' : 'Повторить' }}
|
||||
@@ -126,11 +129,12 @@ dd {
|
||||
}
|
||||
|
||||
.qr-block {
|
||||
display: grid;
|
||||
gap: 12px;
|
||||
justify-items: center;
|
||||
margin: 28px 0;
|
||||
text-align: center;
|
||||
background-color: white;
|
||||
display: block;
|
||||
line-height: 0;
|
||||
margin: 28px auto;
|
||||
padding: 12px;
|
||||
width: fit-content;
|
||||
}
|
||||
|
||||
.error,
|
||||
@@ -139,6 +143,6 @@ dd {
|
||||
}
|
||||
|
||||
.active {
|
||||
color: #63e2b7;
|
||||
color: black;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user