[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: 2513.js
/*! For license information please see 2513.js.LICENSE.txt */ "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[2513],{2513:(e,t,o)=>{o.r(t),o.d(t,{default:()=>ne});var a=o(9726),n={id:"company",class:"db-card db-tab-div active"},r={class:"db-card-header"},l={class:"db-card-title"},c={class:"db-card-body"},i={class:"form-row"},s={class:"form-col-12 sm:form-col-6"},d={for:"name",class:"db-field-title required"},m={key:0,class:"db-field-alert"},p={class:"form-col-12 sm:form-col-6"},u={class:"db-field-title",for:"latitude"},y={class:"db-multiple-field"},f={key:0,class:"db-field-alert"},_={key:1,class:"db-field-alert"},b={class:"form-col-12 sm:form-col-6"},v={for:"email",class:"db-field-title required"},g={key:0,class:"db-field-alert"},h={class:"form-col-12 sm:form-col-6"},V={for:"phone",class:"db-field-title required"},N={class:"w-fit flex-shrink-0 dropdown-group"},E={type:"button",class:"flex items-center gap-1 dropdown-btn"},k={class:"whitespace-nowrap flex-shrink-0 text-xs"},w={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"},C=["onClick"],x={class:"whitespace-nowrap text-xs"},D={key:0,class:"db-field-alert"},S={class:"form-col-12 sm:form-col-6"},B={for:"website",class:"db-field-title"},z={key:0,class:"db-field-alert"},$={class:"form-col-12 sm:form-col-6"},T={for:"city",class:"db-field-title required"},A={key:0,class:"db-field-alert"},j={class:"form-col-12 sm:form-col-6"},O={for:"company_state",class:"db-field-title required"},M={key:0,class:"db-field-alert"},U={class:"form-col-12 sm:form-col-6"},q={for:"country_code",class:"db-field-title required"},F={key:0,class:"db-field-alert"},G={class:"form-col-12 sm:form-col-6"},P={for:"company_zip_code",class:"db-field-title required"},L={key:0,class:"db-field-alert"},K={class:"form-col-12"},H={for:"address",class:"db-field-title required"},I={key:0,class:"db-field-alert"},J={class:"form-col-12"},Q={type:"submit",class:"db-btn text-white bg-primary"};var R=o(5475),W=o(9856),X=o(8655);function Y(){var e,t,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",n=o.toStringTag||"@@toStringTag";function r(o,a,n,r){var i=a&&a.prototype instanceof c?a:c,s=Object.create(i.prototype);return Z(s,"_invoke",function(o,a,n){var r,c,i,s=0,d=n||[],m=!1,p={p:0,n:0,v:e,a:u,f:u.bind(e,4),d:function(t,o){return r=t,c=0,i=e,p.n=o,l}};function u(o,a){for(c=o,i=a,t=0;!m&&s&&!n&&t<d.length;t++){var n,r=d[t],u=p.p,y=r[2];o>3?(n=y===a)&&(i=r[(c=r[4])?5:(c=3,3)],r[4]=r[5]=e):r[0]<=u&&((n=o<2&&u<r[1])?(c=0,p.v=a,p.n=r[1]):u<y&&(n=o<3||r[0]>a||a>y)&&(r[4]=o,r[5]=a,p.n=y,c=0))}if(n||o>1)return l;throw m=!0,a}return function(n,d,y){if(s>1)throw TypeError("Generator is already running");for(m&&1===d&&u(d,y),c=d,i=y;(t=c<2?e:i)||!m;){r||(c?c<3?(c>1&&(p.n=-1),u(c,i)):p.n=i:p.v=i);try{if(s=2,r){if(c||(n="next"),t=r[n]){if(!(t=t.call(r,i)))throw TypeError("iterator result is not an object");if(!t.done)return t;i=t.value,c<2&&(c=0)}else 1===c&&(t=r.return)&&t.call(r),c<2&&(i=TypeError("The iterator does not provide a '"+n+"' method"),c=1);r=e}else if((t=(m=p.n<0)?i:o.call(a,p))!==l)break}catch(t){r=e,c=1,i=t}finally{s=1}}return{value:t,done:m}}}(o,n,r),!0),s}var l={};function c(){}function i(){}function s(){}t=Object.getPrototypeOf;var d=[][a]?t(t([][a]())):(Z(t={},a,function(){return this}),t),m=s.prototype=c.prototype=Object.create(d);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,s):(e.__proto__=s,Z(e,n,"GeneratorFunction")),e.prototype=Object.create(m),e}return i.prototype=s,Z(m,"constructor",s),Z(s,"constructor",i),i.displayName="GeneratorFunction",Z(s,n,"GeneratorFunction"),Z(m),Z(m,n,"Generator"),Z(m,a,function(){return this}),Z(m,"toString",function(){return"[object Generator]"}),(Y=function(){return{w:r,m:p}})()}function Z(e,t,o,a){var n=Object.defineProperty;try{n({},"",{})}catch(e){n=0}Z=function(e,t,o,a){if(t)n?n(e,t,{value:o,enumerable:!a,configurable:!a,writable:!a}):e[t]=o;else{var r=function(t,o){Z(e,t,function(e){return this._invoke(t,o,e)})};r("next",0),r("throw",1),r("return",2)}},Z(e,t,o,a)}function ee(e,t,o,a,n,r,l){try{var c=e[r](l),i=c.value}catch(e){return void o(e)}c.done?t(i):Promise.resolve(i).then(a,n)}const te={name:"CompanyComponent",components:{LoadingComponent:R.A},data:function(){return{loading:{isActive:!1},form:{company_name:"",company_email:"",company_calling_code:"",company_phone:"",company_website:"",company_city:"",company_state:"",company_country_code:null,company_zip_code:"",company_address:"",company_latitude:"",company_longitude:""},address:"",flag:"",errors:{}}},mounted:function(){this.fetchCompany()},computed:{countryCodes:function(){return this.$store.getters["countryCode/lists"]}},methods:{phoneNumber:function(e){return X.A.phoneNumber(e)},change:function(e){this.flag=e.flag_emoji,this.form.company_calling_code=e.calling_code},fetchCompany:(oe=Y().m(function e(){var t,o=this;return Y().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,this.loading.isActive=!0,e.n=1,this.$store.dispatch("countryCode/lists").then(function(e){""===o.form.company_calling_code&&(o.flag=e.data.data[0].flag_emoji,o.form.company_calling_code=e.data.data[0].calling_code)});case 1:this.$store.dispatch("company/lists").then(function(e){o.form={company_name:e.data.data.company_name,company_email:e.data.data.company_email,company_calling_code:e.data.data.company_calling_code,company_phone:e.data.data.company_phone,company_website:e.data.data.company_website,company_city:e.data.data.company_city,company_state:e.data.data.company_state,company_country_code:e.data.data.company_country_code,company_zip_code:e.data.data.company_zip_code,company_latitude:e.data.data.company_latitude,company_longitude:e.data.data.company_longitude,company_address:e.data.data.company_address},""!==e.data.data.company_calling_code&&o.$store.dispatch("countryCode/callingCode",e.data.data.company_calling_code).then(function(e){o.flag=e.data.data.flag_emoji,o.loading.isActive=!1}).catch(function(e){o.loading.isActive=!1}),o.loading.isActive=!1}).catch(function(e){o.loading.isActive=!1}),e.n=3;break;case 2:e.p=2,t=e.v,this.loading.isActive=!1,W.A.error(t);case 3:return e.a(2)}},e,this,[[0,2]])}),ae=function(){var e=this,t=arguments;return new Promise(function(o,a){var n=oe.apply(e,t);function r(e){ee(n,o,a,r,l,"next",e)}function l(e){ee(n,o,a,r,l,"throw",e)}r(void 0)})},function(){return ae.apply(this,arguments)}),save:function(){var e=this;try{this.loading.isActive=!0,this.$store.dispatch("company/save",this.form).then(function(t){var o;e.loading.isActive=!1,W.A.successFlip(null!==(o="put"===t.config.method)&&void 0!==o?o:0,e.$t("menu.company")),e.errors={}}).catch(function(t){e.loading.isActive=!1,e.errors=t.response.data.errors})}catch(e){this.loading.isActive=!1,W.A.error(e)}}}};var oe,ae;const ne=(0,o(6262).A)(te,[["render",function(e,t,o,R,W,X){var Y=(0,a.resolveComponent)("LoadingComponent"),Z=(0,a.resolveComponent)("vue-select");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createVNode)(Y,{props:W.loading},null,8,["props"]),(0,a.createElementVNode)("div",n,[(0,a.createElementVNode)("div",r,[(0,a.createElementVNode)("h3",l,(0,a.toDisplayString)(e.$t("menu.company")),1)]),(0,a.createElementVNode)("div",c,[(0,a.createElementVNode)("form",{onSubmit:t[12]||(t[12]=(0,a.withModifiers)(function(){return X.save&&X.save.apply(X,arguments)},["prevent"]))},[(0,a.createElementVNode)("div",i,[(0,a.createElementVNode)("div",s,[(0,a.createElementVNode)("label",d,(0,a.toDisplayString)(e.$t("label.name")),1),(0,a.withDirectives)((0,a.createElementVNode)("input",{"onUpdate:modelValue":t[0]||(t[0]=function(e){return W.form.company_name=e}),class:(0,a.normalizeClass)([W.errors.company_name?"invalid":"","db-field-control"]),type:"text",id:"name"},null,2),[[a.vModelText,W.form.company_name]]),W.errors.company_name?((0,a.openBlock)(),(0,a.createElementBlock)("small",m,(0,a.toDisplayString)(W.errors.company_name[0]),1)):(0,a.createCommentVNode)("",!0)]),(0,a.createElementVNode)("div",p,[(0,a.createElementVNode)("label",u,(0,a.toDisplayString)(e.$t("label.latitude"))+"/"+(0,a.toDisplayString)(e.$t("label.longitude")),1),(0,a.createElementVNode)("div",y,[(0,a.withDirectives)((0,a.createElementVNode)("input",{"onUpdate:modelValue":t[1]||(t[1]=function(e){return W.form.company_latitude=e}),class:(0,a.normalizeClass)(W.errors.company_latitude?"invalid":""),type:"text",id:"latitude"},null,2),[[a.vModelText,W.form.company_latitude]]),(0,a.withDirectives)((0,a.createElementVNode)("input",{"onUpdate:modelValue":t[2]||(t[2]=function(e){return W.form.company_longitude=e}),class:(0,a.normalizeClass)(W.errors.company_longitude?"invalid":""),type:"text",id:"longitude"},null,2),[[a.vModelText,W.form.company_longitude]])]),W.errors.company_latitude?((0,a.openBlock)(),(0,a.createElementBlock)("small",f,(0,a.toDisplayString)(W.errors.company_latitude[0]),1)):(0,a.createCommentVNode)("",!0),W.errors.company_longitude?((0,a.openBlock)(),(0,a.createElementBlock)("small",_,(0,a.toDisplayString)(W.errors.company_longitude[0]),1)):(0,a.createCommentVNode)("",!0)]),(0,a.createElementVNode)("div",b,[(0,a.createElementVNode)("label",v,(0,a.toDisplayString)(e.$t("label.email")),1),(0,a.withDirectives)((0,a.createElementVNode)("input",{"onUpdate:modelValue":t[3]||(t[3]=function(e){return W.form.company_email=e}),class:(0,a.normalizeClass)([W.errors.company_email?"invalid":"","db-field-control"]),type:"text",id:"email"},null,2),[[a.vModelText,W.form.company_email]]),W.errors.company_email?((0,a.openBlock)(),(0,a.createElementBlock)("small",g,(0,a.toDisplayString)(W.errors.company_email[0]),1)):(0,a.createCommentVNode)("",!0)]),(0,a.createElementVNode)("div",h,[(0,a.createElementVNode)("label",V,(0,a.toDisplayString)(e.$t("label.phone")),1),(0,a.createElementVNode)("div",{class:(0,a.normalizeClass)([W.errors.phone?"invalid":"","db-field-control flex items-center"])},[(0,a.createElementVNode)("div",N,[(0,a.createElementVNode)("button",E,[(0,a.createTextVNode)((0,a.toDisplayString)(W.flag)+" ",1),(0,a.createElementVNode)("span",k,(0,a.toDisplayString)(W.form.company_calling_code),1),t[13]||(t[13]=(0,a.createElementVNode)("i",{class:"fa-solid fa-caret-down text-xs"},null,-1))]),(0,a.createElementVNode)("ul",w,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(X.countryCodes,function(e){return(0,a.openBlock)(),(0,a.createElementBlock)("li",{onClick:function(t){return X.change(e)},class:"flex items-center gap-2 p-1.5 rounded-md cursor-pointer hover:bg-gray-100"},[(0,a.createTextVNode)((0,a.toDisplayString)(e.flag_emoji)+" ",1),(0,a.createElementVNode)("span",x,(0,a.toDisplayString)(e.calling_code),1)],8,C)}),256))])]),(0,a.withDirectives)((0,a.createElementVNode)("input",{"onUpdate:modelValue":t[4]||(t[4]=function(e){return W.form.company_phone=e}),onKeypress:t[5]||(t[5]=function(e){return X.phoneNumber(e)}),class:(0,a.normalizeClass)([W.errors.company_phone?"invalid":"","pl-2 text-sm w-full h-full"]),type:"text",id:"phone"},null,34),[[a.vModelText,W.form.company_phone]])],2),W.errors.company_phone?((0,a.openBlock)(),(0,a.createElementBlock)("small",D,(0,a.toDisplayString)(W.errors.company_phone[0]),1)):(0,a.createCommentVNode)("",!0)]),(0,a.createElementVNode)("div",S,[(0,a.createElementVNode)("label",B,(0,a.toDisplayString)(e.$t("label.website")),1),(0,a.withDirectives)((0,a.createElementVNode)("input",{"onUpdate:modelValue":t[6]||(t[6]=function(e){return W.form.company_website=e}),class:(0,a.normalizeClass)([W.errors.company_website?"invalid":"","db-field-control"]),type:"text",id:"website"},null,2),[[a.vModelText,W.form.company_website]]),W.errors.company_website?((0,a.openBlock)(),(0,a.createElementBlock)("small",z,(0,a.toDisplayString)(W.errors.company_website[0]),1)):(0,a.createCommentVNode)("",!0)]),(0,a.createElementVNode)("div",$,[(0,a.createElementVNode)("label",T,(0,a.toDisplayString)(e.$t("label.city")),1),(0,a.withDirectives)((0,a.createElementVNode)("input",{"onUpdate:modelValue":t[7]||(t[7]=function(e){return W.form.company_city=e}),class:(0,a.normalizeClass)([W.errors.company_city?"invalid":"","db-field-control"]),type:"text",id:"city"},null,2),[[a.vModelText,W.form.company_city]]),W.errors.company_city?((0,a.openBlock)(),(0,a.createElementBlock)("small",A,(0,a.toDisplayString)(W.errors.company_city[0]),1)):(0,a.createCommentVNode)("",!0)]),(0,a.createElementVNode)("div",j,[(0,a.createElementVNode)("label",O,(0,a.toDisplayString)(e.$t("label.state")),1),(0,a.withDirectives)((0,a.createElementVNode)("input",{"onUpdate:modelValue":t[8]||(t[8]=function(e){return W.form.company_state=e}),class:(0,a.normalizeClass)([W.errors.company_state?"invalid":"","db-field-control"]),type:"text",id:"company_state"},null,2),[[a.vModelText,W.form.company_state]]),W.errors.company_state?((0,a.openBlock)(),(0,a.createElementBlock)("small",M,(0,a.toDisplayString)(W.errors.company_state[0]),1)):(0,a.createCommentVNode)("",!0)]),(0,a.createElementVNode)("div",U,[(0,a.createElementVNode)("label",q,(0,a.toDisplayString)(e.$t("label.country_code")),1),(0,a.createVNode)(Z,{class:(0,a.normalizeClass)(["db-field-control f-b-custom-select",W.errors.company_country_code?"is-invalid":""]),id:"country_code",modelValue:W.form.company_country_code,"onUpdate:modelValue":t[9]||(t[9]=function(e){return W.form.company_country_code=e}),options:X.countryCodes,"label-by":"country_name","value-by":"country_code",closeOnSelect:!0,searchable:!0,clearOnClose:!0,placeholder:"--","search-placeholder":"--"},null,8,["class","modelValue","options"]),W.errors.company_country_code?((0,a.openBlock)(),(0,a.createElementBlock)("small",F,(0,a.toDisplayString)(W.errors.company_country_code[0]),1)):(0,a.createCommentVNode)("",!0)]),(0,a.createElementVNode)("div",G,[(0,a.createElementVNode)("label",P,(0,a.toDisplayString)(e.$t("label.zip_code")),1),(0,a.withDirectives)((0,a.createElementVNode)("input",{"onUpdate:modelValue":t[10]||(t[10]=function(e){return W.form.company_zip_code=e}),class:(0,a.normalizeClass)([W.errors.company_zip_code?"invalid":"","db-field-control"]),type:"text",id:"company_zip_code"},null,2),[[a.vModelText,W.form.company_zip_code]]),W.errors.company_zip_code?((0,a.openBlock)(),(0,a.createElementBlock)("small",L,(0,a.toDisplayString)(W.errors.company_zip_code[0]),1)):(0,a.createCommentVNode)("",!0)]),(0,a.createElementVNode)("div",K,[(0,a.createElementVNode)("label",H,(0,a.toDisplayString)(e.$t("label.address")),1),(0,a.withDirectives)((0,a.createElementVNode)("textarea",{"onUpdate:modelValue":t[11]||(t[11]=function(e){return W.form.company_address=e}),class:(0,a.normalizeClass)([W.errors.company_address?"invalid":"","db-field-control"]),id:"address"}," ",2),[[a.vModelText,W.form.company_address]]),W.errors.company_address?((0,a.openBlock)(),(0,a.createElementBlock)("small",I,(0,a.toDisplayString)(W.errors.company_address[0]),1)):(0,a.createCommentVNode)("",!0)]),(0,a.createElementVNode)("div",J,[(0,a.createElementVNode)("button",Q,[t[14]||(t[14]=(0,a.createElementVNode)("i",{class:"lab lab-fill-save"},null,-1)),(0,a.createElementVNode)("span",null,(0,a.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