[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: 2290.js
/*! For license information please see 2290.js.LICENSE.txt */ "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[2290],{2290:(e,t,a)=>{a.r(t),a.d(t,{default:()=>z});var n=a(9726),o={id:"restaurant_state",class:"db-card db-tab-div active"},r={class:"db-card-header"},i={class:"db-card-title"},l={class:"db-card-body"},s={class:"form-row"},c={class:"form-col-12"},d={class:"db-field-title required"},u={class:"db-field-radio-group"},p={class:"db-field-radio"},f={class:"custom-radio"},m=["value"],h={for:"open",class:"db-field-label"},v={class:"db-field-radio"},b={class:"custom-radio"},g=["value"],w={for:"close",class:"db-field-label"},y={key:0,class:"form-col-12"},_={for:"whatsapp_number",class:"db-field-title required"},E={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"},A=["onClick"],x={class:"whitespace-nowrap text-xs"},C={key:0,class:"db-field-alert"},S={class:"form-col-12"},D={type:"submit",class:"db-btn text-white bg-primary"};var j=a(5475),B=a(9856),$=a(8655),O=a(2419);function T(){var e,t,a="function"==typeof Symbol?Symbol:{},n=a.iterator||"@@iterator",o=a.toStringTag||"@@toStringTag";function r(a,n,o,r){var s=n&&n.prototype instanceof l?n:l,c=Object.create(s.prototype);return F(c,"_invoke",function(a,n,o){var r,l,s,c=0,d=o||[],u=!1,p={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(t,a){return r=t,l=0,s=e,p.n=a,i}};function f(a,n){for(l=a,s=n,t=0;!u&&c&&!o&&t<d.length;t++){var o,r=d[t],f=p.p,m=r[2];a>3?(o=m===n)&&(s=r[(l=r[4])?5:(l=3,3)],r[4]=r[5]=e):r[0]<=f&&((o=a<2&&f<r[1])?(l=0,p.v=n,p.n=r[1]):f<m&&(o=a<3||r[0]>n||n>m)&&(r[4]=a,r[5]=n,p.n=m,l=0))}if(o||a>1)return i;throw u=!0,n}return function(o,d,m){if(c>1)throw TypeError("Generator is already running");for(u&&1===d&&f(d,m),l=d,s=m;(t=l<2?e:s)||!u;){r||(l?l<3?(l>1&&(p.n=-1),f(l,s)):p.n=s:p.v=s);try{if(c=2,r){if(l||(o="next"),t=r[o]){if(!(t=t.call(r,s)))throw TypeError("iterator result is not an object");if(!t.done)return t;s=t.value,l<2&&(l=0)}else 1===l&&(t=r.return)&&t.call(r),l<2&&(s=TypeError("The iterator does not provide a '"+o+"' method"),l=1);r=e}else if((t=(u=p.n<0)?s:a.call(n,p))!==i)break}catch(t){r=e,l=1,s=t}finally{c=1}}return{value:t,done:u}}}(a,o,r),!0),c}var i={};function l(){}function s(){}function c(){}t=Object.getPrototypeOf;var d=[][n]?t(t([][n]())):(F(t={},n,function(){return this}),t),u=c.prototype=l.prototype=Object.create(d);function p(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,c):(e.__proto__=c,F(e,o,"GeneratorFunction")),e.prototype=Object.create(u),e}return s.prototype=c,F(u,"constructor",c),F(c,"constructor",s),s.displayName="GeneratorFunction",F(c,o,"GeneratorFunction"),F(u),F(u,o,"Generator"),F(u,n,function(){return this}),F(u,"toString",function(){return"[object Generator]"}),(T=function(){return{w:r,m:p}})()}function F(e,t,a,n){var o=Object.defineProperty;try{o({},"",{})}catch(e){o=0}F=function(e,t,a,n){if(t)o?o(e,t,{value:a,enumerable:!n,configurable:!n,writable:!n}):e[t]=a;else{var r=function(t,a){F(e,t,function(e){return this._invoke(t,a,e)})};r("next",0),r("throw",1),r("return",2)}},F(e,t,a,n)}function G(e,t,a,n,o,r,i){try{var l=e[r](i),s=l.value}catch(e){return void a(e)}l.done?t(s):Promise.resolve(s).then(n,o)}const L={name:"WhatsappComponent",components:{LoadingComponent:j.A},data:function(){return{loading:{isActive:!1},form:{whatsapp_status:null,whatsapp_number:null,whatsapp_calling_code:null},enums:{activityEnum:O.A},flag:"",errors:{}}},mounted:function(){var e=this;try{this.loading.isActive=!0,this.$store.dispatch("whatsapp/lists").then(function(t){e.form.whatsapp_calling_code=t.data.data.whatsapp_calling_code,e.form.whatsapp_status=t.data.data.whatsapp_status,e.form.whatsapp_number=t.data.data.whatsapp_number,""!==t.data.data.whatsapp_calling_code&&e.$store.dispatch("countryCode/callingCode",t.data.data.whatsapp_calling_code).then(function(t){e.flag=t.data.data.flag_emoji,e.loading.isActive=!1}).catch(function(t){e.loading.isActive=!1}),e.loading.isActive=!1}).catch(function(t){e.loading.isActive=!1})}catch(e){this.loading.isActive=!1,B.A.error(e)}this.fetchCallingCode()},computed:{countryCodes:function(){return this.$store.getters["countryCode/lists"]}},methods:{phoneNumber:function(e){return $.A.phoneNumber(e)},change:function(e){this.flag=e.flag_emoji,this.form.whatsapp_calling_code=e.calling_code},fetchCallingCode:(P=T().m(function e(){var t,a=this;return T().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){""===a.form.whatsapp_calling_code&&(a.flag=e.data.data[0].flag_emoji,a.form.whatsapp_calling_code=e.data.data[0].calling_code)});case 1:e.n=3;break;case 2:e.p=2,t=e.v,this.loading.isActive=!1,B.A.error(t);case 3:return e.a(2)}},e,this,[[0,2]])}),M=function(){var e=this,t=arguments;return new Promise(function(a,n){var o=P.apply(e,t);function r(e){G(o,a,n,r,i,"next",e)}function i(e){G(o,a,n,r,i,"throw",e)}r(void 0)})},function(){return M.apply(this,arguments)}),save:function(){var e=this;try{this.loading.isActive=!0,this.$store.dispatch("whatsapp/save",this.form).then(function(t){var a;e.loading.isActive=!1,B.A.successFlip(null!==(a="put"===t.config.method)&&void 0!==a?a:0,e.$t("menu.whatsapp_order_setup")),e.errors={}}).catch(function(t){e.loading.isActive=!1,e.errors=t.response.data.errors})}catch(e){this.loading.isActive=!1,B.A.error(e)}}}};var P,M;const z=(0,a(6262).A)(L,[["render",function(e,t,a,j,B,$){var O=(0,n.resolveComponent)("LoadingComponent");return(0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,null,[(0,n.createVNode)(O,{props:B.loading},null,8,["props"]),(0,n.createElementVNode)("div",o,[(0,n.createElementVNode)("div",r,[(0,n.createElementVNode)("h3",i,(0,n.toDisplayString)(e.$t("menu.whatsapp_order_setup")),1)]),(0,n.createElementVNode)("div",l,[(0,n.createElementVNode)("form",{onSubmit:t[4]||(t[4]=(0,n.withModifiers)(function(){return $.save&&$.save.apply($,arguments)},["prevent"]))},[(0,n.createElementVNode)("div",s,[(0,n.createElementVNode)("div",c,[(0,n.createElementVNode)("label",d,(0,n.toDisplayString)(e.$t("label.status")),1),(0,n.createElementVNode)("div",u,[(0,n.createElementVNode)("div",p,[(0,n.createElementVNode)("div",f,[(0,n.withDirectives)((0,n.createElementVNode)("input",{type:"radio","onUpdate:modelValue":t[0]||(t[0]=function(e){return B.form.whatsapp_status=e}),id:"open",value:B.enums.activityEnum.ENABLE,class:"custom-radio-field"},null,8,m),[[n.vModelRadio,B.form.whatsapp_status]]),t[5]||(t[5]=(0,n.createElementVNode)("span",{class:"custom-radio-span"},null,-1))]),(0,n.createElementVNode)("label",h,(0,n.toDisplayString)(e.$t("label.enable")),1)]),(0,n.createElementVNode)("div",v,[(0,n.createElementVNode)("div",b,[(0,n.withDirectives)((0,n.createElementVNode)("input",{type:"radio","onUpdate:modelValue":t[1]||(t[1]=function(e){return B.form.whatsapp_status=e}),id:"close",value:B.enums.activityEnum.DISABLE,class:"custom-radio-field"},null,8,g),[[n.vModelRadio,B.form.whatsapp_status]]),t[6]||(t[6]=(0,n.createElementVNode)("span",{class:"custom-radio-span"},null,-1))]),(0,n.createElementVNode)("label",w,(0,n.toDisplayString)(e.$t("label.disable")),1)])])]),B.form.whatsapp_status===B.enums.activityEnum.ENABLE?((0,n.openBlock)(),(0,n.createElementBlock)("div",y,[(0,n.createElementVNode)("label",_,(0,n.toDisplayString)(e.$t("label.whatsapp_number")),1),(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)([B.errors.whatsapp_number?"invalid":"","db-field-control flex items-center"])},[(0,n.createElementVNode)("div",E,[(0,n.createElementVNode)("button",N,[(0,n.createTextVNode)((0,n.toDisplayString)(B.flag)+" ",1),(0,n.createElementVNode)("span",V,(0,n.toDisplayString)(B.form.whatsapp_calling_code),1),t[7]||(t[7]=(0,n.createElementVNode)("i",{class:"fa-solid fa-caret-down text-xs"},null,-1))]),(0,n.createElementVNode)("ul",k,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)($.countryCodes,function(e){return(0,n.openBlock)(),(0,n.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,n.createTextVNode)((0,n.toDisplayString)(e.flag_emoji)+" ",1),(0,n.createElementVNode)("span",x,(0,n.toDisplayString)(e.calling_code),1)],8,A)}),256))])]),(0,n.withDirectives)((0,n.createElementVNode)("input",{"onUpdate:modelValue":t[2]||(t[2]=function(e){return B.form.whatsapp_number=e}),onKeypress:t[3]||(t[3]=function(e){return $.phoneNumber(e)}),class:(0,n.normalizeClass)([B.errors.whatsapp_number?"invalid":"","pl-2 text-sm w-full h-full"]),type:"text",id:"phone"},null,34),[[n.vModelText,B.form.whatsapp_number]])],2),B.errors.whatsapp_number?((0,n.openBlock)(),(0,n.createElementBlock)("small",C,(0,n.toDisplayString)(B.errors.whatsapp_number[0]),1)):(0,n.createCommentVNode)("",!0)])):(0,n.createCommentVNode)("",!0),(0,n.createElementVNode)("div",S,[(0,n.createElementVNode)("button",D,[t[8]||(t[8]=(0,n.createElementVNode)("i",{class:"lab lab-fill-save"},null,-1)),(0,n.createElementVNode)("span",null,(0,n.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