PageSourceSearch

https://ybc-site.fly.dev/_nuxt/CgcZ7Bd-.js

js ybc-site.fly.dev collected 2026-10-03 08:28:48 UTC 15,215 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./Bn1RTwVB.js","./Ckz4BRok.js","./entry.DDpS-UFl.css","./BmTyT0b6.js","./TpimQ52s.js","./vue-tel-input.PECflDwb.css"])))=>i.map(i=>d[i]);
2import{c as u,o as r,a as e,e as ee,A as y,a3 as te,f as m,I as L,M as oe,i as V,w as E,h as o,b,t as s,g as I,T as ne,a2 as le,O as ae,p as se,d as q,H as ie,_ as O}from"./Ckz4BRok.js";import{_ as re}from"./CwrvgjuF.js";import{_ as D}from"./DlAUqK2U.js";import{I as de}from"./C5J2KMW3.js";import{A as j}from"./IBKw_BKx.js";import{A as ce}from"./DNVKs7I_.js";import{A as ue,i as pe}from"./Dz-Voav3.js";import{u as me}from"./CRuWuOt9.js";import{u as ge}from"./BsISMfOk.js";import{b as fe}from"./AZWSRnYi.js";import"./TpimQ52s.js";import"./BmTyT0b6.js";const he={},ve={width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function xe(i,w){return r(),u("svg",ve,[...w[0]||(w[0]=[e("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.3749 10.3965C8.74359 7.99742 12.3236 6.41579 14.1148 5.65163C19.2292 3.46978 20.2919 3.09077 20.9846 3.07826C21.1369 3.07551 21.4776 3.11423 21.6982 3.29787C21.8845 3.45293 21.9358 3.66239 21.9603 3.8094C21.9848 3.95641 22.0154 4.29131 21.9911 4.55299C21.714 7.53978 20.5147 14.7879 19.9046 18.1331C19.6465 19.5486 19.1382 20.0233 18.6461 20.0697C17.5766 20.1706 16.7645 19.3448 15.7287 18.6484C14.1078 17.5586 13.1921 16.8802 11.6188 15.8168C9.80053 14.5878 10.9792 13.9124 12.0154 12.8085C12.2866 12.5196 16.9987 8.12359 17.0899 7.72481C17.1013 7.67493 17.1119 7.48902 17.0042 7.39085C16.8965 7.29269 16.7376 7.32625 16.6229 7.35295C16.4604 7.3908 13.871 9.14619 8.85486 12.6191C8.11988 13.1368 7.45416 13.389 6.8577 13.3758C6.20015 13.3612 4.93528 12.9944 3.99498 12.6809C2.84166 12.2964 1.92503 12.0931 2.00485 11.4401C2.04642 11.1 2.5031 10.7521 3.3749 10.3965Z",fill:"currentColor"},null,-1)])])}const ye=Object.assign(D(he,[["render",xe]]),{__name:"IconLoginTelegram"}),be={class:"grid grid-cols-[48px_1fr_48px] items-center md:hidden"},we=["aria-label"],ke={class:"flex justify-center"},Ce={class:"hidden text-center text-[14px] font-semibold text-primary/90 md:block"},_e=["aria-label"],Le={class:"absolute left-7 top-8 hidden md:block"},Ee={class:"flex flex-1 flex-col md:mx-auto md:w-88"},Ie={class:"pt-10 text-center md:pt-13.5"},Pe={class:"font-oswald text-[32px] font-bold uppercase leading-[0.95]"},Be={class:"mt-5 text-[18px] leading-[1.08] tracking-[-0.02em] text-primary/90"},Ge={class:"mt-8 space-y-4 md:mt-4 md:space-y-3.5"},Ae=["placeholder"],Me={key:0,class:"-mt-2 text-[16px] font-medium text-accent"},Te=["disabled"],Se={key:0},Ve={key:1,class:"inline-flex items-center justify-center gap-3"},qe={class:"mt-6 flex items-center gap-4 text-[#8f8f95] md:mt-5 md:gap-3 md:text-[14px]"},Oe={class:"text-[18px] font-semibold md:text-[14px]"},je={key:0,class:"mt-6 rounded-2xl bg-primary/5 px-4 py-3 text-center text-[15px] leading-[1.35] text-primary/90"},De={class:"font-semibold"},Fe={key:1,class:"mt-6 md:mt-5"},$e=["disabled"],Ne={key:0,class:"inline-flex items-center justify-center gap-3"},He={key:1,class:"inline-flex items-center justify-center gap-3"},Ze={key:2,class:"mt-4 md:mt-3.5"},Re=["disabled"],Ue={class:"inline-flex items-center justify-center gap-3"},ze={key:0,class:"mt-3 text-[16px] font-medium text-accent"},Ke="openid email profile",Ye=ee({__name:"AuthLoginModal",props:{open:{type:Boolean},initialPhone:{},loading:{type:Boolean},passkeyLoading:{type:Boolean},errorMessage:{},passkeyErrorMessage:{},googleClientId:{},googleLinkEmail:{}},emits:["close","back","submit","google-access-token","passkey-login"],setup(i,{emit:w}){const F=ne(()=>Promise.all([O(()=>import("./Bn1RTwVB.js"),__vite__mapDeps([0,1,2,3,4]),import.meta.url),O(()=>Promise.resolve({}),__vite__mapDeps([5]),import.meta.url)]).then(([l])=>l.VueTelInput)),a=i,v=w,x=me(),{isEnglish:P,pick:n}=ge(),g=y(""),d=y(""),k=te(null),G=y(""),f=y(!1),B=y(!1),A=y(!1),C=m(()=>d.value||a.errorMessage||""),$=m(()=>C.value?"auth-phone-input auth-phone-input--invalid":"auth-phone-input"),N=m(()=>["w-full rounded-[12px] border bg-surface px-4  text-[16px] leading-[1.2] text-primary outline-none placeholder:text-muted  px-2 py-2 ",C.value?"border-accent":"border-border"]),H=m(()=>!!(a.loading||f.value)),Z=m(()=>!!(a.loading||a.passkeyLoading)),R=m(()=>A.value&&!a.googleLinkEmail),U=m(()=>P.value?"pl":"ua"),z=m(()=>P.value?["pl","ua","gb","de","us"]:["ua"]),M=m(()=>P.value?"+48 123 456 789":"+380 50 123 4567");let _=null;function K(){d.value=""}function Y(l){!B.value||!g.value.trim()||(d.value=l.isValid?"":n("Вкажіть коректний номер телефону.","Enter a valid phone number."))}function T(l){if(B.value=!0,!pe(g.value)){d.value=n("Вкажіть коректний номер телефону.","Enter a valid phone number.");return}v("submit",{phone:g.value.trim(),method:l})}function W(){return window.google?.accounts.oauth2?Promise.resolve():_||(_=new Promise((l,t)=>
2{const c=document.querySelector('script[data-google-identity="true"]');if(c){c.addEventListener("load",()=>l(),{once:!0}),c.addEventListener("error",()=>t(new Error(n("Не вдалося завантажити Google Identity script.","Failed to load the Google Identity script."))),{once:!0});return}const p=document.createElement("script");p.src="https://accounts.google.com/gsi/client",p.async=!0,p.defer=!0,p.dataset.googleIdentity="true",p.addEventListener("load",()=>l(),{once:!0}),p.addEventListener("error",()=>t(new Error(n("Не вдалося завантажити Google Identity script.","Failed to load the Google Identity script."))),{once:!0}),document.head.appendChild(p)}),_)}async function S(){if(!a.open||!a.googleClientId||a.googleLinkEmail)return;try{await W()}catch{d.value=n("Не вдалося завантажити Google авторизацію.","Failed to load Google authentication.");return}const l=window.google?.accounts.oauth2;if(!l){d.value=n("Google авторизація тимчасово недоступна.","Google authentication is temporarily unavailable.");return}(!k.value||G.value!==a.googleClientId)&&(k.value=l.initTokenClient({client_id:a.googleClientId,scope:Ke,prompt:"select_account",callback:t=>{if(t.error){d.value=t.error_description?.trim()||n("Не вдалося авторизуватись через Google.","Failed to log in with Google."),f.value=!1;return}const c=t.access_token?.trim()??"";if(!c){d.value=n("Не вдалося отримати Google access token.","Failed to receive a Google access token."),f.value=!1;return}v("google-access-token",c)},error_callback:t=>{f.value=!1,t.type!=="popup_closed"&&(d.value=n("Не вдалося відкрити Google авторизацію.","Failed to open Google authentication."))}}),G.value=a.googleClientId)}async function J(){d.value="",await S(),k.value&&(f.value=!0,k.value.requestAccessToken({prompt:"select_account"}))}async function Q(){a.open&&(A.value=await fe())}return L(()=>a.open,l=>{l&&(g.value=a.initialPhone||"",d.value="",f.value=!1,B.value=!1,Q())},{immediate:!0}),L(()=>a.loading,l=>{l||(f.value=!1)}),L(()=>a.initialPhone,l=>{l&&a.open&&(g.value=l)}),L(()=>[a.googleClientId,a.googleLinkEmail,a.open],([l,t,c])=>{!l||t||!c||oe(S)}),(l,t)=>{const c=re,p=ye,X=de;return r(),V(ce,{open:i.open,"panel-class":"flex h-[100svh] w-full flex-col overflow-y-auto overscroll-contain bg-surface px-5 pb-[calc(env(safe-area-inset-bottom)+1.5rem)] pt-[max(0.75rem,env(safe-area-inset-top))] text-primary [-webkit-overflow-scrolling:touch] md:h-auto md:min-h-0 md:max-h-[90vh] md:max-w-[804px] md:rounded-[40px] md:px-7 md:pb-11 md:pt-8",onClose:t[6]||(t[6]=h=>v("close"))},{default:E(()=>[e("div",be,[e("button",{type:"button",class:"flex h-12 w-12 items-center justify-center rounded-full bg-primary/5 text-[#b7b7bc] transition-colors hover:bg-primary/8","aria-label":o(n)("Повернутися назад","Go back"),onClick:t[0]||(t[0]=h=>v("back"))},[...t[7]||(t[7]=[e("svg",{class:"h-6 w-6",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M14.5 5.5L8 12L14.5 18.5",stroke:"currentColor","stroke-width":"2.25","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])],8,we),e("div",ke,[b(j,{location:"header",variant:"default",class:"text-primary"})]),t[8]||(t[8]=e("span",null,null,-1))]),e("p",Ce,s(o(n)("Обліковий запис","Account")),1),e("button",{type:"button",class:"absolute right-4 top-4 hidden h-10 w-10 items-center justify-center rounded-full bg-primary/5 text-[#b7b7bc] transition-colors hover:bg-primary/8 md:flex","aria-label":o(n)("Закрити модалку","Close dialog"),onClick:t[1]||(t[1]=h=>v("close"))},[...t[9]||(t[9]=[e("svg",{class:"h-5 w-5",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e("path",{d:"M5 5L15 15",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round"}),e("path",{d:"M15 5L5 15",stroke:"currentColor","stroke-width":"1.8","stroke-linecap":"round"})],-1)])],8,_e),e("div",Le,[b(j,{location:"header",variant:"default",class:"text-primary"})]),e("div",Ee,[e("div",Ie,[e("h2",Pe,s(o(n)("Вхід","Log in")),1),e("p",Be,s(o(n)("Увійдіть до свого акаунта YBC","Log in to your YBC account")),1)]),e("div",Ge,[e("div",null,[b(c,null,{fallback:E(()=>[e("input",{type:"tel",name:"phone",placeholder:o(M),class:se(o(N)),disabled:""},null,10,Ae)]),default:E(()=>[b(o(F),{modelValue:o(g),"onUpdate:modelValue":t[2]||(t[2]=h=>ae(g)?g.value=h:null),mode:"international","default-country":o(U),"auto-default-country":!1,"auto-format":!0,"valid-characters-only":!0,"only-countries":o(ue),"preferred-countries":o(z),"dropdown-options":{showFlags:!0,showDialCodeInList:!0,showDialCodeInSelection:!1,showSearchBox:!0,searchBoxPlaceholder:o(n)("Пошук країни","Search country")},"input-options":{autocomplete:"tel",name:"phone",placeholder:o(M),required:!0,maxlength:25,showDialCode:!0,styleClasses:"auth-phone-input__control"},"style-classes":o($),disabled:i.loading,onInput:K,onValidate:Y,onKeyup:t[3]||(t[3]=le(h=>T("telegram"),["enter"]))},null,8,["modelValue","default-country","only-countries","preferred-countries","dropdown-options","input-options","style-classes","disabled"])]),_:1})]),o(C)?(r(),u("p",Me,s(o(C)),1)):I("",!0),e("button",{type:"button",disabled:i.loading,class:"flex h-14 w-full items-center justify-center rounded-2xl border-2 border-primary text-[18px] font-bold text-primary transition-colors hover:bg-primary hover:text-inverse",onClick:t[4]||(t[4]=h=>T("telegram"))},[i.loading?(r(),u("div",Se,s(o(n)("Авторизація...","Logging in...")),1)):(r(),u("div",Ve,[e("span",null,s(o(n)("Продовжити з Telegram","Continue with Telegram")),1),b(p,{class:"h-8 w-8 md:h-5 md:w-5"})]))],8,Te)]),e("div",qe,[t[10]||(t[10]=e("span",{class:"h-px flex-1 bg-border"},null,-1)),e("span",Oe,s(i.googleClientId&&!i.googleLinkEmail?o(n)("Або","Or"):o(n)("Підтвердження","Verification")),1),t[11]||(t[11]=e("span",{class:"h-px flex-1 bg-border"},null,-1))]),i.googleLinkEmail?(r(),u("div",je,[q(s(o(n)("Google акаунт","Google account"))+" ",1),e("span",De,s(i.googleLinkEmail),1),q(" "+s(o(n)("підтверджено.","has been verified."))+" "+s(o(n)("Тепер вкажіть номер телефону та завершіть привʼязку через Telegram.","Now enter your phone number and complete the connection through Telegram.")),1)])):i.googleClientId?(r(),u("div",Fe,[e("button",{type:"button",disabled:o(H),class:"flex h-14 w-full items-center justify-center rounded-2xl border-2 border-primary text-[18px] font-bold text-primary transition-colors hover:bg-primary hover:text-inverse disabled:cursor-not-allowed disabled:opacity-60",onClick:J},[o(f)?(r(),u("div",Ne,[e("span",null,s(o(n)("Авторизація...","Logging in...")),1)])):(r(),u("div",He,[e("span",null,s(o(n)("Продовжити з Google","Continue with Google")),1),t[12]||(t[12]=e("svg",{class:"h-7 w-7 shrink-0",viewBox:"0 0 24 24","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg"}
2,[e("path",{d:"M21.805 12.23c0-.75-.067-1.47-.193-2.16H12v4.09h5.5a4.7 4.7 0 0 1-2.04 3.08v2.56h3.3c1.93-1.78 3.045-4.4 3.045-7.57Z",fill:"#4285F4"}),e("path",{d:"M12 22c2.76 0 5.08-.91 6.77-2.46l-3.3-2.56c-.91.61-2.08.97-3.47.97-2.67 0-4.93-1.8-5.74-4.22H2.85v2.64A10.23 10.23 0 0 0 12 22Z",fill:"#34A853"}),e("path",{d:"M6.26 13.73A6.14 6.14 0 0 1 5.94 12c0-.6.11-1.18.32-1.73V7.63H2.85A10.23 10.23 0 0 0 1.8 12c0 1.64.39 3.2 1.05 4.37l3.41-2.64Z",fill:"#FBBC04"}),e("path",{d:"M12 6.05c1.5 0 2.86.52 3.92 1.53l2.94-2.95C17.07 2.97 14.75 2 12 2 7.98 2 4.52 4.3 2.85 7.63l3.41 2.64C7.07 7.85 9.33 6.05 12 6.05Z",fill:"#EA4335"})],-1))]))],8,$e)])):I("",!0),o(R)?(r(),u("div",Ze,[e("button",{type:"button",disabled:o(Z),class:"flex h-14 w-full items-center justify-center rounded-2xl border-2 border-primary text-[18px] font-bold text-primary transition-colors hover:bg-primary hover:text-inverse disabled:cursor-not-allowed disabled:opacity-60",onClick:t[5]||(t[5]=h=>v("passkey-login"))},[e("div",Ue,[e("span",null,s(i.passkeyLoading?o(n)("Авторизація...","Logging in..."):o(n)("Продовжити з Passkey","Continue with Passkey")),1),t[13]||(t[13]=e("svg",{class:"h-7 w-7 shrink-0",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16","aria-hidden":"true"},[e("path",{fill:"currentColor",d:"M6.617 7.064a2.5 2.5 0 0 1-1.388-.406 3 3 0 0 1-1.014-1.102 3.2 3.2 0 0 1-.381-1.553 3.03 3.03 0 0 1 1.403-2.604A2.54 2.54 0 0 1 6.617 1q.747 0 1.377.392t1.015 1.07q.384.676.384 1.526 0 .864-.38 1.564a3 3 0 0 1-1.015 1.106 2.5 2.5 0 0 1-1.38.406Zm-4.636 6.424q-.57 0-.894-.253a.83.83 0 0 1-.322-.692q0-.675.407-1.41t1.168-1.38 1.842-1.052q1.08-.405 2.428-.406.937 0 1.747.209a6.8 6.8 0 0 1 1.468.553q.037.768.403 1.424t.996 1.073v1.934zm11.06-6.826q.614 0 1.124.3t.81.806q.3.504.3 1.12 0 .718-.425 1.286-.426.567-1.216.89l.893.893a.22.22 0 0 1 .074.158q0 .084-.059.142l-.916.901.652.652a.2.2 0 0 1 .066.147.2.2 0 0 1-.066.146l-1.098 1.099a.2.2 0 0 1-.143.062.2.2 0 0 1-.136-.062l-.586-.586a.35.35 0 0 1-.11-.242v-3.391a2.26 2.26 0 0 1-1.021-.824 2.2 2.2 0 0 1-.385-1.27q0-.617.3-1.121.3-.506.81-.806.509-.3 1.132-.3m-.008 1.025a.66.66 0 0 0-.487.201.66.66 0 0 0-.201.487q0 .285.205.488a.67.67 0 0 0 .483.201.67.67 0 0 0 .484-.201.66.66 0 0 0 .205-.488.66.66 0 0 0-.205-.487.67.67 0 0 0-.484-.201"})],-1))])],8,Re),i.passkeyErrorMessage?(r(),u("p",ze,s(i.passkeyErrorMessage),1)):I("",!0)])):I("",!0),(r(),V(ie(o(x).isEnabled.value?"a":"button"),{href:o(x).href.value||void 0,target:o(x).target,rel:o(x).rel,type:"button",class:"mt-6 inline-flex items-center justify-center gap-3 self-center text-[16px] font-bold text-primary transition-opacity hover:opacity-70 disabled:cursor-default disabled:opacity-45",disabled:!o(x).isEnabled.value,onClick:o(x).onClick},{default:E(()=>[e("span",null,s(o(n)("Звернутися у службу підтримки","Contact support")),1),b(X,{class:"h-7 w-7 md:h-5 md:w-5"})]),_:1},8,["href","target","rel","disabled","onClick"]))])]),_:1},8,["open"])}}}),rt=Object.assign(D(Ye,[["__scopeId","data-v-2907b946"]]),{__name:"ModalsAuthLoginModal"});export{rt as default};

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.