[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: 1852.js
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[1852],{1017:(e,t,o)=>{o.d(t,{A:()=>r});var a=o(9726);const n={name:"PaginationBox",components:{TailwindPagination:o(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,o(6262).A)(n,[["render",function(e,t,o,n,r,l){var i=(0,a.resolveComponent)("TailwindPagination");return(0,a.openBlock)(),(0,a.createElementBlock)("div",null,[(0,a.createVNode)(i,{data:o.pagination,onPaginationChangePage:l.page,"active-classes":r.activeClass,limit:1},null,8,["data","onPaginationChangePage","active-classes"])])}]])},1751:(e,t,o)=>{o.d(t,{A:()=>l});var a=o(9726),n={class:"flex flex-1 justify-between sm:hidden"};const r={name:"PaginationSMBox",components:{TailwindPagination:o(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,o(6262).A)(r,[["render",function(e,t,o,r,l,i){var s=(0,a.resolveComponent)("TailwindPagination");return(0,a.openBlock)(),(0,a.createElementBlock)("div",n,[(0,a.createVNode)(s,{data:o.pagination,onPaginationChangePage:i.page,"active-classes":l.activeClass,limit:-1},null,8,["data","onPaginationChangePage","active-classes"])])}]])},1852:(e,t,o)=>{o.r(t),o.d(t,{default:()=>He});var a=o(9726),n={class:"col-12"},r={id:"promotion",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:"promotionInformation"},s={class:"db-card-header"},c={class:"db-card-title"},d={class:"db-card-body"},p={class:"row py-2"},m={class:"col-12 sm:col-6 !py-1.5"},u={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"},N={class:"db-list-item p-0"},V={class:"db-list-item-title w-full sm:w-1/2"},P={class:"db-list-item-text w-full sm:w-1/2"},C={class:"col-12 sm:col-6 !py-1.5"},A={class:"db-list-item p-0"},x={class:"db-list-item-title w-full sm:w-1/2"},w={class:"db-list-item-text"},k={class:"db-card tab-content px-4",id:"promotionImage"},S={class:"row py-2"},B={class:"col-12 sm:col-5"},_=["src"],$={class:"mt-2"},D={class:"mt-2"},I={class:"flex gap-3 md:gap-4 py-4"},T={for:"photo",class:"db-btn relative cursor-pointer h-[38px] shadow-[0px_8px_15px_rgba(253,_139,_14,_0.18)] bg-primary text-white"},L={class:"hidden sm:inline-block"},j={key:0,type:"submit",class:"db-btn h-[38px] shadow-[0px_6px_10px_rgba(26,_183,_89,_0.24)] text-white bg-[#1AB759]"},M={class:"hidden sm:inline-block"},U={class:"hidden sm:inline-block"},R={class:"db-card tab-content",id:"promotionProduct"};var O=o(5475),z=o(9856),F=o(8655),H=o(4233),q=o(6884),G=o(8367),J={class:"db-card-header border-none"},K={class:"db-card-title"},Q={class:"db-card-filter"},W={class:"db-table-responsive"},X={class:"db-table stripe"},Y={class:"db-table-head"},Z={class:"db-table-head-tr"},ee={class:"db-table-head-th"},te={class:"db-table-head-th"},oe={class:"db-table-head-th"},ae={class:"db-table-head-th"},ne={key:0,class:"db-table-body"},re={class:"db-table-body-td"},le={class:"db-table-body-td"},ie={class:"db-table-body-td"},se={class:"db-table-body-td"},ce={class:"flex items-center justify-between border-t border-gray-200 bg-white px-4 py-6"},de={class:"hidden sm:flex sm:flex-1 sm:items-center sm:justify-between"};var pe=o(7120),me=o(9590),ue=o(7564),ge={id:"addonModal",class:"modal"},be={class:"modal-dialog"},he={class:"modal-header"},ve={class:"modal-title"},fe={class:"modal-body"},ye={key:0,class:"form-row"},Ee={class:"form-col-12 db-field-alert"},Ne={class:"form-row"},Ve={class:"form-col-12 sm:form-col-12"},Pe={for:"product_id",class:"db-field-title required"},Ce={key:0,class:"db-field-alert"},Ae={class:"form-col-12"},xe={class:"modal-btns"},we={type:"submit",class:"db-btn py-2 text-white bg-primary"};function ke(e){return ke="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},ke(e)}function Se(e,t,o){return(t=function(e){var t=function(e,t){if("object"!=ke(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var a=o.call(e,t||"default");if("object"!=ke(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ke(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}const Be={name:"PromotionProductCreateComponent",components:{LoadingComponent:O.A},props:["props"],data:function(){return{loading:{isActive:!1},enums:{statusEnum:q.A,statusEnumArray:Se(Se({},q.A.ACTIVE,this.$t("label.active")),q.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:q.A.ACTIVE}),this.loading.isActive=!1},methods:{add:function(){F.A.modalShow()},numberOnly:function(e){return F.A.floatNumber(e)},reset:function(){F.A.modalHide(),this.$store.dispatch("promotionProduct/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["promotionProduct/temp"].temp_id;this.loading.isActive=!0,this.$store.dispatch("promotionProduct/save",this.props).then(function(o){F.A.modalHide(),e.loading.isActive=!1,z.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,z.A.error(e)}}}};var _e=o(6262);const $e=(0,_e.A)(Be,[["render",function(e,t,o,n,r,l){var i=(0,a.resolveComponent)("LoadingComponent"),s=(0,a.resolveComponent)("vue-select");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createVNode)(i,{props:r.loading},null,8,["props"]),(0,a.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,a.createElementVNode)("i",{class:"lab lab-line-add-circle"},null,-1)),(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(l.addButton.title),1)]),(0,a.createElementVNode)("div",ge,[(0,a.createElementVNode)("div",be,[(0,a.createElementVNode)("div",he,[(0,a.createElementVNode)("h3",ve,(0,a.toDisplayString)(e.$t("menu.products")),1),(0,a.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,a.createElementVNode)("div",fe,[r.message?((0,a.openBlock)(),(0,a.createElementBlock)("div",ye,[(0,a.createElementVNode)("div",Ee,(0,a.toDisplayString)(r.message),1)])):(0,a.createCommentVNode)("",!0),(0,a.createElementVNode)("form",{onSubmit:t[4]||(t[4]=(0,a.withModifiers)(function(){return l.save&&l.save.apply(l,arguments)},["prevent"])),class:"d-block w-full"},[(0,a.createElementVNode)("div",Ne,[(0,a.createElementVNode)("div",Ve,[(0,a.createElementVNode)("label",Pe,(0,a.toDisplayString)(e.$t("label.product")),1),(0,a.createVNode)(s,{class:(0,a.normalizeClass)(["db-field-control f-b-custom-select",r.errors.product_id?"invalid":""]),id:"product_id",modelValue:o.props.form.product_id,"onUpdate:modelValue":t[2]||(t[2]=function(e){return o.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,a.openBlock)(),(0,a.createElementBlock)("small",Ce,(0,a.toDisplayString)(r.errors.product_id[0]),1)):(0,a.createCommentVNode)("",!0)]),(0,a.createElementVNode)("div",Ae,[(0,a.createElementVNode)("div",xe,[(0,a.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,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",we,[t[7]||(t[7]=(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 De=o(1889),Ie=o(1017),Te=o(1751),Le=o(9319);function je(e){return je="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},je(e)}function Me(e,t,o){return(t=function(e){var t=function(e,t){if("object"!=je(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var a=o.call(e,t||"default");if("object"!=je(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==je(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}const Ue={name:"PromotionProductListComponent",components:{PromotionProductCreateComponent:$e,SmSidebarModalCreateComponent:pe.A,SmIconModalEditComponent:ue.A,SmIconDeleteComponent:me.A,TableLimitComponent:Le.A,PaginationTextComponent:De.A,PaginationBox:Ie.A,PaginationSMBox:Te.A},props:{promotion:{type:Number}},data:function(){return{loading:{isActive:!1},enums:{statusEnum:q.A,statusEnumArray:Me(Me({},q.A.ACTIVE,this.$t("label.active")),q.A.INACTIVE,this.$t("label.inactive"))},promotionProps:{id:this.promotion,form:{product_id:null},search:{id:this.promotion,paginate:1,page:1,per_page:10,order_column:"id",order_type:"desc"}}}},mounted:function(){this.list()},computed:{promotionProducts:function(){return this.$store.getters["promotionProduct/lists"]},pagination:function(){return this.$store.getters["promotionProduct/pagination"]},paginationPage:function(){return this.$store.getters["promotionProduct/page"]}},methods:{statusClass:function(e){return F.A.statusClass(e)},list:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;this.loading.isActive=!0,this.promotionProps.search.page=t,this.$store.dispatch("promotionProduct/lists",this.promotionProps.search).then(function(t){e.loading.isActive=!1}).catch(function(t){e.loading.isActive=!1})},destroy:function(e){var t=this;F.A.destroyConfirmation().then(function(o){try{t.loading.isActive=!0,t.$store.dispatch("promotionProduct/destroy",{promotion:t.promotion,id:e,search:t.promotionProps.search}).then(function(e){t.loading.isActive=!1,z.A.successFlip(null,t.$t("label.product"))}).catch(function(e){t.loading.isActive=!1,z.A.error(e.response.data.message)})}catch(e){t.loading.isActive=!1,z.A.error(e.response.data.message)}}).catch(function(e){t.loading.isActive=!1})}}},Re=(0,_e.A)(Ue,[["render",function(e,t,o,n,r,l){var i=(0,a.resolveComponent)("PromotionProductCreateComponent"),s=(0,a.resolveComponent)("TableLimitComponent"),c=(0,a.resolveComponent)("SmIconDeleteComponent"),d=(0,a.resolveComponent)("PaginationSMBox"),p=(0,a.resolveComponent)("PaginationTextComponent"),m=(0,a.resolveComponent)("PaginationBox");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createElementVNode)("div",J,[(0,a.createElementVNode)("h3",K,(0,a.toDisplayString)(e.$t("menu.products")),1),(0,a.createElementVNode)("div",Q,[(0,a.createVNode)(i,{props:r.promotionProps},null,8,["props"]),(0,a.createVNode)(s,{method:l.list,search:r.promotionProps.search,page:l.paginationPage},null,8,["method","search","page"])])]),(0,a.createElementVNode)("div",W,[(0,a.createElementVNode)("table",X,[(0,a.createElementVNode)("thead",Y,[(0,a.createElementVNode)("tr",Z,[(0,a.createElementVNode)("th",ee,(0,a.toDisplayString)(e.$t("label.name")),1),(0,a.createElementVNode)("th",te,(0,a.toDisplayString)(e.$t("label.price")),1),(0,a.createElementVNode)("th",oe,(0,a.toDisplayString)(e.$t("label.status")),1),(0,a.createElementVNode)("th",ae,(0,a.toDisplayString)(e.$t("label.action")),1)])]),l.promotionProducts.length>0?((0,a.openBlock)(),(0,a.createElementBlock)("tbody",ne,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(l.promotionProducts,function(e){return(0,a.openBlock)(),(0,a.createElementBlock)("tr",{class:"db-table-body-tr",key:e},[(0,a.createElementVNode)("td",re,(0,a.toDisplayString)(e.promotion_product_name),1),(0,a.createElementVNode)("td",le,(0,a.toDisplayString)(e.is_offer?e.discounted_price:e.currency_price),1),(0,a.createElementVNode)("td",ie,[(0,a.createElementVNode)("span",{class:(0,a.normalizeClass)(l.statusClass(e.promotion_product_status))},(0,a.toDisplayString)(r.enums.statusEnumArray[e.promotion_product_status]),3)]),(0,a.createElementVNode)("td",se,[(0,a.createVNode)(c,{onClick:function(t){return l.destroy(e.id)}},null,8,["onClick"])])])}),128))])):(0,a.createCommentVNode)("",!0)])]),(0,a.createElementVNode)("div",ce,[(0,a.createVNode)(d,{pagination:l.pagination,method:l.list},null,8,["pagination","method"]),(0,a.createElementVNode)("div",de,[(0,a.createVNode)(p,{props:{page:l.paginationPage}},null,8,["props"]),(0,a.createVNode)(m,{pagination:l.pagination,method:l.list},null,8,["pagination","method"])])])],64)}]]);function Oe(e){return Oe="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},Oe(e)}function ze(e,t,o){return(t=function(e){var t=function(e,t){if("object"!=Oe(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var a=o.call(e,t||"default");if("object"!=Oe(a))return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Oe(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}const Fe={name:"PromotionShowComponent",components:{LoadingComponent:O.A,PromotionProductListComponent:Re},data:function(){return{loading:{isActive:!1},enums:{statusEnum:q.A,promotionTypeEnum:G.A,statusEnumArray:ze(ze({},q.A.ACTIVE,this.$t("label.active")),q.A.INACTIVE,this.$t("label.inactive")),promotionTypeEnumArray:ze(ze({},G.A.SMALL,this.$t("label.small")),G.A.BIG,this.$t("label.big"))},defaultImage:null,previewImage:null,uploadButton:!0,resetButton:!1,saveButton:!1}},computed:{promotion:function(){return this.$store.getters["promotion/show"]}},mounted:function(){var e=this;this.loading.isActive=!0,this.$store.dispatch("promotion/show",this.$route.params.id).then(function(t){e.defaultImage=t.data.data.cover,e.previewImage=t.data.data.cover,e.loading.isActive=!1}).catch(function(t){e.loading.isActive=!1})},methods:{multiTargets:function(e,t,o,a){H.A.multiTargets(e,t,o,a)},statusClass:function(e){return F.A.statusClass(e)},changePreviewImage:function(e){e.target.files[0]&&(this.previewImage=URL.createObjectURL(e.target.files[0]),this.saveButton=!0,this.resetButton=!0)},resetPreviewImage:function(){this.$refs.imageProperty.value=null,this.previewImage=this.defaultImage,this.saveButton=!1,this.resetButton=!1},saveImage:function(){var e=this;if(this.$refs.imageProperty.files[0])try{this.loading.isActive=!0;var t=new FormData;t.append("image",this.$refs.imageProperty.files[0]),this.$store.dispatch("promotion/changeImage",{id:this.$route.params.id,form:t}).then(function(t){z.A.success(e.$t("message.image_update")),e.defaultImage=t.data.data.cover,e.previewImage=t.data.data.cover,e.$refs.imageProperty.value=null,e.saveButton=!1,e.resetButton=!1,e.loading.isActive=!1}).catch(function(t){e.loading.isActive=!1,e.imageErrors=t.response.data.errors})}catch(e){this.loading.isActive=!1,z.A.error(e.response.data.message)}}}},He=(0,_e.A)(Fe,[["render",function(e,t,o,O,z,F){var H=(0,a.resolveComponent)("LoadingComponent"),q=(0,a.resolveComponent)("PromotionProductListComponent");return(0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createVNode)(H,{props:z.loading},null,8,["props"]),(0,a.createElementVNode)("div",n,[(0,a.createElementVNode)("div",r,[(0,a.createElementVNode)("div",l,[(0,a.createElementVNode)("button",{onClick:t[0]||(t[0]=(0,a.withModifiers)(function(e){return F.multiTargets(e,"tab-action","tab-content","promotionInformation")},["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[6]||(t[6]=(0,a.createElementVNode)("i",{class:"lab lab-fill-info lab-font-size-16"},null,-1)),(0,a.createTextVNode)(" "+(0,a.toDisplayString)(e.$t("label.information")),1)]),(0,a.createElementVNode)("button",{type:"button",onClick:t[1]||(t[1]=(0,a.withModifiers)(function(e){return F.multiTargets(e,"tab-action","tab-content","promotionImage")},["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[7]||(t[7]=(0,a.createElementVNode)("i",{class:"lab lab-fill-image lab-font-size-16"},null,-1)),(0,a.createTextVNode)(" "+(0,a.toDisplayString)(e.$t("label.images")),1)]),(0,a.createElementVNode)("button",{type:"button",onClick:t[2]||(t[2]=(0,a.withModifiers)(function(e){return F.multiTargets(e,"tab-action","tab-content","promotionProduct")},["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[8]||(t[8]=(0,a.createElementVNode)("i",{class:"lab lab-fill-products lab-font-size-16"},null,-1)),(0,a.createTextVNode)(" "+(0,a.toDisplayString)(e.$t("label.products")),1)])]),(0,a.createElementVNode)("div",i,[(0,a.createElementVNode)("div",s,[(0,a.createElementVNode)("h3",c,(0,a.toDisplayString)(e.$t("label.information")),1)]),(0,a.createElementVNode)("div",d,[(0,a.createElementVNode)("div",p,[(0,a.createElementVNode)("div",m,[(0,a.createElementVNode)("div",u,[(0,a.createElementVNode)("span",g,(0,a.toDisplayString)(e.$t("label.name")),1),(0,a.createElementVNode)("span",b,(0,a.toDisplayString)(F.promotion.name),1)])]),(0,a.createElementVNode)("div",h,[(0,a.createElementVNode)("div",v,[(0,a.createElementVNode)("span",f,(0,a.toDisplayString)(e.$t("label.slug")),1),(0,a.createElementVNode)("span",y,(0,a.toDisplayString)(F.promotion.slug),1)])]),(0,a.createElementVNode)("div",E,[(0,a.createElementVNode)("div",N,[(0,a.createElementVNode)("span",V,(0,a.toDisplayString)(e.$t("label.type")),1),(0,a.createElementVNode)("span",P,(0,a.toDisplayString)(z.enums.promotionTypeEnumArray[F.promotion.type]),1)])]),(0,a.createElementVNode)("div",C,[(0,a.createElementVNode)("div",A,[(0,a.createElementVNode)("span",x,(0,a.toDisplayString)(e.$t("label.status")),1),(0,a.createElementVNode)("span",w,[(0,a.createElementVNode)("span",{class:(0,a.normalizeClass)(F.statusClass(F.promotion.status))},(0,a.toDisplayString)(z.enums.statusEnumArray[F.promotion.status]),3)])])])])])]),(0,a.createElementVNode)("div",k,[(0,a.createElementVNode)("div",S,[(0,a.createElementVNode)("div",B,[(0,a.createElementVNode)("img",{class:"db-image",alt:"slider",src:z.previewImage},null,8,_)]),(0,a.createElementVNode)("form",{onSubmit:t[5]||(t[5]=(0,a.withModifiers)(function(){return F.saveImage&&F.saveImage.apply(F,arguments)},["prevent"]))},[(0,a.createElementVNode)("p",$,(0,a.toDisplayString)(e.$t("label.small_size"))+": (360px,224px)",1),(0,a.createElementVNode)("p",D,(0,a.toDisplayString)(e.$t("label.big_size"))+": (1126px,400px)",1),(0,a.createElementVNode)("div",I,[(0,a.createElementVNode)("label",T,[t[9]||(t[9]=(0,a.createElementVNode)("i",{class:"lab lab-line-upload-image"},null,-1)),(0,a.createElementVNode)("span",L,(0,a.toDisplayString)(e.$t("button.upload_new_image")),1),z.uploadButton?((0,a.openBlock)(),(0,a.createElementBlock)("input",{key:0,onChange:t[3]||(t[3]=function(){return F.changePreviewImage&&F.changePreviewImage.apply(F,arguments)}),ref:"imageProperty",accept:"image/png, image/jpeg, image/jpg",type:"file",id:"photo",class:"absolute top-0 left-0 w-full h-full -z-10 opacity-0"},null,544)):(0,a.createCommentVNode)("",!0)]),z.saveButton?((0,a.openBlock)(),(0,a.createElementBlock)("button",j,[t[10]||(t[10]=(0,a.createElementVNode)("i",{class:"lab lab-fill-save"},null,-1)),(0,a.createElementVNode)("span",M,(0,a.toDisplayString)(e.$t("button.save")),1)])):(0,a.createCommentVNode)("",!0),z.resetButton?((0,a.openBlock)(),(0,a.createElementBlock)("button",{key:1,onClick:t[4]||(t[4]=function(){return F.resetPreviewImage&&F.resetPreviewImage.apply(F,arguments)}),type:"button",class:"db-btn-outline h-[38px] shadow-[0px_6px_10px_rgba(251,_78,_78,_0.24)] !text-[#FB4E4E] !bg-white !border-[#FB4E4E]"},[t[11]||(t[11]=(0,a.createElementVNode)("i",{class:"lab lab-line-reset"},null,-1)),(0,a.createElementVNode)("span",U,(0,a.toDisplayString)(e.$t("button.reset")),1)])):(0,a.createCommentVNode)("",!0)])],32)])]),(0,a.createElementVNode)("div",R,[(0,a.createVNode)(q,{promotion:parseInt(e.$route.params.id)},null,8,["promotion"])])])])],64)}]])},1889:(e,t,o)=>{o.d(t,{A:()=>l});var a=o(9726),n={class:"text-sm text-gray-700"};const r={name:"PaginationTextComponent",props:["props"]};const l=(0,o(6262).A)(r,[["render",function(e,t,o,r,l,i){var s,c;return(0,a.openBlock)(),(0,a.createElementBlock)("div",null,[(0,a.createElementVNode)("p",n,(0,a.toDisplayString)(e.$t("message.pagination_label",{from:null!==(s=o.props.page.from)&&void 0!==s?s:0,to:null!==(c=o.props.page.to)&&void 0!==c?c:0,total:o.props.page.total})),1)])}]])},1964:(e,t,o)=>{o.d(t,{L5:()=>g});var a=o(9726);const n={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,o,a,n;return null!=(n=null!=(a=null!=(t=this.data.first_page_url)?t:null==(e=this.data.meta)?void 0:e.first_page_url)?a:null==(o=this.data.links)?void 0:o.first)?n: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,o,a,n;return null!=(n=null!=(a=null!=(t=this.data.last_page_url)?t:null==(e=this.data.meta)?void 0:e.last_page_url)?a:null==(o=this.data.links)?void 0:o.last)?n:null},nextPageUrl(){var e,t,o,a,n;return null!=(n=null!=(a=null!=(t=this.data.next_page_url)?t:null==(e=this.data.meta)?void 0:e.next_page_url)?a:null==(o=this.data.links)?void 0:o.next)?n:null},perPage(){var e;return this.isApiResource?this.data.meta.per_page:null!=(e=this.data.per_page)?e:null},prevPageUrl(){var e,t,o,a,n;return null!=(n=null!=(a=null!=(t=this.data.prev_page_url)?t:null==(e=this.data.meta)?void 0:e.prev_page_url)?a:null==(o=this.data.links)?void 0:o.prev)?n: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,o=this.keepLength,a=this.lastPage,n=this.limit,r=t-n,l=t+n,i=2*(n+2),s=2*(n+2)-1,c=[],d=[],p=1;p<=a;p++)(1===p||p===a||p>=r&&p<=l||o&&p<i&&t<i-2||o&&p>a-s&&t>a-s+2)&&c.push(p);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 o=e.__vccOpts||e;for(const[e,a]of t)o[e]=a;return o};Boolean,Boolean;Boolean,Boolean;const l={compatConfig:{MODE:3},inheritAttrs:!1,emits:["pagination-change-page"],components:{RenderlessPagination:n},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,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"],p=["disabled"],m=(0,a.createElementVNode)("span",{class:"sr-only"},"Next",-1),u=(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,o,n,r,l){const g=(0,a.resolveComponent)("RenderlessPagination");return(0,a.openBlock)(),(0,a.createBlock)(g,{data:o.data,limit:o.limit,"keep-length":o.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",o.itemClasses],disabled:!t.computed.prevPageUrl},(0,a.toHandlers)(t.prevButtonEvents,!0)),[(0,a.renderSlot)(e.$slots,"prev-nav",{},()=>[s,c])],16,i),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(t.computed.pageRange,(e,n)=>((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?o.activeClasses:o.itemClasses,e==t.computed.currentPage?"z-30":""]],"aria-current":t.computed.currentPage?"page":null,key:n},(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",o.itemClasses],disabled:!t.computed.nextPageUrl},(0,a.toHandlers)(t.nextButtonEvents,!0)),[(0,a.renderSlot)(e.$slots,"next-nav",{},()=>[m,u])],16,p)],16)):(0,a.createCommentVNode)("",!0)]),_:3},8,["data","limit","keep-length","onPaginationChangePage"])}]])},7120:(e,t,o)=>{o.d(t,{A:()=>l});var a=o(9726);var n=o(5457);const r={name:"SmSidebarModalCreateComponent",props:["props"],data:function(){return{openCanvas:(0,n.y)().openCanvas}}};const l=(0,o(6262).A)(r,[["render",function(e,t,o,n,r,l){return(0,a.openBlock)(),(0,a.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,a.withModifiers)(function(e){return r.openCanvas("sidebar")},["prevent"]))},[t[1]||(t[1]=(0,a.createElementVNode)("i",{class:"lab lab-line-add-circle"},null,-1)),(0,a.createElementVNode)("span",null,(0,a.toDisplayString)(o.props.title),1)])}]])},7564:(e,t,o)=>{o.d(t,{A:()=>i});var a=o(9726),n={class:"db-table-action edit modal-btn"},r={class:"db-tooltip"};const l={name:"SmIconModalEditComponent"};const i=(0,o(6262).A)(l,[["render",function(e,t,o,l,i,s){return(0,a.openBlock)(),(0,a.createElementBlock)("button",n,[t[0]||(t[0]=(0,a.createElementVNode)("i",{class:"lab lab-line-edit"},null,-1)),(0,a.createElementVNode)("span",r,(0,a.toDisplayString)(e.$t("button.edit")),1)])}]])},9319:(e,t,o)=>{o.d(t,{A:()=>m});var a=o(9726),n={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 p={name:"TableLimitComponent",props:{page:{type:Object},search:{type:Object},method:{type:Function}},methods:{limitChange:function(){this.method()}}};const m=(0,o(6262).A)(p,[["render",function(e,t,o,p,m,u){return o.page.total>10?((0,a.openBlock)(),(0,a.createElementBlock)("div",n,[(0,a.withDirectives)((0,a.createElementVNode)("select",{onChange:t[0]||(t[0]=function(){return u.limitChange&&u.limitChange.apply(u,arguments)}),"onUpdate:modelValue":t[1]||(t[1]=function(e){return o.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",i,(0,a.toDisplayString)(e.$t("number.50")),1),(0,a.createElementVNode)("option",s,(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,o.search.per_page]])])):(0,a.createCommentVNode)("",!0)}]])},9590:(e,t,o)=>{o.d(t,{A:()=>i});var a=o(9726),n={class:"db-table-action delete"},r={class:"db-tooltip"};const l={name:"SmIconDeleteComponent"};const i=(0,o(6262).A)(l,[["render",function(e,t,o,l,i,s){return(0,a.openBlock)(),(0,a.createElementBlock)("button",n,[t[0]||(t[0]=(0,a.createElementVNode)("i",{class:"lab lab-line-trash"},null,-1)),(0,a.createElementVNode)("span",r,(0,a.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