[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: 6238.js
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[6238],{1017:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(9726);const a={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)(a,[["render",function(e,t,n,a,r,l){var i=(0,o.resolveComponent)("TailwindPagination");return(0,o.openBlock)(),(0,o.createElementBlock)("div",null,[(0,o.createVNode)(i,{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 o=n(9726),a={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,i){var s=(0,o.resolveComponent)("TailwindPagination");return(0,o.openBlock)(),(0,o.createElementBlock)("div",a,[(0,o.createVNode)(s,{data:n.pagination,onPaginationChangePage:i.page,"active-classes":l.activeClass,limit:-1},null,8,["data","onPaginationChangePage","active-classes"])])}]])},1889:(e,t,n)=>{n.d(t,{A:()=>l});var o=n(9726),a={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,i){var s,c;return(0,o.openBlock)(),(0,o.createElementBlock)("div",null,[(0,o.createElementVNode)("p",a,(0,o.toDisplayString)(e.$t("message.pagination_label",{from:null!==(s=n.props.page.from)&&void 0!==s?s: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 o=n(9726);const a={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,o,a;return null!=(a=null!=(o=null!=(t=this.data.first_page_url)?t:null==(e=this.data.meta)?void 0:e.first_page_url)?o:null==(n=this.data.links)?void 0:n.first)?a: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,o,a;return null!=(a=null!=(o=null!=(t=this.data.last_page_url)?t:null==(e=this.data.meta)?void 0:e.last_page_url)?o:null==(n=this.data.links)?void 0:n.last)?a:null},nextPageUrl(){var e,t,n,o,a;return null!=(a=null!=(o=null!=(t=this.data.next_page_url)?t:null==(e=this.data.meta)?void 0:e.next_page_url)?o:null==(n=this.data.links)?void 0:n.next)?a: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,o,a;return null!=(a=null!=(o=null!=(t=this.data.prev_page_url)?t:null==(e=this.data.meta)?void 0:e.prev_page_url)?o:null==(n=this.data.links)?void 0:n.prev)?a: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,o=this.lastPage,a=this.limit,r=t-a,l=t+a,i=2*(a+2),s=2*(a+2)-1,c=[],d=[],u=1;u<=o;u++)(1===u||u===o||u>=r&&u<=l||n&&u<i&&t<i-2||n&&u>o-s&&t>o-s+2)&&c.push(u);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,o]of t)n[e]=o;return n};Boolean,Boolean;Boolean,Boolean;const l={compatConfig:{MODE:3},inheritAttrs:!1,emits:["pagination-change-page"],components:{RenderlessPagination:a},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)}}},i=["disabled"],s=(0,o.createElementVNode)("span",{class:"sr-only"},"Previous",-1),c=(0,o.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,o.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"})],-1),d=["aria-current","disabled"],u=["disabled"],p=(0,o.createElementVNode)("span",{class:"sr-only"},"Next",-1),m=(0,o.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,o.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,a,r,l){const g=(0,o.resolveComponent)("RenderlessPagination");return(0,o.openBlock)(),(0,o.createBlock)(g,{data:n.data,limit:n.limit,"keep-length":n.keepLength,onPaginationChangePage:l.onPaginationChangePage},{default:(0,o.withCtx)(t=>[t.computed.total>t.computed.perPage?((0,o.openBlock)(),(0,o.createElementBlock)("nav",(0,o.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,o.createElementVNode)("button",(0,o.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,o.toHandlers)(t.prevButtonEvents,!0)),[(0,o.renderSlot)(e.$slots,"prev-nav",{},()=>[s,c])],16,i),((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(t.computed.pageRange,(e,a)=>((0,o.openBlock)(),(0,o.createElementBlock)("button",(0,o.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:a},(0,o.toHandlers)(t.pageButtonEvents(e),!0),{disabled:e===t.computed.currentPage}),(0,o.toDisplayString)(e),17,d))),128)),(0,o.createElementVNode)("button",(0,o.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,o.toHandlers)(t.nextButtonEvents,!0)),[(0,o.renderSlot)(e.$slots,"next-nav",{},()=>[p,m])],16,u)],16)):(0,o.createCommentVNode)("",!0)]),_:3},8,["data","limit","keep-length","onPaginationChangePage"])}]])},6238:(e,t,n)=>{n.r(t),n.d(t,{default:()=>ke});var o=n(9726),a={class:"col-12"},r={id:"productSection",class:"db-tab-div active"},l={class:"grid sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-3 mb-5"},i={class:"db-card tab-content active",id:"productSectionInformation"},s={class:"db-card-header"},c={class:"db-card-title"},d={class:"db-card-body"},u={class:"row py-2"},p={class:"col-12 sm:col-6 !py-1.5"},m={class:"db-list-item p-0"},g={class:"db-list-item-title w-full sm:w-1/2"},b={class:"db-list-item-text w-full sm:w-1/2"},h={class:"col-12 sm:col-6 !py-1.5"},v={class:"db-list-item p-0"},f={class:"db-list-item-title w-full sm:w-1/2"},y={class:"db-list-item-text w-full sm:w-1/2"},E={class:"col-12 sm:col-6 !py-1.5"},P={class:"db-list-item p-0"},S={class:"db-list-item-title w-full sm:w-1/2"},N={class:"db-list-item-text"},V={class:"db-card tab-content",id:"productSectionProduct"};var C=n(5475),A=n(9856),k=n(8655),x=n(4233),w=n(6884),B={class:"db-card-header border-none"},$={class:"db-card-title"},_={class:"db-card-filter"},D={class:"db-table-responsive"},T={class:"db-table stripe"},j={class:"db-table-head"},L={class:"db-table-head-tr"},I={class:"db-table-head-th"},M={class:"db-table-head-th"},U={class:"db-table-head-th"},R={class:"db-table-head-th"},O={key:0,class:"db-table-body"},z={class:"db-table-body-td"},F={class:"db-table-body-td"},H={class:"db-table-body-td"},q={class:"db-table-body-td"},G={class:"flex items-center justify-between border-t border-gray-200 bg-white px-4 py-6"},J={class:"hidden sm:flex sm:flex-1 sm:items-center sm:justify-between"};var K=n(7120),Q=n(9590),W=n(7564),X={id:"addonModal",class:"modal"},Y={class:"modal-dialog"},Z={class:"modal-header"},ee={class:"modal-title"},te={class:"modal-body"},ne={key:0,class:"form-row"},oe={class:"form-col-12 db-field-alert"},ae={class:"form-row"},re={class:"form-col-12 sm:form-col-12"},le={for:"product_id",class:"db-field-title required"},ie={key:0,class:"db-field-alert"},se={class:"form-col-12"},ce={class:"modal-btns"},de={type:"submit",class:"db-btn py-2 text-white bg-primary"};function ue(e){return ue="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},ue(e)}function pe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=ue(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ue(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ue(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const me={name:"ProductSectionProductCreateComponent",components:{LoadingComponent:C.A},props:["props"],data:function(){return{loading:{isActive:!1},enums:{statusEnum:w.A,statusEnumArray:pe(pe({},w.A.ACTIVE,this.$t("label.active")),w.A.INACTIVE,this.$t("label.inactive"))},errors:{},message:null}},computed:{products:function(){return this.$store.getters["product/lists"]},addButton:function(){return{title:this.$t("button.add_product")}}},mounted:function(){this.loading.isActive=!0,this.$store.dispatch("product/lists",{paginate:0,order_column:"id",order_type:"asc",status:w.A.ACTIVE}),this.loading.isActive=!1},methods:{add:function(){k.A.modalShow()},numberOnly:function(e){return k.A.floatNumber(e)},reset:function(){k.A.modalHide(),this.$store.dispatch("productSectionProduct/reset").then().catch(),this.errors={},this.$props.props.form={product_id:null},this.message=null},save:function(){var e=this;try{var t=this.$store.getters["productSectionProduct/temp"].temp_id;this.loading.isActive=!0,this.$store.dispatch("productSectionProduct/save",this.props).then(function(n){k.A.modalHide(),e.loading.isActive=!1,A.A.successFlip(null===t?0:1,e.$t("label.product")),e.props.form={product_id:null},e.errors={},e.message=null}).catch(function(t){e.loading.isActive=!1,void 0===t.response.data.errors?t.response.data.message?(e.errors={},e.message=t.response.data.message):e.message=null:(e.message=null,e.errors=t.response.data.errors)})}catch(e){this.loading.isActive=!1,A.A.error(e)}}}};var ge=n(6262);const be=(0,ge.A)(me,[["render",function(e,t,n,a,r,l){var i=(0,o.resolveComponent)("LoadingComponent"),s=(0,o.resolveComponent)("vue-select");return(0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,null,[(0,o.createVNode)(i,{props:r.loading},null,8,["props"]),(0,o.createElementVNode)("button",{type:"button",onClick:t[0]||(t[0]=function(){return l.add&&l.add.apply(l,arguments)}),"data-modal":"#addonModal",class:"db-btn h-[37px] text-white bg-primary"},[t[5]||(t[5]=(0,o.createElementVNode)("i",{class:"lab lab-line-add-circle"},null,-1)),(0,o.createElementVNode)("span",null,(0,o.toDisplayString)(l.addButton.title),1)]),(0,o.createElementVNode)("div",X,[(0,o.createElementVNode)("div",Y,[(0,o.createElementVNode)("div",Z,[(0,o.createElementVNode)("h3",ee,(0,o.toDisplayString)(e.$t("menu.products")),1),(0,o.createElementVNode)("button",{class:"modal-close fa-solid fa-xmark text-xl text-slate-400 hover:text-red-500",onClick:t[1]||(t[1]=function(){return l.reset&&l.reset.apply(l,arguments)})})]),(0,o.createElementVNode)("div",te,[r.message?((0,o.openBlock)(),(0,o.createElementBlock)("div",ne,[(0,o.createElementVNode)("div",oe,(0,o.toDisplayString)(r.message),1)])):(0,o.createCommentVNode)("",!0),(0,o.createElementVNode)("form",{onSubmit:t[4]||(t[4]=(0,o.withModifiers)(function(){return l.save&&l.save.apply(l,arguments)},["prevent"])),class:"d-block w-full"},[(0,o.createElementVNode)("div",ae,[(0,o.createElementVNode)("div",re,[(0,o.createElementVNode)("label",le,(0,o.toDisplayString)(e.$t("label.product")),1),(0,o.createVNode)(s,{class:(0,o.normalizeClass)(["db-field-control f-b-custom-select",r.errors.product_id?"invalid":""]),id:"product_id",modelValue:n.props.form.product_id,"onUpdate:modelValue":t[2]||(t[2]=function(e){return n.props.form.product_id=e}),options:l.products,"label-by":"name","value-by":"id",closeOnSelect:!0,searchable:!0,clearOnClose:!0,placeholder:"--","search-placeholder":"--"},null,8,["class","modelValue","options"]),r.errors.product_id?((0,o.openBlock)(),(0,o.createElementBlock)("small",ie,(0,o.toDisplayString)(r.errors.product_id[0]),1)):(0,o.createCommentVNode)("",!0)]),(0,o.createElementVNode)("div",se,[(0,o.createElementVNode)("div",ce,[(0,o.createElementVNode)("button",{type:"button",class:"modal-btn-outline modal-close",onClick:t[3]||(t[3]=function(){return l.reset&&l.reset.apply(l,arguments)})},[t[6]||(t[6]=(0,o.createElementVNode)("i",{class:"lab lab-fill-close-circle"},null,-1)),(0,o.createElementVNode)("span",null,(0,o.toDisplayString)(e.$t("button.close")),1)]),(0,o.createElementVNode)("button",de,[t[7]||(t[7]=(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)}]]);var he=n(9319),ve=n(1889),fe=n(1017),ye=n(1751);function Ee(e){return Ee="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},Ee(e)}function Pe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=Ee(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=Ee(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ee(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Se={name:"ProductSectionProductListComponent",components:{ProductSectionProductCreateComponent:be,SmSidebarModalCreateComponent:K.A,SmIconModalEditComponent:W.A,SmIconDeleteComponent:Q.A,TableLimitComponent:he.A,PaginationTextComponent:ve.A,PaginationBox:fe.A,PaginationSMBox:ye.A},props:{productSection:{type:Number}},data:function(){return{loading:{isActive:!1},enums:{statusEnum:w.A,statusEnumArray:Pe(Pe({},w.A.ACTIVE,this.$t("label.active")),w.A.INACTIVE,this.$t("label.inactive"))},productSectionProps:{id:this.productSection,form:{product_id:null},search:{id:this.productSection,paginate:1,page:1,per_page:10,order_column:"id",order_type:"desc"}}}},mounted:function(){this.list()},computed:{productSectionProducts:function(){return this.$store.getters["productSectionProduct/lists"]},pagination:function(){return this.$store.getters["productSectionProduct/pagination"]},paginationPage:function(){return this.$store.getters["productSectionProduct/page"]}},methods:{statusClass:function(e){return k.A.statusClass(e)},list:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.loading.isActive=!0,this.productSectionProps.search.page=t,this.$store.dispatch("productSectionProduct/lists",this.productSectionProps.search).then(function(t){e.loading.isActive=!1}).catch(function(t){e.loading.isActive=!1})},destroy:function(e){var t=this;k.A.destroyConfirmation().then(function(n){try{t.loading.isActive=!0,t.$store.dispatch("productSectionProduct/destroy",{productSection:t.productSection,id:e,search:t.productSectionProps.search}).then(function(e){t.loading.isActive=!1,A.A.successFlip(null,t.$t("label.product"))}).catch(function(e){t.loading.isActive=!1,A.A.error(e.response.data.message)})}catch(e){t.loading.isActive=!1,A.A.error(e.response.data.message)}}).catch(function(e){t.loading.isActive=!1})}}},Ne=(0,ge.A)(Se,[["render",function(e,t,n,a,r,l){var i=(0,o.resolveComponent)("ProductSectionProductCreateComponent"),s=(0,o.resolveComponent)("TableLimitComponent"),c=(0,o.resolveComponent)("SmIconDeleteComponent"),d=(0,o.resolveComponent)("PaginationSMBox"),u=(0,o.resolveComponent)("PaginationTextComponent"),p=(0,o.resolveComponent)("PaginationBox");return(0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,null,[(0,o.createElementVNode)("div",B,[(0,o.createElementVNode)("h3",$,(0,o.toDisplayString)(e.$t("menu.products")),1),(0,o.createElementVNode)("div",_,[(0,o.createVNode)(i,{props:r.productSectionProps},null,8,["props"]),(0,o.createVNode)(s,{method:l.list,search:r.productSectionProps.search,page:l.paginationPage},null,8,["method","search","page"])])]),(0,o.createElementVNode)("div",D,[(0,o.createElementVNode)("table",T,[(0,o.createElementVNode)("thead",j,[(0,o.createElementVNode)("tr",L,[(0,o.createElementVNode)("th",I,(0,o.toDisplayString)(e.$t("label.name")),1),(0,o.createElementVNode)("th",M,(0,o.toDisplayString)(e.$t("label.price")),1),(0,o.createElementVNode)("th",U,(0,o.toDisplayString)(e.$t("label.status")),1),(0,o.createElementVNode)("th",R,(0,o.toDisplayString)(e.$t("label.action")),1)])]),l.productSectionProducts.length>0?((0,o.openBlock)(),(0,o.createElementBlock)("tbody",O,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(l.productSectionProducts,function(e){return(0,o.openBlock)(),(0,o.createElementBlock)("tr",{class:"db-table-body-tr",key:e},[(0,o.createElementVNode)("td",z,(0,o.toDisplayString)(e.productSection_product_name),1),(0,o.createElementVNode)("td",F,(0,o.toDisplayString)(e.is_offer?e.discounted_price:e.currency_price),1),(0,o.createElementVNode)("td",H,[(0,o.createElementVNode)("span",{class:(0,o.normalizeClass)(l.statusClass(e.productSection_product_status))},(0,o.toDisplayString)(r.enums.statusEnumArray[e.productSection_product_status]),3)]),(0,o.createElementVNode)("td",q,[(0,o.createVNode)(c,{onClick:function(t){return l.destroy(e.id)}},null,8,["onClick"])])])}),128))])):(0,o.createCommentVNode)("",!0)])]),(0,o.createElementVNode)("div",G,[(0,o.createVNode)(d,{pagination:l.pagination,method:l.list},null,8,["pagination","method"]),(0,o.createElementVNode)("div",J,[(0,o.createVNode)(u,{props:{page:l.paginationPage}},null,8,["props"]),(0,o.createVNode)(p,{pagination:l.pagination,method:l.list},null,8,["pagination","method"])])])],64)}]]);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 Ce(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 o=n.call(e,t||"default");if("object"!=Ve(o))return o;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 Ae={name:"ProductSectionShowComponent",components:{LoadingComponent:C.A,ProductSectionProductListComponent:Ne},data:function(){return{loading:{isActive:!1},enums:{statusEnum:w.A,statusEnumArray:Ce(Ce({},w.A.ACTIVE,this.$t("label.active")),w.A.INACTIVE,this.$t("label.inactive"))}}},computed:{productSection:function(){return this.$store.getters["productSection/show"]}},mounted:function(){var e=this;this.loading.isActive=!0,this.$store.dispatch("productSection/show",this.$route.params.id).then(function(t){e.loading.isActive=!1}).catch(function(t){e.loading.isActive=!1})},methods:{multiTargets:function(e,t,n,o){x.A.multiTargets(e,t,n,o)},statusClass:function(e){return k.A.statusClass(e)}}},ke=(0,ge.A)(Ae,[["render",function(e,t,n,C,A,k){var x=(0,o.resolveComponent)("LoadingComponent"),w=(0,o.resolveComponent)("ProductSectionProductListComponent");return(0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,null,[(0,o.createVNode)(x,{props:A.loading},null,8,["props"]),(0,o.createElementVNode)("div",a,[(0,o.createElementVNode)("div",r,[(0,o.createElementVNode)("div",l,[(0,o.createElementVNode)("button",{onClick:t[0]||(t[0]=(0,o.withModifiers)(function(e){return k.multiTargets(e,"tab-action","tab-content","productSectionInformation")},["prevent"])),class:"tab-action active w-full flex items-center gap-3 h-10 px-4 rounded-lg bg-white hover:text-primary hover:bg-primary/5"},[t[2]||(t[2]=(0,o.createElementVNode)("i",{class:"lab lab-fill-info lab-font-size-16"},null,-1)),(0,o.createTextVNode)(" "+(0,o.toDisplayString)(e.$t("label.information")),1)]),(0,o.createElementVNode)("button",{type:"button",onClick:t[1]||(t[1]=(0,o.withModifiers)(function(e){return k.multiTargets(e,"tab-action","tab-content","productSectionProduct")},["prevent"])),class:"tab-action w-full flex items-center gap-3 h-10 px-4 rounded-lg transition bg-white hover:text-primary hover:bg-primary/5"},[t[3]||(t[3]=(0,o.createElementVNode)("i",{class:"lab lab-fill-products lab-font-size-16"},null,-1)),(0,o.createTextVNode)(" "+(0,o.toDisplayString)(e.$t("label.products")),1)])]),(0,o.createElementVNode)("div",i,[(0,o.createElementVNode)("div",s,[(0,o.createElementVNode)("h3",c,(0,o.toDisplayString)(e.$t("label.information")),1)]),(0,o.createElementVNode)("div",d,[(0,o.createElementVNode)("div",u,[(0,o.createElementVNode)("div",p,[(0,o.createElementVNode)("div",m,[(0,o.createElementVNode)("span",g,(0,o.toDisplayString)(e.$t("label.name")),1),(0,o.createElementVNode)("span",b,(0,o.toDisplayString)(k.productSection.name),1)])]),(0,o.createElementVNode)("div",h,[(0,o.createElementVNode)("div",v,[(0,o.createElementVNode)("span",f,(0,o.toDisplayString)(e.$t("label.slug")),1),(0,o.createElementVNode)("span",y,(0,o.toDisplayString)(k.productSection.slug),1)])]),(0,o.createElementVNode)("div",E,[(0,o.createElementVNode)("div",P,[(0,o.createElementVNode)("span",S,(0,o.toDisplayString)(e.$t("label.status")),1),(0,o.createElementVNode)("span",N,[(0,o.createElementVNode)("span",{class:(0,o.normalizeClass)(k.statusClass(k.productSection.status))},(0,o.toDisplayString)(A.enums.statusEnumArray[k.productSection.status]),3)])])])])])]),(0,o.createElementVNode)("div",V,[(0,o.createVNode)(w,{productSection:parseInt(e.$route.params.id)},null,8,["productSection"])])])])],64)}]])},7120:(e,t,n)=>{n.d(t,{A:()=>l});var o=n(9726);var a=n(5457);const r={name:"SmSidebarModalCreateComponent",props:["props"],data:function(){return{openCanvas:(0,a.y)().openCanvas}}};const l=(0,n(6262).A)(r,[["render",function(e,t,n,a,r,l){return(0,o.openBlock)(),(0,o.createElementBlock)("button",{class:"h-8 px-3 flex items-center gap-2 text-xs tracking-wide capitalize rounded-md shadow text-white bg-primary",onClick:t[0]||(t[0]=(0,o.withModifiers)(function(e){return r.openCanvas("sidebar")},["prevent"]))},[t[1]||(t[1]=(0,o.createElementVNode)("i",{class:"lab lab-line-add-circle"},null,-1)),(0,o.createElementVNode)("span",null,(0,o.toDisplayString)(n.props.title),1)])}]])},7564:(e,t,n)=>{n.d(t,{A:()=>i});var o=n(9726),a={class:"db-table-action edit modal-btn"},r={class:"db-tooltip"};const l={name:"SmIconModalEditComponent"};const i=(0,n(6262).A)(l,[["render",function(e,t,n,l,i,s){return(0,o.openBlock)(),(0,o.createElementBlock)("button",a,[t[0]||(t[0]=(0,o.createElementVNode)("i",{class:"lab lab-line-edit"},null,-1)),(0,o.createElementVNode)("span",r,(0,o.toDisplayString)(e.$t("button.edit")),1)])}]])},9319:(e,t,n)=>{n.d(t,{A:()=>p});var o=n(9726),a={key:0,class:"db-field-down-arrow"},r={value:"10"},l={value:"25"},i={value:"50"},s={value:"100"},c={value:"500"},d={value:"1000"};const u={name:"TableLimitComponent",props:{page:{type:Object},search:{type:Object},method:{type:Function}},methods:{limitChange:function(){this.method()}}};const p=(0,n(6262).A)(u,[["render",function(e,t,n,u,p,m){return n.page.total>10?((0,o.openBlock)(),(0,o.createElementBlock)("div",a,[(0,o.withDirectives)((0,o.createElementVNode)("select",{onChange:t[0]||(t[0]=function(){return m.limitChange&&m.limitChange.apply(m,arguments)}),"onUpdate:modelValue":t[1]||(t[1]=function(e){return n.search.per_page=e}),class:"db-card-filter-select"},[(0,o.createElementVNode)("option",r,(0,o.toDisplayString)(e.$t("number.10")),1),(0,o.createElementVNode)("option",l,(0,o.toDisplayString)(e.$t("number.25")),1),(0,o.createElementVNode)("option",i,(0,o.toDisplayString)(e.$t("number.50")),1),(0,o.createElementVNode)("option",s,(0,o.toDisplayString)(e.$t("number.100")),1),(0,o.createElementVNode)("option",c,(0,o.toDisplayString)(e.$t("number.500")),1),(0,o.createElementVNode)("option",d,(0,o.toDisplayString)(e.$t("number.1000")),1)],544),[[o.vModelSelect,n.search.per_page]])])):(0,o.createCommentVNode)("",!0)}]])},9590:(e,t,n)=>{n.d(t,{A:()=>i});var o=n(9726),a={class:"db-table-action delete"},r={class:"db-tooltip"};const l={name:"SmIconDeleteComponent"};const i=(0,n(6262).A)(l,[["render",function(e,t,n,l,i,s){return(0,o.openBlock)(),(0,o.createElementBlock)("button",a,[t[0]||(t[0]=(0,o.createElementVNode)("i",{class:"lab lab-line-trash"},null,-1)),(0,o.createElementVNode)("span",r,(0,o.toDisplayString)(e.$t("button.delete")),1)])}]])}}]);
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