[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: 5222.js
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[5222],{1017:(e,t,n)=>{n.d(t,{A:()=>r});var a=n(9726);const o={name:"PaginationBox",components:{TailwindPagination:n(1964).L5},props:{pagination:{type:Object},method:{type:Function}},data:function(){return{activeClass:["bg-blue-50","border-blue-500","text-primary"]}},methods:{page:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.method(e)}}};const r=(0,n(6262).A)(o,[["render",function(e,t,n,o,r,l){var s=(0,a.resolveComponent)("TailwindPagination");return(0,a.openBlock)(),(0,a.createElementBlock)("div",null,[(0,a.createVNode)(s,{data:n.pagination,onPaginationChangePage:l.page,"active-classes":r.activeClass,limit:1},null,8,["data","onPaginationChangePage","active-classes"])])}]])},1751:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(9726),o={class:"flex flex-1 justify-between sm:hidden"};const r={name:"PaginationSMBox",components:{TailwindPagination:n(1964).L5},props:{pagination:{type:Object},method:{type:Function}},data:function(){return{activeClass:["bg-blue-50","border-blue-500","text-primary"]}},methods:{page:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.method(e)}}};const l=(0,n(6262).A)(r,[["render",function(e,t,n,r,l,s){var i=(0,a.resolveComponent)("TailwindPagination");return(0,a.openBlock)(),(0,a.createElementBlock)("div",o,[(0,a.createVNode)(i,{data:n.pagination,onPaginationChangePage:s.page,"active-classes":l.activeClass,limit:-1},null,8,["data","onPaginationChangePage","active-classes"])])}]])},1889:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(9726),o={class:"text-sm text-gray-700"};const r={name:"PaginationTextComponent",props:["props"]};const l=(0,n(6262).A)(r,[["render",function(e,t,n,r,l,s){var i,c;return(0,a.openBlock)(),(0,a.createElementBlock)("div",null,[(0,a.createElementVNode)("p",o,(0,a.toDisplayString)(e.$t("message.pagination_label",{from:null!==(i=n.props.page.from)&&void 0!==i?i:0,to:null!==(c=n.props.page.to)&&void 0!==c?c:0,total:n.props.page.total})),1)])}]])},1964:(e,t,n)=>{n.d(t,{L5:()=>g});var a=n(9726);const o={emits:["pagination-change-page"],props:{data:{type:Object,default:()=>{}},limit:{type:Number,default:0},keepLength:{type:Boolean,default:!1}},computed:{isApiResource(){return!!this.data.meta},currentPage(){var e;return this.isApiResource?this.data.meta.current_page:null!=(e=this.data.current_page)?e:null},firstPageUrl(){var e,t,n,a,o;return null!=(o=null!=(a=null!=(t=this.data.first_page_url)?t:null==(e=this.data.meta)?void 0:e.first_page_url)?a:null==(n=this.data.links)?void 0:n.first)?o:null},from(){var e;return this.isApiResource?this.data.meta.from:null!=(e=this.data.from)?e:null},lastPage(){var e;return this.isApiResource?this.data.meta.last_page:null!=(e=this.data.last_page)?e:null},lastPageUrl(){var e,t,n,a,o;return null!=(o=null!=(a=null!=(t=this.data.last_page_url)?t:null==(e=this.data.meta)?void 0:e.last_page_url)?a:null==(n=this.data.links)?void 0:n.last)?o:null},nextPageUrl(){var e,t,n,a,o;return null!=(o=null!=(a=null!=(t=this.data.next_page_url)?t:null==(e=this.data.meta)?void 0:e.next_page_url)?a:null==(n=this.data.links)?void 0:n.next)?o:null},perPage(){var e;return this.isApiResource?this.data.meta.per_page:null!=(e=this.data.per_page)?e:null},prevPageUrl(){var e,t,n,a,o;return null!=(o=null!=(a=null!=(t=this.data.prev_page_url)?t:null==(e=this.data.meta)?void 0:e.prev_page_url)?a:null==(n=this.data.links)?void 0:n.prev)?o:null},to(){var e;return this.isApiResource?this.data.meta.to:null!=(e=this.data.to)?e:null},total(){var e;return this.isApiResource?this.data.meta.total:null!=(e=this.data.total)?e:null},pageRange(){if(-1===this.limit)return 0;if(0===this.limit)return this.lastPage;for(var e,t=this.currentPage,n=this.keepLength,a=this.lastPage,o=this.limit,r=t-o,l=t+o,s=2*(o+2),i=2*(o+2)-1,c=[],d=[],m=1;m<=a;m++)(1===m||m===a||m>=r&&m<=l||n&&m<s&&t<s-2||n&&m>a-i&&t>a-i+2)&&c.push(m);return c.forEach(function(t){e&&(t-e===2?d.push(e+1):t-e!==1&&d.push("...")),d.push(t),e=t}),d}},methods:{previousPage(){this.selectPage(this.currentPage-1)},nextPage(){this.selectPage(this.currentPage+1)},selectPage(e){"..."===e||e===this.currentPage||this.$emit("pagination-change-page",e)}},render(){return this.$slots.default({data:this.data,limit:this.limit,computed:{isApiResource:this.isApiResource,currentPage:this.currentPage,firstPageUrl:this.firstPageUrl,from:this.from,lastPage:this.lastPage,lastPageUrl:this.lastPageUrl,nextPageUrl:this.nextPageUrl,perPage:this.perPage,prevPageUrl:this.prevPageUrl,to:this.to,total:this.total,pageRange:this.pageRange},prevButtonEvents:{click:e=>{e.preventDefault(),this.previousPage()}},nextButtonEvents:{click:e=>{e.preventDefault(),this.nextPage()}},pageButtonEvents:e=>({click:t=>{t.preventDefault(),this.selectPage(e)}})})}},r=(e,t)=>{const n=e.__vccOpts||e;for(const[e,a]of t)n[e]=a;return n};Boolean,Boolean;Boolean,Boolean;const l={compatConfig:{MODE:3},inheritAttrs:!1,emits:["pagination-change-page"],components:{RenderlessPagination:o},props:{data:{type:Object,default:()=>{}},limit:{type:Number,default:0},keepLength:{type:Boolean,default:!1},itemClasses:{type:Array,default:()=>["bg-white","text-gray-500","border-gray-300","hover:bg-gray-50"]},activeClasses:{type:Array,default:()=>["bg-blue-50","border-blue-500","text-blue-600"]}},methods:{onPaginationChangePage(e){this.$emit("pagination-change-page",e)}}},s=["disabled"],i=(0,a.createElementVNode)("span",{class:"sr-only"},"Previous",-1),c=(0,a.createElementVNode)("svg",{class:"w-5 h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},[(0,a.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})],-1),d=["aria-current","disabled"],m=["disabled"],u=(0,a.createElementVNode)("span",{class:"sr-only"},"Next",-1),p=(0,a.createElementVNode)("svg",{class:"w-5 h-5","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24","stroke-width":"1.5",stroke:"currentColor"},[(0,a.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})],-1);const g=r(l,[["render",function(e,t,n,o,r,l){const g=(0,a.resolveComponent)("RenderlessPagination");return(0,a.openBlock)(),(0,a.createBlock)(g,{data:n.data,limit:n.limit,"keep-length":n.keepLength,onPaginationChangePage:l.onPaginationChangePage},{default:(0,a.withCtx)(t=>[t.computed.total>t.computed.perPage?((0,a.openBlock)(),(0,a.createElementBlock)("nav",(0,a.mergeProps)({key:0},e.$attrs,{class:"inline-flex -space-x-px rounded-md shadow-sm isolate ltr:flex-row rtl:flex-row-reverse","aria-label":"Pagination"}),[(0,a.createElementVNode)("button",(0,a.mergeProps)({class:["relative inline-flex items-center px-2 py-2 text-sm font-medium border rounded-l-md focus:z-20 disabled:opacity-50",n.itemClasses],disabled:!t.computed.prevPageUrl},(0,a.toHandlers)(t.prevButtonEvents,!0)),[(0,a.renderSlot)(e.$slots,"prev-nav",{},()=>[i,c])],16,s),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(t.computed.pageRange,(e,o)=>((0,a.openBlock)(),(0,a.createElementBlock)("button",(0,a.mergeProps)({class:["relative inline-flex items-center px-4 py-2 text-sm font-medium border focus:z-20",[e==t.computed.currentPage?n.activeClasses:n.itemClasses,e==t.computed.currentPage?"z-30":""]],"aria-current":t.computed.currentPage?"page":null,key:o},(0,a.toHandlers)(t.pageButtonEvents(e),!0),{disabled:e===t.computed.currentPage}),(0,a.toDisplayString)(e),17,d))),128)),(0,a.createElementVNode)("button",(0,a.mergeProps)({class:["relative inline-flex items-center px-2 py-2 text-sm font-medium border rounded-r-md focus:z-20 disabled:opacity-50",n.itemClasses],disabled:!t.computed.nextPageUrl},(0,a.toHandlers)(t.nextButtonEvents,!0)),[(0,a.renderSlot)(e.$slots,"next-nav",{},()=>[u,p])],16,m)],16)):(0,a.createCommentVNode)("",!0)]),_:3},8,["data","limit","keep-length","onPaginationChangePage"])}]])},3721:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(9726),o={class:"db-btn-outline sm danger modal-btn m-0.5"};const r={name:"SmDeleteComponent"};const l=(0,n(6262).A)(r,[["render",function(e,t,n,r,l,s){return(0,a.openBlock)(),(0,a.createElementBlock)("button",o,[t[0]||(t[0]=(0,a.createElementVNode)("i",{class:"lab lab-line-trash"},null,-1)),(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(e.$t("button.delete")),1)])}]])},5222:(e,t,n)=>{n.r(t),n.d(t,{default:()=>Ue});var a=n(9726),o={class:"db-card db-tab-div active"},r={class:"db-card-header border-none"},l={class:"db-card-title"},s={class:"db-card-filter"},i={class:"db-table-responsive"},c={class:"db-table stripe"},d={class:"db-table-head"},m={class:"db-table-head-tr"},u={class:"db-table-head-th"},p={class:"db-table-head-th"},g={class:"db-table-head-th"},h={class:"db-table-head-th"},b={class:"db-table-head-th"},f={class:"db-table-head-th"},y={key:0,class:"db-table-body"},v={key:0,class:"db-table-body-td"},E={key:1,class:"db-table-body-td"},N={class:"db-table-body-td"},V={class:"db-table-body-td"},k={class:"db-table-body-td"},C={class:"db-table-body-td"},x={class:"db-table-body-td"},P={class:"flex justify-start items-center sm:items-start sm:justify-start gap-1.5"},A={key:1,class:"db-table-body"},S={class:"db-table-body-tr"},_={class:"db-table-body-td text-center",colspan:"6"},B={class:"p-4"},D={class:"max-w-[300px] mx-auto mt-2"},w=["src"],$={class:"d-block mt-3 text-lg"},U={key:0,class:"flex items-center justify-between border-t border-gray-200 bg-white px-4 py-6"},L={class:"hidden sm:flex sm:flex-1 sm:items-center sm:justify-between"};var M=n(5475),j={id:"modal",class:"modal"},R={class:"modal-dialog"},O={class:"modal-header"},T={class:"modal-title"},F={class:"modal-body"},z={class:"form-row"},H={class:"form-col-12 sm:form-col-6"},q={for:"name",class:"db-field-title required"},Y={key:0,class:"db-field-alert"},I={class:"form-col-12 sm:form-col-6"},G={for:"symbol",class:"db-field-title required"},J={key:0,class:"db-field-alert"},K={class:"form-col-12 sm:form-col-6"},Q={for:"code",class:"db-field-title required"},W={key:0,class:"db-field-alert"},X={class:"form-col-12 sm:form-col-6"},Z={class:"db-field-title required",for:"yes"},ee={class:"db-field-radio-group"},te={class:"db-field-radio"},ne={class:"custom-radio"},ae=["value"],oe={for:"yes",class:"db-field-label"},re={class:"db-field-radio"},le={class:"custom-radio"},se=["value"],ie={for:"no",class:"db-field-label"},ce={class:"form-col-12 sm:form-col-6"},de={for:"exchange_rate",class:"db-field-title"},me={key:0,class:"db-field-alert"},ue={class:"form-col-12"},pe={class:"modal-btns"},ge={type:"submit",class:"db-btn py-2 text-white bg-primary"};var he=n(8691),be=n(6719),fe=n(9856),ye=n(8655);function ve(e){return ve="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ve(e)}function Ee(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=ve(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=ve(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ve(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Ne={name:"CurrencyCreateComponent",components:{SmModalCreateComponent:he.A,LoadingComponent:M.A},props:["props"],data:function(){return{loading:{isActive:!1},enums:{askEnum:be.A,askEnumArray:Ee(Ee({},be.A.YES,this.$t("label.yes")),be.A.NO,this.$t("label.no"))},errors:{}}},computed:{addButton:function(){return{title:this.$t("button.add_currency")}}},methods:{reset:function(){ye.A.modalHide(),this.$store.dispatch("currency/reset").then().catch(),this.errors={},this.$props.props.form={name:"",symbol:"",code:"",is_cryptocurrency:be.A.NO,exchange_rate:""}},save:function(){var e=this;try{var t=this.$store.getters["currency/temp"].temp_id;this.loading.isActive=!0,this.$store.dispatch("currency/save",this.props).then(function(n){ye.A.modalHide(),e.loading.isActive=!1,fe.A.successFlip(null===t?0:1,e.$t("menu.currencies")),e.props.form={name:"",symbol:"",code:"",is_cryptocurrency:be.A.NO,exchange_rate:""},e.errors={}}).catch(function(t){e.loading.isActive=!1,e.errors=t.response.data.errors})}catch(e){this.loading.isActive=!1,fe.A.error(e)}}}};var Ve=n(6262);const ke=(0,Ve.A)(Ne,[["render",function(e,t,n,o,r,l){var s=(0,a.resolveComponent)("LoadingComponent"),i=(0,a.resolveComponent)("SmModalCreateComponent");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createVNode)(s,{props:r.loading},null,8,["props"]),(0,a.createVNode)(i,{props:l.addButton},null,8,["props"]),(0,a.createElementVNode)("div",j,[(0,a.createElementVNode)("div",R,[(0,a.createElementVNode)("div",O,[(0,a.createElementVNode)("h3",T,(0,a.toDisplayString)(e.$t("menu.currencies")),1),(0,a.createElementVNode)("button",{class:"modal-close fa-solid fa-xmark text-xl text-slate-400 hover:text-red-500",onClick:t[0]||(t[0]=function(){return l.reset&&l.reset.apply(l,arguments)})})]),(0,a.createElementVNode)("div",F,[(0,a.createElementVNode)("form",{onSubmit:t[8]||(t[8]=(0,a.withModifiers)(function(){return l.save&&l.save.apply(l,arguments)},["prevent"]))},[(0,a.createElementVNode)("div",z,[(0,a.createElementVNode)("div",H,[(0,a.createElementVNode)("label",q,(0,a.toDisplayString)(e.$t("label.name")),1),(0,a.withDirectives)((0,a.createElementVNode)("input",{"onUpdate:modelValue":t[1]||(t[1]=function(e){return n.props.form.name=e}),class:(0,a.normalizeClass)([r.errors.name?"invalid":"","db-field-control"]),type:"text",id:"name"},null,2),[[a.vModelText,n.props.form.name]]),r.errors.name?((0,a.openBlock)(),(0,a.createElementBlock)("small",Y,(0,a.toDisplayString)(r.errors.name[0]),1)):(0,a.createCommentVNode)("",!0)]),(0,a.createElementVNode)("div",I,[(0,a.createElementVNode)("label",G,(0,a.toDisplayString)(e.$t("label.symbol")),1),(0,a.withDirectives)((0,a.createElementVNode)("input",{"onUpdate:modelValue":t[2]||(t[2]=function(e){return n.props.form.symbol=e}),class:(0,a.normalizeClass)([r.errors.symbol?"invalid":"","db-field-control"]),type:"text",id:"symbol"},null,2),[[a.vModelText,n.props.form.symbol]]),r.errors.symbol?((0,a.openBlock)(),(0,a.createElementBlock)("small",J,(0,a.toDisplayString)(r.errors.symbol[0]),1)):(0,a.createCommentVNode)("",!0)]),(0,a.createElementVNode)("div",K,[(0,a.createElementVNode)("label",Q,(0,a.toDisplayString)(e.$t("label.code")),1),(0,a.withDirectives)((0,a.createElementVNode)("input",{"onUpdate:modelValue":t[3]||(t[3]=function(e){return n.props.form.code=e}),class:(0,a.normalizeClass)([r.errors.code?"invalid":"","db-field-control"]),type:"text",id:"code"},null,2),[[a.vModelText,n.props.form.code]]),r.errors.code?((0,a.openBlock)(),(0,a.createElementBlock)("small",W,(0,a.toDisplayString)(r.errors.code[0]),1)):(0,a.createCommentVNode)("",!0)]),(0,a.createElementVNode)("div",X,[(0,a.createElementVNode)("label",Z,(0,a.toDisplayString)(e.$t("label.is_cryptocurrency")),1),(0,a.createElementVNode)("div",ee,[(0,a.createElementVNode)("div",te,[(0,a.createElementVNode)("div",ne,[(0,a.withDirectives)((0,a.createElementVNode)("input",{value:r.enums.askEnum.YES,"onUpdate:modelValue":t[4]||(t[4]=function(e){return n.props.form.is_cryptocurrency=e}),id:"yes",type:"radio",class:"custom-radio-field"},null,8,ae),[[a.vModelRadio,n.props.form.is_cryptocurrency]]),t[9]||(t[9]=(0,a.createElementVNode)("span",{class:"custom-radio-span"},null,-1))]),(0,a.createElementVNode)("label",oe,(0,a.toDisplayString)(e.$t("label.yes")),1)]),(0,a.createElementVNode)("div",re,[(0,a.createElementVNode)("div",le,[(0,a.withDirectives)((0,a.createElementVNode)("input",{value:r.enums.askEnum.NO,"onUpdate:modelValue":t[5]||(t[5]=function(e){return n.props.form.is_cryptocurrency=e}),type:"radio",id:"no",class:"custom-radio-field"},null,8,se),[[a.vModelRadio,n.props.form.is_cryptocurrency]]),t[10]||(t[10]=(0,a.createElementVNode)("span",{class:"custom-radio-span"},null,-1))]),(0,a.createElementVNode)("label",ie,(0,a.toDisplayString)(e.$t("label.no")),1)])])]),(0,a.createElementVNode)("div",ce,[(0,a.createElementVNode)("label",de,(0,a.toDisplayString)(e.$t("label.exchange_rate")),1),(0,a.withDirectives)((0,a.createElementVNode)("input",{"onUpdate:modelValue":t[6]||(t[6]=function(e){return n.props.form.exchange_rate=e}),class:(0,a.normalizeClass)([r.errors.exchange_rate?"invalid":"","db-field-control"]),type:"text",id:"exchange_rate"},null,2),[[a.vModelText,n.props.form.exchange_rate]]),r.errors.exchange_rate?((0,a.openBlock)(),(0,a.createElementBlock)("small",me,(0,a.toDisplayString)(r.errors.exchange_rate[0]),1)):(0,a.createCommentVNode)("",!0)]),(0,a.createElementVNode)("div",ue,[(0,a.createElementVNode)("div",pe,[(0,a.createElementVNode)("button",{type:"button",class:"modal-btn-outline modal-close",onClick:t[7]||(t[7]=function(){return l.reset&&l.reset.apply(l,arguments)})},[t[11]||(t[11]=(0,a.createElementVNode)("i",{class:"lab lab-fill-close-circle"},null,-1)),(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(e.$t("button.close")),1)]),(0,a.createElementVNode)("button",ge,[t[12]||(t[12]=(0,a.createElementVNode)("i",{class:"lab lab-fill-save"},null,-1)),(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(e.$t("button.save")),1)])])])])],32)])])])],64)}]]);var Ce=n(1889),xe=n(1017),Pe=n(1751),Ae=n(9319),Se=n(3721),_e=n(5458),Be=n(8536);function De(e){return De="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},De(e)}function we(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=De(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var a=n.call(e,t||"default");if("object"!=De(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==De(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const $e={name:"CurrencyListComponent",components:{TableLimitComponent:Ae.A,PaginationSMBox:Pe.A,PaginationBox:xe.A,PaginationTextComponent:Ce.A,CurrencyCreateComponent:ke,LoadingComponent:M.A,SmDeleteComponent:Se.A,SmModalEditComponent:_e.A,askEnum:be.A},data:function(){return{loading:{isActive:!1},enums:{askEnum:be.A,askEnumArray:we(we({},be.A.YES,this.$t("label.yes")),be.A.NO,this.$t("label.no"))},props:{form:{name:"",symbol:"",code:"",is_cryptocurrency:be.A.NO,exchange_rate:""},search:{paginate:1,page:1,per_page:10,order_column:"id",order_type:"desc"}},site_default_currency:null,ENV:Be.A}},mounted:function(){this.list(),this.siteList()},computed:{currencies:function(){return this.$store.getters["currency/lists"]},pagination:function(){return this.$store.getters["currency/pagination"]},paginationPage:function(){return this.$store.getters["currency/page"]}},methods:{askClass:function(e){return ye.A.askClass(e)},textShortener:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:30;return ye.A.textShortener(e,t)},siteList:function(){var e=this;this.loading.isActive=!0,this.$store.dispatch("site/lists").then(function(t){e.site_default_currency=t.data.data.site_default_currency,e.loading.isActive=!1}).catch(function(t){e.loading.isActive=!1})},list:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.loading.isActive=!0,this.props.search.page=t,this.$store.dispatch("currency/lists",this.props.search).then(function(t){e.loading.isActive=!1}).catch(function(t){e.loading.isActive=!1})},edit:function(e){ye.A.modalShow(),this.loading.isActive=!0,this.$store.dispatch("currency/edit",e.id),this.props.form={name:e.name,symbol:e.symbol,code:e.code,is_cryptocurrency:e.is_cryptocurrency,exchange_rate:e.exchange_rate},this.loading.isActive=!1},destroy:function(e){var t=this;ye.A.destroyConfirmation().then(function(n){try{t.loading.isActive=!0,t.$store.dispatch("currency/destroy",{id:e,search:t.props.search}).then(function(e){t.loading.isActive=!1,fe.A.successFlip(null,t.$t("menu.currencies"))}).catch(function(e){t.loading.isActive=!1,fe.A.error(e.response.data.message)})}catch(e){t.loading.isActive=!1,fe.A.error(e.response.data.message)}}).catch(function(e){t.loading.isActive=!1})}}},Ue=(0,Ve.A)($e,[["render",function(e,t,n,M,j,R){var O=(0,a.resolveComponent)("LoadingComponent"),T=(0,a.resolveComponent)("TableLimitComponent"),F=(0,a.resolveComponent)("CurrencyCreateComponent"),z=(0,a.resolveComponent)("SmModalEditComponent"),H=(0,a.resolveComponent)("SmDeleteComponent"),q=(0,a.resolveComponent)("PaginationSMBox"),Y=(0,a.resolveComponent)("PaginationTextComponent"),I=(0,a.resolveComponent)("PaginationBox");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createVNode)(O,{props:j.loading},null,8,["props"]),(0,a.createElementVNode)("div",o,[(0,a.createElementVNode)("div",r,[(0,a.createElementVNode)("h3",l,(0,a.toDisplayString)(e.$t("menu.currencies")),1),(0,a.createElementVNode)("div",s,[(0,a.createVNode)(T,{method:R.list,search:j.props.search,page:R.paginationPage},null,8,["method","search","page"]),(0,a.createVNode)(F,{props:j.props},null,8,["props"])])]),(0,a.createElementVNode)("div",i,[(0,a.createElementVNode)("table",c,[(0,a.createElementVNode)("thead",d,[(0,a.createElementVNode)("tr",m,[(0,a.createElementVNode)("th",u,(0,a.toDisplayString)(e.$t("label.name")),1),(0,a.createElementVNode)("th",p,(0,a.toDisplayString)(e.$t("label.symbol")),1),(0,a.createElementVNode)("th",g,(0,a.toDisplayString)(e.$t("label.code")),1),(0,a.createElementVNode)("th",h,(0,a.toDisplayString)(e.$t("label.is_cryptocurrency")),1),(0,a.createElementVNode)("th",b,(0,a.toDisplayString)(e.$t("label.exchange_rate")),1),(0,a.createElementVNode)("th",f,(0,a.toDisplayString)(e.$t("label.action")),1)])]),R.currencies.length>0?((0,a.openBlock)(),(0,a.createElementBlock)("tbody",y,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(R.currencies,function(t){return(0,a.openBlock)(),(0,a.createElementBlock)("tr",{class:"db-table-body-tr",key:t},[j.site_default_currency===t.id?((0,a.openBlock)(),(0,a.createElementBlock)("td",v,(0,a.toDisplayString)(t.name)+"("+(0,a.toDisplayString)(e.$t("label.default"))+") ",1)):((0,a.openBlock)(),(0,a.createElementBlock)("td",E,(0,a.toDisplayString)(t.name),1)),(0,a.createElementVNode)("td",N,(0,a.toDisplayString)(t.symbol),1),(0,a.createElementVNode)("td",V,(0,a.toDisplayString)(t.code),1),(0,a.createElementVNode)("td",k,[(0,a.createElementVNode)("span",{class:(0,a.normalizeClass)(R.askClass(t.is_cryptocurrency))},(0,a.toDisplayString)(j.enums.askEnumArray[t.is_cryptocurrency]),3)]),(0,a.createElementVNode)("td",C,(0,a.toDisplayString)(t.exchange_rate),1),(0,a.createElementVNode)("td",x,[(0,a.createElementVNode)("div",P,[(0,a.createVNode)(z,{onClick:function(e){return R.edit(t)}},null,8,["onClick"]),j.site_default_currency!=t.id?((0,a.openBlock)(),(0,a.createBlock)(H,{key:0,onClick:function(e){return R.destroy(t.id)}},null,8,["onClick"])):(0,a.createCommentVNode)("",!0)])])])}),128))])):((0,a.openBlock)(),(0,a.createElementBlock)("tbody",A,[(0,a.createElementVNode)("tr",S,[(0,a.createElementVNode)("td",_,[(0,a.createElementVNode)("div",B,[(0,a.createElementVNode)("div",D,[(0,a.createElementVNode)("img",{class:"w-full h-full",src:j.ENV.API_URL+"/images/default/not-found/not_found.png",alt:"Not Found"},null,8,w)]),(0,a.createElementVNode)("span",$,(0,a.toDisplayString)(e.$t("message.no_data_found")),1)])])])]))])]),R.currencies.length>0?((0,a.openBlock)(),(0,a.createElementBlock)("div",U,[(0,a.createVNode)(q,{pagination:R.pagination,method:R.list},null,8,["pagination","method"]),(0,a.createElementVNode)("div",L,[(0,a.createVNode)(Y,{props:{page:R.paginationPage}},null,8,["props"]),(0,a.createVNode)(I,{pagination:R.pagination,method:R.list},null,8,["pagination","method"])])])):(0,a.createCommentVNode)("",!0)])],64)}]])},5458:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(9726),o={class:"db-btn-outline sm success modal-btn m-0.5"};const r={name:"SmModalEditComponent"};const l=(0,n(6262).A)(r,[["render",function(e,t,n,r,l,s){return(0,a.openBlock)(),(0,a.createElementBlock)("button",o,[t[0]||(t[0]=(0,a.createElementVNode)("i",{class:"lab lab-line-edit"},null,-1)),(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(e.$t("button.edit")),1)])}]])},8691:(e,t,n)=>{n.d(t,{A:()=>l});var a=n(9726);var o=n(8655);const r={name:"SmModalCreateComponent",props:["props"],methods:{add:function(){o.A.modalShow()}}};const l=(0,n(6262).A)(r,[["render",function(e,t,n,o,r,l){return(0,a.openBlock)(),(0,a.createElementBlock)("button",{type:"button",onClick:t[0]||(t[0]=function(){return l.add&&l.add.apply(l,arguments)}),"data-modal":"#modal",class:"db-btn h-[37px] text-white bg-primary"},[t[1]||(t[1]=(0,a.createElementVNode)("i",{class:"lab lab-line-add-circle"},null,-1)),(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(n.props.title),1)])}]])},9319:(e,t,n)=>{n.d(t,{A:()=>u});var a=n(9726),o={key:0,class:"db-field-down-arrow"},r={value:"10"},l={value:"25"},s={value:"50"},i={value:"100"},c={value:"500"},d={value:"1000"};const m={name:"TableLimitComponent",props:{page:{type:Object},search:{type:Object},method:{type:Function}},methods:{limitChange:function(){this.method()}}};const u=(0,n(6262).A)(m,[["render",function(e,t,n,m,u,p){return n.page.total>10?((0,a.openBlock)(),(0,a.createElementBlock)("div",o,[(0,a.withDirectives)((0,a.createElementVNode)("select",{onChange:t[0]||(t[0]=function(){return p.limitChange&&p.limitChange.apply(p,arguments)}),"onUpdate:modelValue":t[1]||(t[1]=function(e){return n.search.per_page=e}),class:"db-card-filter-select"},[(0,a.createElementVNode)("option",r,(0,a.toDisplayString)(e.$t("number.10")),1),(0,a.createElementVNode)("option",l,(0,a.toDisplayString)(e.$t("number.25")),1),(0,a.createElementVNode)("option",s,(0,a.toDisplayString)(e.$t("number.50")),1),(0,a.createElementVNode)("option",i,(0,a.toDisplayString)(e.$t("number.100")),1),(0,a.createElementVNode)("option",c,(0,a.toDisplayString)(e.$t("number.500")),1),(0,a.createElementVNode)("option",d,(0,a.toDisplayString)(e.$t("number.1000")),1)],544),[[a.vModelSelect,n.search.per_page]])])):(0,a.createCommentVNode)("",!0)}]])}}]);
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