PageSourceSearch

https://www.powerforcemidland.com.au/9509-95f294ed5b13229ae67a.js

js powerforcemidland.com.au collected 2026-10-09 17:18:34 UTC 7,268 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[9509],{29509:function(e,a,t){t.r(a),t.d(a,{FormStockDetailsDynamicQuickEnquiry:function(){return Z}});var o=t(63696),s=t(23224),m=t(51149),r=t(10898),l=t(34004),n=t(72407),i=t(17972),d=t(97074),c=t(38991),u=t(74447),p=t(79124),h=t(51089),f=t(79511),g=t(6095),C=t(34995),b=t(52466),S=t(4740),v=t(9546),N=t(41129),k=t(48136),F=t(78635),Y=t(37771),I=t(36172),y=t(26443),w=t(78887),x=t(98335),q=t(46035),E=t(15063),L=t(74510),R=t(19443),T=t(19951),_=t(75350),A=t(68102),D=t(83163),M=t(83251),V=t(91785),H=t(54172),$=t(36557),P=t(84734);const W={name:"b6wrti",styles:"display:flex;flex-direction:column;width:100%"},z=(0,V.AH)((0,H.A)(),";text-align:left;",""),K={name:"1uyq89o",styles:"overflow:hidden;transition:max-height 300ms ease-in-out"},O={name:"s5xdrg",styles:"display:flex;align-items:center"},B=(0,V.AH)("display:inline-flex;width:",P.v.commentsIconWrapperSize,";height:",P.v.commentsIconWrapperSize,";position:relative;transform:rotate(0deg);background-color:",P.v.commentsIconBgCol,";border-radius:calc(",P.v.commentsIconWrapperSize," / 2);margin-left:10px;transition:transform 0.3s;&::before{content:'';position:absolute;width:0;height:0;top:0;bottom:0;left:0;right:0;margin:auto;border-bottom:solid 2px ",$.X.white,";transform:rotate(90deg);}&::after{content:'';position:absolute;width:",P.v.commentsIconSize,";height:0;top:0;bottom:0;left:0;right:0;border-bottom:solid 2px ",$.X.white,";margin:auto;}.collapsed &{transform:rotate(-180deg);&::before{width:",P.v.commentsIconSize,";transition:width 0.3s;}}",""),Q=({buttonLabelText:e,value:a,onChange:t})=>{const{0:s,1:m}=(0,o.useState)(!1);return(0,V.Y)("div",{css:W},(0,V.Y)("button",(0,A.A)({type:"button",css:z,onClick:()=>m(!s)},!s&&{className:"collapsed"},{"aria-label":"Toggle Accordion"}),(0,V.Y)("label",{className:"classImFormLabel",htmlFor:"formSdEnqComment",css:[R.Lf,O,""]},e,(0,V.Y)("span",{css:B}))),(0,V.Y)(D.F,{accordionComponentName:"textarea-toggled",isActive:s,accordionPaneWrapperCustom:K},(0,V.Y)("textarea",{className:"classImFormTextarea",css:[R.Fk,M.p,""],id:"formSdEnqComment",name:"formSdEnqComment",rows:4,value:a,onChange:t})))};var G=t(32120),j=t(92379),U=t(19023),X=t(4575);const Z=({closeFormModal:e,formId:a,formOnModal:t=!1,formHeading:A="",stockDetails:D,imFormBackgroun
1dWrapperCustom:M,imFormWrapperCustom:H,imFormHeadingCustom:$,imFormInputRowCustom:P})=>{const{t:W}=(0,s.Bd)(),{formStockDetailsSimple:z,sectionFooter:K}=i.U,{archived:O,id:B,make:Z,model:J,variations:ee,year:ae}=D||{},te=O?"Find Me Something Similar":`Quick ${W("Enquiry")}`,oe=!t,se=oe?x.Y_:y.v,{0:me,1:re}=(0,o.useState)({}),{0:le,1:ne}=(0,o.useState)(!1),{0:ie,1:de}=(0,o.useState)(!1),{0:ce,1:ue}=(0,o.useState)(!1),pe=d.ec.FormStockDetailsSimple,{formShortName:he}=pe,{handleFormOpen:fe,handleFormInteracted:ge}=(0,b.Y)(he),{alternativeLegalText:Ce}=K,{isFooterLegalHeading:be,isMarketing:Se,isMarketingChecked:ve,isMarketingRequired:Ne,isTerms:ke,isTermsChecked:Fe,isTermsRequired:Ye,isAlternativeLegalText:Ie,isCommentsAlwaysShown:ye}=z,we={...Se&&{marketing:ve},...ke&&{terms:Fe}},xe=(0,o.useId)(),[qe,Ee]=(0,N.Mj)(u.fD,{}),{0:Le,1:Re}=(0,o.useState)({...we}),{0:Te,1:_e}=(0,o.useState)(""),Ae=e=>{"string"!=typeof e&&(Ee((a=>({...a,...e}))),ge())},De=e=>{"object"==typeof e&&(Re({...Le,...e}),ge())},Me=()=>{const e={formId:parseInt(a,10),fullName:null==qe?void 0:qe.fullName,phone:null==qe?void 0:qe.phone,email:null==qe?void 0:qe.email,comments:Te,make:Z,model:J,badge:ee,year:ae,stockId:B,...Le};return(0,m.z)(e,r.Po)},Ve=()=>{t&&(null==e||e()),ue(!1),de(!1),_e(""),Re({...we})},He=(0,g._)([ae,Z,J,ee]," "),$e={componentName:c.k$.form,modelName:He},{handleSubmitWithReCaptcha:Pe,recaptchaReady:We,isLoading:ze}=(0,S.T)({handleSubmit:async()=>{(0,p.$)("Hard Lead","Stock Quick Enquiry"),(0,C.t)({formId:parseInt(a,10),formShortName:he,variableData:$e}),(0,f.JP)(D),(0,f.tZ)(D),ue(!0)},errors:me,setFormErrorStatus:ne,setSubmitted:de}),Ke=(0,k.S)((()=>{(0,h.QY)({eventName:n.R.formOpen,eventInfo:{form_name:he,form_category:"lead_aftersales",form_type:t?"modal":"embedded",form_step_name:"start",form_step_number:"step-0"}}),fe()})),Oe=(0,v.x)();return(0,V.Y)(o.Fragment,null,(oe||!ce)&&(0,V.Y)("div",{ref:Ke,css:[se,M,""]},(0,V.Y)("div",{css:[x.cU,H,""]},(0,V.Y)("form",{className:oe?"classSdFormSimple":void 0,css:x.ao,name:he,id:he,acceptCharset:"utf-8",onSubmit:Pe},(0,V.Y)(U.h,{formOnPage:oe,isSubmitted:ie,isFormErrorStatus:le,imFormHeadingCustom:$},A||W(te,{Enquiry:W("Enquiry")})),t&&(0,V.Y)(X.FormSectionHeading,null,"Your Contact Details"),(0,V.Y)("div",{className:"classImFormInputRow",css:[w.lp,P,""]},(0,V.Y)(T.InputLabelNestedControlled,{isRequired:!0,idName:`formSdEnqFullName-${xe}`,typeName:"text",placeholder:"Full Name",inputValue:qe.fullName||"",inputValueKey:"fullName",handleChange:Ae},"Full Name")),(0,V.Y)("div",{className:"classImFormInputRow",css:[w.lp,P,""]},(0,V.Y)(T.InputLabelNestedControlled,{isRequired:!0,idName:`formSdEnqEmail-${xe}`,typeName:"email",placeholder:"Email Address",inputValue:qe.email||"",inputValueKey:"email",handleChange:Ae},"Email")),(0,V.Y)("div",{className:"classImFormInputRow",css:[w.lp,P,""]},(0,V.Y)(T.InputLabelNestedControlled,{isRequired:!0,className:(Be="phone",le&&me[Be]?"classFormError":""),idName:`formSdEnqPhone-${xe}`,typeName:"tel",placeholder:"Phone Number",inputValue:qe.phone||"",inputValueKey:"phone",handleChange:Ae,validationRequired:!0,validateFieldType:"phone",handleErrors:re},"Phone Number")),(0,V.Y)("div",{className:"classImFormInputRow",css:[w.lp,P,""]},ye?(0,V.Y)(_.TextareaLabelNestedControlled,{idName:`formSdEnqComments-${xe}`,textareaValue:Te,handleChange:e=>"string"==typeof e&&_e(e),rows:4,maxLength:1e3},"Comments"):(0,V.Y)(Q,{buttonLabelText:"Click to Add Comments",value:Te,onChange:e=>_e(e.target.value)})),be&&(0,V.Y)(X.FormSectionHeading,null,"Additional Information"),Se&&(0,V.Y)("div",{className:"classImFormInputRow",css:[w.lp,P,""]},(0,V.Y)(q.CheckboxLabelNestedControlled,{imFormCheckLabelCustom:R.Dq,imFormCheckTextCustom:R.es,idName:`formSdEnqMarketing-${xe}`,isRequired:Ne,checkValue:null==Le?void 0:Le.marketing,handleChange:De,checkValueKey:"marketing"},(0,V.Y)(E.CheckboxMarketingLabelContent,null))),ke&&(0,V.Y)("div",{className:"classImFormInputRow",css:[w.lp,P,""]},(0,V.Y)(q.CheckboxLabelNestedControlled,{imFormCheckLabelCustom:R.Dq,imFormCheckTextCustom:R.es,idName:`formSdEnqTerms-${xe}`,isRequired:Ye,checkValue:null==Le?void 0:Le.terms,handleChange:De,checkValueKey:"terms"},(0,V.Y)(L.CheckboxTermsPrivacyLabelContent,null))),Ie&&Ce&&(0,V.Y)("div",{css:R.H8},(0,V.Y)(l.$,{disallowedElements:["p","div"],unwrapDisallowed:!0},Ce)),(0,V.Y)("div",{className:"classImFormInputRow",css:[w.lp,P,""]}
1,(0,V.Y)(F.$,{type:"submit","aria-label":"Submit form",buttonLinkCustom:oe?[I.B,I.q]:w.tZ,disabled:!Oe||ze||!1===We},"Submit")),{}.GATSBY_GOOGLE_RECAPTCHA_V3_SITE_KEY&&(0,V.Y)("div",{className:"classImFormInputRow",css:w.lp},(0,V.Y)(j.t,{fsCaptchaDisclaimerCustom:w.mc}))))),ce&&t&&(0,V.Y)(G.C,{formShortName:he,getFormData:Me,closeMessage:Ve}),(0,V.Y)(Y.a,{modalClassName:"classModalWrapperMessage",modalShowed:ce&&oe,closeModal:Ve},(0,V.Y)(G.C,{formShortName:he,getFormData:Me,closeMessage:Ve})));var Be}}}]);

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.