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:"0426c4d855715a7ce503f8c9fa5c0fb324628dae"};var t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="b4332632-f8e5-431f-96b9-594f5571c8f5",e._sentryDebugIdIdentifier="sentry-dbid-b4332632-f8e5-431f-96b9-594f5571c8f5")}catch(e){}}(),(self.webpackChunkhoyer_xp=self.webpackChunkhoyer_xp||[]).push([[3213],{31231:function(e,t,o){o(63696);var n=o(49814),r=o(48041),i=o(93739),l=o(56019),s=o(60728),a=o(26247),c=o(68815),u=o(91785);t.A=()=>(0,u.Y)(c.Ay,null,(0,u.Y)(n.A,null,(0,u.Y)("title",null,"Seite nicht gefunden")),(0,u.Y)(a.A,{index:!1}),(0,u.Y)(l.A,{slim:!0},(0,u.Y)(i.Ay,null,(0,u.Y)(i.Ay.Full,null,(0,u.Y)(r.A,null,(0,u.Y)(r.A.Content,null,(0,u.Y)(s.A,null,"Seite nicht gefunden"),(0,u.Y)("p",null,"Die angeforderte Seite konnte nicht gefunden werden.")))))))},79834:function(e,t,o){o.r(t),o.d(t,{default:function(){return j}});var n=o(63696),r=o(26885),i=o(28537),l=o(91785),s=o(65790),a=o(72621),c=o(41323),u=o(46287);const d=(0,u.A)("div",{target:"e1a6mnsf0"})({name:"1wb4n0k",styles:"font-size:12px;text-align:center"});var h=()=>(0,l.Y)(d,null,"* Es gelten die aktuellen"," ",(0,l.Y)("a",{href:"/heizoel/cleversparen",target:"_blank"},"Teilnahmebedingungen")," ","der Aktion."," "),p=o(56019),f=o(35922),m=o(54356),g=o(4052),A=o(4190),y=o(61480),v=o(76146);var S=()=>{const[e]=(0,v.A)(e=>[e.getPrices()]);return e?(0,l.Y)(y.A,{price:`${e.priceGross} â¬`,leftText:"Preis 100l inkl. MwSt.",totalPrice:`${null!==e.priceTotalWithAction?e.priceTotalWithAction:e.priceTotalGross} â¬`}):null},C=o(23813),k=o(86663),T=o(50604),Y=o(8139),b=o(17484),F=o(97135),w=o(20133),I=o(38373),x=o(38132),z=o(85525),E=o(47811),P=o(57742);const D=(0,u.A)("div",{target:"e13ldy931"})({name:"1azakc",styles:"text-align:center"}),_=(0,u.A)(b.A,{target:"e13ldy930"})((0,C.M0)(),";");var V=()=>{const[e,t,o,r,i,s,a]=(0,P.A)(e=>[e.editMode,e.currentStepIndex,e.previousStepVisible,e.nextStep,e.previousStep,e.setEditMode,e.setStepButtonAction]),[u]=(0,E.A)(e=>[e.produktStepIsValid]),[d]=(0,w.Ay)(e=>[e.lieferdetailsStepIsValid]),[h]=(0,F.A)(e=>[e.deliveryAddressStepIsValid]),[p]=(0,z.A)(e=>[e.zahlartStepIsValid]),[f]=(0,I.A)(e=>[e.isAgbValid]),[m,g]=(0,x.A)(e=>[e.uebersichtStepIsValid,e.checkoutIsExpired]),A=()=>{a("next"),e?(s(!1),(0,k.oo)((0,c.Ay)("/heizoel/bestellung/uebersicht"))):r(u,d,h,p,f,m)};return(0,l.Y)(Y.A,{withMargin:!0},t<4?(0,l.Y)(C.e,null,(0,l.Y)(C.VP,null,o()&&(0,l.Y)(T.A,{color:"blueOutline",onClick:()=>{a("previous"),e?(s(!1),(0,k.oo)((0,c.Ay)("/heizoel/bestellung/uebersicht"))):i()},"data-gtag":"hel:checkout:previous"},"Zurück")),(0,l.Y)(_,{align:"right"},(0,l.Y)(T.A,{onClick:A,"data-gtag":"hel:checkout:next"},e?"Speichern":"Weiter"))):(0,l.Y)(n.Fragment,null,!g&&(0,l.Y)(D,null,(0,l.Y)(T.A,{onClick:A},"Kostenpflichtig bestellen"))))},O=o(51752),$=o(26841);var N=()=>{const{notify:e}=(0,g.A)(),t=(0,i.u)(),[o,u,d,y,C]=(0,v.A)(e=>[e.checkoutData,e.getPrices(),e.initCheckout,e.setCheckoutData,e.detailsChanged]),[k,T,Y,b,D,_,N,W,Z,B,M,j,H,R,G,J,L,K,Q,U]=(0,w.Ay)(e=>[e.deliveryTime,e.deliveryTimeType,e.deliveryTimeFrame,e.deliveryTimeWishDate,e.antiFreeze,e.hose,e.climateNeutral,e.promotionCode,e.setDeliveryTime,e.storeDeliveryDetailsToServer,e.storeClimateNeutralToStorage,e.storeOrderCommentToStorage,e.storePromotionCodeToStorage,e.storeHoseToStorage,e.storeDeliveryTimeToStorage,e.storeDeliveryTimeTypeToStorage,e.storeAntiFreezeToStorage,e.storeDeliveryTimeFrameToStorage,e.storeDeliveryTimeWishDateToStorage,e.setClimateNeutral]),[q,X,ee,te]=(0,A.A)(e=>[e.zipcode,e.amount,e.up,e.calculate]),[oe,ne,re,ie,le,se,ae]=(0,P.A)(e=>[e.checkoutStep,e.stepButtonAction,e.steps,e.currentStepIndex,e.previousStepIndex,e.setStepButtonAction,e.setCurrentStepIndex]),[ce,ue,de]=(0,E.A)(e=>[e.storeProductIsPremiumToStorage,e.storeProductToServer,e.setProductIsPremium]),[he,pe,fe]=(0,F.A)(e=>[e.storeDeliveryAddressToStorage,e.storeInvoiceAddressToStorage,e.storeDeliveryAddressToServer]),[me,ge,Ae]=(0,z.A)(e=>[e.storePaymentTypeToStorage,e.storePaymentTypeToServer,e.setPaymentType]),[ye]=(0,I.A)(e=>[e.agbChecked]),[ve]=(0,O.A)(e=>[e.newsletterChecked]),{voucher:Se,resetVoucher:Ce}=(0,$.A)(e=>({voucher:e.voucher,resetVoucher:e.reset})),[ke,Te,Ye]=(0,x.A)(e=>[e.sendOrderToServer,e.setCheckoutIsExpired,e.checkoutIsExpired]);(0,n.useEffect)(()=>{let e=s.A.findIndex(e=>e.url===oe);-1===e?(0,r.navigate)((0,c.Ay)("/heizoel/bestellung/lieferdetails/")):ae(e)},[oe]),(0,n.useEffect)(()=>{te(q,X,ee,e)},[]),(0,n.useEffect)(()=>{C>0&&async function(){const t=await B(o,e,!0);y(t)}()},[C]);const be=s.A[ie].component,Fe=s.A[ie].step;(0,n.useEffect)(()=>{(async()=>
1{if(window.scrollTo(0,0),null!==a.oO.get("hel:checkout")&&s.A[le]&&"next"===ne){const t=s.A[le].url,n=s.A[ie].url;"produkt"===t&&"lieferdetails"===n&&async function(){ce();const t=await ue(o,e);y(t,!0)}(),"lieferdetails"===t&&"lieferadresse"===n&&async function(){M(),j(),H(),R(),G(),J(),L(),K(),Q();const t=await B(o,e);y(t,!0)}(),"lieferadresse"===t&&"zahlart"===n&&async function(){he(),pe();const t=await fe(o,e);y(t,!0)}(),"zahlart"===t&&"uebersicht"===n&&async function(){me();const t=await ge(o,e);y(t,!0)}(),"uebersicht"===t&&"erfolg"===n&&null===a.oO.getJson("hel:order")&&async function(){const t=await ke(o,ve,ye,Se,e);Ce(),y(t,!0)}()}se("")})()},[ie]);const we={1:"standard",2:"short",3:"express48",4:"express24"};(0,n.useEffect)(()=>{(async()=>{if(Te(!1),!0===a.FC.getBoolean("hel:needs-session")&&null===a.oO.getJson("hel:checkout",null))return await(0,r.navigate)((0,c.Ay)("/heizoel/")),void e("Sitzung abgelaufen","Die Sitzung dieser Bestellung ist abgelaufen. Starte bitte eine Neue.","default",{timeout:1e4});null===a.oO.get("hel:checkout")&&await void async function(){var t;const o=await d(q,X,ee,e);a.FC.set("hel:climate-neutral",o.climate_neutral),U(o.climate_neutral),de(o.is_premium),ce(o.is_premium),Ae(o.payment_type_id),me();const n=null!==(t=we[o.delivery_time_id])&&void 0!==t?t:we[1];Z(n),G(n)}()})()},[]);const Ie=(0,l.AH)("font-family:var(--font-family-vito);color:",t.colors.blue.toString(),";","");return(0,l.Y)(n.Fragment,null,(0,l.Y)(p.A,{slim:!0,css:Ie},null!==Fe&&(0,l.Y)(m.A,{steps:re,currentStep:Fe}),be,ie<s.A.length-1&&(0,l.Y)(V,null),3===Fe&&u.priceTotalWithAction&&!Ye&&(0,l.Y)(f.A,{top:"10"},(0,l.Y)(h,null))),u&&(0,l.Y)(S,null))}
1,W=o(26247),Z=o(68815),B=o(85294),M=o(97991);var j=({params:{checkoutStep:e}})=>{const[t,o]=(0,P.A)(e=>[e.checkoutStep,e.setCheckoutStep]);return(0,n.useEffect)(()=>{e&&o(e)},[e,o]),e?(0,l.Y)(n.Fragment,null,(0,l.Y)(Z.Ay,null,(0,l.Y)(W.A,{index:!1}),(0,l.Y)(B.A,{checkoutStep:e},t&&(0,l.Y)(N,null)))):(0,l.Y)(M.default,null)}},85294:function(e,t,o){var n=o(63696),r=o(583),i=o(68815),l=o(72621),s=o(91785);const a=(0,n.createContext)();t.A=({children:e})=>{const t=(0,n.useContext)(i.NQ),{updateLastCalculator:o,setHelZipcode:c}=t.actions,{0:u,1:d}=(0,n.useState)(l.FC.get("hel:zipcode","")),{0:h,1:p}=(0,n.useState)(l.FC.getInt("hel:amount",3e3)),{0:f,1:m}=(0,n.useState)(l.FC.getInt("hel:up",1)),{0:g,1:A}=(0,n.useState)([]),{0:y,1:v}=(0,n.useState)(null),{0:S,1:C}=(0,n.useState)(!1),{0:k,1:T}=(0,n.useState)(!1),{0:Y,1:b}=(0,n.useState)(l.FC.getInt("hel:product-choice",1)),{0:F,1:w}=(0,n.useState)(!0),{0:I,1:x}=(0,n.useState)(!1),{0:z,1:E}=(0,n.useState)(u),{0:P,1:D}=(0,n.useState)(!0),{0:_,1:V}=(0,n.useState)(!1),{0:O,1:$}=(0,n.useState)(!1);(0,n.useEffect)(()=>{W()},[]);const N=(0,n.useCallback)(async(e,t,n)=>{o("heizoel"),S||(C(!0),(0,r.nr)(`/heatingoil/${e}/${t}/${n}`).then(e=>e.json()).then(t=>{E(e),t.status&&"error"===t.status?(A([]),v(null),T(!0),w(!1)):(A(t.products),v(t.settings)),C(!1)}).catch(()=>{C(!1),T(!0)}))},[]);(0,n.useEffect)(()=>{l.FC.set("hel:zipcode",u),c(u),O&&u&&h&&f&&N(u,h,f)},[u,O,c,h,f,N]),(0,n.useEffect)(()=>{l.FC.set("hel:amount",h)},[h]),(0,n.useEffect)(()=>{l.FC.set("hel:up",f)},[f]),(0,n.useEffect)(()=>{l.FC.set("hel:product-choice",Y)},[Y]);const W=async()=>{},Z={zipcode:u,amount:h,up:f,result:g,loading:S,productChoice:Y,additions:y,zipcodeIsValid:F,checkedZipcode:z,checkingForZipcode:I,amountIsValid:P,checkingForAmount:_,loadingError:k},B={setZipcode:d,setAmount:p,setUp:m,setProductChoice:b,calculate:N,getProductWithPrices:()=>g[Y],clearCheckout:()=>{l.FC.remove("hel:delivery-time-type"),l.FC.remove("hel:delivery-time-frame"),l.FC.remove("hel:delivery-time-wish-date"),l.FC.remove("hel:additional-addresses",[]),l.FC.remove("hel:anti-freeze"),l.FC.remove("hel:order-comment"),l.FC.remove("hel:selected-city"),l.FC.remove("hel:selected-street"),l.oO.remove("hel:checkout"),l.oO.remove("hel:order")},checkZipcode:async e=>{if(e.length<5)return;x(!0),E(e);const t=await(0,r.nr)(`/heatingoil/check-zipcode/${e}`),o=await t.json();w(o.is_valid),x(!1)},checkAmount:async(e,t)=>{if(!e||!t)return;V(!0);const o=await(0,r.nr)(`/heatingoil/check-amount/${e}/${t}`),n=await o.json();D(n.is_valid),x(!1)},syncProductInfos:e=>{e?(l.FC.set("hel:product-is-premium",e.isPremium),l.FC.set("hel:product-id",e.id),l.FC.set("hel:delivery-time",e.deliveryTimeType),l.FC.set("hel:climate-neutral",e.isClimateNeutral)):l.FC.set("hel:product-is-premium",!1)},setResult:A,setAdditions:v,setShouldCalculate:$};return(0,s.Y)(a.Provider,{value:{data:Z,actions:B}},e)}},97991:function(e,t,o){o.r(t);o(63696);var n=o(31231),r=o(91785);t.default=()=>(0,r.Y)(n.A,null)}}]); 2//# sourceMappingURL=c14c7091d5d34000379e59bc8cd7a1197a33a442-9155b8e4b3f7fb762560.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.