[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: 2524.js
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[2524],{2524:(e,t,n)=>{n.r(t),n.d(t,{default:()=>le});var l=n(9726),o={id:"notify",class:"db-tab-div font-medium active"},i={class:"grid sm:grid-cols-2 lg:grid-cols-3 gap-3 mb-5"},a=["onClick","data-tab"],c={key:0,class:"lab lab-line-mail text-sm"},r={key:1,class:"lab lab-line-sms text-sm"},s={key:2,class:"lab lab-line-notification text-sm"},m={class:"whitespace-nowrap text-[15px]"},d=["id"],u={class:"db-card-header"},p={key:0,class:"db-card-title"},f={key:1,class:"db-card-title"},b={key:0,class:"db-card-body"},g=["onSubmit","id"],k={class:"flex items-center justify-between mb-3"},h={class:"capitalize text-sm text-heading"},y={class:"custom-switch"},E=["onClick","id","value","name","checked"],v=["for"],N=["for"],B=["name"],V=["value"],x={class:"col-12"},w={type:"submit",class:"db-btn text-white bg-primary"},A={key:1,class:"db-card-body"},S=["onSubmit","id"],C={class:"flex items-center justify-between mb-3"},D={class:"capitalize text-sm text-heading"},$={class:"custom-switch"},F=["onClick","id","value","name","checked"],_=["for"],O=["for"],j=["name"],z=["value"],I={class:"col-12"},L={type:"submit",class:"db-btn text-white bg-primary"},M={key:2,class:"db-card-body"},T=["onSubmit","id"],U={class:"flex items-center justify-between mb-3"},q={class:"capitalize text-sm text-heading"},G={class:"custom-switch"},H=["onClick","id","value","name","checked"],J=["for"],K=["for"],P=["name"],Q=["value"],R={class:"col-12"},W={type:"submit",class:"db-btn text-white bg-primary"};var X=n(5475),Y=n(9856);const Z=Object.freeze({ON:5,OFF:10});function ee(e){return function(e){if(Array.isArray(e))return te(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return te(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?te(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,l=Array(t);n<t;n++)l[n]=e[n];return l}const ne={name:"NotificationAlertComponent",components:{LoadingComponent:X.A},data:function(){return{loading:{isActive:!1},enums:{switchEnum:Z,notificationAlertObject:[{name:this.$t("label.mail"),slug:"mail"},{name:this.$t("label.sms"),slug:"sms"},{name:this.$t("label.push_notification"),slug:"push_notification"}]},selectIndex:0,form:{license_key:""},errors:{}}},mounted:function(){var e=this;try{this.loading.isActive=!0,this.$store.dispatch("notificationAlert/lists").then(function(t){e.loading.isActive=!1}).catch(function(t){e.loading.isActive=!1})}catch(e){this.loading.isActive=!1,Y.A.error(e)}},computed:{notificationAlerts:function(){return this.$store.getters["notificationAlert/lists"]}},methods:{selectActive:function(e){this.selectIndex=e},selectCheckbox:function(e,t,n){document.getElementById(t+n).value=e.target.checked?5:10},save:function(e,t){var n=this;try{var l=document.getElementById("formElem_"+e+t),o={};ee(l.elements).filter(function(e){return"BUTTON"!==e.tagName}).forEach(function(e){o[e.name]=e.value}),this.loading.isActive=!0,this.$store.dispatch("notificationAlert/save",{form:o}).then(function(e){var t;n.loading.isActive=!1,Y.A.successFlip(null!==(t="put"===e.config.method)&&void 0!==t?t:0,n.$t("menu.notification_alert")),n.errors={}}).catch(function(e){n.loading.isActive=!1,n.errors=e.response.data.errors})}catch(e){this.loading.isActive=!1,Y.A.error(e)}}}};const le=(0,n(6262).A)(ne,[["render",function(e,t,n,X,Y,Z){var ee=(0,l.resolveComponent)("LoadingComponent");return(0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,null,[(0,l.createVNode)(ee,{props:Y.loading},null,8,["props"]),(0,l.createElementVNode)("div",o,[(0,l.createElementVNode)("div",i,[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(Y.enums.notificationAlertObject,function(e,t){return(0,l.openBlock)(),(0,l.createElementBlock)("button",{onClick:function(e){return Z.selectActive(t)},class:(0,l.normalizeClass)(["db-tab-sub-btn w-full flex items-center gap-3 h-10 px-4 rounded-lg transition bg-white hover:text-primary hover:bg-primary/5",t===Y.selectIndex?"active":""]),key:e,"data-tab":"#"+e.slug},["mail"===e.slug?((0,l.openBlock)(),(0,l.createElementBlock)("i",c)):(0,l.createCommentVNode)("",!0),"sms"===e.slug?((0,l.openBlock)(),(0,l.createElementBlock)("i",r)):(0,l.createCommentVNode)("",!0),"push_notification"===e.slug?((0,l.openBlock)(),(0,l.createElementBlock)("i",s)):(0,l.createCommentVNode)("",!0),(0,l.createElementVNode)("span",m,(0,l.toDisplayString)(e.name),1)],10,a)}),128))]),((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(Y.enums.notificationAlertObject,function(n,o){return(0,l.openBlock)(),(0,l.createElementBlock)("div",{id:n.slug,class:(0,l.normalizeClass)(["db-card db-tab-sub-div",o===Y.selectIndex?"active":""]),key:n},[(0,l.createElementVNode)("div",u,["push_notification"===n.slug?((0,l.openBlock)(),(0,l.createElementBlock)("h3",p,(0,l.toDisplayString)(n.name)+" "+(0,l.toDisplayString)(e.$t("label.messages")),1)):((0,l.openBlock)(),(0,l.createElementBlock)("h3",f,(0,l.toDisplayString)(n.name)+" "+(0,l.toDisplayString)(e.$t("label.notification"))+" "+(0,l.toDisplayString)(e.$t("label.messages")),1))]),"mail"===n.slug?((0,l.openBlock)(),(0,l.createElementBlock)("div",b,[(0,l.createElementVNode)("form",{class:"row",onSubmit:(0,l.withModifiers)(function(e){return Z.save(n.slug,o)},["prevent"]),id:"formElem_"+n.slug+o},[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(Z.notificationAlerts,function(t){return(0,l.openBlock)(),(0,l.createElementBlock)("div",{class:"col-12 xl:col-6",key:t},[(0,l.createElementVNode)("div",k,[(0,l.createElementVNode)("label",h,(0,l.toDisplayString)(t.name),1),(0,l.createElementVNode)("div",y,[(0,l.createElementVNode)("input",{onClick:function(e){return Z.selectCheckbox(e,n.slug,t.id)},id:n.slug+t.id,type:"checkbox",value:t.mail,name:n.slug+t.id,checked:t.mail===Y.enums.switchEnum.ON},null,8,E),t.mail===Y.enums.switchEnum.ON?((0,l.openBlock)(),(0,l.createElementBlock)("label",{key:0,for:n.slug+t.id},(0,l.toDisplayString)(e.$t("label.on")),9,v)):((0,l.openBlock)(),(0,l.createElementBlock)("label",{key:1,for:n.slug+t.id},(0,l.toDisplayString)(e.$t("label.off")),9,N))])]),(0,l.createElementVNode)("textarea",{name:t.id,class:"w-full h-14 rounded-lg py-2 px-3 resize-none border transition border-[#EFF0F6] focus-within:border-primary/20"},(0,l.toDisplayString)(t.mail_message),9,B)])}),128)),(0,l.createElementVNode)("input",{type:"hidden",name:"type",value:n.slug},null,8,V),(0,l.createElementVNode)("div",x,[(0,l.createElementVNode)("button",w,[t[0]||(t[0]=(0,l.createElementVNode)("i",{class:"lab lab-fill-save"},null,-1)),(0,l.createElementVNode)("span",null,(0,l.toDisplayString)(e.$t("label.save")),1)])])],40,g)])):(0,l.createCommentVNode)("",!0),"sms"===n.slug?((0,l.openBlock)(),(0,l.createElementBlock)("div",A,[(0,l.createElementVNode)("form",{class:"row",onSubmit:(0,l.withModifiers)(function(e){return Z.save(n.slug,o)},["prevent"]),id:"formElem_"+n.slug+o},[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(Z.notificationAlerts,function(t){return(0,l.openBlock)(),(0,l.createElementBlock)("div",{class:"col-12 xl:col-6",key:t},[(0,l.createElementVNode)("div",C,[(0,l.createElementVNode)("label",D,(0,l.toDisplayString)(t.name),1),(0,l.createElementVNode)("div",$,[(0,l.createElementVNode)("input",{onClick:function(e){return Z.selectCheckbox(e,n.slug,t.id)},id:n.slug+t.id,type:"checkbox",value:t.sms,name:n.slug+t.id,checked:t.sms===Y.enums.switchEnum.ON},null,8,F),t.sms===Y.enums.switchEnum.ON?((0,l.openBlock)(),(0,l.createElementBlock)("label",{key:0,for:n.slug+t.id},(0,l.toDisplayString)(e.$t("label.on")),9,_)):((0,l.openBlock)(),(0,l.createElementBlock)("label",{key:1,for:n.slug+t.id},(0,l.toDisplayString)(e.$t("label.off")),9,O))])]),(0,l.createElementVNode)("textarea",{name:t.id,class:"w-full h-14 rounded-lg py-2 px-3 resize-none border transition border-[#EFF0F6] focus-within:border-primary/20"},(0,l.toDisplayString)(t.sms_message),9,j)])}),128)),(0,l.createElementVNode)("input",{type:"hidden",name:"type",value:n.slug},null,8,z),(0,l.createElementVNode)("div",I,[(0,l.createElementVNode)("button",L,[t[1]||(t[1]=(0,l.createElementVNode)("i",{class:"lab lab-fill-save"},null,-1)),(0,l.createElementVNode)("span",null,(0,l.toDisplayString)(e.$t("label.save")),1)])])],40,S)])):(0,l.createCommentVNode)("",!0),"push_notification"===n.slug?((0,l.openBlock)(),(0,l.createElementBlock)("div",M,[(0,l.createElementVNode)("form",{class:"row",onSubmit:(0,l.withModifiers)(function(e){return Z.save(n.slug,o)},["prevent"]),id:"formElem_"+n.slug+o},[((0,l.openBlock)(!0),(0,l.createElementBlock)(l.Fragment,null,(0,l.renderList)(Z.notificationAlerts,function(t){return(0,l.openBlock)(),(0,l.createElementBlock)("div",{class:"col-12 xl:col-6",key:t},[(0,l.createElementVNode)("div",U,[(0,l.createElementVNode)("label",q,(0,l.toDisplayString)(t.name),1),(0,l.createElementVNode)("div",G,[(0,l.createElementVNode)("input",{onClick:function(e){return Z.selectCheckbox(e,n.slug,t.id)},id:n.slug+t.id,type:"checkbox",value:t.push_notification,name:n.slug+t.id,checked:t.push_notification===Y.enums.switchEnum.ON},null,8,H),t.push_notification===Y.enums.switchEnum.ON?((0,l.openBlock)(),(0,l.createElementBlock)("label",{key:0,for:n.slug+t.id},(0,l.toDisplayString)(e.$t("label.on")),9,J)):((0,l.openBlock)(),(0,l.createElementBlock)("label",{key:1,for:n.slug+t.id},(0,l.toDisplayString)(e.$t("label.off")),9,K))])]),(0,l.createElementVNode)("textarea",{name:t.id,class:"w-full h-14 rounded-lg py-2 px-3 resize-none border transition border-[#EFF0F6] focus-within:border-primary/20"},(0,l.toDisplayString)(t.push_notification_message),9,P)])}),128)),(0,l.createElementVNode)("input",{type:"hidden",name:"type",value:n.slug},null,8,Q),(0,l.createElementVNode)("div",R,[(0,l.createElementVNode)("button",W,[t[2]||(t[2]=(0,l.createElementVNode)("i",{class:"lab lab-fill-save"},null,-1)),(0,l.createElementVNode)("span",null,(0,l.toDisplayString)(e.$t("label.save")),1)])])],40,T)])):(0,l.createCommentVNode)("",!0)],10,d)}),128))])],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