"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1922],{19338:function(e,r,t){t.d(r,{D:function(){return i},h:function(){return d}});var n,i,o=t(96310),a=t(86377),l=t(49588);(n=i||(i={})).B2B_HOME_PAGE="b2b-home-page",n.B2C_HOME_PAGE="b2c-home-page",n.CAR_AUDIT_LANDING_PAGE="car-audit-landing-page",n.CAR_CHECK_LANDING_PAGE="car-check-landing-page",n.CAR_SWAP_PAGE="car-swap-page",n.CARVAGO_GUARD_LANDING_PAGE="carvago-guard-landing-page",n.DEALER_PAGE="dealer-landing-page",n.DELIVERY_LANDING_PAGE="delivery-landing-page",n.ELECTRIC_LANDING_PAGE="electric-hybrid-vehicles",n.FINANCING_LANDING_PAGE="financing-landing-page",n.HOW_CARVAGO_WORKS_PAGE="how-carvago-works-page",n.INSURANCE_LANDING_PAGE="insurance-landing-page",n.SELL_YOUR_CAR_LANDING_PAGE="sell-your-car-landing-page";let d=(e,r)=>a.W.noValidation.get("/api/content/faq",{auth:o.Vy.NONE,query:{"display-location":e},cache:r?{key:`/api/content/faq::locale=${r}::location=${e}`,type:l.LL.FULL,ttl:l.eE.HOUR,errorBehavior:l.ju.RETURN_STALE}:void 0})},96144:function(e,r,t){t.d(r,{U:function(){return N}});var n=t(35944),i=t(57747),o=t(93717),a=t(89555),l=t(26892),d=t(21536),c=t(77873);t(67294);var m=t(28609),s=t(67221);let u={gap:"2.4rem"},p={width:"5.6rem",height:"5.6rem",borderRadius:"100%",alignItems:"center",justifyContent:"center",background:m.r.color.WHITE,color:m.r.color.primary.N500},h={fontSize:"1.4rem",lineHeight:"2.4rem"},g={fontWeight:"700",fontSize:"1.6rem",lineHeight:"2.4rem",letterSpacing:"-0.2px"},f={fontSize:"1.2rem",lineHeight:"2rem"},x=e=>{let{icon:r,title:t,value:a,bonusText:l,darkMode:d,darkIconName:c}=e,x=d?(0,n.tZ)(s.J,{type:c,width:"56px"}):(0,n.tZ)(o.k,{...p,children:r});return(0,n.BX)(o.k,{...u,children:[x,(0,n.BX)(i.xu,{children:[(0,n.tZ)(i.xu,{...h,children:t}),(0,n.tZ)(i.xu,{...g,sx:{'a[type="email"]':{color:d?m.r.color.WHITE:m.r.color.primary.N500,textDecoration:"underline"}},children:a}),l&&(0,n.tZ)(i.xu,{...f,children:l})]})]})},y={maxWidth:"59.6rem",margin:"auto"},_={as:"h3",fontWeight:"700",fontSize:{base:"1.8rem",md:"2.4rem"},lineHeight:{base:"2.4rem",md:"3.2rem"},letterSpacing:{base:"-0.2px",md:"-0.4px"},textAlign:"center"},b={marginTop:"3.2rem",flexDirection:{base:"column",md:"row"},justifyContent:"space-between",gap:{base:"2.4rem",md:"none"}},N=e=>{let{title:r,phone:t="general",hours:s="general",days:u="general",email:p="general",darkMode:h,customTitle:g}=e,f=(0,d.ww)(s),N=(0,d.fv)(t),A=(0,d.d6)(p),v=(0,d.kC)(u);return(0,n.BX)(i.xu,{...y,children:[g||(0,n.tZ)(i.xu,{..._,color:h?m.r.color.WHITE:"unset",children:r}),(0,n.BX)(o.k,{...b,color:h?m.r.color.WHITE:"unset",children:[(0,n.tZ)(x,{darkMode:h,darkIconName:"dealer-rounded-phone",title:a.ag._("homepage_contact_phone_title"),value:(0,n.tZ)("a",{type:"phone",href:`tel:${N}`,children:N}),bonusText:`${v} ${f}`,icon:(0,n.tZ)(l.rp,{width:"6",height:"6"})}),(0,n.tZ)(x,{darkMode:h,darkIconName:"dealer-rounded-mail",title:a.ag._("homepage_dealer_help_write"),value:(0,n.tZ)("a",{type:"email",href:`mailto:${A}`,children:A}),icon:(0,n.tZ)(c.D2H,{width:"6",height:"6"})})]})]})}},25797:function(e,r,t){t.d(r,{U:function(){return n.U}});var n=t(96144)},61075:function(e,r,t){t.d(r,{B:function(){return D}});var n=t(35944),i=t(93717),o=t(57499),a=t(7695),l=t(13130),d=t(41093),c=t(67294),m=t(28609),s=t(22054),u=t(26892),p=t(63606),h=t(68924),g=t.n(h),f=t(70917),x=t(16829),y=t(67221),_=t(9432);let b=(0,_.Z)`
	default: ${m.r.color.neutral.N800};
	opened: ${m.r.color.primary.N500};
