[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: 8963.js
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[8963],{8963:(e,t,o)=>{o.r(t),o.d(t,{default:()=>q});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"},l=["src"],a={class:"text-center mb-8"},i={class:"capitalize text-2xl mb-2 font-bold text-primary"},s={class:"font-medium"},c={key:0,class:"bg-red-100 border border-red-400 text-red-700 px-4 py-3 mb-5 rounded relative",role:"alert"},d={class:"block sm:inline"},m={class:"flex items-center justify-between"},p=["for"],u={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"],x={class:"whitespace-nowrap text-xs"},y={key:2,class:"db-field-alert"},w={key:3},k={key:0,class:"db-field-alert"},V={key:1,class:"db-field-alert"},v={class:"mb-3"},E={for:"formPassword",class:"text-sm font-medium capitalize mb-1 field-title required"},N={key:0,class:"db-field-alert"},C={class:"flex items-center justify-between mb-6"},_={class:"flex items-center gap-2"},D={for:"formRemember",class:"text-sm -mb-0.5 capitalize cursor-pointer whitespace-nowrap"},B={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"},S={class:"font-medium text-text"},A={key:0,class:"mt-6"},z={class:"mb-6 text-center text-lg font-medium text-heading"},L={class:"grid grid-cols-2 gap-3"};var M=o(934),T=o(1811),P=o(9856),j=o(8655),R=o(8536);const U={name:"LoginComponent",components:{LoadingComponent:T.A},data:function(){return{loading:{isActive:!1},form:{email:"",phone:"",country_code:"",password:""},flag:"",errors:{},permissions:{},firstMenu:null,demo:R.A.DEMO,APP_URL:R.A.API_URL,toggleValue:!1,inputLabel:this.$t("label.email"),inputButton:this.$t("label.use_phone_instead")}},computed:{carts:function(){return this.$store.getters["frontendCart/lists"]},countryCodes:function(){return this.$store.getters["frontendCountryCode/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 j.A.phoneNumber(e)},login:function(){var e=this;try{this.loading.isActive=!0,this.$store.dispatch("login",this.form).then(function(t){e.loading.isActive=!1,P.A.success(t.data.message),e.$store.dispatch("frontendWishlist/lists").then().catch(),e.carts.length>0?M.A.push({name:"frontend.checkout"}):M.A.push({name:"frontend.home"}),setTimeout(function(){j.A.recursiveRouter(M.A.options.routes,e.$store.getters.authPermission)},1e3)}).catch(function(t){e.loading.isActive=!1,e.errors=t.response.data.errors})}catch(e){this.loading.isActive=!1}},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},close:function(){this.errors={}},setupCredit:function(e){"admin"===e?(this.form.email="admin@example.com",this.form.password="123456"):"customer"===e?(this.form.email="customer@example.com",this.form.password="123456"):"manager"===e?(this.form.email="manager@example.com",this.form.password="123456"):"posOperator"===e&&(this.form.email="posoperator@example.com",this.form.password="123456")}}};const q=(0,o(6262).A)(U,[["render",function(e,t,o,M,T,P){var j=(0,r.resolveComponent)("LoadingComponent"),R=(0,r.resolveComponent)("router-link");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)(j,{props:T.loading},null,8,["props"]),(0,r.createElementVNode)("div",n,[(0,r.createElementVNode)("img",{src:T.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"},null,8,l),(0,r.createElementVNode)("form",{class:"w-full p-6",onSubmit:t[10]||(t[10]=(0,r.withModifiers)(function(){return P.login&&P.login.apply(P,arguments)},["prevent"]))},[(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("h3",i,(0,r.toDisplayString)(e.$t("label.sign_in")),1),(0,r.createElementVNode)("p",s,(0,r.toDisplayString)(e.$t("message.continue_shopping")),1),T.errors.validation?((0,r.openBlock)(),(0,r.createElementBlock)("div",c,[(0,r.createElementVNode)("span",d,(0,r.toDisplayString)(T.errors.validation),1),(0,r.createElementVNode)("span",{class:"absolute top-0 bottom-0 right-0 px-4 py-3 cursor-pointer",onClick:t[0]||(t[0]=function(){return P.close&&P.close.apply(P,arguments)})},t[11]||(t[11]=[(0,r.createElementVNode)("i",{class:"lab lab-close-circle-line margin-top-5-px"},null,-1)]))])):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)(T.toggleValue?"":"mb-6")},[(0,r.createElementVNode)("div",m,[(0,r.createElementVNode)("label",{for:T.toggleValue?"phone":"formEmail",class:"text-sm font-medium capitalize mb-1 field-title required"},(0,r.toDisplayString)(T.inputLabel),9,p),(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 P.handleField()})},(0,r.toDisplayString)(T.inputButton),1)]),T.toggleValue?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:(0,r.normalizeClass)([T.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",u,[(0,r.createElementVNode)("button",f,[(0,r.createTextVNode)((0,r.toDisplayString)(T.flag)+" ",1),(0,r.createElementVNode)("span",h,(0,r.toDisplayString)(T.form.country_code),1),t[12]||(t[12]=(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)(P.countryCodes,function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{onClick:function(t){return P.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",x,(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 T.form.phone=e}),onKeypress:t[3]||(t[3]=function(e){return P.phoneNumber(e)}),class:(0,r.normalizeClass)([T.errors.phone?"invalid":"","pl-2 text-sm w-full h-full"]),type:"text",id:"phone"},null,34),[[r.vModelText,T.form.phone]])],2)):(0,r.createCommentVNode)("",!0),T.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 T.form.email=e}),class:(0,r.normalizeClass)([T.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:"text"},null,2)),[[r.vModelText,T.form.email]]),T.errors.email_or_phone?((0,r.openBlock)(),(0,r.createElementBlock)("small",y,(0,r.toDisplayString)(T.errors.email_or_phone),1)):((0,r.openBlock)(),(0,r.createElementBlock)("span",w,[T.errors.phone&&T.toggleValue?((0,r.openBlock)(),(0,r.createElementBlock)("small",k,(0,r.toDisplayString)(T.errors.phone[0]),1)):(0,r.createCommentVNode)("",!0),T.errors.email&&!T.toggleValue?((0,r.openBlock)(),(0,r.createElementBlock)("small",V,(0,r.toDisplayString)(T.errors.email[0]),1)):(0,r.createCommentVNode)("",!0)]))],2),(0,r.createElementVNode)("div",v,[(0,r.createElementVNode)("label",E,(0,r.toDisplayString)(e.$t("label.password")),1),(0,r.withDirectives)((0,r.createElementVNode)("input",{"onUpdate:modelValue":t[5]||(t[5]=function(e){return T.form.password=e}),class:(0,r.normalizeClass)([T.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,T.form.password]]),T.errors.password?((0,r.openBlock)(),(0,r.createElementBlock)("small",N,(0,r.toDisplayString)(T.errors.password[0]),1)):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",C,[(0,r.createElementVNode)("div",_,[t[13]||(t[13]=(0,r.createElementVNode)("input",{type:"checkbox",id:"formRemember",class:"custom-checkbox"},null,-1)),(0,r.createElementVNode)("label",D,(0,r.toDisplayString)(e.$t("label.remember_me")),1)]),(0,r.createVNode)(R,{to:{name:"auth.forgotPassword"},class:"field-label text-primary"},{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.$t("label.forgot_password")),1)]}),_:1})]),(0,r.createElementVNode)("button",B,(0,r.toDisplayString)(e.$t("label.sign_in")),1),(0,r.createElementVNode)("div",$,[(0,r.createElementVNode)("span",S,(0,r.toDisplayString)(e.$t("message.dont_have_account")),1),(0,r.createVNode)(R,{class:"capitalize font-bold text-primary",to:{name:"auth.signup"}},{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.$t("label.sign_up")),1)]}),_:1})]),"true"===T.demo||"TRUE"===T.demo||"True"===T.demo||"1"===T.demo||1===T.demo?((0,r.openBlock)(),(0,r.createElementBlock)("div",A,[(0,r.createElementVNode)("h2",z,(0,r.toDisplayString)(e.$t("message.for_quick_demo")),1),(0,r.createElementVNode)("nav",L,[(0,r.createElementVNode)("button",{type:"button",onClick:t[6]||(t[6]=(0,r.withModifiers)(function(e){return P.setupCredit("admin")},["prevent"])),class:"click-to-prop w-full h-10 leading-10 rounded-lg text-center text-sm capitalize text-white bg-orange-500",id:"adminClick"},(0,r.toDisplayString)(e.$t("label.admin")),1),(0,r.createElementVNode)("button",{type:"button",onClick:t[7]||(t[7]=(0,r.withModifiers)(function(e){return P.setupCredit("customer")},["prevent"])),class:"click-to-prop w-full h-10 leading-10 rounded-lg text-center text-sm capitalize text-white bg-emerald-500",id:"customerClick"},(0,r.toDisplayString)(e.$t("label.customer")),1),(0,r.createElementVNode)("button",{type:"button",onClick:t[8]||(t[8]=(0,r.withModifiers)(function(e){return P.setupCredit("manager")},["prevent"])),class:"click-to-prop w-full h-10 leading-10 rounded-lg text-center text-sm capitalize text-white bg-sky-600",id:"branchManagerClick"},(0,r.toDisplayString)(e.$t("label.manager")),1),(0,r.createElementVNode)("button",{type:"button",onClick:t[9]||(t[9]=(0,r.withModifiers)(function(e){return P.setupCredit("posOperator")},["prevent"])),class:"click-to-prop w-full h-10 leading-10 rounded-lg text-center text-sm capitalize text-white bg-purple-500",id:"posOperatorClick"},(0,r.toDisplayString)(e.$t("label.pos_operator")),1)])])):(0,r.createCommentVNode)("",!0)],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