PageSourceSearch

https://www.brillen.de/_next/static/chunks/pages/[[...slug]]-e0be6d828c6e9b55.js

js brillen.de collected 2026-09-24 11:59:02 UTC 451,994 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[120],{95759:function(a,b,c){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[[...slug]]",function(){return c(62937)}])},62937:function(G,f,a){"use strict";a.r(f),a.d(f,{"__N_SSG":function(){return g$},default:function(){return g_}});var H=a(26042),I=a(85893),J=a(67294),k=a(11163),K=a.n(k),l=a(34051),m=a.n(l);a(93677);var L,M=a(26213),n=a(47568),N=a(29815),O=a(81537),P=function(a,b){return function(c){return c[a]===b}},Q={"Lead for optician finder":"lead-form-optician","Lead for appointment":"lead-form-appointment",familygroup:"familygroup","Lead for appointment LM":"lead-form-appointment-lm","Lead for insurance contract":"insurance-contract","Lead for KBS":"form-kbs-1","Lead for lidl":"lead-form-lidl","Lead for test":"lead-form-test","Lead Form App Test 2":"lead-form-app-test-2","Lead Form App Test 3":"lead-form-app-test-3","Lead for app test":"lead-for-app-test","Lead Form Appointment Affiliate":"lead-form-appointment-affiliate"};(0,n.Z)(m().mark(function a(b,c){var d,e,f,g,h,i,j,k;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(!(!c||!c.length)){a.next=2;break}return a.abrupt("return");case 2:return d=c.filter(P("__component","repeated-design.default-data")),e=c.filter(P("__component","leadform.default-lead-flow")),f=c.filter(P("__component","leadform.default-miles-flow")),g=c.filter(P("__component","leadform.default-order-flow")),h=c.filter(P("__component","leadform.default-farmacy-flow")),i=c.filter(P("__component","leadform.default-hearing-flow")),j=c.filter(P("__component","leadform.default-order-flow")),k=(0,N.Z)(d).concat((0,N.Z)(e),(0,N.Z)(f),(0,N.Z)(g),(0,N.Z)(h),(0,N.Z)(i),(0,N.Z)(j)).map(function(d){var a=d.DefaultDesign,c=Q[a]||a;return(0,O.H)(c)&&b.prefetchQuery((0,M.q)(c))}),a.next=12,Promise.all(k);case 12:case"end":return a.stop()}},a)}));var R=a(44124),b=a(13373),S=(b.Z.country,a(36492)),T=a(60666),U=a(5993),V=function(c){var a;return(0,S.a)((a=c,{queryFn:function(){return U.Z.deals.getDataBySlug(a)},queryKey:T.Z.deals.bySlug(a),staleTime:b.Z.defaultStaleTime}))},W=a(73585),d=a(81942),X=(0,d.j)("col-span-1 con",{variants:{cols:{2:"lg:col-span-1",3:"lg:col-span-2",4:"lg:col-span-3"},hasAside:{true:"",false:""}},compoundVariants:[{cols:2,hasAside:!1,class:"lg:col-span-2"},{cols:2,hasAside:!0,class:"lg:col-span-1"},{cols:3,hasAside:!1,class:"lg:col-span-3"},{cols:3,hasAside:!0,class:"lg:col-span-2"},{cols:4,hasAside:!1,class:"lg:col-span-4"},{cols:4,hasAside:!0,class:"lg:col-span-3"},],defaultVariants:{hasAside:!1}}),Y=(0,d.j)("col-span-1",{variants:{mobileAsideFirst:{true:"order-first lg:order-none"}},defaultVariants:{mobileAsideFirst:!1}}),Z=(0,d.j)("grid grid-cols-1",{variants:{cols:{2:"lg:grid-cols-2",3:"lg:grid-cols-3",4:"lg:grid-cols-4"},addContainer:{true:"container [&_.container]:px-0"},gap:{true:"gap-4",false:"md:gap-4"}},defaultVariants:{cols:3,addContainer:!0,gap:!0}}),$=function(a){var g=a.children,b=a.aside,d=a.before,e=a.after,f=a.cols,c=void 0===f?3:f,h=a.mobileAsideFirst,i=a.addContainer,j=a.gap;return(0,I.jsxs)("div",{className:"flex flex-col gap-4",children:[(0,I.jsxs)("div",{className:Z({addContainer:i,cols:c,gap:j}),children:[d&&(0,I.jsx)("div",{className:X({cols:c,hasAside:!!b}),children:d}),(0,I.jsx)("div",{className:X({cols:c,hasAside:!!b}),children:g}),!!b&&(0,I.jsx)("div",{className:Y({mobileAsideFirst:h}),children:b})]}),!!e&&(0,I.jsx)("div",{children:e})]})},_=a(47041),aa=a(19805),ab=a(97970),ac=a(44961),ad=a(98895),ae=a(89617),af=a(81666),ag=a(83618),ah=a(68110),g=a(11665),ai=a(73552),aj=a(69610),ak=b.Z.country,al=function(d){var q,r,s,t=d.onClosePopup,D=d.popuppname,E=d.commanpname,a=d.popupdata,f=(0,J.useState)(!1),u=f[0],F=f[1],h=(0,J.useState)(!1),e=h[0],G=h[1],i=(0,J.useState)(!1),c=i[0],H=i[1],j=(0,J.useState)(!1),b=j[0],L=j[1],k=(0,J.useState)(""),v=k[0],M=k[1],l=(0,J.useState)(!1),w=l[0],N=l[1],o=(0,J.useState)(""),x=o[0],O=o[1],p=(0,J.useState)(!1),y=p[0],P=p[1],z="BENVENUTO50",A=(q=(0,n.Z)(m().mark(function a(){var b,c,d;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(P(!1),F(!0),""!==x){a.next=6;break}return P(!0),F(!1),a.abrupt("return");case 6:if(/^(([^<>()\\[\]\\.,;:\s@"]+(\.[^<>()\\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(x)){a.next=10;break}return P(!0),F(!1),a.abrupt("return");case 10:return(b={}).userName=x.toLowerCase(),b.type=2,a.next=15,(0,g.Lx)(ak,b);case 15:(c=a.sent).success&&c.data.length>=1?(L(!1),H(!0)):(F(!0),H(!1),L(!0),(d={}).zipcode="",d.email=x,(0,ai.NN)(ak,d)),F(!1);case 18:case"end":return a.stop()}},a)})),function(){return q.apply(this,arguments)}),B=(r=(0,n.Z)(m().mark(function a(){var b;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return(b={}
1).email=x,b.coupon=z,a.next=5,(0,aj.LD)(ak,"popupdealoffer",b);case 5:F(!0),K().push("/thank-you-popup");case 7:case"end":return a.stop()}},a)})),function(){return r.apply(this,arguments)}),C=(s=(0,n.Z)(m().mark(function b(){var c,d;return m().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:F(!0),c="".concat(a.bookAppUrl),d="?product=".concat(D,"&pname=").concat(D,"&zip=").concat(v,"&isDirectLead=1&couponcode=").concat(z,"&email=").concat(x),K().push(c+d);case 4:case"end":return b.stop()}},b)})),function(){return s.apply(this,arguments)});return(0,I.jsxs)("div",{className:"fixed inset-0 z-50 flex items-center justify-center px-4 bg-black/50",children:[u&&(0,I.jsx)(ah.Z,{}),(0,I.jsxs)("div",{className:"relative w-full max-w-4xl p-6 bg-white shadow-2xl rounded-2xl md:p-10",children:[b&&!e?(0,I.jsx)("div",{onClick:function(){G(!0)},className:"absolute font-medium underline cursor-pointer text-accent right-6 top-4",children:a.ctaClose}):(0,I.jsx)("div",{onClick:t,className:"absolute font-medium underline cursor-pointer text-accent right-6 top-4",children:e?a.ctaCloseAnyway:a.ctaClose}),b&&(0,I.jsx)("div",{className:"mt-4 mb-4 text-center",children:(0,I.jsx)("h2",{className:"w-2/3 py-1 m-auto text-xl font-medium text-white rounded-md bg-accent",children:a.voucherInfo})}),(0,I.jsx)("div",{className:"flex justify-center",children:b?(0,I.jsxs)("div",{className:"relative w-[19rem]",children:[(0,I.jsx)(ae.ZP,{layout:"responsive",image:null==a?void 0:a.voucherPhoto,className:""}),(0,I.jsx)("div",{className:"absolute left-[20%] bottom-[16%] w-[50%] text-center",children:(0,I.jsx)("span",{className:"font-bold tracking-wide text-brand",children:z})})]}):(0,I.jsx)("div",{className:"w-20 h-20",children:(0,I.jsx)(ae.ZP,{layout:"responsive",image:null==a?void 0:a.offerphoto,className:""})})}),b&&(0,I.jsxs)("div",{className:"mt-4 text-center",children:[(0,I.jsx)("h3",{className:"text-xl font-medium text-brand",children:a.successInfo}),(0,I.jsx)("p",{className:"mt-4 font-semibold text-md text-accent",children:a.successSubInfo}),e&&(0,I.jsx)("p",{className:"mt-4 font-semibold text-red-500 text-md",children:a.inforReallyClose})]}),!b&&(0,I.jsx)("div",{className:"py-2 mt-4 text-center rounded-md bg-accent",children:(0,I.jsx)("h2",{className:"text-xl font-medium text-white",children:a.offertitle})}),!b&&(0,I.jsxs)("div",{className:"mt-4 text-center",children:[(0,I.jsxs)("h3",{className:"text-xl font-medium text-brand",children:[!c&&a.offerinfo,c&&a.alreadyInfo]}),(0,I.jsxs)("p",{className:"mt-4 font-semibold text-md text-accent",children:[!c&&a.subinfo,c&&a.alreadySubInfo]})]}),b&&(0,I.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4 mt-4 md:flex-row",children:[(0,I.jsx)(af.z,{slim:!1,className:"",intent:"outline",onClick:B,children:a.ctaSaveCode}),(0,I.jsx)(af.z,{slim:!1,className:"",intent:"primary",onClick:C,children:a.ctaBookApp})]}),!c&&!b&&(0,I.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4 mt-4 md:flex-row",children:[(0,I.jsx)("input",{type:"text",name:"email",value:x,placeholder:a.emailLabel,onChange:function(a){O(a.target.value.trim()),P(!1)},className:"w-full h-12 max-w-xs px-4 border border-gray-300 rounded outline-none focus:border-accent"}),(0,I.jsx)(af.z,{slim:!1,className:"",intent:"primary",onClick:A,children:a.ctaCode})]}),c&&(0,I.jsxs)("div",{className:"flex flex-col items-center justify-center gap-4 mt-4 md:flex-row",children:[(0,I.jsx)("input",{type:"text",name:"zip",value:v,placeholder:a.zipLabel,onChange:function(a){M(a.target.value.trim()),N(!1)},className:"w-full h-12 max-w-xs px-4 border border-gray-300 rounded outline-none focus:border-accent"}),(0,I.jsx)(af.z,{slim:!1,className:"",intent:"primary",onClick:function(){if(F(!1),N(!1),""===v.trim()){N(!0);return}F(!0);var b="".concat(a.bookAppUrl),c="?product=".concat(E,"&pname=").concat(E,"&zip=").concat(v,"&isDirectLead=1");K().push(b+c)},children:a.ctaZip})]}),!b&&(0,I.jsxs)("div",{className:"text-center min-h-[32px]",children:[y&&(0,I.jsx)("span",{className:"errorMsg",children:ag.Z.getValidation("email_valid")}),w&&(0,I.jsx)("span",{className:"errorMsg",children:ag.Z.getValidation("valid_zip")})]})]})]})},am=a(17737),an=a(83268),ao=function(a){var c=a.isOffer,d=a.isTchibo,b=a.text,e=a.preText,f=a.isBackHistory,g=a.backText,i=a.backURL,j=(0,k.useRouter)(),h=(0,an.XG)({type:c?R.b.dealOffer:d?R.b.tchibo:R.b.deal});return(null==b?void 0:b.trim())?f?(0,I.jsx)("div",{className:"container mx-auto mb-5 max-md:mb-0",children:(0,I.jsx)("div",{onClick:function(){j.push(i||"/")},className:"cursor-pointer",children:g||e})}):(0,I.jsx)(am.r,{className:"container block mb-5 text-sm text-brand max-md:mb-0",href:h,children:"< ".concat(b)}):null},ap=b.Z.country,aq=function(i){var c,d,e,f,g,a=i.deal,m=i.isTchibo,j=(0,J.useState)(!1),n=j[0],p=j[1],k=(0,J.useState)(!1),o=k[0],q=k[1],l=(0,M.Z)("deal-detail"),b=null==l?void 0:l.data,h=!1;"hi"===ap&&(h=!0);var r=function(){if(/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)){var a=document.getElementById("jumpIdMobile");if(a){var b=a.offsetTop-75;window.scrollTo({top:b,behavior:"smooth"})}}};return(0,J.useEffect)(function(){var b;return r(),"de"===ap&&("localhost1"===window.location.hostname||"metro.brillen.de1"===window.location.hostname||"tgbo.brillen.de1"===window.location.hostname)&&p(!0),(null==a?void 0:a.offerPopup)&&!(0,_.getCookie)("islogin")&&(b=setTimeout(function(){q(!0)},3e4)),function(){b&&clearTimeout(b)}},[null==a?void 0:a.offerPopup]),(0,I.jsxs)("div",{className:"tailwind ".concat(a.metrodeal&&"metrolayout"),children:[(0,I.jsx)(ac.Z,{seo:null==a?void 0:a.seo}),n?(0,I.jsx)("div",{className:"bg-[#CAA548] max-md:hidden xs:hidden",children:(0,I.jsx)("div",{className:"container py-4"})}):(0,I.jsx)(ab.Z,{text:null==b?void 0:b.banderole}),(0,I.jsxs)("div",{className:"my-5 md:container md:mx-auto",children:[!(null==a?void 0:a.hideBackDealText)&&(0,I.jsx)(ao,{text:null==b?void 0:b.backText,isTchibo:m,preText:null==b?void 0:b.backTextHistory,isBackHistory:null==a?void 0:a.isBackHistory,backText:null==a?void 0:a.backText,backURL:null==a?void 0:a.backURL}),(0,I.jsxs)($,{addContainer:!1,gap:!1,aside:!!a.rightColumn.length&&(0,I.jsx)(aa.Z,{blocks:a.rightColumn,context:{deal:a}}),after:!!a.fullWidthDownColumn&&(0,I.jsx)(aa.Z,{blocks:a.fullWidthDownColumn}),children:[(null==a?void 0:a.htmlthirdparty)&&(0,I.jsx)("div",{className:"mb-3 -mt-6",dangerouslySetInnerHTML:{__html:null==a?void 0:a.htmlthirdparty}}),!h&&(0,I.jsx)(I.Fragment,{children:(0,I.jsxs)("header",{className:"container text-reset max-md:mt-9",id:"jumpIdMobile",children:[a.title&&(0,I.jsx)("h1",{className:"text-accent text-".concat("xl"===a.titlefontsize?"xl"
1:"xxl"===a.titlefontsize?"h2":"sm"===a.titlefontsize?"sm":"md"===a.titlefontsize?"md":"lg"===a.titlefontsize?"lg":"2xl"," font-normal max-md:text-[30px] md:mb-6 max-md:leading-8"),children:a.title}),a.subtitle&&(null===(c=a.subtitle)|| void 0===c?void 0:c.trim())!==""&&(0,I.jsx)("h2",{className:"text-gray-900 text-h2 font-normal max-md:text-[24px] md:mb-6 max-md:mt-3 max-md:leading-8 ".concat("desktop"===a.showSubTitle?"max-md:hidden":"mobile"===a.showSubTitle?"md:hidden":""),children:a.subtitle}),(0,I.jsx)("div",{className:"max-lg:my-5 ".concat(a.roundImage?"rounded-[30px] max-md:rounded-[15px] overflow-hidden":""),children:a.image&&(0,I.jsx)(ae.ZP,{image:a.image,alt:""})})]})}),h&&(0,I.jsxs)("div",{className:"container",id:"jumpIdMobile",children:[a.title&&(0,I.jsx)(ad.Z,{size:"2xl",color:"black",className:"!text-[40px] max-md:!text-[36px] text-india leading-[64px] !font-normal max-md:leading-[36px] md:mb-3",component:"h1",children:a.title}),a.subtitle&&(null===(d=a.subtitle)|| void 0===d?void 0:d.trim())!==""&&(0,I.jsx)("div",{className:"mb-3 max-md:mt-5",children:(0,I.jsx)(ad.Z,{size:"h2",component:"h2",color:"black",className:"text-india !text-[24px] leading-[24px] md:mb-6 ".concat("desktop"===a.showSubTitle?"max-md:hidden":"mobile"===a.showSubTitle?"md:hidden":""),children:a.subtitle})}),(0,I.jsx)("div",{className:"max-md:py-3",children:a.image&&(0,I.jsx)(ae.ZP,{image:a.image,alt:""})})]}),!!a.leftColumn.length&&(0,I.jsx)(aa.Z,{blocks:a.leftColumn,context:{deal:a}})]})]}),o&&(null==b?void 0:b.dealpopup)&&(0,I.jsx)(al,{onClosePopup:function(){return q(!1)},popuppname:null==a?void 0:a.offerPopupPname,commanpname:null==a?void 0:null===(e=a.offername)|| void 0===e?void 0:null===(f=e.data)|| void 0===f?void 0:null===(g=f.attributes)|| void 0===g?void 0:g.name,popupdata:null==b?void 0:b.dealpopup})]})},ar=a(17204),as=a(93456),at=function(d){var a=d.price;if(!a)return null;var b=a.original,e=a.current,c=a.discount;return(0,I.jsxs)("div",{className:"flex flex-row justify-center w-full space-x-3 md:w-fit md:mt-0 items:center md:items-end md:h-16 ".concat(b&&"mt-3"),children:[(0,I.jsxs)("div",{className:"flex space-x-3 md:flex-col md:space-x-0",children:[b&&(0,I.jsx)("div",{className:"text-xl font-light text-gray-400 line-through",children:b}),(0,I.jsx)("div",{className:"text-xl font-bold text-brand",children:e})]}),c&&(0,I.jsx)("div",{className:"px-1 font-bold rounded text-brand bg-brandLightColor",children:c})]})},au=function(e){var c,d,a=e.deal,b=(0,M.Z)("offer-detail");return(0,I.jsxs)("div",{className:"tailwind",children:[(0,I.jsx)(ac.Z,{seo:null==a?void 0:a.seo}),(0,I.jsx)(ab.Z,{text:null==b?void 0:null===(c=b.data)|| void 0===c?void 0:c.banderole}),(0,I.jsxs)("div",{className:"container pt-10",children:[(0,I.jsx)(ao,{isOffer:!0,text:null==b?void 0:null===(d=b.data)|| void 0===d?void 0:d.backText}),(0,I.jsx)(ad.Z,{size:"2xl",className:"my-7",children:a.title}),(0,I.jsx)("div",{className:"w-auto mx-auto md:w-1/2",children:(0,I.jsxs)(as.Z,{className:"transition-all hover:shadow-brand ",children:[(0,I.jsx)("div",{className:"mt-4 overflow-hidden rounded-xl",children:a.image&&(0,I.jsx)(ae.ZP,{image:a.image})}),(0,I.jsx)(ar.Z,{className:"lg:min-h-[65px] mt-2 font-bold",text:null==a?void 0:a.description}),(0,I.jsx)("div",{className:"flex flex-col items-center justify-between space-y-4 md:flex-row md:items-end",children:(0,I.jsx)(at,{price:null==a?void 0:a.price})})]})})]}),(0,I.jsx)("div",{className:"mb-10",children:a.offer&&(0,I.jsx)(aa.Z,{context:{deal:a},blocks:a.offer})})]})},av=function(a){var d=a.slug,e=a.preview,c=a.isOffer,f=a.isTchibo,b=V({slug:d,preview:e,isOffer:c});return b.data?(0,I.jsx)(W._,{value:b.data.attributes.offername,children:c?(0,I.jsx)(au,{deal:b.data.attributes}):(0,I.jsx)(aq,{deal:b.data.attributes,isTchibo:f})}):null},aw=a(40872),ax=a(98604),ay=a(99534),az=a(51721),aA=(0,d.j)("text-lg text-accent py-1.5 px-2 min-w-[115px]",{variants:{isActive:{true:"border-b-2 border-accent font-bold"}}}),aB=function(a){var b=a.label,c=a.value,d=a.update,e=(0,ay.Z)(a,["label","value","update"]),f=(0,J.useCallback)(function(){return d(c)},[c,d]);return(0,I.jsx)("button",{onClick:f,type:"button",className:aA(e),children:b})},aC=function(a){var c=a.types,d=a.selected,e=a.setSelected,b=a.data;return b?(0,I.jsx)(I.Fragment,{children:(0,I.jsx)("div",{className:"w-full bg-gray-50",children:(0,I.jsxs)("div",{className:"container flex flex-row items-center justify-end",children:[(0,I.jsxs)("div",{className:"flex flex-row items-center mr-4 space-x-1 text-gray-400",children:[(0,I.jsx)("span",{className:"text-base text-gray-400",children:b.filtersLabel||"Filtern"}),(0,I.jsx)(az.Z,{width:"20",height:"20"})]}),(0,I.jsx)(aB,{update:e,value:null,isActive:null==d,label:b.allLabel||"Alle"}),c.map(function(a){return(0,I.jsx)(aB,{update:e,value:a.id,isActive:a.id===d,label:a.attributes.name},a.id)})]})})}):null},aD=a(69396),o=a(73839),aE=function(a){var c=(0,o.K)();return{queryFn:function(){return U.Z.deals.getType(c,a)},queryKey:T.Z.deals.typeById(c,a),staleTime:b.Z.defaultStaleTime}},aF=(0,o.K)(),aG=a(36654),p=a(41664),aH=a.n(p),aI=function(a){var b=a.slug,c=a.isOffer,d=a.isTchibo;return(0,an.HK)({slug:b,type:c?R.b.dealOffer:d?R.b.tchibo:R.b.deal})},aJ=a(20475),e=a(16971),aK=b.Z.country,aL=function(b){var c,d,f,a=b.item,l=b.countersData,m=b.buttonLabel,n=b.isOffer,o=b.isTchibo,g=b.imageRatio,h=aI({slug:a.slug,isOffer:n,isTchibo:o});a.externalredirect&&(h=a.externalredirect),a.alternativeSlug&&(h=a.alternativeSlug);var i=(0,J.useState)(""),p=i[0],r=i[1];(0,J.useEffect)(function(){var a=e.Z.isutmdata(),b=a?"?utmpass=yes".concat(a):"";r(b)},[]);var j=null==a?void 0:null===(c=a.offername)|| void 0===c?void 0:null===(d=c.data)|| void 0===d?void 0:null===(f=d.attributes)|| void 0===f?void 0:f.name,k=(0,J.useMemo)(function(){return j&&(null==l?void 0:l.find(function(b){var a;return null==b?void 0:null===(a=b.attributes)|| void 0===a?void 0:a.name.includes(j)}))},[l,j]),q="".concat(h).concat(p);return(0,I.jsx)(aH(),{href:q,children:(0,I.jsx)("a",{children:(0,I.jsxs)(as.Z,{className:"flex flex-col justify-between h-full transition-all hover:shadow-brand ",children:[(0,I.jsxs)("div",{children:[a.title&&(0,I.jsx)(aG.Z,{text:a.title,className:"".concat("de"===aK||"ast"===aK||"it"===aK?"text-accent":"en"===aK?"text-[#164194]":"text-brand"," "),type:"h4"}),(0,I.jsx)(ar.Z,{text:a.lead,className:"max-md:text-md"}),(0,I.jsx)("div",{className:"mt-5 overflow-hidden max-md:mt-3 rounded-xl",children:(0,I.jsx)(ae.ZP,{image:a.image,layout:"responsive",objectFit:"cover",width:g?200:void 0,height:g?200/g:void 0})}),k&&(0,I.jsx)("div",{className:"mt-5 max-md:mt-3",children:(0,I.jsx)(aJ.Z,{product:j,resultdata:k,counting:a.dealCounters,dealviewcount:a.dealviewcount,types:"list"})}),(0,I.jsx)(ar.Z,{className:"font-bold max-md:text-md",text:a.description})]}),(0,I.jsxs)("div",{className:"flex flex-col items-center justify-between space-y-5 max-md:space-y-3 md:flex-row md:items-end",children:[(0,I.jsx)(at,{price:a.price}),(0,I.jsx)(af.z,{intent:"outline",slim:!0,className:"w-full md:w-auto max-md:mt-3",children:m})]})]})})})},aM=function(a){var b=a.children;return(0,I.jsx)("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-10 max-md:gap-5",children:b})},aN=function(c,d,b){var a=c.attributes;if(a.publishedAt)return d?(!a.settings.showDealOnLM||!!b)&& !1!==a.settings.showOnDealsOnSiteOverview:(!a.settings.showDealOnLM||!!b)&& !1!==a.settings.showOnDealsOverview;return!1},aO=function(b){var a=b.attributes;return!!a.publishedAt&& !0===a.settings.showDealOnLM};function aP(a){var c=a.items,g=a.buttonLabel,d=a.isOffer,h=a.isTchibo,e=a.allowLM,i=(0,S.a)({queryKey:T.Z.deals.counters(),queryFn:(0,n.Z)(m().mark(function a(){var b;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,U.Z.fetch("/offernames",{populate:"*",pagination:{page:1,pageSize:150},locale:aF});case 2:if((b=a.sent).data){a.next=5;break}throw Error("No_Offer");case 5:return a.abrupt("return",b.data);case 6:case"end":return a.stop()}},a)})),staleTime:b.Z.defaultStaleTime}),f=(0,J.useMemo)(function(){return c.filter(function(a){return aN(a,d,e)})},[c,d,e]);return(0,I.jsx)(I.Fragment,{children:f.map(function(a,b){return(0,I.jsx)(aL,{imageRatio:1.6,buttonLabel:g,countersData:i.data,isOffer:d,isTchibo:h,item:a.attributes},b)})})}var aQ=function(a){var c=a.title,b=a.items,f=a.buttonLabel,g=a.lastMinuteTitle,h=a.allcasetitle,i=a.isOffer,e=a.isTchibo,d=(0,J.useMemo)(function(){return b.f
1ilter(function(a){return aO(a)})},[b]);return(0,I.jsxs)(I.Fragment,{children:[d.length>0&&g&&(0,I.jsx)(aG.Z,{text:g,className:"max-md:mb-5 ".concat(c&&"mt-5 md:mb-12"),type:"h1"}),(null==d?void 0:d.length)>0&&(0,I.jsx)(aM,{children:(0,I.jsx)(aP,{isOffer:i,buttonLabel:f,items:d,isTchibo:e,allowLM:!0})}),b.length>0&&!c&&h&&(0,I.jsx)(aG.Z,{text:h,className:"mt-10 mb-10 max-md:mb-5",type:"h1"}),!e&&b.length>0&&c&&(0,I.jsx)(aG.Z,{text:c,className:"mt-10 mb-10 max-md:mb-5",type:"h1"}),(null==b?void 0:b.length)>0&&(0,I.jsx)(aM,{children:(0,I.jsx)(aP,{isOffer:i,buttonLabel:f,items:b,isTchibo:e,allowLM:!1})})]})},aR=function(a){var b=new Set;return a.map(function(a){var c,d;return(0,aD.Z)((0,H.Z)({},a),{attributes:(0,aD.Z)((0,H.Z)({},a.attributes),{deals_details:{data:(null===(c=a.attributes.deals_details)|| void 0===c?void 0:null===(d=c.data)|| void 0===d?void 0:d.filter(function(a){return!b.has(a.id)&&(b.add(a.id),!0)}))||[]}})})})},aS=function(a){var b=a.types,c=a.buttonLabel,d=a.lastMinuteTitle,e=a.allcasetitle,f=a.isOffer,g=a.isTchibo,h=(0,J.useMemo)(function(){return aR(b)},[b]),i=h.flatMap(function(a){return a.attributes.deals_details.data});return(0,I.jsx)("div",{className:"flex flex-col space-y-12",children:(0,I.jsx)(aQ,{isOffer:f,buttonLabel:c,lastMinuteTitle:d,allcasetitle:e,title:"",items:i||[],isTchibo:g})})},aT=function(a){var b,d,f=a.isOffer,g=a.buttonLabel,h=a.lastMinuteTitle,i=a.allcasetitle,j=a.typeId,k=a.isTchibo,e=(d=j,(0,S.a)(aE(d))),c=e.data,l=e.isLoading;return l?(0,I.jsx)("div",{className:"h-[630px] w-20",children:(0,I.jsx)(ah.Z,{})}):c?(0,I.jsx)(aQ,{isOffer:f,buttonLabel:g,lastMinuteTitle:h,title:c.attributes.title,items:(null===(b=c.attributes.deals_details)|| void 0===b?void 0:b.data)||[],isTchibo:k,allcasetitle:i}):null},aU=function(a){var b=a.typeId,c=a.buttonLabel,d=a.lastMinuteTitle,e=a.allcasetitle,h=a.types,f=a.isOffer,g=a.isTchibo;return null==b?(0,I.jsx)(aS,{isOffer:f,buttonLabel:c,lastMinuteTitle:d,types:h,isTchibo:g,allcasetitle:e}):(0,I.jsx)(aT,{typeId:b,buttonLabel:c,lastMinuteTitle:d,isOffer:f,isTchibo:g,allcasetitle:e})},aV=b.Z.country,aW=function(g){var b=(0,aw.Z)({},g).isTchibo,c=(0,J.useState)(null),d=c[0],h=c[1],e=(0,M.Z)("deals-overview");if(!e.data)return null;var a=e.data,f=a.deal_types;return(0,I.jsxs)("div",{className:"tailwind",children:[(0,I.jsx)(ac.Z,{seo:null==a?void 0:a.seo}),(0,I.jsxs)("div",{className:"".concat(!b&&"bg-fixed bg-repeat bg-glasses-pattern"),children:[(0,I.jsx)(ax.Z,(0,H.Z)({},a.heroBanner)),"de"!==aV&&"pl"!==aV&&(0,I.jsx)(aC,{data:a,selected:d,setSelected:h,types:f.data}),(0,I.jsx)("div",{className:"container mt-5 md:mt-10",children:(0,I.jsx)(aU,{buttonLabel:a.buttonLabel||"Deal anschauen",lastMinuteTitle:a.lastMinuteTitle||"",allcasetitle:a.allcasetitle||"",typeId:d,types:f.data,isTchibo:b})}),a.components&&!b&&(0,I.jsx)("div",{className:"py-10 max-md:py-5",children:(0,I.jsx)(aa.Z,{blocks:a.components})})]})]})},aX=function(){var b=(0,J.useState)(null),c=b[0],f=b[1],d=(0,M.Z)("offers-overview");if(!d.data)return null;var a=d.data,e=a.deal_types;return(0,I.jsxs)("div",{className:"tailwind",children:[(0,I.jsx)(ac.Z,{seo:null==a?void 0:a.seo}),(0,I.jsx)(ax.Z,(0,H.Z)({},a.heroBanner)),(0,I.jsx)(aC,{selected:c,data:a,setSelected:f,types:e.data}),(0,I.jsx)("div",{className:"container my-10",children:(0,I.jsx)(aU,{buttonLabel:a.buttonLabel,lastMinuteTitle:a.lastMinuteTitle||"",allcasetitle:a.allcasetitle||"",typeId:c,isOffer:!0,types:e.data})})]})},aY=function(a){var b=a.isList,c=a.isOffer,d=a.isTchibo;return c&&b?(0,I.jsx)(aX,{}):b?(0,I.jsx)(aW,{isTchibo:d}):(0,I.jsx)(av,(0,H.Z)({},a))},aZ=function(c){var a;return(0,S.a)((a=c,{queryFn:function(){return U.Z.articles.getDataBySlug(a)},queryKey:T.Z.articles.bySlug(a),staleTime:b.Z.defaultStaleTime}))},a$=a(21241),a_=a(2078),a0=a(88484),a1=function(a){var b=a.icon,c=a.title,d=a.information;return(0,I.jsxs)("div",{className:"mb-5",children:[(0,I.jsxs)("div",{className:"flex align-items-center",children:[!!b&&(0,I.jsx)("span",{className:"mr-1",children:b}),(0,I.jsx)("p",{className:"font-bold",children:c})]}),(0,I.jsx)("p",{children:d})]})},q=a(30381),r=a.n(q),a2=a(41125),a3=function(a){var e=a.publicationDate,f=a.categoryTitle,g=a.authorTitle,h=a.publishAT,b=a.blogCategory,c=a.articleAuthor,d=a.sidebarimage,i=a.sidebarimagelink;return(0,I.jsx)("aside",{className:"md:flex-1 md:block md:mt-3 md:pl-0",children:(0,I.jsxs)("div",{className:"md:pl-4",children:[(0,I.jsx)(a1,{title:f,information:b.data?b.data.attributes.name:"",icon:(0,I.jsx)(a$.Z,{color:a2.theme.extend.colors.brand,width:18})}),(0,I.jsx)(a1,{title:g,information:c.data?c.data.attributes.name:"",icon:(0,I.jsx)(a_.Z,{color:a2.theme.extend.colors.brand,width:18})}),(0,I.jsx)(a1,{title:h,information:r()(e).format("DD. MMMM YYYY"),icon:(0,I.jsx)(a0.Z,{color:a2.theme.extend.colors.brand,width:18})}),d&&(0,I.jsx)("div",{children:(0,I.jsx)(am.r,{href:i||"/",children:(0,I.jsx)(ae.ZP,{image:d,layout:"intrinsic"})})})]})})},a4=a(30115),a5=a(30800),a6=function(a){var c=a.Description,b=a.Image,d=a.Position;return(0,I.jsx)(a5.Z,{children:(0,I.jsxs)("div",{className:"flex flex-col gap-4 mt-5 mb-5 space-y-4 md:space-y-0 md:space-x-4 md:flex-row",children:[(0,I.jsx)(ar.Z,{text:c,className:"flex-row items-start flex-2 md:flex-col ".concat("Left"===d?"order-2":void 0)}),(0,I.jsx)("div",{className:"flex-row items-start flex-1 text-center md:flex-col",children:b&&(0,I.jsx)(ae.ZP,{image:b,layout:"intrinsic"})})]})})},a7=a(33400),a8=a(11623),a9=a(87388),ba=a(69220),bb=function(a){var b=a.element;return(0,I.jsx)(a5.Z,{children:(0,I.jsx)(ba.Z,{element:b})})},bc=a(90209),bd=function(b){var a=b.text;return(0,I.jsx)(bc.Z,{text:a,className:a.includes("<blockquote>")?"needBlockQuote":""})},be=function(a){var b=a.text;return(0,I.jsx)(a5.Z,{children:(0,I.jsx)("div",{className:"pt-2 pb-2",children:(0,I.jsx)(aG.Z,{text:b,type:"h3",className:"text-brand"})})})},bf=function(a){var b=a.image;return(0,I.jsx)(a5.Z,{children:(0,I.jsx)("div",{className:"py-3 md:py-5",children:(0,I.jsx)(ae.ZP,{image:b,layout:"intrinsic"})})})},bg=function(a){var b=a.leftImage,c=a.rightImage;return(0,I.jsx)(a5.Z,{children:(0,I.jsxs)("div",{className:"flex flex-col gap-8 md:flex-row md:gap-4",children:[(0,I.jsx)("div",{className:"-translate-x-[2rem] 
1sm:-translate-x-[4rem] md:translate-x-0 flex-1 flex",children:(0,I.jsx)(ae.ZP,{image:b,layout:"intrinsic"})}),(0,I.jsx)("div",{className:"translate-x-[2rem] sm:translate-x-[4rem] md:translate-x-0 flex-1 flex",children:(0,I.jsx)(ae.ZP,{image:c,layout:"intrinsic"})})]})})},bh=function(a){var b=a.image,c=a.imageLink;return(0,I.jsx)(a5.Z,{children:(0,I.jsx)("div",{className:"py-3 md:py-5",children:(0,I.jsx)(am.r,{href:c||"/",children:(0,I.jsx)(ae.ZP,{image:b,layout:"intrinsic"})})})})},bi=function(b){var a=b.optiservxcta;return(0,I.jsx)("div",{className:"container mx-auto",children:a&&(0,I.jsx)("div",{className:"".concat("Center"===a.ctaAlign?"flex justify-center items-center":"".concat("Right"===a.ctaAlign?"flex justify-end items-center":"")),children:(0,I.jsx)(af.z,{slim:!1,className:"".concat("Quarter"===a.ctaWidth?"md:w-1/4 max-md:w-full":"".concat("Half"===a.ctaWidth?"md:w-1/2 max-md:w-full":"")),fullWidth:!1,onClick:function(){console.log("Click CTA")},intent:"".concat("Primary-Button"===a.CTALayout?"primary":"outline"),children:a.CTAText})})})},bj=a(91819),bk=a(93162),bl=b.Z.country,bm=function(b){var a=b.salescodecta;return(0,I.jsx)("div",{className:"container mx-auto",children:a&&(0,I.jsx)("div",{className:"".concat("Center"===a.ctaAlign?"flex justify-center items-center":"".concat("Right"===a.ctaAlign?"flex justify-end items-center":"")),children:(0,I.jsx)(af.z,{slim:!1,className:"".concat("Quarter"===a.ctaWidth?"md:w-1/4 max-md:w-full":"".concat("Half"===a.ctaWidth?"md:w-1/2 max-md:w-full":"")),fullWidth:!1,onClick:function(){if(void 0!==(0,_.getCookie)("jackysalecode")){var b={};b.type=2,b.storeid=(0,_.getCookie)("jackystore"),b.username=(0,_.getCookie)("dispname"),(0,aj.vV)(bl,"tbl_codecount",b);var a=new bj.ZP,e=JSON.parse("".concat((0,_.getCookie)("jackysalecode")));a.setFontSize(13);for(var f=1,c=0;c<50;c+=1)a.text(e[c],10,5.5*f),f+=1;a.addPage();for(var g=1,d=50;d<100;d+=1)a.text(e[d],10,5.5*g),g+=1;var h=a.output("blob");(0,bk.saveAs)(h,"steinercodes.pdf")}},intent:"".concat("Primary-Button"===a.CTALayout?"primary":"outline"),children:a.CTAText})})})},bn=function(c){var a=c.videourl,e=c.videoHeight,f=c.videoWidth,d=a;if(null===a)return null;if(""!==a){var b=(null==a?void 0:a.split("?"))[0].split("/");d=b.length>=5?"https://player.vimeo.com/video/".concat(b[3],"?h=").concat(b[4],"&loop=1"):"https://player.vimeo.com/video/".concat(b[3],"?loop=1")}return(0,I.jsx)("div",{className:"flex items-center justify-start mb-5",children:d&&(0,I.jsx)("iframe",{title:"video",style:{width:f||"650px",height:e||"375px"},className:"max-md:max-h-[215px]",src:d,allowFullScreen:!0})})},bo=function(b){var a=b.block;switch(a.__component){case"article.header-article":return(0,I.jsx)(be,(0,H.Z)({},a));case"article.description-article":return(0,I.jsx)(bd,(0,H.Z)({},a));case"article.image-article":return(0,I.jsx)(bf,(0,H.Z)({},a));case"article.two-columns-image-article":return(0,I.jsx)(bg,(0,H.Z)({},a));case"article.icon-check-list-article":return(0,I.jsx)(bb,(0,H.Z)({},a));case"basic.cta-button":return(0,I.jsx)(a4.Z,(0,H.Z)({},a));case"article.image-link":return(0,I.jsx)(bh,(0,H.Z)({},a));case"repeated-design.desc-image-left-right":return(0,I.jsx)(a6,(0,H.Z)({},a));case"basic.vedio-embed":return(0,I.jsx)(a7.Z,(0,H.Z)({},a));case"repeated-design.default-data":return(0,I.jsx)(a8.Z,(0,H.Z)({},a));case"article.vimeo-video":return(0,I.jsx)(bn,(0,H.Z)({},a));case"basic.iframecall":return(0,I.jsx)(a9.Z,(0,H.Z)({},a));case"article.optiservxcta":return(0,I.jsx)(bi,(0,H.Z)({},a));case"article.salescodecta":return(0,I.jsx)(bm,(0,H.Z)({},a));default:return null}},bp=function(a){var b=a.content;return(0,I.jsx)(I.Fragment,{children:b.map(function(a,b){return(0,I.jsx)(bo,{block:a},b)})})},bq=function(a){var e=a.header,b=a.subHeader,c=a.showSubTitle,d=a.image;return(0,I.jsxs)(a5.Z,{children:[(0,I.jsx)(aG.Z,{text:e,type:"h1",className:"mb-3 text-brand"}),b&&(0,I.jsx)(aG.Z,{text:b,type:"h2",className:"mb-3 md:mb-5 !font-normal ".concat("desktop"===c?"max-md:hidden":"mobile"===c?"md:hidden":"")}),(0,I.jsx)("div",{className:"max-md:py-5",children:d&&(0,I.jsx)(ae.ZP,{image:d})})]})},br=a(59403),bs=function(c){var a=c.meta.pagination,b=a.page;if(b<a.pageCount)return b+1},bt=function(a){var c=(0,o.K)();return{queryFn:function(d){var b=d.pageParam;return U.Z.articles.getList(c,(0,aD.Z)((0,H.Z)({},a),{page:void 0===b?1:b}))},queryKey:T.Z.articles.listByLocale(c,a),getNextPageParam:bs,staleTime:b.Z.defaultStaleTime,keepPreviousData:!0}},bu=function(a){return(0,br.N)(bt(a))},s=function(a){var f=a.text,b=a.href,c=a.prefix,d=a.suffix,g=a.button,e="".concat(void 0===c?"< ":c).concat(f).concat(void 0===d?"":d);return g?(0,I.jsx)(af.z,{intent:"outline",href:b,children:e}):(0,I.jsx)(am.r,{className:"text-brand text-sm mb-5 block",href:b,children:e})},bv=function(a){var b=a.text,c=a.type,d=a.button,e=(0,an.XG)({type:c});return b?(0,I.jsx)(s,{button:d,href:e,text:b}):null},bw=s,bx=function(a){var b,c,f=a.publicationDate,g=a.publishedAt,h=a.nextLabel,i=a.button,d=a.type,j=bu({filters:{publicationDate:f,publishedAt:g},pageSize:1,type:d}),e=null===(c=null===(b=j.data)|| void 0===b?void 0:b.pages[0].data[0])|| void 0===c?void 0:c.attributes.slug,k=(0,an.HK)({type:d,slug:e||""});return e?(0,I.jsx)(bw,{button:i,prefix:"",suffix:" >",text:h,href:k}):null},by=function(a){var f=a.publicationDate,g=a.publishedAt,b=a.backLabel,c=a.nextLabel,d=a.type,e=a.buttons;return(0,I.jsxs)("div",{className:"col-span-4 flex flex-row justify-between mt-5",children:[b&&(0,I.jsx)(bv,{button:e,type:d,text:b}),c&&(0,I.jsx)(bx,{nextLabel:c,type:d,button:e,publishedAt:g,publicationDate:f})]})},bz=a(82670),bA=a(66250),h={en:"en-GB"}[b.Z.locale]||b.Z.locale,bB={short:new Intl.DateTimeFormat(h,{dateStyle:"short"}).format,long:new Intl.DateTimeFormat(h,{dateStyle:"long"}).format},bC=function(b){var c=arguments.length>1&& void 0!==arguments[1]?arguments[1]:"short";if(!b)return"";try{var a,d=(a=b)?(0,bz.Z)(a,Date)?a:(0,bA.Z)(a):new Date;return(0,bB[c])(d)}catch(e){return""}};new Intl.DateTimeFormat(b.Z.locale,{month:"2-digit"}).format,new Intl.DateTimeFormat(b.Z.locale,{dateStyle:"long"}).format;var bD=function(a){var b=a.date,c=a.className,d=a.formatType,e=(0,J.useMemo)(function(){return bC(b,d)},[b,d]);return(0,I.jsx)("span",{className:c,children:e})},bE=a(97055),bF=function(c){var b,d=c.article,e=c.label,f=(0,an.HK)({type:R.b.blogArticle,slug:d.attributes.slug}),a=d.attributes,g=a.image,h=a.article_author,i=a.header,j=a.publicationDate;return(0,I.jsx)(am.r,{href:f,className:"flex",children:(0,I.jsxs)(as.Z,{className:"flex flex-col justify-between",children:[(0,I.jsxs)("div",{children:[(0,I.jsx)("div",{className:"h-[178px] relative",children:(0,I.jsx)(ae.ZP,{objectFit:"cover",layout:"fill",image:g})}),(0,I.jsxs)("div",{className:"text-sm mt-2 mb-1 text-reset",children:[null===(b=h.data)|| void 0===b?void 0:b.attributes.name," - ",(0,I.jsx)(bD,{formatType:"long",date:j})]}),(0,I.jsx)("div",{className:"text-base font-bold",children:i})]}),e&&(0,I.jsx)("div",{className:"flex justify-center mt-10",children:(0,I.jsx)(af.z,{className:"",intent:"outline",children:e})})]})})}
1,bG=function(a){var b,c=a.label,f=a.itemLabel,d=a.current,e=bu({pageSize:3,type:R.b.blogArticle,filters:{query:{slug:{$ne:d}}}});return(0,I.jsxs)(bE.Z,{background:"gray",children:[(0,I.jsx)(ad.Z,{size:"h2",children:c}),(0,I.jsx)("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4 mt-4",children:null===(b=e.data)|| void 0===b?void 0:b.pages[0].data.map(function(a){return(0,I.jsx)(bF,{label:f,article:a},a.attributes.slug)})})]})},bH=function(f){var c=f.slug,d=aZ({slug:c,type:"blogArticle"}),a=(0,M.Z)("blog-detail").data;if(!d.data)return null;var b=d.data.attributes,g=b.header,h=b.subHeader,i=b.image,j=b.contentComponent,e=b.publicationDate,k=b.sidebarimage,l=b.sidebarimagelink,m=b.blog_category,n=b.article_author,o=b.seo;return(0,I.jsxs)("div",{className:"tailwind",children:[(0,I.jsx)(ac.Z,{seo:o}),(0,I.jsx)(ab.Z,{text:null==a?void 0:a.banderole}),(0,I.jsx)($,{before:(0,I.jsx)(by,{type:R.b.blogArticle,backLabel:null==a?void 0:a.backLabel,nextLabel:null==a?void 0:a.nextLabel,publicationDate:e}),after:(0,I.jsx)(bG,{itemLabel:null==a?void 0:a.latestReadMoreLabel,current:c,label:null==a?void 0:a.latestPostsLabel}),aside:(0,I.jsx)(a3,{publicationDate:e,blogCategory:m,articleAuthor:n,categoryTitle:null==a?void 0:a.categoryTitle,authorTitle:null==a?void 0:a.authorTitle,publishAT:null==a?void 0:a.publishAT,sidebarimage:k,sidebarimagelink:l}),children:(0,I.jsxs)("main",{className:"mb-5",children:[(0,I.jsx)(bq,{header:g,subHeader:h,image:i}),(0,I.jsx)(bp,{content:j})]})})]})},bI=function(c){var a;return(0,S.a)((a=c,{queryFn:function(){return U.Z.jackys.getDataBySlug(a)},queryKey:T.Z.jackys.bySlug(a),staleTime:b.Z.defaultStaleTime}))},bJ=function(a){var b=a.icon,c=a.title,d=a.information;return(0,I.jsxs)("div",{className:"mb-5",children:[(0,I.jsxs)("div",{className:"flex align-items-center",children:[!!b&&(0,I.jsx)("span",{className:"mr-1",children:b}),(0,I.jsx)("p",{className:"font-bold",children:c})]}),(0,I.jsx)("p",{children:d})]})},t=a(25675),bK=a.n(t),bL=a(60202),u=a(5152),v=a.n(u),bM=a(18347),bN=v()(function(){return Promise.all([a.e(249),a.e(171)]).then(a.bind(a,57171))},{loadableGenerated:{webpack:function(){return[57171]}},ssr:!1}),bO=function(d){var e,f=d.onClose,a=(0,J.useState)(),b=a[0],k=a[1],l=(0,J.useRef)(!1),c=(0,J.useState)(420),g=c[0],o=c[1],h=(0,J.useRef)(null),p=(0,J.useRef)(420);(0,J.useEffect)(function(){k((0,bM.Z)()),window.innerWidth<=768&&o(375)},[]);var i=(0,J.useCallback)(function(){k(void 0),setTimeout(function(){return k((0,bM.Z)())},0)},[]),j=(0,J.useCallback)(function(){f()},[f]);return((0,J.useEffect)(function(){var a=function(b){if(l.current){var c=window.innerWidth<=768?375:420,d=window.innerWidth-b.clientX-24,a=Math.max(c,Math.min(d,window.innerWidth-48));p.current=a,h.current&&(h.current.style.width="".concat(a,"px"))}},b=function(){l.current=!1};return window.addEventListener("mousemove",a),window.addEventListener("mouseup",b),function(){window.removeEventListener("mousemove",a),window.removeEventListener("mouseup",b)}},[]),b)?(0,I.jsxs)("div",{ref:h,style:{position:"fixed",bottom:"24px",right:"24px",width:"".concat(g,"px"),maxWidth:"calc(100vw - 48px)",transition:"none",height:"calc(100% - 50px)",maxHeight:"735px",zIndex:9999,display:"flex",flexDirection:"column",backgroundColor:"#ffffff",borderRadius:"16px",boxShadow:"0px 12px 64px 0px rgba(62, 47, 89, 0.24)",overflow:"hidden",boxSizing:"border-box"},children:[(0,I.jsx)("div",{onMouseDown:function(a){a.preventDefault(),a.stopPropagation(),l.current=!0},style:{position:"absolute",top:"50%",left:"4px",transform:"translateY(-50%)",width:"16px",height:"56px",display:"flex",alignItems:"center",justifyContent:"center",cursor:"ew-resize",zIndex:99999,borderRadius:"999px",background:"rgba(0,0,0,0.06)",userSelect:"none"},children:(0,I.jsx)("div",{style:{display:"flex",flexDirection:"column",gap:"4px"},children:[1,2,3].map(function(a){return(0,I.jsx)("div",{style:{width:"4px",height:"4px",borderRadius:"50%",background:"#666"}},a)})})}),(0,I.jsxs)("div",{style:{boxSizing:"border-box",height:"68px",width:"100%",background:"linear-gradient(135deg, #5a9a1f 0%, #76b82a 60%, #8fd435 100%)",borderRadius:"16px 16px 0 0",display:"flex",alignItems:"center",padding:"0 20px",gap:"12px",position:"relative",overflow:"hidden",zIndex:10},children:[(0,I.jsx)("div",{style:{position:"absolute",right:"-20px",top:"-20px",width:"80px",height:"80px",borderRadius:"50%",background:"rgba(255,255,255,0.07)"}}),(0,I.jsx)("div",{style:{position:"absolute",right:"20px",bottom:"-30px",width:"100px",height:"100px",borderRadius:"50%",background:"rgba(255,255,255,0.05)"}}),(0,I.jsx)("div",{style:{width:"38px",height:"38px",borderRadius:"10px",background:"rgba(255,255,255,0.22)",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0},children:(0,I.jsxs)("svg",{width:"22",height:"22",viewBox:"0 0 24 24",fill:"none",children:[(0,I.jsx)("path",{d:"M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z",stroke:"white",strokeWidth:"2"}),(0,I.jsx)("circle",{cx:"12",cy:"12",r:"3",stroke:"white",strokeWidth:"2"})]})}),(0,I.jsxs)("div",{children:[(0,I.jsx)("p",{style:{margin:0,fontSize:"1rem",fontWeight:600,color:"#fff"},children:"brillen.de"}),(0,I.jsx)("p",{style:{margin:0,fontSize:"0.75rem",color:"rgba(255,255,255,0.85)"},children:"AI Verkaufshelfer"})]}),(0,I.jsxs)("div",{style:{marginLeft:"auto",display:"flex",gap:"8px",zIndex:20},children:[(0,I.jsx)("button",{type:"button",onClick:i,style:{background:"rgba(255,255,255,0.2)",border:"none",borderRadius:"8px",padding:"6px 10px",color:"#fff",cursor:"pointer",fontSize:"16px"},title:"Chat neustarten",children:"\u21BB"}),(0,I.jsx)("button",{type:"button",onClick:j,style:{background:"rgba(255,255,255,0.2)",border:"none",borderRadius:"8px",padding:"6px 10px",color:"#fff",cursor:"pointer",fontSize:"16px"},title:"Chat schlie\xdfen",children:"\u2715"})]})]}),(0,I.jsx)(bN,{style:{boxSizing:"border-box",width:"100%",height:"100%",borderRadius:"0",border:"white"},inputAreaStyle:{fontSize:"1rem",minHeight:"80px",padding:"14px 16px"},textInput:{placeholder:{text:"Schreibe hier deine Nachricht..."}},messageStyles:{default:{shared:{outerContainer:{marginBottom:"15px"},innerContainer:{position:"relative",paddingTop:"40px",minWidth:"200px",display:"flex",flexDirection:"column"},bubble:{color:"black",fontSize:"1.15rem",padding:"12px 16px",lineHeight:"1.4"}},ai:{outerContainer:{alignItems:"flex-start"},innerContainer:{alignItems:"flex-start"},bubble:{backgroundColor:"#76b82a",maxWidth:"80%"}},user:{outerContainer:{alignItems:"flex-end"},innerContainer:{alignItems:"flex-end"},bubble:{backgroundColor:"lightgray"}}}},avatars:{ai:{src:"/Logo.png",styles:{container:{position:"absolute",top:"-4px",left:"0"},avatar:{width:"32px",height:"32px",borderRadius:"50%"}}},user:{src:"/emptyperson.jpg",styles:{container:{position:"absolute",top:"-4px",right:"0"},avatar:{width:"32px",height:"32px",borderRadius:"50%"}}}},names:{ai:{text:"brillen.de AI Verkaufshelfer",style:{position:"absolute",top:"4px",left:"42px",fontSize:"1rem",fontWeight:"600",color:"#333"}},user:{text:"Du",style:{position:"absolute",top:"4px",right:"42px",fontSize:"1rem",fontWeight:"600",color:"#333"}}},connect:{handler:(e=(0,n.Z)(m().mark(function a(c,d){var e,f,g,h,i,j,k,l;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,e=(0,aD.Z)((0,H.Z)({},c),{session_id:b}),a.next=4,(0,aj.nj)("de","aichat",e);case 4:g=(null==(f=a.sent)?void 0:f.text)||(null==f?void 0:f.message)||"Keine Antwort erhalten!",h=/https?:\/\/[^\s]+\.(?:png|jpeg|jpg|gif|webp|svg)/,(i=g.match(h))&&i.length>0?(j=g.replace(h,""),k=i.map(function(a){return'<img src="'.concat(a,'" alt="Bild" style="max-width:200
1px; max-height:200px; object-fit: contain; border-radius: 8px;" />')}).join(""),l='<div style="display: flex; flex-wrap: wrap; gap: 10px;">'.concat(k,"</div>"),""!==j.length?d.onResponse([{html:'<div style="margin-bottom: 10px; white-space: pre-wrap;">'.concat(j,"</div>")},{html:l},]):d.onResponse({html:l})):d.onResponse({text:g}),a.next=14;break;case 11:a.prev=11,a.t0=a.catch(0),d.onResponse({text:"Fehler beim Senden der Nachricht"});case 14:case"end":return a.stop()}},a,null,[[0,11]])})),function(a,b){return e.apply(this,arguments)})}},b)]}):null},bP=function(a){var g=a.publicationDate,h=a.categoryTitle,i=a.publishAT,b=a.jackyCategory,c=a.sidebarimage,j=a.sidebarimagelink,d=(0,J.useState)(!1),k=d[0],l=d[1],e=(0,J.useState)(!1),m=e[0],n=e[1],f=function(){n(!m)};return(0,I.jsx)("aside",{className:"md:flex-1 md:block md:mt-3 md:pl-0",children:(0,I.jsxs)("div",{className:"md:pl-4",children:[(0,I.jsx)(bJ,{title:h,information:(null==b?void 0:b.data)?b.data.attributes.name:"",icon:(0,I.jsx)(a$.Z,{color:a2.theme.extend.colors.brand,width:18})}),(0,I.jsx)(bJ,{title:i,information:r()(g).format("DD. MMMM YYYY"),icon:(0,I.jsx)(a0.Z,{color:a2.theme.extend.colors.brand,width:18})}),c&&(0,I.jsx)("div",{children:(0,I.jsx)(am.r,{href:j||"/",children:(0,I.jsx)(ae.ZP,{image:c,layout:"intrinsic"})})}),k&&(0,I.jsx)(bO,{onClose:function(){return l(!1)}}),(0,I.jsxs)("div",{onClick:function(){return l(!k)},className:"mt-1 max-md:mt-3 cursor-pointer gap-2 rounded-[36px] border border-[#750A4F] bg-white px-4 py-1 hover:border-[#750A4F] hover:bg-[#E5E5E5] inline-flex items-center",children:[(0,I.jsx)(bK(),{loader:bL.vg,src:"AICHATS.svg",alt:"",width:40,height:40,onMouseEnter:f,onMouseLeave:f}),(0,I.jsx)("span",{className:"leading-none text-accent whitespace-nowrap",children:"Produkt-KI-Chat"})]})]})})},bQ=function(a){var c=(0,o.K)();return{queryFn:function(){return U.Z.jackys.getList(c,a)},queryKey:T.Z.jackys.listByLocale(c,a),staleTime:b.Z.defaultStaleTime}},bR=function(a){return(0,S.a)(bQ(a))},bS=function(a){var b,c,f=a.publishedAt,g=a.nextLabel,h=a.button,d=a.type,i=bR({filters:{publishedAt:f},pageSize:1,type:d}),e=null===(c=null===(b=i.data)|| void 0===b?void 0:b.data[0])|| void 0===c?void 0:c.attributes.slug,j=(0,an.HK)({type:d,slug:e||""});return e?(0,I.jsx)(bw,{button:h,prefix:"",suffix:" >",text:g,href:j}):null},bT=function(a){var f=a.publishedAt,b=a.backLabel,c=a.nextLabel,d=a.type,e=a.buttons;return(0,I.jsxs)("div",{className:"flex flex-row justify-between col-span-4 mt-5",children:[b&&(0,I.jsx)(bv,{button:e,type:d,text:b}),c&&(0,I.jsx)(bS,{nextLabel:c,type:d,button:e,publishedAt:f})]})},bU=function(a){var e=a.header,b=a.subHeader,c=a.showSubTitle,d=a.image;return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(aG.Z,{text:e,type:"h1",className:"mb-3 text-brand"}),b&&(0,I.jsx)(aG.Z,{text:b,type:"h2",className:"mb-3 !font-normal ".concat("desktop"===c?"max-md:hidden":"mobile"===c?"md:hidden":"")}),(0,I.jsx)("div",{className:"max-md:py-5",children:d&&(0,I.jsx)(ae.ZP,{image:d})})]})},bV=function(a){var b=a.jacky,c=a.label,e=(0,an.HK)({type:R.b.jackys,slug:b.attributes.slug}),d=b.attributes,f=d.image,g=d.header;return(0,I.jsx)(am.r,{href:e,children:(0,I.jsxs)(as.Z,{className:"flex flex-col justify-between",children:[(0,I.jsxs)("div",{children:[(0,I.jsx)("div",{className:"h-[150px] relative overflow-hidden",children:(0,I.jsx)(ae.ZP,{objectFit:"cover",image:f})}),(0,I.jsx)("div",{className:"mt-2 text-base font-bold",children:g})]}),c&&(0,I.jsx)("div",{className:"flex justify-center mt-10",children:(0,I.jsx)(af.z,{className:"",intent:"outline",children:c})})]})})},bW=function(a){var b,c=a.label,f=a.itemLabel,d=a.current,e=bR({pageSize:3,type:R.b.jackys,filters:{query:{slug:{$ne:d},jacky_groups:{name:{$contains:(0,_.getCookie)("jackyusertype")}}}}});return(0,I.jsxs)(bE.Z,{background:"gray",children:[c&&(0,I.jsx)(aG.Z,{text:c,type:"h2",className:""}),(0,I.jsx)("div",{className:"grid grid-cols-1 gap-4 mt-4 md:grid-cols-3",children:null===(b=e.data)|| void 0===b?void 0:b.data.map(function(a,b){return b<=2&&(0,I.jsx)(bV,{label:f,jacky:a},a.attributes.slug)})})]})},bX=b.Z.country,bY=function(g){var c=g.slug,h=(0,k.useRouter)(),u=h.asPath,d=!0,v=(0,an.XG)({type:R.b.jackys});(0,J.useEffect)(function(){void 0===(0,_.getCookie)("jackylogin")&&"es"!==bX&&h.push("".concat(v,"?from=").concat(u))},[]);var e=bI({slug:c,type:"jackys"}),a=(0,M.Z)("jackys-detail").data;if(!e.data)return null;var b=e.data.attributes,i=b.header,j=b.title,l=b.image,m=b.information,n=b.publicationDate,o=b.sidebarimage,p=b.sidebarimagelink,q=b.jackys_category,r=b.jacky_groups,s=b.contentComponent,f="";void 0!==(0,_.getCookie)("jackyusertype")&&(f=(0,_.getCookie)("jackyusertype")),void 0===(0,_.getCookie)("jackyusertype")&&"es"===bX&&(f="no-login");var t=r.data.filter(function(a){return a.attributes.name===f});return 0===t.length&&(d=!1),(0,I.jsxs)("div",{className:"tailwind",children:[(0,I.jsx)(ab.Z,{text:null==a?void 0:a.banderole}),d?(0,I.jsx)($,{before:(0,I.jsx)(bT,{type:R.b.jackys,backLabel:null==a?void 0:a.backLabel,nextLabel:""}),after:(0,I.jsx)(bW,{itemLabel:null==a?void 0:a.latestReadMoreLabel,current:c,label:null==a?void 0:a.latestPostsLabel}),aside:(0,I.jsx)(bP,{publicationDate:n,categoryTitle:null==a?void 0:a.categoryTitle,jackyCategory:q,publishAT:null==a?void 0:a.publishAT,sidebarimage:o,sidebarimagelink:p}),children:(0,I.jsxs)("main",{className:"mb-5",children:[(0,I.jsx)(bU,{header:i,subHeader:j,image:l}),(0,I.jsx)(bc.Z,{text:m,className:"my-3"}),(0,I.jsx)(bp,{content:s})]})}):(0,I.jsx)($,{before:(0,I.jsx)(bT,{type:R.b.jackys,backLabel:null==a?void 0:a.backLabel,nextLabel:""}),after:!1,aside:!1,children:(0,I.jsx)("main",{className:"mb-5"})})]})},bZ=function(a){var f=a.publicationDate,g=a.pressReleasePDF,h=a.pressImg,k=a.publishAT,l=a.pressContact,m=a.pressText,n=a.downloadTitle,o=a.furtherlink,i=a.relatedLinks,j=void 0===i?[]:i,c=a.articleAuthor,d=g?(0,ae.V$)(g):null,e=h?(0,ae.V$)(h):null;return(0,I.jsx)("aside",{className:"mt-3 md:flex-1 md:block md:pl-0",children:(0,I.jsxs)("div",{className:"md:pl-4",children:[!!f&&(0,I.jsx)(a1,{title:k,information:r()(f).format("DD. MMMM YYYY")}),!!(null==c?void 0:c.email)&&(0,I.jsx)(a1,{title:l,information:c.email}),!!d&&(0,I.jsx)(a1,{title:m,information:(0,I.jsx)(af.z,{className:"mt-2",intent:"outline",slim:!0,href:"".concat(b.Z.baseApiUrl).concat(d.url),target:"_blank",download:d.name,children:"Zum Download"})}),!!e&&(0,I.jsx)(a1,{title:n,information:(0,I.jsx)(af.z,{className:"mt-2",intent:"outline",slim:!0,href:"".concat(b.Z.baseApiUrl).concat(e.url),target:"_blank",download:e.name,children:"Zum Download"})}),!!j.length&&(0,I.jsx)(a1,{title:o,information:(0,I.jsx)(I.Fragment,{children:j.map(function(a){return(0,I.jsx)(af.z,{className:"mt-2",intent:"outline",slim:!0,target:"_blank",href:a.url,children:a.text},a.text+a.url)})})})]})})}
1,b$=function(i){var c,d=aZ({slug:i.slug,type:"pressArticle"}),a=(0,M.Z)("press-detail").data;if(!d.data)return null;var b=d.data.attributes,j=b.header,k=b.subHeader,e=b.image,l=b.contentComponent,f=b.publishedAt,m=b.publicationDate,n=b.pressReleasePDF,g=b.relatedLinks,h=b.article_author,o=b.seo;return(0,I.jsxs)("div",{className:"tailwind",children:[(0,I.jsx)(ac.Z,{seo:o}),(0,I.jsx)(ab.Z,{text:null==a?void 0:a.banderole}),(0,I.jsx)($,{mobileAsideFirst:!0,cols:3,before:(0,I.jsx)(by,{type:R.b.pressArticle,backLabel:null==a?void 0:a.backLabel,nextLabel:null==a?void 0:a.nextLabel,publishedAt:f}),aside:(0,I.jsx)(bZ,{publicationDate:m,pressReleasePDF:n,pressImg:e,publishAT:null==a?void 0:a.publishAT,pressContact:null==a?void 0:a.pressContact,pressText:null==a?void 0:a.pressText,downloadTitle:null==a?void 0:a.downloadTitle,furtherlink:null==a?void 0:a.furtherlink,relatedLinks:null==g?void 0:g.relatedLink,articleAuthor:null==h?void 0:null===(c=h.data)|| void 0===c?void 0:c.attributes}),children:(0,I.jsxs)("main",{className:"mb-5",children:[(0,I.jsx)(bq,{header:j,subHeader:k,image:e}),(0,I.jsx)(bp,{content:l}),(0,I.jsx)(by,{type:R.b.pressArticle,buttons:!0,backLabel:null==a?void 0:a.backLabel,nextLabel:null==a?void 0:a.nextLabel,publishedAt:f})]})})]})},b_=a(3353),b0=function(a){var b=a.title,c=a.information;return(0,I.jsxs)("div",{className:"mb-5",children:[(0,I.jsx)("div",{className:"flex mb-3 align-items-center",children:(0,I.jsx)(ad.Z,{size:"xl",bold:!0,component:"h3",children:b})}),(0,I.jsx)("p",{children:c})]})},b1=function(a){var b=a.attentionDescription,c=a.attentionHeader;return(0,I.jsxs)("div",{className:"p-4 bg-accent-light mb-4",children:[(0,I.jsx)(ad.Z,{size:"xl",className:"text-accent font-medium mb-1",children:c}),(0,I.jsx)("p",{className:"text-accent",children:b})]})},b2=b.Z.country,b3=function(a){var c=a.contactHeader,d=a.contactDetails,b=void 0===d?"":d,e=a.attentionHeader,f=a.attentionDescription,g=a.photoDownloadHeader,h=a.photoDownloadDescription,i=a.photoDownloadButtonText,j=a.photoDownloadButtonUrl,k=a.pressNewsletterHeader,l=a.pressNewsletterDescription,m=a.pressNewsletterButtonText,n=a.pressNewsletterButtonUrl,p=b.match(/([a-zA-Z0-9._-]+@[a-zA-Z0-9._-]+\.[a-zA-Z0-9_-]+)/gi),o=b.split("\n").map(function(a){return -1!==((null==p?void 0:p.length)?a.indexOf(p[0]):-1)?(0,I.jsxs)(I.Fragment,{children:[a.split(" ").map(function(a){return a.includes(p[0])?(0,I.jsx)(am.r,{className:"font-bold text-brand",href:"mailto:".concat(a),children:a}):"".concat(a," ")}).map(function(a){return a}),(0,I.jsx)("br",{})]}):(0,I.jsxs)(I.Fragment,{children:[a,(0,I.jsx)("br",{})]})});return(0,I.jsx)("aside",{className:"md:flex-1 md:block md:mt-3 md:pl-0",children:(0,I.jsxs)("div",{className:"md:pl-4",children:[!!c&&!!b&&(0,I.jsx)(b0,{title:c,information:o}),!!f&&!!e&&(0,I.jsx)(b1,{attentionHeader:e,attentionDescription:f}),!!h&&!!g&&!!j&&!!i&&"de"===b2&&(0,I.jsx)(b0,{title:g,information:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("p",{className:"mb-4",children:h}),(0,I.jsx)(af.z,{className:"mt-2",intent:"outline",slim:!0,href:j,target:"_blank",children:i})]})}),!!m&&!!n&&!!k&&!!l&&"de"===b2&&(0,I.jsx)(b0,{title:k,information:(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("p",{className:"mb-4",children:l}),(0,I.jsx)(af.z,{className:"mt-2",intent:"outline",slim:!0,href:n,target:"_blank",children:m})]})})]})})},b4=function(a){var d=a.header,e=a.image,f=a.slug,g=a.publicationDate,b=a.label,c=void 0===b?"Read more":b,h=(0,an.HK)({type:"pressArticle",slug:f});return(0,I.jsxs)(am.r,{href:h,className:"flex flex-row py-2 border-t last:border-b md:py-8 md:px-8 md:space-x-7 hover:bg-gray-100",children:[(0,I.jsx)("div",{className:"w-[260px] h-[162px] flex-shrink-0 hidden md:block",children:(0,I.jsx)(ae.ZP,{objectFit:"cover",image:e,width:260,height:162})}),(0,I.jsxs)("div",{className:"flex flex-col w-full",children:[(0,I.jsx)(bD,{date:g}),(0,I.jsx)("p",{className:"flex-1 font-bold ",children:d}),(0,I.jsx)("div",{className:"flex flex-row justify-end hidden md:block ",children:(0,I.jsx)(af.z,{slim:!0,intent:"outline",className:"w-fit ",children:c})}),(0,I.jsx)("span",{className:"mt-3 font-bold text-accent md:hidden",children:c})]})]})},b5=function(a){var b=a.data,c=a.label;return(0,I.jsx)(I.Fragment,{children:b.map(function(a){return(0,I.jsx)(b4,(0,aD.Z)((0,H.Z)({},a.attributes),{label:c}),a.id)})})},b6=function(a){var d=a.header,e=a.image,b=a.publicationDate,f=a.subHeader,g=a.slug,c=a.label,h=(0,an.HK)({type:"pressArticle",slug:g});return(0,I.jsxs)("div",{children:[(0,I.jsx)(ae.ZP,{image:e}),b&&(0,I.jsx)(bD,{className:"block mt-3",date:b}),(0,I.jsx)(aG.Z,{text:d,type:"h3",className:"mt-3 text-brand"}),(0,I.jsx)("p",{className:"mt-4",children:f}),(0,I.jsx)(af.z,{slim:!0,href:h,className:"mt-5 w-fit",intent:"outline",children:void 0===c?"Read more":c})]})},b7=function(){var b,c,d=bu({type:"pressArticle"}),a=(0,M.Z)("press-overview").data;if(!(null===(b=d.data)|| void 0===b?void 0:b.pages)||!a)return null;var g=a.header,h=a.subheader,i=a.pressButtonText,j=a.allPressHeader,k=a.morePressButtonText,l=a.seo,e=d.data.pages,f=null===(c=e[0].data[0])|| void 0===c?void 0:c.attributes;return(0,I.jsxs)("div",{className:"tailwind",children:[(0,I.jsx)(ac.Z,{seo:l}),(0,I.jsxs)("div",{className:"container mb-4",children:[(0,I.jsx)(aG.Z,{text:g,type:"h1",className:"my-3 text-brand md:my-5"}),(0,I.jsxs)("div",{className:"flex flex-col-reverse my-4 gap-x-4 md:gap-x-0 md:gap-y-4 md:flex-row ",children:[(0,I.jsxs)("div",{className:"md:flex-[3_3_0%]",children:[(0,I.jsx)(aG.Z,{text:h,type:"h2",className:"!font-normal mb-3"}),f&&(0,I.jsx)(b6,(0,aD.Z)((0,H.Z)({},f),{label:i}))]}),(0,I.jsx)(b3,(0,H.Z)({},a))]}),(0,I.jsx)(aG.Z,{text:j,type:"h2",className:"my-3 md:my-5"}),e.map(function(a,b){return(0,I.jsx)(b5,{label:i,data:0===b?a.data.slice(1):a.data},b)}),d.hasNextPage&&(0,I.jsx)("div",{className:"flex justify-center mb-4",children:(0,I.jsxs)("button",{type:"button",className:"flex flex-col items-center p-4 text-accent w-fit",onClick:function(){return d.fetchNextPage()},children:[k,(0,I.jsx)(b_.Z,{className:"w-fit",width:40,height:40,strokeWidth:.5})]})})]})]})},b8=a(37535),b9=function(a){var c=a.components,b=a.image,d=a.imageLink;return(0,I.jsxs)(I.Fragment,{children:[b&&(0,I.jsx)(am.r,{href:d||"/",children:(0,I.jsx)(ae.ZP,{image:b})}),(0,I.jsx)("div",{className:"mb-3 md:mb-5"}),(0,I.jsx)(aa.Z,{blocks:c})]})},ca=a(71911),cb=a(30719),cc=function(a){var b=a.header,c=a.label,d=a.image,e=a.slug,f=(0,an.HK)({type:"blogArticle",slug:e});return(0,I.jsxs)("div",{className:"flex flex-col md:flex-row relative md:space-x-8 md:mx-[88px]",children:[(0,I.jsx)("div",{className:"flex-2",children:(0,I.jsx)(ae.ZP,{image:d})}),(0,I.jsxs)("div",{className:"flex flex-col items-center flex-1 py-4 md:items-start",children:[(0,I.jsx)(ad.Z,{component:"h3",color:"white",bold:!0,children:b}),(0,I.jsx)(af.z,{slim:!0,intent:"outlineInverted",href:f,className:"mt-5 w-fit",children:c})]})]})},cd=(0,d.j)("w-12 md:w-[80px] h-1 rounded-full hover:bg-white transition-all",{variants:{active:{true:"bg-white",false:"bg-gray-500"}}}),ce=function(a){var b=a.data,c=a.autoplayDelay,d=a.label,g=void 0===d?"Read more":d,f=(0,J.useRef)(null),e=(0,J.useState)(0),h=e[0],i=e[1],j=(0,J.useCallback)(function(b){var a;null===(a=f.current)|| void 0===a||a.swiper.slideTo(b)},[]);return(0,I.jsxs)("div",{children:[(0,I.jsx)(cb.tq,{ref:f,modules:[ca.W_,ca.pt],onSlideChange:function(a){i((a.activeIndex-1)%b.length)},autoplay:!!c&&{delay:1e3*c,pauseOnMouseEnter:!0,disableOnInteraction:!0},spaceBetween:0,slidesPerView:1,className:"hide-mobile-nav",style:{"--swiper-navigation-color":"#FFF"},loop:!0,centeredSlides:!0,navigation:!0,children:b.map(function(a,b){return(0,I.jsx)(cb.o5,{children:(0,I.jsx)(cc,(0,aD.Z)((0,H.Z)({},a.attributes),{label:g}))},b)})}),(0,I.jsx)("div",{className:"flex flex-row justify-center mt-5 space-x-4",children:b.map(function(b,a){return(0,I.jsx)("button",{type:"button",className:cd({active:a===h}),onClick:function(){j(a+1)}},a)})})]})},cf=a(83566),cg=a(7266),ch=a(89262),ci=a(13245),cj=a(82911),ck=(0,d.j)("text-base flex-1 p-2 cursor-pointer flex flex-row gap-2 items-center justify-between",{variants:{selected:{true:""},active:{true:"bg-accent"},disabled:{true:"text-gray-400"}},compoundVariants:[{selected:!0,active:!1,class:"text-accent bg-gray-50"},{selected:!1,active:!0,class:"text-white"},{selected:!0,active:!0,class:"text-white"},]}),cl=(0,d.j)("w-full text-base font-regular  text-start p-2 flex flex-row justify-end items-center ",{variants:{selected:{true:"text-accent font-bold",false:"text-gray-800"}}}),cm=(0,d.j)("transition ml-3 text-accent",{variants:{open:{true:"rotate-180"}}}),cn=function(a){var b=a.items,c=a.value,f=a.placeholder,d=a.onChange,e=(0,J.useMemo)(function(){return b.f
1ind(function(a){return a.id===c})},[b,c]);return(0,I.jsxs)(ch.R,{value:c,onChange:d,as:"div",className:"space-y-1 relative min-w-[200px] text-reset",children:[(0,I.jsx)(ch.R.Button,{className:cl({selected:!!e}),children:function(a){var b=a.open;return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("span",{children:(null==e?void 0:e.name)||f||""}),(0,I.jsx)(ci.Z,{className:cm({open:b}),width:20,height:20})]})}}),(0,I.jsx)(ch.R.Options,{className:"absolute z-10 w-full right-0 md:w-full bg-white max-h-60 rounded-md border text-base shadow overflow-auto focus:outline-none ",children:b.map(function(a){return(0,I.jsx)(ch.R.Option,{value:a.id,disabled:a.disabled,children:function(b){return(0,I.jsxs)("span",{className:ck(b),children:[a.name,b.selected&&(0,I.jsx)(cj.Z,{width:20,height:20})]})}},"".concat(a.id))})})]})},co=function(a){var b=a.categories,c=a.activeCategoryId,d=a.setActiveCategoryId,e=a.query,h=a.setQuery,f=a.filterLabel,g=a.searchPlaceholder;return(0,I.jsxs)("div",{className:"w-full flex bg-brandLightColor justify-between items-center text-base p-4 flex-wrap md:flex-nowrap gap-x-3 gap-y-3",children:[(0,I.jsxs)("div",{className:"flex items-center ",children:[(0,I.jsx)("span",{className:"text-gray2 pr-2",children:f}),(0,I.jsx)("span",{className:"pt-1",children:(0,I.jsx)(cf.Z,{color:a2.theme.extend.colors.gray2,width:16})})]}),(0,I.jsx)("div",{className:"lg:hidden",children:(0,I.jsx)(cn,{value:c,onChange:d,items:b.map(function(a){return{id:a.id,name:a.attributes.name}})})}),(0,I.jsx)("div",{className:"hidden lg:block",children:b.map(function(a){return(0,I.jsx)("button",{type:"button",onClick:function(){return d(a.id)},className:"text-accent py-3 my-3 flex-1 text-center mx-4 ".concat(a.id===c?"font-bold border-b-2 border-accent":""),children:a.attributes.name},a.id)})}),(0,I.jsxs)("div",{className:"relative items-center w-full md:flex-[2]",children:[(0,I.jsx)("input",{value:e,onChange:function(a){return h(a.target.value)},placeholder:g,type:"text",className:"form-input pr-10 py-3 rounded placeholder:text-base placeholder:text-gray2 w-full"}),(0,I.jsx)(cg.Z,{color:a2.theme.extend.colors.accent,width:35,className:"absolute my-auto top-0 bottom-0 right-1"})]})]})},cp=function(c){var a=c.desktop,b=c.mobile;return(0,I.jsxs)("div",{className:"bg-gradient-to-r from-[#b3b56d] to-[#b3b56d] via-accent absolute left-0 right-0 bottom-0 top-0 -z-10",children:[!!a&&(0,b8.Z)(a)&&(0,I.jsx)("div",{className:"hidden md:block w-full h-full",children:(0,I.jsx)(ae.ZP,{objectFit:"cover",layout:"fill",image:a})}),b&&(0,b8.Z)(b)&&(0,I.jsx)("div",{className:"block md:hidden w-full h-full",children:(0,I.jsx)(ae.ZP,{objectFit:"cover",layout:"fill",image:b})})]})},cq=a(828),w=a(23493),cr=a.n(w),cs=function(){if(void 0!==window.pageYOffset)return window.pageYOffset;var b=document.body,a=document.documentElement;return(a=a.clientHeight?a:b).scrollTop},ct=function(){var b=document.body,a=document.documentElement;return Math.max(b.scrollHeight,b.offsetHeight,a.clientHeight,a.scrollHeight,a.offsetHeight)},cu=function(a){var d=a.loading,e=a.onNext,b=a.enabled,f=void 0===b||b,c=a.offset,g=void 0===c?500:c;(0,J.useEffect)(function(){if(f&&!d){var a=cr()(function(){if(!d){var a=cs();if(ct()-window.innerHeight-a<g)try{e()}catch(b){}}},500);return window.addEventListener("scroll",a),function(){return window.removeEventListener("scroll",a)}}},[f,d,e,g])},cv=a(24697),cw=a(41113),cx=a(89871),cy=a(21809),cz=function(a){var b=a.icon,c=a.children;return(0,I.jsxs)("div",{className:"flex flex-row space-x-1",children:[b,c]})},cA=function(a){var b,c,d,e,j=a.header,h=a.image,k=a.slug,l=a.subHeader,m=a.publicationDate,f=a.blog_category,g=a.article_author,i=a.label,n=(0,an.HK)({type:"blogArticle",slug:k});return(0,I.jsxs)(am.r,{href:n,className:"flex flex-col py-2 border-b lg:py-8 lg:flex-row lg:space-x-7 hover:bg-gray-100",children:[(0,I.jsx)("div",{className:"hidden lg:block w-[398px] h-[288px] flex-shrink-0",children:(0,I.jsx)(ae.ZP,{objectFit:"cover",image:h,width:260,height:162})}),(0,I.jsx)(ae.ZP,{className:"lg:hidden",objectFit:"cover",image:h,width:260,height:162}),(0,I.jsxs)("div",{className:"flex flex-col break-words lg:pr-7",children:[(0,I.jsxs)("div",{className:"flex-1",children:[(0,I.jsx)(aG.Z,{text:j,type:"h4",className:"text-brand !font-normal"}),(0,I.jsxs)("div",{className:"flex flex-row flex-wrap justify-start mt-2 text-gray-400 gap-x-5",children:[!!(null==g?void 0:null===(b=g.data)|| void 0===b?void 0:null===(c=b.attributes)|| void 0===c?void 0:c.name)&&(0,I.jsx)(cz,{icon:(0,I.jsx)(cw.Z,{className:"w-4 text-gray-400"}),children:(0,I.jsx)("p",{className:"text-gray-400 max-md:text-md",children:g.data.attributes.name})}),(0,I.jsx)(cz,{icon:(0,I.jsx)(cx.Z,{className:"w-4 text-gray-400"}),children:(0,I.jsx)(bD,{className:"text-gray-400 max-md:text-md",date:m,formatType:"short"})}),!!(null==f?void 0:null===(d=f.data)|| void 0===d?void 0:null===(e=d.attributes)|| void 0===e?void 0:e.name)&&(0,I.jsx)(cz,{icon:(0,I.jsx)(cy.Z,{className:"w-4 text-gray-400"}),children:(0,I.jsx)("p",{className:"text-gray-400 max-md:text-md",children:f.data.attributes.name})})]}),(0,I.jsx)("p",{className:"mt-5 line-clamp-4",children:l})]}),(0,I.jsx)("div",{className:"flex flex-row justify-end mt-3 ",children:(0,I.jsx)(af.z,{slim:!0,intent:"outline",className:"w-[90%] mx-auto md:mx-0 md:w-fit ",children:void 0===i?"Read more":i})})]})]})},cB=function(a){var b=a.data,c=a.label,d=a.skipIds;return(0,I.jsx)(I.Fragment,{children:b.map(function(a){return(null==d?void 0:d.includes(a.id))?null:(0,I.jsx)(cA,(0,aD.Z)((0,H.Z)({},a.attributes),{label:c}),a.id)})})},cC=function(d){var e,f=d.search,g=d.categoryId,l=d.skipIds,h=(0,cq.Z)((0,cv.Nr)(f,b.Z.searchDebounce),1),i=h[0],a=bu({type:"blogArticle",filters:{search:i,categoryId:g}}),j=(0,M.Z)("blog-overview"),c=j.data;if(cu({loading:a.isLoading,enabled:!!a.hasNextPage,onNext:a.fetchNextPage}),!(null===(e=a.data)|| void 0===e?void 0:e.pages))return null;var k=a.data.pages;return(0,I.jsxs)(I.Fragment,{children:[(null==c?void 0:c.header)&&(0,I.jsx)(aG.Z,{text:null==c?void 0:c.header,type:"h2",className:""}),a.isLoading&&(0,I.jsx)(ah.Z,{}
1),k.map(function(a,b){return(0,I.jsx)(cB,{skipIds:l,label:null==c?void 0:c.postButtonText,data:a.data},b)})]})},cD=function(a){var h=a.allCategoryName,i=a.filterName,j=a.inputSearchLabel,k=a.blogCategories,l=a.sliderBlogArticles,b=a.rightColumn,c=a.rightColumnImage,m=a.rightColImgLink,d=(0,J.useState)(null),e=d[0],n=d[1],f=(0,J.useState)(""),g=f[0],o=f[1],p=(0,J.useMemo)(function(){return[]},[l.data]),q=(null==b?void 0:b.length)||(0,b8.Z)(c);return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{className:"container flex mb-12 -mt-8 ",children:(0,I.jsx)(co,{query:g,setQuery:o,activeCategoryId:e,setActiveCategoryId:n,filterLabel:i,searchPlaceholder:j,categories:[{id:null,attributes:{name:h}},].concat((0,N.Z)(k.data))})}),(0,I.jsx)($,{mobileAsideFirst:!0,cols:3,aside:q&&(0,I.jsx)(b9,{image:c,imageLink:m,components:b}),children:(0,I.jsx)(cC,{skipIds:p,categoryId:e,search:g})})]})},cE=function(){var b=(0,M.Z)("blog-overview");if(!b.data)return null;var a=b.data;return(0,I.jsxs)("div",{className:"tailwind",children:[(0,I.jsx)(ac.Z,{seo:null==a?void 0:a.seo}),a.banderole&&(0,I.jsx)(ab.Z,{text:a.banderole}),(0,I.jsxs)("div",{className:"relative pt-5 pb-16 ",children:[(0,I.jsx)(cp,(0,H.Z)({},a.sliderBackground)),(0,I.jsx)("div",{className:"container flex my-4 gap-y-4 ",children:(0,I.jsx)("div",{className:"w-full ",children:(0,I.jsx)(ce,{data:a.sliderBlogArticles.data,label:a.sliderButtonText,autoplayDelay:a.autoplayDelay})})})]}),(0,I.jsx)(cD,(0,H.Z)({},a))]})},cF=a(31955),cG=b.Z.country,cH=function(a){var h,i=a.logintitle,j=a.logininfo,l=a.usernametitle,o=a.passwordtitle,p=a.loginbutton,q=a.type,b=(0,J.useState)(!1),r=b[0],z=b[1],c=(0,J.useState)(""),s=c[0],A=c[1],d=(0,J.useState)(""),t=d[0],B=d[1],e=(0,J.useState)(!1),u=e[0],C=e[1],f=(0,J.useState)(!1),v=f[0],D=f[1],g=(0,J.useState)(!1),w=g[0],E=g[1],x=(0,k.useRouter)(),F=x.query.from,G=(0,an.XG)({type:q}),y=(h=(0,n.Z)(m().mark(function a(){var b,c,d,e,f,g,h,i,j;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(""!==s){a.next=4;break}C(!0),a.next=14;break;case 4:if(""!==t){a.next=8;break}D(!0),a.next=14;break;case 8:return z(!0),b={username:s,password:t},a.next=12,(0,aj.nj)(cG,"jackylogincheck",b);case 12:1===(c=a.sent).code?(d=null==c?void 0:c.result[0],cF.Z.set("jackylogin","1",{expires:1}),cF.Z.set("jackyusertype",d.ptype,{expires:1}),cF.Z.set("jackystore",d.storeid,{expires:1}),cF.Z.set("dispname",s,{expires:1}),(null==c?void 0:c.salecode.length)>0&&(e=JSON.stringify(null==c?void 0:c.salecode),cF.Z.set("jackysalecode",e,{expires:1})),c.steiner99code.length>0&&(f=JSON.stringify(null==c?void 0:c.steiner99code),cF.Z.set("jackysteiner99code",f,{expires:1})),c.zerotariffacode.length>0&&(g=JSON.stringify(null==c?void 0:c.zerotariffacode),cF.Z.set("jackyzerotariffacode",g,{expires:1})),c.zerotariffbcode.length>0&&(h=JSON.stringify(null==c?void 0:c.zerotariffbcode),cF.Z.set("jackyzerotariffbcode",h,{expires:1})),c.doublepackcode.length>0&&(i=JSON.stringify(null==c?void 0:c.doublepackcode),cF.Z.set("jackydoublepackcode",i,{expires:1})),j=G,F&&(j=F),window.location.href=j,z(!1)):(E(!0),z(!1));case 14:case"end":return a.stop()}},a)})),function(){return h.apply(this,arguments)});return(0,I.jsxs)("div",{className:"tailwind",children:[r&&(0,I.jsx)(ah.Z,{}),(0,I.jsx)("div",{children:(0,I.jsxs)("div",{className:"container py-5 mx-auto text-center min-h-[300px]",children:[(0,I.jsx)("p",{className:"mb-5 text-lg font-medium md:text-h2",children:i}),(0,I.jsxs)("div",{className:"w-full mx-auto md:w-2/6",children:[(0,I.jsx)("input",{type:"text",name:"username",id:"username",value:s,placeholder:l,className:"w-full border-gray-400 rounded-md shadow border-1",onChange:function(a){A(a.target.value.trim()),E(!1),C(!1),D(!1)}}),u&&(0,I.jsx)("p",{className:"mb-1 text-left errorMsg",children:ag.Z.getValidation("required")}),(0,I.jsx)("input",{type:"password",name:"passsword",id:"passsword",value:t,placeholder:o,className:"w-full mt-2 border-gray-400 rounded-md shadow border-1",onChange:function(a){B(a.target.value.trim()),E(!1),D(!1),C(!1)}}),v&&(0,I.jsx)("p",{className:"mb-1 text-left errorMsg",children:ag.Z.getValidation("required")}),(0,I.jsx)("div",{className:"mt-2 font-normal text-left",children:j}),w&&(0,I.jsx)("p",{className:"mb-1 text-left errorMsg",children:ag.Z.getValidation("invalid_password")}),(0,I.jsx)("div",{className:"flex items-center justify-center",children:(0,I.jsx)(af.z,{slim:!1,intent:"primary",onClick:y,className:"mt-3 mb-5 w-36",children:p})})]})]})})]})},cI=function(d){var a=d.videourl,c=a;if(null===a)return null;if(""!==a){var b=(null==a?void 0:a.split("?"))[0].split("/");c=b.length>=5?"https://player.vimeo.com/video/".concat(b[3],"?h=").concat(b[4],"&loop=1"):"https://player.vimeo.com/video/".concat(b[3],"?loop=1")}return(0,I.jsx)("div",{className:"flex items-center justify-center",children:c&&(0,I.jsx)("iframe",{title:"video",style:{width:"575px"},className:"h-[325px] max-md:max-h-[215px]",src:c,allowFullScreen:!0})})},cJ=function(a){var b=a.categories,c=a.activeCategoryId,d=a.setActiveCategoryId,e=a.filterLabel;return(0,I.jsxs)("div",{className:"z-10 flex flex-wrap items-center justify-between w-full p-4 text-base bg-brandLightColor md:flex-nowrap gap-x-3 gap-y-3",children:[(0,I.jsxs)("div",{className:"flex items-center ",children:[(0,I.jsx)("span",{className:"pr-2 text-gray2",children:e}),(0,I.jsx)("span",{className:"pt-1",children:(0,I.jsx)(cf.Z,{color:a2.theme.extend.colors.gray2,width:16})})]}),(0,I.jsx)("div",{className:"lg:hidden w-[70%]",children:(0,I.jsx)(cn,{value:c,onChange:d,items:b.map(function(a){return{id:a.id,name:a.attributes.name}})})}),(0,I.jsx)("div",{className:"hidden lg:block",children:b.map(function(a){return(0,I.jsx)("button",{type:"button",onClick:function(){return d(a.id)},className:"text-accent py-1 my-1 flex-1 text-center mx-4 ".concat(a.id===c?"font-bold border-b-2 border-accent":""),children:a.attributes.name},a.id)})}),(0,I.jsx)("div",{className:"relative items-center w-1 md:flex-[2]"})]})},cK=function(a,b){var c=b;return null==a?void 0:a.filter(function(a){var b,d,e,f;return(null==a?void 0:null===(b=a.attributes)|| void 0===b?void 0:b.publishedAt)!==null&&(null==a?void 0:null===(d=a.attributes)|| void 0===d?void 0:null===(e=d.jacky_groups)|| void 0===e?void 0:null===(f=e.data)|| void 0===f?void 0:f.some(function(a){return a.attributes.name===c}))})}
1,cL=function(a){var c=a.title,d=a.header,e=a.information,f=a.slug,g=a.image,b=a.label,h=(0,an.HK)({type:"jackys",slug:f});return(0,I.jsx)(am.r,{href:h,children:(0,I.jsxs)(as.Z,{className:"flex flex-col justify-between h-full transition-all hover:shadow-brand ",children:[(0,I.jsxs)("div",{children:[(0,I.jsx)(ad.Z,{size:"xl",bold:!0,component:"h3",children:d}),(0,I.jsx)(ar.Z,{text:c,className:"mt-2 lg:min-h-[60px]"}),(0,I.jsx)("div",{className:"mt-4 overflow-hidden rounded-xl",children:(0,I.jsx)(ae.ZP,{image:g,layout:"responsive",objectFit:"cover",width:260,height:162})}),(0,I.jsx)(ar.Z,{className:"lg:min-h-[65px] mt-2 font-bold",text:e})]}),(0,I.jsx)("div",{className:"flex flex-col items-center justify-end space-y-4 md:flex-row md:items-end",children:(0,I.jsx)(af.z,{slim:!0,intent:"outline",className:"w-fit ",children:void 0===b?"Read more":b})})]})})},cM=function(d){var a,b,c,e=d.data,f=d.label,j=void 0===f?"Read more":f,h=null==e?void 0:null===(a=e.data)|| void 0===a?void 0:null===(b=a.attributes)|| void 0===b?void 0:null===(c=b.jackys_detailpages)|| void 0===c?void 0:c.data,i=(0,_.getCookie)("jackyusertype"),g=(0,J.useMemo)(function(){return cK(h,i)},[h,i]);return null==g?void 0:g.map(function(a,b){return(0,I.jsx)(cL,{label:j,title:a.attributes.title,header:a.attributes.header,information:a.attributes.information,slug:a.attributes.slug,image:a.attributes.image},b)})},cN=function(a){var b=a.data,c=a.label;return(0,I.jsx)("div",{className:"grid grid-cols-1 gap-10 mt-3 lg:grid-cols-2",children:(0,I.jsx)(cM,{data:b,label:c})})},cO=b.Z.country,cP=function(a,b){var c=b;return null==a?void 0:a.filter(function(a){var b,d,e,f;return(null==a?void 0:null===(b=a.attributes)|| void 0===b?void 0:b.publishedAt)!==null&&(null==a?void 0:null===(d=a.attributes)|| void 0===d?void 0:null===(e=d.jacky_groups)|| void 0===e?void 0:null===(f=e.data)|| void 0===f?void 0:f.some(function(a){return a.attributes.name===c}))})},cQ=function(a){var c=a.header,d=a.title,e=a.image,f=a.slug,g=a.information,b=a.label,h=(0,an.HK)({type:"jackys",slug:f});return(0,I.jsx)(am.r,{href:h,children:(0,I.jsxs)(as.Z,{className:"flex flex-col justify-between h-full transition-all hover:shadow-brand ",children:[(0,I.jsxs)("div",{children:[(0,I.jsx)(aG.Z,{text:c,type:"h3",className:"text-brand"}),(0,I.jsx)(bc.Z,{text:d,className:"mt-2 lg:min-h-[60px]"}),(0,I.jsx)("div",{className:"mt-4 overflow-hidden rounded-xl",children:(0,I.jsx)(ae.ZP,{image:e,layout:"responsive",objectFit:"cover",width:260,height:162})}),(0,I.jsx)(bc.Z,{text:g,className:"lg:min-h-[65px] mt-2 font-bold"})]}),(0,I.jsx)("div",{className:"flex flex-col items-center justify-end space-y-4 md:flex-row md:items-end",children:(0,I.jsx)(af.z,{slim:!0,intent:"outline",className:"w-fit ",children:void 0===b?"Read more":b})})]})})},cR=function(d){var a,b,e=d.data,f=d.label,i=void 0===f?"Read more":f,h=null==e?void 0:null===(a=e.attributes)|| void 0===a?void 0:null===(b=a.jackys_detailpages)|| void 0===b?void 0:b.data,c="";void 0!==(0,_.getCookie)("jackyusertype")&&(c=(0,_.getCookie)("jackyusertype")),void 0===(0,_.getCookie)("jackyusertype")&&"es"===cO&&(c="no-login");var g=(0,J.useMemo)(function(){return cP(h,c)},[h,c]).sort(function(a,b){return new Date(b.attributes.createdAt).getTime()-new Date(a.attributes.createdAt).getTime()});return null==g?void 0:g.map(function(a,b){return(0,I.jsx)(cQ,{label:i,title:a.attributes.title,header:a.attributes.header,information:a.attributes.information,slug:a.attributes.slug,image:a.attributes.image},b)})},cS=function(b){var a,c=b.data,d=b.label;return(0,I.jsx)("div",{className:"grid grid-cols-1 gap-10 mt-3 lg:grid-cols-2",children:null==c?void 0:null===(a=c.jackys_categories)|| void 0===a?void 0:a.data.map(function(a){return(0,I.jsx)(cR,{data:a,label:d},a.id)})})},cT=function(c){var f=c.search,d=c.categoryId,g=(0,cq.Z)((0,cv.Nr)(f,b.Z.searchDebounce),1),h=g[0],e=bR({type:"jackys",preview:!1,filters:{search:h,categoryId:d}}),a=(0,M.Z)("jackys-overview").data;if(!e.data)return(0,I.jsx)("div",{className:"h-[630px] w-20",children:(0,I.jsx)(ah.Z,{})});var i=e.data;return(0,I.jsxs)(I.Fragment,{children:[(null==a?void 0:a.header)&&(0,I.jsx)(aG.Z,{text:a.header,type:"h2",className:"w-1/2 !font-normal text-gray-900"}),d?(0,I.jsx)(cN,{label:null==a?void 0:a.postButtonText,data:i}):(0,I.jsx)(cS,{label:null==a?void 0:a.postButtonText,data:a})]})},cU=b.Z.country,cV=function(a){var c=a.videourl,k=a.infodata,l=a.ctadownloadcode,m=a.salecode,n=a.allCategoryName,o=a.filterName,p=a.jackys_categories,d=(0,J.useState)(!1),q=d[0],s=d[1],e=(0,J.useState)(!1),t=e[0],u=e[1],f=(0,J.useState)(null),g=f[0],r=f[1],b="";void 0!==(0,_.getCookie)("jackyusertype")&&(b=(0,_.getCookie)("jackyusertype")),void 0===(0,_.getCookie)("jackyusertype")&&"es"===cU&&(b="no-login");var h="STEINER 199\u20AC",i="Doppelpack";"es"===cU&&(h="Descargar c\xf3digos Steiner199",i="Descargar c\xf3digos DoblePack Premium");var j=function(){u(!t)};return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{className:"container flex mb-3 -mt-3 ",children:(0,I.jsx)(cJ,{activeCategoryId:g,
1setActiveCategoryId:r,filterLabel:o,categories:[{id:null,attributes:{name:n}},].concat((0,N.Z)(p.data))})}),(0,I.jsx)("div",{className:"flex flex-col gap-4",children:(0,I.jsx)("div",{className:"grid grid-cols-1 gap-4 container [&_.container]:px-0",children:(0,I.jsxs)("div",{className:"col-span-1 con ",children:[(0,I.jsx)("div",{className:"w-full mt-3 mb-2",children:(0,I.jsxs)("div",{className:"w-full md:flex",children:[(0,I.jsx)("div",{className:"w-full mr-4 ".concat("de"===cU&&"md:w-1/2 md:flex md:items-center md:justify-center"),children:(0,I.jsx)(bc.Z,{text:k})}),c&&(0,I.jsx)("div",{className:"w-full md:w-1/2",children:(0,I.jsx)(cI,{videourl:c})})]})}),(0,I.jsx)("div",{className:"w-full",children:(0,I.jsxs)("div",{className:"items-center justify-center my-4 md:flex md:justify-start",children:["de"===cU&&(0,I.jsx)(am.r,{href:l,target:"_BLANK",children:(0,I.jsx)(af.z,{slim:!1,intent:"primary",className:"max-md:w-full",children:m})}),"es"===cU&&(0,I.jsxs)(I.Fragment,{children:[void 0!==(0,_.getCookie)("jackysteiner99code")&&(0,I.jsx)(af.z,{slim:!1,onClick:function(){if(void 0!==(0,_.getCookie)("jackysteiner99code")){var a={};a.type=5,a.storeid=(0,_.getCookie)("jackystore"),a.username=(0,_.getCookie)("dispname"),(0,aj.vV)(cU,"tbl_codecount",a);var b=new bj.ZP,d=JSON.parse("".concat((0,_.getCookie)("jackysteiner99code")));b.setFontSize(13);for(var e=1,c=0;c<d.length;c+=1)b.text(d[c],10,5.5*e),e+=1;var f=b.output("blob");(0,bk.saveAs)(f,"STEINER-199.pdf")}},intent:"primary",className:"max-md:w-full",children:h}),void 0!==(0,_.getCookie)("jackydoublepackcode")&&(0,I.jsx)(af.z,{slim:!1,onClick:function(){if(void 0!==(0,_.getCookie)("jackydoublepackcode")){var a={};a.type=7,a.storeid=(0,_.getCookie)("jackystore"),a.username=(0,_.getCookie)("dispname"),(0,aj.vV)(cU,"tbl_codecount",a);var b=new bj.ZP,d=JSON.parse("".concat((0,_.getCookie)("jackydoublepackcode")));b.setFontSize(13);for(var e=1,c=0;c<d.length;c+=1)b.text(d[c],10,5.5*e),e+=1;var f=b.output("blob");(0,bk.saveAs)(f,"Doppelpack.pdf")}},intent:"outline",className:"md:ml-5 max-md:mt-3 max-md:w-full",children:i}),void 0!==(0,_.getCookie)("jackyzerotariffacode")&&(0,I.jsx)(af.z,{slim:!1,onClick:function(){if(void 0!==(0,_.getCookie)("jackyzerotariffacode")){var a={};a.type=6,a.storeid=(0,_.getCookie)("jackystore"),a.username=(0,_.getCookie)("dispname"),(0,aj.vV)(cU,"tbl_codecount",a);var b=new bj.ZP,d=JSON.parse("".concat((0,_.getCookie)("jackyzerotariffacode")));b.setFontSize(13);for(var e=1,c=0;c<d.length;c+=1)b.text(d[c],10,5.5*e),e+=1;var f=b.output("blob");(0,bk.saveAs)(f,"Nulltarif-Einst\xe4rke.pdf")}},intent:"primary",className:"md:ml-5 max-md:mt-3 max-md:w-full",children:"Nulltarif Einst\xe4rke"}),void 0!==(0,_.getCookie)("jackyzerotariffbcode")&&(0,I.jsx)(af.z,{slim:!1,onClick:function(){if(void 0!==(0,_.getCookie)("jackyzerotariffbcode")){var a={};a.type=6,a.storeid=(0,_.getCookie)("jackystore"),a.username=(0,_.getCookie)("dispname"),(0,aj.vV)(cU,"tbl_codecount",a);var b=new bj.ZP,d=JSON.parse("".concat((0,_.getCookie)("jackyzerotariffbcode")));b.setFontSize(13);for(var e=1,c=0;c<d.length;c+=1)b.text(d[c],10,5.5*e),e+=1;var f=b.output("blob");(0,bk.saveAs)(f,"Nulltarif-Gleitsicht.pdf")}},intent:"outline",className:"md:ml-5 max-md:mt-3 max-md:w-full",children:"Nulltarif Gleitsicht"})]}),q&&(0,I.jsx)(bO,{onClose:function(){return s(!1)}}),(0,I.jsxs)("div",{onClick:function(){return s(!q)},className:"mt-1 md:ml-5 max-md:mt-3 cursor-pointer flex items-center gap-2 rounded-[36px] border border-[#750A4F] bg-white px-4 py-1 hover:border-[#750A4F] hover:bg-[#E5E5E5]",children:[(0,I.jsx)(bK(),{loader:bL.vg,src:"AICHATS.svg",alt:"",width:40,height:40,onMouseEnter:j,onMouseLeave:j}),(0,I.jsx)("span",{className:"leading-none text-accent whitespace-nowrap",children:"Produkt-KI-Chat"})]})]})}),(0,I.jsx)(cT,{categoryId:g,search:b})," "]})})})]})},cW=function(){var b=(0,J.useState)(!1),d=b[0],e=b[1];(0,J.useEffect)(function(){void 0===(0,_.getCookie)("jackylogin")?"es"===cU?e(!0):e(!1):e(!0)},[]);var c=(0,M.Z)("jackys-overview");if(!c.data)return null;var a=c.data;return(0,I.jsxs)("div",{className:"tailwind",children:[a.banderole&&(0,I.jsx)(ab.Z,{text:a.banderole}),d?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{className:"container",children:(0,I.jsx)(ax.Z,(0,H.Z)({},a.heroBanner))}),(0,I.jsx)(cV,(0,H.Z)({},a))]}):(0,I.jsx)(cH,(0,aD.Z)((0,H.Z)({},a),{type:R.b.jackys}))]})},cX=function(c){var a;return(0,S.a)((a=c,{queryFn:function(){return U.Z.landingPages.getDataBySlug(a)},queryKey:T.Z.landingPages.bySlug(a),staleTime:b.Z.defaultStaleTime}))},cY=function(b){var c,d,e,f,g=b.topFullWidth,h=b.rightColumn,i=b.fullWidthDownColumn,j=b.leftColumn,a=b.deal,k=b.heroBanner;return(0,I.jsxs)("div",{className:"tailwind",children:[(0,I.jsx)(ax.Z,(0,H.Z)({},k)),(0,I.jsx)("div",{className:"container px-0",children:!!g.length&&(0,I.jsx)(aa.Z,{context:{deal:null==a?void 0:null===(c=a.data)|| void 0===c?void 0:c.attributes},blocks:g})}),(0,I.jsx)($,{aside:!!h.length&&(0,I.jsx)(aa.Z,{blocks:h,context:{deal:null==a?void 0:null===(d=a.data)|| void 0===d?void 0:d.attributes}}),after:!!i.length&&(0,I.jsx)(aa.Z,{blocks:i,context:{deal:null==a?void 0:null===(e=a.data)|| void 0===e?void 0:e.attributes}}),cols:2,children:!!j.length&&(0,I.jsx)(aa.Z,{context:{deal:null==a?void 0:null===(f=a.data)|| void 0===f?void 0:f.attributes},blocks:j})})]})},cZ=function(i){var b,c,d,e,f,g,h,a=cX({slug:i.slug});return a.data?(0,I.jsxs)(W._,{value:null===(b=a.data)|| void 0===b?void 0:null===(c=b.attributes)|| void 0===c?void 0:null===(d=c.deal)|| void 0===d?void 0:null===(e=d.data)|| void 0===e?void 0:null===(f=e.attributes)|| void 0===f?void 0:f.offername,children:[(null===(g=a.data)|| void 0===g?void 0:null===(h=g.attributes)|| void 0===h?void 0:h.seo)&&(0,I.jsx)(ac.Z,{seo:a.data.attributes.seo}),(0,I.jsx)(cY,(0,H.Z)({},a.data.attributes))]}):null},c$=function(c){var a;return(0,S.a)((a=c,{queryFn:function(){return U.Z.hearingAids.getDataBySlug(a)},queryKey:T.Z.hearingAids.bySlug(a),staleTime:b.Z.defaultStaleTime}))},c_=function(b){var a=b.aidArea;return(0,I.jsx)("div",{className:"tailwind",children:(0,I.jsx)("div",{className:"",children:!!a.length&&(0,I.jsx)(aa.Z,{blocks:a})})})},c0=function(d){var b,c,a=c$({slug:d.slug});return a.data?(0,I.jsxs)(W._,{value:a.data.attributes.offername,children:[(null===(b=a.data)|| void 0===b?void 0:null===(c=b.attributes)|| void 0===c?void 0:c.seo)&&(0,I.jsx)(ac.Z,{seo:a.data.attributes.seo}),(0,I.jsx)(c_,(0,H.Z)({},a.data.attributes))]}):null},c1=function(c){var a;return(0,S.a)((a=c,{queryFn:function(){return U.Z.sponsorPages.getDataBySlug(a)},queryKey:T.Z.sponsorPages.bySlug(a),staleTime:b.Z.defaultStaleTime}))},c2=function(a){var b=a.rightColumn,c=a.fullWidthDownColumn,d=a.leftColumn,e=a.heroBanner;return(0,I.jsxs)("div",{className:"tailwind",children:[(0,I.jsx)(ax.Z,(0,H.Z)({},e)),(0,I.jsx)("div",{className:"pt-10 max-md:pt-5",children:(0,I.jsx)($,{cols:2,aside:!!b.length&&(0,I.jsx)(aa.Z,{blocks:b}),after:!!c.length&&(0,I.jsx)(aa.Z,{blocks:c}),children:!!d.length&&(0,I.jsx)(aa.Z,{blocks:d})})})]})},c3=function(f){var b,c,d,e,a=c1({slug:f.slug});return a.data?(0,I.jsxs)(W._,{value:null===(b=a.data)|| void 0===b?void 0:null===(c=b.attributes)|| void 0===c?void 0:c.offername,children:[(null===(d=a.data)|| void 0===d?void 0:null===(e=d.attributes)|| void 0===e?void 0:e.seo)&&(0,I.jsx)(ac.Z,{seo:a.data.attributes.seo}),(0,I.jsx)(c2,(0,H.Z)({},a.data.attributes))]}):null},c4=function(c){var a;return(0,S.a)((a=c,{queryFn:function(){return U.Z.productshop.getDataBySlug(a)},queryKey:T.Z.productshop.bySlug(a),staleTime:b.Z.defaultStaleTime}))},c5=function(c){var a=(0,aw.Z)({},c),d=a.backLabel,e=a.resetUsername,f=a.usernameLabel,g=a.resetUsernameReq,h=a.changeInputResetUsername,i=a.resetPasswordTitle,j=a.resetPassworkCta,k=a.invalidUsernameMsg,l=a.resetPassworkSuccessMsg,m=a.enterUsernameMsg,n=a.wrongUser,b=a.resetSuccess,o=a.resetSubmit,p=a.onClose;return(0,I.jsx)("div",{className:"fixed inset-0 flex items-center justify-center bg-gray-900 bg-opacity-50",children:(0,I.jsxs)("div",{className:" bg-white rounded-lg shadow-lg w-[95%] md:w-[25%] p-5",children:[(0,I.jsx)("h2",{className:"mb-5 text-lg font-bold text-center text-accent",children:i}),(0,I.jsx)("input",{type:"text",name:"username",value:e,placeholder:f,onChange:h,className:"w-full h-10"}),(0,I.jsxs)("div",{className:"min-h-[32px] text-center",children:[(0,I.jsxs)("span",{className:"errorMsg",children:[g&&m,n&&k]}),(0,I.jsx)("span",{className:"font-bold text-brand",children:b&&l})]}),!b&&(0,I.jsx)(af.z,{className:"",slim:!1,fullWidth:!0,onClick:o,intent:"primary",children:j}),(0,I.jsx)("div",{className:"font-medium text-center underline cursor-pointer text-accent",onClick:p,children:d})]})})},c6=function(b){var a=(0,aw.Z)({},b),c=a.userinfo,d=a.closeInfoPopup,e=a.backLabel;return(0,I.jsx)("div",{className:"fixed inset-0 flex items-center justify-center bg-gray-900 bg-opacity-50",children:(0,I.jsxs)("div",{className:" bg-white rounded-lg shadow-lg w-[95%] md:w-[25%] p-5 text-center",children:[(0,I.jsx)(bK(),{loader:bL.vg,src:"shop/info.png",alt:"",width:"17",height:"17"}),(0,I.jsx)("div",{className:"mb-5 text-lg font-bold text-svOrange",dangerouslySetInnerHTML:{__html:c}}),(0,I.jsx)("div",{className:"font-medium underline cursor-pointer text-brand",onClick:d,children:e})]})})},c7=function(c){var b=(0,aw.Z)({},c),d=b.href,e=b.loginName,f=b.dhashboardBanner,a=b.jsonData,g=b.subinfo;return(0,I.jsxs)("div",{className:"",children:[(0,I.jsx)(ax.Z,(0,H.Z)({},f)),(0,I.jsx)("div",{className:"container mx-auto",children:(0,I.jsxs)("div",{className:"py-10 md:flex md:gap-5 max-md:py-5",children:[(0,I.jsxs)("div",{className:"w-full md:w-1/3",children:[(0,I.jsxs)("p",{className:"mb-2 text-xxl",children:[null==a?void 0:a.welcomeTitle," ",e]}),(0,I.jsx)(bc.Z,{text:g})]}),(0,I.jsx)("div",{className:"w-full md:w-1/3",children:(0,I.jsxs)("div",{className:"p-3 bg-gray-50",children:[(0,I.jsx)("div",{className:"mb-3 font-semibold text-center text-brand",children:null==a?void 0:a.clubColorsTitle}),(0,I.jsx)("div",{className:"flex items-center justify-center ",children:(0,I.jsx)(af.z,{className:"",slim:!1,fullWidth:!1,href:"".concat(d,"/shop/"),intent:"primary",children:null==a?void 0:a.collectionCtaTitle})})]})}),(0,I.jsx)("div",{className:"w-full md:w-1/3 max-md:mt-3",children:(0,I.jsxs)("div",{className:"p-3 bg-brandLightColor",children:[(0,I.jsx)("div",{className:"font-bold text-brand text-xxl",children:null==a?void 0:a.overviewSponsorship}),(0,I.jsx)("p",{className:"",children:null==a?void 0:a.sinceDateTitle}),(0,I.jsx)("div",{className:"mt-3 font-semibold",children:null==a?void 0:a.salesWithCodeTitle})]})})]})})]})},c8=b.Z.country,c9=function(){var S=(0,k.useRouter)(),c=(0,J.useState)(!1),v=c[0],T=c[1],d=(0,J.useState)(""),w=d[0],U=d[1],f=(0,J.useState)(""),x=f[0],V=f[1],g=(0,J.useState)(""),y=g[0],W=g[1],h=(0,J.useState)(!1),z=h[0],X=h[1],i=(0,J.useState)(!1),A=i[0],Y=i[1],j=(0,J.useState)(!1),B=j[0],Z=j[1],l=(0,J.useState)(!1),C=l[0],$=l[1],o=(0,J.useState)(!1),D=o[0],E=o[1],p=(0,J.useState)(""),F=p[0],aa=p[1],q=(0,J.useState)(!1),G=q[0],ab=q[1],r=(0,J.useState)(!1),K=r[0],ad=r[1],s=(0,J.useState)(!1),L=s[0],ae=s[1],t=(0,J.useState)(!1),N=t[0],ag=t[1];(0,J.useEffect)(function(){(void 0!==(0,_.getCookie)("shoptoken")?(0,_.getCookie)("shoptoken"):"")&&(E(!0),aa(void 0!==(0,_.getCookie)("shopuser")?(0,_.getCookie)("shopuser"):""))},[E]);var O=(0,an.XG)({type:R.b.productshop}),u=(0,M.Z)("shopmain");if(!u.data)return null;var b=u.data,a=[];(null==b?void 0:b.keyvalue)&&(a=b.keyvalue);var P,Q=(P=(0,n.Z)(m().mark(function a(){var b;return m().wrap(function(a){for(;;
1)switch(a.prev=a.next){case 0:b="production",""===w?X(!0):""===y?Z(!0):"test"===w&&"test"===y?(T(!0),cF.Z.set("shoptoken","test",{expires:1,domain:e.Z.getDomainForCookie(c8,b)}),cF.Z.set("shopuser","test",{expires:1,domain:e.Z.getDomainForCookie(c8,b)}),S.reload()):$(!0);case 2:case"end":return a.stop()}},a)})),function(){return P.apply(this,arguments)});return(0,I.jsxs)("div",{className:"tailwind",children:[v&&(0,I.jsx)(ah.Z,{}),(0,I.jsx)(ac.Z,{seo:null==b?void 0:b.seo}),D?(0,I.jsx)(c7,{loginName:F,dhashboardBanner:b.dhashboardBanner,jsonData:a,subinfo:b.subinfo,href:O}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(ax.Z,(0,H.Z)({},b.loginBanner)),(0,I.jsxs)("div",{className:"container mx-auto mt-5",children:[(0,I.jsxs)("div",{className:"p-5 bg-gray-50 border-1",children:[(0,I.jsxs)("p",{className:"text-lg font-bold text-center text-brand",children:[a.loginTitle,(0,I.jsx)("span",{className:"cursor-pointer",onClick:function(){ad(!0)},children:(0,I.jsx)(bK(),{loader:bL.vg,src:"shop/info.png",alt:"",width:"17",height:"17"})})]}),(0,I.jsxs)("div",{className:"w-full md:w-[30%] mx-auto mt-5",children:[(0,I.jsx)("input",{type:"text",name:"username",value:w,placeholder:a.usernameLabel,onChange:function(a){U(a.target.value),X(!1),$(!1)},className:"w-full h-10 mb-3"}),(0,I.jsx)("input",{type:"text",name:"password",value:y,placeholder:a.passwordLabel,onChange:function(a){W(a.target.value),Z(!1),$(!1)},className:"w-full h-10"}),(0,I.jsx)("div",{className:"text-center min-h-[32px]",children:(0,I.jsxs)("span",{className:"errorMsg",children:[z&&a.enterUsernameMsg,B&&a.enterPassowrdMsg,C&&a.invalidUserPasswordMsg]})}),(0,I.jsx)(af.z,{className:"",slim:!1,fullWidth:!0,onClick:Q,intent:"primary",children:a.loginCta}),(0,I.jsx)("div",{className:"mt-3 font-medium text-center underline cursor-pointer text-accent",onClick:function(){V(w),ab(!0),ae(!1)},children:a.resetPasswordLabel})]})]}),G&&(0,I.jsx)(c5,{backLabel:a.backLabel,resetUsername:x,changeInputResetUsername:function(a){V(a.target.value),Y(!1),$(!1),ae(!1)},usernameLabel:a.usernameLabel,enterUsernameMsg:a.enterUsernameMsg,resetUsernameReq:A,resetPasswordTitle:a.resetPasswordTitle,resetPassworkCta:a.resetPassworkCta,invalidUsernameMsg:a.invalidUsernameMsg,resetPassworkSuccessMsg:a.resetPassworkSuccessMsg,wrongUser:L,resetSuccess:N,resetSubmit:function(){""===x?(ae(!1),ag(!1),Y(!0)):"test"===x?(ae(!1),Y(!1),ag(!0)):ae(!0)},onClose:function(){ab(!1),ag(!1)}}),K&&(0,I.jsx)(c6,{backLabel:a.backLabel,userinfo:a.userinfo,closeInfoPopup:function(){ad(!1)}})]})]})]})},da=a(78661),db=a(72953),dc=a(50063),dd=a(71644),de=a(57759),df=function(d){var e,f,a=(0,aw.Z)({},d),j=a.productsMain,k=a.setProducts,g=a.uniqueOptions,h=a.allList,l=a.setBusy,b=(0,J.useState)({}),i=b[0],o=b[1],c=(0,J.useState)(new Set(h)),p=c[0],q=c[1],r=(e=(0,n.Z)(m().mark(function a(b){return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",new Promise(function(a){return setTimeout(a,b)}));case 1:case"end":return a.stop()}},a)})),function(a){return e.apply(this,arguments)});(0,J.useEffect)(function(){var a=j.filter(function(a){return Object.entries(i).every(function(c){var b=(0,cq.Z)(c,2),d=b[0],e=b[1];return a.options.some(function(a){return a.title===d&&a.values.some(function(a){return e.has(a.value)})})})});k(a)},[i]);var s=(f=(0,n.Z)(m().mark(function a(b,c){return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return l(!0),a.next=3,r(500);case 3:l(!1),o(function(d){var a=(0,H.Z)({},d);return a[b]||(a[b]=new Set),a[b].has(c)?(a[b].delete(c),0===a[b].size&&delete a[b]):a[b].add(c),a});case 5:case"end":return a.stop()}},a)})),function(a,b){return f.apply(this,arguments)}),t=function(a){q(function(c){var b=new Set(c);return b.has(a)?b.delete(a):b.add(a),b})};return(0,I.jsx)("div",{className:"",children:g.map(function(a){return(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("div",{className:"flex items-end pb-1 mt-5 border-b border-black cursor-pointer first:mt-0",onClick:function(){return t(a.title)},children:[(0,I.jsx)("h3",{className:"w-5/6 font-medium",children:a.title}),(0,I.jsx)("div",{className:"w-1/6",children:p.has(a.title)?(0,I.jsx)("svg",{className:"float-right w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,I.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M5 15l7-7 7 7"})}):(0,I.jsx)("svg",{className:"float-right w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:(0,I.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M19 9l-7 7-7-7"})})})]},a.title),p.has(a.title)&&a.values.map(function(b,e){var c,d="".concat(b,"-").concat(a.title,"-").concat(e);return(0,I.jsxs)("div",{className:"flex items-center mt-1.5",children:[(0,I.jsx)("input",{type:"checkbox",id:d,checked:(null===(c=i[a.title])|| void 0===c?void 0:c.has(b))||!1,onChange:function(){return s(a.title,b)},className:"mr-2 accent-red-500 focus:ring-brand checked:bg-brand"}),(0,I.jsx)("label",{htmlFor:d,children:b})]},b)})]})})})},dg=function(a){var b=new Map;return a.forEach(function(a){a.options.forEach(function(a){b.has(a.title)||b.set(a.title,new Map),a.values.forEac
1h(function(c){b.get(a.title).set(c.value,c)})})}),Array.from(b.entries()).map(function(b){var a=(0,cq.Z)(b,2),c=a[0],d=a[1];return{title:c,values:Array.from(d.keys())}})},dh=b.Z.country,di=function(b){var c=b.href,a=b.jsonData,d=(0,J.useState)(!1),k=d[0],l=d[1],e=(0,J.useState)([]),o=e[0],s=e[1],f=(0,J.useState)([]),g=f[0],p=f[1],h=(0,J.useState)([]),t=h[0],u=h[1],i=(0,J.useState)([]),q=i[0],v=i[1],j=(0,J.useState)(new Set),r=j[0],w=j[1],x="".concat(c,"/products");(0,J.useEffect)(function(){var a;l(!0),(a=(0,n.Z)(m().mark(function a(){var b,c,d,e,f,g,h,i,j,k;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=3,(0,da.oV)({countryCode:dh});case 3:return(null==(d=a.sent)?void 0:null===(b=d.response)|| void 0===b?void 0:b.products)&&(null==d?void 0:null===(c=d.response)|| void 0===c?void 0:c.products.length)>0&&(p(null==d?void 0:null===(e=d.response)|| void 0===e?void 0:e.products),s(null==d?void 0:null===(f=d.response)|| void 0===f?void 0:f.products),h=dg(null==d?void 0:null===(g=d.response)|| void 0===g?void 0:g.products),v(h),i=new Set(h.map(function(a){return a.title})),"undefined"!=typeof navigator&&(j=/iPhone|iPad|iPod|Android/i.test(navigator.userAgent))&&(i=""),w(i)),l(!1),a.next=7,(0,da.sA)();case 7:u(k=a.sent);case 9:case"end":return a.stop()}},a)})),function(){return a.apply(this,arguments)})()},[]);var y=function(a){var b;b=Array.isArray(t)&&t.includes(a)?t.filter(function(b){return b!==a}):Array.isArray(t)?(0,N.Z)(t).concat([a]):[a],u(b),(0,da.ju)(b)};return(0,I.jsxs)("div",{className:"mt-3 md:mt-5",children:[k&&(0,I.jsx)(ah.Z,{}),(0,I.jsx)(am.r,{href:c,className:"font-medium underline text-accent",children:null==a?void 0:a.backLabel}),g&&(0,I.jsxs)("div",{className:"mt-2 md:flex md:gap-3",children:[(0,I.jsx)("div",{className:"w-full md:w-1/5",children:(0,I.jsx)(df,{productsMain:o,setProducts:p,uniqueOptions:q,allList:r,setBusy:l})}),(0,I.jsxs)("div",{className:"w-full p-3 md:w-4/5 bg-gray-50",children:[(0,I.jsx)("h1",{className:"text-xl",children:null==a?void 0:a.collectionTitle}),(0,I.jsx)("div",{className:"grid grid-cols-1 mt-5 md:gap-4 md:grid-cols-3",children:g.map(function(b,f){var c,d,e;return(0,I.jsxs)("div",{className:"flex flex-col p-3 bg-white rounded-lg border-1 max-md:mb-3",children:[(0,I.jsxs)("div",{className:"flex-grow",children:[(0,I.jsx)(am.r,{href:"".concat(x,"/").concat(null==b?void 0:b.handle),className:"",children:(0,I.jsx)("div",{className:"",children:(0,I.jsx)("img",{src:null==b?void 0:b.thumbnail,alt:null==b?void 0:b.title,className:""})})}),(0,I.jsxs)("div",{className:"flex items-center justify-between",children:[(0,I.jsx)(am.r,{href:"".concat(x,"/").concat(null==b?void 0:b.handle),className:"",children:(0,I.jsx)("h3",{className:"mt-2 font-semibold text-black",children:null==b?void 0:b.title})}),(0,I.jsx)("div",{onClick:function(){return y(b.id)},className:"flex items-center justify-center w-8 h-8 transition-colors duration-200 rounded-full cursor-pointer",children:t.includes(b.id)?(0,I.jsx)(dd.Z,{className:"w-6 h-6 text-accent"}):(0,I.jsx)(dc.Z,{className:"w-6 h-6 text-gray-500 hover:text-accent"})})]}),(0,I.jsxs)("div",{className:"font-semibold leading-5 text-black",children:[null==a?void 0:a.skuTitle," ",b.variants.length>1&&(b.variants||[]).map(function(a,b){return(0,I.jsx)("span",{className:"font-light",children:a.sku&&"".concat(a.sku,", ")},b)})]}),(0,I.jsxs)("div",{className:"font-semibold",children:[null==a?void 0:a.materialTitle," ",(0,I.jsx)("span",{className:"font-light",children:null==b?void 0:b.material})]}),(0,I.jsx)("div",{children:b.variants.length>1&&(b.options||[]).map(function(a){var b=a.values.map(function(a){return a.value}).filter(de.d);return(0,I.jsx)("div",{children:(0,I.jsxs)("div",{className:"font-semibold",children:[a.title,":"," ",b.map(function(a,b){return(0,I.jsxs)("span",{className:"font-light",children:[a,", "]},b)})]})},a.id)})})]}),(0,I.jsxs)("div",{className:"",children:[(0,I.jsx)("div",{className:"text-right",children:null==a?void 0:a.memeberPriceTitle}),(null==b?void 0:b.price)&&(0,I.jsxs)("div",{className:"flex",children:[(0,I.jsx)("div",{className:"flex-1 line-through ",children:(null==b?void 0:null===(c=b.price)|| void 0===c?void 0:c.price_type)==="sale"&&(0,db.v8)(null==b?void 0:null===(d=b.price)|| void 0===d?void 0:d.original_price)}),(0,I.jsx)("div",{className:"flex-1 font-semibold text-right text-brand",children:(0,db.v8)(null==b?void 0:null===(e=b.price)|| void 0===e?void 0:e.calculated_price)})]})]})]},f)})})]})]})]})},dj=a(80665),dk=function(d){var b=d.data,a=d.jsonData,e=b.subtotal,f=b.shipping_total,g=b.total,h=b.tax_total,c=function(a){return(0,dj.dN)({amount:a||0,region:b.regi
1on,includeTaxes:!1})};return(0,I.jsxs)("div",{className:"flex flex-col gap-y-2",children:[(0,I.jsxs)("div",{className:"flex items-center justify-between p-2 bg-gray-50 border-1",children:[(0,I.jsx)("span",{className:"flex items-center font-semibold gap-x-1",children:null==a?void 0:a.subtotal}),(0,I.jsx)("span",{className:"font-semibold","data-testid":"cart-subtotal","data-value":e||0,children:c(e)})]}),(0,I.jsxs)("div",{className:"flex items-center justify-between p-2 bg-gray-50 border-1",children:[(0,I.jsx)("span",{children:null==a?void 0:a.shipping}),(0,I.jsx)("span",{className:"font-semibold","data-testid":"cart-shipping","data-value":f||0,children:c(f)})]}),(0,I.jsxs)("div",{className:"flex justify-between p-2 bg-gray-50 border-1",children:[(0,I.jsx)("span",{className:"flex items-center gap-x-1 ",children:null==a?void 0:a.taxTotal}),(0,I.jsx)("span",{className:"font-semibold","data-testid":"cart-taxes","data-value":h||0,children:c(h)})]}),(0,I.jsxs)("div",{className:"flex justify-between p-2 bg-gray-50 border-1",children:[(0,I.jsx)("span",{children:null==a?void 0:a.grandtotal}),(0,I.jsx)("span",{className:"font-semibold","data-testid":"cart-total","data-value":g||0,children:c(g)})]})]})},dl=a(69334),dm=a(89517),dn=a(61452),dp=function(a){var b,c,d,e=a.item,h=a.setCarts,i=a.setBusy,j=(b=(0,n.Z)(m().mark(function a(){var b,c;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,dl.pe)();case 2:if(!(null==(b=a.sent)?void 0:b.items.length)){a.next=8;break}return a.next=6,(0,dl.u1)(null==b?void 0:b.items,null==b?void 0:b.region_id);case 6:c=a.sent,b.items=c;case 8:h(b),i(!1);case 10:case"end":return a.stop()}},a)})),function(){return b.apply(this,arguments)}),f=(c=(0,n.Z)(m().mark(function a(){var b;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(!(e.quantity>1)){a.next=6;break}return b=e.quantity-1,i(!0),a.next=5,(0,dl.qb)({lineId:e.id,quantity:b});case 5:j();case 6:case"end":return a.stop()}},a)})),function(){return c.apply(this,arguments)}),g=(d=(0,n.Z)(m().mark(function a(){var b;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return b=e.quantity+1,i(!0),a.next=4,(0,dl.qb)({lineId:e.id,quantity:b});case 4:j();case 5:case"end":return a.stop()}},a)})),function(){return d.apply(this,arguments)});return(0,I.jsx)("div",{className:"flex items-center",children:(0,I.jsx)("div",{className:"flex-1",children:(0,I.jsxs)("div",{className:"flex items-center mt-2",children:[(0,I.jsx)(dm.Z,{className:"w-8 h-8 text-gray-500 cursor-pointer",onClick:f}),(0,I.jsx)("span",{className:"px-4 py-1 font-medium",children:e.quantity}),(0,I.jsx)(dn.Z,{className:"w-8 h-8 text-gray-500 cursor-pointer",onClick:g})]})})})},dq=a(76249),dr=function(a){var c,f=a.id,g=a.setCarts,d=a.className,b=(0,J.useState)(!1),e=b[0],h=b[1],i=(c=(0,n.Z)(m().mark(function a(b){var c,d;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return h(!0),a.next=3,(0,dl.l2)(b).catch(function(){});case 3:return a.next=5,(0,dl.pe)();case 5:if(!(null==(c=a.sent)?void 0:c.items.length)){a.next=11;break}return a.next=9,(0,dl.u1)(null==c?void 0:c.items,null==c?void 0:c.region_id);case 9:d=a.sent,c.items=d;case 11:g(c),h(!1);case 13:case"end":return a.stop()}},a)})),function(a){return c.apply(this,arguments)});return(0,I.jsxs)(I.Fragment,{children:[e&&(0,I.jsx)(ah.Z,{}),(0,I.jsx)("div",{className:"cursor-pointer ".concat(d),onClick:function(){return i(f)},children:(0,I.jsx)(dq.Z,{className:"w-8 h-8 text-gray-500"})})]})},ds=function(a){var c=a.variant,b=a.title,d=a["data-testid"],e=a["data-value"];return(0,I.jsxs)("div",{"data-testid":d,"data-value":e,className:"inline-block w-full font-semibold",children:[b&&(0,I.jsxs)("span",{className:"",children:[b,":"]})," ",c.title]})},dt=function(c){var a=c.item,d=c.region,b=c.title,e=a.variant.original_price*a.quantity,f=(a.total||0)<e;return(0,I.jsxs)("div",{className:"flex flex-col md:items-center gap-x-2",children:[f&&(0,I.jsxs)("p",{children:[b&&(0,I.jsxs)("span",{className:"",children:[b,": "]}),(0,I.jsx)("span",{className:"line-through","data-testid":"product-original-price",children:(0,dj.dN)({amount:e,region:d,includeTaxes:!1})})]}),(0,I.jsxs)("span",{className:"font-semibold text-brand","data-testid":"product-price",children:[b&&!f&&(0,I.jsxs)("span",{className:"",children:[b,": "]}
1),(0,dj.dN)({amount:a.total||0,region:d,includeTaxes:!1})]})]})},du=function(a){var c,d=a.cart,g=a.setCarts,h=a.setBusy,f=a.href,b=a.jsonData,e=(0,J.useState)([]),i=e[0],j=e[1];(0,J.useEffect)(function(){var a;(a=(0,n.Z)(m().mark(function a(){var b;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,da.sA)();case 2:j(b=a.sent);case 4:case"end":return a.stop()}},a)})),function(){return a.apply(this,arguments)})()},[]);var k=function(a){var b;b=Array.isArray(i)&&i.includes(a)?i.filter(function(b){return b!==a}):Array.isArray(i)?(0,N.Z)(i).concat([a]):[a],j(b),(0,da.ju)(b)};return(0,I.jsx)("div",{className:"",children:d&&(null===(c=d.items)|| void 0===c?void 0:c.length)?(0,I.jsx)(I.Fragment,{children:d.items.sort(function(a,b){return a.created_at>b.created_at?-1:1}).map(function(a){var c,e,j,l,m,n;return(0,I.jsxs)("div",{className:"mb-3",children:[(0,I.jsx)("div",{className:"hidden md:block",children:(0,I.jsxs)("div",{className:"flex border-5",children:[(0,I.jsx)("div",{className:"p-1 w-[5%]",children:(0,I.jsx)("div",{onClick:function(){return k(a.variant.product_id)},className:"flex items-center justify-center w-8 h-8 transition-colors duration-200 rounded-full cursor-pointer",children:i.includes(a.variant.product_id)?(0,I.jsx)(dd.Z,{className:"w-6 h-6 text-accent"}):(0,I.jsx)(dc.Z,{className:"w-6 h-6 text-gray-500 hover:text-accent"})})}),(0,I.jsx)("div",{className:"p-1 w-[15%]",children:(0,I.jsx)(am.r,{href:"".concat(f,"/products/").concat(a.variant.product.handle),className:"",children:(0,I.jsx)("img",{src:null!==a.thumbnail?a.thumbnail:void 0,alt:null==a?void 0:a.title,className:""})})}),(0,I.jsxs)("div",{className:"p-1 w-[20%] relative bdrright50",children:[(0,I.jsx)(am.r,{href:"".concat(f,"/products/").concat(a.variant.product.handle),className:"font-medium text-brand",children:a.title}),(0,I.jsxs)("p",{className:"font-semibold text-black",children:[null==b?void 0:b.materialTitle,"  ",(0,I.jsx)("span",{className:"font-light",children:null==a?void 0:null===(c=a.variant)|| void 0===c?void 0:null===(e=c.product)|| void 0===e?void 0:e.material})]})]}),(0,I.jsxs)("div",{className:"relative p-1 text-center w-[15%] bdrright50",children:[(0,I.jsx)("p",{children:null==b?void 0:b.sizeTitle}),(0,I.jsx)(ds,{title:"",variant:a.variant,"data-testid":"cart-item-variant","data-value":a.variant})]}),(0,I.jsxs)("div",{className:"p-1 text-center w-[15%] relative bdrright50",children:[(0,I.jsx)("p",{children:null==b?void 0:b.numberTitle}),(0,I.jsx)("p",{className:"font-semibold",children:null==a?void 0:null===(j=a.metadata)|| void 0===j?void 0:j.printnumber})]}),(0,I.jsxs)("div",{className:"p-1 text-center w-[15%]",children:[(0,I.jsx)("p",{children:null==b?void 0:b.priceTitle}),(0,I.jsx)(dt,{title:"",region:d.region,item:a})]}),(0,I.jsx)("div",{className:"w-[15%] bg-gray-50",children:(0,I.jsxs)("div",{className:"p-1 ml-3",children:[(0,I.jsx)(dp,{item:a,setBusy:h,setCarts:g}),(0,I.jsx)(dr,{id:a.id,setCarts:g,className:"mt-3 text-xl","data-testid":"cart-item-remove-button"})]})})]})}),(0,I.jsx)("div",{className:"block md:hidden",children:(0,I.jsxs)("div",{className:"flex border-5",children:[(0,I.jsxs)("div",{className:"flex-1 p-1",children:[(0,I.jsx)("div",{onClick:function(){return k(a.variant.product_id)},className:"flex items-center justify-center w-8 h-8 transition-colors duration-200 rounded-full cursor-pointer",children:i.includes(a.variant.product_id)?(0,I.jsx)(dd.Z,{className:"w-6 h-6 text-accent"}):(0,I.jsx)(dc.Z,{className:"w-6 h-6 text-gray-500 hover:text-accent"})}),(0,I.jsx)(am.r,{href:"".concat(f,"/products/").concat(a.variant.product.handle),className:"",children:(0,I.jsx)("img",{src:null!==a.thumbnail?a.thumbnail:void 0,alt:null==a?void 0:a.title,className:""})}),(0,I.jsxs)("div",{className:"flex gap-5",children:[(0,I.jsx)(dp,{item:a,setBusy:h,setCarts:g}),(0,I.jsx)(dr,{id:a.id,setCarts:g,className:"mt-3 text-xl","data-testid":"cart-item-remove-button"})]})]}),(0,I.jsxs)("div",{className:"flex-1 p-1 m-1",children:[(0,I.jsx)(am.r,{href:"".concat(f,"/products/").concat(a.variant.product.handle),className:"font-medium text-brand",children:a.title}),(0,I.jsx)("p",{className:"text-black",children:null==a?void 0:null===(l=a.variant)|| void 0===l?void 0:null===(m=l.product)|| void 0===m?void 0:m.material}),(0,I.jsx)(ds,{title:null==b?void 0:b.sizeTitle,variant:a.variant,"data-testid":"cart-item-variant","data-value":a.variant}),(0,I.jsxs)("p",{children:[null==b?void 0:b.numberTitle," ",(0,I.jsxs)("span",{className:"font-semibold",children:[" ",null==a?void 0:null===(n=a.metadata)|| void 0===n?void 0:n.printnumber]})]}),(0,I.jsx)(dt,{title:null==b?void 0:b.priceTitle,region:d.region,item:a})]})]})})]},a.id)})}):(0,I.jsxs)("div",{className:"flex flex-col items-center justify-center py-16 gap-y-4",children:[(0,I.jsx)("span",{children:null==b?void 0:b.bagEmpty}),(0,I.jsx)("div",{children:(0,I.jsx)(am.r,{href:"".concat(f,"/shop/"),children:(0,I.jsx)(af.z,{className:"",children:null==b?void 0:b.continueShopping})})})]})})},dv=function(f){var d,e,b=f.href,a=f.jsonData,g=(0,J.useState)(!1),i=g[0],j=g[1],h=(0,J.useState)([]),c=h[0],k=h[1];return(0,J.useEffect)(function(){var a;j(!0),(a=(0,n.Z)(m().mark(function a(){var b,c;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,dl.pe)();case 2:if(!(b=a.sent)){a.next=10;break}if(!(null==b?void 0:b.items.length)){a.next=9;break}return a.next=7,(0,dl.u1)(null==b?void 0:b.items,null==b?void 0:b.region_id);case 7:c=a.sent,b.items=c;case 9:k(b);case 10:j(!1);case 11:case"end":return a.stop()}},a)})),function(){return a.apply(this,arguments)})()},[]),(0,I.jsxs)("div",{className:"mt-3 md:mt-5",children:[i&&(0,I.jsx)(ah.Z,{}),(0,I.jsxs)("div",{className:"w-full md:flex md:gap-5",children:[(0,I.jsxs)("div",{className:"w-full md:w-3/4",children:[(0,I.jsxs)("div",{className:"flex items-center md:mb-3",children:[(0,I.jsx)("div",{className:"w-3/12 md:w-1/12",children:(0,I.jsx)(bK(),{loader:bL.vg,src:"shop/cart.png",alt:"Cart",width:"59",height:"59"})}),(0,I.jsx)("div",{className:"w-9/12 md:w-8/12",children:(0,I.jsx)(aG.Z,{type:"h4",text:null==a?void 0:a.title,className:""})}),(0,I.jsx)("div",{className:"hidden md:block md:w-3/12",children:(null===(d=c.items)|| void 0===d?void 0:d.length)>0&&(0,I.jsx)(af.z,{slim:!0,intent:"outline",href:"".concat(b,"/shop/"),children:null==a?void 0:a.continueShopping})})]}),(0,I.jsx)("div",{className:"block pt-4 pb-3 md:hidden",children:(0,I.jsx)(af.z,{slim:!0,intent:"outline",href:"".concat(b,"/shop/"),children:null==a?void 0:a.continueShopping})}),(0,I.jsx)(du,{cart:c,setBusy:j,setCarts:k,href:b,jsonData:a})]}),(0,I.jsx)("div",{className:"w-full md:w-1/4 md:mt-[77px]",children:(null===(e=c.items)|| void 0===e?void 0:e.length)>0&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(dk,{data:c,jsonData:a}),(0,I.jsx)(af.z,{href:"".concat(b,"/checkout"),className:"mt-5",children:null==a?void 0:a.checkoutCta})]})})]})]})};function dw(a){var b;return(null==a?void 0:null===(b=a.shipping_address)|| void 0===b?void 0:b.address_1)&&a.email?(null==a?void 0:a.shipping_methods.length)===0?"delivery":"payment":"address"}function dx(a){return dy.apply(this,arguments)}function dy(){return(dy=_async_to_generator(regeneratorRuntime.mark(function a(b){var c;return regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(c=void 0!==getCookie("_medusa_cart_id")?getCookie("_medusa_cart_id"):""){a.next=3;break}return a.abrupt("return","No cartId cookie found");
1case 3:return a.prev=3,a.next=6,updateCart(c,{discounts:[{code:b}]}).then(function(){});case 6:return a.abrupt("return",!0);case 9:return a.prev=9,a.t0=a.catch(3),a.abrupt("return",!1);case 12:case"end":return a.stop()}},a,null,[[3,9]])}))).apply(this,arguments)}function dz(a){return dA.apply(this,arguments)}function dA(){return(dA=_async_to_generator(regeneratorRuntime.mark(function a(b){var c;return regeneratorRuntime.wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(c=void 0!==getCookie("_medusa_cart_id")?getCookie("_medusa_cart_id"):""){a.next=3;break}return a.abrupt("return","No cartId cookie found");case 3:return a.prev=3,a.next=6,updateCart(c,{gift_cards:[{code:b}]}).then(function(){});case 6:return a.abrupt("return",!0);case 9:return a.prev=9,a.t0=a.catch(3),a.abrupt("return",!1);case 12:case"end":return a.stop()}},a,null,[[3,9]])}))).apply(this,arguments)}function dB(a){return dC.apply(this,arguments)}function dC(){return(dC=(0,n.Z)(m().mark(function a(b){var c;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(c=void 0!==(0,_.getCookie)("_medusa_cart_id")?(0,_.getCookie)("_medusa_cart_id"):""){a.next=3;break}throw Error("No cartId cookie found");case 3:return a.prev=3,a.next=6,(0,da.ns)({cartId:c,shippingMethodId:b});case 6:a.next=11;break;case 8:throw a.prev=8,a.t0=a.catch(3),a.t0;case 11:case"end":return a.stop()}},a,null,[[3,8]])}))).apply(this,arguments)}function dD(a){return dE.apply(this,arguments)}function dE(){return(dE=(0,n.Z)(m().mark(function a(b){var c,d;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(c=void 0!==(0,_.getCookie)("_medusa_cart_id")?(0,_.getCookie)("_medusa_cart_id"):""){a.next=3;break}throw Error("No cartId cookie found");case 3:return a.prev=3,a.next=6,(0,da.Lq)({cartId:c,providerId:b});case 6:return d=a.sent,a.abrupt("return",d);case 10:throw a.prev=10,a.t0=a.catch(3),a.t0;case 13:case"end":return a.stop()}},a,null,[[3,10]])}))).apply(this,arguments)}function dF(){return dG.apply(this,arguments)}function dG(){return(dG=(0,n.Z)(m().mark(function a(){var b,c;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(b=void 0!==(0,_.getCookie)("_medusa_cart_id")?(0,_.getCookie)("_medusa_cart_id"):""){a.next=3;break}throw Error("No cartId cookie found");case 3:return a.prev=4,a.next=7,(0,da.uO)(b);case 7:c=a.sent,a.next=13;break;case 10:throw a.prev=10,a.t0=a.catch(4),a.t0;case 13:return(null==c?void 0:c.type)==="order"&&cF.Z.set("_medusa_cart_id","",{expires:-1,path:"/",secure:!0,sameSite:"strict"}),a.abrupt("return",c);case 15:case"end":return a.stop()}},a,null,[[4,10]])}))).apply(this,arguments)}var dH=function(c){var a=(0,aw.Z)({},c),b=a.jsonData,d=a.fnameD,e=a.lnameD,f=a.streetD,g=a.houseD,h=a.zipD,i=a.cityD,j=a.emailD,k=a.phoneD,l=a.fnameDReq,m=a.lnameDReq,n=a.streetDReq,o=a.houseDReq,p=a.zipDReq,q=a.cityDReq,r=a.emailDReq,s=a.phoneDReq,t=a.setFnameD,u=a.setLnameD,v=a.setStreetD,w=a.setHouseD,x=a.setZipD,y=a.setCityD,z=a.setEmailD,A=a.setPhoneD,B=a.setFnameDReq,C=a.setLnameDReq,D=a.setStreetDReq,E=a.setHouseDReq,F=a.setZipDReq,G=a.setCityDReq,H=a.setEmailDReq,J=a.setPhoneDReq;return(0,I.jsxs)("div",{className:"p-3",children:[(0,I.jsx)("p",{children:null==b?void 0:b.nameTitle}),(0,I.jsxs)("div",{className:"flex gap-3",children:[(0,I.jsxs)("div",{className:"flex-1",children:[(0,I.jsx)("input",{type:"text",name:"fnameD",value:d,placeholder:null==b?void 0:b.fnameLabel,onChange:function(a){t(a.target.value),B(!1)},className:"h-[50px] border-1 border-solid border-silver bg-white p-[18px] px-[14px] w-full max-md:mb-5"}),l&&(0,I.jsx)("p",{className:"errorMsg",children:ag.Z.getValidation("enter_fname")})]}),(0,I.jsxs)("div",{className:"flex-1",children:[(0,I.jsx)("input",{type:"text",name:"lnameD",value:e,placeholder:null==b?void 0:b.lnameLabel,onChange:function(a){u(a.target.value),C(!1)},className:"h-[50px] border-1 border-solid border-silver bg-white p-[18px] px-[14px] w-full max-md:mb-5"}),m&&(0,I.jsx)("p",{className:"errorMsg",children:ag.Z.getValidation("enter_lname")})]})]}),(0,I.jsx)("p",{className:"mt-3",children:null==b?void 0:b.addressTitle}),(0,I.jsxs)("div",{className:"flex gap-3",children:[(0,I.jsxs)("div",{className:"w-3/4",children:[(0,I.jsx)("input",{type:"text",name:"streeD",value:f,placeholder:null==b?void 0:b.addressLabel,onChange:function(a){v(a.target.value),D(!1)},className:"h-[50px] border-1 border-solid border-silver bg-white p-[18px] px-[14px] w-full max-md:mb-5"}),n&&(0,I.jsx)("p",{className:"errorMsg",children:ag.Z.getValidation("enter_street")})]}),(0,I.jsxs)("div",{className:"w-1/4",children:[(0,I.jsx)("input",{type:"text",name:"houseD",value:g,placeholder:null==b?void 0:b.houseNumberLabel,onChange:function(a){w(a.target.value),E(!1)},className:"h-[50px] border-1 border-solid border-silver bg-white p-[18px] px-[14px] w-full max-md:mb-5"}),o&&(0,I.jsx)("p",{className:"errorMsg",children:ag.Z.getValidation("enter_house")})]})]}),(0,I.jsxs)("div",{className:"flex gap-3 mt-3",children:[(0,I.jsxs)("div",{className:"w-1/4",children:[(0,I.jsx)("input",{type:"text",name:"zipD",value:h,placeholder:null==b?void 0:b.zipLabel,onChange:function(a){x(a.target.value),F(!1)},className:"h-[50px] border-1 border-solid border-silver bg-white p-[18px] px-[14px] w-full max-md:mb-5"}),p&&(0,I.jsx)("p",{className:"errorMsg",children:ag.Z.getValidation("enter_zip")})]}),(0,I.jsxs)("div",{className:"w-3/4",children:[(0,I.jsx)("input",{type:"text",name:"cityD",value:i,placeholder:null==b?void 0:b.cityLabel,onChange:function(a){y(a.target.value),G(!1)},className:"h-[50px] border-1 border-solid border-silver bg-white p-[18px] px-[14px] w-full max-md:mb-5"}),q&&(0,I.jsx)("p",{className:"errorMsg",children:ag.Z.getValidation("enter_city")})]})]}),(0,I.jsx)("p",{className:"mt-3",children:null==b?void 0:b.contactTitle}),(0,I.jsxs)("div",{className:"flex gap-3",children:[(0,I.jsxs)("div",{className:"w-3/5",children:[(0,I.jsx)("input",{type:"email",name:"emailD",value:j,placeholder:null==b?void 0:b.emailLabel,onChange:function(a){z(a.target.value),H(!1)},className:"h-[50px] border-1 border-solid border-silver bg-white p-[18px] px-[14px] w-full max-md:mb-5"}),r&&(0,I.jsx)("p",{className:"errorMsg",children:ag.Z.getValidation("email_valid")})]}),(0,I.jsxs)("div",{className:"w-2/5",children:[(0,I.jsx)("input",{type:"text",name:"phoneD",value:k,placeholder:null==b?void 0:b.phoneLabel,onChange:function(a){A(a.target.value),J(!1)},className:"h-[50px] border-1 border-solid border-silver bg-white p-[18px] px-[14px] w-full max-md:mb-5"}),s&&(0,I.jsx)("p",{className:"errorMsg",children:ag.Z.getValidation("enter_phone")})]})]})]})},dI=function(c){var a=(0,aw.Z)({},c),b=a.jsonData,d=a.fnameB,e=a.lnameB,f=a.streetB,g=a.houseB,h=a.zipB,i=a.cityB,j=a.phoneB,k=a.fnameBReq,l=a.lnameBReq,m=a.streetBReq,n=a.houseBReq,o=a.zipBReq,p=a.cityBReq,q=a.phoneBReq,r=a.setFnameB,s=a.setLnameB,t=a.setStreetB,u=a.setHouseB,v=a.setZipB,w=a.setCityB,x=a.setPhoneB,y=a.setFnameBReq,z=a.setLnameBReq,A=a.setStreetBReq,B=a.setHouseBReq,C=a.setZipBReq,D=a.setCityBReq,E=a.setPhoneBReq;return(0,I.jsxs)("div",{className:"p-3",children:[(0,I.jsx)("p",{children:null==b?void 0:b.nameTitle}),(0,I.jsxs)("div",{className:"flex gap-3",children:[(0,I.jsxs)("div",{className:"flex-1",children:[(0,I.jsx)("input",{type:"text",name:"fnameB",value:d,placeholder:null==b?void 0:b.fnameLabel,onChange:function(a){r(a.target.value),y(!1)},className:"h-[50px] border-1 border-solid border-silver bg-white p-[18px] px-[14px] w-full max-md:mb-5"}),k&&(0,I.jsx)("p",{className:"errorMsg",children:ag.Z.getValidation("enter_fname")})]}),(0,I.jsxs)("div",{className:"flex-1",children:[(0,I.jsx)("input",{type:"text",name:"lnameB",value:e,placeholder:null==b?void 0:b.lnameLabel,onChange:function(a){s(a.target.value),z(!1)},className:"h-[50px] border-1 border-solid border-silver bg-white p-[18px] px-[14px] w-full max-md:mb-5"}),l&&(0,I.jsx)("p",{className:"errorMsg",children:ag.Z.getValidation("enter_lname")}
1)]})]}),(0,I.jsx)("p",{className:"mt-3",children:null==b?void 0:b.addressTitle}),(0,I.jsxs)("div",{className:"flex gap-3",children:[(0,I.jsxs)("div",{className:"w-3/4",children:[(0,I.jsx)("input",{type:"text",name:"streeB",value:f,placeholder:null==b?void 0:b.addressLabel,onChange:function(a){t(a.target.value),A(!1)},className:"h-[50px] border-1 border-solid border-silver bg-white p-[18px] px-[14px] w-full max-md:mb-5"}),m&&(0,I.jsx)("p",{className:"errorMsg",children:ag.Z.getValidation("enter_street")})]}),(0,I.jsxs)("div",{className:"w-1/4",children:[(0,I.jsx)("input",{type:"text",name:"houseB",value:g,placeholder:null==b?void 0:b.houseNumberLabel,onChange:function(a){u(a.target.value),B(!1)},className:"h-[50px] border-1 border-solid border-silver bg-white p-[18px] px-[14px] w-full max-md:mb-5"}),n&&(0,I.jsx)("p",{className:"errorMsg",children:ag.Z.getValidation("enter_house")})]})]}),(0,I.jsxs)("div",{className:"flex gap-3 mt-3",children:[(0,I.jsxs)("div",{className:"w-1/4",children:[(0,I.jsx)("input",{type:"text",name:"zipB",value:h,placeholder:null==b?void 0:b.zipLabel,onChange:function(a){v(a.target.value),C(!1)},className:"h-[50px] border-1 border-solid border-silver bg-white p-[18px] px-[14px] w-full max-md:mb-5"}),o&&(0,I.jsx)("p",{className:"errorMsg",children:ag.Z.getValidation("enter_zip")})]}),(0,I.jsxs)("div",{className:"w-3/4",children:[(0,I.jsx)("input",{type:"text",name:"cityB",value:i,placeholder:null==b?void 0:b.cityLabel,onChange:function(a){w(a.target.value),D(!1)},className:"h-[50px] border-1 border-solid border-silver bg-white p-[18px] px-[14px] w-full max-md:mb-5"}),p&&(0,I.jsx)("p",{className:"errorMsg",children:ag.Z.getValidation("enter_city")})]})]}),(0,I.jsx)("p",{className:"mt-3",children:null==b?void 0:b.contactTitle}),(0,I.jsxs)("div",{className:"w-full",children:[(0,I.jsx)("input",{type:"text",name:"phoneB",value:j,placeholder:null==b?void 0:b.phoneLabel,onChange:function(a){x(a.target.value),E(!1)},className:"h-[50px] border-1 border-solid border-silver bg-white p-[18px] px-[14px] w-full max-md:mb-5"}),q&&(0,I.jsx)("p",{className:"errorMsg",children:ag.Z.getValidation("enter_phone")})]})]})},dJ=function(a){var g,h=a.cart,b=a.availableShippingMethods,i=a.errorMsgShipping,j=a.shippingReq,k=a.setShippingReq,o=a.getUpdatedCart,c=(0,J.useState)(!1),l=c[0],p=c[1],d=(0,J.useState)(""),q=d[0],r=d[1],e=(0,J.useState)(null),f=e[0],s=e[1],t=(g=(0,n.Z)(m().mark(function a(b){return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return p(!0),a.next=3,dB(b).then(function(){p(!1)}).catch(function(a){s(a.toString())});case 3:return a.next=5,o();case 5:p(!1);case 6:case"end":return a.stop()}},a)})),function(a){return g.apply(this,arguments)}),u=function(a){t(a),k(!1),r(a)};return(0,J.useEffect)(function(){var a;p(!1),s(null),k(!1),r(null===(a=h.shipping_methods[0])|| void 0===a?void 0:a.shipping_option_id)},[h.shipping_methods,k]),(0,I.jsxs)("div",{className:"mt-2","data-testid":"delivery-options-container",children:[l&&(0,I.jsx)(ah.Z,{}),(0,I.jsxs)("div",{className:"pb-4",children:[(0,I.jsx)("div",{children:b?b.map(function(a,c){var b="".concat(a.id,"-").concat(c);return(0,I.jsxs)("div",{className:"flex items-center justify-between cursor-pointer py-2 border rounded-md px-4 mb-2 hover:shadow ".concat(q===a.id&&"border-brand shadow"),children:[(0,I.jsxs)("div",{className:"flex items-center gap-x-4",children:[(0,I.jsx)("input",{type:"radio",name:"shippingoption",id:b,onChange:function(){return u(a.id)},checked:q===a.id,value:a.id,className:"focus:ring-brand checked:bg-brand"}),(0,I.jsx)("label",{htmlFor:b,className:"font-medium cursor-pointer",children:a.name})]}),(0,I.jsx)("span",{className:"font-bold justify-self-end text-brand",children:(0,dj.dN)({amount:a.amount,region:null==h?void 0:h.region,includeTaxes:!1})})]},a.id)}):(0,I.jsx)("div",{className:"flex flex-col items-center justify-center px-4 py-8 text-ui-fg-base",children:(0,I.jsx)(ah.Z,{})})}),f&&(0,I.jsx)("p",{className:"errorMsg",children:f}),j&&(0,I.jsx)("p",{className:"errorMsg",children:i})]})]})},dK=a(26719),dL=function(a){var c,d,b=a.cart,h=a.errorMsgPayment,i=a.paymentReq,j=a.setPaymentReq,m=a.paymentId,k=a.setPaymentId,e=(0,J.useState)(!1),l=e[0],n=e[1],f=(0,J.useState)(null),g=f[0],o=f[1],p=function(a){o(null),j(!1),k(a)};return(0,J.useEffect)(function(){var a;n(!1),o(null),j(!1),k((null===(a=b.payment_session)|| void 0===a?void 0:a.provider_id)||null)},[null===(c=b.payment_session)|| void 0===c?void 0:c.provider_id,k,j]),(0,I.jsxs)("div",{className:"mt-2",children:[l&&(0,I.jsx)(ah.Z,{}),(null==b?void 0:null===(d=b.payment_sessions)|| void 0===d?void 0:d.length)?(0,I.jsx)("div",{children:b.payment_sessions.sort(function(a,b){return a.provider_id>b.provider_id?1:-1}).map(function(a){var b,c;return"manual-demo"!==a.provider_id&&(0,I.jsx)("div",{className:"flex items-center justify-between cursor-pointer py-2 border rounded-md px-4 mb-2 hover:shadow ".concat(m===a.provider_id&&"border-brand shadow"),children:(0,I.jsxs)("div",{className:"flex items-center justify-between ",children:[(0,I.jsxs)("div",{className:"flex items-center gap-x-4",children:[(0,I.jsx)("input",{type:"radio",name:"paymentoption",id:a.provider_id,checked:m===a.provider_id,value:a.provider_id,onChange:function(){return p(a.provider_id)},className:"focus:ring-brand checked:bg-brand"}),(0,I.jsx)("label",{htmlFor:a.provider_id,className:"font-medium cursor-pointer",children:(null===(b=dK.G[a.provider_id])|| void 0===b?void 0:b.title)||a.provider_id})]}),(0,I.jsx)("span",{className:"ml-1 justify-self-end",children:null===(c=dK.G[a.provider_id])|| void 0===c?void 0:c.icon})]})},a.id)})}):(0,I.jsx)("div",{className:"flex flex-col items-center justify-center px-4 py-16 text-ui-fg-base",children:(0,I.jsx)(ah.Z,{})}),g&&(0,I.jsx)("p",{className:"errorMsg",children:g}),i&&(0,I.jsx)("p",{className:"mb-2 errorMsg",children:h})]})},dM=a(86664);function dN(a){var f,g,l=a.href,h=a.ctatitle,o=a.providerName,p=a.errorMsg,i=(0,dM.useStripe)(),j=(0,dM.useElements)(),b=(0,cq.Z)(J.useState(null),2),c=b[0],q=b[1],d=(0,cq.Z)(J.useState(!1),2),e=d[0],r=d[1],s=(f=(0,n.Z)(m().mark(function a(){var b;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,dF();case 3:(null==(b=a.sent)?void 0:b.type)==="order"?K().push("".concat(l,"/success")):K().push("".concat(l,"/cart")),a.next=11;break;case 7:a.prev=7,a.t0=a.catch(0),r(!1),q(a.t0.toString());case 11:case"end":return a.stop()}},a,null,[[0,7]])})),function(){return f.apply(this,arguments)}),k=(g=(0,n.Z)(m().mark(function a(b){var c,d,e,f;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(b.preventDefault(),q(null),!(!i||!j)){a.next=4;break}return a.abrupt("return");case 4:if(r(!0),"stripe"!==o){a.next=14;break}return a.next=8,i.confirmPayment({elements:j,confirmParams:{},redirect:"if_required"});case 8:d=(c=a.sent).error,e=c.paymentIntent,d?(q(p),r(!1)):e&&e.status?s():(q(p),r(!1)),a.next=18;break;case 14:return a.next=16,i.confirmPayment({elements:j,confirmParams:{return_url:"".concat("https://www.brillen.de").concat(l,"/processpayment")}});case 16:(f=a.sent.error)&&(q(p),r(!1));case 18:case"end":return a.stop()}},a)})),function(a){return g.apply(this,arguments)});return(0,I.jsxs)("div",{className:"container mx-auto",children:[e&&(0,I.jsx)(ah.Z,{}),(0,I.jsxs)("form",{id:"payment-form",onSubmit:k,children:[(0,I.jsx)(dM.PaymentElement,{id:"payment-element",options:{layout:"auto"}}),(0,I.jsx)("div",{className:"flex items-center justify-end mt-3",children:(0,I.jsx)(af.z,{className:"w-full md:w-[50%]",slim:!1,fullWidth:!1,intent:"primary",disabled:e||!i||!j,id:"submit",children:h})}),c&&(0,I.jsx)("div",{className:"errorMsg",id:"payment-message",children:c})]})]})}var dO=function(f){var b=(0,aw.Z)({},f),g=b.href,c=b.clientSecret,h=b.paynowCta,i=b.providerName,d=(0,J.useState)(null),j=d[0],l=d[1];(0,J.useEffect)(function(){var b;(b=(0,n.Z)(m().mark(function b(){var c,d,e;return m().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.next=2,a.e(465).then(a.bind(a,54465));case 2:return c=b.sent.loadStripe,d="pk_test_51LawxlGEQ2wA5MH6KP0hzZvEQ4YJROuMZW3bgsOQTqszeY819fEnC5AmWe08Tn4r1IJJIaFKVXjlO6E3NiABzC2f00J4YfLIsQ",b.next=6,c(d);case 6:l(e=b.sent);case 8:case"end":return b.stop()}},b)})),function(){return b.apply(this,arguments)})()},[]);var k={clientSecret:c,appearance:{theme:"stripe",variables:{colorPrimary:"#76b82a"}},locale:e.Z.getCurrentLocale()};return(0,I.jsx)("div",{className:"",children:(0,I.jsx)("div",{className:"z-[9999] fixed inset-0 flex items-center justify-center overflow-y-auto bg-gray-900 bg-opacity-50",children:(0,I.jsx)("div",{className:"relative max-h-full p-3 overflow-y-auto bg-white rounded-lg shadow-lg w-[95%] md:w-[40%]",children:c&&(0,I.jsx)(dM.Elements,{options:k,stripe:j,children:(0,I.jsx)(dN,{href:g,providerName:i,ctatitle:h,errorMsg:ag.Z.getValidation("try_after_sometime")}
1)})})})})},dP=function(c){var d,e,f,g,h,i,j,k,l,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,L,M,a=c.cart,b=c.jsonData,N=c.href,E=(0,J.useState)(!1),D=E[0],R=E[1],F=(0,J.useState)(!1),O=F[0],S=F[1],G=(0,J.useState)(null),H=G[0],T=G[1],P=(L=(0,n.Z)(m().mark(function a(){return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:S(!0);case 1:case"end":return a.stop()}},a)})),function(){return L.apply(this,arguments)}),Q=(M=(0,n.Z)(m().mark(function a(){var b;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return R(!0),T(null),a.prev=2,a.next=5,dF();case 5:(null==(b=a.sent)?void 0:b.type)==="order"?K().push("".concat(N,"/success")):K().push("".concat(N,"/cart")),a.next=13;break;case 9:a.prev=9,a.t0=a.catch(2),R(!1),T(a.t0.toString());case 13:case"end":return a.stop()}},a,null,[[2,9]])})),function(){return M.apply(this,arguments)});return(0,I.jsxs)("div",{className:"","data-testid":"delivery-options-container",children:[D&&(0,I.jsx)(ah.Z,{}),(0,I.jsxs)("div",{className:"w-full md:flex md:gap-4",children:[(0,I.jsx)("div",{className:"flex-1",children:(0,I.jsxs)("div",{className:"p-3 bg-gray-50",children:[(0,I.jsx)(aG.Z,{type:"h5",text:null==b?void 0:b.deliveryAddressitle,className:""}),(0,I.jsxs)("p",{className:"text-brand",children:[null==a?void 0:a.email,", "," ",null==a?void 0:null===(d=a.shipping_address)|| void 0===d?void 0:d.phone]}),(0,I.jsxs)("p",{className:"",children:[null==a?void 0:null===(e=a.shipping_address)|| void 0===e?void 0:e.first_name," ",null==a?void 0:null===(f=a.shipping_address)|| void 0===f?void 0:f.last_name]}),(0,I.jsxs)("p",{className:"",children:[null==a?void 0:null===(g=a.shipping_address)|| void 0===g?void 0:g.address_1," ",null==a?void 0:null===(h=a.shipping_address)|| void 0===h?void 0:h.address_2]}),(0,I.jsxs)("p",{className:"",children:[null==a?void 0:null===(i=a.shipping_address)|| void 0===i?void 0:i.postal_code,", ",null==a?void 0:null===(j=a.shipping_address)|| void 0===j?void 0:j.city]}),(null==a?void 0:a.billing_address)&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(aG.Z,{type:"h5",text:null==b?void 0:b.billingAddressTitle,className:"mt-3"}),(0,I.jsx)("p",{className:"text-brand",children:null==a?void 0:null===(k=a.billing_address)|| void 0===k?void 0:k.phone}),(0,I.jsxs)("p",{className:"",children:[null==a?void 0:null===(l=a.billing_address)|| void 0===l?void 0:l.first_name," ",null==a?void 0:null===(o=a.billing_address)|| void 0===o?void 0:o.last_name]}),(0,I.jsxs)("p",{className:"",children:[null==a?void 0:null===(p=a.billing_address)|| void 0===p?void 0:p.address_1," ",null==a?void 0:null===(q=a.billing_address)|| void 0===q?void 0:q.address_2]}),(0,I.jsxs)("p",{className:"",children:[null==a?void 0:null===(r=a.billing_address)|| void 0===r?void 0:r.postal_code,", ",null==a?void 0:null===(s=a.billing_address)|| void 0===s?void 0:s.city]})]})]})}),(0,I.jsxs)("div",{className:"flex-1 max-md:mt-3",children:[(0,I.jsxs)("div",{className:"p-3 bg-gray-50",children:[(0,I.jsx)(aG.Z,{type:"h5",text:null==b?void 0:b.shippingTitle,className:""}),a&&(null==a?void 0:a.shipping_methods)&&(0,I.jsx)("p",{className:"text-brand",children:null===(t=null==a?void 0:a.shipping_methods[0])|| void 0===t?void 0:null===(u=t.shipping_option)|| void 0===u?void 0:u.name}),(0,I.jsx)(aG.Z,{type:"h5",text:null==b?void 0:b.paymentTitle,className:"mt-3"}),a&&(null==a?void 0:a.payment_session)&&(0,I.jsx)("p",{className:"text-brand",children:(null===(w=dK.G[null==a?void 0:null===(v=a.payment_session)|| void 0===v?void 0:v.provider_id])|| void 0===w?void 0:w.title)||(null==a?void 0:null===(x=a.payment_session)|| void 0===x?void 0:x.provider_id)})]}),(0,I.jsx)("div",{className:"p-3 mt-3 bg-gray-50",children:a&&(null==a?void 0:a.items)&&(null==a?void 0:null===(y=a.items)|| void 0===y?void 0:y.map(function(c){var d,e;return(0,I.jsx)("div",{className:"pb-2 mb-2 border-b last:pb-0 last:border-b-0",children:(0,I.jsxs)("div",{className:"flex gap-2",children:[(0,I.jsx)("div",{className:"",children:(0,I.jsx)(am.r,{href:"".concat(N,"/products/").concat(c.variant.product.handle),className:"",children:(0,I.jsx)("img",{src:null!==c.thumbnail?c.thumbnail:void 0,alt:null==c?void 0:c.title,className:"w-16"})})}),(0,I.jsxs)("div",{className:"relative pr-2 bdrright50",children:[(0,I.jsx)(am.r,{href:"".concat(N,"/products/").concat(c.variant.product.handle),className:"font-medium text-brand",children:c.title}),(null==c?void 0:null===(d=c.metadata)|| void 0===d?void 0:d.printnumber)&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("p",{children:null==b?void 0:b.numberTitle}),(0,I.jsx)("p",{className:"font-semibold",children:null==c?void 0:null===(e=c.metadata)|| void 0===e?void 0:e.printnumber})]})]}),(0,I.jsxs)("div",{className:"relative pr-2 bdrright50",children:[(0,I.jsx)("p",{children:null==b?void 0:b.sizeTitle}),(0,I.jsx)(ds,{title:"",variant:c.variant,"data-testid":"cart-item-variant","data-value":c.variant})]}),(0,I.jsxs)("div",{children:[(0,I.jsx)("p",{children:null==b?void 0:b.priceTitle}),(0,I.jsx)(dt,{title:"",region:a.region,item:c})]})]})},c.id)}))})]}),(0,I.jsxs)("div",{className:"flex-1 max-md:mt-3",children:[(0,I.jsx)("div",{className:"p-3 bg-gray-50",children:(0,I.jsx)(dk,{data:a,jsonData:b})}),(0,I.jsx)(aG.Z,{type:"h4",text:null==b?void 0:b.orderCorrect,className:"p-3 text-center text-brand"}),H&&(0,I.jsx)("p",{className:"errorMsg",children:H}),(0,I.jsx)("div",{className:"flex items-center justify-center mt-1",children:(null==a?void 0:null===(z=a.payment_session)|| void 0===z?void 0:z.provider_id)!=="manual"?(0,I.jsx)(af.z,{onClick:P,className:"",fullWidth:!0,disabled:D,children:null==b?void 0:b.ctaOrderNow}):(0,I.jsxs)("div",{children:[(0,I.jsx)("p",{className:"mb-2 font-medium text-center text-red",children:"If any order with this payment method not fulfillment by us!!!"}),(0,I.jsx)(af.z,{onClick:Q,className:"",fullWidth:!0,disabled:D,children:null==b?void 0:b.ctaOrderNow})]})})]})]}),O&&a&&(0,I.jsx)(dO,{href:N,providerName:null==a?void 0:null===(A=a.payment_session)|| void 0===A?void 0:A.provider_id,clientSecret:null==a?void 0:null===(B=a.payment_session)|| void 0===B?void 0:null===(C=B.data)|| void 0===C?void 0:C.client_secret,paynowCta:null==b?void 0:b.ctaOrderNow})]})},dQ=function(c,d){var a,b;return a=c,b=d,a.first_name!==b.first_name||a.last_name!==b.last_name||a.address_1!==b.address_1||a.address_2!==b.address_2||a.city!==b.city||a.postal_code!==b.postal_code||a.phone!==b.phone},dR=function(f){var Y,c=f.href,a=f.jsonData,g=(0,J.useState)(!1),Z=g[0],bl=g[1],h=(0,J.useState)(""),bm=h[0],bn=h[1],i=(0,J.useState)(!1),d=i[0],bo=i[1],j=(0,J.useState)(!1),k=j[0],bp=j[1],l=(0,J.useState)(""),$=l[0],aa=l[1],o=(0,J.useState)(!1),ab=o[0],ac=o[1],p=(0,J.useState)(""),ad=p[0],ae=p[1],q=(0,J.useState)(!1),ag=q[0],ai=q[1],r=(0,J.useState)(""),aj=r[0],ak=r[1],s=(0,J.useState)(!1),al=s[0],an=s[1],t=(0,J.useState)(""),ao=t[0],ap=t[1],u=(0,J.useState)(!1),aq=u[0],ar=u[1],v=(0,J.useState)(""),as=v[0],at=v[1],w=(0,J.useState)(!1),au=w[0],av=w[1],x=(0,J.useState)(""),aw=x[0],ax=x[1],y=(0,J.useState)(!1),ay=y[0],az=y[1],z=(0,J.useState)(""),aA=z[0],aB=z[1],A=(0,J.useState)(!1),aC=A[0],aD=A[1],B=(0,J.useState)(""),aE=B[0],aF=B[1],C=(0,J.useState)(!1),aH=C[0],aI=C[1],D=(0,J.useState)(""),aJ=D[0],aK=D[1],E=(0,J.useState)(!1),aL=E[0],aM=E[1],F=(0,J.useState)(""),aN=F[0],aO=F[1],G=(0,J.useState)(!1),aP=G[0],aQ=G[1],H=(0,J.useState)(""),aR=H[0],aS=H[1],K=(0,J.useState)(!1),aT=K[0],aU=K[1],L=(0,J.useState)(""),aV=L[0],aW=L[1],M=(0,J.useState)(!1),aX=M[0],aY=M[1],N=(0,J.useState)(""),aZ=N[0],a$=N[1],O=(0,J.useState)(!1),a_=O[0],a0=O[1],P=(0,J.useState)(""),a1=P[0],a2=P[1],Q=(0,J.useState)(!1),a3=Q[0],a4=Q[1],R=(0,J.useState)(""),a5=R[0],a6=R[1],S=(0,J.useState)(!1),a7=S[0],a8=S[1],T=(0,J.useState)(!1),a9=T[0],ba=T[1],U=(0,J.useState)(!1),bb=U[0],bc=U[1],V=(0,J.useState)(""),bd=V[0],be=V[1],W=(0,J.useState)([]),e=W[0],bq=W[1],X=(0,J.useState)([]),b=X[0],br=X[1];(0,J.useEffect)(function(){var a;bl(!0),(a=(0,n.Z)(m().mark(function a(){var b,d,e,f,g,h;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(bn(b=void 0!==(0,_.getCookie)("_medusa_cart_id")?(0,_.getCookie)("_medusa_cart_id"):""),!b){a.next=23;break}return a.next=5,(0,da.hf)(b).then(function(a){return a});case 5:if(!(d=a.sent)){a.next=20;break}return d.checkout_step=d&&dw(d),br(d),e=null==d?void 0:d.shipping_address,f=null==d?void 0:d.billing_address,aB(null==d?void 0:d.email),e&&(aa(null==e?void 0:e.first_name),ae(null==e?void 0:e.last_name),ak(null==e?void 0:e.address_1),ap(null==e?void 0:e.address_2),at(null==e?void 0:e.postal_code),ax(null==e?void 0:e.city),aF(null==e?void 0:e.phone)),f&&(g=dQ(null==d?void 0:d.shipping_address,null==d?void 0:d.billing_address),bp(g),aK(null==f?void 0:f.first_name),aO(null==f?void 0:f.last_name),aS(null==f?void 0:f.address_1),aW(null==f?void 0:f.address_2),a$(null==f?void 0:f.postal_code),a2(null==f?void 0:f.city),a6(null==f?void 0:f.phone)),a.next=16,(0,da.k1)(d.id).then(function(a){return null==a?void 0:a.filter(function(a){return!a.is_return})});case 16:(h=a.sent)&&bq(h),a.next=21;break;case 20:window.location.href="".concat(c,"/shop");case 21:a.next=24;break;case 23:window.location.href="".concat(c,"/shop");case 24:bl(!1);case 25:case"end":return a.stop()}},a)})),function(){return a.apply(this,arguments)})()},[c]);var bf,bg,bh,bi=(Y=(0,n.Z)(m().mark(function a(){var b;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(!bm){a.next=5;break}return a.next=3,(0,da.dv)(bm).then(function(a){return a});case 3:br(b=a.sent);case 5:case"end":return a.stop()}},a)})),function(){return Y.apply(this,arguments)}),bs=(bf=(0,n.Z)(m().mark(function a(){var b;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,dD(bd).catch().finally(function(){});case 2:(b=a.sent)&&(br(b),bo(!0)),bl(!1);case 5:case"end":return a.stop()}},a)})),function(){return bf.apply(this,arguments)}),bj=(bg=(0,n.Z)(m().mark(function a(){var c,d,e;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if($){a.next=4;break}ac(!0),a.next=84;break;case 4:if(ad){a.next=8;break}ai(!0),a.next=84;break;case 8:if(aj){a.next=12;break}an(!0),a.next=84;break;case 12:if(ao){a.next=16;break}ar(!0),a.next=84;break;case 16:if(as){a.next=20;break}av(!0),a.next=84;break;case 20:if(aw){a.next=24;break}az(!0),a.next=84;break;case 24:if(/^(([^<>()\\[\]\\.,;:\s@"]+(\.[^<>()\\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(aA)){a.next=28;break}aD(!0),a.next=84;break;case 28:if(aE){a.next=32;break}aI(!0),a.next=84;break;case 32:if(!(k&&!aJ)){a.next=36;break}aM(!0),a.next=84;break;case 36:if(!(k&&!aN)){a.next=40;break}aQ(!0),a.next=84;break;case 40:if(!(k&&!aR)){a.next=44;break}aU(!0),a.next=84;break;case 44:if(!(k&&!aV)){a.next=48;break}aY(!0),a.next=84;break;case 48:if(!(k&&!aZ)){a.next=52;break}a0(!0),a.next=84;break;case 52:if(!(k&&!a1)){a.next=56;break}a4(!0),a.next=84;break;case 56:if(!(k&&!a5)){a.next=60;break}a8(!0),a.next=84;break;case 60:if((null==b?void 0:b.shipping_methods.length)!==0){a.next=64;break}ba(!0),a.next=84;break;case 64:if(bd){a.next=68;break}bc(!0),a.next=84;break;case 68:return c={email:aA,shipping_address:{first_name:$,last_name:ad,company:"",address_1:aj,address_2:ao,city:aw,postal_code:as,province:"",country_code:"de",phone:aE}},k?c.billing_address={first_name:aJ,last_name:aN,company:"",address_1:aR,address_2:aV,city:a1,postal_code:aZ,province:"",country_code:"de",phone:a5}:c.billing_address={first_name:$,last_name:ad,company:"",address_1:aj,address_2:ao,city:aw,postal_code:as,province:"",country_code:"de",phone:aE},d=!1,bl(!0),a.prev=72,a.next=75,(0,da.xu)(bm,c);case 75:e=a.sent,d=!0,br(e),a.next=83;break;case 80:a.prev=80,a.t0=a.catch(72),bl(!1);case 83:d?bs():bl(!1);case 84:case"end":return a.stop()}},a,null,[[72,80]])})),function(){return bg.apply(this,arguments)}),bk=(bh=(0,n.Z)(m().mark(function a(){return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:bo(!1);case 1:case"end":return a.stop()}},a)})),function(){return bh.apply(this,arguments)});return(0,I.jsxs)("div",{className:"mt-3 md:mt-5",children:[Z&&(0,I.jsx)(ah.Z,{}),d?(0,I.jsx)("div",{onClick:bk,className:"font-medium underline cursor-pointer text-accent",children:null==a?void 0:a.backLabel}):(0,I.jsx)(am.r,{href:"".concat(c,"/cart"),className:"font-medium underline text-accent",children:null==a?void 0:a.backLabel}),(0,I.jsx)("div",{className:"w-full mt-3",children:(0,I.jsxs)("div",{className:"flex items-center md:mb-3",children:[(0,I.jsx)("div",{className:"w-3/12 md:w-1/12",children:(0,I.jsx)(bK(),{loader:bL.vg,src:"shop/cart.png",alt:"Cart",width:"59",height:"59"})}),(0,I.jsx)("div",{className:"w-9/12 md:w-8/12",children:(0,I.jsx)(aG.Z,{type:"h4",text:d?null==a?void 0:a.reviewTitle:null==a?void 0:a.dataTitle,className:""})})]})}),d?(0,I.jsx)(dP,{cart:b,jsonData:a,href:c}):(0,I.jsxs)("div",{className:"w-full md:flex md:gap-4",children:[(0,I.jsxs)("div",{className:"flex-1 bg-gray-50",children:[(0,I.jsx)(aG.Z,{type:"h5",text:null==a?void 0:a.deliveryAddressitle,className:"px-3 pt-3"}),(0,I.jsx)(dH,{jsonData:a,fnameD:$,lnameD:ad,streetD:aj,houseD:ao,zipD:as,cityD:aw,emailD:aA,ph
1oneD:aE,fnameDReq:ab,lnameDReq:ag,streetDReq:al,houseDReq:aq,zipDReq:au,cityDReq:ay,emailDReq:aC,phoneDReq:aH,setFnameD:aa,setLnameD:ae,setStreetD:ak,setHouseD:ap,setZipD:at,setCityD:ax,setEmailD:aB,setPhoneD:aF,setFnameDReq:ac,setLnameDReq:ai,setStreetDReq:an,setHouseDReq:ar,setZipDReq:av,setCityDReq:az,setEmailDReq:aD,setPhoneDReq:aI}),(0,I.jsx)("div",{className:"h-5 bg-white"}),(0,I.jsxs)("div",{className:"flex",children:[(0,I.jsx)("div",{className:"flex-1",children:(0,I.jsx)(aG.Z,{type:"h5",text:null==a?void 0:a.billingAddressTitle,className:"p-3"})}),(0,I.jsx)("div",{className:"flex-1",children:k?(0,I.jsx)("div",{onClick:function(){bp(!1)},className:"px-3 pt-3 text-lg font-medium text-center underline cursor-pointer text-accent",children:null==a?void 0:a.noBillingTitle}):(0,I.jsx)("div",{onClick:function(){bp(!0)},className:"p-3 text-lg font-medium text-center underline cursor-pointer text-accent",children:null==a?void 0:a.addTitle})})]}),k&&(0,I.jsx)(dI,{jsonData:a,fnameB:aJ,lnameB:aN,streetB:aR,houseB:aV,zipB:aZ,cityB:a1,phoneB:a5,fnameBReq:aL,lnameBReq:aP,streetBReq:aT,houseBReq:aX,zipBReq:a_,cityBReq:a3,phoneBReq:a7,setFnameB:aK,setLnameB:aO,setStreetB:aS,setHouseB:aW,setZipB:a$,setCityB:a2,setPhoneB:a6,setFnameBReq:aM,setLnameBReq:aQ,setStreetBReq:aU,setHouseBReq:aY,setZipBReq:a0,setCityBReq:a4,setPhoneBReq:a8})]}),(0,I.jsxs)("div",{className:"flex-1 max-md:mt-5",children:[(0,I.jsxs)("div",{className:"p-3 bg-gray-50",children:[(0,I.jsx)(aG.Z,{type:"h5",text:null==a?void 0:a.shippingTitle,className:""}),b&&e.length>0&&(0,I.jsx)(dJ,{availableShippingMethods:e,cart:b,getUpdatedCart:bi,errorMsgShipping:null==a?void 0:a.errorMsgShipping,shippingReq:a9,setShippingReq:ba}),(0,I.jsx)(aG.Z,{type:"h5",text:null==a?void 0:a.paymentTitle,className:""}),b&&e.length>0&&(0,I.jsx)(dL,{cart:b,errorMsgPayment:null==a?void 0:a.errorMsgPayment,paymentReq:bb,setPaymentReq:bc,paymentId:bd,setPaymentId:be})]}),(0,I.jsx)("div",{className:"flex items-center justify-end mt-5",children:(0,I.jsx)(af.z,{onClick:bj,className:"w-full md:w-[50%]",children:null==a?void 0:a.nextCta})})]})]})]})};function dS(a){var b,c=a.paymentIntentClientSecret,d=a.successURL,e=a.failURL,f=(0,dM.useStripe)(),g=(b=(0,n.Z)(m().mark(function a(b,c){var d;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,dF();case 3:(null==(d=a.sent)?void 0:d.type)==="order"?K().push(b):K().push(c),a.next=10;break;case 7:a.prev=7,a.t0=a.catch(0),K().push(c);case 10:case"end":return a.stop()}},a,null,[[0,7]])})),function(a,c){return b.apply(this,arguments)});return J.useEffect(function(){var a,b=(a=(0,n.Z)(m().mark(function a(){var b;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,f.retrievePaymentIntent(c);case 3:b=a.sent.paymentIntent,a.t0=b.status,a.next="succeeded"===a.t0?7:"processing"===a.t0?7:"requires_payment_method"===a.t0?9:11;break;case 7:return g(d,e),a.abrupt("break",13);case 9:case 11:return K().push(e),a.abrupt("break",13);case 13:a.next=18;break;case 15:a.prev=15,a.t1=a.catch(0),K().push(e);case 18:case"end":return a.stop()}},a,null,[[0,15]])})),function(){return a.apply(this,arguments)});f&&b()},[f,c,d,e]),(0,I.jsx)("div",{className:"container mx-auto"})}var dT="https://www.brillen.de",dU=function(g){var b=g.href,c=(0,J.useState)(""),d=c[0],i=c[1],f=(0,J.useState)(null),h=f[0],j=f[1];return(0,J.useEffect)(function(){var b;(b=(0,n.Z)(m().mark(function b(){var c,d,e;return m().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.next=2,a.e(465).then(a.bind(a,54465));case 2:return c=b.sent.loadStripe,d="pk_test_51LawxlGEQ2wA5MH6KP0hzZvEQ4YJROuMZW3bgsOQTqszeY819fEnC5AmWe08Tn4r1IJJIaFKVXjlO6E3NiABzC2f00J4YfLIsQ",b.next=6,c(d);case 6:j(e=b.sent);case 8:case"end":return b.stop()}},b)})),function(){return b.apply(this,arguments)})(),i(e.Z.getUrlParam("payment_intent_client_secret"))},[]),(0,I.jsxs)("div",{className:"mt-3 md:mt-5",children:[(0,I.jsx)(ah.Z,{}),d&&(0,I.jsx)(dM.Elements,{stripe:h,children:(0,I.jsx)(dS,{paymentIntentClientSecret:d,successURL:"".concat(dT).concat(b,"/success"),failURL:"".concat(dT).
1concat(b,"/fail")})}),"Payment Process"]})},dV=a(62940),dW=a(53166),dX=b.Z.country,dY=function(b){var h,c=b.href,a=b.jsonData,d=(0,J.useState)(!1),i=d[0],j=d[1],e=(0,J.useState)([]),f=e[0],l=e[1],g=(0,J.useState)([]),o=g[0],p=g[1],q="".concat(c,"/products"),r=(0,k.useRouter)();(0,J.useEffect)(function(){var a;j(!0),(a=(0,n.Z)(m().mark(function a(){var b,c,d,e,f;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,da.ur)(dX);case 2:return b=a.sent,a.next=5,(0,da.sA)();case 5:if(p(c=a.sent),!(c.length>0)){a.next=17;break}return d={ids:c,regionId:null==b?void 0:b.id},a.next=11,(0,da.OA)(d);case 11:l(f=(e=a.sent).map(function(a){return(0,dW.Z)(a,b)})),j(!1),a.next=18;break;case 17:j(!1);case 18:case"end":return a.stop()}},a)})),function(){return a.apply(this,arguments)})()},[]);var s=(h=(0,n.Z)(m().mark(function a(b){var c;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:p(c=o.filter(function(a){return a!==b})),(0,da.ju)(c),j(!0),r.reload();case 5:case"end":return a.stop()}},a)})),function(a){return h.apply(this,arguments)});return(0,I.jsxs)("div",{className:"mt-3 md:mt-5",children:[i&&(0,I.jsx)(ah.Z,{}),(0,I.jsxs)("div",{className:"md:gap-3 md:flex",children:[(0,I.jsxs)("div",{className:"hidden md:block md:w-1/12",children:[" ",(0,I.jsx)(dc.Z,{className:"w-12 h-12 text-accent"})]}),(0,I.jsxs)("div",{className:"w-full md:w-11/12",children:[(0,I.jsx)("div",{className:"mb-5 text-xl font-semibold",children:null==a?void 0:a.wishlistTitle}),f.map(function(b,f){var c,d,e;return(0,I.jsxs)("div",{className:"flex gap-3 mb-3 border-5",children:[(0,I.jsx)("div",{className:"w-[5%] p-3",children:(0,I.jsx)(dd.Z,{className:"w-8 h-8 text-accent"})}),(0,I.jsx)("div",{className:"w-[15%] p-3",children:(0,I.jsx)(am.r,{href:"".concat(q,"/").concat(null==b?void 0:b.handle),className:"",children:(0,I.jsx)("div",{className:"",children:(0,I.jsx)("img",{src:null==b?void 0:b.thumbnail,alt:null==b?void 0:b.title,className:""})})})}),(0,I.jsxs)("div",{className:"w-[35%] p-3 relative bdrright50",children:[(0,I.jsx)("p",{className:"font-medium text-brand",children:null==b?void 0:b.title}),(0,I.jsxs)("p",{className:"font-semibold",children:[null==a?void 0:a.materialTitle," ",(0,I.jsx)("span",{className:"font-light",children:b.material})]})]}),(0,I.jsxs)("div",{className:"w-[20%] p-3 text-center",children:[(0,I.jsx)("p",{className:"font-semibold",children:null==a?void 0:a.priceTitle}),(null==b?void 0:b.price)&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{className:"line-through",children:(null==b?void 0:null===(c=b.price)|| void 0===c?void 0:c.price_type)==="sale"&&(0,db.v8)(null==b?void 0:null===(d=b.price)|| void 0===d?void 0:d.original_price)}),(0,I.jsx)("div",{className:"font-semibold text-brand",children:(0,db.v8)(null==b?void 0:null===(e=b.price)|| void 0===e?void 0:e.calculated_price)})]})]}),(0,I.jsx)("div",{className:"w-[25%] bg-gray-50",children:(0,I.jsxs)("div",{className:"p-3",children:[(0,I.jsxs)("div",{className:"flex gap-3 mt-3",children:[(0,I.jsx)(am.r,{href:"".concat(q,"/").concat(null==b?void 0:b.handle),className:"",children:(0,I.jsx)(dV.Z,{className:"w-8 h-8 cursor-pointer text-accent"})}),(0,I.jsx)(am.r,{href:"".concat(q,"/").concat(null==b?void 0:b.handle),className:"",children:(0,I.jsx)("div",{className:"font-medium cursor-pointer text-accent",children:null==a?void 0:a.detailTitle})})]}),(0,I.jsxs)("div",{className:"flex gap-3 mt-5",children:[(0,I.jsx)(dq.Z,{className:"w-8 h-8 cursor-pointer text-accent",onClick:function(){return s(b.id)}}),(0,I.jsx)("div",{className:"font-medium cursor-pointer text-accent",onClick:function(){return s(b.id)},children:null==a?void 0:a.removeTitle})]})]})})]},f)}),f.length<=0&&(0,I.jsx)("div",{className:"pb-2 text-lg font-semibold",children:null==a?void 0:a.notWishlist}),(0,I.jsx)(af.z,{className:"mt-3",slim:!1,fullWidth:!1,href:"".concat(c,"/shop"),intent:"outline",children:null==a?void 0:a.shopContinue})]})]})]})},dZ=function(c){var a=c.pagetype,d=c.keyvalue,e=c.fullWidthDownColumn,f=c.heroBanner,b=(0,an.XG)({type:R.b.productshop});return(0,I.jsxs)("div",{className:"tailwind",children:[(0,I.jsx)(ax.Z,(0,H.Z)({},f)),"landingpage"===a?(0,I.jsx)("div",{className:"pt-3",children:(0,I.jsx)(aa.Z,{blocks:e})}):(0,I.jsxs)("div",{className:"container mx-auto",children:["listing"===a&&(0,I.jsx)(di,{href:b,jsonData:d}),"wishlist"===a&&(0,I.jsx)(dY,{href:b,jsonData:d}),"cart"===a&&(0,I.jsx)(dv,{href:b,jsonData:d}),"checkout"===a&&(0,I.jsx)(dR,{href:b,jsonData:d}),"payment"===a&&(0,I.jsxs)("div",{className:"pt-3",children:[(0,I.jsx)(aa.Z,{blocks:e}),(0,I.jsx)(dU,{href:b})]})]})]})},d$=function(d){var b,c,a=c4({slug:d.slug});return a.data?(0,I.jsxs)(I.Fragment,{children:[(null===(b=a.data)|| void 0===b?void 0:null===(c=b.attributes)|| void 0===c?void 0:c.seo)&&(0,I.jsx)(ac.Z,{seo:a.data.attributes.seo}),(0,I.jsx)(dZ,(0,H.Z)({},a.data.attributes))]}):null},d_=function(a){return a.isList?(0,I.jsx)(c9,{}):(0,I.jsx)(d$,(0,H.Z)({},a))},d0=function(a){var c=(0,o.K)();return{queryFn:function(){return U.Z.insurance.getInsuranceList(c,a)},queryKey:T.Z.insurance.listInsuranceByLocale(c,a),staleTime:b.Z.defaultStaleTime}},d1=function(c){var a;return(0,S.a)((a=c,{queryFn:function(){return U.Z.insurance.getDataBySlug(a)},queryKey:T.Z.insurance.bySlug(a),staleTime:b.Z.defaultStaleTime}))},d2=function(a){var b=a.info,c=a.cta,d=a.href;return(0,I.jsx)(I.Fragment,{children:b.map(function(a){return(0,I.jsxs)("div",{className:"mt-3 bg-white",children:[(0,I.jsx)(am.r,{href:"".concat(d,"/").concat(a.attributes.slug),children:(0,I.jsx)("div",{className:"",children:(0,I.jsx)(ae.ZP,{image:a.attributes.listImage,className:""})})}),(0,I.jsx)(aG.Z,{type:"h5",text:a.attributes.listTitle,className:"mt-2 ml-4"}),(0,I.jsx)("div",{className:"mt-2 ml-4 md:min-h-[175px]",children:(0,I.jsx)("ul",{className:"list-[square] ml-4",children:a.attributes.listpoint.map(function(a,b){return(0,I.jsx)("li",{className:"mb-1",children:a.text},b)})})}),(0,I.jsx)("div",{className:"flex items-center justify-center pb-3 mt-3",children:(0,I.jsx)(am.r,{href:"".concat(d,"/").concat(a.attributes.slug),children:(0,I.jsx)(af.z,{className:"w-auto",slim:!1,intent:"primary",children:c})})})]},a.id)})})},d3=function(b){var a=b.bottom;return(0,I.jsxs)("div",{className:"p-3",children:[(0,I.jsx)("p",{children:a.bottomTitle}),(0,I.jsx)("p",{className:"",children:(0,I.jsx)("span",{className:"underline",children:(0,I.jsx)(am.r,{className:"font-normal",target:"_BLANK",href:(null==a?void 0:a.bottomInfoLink)?a.bottomInfoLink:"/",children:a.bottomInfo})})}),(0,I.jsx)("p",{className:"",children:(null==a?void 0:a.addressName)&&(0,I.jsxs)("span",{children:[" ",a.addressName]})}),(0,I.jsxs)("p",{className:"",children:[a.information_three," ",(0,I.jsx)("span",{className:"underline",children:(0,I.jsx)(am.r,{className:"font-normal",target:"_BLANK",href:(null==a?void 0:a.linkfor_three)?a.linkfor_three:"/",children:a.addressTitle})})]})]})},d4=function(e){var b,c,d=(c={preview:e.preview},(0,S.a)(d0(c))),a=(0,M.Z)("insurancepage").data,g=(0,an.XG)({type:R.b.insurance});if(!(null===(b=d.data)|| void 0===b?void 0:b.pages)||!a)return null;var f=d.data.pages;return(0,I.jsxs)("div",{className:"tailwind",children:[(0,I.jsx)(ac.Z,{seo:null==a?void 0:a.seo}),(0,I.jsx)(ax.Z,(0,H.Z)({},a.heroBanner)),(0,I.jsxs)("div",{className:"container mx-auto mt-3 md:mt-5",children:[(0,I.jsx)(aG.Z,{type:"h3",text:a.title,className:""}),(0,I.jsxs)("div",{className:"w-full mt-3 md:mt-5 pointblacksquar",children:[(null==a?void 0:a.informationOne)&&(0,I.jsx)(bc.Z,{text:a.informationOne}),(null==a?void 0:a.informationTwo)&&(0,I.jsx)(bc.Z,{text:a.informationTwo})]}),(0,I.jsx)("div",{className:"w-full my-3 md:px-8",children:(0,I.jsxs)("div",{className:"flex-1 md:flex md:gap-10",children:[(0,I.jsx)("div",{className:"w-full md:w-1/5",children:a.partnerImage&&(0,I.jsx)(ae.ZP,{image:a.partnerImage})}),(0,I.jsx)("div",{className:"w-full md:w-4/5 max-md:mt-2",children:(0,I.jsx)(bc.Z,{text:a.partnerinfo})})]})}),(0,I.jsxs)("div",{className:"px-3 py-3 mt-3 md:px-8 md:py-5 bg-gray-50 md:mt-5",children:[(0,I.jsxs)("div",{className:"flex-1 md:flex md:gap-10",children:[(0,I.jsx)("div",{className:"w-full md:w-1/5",children:a.extraimage&&(0,I.jsx)(ae.ZP,{image:a.extraimage})}),(0,I.jsx)("div",{className:"w-full md:w-4/5 max-md:mt-2",children:(null==a?void 0:a.boxinfo)&&(0,I.jsx)(bc.Z,{text:a.boxinfo})})]}),(0,I.jsx)("div",{className:"grid grid-cols-1 mt-2 md:grid-cols-2 md:gap-4",children:f.map(function(b,c){return(0,I.jsx)(d2,{info:b.data,cta:a.buttonLabel,href:g},c)})}),(0,I.jsx)("div",{className:"bg-gray-50",children:(0,I.jsx)(d3,{bottom:a.bottom})})]})]})]})},x=a(48014),d5=x.Z,d6=function(a){var b=a.title,c=a.lefttext,d=a.righttext;return(0,I.jsxs)("div",{className:"container mx-auto",children:[(0,I.jsx)(aG.Z,{type:"h1",text:b,className:"mb-3 md:mb-5"}),(0,I.jsxs)("div",{className:"w-full md:flex md:gap-5",children:[(0,I.jsx)("div",{className:"flex-1",children:(0,I.jsx)(bc.Z,{text:c})}),(0,I.jsx)("div",{className:"flex-1 max-md:mt-3",children:(0,I.jsx)(bc.Z,{text:d})})]})]})},d7=function(a){var b=a.photo,c=a.title,d=a.subtitle,e=a.information,f=
1a.showRich,g=a.infoRich;return(0,I.jsx)("div",{className:"container mx-auto",children:(0,I.jsxs)("div",{className:"p-3 bg-gray-50 md:flex md:gap-5",children:[(0,I.jsx)("div",{className:"w-full md:py-5 max-md:px-10 md:pr-5 md:pl-12 md:w-1/4",children:b&&(0,I.jsx)(ae.ZP,{image:b})}),(0,I.jsx)("div",{className:"w-full mt-3 md:w-3/4",children:f?(0,I.jsx)(bc.Z,{text:g,className:""}):(0,I.jsxs)(I.Fragment,{children:[c&&(0,I.jsx)(aG.Z,{type:"h2",text:c,className:"mb-4 break-words text-brand"}),d&&(0,I.jsx)(aG.Z,{type:"h5",text:d,className:"mb-4 font-bold"}),(0,I.jsx)(aG.Z,{type:"p",text:e,className:""})]})})]})})},d8=function(a){var d=a.title,b=a.leftData,c=a.rightData;return(0,I.jsxs)("div",{className:"container mx-auto",children:[(0,I.jsx)(aG.Z,{text:d,type:"h6",className:"mb-3 font-normal"}),(0,I.jsxs)("div",{className:"w-full md:flex md:gap-10",children:[(0,I.jsx)("div",{className:"flex-1",children:(0,I.jsx)("ul",{className:"ml-6 list-image-check",children:null==b?void 0:b.map(function(a,b){return(0,I.jsx)("li",{className:"mb-1",children:(0,I.jsx)(bc.Z,{text:a.info})},b)})})}),(0,I.jsx)("div",{className:"flex-1",children:(0,I.jsx)("ul",{className:"ml-6 list-image-check",children:null==c?void 0:c.map(function(a,b){return(0,I.jsx)("li",{className:"mb-1",children:(0,I.jsx)(bc.Z,{text:a.info})},b)})})})]})]})},d9=function(a){var d=a.title,e=a.subtitle,b=a.costPhoto,c=a.coststep;return(0,I.jsx)("div",{className:"container mx-auto",children:(0,I.jsxs)("div",{className:"px-5 pt-5 max-md:pb-5 bg-brand",children:[(0,I.jsx)(aG.Z,{text:d,type:"h6",className:"font-normal text-white"}),(0,I.jsx)(aG.Z,{text:e,type:"h6",className:"font-bold text-white"}),(0,I.jsxs)("div",{className:"w-full md:flex md:gap-5",children:[(0,I.jsx)("div",{className:"flex-1",children:(0,I.jsx)("div",{className:"mt-5",children:b&&(0,I.jsx)(ae.ZP,{image:b})})}),(0,I.jsx)("div",{className:"flex-1",children:null==c?void 0:c.map(function(a,b){return(0,I.jsxs)("div",{className:"flex gap-2 mb-3 ".concat(a.bottomLine&&"border-b pb-4"),children:[(0,I.jsx)("div",{className:"w-4/6 md:w-3/4 ".concat(a.isBold&&"font-medium","  ").concat(a.isGrey?"text-[#404040]":"text-white"),children:a.info}),(0,I.jsx)("div",{className:"w-2/6 md:w-1/4 text-right ".concat(a.isBold&&"font-medium","  ").concat(a.isGrey?"text-[#404040]":"text-white"),children:a.price})]},b)})})]})]})})},ea=a(14917),eb=function(a){var b=a.planone,d=a.completeCta,e=a.passAge,f=a.finalstepUrl,c=a.price,g=void 0===c?[]:c;return(0,I.jsx)("div",{className:"items-center justify-center w-full pb-5 mt-3 md:flex md:gap-3",children:null==b?void 0:b.map(function(a,c){var b=!1;return 3===c&&(b=!0),(0,I.jsxs)("div",{className:"w-full relative md:w-1/4 p-3 max-md:mb-3 border ".concat(b?"bg-[#404040]":"bg-gray-50"),children:[(0,I.jsxs)("div",{className:"hidden md:block",children:[(0,I.jsx)("div",{className:"font-semibold text-center text-[26px] ".concat(b?"text-white":"text-brand"),children:a.title}),(0,I.jsx)("p",{className:"mt-2 mb-3 text-center ".concat(b?"text-white bg-accent pb-1 font-semibold":"text-brand"),children:a.subtitle}),(0,I.jsx)("div",{className:"mb-2 border-b border-gray-400"})]}),(0,I.jsx)("div",{className:"block md:hidden",children:b?(0,I.jsxs)("div",{className:"font-semibold pb-1 text-center text-[26px] text-white bg-accent",children:[a.title," -"," ",(0,I.jsx)("span",{className:"font-semibold text-white",children:a.subtitle})]}):(0,I.jsxs)("div",{className:"font-semibold text-center text-[26px] text-brand",children:[a.title," -"," ",(0,I.jsx)("span",{className:"text-center text-brand",children:a.subtitle})]})}),(null==a?void 0:a.percentage)&&(0,I.jsxs)("div",{className:"text-xl font-bold text-center md:text-2xl text-brand",children:[a.percentage," %"]}),(0,I.jsx)(ea.Z,{text:a.details,className:"mt-3 ".concat(b&&"[&_p]:text-white [&_p_*]:text-white [&_li]:text-white [&_li_*]:text-white")}),(0,I.jsxs)("div",{className:"hidden md:block",children:[(0,I.jsx)("div",{className:"my-3 border-b border-gray-400"}),(0,I.jsx)("p",{className:"font-semibold text-center ".concat(b&&"text-white"),children:a.amountinfo}),(null==a?void 0:a.subinfo)&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{className:"my-3 border-b border-gray-400"}),(0,I.jsx)("p",{className:"text-center ".concat(b&&"text-white"),children:a.subinfo})]}),(0,I.jsx)("div",{className:"my-3 border-b-2 border-gray-400"}),(0,I.jsx)("div",{className:"mb-4 text-2xl font-bold text-center text-brand",children:e>0?(0,db.xR)(g[c]):a.startfrom})]}),(0,I.jsxs)("div",{className:"block md:hidden",children:[(0,I.jsxs)("div",{className:"font-semibold text-center ".concat(b&&"text-white"),children:[a.amountinfo," ",(0,I.jsx)("span",{className:"mb-4 text-xl font-bold text-center text-brand",children:e>0?(0,db.xR)(g[c]):a.startfrom})]}),(0,I.jsx)("p",{className:"text-left ".concat(b&&"text-white"),children:a.subinfo})]}),(0,I.jsx)("div",{id:"jumpPriceLine",className:"xl:absolute xl:-bottom-5 xl:left-12",children:(0,I.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,I.jsx)(af.z,{className:"w-full text-center xl:w-auto",slim:!0,intent:"primary",href:"".concat(f,"?step=").concat(a.ctaLink),children:d})})})]},c)})})},ec=b.Z.country,ed=function(a){var j,k,l=a.title,b=a.subtitle,o=a.ageLabel,p=a.ageCta,c=a.validationMsg,q=a.completeCta,r=a.finalstepUrl,s=a.planone,d=(0,J.useState)(!1),t=d[0],y=d[1],e=(0,J.useState)(""),u=e[0],z=e[1],f=(0,J.useState)(0),v=f[0],A=f[1],g=(0,J.useState)(!1),h=g[0],B=g[1],i=(0,J.useState)([]),w=i[0],C=i[1],D=(j=(0,n.Z)(m().mark(function a(b){return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",new Promise(function(a){return setTimeout(a,b)}));case 1:case"end":return a.stop()}},a)})),function(a){return j.apply(this,arguments)}),x=(k=(0,n.Z)(m().mark(function a(){var b,c,d,e,f;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(""!==u){a.next=4;break}B(!0),a.next=20;break;case 4:return y(!0),(b={}).type=1,b.age=u,a.next=10,(0,aj.nj)(ec,"insurance",b);case 10:return c=a.sent,d=[],1===c.code&&((null==(e=c.result)?void 0:e.princeOne)&&d.push(null==e?void 0:e.princeOne),(null==e?void 0:e.princeTwo)&&d.push(null==e?void 0:e.princeTwo),(null==e?void 0:e.princeThree)&&d.push(null==e?void 0:e.princeThree),(null==e?void 0:e.princeFour)&&d.push(null==e?void 0:e.princeFour)),(f=document.getElementById("jumpPriceLine"))&&f.scrollIntoView({behavior:"smooth",block:"center"}),a.next=17,D(700);case 17:C(d),A(u),y(!1);case 20:case"end":return a.stop()}},a)})),function(){return k.apply(this,arguments)});return(0,I.jsxs)("div",{className:"container mx-auto",children:[t&&(0,I.jsx)(ah.Z,{}),(0,I.jsxs)("div",{className:"w-full pb-2",children:[(0,I.jsx)("span",{className:"font-normal text-xxl md:text-2xl",children:l})," ",b&&(0,I.jsx)("span",{className:"font-semibold text-xxl md:text-2xl",children:b})]}),(0,I.jsxs)("div",{className:"w-full mx-auto lg:w-2/5",children:[(0,I.jsxs)("div",{className:"w-full md:flex md:mt-4",children:[(0,I.jsxs)("div",{className:"w-full md:w-1/3",children:[(0,I.jsx)("input",{type:"text",name:"age",value:u,placeholder:o,onChange:function(b){var a=b.target.value;A(0),!1===isNaN(a)&& !0!==/-|\s/g.test(a)&&a<=999&&(z(a),B(!1))},className:"w-full h-12 font-bold"}),(0,I.jsx)("div",{className:"text-left min-h-[32px] block md:hidden",children:h&&(0,I.jsx)("span",{className:"errorMsg",children:c})})]}),(0,I.jsx)("div",{className:"w-full md:w-2/3",children:(0,I.jsx)("div",{className:"flex items-center justify-center",children:(0,I.jsx)(af.z,{className:"",slim:!1,onClick:x,intent:"primary",children:p})})})]}),(0,I.jsx)("div",{className:"text-left min-h-[32px] hidden md:block",children:h&&(0,I.jsx)("span",{className:"errorMsg",children:c})})]}),(0,I.jsx)(eb,{planone:s,completeCta:q,passAge:v,price:w,finalstepUrl:r})]})},ee=function(a){var c=a.title,d=a.completeCta,e=a.finalstepUrl,b=a.planone;return(0,I.jsxs)("div",{className:"container mx-auto",children:[(0,I.jsx)(aG.Z,{type:"h2",text:c,className:"mb-5 text-center w-full md:w-[75%] xl:w-[50%] mx-auto"}),(0,I.jsx)("div",{className:"items-center justify-center w-full pb-5 md:flex md:gap-3",children:null==b?void 0:b.map(function(a,b){return(0,I.jsxs)("div",{className:"relative w-full p-3 border md:w-1/3 xl:w-1/4 max-md:mb-3 bg-gray-50",children:[(0,I.jsx)("div",{className:"font-semibold text-center text-[26px] text-brand",children:a.title}),(0,I.jsx)("div",{className:"my-2 border-b border-gray-400"}),(0,I.jsx)("p",{className:"text-center text-brand",children:a.pricetitle}),(0,I.jsx)("div",{className:"text-xl font-bold text-center md:text-2xl text-brand",children:a.priceinfo}),(0,I.jsx)("p",{className:"mt-1 text-center text-brand",children:a.pricesubtitle}),(0,I.jsx)("div",{className:"my-2 border-b border-gray-400"}),(null==a?void 0:a.percentage)&&(0,I.jsxs)("div",{className:"text-xl font-bold text-center md:text-2xl text-brand",children:[a.percentage," %"]}),(0,I.jsx)(ea.Z,{text:a.details,className:"mt-3"}),(0,I.jsx)("div",{className:"my-2 border-b border-gray-400"}),(null==a?void 0:a.ownerinfo)&&(0,I.jsx)("div",{className:"text-center",children:a.ownerinfo}),(null==a?void 0:a.discountinfo)&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{className:"my-2 border-b border-gray-400"}),(0,I.jsx)("div",{className:"text-center",children:a.discountinfo})]}),(0,I.jsx)("div",{className:"my-2 border-b-2 border-gray-400"}),(0,I.jsx)("div",{className:"mb-4 text-xl font-bold text-center md:text-2xl text-brand",children:a.startfrom}),(0,I.jsx)("div",{className:"xl:absolute xl:-bottom-5 xl:left-12",children:(0,I.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,I.jsx)(af.z,{href:"".concat(e,"?step=").concat(a.ctaLink),className:"w-full text-center xl:w-auto",slim:!0,intent:"primary",children:d})})})]},b)})})]})},ef=a(86529),eg=function(a){var c=a.title,d=a.subTitle,b=a.cards;return(0,I.jsx)("div",{className:"container p-3 mx-auto bg-gray-50 md:p-5",children:(0,I.jsxs)("div",{className:"",children:[(0,I.jsx)(aG.Z,{text:c,type:"h2",className:"mb-3 font-bold text-center md:mb-5 text-brand"}),(0,I.jsx)(aG.Z,{text:d,type:"h1",className:"mb-3 text-center break-words md:mb-5"}),(0,I.jsx)(ef.default,{showDots:b.length>3,containerClass:"",itemClass:"px-3 ",dotListClass:"",responsive:{superLargeDesktop:{breakpoint:{max:4e3,min:3e3},items:3},desktop:{breakpoint:{max:3e3,min:1024},items:3},tablet:{breakpoint:{max:1024,min:786},items:2},mobile:{breakpoint:{max:786,min:0},items:1}},children:b.map(function(a,b){return(0,I.jsxs)("div",{className:"h-full bg-white",children:[(null==a?void 0:a.image)&&(0,I.jsx)("div",{className:"",children:(0,I.jsx)(ae.ZP,{image:null==a?void 0:a.image,className:""})}),(0,I.jsx)("div",{className:"p-5 max-md:p-3",children:(0,I.jsx)(bc.Z,{text:a.information})})]},b)})})]})})},eh=function(a){var b=a.info;return(0,I.jsx)("div",{className:"container mx-auto",children:(0,I.jsx)(bc.Z,{text:b,className:""})})},ei=function(a){var b=a.tooltip;return(0,I.jsxs)("div",{className:"inline group",children:[(0,I.jsx)("span",{className:"ml-2",children:(0,I.jsx)(bK(),{loader:bL.vg,src:"infoicon.png",alt:"",width:20,height:20,className:"cursor-pointer"})}),(0,I.jsx)("div",{className:"absolute z-10 hidden px-4 py-2 mx-auto bg-white border rounded-md shadow group-hover:block",children:(0,I.jsx)(bc.Z,{text:b,className:"text-left"})})]})},ej=function(a){var c,d,b=a.data,e=a.recommendedIndex,f=a.fieldname,g=a.keynumber,h=a.ismobile,i=a.index;return(0,I.jsxs)("tr",{className:"columns",children:[(0,I.jsx)("td",{className:"py-2 column",children:(0,I.jsx)("div",{className:"flex items-center justify-center w-full text-center",children:(0,I.jsxs)("div",{className:"w-full px-2 font-normal text-md break-words ".concat(e===g&&h&&"text-white"),children:[b.title,b.tooltip&&(0,I.jsx)(ei,{tooltip:b.tooltip})]})})}),h?(0,I.jsx)("td",{className:"py-2 text-center border-l border-gray-400 column ".concat(e===g?"bg-[#404040]":"bg-gray-200"),children:null===(c=b[f])|| void 0===c?void 0:c.map(function(b,a){return(0,I.jsx)("data",{className:"".concat(g===a?"block":"hidden"),children:(0,I.jsx)(bc.Z,{text:b.info,className:"[&_p]:mb-1 [&_p_*]:text-md font-normal pb-2 ".concat(e===g&&"text-white [&_p]:text-white [&_p_*]:text-white")})},a)})}):null===(d=b[f])|| void 0===d?void 0:d.map(function(c,b){var a=!1;return b===e&&(a=!0),(0,I.jsx)("td",{className:"py-2 text-center border-l border-gray-400 [&:nth-child(2)]:border-l-0 column ".concat(a?"bg-[#404040]":"bg-gray-200"),children:(0,I.jsx)(bc.Z,{text:c.info,className:"[&_p]:mb-1 [&_p_*]:text-md font-normal ".concat(a&&"text-white [&_p]:text-white [&_p_*]:text-white")})},b)})]},i)},ek=function(b){var c,d,a=b.data,e=b.keynumber,f=b.ismobile,h=b.index,g=b.recommendedIndex;return(0,I.jsxs)("tr",{className:"columns",children:[(0,I.jsx)("td",{className:"w-1/5 py-2 column",children:(0,I.jsx)("div",{className:"flex items-center justify-center w-full text-center",children:(0,I.jsxs)("div",{className:"w-full px-2 font-normal break-words text-md ".concat(g===e&&f&&"text-white"),children:[a.title,a.tooltip&&(0,I.jsx)(ei,{tooltip:a.tooltip})]})})}),f?(0,I.jsx)("td",{className:"w-1/2 py-2 text-center border-l border-gray-400 column ".concat(g===e?"bg-[#404040]":"bg-gray-200"),children:null==a?void 0:null===(c=a.yesno)|| void 0===c?void 0:c.map(function(a,b){return(0,I.jsx)("data",{className:"".concat(e===b?"block":"hidden"),children:(null==a?void 0:a.yesno)?(0,I.jsx)(bK(),{loader:bL.vg,src:"check.svg",alt:"",width:22,height:26}):(0,I.jsx)("p",{className:"font-bold text-red",children:"X"})},b)})}):null==a?void 0:null===(d=a.yesno)|| void 0===d?void 0:d.map(function(a,b){var c=!1;return b===g&&(c=!0),(0,I.jsx)("td",{className:"w-1/5 py-2 text-center border-l [&:nth-child(2)]:border-l-0 border-gray-400 column ".concat(c?"bg-[#404040]":"bg-gray-200"),children:(null==a?void 0:a.yesno)?(0,I.jsx)(bK(),{loader:bL.vg,src:"check.svg",alt:"",width:22,height:26}):(0,I.jsx)("p",{className:"font-bold text-red",children:"X"})},b)})]},h)},el=function(a){var b=a.count,c=a.islast;return(0,I.jsx)("div",{children:Array.from({length:b}).map(function(b,a){return(0,I.jsx)(bK(),{loader:bL.vg,src:"".concat(c?"starwhite.svg":"starblack.svg"),alt:"",width:20,height:20},a)})})},em=function(a){var b=a.heading,c=a.width,e=void 0===c?"":c,f=a.recommendedIndex,d=a.ismobile,g=a.activeTab,h=a.handleTabClick;return d?(0,I.jsx)("div",{className:"flex mt-2 border border-gray-400",children:null==b?void 0:b.map(function(c,b){var a=!1;return b===f&&(a=!0),(0,I.jsx)("div",{className:"".concat(e," p-1 border-r border-gray-400 text-center cursor-pointer ").concat(g!==b||a?"":"!bg-white"," ").concat(g===b&&a?"!bg-brand":""," ").concat(a?"bg-[#404040]":"bg-gray-50"),onClick:function(){return h(b)},children:(0,I.jsxs)("div",{className:"font-semibold p-2 text-md ".concat(g!==b||a?"":"!text-accent"," ").concat(g===b&&a?"!text-white":""," ").concat(a?"text-white":"text-brand"),children:[c.title,c.subinfo&&(0,I.jsx)("p",{className:"font-medium text-sm ".concat(a&&"text-white"),children:c.subinfo})]})},b)})}):(0,I.jsxs)("tr",{className:"columns",children:[(0,I.jsx)("td",{className:"w-1/5",children:" "}),null==b?void 0:b.map(function(a,c){var b=!1;return c===f&&(b=!0),(0,I.jsxs)("td",{className:"w-1/5 border-b border-r border-gray-400 last:border-r-0 ".concat(b?"bg-[#404040]":"bg-gray-200"),children:[a.star>=1&&(0,I.jsx)("div",{className:"mt-2 text-center",children:(0,I.jsx)(el,{count:a.star,islast:!1})}),(0,I.jsxs)("div",{className:"pb-2 text-lg font-semibold text-center text-brand",children:[a.title,a.subinfo&&(0,I.jsx)("p",{className:"font-medium text-md ".concat(b&&"text-white"),children:a.subinfo})]})]},c)})]})},en=function(a){var p=a.title,q=a.subtitle,b=a.heading,c=a.boxone,k=a.subheadertwo,d=a.boxtwo,j=a.subheaderthree,e=a.boxthree,r=a.subheaderfour,f=a.boxfour,s=a.completeCta,t=a.finalstepUrl,g=b.findIndex(function(a){return a.isReccommend}),l=(0,J.useState)(!1),h=l[0],u=l[1],m=(0,J.useState)(!1),i=m[0],v=m[1],n=(0,J.useState)(g),o=n[0],w=n[1],x=function(a){1===a?u(!
1h):2===a&&v(!i)},y=function(a){w(a)};return(0,I.jsxs)("div",{className:"container mx-auto maintable",children:[(0,I.jsx)(aG.Z,{type:"h2",text:p,className:"text-center text-brand"}),(0,I.jsx)(aG.Z,{type:"h3",text:q,className:"text-center"}),(0,I.jsx)("div",{className:"hidden md:block",children:(0,I.jsx)("table",{className:"w-full mt-3 table-fixed border-spacing-0",children:(0,I.jsxs)("tbody",{children:[(0,I.jsx)(em,{heading:b,ismobile:!1,activeTab:0,recommendedIndex:g,handleTabClick:function(a){return y(a)}}),null==c?void 0:c.map(function(a,b){return(0,I.jsx)(ej,{data:a,recommendedIndex:g,fieldname:"value",ismobile:!1,keynumber:0,index:b})}),(0,I.jsx)("tr",{className:"columns",children:(0,I.jsx)("td",{colSpan:5,className:"",children:(0,I.jsx)("div",{className:"pb-1 -mt-0.5 text-center bg-gray-300 border",children:(0,I.jsx)("span",{className:"ml-2 font-bold text-accent",children:k})})})}),null==d?void 0:d.map(function(a,b){return(0,I.jsx)(ej,{data:a,recommendedIndex:g,fieldname:"value",ismobile:!1,keynumber:0,index:b})}),(0,I.jsx)("tr",{className:"columns",children:(0,I.jsx)("td",{colSpan:5,className:"",onClick:function(){return x(1)},children:(0,I.jsxs)("div",{className:"pb-1 -mt-0.5 text-center bg-gray-300 border cursor-pointer",children:[(0,I.jsx)(bK(),{loader:bL.vg,src:h?"arrowopen.png":"arrowclose.png",alt:"",width:18,height:10}),(0,I.jsx)("span",{className:"ml-2 font-bold text-accent",children:j})]})})}),h&&(null==e?void 0:e.map(function(a,b){return(0,I.jsx)(ej,{data:a,recommendedIndex:g,fieldname:"value",ismobile:!1,keynumber:0,index:b})})),(0,I.jsx)("tr",{className:"columns",children:(0,I.jsx)("td",{colSpan:5,className:"",onClick:function(){return x(2)},children:(0,I.jsxs)("div",{className:"pb-1 -mt-0.5 text-center bg-gray-300 border cursor-pointer",children:[(0,I.jsx)(bK(),{loader:bL.vg,src:i?"arrowopen.png":"arrowclose.png",alt:"",width:18,height:10}),(0,I.jsx)("span",{className:"ml-2 font-bold text-accent",children:r})]})})}),i&&(null==f?void 0:f.map(function(a,b){return(0,I.jsx)(ek,{data:a,ismobile:!1,keynumber:0,index:b,recommendedIndex:g})})),(0,I.jsxs)("tr",{className:"columns",children:[(0,I.jsx)("td",{className:"w-1/5",children:" "}),null==b?void 0:b.map(function(a,b){return(0,I.jsx)("td",{className:"w-1/5 bg-gray-200",children:(0,I.jsx)("div",{className:"pb-2",children:(0,I.jsx)("div",{className:" md:-bottom-5 md:left-10",children:(0,I.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,I.jsx)(af.z,{className:"w-full text-center md:w-auto",slim:!0,intent:"primary",href:"".concat(t,"?step=").concat(a.ctaLink),children:s})})})})},b)})]})]})})}),(0,I.jsxs)("div",{className:"block md:hidden",children:[(0,I.jsx)(em,{heading:b,width:"w-1/4",recommendedIndex:g,ismobile:!0,activeTab:o,handleTabClick:function(a){return y(a)}}),(0,I.jsx)("table",{className:"w-full table-fixed border-spacing-0 ".concat(o===g?"bg-[#404040]":"bg-gray-50"),children:(0,I.jsxs)("tbody",{children:[null==c?void 0:c.map(function(a,b){return(0,I.jsx)(ej,{data:a,recommendedIndex:g,fieldname:"value",ismobile:!0,keynumber:o,index:b})}),(0,I.jsx)("tr",{className:"columns",children:(0,I.jsx)("td",{colSpan:2,className:"",children:(0,I.jsx)("div",{className:"pb-1 -mt-0.5 text-center bg-gray-300",children:(0,I.jsx)("span",{className:"ml-2 font-bold text-accent",children:k})})})}),null==d?void 0:d.map(function(a,b){return(0,I.jsx)(ej,{data:a,recommendedIndex:g,fieldname:"value",ismobile:!0,keynumber:o,index:b})}),(0,I.jsx)("tr",{className:"columns",children:(0,I.jsx)("td",{colSpan:2,className:"",onClick:function(){return x(1)},children:(0,I.jsxs)("div",{className:"pb-1 -mt-0.5 text-center bg-gray-300 cursor-pointer",children:[(0,I.jsx)(bK(),{loader:bL.vg,src:h?"arrowopen.png":"arrowclose.png",alt:"",width:18,height:10}),(0,I.jsx)("span",{className:"ml-2 font-bold text-accent",children:j})]})})}),h&&(null==e?void 0:e.map(function(a,b){return(0,I.jsx)(ej,{data:a,recommendedIndex:g,fieldname:"value",ismobile:!0,keynumber:o,index:b})})),(0,I.jsx)("tr",{className:"columns",children:(0,I.jsx)("td",{colSpan:2,className:"",onClick:function(){return x(2)},children:(0,I.jsxs)("div",{className:"pb-1 -mt-0.5 text-center bg-gray-300 cursor-pointer",children:[(0,I.jsx)(bK(),{loader:bL.vg,src:i?"arrowopen.png":"arrowclose.png",alt:"",width:18,height:10}),(0,I.jsx)("span",{className:"ml-2 font-bold text-accent",children:j})]})})}),i&&(null==f?void 0:f.map(function(a,b){return(0,I.jsx)(ek,{data:a,ismobile:!0,keynumber:o,index:b,recommendedIndex:g})})),(0,I.jsx)("tr",{className:"columns",children:(0,I.jsx)("td",{colSpan:2,className:"bg-gray-200",children:null==b?void 0:b.map(function(b,a){return(0,I.jsx)("div",{className:"p-3 ".concat(o===a?"block":"hidden"),children:(0,I.jsx)("div",{className:"flex items-center justify-center",children:(0,I.jsx)(af.z,{className:"w-full md:w-auto",slim:!0,intent:"primary",href:"".concat(t,"?step=").concat(b.ctaLink),children:s})})},a)})})})]})})]})]})}
1,eo=function(a){var d=a.information,e=a.phoneTitle,c=a.phoneNumber,f=a.document;return(0,I.jsxs)("div",{className:"container mx-auto bg-gray-50 p-5 max-md:p-3",children:[(0,I.jsx)(bc.Z,{text:d}),(0,I.jsxs)("div",{className:"grid grid-cols-2 max-md:grid-cols-1 gap-6 items-center",children:[(0,I.jsxs)("div",{className:"",children:[(0,I.jsx)(aG.Z,{text:e,type:"h2",className:"text-center mb-5 max-md:mb-3"}),(0,I.jsxs)("div",{className:"flex items-start justify-center",children:[(0,I.jsx)(bK(),{loader:bL.vg,src:"phoneCircleIcon.png",alt:"",width:40,height:40}),"\xa0\xa0",(0,I.jsx)(am.r,{href:c?"tel:".concat(c):"tel:",className:"text-xxl text-brand font-bold",children:c})]})]}),(0,I.jsx)("div",{className:"",children:f.map(function(a,i){var c,d,e,f,g,h;return(0,I.jsx)("div",{className:"border-b-2 py-2",children:(0,I.jsxs)(am.r,{href:(null==a?void 0:null===(c=a.file)|| void 0===c?void 0:null===(d=c.data)|| void 0===d?void 0:null===(e=d.attributes)|| void 0===e?void 0:e.url)?"".concat(b.Z.baseApiUrl).concat(null==a?void 0:null===(f=a.file)|| void 0===f?void 0:null===(g=f.data)|| void 0===g?void 0:null===(h=g.attributes)|| void 0===h?void 0:h.url):"/",target:"_blank",className:"flex justify-between items-center",children:[(0,I.jsx)("div",{className:"text-brand",children:a.title}),(0,I.jsx)("div",{className:"",children:(0,I.jsx)(bK(),{loader:bL.vg,src:"downloadPDF.png",alt:"",width:40,height:40})})]})},i)})})]})]})},ep=function(a){var b=a.title,c=a.subTitle,d=a.imageText;return(0,I.jsxs)("div",{className:"container mx-auto",children:[(0,I.jsx)(aG.Z,{type:"h2",text:b,className:"mb-5 max-md:mb-3 break-words text-brand text-center"}),(0,I.jsx)(aG.Z,{type:"h1",text:c,className:"mb-5 max-md:mb-3 text-center"}),(0,I.jsx)("div",{className:"mb-5 max-md:mb-3",children:d.map(function(a,b){return(0,I.jsxs)("div",{className:"grid max-md:grid-cols-1 gap-6 items-center mb-5 max-md:mb-3 ".concat((null==a?void 0:a.imagePosition)==="left"?"grid-cols-[30%_70%]":"grid-cols-[70%_30%]"),children:[(0,I.jsx)("div",{className:"md:hidden",children:(0,I.jsx)(ae.ZP,{image:null==a?void 0:a.image})}),(null==a?void 0:a.imagePosition)==="left"&&(0,I.jsx)("div",{className:"max-md:hidden",children:(0,I.jsx)(ae.ZP,{image:null==a?void 0:a.image})}),(0,I.jsx)("div",{className:"",children:(0,I.jsx)(bc.Z,{text:null==a?void 0:a.information,className:""})}),(null==a?void 0:a.imagePosition)==="right"&&(0,I.jsx)("div",{className:"max-md:hidden",children:(0,I.jsx)(ae.ZP,{image:null==a?void 0:a.image})})]},b)})})]})},eq=function(b){var c=b.image,d=b.information,a=b.cta;return(0,I.jsx)("div",{className:"container mx-auto",children:(0,I.jsxs)("div",{className:"grid grid-cols-[30%_70%] gap-6 max-md:grid-cols-1 items-center",children:[c&&(0,I.jsx)(ae.ZP,{image:c}),(0,I.jsxs)("div",{className:"text-center",children:[(0,I.jsx)(bc.Z,{text:d,className:""}),(null==a?void 0:a.text)&&(0,I.jsx)(af.z,{className:"mx-auto",fullWidth:!1,slim:!1,href:a.url?a.url:"/",intent:a.variant?a.variant:"primary",children:a.text})]})]})})},er=function(a){var d=a.title,e=a.subTitle,b=a.tabSlide,f=a.finalstepUrl,c=(0,J.useState)(1),g=c[0],h=c[1],i=function(a){h(a)};return(0,I.jsxs)("div",{className:"container p-5 mx-auto bg-gray-50",children:[(0,I.jsx)(aG.Z,{text:d,type:"h2",className:"mb-5 text-center text-brand max-md:mb-3"}),(0,I.jsx)(aG.Z,{text:e,type:"h1",className:"mb-5 text-center max-md:mb-3"}),(0,I.jsx)("div",{className:"flex justify-center w-full mb-5 overflow-auto max-md:mb-3",children:b.map(function(a,b){return(0,I.jsx)("div",{className:"border-b-brand cursor-pointer ".concat(g===b?"border-b-8":"border-b-2"),onClick:function(){return i(b)},children:(0,I.jsx)("div",{className:"px-4 pb-2 font-semibold text-brand",children:null==a?void 0:a.title})},b)})}),(0,I.jsx)("div",{className:"",children:b.map(function(a,c){var b;return(0,I.jsxs)("div",{className:"".concat(g!==c&&"hidden"),children:[(0,I.jsx)(bc.Z,{text:null==a?void 0:a.information,className:""}),(null==a?void 0:null===(b=a.cta)|| void 0===b?void 0:b.text)&&(0,I.jsx)(af.z,{className:"mx-auto",fullWidth:!1,slim:!1,href:"".concat(f,"?step=").concat(a.cta.url?a.cta.url:"/"),intent:a.cta.variant?a.cta.variant:"primary",children:a.cta.text})]},c)})})]})},es=function(a){var c,b=a.data,d=a.keynumber,e=a.recommendedIndex,f=a.ismobile,g=a.index;return(0,I.jsxs)("tr",{className:"columns",children:[(0,I.jsx)("td",{className:"py-2 column",children:(0,I.jsx)("div",{className:"flex items-center justify-center w-full text-center",children:(0,I.jsxs)("div",{className:"w-full px-2 font-normal text-md break-words ".concat(e===d&&f&&"text-white"),children:[b.title,b.tooltip&&(0,I.jsx)(ei,{tooltip:b.tooltip})]})})}),f?(0,I.jsx)("td",{className:"py-2 text-center border-l border-gray-400 column ".concat(e===d?"bg-[#404040]":"bg-gray-200"),children:null===(c=b.liabilitybox)|| void 0===c?void 0:c.map(function(a,b){return(0,I.jsx)("data",{className:"".concat(d===b?"block":"hidden"),children:a.isye
1sno?(0,I.jsx)("div",{className:"",children:a.yesno?(0,I.jsx)(bK(),{loader:bL.vg,src:"check.svg",alt:"",width:22,height:26}):(0,I.jsx)("p",{className:"font-bold text-red",children:"X"})}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(bc.Z,{text:a.info,className:"[&_p]:mb-1 [&_p_*]:text-md font-normal pb-2 ".concat(e===d&&"text-white [&_p]:text-white [&_p_*]:text-white")}),a.infosmall&&(0,I.jsx)("p",{className:"text-sm ".concat(e===d&&"text-white"),children:a.infosmall})]})},b)})}):b.liabilitybox.map(function(a,c){var b=!1;return c===e&&(b=!0),(0,I.jsx)("td",{className:"py-2 text-center border-l border-gray-400 [&:nth-child(2)]:border-l-0 column ".concat(b?"bg-[#404040]":"bg-gray-200"),children:a.isyesno?(0,I.jsx)("div",{className:"",children:a.yesno?(0,I.jsx)(bK(),{loader:bL.vg,src:"check.svg",alt:"",width:22,height:26}):(0,I.jsx)("p",{className:"font-bold text-red",children:"X"})}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(bc.Z,{text:a.info,className:"[&_p]:mb-1 [&_p_*]:text-md font-normal ".concat(b&&"text-white [&_p]:text-white [&_p_*]:text-white")}),a.infosmall&&(0,I.jsx)("p",{className:"text-sm ".concat(b&&"text-white"),children:a.infosmall})]})},c)})]},g)},et=function(a){var x=a.title,y=a.subtitle,b=a.heading,m=a.subheaderone,c=a.boxone,n=a.subheadertwo,d=a.boxtwo,o=a.subheaderthree,e=a.boxthree,p=a.subheaderfour,f=a.boxfour,q=a.subheaderfive,g=a.boxfive,z=a.completeCta,A=a.finalstepUrl,l=b.findIndex(function(a){return a.isReccommend}),r=(0,J.useState)(!1),h=r[0],B=r[1],s=(0,J.useState)(!1),i=s[0],C=s[1],t=(0,J.useState)(!1),j=t[0],D=t[1],u=(0,J.useState)(!1),k=u[0],E=u[1],v=(0,J.useState)(0),w=v[0],F=v[1],G=function(a){2===a?B(!h):3===a?C(!i):4===a?D(!j):5===a&&E(!k)},H=function(a){F(a)};return(0,I.jsxs)("div",{className:"container mx-auto maintable",children:[(0,I.jsx)(aG.Z,{type:"h2",text:x,className:"text-center text-brand"}),(0,I.jsx)(aG.Z,{type:"h3",text:y,className:"text-center"}),(0,I.jsx)("div",{className:"hidden md:block",children:(0,I.jsx)("table",{className:"w-full mt-3 table-fixed border-spacing-0",children:(0,I.jsxs)("tbody",{children:[(0,I.jsx)(em,{heading:b,ismobile:!1,activeTab:0,recommendedIndex:l,handleTabClick:function(a){return H(a)}}),(0,I.jsx)("tr",{className:"columns",children:(0,I.jsx)("td",{colSpan:3,className:"",children:(0,I.jsx)("div",{className:"pb-1 text-center bg-gray-300",children:(0,I.jsx)("span",{className:"ml-2 font-bold text-accent",children:m})})})}),null==c?void 0:c.map(function(a,b){return(0,I.jsx)(es,{data:a,recommendedIndex:l,ismobile:!1,keynumber:0,index:b})}),(0,I.jsx)("tr",{className:"columns",children:(0,I.jsx)("td",{colSpan:3,className:"",onClick:function(){return G(2)},children:(0,I.jsxs)("div",{className:"pb-1 text-center bg-gray-300 cursor-pointer",children:[(0,I.jsx)(bK(),{loader:bL.vg,src:h?"arrowopen.png":"arrowclose.png",alt:"",width:18,height:10}),(0,I.jsx)("span",{className:"ml-2 font-bold text-accent",children:n})]})})}),h&&(null==d?void 0:d.map(function(a,b){return(0,I.jsx)(ek,{data:a,ismobile:!1,keynumber:0,index:b,recommendedIndex:l})})),(0,I.jsx)("tr",{className:"columns",children:(0,I.jsx)("td",{colSpan:3,className:"",onClick:function(){return G(3)},children:(0,I.jsxs)("div",{className:"pb-1 text-center bg-gray-300 cursor-pointer",children:[(0,I.jsx)(bK(),{loader:bL.vg,src:i?"arrowopen.png":"arrowclose.png",alt:"",width:18,height:10}),(0,I.jsx)("span",{className:"ml-2 font-bold text-accent",children:o})]})})}),i&&(null==e?void 0:e.map(function(a,b){return(0,I.jsx)(ek,{data:a,ismobile:!1,keynumber:0,index:b,recommendedIndex:l})})),(0,I.jsx)("tr",{className:"columns",children:(0,I.jsx)("td",{colSpan:3,className:"",onClick:function(){return G(4)},children:(0,I.jsxs)("div",{className:"pb-1 text-center bg-gray-300 cursor-pointer",children:[(0,I.jsx)(bK(),{loader:bL.vg,src:j?"arrowopen.png":"arrowclose.png",alt:"",width:18,height:10}),(0,I.jsx)("span",{className:"ml-2 font-bold text-accent",children:p})]})})}),j&&(null==f?void 0:f.map(function(a,b){return(0,I.jsx)(ek,{data:a,ismobile:!1,keynumber:0,index:b,recommendedIndex:l})})),(0,I.jsx)("tr",{className:"columns",children:(0,I.jsx)("td",{colSpan:3,className:"",onClick:function(){return G(5)},children:(0,I.jsxs)("div",{className:"pb-1 text-center bg-gray-300 cursor-pointer",children:[(0,I.jsx)(bK(),{loader:bL.vg,src:k?"arrowopen.png":"arrowclose.png",alt:"",width:18,height:10}),(0,I.jsx)("span",{className:"ml-2 font-bold text-accent",children:q})]})})}),k&&(null==g?void 0:g.map(function(a,b){return(0,I.jsx)(ek,{data:a,ismobile:!1,keynumber:0,index:b,recommendedIndex:l})})),(0,I.jsxs)("tr",{className:"columns",children:[(0,I.jsx)("td",{className:"w-1/5",children:" "}),null==b?void 0:b.map(function(a,b){return(0,I.jsx)("td",{className:"w-1/5 bg-gray-200",children:(0,I.jsx)("div",{className:"pb-2",children:(0,I.jsx)("div",{className:" md:-bottom-5 md:left-10",children:(0,I.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,I.jsx)(af.z,{className:"w-full text-center md:w-auto",slim:!0,intent:"primary",href:"".concat(A,"?step=").concat(a.ctaLink),children:z})})})})},b)})]})]})})}),(0,I.jsxs)("div",{className:"block md:hidden",children:[(0,I.jsx)(em,{heading:b,width:"w-1/2",recommendedIndex:l,ismobile:!0,activeTab:w,handleTabClick:function(a){return H(a)}}),(0,I.jsx)("table",{className:"w-full table-fixed border-spacing-0 ".concat(w===l?"bg-[#404040]":"bg-gray-50"),children:(0,I.jsxs)("tbody",{children:[(0,I.jsx)("tr",{className:"columns",children:(0,I.jsx)("td",{colSpan:2,className:"",children:(0,I.jsx)("div",{className:"pb-1 -mt-0.5 text-center bg-gray-300",children:(0,I.jsx)("span",{className:"ml-2 font-bold text-accent",children:m})})})}),null==c?void 0:c.map(function(a,b){return(0,I.jsx)(es,{data:a,recommendedIndex:l,ismobile:!0,keynumber:w,index:b})}),(0,I.jsx)("tr",{className:"columns",children:(0,I.jsx)("td",{colSpan:2,className:"",onClick:function(){return G(2)},children:(0,I.jsxs)("div",{className:"pb-1 -mt-0.5 text-center bg-gray-300 cursor-pointer",children:[(0,I.jsx)(bK(),{loader:bL.vg,src:h?"arrowopen.png":"arrowclose.png",alt:"",width:18,height:10}),(0,I.jsx)("span",{className:"ml-2 font-bold text-accent",children:n})]})})}),h&&(null==d?void 0:d.map(function(a,b){return(0,I.jsx)(ek,{data:a,ismobile:!0,keynumber:w,index:b,recommendedIndex:l})})),(0,I.jsx)("tr",{className:"columns",children:(0,I.jsx)("td",{colSpan:2,className:"",onClick:function(){return G(3)},children:(0,I.jsxs)("div",{className:"pb-1 -mt-0.5 text-center bg-gray-300 cursor-pointer",children:[(0,I.jsx)(bK(),{loader:bL.vg,src:i?"arrowopen.png":"arrowclose.png",alt:"",width:18,height:10}),(0,I.jsx)("span",{className:"ml-2 font-bold text-accent",children:o})]})})}),i&&(null==e?void 0:e.map(function(a,b){return(0,I.jsx)(ek,{data:a,ismobile:!0,keynumber:w,index:b,recommendedIndex:l})})),(0,I.jsx)("tr",{className:"columns",children:(0,I.jsx)("td",{colSpan:2,className:"",onClick:function(){return G(4)},children:(0,I.jsxs)("div",{className:"pb-1 -mt-0.5 text-center bg-gray-300 cursor-pointer",children:[(0,I.jsx)(bK(),{loader:bL.vg,src:j?"arrowopen.png":"arrowclose.png",alt:"",width:18,height:10}),(0,I.jsx)("span",{className:"ml-2 font-bold text-accent",children:p})]})})}),j&&(null==f?void 0:f.map(function(a,b){return(0,I.jsx)(ek,{data:a,ismobile:!0,keynumber:w,index:b,recommendedIndex:l})})),(0,I.jsx)("tr",{className:"columns",children:(0,I.jsx)("td",{colSpan:2,className:"",onClick:function(){return G(5)},children:(0,I.jsxs)("div",{className:"pb-1 -mt-0.5 text-center bg-gray-300 cursor-pointer",children:[(0,I.jsx)(bK(),{loader:bL.vg,src:k?"arrowopen.png":"arrowclose.png",alt:"",width:18,height:10}),(0,I.jsx)("span",{className:"ml-2 font-bold text-accent",children:q})]})})}),k&&(null==g?void 0:g.map(function(a,b){return(0,I.jsx)(ek,{data:a,ismobile:!0,keynumber:w,index:b,recommendedIndex:l})})),(0,I.jsx)("tr",{className:"columns",children:(0,I.jsx)("td",{colSpan:2,className:"bg-gray-200",children:null==b?void 0:b.map(function(b,a){return(0,I.jsx)("div",{className:"p-3 ".concat(w===a?"block":"hidden"),children:(0,I.jsx)("div",{className:"flex items-center justify-center",children:(0,I.jsx)(af.z,{className:"w-full md:w-auto",slim:!0,intent:"primary",href:"".concat(A,"?step=").concat(b.ctaLink),children:z})})},a)})})})]})})]})]})},eu=function(a){var b=a.planthree,d=a.completeCta,e=a.passAge,c=a.price,f=void 0===c?[]:c,g=a.finalstepUrl;return(0,I.jsx)("div",{className:"items-center justify-center w-full pb-5 mt-3 md:flex md:gap-3",children:null==b?void 0:b.map(function(a,b){var c=!1;return 0===b&&(c=!0),(0,I.jsxs)("div",{className:"relative w-full p-3 text-center border md:w-1/3 max-md:mb-3 bg-gray-50",children:[(0,I.jsx)("div",{className:"font-semibold text-[26px] text-brand",children:a.title}),(0,I.jsx)("p",{className:"mt-2 py-2 border-b border-gray-400 ".concat(c?"text-white bg-accent pb-1 font-semibold":"text-brand"),children:a.subtitle}),(0,I.jsx)("p",{className:"py-2 font-semibold border-b border-gray-400",children:a.toomtype}),(0,I.jsx)(ea.Z,{text:a.diseasesinfo,className:"py-2 font-semibold border-b border-gray-400"}),(0,I.jsx)(ea.Z,{text:a.reimbursement,className:"py-2 border-b border-gray-400"}),a.exclusive&&(0,I.jsx)("p",{className:"py-2 border-b border-gray-400",children:a.exclusive}),(null==a?void 0:a.travel)&&(0,I.jsx)("p",{className:"py-2 border-b border-gray-400",children:a.travel}),(null==a?void 0:a.nowaiting)&&(0,I.jsx)("p",{className:"py-2 border-b border-gray-400",children:a.nowaiting}),(null==a?void 0:a.voucher)&&(0,I.jsx)("p",{className:"py-2 border-b-2 border-gray-400",children:a.voucher}),(0,I.jsx)("div",{className:"mb-4 text-2xl font-bold text-center text-brand",children:e>0?(0,db.xR)(f[b]):a.from}),(0,I.jsx)("div",{className:"xl:absolute xl:-bottom-5 xl:left-24",children:(0,I.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,I.jsx)(af.z,{id:"jumpPriceLine",className:"w-full text-center xl:w-auto",slim:!0,intent:"primary",href:"".concat(g,"?step=").concat(a.ctaLink),children:d})})})]},b)})})},ev=b.Z.country,ew=function(a){var i,j,k=a.title,l=a.ageLabel,o=a.ageCta,b=
1a.validationMsg,p=a.completeCta,q=a.finalstepUrl,r=a.planthree,c=(0,J.useState)(!1),s=c[0],x=c[1],d=(0,J.useState)(""),t=d[0],y=d[1],e=(0,J.useState)(0),u=e[0],z=e[1],f=(0,J.useState)(!1),g=f[0],A=f[1],h=(0,J.useState)([]),v=h[0],B=h[1],C=(i=(0,n.Z)(m().mark(function a(b){return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",new Promise(function(a){return setTimeout(a,b)}));case 1:case"end":return a.stop()}},a)})),function(a){return i.apply(this,arguments)}),w=(j=(0,n.Z)(m().mark(function a(){var b,c,d,e,f;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(""!==t){a.next=4;break}A(!0),a.next=20;break;case 4:return x(!0),(b={}).type=3,b.age=t,a.next=10,(0,aj.nj)(ev,"insurance",b);case 10:return c=a.sent,d=[],1===c.code&&((null==(e=c.result)?void 0:e.princeOne)&&d.push(null==e?void 0:e.princeOne),(null==e?void 0:e.princeTwo)&&d.push(null==e?void 0:e.princeTwo)),(f=document.getElementById("jumpPriceLine"))&&f.scrollIntoView({behavior:"smooth",block:"center"}),a.next=17,C(700);case 17:B(d),z(t),x(!1);case 20:case"end":return a.stop()}},a)})),function(){return j.apply(this,arguments)});return(0,I.jsxs)("div",{className:"container mx-auto",children:[s&&(0,I.jsx)(ah.Z,{}),(0,I.jsxs)("div",{className:"w-full xl:flex",children:[(0,I.jsx)("div",{className:"w-full xl:w-3/5",children:(0,I.jsx)(aG.Z,{text:k,type:"h2",className:"text-brand max-md:mb-3"})}),(0,I.jsxs)("div",{className:"w-full xl:w-2/5",children:[(0,I.jsxs)("div",{className:"w-full md:flex md:mt-4",children:[(0,I.jsxs)("div",{className:"w-full md:w-1/3",children:[(0,I.jsx)("input",{type:"text",name:"age",value:t,placeholder:l,onChange:function(b){var a=b.target.value;z(0),!1===isNaN(a)&& !0!==/-|\s/g.test(a)&&a<=999&&(y(a),A(!1))},className:"w-full h-12 font-bold"}),(0,I.jsx)("div",{className:"text-left min-h-[32px] block md:hidden",children:g&&(0,I.jsx)("span",{className:"errorMsg",children:b})})]}),(0,I.jsx)("div",{className:"w-full md:w-2/3",children:(0,I.jsx)("div",{className:"flex items-center justify-center",children:(0,I.jsx)(af.z,{className:"",slim:!1,onClick:w,intent:"primary",children:o})})})]}),(0,I.jsx)("div",{className:"text-left min-h-[32px] hidden md:block",children:g&&(0,I.jsx)("span",{className:"errorMsg",children:b})})]})]}),(0,I.jsx)(eu,{planthree:r,completeCta:p,passAge:u,price:v,finalstepUrl:q})]})},ex=function(a){var b=a.planfour,d=a.completeCta,e=a.finalstepUrl,f=a.passAge,c=a.price,g=void 0===c?[]:c;return(0,I.jsx)("div",{className:"items-center justify-center w-full pb-5 mt-3 md:flex md:gap-3",children:null==b?void 0:b.map(function(a,b){return(0,I.jsxs)("div",{className:"relative w-full p-3 text-center border md:w-1/4 max-md:mb-3 bg-gray-50",children:[(0,I.jsx)("div",{className:"font-semibold text-[26px] text-brand pb-2 border-b border-gray-400",children:a.title}),a.cancerPrice&&(0,I.jsx)("p",{className:"pt-2 font-semibold",children:a.cancerPrice}),a.cancerInfo&&(0,I.jsx)(ea.Z,{text:a.cancerInfo,className:"py-2 border-b border-gray-400"}),a.heartattackPrice&&(0,I.jsx)("p",{className:"pt-2 font-semibold",children:a.heartattackPrice}),a.heartattackInfo&&(0,I.jsx)(ea.Z,{text:a.heartattackInfo,className:"py-2 border-b border-gray-400"}),(0,I.jsx)("p",{className:"pt-2 font-semibold",children:a.reimbursementTitle}),(0,I.jsx)("p",{className:"py-2 border-b border-gray-400",children:a.reimbursementSubTitle}),(null==a?void 0:a.pricediscount)&&(0,I.jsx)("p",{className:"py-2 border-b-2 border-gray-400",children:a.pricediscount}),(0,I.jsx)("div",{className:"mb-4 text-xl font-bold text-center md:text-2xl text-brand",children:f>0?(0,db.xR)(g[b]):a.from}),(0,I.jsx)("div",{className:"xl:absolute xl:-bottom-5 xl:left-10",id:"jumpPriceLine",children:(0,I.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,I.jsx)(af.z,{className:"w-full text-center xl:w-auto",slim:!0,intent:"primary",href:"".concat(e,"?step=").concat(a.ctaLink),children:d})})})]},b)})})},ey=b.Z.country,ez=function(a){var i,j,k=a.title,l=a.ageLabel,o=a.ageCta,b=a.validationMsg,p=a.completeCta,q=a.finalstepUrl,r=a.planfour,c=(0,J.useState)(!1),s=c[0],x=c[1],d=(0,J.useState)(""),t=d[
10],y=d[1],e=(0,J.useState)(0),u=e[0],z=e[1],f=(0,J.useState)(!1),g=f[0],A=f[1],h=(0,J.useState)([]),v=h[0],B=h[1],C=(i=(0,n.Z)(m().mark(function a(b){return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",new Promise(function(a){return setTimeout(a,b)}));case 1:case"end":return a.stop()}},a)})),function(a){return i.apply(this,arguments)}),w=(j=(0,n.Z)(m().mark(function a(){var b,c,d,e,f;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(""!==t){a.next=4;break}A(!0),a.next=20;break;case 4:return x(!0),(b={}).type=4,b.age=t,a.next=10,(0,aj.nj)(ey,"insurance",b);case 10:return c=a.sent,d=[],1===c.code&&((null==(e=c.result)?void 0:e.princeOne)&&d.push(null==e?void 0:e.princeOne),(null==e?void 0:e.princeTwo)&&d.push(null==e?void 0:e.princeTwo),(null==e?void 0:e.princeThree)&&d.push(null==e?void 0:e.princeThree),(null==e?void 0:e.princeFour)&&d.push(null==e?void 0:e.princeFour)),(f=document.getElementById("jumpPriceLine"))&&f.scrollIntoView({behavior:"smooth",block:"center"}),a.next=17,C(700);case 17:B(d),z(t),x(!1);case 20:case"end":return a.stop()}},a)})),function(){return j.apply(this,arguments)});return(0,I.jsxs)("div",{className:"container mx-auto",children:[s&&(0,I.jsx)(ah.Z,{}),(0,I.jsxs)("div",{className:"w-full xl:flex",children:[(0,I.jsx)("div",{className:"w-full xl:w-3/5",children:(0,I.jsx)(aG.Z,{text:k,type:"h2",className:"text-brand max-md:mb-3"})}),(0,I.jsxs)("div",{className:"w-full xl:w-2/5",children:[(0,I.jsxs)("div",{className:"w-full md:flex md:mt-4",children:[(0,I.jsxs)("div",{className:"w-full md:w-1/3",children:[(0,I.jsx)("input",{type:"text",name:"age",value:t,placeholder:l,onChange:function(b){var a=b.target.value;z(0),!1===isNaN(a)&& !0!==/-|\s/g.test(a)&&a<=999&&(y(a),A(!1))},className:"w-full h-12 font-bold"}),(0,I.jsx)("div",{className:"text-left min-h-[32px] block md:hidden",children:g&&(0,I.jsx)("span",{className:"errorMsg",children:b})})]}),(0,I.jsx)("div",{className:"w-full md:w-2/3",children:(0,I.jsx)("div",{className:"flex items-center justify-center",children:(0,I.jsx)(af.z,{className:"",slim:!1,onClick:w,intent:"primary",children:o})})})]}),(0,I.jsx)("div",{className:"text-left min-h-[32px] hidden md:block",children:g&&(0,I.jsx)("span",{className:"errorMsg",children:b})})]})]}),(0,I.jsx)(ex,{planfour:r,price:v,completeCta:p,finalstepUrl:q,passAge:u})]})},eA=function(a){var b=a.planfive,c=a.completeCta,d=a.finalstepUrl;return a.passAge,(0,I.jsx)("div",{className:"items-center justify-center w-full pb-5 mt-3 md:flex md:gap-3",children:null==b?void 0:b.map(function(a,e){var b=!1;return 0===e&&(b=!0),(0,I.jsxs)("div",{className:"relative w-full p-3 text-center border md:w-1/4 max-md:mb-3 ".concat(b?"bg-[#404040]":"bg-gray-50"),children:[(0,I.jsx)("div",{className:"font-semibold text-[26px] ".concat(b?"text-white":"text-brand"),children:a.title}),(0,I.jsx)("p",{className:"mt-2 text-center py-2 border-b border-gray-400 ".concat(b?"text-white":"text-brand"),children:a.subtitle}),(0,I.jsxs)("div",{className:"py-2 border-b border-gray-400",children:[(0,I.jsx)("p",{className:"font-semibold ".concat(b?"text-white":""),children:a.inpatient}),(0,I.jsx)("p",{className:"text-sm ".concat(b?"text-white":""),children:a.inpatientLevel}),(0,I.jsx)("p",{className:"font-semibold ".concat(b?"text-white":""),children:a.inpatientPrice})]}),(0,I.jsx)(ea.Z,{text:a.outpatient,className:"py-2 border-b border-gray-400 ".concat(b&&"text-white[&_p]:text-white [&_p_*]:text-white")}),a.averagebenefits&&(0,I.jsx)("p",{className:"text-sm py-2 border-b border-gray-400 ".concat(b?"text-white":""),children:a.averagebenefits}),a.nowaiting&&(0,I.jsx)("div",{className:"py-2 border-b border-gray-400 ".concat(b?"text-white":""),children:a.nowaiting}),a.exemption&&(0,I.jsx)("div",{className:"py-2 border-b border-gray-400 ".concat(b?"text-white":""),children:a.exemption}),a.voucher&&(0,I.jsx)("div",{className:"py-2 border-b-2 border-gray-400 ".concat(b?"text-white":""),children:a.voucher}),(0,I.jsx)("div",{className:"mb-4 text-xl font-bold text-center md:text-2xl text-brand",children:a.from}),a.ctaLink&&(0,I.jsx)("div",{className:"xl:absolute xl:-bottom-5 xl:left-10",children:(0,I.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,I.jsx)(af.z,{className:"w-full xl:w-auto text-center",slim:!0,intent:"primary",href:"".concat(d,"?step=").concat(a.ctaLink),children:c})})})]},e)})})}
1,eB=function(a){var h=a.title,i=a.ageLabel,j=a.ageCta,b=a.validationMsg,k=a.completeCta,l=a.finalstepUrl,m=a.planfive,c=(0,J.useState)(!1),n=c[0],q=c[1],d=(0,J.useState)(""),o=d[0],r=d[1],e=(0,J.useState)(0),p=e[0],s=e[1],f=(0,J.useState)(!1),g=f[0],t=f[1];return(0,I.jsxs)("div",{className:"container mx-auto",children:[n&&(0,I.jsx)(ah.Z,{}),(0,I.jsxs)("div",{className:"w-full md:flex",children:[(0,I.jsx)("div",{className:"w-full md:w-3/5",children:(0,I.jsx)(aG.Z,{text:h,type:"h2",className:"text-brand max-md:mb-3"})}),(0,I.jsxs)("div",{className:"w-full lg:w-2/5",children:[(0,I.jsxs)("div",{className:"w-full md:flex md:mt-4",children:[(0,I.jsxs)("div",{className:"w-full md:w-1/3",children:[(0,I.jsx)("input",{type:"text",name:"age",value:o,placeholder:i,onChange:function(b){var a=b.target.value;s(0),!1===isNaN(a)&& !0!==/-|\s/g.test(a)&&a<=999&&(r(a),t(!1))},className:"w-full h-12 font-bold"}),(0,I.jsx)("div",{className:"text-left min-h-[32px] block md:hidden",children:g&&(0,I.jsx)("span",{className:"errorMsg",children:b})})]}),(0,I.jsx)("div",{className:"w-full md:w-2/3",children:(0,I.jsx)("div",{className:"flex items-center justify-center",children:(0,I.jsx)(af.z,{className:"",slim:!1,onClick:function(){""===o?t(!0):(q(!0),s(o),q(!1))},intent:"primary",children:j})})})]}),(0,I.jsx)("div",{className:"text-left min-h-[32px] hidden md:block",children:g&&(0,I.jsx)("span",{className:"errorMsg",children:b})})]})]}),(0,I.jsx)(eA,{planfive:m,completeCta:k,finalstepUrl:l,passAge:p})]})},eC=function(a){var b=a.plansix,d=a.completeCta,e=a.finalstepUrl,f=a.passAge,c=a.price,g=void 0===c?[]:c;return(0,I.jsx)("div",{className:"items-center justify-center w-full pb-5 mt-3 md:flex md:gap-3",children:null==b?void 0:b.map(function(a,b){return(0,I.jsxs)("div",{className:"relative w-full p-3 text-center border md:w-1/2 xl:w-1/3 max-md:mb-3 bg-gray-50",children:[(0,I.jsx)("div",{className:"font-semibold text-[26px] text-brand",children:a.title}),(0,I.jsx)("p",{className:"py-2 pb-1 mt-2 font-semibold text-white border-b border-gray-400 bg-accent",children:a.subtitle}),(0,I.jsx)(ea.Z,{text:a.refundinfo,className:"py-2 font-semibold border-b border-gray-400"}),(0,I.jsx)("p",{className:"py-2 border-b border-gray-400",children:a.tripabroad}),(0,I.jsx)("p",{className:"py-2 border-b border-gray-400",children:a.rescuecost}),(0,I.jsx)("p",{className:"py-2 border-b border-gray-400",children:a.medical}),(0,I.jsx)("p",{className:"py-2 border-b border-gray-400",children:a.emergency}),a.covid&&(0,I.jsx)("p",{className:"py-2 border-b border-gray-400",children:a.covid}),(null==a?void 0:a.pricediscount)&&(0,I.jsx)("p",{className:"py-2 border-b-2 border-gray-400",children:a.pricediscount}),(0,I.jsx)("div",{className:"mb-4 text-2xl font-bold text-center text-brand",children:f>0?(0,db.xR)(g[b]):a.from}),(0,I.jsx)("div",{className:"md:absolute md:-bottom-5 md:left-24",id:"jumpPriceLine",children:(0,I.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,I.jsx)(af.z,{className:"w-full text-center md:w-auto",slim:!0,intent:"primary",href:"".concat(e,"?step=").concat(a.ctaLink),children:d})})})]},b)})})},eD=b.Z.country,eE=function(a){var i,j,k=a.title,l=a.ageLabel,o=a.ageCta,b=a.validationMsg,p=a.completeCta,q=a.finalstepUrl,r=a.plansix,c=(0,J.useState)(!1),s=c[0],x=c[1],d=(0,J.useState)(""),t=d[0],y=d[1],e=(0,J.useState)(0),u=e[0],z=e[1],f=(0,J.useState)(!1),g=f[0],A=f[1],h=(0,J.useState)([]),v=h[0],B=h[1],C=(i=(0,n.Z)(m().mark(function a(b){return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",new Promise(function(a){return setTimeout(a,b)}));case 1:case"end":return a.stop()}},a)})),function(a){return i.apply(this,arguments)}),w=(j=(0,n.Z)(m().mark(function a(){var b,c,d,e,f;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(""!==t){a.next=4;break}A(!0),a.next=20;break;case 4:return x(!0),(b={}).type=6,b.age=t,a.next=10,(0,aj.nj)(eD,"insurance",b);case 10:return c=a.sent,d=[],1===c.code&&((null==(e=c.result)?void 0:e.princeOne)&&d.push(null==e?void 0:e.princeOne),(null==e?void 0:e.princeTwo)&&d.push(null==e?void 0:e.princeTwo)),(f=document.getElementById("jumpPriceLine"))&&f.scrollIntoView({behavior:"smooth",block:"center"}),a.next=17,C(700);case 17:B(d),z(t),x(!1);case 20:case"end":return a.stop()}},a)})),function(){return j.apply(this,arguments)});return(0,I.jsxs)("div",{className:"container mx-auto",children:[s&&(0,I.jsx)(ah.Z,{}),(0,I.jsxs)("div",{className:"w-full xl:flex",children:[(0,I.jsx)("div",{className:"w-full xl:w-3/5",children:(0,I.jsx)(aG.Z,{text:k,type:"h2",className:"text-brand max-md:mb-3"})}),(0,I.jsxs)("div",{className:"w-full xl:w-2/5",children:[(0,I.jsxs)("div",{className:"w-full md:flex md:mt-4",children:[(0,I.jsxs)("div",{className:"w-full md:w-1/3",children:[(0,I.jsx)("input",{type:"text",name:"age",value:t,placeholder:l,onChange:function(b){var a=b.target.value;z(0),!1===isNaN(a)&& !0!==/-|\s/g.test(a)&&a<=999&&(y(a),A(!1))},className:"w-full h-12 font-bold"}),(0,I.jsx)("div",{className:"text-left min-h-[32px] block md:hidden",children:g&&(0,I.jsx)("span",{className:"errorMsg",children:b})})]}),(0,I.jsx)("div",{className:"w-full md:w-2/3",children:(0,I.jsx)("div",{className:"flex items-center justify-center",children:(0,I.jsx)(af.z,{className:"",slim:!1,onClick:w,intent:"primary",children:o})})})]}),(0,I.jsx)("div",{className:"text-left min-h-[32px] hidden md:block",children:g&&(0,I.jsx)("span",{className:"errorMsg",children:b})})]})]}),(0,I.jsx)(eC,{plansix:r,price:v,completeCta:p,finalstepUrl:q,passAge:u})]})},eF=function(a){var b=a.seveig,d=a.completeCta,e=a.finalstepUrl,f=a.passAge,c=a.price,g=void 0===c?[]:c;return(0,I.jsx)("div",{className:"items-center justify-center w-full pb-5 mt-3 md:flex md:gap-3",children:null==b?void 0:b.map(function(a,c){var b=!1;return 0===c&&(b=!0),(0,I.jsxs)("div",{className:"relative w-full p-3 text-center border md:w-1/4 max-md:mb-3 ".concat(b?"bg-[#404040]":"bg-gray-50"),children:[(0,I.jsx)("div",{className:"font-semibold text-[26px] text-brand",children:a.title}),(0,I.jsx)("div",{className:"pb-2 text-xl font-semibold text-brand",children:a.number}),(0,I.jsx)("div",{className:"text-white border-b border-gray-400 bg-accent ".concat(a.recommendation&&"pb-1"),children:a.recommendation}),(0,I.jsxs)("div",{className:"py-2 border-b border-gray-400",children:[(0,I.jsx)("p",{className:"font-semibold ".concat(b?"text-white":""),children:a.reimbursementPer}),(0,I.jsx)("p",{className:"".concat(b?"text-white":""),children:a.reimbursementInfo})]}),(0,I.jsxs)("div",{className:"py-2 border-b border-gray-400",children:[a.vconsultationImg&&(0,I.jsx)("div",{className:"w-32 mx-auto ".concat(!b&&"bg-black p-2"),children:(0,I.jsx)(ae.ZP,{image:a.vconsultationImg})}),(0,I.jsx)("p",{className:"".concat(b?"text-white":""),children:a.vconsultation})]}),a.allowancePrice&&(0,I.jsxs)("div",{className:"py-2 border-b border-gray-400",children:[(0,I.jsx)("p",{className:"font-semibold ".concat(b?"text-white":""),children:a.allowancePrice}),(0,I.jsx)("p",{className:"".concat(b?"text-white":""),children:a.allowanceInfo})]}),(null==a?void 0:a.pricediscount)&&(0,I.jsx)("div",{className:"py-2 border-b-2 border-gray-400 ".concat(b?"text-white":""),children:a.pricediscount}),(0,I.jsx)("div",{className:"mb-4 text-xl font-bold text-center md:text-2xl text-brand",children:f>0?(0,db.xR)(g[c]):a.from}),(0,I.jsx)("div",{className:"xl:absolute xl:-bottom-5 xl:left-10",id:"jumpPriceLine",children:(0,I.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,I.jsx)(af.z,{className:"w-full text-center xl:w-auto",slim:!0,intent:"primary",href:"".concat(e,"?step=").concat(a.ctaLink),children:d})})})]},c)})})},eG=b.Z.country,eH=function(a){var i,j,k=a.title,l=a.ageLabel,o=a.ageCta,b=
1a.validationMsg,x=a.animal,p=a.completeCta,q=a.finalstepUrl,r=a.seveig,c=(0,J.useState)(!1),s=c[0],y=c[1],d=(0,J.useState)(""),t=d[0],z=d[1],e=(0,J.useState)(0),u=e[0],A=e[1],f=(0,J.useState)(!1),g=f[0],B=f[1],h=(0,J.useState)([]),v=h[0],C=h[1],D=(i=(0,n.Z)(m().mark(function a(b){return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",new Promise(function(a){return setTimeout(a,b)}));case 1:case"end":return a.stop()}},a)})),function(a){return i.apply(this,arguments)}),w=(j=(0,n.Z)(m().mark(function a(){var b,c,d,e,f;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(!(""===t||t>=8)){a.next=4;break}B(!0),a.next=21;break;case 4:return y(!0),(b={}).type=7,b.age=t,b.animal=x,a.next=11,(0,aj.nj)(eG,"insurance",b);case 11:return c=a.sent,d=[],1===c.code&&((null==(e=c.result)?void 0:e.princeOne)&&d.push(null==e?void 0:e.princeOne),(null==e?void 0:e.princeTwo)&&d.push(null==e?void 0:e.princeTwo),(null==e?void 0:e.princeThree)&&d.push(null==e?void 0:e.princeThree),(null==e?void 0:e.princeFour)&&d.push(null==e?void 0:e.princeFour)),(f=document.getElementById("jumpPriceLine"))&&f.scrollIntoView({behavior:"smooth",block:"center"}),a.next=18,D(700);case 18:C(d),A(t),y(!1);case 21:case"end":return a.stop()}},a)})),function(){return j.apply(this,arguments)});return(0,I.jsxs)("div",{className:"container mx-auto",children:[s&&(0,I.jsx)(ah.Z,{}),(0,I.jsxs)("div",{className:"w-full lg:flex",children:[(0,I.jsx)("div",{className:"w-full lg:w-2/4",children:(0,I.jsx)(aG.Z,{text:k,type:"h2",className:"text-brand max-md:mb-3"})}),(0,I.jsxs)("div",{className:"w-full lg:w-2/4",children:[(0,I.jsxs)("div",{className:"w-full md:flex md:mt-4",children:[(0,I.jsxs)("div",{className:"w-full md:w-1/3",children:[(0,I.jsx)("input",{type:"text",name:"age",value:t,placeholder:l,onChange:function(b){var a=b.target.value;A(0),!1===isNaN(a)&& !0!==/-|\s/g.test(a)&&a<=25&&(z(a),B(!1))},className:"w-full h-12 font-bold"}),(0,I.jsx)("div",{className:"text-left min-h-[32px] block md:hidden",children:g&&(0,I.jsx)("span",{className:"errorMsg",children:b})})]}),(0,I.jsx)("div",{className:"w-full md:w-2/3",children:(0,I.jsx)("div",{className:"flex items-center justify-center",children:(0,I.jsx)(af.z,{className:"",slim:!1,onClick:w,intent:"primary",children:o})})})]}),(0,I.jsx)("div",{className:"text-left min-h-[32px] hidden md:block",children:g&&(0,I.jsx)("span",{className:"errorMsg",children:b})})]})]}),(0,I.jsx)(eF,{seveig:r,completeCta:p,finalstepUrl:q,passAge:u,price:v})]})},eI=function(a){var b=a.leftImage,e=a.rightImage,f=a.information,c=a.googleImage,d=a.appStoreImage,g=a.googleLink,h=a.appStoreLink;return(0,I.jsx)("div",{className:"container p-5 mx-auto bg-gray-50 max-md:p-3",children:(0,I.jsxs)("div",{className:"grid grid-cols-[30%_70%] gap-6 max-md:grid-cols-1",children:[(0,I.jsx)("div",{className:"",children:b&&(0,I.jsx)(ae.ZP,{image:b})}),(0,I.jsxs)("div",{className:"",children:[(0,I.jsx)("div",{className:"mb-5 max-md:mb-3 w-[300px]",children:b&&(0,I.jsx)(ae.ZP,{image:e})}),(0,I.jsx)("div",{className:"mb-5 max-md:mb-3",children:(0,I.jsx)(bc.Z,{text:f,className:""})}),(0,I.jsxs)("div",{className:"flex items-center justify-center w-full",children:[(0,I.jsx)("div",{className:"w-[135px]",children:(0,I.jsx)(am.r,{href:g||"/",className:"",onClick:function(a){a.preventDefault();var b=window.screen.width/2-300,c=window.screen.height/2-350;window.open(g||"/","_blank","width=".concat(600,",height=").concat(700,",left=").concat(b,",top=").concat(c))},children:c&&(0,I.jsx)(ae.ZP,{image:c,height:40})})}),(0,I.jsx)("div",{className:"w-[120px] ml-4",children:(0,I.jsx)(am.r,{href:h||"/",className:"",onClick:function(a){a.preventDefault();var b=window.screen.width/2-300,c=window.screen.height/2-350;window.open(h||"/","_blank","width=".concat(600,",height=").concat(700,",left=").concat(b,",top=").concat(c))},children:d&&(0,I.jsx)(ae.ZP,{image:d,height:40})})})]})]})]})})},eJ=function(a){var d=a.title,e=a.subTitle,b=a.ifSubInfo,c=a.image;return(0,I.jsxs)("div",{className:"container p-5 mx-auto bg-gray-50 max-md:p-3",children:[(0,I.jsx)(aG.Z,{type:"h2",text:d,className:"mb-5 text-center break-words max-md:mb-3 text-brand"}),(0,I.jsx)(aG.Z,{type:"h1",text:e,className:"mb-5 text-center max-md:mb-3"}),(0,I.jsx)("div",{className:"mb-5 max-md:mb-3 max-w-[543px] mx-auto",children:c&&(0,I.jsx)(ae.ZP,{image:c})}),b&&(0,I.jsx)(bc.Z,{text:b,className:""})]})},eK=function(a){var b=a.title,c=a.subTitle,d=a.leftInformation,e=a.rightInformation;return(0,I.jsxs)("div",{className:"container mx-auto",children:[(0,I.jsx)(aG.Z,{type:"h2",text:b,className:"mb-5 max-md:mb-3 break-words text-brand text-center"}),(0,I.jsx)(aG.Z,{type:"h1",text:c,className:"mb-5 max-md:mb-3 text-center"}),(0,I.jsxs)("div",{className:"grid grid-cols-2 gap-6 max-md:grid-cols-1",children:[(0,I.jsx)(bc.Z,{text:d,className:""}),(0,I.jsx)(bc.Z,{text:e,className:""})]})]})},eL=function(a){var p=a.title,q=a.subtitle,b=a.heading,i=a.subheaderone,c=a.boxone,j=a.subheadertwo,d=a.boxtwo,k=a.subheaderthree,e=a.boxthree,r=a.completeCta,s=a.finalstepUrl,f=b.findIndex(function(a){return a.isReccommend}),l=(0,J.useState)(!1),g=l[0],t=l[1],m=(0,J.useState)(!1),h=m[0],u=m[1],n=(0,J.useState)(f),o=n[0],v=n[1],w=function(a){v(a)},x=function(a){2===a?t(!g):3===a&&u(!h)};return(0,I.jsxs)("div",{className:"container mx-auto maintable",children:[(0,I.jsx)(aG.Z,{type:"h2",text:p,className:"text-center text-brand"}),(0,I.jsx)(aG.Z,{type:"h3",text:q,className:"text-center"}),(0,I.jsx)("div",{className:"hidden md:block",children:(0,I.jsx)("table",{className:"w-full mt-3 table-fixed border-spacing-0",children:(0,I.jsxs)("tbody",{children:[(0,I.jsx)(em,{heading:b,ismobile:!1,activeTab:0,recommendedIndex:f,handleTabClick:function(a){return w(a)}}),(0,I.jsx)("tr",{className:"columns",children:(0,I.jsx)("td",{colSpan:5,className:"",children:(0,I.jsx)("div",{className:"pb-1 -mt-0.5 text-center bg-gray-300 border",children:(0,I.jsx)("span",{className:"ml-2 font-bold text-accent",children:i})})})}),null==c?void 0:c.map(function(a,b){return(0,I.jsx)(ej,{data:a,recommendedIndex:f,fieldname:"value",ismobile:!1,keynumber:0,index:b})}),(0,I.jsx)("tr",{className:"columns",children:(0,I.jsx)("td",{colSpan:5,className:"",onClick:function(){return x(2)},children:(0,I.jsxs)("div",{className:"pb-1 -mt-0.5 text-center bg-gray-300 border cursor-pointer",children:[(0,I.jsx)(bK(),{loader:bL.vg,src:g?"arrowopen.png":"arrowclose.png",alt:"",width:18,height:10}),(0,I.jsx)("span",{className:"ml-2 font-bold text-accent",children:j})]})})}),g&&(null==d?void 0:d.map(function(a,b){return(0,I.jsx)(ek,{data:a,ismobile:!1,keynumber:0,index:b,recommendedIndex:f})})),(0,I.jsx)("tr",{className:"columns",children:(0,I.jsx)("td",{colSpan:5,className:"",onClick:function(){return x(3)},children:(0,I.jsxs)("div",{className:"pb-1 -mt-0.5 text-center bg-gray-300 border cursor-pointer",children:[(0,I.jsx)(bK(),{loader:bL.vg,src:h?"arrowopen.png":"arrowclose.png",alt:"",width:18,height:10}),(0,I.jsx)("span",{className:"ml-2 font-bold text-accent",children:k})]})})}),h&&(null==e?void 0:e.map(function(a,b){return(0,I.jsx)(ej,{data:a,recommendedIndex:f,fieldname:"info",ismobile:!1,keynumber:0,index:b})})),(0,I.jsxs)("tr",{className:"columns",children:[(0,I.jsx)("td",{className:"w-1/5",children:" "}),null==b?void 0:b.map(function(a,b){return(0,I.jsx)("td",{className:"w-1/5 bg-gray-200",children:(0,I.jsx)("div",{className:"pb-2",children:(0,I.jsx)("div",{className:" md:-bottom-5 md:left-10",children:(0,I.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,I.jsx)(af.z,{className:"w-full text-center md:w-auto",slim:!0,intent:"primary",href:"".concat(s,"?step=").concat(a.ctaLink),children:r})})})})},b)})]})]})})}),(0,I.jsxs)("div",{className:"block md:hidden",children:[(0,I.jsx)(em,{heading:b,width:"w-1/4",recommendedIndex:f,ismobile:!0,activeTab:o,handleTabClick:function(a){return w(a)}}),(0,I.jsx)("table",{className:"w-full table-fixed border-spacing-0 ".concat(o===f?"bg-[#404040]":"bg-gray-50"),children:(0,I.jsxs)("tbody",{children:[(0,I.jsx)("tr",{className:"columns",children:(0,I.jsx)("td",{colSpan:2,className:"",children:(0,I.jsx)("div",{className:"pb-1 -mt-0.5 text-center bg-gray-300",children:(0,I.jsx)("span",{className:"ml-2 font-bold text-accent",children:i})})})}),null==c?void 0:c.map(function(a,b){return(0,I.jsx)(ej,{data:a,recommendedIndex:f,fieldname:"value",ismobile:!0,keynumber:o,index:b})}),(0,I.jsx)("tr",{className:"columns",children:(0,I.jsx)("td",{colSpan:2,className:"",onClick:function(){return x(2)},children:(0,I.jsxs)("div",{className:"pb-1 -mt-0.5 text-center bg-gray-300 cursor-pointer",children:[(0,I.jsx)(bK(),{loader:bL.vg,src:g?"arrowopen.png":"arrowclose.png",alt:"",width:18,height:10}),(0,I.jsx)("span",{className:"ml-2 font-bold text-accent",children:j})]})})}),g&&(null==d?void 0:d.map(function(a,b){return(0,I.jsx)(ek,{data:a,ismobile:!0,keynumber:o,index:b,recommendedIndex:f})})),(0,I.jsx)("tr",{className:"columns",children:(0,I.jsx)("td",{colSpan:2,className:"",onClick:function(){return x(3)},children:(0,I.jsxs)("div",{className:"pb-1 -mt-0.5 text-center bg-gray-300 cursor-pointer",children:[(0,I.jsx)(bK(),{loader:bL.vg,src:h?"arrowopen.png":"arrowclose.png",alt:"",width:18,height:10}),(0,I.jsx)("span",{className:"ml-2 font-bold text-accent",children:k})]})})}),h&&(null==e?void 0:e.map(function(a,b){return(0,I.jsx)(ej,{data:a,recommendedIndex:f,fieldname:"info",ismobile:!0,keynumber:o,index:b})})),(0,I.jsx)("tr",{className:"columns",children:(0,I.jsx)("td",{colSpan:2,className:"bg-gray-200",children:null==b?void 0:b.map(function(b,a){return(0,I.jsx)("div",{className:"p-3 ".concat(o===a?"block":"hidden"),children:(0,I.jsx)("div",{className:"flex items-center justify-center",children:(0,I.jsx)(af.z,{className:"w-full md:w-auto",slim:!0,intent:"primary",href:"".concat(s,"?step=").concat(b.ctaLink),children:r})})},a)})})})]})})]})]})},eM=function(a){var o=a.title,h=a.subtitle,b=a.heading,i=a.subheaderone,c=a.boxone,j=a.subheadertwo,d=a.boxtwo,k=a.subheaderthree,e=a.boxthree,p=a.completeCta,q=a.finalstepUrl,f=b.findIndex(function(a){return a.isReccommend}),l=(0,J.useState)(!1),g=l[0],r=l[1],m=(0,J.useState)(f),n=m[0],s=m[1],t=function(a){s(a)},u=function(a){3===a&&r(!g)};return(0,I.jsxs)("div",{className:"container mx-auto maintable",children:[(0,I.jsx)(aG.Z,{type:"h2",text:o,className:"text-center text-brand"}),h&&(0,I.jsx)(aG.Z,{type:"h3",text:h,className:"text-center"}),(0,I.jsx)("div",{className:"hidden md:block",children:(0,I.jsx)("table",{className:"w-full mt-3 table-fixed border-spacing-0",children:(0,I.jsxs)("tbody",{children:[(0,I.jsx)(em,{heading:b,ismobile:!1,activeTab:0,recommendedIndex:f,handleTabClick:function(a){return t(a)}}),(0,I.jsx)("tr",{className:"columns",children:(0,I.jsx)("td",{colSpan:4,className:"",children:(0,I.jsx)("div",{className:"pb-1 -mt-0.5 text-center bg-gray-300 border",children:(0,I.jsx)("span",{className:"ml-2 font-bold text-accent",children:i})})})}),null==c?void 0:c.map(function(a,b){return(0,I.jsx)(ej,{data:a,fieldname:"value",recommendedIndex:f,ismobile:!1,keynumber:0,index:b})}),(0,I.jsx)("tr",{className:"columns",children:(0,I.jsx)("td",{colSpan:4,className:"",children:(0,I.jsx)("div",{className:"pb-1 -mt-0.5 text-center bg-gray-300 border",children:(0,I.jsx)("span",{className:"ml-2 font-bold text-accent",children:j})})})}),null==d?void 0:d.map(function(a,b){return(0,I.jsx)(ej,{data:a,recommendedIndex:f,fieldname:"value",ismobile:!1,keynumber:0,index:b})}),(0,I.jsx)("tr",{className:"columns",children:(0,I.jsx)("td",{colSpan:4,className:"",onClick:function(){return u(3)},children:(0,I.jsxs)("div",{className:"pb-1 -mt-0.5 text-center bg-gray-300 border cursor-pointer",children:[(0,I.jsx)(bK(),{loader:bL.vg,src:g?"arrowopen.png":"arrowclose.png",alt:"",width:18,height:10}),(0,I.jsx)("span",{className:"ml-2 font-bold text-accent",children:k})]})})}),g&&(null==e?void 0:e.map(function(a,b){return(0,I.jsx)(es,{data:a,recommendedIndex:f,ismobile:!1,keynumber:0,index:b})})),(0,I.jsxs)("tr",{className:"columns",children:[(0,I.jsx)("td",{className:"w-1/5",children:" "}),null==b?void 0:b.map(function(a,b){return(0,I.jsx)("td",{className:"w-1/5 bg-gray-200",children:(0,I.jsx)("div",{className:"pb-2",children:(0,I.jsx)("div",{className:" md:-bottom-5 md:left-10",children:(0,I.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,I.jsx)(af.z,{className:"w-full text-center md:w-auto",slim:!0,intent:"primary",href:"".concat(q,"?step=").concat(a.ctaLink),children:p})})})})},b)})]})]})})}),(0,I.jsxs)("div",{className:"block md:hidden",children:[(0,I.jsx)(em,{heading:b,width:"w-1/3",recommendedIndex:f,ismobile:!0,activeTab:n,handleTabClick:function(a){return t(a)}}),(0,I.jsx)("table",{className:"w-full table-fixed border-spacing-0 ".concat(n===f?"bg-[#404040]":"bg-gray-50"),children:(0,I.jsxs)("tbody",{children:[(0,I.jsx)("tr",{className:"columns",children:(0,I.jsx)("td",{colSpan:2,className:"",children:(0,I.jsx)("div",{className:"pb-1 -mt-0.5 text-center bg-gray-300",children:(0,I.jsx)("span",{className:"ml-2 font-bold text-accent",children:i})})})}),null==c?void 0:c.map(function(a,b){return(0,I.jsx)(ej,{data:a,recommendedIndex:f,fieldname:"value",ismobile:!0,keynumber:n,index:b})}),(0,I.jsx)("tr",{className:"columns",children:(0,I.jsx)("td",{colSpan:2,className:"",children:(0,I.jsx)("div",{className:"pb-1 -mt-0.5 text-center bg-gray-300",children:(0,I.jsx)("span",{className:"ml-2 font-bold text-accent",children:j})})})}),null==d?void 0:d.map(function(a,b){return(0,I.jsx)(ej,{data:a,recommendedIndex:f,fieldname:"value",ismobile:!0,keynumber:n,index:b})}),(0,I.jsx)("tr",{className:"columns",children:(0,I.jsx)("td",{colSpan:2,className:"",onClick:function(){return u(3)},children:(0,I.jsxs)("div",{className:"pb-1 -mt-0.5 text-center bg-gray-300 cursor-pointer",children:[(0,I.jsx)(bK(),{loader:bL.vg,src:g?"arrowopen.png":"arrowclose.png",alt:"",width:18,height:10}),(0,I.jsx)("span",{className:"ml-2 font-bold text-accent",children:k})]})})}),g&&(null==e?void 0:e.map(function(a,b){return(0,I.jsx)(es,{data:a,recommendedIndex:f,ismobile:!0,keynumber:n,index:b})})),(0,I.jsx)("tr",{className:"columns",children:(0,I.jsx)("td",{colSpan:2,className:"bg-gray-200",children:null==b?void 0:b.map(function(b,a){return(0,I.jsx)("div",{className:"p-3 ".concat(n===a?"block":"hidden"),children:(0,I.jsx)("div",{className:"flex items-center justify-center",children:(0,I.jsx)(af.z,{className:"w-full md:w-auto",slim:!0,intent:"primary",href:"".concat(q,"?step=").concat(b.ctaLink),children:p})})},a)})})})]})})]})]})},eN=function(b){var g=b.title,h=b.subtitle,a=b.heading,c=b.plandata,i=b.completeCta,j=b.finalstepUrl,d=a.findIndex(function(a){return a.isReccommend}
1),e=(0,J.useState)(d),f=e[0],k=e[1],l=function(a){k(a)};return(0,I.jsxs)("div",{className:"container mx-auto maintable",children:[(0,I.jsx)(aG.Z,{type:"h2",text:g,className:"text-center text-brand"}),(0,I.jsx)(aG.Z,{type:"h3",text:h,className:"text-center"}),(0,I.jsx)("div",{className:"hidden md:block",children:(0,I.jsx)("table",{className:"w-full mt-3 table-fixed border-spacing-0",children:(0,I.jsxs)("tbody",{children:[(0,I.jsx)(em,{heading:a,ismobile:!1,activeTab:0,recommendedIndex:d,handleTabClick:function(a){return l(a)}}),null==c?void 0:c.map(function(a,b){return(0,I.jsx)(es,{data:a,recommendedIndex:d,ismobile:!1,keynumber:0,index:b})}),(0,I.jsxs)("tr",{className:"columns",children:[(0,I.jsx)("td",{className:"w-1/5",children:" "}),null==a?void 0:a.map(function(a,b){return(0,I.jsx)("td",{className:"w-1/5 bg-gray-200",children:(0,I.jsx)("div",{className:"pb-2",children:(0,I.jsx)("div",{className:" md:-bottom-5 md:left-10",children:(0,I.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,I.jsx)(af.z,{className:"w-full text-center md:w-auto",slim:!0,intent:"primary",href:"".concat(j,"?step=").concat(a.ctaLink),children:i})})})})},b)})]})]})})}),(0,I.jsxs)("div",{className:"block md:hidden",children:[(0,I.jsx)(em,{heading:a,width:"w-1/2",ismobile:!0,activeTab:f,recommendedIndex:d,handleTabClick:function(a){return l(a)}}),(0,I.jsx)("table",{className:"w-full table-fixed border-spacing-0 ".concat(f===d?"bg-[#404040]":"bg-gray-50"),children:(0,I.jsxs)("tbody",{children:[null==c?void 0:c.map(function(a,b){return(0,I.jsx)(es,{data:a,recommendedIndex:d,ismobile:!0,keynumber:f,index:b})}),(0,I.jsx)("tr",{className:"columns",children:(0,I.jsx)("td",{colSpan:2,className:"bg-gray-200",children:null==a?void 0:a.map(function(b,a){return(0,I.jsx)("div",{className:"p-3 ".concat(f===a?"block":"hidden"),children:(0,I.jsx)("div",{className:"flex items-center justify-center",children:(0,I.jsx)(af.z,{className:"w-full md:w-auto",slim:!0,intent:"primary",href:"".concat(j,"?step=").concat(b.ctaLink),children:i})})},a)})})})]})})]})]})},eO=function(a){var o=a.title,p=a.subtitle,b=a.heading,q=a.ctaLink,c=a.boxone,i=a.subheadertwo,d=a.boxtwo,j=a.subheaderthree,e=a.boxthree,r=a.finalstepUrl,s=a.completeCta,f=b.findIndex(function(a){return a.isReccommend}),k=(0,J.useState)(!1),g=k[0],t=k[1],l=(0,J.useState)(!1),h=l[0],u=l[1],m=(0,J.useState)(f),n=m[0],v=m[1],w=function(a){1===a?t(!g):2===a&&u(!h)},x=function(a){v(a)};return(0,I.jsxs)("div",{className:"container mx-auto maintable",children:[(0,I.jsx)(aG.Z,{type:"h2",text:o,className:"text-center text-brand"}),(0,I.jsx)(aG.Z,{type:"h3",text:p,className:"text-center"}),(0,I.jsx)("div",{className:"hidden md:block",children:(0,I.jsx)("table",{className:"w-full mt-3 table-fixed border-spacing-0",children:(0,I.jsxs)("tbody",{children:[(0,I.jsx)(em,{heading:b,ismobile:!1,activeTab:0,recommendedIndex:f,handleTabClick:function(a){return x(a)}}),null==c?void 0:c.map(function(a,b){return(0,I.jsx)(es,{data:a,recommendedIndex:f,ismobile:!1,keynumber:0,index:b})}),(0,I.jsx)("tr",{className:"columns",children:(0,I.jsx)("td",{colSpan:2,className:"",onClick:function(){return w(1)},children:(0,I.jsxs)("div",{className:"pb-1 -mt-0.5 text-center bg-gray-300 border cursor-pointer",children:[(0,I.jsx)(bK(),{loader:bL.vg,src:g?"arrowopen.png":"arrowclose.png",alt:"",width:18,height:10}),(0,I.jsx)("span",{className:"ml-2 font-bold text-accent",children:i})]})})}),g&&(null==d?void 0:d.map(function(a,b){return(0,I.jsx)(ej,{data:a,recommendedIndex:f,fieldname:"value",ismobile:!1,keynumber:0,index:b})})),(0,I.jsx)("tr",{className:"columns",children:(0,I.jsx)("td",{colSpan:2,className:"",onClick:function(){return w(2)},children:(0,I.jsxs)("div",{className:"pb-1 -mt-0.5 text-center bg-gray-300 border cursor-pointer",children:[(0,I.jsx)(bK(),{loader:bL.vg,src:h?"arrowopen.png":"arrowclose.png",alt:"",width:18,height:10}),(0,I.jsx)("span",{className:"ml-2 font-bold text-accent",children:j})]})})}),h&&(null==e?void 0:e.map(function(a,b){return(0,I.jsx)(ej,{data:a,recommendedIndex:f,fieldname:"value",ismobile:!1,keynumber:0,index:b})})),(0,I.jsxs)("tr",{className:"columns",children:[(0,I.jsx)("td",{className:"w-1/2",children:" "}),null==b?void 0:b.map(function(b,a){return(0,I.jsx)("td",{className:"w-1/5 bg-gray-200",children:(0,I.jsx)("div",{className:"pb-2",children:(0,I.jsx)("div",{className:" md:-bottom-5 md:left-10",children:(0,I.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,I.jsx)(af.z,{className:"w-full text-center md:w-auto",slim:!0,intent:"primary",href:"".concat(r,"?step=").concat(q),children:s})})})})},a)})]})]})})}),(0,I.jsxs)("div",{className:"block md:hidden",children:[(0,I.jsx)(em,{heading:b,width:"w-full",recommendedIndex:f,ismobile:!0,activeTab:n,handleTabClick:function(a){return x(a)}}),(0,I.jsx)("table",{className:"w-full table-fixed border-spacing-0 ".concat(n===f?"bg-[#404040]":"bg-gray-50"),children:(0,I.jsxs)("tbody",{children:[null==c?void 0:c.map(function(a,b){return(0,I.jsx)(es,{data:a,recommendedIndex:f,ismobile:!0,keynumber:n,index:b})}),(0,I.jsx)("tr",{className:"columns",children:(0,I.jsx)("td",{colSpan:2,className:"",onClick:function(){return w(1)},children:(0,I.jsxs)("div",{className:"pb-1 -mt-0.5 text-center bg-gray-300 cursor-pointer",children:[(0,I.jsx)(bK(),{loader:bL.vg,src:g?"arrowopen.png":"arrowclose.png",alt:"",width:18,height:10}),(0,I.jsx)("span",{className:"ml-2 font-bold text-accent",children:i})]})})}),g&&(null==d?void 0:d.map(function(a,b){return(0,I.jsx)(ej,{data:a,recommendedIndex:f,fieldname:"value",ismobile:!0,keynumber:n,index:b})})),(0,I.jsx)("tr",{className:"columns",children:(0,I.jsx)("td",{colSpan:2,className:"",onClick:function(){return w(2)},children:(0,I.jsxs)("div",{className:"pb-1 -mt-0.5 text-center bg-gray-300 cursor-pointer",children:[(0,I.jsx)(bK(),{loader:bL.vg,src:h?"arrowopen.png":"arrowclose.png",alt:"",width:18,height:10}),(0,I.jsx)("span",{className:"ml-2 font-bold text-accent",children:j})]})})}),h&&(null==e?void 0:e.map(function(a,b){return(0,I.jsx)(ej,{data:a,recommendedIndex:f,fieldname:"value",ismobile:!0,keynumber:n,index:b})})),(0,I.jsx)("tr",{className:"columns",children:(0,I.jsx)("td",{colSpan:2,className:"bg-gray-200",children:null==b?void 0:b.map(function(b,a){return(0,I.jsx)("div",{className:"p-3 ".concat(n===a?"block":"hidden"),children:(0,I.jsx)("div",{className:"flex items-center justify-center",children:(0,I.jsx)(af.z,{className:"w-full md:w-auto",slim:!0,intent:"primary",href:"".concat(r,"?step=").concat(q),children:s})})},a)})})})]})})]})]})},eP=function(a){var l=a.title,g=a.subtitle,b=a.heading,c=a.boxone,h=a.subheadertwo,d=a.boxtwo,m=a.completeCta,n=a.finalstepUrl,e=b.findIndex(function(a){return a.isReccommend}),i=(0,J.useState)(!1),f=i[0],o=i[1],j=(0,J.useState)(e),k=j[0],p=j[1],q=function(a){p(a)},r=function(a){3===a&&o(!f)};return(0,I.jsxs)("div",{className:"container mx-auto maintable",children:[(0,I.jsx)(aG.Z,{type:"h2",text:l,className:"text-center text-brand"}),g&&(0,I.jsx)(aG.Z,{type:"h3",text:g,className:"text-center"}),(0,I.jsx)("div",{className:"hidden md:block",children:(0,I.jsx)("table",{className:"w-full mt-3 table-fixed border-spacing-0",children:(0,I.jsxs)("tbody",{children:[(0,I.jsx)(em,{heading:b,ismobile:!1,activeTab:0,recommendedIndex:e,handleTabClick:function(a){return q(a)}}),null==c?void 0:c.map(function(a,b){return(0,I.jsx)(es,{data:a,recommendedIndex:e,ismobile:!1,keynumber:0,index:b})}),(0,I.jsx)("tr",{className:"columns",children:(0,I.jsx)("td",{colSpan:3,className:"",onClick:function(){return r(3)},children:(0,I.jsxs)("div",{className:"pb-1 -mt-0.5 text-center bg-gray-300 border cursor-pointer",children:[(0,I.jsx)(bK(),{loader:bL.vg,src:f?"arrowopen.png":"arrowclose.png",alt:"",width:18,height:10}),(0,I.jsx)("span",{className:"ml-2 font-bold text-accent",children:h})]})})}),f&&(null==d?void 0:d.map(function(a,b){return(0,I.jsx)(ek,{data:a,recommendedIndex:e,ismobile:!1,keynumber:k,index:b})})),(0,I.jsxs)("tr",{className:"columns",children:[(0,I.jsx)("td",{className:"w-1/5",children:" "}),null==b?void 0:b.map(function(a,b){return(0,I.jsx)("td",{className:"w-1/5 bg-gray-200",children:(0,I.jsx)("div",{className:"pb-2",children:(0,I.jsx)("div",{className:" md:-bottom-5 md:left-10",children:(0,I.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,I.jsx)(af.z,{className:"w-full text-center md:w-auto",slim:!0,intent:"primary",href:"".concat(n,"?step=").concat(a.ctaLink),children:m})})})})},b)})]})]})})}),(0,I.jsxs)("div",{className:"block md:hidden",children:[(0,I.jsx)(em,{heading:b,width:"w-1/2",recommendedIndex:e,ismobile:!0,activeTab:k,handleTabClick:function(a){return q(a)}}),(0,I.jsx)("table",{className:"w-full table-fixed border-spacing-0 ".concat(k===e?"bg-[#404040]":"bg-gray-50"),children:(0,I.jsxs)("tbody",{children:[null==c?void 0:c.map(function(a,b){return(0,I.jsx)(es,{data:a,ismobile:!0,recommendedIndex:e,keynumber:k,index:b})}),(0,I.jsx)("tr",{className:"columns",children:(0,I.jsx)("td",{colSpan:2,className:"",onClick:function(){return r(3)},children:(0,I.jsxs)("div",{className:"pb-1 -mt-0.5 text-center bg-gray-300 cursor-pointer",children:[(0,I.jsx)(bK(),{loader:bL.vg,src:f?"arrowopen.png":"arrowclose.png",alt:"",width:18,height:10}),(0,I.jsx)("span",{className:"ml-2 font-bold text-accent",children:h})]})})}),f&&(null==d?void 0:d.map(function(a,b){return(0,I.jsx)(ek,{data:a,ismobile:!0,keynumber:k,index:b,recommendedIndex:e})})),(0,I.jsx)("tr",{className:"columns",children:(0,I.jsx)("td",{colSpan:2,className:"bg-gray-200",children:null==b?void 0:b.map(function(b,a){return(0,I.jsx)("div",{className:"p-3 ".concat(k===a?"block":"hidden"),children:(0,I.jsx)("div",{className:"flex items-center justify-center",children:(0,I.jsx)(af.z,{className:"w-full md:w-auto",slim:!0,intent:"primary",href:"".concat(n,"?step=").concat(b.ctaLink),children:m})})},a)})})})]})})]})]})},eQ=a(48764).Buffer,eR=b.Z.country,eS=function(d){var f=d.domainUrl,a=(0,J.useState)(""),h=a[0],k=a[1],b=(0,J.useState)(!1),i=b[0],l=b[1],c=(0,J.useState)("900px"),j=c[0],o=c[1];return(0,J.useEffect)(function(){l(!0);var b=e.Z.getUrlParam("step"),a=e.Z.getUrlParam("number"),c={function:{feeCalc:!0,formFill:!0}};if((a||"hundehaftpflichtschutz/antrag-msb"===b)&&o("1100px"),void 0!==(0,_.getCookie)("login_token_supervista")?(0,_.getCookie)("login_token_supervista"):"")(p=(0,n.Z)(m().mark(function d(){var e,h,i,j,n,o,p,q,s;return m().wrap(function(d){for(;;)switch(d.prev=d.next){case 0:return d.next=2,(0,g.lF)(eR);case 2:(e=d.sent).success?(""===(i=(h=e.data).mobile)&&(i=h.phone),j=i,n=r()(h.birthday).format("DD.MM.YYYY"),a?c.insurance={erstattung:a}:c.insurance={},c.person={firstName:h.first_name,birthDate:n,externalIdentifier:void 0!==(0,_.getCookie)("customerid")?(0,_.getCookie)("customerid"):""},c.contact={street:h.street,streetNo:h.street2,zip:h.zip,place:h.city,phone:j,mail:h.email},c.payment={},c.agent={},c.externalIDs={},o=JSON.stringify(c),p=eQ.from(o).toString("base64"),k("".concat(f).concat(b,"?cIdent=").concat(p)),l(!1)):(a&&(c.insurance={erstattung:a}),q=JSON.stringify(c),s=eQ.from(q).toString("base64"),k("".concat(f).concat(b,"?cIdent=").concat(s)),l(!1));case 4:case"end":return d.stop()}},d)})),function(){return p.apply(this,arguments)})();else{a&&(c.insurance={erstattung:a});var h=JSON.stringify(c),i=eQ.from(h).toString("base64");k("".concat(f).concat(b,"?cIdent=").concat(i)),l(!1)}var d=document.getElementById("jumpHerePage");if(d){var p,q,j=d.getBoundingClientRect().top+(document.documentElement.scrollTop||document.body.scrollTop)-150;window.scrollTo({top:j,behavior:"smooth"})}},[f]),(0,I.jsxs)("div",{className:"container mx-auto max-md:h-screen",id:"jumpHerePage",children:[(0,I.jsx)("div",{className:"hidden md:h-[900px]"}),(0,I.jsx)("div",{className:"hidden md:h-[1100px]"}),i&&(0,I.jsx)(ah.Z,{}),(0,I.jsx)("iframe",{title:"iframe",className:"w-full h-full md:h-[".concat(j,"]"),src:"".concat(h),allowFullScreen:!0})]})},eT=function(a){var b=a.info,c=a.gapTitle,d=a.finalPrice,e=a.sickTitle,f=a.sickPrice,g=a.pricelist;return(0,I.jsxs)("div",{className:"container mx-auto bg-gray-50 p-5 max-md:p-3",children:[(0,I.jsx)(bc.Z,{text:b,className:""}),g.map(function(a,b){return(0,I.jsxs)("div",{className:"flex justify-between mb-5 max-md:mb-3",children:[(0,I.jsx)("p",{className:"font-bold break-all max-md:mr-2",children:a.title}),(0,I.jsx)("p",{className:"font-bold whitespace-nowrap max-md:ml-2",children:a.price})]},b)}),(0,I.jsxs)("div",{className:"flex justify-between mb-5 max-md:mb-3 border-y-2 py-5 max-md:py-3",children:[(0,I.jsx)("p",{className:"font-bold text-brand max-md:mr-2",children:e}),(0,I.jsx)("p",{className:"font-bold text-brand whitespace-nowrap max-md:ml-2",children:f})]}),(0,I.jsxs)("div",{className:"flex justify-between mb-5 max-md:mb-3",children:[(0,I.jsx)("p",{className:"font-bold text-xl max-md:mr-2",children:c}),(0,I.jsx)("p",{className:"font-bold text-3xl max-md:text-xl whitespace-nowrap max-md:ml-2",children:d})]})]})},eU=b.Z.country,eV=function(a){var l,o,p=a.stepTitle,q=a.mainTitle,r=a.title,s=a.subtitle,d=a.sickness,e=a.hospitalstay,f=a.reintegration,g=a.nowaiting,t=a.pricediscount,u=a.completeCta,v=a.ctaLink,w=a.finalstepUrl,x=a.etitle,y=a.esubtitle,z=a.ageCta,A=a.subinfo,c=a.ageData,h=(0,J.useState)(!1),B=h[0],D=h[1],E=0===c||""===c?25:c,i=(0,J.useState)(""),j=i[0],F=i[1],k=(0,J.useState)(5),b=k[0],G=k[1],H=(l=(0,n.Z)(m().mark(function a(b){return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",new Promise(function(a){return setTimeout(a,b)}));case 1:case"end":return a.stop()}},a)})),function(a){return l.apply(this,arguments)}),C=(o=(0,n.Z)(m().mark(function a(){var c,d,e,f,g;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return D(!0),(c={}).type=9,c.age=E,c.sick=b,a.next=7,(0,aj.nj)(eU,"insurance",c);case 7:return d=a.sent,e=0,1===d.code&&(null==(f=d.result)?void 0:f.princeOne)&&(e=null==f?void 0:f.princeOne),(g=document.getElementById("jumpPriceLine"))&&g.scrollIntoView({behavior:"smooth",block:"center"}),a.next=14,H(700);case 14:F(e),D(!1);case 16:case"end":return a.stop()}},a)})),function(){return o.apply(this,arguments)});return(0,I.jsxs)("div",{className:"mt-5",children:[B&&(0,I.jsx)(ah.Z,{}),(0,I.jsx)(aG.Z,{type:"h2",text:x,className:"mb-5 text-center break-words max-md:mb-3 text-brand"}),(0,I.jsx)(aG.Z,{type:"h5",text:y,className:"mb-8 text-center break-words max-md:mb-3"}),(0,I.jsx)("div",{className:"pt-5",children:(0,I.jsxs)("div",{className:"relative w-[300px] px-[35px] mx-auto",children:[(0,I.jsx)("input",{type:"range",min:"5",max:"100",value:b,onChange:function(a){G(a.target.value)},className:"slider w-[230px] mx-auto text-center h-2 bg-gray-50 rounded-lg appearance-none cursor-pointer focus:outline-none focus:ring-2 focus:ring-brand"}),(0,I.jsxs)("div",{className:"absolute left-0 text-center w-14 top-[-35px] transform -translate-x-1/2 bg-white text-brand font-bold p-1 rounded shadow",style:{left:"calc(".concat((b<50?b-1:b-3)*2.75,"px)")},children:[b," \u20AC"]}),(0,I.jsxs)("div",{className:"flex justify-between mt-2 text-white",children:[(0,I.jsx)("span",{className:"font-bold",children:"5 \u20AC"}),(0,I.jsx)("span",{className:"font-bold",children:"100 \u20AC"})]}),(0,I.jsx)("style",{children:"\n          .slider::-webkit-slider-thumb {\n            appearance: none;\n            width: 24px;\n            height: 24px;\n            background: #76b82a;\n            border-radius: 50%;\n            cursor: pointer;\n            border: none;\n            box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.2);\n          }\n          .slider::-moz-range-thumb {\n            width: 24px;\n            height: 24px;\n            background: #76b82a;\n            border-radius: 50%;\n            cursor: pointer;\n            border: none;\n            box-shadow: 0 0 2px 0 rgba(0, 0, 0, 0.2);\n          }\n        "})]})}),(0,I.jsx)("p",{className:"my-5 text-center max-md:my-3",children:A}),(0,I.jsx)("div",{className:"flex items-center justify-center mb-8",children:(0,I.jsx)(af.z,{className:"",slim:!1,onClick:C,intent:"primary",children:z})}),(0,I.jsx)(aG.Z,{text:p,type:"h2",className:"text-center text-brand max-md:mb-3"}),(0,I.jsx)(aG.Z,{text:q,type:"h5",className:"text-center text-brand max-md:mb-3"}),(0,I.jsx)("div",{className:"items-center justify-c
1enter w-full pb-5 mt-3 md:flex md:gap-3",children:(0,I.jsxs)("div",{className:"relative w-full text-center border md:w-1/3 bg-gray-50",children:[(0,I.jsx)("div",{className:"font-semibold text-[26px] text-brand",children:r}),(0,I.jsx)("p",{className:"py-2 pb-4 mt-2 border-b border-gray-400 ",children:(0,I.jsx)("span",{className:"p-2 font-semibold text-white rounded-full bg-accent",children:s})}),d&&(0,I.jsx)(ea.Z,{text:d,className:"py-2 font-semibold border-b border-gray-400"}),e&&(0,I.jsx)(ea.Z,{text:e,className:"py-2 border-b border-gray-400"}),f&&(0,I.jsx)(ea.Z,{text:f,className:"py-2 border-b border-gray-400"}),g&&(0,I.jsx)("p",{className:"py-2 border-b border-gray-400",children:g}),j?(0,I.jsx)("div",{className:"text-2xl font-bold text-center md:mb-8 text-brand",children:(0,db.xR)(j)}):(0,I.jsx)("div",{className:"text-2xl font-bold text-center md:mb-8 text-brand",children:t}),(0,I.jsx)("div",{className:"mb-2 xl:absolute xl:-bottom-5 xl:left-24",children:(0,I.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,I.jsx)(af.z,{id:"jumpPriceLine",className:"w-full text-center xl:w-auto",slim:!0,intent:"primary",href:"".concat(w,"?step=").concat(v),children:u})})})]})})]})},eW=function(a){var M,N,O=a.title,P=a.subtitle,Q=a.grossLabel,R=a.netLabel,S=a.ctaCalculate,T=a.validationMsg,U=a.supplyTitle,V=a.currentTitle,W=a.gkvpayTitle,X=a.monthSupTitle,Y=a.reqsickTitle,Z=a.subinfo,$=a.moreDetails,_=a.lessDetails,aa=a.tMainTitle,ab=a.tSubinfo,ac=a.grossSZ,ad=a.netNZ,ae=a.limitNZ,at=a.limitNZprice,ag=a.sPaytitle,ai=a.sNwet,aj=a.ssc,ak=a.sickRece,al=a.subdata,c=a.steptwo,am=a.finalstepUrl,an=a.completeCta,g=(0,J.useState)(!1),ao=g[0],au=g[1],h=(0,J.useState)(""),i=h[0],av=h[1],j=(0,J.useState)(!1),k=j[0],aw=j[1],l=(0,J.useState)(""),ap=l[0],ax=l[1],o=(0,J.useState)(""),aq=o[0],ay=o[1],p=(0,J.useState)(!1),ar=p[0],az=p[1],q=(0,J.useState)(""),f=q[0],aA=q[1],r=(0,J.useState)(0),b=r[0],aB=r[1],s=(0,J.useState)(""),t=s[0],aC=s[1],u=(0,J.useState)(""),v=u[0],aE=u[1],w=(0,J.useState)(""),x=w[0],aF=w[1],y=(0,J.useState)(""),z=y[0],aH=y[1],A=(0,J.useState)(""),B=A[0],aI=A[1],C=(0,J.useState)(""),d=C[0],aJ=C[1],D=(0,J.useState)(""),E=D[0],aK=D[1],F=(0,J.useState)(""),G=F[0],aL=F[1],K=(0,J.useState)(!1),e=K[0],aM=K[1],L=function(){aM(!e)},aN=(M=(0,n.Z)(m().mark(function a(b){return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.abrupt("return",new Promise(function(a){return setTimeout(a,b)}));case 1:case"end":return a.stop()}},a)})),function(a){return M.apply(this,arguments)}),as=(N=(0,n.Z)(m().mark(function a(){var b,c,d,e,f,g,h,j;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(""!==i){a.next=4;break}aw(!0),a.next=38;break;case 4:if(!(i<=15||i>=67)){a.next=8;break}aw(!0),a.next=38;break;case 8:if(""!==ap){a.next=12;break}az(!0),a.next=38;break;case 12:if(""!==aq){a.next=16;break}az(!0),a.next=38;break;case 16:return au(!0),a.next=19,aN(500);case 19:aA(aq),b=70*ap/100,c=90*aq/100,d=70*Number(at)/100,aC(b),aE(c),aF(d),b<c&&b<d?(e=b,aB(70)):c<b&&c<d?(e=c,aB(90)):(e=d,aB(100)),aH(f=e),aI(g=12.275*f/100),aJ(f-g),aK(h=aq-(f-g)),aL(Math.floor(j=h/30)),au(!1);case 38:case"end":return a.stop()}},a)})),function(){return N.apply(this,arguments)});return(0,I.jsxs)("div",{className:"container mx-auto",children:[ao&&(0,I.jsx)(ah.Z,{}),(0,I.jsxs)("div",{className:"w-full mx-auto md:w-1/2",children:[(0,I.jsx)(aG.Z,{text:O,type:"h2",className:"text-center text-brand max-md:mb-3"}),(0,I.jsx)(aG.Z,{text:P,type:"h5",className:"text-center text-brand max-md:mb-3"}),(0,I.jsx)("div",{className:"my-2 border-gray-400 border-1"}),(0,I.jsxs)("div",{className:"w-9/12 mx-auto md:flex md:gap-4 md:w-11/12",children:[(0,I.jsx)("div",{className:"w-full md:w-1/3",children:(0,I.jsx)("input",{type:"text",name:"age",value:i,placeholder:null==c?void 0:c.ageLabel,onChange:function(b){var a=b.target.value;!1===isNaN(a)&& !0!==/-|\s/g.test(a)&&(av(a),aw(!1))},className:"w-full h-12 font-bold"})}),(0,I.jsx)("div",{className:"w-full md:w-1/3 max-md:mt-2",children:(0,I.jsx)("input",{type:"text",name:"gross",value:ap,placeholder:Q,onChange:function(b){var a=b.target.value;!1===isNaN(a)&& !0!==/-|\s/g.test(a)&&(ax(a),az(!1))},className:"w-full h-12 font-bold"})}),(0,I.jsx)("div",{className:"w-full md:w-1/3 max-md:mt-2",children:(0,I.jsx)("input",{type:"text",name:"net",value:aq,placeholder:R,onChange:function(b){var a=b.target.value;!1===isNaN(a)&& !0!==/-|\s/g.test(a)&&(ay(a),az(!1))},className:"w-full h-12 font-bold"})})]}),(0,I.jsx)("div",{className:"w-full mt-3",children:(0,I.jsx)("div",{className:"flex items-center justify-center",children:(0,I.jsx)(af.z,{className:"",slim:!1,onClick:as,intent:"primary",children:S})})}),ar&&(0,I.jsx)("div",{className:"text-center",children:(0,I.jsx)("span",{className:"errorMsg",children:T})}
1),k&&(0,I.jsx)("div",{className:"text-center",children:k&&(0,I.jsx)("span",{className:"errorMsg",children:null==c?void 0:c.validationMsg})}),(0,I.jsx)("div",{className:"my-2 border-gray-400 border-1"}),e&&(0,I.jsxs)("div",{className:"mb-3 bg-gray-50",children:[(0,I.jsx)("p",{className:"p-2 text-lg text-white bg-brand",children:aa}),(0,I.jsx)("p",{className:"p-2",children:ab}),(0,I.jsxs)("div",{className:"flex p-2 border-b ".concat(70===b?"bg-blue-600":""),children:[(0,I.jsx)("div",{className:"w-3/4 ".concat(70===b?"text-white":""),children:ac}),(0,I.jsx)("div",{className:"w-1/4 font-medium text-right ".concat(70===b?"text-white":""),children:""===t?"0 \u20AC":(0,db.xR)(t)})]}),(0,I.jsxs)("div",{className:"flex p-2 border-b ".concat(90===b?"bg-blue-600":""),children:[(0,I.jsx)("div",{className:"w-3/4 ".concat(90===b?"text-white":""),children:ad}),(0,I.jsx)("div",{className:"w-1/4 font-medium text-right ".concat(90===b?"text-white":""),children:""===v?"0 \u20AC":(0,db.xR)(v)})]}),(0,I.jsxs)("div",{className:"flex p-2 border-b ".concat(100===b?"bg-blue-600":""),children:[(0,I.jsx)("div",{className:"w-3/4 ".concat(100===b?"text-white":""),children:ae}),(0,I.jsx)("div",{className:"w-1/4 font-medium text-right ".concat(100===b?"text-white":""),children:""===x?"0 \u20AC":(0,db.xR)(x)})]})]}),e&&(0,I.jsxs)("div",{className:"mb-3 bg-gray-50",children:[(0,I.jsx)("p",{className:"p-2 text-lg text-white bg-brand",children:ag}),(0,I.jsxs)("div",{className:"flex p-2 border-b",children:[(0,I.jsx)("div",{className:"w-3/4",children:ai}),(0,I.jsx)("div",{className:"w-1/4 font-medium text-right",children:""===z?"0 \u20AC":(0,db.xR)(z)})]}),(0,I.jsxs)("div",{className:"flex p-2 border-b",children:[(0,I.jsx)("div",{className:"w-3/4",children:aj}),(0,I.jsx)("div",{className:"w-1/4 font-medium text-right",children:""===B?"0 \u20AC":(0,db.xR)(B)})]}),(0,I.jsxs)("div",{className:"flex p-2 border-b",children:[(0,I.jsx)("div",{className:"w-3/4",children:ak}),(0,I.jsx)("div",{className:"w-1/4 font-medium text-right",children:""===d?"0 \u20AC":(0,db.xR)(d)})]}),(0,I.jsx)("p",{className:"p-2 text-sm text-white bg-brand",children:al})]}),(0,I.jsxs)("div",{className:"bg-gray-50",children:[(0,I.jsx)("p",{className:"p-2 text-lg text-white bg-brand",children:U}),(0,I.jsxs)("div",{className:"flex p-2 border-b",children:[(0,I.jsx)("div",{className:"w-3/4",children:V}),(0,I.jsx)("div",{className:"w-1/4 font-medium text-right",children:""===f?"0 \u20AC":(0,db.xR)(f)})]}),(0,I.jsxs)("div",{className:"flex p-2 border-b",children:[(0,I.jsx)("div",{className:"w-3/4",children:W}),(0,I.jsx)("div",{className:"w-1/4 font-medium text-right",children:""===d?"0 \u20AC":(0,db.xR)(d)})]}),(0,I.jsxs)("div",{className:"flex p-2 border-b",children:[(0,I.jsx)("div",{className:"w-3/4 text-red-600",children:X}),(0,I.jsx)("div",{className:"w-1/4 font-medium text-right text-red-600",children:""===E?"0 \u20AC":(0,db.xR)(E)})]}),(0,I.jsxs)("div",{className:"flex p-2",children:[(0,I.jsx)("div",{className:"w-3/4 font-bold text-brand",children:Y}),(0,I.jsx)("div",{className:"w-1/4 font-bold text-right text-brand",children:""===G?"0 \u20AC":(0,db.xR)(G)})]}),(0,I.jsx)("p",{className:"p-2 text-sm text-white bg-brand",children:Z}),e&&(0,I.jsxs)("div",{className:"pb-2 mt-2 text-center underline cursor-pointer text-accent",onClick:L,children:[_,"Less"]}),!e&&""!==f&&(0,I.jsx)("div",{className:"pb-2 mt-2 text-center underline cursor-pointer text-accent",onClick:L,children:$})]})]}),(0,I.jsx)(eV,(0,aD.Z)((0,H.Z)({},c),{ageData:i,completeCta:an,finalstepUrl:am}))]})},eX=function(d){var a=d.block,c=d.completeCta,e=d.domainUrl,b=d.finalstepUrl;switch(a.__component){case"insurance.titleinfo":return(0,I.jsx)(d6,(0,H.Z)({},a));case"insurance.supplementbox":return(0,I.jsx)(d7,(0,H.Z)({},a));case"insurance.benefit":return(0,I.jsx)(d8,(0,H.Z)({},a));case"insurance.costbox":return(0,I.jsx)(d9,(0,H.Z)({},a));case"insurance.planone":return(0,I.jsx)(ed,(0,aD.Z)((0,H.Z)({},a),{completeCta:c,finalstepUrl:b}));case"insurance.plantwo":return(0,I.jsx)(ee,(0,aD.Z)((0,H.Z)({},a),{completeCta:c,finalstepUrl:b}));case"insurance.card-slider":return(0,I.jsx)(eg,(0,H.Z)({},a));case"repeated-design.accordion":return(0,I.jsx)(d5,(0,H.Z)({},a));case"insurance.description":return(0,I.jsx)(eh,(0,H.Z)({},a));case"insurance.documents-download":return(0,I.jsx)(eo,(0,H.Z)({},a));case"insurance.extra-benifit":return(0,I.jsx)(ep,(0,H.Z)({},a));case"insurance.rich-img-cta":return(0,I.jsx)(eq,(0,H.Z)({},a));case"insurance.tab-slider":return(0,I.jsx)(er,(0,aD.Z)((0,H.Z)({},a),{finalstepUrl:b}));case"insurance.app-download":return(0,I.jsx)(eI,(0,H.Z)({},a));case"insurance.title-and-image":return(0,I.jsx)(eJ,(0,H.Z)({},a));case"insurance.title-two-rich":return(0,I.jsx)(eK,(0,H.Z)({},a));case"insurance.costmoney":return(0,I.jsx)(eT,(0,H.Z)({},a));case"insurance.stepone":return(0,I.jsx)(eW,(0,aD.Z)((0,H.Z)({},a),{completeCta:c,finalstepUrl:b}));case"insurance.dentalextra":return(0,I.jsx)(en,(0,aD.Z)((0,H.Z)({},a),{completeCta:c,finalstepUrl:b}));case"insurance.liabilityplan":return(0,I.jsx)(et,(0,aD.Z)((0,H.Z)({},a),{completeCta:c,finalstepUrl:b}));case"insurance.planthree":return(0,I.jsx)(ew,(0,aD.Z)((0,H.Z)({},a),{completeCta:c,finalstepUrl:b}));case"insurance.planfour":return(0,I.jsx)(ez,(0,aD.Z)((0,H.Z)({},a),{completeCta:c,finalstepUrl:b}));case"insurance.planfive":return(0,I.jsx)(eB,(0,aD.Z)((0,H.Z)({},a),{completeCta:c,finalstepUrl:b}));case"insurance.plansix":return(0,I.jsx)(eE,(0,aD.Z)((0,H.Z)({},a),{completeCta:c,finalstepUrl:b}));case"insurance.planseveig":return(0,I.jsx)(eH,(0,aD.Z)((0,H.Z)({},a),{completeCta:c,finalstepUrl:b}));case"insurance.dogcatextra":return(0,I.jsx)(eL,(0,aD.Z)((0,H.Z)({},a),{completeCta:c,finalstepUrl:b}));case"insurance.explanfive":return(0,I.jsx)(eM,(0,aD.Z)((0,H.Z)({},a),{completeCta:c,finalstepUrl:b}));case"insurance.extraplan":return(0,I.jsx)(eN,(0,aD.Z)((0,H.Z)({},a),{completeCta:c,finalstepUrl:b}));case"insurance.sickinfo":return(0,I.jsx)(eO,(0,aD.Z)((0,H.Z)({},a),{completeCta:c,finalstepUrl:b}));case"insurance.travelextra":return(0,I.jsx)(eP,(0,aD.Z)((0,H.Z)({},a),{completeCta:c,finalstepUrl:b}));case"insurance.iframepage":return(0,I.jsx)(eS,{domainUrl:e});default:return null}},eY=function(a){var b=a.content,c=a.completeCta,d=a.domainUrl,e=a.finalstepUrl;return(0,I.jsx)("div",{className:"space-y-5 md:space-y-10",children:b.map(function(a,b){return(0,I.jsx)(eX,{block:a,completeCta:c,domainUrl:d,finalstepUrl:e},b)})})},eZ=function(c){var g=c.slug,h=c.preview,d=d1({slug:g,preview:h}),i=(0,M.Z)("insurancepage"),a=i.data,e=(0,an.XG)({type:R.b.insurance});if(!d.data)return null;var b=d.data.attributes,j=b.heroBanner,k=b.completeCta,l=b.insuranceinfo,f=b.seo,m=b.pageType;return(0,I.jsxs)("div",{className:"tailwind",children:[f&&(0,I.jsx)(ac.Z,{seo:f}),(0,I.jsx)(ax.Z,(0,H.Z)({},j)),(0,I.jsx)("div",{className:"container mx-auto mt-3 md:mt-5",children:"default"===m&&(0,I.jsx)(am.r,{href:e,className:"",children:(0,I.jsx)("p",{className:"mb-3 font-medium underline text-accent",children:null==a?void 0:a.backLabel})})}),(0,I.jsx)(eY,{content:l,completeCta:k,domainUrl:null==a?void 0:a.domainUrl,finalstepUrl:"".concat(e).concat(null==a?void 0:a.finalstepUrl)}),(0,I.jsx)("div",{className:"container mx-auto mt-3 md:mt-5 bg-gray-50",children:(0,I.jsx)(d3,{bottom:null==a?void 0:a.bottom})})]})},e$=function(a){return a.isList?(0,I.jsx)(d4,(0,H.Z)({},a)):(0,I.jsx)(eZ,(0,H.Z)({},a))},e_=function(c){var a;return(0,S.a)((a=c,{queryFn:function(){return U.Z.reorders.getDataBySlug(a)},queryKey:T.Z.reorders.bySlug(a),staleTime:b.Z.defaultStaleTime}))},e0=function(a){var b=a.CustomizationArea,c=a.heroBanner;return(0,I.jsxs)("div",{className:"tailwind",children:[(0,I.jsx)(ax.Z,(0,H.Z)({},c)),(0,I.jsx)(aa.Z,{blocks:b})]})},e1=function(d){var b,c,a=e_({slug:d.slug});return a.data?(0,I.jsxs)(I.Fragment,{children:[(null===(b=a.data)|| void 0===b?void 0:null===(c=b.attributes)|| void 0===c?void 0:c.seo)&&(0,I.jsx)(ac.Z,{seo:a.data.attributes.seo}),(0,I.jsx)(e0,(0,H.Z)({},a.data.attributes))]}):null},e2=function(c){var a;return(0,S.a)((a=c,{queryFn:function(){return U.Z.farmacys.getDataBySlug(a)},queryKey:T.Z.farmacys.bySlug(a),staleTime:b.Z.defaultStaleTime}))},e3=function(a){var b=a.CustomizationArea;return(0,I.jsx)("div",{className:"tailwind",children:(0,I.jsx)(aa.Z,{blocks:b})})},e4=function(d){var b,c,a=e2({slug:d.slug});return a.data?(0,I.jsxs)(W._,{value:a.data.attributes.offername,children:[(null===(b=a.data)|| void 0===b?void 0:null===(c=b.attributes)|| void 0===c?void 0:c.seo)&&(0,I.jsx)(ac.Z,{seo:a.data.attributes.seo}),(0,I.jsx)(e3,(0,H.Z)({},a.data.attributes))]}):null},e5=function(c){var a;return(0,S.a)((a=c,{queryFn:function(){return U.Z.optikers.getDataBySlug(a)},queryKey:T.Z.optikers.bySlug(a),staleTime:b.Z.defaultStaleTime}))},e6=function(a){var b=a.CustomizationArea;return(0,I.jsx)("div",{className:"tailwind",children:(0,I.jsx)(aa.Z,{blocks:b})})},e7=function(d){var b,c,a=e5({slug:d.slug});return a.data?(0,I.jsxs)(W._,{value:a.data.attributes.offername,children:[(null===(b=a.data)|| void 0===b?void 0:null===(c=b.attributes)|| void 0===c?void 0:c.seo)&&(0,I.jsx)(ac.Z,{seo:a.data.attributes.seo}),(0,I.jsx)(e6,(0,H.Z)({},a.data.attributes))]}):null},e8=function(c){var a;return(0,S.a)((a=c,{queryFn:function(){return U.Z.b2b.getDataBySlug(a)},queryKey:T.Z.b2b.bySlug(a),staleTime:b.Z.defaultStaleTime}))},e9=function(a){var b=a.header,c=a.smallHeader,d=a.image,e=a.description;return(0,I.jsxs)(bE.Z,{background:"brand",children:[(0,I.jsx)(ad.Z,{size:"lg",color:"white",component:"h2",children:c}),(0,I.jsxs)("div",{className:"flex flex-wrap my-4 text-white text-reset",children:[(0,I.jsx)("div",{className:"md:flex-1",children:(0,I.jsx)(ae.ZP,{image:d,layout:"intrinsic"})}),(0,I.jsxs)("div",{className:"mt-8 md:flex-1 md:ml-4 md:mt-0",children:[(0,I.jsxs)("div",{className:"flex mb-6",children:[(0,I.jsx)("span",{style:{fontSize:200,lineHeight:"60px",color:"white"},className:"pr-3",children:"\u201D"}),(0,I.jsx)(ad.Z,{size:"xl",color:"white",component:"h3",children:b})]}),(0,I.jsx)(ar.Z,{text:e})]})]})]})},fa=function(a){var b=a.smallHeader,c=a.header,d=a.description;return(0,I.jsx)(bE.Z,{children:(0,I.jsxs)("section",{className:"px-6 py-3",children:[(0,I.jsx)("span",{className:"text-gray-600",children:b}),(0,I.jsxs)("div",{className:"flex flex-col flex-wrap gap-12 lg:flex-row",children:[(0,I.jsx)(ad.Z,{className:"flex-1 mb-2 text-gray-700",size:"2xl",component:"h2",bold:!0,children:c}),(0,I.jsx)("p",{className:"flex-1",children:d})]})]})})},fb=function(a){var b=a.smallHeader,c=a.header,d=a.leftDescription,e=a.rightDescription;return(0,I.jsx)("div",{className:"bg-gray-100",children:(0,I.jsx)(bE.Z,{children:(0,I.jsxs)("section",{className:"px-6 py-3",children:[(0,I.jsx)("span",{className:"text-gray-600",children:b}),(0,I.jsx)(ad.Z,{className:"mb-2 text-gray-700",size:"2xl",component:"h3",bold:!0,children:c}),(0,I.jsxs)("div",{className:"flex flex-col flex-wrap gap-2 lg:flex-row",children:[(0,I.jsx)("p",{className:"flex-1",children:d}),(0,I.jsx)("p",{className:"flex-1",children:e})]})]})})})},fc=function(a){var c=a.header,d=a.subheader,b=a.image,e=a.description,f=a.imageSecond;return(0,I.jsxs)(bE.Z,{background:"brand",children:[(0,I.jsx)(ad.Z,{size:"3xl",color:"white",component:"h2",children:c}),(0,I.jsx)(ar.Z,{text:d,className:"mt-4"}),(0,I.jsxs)("div",{className:"flex flex-wrap items-center mb-4 text-white text-reset",children:[!!b&&(0,b8.Z)(b)&&(0,I.jsx)("div",{className:"pr-4 md:w-1/3",children:(0,I.jsx)(ae.ZP,{image:b,layout:"intrinsic"})}),(0,I.jsx)(ar.Z,{text:e,className:"text-white md:w-2/3 text-reset"})]}),(0,I.jsx)("div",{className:"py-4 text-center md:px-8",children:(0,I.jsx)(ae.ZP,{image:f,layout:"intrinsic"})})]})},fd=function(a){var b=a.smallHeader,c=a.header,d=a.description,e=a.items;return(0,I.jsxs)(bE.Z,{children:[(0,I.jsx)("p",{children:b}),(0,I.jsx)(ad.Z,{bold:!0,className:"my-3 text-gray-700",component:"h2",children:c}),(0,I.jsx)("p",{children:d}),(0,I.jsx)("div",{className:"flex flex-wrap gap-6 mt-6",children:e.map(function(a){return(0,I.jsxs)("div",{className:"flex-1",children:[(0,I.jsx)(ae.ZP,{image:a.image}),(0,I.jsx)(ad.Z,{size:"lg",bold:!0,className:"my-3",component:"h3",children:a.header}),(0,I.jsx)("p",{children:a.description})]})})})]})},fe=function(a){var b=a.smallHeader,c=a.header,d=a.accentHeader,e=a.name,f=a.position,g=a.image,h=a.descriptionLeft,i=a.descriptionRight;return(0,I.jsxs)(bE.Z,{children:[(0,I.jsx)("p",{children:b}),(0,I.jsx)(ad.Z,{bold:!0,className:"text-gray-300 my-3",children:c}),(0,I.jsxs)("div",{className:"flex gap-6 flex-wrap",children:[(0,I.jsxs)("div",{className:"md:flex-1",children:[(0,I.jsx)(ad.Z,{size:"2xl",className:"mb-5",children:d}),(0,I.jsx)("p",{children:e}),(0,I.jsx)("p",{children:f})]}),(0,I.jsx)("div",{className:"md:flex-1",children:(0,I.jsx)(ae.ZP,{image:g,layout:"intrinsic"})})]}),(0,I.jsxs)("div",{className:"flex flex-wrap gap-6 mt-6",children:[(0,I.jsx)("p",{className:"md:flex-1",children:(0,I.jsx)(ar.Z,{text:h})}),(0,I.jsx)("p",{className:"md:flex-1",children:(0,I.jsx)(ar.Z,{text:i})})]})]})},ff=function(a){var b=a.items,c=a.header,d=a.needtohide;return d?(0,I.jsx)("div",{}):(0,I.jsxs)(bE.Z,{children:[(0,I.jsx)(ad.Z,{bold:!0,size:"lg",component:"h2",className:"py-3 border-b-2 border-brand",children:c}),(0,I.jsx)("div",{className:"flex flex-wrap",children:b.map(function(a,b){return(0,I.jsxs)("div",{className:"flex flex-col items-start px-3 py-6 md:w-1/3",children:[(0,I.jsx)(ae.ZP,{layout:"intrinsic",image:a.image}),(0,I.jsx)(ad.Z,{bold:!0,className:"mt-3",component:"h3",children:a.header}),(0,I.jsx)("p",{className:"mt-3 text-base text-brand",children:a.description})]},b)})})]})},fg=a(86145),fh=function(a){var b=a.wrapper,c=(0,ay.Z)(a,["wrapper"]);return(0,I.jsx)(bE.Z,(0,aD.Z)((0,H.Z)({},b),{children:(0,I.jsx)(fg.Z,(0,H.Z)({},c))}
1))},fi=(0,d.j)("col-span-1 flex justify-center",{variants:{imagePosition:{left:"",right:"order-last"}}}),fj=function(a){var e=a.wrapper,f=a.image,g=a.imagePosition,b=a.header,c=a.description,d=a.smallHeader;return(0,I.jsx)(bE.Z,(0,aD.Z)((0,H.Z)({},e),{children:(0,I.jsxs)("div",{className:"grid grid-cols-1 gap-4 my-4 md:grid-cols-3",children:[(0,I.jsx)("div",{className:fi({imagePosition:g}),children:(0,I.jsx)(ae.ZP,{layout:"intrinsic",image:f})}),(0,I.jsxs)("div",{className:"flex flex-col justify-center flex-1 col-span-1 gap-3 text-gray-700 md:col-span-2 text-reset",children:[d&&(0,I.jsx)("span",{className:"text-base",children:d}),b&&(0,I.jsx)(ad.Z,{bold:!0,color:"gray-700",component:"h2",children:b}),c&&(0,I.jsx)(ar.Z,{text:c})]})]})}))},fk=function(a){var c=a.children,b=a.autoplaySeconds;return(0,I.jsx)(cb.tq,{modules:[ca.tl,ca.pt],autoplay:!!b&&{delay:1e3*b,pauseOnMouseEnter:!0,disableOnInteraction:!0},pagination:{clickable:!0,clickableClass:"swiper-pagination-clickable static mt-2",bulletClass:"swiper-pagination-bullet bg-gray-500 hover:bg-gray-800",bulletActiveClass:"swiper-pagination-bullet-active bg-gray-700"},spaceBetween:0,slidesPerView:1,className:"hide-mobile-nav",loop:!0,style:{"--swiper-pagination-bullet-size":"12px"},centeredSlides:!0,children:c})},fl=function(a){var b=a.header,e=a.autoplaySeconds,c=a.description,d=a.items,f=a.wrapper;return(0,I.jsx)(bE.Z,(0,aD.Z)((0,H.Z)({},f),{children:(0,I.jsxs)("div",{className:"grid grid-cols-1 gap-4 md:grid-cols-2",children:[(0,I.jsxs)("div",{className:"flex flex-col col-span-1 gap-4 text-gray-700",children:[b&&(0,I.jsx)(ad.Z,{color:"gray-700",component:"h2",children:b}),c&&(0,I.jsx)(ar.Z,{text:c})]}),(0,I.jsx)("div",{className:"col-span-1",children:(0,I.jsx)(fk,{autoplaySeconds:e,children:null==d?void 0:d.map(function(a,b){return(0,I.jsx)(cb.o5,{children:(0,I.jsx)(ae.ZP,{image:a.image})},b)})})})]})}))},fm=function(c){var a=c.item,b=(0,I.jsx)(fg.Z,(0,H.Z)({priority:!0},a));return a.link?(0,I.jsx)(am.r,{href:a.link,children:b}):b},fn=function(a){var b=a.items,c=a.autoplaySeconds;return(0,I.jsx)(fk,{autoplaySeconds:c,children:b.map(function(a,b){return(0,I.jsx)(cb.o5,{children:(0,I.jsx)(fm,{item:a})},b)})})},fo=function(a){var b=a.header,c=a.items;return(0,I.jsxs)("div",{className:"flex-1",children:[b&&(0,I.jsx)(ad.Z,{bold:!0,size:"xl",component:"h3",color:"gray-500",className:"mb-4",children:b}),(0,I.jsx)(ba.Z,{element:c})]})},fp=function(a){var b=a.columns;return(0,I.jsx)(bE.Z,{children:(0,I.jsx)("div",{className:"flex flex-col lg:flex-row flex-wrap gap-4 mb-4",children:b.map(function(a,b){return(0,J.createElement)(fo,(0,aD.Z)((0,H.Z)({},a),{key:b}))})})})},fq=function(a){var b=a.Information;return(0,I.jsx)(bE.Z,{children:(0,I.jsx)(ar.Z,{className:"text-base",text:b})})},fr=function(a){var c=a.leftImage,b=a.rightImage;return(0,I.jsx)(bE.Z,{children:(0,I.jsxs)("div",{className:"flex flex-col gap-1 md:flex-row md:gap-8",children:[(0,I.jsx)("div",{className:"flex flex-1 ",children:(0,I.jsx)(ae.ZP,{image:c,layout:"intrinsic"})}),(0,I.jsx)("div",{className:"flex flex-1 ",children:b&&(0,I.jsx)(ae.ZP,{image:b,layout:"intrinsic"})})]})})},fs=a(48976),ft=function(a){var b=a.text,d=a.url,e=a.eventname,c=a.variant;return(0,I.jsx)("div",{className:"container pr-3 mx-auto mt-3 mb-3",children:(0,I.jsx)("div",{className:"flex items-center justify-center",children:(0,I.jsx)(af.z,{slim:!1,className:"",fullWidth:!1,onClick:function(){if(e){var a={event:e};window.dataLayer.push(a)}K().push(d)},intent:c,children:b})})})},fu=a(63775),fv=a(30023),fw=a(71678),fx=a(12091),fy=function(b){var a=b.block;switch(a.__component){case"b2b.hero-baner":return(0,I.jsx)(ax.Z,(0,H.Z)({},a));case"b2b.hero-slider":return(0,I.jsx)(fn,(0,H.Z)({},a));case"b2b.icons-list":return(0,I.jsx)(ff,(0,H.Z)({},a));case"b2b.image-full-width":return(0,I.jsx)(fh,(0,H.Z)({},a));case"b2b.image-with-content":return(0,I.jsx)(fj,(0,H.Z)({},a));case"b2b.text-and-slider":return(0,I.jsx)(fl,(0,H.Z)({},a));case"b2b.bullet-list":return(0,I.jsx)(fp,(0,H.Z)({},a));case"b2b.accent-image-and-text":return(0,I.jsx)(e9,(0,H.Z)({},a));case"b2b.header-and-text":return(0,I.jsx)(fa,(0,H.Z)({},a));case"b2b.header-and-two-column-text":return(0,I.jsx)(fb,(0,H.Z)({},a));case"b2b.information-accent-background":return(0,I.jsx)(fc,(0,H.Z)({},a));case"b2b.steps":return(0,I.jsx)(fd,(0,H.Z)({},a));case"b2b.position":return(0,I.jsx)(fe,(0,H.Z)({},a));case"b2b.description":return(0,I.jsx)(fq,(0,H.Z)({},a));case"b2b.two-image-oneline":return(0,I.jsx)(fr,(0,H.Z)({},a));case"basic.iframecall":return(0,I.jsx)(a9.Z,(0,H.Z)({},a));case"basic.single-image-link":return(0,I.jsx)(fv.Z,(0,H.Z)({},a));case"repeated-design.accordion":return(0,I.jsx)(x.Z,(0,H.Z)({},a));case"basic.two-column-text-image":return(0,I.jsx)(fs.Z,(0,H.Z)({},a));case"basic.cta-button":return(0,I.jsx)(a4.Z,(0,H.Z)({},a));case"basic.ctaevent":return(0,I.jsx)(ft,(0,H.Z)({},a));case"leadform.mopartner":return(0,I.jsx)(fw.Z,(0,H.Z)({},a));case"basic.add-space":return(0,I.jsx)(fx.Z,(0,H.Z)({},a));case"repeated-design.social-media-share":return(0,I.jsx)(fu.Z,(0,H.Z)({},a));default:return null}},fz=function(a){var b=a.content;return(0,I.jsx)("div",{className:"space-y-10",children:b.map(function(a,b){return(0,I.jsx)(fy,{block:a},b)})})},fA=a(91632),fB=a(67895),fC=function(a){var c=a.type,d=a.labels,b=a.form_config,e=(0,ay.Z)(a,["type","labels","form_config"]);return(0,I.jsx)("div",{className:"mt-8",children:(0,I.jsx)(fA.Z,(0,aD.Z)((0,H.Z)({wrapper:{background:"gray"},id:"footer-form"},e),{children:(0,I.jsx)(fB.Z,{type:c,labels:d,config:null==b?void 0:b.data})}))})},fD=function(a){var d=a.components,b=a.seo,c=a.form;return(0,I.jsxs)("div",{className:"tailwind",children:[b&&(0,I.jsx)(ac.Z,{seo:b}),(0,I.jsx)(fz,{content:d}),c&&(0,I.jsx)(fC,(0,H.Z)({},c))]})},fE=function(){var a=(0,M.Z)("b2b-overview");return a.data?(0,I.jsx)(fD,(0,H.Z)({},a.data)):null},fF=function(a){var c=a.slug,d=a.preview,b=e8({slug:c,preview:d});return b.data?(0,I.jsx)(fD,(0,H.Z)({},b.data.attributes)):null},fG=function(a){return a.isList?(0,I.jsx)(fE,{}):(0,I.jsx)(fF,(0,H.Z)({},a))},fH=a(18022),fI=a(14924),fJ=a(50222),c=a(70271),fK=e.Z.getRule(),y=b.Z.country,fL=y,fM="block px-2.5 pb-2 pt-2 w-full text-md text-gray-900 font-medium bg-transparent roun
1ded-lg border-1 border-gray-300 appearance-none bg-white focus:outline-none focus:ring-0 focus:border-brand peer shadow",fN="absolute text-md text-gray-500 duration-300 transform -translate-y-4 scale-75 top-2 z-10 origin-[0] bg-white px-2 peer-focus:px-2 peer-focus:text-accent peer-placeholder-shown:scale-100 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:top-1/2 peer-focus:top-2 peer-focus:scale-75 peer-focus:-translate-y-4 left-1",fO="absolute text-md text-gray-500 duration-300 transform -translate-y-4 scale-75 top-2 z-10 origin-[0] bg-gray-100 px-2 peer-focus:px-2 peer-focus:text-accent peer-placeholder-shown:scale-100 peer-placeholder-shown:-translate-y-1/2 peer-placeholder-shown:top-1/2 peer-focus:top-2 peer-focus:scale-75 peer-focus:-translate-y-4 left-1",fP=(0,c.Q)(function(_){var j=(0,aw.Z)({},_),aa=j.textLocale,ab=j.imageLocale,a=e.Z.getTranslaionArray(aa,ab),l=j.brillenPath.filter(function(a){return"login"===a.type}),o=(0,J.useState)(!1),ac=o[0],aI=o[1],p=(0,J.useState)(!1),k=p[0],aJ=p[1],q=(0,J.useState)(!1),ad=q[0],aK=q[1],s=(0,J.useState)(!1),ae=s[0],aL=s[1],t=(0,J.useState)(!1),ak=t[0],aM=t[1],u=(0,J.useState)(!1),al=u[0],aN=u[1],v=(0,J.useState)(!1),an=v[0],aO=v[1],w=(0,J.useState)(""),ao=w[0],aP=w[1],x=(0,J.useState)(""),c=x[0],aQ=x[1],z=(0,J.useState)(""),A=z[0],aR=z[1],B=(0,J.useState)(""),C=B[0],aS=B[1],D=(0,J.useState)(""),E=D[0],aT=D[1],F=(0,J.useState)(""),ap=F[0],aU=F[1],G=(0,J.useState)(!1),aq=G[0],aV=G[1],K=(0,J.useState)([]),h=K[0],aW=K[1],L=(0,J.useState)(null==a?void 0:a.prefix_phone),ar=L[0],aX=L[1],M=(0,J.useState)({firstname:"",lastname:"",email:"",country:""}),f=M[0],aY=M[1],N=(0,J.useState)({firstname:!1,lastname:!1,email:!1,birthdate:!1,street:!1,houseNo:!1,zipcode:!1,location:!1,country:!1,phone:!1}),b=N[0],aZ=N[1],O=(0,J.useState)(""),a$=O[0],a_=O[1],P=(0,J.useState)(0),as=P[0],a0=P[1],Q=(0,J.useState)(!1),at=Q[0],a1=Q[1],R=(0,J.useState)(""),a2=R[0],a3=R[1],S=(0,J.useState)(""),au=S[0],a4=S[1],T=(0,J.useState)(""),av=T[0],a5=T[1],U=(0,J.useState)(!1),V=U[0],a6=U[1],W=(0,J.useState)(!1),X=W[0],a7=W[1],Y=(0,J.useState)(300),Z=Y[0],a8=Y[1];(0,J.useEffect)(function(){var a;return 0===as&&("de"===y&&(aX("+49"),cF.Z.set("myCountry","de",{expires:1,path:"/"}),fL="de"),""!==e.Z.getUrlParam("email")&&aY({email:e.Z.getUrlParam("email")}),a0(1)),X&&Z>0?a=setInterval(function(){a8(function(a){return a-1})},1e3):0===Z&&a7(!1),function(){clearInterval(a)}},[X,as,Z]);var ax,ay,az,aA,aB,aC,i=function(g){var d=g.target,e=d.name,c=d.value;if(aY((0,aD.Z)((0,H.Z)({},f),(0,fI.Z)({},e,c))),aZ({firstname:!1,lastname:!1,email:!1,street:!1,houseNo:!1,zipcode:!1,location:!1,country:!1,birthdate:!1}),aO(!1),aK(!1),aL(!1),aM(!1),"country"===e&&("de"===y||"de-BE"===y)){var b=c.toLowerCase(),h="prefix_".concat(b);""!==b?aX(null==a?void 0:a[h]):aX("+49"),"AT"===c?(cF.Z.set("myCountry",b,{expires:1,path:"/"}),fL=b):(cF.Z.set("myCountry","de",{expires:1,path:"/"}),fL="de")}},a9=(ax=(0,n.Z)(m().mark(function a(b){var c,d;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return aI(!0),c="ja"===y?1:"",a.next=4,(0,ai.re)(y,b,c,"");case 4:(d=a.sent)?(aI(!1),aW(d)):(aI(!1),aW([]));case 6:case"end":return a.stop()}},a)})),function(a){return ax.apply(this,arguments)}),aE=(ay=(0,n.Z)(m().mark(function a(){return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:aW([]);case 1:case"end":return a.stop()}},a)})),function(){return ay.apply(this,arguments)}),d=function(d){var c=d.target,b=c.name,a=c.value;(aK(!1),aL(!1),aO(!1),aM(!1),"street"===b)?"ja"!==y?(aQ(a),aR(""),aS(""),aT(""),a9(a)):aQ(a):"zipcode"===b?1===fK.isNumeric?aR(a.replace(/[^0-9]/g,"")):aR(a):"location"===b?aS(a):"houseNo"===b?aT(a):"phone"===b&&aU(a),aZ({firstname:!1,lastname:!1,email:!1,street:!1,houseNo:!1,zipcode:!1,location:!1,country:!1,birthdate:!1})},ba=(az=(0,n.Z)(m().mark(function a(b){var c,d,e,f,g,h,i,j,k;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return c="ja"===y?1:"",a.next=3,(0,ai.W0)(y,b,c);case 3:(d=a.sent)&&(e=d.result.address_components).length>0&&(f="en"===y?"postal_codes":"postal_code",g="ja"===y?"postal_town":"locality",h=e.filter(function(a){return a.types[0]===g}),h.length>0&&aS(h[0].long_name),i=e.filter(function(a){return"route"===a.types[0]}),i.length>0&&aQ(i[0].long_name),j=e.filter(function(a){return a.types[0]===f}),j.length>0&&aR(j[0].long_name),k=e.filter(function(a){return"street_number"===a.types[0]}),k.length>0&&aT(k[0].long_name),aW([]));case 5:case"end":return a.stop()}},a)})),function(a){return az.apply(this,arguments)}),$=function(a){aV(!1),aL(!1),aZ({birthdate:!1}),"ja"!==y?8===a.keyCode&&("/"===ao.charAt(2)||"/"===ao.charAt(5))&&aP(ao.slice(0,-1)):8===a.keyCode&&("/"===ao.charAt(5)||"/"===ao.charAt(7))&&aP(ao.slice(0,-1))},bb=function(){window.scrollTo({top:0,behavior:"smooth"})},aF=(aA=(0,n.Z)(m().mark(function a(){var b,c,d;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(aL(!1),!(""!==(b=f.email))){a.next=12;break}return aI(!0),(c={}).type=3,c.email=b,c.iscontract="de-BE"===y?1:0,a.next=10,(0,aj.nj)(fL,"apimessagebird",c);case 10:(null==(d=a.sent)?void 0:d.code)===1?(a8(300),a7(!0),aI(!1),a3(d.myid),a6(!0)):(aI(!1),aM(!0));case 12:case"end":return a.stop()}},a)})),function(){return aA.apply(this,arguments)}),aG=(aB=(0,n.Z)(m().mark(function a(){var b,d,e,h,i,j,k,l,n,o;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(""!==au){a.next=4;break}a5(!0),a.next=53;break;case 4:return aI(!0),(b={}).type=5,b.code=au,b.myid=a2,a.next=11,(0,aj.nj)(fL,"apimessagebird",b);case 11:if((null==(d=a.sent)?void 0:d.code)!==1){a.next=52;break}return aI(!0),e="",e="ja"!==y?r()(ao,"DD/MM/YYYY").format("YYYY-MM-DD"):r()(ao,"YYYY/MM/DD").format("YYYY-MM-DD"),h=f.firstname.normalize("NFKC"),i=f.lastname.normalize("NFKC"),j={},j.customer_id=a$,j.email=f.email.toLowerCase(),j.first_name=h,j.last_name=i,j.zip=A,j.city=C,j.street=c,j.street2=E,j.birthday=e,j.email_verified=!0,j.country=fL.toUpperCase(),k=fL,""!==ap&&(j.phone=ap),("de"===y||"de-BE"===y)&&(k=(null==f?void 0:f.country)?f.country.toLowerCase():y,j.country=f.country?f.country.toUpperCase():fL.toUpperCase()),a.next=35,(0,g._f)(fL,k,j);case 35:if(!(l=a.sent).success){a.next=49;break}return aI(!1),a6(!1),aJ(!0),""===a$&&(o=null==l?void 0:null===(n=l.data)|| void 0===n?void 0:n.customer_id,j.customer_id=o,a_(o)),j.needmail=1,j.slug=window.location.toString(),j.source="Register_Succeed",j.callcountry=y,a.next=47,(0,g.uf)(fL,j);case 47:a.next=50;break;case 49:aM(!0),aI(!1);case 50:a.next=53;break;case 52:a1(!0),aI(!1);case 53:case"end":return a.stop()}},a)})),function(){return aB.apply(this,arguments)}),aH=(aC=(0,n.Z)(m().mark(function a(){var b,d,e,h,i,j,k,l,n,o,p,q,s,t,u,v,w,x,z,B,D,F,G,H,I;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(aZ({email:!1}
1),aJ(!1),aV(!1),b=0,d=21,""!==ao&&(e="",b=(h=(e="ja"!==y?r()(ao,"DD/MM/YYYY",!0):r()(ao,"YYYY/MM/DD",!0)).isValid())?1:0,("de"===y||"ast"===y)&&(d=r()().diff(r()(e,"YYYY-MM-DD"),"years"))),i=function(a){return RegExp("[\\p{Emoji_Presentation}\\p{Extended_Pictographic}]","gu").test(a)},j=/^(([^<>()\\[\]\\.,;:\s@"]+(\.[^<>()\\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,k=f.firstname.normalize("NFKC"),l=f.lastname.normalize("NFKC"),""!==k){a.next=14;break}aZ({firstname:!0}),a.next=124;break;case 14:if(!i(k)){a.next=18;break}aZ({firstname:!0}),a.next=124;break;case 18:if(""!==l){a.next=22;break}aZ({lastname:!0}),a.next=124;break;case 22:if(!i(l)){a.next=26;break}aZ({lastname:!0}),a.next=124;break;case 26:if(j.test(String(f.email).toLowerCase())){a.next=30;break}aZ({email:!0}),a.next=124;break;case 30:if(!(""===ao||0===b)){a.next=34;break}aZ({birthdate:!0}),a.next=124;break;case 34:if(!(d<18)){a.next=38;break}aV(!0),a.next=124;break;case 38:if(""!==c){a.next=42;break}aZ({street:!0}),a.next=124;break;case 42:if(""!==E){a.next=46;break}aZ({houseNo:!0}),a.next=124;break;case 46:if(""!==A){a.next=50;break}aZ({zipcode:!0}),a.next=124;break;case 50:if(""!==C){a.next=54;break}aZ({location:!0}),a.next=124;break;case 54:if(!(""!==ap&&(ap.length<6||ap.length>16))){a.next=58;break}aZ({phone:!0}),a.next=124;break;case 58:if(!1!==al){a.next=62;break}aO(!0),a.next=124;break;case 62:return aI(!0),a.next=65,(0,ai.iR)(fL,f.email.toLowerCase());case 65:if(1!==(n=a.sent)){a.next=123;break}return a.next=69,(0,g.bJ)(fL,{type:2,userName:f.email.toLowerCase()});case 69:if(!(o=a.sent).success){a.next=74;break}aI(!1),aK(!0),bb(),a.next=121;break;case 74:if(p=0,q=0,s=0,t="",u=fL,("de"===y||"de-BE"===y)&&(u=(null==f?void 0:f.country)?f.country.toLowerCase():y),!(""!==ap)){a.next=89;break}return(v={}).userName=ap,v.type=3,v.bordercountry=u,a.next=87,(0,g.Lx)(fL,v);case 87:(t=a.sent).success&&t.data.length>0&&(q=t.data.length,1===t.data.length&&(s=t.data[0].customer_id));case 89:return(w={}).userName=f.email.toLowerCase(),w.type=2,a.next=94,(0,g.Lx)(fL,w);case 94:if(x=a.sent,z=0,B="",D="",D="ja"!==y?r()(ao,"DD/MM/YYYY").format("YYYY-MM-DD"):r()(ao,"YYYY/MM/DD").format("YYYY-MM-DD"),!(x.success&&1===x.data.length)){a.next=118;break}if(p=1,!0!==(F=x.data[0]).registration_status){a.next=115;break}return aK(!0),z=0,aI(!1),bb(),(G={}).email=f.email.toLowerCase(),G.customer_id=F.customer_id,G.needmail=0,a.next=113,(0,g.uf)(fL,G);case 113:a.next=116;break;case 115:F.first_name.toLowerCase().normalize("NFKC")===k.toLowerCase()&&F.last_name.toLowerCase().normalize("NFKC")===l.toLowerCase()&&F.email.toLowerCase()===f.email.toLowerCase()?""===F.birthday?(B=F.customer_id,z=1):F.birthday===D?(B=F.customer_id,z=1):(aI(!1),aL(!0)):(aI(!1),aL(!0));case 116:a.next=119;break;case 118:x.success&&x.data.length>=2?(p=x.data.length,aL(!0),aI(!1)):0===x.data.length&&(z=1);case 119:aI(!1),1===z&&(H=1,0===p&&0===q?H=1:0===p&&1===q?(I=t.data[0]).first_name.toLowerCase().normalize("NFKC")===k.toLowerCase()&&I.last_name.toLowerCase().normalize("NFKC")===l.toLowerCase()&&I.email.toLowerCase()===f.email.toLowerCase()&&(""===I.birthday?(B=I.customer_id,H=1):I.birthday===D?(B=I.customer_id,H=1):(H=0,aL(!0))):0===p&&q>=2?(H=0,aL(!0)):1===p&&0===q?H=1:1===p&&1===q?B===s?H=1:(H=0,aL(!0)):1===p&&q>=2&&(H=0,aL(!0)),1===H&&(a_(B),aF()));case 121:a.next=124;break;case 123:aI(!1),bb(),aZ({email:!0});case 124:case"end":return a.stop()}},a)})),function(){return aC.apply(this,arguments)});return(0,I.jsxs)("div",{className:"tailwind",onClick:aE,children:[ac&&(0,I.jsx)(ah.Z,{}),(0,I.jsx)("div",{children:(0,I.jsxs)("div",{className:"container py-5 mx-auto",children:[(0,I.jsx)("p",{className:"mb-5 font-medium text-center",children:a.register_heading}),(0,I.jsx)("p",{className:"mb-5 font-medium text-center uppercase text-h2",children:a.register_title}),(0,I.jsxs)("div",{className:"w-full mx-auto md:w-2/5",children:[(0,I.jsxs)("div",{className:"grid grid-cols-2 gap-4",children:[(0,I.jsxs)("div",{children:[(0,I.jsxs)("div",{className:"relative bg-white",children:[(0,I.jsx)("input",{type:"text",name:"firstname",id:"firstname",value:f.firstname,placeholder:" ",className:" ".concat(fM),onChange:i}),(0,I.jsx)("label",{htmlFor:"firstname",className:fN,children:a.firstname})]}),b.firstname&&(0,I.jsx)("p",{className:"mb-3 leading-4 errorMsg",children:ag.Z.getValidation("enter_fname")})]}),(0,I.jsxs)("div",{children:[(0,I.jsxs)("div",{className:"relative bg-white",children:[(0,I.jsx)("input",{type:"text",name:"lastname",id:"lastname",value:f.lastname,placeholder:" ",className:"mb-3 ".concat(fM),onChange:i}),(0,I.jsx)("label",{htmlFor:"lastname",className:fN,children:a.lastname})]}),b.lastname&&(0,I.jsx)("p",{className:"mb-3 leading-4 errorMsg",children:ag.Z.getValidation("enter_lname")}
1)]})]}),(0,I.jsxs)("div",{className:"mb-3",children:[(0,I.jsxs)("div",{className:"relative bg-white",children:[(0,I.jsx)("input",{type:"email",name:"email",id:"email",value:f.email,placeholder:" ",className:"".concat(fM),onChange:i}),(0,I.jsx)("label",{htmlFor:"email",className:fN,children:a.email})]}),b.email&&(0,I.jsx)("p",{className:"leading-4 errorMsg",children:ag.Z.getValidation("email_valid")}),ad&&(0,I.jsxs)("p",{className:"my-2 text-lg font-bold leading-5 text-left text-brand",children:[a.already_1," ",(0,I.jsx)(am.r,{href:"/".concat(l[0].slug,"?email=").concat(f.email),className:"text-lg font-bold leading-5 text-brand",children:(0,I.jsx)("u",{children:a.already_2})})," ",a.already_3]})]}),(0,I.jsxs)("div",{className:"mb-3",children:[(0,I.jsxs)("div",{className:"relative bg-white",children:[(0,I.jsx)("input",{type:"text",name:"birthdate",id:"birthdate",value:ao,placeholder:" ",className:"".concat(fM),onChange:function(b){aL(!1),aV(!1),aZ({birthdate:!1});var a=b.target.value.replace(/\D/g,"");"ja"!==y?(a.length>2&&(a="".concat(a.slice(0,2),"/").concat(a.slice(2))),a.length>5&&(a="".concat(a.slice(0,5),"/").concat(a.slice(5)))):(a.length>4&&(a="".concat(a.slice(0,4),"/").concat(a.slice(4))),a.length>7&&(a="".concat(a.slice(0,7),"/").concat(a.slice(7)))),aP(a)},onKeyDown:$,onTouchStart:$}),(0,I.jsx)("label",{htmlFor:"birthdate",className:fN,children:a.birthdate})]}),b.birthdate&&(0,I.jsx)("p",{className:"mb-3 leading-4 errorMsg",children:a.valid_birthdate}),aq&&(0,I.jsx)("p",{className:"mb-3 leading-4 errorMsg",children:a.child_not_allow})]}),"ja"!==y?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("div",{className:"grid grid-cols-12 gap-4",children:[(0,I.jsxs)("div",{className:"col-span-8 mb-3",children:[(0,I.jsxs)("div",{className:"relative bg-white",children:[(0,I.jsx)("input",{type:"text",name:"street",id:"street",value:c,placeholder:" ",className:"".concat(fM),onChange:d}),(0,I.jsx)("label",{htmlFor:"street",className:fN,children:a.street})]}),b.street&&(0,I.jsx)("p",{className:"leading-4 errorMsg",children:a.valid_street}),h.length>0&&(0,I.jsx)("div",{className:"absolute z-[99] bg-white p-4 w-[250px] max-h-[250px] overflow-y-auto shadow",children:h.map(function(b,a){return(0,I.jsx)("div",{className:"cursor-pointer py-2 text-[16px]".concat(a!==h.length-1?" border-b":""),onClick:function(){return ba(b.public_id)},children:b.description},a)})})]}),(0,I.jsxs)("div",{className:"col-span-4 mb-3",children:[(0,I.jsxs)("div",{className:"relative ".concat(c?"bg-white":"bg-gray-100"),children:[(0,I.jsx)("input",{type:"text",name:"houseNo",id:"houseNo",value:E,placeholder:" ",className:"".concat(fM),onChange:d,disabled:!c}),(0,I.jsx)("label",{htmlFor:"houseNo",className:c?fN:fO,children:a.house_no})]}),b.houseNo&&(0,I.jsx)("p",{className:"leading-4 errorMsg",children:a.valid_houseno})]})]}),(0,I.jsxs)("div",{className:"grid grid-cols-12 gap-4",children:[(0,I.jsxs)("div",{className:"col-span-5 mb-3",children:[(0,I.jsxs)("div",{className:"relative ".concat(c?"bg-white":"bg-gray-100"),children:[(0,I.jsx)("input",{type:"text",name:"zipcode",id:"zipcode",value:A,maxLength:fK.zipMax,placeholder:" ",className:"".concat(fM),onChange:d,disabled:!c}),(0,I.jsx)("label",{htmlFor:"zipcode",className:c?fN:fO,children:a.zipcode})]}),b.zipcode&&(0,I.jsx)("p",{className:"leading-4 errorMsg",children:ag.Z.getValidation("valid_zip")})]}),(0,I.jsxs)("div",{className:"col-span-7 mb-3",children:[(0,I.jsxs)("div",{className:"relative ".concat(c?"bg-white":"bg-gray-100"),children:[(0,I.jsx)("input",{type:"text",name:"location",id:"location",value:C,placeholder:" ",className:"".concat(fM),onChange:d,disabled:!c}),(0,I.jsx)("label",{htmlFor:"location",className:c?fN:fO,children:a.location})]}),b.location&&(0,I.jsx)("p",{className:"leading-4 errorMsg",children:a.valid_city})]})]})]}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("div",{className:"grid grid-cols-12 gap-4",children:[(0,I.jsxs)("div",{className:"col-span-5 mb-3",children:[(0,I.jsxs)("div",{className:"relative bg-white",children:[(0,I.jsx)("input",{type:"text",name:"zipcode",id:"zipcode",value:A,maxLength:fK.zipMax,placeholder:" ",className:"".concat(fM),onChange:d}),(0,I.jsx)("label",{htmlFor:"zipcode",className:fN,children:a.zipcode})]}),b.zipcode&&(0,I.jsx)("p",{className:"leading-4 errorMsg",children:ag.Z.getValidation("valid_zip")}),h.length>0&&(0,I.jsx)("div",{className:"absolute z-[99] bg-white p-4 w-[250px] max-h-[250px] overflow-y-auto shadow",children:h.map(function(b,a){return(0,I.jsx)("div",{className:"cursor-pointer py-2 text-[16px]".concat(a!==h.length-1?" border-b":""),onClick:function(){return ba(b.public_id)},children:b.description},a)})})]}),(0,I.jsxs)("div",{className:"col-span-7 mb-3",children:[(0,I.jsxs)("div",{className:"relative bg-white",children:[(0,I.jsx)("input",{type:"text",name:"location",id:"location",value:C,placeholder:" ",className:"".concat(fM),onChange:d}),(0,I.jsx)("label",{htmlFor:"location",className:fN,children:a.location})]}),b.location&&(0,I.jsx)("p",{className:"leading-4 errorMsg",children:a.valid_city})]})]}),(0,I.jsxs)("div",{className:"grid grid-cols-12 gap-4",children:[(0,I.jsxs)("div",{className:"col-span-8 mb-3",children:[(0,I.jsxs)("div",{className:"relative bg-white",children:[(0,I.jsx)("input",{type:"text",name:"street",id:"street",value:c,placeholder:" ",className:"".concat(fM),onChange:d}),(0,I.jsx)("label",{htmlFor:"street",className:fN,children:a.street})]}),b.street&&(0,I.jsx)("p",{className:"leading-4 errorMsg",children:a.valid_street})]}),(0,I.jsxs)("div",{className:"col-span-4 mb-3",children:[(0,I.jsxs)("div",{className:"relative bg-white",children:[(0,I.jsx)("input",{type:"text",name:"houseNo",
1id:"houseNo",value:E,placeholder:" ",className:"".concat(fM),onChange:d}),(0,I.jsx)("label",{htmlFor:"houseNo",className:fN,children:a.house_no})]}),b.houseNo&&(0,I.jsx)("p",{className:"leading-4 errorMsg",children:a.valid_houseno})]})]})]}),"de"===y||"de-BE"===y?(0,I.jsxs)("div",{className:"relative bg-white",children:[(0,I.jsxs)("select",{name:"country",id:"country",value:f.country,onChange:i,className:"mb-3 ".concat(fM),children:[(0,I.jsx)("option",{value:"DE",children:a.country_de}),(0,I.jsx)("option",{value:"AT",children:a.country_at}),(0,I.jsx)("option",{value:"BE",children:a.country_be}),(0,I.jsx)("option",{value:"CZ",children:a.country_cz}),(0,I.jsx)("option",{value:"DK",children:a.country_dk}),(0,I.jsx)("option",{value:"FR",children:a.country_fr}),(0,I.jsx)("option",{value:"LI",children:a.country_li}),(0,I.jsx)("option",{value:"LU",children:a.country_lu}),(0,I.jsx)("option",{value:"NL",children:a.country_nl}),(0,I.jsx)("option",{value:"CH",children:a.country_ch}),(0,I.jsx)("option",{value:"PL",children:a.country_pl})]}),(0,I.jsx)("label",{htmlFor:"country",className:fN,children:a.country})]}):(0,I.jsx)("input",{type:"hidden",name:"country",id:"country",value:f.country}),(0,I.jsxs)("div",{className:"mb-3",children:[(0,I.jsxs)("div",{className:"relative bg-white",children:[(0,I.jsx)("p",{className:"absolute flex items-center mt-2.5 ml-3 text-md",children:ar}),(0,I.jsx)("input",{type:"text",name:"phone",id:"phone",value:ap,placeholder:" ",className:"".concat(fM," pr-20 pl-[46px] h-11 "),onChange:d}),(0,I.jsx)("label",{htmlFor:"phone",className:"".concat(fN," ml-10 pl-0"),children:a.phone})]}),b.phone&&(0,I.jsx)("p",{className:"leading-4 errorMsg",children:ag.Z.getValidation("enter_validphone")})]}),!k&&(0,I.jsx)("div",{className:"mt-3 font-normal",children:a.register_info}),ae&&(0,I.jsx)("p",{className:"mt-1 leading-4 text-left errorMsg",children:a.multiple_account}),ak&&(0,I.jsx)("p",{className:"mt-1 leading-4 text-left errorMsg",children:ag.Z.getValidation("try_after_sometime")}),(0,I.jsxs)("div",{className:"text-left",children:[(0,I.jsx)(fJ.Z,{country:y,terms:al,termCheckbox:function(a){aN(a.target.checked),aO(!1)}}),an&&(0,I.jsx)("p",{className:"leading-4 errorMsg",children:ag.Z.getValidation("agree_terms")})]}),V&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{className:"mt-3",children:(0,I.jsxs)("div",{className:"relative bg-white",children:[(0,I.jsx)("input",{type:"code",name:"code",id:"code",value:au,placeholder:" ",className:"".concat(fM),onChange:function(a){var b=a.target.value;a1(!1),a5(!1),a4(b),aM(!1)}}),(0,I.jsx)("label",{htmlFor:"code",className:fN,children:a.add_code}),X?(0,I.jsxs)("div",{className:"absolute h-6 font-bold w-[150px] right-1 top-0 text-h2 text-right mr-4 text-accent",children:[Z,(0,I.jsxs)("span",{className:"text-sm font-medium text-accent",children:["(",a.resend,")"]})]}):(0,I.jsx)("div",{onClick:aF,className:"absolute h-6 font-bold cursor-pointer w-[150px] right-1 top-2 text-accent",children:a.send_code})]})}),(0,I.jsx)("p",{className:"w-full font-medium leading-4 text-center text-md text-brand",children:a.code_send}),av&&(0,I.jsx)("p",{className:"leading-4 text-center errorMsg",children:a.valid_code}),at&&(0,I.jsx)("p",{className:"leading-4 text-center errorMsg",children:a.code_expire}),(0,I.jsx)("div",{className:"flex items-center justify-center mt-3",children:(0,I.jsx)(af.z,{slim:"false",intent:"primary",onClick:aG,className:"w-full my-4 md:w-auto",children:a.register_cta})})]}),!V&&!k&&(0,I.jsx)("div",{className:"flex items-center justify-center",children:(0,I.jsx)(af.z,{slim:"false",intent:"primary",onClick:aH,className:"w-full my-4 md:w-auto",children:a.register_cta})}),k&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("p",{className:"mt-3 text-lg font-bold leading-5 text-left text-brand",children:a.register_done}),(0,I.jsx)("div",{className:"flex items-center justify-center",children:(0,I.jsx)(af.z,{slim:"false",intent:"outline",className:"my-4",children:a.register_done_cta})})]}),(0,I.jsx)("hr",{className:"my-3"}),(0,I.jsx)("p",{className:"my-2 font-medium text-center",children:a.login_title}),(0,I.jsx)("div",{className:"flex items-center justify-center mb-5",children:(0,I.jsx)(af.z,{slim:"false",intent:"outline",href:"/".concat(l[0].slug,"/"),className:"w-full my-2 md:w-auto",children:a.login_cta})})]})]})})]})}),fQ=a(13530),fR=function(i){var a=(0,aw.Z)({},i),j=a.whichcase,d=a.slug,b=a.type,c=a.title,e=a.hoveredIndex,f=a.index,g=a.countryWiseClass,h=a.handleMouseLeave,k=a.handleMouseEnter;return 1===j?(0,I.jsx)("div",{className:"border-2 border-accent rounded-xl hover:bg-accent",children:(0,I.jsx)(am.r,{href:d,children:(0,I.jsx)("div",{className:"relative cursor-pointer group",children:(0,I.jsxs)("p",{className:"w-[125px] h-auto text-center text-accent hover:text-white group",onMouseEnter:function(){return k(f)},onMouseLeave:h,children:[(0,I.jsx)(bK(),{loader:bL.vg,src:e===f?"sidebar/".concat(b,"_hover.png"):"sidebar/".concat(b,".png"),alt:c,width:80,height:80}),(0,I.jsx)("span",{className:"block mt-[-20px] mb-2 text-center group-hover:text-white",children:(0,I.jsx)("span",{className:"inline-block font-semibold leading-6 text-accent group-hover:text-white ".concat(g),children:c})})]})})})}):(0,I.jsx)("div",{className:"border-2 mb-2 border-accent rounded-xl hover:bg-accent",children:(0,I.jsx)(am.r,{href:d,children:(0,I.jsx)("div",{className:"cursor-pointer group",children:(0,I.jsxs)("div",{className:"text-accent hover:text-white group flex",onMouseEnter:function(){return k(f)},onMouseLeave:h,children:[(0,I.jsx)("div",{children:(0,I.jsx)(bK(),{loader:bL.vg,src:e===f?"sidebar/".concat(b,"_hover.png"):"sidebar/".concat(b,".png"),alt:c,width:55,height:55})}),(0,I.jsx)("div",{className:"text-lg flex justify-center items-center font-semibold leading-6 text-accent group-hover:text-white ".concat(g),children:c})]})})})})},fS=a(21818),fT=b.Z.country,fU=function(j){var p,q=j.classsneed,r=j.product,d=j.imgOne,f=j.imgTwo,c=cF.Z.get("customerid"),k=(0,J.useState)(0),g=k[0],s=k[1],l=(0,J.useState)(""),h=l[0],t=l[1],o=(0,J.useState)([]),a=o[0],u=o[1],b=!1;(0,b8.Z)(d)&&(0,b8.Z)(f)&&(b=!0),(0,J.useEffect)(function(){var a;(a=(0,n.Z)(m().mark(function a(){var b,d,f,g,h,i,j,k;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return b="preview",a.prev=1,a.next=5,U.Z.fetch("/loginsystems",{populate:{textLocale:"*"},filters:{pageType:"sharecontent"},locale:fT,publicationState:b});case 5:(null===(d=null==(f=a.sent)?void 0:f.data[0])|| void 0===d?void 0:d.attributes)&&(h="https://www.brillen.de",i=null===(g=null==f?void 0:f.data[0])|| void 0===g?void 0:g.attributes.textLocale,u(j=e.Z.getTranslaionArray(i,[])),k=e.Z.getProperUrl(null==j?void 0:j.which_url_share),t("".concat(h,"/").concat(k,"?referralcode=").concat(c))),a.next=11;break;case 9:a.prev=9,a.t0=a.catch(1);case 11:case"end":return a.stop()}},a,null,[[1,9]])})),function(){return a.apply(this,arguments)})()},[c]);var v=(p=(0,n.Z)(m().mark(function a(b){var c;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:(c={}).type=b,c.customerId=void 0!==cF.Z.get("customerid")?cF.Z.get("customerid"):"",c.source=r,c.slug=window.location.toString(),(0,aj.nj)(fT,"eventtrack",c);case 6:case"end":return a.stop()}},a)})),function(a){return p.apply(this,arguments)}),w=function(a){s(a)},i=function(){s(0)};return(0,I.jsxs)("div",{className:"bg-[#F8F8F8] ".concat(q),children:[(0,I.jsx)(aG.Z,{text:a.share_text,className:"p-3 text-center text-brand",type:"h4"}),(0,I.jsxs)("div",{className:"relative",children:[(0,I.jsxs)("div",{className:"flex justify-center mt-4 md:hidden",children:[(0,I.jsx)("div",{className:"w-[80px]",children:d&&(0,I.jsx)(ae.ZP,{image:d})}),(0,I.jsx)("div",{className:"w-[80px]",children:f&&(0,I.jsx)(ae.ZP,{image:f})})]}),(0,I.jsx)("div",{className:"px-4 py-4",children:(0,I.jsxs)("div",{className:"flex-wrap justify-center md:flex",children:[(0,I.jsx)("div",{className:"flex md:pb-4 max-md:justify-center ".concat(b?"md:w-1/3 justify-around md:justify-end":"md:w-1/2 justify-end md:pr-5"),children:(0,I.jsx)(fS.Dk,{onClick:function(){return v("FB_login_click")},url:a.extra_link_fb?"".concat(a.extra_link_fb,"&referralcode=").concat(c):h,blankTarget:!0,children:(0,I.jsx)("div",{className:"w-auto",children:(0,I.jsx)(bK(),{loader:bL.vg,src:1===g?"socialmedia/CTA_fb_hover.png":"socialmedia/CTA_fb_default.png",alt:"Facebook",title:"Facebook",width:169,he
1ight:51,onMouseEnter:function(){return w(1)},onMouseLeave:i})})})}),(0,I.jsx)("div",{className:"flex md:pb-4 max-md:justify-center ".concat(b?"md:w-1/3 justify-around":"md:w-1/2 justify-start md:pl-5"),children:(0,I.jsx)(fS.N0,{onClick:function(){return v("WA_login_click")},url:a.extra_link_wp?"".concat(a.extra_link_wp,"&referralcode=").concat(c):h,title:null==a?void 0:a.wp_title,blankTarget:!0,children:(0,I.jsx)("div",{className:"w-auto",children:(0,I.jsx)(bK(),{loader:bL.vg,src:2===g?"socialmedia/CTA_wApp_hover.png":"socialmedia/CTA_wApp_default.png",alt:"whatsApp",title:"WhatsApp",width:169,height:51,onMouseEnter:function(){return w(2)},onMouseLeave:i})})})}),(0,I.jsx)("div",{className:"flex md:w-1/3 md:pb-4 ".concat(b?"justify-around md:justify-start":"justify-around md:justify-end"),children:(0,I.jsx)(fS.cG,{url:a.extra_link_em?"".concat(a.extra_link_em,"&referralcode=").concat(c):h,subject:null==a?void 0:a.email_subject,body:null==a?void 0:a.email_content,blankTarget:!0,children:(0,I.jsx)("div",{className:"w-auto",onClick:function(){return v("email_login_click")},children:(0,I.jsx)(bK(),{loader:bL.vg,src:3===g?"socialmedia/CTA_email_hover.png":"socialmedia/CTA_email_default.png",alt:"Email",title:"Email",width:169,height:51,onMouseEnter:function(){return w(3)},onMouseLeave:i})})})}),(0,I.jsx)("div",{className:"flex md:w-1/3 md:pb-4 ".concat(b?"justify-around md:justify-end":"justify-around md:justify-around"),children:(0,I.jsx)(fS.tq,{onClick:function(){return v("telegram_login_click")},url:a.extra_link_tel?"".concat(a.extra_link_tel,"&referralcode=").concat(c):h,title:null==a?void 0:a.email_subject,blankTarget:!0,children:(0,I.jsx)("div",{className:"w-auto",children:(0,I.jsx)(bK(),{loader:bL.vg,src:4===g?"socialmedia/CTA_tele_hover.png":"socialmedia/CTA_tele_default.png",alt:"Telegram",title:"Telegram",width:169,height:51,onMouseEnter:function(){return w(4)},onMouseLeave:i})})})}),(0,I.jsx)("div",{className:"flex md:w-1/3 md:pb-4 ".concat(b?"justify-around md:justify-center":"justify-around md:justify-start"),children:(0,I.jsx)(fS.MC,{onClick:function(){return v("pinterest_login_click")},url:a.extra_link_pin?"".concat(a.extra_link_pin,"&referralcode=").concat(c):h,media:"",blankTarget:!0,children:(0,I.jsx)("div",{className:"w-auto",children:(0,I.jsx)(bK(),{loader:bL.vg,src:5===g?"socialmedia/CTA_pin_hover.png":"socialmedia/CTA_pin_default.png",alt:"Pinterest",title:"Pinterest",width:169,height:51,onMouseEnter:function(){return w(5)},onMouseLeave:i})})})}),(0,b8.Z)(d)&&(0,b8.Z)(f)&&(0,I.jsx)("div",{className:"flex md:w-1/3 md:pb-4 max-md:hidden ".concat(b?"md:justify-start":"md:justify-around"),children:(0,I.jsxs)("div",{className:"flex",children:[(0,I.jsx)("div",{className:"w-[80px]",children:(0,I.jsx)(ae.ZP,{image:d})}),(0,I.jsx)("div",{className:"w-[80px]",children:(0,I.jsx)(ae.ZP,{image:f})})]})})]})})]})]})},z=b.Z.country,fV="de"===z?"px-4":"",fW=(0,c.Q)(function(ao){var o,p,q,s,t,u,v,w,x,y,A,B,C,D,E,F,G,H,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,$,_,aa,ab=(0,aw.Z)({},ao),ap=ab.textLocale,aq=ab.imageLocale,l=ab.brillenPath,b=l.filter(function(a){return"appointment"===a.type}),c=l.filter(function(a){return"order"===a.type}),d=l.filter(function(a){return"vision"===a.type}),f=l.filter(function(a){return"profile"===a.type}),h=l.filter(function(a){return"friend"===a.type});l.filter(function(a){return"family"===a.type});var i=l.filter(function(a){return"credits"===a.type}),a=e.Z.getTranslaionArray(ap,aq),ac=(0,J.useState)(""),ar=ac[0],at=ac[1],ad=(0,J.useState)(0),j=ad[0],au=ad[1],af=(0,J.useState)(0),ag=af[0],av=af[1],ai=(0,J.useState)(""),ax=ai[0],ay=ai[1],ak=(0,J.useState)(!1),as=ak[0],az=ak[1],al=(0,g.Ii)(z),aA=window.location.toString();(0,J.useEffect)(function(){void 0!==cF.Z.get("login_fname")&&at(cF.Z.get("login_fname")),void 0!==cF.Z.get("login_zip")&&ay(cF.Z.get("login_zip")),(b=(0,n.Z)(m().mark(function a(){var b,c,d,e,f,h;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return az(!0),a.next=3,(0,g.Hc)(z,cF.Z.get("customerid"));case 3:if((b=a.sent).success&&(null==b?void 0:b.data.length)>0){for(e=0,d=0;e<(null==b?void 0:null===(c=b.data)|| void 0===c?void 0:c.length);e+=1)f=b.data[e],(h=r()(f.expiration_datetime).diff(r()(new Date),"days"))>=0&&f.status&&(d+=f.available_points);av(d),az(!1)}else az(!1);case 5:case"end":return a.stop()}},a)})),function(){return b.apply(this,arguments)})();var b,a={};a.type="pageview_dashboard",a.customerId=void 0!==cF.Z.get("customerid")?cF.Z.get("customerid"):"",a.source="",a.slug=aA,(0,aj.nj)(z,"eventtrack",a)},[]);var aB=function(a){au(a)},k=function(){au(0)},an=function(){var c=null==a?void 0:a.pnameforbook,d="";"de"===z&&4===ax.length&&(d="&at=1");var b={};b.type="appt_booking_click",b.customerId=void 0!==cF.Z.get("customerid")?cF.Z.get("customerid"):"",b.customerEmail="",b.source="Userdashboard",b.slug=aA,(0,aj.nj)(z,"eventtrack",b);var e="?utm_source=mybrillen&utm_medium=direct&utm_campaign=terminbuchung-mybr
1illen&product=".concat(c,"&pname=").concat(c,"&zip=").concat(ax,"&isDirectLead=1").concat(d);K().push("thank-you-zip-new"+e)};return(0,I.jsxs)(I.Fragment,{children:[as&&(0,I.jsx)(ah.Z,{}),(0,I.jsxs)("div",{className:"relative max-md:hidden",children:[(null==a?void 0:a.new_dashboard_desk)&&(0,I.jsx)(fQ.Z,{image:null==a?void 0:a.new_dashboard_desk,layout:"responsive"}),(0,I.jsxs)("p",{className:"absolute text-2xl font-bold text-white top-6 left-20 xl:left-28 3xl:left-56",children:[a.name_prefix," ",ar]}),(0,I.jsx)("p",{className:"absolute text-2xl font-bold text-white w-[40%] leading-[35px] top-[70px] left-20 xl:left-28 3xl:left-56",children:a.new_dashboard_title}),(0,I.jsx)("div",{className:"absolute top-14 right-14",children:(0,I.jsxs)("div",{className:"bg-fixed bg-repeat bg-glasses-pattern p-6 rounded-xl text-center max-w-[300px]",children:[(0,I.jsx)("p",{className:"pb-0 text-xl font-bold text-black",children:null==a?void 0:a.your_balance}),(0,I.jsxs)("p",{className:"text-brand text-[52px] font-bold pb-2",children:[ag," ",al]}),(0,I.jsx)("p",{className:"pb-2 font-semibold text-black",children:null==a?void 0:a.redeem_voucher}),(0,I.jsx)(am.r,{onClick:an,className:"w-full",children:(0,I.jsx)("p",{className:"py-2 text-white border rounded-full cursor-pointer bg-accent text-md border-accent hover:text-accent hover:bg-white",children:null==a?void 0:a.book_appointment_cta})})]})})]}),(0,I.jsx)("div",{className:"relative hidden max-md:block",children:(0,I.jsx)("div",{className:"flex justify-center w-full bottom-4",children:(0,I.jsxs)("div",{className:"bg-fixed bg-repeat bg-glasses-pattern p-1 text-center mt-2 border-2 rounded-xl w-[90%]",children:[(0,I.jsxs)("p",{className:"pb-3 text-black",children:[(0,I.jsx)("span",{className:"font-bold align-super",children:null==a?void 0:a.your_balance_mobile}),(0,I.jsxs)("span",{className:"text-brand text-[30px] sm:text-[52px] font-bold ml-1",children:[ag," ",al]})]}),(0,I.jsx)(am.r,{onClick:an,className:"w-full",children:(0,I.jsx)("p",{className:"font-semibold text-center cursor-pointer text-accent",children:null==a?void 0:a.book_appointment_cta_mobile})})]})})}),(0,I.jsx)("div",{className:"container block mx-auto md:hidden",children:(0,I.jsxs)("div",{className:"px-1 mt-3",children:[(0,I.jsx)(fR,{whichcase:2,index:5,slug:"/".concat(null==i?void 0:null===(o=i[0])|| void 0===o?void 0:o.slug),type:"".concat(null==i?void 0:null===(p=i[0])|| void 0===p?void 0:p.type),hoveredIndex:j,title:null==i?void 0:null===(q=i[0])|| void 0===q?void 0:q.title,countryWiseClass:fV,handleMouseLeave:k,handleMouseEnter:function(a){return aB(a)}}),(0,I.jsx)(fR,{whichcase:2,index:3,slug:"/".concat(null==b?void 0:null===(s=b[0])|| void 0===s?void 0:s.slug),type:"".concat(null==b?void 0:null===(t=b[0])|| void 0===t?void 0:t.type),hoveredIndex:j,title:null==b?void 0:null===(u=b[0])|| void 0===u?void 0:u.title,countryWiseClass:fV,handleMouseLeave:k,handleMouseEnter:function(a){return aB(a)}}),(0,I.jsx)(fR,{whichcase:2,index:4,slug:"/".concat(null==c?void 0:null===(v=c[0])|| void 0===v?void 0:v.slug),type:"".concat(null==c?void 0:null===(w=c[0])|| void 0===w?void 0:w.type),hoveredIndex:j,title:null==c?void 0:null===(x=c[0])|| void 0===x?void 0:x.title,countryWiseClass:fV,handleMouseLeave:k,handleMouseEnter:function(a){return aB(a)}}),(0,I.jsx)(fR,{whichcase:2,index:6,slug:"/".concat(null==d?void 0:null===(y=d[0])|| void 0===y?void 0:y.slug),type:"".concat(null==d?void 0:null===(A=d[0])|| void 0===A?void 0:A.type),hoveredIndex:j,title:null==d?void 0:null===(B=d[0])|| void 0===B?void 0:B.title,countryWiseClass:fV,handleMouseLeave:k,handleMouseEnter:function(a){return aB(a)}}),(0,I.jsx)(fR,{whichcase:2,index:7,slug:"/".concat(null==f?void 0:null===(C=f[0])|| void 0===C?void 0:C.slug),type:"".concat(null==f?void 0:null===(D=f[0])|| void 0===D?void 0:D.type),hoveredIndex:j,title:null==f?void 0:null===(E=f[0])|| void 0===E?void 0:E.title,countryWiseClass:fV,handleMouseLeave:k,handleMouseEnter:function(a){return aB(a)}}),(0,I.jsx)(fR,{whichcase:2,index:8,slug:"/".concat(null==h?void 0:null===(F=h[0])|| void 0===F?void 0:F.slug),type:"".concat(null==h?void 0:null===(G=h[0])|| void 0===G?void 0:G.type),hoveredIndex:j,title:null==h?void 0:null===(H=h[0])|| void 0===H?void 0:H.title,countryWiseClass:fV,handleMouseLeave:k,handleMouseEnter:function(a){return aB(a)}})]})}),(0,I.jsx)("div",{className:"container hidden mx-auto max-lg:max-w-full md:block",children:(0,I.jsx)("div",{className:"p-3 mt-6 border-2 rounded-xl",children:(0,I.jsxs)("div",{className:"flex flex-wrap justify-evenly",children:[(0,I.jsx)(fR,{whichcase:1,index:5,slug:"/".concat(null==i?void 0:null===(L=i[0])|| void 0===L?void 0:L.slug),type:"".concat(null==i?void 0:null===(M=i[0])|| void 0===M?void 0:M.type),hoveredIndex:j,title:null==i?void 0:null===(N=i[0])|| void 0===N?void 0:N.title,countryWiseClass:fV,handleMouseLeave:k,handleMouseEnter:function(a){return aB(a)}}),(0,I.jsx)(fR,{whichcase:1,index:3,slug:"/".concat(null==b?void 0:null===(O=b[0])|| void 0===O?void 0:O.slug),type:"".concat(null==b?void 0:null===(P=b[0])|| void 0===P?void 0:P.type),hoveredIndex:j,title:null==b?void 0:null===(Q=b[0])|| void 0===Q?void 0:Q.title,countryWiseClass:fV,handleMouseLeave:k,handleMouseEnter:function(a){return aB(a)}}),(0,I.jsx)(fR,{whichcase:1,index:4,slug:"/".concat(null==c?void 0:null===(R=c[0])|| void 0===R?void 0:R.slug),type:"".concat(null==c?void 0:null===(S=c[0])|| void 0===S?void 0:S.type),hoveredIndex:j,title:null==c?void 0:null===(T=c[0])|| void 0===T?void 0:T.title,countryWiseClass:fV,handleMouseLeave:k,handleMouseEnter:function(a){return aB(a)}}),(0,I.jsx)(fR,{whichcase:1,index:6,slug:"/".concat(null==d?void 0:null===(U=d[0])|| void 0===U?void 0:U.slug),type:"".concat(null==d?void 0:null===(V=d[0])|| void 0===V?void 0:V.type),hoveredIndex:j,title:null==d?void 0:null===(W=d[0])|| void 0===W?void 0:W.title,countryWiseClass:fV,handleMouseLeave:k,handleMouseEnter:function(a){return aB(a)}}),(0,I.jsx)(fR,{whichcase:1,index:7,slug:"/".concat(null==f?void 0:null===(X=f[0])|| void 0===X?void 0:X.slug),type:"".concat(null==f?void 0:null===(Y=f[0])|| void 0===Y?void 0:Y.type),hoveredIndex:j,title:null==f?void 0:null===(Z=f[0])|| void 0===Z?void 0:Z.title,countryWiseClass:fV,handleMouseLeave:k,handleMouseEnter:function(a){return aB(a)}}),(0,I.jsx)(fR,{whichcase:1,index:8,slug:"/".concat(null==h?void 0:null===($=h[0])|| void 0===$?void 0:$.slug),type:"".concat(null==h?void 0:null===(_=h[0])|| void 0===_?void 0:_.type),hoveredIndex:j,title:null==h?void 0:null===(aa=h[0])|| void 0===aa?void 0:aa.title,countryWiseClass:fV,handleMouseLeave:k,handleMouseEnter:function(a){return aB(a)}})]})})}),(0,I.jsx)("div",{className:"container mx-auto mt-4 mb-6",children:(0,I.jsxs)("p",{className:"",children:[(0,I.jsx)("span",{className:"font-bold max-md:text-md text-brand",children:null==a?void 0:a.dashboard_info1})," ",(0,I.jsx)("span",{className:"font-normal max-md:text-md",children:null==a?void 0:a.dashboard_info2})," ",(0,I.jsx)("br",{}),(0,I.jsx)("span",{className:"font-normal max-md:text-md",children:null==a?void 0:a.dashboard_info3})," ",(0,I.jsx)("span",{className:"font-normal max-md:text-mdtext-brand",children:null==a?void 0:a.dashboard_info4})," ",(0,I.jsx)("span",{className:"font-normal max-md:text-md",children:null==a?void 0:a.dashboard_info5})]})}),(0,I.jsxs)("div",{className:"container mx-auto mb-8",children:[(0,I.jsxs)("div",{className:"flex pl-5 bg-gray-50 max-md:block max-md:pl-0",children:[(0,I.jsxs)("div",{className:"w-[50%] mr-6 py-5 max-md:py-3 max-md:w-full max-md:mr-0 max-md:px-5",children:[(0,I.jsx)(aG.Z,{text:null==a?void 0:a.friend_happy,className:"mb-3 md:mb-5 text-brand",type:"h4"}),(0,I.jsx)(aG.Z,{text:null==a?void 0:a.and_you_too,className:"mb-3 md:mb-5",type:"h4"}),(0,I.jsx)(aG.Z,{text:null==a?void 0:a.refere_our_glasses,className:"mb-3 !font-semibold md:mb-5 text-brand",type:"p"}),(0,I.jsxs)("ul",{className:"pl-8 mb-3 md:mb-5 list-image-check",children:[(0,I.jsx)("li",{className:"font-normal max-md:text-md",children:null==a?void 0:a.refere_point_one}),(0,I.jsx)("li",{className:"font-normal max-md:text-md",children:null==a?void 0:a.refere_point_two})]})]}),(0,I.jsx)("div",{className:"w-[50%] ml-6 max-md:w-full max-md:ml-0",children:(null==a?void 0:a.share_glasses)&&
1(0,I.jsx)(ae.ZP,{image:null==a?void 0:a.share_glasses})})]}),(0,I.jsx)(fU,{classsneed:"mt-3 md:mt-5",product:"Userdashboard",imgOne:[],imgTwo:[]})]})]})}),fX=a(70079),fY=[{email:"[email protected]",orderID:"AT-TSO2601465",invoiceID:"AT-TRE26001016"},{email:"[email protected]",orderID:"AT-TSO2601464",invoiceID:"AT-TRE26001017"},{email:"[email protected]",orderID:"AT-TSO2601463",invoiceID:"AT-TRE26001018"},{email:"[email protected]",orderID:"AT-TSO2601462",invoiceID:"AT-TRE26001019"},{email:"[email protected]",orderID:"AT-TSO2601343",invoiceID:"AT-TRE26001020"},{email:"[email protected]",orderID:"AT-TSO2601342",invoiceID:"AT-TRE26001021"},{email:"[email protected]",orderID:"AT-TSO2601341",invoiceID:"AT-TRE26001022"},{email:"[email protected]",orderID:"AT-TSO2601340",invoiceID:"AT-TRE26001023"},{email:"[email protected]",orderID:"AT-TSO2602085",invoiceID:"AT-TSO2602085"},{email:"[email protected]",orderID:"AT-TSO2601298",invoiceID:"AT-TRE26001023"},{email:"[email protected]",orderID:"AT-TSO2601299",invoiceID:"AT-TRE26001024"},{email:"[email protected]",orderID:"AT-TSO2601288",invoiceID:"AT-TRE26001025"},],fZ=function(){var a=(0,J.useState)(!1),d=a[0],h=a[1],b=(0,J.useState)(""),f=b[0],i=b[1],c=(0,J.useState)(""),g=c[0],j=c[1];return((0,J.useEffect)(function(){if("1"===e.Z.getUrlParam("mp")){j(e.Z.getUrlParam("email").replace(/ /g,"+"));var a=("de"===cF.Z.get("login_country").toLowerCase()?fX.Z:fY).filter(function(a){return a.email.toLowerCase()===g.toLowerCase()});a.length>0&&(i(a.map(function(a){return a.orderID}).join(",")),h(!0))}},[g]),d)?(0,I.jsx)("div",{className:"fixed inset-0 z-50 flex items-center justify-center p-4 bg-black/30",children:(0,I.jsxs)("div",{className:"relative w-full max-w-[555px] bg-white px-7 pb-8 pt-7 shadow-xl",children:[(0,I.jsx)("button",{type:"button",onClick:function(){h(!1)},className:"absolute text-gray-500 transition right-5 top-5 hover:text-gray-800","aria-label":"Close",children:(0,I.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"25",height:"25",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,I.jsx)("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),(0,I.jsx)("line",{x1:"6",y1:"6",x2:"18",y2:"18"})]})}),(0,I.jsx)("h2",{className:"pr-10 text-[25px] font-bold leading-[1.25] text-[#333333]",children:"Ratenzahlung f\xfcr Ihre Bestellung"}),(0,I.jsxs)("p",{className:"mt-4 text-[18px] leading-[1.6] text-[#777777]",children:["Checken Sie Ihre Bestellung:"," ",(0,I.jsx)("span",{className:"font-semibold text-[#333333]",children:f})," im Kundenbereich und best\xe4tigen die monatliche Zahlung mit unserem Anbieter oder w\xe4hlen Sie eine neue Zahlungsart."]}),(0,I.jsx)(af.z,{slim:!1,intent:"primary",onClick:function(){K().push("/mppayment/?email=".concat(g,"&orderId=").concat(f))},className:"w-full !rounded-none mt-3 !bg-brand",children:"Weiter"})]})}):null},A=b.Z.country,f$="de"===A?"px-4":"",f_=(0,c.Q)(function(aF){var q,s,t,u,v,w,x,y,z,B,C,D,E,F,G,H,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,$,_,aa,ab,ac,ad,ag,ai,ak,al,an,ao,ap,aq,ar,as,at=(0,aw.Z)({},aF),aG=at.textLocale,aH=at.imageLocale,o=at.brillenPath,f=o.filter(function(a){return"appointment"===a.type}),h=o.filter(function(a){return"order"===a.type}),i=o.filter(function(a){return"vision"===a.type}),j=o.filter(function(a){return"profile"===a.type}),k=o.filter(function(a){return"friend"===a.type}),b=o.filter(function(a){return"family"===a.type}),l=o.filter(function(a){return"credits"===a.type}),a=e.Z.getTranslaionArray(aG,aH),au=(0,J.useState)(0),c=au[0],aJ=au[1],av=(0,J.useState)(""),ax=av[0],aK=av[1],ay=(0,J.useState)(0),az=ay[0],aL=ay[1],aA=(0,J.useState)(0),aB=aA[0],aM=aA[1],aC=(0,J.useState)(""),aN=aC[0],aO=aC[1],aD=(0,J.useState)(!1),aI=aD[0],aP=aD[1],p="Euro",aQ=window.location.toString();(0,J.useEffect)(function(){void 0!==cF.Z.get("login_zip")&&aO(cF.Z.get("login_zip")),void 0!==cF.Z.get("login_fname")&&aK("".concat(cF.Z.get("login_fname")," ").concat(cF.Z.get("login_lname"))),(b=(0,n.Z)(m().mark(function a(){var b,c,d,e,f,h,i,j,k,l,n;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return aP(!0),a.next=3,(0,g.Hc)(A,cF.Z.get("customerid"));case 3:if((b=a.sent).success&&(null==b?void 0:b.data.length)>0){for(e=0,d=0;e<(null==b?void 0:null===(c=b.data)|| void 0===c?void 0:c.length);e+=1)f=b.data[e],(h=r()(f.expiration_datetime).diff(r()(new Date),"days"))>=0&&f.status&&(d+=f.available_points);aL(d),aP(!1)}else aP(!1);return aP(!0),(i={}).groupcode="",a.next=10,(0,g.Bj)(A,i);case 10:(j=a.sent).success&&j.data&&(l=null===(k=null==j?void 0:j.data[0])|| void 0===k?void 0:k.member)&&aM(n=l.reduce(function(a,b){return a+b.customer_points},0)),aP(!1);case 12:case"end":return a.stop()}},a)})),function(){return b.apply(this,arguments)})();var b,a={};a.type="pageview_dashboard",a.customerId=void 0!==cF.Z.get("customerid")?cF.Z.get("customerid"):"",a.source="",a.slug=aQ,(0,aj.nj)(A,"eventtrack",a)},[]);var aR=function(a){aJ(a)},d=function(){aJ(0)},aE=function(){var c=null==a?void 0:a.pnameforbook,d="";"de"===A&&4===aN.length&&(d="&at=1");var b={};b.type="appt_booking_click",b.customerId=void 0!==cF.Z.get("customerid")?cF.Z.get("customerid"):"",b.customerEmail="",b.source="Userdashboard",b.slug=aQ,(0,aj.nj)(A,"eventtrack",b);var e="?utm_source=mybrillen&utm_medium=direct&utm_campaign=terminbuchung-mybr
1illen&product=".concat(c,"&pname=").concat(c,"&zip=").concat(aN,"&isDirectLead=1").concat(d);K().push("thank-you-zip-new"+e)};return(0,I.jsxs)(I.Fragment,{children:[aI&&(0,I.jsx)(ah.Z,{}),(0,I.jsxs)("div",{className:"relative max-md:hidden",children:[(null==a?void 0:a.oct_dashboard_desk)&&(0,I.jsx)(fQ.Z,{image:null==a?void 0:a.oct_dashboard_desk,layout:"responsive"}),(0,I.jsx)("div",{className:"absolute top-14 right-32",children:(0,I.jsxs)("div",{className:"bg-white p-3 rounded-md border-2 border-[#85b645] text-center min-w-[300px]",children:[(0,I.jsxs)("div",{className:"p-2 rounded-md bg-brand",children:[(0,I.jsx)("p",{className:"font-medium text-white",children:null==a?void 0:a.your_balance}),(0,I.jsxs)("p",{className:"text-white text-[40px] font-bold leading-10 mb-2",children:[az," ",p]})]}),(0,I.jsx)("div",{className:"mt-1",children:(0,I.jsx)(am.r,{onClick:aE,className:"w-full",children:(0,I.jsx)("p",{className:"font-medium underline cursor-pointer text-brand",children:null==a?void 0:a.book_appointment_cta})})}),(0,I.jsxs)("div",{className:"p-2 mt-3 rounded-md bg-accent",children:[(0,I.jsxs)("p",{className:"font-medium text-white",children:[null==a?void 0:a.family_credit," ",(0,I.jsx)("sup",{className:"font-bold",children:"1"})]}),(0,I.jsxs)("p",{className:"text-white text-[40px] font-bold leading-10 mb-2",children:[aB," ",p]})]}),(0,I.jsx)("div",{className:"mt-1",children:(0,I.jsx)(am.r,{href:null==b?void 0:null===(q=b[0])|| void 0===q?void 0:q.slug,className:"w-full",children:(0,I.jsx)("p",{className:"font-medium underline cursor-pointer text-accent",children:null==a?void 0:a.add_member})})})]})})]}),(0,I.jsxs)("div",{className:"relative hidden max-md:block",children:[(null==a?void 0:a.oct_dashboard_mobile)&&(0,I.jsx)(fQ.Z,{image:null==a?void 0:a.oct_dashboard_mobile,layout:"responsive"}),(0,I.jsxs)("div",{className:"p-3",children:[(0,I.jsxs)("div",{className:"p-2 rounded-md bg-brand",children:[(0,I.jsx)("p",{className:"font-medium text-center text-white",children:null==a?void 0:a.your_balance}),(0,I.jsxs)("p",{className:"text-white text-[40px] text-center font-bold leading-10 mb-2",children:[az," ",p]})]}),(0,I.jsx)("div",{className:"mt-2",children:(0,I.jsx)(am.r,{onClick:aE,className:"w-full",children:(0,I.jsx)("p",{className:"font-medium underline cursor-pointer text-brand",children:null==a?void 0:a.book_appointment_cta})})}),(0,I.jsxs)("div",{className:"p-2 mt-3 rounded-md bg-accent",children:[(0,I.jsxs)("p",{className:"font-medium text-center text-white",children:[null==a?void 0:a.family_credit," ",(0,I.jsx)("sup",{className:"font-bold",children:"1"})]}),(0,I.jsxs)("p",{className:"text-white text-[40px] text-center font-bold leading-10 mb-2",children:[aB," ",p]})]}),(0,I.jsx)("div",{className:"mt-2",children:(0,I.jsx)(am.r,{href:null==b?void 0:null===(s=b[0])|| void 0===s?void 0:s.slug,className:"w-full",children:(0,I.jsx)("p",{className:"font-medium text-center underline cursor-pointer text-accent",children:null==a?void 0:a.add_member})})})]})]}),(0,I.jsxs)("div",{className:"container block mx-auto mt-3 mb-6 md:hidden",children:[(0,I.jsxs)("p",{className:"font-semibold text-h2 text-brand",children:[ax,", ",null==a?void 0:a.welcome_msg]}),(0,I.jsx)("p",{className:"my-2",children:null==a?void 0:a.family_club_info_one})]}),(0,I.jsx)("div",{className:"container block mx-auto md:hidden",children:(0,I.jsxs)("div",{className:"px-1 mt-3",children:[(0,I.jsx)(fR,{whichcase:2,index:5,slug:"/".concat(null==l?void 0:null===(t=l[0])|| void 0===t?void 0:t.slug),type:"".concat(null==l?void 0:null===(u=l[0])|| void 0===u?void 0:u.type),hoveredIndex:c,title:null==l?void 0:null===(v=l[0])|| void 0===v?void 0:v.title,countryWiseClass:f$,handleMouseLeave:d,handleMouseEnter:function(a){return aR(a)}}),(0,I.jsx)(fR,{whichcase:2,index:3,slug:"/".concat(null==f?void 0:null===(w=f[0])|| void 0===w?void 0:w.slug),type:"".concat(null==f?void 0:null===(x=f[0])|| void 0===x?void 0:x.type),hoveredIndex:c,title:null==f?void 0:null===(y=f[0])|| void 0===y?void 0:y.title,countryWiseClass:f$,handleMouseLeave:d,handleMouseEnter:function(a){return aR(a)}}),(0,I.jsx)(fR,{whichcase:2,index:4,slug:"/".concat(null==h?void 0:null===(z=h[0])|| void 0===z?void 0:z.slug),type:"".concat(null==h?void 0:null===(B=h[0])|| void 0===B?void 0:B.type),hoveredIndex:c,title:null==h?void 0:null===(C=h[0])|| void 0===C?void 0:C.title,countryWiseClass:f$,handleMouseLeave:d,handleMouseEnter:function(a){return aR(a)}}),(0,I.jsx)(fR,{whichcase:2,index:6,slug:"/".concat(null==i?void 0:null===(D=i[0])|| void 0===D?void 0:D.slug),type:"".concat(null==i?void 0:null===(E=i[0])|| void 0===E?void 0:E.type),hoveredIndex:c,title:null==i?void 0:null===(F=i[0])|| void 0===F?void 0:F.title,countryWiseClass:f$,handleMouseLeave:d,handleMouseEnter:function(a){return aR(a)}}),(0,I.jsx)(fR,{whichcase:2,index:7,slug:"/".concat(null==j?void 0:null===(G=j[0])|| void 0===G?void 0:G.slug),type:"".concat(null==j?void 0:null===(H=j[0])|| void 0===H?void 0:H.type),hoveredIndex:c,title:null==j?void 0:null===(L=j[0])|| void 0===L?void 0:L.title,countryWiseClass:f$,handleMouseLeave:d,handleMouseEnter:function(a){return aR(a)}}),(0,I.jsx)(fR,{whichcase:2,index:8,slug:"/".concat(null==k?void 0:null===(M=k[0])|| void 0===M?void 0:M.slug),type:"".concat(null==k?void 0:null===(N=k[0])|| void 0===N?void 0:N.type),hoveredIndex:c,title:null==k?void 0:null===(O=k[0])|| void 0===O?void 0:O.title,countryWiseClass:f$,handleMouseLeave:d,handleMouseEnter:function(a){return aR(a)}}),(0,I.jsx)(fR,{whichcase:2,index:9,slug:"/".concat(null==b?void 0:null===(P=b[0])|| void 0===P?void 0:P.slug),type:"".concat(null==b?void 0:null===(Q=b[0])|| void 0===Q?void 0:Q.type),hoveredIndex:c,title:null==b?void 0:null===(R=b[0])|| void 0===R?void 0:R.title,countryWiseClass:f$,handleMouseLeave:d,handleMouseEnter:function(a){return aR(a)}})]})}),(0,I.jsx)("div",{className:"container hidden mx-auto max-lg:max-w-full md:block",children:(0,I.jsx)("div",{className:"p-3 mt-6 border-2 rounded-xl",children:(0,I.jsxs)("div",{className:"flex flex-wrap justify-evenly",children:[(0,I.jsx)(fR,{whichcase:1,index:5,slug:"/".concat(null==l?void 0:null===(S=l[0])|| void 0===S?void 0:S.slug),type:"".concat(null==l?void 0:null===(T=l[0])|| void 0===T?void 0:T.type),hoveredIndex:c,title:null==l?void 0:null===(U=l[0])|| void 0===U?void 0:U.title,countryWiseClass:f$,handleMouseLeave:d,handleMouseEnter:function(a){return aR(a)}}),(0,I.jsx)(fR,{whichcase:1,index:3,slug:"/".concat(null==f?void 0:null===(V=f[0])|| void 0===V?void 0:V.slug),type:"".concat(null==f?void 0:null===(W=f[0])|| void 0===W?void 0:W.type),hoveredIndex:c,title:null==f?void 0:null===(X=f[0])|| void 0===X?void 0:X.title,countryWiseClass:f$,handleMouseLeave:d,handleMouseEnter:function(a){return aR(a)}}),(0,I.jsx)(fR,{whichcase:1,index:4,slug:"/".concat(null==h?void 0:null===(Y=h[0])|| void 0===Y?void 0:Y.slug),type:"".concat(null==h?void 0:null===(Z=h[0])|| void 0===Z?void 0:Z.type),hoveredIndex:c,title:null==h?void 0:null===($=h[0])|| void 0===$?void 0:$.t
1itle,countryWiseClass:f$,handleMouseLeave:d,handleMouseEnter:function(a){return aR(a)}}),(0,I.jsx)(fR,{whichcase:1,index:6,slug:"/".concat(null==i?void 0:null===(_=i[0])|| void 0===_?void 0:_.slug),type:"".concat(null==i?void 0:null===(aa=i[0])|| void 0===aa?void 0:aa.type),hoveredIndex:c,title:null==i?void 0:null===(ab=i[0])|| void 0===ab?void 0:ab.title,countryWiseClass:f$,handleMouseLeave:d,handleMouseEnter:function(a){return aR(a)}}),(0,I.jsx)(fR,{whichcase:1,index:7,slug:"/".concat(null==j?void 0:null===(ac=j[0])|| void 0===ac?void 0:ac.slug),type:"".concat(null==j?void 0:null===(ad=j[0])|| void 0===ad?void 0:ad.type),hoveredIndex:c,title:null==j?void 0:null===(ag=j[0])|| void 0===ag?void 0:ag.title,countryWiseClass:f$,handleMouseLeave:d,handleMouseEnter:function(a){return aR(a)}}),(0,I.jsx)(fR,{whichcase:1,index:8,slug:"/".concat(null==k?void 0:null===(ai=k[0])|| void 0===ai?void 0:ai.slug),type:"".concat(null==k?void 0:null===(ak=k[0])|| void 0===ak?void 0:ak.type),hoveredIndex:c,title:null==k?void 0:null===(al=k[0])|| void 0===al?void 0:al.title,countryWiseClass:f$,handleMouseLeave:d,handleMouseEnter:function(a){return aR(a)}}),(0,I.jsx)(fR,{whichcase:1,index:9,slug:"/".concat(null==b?void 0:null===(an=b[0])|| void 0===an?void 0:an.slug),type:"".concat(null==b?void 0:null===(ao=b[0])|| void 0===ao?void 0:ao.type),hoveredIndex:c,title:null==b?void 0:null===(ap=b[0])|| void 0===ap?void 0:ap.title,countryWiseClass:f$,handleMouseLeave:d,handleMouseEnter:function(a){return aR(a)}})]})})}),(0,I.jsxs)("div",{className:"container hidden mx-auto my-6 md:block",children:[(0,I.jsxs)("p",{className:"font-semibold text-h2 text-brand",children:[ax,", ",null==a?void 0:a.welcome_msg]}),(0,I.jsx)("p",{className:"my-2",children:null==a?void 0:a.family_club_info_one})]}),(0,I.jsxs)("div",{className:"container mx-auto my-6",children:[(0,I.jsxs)("p",{className:"font-semibold text-black text-h2",children:[null==a?void 0:a.family_club_info_two," ",(0,I.jsx)("span",{className:"font-semibold text-accent text-h2",children:null==b?void 0:null===(aq=b[0])|| void 0===aq?void 0:aq.title})," ",null==a?void 0:a.family_club_info_three]}),(0,I.jsx)("p",{className:"my-2",children:null==a?void 0:a.family_club_info_four}),(0,I.jsx)("div",{className:"mx-auto mt-5 w-full md:w-[35%]",children:(0,I.jsx)(af.z,{slim:"false",intent:"primary",href:null==b?void 0:null===(ar=b[0])|| void 0===ar?void 0:ar.slug,className:"",children:null==a?void 0:a.add_member_now})})]}),(0,I.jsx)("div",{className:"container mx-auto mb-8",children:(0,I.jsxs)("div",{className:"w-full md:flex md:gap-5 bg-gray-50",children:[(0,I.jsx)("div",{className:"flex-1",children:(null==a?void 0:a.family_club_img)&&(0,I.jsx)(ae.ZP,{image:null==a?void 0:a.family_club_img})}),(0,I.jsxs)("div",{className:"flex-1 p-3 md:p-2",children:[(0,I.jsxs)("p",{className:"mt-3 text-h2",children:[null==a?void 0:a.club_info_line_1," ",(0,I.jsx)("span",{className:"font-bold text-h2 text-accent",children:null==a?void 0:a.club_info_line_2})," ",null==a?void 0:a.club_info_line_3,(0,I.jsx)("span",{className:"font-bold text-h2",children:null==a?void 0:a.club_info_line_4})]}),(0,I.jsx)("p",{className:"mt-5 text-xl",children:null==a?void 0:a.invite_your_relatives}),(0,I.jsx)("div",{className:"w-full mx-auto mt-8 md:w-1/2",children:(0,I.jsx)(am.r,{href:null==b?void 0:null===(as=b[0])|| void 0===as?void 0:as.slug,className:"text-center",children:(0,I.jsx)("p",{className:"py-2 font-medium text-white border rounded-full cursor-pointer bg-accent text-md border-accent hover:text-accent hover:bg-white",children:null==a?void 0:a.got_to_family_club_cta})})})]})]})}),(0,I.jsx)(fZ,{}),(0,I.jsxs)("div",{className:"container mx-auto mb-8 text-sm",children:["1 ",null==a?void 0:a.familyastrick]})]})}),f0=b.Z.country,f1=(0,c.Q)(function(C){var i,j,k,l,o,p,q,r,s,t,u,v,w,x,D,y=(0,aw.Z)({},C),h=y.brillenPath,z=y.headerConfig,A=y.apiResult,E=A.textLocale,F=A.imageLocale,B=(0,J.useState)(!1),G=B[0],L=B[1],b=h.filter(function(a){return"vision"===a.type}),c=h.filter(function(a){return"profile"===a.type}),d=h.filter(function(a){return"contract"===a.type}),f=h.filter(function(a){return"appointment"===a.type}),a=e.Z.getTranslaionArray(E,F),H=null==z?void 0:null===(i=z.Mybrillen)|| void 0===i?void 0:null===(j=i.LogoutButton)|| void 0===j?void 0:j.CTAText;(0,J.useEffect)(function(){var a={};a.type="pageview_dashboard",a.customerId=void 0!==cF.Z.get("customerid")?cF.Z.get("customerid"):"",a.source="mein-brillenvertrag",a.slug=window.location.toString(),(0,aj.nj)(f0,"eventtrack",a)},[]);var K=(D=(0,n.Z)(m().mark(function a(){return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return L(!0),a.next=3,(0,g.ne)(f0);case 3:case"end":return a.stop()}},a)})),function(){return D.apply(this,arguments)});return(0,I.jsxs)("div",{children:[G&&(0,I.jsx)(ah.Z,{}),(0,I.jsxs)("div",{className:"container mx-auto",children:[(0,I.jsx)("p",{className:"py-6 text-xl font-bold text-center",children:null==a?void 0:a.general_title}),(0,I.jsxs)("div",{className:"grid grid-cols-4 gap-4 mb-6 max-md:grid-cols-1",children:[(0,I.jsxs)("div",{className:"p-6 bg-gray-100 shadow rounded-xl",children:[(0,I.jsx)("div",{className:"text-center",children:(0,I.jsx)(bK(),{loader:bL.vg,src:"contract/mydata-icon.png",alt:null==c?void 0:null===(k=c[0])|| void 0===k?void 0:k.title,width:150,height:150})}),(0,I.jsx)("p",{className:"pb-4 font-semibold text-center",children:null==c?void 0:null===(l=c[0])|| void 0===l?void 0:l.title}),(0,I.jsx)("div",{className:"max-w-[70%] mx-auto",children:(0,I.jsx)(af.z,{slim:"false",intent:"primary",href:"/".concat(null==c?void 0:null===(o=c[0])|| void 0===o?void 0:o.slug),className:"",children:null==a?void 0:a.main_cta_hover})})]}),(0,I.jsxs)("div",{className:"p-6 bg-gray-100 shadow rounded-xl",children:[(0,I.jsx)("div",{className:"text-center",children:(0,I.jsx)(bK(),{loader:bL.vg,src:"contract/calendar-icon.png",alt:null==f?void 0:null===(p=f[0])|| void 0===p?void 0:p.title,width:150,height:150})}),(0,I.jsx)("p",{className:"pb-4 font-semibold text-center",children:null==f?void 0:null===(q=f[0])|| void 0===q?void 0:q.title}),(0,I.jsx)("div",{className:"max-w-[70%] mx-auto",children:(0,I.jsx)(af.z,{slim:"false",intent:"primary",href:"/".concat(null==f?void 0:null===(r=f[0])|| void 0===r?void 0:r.slug),className:"",children:null==a?void 0:a.main_cta_hover})})]}),(0,I.jsxs)("div",{className:"p-6 bg-gray-100 shadow rounded-xl",children:[(0,I.jsx)("div",{className:"text-center",children:(0,I.jsx)(bK(),{loader:bL.vg,src:"contract/contract-icon.png",alt:null==d?void 0:null===(s=d[0])|| void 0===s?void 0:s.title,width:150,height:150})}),(0,I.jsx)("p",{className:"pb-4 font-semibold text-center",children:null==d?void 0:null===(t=d[0])|| void 0===t?void 0:t.t
1itle}),(0,I.jsx)("div",{className:"max-w-[70%] mx-auto",children:(0,I.jsx)(af.z,{slim:"false",intent:"primary",href:"/".concat(null==d?void 0:null===(u=d[0])|| void 0===u?void 0:u.slug),className:"",children:null==a?void 0:a.main_cta_hover})})]}),(0,I.jsxs)("div",{className:"p-6 bg-gray-100 shadow rounded-xl",children:[(0,I.jsx)("div",{className:"text-center",children:(0,I.jsx)(bK(),{loader:bL.vg,src:"contract/eyeprofil-icon.png",alt:null==b?void 0:null===(v=b[0])|| void 0===v?void 0:v.title,width:150,height:150})}),(0,I.jsx)("p",{className:"pb-4 font-semibold text-center",children:null==b?void 0:null===(w=b[0])|| void 0===w?void 0:w.title}),(0,I.jsx)("div",{className:"max-w-[70%] mx-auto",children:(0,I.jsx)(am.r,{href:"/".concat(null==b?void 0:null===(x=b[0])|| void 0===x?void 0:x.slug),children:(0,I.jsx)("p",{className:"flex items-center justify-center px-4 py-3 font-medium bg-white border rounded-lg cursor-pointer focus:outline-none focus:ring-2 focus:ring-offset-white focus:ring-offset-1 disabled:opacity-60 disabled:pointer-events-none hover:bg-opacity-90 text-brandred border-brandred",children:null==a?void 0:a.main_cta})})})]})]}),(0,I.jsx)("div",{onClick:K,className:"py-6 text-lg font-bold text-center underline cursor-pointer text-brandred",children:H})]})]})}),f2=a(18584),f3=a(1653),B=a(46020),f4=a.n(B),f5=b.Z.country,f6=function(a){var c=a.prefix,d=a.title,b=(0,J.useState)(!1),e=b[0],f=b[1];return(0,J.useEffect)(function(){void 0!==cF.Z.get("login_fname")&&f(cF.Z.get("login_fname"))},[]),(0,I.jsxs)("div",{className:"py-4 text-center",children:[(0,I.jsxs)("p",{className:"text-xl font-semibold sm:text-2xl",children:[c," ",e,"ja"===f5?"\u69D8":","]}),(0,I.jsx)(aG.Z,{text:d,type:"h2"})]})},f7=(0,c.Q)(function(f){var b=(0,aw.Z)({},f),g=b.textLocale,h=b.imageLocale,a=e.Z.getTranslaionArray(g,h),c=(0,J.useState)(" "),d=c[0],i=c[1];return(0,J.useEffect)(function(){void 0!==(0,_.getCookie)("customerid")&&i((0,_.getCookie)("customerid"))},[]),(0,I.jsx)("div",{className:"w-full md:w-[90%] ml-auto max-md:mx-auto",children:a&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(f6,{prefix:null==a?void 0:a.name_prefix,title:null==a?void 0:a.your_qr}),(0,I.jsxs)("div",{className:"flex mt-6 max-md:block",children:[(0,I.jsxs)("div",{className:"w-full text-center md:w-1/3",children:[(0,I.jsx)("div",{id:"element-id",className:"w-[166px] m-auto bg-white p-2",children:(0,I.jsx)(f3.Z,{value:d,size:150,bgColor:"#ececec",fgColor:"#000",className:"print:w-[100px] print:h-[100px] mx-auto"})}),(0,I.jsx)("p",{className:"mt-4",children:d})]}),(0,I.jsxs)("div",{className:"w-full md:w-2/3",children:[(0,I.jsx)("p",{className:"max-md:text-center",children:null==a?void 0:a.qr_info}),(0,I.jsx)("span",{className:"table w-auto px-6 py-2 mt-8 text-white border rounded-full cursor-pointer border-accent bg-accent hover:bg-white hover:text-accent max-md:mx-auto",onClick:function(){var a="";f4()(document.querySelector("#element-id")).then(function(c){a=c.toDataURL();var b=document.createElement("a");b.download="myqrcode.png",b.href=a,b.click()})},children:null==a?void 0:a.qr_download})]})]}),(0,I.jsxs)("div",{className:"mt-6",children:[(0,I.jsx)("p",{className:"mb-2 text-xl font-semibold max-md:text-center",children:null==a?void 0:a.qr_infolist_title}),(0,I.jsx)("hr",{}),(0,I.jsxs)("div",{className:"mt-4 ml-2",children:[(0,I.jsxs)("p",{className:"flex items-center",children:[(0,I.jsx)("span",{className:"mr-1",children:(0,I.jsx)(f2.Z,{width:24})}),null==a?void 0:a.qr_first_li]}),(0,I.jsxs)("p",{className:"flex items-center",children:[(0,I.jsx)("span",{className:"mr-1",children:(0,I.jsx)(f2.Z,{width:24})}),null==a?void 0:a.qr_second_li]}),(0,I.jsxs)("p",{className:"flex items-center",children:[(0,I.jsx)("span",{className:"mr-1",children:(0,I.jsx)(f2.Z,{width:24})}),null==a?void 0:a.qr_third_li]})]})]})]})})}),f8=a(54039),f9=a(37636),ga=a(29835),gb=a(8841),gc=function(a){var b=a.desk,c=a.mbl,d=a.classData;return(0,I.jsxs)("div",{className:void 0===d?"":d,children:[(0,I.jsx)("div",{className:"max-md:hidden",children:b&&(0,I.jsx)(fQ.Z,{image:b,layout:"responsive"})}),(0,I.jsx)("div",{className:"hidden px-2 mx-auto max-md:block",children:c&&(0,I.jsx)(fQ.Z,{image:c,layout:"responsive"})})]})},i=b.Z.country,gd="en"===i?"MM/DD/YYYY HH:mm:ss":"DD.MM.YYYY HH:mm:ss",ge=i;function gf(a,b){return a.filter(function(a){return a.pname===b})}var gg=(0,c.Q)(function(S){var k,l,T,q=(0,aw.Z)({},S),s=(0,J.useState)([]),t=s[0],ag=s[1],u=(0,J.useState)(!1),U=u[0],ak=u[1],v=(0,J.useState)(""),al=v[0],an=v[1],w=(0,J.useState)([]),d=w[0],ao=w[1],x=(0,J.useState)(!1),V=x[0],ap=x[1],y=(0,J.useState)([]),f=y[0],aq=y[1],z=(0,J.useState)([]),a=z[0],ar=z[1],A=(0,J.useState)(!1),o=A[0],as=A[1],B=(0,J.useState)(""),h=B[0],at=B[1],C=(0,J.useState)(""),p=C[0],au=C[1],D=(0,J.useState)([]),E=D[0],av=D[1],F=(0,J.useState)([]),W=F[0],ax=F[1],G=(0,J.useState)(!1),X=G[0],ay=G[1],H=(0,J.useState)(""),L=H[0],az=H[1],M=(0,J.useState)(""),N=M[0],aA=M[1],O
1=(0,J.useState)(""),P=O[0],aB=O[1],j=void 0!==cF.Z.get("customerid")?cF.Z.get("customerid"):"",Y=q.textLocale,Z=q.imageLocale,c=e.Z.getTranslaionArray(Y,Z);(0,J.useEffect)(function(){void 0!==cF.Z.get("login_zip")&&an(cF.Z.get("login_zip")),(b=(0,n.Z)(m().mark(function a(){var b,c,d,e,f,h,j,k,l,n,o,p,q,s;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return ak(!0),a.t0=cq.Z,a.next=4,Promise.all([(0,f9.Io)("/voucher-ticket",{populate:"deep",locale:i}),(0,f9.Io)("/flow-for-booking",{populate:{calendarTitle:{populate:"*"},calendarData:{populate:"*"}},locale:i}),(0,f9.Io)("/wp-ticket",{populate:{withQrCode:{populate:"*"}},locale:i}),]);case 4:return a.t1=a.sent,c=(b=(0,a.t0)(a.t1,3))[0],d=b[1],e=b[2],(null==c?void 0:c.data)&&ao(null==c?void 0:null===(f=c.data)|| void 0===f?void 0:f.attributes),h="",(null==e?void 0:e.data)&&(h=null==e?void 0:null===(j=e.data)|| void 0===j?void 0:j.attributes),a.next=14,(0,g.SB)(i);case 14:(null==(k=a.sent)?void 0:k.data.length)>0&&((null==(n=null==k?void 0:null===(l=k.data)|| void 0===l?void 0:l[0])?void 0:n.app_status)==="NORMAL"||(null==n?void 0:n.app_status)==="NO SHOW"||(null==n?void 0:n.app_status)==="PENDING"||(null==n?void 0:n.app_status)==="normal"||(null==n?void 0:n.app_status)==="NOT BUYING")?(o=r()(new Date).format("YYYY-MM-DD"),p=r()(n.app_time,gd).format("YYYY-MM-DD"),r()(new Date(o))<=r()(new Date(p))?(as(!0),s="",("de"===i||"ast"===i)&&(s=(null==n?void 0:n.frame_list)?n.frame_list[0]:""),aC(s),aE(n,null==d?void 0:null===(q=d.data)|| void 0===q?void 0:q.attributes,h),ag(n)):ak(!1)):ak(!1);case 16:case"end":return a.stop()}},a)})),function(){return b.apply(this,arguments)})();var b,a={};a.type="pageview_appt",a.customerId=void 0!==cF.Z.get("customerid")?cF.Z.get("customerid"):"",a.source="",a.slug=window.location.toString(),(0,aj.nj)(i,"eventtrack",a)},[]);var $,_,aa,ab,aC=(T=(0,n.Z)(m().mark(function a(b){var c,d,e,f;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(!(""!==b)){a.next=17;break}return ak(!0),(c={}).sku=b,a.next=6,(0,aj.b2)(i,"frameinfo",c);case 6:if((null==(d=a.sent)?void 0:d.code)!==1){a.next=16;break}return e=d.result[0],a.next=11,(0,ai.yT)(e.brand,e.model,e.color,e.imgtype);case 11:f=a.sent,ak(!1),aA(e.brand),az(f),aB(b);case 16:ak(!1);case 17:case"end":return a.stop()}},a)})),function(a){return T.apply(this,arguments)}),aD=function(a){var b=a.split("-"),c=r().utc(b,"HH:mm:ss");return r()(c).format("HH:mm")},Q=function(a,b,f){if(a&&b){var c="",d="",e="de"===i||"de-BE"===i||"ast"===i?"Uhr":"h";return"de"===i||"de-BE"===i||"es"===i||"ast"===i||"it"===i||"it-CH"===i||"pl"===i||"at"===i?(c=r()(a,"DD.MM.YYYY HH:mm").format("dddd, DD.MM.YYYY"),d=r().utc(b,"DD.MM.YYYY HH:mm").format("HH:mm")):"ja"===i?(e="",c=r()(a,"DD.MM.YYYY HH:mm").format("YYYY/MM/DD dddd"),d=r().utc(b,"DD.MM.YYYY HH:mm").format("HH:mm")):"en"===i&&(c=r()(a,gd).format("dddd, DD/MM/YYYY"),e="",d=aD(b.split(" ")[1])),1===f?"".concat(c):"".concat(d," ").concat(e)}return!1},aE=($=(0,n.Z)(m().mark(function a(b,c,f){var g,h,j,k,l,n,o,p,q,s,t,u,v;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return ak(!0),(g={}).event_id=null==b?void 0:b.app_id,a.next=5,(0,ai.DW)(ge,g);case 5:(null==(h=a.sent)?void 0:h.success)&&((n=null==(l=h.data)?void 0:l.campaign_code)&&ap(null==d?void 0:null===(o=d.sideinfo)|| void 0===o?void 0:o.pname.some(function(a){return a.text===n})),("de"===i||"ast"===i||"de-BE"===i||"es"===i||"it"===i||"it-CH"===i||"pl"===i)&&(null==l?void 0:l.link_to_pass_page)&&at(null==l?void 0:l.link_to_pass_page),p=gf(null==f?void 0:f.withQrCode.withQrCodePname,n),q="",(null==l?void 0:l.referrer)?q=null==l?void 0:l.referrer:(null==l?void 0:l.coupon_code)&&(p&&(null===(j=p[0])|| void 0===j?void 0:j.showCode)||0===p.length)?q=l.coupon_code:(null==l?void 0:l.universal_coupon_code)&&(p&&(null===(k=p[0])|| void 0===k?void 0:k.showCode)||0===p.length)&&(q=l.universal_coupon_code),q&&au(q),ar(l),s=[],t=[],(null==l?void 0:l.lat)&&(t.id=l.store_id,t.lng=l.lng,t.lat=l.lat,s.push(t),av(s),ax({id:l.store_id,lng:l.lng,lat:l.lat})),(u={}).event_id=b.app_id,u.f_name=l.first_name,u.StartTimeFormatted=r()(l.app_date_time,"DD.MM.YYYY HH:mm").format("YYYY-MM-DD HH:mm"),u.EndTimeFormatted=r()(l.app_end_date_time,"DD.MM.YYYY HH:mm").format("YYYY-MM-DD HH:mm"),u.shopName=b.store_name,u.shopAddress="".concat(b.street," ").concat(b.street2),u.shopZip=b.store_zip,u.shopCity=b.store_city,u.title=null==c?void 0:c.calendarTitle,u.description=null==c?void 0:c.calendarData,u.oddoApiCountry=ge,aq(v=e.Z.calenderEventCallNew(u))),ak(!1);case 7:case"end":return a.stop()}},a)})),function(a,b,c){return $.apply(this,arguments)}),ac=(_=(0,n.Z)(m().mark(function a(){return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:ay(!0);case 1:case"end":return a.stop()}},a)})),function(){return _.apply(this,arguments)}),ad=(aa=(0,n.Z)(m().mark(function a(){return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:ay(!1);case 1:case"end":return a.stop()}},a)})),function(){return aa.apply(this,arguments)}),ae=(ab=(0,n.Z)(m().mark(function a(){return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:window.melibo.openWidget();case 1:case"end":return a.stop()}},a)})),function(){return ab.apply(this,arguments)}),R=function(){var a={};a.type="appt_booking_click",a.customerId=void 0!==cF.Z.get("customerid")?cF.Z.get("customerid"):"",a.
1customerEmail="",a.source="Appointment",a.slug=window.location.toString(),(0,aj.nj)(i,"eventtrack",a);var b=null==c?void 0:c.pnameforbook,d="";"de"===i&&4===al.length&&(d="&at=1");var e="?utm_source=mybrillen&utm_medium=direct&utm_campaign=terminbuchung-mybrillen&product=".concat(b,"&pname=").concat(b,"&zip=").concat(al,"&isDirectLead=1").concat(d);K().push("thank-you-zip-new"+e)};return(0,I.jsxs)("div",{className:"w-[90%] ml-auto max-md:mx-auto max-md:w-full",children:[U&&(0,I.jsx)(ah.Z,{}),c&&a&&o?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("div",{className:"relative",children:[(null==c?void 0:c.comman_banner_desk)&&(0,I.jsx)(gc,{desk:null==c?void 0:c.comman_banner_desk,mbl:null==c?void 0:c.comman_banner_mobile}),(0,I.jsxs)("div",{className:"absolute top-[75px] left-7 hidden md:block",children:[a&&(null==a?void 0:a.first_name)&&(0,I.jsx)(aG.Z,{text:"".concat(null==a?void 0:a.first_name," ").concat(null==a?void 0:a.last_name),type:"h5",className:"font-normal"}),j&&(0,I.jsx)(aG.Z,{text:j,type:"h5",className:"font-normal"})]})]}),(0,I.jsx)("div",{className:"block mt-3 md:hidden w-full bg-[#dadee1] p-0",children:(0,I.jsx)("div",{className:"w-full md:w-2/3",children:(0,I.jsxs)("div",{className:"md:mt-16 md:ml-16 max-md:text-center max-md:p-3",children:[a&&(null==a?void 0:a.first_name)&&(0,I.jsx)(aG.Z,{text:"".concat(null==a?void 0:a.first_name," ").concat(null==a?void 0:a.last_name),type:"h5",className:"font-normal"}),j&&(0,I.jsx)(aG.Z,{text:j,type:"h5",className:"font-normal"})]})})})]}):(0,I.jsx)("div",{className:"relative",children:(null==c?void 0:c.comman_banner_desk)&&(0,I.jsx)(gc,{desk:null==c?void 0:c.comman_banner_desk,mbl:null==c?void 0:c.comman_banner_mobile})}),("de"===i||"ast"===i)&&(0,I.jsx)(aG.Z,{text:null==c?void 0:c.benefit_info_title,className:"my-3 !font-semibold",type:"h3"}),(!(null==t?void 0:t.app_id)||!o)&&(0,I.jsx)("div",{className:"",children:"de"===i||"ast"===i?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(aG.Z,{text:null==c?void 0:c.benefit_info_subdata,className:"pb-3",type:"p"}),(0,I.jsx)("div",{className:"flex items-center justify-start mt-3",children:(0,I.jsx)(af.z,{slim:"false",intent:"primary",onClick:R,className:"w-full md:w-2/3 !rounded-md",children:null==c?void 0:c.make_app_cta})}),(0,I.jsx)("div",{className:"flex items-center justify-start mt-3",children:(0,I.jsx)(af.z,{slim:"false",intent:"primary",href:null==c?void 0:c.deal_no_app_cta_link,className:"w-full md:w-2/3 !rounded-md",children:null==c?void 0:c.deal_no_app_cta})})]}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(f6,{prefix:null==c?void 0:c.name_prefix,title:null==c?void 0:c.app_title}),(0,I.jsx)("div",{className:"w-full my-8 text-center",children:(0,I.jsx)(aG.Z,{text:null==c?void 0:c.deal_no_app_desc,type:"h4",className:"!font-medium"})}),(0,I.jsx)("div",{className:"mx-auto w-fit",children:(0,I.jsx)(af.z,{slim:"false",intent:"primary",onClick:R,className:"",children:null==c?void 0:c.deal_no_app_cta})})]})}),c&&a&&o&&(0,I.jsx)("div",{className:"",children:(0,I.jsxs)("div",{className:"".concat(("de"===i||"ast"===i)&&"mt-5"),children:["de"!==i&&"ast"!==i&&(0,I.jsx)("div",{className:"px-5 text-center bg-white md:mt-5 rounded-t-xl",children:(0,I.jsx)(bc.Z,{text:null==d?void 0:d.extraInfo,className:""})}),(0,I.jsxs)("div",{className:"p-5 -mt-[5px] bg-white rounded-b-xl",children:[(0,I.jsxs)("div",{className:"md:flex max-md:justify-between",children:[(0,I.jsxs)("div",{className:"flex-1 text-center",children:[(0,I.jsx)("div",{children:(0,I.jsx)(bK(),{loader:bL.vg,src:"newtime.png",alt:"",width:73,height:73})}),(0,I.jsx)("p",{className:"text-lg font-medium",children:Q(null==a?void 0:a.app_date_time,null==a?void 0:a.app_date_time,1)}),(0,I.jsx)("p",{className:"text-lg font-medium",children:Q(null==a?void 0:a.app_date_time,null==a?void 0:a.app_date_time,2)}),(0,I.jsx)("div",{onClick:function(){var b="";("at"===ge||"ast"===i)&&(b="-at");var a={};a.type="appt_move_click",a.customerId=void 0!==cF.Z.get("customerid")?cF.Z.get("customerid"):"",a.customerEmail="",a.source="myappointment",a.slug=window.location.toString(),(0,aj.nj)(i,"eventtrack",a);var c="/appointmentupdate".concat(b),d="?event_id=".concat(t.app_id,"&myappointment=yes");K().push(c+d)},className:"font-bold underline cursor-pointer text-accent",children:d.changeDate})]}),(0,I.jsxs)("div",{className:"flex-1 text-center max-md:mt-5",children:[(0,I.jsx)("div",{children:(0,I.jsx)(bK(),{loader:bL.vg,src:"newstore.png",alt:"",width:73,height:73})}),"de"===i||"ast"===i?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("p",{className:"text-lg font-semibold",children:null==a?void 0:a.store_name}),(0,I.jsxs)("p",{className:"text-lg font-medium",children:[null==a?void 0:a.street,", ",null==a?void 0:a.street2]}),(0,I.jsxs)("p",{className:"text-lg font-medium",children:[null==a?void 0:a.zip,", ",null==a?void 0:a.city]})]}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("p",{className:"text-lg font-semibold",children:null==a?void 0:a.store_name}),(0,I.jsxs)("p",{className:"text-lg font-medium",children:[null==a?void 0:a.street," , ",null==a?void 0:a.street2,","," ",null==a?void 0:a.zip]}),(0,I.jsx)("p",{className:"text-lg font-medium",children:null==a?void 0:a.city})]}),(0,I.jsx)("div",{onClick:ac,className:"font-bold underline cursor-pointer text-accent",children:d.ctashowmap})]}),N&&P&&L&&(0,I.jsx)("div",{className:"flex-1",children:(0,I.jsx)(gb.Z,{brand:N,sku:P,imgpath:L,type:3})})]}),(0,I.jsx)("p",{className:"my-8 border-b-4 border-gray-700"}),(0,I.jsxs)("div",{className:"w-full md:flex md:gap-5",children:[(0,I.jsxs)("div",{className:"w-full text-center md:flex-1",children:[(0,I.jsx)(aG.Z,{text:d.dealTitle,type:"h3",className:"mb-5"}),(null==a?void 0:a.marketing_title)&&(0,I.jsx)("p",{className:"text-lg font-medium",children:a.marketing_title}),(null==a?void 0:a.offer_confirm_title)&&(0,I.jsx)("p",{className:"mt-3 text-lg font-medium",children:a.offer_confirm_title}),p&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("p",{className:"mt-1 text-center md:mt-3",children:null==d?void 0:d.qrsmallinfo}),(0,I.jsx)("div",{className:"mt-2 md:mt-4 w-[122px] mx-auto",children:(0,I.jsx)(f3.Z,{value:p,size:100,fgColor:"#000",className:""})}),(0,I.jsxs)("div",{className:"p-2 mt-5 text-lg font-semibold text-center text-white rounded-xl bg-brand",children:[d.notcodecase," ",p]})]})]}),V&&(0,I.jsxs)("div",{className:"w-full text-center md:flex-1 max-md:mt-3",children:[(0,I.jsx)(bc.Z,{text:null==d?void 0:null===(k=d.sideinfo)|| void 0===k?void 0:k.information,className:""}),(null==d?void 0:d.giftImage)&&(0,I.jsx)("div",{className:"w-20 mx-auto mt-2",children:(0,I.jsx)(fQ.Z,{image:d.giftImage})})]})]}),(0,I.jsx)("div",{className:"mt-5 text-lg font-semibold text-center",children:d.subTitle}),(0,I.jsx)("p",{className:"my-8 border-b-4 border-gray-700"}),(0,I.jsx)(bc.Z,{text:d.reservInfo,className:"".concat((null==a?void 0:a.referrer)&&"mt-3")}),(0,I.jsx)("div",{onClick:ae,className:"font-bold cursor-pointer text-accent",children:d.ctach
1at})]}),d&&a&&(0,I.jsxs)("div",{className:"py-8",children:[(0,I.jsx)("p",{className:"pb-8 font-semibold",children:null==d?void 0:d.SaveToCalenderText}),(0,I.jsxs)("div",{className:"flex flex-wrap justify-around",children:[(0,I.jsx)("div",{className:"w-1/3 text-center",children:(0,I.jsxs)(am.r,{href:(0,f8.lk)(f),className:"",target:"_blank",children:[(0,I.jsx)("p",{className:"w-[50px] mx-auto",children:(0,I.jsx)(fQ.Z,{image:null==d?void 0:null===(l=d.SaveToCalender)|| void 0===l?void 0:l[0].Image})}),(0,I.jsx)("span",{className:"font-normal underline",children:null==d?void 0:d.SaveToCalender[0].Text})]})}),(0,I.jsx)("div",{className:"w-1/3 pb-16 text-center",children:(0,I.jsxs)(am.r,{className:"",href:(0,f8.sm)(f),target:"_blank",children:[(0,I.jsx)("p",{className:"w-[50px] mx-auto",children:(0,I.jsx)(fQ.Z,{image:d.SaveToCalender[1].Image})}),(0,I.jsx)("span",{className:"font-normal underline",children:d.SaveToCalender[1].Text})]})}),(0,I.jsx)("div",{className:"w-1/3 text-center",children:(0,I.jsxs)(am.r,{className:"",href:(0,f8.Ir)(f),target:"_blank",children:[(0,I.jsx)("p",{className:"w-[50px] mx-auto",children:(0,I.jsx)(fQ.Z,{image:d.SaveToCalender[2].Image})}),(0,I.jsx)("span",{className:"font-normal underline",children:d.SaveToCalender[2].Text})]})}),h&&(0,I.jsx)("div",{className:"w-1/3 text-center",children:(0,I.jsx)(am.r,{href:h,target:"_blank",children:(0,I.jsxs)("div",{className:"grid",children:[(0,I.jsx)(bK(),{src:"".concat(b.Z.baseApiUrl,"/uploads/google_wallet_5be74b75ea.svg"),loader:bL.uo,width:50,height:50,alt:""}),(0,I.jsx)("span",{className:"font-normal underline pt-[6px]",children:d.SaveToCalender[3].Text})]})})}),h&&(0,I.jsx)("div",{className:"w-1/3 text-center",children:(0,I.jsx)(am.r,{href:h,target:"_blank",children:(0,I.jsxs)("div",{className:"grid",children:[(0,I.jsx)(bK(),{src:"".concat(b.Z.baseApiUrl,"/uploads/apple_wallet_bafc2518f7.svg"),loader:bL.uo,width:50,height:50,alt:""}),(0,I.jsx)("span",{className:"font-normal underline pt-[6px]",children:d.SaveToCalender[4].Text})]})})}),(0,I.jsx)("div",{className:"w-1/3 text-center",children:(0,I.jsxs)(am.r,{className:"",href:(0,f8.ko)(f),target:"_blank",children:[(0,I.jsx)("p",{className:"w-[50px] mx-auto",children:(0,I.jsx)(fQ.Z,{image:d.SaveToCalender[5].Image})}),(0,I.jsx)("span",{className:"font-normal underline",children:d.SaveToCalender[5].Text})]})})]})]})]})}),(0,I.jsx)("div",{"aria-hidden":"true",className:"fixed top-0 left-0 right-0 z-50 w-full p-4 overflow-x-hidden overflow-y-auto md:inset-0 h-[calc(100%)] max-h-full bg-[#00000080] ".concat(!0===X?"block":"hidden"),children:(0,I.jsx)("div",{className:"relative w-full max-w-2xl max-h-full mx-auto pt-[150px]",children:(0,I.jsxs)("div",{className:"relative bg-white rounded-lg shadow",children:[(0,I.jsx)("div",{className:"flex items-start justify-between pt-2 pr-4 rounded-t dark:border-gray-600",children:(0,I.jsx)("div",{className:"inline-flex items-center justify-center w-8 h-8 ml-auto font-bold text-gray-400 bg-transparent rounded-lg cursor-pointer text-md hover:bg-gray-200 hover:text-gray-900",onClick:ad,children:"X"})}),(0,I.jsx)("div",{className:"px-6 pb-6 space-y-6",children:(0,I.jsx)("div",{className:"storeMapSep",children:E.length>0&&(0,I.jsx)(ga.Z,{mapheight:"50vh",markerIcon:E,center:W,zoom:13})})})]})})}),c&&(0,I.jsx)(fU,{classsneed:"mt-3 md:mt-5",product:"Appointment",imgOne:null==c?void 0:c.footer_img1,imgTwo:null==c?void 0:c.footer_img2})]})});function gh(a){var f,k=a.orderId,l=a.processLink,g=a.ctatitle,o=a.errorMsg,h=(0,dM.useStripe)(),i=(0,dM.useElements)(),b=(0,cq.Z)(J.useState(null),2),c=b[0],p=b[1],d=(0,cq.Z)(J.useState(!1),2),e=d[0],q=d[1],j=(f=(0,n.Z)(m().mark(function a(b){var c;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(b.preventDefault(),p(null),!(!h||!i)){a.next=4;break}return a.abrupt("return");case 4:return q(!0),a.next=7,h.confirmPayment({elements:i,confirmParams:{return_url:"".concat("https://www.brillen.de").concat(l,"?neworderid=").concat(k)}});case 7:"card_error"===(c=a.sent.error).type||"validation_error"===c.type?(p(c.message),q(!1)):(p(o),q(!1));case 9:case"end":return a.stop()}},a)})),function(a){return f.apply(this,arguments)});return(0,I.jsxs)("div",{className:"container mx-auto",children:[e&&(0,I.jsx)(ah.Z,{}),(0,I.jsxs)("form",{id:"payment-form",onSubmit:j,children:[(0,I.jsx)(dM.PaymentElement,{id:"payment-element",options:{layout:"accordion"}}),(0,I.jsx)("div",{className:"flex items-center justify-end mt-3",children:(0,I.jsx)(af.z,{className:"w-full md:w-[50%]",slim:!1,fullWidth:!1,intent:"primary",disabled:e||!h||!i,id:"submit",children:g})}),c&&(0,I.jsx)("div",{className:"errorMsg",id:"payment-message",children:c})]})]})}var gi="pk_live_51LawxlGEQ2wA5MH60EoyoOtZfXGucZNi2MNaQvKcz2eQXuIoSoc1PU5pjUjtIAtrnJ8ZgNviqnjk12aqQ1cP6eze00SATjJaCa",gj="",gk=function(k){var b=(0,aw.Z)({},k),l=b.country,o=b.paynow,c=b.orderId,d=b.price,p=b.paymentProcessPath,q=b.onClose,f=(0,J.useState)(!0),r=f[0],u=f[1],h=(0,J.useState)(!1),s=h[0],v=h[1],i=(0,J.useState)(""),j=i[0],w=i[1];(0,J.useEffect)(function(){var b;(b=(0,n.Z)(m().mark(function b(){var e,f,h,i,j,k,n,o,p,q,r;return m().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.next=2,a.e(465).then(a.bind(a,54465));case 2:return e=b.sent.loadStripe,b.next=5,(0,g.lF)(l);case 5:if(f=b.sent,h=l,!f){b.next=31;break}return"de"===l&&(j=null==f?void 0:null===(i=f.data)|| void 0===i?void 0:i.customer_id).startsWith("AT-")&&(h="at",gi="pk_live_51ONaRDEEK3SU12P3HbTwx0rsYCHa35kWMng1BYOhi4S49hzD91KSdB3O66WVLyudSdB2jJ5fDtRTxd12qCsul90T00LFKz1STW"),b.next=11,e(gi);case 11:if(!(null!==(gj=b.sent))){b.next=28;break}return(q={}).price=d,q.orderid=c,q.customerID=null==f?void 0:null===(k=f.data)|| void 0===k?void 0:k.customer_id,q.email=null==f?void 0:null===(n=f.data)|| void 0===n?void 0:n.email,q.fname=null==f?void 0:null===(o=f.data)|| void 0===o?void 0:o.first_name,q.lname=null==f?void 0:null===(p=f.data)|| void 0===p?void 0:p.last_name,q.source=3,b.next=24,(0,aj.OH)(h,"stripecheckout",q);case 24:1===(r=b.sent).code?(u(!1),v(!1),w(r.clientsecret)):(u(!1),v(!0)),b.next=29;break;case 28:v(!0),u(!1);case 29:b.next=32;break;case 31:v(!0),u(!1);case 32:case"end":return b.stop()}},b)})),function(){return b.apply(this,arguments)})()},[l,c,d]);var t={clientSecret:j,appearance:{theme:"stripe",variables:{colorPrimary:"#76b82a"}},locale:e.Z.getCurrentLocale()};return(0,I.jsx)("div",{className:"",children:(0,I.jsxs)("div",{className:"z-[9999] fixed inset-0 flex items-center justify-center overflow-y-auto bg-gray-900 bg-opacity-50",children:[r&&(0,I.jsx)(ah.Z,{}),s&&ag.Z.getValidation("try_after_sometime"),(0,I.jsxs)("div",{className:"relative max-h-full p-3 overflow-y-auto bg-white rounded-lg shadow-lg w-[95%] md:w-[40%]",children:[(0,I.jsxs)("div",{className:"flex",children:[(0,I.jsx)("h2",{className:"flex-1 ml-3 text-xl font-semibold text-accent",children:"".concat(c,", ").concat(d)}),(0,I.jsx)("h2",{className:"flex-1 mb-4 text-xl font-semibold text-right cursor-pointer",onClick:q,children:"X"})]}),j&&(0,I.jsx)(dM.Elements,{options:t,stripe:gj,children:(0,I.jsx)(gh,{orderId:c,processLink:p,ctatitle:o,errorMsg:ag.Z.getValidation("try_after_sometime")}
1)})]})]})})},gl=b.Z.country,gm=(0,c.Q)(function(l){var b,c=(0,aw.Z)({},l),d=(0,J.useState)(!1),o=d[0],x=d[1],f=(0,J.useState)(!1),p=f[0],y=f[1],h=(0,J.useState)(""),q=h[0],z=h[1],i=(0,J.useState)(0),s=i[0],A=i[1],j=(0,J.useState)([]),t=j[0],B=j[1],u=c.textLocale,v=c.imageLocale,w=c.brillenPath,k=w.filter(function(a){return"orderpaymentprocess"===a.type}),a=e.Z.getTranslaionArray(u,v);(0,J.useEffect)(function(){(b=(0,n.Z)(m().mark(function a(){var b;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return x(!0),a.next=3,(0,g.hJ)(gl);case 3:(b=a.sent).success&&b.data&&B(b.data),x(!1);case 6:case"end":return a.stop()}},a)})),function(){return b.apply(this,arguments)})();var b,a={};a.type="pageview_order",a.customerId=void 0!==cF.Z.get("customerid")?cF.Z.get("customerid"):"",a.source="",a.slug=window.location.toString(),(0,aj.nj)(gl,"eventtrack",a)},[]);var C=function(b,c){y(!0),z(b),A(c);var a={};a.type="paybutton_click",a.customerId=void 0!==cF.Z.get("customerid")?cF.Z.get("customerid"):"",a.source=b,a.slug=window.location.toString(),(0,aj.nj)(gl,"eventtrack",a)},D=function(b,c){var a={};a.type="invoicebutton_click",a.customerId=void 0!==cF.Z.get("customerid")?cF.Z.get("customerid"):"",a.source=c,a.slug=window.location.toString(),(0,aj.nj)(gl,"eventtrack",a),window.open(b,"_blank")};return(0,I.jsxs)("div",{className:"w-full md:w-[90%] ml-auto max-md:mx-auto max-md:w-full",children:[o&&(0,I.jsx)(ah.Z,{}),(null==a?void 0:a.comman_banner_desk)&&(0,I.jsx)(gc,{desk:null==a?void 0:a.comman_banner_desk,mbl:null==a?void 0:a.comman_banner_mobile}),a&&(0,I.jsxs)(I.Fragment,{children:["de"===gl?(0,I.jsxs)("div",{children:[(0,I.jsx)(aG.Z,{text:null==a?void 0:a.order_info_title,className:"my-3 !font-semibold",type:"h3"}),(0,I.jsx)(aG.Z,{text:null==a?void 0:a.order_info_subinfo,className:"pb-3",type:"p"})]}):(0,I.jsx)(f6,{prefix:null==a?void 0:a.name_prefix,title:null==a?void 0:a.order_title}),(0,I.jsxs)("div",{className:"flex mt-4 border-b border-black max-md:hidden",children:[(0,I.jsx)("div",{className:"w-1/2 font-semibold",children:null==a?void 0:a.product_title}),(0,I.jsxs)("div",{className:"flex w-1/2",children:[(0,I.jsx)("div",{className:"w-1/2 font-semibold",children:null==a?void 0:a.status_title}),(0,I.jsx)("div",{className:"w-1/2 font-semibold text-center",children:null==a?void 0:a.invoice_title})]})]}),t.map(function(b,c){var d,e,f,g,h,i,j,k,l,m,n,o,p,q,s,t,u,v,w,x,y,z,A,B,E,F;return(0,I.jsxs)("div",{className:"flex border-b border-black max-md:block max-md:px-4 max-md:border-0 ".concat(c%2==0&&"max-md:bg-gray-200"),children:[(0,I.jsx)("div",{className:"hidden py-4 border-b border-black max-md:block ".concat(c%2==0&&"max-md:bg-gray-200"),children:(0,I.jsx)("div",{className:"font-semibold",children:null==a?void 0:a.product_title})}),(0,I.jsxs)("div",{className:"w-1/2 mb-4 mr-6 max-md:w-full max-md:mr-0",children:[(null===(d=b.order_line)|| void 0===d?void 0:d.frame)&&(0,I.jsx)("p",{className:"py-3",children:null==b?void 0:null===(e=b.order_line)|| void 0===e?void 0:null===(f=e.frame)|| void 0===f?void 0:f.name}),(0,I.jsx)("p",{className:"font-semibold",children:null==a?void 0:a.order_no}),(0,I.jsx)("p",{children:null==b?void 0:b.order_id}),(0,I.jsx)(am.r,{href:null==b?void 0:b.order_confirm_pdf,className:"!underline underline-offset-1",target:"_BLANK",children:(0,I.jsx)("p",{className:"font-semibold",children:null==a?void 0:a.download_overview})}),(0,I.jsx)("p",{className:"mt-3 font-semibold",children:null==a?void 0:a.selected_store_title}),"de"===gl||"de-BE"===gl?(0,I.jsxs)("p",{className:"",children:[null==b?void 0:null===(g=b.pickup_store)|| void 0===g?void 0:g.name,", ",null==b?void 0:null===(h=b.pickup_store)|| void 0===h?void 0:h.street," ",null==b?void 0:null===(i=b.pickup_store)|| void 0===i?void 0:i.street2,(0,I.jsx)("br",{}),null==b?void 0:null===(j=b.pickup_store)|| void 0===j?void 0:j.zip,", ",null==b?void 0:null===(k=b.pickup_store)|| void 0===k?void 0:k.city," ",(0,I.jsx)("br",{})]}):"ja"===gl?(0,I.jsxs)("p",{className:"",children:[null==b?void 0:null===(l=b.pickup_store)|| void 0===l?void 0:l.name,", ",null==b?void 0:null===(m=b.pickup_store)|| void 0===m?void 0:m.zip,","," ",null==b?void 0:null===(n=b.pickup_store)|| void 0===n?void 0:n.city,(0,I.jsx)("br",{}),null==b?void 0:null===(o=b.pickup_store)|| void 0===o?void 0:o.street," ",null==b?void 0:null===(p=b.pickup_store)|| void 0===p?void 0:p.street2,(0,I.jsx)("br",{})]}):(0,I.jsxs)("p",{className:"",children:[null==b?void 0:null===(q=b.pickup_store)|| void 0===q?void 0:q.name,", ",null==b?void 0:null===(s=b.pickup_store)|| void 0===s?void 0:s.street," ",(0,I.jsx)("br",{}),null==b?void 0:null===(t=b.pickup_store)|| void 0===t?void 0:t.street2,", ",null==b?void 0:null===(u=b.pickup_store)|| void 0===u?void 0:u.zip," ",(0,I.jsx)("br",{}),null==b?void 0:null===(v=b.pickup_store)|| void 0===v?void 0:v.city]})]}),(0,I.jsx)("div",{className:"hidden mt-4 max-md:block ".concat(c%2==0&&"max-md:bg-gray-200"),children:(0,I.jsx)("div",{className:"font-semibold",children:null==a?void 0:a.status_title})}),(0,I.jsxs)("div",{className:"flex w-1/2 ml-6 max-md:block max-md:ml-0 max-md:w-full",children:[(0,I.jsx)("div",{className:"w-1/2 max-md:w-full max-md:pl-6",children:(0,I.jsxs)("div",{className:"",children:[b.order_state.some(function(a){return"Submit"===a.state})?(0,I.jsx)("div",{className:"relative vrl-order-before",children:(0,I.jsxs)("div",{className:"mt-4 after:border-l-[3px] after:border-brand after:border-dotted after:content-[''] after:absolute after:w-[3px] after:top-[25px] after:bottom-[-35px] after:left-[-15px] after:ml-[-5px]",children:[(0,I.jsx)("p",{className:"text-sm text-brand",children:r()(null===(w=b.order_state.find(function(a){return"Submit"===a.state}))|| void 0===w?void 0:w.state_date).format("DD/MM/YYYY")}),(0,I.jsx)("p",{className:"text-sm uppercase text-brand",children:null==a?void 0:a.order_submit_label})]})}):(0,I.jsx)("div",{className:"relative vrl-order-before vrl-order-before-disable",children:(0,I.jsx)("p",{className:"mt-4 text-sm text-[#D0D0D0] uppercase after:border-l-[3px] after:border-brand after:border-dotted after:content-[''] after:absolute after:w-[3px] after:top-[25px] after:bottom-[-35px] after:left-[-15px] after:ml-[-5px]",children:null==a?void 0:a.order_submit_label})}),b.order_state.some(function(a){return"Cancel"===a.state})?(0,I.jsx)("div",{className:"relative vrl-order-before",children:(0,I.jsxs)("div",{className:"mt-4",children:[(0,I.jsx)("p",{className:"text-sm text-brand",children:r()(null===(x=b.order_state.find(function(a){return"Cancel"===a.state}))|| void 0===x?void 0:x.state_date).format("DD/MM/YYYY")}),(0,I.jsx)("p",{className:"text-sm uppercase text-brand",children:null==a?void 0:a.order_cancel_label})]})}):(0,I.jsxs)(I.Fragment,{children:[b.order_state.some(function(a){return"Export"===a.state})?(0,I.jsx)("div",{className:"relative vrl-order-before",children:(0,I.jsxs)("div",{className:"mt-4 after:border-l-[3px] after:border-brand after:border-dotted after:content-[''] after:absolute after:w-[3px] after:top-[25px] after:bottom-[-35px] after:left-[-15px] after:ml-[-5px]",children:[(0,I.jsx)("p",{className:"text-sm text-brand",children:r()(null===(y=b.order_state.find(function(a){return"Export"===a.state}))|| void 0===y?void 0:y.state_date).format("DD/MM/YYYY")}),(0,I.jsx)("p",{className:"text-sm uppercase text-brand",children:null==a?void 0:a.order_inprocess_label})]})}):(0,I.jsx)("div",{className:"relative vrl-order-before vrl-order-before-disable",children:(0,I.jsx)("p",{className:"mt-4 text-sm text-[#D0D0D0] uppercase after:border-l-[3px] after:border-brand after:border-dotted after:content-[''] after:absolute after:w-[3px] after:top-[25px] after:bottom-[-35px] after:left-[-15px] after:ml-[-5px]",children:null==a?void 0:a.order_inprocess_label})}),b.order_state.some(function(a){return"Shipping"===a.state})?(0,I.jsx)("div",{className:"relative vrl-order-before",children:(0,I.jsxs)("div",{className:"mt-4 ".concat(b.order_state.some(function(a){return"Order Ready"===a.state})&&"after:border-l-[3px] after:border-brand after:border-dotted after:content-[''] after:absolute after:w-[3px] after:top-[25px] after:bottom-[-35px] after:left-[-15px] after:ml-[-5px]"),children:[(0,I.jsx)("p",{className:"text-sm text-brand",children:r()(null===(z=b.order_state.find(function(a){return"Shipping"===a.state}))|| void 0===z?void 0:z.state_date).format("DD/MM/YYYY")}),(0,I.jsx)("p",{className:"text-sm uppercase text-brand",children:null==a?void 0:a.order_store_label})]})}):(0,I.jsx)("div",{className:"relative vrl-order-before vrl-order-before-disable",children:(0,I.jsx)("p",{className:"mt-4 text-sm text-[#D0D0D0] uppercase".concat(b.order_state.some(function(a){return"Order Ready"===a.state})&&"after:border-l-[3px] after:border-brand after:border-dotted after:content-[''] after:absolute after:w-[3px] after:top-[25px] after:bottom-[-35px] after:left-[-15px] after:ml-[-5px]"),children:null==a?void 0:a.order_store_label})}),b.order_state.some(function(a){return"Order Ready"===a.state})?(0,I.jsx)("div",{className:"relative vrl-order-before",children:(0,I.jsxs)("div",{className:"mt-4",children:[(0,I.jsx)("p",{className:"text-sm text-brand",children:r()(null===(A=b.order_state.find(function(a){return"Order Ready"===a.state}))|| void 0===A?void 0:A.state_date).add(5,"days").format("DD/MM/YYYY")}),(0,I.jsx)("p",{className:"text-sm uppercase text-brand",children:null==a?void 0:a.order_ready_label})]})}):(0,I.jsx)(I.Fragment,{}),b.order_state.some(function(a){return"Delivered"===a.state})?(0,I.jsx)("div",{className:"relative vrl-order-before",children:(0,I.jsxs)("div",{className:"mt-4",children:[(0,I.jsx)("p",{className:"text-sm text-brand",children:r()(null===(B=b.order_state.find(function(a){return"Delivered"===a.state}))|| void 0===B?void 0:B.state_date).format("DD/MM/YYYY")}),(0,I.jsx)("p",{className:"text-sm uppercase text-brand",children:null==a?void 0:a.order_deliver_label})]})}):(0,I.jsx)(I.Fragment,{})]})]})}),(0,I.jsx)("div",{className:"hidden py-4 max-md:block ".concat(c%2==0&&"max-md:bg-gray-200"),children:(0,I.jsx)("div",{className:"font-semibold",children:null==a?void 0:a.invoice_title})}),(0,I.jsxs)("div",{className:"w-1/2 max-md:w-full",children:[(null===(E=null==b?void 0:b.invoice_pdf_list[0])|| void 0===E?void 0:E.link)&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("div",{className:"block w-[50px] mt-3 mx-auto max-md:m-0",children:(0,I.jsx)("div",{className:"cursor-pointer",onClick:function(){return D(null==b?void 0:b.invoice_pdf_list[0].link,null==b?void 0:b.order_id)},children:(null==a?void 0:a.download_invoice_image)&&(0,I.jsx)(fQ.Z,{image:a.download_invoice_image,layout:"responsive"})})}),(0,I.jsx)("div",{className:"cursor-pointer",onClick:function(){return D(null==b?void 0:b.invoice_pdf_list[0].link,null==b?void 0:b.order_id)},children:(0,I.jsx)("p",{className:"!underline underline-offset-1 text-center max-md:py-3 max-md:text-left",children:null==a?void 0:a.download_invoice})})]}),("pl"===gl||"it"===gl||"it-CH"===gl)&&(0,I.jsx)("div",{children:((null==b?void 0:b.group)!==""&&(null==b?void 0:b.main_order)=== !0||(null==b?void 0:b.group)===""||(null==b?void 0:b.group)===null||(null==b?void 0:b.group)=== !1||(null==b?void 0:b.group)&&((null==b?void 0:b.main_order)=== !1||(null==b?void 0:b.main_order)===null))&&(null==b?void 0:b.prepay)&&(null==b?void 0:null===(F=b.prepay)|| void 0===F?void 0:F.rest_amount)>0&&(0,I.jsx)("div",{onClick:function(){var a;return C(b.order_id,null==b?void 0:null===(a=b.prepay)|| void 0===a?void 0:a.rest_amount)},className:"mt-2 font-semibold text-center underline cursor-pointer text-accent",children:null==a?void 0:a.click_for_remain_pay})})]})]})]},c)}),(0,I.jsx)("p",{className:"mt-4",children:null==a?void 0:a.we_notify_exactly}),a&&(0,I.jsx)(fU,{classsneed:"mt-3 md:mt-5",product:"Orders",imgOne:null==a?void 0:a.footer_img1,imgTwo:null==a?void 0:a.footer_img2})]}),p&&(0,I.jsx)(gk,{country:gl,paynow:null==a?void 0:a.paynowcta,orderId:q,price:s,paymentProcessPath:"/".concat(null==k?void 0:null===(b=k[0])|| void 0===b?void 0:b.slug),onClose:function(){y(!1),z(""),A(0)}})]})}),gn=b.Z.country,go=0,gp=0;function gq(a){var b,c,d,e=a.paymentIntentClientSecret,h=a.paymentIntentPass,f=a.orderData,i=a.successURL,j=a.failURL,g=(0,dM.useStripe)(),k=(b=(0,n.Z)(m().mark(function a(b,c,d,e,f,g){var h;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return(h={}).type=b,h.stripestatus=c,h.ostatus=d,h.pstatus=e,h.orderId=f,h.customerId=void 0!==(0,_.getCookie)("customerid")?(0,_.getCookie)("customerid"):"",h.info=g,a.next=10,(0,aj.vV)(gn,"paymentlog",h);case 10:return a.abrupt("return",!0);case 11:case"end":return a.stop()}},a)})),function(a,c,d,e,f,g){return b.apply(this,arguments)}),l=(c=(0,n.Z)(m().mark(function a(b,c,d,e){var f,g,h,i,j,n,o;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return f=b.order_state,g=b.pay_state,a.next=4,k("2","",f,g,b.order_number,"Success_Inside");case 4:if("f_paid"!==g){a.next=8;break}K().push(d),a.next=26;break;case 8:if(!(("draft"===f||"pending"===f||"sale"===f)&&("n_paid"===g||"p_paid"===g))){a.next=25;break}return i=gn,j=void 0!==(0,_.getCookie)("customerid")?(0,_.getCookie)("customerid"):"","de"===gn&&j.startsWith("AT-")&&(i="at"),(n={}).type=2,n.orderId=b.order_number,n.customerId=j,n.amount=null==b?void 0:null===(h=b.prepay)|| void 0===h?void 0:h.rest_amount,n.payReference=c,a.next=21,(0,aj.vV)(i,"reorderpayment",n);case 21:1===(o=a.sent).code?K().push(d):(go+=1)>=3?K().push(e):l(b,c,d,e),a.next=26;break;case 25:K().push(e);case 26:case"end":return a.stop()}},a)})),function(a,b,d,e){return c.apply(this,arguments)}),o=(d=(0,n.Z)(m().mark(function a(b,c,d,f){var h,i,j;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,g.handleNextAction(e);case 2:if(i=(h=a.sent).error,j=h.paymentIntent,!i){a.next=8;break}return K().push(f),a.abrupt("return");case 8:if("succeeded"!==j.status){a.next=12;break}l(b,c,d,f),a.next=20;break;case 12:if(!((gp+=1)>=3)){a.next=19;break}return a.next=16,k("3",j.status,b.order_state,b.pay_state,b.order_number,"Fail_Case");case 16:K().push(f),a.next=20;break;case 19:o(b,c,d,f);case 20:case"end":return a.stop()}},a)})),function(a,b,c,e){return d.apply(this,arguments)});return J.useEffect(function(){var a,b=(a=(0,n.Z)(m().mark(function a(){var b;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,a.next=3,g.retrievePaymentIntent(e);case 3:return b=a.sent.paymentIntent,a.next=6,k("1",b.status,f.order_state,f.pay_state,f.order_number,"");case 6:a.t0=b.status,a.next="succeeded"===a.t0?9:"processing"===a.t0?9:"requires_action"===a.t0?11:"requires_payment_method"===a.t0?13:15;break;case 9:return l(f,h,i,j),a.abrupt("break",17);case 11:return o(f,h,i,j),a.abrupt("break",17);case 13:case 15:return K().push(j),a.abrupt("break",17);case 17:a.next=22;break;case 19:a.prev=19,a.t1=a.catch(0),K().push(j);case 22:case"end":return a.stop()}},a,null,[[0,19]])})),function(){return a.apply(this,arguments)});g&&b()},[g,e,f]),(0,I.jsx)("div",{className:"container mx-auto"})}var gr=b.Z.country,gs="pk_live_51LawxlGEQ2wA5MH60EoyoOtZfXGucZNi2MNaQvKcz2eQXuIoSoc1PU5pjUjtIAtrnJ8ZgNviqnjk12aqQ1cP6eze00SATjJaCa",gt="",gu=(0,c.Q)(function(k){var c=(0,aw.Z)({},k),d=(0,J.useState)([]),f=d[0],q=d[1],h=(0,J.useState)(""),i=h[0],r=h[1],j=(0,J.useState)(""),l=j[0],s=j[1],o=c.textLocale,p=c.imageLocale,b=e.Z.getTranslaionArray(o,p);return(0,J.useEffect)(function(){var b,c=e.Z.getUrlParam("neworderid"),d=e.Z.getUrlParam("payment_intent"),f=e.Z.getUrlParam("payment_intent_client_secret");(b=(0,n.Z)(m().mark(function b(){var e,h,i,j;return m().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.next=2,a.e(465).then(a.bind(a,54465));case 2:return e=b.sent.loadStripe,h=gr,"de"===gr&&(i=void 0!==(0,_.getCookie)("customerid")?(0,_.getCookie)("customerid"):"").startsWith("AT-")&&(h="at",gs="pk_live_51ONaRDEEK3SU12P3HbTwx0rsYCHa35kWMng1BYOhi4S49hzD91KSdB3O66WVLyudSdB2jJ5fDtRTxd12qCsul90T00LFKz1STW"),b.next=7,e(gs);case 7:return gt=b.sent,b.next=10,(0,g.Z0)(h,c);case 10:(j=b.sent).success&&j.data&&(q(j.data),r(f),s(d));case 12:case"end":return b.stop()}},b)})),function(){return b.apply(this,arguments)})()},[]),(0,I.jsxs)("div",{className:"w-full md:w-[90%] ml-auto max-md:mx-auto max-md:w-full",children:[(0,I.jsx)(ah.Z,{}),b&&f&&(0,I.jsxs)(I.Frag
1ment,{children:[(0,I.jsx)(aG.Z,{text:null==b?void 0:b.payment_process,type:"h2",className:"mt-14 text-brand"}),i&&(0,I.jsx)(dM.Elements,{stripe:gt,children:(0,I.jsx)(gq,{paymentIntentClientSecret:i,paymentIntentPass:l,orderData:f,successURL:null==b?void 0:b.success_url,failURL:null==b?void 0:b.fail_url})})]})]})}),gv=b.Z.country,gw=(0,c.Q)(function(c){var b=(0,aw.Z)({},c),d=b.textLocale,f=b.imageLocale,a=e.Z.getTranslaionArray(d,f);return(0,J.useEffect)(function(){var a={};a.type="pageview_fwf",a.customerId=void 0!==cF.Z.get("customerid")?cF.Z.get("customerid"):"",a.source="",a.slug=window.location.toString(),(0,aj.nj)(gv,"eventtrack",a)},[]),(0,I.jsxs)("div",{className:"w-full md:w-[90%] ml-auto max-md:mx-auto",children:[(null==a?void 0:a.comman_banner_desk)&&(0,I.jsx)(gc,{desk:null==a?void 0:a.comman_banner_desk,mbl:null==a?void 0:a.comman_banner_mobile,classData:""}),(0,I.jsx)("div",{className:"hidden md:block",children:(null==a?void 0:a.friend_banner)&&(0,I.jsx)(ae.ZP,{image:null==a?void 0:a.friend_banner})}),a&&(0,I.jsx)(fU,{classsneed:"md:mt-5 mb-5",product:"MyFriend",imgOne:null==a?void 0:a.footer_img1,imgTwo:null==a?void 0:a.footer_img2})]})}),gx=a(96445),C=b.Z.country,gy=C,gz=(0,c.Q)(function(at){var c,d,au,av,f=(0,aw.Z)({},at),k=(0,J.useState)(!1),ax=k[0],aX=k[1],l=(0,J.useState)(!1),o=l[0],aY=l[1],p=(0,J.useState)(!1),aZ=p[0],a$=p[1],q=(0,J.useState)(""),h=q[0],a_=q[1],s=(0,J.useState)(""),t=s[0],a0=s[1],u=(0,J.useState)(""),a1=u[0],a2=u[1],v=(0,J.useState)(""),ay=v[0],a3=v[1],w=(0,J.useState)(""),az=w[0],a4=w[1],x=(0,J.useState)(""),a5=x[0],a6=x[1],y=(0,J.useState)(""),z=y[0],a7=y[1],A=(0,J.useState)(""),B=A[0],a8=A[1],D=(0,J.useState)(""),E=D[0],a9=D[1],F=(0,J.useState)(""),G=F[0],ba=F[1],H=(0,J.useState)(""),L=H[0],bb=H[1],M=(0,J.useState)(!1),aA=M[0],bc=M[1],N=(0,J.useState)(!1),aB=N[0],bd=N[1],O=(0,J.useState)(!1),aC=O[0],be=O[1],P=(0,J.useState)(!1),aD=P[0],bf=P[1],Q=(0,J.useState)(!1),aE=Q[0],bg=Q[1],R=(0,J.useState)(!1),aF=R[0],bh=R[1],S=(0,J.useState)(!1),aG=S[0],bi=S[1],T=(0,J.useState)(!1),aH=T[0],bj=T[1],U=(0,J.useState)(!1),aI=U[0],bk=U[1],V=(0,J.useState)(!1),aJ=V[0],bl=V[1],W=(0,J.useState)(!1),X=W[0],bm=W[1],Y=(0,J.useState)(""),bn=Y[0],bo=Y[1],Z=(0,J.useState)(""),aK=Z[0],bp=Z[1],$=(0,J.useState)(""),_=$[0],bq=$[1],aa=(0,J.useState)([]),i=aa[0],br=aa[1],ab=(0,J.useState)(0),bs=ab[0],bt=ab[1],ac=(0,J.useState)(0),ad=ac[0],bu=ac[1],aj=(0,J.useState)([]),ak=aj[0],bv=aj[1],al=(0,J.useState)(null),bw=al[0],bx=al[1],an=(0,J.useState)(""),by=an[0],bz=an[1],ao=(0,J.useState)(0),ap=ao[0],bA=a
1o[1],aq=(0,J.useState)(0),aL=aq[0],bB=aq[1],j="Euro",aM=f.textLocale,aN=f.imageLocale,aO=f.brillenPath,a=e.Z.getTranslaionArray(aM,aN),b=aO.filter(function(a){return"family"===a.type}),bC=function(a,d){var b=a.findIndex(function(a){return a.customer_id===d});if(-1!==b){var c=(0,cq.Z)(a.splice(b,1),1)[0];a.unshift(c)}return a},bD=(au=(0,n.Z)(m().mark(function a(b){var c,d;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return c={type:1,customerId:b},a.next=3,(0,ai.nP)(gy,c);case 3:1===(d=a.sent).code?(bu(d.result.length),bv(d.result)):(bu(0),bv([]));case 5:case"end":return a.stop()}},a)})),function(a){return au.apply(this,arguments)}),bE=(av=(0,n.Z)(m().mark(function a(b,c){var d,e,f,h,i;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return aX(!0),(d={}).groupcode=b,a.next=5,(0,g.Bj)(gy,d);case 5:return(e=a.sent).success&&e.data&&(bt(null===(f=null==e?void 0:e.data[0])|| void 0===f?void 0:f.member.length),i=(h=bC(null==e?void 0:e.data[0].member,c)).reduce(function(a,b){return a+b.customer_points},0),bA(i),br(h)),aX(!1),a.abrupt("return",!0);case 9:case"end":return a.stop()}},a)})),function(a,b){return av.apply(this,arguments)});(0,J.useEffect)(function(){var b;aX(!0),(b=(0,n.Z)(m().mark(function b(){var c,d;return m().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:return b.next=2,(0,g.lF)(C);case 2:if(!(c=b.sent).success){b.next=22;break}if(d=c.data,"de"===C&&(null==d?void 0:d.country)==="AT"&&(gy="at"),a_(null==d?void 0:d.family_group_code),a0(null==d?void 0:d.family_group_name),!((null==d?void 0:d.family_group_code)!=="")){b.next=16;break}return bq(null==d?void 0:d.family_group_name),b.next=12,bE(null==d?void 0:d.family_group_code,null==d?void 0:d.customer_id);case 12:return b.next=14,bD(null==d?void 0:d.customer_id);case 14:b.next=17;break;case 16:bp("".concat(null==a?void 0:a.family_of," ").concat(null==d?void 0:d.first_name)),bB(null==d?void 0:d.points);case 17:a2(null==d?void 0:d.customer_id),a3(null==d?void 0:d.first_name),a4(null==d?void 0:d.last_name),a6(null==d?void 0:d.email),bz(null==d?void 0:d.zip);case 22:aX(!1);case 23:case"end":return b.stop()}},b)})),function(){return b.apply(this,arguments)})()},[]);var aP,aQ,aR,aS,aT,aU,aV,bF=function(){bg(!1),bi(!1),bj(!1),bl(!1),bk(!1),bc(!1),bd(!1),be(!1),bf(!1)},bG=function(a){aY(!1),bx(a===bw?null:a)},bH=(aP=(0,n.Z)(m().mark(function a(b,c){var d;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return aX(!0),d={type:7,token:b,email:c},a.next=4,(0,ai.nP)(gy,d);case 4:aX(!1);case 5:case"end":return a.stop()}},a)})),function(a,b){return aP.apply(this,arguments)}),bI=(aQ=(0,n.Z)(m().mark(function a(b){var c,d,e,f;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return(c={}).customerid=E.toLowerCase(),a.next=4,(0,ai.I5)(gy,c);case 4:if(!((d=a.sent).success&&d.data.length>0)){a.next=9;break}bl(!0),aX(!1),a.next=20;break;case 9:if(""!==h){a.next=13;break}bo(b),aY(!1),bm(!0),aX(!1),a.next=20;break;case 13:return(e={}).group_code=h,e.group_member_id=[b],a.next=18,(0,ai.YO)(gy,e);case 18:(f=a.sent).success&&f.data?window.location.reload():(bg(!0),aX(!1));case 20:case"end":return a.stop()}},a)})),function(a){return aQ.apply(this,arguments)}),bJ=(aR=(0,n.Z)(m().mark(function a(){var b,c,d,e;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return(c={}).customer_id="",c.email=E.toLowerCase(),c.first_name=z,c.last_name=B,""!==L&&(c.birthday=r()(L,"DD/MM/YYYY").format("YYYY-MM-DD")),c.country=gy.toUpperCase(),""!==G&&(c.phone=G),a.next=11,(0,g._f)(gy,gy,c);case 11:if(!((d=a.sent).success&&(null==d?void 0:null===(b=d.data)|| void 0===b?void 0:b.customer_id))){a.next=18;break}return a.next=16,bI(null==d?void 0:null===(e=d.data)|| void 0===e?void 0:e.customer_id);case 16:a.next=19;break;case 18:bg(!0),aX(!1);case 19:case"end":return a.stop()}},a)})),function(){return aR.apply(this,arguments)}),bM=(aS=(0,n.Z)(m().mark(function a(b,c){var d,e,f,g;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(!(""!==b)){a.next=25;break}if(aX(!0),1!==c){a.next=13;break}return d={type:6,id:b},a.next=6,(0,ai.nP)(gy,d);case 6:if(1!==(e=a.sent).code){a.next=11;break}return a.next=10,bD(a1);case 10:bx(null);case 11:a.next=22;break;case 13:return(f={}).group_code=h,f.group_member_id=[b],a.next=18,(0,ai.H7)(gy,f);case 18:if(!((g=a.sent).success&&g.data)){a.next=22;break}return a.next=22,bE(h,a1);case 22:aX(!1),a.next=26;break;case 25:bx(null);case 26:return a.abrupt("return",!0);case 27:case"end":return a.stop()}},a)})),function(a,b){return aS.apply(this,arguments)}),bN=(aT=(0,n.Z)(m().mark(function a(b){var c,d,e,f,g,i,j;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(aX(!0),!(1===b||aZ)){a.next=32;break}if(c=h,""!==h){a.next=11;break}return(d={}).name=_||ay,d.group_member_id=[a1],a.next=9,(0,ai.op)(gy,d);case 9:(e=a.sent).success&&e.data&&(c=e.data.family_group_code);case 11:if(!(""!==c)){a.next=29;break}return(f={}).type=2,f.source=1,f.groupcode=c,f.groupname=_||ay,f.customerId=a1,f.email=E,f.fname=z,f.lname=B,f.phone=G,f.birthdate=r()(L,"DD/MM/YYYY").format("YYYY-MM-DD"),a.next=25,(0,ai.nP)(gy,f);case 25:1===(g=a.sent).code?window.location.reload():(bg(!0),aX(!1)),a.next=30;break;case 29:bg(!0),aX(!1);case 30:a.next=39;break;case 32:return(i={}).name=_||ay,i.group_member_id=[a1,bn],a.next=37,(0,ai.op)(gy,i);case 37:(j=a.sent).success&&j.data?window.location.reload():(bg(!0),aX(!1));case 39:case"end":return a.stop()}},a)})),function(a){return aT.apply(this,arguments)}),bO=(aU=(0,n.Z)(m().mark(function a(){var b,c,d;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(!(""!==E)){a.next=16;break}return aX(!0),a.next=4,(0,ai.Wi)(gy,E);case 4:if(!((b=a.sent).success&&b.data.success)){a.next=9;break}bJ(),a.next=16;break;case 9:return(c={}
1).type=3,c.email=E,a.next=14,(0,ai.nP)(gy,c);case 14:1===(d=a.sent).code?(aY(!1),""===h?(bm(!0),a$(!0)):bN(1),aX(!1)):(bl(!0),aX(!1));case 16:case"end":return a.stop()}},a)})),function(){return aU.apply(this,arguments)}),aW=(aV=(0,n.Z)(m().mark(function a(){var b,c,d,e,f,h,i;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(bF(),E.trim().toLowerCase()!==a5.toLowerCase()){a.next=4;break}return bk(!0),a.abrupt("return",!1);case 4:if(""!==z.trim()){a.next=7;break}return bc(!0),a.abrupt("return",!1);case 7:if(""!==B.trim()){a.next=10;break}return bd(!0),a.abrupt("return",!1);case 10:if(""!==E){a.next=13;break}return be(!0),a.abrupt("return",!1);case 13:if(/^(([^<>()\\[\]\\.,;:\s@"]+(\.[^<>()\\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(E)){a.next=16;break}return be(!0),a.abrupt("return",!1);case 16:if(!(G.length<6||G.length>16)){a.next=19;break}return bf(!0),a.abrupt("return",!1);case 19:if(b=0,""!==L&&(b=(d=(c=r()(L,"DD/MM/YYYY",!0)).isValid())?1:0),!(""===L||0===b)){a.next=24;break}return bh(!0),a.abrupt("return",!1);case 24:return aX(!0),(e={}).userName=E.toLowerCase(),e.type=2,a.next=30,(0,g.Lx)(gy,e);case 30:if(!((f=a.sent).success&&1===f.data.length)){a.next=42;break}if(!((h=f.data[0]).first_name.toLowerCase()===z.toLowerCase()&&h.last_name.toLowerCase()===B.toLowerCase())){a.next=39;break}return i=h.customer_id,a.next=37,bI(i);case 37:a.next=40;break;case 39:bj(!0),aX(!1);case 40:a.next=43;break;case 42:f.success&&f.data.length>=2?(bi(!0),aX(!1)):(aX(!1),bO());case 43:return a.abrupt("return",!0);case 44:case"end":return a.stop()}},a)})),function(){return aV.apply(this,arguments)}),ar=function(){var b=null==a?void 0:a.pnameforbook,c="";"de"===C&&4===by.length&&(c="&at=1");var d="?utm_source=mybrillen&utm_medium=direct&utm_campaign=terminbuchung-mybrillen&product=".concat(b,"&pname=").concat(b,"&zip=").concat(by,"&isDirectLead=1").concat(c);K().push("thank-you-zip-new"+d)},as=function(a){bh(!1),8===a.keyCode&&("/"===L.charAt(2)||"/"===L.charAt(5))&&bb(L.slice(0,-1))};return(0,I.jsxs)("div",{className:"w-full md:w-[90%] ml-auto max-md:mx-auto",children:[ax&&(0,I.jsx)(ah.Z,{}),(0,I.jsx)("div",{className:"hidden md:block",children:(null==a?void 0:a.family_no_desk)&&(0,I.jsx)(am.r,{onClick:ar,className:"w-full",children:(0,I.jsx)(ae.ZP,{image:null==a?void 0:a.family_no_desk})})}),(0,I.jsx)("div",{className:"block md:hidden",children:(null==a?void 0:a.family_no_mbl)&&(0,I.jsx)(am.r,{onClick:ar,className:"w-full",children:(0,I.jsx)(ae.ZP,{image:null==a?void 0:a.family_no_mbl})})}
1),""!==h&&(0,I.jsxs)("div",{className:"my-3 md:flex md:gap-5",children:[(0,I.jsx)("div",{className:"w-full md:w-[65%]",children:(0,I.jsxs)("p",{className:"",children:[(0,I.jsx)("span",{className:"font-semibold",children:null==b?void 0:null===(c=b[0])|| void 0===c?void 0:c.title})," ",(0,I.jsxs)("span",{className:"font-semibold text-accent",children:[t,", "]}),null==a?void 0:a.total_credit_msg_one," ",ap," ",j," ",null==a?void 0:a.total_credit_msg_two]})}),(0,I.jsx)("div",{className:"w-full md:w-[35%] max-md:my-3",children:(0,I.jsxs)("div",{className:"p-3 border-4 rounded-md border-brand",children:[(0,I.jsxs)("p",{className:"font-medium text-center text-accent",children:[t," ",(0,I.jsx)("span",{className:"font-medium text-black",children:null==a?void 0:a.credit})]}),(0,I.jsxs)("p",{className:"font-bold text-center uppercase text-h2 text-brand",children:[ap," ",j]})]})})]}),(0,I.jsxs)("div",{className:"text-xl font-semibold text-blck",children:[null==a?void 0:a.member_list_heading," *"]}),(0,I.jsxs)("div",{className:"mt-3",children:[(0,I.jsx)("div",{className:"px-3 py-2 !-mb-2",children:(0,I.jsxs)("div",{className:"flex items-center gap-3 mb-2",children:[(0,I.jsx)("div",{className:"w-[50%] md:w-[75%] font-semibold",children:null==a?void 0:a.nameHeading}),(0,I.jsx)("div",{className:"w-[45%] md:w-[20%] font-semibold",children:null==a?void 0:a.credit}),(0,I.jsx)("div",{className:"w-[5%]"})]})}),""===h&&(0,I.jsx)("div",{className:"px-3 py-2 mb-2 bg-gray-200 rounded-sm",children:(0,I.jsxs)("div",{className:"flex items-center gap-3 mb-2",children:[(0,I.jsxs)("div",{className:"w-[50%] md:w-[75%]",children:[ay," ",az]}),(0,I.jsx)("div",{className:"w-[45%] md:w-[20%] text-accent font-medium",children:"".concat(aL," ").concat(j)}),(0,I.jsx)("div",{className:"w-[5%] text-right mr-3"})]})}),null==i?void 0:i.map(function(b,e){var c=(0,cq.Z)(b.customer_name.split(" "),2),f=c[0],g=c[1],d=!1;return a1!==b.customer_id&&bs>1&&(d=!0),(0,I.jsxs)("div",{className:"px-3 py-2 mb-3 bg-gray-200 rounded-sm",children:[(0,I.jsxs)("div",{className:"flex items-center gap-3",children:[(0,I.jsxs)("div",{className:"w-[50%] md:w-[75%] ".concat(bw===b.customer_id&&"text-gray-300"),children:[f," ",g]}),(0,I.jsx)("div",{className:"w-[45%] md:w-[20%] text-accent font-medium ".concat(bw===b.customer_id&&"!text-gray-300"),children:"".concat(b.customer_points," ").concat(j)}),d?(0,I.jsx)("div",{className:"w-[5%] ".concat(bw===b.customer_id&&"hidden"),children:(0,I.jsx)(gx.Z,{onClick:function(){return bG(b.customer_id)},className:"cursor-pointer w-5 h-5 p-0.5 text-black bg-gray-200 border-black rounded-full border-1"})}):(0,I.jsx)("div",{className:"w-[5%]"})]}),bw===b.customer_id&&(0,I.jsxs)("div",{className:"gap-1 p-3 mt-2 border-red-600 rounded-sm md:flex border-1",children:[(0,I.jsx)("div",{className:"w-full md:w-[65%] font-medium text-red-600",children:null==a?void 0:a.youWantRemove}),(0,I.jsx)("div",{className:"w-1/2 max-md:absolute md:w-[20%] font-medium cursor-pointer text-accent underline",onClick:function(){return bM(b.customer_id,0)},children:null==a?void 0:a.removeNow}),(0,I.jsx)("div",{className:"w-1/2 max-md:w-auto max-md:text-right md:w-[15%] font-medium cursor-pointer text-brand underline text-right",onClick:function(){return bG(null)},children:null==a?void 0:a.cancel})]})]},e)}),null==ak?void 0:ak.map(function(b,c){return(0,I.jsxs)("div",{className:"px-3 py-2 mb-3 bg-gray-200 rounded-sm",children:[(0,I.jsxs)("div",{className:"flex items-center gap-3",children:[(0,I.jsx)("div",{className:"w-[50%] md:w-[75%]",children:(0,I.jsxs)("div",{className:"flex items-center gap-3",children:[(0,I.jsxs)("div",{className:"text-gray-400",children:[b.fname," ",b.lname," "]}),(0,I.jsx)("div",{className:"mt-1 cursor-pointer",onClick:function(){return bH(b.token,b.email)},children:(0,I.jsxs)("div",{className:"relative flex items-center group",children:[(0,I.jsx)(bK(),{loader:bL.vg,src:"resend.png",alt:"Resend Email",width:20,height:20}),(0,I.jsx)("span",{className:"absolute hidden w-[200px] px-2 py-1 mb-2 text-red-700 transform -translate-x-1/2 bg-white border border-black rounded shadow left-1/2 bottom-full group-hover:flex text-center",children:null==a?void 0:a.resend_tip})]})})]})}),(0,I.jsx)("div",{className:"w-[45%] md:w-[20%] text-accent font-medium",children:"".concat(b.credit," ").concat(j)}),(0,I.jsx)("div",{className:"w-[5%] ".concat(bw===b.id&&"hidden"),children:(0,I.jsx)(gx.Z,{onClick:function(){return bG(b.id)},className:"cursor-pointer w-5 h-5 p-0.5 text-black bg-gray-200 border-black rounded-full border-1"})})]}),bw===b.id&&(0,I.jsxs)("div",{className:"gap-1 p-3 mt-2 border-red-600 rounded-sm md:flex border-1",children:[(0,I.jsx)("div",{className:"w-full md:w-[65%] font-medium text-red-600",children:null==a?void 0:a.youWantRemove}),(0,I.jsx)("div",{className:"w-1/2 max-md:absolute md:w-[20%] font-medium cursor-pointer text-accent underline",onClick:function(){return bM(b.id,1)},children:null==a?void 0:a.removeNow}),(0,I.jsx)("div",{className:"w-1/2 max-md:w-auto max-md:text-right md:w-[15%] font-medium cursor-pointer text-brand underline text-right",onClick:function(){return bG(null)},children:null==a?void 0:a.cancel})]})]},c)})]}),X&&(0,I.jsx)("div",{className:"mt-3",children:(0,I.jsxs)("div",{className:"bg-[#85b645] rounded-sm my-3 px-3 md:px-8 py-3",children:[(0,I.jsx)("p",{className:"mb-1 font-semibold text-white",children:null==a?void 0:a.group_name_title}),(0,I.jsxs)("div",{className:"relative mt-5",children:[(0,I.jsx)("input",{type:"text",name:"groupnamenew",value:aK||_,onChange:function(a){bp(""),bq(a.target.value),bg(!1)},className:"w-full h-10 border-white rounded-sm cursor-pointer border-1"}),(0,I.jsx)("div",{className:"absolute top-1 right-2",children:_.length>=3?(0,I.jsx)(bK(),{loader:bL.vg,src:"family/checkIcon.png",alt:"User",width:10,height:10}):(0,I.jsx)(bK(),{loader:bL.vg,src:"family/reqIcon.png",alt:"User",width:8,height:8})})]}),(0,I.jsx)("p",{className:"text-white text-md",children:null==a?void 0:a.group_name_suggest}),(0,I.jsx)("div",{className:"flex justify-center mt-5",children:(0,I.jsx)(af.z,{className:"w-full md:w-auto !rounded-md",slim:!1,onClick:function(){return bN(0)},intent:"primary",children:null==a?void 0:a.group_submit})})]})}),ad>=1&&(0,I.jsxs)("div",{className:"bg-[#CEFF8F] rounded-sm p-3",children:[(0,I.jsxs)("div",{children:[null==a?void 0:a.pendinginfo_one," ",(0,I.jsx)("strong",{children:null==a?void 0:a.pendinginfo_two})]}),(0,I.jsx)("div",{className:"mt-2",children:(0,I.jsx)("strong",{children:null==a?void 0:a.pendinginfo_three})})]}),i.length+ad<=4&&!o&&!X&&(0,I.jsx)("div",{className:"flex mt-3",children:(0,I.jsx)(af.z,{className:"w-full md:w-auto !rounded-md",slim:!1,onClick:function(){aY(!0)},intent:"primary",children:""===h?null==a?void 0:a.add_member:null==a?void 0:a.cta_add_extra_
1newmember})}),o&&(0,I.jsx)("div",{className:"mt-3",children:(0,I.jsxs)("div",{className:"bg-[#85b645] rounded-sm mt-3 px-3 md:px-8 py-3",children:[(0,I.jsx)("p",{className:"mb-1 font-semibold text-white",children:null==a?void 0:a.addMemberHeading}),(0,I.jsxs)("div",{className:"flex gap-5",children:[(0,I.jsx)("div",{className:"flex-1 w-full",children:(0,I.jsxs)("div",{className:"relative",children:[(0,I.jsx)("input",{type:"text",name:"firstname",value:z,placeholder:null==a?void 0:a.fnameHeading,onChange:function(a){a7(a.target.value.trim()),bF()},className:"w-full h-10 border-white rounded-sm border-1"}),(0,I.jsx)("div",{className:"absolute top-1 right-2",children:z.length>=3?(0,I.jsx)(bK(),{loader:bL.vg,src:"family/checkIcon.png",alt:"User",width:10,height:10}):(0,I.jsx)(bK(),{loader:bL.vg,src:"family/reqIcon.png",alt:"User",width:8,height:8})})]})}),(0,I.jsx)("div",{className:"flex-1 w-full",children:(0,I.jsxs)("div",{className:"relative",children:[(0,I.jsx)("input",{type:"text",name:"lastname",value:B,placeholder:null==a?void 0:a.lnameHeading,onChange:function(a){a8(a.target.value.trim()),bF()},className:"w-full h-10 border-white rounded-sm border-1"}),(0,I.jsx)("div",{className:"absolute top-1 right-2",children:B.length>=3?(0,I.jsx)(bK(),{loader:bL.vg,src:"family/checkIcon.png",alt:"User",width:10,height:10}):(0,I.jsx)(bK(),{loader:bL.vg,src:"family/reqIcon.png",alt:"User",width:8,height:8})})]})})]}),(0,I.jsxs)("div",{className:"flex gap-5 mt-3",children:[(0,I.jsx)("div",{className:"flex-1 w-full",children:(0,I.jsxs)("div",{className:"relative",children:[(0,I.jsx)("input",{type:"text",name:"email",value:E,placeholder:null==a?void 0:a.emailHeading,onChange:function(a){a9(a.target.value.trim()),bF()},className:"w-full h-10 border-white rounded-sm border-1"}),(0,I.jsx)("div",{className:"absolute top-1 right-2",children:E.includes("@")?(0,I.jsx)(bK(),{loader:bL.vg,src:"family/checkIcon.png",alt:"User",width:10,height:10}):(0,I.jsx)(bK(),{loader:bL.vg,src:"family/reqIcon.png",alt:"User",width:8,height:8})})]})}),(0,I.jsx)("div",{className:"flex-1 w-full",children:(0,I.jsxs)("div",{className:"relative",children:[(0,I.jsx)("input",{type:"text",name:"phone",value:G,placeholder:null==a?void 0:a.mobileHeading,onChange:function(a){ba(a.target.value),bF()},className:"w-full h-10 border-white rounded-sm border-1"}),(0,I.jsx)("div",{className:"absolute top-1 right-2",children:G.length>=5?(0,I.jsx)(bK(),{loader:bL.vg,src:"family/checkIcon.png",alt:"User",width:10,height:10}):(0,I.jsx)(bK(),{loader:bL.vg,src:"family/reqIcon.png",alt:"User",width:8,height:8})})]})})]}),(0,I.jsxs)("div",{className:"flex gap-5 mt-3",children:[(0,I.jsx)("div",{className:"w-full md:flex-1",children:(0,I.jsxs)("div",{className:"relative",children:[(0,I.jsx)("input",{type:"text",name:"birthdate",id:"birthdate",value:L,placeholder:null==a?void 0:a.birthdate,className:"w-full h-10 border-white rounded-sm border-1",onChange:function(b){bh(!1);var a=b.target.value.replace(/\D/g,"");a.length>2&&(a="".concat(a.slice(0,2),"/").concat(a.slice(2))),a.length>5&&(a="".concat(a.slice(0,5),"/").concat(a.slice(5))),bb(a)},onKeyDown:as,onTouchStart:as}),(0,I.jsx)("div",{className:"absolute top-1 right-2",children:L.length>=10?(0,I.jsx)(bK(),{loader:bL.vg,src:"family/checkIcon.png",alt:"User",width:10,height:10}):(0,I.jsx)(bK(),{loader:bL.vg,src:"family/reqIcon.png",alt:"User",width:8,height:8})})]})}),(0,I.jsx)("div",{className:"flex-1 hidden md:block"})]}),(0,I.jsxs)("div",{className:"flex gap-5 mt-3",children:[(0,I.jsxs)("div",{className:"flex items-center w-full md:flex-1",children:[(0,I.jsx)("div",{className:"flex-1",children:(0,I.jsx)(af.z,{className:"w-full !rounded-md",slim:!0,onClick:aW,intent:"primary",children:a.cta_add})}),(0,I.jsx)("div",{onClick:function(){aY(!1),bF()},className:"flex-1 pr-5 font-medium text-right text-white underline cursor-pointer text-md",children:null==a?void 0:a.cancel})]}),(0,I.jsx)("div",{className:"flex-1 hidden md:block"})]})]})}),aG&&(0,I.jsx)("p",{className:"errorMsg",children:null==a?void 0:a.accountMultipleFound}),aH&&(0,I.jsx)("p",{className:"errorMsg",children:null==a?void 0:a.dataNotMatch}),aI&&(0,I.jsx)("p",{className:"errorMsg",children:null==a?void 0:a.sameAccount}),aJ&&(0,I.jsx)("p",{className:"errorMsg",children:null==a?void 0:a.alreadyUsed}),aE&&(0,I.jsx)("p",{className:"errorMsg",children:ag.Z.getValidation("try_after_sometime")}
1),aA&&(0,I.jsx)("p",{className:"errorMsg",children:ag.Z.getValidation("enter_fname")}),aB&&(0,I.jsx)("p",{className:"errorMsg",children:ag.Z.getValidation("enter_lname")}),aC&&(0,I.jsx)("p",{className:"errorMsg",children:ag.Z.getValidation("email_valid")}),aD&&(0,I.jsx)("p",{className:"errorMsg",children:ag.Z.getValidation("enter_validphone")}),aF&&(0,I.jsx)("p",{className:"errorMsg",children:null==a?void 0:a.birthInvalid}),(0,I.jsx)("div",{className:"my-8",children:(0,I.jsxs)("div",{className:"md:flex md:gap-5",children:[(0,I.jsxs)("div",{className:"w-full md:w-2/3",children:[(0,I.jsxs)("p",{className:"text-xl font-bold",children:[null==a?void 0:a.club_info_line_1," ",(0,I.jsx)("span",{className:"text-xl font-bold text-accent",children:null==b?void 0:null===(d=b[0])|| void 0===d?void 0:d.title})," ",null==a?void 0:a.club_info_line_3]}),(0,I.jsx)("p",{className:"mt-5",children:null==a?void 0:a.invite_your_relatives}),(0,I.jsx)("div",{className:"underline",children:(0,I.jsx)(am.r,{href:null==a?void 0:a.family_landing_link,className:"",children:(0,I.jsx)("p",{className:"font-medium cursor-pointer text-accent text-md",children:null==a?void 0:a.got_to_family_club_cta})})})]}),(0,I.jsx)("div",{className:"w-full md:w-1/3 max-md:mt-3",children:(null==a?void 0:a.family_club)&&(0,I.jsx)(ae.ZP,{image:null==a?void 0:a.family_club})})]})})]})}),gA=b.Z.country,gB=(0,c.Q)(function(l){var d=(0,aw.Z)({},l),f=(0,J.useState)(!1),o=f[0],t=f[1],h=(0,J.useState)(""),u=h[0],v=h[1],i=(0,J.useState)(!1),b=i[0],w=i[1],j=(0,J.useState)(""),p=j[0],x=j[1],q=d.textLocale,s=d.imageLocale,a=e.Z.getTranslaionArray(q,s),c="ja"!==gA?",":"/";(0,J.useEffect)(function(){void 0!==cF.Z.get("login_zip")&&v(cF.Z.get("login_zip")),void 0!==cF.Z.get("login_fname")&&x("".concat(cF.Z.get("login_fname")," ").concat(cF.Z.get("login_lname"))),(b=(0,n.Z)(m().mark(function a(){var b,c,d;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return t(!0),a.next=3,(0,g.Lj)(gA);case 3:(b=a.sent).success&&b.data&&(d=(c=b.data).filter(function(a){return"CA_PD"!==a.name}).sort(function(a,b){return new Date(b.create_date).getTime()-new Date(a.create_date).getTime()})[0],w(d)),t(!1);case 5:case"end":return a.stop()}},a)})),function(){return b.apply(this,arguments)})();var b,a={};a.type="pageview_vision",a.customerId=void 0!==cF.Z.get("customerid")?cF.Z.get("customerid"):"",a.source="",a.slug=window.location.toString(),(0,aj.nj)(gA,"eventtrack",a)},[]);var k=function(){var b=null==a?void 0:a.pnameforbook,c="";"de"===gA&&4===u.length&&(c="&at=1");var d="?utm_source=mybrillen&utm_medium=direct&utm_campaign=terminbuchung-mybrillen&product=".concat(b,"&pname=").concat(b,"&zip=").concat(u,"&isDirectLead=1").concat(c);K().push("thank-you-zip-new"+d)};return(0,I.jsxs)("div",{className:"w-full md:w-[90%] ml-auto max-md:mx-auto",children:[o&&(0,I.jsx)(ah.Z,{}),(null==a?void 0:a.comman_banner_desk)&&(0,I.jsx)(gc,{desk:null==a?void 0:a.comman_banner_desk,mbl:null==a?void 0:a.comman_banner_mobile}),a&&(0,I.jsxs)(I.Fragment,{children:["de"===gA?(0,I.jsxs)("div",{children:[(0,I.jsx)(aG.Z,{text:"".concat(p,", ").concat(null==a?void 0:a.last_eye_test_title),className:"mt-3 !font-semibold",type:"h2"}),(0,I.jsx)(aG.Z,{text:null==a?void 0:a.last_eye_test_subtitle,className:"py-3 !font-semibold !text-brand",type:"h3"}),(0,I.jsx)(aG.Z,{text:null==a?void 0:a.last_eye_test_info,className:"pb-3",type:"p"}),(0,I.jsx)("div",{className:"flex items-center justify-start mt-3",children:(null==a?void 0:a.app_cta)&&(0,I.jsx)(af.z,{slim:"false",intent:"primary",onClick:k,className:"w-full md:w-1/3 !rounded-md",children:null==a?void 0:a.app_cta})})]}):(0,I.jsx)(f6,{prefix:null==a?void 0:a.name_prefix,title:null==a?void 0:a.myvision_title}),"de-BE"===gA&&b?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("p",{className:"mt-5 mb-3",children:null==a?void 0:a.visual_info}),(0,I.jsxs)("div",{className:"w-full md:flex",children:[(0,I.jsxs)("div",{className:"w-full p-3 mr-5 rounded-lg md:w-2/5 bg-gray-50",children:[(0,I.jsx)("p",{className:"font-bold",children:null==a?void 0:a.last_update}),(0,I.jsx)("p",{children:r()(b.create_date).format("DD/MM/YYYY")})]}),(0,I.jsxs)("div",{className:"w-full p-3 mt-3 mr-5 rounded-lg md:w-2/5 bg-gray-50 md:mt-0",children:[(0,I.jsx)("p",{className:"font-bold",children:null==a?void 0:a.pd_value}),(0,I.jsx)("p",{children:"".concat(null==b?void 0:b.r_pd," / ").concat(null==b?void 0:b.l_pd)})]})]}),(0,I.jsxs)("div",{className:"w-full mt-3 md:flex",children:[(0,I.jsxs)("div",{className:"w-full p-3 mr-5 rounded-lg md:w-2/5 bg-gray-50",children:[(0,I.jsx)("p",{className:"font-bold",children:null==a?void 0:a.label_r}),(0,I.jsx)("p",{children:"Sph ".concat(null==b?void 0:b.r_sph,", Cyl ").concat(null==b?void 0:b.r_cyl,", Add ").concat(null==b?void 0:b.r_add,", Axis ").concat(null==b?void 0:b.r_axis)})]}),(0,I.jsxs)("div",{className:"w-full p-3 mt-3 mr-5 rounded-lg md:w-2/5 bg-gray-50 md:mt-0",children:[(0,I.jsx)("p",{className:"font-bold",children:null==a?void 0:a.label_l}),(0,I.jsx)("p",{children:"Sph ".concat(null==b?void 0:b.l_sph,", Cyl ").concat(null==b?void 0:b.l_cyl,", Add ").concat(null==b?void 0:b.l_add,", Axis ").concat(null==b?void 0:b.l_axis)})]})]})]}):b?(0,I.jsxs)(I.Fragment,{children:["de"!==gA&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("p",{className:"mt-5 font-semibold text-center",children:null==a?void 0:a.glasses_passport_title}),(0,I.jsx)("p",{className:"mb-4",children:null==a?void 0:a.glasses_passport_info}),(0,I.jsx)(am.r,{href:null==a?void 0:a.book_near_you_link,className:"!underline underline-offset-1",children:null==a?void 0:a.book_near_you})]}),(0,I.jsxs)("div",{className:"flex items-stretch mt-8",children:[(0,I.jsx)("div",{className:"w-1/3 px-4 py-2 font-semibold bg-gray-200 border-b border-white",children:null==a?void 0:a.last_update}),(0,I.jsx)("div",{className:"flex-1 w-2/3 px-4 py-2 font-semibold border-b border-gray-300",children:"ja"!==gA?r()(b.create_date).format("DD/MM/YYYY"):r()(b.create_date).format("YYYY/MM/DD")})]}),(0,I.jsxs)("div",{className:"flex items-center",children:[(0,I.jsx)("div",{className:"w-1/3 px-4 py-2 font-semibold bg-gray-200 border-b border-white",children:null==a?void 0:a.pd_value}),"ja"===gA?(0,I.jsx)("div",{className:"w-2/3 px-4 py-2 font-semibold border-b border-gray-300 min-h-[44px]",children:"\u53F3   \u5DE6".concat((0,I.jsx)("br",{})).concat(null==b?void 0:b.r_pd," / ").concat(null==b?void 0:b.l_pd)}):(0,I.jsx)("div",{className:"w-2/3 px-4 py-2 font-semibold border-b border-gray-300 min-h-[44px]",children:"".concat(null==b?void 0:b.r_pd," / ").concat(null==b?void 0:b.l_pd)})]}),(0,I.jsxs)("div",{className:"flex items-center",children:[(0,I.jsx)("div",{className:"w-1/3 px-4 py-2 font-semibold bg-gray-200 border-b border-white",children:null==a?void 0:a.label_r}),(0,I.jsx)("div",{className:"w-2/3 px-4 py-2 font-semibold border-b border-gray-300 min-h-[44px]",children:"Sph ".concat(null==b?void 0:b.r_sph).concat(c," Cyl ").concat(null==b?void 0:b.r_cyl).concat(c," Add ").concat(null==b?void 0:b.r_add).concat(c," Axis ").concat(null==b?void 0:b.r_axis)})]}),(0,I.jsxs)("div",{className:"flex items-center",children:[(0,I.jsx)("div",{className:"w-1/3 px-4 py-2 font-semibold bg-gray-200 border-b border-white",children:null==a?void 0:a.label_l}),(0,I.jsx)("div",{className:"w-2/3 px-4 py-2 font-semibold border-b border-gray-300 min-h-[44px]",children:"Sph ".concat(null==b?void 0:b.l_sph).concat(c," Cyl ").concat(null==b?void 0:b.l_cyl).concat(c," Add ").concat(null==b?void 0:b.l_add).concat(c," Axis ").concat(null==b?void 0:b.l_axis)})]})]}):(0,I.jsx)("div",{className:"flex items-center justify-center mt-5 ".concat("de"===gA&&"hidden"),children:(null==a?void 0:a.app_cta)&&(0,I.jsx)(af.z,{slim:"false",intent:"primary",onClick:k,className:"",children:null==a?void 0:a.app_cta})}),a&&"de-BE"!==gA&&(0,I.jsx)(fU,{classsneed:"mt-3 md:mt-5",product:"Vision",imgOne:null==a?void 0:a.footer_img1,imgTwo:null==a?void 0:a.footer_img2})]})]})}),D=b.Z.country,gC=(0,g.Ii)(D),gD=(0,c.Q)(function(i){var j,c=(0,aw.Z)({},i),k=c.textLocale,l=c.imageLocale,o=c.brillenPath,q=o.filter(function(a){return"favorite"===a.type}),a=e.Z.getTranslaionArray(k,l),d=(0,J.useState)(!1),p=d[0],r=d[1],f=(0,J.useState)(!1),s=f[0],t=f[1],h=(0,J.useState)(!1),b=h[0],u=h[1];(0,J.useEffect)(function(){var a;r(!0),(a=(0,n.Z)(m().mark(function a(){var b,c,d,e,f,h,i,j,k,l,n,o,p,q,s,v;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,g.lF)(D);case 2:if(!(b=a.sent).success){a.next=27;break}if(!((null==b?void 0:null===(c=b.data)|| void 0===c?void 0:c.frame_list.length)>=1)){a.next=24;break}for(t(e=null==b?void 0:null===(d=b.data)|| void 0===d?void 0:d.frame_list),f=[],h=e.length,i=0;i<h;i+=1)(j={}
1).sku=e[i],k=(0,aj.b2)(D,"frameinfo",j),f.push(k);return a.prev=12,a.next=15,Promise.all(f);case 15:for(p=0,n=(l=a.sent).map(function(a){return a}),o=[];p<n.length;p+=1)1===n[p].code&&(s=(q=n[p].result[0]).imgtype,(v={}).sku=q.sku,v.brand=q.brand,v.model=q.model,v.color=q.color,v.img=(0,g.Lg)(D,q.sku,q.model,q.color,q.brand,s),v.price=q.sales_price,v.status="ONS"===q.status?1:0,o.push(v));u(o),a.next=24;break;case 22:a.prev=22,a.t0=a.catch(12);case 24:r(!1),a.next=28;break;case 27:r(!1);case 28:case"end":return a.stop()}},a,null,[[12,22]])})),function(){return a.apply(this,arguments)})()},[]);var v=(j=(0,n.Z)(m().mark(function a(b){var c;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return t(c=s.filter(function(a){return a!==b})),a.next=4,(0,g.JF)(D,c);case 4:cF.Z.set("wishlistcount",c.length,{expires:1,domain:e.Z.getDomainForCookie(D,"")}),window.location.href="/".concat(q[0].slug);case 6:case"end":return a.stop()}},a)})),function(a){return j.apply(this,arguments)});return(0,I.jsxs)("div",{className:"w-full md:w-[90%] ml-auto max-md:mx-auto",children:[p&&(0,I.jsx)(ah.Z,{}),a&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(f6,{prefix:null==a?void 0:a.name_prefix,title:b?null==a?void 0:a.favorite_title:null==a?void 0:a.no_frame_info}),!b&&(0,I.jsxs)("div",{className:"text-center",children:[(0,I.jsx)("p",{className:"my-5",children:a.no_frame_model}),(0,I.jsx)("div",{className:"flex items-center justify-center",children:(0,I.jsx)(af.z,{slim:"false",intent:"primary",href:a.cta_frame_link,className:"mt-3 mb-5",children:a.cta_frame_title})})]}),b&&(null==b?void 0:b.map(function(b,c){return(0,I.jsxs)("div",{className:"items-center block mt-8 md:flex",children:[(0,I.jsx)("div",{className:"w-full mx-auto md:w-3/5",children:(0,I.jsxs)("div",{className:"p-4 mr-10 border-2 rounded-lg shadow border-brand max-md:mr-0",children:[(0,I.jsx)("div",{className:"w-[20px] float-right mt-[-25px] mr-[-28px] cursor-pointer",onClick:function(){return v(b.sku)},children:(null==a?void 0:a.close_icon)&&(0,I.jsx)(fQ.Z,{image:null==a?void 0:a.close_icon,layout:"responsive"})}),(0,I.jsxs)("div",{className:"flex",children:[(0,I.jsx)("div",{className:"w-3/5",children:(0,I.jsx)("img",{src:b.img,alt:b.sku})}),(0,I.jsxs)("div",{className:"w-2/5",children:[(0,I.jsx)("p",{className:"font-semibold",children:b.brand}),(0,I.jsx)("p",{children:b.sku}),(0,I.jsxs)("p",{className:"mt-5 font-semibold text-brand",children:[gC,b.price.toFixed(2)]}),1===b.status?(0,I.jsx)("p",{className:"font-semibold text-brand",children:null==a?void 0:a.frame_in_stock}):(0,I.jsx)("p",{className:"font-semibold text-red-500",children:null==a?void 0:a.frame_not_stock})]})]})]})}),(0,I.jsx)("div",{className:"w-full md:w-2/5 max-md:text-center max-md:mt-8",children:1===b.status&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(am.r,{href:"".concat(null==a?void 0:a.try_online_link,"?mysku=").concat(b.sku),children:(0,I.jsx)("p",{className:"mb-4 font-semibold cursor-pointer text-accent",children:null==a?void 0:a.try_online})}),(0,I.jsx)(am.r,{href:"".concat(null==a?void 0:a.more_info_link,"?skuid=").concat(b.sku),children:(0,I.jsx)("p",{className:"mb-4 font-semibold cursor-pointer text-accent",children:null==a?void 0:a.more_info})}),(0,I.jsx)(am.r,{href:"".concat(null==a?void 0:a.select_frame_link,"?sku=").concat(b.sku),children:(0,I.jsx)("p",{className:"mb-4 font-semibold cursor-pointer text-accent",children:null==a?void 0:a.select_frame})})]})})]},c)}))]})]})});a(15461);var gE=a(91997);a(19318);var E=e.Z.getCurrentLocale();r().locale(E);var gF=e.Z.getRule(),gG=b.Z.country,gH=(0,c.Q)(function(M){var f=(0,aw.Z)({},M),h=(0,J.useState)(!1),N=h[0],ak=h[1],O=f.textLocale,P=f.imageLocale,a=e.Z.getTranslaionArray(O,P),i=(0,J.useState)(0),Q=i[0],al=i[1],j=(0,J.useState)(!1),R=j[0],am=j[1],k=(0,J.useState)(!1),S=k[0],an=k[1],l=(0,J.useState)(!1),T=l[0],ao=l[1],o=(0,J.useState)(!1),U=o[0],ap=o[1],p=(0,J.useState)(""),V=p[0],aq=p[1],q=(0,J.useState)(""),W=q[0],ar=q[1],s=(0,J.useState)(""),X=s[0],as=s[1],t=(0,J.useState)(!0),Y=t[0],at=t[1],u=(0,J.useState)(!1),v=u[0],au=u[1],w=(0,J.useState)(""),Z=w[0],av=w[1],x=(0,J.useState)(!1),$=x[0],ax=x[1],y=(0,J.useState)(!1),z=y[0],ay=y[1],A=(0,J.useState)(20),B=A[0],az=A[1],C=(0,J.useState)({firstname:"",lastname:"",email:"",street:"",street2:"",zip:"",city:"",country:""}),b=C[0],aA=C[1],D=(0,J.useState)(null),d=D[0],aB=D[1],F=(0,J.useState)(!1),_=F[0],aC=F[1],G=(0,J.useRef)(null),K=new Date,L=new Date;L.setFullYear(K.getFullYear()-100),(0,J.useEffect)(function(){if(0===Q){var a,b;ak(!0),(a=(0,n.Z)(m().mark(function a(){var b,c,d;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,g.lF)(gG);case 2:b=a.sent,ak(!1),b.success&&(""===(d=b.data.mobile)&&(d=b.data.phone),aA({firstname:b.data.first_name,lastname:b.data.last_name,email:b.data.email,street:b.data.street,street2:b.data.street2,zip:b.data.zip,city:b.data.city,country:b.data.country}),av(d),(null==b?void 0:null===(c=b.data)|| void 0===c?void 0:c.birthday)!==""&&aB(new Date(b.data.birthday)));case 5:case"end":return a.stop()}},a)})),function(){return a.apply(this,arguments)})(),al(1)}z&&B>0?b=setInterval(function(){az(function(a){return a-1})},1e3):0===B&&ay(!1);var c=function(a){G.current&&!G.current.contains(a.target)&&aC(!1)};return document.addEventListener("mousedown",c),function(){clearInterval(b),document.removeEventListener("mousedown",c)}},[G,z,Q,B]);var aa,ab,ac,c=function(e){var c=e.target,a=c.name,d=c.value;if("zip"===a&&1===gF.isNumeric){var f=d.replace(/[^0-9]/g,"");aA((0,aD.Z)((0,H.Z)({},b),(0,fI.Z)({},a,f)))}else aA((0,aD.Z)((0,H.Z)({},b),(0,fI.Z)({},a,d)))},aE=function(){setTimeout(function(){am(!1)},15e3)},ad=(aa=(0,n.Z)(m().mark(function a(){var c,e,f,h,i,j,k,l,n,o,p,q,s;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(ap(!1),an(!1),as(!1),ax(!1),aq(""),au(!1),!(""!==Z)){a.next=37;break}return e=b.country,f=gG,h=0,("de"===gG||"at"===gG||"ast"===gG||"de-BE"===gG)&&(h=1,f=e.toLowerCase()),ak(!0),i={},i.userName=Z,i.type=3,i.bordercountry=f,a.next=19,(0,g.Lx)(gG,i);case 19:if(j=a.sent,k=1,j.success&&(null==j?void 0:null===(c=j.data)|| void 0===c?void 0:c.length)===1?(l=j.data[0],n=r()(d,"DD/MM/YYYY").format("YYYY-MM-DD"),o=b.firstname.normalize("NFKC"),p=b.lastname.normalize("NFKC"),k=l.first_name.toLowerCase().normalize("NFKC")===o.toLowerCase()&&l.last_name.toLowerCase().normalize("NFKC")===p.toLowerCase()&&l.email.toLowerCase()===b.email.toLowerCase()?""===l.birthday?1:l.b
1irthday===n?1:0:0):j.success&&j.data.length>=2?k=0:0===j.data.length&&(k=1),1!==k){a.next=34;break}return(q={}).type=1,q.phone=Z,q.isborder=h,q.bordercountry=f,a.next=30,(0,aj.nj)(gG,"apimessagebird",q);case 30:(null==(s=a.sent)?void 0:s.code)===1?(az(20),ay(!0),ak(!1),aq(s.myid),at(!0),an(!1)):(ak(!1),ao(!0)),a.next=35;break;case 34:ak(!1),au(!0);case 35:a.next=38;break;case 37:ax(!0);case 38:case"end":return a.stop()}},a)})),function(){return aa.apply(this,arguments)}),ae=(ab=(0,n.Z)(m().mark(function a(){var c,d,f,h,i,j,k,l,n,o;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:if(""!==Z){a.next=4;break}ax(!0),a.next=37;break;case 4:if(""!==W){a.next=8;break}as(!0),a.next=37;break;case 8:return ak(!0),(c={}).type=2,c.code=W,c.myid=V,a.next=15,(0,aj.nj)(gG,"apimessagebird",c);case 15:if((null==(d=a.sent)?void 0:d.code)!==1){a.next=36;break}return 0===(f=JSON.parse(localStorage.getItem("supervista"))||[]).length&&(f=[{}]),h=b.country,i=gG,("de"===gG||"at"===gG||"ast"===gG||"de-BE"===gG)&&(i=h.toLowerCase()),j={},j.whichase=1,k=e.Z.makePhoneProper(i,Z),l=e.Z.makePrefixProper(i,Z),j.prefix="".concat(l),j.mobile="".concat(k),j.mobile_verified=!0,f[0].phone="".concat(l).concat(k),a.next=32,(0,g.Al)(gG,j);case 32:(n=a.sent).success&&(localStorage.setItem("supervista",JSON.stringify(f)),o="production",cF.Z.set("login_phone",k,{expires:1,domain:e.Z.getDomainForCookie(gG,o)}),an(!0)),ak(!1),a.next=37;break;case 36:ap(!0),ak(!1);case 37:case"end":return a.stop()}},a)})),function(){return ab.apply(this,arguments)}),ai=(ac=(0,n.Z)(m().mark(function a(){var c,e,f,h,i,j,k,l,n,o,p;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return ak(!0),c=b.firstname,e=b.lastname,f=b.street,h=b.street2,i=b.zip,j=b.city,k=b.country,0===(l=JSON.parse(localStorage.getItem("supervista"))||[]).length&&(l=[{}]),(n={}).whichase=1,""!==c&&(n.first_name=c.normalize("NFKC"),l[0].firstname=c.normalize("NFKC")),""!==e&&(n.last_name=e.normalize("NFKC"),l[0].lastname=e.normalize("NFKC")),""!==d&&null!==d&&(o=r()(d,"DD/MM/YYYY").format("YYYY-MM-DD"),n.birthday=o,l[0].birthday=o),""!==f&&(n.street=f,l[0].street=f),""!==h&&(n.street2=h,l[0].street2=h),""!==i&&(n.zip=i,l[0].zip=i),""!==j&&(n.city=j,l[0].city=j),""!==k&&(n.country=k,l[0].country=k),a.next=16,(0,g.Al)(gG,n);case 16:(p=a.sent).success?(localStorage.setItem("supervista",JSON.stringify(l)),am(!0),ak(!1),aE()):ak(!1);case 18:case"end":return a.stop()}},a)})),function(){return ac.apply(this,arguments)});return(0,I.jsxs)("div",{className:"w-full md:w-[90%] ml-auto max-md:mx-auto",children:[N&&(0,I.jsx)(ah.Z,{}),(null==a?void 0:a.comman_banner_desk)&&(0,I.jsx)(gc,{desk:null==a?void 0:a.comman_banner_desk,mbl:null==a?void 0:a.comman_banner_mobile}),"de"===gG?(0,I.jsx)(aG.Z,{text:null==a?void 0:a.your_save_data,className:"mt-3 mb-5 !font-semibold",type:"h3"}):(0,I.jsx)(f6,{prefix:null==a?void 0:a.name_prefix,title:null==a?void 0:a.profile_title}),(null==a?void 0:a.change_data)&&(0,I.jsx)("p",{className:"my-5 font-medium text-center",children:a.change_data}),(0,I.jsxs)("div",{className:"grid gap-4 md:grid-cols-2",children:[(0,I.jsxs)("div",{children:[(0,I.jsx)("input",{type:"text",name:"firstname",id:"firstname",value:b.firstname,placeholder:a.firstname,className:"w-full mb-3 border-2 border-gray-400 rounded-md",onChange:c}),(0,I.jsx)("input",{type:"text",name:"lastname",id:"lastname",value:b.lastname,placeholder:a.lastname,className:"w-full mb-3 border-2 border-gray-400 rounded-md",onChange:c}),(0,I.jsx)("input",{type:"email",name:"email",id:"email",value:b.email,placeholder:a.email,disabled:!0,className:"w-full mb-3 font-bold bg-gray-200 border-2 border-gray-400 rounded-md"}),"de"===gG||"at"===gG||"de-BE"===gG?(0,I.jsxs)("select",{name:"country",id:"country",value:b.country,onChange:c,className:"w-full mb-3 border-2 border-gray-400 rounded-md",children:[(0,I.jsx)("option",{value:"DE",children:a.country_de}),(0,I.jsx)("option",{value:"AT",children:a.country_at}),(0,I.jsx)("option",{value:"BE",children:a.country_be}),(0,I.jsx)("option",{value:"CZ",children:a.country_cz}),(0,I.jsx)("option",{value:"DK",children:a.country_dk}),(0,I.jsx)("option",{value:"FR",children:a.country_fr}),(0,I.jsx)("option",{value:"LI",children:a.country_li}),(0,I.jsx)("option",{value:"LU",children:a.country_lu}),(0,I.jsx)("option",{value:"NL",children:a.country_nl}),(0,I.jsx)("option",{value:"CH",children:a.country_ch}),(0,I.jsx)("option",{value:"PL",children:a.country_pl})]}):(0,I.jsx)("input",{type:"hidden",name:"country",id:"country",value:b.country})]}),(0,I.jsxs)("div",{children:[(0,I.jsxs)("div",{className:"relative w-full mb-3",ref:G,children:[(0,I.jsx)("input",{type:"text",name:"birthdate",id:"birthdate",readOnly:!0,value:d?r()(d).format("DD/MM/YYYY"):"",onClick:function(){return aC(!_)},placeholder:a.birthday,className:"w-full border-2 border-gray-400 rounded-md cursor-pointer"}),_&&(0,I.jsx)("div",{className:"absolute z-10 mt-1 bg-white border rounded shadow birthcalender",children:(0,I.jsx)(gE.ZP,{onChange:function(a){aB(a),aC(!1)},locale:E,value:d,maxDate:K,minDate:L})}),(0,I.jsx)("div",{className:"absolute cursor-pointer right-2 top-2",onClick:function(){return aC(!_)},children:(0,I.jsx)(bK(),{loader:bL.vg,src:"myAppoIcon.png",alt:"",width:34,he
1ight:33})})]}),"ja"!==gG?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("div",{className:"grid grid-cols-12 gap-4",children:[(0,I.jsx)("div",{className:"col-span-8 mb-3",children:(0,I.jsx)("input",{type:"text",name:"street",id:"street",value:b.street,placeholder:a.street,className:"w-full border-2 border-gray-400 rounded-md",onChange:c})}),(0,I.jsx)("div",{className:"col-span-4 mb-3",children:(0,I.jsx)("input",{type:"text",name:"street2",id:"street2",value:b.street2,placeholder:a.house_no,className:"w-full border-2 border-gray-400 rounded-md",onChange:c})})]}),(0,I.jsxs)("div",{className:"grid grid-cols-12 gap-4",children:[(0,I.jsx)("div",{className:"col-span-5 mb-3",children:(0,I.jsx)("input",{type:"text",name:"zip",id:"zip",maxLength:gF.zipMax,value:b.zip,placeholder:a.zipcode,className:"w-full border-2 border-gray-400 rounded-md",onChange:c})}),(0,I.jsx)("div",{className:"col-span-7 mb-3",children:(0,I.jsx)("input",{type:"text",name:"city",id:"city",value:b.city,placeholder:a.location,className:"w-full border-2 border-gray-400 rounded-md",onChange:c})})]})]}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsxs)("div",{className:"grid grid-cols-12 gap-4",children:[(0,I.jsx)("div",{className:"col-span-5 mb-3",children:(0,I.jsx)("input",{type:"text",name:"zip",id:"zip",maxLength:gF.zipMax,value:b.zip,placeholder:a.zipcode,className:"w-full border-2 border-gray-400 rounded-md",onChange:c})}),(0,I.jsx)("div",{className:"col-span-7 mb-3",children:(0,I.jsx)("input",{type:"text",name:"city",id:"city",value:b.city,placeholder:a.location,className:"w-full border-2 border-gray-400 rounded-md",onChange:c})})]}),(0,I.jsxs)("div",{className:"grid grid-cols-12 gap-4",children:[(0,I.jsx)("div",{className:"col-span-8 mb-3",children:(0,I.jsx)("input",{type:"text",name:"street",id:"street",value:b.street,placeholder:a.street,className:"w-full border-2 border-gray-400 rounded-md",onChange:c})}),(0,I.jsx)("div",{className:"col-span-4 mb-3",children:(0,I.jsx)("input",{type:"text",name:"street2",id:"street2",value:b.street2,placeholder:a.house_no,className:"w-full border-2 border-gray-400 rounded-md",onChange:c})})]})]}),R?(0,I.jsx)("div",{className:"flex items-center justify-end mt-2",children:(0,I.jsx)(af.z,{slim:"false",intent:"outline",className:"",children:null==a?void 0:a.success_data})}):(0,I.jsx)("div",{className:"flex items-center justify-end mt-2",children:(0,I.jsx)(af.z,{slim:"false",intent:"primary",onClick:ai,className:"",children:null==a?void 0:a.save_profile_cta})})]})]}),(0,I.jsx)("hr",{className:"mt-3 mb-3"}),(0,I.jsxs)("div",{className:"grid gap-4 mb-3 md:grid-cols-2",children:[(0,I.jsxs)("div",{children:[(0,I.jsxs)("div",{className:"relative",children:[(0,I.jsx)("input",{type:"text",name:"phone",id:"phone",value:Z,placeholder:a.phone,onChange:function(a){var b=a.target.value;ax(!1),ao(!1),av(b),ap(!1),an(!1),as(!1),au(!1),aq("")},className:"w-full font-bold border-2 border-gray-400 rounded-md pr-[150px]"}),z?(0,I.jsxs)("div",{className:"absolute h-6 font-bold w-[150px] right-1 top-0 text-h2 text-right mr-4 text-accent",children:[B,(0,I.jsxs)("span",{className:"text-sm font-medium text-accent",children:["(",a.resend,")"]})]}):(0,I.jsx)("div",{onClick:ad,className:"absolute h-6 font-bold cursor-pointer w-[150px] right-1 top-2 text-accent",children:a.send_code})]}),!v&&(V?(0,I.jsxs)("p",{className:"w-full font-medium leading-4 text-center text-md text-brand",children:[a.code_send,(null==a?void 0:a.resend_new)&&(0,I.jsx)("p",{className:"font-semibold text-center text-[#FF4D14] text-md",children:null==a?void 0:a.resend_new})]}):(0,I.jsx)("p",{className:"w-full text-sm text-center",children:a.phone_no_edit_info})),$&&(0,I.jsx)("p",{className:"leading-4 text-center errorMsg",children:ag.Z.getValidation("enter_validphone")}),v&&(0,I.jsx)("p",{className:"leading-4 text-center errorMsg",children:a.your_phone_used}),T&&(0,I.jsx)("p",{className:"leading-4 text-center errorMsg",children:a.code_issue})]}),(0,I.jsx)("div",{children:Y&&!S&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("input",{type:"text",name:"code",id:"code",value:W,placeholder:a.add_code,onChange:function(a){var b=a.target.value;ap(!1),as(!1),ar(b),ao(!1)},className:"w-full font-bold border-2 border-gray-400 rounded-md"}),(0,I.jsx)("p",{className:"w-full text-sm text-center",children:a.aftercodesend}),X&&(0,I.jsx)("p",{className:"leading-4 text-center errorMsg",children:a.valid_code}),U&&(0,I.jsx)("p",{className:"leading-4 text-center errorMsg",children:a.code_expire}),(0,I.jsx)("div",{className:"flex items-center justify-end mt-2",children:(0,I.jsx)(af.z,{slim:"false",intent:"primary",onClick:ae,className:"",children:null==a?void 0:a.save_phone})})]})})]}),a&&"de-BE"!==gG&&(0,I.jsx)(fU,{classsneed:"mt-3 md:mt-5",product:"Profile",imgOne:null==a?void 0:a.footer_img1,imgTwo:null==a?void 0:a.footer_img2})]})}
1),F=b.Z.country,gI=(0,g.Ii)(F),gJ=(0,c.Q)(function(l){var c=(0,aw.Z)({},l),o=c.textLocale,p=c.imageLocale,a=e.Z.getTranslaionArray(o,p),d=(0,J.useState)(!1),q=d[0],s=d[1],f=(0,J.useState)(""),t=f[0],u=f[1],h=(0,J.useState)(0),b=h[0],v=h[1],i=(0,J.useState)(""),j=i[0],w=i[1];(0,J.useEffect)(function(){void 0!==cF.Z.get("login_zip")&&u(cF.Z.get("login_zip")),(b=(0,n.Z)(m().mark(function a(){var b,c,d,e,f,h,i,j;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return s(!0),a.next=3,(0,g.Hc)(F,cF.Z.get("customerid"));case 3:if((b=a.sent).success){if(c=[],d=0,null==b?void 0:b.data)for(f=0;f<(null==b?void 0:null===(e=b.data)|| void 0===e?void 0:e.length);f+=1)h=b.data[f],(i=r()(h.expiration_datetime).diff(r()(new Date),"days"))>=0&&h.status&&(d+=h.available_points,c[f]={customer:h.customer,recommender:h.recommender,points:h.points,available_points:h.available_points,create_date:r()(h.create_date).format("DD.MM.YYYY"),expiration_datetime:r()(h.expiration_datetime).format("DD.MM.YYYY"),time_used:r()(h.time_used).format("DD.MM.YYYY"),used_order:h.used_order,source_order:h.source_order,reason:h.reason,expireday:i});v(d),j=c.sort(function(a,b){var c=new Date(a.create_date.split(".").reverse().join("-")),d=new Date(b.create_date.split(".").reverse().join("-"));return d-c}),w(j),s(!1)}else s(!1);case 5:case"end":return a.stop()}},a)})),function(){return b.apply(this,arguments)})();var b,a={};a.type="pageview_credit",a.customerId=void 0!==cF.Z.get("customerid")?cF.Z.get("customerid"):"",a.source="",a.slug=window.location.toString(),(0,aj.nj)(F,"eventtrack",a)},[]);var k=function(){var c=null==a?void 0:a.pnameforbook,d="";("de"===F||"de-BE"===F)&&4===t.length&&(d="&at=1");var b={};b.type="appt_booking_click",b.customerId=void 0!==cF.Z.get("customerid")?cF.Z.get("customerid"):"",b.customerEmail="",b.source="Usercredits",b.slug=window.location.toString(),(0,aj.nj)(F,"eventtrack",b);var e="?utm_source=mybrillen&utm_medium=direct&utm_campaign=terminbuchung-mybrillen&product=".concat(c,"&pname=").concat(c,"&zip=").concat(t,"&isDirectLead=1").concat(d);K().push("thank-you-zip-new"+e)};return(0,I.jsxs)("div",{className:"w-full md:w-[90%] ml-auto max-md:mx-auto",children:[q&&(0,I.jsx)(ah.Z,{}),(0,I.jsxs)("div",{className:"relative mt-[60px] max-md:hidden",children:[(null==a?void 0:a.banner_desktop)&&(0,I.jsx)(fQ.Z,{image:null==a?void 0:a.banner_desktop,layout:"responsive"}),(0,I.jsx)("div",{className:"absolute top-10 right-4",children:(0,I.jsxs)("div",{className:"bg-fixed bg-repeat bg-glasses-pattern p-2 rounded-xl text-center max-w-[250px]",children:[(0,I.jsx)("p",{className:"pb-0 text-lg font-bold text-black",children:null==a?void 0:a.your_balance}),(0,I.jsxs)("p",{className:"text-brand text-[52px] font-bold pb-2 leading-10",children:[b," ",gI]}),(0,I.jsx)("p",{className:"pb-2 text-sm font-semibold text-black",children:null==a?void 0:a.redeem_credit}),(0,I.jsx)(am.r,{onClick:k,className:"w-full",children:(0,I.jsx)("p",{className:"py-2 text-white border rounded-full cursor-pointer bg-accent text-md border-accent hover:text-accent hover:bg-white",children:null==a?void 0:a.appointment})})]})})]}),(0,I.jsxs)("div",{className:"relative hidden max-md:block",children:[(null==a?void 0:a.banner_mobile)&&(0,I.jsx)(fQ.Z,{image:null==a?void 0:a.banner_mobile,layout:"responsive"}),(0,I.jsx)("div",{className:"absolute flex justify-center w-full bottom-4",children:(0,I.jsxs)("div",{className:"bg-fixed bg-repeat bg-glasses-pattern p-2 rounded-xl w-[90%]",children:[(0,I.jsxs)("p",{className:"pb-0 text-center text-black",children:[(0,I.jsx)("span",{className:"font-bold align-super",children:null==a?void 0:a.your_balance_mobile}),(0,I.jsxs)("span",{className:"text-brand text-[35px] sm:text-[52px] font-bold leading-10",children:[b," ",gI]})]}),(0,I.jsx)(am.r,{onClick:k,className:"w-full",children:(0,I.jsx)("p",{className:"font-semibold text-center underline cursor-pointer text-accent",children:null==a?void 0:a.appointment_cta_mobile})})]})})]}),(0,I.jsx)(f6,{prefix:null==a?void 0:a.name_prefix,title:null==a?void 0:a.profile_title}),(0,I.jsx)(aG.Z,{text:null==a?void 0:a.overview,className:"!font-semibold text-center",type:"h1"}),(0,I.jsx)(aG.Z,{text:null==a?void 0:a.description,className:"py-4",type:"p"}),(0,I.jsxs)("div",{className:"flex border-b-2 border-black max-md:flex-wrap",children:[(0,I.jsx)("div",{className:"w-[35%] md:w-[30%] font-semibold pb-4",children:null==a?void 0:a.coupon}),(0,I.jsx)("div",{className:"hidden md:block md:w-[15%] font-semibold pb-4",children:null==a?void 0:a.date}),(0,I.jsx)("div",{className:"w-[20%] md:w-[15%] font-semibold pb-4",children:null==a?void 0:a.amount}),(0,I.jsx)("div",{className:"w-[40%] font-semibold pb-4 text-accent",children:null==a?void 0:a.expire}),(0,I.jsx)("div",{className:"w-[0%] md:w-[5%] pb-4"})]}),(0,I.jsx)("div",{children:j&&j.map(function(b,c){return(0,I.jsxs)("div",{className:"flex items-center pt-4 border-b-2 max-md:flex-wrap",children:[(0,I.jsx)("div",{className:"w-[35%] md:w-[30%] font-semibold pb-2 break-all max-md:text-md",children:"mybrillen-gift"===b.reason||"questionnaire_credit"===b.reason||"cbd_vital"===b.reason||"appt_movement"===b.reason||"customer_service"===b.reason||"insurance_credit"===b.reason||"Sonstige"===b.reason||"test50Guthaben"===b.reason||"lm_bonus"===b.reason||"leads_50"===b.reason||"Newlead_50"===b.reason||"Sonderguthaben"===b.reason||"Gewinnspiel"===b.reason||"Join Group"===b.reason||"reward_hearing_50"===b.reason||"familiy_cashback"===b.reason||"transferred_credit"===b.reason||"Weihnachtsaktion"===b.reason?null==a?void 0:a["reason_".concat(b.reason)]:null==a?void 0:a.reason_friend_invite_friend}),(0,I.jsx)("div",{className:"hidden md:block md:w-[15%] font-semibold pb-2",children:b.create_date}),(0,I.jsxs)("div",{className:"w-[20%] md:w-[15%] font-semibold pb-2 text-brand max-md:text-center",children:[b.available_points," ",gI]}),b.expireday>=31&&b.available_points>0&&(0,I.jsx)("div",{className:"w-[45%] md:w-[40%] pb-2",children:(0,I.jsxs)("div",{className:"flex items-center p-1 max-md:justify-end",children:[(0,I.jsx)("p",{className:"mr-2 font-semibold text-accent",children:b.expiration_datetime}),(0,I.jsxs)("p",{className:"hidden ml-4 font-semibold text-left md:block text-brand hover:text-accent",children:[null==a?void 0:a.valid_for," ",b.expireday," ",null==a?void 0:a.remain_day]}),(0,I.jsx)("div",{className:"w-[40px] ml-4 cursor-pointer block md:hidden",onClick:k,children:(null==a?void 0:a.calendar_img)&&(0,I.jsx)(ae.ZP,{image:null==a?void 0:a.calendar_img})})]})}),b.expireday>=1&&b.expireday<=30&&b.available_points>0&&(0,I.jsx)("div",{className:"w-[45%] md:w-[40%] pb-2",children:(0,I.jsxs)("div",{className:"flex items-center p-1 bg-accent-light max-md:justify-between",children:[(0,I.jsx)("p",{className:"mr-2 font-semibold text-accent",children:b.expiration_datetime}),(0,I.jsxs)("p",{className:"hidden ml-4 font-semibold text-left md:block text-accent",children:[(0,I.jsx)("span",{className:"font-bold text-accent",children:null==a?void 0:a.only}),(0,I.jsx)("br",{}),b.expireday," ",null==a?void 0:a.remain_day]}),(0,I.jsx)("div",{className:"w-[40px] ml-4 cursor-pointer block md:hidden",onClick:k,children:(null==a?void 0:a.calendar_img)&&(0,I.jsx)(ae.ZP,{image:null==a?void 0:a.calendar_img})})]})}),b.expireday<=0&&b.available_points>0&&(0,I.jsx)("div",{className:"w-[45%] md:w-[40%] pb-2",children:(0,I.jsxs)("div",{className:"flex items-center p-2 bg-accent-light max-md:justify-between",children:[(0,I.jsx)("p",{className:"mr-2 font-semibold text-accent",children:b.expiration_datetime}),(0,I.jsx)("p",{className:"hidden font-semibold text-center md:block backdrop:mr-2 text-accent",children:null==a?void 0:a.when_expire}),(0,I.jsx)("div",{className:"w-[40px] ml-4 cursor-pointer block md:hidden",onClick:k,children:(null==a?void 0:a.calendar_img)&&(0,I.jsx)(ae.ZP,{image:null==a?void 0:a.calendar_img})})]})}),0===b.available_points&&(0,I.jsx)("div",{className:"w-[45%] md:w-[40%] pb-2",children:(0,I.jsxs)("div",{className:"flex items-center p-2 max-md:justify-between",children:[(0,I.jsx)("p",{className:"mr-2 font-semibold text-red",children:b.time_used}),(0,I.jsx)("p",{className:"hidden mr-2 font-semibold text-center md:block text-red",children:null==a?void 0:a.credit_used}
1),(0,I.jsx)("div",{className:"w-[40px] ml-4 cursor-pointer block md:hidden"})]})}),(0,I.jsx)("div",{className:"w-[5%] pb-2 max-md:w-full hidden md:block",children:(0,I.jsx)("div",{className:"w-[40px] cursor-pointer ".concat(b.expireday>=1&&b.expireday<=30?"bg-accent-light pt-[20px] pb-[19px] max-[960px]:py-[33px] pr-2":""," ").concat(b.expireday<=0?"bg-accent-light pt-[10px] pb-[10px] max-[960px]:py-[33px] pr-2":""),onClick:k,children:(null==a?void 0:a.calendar_img)&&(0,I.jsx)(ae.ZP,{image:null==a?void 0:a.calendar_img})})})]},c)})}),(0,I.jsx)("div",{className:"bg-[#76b82a21] mt-2 pl-2",children:(0,I.jsxs)("div",{className:"flex pt-2",children:[(0,I.jsx)("div",{className:"w-[45%] font-semibold pb-4 max-md:w-9/12",children:"Saldo"}),(0,I.jsxs)("div",{className:"text-xl font-semibold text-brand max-md:text-right max-md:w-1/4 max-md:pr-2",children:[b," ",gI]})]})}),a&&(0,I.jsx)(fU,{classsneed:"",product:"Usercredits",imgOne:null==a?void 0:a.footer_img1,imgTwo:null==a?void 0:a.footer_img2})]})}),gK=b.Z.country,gL=(0,c.Q)(function(p){var d=(0,aw.Z)({},p),q=d.textLocale,s=d.imageLocale,a=e.Z.getTranslaionArray(q,s),f=(0,J.useState)(!1),t=f[0],v=f[1],h=(0,J.useState)(""),u=h[0],w=h[1],i=(0,J.useState)(""),x=i[0],y=i[1],j=(0,J.useState)(0),k=j[0],z=j[1],l=(0,J.useState)(""),o=l[0],A=l[1],b="Euro";"pl"===gK&&(b=(0,g.Ii)(gK)),(0,J.useEffect)(function(){void 0!==cF.Z.get("login_zip")&&y(cF.Z.get("login_zip")),void 0!==cF.Z.get("login_fname")&&w("".concat(cF.Z.get("login_fname")," ").concat(cF.Z.get("login_lname"))),(b=(0,n.Z)(m().mark(function a(){var b,c,d,e,f,h,i,j;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return v(!0),a.next=3,(0,g.Hc)(gK,cF.Z.get("customerid"));case 3:if((b=a.sent).success){if(c=[],d=0,null==b?void 0:b.data)for(f=0;f<(null==b?void 0:null===(e=b.data)|| void 0===e?void 0:e.length);f+=1)h=b.data[f],(i=r()(h.expiration_datetime).diff(r()(new Date),"days"))>=0&&h.status&&(d+=h.available_points,c[f]={customer:h.customer,recommender:h.recommender,points:h.points,available_points:h.available_points,create_date:r()(h.create_date).format("DD.MM.YYYY"),expiration_datetime:r()(h.expiration_datetime).format("DD.MM.YYYY"),time_used:r()(h.time_used).format("DD.MM.YYYY"),used_order:h.used_order,source_order:h.source_order,reason:h.reason,expireday:i});z(d),j=c.sort(function(a,b){var c=new Date(a.create_date.split(".").reverse().join("-")),d=new Date(b.create_date.split(".").reverse().join("-"));return d-c}),A(j),v(!1)}else v(!1);case 5:case"end":return a.stop()}},a)})),function(){return b.apply(this,arguments)})();var b,a={};a.type="pageview_credit",a.customerId=void 0!==cF.Z.get("customerid")?cF.Z.get("customerid"):"",a.source="",a.slug=window.location.toString(),(0,aj.nj)(gK,"eventtrack",a)},[]);var c=function(){var c=null==a?void 0:a.pnameforbook,d="";("de"===gK||"de-BE"===gK)&&4===x.length&&(d="&at=1");var b={};b.type="appt_booking_click",b.customerId=void 0!==cF.Z.get("customerid")?cF.Z.get("customerid"):"",b.customerEmail="",b.source="Usercredits",b.slug=window.location.toString(),(0,aj.nj)(gK,"eventtrack",b);var e="?utm_source=mybrillen&utm_medium=direct&utm_campaign=terminbuchung-mybrillen&product=".concat(c,"&pname=").concat(c,"&zip=").concat(x,"&isDirectLead=1").concat(d);K().push("thank-you-zip-new"+e)};return(0,I.jsxs)("div",{className:"w-full md:w-[90%] ml-auto max-md:mx-auto",children:[t&&(0,I.jsx)(ah.Z,{}),(0,I.jsxs)("div",{className:"relative mt-[60px] max-md:hidden",children:[(null==a?void 0:a.oct_banner_desk)&&(0,I.jsx)(fQ.Z,{image:null==a?void 0:a.oct_banner_desk,layout:"responsive"}),(0,I.jsx)("div",{className:"absolute top-10 right-10",children:(0,I.jsxs)("div",{className:"bg-white p-3 rounded-md border-2 border-[#85b645] text-center min-w-[300px]",children:[(0,I.jsxs)("div",{className:"p-2 rounded-md bg-brand",children:[(0,I.jsx)("p",{className:"font-medium text-white",children:null==a?void 0:a.your_balance}),(0,I.jsxs)("p",{className:"text-white text-[40px] font-bold leading-10 mb-2",children:[k," ",b]})]}),(0,I.jsx)("div",{className:"mt-2",children:(0,I.jsx)(af.z,{className:"w-full !rou
1nded-md",slim:!1,onClick:c,intent:"primary",children:null==a?void 0:a.appointment})})]})})]}),(0,I.jsx)("div",{className:"relative hidden max-md:block",children:(null==a?void 0:a.oct_banner_mbl)&&(0,I.jsx)(fQ.Z,{image:null==a?void 0:a.oct_banner_mbl,layout:"responsive"})}),(0,I.jsx)("div",{className:"block w-full my-3 md:hidden",children:(0,I.jsxs)("div",{className:"text-center",children:[(0,I.jsxs)("div",{className:"p-2 rounded-md bg-brand",children:[(0,I.jsx)("p",{className:"font-medium text-white",children:null==a?void 0:a.your_balance}),(0,I.jsxs)("p",{className:"text-white text-[40px] font-bold leading-10 mb-2",children:[k," ",b]})]}),(0,I.jsx)("div",{className:"mt-2",children:(0,I.jsx)(af.z,{className:"w-full !rounded-md",slim:!1,onClick:c,intent:"primary",children:null==a?void 0:a.appointment})})]})}),(0,I.jsx)(aG.Z,{text:"".concat(u,", ").concat(null==a?void 0:a.benefit_title),className:"mt-3 !font-semibold",type:"h2"}),(0,I.jsx)(aG.Z,{text:null==a?void 0:a.benefit_sub_info,className:"py-4",type:"p"}),(0,I.jsxs)("div",{className:"flex gap-3 px-3 mb-1",children:[(0,I.jsx)("div",{className:"w-[40%] md:w-[65%] font-semibold",children:null==a?void 0:a.coupon}),(0,I.jsx)("div",{className:"w-[35%] md:w-[20%] font-semibold",children:null==a?void 0:a.amount}),(0,I.jsx)("div",{className:"w-[25%] md:w-[15%] font-semibold",children:null==a?void 0:a.until_date})]}),(0,I.jsx)("div",{children:o&&o.map(function(c,d){return(0,I.jsx)("div",{className:"px-3 py-2 mb-2 bg-gray-200 rounded-sm",children:(0,I.jsxs)("div",{className:"flex items-center mb-2",children:[(0,I.jsx)("div",{className:"w-[40%] md:w-[65%] break-words max-md:mr-[1%] font-[400]",children:"mybrillen-gift"===c.reason||"questionnaire_credit"===c.reason||"cbd_vital"===c.reason||"appt_movement"===c.reason||"customer_service"===c.reason||"insurance_credit"===c.reason||"Sonstige"===c.reason||"test50Guthaben"===c.reason||"lm_bonus"===c.reason||"leads_50"===c.reason||"Newlead_50"===c.reason||"transferred_credit"===c.reason||"Sonderguthaben"===c.reason||"reward_hearing_50"===c.reason||"Gewinnspiel"===c.reason||"Join Group"===c.reason||"familiy_cashback"===c.reason||"Weihnachtsaktion"===c.reason?null==a?void 0:a["reason_".concat(c.reason)]:null==a?void 0:a.reason_friend_invite_friend}),(0,I.jsxs)("div",{className:"w-[34%] md:w-[20%] text-accent font-semibold",children:[c.available_points," ",b]}),(0,I.jsx)("div",{className:"w-[25%] md:w-[15%] font-[400]",children:c.expiration_datetime})]})},d)})}),(0,I.jsx)(aG.Z,{text:null==a?void 0:a.advantages_title,className:"py-4",type:"h3"}),(0,I.jsx)(bc.Z,{text:null==a?void 0:a.advantages_sub_info,className:""}),(0,I.jsx)(af.z,{className:"w-auto !rounded-md",slim:!1,onClick:c,intent:"primary",children:null==a?void 0:a.cta_redeem}),(0,I.jsx)(aG.Z,{text:null==a?void 0:a.attention_title,className:"py-4",type:"h3"}),(0,I.jsx)(bc.Z,{text:null==a?void 0:a.attention_info,className:"mb-4"}),a&&(0,I.jsx)(fU,{classsneed:"",product:"Usercredits",imgOne:null==a?void 0:a.footer_img1,imgTwo:null==a?void 0:a.footer_img2})]})}),gM=b.Z.country,gN=(0,c.Q)(function(B){var c,d,f,h,i,j,k,l,C,o=(0,aw.Z)({},B),D=o.textLocale,E=o.imageLocale,F=o.brillenPath,a=e.Z.getTranslaionArray(D,E),b=F.filter(function(a){return"profile"===a.type}),p=(0,J.useState)(!1),G=p[0],Q=p[1],q=(0,J.useState)(!1),H=q[0],R=q[1],s=(0,J.useState)(""),t=s[0],S=s[1],u=(0,J.useState)(""),K=u[0],T=u[1],v=(0,J.useState)(""),L=v[0],U=v[1],w=(0,J.useState)(""),M=w[0],V=w[1],x=(0,J.useState)(""),N=x[0],W=x[1],y=(0,J.useState)(0),X=y[0],Y=y[1],z=(0,J.useState)(!1),O=z[0],Z=z[1],A=(0,J.useState)([]),P=A[0],$=A[1];(0,J.useEffect)(function(){var a,b;(a=(0,n.Z)(m().mark(function a(){var b,c,d,e;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return Q(!0),(c={}).limit=25,a.next=6,(0,g.w0)(gM,c);case 6:(d=a.sent).success&&d.data&&(null===(b=d.data)|| void 0===b?void 0:b.page_list.length)>0&&(Z(!0),$(null===(e=d.data)|| void 0===e?void 0:e.page_list)),Q(!1);case 9:case"end":return a.stop()}},a)})),function(){return a.apply(this,arguments)})(),(b=(0,n.Z)(m().mark(function a(){var b;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,(0,g.lF)(gM);case 2:(b=a.sent).success&&(T("".concat(b.data.first_name," ").concat(b.data.last_name)),U(r()(b.data.birthday).format("DD/MM/YYYY")),V(" ".concat(b.data.street," ").concat(b.data.street2)),S(b.data.zip),W(b.data.city),R("".concat(b.data.first_name," ").concat(b.data.last_name,", ").concat(r()(b.data.birthday).format("DD/MM/YYYY"),", ").concat(b.data.street," ").concat(b.data.street2,", ").concat(b.data.zip," ").concat(b.data.city)));case 4:case"end":return a.stop()}},a)})),function(){return b.apply(this,arguments)})()},[]);var _=(C=(0,n.Z)(m().mark(function a(b){var c,d;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return Y(0),(c={}).renew=!1,a.next=5,(0,g.vl)(gM,b,c);case 5:(d=a.sent).success&&d.data&&Y(b);case 7:case"end":return a.stop()}},a)})),function(a){return C.apply(this,arguments)});return(0,I.jsxs)("div",{className:"w-full md:w-[95%] ml-auto max-md:mx-auto",children:[G&&(0,I.jsx)(ah.Z,{}),a&&(O?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(f6,{prefix:null==a?void 0:a.name_prefix,title:""}),(0,I.jsx)("div",{className:"p-1 bg-gray-100",children:null==a?void 0:a.your_contract}),(0,I.jsxs)("div",{className:"mt-3 md:mt-5",children:[(0,I.jsx)("p",{className:"pb-2 font-semibold",children:a.contractor}),(0,I.jsx)("p",{className:"",children:K}),(0,I.jsx)("p",{className:"",children:L}),(0,I.jsx)("p",{className:"",children:M}),(0,I.jsxs)("p",{className:"",children:[t," ",N]}),(0,I.jsx)(am.r,{href:"/".concat(null==b?void 0:null===(c=b[0])|| void 0===c?void 0:c.slug),children:(0,I.jsx)("p",{className:"my-2 font-semibold text-left underline text-brandred",children:a.change})})]}),(0,I.jsx)("div",{className:"p-1 mt-3 bg-gray-100",children:null==a?void 0:a.your_contract_sub}),(0,I.jsx)("div",{className:"mt-3 md:mt-5",children:P.map(function(b,n){var c,d,e,f,g,h,i,j,k,l,o=r()(b.end_date),p=r()(),q=30>=o.diff(p,"days"),m=!1;return q&&(m=!0),(0,I.jsxs)("div",{className:"pb-5 mb-4 border-b-2 md:flex md:gap-3 md:mb-5",children:[(0,I.jsxs)("div",{className:"w-full md:w-3/4",children:[(0,I.jsxs)("p",{className:"",children:[(0,I.jsxs)("span",{className:"font-bold",children:[a.contract_no,":"]})," ",(0,I.jsx)("span",{children:b.sale_name})]}),(0,I.jsxs)("p",{className:"",children:[(0,I.jsxs)("span",{className:"font-bold",children:[a.product,":"]})," ",(0,I.jsx)("span",{children:null==a?void 0:a[null==b?void 0:b.product_type]})]}),(0,I.jsxs)("p",{className:"",children:[(0,I.jsxs)("span",{className:"font-bold",children:[a.duration,":"]})," ",(0,I.jsxs)("span",{children:[null==b?void 0:b.installmentcount," ",a.month]})]}),(0,I.jsxs)("p",{className:"",children:[(0,I.jsx)("span",{className:"font-bold",children:a.start_contract_date})," ",(0,I.jsx)("span",{children:r()(null==b?void 0:b.start_date).format("DD.MM.YYYY")})]}),(0,I.jsxs)("p",{className:"",children:[(0,I.jsxs)("span",{className:"font-bold",children:[a.auto_extension_title,":"]}
1)," ",(0,I.jsx)("span",{children:a.auto_extension_sub})]}),X===b.id?(0,I.jsxs)("p",{children:[(0,I.jsx)("span",{className:"font-bold",children:a.termination_startdate})," ",(0,I.jsx)("span",{children:r()(null==b?void 0:b.start_date).format("DD.MM.YYYY")})]}):(0,I.jsxs)("p",{className:"",children:[(0,I.jsxs)("span",{className:"font-bold",children:[a.terminate_contract,":"]})," ",(0,I.jsx)("span",{children:a.terminate_request_new})]}),(0,I.jsxs)("div",{className:"flex gap-5 mx-auto",children:[(0,I.jsx)("div",{children:m?(0,I.jsx)(af.z,{slim:"false",intent:"primary",onClick:function(){return _(b.id)},fullWidth:"false",className:"mt-3",children:a.terminate}):(0,I.jsx)(af.z,{slim:"false",intent:"primary",fullWidth:"false",className:"mt-3 text-gray-700 bg-gray-200",children:a.terminate})}),(0,I.jsx)("div",{children:(null==a?void 0:null===(c=a.contractpdf)|| void 0===c?void 0:null===(d=c.data)|| void 0===d?void 0:null===(e=d.attributes)|| void 0===e?void 0:e.url)&&(0,I.jsx)(af.z,{slim:"false",fullWidth:"false",intent:"outline",target:"_blank",href:"https://strapi.supervista.net".concat(null==a?void 0:null===(f=a.contractpdf)|| void 0===f?void 0:null===(g=f.data)|| void 0===g?void 0:null===(h=g.attributes)|| void 0===h?void 0:h.url),className:"mt-3",children:a.download})})]})]}),(0,I.jsxs)("div",{className:"w-full md:w-1/4 max-md:mt-2",children:[(0,I.jsx)("p",{className:"pb-2 font-semibold",children:a.bank_details}),(0,I.jsx)("p",{className:"",children:null==b?void 0:null===(i=b.bank)|| void 0===i?void 0:i.holder_name}),(0,I.jsx)("p",{children:null==b?void 0:null===(j=b.bank)|| void 0===j?void 0:j.bank}),(0,I.jsx)("p",{children:null==b?void 0:null===(k=b.bank)|| void 0===k?void 0:k.iban})," ",(0,I.jsx)("p",{children:null==b?void 0:null===(l=b.bank)|| void 0===l?void 0:l.bic})]})]},n)})})]}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(f6,{prefix:null==a?void 0:a.name_prefix,title:null==a?void 0:a.your_contract}),(0,I.jsxs)("div",{className:"grid grid-cols-3 gap-4 mb-6 max-md:grid-cols-1",children:[(0,I.jsxs)("div",{className:"p-4 bg-gray-100 shadow rounded-xl",children:[(0,I.jsx)("div",{className:"text-center"}),(0,I.jsx)("p",{className:"pb-2 font-semibold",children:a.contractor}),(0,I.jsx)("p",{className:"min-h-[90px]",children:H}),(0,I.jsx)(am.r,{href:"/".concat(null==b?void 0:null===(d=b[0])|| void 0===d?void 0:d.slug),children:(0,I.jsx)("p",{className:"font-semibold text-right underline text-brandred",children:a.change})})]}),(0,I.jsxs)("div",{className:"p-4 bg-gray-100 shadow rounded-xl",children:[(0,I.jsx)("div",{className:"text-center"}),(0,I.jsx)("p",{className:"pb-2 font-semibold",children:a.contract_pdf}),(0,I.jsx)("p",{className:"pb-4",children:a.download_contract}),(null==a?void 0:null===(f=a.contractpdf)|| void 0===f?void 0:null===(h=f.data)|| void 0===h?void 0:null===(i=h.attributes)|| void 0===i?void 0:i.url)&&(0,I.jsx)("div",{className:"mx-auto",children:(0,I.jsx)(af.z,{slim:"false",intent:"primary",target:"_blank",href:"https://strapi.supervista.net".concat(null==a?void 0:null===(j=a.contractpdf)|| void 0===j?void 0:null===(k=j.data)|| void 0===k?void 0:null===(l=k.attributes)|| void 0===l?void 0:l.url),className:"w-full",children:a.download})})]}),(0,I.jsxs)("div",{className:"p-4 bg-gray-100 shadow rounded-xl",children:[(0,I.jsx)("div",{className:"text-center"}),(0,I.jsx)("p",{className:"pb-2 font-semibold",children:a.nocontract_title}),(0,I.jsx)("p",{className:"pb-4 min-h-[125px]",children:a.nocontract_info}),(0,I.jsx)("div",{className:"mx-auto",children:(0,I.jsx)(af.z,{slim:"false",intent:"primary",href:"".concat(a.nocontract_ctalink,"?zip=").concat(t),className:"",children:a.nocontract_cta})})]})]})]}))]})}),gO=b.Z.country,gP=function(j){var b,c,d,f=(0,aw.Z)({},j),l=f.brillenPath,a=f.headerConfig,o=null==a?void 0:null===(b=a.Mybrillen)|| void 0===b?void 0:b.pageheading,p=null==a?void 0:null===(c=a.Mybrillen)|| void 0===c?void 0:null===(d=c.LogoutButton)|| void 0===d?void 0:d.CTAText,h=(0,J.useState)(!1),q=h[0],v=h[1],i=(0,J.useState)(null),w=i[0],x=i[1],e=l.filter(function(a){return!0===a.isshow});e.sort(function(a,b){return a.position-b.position});var r,s=(0,k.useRouter)(),t=s.query.slug,y="".concat(t),u=(r=(0,n.Z)(m().mark(function a(){return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return v(!0),a.next=3,(0,g.ne)(gO);case 3:case"end":return a.stop()}},a)})),function(){return r.apply(this,arguments)}),z=function(a){x(a)},A=function(){x(null)};return(0,I.jsxs)("div",{className:"text-center max-md:hidden",children:[q&&(0,I.jsx)(ah.Z,{}),(0,I.jsx)("div",{className:"mt-5 mb-3 text-lg font-semibold text-left ".concat("de-BE"===gO?"text-svOrange":"text-brand"),children:o}),(0,I.jsxs)("ul",{children:[null==e?void 0:e.map(function(a,b){return(0,I.jsx)(am.r,{href:a.slug,className:"font-semibold hover:text-white",children:(0,I.jsxs)("li",{className:"flex items-center justify-start px-2 py-1 mx-auto mb-3 font-semibold bg-white border-2 cursor-pointer rounded-xl min-h-[52px] ".concat("de-BE"===gO?"text-svOrange border-svOrange hover:bg-svOrange":"text-accent border-accent hover:bg-accent","  hover:text-white ").concat(a.slug===y&&"!text-white ".concat("de-BE"===gO?"bgorange":"bg-accent")),onMouseEnter:function(){return z(b)},onMouseLeave:A,children:["de-BE"!==gO&&(0,I.jsx)(bK(),{loader:bL.vg,src:w===b||a.slug===y?"sidebar/".concat(a.type,"_hover.png"):"sidebar/".concat(a.type,".png"),alt:a.title,width:40,height:40}),a.title]})},b)}),(0,I.jsx)("li",{onClick:u,className:"flex items-center justify-center px-2 py-1 mx-auto mt-8 mb-3 font-semibold bg-white border-2 cursor-pointer rounded-xl ".concat("de-BE"===gO?"text-svOrange border-svOrange hover:bgorange":"text-accent border-accent hover:bg-accent"," hover:text-white min-h-[52px]"),children:p},"777")]})]})},gQ=function(c){var b=(0,aw.Z)({},c),d=b.textLocale,f=b.imageLocale,a=e.Z.getTranslaionArray(d,f);return(0,I.jsxs)("div",{className:"px-6 container-fluid max-w-[1400px]",children:[(0,I.jsx)("div",{className:"max-md:hidden",children:(null==a?void 0:a.dashboard_banner_desk)&&(0,I.jsx)(fQ.Z,{image:null==a?void 0:a.dashboard_banner_desk,layout:"responsive"})}),(0,I.jsx)("div",{className:"hidden max-md:block px-2 mx-auto",children:(null==a?void 0:a.dashboard_banner_mobile)&&(0,I.jsx)(fQ.Z,{image:null==a?void 0:a.dashboard_banner_mobile,layout:"responsive"})})]})},gR=function(c){var b=(0,aw.Z)({},c),d=b.textLocale,f=b.imageLocale,a=e.Z.getTranslaionArray(d,f),g=b.brillenPath.filter(function(a){return"dashboard"===a.type});return(0,J.useEffect)(function(){var a="";if(""!==e.Z.getUrlParam("mp")){var b=e.Z.getUrlParam("email").replace(/ /g,"+");a="?mp=1&email=".concat(b)}var c=setTimeout(function(){K().push("/".concat(g[0].slug,"/").concat(a))},2e3);return function(){return clearTimeout(c)}},[]),(0,I.jsx)("div",{className:"",children:a&&(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)("p",{className:"mt-16 text-xl font-semibold text-center",children:null==a?void 0:a.title}),(0,I.jsx)("p",{className:"mt-2 text-center",children:null==a?void 0:a.description})]})})},j=b.Z.country,gS="en"===j?"MM/DD/YYYY HH:mm:ss":"DD.MM.YYYY HH:mm:ss",gT=j,gU=(0,c.Q)(function(u){var h=(0,aw.Z)({},u),i=(0,J.useState)([]),c=i[0],z=i[1],k=(0,J.useState)(!1),v=k[0],A=k[1],l=(0,J.useState)([]),f=l[0],B=l[1],o=(0,J.useState)([]),b=o[0],C=o[1],p=(0,J.useState)(!1),d=p[0],D=p[1],q=(0,J.useState)(""),s=q[0],E=q[1],w=h.textLocale,x=h.imageLocale,a=e.Z.getTranslaionArray(w,x);(0,J.useEffect)(function(){(b=(0,n.Z)(m().mark(function a(){var b,c,d,e,f,h,i,k,l,n,o,p,q,s,t,u,v,w,x,y;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return A(!0),a.next=3,(0,g.SB)(j);case 3:if(!((null==(b=a.sent)?void 0:b.data.length)>0)){a.next=19;break}return z(null==b?void 0:null===(c=b.data)|| void 0===c?void 0:c[0]),((null==b?void 0:null===(d=b.data)|| void 0===d?void 0:null===(e=d[0])|| void 0===e?void 0:e.app_status)==="NORMAL"||(null==b?void 0:null===(f=b.data)|| void 0===f?void 0:null===(h=f[0])|| void 0===h?void 0:h.app_status)==="NO SHOW"||(null==b?void 0:null===(i=b.data)|| void 0===i?void 0:null===(k=i[0])|| void 0===k?void 0:k.app_status)==="PENDING"||(null==b?void 0:null===(l=b.data)|| void 0===l?void 0:null===(n=l[0])|| void 0===n?void 0:n.app_status)==="normal"||(null==b?void 0:null===(o=b.data)|| void 0===o?void 0:null===(p=o[0])|| void 0===p?void 0:p.app_status)==="NOT BUYING")&&(q=r(
1)(new Date).format("YYYY-MM-DD"),s=r()(b.data[0].app_time,gS).format("YYYY-MM-DD"),r()(new Date(q))<=r()(new Date(s))&&D(!0)),a.t0=cq.Z,a.next=11,Promise.all([(0,f9.Io)("/voucher-ticket-august",{populate:"deep",locale:j}),(0,f9.Io)("/flow-for-booking",{populate:"*",locale:j}),]);case 11:a.t1=a.sent,u=(t=(0,a.t0)(a.t1,2))[0],v=t[1],(null==u?void 0:u.data)&&G(null==b?void 0:null===(w=b.data)|| void 0===w?void 0:w[0],null==v?void 0:null===(x=v.data)|| void 0===x?void 0:x.attributes,null==u?void 0:null===(y=u.data)|| void 0===y?void 0:y.attributes),A(!1),a.next=20;break;case 19:A(!1);case 20:case"end":return a.stop()}},a)})),function(){return b.apply(this,arguments)})();var b,a={};a.type="pageview_appt",a.customerId=void 0!==cF.Z.get("customerid")?cF.Z.get("customerid"):"",a.source="mein-brillenvertrag",a.slug=window.location.toString(),(0,aj.nj)(j,"eventtrack",a)},[]);var y,F=function(a){var b=a.split("-"),c=r().utc(b,"HH:mm:ss");return r()(c).format("HH:mm")},t=function(a,b,f){if(a&&b){var c="",d="",e="de"===j||"de-BE"===j?"Uhr":"h";return"de"===j||"de-BE"===j||"es"===j||"it"===j||"it-CH"===j||"pl"===j||"at"===j?(c=r()(a,"DD.MM.YYYY HH:mm").format("dddd, DD.MM.YYYY"),d=r().utc(b,"DD.MM.YYYY HH:mm").format("HH:mm")):"ja"===j?(e="",c=r()(a,"DD.MM.YYYY HH:mm").format("YYYY/MM/DD dddd"),d=r().utc(b,"DD.MM.YYYY HH:mm").format("HH:mm")):"en"===j&&(c=r()(a,gS).format("dddd, DD/MM/YYYY"),e="",d=F(b.split(" ")[1])),1===f?"".concat(c):"".concat(d," ").concat(e)}return!1},G=(y=(0,n.Z)(m().mark(function a(b,c){var d,f,g,h,i;return m().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return A(!0),(d={}).event_id=null==b?void 0:b.app_id,a.next=5,(0,ai.DW)(gT,d);case 5:(null==(f=a.sent)?void 0:f.success)?(A(!1),g=f.data,("de"===j||"de-BE"===j||"ast"===j||"es"===j||"it"===j||"it-CH"===j||"pl"===j)&&(null==g?void 0:g.link_to_pass_page)&&E(null==g?void 0:g.link_to_pass_page),C(g),(h={}).event_id=b.app_id,h.f_name=g.first_name,h.StartTimeFormatted=r()(g.app_date_time,"DD.MM.YYYY HH:mm").format("YYYY-MM-DD HH:mm"),h.EndTimeFormatted=r()(g.app_end_date_time,"DD.MM.YYYY HH:mm").format("YYYY-MM-DD HH:mm"),h.shopName=b.store_name,h.shopAddress="".concat(b.street," ").concat(b.street2),h.shopZip=b.store_zip,h.shopCity=b.store_city,h.title=null==c?void 0:c.calendarTitle,h.description=null==c?void 0:c.calendarData,h.oddoApiCountry=gT,B(i=e.Z.calenderEventCallNew(h))):A(!1);case 7:case"end":return a.stop()}},a)})),function(a,b){return y.apply(this,arguments)});return(0,I.jsxs)("div",{className:"w-[90%] ml-auto max-md:mx-auto max-md:w-full",children:[v&&(0,I.jsx)(ah.Z,{}),(!(null==c?void 0:c.app_id)||!d)&&(0,I.jsxs)("div",{className:"pt-8",children:[(0,I.jsx)("p",{className:"pb-8 text-xl font-bold",children:null==a?void 0:a.deal_title}),(0,I.jsx)("p",{className:"pb-6 font-bold",children:null==a?void 0:a.no_app_text1}),(0,I.jsx)("p",{className:"pb-6",children:null==a?void 0:a.no_app_text2}),(0,I.jsx)("div",{className:"w-fit",children:(0,I.jsx)(af.z,{slim:"false",intent:"primary",href:null==a?void 0:a.make_appoinment_cta_link,className:"",children:null==a?void 0:a.make_appoinment_cta_text})}),(0,I.jsx)("p",{className:"pt-6 text-md text-brandred",children:null==a?void 0:a.notice_title}),(0,I.jsx)("p",{className:"text-md text-brandred",children:null==a?void 0:a.notice_info}),(0,I.jsx)("p",{className:"pt-6 text-md",children:null==a?void 0:a.info_text1}),(0,I.jsx)("p",{className:"pt-6 text-md",children:null==a?void 0:a.info_text2}),(0,I.jsx)("p",{className:"pt-6 text-md",children:null==a?void 0:a.info_text3}),(0,I.jsx)("p",{className:"pt-6 text-md",children:null==a?void 0:a.info_text4}),(0,I.jsx)("p",{className:"py-6 font-semibold text-md",children:null==a?void 0:a.info_text5})]}),a&&(null==c?void 0:c.app_id)&&d&&(0,I.jsxs)("div",{id:"gotoform",className:"mainSlug_Ticket",children:[(0,I.jsx)("div",{className:"pt-8",children:a&&d&&(0,I.jsx)("div",{className:"container mx-auto",children:(0,I.jsxs)("div",{className:"p-8 bg-white max-md:p-0",children:[(0,I.jsx)("p",{className:"pb-8 text-xl font-bold",children:null==a?void 0:a.deal_title}),(0,I.jsxs)("div",{className:"flex max-md:block",children:[(0,I.jsxs)("div",{className:"w-1/2 mr-4 max-md:mr-0 max-md:w-full max-md:pb-4",children:[(0,I.jsx)("p",{className:"font-bold",children:null==a?void 0:a.store_title}),(0,I.jsx)("div",{className:"p-4 mt-4 bg-gray-100 shadow rounded-xl min-h-[145px]",children:(0,I.jsxs)("div",{className:"flex items-center",children:[(0,I.jsx)(bK(),{loader:bL.vg,src:"contract/Isolationsmodus.png",alt:"",width:70,height:70}),"de"===j||"de-BE"===j?(0,I.jsxs)("div",{className:"pl-2",children:[(0,I.jsx)("p",{className:"font-semibold text-md",children:null==b?void 0:b.store_name}),(0,I.jsxs)("p",{className:"font-semibold text-md",children:[null==b?void 0:b.street,", ",null==b?void 0:b.street2]}),(0,I.jsxs)("p",{className:"font-semibold text-md",children:[null==b?void 0:b.zip,", ",null==b?void 0:b.city]})]}):(0,I.jsxs)("div",{className:"pl-2",children:[(0,I.jsx)("p",{className:"font-semibold text-black",children:null==b?void 0:b.store_name}),(0,I.jsxs)("p",{className:"font-semibold text-black",children:[null==b?void 0:b.street," , ",null==b?void 0:b.street2,","," ",null==b?void 0:b.zip]}),(0,I.jsx)("p",{className:"font-semibold text-black",children:null==b?void 0:b.city})]})]})})]}),(0,I.jsxs)("div",{className:"w-1/2 ml-4 max-md:ml-0 max-md:w-full",children:[(0,I.jsx)("p",{className:"font-bold",children:null==a?void 0:a.datetime_title}),(0,I.jsxs)("div",{className:"p-4 mt-4 bg-gray-100 shadow rounded-xl min-h-[145px]",children:[(0,I.jsxs)("div",{className:"flex items-center",children:[(0,I.jsx)(bK(),{loader:bL.vg,src:"contract/calendar-icon.png",alt:"",width:70,height:70}),(0,I.jsxs)("div",{className:"pl-2",children:[(0,I.jsx)("p",{className:"font-semibold text-black",children:t(null==b?void 0:b.app_date_time,null==b?void 0:b.app_date_time,1)}),(0,I.jsx)("p",{className:"font-semibold text-black",children:t(null==b?void 0:b.app_date_time,null==b?void 0:b.app_date_time,2)})]})]}),(0,I.jsx)("p",{onClick:function(){var a="";"at"===gT&&(a="-at");var b="/appointmentupdate".concat(a),d="?event_id=".concat(c.app_id);K().push(b+d)},className:"mt-2 font-medium text-right underline cursor-pointer text-brandred",children:null==a?void 0:a.change_date})]})]})]}),(0,I.jsx)("div",{className:"",children:(0,I.jsx)("p",{className:"pt-8 text-lg font-semibold text-center",children:null==a?void 0:a.dealtitle})}),(null==b?void 0:b.coupon_code)&&(0,I.jsx)("p",{className:"flex px-8 py-2 mx-auto my-4 font-semibold text-center border border-black rounded-lg w-fit",children:null==b?void 0:b.coupon_code}),(null==b?void 0:b.universal_coupon_code)&&(0,I.jsx)("p",{className:"flex px-8 py-2 mx-auto my-4 font-semibold text-center border border-black rounded-lg w-fit",children:null==b?void 0:b.universal_coupon_code}),(0,I.jsx)("p",{className:"text-center text-md text-brandred",children:null==a?void 0:a.notice_title}),(0,I.jsx)("p",{className:"text-center text-md text-brandred",children:null==a?void 0:a.notice_info}),(0,I.jsx)("p",{className:"pt-6 text-md",children:null==a?void 0:a.info_text1}),(0,I.jsx)("p",{className:"pt-6 text-md",children:null==a?void 0:a.info_text2}),(0,I.jsx)("p",{className:"pt-6 text-md",children:null==a?void 0:a.info_text3}),(0,I.jsx)("p",{className:"pt-6 text-md",children:null==a?void 0:a.info_text4}),(0,I.jsx)("p",{className:"pt-6 font-semibold text-md",children:null==a?void 0:a.info_text5})]})})}),a&&d&&(0,I.jsx)("div",{className:"pb-8",children:(0,I.jsx)("div",{className:"container mx-auto",children:(0,I.jsxs)("div",{className:"p-8 bg-white max-md:p-0 max-md:pt-8",children:[(0,I.jsx)("p",{className:"pb-8 font-semibold text-black",children:null==a?void 0:a.save_calendar_title}),(0,I.jsxs)("div",{className:"flex flex-wrap justify-between max-md:block",children:[(0,I.jsx)("div",{className:"text-center max-md:text-left",children:(0,I.jsx)(am.r,{href:(0,f8.lk)(f),className:"",target:"_blank",children:(0,I.jsx)("span",{className:"font-semibold underline text-brandred",children:null==a?void 0:a.google_cal_text})})}),(0,I.jsx)("div",{className:"text-center max-md:text-left max-md:pt-2",children:(0,I.jsx)(am.r,{className:"",href:(0,f8.sm)(f),target:"_blank",children:(0,I.jsx)("span",{className:"font-semibold underline text-brandred",children:a.outlook_cal_text})})}),(0,I.jsx)("div",{className:"text-center max-md:text-left max-md:pt-2",children:(0,I.jsx)(am.r,{href:s,target:"_blank",children:(0,I.jsx)("span",{className:"font-semibold underline text-brandred",children:null==a?void 0:a.google_wallet_text})})}),(0,I.jsx)("div",{className:"text-center max-md:text-left max-md:pt-2",children:(0,I.jsx)(am.r,{href:s,target:"_blank",children:(0,I.jsx)("span",{className:"font-semibold underline text-brandred",children:null==a?void 0:a.apple_wallet_text})})}),(0,I.jsx)("div",{className:"text-center max-md:text-left max-md:pt-2",children:(0,I.jsx)(am.r,{className:"",href:(0,f8.Ir)(f),target:"_blank",children:(0,I.jsx)("span",{className:"font-semibold underline text-brandred",children:a.yahoo_cal_text})})})]})]})})})]})]})}),gV=b.Z.country,gW=function(b){var a=b.userZone;return!!a.length&&(0,I.jsx)(aa.Z,{blocks:a})},gX=function(c){var b=(0,aw.Z)({},c),a=b.apiResult,d=b.brillenPath;return(a.brillenPath=d,a.logincase=1,"login"===a.pageType)?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(ac.Z,{seo:null==a?void 0:a.seo}),(0,I.jsx)(fH.Z,(0,H.Z)({},a))]}):"register"===a.pageType?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(ac.Z,{seo:null==a?void 0:a.seo}),(0,I.jsx)(fP,(0,H.Z)({},a))]}):"dashboard"===a.pageType?"de-BE"===gV?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(ac.Z,{seo:null==a?void 0:a.seo}),(0,I.jsxs)("div",{className:"tailwind",children:["de-BE"===gV&&(0,I.jsx)(gQ,(0,H.Z)({},a)),(0,I.jsx)(f1,(0,H.Z)({},b))]})]}):"de"===gV||"ast"===gV?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(ac.Z,{seo:null==a?void 0:a.seo}),(0,I.jsxs)("div",{className:"tailwind",children:[(0,I.jsx)(f_,(0,H.Z)({},a)),(0,I.jsx)(gW,(0,H.Z)({},a))]})]}):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(ac.Z,{seo:null==a?void 0:a.seo}),(0,I.jsxs)("div",{className:"tailwind",children:[(0,I.jsx)(fW,(0,H.Z)({},a)),(0,I.jsx)(gW,(0,H.Z)({},a))]})]}):"qrcode"===a.pageType?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(ac.Z,{seo:null==a?void 0:a.seo}),(0,I.jsxs)("div",{className:"my-1 tailwind",children:[(0,I.jsxs)("div",{className:"container flex flex-col md:flex-row",children:[(0,I.jsx)("div",{className:"w-full md:w-1/5",children:(0,I.jsx)(gP,(0,H.Z)({},b))}),(0,I.jsx)("div",{className:"w-full md:w-4/5",children:(0,I.jsx)(f7,(0,H.Z)({},a))})]}),(0,I.jsx)(gW,(0,H.Z)({},a))]})]}):"loginsuccess"===a.pageType?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(ac.Z,{seo:null==a?void 0:a.seo}),(0,I.jsx)("div",{className:"my-1 tailwind",children:(0,I.jsx)("div",{className:"container flex flex-col md:flex-row",children:(0,I.jsx)("div",{className:"w-full",children:(0,I.jsx)(gR,(0,H.Z)({},a))})})})]}):"appointment"===a.pageType?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(ac.Z,{seo:null==a?void 0:a.seo}),(0,I.jsxs)("div",{className:"my-1 tailwind",children:["de-BE"===gV&&(0,I.jsx)(gQ,(0,H.Z)({},a)),(0,I.jsxs)("div",{className:"container flex flex-col md:flex-row",children:[(0,I.jsx)("div",{className:"w-full md:w-1/5",children:(0,I.jsx)(gP,(0,H.Z)({},b))}),(0,I.jsx)("div",{className:"w-full md:w-4/5",children:"de-BE"===gV?(0,I.jsx)(gU,(0,H.Z)({},a)):(0,I.jsx)(gg,(0,H.Z)({},a))})]}),(0,I.jsx)(gW,(0,H.Z)({},a))]})]}):"order"===a.pageType?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(ac.Z,{seo:null==a?void 0:a.seo}),(0,I.jsxs)("div",{className:"my-1 tailwind",children:["de-BE"===gV&&(0,I.jsx)(gQ,(0,H.Z)({},a)),(0,I.jsxs)("div",{className:"container flex flex-col md:flex-row",children:[(0,I.jsx)("div",{className:"w-full md:w-1/5",children:(0,I.jsx)(gP,(0,H.Z)({},b))}),(0,I.jsx)("div",{className:"w-full md:w-4/5",children:(0,I.jsx)(gm,(0,H.Z)({},a))})]}),(0,I.jsx)(gW,(0,H.Z)({},a))]})]}):"orderpaymentprocess"===a.pageType?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(ac.Z,{seo:null==a?void 0:a.seo}),(0,I.jsxs)("div",{className:"my-1 tailwind",children:[(0,I.jsxs)("div",{className:"container flex flex-col md:flex-row",children:[(0,I.jsx)("div",{className:"w-full md:w-1/5",children:(0,I.jsx)(gP,(0,H.Z)({},b))}),(0,I.jsx)("div",{className:"w-full md:w-4/5",children:(0,I.jsx)(gu,(0,H.Z)({},a))})]}),(0,I.jsx)(gW,(0,H.Z)({},a))]})]}):"vision"===a.pageType?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(ac.Z,{seo:null==a?void 0:a.seo}),(0,I.jsxs)("div",{className:"my-1 tailwind",children:["de-BE"===gV&&(0,I.jsx)(gQ,(0,H.Z)({},a)),(0,I.jsxs)("div",{className:"container flex flex-col md:flex-row",children:[(0,I.jsx)("div",{className:"w-full md:w-1/5",children:(0,I.jsx)(gP,(0,H.Z)({},b))}),(0,I.jsx)("div",{className:"w-full md:w-4/5",children:(0,I.jsx)(gB,(0,H.Z)({},a))})]}),(0,I.jsx)(gW,(0,H.Z)({},a))]})]}):"friend"===a.pageType?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(ac.Z,{seo:null==a?void 0:a.seo}),(0,I.jsx)("div",{className:"my-1 tailwind",children:(0,I.jsxs)("div",{className:"container flex flex-col md:flex-row",children:[(0,I.jsx)("div",{className:"w-full md:w-1/5",children:(0,I.jsx)(gP,(0,H.Z)({},b))}),(0,I.jsxs)("div",{className:"w-full md:w-4/5",children:[(0,I.jsx)("div",{className:"mt-3 md:mt-12"}),(0,I.jsx)(gw,(0,H.Z)({},a)),(0,I.jsx)("div",{className:"w-full md:w-[90%] ml-auto max-md:mx-auto",children:(0,I.jsx)(gW,(0,H.Z)({},a))})]})]})})]}):"family"===a.pageType?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(ac.Z,{seo:null==a?void 0:a.seo}),(0,I.jsxs)("div",{className:"my-1 tailwind",children:["de-BE"===gV&&(0,I.jsx)(gQ,(0,H.Z)({},a)),(0,I.jsxs)("div",{className:"container flex flex-col md:flex-row",children:[(0,I.jsx)("div",{className:"w-full md:w-1/5",children:(0,I.jsx)(gP,(0,H.Z)({},b))}),(0,I.jsx)("div",{className:"w-full md:w-4/5",children:(0,I.jsx)(gz,(0,H.Z)({},a))})]}),(0,I.jsx)(gW,(0,H.Z)({},a))]})]}):"favorite"===a.pageType?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(ac.Z,{seo:null==a?void 0:a.seo}),(0,I.jsxs)("div",{className:"my-1 tailwind",children:["de-BE"===gV&&(0,I.jsx)(gQ,(0,H.Z)({},a)),(0,I.jsxs)("div",{className:"container flex flex-col md:flex-row",children:[(0,I.jsx)("div",{className:"w-full md:w-1/5",children:(0,I.jsx)(gP,(0,H.Z)({},b))}),(0,I.jsx)("div",{className:"w-full md:w-4/5",children:(0,I.jsx)(gD,(0,H.Z)({},a))})]}),(0,I.jsx)(gW,(0,H.Z)({},a))]})]}):"profile"===a.pageType?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(ac.Z,{seo:null==a?void 0:a.seo}),(0,I.jsxs)("div",{className:"my-1 tailwind",children:["de-BE"===gV&&(0,I.jsx)(gQ,(0,H.Z)({},a)),(0,I.jsxs)("div",{className:"container flex flex-col md:flex-row",children:[(0,I.jsx)("div",{className:"w-full md:w-1/5",children:(0,I.jsx)(gP,(0,H.Z)({},b))}),(0,I.jsx)("div",{className:"w-full md:w-4/5",children:(0,I.jsx)(gH,(0,H.Z)({},a))})]}),(0,I.jsx)(gW,(0,H.Z)({},a))]})]}):"credits"===a.pageType?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(ac.Z,{seo:null==a?void 0:a.seo}),(0,I.jsxs)("div",{className:"my-1 tailwind",children:["de-BE"===gV&&(0,I.jsx)(gQ,(0,H.Z)({},a)),(0,I.jsxs)("div",{className:"container flex flex-col md:flex-row",children:[(0,I.jsx)("div",{className:"w-full md:w-1/5",children:(0,I.jsx)(gP,(0,H.Z)({},b))}),(0,I.jsx)("div",{className:"w-full md:w-4/5",children:"de"===gV||"ast"===gV?(0,I.jsx)(gL,(0,H.Z)({},a)):(0,I.jsx)(gJ,(0,H.Z)({},a))})]}),(0,I.jsx)(gW,(0,H.Z)({},a))]})]}):"contract"===a.pageType?(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(ac.Z,{seo:null==a?void 0:a.seo}),(0,I.jsxs)("div",{className:"my-1 tailwind",children:["de-BE"===gV&&(0,I.jsx)(gQ,(0,H.Z)({},a)),(0,I.jsxs)("div",{className:"container flex flex-col md:flex-row",children:[(0,I.jsx)("div",{className:"w-full md:w-1/5",children:(0,I.jsx)(gP,(0,H.Z)({},b))}),(0,I.jsx)("div",{className:"w-full md:w-4/5",children:(0,I.jsx)(gN,(0,H.Z)({},a))})]}),(0,I.jsx)(gW,(0,H.Z)({},a))]})]}):null},gY=function(a){var c=a.type,b=a.isList;switch(c){case R.b.pressArticle:if(b)return(0,I.jsx)(b7,{});return(0,I.jsx)(b$,(0,H.Z)({},a));case R.b.blogArticle:if(b)return(0,I.jsx)(cE,{});return(0,I.jsx)(bH,(0,H.Z)({},a));case R.b.jackys:if(b)return(0,I.jsx)(cW,{});return(0,I.jsx)(bY,(0,H.Z)({},a));case R.b.deal:case R.b.dealOffer:case R.b.tchibo:return(0,I.jsx)(aY,(0,H.Z)({},a));case R.b.landingPage:return(0,I.jsx)(cZ,(0,H.Z)({},a));case R.b.hearingAid:return(0,I.jsx)(c0,(0,H.Z)({},a));case R.b.sponsorPage:return(0,I.jsx)(c3,(0,H.Z)({}
1,a));case R.b.productshop:return(0,I.jsx)(d_,(0,H.Z)({},a));case R.b.insurance:return(0,I.jsx)(e$,(0,H.Z)({},a));case R.b.reorder:return(0,I.jsx)(e1,(0,H.Z)({},a));case R.b.farmacy:return(0,I.jsx)(e4,(0,H.Z)({},a));case R.b.optiker:return(0,I.jsx)(e7,(0,H.Z)({},a));case R.b.b2b:return(0,I.jsx)(fG,(0,H.Z)({},a));case R.b.login:return(0,I.jsx)(gX,(0,H.Z)({},a));default:return null}},gZ=a(19890),g$=!0,g_=function(c){var e=(0,k.useRouter)(),a=c.apiResult,g=c.type;if(b.Z.storePageMode)return(0,I.jsx)(gZ.default,(0,H.Z)({},c));var f=e.query.slug?e.query.slug[0]:"homepage",d="de-AT"===b.Z.country?"focusRobotoFont":"de-BE"===b.Z.country?"contractRobotoFont":"en"===b.Z.country?"poppinsFont":"avenirfont"===f?"avenirFont":"de-DE"===b.Z.country||"en-DE"===b.Z.country||"ar"===b.Z.country||"en-EU"===b.Z.country||"ja-JP"===b.Z.country||"it-IT"===b.Z.country||"es-SV"===b.Z.country||"pl-PL"===b.Z.country?"steinerExo2Font steinerBodyContainer":"";return null!=g?""!==d?(0,I.jsx)("div",{className:" ".concat(d),children:(0,I.jsx)(gY,(0,H.Z)({},c))}):(0,I.jsx)(gY,(0,H.Z)({},c)):(0,I.jsxs)(I.Fragment,{children:[(0,I.jsx)(ac.Z,{seo:null==a?void 0:a.seo}),(0,I.jsx)("div",{className:"mainSlug_".concat(f," ").concat(d),children:(0,I.jsx)(W._,{value:null==a?void 0:a.offername,children:(0,I.jsx)("div",{className:"tailwind",children:(0,I.jsx)(aa.Z,{blocks:null==a?void 0:a.CustomizationArea,useBarlow:null==a?void 0:a.useBarlow})})})})]})}},19890:function(d,b,a){"use strict";a.r(b),a.d(b,{"__N_SSG":function(){return h}});var e=a(85893),c=a(9008),f=a.n(c),g=a(68110),h=!0;b.default=function(){return(0,e.jsxs)("div",{className:"tailwind",children:[(0,e.jsx)(g.Z,{}),(0,e.jsx)(f(),{children:(0,e.jsx)("meta",{name:"robots",content:"noindex"})})]})}}},function(a){a.O(0,[662,279,443,678,847,804,406,84,584,473,69,923,774,888,179],function(){var b;return a(a.s=95759)}),_N_E=a.O()}])

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.