`,N=(0,_.Z)`
	default: 0 4px 16px rgba(72, 88, 133, 0.12);
	opened: 0 8px 16px rgba(72, 88, 133, 0.12);
`,A=(0,_.Z)("type",{withIcon:"0",secondary:"1.6rem 0",default:"2.2rem 3.2rem"}),v=(0,_.Z)("type",{withIcon:"0",secondary:"1.6rem 0",default:"1.6rem"}),w=(0,_.Z)("type",{withIcon:"0.8rem 4.8rem 0 3.6rem",secondary:"0 0 1.6rem",default:"2.4rem 3.2rem"}),I=(0,_.Z)("type",{withIcon:"0.8rem 4rem 0 3.6rem",secondary:"0 0 1.6rem",default:"1.6rem"}),Z=(0,x.Z)("div",{target:"e8nd6ox0"})("	width:100%;box-shadow:",e=>{let{type:r}=e;return"primary"===r?N:null},";border-bottom:",e=>{let{theme:r,type:t}=e;return"secondary"===t&&`1px solid ${r.color.neutral.N200}`},";border-radius:",e=>{let{type:r}=e;return"primary"===r&&"8px"},";",e=>{let{type:r}=e;return"primary"===r&&(0,f.iv)`
			:hover {
				box-shadow: 0 14px 14px rgba(72, 88, 133, 0.12);
			}
		`},";",e=>{let{haveItemsBorderBottom:r,theme:t}=e;return r&&(0,f.iv)`
			border-bottom: 1px solid ${t.color.neutral.N200};
		`},";",e=>{let{type:r,haveItemsBorderBottom:t}=e;return"withIcon"===r&&t&&(0,f.iv)`
			padding: 0 0 1.2rem 0;

			@media (min-width: ${m.r.breakpoint.up.SMALL}) {
				padding: 0 0 1.8rem 0;
			}
		`}),E=(0,x.Z)("div",{target:"e8nd6ox1"})("	display:flex;align-items:center;justify-content:center;padding:",e=>{let{type:r}=e;return"primary"===r?"0 1.6rem":"0 0.8rem 0 1.6rem"},";@media (min-width:",m.r.breakpoint.up.SMALL,"){padding:",e=>{let{type:r}=e;return"primary"===r?"0 3.2rem":"0 1.6rem 0 3.2rem"},";}"),k=(0,x.Z)("span",{target:"e8nd6ox2"})("	display:inline-flex;align-items:center;justify-content:center;font-size:1.4rem;padding:",v,";line-height:2.4rem;color:",e=>{let{theme:r,type:t}=e;return"withIcon"===t?r.color.neutral.N800:b},";font-weight:700;transition:color ",m.r.other.BASE_TRANSITION,";pointer-events:none;@media (min-width:",m.r.breakpoint.up.SMALL,"){padding:",A,";font-size:1.6rem;line-height:2.8rem;}"),L=(0,x.Z)("div",{target:"e8nd6ox3"})("	background:",m.r.color.WHITE,";display:flex;justify-content:space-between;cursor:pointer;transition:shadow,background ",m.r.other.BASE_TRANSITION,";:hover ",k,"{color:",e=>{let{theme:r,type:t}=e;return"withIcon"!==t&&r.color.primary.N500},";}",e=>{let{opened:r,type:t}=e;return"primary"===t&&(r?(0,f.iv)`
					border-radius: 8px 8px 0 0;
					box-shadow: inset 0px -1px 0px ${m.r.color.neutral.N200};
				`:(0,f.iv)`
					border-radius: 8px;
				`)}),S=(0,x.Z)(y.J,{target:"e8nd6ox4"})("	margin-right:1.6rem;"),B=(0,x.Z)("div",{target:"e8nd6ox5"})("	padding:",I,";background:",m.r.color.WHITE,";border-bottom-left-radius:8px;border-bottom-right-radius:8px;",e=>{let{opened:r}=e;return r?"":"opacity: 0;height: 0;padding: 0; display:none;"},";@media (min-width:",m.r.breakpoint.up.SMALL,"){padding:",w,";}"),W=(0,x.Z)("div",{target:"e8nd6ox6"})("	font-size:1.4rem;line-height:171%;margin:0;a{text-decoration:underline;color:",m.r.color.primary.N500,";font-weight:700;}@media (max-width:",m.r.breakpoint.down.SMALL,"){font-size:1.2rem;line-height:2rem;}"),C={whiteList:{a:["href","title","target"],strong:["strong"],b:["b"]}},G=e=>{let{onClick:r,question:t,answer:i,opened:o=!1,icon:a,type:l,haveItemsBorderBottom:d}=e,c=l??"primary";return(0,n.BX)(Z,{opened:o,type:c,haveItemsBorderBottom:d,children:[(0,n.BX)(L,{type:c,opened:o,onClick:r,children:[(0,n.tZ)(p.P1,{children:(0,n.BX)(k,{type:c,opened:o,children:[a&&(0,n.tZ)(S,{type:a}),t]})}),(0,n.tZ)(E,{type:c,opened:o,children:(0,n.tZ)(u.Xv,{sx:{transform:o?"rotate(180deg)":"rotate(0deg)",transition:`transform ${m.r.other.BASE_TRANSITION}`},color:o?m.r.color.primary.N600:m.r.color.primary.N500,height:"1.6rem",width:"1.6rem",_hover:{color:m.r.color.primary.N500}})})]}),(0,n.tZ)(B,{type:c,opened:o,children:(0,n.tZ)(W,{children:"string"==typeof i?(0,n.tZ)("span",{dangerouslySetInnerHTML:{__html:g()(i,C)}}):i})})]})},D=e=>{let{data:r=[],type:t,haveItemsBorderBottom:u,initiallyShownQuestions:p}=e,[h,g]=(0,c.useState)(null),[f,x]=(0,c.useState)(!1),y=(0,s.s6)("conf_faq_values"),_=e=>{h===e?g(null):g(e)},b=c.useMemo(()=>(!p||f?r:r.slice(0,p)).map(e=>"string"==typeof e.answer?{...e,answer:function(e,r){let t=r;for(let[r,n]of Object.entries(e))t.includes(r)&&(t=t.replace(r,n));return t}(y,e.answer)}:e),[r,y,p,f]);return(0,n.BX)(i.k,{flexDirection:"column",gap:"secondary"===t?0:{base:"1.6rem",sm:"withIcon"===t?"2.4rem":"1.6rem"},alignItems:"center",children:[b.map(e=>(0,n.tZ)(G,{onClick:()=>_(e.id),opened:h===e.id,question:e.question,answer:e.answer,id:e.id,icon:e.icon,type:t,haveItemsBorderBottom:u},e.id)),p&&(0,n.BX)(a.z,{display:"flex",gap:"0.8rem",color:m.r.color.primary.N500,alignItems:"center",onClick:()=>x(e=>!e),variant:"ghost",textDecoration:"underline",textUnderlineOffset:"0.9rem",children:[(0,n.tZ)(d.xe,{size:"md",color:"inherit",fontWeight:"medium",as:"span",children:f?(0,n.tZ)(o.cC,{id:"show_less"}):(0,n.tZ)(o.cC,{id:"show_more"})}),f?(0,n.tZ)(l.fB,{}):(0,n.tZ)(l.CO,{})]})]})}},64699:function(e,r,t){t.d(r,{v:function(){return c}});var n=t(35944),i=t(57747),o=t(61075);t(67294);let a={maxWidth:"80rem",margin:"auto"},l={as:"h2",fontWeight:"800",fontSize:{base:"2.8rem",md:"3.6rem"},lineHeight:{base:"3.6rem",md:"4.8rem"},letterSpacing:"-0.5px",textAlign:"center"},d={marginTop:{base:"3.2rem",md:"4.8rem"}},c=e=>{let{title:r,customTitle:t,questions:c,titleStyles:m={},initiallyShownQuestions:s}=e;return(0,n.BX)(i.xu,{...a,children:[t||(0,n.tZ)(i.xu,{...l,...m,children:r}),(0,n.tZ)(i.xu,{...d,children:(0,n.tZ)(o.B,{data:c,initiallyShownQuestions:s})})]})}},67221:function(e,r,t){t.d(r,{J:function(){return o}});var n=t(35944),i=t(5460);t(67294);let o=e=>{let{type:r,width:t,height:o,dataTestId:a,className:l,onClick:d,alt:c}=e;return(0,n.tZ)(i.E,{display:"inline-flex","data-testid":a,maxWidth:"100%",maxHeight:"100%",width:t,src:`/images/icons/${r}.svg`,alt:c??`svg-inline-icon:/images/icons/${r}.svg`,className:l,height:o,onClick:d})}},30230:function(e,r,t){t.d(r,{Dw:function(){return n.D},lv:function(){return l},u9:function(){return d}});var n=t(19338),i=t(82224),o=t(37508),a=t(56835);let l=function(e){let r=!(arguments.length>1)||void 0===arguments[1]||arguments[1],t=(0,o.v9)(a.f),{data:l}=(0,i.Zy)((0,n.h)(e,t),{enabled:r});return{data:Array.isArray(l)&&l.length>0?l:[]}},d=(e,r)=>{let t=(0,a.f)(e.store.getState());return e.prefetchQueryApi((0,n.h)(r,t))}},55281:function(e,r,t){t.d(r,{K:function(){return s}});var n=t(65548),i=t(85893),o=e=>(0,i.jsx)(n.m.div,{className:"chakra-stack__item",...e,__css:{display:"inline-block",flex:"0 0 auto",minWidth:0,...e.__css}});o.displayName="StackItem";var a=t(33951),l=t(92495),d=t(25432),c=t(16554),m=t(67294),s=(0,c.G)((e,r)=>{let{isInline:t,direction:c,align:s,justify:u,spacing:p="0.5rem",wrap:h,children:g,divider:f,className:x,shouldWrapChildren:y,..._}=e,b=t?"row":null!=c?c:"column",N=(0,m.useMemo)(()=>(function(e){let{spacing:r,direction:t}=e,n={column:{my:r,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},"column-reverse":{my:r,mx:0,borderLeftWidth:0,borderBottomWidth:"1px"},row:{mx:r,my:0,borderLeftWidth:"1px",borderBottomWidth:0},"row-reverse":{mx:r,my:0,borderLeftWidth:"1px",borderBottomWidth:0}};return{"&":(0,a.XQ)(t,e=>n[e])}})({spacing:p,direction:b}),[p,b]),A=!!f,v=!y&&!A,w=(0,m.useMemo)(()=>{let e=(0,l.W)(g);return v?e:e.map((r,t)=>{let n=void 0!==r.key?r.key:t,a=t+1===e.length,l=(0,i.jsx)(o,{children:r},n),d=y?l:r;if(!A)return d;let c=(0,m.cloneElement)(f,{__css:N});return(0,i.jsxs)(m.Fragment,{children:[d,a?null:c]},n)})},[f,N,A,v,y,g]),I=(0,d.cx)("chakra-stack",x);return(0,i.jsx)(n.m.div,{ref:r,display:"flex",alignItems:s,justifyContent:u,flexDirection:b,flexWrap:h,gap:A?void 0:p,className:I,..._,children:w})});s.displayName="Stack"}}]);