PageSourceSearch

https://www.camperfuchs.de/_next/static/chunks/pages/checkout/[id]/[station]/contact-766e65126f9a312b.js

js camperfuchs.de collected 2026-10-07 03:24:59 UTC 8,681 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9666,393],{176:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/checkout/[id]/[station]/contact",function(){return n(70056)}])},58068:function(e,t,n){"use strict";var i=n(29815),a=n(85893);n(67294);var o=n(41664),r=n.n(o),s=n(11163),c=n(67814),l=n(68055),d=n(30381),u=n.n(d),m=n(58494),h=n(90622),f=n(98707),v=["from","to","additions","location","subtype","slug"].concat((0,i.Z)(h.t)),p=function(e){return"string"==typeof e&&""!==e&&"Invalid date"!==e&&u()(e).isValid()},y=function(e){var t=e.articleId,n=e.stationId,i=e.onlineBookable,o=e.from,d=e.to,u=(0,s.useRouter)(),y=(0,m.Z)({articleId:t,stationId:n,from:o,to:d,control:!!i&&p(o)&&p(d),isEmailBooking:!1}).availability;if(!i||!0!==y)return null;var x=(0,h.X)(u.query),g={};return Object.keys(x).forEach(function(e){v.includes(e)&&void 0!==x[e]&&(g[e]=x[e])}),(0,a.jsx)("div",{className:"mt-3 p-3 sm:p-4 rounded-xl shadow-md bg-white border-2 border-primary-yellow",id:"direkt-buchbar-hinweis",children:(0,a.jsxs)("div",{className:"flex items-start gap-3",children:[(0,a.jsx)(c.G,{icon:l.LE,color:"#2e9e4f",size:"lg",className:"mt-1 shrink-0"}),(0,a.jsxs)("div",{className:"text-primary-black",children:[(0,a.jsx)("div",{className:"font-semibold",children:"Dieses Fahrzeug kannst du direkt buchen"}),(0,a.jsx)("div",{className:"text-sm mt-1",children:"F\xfcr deinen Zeitraum ist es frei. Eine Anfrage brauchst du daf\xfcr nicht. Nutze sie nur, wenn du vorher noch etwas mit dem Vermieter kl\xe4ren m\xf6chtest."}),(0,a.jsx)("div",{className:"flex flex-wrap gap-2 mt-3",children:(0,a.jsx)(r(),{href:{pathname:"/checkout/".concat(t,"/").concat(n),query:g},children:(0,a.jsx)("a",{className:"daisy-btn daisy-btn-accent h-auto min-h-12 py-2 whitespace-normal",onClick:function(){return(0,f.eN)("anfrage_zu_buchung_klick",{article:t,station:n,from:o,to:d})},children:"Jetzt direkt buchen"})})})]})]})})};t.Z=y},70056:function(e,t,n){"use strict";n.r(t),n.d(t,{ContactRequest:function(){return M},showStepRestart:function(){return z}});var i=n(47568),a=n(26042),o=n(69396),r=n(828),s=n(10092),c=n(85893),l=n(67294),d=n(11163),u=n(5085),m=n(41664),h=n.n(m),f=n(45522),v=n(92617),p=n(98595),y=n(10267),x=n(51252),g=n(17834),b=n(67814),j=n(92332),Z=n(30381),k=n.n(Z),q=n(9213),w=n(62169),N=n(29549),_=n(2114),S=n(90044),E=n(44492),C=n(58494),D=n(80865),P=n(58068),T=n(1183),A=n(48489),R=n(52316),I=n(36779),L=n(64154),B=n(71303),F=n(97570),O=n(8717),z={additionData:{id:1,reached:!1},personalData:{id:2,reached:!1},insuranceData:{id:4,reached:!1},paymentData:{id:3,reached:!1}},M=function(e){var t,n,m,Z,M=(0,d.useRouter)();(0,u.Z)();var G=(0,C.Z)({articleId:M.query.id,stationId:M.query.station,from:M.query.from,to:M.query.to,control:!0,isEmailBooking:!0}),V=G.availability,U=G.availabilityError,X=G.mutate,J=(0,f.ZP)(M.query.id?"/api/V1/articles/".concat(M.query.id,"/").concat(M.query.station):null),K=J.data,Q=J.error,H=(0,E.Z)().width>=992;(0,T.Z)({entity:{}});var W,Y=(0,l.useState)(!1),$=Y[0],ee=Y[1],et=(0,r.Z)((0,L.Z)({}),2),en=et[0],ei=et[1],ea=(0,l.useState)(!1),eo=ea[0],er=ea[1],es=(0,l.useState)(!1),ec=es[0],el=es[1],ed=(0,l.useState)(!1),eu=ed[0],em=ed[1],eh=(0,l.useState)((0,a.Z)({},z)),ef=eh[0],ev=eh[1],ep=(0,l.useState)(1),ey=ep[0],ex=ep[1],eg=(0,I.C)({article:K,from:null===(t=M.query)||void 0===t?void 0:t.from,to:null===(n=M.query)||void 0===n?void 0:n.to}),eb=eg.totalPrice,ej=eg.season,eZ=eg.additions,ek=eg.setAdditions,eq=eg.priceToBePaid,ew=eg.discountAmount,eN=eg.discountLabel;(0,l.useEffect)(function(){document.body.style.overflow=$?"hidden":"auto"},[$]),(0,l.useEffect)(function(){window.scrollTo(0,0)},[]),(0,l.useEffect)(function(){if(M.asPath!==M.route&&(!M.query.from||!M.query.to))return void M.push("/pages/404.js")},[M]),(0,l.useEffect)(function(){eu&&e_()},[eu]);var e_=(W=(0,i.Z)(function(){var e,t,n,i,r,c,l,d,u,m,h;return(0,s.__generator)(this,function(s){switch(s.label){case 0:u={type:"REQUEST",booking:{additions:(0,a.Z)({},eZ.filter(function(e){return!e.insurance&&!e.readOnly}).map(function(e,t){return(0,o.Z)((0,a.Z)({},e),{index:t+1})}).filter(function(e){return e.checked}).reduce(function(e,t){return e[t.index]=!(t.maxQuantity>=2)||!(t.quantity>=1)||t.quantity,e},{})),countryCode:null==en?void 0:null===(e=en.country)||void 0===e?void 0:e.value,article:null===(t=M.query
1)||void 0===t?void 0:t.id,articleLocation:null===(n=M.query)||void 0===n?void 0:n.station,from:null===(i=M.query)||void 0===i?void 0:i.from,to:null===(r=M.query)||void 0===r?void 0:r.to,message:null==en?void 0:en.comments,firstname:null==en?void 0:en.name,lastname:null==en?void 0:en.surname,birthday:k()("".concat(null==en?void 0:null===(c=en.year)||void 0===c?void 0:c.value,"-").concat(null==en?void 0:null===(l=en.month)||void 0===l?void 0:l.value,"-").concat(null==en?void 0:null===(d=en.day)||void 0===d?void 0:d.value),A.UG).format(A.UG),street:null==en?void 0:en.direction,postal_code:null==en?void 0:en.cp,city:null==en?void 0:en.city,tel:null==en?void 0:en.telephone,mobile:null==en?void 0:en.mobile,email:null==en?void 0:en.email,acceptAgb:!0}},s.label=1;case 1:return s.trys.push([1,3,,4]),[4,(0,O.ZP)("/api/V1/bookings/request",{method:"POST",body:JSON.stringify(u)})];case 2:return el(s.sent()),em(!1),window.scrollTo(0,0),[3,4];case 3:return er(s.sent()),em(!1),[3,4];case 4:return[2]}})}),function(){return W.apply(this,arguments)}),eS=(0,B._)(en,K,eq,eb,ey),eE=eS.value,eC=eS.items,eD=eS.shipping_tier;return(0,F.s)(eE,eC,eD,ey),(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(q.Z,{children:(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(w.Z,{}),(K||Q)&&(V||U)?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(p.Z,{className:"mb-6",children:(0,c.jsxs)(y.Z,{children:[(0,c.jsx)(x.Z,{xs:"12",lg:"7",children:U?(0,c.jsx)(D.Z,{error:U,onRetry:function(){return X()},backHref:{pathname:"".concat(K.uri),query:{from:null===(m=M.query)||void 0===m?void 0:m.from,to:null===(Z=M.query)||void 0===Z?void 0:Z.to}}}):(0,c.jsx)(c.Fragment,{children:ec?(0,c.jsxs)(g.Z,{color:"info",className:"mt-2 text-white",children:[(0,c.jsx)(v.c,{i18nKey:"frontend:checkout.request.successText"})," ",(0,c.jsx)(h(),{href:{pathname:"".concat(K.uri)},children:(0,c.jsx)("a",{children:(0,c.jsx)(v.c,{i18nKey:"frontend:checkout.request.backToArticle"})})})]}):(0,c.jsxs)(c.Fragment,{children:[eo&&(0,c.jsx)(g.Z,{color:"danger",className:"mt-2 text-white",children:"Dieser Artikel kann im Moment leider nicht gebucht werden, bitte versuchen Sie es erneut oder rufen Sie uns an!"}),(0,c.jsx)(P.Z,{articleId:M.query.id,stationId:M.query.station,onlineBookable:null==K?void 0:K.onlineBookable,from:M.query.from,to:M.query.to}),(0,c.jsx)(y.Z,{children:(0,c.jsx)(x.Z,{className:"my-3 p-3 sm:p-4 bg-white rounded-xl shadow-md",children:(0,c.jsx)(R.Z,{isContact:!0,additions:eZ,onAdditionsChange:ek,isActive:ef.additionData.id===ey,isReached:ef.additionData.reached,onStepsChange:ev,onActiveStepCh
1ange:ex,rabattBetrag:ew,rabattLabel:eN})})}),(0,c.jsx)(y.Z,{children:(0,c.jsx)(x.Z,{className:"my-3 p-3 sm:p-4 bg-white rounded-xl shadow-md",children:(0,c.jsx)(S.Z,{isActive:ef.personalData.id===ey,isReached:ef.personalData.reached,isLastStep:!0,onStepsChange:ev,onActiveStepChange:ex,personalData:en,onPersonalDataChange:ei,loadingPersonalDataSubmit:eu,onLoadingPersonalDataSubmitChange:em})})})]})})}),(0,c.jsx)(x.Z,{xs:"12",lg:"5",className:"".concat($||H?"":"d-none"),children:(0,c.jsx)(N.Z,{article:K,additions:eZ,priceToBePaid:eq,totalPrice:eb,season:ej,smartLayout:H,canChangeDates:ey<=ef.personalData.id,onCloseToogle:ee,className:"m-0",discountAmount:ew,discountLabel:eN})})]})}),!ec&&!$&&!H&&(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(_.Z,{totalPrice:eb,onOpen:function(){return ee(!0)}})})]}):(0,c.jsx)(p.Z,{className:"loading-spinner text-center",children:(0,c.jsx)(b.G,{icon:j.LM,spin:!0,size:"4x"})})]})})})};t.default=M},17354:function(e,t,n){"use strict";var i=n(87462),a=n(63366),o=n(67294),r=n(60865),s=n.n(r),c=n(62803),l=n.n(c),d=n(23663),u={color:s().string,pill:s().bool,tag:d.iC,innerRef:s().oneOfType([s().object,s().func,s().string]),children:s().node,className:s().string,cssModule:s().object},m=function(e){var t=e.className,n=e.cssModule,r=e.color,s=e.innerRef,c=e.pill,u=e.tag,m=(0,a.Z)(e,["className","cssModule","color","innerRef","pill","tag"]),h=(0,d.mx)(l()(t,"badge","badge-"+r,!!c&&"badge-pill"),n);return m.href&&"span"===u&&(u="a"),o.createElement(u,(0,i.Z)({},m,{className:h,ref:s}))};m.propTypes=u,m.defaultProps={color:"secondary",pill:!1,tag:"span"},t.Z=m}},function(e){e.O(0,[9774,8523,4885,3122,6798,5092,8897,7996,5371,8080,9837,5675,3608,6609,1737,9213,7385,6105,7021,2612,2473,2888,179],function(){return e(e.s=176)}),_N_E=e.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.