[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: 6389.js
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[6389],{3022:(e,t,n)=>{n.d(t,{A:()=>a});const a=Object.freeze({TEXT:5,SELECT:10})},6389:(e,t,n)=>{n.r(t),n.d(t,{default:()=>I});var a=n(9726),o={id:"payment",class:"db-tab-div active"},r={class:"grid sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-3 mb-5"},l=["onClick","data-tab"],i={class:"capitalize whitespace-nowrap text-[15px]"},c={key:0,class:"dropdown-group w-full"},s={class:"dropdown-btn w-full flex items-center gap-3 h-10 px-4 rounded-lg transition bg-white hover:text-primary hover:bg-primary/5"},d={class:"capitalize whitespace-nowrap text-[15px]"},m={class:"w-full dropdown-list absolute top-[42px] right-0 z-30 p-2 rounded-md bg-white shadow-lg"},p=["onClick","data-tab"],u=["id"],y={class:"db-card-header"},f={class:"db-card-title"},v={class:"db-card-body"},g=["onSubmit","id"],b={class:"form-row"},h=["value"],k=["for"],E=["value","name","id"],w=["id","name"],B=["value","selected"],A={key:2,class:"db-field-alert"},x={class:"form-col-12"},N=["id"];var V=n(5475),C=(n(8655),n(9856)),S=n(3022);function z(e){return function(e){if(Array.isArray(e))return G(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 G(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)?G(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 G(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=Array(t);n<t;n++)a[n]=e[n];return a}const T={name:"PaymentGatewayComponent",components:{LoadingComponent:V.A},data:function(){return{loading:{isActive:!1},search:{paginate:0,order_column:"id",order_type:"asc",excepts:"1|2"},selectIndex:0,enums:{inputTypeEnum:S.A},errors:{}}},computed:{paymentGateways:function(){return this.$store.getters["paymentGateway/lists"]}},mounted:function(){var e=this;try{this.loading.isActive=!0,this.$store.dispatch("paymentGateway/lists",this.search).then(function(t){e.loading.isActive=!1}).catch(function(t){e.loading.isActive=!1})}catch(e){this.loading.isActive=!1,C.A.error(e)}},methods:{save:function(e){var t=this;try{var n=document.getElementById("formElem"+e),a={};z(n.elements).filter(function(e){return"BUTTON"!==e.tagName}).forEach(function(e){a[e.name]=e.value}),this.loading.isActive=!0,this.$store.dispatch("paymentGateway/save",{form:a,search:this.search}).then(function(e){var n;t.loading.isActive=!1,C.A.successFlip(null!==(n="put"===e.config.method)&&void 0!==n?n:0,t.$t("menu.payment_gateway")),t.errors={}}).catch(function(e){t.loading.isActive=!1,t.errors=e.response.data.errors})}catch(e){this.loading.isActive=!1,C.A.error(e)}},selectActive:function(e){this.selectIndex=e}}};const I=(0,n(6262).A)(T,[["render",function(e,t,n,V,C,S){var z=(0,a.resolveComponent)("LoadingComponent");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createVNode)(z,{props:C.loading},null,8,["props"]),(0,a.createElementVNode)("div",o,[(0,a.createElementVNode)("div",r,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(S.paymentGateways.slice(0,3),function(e,t){return(0,a.openBlock)(),(0,a.createElementBlock)("button",{onClick:function(e){return S.selectActive(t)},class:(0,a.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===C.selectIndex?"active":""]),"data-tab":"#"+e.slug,key:e},[(0,a.createElementVNode)("span",i,(0,a.toDisplayString)(e.name),1)],10,l)}),128)),S.paymentGateways.length>3?((0,a.openBlock)(),(0,a.createElementBlock)("div",c,[(0,a.createElementVNode)("button",s,[t[0]||(t[0]=(0,a.createElementVNode)("i",{class:"fa-solid fa-circle-chevron-down text-sm"},null,-1)),(0,a.createElementVNode)("span",d,(0,a.toDisplayString)(e.$t("label.more_gateway")),1)]),(0,a.createElementVNode)("div",m,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(S.paymentGateways.slice(3,S.paymentGateways.length),function(e,t){return(0,a.openBlock)(),(0,a.createElementBlock)("button",{onClick:function(e){return S.selectActive(t+3)},class:(0,a.normalizeClass)(["db-tab-sub-btn w-full flex items-center whitespace-nowrap justify-start my-0.5 gap-2.5 pl-3 pr-6 py-1.5 text-sm rounded-md capitalize transition text-gray-500 hover:text-primary hover:bg-primary/5",t+3===C.selectIndex?"active":""]),"data-tab":"#"+e.slug,key:e},(0,a.toDisplayString)(e.name),11,p)}),128))])])):(0,a.createCommentVNode)("",!0)]),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(S.paymentGateways,function(n,o){return(0,a.openBlock)(),(0,a.createElementBlock)("div",{id:n.slug,class:(0,a.normalizeClass)(["db-card db-tab-sub-div",o===C.selectIndex?"active":""]),key:n},[(0,a.createElementVNode)("div",y,[(0,a.createElementVNode)("h3",f,(0,a.toDisplayString)(n.name),1)]),(0,a.createElementVNode)("div",v,[(0,a.createElementVNode)("form",{onSubmit:(0,a.withModifiers)(function(e){return S.save(o)},["prevent"]),id:"formElem"+o,class:"w-full d-block"},[(0,a.createElementVNode)("div",b,[(0,a.createElementVNode)("input",{type:"hidden",value:n.slug,name:"payment_type"},null,8,h),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(n.options,function(t){return(0,a.openBlock)(),(0,a.createElementBlock)("div",{class:"form-col-12 sm:form-col-6",key:t},[(0,a.createElementVNode)("label",{for:t.option,class:"db-field-title"},(0,a.toDisplayString)(e.$t("label."+t.option)),9,k),t.type===C.enums.inputTypeEnum.TEXT?((0,a.openBlock)(),(0,a.createElementBlock)("input",{key:0,type:"text",value:t.value,class:(0,a.normalizeClass)([C.errors[t.option]?"invalid":"","db-field-control"]),name:t.option,id:t.option},null,10,E)):((0,a.openBlock)(),(0,a.createElementBlock)("select",{key:1,class:(0,a.normalizeClass)(["db-field-control",C.errors[t.option]?"invalid":""]),id:t.option,name:t.option},[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(t.activities,function(n,o){return(0,a.openBlock)(),(0,a.createElementBlock)("option",{value:o,selected:o===t.value},(0,a.toDisplayString)(e.$t("label."+n)),9,B)}),256))],10,w)),C.errors[t.option]?((0,a.openBlock)(),(0,a.createElementBlock)("small",A,(0,a.toDisplayString)(C.errors[t.option][0]),1)):(0,a.createCommentVNode)("",!0)])}),128)),(0,a.createElementVNode)("div",x,[(0,a.createElementVNode)("button",{type:"submit",id:"formButton"+o,class:"db-btn text-white bg-primary"},[t[1]||(t[1]=(0,a.createElementVNode)("i",{class:"lab lab-fill-save"},null,-1)),(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(e.$t("button.save")),1)],8,N)])])],40,g)])],10,u)}),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