PageSourceSearch

https://www.locksmithledger.com/_nuxt/InquiryFormBlock-tcaEJ_JZ.mjs

js locksmithledger.com collected 2026-10-02 09:57:22 UTC 4,476 bytes, 1 lines download raw bytes

1import{A as e,D as t,H as n,Ln as r,O as i,Ot as a,P as o,_ as s,it as c,k as l,kn as u,o as d,un as f}from"./vue.runtime.esm-bundler-DK-ieOMu.mjs";import{t as p}from"./_plugin-vue_export-helper-BDNMzG2s.mjs";import{f as m}from"#entry";import{t as h}from"./useFormHasErrors-DxKLpX1E.mjs";import{t as g}from"./useVueRecaptcha-C6t8A1Zv.mjs";import{t as _}from"./WebFormFieldsNew-B_4bifq3.mjs";import{t as v}from"./WebFormWrapper-BE0GOMJz.mjs";n(),f(),d();var y={props:{contentId:{type:Number,required:!0},contentType:{type:String,required:!0}},data:()=>({payload:{firstName:``,lastName:``,email:``,phone:``,company:``,jobTitle:``,country:``,postalCode:``,comments:``,recaptchaToken:``,locale:{countryCode:``,region:null,compliance:!1}},errors:{},showErrors:!1,error:null,complete:!1,loading:!1,recaptcha:null}),computed:{fieldInfo(){return{rows:[{numberOfColumns:2,fields:{firstName:{type:`text_input`,label:`First Name`,required:!0,showErrors:this.showErrors},lastName:{type:`text_input`,label:`Last Name`,required:!0,showErrors:this.showErrors},email:{type:`email_input`,label:`Email`,required:!0,showErrors:this.showErrors},phone:{type:`text_input`,label:`Phone Number`},company:{type:`text_input`,label:`Company`},jobTitle:{type:`text_input`,label:`Job Title`,required:!0,showErrors:this.showErrors}}},{fields:{postalCode:{type:`text_input`,label:`Zip/Postal Code`},locale:{type:`locale`,required:!0,alphaCodeSize:2,showErrors:this.showErrors},comments:{type:`text_input`,label:`Comments`,rows:5}}}]}},incomplete(){return!this.complete}},mounted(){this.recaptcha=g()},methods:{submitForm(){this.showErrors=h(this.errors??{})>0},update(e,t,n){this.payload[e]=t,this.errors[e]={errorObj:n}},async onSubmit(){try{if(this.loading=!0,this.showErrors)throw Error(`Please correct the issues with this form`);this.payload.recaptchaToken=await this.recaptcha(`inquiry`);let e=await this.$gql.query(`getInquiryContact`,{id:this.contentId});if(e.error)throw Error(e.message);this.payload.content=e.data,this.payload.contentId=this.contentId,this.payload.country=this.payload.locale.countryCode,this.payload.gdprOptIn=this.payload?.locale?.compliance,delete this.payload.locale;
1let t=await this.$gql.mutate(`setInquirySubmissions`,{input:this.payload});if(t.error)throw Error(t.message);this.loading=!1,this.complete=!0}catch(e){throw this.error=`Unable to submit your request.  Please refresh and try again!`,this.loading=!1,Error(String(e),{cause:e})}}}},b={class:u([`inquiry-form-wrapper`])},x={class:`inquiry-form`},S=[`value`],C=[`value`],w={key:0,class:`form-group-messages message`},T={key:0},E={key:1,class:`error`},D={key:1};function O(n,i,u,d,f,p){let h=_,g=m,y=v;return c(),e(`div`,b,[t(`div`,x,[o(y,{error:n.error,processing:n.loading,"include-frame":!1},{default:a(()=>[p.incomplete?(c(),e(`form`,{key:0,class:`form-contents`,onSubmit:i[0]||=s((...e)=>p.onSubmit&&p.onSubmit(...e),[`prevent`])},[t(`input`,{type:`hidden`,name:`contentId`,value:u.contentId},null,8,S),t(`input`,{type:`hidden`,name:`contentType`,value:u.contentType},null,8,C),o(h,{"field-info":p.fieldInfo,"field-values":n.payload,onUpdate:p.update},null,8,[`field-info`,`field-values`,`onUpdate`]),o(g,{type:`submit`,label:`Submit`,size:`large`,icon:`mdi:arrow-right`,"icon-position":`right`,disabled:n.loading,onOnClick:p.submitForm},null,8,[`disabled`,`onOnClick`]),n.loading||n.error?(c(),e(`div`,w,[n.loading?(c(),e(`div`,T,` Hold on, we're processing your submission... `)):n.error?(c(),e(`div`,E,` There was a problem with your submission: `+r(n.error),1)):l(``,!0)])):l(``,!0),i[1]||=t(`div`,{class:`row`},[t(`div`,{class:`form-group-messages`},` By clicking above, I agree to Endeavor Business Media's Terms of Service and consent to receive promotional communications from Endeavor, its affiliates, and partners per its Privacy Notice. I also understand my personal information will be shared with the sponsor of this content, who may contact me about their offerings per their privacy policy. I can unsubscribe anytime. `)],-1)],32)):(c(),e(`div`,D,` Thanks for your inquiry! We'll reach out shortly. `))]),_:1},8,[`error`,`processing`])])])}var k=Object.assign(p(y,[[`render`,O]]),{__name:`WebInquiryForm`});n();var A={__name:`InquiryFormBlock`,props:{data:{type:Object,required:!0,validator(e){return[`id`,`type`].every(t=>t in e)}}},setup(e){return(t,n)=>{let r=k;return c(),i(r,{"content-id":e.data.id,"content-type":e.data.type},null,8,[`content-id`,`content-type`])}}};export{A as default};

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.