[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: 6791.js
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[6791],{6791:(e,t,o)=>{o.r(t),o.d(t,{default:()=>A});var l=o(9726),i={id:"otp",class:"db-card db-tab-div active"},a={class:"db-card-header"},r={class:"db-card-title"},n={class:"db-card-body"},s={class:"form-row"},c={class:"form-col-12 sm:form-col-6"},d={for:"otp_type",class:"db-field-title required"},m={key:0,class:"db-field-alert"},p={class:"form-col-12 sm:form-col-6"},u={for:"otp_digit_limit",class:"db-field-title required"},f={key:0,class:"db-field-alert"},_={class:"form-col-12 sm:form-col-6"},b={for:"otp_expire_time",class:"db-field-title required"},v={key:0,class:"db-field-alert"},h={class:"form-col-12"},g={type:"submit",class:"db-btn text-white bg-primary"};var y=o(5475),V=o(9856);const E=Object.freeze([{id:"5",name:"BOTH"},{id:"10",name:"SMS"},{id:"15",name:"EMAIL"}]);const N=Object.freeze([{id:"4",name:"4"},{id:"6",name:"6"},{id:"8",name:"8"}]);const k=Object.freeze([{id:"5",name:"5 Minutes"},{id:"10",name:"10 Minutes"},{id:"15",name:"15 Minutes"},{id:"20",name:"20 Minutes"},{id:"30",name:"30 Minutes"},{id:"60",name:"60 Minutes"}]),C={name:"OtpComponent",components:{LoadingComponent:y.A},data:function(){return{loading:{isActive:!1},form:{otp_type:null,otp_digit_limit:null,otp_expire_time:null},enums:{otpTypeEnum:E,otpDigitLimitEnum:N,otpExpireTimeEnum:k},errors:{}}},mounted:function(){var e=this;try{this.loading.isActive=!0,this.$store.dispatch("otp/lists").then(function(t){e.form.otp_type=t.data.data.otp_type,e.form.otp_digit_limit=t.data.data.otp_digit_limit,e.form.otp_expire_time=t.data.data.otp_expire_time,e.loading.isActive=!1}).catch(function(t){e.loading.isActive=!1})}catch(e){this.loading.isActive=!1,V.A.error(e)}},methods:{save:function(){var e=this;try{this.loading.isActive=!0,this.$store.dispatch("otp/save",this.form).then(function(t){var o;e.loading.isActive=!1,V.A.successFlip(null!==(o="put"===t.config.method)&&void 0!==o?o:0,e.$t("menu.otp")),e.errors={}}).catch(function(t){e.loading.isActive=!1,e.errors=t.response.data.errors})}catch(e){this.loading.isActive=!1,V.A.error(e)}}}};const A=(0,o(6262).A)(C,[["render",function(e,t,o,y,V,E){var N=(0,l.resolveComponent)("LoadingComponent"),k=(0,l.resolveComponent)("vue-select");return(0,l.openBlock)(),(0,l.createElementBlock)(l.Fragment,null,[(0,l.createVNode)(N,{props:V.loading},null,8,["props"]),(0,l.createElementVNode)("div",i,[(0,l.createElementVNode)("div",a,[(0,l.createElementVNode)("h3",r,(0,l.toDisplayString)(e.$t("menu.otp")),1)]),(0,l.createElementVNode)("div",n,[(0,l.createElementVNode)("form",{onSubmit:t[3]||(t[3]=(0,l.withModifiers)(function(){return E.save&&E.save.apply(E,arguments)},["prevent"])),class:"w-full d-block"},[(0,l.createElementVNode)("div",s,[(0,l.createElementVNode)("div",c,[(0,l.createElementVNode)("label",d,(0,l.toDisplayString)(e.$t("label.otp_type")),1),(0,l.createVNode)(k,{class:(0,l.normalizeClass)(["db-field-control f-b-custom-select",V.errors.otp_type?"invalid":""]),id:"otp_type",modelValue:V.form.otp_type,"onUpdate:modelValue":t[0]||(t[0]=function(e){return V.form.otp_type=e}),options:V.enums.otpTypeEnum,"label-by":"name","value-by":"id",closeOnSelect:!0,searchable:!0,clearOnClose:!0,placeholder:"--","search-placeholder":"--"},null,8,["class","modelValue","options"]),V.errors.otp_type?((0,l.openBlock)(),(0,l.createElementBlock)("small",m,(0,l.toDisplayString)(V.errors.otp_type[0]),1)):(0,l.createCommentVNode)("",!0)]),(0,l.createElementVNode)("div",p,[(0,l.createElementVNode)("label",u,(0,l.toDisplayString)(e.$t("label.otp_digit_limit")),1),(0,l.createVNode)(k,{class:(0,l.normalizeClass)(["db-field-control f-b-custom-select",V.errors.otp_digit_limit?"invalid":""]),id:"otp_digit_limit",modelValue:V.form.otp_digit_limit,"onUpdate:modelValue":t[1]||(t[1]=function(e){return V.form.otp_digit_limit=e}),options:V.enums.otpDigitLimitEnum,"label-by":"name","value-by":"id",closeOnSelect:!0,searchable:!0,clearOnClose:!0,placeholder:"--","search-placeholder":"--"},null,8,["class","modelValue","options"]),V.errors.otp_digit_limit?((0,l.openBlock)(),(0,l.createElementBlock)("small",f,(0,l.toDisplayString)(V.errors.otp_digit_limit[0]),1)):(0,l.createCommentVNode)("",!0)]),(0,l.createElementVNode)("div",_,[(0,l.createElementVNode)("label",b,(0,l.toDisplayString)(e.$t("label.otp_expire_time")),1),(0,l.createVNode)(k,{class:(0,l.normalizeClass)(["db-field-control f-b-custom-select",V.errors.otp_expire_time?"invalid":""]),id:"otp_expire_time",modelValue:V.form.otp_expire_time,"onUpdate:modelValue":t[2]||(t[2]=function(e){return V.form.otp_expire_time=e}),options:V.enums.otpExpireTimeEnum,"label-by":"name","value-by":"id",closeOnSelect:!0,searchable:!0,clearOnClose:!0,placeholder:"--","search-placeholder":"--"},null,8,["class","modelValue","options"]),V.errors.otp_expire_time?((0,l.openBlock)(),(0,l.createElementBlock)("small",v,(0,l.toDisplayString)(V.errors.otp_expire_time[0]),1)):(0,l.createCommentVNode)("",!0)]),(0,l.createElementVNode)("div",h,[(0,l.createElementVNode)("button",g,[t[4]||(t[4]=(0,l.createElementVNode)("i",{class:"lab lab-fill-save"},null,-1)),(0,l.createElementVNode)("span",null,(0,l.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