[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: 9821.js
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[9821],{4538:(e,t,o)=>{o.d(t,{A:()=>m});var r=o(9726),n={class:"db-breadcrumb"},a={class:"db-breadcrumb-list"},l={key:0,class:"db-breadcrumb-item"},c={class:"db-breadcrumb-item"},i={key:0},s={key:1};const d={name:"BreadcrumbComponent",data:function(){return{breadcrumbs:[]}},computed:{authDefaultPermission:function(){return this.$store.getters.authDefaultPermission}},watch:{$route:function(){this.route()}},created:function(){this.route()},methods:{route:function(){var e,t=[],o=this.$route.matched;if(o.length>0)for(e=0;e<o.length;e++)o[e].meta.breadcrumb&&(t[e]=o[e]);this.breadcrumbs=t}}};const m=(0,o(6262).A)(d,[["render",function(e,t,o,d,m,u){var p=(0,r.resolveComponent)("router-link");return(0,r.openBlock)(),(0,r.createElementBlock)("div",n,[(0,r.createElementVNode)("ul",a,[Object.keys(u.authDefaultPermission).length>0?((0,r.openBlock)(),(0,r.createElementBlock)("li",l,[(0,r.createVNode)(p,{class:"db-breadcrumb-link",to:"/admin/"+u.authDefaultPermission.url},{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.$t("menu."+u.authDefaultPermission.name)),1)]}),_:1},8,["to"])])):(0,r.createCommentVNode)("",!0),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(m.breadcrumbs,function(t,o){return(0,r.openBlock)(),(0,r.createElementBlock)("li",c,[o!==Object.keys(m.breadcrumbs).length-1?((0,r.openBlock)(),(0,r.createElementBlock)("span",i,[(0,r.createVNode)(p,{class:"db-breadcrumb-link",to:t.path},{default:(0,r.withCtx)(function(){return[(0,r.createTextVNode)((0,r.toDisplayString)(e.$t("menu."+t.meta.breadcrumb)),1)]}),_:2},1032,["to"])])):((0,r.openBlock)(),(0,r.createElementBlock)("span",s,(0,r.toDisplayString)(e.$t("menu."+t.meta.breadcrumb)),1))])}),256))])])}]])},9821:(e,t,o)=>{o.r(t),o.d(t,{default:()=>T});var r=o(9726),n={class:"col-12"},a={class:"col-12"},l={class:"db-card"},c={class:"db-card-header"},i={class:"db-card-title"},s={class:"db-card-body"},d={class:"form-row"},m={class:"form-col-12 sm:form-col-6"},u={for:"name",class:"db-field-title required"},p={key:0,class:"db-field-alert"},f={class:"form-col-12 sm:form-col-6"},h={for:"email",class:"db-field-title required"},b={key:0,class:"db-field-alert"},g={class:"form-col-12 sm:form-col-6"},v={for:"phone",class:"db-field-title required"},y={class:"w-fit flex-shrink-0 dropdown-group"},N={type:"button",class:"flex items-center gap-1 dropdown-btn"},V={class:"whitespace-nowrap flex-shrink-0 text-xs"},k={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"},E=["onClick"],C={class:"whitespace-nowrap text-xs"},w={key:0,class:"db-field-alert"},x={class:"form-col-12"},B={class:"flex flex-wrap gap-3"},A={type:"submit",class:"db-btn py-2 text-white bg-primary"};var D=o(4538),_=o(5475),$=o(9856),S=o(8655);const P={name:"ProfileEditProfileComponent",components:{BreadcrumbComponent:D.A,LoadingComponent:_.A},data:function(){return{loading:{isActive:!1},form:{name:"",email:"",phone:"",country_code:""},flag:"",calling_code:"",errors:{}}},mounted:function(){var e=this;try{this.loading.isActive=!0;var t=this.$store.getters.authInfo;this.$store.dispatch("countryCode/lists"),this.form={name:t.name,email:t.email,phone:t.phone,country_code:t.country_code},null!==t.country_code&&this.$store.dispatch("countryCode/callingCode",t.country_code).then(function(t){e.flag=t.data.data.flag_emoji,e.loading.isActive=!1}).catch(function(t){e.loading.isActive=!1}),this.$store.dispatch("company/lists").then(function(o){e.$store.dispatch("countryCode/show",o.data.data.company_country_code).then(function(o){null===t.country_code&&(e.flag=o.data.data.flag_emoji,e.form.country_code=o.data.data.calling_code)}).catch(function(t){e.loading.isActive=!1})}).catch(function(t){e.loading.isActive=!1}),this.loading.isActive=!1}catch(e){this.loading.isActive=!1,$.A.error(e)}},computed:{countryCodes:function(){return this.$store.getters["countryCode/lists"]}},methods:{phoneNumber:function(e){return S.A.phoneNumber(e)},change:function(e){this.flag=e.flag_emoji,this.form.country_code=e.calling_code},save:function(){var e=this;try{this.loading.isActive=!0,this.$store.dispatch("frontendEditProfile/updateProfile",this.form).then(function(t){e.$store.dispatch("updateAuthInfo",t.data.data).then(function(t){e.loading.isActive=!1,$.A.success(e.$t("message.profile_update")),e.errors={}}).catch(function(t){e.loading.isActive=!1,$.A.error(t)})}).catch(function(t){e.loading.isActive=!1,e.errors=t.response.data.errors})}catch(e){this.loading.isActive=!1,$.A.error(e)}}}};const T=(0,o(6262).A)(P,[["render",function(e,t,o,D,_,$){var S=(0,r.resolveComponent)("BreadcrumbComponent"),P=(0,r.resolveComponent)("LoadingComponent");return(0,r.openBlock)(),(0,r.createElementBlock)(r.Fragment,null,[(0,r.createElementVNode)("div",n,[(0,r.createVNode)(S)]),(0,r.createVNode)(P,{props:_.loading},null,8,["props"]),(0,r.createElementVNode)("div",a,[(0,r.createElementVNode)("div",l,[(0,r.createElementVNode)("div",c,[(0,r.createElementVNode)("h3",i,(0,r.toDisplayString)(e.$t("button.edit_profile")),1)]),(0,r.createElementVNode)("div",s,[(0,r.createElementVNode)("form",{onSubmit:t[4]||(t[4]=(0,r.withModifiers)(function(){return $.save&&$.save.apply($,arguments)},["prevent"])),class:"w-full d-block"},[(0,r.createElementVNode)("div",d,[(0,r.createElementVNode)("div",m,[(0,r.createElementVNode)("label",u,(0,r.toDisplayString)(e.$t("label.name")),1),(0,r.withDirectives)((0,r.createElementVNode)("input",{type:"text",id:"name",class:(0,r.normalizeClass)(["db-field-control",_.errors.name?"invalid":""]),"onUpdate:modelValue":t[0]||(t[0]=function(e){return _.form.name=e})},null,2),[[r.vModelText,_.form.name]]),_.errors.name?((0,r.openBlock)(),(0,r.createElementBlock)("small",p,(0,r.toDisplayString)(_.errors.name[0]),1)):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",f,[(0,r.createElementVNode)("label",h,(0,r.toDisplayString)(e.$t("label.email")),1),(0,r.withDirectives)((0,r.createElementVNode)("input",{type:"text",id:"email",class:(0,r.normalizeClass)(["db-field-control",_.errors.email?"invalid":""]),"onUpdate:modelValue":t[1]||(t[1]=function(e){return _.form.email=e})},null,2),[[r.vModelText,_.form.email]]),_.errors.email?((0,r.openBlock)(),(0,r.createElementBlock)("small",b,(0,r.toDisplayString)(_.errors.email[0]),1)):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",g,[(0,r.createElementVNode)("label",v,(0,r.toDisplayString)(e.$t("label.phone")),1),(0,r.createElementVNode)("div",{class:(0,r.normalizeClass)([_.errors.phone?"invalid":"","db-field-control flex items-center"])},[(0,r.createElementVNode)("div",y,[(0,r.createElementVNode)("button",N,[(0,r.createTextVNode)((0,r.toDisplayString)(_.flag)+" ",1),(0,r.createElementVNode)("span",V,(0,r.toDisplayString)(_.form.country_code),1),t[5]||(t[5]=(0,r.createElementVNode)("i",{class:"fa-solid fa-caret-down text-xs"},null,-1))]),(0,r.createElementVNode)("ul",k,[((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 $.change(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",C,(0,r.toDisplayString)(e.calling_code),1)],8,E)}),256))])]),(0,r.withDirectives)((0,r.createElementVNode)("input",{"onUpdate:modelValue":t[2]||(t[2]=function(e){return _.form.phone=e}),onKeypress:t[3]||(t[3]=function(e){return $.phoneNumber(e)}),class:(0,r.normalizeClass)([_.errors.phone?"invalid":"","pl-2 text-sm w-full h-full"]),type:"text",id:"phone"},null,34),[[r.vModelText,_.form.phone]])],2),_.errors.phone?((0,r.openBlock)(),(0,r.createElementBlock)("small",w,(0,r.toDisplayString)(_.errors.phone[0]),1)):(0,r.createCommentVNode)("",!0)]),(0,r.createElementVNode)("div",x,[(0,r.createElementVNode)("div",B,[(0,r.createElementVNode)("button",A,[t[6]||(t[6]=(0,r.createElementVNode)("i",{class:"lab lab-fill-save"},null,-1)),(0,r.createElementVNode)("span",null,(0,r.toDisplayString)(e.$t("button.save")),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