import{D as e,Ft as t,G as n,H as r,M as i,O as a,S as o,_t as s,a as c,b as l,et as u,ft as d,k as f,tt as p,w as m,x as h}from"./client-BBfBDiVG.js";import{G as g,K as _,M as v,N as y,Y as b,Z as x,r as S}from"./light-DqAV2QCd.js";import{i as C}from"./css-DEmdllcC.js";import{t as w}from"./use-compitable-kfiJdYfv.js";import{t as T}from"./fade-in.cssr-CKxOL_aH.js";import{t as E}from"./Alert-DsjLN_Ag.js";import{M as D,N as O,Q as k,s as A}from"./index-DnUl8nHF.js";import{n as j}from"./es-D90fN3qV.js";import{t as M}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as N}from"./HeaderText-OoQfyl23.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=f({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}),O),slots:Object,setup(e){let{mergedClsPrefixRef:t,inlineThemeDisabled:n}=y(e),r=S(`Spin`,`-spin`,P,A,e,t),i=l(()=>{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`,l(()=>{let{size:t}=e;return typeof t==`number`?String(t):t[0]}),i,e):void 0,o=w(e,[`spinning`,`show`]),s=d(!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:l(()=>{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,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(D,{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(k,{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(f({__name:`DocsPage`,props:{kind:{}},setup(i){let l=i,u={terms:`Пользовательское соглашение`,privacy:`Политика конфиденциальности`,consent:`Согласие на обработку персональных данных`},f=d(``),g=d(!0),_=d(``);return r(async()=>{let e=j(),t={terms:()=>e.GetTerms({}),privacy:()=>e.GetPrivacy({}),consent:()=>e.GetConsent({})};try{let e=await t[l.kind]();e.error?_.value=e.error:f.value=e.text||``}catch(e){_.value=e instanceof Error?e.message:`Не удалось загрузить документ`}finally{g.value=!1}}),(r,i)=>(n(),m(`div`,L,[h(`div`,R,[h(`h1`,z,[a(N,null,{default:p(()=>[e(t(u[l.kind]),1)]),_:1})]),g.value?(n(),m(`div`,B,[a(s(I),{size:`large`})])):_.value?(n(),o(s(E),{key:1,type:`error`,"show-icon":!1,class:`doc-error`},{default:p(()=>[e(t(_.value),1)]),_:1})):(n(),m(`div`,V,[h(`div`,H,[h(`p`,U,t(f.value),1)]),i[0]||=h(`div`,{class:`paper-shadow paper-shadow-left`},null,-1),i[1]||=h(`div`,{class:`paper-shadow paper-shadow-right`},null,-1)])),h(`div`,W,[i[5]||=e(` Смотрите также: `,-1),a(s(c),{to:`/user-agreement`,class:`docs-link`},{default:p(()=>[...i[2]||=[e(`Пользовательское соглашение`,-1)]]),_:1}),i[6]||=e(` · `,-1),a(s(c),{to:`/privacy-policy`,class:`docs-link`},{default:p(()=>[...i[3]||=[e(`Политика конфиденциальности`,-1)]]),_:1}),i[7]||=e(` · `,-1),a(s(c),{to:`/consent`,class:`docs-link`},{default:p(()=>[...i[4]||=[e(`Согласие на обработку персональных данных`,-1)]]),_:1})])])]))}}),[[`__scopeId`,`data-v-f5dde12c`]]);export{G as t};