[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: 3597.js
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[3597],{3597:(e,t,o)=>{o.r(t),o.d(t,{default:()=>T});var r=o(9726),n={class:"w-full max-w-3xl mx-auto rounded-2xl flex overflow-hidden gap-y-6 bg-white shadow-card mb-24 !sm:mb-0"},a=["src"],i={class:"text-center mb-8"},l={class:"capitalize text-2xl mb-2 font-bold text-primary"},s={class:"mb-6"},d={for:"formName",class:"text-sm font-medium capitalize mb-1 field-title required"},c={key:0,class:"db-field-alert"},m={class:"flex items-center justify-between"},u=["for"],p={class:"w-fit flex-shrink-0 dropdown-group"},f={type:"button",class:"flex items-center gap-1 dropdown-btn"},h={class:"whitespace-nowrap flex-shrink-0 text-xs"},g={class:"p-1.5 w-24 rounded-lg shadow-xl absolute top-8 -left-4 z-10 border border-gray-200 bg-white scale-y-0 origin-top dropdown-list !h-52 !overflow-x-hidden !overflow-y-auto thin-scrolling"},b=["onClick"],y={class:"whitespace-nowrap text-xs"},v={key:2,class:"db-field-alert"},x={key:3},w={key:0,class:"db-field-alert"},V={key:1,class:"db-field-alert"},E={class:"mb-6"},k={for:"formPassword",class:"text-sm font-medium capitalize mb-1 field-title required"},N={key:0,class:"db-field-alert"},C={type:"submit",class:"font-bold text-center w-full h-12 leading-12 rounded-full bg-primary text-white capitalize mb-6"},_={class:"flex items-center justify-center gap-1.5"},A={class:"font-medium text-text"};var B=o(1811),D=o(8655),$=o(8536),S=o(6719),z=o(9856);o(934);const L={name:"LoginComponent",components:{LoadingComponent:B.A},data:function(){return{loading:{isActive:!1},form:{name:"",email:"",phone:"",country_code:"",password:""},flag:"",errors:{},demo:$.A.DEMO,APP_URL:$.A.API_URL,toggleValue:!1,inputLabel:this.$t("label.email"),inputButton:this.$t("label.use_phone_instead")}},computed:{countryCodes:function(){return this.$store.getters["frontendCountryCode/lists"]},setting:function(){return this.$store.getters["frontendSetting/lists"]},carts:function(){return this.$store.getters["frontendCart/lists"]}},mounted:function(){var e=this;this.loading.isActive=!0,this.$store.dispatch("frontendCountryCode/lists"),this.$store.dispatch("frontendSetting/lists").then(function(t){e.$store.dispatch("frontendCountryCode/show",t.data.data.company_country_code).then(function(t){e.form.country_code=t.data.data.calling_code,e.flag=t.data.data.flag_emoji,e.loading.isActive=!1}).catch(function(t){e.loading.isActive=!1})}).catch(function(t){e.loading.isActive=!1})},methods:{phoneNumber:function(e){return D.A.phoneNumber(e)},handleField:function(){this.toggleValue=!this.toggleValue,this.toggleValue?(this.form.email="",this.inputLabel=this.$t("label.phone"),this.inputButton=this.$t("label.use_email_instead")):(this.form.phone="",this.inputLabel=this.$t("label.email"),this.inputButton=this.$t("label.use_phone_instead"))},countryCodeChange:function(e){this.flag=e.flag_emoji,this.form.country_code=e.calling_code},signup:function(){var e=this;try{this.loading.isActive=!0,this.$store.dispatch("frontendSignup/signupValidation",this.form).then(function(t){e.setting.site_phone_verification!==S.A.YES||""===e.form.phone||"true"===e.demo&&"TRUE"===e.demo&&"True"===e.demo&&"1"===e.demo&&1===e.demo?e.setting.site_email_verification!==S.A.YES||""===e.form.email||"true"===e.demo&&"TRUE"===e.demo&&"True"===e.demo&&"1"===e.demo&&1===e.demo?e.$store.dispatch("frontendSignup/signup",e.form).then(function(t){e.loading.isActive=!1,e.$store.dispatch("signupLoginVerify",e.form).then(function(t){e.loading.isActive=!1,z.A.success(t.data.message,"bottom-center"),e.$store.dispatch("frontendSignup/reset"),e.$router.push({name:"frontend.home"})}).catch(function(t){e.loading.isActive=!1,e.errors=t.response.data.message}),e.$router.push({name:"frontend.home"}),e.form={name:"",email:"",phone:"",code:"",password:""},e.errors={}}).catch(function(t){e.loading.isActive=!1,e.errors=t.response.data.errors}):e.$store.dispatch("frontendSignup/otpEmail",e.form).then(function(t){e.loading.isActive=!1,z.A.success(t.data.message,"bottom-center"),e.$router.push({name:"auth.signupVerify"})}).catch(function(t){e.loading.isActive=!1,z.A.error(t.response.data.message)}):e.$store.dispatch("frontendSignup/otpPhone",e.form).then(function(t){e.loading.isActive=!1,z.A.success(t.data.message,"bottom-center"),e.$router.push({name:"auth.signupVerify"})}).catch(function(t){e.loading.isActive=!1,z.A.error(t.response.data.message)})}).catch(function(t){e.loading.isActive=!1,e.errors=t.response.data.errors})}catch(e){this.loading.isActive=!1}}}};const T=(0,o(6262).A)(L,[["render",function(e,t,o,B,D,$){var S=(0,r.resolveComponent)("LoadingComponent"),z=(0,r.resolveComponent)("router-link");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)(S,{props:D.loading},null,8,["props"]),(0,r.createElementVNode)("div",n,[(0,r.createElementVNode)("img",{src:D.APP_URL+"/images/required/auth.jpg",alt:"banners",class:"w-full hidden sm:block sm:max-w-xs md:max-w-sm flex-shrink-0",loading:"lazy"},null,8,a),(0,r.createElementVNode)("form",{class:"w-full p-6",onSubmit:t[6]||(t[6]=(0,r.withModifiers)(function(){return $.signup&&$.signup.apply($,arguments)},["prevent"]))},[(0,r.createElementVNode)("div",i,[(0,r.createElementVNode)("h3",l,(0,r.toDisplayString)(e.$t("label.sign_up")),1)]),(0,r.createElementVNode)("div",s,[(0,r.createElementVNode)("label",d,(0,r.toDisplayString)(e.$t("label.name")),1),(0,r.withDirectives)((0,r.createElementVNode)("input",{"onUpdate:modelValue":t[0]||(t[0]=function(e){return D.form.name=e}),class:(0,r.normalizeClass)([D.errors.name?"invalid":"","w-full h-12 px-4 rounded-lg text-base border border-[#D9DBE9] hover:border-primary/30 focus-within:border-primary/30 transition-all duration-500"]),id:"formName",type:"text"},null,2),[[r.vModelText,D.form.name]]),D.errors.name?((0,r.openBlock)(),(0,r.createElementBlock)("small",c,(0,r.toDisplayString)(D.errors.name[0]),1)):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(D.toggleValue?"":"mb-6")},[(0,r.createElementVNode)("div",m,[(0,r.createElementVNode)("label",{for:D.toggleValue?"phone":"formEmail",class:"text-sm font-medium capitalize mb-1 field-title required"},(0,r.toDisplayString)(D.inputLabel),9,u),(0,r.createElementVNode)("button",{type:"button",class:"text-sm font-medium capitalize mb-1 underline text-primary",onClick:t[1]||(t[1]=function(e){return $.handleField()})},(0,r.toDisplayString)(D.inputButton),1)]),D.toggleValue?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:(0,r.normalizeClass)([D.errors.phone?"invalid":"","flex items-center gap-1.5 px-4 h-12 rounded-lg border border-[#D9DBE9] hover:border-primary/30 focus-within:border-primary/30 transition-all duration-500"])},[(0,r.createElementVNode)("div",p,[(0,r.createElementVNode)("button",f,[(0,r.createTextVNode)((0,r.toDisplayString)(D.flag)+" ",1),(0,r.createElementVNode)("span",h,(0,r.toDisplayString)(D.form.country_code),1),t[7]||(t[7]=(0,r.createElementVNode)("i",{class:"fa-solid fa-caret-down text-xs"},null,-1))]),(0,r.createElementVNode)("ul",g,[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)($.countryCodes,function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{onClick:function(t){return $.countryCodeChange(e)},class:"flex items-center gap-2 p-1.5 rounded-md cursor-pointer hover:bg-gray-100"},[(0,r.createTextVNode)((0,r.toDisplayString)(e.flag_emoji)+" ",1),(0,r.createElementVNode)("span",y,(0,r.toDisplayString)(e.calling_code),1)],8,b)}),256))])]),(0,r.withDirectives)((0,r.createElementVNode)("input",{"onUpdate:modelValue":t[2]||(t[2]=function(e){return D.form.phone=e}),onKeypress:t[3]||(t[3]=function(e){return $.phoneNumber(e)}),class:(0,r.normalizeClass)([D.errors.phone?"invalid":"","pl-2 text-sm w-full h-full"]),type:"text",id:"phone"},null,34),[[r.vModelText,D.form.phone]])],2)):(0,r.createCommentVNode)("",!0),D.toggleValue?(0,r.createCommentVNode)("",!0):(0,r.withDirectives)(((0,r.openBlock)(),(0,r.createElementBlock)("input",{key:1,"onUpdate:modelValue":t[4]||(t[4]=function(e){return D.form.email=e}),class:(0,r.normalizeClass)([D.errors.email?"invalid":"","w-full h-12 px-4 rounded-lg text-base border border-[#D9DBE9] hover:border-primary/30 focus-within:border-primary/30 transition-all duration-500"]),id:"formEmail",type:"email"},null,2)),[[r.vModelText,D.form.email]]),D.errors.email_or_phone?((0,r.openBlock)(),(0,r.createElementBlock)("small",v,(0,r.toDisplayString)(D.errors.email_or_phone),1)):((0,r.openBlock)(),(0,r.createElementBlock)("span",x,[D.errors.phone&&D.toggleValue?((0,r.openBlock)(),(0,r.createElementBlock)("small",w,(0,r.toDisplayString)(D.errors.phone[0]),1)):(0,r.createCommentVNode)("",!0),D.errors.email&&!D.toggleValue?((0,r.openBlock)(),(0,r.createElementBlock)("small",V,(0,r.toDisplayString)(D.errors.email[0]),1)):(0,r.createCommentVNode)("",!0)]))],2),(0,r.createElementVNode)("div",E,[(0,r.createElementVNode)("label",k,(0,r.toDisplayString)(e.$t("label.password")),1),(0,r.withDirectives)((0,r.createElementVNode)("input",{"onUpdate:modelValue":t[5]||(t[5]=function(e){return D.form.password=e}),class:(0,r.normalizeClass)([D.errors.password?"invalid":"","w-full h-12 px-4 rounded-lg text-base border border-[#D9DBE9] hover:border-primary/30 focus-within:border-primary/30 transition-all duration-500"]),id:"formPassword",type:"password"},null,2),[[r.vModelText,D.form.password]]),D.errors.password?((0,r.openBlock)(),(0,r.createElementBlock)("small",N,(0,r.toDisplayString)(D.errors.password[0]),1)):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("button",C,(0,r.toDisplayString)(e.$t("label.sign_up")),1),(0,r.createElementVNode)("div",_,[(0,r.createElementVNode)("span",A,(0,r.toDisplayString)(e.$t("message.already_have_account")),1),(0,r.createVNode)(z,{class:"capitalize font-bold text-primary",to:{name:"auth.login"}},{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.$t("label.sign_in")),1)]}),_:1})])],32)])],64)}]])}}]);
Save Changes
Cancel / Back
Close ×
Server Info
Hostname: premium320.web-hosting.com
Server IP: 66.29.153.54
PHP Version: 8.2.29
Server Software: LiteSpeed
System: Linux premium320.web-hosting.com 4.18.0-553.50.1.lve.el8.x86_64 #1 SMP Thu Apr 17 19:10:24 UTC 2025 x86_64
HDD Total: 97.87 GB
HDD Free: 76.87 GB
Domains on IP: N/A (Requires external lookup)
System Features
Safe Mode:
Off
disable_functions:
None
allow_url_fopen:
On
allow_url_include:
Off
magic_quotes_gpc:
Off
register_globals:
Off
open_basedir:
None
cURL:
Enabled
ZipArchive:
Enabled
MySQLi:
Enabled
PDO:
Enabled
wget:
Yes
curl (cmd):
Yes
perl:
Yes
python:
Yes (py3)
gcc:
Yes
pkexec:
No
git:
Yes
User Info
Username: aoneqssk
User ID (UID): 1285
Group ID (GID): 1290
Script Owner UID: 1285
Current Dir Owner: 1285