1import{ae as e,aU as a,r as o,h as l,o as t,af as s,ag as n,aV as i,g as r,aj as d,aK as u,aL as p,aJ as c,aW as h,aX as m,i as b,aY as v,aZ as w,aG as g,ao as f,a_ as y,e as _,n as k,ah as C}from"./Dtay3aFs.js";import{A as x}from"./CfBs8Ifq.js";import{_ as H}from"./ll2E3OD8.js";import{u as M}from"./CgwEQkwW.js";const A={class:"wrap hero-body"},D={class:"hero-copy"},$={class:"h1-line h1-built"},L={class:"h1-line"},z=["innerHTML"],B={key:0,class:"hero-signup"},E={class:"zbit-input__field"},R=["placeholder","aria-label"],S=["aria-label"],V=["aria-label"],j=["aria-label"],F={key:2,class:"hero-dl-sep","aria-hidden":"true"},P={key:3,class:"hero-dl-qr"},T=["aria-label","aria-expanded"],q=e({__name:"HomeHero",props:{site:{},token:{},email:{},appDownload:{}},emits:["update:email","register","openStore"],setup(e,{emit:q}){const K=e,Z=q,{isApp:G}=a(),U=o(null),{itemClass:I,itemStyle:J}=M(U),O=_({get:()=>K.email,set:e=>Z("update:email",e)}),Q=o(!1),W=o("m"===K.site),X=o(!1),Y=o(!1),N=o({}),ee=o(null),ae=o(null),oe=o(null);let le=null,te=null;function se(){W.value="m"===K.site||window.matchMedia("(max-width: 768px)").matches}function ne(){if(!te||!ae.value)return;const e=te.getBoundingClientRect(),a=ae.value.getBoundingClientRect(),o=oe.value?.offsetHeight||280,l=window.innerHeight-e.bottom,t=e.top;Y.value=l<o+12&&t>l,N.value={left:`${a.left}px`,top:Y.value?e.top-12+"px":`${e.bottom+12}px`}}function ie(){X.value&&ne()}function re(){se(),ie()}function de(e){pe(),te=e.currentTarget||null,X.value=!0,k(async()=>{ne(),await(ee.value?.render()),ne()})}function ue(){X.value=!1}function pe(){le&&clearTimeout(le)}function ce(){pe(),le=setTimeout(ue,140)}return l(()=>{se(),window.addEventListener("resize",re),window.addEventListener("scroll",ie,{passive:!0,capture:!0}),document.addEventListener("scroll",ie,{passive:!0,capture:!0})}),t(()=>{window.removeEventListener("resize",re),window.removeEventListener("scroll",ie,{capture:!0}),document.removeEventListener("scroll",ie,{capture:!0}),pe()}),(a,o)=>(C(),s("section",{ref_key:"sectionRef",ref:U,class:"hero",id:"signup"},[n("div",A,[n("div",D,[n("h1",{class:d(["hero-title",r(I)]),style:i(r(J)(0))},[o[9]||(o[9]=n("span",{class:"hero-brand-inline"},"zBit.com",-1)),o[10]||(o[10]=u()),n("span",$,p(a.$t("home.heroH1l2")),1),n("span",L,p(a.$t("home.heroH1l3")),1)],6),n("p",{class:d(["hero-sub",r(I)]),style:i(r(J)(1)),innerHTML:a.$t("home.heroSub")},null,14,z),n("div",{class:d(["hero-cta",r(I)]),style:i(r(J)(2))},["web"!==e.site||e.token?w("",!0):(C(),s("div",B,[n("span",{class:d(["zbit-input hero-input",{"is-focused":r(Q),"has-value":!!r(O)}])},[n("span",E,[c(n("input",{"onUpdate:modelValue":o[0]||(o[0]=e=>b(O)?O.value=e:null),class:"zbit-input__control hero-email",type:"email",name:"email",autocomplete:"email",inputmode:"email",placeholder:a.$t("home.heroEmailPh"),"aria-label":a.$t("home.heroEmailAria"),onFocus:o[1]||(o[1]=e=>Q.value=!0),onBlur:o[2]||(o[2]=e=>Q.value=!1),onKeydown:o[3]||(o[3]=m(e=>Z("register"),["enter"]))},null,40,R),[[h,r(O)]]),n("button",{type:"button",class:"zbit-clear","aria-label":a.$t("home.heroEmailAria"),tabindex:"-1",onMousedown:o[4]||(o[4]=v(e=>O.value="",["prevent"]))},[...o[11]||(o[11]=[n("svg",{class:"zbit-clear__icon",viewBox:"0 0 20 20",fill:"none","aria-hidden":"true"},[n("circle",{class:"zbit-clear__ring",cx:"10",cy:"10",r:"9"}),n("path",{class:"zbit-clear__x",d:"M7 7l6 6M13 7l-6 6","stroke-width":"1.6","stroke-linecap":"round"})],-1)])],40,S)])],2),n("button",{type:"button",class:"btn-gold btn-lg",onClick:o[5]||(o[5]=e=>Z("register"))},p(a.$t("home.heroRegisterBtn")),1)])),n("div",{ref_key:"downloadsRef",ref:ae,class:d(["hero-downloads",{"is-under-phone":r(W)}])},[e.appDownload.google_play_url?(C(),s("button",{key:0,type:"button",class:"hero-dl-btn hero-dl-android","aria-label":a.$t("home.heroAndroidAria"),onClick:o[6]||(o[6]=a=>Z("openStore",e.appDownload.google_play_url))},[...o[12]||(o[12]=[n("span",{class:"hero-dl-ico ico-android","aria-hidden":"true"},null,-1),n("span",{class:"hero-dl-label"},"Google Play",-1)])],8,V)):w("",!0),e.appDownload.ios_download_url?(C(),s("button",{key:1,type:"button",class:"hero-dl-btn hero-dl-ios","aria-label":a.$t("home.heroIosAria"),onClick:o[7]||(o[7]=a=>Z("openStore",e.appDownload.ios_download_url))},[...o[13]||(o[13]=[n("span",{class:"hero-dl-ico ico-ios","aria-hidden":"true"},null,-1),n("span",{class:"hero-dl-label"},"App Store",-1)])],8,j)):w("",!0),r(W)?w("",!0):(C(),s("span",F)),r(W)||r(G)?w("",!0):(C(),s("div",P,[n("button",{type:"button",class:"hero-dl-btn","aria-label":a.$t("home.heroQrAria"),"aria-expanded":r(X),onMouseenter:de,onMouseleave:ce,onFocus:de,onBlur:ue},[...o[14]||(o[14]=[n("span",{class:"hero-dl-ico ico-qr","aria-hidden":"true"},null,-1)])],40,T)])),e.appDownload.android_apk_download_url?(C(),s("button",{key:4,type:"button",class:"hero-dl-btn hero-dl-apk-h5","aria-label":"Download APK",onClick:o[8]||(o[8]=a=>Z("openStore",e.appDownload.android_apk_download_url))},[...o[15]||(o[15]=[n("img",{class:"hero-dl-apk-img",src:"data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='20'%20height='20'%20viewBox='0%200%2020%2020'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Btn/apk-h5'%3e%3cpath%20id='Vector'%20d='M9.01165%204.84706C9.01165%203.5273%209.50779%202.32342%2010.3238%201.41177H3.85871C3.3844%201.41177%202.99989%201.79628
1%202.99989%202.27059V17.7294C2.99989%2018.2037%203.3844%2018.5882%203.85871%2018.5882H14.1646C14.6389%2018.5882%2015.0234%2018.2037%2015.0234%2017.7294V9.92872C14.7441%209.97561%2014.4572%2010%2014.1646%2010C11.3187%2010%209.01165%207.69296%209.01165%204.84706ZM9.01165%2014.2941C9.48598%2014.2941%209.87047%2014.6786%209.87047%2015.1529C9.87047%2015.6273%209.48598%2016.0118%209.01165%2016.0118C8.53732%2016.0118%208.15283%2015.6273%208.15283%2015.1529C8.15283%2014.6786%208.53732%2014.2941%209.01165%2014.2941ZM17.5999%204.84706H15.0234V1.41177H13.3058V4.84706H10.7293L14.1646%208.28236L17.5999%204.84706Z'%20fill='%23FDFDFD'/%3e%3c/g%3e%3c/svg%3e",alt:"",width:"24",height:"24","aria-hidden":"true"},null,-1),n("span",{class:"hero-dl-label"},"APK",-1)])])):w("",!0)],2)],6)]),n("div",{class:d(["hero-visual",r(I)]),style:i(r(J)(3))},[g(H)],6)]),(C(),f(y,{to:"body"},[r(X)?(C(),s("div",{key:0,ref_key:"popRef",ref:oe,class:d(["hero-qr-pop",{"is-above":r(Y)}]),style:i(r(N)),onMouseenter:pe,onMouseleave:ce},[g(x,{ref_key:"qrCardRef",ref:ee,"download-path":"/appDownload"},null,512)],38)):w("",!0)]))],512))}});export{q 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.