Files
evening_detective_frontend/dist/assets/DocsPage-BlkqZKIt.js
T
2026-09-13 00:22:36 +07:00

43 lines
5.4 KiB
JavaScript

import{A as e,D as t,Dt as n,E as r,H as i,Q as a,S as o,T as s,Z as c,b as l,it as u,lt as d,t as f,v as p,y as m,z as h}from"./vue-router-bPs2Bq2h.js";import{G as g,K as _,M as v,N as y,Y as b,Z as x,r as S}from"./light-BDe84dgP.js";import{l as C}from"./resolve-slot-Cp3m6n7Y.js";import{t as w}from"./use-compitable-BcHeQzgm.js";import{t as T}from"./fade-in.cssr-CHZadXSL.js";import{t as E}from"./Alert-CH-Z3xsL.js";import{M as D,Y as O,j as k,o as A}from"./index-Dzzgp7Ij.js";import{i as j,n as M}from"./HeaderMenu-DOd51pLB.js";import{t as N}from"./HeaderText-CzNQqRKZ.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=t({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=p(()=>{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}}),a=n?v(`spin`,p(()=>{let{size:t}=e;return typeof t==`number`?String(t):t[0]}),i,e):void 0,o=w(e,[`spinning`,`show`]),s=u(!1);return c(t=>{let n;if(o.value){let{delay:r}=e;if(r){n=window.setTimeout(()=>{s.value=!0},r),t(()=>{clearTimeout(n)});return}}s.value=o.value}),{mergedClsPrefix:t,active:s,mergedStrokeWidth:p(()=>{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:a?.themeClass,onRender:a?.onRender}},render(){var t;let{$slots:n,mergedClsPrefix:r,description:i}=this,a=n.icon&&this.rotate,o=(i||n.description)&&e(`div`,{class:`${r}-spin-description`},i||n.description?.call(n)),s=n.icon?e(`div`,{class:[`${r}-spin-body`,this.themeClass]},e(`div`,{class:[`${r}-spin`,a&&`${r}-spin--rotate`],style:n.default?``:this.cssVars},n.icon()),o):e(`div`,{class:[`${r}-spin-body`,this.themeClass]},e(k,{clsPrefix:r,style:n.default?``:this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,radius:this.radius,scale:this.scale,class:`${r}-spin`}),o);return(t=this.onRender)==null||t.call(this),n.default?e(`div`,{class:[`${r}-spin-container`,this.themeClass],style:this.cssVars},e(`div`,{class:[`${r}-spin-content`,this.active&&`${r}-spin-content--spinning`,this.contentClass],style:this.contentStyle},n),e(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(t({__name:`DocsPage`,props:{kind:{}},setup(e){let t=e,c={terms:`Пользовательское соглашение`,privacy:`Политика конфиденциальности`,consent:`Согласие на обработку персональных данных`},p=u(``),g=u(!0),_=u(``);return h(async()=>{let e=j(),n={terms:()=>e.GetTerms({}),privacy:()=>e.GetPrivacy({}),consent:()=>e.GetConsent({})};try{let e=await n[t.kind]();e.error?_.value=e.error:p.value=e.text||``}catch(e){_.value=e instanceof Error?e.message:`Не удалось загрузить документ`}finally{g.value=!1}}),(e,u)=>(i(),o(`div`,L,[m(`div`,R,[m(`h1`,z,[r(N,null,{default:a(()=>[s(n(c[t.kind]),1)]),_:1})]),g.value?(i(),o(`div`,B,[r(d(I),{size:`large`})])):_.value?(i(),l(d(E),{key:1,type:`error`,"show-icon":!1,class:`doc-error`},{default:a(()=>[s(n(_.value),1)]),_:1})):(i(),o(`div`,V,[m(`div`,H,[m(`p`,U,n(p.value),1)]),u[0]||=m(`div`,{class:`paper-shadow paper-shadow-left`},null,-1),u[1]||=m(`div`,{class:`paper-shadow paper-shadow-right`},null,-1)])),m(`div`,W,[u[5]||=s(` Смотрите также: `,-1),r(d(f),{to:`/user-agreement`,class:`docs-link`},{default:a(()=>[...u[2]||=[s(`Пользовательское соглашение`,-1)]]),_:1}),u[6]||=s(` · `,-1),r(d(f),{to:`/privacy-policy`,class:`docs-link`},{default:a(()=>[...u[3]||=[s(`Политика конфиденциальности`,-1)]]),_:1}),u[7]||=s(` · `,-1),r(d(f),{to:`/consent`,class:`docs-link`},{default:a(()=>[...u[4]||=[s(`Согласие на обработку персональных данных`,-1)]]),_:1})])])]))}}),[[`__scopeId`,`data-v-f5dde12c`]]);export{G as t};