PageSourceSearch

https://hgshydro.com/_nuxt/index.4a214c65.js

js hgshydro.com collected 2026-10-07 00:07:09 UTC 10,240 bytes, 1 lines download raw bytes

1import{_ as ue,r as a,h as K,k as de,i as _e,o as u,c as d,m as t,n as T,l as e,b as D,w as Q,z as W,t as L,p as H,v as l,x as _,G as i,B as pe,F as fe,C as me,j as he,A as ve,y as ye,I as be,J as ge,f as xe}from"./entry.2a200da1.js";import{_ as we}from"./nuxt-img.fdc0158a.js";import{u as Ce}from"./useGoogleRecaptcha.e616dc77.js";import{u as Ue}from"./useGlobalState.05a055e7.js";import{u as Se}from"./useUtils.20c23d94.js";import{u as X}from"./fetch.68511ff7.js";import{c as ke}from"./country.6d26cbbe.js";import{S as r}from"./sweetalert2.all.22b8585d.js";import{_ as Pe}from"./vue-client-recaptcha.es.ab91d15b.js";import"./auth.a5145182.js";import"./asyncData.f15ae83d.js";const p=I=>(be("data-v-5e8c45d4"),I=I(),ge(),I),Ne={key:0,class:"h-100vh"},Ve=xe('<div class="top_banner placeholder-glow mb-5" data-v-5e8c45d4><span class="placeholder" style="height:300px;width:100%;" data-v-5e8c45d4></span></div><div data-v-5e8c45d4><div class="placeholder-glow d-flex justify-content-center mb-3" data-v-5e8c45d4><span class="placeholder" style="height:130px;width:50%;" data-v-5e8c45d4></span></div><form class="placeholder-glow d-flex justify-content-center mb-5" data-v-5e8c45d4><span class="placeholder" style="height:600px;width:40%;" data-v-5e8c45d4></span></form></div>',2),Te=[Ve],Le={key:1},Ie={class:"top_banner"},Re={class:"opacity-mask d-flex align-items-center","data-opacity-mask":"rgba(0, 0, 0, 0.3)"},Fe={class:"container"},Ee={class:"breadcrumbs"},qe={key:0,class:"sign-up__header"},Me={class:"sign-up__form form"},ze={class:"form__row form__row--two"},De={class:"input form__inline-input"},Ge={class:"input__container"},Be=p(()=>e("label",{class:"input__label",for:"first-name"}," First Name ",-1)),He={class:"input form__inline-input"},je={class:"input__container"},Ae=p(()=>e("label",{class:"input__label",for:"last-name"},"Last Name",-1)),Oe={class:"form__row form__row--two"},Ze={class:"input form__inline-input"},Ye={class:"input__container"},$e=p(()=>e("label",{class:"input__label",for:"email"},"Email",-1)),Je={class:"input form__inline-input"},Ke={class:"input__container"},Qe=p(()=>e("label",{class:"input__label",for:"Phone"},"Phone",-1)),We={class:"form__row form__row--two"},Xe={class:"input form__inline-input"},et={class:"input__container"},tt=p(()=>e("label",{class:"input__label",for:"State"},"State",-1)),st={class:"input form__inline-input"},ot={class:"input__container"},at=p(()=>e("label",{class:"input__label",for:"ZipCode"},"Zip Code",-1)),nt={class:"form__row form__row--two"},lt={class:"input form__inline-input"},it={class:"input__container"},rt=p(()=>e("option",{style:{display:"none"},selected:"",value:""}," Select Country ",-1)),ct=["value"],ut={class:"input form__inline-input"},dt={class:"input__container"},_t=p(()=>e("label",{class:"input__label",for:"City"},"City",-1)),pt={class:"form__row"},ft={class:"input"},mt={class:"input__container"},ht=p(()=>e("label",{class:"input__label",for:"franchiseName"},"Franchise Name",-1)),vt={class:"form__row"},yt={class:"input"},bt={class:"input__container",style:{height:"120px"}},gt={class:"form__row"},xt={class:"sample-captcha"},wt={key:0,class:"text-success mt-2"},Ct=p(()=>e("strong",null,"Captcha Verified!",-1)),Ut=[Ct],St={key:1,class:"mt-2",style:{color:"red"}},kt={class:"form__row"},Pt={class:"component component--primary form__button"},Nt=["disabled"],Vt={__name:"index",async setup(I){var O,Z,Y,$;let f,R;const{executeRecaptcha:ee}=Ce(),{state:c}=Ue(),{scrollToTop:te,getPageTitles:Tt}=Se(),h=he(),se=h.public.imageURL,F=a(null),j=ke,v=a(""),P=a({}),y=a(""),b=a(""),g=a(""),x=a(""),w=a(""),C=a(""),U=a(""),S=a(""),N=a(""),E=a(!1),oe=a(null);a("");const k=a([]),G=a(!0),q=a(!1),{data:A,error:Lt}=([f,R]=K(()=>X(h.public.serverURL+h.public.api.subscribe.franchiseCMS,"$hAPQyfazIe")),f=await f,R(),f);A.value&&(k.value=A.value.data[0],G.value=!1);const{data:ae,error:It}=([f,R]=K(()=>X(h.public.serverURL+h.public.api.pageTitleCMS.pageTitleCMSURL,{transform:m=>m.data[0]},"$6GO8xELjPL")),f=await f,R(),f);P.value=ae.value,de({title:(O=P.value)==null?void 0:O.franchisePageTitle,meta:[{name:"title",content:(Z=P.value)==null?void 0:Z.quotationPageTitle},{name:"keywords",content:(Y=P.value)==null?void 0:Y.franchisePageMetaKeyword},{name:"description",content:($=P.value)==null?void 0:$.franchisePageMetaDescription},{name:"author",content:"HGSHYDRO"},{name:"publisher",content:"HGSHYDRO"},{name:"robots",content:"index, follow"}]}),_e(async()=>{te(),G.value=!1});const ne=m=>{oe.value=m},le=m=>{m==!0?E.value=!0:E.value=!1},ie=()=>y.value?b.value?g.value?x.value?w.value?U.value?C.value?S.value?v.value?!0:(r.fire({icon:"error",text:"Please enter franchise name"}),!1):(r.fire({icon:"error",text:"Please enter country"}),!1):(r.fire({icon:"error",text:"Please enter city"}),!1):(r.fire({icon:"error",text:"Please enter zip code"}),!1):(r.fire({icon:"error",text:"Please enter state"}),!1):(r.fire({icon:"error",text:"Please enter phone"}),!1):(r.fire({icon:"error",text:"Please enter email"}),!1):(r.fire({icon:"error",text:"Please enter lastname"}),!1):(r.fire({icon:"error",text:"Please enter firstname"}),!1),re=async()=>{var s,V,M;const{token:m}=await ee("submit");
1if(ie()){c.isLoading=!0,q.value=!0;const z={method:"POST",data:{franchiseName:v.value,firstName:y.value,lastName:b.value,email:g.value,phone:x.value,state:w.value,zipCode:U.value,city:C.value,country:((s=S.value)==null?void 0:s.countryCode)??null,notes:N.value,token:m},url:h.public.serverURL+h.public.api.subscribe.franchiseAPI};try{const n=await ve(z);c.isLoading=!1,console.log("response",n.status),(n==null?void 0:n.status)===201&&(y.value="",b.value="",g.value="",x.value="",w.value="",C.value="",U.value="",S.value="",N.value="",v.value="",r.fire({icon:"success",text:"Your franchise has been created."})),q.value=!1}catch(n){console.log(n),q.value=!1,n&&(c.isLoading=!1,r.fire({icon:"error",text:((M=(V=n==null?void 0:n.response)==null?void 0:V.data)==null?void 0:M.message)??"Email Server Error! Please Check Email Server!"}))}}};return(m,s)=>{var B,z,n,J;const V=ye,M=we;return u(),d("div",null,[t(c)&&((z=(B=t(c))==null?void 0:B.componentUi)!=null&&z.franchiseComponentUI)?(u(),d("main",{key:0,style:T({"background-color":(J=(n=t(c))==null?void 0:n.componentUi)==null?void 0:J.franchiseComponentUI.pageBackgroun
1dColor})},[t(G)?(u(),d("div",Ne,Te)):(u(),d("div",Le,[e("div",Ie,[e("div",Re,[e("div",Fe,[e("div",Ee,[e("ul",null,[e("li",null,[D(V,{to:"/"},{default:Q(()=>[W("Home")]),_:1})]),e("li",null,[D(V,{to:"/franchise"},{default:Q(()=>[W("Franchise")]),_:1})])])]),e("h1",{style:T({color:t(c).componentUi.franchiseComponentUI.headerTitleFontColor})},L(t(k).title),5)])]),D(M,{src:t(se)+"franchise/"+t(k).image,class:"img-fluid",alt:""},null,8,["src"])]),e("div",{class:"sign-up__content",style:T({"background-color":t(c).componentUi.franchiseComponentUI.pageBackgroundColor})},[t(k)?(u(),d("header",qe,[e("h2",{class:"sign-up__title",style:T({color:t(c).componentUi.franchiseComponentUI.formTitleFontColor,"font-size":"2em","font-weight":"700",textTransform:"uppercase"})},L(t(k).formTitle),5),e("p",{class:"sign-up__descr",style:T({color:t(c).componentUi.franchiseComponentUI.formSubTitleFontColor})},L(t(k).formSubTitle),5)])):H("",!0),e("form",Me,[e("div",ze,[e("div",De,[e("div",Ge,[l(e("input",{class:"input__field fs-16",id:"first-name","onUpdate:modelValue":s[0]||(s[0]=o=>i(y)?y.value=o:null),placeholder:"First Name *",required:"",type:"text"},null,512),[[_,t(y)]]),Be])]),e("div",He,[e("div",je,[l(e("input",{class:"input__field fs-16",id:"last-name",placeholder:"Last Name *","onUpdate:modelValue":s[1]||(s[1]=o=>i(b)?b.value=o:null),required:"",type:"text"},null,512),[[_,t(b)]]),Ae])])]),e("div",Oe,[e("div",Ze,[e("div",Ye,[l(e("input",{class:"input__field fs-16",id:"email",placeholder:"Email *","onUpdate:modelValue":s[2]||(s[2]=o=>i(g)?g.value=o:null),required:"",type:"text"},null,512),[[_,t(g)]]),$e])]),e("div",Je,[e("div",Ke,[l(e("input",{class:"input__field fs-16",id:"Phone",placeholder:"Phone * ","onUpdate:modelValue":s[3]||(s[3]=o=>i(x)?x.value=o:null),required:"",type:"text"},null,512),[[_,t(x)]]),Qe])])]),e("div",We,[e("div",Xe,[e("div",et,[l(e("input",{class:"input__field fs-16",id:"State",placeholder:"State *","onUpdate:modelValue":s[4]||(s[4]=o=>i(w)?w.value=o:null),required:"",type:"text"},null,512),[[_,t(w)]]),tt])]),e("div",st,[e("div",ot,[l(e("input",{class:"input__field fs-16",id:"ZipCode",placeholder:"Zip Code * ","onUpdate:modelValue":s[5]||(s[5]=o=>i(U)?U.value=o:null),required:"",type:"text"},null,512),[[_,t(U)]]),at])])]),e("div",nt,[e("div",lt,[e("div",it,[t(j).length>0?l((u(),d("select",{key:0,class:"form-control form-select","onUpdate:modelValue":s[6]||(s[6]=o=>i(S)?S.value=o:null),name:"countryName"},[rt,(u(!0),d(fe,null,me(t(j),(o,ce)=>(u(),d("option",{key:ce,value:o},L(o.countryNameEn),9,ct))),128))],512)),[[pe,t(S)]]):H("",!0)])]),e("div",ut,[e("div",dt,[l(e("input",{class:"input__field fs-16",id:"City",placeholder:"City *","onUpdate:modelValue":s[7]||(s[7]=o=>i(C)?C.value=o:null),required:"",type:"text"},null,512),[[_,t(C)]]),_t])])]),e("div",pt,[e("div",ft,[e("div",mt,[l(e("input",{class:"input__field fs-16",id:"franchiseName",placeholder:"Franchise Name*","onUpdate:modelValue":s[8]||(s[8]=o=>i(v)?v.value=o:null),required:"",type:"text"},null,512),[[_,t(v)]]),ht])])]),e("div",vt,[e("div",yt,[e("div",bt,[l(e("textarea",{"onUpdate:modelValue":s[9]||(s[9]=o=>i(N)?N.value=o:null),style:{height:"115px",background:"transparent","bottom-border-width":"2px","border-block-width":"2px","border-color":"#434176"},placeholder:"Write notes",class:"fs-16"},null,512),[[_,t(N)]])])])]),e("div",gt,[e("div",xt,[D(t(Pe),{value:t(F),onGetCode:ne,onIsValid:le},null,8,["value"]),l(e("input",{type:"text",class:"input__field mt-2 fs-16","onUpdate:modelValue":s[10]||(s[10]=o=>i(F)?F.value=o:null),placeholder:"Enter captcha code*"},null,512),[[_,t(F)]]),t(E)?(u(),d("p",wt,Ut)):(u(),d("p",St," Please verify captcha! "))])]),e("div",kt,[e("div",Pt,[e("button",{class:"btn btn--regular",type:"button",onClick:re,disabled:!t(E),id:"sign-up-button",tabindex:"0"},L(t(q)?"Processing...":"Submit"),9,Nt)])])])],4)]))],4)):H("",!0)])}}},At=ue(Vt,[["__scopeId","data-v-5e8c45d4"]]);export{At 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.