PageSourceSearch

https://hobbii.pl/cdn/shop/t/4/assets/hobbii-common-DBVhStB0.min.js

js hobbii.pl collected 2026-09-26 15:08:41 UTC 47,386 bytes, 2 lines download raw bytes

1var e,t=Object.defineProperty,a=Object.defineProperties,o=Object.getOwnPropertyDescriptors,i=Object.getOwnPropertySymbols,n=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,r=(e,a,o)=>a in e?t(e,a,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[a]=o,s=(e,t)=>{for(var a in t||(t={}))n.call(t,a)&&r(e,a,t[a]);if(i)for(var a of i(t))l.call(t,a)&&r(e,a,t[a]);return e},c=(e,t)=>a(e,o(t)),d=(e,t,a)=>new Promise(((o,i)=>{var n=e=>{try{r(a.next(e))}catch(t){i(t)}},l=e=>{try{r(a.throw(e))}catch(t){i(t)}},r=e=>e.done?o(e.value):Promise.resolve(e.value).then(n,l);r((a=a.apply(e,t)).next())}));import{D as u,b as m,A as v,e as p,o as f,g,q as h,W as b,R as y,X as w,d as x,l as _,c as k,w as S,m as M,N as A,v as I,Y as E,u as j,f as C,j as T,M as D,n as L,x as N,Z as U,F as z,$ as O,k as R,t as Y,a0 as H,a1 as Z,a2 as B,a3 as F,a4 as G,a5 as P,a6 as q,a7 as J,K as W,T as X,J as V,I as Q,z as $,Q as K,a8 as ee,a9 as te,aa as ae}from"./hobbii-country-switcher-BNm3Hsht.min.js";import{m as oe,P as ie,p as ne,d as le,u as re,a as se,c as ce}from"./hobbii-constants-DXYrb0R4.min.js";import{c as de,m as ue,u as me,a as ve}from"./hobbii-core-vue-app-BrItCYHK.min.js";import{p as pe}from"./hobbii-index-iMsuhaEa.min.js";import{I as fe}from"./hobbii-IconClear-C2_GmQBI.min.js";import{u as ge}from"./hobbii-useViewport-1meHDg0X.min.js";import{t as he}from"./hobbii-search-result-clicked-BT02uXgc.min.js";import{u as be,l as ye,a as we}from"./hobbii-scroll-yy09VGcZ.min.js";import{u as xe}from"./hobbii-config-BWj0BaFh.min.js";import{c as _e,d as ke,h as Se,n as Me,L as Ae,u as Ie}from"./hobbii-user-59Q2brLQ.min.js";import{_ as Ee}from"./hobbii-ButtonText.vue_vue_type_script_setup_true_lang-8AcxgJ4W.min.js";import{p as je}from"./hobbii-logger-kjAx_iy-.min.js";import{s as Ce,g as Te}from"./hobbii-cookie-C8mkdIlf.min.js";import{i as De,s as Le,m as Ne,a as Ue}from"./hobbii-hobbii-starter-CYjQ0a09.min.js";import{u as ze,i as Oe}from"./hobbii-posthog.store-Dj0FBRZ-.min.js";import{notifyBugsnagWithContext as Re}from"./hobbii-error-2u2rc1Ql.min.js";import{g as Ye}from"./hobbii-emarsys-VgUHDHuM.min.js";import{$ as He,u as Ze}from"./hobbii-store-context-nknTCZDo.min.js";import{i as Be,a as Fe}from"./hobbii-hobbii-modal-DiWfLi34.min.js";import{t as Ge,h as Pe,k as qe}from"./hobbii-tracking-RMINnNnb.min.js";import{i as Je}from"./hobbii-email-_B4xxyoA.min.js";import{m as We}from"./hobbii-community-mounter-t2sipucd.min.js";import{u as Xe}from"./hobbii-composables-CAq0cfOr.min.js";import{g as Ve}from"./hobbii-helpers-BDCr5cba.min.js";import{_ as Qe}from"./hobbii-RelativeTime.vue_vue_type_script_setup_true_lang-KJZ1_VLb.min.js";import{G as $e}from"./hobbii-globalKeyDown-DpTwcs8P.min.js";import{a as Ke}from"./hobbii-dom-SvEnDmWr.min.js";import{I as et}from"./hobbii-IconCheck-Dr3IX94R.min.js";import{u as tt,a as at,t as ot,_ as it,b as nt}from"./hobbii-ProfileDetailsFields.vue_vue_type_script_setup_true_lang-Dpp3MojS.min.js";import{a as lt}from"./hobbii-mutations-Q3eoDKCF.min.js";import{a as rt}from"./hobbii-native-predictive-tracking-DeCbDGVO.min.js";import"./hobbii-i18n-D6SjZpbg.min.js";import"./hobbii-pinia-C9rnC9LE.min.js";import"./hobbii-money-formatter-CDf4gx3t.min.js";import"./hobbii-product-BmhgILJ5.min.js";import"./hobbii-sdk-CX9kd8c8.min.js";import"./hobbii-notifier-BLiA8JPX.min.js";import"./hobbii-intl-tel-input-BoEFiupD.min.js";import"./hobbii-v4-BV7cZGmi.min.js";import"./hobbii-helpers-Cv_925bZ.min.js";import"./hobbii-files-B0pSpAWG.min.js";import"./hobbii-DropDown.vue_vue_type_script_setup_true_lang-D07u8vxm.min.js";import"./hobbii-TextInput.vue_vue_type_script_setup_true_lang-B2vH1yuC.min.js";import"./hobbii-RadioButton.vue_vue_type_script_setup_true_lang-eAn516jb.min.js";const st={class:"relative z-20 m-auto flex max-h-screen w-11/12 min-w-[300px] max-w-2xl -translate-y-full flex-col opacity-0 shadow-xl transition-all duration-700 group-[.is-open]:translate-y-0 group-[.is-open]:opacity-100"},ct={class:"overflow-hidden rounded-xl bg-white"},dt=u({__name:"HBModal.ce",setup(e){const t=m(null),a=()=>{t.value.classList.remove("is-open"),setTimeout((()=>t.value.classList.add("hidden")),300),document.querySelector("body").classList.remove("modal-open")};return v((()=>{t.value.addEventListener(oe.open,(()=>(t.value.classList.remove("hidden"),setTimeout((()=>t.value.classList.add("is-open")),1),void document.querySelector("body").classList.add("modal-open")))),t.value.addEventListener(oe.close,(()=>a()))})),(e,o)=>(f(),p("div",{ref_key:"modalContainer",ref:t,class:"group fixed inset-0 z-40 hidden overflow-hidden [&.is-open]:flex","aria-labelledby":"modal",role:"dialog","aria-modal":"true"},[g("div",{class:"fixed inset-0 z-10 bg-black opacity-0 transition-opacity group-[.is-open]:opacity-75",onClick:a}),g("div",st,[g("button",{class:"absolute -top-11 right-0 flex size-9 cursor-pointer items-center justify-center rounded-full border-0 bg-white/10 text-white transition-colors hover:bg-white/20",onClick:a},[h(b,{class:"text-3xl"})]),g("div",ct,[y(e.$slots,"default",{},void 0,!0)])])],512))}},[["styles",[".fixed[data-v-c8d8f02d]{position:fixed}.absolute[data-v-c8d8f02d]{position:absolute}.relative[data-v-c8d8f02d]{position:relative}.inset-0[data-v-c8d8f02d]{top:0;bottom:0;left:0;right:0}.-top-11[data-v-c8d8f02d]{top:-2.75rem}.right-0[data-v-c8d8f02d]{right:0}.z-10[data-v-c8d8f02d]{z-index:10}.z-20[data-v-c8d8f02d]{z-index:20}.z-40[data-v-c8d8f02d]{z-index:40}.z-modal-cart[data-v-c8d8f02d]{z-index:51}.col-span-1[data-v-c8d8f02d]{grid-column:span 1/span 1}.col-span-2[data-v-c8d8f02d]{grid-column:span 2/span 2}.col-span-3[data-v-c8d8f02d]{grid-column:span 3/span 3}.col-span-4[data-v-c8d8f02d]{grid-column:span 4/span 4}.m-auto[data-v-c8d8f02d]{margin:auto}.flex[data-v-c8d8f02d]{display:flex}.hidden[data-v-c8d8f02d]{display:none}.size-9[data-v-c8d8f02d]{width:2.25rem;height:2.25rem}.max-h-screen[data-v-c8d8f02d]{max-height:100vh}.w-11\\/12[data-v-c8d8f02d]{width:91.6667%}.min-w-\\[300px\\][data-v-c8d8f02d]{min-width:300px}.max-w-2xl[data-v-c8d8f02d]{max-width:42rem}.-translate-y-full[data-v-c8d8f02d]{--tw-translate-y:-100%;transform:translate(var(--tw-translate-x),-100%)rotate(var(--tw-rotate))skewX(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skewX(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.cursor-pointer[data-v-c8d8f02d]{cursor:pointer}.grid-cols-1[data-v-c8d8f02d]{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2[data-v-c8d8f02d]{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3[data-v-c8d8f02d]{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4[data-v-c8d8f02d]{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-col[data-v-c8d8f02d]{flex-direction:column}.items-center[data-v-c8d8f02d]{align-items:center}.justify-center[data-v-c8d8f02d]{justify-content:center}.overflow-hidden[data-v-c8d8f02d]{overflow:hidden}.rounded-full[data-v-c8d8f02d]{border-radius:9999px}
1.rounded-xl[data-v-c8d8f02d]{border-radius:.75rem}.border-0[data-v-c8d8f02d]{border-width:0}.bg-black[data-v-c8d8f02d]{background-color:#141823}.bg-black\\/10[data-v-c8d8f02d]{background-color:rgba(20,24,35,.1)}.bg-black\\/100[data-v-c8d8f02d]{background-color:#141823}.bg-black\\/20[data-v-c8d8f02d]{background-color:rgba(20,24,35,.2)}.bg-black\\/30[data-v-c8d8f02d]{background-color:rgba(20,24,35,.3)}.bg-black\\/40[data-v-c8d8f02d]{background-color:rgba(20,24,35,.4)}.bg-black\\/50[data-v-c8d8f02d]{background-color:rgba(20,24,35,.5)}.bg-black\\/60[data-v-c8d8f02d]{background-color:rgba(20,24,35,.6)}.bg-black\\/70[data-v-c8d8f02d]{background-color:rgba(20,24,35,.7)}.bg-black\\/80[data-v-c8d8f02d]{background-color:rgba(20,24,35,.8)}.bg-black\\/90[data-v-c8d8f02d]{background-color:rgba(20,24,35,.9)}.bg-white[data-v-c8d8f02d]{--tw-bg-opacity:1;background-color:#fff;background-color:rgba(255,255,255,var(--tw-bg-opacity,1))}.bg-white\\/10[data-v-c8d8f02d]{background-color:rgba(255,255,255,.1)}.text-3xl[data-v-c8d8f02d]{font-size:1.875rem;line-height:2.25rem}.text-inherit[data-v-c8d8f02d]{color:inherit}.text-white[data-v-c8d8f02d]{--tw-text-opacity:1;color:rgba(255,255,255,var(--tw-text-opacity,1))}.opacity-0[data-v-c8d8f02d]{opacity:0}
1.shadow-xl[data-v-c8d8f02d]{--tw-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);--tw-shadow-colored:0 20px 25px -5px var(--tw-shadow-color),0 8px 10px -6px var(--tw-shadow-color);box-shadow:0 0 transparent,0 0 transparent,0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);box-shadow:var(--tw-ring-offset-shadow,0 0 transparent),var(--tw-ring-shadow,0 0 transparent),var(--tw-shadow)}.transition-all[data-v-c8d8f02d]{transition-property:all;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-colors[data-v-c8d8f02d]{transition-property:color,background-color,border-color,-webkit-text-decoration-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-opacity[data-v-c8d8f02d]{transition-property:opacity;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-700[data-v-c8d8f02d]{transition-duration:.7s}.hover\\:bg-white\\/20[data-v-c8d8f02d]:hover{background-color:rgba(255,255,255,.2)}.group.is-open .group-\\[\\.is-open\\]\\:translate-y-0[data-v-c8d8f02d]{--tw-translate-y:0px;transform:translate(var(--tw-translate-x),0px)rotate(var(--tw-rotate))skewX(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y))rotate(var(--tw-rotate))skewX(var(--tw-skew-x))skewY(var(--tw-skew-y))scaleX(var(--tw-scale-x))scaleY(var(--tw-scale-y))}.group.is-open .group-\\[\\.is-open\\]\\:opacity-100[data-v-c8d8f02d]{opacity:1}.group.is-open .group-\\[\\.is-open\\]\\:opacity-75[data-v-c8d8f02d]{opacity:.75}@media (min-width:768px){.md\\:col-span-1[data-v-c8d8f02d]{grid-column:span 1/span 1}.md\\:col-span-2[data-v-c8d8f02d]{grid-column:span 2/span 2}.md\\:col-span-3[data-v-c8d8f02d]{grid-column:span 3/span 3}.md\\:col-span-4[data-v-c8d8f02d]{grid-column:span 4/span 4}.md\\:grid-cols-1[data-v-c8d8f02d]{grid-template-columns:repeat(1,minmax(0,1fr))}.md\\:grid-cols-2[data-v-c8d8f02d]{grid-template-columns:repeat(2,minmax(0,1fr))}.md\\:grid-cols-3[data-v-c8d8f02d]{grid-template-columns:repeat(3,minmax(0,1fr))}.md\\:grid-cols-4[data-v-c8d8f02d]{grid-template-columns:repeat(4,minmax(0,1fr))}}.\\[\\&\\.is-open\\]\\:flex.is-open[data-v-c8d8f02d]{display:flex}"]],["__scopeId","data-v-c8d8f02d"]]);const ut={viewBox:"0 0 24 24",width:"20",height:"20",fill:"currentColor"};const mt=u({},[["render",function(e,t){return f(),p("svg",ut,t[0]||(t[0]=[g("path",{d:"M16.041 15.856c-0.034 0.026-0.067 0.055-0.099 0.087s-0.060 0.064-0.087 0.099c-1.258 1.213-2.969 1.958-4.855 1.958-1.933 0-3.682-0.782-4.95-2.050s-2.050-3.017-2.050-4.95 0.782-3.682 2.050-4.95 3.017-2.050 4.95-2.050 3.682 0.782 4.95 2.050 2.050 3.017 2.050 4.95c0 1.886-0.745 3.597-1.959 4.856zM21.707 20.293l-3.675-3.675c1.231-1.54 1.968-3.493 1.968-5.618 0-2.485-1.008-4.736-2.636-6.364s-3.879-2.636-6.364-2.636-4.736 1.008-6.364 2.636-2.636 3.879-2.636 6.364 1.008 4.736 2.636 6.364 3.879 2.636 6.364 2.636c2.125 0 4.078-0.737 5.618-1.968l3.675 3.675c0.391 0.391 1.024 0.391 1.414 0s0.391-1.024 0-1.414z"},null,-1)]))}]]),vt={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"};const pt=u({},[["render",function(e,t){return f(),p("svg",vt,t[0]||(t[0]=[g("path",{fill:"currentColor",d:"M12,1A11,11,0,1,0,23,12,11,11,0,0,0,12,1Zm0,19a8,8,0,1,1,8-8A8,8,0,0,1,12,20Z",opacity:".25"},null,-1),g("path",{fill:"currentColor",d:"M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z"},[g("animateTransform",{attributeName:"transform",dur:"0.75s",repeatCount:"indefinite",type:"rotate",values:"0 12 12;360 12 12"})],-1)]))}]]),ft={class:"flex h-searchBarMobile rounded-md border border-gray ring-1 ring-primary/5 transition-all ease-linear placeholder:text-gray-400 focus-within:!border-primary/80 focus-within:outline-none focus-within:ring-2 focus-within:ring-primary-200 hover:border hover:border-gray-300 lg:h-searchBar focus-within:lg:ring-4"},gt=["id","value","placeholder"],ht=["title"],bt=["title"],yt={class:"flex gap-0 lg:relative"},wt={class:"flex w-full"},xt={key:0,class:"flex grow animate-appear items-center justify-center p-8 text-lg"},_t={key:1,class:"grow"},kt={class:"transition-opacity"},St=["innerHTML"],Mt=x({__name:"Autocomplete",props:{searchTerms:{type:String,default:""},inputId:{type:String,default:void 0}},setup(e){const{t}=_(),a=e,o=xe(),{isTablet:i,isMobile:n}=ge(),l=k((()=>i.value||n.value));S(l,(e=>{e||be()}
1));const r=m(null),s=m(""),c=m(null),u=m({}),b=m(null),y=m(!1),w=m(!1),x=m((()=>{})),O=()=>document.querySelector(".js-header-search-scroll-container");M(b,(()=>w.value=!0));const R=k((()=>{var e,t;return!w.value&&(null!=(t=null==(e=r.value)?void 0:e.length)?t:0)>=o.minSearch})),Y=e=>{const t=e.target;t&&(r.value=t.value,w.value=!1)},H=()=>{var e;return null==(e=c.value)?void 0:e.blur()},Z=()=>{var e;w.value=!0,null==(e=c.value)||e.blur()},B=()=>r.value="",F=pe((e=>d(null,null,(function*(){var t,a;if(s.value="",!e||e.length<o.minSearch)return;const i=yield fetch(`${window.Shopify.routes.root}search/suggest?q=${encodeURIComponent(e)}&resources[type]=product&resources[limit_scope]=each&resources[options][unavailable_products]=last&resources[options][fields]=title,product_type,body&section_id=predictive-search`),n=yield i.text();if(!i.ok)throw new Error(`${i.status}: ${n}`);s.value=null!=(a=null==(t=(new DOMParser).parseFromString(n,"text/html").querySelector("#shopify-section-predictive-search"))?void 0:t.innerHTML)?a:""}))),ie);S(r,F);const G=k((()=>s.value&&s.value.trim().length));let P=null;const q=()=>{if(!R.value)return;if(!s.value||!s.value.trim().length)return;const e=r.value;e&&e!==P&&(P=e,L((()=>{var t;const a=O(),o=null!=(t=null==a?void 0:a.querySelectorAll(".js-predictive-result").length)?t:0;he({engine:"native",surface:"predictive",query:e,resultsCount:o})})))};S(s,q),S(R,q),S(r,(e=>{e&&e.trim().length||(P=null)})),v((()=>{a.searchTerms&&(w.value=!0,r.value=a.searchTerms)}));const J=k((()=>l.value?"fixed bottom-0 w-full left-0 pt-2 px-4 -mt-1 lg:mt-0 lg:px-0 lg:absolute lg:w-auto lg:right-0":"absolute bottom-0 left-0 pt-2 translate-y-full"));S(R,(e=>{if(l.value){if(e)return W(),void L((()=>{ye(O()),window.addEventListener("touchmove",H)}));window.removeEventListener("touchmove",H),we(O())}})),S(l,(e=>{e?(window.addEventListener("scroll",X),window.addEventListener("resize",X),document.addEventListener("focus",X)):(window.removeEventListener("scroll",X),window.removeEventListener("resize",X),document.removeEventListener("focus",X))}));const W=()=>{if(!l.value||!R.value||!b.value)return;const e=b.value.getBoundingClientRect();u.value.top=`${e.bottom}px`},X=pe(W,200);return A((()=>{be(),x.value(),window.removeEventListener("scroll",X),window.removeEventListener("resize",X),document.removeEventListener("focus",X)})),(a,o)=>(f(),p(z,null,[g("form",{ref_key:"searchContainer",ref:b,action:"/search",novalidate:"",role:"search",onSubmit:o[1]||(o[1]=e=>(()=>{var e;const t=new URL("/search",window.location.href);t.searchParams.set("q",null!=(e=r.value)?e:""),t.searchParams.set("type","product"),window.location.href=t.toString()})())},[g("div",ft,[g("input",{id:e.inputId,ref_key:"inputEl",ref:c,class:"size-full flex-1 appearance-none rounded-l-md border-0 pl-4 focus:ring-0",autocomplete:"off",autocorrect:"off",value:r.value,name:"q",autocapitalize:"none",enterkeyhint:"search",spellcheck:"false",placeholder:j(t)("search.search_placeholder"),maxlength:"512",type:"text",onInput:Y,onKeydown:E(Z,["escape"]),onFocus:o[0]||(o[0]=e=>w.value=!1)},null,40,gt),r.value?(f(),p("button",{key:0,class:"js-header-search-clear flex h-full w-[34px] items-center justify-center text-gray-400 hover:text-gray-darker lg:w-[54px]",type:"reset",title:j(t)("search.search_clear_title"),onClick:B},[h(fe,{class:"size-[20px]"})],8,ht)):I("",!0),g("button",{id:"header-searchbox-submit",class:"flex h-full w-[54px] items-center justify-center rounded-r-md lg:w-[54px]",type:"submit",title:j(t)("search.search_button_title")},[h(mt,{class:"size-[20px] stroke-gray-darker stroke-0 text-gray-darker"})],8,bt)])],544),g("div",yt,[(f(),C(U,{disabled:!l.value,to:"body"},[R.value?(f(),p("div",{key:0,style:D(u.value),class:T([J.value,"z-aa-panel"])},[g("div",{class:"js-header-search-scroll-container relative overflow-y-auto rounded-md border bg-white max-lg:size-full lg:inset-x-0 lg:bottom-auto lg:w-[700px] lg:overflow-hidden lg:shadow-lg xl:w-[800px]",onMouseover:o[2]||(o[2]=e=>y.value=!0),onMouseleave:o[3]||(o[3]=e=>y.value=!1),onTouchstart:o[4]||(o[4]=e=>y.value=!0),onTouchend:o[5]||(o[5]=e=>L((()=>y.value=!1)))},[g("div",wt,[G.value?(f(),p("div",_t,[g("div",kt,[g("div",{innerHTML:s.value},null,8,St)])])):(f(),p("div",xt,[o[6]||(o[6]=N("  ")),h(pt,{class:"text-xl text-primary-700"}),o[7]||(o[7]=N("  "))]))])],32)],6)):I("",!0)],8,["disabled"]))])],64))}}),At=(e,t=300)=>{let a;return(...o)=>{clearTimeout(a),a=setTimeout((()=>e.apply(void 0,o)),t)}},It=window.location.search.includes("debug_autocomplete");let Et,jt;const Ct=()=>{const e="header-searchbox";var t;Et!==e&&(Et=e,jt&&jt.unmount(),t=e,d(null,null,(function*(){const e=document.getElementById(t);
1if(!e)return void(It&&console.info(`No element found for id "${t}", aborting autocomplete init.`));const{searchTerms:a,inputId:o}=e.dataset;jt&&jt._container===e&&jt.unmount(),jt=yield de(Mt,e,{searchTerms:a,inputId:o},null,{noClients:!0}),jt.mount(e)})))},Tt=At(Ct,400);window.addEventListener("resize",Tt);const Dt={class:"pr-12 text-xl font-bold text-gray-900"},Lt={class:"flex flex-col gap-3"},Nt={class:"text-sm text-gray-600"},Ut=x({__name:"DomainMismatchNudge",props:{currentDomain:{},suggestedDomain:{},targetUrl:{},fallbackToHomepage:{type:Boolean}},setup(e){const t=e,{t:a}=_(),o=m(!0);let i=!1;S(o,(e=>{var a,o;e||i||(Ce(re.DOMAIN_MISMATCH_SUPPRESSED,"true",le.DISMISSED_DAYS),a={current_domain:t.currentDomain,suggested_domain:t.suggestedDomain},je("domain_mismatch_nudge_dismissed",a),null==(o=window.posthog)||o.capture(ne.DOMAIN_MISMATCH_NUDGE_DISMISSED,a))}));const n=()=>{var e,a;i=!0,Ce(re.DOMAIN_MISMATCH_SUPPRESSED,"true",le.ACCEPTED_HOURS/24),e={from_domain:t.currentDomain,to_domain:t.suggestedDomain,target_url:t.targetUrl,fallback_to_homepage:t.fallbackToHomepage},je("domain_mismatch_nudge_accepted",e),null==(a=window.posthog)||a.capture(ne.DOMAIN_MISMATCH_NUDGE_ACCEPTED,e),window.location.href=t.targetUrl};return(e,t)=>(f(),C(H,{active:o.value,"onUpdate:active":t[0]||(t[0]=e=>o.value=e),size:"sm"},{header:R((()=>[g("h2",Dt,Y(j(a)("domain_mismatch_nudge.title")),1)])),body:R((()=>[g("div",Lt,[g("p",Nt,Y(j(a)("domain_mismatch_nudge.description",{domain:e.suggestedDomain})),1),h(Ee,{theme:"primary",size:"lg",class:"mt-2 !text-lg",onClick:n},{default:R((()=>[N(Y(j(a)("domain_mismatch_nudge.switch_button",{domain:e.suggestedDomain})),1)])),_:1})])])),_:1},8,["active"]))}}),zt="#domain-mismatch-nudge",Ot=null==(e=window.Hobbii)?void 0:e.hobbiiStoreData;const Rt={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"};const Yt=u({},[["render",function(e,t){return f(),p("svg",Rt,t[0]||(t[0]=[g("path",{fill:"currentColor","fill-rule":"evenodd",d:"M5.25 9a6.75 6.75 0 0 1 13.5 0v.75c0 2.123.8 4.057 2.118 5.52a.75.75 0 0 1-.297 1.206c-1.544.57-3.16.99-4.831 1.243a3.75 3.75 0 1 1-7.48 0a24.585 24.585 0 0 1-4.831-1.244a.75.75 0 0 1-.298-1.205A8.217 8.217 0 0 0 5.25 9.75V9Zm4.502 8.9a2.25 2.25 0 1 0 4.496 0a25.057 25.057 0 0 1-4.496 0Z","clip-rule":"evenodd"},null,-1)]))}]]),Ht={xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24"};const Zt=u({},[["render",function(e,t){return f(),p("svg",Ht,t[0]||(t[0]=[g("g",{fill:"currentColor"},[g("path",{d:"M5.85 3.5a.75.75 0 0 0-1.117-1a9.719 9.719 0 0 0-2.348 4.876a.75.75 0 0 0 1.479.248A8.219 8.219 0 0 1 5.85 3.5Zm13.417-1a.75.75 0 1 0-1.118 1a8.22 8.22 0 0 1 1.987 4.124a.75.75 0 0 0 1.48-.248a9.72 9.72 0 0 0-2.35-4.876Z"}),g("path",{"fill-rule":"evenodd",d:"M12 2.25A6.75 6.75 0 0 0 5.25 9v.75a8.217 8.217 0 0 1-2.119 5.52a.75.75 0 0 0 .298 1.206c1.544.57 3.16.99 4.831 1.243a3.75 3.75 0 1 0 7.48 0a24.583 24.583 0 0 0 4.83-1.244a.75.75 0 0 0 .298-1.205a8.217 8.217 0 0 1-2.118-5.52V9A6.75 6.75 0 0 0 12 2.25ZM9.75 18c0-.034 0-.067.002-.1a25.05 25.05 0 0 0 4.496 0l.002.1a2.25 2.25 0 1 1-4.5 0Z","clip-rule":"evenodd"})],-1)]))}]]),Bt={xmlns:"http://www.w3.org/2000/svg",width:"12.846",height:"12.846",viewBox:"0 0 12.846 12.846",class:"inline-block"};const Ft=u({},[["render",function(e,t){return f(),p("svg",Bt,t[0]||(t[0]=[g("g",{id:"Cancel",transform:"translate(-25.577 -63.577)"},[g("line",{id:"Line_255","data-name":"Line 255",x2:"10.018",y2:"10.017",transform:"translate(26.991 64.991)",fill:"none",stroke:"#303d43","stroke-linecap":"round","stroke-width":"2"}),g("line",{id:"Line_256","data-name":"Line 256",x1:"10.018",y2:"10.017",transform:"translate(26.991 64.991)",fill:"none",stroke:"#303d43","stroke-linecap":"round","stroke-width":"2"})],-1)]))}]]),Gt={key:0,class:"modal__dialog"},Pt=".modal__body",qt=u({__name:"AppModal",props:{className:{type:String,default:""},classes:{type:Object,default:()=>({header:"",body:""})},transition:{type:String,default:"fade"},closeBySwipeHeader:{type:Boolean,default:!1},closeByClickOutside:{type:Boolean,default:!0}},emits:["onClose","onOpen"],setup(e,{expose:t,emit:a}){const o=m(null),i=m(!1),n=m(!1),l=m(!1),r=m(!1),c=a,d=xe(),u=e;q((()=>{n.value&&L((()=>{document.querySelector(Pt)&&d.lockBodyScroll(Pt)}))}));const v=()=>{b()},b=e=>{n.value=!1,e||c("onClose"),l.value||(r.value=!0,d.allowBodyScroll(),l.value=!1)},w=()=>{l.value||r.value||d.allowBodyScroll()},x=k((()=>u.closeBySwipeHeader&&o.value)),{onSwipeDown:_}=((e,t)=>{t=s({directional_threshold:10,swipe_threshold:0},t);const a=m(0),o=m(0),i=m(0),n=m(0),l=m(null),r=e=>{a.value=e.changedTouches[0].screenX,i.value=e.changedTouches[0].screenY}
1,c=e=>{o.value=e.changedTouches[0].screenX,n.value=e.changedTouches[0].screenY,h(e)};S((()=>e.value),(t=>{t?(l.value=e.value,l.value.addEventListener("touchstart",r),l.value.addEventListener("touchend",c)):(null==l||l.value.removeEventListener("touchstart",r),null==l||l.value.removeEventListener("touchend",c))}));const d=[],u=[],v=[],p=[],f=[],g=(e,t)=>{e.push(t)},h=e=>{o.value<a.value&&Math.max(i.value,n.value)-Math.min(i.value,n.value)<t.directional_threshold&&d.forEach((t=>t(e))),o.value>a.value&&Math.max(i.value,n.value)-Math.min(i.value,n.value)<t.directional_threshold&&u.forEach((t=>t(e))),n.value<i.value&&Math.max(a.value,o.value)-Math.min(a.value,o.value)<t.directional_threshold&&i.value-n.value>t.swipe_threshold&&v.forEach((t=>t(e))),n.value>i.value&&Math.max(a.value,o.value)-Math.min(a.value,o.value)<t.directional_threshold&&n.value-i.value>t.swipe_threshold&&p.forEach((t=>t(e))),n.value===i.value&&f.forEach((t=>t(e)))};return{onSwipeLeft:e=>g(d,e),onSwipeRight:e=>g(u,e),onSwipeUp:e=>g(v,e),onSwipeDown:e=>g(p,e),onTap:e=>g(f,e)}})(x);return _((()=>{b()})),A((()=>{d.clearAllBodyScrollLocks()})),t({openModal:()=>{r.value=!1,i.value=!0,c("onOpen"),d.isBodyScrollLocked&&(l.value=!0)},closeModal:b,showContent:n}),(t,a)=>{const l=J("global-keydown");return f(),C(U,{to:"body"},[h(X,{onAfterEnter:a[3]||(a[3]=e=>n.value=!0),onAfterLeave:w},{default:R((()=>[i.value?W((f(),p("div",{key:0,class:T(["modal js-modal",e.className])},[h(X,{name:"fade",onAfterLeave:a[1]||(a[1]=e=>i.value=!1)},{default:R((()=>[n.value?(f(),p("div",{key:0,class:"modal__backdrop",onClick:a[0]||(a[0]=t=>e.closeByClickOutside?b():null)})):I("",!0)])),_:1}),h(X,{name:e.transition},{default:R((()=>[n.value?(f(),p("div",Gt,[t.$slots.header?(f(),p("div",{key:0,ref_key:"modalHeader",ref:o,class:T(["modal__header",e.classes.header])},[y(t.$slots,"header",{},void 0,!0),y(t.$slots,"close-btn",{},(()=>[g("button",{type:"button",class:"modal__close",onClick:a[2]||(a[2]=e=>b())},[h(Ft)])]),!0)],2)):I("",!0),g("div",{class:T(["modal__body",e.classes.body])},[y(t.$slots,"body",{},void 0,!0)],2),g("div",null,[y(t.$slots,"footer",{},void 0,!0)])])):I("",!0)])),_:3},8,["name"])],2)),[[l,v,"Escape"]]):I("",!0)])),_:3})])}}},[["__scopeId","data-v-c3b82f5c"]]),Jt=(e,t=20)=>{const a={input:{language:e,paginate:{limit:t}}},{loading:o,result:i,error:n,refetch:l,fetchMore:r}=me(Me,a,{clientId:"gateway"}),u=k((()=>{var e,t,a;return null!=(a=null==(t=null==(e=i.value)?void 0:e.notification)?void 0:t.notifications.notifications)?a:[]})),m=k((()=>u.value.filter((e=>!e.read_at)).map((e=>e.id)))),v=k((()=>{var e,t,a;return null!=(a=null==(t=null==(e=i.value)?void 0:e.notification)?void 0:t.notifications.unseen)?a:0})),p=k((()=>v.value>99?"99+":v.value)),f=k((()=>{var e,t,a,o;return null!=(o=null==(a=null==(t=null==(e=i.value)?void 0:e.notification)?void 0:t.notifications)?void 0:a.cursor)?o:null})),g=k((()=>!!f.value)),{mutate:h,loading:b,error:y}=ve(Le,{clientId:"gateway"}),{mutate:w,loading:x,error:_}=ve(Ne,{clientId:"gateway"}),{mutate:S,loading:M,error:A}=ve(Ue,{clientId:"gateway"}),I=k((()=>b.value||x.value||M.value)),E=k((()=>o.value||I.value)),j=k((()=>{var e,t;return null!=(t=null!=(e=_.value)?e:A.value)?t:y.value})),C=k((()=>{var e;return null!=(e=n.value)?e:j.value}));return{loading:o,mutating:I,processing:E,error:C,notifications:u,unseen:v,unseenMaxed:p,unreadIds:m,hasMore:g,markAllAsSeen:()=>d(null,null,(function*(){yield h({},{update:Xt})})),markAsRead:e=>d(null,null,(function*(){Array.isArray(e)?yield S({input:{notifications:e}},{update:Vt(e)}):yield w({notificationId:e},{update:Vt(e)})})),generateNotificationUrl:e=>"Post"==e.subject.__typename?"comment"==e.sourceable_type?`/a/community/posts/${e.subject.id}/comments/${e.sourceable_id}`:`/a/community/posts/${e.subject.id}`:"Comment"==e.subject.__typename?`/a/community/posts/${e.subject.post_id}/comments/${e.subject.id}`:(console.error("could not generate url from notification",e),"#"),loadMore:()=>{f.value&&r({variables:{input:c(s({},a.input),{paginate:c(s({},a.input.paginate),{cursor:f.value})})},updateQuery:Wt})},refetch:l}},Wt=(e,{fetchMoreResult:t})=>{var a,o,i,n;return(null==(o=null==(a=null==e?void 0:e.notification)?void 0:a.notifications)?void 0:o.notifications)&&(null==(n=null==(i=null==t?void 0:t.notification)?void 0:i.notifications)?void 0:n.notifications)?c(s({},t),{notification:c(s({},t.notification),{notifications:c(s({},t.notification.notifications),{notifications:[...e.notification.notifications.notifications,...t.notification.notifications.notifications]})})}):e},Xt=(e,t)=>
1{var a,o;(null==(o=null==(a=t.data)?void 0:a.notification)?void 0:o.seenUserNotifications.success)&&e.modify({id:e.identify({__typename:"NotificationsResponse"}),fields:{unseen:()=>0},broadcast:!1})},Vt=e=>(t,a)=>{var o,i,n;const l=null==(o=a.data)?void 0:o.notification;if(!l||"readNotification"in l&&!(null==(i=l.readNotification)?void 0:i.success)||"readNotifications"in l&&!(null==(n=l.readNotifications)?void 0:n.success))return;const r=Array.isArray(e)?e:[e];t.modify({id:t.identify({__typename:"NotificationsResponse"}),fields:{unread:e=>e-r.length},broadcast:!1});const s=(new Date).toISOString();for(const e of r)t.modify({id:t.identify({__typename:"Notification",id:e}),fields:{read_at:()=>s},broadcast:!1})},Qt={key:0,class:"flex size-12 min-w-12 cursor-auto items-center justify-center rounded-full bg-gray-lightest font-bold text-black"},$t=["src","alt"],Kt={__name:"Avatar",props:{customer:{type:Object,required:!0},size:{type:String,default:"100"}},setup(e){const t=e,a=k((()=>t.customer.display_name||t.customer.first_name||"")),o=k((()=>a.value.charAt(0).toUpperCase()));return(t,i)=>e.customer?(f(),p("div",Qt,[e.customer.avatar_url?(f(),p("img",{key:0,src:e.customer.avatar_url+"?w="+e.size+"&auto=compress",alt:a.value,class:"size-full rounded-full"},null,8,$t)):(f(),p(z,{key:1},[N(Y(o.value),1)],64))])):I("",!0)}},ea=["disabled","href"],ta={class:"flex-auto px-4 leading-4"},aa=["innerHTML"],oa=x({__name:"NotificationItem",props:{notification:{}},setup(e){const t=e,{processing:a,markAsRead:o,generateNotificationUrl:i}=Jt(Ve(window.Shopify.locale,Ae.En)),n=k((()=>i(t.notification))),l=e=>d(null,null,(function*(){e.read_at||(yield o(e.id))})),r=k((()=>!!t.notification.read_at)),s=k((()=>t.notification.message.replace(t.notification.actor.display_name,`<strong>${t.notification.actor.display_name}</strong>`)));return(e,t)=>(f(),p("a",{class:T(["group my-1 flex cursor-pointer rounded bg-white px-2 py-1 transition-all duration-300 hover:bg-gray-lightest hover:no-underline",{read:r.value}]),disabled:j(a),href:n.value,onClick:t[0]||(t[0]=V((t=>l(e.notification)),["left"])),onMouseup:t[1]||(t[1]=V((t=>l(e.notification)),["middle","exact"]))},[h(Kt,{customer:e.notification.actor},null,8,["customer"]),g("div",ta,[g("div",{class:"text-base leading-5 text-gray-darkest transition-colors duration-300 group-[.read]:text-gray-500",innerHTML:s.value},null,8,aa),h(Qe,{date:e.notification.created_at,class:"text-xs leading-4 text-gray-500"},null,8,["date"])]),t[2]||(t[2]=g("div",{class:"flex w-3 items-center before:block before:size-3 before:rounded-full before:bg-primary before:transition-opacity before:duration-300 before:content-[''] group-[.read]:before:opacity-0"},null,-1))],42,ea))}}),ia={key:0,class:"max-h-[39px] text-right"},na={key:0,class:"text-error"},la={key:2,class:"px-4 py-12 text-center"},ra={key:3,class:"loader absolute left-1/2 -ml-6"},sa=x({__name:"NotificationsList",setup(e){const{loading:t,notifications:a,error:o,unreadIds:i,unseen:n,hasMore:l,refetch:r,loadMore:s,markAllAsSeen:c,markAsRead:u}=Jt(Ve(window.Shopify.locale,Ae.En)),{t:b}=_(),y=m(null),w=m(null),x=k((()=>t.value)),M=k((()=>l.value));v((()=>{var e;null==(e=y.value)||e.addEventListener("scroll",A),r(),n.value>0&&c()}));const A=At((()=>{var e,t;const a=null==(e=w.value)?void 0:e.getBoundingClientRect();(null!=(t=null==a?void 0:a.bottom)?t:0)-window.innerHeight<200&&E()}),300);S(a,(()=>{L((()=>{var e,t;const a=null==(e=y.value)?void 0:e.offsetHeight,o=null==(t=w.value)?void 0:t.offsetHeight;o&&a&&o-a<-10&&E()}))}));const E=()=>{s()},D=()=>d(null,null,(function*(){yield u(i.value)}));return Q((()=>{var e;null==(e=y.value)||e.removeEventListener("scroll",A)})),(e,t)=>(f(),p("div",{ref_key:"notificationsContainer",ref:y,class:T(["relative h-[calc(100vh-64px)] overflow-auto",{"pb-[90px]":M.value}])},[h(X,{name:"slide-fade"},{default:R((()=>[j(i).length?(f(),p("div",ia,[g("span",{class:"inline-block cursor-pointer px-4 py-2 text-xs font-bold text-primary",onClick:D},Y(j(b)("community.notifications.text_mark_as_read")),1)])):I("",!0)])),_:1}),j(o)?(f(),p("div",na,[g("b",null,Y(j(b)("global.error"))+":",1),N(" "+Y(j(o).message),1)])):I("",!0),j(a).length?(f(),p("div",{key:1,ref_key:"notificationsList",ref:w,class:"px-2.5 pb-1 pt-0"},[(f(!0),p(z,null,$(j(a),(e=>(f(),C(oa,{key:e.id,notification:e},null,8,["notification"])))),128))],512)):I("",!0),j(a).length||x.value?I("",!0):(f(),p("div",la,Y(j(b)("community.notifications.text_no_notifications")),1)),x.value?(f(),p("div",ra)):I("",!0)],2))}}),ca=["title"],da={class:"relative"},ua={key:2,class:"absolute -right-2 -top-1 flex h-5 min-w-5 items-center justify-center rounded-full bg-pink p-1 text-xxs font-bold leading-none text-white md:-right-2 md:-top-3 md:h-6 md:min-w-6 md:text-xs"},ma={class:"text-xxs text-white md:text-sm lg:text-gray-darkest"},va=x({__name:"Notifications",setup(e){const{t}=_(),{profile:a}=Xe(),o=m(null),{unseenMaxed:i}=Jt(Ve(window.Shopify.locale,Ae.En)),n=()=>{var e;null==(e=o.value)||e.openModal()};return(e,l)=>(f(),p(z,null,[j(a)?(f(),p("span",{key:0,class:"flex cursor-pointer flex-col items-center justify-center gap-px text-center text-sm md:gap-1",title:j(t)("community.notifications.text_notifications"),onClick:n},[g("span",da,[j(i)?(f(),C(Zt,{key:0,class:"text-xl text-white md:text-3xl lg:text-gray-darker"})):(f(),C(Yt,{key:1,class:"text-xl text-white md:text-3xl lg:text-gray-darker"})),j(i)?(f(),p("span",ua,Y(j(i)),1)):I("",!0)]),g("span",ma,Y(j(t)("community.notifications.text_notifications")),1)],8,ca)):I("",!0),h(qt,{ref_key:"notificationsModal",ref:o,transition:"slide-right-fade","class-name":"notifications-modal"},{header:R((()=>[g("h1",null,Y(j(t)("community.notifications.text_notifications")),1)])),body:R((()=>[h(sa)])),_:1},512)],64))}}),pa=""+new URL("hobbii-swirwl-ZJ1u4OAf.svg",import.meta.url).href,fa=""+new URL("hobbii-arm-DHQ54I9z.png",import.meta.url).href,ga=""+new URL("hobbii-fbi_no_arms-DCz2SfOW.png",import.meta.url).href,ha={class:"flex flex-col gap-3 p-4"},ba={class:"text-2xl font-bold"},ya={class:"underline",href:"/pages/membership-conditions",target:"_blank"},wa=x({__name:"AccountBlockedNoticeModal",setup(e){const{t}=_(),a=Ie(),o=k({get:()=>a.showingAccountBlockedNoticeModal,set(e){e||a.closeAccountBlockedNoticeModal()}}),i=()=>{a.closeAccountBlockedNoticeModal()};return(e,a)=>{const n=K("I18nT");return f(),C(H,{active:o.value,"onUpdate:active":a[0]||(a[0]=e=>o.value=e),size:"sm","close-button":!0,"close-on-escape-key":!0,"close-on-click-outside":!0,"always-on-top":!0},{default:R((()=>[g("div",ha,[g("h1",ba,Y(j(t)("account_blocked.text_title")),1),h(n,{keypath:"account_blocked.text_description",tag:"p"},{default:R((()=>[g("a",ya,Y(j(t)("account_blocked.label")),1)])),_:1}),h(Ee,{theme:"primary",size:"lg",class:"mt-2 !text-lg",onClick:i},{default:R((()=>[N(Y(j(t)("account_blocked.text_close")),1)])),_:1})])])),_:1},8,["active"])}}}),xa={class:"flex w-full flex-col items-center gap-2 text-black"},_a={class:"text-center text-2xl font-bold leading-8"},ka={class:"text-pretty text-center text-base leading-6"},Sa={key:0,class:"text-error"},Ma={key:1,class:"-mt-2 text-center"}
1,Aa=["innerHTML"],Ia=x({__name:"PostSignupDetailsModal",setup(e){var t,a;const{t:o}=_(),i=Ie(),{profile:n,missingFields:l,refetch:r}=tt(),{updateMyProfile:c,loading:u}=at(),v=window.location.pathname===`${window.Shopify.routes.root}${ce.BINGO_PATH_SEGMENT}`,b=m("true"===Se.getItem(ce.DISMISSED_SESSION_KEY)),y=()=>{b.value=!0,Se.setItem(ce.DISMISSED_SESSION_KEY,"true")},w=k((()=>{var e,t;return!(!i.isLogged||null==(t=null==(e=l.value)?void 0:e.firstName)||!t)&&(v||!b.value)})),x=e=>{e||y()},S=()=>y(),M=k((()=>{var e,t;return null!=(t=null==(e=l.value)?void 0:e.craftSkills)&&t})),A=k((()=>o(v?"account.post_signup_details_modal.bingo.title":"account.post_signup_details_modal.title"))),E=k((()=>o(v?"account.post_signup_details_modal.bingo.description":"account.post_signup_details_modal.description"))),T=m(null!=(a=null==(t=n.value)?void 0:t.first_name)?a:""),D=k((()=>{var e,t;return ot(null!=(t=null==(e=n.value)?void 0:e.craft_skills)?t:[])})),L=m(null),U=ee("fields"),z=()=>d(null,null,(function*(){L.value=null;try{yield c(s({first_name:T.value.trim()},M.value&&U.value?{craft_skills:nt(U.value.crafts)}:{})),y(),yield r(),yield d(null,null,(function*(){const e=Ze();if(!e.sessionId||!e.token)return!1;const t=e.token,a=yield e.refresh().catch((t=>(e.logError(`Failed to refresh bingo identity: ${JSON.stringify(t)}`),null)));return!!a&&(a===t?(e.logError("Bingo identity refresh returned the same pass, skipping reconnect"),!1):(e.requestIdentityRefresh(),!0))})).catch((()=>!1))}catch(e){L.value=o("account.post_signup_details_modal.error")}}));return(e,t)=>(f(),C(H,{active:w.value,size:"md","close-button":!v,"close-on-escape-key":!v,"close-on-click-outside":!1,"footer-divider":!1,padded:"","onUpdate:active":x},{header:R((()=>[g("div",xa,[g("h2",_a,Y(A.value),1),g("p",ka,Y(E.value),1)])])),body:R((()=>{var e;return[g("form",{class:"flex w-full flex-col gap-6 text-black",onSubmit:V(z,["prevent"])},[h(it,{ref_key:"fields",ref:U,"first-name":T.value,"onUpdate:firstName":t[0]||(t[0]=e=>T.value=e),"show-craft-skill":M.value,"show-last-name":!1,"initial-crafts":D.value},null,8,["first-name","show-craft-skill","initial-crafts"]),L.value?(f(),p("div",Sa,Y(L.value),1)):I("",!0),h(Ee,{type:"submit",disabled:!(null==(e=j(U))?void 0:e.isValid)||j(u),loading:j(u),theme:"primary",size:"lg","full-width":"",class:"mt-4"},{icon:R((()=>[h(et)])),default:R((()=>[N(Y(j(o)("account.post_signup_details_modal.submit_button"))+" ",1)])),_:1},8,["disabled","loading"]),v?I("",!0):(f(),p("div",Ma,[g("a",{href:"#",class:"text-sm font-bold text-primary hover:text-primary-600",onClick:V(S,["prevent"])},Y(j(o)("account.post_signup_details_modal.maybe_later")),1)]))],32)]})),footer:R((()=>[g("div",{class:"text-center text-xs text-[#000] [&_a]:font-bold [&_a]:text-[#000]",innerHTML:j(o)("account.post_signup_details_modal.privacy_notice")},null,8,Aa)])),_:1},8,["active","close-button","close-on-escape-key"]))}}),Ea={class:"relative flex flex-col gap-3 bg-gradient-to-b from-primary-100 px-4 pt-4"},ja={class:"mt-4 text-2xl font-bold"},Ca={class:"flex gap-2"},Ta={class:"underline",href:"/pages/membership-conditions",target:"_blank"},Da={class:"ease relative mt-1 size-full overflow-hidden transition-all duration-200"},La={class:"relative mx-auto w-[65px] -translate-x-2"},Na=x({__name:"TocVerification",setup(e){const{t}=_(),a=Ie(),{acceptTos:o,processing:i}=(()=>{const{mutate:e,loading:t}=ve(lt,{clientId:"gateway",fetchPolicy:"network-only"});return{processing:k((()=>t.value)),acceptTos:()=>d(null,null,(function*(){var t,a,o,i,n;const l=yield e({alias:"community"});if(null==(t=null==l?void 0:l.errors)?void 0:t.length)throw l.errors[0];return null!=(n=null==(i=null==(o=null==(a=null==l?void 0:l.data)?void 0:a.toc)?void 0:o.accept)?void 0:i.success)&&n}))}})(),n=m(!1),l=()=>d(null,null,(function*(){try{n.value&&(yield o(),a.setTermsOfServiceAgreement(n.value))}catch(e){console.error(e),r()}})),r=()=>{a.closeTermsOfServiceAgreementModal()},s=k({get:()=>a.showingTermsOfServiceAgreementModal,set(e){e||a.closeTermsOfServiceAgreementModal()}});return(e,a)=>{const o=K("I18nT");return f(),p(z,null,[h(wa),h(Ia),h(H,{active:s.value,"onUpdate:active":a[1]||(a[1]=e=>s.value=e),size:"sm","close-button":!1,"close-on-escape-key":!0,"close-on-click-outside":!1,"always-on-top":!0},{default:R((()=>[g("div",Ea,[a[3]||(a[3]=g("img",{src:pa,alt:"",class:"absolute right-0 top-0"},null,-1)),h(te,{class:"absolute right-2 top-2",theme:"light","aria-label":"Close",label:"Close",onClick:r},{default:R((()=>[h(b,{class:"text-xl"})])),_:1}),g("h1",ja,Y(j(t)("toc.text_title")),1),g("p",null,Y(j(t)("toc.text_description")),1),g("div",Ca,[W(g("input",{id:"toc-agree","onUpdate:modelValue":a[0]||(a[0]=e=>n.value=e),type:"checkbox",class:"relative size-6 cursor-pointer appearance-none items-start rounded-md text-primary accent-primary focus:outline-primary active:outline-primary"},null,512),[[ae,n.value]]),h(o,{keypath:"toc.text_agree",tag:"label",for:"toc-agree",class:"flex-1 cursor-pointer"},{default:R((()=>[g("a",Ta,Y(j(t)("toc.label")),1)])),_:1})]),h(Ee,{theme:"primary",size:"lg",class:"!text-lg",disabled:j(i)||!n.value,onClick:l},{default:R((()=>[N(Y(j(t)("toc.text_continue")),1)])),_:1},8,["disabled"]),g("div",Da,[g("div",La,[g("img",{src:fa,alt:"",class:T(["absolute left-[25px] top-0 w-[80px] max-w-none origin-[left_80%] rotate-90 transition-all duration-200 ease-[
1cubic-bezier(0.25,0.1,0.38,1.8)]",[n.value?"rotate-[20deg] opacity-100":"rotate-90 opacity-0"]]),width:"94",height:"79"},null,2),a[2]||(a[2]=g("img",{src:ga,alt:"",class:"relative z-0 h-auto w-full transition-transform duration-100",width:"65",height:"70"},null,-1)),g("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADYAAAAdCAYAAADhLp8oAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDkuMS1jMDAyIDc5LmI3YzY0Y2NmOSwgMjAyNC8wNy8xNi0xMjozOTowNCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIDI2LjAgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NDlBRThFODM4RkFGMTFFRkIyNUFCNEZDNDIwNkE5NTkiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NDlBRThFODQ4RkFGMTFFRkIyNUFCNEZDNDIwNkE5NTkiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo0OUFFOEU4MThGQUYxMUVGQjI1QUI0RkM0MjA2QTk1OSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo0OUFFOEU4MjhGQUYxMUVGQjI1QUI0RkM0MjA2QTk1OSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PtWjUsIAAALASURBVHja1JhLSJRRFMe7Y1FYWOlQYEUPhCnapJFJi1oIESlF9t5G6KKgAgl3riOiFgU9qIVtMkqKNhIUhZJFIEUFDQ1BZFHpFL0IilF/J44wTTN+Tz/nfvCbMzPffXz/e+537rnXTLHwSiSqNmGOwDqYBW+gC44lk6mPUsZYJkie9yQcKlDkEzQi7rFtwkTQKYdig7CixCJRMuVuwQyHojPlI2aRw/bBbJdltxtLvCUOSEKVyyojtnhshwdRcg0bC7xVinkJizxUe2iDx9o9ipKr0+SMzhLMVlgMP+EB3GZdyEySt+qlf49B7jdUGm1gGuY4HITcJeAF7EXcs4hFJTB9MNdj1fM8a0tMV/MOXc3zrWsroZdy6yMUJYHijg9RGXXQXxc3wR6HCmXQTYdNEYiqxfTAAh/VL+KtlHwpicfLz2CXuqgk03U35UuhJ53+nAlZkKHdA3y9AnN8NPFdFmae68eYx+o8NnAU+jXDDktUtQaq0zDdZzNteOvD2A9DoyMBnum+zuluP5FT31t5t7cF3Gncg3qeYThb2FvswoCDLiPVqUJ76WCwgJByjHhnMzTIXyE4PA2r6HMg+08Rdg7bHHIM+ALvYUine5kOXkXI/cgs2Yiou7k3RNgy7FPdidp2NSPqQr4bMW68lgUY/lgmqq2QqH+OBvDcFszVAFEpyqsVUSfGK2DyRKnrEC9SQZIH7kfUZaeCJk/kkkz6GtQWmSiJersQ1eem8H+5ISv3NzKADj1bqCuS4wMZ6AZEvXJbwTgsoDUYeUFrJkmQnBceRtANrxXH9QYN9mPWaNRMRShoSFO35X5EOXosx3tTMTuhBTZMkKDncBYuIehXkIZ85We6CZStTiOsDpjnyenTTehCzKOwRijwYQ4i52PWag5YralTJczLCk6S+nyFd/reyK78ieaVAxPh+lEBBgCugsToYPx8cAAAAABJRU5ErkJggg==",alt:"",class:T(["absolute left-[42%] top-[34px] w-[13px] transition-[all_0.2s_cubic-bezier(0.25,0.1,0.38,1.46)] duration-100",[n.value?"rotate-[-16deg] delay-75":"rotate-[10deg]"]]),width:"15",height:"10"},null,2)])])])])),_:1},8,["active"])],64)}}}),Ua="#toc-verification",za=()=>{rt()};var Oa,Ra,Ya,Ha;"loading"===document.readyState?document.addEventListener("DOMContentLoaded",za):za(),customElements.define("hb-modal",w(dt)),De(),d(null,null,(function*(){window.location.pathname.startsWith("/cart")||Ie().isLogged&&We(va,"#notifications-app",{},(e=>{e.directive("global-keydown",$e)}))})),d(null,null,(function*(){window.location.pathname.startsWith("/cart")||(yield de(Na,Ua,{},(e=>{e.directive("global-keydown",$e)}))).mount(Ua)})),Be(),Fe(),Ct(),d(null,null,(function*(){const e=document.getElementById("newsletter-signup-section"),t=document.querySelector("#newsletter-signup-form"),a=null==t?void 0:t.querySelector('input[type="email"]'),o=null==t?void 0:t.querySelector('[type="submit"]'),i=null==e?void 0:e.querySelector(".js-alert-error"),n=null==e?void 0:e.querySelector(".js-alert-error-list");null==a||a.addEventListener("blur",r),null==a||a.addEventListener("input",r),null==t||t.addEventListener("submit",(function(){var e,i;const n=null==a?void 0:a.value.trim(),l=null==(e=null==t?void 0:t.querySelector('input[name="contact[first_name]"]'))?void 0:e.value.trim(),r=null==t?void 0:t.dataset.campaignName;return Ge("newsletter_signup",{category:"newsletter",campaign_name:r||void 0,customer_email_hash:n?Pe(n):void 0,customer_name_hash:l?Pe(l):void 0}),null==(i=window.posthog)||i.capture(ne.NEWSLETTER_SIGNUP,{campaign_name:r||void 0}),n&&qe({email:n,firstName:l}),Se.setItem("signupForm","newsletter-signup-form"),o&&(o.disabled=!0),!0}));let l=!0;function r(e){if("input"===e.type&&!0===l)return;const a=null==this?void 0:this.value.trim();var r;a?Je(a)?(l=!0,t&&s(t),o&&(o.disabled=!1),c()):(l=!1,(r=this).classList.add("border-error-200"),r.classList.add("bg-error-100"),r.classList.add("text-error-800"),o&&(o.disabled=!0),this.dataset.errorMessage&&function(e){if(!n||!i)throw new Error("Error elements not found in DOM");n.innerHTML="",e.forEach((function(e){const t=document.createElement("li");t.textContent=e,n.appendChild(t)})),i.classList.remove("hidden")}([this.dataset.errorMessage])):(t&&s(t),o&&(o.disabled=!0),c())}function s(e){e.querySelectorAll("input").forEach((e=>function(e){e.classList.remove("border-error-200"),e.classList.remove("bg-error-100"),e.classList.remove("text-error-800")}(e)))}function c(){if(!n||!i)throw new Error("Error elements not found in DOM");null==i||i.classList.add("hidden"),n.innerHTML=""}})),Ke(),d(null,null,(function*(){var e;if(window.location.pathname.startsWith("/cart"))return;const t="#footer-country-switcher",a=document.querySelector(t);if(!a)return void console.error(`Element with id: "${t}" not found.`);const o=a.dataset.cartCurrency;try{const a=_e({graphqlHost:"https://gateway.hobbii.com"}),i=yield a.query(ke());i.data&&(yield ue(O,t,{countryConfigs:null!=(e=i.data.countryConfigs)?e:[],cartCurrency:o},null,{noClients:!0}))}catch(i){}})),d(null,null,(function*(){var e,t,a,o,i;const n=Z(window.location.pathname);if(!n.startsWith("/cart")&&!Te(re.DOMAIN_MISMATCH_SUPPRESSED)&&document.querySelector(zt))try{yield De();const l=ze(),r=yield l.cacheFeatureFlag(se.SHOW_DOMAIN_MISMATCH_NUDGE);if(!Oe(r))return;const s=yield d(null,null,(function*(){var e,t,a;try{const o=yield fetch("/browsing_context_suggestions.json");return o.ok&&null!=(a=null==(t=null==(e=(yield o.json()).detected_values)?void 0:e.country)?void 0:t.handle)?a:null}catch(o){return null}}));if(!s)return void(e=>{var t;je("domain_mismatch_detection_failed",e),null==(t=window.posthog)||t.capture(ne.DOMAIN_MISMATCH_DETECTION_FAILED,e)})({current_domain:window.location.hostname,failure_reason:"no_country_detected"});const c=_e({graphqlHost:"https://gateway.hobbii.com"}),u=yield c.query(ke()),m=(null!=(t=null==(e=u.data)?void 0:e.countryConfigs)?t:[]).find((e=>(null==e?void 0:e.countryCode)===s));if(!(null==(a=null==m?void 0:m.shopifyConfig)?void 0:a.storeEndpoint))return;const v=window.Shopify.shop.split(".")[0],p=null==(o=m.shopifyConfig.storefront)?void 0:o.name;if(!p||p===v)return;const f=new URL(m.shopifyConfig.storeEndpoint).hostname,g="/"===n;let h=g;if(!g){const e=B(n),t=m.shopifyConfig.storefront;e&&(null==t?void 0:t.endpoint)&&(null==t?void 0:t.publicAccessToken)&&(h=yield F(t.endpoint,t.publicAccessToken,e))}const b=G(m.shopifyConfig.storeEndpoint,null!=(i=m.countryCode)?i:s,{preservePath:
1h});yield ue(Ut,zt,{currentDomain:window.location.hostname,suggestedDomain:f,targetUrl:b,fallbackToHomepage:!h},null,{noClients:!0}),(e=>{var t;je("domain_mismatch_nudge_shown",e),null==(t=window.posthog)||t.capture(ne.DOMAIN_MISMATCH_NUDGE_SHOWN,e)})({current_domain:window.location.hostname,detected_country:s,suggested_domain:f})}catch(l){Re("initDomainMismatchNudge",l)}})),Ot&&(Oa=Ot.currencyRate.toString())&&Ce(re.CURRENCY_RATE,Oa.toString()),(null==Ot?void 0:Ot.isLogged)&&(null==(Ya=Ot.customer)?void 0:Ya.email)?(Ra=null==(Ha=Ot.customer)?void 0:Ha.email)&&Ce(re.CONTACT_UUID,Ye(Ra)):Te(re.CONTACT_UUID)&&Ce(re.CONTACT_UUID,"",-1),d(null,null,(function*(){const e=document.querySelector("#header-bingo-link");if(e)try{if(!(yield He(P())))return;e.classList.replace("hidden","flex")}catch(t){console.error("Could not resolve bingo availability for the header",t)}}));
2//# sourceMappingURL=hobbii-common-DBVhStB0.min.js.map

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.