[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: 337.js
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[337],{337:(e,t,o)=>{o.r(t),o.d(t,{default:()=>S});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 relative mb-8"},i={class:"capitalize text-2xl mb-2 font-bold text-primary"},s={key:0,class:"bg-red-100 border border-red-400 text-red-700 px-4 py-3 mb-5 rounded relative",role:"alert"},c={class:"block sm:inline"},d={class:"mb-6"},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"},x={key:2,class:"db-field-alert"},v={key:3},w={key:0,class:"db-field-alert"},V={key:1,class:"db-field-alert"},k={type:"submit",class:"font-bold text-center w-full h-12 leading-12 rounded-full bg-primary text-white capitalize mb-6"},E={class:"text-center"};o(934);var _=o(6719),N=o(1811),C=o(9856),B=o(8655),A=o(8536);const D={name:"ForgotPasswordComponent",components:{LoadingComponent:N.A},data:function(){return{loading:{isActive:!1},form:{email:"",phone:"",country_code:"",password:""},flag:"",errors:{},permissions:{},firstMenu:null,demo:A.A.DEMO,APP_URL:A.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"]},setting:function(){return this.$store.getters["frontendSetting/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 B.A.phoneNumber(e)},save:function(){var e=this;try{this.loading.isActive=!0,this.$store.dispatch("forgotPassword",this.form).then(function(t){e.loading.isActive=!1,(e.setting.site_phone_verification!==_.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!==_.A.YES||""===e.form.email||"true"===e.demo&&"TRUE"===e.demo&&"True"===e.demo&&"1"===e.demo&&1===e.demo)?e.$router.push({name:"auth.resetPassword"}):(C.A.success(t.data.message,"bottom-center"),e.$router.push({name:"auth.forgotPasswordVerify"}))}).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={}}}};const S=(0,o(6262).A)(D,[["render",function(e,t,o,_,N,C){var B=(0,r.resolveComponent)("LoadingComponent"),A=(0,r.resolveComponent)("router-link");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createVNode)(B,{props:N.loading},null,8,["props"]),(0,r.createElementVNode)("div",n,[(0,r.createElementVNode)("img",{src:N.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[5]||(t[5]=(0,r.withModifiers)(function(){return C.save&&C.save.apply(C,arguments)},["prevent"]))},[(0,r.createElementVNode)("div",a,[(0,r.createVNode)(A,{to:{name:"auth.login"},class:"absolute top-1/2 ltr:left-0 rtl:right-0 -translate-y-1/2"},{default:(0,r.withCtx)(function(){return t[6]||(t[6]=[(0,r.createElementVNode)("i",{class:"lab-line-long-arrow-left text-2xl !font-semibold text-primary"},null,-1)])}),_:1,__:[6]}),(0,r.createElementVNode)("h3",i,(0,r.toDisplayString)(e.$t("label.forgot_password")),1),N.errors.validation?((0,r.openBlock)(),(0,r.createElementBlock)("div",s,[(0,r.createElementVNode)("span",c,(0,r.toDisplayString)(N.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 C.close&&C.close.apply(C,arguments)})},t[7]||(t[7]=[(0,r.createElementVNode)("i",{class:"lab lab-close-circle-line margin-top-5-px"},null,-1)]))])):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",d,[(0,r.createElementVNode)("div",m,[(0,r.createElementVNode)("label",{for:N.toggleValue?"phone":"formEmail",class:"text-sm font-medium capitalize mb-1 field-title required"},(0,r.toDisplayString)(N.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 C.handleField()})},(0,r.toDisplayString)(N.inputButton),1)]),N.toggleValue?((0,r.openBlock)(),(0,r.createElementBlock)("div",{key:0,class:(0,r.normalizeClass)([N.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)(N.flag)+" ",1),(0,r.createElementVNode)("span",h,(0,r.toDisplayString)(N.form.country_code),1),t[8]||(t[8]=(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)(C.countryCodes,function(e){return(0,r.openBlock)(),(0,r.createElementBlock)("li",{onClick:function(t){return C.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 N.form.phone=e}),onKeypress:t[3]||(t[3]=function(e){return C.phoneNumber(e)}),class:(0,r.normalizeClass)([N.errors.phone?"invalid":"","pl-2 text-sm w-full h-full"]),type:"text",id:"phone"},null,34),[[r.vModelText,N.form.phone]])],2)):(0,r.createCommentVNode)("",!0),N.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 N.form.email=e}),class:(0,r.normalizeClass)([N.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,N.form.email]]),N.errors.email_or_phone?((0,r.openBlock)(),(0,r.createElementBlock)("small",x,(0,r.toDisplayString)(N.errors.email_or_phone),1)):((0,r.openBlock)(),(0,r.createElementBlock)("span",v,[N.errors.phone&&N.toggleValue?((0,r.openBlock)(),(0,r.createElementBlock)("small",w,(0,r.toDisplayString)(N.errors.phone[0]),1)):(0,r.createCommentVNode)("",!0),N.errors.email&&!N.toggleValue?((0,r.openBlock)(),(0,r.createElementBlock)("small",V,(0,r.toDisplayString)(N.errors.email[0]),1)):(0,r.createCommentVNode)("",!0)]))]),(0,r.createElementVNode)("button",k,(0,r.toDisplayString)(e.$t("label.get_code")),1),(0,r.createElementVNode)("div",E,[(0,r.createVNode)(A,{to:{name:"auth.login"},class:"font-bold text-primary"},{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.$t("label.back_to_signin")),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