Files
evening_detective_frontend/dist/assets/DocsPage-cEUhcoYt.js
T
2026-09-18 02:57:53 +07:00

43 lines
5.4 KiB
JavaScript

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-BuLsYISi.js";import{M as D,Z as O,j as k,o as A}from"./index-BZeHK4jy.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`,`
from {
transform: rotate(0);
}
to {
transform: rotate(360deg);
}
`),_(`spin-container`,`
position: relative;
`,[_(`spin-body`,`
position: absolute;
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%);
`,[T()])]),_(`spin-body`,`
display: inline-flex;
align-items: center;
justify-content: center;
flex-direction: column;
`),_(`spin`,`
display: inline-flex;
height: var(--n-size);
width: var(--n-size);
font-size: var(--n-size);
color: var(--n-color);
`,[b(`rotate`,`
animation: spin-rotate 2s linear infinite;
`)]),_(`spin-description`,`
display: inline-block;
font-size: var(--n-font-size);
color: var(--n-text-color);
transition: color .3s var(--n-bezier);
margin-top: 8px;
`),_(`spin-content`,`
opacity: 1;
transition: opacity .3s var(--n-bezier);
pointer-events: all;
`,[b(`spinning`,`
user-select: none;
-webkit-user-select: none;
pointer-events: none;
opacity: var(--n-opacity-spinning);
`)])]),F={small:20,medium:18,large:16},I=c({name:`Spin`,props:Object.assign(Object.assign(Object.assign({},S.props),{contentClass:String,contentStyle:[Object,String],description:String,size:{type:[String,Number],default:`medium`},show:{type:Boolean,default:!0},rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0},delay:Number}),D),slots:Object,setup(e){let{mergedClsPrefixRef:t,inlineThemeDisabled:n}=y(e),r=S(`Spin`,`-spin`,P,A,e,t),i=a(()=>{let{size:t}=e,{common:{cubicBezierEaseInOut:n},self:i}=r.value,{opacitySpinning:a,color:o,textColor:s}=i;return{"--n-bezier":n,"--n-opacity-spinning":a,"--n-size":typeof t==`number`?C(t):i[x(`size`,t)],"--n-color":o,"--n-text-color":s}}),o=n?v(`spin`,a(()=>{let{size:t}=e;return typeof t==`number`?String(t):t[0]}),i,e):void 0,c=w(e,[`spinning`,`show`]),l=s(!1);return m(t=>{let n;if(c.value){let{delay:r}=e;if(r){n=window.setTimeout(()=>{l.value=!0},r),t(()=>{clearTimeout(n)});return}}l.value=c.value}),{mergedClsPrefix:t,active:l,mergedStrokeWidth:a(()=>{let{strokeWidth:t}=e;if(t!==void 0)return t;let{size:n}=e;return F[typeof n==`number`?`medium`:n]}),cssVars:n?void 0:i,themeClass:o?.themeClass,onRender:o?.onRender}},render(){var e;let{$slots:t,mergedClsPrefix:n,description:r}=this,a=t.icon&&this.rotate,o=(r||t.description)&&i(`div`,{class:`${n}-spin-description`},r||t.description?.call(t)),s=t.icon?i(`div`,{class:[`${n}-spin-body`,this.themeClass]},i(`div`,{class:[`${n}-spin`,a&&`${n}-spin--rotate`],style:t.default?``:this.cssVars},t.icon()),o):i(`div`,{class:[`${n}-spin-body`,this.themeClass]},i(k,{clsPrefix:n,style:t.default?``:this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,radius:this.radius,scale:this.scale,class:`${n}-spin`}),o);return(e=this.onRender)==null||e.call(this),t.default?i(`div`,{class:[`${n}-spin-container`,this.themeClass],style:this.cssVars},i(`div`,{class:[`${n}-spin-content`,this.active&&`${n}-spin-content--spinning`,this.contentClass],style:this.contentStyle},t),i(O,{name:`fade-in-transition`},{default:()=>this.active?s:null})):s}}),L={class:`center-block-custom`},R={class:`width700 doc-page`},z={class:`doc-title`},B={key:0,class:`doc-loading`},V={key:2,class:`paper-block`},H={class:`paper`},U={class:`doc-text`},W={class:`docs-links`},G=M(c({__name:`DocsPage`,props:{kind:{}},setup(i){let a=i,c={terms:`Пользовательское соглашение`,privacy:`Политика конфиденциальности`,consent:`Согласие на обработку персональных данных`},m=s(``),g=s(!0),_=s(``);return o(async()=>{let e=j(),t={terms:()=>e.GetTerms({}),privacy:()=>e.GetPrivacy({}),consent:()=>e.GetConsent({})};try{let e=await t[a.kind]();e.error?_.value=e.error:m.value=e.text||``}catch(e){_.value=e instanceof Error?e.message:`Не удалось загрузить документ`}finally{g.value=!1}}),(i,o)=>(r(),n(`div`,L,[t(`div`,R,[t(`h1`,z,[e(N,null,{default:d(()=>[u(l(c[a.kind]),1)]),_:1})]),g.value?(r(),n(`div`,B,[e(p(I),{size:`large`})])):_.value?(r(),h(p(E),{key:1,type:`error`,"show-icon":!1,class:`doc-error`},{default:d(()=>[u(l(_.value),1)]),_:1})):(r(),n(`div`,V,[t(`div`,H,[t(`p`,U,l(m.value),1)]),o[0]||=t(`div`,{class:`paper-shadow paper-shadow-left`},null,-1),o[1]||=t(`div`,{class:`paper-shadow paper-shadow-right`},null,-1)])),t(`div`,W,[o[5]||=u(` Смотрите также: `,-1),e(p(f),{to:`/user-agreement`,class:`docs-link`},{default:d(()=>[...o[2]||=[u(`Пользовательское соглашение`,-1)]]),_:1}),o[6]||=u(` · `,-1),e(p(f),{to:`/privacy-policy`,class:`docs-link`},{default:d(()=>[...o[3]||=[u(`Политика конфиденциальности`,-1)]]),_:1}),o[7]||=u(` · `,-1),e(p(f),{to:`/consent`,class:`docs-link`},{default:d(()=>[...o[4]||=[u(`Согласие на обработку персональных данных`,-1)]]),_:1})])])]))}}),[[`__scopeId`,`data-v-f5dde12c`]]);export{G as t};