1"use strict";(self.webpackChunk_hutson_www=self.webpackChunk_hutson_www||[]).push([[6169],{53463:function(e,t,a){a.r(t);var r=a(20022),i=a(42236),n=a(92568),l=a(68154),o=a(92671),s=a(89005),c=a.n(s),m=a(94810),u=a.n(m),d=a(24851),g=a(86457),p=a(24154),h=a(68098),y=a(5227);const b=e=>{const t=e.currentTarget.attributes["data-value"].value;(0,h.gtag)("event",h.gtagEvents.open_credit_application,t?{currency:"USD",value:t}:{}),(0,h.fbq)("trackCustom",h.fbqEvents.Lead,t?{currency:"USD",value:t}:{})},f=()=>{(0,h.gtag)("event",h.gtagEvents.view_brochure),(0,h.fbq)("trackCustom",h.fbqEvents.ViewBrochure)},v=(0,n.default)(y.r).withConfig({displayName:"product__SecondaryButtonA",componentId:"sc-z6pzhf-0"})(["display:inline-block;margin:0 0 15px;text-decoration:none;"]),k=(0,n.default)(g.A).withConfig({displayName:"product__PlayButton",componentId:"sc-z6pzhf-1"})(["background-color:rgba(0,0,0,0.7);border-radius:5px;bottom:0;cursor:pointer;height:60px;left:0;margin:auto;position:absolute;right:0;top:0;width:100px;z-index:1;:hover,:focus{background-color:rgba(0,0,0,0.9);}:after{border-color:transparent transparent transparent rgba(255,255,255,1);border-style:solid;border-width:12.5px 0 12.5px 20px;content:'';display:block;left:40px;margin:0 auto;position:absolute;top:16.5px;}"]),w=e=>i.createElement("div",{className:"image-gallery-gatsby-image"},i.createElement("div",{className:"image-gallery-gatsby-image-inner"},i.createElement(d.G,{image:e.original,alt:e.originalAlt,objectFit:"contain",style:{width:"100%",height:"100%"}})),e.description&&i.createElement("span",{className:"image-gallery-description"},e.description)),E=e=>i.createElement("div",{className:"image-gallery-gatsby-image"},i.createElement("div",{className:"image-gallery-gatsby-image-inner"},i.createElement(d.G,{image:e.thumbnail,alt:e.thumbnailAlt,objectFit:"contain",style:{width:"100%",height:"100%"}}))),A=(e,t)=>{const a=e.findIndex(e=>e.sku===t),r=[];for(let i=1;i<=3;i++){const t=e[a+i];t&&r.push(t)}for(let i=-1;i>=-3;i--){const t=e[a+i];t&&r.push(t)}return r.splice(0,3)};t.default=e=>{const{data:{allDeereProduct:{nodes:t},allDeereOffer:{nodes:a},allHutsonPromotion:{nodes:n},deereProduct:s,deereProduct:{attachmentsBrochure:m,bodyHtml:g,buyOnlineLink:h,handle:C,outOfStock:$,productBrochure:q,reviews:x,sanityData:{brand:S,category:_,categoryCode:I,configureEnabled:N,keyFeatures:P,images:F,options:H,series:B,showPrice:T,subcategory:D,subcategoryCode:R,title:V},sku:j,slug:G,videos:L}},location:U}=e,z=T?H[0].price:s.productPrice,O=T&&H.length>1,J=T&&!O?z:null,Q=O?z:null,K=[].concat((0,r.A)(Array.isArray(n)?n.map(e=>({title:e.title,html:e.html,link:e.link||e.slug})):[]),(0,r.A)(Array.isArray(a)?a:[])),M=[];if(Array.isArray(t)){const e=A(t,j);M.push.apply(M,(0,r.A)(e.map(e=>({id:e.sku,image:e.image,imageAlt:e.imageAlt,link:e.slug,subtitle:`${D.title}/${B.title}`,title:e.name}))))}const W={description:s.description||`Learn more about the ${S.name} ${V} at Hutson.`,keywords:[_.title,D.title,B.title,V].concat((0,r.A)(s.keywords)).toString(),images:[],title:`${S.name} ${V} | Hutson Inc`},X=[];Array.isArray(F)&&F.length>0?F.forEach(e=>{X.push({original:e.asset.original,thumbnail:e.asset.thumbnail,originalAlt:"",thumbnailAlt:"",renderItem:w,renderThumbInner:E}),W.images.push(e.asset.url)}):s.image&&(X.push({original:s.image,thumbnail:s.image,originalAlt:s.imageAlt||V,thumbnailAlt:s.imageAlt||V}),W.images.push(s.image));const Y=[{name:"Home",schemaName:"Hutson Inc",link:"/"},{name:_.title,link:`/${_.handle}/`},{name:D.title,link:`/${_.handle}/${D.handle}/`},{name:B.title,link:`/${_.handle}/${D.handle}/${B.handle}/`},{name:V,link:G}],Z=[];let ee;if(D.ocaEquipmentType){const e=`https://creditapp.financial.deere.com/?dealer=034321&ref=${j}&type=${D.ocaEquipmentType}&country=us`;ee?Z.push(i.createElement(y.r,{href:e,key:"apply-for-financing",id:"apply-for-financing",onClick:b,"data-value":z},"Apply for financing")):ee={as:v,href:e,id:"apply-for-financing",children:"Apply for financing",onClick:b,"data-value":z}}$&&Z.push(i.createElement("a",{href:"#similar",onClick:u(),key:"similar-equipment-pricing-link"},"View similar equipment")),K.length>0&&Z.push(i.createElement("a",{href:"#offers",onClick:u(),key:"offers-discounts-pricing-link"},"View offers and discounts"));const te=[];q&&te.push(i.createElement("a",{href:q,target:"_blank",rel:"noopener noreferrer",id:"request-brochure",key:"product-brochure",onClick:f},"View product brochure")),m&&te.push(i.createElement("a",{href:m,target:"_blank",rel:"noopener noreferrer",id:"request-attachments-brochure",key:"attachments-brochure",onClick:f},"View attachments & implements brochure"));const ae=P.map(e=>({body:e._rawBody,image:e.image.asset.gatsbyImageData,title:e.title})),{0:re,1:ie}=(0,i.useState)({}),ne=e=>re[e.embedUrl]?i.createElement("div",{className:"image-gallery-image"},i.createElement("div",{className:"video-wrapper"},i.createElement("iframe",{title:"Related Video",src:e.embedUrl,frameBorder:"0",allowFullScreen:!0}))):i.createElement("div",null,i.createElement(k,{"aria-label":"Load video",onClick:()=>(e=>{const t={...re,[e]:!re[e]};ie(t)})(e.embedUrl),role:"button"}),i.createElement("div",{className:"image-gallery-gatsby-image"},i.createElement("div",{className:"image-gallery-gatsby-image-inner"},i.createElement(d.G,{image:e.original,alt:e.originalAlt,objectFit:"contain",style:{width:"100%",height:"100%"}})))),le=[].concat(X,(0,r.A)(Array.isArray(L)?L.map(e=>({original:e.thumbnail.childImageSharp.original,thumbnail:e.thumbnail.childImageSharp.thumbnail,originalAlt:"",thumbnailAlt:"",embedUrl:`https://www.youtube.com/embed/${e.id}?rel=0`,renderItem:ne,renderThumbInner:E})):[]));return i.createElement(p.A,{breadcrumbs:Y,buttonText:J||Q?"Talk to Sales":"Get a Quote",description:c()(g)?null:g,disclaimer:"Prices and availability may vary by dealer. Taxes not included. Images for illustration purposes only. Financing subject to approved credit by John Deere Financial. Down payment may be required to receive financing. Restrictions may apply outside of Hutsonâs area of responsibility.",displayPrice:J,equipmentBrand:"John Deere",equipmentC
1ondition:"new",features:s.features,images:le,keyFeatures:ae,offers:K,outOfStock:$,overview:s.overview,price:z,pricingLinks:Z,productType:"john-deere",quoteFormHeader:J||Q?"Talk to Sales":"Get a Quote",quoteFormSubmitButtonClass:"submit-quote",quoteFormHiddenValues:[{name:"Category Code",value:I},{name:"Subcategory Code",value:R}],resourceLinks:te,reviews:x,similar:M,secondaryButton:ee,specs:s.specs,startingAtPrice:Q,title:V},i.createElement(l.Helmet,null,i.createElement("title",null,W.title),i.createElement("meta",{name:"description",content:W.description}),i.createElement("meta",{name:"keywords",content:W.keywords}),i.createElement("meta",{property:"og:title",content:W.title}),i.createElement("meta",{property:"og:description",content:W.description}),i.createElement("meta",{property:"og:url",content:U.href}),W.images.map((e,t)=>i.createElement("meta",{property:"og:image",content:e,key:t})),i.createElement("meta",{property:"twitter:card",content:"summary"}),i.createElement("meta",{name:"twitter:site",content:"@Hutson_Inc"}),i.createElement("script",{type:"application/ld+json"},JSON.stringify({"@context":"http://schema.org","@type":"Product",description:W.description,name:V,image:W.images[0],sku:j,mpn:s.baseCode,category:`${_.title}/${D.title}/${B.title}`,brand:o.aE,manufacturer:o.uG,...Array.isArray(null==x?void 0:x.reviews)&&x.reviews.length>0?{review:x.reviews.map(e=>({"@type":"Review",author:{"@type":"Person",name:e.author},datePublished:e.date,description:e.text,name:e.title,reviewRating:{"@type":"Rating",bestRating:"5",ratingValue:e.rating.overall}})),...x.overview&&{aggregateRating:{"@type":"AggregateRating",ratingValue:x.overview.rating.overall.toFixed(1),bestRating:5,reviewCount:x.overview.count}}}:{}}))))}}}]); 2//# sourceMappingURL=component---src-templates-product-js-3331e52a28e50b0d72f8.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.