Files
evening_detective_frontend/dist/assets/DocsPage-Dkoum0aK.js
T
2026-09-13 13:51:23 +07:00

43 lines
5.4 KiB
JavaScript

import{A as e,At as t,C as n,G as r,H as i,N as a,O as o,S as s,T as c,a as l,et as u,ft as d,k as f,st as p,tt as m,x as h}from"./auth-Dlv0TZH7.js";import{G as g,K as _,M as v,N as y,Y as b,Z as x,r as S}from"./light-CW1_EUxw.js";import{l as C}from"./resolve-slot-DN9_xhmA.js";import{t as w}from"./use-compitable-s8dIAO0Z.js";import{t as T}from"./fade-in.cssr-BZpV6jF9.js";import{t as E}from"./Alert-DZtGf-H_.js";import{M as D,Y as O,j as k,o as A}from"./index-DRS1zBKt.js";import{r as j,t as M}from"./_plugin-vue_export-helper-DBdhPFAA.js";import{t as N}from"./HeaderText-BoxSNnZQ.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=e({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=h(()=>{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`,h(()=>{let{size:t}=e;return typeof t==`number`?String(t):t[0]}),i,e):void 0,o=w(e,[`spinning`,`show`]),s=p(!1);return u(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:h(()=>{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 e;let{$slots:t,mergedClsPrefix:n,description:r}=this,i=t.icon&&this.rotate,o=(r||t.description)&&a(`div`,{class:`${n}-spin-description`},r||t.description?.call(t)),s=t.icon?a(`div`,{class:[`${n}-spin-body`,this.themeClass]},a(`div`,{class:[`${n}-spin`,i&&`${n}-spin--rotate`],style:t.default?``:this.cssVars},t.icon()),o):a(`div`,{class:[`${n}-spin-body`,this.themeClass]},a(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?a(`div`,{class:[`${n}-spin-container`,this.themeClass],style:this.cssVars},a(`div`,{class:[`${n}-spin-content`,this.active&&`${n}-spin-content--spinning`,this.contentClass],style:this.contentStyle},t),a(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(e({__name:`DocsPage`,props:{kind:{}},setup(e){let a=e,u={terms:`Пользовательское соглашение`,privacy:`Политика конфиденциальности`,consent:`Согласие на обработку персональных данных`},h=p(``),g=p(!0),_=p(``);return i(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:h.value=e.text||``}catch(e){_.value=e instanceof Error?e.message:`Не удалось загрузить документ`}finally{g.value=!1}}),(e,i)=>(r(),c(`div`,L,[s(`div`,R,[s(`h1`,z,[f(N,null,{default:m(()=>[o(t(u[a.kind]),1)]),_:1})]),g.value?(r(),c(`div`,B,[f(d(I),{size:`large`})])):_.value?(r(),n(d(E),{key:1,type:`error`,"show-icon":!1,class:`doc-error`},{default:m(()=>[o(t(_.value),1)]),_:1})):(r(),c(`div`,V,[s(`div`,H,[s(`p`,U,t(h.value),1)]),i[0]||=s(`div`,{class:`paper-shadow paper-shadow-left`},null,-1),i[1]||=s(`div`,{class:`paper-shadow paper-shadow-right`},null,-1)])),s(`div`,W,[i[5]||=o(` Смотрите также: `,-1),f(d(l),{to:`/user-agreement`,class:`docs-link`},{default:m(()=>[...i[2]||=[o(`Пользовательское соглашение`,-1)]]),_:1}),i[6]||=o(` · `,-1),f(d(l),{to:`/privacy-policy`,class:`docs-link`},{default:m(()=>[...i[3]||=[o(`Политика конфиденциальности`,-1)]]),_:1}),i[7]||=o(` · `,-1),f(d(l),{to:`/consent`,class:`docs-link`},{default:m(()=>[...i[4]||=[o(`Согласие на обработку персональных данных`,-1)]]),_:1})])])]))}}),[[`__scopeId`,`data-v-f5dde12c`]]);export{G as t};