1(self.webpackChunk_hutson_www=self.webpackChunk_hutson_www||[]).push([[792],{19014:function(e,t,a){"use strict";a.r(t),a.d(t,{default:function(){return x}});var n=a(42236),i=a(92568),r=a(89130),o=a(46878),l=a(8095),s=a(77403),c=a(24519),m=a(35284);var d=e=>{let{updateValidationSet:t}=e;return n.createElement(n.Fragment,null,n.createElement(m.x,null,n.createElement(m.V,{columns:"1/2"},n.createElement(l.A,{updateValidationSet:t,label:"First Name",name:"First Name",validationError:"Please enter a valid first name.",required:!0})),n.createElement(m.V,{columns:"1/2"},n.createElement(l.A,{updateValidationSet:t,label:"Last Name",name:"Last Name",validationError:"Please enter a valid last name.",required:!0}))),n.createElement(m.x,null,n.createElement(m.V,{columns:"1/2"},n.createElement(s.A,{updateValidationSet:t,required:!0})),n.createElement(m.V,{columns:"1/2"},n.createElement(c.A,{updateValidationSet:t,required:!0}))))},u=a(80618);var p=e=>{let{updateValidationSet:t}=e;return n.createElement(n.Fragment,null,n.createElement(m.x,null,n.createElement(m.V,{columns:"1/2"},n.createElement(l.A,{updateValidationSet:t,label:"Your Dealership",name:"Dealership",required:!0})),n.createElement(m.V,{columns:"1/2"},n.createElement(l.A,{updateValidationSet:t,label:"Dealership Account Number",name:"Account Number",required:!0}))),n.createElement(m.x,null,n.createElement(m.V,{columns:"1/2"},n.createElement(l.A,{updateValidationSet:t,label:"Dealership City",name:"Dealership City",required:!0})),n.createElement(m.V,{columns:"1/2"},n.createElement(u.A,{updateValidationSet:t,required:!0}))))},h=a(1259),f=a(87169);var g=e=>{let{updateValidationSet:t}=e;return n.createElement(n.Fragment,null,n.createElement(m.x,null,n.createElement(m.V,{columns:"1/3"},n.createElement(l.A,{updateValidationSet:t,label:"Equipment Model",name:"text",required:!0})),n.createElement(m.V,{columns:"1/3"},n.createElement(l.A,{updateValidationSet:t,label:"Serial Number",name:"Serial Number",required:!0})),n.createElement(m.V,{columns:"1/3"},n.createElement(h.A,{updateValidationSet:t,name:"Status",label:"Status",required:!0},n.createElement("option",{value:"",disabled:!0},"Select an option"),n.createElement("option",{value:"I have this item sold and need it"},"I have this item sold and need it"),n.createElement("option",{value:"I have a customer interested in this item"},"I have a customer interested in this item"),n.createElement("option",{value:"I am inquiring on the availability of this item"},"I am inquiring on the availability of this item")))),n.createElement(f.A,{updateValidationSet:t,label:"Message",name:"Message",validationError:"Please enter a valid message."}))};const b=[{name:"About You",renderComponent:e=>n.createElement(d,e)},{name:"Dealership Info",renderComponent:e=>n.createElement(p,e)},{name:"Equipment Info",renderComponent:e=>n.createElement(g,e)}];var y=()=>n.createElement(o.A,{steps:b,name:"Equipment Transfer"}),E=a(68154),v=a(71822),w=a(19460);const N=i.default.p.withConfig({displayName:"transfer__Message",componentId:"sc-1s854pp-0"})(["margin-bottom:40px;"]);var x=e=>{let{data:{heroImage:t}}=e;return n.createElement(v.A,null,n.createElement(E.Helmet,null,n.createElement("title",null,"Equipment Transfer Request | Hutson Inc"),n.createElement("meta",{name:"description",content:"Need a unit that Hutson Inc has in stock? Fill out a transfer request form and we will get back with you as soon as possible."}),n.createElement("script",{type:"application/ld+json"},JSON.stringify({"@context":"http://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Hutson Inc",item:"https://www.hutsoninc.com/"},{"@type":"ListItem",position:2,name:"Equipment Transfer Request",item:"https://www.hutsoninc.com/transfer/"}]}))),n.createElement(r.A,{title:"Equipment Transfer Request Form",image:t}),n.createElement(w.A,null,n.createElement(N,null,"Are you a dealership and need a unit that Hutson Inc has in stock? Fill out the form below and weâll get back to you."),n.createElement(y,{name:"Equipment Transfer"})))}},19460:function(e,t,a){"use strict";var n=a(42236);const i=a(92568).default.div.withConfig({displayName:"content__StyledContent",componentId:"sc-1gk2sjm-0"})(["margin:auto;padding:"," 0;width:85%;@media ","{padding:"," 0;width:75%;}"],e=>e.theme.size.l,e=>e.theme.mediaQuery.largeUp,e=>e.theme.size.xxl);t.A=e=>{let{children:t,...a}=e;return n.createElement(i,a,t)}},32107:function(e,t){"use strict";var a;a="function"==typeof FormData&&"entries"in FormData.prototype?function(e){return Array.from(new FormData(e).entries())}:function(e){for(var t=[],a=e.elements,n=0;n<a.length;n++){var i=a[n],r=i.tagName.toUpperCase();
1if("SELECT"===r||"TEXTAREA"===r||"INPUT"===r){var o=i.type,l=i.name;if(l&&!i.disabled&&"submit"!==o&&"reset"!==o&&"button"!==o&&("radio"!==o&&"checkbox"!==o||i.checked))if("SELECT"===r)for(var s=i.getElementsByTagName("option"),c=0;c<s.length;c++){var m=s[c];m.selected&&t.push([l,m.value])}else"file"===o?(console.warn("form-data-entries could not serialize <input type=file>",i),t.push([l,""])):t.push([l,i.value])}}return t},t.A=a},37096:function(e,t,a){"use strict";var n=a(5556);const i={breadcrumbs:(0,n.arrayOf)((0,n.shape)({name:n.string.isRequired,link:n.string.isRequired}))};n.object.isRequired,n.node,n.node,n.string.isRequired},46878:function(e,t,a){"use strict";var n=a(42236),i=a(92568),r=a(32107),o=a(83854),l=a(12160),s=a(14882),c=a(25082),m=a(14675),d=a(65264),u=a(30563),p=a(65722);let h=!1;const f=e=>{let{buttonClass:t,className:a,functionName:i,name:l,steps:s,...m}=e;const f=`${l} Form`,b=s.length,{0:y,1:S}=(0,n.useState)(1),{0:k,1:A}=(0,n.useState)(!0),{0:I,1:C}=(0,n.useState)(!1),{0:q,1:V}=(0,n.useState)(!1),[_,T]=(0,u.X)({}),{0:M,1:D}=(0,n.useState)({error:!1,message:"",messageBody:"",success:!1});(0,d.S)(()=>(h=!0,/schedule.service/i.test(l)&&(0,p.track)("Service Request Started",{"form name":f,"service category":"","equipment type":"","location id":"","lead source":"schedule service page"}),()=>{h=!1}));const F=e=>{e!==y&&(S(e),V(e===b),A(e!==b),C(1!==e))},L=()=>{F(y+1)},B=()=>{F(y-1)};return n.createElement(o.A,{name:f,onSubmit:()=>{if(!i)return D({error:!1,message:"Success!",messageBody:"Your form has been submitted. Our team will be in touch with you soon!",success:!0}),void(/schedule.service/i.test(l)&&((0,p.track)("Service Request Submitted",{"service request id":"","service category":"","equipment type":"","preferred appointment window":"","location id":"","is emergency":!1,"lead source":"schedule service page"}),(0,p.track)("Lead Submitted",{"lead id":"","lead type":"service request","form name":f,"lead source":"schedule service page","location id":"","equipment id":"","preferred contact method":""})));const e={};for(const[t,a]of(0,r.A)(document.forms[f]))e[t]=a;e.pageName=document.title,fetch(`/api/${i}`,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"include",body:JSON.stringify(e)}).then(e=>{if(h){const t=e.ok;D({error:!t,message:t?"Success!":"Error.",messageBody:t?"Your form has been submitted. Our team will be in touch with you soon!":'There was an issue submitting your form. If problems persist please contact <a href="mailto:[email protected]">our support team</a>.',success:t}),t&&/schedule.service/i.test(l)&&((0,p.track)("Service Request Submitted",{"service request id":"","service category":"","equipment type":"","preferred appointment window":"","location id":"","is emergency":!1,"lead source":"schedule service page"}),(0,p.track)("Lead Submitted",{"lead id":"","lead type":"service request","form name":f,"lead source":"schedule service page","location id":"","equipment id":"","preferred contact method":""}))}}).catch(e=>{h&&(console.error("Error submitting form: ",e),D({error:!0,message:"Error.",messageBody:'There was an issue submitting your form. If problems persist please contact <a href="mailto:[email protected]">our support team</a>.',success:!1}))})},className:a},e=>{let{error:a,loading:i,success:r}=e;return n.createElement("div",null,r||M.success?n.createElement(c.A,{message:M.message,messageBody:M.messageBody}):n.createElement(n.Fragment,null,n.createElement(n.Fragment,null,a&&n.createElement(c.A,{error:!0,message:"Error.",messageBody:'There was an issue submitting your form. If problems persist please contact <a href="mailto:[email protected]">our support team</a>.'}),M.error&&!a&&n.createElement(c.A,{error:M.error,message:M.message,messageBody:M.messageBody}))),r||M.success?null:n.createElement(x,null,n.createElement(g,null,s.map((e,t)=>{let a="inactive";return t+1===y?a="active":t<y&&(a="completed"),n.createElement(E,{className:a,onClick:()=>F(t+1),key:t},n.createElement("p",null,t+1),n.createElement("span",null,e.name))})),n.createElement("div",{className:"fields"},s.map((e,t)=>n.createElement("div",{key:t,style:y-1===t?{}:{display:"none"}},e.renderComponent({updateValidationSet:T,...m})))),n.createElement(v,null,n.createElement("div",{className:"submit",style:q?{}:{display:"none"}},n.createElement(N,{className:`${l.split(" ").join("-")}-Form ${t}`,disabled:!_||r&&M.success,loading:i}
1)),n.createElement("div",{className:"navigation-button navigation-button-next",style:k?{}:{display:"none"}},n.createElement(w,{onClick:L},"Next")),n.createElement("div",{className:"navigation-button navigation-button-previous",style:I?{}:{display:"none"}},n.createElement(w,{color:"gray",onClick:B},"Previous")))))})};f.defaultProps={buttonClass:"",className:""};const g=i.default.ol.withConfig({displayName:"multi-step-form__ProgressBar",componentId:"sc-1t2tjf6-0"})(["display:block;list-style:none;margin:0 auto 20px;padding:20px 0;text-align:left;"]),b='\n background-color: #f6f6f6;\n content: "";\n cursor: default;\n display: inline-block;\n height: 4px;\n position: absolute;\n right: 50%;\n top: 12px;\n width: 100%;\n z-index: 0;\n',y='\n background-color: #f6f6f6;\n content: "";\n cursor: default;\n display: inline-block;\n height: 4px;\n position: absolute;\n top: 12px;\n width: 100%;\n z-index: 0;\n',E=i.default.li.withConfig({displayName:"multi-step-form__ProgressBarItem",componentId:"sc-1t2tjf6-1"})(["display:inline-block;margin:0 8px;padding:0;text-align:center;p{cursor:pointer;display:inline-block;margin:0;padding:5px 10px;}span{cursor:pointer;display:none;font-size:0.8em;margin-top:10px;}&.completed{p{background-color:#377539;color:#fff;}}&.active{p{background-color:#377539;color:#fff;}}&.inactive{p{background-color:#f6f6f6;color:#a7a7a7;}}@media (min-width:800px){margin:0 15px;position:relative;vertical-align:top;p{position:relative;z-index:1;}span{display:block;}&.completed{:not(:first-child):before{"," background-color:#377539;}:after{"," background-color:#377539;}}&.active{:not(:first-child):before{"," background-color:#377539;}:not(:last-child):after{","}}&.inactive{:not(:first-child):before{","}:not(:last-child):after{","}}}"],b,y,b,y,b,y),v=i.default.div.withConfig({displayName:"multi-step-form__Navigation",componentId:"sc-1t2tjf6-2"})(["display:block;float:left;width:100%;.navigation-button{display:block;float:right;margin-top:25px;width:48%;}.navigation-button-previous{margin-right:4%;}.button{padding:10px 0;}.submit{display:block;float:right;margin-top:25px;width:48%;}@media (min-width:800px){float:right;.navigation-button{width:200px;}.navigation-button-previous{margin-right:25px;}.submit{display:block;float:right;width:200px;}}"]),w=(0,i.default)(l.A).withConfig({displayName:"multi-step-form__StyledButton",componentId:"sc-1t2tjf6-3"})(["width:100%;"]),N=(0,i.default)(s.X).withConfig({displayName:"multi-step-form__StyledSubmit",componentId:"sc-1t2tjf6-4"})(["width:100%;"]),x=i.default.div.withConfig({displayName:"multi-step-form__Container",componentId:"sc-1t2tjf6-5"})(["",""],m.J);t.A=f},80618:function(e,t,a){"use strict";var n=a(42236),i=a(1259),r=a(96816),o=a.n(r),l=a(40907);const s=e=>{let{label:t,name:a,required:r,updateValidationSet:l}=e;
1return n.createElement(i.A,{updateValidationSet:l,required:r,name:a,label:t},n.createElement("option",{value:"",disabled:r},"Select a state"),Object.keys(o()).map(e=>n.createElement("option",{key:e,value:o()[e]},e)))};s.defaultProps={label:"State",name:"State",required:!1,updateValidationSet:a.n(l)()},t.A=s},89130:function(e,t,a){"use strict";a.d(t,{A:function(){return h}});var n=a(42236),i=a(92568),r=a(24851);a(37096);const o=i.default.div.withConfig({displayName:"hero-image__Container",componentId:"sc-1gxsyrh-0"})(["height:250px;position:relative;width:100%;@media (min-width:800px){height:350px;}"]),l=i.default.div.withConfig({displayName:"hero-image__Wrapper",componentId:"sc-1gxsyrh-1"})(["height:100%;margin:auto;max-width:85%;position:relative;z-index:1;@media (min-width:800px){width:75%;}"]),s=i.default.div.withConfig({displayName:"hero-image__Content",componentId:"sc-1gxsyrh-2"})(["bottom:15%;position:absolute;width:100%;"]),c=i.default.div.withConfig({displayName:"hero-image__ImageContainer",componentId:"sc-1gxsyrh-3"})(["height:100%;position:absolute;width:100%;"]),m=(0,i.default)(r.G).withConfig({displayName:"hero-image__Image",componentId:"sc-1gxsyrh-4"})(["left:50%;height:100%;transform:translateX(-50%);width:100%;"]);var d=e=>{var t;let{children:a,image:i,...r}=e;return n.createElement(o,r,n.createElement(c,null,n.createElement(m,{image:null==i||null===(t=i.childImageSharp)||void 0===t?void 0:t.gatsbyImageData,alt:""})),a&&n.createElement(l,null,n.createElement(s,null,a)))},u=a(96068);const p=i.default.h1.withConfig({displayName:"hero-image__H1",componentId:"sc-vza4ke-0"})(["color:#fff;font-size:2.25em;margin:0;@media (min-width:800px){font-size:3em;}"]);var h=e=>{let{bg:t,breadcrumbs:a,children:i,title:r,...o}=e;return n.createElement(d,Object.assign({bg:t},o),n.createElement(p,null,r),a&&n.createElement(u.A,{breadcrumbs:a}),i)}},96068:function(e,t,a){"use strict";var n=a(42236),i=a(92568),r=a(28007);a(37096);const o=i.default.ul.withConfig({displayName:"breadcrumbs__BreadcrumbsUl",componentId:"sc-9ns19e-0"})(["color:#fff;list-style-type:none;padding:0;margin:0;text-transform:capitalize;line-height:1;"]),l=i.default.li.withConfig({displayName:"breadcrumbs__BreadcrumbsLi",componentId:"sc-9ns19e-1"})(["display:inline-block;margin:5px 5px 0 5px;:first-of-type{margin-left:4px;}:after{display:inline-block;content:'>';padding-left:8px;}:last-of-type:after{display:none;}a{color:inherit;text-decoration:none;:hover,:focus{text-decoration:underline;}}"]);t.A=e=>{let{breadcrumbs:t,...a}=e;return n.createElement(o,a,t.map((e,a)=>n.createElement(l,{key:a},e.link&&(a!==t.length-1?n.createElement(r.Link,{to:e.link},e.name):n.createElement(n.Fragment,null,e.name)))))}},96816:function(e){e.exports={Alabama:"AL",Alaska:"AK",Arizona:"AZ",Arkansas:"AR",California:"CA",Colorado:"CO",Connecticut:"CT",Delaware:"DE",Florida:"FL",Georgia:"GA",Hawaii:"HI",Idaho:"ID",Illinois:"IL",Indiana:"IN",Iowa:"IA",Kansas:"KS",Kentucky:"KY",Louisiana:"LA",Maine:"ME",Maryland:"MD",Massachusetts:"MA",Michigan:"MI",Minnesota:"MN",Mississippi:"MS",Missouri:"MO",Montana:"MT",Nebraska:"NE",Nevada:"NV","New Hampshire":"NH","New Jersey":"NJ","New Mexico":"NM","New York":"NY","North Carolina":"NC","North Dakota":"ND",Ohio:"OH",Oklahoma:"OK",Oregon:"OR",Pennsylvania:"PA","Rhode Island":"RI","South Carolina":"SC","South Dakota":"SD",Tennessee:"TN",Texas:"TX",Utah:"UT",Vermont:"VT",Virginia:"VA",Washington:"WA","West Virginia":"WV",Wisconsin:"WI",Wyoming:"WY"}}}]); 2//# sourceMappingURL=component---src-pages-transfer-js-026ef2744beb0f3a89c4.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.