1import{P as J}from"./d4eZBFee.js";import{d as P,c as o,e as a,f as s,i as _,h as I,t as i,k as u,r as y,n as B,g as n,j as S,w as U,_ as Q,s as H,I as x,K as $,F as A,l as M,m as V,p as Y,q as Z,v as X,D as q,a as L,G as ee,U as te,E as w,A as R,o as oe,L as se}from"./wGaC-Zcn.js";import{_ as ae,a as ce}from"./DTfB5VDx.js";import{_ as z}from"./BGG3FQIg.js";import{_ as ne}from"./C4d1hAjh.js";import{_ as re}from"./fDRy0GRi.js";import{u as ue}from"./DK2t9tc5.js";import{u as le}from"./Ddh6Umjf.js";import"./DFoXeAv7.js";const ie={class:"u-header u-header--checkout bs"},pe={class:"u-header__main m-0"},fe={href:"/",title:"Startseite",class:"u-header__logo"},de=P({__name:"HeaderCheckout",props:{sourcePublication:{default:"lr"}},setup(m){return(t,c)=>(o(),a("header",ie,[s("div",pe,[c[0]||(c[0]=s("div",{class:"u-header"},null,-1)),s("a",fe,[_(J,{sourcePublication:t.sourcePublication},null,8,["sourcePublication"])]),c[1]||(c[1]=s("div",{class:"u-header"},null,-1))])]))}}),_e=Object.assign(de,{__name:"OrganismsHeaderCheckout"}),me={class:"mt-10"},he={class:"u-checkout__contact-info"},Oe=["href"],be=["href"],ke=P({__name:"FooterCheckout",props:{contactMail:{default:"[email protected]"},contactPhone:{default:"0731 156-0"},footernav:{default:[]},footerLogos:{default:[]}},setup(m){return(t,c)=>{const r=ae,d=ce;return o(),a("section",me,[c[0]||(c[0]=s("p",{class:"f-uppercase fw-bold"},"Brauchen Sie Hilfe?",-1)),s("div",he,[t.contactMail?(o(),a("a",{key:0,href:`mailto:${t.contactMail}`,class:"fc-black text-no-wrap"},[_(r,{class:"u-checkout__link-icon mr-4"}),I(i(t.contactMail),1)],8,Oe)):u("",!0),t.contactPhone?(o(),a("a",{key:1,href:`tel:${t.contactPhone}`,class:"fc-black text-no-wrap"},[_(d,{class:"u-checkout__link-icon mr-4"}),I(i(t.contactPhone),1)],8,be)):u("",!0)])])}}}),ge=Object.assign(ke,{__name:"OrganismsFooterCheckout"}),ye={key:2,class:"font-set-2 u-checkout__product-teaser u-checkout__product-grey"},Pe={key:3,class:"fw-bold u-checkout__product-price"},ve={key:0,class:"mb-3 d-flex"},we={class:"fs-3 mr-1"},Ce={key:0,class:"fs-2 u-checkout__product-grey flex-grow-1"},je={class:"fw-bold"},$e={class:"fs-3 mr-1"},Se={key:0,class:"fs-2 u-checkout__product-grey flex-grow-1"},Te={class:"fw-bold"},Be={key:2,class:"d-flex"},Ie={class:"fs-3 mr-1"},Ae={key:0,class:"fs-2 u-checkout__product-grey flex-grow-1"},Me={class:"fw-bold"},Le={key:3,class:"u-checkout__border-top mt-3"},De=["innerHTML"],Fe=P({__name:"ProductCheckout",props:{sourcePublication:{default:"lr"},paywallOfferObject:{},isPureSubscription:{type:Boolean,default:!1}},setup(m,{expose:t}){const c=m;let r=y(!0),d=y("");c.isPureSubscription&&(r.value=!1,d.value="pl-1");function h(e){r.value=typeof e=="boolean"?e:!r.value}return t({toggleHeader:h}),(e,f)=>{const k=z,O=Q,v=ne;return o(),a("section",{class:B(["u-checkout-offer background-theme theme-light-blue px-5 py-4",n(r)?"u-checkout-offer--show-details":"u-checkout-offer--hide-details"])},[s("div",{class:"u-checkout__product-header",onClick:f[1]||(f[1]=H(C=>h(),["stop"]))},[e.isPureSubscription?u("",!0):(o(),S(k,{key:0,class:"u-teaser__plus-icon",sourcePublication:e.sourcePublication},null,8,["sourcePublication"])),e.paywallOfferObject.productTitle?(o(),S(v,{key:1,class:"u-checkout__product-title",tag:"h5"},{default:U(()=>[I(i(e.paywallOfferObject.productTitle)+" ",1),_(O,{class:"u-checkout-offer__open-button",version:"link",onClick:f[0]||(f[0]=H(C=>h(),["stop"]))},{default:U(()=>f[2]||(f[2]=[s("svg",{class:"u-checkout__caret",width:"14",height:"9",viewBox:"0 0 14 9","aria-hidden":"true",focusable:"false"},[s("path",{d:"M6.45593 8.31278L0.225371 2.08219C-0.0751239 1.78169 -0.0751238 1.29451 0.225371 0.99405L0.952066 0.267355C1.25205 -0.0326266 1.73823 -0.0332036 2.03892 0.266073L7.00002 5.20393L11.9611 0.266073C12.2618 -0.0332031 12.748 -0.0326261 13.0479 0.267356L13.7746 0.994051C14.0751 1.29455 14.0751 1.78172 13.7746 2.08219L7.54407 8.31275C7.2436 8.61324 6.75643 8.61324 6.45593 8.31278Z",fill:"currentColor"})],-1)])),_:1})]),_:1})):u("",!0),e.paywallOfferObject.productTeaser&&!n(r)?(o(),a("span",ye,i(e.paywallOfferObject.productTeaser),1)):u("",!0),n(r)?u("",!0):(o(),a("span",Pe,i(e.paywallOfferObject.productStep1Price),1))]),n(r)?(o(),a("div",{key:0,class:B(["mt-3",n(d)])},[e.paywallOfferObject.productStep1Text!==null&&e.paywallOfferObject.productStep1Price!==null?(o(),a("div",ve,[s("span",we,i(e.paywallOfferObject.productStep1Text),1),e.paywallOfferObject.productStep1BillingCycle?(o(),a("span",Ce,i(e.paywallOfferObject.productStep1BillingCycle),1)):u("",!0),s("div",je,i(e.paywallOfferObject.productStep1Price),1)])):u("",!0),e.paywallOfferObject.productStep2Text!==null&&e.paywallOfferObject.productStep2Price!==null?(o(),a("div",{key:1,class:B([{"mb-3":e.paywallOfferObject.productStep3Text&&e.paywallOfferObject.productStep2Price},"d-flex"])},[s("span",$e,i(e.paywallOfferObject.productStep2Text),1),e.paywallOfferObject.productStep2Billing
1Cycle?(o(),a("span",Se,i(e.paywallOfferObject.productStep2BillingCycle),1)):u("",!0),s("div",Te,i(e.paywallOfferObject.productStep2Price),1)],2)):u("",!0),e.paywallOfferObject.productStep3Text!==null&&e.paywallOfferObject.productStep3Price!==null?(o(),a("div",Be,[s("span",Ie,i(e.paywallOfferObject.productStep3Text),1),e.paywallOfferObject.productStep3BillingCycle?(o(),a("span",Ae,i(e.paywallOfferObject.productStep3BillingCycle),1)):u("",!0),s("div",Me,i(e.paywallOfferObject.productStep3Price),1)])):u("",!0),e.paywallOfferObject.productInformation?(o(),a("div",Le,[s("div",{class:"fs-2 u-checkout__product-grey",innerHTML:e.paywallOfferObject.productInformation},null,8,De)])):u("",!0)],2)):u("",!0)],2)}}}),Ue=Object.assign(Fe,{__name:"OrganismsProductCheckout"}),He={},Re={width:"24",height:"25",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function xe(m,t){return o(),a("svg",Re,t[0]||(t[0]=[s("path",{d:"M173.898 439.404l-166.4-166.4c-9.997-9.997-9.997-26.206 0-36.204l36.203-36.204c9.997-9.998 26.207-9.998 36.204 0L192 312.69 432.095 72.596c9.997-9.997 26.207-9.997 36.204 0l36.203 36.204c9.997 9.997 9.997 26.206 0 36.204l-294.4 294.401c-9.998 9.997-26.207 9.997-36.204-.001z",fill:"
1currentColor"},null,-1)]))}const Ve=Object.assign(x(He,[["render",xe]]),{__name:"AtomsIconHook"}),qe={key:0,class:"checkout__button-update"},ze=["href"],Ne=P({__name:"CheckoutUpdateCTA",props:{updateOfferObject:{}},setup(m){const t=m,c=$(()=>t.updateOfferObject?.updateOfferId?`?offerid=${t.updateOfferObject.updateOfferId}`:"");return(r,d)=>r.updateOfferObject&&r.updateOfferObject.updateButtonText&&r.updateOfferObject.updateOfferId?(o(),a("div",qe,[s("a",{href:n(c),onClick:d[0]||(d[0]=h=>r.$emit("PromotionButtonClicked"))},i(r.updateOfferObject.updateButtonText),9,ze)])):u("",!0)}}),Ee=Object.assign(x(Ne,[["__scopeId","data-v-1194767a"]]),{__name:"AtomsCheckoutUpdateCTA"}),Ge={key:0,class:"u-checkout__update-offer"},Ke={class:"background-theme theme-light-grey p-6 u-checkout__update-container"},We={class:"u-checkout__update-info"},Je={class:"pr-1"},Qe={class:"flexibleWidth"},Ye={key:0,class:"fw-bold fs-4"},Ze={key:0,class:"fs-1 pr-4 fc-grey"},Xe={key:1,class:"fs-4 fw-bold"},et={class:"u-checkout__update-info mt-5"},tt={class:"mr-2"},ot={class:"flexibleWidth"},st={class:"u-checkout__update-info mt-7 div-content-center"},at=P({__name:"UpdateOfferCheckout",props:{sourcePublication:{default:"lr"},updateOfferObject:{}},setup(m){return(t,c)=>{const r=z,d=Ve,h=Ee;return t.updateOfferObject?(o(),a("section",Ge,[c[3]||(c[3]=s("h3",{class:"mt-0 mb-6"},"Andere Kunden interessieren sich dafür",-1)),s("div",Ke,[c[2]||(c[2]=s("span",{class:"u-checkout__update-plus-info fs-1"},"Bestseller",-1)),s("div",We,[s("div",Je,[_(r,{class:"u-teaser__plus-icon",sourcePublication:t.sourcePublication},null,8,["sourcePublication"])]),s("div",Qe,[t.updateOfferObject.updateTitle?(o(),a("span",Ye,i(t.updateOfferObject.updateTitle),1)):u("",!0),c[1]||(c[1]=s("br",null,null,-1))]),s("div",null,[t.updateOfferObject.updateCrossedOutPrice?(o(),a("s",Ze,i(t.updateOfferObject.updateCrossedOutPrice),1)):u("",!0),t.updateOfferObject.updateRealPrice?(o(),a("span",Xe,i(t.updateOfferObject.updateRealPrice)+" "+i(t.updateOfferObject.updateTimespan),1)):u("",!0)])]),t.updateOfferObject.updateBulletItems?(o(!0),a(A,{key:0},M(t.updateOfferObject.updateBulletItems,e=>(o(),a("div",et,[s("div",tt,[_(d,{class:"u-checkout__icon"})]),s("div",ot,i(e),1)]))),256)):u("",!0),s("div",st,[_(h,{updateOfferObject:t.updateOfferObject,onPromotionButtonClicked:c[0]||(c[0]=e=>t.$emit("PromotionButtonClicked"))},null,8,["updateOfferObject"])])])])):u("",!0)}}}),ct=Object.assign(at,{__name:"OrganismsUpdateOfferCheckout"}),nt={class:"u-checkout-footer p-6"},rt={class:"u-checkout-footer__nav fs-1"},ut={class:"u-checkout-footer__logos"},lt=["src","alt"],it=P({__name:"CheckoutFooter",async setup(m){let t,c;const r=V().checkoutFooterMenuId,{data:d}=([t,c]=Y(()=>Z(`/api/menu/${r}`,{transform:e=>(e||[]).map(f=>({url:f.url,label:f.label,external:!0}))},"$YM62GoCqN0")),t=await t,c(),t),h=[{alt:"PayPal",image:"/static/images/paypal.svg"},{alt:"MasterCard",image:"/static/images/master-card.svg"},{alt:"Visa",image:"/static/images/visa.svg"},{alt:"Amex",image:"/static/images/amex.svg"},{alt:"SEPA",image:"/static/images/sepa.svg"},{alt:"ApplePay",image:"/static/images/apple-pay.svg"},{alt:"GooglePay",image:"/static/images/google-pay.svg"},{alt:"AmazonPay",image:"/static/images/amazon.svg"}];return(e,f)=>{const k=re;return o(),a("footer",nt,[s("ul",rt,[(o(!0),a(A,null,M(n(d),O=>(o(),a("li",null,[_(k,X({ref_for:!0},O),null,16)]))),256))]),s("div",ut,[(o(),a(A,null,M(h,O=>s("img",{key:O.alt,src:O.image,alt:O.alt,class:"u-footer__logo"},null,8,lt)),64))])])}}}),pt=Object.assign(it,{__name:"CheckoutFooter"}),ft=m=>{const t=new q(L());t.promotionClicked({type:"promo_click",position:1,slot:"beyondCheckout",productIds:[m?.updateOfferId]}),t.productRemovedFromCart()},dt={key:0,class:"u-main-content u-main-content--checkout"},_t={key:1,class:"u-main-content u-main-content--checkout"},wt=P({__name:"checkout",setup(m){const t=ee(),c=new q(L()),r=V(),d=r.contactMail,h=r.contactPhone,e=L(),f=y(!1);y(!1);const k=ue("offerid");k.value||(k.value=E(te()));const O=y(!1),v=y(!1),C=y(!1),N=le(e,k.value),D=$(()=>{let p;return p=w().session?.offerIdChangedTo,p});k.value&&F(k.value);const T=y(null),j=$(()=>{let p=0;return p=w().session.checkoutState,p||0});$(()=>w().session.actualUrl||0),R(D,()=>{F(D.value)}),R(j,p=>{p===2&&T.value&&T.value.toggleHeader(!0),f.value=!w().session.paymentMethod&&t.updateOfferObject.updateOfferId&&j.value<3,typeof f.value<"u"&&f.value===!0&&c.promotionViewed({type:"promo_view",position:1,slot:"beyondCheckout",productIds:[t?.updateOfferObject?.updateOfferId]})}),oe(()=>{w().session.position=1});async function F(p){const g=await t.fetchOffer(p),l=g.value?.additionalData,b=g.value?.upsellingData;C.value=l?.isArchived,O.value={productTitle:l?.title,productTeaser:l?.teaser,productStep1Price:l?.price_1,productStep1Text:l?.duration_1,productStep1BillingCycle:l?.billing_cycle_1,productStep2Price:l?.price_2,productStep2Text:l?.duration_2,productStep2Billing
1Cycle:l?.billing_cycle_2,productStep3Price:l?.price_3,productStep3Text:l?.duration_3,productStep3BillingCycle:l?.billing_cycle_3,productInformation:l?.legalText},b?.upselling_offerid&&(v.value={updateTitle:b?.upselling_teaser,updateOfferId:b?.upselling_offerid,updateCrossedOutPrice:b?.upselling_save,updateRealPrice:b?.upselling_price,updateBulletItems:b?.upselling_bulletData,updateButtonText:"Jetzt upgraden",updateCheckoutUrl:"/checkout/"})}function E(p){const l=Object.keys(p.query).find(b=>b.toLowerCase()==="offerid");return l?(console.log("Param is not written correctly. We found it anyway: "+l+": "+p.query[l]),p.query[l]):null}return(p,g)=>{const l=_e,b=ge,G=Ue,K=ct,W=pt;return o(),a("div",null,[_(l,{sourcePublication:n(e)},null,8,["sourcePublication"]),n(C)?(o(),a("main",dt,[g[1]||(g[1]=s("p",{class:"mt-10 fs-6 text-center"},"Dieses Angebot ist nicht mehr erhältlich",-1)),_(b,{contactMail:n(d),contactPhone:n(h),class:"u-checkout__section--max-content-width"},null,8,["contactMail","contactPhone"])])):(o(),a("main",_t,[n(O)&&n(j)<3?(o(),S(G,{key:0,sourcePublication:n(e),paywallOfferObject:n(O),isPureSubscription:n(N),ref_key:"offerObjectRef",ref:T,class:"u-checkout__section--max-content-width"},null,8,["sourcePublication","paywallOfferObject","isPureSubscription"])):u("",!0),se(p.$slots,"default"),n(v)&&n(f)&&n(j)>0?(o(),S(K,{key:1,sourcePublication:n(e),updateOfferObject:n(v),class:"u-checkout__section--max-content-width",onPromotionButtonClicked:g[0]||(g[0]=()=>("useTrackPromotionOfferClick"in p?p.useTrackPromotionOfferClick:n(ft))(n(v)))},null,8,["sourcePublication","updateOfferObject"])):u("",!0),_(b,{contactMail:n(d),contactPhone:n(h),class:"u-checkout__section--max-content-width"},null,8,["contactMail","contactPhone"])])),_(W,{class:"u-main-content"})])}}});export{wt as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.