[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: 1283.js
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[1283],{725:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(9726);const a={name:"ExcelComponent",props:{method:{type:Function}},methods:{excelDownload:function(){this.method()}}};const r=(0,n(6262).A)(a,[["render",function(e,t,n,a,r,l){return(0,o.openBlock)(),(0,o.createElementBlock)("a",{href:"#",onClick:t[0]||(t[0]=(0,o.withModifiers)(function(){return l.excelDownload&&l.excelDownload.apply(l,arguments)},["prevent"])),class:"db-card-filter-dropdown-menu"},[t[1]||(t[1]=(0,o.createElementVNode)("i",{class:"lab lab-line-file-excel lab-font-size-15"},null,-1)),(0,o.createTextVNode)(" "+(0,o.toDisplayString)(e.$t("button.excel")),1)])}]])},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"])])}]])},1283:(e,t,n)=>{n.r(t),n.d(t,{default:()=>ut});var o=n(9726),a={class:"col-12"},r={class:"db-card"},l={class:"db-card-header border-none"},i={class:"db-card-title"},s={class:"db-card-filter"},c={class:"dropdown-group"},d={class:"dropdown-list db-card-filter-dropdown-list"},p={class:"table-filter-div",id:"administrator-filter"},m={class:"row"},u={class:"col-12 sm:col-6 md:col-4 xl:col-3"},h={for:"searchName",class:"db-field-title after:hidden"},g={class:"col-12 sm:col-6 md:col-4 xl:col-3"},f={for:"searchEmail",class:"db-field-title after:hidden"},b={class:"col-12 sm:col-6 md:col-4 xl:col-3"},v={for:"searchPhone",class:"db-field-title after:hidden"},y={class:"col-12 sm:col-6 md:col-4 xl:col-3"},E={for:"searchStatus",class:"db-field-title after:hidden"},w={class:"col-12"},C={class:"flex flex-wrap gap-3 mt-4"},x={class:"db-btn py-2 text-white bg-primary"},k={class:"db-table-responsive"},N={class:"db-table stripe",id:"print"},V={class:"db-table-head"},A={class:"db-table-head-tr"},B={class:"db-table-head-th"},S={class:"db-table-head-th"},P={class:"db-table-head-th"},_={class:"db-table-head-th"},$={key:0,class:"db-table-head-th hidden-print"},D={key:0,class:"db-table-body"},T={class:"db-table-body-td"},I={class:"db-table-body-td"},L={class:"db-table-body-td"},U={dir:"ltr"},M={class:"db-table-body-td"},O={key:0,class:"db-table-body-td hidden-print"},j={class:"flex justify-start items-center sm:items-start sm:justify-start gap-1.5"},R={key:1,class:"db-table-body"},z={class:"db-table-body-tr"},q={class:"db-table-body-td text-center",colspan:"5"},H={class:"p-4"},F={class:"max-w-[300px] mx-auto mt-2"},W=["src"],K={class:"d-block mt-3 text-lg"},Y={key:0,class:"flex items-center justify-between border-t border-gray-200 bg-white px-4 py-6"},X={class:"hidden sm:flex sm:flex-1 sm:items-center sm:justify-between"};var G=n(5475),J={class:"w-full max-w-xl h-screen overflow-x-hidden thin-scrolling bg-white ms-auto ltr:translate-x-full rtl:-translate-x-full"},Q={class:"drawer-header"},Z={class:"drawer-title"},ee={class:"drawer-body"},te={class:"form-row"},ne={class:"form-col-12 sm:form-col-6"},oe={for:"name",class:"db-field-title required"},ae={key:0,class:"db-field-alert"},re={class:"form-col-12 sm:form-col-6"},le={for:"email",class:"db-field-title required"},ie={key:0,class:"db-field-alert"},se={class:"form-col-12 sm:form-col-6"},ce={for:"phone",class:"db-field-title"},de={class:"w-fit flex-shrink-0 dropdown-group"},pe={type:"button",class:"flex items-center gap-1 dropdown-btn"},me={class:"whitespace-nowrap flex-shrink-0 text-xs"},ue={class:"p-1.5 w-24 rounded-lg shadow-xl absolute top-8 -left-4 z-10 border border-gray-200 bg-white scale-y-0 origin-top dropdown-list !h-52 !overflow-x-hidden !overflow-y-auto thin-scrolling"},he=["onClick"],ge={class:"whitespace-nowrap text-xs"},fe={key:0,class:"db-field-alert"},be={class:"form-col-12 sm:form-col-6"},ve={class:"db-field-title required",for:"active"},ye={class:"db-field-radio-group"},Ee={class:"db-field-radio"},we={class:"custom-radio"},Ce=["value"],xe={for:"active",class:"db-field-label"},ke={class:"db-field-radio"},Ne={class:"custom-radio"},Ve=["value"],Ae={for:"inactive",class:"db-field-label"},Be={class:"form-col-12 sm:form-col-6"},Se={for:"password",class:"db-field-title required"},Pe={key:0,class:"db-field-alert"},_e={class:"form-col-12 sm:form-col-6"},$e={for:"password_confirmation",class:"db-field-title required"},De={key:0,class:"db-field-alert"},Te={class:"form-col-12"},Ie={class:"flex flex-wrap gap-3 mt-4"},Le={type:"submit",class:"db-btn py-2 text-white bg-primary"};var Ue=n(7120),Me=n(6884),Oe=n(9856),je=n(8655),Re=n(5457);function ze(e){return ze="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},ze(e)}function qe(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=ze(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=ze(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ze(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const He={name:"AdministratorCreateComponent",components:{SmSidebarModalCreateComponent:Ue.A,LoadingComponent:G.A},props:["props"],data:function(){return{loading:{isActive:!1},enums:{statusEnum:Me.A,statusEnumArray:qe(qe({},Me.A.ACTIVE,this.$t("label.active")),Me.A.INACTIVE,this.$t("label.inactive"))},errors:{},flag:"",calling_code:"",closeBackdrop:(0,Re.y)().closeBackdrop}},mounted:function(){var e=this;this.loading.isActive=!0,this.$store.dispatch("countryCode/lists"),this.$store.dispatch("company/lists").then(function(t){e.$store.dispatch("countryCode/show",t.data.data.company_country_code).then(function(t){e.props.form.country_code=t.data.data.calling_code,e.calling_code=t.data.data.calling_code,e.props.flag=t.data.data.flag_emoji,e.flag=t.data.data.flag_emoji,e.loading.isActive=!1}).catch(function(t){e.loading.isActive=!1})}).catch(function(t){e.loading.isActive=!1})},computed:{countryCodes:function(){return this.$store.getters["countryCode/lists"]},addButton:function(){return{title:this.$t("button.add_administrator")}}},methods:{phoneNumber:function(e){return je.A.phoneNumber(e)},change:function(e){this.props.flag=e.flag_emoji,this.$props.props.form.country_code=e.calling_code},reset:function(){(0,Re.y)().closeCanvas("sidebar"),this.$store.dispatch("customer/reset").then().catch(),this.errors={},this.$props.props.form={name:"",email:"",phone:"",password:"",password_confirmation:"",status:Me.A.ACTIVE,country_code:this.calling_code},this.$props.props.form.country_code=this.calling_code,this.$props.props.flag=this.flag},save:function(){var e=this;try{var t=this.$store.getters["administrator/temp"].temp_id;this.loading.isActive=!0,this.$store.dispatch("administrator/save",this.props).then(function(n){(0,Re.y)().closeCanvas("sidebar"),e.loading.isActive=!1,Oe.A.successFlip(null===t?0:1,e.$t("menu.administrators")),e.props.form={name:"",email:"",phone:"",password:"",password_confirmation:"",status:Me.A.ACTIVE,country_code:e.calling_code},e.$props.props.flag=e.flag,e.errors={}}).catch(function(t){e.loading.isActive=!1,e.errors=t.response.data.errors})}catch(e){this.loading.isActive=!1,Oe.A.error(e)}}}};var Fe=n(6262);const We=(0,Fe.A)(He,[["render",function(e,t,n,a,r,l){var i=(0,o.resolveComponent)("LoadingComponent"),s=(0,o.resolveComponent)("SmSidebarModalCreateComponent");return(0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,null,[(0,o.createVNode)(i,{props:r.loading},null,8,["props"]),(0,o.createVNode)(s,{props:l.addButton},null,8,["props"]),(0,o.createElementVNode)("div",{id:"sidebar",onClick:t[11]||(t[11]=(0,o.withModifiers)(function(){return l.reset&&l.reset.apply(l,arguments)},["self"])),class:"fixed inset-0 z-50 bg-black/50 duration-500 transition-all invisible opacity-0"},[(0,o.createElementVNode)("div",J,[(0,o.createElementVNode)("div",Q,[(0,o.createElementVNode)("h3",Z,(0,o.toDisplayString)(e.$t("menu.administrators")),1),(0,o.createElementVNode)("button",{class:"fa-solid fa-xmark close-btn",onClick:t[0]||(t[0]=function(){return l.reset&&l.reset.apply(l,arguments)})})]),(0,o.createElementVNode)("div",ee,[(0,o.createElementVNode)("form",{onSubmit:t[10]||(t[10]=(0,o.withModifiers)(function(){return l.save&&l.save.apply(l,arguments)},["prevent"]))},[(0,o.createElementVNode)("div",te,[(0,o.createElementVNode)("div",ne,[(0,o.createElementVNode)("label",oe,(0,o.toDisplayString)(e.$t("label.name")),1),(0,o.withDirectives)((0,o.createElementVNode)("input",{"onUpdate:modelValue":t[1]||(t[1]=function(e){return n.props.form.name=e}),class:(0,o.normalizeClass)([r.errors.name?"invalid":"","db-field-control"]),type:"text",id:"name"},null,2),[[o.vModelText,n.props.form.name]]),r.errors.name?((0,o.openBlock)(),(0,o.createElementBlock)("small",ae,(0,o.toDisplayString)(r.errors.name[0]),1)):(0,o.createCommentVNode)("",!0)]),(0,o.createElementVNode)("div",re,[(0,o.createElementVNode)("label",le,(0,o.toDisplayString)(e.$t("label.email")),1),(0,o.withDirectives)((0,o.createElementVNode)("input",{"onUpdate:modelValue":t[2]||(t[2]=function(e){return n.props.form.email=e}),class:(0,o.normalizeClass)([r.errors.email?"invalid":"","db-field-control"]),type:"text",id:"email"},null,2),[[o.vModelText,n.props.form.email]]),r.errors.email?((0,o.openBlock)(),(0,o.createElementBlock)("small",ie,(0,o.toDisplayString)(r.errors.email[0]),1)):(0,o.createCommentVNode)("",!0)]),(0,o.createElementVNode)("div",se,[(0,o.createElementVNode)("label",ce,(0,o.toDisplayString)(e.$t("label.phone")),1),(0,o.createElementVNode)("div",{class:(0,o.normalizeClass)([r.errors.phone?"invalid":"","db-field-control flex items-center"])},[(0,o.createElementVNode)("div",de,[(0,o.createElementVNode)("button",pe,[(0,o.createTextVNode)((0,o.toDisplayString)(n.props.flag)+" ",1),(0,o.createElementVNode)("span",me,(0,o.toDisplayString)(n.props.form.country_code),1),t[12]||(t[12]=(0,o.createElementVNode)("i",{class:"fa-solid fa-caret-down text-xs"},null,-1))]),(0,o.createElementVNode)("ul",ue,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(l.countryCodes,function(e){return(0,o.openBlock)(),(0,o.createElementBlock)("li",{onClick:function(t){return l.change(e)},class:"flex items-center gap-2 p-1.5 rounded-md cursor-pointer hover:bg-gray-100"},[(0,o.createTextVNode)((0,o.toDisplayString)(e.flag_emoji)+" ",1),(0,o.createElementVNode)("span",ge,(0,o.toDisplayString)(e.calling_code),1)],8,he)}),256))])]),(0,o.withDirectives)((0,o.createElementVNode)("input",{"onUpdate:modelValue":t[3]||(t[3]=function(e){return n.props.form.phone=e}),onKeypress:t[4]||(t[4]=function(e){return l.phoneNumber(e)}),class:(0,o.normalizeClass)([r.errors.phone?"invalid":"","pl-2 text-sm w-full h-full"]),type:"text",id:"phone"},null,34),[[o.vModelText,n.props.form.phone]])],2),r.errors.phone?((0,o.openBlock)(),(0,o.createElementBlock)("small",fe,(0,o.toDisplayString)(r.errors.phone[0]),1)):(0,o.createCommentVNode)("",!0)]),(0,o.createElementVNode)("div",be,[(0,o.createElementVNode)("label",ve,(0,o.toDisplayString)(e.$t("label.status")),1),(0,o.createElementVNode)("div",ye,[(0,o.createElementVNode)("div",Ee,[(0,o.createElementVNode)("div",we,[(0,o.withDirectives)((0,o.createElementVNode)("input",{value:r.enums.statusEnum.ACTIVE,"onUpdate:modelValue":t[5]||(t[5]=function(e){return n.props.form.status=e}),id:"active",type:"radio",class:"custom-radio-field"},null,8,Ce),[[o.vModelRadio,n.props.form.status]]),t[13]||(t[13]=(0,o.createElementVNode)("span",{class:"custom-radio-span"},null,-1))]),(0,o.createElementVNode)("label",xe,(0,o.toDisplayString)(e.$t("label.active")),1)]),(0,o.createElementVNode)("div",ke,[(0,o.createElementVNode)("div",Ne,[(0,o.withDirectives)((0,o.createElementVNode)("input",{value:r.enums.statusEnum.INACTIVE,"onUpdate:modelValue":t[6]||(t[6]=function(e){return n.props.form.status=e}),type:"radio",id:"inactive",class:"custom-radio-field"},null,8,Ve),[[o.vModelRadio,n.props.form.status]]),t[14]||(t[14]=(0,o.createElementVNode)("span",{class:"custom-radio-span"},null,-1))]),(0,o.createElementVNode)("label",Ae,(0,o.toDisplayString)(e.$t("label.inactive")),1)])])]),(0,o.createElementVNode)("div",Be,[(0,o.createElementVNode)("label",Se,(0,o.toDisplayString)(e.$t("label.password")),1),(0,o.withDirectives)((0,o.createElementVNode)("input",{"onUpdate:modelValue":t[7]||(t[7]=function(e){return n.props.form.password=e}),class:(0,o.normalizeClass)([r.errors.password?"invalid":"","db-field-control"]),type:"password",id:"password",autocomplete:"off"},null,2),[[o.vModelText,n.props.form.password]]),r.errors.password?((0,o.openBlock)(),(0,o.createElementBlock)("small",Pe,(0,o.toDisplayString)(r.errors.password[0]),1)):(0,o.createCommentVNode)("",!0)]),(0,o.createElementVNode)("div",_e,[(0,o.createElementVNode)("label",$e,(0,o.toDisplayString)(e.$t("label.password_confirmation")),1),(0,o.withDirectives)((0,o.createElementVNode)("input",{"onUpdate:modelValue":t[8]||(t[8]=function(e){return n.props.form.password_confirmation=e}),class:(0,o.normalizeClass)([r.errors.password_confirmation?"invalid":"","db-field-control"]),type:"password",id:"password_confirmation",autocomplete:"off"},null,2),[[o.vModelText,n.props.form.password_confirmation]]),r.errors.password_confirmation?((0,o.openBlock)(),(0,o.createElementBlock)("small",De,(0,o.toDisplayString)(r.errors.password_confirmation[0]),1)):(0,o.createCommentVNode)("",!0)]),(0,o.createElementVNode)("div",Te,[(0,o.createElementVNode)("div",Ie,[(0,o.createElementVNode)("button",Le,[t[15]||(t[15]=(0,o.createElementVNode)("i",{class:"lab lab-fill-save"},null,-1)),(0,o.createElementVNode)("span",null,(0,o.toDisplayString)(e.$t("label.save")),1)]),(0,o.createElementVNode)("button",{type:"button",class:"modal-btn-outline modal-close",onClick:t[9]||(t[9]=function(){return l.reset&&l.reset.apply(l,arguments)})},[t[16]||(t[16]=(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)])])])])],32)])])])],64)}]]);var Ke=n(1889),Ye=n(1017),Xe=n(1751),Ge=n(9319),Je=n(9590),Qe=n(9238),Ze=n(9639),et=n(4579),tt=n(6365),nt=n(5316),ot=n(3911),at=n(725),rt=n(8536);function lt(e){return lt="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},lt(e)}function it(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=lt(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!=lt(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==lt(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const st={name:"AdministratorListComponent",components:{SmIconSidebarModalEditComponent:Ze.A,TableLimitComponent:Ge.A,PaginationSMBox:Xe.A,PaginationBox:Ye.A,PaginationTextComponent:Ke.A,AdministratorCreateComponent:We,LoadingComponent:G.A,SmIconDeleteComponent:Je.A,SmIconViewComponent:Qe.A,FilterComponent:et.A,ExportComponent:tt.A,print:nt.A,PrintComponent:ot.A,ExcelComponent:at.A},data:function(){return{loading:{isActive:!1},enums:{statusEnum:Me.A,statusEnumArray:it(it({},Me.A.ACTIVE,this.$t("label.active")),Me.A.INACTIVE,this.$t("label.inactive"))},printLoading:!0,printObj:{id:"print",popTitle:this.$t("menu.administrators")},props:{form:{name:"",email:"",phone:"",password:"",password_confirmation:"",country_code:"",status:Me.A.ACTIVE},search:{paginate:1,page:1,per_page:10,order_column:"id",order_type:"desc",name:"",email:"",phone:"",status:null},flag:""},ENV:rt.A}},mounted:function(){this.list()},computed:{administrators:function(){return this.$store.getters["administrator/lists"]},pagination:function(){return this.$store.getters["administrator/pagination"]},paginationPage:function(){return this.$store.getters["administrator/page"]},countryCode:function(){return this.$store.getters["countryCode/show"]}},methods:{permissionChecker:function(e){return je.A.permissionChecker(e)},statusClass:function(e){return je.A.statusClass(e)},textShortener:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:30;return je.A.textShortener(e,t)},phoneNumber:function(e){return je.A.phoneNumber(e)},handleSlide:function(e){return je.A.handleSlide(e)},search:function(){this.list()},clear:function(){this.props.search.paginate=1,this.props.search.page=1,this.props.search.name="",this.props.search.email="",this.props.search.phone="",this.props.search.status=null,this.list()},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("administrator/lists",this.props.search).then(function(t){e.loading.isActive=!1}).catch(function(t){e.loading.isActive=!1})},edit:function(e){var t=this;je.A.sideDrawerShow(),this.loading.isActive=!0,this.$store.dispatch("administrator/edit",e.id).then(function(n){t.loading.isActive=!1,t.props.errors={},t.props.form={name:e.name,email:e.email,phone:e.phone,password:e.password,status:e.status,country_code:e.country_code},t.$store.dispatch("countryCode/callingCode",e.country_code).then(function(e){t.props.flag=e.data.data.flag_emoji,t.loading.isActive=!1}).catch(function(e){t.loading.isActive=!1})}).catch(function(e){Oe.A.error(e.response.data.message)})},destroy:function(e){var t=this;je.A.destroyConfirmation().then(function(n){try{t.loading.isActive=!0,t.$store.dispatch("administrator/destroy",{id:e,search:t.props.search}).then(function(e){t.loading.isActive=!1,Oe.A.successFlip(null,t.$t("menu.administrators"))}).catch(function(e){t.loading.isActive=!1,Oe.A.error(e.response.data.message)})}catch(e){t.loading.isActive=!1,Oe.A.error(e.response.data.message)}}).catch(function(e){t.loading.isActive=!1})},xls:function(){var e=this;this.loading.isActive=!0,this.$store.dispatch("administrator/export",this.props.search).then(function(t){e.loading.isActive=!1;var n=new Blob([t.data],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),o=document.createElement("a");o.href=URL.createObjectURL(n),o.download=e.$t("menu.administrators"),o.click(),URL.revokeObjectURL(o.href)}).catch(function(t){e.loading.isActive=!1,Oe.A.error(t.response.data.message)})}}};var ct=n(5072),dt=n.n(ct),pt=n(7766),mt={insert:"head",singleton:!1};dt()(pt.A,mt);pt.A.locals;const ut=(0,Fe.A)(st,[["render",function(e,t,n,G,J,Q){var Z=(0,o.resolveComponent)("LoadingComponent"),ee=(0,o.resolveComponent)("TableLimitComponent"),te=(0,o.resolveComponent)("FilterComponent"),ne=(0,o.resolveComponent)("ExportComponent"),oe=(0,o.resolveComponent)("PrintComponent"),ae=(0,o.resolveComponent)("ExcelComponent"),re=(0,o.resolveComponent)("AdministratorCreateComponent"),le=(0,o.resolveComponent)("vue-select"),ie=(0,o.resolveComponent)("SmIconViewComponent"),se=(0,o.resolveComponent)("SmIconSidebarModalEditComponent"),ce=(0,o.resolveComponent)("SmIconDeleteComponent"),de=(0,o.resolveComponent)("PaginationSMBox"),pe=(0,o.resolveComponent)("PaginationTextComponent"),me=(0,o.resolveComponent)("PaginationBox");return(0,o.openBlock)(),(0,o.createElementBlock)(o.Fragment,null,[(0,o.createVNode)(Z,{props:J.loading},null,8,["props"]),(0,o.createElementVNode)("div",a,[(0,o.createElementVNode)("div",r,[(0,o.createElementVNode)("div",l,[(0,o.createElementVNode)("h3",i,(0,o.toDisplayString)(e.$t("menu.administrators")),1),(0,o.createElementVNode)("div",s,[(0,o.createVNode)(ee,{method:Q.list,search:J.props.search,page:Q.paginationPage},null,8,["method","search","page"]),(0,o.createVNode)(te,{onClick:t[0]||(t[0]=(0,o.withModifiers)(function(e){return Q.handleSlide("administrator-filter")},["prevent"]))}),(0,o.createElementVNode)("div",c,[(0,o.createVNode)(ne),(0,o.createElementVNode)("div",d,[(0,o.createVNode)(oe,{props:J.printObj},null,8,["props"]),(0,o.createVNode)(ae,{method:Q.xls},null,8,["method"])])]),Q.permissionChecker("administrators_create")?((0,o.openBlock)(),(0,o.createBlock)(re,{key:0,props:J.props},null,8,["props"])):(0,o.createCommentVNode)("",!0)])]),(0,o.createElementVNode)("div",p,[(0,o.createElementVNode)("form",{class:"p-4 sm:p-5 mb-5 w-full d-block",onSubmit:t[7]||(t[7]=(0,o.withModifiers)(function(){return Q.search&&Q.search.apply(Q,arguments)},["prevent"]))},[(0,o.createElementVNode)("div",m,[(0,o.createElementVNode)("div",u,[(0,o.createElementVNode)("label",h,(0,o.toDisplayString)(e.$t("label.name")),1),(0,o.withDirectives)((0,o.createElementVNode)("input",{id:"searchName","onUpdate:modelValue":t[1]||(t[1]=function(e){return J.props.search.name=e}),type:"text",class:"db-field-control"},null,512),[[o.vModelText,J.props.search.name]])]),(0,o.createElementVNode)("div",g,[(0,o.createElementVNode)("label",f,(0,o.toDisplayString)(e.$t("label.email")),1),(0,o.withDirectives)((0,o.createElementVNode)("input",{id:"searchEmail","onUpdate:modelValue":t[2]||(t[2]=function(e){return J.props.search.email=e}),type:"text",class:"db-field-control"},null,512),[[o.vModelText,J.props.search.email]])]),(0,o.createElementVNode)("div",b,[(0,o.createElementVNode)("label",v,(0,o.toDisplayString)(e.$t("label.phone")),1),(0,o.withDirectives)((0,o.createElementVNode)("input",{id:"searchPhone","onUpdate:modelValue":t[3]||(t[3]=function(e){return J.props.search.phone=e}),onKeypress:t[4]||(t[4]=function(e){return Q.phoneNumber(e)}),type:"text",class:"db-field-control"},null,544),[[o.vModelText,J.props.search.phone]])]),(0,o.createElementVNode)("div",y,[(0,o.createElementVNode)("label",E,(0,o.toDisplayString)(e.$t("label.status")),1),(0,o.createVNode)(le,{class:"db-field-control f-b-custom-select",id:"searchStatus",modelValue:J.props.search.status,"onUpdate:modelValue":t[5]||(t[5]=function(e){return J.props.search.status=e}),options:[{id:J.enums.statusEnum.ACTIVE,name:e.$t("label.active")},{id:J.enums.statusEnum.INACTIVE,name:e.$t("label.inactive")}],"label-by":"name","value-by":"id",closeOnSelect:!0,searchable:!0,clearOnClose:!0,placeholder:"--","search-placeholder":"--"},null,8,["modelValue","options"])]),(0,o.createElementVNode)("div",w,[(0,o.createElementVNode)("div",C,[(0,o.createElementVNode)("button",x,[t[8]||(t[8]=(0,o.createElementVNode)("i",{class:"lab lab-line-search lab-font-size-16"},null,-1)),(0,o.createElementVNode)("span",null,(0,o.toDisplayString)(e.$t("button.search")),1)]),(0,o.createElementVNode)("button",{class:"db-btn py-2 text-white bg-gray-600",onClick:t[6]||(t[6]=function(){return Q.clear&&Q.clear.apply(Q,arguments)})},[t[9]||(t[9]=(0,o.createElementVNode)("i",{class:"lab lab-line-cross lab-font-size-22"},null,-1)),(0,o.createElementVNode)("span",null,(0,o.toDisplayString)(e.$t("button.clear")),1)])])])])],32)]),(0,o.createElementVNode)("div",k,[(0,o.createElementVNode)("table",N,[(0,o.createElementVNode)("thead",V,[(0,o.createElementVNode)("tr",A,[(0,o.createElementVNode)("th",B,(0,o.toDisplayString)(e.$t("label.name")),1),(0,o.createElementVNode)("th",S,(0,o.toDisplayString)(e.$t("label.email")),1),(0,o.createElementVNode)("th",P,(0,o.toDisplayString)(e.$t("label.phone")),1),(0,o.createElementVNode)("th",_,(0,o.toDisplayString)(e.$t("label.status")),1),Q.permissionChecker("administrators_show")||Q.permissionChecker("administrators_edit")||Q.permissionChecker("administrators_delete")?((0,o.openBlock)(),(0,o.createElementBlock)("th",$,(0,o.toDisplayString)(e.$t("label.action")),1)):(0,o.createCommentVNode)("",!0)])]),Q.administrators.length>0?((0,o.openBlock)(),(0,o.createElementBlock)("tbody",D,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(Q.administrators,function(e){return(0,o.openBlock)(),(0,o.createElementBlock)("tr",{class:"db-table-body-tr",key:e},[(0,o.createElementVNode)("td",T,(0,o.toDisplayString)(Q.textShortener(e.name,20)),1),(0,o.createElementVNode)("td",I,(0,o.toDisplayString)(e.email),1),(0,o.createElementVNode)("td",L,[(0,o.createElementVNode)("span",U,(0,o.toDisplayString)(e.phone?e.country_code+""+e.phone:""),1)]),(0,o.createElementVNode)("td",M,[(0,o.createElementVNode)("span",{class:(0,o.normalizeClass)(Q.statusClass(e.status))},(0,o.toDisplayString)(J.enums.statusEnumArray[e.status]),3)]),Q.permissionChecker("administrators_show")||Q.permissionChecker("administrators_edit")||Q.permissionChecker("administrators_delete")?((0,o.openBlock)(),(0,o.createElementBlock)("td",O,[(0,o.createElementVNode)("div",j,[Q.permissionChecker("administrators_show")?((0,o.openBlock)(),(0,o.createBlock)(ie,{key:0,link:"admin.administrators.show",id:e.id},null,8,["id"])):(0,o.createCommentVNode)("",!0),Q.permissionChecker("administrators_edit")?((0,o.openBlock)(),(0,o.createBlock)(se,{key:1,onClick:function(t){return Q.edit(e)}},null,8,["onClick"])):(0,o.createCommentVNode)("",!0),1!==e.id&&Q.permissionChecker("administrators_delete")?((0,o.openBlock)(),(0,o.createBlock)(ce,{key:2,onClick:function(t){return Q.destroy(e.id)}},null,8,["onClick"])):(0,o.createCommentVNode)("",!0)])])):(0,o.createCommentVNode)("",!0)])}),128))])):((0,o.openBlock)(),(0,o.createElementBlock)("tbody",R,[(0,o.createElementVNode)("tr",z,[(0,o.createElementVNode)("td",q,[(0,o.createElementVNode)("div",H,[(0,o.createElementVNode)("div",F,[(0,o.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,o.createElementVNode)("span",K,(0,o.toDisplayString)(e.$t("message.no_data_found")),1)])])])]))])]),Q.administrators.length>0?((0,o.openBlock)(),(0,o.createElementBlock)("div",Y,[(0,o.createVNode)(de,{pagination:Q.pagination,method:Q.list},null,8,["pagination","method"]),(0,o.createElementVNode)("div",X,[(0,o.createVNode)(pe,{props:{page:Q.paginationPage}},null,8,["props"]),(0,o.createVNode)(me,{pagination:Q.pagination,method:Q.list},null,8,["pagination","method"])])])):(0,o.createCommentVNode)("",!0)])])],64)}],["__scopeId","data-v-631af18e"]])},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:()=>h});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=[],p=1;p<=o;p++)(1===p||p===o||p>=r&&p<=l||n&&p<i&&t<i-2||n&&p>o-s&&t>o-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 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"],p=["disabled"],m=(0,o.createElementVNode)("span",{class:"sr-only"},"Next",-1),u=(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 h=r(l,[["render",function(e,t,n,a,r,l){const h=(0,o.resolveComponent)("RenderlessPagination");return(0,o.openBlock)(),(0,o.createBlock)(h,{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",{},()=>[m,u])],16,p)],16)):(0,o.createCommentVNode)("",!0)]),_:3},8,["data","limit","keep-length","onPaginationChangePage"])}]])},3911:(e,t,n)=>{n.d(t,{A:()=>l});var o=n(9726),a={class:"db-card-filter-dropdown-menu"};const r={name:"PrintComponent",props:["props"],directives:{print:n(5316).A}};const l=(0,n(6262).A)(r,[["render",function(e,t,n,r,l,i){var s=(0,o.resolveDirective)("print");return(0,o.withDirectives)(((0,o.openBlock)(),(0,o.createElementBlock)("button",a,[t[0]||(t[0]=(0,o.createElementVNode)("i",{class:"lab-line-printer lab-font-size-17"},null,-1)),(0,o.createTextVNode)(" "+(0,o.toDisplayString)(e.$t("button.print")),1)])),[[s,n.props]])}]])},4579:(e,t,n)=>{n.d(t,{A:()=>l});var o=n(9726),a={class:"db-card-filter-btn table-filter-btn"};const r={name:"FilterComponent"};const l=(0,n(6262).A)(r,[["render",function(e,t,n,r,l,i){return(0,o.openBlock)(),(0,o.createElementBlock)("button",a,[t[0]||(t[0]=(0,o.createElementVNode)("i",{class:"lab lab-line-filter lab-font-size-14"},null,-1)),(0,o.createElementVNode)("span",null,(0,o.toDisplayString)(e.$t("button.filter")),1)])}]])},5316:(e,t,n)=>{n.d(t,{A:()=>r});class o{constructor(e){this.standards={strict:"strict",loose:"loose",html5:"html5"},this.previewBody=null,this.close=null,this.previewBodyUtilPrintBtn=null,this.selectArray=[],this.counter=0,this.settings={standard:this.standards.html5},Object.assign(this.settings,e),this.init()}init(){this.counter++,this.settings.id=`printArea_${this.counter}`;let e="";this.settings.url&&!this.settings.asyncUrl&&(e=this.settings.url);let t=this;if(this.settings.asyncUrl)return void t.settings.asyncUrl(function(e){let n=t.getPrintWindow(e);t.settings.preview?t.previewIfrmaeLoad():t.print(n)},t.settings.vue);let n=this.getPrintWindow(e);this.settings.url||this.write(n.doc),this.settings.preview?this.previewIfrmaeLoad():this.print(n)}addEvent(e,t,n){e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n}previewIfrmaeLoad(){let e=document.getElementById("vue-pirnt-nb-previewBox");if(e){let t=this,n=e.querySelector("iframe");this.settings.previewBeforeOpenCallback(),this.addEvent(n,"load",function(){t.previewBoxShow(),t.removeCanvasImg(),t.settings.previewOpenCallback()}),this.addEvent(e.querySelector(".previewBodyUtilPrintBtn"),"click",function(){t.settings.beforeOpenCallback(),t.settings.openCallback(),n.contentWindow.print(),t.settings.closeCallback()})}}removeCanvasImg(){let e=this;try{if(e.elsdom){let t=e.elsdom.querySelectorAll(".canvasImg");for(let e=0;e<t.length;e++)t[e].remove()}}catch(e){console.log(e)}}print(e){var t=this;let n=document.getElementById(this.settings.id)||e.f,o=document.getElementById(this.settings.id).contentWindow||e.f.contentWindow;t.settings.beforeOpenCallback(),t.addEvent(n,"load",function(){o.focus(),t.settings.openCallback(),o.print(),n.remove(),t.settings.closeCallback(),t.removeCanvasImg()})}write(e){e.open(),e.write(`${this.docType()}<html>${this.getHead()}${this.getBody()}</html>`),e.close()}docType(){return this.settings.standard===this.standards.html5?"<!DOCTYPE html>":`<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01${this.settings.standard===this.standards.loose?" Transitional":""}//EN" "http://www.w3.org/TR/html4/${this.settings.standard===this.standards.loose?"loose":"strict"}.dtd">`}getHead(){let e="",t="",n="";this.settings.extraHead&&this.settings.extraHead.replace(/([^,]+)/g,t=>{e+=t}),[].forEach.call(document.querySelectorAll("link"),function(e){e.href.indexOf(".css")>=0&&(t+=`<link type="text/css" rel="stylesheet" href="${e.href}" >`)});let o=document.styleSheets;if(o&&o.length>0)for(let e=0;e<o.length;e++)try{if(o[e].cssRules||o[e].rules){let t=o[e].cssRules||o[e].rules;for(let e=0;e<t.length;e++)n+=t[e].cssText}}catch(t){console.log(o[e].href+t)}return this.settings.extraCss&&this.settings.extraCss.replace(/([^,\s]+)/g,e=>{t+=`<link type="text/css" rel="stylesheet" href="${e}">`}),`<head><title>${this.settings.popTitle}</title>${e}${t}<style type="text/css">${n}</style></head>`}getBody(){let e=this.settings.ids;return e=e.replace(new RegExp("#","g"),""),this.elsdom=this.beforeHanler(document.getElementById(e)),"<body>"+this.getFormData(this.elsdom).outerHTML+"</body>"}beforeHanler(e){let t=e.querySelectorAll("canvas");for(let e=0;e<t.length;e++)if(!t[e].style.display){let n=t[e].parentNode,o=t[e].toDataURL("image/png"),a=new Image;a.className="canvasImg",a.style.display="none",a.src=o,n.appendChild(a)}return e}getFormData(e){let t=e.cloneNode(!0),n=t.querySelectorAll("input,select,textarea"),o=t.querySelectorAll(".canvasImg,canvas"),a=-1;for(let e=0;e<o.length;e++){let t=o[e].parentNode,n=o[e];"canvas"===n.tagName.toLowerCase()?t.removeChild(n):n.style.display="block"}for(let t=0;t<n.length;t++){let o=n[t],r=o.getAttribute("type"),l=n[t];if(r||(r="SELECT"===o.tagName?"select":"TEXTAREA"===o.tagName?"textarea":""),"INPUT"===o.tagName)"radio"===r||"checkbox"===r?o.checked&&l.setAttribute("checked",o.checked):(l.value=o.value,l.setAttribute("value",o.value));else if("select"===r){a++;for(let t=0;t<e.querySelectorAll("select").length;t++){let n=e.querySelectorAll("select")[t];if(!n.getAttribute("newbs")&&n.setAttribute("newbs",t),n.getAttribute("newbs")==a){let t=e.querySelectorAll("select")[a].selectedIndex;o.options[t].setAttribute("selected",!0)}}}else l.innerHTML=o.value,l.setAttribute("html",o.value)}return t}getPrintWindow(e){var t=this.Iframe(e);return{f:t,win:t.contentWindow||t,doc:t.doc}}previewBoxShow(){let e=document.getElementById("vue-pirnt-nb-previewBox");e&&(document.querySelector("html").setAttribute("style","overflow: hidden"),e.style.display="block")}previewBoxHide(){let e=document.getElementById("vue-pirnt-nb-previewBox");e&&(document.querySelector("html").setAttribute("style","overflow: visible;"),e.querySelector("iframe")&&e.querySelector("iframe").remove(),e.style.display="none")}previewBox(){let e=document.getElementById("vue-pirnt-nb-previewBox");if(e)return e.querySelector("iframe")&&e.querySelector("iframe").remove(),{close:e.querySelector(".previewClose"),previewBody:e.querySelector(".previewBody")};let t=document.createElement("div");t.setAttribute("id","vue-pirnt-nb-previewBox"),t.setAttribute("style","position: fixed;top: 0px;left: 0px;width: 100%;height: 100%;background: white;display:none"),t.style.zIndex=this.settings.zIndex;let n=document.createElement("div");n.setAttribute("class","previewHeader"),n.setAttribute("style","padding: 5px 20px;"),n.innerHTML=this.settings.previewTitle,t.appendChild(n),this.close=document.createElement("div");let o=this.close;o.setAttribute("class","previewClose"),o.setAttribute("style","position: absolute;top: 5px;right: 20px;width: 25px;height: 20px;cursor: pointer;");let a=document.createElement("div"),r=document.createElement("div");a.setAttribute("class","closeBefore"),a.setAttribute("style","position: absolute;width: 3px;height: 100%;background: #040404;transform: rotate(45deg); top: 0px;left: 50%;"),r.setAttribute("class","closeAfter"),r.setAttribute("style","position: absolute;width: 3px;height: 100%;background: #040404;transform: rotate(-45deg); top: 0px;left: 50%;"),o.appendChild(a),o.appendChild(r),n.appendChild(o),this.previewBody=document.createElement("div");let l=this.previewBody;l.setAttribute("class","previewBody"),l.setAttribute("style","display: flex;flex-direction: column; height: 100%;"),t.appendChild(l);let i=document.createElement("div");i.setAttribute("class","previewBodyUtil"),i.setAttribute("style","height: 32px;background: #474747;position: relative;"),l.appendChild(i),this.previewBodyUtilPrintBtn=document.createElement("div");let s=this.previewBodyUtilPrintBtn;return s.setAttribute("class","previewBodyUtilPrintBtn"),s.innerHTML=this.settings.previewPrintBtnLabel,s.setAttribute("style","position: absolute;padding: 2px 10px;margin-top: 3px;left: 24px;font-size: 14px;color: white;cursor: pointer;background-color: rgba(0,0,0,.12);background-image: linear-gradient(hsla(0,0%,100%,.05),hsla(0,0%,100%,0));background-clip: padding-box;border: 1px solid rgba(0,0,0,.35);border-color: rgba(0,0,0,.32) rgba(0,0,0,.38) rgba(0,0,0,.42);box-shadow: inset 0 1px 0 hsla(0,0%,100%,.05), inset 0 0 1px hsla(0,0%,100%,.15), 0 1px 0 hsla(0,0%,100%,.05);"),i.appendChild(s),document.body.appendChild(t),{close:this.close,previewBody:this.previewBody}}iframeBox(e,t){let n=document.createElement("iframe");return n.style.border="0px",n.style.position="absolute",n.style.width="0px",n.style.height="0px",n.style.right="0px",n.style.top="0px",n.setAttribute("id",e),n.setAttribute("src",t),n}Iframe(e){let t=this.settings.id;e=e||(new Date).getTime();let n=this,o=this.iframeBox(t,e);try{if(this.settings.preview){o.setAttribute("style","border: 0px;flex: 1;");let e=this.previewBox(),t=e.previewBody,a=e.close;t.appendChild(o),this.addEvent(a,"click",function(){n.previewBoxHide()})}else document.body.appendChild(o);o.doc=null,o.doc=o.contentDocument?o.contentDocument:o.contentWindow?o.contentWindow.document:o.document}catch(e){throw new Error(e+". iframes may not be supported in this browser.")}if(null==o.doc)throw new Error("Cannot find document.");return o}}var a={directiveName:"print",mounted(e,t,n){let a=t.instance,r="";var l,i,s;i="click",s=()=>{if("string"==typeof t.value)r=t.value;else{if("object"!=typeof t.value||!t.value.id)return void window.print();{r=t.value.id;let e=r.replace(new RegExp("#","g"),"");document.getElementById(e)||(console.log("id in Error"),r="")}}c()},(l=e).addEventListener?l.addEventListener(i,s,!1):l.attachEvent?l.attachEvent("on"+i,s):l["on"+i]=s;const c=()=>{new o({ids:r,vue:a,url:t.value.url,standard:"",extraHead:t.value.extraHead,extraCss:t.value.extraCss,zIndex:t.value.zIndex||20002,previewTitle:t.value.previewTitle||"打印预览",previewPrintBtnLabel:t.value.previewPrintBtnLabel||"打印",popTitle:t.value.popTitle,preview:t.value.preview||!1,asyncUrl:t.value.asyncUrl,previewBeforeOpenCallback(){t.value.previewBeforeOpenCallback&&t.value.previewBeforeOpenCallback(a)},previewOpenCallback(){t.value.previewOpenCallback&&t.value.previewOpenCallback(a)},openCallback(){t.value.openCallback&&t.value.openCallback(a)},closeCallback(){t.value.closeCallback&&t.value.closeCallback(a)},beforeOpenCallback(){t.value.beforeOpenCallback&&t.value.beforeOpenCallback(a)}})}},install:function(e){e.directive("print",a)}};const r=a},6365:(e,t,n)=>{n.d(t,{A:()=>l});var o=n(9726),a={class:"db-card-filter-btn dropdown-btn"};const r={name:"ExportComponent"};const l=(0,n(6262).A)(r,[["render",function(e,t,n,r,l,i){return(0,o.openBlock)(),(0,o.createElementBlock)("button",a,[t[0]||(t[0]=(0,o.createElementVNode)("i",{class:"lab lab-line-file-export lab-font-size-17"},null,-1)),(0,o.createElementVNode)("span",null,(0,o.toDisplayString)(e.$t("button.export")),1)])}]])},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)])}]])},7766:(e,t,n)=>{n.d(t,{A:()=>r});var o=n(6314),a=n.n(o)()(function(e){return e[1]});a.push([e.id,"@media print{.hidden-print[data-v-631af18e]{display:none!important}}",""]);const r=a},9238:(e,t,n)=>{n.d(t,{A:()=>l});var o=n(9726),a={class:"db-tooltip"};const r={name:"SmIconViewComponent",props:{link:String,id:Number}};const l=(0,n(6262).A)(r,[["render",function(e,t,n,r,l,i){var s=(0,o.resolveComponent)("router-link");return(0,o.openBlock)(),(0,o.createBlock)(s,{class:"db-table-action view",to:{name:this.$props.link,params:{id:this.$props.id}}},{default:(0,o.withCtx)(function(){return[t[0]||(t[0]=(0,o.createElementVNode)("i",{class:"lab lab-line-eye"},null,-1)),(0,o.createElementVNode)("span",a,(0,o.toDisplayString)(e.$t("button.view")),1)]}),_:1,__:[0]},8,["to"])}]])},9319:(e,t,n)=>{n.d(t,{A:()=>m});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 p={name:"TableLimitComponent",props:{page:{type:Object},search:{type:Object},method:{type:Function}},methods:{limitChange:function(){this.method()}}};const m=(0,n(6262).A)(p,[["render",function(e,t,n,p,m,u){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 u.limitChange&&u.limitChange.apply(u,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)])}]])},9639:(e,t,n)=>{n.d(t,{A:()=>i});var o=n(9726),a={class:"db-tooltip"};var r=n(5457);const l={name:"SmIconSidebarModalEditComponent",data:function(){return{openCanvas:(0,r.y)().openCanvas}}};const i=(0,n(6262).A)(l,[["render",function(e,t,n,r,l,i){return(0,o.openBlock)(),(0,o.createElementBlock)("button",{class:"db-table-action edit",onClick:t[0]||(t[0]=(0,o.withModifiers)(function(e){return l.openCanvas("sidebar")},["prevent"]))},[t[1]||(t[1]=(0,o.createElementVNode)("i",{class:"lab lab-line-edit"},null,-1)),(0,o.createElementVNode)("span",a,(0,o.toDisplayString)(e.$t("button.edit")),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