PageSourceSearch

https://www.strefa.pl/component---plugins-gatsby-plugin-bonus-src-…uts-bonus-index-tsx-824d1f96c542d28906f8.js

js strefa.pl collected 2026-09-24 19:09:06 UTC 63,801 bytes, 2 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{};e.SENTRY_RELEASE={id:"a184d1140862f5dea78d2082c6071fc4a11715b8"};var n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="e84bc39d-3437-4426-8897-f1ce21779c06",e._sentryDebugIdIdentifier="sentry-dbid-e84bc39d-3437-4426-8897-f1ce21779c06")}catch(e){}}(),(self.webpackChunkonestore_gatsby=self.webpackChunkonestore_gatsby||[]).push([[34372],{17223:function(e,n,t){t.d(n,{A:function(){return i}});var a=t(55009),s=t(6482),o=t(74848);function i({placeholders:e}){const n=Array.from({length:e},(e,n)=>(0,o.jsx)(a.A,{isLoading:!0,domain:"",price:"",button:{text:"",title:"",onClick:()=>null}},`placeholder_${n}`));return(0,o.jsx)(s.A,{items:n})}},23356:function(e,n,t){t.d(n,{T:function(){return T}});var a=t(55009),s=t(92961),o=t(5341),i=t(98314),l=t(34251),r=t(74848);function d({extension:e,name:n,url:t,tooltip:d}){return(0,r.jsx)(a.A,{domain:{name:n,extension:`.${e}`,extensionColor:"secondary",tooltip:(0,l.A)(d)?void 0:(0,r.jsx)(i.A,{labelTypography:"tiny1",iconSize:"large",children:d})},icon:(0,r.jsx)(o.A,{}),isLoading:!1,customButton:(0,l.A)(t)?void 0:(0,r.jsx)(s.A,{url:t,domainName:`${n}.${e}`}),hasImagesAndLabelBottomOnMobile:!0})}var c=t(96540),u=t(11058),m=t(55384),p=t(12412),h=t(39903),x=t(85415),A=t(7405),g=t(72039),j=t(52694),f=t(53052),y=t(2168),b=t(44873),v=t(72222),S=t(28749),k=t(6772),P=t(13894);function C({fqdn:e,extension:n,status:t,name:s,period:o,planId:i,extensionColor:l,eventSource:d}){var C,T;const{addDomainsToBasket:N}=(0,g.A)(),{domainLabel:B,tooltip:w,limitTooltip:I,priceInfo:D}=(0,b.f)(i),L=`search-button-${e}`,E=(0,A.A)(L),{forDomainButtons:_}=(0,j.A)(),O=(0,k.GV)(n=>n.basket.domains.includes(e)),V=E||null===o,R=S.Mj.AVAILABLE===t,G=o?new x._M(o):null,M=[{fqdn:e,plan:i}],{currentPriceType:F}=(0,y.WO)(),$=(0,p.A)("small","medium"),z=(0,c.useCallback)(()=>{V||(O?document.location.href=_:((0,v.xc)(M&&M[0].plan?M[0].plan:0,d||""),N(M,[],L,!1)))},[M,L,V,O]);let q=R?(0,h.Ay)("domainSearch.addToBasket"):(0,h.Ay)("domainSearch.domainUnvailable");O&&(q=(0,h.Ay)("button.success"));const H=null===o?"":` ${(0,h.Ay)("periodName.searchDomainPrice.3",{smart_count:null==G?void 0:G.getPeriodLength()})}`,U=null!==(C=null==G?void 0:G.hasPromotion())&&void 0!==C&&C,K=null!==(T=null==G?void 0:G.hasLimit())&&void 0!==T&&T;return(0,r.jsx)(a.A,{domain:{name:s,extension:`.${n}`,extensionColor:l||"success"},price:(0,r.jsx)(P.A,{periodInfo:G,priceInfo:D,priceType:F,periodText:H,tooltip:w,priceVariant:{type:m.n.SMALL,align:$?"left":"right"}}),isLoading:V,label:(0,r.jsxs)(r.Fragment,{children:[B||U?(0,r.jsx)(u.A,{size:"small",variant:U?"primaryOutlined":"notify",emphasis:"high",children:U?(0,h.Ay)("marketplace.discountTitle"):B}):null,K&&I?(0,r.jsx)(f.A,{tooltipText:I}):null]}),isDisabled:!R&&!V,disabledMessage:R||V?void 0:(0,h.Ay)("domainSearch.domainUnvailable"),hasSuccess:O,button:{text:q,title:q,onClick:z}})}function T({domain:e,status:n,period:t,planId:a,premiumTooltip:s,extensionColor:o,eventSource:i}){if(n===S.Mj.EXTERNAL){const n=e;return(0,r.jsx)(d,{extension:n.extension,name:n.name,url:n.external_url,tooltip:s},n.fqdn)}const l=e;return(0,r.jsx)(C,{period:t,planId:a,name:l.name,fqdn:l.fqdn,extension:l.extension,status:n,extensionColor:o,eventSource:i},l.fqdn)}},41618:function(e,n,t){t.r(n),t.d(n,{default:function(){return ea}});var a=t(96540),s=t(39016),o=t(72531),i=t(82159),l=t(80806),r=t(74848);function d(){return(0,r.jsxs)(o.A,{spacing:"small",color:"darkLight",children:[(0,r.jsx)(s.Ay,{children:(0,r.jsxs)("div",{className:"mb-10 flex flex-col gap-5 lg:flex-row md:mb-8",children:[(0,r.jsx)("div",{className:"min-w-0 flex-1",children:(0,r.jsx)(i.A,{isLoading:!0,aside:null})}),(0,r.jsx)("div",{className:"min-w-0 flex-1",children:(0,r.jsx)(i.A,{isLoading:!0,aside:null})})]})}),(0,r.jsx)("div",{className:"fixed bottom-0 left-0 right-0 z-10 md:bottom-3 md:px-4",children:(0,r.jsxs)("div",{className:"mx-auto flex max-w-[82rem] flex-col gap-3 rounded-sm border border--base bg-surface-base p-3 shadow-top-md md:flex-row md:items-center md:gap-8 md:p-3 md:pl-6 md:pr-3 md:shadow-md",children:[(0,r.jsx)("div",{className:"flex items-center gap-2 md:flex-1",children:(0,r.jsx)(l.E,{animate:!0,variant:"rectangle",width:140,height:20})}),(0,r.jsx)("div",{className:"flex shrink-0 items-center gap-2",children:(0,r.jsx)(l.E,{animate:!0,variant:"rectangle",width:120,height:40})})]})})]})}var c=t(47121),u=t(83866),m=t(12412),p=t(39903),h=t(84027),x=t(57026),A=t(14361),g=t(58156),j=t.n(g),f=t(11058),y=t(47160),b=t(86159),v=t(65831),S=t(71846),k=t(34251),P=t(1639),C=t(95312),T=t(24170),N=t(36841),B=t(94556);function w({typography:e="large1",children:n}){return n?(0,r.jsx)(c.A,{typography:e,children:(0,r.jsx)(N.Ay,{options:{forceInline:!0,overrides:B.GZ},children:n})}):null}function I({content:e,title:n,description:t,longDescription:a,aside:s,bundledItem:o,pages:i,hasPromotion:l,footerContent:d}){const c="large1",u="string"==typeof n,m=u?(0,r.jsx)(w,{typography:c,children:n}):n;return(0,r.jsx)(b.A,{content:e,title:(0,r.jsxs)(v.A,{condition:!(0,k.A)(i),wrapper:e=>(0,r.jsx)(y.A,{typography:c,title:u&&n||"",type:"underline",to:j()(i,"[0].flatData.url"),openInNewTab:!0,children:e}),children:[l?(0,r.jsx)(A.A,{bottomSpace:1,children:(0,r.jsx)(f.A,{variant:"notifyLight",size:"small",children:(0,p.Ay)("marketplace.discountTitle")})}):null,m]}),description:(0,r.jsx)(C.A,{children:t}),longDescription:a?(0,r.jsx)(T.A,{children:a}):void 0,aside:s,bundledItem:o,longDescriptionVisibilityToggle:{showLessLabel:(0,p.Ay)("bonus.showLessLabel").toUpperCase(),showMoreLabel:(0,p.Ay)("bonus.showMoreLabel").toUpperCase(),showMoreOnClick:S.rO},footerContent:(0,r.jsxs)(r.Fragment,{children:[d,(0,r.jsx)(P.A,{})]})})}var D=t(64810),L=t(38888),E=t(86579),_=t(38455),O=t(85415),V=t(18735),R=t(74649),G=t(73590),M=t(2168),F=t(55802),$=t(12467),z=t(25156),q=t(28606),H=t(1770),U=t(30866),K=t(6772);var W=({plan:e})=>{const{currentPriceType:n}=(0,M.WO)(),t=(0,K.jL)(),s=(0,K.GV)(H.Bm),o=(0,K.GV)(H.Hm),i=(0,K.GV)(U.Zb),{0:l,1:d}=(0,a.useState)(!1);(0,a.useEffect)(()=>{d(i)},[i]);const u=e.periods.find(e=>e.default);if((0,k.A)(u))return null;const m=new O._M(u);if((0,k.A)(m))return null;const{priceValue:h,lowestPrice:x}=m.getPrices(n),g=m.hasPromotion(),j=` ${(0,p.Ay)(`periodName.searchDomainPrice.${m.getPeriodType()}`,{smart_count:null==m?void 0:m.getPeriodLength()})}`,f=(0,p.Ay)(l?"preBasket.upsell.checkout":"preBasket.upsell.addToBasket");return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(_.A,{horizontalAlign:"right",children:[(0,r.jsxs)(c.A,{typography:"medium3_s",color:g?"primary":void 0,children:[h," ",(0,r.jsx)(c.A,{typography:"nano1",children:j})]}),g?(0,r.jsx)(A.A,{topSpace:2,children:(0,r.jsx)(R.A,{value:x})}):null]}),(0,r.jsx)(E.A,{type:"dashed",marginSpace:3,emphasis:"low"}),(0,r.jsx)(L.Ay,{color:G.Sq,title:f,isExpanded:!0,onClick:l?()=>{(0,F.VY)(s),(0,D.oo)($.Ay.getBasketUrl())}:()=>{t((0,z.lZ)([{plan:e.id,quantity:1}],null,q._i.DOMAIN_EMAIL_HOOK,()=>d(!0)))},isLoading:"pending"===o,icon:l?V.A:void 0,children:(0,r.jsx)(c.A,{typography:"button",color:"white",hasNonBreakingSpace:!0,children:f})})]})},Q=t(67927),Z=t(71044),Y=t(53481);function X(){const e=(0,K.GV)(H.A_),{emailHackPlan:n,pageTitle:t,boxTitle:a,boxText:s,bannerText:o}=(0,Z.A)(),i=(0,Q.A)();if((0,k.A)(n)||(0,k.A)(e))return null;const l=(0,k.A)(i)?void 0:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(x.A,{typography:"large3",name:`${i.emailName}@${i.domainName}`,extension:i.domainExtension}),(0,r.jsx)(w,{typography:"large3",children:a})]});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c.A,{typography:{small:"huge",medium:"great",large:"great"}
1,htmlTag:"h2",pushSpace:2,children:t}),(0,r.jsx)(I,{content:null,title:l,description:s,aside:(0,r.jsx)(W,{plan:n[0].flatData}),footerContent:(0,k.A)(o)?null:(0,r.jsx)(A.A,{topSpace:4,bottomSpace:4,children:(0,r.jsx)(h.Ay,{hasFullWidth:!0,text:(0,r.jsx)(Y.A,{typography:{bold:"nano3",default:"nano1"},emphasis:"medium",hasOverridedSmallTypography:!0,pushSpace:0,children:o})})})})]})}var J=t(16950),ee=t(27441),ne=t(17129);function te(e){const{isLoading:n,result:t}=(0,ne.A)(e);if(null!=t&&t.upsellProductTitle)return{title:n?(0,r.jsx)(J.Ay,{size:"medium"}):(0,r.jsx)(w,{children:null==t?void 0:t.upsellProductTitle}),description:n?(0,r.jsx)(J.Ay,{size:"medium"}):(0,r.jsx)(C.A,{children:t.upsellProductContent})};if(null!=t&&t.mainProductTitle)return{title:n?(0,r.jsx)(J.Ay,{size:"medium"}):(0,r.jsx)(w,{children:null==t?void 0:t.mainProductTitle}),description:n?(0,r.jsx)(J.Ay,{size:"medium"}):(0,r.jsx)(C.A,{children:t.mainProductContent})};if(null==t||!t.legacyAxContent)return{title:null,description:null};return{title:n?(0,r.jsx)(J.Ay,{size:"medium"}):(0,r.jsx)(ee.A,{children:null==t?void 0:t.legacyAxContent}),description:null}}var ae=t(43192),se=t(62381),oe=t(61416),ie=t(46765),le=t(89694);function re(){const e=(0,K.GV)(U.zp),n=(0,K.GV)(U.QW),t=(0,K.jL)();if(!e)return null;const{chosenPeriodId:a,periods:s,alias:o}=e,i=e.periods.find(e=>e.id===a);if(!i)return null;const l={...i};return n.bundled&&"period_name"in n.bundled&&n.bundled.period_name===i.period_name&&(l.price_register=n.bundled.price),(0,r.jsx)(le.A,{container:"bundled",chosenPeriod:l,periods:s,onValueChange:e=>{t((0,oe.NR)(e))},name:`${o}-period`,planId:e.planId,includedResources:(0,O.dS)(e)})}var de=t(4225);function ce(){var e;const n=(0,K.jL)(),t=(0,K.GV)(U.zp),s=(0,K.GV)(U.FB),o=(0,K.GV)(U.N7),{title:i,description:l}=te(null!==(e=null==t?void 0:t.planId)&&void 0!==e?e:0),d=(0,K.GV)(U.nU),{basketDomains:c}=(0,ae.A)();return(0,a.useEffect)(()=>{t&&n((0,oe.ji)(t))},[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(A.A,{bottomSpace:7.5,children:(0,r.jsx)(de.A,{results:o,pool:s.pool?parseInt(s.pool,10):(0,se.Hk)(),onSearchClicked:(e,t)=>{n((0,ie.DB)(e,t))},onBasketAdd:e=>{if(!s||!t)return;const a={...s,patchParameters:{domain:e}};n((0,oe.ju)(a,t,null,!0))},requestStatus:d,basketDomains:c,nextStep:!1,hasProduct:!1})}),t?(0,r.jsx)(A.A,{bottomSpace:7.5,children:(0,r.jsx)(b.A,{title:i,description:l,aside:(0,r.jsx)(re,{}),footerContent:(0,r.jsx)(P.A,{})})}):null]})}var ue=t(78414),me=t(96858),pe=t(27064);function he({upsell:e}){const n=(0,K.jL)(),t=(0,K.GV)(U.O9),a=(0,K.GV)(U.wb),s=(0,me.A)(),o=(0,K.GV)(U.oo),i=(0,K.GV)(H.A_);if(!o||!e.parameters)return(0,r.jsx)(de.x,{});const{isAddToBasketLoading:l,removedFromBasket:d,addedToBasket:u}=o;return l?(0,r.jsx)(de.x,{}):d||!u?(0,r.jsx)(ue.Ay,{content:(0,r.jsx)(c.A,{htmlTag:"h4",typography:"large2",children:(0,p.Ay)("bonus.missingParentProduct")})}):(0,r.jsx)(de.A,{pool:e.parameters.pool,results:a,onSearchClicked:(t,a)=>{t&&e.parameters&&n((0,pe.DB)(t,{...e.parameters,pool:a},s))},onBasketAdd:(e,t,a)=>{null!=o&&o.isAddToBasketLoading||n((0,pe.l9)(e,t,a))},requestStatus:t,basketDomains:i,hasProduct:!!o})}var xe=t(84258),Ae=t(35227),ge=t(36114),je=t(69355);function fe({planId:e,onAdded:n}){const{definitions:t}=(0,K.GV)(U.Hf),a=function(e){const{GraphCmsSquidex:{queryCloudbluePlanContents:n}}=(0,D.GR)("700837963"),t=null==n?void 0:n.find(n=>e===n.flatData.id&&n);return(null==t?void 0:t.flatData.upsellHeading)||(0,p.Ay)("preBasket.upsell.heading")}(e),s=Object.values(t.upsell||{});return(0,r.jsxs)(A.A,{bottomSpace:7.5,children:[(0,r.jsx)(A.A,{bottomSpace:{small:3,medium:3,large:4},children:(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsx)(ge.A,{variant:"heading2xl",weight:"black",color:"base",children:a}),(0,r.jsx)(ge.A,{variant:"bodySm",color:"base",children:(0,p.Ay)("preBasket.upsell.subtitle")})]})}),(0,r.jsx)(je.A,{bottomSpace:{small:1,medium:4,large:4},children:s.map(e=>Ae.rM.has(e.alias)&&"DOMAINS"===e.alias?(0,r.jsx)(he,{upsell:e},`prebasket-item-${e.alias}`):(0,r.jsx)(xe.A,{alias:e.alias,isAdvanced:e.advancedConfiguration||!1,onAdded:n},`prebasket-item-${e.alias}
1`))})]})}var ye=t(71762),be=t(44831);var ve=t(44589),Se=t(95700),ke=t(65267);function Pe({plan:e,title:n,description:t,bannerText:s,onAdded:o}){const i=(0,K.GV)(H.xp),{removeItem:l,addProductToBasket:d,changeItemPeriod:c}=function(){const e=(0,K.jL)();return{removeItem:(n,t,a)=>{e((0,z.kP)(n,t,a,q._i.BONUS))},addProductToBasket:n=>{e((0,z.lZ)([n],null,q._i.BONUS,()=>{}))},changeItemPeriod:(n,t)=>{e((0,be.L)([(0,ye.mN)(n),(0,ye.Rc)(t)]))}}}(),u=(0,a.useId)(),m=(0,a.useMemo)(()=>(0,Ae.tl)(e.flatData.periods,e.flatData.minQuantity||1),[e.flatData.periods,e.flatData.minQuantity]),{0:p,1:h}=(0,a.useState)(()=>{var e;return null!==(e=m.find(O.$Y))&&void 0!==e?e:m[0]}),x=i.find(n=>n.plan_id===e.flatData.id);return(0,r.jsxs)("div",{className:"bg-surface-base shadow-md rounded-sm p-3 md:p-4 flex flex-col gap-4 -mx-3 md:mx-0",children:[(0,r.jsxs)("div",{className:"flex gap-4 items-start flex-wrap",children:[(0,r.jsxs)("div",{className:"flex items-start gap-2 flex-[2] min-w-[20.5rem]",children:[(0,r.jsx)(ve.Ay,{id:u,checked:(null==x?void 0:x.plan_id)===e.flatData.id,onCheckedChange:()=>{x?l(x.id,x.plan_id):(d({plan:e.flatData.id,planPeriod:p.id,quantity:1}),null==o||o(e.flatData.name))},className:"mt-2"}),(0,r.jsxs)(ve.Sb,{htmlFor:u,className:"cursor-pointer",children:[(0,r.jsx)(ge.A,{variant:"heading2xl",weight:"black",children:null!=n?n:e.flatData.name}),(0,k.A)(t)?null:(0,r.jsx)(ge.A,{variant:"bodySm",children:t})]})]}),(0,r.jsxs)("div",{className:"flex-[1_0_0] flex flex-col min-w-[12.5rem] lg:w-full xl:max-w-[12.5rem]",children:[(0,r.jsx)(le.A,{periods:m,chosenPeriod:p,onValueChange:n=>{h(n),x&&c(x.id,{plan:e.flatData.id,planPeriod:n.id,quantity:1})},name:`domain-hook-period-${e.flatData.id}`,container:`domain-hook-${e.flatData.id}`,planId:e.flatData.id,includedResources:[]}),(0,r.jsx)(P.A,{})]})]}),s?(0,r.jsx)("div",{className:"bg-surface-semantic-caution p-3 rounded-sm [&_p]:!mb-0",children:s}):null]})}function Ce({onAdded:e}){const{hostingHackPlan:n,secondaryHackPlan:t,domainHackBoxBanerText:a,domainsSSLBoxBannerText:s}=(0,ke.A)();return(0,r.jsxs)("div",{className:"flex flex-col gap-2 md:gap-5",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsx)(ge.A,{variant:"heading2xl",weight:"black",color:"base",children:(0,Se.V)("preBasket.domains.specialOffer")}),(0,r.jsx)(ge.A,{variant:"bodySm",color:"base",children:(0,Se.V)("preBasket.domains.packageDescription")})]}),(0,k.A)(n)?null:(0,r.jsx)(Pe,{title:(0,Se.V)("preBasket.domains.hostingHackHeaderTitle"),description:(0,Se.md)("preBasket.domains.hostingHackDescription"),plan:n,bannerText:a?(0,r.jsx)(Y.A,{typography:{default:"tiny1",bold:"tiny1"},children:a}):void 0,onAdded:e}),(0,k.A)(t)?null:(0,r.jsx)(Pe,{title:(0,Se.V)("preBasket.domains.secondaryHackHeaderTitle"),description:(0,Se.md)("preBasket.domains.secondaryHackDescription"),plan:t,bannerText:s?(0,r.jsx)(Y.A,{typography:{default:"tiny1",bold:"tiny1"},children:s}):void 0,onAdded:e})]})}function Te({onAdded:e}){return(0,K.GV)(H.Yw)?(0,r.jsx)(Ce,{onAdded:e}):null}function Ne({onAdded:e}){const n=(0,K.GV)(H.mj),t=(0,K.jL)();return(0,a.useEffect)(()=>{t((0,z.Bm)(n))},[n]),(0,r.jsx)(Te,{onAdded:e})}var Be,we=t(85379),Ie=t(62014),De=t(19980),Le=t(30377);function Ee(){return Ee=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Ee.apply(null,arguments)}var _e=function(e){return a.createElement("svg",Ee({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),Be||(Be=a.createElement("path",{fill:"#000",d:"M8 0C3.6 0 0 3.6 0 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8m3.4 6.6c0 .1-.1.2-.2.3l-3.7 3.6c-.1.1-.3.2-.5.2s-.3-.1-.5-.2L4.8 8.7c-.1-.1-.2-.2-.2-.3s-.1-.2-.1-.3 0-.2.1-.3c0-.1.1-.2.2-.3q.3-.3.6-.3c.2 0 .5.1.6.3l1.1 1L10 5.6q.3-.3.6-.3c.2 0 .5.1.6.3.1.1.1.2.2.3 0 .1.1.2.1.3 0 .2-.1.3-.1.4"})))},Oe=t(57097),Ve=t(94474),Re=t(34407);function Ge(){var e,n,t,a,s,o;const i=(0,K.GV)(U.oo),l=(0,K.jL)(),{basketDomains:d}=(0,ae.A)(),u="number"==typeof(null==i||null===(e=i.basketItemState)||void 0===e?void 0:e.id),m=(null!==(n=null==i||null===(t=i.basketItemState)||void 0===t?void 0:t.placeholders.length)&&void 0!==n?n:0)>0,h=(0,Oe.n)({mutationFn:Ve.A.domainBundleCheckMutation});if((0,k.A)(i))return(0,r.jsx)(J.Ay,{size:"medium"});const x=i.placeholders.find(e=>"packet-domain-search"===e.type);if((0,k.A)(x))return null;const g=((null===(a=i.basketItemState)||void 0===a?void 0:a.children)||[]).map(e=>j()(e.parameters,"domain","")).filter(e=>!(0,k.A)(e));return(0,r.jsxs)(r.Fragment,{children:[u?(0,r.jsx)(Ie.A,{color:G.yZ,hasCloseButton:!0,hasBorder:!0,hasBorderRadius:!0,spacingSpace:{x:2,y:2}
1,children:(0,r.jsxs)(De.A,{alignItems:"center",children:[(0,r.jsx)(A.A,{rightSpace:1,children:(0,r.jsx)(we.Ay,{icon:_e,sizeSpace:2,color:G.YE})}),(0,r.jsx)(c.A,{typography:"xsmall2",children:(0,p.Ay)("bonus.mailAdded",{product:i.name||""})})]})}):null,(0,r.jsx)(A.A,{topSpace:4,bottomSpace:7.5,children:(0,r.jsx)(Le.A,{isSuccess:h.isSuccess,isPending:h.isPending,domain:null===(s=h.data)||void 0===s?void 0:s.domain,results:(null===(o=h.data)||void 0===o?void 0:o.suggestions)||[],onBasketAdd:(e,n,t)=>{var a;const s=m?{placeholderId:x.uuid,parent:null==i||null===(a=i.basketItemState)||void 0===a?void 0:a.id,parameters:{domain:e},plan:n,quantity:1,ignoreHack:!0}:{parameters:{domain:e},plan:n,quantity:1};l((0,z.lZ)([s],t,q._i.BONUS,e=>{l({type:Re.U6.BONUS_CHANGE_PRODUCT_BASKET_STATE,basketItem:e.items.find(e=>{var n;return e.id===(null==i||null===(n=i.basketItemState)||void 0===n?void 0:n.id)})})}))},basketDomains:d,placeholderDomains:null!=g?g:[],onSearchClicked:e=>{(0,k.A)(e)||0===e.trim().length||(u||l((0,Re.$m)()),h.mutate({phrase:e,plans:x.plans,type:"packet",parent:i.planId}))},hasAllPlaceholdersFull:!m,productName:i.name})})]})}var Me=t(81285),Fe=t(45837);var $e=t(5175),ze=t(97972);function qe(e){return!!e&&(!(window.performance&&window.performance.navigation&&1===window.performance.navigation.type)&&-1===ze.Ay.getBasketProducts().indexOf(`${e}`))}function He(){var e,n,t,a,s;const{definitions:o}=(0,K.GV)(U.Hf),i=Object.hasOwnProperty.call(o,"product")&&void 0!==o.product,l=i&&(null===(e=o.product)||void 0===e?void 0:e.advancedConfiguration),r=i&&!(0,k.A)(null===(n=o.product)||void 0===n?void 0:n.placeholders),d=i&&Object.values((null===(t=o.product)||void 0===t?void 0:t.parameters)||{}).length>0,c=i&&Object.values((null===(a=o.product)||void 0===a?void 0:a.initialParamFormData)||{}).length>0,u=!!d&&!c,m=Object.hasOwnProperty.call(o,"bundled")&&void 0!==o.bundled,p=Object.hasOwnProperty.call(o,"special")&&void 0!==o.special&&o.special.indexOf("DOMAINS")>-1,h=!!o.domain,x=i?null===(s=o.product)||void 0===s?void 0:s.planId:null;return{hasProduct:i,hasAdvancedProduct:l,hasProductPlaceholders:r,hasParameters:d,hasBundled:m,hasDomainsBox:p,hasDomainProduct:h,autoAddProductToBasket:!u&&!p&&!m&&qe(x),autoAddBundleToBasket:m&&qe(x),hasUpsell:Object.hasOwnProperty.call(o,"upsell")&&Object.keys(o.upsell||[]).length>0,hasDomainSearch:Object.hasOwnProperty.call(o,"domainSearch")&&o.domainSearch,hasPersonalEmail:Object.hasOwnProperty.call(o,"special")&&void 0!==o.special&&o.special.indexOf("PMAIL")>-1,checkoutModeFast:o.checkoutMode===$e.Cq}}var Ue=t(16954);function Ke(){const e=(0,K.jL)(),n=(0,K.GV)(H.Bm),{checkoutModeFast:t}=He();return()=>{if((0,F.VY)(n),(0,S.gB)(),t)return e({type:q.w6.BASKET_PREPARE_FOR_SUMMARY}),void(0,D.oo)($.Ay.getFinalizeUrl());(0,D.oo)($.Ay.getBasketUrl())}}function We(){const e=(0,K.jL)(),n=(0,K.GV)(U.dc),t=(0,K.GV)(U.Zb),a=(0,Fe.A)(),{checkoutModeFast:s,hasDomainsBox:o}=He(),i=Ke(),l=()=>{e((0,Ue.El)()),(0,S.gB)()};let r=(0,p.Ay)("preBasket.receipt.checkout"),d=i;return s?r=(0,p.Ay)("basket.button.order"):o&&a&&!n&&!t&&(d=l,r=(0,p.Ay)("preBasket.upsell.nextStep")),{label:r,onClick:d}}var Qe=t(83005),Ze=t(46967),Ye=t(71468),Xe=t(14597),Je=t(46590),en=t(11867);var nn=t(4022),tn=t(99159),an=t(67804);var sn=function({limit:e,hidePriceToggle:n}){const t=Array.from({length:e},(e,n)=>(0,r.jsx)(A.A,{bottomSpace:4,children:(0,r.jsx)(an.y,{})},`ai-placeholder-${n}`));return(0,r.jsxs)(s.Ay,{width:"medium",children:[(0,r.jsx)(De.A,{alignItems:"flex-end",direction:"column",children:n?null:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(tn.A,{widthSpace:16,heightSpace:3}),(0,r.jsx)(A.A,{topSpace:1,bottomSpace:{small:4,medium:2,large:2},hasNoReset:!0,children:(0,r.jsx)(tn.A,{widthSpace:20,heightSpace:3})})]})}),t]})},on=t(22118),ln=t(27116),rn=t(10654),dn=t(28677),cn=t(760),un=t(35426),mn=t(54506),pn=t(6482),hn=t(23356),xn=t(71033),An=t(63375),gn=t.n(An),jn=t(28749);var fn,yn,bn,vn=function({domain:e,extensions:n,eventSource:t}){const o=gn()([e.extension].concat((0,mn.A)(n))).map(n=>({fqdn:`${e.name}.${n}`,name:e.name,extension:n})),i=(0,Oe.n)({mutationFn:Ve.A.domainSearchMutation});if((0,a.useEffect)(()=>{i.mutate(o.map(e=>e.fqdn))},[]),i.isPending){const e=o.map(e=>(0,r.jsx)(hn.T,{domain:e,status:"Unknown",period:null,planId:null,extensionColor:"violet",eventSource:t||jn.L4.AI},e.fqdn));
1return(0,r.jsx)(pn.A,{items:e,hasBorderRadiusOnMobile:!0,dataTestId:"suggested_domains_tlds"})}if(!i.isSuccess)return(0,r.jsx)(s.Ay,{width:"medium",children:(0,r.jsx)(xn.A,{onClick:()=>{i.mutate(o.map(e=>e.fqdn))}})});const l=i.data.map(e=>(0,r.jsx)(hn.T,{domain:e,status:e.status,period:e.period,planId:e.plan_id,extensionColor:"violet",eventSource:t||jn.L4.AI},e.fqdn));return(0,r.jsx)(pn.A,{items:l,hasBorderRadiusOnMobile:!0,dataTestId:"suggested_domains_tlds"})},Sn=t(89985),kn=t(28292);function Pn(){return Pn=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Pn.apply(null,arguments)}var Cn=function(e){return a.createElement("svg",Pn({xmlns:"http://www.w3.org/2000/svg",width:92,height:82,fill:"none"},e),fn||(fn=a.createElement("path",{fill:"#F4EEFF",d:"M28.403 2.036C-10.692 6.626.374 45.439 10.35 65.857c9.783 17.851 22.71 19.018 49.264 12.018C84.42 71.335 98.28 60.14 87.333 29.338 77.01.288 73.125-3.214 28.403 2.036"})),yn||(yn=a.createElement("path",{fill:"#BA9AFA",d:"m43.612 55.922 2.022-4.63c1.8-4.122 5.038-7.402 9.078-9.195l5.565-2.47c1.769-.786 1.769-3.36 0-4.145l-5.392-2.393c-4.143-1.84-7.44-5.241-9.208-9.503l-2.048-4.935a2.18 2.18 0 0 0-4.05 0l-2.049 4.935c-1.768 4.262-5.065 7.664-9.208 9.503l-5.392 2.393c-1.769.785-1.769 3.36 0 4.145l5.566 2.47c4.04 1.793 7.278 5.073 9.077 9.194l2.022 4.631a2.179 2.179 0 0 0 4.017 0M63.24 65.788l1.014-2.324a8.95 8.95 0 0 1 4.557-4.616l2.793-1.24c.889-.394.889-1.686 0-2.08l-2.706-1.202a8.96 8.96 0 0 1-4.623-4.77l-1.028-2.477a1.094 1.094 0 0 0-2.033 0l-1.028 2.477a8.96 8.96 0 0 1-4.623 4.77l-2.706 1.202c-.888.394-.888 1.686 0 2.08l2.794 1.24a8.95 8.95 0 0 1 4.556 4.616l1.015 2.324c.39.894 1.627.894 2.017 0"})),bn||(bn=a.createElement("path",{stroke:"#000",strokeLinecap:"round",strokeWidth:2,d:"m67.644 52.763 2.706 1.201c.888.394.888 1.686 0 2.08l-2.794 1.24A8.95 8.95 0 0 0 63 61.9l-1.015 2.325a1.094 1.094 0 0 1-2.017 0L58.953 61.9a8.95 8.95 0 0 0-4.557-4.615l-2.793-1.24c-.889-.395-.889-1.687 0-2.081l2.706-1.201a8.96 8.96 0 0 0 4.623-4.77l1.028-2.478a1.094 1.094 0 0 1 2.033 0l1.028 2.477a9.05 9.05 0 0 0 2.543 3.473M41.738 54.048a2.179 2.179 0 0 1-4.017 0l-2.022-4.63c-1.8-4.122-5.038-7.402-9.077-9.195l-5.565-2.47c-1.77-.786-1.77-3.36 0-4.145l5.39-2.393a17.7 17.7 0 0 0 7.3-6.026M43.76 49.417q.56-1.278 1.294-2.44m-8.856-26.57 1.506-3.63a2.18 2.18 0 0 1 4.05 0l2.049 4.935c1.768 4.262 5.065 7.664 9.208 9.503l5.392 2.393c1.769.785 1.769 3.36 0 4.145l-4.318 1.916m-7.269 4.964a17.8 17.8 0 0 1 2.801-2.547m0 0c1-.73 2.078-1.356 3.22-1.863l1.248-.554m-4.468 2.417 4.468-2.417"})))},Tn=t(61062);var Nn=function(){const e={component:c.A,props:{isBold:!0,color:"violet"}};return(0,r.jsx)(f.A,{variant:"violetLight",emphasis:"high",borderRadius:"large2",size:"large",children:(0,r.jsx)(c.A,{typography:"small1",children:(0,Se.md)("domainSearch.aiResultHeaderText",void 0,{strong:e})})})};var Bn=function({domain:e,extensions:n,eventSource:t,onNextStep:s,buttonColor:o,buttonDataTestId:i,onDomainSelected:l,selectedFqdns:d,boxDataTestId:u,showMoreTldsDataTestId:m}){const{0:h,1:x}=(0,a.useState)(!1),{brand:g}=(0,Tn.A)(),j="ionos"===g?null:(0,r.jsx)(dn.A,{}),{currentPriceType:f}=(0,M.WO)(),b=f===rn.SJ.NETTO?(0,p.Ay)("domainSearch.mainDomainNoTaxFooter"):(0,p.Ay)("domainSearch.mainDomainTaxFooter");return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(A.A,{bottomSpace:6,children:(0,r.jsx)(cn.A,{"data-test-id":u,header:(0,r.jsx)(Nn,{}),image:(0,r.jsx)(Cn,{}),main:(0,r.jsx)(kn.q,{domain:e,extensionColor:"violet"}),aside:(0,r.jsx)(Sn.n,{mainDomain:e,eventSource:t,onNextButtonClick:s,buttonColor:o,buttonDataTestId:i,onDomainSelected:l,selectedFqdns:d}),bottomContainer:(0,k.A)(n)?void 0:(0,r.jsx)(y.A,{"data-test-id":m,title:(0,p.Ay)("domainSearch.button.seeOtherExtensions"),typography:"nano2",type:"underline",onClick:()=>x(!0),children:(0,p.Ay)("domainSearch.button.seeOtherExtensions").toUpperCase()})})}),h?(0,r.jsxs)(un.Ay,{hasSections:!0,size:un.LR.LARGE,startPosition:un.n$.RIGHT,headerType:un.jx.SHADOWED,backgroundColor:"background",header:(0,r.jsx)(c.A,{typography:"large2",children:(0,p.Ay)("domainSearch.button.seeOtherExtensions")}),headerWidth:"default",onCloseButtonClick:()=>x(!1),children:[(0,r.jsx)(ln.A,{from:"small",to:"medium",children:(0,r.jsx)(A.A,{topSpace:2,bottomSpace:3,hasNoReset:!0,children:(0,r.jsxs)(De.A,{direction:"column",alignItems:"center",justifyContent:"center",gapSpace:1,children:[(0,r.jsx)(A.A,{rightSpace:2,children:(0,r.jsx)(Cn,{})}),(0,r.jsx)(c.A,{typography:"xhuge",children:e.name})]})})}),(0,r.jsx)(ln.A,{from:"medium",children:(0,r.jsx)(A.A,{topSpace:5,bottomSpace:3,hasNoReset:!0,children:(0,r.jsxs)(De.A,{al
1ignItems:"center",children:[(0,r.jsx)(A.A,{rightSpace:2,children:(0,r.jsx)(Cn,{})}),(0,r.jsx)(c.A,{typography:"xhuge",children:e.name})]})})}),(0,r.jsxs)(De.A,{alignItems:"flex-end",direction:"column",children:[j,(0,r.jsx)(A.A,{topSpace:1,bottomSpace:{small:4,medium:2,large:2},hasNoReset:!0,children:(0,r.jsx)(c.A,{typography:"nano1",children:b})})]}),(0,r.jsx)(A.A,{leftSpace:2,rightSpace:2,bottomSpace:2,children:(0,r.jsx)(vn,{domain:e,extensions:null!=n?n:[],eventSource:jn.L4.MODAL_SOURCE_TEXT})}),(0,r.jsx)(A.A,{topSpace:1,bottomSpace:{small:4,medium:2,large:2},hasNoReset:!0,children:(0,r.jsx)(De.A,{justifyContent:"flex-end",children:(0,r.jsx)(c.A,{typography:"nano1",children:b})})})]}):null]})},wn=t(84119),In=t(76936),Dn=t(90118),Ln=t(63443);var En=function({limit:e,setLimit:n,results:t,extensions:o,hasScrollToMessageBox:i,ctaSectionsModal:l,hideInfoAboveItems:d=!1,onNextStepItemClick:u,eventSource:m,asideButtonColor:h,onDomainSelected:x,selectedFqdns:g,hidePriceToggle:j}){const f=Array.isArray(t)&&!(0,k.A)(t)?t.slice(0,e).map((e,n)=>(0,r.jsx)(Bn,{domain:e,extensions:o,eventSource:m||jn.L4.AI,onNextStep:u,buttonColor:h,buttonDataTestId:`add_to_basket_${n}`,onDomainSelected:x,selectedFqdns:g,boxDataTestId:`suggested_ai_domain_${n}`,showMoreTldsDataTestId:`show_another_tlds_${n}`},e.fqdn)):[],{brand:y}=(0,Tn.A)(),b="ionos"===y||j?null:(0,r.jsx)(dn.A,{}),{currentPriceType:v}=(0,M.WO)(),S=v===rn.SJ.NETTO?(0,p.Ay)("domainSearch.mainDomainNoTaxFooter"):(0,p.Ay)("domainSearch.mainDomainTaxFooter"),P=(0,r.jsx)(c.A,{typography:"nano1",children:S});if((0,a.useEffect)(()=>{i?(0,Dn.AR)(Ln.o.MESSAGE_BOX):(0,Dn.AR)(Ln.o.AI_DOMAIN_RESULTS)},[i]),(0,k.A)(f))return null;const C=j?null:(0,r.jsxs)(r.Fragment,{children:[b,(0,r.jsx)(A.A,{topSpace:1,bottomSpace:{small:4,medium:2,large:2},hasNoReset:!0,children:P})]});return(0,r.jsxs)(s.Ay,{width:"medium",children:[d?null:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(ln.A,{from:"small",to:"medium",children:[(0,k.A)(l)?null:(0,r.jsx)(A.A,{bottomSpace:2,children:(0,r.jsx)(wn.A,{...l[0]})}),(0,r.jsx)(_.A,{horizontalAlign:(0,k.A)(l)?"right":"left",horizontalAlignType:"both",children:C})]}),(0,r.jsx)(ln.A,{from:"medium",children:(0,r.jsxs)(De.A,{alignItems:"center",justifyContent:(0,k.A)(l)?"flex-end":"space-between",children:[(0,k.A)(l)?null:(0,r.jsx)(wn.A,{...l[0]}),(0,r.jsx)(_.A,{horizontalAlign:"right",horizontalAlignType:"both",children:C})]})})]}),f,j?null:(0,r.jsx)(A.A,{topSpace:-4,hasNoReset:!0,bottomSpace:4,children:(0,r.jsx)(De.A,{justifyContent:"flex-end",children:P})}),t.length!==f.length?(0,r.jsx)(De.A,{justifyContent:"center",children:(0,r.jsx)(on.A,{icon:In.A,iconPosition:"left",iconAlign:"center",sizeSpace:2,title:(0,p.Ay)("domainSearch.aiResultShowMore"),text:(0,p.Ay)("domainSearch.aiResultShowMore"),typography:"buttonSmall",onClick:()=>{n(e+6)}})}):null]})},_n=t(98314),On=t(26012),Vn=t(35797),Rn=t(29593),Gn=t(6246);function Mn({disabled:e=!1,title:n=(0,p.Ay)("bonus.defaultSearchTitle"),isCompact:t=!1,onNextStepClick:o,nextStep:i=!1,requestStatus:l,domainSearchUrl:d=!1,results:u,basketDomains:m,hasProduct:h,onBasketAdd:x,onSearchClicked:g,pool:j,bundleDomainsExtensions:f,bundleDomainsResult:y,onDomainSelected:b,onBundleSelected:v,selectedFqdns:P}){const{0:C,1:T}=(0,a.useState)(""),{0:N,1:B}=(0,a.useState)(!1),{value:w,setValueToRandomPrompt:I,setValue:D}=(0,nn.A)(),{primaryExtensions:L}=(0,Ze.A)(),{onSubmitButtonClick:E,mutation:_,limit:O,setLimit:V}=function(e,n){const{0:t,1:s}=(0,a.useState)(n),o=(0,Oe.n)({mutationFn:Ve.A.aiRecommendationsMutation});return{limit:t,setLimit:s,mutation:o,onSubmitButtonClick:t=>{var a;s(n),o.mutate({prompt:t,tlds:e}),(0,S.tL)(t),null===(a=window.jentisDataLayer)||void 0===a||a.pushAiSearchButtonEvent(t),(0,en.G5)(en.EK.DOMAIN_CHECK,{query:t,domainname:"domain_search_ai",tld:e[0],result:en.TI.AVAILABLE})}}}(L.map(e=>e.flatData.extension),5);let R;R=N?(0,r.jsx)(On.A,{isTrue:!_.isPending,show:(0,r.jsx)(sn,{limit:O}),children:_.isSuccess?(0,r.jsx)("div",{"data-test-id":"suggested_domains_tlds",children:(0,r.jsx)(En,{limit:O,setLimit:V,results:_.data,onNextStepItemClick:o,eventSource:jn.L4.BONUS_AI,hideInfoAboveItems:!0,asideButtonColor:G.Sq,onDomainSelected:b,selectedFqdns:P})}):_.isError?(0,r.jsx)(s.Ay,{width:"medium",children:(0,r.jsx)(xn.A,{onClick:()=>E(w)})}):null}):(0,Me.mi)(l)||!u?void 0:(0,r.jsx)(Vn.A,{results:u,onBasketAdd:x,onNextStepClick:o,basketDomains:m,hasProduct:h,requestStatus:l,domainSearchUrl:d,phrase:C,bundleDomainsResult:y,onDomainSelected:b,onBundleSelected:v,selectedFqdns:P});const M=(0,r.jsx)(Rn.A,{onSearchClicked:(e,n,t)=>{B(!1),g(e,n,t)},phrase:C,setPhrase:T,disabled:e,requestStatus:l,pool:j,onNextStepClick:o,bundleDomainsExtensions:f,hideText:!0}),F=(0,r.jsx)(Xe.A,{value:w,isPending:_.isPending,setValue:D,onSubmitButtonClick:()=>{return e=w,B(!0),void E(e);var e},onRandomizePrompt:I}),$=(0,r.jsx)(_n.A,{labelTypography:"tiny2",iconSize:"small",labelText:(0,p.Ay)("preBasket.searchSortInfoLabel"),children:(0,r.jsx)(c.A,{typography:"nano1",children:(0,Se.md)("preBasket.searchSortInfoTooltip",void 0,void 0,!0)})}),z=(0,r.jsxs)(A.A,{bottomSpace:3,children:[(0,r.jsx)(Je.A,{domainSearchInput:M,domainSearchPrompt:F,hasNotRedirectFooter:!0,rightNode:!t||(0,k.A)(R)||N?void 0:$}),N?(0,r.jsx)("div",{className:"mt-3 mb-6",children:$}):null]});
1return t?(0,r.jsxs)(r.Fragment,{children:[z,R]}):(0,r.jsx)(ue.Ay,{content:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(c.A,{htmlTag:"h4",typography:"large3",pushSpace:2,children:n}),(0,r.jsx)(c.A,{typography:"medium1_s",pushSpace:3,children:(0,Se.md)("bonus.defaultSubtitleText")}),z,(0,r.jsx)(A.A,{topSpace:2,children:(0,r.jsx)(Gn.A,{onNextStepClick:o,nextStep:i,hideText:(0,k.A)(R),hideTextPlaceholder:(0,r.jsx)("div",{})})})]}),aside:R})}var Fn=(0,Ye.Ng)(e=>({requestStatus:(0,U.nU)(e),phrase:(0,U.Ug)(e),results:(0,U.N7)(e),basketDomains:(0,H.A_)(e),nextStep:(0,U.Z5)(e),hasProduct:(0,U.eh)(e),bundleDomainsResult:(0,U.zB)(e)}),e=>({onSearchClicked:(n,t,a)=>{n&&e((0,ie.DB)(n,t,a))},onBasketAdd:(n,t,a,s=!0)=>{e((0,pe.l9)(n,t,a,s))}}))(function({pool:e,results:n,requestStatus:t=Me.gx.NONE,basketDomains:a,onSearchClicked:s,onBasketAdd:o,nextStep:i,forceNextStep:l,hasProduct:d,bundleDomainsResult:c,isCompact:u,onDomainSelected:m,onBundleSelected:p,selectedFqdns:h,overrideNextStepClick:x}){const A=(0,Qe.A)(),{enabled:g}=(0,Ze.A)(),j=Ke(),f=null!=x?x:()=>{(0,S.Kg)(),j()};return g?(0,r.jsx)(Mn,{results:n,pool:e||(0,se.Hk)(),onSearchClicked:s,onBasketAdd:o,requestStatus:t,basketDomains:a,onNextStepClick:f,nextStep:"boolean"==typeof l?l:i,hasProduct:!!d,bundleDomainsExtensions:[A],bundleDomainsResult:c,isCompact:u,onDomainSelected:m,onBundleSelected:p,selectedFqdns:h}):(0,r.jsx)(de.A,{results:n,pool:e||(0,se.Hk)(),onSearchClicked:s,onBasketAdd:o,requestStatus:t,basketDomains:a,onNextStepClick:f,nextStep:"boolean"==typeof l?l:i,hasProduct:!!d,bundleDomainsExtensions:[A],bundleDomainsResult:c,onDomainSelected:m,onBundleSelected:p,selectedFqdns:h})}),$n=t(86956),zn=t(77736),qn=t(92473),Hn=t(80484),Un=t(71696);var Kn=t(52381);function Wn({onAdded:e}){const n=(0,K.GV)(H.H1),t=(0,K.GV)(H.QK),{currentPriceType:s,isNettoPriceType:o}=(0,M.WO)(),{domainsSSLBoxTitle:i,domainsSSLBoxBannerText:l,bundledSSLPlan:d}=(0,ke.A)(),c=(0,K.jL)(),u=(0,a.useId)();if((0,k.A)(d)||(0,k.A)(n))return null;const m=n.filter(e=>e.definitionType===$n.M.DOMAIN),h=n.filter(e=>e.planId===d.flatData.id);return(0,r.jsxs)("div",{className:"bg-surface-base shadow-md rounded-sm p-3 md:p-4 flex flex-col gap-4 -mx-3 md:mx-0",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsx)(ge.A,{variant:"heading2xl",weight:"black",color:"base",children:i}),(0,r.jsx)(ge.A,{variant:"bodySm",color:"base",children:(0,p.Ay)("bonus.domainsSSLCheckboxes")})]}),(0,k.A)(m)?null:(0,r.jsx)("div",{className:"bg-surface-subtle px-4 py-3 rounded-sm flex flex-col gap-3 flex-wrap",children:m.map((n,l)=>{const x=j()(n.parameters,"domain",""),A=h.find(e=>{var n;return null===(n=e.linkedDomainNames)||void 0===n?void 0:n.includes(x)}),{price:g,periodText:f}=function(e,n,t,a){const s=e?e.period_name:(0,Hn.v)(n.periods,O.$Y).period_name,{periodValue:o,periodType:i}=(0,zn.DB)(s),l=(0,p.Ay)(`periodName.searchDomainPrice.${i}`,{smart_count:o});let r;if((0,k.A)(e)){var d;const e=(0,O.PS)(n.periods,void 0);r=null!==(d=null==e?void 0:e.getPrices(t).priceValue)&&void 0!==d?d:""}else r=a?(0,qn.$g)(e.price):(0,Un.Qm)(e.price,e.taxRate);return{price:r,periodText:l}}(A,d.flatData,s,o),y=`${u}-${n.key}`;return(0,r.jsxs)(a.Fragment,{children:[(0,r.jsxs)("label",{htmlFor:y,className:"flex items-center justify-between gap-2 cursor-pointer flex-wrap",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(ve.Ay,{id:y,checked:!!A,onCheckedChange:()=>((n,a)=>{t||(a?c((0,be.L)([(0,ye.mN)(a.itemId)])):(c((0,be.L)([(0,ye.QM)(n.itemId,["bind-bundled-ssl"])])),null==e||e(null!=i?i:"SSL")))})(n,A),disabled:t}),(0,r.jsx)(ge.A,{variant:"body",children:x})]}),(0,r.jsxs)("div",{className:"text-right flex gap-1 items-center",children:[(0,r.jsxs)(ge.A,{variant:"bodySm",weight:"bold",children:[g," ",o?(0,p.Ay)("prices.netto"):(0,p.Ay)("prices.gross")]}),(0,r.jsx)(ge.A,{variant:"bodyXs",children:f})]})]}),l<m.length-1?(0,r.jsx)(Kn.A,{}):null]},n.key)})}),(0,k.A)(l)?null:(0,r.jsx)("div",{className:"bg-surface-semantic-caution p-3 rounded-sm [&_p]:!mb-0",children:(0,r.jsx)(Y.A,{typography:{default:"tiny1",bold:"tiny1"},children:l})})]})}function Qn(){const{GraphCmsSquidex:{queryCloudbluePlanContents:e}}=(0,D.GR)("3315296523");return e.map(e=>parseInt(e.flatData.id,10))}function Zn(){const e=(0,K.GV)(U.oo),n=(0,K.jL)(),t=(0,K.GV)(U.KM),a=(0,K.GV)(U.uE),{hasProduct:s,hasBundled:o}=He(),i=function(e){var n,t;const a=(0,K.GV)(U.oo),s=(0,K.GV)(U.zp),o=(0,K.jL)(),{title:i,description:l}=te(null!==(n=null==s?void 0:s.planId)&&void 0!==n?n:0),d=(null==s?void 0:s.addedToBasket)||!1;if(!(e&&a&&s&&null!=a&&null!==(t=a.basketItemState)&&void 0!==t&&t.id))return;return{onChange:d?()=>{var e;null!==(e=s.basketItemState)&&void 0!==e&&e.id&&o((0,oe.Op)(s.basketItemState.id,s.basketItemState.plan_id))}:()=>{var e,n;null!==(e=a.basketItemState)&&void 0!==e&&e.id&&o((0,oe.f5)(null===(n=a.basketItemState)||void 0===n?void 0:n.id,s))},aside:(0,r.jsx)(re,{}),description:l,title:i,isChecked:d}}(s&&o);return{product:e,addToBasket:()=>{e&&n((0,Re.$m)(t))},changeProductPeriod:t=>{e&&t.id!==e.chosenPeriodId&&n((0,Re.CC)(e,t,void 0,Re.X2.PERIOD_CHANGE))},changeProductResourceValues:(a,s,o)=>{e&&n((0,Re.e$)(e,a,s,o,t))},changeProductResource:(e,t)=>{n((0,Re.do)(e,t))},changeInBasket:()=>{e&&n((0,Re.mC)(e))},hidePeriods:a,bundleItem:i}}var Yn=t(77387),Xn=t(91488),Jn=t(88937),et=t(46605),nt=t(14268);function tt({product:e}){const n=(0,K.jL)();return(0,r.jsx)(nt.A,{parameters:Object.values(e.parameters),alias:e.alias,onFormChange:()=>{n((0,Re.Sc)())},errorPath:"product",initialParamFormData:e.initialParamFormData})}var at=t(44582);let st=function(e){function n(n){var t;return(t=e.call(this,n)||this).onPeriodChange=t.onPeriodChange.bind(t),t.onResourceChange=t.onResourceChange.bind(t),t.onAddToBasket=t.onAddToBasket.bind(t),t}(0,Yn.A)(n,e),n.isLoading=function(e){const{addToBasketStatus:n,changePerio
1dStatus:t,changeResourceStatus:a,getPriceStatus:s}=e;return(0,Me.an)([n,t,a,s])};var t=n.prototype;return t.onAddToBasket=function(){const{product:e,changeInBasket:n,addToBasket:t}=this.props,{advancedConfiguration:a,addedToBasket:s}=e;this.isBoxLoading()||(a&&s?n(e):s||t(e))},t.onPeriodChange=function(e){this.isBoxLoading()||this.props.changeProductPeriod(e)},t.onResourceChange=function(e,n){this.isBoxLoading()||this.props.changeProductResource(e,n)},t.isBoxLoading=function(){return n.isLoading(this.props.product)},t.render=function(){const{product:e}=this.props;if(!e)return(0,r.jsx)(Jn.Ay,{});const n=this.props.product.resourceCategories||Object.values(e.parameters).length>0;return(0,r.jsx)(at.A,{plan:e.planId,periods:e.periods,chosenPeriodId:e.chosenPeriodId,bundledItem:this.props.bundleItem,titlePreline:this.props.titlePreline,bottomContent:this.props.bottomContent,hideDescription:this.props.hideDescription,additionalContent:n?(0,r.jsx)(Xn.A,{product:this.props.product,resourceCategories:this.props.product.resourceCategories,changeResourceValues:this.props.changeProductResourceValues,children:(0,r.jsx)(tt,{product:e})}):void 0,children:(0,r.jsx)(et.A,{hidePeriods:this.props.hidePeriods,hideButton:this.props.hideButton,product:this.props.product,isLoading:this.isBoxLoading(),onPeriodChange:this.onPeriodChange,onResourceChange:this.onResourceChange,onAddToBasket:this.onAddToBasket})})},n}(a.Component);function ot({isAdvanced:e,hideButton:n,titlePreline:t,bottomContent:a,hideDescription:s}){const{product:o,bundleItem:i,hidePeriods:l,changeProductPeriod:d,changeProductResource:c,addToBasket:u,changeInBasket:m,changeProductResourceValues:p}=Zn(),h=Qn();return o?e?(0,r.jsx)(st,{bundleItem:i,hidePeriods:l,hideButton:n,titlePreline:t,product:o,changeProductPeriod:d,addToBasket:u,changeInBasket:m,changeProductResourceValues:p,bottomContent:a,hideDescription:s}):h.includes(o.planId)&&o.autoAddedToBasket?(0,r.jsx)(r.Fragment,{}):(0,r.jsx)(st,{bundleItem:i,hidePeriods:l,hideButton:n,titlePreline:t,product:o,changeProductPeriod:d,addToBasket:u,changeProductResource:c,bottomContent:a,hideDescription:s}):(console.error("Missing main product"),(0,r.jsx)(r.Fragment,{}))}function it({onAdded:e}){const n=(0,K.jL)(),t=(0,K.GV)(H.dc),s=(0,K.GV)(H.QK),{isNettoPriceType:o}=(0,M.WO)(),i=(0,a.useId)();if((0,k.A)(t))return null;return(0,r.jsxs)("div",{className:"bg-surface-base shadow-md rounded-sm p-4 flex flex-col gap-4 -mx-3 md:mx-0",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsx)(ge.A,{variant:"heading2xl",weight:"bold",children:(0,p.Ay)("bonus.whoisTitle")}),(0,r.jsx)(ge.A,{variant:"bodySm",children:(0,p.Ay)("bonus.whoisDescription")})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,r.jsx)(ge.A,{variant:"bodyMd",children:(0,p.Ay)("bonus.whoisCheckboxesDesc")}),(0,r.jsx)("div",{className:"bg-surface-subtle px-4 py-3 rounded-sm flex flex-col gap-2",children:t.map((l,d)=>{const c=`${i}-${l.domain}`,{periodValue:u,periodType:m}=(0,zn.DB)(l.periodName),h=(0,p.Ay)(`periodName.searchDomainPrice.${m}`,{smart_count:u}),x=(0,Un.Qm)(l.price,l.taxRate);return(0,r.jsxs)(a.Fragment,{children:[(0,r.jsxs)("label",{htmlFor:c,className:"flex items-center justify-between gap-2 cursor-pointer flex-wrap",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(ve.Ay,{id:c,checked:l.isChecked,onCheckedChange:()=>(t=>{s||(t.basketResourceId?n((0,be.L)([(0,ye.ne)(t.basketParentId,t.basketResourceId)])):(n((0,be.L)([(0,ye.aZ)(t.basketParentId,t.resourceId)])),null==e||e(t.domain)))})(l),disabled:s}),(0,r.jsx)(ge.A,{variant:"body",children:l.domain})]}),(0,r.jsxs)("div",{className:"text-right flex gap-1 items-center",children:[(0,r.jsxs)(ge.A,{variant:"bodySm",weight:"bold",children:[x," ",o?(0,p.Ay)("prices.netto"):(0,p.Ay)("prices.gross")]}),(0,r.jsx)(ge.A,{variant:"bodyXs",children:h})]})]}),d<t.length-1?(0,r.jsx)(Kn.A,{}):null]},l.domain)})})]})]})}st.defaultProps={addToBasket:()=>{},changeInBasket:()=>{},changeProductPeriod:()=>{},changeProductResource:()=>{},changeProductResourceValues:()=>{},hidePeriods:!1};var lt=t(55009),rt=t(13547),dt=t(13894),ct=t(17223),ut=t(79556);var mt=t(27745);function pt(e){return(n,t)=>{const a=function(e){const n={"ą":"a","ę":"e","ó":"o","ś":"s","ł":"l","ż":"z","ź":"z","ć":"c","ń":"n"};return e.toLowerCase().replace(/[^\w ]/g,e=>n[e]||e)}(e);return!a||t().pMailSearch.phrase===a&&!(0,Me.dp)(t().pMailSearch.request_state)?Promise.resolve():(n({type:mt.w.PENDING,phrase:a}),Ve.A.checkPMail(a).catch(()=>{n({type:mt.w.FAILURE,phrase:a})}).then(e=>
1{void 0!==e&&n({type:mt.w.SUCCESS,phrase:e.phrase,phraseSanitized:e.phraseSanitized,results:e.results})}))}}var ht=t(25508);const xt=e=>e.pMailSearch,At=(0,ht.Mz)(xt,e=>e.request_state),gt=(0,ht.Mz)(xt,e=>e.results),jt=(0,ht.Mz)(e=>gt(e),e=>{return(n=e)&&0!==Object.keys(n).length?n.filter(e=>e.status===mt.G.STATUS.AVAILABLE).sort((e,n)=>e.priority>n.priority):[];var n}),ft=(0,ht.Mz)(H.Bm,e=>e.pmails),yt=(0,ht.Mz)(xt,e=>e.phraseSanitized),bt={VALIDATE:new RegExp("[ąćęłóśżźńŃĄĆĘŁÓŚŻŹA-Za-zªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙա-ևא-תװ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࢠ-ࢴऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഅ-ഌഎ-ഐഒ-ഺഽൎൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄງຈຊຍດ-ທນ-ຟມ-ຣລວສຫອ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᳩ-ᳬᳮ-ᳱᳵᳶᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℹℼ-ℿⅅ-ⅉⅎↃↄⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞⸯ々〆〱-〵〻〼ぁ-ゖゝ-ゟァ-ヺー-ヿㄅ-ㄭㄱ-ㆎㆠ-ㆺㇰ-ㇿ㐀-䶵一-鿕ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛥꜗ-ꜟꜢ-ꞈꞋ-ꞭꞰ-ꞷꟷ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭥꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ0-9]","ig"),FORBIDDEN:new RegExp("@","ig")},vt=e=>{const n={valid:!0,errors:[]},t=String(e);return t.length>0&&(null!==t.match(bt.FORBIDDEN)&&(n.valid=!1,n.errors.push((0,p.Ay)("personalEmail.validationErrorForbidden"))),null===t.match(bt.VALIDATE)&&(n.valid=!1,n.errors.push((0,p.Ay)("personalEmail.validationErrorSpecial"))),t.length>31&&(n.valid=!1,n.errors.push((0,p.Ay)("personalEmail.validationErrorTooLong")))),n};function St(){return(0,r.jsx)(ue.Ay,{content:(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(A.A,{bottomSpace:4,children:[(0,r.jsx)(c.A,{typography:"xlarge",htmlTag:"h4",children:(0,p.Ay)("personalEmail.title")}),(0,r.jsx)(c.A,{typography:"medium2_h",pushSpace:2,children:(0,p.Ay)("personalEmail.description")}),(0,r.jsx)(rt.A,{buttonText:(0,p.Ay)("personalEmail.submit"),buttonTitle:(0,p.Ay)("personalEmail.submit"),buttonMobileIcon:ut.A,onSubmit:()=>{},onChange:()=>{},onKeyPress:()=>{},value:"",placeholder:"",isLoading:!0,hasError:!1,hasSuccess:!1,isFancy:!0})]})})})}function kt(e,n){const{0:t,1:s}=(0,a.useState)(),{0:o,1:i}=(0,a.useState)(),{0:l,1:r}=(0,a.useState)(""),{0:d,1:c}=(0,a.useState)(),{0:u,1:m}=(0,a.useState)(),h=(0,K.jL)(),{data:x,isLoading:A,error:g}=Ve.A.usePersonalEmailProductsQuery();(0,a.useEffect)(()=>{u?(s("error"),i(u)):(0,Me.vT)(e)?(s("loading"),i((0,p.Ay)("personalEmail.loading"))):(0,Me.Wo)(e)&&0===n?(s("error"),i((0,p.Ay)("personalEmail.notFound"))):(0,Me.Wo)(e)?(s("success"),i((0,p.Ay)("personalEmail.found"))):(0,Me.dp)(e)?(s("error"),i((0,p.Ay)("personalEmail.error"))):(s(""),i((0,p.Ay)("personalEmail.inputPlaceholder")))},[u,e,n]);return{status:t,text:o,value:l,error:u,onChange:e=>{const{valid:n,errors:t}=vt(e.target.value);m(t[0]||null),r(e.target.value),c(n)},onSubmit:e=>{l&&d&&h(pt(l))},onKeyPress:e=>{"Enter"!==e.key&&13!==e.keyCode||h(pt(l))},onBasketAdd:(e,n,t)=>{h(function(e,n,t=()=>{}){const a=e.map(({name:e,planId:n})=>({plan:n,parameters:{pmail:e}}));return(0,z.lZ)(a,n,q._i.PMAILS,t)}([{planId:e,name:n}],t))},data:x||[],isLoading:A,apiError:g}}function Pt(){const e=(0,K.GV)(e=>e.basket.buttons),n=(0,K.GV)(jt),t=(0,K.GV)(At),a=(0,K.GV)(ft),s=(0,K.GV)(yt),{status:o,text:i,value:l,error:d,onChange:u,onKeyPress:m,onSubmit:h,onBasketAdd:x,data:g,isLoading:j}=kt(t,n.length);return j||d?(0,r.jsx)(St,{}):(0,r.jsx)(ue.Ay,{content:(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(A.A,{bottomSpace:4,children:[(0,r.jsx)(c.A,{typography:"xlarge",htmlTag:"h4",children:(0,p.Ay)("personalEmail.title")}),(0,r.jsx)(c.A,{typography:"medium2_h",pushSpace:2,children:(0,p.Ay)("personalEmail.description")}),(0,r.jsx)(rt.A,{buttonText:(0,p.Ay)("personalEmail.submit"),buttonTitle:(0,p.Ay)("personalEmail.submit"),buttonMobileIcon:ut.A,onSubmit:h,onChange:u,onKeyPress:m,value:l||"",placeholder:i,isLoading:"loading"===o,hasError:"error"===o,hasSuccess:"success"===o,isFancy:!0})]}),(0,Me.vT)(t)&&(0,r.jsx)(ct.A,{placeholders:g.length}),(0,Me.Wo)(t)&&0!==n.length&&(0,r.jsx)(pn.A,{items:n.map(n=>{const t=`ax-pmail-${n.plan_id}`,o=g.find(e=>e.id===n.plan_id),i=(0,Hn.v)(o.periods,e=>e.default||!1);if(!i)return null;const l=i.price_register,d=a.indexOf(`${s}@${n.domain}`)>
1-1,{periodType:c,periodValue:u}=(0,zn.DB)(i.period_name),m=(0,qn.$g)((0,qn.G7)(l,i.tax_rate)),h=(0,p.Ay)(`periodName.short.${c}`,{smart_count:u});return(0,r.jsx)(lt.A,{domain:{name:s,extension:`@${n.domain}`},isLoading:(0,Me.vT)(e[t]),hasSuccess:d,price:(0,r.jsx)(dt.A,{overridePrice:m,periodText:h}),button:{text:d?(0,p.Ay)("button.success"):(0,p.Ay)("personalEmail.addToBasket"),title:d?(0,p.Ay)("button.success"):(0,p.Ay)("personalEmail.addToBasket"),onClick:()=>{d?(0,D.oo)($.Ay.getBasketUrl()):x(n.plan_id,s,t)}}},`personal-email-result-${n.plan_id}`)})})]})})}function Ct({product:e,onProductAdded:n,hasProductPlaceholders:t=!1,showDomainSearchStep:a=!1,domainSearchPool:s=null,domainSearchForceNextStep:o}){const{hasProduct:i,hasAdvancedProduct:l,hasBundled:d,hasDomainsBox:c,hasDomainProduct:u,hasPersonalEmail:m,hasUpsell:p}=He(),h=ze.Ay.getDomainsCount(3);return(0,r.jsxs)("div",{className:"flex flex-col gap-5 lg:flex-row",children:[(0,r.jsx)("div",{className:"min-w-0 flex-1",children:t?(0,r.jsx)(Ge,{}):a?(0,r.jsx)("div",{className:"mb-15",children:(0,r.jsx)(Fn,{pool:s,forceNextStep:o})}):(0,r.jsxs)(r.Fragment,{children:[i?(0,r.jsx)("div",{className:"mb-15",children:(0,r.jsx)(ot,{isAdvanced:l})}):null,u&&d?(0,r.jsx)(ce,{}):null,c&&h>0?(0,r.jsx)("div",{className:"mb-15",children:(0,r.jsxs)("div",{className:"flex flex-col gap-2 md:gap-5",children:[(0,r.jsx)(Ne,{onAdded:n}),(0,r.jsx)(Wn,{onAdded:n}),(0,r.jsx)(it,{onAdded:n})]})}):null,m?(0,r.jsx)("div",{className:"mb-15",children:(0,r.jsx)(Pt,{})}):null]})}),p?(0,r.jsx)("div",{className:"min-w-0 flex-1",children:(0,r.jsx)(fe,{planId:null==e?void 0:e.planId,onAdded:n})}):null]})}var Tt=t(16521),Nt=t(4173),Bt=t(32290);function wt({onSummaryClick:e}){const{itemsGross:n,itemsNet:t}=(0,K.GV)(H.dN),{isNettoPriceType:a}=(0,M.WO)(),s=We(),o=(0,K.GV)(H.QK),i=a?t:n,[d,c]=(0,qn.hM)(i).split("."),u=`${(0,p.Ay)("basket.totalValue")} ${(0,p.Ay)(a?"prices.netto":"prices.gross")}:`;return(0,r.jsxs)("div",{className:"mx-auto flex flex-col md:flex-row max-w-[82rem] md:items-center gap-3 md:gap-8 rounded-sm bg-surface-base p-3 md:pl-6 md:pr-3 md:py-3 shadow-top-md md:shadow-md border border--base",children:[(0,r.jsxs)("div",{className:"flex md:flex-1 items-center gap-2",children:[(0,r.jsx)("div",{className:"sm:block md:hidden flex-1",children:(0,r.jsx)(Tt.A,{title:(0,p.Ay)("basket.summary"),onClick:e,concept:"mono",testId:"summary_button_mobile",children:(0,p.Ay)("basket.summary")})}),(0,r.jsxs)("div",{className:"flex md:flex-1 items-center gap-2",children:[(0,r.jsx)(ge.A,{variant:"bodySm",weight:"semibold",children:u}),o?(0,r.jsx)(l.E,{variant:"rectangle",animate:!0,width:90,height:24}):(0,r.jsx)(Nt.g,{size:"small",alignment:"left",data:{main:{integerPrice:d,comma:qn.Mc,decimalPrice:c,currency:qn.S3,currencySymbolPosition:"after",testId:"ax_full_price"}}})]})]}),(0,r.jsxs)("div",{className:"flex md:shrink-0 items-center gap-2",children:[(0,r.jsx)("div",{className:"hidden md:block",children:(0,r.jsx)(Bt.$n,{concept:"monochrome",variant:"tertiary",size:"medium",onClick:e,testId:"summary_button_desktop",children:(0,p.Ay)("basket.summary")})}),(0,r.jsx)(Bt.$n,{concept:"monochrome",variant:"primary",size:"medium",onClick:s.onClick,disabled:o,className:"w-full md:w-auto",testId:"proceed_to_basket",children:s.label})]})]})}var It,Dt=t(55734),Lt=t(63711),Et=t(12804),_t=t(32478),Ot=t(77316),Vt=t(93872);function Rt(){return Rt=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Rt.apply(null,arguments)}var Gt=function(e){return a.createElement("svg",Rt({xmlns:"http://www.w3.org/2000/svg",width:14,height:14,fill:"none"},e),It||(It=a.createElement("path",{fill:"#000",fillOpacity:.7,d:"M7 13.666A6.667 6.667 0 1 1 7 .333a6.667 6.667 0 0 1 0 13.333m0-1.333A5.333 5.333 0 1 0 7 1.666a5.333 5.333 0 0 0 0 10.667M6.333 9h1.334v1.333H6.333zm1.334-1.097v.43H6.333v-1c0-.368.299-.667.667-.667a1 1 0 1 0-.98-1.196L4.71 5.21a2.334 2.334 0 1 1 2.956 2.694"})))},Mt=t(47995),Ft=t(72222),$t=t(89925),zt=t(55772);function qt({item:e,isNettoPriceType:n}){var t;const{onDeleteItem:a}=(0,_t.$P)(e),s=e.domainName?`${e.domainName}${null!==(t=e.domainExtension)&&void 0!==t?t:""}`:e.name,o=n?(0,qn.$g)(e.price):(0,Un.Qm)(e.price,e.taxRate),i=e.periods.find(e=>e.isSelected);return(0,r.jsxs)("div",{className:"flex items-start gap-3",children:[(0,r.jsxs)("div",{className:"flex flex-1 items-start gap-3 rounded-sm bg-surface-subtle pl-3 pr-4 py-3 min-w-0",children:[(0,r.jsx)(zt.Ay,{icon:$t.injectIcon,size:"small",className:"mt-1"}),(0,r.jsxs)("div",{className:"flex flex-1 flex-col gap-0.5 min-w-0",children:[(0,r.jsx)(ge.A,{variant:"headingLg",weight:"black",color:"promotion",children:s}),(0,k.A)(null==i?void 0:i.labelAx)?null:(0,r.jsx)(ge.A,{variant:"bodySm",color:"brand",children:null==i?void 0:i.labelAx})]}),(0,r.jsx)(ge.A,{variant:"headingLg",weight:"black",color:"promotion",className:"shrink-0",children:o})]}),(0,r.jsx)(Vt.a,{icon:Ot.injectIcon,iconTitle:(0,p.Ay)("button.removeProduct"),size:"small",onClick:a,disabled:!a})]})}function Ht({item:e,isNettoPriceType:n,testId:t}){var a;const{onDeleteItem:s}=(0,_t.$P)(e),o=[].concat((0,mn.A)(e.children),(0,mn.A)(e.resources)),i=e.domainName?`${e.domainName}.${null!==(a=e.domainExtension)&&void 0!==a?a:""}`:e.name,l=n?(0,qn.$g)(e.price):(0,Un.Qm)(e.price,e.taxRate),d=e.periods.find(e=>e.isSelected);return(0,r.jsxs)("div",{className:"flex flex-col overflow-hidden rounded-sm shadow-sm",children:[(0,r.jsxs)("div",{className:"flex items-start gap-6 bg-surface-base p-3 md:p-4 md:pl-5 md:pb-3",children:[(0,r.jsxs)("div",{className:"flex flex-1 flex-col gap-1 min-w-0",children:[(0,r.jsx)(ge.A,{variant:"headingLg",weight:"black",children:i}),(0,k.A)(null==d?void 0:d.labelAx)?null:(0,r.jsx)(ge.A,{variant:"bodySm",color:"muted",children:null==d?void 0:d.labelAx})]}),(0,r.jsxs)("div",{className:"flex shrink-0 items-center gap-4",children:[(0,r.jsx)(ge.A,{variant:"headingLg",weight:"black",children:l}),(0,r.jsx)(Vt.a,{icon:Ot.injectIcon,iconTitle:(0,p.Ay)("button.removeProduct"),size:"small",onClick:s,disabled:!s,testId:t})]})]}),(0,k.A)(o)?null:(0,r.jsx)("div",{className:"flex flex-col gap-3 bg-surface-base p-4 pt-0",children:o.map(e=>(0,r.jsx)(qt,{item:e,isNettoPriceType:n},e.key))})]})}function Ut({onClose:e}){const n=(0,K.GV)(H.Jj),t=(0,K.GV)(H.Bm),s=(0,K.GV)(H.QK),{itemsGross:o,itemsNet:i}=(0,K.GV)(H.dN),l=(0,K.GV)(U.Dn),d=(0,K.GV)(U.ff),{isNettoPriceType:u}=(0,M.WO)(),m=We(),{receiptHackInfoTitle:h,receiptHackInfoText:x,bundledSSLPlan:A}=(0,ke.A)(),g=(0,K.jL)(),j=(0,K.GV)(H.Fg),{isOpen:f,handleWindowClose:y,handleBasketClear:b,handleWindowOpen:v}=(0,_t.vx)(t);(0,a.useEffect)(()=>{const e=e=>{"Escape"===e.key&&(f?(e.stopImmediatePropagation(),y(e)):j&&(e.stopImmediatePropagation(),g((0,z.Pm)())))};return document.addEventListener("keydown",e,!0),()=>document.removeEventListener("keydown",e,!0)},[f,j,y,g]);const P=n.flatMap(e=>e.children).some(e=>(null==A?void 0:A.flatData.id)===e.planId),C=u?i:o,[T,N]=(0,qn.hM)(C).split("."),B=`${(0,p.Ay)("basket.totalValue")} ${(0,p.Ay)(u?"prices.netto":"prices.gross")}:`,w=(l&&d||P)&&h?(0,r.jsx)(Dt.A,{background:G.de,openOnClick:()=>{var e;(0,S.rO)(),null===(e=window.jentisDataLayer)||void 0===e||e.pushContentShowEvent()},pushSpace:{top:2,right:2.5,bottom:1.5,left:2.5},title:(0,r.jsx)(c.A,{typography:"nano3",color:G.k3,children:h}),content:x?(0,r.jsx)(Y.A,{typography:{bold:"nano1",default:"nano1"},emphasis:"medium",hasOverridedSmallTypography:!0,children:x}):void 0,icon:(0,r.jsx)(we.Ay,{color:G.k3,icon:Gt,sizeSpace:2})}):null,I=(0,r.jsx)(ge.A,{variant:"heading2xl",weight:"black",asChild:!0,children:(0,r.jsx)("h5",{children:(0,p.Ay)("receipt.title")})}),D=(0,k.A)(n)?null:(0,r.jsxs)("div",{className:"md:-mx-4 flex flex-col gap-3 h-full",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between mx-3",children:[(0,r.jsx)(Mt.A,{text:(0,p.Ay)("priceTypeToggleLabel")}),(0,r.jsx)("div",{className:"rounded-sm bg-surface-base p-1 shadow-sm",children:(0,r.jsx)(Vt.a,{icon:Ot.injectIcon,iconTitle:(0,p.Ay)("button.clearCart"),size:"small",onClick:v,testId:"remove_all"})})]}),(0,r.jsxs)("div",{className:"flex flex-1 flex-col justify-between",children:[(0,r.jsx)("div",{className:"flex flex-1 flex-col gap-4",children:n.filter(Ft.Vx).map((e,n)=>(0,r.jsx)(Ht,{item:e,isNettoPriceType:u,testId:`remove_${n}`},e.key))}),(0,k.A)(w)?null:(0,r.jsx)("div",{className:"hidden md:block rounded-sm bg-surface-base p-3 shadow-sm mt-3",children:w})]})]}),L=(0,r.jsxs)("div",{className:"flex flex-col gap-3 md:gap-4 -mx-7 md:-mx-5 -my-3 md:my-0",children:[(0,k.A)(w)?null:(0,r.jsx)("div",{className:"block md:hidden",children:w}),(0,r.jsxs)("div",{className:"flex flex-col gap-3 md:gap-4",children:[(0,r.jsxs)("div",{className:"flex items-start justify-between",children:[(0,r.jsx)(ge.A,{variant:"body",weight:"black",children:B}),(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsx)(Nt.g,{size:"medium",alignment:"right",data:{main:{integerPrice:T,comma:qn.Mc,decimalPrice:N,currency:qn.S3,currencySymbolPosition:"after"}}}),(0,r.jsx)(ge.A,{variant:"bodyXs",color:"muted",className:"text-right",children:(0,p.Ay)(u?"bonus.priceTypeNettoText":"bonus.priceTypeGrossText")})]})]}),(0,r.jsx)(Bt.$n,{concept:"monochrome",variant:"primary",size:"medium",onClick:m.onClick,loading:s,className:"w-full",children:m.label})]})]});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(un.Ay,{header:I,headerType:un.jx.SHADOWED,onCloseButtonClick:e,hasNoHideOnClickOutside:f||j,closeButtonTitle:(0,p.Ay)("configDrawer.closeButtonTitle"),startPosition:un.n$.RIGHT,size:un.LR.MEDIUM,footer:L,backgroundColor:"backgroundDarkLight",hasNoMargin:!0,hasSmallBorderRadius:!0,hasFullHeightContent:!0,children:D}),(0,r.jsx)(Lt.A,{isOpen:f,onClose:y,onConfirmedAction:b}),(0,r.jsx)(Et.A,{})]})}var Kt=t(12512),Wt=t(10132);function Qt({message:e,onClose:n,autoDismissMs:t}){return(0,a.useEffect)(()=>{const e=setTimeout(n,null!=t?t:4e3);return()=>clearTimeout(e)},[n,t]),(0,r.jsxs)("div",{className:"bg-surface-base max-w-[82rem] mx-auto mb-3 border border--base border-l-[8px] border-l-[var(--border-semantic-success)] shadow-md rounded-sm p-2 flex items-center gap-[10px]",children:[(0,r.jsx)("div",{className:"text-semantic-success-bolder shrink-0",children:(0,r.jsx)(zt.Ay,{icon:Kt.injectIcon})}),(0,r.jsx)(ge.A,{variant:"bodySm",className:"flex-1",children:e}),(0,r.jsx)(Vt.a,{icon:Wt.injectIcon,size:"small","aria-label":"Close",onClick:n})]})}var Zt=t(56132),Yt=t(93939);function Xt({definitions:e,product:n}){var t,i;const l=(0,K.jL)(),d=(0,K.GV)(U.eu),h=(0,K.GV)(H.mj),x=(0,K.GV)(U.zp),A=(0,K.GV)(U.KM),g=(0,K.GV)(U.dc),{0:j,1:f}=(0,a.useState)(!1),{0:y,1:b}=(0,a.useState)(()=>
1{if(null!=n&&n.autoAddedToBasket){const e=x?` + ${x.name}`:"";return`${(0,p.Ay)("preBasket.upsell.added")} ${n.name}${e}`}return null}),v=(0,a.useCallback)(e=>{b(`${(0,p.Ay)("preBasket.upsell.added")} ${e}`)},[]),S=(0,a.useCallback)(()=>b(null),[]),P=(0,K.GV)(H.Yw);(0,a.useEffect)(()=>{Yt.A.setBool(ze.O3.DOMAIN_HOOK_ADDED_TO_BASKET,!1)},[]);const{hasProduct:C,hasProductPlaceholders:T,hasDomainsBox:N,hasDomainProduct:B,autoAddBundleToBasket:w,autoAddProductToBasket:I,hasDomainSearch:L,hasUpsell:E}=He(),_=(0,m.A)("medium"),O=N&&P&&(0,se.H5)(),V=Qn(),R=function(){const{GraphCmsSquidex:{queryCloudbluePlanContents:e}}=(0,D.GR)("4272192359");return e.map(e=>parseInt(e.flatData.id,10))}().includes(null!==(t=null==n?void 0:n.planId)&&void 0!==t?t:0),M=_?4:3;(0,a.useEffect)(()=>{I||w||l((0,z.Bm)(h))},[I,w]),(0,a.useEffect)(()=>{n&&I&&((e,n)=>{l((0,Re.$m)(e,n))})(A,!0)},[]),(0,a.useEffect)(()=>{x&&w?((e,n,t,a)=>{l((0,oe.ju)(e,n,t,!1,a))})(n,x,A,!0):n&&l((0,oe.A2)(n,x,A))},[]);const F=L&&!d,$=!1===(null==n?void 0:n.autoAddedToBasket)&&!R&&!E,q=V.includes(null!==(i=null==n?void 0:n.planId)&&void 0!==i?i:0)&&!F&&!0===(null==n?void 0:n.autoAddedToBasket);return(0,r.jsxs)(o.A,{spacing:"small",color:"darkLight",children:[(0,r.jsx)(s.Ay,{children:(0,r.jsxs)("div",{className:"mb-10 md:mb-8",children:[$?(0,r.jsxs)(c.A,{typography:{small:"huge",medium:"great",large:"great"},htmlTag:"h2",pushSpace:O?1:M,children:[O?(0,p.Ay)("preBasket.domains.heading"):null,B?(0,p.Ay)("preBasket.domains.heading"):null,C?(0,p.Ay)("preBasket.product.heading"):null]}):null,q?(0,r.jsx)("div",{className:"mb-4","data-testid":"info-bar",children:(0,r.jsx)(u.A,{backgroundColor:G.yZ,hasBorderRadius:!0,icon:Zt.A,children:(0,r.jsxs)(c.A,{typography:"xsmall2",children:[(0,p.Ay)("preBasket.upsell.added")," ",null==n?void 0:n.name,x?` + ${null==x?void 0:x.name}`:null]})})}):null,T||F||!g?(0,r.jsx)(Ct,{product:n,onProductAdded:v,hasProductPlaceholders:T,showDomainSearchStep:F,domainSearchPool:e.domainSearch?parseInt(e.domainSearch,10):null,domainSearchForceNextStep:C||E}):(0,r.jsx)(X,{})]})}),(0,r.jsxs)("div",{className:"fixed bottom-0 md:bottom-3 left-0 right-0 z-10 md:px-4",children:[(0,k.A)(y)?null:(0,r.jsx)(Qt,{message:y,onClose:S}),(0,r.jsx)(wt,{onSummaryClick:()=>f(!0)})]}),j?(0,r.jsx)(Ut,{onClose:()=>f(!1)}):null]})}var Jt=t(60471);function ea(){const{defaultMetadata:e}=(0,Tn.A)(),n=(0,K.jL)(),{ready:t,definitions:s,product:o}=(0,K.GV)(U.Hf);return(0,a.useEffect)(()=>{n((0,Re.BK)())},[]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(Jt.A,{metadata:e,noIndex:!0}),(0,r.jsx)(On.A,{isTrue:t,show:(0,r.jsx)(d,{}),children:(0,r.jsx)(Xt,{definitions:s,product:o})})]})}},69355:function(e,n,t){t.d(n,{A:function(){return i}});var a=t(96540),s=t(14361),o=t(74848);function i({children:e,...n}){const t=a.Children.count(e);return(0,o.jsx)(o.Fragment,{children:a.Children.map(e,(e,a)=>a+1===t||null===e?e:(0,o.jsx)(s.A,{...n,children:e}))})}},71033:function(e,n,t){t.d(n,{A:function(){return v}});var a=t(38888),s=t(85379),o=t(47121),i=t(38455),l=t(43380),r=t(14361),d=t(32998),c=t(76017),u=t(39903),m=t(28729),p=t(21896),h=t(55722),x=t(18735),A=t(92255),g=t(21178),j=t(6772),f=t(3751),y=t(74848);const b="/assets/img/connection-test.png";function v({onClick:e}){const n=(0,j.jL)(),t=(0,j.GV)(g.qF),v=(0,m.A)(),S=(0,f.Y)(b);return(0,y.jsx)(d.A,{spacingSpace:4,color:"backgroundLight",shadow:"small",children:(0,y.jsxs)(i.A,{horizontalAlign:"center",horizontalAlignType:"flex",children:[window.navigator.onLine?(0,y.jsx)(r.A,{bottomSpace:2,children:(0,y.jsx)(p.A,{})}):null,(0,y.jsx)(o.A,{typography:"large2",pushSpace:2,children:(0,u.Ay)("domainSearch.searchResultsLoaderTitleFail")}),(0,y.jsxs)("div",{children:[(0,y.jsx)(r.A,{bottomSpace:2,children:(0,y.jsxs)(l.A,{columns:1,gutterSpace:1,children:[(0,y.jsxs)(c.A,{gutterSpace:2,children:[window.navigator.onLine?(0,y.jsx)(s.Ay,{icon:x.A,sizeSpace:2,color:"success"}):(0,y.jsx)(s.Ay,{icon:h.A,sizeSpace:2,color:"error"}),(0,y.jsx)(o.A,{typography:"small2",children:(0,u.Ay)("domainSearch.networkOnline")})]}),(0,y.jsxs)(c.A,{gutterSpace:2,children:[S?(0,y.jsx)(s.Ay,{icon:x.A,sizeSpace:2,color:"success"}):(0,y.jsx)(s.Ay,{icon:h.A,sizeSpace:2,color:"error"}),(0,y.jsx)(o.A,{typography:"small2",children:(0,u.Ay)("domainSearch.websiteOnline")})]}),(0,y.jsxs)(c.A,{gutterSpace:2,children:[(0,y.jsx)(s.Ay,{icon:h.A,sizeSpace:2,color:"error"}),(0,y.jsx)(o.A,{typography:"small2",children:(0,u.Ay)("domainSearch.searchOnline")})]})]})}),(0,y.jsx)(a.Ay,{onClick:null!=e?e:()=>{n((0,A.IX)(t,v))},title:(0,u.Ay)("domainSearch.searchResultsLoaderRetry"),color:"dark",isExpanded:!0,children:(0,u.Ay)("domainSearch.searchResultsLoaderRetry")})]})]})})}},76936:function(e,n,t){var a,s=t(96540);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},o.apply(null,arguments)}n.A=function(e){return s.createElement("svg",o({xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none"},e),a||(a=s.createElement("path",{fill:"#000",d:"M12 8.667H8.667V12c0 .367-.3.667-.667.667A.67.67 0 0 1 7.333 12V8.667H4A.67.67 0 0 1 3.333 8c0-.367.3-.667.667-.
1667h3.333V4c0-.367.3-.667.667-.667s.667.3.667.667v3.333H12c.367 0 .667.3.667.667s-.3.667-.667.667"})))}},96858:function(e,n,t){t.d(n,{A:function(){return s}});var a=t(64810);function s(){const{GraphCmsSquidex:e}=(0,a.GR)("2191720198");return e.queryCloudblueDomainContents}}}]);
2//# sourceMappingURL=component---plugins-gatsby-plugin-bonus-src-layouts-bonus-index-tsx-824d1f96c542d28906f8.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.