(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1828],{57837:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/shop/[slug]",function(){return n(84687)}])},32602:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return o},noSSR:function(){return s}});let a=n(38754);n(85893),n(67294);let i=a._(n(35491));function l(e){return{default:(null==e?void 0:e.default)||e}}function s(e,t){return delete t.webpack,delete t.modules,e(t)}function o(e,t){let n=i.default,a={loading:e=>{let{error:t,isLoading:n,pastDelay:a}=e;return null}};e instanceof Promise?a.loader=()=>e:"function"==typeof e?a.loader=e:"object"==typeof e&&(a={...a,...e});let o=(a={...a,...t}).loader;return(a.loadableGenerated&&(a={...a,...a.loadableGenerated},delete a.loadableGenerated),"boolean"!=typeof a.ssr||a.ssr)?n({...a,loader:()=>null!=o?o().then(l):Promise.resolve(l(()=>null))}):(delete a.webpack,delete a.modules,s(n,a))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1159:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return a}});let a=n(38754)._(n(67294)).default.createContext(null)},35491:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return _}});let a=n(38754)._(n(67294)),i=n(1159),l=[],s=[],o=!1;function c(e){let t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then(e=>(n.loading=!1,n.loaded=e,e)).catch(e=>{throw n.loading=!1,n.error=e,e}),n}class r{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e},this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function d(e){return function(e,t){let n=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),l=null;function c(){if(!l){let t=new r(e,n);l={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return l.promise()}if(!o){let e=n.webpack?n.webpack():n.modules;e&&s.push(t=>{for(let n of e)if(t.includes(n))return c()})}function d(e,t){!function(){c();let e=a.default.useContext(i.LoadableContext);e&&Array.isArray(n.modules)&&n.modules.forEach(t=>{e(t)})}();let s=a.default.useSyncExternalStore(l.subscribe,l.getCurrentValue,l.getCurrentValue);return a.default.useImperativeHandle(t,()=>({retry:l.retry}),[]),a.default.useMemo(()=>{var t;return s.loading||s.error?a.default.createElement(n.loading,{isLoading:s.loading,pastDelay:s.pastDelay,timedOut:s.timedOut,error:s.error,retry:l.retry}):s.loaded?a.default.createElement((t=s.loaded)&&t.default?t.default:t,e):null},[e,s])}return d.preload=()=>c(),d.displayName="LoadableComponent",a.default.forwardRef(d)}(c,e)}function u(e,t){let n=[];for(;e.length;){let a=e.pop();n.push(a(t))}return Promise.all(n).then(()=>{if(e.length)return u(e,t)})}d.preloadAll=()=>new Promise((e,t)=>{u(l).then(e,t)}),d.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let n=()=>(o=!0,t());u(s,e).then(n,n)})),window.__NEXT_PRELOADREADY=d.preloadReady;let _=d},84687:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSG:function(){return S},default:function(){return k}});var a=n(85893),i=n(67294),l=n(76869),s=n.n(l),o=n(5152),c=n.n(o),r=n(9008),d=n.n(r),u=n(41664),_=n.n(u),p=n(10708),m=n(24515),h=n(11163),v=n(19133),x=n(90870);let b=i.createContext(void 0),f=(e,t)=>{let[n,l]=i.useState(e.activeTab),s=i.useMemo(()=>({activeTab:n,setActiveTab:l}),[n,l]);return(0,a.jsx)(b.Provider,{value:s,children:e.children})},j=()=>{let e=i.useContext(b);if(!e)throw Error("This component must be used within a <Tabs> component.");return e};f.Tab=e=>{let{setActiveTab:t,activeTab:n}=j();return(0,a.jsx)("div",{className:"tab_btn ".concat(e.label===n?"active":""),children:(0,a.jsx)("button",{onClick:()=>t(e.label),children:e.children})})},f.Panel=e=>{let{activeTab:t}=j();return t===e.label?(0,a.jsx)("div",{className:"panel_box ".concat(e.label),children:e.children}):null};var g=n(99808);c()(()=>Promise.all([n.e(388),n.e(1557)]).then(n.bind(n,1557)),{loadableGenerated:{webpack:()=>[1557]}});let y=c()(()=>Promise.all([n.e(2547),n.e(9911),n.e(1333),n.e(7058),n.e(4311)]).then(n.bind(n,34311)),{loadableGenerated:{webpack:()=>[34311]}}),C=c()(()=>Promise.all([n.e(4533),n.e(2329)]).then(n.bind(n,2329)),{loadableGenerated:{webpack:()=>[2329]}}),w=c()(()=>Promise.all([n.e(2265),n.e(391)]).then(n.bind(n,10391)),{loadableGenerated:{webpack:()=>[10391]}}),M=c()(()=>Promise.all([n.e(5589),n.e(6051)]).then(n.bind(n,56051)),{loadableGenerated:{webpack:()=>[56051]}}),P=c()(()=>Promise.all([n.e(4159),n.e(4533),n.e(3407)]).then(n.bind(n,43407)),{loadableGenerated:{webpack:()=>[43407]}}),N=c()(()=>Promise.all([n.e(3938),n.e(5589),n.e(5338)]).then(n.bind(n,5338)),{loadableGenerated:{webpack:()=>[5338]}}),T=c()(()=>Promise.all([n.e(9269),n.e(8376)]).then(n.bind(n,18376)),{loadableGenerated:{webpack:()=>[18376]}});var S=!0,k=function(e){let t=(0,v.T)(),n=(0,h.useRouter)(),{productDetails:l,attachments:o,locBuilders:c,promotion:r,attachmentsMedia:u}=e,b=(0,v.C)(e=>e.location),j=(0,v.C)(e=>e.allLocations),S=(0,v.C)(e=>e.allIndustries),k=(0,v.C)(e=>e.cart),O=(0,v.C)(e=>e.navbar.siteTitle),[F,D]=(0,i.useState)(!1),[L,E]=(0,i.useState)(!1),[I,A]=(0,i.useState)(!1),[q,G]=(0,i.useState)({}),[R,H]=(0,i.useState)(null),[V,z]=(0,i.useState)(null),[Z,B]=(0,i.useState)([]),[J,U]=(0,i.useState)(!1),[Y,X]=(0,i.useState)(0),[K,$]=(0,i.useState)(""),[Q,W]=(0,i.useState)(""),[ee,et]=(0,i.useState)({}),[en,ea]=(0,i.useState)(0),[ei,el]=(0,i.useState)(0),[es,eo]=(0,i.useState)(1),[ec,er]=(0,i.useState)(!1),[ed,eu]=(0,i.useState)(!1),[e_,ep]=(0,i.useState)(!1),[em,eh]=(0,i.useState)(0),[ev,ex]=(0,i.useState)(!1),[eb,ef]=(0,i.useState)(""),[ej,eg]=(0,i.useState)({address:"",postalCode:""}),[ey]=(0,p.Z)(["ref","location"]),[eC,ew]=(0,i.useState)({id:1,label:"0% For 60 Month Financing",value:60}),[eM,eP]=(0,i.useState)(!1),eN=e=>{ew(e),eP(!1)};(0,i.useEffect)(()=>{if(null==l?void 0:l.city){let e=j.items.find(e=>e.title.toLowerCase()===l.city.toLowerCase());if(e){ef(e.phone);return}}if(b.id){let e=S.items.find(e=>e.slug===l.industry.replace(/ /g,"-").toLowerCase());if(e&&e.locations&&e.locations.length>0){let t=e.locations.find(e=>1*e.id==1*b.id);if(t){t.phone?ef(t.phone):ef("");return}e.locations[0].phone?ef(e.locations[0].phone):ef("")}else ef("")}else ef("")},[l,b]),(0,i.useEffect)(()=>{let e=70*en/100;l.inventoryMatching_MC&&(0,m.TM)(l.inventoryMatching_MC[eC.value])&&(e=l.inventoryMatching_MC[eC.value]+Y),eh(e/eC.value)},[eC,en]),(0,i.useEffect)(()=>{Y>0?1*l.riversPrice>0?ea(1*l.riversPrice+(1*Y+ei)):1*l.advertisedPrice>0?ea(1*l.advertisedPrice+(1*Y+ei)):ea(0):1*l.riversPrice>0?ea(1*l.riversPrice+ei):1*l.advertisedPrice>0?ea(1*l.advertisedPrice+ei):ea(0)},[Y,ei]),(0,i.useEffect)(()=>{if((null==l?void 0:l.status.includes("Buy Online"))||U(!0),(null==l?void 0:l.media)&&(null==l?void 0:l.media.length)>0){let e=l.media.find(e=>"schema"===e.type),t=l.media.find(e=>"image"===e.type);t?W(t.src):W("https://console.21stcenturyequipment.com/wp-content/uploads/2023/11/Flagler.jpg"),e?$(e.src):$("https://console.21stcenturyequipment.com/wp-content/uploads/2023/11/Flagler.jpg")}else W("https://console.21stcenturyequipment.com/wp-content/uploads/2023/11/Flagler.jpg"),$("https://console.21stcenturyequipment.com/wp-content/uploads/2023/11/Flagler.jpg");let e=[];Z&&(null==Z?void 0:Z.length)>0&&Z.forEach(t=>{e.push({attachment_name:t.name+" ("+t.advertisingDesc+")",attachment_price:t.price})}),et([{product_name:"".concat(null==l?void 0:l.make," ").concat(null==l?void 0:l.model," + ").concat(null==l?void 0:l.packageDesc_MC),product_price:en||(null==l?void 0:l.riversPrice),attachments:e}])},[l]),(0,i.useEffect)(()=>{ev&&eT()},[Y]),(0,i.useEffect)(()=>{if(Z&&Z.length>0){let e=0;Z.forEach(t=>{e+=1*t.price}),X(e)}else X(0)},[Z]);let eT=async()=>{try{let e=0;1*l.riversPrice>0?e=1*l.riversPrice:1*l.advertisedPrice>0&&(e=1*l.advertisedPrice),Y>0&&(e+=Y),er(!0);let t={...ej,amount:e};await fetch("/api/calculate-tax",{method:"post",headers:{"Content-Type":"application/json"},body:JSON.stringify(t)}).then(e=>e.json()).then(e=>{var t;eo((null==e?void 0:null===(t=e.summary[0])||void 0===t?void 0:t.rate)||.07),el(e.totalTax),er(!1),eu(!1),ex(!0)})}catch(e){el(0),eo(.07),er(!1),eu(!1),ex(!1)}},eS=async()=>{if(ev){el(0),eo(.07),ex(!1),eg({address:"",postalCode:""}),G({});return}eu(!0)},ek=e=>e&&e.includes("(")?e:e&&10===e.length?e.replace(/(\d{3})(\d{3})(\d{4})/,"($1) $2-$3"):e,eO=()=>{var a,i,l;let s=ey.ref,c=ey.location;if(H(s),z(c),!ev){eu(!0),ep(!0);return}let d=[],_=e.productDetails;k.items&&k.items.length>0&&(d=k.items.filter(e=>e.productData.equipmentId!==_.equipmentId));let p=[...Z];if((null===(a=r.promotionType)||void 0===a?void 0:a.toString().toLowerCase())==="free"){let e=r.freeAttach.split(",")[1],t=r.freeAttach.split(",")[0];if(o&&o.length>0&&p&&p.length>1*t){let t=p.sort((e,t)=>e.price-t.price).slice(0,1*e);t&&t.length>0&&(_.promotion={label:"".concat(r.amount," Free Attachments"),price:t.reduce((e,t)=>e+t.price,0)},t.forEach(e=>{let t=p.findIndex(t=>t.id===e.id);t>-1?p[t].price=0:(e.price=0,p.push({...e}))}))}}else(null===(i=r.promotionType)||void 0===i?void 0:i.toString().toLowerCase())==="fixed"?(1*_.riversPrice>1*r.amount?_.riversPrice=1*_.riversPrice-1*r.amount:1*_.advertisedPrice>1*r.amount&&(_.riversPrice=1*_.advertisedPrice-1*r.amount),_.promotion={label:"$".concat(r.amount," off"),price:1*r.amount}):(null===(l=r.promotionType)||void 0===l?void 0:l.toString().toLowerCase())==="off"&&(1*_.riversPrice>1*r.amount?(_.riversPrice=1*_.riversPrice-1*_.riversPrice*r.amount*1/100,_.promotion={label:"".concat(r.amount,"% off"),price:1*_.riversPrice*r.amount*1/100}):1*_.advertisedPrice>1*r.amount&&(_.advertisedPrice=1*_.advertisedPrice-1*_.advertisedPrice*r.amount*1/100,_.promotion={label:"".concat(r.amount,"% off"),price:1*_.advertisedPrice*r.amount*1/100}));p&&p.length>0&&p.forEach(e=>{let t=u.find(t=>t.productAttachmentId==e.id);t?(e.mediaURL=t.mediaURL,e.mediaType=t.mediaType):(e.mediaURL="Image",e.mediaType="https://console.21stcenturyequipment.com/wp-content/uploads/2023/11/Flagler.jpg")});let m={items:[...d,{productData:_,pickUpAddress:q,attachments:p,tax:ei,taxRate:1!=es?es:.7,ref:R,location:V}]};t((0,x.Z5)({items:m.items,coupon:null==k?void 0:k.coupon,finance:null==k?void 0:k.finance})),localStorage.setItem("cart",JSON.stringify({coupon:null==k?void 0:k.coupon,items:m.items,finance:null==k?void 0:k.finance})),n.push("/cart")},eF=()=>{D(!F)},eD=()=>{E(!L)},eL=()=>{A(!I)};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(d(),{children:[(0,a.jsx)("title",{children:(null==l?void 0:l.seoTitle_MC)?null==l?void 0:l.seoTitle_MC:"Shop | ".concat(O)}),(null==l?void 0:l.seoDescription_MC)?(0,a.jsx)("meta",{name:"description",content:null==l?void 0:l.seoDescription_MC}):"",(null==l?void 0:l.seoKeywords_MC)?(0,a.jsx)("meta",{name:"keyword",content:null==l?void 0:l.seoKeywords_MC}):"",(0,a.jsx)("meta",{name:"og:title",content:(null==l?void 0:l.seoTitle_MC)?null==l?void 0:l.seoTitle_MC:"Shop | ".concat(O)}),(0,a.jsx)("meta",{name:"og:description",content:null==l?void 0:l.seoDescription_MC}),(0,a.jsx)("meta",{name:"og:image",content:Q}),(0,a.jsx)("meta",{name:"og:url",content:"https://".concat("21stcenturyequipment.com").concat(n.asPath)}),(0,a.jsx)("meta",{name:"og:type",content:"product"}),(0,a.jsx)("meta",{name:"og:locale",content:"en_US"}),(0,a.jsx)("meta",{name:"og:site_name",content:O}),(0,a.jsx)("meta",{name:"og:image:width",content:"1200"}),(0,a.jsx)("meta",{name:"og:image:height",content:"630"}),(0,a.jsx)("meta",{name:"og:image:type",content:"image/jpeg"}),(0,a.jsx)("meta",{name:"og:image:alt",content:(null==l?void 0:l.seoTitle_MC)?null==l?void 0:l.seoTitle_MC:"Shop | ".concat(O)}),(0,a.jsx)("meta",{name:"og:image:secure_url",content:Q}),(0,a.jsx)("meta",{name:"twitter:card",content:"summary"}),(0,a.jsx)("meta",{name:"twitter:site",content:O}),(0,a.jsx)("meta",{name:"twitter:title",content:(null==l?void 0:l.seoTitle_MC)?null==l?void 0:l.seoTitle_MC:"Shop | ".concat(O)}),(0,a.jsx)("meta",{name:"twitter:description",content:null==l?void 0:l.seoDescription_MC}),(0,a.jsx)("meta",{name:"twitter:image",content:Q}),(0,a.jsx)("meta",{name:"twitter:image:alt",content:(null==l?void 0:l.seoTitle_MC)?null==l?void 0:l.seoTitle_MC:"Shop | ".concat(O)}),(0,a.jsx)("meta",{name:"twitter:creator",content:O}),(0,a.jsx)("meta",{name:"robots",content:"".concat("follow",", ").concat("index",",  max-snippet:-1, max-image-preview:large, max-video-preview:-1")})]}),(0,a.jsx)("script",{type:"application/ld+json",dangerouslySetInnerHTML:{__html:'{\n                "@context": "https://schema.org/", \n                "@type": "Product", \n                "name": "'.concat("".concat((null==l?void 0:l.make)?null==l?void 0:l.make:"").concat((null==l?void 0:l.model)?"- ".concat(null==l?void 0:l.model):"").concat((null==l?void 0:l.packageDesc_MC)?" + ".concat(null==l?void 0:l.packageDesc_MC):""),'",\n                "image": "').concat(K,'",\n                "brand": {\n                    "@type": "Brand",\n                    "name": "').concat(null==l?void 0:l.make,'"\n                },\n                "sku": "').concat((null==l?void 0:l.equipmentId)?null==l?void 0:l.equipmentId:null==l?void 0:l.id,'"\n            }')}}),(0,a.jsx)("main",{className:"site__main",children:(0,a.jsx)("section",{className:s().wrapper,children:(0,a.jsxs)("div",{className:"container",children:[(0,a.jsxs)("div",{className:s().cover,children:[(0,a.jsx)("div",{className:s().breadcrumb,children:(0,a.jsxs)("ul",{children:[(0,a.jsx)("li",{children:(0,a.jsx)(_(),{href:"/shop",children:"SHOP"})}),(0,a.jsx)("li",{children:null==l?void 0:l.industry}),(0,a.jsx)("li",{children:null==l?void 0:l.model}),(0,a.jsx)("li",{className:s().active,children:null==l?void 0:l.machineType})]})}),(0,a.jsxs)("div",{className:s().product_content,children:[(0,a.jsxs)("div",{className:s().product_left,children:[(0,a.jsx)(y,{media:null==l?void 0:l.media,financingText1_MC:null==l?void 0:l.textH1_MC,financingText2_MC:null==l?void 0:l.textH2_MC,financingLink_MC:null==l?void 0:l.textH_URl}),(0,a.jsx)("div",{className:"show_desktop ".concat(s().product__attachments),children:o&&o.length>0?(0,a.jsx)(C,{showColumns:"2",attachmentsList:Z,setAttachmentsList:B,attachmentsMedia:u,attachments:o,handleContactForm:eF,handleAttachments:eD}):""})]}),(0,a.jsxs)("div",{className:s().product_sidebar,children:[(0,a.jsxs)("div",{className:s().review_box,children:[(0,a.jsxs)("h1",{className:s().model_field,children:[null==l?void 0:l.make," ",null==l?void 0:l.model,(0,m.TM)(null==l?void 0:l.packageDesc)?(0,a.jsxs)("span",{children:[" + ",null==l?void 0:l.packageDesc]}):""]}),(0,a.jsx)("span",{className:s().machine_type_field,children:null==l?void 0:l.machineType}),(0,a.jsxs)("div",{className:s().detail_cover,children:[(0,a.jsx)("div",{className:s().detail_cover_overview,dangerouslySetInnerHTML:{__html:null==l?void 0:l.productOverview}}),(0,a.jsxs)("div",{className:s().price_cover,children:[(null==l?void 0:l.regularPrice)&&(0,a.jsx)("span",{className:s().discounted_price,children:(0,a.jsxs)("s",{children:["LIST PRICE: ",(0,m.T4)((null==l?void 0:l.regularPrice)+ei)]})}),en>0?(0,a.jsxs)("span",{className:s().regular_price,children:[(0,a.jsx)("span",{className:s().discounted_price,children:"Cash Price: "}),"".concat((0,m.T4)(en)," ")]}):(0,a.jsx)("span",{className:"".concat(s().call_price),children:"Call For Price"})]}),(null==l?void 0:l.disclaimer)&&(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:s().additional_charges,children:[(0,a.jsx)("p",{className:s().title,children:"Plus additional charges.*"}),!(null==l?void 0:l.isDeere)&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:s().include_exclude,children:(0,a.jsx)(g.Z,{onClick:eS,disabled:ec,btn_label:ec?"Calculating Tax...":ev?"Exclude Tax Estimation":"Include Tax Estimation",btn_aria_label:"Include Tax Estimation",type:"primary-filled",size:"small",variant:"button",btn_level:"block"})}),(0,a.jsx)("p",{children:"* This tax calculation is an estimation only. Final tax amount may be different. Does not include insurance or any other fees."}),ev?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("p",{className:s().tax__price,children:["Cash Tax: ",(0,m.T4)(ei)]}),(0,a.jsxs)("p",{className:s().notice,children:[(0,a.jsx)("span",{className:s().map__icon,children:(0,a.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",children:[(0,a.jsx)("path",{d:"M12 14c2.206 0 4-1.794 4-4s-1.794-4-4-4-4 1.794-4 4 1.794 4 4 4zm0-6c1.103 0 2 .897 2 2s-.897 2-2 2-2-.897-2-2 .897-2 2-2z"}),(0,a.jsx)("path",{d:"M11.42 21.814a.998.998 0 0 0 1.16 0C12.884 21.599 20.029 16.44 20 10c0-4.411-3.589-8-8-8S4 5.589 4 9.995c-.029 6.445 7.116 11.604 7.42 11.819zM12 4c3.309 0 6 2.691 6 6.005.021 4.438-4.388 8.423-6 9.73-1.611-1.308-6.021-5.294-6-9.735 0-3.309 2.691-6 6-6z"})]})}),(0,a.jsxs)("span",{className:s().addpress__content,children:[(0,a.jsxs)("span",{children:[q.isStore?"Pickup":"Delivery",": "]}),(0,a.jsx)("span",{children:q.isStore?"".concat(q.city,", ").concat(q.state," ").concat(q.zip):q.address}),(0,a.jsx)("span",{className:s().change_address,onClick:()=>{eg({address:"",postalCode:""}),G({}),eu(!0),ex(!1)},children:"Change"})]})]})]}):"",l.inventoryMatching_MC&&Object.keys(l.inventoryMatching_MC).length>0?(0,a.jsxs)("div",{className:s().payment__calculator,children:[(0,a.jsx)("h3",{className:s().payment_title,children:"Monthly Payment Calculator"}),(0,a.jsxs)("div",{className:s().dropdown,children:[(0,a.jsxs)("button",{onClick:()=>eP(!eM),className:s().button,children:[eC?(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:s().selected_option,children:[(0,a.jsx)("h3",{children:null==eC?void 0:eC.label}),(0,a.jsxs)("p",{children:["Offer includes ",(0,m.T4)(l.inventoryMatching_MC[eC.value]+Y),"".concat(ei?" and ".concat((0,m.T4)((l.inventoryMatching_MC[eC.value]/.7+Y)*es)):""),"with approved credit from John Deere Financial with 30% down required and loss of cash discount of ",(0,m.T4)(l.inventoryMatching_MC.Bonus)]})]})}):"Select Financing Option",(0,a.jsx)("span",{className:s().caret,children:eM?"▲":"▼"})]}),eM&&(0,a.jsx)("div",{className:s().content,children:[{id:1,label:"0% For 60 Month Financing",value:60},{id:2,label:"0% For 72 Month Financing",value:72},{id:3,label:"0% For 84 Month Financing",value:84}].map(e=>(0,a.jsxs)("div",{className:s().option,onClick:()=>eN(e),children:[(0,a.jsx)("h3",{children:e.label}),(0,a.jsxs)("p",{children:["Offer includes ",(0,m.T4)(l.inventoryMatching_MC[e.value]+Y),"".concat(ei?" and ".concat((0,m.T4)((l.inventoryMatching_MC[e.value]/.7+Y)*es)):""),"with approved credit from John Deere Financial with 30% down required and loss of cash discount of ",(0,m.T4)(l.inventoryMatching_MC.Bonus)]})]},e.id))})]}),(0,a.jsxs)("div",{className:s().monthly_price,children:[(0,a.jsx)("span",{className:s().price,children:(0,m.T4)(em)}),(0,a.jsx)("span",{className:s().montly_text,children:"/Month"})]})]}):null]}),(0,a.jsx)("p",{children:null==l?void 0:l.disclaimer})]})})]})]}),(0,a.jsx)("div",{className:"show_mobile",children:o&&o.length>0?(0,a.jsx)(C,{attachmentsList:Z,setAttachmentsList:B,attachmentsMedia:u,attachments:o,showColumns:"1",handleContactForm:eF,handleAttachments:eD}):""}),(0,a.jsx)(w,{requestQuote:J,handleAddToCart:eO,phone:eb,handleRequestInfo:eL,pickupAddress:q})]})]})]}),(null==l?void 0:l.tabs)&&Object.values(l.tabs)&&Object.values(l.tabs).length>0&&(0,a.jsx)("div",{className:s().tabs__cover,children:(0,a.jsx)("div",{className:"".concat(s().tabs__cover_description),children:(0,a.jsx)("div",{className:"product_card_body ".concat(s().body),children:(0,a.jsxs)(f,{activeTab:Object.keys(l.tabs)[0],children:[(0,a.jsx)("div",{className:s().tabs__btn,children:Object.keys(l.tabs).map((e,t)=>(0,a.jsxs)(f.Tab,{label:e,children:[0!==t&&(0,a.jsx)("span",{className:"tab_left"}),e,(0===t||t!==Object.keys(l.tabs).length-1)&&(0,a.jsx)("span",{className:"tab_right"})]},"tab-".concat(t)))}),(0,a.jsx)("div",{className:s().tabs__panels,children:Object.keys(l.tabs).map((e,t)=>{if("description"===e)return(0,a.jsxs)(f.Panel,{label:e,children:[l.tabs[e].text&&(0,a.jsx)("div",{className:s().product_description,dangerouslySetInnerHTML:{__html:l.tabs[e].text}}),(0,a.jsx)("div",{className:"".concat(s().location_notes," ").concat(s().specification," panel_body_no_accordion"),children:Object.keys(l.tabs[e].details).map((t,n)=>{if(l.tabs[e].details[t])return(0,a.jsxs)("div",{children:[(0,a.jsx)("h6",{children:t}),(0,a.jsx)("p",{children:l.tabs[e].details[t]})]},n)})})]},"panel-".concat(t));if("specifications"===e){let t=JSON.parse(l.tabs[e]),n=(null==t?void 0:t.Specifications)&&(null==t?void 0:t.Specifications.length)>0&&(null==t?void 0:t.Specifications.map((t,n)=>{let i=t.Name,l=t.Specs&&t.Specs.length>0&&t.Specs.map((e,t)=>(0,a.jsxs)("div",{children:[(0,a.jsx)("h6",{children:e.Name}),(0,a.jsx)("p",{dangerouslySetInnerHTML:{__html:e.CurrentModelDescription}})]},"spec-".concat(n,"-").concat(t)));return(0,a.jsx)(f.Panel,{label:e,children:(0,a.jsxs)("div",{className:"".concat(s().specification," panel_body_no_accordion"),children:[(0,a.jsx)("h4",{children:i}),l]})},"spec-".concat(n))}));return(0,a.jsx)(a.Fragment,{children:n})}if("options"===e){let n=l.tabs[e].split(",");return(0,a.jsx)(f.Panel,{label:e,children:(0,a.jsx)("div",{className:"".concat(s().location_notes," ").concat(s().specification," panel_body_no_accordion"),children:n.map((e,t)=>(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{children:[(0,a.jsx)("h6",{children:e.split(":")[0]}),(0,a.jsx)("p",{children:e.split(":")[1]})]})}))})},"panel-".concat(t))}return"special offers"===e?(0,a.jsx)(f.Panel,{label:e,children:(0,a.jsxs)("div",{className:"".concat(s().specification," ").concat(s().promotion_content," panel_body_no_accordion"),children:[(0,a.jsx)("h4",{children:l.tabs[e].title}),(0,a.jsx)("p",{children:l.tabs[e].disclaimer}),(0,a.jsx)("p",{children:"Conditions apply. See dealer for details. Limited time only."})]})},"panel-".concat(t)):"availability"===e&&l.tabs[e].length>0?(0,a.jsx)(f.Panel,{label:e,children:(0,a.jsx)("div",{children:(0,a.jsx)("ul",{className:s().availability_list,children:l.tabs[e].map((e,t)=>(0,a.jsxs)("li",{className:s().availability_list__item,children:[(0,a.jsxs)("span",{children:[e.title," (",e.productCount," available) -"]}),(0,a.jsx)("a",{href:"tel:".concat(ek(e.phone)),children:(0,a.jsxs)("span",{className:s().telephone,children:[(0,a.jsx)("span",{children:(0,a.jsx)("span",{children:(0,a.jsx)("svg",{width:"18",height:"19",viewBox:"0 0 18 19",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M15.707 12.5786C15.3226 12.1936 14.9037 11.844 14.4869 11.4958C14.1171 11.1874 13.6996 11.1746 13.2675 11.354C12.9483 11.488 12.6928 11.7086 12.4532 11.9553C12.107 12.3056 11.7718 12.6644 11.4318 13.019C11.4131 13.0475 11.3847 13.0677 11.3522 13.0759C11.3197 13.084 11.2853 13.0794 11.2559 13.063C10.514 12.7092 9.81649 12.2649 9.17862 11.7398C8.67452 11.32 8.18912 10.8753 7.70649 10.4286C7.19801 9.96771 6.75039 9.44088 6.37493 8.86146C5.95946 8.20624 5.58485 7.52407 5.18947 6.85608C5.17602 6.83936 5.16604 6.82001 5.16014 6.79922C5.15423 6.77842 5.15252 6.75661 5.15511 6.73511C5.15771 6.71361 5.16454 6.69288 5.17521 6.67418C5.18588 6.65548 5.20015 6.6392 5.21717 6.62633C5.556 6.29115 5.89276 5.95361 6.22744 5.61371C6.47325 5.36481 6.73223 5.1223 6.85063 4.77767C6.98912 4.39262 7.03067 4.00331 6.78139 3.64308C6.61642 3.39088 6.43407 3.15106 6.23575 2.92546C5.6084 2.24967 4.97689 1.57814 4.32392 0.927171C4.01647 0.620833 3.66056 0.365552 3.32126 0.0932518C3.26126 0.0456895 3.18913 0.0168804 3.11353 0.0102854C2.92911 -0.00182094 2.74416 -0.00324126 2.55958 0.00603092C2.42893 0.00874907 2.30019 0.0386242 2.18115 0.0938436C2.06212 0.149063 1.95529 0.228475 1.86714 0.32726C1.55709 0.671683 1.2656 1.03316 0.99397 1.41008C0.32438 2.38015 -0.0052213 3.46651 0.000318229 4.79397C-0.00937594 5.59031 0.203203 6.47529 0.530035 7.33402C0.919187 8.35586 1.46206 9.29118 2.08318 10.1804C2.91858 11.3744 3.86646 12.4814 4.91318 13.4856C5.52461 14.0727 6.18312 14.611 6.85202 15.1336C7.55 15.681 8.27221 16.1973 9.00205 16.7014C10.0189 17.4134 11.1105 18.0061 12.2565 18.4685C12.985 18.7565 13.7328 18.9649 14.518 18.9968C15.6675 19.0401 16.614 18.6423 17.2698 17.6375C17.6179 17.093 17.8555 16.4824 17.9685 15.842C18.0529 15.3874 17.9747 14.9577 17.6486 14.611C17.0032 13.9288 16.3668 13.241 15.707 12.5786Z",fill:"black"})})})}),(0,a.jsx)("span",{children:(0,a.jsx)("strong",{children:ek(e.phone)})})]})})]},t))})})},"panel-".concat(t)):(0,a.jsx)(f.Panel,{label:e,children:(0,a.jsx)("div",{className:s().para__line_height,dangerouslySetInnerHTML:{__html:l.tabs[e]}})},"panel-".concat(t))})})]})})})})]})})}),ed&&(0,a.jsx)(T,{handleClose:eu,isLoading:ec,locations:null==l?void 0:l.locations,handlePickUpAddress:e=>{G(e),eg({address:e.address,postalCode:e.zip})},allLocations:c,handleOnProceedToCheckout:()=>{eT(),e_&&eO()},addressInfo:ej}),F&&(0,a.jsx)(M,{handleContactForm:eF,contactData:ee,showMoreFields:!0}),L&&o&&o.length>6?(0,a.jsx)(P,{attachmentsList:Z,attachmentMedia:u,setAttachmentsList:B,attachments:o,handleAttachments:eD}):"",I&&(0,a.jsx)(N,{handleRequestInfo:eL})]})}},76869:function(e){e.exports={wrapper:"product_wrapper__gCjs2",cover:"product_cover__6C8iw",breadcrumb:"product_breadcrumb__a_s96",active:"product_active__iqJA_",product_content:"product_product_content__hehNm",product_sidebar:"product_product_sidebar__3uFfI",notice:"product_notice__zWb0B",addpress__content:"product_addpress__content__HCjqK",map__icon:"product_map__icon__Uzs23",change_address:"product_change_address__Vp9KV",header:"product_header__mr_dO",title:"product_title__7thtl",specification:"product_specification__UeBP9",location_notes:"product_location_notes__MinC5",promotion:"product_promotion__xI4bx",promotion_content:"product_promotion_content__DV5vO",promotion_footer:"product_promotion_footer__jRNGh",review_box:"product_review_box__2OJLh",model_field:"product_model_field__2p_z9",machine_type_field:"product_machine_type_field__4elZ_",review_cover:"product_review_cover__HpTu_",rate:"product_rate__A7XGv",review_text:"product_review_text__kDyie",write_review:"product_write_review__SeH3s",detail_cover:"product_detail_cover__3nJrF",price_cover:"product_price_cover__1kY0o",regular_price:"product_regular_price__GshvM",call_price:"product_call_price__3vcBp",discounted_price:"product_discounted_price__GYL2w",additional_charges:"product_additional_charges__Zm5AV",include_exclude:"product_include_exclude__x8Swc",tabs__cover_description:"product_tabs__cover_description__YW1n1",tabs__cover:"product_tabs__cover__tmdwQ",tabs__btn:"product_tabs__btn__MM1qw",body:"product_body__xxDxe",tabs__panels:"product_tabs__panels__wckiE",product__attachments:"product_product__attachments__osdDn",availability_list:"product_availability_list__OwOdP",availability_list__item:"product_availability_list__item__wIXwO",telephone:"product_telephone__9Rgkk",para__line_height:"product_para__line_height__G2fcf",payment__calculator:"product_payment__calculator__Vy_al",payment_title:"product_payment_title__Hw2WJ",dropdown:"product_dropdown__Z_D4M",button:"product_button__heZx4",content:"product_content__1Zd6P",option:"product_option__5MYcQ",monthly_price:"product_monthly_price__5GVZ_",price:"product_price__sa2D9",montly_text:"product_montly_text__w7klt",tax__price:"product_tax__price__wqYqO"}},5152:function(e,t,n){e.exports=n(32602)}},function(e){e.O(0,[2888,9774,179],function(){return e(e.s=57837)}),_N_E=e.O()}]);