1import{k as e,m as a,n as t}from"./1lO56wOJ.js";import{f as s,g as n,z as l,v as o,A as i,u as r,a as c,w as u,d,D as p,B as m,C as v,E as f,F as g,G as h}from"./D-zbNKDM.js";import{h as _,I as y,D as b,K as w,M as k,r as N,c as C,g as x,t as S,A as E,f as A,C as P,a8 as T,P as L,J as U,l as M,R as O,L as V,V as D,w as R,O as F,N as I,T as $,o as j,y as q,W as B,a9 as W,U as H,X as J,_ as Y,Y as K,Z as z,a6 as Z,Q as G,S as Q,u as X,B as ee}from"./DdmQhDWx.js";import{_ as ae}from"./BCo6x5W8.js";import{_ as te,a as se,f as ne,t as le}from"./CM-4ZysQ.js";import{u as oe}from"./DbibsC3M.js";const ie={class:"p4ylfxkubax fullscreen flex so74e24u text-center q-pa-md"},re=ae(_({__name:"ErrorServer",setup(a){function t(){window.location.reload()}return(a,s)=>(b(),y("div",ie,[w("div",null,[s[0]||(s[0]=w("div",{class:"zmulhl8wy"}," 500 ",-1)),s[1]||(s[1]=w("div",{class:"epl1hd39e3sh"}," Something went wrong ",-1)),s[2]||(s[2]=w("div",{class:"gvjtqnwg1x"}," We're having trouble loading this page. Please try again later. ",-1)),k(e,{class:"q-mt-xl ob1no0qvov6h4",unelevated:"",label:"Retry","no-caps":"",onClick:t})])]))}}),[["__scopeId","data-v-872563f2"]]),ce={class:"lhw1x2wr7y1s1",role:"dialog","aria-modal":"true","aria-labelledby":"report-modal-title"},ue={key:0,class:"jwidrv9eea"},de={class:"tgu5j9q7cr5ep"},pe={id:"report-modal-title",class:"erg3d4"},me={key:0,class:"elk8iswkr"},ve={class:"yoljhldw7o"},fe={class:"iver0"},ge=["placeholder"],he={key:0,class:"qjnpujnlh0"},_e={class:"iver0"},ye=["placeholder"],be={key:0,class:"qjnpujnlh0"},we={class:"iver0"},ke={class:"iver0"},Ne={class:"iver0"},Ce=["placeholder"],xe={key:0,class:"qjnpujnlh0"},Se={class:"f2lp7od9fk"},Ee=["disabled"],Ae={key:0},Pe={key:1,class:"ts65gbjm"},Te={key:0,class:"edbmqql"},Le=ae(_({__name:"ReportAbuseModal",setup(e){const{isOpen:a,close:t}=l(),i=N(null),r=N(null);let c=null,u="";const d=N(null),{t:p,tm:m,locale:v,messages:f}=s(),{themeFamily:g}=n(),h=C(()=>"vlundarunon"===g.value),_=C(()=>{const e=v.value.split("-")[1]?.toLowerCase();return e||"us"}),j=C(()=>{f.value;const e=m("pages.main.sections.reportForm.fields");return Array.isArray(e)?e:[]});function q(e){return j.value.find(a=>"firstName"===e||"lastName"===e?"text"===a.type&&a.label?.toLowerCase().includes("firstName"===e?"first":"last"):a.type===e)}const B=C(()=>{f.value;const e=p("pages.main.sections.reportForm.subtext","");return"string"==typeof e&&e?e:""}),W=C(()=>{f.value;const e=p("pages.main.sections.reportForm.title","");return"string"==typeof e&&e?e:"Report an Issue"}),H=C(()=>q("firstName")?.label||"First Name"),J=C(()=>q("lastName")?.label||"Last Name"),Y=C(()=>q("email")?.label||"Email address"),K=C(()=>q("phone")?.label||"Phone number"),z=C(()=>q("textarea")?.label||"Describe the issue..."),Z=C(()=>{f.value;const e=p("pages.main.sections.reportForm.submitButtonText","");return"string"==typeof e&&e?e:"SEND REPORT â"}),G=C(()=>{f.value;const e=p("pages.main.sections.reportForm.submitted","");return"string"==typeof e&&e?e:"Thank you! Your report has been submitted."}),Q=x({firstName:"",lastName:"",email:"",phone:"",description:""}),X=x({firstName:"",lastName:"",email:"",phone:"",description:""}),ee=N(!1),ae=N(!1),le=N(""),oe=N(_.value.toUpperCase());function ie(){t()}function re(e){if("Escape"===e.key)return e.preventDefault(),void ie();if("Tab"!==e.key||!i.value)return;const a=Array.from(i.value.querySelectorAll('button:not([disabled]), input:not([disabled]), textarea:not([disabled]), select:not([disabled]), [href], [tabindex]:not([tabindex="-1"])')).filter(e=>null!==e.offsetParent);if(!a.length)return;const t=a[0],s=a[a.length-1];e.shiftKey&&document.activeElement===t?(e.preventDefault(),s?.focus()):e.shiftKey||document.activeElement!==s||(e.preventDefault(),t?.focus())}function Le(e){oe.value=e.toUpperCase(),X.phone=""}function Ue(e){if(X[e]="","firstName"!==e||Q.firstName.trim()||(X.firstName="First name is required"),"lastName"!==e||Q.lastName.trim()||(X.lastName="Last name is required"),"email"===e&&(Q.email.trim()?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(Q.email)||(X.email="Invalid email format"):X.email="Email is required"),"phone"===e){const e=!0===d.value?.maskDisabled,a=o(Q.phone,oe.value||"US",e);a&&(X.phone=a)}"description"!==e||Q.description.trim()||(X.description="Please describe the issue")}async function Me(){if(Ue("firstName"),Ue("lastName"),Ue("email"),Ue("phone"),Ue("description"),!(X.firstName||X.lastName||X.email||X.p
1hone||X.description)){ee.value=!0,le.value="";try{const e=!0===d.value?.maskDisabled,a=await ne.processFormSubmission({firstName:Q.firstName,lastName:Q.lastName,email:Q.email,phone:Q.phone,message:Q.description,source:"report_abuse"},v.value,oe.value,e);a.success?ae.value=!0:le.value=a.message||"Submission failed. Please try again."}catch{le.value="Network error. Please try again."}finally{ee.value=!1}}}return S(a,e=>{if(e)return c=document.activeElement,u=document.documentElement.style.overflow,document.documentElement.style.overflow="hidden",void E(()=>r.value?.focus({preventScroll:!0}));document.documentElement.style.overflow=u,c?.focus?.({preventScroll:!0}),c=null,e||setTimeout(()=>{Q.firstName="",Q.lastName="",Q.email="",Q.phone="",Q.description="",Object.keys(X).forEach(e=>X[e]=""),ae.value=!1,le.value=""},300)}),A(()=>{document.documentElement.style.overflow=u}),(e,t)=>(b(),P(T,{to:"#q-app"},[k($,{name:"modal-fade"},{default:L(()=>[M(a)?(b(),y("div",{key:0,ref_key:"overlayRef",ref:i,class:"e5y3bnepfw8n",onClick:O(ie,["self"]),onKeydown:re,tabindex:"-1"},[w("div",ce,[w("button",{ref_key:"closeButtonRef",ref:r,class:"us6tirv2j6",onClick:ie,"aria-label":"Close"}," Ã ",512),ae.value?(b(),y("div",ue,[t[8]||(t[8]=w("div",{class:"oddk122aeesii"},"â",-1)),w("p",de,V(G.value),1)])):(b(),y(D,{key:1},[w("h2",pe,V(W.value),1),B.value?(b(),y("p",me,V(B.value),1)):U("",!0),w("form",{onSubmit:O(Me,["prevent"]),class:"vktgdbue3"},[w("div",ve,[w("div",fe,[R(w("input",{"onUpdate:modelValue":t[0]||(t[0]=e=>Q.firstName=e),type:"text",placeholder:H.value,class:F(["v6aai",{"u0dcc":X.firstName}]),onBlur:t[1]||(t[1]=e=>Ue("firstName"))},null,42,ge),[[I,Q.firstName]]),X.firstName?(b(),y("span",he,V(X.firstName),1)):U("",!0)]),w("div",_e,[R(w("input",{"onUpdate:modelValue":t[2]||(t[2]=e=>Q.lastName=e),type:"text",placeholder:J.value,class:F(["v6aai",{"u0dcc":X.lastName}]),onBlur:t[3]||(t[3]=e=>Ue("lastName"))},null,42,ye),[[I,Q.lastName]]),X.lastName?(b(),y("span",be,V(X.lastName),1)):U("",!0)])]),w("div",we,[k(te,{modelValue:Q.email,"onUpdate:modelValue":t[4]||(t[4]=e=>Q.email=e),label:Y.value,error:X.email},null,8,["modelValue","label","error"])]),w("div",ke,[k(se,{ref_key:"reportPhoneRef",ref:d,modelValue:Q.phone,"onUpdate:modelValue":t[5]||(t[5]=e=>Q.phone=e),label:K.value,error:X.phone,"default-country":_.value,onCountryChange:Le},null,8,["modelValue","label","error","default-country"])]),w("div",Ne,[R(w("textarea",{"onUpdate:modelValue":t[6]||(t[6]=e=>Q.description=e),placeholder:z.value,class:F(["kmi97ebyaex",{"u0dcc":X.description}]),rows:"4",onBlur:t[7]||(t[7]=e=>Ue("description"))},null,42,Ce),[[I,Q.description]]),X.description?(b(),y("span",xe,V(X.description),1)):U("",!0)]),w("div",Se,[h.value?(b(),y("button",{key:0,type:"button",class:"z8x7tq4bwa4qkj",onClick:ie},"Cancel")):U("",!0),w("button",{type:"submit",disabled:ee.value,class:"oftqngzhp823"},[ee.value?(b(),y("span",Pe)):(b(),y("span",Ae,V(Z.value),1))],8,Ee)]),le.value?(b(),y("p",Te,V(le.value),1)):U("",!0)],32)],64))])],544)):U("",!0)]),_:1})]))}}),[["__scopeId","data-v-ae9e4a4e"]]),Ue="chat_widget_session",Me=N("collapsed"),Oe=[{text:"",delay:5},{text:"ð We have a welcome package for new members:\n\nâ
Welcome Bonus\nâ
Zero Commission\nâ
Free Trading Course\n\nLeave your details below!",delay:10},{text:"Unfortunately, all our managers are currently busy. Please leave your contact details and we'll get back to you as soon as possible! ð",delay:0}];function Ve(e){const{t:a,tm:t,locale:n,messages:l}=s(),i=function(){if("undefined"==typeof window)return null;try{const e=sessionStorage.getItem(Ue);if(e)return JSON.parse(e)}catch{}return null}(),r=Me,c=N(i?.conversationStep||"auto_messages"),u=N(i?.messages||[]),d=N(i?.autoMessageIndex||0),p=N(i?.hasOpened||!1),m=C(()=>p.value?0:u.value.filter(e=>!e.isUser).length),v=N(!1),f=x({firstName:"",lastName:"",email:"",phone:""}),g=x({firstName:"",lastName:"",email:"",phone:""}),h=N(!1),_=N(""),y=C(()=>{const e=n.value.split("-")[1]?.toLowerCase();return e||"us"}),b=N(y.value.toUpperCase()),w=N(""),k=[],E=C(()=>{l.value;const e=t("blocks.popup.messages");if(Array.isArray(e)&&e.length)return e;const s=t("pages.main.sections.formPopup.messages");if(Array.isArray(s)&&s.length)return s;const n=a("brand.name","")||"our platform",o=[...Oe];return o[0]={...o[0],text:`ð Hi! I'm Sarah, your personal account manager at ${n}. Need help getting started? I'm here for you.`},o}),A=C(()=>{const e=(E.value[0]?.text||"").replace(/<[^>]*>/g,"").replace(/ /gi," ").replace(/&/gi,"&").replace(/</gi,"<").replace(/>/gi,">").replace(/"/gi,'"').replace(/'/gi,"'").replace(/\n/g," ");return e.length>80?e.slice(0,80)+"...":e}),P=C(()=>{l.value;const e=a("blocks.popup.agent.name","");if("string"==typeof e&&e)return e;const t=a("pages.main.sections.formPopup.agent.name","");return"string"==typeof t&&t?t:"Sarah Mitchell"}),T=C(()=>{l.value;const e=a("blocks.popup.agent.role","");if("string"==typeof e&&e)return e;const t=a("pages.main.sections.formPopup.agent.role","");return"string"==typeof t&&t?t:"Senior Account Manager"}),L=C(()=>{l.value;return a("blocks.popup.agent.avatar","")||a("pages.main.sections.formPopup.agent.avatar","")||""||"https://ui-avatars.c
1om/api/?name=SM&background=f59e0b&color=fff&size=80&bold=true"}),U=C(()=>{l.value;const e=a("blocks.popup.buttonText","");if("string"==typeof e&&e)return e;const t=a("pages.main.sections.formPopup.buttonText","");return"string"==typeof t&&t?t:"Send Message â"}),M=C(()=>{l.value;const e=a("blocks.popup.footerText","");if("string"==typeof e&&e)return e;const t=a("pages.main.sections.formPopup.footerText","");return"string"==typeof t&&t?t:"Protected & confidential"}),O=C(()=>{l.value;const e=t("pages.main.sections.chatForm.fields");return Array.isArray(e)?e:[]});function V(e){return O.value.find(a=>"firstName"===e||"lastName"===e?"text"===a.type&&a.label?.toLowerCase().includes("firstName"===e?"first":"last"):a.type===e)}const D=C(()=>V("firstName")?.label||"First Name"),R=C(()=>V("lastName")?.label||"Last Name"),F=C(()=>V("email")?.label||"Email"),I=C(()=>V("phone")?.label||"Phone"),$=C(()=>{l.value;const e=a("pages.main.sections.chatForm.submitted","");return"string"==typeof e&&e?e:"Thank you! We'll be in touch shortly."});function B(){return(new Date).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})}function W(){!function(e){if("undefined"!=typeof window)try{sessionStorage.setItem(Ue,JSON.stringify(e))}catch{}}({messages:u.value,conversationStep:c.value,autoMessageIndex:d.value,hasOpened:p.value,submitted:!1})}function H(e,a){const t=setTimeout(e,a);k.push(t)}function J(){k.forEach(clearTimeout),k.length=0}function Y(){const e=E.value,a=d.value;if(a>=e.length)return c.value="form",void W();const t=e[a];if(!t)return c.value="form",void W();const s=t.delay??0;if(0===s)return c.value="user_input",void W();const n=1e3*s;c.value="typing",H(()=>{K(t,a)},Math.max(n,1500))}function K(e,a){u.value.push({id:`agent-${a}`,content:e.text,timestamp:B()}),d.value=a+1,c.value="auto_messages",H(()=>{Y()},500)}function z(){if(p.value||"expanded"===r.value)return;const e=d.value,a=E.value[e];a&&"number"==typeof a.delay&&a.delay>0&&H(()=>{p.value||"expanded"===r.value||(u.value.push({id:`agent-${e}`,content:a.text,timestamp:B()}),d.value=e+1,r.value="badge",W(),H(z,500))},1e3*a.delay)}function Z(){if(r.value="expanded",p.value=!0,J(),le("co"),v.value||"confirmation"===c.value)return v.value=!1,c.value="form",f.firstName="",f.lastName="",f.email="",f.phone="",g.firstName="",g.lastName="",g.email="",g.phone="",h.value=!1,_.value="",void W();if(u.value.length>0)return("typing"===c.value||"typing_busy"===c.value||"count"===e?.notificationMode&&"auto_messages"===c.value)&&Y(),void W();const a=E.value[0];a&&a.delay&&a.delay>0?K(a,0):Y()}function G(){r.value="collapsed",J(),W()}function Q(a){if(g[a]="","firstName"!==a||f.firstName.trim()||(g.firstName="Required"),"lastName"!==a||f.lastName.trim()||(g.lastName="Required"),"email"===a&&(f.email.trim()?/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(f.email)||(g.email="Invalid email"):g.email="Required"),"phone"===a){const a=e?.isPhoneFallback?.()||!1,t=o(f.phone,b.value||"US",a);t&&(g.phone=t)}}return j(()=>function(){if(p.value)return;if("count"===e?.notificationMode)return void z();const a=E.value[0]?.delay,t="number"==typeof a&&a>0?1e3*a:1e4;H(()=>{"collapsed"===r.value&&(r.value="badge")},t),H(()=>{"badge"!==r.value&&"collapsed"!==r.value||(r.value="preview")},t+5e3)}()),q(()=>J()),S(u,W,{deep:!0}),{chatState:r,unreadCount:m,conversationStep:c,messages:u,form:f,errors:g,isSubmitting:h,submissionError:_,previewText:A,agentName:P,agentTitle:T,agentAvatar:L,submitButtonText:U,footerText:M,firstNameLabel:D,lastNameLabel:R,emailLabel:F,phoneLabel:I,confirmationText:$,userMessage:w,openChat:Z,sendUserMessage:function(){const e=w.value.trim();if(e&&le("cm"),!e)return;u.value.push({id:`user-${Date.now()}`,content:e,timestamp:B(),isUser:!0}),w.value="",c.value="typing_busy";const a=E.value,t=d.value,s=t<a.length?a[t]:null;H(()=>{s&&(u.value.push({id:`agent-${t}`,content:s.text,timestamp:B()}),d.value=t+1),d.value<a.length?(c.value="auto_messages",H(()=>Y(),500)):(c.value="form",W())},1500)},closeChat:G,toggleChat:function(){"expanded"===r.value?G():Z()},defaultCountry:y,onCountryChange:function(e){b.value=e.toUpperCase(),g.phone=""},validateField:Q,onSubmit:async function(){if(Q("firstName"),Q("lastName"),Q("email"),Q("phone"),!(g.firstName||g.lastName||g.email||g.phone)){le("fs"),h.value=!0,c.value="submitting",_.value="";
1try{const a=e?.isPhoneFallback?.()||!1,t=await ne.processFormSubmission({firstName:f.firstName,lastName:f.lastName,email:f.email,phone:f.phone,source:"chat_widget"},n.value,b.value,a);t.success?(v.value=!0,c.value="confirmation",W(),H(()=>G(),3e3)):(c.value="form",_.value=t.message||"Submission failed.")}catch{c.value="form",_.value="Network error. Please try again."}finally{h.value=!1}}}}}const De={class:"f004twvm"},Re={class:"rkbgi3j"},Fe={key:0,class:"n38h3030"},Ie={key:1,class:"n38h3030 zlnr8zo7w"},$e={key:0,class:"avqkf3qukx5z"},je={key:0,class:"jltbwer2b2"},qe={class:"i3e5th25"},Be={class:"li8kjjfh"},We={class:"at099f"},He=["src"],Je={class:"sk612oeqjvvn2"},Ye={class:"s0lj13vg0bs6bv"},Ke={class:"gq5up"},ze={key:0,class:"cdeys2neq2 xsde5rkt"},Ze=["innerHTML"],Ge={class:"hmyix1ntfkha"},Qe={key:0,class:"l9xl8ee7lcwp"},Xe={key:0,class:"m0l8u"},ea=["disabled"],aa={key:1,class:"n6aas"},ta={class:"x2h4sz9t"},sa=["placeholder"],na=["placeholder"],la=["disabled"],oa={key:0},ia={key:1,class:"a0odd39uctebgi"},ra={class:"k5h07hda"},ca={key:0,class:"j2i81ta"},ua={key:2,class:"pibgmj"},da={class:"xb0wa69weqv"},pa=ae(_({__name:"ChatWidgetClassic",setup(e){const a=N(null),{chatState:t,conversationStep:s,messages:n,form:l,errors:o,isSubmitting:r,submissionError:c,previewText:u,agentName:d,agentTitle:p,agentAvatar:m,submitButtonText:v,footerText:f,firstNameLabel:g,lastNameLabel:h,emailLabel:_,phoneLabel:C,confirmationText:x,userMessage:A,openChat:P,sendUserMessage:T,closeChat:j,toggleChat:q,defaultCountry:H,onCountryChange:J,validateField:Y,onSubmit:K}=Ve({isPhoneFallback:()=>!0===a.value?.maskDisabled}),z=N(null);return S(n,()=>{E(()=>{z.value&&(z.value.scrollTop=z.value.scrollHeight)})},{deep:!0}),(e,N)=>(b(),y("div",De,[k($,{name:"bubble-fade"},{default:L(()=>["preview"===M(t)?(b(),y("div",{key:0,class:"k40eb5",onClick:N[0]||(N[0]=(...e)=>M(P)&&M(P)(...e))},[w("p",Re,V(M(u)),1)])):U("",!0)]),_:1}),w("button",{class:"gasjb",onClick:N[1]||(N[1]=(...e)=>M(q)&&M(q)(...e)),"aria-label":"Chat"},[k($,{name:"icon-fade",mode:"out-in"},{default:L(()=>["expanded"!==M(t)?(b(),y("span",Fe,"ð¬")):(b(),y("span",Ie,"â"))]),_:1}),"badge"===M(t)||"preview"===M(t)?(b(),y("span",$e,"1")):U("",!0),N[12]||(N[12]=w("span",{class:"ux819hi"},null,-1))]),k($,{name:"chat-slide"},{default:L(()=>["expanded"===M(t)?(b(),y("div",je,[w("div",qe,[w("div",Be,[w("div",We,[w("img",{src:M(m),alt:"Agent",class:"j817xl1mde"},null,8,He),N[13]||(N[13]=w("span",{class:"rfz303"},null,-1))]),w("div",Je,[w("span",Ye,V(M(d)),1),w("span",Ke,V(M(p)),1)])]),w("button",{class:"u81gh1dkerf",onClick:N[2]||(N[2]=(...e)=>M(j)&&M(j)(...e)),"aria-label":"Close"},"â")]),w("div",{class:"s7dl4o",ref_key:"messagesRef",ref:z},[(b(!0),y(D,null,B(M(n),e=>(b(),y("div",{key:e.id,class:F(["shzhjlqh62b",{"md5zz6vne3x":e.isUser||e.id.startsWith("user-")}])},[e.isUser||e.id.startsWith("user-")?(b(),y("div",ze,V(e.content),1)):(b(),y("div",{key:1,class:"cdeys2neq2 sfx90g2lb",innerHTML:M(i)(e.content)},null,8,Ze)),w("span",Ge,V(e.timestamp),1)],2))),128)),"typing"===M(s)||"typing_busy"===M(s)?(b(),y("div",Qe,[...N[14]||(N[14]=[w("span",{class:"i88igyuw098"},null,-1),w("span",{class:"i88igyuw098"},null,-1),w("span",{class:"i88igyuw098"},null,-1)])])):U("",!0)],512),"user_input"===M(s)?(b(),y("div",Xe,[w("form",{onSubmit:N[4]||(N[4]=O((...e)=>M(T)&&M(T)(...e),["prevent"])),class:"rnyxwehc7j"},[R(w("input",{"onUpdate:modelValue":N[3]||(N[3]=e=>W(A)?A.value=e:null),type:"text",placeholder:"Type a message...",class:"ozbjf72vu",autofocus:""},null,512),[[I,M(A)]]),w("button",{type:"submit",class:"fyvn1oreavoo70",disabled:!M(A).trim()},"â",8,ea)],32)])):U("",!0),"form"===M(s)||"submitting"===M(s)?(b(),y("div",aa,[w("form",{onSubmit:N[11]||(N[11]=O((...e)=>M(K)&&M(K)(...e),["prevent"])),class:"qvkp5dr1xnfi1i"},[w("div",ta,[R(w("input",{"onUpdate:modelValue":N[5]||(N[5]=e=>M(l).firstName=e),type:"text",placeholder:M(g),class:F(["lcdq83h661ve",{"p6m5x":M(o).firstName}]),onBlur:N[6]||(N[6]=e=>M(Y)("firstName"))},null,42,sa),[[I,M(l).firstName]]),R(w("input",{"onUpdate:modelValue":N[7]||(N[7]=e=>M(l).lastName=e),type:"text",placeholder:M(h),class:F(["lcdq83h661ve",{"p6m5x":M(o).lastName}
1]),onBlur:N[8]||(N[8]=e=>M(Y)("lastName"))},null,42,na),[[I,M(l).lastName]])]),k(te,{modelValue:M(l).email,"onUpdate:modelValue":N[9]||(N[9]=e=>M(l).email=e),label:M(_),error:M(o).email},null,8,["modelValue","label","error"]),k(se,{ref_key:"chatPhoneRef",ref:a,modelValue:M(l).phone,"onUpdate:modelValue":N[10]||(N[10]=e=>M(l).phone=e),label:M(C),error:M(o).phone,"default-country":M(H),onCountryChange:M(J)},null,8,["modelValue","label","error","default-country","onCountryChange"]),w("button",{type:"submit",disabled:M(r),class:"vzc8ukk8g7m"},[M(r)?(b(),y("span",ia)):(b(),y("span",oa,V(M(v)),1))],8,la),w("p",ra,"ð "+V(M(f)),1),M(c)?(b(),y("p",ca,V(M(c)),1)):U("",!0)],32)])):U("",!0),"confirmation"===M(s)?(b(),y("div",ua,[N[15]||(N[15]=w("div",{class:"nlzi3vmm8v6"},"â",-1)),w("p",da,V(M(x)),1)])):U("",!0)])):U("",!0)]),_:1})]))}}),[["__scopeId","data-v-04bd1e03"]]),ma={class:"z1i3otwoe"},va={class:"u0oowa11azma"},fa={key:0,class:"fu6hb1n"},ga={key:1,class:"fu6hb1n yq7rtgln"},ha={class:"ebunj2mu7ki3p"},_a={key:0,class:"dnkn5c"},ya={key:1,class:"fzjkqc5acx"},ba={class:"kudf5zpctqnpt"},wa={class:"cj3n58"},ka={class:"xh11n8q4uan8"},Na=["src","alt"],Ca=["aria-label"],xa={key:2,class:"stxruhes4"},Sa={class:"vrm40"},Ea={class:"uza5z1b"},Aa={class:"xwvvh0"},Pa={class:"am1j2q"},Ta={key:0,class:"p6b46u3nwqtzh"},La={key:0,class:"pqqs4tc2ah aw1zvoiqc"},Ua=["innerHTML"],Ma={class:"gdz7248mbe"},Oa={key:1,class:"g8jnoy"},Va={key:0,class:"idbvfnrdr"},Da=["disabled"],Ra={key:0,viewBox:"0 0 24 24","aria-hidden":"true"},Fa={key:1,"aria-hidden":"true"},Ia={key:0,class:"iber0z0tzn6m"},$a={key:1,class:"xfkhelk7qxxt"},ja={class:"wdscrm"},qa=["placeholder"],Ba=["placeholder"],Wa=["disabled"],Ha={key:0},Ja={key:1,class:"lal8vdxvjow268"},Ya={key:0,class:"iaxriez22sd"},Ka={key:1,class:"cbhoyzxnq8bz"},za={key:2,class:"ymz58cbuis"},Za={class:"md8d8sb2supb3o"},Ga={key:3,class:"ym3x9v8pzkv"},Qa=_({__name:"ChatWidgetFresh",props:{notificationMode:{default:"preview"},showOnline:{type:Boolean,default:!0},presentation:{default:"default"}},setup(e){const a=N(null),{chatState:t,unreadCount:s,conversationStep:n,messages:l,form:o,errors:r,isSubmitting:c,submissionError:u,previewText:d,agentName:p,agentTitle:m,agentAvatar:v,submitButtonText:f,footerText:g,firstNameLabel:h,lastNameLabel:_,emailLabel:x,phoneLabel:A,confirmationText:P,userMessage:T,openChat:J,sendUserMessage:Y,closeChat:K,toggleChat:z,defaultCountry:Z,onCountryChange:G,validateField:Q,onSubmit:X}=Ve({isPhoneFallback:()=>!0===a.value?.maskDisabled,notificationMode:e.notificationMode}),ee=N(null),ae=N(!1),ne=C(()=>Boolean(v.value&&!v.value.includes("ui-avatars.com")&&!ae.value)),le=C(()=>p.value.split(/\s+/).filter(Boolean).slice(0,2).map(e=>e[0]?.toUpperCase()).join("")||"â¢"),oe=C(()=>"vlundarunon"!==e.presentation?p.value:"expanded"===t.value?"Close chat":`Chat with ${p.value.trim().split(/\s+/)[0]||p.value}`);function ie(e){"Escape"===e.key&&"expanded"===t.value&&K()}return j(()=>window.addEventListener("keydown",ie)),q(()=>window.removeEventListener("keydown",ie)),S(l,()=>{E(()=>{ee.value&&(ee.value.scrollTop=ee.value.scrollHeight)})},{deep:!0}),S(v,()=>{ae.value=!1}),(N,C)=>(b(),y("div",ma,[k($,{name:"bubble-fade"},{default:L(()=>["count"!==e.notificationMode&&"preview"===M(t)?(b(),y("div",{key:0,class:"tddp835e97qe",onClick:C[0]||(C[0]=(...e)=>M(J)&&M(J)(...e))},[w("p",va,V(M(d)),1)])):U("",!0)]),_:1}),w("button",{class:"mfitj",onClick:C[1]||(C[1]=(...e)=>M(z)&&M(z)(...e)),"aria-label":"Chat"},[k($,{name:"icon-fade",mode:"out-in"},{default:L(()=>["expanded"!==M(t)?(b(),y("span",fa,"ð¬")):(b(),y("span",ga,"â"))]),_:1}),w("span",ha,V(oe.value),1),("count"===e.notificationMode?M(s)>0:"badge"===M(t)||"preview"===M(t))?(b(),y("span",_a,V("count"===e.notificationMode?M(s):1),1)):U("",!0),e.showOnline?(b(),y("span",ya)):U("",!0)]),k($,{name:"chat-slide"},{default:L(()=>["expanded"===M(t)?(b(),y("div",{key:0,class:F(["e0qgoze0t53a6",{"l0r2r":"form"===M(n)||"submitting"===M(n)}])},[w("div",ba,[w("div",wa,[w("div",ka,[ne.value?(b(),y("img",{key:0,src:M(v),alt:M(p),class:"uv5twkyazaqjs",onError:C[2]||(C[2]=e=>ae.value=!0)},null,40,Na)):(b(),y("span",{key:1,class:"r2r3vszwo",role:"img","aria-label":M(p)},V(le.value),9,Ca)),e.showOnline?(b(),y("span",xa)):U("",!0)]),w("div",Sa,[w("span",Ea,V(M(p)),1),w("span",Aa,V(M(m)),1)])]),w("div",Pa,[w("button",{class:"zdjsfn5xnzywq8",type:"button",onClick:C[3]||(C[3]=(...e)=>M(K)&&M(K)(...e)),"aria-label":"Close"},"â")])]),w("div",{class:"b7m7o8jos",ref_key:"messagesRef",ref:ee},["vlundarunon"===e.presentation?(b(),y("div",Ta,"Today")):U("",!0),(b(!0),y(D,null,B(M(l),e=>(b(),y("div",{key:e.id,class:F(["lu7nz7qfk",{"j5wrfvma99k":e.isUser||e.id.startsWith("user-")}])},[e.isUser||e.id.startsWith("user-")?(b(),y("div",La,V(e.content),1)):(b(),y("div",{key:1,class:"pqqs4tc2ah bgdj6obhf",innerHTML:M(i)(e.content)},null,8,Ua)),w("span",Ma,V(e.timestamp),1)],2))),128)),"typing"===M(n)||"typing_busy"===M(n)?(b(),y("div",Oa,[...C[13]||(C[13]=[w("span",{class:"eorcod2ek44"},null,-1),w("span",{class:"eorcod2ek44"},null,-1),w("span",{class:"eorcod2ek44"},null,-1)])])):U("",!0)],512),"user_input"===M(n)?(b(),y("div",Va,[w("form",{onSubmit:C[5]||(C[5]=O((...e)=>M(Y)&&M(Y)(...e),["prevent"])),class:"pzvboq25c"},[R(w("input",{"onUpdate:modelValue":C[4]||(C[4]=e=>W(T)?T.value=e:null),type:"text",placeholder:"Type a message...",class:"b4cu1u55vlxjd",autofocus:""},null,512),[[I,M(T)]]),w("button",{type:"submit",class:"xeeo2iwcedds0",disabled:!M(T).trim(),"aria-label":"Send message"},["vlundarunon"===e.presentation?(b(),y("svg",Ra,[...C[14]||(C[14]=[w("path",{d:"M22 2 15 22l-4-9-9-4 20-7Z"},null,-1),w("path",{d:"m22 2-11 11"},null,-1)])])):(b(),y("span",Fa,"â"))],8,Da)],32),"vlundarunon"===e.presentation?(b(),y("p",Ia,"Press Enter to send")):U("",!0)])):U("",!0),"form"===M(n)||"submitting"===M(n)?(b(),y("div",$a,[w("form",{onSubmit:C[12]||(C[12]=O((...e)=>M(X)&&M(X)(...e),["prevent"])),class:"j1pzyevi5llpc"},[w("div",ja,[R(w("input",{"onUpdate:modelValue":C[6]||(C[6]=e=>M(o).firstName=e),type:"text",placeholder:M(h),class:F(["ir5cgj",{"f0uwo":M(r).firstName}]),onBlur:C[7]||(C[7]=e=>M(Q)("firstName"))},null,42,qa),[[I,M(o).firstName]]),R(w("input",{"onUpdate:modelValue":C[8]||(C[8]=e=>M(o).lastName=e),type:"text",placeholder:M(_),class:F(["ir5cgj",{"f0uwo":M(r).lastName}]),onBlur:C[9]||(C[9]=e=>M(Q)("lastName"))},null,42,Ba),[[I,M(o).lastName]])]),k(te,{modelValue:M(o).email,"onUpdate:modelValue":C[10]||(C[10]=e=>M(o).email=e),label:M(x),error:M(r).email},null,8,["modelValue","label","error"]),k(se,{ref_key:"chatPhoneRef",ref:
1a,modelValue:M(o).phone,"onUpdate:modelValue":C[11]||(C[11]=e=>M(o).phone=e),label:M(A),error:M(r).phone,"default-country":M(Z),onCountryChange:M(G)},null,8,["modelValue","label","error","default-country","onCountryChange"]),w("button",{type:"submit",disabled:M(c),class:"otrjnnvnh"},[M(c)?(b(),y("span",Ja)):(b(),y("span",Ha,V(M(f)),1))],8,Wa),"vlundarunon"!==e.presentation?(b(),y("p",Ya,"ð "+V(M(g)),1)):U("",!0),M(u)?(b(),y("p",Ka,V(M(u)),1)):U("",!0)],32)])):U("",!0),"confirmation"===M(n)?(b(),y("div",za,[C[15]||(C[15]=w("div",{class:"ndbemhemku"},"â",-1)),w("p",Za,V(M(P)),1)])):U("",!0),"vlundarunon"===e.presentation?(b(),y("footer",Ga,[C[16]||(C[16]=w("span",{"aria-hidden":"true"},"ð",-1)),H(V(M(g)),1)])):U("",!0)],2)):U("",!0)]),_:1})]))}}),Xa=_({inheritAttrs:!1,__name:"ChatWidgetVlundarunon",setup:e=>(e,a)=>(b(),P(Qa,J({class:"ds3522n3 s8wa5myoay8m7","notification-mode":"count",presentation:"vlundarunon","show-online":!1},e.$attrs),null,16))}),et=_({inheritAttrs:!1,__name:"ChatWidgetNocturne",setup:e=>(e,a)=>(b(),P(Qa,J({class:"yfil2vphan btnbx","notification-mode":"count","show-online":!1},e.$attrs),null,16))}),at=_({inheritAttrs:!1,__name:"ChatWidget",setup(e){const{themeFamily:a}=n(),t={classic:pa,modern:pa,fresh:Qa,forge:pa,vlundarunon:Xa,nocturne:et},s=C(()=>t[a.value]||pa);return(e,a)=>(b(),P(Y(s.value),K(z(e.$attrs)),null,16))}}),tt=["aria-expanded"],st="nocturne-certificate-tooltip",nt=_({__name:"CertificateWidgetNocturne",setup(e){const a=N(null),t=N(!1),s=N(!1);function n(){t.value=!0}function l(){s.value=!1,t.value=!1}function o(){s.value=!s.value,t.value=s.value}function i(e){"mouse"===e.pointerType&&n()}function r(e){"mouse"!==e.pointerType||s.value||(t.value=!1)}function c(e){e.relatedTarget instanceof Node&&a.value?.contains(e.relatedTarget)||l()}function u(e){e.target instanceof Node&&!a.value?.contains(e.target)&&l()}function d(e){"Escape"===e.key&&l()}return j(()=>{document.addEventListener("click",u),document.addEventListener("keydown",d)}),q(()=>{document.removeEventListener("click",u),document.removeEventListener("keydown",d)}),(e,s)=>(b(),y("aside",{ref_key:"widgetRef",ref:a,class:"he1ek8qknx","aria-label":"Information security standard",onPointerenter:i,onPointerleave:r,onFocusin:n,onFocusout:c},[w("button",{type:"button",class:"byy21n7","aria-label":"About ISO 27001","aria-expanded":t.value,"aria-describedby":st,onClick:o},[...s[0]||(s[0]=[w("span",{class:"xszym0bhb5d","aria-hidden":"true"},[w("img",{src:"/images/nocturne-iso-reference.png",alt:"",width:"1194",height:"212"})],-1),w("span",{class:"p72lkuowrb"},[H("ISO 27001"),w("span",null,"Information security")],-1)])],8,tt),R(w("div",{id:st,class:"amswd",role:"tooltip"},[...s[1]||(s[1]=[w("span",{class:"v4jj88"},"INFORMATION SECURITY",-1),w("strong",null,"ISO/IEC 27001",-1),w("p",null,"A standard for managing information security and protecting data.",-1)])],512),[[Z,t.value]])],544))}}),lt={class:"no-cookie-banner__copy"},ot=["href"],it={class:"me4px13"},rt=["aria-label"],ct={class:"snybn6"},ut={class:"dws3h2775lac"},dt={class:"yau4jod5tbrh0"},pt={class:"dws3h2775lac"},mt={class:"dws3h2775lac"},vt={class:"xih7uqdtkg"},ft={type:"submit",class:"u8vyg"},gt={class:"xnzaygpb1c6"},ht=["href"],_t={class:"vzlqwh8",role:"status","aria-live":"polite"},yt="cms_cookie_preferences",bt="cms:open-cookie-settings",wt="no-cookie-banner-title",kt="no-cookie-dialog-title",Nt=_({__name:"CookieConsent",setup(e){const{locale:a}=s(),{getRouteWithLang:t}=oe(),n=G(),l=C(()=>n.resolve(t("/privacy-policy")).href),o=N(null),i=N(!1),r=N(!1),c=N(!1),u=N(""),d=N(null);let p=null;const m={cookies:"Cookies",bannerDescription:"Choose which cookies to allow. Change your choice anytime.",privacyPolicy:"Privacy Policy",acceptAll:"Accept all",reject:"Reject",settings:"Settings",privacyChoices:"YOUR PRIVACY CHOICES",preferences:"Cookie preferences",close:"Close cookie settings",explanation:"Only essential storage is currently used. Optional preferences apply if analytics or marketing services are added; no optional services are loaded now.",essential:"Essential",essentialDescription:"Remembers your cookie choices and selected country.",alwaysOn:"Always on",analytics:"Analytics",analyticsDescription:"Allow usage measurement to help improve the website.",marketing:"Marketing",marketingDescription:"Allow personalized advertising and campaign measurement.",savePreferences:"Save preferences",rejectOptional:"Reject optional",readPrivacyPolicy:"Read the Privacy Policy",saved:"Your cookie preferences have been saved.",sessionOnly:"Your choice applies for this visit; browser storage is unavailable."},v={cookies:"Ð¤Ð°Ð¹Ð»Ñ cookie",bannerDescription:"ÐÑбеÑиÑе, какие ÑÐ°Ð¹Ð»Ñ cookie ÑазÑеÑиÑÑ. ÐÑ ÑможеÑе измениÑÑ Ð²ÑÐ±Ð¾Ñ Ð¿Ð¾Ð·Ð¶Ðµ.",privacyPolicy:"ÐолиÑика конÑиденÑиалÑноÑÑи",acceptAll:"ÐÑинÑÑÑ Ð²Ñе",reject:"ÐÑклониÑÑ",settings:"ÐаÑÑÑоиÑÑ",privacyChoices:"ÐÐШ ÐЫÐÐÐ ",preferences:"ÐаÑÑÑойки cookie",close:"ÐакÑÑÑÑ Ð½Ð°ÑÑÑойки cookie",explanation:"СейÑÐ°Ñ Ð¸ÑполÑзÑеÑÑÑ ÑолÑко необÑ
одимое Ñ
ÑанилиÑе. ÐополниÑелÑнÑе наÑÑÑойки пÑигодÑÑÑÑ, еÑли поÑвÑÑÑÑ Ð°Ð½Ð°Ð»Ð¸ÑиÑеÑкие или Ñекламн
1Ñе ÑеÑвиÑÑ; ÑейÑÐ°Ñ Ð¾Ð½Ð¸ не загÑÑжаÑÑÑÑ.",essential:"ÐеобÑ
одимÑе",essentialDescription:"ÐапоминаÑÑ Ð²Ð°Ñ Ð²ÑÐ±Ð¾Ñ Ð¸ вÑбÑаннÑÑ ÑÑÑанÑ.",alwaysOn:"ÐÑегда вклÑÑенÑ",analytics:"ÐналиÑика",analyticsDescription:"РазÑеÑиÑÑ Ð¸Ð·Ð¼ÐµÑение иÑполÑÐ·Ð¾Ð²Ð°Ð½Ð¸Ñ Ð´Ð»Ñ ÑлÑÑÑÐµÐ½Ð¸Ñ ÑайÑа.",marketing:"ÐаÑкеÑинг",marketingDescription:"РазÑеÑиÑÑ Ð¿ÐµÑÑонализиÑованнÑÑ ÑÐµÐºÐ»Ð°Ð¼Ñ Ð¸ измеÑение кампаний.",savePreferences:"СоÑ
ÑаниÑÑ Ð²ÑбоÑ",rejectOptional:"ÐÑклониÑÑ Ð´Ð¾Ð¿Ð¾Ð»Ð½Ð¸ÑелÑнÑе",readPrivacyPolicy:"ЧиÑаÑÑ Ð¿Ð¾Ð»Ð¸ÑÐ¸ÐºÑ ÐºÐ¾Ð½ÑиденÑиалÑноÑÑи",saved:"ÐаÑÑÑойки cookie ÑоÑ
ÑаненÑ.",sessionOnly:"ÐÑÐ±Ð¾Ñ Ð´ÐµÐ¹ÑÑвÑÐµÑ Ð´Ð¾ закÑÑÑÐ¸Ñ ÑÑÑаниÑÑ: Ñ
ÑанилиÑе бÑаÑзеÑа недоÑÑÑпно."},f=C(()=>a.value.toLowerCase().startsWith("ru")?v:m);function g(e){if(!e||"object"!=typeof e)return!1;const a=e;return 1===a.version&&!0===a.essential&&"boolean"==typeof a.analytics&&"boolean"==typeof a.marketing&&"number"==typeof a.savedAt&&a.savedAt<=Date.now()&&Date.now()-a.savedAt<15552e6}function h(e,a){const t={version:1,essential:!0,analytics:e,marketing:a,savedAt:Date.now()};d.value=t;let s=!1;try{document.cookie=`${yt}=${encodeURIComponent(JSON.stringify(t))}; Path=/; Max-Age=15552000; SameSite=Lax${"https:"===location.protocol?"; Secure":""}`,s=document.cookie.includes(`${yt}=`)}catch{}try{localStorage.setItem(yt,JSON.stringify(t)),s=!0}catch{}i.value=!1,k(),u.value=s?f.value.saved:f.value.sessionOnly,window.dispatchEvent(new CustomEvent("cms:consentchange",{detail:{...t}}))}function _(e){p=e instanceof HTMLElement?e:document.activeElement instanceof HTMLElement?document.activeElement:null,r.value=d.value?.analytics??!1,c.value=d.value?.marketing??!1,o.value?.open||o.value?.showModal()}function k(){o.value?.open&&o.value.close()}function x(){const e=p;p=null,E(()=>{e?.isConnected?e.focus():document.querySelector("[data-cookie-settings-trigger]")?.focus()})}function S(){_()}const P={allowed:e=>"essential"===e||("analytics"===e?!0===d.value?.analytics:"marketing"===e&&!0===d.value?.marketing),getPreferences:()=>d.value?{...d.value}:null};return j(()=>{d.value=function(){try{const e=document.cookie.split("; ").find(e=>e.startsWith(`${yt}=`));if(e){const a=JSON.parse(decodeURIComponent(e.slice(23)));if(g(a))return a}}catch{}try{const e=localStorage.getItem(yt);if(e){const a=JSON.parse(e);if(g(a))return a}}catch{}return null}(),i.value=!d.value,window.siteCookieConsent=P,window.addEventListener(bt,S)}),A(()=>{window.removeEventListener(bt,S);const e=window;e.siteCookieConsent===P&&delete e.siteCookieConsent}),(e,a)=>(b(),y(D,null,[i.value?(b(),y("section",{key:0,class:"uknu26s","data-cookie-consent":"","aria-labelledby":wt},[w("div",lt,[w("h2",{id:wt},V(f.value.cookies),1),w("p",null,V(f.value.bannerDescription),1),w("a",{href:l.value},V(f.value.privacyPolicy),9,ot)]),w("div",it,[w("button",{type:"button",class:"cp0wbegayg00",onClick:a[0]||(a[0]=e=>h(!0,!0))},V(f.value.acceptAll),1),w("button",{type:"button",onClick:a[1]||(a[1]=e=>h(!1,!1))},V(f.value.reject),1),w("button",{type:"button",onClick:a[2]||(a[2]=e=>_(e.currentTarget))},V(f.value.settings),1)])])):U("",!0),w("dialog",{ref_key:"dialogRef",ref:o,class:"k3pamgr5p5","aria-labelledby":kt,onClose:x},[w("header",null,[w("div",null,[w("p",null,V(f.value.privacyChoices),1),w("h2",{id:kt},V(f.value.preferences),1)]),w("button",{type:"button",class:"tw2th","aria-label":f.value.close,onClick:k},"Ã",8,rt)]),w("p",ct,V(f.value.explanation),1),w("form",{onSubmit:a[7]||(a[7]=O(e=>h(r.value,c.value),["prevent"]))},[w("div",ut,[w("div",null,[w("h3",null,V(f.value.essential),1),w("p",null,V(f.value.essentialDescription),1)]),w("span",dt,V(f.value.alwaysOn),1)]),w("label",pt,[w("span",null,[w("strong",null,V(f.value.analytics),1),w("span",null,V(f.value.analyticsDescription),1)]),R(w("input",{"onUpdate:modelValue":a[3]||(a[3]=e=>r.value=e),type:"checkbox"},null,512),[[Q,r.value]])]),w("label",mt,[w("span",null,[w("strong",null,V(f.value.marketing),1),w("span",null,V(f.value.marketingDescription),1)]),R(w("input",{"onUpdate:modelValue":a[4]||(a[4]=e=>c.value=e),type:"checkbox"},null,512),[[Q,c.value]])]),w("div",vt,[w("button",ft,V(f.value.savePreferences),1),w("button",{type:"button",onClick:a[5]||(a[5]=e=>h(!1,!1))},V(f.value.rejectOptional),1),w("button",{type:"button",onClick:a[6]||(a[6]=e=>h(!0,!0))},V(f.value.acceptAll),1)]),w("p",gt,[w("a",{href:l.value,onClick:k},V(f.value.readPrivacyPolicy),9,ht)])],32)],544),w("span",_t,V(u.value),1)],64))}}),Ct=_({__name:"MainLayout",setup(e){const{locale:l,messages:o,tm:i}=s(),_=X(),w=r(),x=c(),E=u(),{getSetting:A}=w,{themeFamily:T}=n(),O=C(()=>{o.value;const e=i("blocks.popup.messages");if(Array.isArray(e)&&e.length)return!0;const a=i("pages.main.sections.formPopup.messages");return Array.isArray(a)&&a.length>0}),V=C(()=>E.loadError&&0===Object.keys(E.languages).length),R=N(!1),I=C(()=>w.isDemoMeta),$=C(()=>w.isLandingMode),q=C(()=>w.isChaikaEnabled?d(_.path).cleanPath:_.path),B=C(()=>{const e=o.value?.[l.value];return e?.pages?Object.keys(e.pages):p}),W=C(()=>{const e=q.value,a=m(e,B.value)||"main",t=o.value?.[l.value]?.pages?.[a]?.meta;return{title:t?.title||"",description:t?.metaDescription||"",keywords:t?.metaKeywords||"",canonical:t?.canonical||""}});function H(e,a){const t=document.querySelector(`meta[name="${e}"]`);t&&t.setAttribute("content",a)}function J(e,a){const t=document.querySelector(`meta[property="${e}"]`);t&&t.setAttribute("content",a)}const Y=C(()=>x.data?.locales?.filter(e=>!e.enabled)?.map(e=>({code:e.code,hreflang:e.code}))||[]);function K(){document.querySelectorAll('link[rel="canonical"]').forEach(e
1=>e.remove());const e=q.value,a=l.value,t=o.value?.[a],s=t?.canonicals,n=s?Object.keys(s):B.value,i=m(e,n)||"main";let r=s?.[i]?.[a]||"";if(!r)if(w.isChaikaEnabled){const t="/"===e?"":e;r=`${window.location.origin}/${a}${t}`}else r=window.location.origin+window.location.pathname+window.location.search;const c=document.createElement("link");c.rel="canonical",c.href=r,document.head.appendChild(c)}return j(()=>{const e=W.value.title;e&&document.title!==e&&(document.title=e),H("description",W.value.description),H("keywords",W.value.keywords),R.value=!0,document.body.classList.add("hydrated")}),S(()=>_.path,e=>{R.value&&(document.title=W.value.title,H("description",W.value.description),H("keywords",W.value.keywords),I.value?(document.querySelectorAll('link[rel="alternate"][hreflang]').forEach(e=>e.remove()),document.querySelectorAll('link[rel="canonical"]').forEach(e=>e.remove())):(J("og:title",W.value.title),J("og:description",W.value.description),H("twitter:title",W.value.title),H("twitter:description",W.value.description),function(e){document.querySelectorAll('link[rel="alternate"][hreflang]').forEach(e=>e.remove());const a=w.isChaikaEnabled,t=a?d(e).cleanPath:e;let s="";if(f(t,B.value)){if($.value)return;s=t}const n=A("url")||"",l=document.createElement("link");l.rel="alternate",l.hreflang="x-default",l.href=g(n,s||"/"),document.head.appendChild(l),Y.value.forEach(e=>{const t=document.createElement("link");t.rel="alternate",t.hreflang=e.hreflang,t.href=h(n,s||"/",e.code,a),document.head.appendChild(t)})}(e),K()))}),S([l,R],([e,a],[t])=>{if(a&&t&&e!==t){document.title=W.value.title,H("description",W.value.description),H("keywords",W.value.keywords),I.value||(J("og:title",W.value.title),J("og:description",W.value.description),H("twitter:title",W.value.title),H("twitter:description",W.value.description),K());const a=e.split("-")[0];a&&document.documentElement.setAttribute("lang",a);const t=v(e);document.documentElement.setAttribute("dir",t),document.body.classList.toggle("rtl","rtl"===t)}}),(e,s)=>{const n=ee("router-view");return b(),y(D,null,[V.value?(b(),P(re,{key:0})):(b(),P(t,{key:1,view:"hHh lpR fFf",class:F(["vofdto257omm",{"l5u502ocw":"vlundarunon"===M(T),"yyxren":"nocturne"===M(T)}])},{default:L(()=>[k(a,{class:"s4d2uftr9ou"},{default:L(()=>[k(n)]),_:1})]),_:1},8,["class"])),R.value&&!I.value?(b(),P(Le,{key:2})):U("",!0),R.value&&O.value&&!I.value?(b(),P(at,{key:3})):U("",!0),"nocturne"!==M(T)||"/"!==q.value||I.value?U("",!0):(b(),P(nt,{key:4})),R.value&&!I.value?(b(),P(Nt,{key:5})):U("",!0)],64)}}});export{Ct 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.