1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6222],{62266:(e,n,t)=>{"use strict";t.r(n),t.d(n,{__N_SSG:()=>ty,default:()=>tP}),t(3414),t(64149),t(78062),t(98303),t(68101),t(9414),t(48225);var i,r,o,l=t(42969),a=t(14232);t(70418),t(50042),t(18827);var d=t(43181),s=t(34711),c=t(75417),p=t(53733),u=t(63857),h=t(32228),m=t(43081),g=t.n(m);t(52795),t(61871),t(80667),t(43550),t(59907),t(62051);var x=t(45856),f=t(37899),b=t(38993),w=t(79350),v=t(82851),k=t(54092),j=t(51806),y=t(33759),P=t(29481),O=t(78165);let A=t.p+"static/images/back-icon.9ea96488.svg";var F=t(80831),M=t(73841),D=t(96321),S=t(68382),C=t(85221),z=t(92892),N=t(5585),W=t(20722),E=t(23448),L=t(32556),T=t(3909),U=t(2683),I=t(60670),q=t(33849),J=t(48230),R=t.n(J),_=t(30600),G=t(91017),B=t(81308),V=t(40625),Y=t(32185),X=t(76388),$=t(21772),H=t(89099),K=t(13042),Q=t(37876);function Z(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,i)}return t}function ee(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Z(Object(t),!0).forEach(function(n){(0,l.A)(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}var en=(0,b.i7)(i||(i=(0,h.A)(["\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n"]))),et=(0,d.A)("div",{target:"enebw8l36"})("max-width:1400px;margin:auto;",c.w4.breakpoints.down("1600"),"{margin-left:13px;}",c.w4.breakpoints.down("md"),"{margin-left:33px;}",c.w4.breakpoints.down("1060"),"{margin-left:33px;}",c.w4.breakpoints.down("md"),"{overflow-x:hidden;}",function(e){return e.errorPage&&"\n > a, > button {\n display: flex;\n margin: 40px auto;\n width: 100%;\n max-width: 445px;\n border-top: none;\n text-decoration: none;\n }\n "}," ",c.w4.breakpoints.down("1600"),"{&{>div{>div{>div{>a{margin-left:63px;}}}}}}",c.w4.breakpoints.up("lg"),"{padding-bottom:137px;&{>div{>div{>div{&:first-child{margin-top:30px;position:relative;z-index:5;}>a{font-size:14px;font-style:normal;font-weight:700;line-height:21px;text-transform:uppercase;text-decoration:none;display:flex;align-items:center;&:before{content:url(",C,");margin-right:10px;transform:scale(-1);filter:brightness(0) saturate(100%) invert(26%) sepia(36%) saturate(4535%) hue-rotate(194deg) brightness(103%) contrast(99%);}~div{margin-right:60px;margin-left:63px;max-width:750px;}}}}}}}h2{max-width:815px;margin-left:auto;margin-right:auto;}h1{margin-bottom:20px;color:#010101;",c.w4.breakpoints.up("lg"),"{font-size:34px;padding-top:37px;}",c.w4.breakpoints.down("md"),"{font-size:18px;padding-top:25px;padding-left:20px;}",c.w4.breakpoints.down("sm"),"{padding-left:0;}}"),ei=(0,d.A)("div",{target:"enebw8l35"})(c.w4.breakpoints.up("lg"),"{display:flex;gap:60px;}",c.w4.breakpoints.down("md"),"{padding-left:20px;}",c.w4.breakpoints.down("sm"),"{padding-left:0;}"),er=(0,d.A)("div",{target:"enebw8l34"})({name:"1d3w5wq",styles:"width:100%"}),eo=(0,d.A)("div",{target:"enebw8l33"})("width:100%;overflow:hidden;label{padding:0 12px;background:",c.w4.palette.white,";}",c.w4.breakpoints.up("lg"),"{max-width:445px;max-width:400px;min-width:400px;padding-left:60px;border-left:1px solid #D9D9D9;}",c.w4.breakpoints.up("lg"),"{max-width:445px;}");(0,d.A)("div",{target:"enebw8l32"})("margin:20px 0;color:",c.w4.palette.charcoal,";",c.w4.breakpoints.up("lg"),"{h4{font-size:22px;line-height:22px;}}",c.w4.breakpoints.up("lg"),"{margin:40px 0 20px;}",c.w4.breakpoints.down("md"),"{margin-bottom:20px;h4{font-size:16px;line-height:22px;}}"),(0,d.A)("hr",{target:"enebw8l31"})("border-top:1px solid ",c.w4.palette.middleGrey,";border-bottom:0;border-left:0;border-right:0;",function(e){return e.medium&&"\n ".concat(c.w4.breakpoints.down("md")," {\n display: none;\n }\n ")},";");var el=(0,d.A)("div",{target:"enebw8l30"})(c.w4.breakpoints.down("md"),"{width:100%;margin-bottom:80px;}"),ea=(0,d.A)("div",{target:"enebw8l29"})("margin:auto;",c.w4.breakpoints.up("lg"),"{}h4{letter-spacing:0;}"),ed=(0,d.A)("div",{target:"enebw8l28"})(function(e){return e.loading?"\n display: none;\n ":"\n display: block;\n "}," ",c.w4.breakpoints.up("lg"),"{margin-top:70px;}"),es=(0,d.A)("div",{target:"enebw8l27"})("text-align:center;align-items:center;justify-content:center;>img{animation:",en," 2s linear infinite;}",c.w4.breakpoints.up("lg"),"{min-height:150px;}",c.w4.breakpoints.up("lg"),"{min-height:300px;}",c.w4.breakpoints.down("md"),"{min-height:130px;}",function(e){return e.loading?"\n display: flex;\n ":"\n display: none;\n "},";"),ec=(0,d.A)("div",{target:"enebw8l26"})("position:relative;h4{margin-bottom:20px;}sup{font-size:16px;margin-left:5px;font-weight:500;}hr{margin:23px 0;}width:100%;height:100%;",c.w4.breakpoints.up("lg"),"{max-width:445px;float:right;}",c.w4.breakpoints.down("md"),"{padding-bottom:60px;}"),ep=(0,d.A)("div",{target:"enebw8l25"})(c.w4.breakpoints.down("md"),"{padding-top:8px;border-top:1px solid ",c.w4.palette.middleGrey,";width:100%;left:0;padding:11px 20px;background:#F3F4F7;max-width:100%;position:absolute;}",function(e){return 1==e.fixed&&"\n // ".concat(c.w4.breakpoints.down("md")," {\n // position: fixed;\n // bottom: 70px;\n // }\n ")}," ",function(e){return 1==e.disablePrice&&1==e.fixed&&"\n ".concat(c.w4.breakpoints.down("md")," {\n bottom: 0;\n }\n ")},";");(0,d.A)("div",{target:"enebw8l24"})({name:"1gghmg2",styles:"margin:40px auto;max-width:445px;border-top:none"});var eu=(0,d.A)("div",{target:"enebw8l23"})(""),eh=(0,d.A)(x.A,{target:"enebw8l22"})("background-color:",c.w4.palette.white,';width:100%;display:block;justify-content:start;border-radius:6px;margin-right:8px;text-align:left;border-radius:8px;border:1px solid #DCDCDC;margin-bottom:12px;position:relative;&:before{content:"";font-size:1rem;display:inline-block;background:inherit;border:1px solid #979797;border-radius:59px;position:absolute;top:50%;transform:translateY(-50%);}',function(e){return 1==e.active&&"\n border: 2px solid ".concat(c.w4.palette.vividBlue,";\n &:before {\n background: #0170D4;\n display: flex;\n justify-content: center;\n align-items: center;\n border: none;\n ").concat(c.w4.breakpoints.up("lg")," {\n content: url(").concat(L,");\n }\n ").concat(c.w4.breakpoints.down("md")," {\n content: url(").concat(T,");\n }\n }\n ")}," ",c.w4.breakpoints.up("lg"),"{padding:13px;>*{margin-left:41px;}&:before{width:25px;height:25px;}}",c.w4.breakpoints.down("md"),"{min-width:auto;padding:10px;>*{margin-left:35px;}&:before{width:19px;height:19px;}}"),em=(0,d.A)("div",{target:"enebw8l21"})(c.w4.breakpoints.down("md"),"{white-space:nowrap;}"),eg=(0,d.A)("div",{target:"enebw8l20"})({name:"x64zaa",styles:"margin-top:5px;border-radius:8px;border:1px solid #DCDCDC;padding:10px;max-width:750px"}),ex=(0,d.A)("div",{target:"enebw8l19"})({name:"1cvrpw2",styles:"line-height:14px;strong{font-size:14px;}p{margin:0;font-size:12px;line-height:14px;}"});(0,d.A)("div",{target:"enebw8l18"})({name:"j2hkuk",styles:"position:absolute;right:10px;top:50px;transform:translateY(-50%)"});var ef=(0,d.A)("div",{target:"enebw8l17"})({name:"1r5gb7q",styles:"display:inline-block"}),eb=(0,d.A)("div",{target:"enebw8l16"})("display:inline-block;margin-right:5px;svg{path{fill:",c.w4.palette.vividBlue,";}}"),ew=(0,d.A)("div",{target:"enebw8l15"})({name:"1r5gb7q",styles:"display:inline-block"}),ev=(0,d.A)("div",{target:"enebw8l14"})("display:inline-block;margin-right:2px;",function(e){return 1==e.opacity&&"\n opacity: 0.5; \n "},";"),ek=(0,d.A)("span",{target:"enebw8l13"})("display:inline-block;vertical-align:middle;color:",c.w4.palette.charcoal,";position:relative;top:-5px;svg{path{fill:",c.w4.palette.vividBlue,";}}"),ej=(0,d.A)(j.A,{target:"enebw8l12"})("margin:20px 0;color:",c.w4.palette.charcoal,";",c.w4.breakpoints.up("lg"),"{h4{font-size:22px;line-height:22px;}}",c.w4.breakpoints.up("lg"),"{margin:40px 0 20px;}",c.w4.breakpoints.down("md"),"{margin-bottom:20px;h4{font-size:16px;line-height:22px;}}"),ey=(0,d.A)("div",{target:"enebw8l11"})("display:flex;gap:10px;align-items:center;margin-bottom:12px;line-height:21px;>div{line-height:0;}a{font-size:14px;font-weight:700;text-transform:uppercase;color:",c.w4.palette.charcoal,";text-decoration:none;}"),eP=(0,d.A)("div",{target:"enebw8l10"})({name:"2wyx80",styles:"padding-bottom:9px;>div{font-size:15px;}"}),eO=(0,d.A)("div",{target:"enebw8l9"})("display:flex;flex-wrap:wrap;border-top:1px solid ",c.w4.palette.middleGrey,";",c.w4.breakpoints.up("lg"),"{font-size:16px;}"),eA=(0,d.A)("div",{target:"enebw8l8"})("display:flex;color:inherit;",function(e){return e.index&&e.index%2==0?"\n &:not(:nth-child(".concat(e.index,")):not(:nth-child(").concat(e.index-1,")) {\n border-bottom: 1px solid ").concat(c.w4.palette.middleGrey,";\n }\n "):"\n &:not(:nth-child(".concat(e.index,")) {\n border-bottom: 1px solid ").concat(c.w4.palette.middleGrey,";\n }\n ")}," padding:10px 0;width:100%;font-size:14px;",c.w4.breakpoints.up("lg"),"{min-width:50%;max-width:50%;padding:5px 0;font-size:16px;}"),eF=(0,d.A)("div",{target:"enebw8l7"})({name:"1revgmq",styles:"min-width:50%;max-width:50%;padding-right:20px;color:#2E3238"}),eM=(0,d.A)("div",{target:"enebw8l6"})({name:"19o5f9g",styles:"width:100%;padding-right:20px;color:#2E3238"}),eD=(0,d.A)("div",{target:"enebw8l5"})("margin:20px 0 0;max-width:750px;h6{margin-bottom:20px;}>div{>div{>div{padding:0;>div{&:first-child{font-size:15px;letter-spacing:1px;padding-bottom:9px;}}}}}",c.w4.breakpoints.up("lg"),"{margin:50px 0;}"),eS=(0,d.A)("div",{target:"enebw8l4"})(c.w4.breakpoints.down("lg"),"{margin-bottom:60px;}",c.w4.breakpoints.down("md"),"{padding-left:20px;}",c.w4.breakpoints.down("sm"),"{padding-left:0;}"),eC=(0,d.A)("div",{target:"enebw8l3"})("position:fixed;width:100%;right:0;z-index:3;",c.w4.breakpoints.up("lg"),"{>div{width:100%;}}",c.w4.breakpoints.up("lg"),"{bottom:-4px;>div{float:right;}}",c.w4.breakpoints.down("md"),"{bottom:-4px;>div{width:100%;margin-top:15px;}}",function(e){return 1==e.fixed?"\n position: fixed;\n ".concat(c.w4.breakpoints.down("md")," {\n bottom: 0;\n }\n "):"\n position: absolute;\n ".concat(c.w4.breakpoints.down("md")," {\n bottom: -4px;\n }\n ")}," ",c.w4.breakpoints.up("lg"),"{",function(e){return e.containerWidth>0?"\n > div {\n min-width: ".concat(400+e.containerWidth,"px;\n max-width: ").concat(400+e.containerWidth,"px;\n }\n "):"\n > div {\n min-width: ".concat(400,"px;\n max-width: ").concat(400,"px;\n }\n ")},";>div{float:right;}}",c.w4.breakpoints.up("1280"),"{",function(e){return e.containerWidth>0?"\n > div {\n min-width: ".concat(445+e.containerWidth,"px;\n max-width: ").concat(445+e.containerWidth,"px;\n }\n "):"\n > div {\n min-width: ".concat(445,"px;\n max-width: ").concat(445,"px;\n }\n ")},";}",c.w4.breakpoints.down("md"),"{>div{width:100%;margin-top:15px;}}"),ez=(0,d.A)("div",{target:"enebw8l2"})({name:"10n1oxj",styles:"height:50px;width:50px;position:absolute;bottom:0"}),eN=(0,d.A)("div",{target:"enebw8l1"})(c.w4.breakpoints.up("lg"),"{position:relative;z-index:4;margin-bottom:35px;max-width:calc(100% - 460px);}",c.w4.breakpoints.down("1600"),"{margin-left:63px;max-width:calc(100% - 523px);padding-right:20px;}",c.w4.breakpoints.down("md"),"{width:auto;max-width:100%;position:relative;top:-71px;overflow-x:hidden;margin-bottom:75px;margin-top:10px;}",c.w4.breakpoints.down("sm"),"{margin-left:0;margin-bottom:20px;margin-top:0;}"),eW=(0,d.A)("div",{target:"enebw8l0"})({name:"afkcbp",styles:">div{font-size:10px!important;line-height:16px;color:#2E3238;letter-spacing:normal!important;margin-top:10px;margin-bottom:4px;}"}),eE=(0,k.A)(function(){return{modalInner:(0,l.A)({maxWidth:1220,margin:"0 auto",display:"inline-block",position:"relative"},c.w4.breakpoints.up("lg"),{maxWidth:1320,paddingLeft:50,paddingRight:50}
1)}}),eL={},eT={},eU=[],eI={};let eq=function(e){var n,t,i,o,l,d,p,m=e=ee(ee({},e),{},{colourTheme:void 0===e.colourTheme?"light":e.colourTheme,type:void 0===e.type?"caravan":e.type,seriesName:void 0===e.seriesName?null:e.seriesName,seriesUrl:void 0===e.seriesUrl?eL:e.seriesUrl,seriesParams:void 0===e.seriesParams?null:e.seriesParams,modelName:void 0===e.modelName?null:e.modelName,modelUrl:void 0===e.modelUrl?null:e.modelUrl,modelParams:void 0===e.modelParams?null:e.modelParams,modelPrice:void 0===e.modelPrice?eT:e.modelPrice,currentWidth:void 0===e.currentWidth?null:e.currentWidth,dealers:void 0===e.dealers?eU:e.dealers,countryProps:void 0===e.countryProps?eI:e.countryProps,buildPriceDisclaimer:void 0===e.buildPriceDisclaimer?null:e.buildPriceDisclaimer}),x=m.models,b=m.seriesName,k=m.seriesUrl,C=(m.seriesParams,m.modelName),L=m.modelUrl,T=(m.modelParams,m.floorplans,m.uri),J=(m.cta,m.financeLink,m.brochureLink,m.specsFeatures,m.colourTheme),K=m.background,Z=m.rangeId,en=m.seriesId,eq=m.modelPrice,eJ=m.currentWidth,eR=m.dealers,e_=m.countryProps,eG=m.buildPriceDisclaimer,eB=(0,a.useState)(!1),eV=eB[0],eY=eB[1];(0,a.useEffect)(function(){eY(!0)},[]);var eX=JSON.parse((0,q.a)(G.k))||{};eX&&eX.seriesName&&b&&eX.seriesName==b?null!=(p=eX)&&p.selectedModel?eX.selectedModel=eX.selectedModel:eX.selectedModel=x[0]:((eX={}).selectedModel?eX.selectedModel=eX.selectedModel:eX.selectedModel=x[0],eX.seriesName=b&&b);var e$=(0,a.useState)(null),eH=e$[0],eK=e$[1],eQ=(0,a.useState)((0,v.get)(x[0],"floorplans[0].floorplan",x[0].floorplans[0].floorplan)),eZ=eQ[0];eQ[1];var e0=(0,a.useState)(null),e1=e0[0],e4=e0[1],e2=(0,a.useState)(null),e5=(e2[0],e2[1]),e3=(0,a.useState)(!1),e8=e3[0],e6=e3[1],e7=(0,a.useState)(0),e9=e7[0],ne=e7[1],nn=(0,a.useState)(eX&&eX.additionalPrice?parseFloat(eX.additionalPrice):eX&&eX.selectedModelFloorplan&&eX.selectedModelFloorplan.activeConfiguration&&eX.selectedModelFloorplan.activeConfiguration.additionalPrice?parseFloat(eX.selectedModelFloorplan.activeConfiguration.additionalPrice):e1?parseFloat(e1.additionalPrice):0),nt=nn[0],ni=nn[1],nr=(0,a.useState)(!0),no=nr[0],nl=nr[1],na=(0,a.useState)(!0),nd=na[0],ns=na[1],nc=(0,a.useState)(null),np=nc[0],nu=nc[1],nh=(0,a.useState)(!1),nm=nh[0],ng=nh[1],nx=(0,H.useRouter)(),nf=[""],nb=(0,s.A)(c.w4.breakpoints.up("0")),nw=(0,s.A)(c.w4.breakpoints.up("lg")),nv=(0,s.A)(c.w4.breakpoints.down("md")),nk="light"===J?"charcoal":"white",nj=function(){var e,n;e1&&eX&&eX.seriesName&&b&&eX.seriesName!=b?((eX={}).seriesName=b,eX.currentPrice=e9,eX.additionalPrice=nt,null!=(e=eX)&&null!=(e=e.selectedModelFloorplan)&&e.activeConfiguration&&(eX.selectedModelFloorplan.activeConfiguration=e1),(0,q.w)(G.k,JSON.stringify(eX),86400)):e1&&b?(eX.seriesName=b,eX.currentPrice=e9,eX.additionalPrice=nt,null!=(n=eX)&&null!=(n=n.selectedModelFloorplan)&&n.activeConfiguration&&(eX.selectedModelFloorplan.activeConfiguration=e1),(0,q.w)(G.k,JSON.stringify(eX),86400)):e5("There is option missing"),(0,q.w)(B.E,(null==nx?void 0:nx.pathname)&&nx.pathname,7200)};(0,a.useEffect)(function(){var e;(e=(0,u.A)(g().mark(function e(){var n,t,i,o,l;return g().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(t=(0,w.J1)(r||(r=(0,h.A)(["\n ","\n "])),E.A),!(eZ&&eZ.floorplanId)){e.next=7;break}return e.next=4,W.A.query({query:t,variables:{id:eZ.floorplanId}});case 4:e.t0=e.sent,e.next=8;break;case 7:e.t0={};case 8:i=e.t0,(o=null!=np&&null!=(n=np.data)&&n.contact?(0,$.A)(np.data.contact):(0,$.A)())&&(l=i.data&&i.data.getModel?i.data.getModel[o]:0)&&l>0&&eK(l);case 11:case"end":return e.stop()}},e)})),function(){return e.apply(this,arguments)})()},[eZ,np&&np]);var ny=eE(),nP=(0,a.useRef)(null);(0,a.useEffect)(function(){ne(eX&&eX.currentPrice?eX.currentPrice:eX&&eX.selectedModelFloorplan&&eX.selectedModelFloorplan.activeFloorPlanModel&&eX.selectedModelFloorplan.activeFloorPlanModel.floorplan&&eX.selectedModelFloorplan.activeFloorPlanModel.floorplan.price?eX.selectedModelFloorplan.activeFloorPlanModel.floorplan.price:eH||0)},[eX,eH]);var nO=(0,V.Wx)({threshold:0}),nA=nO.ref,nF=nO.inView;return nO.entry,(0,a.useEffect)(function(){var e=function(e){nF?setTimeout(function(){nl(!1)},300):setTimeout(function(){nl(!0)},300)};return e(),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}},[nF&&nF,nb]),(0,a.useEffect)(function(){e4(x&&x.length>0&&x[0].floorplans&&x[0].floorplans.length>0&&eX&&eX.selectedModelFloorplan&&eX.selectedModelFloorplan.activeFloorplanIndex&&eX.selectedModelFloorplan.activeConfiguration&&x[0].floorplans[0].floorplan&&x[0].floorplans[0].floorplan.configurations&&x[0].floorplans[0].floorplan.configurations.some(function(e){return e.id==eX.selectedModelFloorplan.activeConfiguration.id})?eX.selectedModelFloorplan.activeConfiguration:x[0].floorplans[0].floorplan.configurations[0])},[x]),eV&&(0,Q.jsxs)(Q.Fragment,{children:[eX&&eX.seriesName==b&&(null==(n=eX)||null==(n=n.selectedModelFloorplan)||null==(n=n.activeFloorPlanModel)?void 0:n.uri)==C&&eX.selectedModel&&Object.values(eX.selectedModel).length>0&&eX.selectedModelFloorplan&&Object.values(eX.selectedModelFloorplan).length>0&&(0,Q.jsxs)(et,{background:K,colourTheme:J,ref:nP,children:[eZ&&eZ.specsFeatures&&(0,Q.jsx)(z.A,{isOpen:e8,onClose:function(){return e6(!1)},innerClassname:ny.modalInner,children:(0,Q.jsx)(N.A,ee(ee({},eZ.specsFeatures.modal),{},{background:"dark"===J||"black"===K?"black":"white",rangeId:Z,seriesId:en,uri:T}))}),(0,Q.jsxs)(ea,{children:[b&&nv&&(0,Q.jsx)(j.A,{variant:"h1",weight:800,uppercase:!0,children:b.indexOf("Jayco")>-1?b:"Jayco ".concat(b)}),nv&&(0,Q.jsx)(eS,{children:(0,Q.jsx)(I.A,{modelStepsData:(0,U.P)(k&&k.link&&k.link.href,(null==(t=eX)||null==(t=t.selectedModelFloorplan)||null==(t=t.activeFloorPlanModel)?void 0:t.uri)&&eX.selectedModelFloorplan.activeFloorPlanModel.uri,nf,2),handleSaveData:nj})}),(0,Q.jsxs)(ei,{children:[(0,Q.jsxs)(er,{children:[nw&&(0,Q.jsx)(R(),{href:k&&k.link&&k.link.href?"".concat(k.link.href,"?floorplan"):"#",children:"Back"}),e1&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(es,{loading:nd,children:(0,Q.jsx)("img",{src:X,alt:"loader"})}),(0,Q.jsx)(ed,{onLoad:function(){ns(!1)},children:(0,Q.jsx)(y.A,ee(ee({},e1.image),{},{type:"png"}))})]}),e1&&(0,Q.jsxs)(eg,{children:[(0,Q.jsxs)(em,{children:[(0,Q.jsx)(ef,{children:Array.apply(null,{length:e1.sleepsAdults}).map(function(e,n){return(0,Q.jsx)(eb,{children:(0,Q.jsx)(D.k,{src:F},n)},n)})}),e1.sleepsChildren>0&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(ek,{children:(0,Q.jsx)(D.k,{src:S})}),(0,Q.jsx)(ew,{children:Array.apply(null,{length:e1.sleepsChildren}).map(function(e,n){return(0,Q.jsx)(ev,{children:(0,Q.jsx)(D.k,{src:M},n)},n)})})]}),e1.sleepsAdditional>0&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(ek,{children:(0,Q.jsx)(D.k,{src:S})}),(0,Q.jsx)(ew,{children:Array.apply(null,{length:e1.sleepsAdditional}).map(function(e,n){return(0,Q.jsx)(ev,{opacity:1,children:(0,Q.jsx)(D.k,{src:M},n)},n)})})]})]}),(0,Q.jsxs)(ex,{children:[e1.size&&(0,Q.jsx)("strong",{children:e1.size}),e1.shape&&(0,Q.jsx)("p",{children:e1.shape})]})]}),nw&&(0,Q.jsx)(eD,{children:(0,Q.jsx)(f.A,{container:!0,direction:"row",children:(0,Q.jsx)(f.A,{children:eZ&&eZ.specsFeatures&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(eP,{children:(0,Q.jsx)(j.A,{variant:"body2",uppercase:!0,weight:700,colour:nk,children:"Specifications"})}),(0,Q.jsx)(eO,{colour:"dark"===J?"white":"black",children:eZ.specsFeatures.specs.map(function(e,n){return(0,Q.jsxs)(eA,{index:eZ.specsFeatures.specs.length,children:[(0,Q.jsx)(eF,{children:e.title}),(0,Q.jsx)(eM,{children:e.value})]},e.item?e.item:n)})}),(0,Q.jsx)(eW,{children:(0,Q.jsx)(j.A,{variant:"body2",children:"The weights and dimensional data are not binding. Jayco reserve the right to alter specifications without notice. The
1se are a guide only and will change depending on accessories fitted to your van. It is advised to discuss this with your Jayco representative. The load carrying capacity of Jayco RVâs vary from product to product to ensure it is fit-for-purpose."})}),(0,Q.jsx)(O.A,{onClick:function(e){e&&e.preventDefault(),e6(!0)},link:{title:"View all SPECS & FEATURES"},colour:"dark"===J?"white":"black"})]})})})})]}),(0,Q.jsx)(eo,{children:eZ&&eZ.title&&(0,Q.jsxs)(ec,{children:[b&&nw&&(0,Q.jsx)(j.A,{variant:"h1",weight:800,uppercase:!0,children:b.indexOf("Jayco")>-1?b:"Jayco ".concat(b)}),nw&&(0,Q.jsx)(eS,{children:(0,Q.jsx)(I.A,{modelStepsData:(0,U.P)(k&&k.link&&k.link.href,(null==(i=eX)||null==(i=i.selectedModelFloorplan)||null==(i=i.activeFloorPlanModel)?void 0:i.uri)&&eX.selectedModelFloorplan.activeFloorPlanModel.uri,nf,2),handleSaveData:nj})}),(0,Q.jsxs)(el,{children:[(0,Q.jsx)(ej,{variant:"body1",colour:nk,children:(0,Q.jsx)(j.A,{variant:"h4",weight:700,children:"Select a Floor Plan Configuration"})}),(0,Q.jsxs)(eu,{children:[(0,Q.jsxs)(ey,{children:[(0,Q.jsx)(D.k,{src:A}),(0,Q.jsx)(R(),{href:k&&k.link&&k.link.href?"".concat(k.link.href,"?floorplan"):"#",children:"Back to floorplan"})]}),eZ&&eZ.configurations&&eZ.configurations.map(function(e,n){return(0,Q.jsxs)(eh,{onClick:function(){var n,t;e4(e),ni(parseFloat(e.additionalPrice?e.additionalPrice:0)+parseFloat(null!=(n=eX)&&null!=(n=n.selectedInteriorDecors)&&n.activePrice?eX.selectedInteriorDecors.activePrice:0)+parseFloat(null!=(t=eX)&&t.selectedOptions&&eX.selectedOptions.length>0?eX.selectedOptions.map(function(e){return e.price}).reduce(function(e,n){return e+n},0):0))},active:e1&&e1.id&&e.id===e1.id?1:0,children:[(0,Q.jsxs)(em,{children:[(0,Q.jsx)(ef,{children:Array.apply(null,{length:e.sleepsAdults}).map(function(n,t){return(0,Q.jsx)(eb,{children:(0,Q.jsx)(D.k,{src:F},e.id+t)},e.id+t)})}),e.sleepsChildren>0&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(ek,{children:(0,Q.jsx)(D.k,{src:S})}),(0,Q.jsx)(ew,{children:Array.apply(null,{length:e.sleepsChildren}).map(function(n,t){return(0,Q.jsx)(ev,{children:(0,Q.jsx)(D.k,{src:M},e.id+t)},e.id+t)})})]}),e.sleepsAdditional>0&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(ek,{children:(0,Q.jsx)(D.k,{src:S})}),(0,Q.jsx)(ew,{children:Array.apply(null,{length:e.sleepsAdditional}).map(function(n,t){return(0,Q.jsx)(ev,{opacity:1,children:(0,Q.jsx)(D.k,{src:M},e.id+t)},e.id+t)})})]})]}),(0,Q.jsxs)(ex,{children:[e.size&&e.size,e.shape&&(0,Q.jsx)("p",{children:e.shape})]})]},e.id)})]}),(0,Q.jsx)(ep,{fixed:+!!no,disablePrice:+!!e.disablePrice,children:(0,Q.jsx)(R(),{href:L&&"".concat(L,"?decor"),onClick:nj,children:(0,Q.jsx)(P.RO,{children:"Next"})})})]})]})})]})]})]}),(eX&&0==Object.values(eX).length||b!=eX.seriesName||(null==(o=eX)||null==(o=o.selectedModelFloorplan)||null==(o=o.activeFloorPlanModel)?void 0:o.uri)!=C||(null==(l=eX)||null==(l=l.selectedModelFloorplan)||null==(l=l.activeFloorPlanModel)?void 0:l.uri)!=C||eX&&!eX.selectedModelFloorplan)&&(0,Q.jsx)(et,{background:K,colourTheme:J,errorPage:eX&&0==Object.values(eX).length||b!=eX.seriesName||eX&&!eX.selectedModelFloorplan?1:0,children:(0,Q.jsx)(R(),{href:k&&k.link&&k.link.href?"".concat(k.link.href):"#",children:(0,Q.jsx)(P.RO,{children:"Select Model First"})})}),eX&&eX.seriesName==b&&(null==(d=eX)||null==(d=d.selectedModelFloorplan)||null==(d=d.activeFloorPlanModel)?void 0:d.uri)==C&&eX.selectedModel&&Object.values(eX.selectedModel).length>0&&(0,Q.jsxs)(Q.Fragment,{children:[!e.disablePrice&&(0,Q.jsx)(eC,{containerWidth:eJ>0?eJ:0,fixed:+!!no,children:(0,Q.jsx)(_.A,{price:e9,additionalPrice:nt,rates:eq.rates})}),(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(ez,{ref:nA}),(0,Q.jsx)(eN,{children:(0,Q.jsx)(Y.A,{dealers:eR,countryProps:e_,getCurrentSetSetLocation:function(e){nu(e)},openPostcodePopup:nm,setOpenPostcodePopup:ng,staticData:!0,buildPriceDisclaimer:!e.disablePrice&&e9&&eG&&eG||null})})]})]})]})};function eJ(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,i)}return t}function eR(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};
1n%2?eJ(Object(t),!0).forEach(function(n){(0,l.A)(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):eJ(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}var e_=(0,d.A)("div",{target:"e149hony1"})("padding-left:20px;padding-right:20px;position:relative;background:",c.w4.palette.lightGrey,";display:inline-block;width:100%;",c.w4.breakpoints.up("lg"),"{padding-left:40px;padding-right:40px;}",c.w4.breakpoints.down("sm"),"{}"),eG=(0,d.A)("div",{target:"e149hony0"})("max-width:1400px;margin:auto;",c.w4.breakpoints.up("md"),"{}"),eB={},eV={},eY={},eX={},e$=[];let eH=function(e){var n=e=eR(eR({},e),{},{seriesName:void 0===e.seriesName?null:e.seriesName,seriesUrl:void 0===e.seriesUrl?eB:e.seriesUrl,modelLogo:void 0===e.modelLogo?eV:e.modelLogo,modelFloorplanConfiguration:void 0===e.modelFloorplanConfiguration?eY:e.modelFloorplanConfiguration,modelPrice:void 0===e.modelPrice?eX:e.modelPrice,dealers:void 0===e.dealers?e$:e.dealers,buildPriceDisclaimer:void 0===e.buildPriceDisclaimer?null:e.buildPriceDisclaimer}),t=(n.seriesName,n.seriesUrl,n.modelLogo),i=n.modelFloorplanConfiguration,r=n.modelPrice,o=n.dealers,l=n.buildPriceDisclaimer,d=n.disablePrice;(0,H.useRouter)();var u=(0,a.useState)(!0),h=u[0];u[1],(0,s.A)(c.w4.breakpoints.up("md")),(0,s.A)(c.w4.breakpoints.down("sm"));var m=(0,s.A)(c.w4.breakpoints.up("0")),g=(0,a.useRef)(null),x=(0,a.useRef)(null),f=(0,a.useState)(0),b=f[0],w=f[1],v=(0,a.useState)(0),k=v[0],j=v[1];return(0,a.useEffect)(function(){function e(){g.current&&g.current.clientWidth&&w(g.current.clientWidth)}function n(){x.current&&x.current.clientWidth&&j(x.current.clientWidth)}return g.current&&g.current.clientWidth&&w(g.current.clientWidth),window.addEventListener("resize",e),x.current&&x.current.clientWidth&&j(x.current.clientWidth),window.addEventListener("resize",n),function(){window.removeEventListener("resize",e),window.removeEventListener("resize",n)}},[m]),h&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(p.A,eR({},t)),(0,Q.jsx)(e_,{ref:g,children:(0,Q.jsx)(eG,{ref:x,children:(0,Q.jsx)(eq,eR(eR({},i),{},{modelPrice:r,currentWidth:(b-k)/2,dealers:o&&o,disablePrice:d,buildPriceDisclaimer:l}))})})]})};t(41730),t(82812),t(50614);var eK=t(51018),eQ=t(43010);function eZ(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,i)}return t}function e0(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?eZ(Object(t),!0).forEach(function(n){(0,l.A)(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):eZ(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}var e1=(0,b.i7)(o||(o=(0,h.A)(["\n from {\n transform: rotate(0deg);\n }\n to {\n transform: rotate(360deg);\n }\n"]))),e4=(0,d.A)("div",{target:"elvuufq17"})(""),e2=(0,d.A)("div",{target:"elvuufq16"})("margin:20px 0;",function(e){return e.background&&"\n color: #010101;\n "}," ",c.w4.breakpoints.up("md"),"{h4{font-size:22px;line-height:22px;}}",c.w4.breakpoints.up("lg"),"{margin:60px 0 40px;}",c.w4.breakpoints.down("sm"),"{margin-bottom:20px;h4{font-size:16px;line-height:22px;}}"),e5=(0,d.A)("div",{target:"elvuufq15"})(function(e){return e.errorPage&&"\n > a, > button, > span {\n display: flex;\n margin: 40px auto;\n width: 100%;\n max-width: 445px;\n border-top: none;\n text-decoration: none;\n justify-content: center;\n }\n "}," ",c.w4.breakpoints.up("lg"),"{margin-left:0;padding-bottom:177px;overflow:auto;}",c.w4.breakpoints.down("1500"),"{margin-left:13px;}",c.w4.breakpoints.down("md"),"{margin-left:33px;}",c.w4.breakpoints.down("1060"),"{margin-left:33px;}",c.w4.breakpoints.down("sm"),"{margin-left:0;}",c.w4.breakpoints.up("lg"),"{margin-left:0;}",c.w4.breakpoints.down("1500"),"{margin-left:13px;}",c.w4.breakpoints.down("md"),"{margin-left:33px;padding-bottom:100px;}",c.w4.breakpoints.down("1060"),"{margin-left:33px;}",c.w4.breakpoints.down("sm"),"{margin-left:0;}h2{max-width:815px;margin-left:auto;margin-right:auto;}h1{margin-bottom:20px;color:#010101;padding-left:0;padding-right:0;",c.w4.breakpoints.up("lg"),"{font-size:34px;padding-top:37px;padding-left:0;}",c.w4.breakpoints.down("md"),"{font-size:18px;padding-top:25px;padding-left:20px;}}"),e3=(0,d.A)("div",{target:"elvuufq14"})(c.w4.breakpoints.up("md"),"{>div{&:first-child{margin-bottom:49px;}}}",c.w4.breakpoints.down("sm"),"{>div{&:first-child{margin-bottom:35px;}}}"),e8=(0,d.A)("div",{target:"elvuufq13"})(c.w4.breakpoints.up("lg"),"{display:flex;justify-content:center;}"),e6=(0,d.A)("div",{target:"elvuufq12"})("position:relative;transition:opacity 400ms ease-in-out;",function(e){return e.visible?"\n opacity: 1;\n visibility: visible;\n z-index: initial;\n ":"\n opacity: 0;\n visibility: hidden;\n z-index: -10000;\n position: fixed;\n left: -10000px;\n top: -10000px;\n "}," ",c.w4.breakpoints.up("lg"),"{display:flex;align-items:center;justify-content:flex-end;width:100%;}"),e7=(0,d.A)("div",{target:"elvuufq11"})(function(e){return e.background&&"\n span {\n color: #758094;\n }\n ".concat(c.w4.breakpoints.up("md")," {\n font-size: 15px;\n } \n ").concat(c.w4.breakpoints.down("sm")," {\n font-size: 14px;\n margin-bottom: 60px;\n position: relative;\n } \n h4 {\n color: #282828;\n }\n ")}," ",c.w4.breakpoints.up("md"),"{position:relative;bottom:0;right:0;padding:0 20px 18px;width:100%;}",c.w4.breakpoints.up("lg"),"{padding:0 0 0 60px;border-left:1px solid #D9D9D9;max-width:445px;overflow:hidden;}",c.w4.breakpoints.down("md"),"{>a{font-size:11px;font-style:normal;font-weight:700;line-height:21px;padding:0 12px;text-transform:uppercase;text-decoration:none;display:flex;align-items:center;margin:-10px 0 20px;&:before{content:url(",C,");line-height:0;width:4px;height:auto;margin-right:7px;transform:scale(-1);filter:brightness(0) saturate(100%) invert(26%) sepia(36%) saturate(4535%) hue-rotate(194deg) brightness(103%) contrast(99%);}}}"),e9=(0,d.A)("div",{target:"elvuufq10"})("display:none;&:first-child{display:block;}",function(e){return e.loading?"\n display: none;\n ":"\n display: block;\n "}," ",c.w4.breakpoints.up("lg"),"{align-self:baseline;",function(e){return e.currentWidth&&"\n position: fixed;\n width: ".concat(e.currentWidth-485,"px;\n margin-right: 445px;\n ")},">a{font-size:14px;font-style:normal;font-weight:700;line-height:21px;text-transform:uppercase;text-decoration:none;display:flex;align-items:center;position:absolute;top:31px;left:61px;z-index:5;color:",c.w4.palette.white,";&:before{content:url(",C,");margin-right:10px;transform:scale(-1);filter:brightness(0) invert(1);}}}",c.w4.breakpoints.down("sm"),"{margin:0 -20px;}"),ne=(0,d.A)("div",{target:"elvuufq9"})("&:not(:last-child){margin-bottom:30px;}",c.w4.breakpoints.down("md"),"{display:block;}",function(e){return e.length>3?"\n width: 100%;\n ":"\n \n "},";"),nn=(0,d.A)("div",{target:"elvuufq8"})(c.w4.breakpoints.up("md"),"{h4{font-size:15px;line-height:21px;text-transform:uppercase;}}",c.w4.breakpoints.down("sm"),"{h4{font-size:12px;line-height:21px;}}"),nt=(0,d.A)("div",{target:"elvuufq7"})("margin-bottom:20px;picture,img{max-width:76px;}>label{border-radius:8px;border:1px solid #DCDCDC;}",c.w4.breakpoints.up("lg"),"{>label{background:",c.w4.palette.white,";padding:4px 16px 4px 8px;margin:15px 0;}}",c.w4.breakpoints.up("md"),"{picture{margin:0 8px 0 16px;}}",c.w4.breakpoints.down("md"),"{>label{background:",c.w4.palette.white,";padding:4px 16px 4px 8px;margin:12px 0;}}",c.w4.breakpoints.down("sm"),"{picture{margin:0 16px 0 8px;}}"),ni=(0,d.A)("div",{target:"elvuufq6"})(c.w4.breakpoints.down("md"),"{margin-bottom:22px;padding-left:20px;}",c.w4.breakpoints.up("lg"),"{padding:0;}"),nr=(0,d.A)("div",{target:"elvuufq5"})(c.w4.breakpoints.down("md"),"{padding-top:8px;border-top:1px solid ",c.w4.palette.middleGrey,";}",c.w4.breakpoints.down("sm"),"{padding-top:8px;border-top:1px solid ",c.w4.palette.middleGrey,";width:100%;left:0;padding:11px 0;z-index:5;background:#F3F4F7;max-width:100%;position:absolute;}",c.w4.breakpoints.up("lg"),"{margin-top:-10px;}",function(e){return 1==e.fixed&&"\n ".concat(c.w4.breakpoints.down("sm")," {\n position: fixed;\n bottom: 70px;\n padding: 11px 20px;\n }\n ")}," ",function(e){return 1==e.disablePrice&&1==e.fixed&&"\n ".concat(c.w4.breakpoints.down("sm")," {\n bottom: 0;\n }\n ")},";"),no=(0,d.A)("div",{target:"elvuufq4"})("position:absolute;width:100%;right:0;z-index:3;",c.w4.breakpoints.down("md"),"{bottom:-4px;>div{width:100%;margin-top:15px;>div{margin-left:53px;}}}",c.w4.breakpoints.down("sm"),"{>div{>div{margin-left:0;}}}",function(e){return 1==e.fixed?"\n position: fixed;\n ".concat(c.w4.breakpoints.down("md")," {\n bottom: 0;\n }\n "):"\n position: absolute;\n ".concat(c.w4.breakpoints.down("md")," {\n bottom: -4px;\n }\n ")}," ",c.w4.breakpoints.up("lg"),"{bottom:-4px;",function(e){return e.containerWidth>0?"\n > div {\n min-width: ".concat(445+e.containerWidth,"px;\n max-width: ").concat(445+e.containerWidth,"px;\n }\n "):"\n > div {\n min-width: ".concat(445,"px;\n max-width: ").concat(445,"px;\n }\n ")},";>div{float:right;width:100%;}}");(0,d.A)("div",{target:"elvuufq3"})(">a{font-size:14px;color:",c.w4.palette.vividBlue,";font-weight:700;}");var nl=(0,d.A)("div",{target:"elvuufq2"})({name:"1pmoqt0",styles:"height:200px;width:50px;position:absolute"}),na=(0,d.A)("div",{target:"elvuufq1"})(c.w4.breakpoints.up("lg"),"{",function(e){return e.currentWidth?"\n width: calc((100% + ".concat(e.currentWidth,"px - 13px) - 485px);\n left: ").concat(53-e.currentWidth,"px;\n "):"\n width: calc(100% - 445px)\n "}," position:relative;z-index:4;background:#f3f4f7;bottom:0;padding:20px 20px 20px 48px;display:flex;align-items:center;height:100%;}",c.w4.breakpoints.down("1500"),"{position:relative;",function(e){return e.currentWidth?"\n width: calc((100% + ".concat(e.currentWidth,"px - 13px) - 485px);\n left: ").concat(40-e.currentWidth,"px;\n "):"\n width: calc(100% - 445px)\n "}," margin-left:13px;}",c.w4.breakpoints.down("md"),"{padding-left:20px;z-index:2;max-width:100%;width:auto;bottom:140px;}",c.w4.breakpoints.down("sm"),"{width:auto;padding-left:0;max-width:100%;position:relative;top:-71px;left:0;margin-left:0;bottom:auto;z-index:2;>div{margin-left:0;}}"),nd=(0,d.A)("div",{target:"elvuufq0"})(c.w4.breakpoints.up("lg"),"{width:calc(100% - 445px);position:absolute;top:0;left:0;margin-top:200px;text-align:center;>img{animation:",e1," 2s linear infinite;}}",function(e){return e.loading?"\n display: block;\n ":"\n display: none;\n "},";"),ns={},nc=[],np={},nu=[],nh={};let nm=function(e){var n,t,i,r,o,l,d,p,u,h,m,g=e=e0(e0({},e),{},{background:void 0===e.background?null:e.background,seriesName:void 0===e.seriesName?null:e.seriesName,seriesParams:void 0===e.seriesParams?null:e.seriesParams,seriesUrl:void 0===e.seriesUrl?ns:e.seriesUrl,modelName:void 0===e.modelName?null:e.modelName,modelUrl:void 0===e.modelUrl?null:e.modelUrl,modelParams:void 0===e.modelParams?null:e.modelParams,data:void 0===e.data?nc:e.data,modelPrice:void 0===e.modelPrice?np:e.modelPrice,currentWidth:void 0===e.currentWidth?null:e.currentWidth,containerWidth:void 0===e.containerWidth?null:e.containerWidth,dealers:void 0===e.dealers?nu:e.dealers,countryProps:void 0===e.countryProps?nh:e.countryProps,buildPriceDisclaimer:void 0===e.buildPriceDisclaimer?null:e.buildPriceDisclaimer}),x=g.background,f=g.seriesName,b=g.seriesUrl,w=(g.seriesParams,g.modelName),v=g.modelUrl,k=(g.modelParams,g.data),O
1=g.modelPrice,A=g.currentWidth,F=g.containerWidth,M=g.dealers,D=g.countryProps,S=g.buildPriceDisclaimer,C=JSON.parse((0,q.a)(G.k))||{};C&&C.seriesName&&f&&C.seriesName==f||((C={}).seriesName=f&&f),k.map(function(e,n){e.selected=[],e.decorTitles.map(function(n,t){C&&C.selectedInteriorDecors&&C.selectedInteriorDecors.activeDecors&&C.selectedInteriorDecors.activeDecors.length>0&&n.decor.some(function(e){return C.selectedInteriorDecors.activeDecors[0][t][0].id==e.id})?e.selected[t]=C.selectedInteriorDecors.activeDecors[0][t][0].id:e.selected[t]=e.decorTitles[t].decor[0].id})});var z=(0,a.useState)(0),N=z[0];z[1];var W=(0,a.useState)(k),E=W[0],L=W[1],T=(0,a.useState)([]),J=T[0],$=T[1],K=(0,a.useState)([]),Z=K[0],ee=K[1],en=(0,a.useState)([]),et=en[0],ei=en[1],er=(0,a.useState)(E.map(function(e){return e.selected})),eo=er[0];er[1];var el=(0,a.useState)({}),ea=el[0],ed=el[1],es=(0,a.useState)(null),ec=(es[0],es[1]),ep=(0,a.useState)(null!=(n=C)&&null!=(n=n.selectedModelFloorplan)&&null!=(n=n.activeFloorPlanModel)&&null!=(n=n.floorplan)&&n.price?C.selectedModelFloorplan.activeFloorPlanModel.floorplan.price:null!=(t=C)&&t.currentPrice?C.currentPrice:0),eu=ep[0],eh=ep[1],em=(0,a.useState)(parseFloat(Z&&Z[0]?Z[0]:0)+parseFloat(null!=(i=C)&&null!=(i=i.selectedModelFloorplan)&&null!=(i=i.activeFloorPlanModel)&&null!=(i=i.activeConfiguration)&&i.additionalPrice?C.selectedModelFloorplan.activeConfiguration.additionalPrice:0)+parseFloat(null!=(r=C)&&r.selectedOptions&&C.selectedOptions.length>0?C.selectedOptions.map(function(e){return e.price}).reduce(function(e,n){return e+n},0):0)),eg=em[0],ex=em[1],ef=(0,a.useState)(!0),eb=ef[0],ew=ef[1],ev=(0,a.useState)(!0),ek=ev[0],ej=ev[1],ey=(0,a.useState)(null),eP=(ey[0],ey[1]),eO=(0,a.useState)(!1),eA=eO[0],eF=eO[1],eM=[""],eD=(0,H.useRouter)(),eS=(0,s.A)(c.w4.breakpoints.up("0")),eC=(0,s.A)(c.w4.breakpoints.up("lg")),ez=(0,s.A)(c.w4.breakpoints.down("md")),eN=function(e,n){return n.every(function(n){return e.includes(n)})},eW=function(e,n,t){L(E.map(function(i,r){return i.selected.map(function(i,r){return n==r?eo[e][r]=t.target.value:i}),i}))};(0,a.useEffect)(function(){(null==k?void 0:k.length)==0&&((0,q.a)(B.E)&&((0,q.a)(B.E).indexOf("floorplan/[floorplan]?options")>-1||(0,q.a)(B.E).indexOf("floorplan/[floorplan]/summary")>-1)?eD.push(v&&"".concat(v)):eD.push(v&&"".concat(v,"?options")))},[]),(0,a.useEffect)(function(){var e,n,t;E&&E.length>0&&E.map(function(e,n){return e.decorTitles.map(function(e,t){return e.decor.filter(function(e,i){if(eo[n][t].toString().toLowerCase()==e.id.toString().toLowerCase())return e})})}),eh(null!=(e=C)&&null!=(e=e.selectedModelFloorplan)&&null!=(e=e.activeFloorPlanModel)&&null!=(e=e.floorplan)&&e.price?C.selectedModelFloorplan.activeFloorPlanModel.floorplan.price:null!=(n=C)&&n.currentPrice?C.currentPrice:0),ex(parseFloat(Z&&Z[0]?Z[0]:0)+parseFloat(null!=(t=C)&&null!=(t=t.selectedModelFloorplan)&&null!=(t=t.activeFloorPlanModel)&&null!=(t=t.activeConfiguration)&&t.additionalPrice?C.selectedModelFloorplan.activeConfiguration.additionalPrice:0)+parseFloat(C.selectedOptions?C.selectedOptions.map(function(e){return e.price}).reduce(function(e,n){return e+n},0):0))},[E,Z]),(0,a.useEffect)(function(){var e=[],n=[];E.map(function(n,t){return n.assets.map(function(n,i){return eN(n.selection.map(function(e){return e.id.toString().toLowerCase()}),eo[t].map(function(e){return e.toString().toLowerCase()}))&&(e[t]=n.image)})}),E.map(function(e,t){return e.assets.map(function(e,i){return eN(e.selection.map(function(e){return e.id.toString().toLowerCase()}),eo[t].map(function(e){return e.toString().toLowerCase()}))&&(n[t]=e.price)})});var t=E&&E.length>0&&E.map(function(e,n){return e.decorTitles.map(function(e,t){return e.decor.filter(function(e,i){if(eo[n][t].toString().toLowerCase()==e.id.toString().toLowerCase())return e})})});t||(t=[]),ei(t.map(function(e,n){return e.map(function(e,t){return e0(e0({},e),{},{parent:E[n].decorTitles[t].title})})})),$(e),ee(n)},[E,eo]),(0,a.useEffect)(function(){ed({activeAsset:J&&J.length>0?J:null,activePrice:Z&&Z[0]?Z[0]:0,activeDecors:et&&et.length>0?et:null})},[J,et,Z]);var eE=function(){J&&J.length>0&&et&&et.length>0&&C&&C.seriesName&&f&&C.seriesName!=f?((C={}
1).seriesName=f,C.currentPrice=eu,C.additionalPrice=eg,C.selectedInteriorDecors=ea,(0,q.w)(G.k,JSON.stringify(C),86400)):J&&J.length>0&&et&&et.length>0?(ea&&(C.selectedInteriorDecors=ea,C.seriesName=f&&f,C.currentPrice=eu,C.additionalPrice=eg),(0,q.w)(G.k,JSON.stringify(C),86400)):ec("There is option missing")},eL=(0,V.Wx)({threshold:0}),eT=eL.ref,eU=eL.inView;eL.entry,(0,a.useEffect)(function(){var e=function(e){eU?setTimeout(function(){ew(!1)},300):setTimeout(function(){ew(!0)},300)};return e(),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}},[eU&&eU,eS]);var eI=function(){ej(!1)};return(0,Q.jsxs)(Q.Fragment,{children:[k&&k.length>0&&(0,Q.jsxs)(e4,{background:x||"#fff",children:[(null==(o=C)?void 0:o.seriesName)==f&&(null==(l=C)||null==(l=l.selectedModelFloorplan)||null==(l=l.activeFloorPlanModel)?void 0:l.uri)==w&&(null==(d=C)?void 0:d.selectedModel)&&Object.values(null==(p=C)?void 0:p.selectedModel).length>0&&(0,Q.jsx)(e5,{children:(0,Q.jsxs)(eK.A,{theme:c.w4,children:[f&&ez&&(0,Q.jsx)(j.A,{variant:"h1",weight:800,uppercase:!0,children:f.indexOf("Jayco")>-1?f:"Jayco ".concat(f)}),ez&&(0,Q.jsx)(ni,{children:(0,Q.jsx)(I.A,{modelStepsData:(0,U.P)(b&&b.link&&b.link.href,(null==(u=C)||null==(u=u.selectedModelFloorplan)||null==(u=u.activeFloorPlanModel)?void 0:u.uri)&&C.selectedModelFloorplan.activeFloorPlanModel.uri,eM,3),handleSaveData:eE})}),(0,Q.jsx)(e3,{children:(0,Q.jsx)(e8,{children:E&&E.length>0&&E.map(function(n,t){var i;return(0,Q.jsxs)(e6,{visible:N==t,children:[J&&J[t]&&Object.values(J[t]).length>0&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(nd,{loading:ek,children:(0,Q.jsx)("img",{src:X,alt:"loader"})}),(0,Q.jsxs)(e9,{active:"true",currentWidth:F>0&&F+(A>0?A:0),onLoad:eI,children:[eC&&(0,Q.jsx)(R(),{href:v&&v,children:"Back"}),(0,Q.jsx)(y.A,e0({},J[t]))]})]}),n.decorTitles&&n.decorTitles.length>0&&(0,Q.jsxs)(e7,{background:x,children:[f&&eC&&(0,Q.jsx)(j.A,{variant:"h1",weight:800,uppercase:!0,children:f.indexOf("Jayco")>-1?f:"Jayco ".concat(f)}),eC&&(0,Q.jsx)(ni,{children:(0,Q.jsx)(I.A,{modelStepsData:(0,U.P)(b&&b.link&&b.link.href,(null==(i=C)||null==(i=i.selectedModelFloorplan)||null==(i=i.activeFloorPlanModel)?void 0:i.uri)&&C.selectedModelFloorplan.activeFloorPlanModel.uri,eM,3),handleSaveData:eE})}),(0,Q.jsx)(e2,{background:x||"#fff",children:(0,Q.jsx)(j.A,{variant:"h4",weight:700,children:"Choose decor"})}),n.decorTitles.map(function(e,n){return(0,Q.jsxs)(ne,{length:e.decor&&e.decor.length,children:[(0,Q.jsx)(nn,{children:(0,Q.jsx)(j.A,{variant:"h4",weight:700,uppercase:!0,children:e.title})}),(0,Q.jsx)(nt,{children:e.decor&&e.decor.length>0&&e.decor.map(function(e,i){return(0,Q.jsx)(eQ.A,{changed:function(e){return eW(t,n,e)},id:"".concat(e.id).concat(n).concat(i),isSelected:eo[t][n].toString().toLowerCase()==e.id.toString().toLowerCase(),label:e.title,price:e.price,thumbnail:e.image,value:e.id,showOptionLabel:!0,showPrice:!0,flex:!0,hasThumbnail:!0},"".concat(e.id).concat(n).concat(i))})})]},n)}),ez&&(0,Q.jsx)(R(),{href:v&&v,children:"Back"}),(0,Q.jsx)(nr,{fixed:+!!eb,disablePrice:+!!e.disablePrice,children:(0,Q.jsx)(R(),{href:v?"".concat(v,"?options"):"#",onClick:eE,children:(0,Q.jsx)(P.RO,{children:"Next"})})})]})]},t)})})})]})}),(C&&0==Object.values(C).length||C&&!C.selectedModel||(null==(h=C)||null==(h=h.selectedModelFloorplan)||null==(h=h.activeFloorPlanModel)?void 0:h.uri)!=w&&k.length>0)&&(0,Q.jsx)(e5,{errorPage:1,children:(0,Q.jsx)(R(),{href:b&&b.link&&b.link.href?"".concat(b.link.href):"#",children:(0,Q.jsx)(P.RO,{children:"Select Model First"})})}),C&&C.currentPrice&&O&&C.seriesName==f&&(null==(m=C)||null==(m=m.selectedModelFloorplan)||null==(m=m.activeFloorPlanModel)?void 0:m.uri)==w&&C.selectedModel&&Object.values(C.selectedModel).length>0&&(0,Q.jsxs)(Q.Fragment,{children:[!e.disablePrice&&(0,Q.jsx)(no,{containerWidth:A>0?A:0,fixed:+!!eb,children:(0,Q.jsx)(_.A,{price:eu,additionalPrice:eg,rates:O.rates})}),(0,Q.jsx)(nl,{ref:eT}),(0,Q.jsx)(na,{currentWidth:A>0?A:0,children:(0,Q.jsx)(Y.A,{dealers:M,countryProps:D,getCurrentSetSetLocation:function(e){eP(e)},openPostcodePopup:eA,setOpenPostcodePopup:eF,staticData:!0,buildPriceDisclaimer:!e.disablePrice&&eu&&S||null})})]})]}),0==k.length&&(0,Q.jsx)(e4,{background:x||"#fff",children:(0,Q.jsx)(e5,{errorPage:+(0==k.length),children:(0,Q.jsx)("span",{children:(0,Q.jsx)(j.A,{variant:"h4",weight:700,children:"No decor available"})})})})]})};function ng(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,i)}return t}function nx(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};
1n%2?ng(Object(t),!0).forEach(function(n){(0,l.A)(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ng(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}var nf=(0,d.A)("div",{target:"ec7b6ri1"})("padding-left:20px;padding-right:20px;position:relative;background:",c.w4.palette.lightGrey,";display:inline-block;width:100%;",c.w4.breakpoints.up("lg"),"{padding-left:40px;padding-right:40px;}"),nb=(0,d.A)("div",{target:"ec7b6ri0"})({name:"1avs446",styles:"max-width:1400px;margin:auto"}),nw={},nv={},nk={},nj={},ny=[];let nP=function(e){var n=e=nx(nx({},e),{},{seriesName:void 0===e.seriesName?null:e.seriesName,seriesUrl:void 0===e.seriesUrl?nw:e.seriesUrl,modelLogo:void 0===e.modelLogo?nv:e.modelLogo,modelInteriorDecor:void 0===e.modelFloorplanConfiguration?nk:e.modelFloorplanConfiguration,modelPrice:void 0===e.modelPrice?nj:e.modelPrice,dealers:void 0===e.dealers?ny:e.dealers,buildPriceDisclaimer:void 0===e.buildPriceDisclaimer?null:e.buildPriceDisclaimer}),t=(n.seriesName,n.seriesUrl,n.modelLogo),i=n.modelInteriorDecor,r=n.modelPrice,o=n.dealers,l=n.buildPriceDisclaimer,d=n.disablePrice;(0,H.useRouter)();var u=(0,a.useState)(!0),h=u[0];u[1],(0,s.A)(c.w4.breakpoints.up("md")),(0,s.A)(c.w4.breakpoints.down("sm"));var m=(0,s.A)(c.w4.breakpoints.up("0")),g=(0,a.useRef)(null),x=(0,a.useRef)(null),f=(0,a.useState)(0),b=f[0],w=f[1],v=(0,a.useState)(0),k=v[0],j=v[1];return(0,a.useEffect)(function(){function e(){g.current&&g.current.clientWidth&&w(g.current.clientWidth)}function n(){x.current&&x.current.clientWidth&&j(x.current.clientWidth)}return g.current&&g.current.clientWidth&&w(g.current.clientWidth),window.addEventListener("resize",e),x.current&&x.current.clientWidth&&j(x.current.clientWidth),window.addEventListener("resize",n),function(){window.removeEventListener("resize",e),window.removeEventListener("resize",n)}},[m]),h&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(p.A,nx({},t)),(0,Q.jsx)(nf,{ref:g,children:(0,Q.jsx)(nb,{ref:x,children:(0,Q.jsx)(nm,nx(nx({},i),{},{modelPrice:r,dealers:o&&o,currentWidth:(b-k)/2,containerWidth:k,disablePrice:d,buildPriceDisclaimer:l}))})})]})};var nO=t(44478);t(70146),t(61464),t(41480),t(93939),t(7777);let nA=t.p+"static/images/model-mirror.3aa517fc.svg";function nF(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,i)}return t}function nM(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?nF(Object(t),!0).forEach(function(n){(0,l.A)(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):nF(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}var nD=(0,d.A)("div",{target:"e1gic5o62"})(""),nS=(0,d.A)("label",{target:"e1gic5o61"})(c.w4.breakpoints.down("md"),"{position:relative;display:block;}"),nC=(0,d.A)("input",{target:"e1gic5o60"})("border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;&+label{padding:0.25rem;display:flex;align-items:center;",c.w4.breakpoints.up("lg"),"{span{color:#758094;}>span{&:first-child{>span{&:first-child{font-size:15px;}&:last-child{font-size:12px;}}}&:last-child{font-size:15px;font-weight:700;}}}",c.w4.breakpoints.down("md"),"{span{color:#758094;}>span{&:nth-child(2){>span{&:first-child{font-size:12px;margin-bottom:5px;}&:last-child{font-size:9px;}}}&:last-child{font-size:12px;font-weight:700;}}}&:before{",function(e){return e.rounded&&"border-radius: 100%;"},' content:"";cursor:pointer;font-size:1rem;display:inline-block;background:inherit;border:1px solid #CAC6C5;transition:0.2s all linear;',c.w4.breakpoints.up("md"),"{width:25px;height:25px;}",c.w4.breakpoints.down("sm"),"{width:19px;height:19px;font-size:0;z-index:115;}}}",function(e){return 1==e.flex&&"\n & + label {\n border-radius: 8px;\n border: 1px solid #DCDCDC;\n background: #FFF;\n padding: 10px;\n margin-bottom: 13px;\n img {\n width: auto;\n margin-left: 9px;\n margin-right: 16px;\n }\n > span {\n &:last-child {\n position absolute;\n right: 10px;\n }\n }\n span {\n display: block;\n > span {\n ".concat(c.w4.breakpoints.up("lg")," {\n max-width: 173px;\n }\n ").concat(c.w4.breakpoints.up("md")," {\n max-width: 120px;\n }\n ").concat(c.w4.breakpoints.down("sm")," {\n max-width: 114px;\n }\n \n }\n }\n }\n ")}," ",function(e){return 1==e.flexMobile&&"\n ".concat(c.w4.breakpoints.up("lg")," {\n & + label {\n flex-direction: column;\n align-items: baseline;\n padding-top: 14px;\n gap: 5px;\n margin-bottom: 15px;\n &:before {\n position: absolute;\n bottom: 18px;\n right: 15px;\n }\n > span {\n > span {\n display: block;\n &:first-child {\n // margin-bottom: 5px;\n }\n &:last-child {\n // margin-bottom: 5px;\n }\n }\n &:first-child {\n // margin-bottom: 30px;\n }\n &:last-child {\n // position: absolute;\n // bottom: 35px;\n }\n }\n }\n }\n ").concat(c.w4.breakpoints.down("md")," {\n & + label {\n border-radius: 8px;\n border: 1px solid #DCDCDC;\n background: #FFF;\n padding: 10px;\n margin-bottom: 13px;\n img {\n width: auto;\n margin-left: 9px;\n margin-right: 16px;\n }\n > span {\n &:last-child {\n position absolute;\n right: 0;\n }\n }\n span {\n display: block;\n > span {\n max-width: 114px;\n }\n }\n }\n }\n ")}," ",function(e){return 1==e.checked&&"\n &:checked + label::before {\n background: #0170D4;\n display: flex;\n justify-content: center;\n align-items: center;\n border: none;\n ".concat(c.w4.breakpoints.up("md")," {\n content: url(").concat(L,");\n }\n ").concat(c.w4.breakpoints.down("sm")," {\n content: url(").concat(T,");\n }\n }\n ")},";"),nz={},nN=function(){},nW={},nE=function(){};let nL=function(e){var n=e=nM(nM({},e),{},{item:void 0===e.item?nz:e.item,handleChange:void 0===e.handleChange?nN:e.handleChange,label:void 0===e.label?null:e.label,code:void 0===e.code?null:e.code,price:void 0===e.price?null:e.price,checked:void 0===e.checked?null:e.checked,thumbnail:void 0===e.thumbnail?nW:e.thumbnail,hasThumbnailMobile:void 0===e.hasThumbnailMobile?null:e.hasThumbnailMobile,hasThumbnail:void 0===e.hasThumbnail?null:e.hasThumbnail,flex:void 0===e.flex?null:e.flex,flexMobile:void 0===e.flexMobile?null:e.flexMobile,openModal:void 0===e.openModal?nE:e.openModal}),t=n.item,i=n.handleChange,r=(n.label,n.code),o=n.price,l=n.checked,d=(n.thumbnail,n.hasThumbnail),s=n.hasThumbnailMobile,c=n.flex,p=n.flexMobile,u=n.openM
1odal,h=n.rounded,m=(0,a.useRef)();return(0,Q.jsx)(nD,{children:(0,Q.jsxs)(nS,{onClick:function(){m.current.click()},children:[(0,Q.jsx)(nC,{rounded:h,ref:m,flex:+!!c,flexMobile:+!!p,checked:+!!l,type:"checkbox",className:"custom-control-input",id:t.id,onChange:function(e){return i(e)}}),(0,Q.jsx)("label",{children:(0,Q.jsxs)(Q.Fragment,{children:[d&&(0,Q.jsxs)("span",{onClick:function(e){e.preventDefault(),u(),m.current.click()},children:[(0,Q.jsx)(y.A,{showNoImage:!0,placeholderImage:"/images/build-price-placeholder-img.png"}),(0,Q.jsx)(D.k,{src:nA})]}),s&&(0,Q.jsxs)("span",{onClick:function(e){e.preventDefault(),u(),m.current.click()},children:[(0,Q.jsx)(y.A,{showNoImage:!0,placeholderImage:"/images/build-price-placeholder-img.png"}),(0,Q.jsx)(D.k,{src:nA})]}),(0,Q.jsxs)("span",{children:[(0,Q.jsx)("span",{children:t.title}),(0,Q.jsx)("span",{children:r})]}),(0,Q.jsx)("span",{children:"".concat(o?"$"+o:"")})]})})]})})},nT=t.p+"static/images/model-option-menu.640cabc3.svg",nU=t.p+"static/images/model-option-close.eb16f3e3.svg";function nI(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,i)}return t}function nq(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?nI(Object(t),!0).forEach(function(n){(0,l.A)(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):nI(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}var nJ=(0,d.A)("div",{target:"e1dhl6mo23"})(c.w4.breakpoints.up("lg"),"{padding-left:61px;}",c.w4.breakpoints.down("md"),"{padding-left:53px;}",c.w4.breakpoints.down("sm"),"{padding-left:0;}",c.w4.breakpoints.up("1560"),"{padding-left:0;}h2{margin-left:auto;margin-right:auto;}h1{margin-bottom:20px;color:#010101;",c.w4.breakpoints.down("md"),"{font-size:18px;padding-top:25px;}",c.w4.breakpoints.up("lg"),"{margin-left:0;font-size:34px;padding-top:37px;}",c.w4.breakpoints.down("md"),"{margin-bottom:22px;}",c.w4.breakpoints.down("sm"),"{margin-left:0;}}"),nR=(0,d.A)("div",{target:"e1dhl6mo22"})(c.w4.breakpoints.up("lg"),"{&{display:flex;justify-content:space-between;align-items:initial;align-self:initial;margin-left:0;position:relative;padding-bottom:137px;}>div{width:100%;display:inline-flex;justify-content:space-between;align-items:initial;align-self:initial;margin-left:0;position:relative;}>div>a{font-size:14px;font-style:normal;font-weight:700;line-height:21px;text-transform:uppercase;text-decoration:none;display:flex;align-items:center;position:absolute;top:31px;z-index:1;text-decoration:none;&:before{content:url(",C,");margin-right:10px;transform:scale(-1);filter:brightness(0) saturate(100%) invert(26%) sepia(36%) saturate(4535%) hue-rotate(194deg) brightness(103%) contrast(99%);}}>a{font-size:14px;font-style:normal;font-weight:700;line-height:21px;text-transform:uppercase;text-decoration:none;display:flex;align-items:center;position:absolute;top:31px;z-index:1;}}",function(e){return 1==e.errorPage&&"\n & { \n justify-content: center;\n }\n > a, > button {\n display: flex;\n margin: 40px auto;\n width: 100%;\n max-width: 445px;\n border-top: none;\n text-decoration: none;\n position: relative;\n top: 0;\n }\n "},";"),n_=(0,d.A)("div",{target:"e1dhl6mo21"})(c.w4.breakpoints.up("lg"),"{position:relative;margin-top:100px;padding-right:60px;width:100%;z-index:5;}",c.w4.breakpoints.down("md"),"{>a{font-size:11px;font-style:normal;font-weight:700;line-height:21px;padding:0 12px;text-transform:uppercase;text-decoration:none;display:flex;align-items:center;margin:20px 0 20px;&:before{content:url(",C,");line-height:0;width:4px;height:auto;margin-right:7px;transform:scale(-1);filter:brightness(0) saturate(100%) invert(26%) sepia(36%) saturate(4535%) hue-rotate(194deg) brightness(103%) contrast(99%);}}}"),nG=(0,d.A)("div",{target:"e1dhl6mo20"})("button{font-weight:400;text-transform:capitalize;display:inline-block;}",c.w4.breakpoints.up("md"),"{margin-bottom:23px;>div>div>div{display:block;max-width:max-content;margin:auto;}}",c.w4.breakpoints.down("sm"),"{margin-bottom:17px;}"),nB=(0,d.A)("div",{target:"e1dhl6mo19"})(c.w4.breakpoints.up("md"),"{bottom:0;right:0;width:100%;h5{font-size:15px;line-height:21px;margin-bottom:13px;}}",c.w4.breakpoints.up("lg"),"{padding:0 0 0 60px;border-left:1px solid ",c.w4.palette.middleGrey,";max-width:445px;}",c.w4.breakpoints.up("sm"),"{h5{font-size:14px;line-height:21px;}}",c.w4.breakpoints.down("md"),"{padding-bottom:60px;}"),nV=(0,d.A)("div",{target:"e1dhl6mo18"})(c.w4.breakpoints.down("md"),"{padding-top:8px;border-top:1px solid ",c.w4.palette.middleGrey,";margin-bottom:80px;",function(e){return e.show&&"\n > div {\n &:first-child {\n overflow: auto;\n position: fixed;\n z-index: 115;\n width: 100%;\n left: 0;\n top: 0;\n height: 100%;\n > div {\n overflow: auto;\n position: absolute;\n height: 100%;\n top: 0;\n width: 100%;\n background-color: rgba(46, 50, 56, 0.8);\n left: 0;\n display: flex;\n flex-direction: column;\n justify-content: center;\n > div {\n overflow: auto;\n background: #f3f4f7;\n padding-left: 20px;\n padding-right: 20px;\n position: absolute;\n margin: auto;\n width: 100%;\n > div {\n &:nth-child(3) {\n position: relative;\n bottom: 0;\n }\n }\n }\n }\n }\n }\n "}," ",function(e){return"full"==e.selectionNumber&&"\n > div {\n &:first-child {\n > div {\n > div {\n top: 0;\n bottom: 0;\n }\n }\n }\n }\n "},";}"),nY=(0,d.A)("div",{target:"e1dhl6mo17"})(c.w4.breakpoints.up("lg"),"{margin-left:0;}",c.w4.breakpoints.down("1560"),"{}",c.w4.breakpoints.down("md"),"{margin-bottom:22px;}",c.w4.breakpoints.down("1060"),"{}",c.w4.breakpoints.down("sm"),"{margin-left:0;}"),nX=(0,d.A)("div",{target:"e1dhl6mo16"})("margin:20px 0;color:#010101;",c.w4.breakpoints.up("md"),"{h4{font-size:22px;line-height:22px;}}",c.w4.breakpoints.up("lg"),"{margin:60px 0 20px;}",c.w4.breakpoints.down("sm"),"{margin-bottom:20px;h4{font-size:16px;line-height:22px;}}"),n$=(0,d.A)("div",{target:"e1dhl6mo15"})({name:"swdg82",styles:"display:flex;gap:15px;align-items:center;margin-bottom:15px;div{height:11px;}h5{margin-bottom:0;}"}),nH=(0,d.A)("div",{target:"e1dhl6mo14"})(function(e){return e.errorPage&&"\n margin: 40px auto;\n max-width: 445px;\n border-top: none;\n "}," ",c.w4.breakpoints.down("sm"),"{padding-top:8px;border-top:1px solid ",c.w4.palette.middleGrey,";width:100%;left:0;padding:11px 20px;z-index:115;background:#F3F4F7;max-width:100%;position:absolute;}",function(e){return 1==e.fixed&&"\n ".concat(c.w4.breakpoints.down("sm")," {\n position: fixed;\n bottom: 70px;\n }\n ")}," ",function(e){return 1==e.disablePrice&&1==e.fixed&&"\n ".concat(c.w4.breakpoints.down("sm")," {\n bottom: 0;\n }\n ")},";"),nK=(0,d.A)(j.A,{target:"e1dhl6mo13"})("margin-bottom:10px;font-size:16px;",c.w4.breakpoints.up("lg"),"{font-size:22px;margin-bottom:20px;}"),nQ=(0,d.A)("div",{target:"e1dhl6mo12"})("border-bottom:1px solid #DCDCDC;margin-bottom:20px;",c.w4.breakpoints.up("lg"),"{display:flex;gap:18px;flex-wrap:wrap;}",c.w4.breakpoints.down("md"),"{input+label{&:before{margin-right:9px;}>span{position:relative;&:first-child{margin-right:16px;img{margin-left:0;margin-right:0;}picture{+div{position:absolute;bottom:5px;right:5px;height:15px;}}}&:nth-child(2){padding-right:10px;}}}}"),nZ=(0,d.A)("div",{target:"e1dhl6mo11"})(function(e){return 1==e.active?"\n display: block;\n ":"\n display: none;\n "}," ",c.w4.breakpoints.up("lg"),"{width:calc((100% - 36px)/3);margin-bottom:18px;border-radius:8px;border:1px solid #DCDCDC;background:#FFF;padding:18px 15px 18px 15px;position:relative;}",c.w4.breakpoints.down("md"),"{img{max-width:76px;}}"),n0=(0,d.A)("div",{target:"e1dhl6mo10"})(c.w4.breakpoints.down("md"),"{padding-top:60px;position:relative;",function(e){return 1==e.show?"\n display: block;\n ":"\n display: none;\n "},";>div{&:first-child{position:absolute;top:17px;right:10px;}}}"),n1=(0,d.A)("div",{target:"e1dhl6mo9"})("img{max-width:76px;}",c.w4.breakpoints.down("md"),"{input+label{&:before{margin-right:9px;}>span{&:first-child{position:relative;margin-right:16px;img{margin-left:0;margin-right:0;}}}}picture{+div{position:absolute;bottom:5px;right:5px;height:15px;}}}"),n4=(0,d.A)("div",{target:"e1dhl6mo8"})({name:"13c7jdw",styles:"position:relative;cursor:pointer;>div{position:absolute;bottom:10px;right:10px;height:15px;}img{aspect-ratio:254/208;object-fit:cover;}"}),n2=(0,d.A)("div",{target:"e1dhl6mo7"})(c.w4.breakpoints.up("lg"),"{display:flex;}"),n5=(0,d.A)("div",{target:"e1dhl6mo6"})(c.w4.breakpoints.up("lg"),"{width:53%;}"),n3=(0,d.A)("div",{target:"e1dhl6mo5"})("background:#fff;h3{color:",c.w4.palette.vividBlue,";font-size:14px;line-height:18px;letter-spacing:2px;margin-bottom:8px;}h2{font-size:34px;line-height:38px;margin-bottom:12px;}>div{color:#758094;font-size:15px;&:last-child{margin-top:20px;font-size:14px;}}",c.w4.breakpoints.up("lg"),"{width:47%;padding:80px;}",c.w4.breakpoints.down("md"),"{padding:40px;}"),n8=(0,d.A)("div",{target:"e1dhl6mo4"})("position:fixed;width:100%;right:0;z-index:3;bottom:0;",c.w4.breakpoints.down("md"),"{bottom:-4px;>div{width:100%;margin-top:15px;>div{margin-left:53px;}}}",c.w4.breakpoints.down("sm"),"{>div{>div{margin-left:0;}}}",function(e){return 1==e.fixed?"\n position: fixed;\n ".concat(c.w4.breakpoints.down("md")," {\n bottom: 0;\n }\n "):"\n position: absolute;\n ".concat(c.w4.breakpoints.down("md")," {\n bottom: -4px;\n }\n ")}," ",c.w4.breakpoints.up("lg"),"{",function(e){return e.containerWidth>0?"\n > div {\n min-width: ".concat(445+e.containerWidth,"px;\n max-width: ").concat(445+e.containerWidth,"px;\n }\n "):"\n > div {\n min-width: ".concat(445,"px;\n max-width: ").concat(445,"px;\n }\n ")},";>div{float:right;width:100%;}}",c.w4.breakpoints.down("md"),"{>div{width:100%;margin-top:15px;}}");(0,d.A)("div",{target:"e1dhl6mo3"})(">a{font-size:14px;color:",c.w4.palette.vividBlue,";font-weight:700;}");var n6=(0,d.A)("div",{target:"e1dhl6mo2"})({name:"bt2wdx",styles:"height:200px;width:50px;position:absolute;bottom:0"}),n7=(0,d.A)("div",{target:"e1dhl6mo1"})({name:"ku1pnh",styles:"color:#758094;font-size:15px;font-weight:400;line-height:normal;margin-bottom:13px"}),n9=(0,d.A)("div",{target:"e1dhl6mo0"})(c.w4.breakpoints.down("md"),"{margin-left:0;margin-bottom:20px;margin-top:10px;max-width:100%;width:100%;position:relative;top:-138px;z-index:2;}",c.w4.breakpoints.up("lg"),"{margin-bottom:35px;width:calc(100% - 458px);padding-right:20px;position:relative;z-index:4;}",c.w4.breakpoints.down("sm"),"{margin-left:0;margin-top:10px;max-width:100%;position:relative;top:-71px;z-index:2;}"),te={},tn=[],tt={},ti=[],tr={},to={};let tl=function(e){var n,t,i,r,o,d,p,u,h,m,g,x,f,b,w,v,k,O,A=e=nq(nq({},e),{},{seriesName:void 0===e.seriesName?null:e.seriesName,seriesUrl:void 0===e.seriesUrl?te:e.seriesUrl,seriesParams:void 0===e.seriesParams?null:e.seriesParams,modelName:void 0===e.modelName?null:e.modelName,modelUrl:void 0===e.modelUrl?null:e.modelUrl,modelParams:void 0===e.modelParams?null:e.modelParams,categories:void 0===e.categories?tn:e.categories,modelPrice:void 0===e.modelPrice?tt:e.modelPrice,currentWidth:void 0===e.currentWidth?null:e.currentWidth,dealers:void 0===e.dealers?ti:e.dealers,countryProps:void 0===e.countryProps?tr:e.countryProps,modelFooter:void 0===e.modelFooter?to:e.modelFooter,buildPriceDisclaimer:void 0===e.buildPriceDisclaimer?null:e.buildPriceDisclaimer}),F=A.seriesName,M=A.seriesUrl,S=(A.seriesParams,A.modelName),C=A.modelUrl,N=(A.modelParams,A.categories),W=A.modelPrice,E=A.currentWidth,L=A.dealers,T=A.countryProps,J=A.modelFooter,X=A.buildPriceDisclaimer,$=N&&N.length>0&&N.filter(function(e){var n;return(null==e||null==(n=e.selections)?void 0:n.length)>0}),Z=JSON.parse((0,q.a)(G.k))||{};Z&&Z.seriesName&&F&&Z.seriesName==F||((Z={}).seriesName=F&&F);var ee=$&&$.map(function(e){return{title:e.title&&e.title.toLowerCase(),tour:!1,countchild:e&&e.selections&&e.selections.length}}),en=(0,a.useState)(0),et=en[0],ei=en[1],er=(0,a.useState)(!1),eo=er[0],el=er[1],ea=(0,a.useState)({}),ed=ea[0],es=ea[1],ec=(0,a.useState)({}),ep=ec[0],eu=ec[1],eh=(0,a.useState)([]),em=eh[0],eg=eh[1],ex=(0,a.useState)(!1),ef=ex[0],eb=ex[1],ew=(0,a.useState)(null),ev=ew[0],ek=ew[1],ej=(0,a.useState)(null),ey=ej[0],eP=ej[
11],eO=(0,a.useState)(null),eA=(eO[0],eO[1]),eF=(0,a.useState)(null!=(n=Z)&&null!=(n=n.selectedModelFloorplan)&&null!=(n=n.activeFloorPlanModel)&&n.floorplan.price?Z.selectedModelFloorplan.activeFloorPlanModel.floorplan.price:null!=(t=Z)&&t.currentPrice?Z.currentPrice:0),eM=eF[0],eD=eF[1],eS=(0,a.useState)(Z&&Z.additionalPrice?Z.additionalPrice:0),eC=eS[0],ez=eS[1],eN=(0,a.useState)(!0),eW=eN[0],eE=eN[1],eL=(0,H.useRouter)(),eT=(0,a.useState)(null),eU=(eT[0],eT[1]),eI=(0,a.useState)(!1),eq=eI[0],eJ=eI[1],eR=[""],e_=(0,s.A)(c.w4.breakpoints.up("0")),eG=(0,s.A)(c.w4.breakpoints.up("lg")),eB=(0,s.A)(c.w4.breakpoints.down("md")),eV=function(){em&&em.length>0&&Z&&Z.seriesName&&F&&Z.seriesName!=F?((Z={}).seriesName=F,Z.currentPrice=eM,Z.additionalPrice=eC,Z.selectedOptions=ed,(0,q.w)(G.k,JSON.stringify(Z),86400)):em&&em.length>0?(Z.selectedOptions=ed,Z.seriesName=F,Z.currentPrice=eM,Z.additionalPrice=eC,(0,q.w)(G.k,JSON.stringify(Z),86400)):eA("There is option missing"),(0,q.w)(B.E,(null==eL?void 0:eL.pathname)&&eL.pathname,7200)},eY=function(e){ei(e)},eX=function(e){eu(nq(nq({},ep),{},(0,l.A)({},e.target.id,{checked:e.target.checked})));var n,t,i,r=em.map(function(n){return n.selections&&n.selections.map(function(n){return n.id===e.target.id&&(n.checked=e.target.checked),n}),n.subCategories&&n.subCategories.map(function(n){var t=n.items.find(function(n){return n.id===e.target.id});return t&&(e.target.checked?n.items.forEach(function(n){n.checked=n.id===e.target.id}):t.checked=!1),n}),n});eg(r),eD(parseFloat(null!=(n=Z)&&null!=(n=n.selectedModelFloorplan)&&null!=(n=n.activeFloorPlanModel)&&n.floorplan.price?Z.selectedModelFloorplan.activeFloorPlanModel.floorplan.price:eM||0)),ez(r.map(function(e){return e.selections}).flat(1).filter(function(e){return e&&!0===e.checked}).map(function(e){return e&&e.price}).reduce(function(e,n){return e+n},0)+r.filter(function(e){return e.subCategories}).map(function(e){return e.subCategories}).flat(1).map(function(e){return e.items}).flat(1).filter(function(e){return e&&!0===e.checked}).map(function(e){return e&&e.price}).reduce(function(e,n){return e+n},0)+parseFloat(null!=(t=Z)&&null!=(t=t.selectedModelFloorplan)&&null!=(t=t.activeFloorPlanModel)&&null!=(t=t.activeConfiguration)&&t.additionalPrice?Z.selectedModelFloorplan.activeConfiguration.additionalPrice:0)+parseFloat(null!=(i=Z)&&null!=(i=i.selectedInteriorDecors)&&i.activePrice?Z.selectedInteriorDecors.activePrice:0))},e$=function(){el(!eo)},eH=function(e,n){eb(!0),ek(e),eP(n)};(0,a.useEffect)(function(){eg(Z&&Z.selectedOptions&&Z.selectedOptions.length>0&&N&&N.length>0?N.filter(function(e){var n;return(null==e||null==(n=e.selections)?void 0:n.length)>0}).map(function(e,n){e.selections&&e.selections.length>0&&e.selections.map(function(e,n){return Z.selectedOptions.some(function(n){return n.id==e.id})&&(e.checked=!0),e});var t=nq({},e),i={},r=[];t.selections&&t.selections.length>0&&t.selections.forEach(function(e){e.category?(i[e.category]||(i[e.category]=[]),i[e.category].push(e)):r.push(e)});var o=[];
1return t.selections=[],Object.keys(i).forEach(function(e){var n=i[e];1===n.length?t.selections.push(n[0]):n.length>1&&o.push({title:e,items:n})}),t.selections=[].concat((0,nO.A)(t.selections),r),o.length>0&&(t.subCategories=o),t}):N&&N.length>0&&N.filter(function(e){var n;return(null==e||null==(n=e.selections)?void 0:n.length)>0}).map(function(e){e.selections&&e.selections.length>0&&e.selections.map(function(e){return e.checked=!1,e});var n=nq({},e),t={},i=[];n.selections&&n.selections.length>0&&n.selections.forEach(function(e){e.category?(t[e.category]||(t[e.category]=[]),t[e.category].push(e)):i.push(e)});var r=[];return n.selections=[],Object.keys(t).forEach(function(e){var i=t[e];1===i.length?n.selections.push(i[0]):i.length>1&&r.push({title:e,items:i})}),n.selections=[].concat((0,nO.A)(n.selections),i),r.length>0&&(n.subCategories=r),n}))},[N,null==eL?void 0:eL.asPath]),(0,a.useEffect)(function(){if(em&&em.length>0){var e=em.map(function(e){return e.selections}).flat(1).filter(function(e){return!0===e.checked}),n=em.filter(function(e){return e.subCategories}).map(function(e){return e.subCategories}).flat(1).map(function(e){return e.items}).flat(1).filter(function(e){return!0===e.checked});es([].concat((0,nO.A)(e),(0,nO.A)(n)))}else es([])},[em,null==eL?void 0:eL.asPath]);var eK=(0,V.Wx)({threshold:0}),eQ=eK.ref,eZ=eK.inView;eK.entry,(0,a.useEffect)(function(){var e=function(e){eZ?setTimeout(function(){eE(!1)},300):setTimeout(function(){eE(!0)},300)};return e(),window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}},[eZ&&eZ,e_]);var e0=em&&em.some(function(e,n){return n===et&&e.subCategories&&e.subCategories.length>0}),e1=(0,l.A)({},"".concat(c.w4.breakpoints.down("sm")),{paddingLeft:0,paddingRight:0}),e4=(0,l.A)((0,l.A)({position:"relative",zIndex:1001,display:"inline-block",verticalAlign:"middle",width:"100%",maxWidth:"1399px",margin:"auto"},"".concat(c.w4.breakpoints.up("md")),{padding:"0"}),"".concat(c.w4.breakpoints.down("sm")),{padding:"0"});return(0,Q.jsxs)(nJ,{children:[F&&eB&&(null==(i=Z)?void 0:i.seriesName)==F&&(null==(r=Z)||null==(r=r.selectedModelFloorplan)||null==(r=r.activeFloorPlanModel)?void 0:r.uri)==S&&(null==(o=Z)?void 0:o.selectedModel)&&Object.values(null==(d=Z)?void 0:d.selectedModel).length>0&&(0,Q.jsx)(j.A,{variant:"h1",weight:800,uppercase:!0,children:F.indexOf("Jayco")>-1?F:"Jayco ".concat(F)}),eB&&(null==(p=Z)?void 0:p.seriesName)==F&&(null==(u=Z)||null==(u=u.selectedModelFloorplan)||null==(u=u.activeFloorPlanModel)?void 0:u.uri)==S&&(null==(h=Z)?void 0:h.selectedModel)&&Object.values(null==(m=Z)?void 0:m.selectedModel).length>0&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(nY,{children:(0,Q.jsx)(I.A,{modelStepsData:(0,U.P)(M&&M.link&&M.link.href,(null==(g=Z)||null==(g=g.selectedModelFloorplan)||null==(g=g.activeFloorPlanModel)?void 0:g.uri)&&Z.selectedModelFloorplan.activeFloorPlanModel.uri,eR,4),handleSaveData:eV})}),(0,Q.jsx)(nX,{children:(0,Q.jsx)(j.A,{variant:"h4",weight:700,children:"Choose Options"})})]}),(null==(x=Z)?void 0:x.seriesName)==F&&(null==(f=Z)||null==(f=f.selectedModelFloorplan)||null==(f=f.activeFloorPlanModel)?void 0:f.uri)==S&&(null==(b=Z)?void 0:b.selectedModel)&&Object.values(null==(w=Z)?void 0:w.selectedModel).length>0&&(0,Q.jsx)(nR,{children:(0,Q.jsxs)("div",{children:[eG&&(0,Q.jsx)(R(),{href:C&&"".concat(C,"?decor"),onClick:function(){(0,q.w)(B.E,(null==eL?void 0:eL.pathname)&&eL.pathname,7200)},children:"Back"}),(0,Q.jsx)(n_,{children:ee&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(nG,{children:(0,Q.jsx)(P.Oi,{data:ee,onChange:function(e){return eY(e)},neverNative:!0,variant:"standard"})}),em&&em.length>0&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(nQ,{children:em.map(function(n,t){return(0,Q.jsx)(Q.Fragment,{children:n.selections&&n.selections.map(function(i,r){return(0,Q.jsxs)(nZ,{active:et==t,children:[eG&&(0,Q.jsxs)(n4,{onClick:function(){return eH(n,i)},children:[(0,Q.jsx)(y.A,{showNoImage:!0,placeholderImage:"/images/build-price-placeholder-img.png",lazyLoad:!1}),(0,Q.jsx)(D.k,{src:nA})]}),(0,Q.jsx)(nL,{hasThumbnailMobile:!!eB,thumbnail:i.thumbnail,checked:!!i.checked,item:i,label:i.label,price:e.disablePrice?null:i.price.toFixed(2),handleChange:eX,flexMobile:!0,openModal:function(){return eH(n,i)}},i.id?i.id:r)]},"selection-".concat(r))})})})}),e0&&(0,Q.jsx)("div",{children:em.map(function(n,t){return(0,Q.jsx)(Q.Fragment,{children:n.subCategories&&n.subCategories.map(function(i,r){return et==t?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(nK,{variant:"h5",weight:700,colour:"black",children:i.title}
1),(0,Q.jsx)(nQ,{children:i.items.map(function(o,l){return(0,Q.jsxs)(nZ,{active:et==t,children:[eG&&(0,Q.jsxs)(n4,{onClick:function(){return eH(nq(nq({},n),{},{title:i.title}),o)},children:[(0,Q.jsx)(y.A,{showNoImage:!0,placeholderImage:"/images/build-price-placeholder-img.png",lazyLoad:!1}),(0,Q.jsx)(D.k,{src:nA})]}),(0,Q.jsx)("div",{children:(0,Q.jsx)(nL,{hasThumbnailMobile:!!eB,thumbnail:o.thumbnail,checked:!!o.checked,item:o,label:o.label,price:e.disablePrice?null:o.price.toFixed(2),handleChange:eX,flexMobile:!0,openModal:function(){return eH(n,o)}},o.id?o.id:index)})]},"subcat-".concat(r,"-item-").concat(l))})})]}):null})})})})]}),eB&&(0,Q.jsx)(R(),{href:C&&"".concat(C,"?decor"),children:"Back"})]})}),(0,Q.jsxs)(nB,{children:[F&&eG&&(0,Q.jsx)(j.A,{variant:"h1",weight:800,uppercase:!0,children:F.indexOf("Jayco")>-1?F:"Jayco ".concat(F)}),eG&&(0,Q.jsx)(nY,{children:(0,Q.jsx)(I.A,{modelStepsData:(0,U.P)(M&&M.link&&M.link.href,(null==(v=Z)||null==(v=v.selectedModelFloorplan)||null==(v=v.activeFloorPlanModel)?void 0:v.uri)&&Z.selectedModelFloorplan.activeFloorPlanModel.uri,eR,4),handleSaveData:eV})}),(0,Q.jsx)(nV,{show:eo&&eB?1:0,selectionNumber:ed.length>3?"full":"center",children:(0,Q.jsx)("div",{children:(0,Q.jsx)("div",{children:(0,Q.jsxs)("div",{children:[eG&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(nX,{children:(0,Q.jsx)(j.A,{variant:"h4",weight:700,children:"Choose Options"})}),(0,Q.jsxs)(j.A,{variant:"h5",weight:700,uppercase:!0,colour:"charcoal",children:["YOUR OPTIONS ","(".concat(Object.keys(ed).length,")")]})]}),(0,Q.jsxs)(n0,{show:eo&&eB?1:0,children:[eB&&(0,Q.jsx)(D.k,{src:nU,onClick:e$}),ed&&0==ed.length&&(0,Q.jsx)(n7,{children:"â"}),ed&&ed.length>0&&ed.map(function(n,t){return(0,Q.jsx)(n1,{children:(0,Q.jsx)(nL,{hasThumbnail:!0,thumbnail:n.thumbnail,flex:!0,checked:!!n.checked,item:n,label:n.label,code:n.code,price:e.disablePrice?null:n.price,handleChange:eX,openModal:function(){return eH(n,n)}},n.id?n.id:t)},t)})]}),eB&&(0,Q.jsx)(Q.Fragment,{children:ed&&Object.keys(ed).length>0?(0,Q.jsxs)(n$,{children:[(0,Q.jsx)(D.k,{src:nT,onClick:e$}),(0,Q.jsxs)(j.A,{variant:"h5",weight:700,uppercase:!0,colour:"charcoal",children:["".concat(Object.keys(ed).length)," Option(s) Selected"]})]}):(0,Q.jsx)(n$,{children:(0,Q.jsx)(j.A,{variant:"h5",weight:700,uppercase:!0,colour:"charcoal",children:"No Options Selected"})})}),(0,Q.jsx)(nH,{fixed:+!!eW,disablePrice:+!!e.disablePrice,children:(0,Q.jsx)(R(),{href:C&&"".concat(C,"/summary"),onClick:eV,children:(0,Q.jsx)(P.RO,{children:"Next"})})})]})})})})]})]})}),(Z&&0==Object.values(Z).length||Z&&!Z.selectedModel||(null==(k=Z)||null==(k=k.selectedModelFloorplan)||null==(k=k.activeFloorPlanModel)?void 0:k.uri)!=S)&&(0,Q.jsx)(nR,{errorPage:1,children:(0,Q.jsx)(R(),{href:M&&M.link&&M.link.href?"".concat(M.link.href):"#",children:(0,Q.jsx)(P.RO,{children:"Select Model First"})})}),Z&&Z.currentPrice&&W&&Z.seriesName==F&&(null==(O=Z)||null==(O=O.selectedModelFloorplan)||null==(O=O.activeFloorPlanModel)?void 0:O.uri)==S&&Z.selectedModel&&Object.values(Z.selectedModel).length>0&&(0,Q.jsxs)(Q.Fragment,{children:[!e.disablePrice&&(0,Q.jsx)(n8,{containerWidth:E>0?E:0,fixed:+!!eW,children:(0,Q.jsx)(_.A,{price:eM,additionalPrice:eC,rates:W.rates,countryProps:T})}),(0,Q.jsx)(n6,{ref:eQ}),(eG||eB)&&(0,Q.jsx)(n9,{children:(0,Q.jsx)(Y.A,nq(nq({},J),{},{dealers:L,countryProps:T,getCurrentSetSetLocation:function(e){eU(e)},openPostcodePopup:eq,setOpenPostcodePopup:eJ,staticData:!0,buildPriceDisclaimer:!e.disablePrice&&eM&&X||null}))})]}),(0,Q.jsx)(z.A,{isOpen:ef,onClose:function(){eb(!1)},overlayStyle:e1,innerStyle:{width:"100%",display:"inline-block",maxWidth:1399},closeStyle:{top:"20px",right:"20px",position:"absolute"},contentStyle:e4,backdropBackground:"rgba(46, 50, 56, 0.8)",children:(0,Q.jsxs)(n2,{children:[(0,Q.jsx)(n5,{children:ey&&ey.bigImage&&(0,Q.jsx)(y.A,{showNoImage:!0,placeholderImage:"/images/build-price-placeholder-img.png"})}),(0,Q.jsxs)(n3,{children:[ev&&ev.title&&(0,Q.jsx)(j.A,{variant:"h3",uppercase:!0,weight:700,children:ev.title}),ey&&ey.title&&(0,Q.jsx)(j.A,{variant:"h2",weight:700,children:ey.title}),ey&&ey.price&&!e.disablePrice&&(0,Q.jsxs)(j.A,{variant:"body2",weight:700,children:["$",ey.price]}),ey&&ey.description&&(0,Q.jsx)(j.A,{variant:"body2",children:(0,K.Ay)(ey.description)}
1),ey&&ey.code&&(0,Q.jsx)(j.A,{variant:"body2",children:ey.code})]})]})})]})};function ta(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,i)}return t}function td(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?ta(Object(t),!0).forEach(function(n){(0,l.A)(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ta(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}var ts=(0,d.A)("div",{target:"e18bj72o1"})("padding-left:20px;padding-right:20px;position:relative;background:",c.w4.palette.lightGrey,";display:inline-block;width:100%;",c.w4.breakpoints.up("lg"),"{padding-left:40px;padding-right:40px;}"),tc=(0,d.A)("div",{target:"e18bj72o0"})({name:"1avs446",styles:"max-width:1400px;margin:auto"}),tp={},tu={},th={},tm={},tg=[];let tx=function(e){var n=e=td(td({},e),{},{seriesName:void 0===e.seriesName?null:e.seriesName,seriesUrl:void 0===e.seriesUrl?tp:e.seriesUrl,modelLogo:void 0===e.modelLogo?tu:e.modelLogo,modelChooseOptions:void 0===e.modelFloorplanConfiguration?th:e.modelFloorplanConfiguration,modelPrice:void 0===e.modelPrice?tm:e.modelPrice,dealers:void 0===e.dealers?tg:e.dealers,buildPriceDisclaimer:void 0===e.buildPriceDisclaimer?null:e.buildPriceDisclaimer}),t=(n.seriesName,n.seriesUrl,n.modelLogo),i=n.modelChooseOptions,r=n.modelPrice,o=n.dealers,l=n.buildPriceDisclaimer,d=n.disablePrice;(0,H.useRouter)();var u=(0,a.useState)(!0),h=u[0];u[1],(0,s.A)(c.w4.breakpoints.up("md")),(0,s.A)(c.w4.breakpoints.down("sm"));var m=(0,s.A)(c.w4.breakpoints.up("0")),g=(0,a.useRef)(null),x=(0,a.useRef)(null),f=(0,a.useState)(0),b=f[0],w=f[1],v=(0,a.useState)(0),k=v[0],j=v[1];return(0,a.useEffect)(function(){function e(){g.current&&g.current.clientWidth&&w(g.current.clientWidth)}function n(){x.current&&x.current.clientWidth&&j(x.current.clientWidth)}return g.current&&g.current.clientWidth&&w(g.current.clientWidth),window.addEventListener("resize",e),x.current&&x.current.clientWidth&&j(x.current.clientWidth),window.addEventListener("resize",n),function(){window.removeEventListener("resize",e),window.removeEventListener("resize",n)}},[m]),h&&(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)(p.A,td({},t)),(0,Q.jsx)(ts,{ref:g,children:(0,Q.jsx)(tc,{ref:x,children:(0,Q.jsx)(tl,td(td({},i),{},{dealers:o&&o,modelPrice:r,currentWidth:(b-k)/2,disablePrice:d,buildPriceDisclaimer:l}))})})]})};var tf=t(30915),tb=t.n(tf);function tw(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,i)}return t}function tv(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?tw(Object(t),!0).forEach(function(n){(0,l.A)(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):tw(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}let tk=function(e){var n=(0,a.useState)(!1),t=n[0],i=n[1],r=(0,a.useState)(!1),o=r[0],l=r[1],d=(0,a.useState)(!0),s=d[0],c=d[1];return(0,a.useEffect)(function(){var e=tb().parse(window.location.search.replace("?",""));e&&Object.keys(e).some(function(e){return e&&e.toLocaleLowerCase().indexOf("decor")>-1})?(i(!0),l(!1),c(!1)):e&&Object.keys(e).some(function(e){return e&&e.toLocaleLowerCase().indexOf("options")>-1})?(i(!1),l(!0),c(!1)):(i(!1),l(!1),c(!0))},[]),(0,Q.jsx)(Q.Fragment,{children:s?(0,Q.jsx)(eH,tv({},e)):t?(0,Q.jsx)(nP,tv({},e)):o&&(0,Q.jsx)(tx,tv({},e))})};function tj(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,i)}return t}var ty=!0;let tP=function(e){return(0,Q.jsx)(tk,function(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};
1n%2?tj(Object(t),!0).forEach(function(n){(0,l.A)(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):tj(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}({},e))}},71701:(e,n,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/build-price/[series]/floorplan/[floorplan]",function(){return t(62266)}])}},e=>{e.O(0,[8145,3614,1681,404,8394,5585,636,6593,8792],()=>e(e.s=71701)),_N_E=e.O()}]); 2//# sourceMappingURL=[floorplan]-3a41be315bb3a55b.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.