generated from VLADIMIR/template_frontend
up
This commit is contained in:
@@ -1 +1 @@
|
|||||||
import{P as e,j as t}from"./auth-DetOXv90.js";var n=t({name:`Add`,render(){return e(`svg`,{width:`512`,height:`512`,viewBox:`0 0 512 512`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e(`path`,{d:`M256 112V400M400 256H112`,stroke:`currentColor`,"stroke-width":`32`,"stroke-linecap":`round`,"stroke-linejoin":`round`}))}});export{n as t};
|
import{P as e,j as t}from"./auth-CzuN8bsR.js";var n=t({name:`Add`,render(){return e(`svg`,{width:`512`,height:`512`,viewBox:`0 0 512 512`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},e(`path`,{d:`M256 112V400M400 256H112`,stroke:`currentColor`,"stroke-width":`32`,"stroke-linecap":`round`,"stroke-linejoin":`round`}))}});export{n as t};
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import{L as e,P as t,S as n,ct as r,j as i}from"./auth-DetOXv90.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-BN35I8ot.js";import{a as _,c as v,r as y}from"./resolve-slot-DXnJRg0o.js";import{H as b,I as x,L as S,N as C,P as w,R as T,T as E,w as D,z as O}from"./index-UYw_T9_p.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({},E),{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{L as e,P as t,S as n,ct as r,j as i}from"./auth-CzuN8bsR.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-Dg5iONHF.js";import{a as _,c as v,r as y}from"./resolve-slot-Bgp_Mn8k.js";import{H as b,I as x,L as S,N as C,P as w,R as T,T as E,w as D,z as O}from"./index-4mSiwzFS.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({},E),{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);
|
line-height: var(--n-line-height);
|
||||||
border-radius: var(--n-border-radius);
|
border-radius: var(--n-border-radius);
|
||||||
position: relative;
|
position: relative;
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import{F as e,P as t,R as n,S as r,V as i,_ as a,ct as o,dt as s,g as c,j as l,k as u}from"./auth-DetOXv90.js";import{B as d,G as f,J as p,K as m,M as h,N as g,V as _,X as v,Y as y,Z as b,a as x,i as S,o as C,r as w,z as T}from"./light-BN35I8ot.js";import{a as E,n as D}from"./resolve-slot-DXnJRg0o.js";import{i as O,n as k,r as A}from"./use-form-item-CT1L1ziV.js";import{F as j,N as M,V as N,Y as P,j as F,x as I}from"./index-UYw_T9_p.js";var L=typeof document<`u`&&typeof window<`u`;function R(e,t=!0,n=[]){return e.forEach(e=>{if(e!==null){if(typeof e!=`object`){(typeof e==`string`||typeof e==`number`)&&n.push(u(String(e)));return}if(Array.isArray(e)){R(e,t,n);return}if(e.type===a){if(e.children===null)return;Array.isArray(e.children)&&R(e.children,t,n)}else{if(e.type===c&&t)return;n.push(e)}}}),n}var{cubicBezierEaseInOut:z}=x;function B({duration:e=`.2s`,delay:t=`.1s`}={}){return[f(`&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to`,{opacity:1}),f(`&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from`,`
|
import{F as e,P as t,R as n,S as r,V as i,_ as a,ct as o,dt as s,g as c,j as l,k as u}from"./auth-CzuN8bsR.js";import{B as d,G as f,J as p,K as m,M as h,N as g,V as _,X as v,Y as y,Z as b,a as x,i as S,o as C,r as w,z as T}from"./light-Dg5iONHF.js";import{a as E,n as D}from"./resolve-slot-Bgp_Mn8k.js";import{i as O,n as k,r as A}from"./use-form-item-DDZTyeAQ.js";import{F as j,N as M,V as N,Y as P,j as F,x as I}from"./index-4mSiwzFS.js";var L=typeof document<`u`&&typeof window<`u`;function R(e,t=!0,n=[]){return e.forEach(e=>{if(e!==null){if(typeof e!=`object`){(typeof e==`string`||typeof e==`number`)&&n.push(u(String(e)));return}if(Array.isArray(e)){R(e,t,n);return}if(e.type===a){if(e.children===null)return;Array.isArray(e.children)&&R(e.children,t,n)}else{if(e.type===c&&t)return;n.push(e)}}}),n}var{cubicBezierEaseInOut:z}=x;function B({duration:e=`.2s`,delay:t=`.1s`}={}){return[f(`&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to`,{opacity:1}),f(`&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from`,`
|
||||||
opacity: 0!important;
|
opacity: 0!important;
|
||||||
margin-left: 0!important;
|
margin-left: 0!important;
|
||||||
margin-right: 0!important;
|
margin-right: 0!important;
|
||||||
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
|||||||
import{A as e,At as t,C as n,E as r,J as i,K as a,T as o,_ as s,ct as c,d as l,j as u,jt as d,k as f,nt as p,pt as m,w as h}from"./auth-DetOXv90.js";import{t as g}from"./Tag-BqKZJJ-a.js";import{t as _}from"./Rate-B5toYPlv.js";import{r as v,t as y}from"./_plugin-vue_export-helper-7lqdtqme.js";import{t as b}from"./HeaderMenu-BV7MwsiN.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=y(u({__name:`CatalogPage`,setup(u){let y=v(),j=c([]),M=l();async function N(){j.value=[];let e=await y.GetScenariosCatalog({});j.value=e.scenarios}async function P(e){M.push(`/scenarios/`+e)}return N(),(c,l)=>(a(),r(s,null,[n(`div`,x,[n(`div`,S,[(a(!0),r(s,null,i(j.value,i=>(a(),r(`div`,{class:`scenario-block`,onClick:e=>P(i.id),key:i.id},[n(`div`,{class:`scenario-image-block scenario-image`,style:t({backgroundImage:`url(${i.image})`})},null,4),n(`div`,w,[n(`p`,T,d(i.name),1),n(`p`,E,d(i.description),1),n(`div`,D,[i.reviewsCount?(a(),h(m(_),{key:0,value:i.averageRating,readonly:``,"allow-half":``,size:`small`},null,8,[`value`])):o(``,!0),i.reviewsCount?(a(),r(`span`,O,d(i.averageRating?.toFixed(1))+` · `+d(i.reviewsCount),1)):(a(),r(`span`,k,`Пока нет оценок`))]),n(`p`,A,[e(m(g),{bordered:!1,type:`success`,class:`status-block`},{default:p(()=>[f(`Автор: `+d(i.author?.username),1)]),_:2},1024)])])],8,C))),128))])]),e(b,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-783d0b23`]]),M=u({__name:`CatalogView`,setup(e){return(e,t)=>(a(),h(j))}});export{M as default};
|
import{A as e,At as t,C as n,E as r,J as i,K as a,T as o,_ as s,ct as c,d as l,j as u,jt as d,k as f,nt as p,pt as m,w as h}from"./auth-CzuN8bsR.js";import{t as g}from"./Tag-DfP_x904.js";import{t as _}from"./Rate-BuNWBBdn.js";import{r as v,t as y}from"./_plugin-vue_export-helper-C_XTvH5A.js";import{t as b}from"./HeaderMenu-Qspj3Vlt.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=y(u({__name:`CatalogPage`,setup(u){let y=v(),j=c([]),M=l();async function N(){j.value=[];let e=await y.GetScenariosCatalog({});j.value=e.scenarios}async function P(e){M.push(`/scenarios/`+e)}return N(),(c,l)=>(a(),r(s,null,[n(`div`,x,[n(`div`,S,[(a(!0),r(s,null,i(j.value,i=>(a(),r(`div`,{class:`scenario-block`,onClick:e=>P(i.id),key:i.id},[n(`div`,{class:`scenario-image-block scenario-image`,style:t({backgroundImage:`url(${i.image})`})},null,4),n(`div`,w,[n(`p`,T,d(i.name),1),n(`p`,E,d(i.description),1),n(`div`,D,[i.reviewsCount?(a(),h(m(_),{key:0,value:i.averageRating,readonly:``,"allow-half":``,size:`small`},null,8,[`value`])):o(``,!0),i.reviewsCount?(a(),r(`span`,O,d(i.averageRating?.toFixed(1))+` · `+d(i.reviewsCount),1)):(a(),r(`span`,k,`Пока нет оценок`))]),n(`p`,A,[e(m(g),{bordered:!1,type:`success`,class:`status-block`},{default:p(()=>[f(`Автор: `+d(i.author?.username),1)]),_:2},1024)])])],8,C))),128))])]),e(b,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-783d0b23`]]),M=u({__name:`CatalogView`,setup(e){return(e,t)=>(a(),h(j))}});export{M as default};
|
||||||
Vendored
+1
@@ -0,0 +1 @@
|
|||||||
|
import{A as e,E as t,K as n,_ as r,j as i}from"./auth-CzuN8bsR.js";import{t as a}from"./DocsPage-4nGaYJI1.js";import{t as o}from"./HeaderMenu-Qspj3Vlt.js";var s=i({__name:`ConsentView`,setup(i){return(i,s)=>(n(),t(r,null,[e(a,{kind:`consent`}),e(o)],64))}});export{s as default};
|
||||||
Vendored
-1
@@ -1 +0,0 @@
|
|||||||
import{A as e,E as t,K as n,_ as r,j as i}from"./auth-DetOXv90.js";import{t as a}from"./DocsPage-DzX4rZ9-.js";import{t as o}from"./HeaderMenu-BV7MwsiN.js";var s=i({__name:`ConsentView`,setup(i){return(i,s)=>(n(),t(r,null,[e(a,{kind:`consent`}),e(o)],64))}});export{s as default};
|
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import{A as e,C as t,E as n,K as r,P as i,S as a,U as o,ct as s,j as c,jt as l,k as u,nt as d,o as f,pt as p,tt as m,w as h}from"./auth-DetOXv90.js";import{G as g,K as _,M as v,N as y,Y as b,Z as x,r as S}from"./light-BN35I8ot.js";import{l as C}from"./resolve-slot-DXnJRg0o.js";import{t as w}from"./use-compitable-Ct-u1IyK.js";import{t as T}from"./fade-in.cssr-mvZ1VOJ5.js";import{t as E}from"./Alert-BbFVk-Xc.js";import{M as D,Z as O,j as k,o as A}from"./index-UYw_T9_p.js";import{r as j,t as M}from"./_plugin-vue_export-helper-7lqdtqme.js";import{t as N}from"./HeaderText-DhMm0KRw.js";var P=g([g(`@keyframes spin-rotate`,`
|
import{A as e,C as t,E as n,K as r,P as i,S as a,U as o,ct as s,j as c,jt as l,k as u,nt as d,o as f,pt as p,tt as m,w as h}from"./auth-CzuN8bsR.js";import{G as g,K as _,M as v,N as y,Y as b,Z as x,r as S}from"./light-Dg5iONHF.js";import{l as C}from"./resolve-slot-Bgp_Mn8k.js";import{t as w}from"./use-compitable-boC6cFiE.js";import{t as T}from"./fade-in.cssr-CoPRsCos.js";import{t as E}from"./Alert-DZMHsQvh.js";import{M as D,Z as O,j as k,o as A}from"./index-4mSiwzFS.js";import{r as j,t as M}from"./_plugin-vue_export-helper-C_XTvH5A.js";import{t as N}from"./HeaderText--_Iy26DF.js";var P=g([g(`@keyframes spin-rotate`,`
|
||||||
from {
|
from {
|
||||||
transform: rotate(0);
|
transform: rotate(0);
|
||||||
}
|
}
|
||||||
@@ -1 +1 @@
|
|||||||
import{P as e,S as t,j as n}from"./auth-DetOXv90.js";import{N as r,Z as i,o as a,r as o}from"./light-BN35I8ot.js";import{o as s,s as c}from"./resolve-slot-DXnJRg0o.js";import{a as l}from"./Button-SFBLnAwv.js";import{t as u}from"./get-slot-6kXJmSMP.js";import{l as d}from"./index-UYw_T9_p.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}=c(n);return{horizontal:s(a),vertical:s(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{P as e,S as t,j as n}from"./auth-CzuN8bsR.js";import{N as r,Z as i,o as a,r as o}from"./light-Dg5iONHF.js";import{o as s,s as c}from"./resolve-slot-Bgp_Mn8k.js";import{a as l}from"./Button-_KVJEFbE.js";import{t as u}from"./get-slot-6kXJmSMP.js";import{l as d}from"./index-4mSiwzFS.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}=c(n);return{horizontal:s(a),vertical:s(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
Vendored
-7
File diff suppressed because one or more lines are too long
Vendored
+1
@@ -0,0 +1 @@
|
|||||||
|
.team-block[data-v-79a9bcbe]{background-color:#222;border:1px solid #222;border-radius:10px;margin:10px 0}.reviews-summary[data-v-79a9bcbe]{margin-bottom:20px}.review-row[data-v-79a9bcbe]{border-top:1px solid #777;padding:16px 0}.review-row p[data-v-79a9bcbe]{white-space:pre-wrap}.team-block-hover[data-v-79a9bcbe]:hover{color:#63e2b7;cursor:pointer;border:1px solid #63e2b7}.team-content-block[data-v-79a9bcbe]{padding:20px}.team-name-block[data-v-79a9bcbe]{font-size:20px;font-weight:600}.settings-icon[data-v-79a9bcbe]{width:20px}.link-button[data-v-79a9bcbe]{width:100%;margin-top:20px}.place-image-plus[data-v-79a9bcbe]{justify-content:center;align-items:center;font-size:30px;display:flex}.name-text[data-v-79a9bcbe]{background-color:#ffffff1a;border-radius:3px;padding:3px}.qr-block[data-v-79a9bcbe]{background-color:#fff;margin:0 auto;padding:12px;line-height:0;display:inline-block}.give-application-image-block[data-v-79a9bcbe]{background-image:url(/assets/paper_white-ZSlTzOTx.jpg);background-size:cover;max-width:320px;margin:10px 0 5px;padding:7px;box-shadow:0 3px 15px #626262}.give-application-image[data-v-79a9bcbe]{width:100%}.give-application-audio[data-v-79a9bcbe]{width:100%;margin:10px 0 5px}.give-application-pdf-link[data-v-79a9bcbe]{margin:10px 0 5px;text-decoration:underline;display:inline-block}.answers-empty[data-v-79a9bcbe]{color:#777}.answers-question-block[data-v-79a9bcbe]{background-color:#222;border-radius:8px;margin:15px 0;padding:12px}.answers-question-title[data-v-79a9bcbe]{margin:0 0 4px;font-size:17px;font-weight:600}.answers-question-answer[data-v-79a9bcbe]{color:#aaa;margin:0 0 10px}.correct-answer[data-v-79a9bcbe]{color:gold;white-space:pre-wrap;margin-top:4px;font-weight:500;display:inline-block}.answers-team-row[data-v-79a9bcbe]{background-color:#ffffff0d;border-radius:6px;flex-flow:wrap;align-items:center;gap:10px;margin:8px 0;padding:8px 10px;display:flex}.answers-team-name[data-v-79a9bcbe]{width:180px;font-weight:600}.answers-team-answer[data-v-79a9bcbe]{color:#aaa;white-space:pre-wrap;flex:200px}.answers-score-input[data-v-79a9bcbe]{width:110px}.screens-block[data-v-79a9bcbe]{background-color:#222;border-radius:10px;margin:12px 0;padding:16px}.screens-title[data-v-79a9bcbe]{margin-bottom:12px;font-size:18px;font-weight:600}.screen-row[data-v-79a9bcbe]{border-top:1px solid #ffffff1a;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;display:flex}.screen-status[data-v-79a9bcbe]{color:#aaa;font-size:13px}.screen-error[data-v-79a9bcbe]{color:#f2a2a2;font-size:13px}.screen-mode-controls[data-v-79a9bcbe]{margin-top:12px}.map-block[data-v-79a9bcbe]{background-color:#222;border-radius:10px;margin:12px 0;padding:16px}.map-field[data-v-79a9bcbe]{cursor:grab;resize:vertical;touch-action:none;background-color:#151515;border:1px dashed #fff3;height:420px;min-height:200px;position:relative;overflow:hidden}.map-field[data-v-79a9bcbe]:active{cursor:grabbing}.map-canvas[data-v-79a9bcbe]{transform-origin:0 0;background-image:linear-gradient(#ffffff14 1px,#0000 1px),linear-gradient(90deg,#ffffff14 1px,#0000 1px);background-size:20px 20px;width:2000px;height:1000px;position:absolute}.map-item[data-v-79a9bcbe]{cursor:grab;-webkit-user-select:none;user-select:none;border-radius:6px;min-width:90px;padding:8px 24px 8px 10px;position:absolute}.map-item[data-v-79a9bcbe]:active{cursor:grabbing}.map-screen[data-v-79a9bcbe]{background-color:#355b75}.map-team[data-v-79a9bcbe]{background-color:#222}.map-team[data-v-79a9bcbe],.map-team[data-v-79a9bcbe]:active{cursor:default}.map-team-handle[data-v-79a9bcbe]{cursor:grab;background-color:#48633a;border-radius:6px 6px 0 0;margin:-8px -24px 8px -10px;padding:8px 24px 8px 10px}.map-team-handle[data-v-79a9bcbe]:active{cursor:grabbing}.map-team-applications[data-v-79a9bcbe]{margin-top:8px}.map-team-needs-applications[data-v-79a9bcbe]{outline:2px solid gold}.map-item small[data-v-79a9bcbe]{opacity:.75;display:block}.map-item-hide[data-v-79a9bcbe]{color:inherit;cursor:pointer;background:0 0;border:0;font-size:16px;position:absolute;top:5px;right:5px}.map-team .map-item-hide[data-v-79a9bcbe]{padding:0 2px;line-height:16px;top:0}.map-hidden-items[data-v-79a9bcbe]{margin-top:10px}
|
||||||
Vendored
-1
@@ -1 +0,0 @@
|
|||||||
.team-block[data-v-8d5f4b26]{background-color:#222;border:1px solid #222;border-radius:10px;margin:10px 0}.team-block-hover[data-v-8d5f4b26]:hover{color:#63e2b7;cursor:pointer;border:1px solid #63e2b7}.team-content-block[data-v-8d5f4b26]{padding:20px}.team-name-block[data-v-8d5f4b26]{font-size:20px;font-weight:600}.settings-icon[data-v-8d5f4b26]{width:20px}.link-button[data-v-8d5f4b26]{width:100%;margin-top:20px}.place-image-plus[data-v-8d5f4b26]{justify-content:center;align-items:center;font-size:30px;display:flex}.name-text[data-v-8d5f4b26]{background-color:#ffffff1a;border-radius:3px;padding:3px}.qr-block[data-v-8d5f4b26]{background-color:#fff;margin:0 auto;padding:12px;line-height:0;display:inline-block}.give-application-image-block[data-v-8d5f4b26]{background-image:url(/assets/paper_white-ZSlTzOTx.jpg);background-size:cover;max-width:320px;margin:10px 0 5px;padding:7px;box-shadow:0 3px 15px #626262}.give-application-image[data-v-8d5f4b26]{width:100%}.give-application-audio[data-v-8d5f4b26]{width:100%;margin:10px 0 5px}.give-application-pdf-link[data-v-8d5f4b26]{margin:10px 0 5px;text-decoration:underline;display:inline-block}.answers-empty[data-v-8d5f4b26]{color:#777}.answers-question-block[data-v-8d5f4b26]{background-color:#222;border-radius:8px;margin:15px 0;padding:12px}.answers-question-title[data-v-8d5f4b26]{margin:0 0 4px;font-size:17px;font-weight:600}.answers-question-answer[data-v-8d5f4b26]{color:#aaa;margin:0 0 10px}.correct-answer[data-v-8d5f4b26]{color:gold;white-space:pre-wrap;margin-top:4px;font-weight:500;display:inline-block}.answers-team-row[data-v-8d5f4b26]{background-color:#ffffff0d;border-radius:6px;flex-flow:wrap;align-items:center;gap:10px;margin:8px 0;padding:8px 10px;display:flex}.answers-team-name[data-v-8d5f4b26]{width:180px;font-weight:600}.answers-team-answer[data-v-8d5f4b26]{color:#aaa;white-space:pre-wrap;flex:200px}.answers-score-input[data-v-8d5f4b26]{width:110px}.screens-block[data-v-8d5f4b26]{background-color:#222;border-radius:10px;margin:12px 0;padding:16px}.screens-title[data-v-8d5f4b26]{margin-bottom:12px;font-size:18px;font-weight:600}.screen-row[data-v-8d5f4b26]{border-top:1px solid #ffffff1a;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;display:flex}.screen-status[data-v-8d5f4b26]{color:#aaa;font-size:13px}.screen-error[data-v-8d5f4b26]{color:#f2a2a2;font-size:13px}.screen-mode-controls[data-v-8d5f4b26]{margin-top:12px}.map-block[data-v-8d5f4b26]{background-color:#222;border-radius:10px;margin:12px 0;padding:16px}.map-field[data-v-8d5f4b26]{cursor:grab;resize:vertical;touch-action:none;background-color:#151515;border:1px dashed #fff3;height:420px;min-height:200px;position:relative;overflow:hidden}.map-field[data-v-8d5f4b26]:active{cursor:grabbing}.map-canvas[data-v-8d5f4b26]{transform-origin:0 0;background-image:linear-gradient(#ffffff14 1px,#0000 1px),linear-gradient(90deg,#ffffff14 1px,#0000 1px);background-size:20px 20px;width:2000px;height:1000px;position:absolute}.map-item[data-v-8d5f4b26]{cursor:grab;-webkit-user-select:none;user-select:none;border-radius:6px;min-width:90px;padding:8px 24px 8px 10px;position:absolute}.map-item[data-v-8d5f4b26]:active{cursor:grabbing}.map-screen[data-v-8d5f4b26]{background-color:#355b75}.map-team[data-v-8d5f4b26]{background-color:#222}.map-team[data-v-8d5f4b26],.map-team[data-v-8d5f4b26]:active{cursor:default}.map-team-handle[data-v-8d5f4b26]{cursor:grab;background-color:#48633a;border-radius:6px 6px 0 0;margin:-8px -24px 8px -10px;padding:8px 24px 8px 10px}.map-team-handle[data-v-8d5f4b26]:active{cursor:grabbing}.map-team-applications[data-v-8d5f4b26]{margin-top:8px}.map-team-needs-applications[data-v-8d5f4b26]{outline:2px solid gold}.map-item small[data-v-8d5f4b26]{opacity:.75;display:block}.map-item-hide[data-v-8d5f4b26]{color:inherit;cursor:pointer;background:0 0;border:0;font-size:16px;position:absolute;top:5px;right:5px}.map-team .map-item-hide[data-v-8d5f4b26]{padding:0 2px;line-height:16px;top:0}.map-hidden-items[data-v-8d5f4b26]{margin-top:10px}
|
|
||||||
Vendored
+7
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Vendored
-1
@@ -1 +0,0 @@
|
|||||||
.menu-block[data-v-f920c62b]{background-color:#222;justify-content:space-between;align-items:center;width:100%;height:70px;padding:20px;display:flex;position:fixed;top:0;left:0}.menu-item-block[data-v-f920c62b]{cursor:pointer;margin-left:10px;padding:5px;font-size:1.1em;display:inline-block}.menu-item-block[data-v-f920c62b]:hover{color:#63e2b7;opacity:.8}.right[data-v-f920c62b]{margin-left:auto}.active[data-v-f920c62b]{color:#63e2b7}@media (width>=1024px){.burger-button[data-v-f920c62b]{display:none}}@media (width<1024px){.menu-buttons-block[data-v-f920c62b]{background-color:#222;flex-direction:column;width:100%;padding-bottom:5px;display:flex;position:fixed;top:70px;left:0}.menu-buttons-block div[data-v-f920c62b]{padding:15px 5px}.menu-buttons-block-active[data-v-f920c62b]{position:relative;top:-1000px}.burger-icon[data-v-f920c62b]{position:relative;top:5px}}
|
|
||||||
@@ -1 +1 @@
|
|||||||
import{A as e,C as t,E as n,K as r,T as i,ct as a,d as o,j as s,kt as c,nt as l,pt as u,t as d}from"./auth-DetOXv90.js";import{n as f,r as p,t as m}from"./_plugin-vue_export-helper-7lqdtqme.js";var h={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},g=s({name:`MenuOutlined`,render:function(e,i){return r(),n(`svg`,h,i[0]||=[t(`path`,{d:`M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z`,fill:`currentColor`},null,-1)])}}),_={class:`menu-block`},v={class:`right-group`},y=m(s({__name:`HeaderMenu`,props:{active:{type:String,required:!1}},setup(s){let m=s,h=d(),y=o(),b=p(),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)=>(r(),n(`div`,_,[t(`div`,{onClick:o[0]||=e=>E.value=!E.value,class:`burger-button`},[e(u(f),{class:`burger-icon`,size:`28`},{default:l(()=>[e(u(g))]),_:1})]),t(`div`,{class:c([`left-group menu-buttons-block`,E.value?``:`menu-buttons-block-active`])},[t(`div`,{class:c([`menu-item-block`,{active:m.active==`main`}]),onClick:o[1]||=e=>u(y).push(`/`)},` Главная `,2),u(h).hasRole(`user`)?(r(),n(`div`,{key:0,class:c([`menu-item-block`,{active:m.active==`office`}]),onClick:o[2]||=e=>u(y).push(`/office`)},` Кабинет `,2)):i(``,!0),C(`games_page`)?(r(),n(`div`,{key:1,class:c([`menu-item-block`,{active:m.active==`games`}]),onClick:o[3]||=e=>u(y).push(`/games`)},` Игры `,2)):i(``,!0),t(`div`,{class:c([`menu-item-block`,{active:m.active==`catalog`}]),onClick:o[4]||=e=>u(y).push(`/catalog`)},` Каталог `,2),C(`scenarios_page`)?(r(),n(`div`,{key:2,class:c([`menu-item-block`,{active:m.active==`scenarios`}]),onClick:o[5]||=e=>u(y).push(`/scenarios`)},` Мои сценарии `,2)):i(``,!0),C(`users_page`)?(r(),n(`div`,{key:3,class:c([`menu-item-block`,{active:m.active==`users`}]),onClick:o[6]||=e=>u(y).push(`/users`)},` Пользователи `,2)):i(``,!0)],2),t(`div`,v,[u(h).isAuthenticated?i(``,!0):(r(),n(`div`,{key:0,class:`menu-item-block right`,onClick:w},` Войти `)),u(h).isAuthenticated?(r(),n(`div`,{key:1,class:`menu-item-block right`,onClick:T},` Выйти `)):i(``,!0)])]))}}),[[`__scopeId`,`data-v-f920c62b`]]);export{y as t};
|
import{A as e,C as t,E as n,K as r,T as i,ct as a,d as o,j as s,kt as c,nt as l,pt as u,t as d}from"./auth-CzuN8bsR.js";import{n as f,r as p,t as m}from"./_plugin-vue_export-helper-C_XTvH5A.js";var h={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 24 24`},g=s({name:`MenuOutlined`,render:function(e,i){return r(),n(`svg`,h,i[0]||=[t(`path`,{d:`M3 18h18v-2H3v2zm0-5h18v-2H3v2zm0-7v2h18V6H3z`,fill:`currentColor`},null,-1)])}}),_={class:`menu-block`},v={class:`right-group`},y=m(s({__name:`HeaderMenu`,props:{active:{type:String,required:!1}},setup(s){let m=s,h=d(),y=o(),b=p(),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)=>(r(),n(`div`,_,[t(`div`,{onClick:o[0]||=e=>E.value=!E.value,class:`burger-button`},[e(u(f),{class:`burger-icon`,size:`28`},{default:l(()=>[e(u(g))]),_:1})]),t(`div`,{class:c([`left-group menu-buttons-block`,E.value?``:`menu-buttons-block-active`])},[t(`div`,{class:c([`menu-item-block`,{active:m.active==`main`}]),onClick:o[1]||=e=>u(y).push(`/`)},` Главная `,2),u(h).hasRole(`user`)?(r(),n(`div`,{key:0,class:c([`menu-item-block`,{active:m.active==`office`}]),onClick:o[2]||=e=>u(y).push(`/office`)},` Кабинет `,2)):i(``,!0),C(`games_page`)?(r(),n(`div`,{key:1,class:c([`menu-item-block`,{active:m.active==`games`}]),onClick:o[3]||=e=>u(y).push(`/games`)},` Игры `,2)):i(``,!0),t(`div`,{class:c([`menu-item-block`,{active:m.active==`catalog`}]),onClick:o[4]||=e=>u(y).push(`/catalog`)},` Каталог `,2),C(`scenarios_page`)?(r(),n(`div`,{key:2,class:c([`menu-item-block`,{active:m.active==`scenarios`}]),onClick:o[5]||=e=>u(y).push(`/scenarios`)},` Мои сценарии `,2)):i(``,!0),C(`users_page`)?(r(),n(`div`,{key:3,class:c([`menu-item-block`,{active:m.active==`users`}]),onClick:o[6]||=e=>u(y).push(`/users`)},` Пользователи `,2)):i(``,!0),C(`reviews_page`)?(r(),n(`div`,{key:4,class:c([`menu-item-block`,{active:m.active==`reviews`}]),onClick:o[7]||=e=>u(y).push(`/reviews`)},` Отзывы `,2)):i(``,!0)],2),t(`div`,v,[u(h).isAuthenticated?i(``,!0):(r(),n(`div`,{key:0,class:`menu-item-block right`,onClick:w},` Войти `)),u(h).isAuthenticated?(r(),n(`div`,{key:1,class:`menu-item-block right`,onClick:T},` Выйти `)):i(``,!0)])]))}}),[[`__scopeId`,`data-v-f4b163cd`]]);export{y as t};
|
||||||
Vendored
+1
@@ -0,0 +1 @@
|
|||||||
|
.menu-block[data-v-f4b163cd]{background-color:#222;justify-content:space-between;align-items:center;width:100%;height:70px;padding:20px;display:flex;position:fixed;top:0;left:0}.menu-item-block[data-v-f4b163cd]{cursor:pointer;margin-left:10px;padding:5px;font-size:1.1em;display:inline-block}.menu-item-block[data-v-f4b163cd]:hover{color:#63e2b7;opacity:.8}.right[data-v-f4b163cd]{margin-left:auto}.active[data-v-f4b163cd]{color:#63e2b7}@media (width>=1024px){.burger-button[data-v-f4b163cd]{display:none}}@media (width<1024px){.menu-buttons-block[data-v-f4b163cd]{background-color:#222;flex-direction:column;width:100%;padding-bottom:5px;display:flex;position:fixed;top:70px;left:0}.menu-buttons-block div[data-v-f4b163cd]{padding:15px 5px}.menu-buttons-block-active[data-v-f4b163cd]{position:relative;top:-1000px}.burger-icon[data-v-f4b163cd]{position:relative;top:5px}}
|
||||||
@@ -1 +1 @@
|
|||||||
import{E as e,K as t,Y as n,j as r}from"./auth-DetOXv90.js";import{t as i}from"./_plugin-vue_export-helper-7lqdtqme.js";var a={class:`text-with-font`},o=i(r({__name:`HeaderText`,setup(r){return(r,i)=>(t(),e(`span`,a,[n(r.$slots,`default`,{},void 0,!0)]))}}),[[`__scopeId`,`data-v-689794e0`]]);export{o as t};
|
import{E as e,K as t,Y as n,j as r}from"./auth-CzuN8bsR.js";import{t as i}from"./_plugin-vue_export-helper-C_XTvH5A.js";var a={class:`text-with-font`},o=i(r({__name:`HeaderText`,setup(r){return(r,i)=>(t(),e(`span`,a,[n(r.$slots,`default`,{},void 0,!0)]))}}),[[`__scopeId`,`data-v-689794e0`]]);export{o as t};
|
||||||
@@ -1 +1 @@
|
|||||||
import{A as e,C as t,E as n,K as r,_ as i,j as a}from"./auth-DetOXv90.js";import{t as o}from"./HeaderMenu-BV7MwsiN.js";var s=a({__name:`HomeView`,setup(a){return(a,s)=>(r(),n(i,null,[s[0]||=t(`div`,{class:`center-block-custom content-block center-middle-block-custom height80`},[t(`div`,null,[t(`h1`,{class:`font-text`},`Вечерний детектив`),t(`h3`,{class:`font-text`},`Дело №0`),t(`p`,{class:`content-text`},`Поиграем?`)])],-1),e(o,{active:`main`})],64))}});export{s as default};
|
import{A as e,C as t,E as n,K as r,_ as i,j as a}from"./auth-CzuN8bsR.js";import{t as o}from"./HeaderMenu-Qspj3Vlt.js";var s=a({__name:`HomeView`,setup(a){return(a,s)=>(r(),n(i,null,[s[0]||=t(`div`,{class:`center-block-custom content-block center-middle-block-custom height80`},[t(`div`,null,[t(`h1`,{class:`font-text`},`Вечерний детектив`),t(`h3`,{class:`font-text`},`Дело №0`),t(`p`,{class:`content-text`},`Поиграем?`)])],-1),e(o,{active:`main`})],64))}});export{s as default};
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import{F as e,M as t,P as n,R as r,S as i,U as a,_ as o,ct as s,dt as c,et as l,j as u,q as ee,tt as d}from"./auth-DetOXv90.js";import{G as f,J as p,K as m,M as te,N as ne,X as h,Y as g,Z as _,i as re,o as ie,r as v,z as y}from"./light-BN35I8ot.js";import{c as b,d as x,i as S,u as C}from"./Card-BFXpokQN.js";import{a as w,c as ae,i as T,r as E}from"./resolve-slot-DXnJRg0o.js";import{i as oe,r as D,t as O}from"./Suffix-CutOgybq.js";import{t as se}from"./use-merged-state-Dw19ICqg.js";import{i as ce}from"./Button-SFBLnAwv.js";import{n as le,r as k}from"./use-form-item-CT1L1ziV.js";import{C as ue,H as A,Y as j}from"./index-UYw_T9_p.js";var M=u({name:`Eye`,render(){return n(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},n(`path`,{d:`M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`32`}),n(`circle`,{cx:`256`,cy:`256`,r:`80`,fill:`none`,stroke:`currentColor`,"stroke-miterlimit":`10`,"stroke-width":`32`}))}}),N=u({name:`EyeOff`,render(){return n(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},n(`path`,{d:`M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z`,fill:`currentColor`}),n(`path`,{d:`M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z`,fill:`currentColor`}),n(`path`,{d:`M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z`,fill:`currentColor`}),n(`path`,{d:`M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z`,fill:`currentColor`}),n(`path`,{d:`M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z`,fill:`currentColor`}))}}),P=y(`n-input`),de=m(`input`,`
|
import{F as e,M as t,P as n,R as r,S as i,U as a,_ as o,ct as s,dt as c,et as l,j as u,q as ee,tt as d}from"./auth-CzuN8bsR.js";import{G as f,J as p,K as m,M as te,N as ne,X as h,Y as g,Z as _,i as re,o as ie,r as v,z as y}from"./light-Dg5iONHF.js";import{c as b,d as x,i as S,u as C}from"./Card-jY6IqKWx.js";import{a as w,c as ae,i as T,r as E}from"./resolve-slot-Bgp_Mn8k.js";import{i as oe,r as D,t as O}from"./Suffix-PHRsdJdH.js";import{t as se}from"./use-merged-state-D8rNARXC.js";import{i as ce}from"./Button-_KVJEFbE.js";import{n as le,r as k}from"./use-form-item-DDZTyeAQ.js";import{C as ue,H as A,Y as j}from"./index-4mSiwzFS.js";var M=u({name:`Eye`,render(){return n(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},n(`path`,{d:`M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z`,fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`32`}),n(`circle`,{cx:`256`,cy:`256`,r:`80`,fill:`none`,stroke:`currentColor`,"stroke-miterlimit":`10`,"stroke-width":`32`}))}}),N=u({name:`EyeOff`,render(){return n(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},n(`path`,{d:`M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z`,fill:`currentColor`}),n(`path`,{d:`M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z`,fill:`currentColor`}),n(`path`,{d:`M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z`,fill:`currentColor`}),n(`path`,{d:`M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z`,fill:`currentColor`}),n(`path`,{d:`M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z`,fill:`currentColor`}))}}),P=y(`n-input`),de=m(`input`,`
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
cursor: text;
|
cursor: text;
|
||||||
line-height: 1.5;
|
line-height: 1.5;
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import{A as e,C as t,E as n,F as r,K as i,L as a,P as o,R as s,S as c,U as l,_ as u,ct as d,d as f,dt as p,et as m,j as h,k as g,nt as _,pt as v,q as y,rt as b,t as x,tt as S,x as C}from"./auth-DetOXv90.js";import{$ as w,E as T,G as E,I as D,J as O,K as k,M as A,N as j,Q as ee,R as M,X as N,Y as P,Z as F,j as I,o as L,r as R,z}from"./light-BN35I8ot.js";import{a as B,i as te,l as ne,n as V,o as H,r as U,t as re}from"./Follower-BqBATTTc.js";import{a as ie,o as ae,t as oe}from"./utils-uz9aUEjP.js";import{c as W,d as se,f as G,t as ce}from"./Card-BFXpokQN.js";import{a as K,c as q,o as le}from"./resolve-slot-DXnJRg0o.js";import{n as ue,s as de,u as J}from"./Suffix-CutOgybq.js";import{t as Y}from"./use-merged-state-Dw19ICqg.js";import{t as fe}from"./use-compitable-Ct-u1IyK.js";import{a as pe,t as X}from"./Button-SFBLnAwv.js";import{n as Z,r as Q}from"./use-form-item-CT1L1ziV.js";import{t as me}from"./Add-CeJ0I8t8.js";import{t as $}from"./Input-CM5axX8S.js";import{t as he}from"./use-message-bV_QZwc3.js";import{t as ge}from"./Space-B98o1YSA.js";import{F as _e,G as ve,H as ye,J as be,K as xe,P as Se,Q as Ce,S as we,V as Te,X as Ee,Y as De,Z as Oe,b as ke,et as Ae,i as je,q as Me}from"./index-UYw_T9_p.js";import{t as Ne}from"./_plugin-vue_export-helper-7lqdtqme.js";import{t as Pe}from"./HeaderMenu-BV7MwsiN.js";var Fe=V(`.v-x-scroll`,{overflow:`auto`,scrollbarWidth:`none`},[V(`&::-webkit-scrollbar`,{width:0,height:0})]),Ie=h({name:`XScroll`,props:{disabled:Boolean,onScroll:Function},setup(){let e=d(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:U,ssr:n}),Object.assign({selfRef:e,handleWheel:t},{scrollTo(...t){var n;(n=e.value)==null||n.scrollTo(...t)}})},render(){return o(`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(ve(e))return Ve;if(T(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=T(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=Be(e);var n=Ue.test(e);return n||We.test(e)?Ge(e.slice(2),n?2:8):He.test(e)?Ve:+e}var qe=function(){return 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,T(n)&&(u=!!n.leading,d=`maxWait`in n,a=d?Ye(Ke(n.maxWait)||0,t):a,f=`trailing`in n?!!n.trailing:f);function p(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n),o}function m(e){return l=e,s=setTimeout(_,t),u?p(e):o}function h(e){var n=e-c,r=e-l,i=t-n;return d?Xe(i,a-r):i}function g(e){var n=e-c,r=e-l;return c===void 0||n>=t||n<0||d&&r>=a}function _(){var e=qe();if(g(e))return v(e);s=setTimeout(_,h(e))}function v(e){return s=void 0,f&&r?p(e):(r=i=void 0,o)}function y(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0}function b(){return s===void 0?o:v(qe())}function x(){var e=qe(),n=g(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return m(c);if(d)return clearTimeout(s),s=setTimeout(_,t),p(c)}return s===void 0&&(s=setTimeout(_,t)),o}return x.cancel=y,x.flush=b,x}var Qe=`Expected a function`;function $e(e,t,n){var r=!0,i=!0;if(typeof e!=`function`)throw TypeError(Qe);return T(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),Ze(e,t,{leading:r,maxWait:t,trailing:i})}var et=E([k(`auto-complete`,`
|
import{A as e,C as t,E as n,F as r,K as i,L as a,P as o,R as s,S as c,U as l,_ as u,ct as d,d as f,dt as p,et as m,j as h,k as g,nt as _,pt as v,q as y,rt as b,t as x,tt as S,x as C}from"./auth-CzuN8bsR.js";import{$ as w,E as T,G as E,I as D,J as O,K as k,M as A,N as j,Q as ee,R as M,X as N,Y as P,Z as F,j as I,o as L,r as R,z}from"./light-Dg5iONHF.js";import{a as B,i as te,l as ne,n as V,o as H,r as U,t as re}from"./Follower-BeUAmPJ4.js";import{a as ie,o as ae,t as oe}from"./utils-Av1b4W6Q.js";import{c as W,d as se,f as G,t as ce}from"./Card-jY6IqKWx.js";import{a as K,c as q,o as le}from"./resolve-slot-Bgp_Mn8k.js";import{n as ue,s as de,u as J}from"./Suffix-PHRsdJdH.js";import{t as Y}from"./use-merged-state-D8rNARXC.js";import{t as fe}from"./use-compitable-boC6cFiE.js";import{a as pe,t as X}from"./Button-_KVJEFbE.js";import{n as Z,r as Q}from"./use-form-item-DDZTyeAQ.js";import{t as me}from"./Add-Dpa8jwVl.js";import{t as $}from"./Input-jiXpa-nM.js";import{t as he}from"./use-message-R8JEzJ8f.js";import{t as ge}from"./Space-BumyB3cS.js";import{F as _e,G as ve,H as ye,J as be,K as xe,P as Se,Q as Ce,S as we,V as Te,X as Ee,Y as De,Z as Oe,b as ke,et as Ae,i as je,q as Me}from"./index-4mSiwzFS.js";import{t as Ne}from"./_plugin-vue_export-helper-C_XTvH5A.js";import{t as Pe}from"./HeaderMenu-Qspj3Vlt.js";var Fe=V(`.v-x-scroll`,{overflow:`auto`,scrollbarWidth:`none`},[V(`&::-webkit-scrollbar`,{width:0,height:0})]),Ie=h({name:`XScroll`,props:{disabled:Boolean,onScroll:Function},setup(){let e=d(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:U,ssr:n}),Object.assign({selfRef:e,handleWheel:t},{scrollTo(...t){var n;(n=e.value)==null||n.scrollTo(...t)}})},render(){return o(`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(ve(e))return Ve;if(T(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=T(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=Be(e);var n=Ue.test(e);return n||We.test(e)?Ge(e.slice(2),n?2:8):He.test(e)?Ve:+e}var qe=function(){return 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,T(n)&&(u=!!n.leading,d=`maxWait`in n,a=d?Ye(Ke(n.maxWait)||0,t):a,f=`trailing`in n?!!n.trailing:f);function p(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n),o}function m(e){return l=e,s=setTimeout(_,t),u?p(e):o}function h(e){var n=e-c,r=e-l,i=t-n;return d?Xe(i,a-r):i}function g(e){var n=e-c,r=e-l;return c===void 0||n>=t||n<0||d&&r>=a}function _(){var e=qe();if(g(e))return v(e);s=setTimeout(_,h(e))}function v(e){return s=void 0,f&&r?p(e):(r=i=void 0,o)}function y(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0}function b(){return s===void 0?o:v(qe())}function x(){var e=qe(),n=g(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return m(c);if(d)return clearTimeout(s),s=setTimeout(_,t),p(c)}return s===void 0&&(s=setTimeout(_,t)),o}return x.cancel=y,x.flush=b,x}var Qe=`Expected a function`;function $e(e,t,n){var r=!0,i=!0;if(typeof e!=`function`)throw TypeError(Qe);return T(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),Ze(e,t,{leading:r,maxWait:t,trailing:i})}var et=E([k(`auto-complete`,`
|
||||||
z-index: auto;
|
z-index: auto;
|
||||||
position: relative;
|
position: relative;
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import{B as e,F as t,L as n,P as r,R as i,S as a,U as o,V as s,W as c,ct as l,dt as u,et as d,j as f,kt as p,q as m,rt as h,st as g,x as _}from"./auth-DetOXv90.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-BN35I8ot.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-BFXpokQN.js";import{a as P,c as ae,r as oe}from"./resolve-slot-DXnJRg0o.js";import{_ as se,c as ce,g as le,h as F,l as ue,m as de,n as fe,p as pe,s as me,u as he,v as I,y as L}from"./Suffix-CutOgybq.js";import{o as ge,t as R}from"./Button-SFBLnAwv.js";import{i as _e,n as ve,t as z}from"./keep-XDVR1tb6.js";import{r as B}from"./use-form-item-CT1L1ziV.js";import{t as ye}from"./fade-in.cssr-mvZ1VOJ5.js";import{H as be,I as xe,J as Se,K as V,L as Ce,P as we,R as H,Z as U,et as W,m as Te,p as Ee,z as De}from"./index-UYw_T9_p.js";var G=l(null);function Oe(e){if(e.clientX>0||e.clientY>0)G.value={x:e.clientX,y:e.clientY};else{let{target:t}=e;if(t instanceof Element){let{left:e,top:n,width:r,height:i}=t.getBoundingClientRect();e>0||n>0?G.value={x:e+r/2,y:n+i/2}:G.value={x:0,y:0}}else G.value=null}}var K=0,ke=!0;function Ae(){if(!L)return g(l(null));K===0&&j(`click`,document,Oe,!0);let t=()=>{K+=1};return(ke&&=I())?(e(t),s(()=>{--K,K===0&&N(`click`,document,Oe,!0)})):t(),g(G)}var je=l(void 0),q=0;function Me(){je.value=Date.now()}var Ne=!0;function Pe(t){if(!L)return g(l(!1));let n=l(!1),r=null;function i(){r!==null&&window.clearTimeout(r)}function a(){i(),n.value=!0,r=window.setTimeout(()=>{n.value=!1},t)}q===0&&j(`click`,window,Me,!0);let o=()=>{q+=1,j(`click`,window,a,!0)};return(Ne&&=I())?(e(o),s(()=>{--q,q===0&&N(`click`,window,Me,!0),N(`click`,window,a,!0),i()})):o(),g(n)}var J=l(!1);function Fe(){J.value=!0}function Ie(){J.value=!1}var Y=0;function Le(){return ge&&(e(()=>{Y||(window.addEventListener(`compositionstart`,Fe),window.addEventListener(`compositionend`,Ie)),Y++}),s(()=>{Y<=1?(window.removeEventListener(`compositionstart`,Fe),window.removeEventListener(`compositionend`,Ie),Y=0):Y--})),J}var X=0,Re=``,ze=``,Be=``,Ve=``,He=l(`0px`);function Ue(e){if(typeof document>`u`)return;let t=document.documentElement,n,r=!1,i=()=>{t.style.marginRight=Re,t.style.overflow=ze,t.style.overflowX=Be,t.style.overflowY=Ve,He.value=`0px`};o(()=>{n=d(e,e=>{if(e){if(!X){let e=window.innerWidth-t.offsetWidth;e>0&&(Re=t.style.marginRight,t.style.marginRight=`${e}px`,He.value=`${e}px`),ze=t.style.overflow,Be=t.style.overflowX,Ve=t.style.overflowY,t.style.overflow=`hidden`,t.style.overflowX=`hidden`,t.style.overflowY=`hidden`}r=!0,X++}else X--,X||i(),r=!1},{immediate:!0})}),s(()=>{n?.(),r&&=(X--,X||i(),!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{B as e,F as t,L as n,P as r,R as i,S as a,U as o,V as s,W as c,ct as l,dt as u,et as d,j as f,kt as p,q as m,rt as h,st as g,x as _}from"./auth-CzuN8bsR.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-Dg5iONHF.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-jY6IqKWx.js";import{a as P,c as ae,r as oe}from"./resolve-slot-Bgp_Mn8k.js";import{_ as se,c as ce,g as le,h as F,l as ue,m as de,n as fe,p as pe,s as me,u as he,v as I,y as L}from"./Suffix-PHRsdJdH.js";import{o as ge,t as R}from"./Button-_KVJEFbE.js";import{i as _e,n as ve,t as z}from"./keep-D5zQL9t4.js";import{r as B}from"./use-form-item-DDZTyeAQ.js";import{t as ye}from"./fade-in.cssr-CoPRsCos.js";import{H as be,I as xe,J as Se,K as V,L as Ce,P as we,R as H,Z as U,et as W,m as Te,p as Ee,z as De}from"./index-4mSiwzFS.js";var G=l(null);function Oe(e){if(e.clientX>0||e.clientY>0)G.value={x:e.clientX,y:e.clientY};else{let{target:t}=e;if(t instanceof Element){let{left:e,top:n,width:r,height:i}=t.getBoundingClientRect();e>0||n>0?G.value={x:e+r/2,y:n+i/2}:G.value={x:0,y:0}}else G.value=null}}var K=0,ke=!0;function Ae(){if(!L)return g(l(null));K===0&&j(`click`,document,Oe,!0);let t=()=>{K+=1};return(ke&&=I())?(e(t),s(()=>{--K,K===0&&N(`click`,document,Oe,!0)})):t(),g(G)}var je=l(void 0),q=0;function Me(){je.value=Date.now()}var Ne=!0;function Pe(t){if(!L)return g(l(!1));let n=l(!1),r=null;function i(){r!==null&&window.clearTimeout(r)}function a(){i(),n.value=!0,r=window.setTimeout(()=>{n.value=!1},t)}q===0&&j(`click`,window,Me,!0);let o=()=>{q+=1,j(`click`,window,a,!0)};return(Ne&&=I())?(e(o),s(()=>{--q,q===0&&N(`click`,window,Me,!0),N(`click`,window,a,!0),i()})):o(),g(n)}var J=l(!1);function Fe(){J.value=!0}function Ie(){J.value=!1}var Y=0;function Le(){return ge&&(e(()=>{Y||(window.addEventListener(`compositionstart`,Fe),window.addEventListener(`compositionend`,Ie)),Y++}),s(()=>{Y<=1?(window.removeEventListener(`compositionstart`,Fe),window.removeEventListener(`compositionend`,Ie),Y=0):Y--})),J}var X=0,Re=``,ze=``,Be=``,Ve=``,He=l(`0px`);function Ue(e){if(typeof document>`u`)return;let t=document.documentElement,n,r=!1,i=()=>{t.style.marginRight=Re,t.style.overflow=ze,t.style.overflowX=Be,t.style.overflowY=Ve,He.value=`0px`};o(()=>{n=d(e,e=>{if(e){if(!X){let e=window.innerWidth-t.offsetWidth;e>0&&(Re=t.style.marginRight,t.style.marginRight=`${e}px`,He.value=`${e}px`),ze=t.style.overflow,Be=t.style.overflowX,Ve=t.style.overflowY,t.style.overflow=`hidden`,t.style.overflowX=`hidden`,t.style.overflowY=`hidden`}r=!0,X++}else X--,X||i(),r=!1},{immediate:!0})}),s(()=>{n?.(),r&&=(X--,X||i(),!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);
|
--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;
|
word-break: break-word;
|
||||||
line-height: var(--n-line-height);
|
line-height: var(--n-line-height);
|
||||||
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
|||||||
import{A as e,C as t,E as n,K as r,T as i,U as a,_ as o,ct as s,j as c,jt as l,k as u,n as d,nt as f,pt as p,t as m,u as h,w as g}from"./auth-DetOXv90.js";import{t as _}from"./Card-BFXpokQN.js";import{t as v}from"./Button-SFBLnAwv.js";import{t as y}from"./use-message-bV_QZwc3.js";import{t as b}from"./Space-B98o1YSA.js";import{t as x}from"./HeaderMenu-BV7MwsiN.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=c({__name:`ParticipationPage`,setup(c){let k=h(),A=new URLSearchParams(k.hash.slice(1)),j=A.get(`token`)||``,M=s(A.get(`answer`)===`cancelled`?`cancelled`:`confirmed`),N=d(),P=m(),F=y(),I=s(),L=s(!1),R=s(``);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 a(z),(a,s)=>(r(),n(o,null,[p(P).isAuthenticated?(r(),g(x,{key:0})):i(``,!0),t(`div`,C,[t(`div`,w,[e(p(_),{title:`Участие в игре`},{default:f(()=>[R.value?(r(),n(`p`,T,l(R.value),1)):i(``,!0),I.value?(r(),n(o,{key:1},[t(`h2`,null,l(I.value.gameName),1),t(`p`,null,`Команда: `+l(I.value.teamName),1),t(`p`,null,`Начало: `+l(p(S)(I.value.startAt)),1),t(`p`,null,`Участников: `+l(I.value.participantsCount),1),I.value.status===`confirmed`?(r(),n(`p`,E,` Участие подтверждено. Ждём вас на игре! Решение окончательное. `)):I.value.status===`cancelled`?(r(),n(`p`,D,` Запись отменена. Решение окончательное. `)):I.value.closed?(r(),n(`p`,O,` Приём ответов закрыт. Ваша запись сохранена со статусом «Ожидает ответа». `)):(r(),n(o,{key:3},[s[4]||=t(`p`,null,[t(`strong`,null,`Решение окончательное: изменить его нельзя.`)],-1),s[5]||=t(`p`,null,`Без ответа запись сохраняется со статусом «Ожидает ответа».`,-1),e(p(b),{vertical:``},{default:f(()=>[e(p(b),null,{default:f(()=>[e(p(v),{disabled:L.value,type:M.value===`confirmed`?`primary`:`default`,"aria-pressed":M.value===`confirmed`,onClick:s[0]||=e=>M.value=`confirmed`},{default:f(()=>[...s[2]||=[u(`Мы участвуем`,-1)]]),_:1},8,[`disabled`,`type`,`aria-pressed`]),e(p(v),{disabled:L.value,type:M.value===`cancelled`?`error`:`default`,"aria-pressed":M.value===`cancelled`,onClick:s[1]||=e=>M.value=`cancelled`},{default:f(()=>[...s[3]||=[u(`Мы не участвуем`,-1)]]),_:1},8,[`disabled`,`type`,`aria-pressed`])]),_:1}),e(p(v),{loading:L.value,disabled:L.value,type:M.value===`cancelled`?`error`:`primary`,onClick:B},{default:f(()=>[u(l(M.value===`confirmed`?`Подтверждаю участие`:`Подтверждаю отмену`),1)]),_:1},8,[`loading`,`disabled`,`type`])]),_:1})],64))],64)):(r(),g(p(v),{key:2,loading:L.value,onClick:z},{default:f(()=>[u(l(L.value?`Загрузка`:`Повторить`),1)]),_:1},8,[`loading`]))]),_:1})])])],64))}}),A=c({__name:`ParticipationView`,setup(e){return(e,t)=>(r(),g(k))}});export{A as default};
|
import{A as e,C as t,E as n,K as r,T as i,U as a,_ as o,ct as s,j as c,jt as l,k as u,n as d,nt as f,pt as p,t as m,u as h,w as g}from"./auth-CzuN8bsR.js";import{t as _}from"./Card-jY6IqKWx.js";import{t as v}from"./Button-_KVJEFbE.js";import{t as y}from"./use-message-R8JEzJ8f.js";import{t as b}from"./Space-BumyB3cS.js";import{t as x}from"./HeaderMenu-Qspj3Vlt.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=c({__name:`ParticipationPage`,setup(c){let k=h(),A=new URLSearchParams(k.hash.slice(1)),j=A.get(`token`)||``,M=s(A.get(`answer`)===`cancelled`?`cancelled`:`confirmed`),N=d(),P=m(),F=y(),I=s(),L=s(!1),R=s(``);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 a(z),(a,s)=>(r(),n(o,null,[p(P).isAuthenticated?(r(),g(x,{key:0})):i(``,!0),t(`div`,C,[t(`div`,w,[e(p(_),{title:`Участие в игре`},{default:f(()=>[R.value?(r(),n(`p`,T,l(R.value),1)):i(``,!0),I.value?(r(),n(o,{key:1},[t(`h2`,null,l(I.value.gameName),1),t(`p`,null,`Команда: `+l(I.value.teamName),1),t(`p`,null,`Начало: `+l(p(S)(I.value.startAt)),1),t(`p`,null,`Участников: `+l(I.value.participantsCount),1),I.value.status===`confirmed`?(r(),n(`p`,E,` Участие подтверждено. Ждём вас на игре! Решение окончательное. `)):I.value.status===`cancelled`?(r(),n(`p`,D,` Запись отменена. Решение окончательное. `)):I.value.closed?(r(),n(`p`,O,` Приём ответов закрыт. Ваша запись сохранена со статусом «Ожидает ответа». `)):(r(),n(o,{key:3},[s[4]||=t(`p`,null,[t(`strong`,null,`Решение окончательное: изменить его нельзя.`)],-1),s[5]||=t(`p`,null,`Без ответа запись сохраняется со статусом «Ожидает ответа».`,-1),e(p(b),{vertical:``},{default:f(()=>[e(p(b),null,{default:f(()=>[e(p(v),{disabled:L.value,type:M.value===`confirmed`?`primary`:`default`,"aria-pressed":M.value===`confirmed`,onClick:s[0]||=e=>M.value=`confirmed`},{default:f(()=>[...s[2]||=[u(`Мы участвуем`,-1)]]),_:1},8,[`disabled`,`type`,`aria-pressed`]),e(p(v),{disabled:L.value,type:M.value===`cancelled`?`error`:`default`,"aria-pressed":M.value===`cancelled`,onClick:s[1]||=e=>M.value=`cancelled`},{default:f(()=>[...s[3]||=[u(`Мы не участвуем`,-1)]]),_:1},8,[`disabled`,`type`,`aria-pressed`])]),_:1}),e(p(v),{loading:L.value,disabled:L.value,type:M.value===`cancelled`?`error`:`primary`,onClick:B},{default:f(()=>[u(l(M.value===`confirmed`?`Подтверждаю участие`:`Подтверждаю отмену`),1)]),_:1},8,[`loading`,`disabled`,`type`])]),_:1})],64))],64)):(r(),g(p(v),{key:2,loading:L.value,onClick:z},{default:f(()=>[u(l(L.value?`Загрузка`:`Повторить`),1)]),_:1},8,[`loading`]))]),_:1})])])],64))}}),A=c({__name:`ParticipationView`,setup(e){return(e,t)=>(r(),g(k))}});export{A as default};
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import{A as e,At as t,C as n,E as r,F as i,J as a,K as o,O as s,P as c,S as l,T as u,Y as d,_ as f,ct as p,dt as m,i as h,it as g,j as _,jt as v,k as y,kt as b,nt as x,pt as S,q as C,ut as w,w as T}from"./auth-DetOXv90.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 F,n as ee,o as I,r as L,t as te,z as R}from"./light-BN35I8ot.js";import{t as ne}from"./Card-BFXpokQN.js";import{a as z,i as B,l as re,n as ie,o as V,r as ae}from"./resolve-slot-DXnJRg0o.js";import{i as oe}from"./Suffix-CutOgybq.js";import{t as se}from"./Modal-Cc3YqyVW.js";import{t as ce}from"./use-merged-state-Dw19ICqg.js";import{r as le,t as H}from"./Button-SFBLnAwv.js";import{n as ue,r as U,t as de}from"./use-form-item-CT1L1ziV.js";import{n as fe,t as pe}from"./Upload-MQncuSBB.js";import{t as me}from"./Add-CeJ0I8t8.js";import{t as W}from"./Input-CM5axX8S.js";import{t as he}from"./Remove-CNpD-1y-.js";import{t as ge}from"./Tag-BqKZJJ-a.js";import{t as G}from"./Space-B98o1YSA.js";import{t as K}from"./text-DNaqMd7_.js";import{C as _e,F as ve,H as q,V as ye,X as be,a as xe,d as Se,j as Ce,nt as J,x as we}from"./index-UYw_T9_p.js";import{n as Te,t as Ee}from"./_plugin-vue_export-helper-7lqdtqme.js";import{n as Y,r as X,t as De}from"./application-CK_JoGAx.js";var Oe=_({name:`ArrowDown`,render(){return c(`svg`,{viewBox:`0 0 28 28`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},c(`g`,{stroke:`none`,"stroke-width":`1`,"fill-rule":`evenodd`},c(`g`,{"fill-rule":`nonzero`},c(`path`,{d:`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`}))))}}),ke=_({name:`ArrowUp`,render(){return c(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`},c(`g`,{fill:`none`},c(`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`})))}}),Ae=k(`input-group`,`
|
import{A as e,At as t,C as n,E as r,F as i,J as a,K as o,O as s,P as c,S as l,T as u,Y as d,_ as f,ct as p,dt as m,i as h,it as g,j as _,jt as v,k as y,kt as b,nt as x,pt as S,q as C,ut as w,w as T}from"./auth-CzuN8bsR.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 F,n as ee,o as I,r as L,t as te,z as R}from"./light-Dg5iONHF.js";import{t as ne}from"./Card-jY6IqKWx.js";import{a as z,i as B,l as re,n as ie,o as V,r as ae}from"./resolve-slot-Bgp_Mn8k.js";import{i as oe}from"./Suffix-PHRsdJdH.js";import{t as se}from"./Modal-COuHyUKC.js";import{t as ce}from"./use-merged-state-D8rNARXC.js";import{r as le,t as H}from"./Button-_KVJEFbE.js";import{n as ue,r as U,t as de}from"./use-form-item-DDZTyeAQ.js";import{n as fe,t as pe}from"./Upload-i91liVQs.js";import{t as me}from"./Add-Dpa8jwVl.js";import{t as W}from"./Input-jiXpa-nM.js";import{t as he}from"./Remove-B8gpmkQR.js";import{t as ge}from"./Tag-DfP_x904.js";import{t as G}from"./Space-BumyB3cS.js";import{t as K}from"./text-BQr3Ce8B.js";import{C as _e,F as ve,H as q,V as ye,X as be,a as xe,d as Se,j as Ce,nt as J,x as we}from"./index-4mSiwzFS.js";import{n as Te,t as Ee}from"./_plugin-vue_export-helper-C_XTvH5A.js";import{n as Y,r as X,t as De}from"./application-CQhaY0yx.js";var Oe=_({name:`ArrowDown`,render(){return c(`svg`,{viewBox:`0 0 28 28`,version:`1.1`,xmlns:`http://www.w3.org/2000/svg`},c(`g`,{stroke:`none`,"stroke-width":`1`,"fill-rule":`evenodd`},c(`g`,{"fill-rule":`nonzero`},c(`path`,{d:`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`}))))}}),ke=_({name:`ArrowUp`,render(){return c(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`},c(`g`,{fill:`none`},c(`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`})))}}),Ae=k(`input-group`,`
|
||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
flex-wrap: nowrap;
|
flex-wrap: nowrap;
|
||||||
File diff suppressed because one or more lines are too long
+1
@@ -0,0 +1 @@
|
|||||||
|
import{A as e,E as t,K as n,_ as r,j as i}from"./auth-CzuN8bsR.js";import{t as a}from"./DocsPage-4nGaYJI1.js";import{t as o}from"./HeaderMenu-Qspj3Vlt.js";var s=i({__name:`PrivacyPolicyView`,setup(i){return(i,s)=>(n(),t(r,null,[e(a,{kind:`privacy`}),e(o)],64))}});export{s as default};
|
||||||
-1
@@ -1 +0,0 @@
|
|||||||
import{A as e,E as t,K as n,_ as r,j as i}from"./auth-DetOXv90.js";import{t as a}from"./DocsPage-DzX4rZ9-.js";import{t as o}from"./HeaderMenu-BV7MwsiN.js";var s=i({__name:`PrivacyPolicyView`,setup(i){return(i,s)=>(n(),t(r,null,[e(a,{kind:`privacy`}),e(o)],64))}});export{s as default};
|
|
||||||
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
|
|||||||
import{J as e,P as t,S as n,ct as r,dt as i,j as a}from"./auth-DetOXv90.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-BN35I8ot.js";import{t as g}from"./use-merged-state-Dw19ICqg.js";import{i as _,n as v,r as y}from"./use-form-item-CT1L1ziV.js";import{H as b}from"./index-UYw_T9_p.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=()=>t(`svg`,{viewBox:`0 0 512 512`},t(`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{J as e,P as t,S as n,ct as r,dt as i,j as a}from"./auth-CzuN8bsR.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-Dg5iONHF.js";import{t as g}from"./use-merged-state-D8rNARXC.js";import{i as _,n as v,r as y}from"./use-form-item-DDZTyeAQ.js";import{H as b}from"./index-4mSiwzFS.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=()=>t(`svg`,{viewBox:`0 0 512 512`},t(`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:
|
transition:
|
||||||
transform .1s var(--n-bezier),
|
transform .1s var(--n-bezier),
|
||||||
color .3s var(--n-bezier);
|
color .3s var(--n-bezier);
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import{P as e,j as t}from"./auth-DetOXv90.js";var n=t({name:`Remove`,render(){return e(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},e(`line`,{x1:`400`,y1:`256`,x2:`112`,y2:`256`,style:`
|
import{P as e,j as t}from"./auth-CzuN8bsR.js";var n=t({name:`Remove`,render(){return e(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 512 512`},e(`line`,{x1:`400`,y1:`256`,x2:`112`,y2:`256`,style:`
|
||||||
fill: none;
|
fill: none;
|
||||||
stroke: currentColor;
|
stroke: currentColor;
|
||||||
stroke-linecap: round;
|
stroke-linecap: round;
|
||||||
Vendored
+1
@@ -0,0 +1 @@
|
|||||||
|
import{A as e,C as t,E as n,J as r,K as i,T as a,_ as o,ct as s,j as c,jt as l,k as u,nt as d,pt as f,w as p}from"./auth-CzuN8bsR.js";import{t as m}from"./Card-jY6IqKWx.js";import{t as h}from"./Button-_KVJEFbE.js";import{t as g}from"./Tag-DfP_x904.js";import{t as _}from"./use-message-R8JEzJ8f.js";import{t as v}from"./Flex-ISd7TnC9.js";import{t as y}from"./Rate-BuNWBBdn.js";import{r as b,t as x}from"./_plugin-vue_export-helper-C_XTvH5A.js";import{t as S}from"./HeaderMenu-Qspj3Vlt.js";var C={class:`center-block-custom`},w={class:`width1200`},T={class:`page-header`},E={class:`review-game`},D={class:`review-text`},O=x(c({__name:`ReviewsPage`,setup(c){let x=b(),O=_(),k=s([]);async function A(){let e=await x.GetReviewsForModeration({});if(e.error!=``){O.error(e.error);return}k.value=e.reviews||[]}async function j(e,t){let n=await x.ModerateGameReview({id:e.id,status:t});if(n.error!=``){O.error(n.error);return}await A()}return A(),(s,c)=>(i(),n(o,null,[t(`div`,C,[t(`div`,w,[t(`div`,T,[c[1]||=t(`h1`,null,`Отзывы`,-1),e(f(h),{onClick:A},{default:d(()=>[...c[0]||=[u(`Обновить`,-1)]]),_:1})]),k.value.length==0?(i(),p(f(m),{key:0},{default:d(()=>[...c[2]||=[u(`Очередь отзывов пуста.`,-1)]]),_:1})):a(``,!0),(i(!0),n(o,null,r(k.value,n=>(i(),p(f(m),{key:n.id,class:`review-card`},{default:d(()=>[e(f(v),{justify:`space-between`,align:`center`},{default:d(()=>[t(`div`,null,[t(`div`,E,l(n.gameName),1),t(`strong`,null,l(n.teamName),1)]),e(f(g),null,{default:d(()=>[u(l(n.status),1)]),_:2},1024)]),_:2},1024),e(f(y),{value:n.rating,readonly:``},null,8,[`value`]),t(`p`,D,l(n.text),1),n.status==`pending`?(i(),p(f(v),{key:0,justify:`end`},{default:d(()=>[e(f(h),{type:`success`,onClick:e=>j(n,`approved`)},{default:d(()=>[...c[3]||=[u(`Одобрить`,-1)]]),_:1},8,[`onClick`]),e(f(h),{type:`error`,ghost:``,onClick:e=>j(n,`rejected`)},{default:d(()=>[...c[4]||=[u(`Отклонить`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):n.status==`approved`?(i(),p(f(v),{key:1,justify:`end`},{default:d(()=>[e(f(h),{type:`error`,ghost:``,onClick:e=>j(n,`hidden`)},{default:d(()=>[...c[5]||=[u(`Скрыть`,-1)]]),_:1},8,[`onClick`])]),_:2},1024)):a(``,!0)]),_:2},1024))),128))])]),e(S,{active:`reviews`})],64))}}),[[`__scopeId`,`data-v-e74ad3c9`]]),k=c({__name:`ReviewsView`,setup(e){return(e,t)=>(i(),p(O))}});export{k as default};
|
||||||
Vendored
+1
@@ -0,0 +1 @@
|
|||||||
|
.center-block-custom[data-v-e74ad3c9]{height:calc(100dvh - 70px)}.page-header[data-v-e74ad3c9]{justify-content:space-between;align-items:center;margin-bottom:16px;display:flex}.page-header h1[data-v-e74ad3c9]{font-size:28px}.review-card[data-v-e74ad3c9]{margin:12px 0}.review-game[data-v-e74ad3c9]{color:#777;margin-bottom:4px;font-size:13px}.review-text[data-v-e74ad3c9]{white-space:pre-wrap}
|
||||||
+1
-1
@@ -1 +1 @@
|
|||||||
import{A as e,C as t,E as n,K as r,T as i,_ as a,ct as o,j as s,jt as c,k as l,nt as u,pt as d,u as f,w as p}from"./auth-DetOXv90.js";import{t as m}from"./Tag-BqKZJJ-a.js";import{t as h}from"./use-message-bV_QZwc3.js";import{t as g}from"./Rate-B5toYPlv.js";import{r as _,t as v}from"./_plugin-vue_export-helper-7lqdtqme.js";import{t as y}from"./HeaderMenu-BV7MwsiN.js";var b={class:`center-block-custom`},x={class:`width700`},S={class:`scenario-card`},C={class:`scenario-heading`},w={class:`scenario-title`},T={class:`scenario-image-frame`},E=[`src`,`alt`],D={class:`scenario-details`},O={class:`scenario-description`},k={class:`scenario-rating`},A={key:1},j={key:2},M={class:`scenario-author`},N=v(s({__name:`ScenarioPage`,setup(s){let v=h(),N=_(),P=f().params.id,F=o({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 I(e){let t=await N.GetScenario({id:e});if(t.error!=``){v.error(t.error);return}F.value=t.scenario}return I(Number(P)),(o,s)=>(r(),n(a,null,[t(`div`,b,[t(`div`,x,[t(`section`,S,[t(`div`,C,[s[0]||=t(`p`,{class:`scenario-kicker`},`ДЕЛО ИЗ КАТАЛОГА`,-1),t(`h1`,w,c(F.value.name),1)]),t(`div`,T,[t(`img`,{class:`scenario-image`,src:F.value.image,alt:F.value.name},null,8,E)]),t(`div`,D,[t(`p`,O,c(F.value.description),1),t(`div`,k,[F.value.reviewsCount?(r(),p(d(g),{key:0,value:F.value.averageRating,readonly:``,"allow-half":``,size:`small`},null,8,[`value`])):i(``,!0),F.value.reviewsCount?(r(),n(`span`,A,c(F.value.averageRating?.toFixed(1))+` · `+c(F.value.reviewsCount)+` отзывов`,1)):(r(),n(`span`,j,`Пока нет оценок`))]),t(`div`,M,[e(d(m),{bordered:!1,type:`success`,class:`status-block`},{default:u(()=>[l(` Автор: `+c(F.value.author?.username),1)]),_:1})])])])])]),e(y,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-63f4bb0b`]]),P=s({__name:`ScenarioView`,setup(e){return(e,t)=>(r(),p(N))}});export{P as default};
|
import{A as e,C as t,E as n,K as r,T as i,_ as a,ct as o,j as s,jt as c,k as l,nt as u,pt as d,u as f,w as p}from"./auth-CzuN8bsR.js";import{t as m}from"./Tag-DfP_x904.js";import{t as h}from"./use-message-R8JEzJ8f.js";import{t as g}from"./Rate-BuNWBBdn.js";import{r as _,t as v}from"./_plugin-vue_export-helper-C_XTvH5A.js";import{t as y}from"./HeaderMenu-Qspj3Vlt.js";var b={class:`center-block-custom`},x={class:`width700`},S={class:`scenario-card`},C={class:`scenario-heading`},w={class:`scenario-title`},T={class:`scenario-image-frame`},E=[`src`,`alt`],D={class:`scenario-details`},O={class:`scenario-description`},k={class:`scenario-rating`},A={key:1},j={key:2},M={class:`scenario-author`},N=v(s({__name:`ScenarioPage`,setup(s){let v=h(),N=_(),P=f().params.id,F=o({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 I(e){let t=await N.GetScenario({id:e});if(t.error!=``){v.error(t.error);return}F.value=t.scenario}return I(Number(P)),(o,s)=>(r(),n(a,null,[t(`div`,b,[t(`div`,x,[t(`section`,S,[t(`div`,C,[s[0]||=t(`p`,{class:`scenario-kicker`},`ДЕЛО ИЗ КАТАЛОГА`,-1),t(`h1`,w,c(F.value.name),1)]),t(`div`,T,[t(`img`,{class:`scenario-image`,src:F.value.image,alt:F.value.name},null,8,E)]),t(`div`,D,[t(`p`,O,c(F.value.description),1),t(`div`,k,[F.value.reviewsCount?(r(),p(d(g),{key:0,value:F.value.averageRating,readonly:``,"allow-half":``,size:`small`},null,8,[`value`])):i(``,!0),F.value.reviewsCount?(r(),n(`span`,A,c(F.value.averageRating?.toFixed(1))+` · `+c(F.value.reviewsCount)+` отзывов`,1)):(r(),n(`span`,j,`Пока нет оценок`))]),t(`div`,M,[e(d(m),{bordered:!1,type:`success`,class:`status-block`},{default:u(()=>[l(` Автор: `+c(F.value.author?.username),1)]),_:1})])])])])]),e(y,{active:`catalog`})],64))}}),[[`__scopeId`,`data-v-63f4bb0b`]]),P=s({__name:`ScenarioView`,setup(e){return(e,t)=>(r(),p(N))}});export{P 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{P as e,R as t,S as n,U as r,Y as i,_ as a,ct as o,dt as s,et as c,j as l,rt as u,tt as d}from"./auth-DetOXv90.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-BN35I8ot.js";import{a as C,i as w,n as T,o as E,r as D,t as O}from"./Follower-BqBATTTc.js";import{a as k,c as ee,i as A,n as te,o as ne,r as j,t as M,u as N}from"./utils-uz9aUEjP.js";import{f as re,o as P}from"./Card-BFXpokQN.js";import{c as ie}from"./resolve-slot-DXnJRg0o.js";import{i as ae,n as F,t as I,u as L}from"./Suffix-CutOgybq.js";import{t as R}from"./use-merged-state-Dw19ICqg.js";import{t as oe}from"./use-compitable-Ct-u1IyK.js";import{t as z}from"./Popover-MvWXFA-P.js";import{r as se}from"./keep-XDVR1tb6.js";import{n as ce,r as B}from"./use-form-item-CT1L1ziV.js";import{t as V}from"./Tag-BqKZJJ-a.js";import{E as H,J as U,K as W,Z as G,et as K,v as le}from"./index-UYw_T9_p.js";var q=`v-hidden`,ue=T(`[v-hidden]`,{display:`none!important`}),J=l({name:`Overflow`,props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:t}){let n=o(null),i=o(null);function a(r){let{value:a}=n,{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(r.showAllItemsBeforeCalculate)for(let e of l)e.hasAttribute(q)&&e.removeAttribute(q);let u=a.offsetWidth,d=[],f=t.tail?s?.():null,p=f?f.offsetWidth:0,m=!1,h=a.children.length-+!!t.tail;for(let t=0;t<h-1;++t){if(t<0)continue;let n=l[t];if(m){n.hasAttribute(q)||n.setAttribute(q,``);continue}else n.hasAttribute(q)&&n.removeAttribute(q);let r=n.offsetWidth;if(p+=r,d[t]=r,p>u){let{updateCounter:n}=e;for(let r=t;r>=0;--r){let i=h-1-r;n===void 0?c.textContent=`${i}`:n(i);let a=c.offsetWidth;if(p-=d[r],p+a<=u||r===0){m=!0,t=r-1,f&&(t===-1?(f.style.maxWidth=`${u-a}px`,f.style.boxSizing=`border-box`):f.style.maxWidth=``);let{onUpdateCount:n}=e;n&&n(i);break}}}}let{onUpdateOverflow:g}=e;m?g!==void 0&&g(!0):(g!==void 0&&g(!1),c.setAttribute(q,``))}let s=_();return ue.mount({id:`vueuc/overflow`,head:!0,anchorMetaName:D,ssr:s}),r(()=>a({showAllItemsBeforeCalculate:!1})),{selfRef:n,counterRef:i,sync:a}},render(){let{$slots:n}=this;return t(()=>this.sync({showAllItemsBeforeCalculate:!1})),e(`div`,{class:`v-overflow`,ref:`selfRef`},[i(n,`default`),n.counter?n.counter():e(`span`,{style:{display:`inline-block`},ref:`counterRef`}),n.tail?n.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{P as e,R as t,S as n,U as r,Y as i,_ as a,ct as o,dt as s,et as c,j as l,rt as u,tt as d}from"./auth-CzuN8bsR.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-Dg5iONHF.js";import{a as C,i as w,n as T,o as E,r as D,t as O}from"./Follower-BeUAmPJ4.js";import{a as k,c as ee,i as A,n as te,o as ne,r as j,t as M,u as N}from"./utils-Av1b4W6Q.js";import{f as re,o as P}from"./Card-jY6IqKWx.js";import{c as ie}from"./resolve-slot-Bgp_Mn8k.js";import{i as ae,n as F,t as I,u as L}from"./Suffix-PHRsdJdH.js";import{t as R}from"./use-merged-state-D8rNARXC.js";import{t as oe}from"./use-compitable-boC6cFiE.js";import{t as z}from"./Popover-DZnHj7OS.js";import{r as se}from"./keep-D5zQL9t4.js";import{n as ce,r as B}from"./use-form-item-DDZTyeAQ.js";import{t as V}from"./Tag-DfP_x904.js";import{E as H,J as U,K as W,Z as G,et as K,v as le}from"./index-4mSiwzFS.js";var q=`v-hidden`,ue=T(`[v-hidden]`,{display:`none!important`}),J=l({name:`Overflow`,props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:t}){let n=o(null),i=o(null);function a(r){let{value:a}=n,{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(r.showAllItemsBeforeCalculate)for(let e of l)e.hasAttribute(q)&&e.removeAttribute(q);let u=a.offsetWidth,d=[],f=t.tail?s?.():null,p=f?f.offsetWidth:0,m=!1,h=a.children.length-+!!t.tail;for(let t=0;t<h-1;++t){if(t<0)continue;let n=l[t];if(m){n.hasAttribute(q)||n.setAttribute(q,``);continue}else n.hasAttribute(q)&&n.removeAttribute(q);let r=n.offsetWidth;if(p+=r,d[t]=r,p>u){let{updateCounter:n}=e;for(let r=t;r>=0;--r){let i=h-1-r;n===void 0?c.textContent=`${i}`:n(i);let a=c.offsetWidth;if(p-=d[r],p+a<=u||r===0){m=!0,t=r-1,f&&(t===-1?(f.style.maxWidth=`${u-a}px`,f.style.boxSizing=`border-box`):f.style.maxWidth=``);let{onUpdateCount:n}=e;n&&n(i);break}}}}let{onUpdateOverflow:g}=e;m?g!==void 0&&g(!0):(g!==void 0&&g(!1),c.setAttribute(q,``))}let s=_();return ue.mount({id:`vueuc/overflow`,head:!0,anchorMetaName:D,ssr:s}),r(()=>a({showAllItemsBeforeCalculate:!1})),{selfRef:n,counterRef:i,sync:a}},render(){let{$slots:n}=this;return t(()=>this.sync({showAllItemsBeforeCalculate:!1})),e(`div`,{class:`v-overflow`,ref:`selfRef`},[i(n,`default`),n.counter?n.counter():e(`span`,{style:{display:`inline-block`},ref:`counterRef`}),n.tail?n.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-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);
|
--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;
|
position: relative;
|
||||||
@@ -1 +1 @@
|
|||||||
import{C as e,E as t,K as n,j as r}from"./auth-DetOXv90.js";var i={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},a=r({name:`Settings`,render:function(r,a){return n(),t(`svg`,i,a[0]||=[e(`path`,{d:`M27 16.76V16v-.77l1.92-1.68A2 2 0 0 0 29.3 11l-2.36-4a2 2 0 0 0-1.73-1a2 2 0 0 0-.64.1l-2.43.82a11.35 11.35 0 0 0-1.31-.75l-.51-2.52a2 2 0 0 0-2-1.61h-4.68a2 2 0 0 0-2 1.61l-.51 2.52a11.48 11.48 0 0 0-1.32.75l-2.38-.86A2 2 0 0 0 6.79 6a2 2 0 0 0-1.73 1L2.7 11a2 2 0 0 0 .41 2.51L5 15.24v1.53l-1.89 1.68A2 2 0 0 0 2.7 21l2.36 4a2 2 0 0 0 1.73 1a2 2 0 0 0 .64-.1l2.43-.82a11.35 11.35 0 0 0 1.31.75l.51 2.52a2 2 0 0 0 2 1.61h4.72a2 2 0 0 0 2-1.61l.51-2.52a11.48 11.48 0 0 0 1.32-.75l2.42.82a2 2 0 0 0 .64.1a2 2 0 0 0 1.73-1l2.28-4a2 2 0 0 0-.41-2.51zM25.21 24l-3.43-1.16a8.86 8.86 0 0 1-2.71 1.57L18.36 28h-4.72l-.71-3.55a9.36 9.36 0 0 1-2.7-1.57L6.79 24l-2.36-4l2.72-2.4a8.9 8.9 0 0 1 0-3.13L4.43 12l2.36-4l3.43 1.16a8.86 8.86 0 0 1 2.71-1.57L13.64 4h4.72l.71 3.55a9.36 9.36 0 0 1 2.7 1.57L25.21 8l2.36 4l-2.72 2.4a8.9 8.9 0 0 1 0 3.13L27.57 20z`,fill:`currentColor`},null,-1),e(`path`,{d:`M16 22a6 6 0 1 1 6-6a5.94 5.94 0 0 1-6 6zm0-10a3.91 3.91 0 0 0-4 4a3.91 3.91 0 0 0 4 4a3.91 3.91 0 0 0 4-4a3.91 3.91 0 0 0-4-4z`,fill:`currentColor`},null,-1)])}});export{a as t};
|
import{C as e,E as t,K as n,j as r}from"./auth-CzuN8bsR.js";var i={xmlns:`http://www.w3.org/2000/svg`,"xmlns:xlink":`http://www.w3.org/1999/xlink`,viewBox:`0 0 32 32`},a=r({name:`Settings`,render:function(r,a){return n(),t(`svg`,i,a[0]||=[e(`path`,{d:`M27 16.76V16v-.77l1.92-1.68A2 2 0 0 0 29.3 11l-2.36-4a2 2 0 0 0-1.73-1a2 2 0 0 0-.64.1l-2.43.82a11.35 11.35 0 0 0-1.31-.75l-.51-2.52a2 2 0 0 0-2-1.61h-4.68a2 2 0 0 0-2 1.61l-.51 2.52a11.48 11.48 0 0 0-1.32.75l-2.38-.86A2 2 0 0 0 6.79 6a2 2 0 0 0-1.73 1L2.7 11a2 2 0 0 0 .41 2.51L5 15.24v1.53l-1.89 1.68A2 2 0 0 0 2.7 21l2.36 4a2 2 0 0 0 1.73 1a2 2 0 0 0 .64-.1l2.43-.82a11.35 11.35 0 0 0 1.31.75l.51 2.52a2 2 0 0 0 2 1.61h4.72a2 2 0 0 0 2-1.61l.51-2.52a11.48 11.48 0 0 0 1.32-.75l2.42.82a2 2 0 0 0 .64.1a2 2 0 0 0 1.73-1l2.28-4a2 2 0 0 0-.41-2.51zM25.21 24l-3.43-1.16a8.86 8.86 0 0 1-2.71 1.57L18.36 28h-4.72l-.71-3.55a9.36 9.36 0 0 1-2.7-1.57L6.79 24l-2.36-4l2.72-2.4a8.9 8.9 0 0 1 0-3.13L4.43 12l2.36-4l3.43 1.16a8.86 8.86 0 0 1 2.71-1.57L13.64 4h4.72l.71 3.55a9.36 9.36 0 0 1 2.7 1.57L25.21 8l2.36 4l-2.72 2.4a8.9 8.9 0 0 1 0 3.13L27.57 20z`,fill:`currentColor`},null,-1),e(`path`,{d:`M16 22a6 6 0 1 1 6-6a5.94 5.94 0 0 1-6 6zm0-10a3.91 3.91 0 0 0-4 4a3.91 3.91 0 0 0 4 4a3.91 3.91 0 0 0 4-4a3.91 3.91 0 0 0-4-4z`,fill:`currentColor`},null,-1)])}});export{a as t};
|
||||||
@@ -1 +1 @@
|
|||||||
import{P as e,S as t,g as n,j as r}from"./auth-DetOXv90.js";import{N as i,Z as a,o,r as s}from"./light-BN35I8ot.js";import{o as c,s as l}from"./resolve-slot-DXnJRg0o.js";import{a as u,o as d}from"./Button-SFBLnAwv.js";import{t as f}from"./get-slot-6kXJmSMP.js";import{u as p}from"./index-UYw_T9_p.js";function m(){return p}var h={name:`Space`,self:m},g;function _(){if(!d)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=r({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}=l(t);return{horizontal:c(r),vertical:c(n)}})}},render(){let{vertical:t,reverse:r,align:i,inline:a,justify:o,itemClass:s,itemStyle:c,margin:l,wrap:d,mergedClsPrefix:p,rtlEnabled:m,useGap:h,wrapItem:g,internalUseGap:_}=this,v=u(f(this),!1);if(!v.length)return null;let y=`${l.horizontal}px`,b=`${l.horizontal/2}px`,x=`${l.vertical}px`,S=`${l.vertical/2}px`,C=v.length-1,w=o.startsWith(`space-`);return e(`div`,{role:`none`,class:[`${p}-space`,m&&`${p}-space--rtl`],style:{display:a?`inline-flex`:`flex`,flexDirection:t&&!r?`column`:t&&r?`column-reverse`:!t&&r?`row-reverse`:`row`,justifyContent:[`start`,`end`].includes(o)?`flex-${o}`:o,flexWrap:!d||t?`nowrap`:`wrap`,marginTop:h||t?``:`-${S}`,marginBottom:h||t?``:`-${S}`,alignItems:i,gap:h?`${l.vertical}px ${l.horizontal}px`:``}},!g&&(h||_)?v:v.map((r,i)=>r.type===n?r:e(`div`,{role:`none`,class:s,style:[c,{maxWidth:`100%`},h?``:t?{marginBottom:i===C?``:x}:m?{marginLeft:w?o===`space-between`&&i===C?``:b:i===C?``:y,marginRight:w?o===`space-between`&&i===0?``:b:``,paddingTop:S,paddingBottom:S}:{marginRight:w?o===`space-between`&&i===C?``:b:i===C?``:y,marginLeft:w?o===`space-between`&&i===0?``:b:``,paddingTop:S,paddingBottom:S}]},r)))}});export{v as t};
|
import{P as e,S as t,g as n,j as r}from"./auth-CzuN8bsR.js";import{N as i,Z as a,o,r as s}from"./light-Dg5iONHF.js";import{o as c,s as l}from"./resolve-slot-Bgp_Mn8k.js";import{a as u,o as d}from"./Button-_KVJEFbE.js";import{t as f}from"./get-slot-6kXJmSMP.js";import{u as p}from"./index-4mSiwzFS.js";function m(){return p}var h={name:`Space`,self:m},g;function _(){if(!d)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=r({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}=l(t);return{horizontal:c(r),vertical:c(n)}})}},render(){let{vertical:t,reverse:r,align:i,inline:a,justify:o,itemClass:s,itemStyle:c,margin:l,wrap:d,mergedClsPrefix:p,rtlEnabled:m,useGap:h,wrapItem:g,internalUseGap:_}=this,v=u(f(this),!1);if(!v.length)return null;let y=`${l.horizontal}px`,b=`${l.horizontal/2}px`,x=`${l.vertical}px`,S=`${l.vertical/2}px`,C=v.length-1,w=o.startsWith(`space-`);return e(`div`,{role:`none`,class:[`${p}-space`,m&&`${p}-space--rtl`],style:{display:a?`inline-flex`:`flex`,flexDirection:t&&!r?`column`:t&&r?`column-reverse`:!t&&r?`row-reverse`:`row`,justifyContent:[`start`,`end`].includes(o)?`flex-${o}`:o,flexWrap:!d||t?`nowrap`:`wrap`,marginTop:h||t?``:`-${S}`,marginBottom:h||t?``:`-${S}`,alignItems:i,gap:h?`${l.vertical}px ${l.horizontal}px`:``}},!g&&(h||_)?v:v.map((r,i)=>r.type===n?r:e(`div`,{role:`none`,class:s,style:[c,{maxWidth:`100%`},h?``:t?{marginBottom:i===C?``:x}:m?{marginLeft:w?o===`space-between`&&i===C?``:b:i===C?``:y,marginRight:w?o===`space-between`&&i===0?``:b:``,paddingTop:S,paddingBottom:S}:{marginRight:w?o===`space-between`&&i===C?``:b:i===C?``:y,marginLeft:w?o===`space-between`&&i===0?``:b:``,paddingTop:S,paddingBottom:S}]},r)))}});export{v as t};
|
||||||
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
|
|||||||
import{P as e,S as t,ct as n,dt as r,j as i,q as a}from"./auth-DetOXv90.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-BN35I8ot.js";import{a as y,c as b}from"./resolve-slot-DXnJRg0o.js";import{i as x,r as S}from"./use-form-item-CT1L1ziV.js";import{D as C,P as w}from"./index-UYw_T9_p.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:w,heightSmall:T,heightMedium:E,closeColorHover:D,closeColorPressed:O,buttonColor2Hover:k,buttonColor2Pressed:A,fontWeightStrong:j}=e;return Object.assign(Object.assign({},C),{closeBorderRadius:_,heightTiny:S,heightSmall:w,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{P as e,S as t,ct as n,dt as r,j as i,q as a}from"./auth-CzuN8bsR.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-Dg5iONHF.js";import{a as y,c as b}from"./resolve-slot-Bgp_Mn8k.js";import{i as x,r as S}from"./use-form-item-DDZTyeAQ.js";import{D as C,P as w}from"./index-4mSiwzFS.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:w,heightSmall:T,heightMedium:E,closeColorHover:D,closeColorPressed:O,buttonColor2Hover:k,buttonColor2Pressed:A,fontWeightStrong:j}=e;return Object.assign(Object.assign({},C),{closeBorderRadius:_,heightTiny:S,heightSmall:w,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);
|
--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;
|
white-space: nowrap;
|
||||||
position: relative;
|
position: relative;
|
||||||
+1
-1
@@ -1 +1 @@
|
|||||||
.belt-block[data-v-bec154c5]{background-color:#000;background-image:url(/assets/belt-DVqk2_uL.png);background-size:cover;height:100%;position:relative}.shadow[data-v-bec154c5]{background-color:#000;width:100%;height:10px;position:absolute}.shadow-top[data-v-bec154c5]{top:0;box-shadow:0 -5px 10px #000}.shadow-bottom[data-v-bec154c5]{bottom:0;box-shadow:0 5px 10px #000}.plate-block[data-v-4833fe7e]{position:relative;box-shadow:0 0 10px #000}.metal-plate-block[data-v-4833fe7e]{background-image:url(/assets/metal-BiL2PH1r.png);background-size:cover;border-radius:4px;height:100%;position:relative}.pin[data-v-4833fe7e]{background-image:url(/assets/pin-CJfldk-j.png);background-size:cover;width:7px;height:7px;position:absolute}.pin-top-left[data-v-4833fe7e]{top:3px;left:3px}.pin-top-right[data-v-4833fe7e]{top:3px;right:3px}.pin-bottom-right[data-v-4833fe7e]{bottom:3px;right:3px}.pin-bottom-left[data-v-4833fe7e]{bottom:3px;left:3px}.form-custom[data-v-4d904ded]{color:#fff;z-index:1000;width:100%;position:fixed;bottom:0;left:0}.input-form[data-v-4d904ded]{z-index:1000;max-width:1920px;height:76px;margin:0 auto;position:relative}.controller-metal[data-v-4d904ded]{width:30px;height:calc(100% + 2px);position:absolute;top:-1px}.controller-metal-left[data-v-4d904ded]{left:-30px}.controller-metal-right[data-v-4d904ded]{right:-30px}.controller[data-v-4d904ded]{display:flex;position:relative}.game-input[data-v-4d904ded]{width:calc(100% - 175px);height:50px;position:relative;top:14px;left:15px}.game-input-run[data-v-4d904ded]{background-color:#0000;background-image:url(/assets/input_center-DZZtEHaZ.png);background-size:cover;border:0;width:100%;height:100%;padding-left:27px;font-family:font_old_typer,serif;font-size:18px}.game-input-run[data-v-4d904ded]::placeholder{color:#333}.game-input-run[data-v-4d904ded]:focus{border:0;outline:none}.game-button-run-shadow[data-v-4d904ded]{width:150px;height:80px;position:absolute;top:-5px;right:10px;box-shadow:-5px 5px 10px #000}.game-button-run[data-v-4d904ded]{cursor:pointer;background-color:#0000;background-image:url(/assets/button-DdziMEJE.png);background-size:cover;border:0;width:155px;height:80px;margin:0;padding:0;font-size:1.5em;position:absolute;top:-5px;right:10px}.new-places-label[data-v-4d904ded],.all-places-label[data-v-4d904ded]{height:48px;position:absolute}.new-places-label[data-v-4d904ded]{width:40px;top:14px;left:85px}.all-places-label[data-v-4d904ded]{width:60px;top:14px;left:15px}.places-text[data-v-4d904ded]{color:#111;text-align:center;background-color:#d1cebd;background-image:url(/assets/paper-CuqvoKhN.jpg);background-size:cover;border:1px solid #9e9982;border-radius:7px;margin:0 1px;font-family:font_old_typer,serif;font-size:1.4em;display:inline-block;box-shadow:0 -2px 5px #000}.places-text-number[data-v-4d904ded]{width:18px}.counters-block[data-v-4d904ded]{margin:20px 10px 20px 5px;position:absolute;top:-40px;left:23px}.counter-block[data-v-4d904ded]{margin:5px;display:inline-block}.icon-for-counter[data-v-4d904ded]{margin:0 4px;position:relative;top:3px}@media (width>=1025px){.center-block-700[data-v-4d904ded]{width:700px;margin:0 auto}}.case-background[data-v-3fe41046]{pointer-events:none;z-index:-1;background-position:50%;background-size:cover;position:fixed;inset:0}.bottom-margin[data-v-3fe41046]{height:calc(100dvh - 76px);margin-top:0}.game-finished[data-v-3fe41046]{height:100dvh}.review-block[data-v-3fe41046]{margin-top:20px}.review-input[data-v-3fe41046]{margin-top:14px}.smooth-scroll[data-v-3fe41046]{scroll-behavior:smooth}.edit-panel[data-v-3fe41046]{background-color:#222;border-radius:10px;margin:30px 0;padding:20px}.qr-main-block[data-v-3fe41046]{justify-content:center;align-items:center;display:flex}.questions-hr[data-v-3fe41046]{border:1px dashed #000;margin:10px 0}.questions-hint[data-v-3fe41046]{color:#000}.question-item[data-v-3fe41046]{margin:15px 0}.question-text[data-v-3fe41046]{margin-bottom:6px;font-weight:500}.questions-actions[data-v-3fe41046]{margin-top:10px}.paper-button[data-v-3fe41046]{color:#bfa07d;cursor:pointer;background-image:url(/assets/belt-DVqk2_uL.png);background-size:cover;border:0;border-radius:5px;margin-top:10px;padding:5px 12px;font-family:font_old_typer,serif;font-size:16px;font-weight:600;display:inline-block}.paper-button[data-v-3fe41046]:hover{color:#63e2b7}.font[data-v-3fe41046]{font-family:font_old_typer,serif;font-size:18px}.qr-main-block-text[data-v-3fe41046]{text-align:left;margin:10px 0;font-family:font_old_typer,serif;font-size:18px}p.qr-main-block-text[data-v-3fe41046]{font-weight:500}.qr-block[data-v-3fe41046]{background-color:#fff;padding:12px;display:inline-block}
|
.belt-block[data-v-bec154c5]{background-color:#000;background-image:url(/assets/belt-DVqk2_uL.png);background-size:cover;height:100%;position:relative}.shadow[data-v-bec154c5]{background-color:#000;width:100%;height:10px;position:absolute}.shadow-top[data-v-bec154c5]{top:0;box-shadow:0 -5px 10px #000}.shadow-bottom[data-v-bec154c5]{bottom:0;box-shadow:0 5px 10px #000}.plate-block[data-v-4833fe7e]{position:relative;box-shadow:0 0 10px #000}.metal-plate-block[data-v-4833fe7e]{background-image:url(/assets/metal-BiL2PH1r.png);background-size:cover;border-radius:4px;height:100%;position:relative}.pin[data-v-4833fe7e]{background-image:url(/assets/pin-CJfldk-j.png);background-size:cover;width:7px;height:7px;position:absolute}.pin-top-left[data-v-4833fe7e]{top:3px;left:3px}.pin-top-right[data-v-4833fe7e]{top:3px;right:3px}.pin-bottom-right[data-v-4833fe7e]{bottom:3px;right:3px}.pin-bottom-left[data-v-4833fe7e]{bottom:3px;left:3px}.form-custom[data-v-4d904ded]{color:#fff;z-index:1000;width:100%;position:fixed;bottom:0;left:0}.input-form[data-v-4d904ded]{z-index:1000;max-width:1920px;height:76px;margin:0 auto;position:relative}.controller-metal[data-v-4d904ded]{width:30px;height:calc(100% + 2px);position:absolute;top:-1px}.controller-metal-left[data-v-4d904ded]{left:-30px}.controller-metal-right[data-v-4d904ded]{right:-30px}.controller[data-v-4d904ded]{display:flex;position:relative}.game-input[data-v-4d904ded]{width:calc(100% - 175px);height:50px;position:relative;top:14px;left:15px}.game-input-run[data-v-4d904ded]{background-color:#0000;background-image:url(/assets/input_center-DZZtEHaZ.png);background-size:cover;border:0;width:100%;height:100%;padding-left:27px;font-family:font_old_typer,serif;font-size:18px}.game-input-run[data-v-4d904ded]::placeholder{color:#333}.game-input-run[data-v-4d904ded]:focus{border:0;outline:none}.game-button-run-shadow[data-v-4d904ded]{width:150px;height:80px;position:absolute;top:-5px;right:10px;box-shadow:-5px 5px 10px #000}.game-button-run[data-v-4d904ded]{cursor:pointer;background-color:#0000;background-image:url(/assets/button-DdziMEJE.png);background-size:cover;border:0;width:155px;height:80px;margin:0;padding:0;font-size:1.5em;position:absolute;top:-5px;right:10px}.new-places-label[data-v-4d904ded],.all-places-label[data-v-4d904ded]{height:48px;position:absolute}.new-places-label[data-v-4d904ded]{width:40px;top:14px;left:85px}.all-places-label[data-v-4d904ded]{width:60px;top:14px;left:15px}.places-text[data-v-4d904ded]{color:#111;text-align:center;background-color:#d1cebd;background-image:url(/assets/paper-CuqvoKhN.jpg);background-size:cover;border:1px solid #9e9982;border-radius:7px;margin:0 1px;font-family:font_old_typer,serif;font-size:1.4em;display:inline-block;box-shadow:0 -2px 5px #000}.places-text-number[data-v-4d904ded]{width:18px}.counters-block[data-v-4d904ded]{margin:20px 10px 20px 5px;position:absolute;top:-40px;left:23px}.counter-block[data-v-4d904ded]{margin:5px;display:inline-block}.icon-for-counter[data-v-4d904ded]{margin:0 4px;position:relative;top:3px}@media (width>=1025px){.center-block-700[data-v-4d904ded]{width:700px;margin:0 auto}}.case-background[data-v-331e1c3b]{pointer-events:none;z-index:-1;background-position:50%;background-size:cover;position:fixed;inset:0}.bottom-margin[data-v-331e1c3b]{height:calc(100dvh - 76px);margin-top:0}.game-finished[data-v-331e1c3b]{height:100dvh}.review-block[data-v-331e1c3b]{margin-top:20px}.review-rating[data-v-331e1c3b]{margin-top:20px;margin-bottom:6px}.review-rate[data-v-331e1c3b]{margin-top:4px;margin-bottom:8px}.review-input[data-v-331e1c3b]{margin-top:14px}.smooth-scroll[data-v-331e1c3b]{scroll-behavior:smooth}.edit-panel[data-v-331e1c3b]{background-color:#222;border-radius:10px;margin:30px 0;padding:20px}.qr-main-block[data-v-331e1c3b]{justify-content:center;align-items:center;display:flex}.questions-hr[data-v-331e1c3b]{border:1px dashed #000;margin:10px 0}.questions-hint[data-v-331e1c3b]{color:#000}.question-item[data-v-331e1c3b]{margin:15px 0}.question-text[data-v-331e1c3b]{margin-bottom:6px;font-weight:500}.questions-actions[data-v-331e1c3b]{margin-top:10px}.paper-button[data-v-331e1c3b]{color:#bfa07d;cursor:pointer;background-image:url(/assets/belt-DVqk2_uL.png);background-size:cover;border:0;border-radius:5px;margin-top:10px;padding:5px 12px;font-family:font_old_typer,serif;font-size:16px;font-weight:600;display:inline-block}.paper-button[data-v-331e1c3b]:hover{color:#63e2b7}.font[data-v-331e1c3b]{font-family:font_old_typer,serif;font-size:18px}.qr-main-block-text[data-v-331e1c3b]{text-align:left;margin:10px 0;font-family:font_old_typer,serif;font-size:18px}p.qr-main-block-text[data-v-331e1c3b]{font-weight:500}.qr-block[data-v-331e1c3b]{background-color:#fff;padding:12px;display:inline-block}
|
||||||
+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
@@ -0,0 +1 @@
|
|||||||
|
import{A as e,E as t,K as n,_ as r,j as i}from"./auth-CzuN8bsR.js";import{t as a}from"./DocsPage-4nGaYJI1.js";import{t as o}from"./HeaderMenu-Qspj3Vlt.js";var s=i({__name:`UserAgreementView`,setup(i){return(i,s)=>(n(),t(r,null,[e(a,{kind:`terms`}),e(o)],64))}});export{s as default};
|
||||||
-1
@@ -1 +0,0 @@
|
|||||||
import{A as e,E as t,K as n,_ as r,j as i}from"./auth-DetOXv90.js";import{t as a}from"./DocsPage-DzX4rZ9-.js";import{t as o}from"./HeaderMenu-BV7MwsiN.js";var s=i({__name:`UserAgreementView`,setup(i){return(i,s)=>(n(),t(r,null,[e(a,{kind:`terms`}),e(o)],64))}});export{s as default};
|
|
||||||
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import{B as e,F as t,P as n,S as r,Y as i,a,f as o,j as s,q as c,r as l,t as u}from"./auth-DetOXv90.js";function d(){let e=u();return f(e.refreshTokenAction,e.getToken)}function f(e,t){return a(p(e,l(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{B as e,F as t,P as n,S as r,Y as i,a,f as o,j as s,q as c,r as l,t as u}from"./auth-CzuN8bsR.js";function d(){let e=u();return f(e.refreshTokenAction,e.getToken)}function f(e,t){return a(p(e,l(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(`
|
`+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+` {
|
`+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{i as e}from"./auth-DetOXv90.js";function t(e){let t=e?.file_type;if(t===`pdf`||t===`image`||t===`audio`)return t;let n=(e?.image||``).toLowerCase();return/\.pdf($|\?)/.test(n)?`pdf`:/\.(mp3|wav|ogg|m4a|aac|flac|opus)($|\?)/.test(n)?`audio`:/\.(png|jpe?g|gif|webp|bmp|svg)($|\?)/.test(n)?`image`:``}function n(t){if(!t)return``;let n=t.toLowerCase();return n.startsWith(`http://`)||n.startsWith(`https://`)?t:t.startsWith(`/`)?e()+t:`${e()}/api/files/${t}`}function r(e){return e?e.split(`/`).pop()||e:``}export{t as n,n as r,r as t};
|
import{i as e}from"./auth-CzuN8bsR.js";function t(e){let t=e?.file_type;if(t===`pdf`||t===`image`||t===`audio`)return t;let n=(e?.image||``).toLowerCase();return/\.pdf($|\?)/.test(n)?`pdf`:/\.(mp3|wav|ogg|m4a|aac|flac|opus)($|\?)/.test(n)?`audio`:/\.(png|jpe?g|gif|webp|bmp|svg)($|\?)/.test(n)?`image`:``}function n(t){if(!t)return``;let n=t.toLowerCase();return n.startsWith(`http://`)||n.startsWith(`https://`)?t:t.startsWith(`/`)?e()+t:`${e()}/api/files/${t}`}function r(e){return e?e.split(`/`).pop()||e:``}export{t as n,n as r,r as t};
|
||||||
File diff suppressed because one or more lines are too long
+1
-1
@@ -1 +1 @@
|
|||||||
import{i as e,t}from"./auth-DetOXv90.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{i as e,t}from"./auth-CzuN8bsR.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 +1 @@
|
|||||||
import{G as e,a as t}from"./light-BN35I8ot.js";var{cubicBezierEaseInOut:n}=t;function r({name:t=`fade-in`,enterDuration:r=`0.2s`,leaveDuration:i=`0.2s`,enterCubicBezier:a=n,leaveCubicBezier:o=n}={}){return[e(`&.${t}-transition-enter-active`,{transition:`all ${r} ${a}!important`}),e(`&.${t}-transition-leave-active`,{transition:`all ${i} ${o}!important`}),e(`&.${t}-transition-enter-from, &.${t}-transition-leave-to`,{opacity:0}),e(`&.${t}-transition-leave-from, &.${t}-transition-enter-to`,{opacity:1})]}export{r as t};
|
import{G as e,a as t}from"./light-Dg5iONHF.js";var{cubicBezierEaseInOut:n}=t;function r({name:t=`fade-in`,enterDuration:r=`0.2s`,leaveDuration:i=`0.2s`,enterCubicBezier:a=n,leaveCubicBezier:o=n}={}){return[e(`&.${t}-transition-enter-active`,{transition:`all ${r} ${a}!important`}),e(`&.${t}-transition-leave-active`,{transition:`all ${i} ${o}!important`}),e(`&.${t}-transition-enter-from, &.${t}-transition-leave-to`,{opacity:0}),e(`&.${t}-transition-leave-from, &.${t}-transition-enter-to`,{opacity:1})]}export{r as t};
|
||||||
@@ -1 +1 @@
|
|||||||
import{D as e,d as t}from"./light-BN35I8ot.js";import{G as n,U as r}from"./index-UYw_T9_p.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-Dg5iONHF.js";import{G as n,U as r}from"./index-4mSiwzFS.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{P as e,U as t,V as n,_ as r,ct as i,et as a,j as o}from"./auth-DetOXv90.js";import{d as s,f as c,u as l}from"./Card-BFXpokQN.js";import{X as u}from"./index-UYw_T9_p.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(e){let r=u(),o=i(null),f=i(null),h=!1,g=!1,v=typeof document>`u`?null:document.activeElement;function y(){return _[_.length-1]===r}function b(t){var n;t.code===`Escape`&&y()&&((n=e.onEsc)==null||n.call(e,t))}t(()=>{a(()=>e.active,e=>{e?(C(),s(`keydown`,document,b)):(l(`keydown`,document,b),h&&w())},{immediate:!0})}),n(()=>{l(`keydown`,document,b),h&&w()});function x(e){if(!g&&y()){let t=S();if(t===null||t.contains(c(e)))return;T(`first`)}}function S(){let e=o.value;if(e===null)return null;let t=e;for(;t=t.nextSibling,!(t===null||t instanceof Element&&t.tagName===`DIV`););return t}function C(){var t;if(!e.disabled){if(_.push(r),e.autoFocus){let{initialFocusTo:n}=e;n===void 0?T(`first`):(t=d(n))==null||t.focus({preventScroll:!0})}h=!0,document.addEventListener(`focus`,x,!0)}}function w(){var t;if(e.disabled||(document.removeEventListener(`focus`,x,!0),_=_.filter(e=>e!==r),y()))return;let{finalFocusTo:n}=e;n===void 0?e.returnFocusOnDeactivated&&v instanceof HTMLElement&&(g=!0,v.focus({preventScroll:!0}),g=!1):(t=d(n))==null||t.focus({preventScroll:!0})}function T(t){if(y()&&e.active){let e=o.value,n=f.value;if(e!==null&&n!==null){let r=S();if(r==null||r===n){g=!0,e.focus({preventScroll:!0}),g=!1;return}g=!0;let i=t===`first`?p(r):m(r);g=!1,i||(g=!0,e.focus({preventScroll:!0}),g=!1)}}}function E(e){if(g)return;let t=S();t!==null&&(e.relatedTarget!==null&&t.contains(e.relatedTarget)?T(`last`):T(`first`))}function D(e){g||(e.relatedTarget!==null&&e.relatedTarget===o.value?T(`last`):T(`first`))}return{focusableStartRef:o,focusableEndRef:f,focusableStyle:`position: absolute; height: 0; width: 0;`,handleStartFocus:E,handleEndFocus:D}},render(){let{default:t}=this.$slots;if(t===void 0)return null;if(this.disabled)return t();let{active:n,focusableStyle:i}=this;return e(r,null,[e(`div`,{"aria-hidden":`true`,tabindex:n?`0`:`-1`,ref:`focusableStartRef`,style:i,onFocus:this.handleStartFocus}),t(),e(`div`,{"aria-hidden":`true`,style:i,ref:`focusableEndRef`,tabindex:n?`0`:`-1`,onFocus:this.handleEndFocus})])}}),y=new WeakSet;function b(e){y.add(e)}function x(e){return!y.has(e)}function S(e,t=[],n){let r={};return t.forEach(t=>{r[t]=e[t]}),Object.assign(r,n)}export{v as i,x as n,b as r,S as t};
|
import{P as e,U as t,V as n,_ as r,ct as i,et as a,j as o}from"./auth-CzuN8bsR.js";import{d as s,f as c,u as l}from"./Card-jY6IqKWx.js";import{X as u}from"./index-4mSiwzFS.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(e){let r=u(),o=i(null),f=i(null),h=!1,g=!1,v=typeof document>`u`?null:document.activeElement;function y(){return _[_.length-1]===r}function b(t){var n;t.code===`Escape`&&y()&&((n=e.onEsc)==null||n.call(e,t))}t(()=>{a(()=>e.active,e=>{e?(C(),s(`keydown`,document,b)):(l(`keydown`,document,b),h&&w())},{immediate:!0})}),n(()=>{l(`keydown`,document,b),h&&w()});function x(e){if(!g&&y()){let t=S();if(t===null||t.contains(c(e)))return;T(`first`)}}function S(){let e=o.value;if(e===null)return null;let t=e;for(;t=t.nextSibling,!(t===null||t instanceof Element&&t.tagName===`DIV`););return t}function C(){var t;if(!e.disabled){if(_.push(r),e.autoFocus){let{initialFocusTo:n}=e;n===void 0?T(`first`):(t=d(n))==null||t.focus({preventScroll:!0})}h=!0,document.addEventListener(`focus`,x,!0)}}function w(){var t;if(e.disabled||(document.removeEventListener(`focus`,x,!0),_=_.filter(e=>e!==r),y()))return;let{finalFocusTo:n}=e;n===void 0?e.returnFocusOnDeactivated&&v instanceof HTMLElement&&(g=!0,v.focus({preventScroll:!0}),g=!1):(t=d(n))==null||t.focus({preventScroll:!0})}function T(t){if(y()&&e.active){let e=o.value,n=f.value;if(e!==null&&n!==null){let r=S();if(r==null||r===n){g=!0,e.focus({preventScroll:!0}),g=!1;return}g=!0;let i=t===`first`?p(r):m(r);g=!1,i||(g=!0,e.focus({preventScroll:!0}),g=!1)}}}function E(e){if(g)return;let t=S();t!==null&&(e.relatedTarget!==null&&t.contains(e.relatedTarget)?T(`last`):T(`first`))}function D(e){g||(e.relatedTarget!==null&&e.relatedTarget===o.value?T(`last`):T(`first`))}return{focusableStartRef:o,focusableEndRef:f,focusableStyle:`position: absolute; height: 0; width: 0;`,handleStartFocus:E,handleEndFocus:D}},render(){let{default:t}=this.$slots;if(t===void 0)return null;if(this.disabled)return t();let{active:n,focusableStyle:i}=this;return e(r,null,[e(`div`,{"aria-hidden":`true`,tabindex:n?`0`:`-1`,ref:`focusableStartRef`,style:i,onFocus:this.handleStartFocus}),t(),e(`div`,{"aria-hidden":`true`,style:i,ref:`focusableEndRef`,tabindex:n?`0`:`-1`,onFocus:this.handleEndFocus})])}}),y=new WeakSet;function b(e){y.add(e)}function x(e){return!y.has(e)}function S(e,t=[],n){let r={};return t.forEach(t=>{r[t]=e[t]}),Object.assign(r,n)}export{v as i,x as n,b as r,S as t};
|
||||||
@@ -1 +1 @@
|
|||||||
import{t as e}from"./light-BN35I8ot.js";var t={railInsetHorizontalBottom:`auto 2px 4px 2px`,railInsetHorizontalTop:`4px 2px auto 2px`,railInsetVerticalRight:`2px 4px 2px auto`,railInsetVerticalLeft:`2px auto 2px 4px`,railColor:`transparent`};function n(e){let{scrollbarColor:n,scrollbarColorHover:r,scrollbarHeight:i,scrollbarWidth:a,scrollbarBorderRadius:o}=e;return Object.assign(Object.assign({},t),{height:i,width:a,borderRadius:o,color:n,colorHover:r})}var r={name:`Scrollbar`,common:e,self:n},i={paddingSmall:`12px 16px 12px`,paddingMedium:`19px 24px 20px`,paddingLarge:`23px 32px 24px`,paddingHuge:`27px 40px 28px`,titleFontSizeSmall:`16px`,titleFontSizeMedium:`18px`,titleFontSizeLarge:`18px`,titleFontSizeHuge:`18px`,closeIconSize:`18px`,closeSize:`22px`};function a(e){let{primaryColor:t,borderRadius:n,lineHeight:r,fontSize:a,cardColor:o,textColor2:s,textColor1:c,dividerColor:l,fontWeightStrong:u,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:p,closeColorHover:m,closeColorPressed:h,modalColor:g,boxShadow1:_,popoverColor:v,actionColor:y}=e;return Object.assign(Object.assign({},i),{lineHeight:r,color:o,colorModal:g,colorPopover:v,colorTarget:t,colorEmbedded:y,colorEmbeddedModal:y,colorEmbeddedPopover:y,textColor:s,titleTextColor:c,borderColor:l,actionColor:y,titleFontWeight:u,closeColorHover:m,closeColorPressed:h,closeBorderRadius:n,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:p,fontSizeSmall:a,fontSizeMedium:a,fontSizeLarge:a,fontSizeHuge:a,boxShadow:_,borderRadius:n})}var o={name:`Card`,common:e,self:a};export{n as i,a as n,r,o as t};
|
import{t as e}from"./light-Dg5iONHF.js";var t={railInsetHorizontalBottom:`auto 2px 4px 2px`,railInsetHorizontalTop:`4px 2px auto 2px`,railInsetVerticalRight:`2px 4px 2px auto`,railInsetVerticalLeft:`2px auto 2px 4px`,railColor:`transparent`};function n(e){let{scrollbarColor:n,scrollbarColorHover:r,scrollbarHeight:i,scrollbarWidth:a,scrollbarBorderRadius:o}=e;return Object.assign(Object.assign({},t),{height:i,width:a,borderRadius:o,color:n,colorHover:r})}var r={name:`Scrollbar`,common:e,self:n},i={paddingSmall:`12px 16px 12px`,paddingMedium:`19px 24px 20px`,paddingLarge:`23px 32px 24px`,paddingHuge:`27px 40px 28px`,titleFontSizeSmall:`16px`,titleFontSizeMedium:`18px`,titleFontSizeLarge:`18px`,titleFontSizeHuge:`18px`,closeIconSize:`18px`,closeSize:`22px`};function a(e){let{primaryColor:t,borderRadius:n,lineHeight:r,fontSize:a,cardColor:o,textColor2:s,textColor1:c,dividerColor:l,fontWeightStrong:u,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:p,closeColorHover:m,closeColorPressed:h,modalColor:g,boxShadow1:_,popoverColor:v,actionColor:y}=e;return Object.assign(Object.assign({},i),{lineHeight:r,color:o,colorModal:g,colorPopover:v,colorTarget:t,colorEmbedded:y,colorEmbeddedModal:y,colorEmbeddedPopover:y,textColor:s,titleTextColor:c,borderColor:l,actionColor:y,titleFontWeight:u,closeColorHover:m,closeColorPressed:h,closeBorderRadius:n,closeIconColor:d,closeIconColorHover:f,closeIconColorPressed:p,fontSizeSmall:a,fontSizeMedium:a,fontSizeLarge:a,fontSizeHuge:a,boxShadow:_,borderRadius:n})}var o={name:`Card`,common:e,self:a};export{n as i,a as n,r,o as t};
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import{B as e,F as t,S as n,ct as r,f as i,lt as a,tt as o}from"./auth-DetOXv90.js";function s(e){let t=`.`,n=`__`,r=`--`,i;if(e){let i=e.blockPrefix;i&&(t=i),i=e.elementPrefix,i&&(n=i),i=e.modifierPrefix,i&&(r=i)}let a={install(e){i=e.c;let t=e.context;t.bem={},t.bem.b=null,t.bem.els=null}};function o(e){let n,r;return{before(e){n=e.bem.b,r=e.bem.els,e.bem.els=null},after(e){e.bem.b=n,e.bem.els=r},$({context:n,props:r}){return e=typeof e==`string`?e:e({context:n,props:r}),n.bem.b=e,`${r?.bPrefix||t}${n.bem.b}`}}}function s(e){let r;return{before(e){r=e.bem.els},after(e){e.bem.els=r},$({context:r,props:i}){return e=typeof e==`string`?e:e({context:r,props:i}),r.bem.els=e.split(`,`).map(e=>e.trim()),r.bem.els.map(e=>`${i?.bPrefix||t}${r.bem.b}${n}${e}`).join(`, `)}}}function c(e){return{$({context:i,props:a}){e=typeof e==`string`?e:e({context:i,props:a});let o=e.split(`,`).map(e=>e.trim());function s(e){return o.map(o=>`&${a?.bPrefix||t}${i.bem.b}${e===void 0?``:`${n}${e}`}${r}${o}`).join(`, `)}let c=i.bem.els;return c===null?s():s(c[0])}}}function l(e){return{$({context:i,props:a}){e=typeof e==`string`?e:e({context:i,props:a});let o=i.bem.els;return`&:not(${a?.bPrefix||t}${i.bem.b}${o!==null&&o.length>0?`${n}${o[0]}`:``}${r}${e})`}}}return Object.assign(a,{cB:((...e)=>i(o(e[0]),e[1],e[2])),cE:((...e)=>i(s(e[0]),e[1],e[2])),cM:((...e)=>i(c(e[0]),e[1],e[2])),cNotM:((...e)=>i(l(e[0]),e[1],e[2]))}),a}function c(e){let t=0;for(let n=0;n<e.length;++n)e[n]===`&`&&++t;return t}var l=/\s*,(?![^(]*\))\s*/g,u=/\s+/g;function d(e,t){let n=[];return t.split(l).forEach(t=>{let r=c(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 f(e,t){let n=[];return t.split(l).forEach(t=>{e.forEach(e=>{n.push((e&&e+` `)+t)})}),n}function p(e){let t=[``];return e.forEach(e=>{e&&=e.trim(),e&&(t=e.includes(`&`)?d(t,e):f(t,e))}),t.join(`, `).replace(u,` `)}function m(e){if(!e)return;let t=e.parentElement;t&&t.removeChild(e)}function h(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function ee(e){let t=document.createElement(`style`);return t.setAttribute(`cssr-id`,e),t}function g(e){return e?/^\s*@(s|m)/.test(e):!1}var te=/[A-Z]/g;function _(e){return e.replace(te,e=>`-`+e.toLowerCase())}function ne(e,t=` `){return typeof e==`object`&&e?` {
|
import{B as e,F as t,S as n,ct as r,f as i,lt as a,tt as o}from"./auth-CzuN8bsR.js";function s(e){let t=`.`,n=`__`,r=`--`,i;if(e){let i=e.blockPrefix;i&&(t=i),i=e.elementPrefix,i&&(n=i),i=e.modifierPrefix,i&&(r=i)}let a={install(e){i=e.c;let t=e.context;t.bem={},t.bem.b=null,t.bem.els=null}};function o(e){let n,r;return{before(e){n=e.bem.b,r=e.bem.els,e.bem.els=null},after(e){e.bem.b=n,e.bem.els=r},$({context:n,props:r}){return e=typeof e==`string`?e:e({context:n,props:r}),n.bem.b=e,`${r?.bPrefix||t}${n.bem.b}`}}}function s(e){let r;return{before(e){r=e.bem.els},after(e){e.bem.els=r},$({context:r,props:i}){return e=typeof e==`string`?e:e({context:r,props:i}),r.bem.els=e.split(`,`).map(e=>e.trim()),r.bem.els.map(e=>`${i?.bPrefix||t}${r.bem.b}${n}${e}`).join(`, `)}}}function c(e){return{$({context:i,props:a}){e=typeof e==`string`?e:e({context:i,props:a});let o=e.split(`,`).map(e=>e.trim());function s(e){return o.map(o=>`&${a?.bPrefix||t}${i.bem.b}${e===void 0?``:`${n}${e}`}${r}${o}`).join(`, `)}let c=i.bem.els;return c===null?s():s(c[0])}}}function l(e){return{$({context:i,props:a}){e=typeof e==`string`?e:e({context:i,props:a});let o=i.bem.els;return`&:not(${a?.bPrefix||t}${i.bem.b}${o!==null&&o.length>0?`${n}${o[0]}`:``}${r}${e})`}}}return Object.assign(a,{cB:((...e)=>i(o(e[0]),e[1],e[2])),cE:((...e)=>i(s(e[0]),e[1],e[2])),cM:((...e)=>i(c(e[0]),e[1],e[2])),cNotM:((...e)=>i(l(e[0]),e[1],e[2]))}),a}function c(e){let t=0;for(let n=0;n<e.length;++n)e[n]===`&`&&++t;return t}var l=/\s*,(?![^(]*\))\s*/g,u=/\s+/g;function d(e,t){let n=[];return t.split(l).forEach(t=>{let r=c(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 f(e,t){let n=[];return t.split(l).forEach(t=>{e.forEach(e=>{n.push((e&&e+` `)+t)})}),n}function p(e){let t=[``];return e.forEach(e=>{e&&=e.trim(),e&&(t=e.includes(`&`)?d(t,e):f(t,e))}),t.join(`, `).replace(u,` `)}function m(e){if(!e)return;let t=e.parentElement;t&&t.removeChild(e)}function h(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function ee(e){let t=document.createElement(`style`);return t.setAttribute(`cssr-id`,e),t}function g(e){return e?/^\s*@(s|m)/.test(e):!1}var te=/[A-Z]/g;function _(e){return e.replace(te,e=>`-`+e.toLowerCase())}function ne(e,t=` `){return typeof e==`object`&&e?` {
|
||||||
`+Object.entries(e).map(e=>t+` ${_(e[0])}: ${e[1]};`).join(`
|
`+Object.entries(e).map(e=>t+` ${_(e[0])}: ${e[1]};`).join(`
|
||||||
`)+`
|
`)+`
|
||||||
`+t+`}`:`: ${e};`}function re(e,t,n){return typeof e==`function`?e({context:t.context,props:n}):e}function ie(e,t,n,r){if(!t)return``;let i=re(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+` {
|
`+t+`}`:`: ${e};`}function re(e,t,n){return typeof e==`function`?e({context:t.context,props:n}):e}function ie(e,t,n,r){if(!t)return``;let i=re(t,n,r);if(!i)return``;if(typeof i==`string`)return`${e} {\n${i}\n}`;let a=Object.keys(i);if(a.length===0)return n.config.keepEmptyBlock?e+` {
|
||||||
+1
-1
@@ -1 +1 @@
|
|||||||
import{I as e,_ as t,g as n}from"./auth-DetOXv90.js";function r(e){return typeof e==`string`?e.endsWith(`px`)?Number(e.slice(0,e.length-2)):Number(e):e}function i(e){if(e!=null)return typeof e==`number`?`${e}px`:e.endsWith(`px`)?e:`${e}px`}function a(e,t){let n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw Error(`[seemly/getMargin]:`+e+` is not a valid value.`)}return t===void 0?r:r[t]}function o(e,t){let[n,r]=e.split(` `);return t?t===`row`?n:r:{row:n,col:r||n}}function s(r){return r.some(r=>e(r)?!(r.type===n||r.type===t&&!s(r.children)):!0)?r:null}function c(e,t){return e&&s(e())||t()}function l(e,t,n){return e&&s(e(t))||n(t)}function u(e,t){return t(e&&s(e())||null)}function d(e){return!(e&&s(e()))}export{u as a,a as c,l as i,i as l,d as n,r as o,c as r,o as s,s as t};
|
import{I as e,_ as t,g as n}from"./auth-CzuN8bsR.js";function r(e){return typeof e==`string`?e.endsWith(`px`)?Number(e.slice(0,e.length-2)):Number(e):e}function i(e){if(e!=null)return typeof e==`number`?`${e}px`:e.endsWith(`px`)?e:`${e}px`}function a(e,t){let n=e.trim().split(/\s+/g),r={top:n[0]};switch(n.length){case 1:r.right=n[0],r.bottom=n[0],r.left=n[0];break;case 2:r.right=n[1],r.left=n[1],r.bottom=n[0];break;case 3:r.right=n[1],r.bottom=n[2],r.left=n[1];break;case 4:r.right=n[1],r.bottom=n[2],r.left=n[3];break;default:throw Error(`[seemly/getMargin]:`+e+` is not a valid value.`)}return t===void 0?r:r[t]}function o(e,t){let[n,r]=e.split(` `);return t?t===`row`?n:r:{row:n,col:r||n}}function s(r){return r.some(r=>e(r)?!(r.type===n||r.type===t&&!s(r.children)):!0)?r:null}function c(e,t){return e&&s(e())||t()}function l(e,t,n){return e&&s(e(t))||n(t)}function u(e,t){return t(e&&s(e())||null)}function d(e){return!(e&&s(e()))}export{u as a,a as c,l as i,i as l,d as n,r as o,c as r,o as s,s as t};
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import{P as e,S as t,j as n}from"./auth-DetOXv90.js";import{K as r,M as i,N as a,Y as o,Z as s,r as c}from"./light-BN35I8ot.js";import{t as l}from"./use-compitable-Ct-u1IyK.js";import{r as u}from"./index-UYw_T9_p.js";var d=r(`text`,`
|
import{P as e,S as t,j as n}from"./auth-CzuN8bsR.js";import{K as r,M as i,N as a,Y as o,Z as s,r as c}from"./light-Dg5iONHF.js";import{t as l}from"./use-compitable-boC6cFiE.js";import{r as u}from"./index-4mSiwzFS.js";var d=r(`text`,`
|
||||||
transition: color .3s var(--n-bezier);
|
transition: color .3s var(--n-bezier);
|
||||||
color: var(--n-text-color);
|
color: var(--n-text-color);
|
||||||
`,[o(`strong`,`
|
`,[o(`strong`,`
|
||||||
+1
-1
@@ -1 +1 @@
|
|||||||
import{S as e}from"./auth-DetOXv90.js";function t(t,n){return e(()=>{for(let e of n)if(t[e]!==void 0)return t[e];return t[n[n.length-1]]})}export{t};
|
import{S as e}from"./auth-CzuN8bsR.js";function t(t,n){return e(()=>{for(let e of n)if(t[e]!==void 0)return t[e];return t[n[n.length-1]]})}export{t};
|
||||||
+1
-1
@@ -1 +1 @@
|
|||||||
import{F as e,S as t,V as n,q as r}from"./auth-DetOXv90.js";import{z as i}from"./light-BN35I8ot.js";function a(e){return e.replace(/#|\(|\)|,|\s|\./g,`_`)}function o(e,...t){if(Array.isArray(e))e.forEach(e=>o(e,...t));else return e(...t)}var s=i(`n-form-item`);function c(i,{defaultSize:a=`medium`,mergedSize:o,mergedDisabled:c}={}){let l=e(s,null);r(s,null);let u=t(o?()=>o(l):()=>{let{size:e}=i;if(e)return e;if(l){let{mergedSize:e}=l;if(e.value!==void 0)return e.value}return a}),d=t(c?()=>c(l):()=>{let{disabled:e}=i;return e===void 0?l?l.disabled.value:!1:e}),f=t(()=>{let{status:e}=i;return e||l?.mergedValidationStatus.value});return n(()=>{l&&l.restoreValidation()}),{mergedSizeRef:u,mergedDisabledRef:d,mergedStatusRef:f,nTriggerFormBlur(){l&&l.handleContentBlur()},nTriggerFormChange(){l&&l.handleContentChange()},nTriggerFormFocus(){l&&l.handleContentFocus()},nTriggerFormInput(){l&&l.handleContentInput()}}}export{a as i,c as n,o as r,s as t};
|
import{F as e,S as t,V as n,q as r}from"./auth-CzuN8bsR.js";import{z as i}from"./light-Dg5iONHF.js";function a(e){return e.replace(/#|\(|\)|,|\s|\./g,`_`)}function o(e,...t){if(Array.isArray(e))e.forEach(e=>o(e,...t));else return e(...t)}var s=i(`n-form-item`);function c(i,{defaultSize:a=`medium`,mergedSize:o,mergedDisabled:c}={}){let l=e(s,null);r(s,null);let u=t(o?()=>o(l):()=>{let{size:e}=i;if(e)return e;if(l){let{mergedSize:e}=l;if(e.value!==void 0)return e.value}return a}),d=t(c?()=>c(l):()=>{let{disabled:e}=i;return e===void 0?l?l.disabled.value:!1:e}),f=t(()=>{let{status:e}=i;return e||l?.mergedValidationStatus.value});return n(()=>{l&&l.restoreValidation()}),{mergedSizeRef:u,mergedDisabledRef:d,mergedStatusRef:f,nTriggerFormBlur(){l&&l.handleContentBlur()},nTriggerFormChange(){l&&l.handleContentChange()},nTriggerFormFocus(){l&&l.handleContentFocus()},nTriggerFormInput(){l&&l.handleContentInput()}}}export{a as i,c as n,o as r,s as t};
|
||||||
+1
-1
@@ -1 +1 @@
|
|||||||
import{S as e,et as t}from"./auth-DetOXv90.js";function n(n,r){return t(n,e=>{e!==void 0&&(r.value=e)}),e(()=>n.value===void 0?r.value:n.value)}export{n as t};
|
import{S as e,et as t}from"./auth-CzuN8bsR.js";function n(n,r){return t(n,e=>{e!==void 0&&(r.value=e)}),e(()=>n.value===void 0?r.value:n.value)}export{n as t};
|
||||||
@@ -1 +1 @@
|
|||||||
import{F as e}from"./auth-DetOXv90.js";import{I as t}from"./light-BN35I8ot.js";import{f as n}from"./index-UYw_T9_p.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{F as e}from"./auth-CzuN8bsR.js";import{I as t}from"./light-Dg5iONHF.js";import{f as n}from"./index-4mSiwzFS.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};
|
||||||
+1
-1
@@ -1 +1 @@
|
|||||||
import{U as e,W as t,ct as n}from"./auth-DetOXv90.js";function r(r,i=5e3){let a=n(!0),o=null,s=()=>{a.value=!0,r(),o=window.setInterval(r,i)},c=()=>{a.value=!1,o&&=(clearInterval(o),null)};return e(s),t(c),{isActive:a,start:s,stop:c}}export{r as t};
|
import{U as e,W as t,ct as n}from"./auth-CzuN8bsR.js";function r(r,i=5e3){let a=n(!0),o=null,s=()=>{a.value=!0,r(),o=window.setInterval(r,i)},c=()=>{a.value=!1,o&&=(clearInterval(o),null)};return e(s),t(c),{isActive:a,start:s,stop:c}}export{r as t};
|
||||||
File diff suppressed because one or more lines are too long
Vendored
+4
-4
@@ -5,10 +5,10 @@
|
|||||||
<link rel="icon" href="/favicon.ico" />
|
<link rel="icon" href="/favicon.ico" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>Вечерний детектив</title>
|
<title>Вечерний детектив</title>
|
||||||
<script type="module" crossorigin src="/assets/index-UYw_T9_p.js"></script>
|
<script type="module" crossorigin src="/assets/index-4mSiwzFS.js"></script>
|
||||||
<link rel="modulepreload" crossorigin href="/assets/auth-DetOXv90.js">
|
<link rel="modulepreload" crossorigin href="/assets/auth-CzuN8bsR.js">
|
||||||
<link rel="modulepreload" crossorigin href="/assets/light-BN35I8ot.js">
|
<link rel="modulepreload" crossorigin href="/assets/light-Dg5iONHF.js">
|
||||||
<link rel="modulepreload" crossorigin href="/assets/light-EjSCIEMB.js">
|
<link rel="modulepreload" crossorigin href="/assets/light-Cn9TVfcC.js">
|
||||||
<link rel="stylesheet" crossorigin href="/assets/index-CF62QB4P.css">
|
<link rel="stylesheet" crossorigin href="/assets/index-CF62QB4P.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
+24
-11
@@ -705,6 +705,16 @@ service EveningDetectiveServer {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
rpc GetReviewsForModeration(GetReviewsForModerationReq) returns (GetGameReviewsRsp) {
|
||||||
|
option (google.api.http) = {
|
||||||
|
get: "/api/admin/game-reviews"
|
||||||
|
};
|
||||||
|
option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_operation) = {
|
||||||
|
tags : "Отзывы"
|
||||||
|
summary: "Получить общую очередь отзывов"
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
rpc ModerateGameReview(ModerateGameReviewReq) returns (ModerateGameReviewRsp) {
|
rpc ModerateGameReview(ModerateGameReviewReq) returns (ModerateGameReviewRsp) {
|
||||||
option (google.api.http) = {
|
option (google.api.http) = {
|
||||||
put : "/api/admin/game-reviews/{id}"
|
put : "/api/admin/game-reviews/{id}"
|
||||||
@@ -1110,18 +1120,18 @@ message GetScenarioRsp {
|
|||||||
}
|
}
|
||||||
|
|
||||||
message Scenario {
|
message Scenario {
|
||||||
int32 id = 1;
|
int32 id = 1;
|
||||||
string name = 2;
|
string name = 2;
|
||||||
optional string description = 3;
|
optional string description = 3;
|
||||||
optional string image = 4;
|
optional string image = 4;
|
||||||
Story story = 5;
|
Story story = 5;
|
||||||
string status = 6;
|
string status = 6;
|
||||||
User author = 7;
|
User author = 7;
|
||||||
google.protobuf.Timestamp updated_at = 8;
|
google.protobuf.Timestamp updated_at = 8;
|
||||||
google.protobuf.Timestamp created_at = 9;
|
google.protobuf.Timestamp created_at = 9;
|
||||||
google.protobuf.Timestamp published_at = 10;
|
google.protobuf.Timestamp published_at = 10;
|
||||||
double average_rating = 11;
|
double average_rating = 11;
|
||||||
int32 reviews_count = 12;
|
int32 reviews_count = 12;
|
||||||
}
|
}
|
||||||
|
|
||||||
message Story {
|
message Story {
|
||||||
@@ -1624,6 +1634,7 @@ message GameReview {
|
|||||||
string text = 6;
|
string text = 6;
|
||||||
string status = 7;
|
string status = 7;
|
||||||
google.protobuf.Timestamp created_at = 8;
|
google.protobuf.Timestamp created_at = 8;
|
||||||
|
string game_name = 9;
|
||||||
}
|
}
|
||||||
|
|
||||||
message CreateGameReviewReq {
|
message CreateGameReviewReq {
|
||||||
@@ -1643,6 +1654,8 @@ message GetGameReviewsReq {
|
|||||||
int32 gameId = 1;
|
int32 gameId = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
message GetReviewsForModerationReq {}
|
||||||
|
|
||||||
message GetGameReviewsRsp {
|
message GetGameReviewsRsp {
|
||||||
string error = 1;
|
string error = 1;
|
||||||
double average_rating = 2;
|
double average_rating = 2;
|
||||||
|
|||||||
@@ -729,6 +729,7 @@ export type GameReview = {
|
|||||||
text: string | undefined;
|
text: string | undefined;
|
||||||
status: string | undefined;
|
status: string | undefined;
|
||||||
createdAt: wellKnownTimestamp | undefined;
|
createdAt: wellKnownTimestamp | undefined;
|
||||||
|
gameName: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export type CreateGameReviewReq = {
|
export type CreateGameReviewReq = {
|
||||||
@@ -748,6 +749,9 @@ export type GetGameReviewsReq = {
|
|||||||
gameId: number | undefined;
|
gameId: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
export type GetReviewsForModerationReq = {
|
||||||
|
};
|
||||||
|
|
||||||
export type GetGameReviewsRsp = {
|
export type GetGameReviewsRsp = {
|
||||||
error: string | undefined;
|
error: string | undefined;
|
||||||
averageRating: number | undefined;
|
averageRating: number | undefined;
|
||||||
@@ -1011,6 +1015,7 @@ export interface EveningDetectiveServer {
|
|||||||
CreateGameReview(request: CreateGameReviewReq): Promise<CreateGameReviewRsp>;
|
CreateGameReview(request: CreateGameReviewReq): Promise<CreateGameReviewRsp>;
|
||||||
GetGameReviews(request: GetGameReviewsReq): Promise<GetGameReviewsRsp>;
|
GetGameReviews(request: GetGameReviewsReq): Promise<GetGameReviewsRsp>;
|
||||||
GetGameReviewsForModeration(request: GetGameReviewsReq): Promise<GetGameReviewsRsp>;
|
GetGameReviewsForModeration(request: GetGameReviewsReq): Promise<GetGameReviewsRsp>;
|
||||||
|
GetReviewsForModeration(request: GetReviewsForModerationReq): Promise<GetGameReviewsRsp>;
|
||||||
ModerateGameReview(request: ModerateGameReviewReq): Promise<ModerateGameReviewRsp>;
|
ModerateGameReview(request: ModerateGameReviewReq): Promise<ModerateGameReviewRsp>;
|
||||||
UpdateGame(request: UpdateGameReq): Promise<UpdateGameRsp>;
|
UpdateGame(request: UpdateGameReq): Promise<UpdateGameRsp>;
|
||||||
StartGame(request: StartGameReq): Promise<StartGameRsp>;
|
StartGame(request: StartGameReq): Promise<StartGameRsp>;
|
||||||
@@ -2209,6 +2214,23 @@ export function createEveningDetectiveServerClient(
|
|||||||
method: "GetGameReviewsForModeration",
|
method: "GetGameReviewsForModeration",
|
||||||
}) as Promise<GetGameReviewsRsp>;
|
}) as Promise<GetGameReviewsRsp>;
|
||||||
},
|
},
|
||||||
|
GetReviewsForModeration(request) { // eslint-disable-line @typescript-eslint/no-unused-vars
|
||||||
|
const path = `api/admin/game-reviews`; // eslint-disable-line quotes
|
||||||
|
const body = null;
|
||||||
|
const queryParams: string[] = [];
|
||||||
|
let uri = path;
|
||||||
|
if (queryParams.length > 0) {
|
||||||
|
uri += `?${queryParams.join("&")}`
|
||||||
|
}
|
||||||
|
return handler({
|
||||||
|
path: uri,
|
||||||
|
method: "GET",
|
||||||
|
body,
|
||||||
|
}, {
|
||||||
|
service: "EveningDetectiveServer",
|
||||||
|
method: "GetReviewsForModeration",
|
||||||
|
}) as Promise<GetGameReviewsRsp>;
|
||||||
|
},
|
||||||
ModerateGameReview(request) { // eslint-disable-line @typescript-eslint/no-unused-vars
|
ModerateGameReview(request) { // eslint-disable-line @typescript-eslint/no-unused-vars
|
||||||
if (!request.id) {
|
if (!request.id) {
|
||||||
throw new Error("missing required field request.id");
|
throw new Error("missing required field request.id");
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import {
|
|||||||
NInputNumber,
|
NInputNumber,
|
||||||
NModal,
|
NModal,
|
||||||
NQrCode,
|
NQrCode,
|
||||||
|
NRate,
|
||||||
NSelect,
|
NSelect,
|
||||||
NSpace,
|
NSpace,
|
||||||
NText,
|
NText,
|
||||||
@@ -22,6 +23,7 @@ import { getBinaryClient } from '@/api/binary_client'
|
|||||||
import type {
|
import type {
|
||||||
Application,
|
Application,
|
||||||
Game,
|
Game,
|
||||||
|
GameReview,
|
||||||
MapItem,
|
MapItem,
|
||||||
Question,
|
Question,
|
||||||
ScreenCommand,
|
ScreenCommand,
|
||||||
@@ -519,6 +521,10 @@ async function finishGame() {
|
|||||||
|
|
||||||
// ===== Ответы команд и оценка организатором =====
|
// ===== Ответы команд и оценка организатором =====
|
||||||
const showAnswersModal = ref(false)
|
const showAnswersModal = ref(false)
|
||||||
|
const showReviewsModal = ref(false)
|
||||||
|
const gameReviews = ref<GameReview[]>([])
|
||||||
|
const reviewsAverage = ref(0)
|
||||||
|
const reviewsCount = ref(0)
|
||||||
const answersQuestions = ref<Question[]>([])
|
const answersQuestions = ref<Question[]>([])
|
||||||
const answersTeams = ref<TeamAnswers[]>([])
|
const answersTeams = ref<TeamAnswers[]>([])
|
||||||
|
|
||||||
@@ -559,6 +565,27 @@ async function openAnswersModal() {
|
|||||||
await loadGameAnswers()
|
await loadGameAnswers()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async function openReviewsModal() {
|
||||||
|
showReviewsModal.value = true
|
||||||
|
const res = await client.GetGameReviewsForModeration({ gameId: Number(gameId) })
|
||||||
|
if (res.error != '') {
|
||||||
|
message.error(res.error!)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
gameReviews.value = res.reviews || []
|
||||||
|
reviewsAverage.value = res.averageRating || 0
|
||||||
|
reviewsCount.value = res.reviewsCount || 0
|
||||||
|
}
|
||||||
|
|
||||||
|
async function moderateReview(review: GameReview, status: string) {
|
||||||
|
const res = await client.ModerateGameReview({ id: review.id, status })
|
||||||
|
if (res.error != '') {
|
||||||
|
message.error(res.error!)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
await openReviewsModal()
|
||||||
|
}
|
||||||
|
|
||||||
// Сохраняет баллы всех команд за все вопросы; пустой балл сбрасывает его.
|
// Сохраняет баллы всех команд за все вопросы; пустой балл сбрасывает его.
|
||||||
async function saveAllScores() {
|
async function saveAllScores() {
|
||||||
for (const question of answersQuestions.value) {
|
for (const question of answersQuestions.value) {
|
||||||
@@ -1192,6 +1219,42 @@ useSimplePolling(() => {
|
|||||||
</n-card>
|
</n-card>
|
||||||
</n-modal>
|
</n-modal>
|
||||||
|
|
||||||
|
<n-modal v-model:show="showReviewsModal">
|
||||||
|
<n-card
|
||||||
|
style="width: min(94vw, 800px)"
|
||||||
|
title="Отзывы игры"
|
||||||
|
:bordered="false"
|
||||||
|
size="huge"
|
||||||
|
role="dialog"
|
||||||
|
aria-modal="true"
|
||||||
|
:content-style="{ maxHeight: '70vh', overflow: 'auto' }"
|
||||||
|
>
|
||||||
|
<template #header-extra>
|
||||||
|
<n-button @click="showReviewsModal = false"> x </n-button>
|
||||||
|
</template>
|
||||||
|
<n-flex align="center" class="reviews-summary">
|
||||||
|
<n-rate :value="reviewsAverage" readonly allow-half />
|
||||||
|
<span>{{ reviewsCount ? `${reviewsAverage.toFixed(1)} · ${reviewsCount}` : 'Пока нет отзывов' }}</span>
|
||||||
|
</n-flex>
|
||||||
|
<div v-if="gameReviews.length == 0" class="answers-empty">Отзывов пока нет.</div>
|
||||||
|
<div v-for="review in gameReviews" :key="review.id" class="review-row">
|
||||||
|
<n-flex justify="space-between" align="center">
|
||||||
|
<strong>{{ review.teamName }}</strong>
|
||||||
|
<n-tag>{{ review.status }}</n-tag>
|
||||||
|
</n-flex>
|
||||||
|
<n-rate :value="review.rating" readonly size="small" />
|
||||||
|
<p>{{ review.text }}</p>
|
||||||
|
<n-flex v-if="review.status == 'pending'" justify="end">
|
||||||
|
<n-button type="success" @click="moderateReview(review, 'approved')">Одобрить</n-button>
|
||||||
|
<n-button type="error" ghost @click="moderateReview(review, 'rejected')">Отклонить</n-button>
|
||||||
|
</n-flex>
|
||||||
|
<n-flex v-else-if="review.status == 'approved'" justify="end">
|
||||||
|
<n-button type="error" ghost @click="moderateReview(review, 'hidden')">Скрыть</n-button>
|
||||||
|
</n-flex>
|
||||||
|
</div>
|
||||||
|
</n-card>
|
||||||
|
</n-modal>
|
||||||
|
|
||||||
<HeaderMenu active="games" />
|
<HeaderMenu active="games" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -1203,6 +1266,19 @@ useSimplePolling(() => {
|
|||||||
margin: 10px 0;
|
margin: 10px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.reviews-summary {
|
||||||
|
margin-bottom: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.review-row {
|
||||||
|
border-top: 1px solid #777;
|
||||||
|
padding: 16px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.review-row p {
|
||||||
|
white-space: pre-wrap;
|
||||||
|
}
|
||||||
|
|
||||||
.team-block-hover:hover {
|
.team-block-hover:hover {
|
||||||
border: 1px solid #63e2b7;
|
border: 1px solid #63e2b7;
|
||||||
color: #63e2b7;
|
color: #63e2b7;
|
||||||
|
|||||||
@@ -101,6 +101,14 @@ const openMenu = ref(false)
|
|||||||
>
|
>
|
||||||
Пользователи
|
Пользователи
|
||||||
</div>
|
</div>
|
||||||
|
<div
|
||||||
|
class="menu-item-block"
|
||||||
|
:class="{ active: props.active == 'reviews' }"
|
||||||
|
v-if="hasPermission('reviews_page')"
|
||||||
|
@click="router.push('/reviews')"
|
||||||
|
>
|
||||||
|
Отзывы
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="right-group">
|
<div class="right-group">
|
||||||
|
|||||||
@@ -0,0 +1,96 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
import { NButton, NCard, NFlex, NRate, NTag, useMessage } from 'naive-ui'
|
||||||
|
import { ref } from 'vue'
|
||||||
|
|
||||||
|
import { getAuthClient } from '@/api/auth_client'
|
||||||
|
import type { GameReview } from '@/api/generated/crabs/evening_detective_server'
|
||||||
|
import HeaderMenu from '@/components/HeaderMenu.vue'
|
||||||
|
|
||||||
|
const client = getAuthClient()
|
||||||
|
const message = useMessage()
|
||||||
|
const reviews = ref<GameReview[]>([])
|
||||||
|
|
||||||
|
async function loadReviews() {
|
||||||
|
const res = await client.GetReviewsForModeration({})
|
||||||
|
if (res.error != '') {
|
||||||
|
message.error(res.error!)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
reviews.value = res.reviews || []
|
||||||
|
}
|
||||||
|
|
||||||
|
async function moderate(review: GameReview, status: string) {
|
||||||
|
const res = await client.ModerateGameReview({ id: review.id, status })
|
||||||
|
if (res.error != '') {
|
||||||
|
message.error(res.error!)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
await loadReviews()
|
||||||
|
}
|
||||||
|
|
||||||
|
loadReviews()
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<div class="center-block-custom">
|
||||||
|
<div class="width1200">
|
||||||
|
<div class="page-header">
|
||||||
|
<h1>Отзывы</h1>
|
||||||
|
<n-button @click="loadReviews">Обновить</n-button>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<n-card v-if="reviews.length == 0">Очередь отзывов пуста.</n-card>
|
||||||
|
<n-card v-for="review in reviews" :key="review.id" class="review-card">
|
||||||
|
<n-flex justify="space-between" align="center">
|
||||||
|
<div>
|
||||||
|
<div class="review-game">{{ review.gameName }}</div>
|
||||||
|
<strong>{{ review.teamName }}</strong>
|
||||||
|
</div>
|
||||||
|
<n-tag>{{ review.status }}</n-tag>
|
||||||
|
</n-flex>
|
||||||
|
<n-rate :value="review.rating" readonly />
|
||||||
|
<p class="review-text">{{ review.text }}</p>
|
||||||
|
<n-flex v-if="review.status == 'pending'" justify="end">
|
||||||
|
<n-button type="success" @click="moderate(review, 'approved')">Одобрить</n-button>
|
||||||
|
<n-button type="error" ghost @click="moderate(review, 'rejected')">Отклонить</n-button>
|
||||||
|
</n-flex>
|
||||||
|
<n-flex v-else-if="review.status == 'approved'" justify="end">
|
||||||
|
<n-button type="error" ghost @click="moderate(review, 'hidden')">Скрыть</n-button>
|
||||||
|
</n-flex>
|
||||||
|
</n-card>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<HeaderMenu active="reviews" />
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.center-block-custom {
|
||||||
|
height: calc(100dvh - 70px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-header {
|
||||||
|
align-items: center;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
margin-bottom: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.page-header h1 {
|
||||||
|
font-size: 28px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.review-card {
|
||||||
|
margin: 12px 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.review-game {
|
||||||
|
color: #777;
|
||||||
|
font-size: 13px;
|
||||||
|
margin-bottom: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.review-text {
|
||||||
|
white-space: pre-wrap;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@@ -205,8 +205,8 @@ const paperControlsOverrides = {
|
|||||||
borderDisabled: '1px dashed black',
|
borderDisabled: '1px dashed black',
|
||||||
borderFocus: '1px solid black',
|
borderFocus: '1px solid black',
|
||||||
borderHover: '1px dashed black',
|
borderHover: '1px dashed black',
|
||||||
boxShadowFocus: '0 0 0 2px rgb(99 226 183 / 30%)',
|
boxShadowFocus: '0 0 0 1px black',
|
||||||
caretColor: '#63e2b7',
|
caretColor: 'black',
|
||||||
color: 'transparent',
|
color: 'transparent',
|
||||||
colorDisabled: 'transparent',
|
colorDisabled: 'transparent',
|
||||||
colorFocus: 'transparent',
|
colorFocus: 'transparent',
|
||||||
@@ -218,8 +218,8 @@ const paperControlsOverrides = {
|
|||||||
},
|
},
|
||||||
Rate: {
|
Rate: {
|
||||||
itemColor: 'black',
|
itemColor: 'black',
|
||||||
itemColorHover: 'black',
|
itemColorHover: '#b8860b',
|
||||||
itemColorActive: 'black',
|
itemColorActive: '#b8860b',
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -284,7 +284,7 @@ useSimplePolling(() => {
|
|||||||
<hr class="questions-hr" />
|
<hr class="questions-hr" />
|
||||||
<n-config-provider :theme-overrides="paperControlsOverrides">
|
<n-config-provider :theme-overrides="paperControlsOverrides">
|
||||||
<div class="review-rating font">Оценка</div>
|
<div class="review-rating font">Оценка</div>
|
||||||
<n-rate v-model:value="reviewRating" :count="5" />
|
<n-rate v-model:value="reviewRating" :count="5" class="review-rate" />
|
||||||
<n-input
|
<n-input
|
||||||
v-model:value="reviewText"
|
v-model:value="reviewText"
|
||||||
class="review-input"
|
class="review-input"
|
||||||
@@ -405,6 +405,16 @@ useSimplePolling(() => {
|
|||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.review-rating {
|
||||||
|
margin-bottom: 6px;
|
||||||
|
margin-top: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.review-rate {
|
||||||
|
margin-bottom: 8px;
|
||||||
|
margin-top: 4px;
|
||||||
|
}
|
||||||
|
|
||||||
.review-input {
|
.review-input {
|
||||||
margin-top: 14px;
|
margin-top: 14px;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -88,6 +88,11 @@ const router = createRouter({
|
|||||||
name: 'users',
|
name: 'users',
|
||||||
component: () => import('../views/UsersView.vue'),
|
component: () => import('../views/UsersView.vue'),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: '/reviews',
|
||||||
|
name: 'reviews',
|
||||||
|
component: () => import('../views/ReviewsView.vue'),
|
||||||
|
},
|
||||||
],
|
],
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,7 @@
|
|||||||
|
<script setup lang="ts">
|
||||||
|
import ReviewsPage from '@/components/ReviewsPage.vue'
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<template>
|
||||||
|
<ReviewsPage />
|
||||||
|
</template>
|
||||||
Reference in New Issue
Block a user