PageSourceSearch

https://molodaya-arctica.ru/_nuxt/DXA80rk2.js

js molodaya-arctica.ru collected 2026-10-01 23:53:53 UTC 47,850 bytes, 345 lines download raw bytes

1import{F as Mt,a as Ft,s as Gt}from"./DpGjEsiA.js";import{bz as zt,z as Wt,l as Ht,M as Zt,k as qt,o as X,a as ft,b as V,w as J,d as b,u as v,ag as $,aK as _t,c as jt,a8 as Yt,_ as Qt,aD as Xt,f as Jt,a9 as te,C as vt,ay as ee}from"./BKPvSWlA.js";import{R as It,A as kt,P as Rt,O as f,L as t,W as wt,S as st,b as C,d as At,e as nt,f as Vt,h as rt,i as Ct,v as Kt,j as ne,k as T,l as ie,g as oe,C as se,c as re}from"./Cztv8eqI.js";import{u as gt}from"./8SpYxbVJ.js";import{I as ae,a as le,r as tt}from"./DXPChHmb.js";import{H as de}from"./Ak3dGjsf.js";import{v as ce}from"./BKrj-4V8.js";const ue=zt("/images/socials/gosuslugi.svg");function he(n,e){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:window,o,r,a=function(){return n.apply(i,r)};return function(){for(var l=arguments.length,u=new Array(l),p=0;p<l;p++)u[p]=arguments[p];r=u,clearTimeout(o),o=setTimeout(a,e)}}class pe{registrationStatsCollector;uniqueSessionId;constructor(e){const i=new Rt(e),o=new kt(i);this.registrationStatsCollector=new It(o)}setUniqueSessionId(e){this.uniqueSessionId=e}getFields(){const e=[{name:"sdk_type",value:"vkid"}];return this.uniqueSessionId&&e.push({name:"unique_session_id",value:this.uniqueSessionId}),e}sendMultibrandingOauthAdded({screen:e,fields:i}){this.registrationStatsCollector.logEvent(e,{event_type:"multibranding_oauth_added",fields:[...this.getFields(),...i]})}sendOkButtonShow({screen:e,isIcon:i}){this.registrationStatsCollector.logEvent(e,{event_type:"ok_button_show",fields:[...this.getFields(),{name:"button_type",value:i?"icon":"default"}]})}sendVkButtonShow({screen:e,isIcon:i}){this.registrationStatsCollector.logEvent(e,{event_type:"vk_button_show",fields:[...this.getFields(),{name:"button_type",value:i?"icon":"default"}]})}sendMailButtonShow({screen:e,isIcon:i}){this.registrationStatsCollector.logEvent(e,{event_type:"mail_button_show",fields:[...this.getFields(),{name:"button_type",value:i?"icon":"default"}]})}sendVkButtonTap({screen:e,isIcon:i}){return this.registrationStatsCollector.logEvent(e,{event_type:"vk_button_tap",fields:[...this.getFields(),{name:"button_type",value:i?"icon":"default"}]})}sendOkButtonTap({screen:e,isIcon:i}){return this.registrationStatsCollector.logEvent(e,{event_type:"ok_button_tap",fields:[...this.getFields(),{name:"button_type",value:i?"icon":"default"}]})}sendMailButtonTap({screen:e,isIcon:i}){return this.registrationStatsCollector.logEvent(e,{event_type:"mail_button_tap",fields:[...this.getFields(),{name:"button_type",value:i?"icon":"default"}]})}}var N;(function(n){n.VK="vk",n.OK="ok_ru",n.MAIL="mail_ru"})(N||(N={}));var G;(function(n){n.LOGIN_SUCCESS="oauthlist: success login"})(G||(G={}));const Ot=n=>n==null,fe={[f.OK]:"OK",[f.MAIL]:"Mail",[f.VK]:"VK ID"},_e={[t.RUS]:"или войти через VK ID с использованием данных из сервиса",[t.UKR]:"або увійти через VK ID з використанням даних із сервісу",[t.BEL]:"ці ўвайсці праз VK ID з выкарыстаннем даных з сэрвісу",[t.KAZ]:"сервистегі деректерді пайдаланып VK ID арқылы кіру",[t.UZB]:"yoki xizmatning maʼlumotlaridan foydalangan holda VK ID orqali kirish",[t.ENG]:"or sign in with VK ID using information from a service",[t.SPA]:"o iniciar sesión con VK ID utilizando la información de un servicio",[t.GERMAN]:"oder melden Sie sich mit Ihrer VK-ID an, indem Sie Informationen aus dem Dienst verwenden",[t.POL]:"lub wejdź poprzez VK ID przy użyciu danych z serwisu",[t.FRA]:"ou se connecter avec VK ID en utilisant les informations d'un service",[t.TURKEY]:"Ya da hizmetteki verileri kullanarak VK ID hizmeti yardımıyla gir"},bt={[t.RUS]:{[f.OK]:"Войти через OK",[f.MAIL]:"Войти с Mail",[f.VK]:"Войти с VK ID"},[t.UKR]:"Увійти з {provider}",[t.BEL]:"Увайсці з {provider}",[t.KAZ]:"{provider} кіру",[t.UZB]:"{provider} orqali kirish",[t.ENG]:"Sign in with {provider}",[t.SPA]:"Iniciar sesión con {provider}",[t.GERMAN]:"Mit {provider} anmelden",[t.POL]:"Zaloguj się z {provider}",[t.FRA]:"Se connecter avec {provider}",[t.TURKEY]:"{provider}'den gir"},ve=`
2  <svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
3    <path d="M14 22C13.4477 22 13 21.5523 13 21C13 20.4477 13.4477 20 14 20C17.3137 20 20 17.3137 20 14C20 10.6863 17.3137 8 14 8C10.6863 8 8 10.6863 8 14C8 14.6472 8.10214 15.2793 8.3002 15.8802C8.4731 16.4047 8.18807 16.9701 7.66355 17.143C7.13902 17.3159 6.57365 17.0308 6.40074 16.5063C6.13628 15.7041 6 14.8606 6 14C6 9.58172 9.58172 6 14 6C18.4183 6 22 9.58172 22 14C22 18.4183 18.4183 22 14 22Z" fill="currentColor"/>
4  </svg>
5`,ge={[f.VK]:n=>`
6<svg width="${n+1}" height="${n}" viewBox="0 0 29 28" fill="none" xmlns="http://www.w3.org/2000/svg">
7  <path d="M3.33331 13.56C3.33331 8.58197 3.33331 6.09295 4.87979 4.54648C6.42627 3 8.91528 3 13.8933 3H14.7733C19.7513 3 22.2404 3 23.7868 4.54648C25.3333 6.09295 25.3333 8.58197 25.3333 13.56V14.44C25.3333 19.418 25.3333 21.907 23.7868 23.4535C22.2404 25 19.7513 25 14.7733 25H13.8933C8.91528 25 6.42627 25 4.87979 23.4535C3.33331 21.907 3.33331 19.418 3.33331 14.44V13.56Z" fill="#0077FF" style="fill:#0077FF;fill:color(display-p3 0.0000 0.4667 1.0000);fill-opacity:1;"/>
7
8  <path d="M15.0398 18.9C10.0174 18.9 7.15269 15.4466 7.03333 9.70001H9.54912C9.63175 13.9178 11.4864 15.7044 12.9555 16.0728V9.70001H15.3245V13.3376C16.7752 13.1811 18.2992 11.5234 18.8134 9.70001H21.1823C20.7875 11.9471 19.1348 13.6047 17.9595 14.2862C19.1348 14.8387 21.0171 16.2846 21.7333 18.9H19.1256C18.5655 17.1503 17.17 15.7965 15.3245 15.6123V18.9H15.0398Z" fill="white" style="fill:white;fill:white;fill-opacity:1;"/>
9</svg>
10  `,[f.OK]:n=>`
11<svg width="${n}" height="${n}" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
12  <path fill-rule="evenodd" clip-rule="evenodd" d="M3.67554 3.67638C2 5.36482 2 8.09045 2 13.5176V14.4824C2 19.9216 2 22.6352 3.68759 24.3236C5.37519 26 8.09944 26 13.5238 26H14.4882C19.9126 26 22.6489 26 24.3245 24.3236C26 22.6352 26 19.9095 26 14.4824V13.5176C26 8.09045 26 5.35276 24.3245 3.67638C22.6369 2 19.9126 2 14.4882 2H13.5239C8.08739 2 5.37519 2 3.67554 3.67638Z" fill="#EE8208" style="fill:#EE8208;fill:color(display-p3 0.9333 0.5098 0.0314);fill-opacity:1;"/>
13  <path fill-rule="evenodd" clip-rule="evenodd" d="M17.1157 12.621C16.3239 13.4108 15.218 13.9122 13.999 13.9122C12.7926 13.9122 11.6741 13.4108 10.8823 12.621C10.0906 11.8313 9.58793 10.7407 9.58793 9.51224C9.58793 8.28377 10.0906 7.18065 10.8823 6.40345C11.6741 5.61372 12.78 5.1123 13.999 5.1123C15.218 5.1123 16.3239 5.61372 17.1157 6.40345C17.9074 7.19319 18.4101 8.2963 18.4101 9.51224C18.4101 10.7282 17.9074 11.8313 17.1157 12.621ZM14.0116 7.49404C13.4586 7.49404 12.9559 7.71967 12.5915 8.0832C12.2396 8.44673 12.0008 8.94814 12.0008 9.4997C12.0008 10.0513 12.227 10.5527 12.5915 10.9162C12.9559 11.2797 13.446 11.5054 14.0116 11.5054C14.5645 11.5054 15.0672 11.2797 15.4317 10.9162C15.7961 10.5527 16.0223 10.0638 16.0223 9.4997C16.0223 8.94814 15.7961 8.44673 15.4317 8.0832C15.0672 7.71967 14.5771 7.49404 14.0116 7.49404Z" fill="white" style="fill:white;fill:white;fill-opacity:1;"/>
14  <path d="M18.6614 13.9247L19.9558 15.6922C20.0312 15.7799 20.0187 15.8927 19.8553 15.968C18.762 16.8705 17.4927 17.4471 16.1731 17.7605L18.9128 22.5741C18.9882 22.7246 18.9002 22.8875 18.7368 22.8875H16.06C15.9721 22.8875 15.8967 22.8248 15.8715 22.7496L13.9613 18.4876L12.0511 22.7496C12.026 22.8374 11.9506 22.8875 11.8626 22.8875H9.1858C9.03499 22.8875 8.93445 22.712 9.00986 22.5741L11.7495 17.7605C10.4299 17.4471 9.16066 16.8454 8.06732 15.968C7.99192 15.8927 7.97935 15.7799 8.04219 15.6922L9.3366 13.9247C9.412 13.8369 9.56281 13.8244 9.65078 13.8996C10.8824 14.9401 12.3779 15.617 13.999 15.617C15.6202 15.617 17.1282 14.9401 18.3472 13.8996C18.4352 13.8119 18.586 13.8244 18.6614 13.9247Z" fill="white" style="fill:white;fill:white;fill-opacity:1;"/>
15</svg>
16  `,[f.MAIL]:n=>`
17<svg xmlns="http://www.w3.org/2000/svg" width="${n}" height="${n}" fill="none" viewBox="0 0 28 28">
18    <path fill="#07F" d="M17.61 14a3.61 3.61 0 0 1-7.22 0A3.61 3.61 0 0 1 14 10.39a3.62 3.62 0 0 1 3.61 3.6Zm-3.6-12C7.37 2 2 7.38 2 14a12.01 12.01 0 0 0 18.77 9.91l.03-.02L19.2 22l-.03.01A9.54 9.54 0 0 1 14 23.53a9.55 9.55 0 0 1 0-19.07 9.55 9.55 0 0 1 9.31 11.59c-.3 1.24-1.16 1.62-1.82 1.56-.65-.05-1.42-.51-1.43-1.66V14A6.08 6.08 0 0 0 14 7.93 6.08 6.08 0 0 0 7.93 14 6.08 6.08 0 0 0 14 20.07c1.62 0 3.15-.64 4.3-1.8a3.9 3.9 0 0 0 3 1.8l.32.01a4.08 4.08 0 0 0 2.44-.82 4.5 4.5 0 0 0 1.55-2.28l.13-.5v-.02A12 12 0 0 0 14 2Z"/>
19</svg>
20  `},mt={height:44,borderRadius:8},be=n=>e=>{const i=n.lang||t.RUS,o=n.scheme||"light",r=Ot(n.borderRadius)?mt.borderRadius:n.borderRadius,a=n.height||mt.height,l=a<40?24:28,u=a<40?6:a<48?8:12,p=n.oauthList.map(s=>{const E=i===t.RUS?bt[i][s]:`${bt[i].replace("{provider}",fe[s])}`;return`
21      <div class="VkIdSdk_oauth_item" data-oauth="${s}">
22        ${ge[s](l)}
23        <div class="VkIdSdk_oauth_button_text">${E}</div>
24      </div>
25    `}).join(""),S=()=>{const s=document.querySelector(`#${e} .VkIdSdk_oauth_button_text`),E=document.querySelector(`#${e} .VkIdSdk_oauth_item`);if(!s||!E)return;s.clientWidth>=E.clientWidth-l*2-32-u*2&&document.querySelector(`#${e} .VkIdSdk_oauth_list`)?.removeAttribute("data-single-mode")};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",S):setTimeout(S,0);const g=n.oauthList.length===1?"data-single-mode":"",K=_e[i];return`
26    <div id="${e}" class="VkIdSdk_oauth_container" data-test-id="oauthList" data-scheme="${o}">
27      <style>
28        :root #${e}[data-scheme=light] {
29          --oauthlist--item_border_color: rgba(0, 0, 0, .12);
30          --oauthlist--color_text_secondary: #818c99;
31          --oauthlist--color_text_primary: #000;
32          --oauthlist--item_background_color: #fff;
33        }
34
35        :root #${e}[data-scheme=dark] {
36          --oauthlist--item_border_color: rgba(255, 255, 255, 0.12);
37          --oauthlist--color_text_secondary: #76787a;
38          --oauthlist--color_text_primary: #e1e3e6;
39          --oauthlist--item_background_color: unset;
40        }
41
42        #${e}.VkIdSdk_oauth_container {
43          position: relative;
44        }
45
46        #${e} .VkIdSdk_oauth_list {
47          display: flex;
48          height: ${a}px;
49        }
50
51        #${e} .VkIdSdk_oauth_item {
52          position: relative;
53          display: flex;
54          justify-content: center;
55          align-items: center;
56          padding: ${u}px;
57          margin-right: 12px;
58          width: 100%;
59          border: 1px solid var(--oauthlist--item_border_color);
60          background: var(--oauthlist--item_background_color);
61          border-radius: ${r}px;
62          cursor: pointer;
63        }
64
65        #${e} .VkIdSdk_oauth_item:last-child {
66          margin-right: 0;
67        }
68
69        #${e} .VkIdSdk_oauth_link_text {
70          display: flex;
71          font-family: -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif;
72          color: var(--oauthlist--color_text_secondary);
73          font-size: 13px;
74          line-height: 16px;
75          margin-bottom: 16px;
76          justify-content: center;
77          text-align: center;
78        }
79
80        #${e} .VkIdSdk_spinner {
81          position: absolute;
82          display: flex;
83          justify-content: center;
84          align-items: center;
85          width: 100%;
86          height: 100%;
87          background: #fff;
88        }
89
90        #${e}[data-state=loaded] .VkIdSdk_spinner {
91          transition: .2s;
92          opacity: 0;
93          pointer-events: none;
94        }
95
96        #${e} .VkIdSdk_spinner > svg {
97          animation: vkIdSdkButtonSpinner 0.7s linear infinite;
98        }
99
100        #${e} .VkIdSdk_oauth_button_text {
101          display: none;
102          font-family: -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif;
103          color: var(--oauthlist--color_text_primary);
104          padding-left: 8px;
105        }
106
107        #${e} .VkIdSdk_oauth_list[data-single-mode] .VkIdSdk_oauth_button_text {
108          display: block;
109        }
110
111        @keyframes vkIdSdkButtonSpinner {
112          0% {
113            transform: rotate(0deg);
114          }
115          100% {
116            transform: rotate(360deg);
117          }
118        }
119      </style>
120      <div class="VkIdSdk_spinner">
121        ${ve}
122      </div>
123      <div class="VkIdSdk_oauth_link_text">${K}</div>
124      <div class="VkIdSdk_oauth_list" ${g}>${p}</div>
125    </div>
126  `};function me(n,e,i,o){var r=arguments.length,a=r<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,i):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,e,i,o);else for(var u=n.length-1;u>=0;u--)(l=n[u])&&(a=(r<3?l(a):r>3?l(e,i,a):l(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a}class H extends wt{analytics;providers;flowSource;uniqueSessionId;constructor(){super(),this.analytics=new pe(this.config)}sendStartAnalytics(){const e=new Set(this.providers);this.analytics.sendMultibrandingOauthAdded({screen:this.flowSource,fields:[{name:N.VK,value:(+e.has(f.VK)).toString()},{name:N.OK,value:(+e.has(f.OK)).toString()},{name:N.MAIL,value:(+e.has(f.MAIL)).toString()}]}),e.has(f.VK)&&this.analytics.sendVkButtonShow({screen:this.flowSource,isIcon:e.size>1}),e.has(f.OK)&&this.analytics.sendOkButtonShow({screen:this.flowSource,isIcon:e.size>1}),e.has(f.MAIL)&&this.analytics.sendMailButtonShow({screen:this.flowSource,isIcon:e.size>1})}render(e){return this.lang=e?.lang||t.RUS,this.scheme=e?.scheme||st.LIGHT,this.providers=e.oauthList,this.flowSource=e?.flowSource||C.MULTIBRANDING,this.uniqueSessionId=e?.uniqueSessionId||this.id,this.analytics.setUniqueSessionId(this.uniqueSessionId),this.templateRenderer=be({lang:this.lang,oauthList:e.oauthList,height:e.styles?.height,borderRadius:e.styles?.borderRadius,scheme:this.scheme}),this.container=e.container,this.renderTemplate(),this.registerElements(),this.setState(At.LOADED),this.sendStartAnalytics(),this.elements.root.addEventListener("click",this.handleClick.bind(this)),this}handleClick(e){const i=e.target.closest("[data-oauth]");if(!i)return;const o=i.getAttribute("data-oauth"),r={lang:this.lang,scheme:this.scheme,provider:o,statsFlowSource:nt.MULTIBRANDING,uniqueSessionId:this.uniqueSessionId};let a;switch(o){case f.VK:a=this.analytics.sendVkButtonTap.bind(this.analytics);break;case f.OK:a=this.analytics.sendOkButtonTap.bind(this.analytics);break;case f.MAIL:a=this.analytics.sendMailButtonTap.bind(this.analytics);break}const l=()=>{H.auth.login(r).then(p=>{this.events.emit(G.LOGIN_SUCCESS,p)}).catch(p=>{this.events.emit(rt.ERROR,{code:Ct.AuthError,text:p.error})})},u={screen:this.flowSource,isIcon:this.providers.length>1};this.config.get().mode===Vt.Redirect?a(u).finally(l):(a(u),l())}}me([Kt({oauthList:[ne]})],H.prototype,"render",null);var it;(function(n){n.Primary="primary",n.Secondary="secondary"})(it||(it={}));var c;(function(n){n[n.SIGN_IN=0]="SIGN_IN",n[n.SIGN_UP=1]="SIGN_UP",n[n.GET=2]="GET",n[n.OPEN=3]="OPEN",n[n.CALCULATE=4]="CALCULATE",n[n.ORDER=5]="ORDER",n[n.PLACE_ORDER=6]="PLACE_ORDER",n[n.SUBMIT_REQUEST=7]="SUBMIT_REQUEST",n[n.PARTICIPATE=8]="PARTICIPATE"})(c||(c={}));const Se={[c.SIGN_IN]:"default",[c.SIGN_UP]:"appoint",[c.GET]:"receive",[c.OPEN]:"open",[c.
126CALCULATE]:"calculate",[c.ORDER]:"order",[c.PLACE_ORDER]:"service_order_placing",[c.SUBMIT_REQUEST]:"request",[c.PARTICIPATE]:"take_part"};class Ee{registrationStatsCollector;uniqueSessionId;constructor(e){const i=new Rt(e),o=new kt(i);this.registrationStatsCollector=new It(o)}setUniqueSessionId(e){this.uniqueSessionId=e}getFields(){const e=[{name:"sdk_type",value:"vkid"}];return this.uniqueSessionId&&e.push({name:"unique_session_id",value:this.uniqueSessionId}),e}sendFrameLoadingFailed(){this.registrationStatsCollector.logEvent(C.NOWHERE,{event_type:"iframe_loading_failed",fields:this.getFields()})}sendNoSessionFound(){this.registrationStatsCollector.logEvent(C.NOWHERE,{event_type:"no_session_found",fields:this.getFields()})}sendOneTapButtonNoUserShow(e="default"){this.registrationStatsCollector.logEvent(C.NOWHERE,{event_type:"onetap_button_no_user_show",fields:[...this.getFields(),{name:"button_type",value:e}]})}sendOneTapButtonNoUserTap(e="default"){return this.registrationStatsCollector.logEvent(C.NOWHERE,{event_type:"onetap_button_no_user_tap",fields:[...this.getFields(),{name:"button_type",value:e}]})}sendScreenProceed(e){this.registrationStatsCollector.logEvent(C.NOWHERE,{event_type:"screen_proceed",fields:[...this.getFields(),{name:"theme_type",value:e.scheme},{name:"style_type",value:e.skin},{name:"language",value:e.lang.toString()},{name:"text_type",value:Se[e.contentId]}]})}}var Lt=(function(){if(typeof Map<"u")return Map;function n(e,i){var o=-1;return e.some(function(r,a){return r[0]===i?(o=a,!0):!1}),o}return(function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(i){var o=n(this.__entries__,i),r=this.__entries__[o];return r&&r[1]},e.prototype.set=function(i,o){var r=n(this.__entries__,i);~r?this.__entries__[r][1]=o:this.__entries__.push([i,o])},e.prototype.delete=function(i){var o=this.__entries__,r=n(o,i);~r&&o.splice(r,1)},e.prototype.has=function(i){return!!~n(this.__entries__,i)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(i,o){o===void 0&&(o=null);for(var r=0,a=this.__entries__;r<a.length;r++){var l=a[r];i.call(o,l[1],l[0])}},e})()})(),ot=typeof window<"u"&&typeof document<"u"&&window.document===document,z=(function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()})(),ye=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(z):function(n){return setTimeout(function(){return n(Date.now())},1e3/60)}})(),Ie=2;function ke(n,e){var i=!1,o=!1,r=0;function a(){i&&(i=!1,n()),o&&u()}function l(){ye(a)}function u(){var p=Date.now();if(i){if(p-r<Ie)return;o=!0}else i=!0,o=!1,setTimeout(l,e);r=p}return u}var Re=20,we=["top","right","bottom","left","width","height","size","weight"],Ae=typeof MutationObserver<"u",Ve=(function(){function n(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=ke(this.refresh.bind(this),Re)}return n.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},n.prototype.removeObserver=function(e){var i=this.observers_,o=i.indexOf(e);~o&&i.splice(o,1),!i.length&&this.connected_&&this.disconnect_()},n.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},n.prototype.updateObservers_=function(){var e=this.observers_.filter(function(i){return i.gatherActive(),i.hasActive()});return e.forEach(function(i){return i.broadcastActive()}),e.length>0},n.prototype.connect_=function(){!ot||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ae?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},n.prototype.disconnect_=function(){!ot||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},n.prototype.onTransitionEnd_=function(e){var i=e.propertyName,o=i===void 0?"":i,r=we.some(function(a){return!!~o.indexOf(a)});r&&this.refresh()},n.getInstance=function(){return this.instance_||(this.instance_=ne
vendor: 7,484 bytes, line 126
126w n),this.instance_},n.instance_=null,n})(),Tt=(function(n,e){for(var i=0,o=Object.keys(e);i<o.length;i++){var r=o[i];Object.defineProperty(n,r,{value:e[r],enumerable:!1,writable:!1,configurable:!0})}return n}),D=(function(n){var e=n&&n.ownerDocument&&n.ownerDocument.defaultView;return e||z}),Dt=Z(0,0,0,0);function W(n){return parseFloat(n)||0}function St(n){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];return e.reduce(function(o,r){var a=n["border-"+r+"-width"];return o+W(a)},0)}function Ce(n){for(var e=["top","right","bottom","left"],i={},o=0,r=e;o<r.length;o++){var a=r[o],l=n["padding-"+a];i[a]=W(l)}return i}function Ke(n){var e=n.getBBox();return Z(0,0,e.width,e.height)}function Oe(n){var e=n.clientWidth,i=n.clientHeight;if(!e&&!i)return Dt;var o=D(n).getComputedStyle(n),r=Ce(o),a=r.left+r.right,l=r.top+r.bottom,u=W(o.width),p=W(o.height);if(o.boxSizing==="border-box"&&(Math.round(u+a)!==e&&(u-=St(o,"left","right")+a),Math.round(p+l)!==i&&(p-=St(o,"top","bottom")+l)),!Te(n)){var S=Math.round(u+a)-e,g=Math.round(p+l)-i;Math.abs(S)!==1&&(u-=S),Math.abs(g)!==1&&(p-=g)}return Z(r.left,r.top,u,p)}var Le=(function(){return typeof SVGGraphicsElement<"u"?function(n){return n instanceof D(n).SVGGraphicsElement}:function(n){return n instanceof D(n).SVGElement&&typeof n.getBBox=="function"}})();function Te(n){return n===D(n).document.documentElement}function De(n){return ot?Le(n)?Ke(n):Oe(n):Dt}function xe(n){var e=n.x,i=n.y,o=n.width,r=n.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,l=Object.create(a.prototype);return Tt(l,{x:e,y:i,width:o,height:r,top:i,right:e+o,bottom:r+i,left:e}),l}function Z(n,e,i,o){return{x:n,y:e,width:i,height:o}}var Ue=(function(){function n(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=Z(0,0,0,0),this.target=e}return n.prototype.isActive=function(){var e=De(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},n.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},n})(),$e=(function(){function n(e,i){var o=xe(i);Tt(this,{target:e,contentRect:o})}return n})(),Ne=(function(){function n(e,i,o){if(this.activeObservations_=[],this.observations_=new Lt,typeof e!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=i,this.callbackCtx_=o}return n.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof D(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var i=this.observations_;i.has(e)||(i.set(e,new Ue(e)),this.controller_.addObserver(this),this.controller_.refresh())}},n.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof D(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var i=this.observations_;i.has(e)&&(i.delete(e),i.size||this.controller_.removeObserver(this))}},n.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},n.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(i){i.isActive()&&e.activeObservations_.push(i)})},n.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,i=this.activeObservations_.map(function(o){return new $e(o.target,o.broadcastRect())});this.callback_.call(e,i,e),this.clearActive()}},n.prototype.clearActive=function(){this.activeObservations_.splice(0)},n.prototype.hasActive=function(){return this.activeObservations_.length>0},n})(),xt=typeof WeakMap<"u"?new WeakMap:new Lt,Ut=(function(){function n(e){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var i=Ve.getInstance(),o=new Ne(e,i,this);xt.set(this,o)}return n})();["observe","unobserve","disconnect"].forEach(function(n){Ut.prototype[n]=function(){var e;return(e=xt.get(this))[n].apply(e,arguments)}});var Pe=(function(){return typeof z.ResizeObserver<"u"?z.ResizeObserver:Ut})();const Be=n=>{const e=(n-30)/2+3;return n<40?e:e-2},Me=n=>n<40?14:n>47?17:16,Fe=n=>n<40?24:28,Ge={[t.RUS]:"Войти с VK ID",[t.UKR]:"Увійти з VK ID",[t.BEL]:"Увайсці з VК ID",[t.KAZ]:"VK ID арқылы кіру",[t.UZB]:"VK ID dan kirish",[t.ENG]:"Sign in with VK ID",[t.SPA]:"Iniciar sesión con VK ID",[t.GERMAN]:"Mit VK-ID anmelden",[t.POL]:"Wejdź z VK ID",[t.FRA]:"Se connecter avec VK ID",[t.TURKEY]:"VK ID aracılığıyla gir"},ze={[t.RUS]:"Записаться с VK ID",[t.UKR]:"Записатися з VK ID",[t.BEL]:"Запісацца з VK ID",[t.KAZ]:"VK ID арқылы жазылу",[t.UZB]:"VK ID bilan yozilish",[t.ENG]:"Sign up with VK ID",[t.SPA]:"Registrarse con VK ID",[t.GERMAN]:"Mit VK ID anmelden",[t.POL]:"Zapisz się z VK ID",[t.FRA]:"Prendre RDV avec VK ID",[t.TURKEY]:"VK ID ile kaydol"},We={[t.RUS]:"Получить с VK ID",[t.UKR]:"Отримати з VK ID",[t.BEL]:"Атрымаць з VK ID",[t.KAZ]:"VK ID арқылы алу",[t.UZB]:"VK ID bilan olish",[t.ENG]:"Get with VK ID",[t.SPA]:"Obtener con VK ID",[t.GERMAN]:"Mit VK ID erhalten",[t.POL]:"Otrzymaj z VK ID",[t.FRA]:"Obtenir avec VK ID",[t.TURKEY]:"VK ID ile al"},He={[t.RUS]:"Открыть с VK ID",[t.UKR]:"Відкрити з VK ID",[t.BEL]:"Адкрыць з VK ID",[t.KAZ]:"VK ID арқылы ашу",[t.UZB]:"VK ID bilan ochish",[t.ENG]:"Open with VK ID",[t.SPA]:"Abrir con VK ID",[t.GERMAN]:"Mit VK ID öffnen",[t.POL]:"Otwórz z VK ID",[t.FRA]:"Ouvrir avec VK ID",[t.TURKEY]:"VK ID ile aç"},Ze={[t.RUS]:"Рассчитать с VK ID",[t.UKR]:"Розрахувати з VK ID",[t.BEL]:"Разлічыць з VK ID",[t.KAZ]:"VK ID арқылы есептеу",[t.UZB]:"VK ID yordamida hisoblash",[t.ENG]:"Calculate with VK ID",[t.SPA]:"Calcular con VK ID",[t.GERMAN]:"Mit VK ID berechnen",[t.POL]:"Oblicz z VK ID",[t.FRA]:"Calculer avec VK ID",[t.TURKEY]:"VK ID ile hesapla"},qe={[t.RUS]:"Заказать с VK ID",[t.UKR]:"Замовити з VK ID",[t.BEL]:"Заказаць з VK ID",[t.KAZ]:"VK ID арқылы тапсырыс беру",[t.UZB]:"VK ID bilan buyurtma berish",[t.ENG]:"Order with VK ID",[t.SPA]:"Pedir con VK ID",[t.GERMAN]:"Mit VK ID bestellen",[t.POL]:"Zamów z VK ID",[t.FRA]:"Commander avec VK ID",[t.TURKEY]:"VK ID ile sipariş ver"},je={[t.RUS]:"Оформить с VK ID",[t.UKR]:"Оформити з VK ID",[t.BEL]:"Аформіць з VK ID",[t.KAZ]:"VK ID арқылы рәсімдеу",[t.UZB]:"VK ID bilan shakllantirish",[t.ENG]:"Order with VK ID",[t.SPA]:"Pedir con VK ID",[t.GERMAN]:"Mit VK ID Bestellung aufgeben",[t.POL]:"Wypełnij z VK ID",[t.FRA]:"Commander avec VK ID",[t.TURKEY]:"VK ID ile yap"},Ye={[t.RUS]:"Оставить заявку с VK ID",[t.UKR]:"Залишити запит з VK ID",[t.BEL]:"Пакінуць заяўку з VK ID",[t.KAZ]:"VK ID арқылы өтінім қалдыру",[t.UZB]:"VK ID bilan talabnoma qoldirish",[t.ENG]:"Send request with VK ID",[t.SPA]:"Enviar solicitud con VK ID",[t.GERMAN]:"Mit VK ID Anfrage stellen",[t.POL]:"Zostaw wniosek z VK ID",[t.FRA]:"Envoyer demande avec VK ID",[t.TURKEY]:"VK ID ile başvuru yap"}
126,Qe={[t.RUS]:"Участвовать с VK ID",[t.UKR]:"Брати участь з VK ID",[t.BEL]:"Удзельнічаць з VK ID",[t.KAZ]:"VK ID арқылы қатысу",[t.UZB]:"VK ID ilan ishtirok etish",[t.ENG]:"Participate with VK ID",[t.SPA]:"Participar con VK ID",[t.GERMAN]:"Mit VK ID teilnehmen",[t.POL]:"Uczestnicz z VK ID",[t.FRA]:"Participer avec VK ID",[t.TURKEY]:"VK ID ile katıl"},Et={[c.SIGN_IN]:Ge,[c.SIGN_UP]:ze,[c.GET]:We,[c.OPEN]:He,[c.CALCULATE]:Ze,[c.ORDER]:qe,[c.PLACE_ORDER]:je,[c.SUBMIT_REQUEST]:Ye,[c.PARTICIPATE]:Qe},Xe=(n,e)=>{const i=Et[n]||Et[c.SIGN_IN];return i[e]||i[t.RUS]},Je={[t.RUS]:"Продолжить",[t.UKR]:"Продовжити",[t.BEL]:"Працягнуць",[t.KAZ]:"Жалғастыру",[t.UZB]:"Davom etish",[t.ENG]:"Continue",[t.SPA]:"Continuar",[t.GERMAN]:"Fortfahren",[t.POL]:"Kontynuuj",[t.FRA]:"Continuer",[t.TURKEY]:"Devam"},tn={[t.RUS]:"Записаться",[t.UKR]:"Записатися",[t.BEL]:"Запісацца",[t.KAZ]:"Жазылу",[t.UZB]:"Yozilish",[t.ENG]:"Sign up",[t.SPA]:"Registrarse",[t.GERMAN]:"Anmelden",[t.POL]:"Zapisz się",[t.FRA]:"Prendre RDV",[t.TURKEY]:"Kaydol"},en={[t.RUS]:"Получить",[t.UKR]:"Отримати",[t.BEL]:"Атрымаць",[t.KAZ]:"Алу",[t.UZB]:"Olish",[t.ENG]:"Get",[t.SPA]:"Obtener",[t.GERMAN]:"Erhalten",[t.POL]:"Otrzymaj",[t.FRA]:"Obtenir",[t.TURKEY]:"Al"},nn={[t.RUS]:"Открыть",[t.UKR]:"Відкрити",[t.BEL]:"Адкрыць",[t.KAZ]:"Ашу",[t.UZB]:"Ochish",[t.ENG]:"Open",[t.SPA]:"Abrir",[t.GERMAN]:"Öffnen",[t.POL]:"Otwórz",[t.FRA]:"Ouvrir",[t.TURKEY]:"Aç"},on={[t.RUS]:"Рассчитать",[t.UKR]:"Розрахувати",[t.BEL]:"Разлічыць",[t.KAZ]:"Есептеу",[t.UZB]:"Hisoblash",[t.ENG]:"Calculate",[t.SPA]:"Calcular",[t.GERMAN]:"Berechnen",[t.POL]:"Oblicz",[t.FRA]:"Calculer",[t.TURKEY]:"Hesapla"},sn={[t.RUS]:"Заказать",[t.UKR]:"Замовити",[t.BEL]:"Заказаць",[t.KAZ]:"Тапсырыс беру",[t.UZB]:"Buyurtma berish",[t.ENG]:"Order",[t.SPA]:"Pedir",[t.GERMAN]:"Bestellen",[t.POL]:"Zamów",[t.FRA]:"Commander",[t.TURKEY]:"Sipariş ver"},rn={[t.RUS]:"Оформить заказ",[t.UKR]:"Оформити замовлення",[t.BEL]:"Аформіць заказ",[t.KAZ]:"Тапсырысты рәсімдеу",[t.UZB]:"Buyurtmani shakllantirish",[t.ENG]:"Place order",[t.SPA]:"Hacer pedido",[t.GERMAN]:"Bestellung aufgeben",[t.POL]:"Wypełnij zamówienie",[t.FRA]:"Passer commande",[t.TURKEY]:"Siparişi tamamlar"},an={[t.RUS]:"Оставить заявку",[t.UKR]:"Залишити запит",[t.BEL]:"Пакінуць заяўку",[t.KAZ]:"Өтінім қалдыру",[t.UZB]:"Talabnoma qoldirish",[t.ENG]:"Send request",[t.SPA]:"Enviar solicitud",[t.GERMAN]:"Anfrage stellen",[t.POL]:"Pozostaw wniosek",[t.FRA]:"Envoyer demande",[t.TURKEY]:"Başvuru bırak"},ln={[t.RUS]:"Участвовать",[t.UKR]:"Брати участь",[t.BEL]:"Удзельнічаць",[t.KAZ]:"Қатысу",[t.UZB]:"Ishtirok etish",[t.ENG]:"Participate",[t.SPA]:"Participar",[t.GERMAN]:"Teilnehmen",[t.POL]:"Uczestnicz",[t.FRA]:"Participer",[t.TURKEY]:"Katıl"},yt={[c.SIGN_IN]:Je,[c.SIGN_UP]:tn,[c.GET]:en,[c.OPEN]:nn,[c.CALCULATE]:on,[c.ORDER]:sn,[c.PLACE_ORDER]:rn,[c.SUBMIT_REQUEST]:an,[c.PARTICIPATE]:ln},dn=(n,e)=>{const i=yt[n]||yt[c.SIGN_IN];return i[e]||i[t.RUS]},cn="VK ID",un=`
127  <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
128    <path id="logoBg" fill-rule="evenodd" clip-rule="evenodd" d="M4.2653 4.2653C3 5.5306 3 7.56707 3 11.64V12.36C3 16.4329 3 18.4694 4.2653 19.7347C5.5306 21 7.56706 21 11.64 21H12.36C16.4329 21 18.4694 21 19.7347 19.7347C21 18.4694 21 16.4329 21 12.36V11.64C21 7.56707 21 5.5306 19.7347 4.2653C18.4694 3 16.4329 3 12.36 3H11.64C7.56706 3 5.5306 3 4.2653 4.2653Z" fill="white"/>
129    <path id="logoIcon" d="M12.6095 16C8.55576 16 6.09636 13.1823 6 8.5H8.05309C8.1171 11.9395 9.67903 13.397 10.8764 13.6967V8.5H12.8439V11.4683C13.9988 11.3401 15.2076 9.98991 15.614 8.5H17.5505C17.2406 10.3321 15.9246 11.6823 14.9948 12.2392C15.9253 12.6895 17.4225 13.8682 18 16H15.8714C15.4219 14.5749 14.321 13.4712 12.8446 13.3213V16H12.6095Z" fill="#0077FF"/>
130  </svg>
131`,hn=`
132  <svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
133    <path d="M14 22C13.4477 22 13 21.5523 13 21C13 20.4477 13.4477 20 14 20C17.3137 20 20 17.3137 20 14C20 10.6863 17.3137 8 14 8C10.6863 8 8 10.6863 8 14C8 14.6472 8.10214 15.2793 8.3002 15.8802C8.4731 16.4047 8.18807 16.9701 7.66355 17.143C7.13902 17.3159 6.57365 17.0308 6.40074 16.5063C6.13628 15.7041 6 14.8606 6 14C6 9.58172 9.58172 6 14 6C18.4183 6 22 9.58172 22 14C22 18.4183 18.4183 22 14 22Z" fill="currentColor"/>
134  </svg>
135`,pn=({width:n,height:e,iframeHeight:i,borderRadius:o,login:r,skin:a,scheme:l,contentId:u,lang:p,renderOAuthList:S,providers:g,setStatsButtonType:K})=>s=>{let E=0,O=0,h=0,d=0;const y=dn(u,p),_=cn,B=Xe(u,p),at=8,q=Be(e),$t=Me(e),j=Fe(e),R=document.createElement("div"),w=document.createElement("button");setTimeout(()=>{w.classList.add(`VkIdWebSdk__button_animation_${s}`)},100),w.classList.add(`VkIdWebSdk__button_${s}`),w.classList.add(`VkIdWebSdk__button_reset_${s}`),r&&(w.onclick=r);const Y=document.createElement("span");Y.classList.add(`VkIdWebSdk__button_in_${s}`);const A=document.createElement("span");A.classList.add(`VkIdWebSdk__button_content_${s}`);const Q=document.createElement("span");Q.classList.add(`VkIdWebSdk__button_logo_${s}`),Q.innerHTML=un;
135const m=document.createElement("span");m.classList.add(`VkIdWebSdk__button_text_${s}`);const M=document.createElement("span");M.innerText=y;const I=document.createElement("span");I.innerText=B;const k=document.createElement("span");k.innerText=_;const x=document.createElement("span");x.classList.add(`VkIdWebSdk__button_spinner_${s}`),x.innerHTML=hn;const L=document.createElement("div");L.classList.add(`VkIdWebSdk__oauthList_container_${s}`);const lt=U=>U+2*at+2*q+2*j,dt=()=>{let U=0,ct=!1;const Nt=()=>{g?.length&&!R.contains(L)&&(R.appendChild(L),!ct&&S({lang:p,scheme:l,container:L,oauthList:g,styles:{borderRadius:o,height:e}}),ct=!0)},ut=()=>{const pt=A.contains(m),Pt=m.contains(k),Bt=m.contains(I),F=R.clientWidth;pt&&F<E&&(R.contains(L)&&R.removeChild(L),K("icon"),w.setAttribute("style",`width: ${e}px;`),m.remove(),x.remove()),!pt&&F>=E&&(w.removeAttribute("style"),A.appendChild(m),A.appendChild(x)),!Pt&&F<O&&(m.style.width=`${h}px`,I.dataset.active="",k.dataset.active="true",setTimeout(()=>{I.remove(),m.appendChild(k)},U)),!Bt&&F>=O&&(m.style.width=`${d}px`,k.dataset.active="",I.dataset.active="true",setTimeout(()=>{k.remove(),m.appendChild(I)},U),Nt()),K("default")};new Pe(he(ut,500)).observe(R);const ht=document.getElementById(s);ht&&(ht.appendChild(R),R.appendChild(w),w.appendChild(Y),Y.appendChild(A),A.appendChild(Q),A.appendChild(m),A.appendChild(x),m.appendChild(M),m.appendChild(I),m.appendChild(k),h=k.clientWidth,d=I.clientWidth,E=lt(M.clientWidth),O=lt(d),M.remove(),I.remove(),k.remove(),ut(),U=250)};return document.readyState==="loading"?document.addEventListener("DOMContentLoaded",dt):setTimeout(dt,0),`
136<div id="${s}" data-test-id="oneTap" data-scheme="${l}" data-skin="${a}">
137  <style>
138    :root #${s} {
139      --onetap--button_background: #0077FF;
140      --onetap--button_border: none;
141      --onetap--background_hover: #0071F2;
142      --onetap--text_and_spinner: #FFF;
143      --onetap--logo_icon: #0077FF;
144      --onetap--logo_background: #FFF;
145    }
146
147    :root #${s}[data-scheme=light][data-skin=primary] {
148      --onetap--background_hover: #0071F2;
149      --onetap--background_active: #0069E1;
150    }
151
152    :root #${s}[data-scheme=dark][data-skin=primary] {
153      --onetap--background_hover: #097EFF;
154      --onetap--background_active: #1385FF;
155    }
156
157    :root #${s}[data-scheme=light][data-skin=secondary] {
158      --onetap--button_background: rgba(255, 255, 255, 0.12);
159      --onetap--button_border: 1px solid rgba(0, 0, 0, 0.12);
160      --onetap--background_hover: #F5F5F7;
161      --onetap--background_active: #EBECEF;
162      --onetap--text_and_spinner: #000;
163      --onetap--logo_icon: #FFF;
164      --onetap--logo_background: #0077FF;
165    }
166
167    :root #${s}[data-scheme=dark][data-skin=secondary] {
168      --onetap--button_background: transparent;
169      --onetap--button_border: 1px solid rgba(255, 255, 255, 0.12);
170      --onetap--background_hover: rgba(255, 255, 255, 0.06);
171      --onetap--background_active: rgba(255, 255, 255, 0.1);
172      --onetap--logo_icon: #FFF;
173      --onetap--logo_background: #0077FF;
174    }
175
176    #${s} {
177      position: relative;
178      width: ${n?`${n}px`:"100%"};
179      min-width: ${e}px;
180    }
181
182    #${s}[data-state=loaded] {
183      height: ${i}px;
184    }
185
186    #${s} iframe {
187      position: absolute;
188      top: 0;
189      left: 0;
190      opacity: 0;
191      pointer-events: none;
192      border: none;
193      color-scheme: auto;
194    }
195
196    #${s} .VkIdWebSdk__button_reset_${s} {
197      border: none;
198      margin: 0;
199      padding: 0;
200      width: auto;
201      overflow: visible;
202      background: transparent;
203      color: inherit;
204      font: inherit;
205      line-height: normal;
206      -webkit-font-smoothing: inherit;
207      -moz-osx-font-smoothing: inherit;
208      -webkit-appearance: none;
209    }
210
211    #${s} .VkIdWebSdk__button_${s} {
212      padding: ${q}px;
213      height: ${e}px;
214      width: 100%;
215      border-radius: ${o}px;
216      box-sizing: border-box;
217      overflow: hidden;
218    }
219
220    #${s} .VkIdWebSdk__button_animation_${s} {
221      transition: .2s ease;
222    }
223
224    #${s} .VkIdWebSdk__button_${s}:hover {
225      cursor: pointer;
226    }
227
228    #${s} .VkIdWebSdk__button_${s} {
229      background: var(--onetap--button_background);
230      border: var(--onetap--button_border);
231    }
232
233    #${s} .VkIdWebSdk__button_${s}:focus,
234    #${s} .VkIdWebSdk__button_${s}:hover {
235      background: var(--onetap--background_hover);
236    }
237
238    #${s} .VkIdWebSdk__button_${s}:active {
239      background: var(--onetap--background_active);
240    }
241
242    #${s} .VkIdWebSdk__button_in_${s} {
243      display: inline-block;
244      width: 100%;
245      height: 100%;
246      min-width: max-content;
247      transition: width 0.5s;
248    }
249
250    #${s} .VkIdWebSdk__button_content_${s} {
251      display: flex;
252      align-items: center;
253      justify-content: space-between;
254      height: 100%;
255    }
256
257    #${s} .VkIdWebSdk__button_logo_${s},
258    #${s} .VkIdWebSdk__button_spinner_${s},
259    #${s} .VkIdWebSdk__button_logo_${s} > svg,
260    #${s} .VkIdWebSdk__button_spinner_${s} > svg {
261      width: ${j}px;
262      height: ${j}px;
263    }
264
265    #${s} .VkIdWebSdk__button_spinner_${s} > svg {
266      position: absolute;
267      right: ${q}px;
268      animation: vkIdSdkButtonSpinner 0.7s linear infinite;
269    }
270
271    #${s} .VkIdWebSdk__button_text_${s} {
272      font-family: -apple-system, system-ui, "Helvetica Neue", Roboto, sans-serif;
273      font-weight: 500;
274      font-size: ${$t}px;
275      transition: .2s;
276      white-space: nowrap;
277      text-overflow: ellipsis;
278      overflow: hidden;
279    }
280
281    #${s} .VkIdWebSdk__button_text_${s} > span {
282      opacity: 0;
283      display: inline-block;
284      padding: 0 ${at}px;
285      transition: .5s;
286    }
287
288    #${s} .VkIdWebSdk__button_text_${s} > span[data-active=true] {
289      opacity: 1;
290    }
291
292    #${s} .VkIdWebSdk__button_text_${s},
293    #${s} .VkIdWebSdk__button_spinner_${s} {
294      color: var(--onetap--text_and_spinner);
295    }
296
297    .VkIdWebSdk__oauthList_container_${s} {
298      margin-top: 16px;
299    }
300
301    #${s} #logoBg {
302      fill: var(--onetap--logo_background);
303    }
304
305    #${s} #logoIcon {
306      fill: var(--onetap--logo_icon);
307    }
308
309    #${s}[data-state=not_loaded] .VkIdWebSdk__button_in_${s} {
310      width: 0;
311    }
312
313    #${s}[data-state=not_loaded] .VkIdWebSdk__button_spinner_${s} {
314      transition: .2s;
315      opacity: 0;
316      pointer-events: none;
317      width: 0;
318    }
319
320    #${s}[data-state=loaded] .VkIdWebSdk__oauthList_container_${s} {
321      display: none;
322    }
323
324    #${s}[data-state=loaded] iframe {
325      position: initial;
326      opacity: 100;
327      pointer-events: all;
328    }
329
330    #${s}[data-state=loaded] .VkIdWebSdk__button_${s} {
331      display: none;
332    }
333
334    @keyframes vkIdSdkButtonSpinner {
335      0% {
336        transform: rotate(0deg);
337      }
338      100% {
339        transform: rotate(360deg);
340      }
341    }
342  </style>
343  <iframe width="100%" height="100%" />
344</div>
345  `};function fn(n,e,i,o){var r=arguments.length,a=r<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,i):o,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(n,e,i,o);else for(var u=n.length-1;u>=0;u--)(l=n[u])&&(a=(r<3?l(a):r>3?l(e,i,a):l(e,i))||a);return r>3&&a&&Object.defineProperty(e,i,a),a}const et={width:0,height:44,borderRadius:8},_n=12;class P extends wt{analytics;vkidAppName="button_one_tap_auth";statsBtnType;fastAuthDisabled;constructor(){super(),this.analytics=new Ee(P.config)}setStatsButtonType=e=>{this.statsBtnType||(this.statsBtnType=e,this.fastAuthDisabled&&this.statsBtnType&&this.analytics.sendOneTapButtonNoUserShow(this.statsBtnType))};sendSuccessLoginEvent=e=>{this.events.emit(T.LOGIN_SUCCESS,e)};onBridgeMessageHandler(e){switch(e.handler){case T.SHOW_FULL_AUTH:{const i=e.params,o={};i.screen&&(o.screen=i.screen),i.sdk_oauth&&(o.provider=i.sdk_oauth,o.statsFlowSource=nt.MULTIBRANDING),this.openFullAuth(o);break}case T.NOT_AUTHORIZED:{this.analytics.sendNoSessionFound(),this.setState(At.NOT_LOADED),clearTimeout(this.timeoutTimer),this.elements?.iframe?.remove();break}case T.AUTHENTICATION_INFO:{this.events.emit(T.AUTHENTICATION_INFO,e.params);break}default:{super.onBridgeMessageHandler(e);break}}}onErrorHandler(e){this.analytics.sendFrameLoadingFailed(),this.analytics.sendOneTapButtonNoUserShow(this.statsBtnType),super.onErrorHandler(e)}openFullAuth(e){const i={statsFlowSource:nt.BUTTON_ONE_TAP,...e,uniqueSessionId:this.id,lang:this.lang,scheme:this.scheme};P.auth.login(i).then(this.sendSuccessLoginEvent).catch(o=>{this.events.emit(rt.ERROR,{code:Ct.AuthError,text:o.error})})}login(e){this.config.get().mode===Vt.Redirect?this.analytics.sendOneTapButtonNoUserTap(this.statsBtnType).finally(()=>{this.openFullAuth(e)}):(this.analytics.sendOneTapButtonNoUserTap(this.statsBtnType),this.openFullAuth(e))}renderOAuthList(e){if(!e.oauthList.length)return;new H().on(G.LOGIN_SUCCESS,this.sendSuccessLoginEvent).render({...e,flowSource:C.NOWHERE,uniqueSessionId:this.id})}render(e){this.lang=e?.lang||t.RUS,this.scheme=e?.scheme||st.LIGHT,this.fastAuthDisabled=e.fastAuthEnabled===!1;const i=(e.oauthList||[]).filter(r=>r!==f.VK),o={style_height:e.styles?.height||et.height,style_border_radius:Ot(e.styles?.borderRadius)?et.borderRadius:e.styles?.borderRadius,show_alternative_login:e?.showAlternativeLogin?1:0,button_skin:e.skin||it.Primary,content_id:e?.contentId||c.SIGN_IN,scheme:this.scheme,lang_id:this.lang,providers:i.join(","),uuid:this.id};return this.analytics.setUniqueSessionId(this.id),this.templateRenderer=pn({width:e.styles?.width||et.width,iframeHeight:o.show_alternative_login?o.style_height*2+_n:o.style_height,height:o.style_height,borderRadius:o.style_border_radius,login:this.login.bind(this),skin:o.button_skin,scheme:o.scheme,lang:o.lang_id,contentId:o.content_id,renderOAuthList:this.renderOAuthList.bind(this),providers:i,setStatsButtonType:this.setStatsButtonType.bind(this)}),this.analytics.sendScreenProceed({scheme:this.scheme,lang:this.lang,skin:o.button_skin,contentId:o.content_id}),this.fastAuthDisabled&&(o.fastAuthDisabled=!0),super.render({container:e.container,...o})}}fn([Kt({styles:[ie]})],P.prototype,"render",null);const vn={class:"mb-8 flex items-center justify-between"},gn=["disabled"],bn=["onClick"],mn={class:"mb-9 flex flex-wrap items-center justify-between gap-3"},Sn=["disabled"],En={class:"flex flex-col gap-y-5"},yn={class:"flex flex-col gap-y-4"},In=["disabled"],kn={key:0,class:"absolute flex size-full items-center justify-center bg-white"},Tn={__name:"Login",props:{isMobile:{type:Boolean,default:!1}},emits:["close","navigate"],setup(n,{emit:e}){const i=n,o=e,r=vt({}),a=Wt(),l=Ht(),u=Zt(),{isPending:p,mutate:S}=gt({mutationFn:h=>a.login(h),onError:h=>{Gt("user-auth",[h.data?.message].filter(Boolean),h.data.errors)},onSuccess:async()=>{if(!i.isMobile)o("close");else{const{token:h}=await a.getUserToken();tt(l.query,h)}l.path==="/login"&&await u.push("/")}}),g=gt({mutationFn:async h=>await $fetch(`/api/auth/socials/${h.social}`,{method:"POST",body:h}),onError:h=>{console.log(h,"error")},onSuccess:async()=>
345{if(!i.isMobile)await ee(),await a.fetchUser(),o("close");else{const{token:h}=await a.getUserToken();tt(l.query,h)}l.path==="/login"&&await u.push("/")}});function K(h){re(h,async d=>{d&&d.data.event==="auth"&&g.mutate(d.data.query)})}function s(){const h=ce().toString();oe.init({app:"51658169",redirectUrl:`${window.location.origin}/api/auth/social/vk`,scope:"email phone",responseMode:se.Callback,codeVerifier:h});const d=new P,y=document.getElementById("vk-id");y&&(d.render({container:y,scheme:st.DARK,lang:t.RUS}).on(rt.ERROR,_=>console.error(_)),d.on(T.LOGIN_SUCCESS,async function(_){$fetch("/api/auth/socials/vk",{method:"POST",body:{..._,verification_code:h}}).then(async()=>{await a.fetchUser();const{token:B}=await a.getUserToken();tt(l.query,B),o("close")}).catch(()=>{te.error("Попробуйте ещё раз",{description:"Если вы продолжаете получать ошибки — свяжитесь с администрацией"})})}))}qt(()=>{setTimeout(()=>{s()},100)});const E=vt("password");function O({node:h}){E.value=h.props.type==="text"?"password":"text"}return(h,d)=>{const y=Mt;return X(),ft("div",null,[V(v(Ft),{"config-file":"true"},{default:J(()=>[b("div",vn,[V(v(de),{styles:"2",tag:"1",title:"Вход"}),b("button",{disabled:v(g).isPending.value,onClick:d[0]||(d[0]=_=>h.$emit("navigate","register"))}," Регистрация ",8,gn)]),V(y,{id:"user-auth",modelValue:r.value,"onUpdate:modelValue":d[4]||(d[4]=_=>r.value=_),actions:!1,disabled:v(g).isPending.value,type:"form",onSubmit:d[5]||(d[5]=$(_=>v(S)(r.value),["prevent"]))},{default:J(()=>[V(y,{label:"E-mail",name:"email",placeholder:"[email protected]",type:"email",onKeyup:d[1]||(d[1]=_t($(_=>v(S)(r.value),["prevent","stop"]),["enter"]))}),V(y,{label:"Пароль",placeholder:"•••••••••",name:"password",required:"",type:E.value,onKeyup:d[2]||(d[2]=_t($(_=>v(S)(r.value),["prevent","stop"]),["enter"]))},{suffix:J(_=>[b("button",{type:"button",class:"px-3 text-black-400 transition hover:text-black-900",onClick:$(B=>O(_),["stop","prevent","self"])},[(X(),jt(Yt(_.type==="password"?v(ae):v(le)),{class:"pointer-events-none size-5"}))],8,bn)]),_:1},8,["type"]),b("div",mn,[V(y,{classes:{outer:"$remove:mb-4",wrapper:"$remove:mb-3"},label:"Запомнить меня",name:"remember",type:"checkbox"}),b("button",{disabled:v(g).isPending.value,tabindex:"-1",type:"button",onClick:d[3]||(d[3]=$(_=>h.$emit("navigate","reset"),["prevent"]))}," Восстановить пароль ",8,Sn)])]),_:1},8,["modelValue","disabled"]),b("div",En,[V(v(Qt),{disabled:v(g).isPending.value,loading:v(p),class:"w-full",size:"xl",text:"Войти",onClick:d[6]||(d[6]=_=>v(S)(r.value))},null,8,["disabled","loading"]),b("div",yn,[d[10]||(d[10]=b("div",{class:"flex items-center gap-4 text-center"},[b("span",{class:"h-px w-full bg-black-100 dark:bg-black-500"}),b("span",{class:"flex-1 whitespace-nowrap"},"Войти другим способом"),b("span",{class:"h-px w-full bg-black-100 dark:bg-black-500"})],-1)),b("button",{class:"relative flex w-full items-center justify-center gap-2 overflow-hidden rounded-md bg-white px-7 py-2.5 text-blue-600 ring-1 ring-inset ring-blue-600",disabled:v(g).isPending.value,onClick:d[7]||(d[7]=_=>K("esia"))},[v(g).isPending.value?(X(),ft("div",kn,[V(v(Xt),{class:"size-6 animate-spin"})])):Jt("",!0),d[8]||(d[8]=b("img",{class:"flex-none",src:ue,alt:"Госуслуги",draggable:"false"},null,-1)),d[9]||(d[9]=b("span",null,"Войти через Госуслуги",-1))],8,In),d[11]||(d[11]=b("div",{id:"vk-id"},null,-1))])])]),_:1})])}}};export{Tn as _};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.