[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: 6750.js
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[6750],{6750:(e,i,t)=>{t.r(i),t.d(i,{default:()=>O});var o=t(9726),n={id:"notification",class:"db-card db-tab-div active"},a={class:"db-card-header"},c={class:"db-card-title"},r={class:"db-card-body"},l={class:"form-row"},f={class:"form-col-12 sm:form-col-6"},_={for:"notification_fcm_topic",class:"db-field-title required"},s={key:0,class:"db-field-alert"},m={class:"form-col-12 sm:form-col-6"},d={for:"notification_fcm_api_key",class:"db-field-title required"},p={key:0,class:"db-field-alert"},u={class:"form-col-12 sm:form-col-6"},b={for:"notification_fcm_auth_domain",class:"db-field-title required"},v={key:0,class:"db-field-alert"},g={class:"form-col-12 sm:form-col-6"},y={for:"notification_fcm_project_id",class:"db-field-title required"},h={key:0,class:"db-field-alert"},k={class:"form-col-12 sm:form-col-6"},V={for:"notification_fcm_storage_bucket",class:"db-field-title required"},E={key:0,class:"db-field-alert"},N={class:"form-col-12 sm:form-col-6"},D={for:"notification_fcm_messaging_sender_id",class:"db-field-title required"},j={key:0,class:"db-field-alert"},S={class:"form-col-12 sm:form-col-6"},C={for:"notification_fcm_app_id",class:"db-field-title required"},A={key:0,class:"db-field-alert"},B={class:"form-col-12 sm:form-col-6"},w={for:"notification_fcm_measurement_id",class:"db-field-title required"},x={key:0,class:"db-field-alert"},$={class:"form-col-12 sm:form-col-6"},M={for:"notification_fcm_json_file",class:"db-field-title required"},q={key:0,class:"db-field-alert"},z={class:"form-col-12"},T={type:"submit",class:"db-btn text-white bg-primary"};var U=t(5475),F=t(9856);function I(e,i){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,i){if(e){if("string"==typeof e)return L(e,i);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?L(e,i):void 0}}(e))||i&&e&&"number"==typeof e.length){t&&(e=t);var o=0,n=function(){};return{s:n,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,c=!0,r=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return c=e.done,e},e:function(e){r=!0,a=e},f:function(){try{c||null==t.return||t.return()}finally{if(r)throw a}}}}function L(e,i){(null==i||i>e.length)&&(i=e.length);for(var t=0,o=Array(i);t<i;t++)o[t]=e[t];return o}const P={name:"NotificationComponent",components:{LoadingComponent:U.A,alertService:F.A},data:function(){return{loading:{isActive:!1},form:{notification_fcm_public_vapid_key:"",notification_fcm_api_key:"",notification_fcm_auth_domain:"",notification_fcm_project_id:"",notification_fcm_storage_bucket:"",notification_fcm_messaging_sender_id:"",notification_fcm_app_id:"",notification_fcm_measurement_id:""},errors:{},notification_fcm_json_file:""}},mounted:function(){var e=this;try{this.loading.isActive=!0,this.$store.dispatch("notification/lists").then(function(i){e.form={notification_fcm_public_vapid_key:i.data.data.notification_fcm_public_vapid_key,notification_fcm_api_key:i.data.data.notification_fcm_api_key,notification_fcm_auth_domain:i.data.data.notification_fcm_auth_domain,notification_fcm_project_id:i.data.data.notification_fcm_project_id,notification_fcm_storage_bucket:i.data.data.notification_fcm_storage_bucket,notification_fcm_messaging_sender_id:i.data.data.notification_fcm_messaging_sender_id,notification_fcm_app_id:i.data.data.notification_fcm_app_id,notification_fcm_measurement_id:i.data.data.notification_fcm_measurement_id},e.loading.isActive=!1}).catch(function(i){e.loading.isActive=!1})}catch(e){this.loading.isActive=!1,F.A.error(e)}},methods:{changeFile:function(e){this.notification_fcm_json_file=e.target.files[0]},save:function(){var e=this;try{var i=new FormData;i.append("notification_fcm_public_vapid_key",this.form.notification_fcm_public_vapid_key),i.append("notification_fcm_api_key",this.form.notification_fcm_api_key),i.append("notification_fcm_auth_domain",this.form.notification_fcm_auth_domain),i.append("notification_fcm_project_id",this.form.notification_fcm_project_id),i.append("notification_fcm_storage_bucket",this.form.notification_fcm_storage_bucket),i.append("notification_fcm_messaging_sender_id",this.form.notification_fcm_messaging_sender_id),i.append("notification_fcm_app_id",this.form.notification_fcm_app_id),i.append("notification_fcm_measurement_id",this.form.notification_fcm_measurement_id),this.notification_fcm_json_file&&i.append("notification_fcm_json_file",this.notification_fcm_json_file),this.loading.isActive=!0,this.$store.dispatch("notification/save",{form:i}).then(function(i){var t;e.loading.isActive=!1,F.A.successFlip(null!==(t="post"===i.config.method)&&void 0!==t?t:0,e.$t("menu.notification")),navigator.serviceWorker.getRegistrations().then(function(e){var i,t=I(e);try{for(t.s();!(i=t.n()).done;){i.value.unregister()}}catch(e){t.e(e)}finally{t.f()}}),e.errors={},e.notification_fcm_json_file="",e.$refs.fileProperty.value=null}).catch(function(i){e.loading.isActive=!1,"undefined"!==i.response.data.status&&!1===i.response.data.status?F.A.error(i.response.data.message):e.errors=i.response.data.errors})}catch(e){this.loading.isActive=!1,F.A.error(e)}}}};const O=(0,t(6262).A)(P,[["render",function(e,i,t,U,F,I){var L=(0,o.resolveComponent)("LoadingComponent");return(0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,null,[(0,o.createVNode)(L,{props:F.loading},null,8,["props"]),(0,o.createElementVNode)("div",n,[(0,o.createElementVNode)("div",a,[(0,o.createElementVNode)("h3",c,(0,o.toDisplayString)(e.$t("menu.notification")),1)]),(0,o.createElementVNode)("div",r,[(0,o.createElementVNode)("form",{onSubmit:i[9]||(i[9]=(0,o.withModifiers)(function(){return I.save&&I.save.apply(I,arguments)},["prevent"])),class:"w-full d-block"},[(0,o.createElementVNode)("div",l,[(0,o.createElementVNode)("div",f,[(0,o.createElementVNode)("label",_,(0,o.toDisplayString)(e.$t("label.notification_fcm_public_vapid_key")),1),(0,o.withDirectives)((0,o.createElementVNode)("input",{"onUpdate:modelValue":i[0]||(i[0]=function(e){return F.form.notification_fcm_public_vapid_key=e}),class:(0,o.normalizeClass)([F.errors.notification_fcm_public_vapid_key?"invalid":"","db-field-control"]),type:"text",id:"notification_fcm_topic"},null,2),[[o.vModelText,F.form.notification_fcm_public_vapid_key]]),F.errors.notification_fcm_public_vapid_key?((0,o.openBlock)(),(0,o.createElementBlock)("small",s,(0,o.toDisplayString)(F.errors.notification_fcm_public_vapid_key[0]),1)):(0,o.createCommentVNode)("",!0)]),(0,o.createElementVNode)("div",m,[(0,o.createElementVNode)("label",d,(0,o.toDisplayString)(e.$t("label.notification_fcm_api_key")),1),(0,o.withDirectives)((0,o.createElementVNode)("input",{"onUpdate:modelValue":i[1]||(i[1]=function(e){return F.form.notification_fcm_api_key=e}),class:(0,o.normalizeClass)([F.errors.notification_fcm_api_key?"invalid":"","db-field-control"]),type:"text",id:"notification_fcm_api_key"},null,2),[[o.vModelText,F.form.notification_fcm_api_key]]),F.errors.notification_fcm_api_key?((0,o.openBlock)(),(0,o.createElementBlock)("small",p,(0,o.toDisplayString)(F.errors.notification_fcm_api_key[0]),1)):(0,o.createCommentVNode)("",!0)]),(0,o.createElementVNode)("div",u,[(0,o.createElementVNode)("label",b,(0,o.toDisplayString)(e.$t("label.notification_fcm_auth_domain")),1),(0,o.withDirectives)((0,o.createElementVNode)("input",{"onUpdate:modelValue":i[2]||(i[2]=function(e){return F.form.notification_fcm_auth_domain=e}),class:(0,o.normalizeClass)([F.errors.notification_fcm_auth_domain?"invalid":"","db-field-control"]),type:"text",id:"notification_fcm_auth_domain"},null,2),[[o.vModelText,F.form.notification_fcm_auth_domain]]),F.errors.notification_fcm_auth_domain?((0,o.openBlock)(),(0,o.createElementBlock)("small",v,(0,o.toDisplayString)(F.errors.notification_fcm_auth_domain[0]),1)):(0,o.createCommentVNode)("",!0)]),(0,o.createElementVNode)("div",g,[(0,o.createElementVNode)("label",y,(0,o.toDisplayString)(e.$t("label.notification_fcm_project_id")),1),(0,o.withDirectives)((0,o.createElementVNode)("input",{"onUpdate:modelValue":i[3]||(i[3]=function(e){return F.form.notification_fcm_project_id=e}),class:(0,o.normalizeClass)([F.errors.notification_fcm_project_id?"invalid":"","db-field-control"]),type:"text",id:"notification_fcm_project_id"},null,2),[[o.vModelText,F.form.notification_fcm_project_id]]),F.errors.notification_fcm_project_id?((0,o.openBlock)(),(0,o.createElementBlock)("small",h,(0,o.toDisplayString)(F.errors.notification_fcm_project_id[0]),1)):(0,o.createCommentVNode)("",!0)]),(0,o.createElementVNode)("div",k,[(0,o.createElementVNode)("label",V,(0,o.toDisplayString)(e.$t("label.notification_fcm_storage_bucket")),1),(0,o.withDirectives)((0,o.createElementVNode)("input",{"onUpdate:modelValue":i[4]||(i[4]=function(e){return F.form.notification_fcm_storage_bucket=e}),class:(0,o.normalizeClass)([F.errors.notification_fcm_storage_bucket?"invalid":"","db-field-control"]),type:"text",id:"notification_fcm_storage_bucket"},null,2),[[o.vModelText,F.form.notification_fcm_storage_bucket]]),F.errors.notification_fcm_storage_bucket?((0,o.openBlock)(),(0,o.createElementBlock)("small",E,(0,o.toDisplayString)(F.errors.notification_fcm_storage_bucket[0]),1)):(0,o.createCommentVNode)("",!0)]),(0,o.createElementVNode)("div",N,[(0,o.createElementVNode)("label",D,(0,o.toDisplayString)(e.$t("label.notification_fcm_messaging_sender_id")),1),(0,o.withDirectives)((0,o.createElementVNode)("input",{"onUpdate:modelValue":i[5]||(i[5]=function(e){return F.form.notification_fcm_messaging_sender_id=e}),class:(0,o.normalizeClass)([F.errors.notification_fcm_messaging_sender_id?"invalid":"","db-field-control"]),type:"text",id:"notification_fcm_messaging_sender_id"},null,2),[[o.vModelText,F.form.notification_fcm_messaging_sender_id]]),F.errors.notification_fcm_messaging_sender_id?((0,o.openBlock)(),(0,o.createElementBlock)("small",j,(0,o.toDisplayString)(F.errors.notification_fcm_messaging_sender_id[0]),1)):(0,o.createCommentVNode)("",!0)]),(0,o.createElementVNode)("div",S,[(0,o.createElementVNode)("label",C,(0,o.toDisplayString)(e.$t("label.notification_fcm_app_id")),1),(0,o.withDirectives)((0,o.createElementVNode)("input",{"onUpdate:modelValue":i[6]||(i[6]=function(e){return F.form.notification_fcm_app_id=e}),class:(0,o.normalizeClass)([F.errors.notification_fcm_app_id?"invalid":"","db-field-control"]),type:"text",id:"notification_fcm_app_id"},null,2),[[o.vModelText,F.form.notification_fcm_app_id]]),F.errors.notification_fcm_app_id?((0,o.openBlock)(),(0,o.createElementBlock)("small",A,(0,o.toDisplayString)(F.errors.notification_fcm_app_id[0]),1)):(0,o.createCommentVNode)("",!0)]),(0,o.createElementVNode)("div",B,[(0,o.createElementVNode)("label",w,(0,o.toDisplayString)(e.$t("label.notification_fcm_measurement_id")),1),(0,o.withDirectives)((0,o.createElementVNode)("input",{"onUpdate:modelValue":i[7]||(i[7]=function(e){return F.form.notification_fcm_measurement_id=e}),class:(0,o.normalizeClass)([F.errors.notification_fcm_measurement_id?"invalid":"","db-field-control"]),type:"text",id:"notification_fcm_measurement_id"},null,2),[[o.vModelText,F.form.notification_fcm_measurement_id]]),F.errors.notification_fcm_measurement_id?((0,o.openBlock)(),(0,o.createElementBlock)("small",x,(0,o.toDisplayString)(F.errors.notification_fcm_measurement_id[0]),1)):(0,o.createCommentVNode)("",!0)]),(0,o.createElementVNode)("div",$,[(0,o.createElementVNode)("label",M,(0,o.toDisplayString)(e.$t("label.file"))+" ("+(0,o.toDisplayString)(e.$t("label.json"))+") ",1),(0,o.createElementVNode)("input",{onChange:i[8]||(i[8]=function(){return I.changeFile&&I.changeFile.apply(I,arguments)}),class:(0,o.normalizeClass)([F.errors.notification_fcm_json_file?"invalid":"","db-field-control"]),id:"notification_fcm_json_file",type:"file",ref:"fileProperty",accept:"application/json"},null,34),F.errors.notification_fcm_json_file?((0,o.openBlock)(),(0,o.createElementBlock)("small",q,(0,o.toDisplayString)(F.errors.notification_fcm_json_file[0]),1)):(0,o.createCommentVNode)("",!0)]),(0,o.createElementVNode)("div",z,[(0,o.createElementVNode)("button",T,[i[10]||(i[10]=(0,o.createElementVNode)("i",{class:"lab lab-fill-save"},null,-1)),(0,o.createElementVNode)("span",null,(0,o.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