1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1347],{41871:function(a,b,c){c.r(b),c.d(b,{default:function(){return w}});var d=c(828),e=c(85893),f=c(67294),g=c(57785),h=c(11163),i=c(25617),j=c(30276),k=c(70383),l=c(39745),m=c(7297),n=c(81621),o=c(51645);function p(){var a=(0,m.Z)(['\n query thankYouPage {\n nodeQuery(filter: {conjunction: AND, conditions: [\n {operator: EQUAL, field: "type", value: "thank_you_page"},\n {operator: IN, field: "title", value: ["Thank you page", "Thank you page Reservation"]}\n ]}) {\n page: entities {\n ... on NodeThankYouPage {\n headline: fieldHeadline\n details: fieldDetails {\n value\n }\n subheadline: fieldSubheadline\n btnText: fieldButtonText\n metadata: fieldMetadata {\n entity {\n ...PageMetadataFragment\n }\n }\n steps: fieldSteps {\n entity {\n ... on NodeModuleStep {\n headline: fieldHeadline\n details: fieldDetails {\n value\n }\n icon: fieldIcon {\n entity {\n ... on Media {\n thumbnail {\n url\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n }\n ',"\n"]);return p=function(){return a},a}var q=(0,n.ZP)(p(),o.HQ),r=c(19521);function s(){var a=(0,m.Z)(["\n padding-top: 20px;\n width: 450px;\n margin: 0 50px;\n display: flex;\n flex-direction: column;\n align-items: center;\n\n\n h1 {\n font-size: 20px;\n font-weight: bold;\n text-align: center;\n margin-bottom: 40px;\n & + .sub-title {\n margin-top: 0;\n }\n }\n\n .sub-title {\n margin-top: 40px;\n font-size: 14px;\n letter-spacing: 0;\n line-height: 20px;\n text-align: center;\n max-width: 400px;\n font-weight: 400;\n }\n\n .features-list {\n margin-top: 70px;\n margin-bottom: 80px;\n\n .features-list-item {\n display: flex;\n\n &:not(:last-of-type) {\n margin-bottom: 45px;\n }\n\n .img-container {\n min-width: 100px;\n }\n\n .features-info-title{\n font-size: 14px;\n font-weight: bold;\n letter-spacing: 0;\n line-height: 15px;\n margin-bottom: 4px;\n }\n\n .features-info-text {\n min-height: 60px;\n }\n \n p {\n font-size: 14px;\n font-weight: 300;\n letter-spacing: 0;\n line-height: 20px;\n margin-bottom: 0;\n }\n }\n }\n\n .thanks-btn {\n text-transform: none;\n width: 340px;\n }\n\n @media (max-width: ",") {\n margin: 0;\n width: auto;\n\n h1 {\n font-size: 18px; \n }\n\n .sub-title {\n margin-top: 18px;\n }\n\n .features-list {\n margin-top: 30px;\n margin-bottom: 45px;\n .features-list-item {\n flex-direction: column;\n max-width: 260px;\n\n .img-container {\n width: 100%;\n display: flex;\n justify-content: center;\n margin-bottom: 18px;\n }\n }\n }\n\n .thanks-btn {\n width: 100%;\n }\n }\n"]);return s=function(){return a},a}var t=r.ZP.div.withConfig({componentId:"sc-5cbd220c-0"})(s(),function(a){return a.theme.breakpoints.md}),u=c(59954),v=function(a){var b=a.step;return(0,e.jsxs)("li",{className:"features-list-item",children:[(0,e.jsx)("div",{className:"img-container",children:(0,e.jsx)(l.Z,{src:b.entity.icon.entity.thumbnail.url,alt:""})}),(0,e.jsxs)("div",{className:"features-info",children:[(0,e.jsx)("h2",{className:"features-info-title",children:b.entity.headline}),(0,e.jsx)("div",{className:"features-info-text",dangerouslySetInnerHTML:{__html:b.entity.details.value}})]})]})};function w(a){var b=a.isOpen,c=a.requestType,l=a.handleClose,m=a.santanderBtn,n=(0,f.useState)(!1),o=n[0],p=n[1],r=(0,g.a)(q).data,s=(0,i.v9)(function(a){return a.carPage.thankYouModal}),w=s.isFinancing,x=s.orderId,y=(0,h.useRouter)(),z=function(){if(w){if(!m){(0,u.Z)("santander_error_usage",{orderId:x});return}o||(0,u.Z)("santander_unused",{orderId:x})}};(0,f.useEffect)(function(){return function(){l()}},[]);var A=function(){o||(p(!0),(0,u.Z)("santander_used",{orderId:x})),document.querySelectorAll("body > .san-widget-floating #san-float-widget-btn")[0].click()};if(r){var B,C,D=(0,d.Z)(null==r?void 0:null===(B=r.nodeQuery)|| void 0===B?void 0:B.page,2),E=D[0],F=D[1],G=null;switch(c){case"subscribe":G=E;break;case"reserve":G=F;break;default:G=null}return G?(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(j.Z,{open:b,handleClose:function(){z(),l()},children:(0,e.jsxs)(t,{children:[(0,e.jsx)("h1",{children:w?"Sie m\xf6chten ein Finanzierung?":G.headline}),m&&w&&(0,e.jsx)("div",{className:"santander-btn",onClick:A,dangerouslySetInnerHTML:{__html:m.outerHTML}}),(null===(C=G.details)|| void 0===C?void 0:C.value)&&(0,e.jsx)("div",{className:"sub-title",dangerouslySetInnerHTML:{__html:G.details.value}}),(0,e.jsx)("ul",{className:"list-unstyled features-list",children:G.steps.map(function(a){return(0,e.jsx)(v,{step:a},a.entity.headline)})}),(0,e.jsx)(k.Z,{className:"thanks-btn",onClick:function(){z(),y.push({pathname:"/gebrauchtwagen"})},children:G.btnText})]})})}):null}return null}},59954:function(a,b,c){var d=c(26042),e=c(11752),f=c(91756),g=(0,e.default)().publicRuntimeConfig;b.Z=function(a,b){if("production"===g.env)try{fetch("".concat((0,f.Z)(void 0),"/metrics/").concat(a),{method:"POST",body:JSON.stringify((0,d.Z)({},b))})}catch(c){}}}}])
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.