PageSourceSearch

https://www.adtranshyundaitrucksvic.com.au/3634-fcff0e7a999a47168d98.js

js adtranshyundaitrucksvic.com.au collected 2026-10-09 01:56:23 UTC 4,421 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[3634],{53634:function(e,a,s){s.r(a),s.d(a,{FormEmailThisVehicle:function(){return L}});var r=s(63696),i=s(51149),l=s(21698),t=s(10898),m=s(72407),n=s(60132),o=s(97074),d=s(86299),u=s(74447),c=s(79124),p=s(51089),f=s(13276),h=s(79511),F=s(34995),N=s(52466),g=s(62741),C=s(41129),Y=s(18031),I=s(48136),S=s(37771),v=s(26443),y=s(78887),R=s(98335),b=s(19951),k=s(32120),E=s(770),M=s(19023),T=s(4575),V=s(91785);const L=({formOnModal:e=!1,formId:a="1001",closeFormModal:s,specialsReferenceCode:L="",specialTitle:w="",specialSlug:D="",specialId:q="",imFormBackgroundWrapperCustom:$,imFormWrapperCustom:_,imFormItemCustom:H,formHeading:O,additionalFormData:P})=>{const W=!e,x=W?R.Y_:v.v,{formEmailThisVehicle:K}=n.U,{0:U,1:A}=(0,r.useState)(""),j=o.ec.FormEmailThisVehicle,{heading:Q,formShortName:z}=j,{handleFormOpen:B,handleFormInteracted:J}=(0,N.Y)(z);(0,r.useEffect)((()=>{(0,r.startTransition)((()=>A((0,l.A)())))}),[]);const G=(0,I.S)((()=>{(0,p.QY)({eventName:m.R.formOpen,eventInfo:{form_name:z,form_category:"lead_aftersales",form_type:e?"modal":"embedded",form_step_name:"start",form_step_number:"step-0"}}),B()})),X=d.kQ,{isDealerPayload:Z,preferredDealerPayload:ee}=(0,g.h)(),{0:ae,1:se}=(0,r.useState)(!1),re={comments:X,...K.isMarketing&&{marketing:K.isMarketingChecked},...K.isTerms&&{terms:K.isTermsChecked}},[ie,le]=(0,C.Mj)(u.fD,{}),{0:te,1:me}=(0,r.useState)({...re}),ne=e=>{"string"!=typeof e&&(le((a=>({...a,...e}))),J())},{0:oe,1:de}=(0,r.useState)(!1),{0:ue,1:ce}=(0,r.useState)(!1),pe=()=>{de(!1),se(!1),me({...re})},{handleReCaptchaVerify:fe,recaptchaReady:he,isLoading:Fe}=(0,Y.V)((async()=>{se(!0),await(0,f.M)(ie,le),(0,c.$)("Hard Lead","Stock Send to a Friend Form"),(0,F.t)({formId:parseInt(a,10),formShortName:z}),(0,h.JP)(),W&&de(!0),W||ce(!0)})),Ne=()=>{const e={email:ie.email,formId:parseInt(a,10),friendEmail:ie.friendEmail,friendFullName:ie.friendFullName,fullName:ie.fullName,specialsReferenceCode:L,specialTitle:w,specialSlug:D,specialId:q,...Z&&ee,...P,...te};return(0,i.z)(e,t.Po)};return(0,V.Y)(r.Fragment,null,!ue&&(0,V.Y)("div",{ref:G,className:"classStandardComponent classStandardForm",css:[x,$,""]},(0,V.Y)("div",{css:[R.cU,_,""]},(0,V.Y)("form",{css:[R.ao,H,""],id:z,name:z,acceptCharset:"utf-8",onSubmit:e=>{e.preventDefault(),fe()}},(0,V.Y)(M.h,{formOnPage:W,isSubmitted:ae},O||Q),(0,V.Y)("div",{css:y.uf},(0,V.Y)("div",{className:"classImFormCol",css:y.hL},(0,V.Y)(T.FormSectionHeading,null,"Your Contact Details"),(0,V.Y)("div",{className:"classImFormInputRow",css:y.lp},(0,V.Y)(b.InputLabelNestedControlled,{isRequired:!0,idName:`${z}FullName-${U}`,typeName:"text",placeholder:"Your Name",inputValue:ie.fullName||"",inputValueKey:"fullName",handleChange:ne},"Your Name")),(0,V.Y)("div",{className:"classImFormInputRow",css:y.lp},(0,V.Y)(b.InputLabelNestedControlled,{isRequired:!0,idName:`${z}Email-${U}`,typeName:"email",placeholder:"Your Email",inputValue:ie.email||"",inputValueKey:"email",handleChange:ne},"Your Email")),(0,V.Y)("div",{className:"classImFormInputRow",css:y.lp},(0,V.Y)(b.InputLabelNestedControlled,{isRequired:!0,idName:`${z}FriendFullName-${U}`,typeName:"text",placeholder:"Friend's Name",inputValue:ie.friendFullName||"",inputValueKey:"friendFullName",handleChange:ne},"Friend's Name")),(0,V.Y)("div",{className:"classImFormInputRow",css:y.lp},(0,V.Y)(b.InputLabelNestedControlled,{isRequired:!0,idName:`${z}FriendEmail-${U}`,typeName:"email",placeholder:"Friend's Email",inputValue:ie.friendEmail||"",inputValueKey:"friendEmail",handleChange:ne},"Friend's Email"))),(0,V.Y)("div",{className:"classImFormCol",css:y.hL},(0,V.Y)(T.FormSectionHeading,null,"What's On Your Mind?"),(0,V.Y)(E.v,{currentForm:j,uniqueId:U,otherInfo:te,includeCurrentUrlHref:!0,handleOtherInfoChange:e=>{"object"==typeof e&&(me({...te,...e}),J())},userInfo:ie,handleUserInfoChange:ne,isSubmitted:ae,isComments:K.isComments,isFooterLegalHeading:K.isFooterLegalHeading,isMarketing:K.isMarketing,isMarketingRequired:K.isMarketingRequired,isTerms:K.isTerms,isTermsRequired:K.isTermsRequired,isAlternativeLegalText:K.isAlternativeLegalText,isSubmitDisabled:Fe||!1===he}))))),oe&&(0,V.Y)(S.a,{modalWrapperCustom:v.Du,modalContentCustom:v.pW,modalShowed:oe,closeModal:pe}
1,(0,V.Y)(k.C,{formShortName:z,getFormData:Ne,closeMessage:pe}))),ue&&(0,V.Y)(k.C,{formShortName:z,getFormData:Ne,closeMessage:s}))}}}]);

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.