[
MAINHACK
]
Mail Test
BC
Config Scan
HOME
Create...
New File
New Folder
Viewing / Editing File: 97.js
"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[97],{97:(e,t,o)=>{o.r(t),o.d(t,{default:()=>Et});var n=o(9726),l={class:"col-12"},a={class:"db-card"},r={class:"db-card-header border-none"},s={class:"db-card-title"},i={class:"db-card-filter"},c={class:"dropdown-group"},d={class:"dropdown-list db-card-filter-dropdown-list"},p={class:"table-filter-div",id:"employee-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 sm:col-6 md:col-4 xl:col-3"},C={for:"role_id",class:"db-field-title"},V={class:"col-12"},x={class:"flex flex-wrap gap-3 mt-4"},N={class:"db-btn py-2 text-white bg-primary"},k={class:"db-table-responsive"},A={class:"db-table stripe",id:"print"},B={class:"db-table-head"},S={class:"db-table-head-tr"},_={class:"db-table-head-th"},P={class:"db-table-head-th"},$={class:"db-table-head-th"},D={class:"db-table-head-th"},T={class:"db-table-head-th"},I={key:0,class:"db-table-head-th hidden-print"},U={key:0,class:"db-table-body"},L={class:"db-table-body-td"},O={class:"db-table-body-td"},M={class:"db-table-body-td"},j={dir:"ltr"},R={class:"db-table-body-td"},z={class:"db-table-body-td"},q={key:0,class:"db-table-body-td hidden-print"},H={class:"flex justify-start items-center sm:items-start sm:justify-start gap-1.5"},F={key:1,class:"db-table-body"},W={class:"db-table-body-tr"},K={class:"db-table-body-td text-center",colspan:"6"},Y={class:"p-4"},X={class:"max-w-[300px] mx-auto mt-2"},G=["src"],J={class:"d-block mt-3 text-lg"},Q={key:0,class:"flex items-center justify-between border-t border-gray-200 bg-white px-4 py-6"},Z={class:"hidden sm:flex sm:flex-1 sm:items-center sm:justify-between"};var ee=o(5475),te={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"},oe={class:"drawer-header"},ne={class:"drawer-title"},le={class:"drawer-body"},ae={class:"form-row"},re={class:"form-col-12 sm:form-col-6"},se={for:"name",class:"db-field-title required"},ie={key:0,class:"db-field-alert"},ce={class:"form-col-12 sm:form-col-6"},de={for:"email",class:"db-field-title required"},pe={key:0,class:"db-field-alert"},me={class:"form-col-12 sm:form-col-6"},ue={for:"phone",class:"db-field-title"},he={class:"w-fit flex-shrink-0 dropdown-group"},ge={type:"button",class:"flex items-center gap-1 dropdown-btn"},fe={class:"whitespace-nowrap flex-shrink-0 text-xs"},be={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"},ve=["onClick"],ye={class:"whitespace-nowrap text-xs"},Ee={key:0,class:"db-field-alert"},we={class:"form-col-12 sm:form-col-6"},Ce={class:"db-field-title required",for:"active"},Ve={class:"db-field-radio-group"},xe={class:"db-field-radio"},Ne={class:"custom-radio"},ke=["value"],Ae={for:"active",class:"db-field-label"},Be={class:"db-field-radio"},Se={class:"custom-radio"},_e=["value"],Pe={for:"inactive",class:"db-field-label"},$e={key:0,class:"db-field-alert"},De={class:"form-col-12 sm:form-col-6"},Te={for:"password",class:"db-field-title required"},Ie={key:0,class:"db-field-alert"},Ue={class:"form-col-12 sm:form-col-6"},Le={for:"password_confirmation",class:"db-field-title required"},Oe={key:0,class:"db-field-alert"},Me={class:"form-col-12 sm:form-col-6"},je={for:"role_id",class:"db-field-title required"},Re={key:0,class:"db-field-alert"},ze={class:"form-col-12"},qe={class:"flex flex-wrap gap-3 mt-4"},He={type:"submit",class:"db-btn py-2 text-white bg-primary"};var Fe=o(7120),We=o(6884),Ke=o(9856),Ye=o(8655),Xe=o(5457);function Ge(e){return Ge="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},Ge(e)}function Je(e,t,o){return(t=function(e){var t=function(e,t){if("object"!=Ge(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,t||"default");if("object"!=Ge(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==Ge(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}const Qe={name:"EmployeeCreateComponent",components:{SmSidebarModalCreateComponent:Fe.A,LoadingComponent:ee.A},props:["props"],data:function(){return{loading:{isActive:!1},enums:{statusEnum:We.A,statusEnumArray:Je(Je({},We.A.ACTIVE,this.$t("label.active")),We.A.INACTIVE,this.$t("label.inactive"))},errors:{},flag:"",calling_code:""}},computed:{countryCodes:function(){return this.$store.getters["countryCode/lists"]},roles:function(){return this.$store.getters["role/lists"]},addButton:function(){return{title:this.$t("button.add_employee")}}},mounted:function(){var e=this;this.loading.isActive=!0,this.$store.dispatch("role/lists",{order_column:"id",order_type:"asc",excepts:"1|2"}),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})},methods:{phoneNumber:function(e){return Ye.A.phoneNumber(e)},change:function(e){this.props.flag=e.flag_emoji,this.$props.props.form.country_code=e.calling_code},reset:function(){(0,Xe.y)().closeCanvas("sidebar"),this.$store.dispatch("employee/reset"),this.errors={},this.$props.props.form={name:"",email:"",phone:"",password:"",password_confirmation:"",status:We.A.ACTIVE,role_id:null,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["employee/temp"].temp_id;this.loading.isActive=!0,this.$store.dispatch("employee/save",this.props).then(function(o){(0,Xe.y)().closeCanvas("sidebar"),e.loading.isActive=!1,Ke.A.successFlip(null===t?0:1,e.$t("menu.employees")),e.props.form={name:"",email:"",phone:"",password:"",password_confirmation:"",status:We.A.ACTIVE,role_id:null,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,Ke.A.error(e)}}}};var Ze=o(6262);const et=(0,Ze.A)(Qe,[["render",function(e,t,o,l,a,r){var s=(0,n.resolveComponent)("LoadingComponent"),i=(0,n.resolveComponent)("SmSidebarModalCreateComponent"),c=(0,n.resolveComponent)("vue-select");return(0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,null,[(0,n.createVNode)(s,{props:a.loading},null,8,["props"]),(0,n.createVNode)(i,{props:r.addButton},null,8,["props"]),(0,n.createElementVNode)("div",{id:"sidebar",onClick:t[12]||(t[12]=(0,n.withModifiers)(function(){return r.reset&&r.reset.apply(r,arguments)},["self"])),class:"fixed inset-0 z-50 bg-black/50 duration-500 transition-all invisible opacity-0"},[(0,n.createElementVNode)("div",te,[(0,n.createElementVNode)("div",oe,[(0,n.createElementVNode)("h3",ne,(0,n.toDisplayString)(e.$t("menu.employees")),1),(0,n.createElementVNode)("button",{class:"fa-solid fa-xmark close-btn",onClick:t[0]||(t[0]=function(){return r.reset&&r.reset.apply(r,arguments)})})]),(0,n.createElementVNode)("div",le,[(0,n.createElementVNode)("form",{onSubmit:t[11]||(t[11]=(0,n.withModifiers)(function(){return r.save&&r.save.apply(r,arguments)},["prevent"]))},[(0,n.createElementVNode)("div",ae,[(0,n.createElementVNode)("div",re,[(0,n.createElementVNode)("label",se,(0,n.toDisplayString)(e.$t("label.name")),1),(0,n.withDirectives)((0,n.createElementVNode)("input",{"onUpdate:modelValue":t[1]||(t[1]=function(e){return o.props.form.name=e}),class:(0,n.normalizeClass)([a.errors.name?"invalid":"","db-field-control"]),type:"text",id:"name"},null,2),[[n.vModelText,o.props.form.name]]),a.errors.name?((0,n.openBlock)(),(0,n.createElementBlock)("small",ie,(0,n.toDisplayString)(a.errors.name[0]),1)):(0,n.createCommentVNode)("",!0)]),(0,n.createElementVNode)("div",ce,[(0,n.createElementVNode)("label",de,(0,n.toDisplayString)(e.$t("label.email")),1),(0,n.withDirectives)((0,n.createElementVNode)("input",{"onUpdate:modelValue":t[2]||(t[2]=function(e){return o.props.form.email=e}),class:(0,n.normalizeClass)([a.errors.email?"invalid":"","db-field-control"]),type:"text",id:"email"},null,2),[[n.vModelText,o.props.form.email]]),a.errors.email?((0,n.openBlock)(),(0,n.createElementBlock)("small",pe,(0,n.toDisplayString)(a.errors.email[0]),1)):(0,n.createCommentVNode)("",!0)]),(0,n.createElementVNode)("div",me,[(0,n.createElementVNode)("label",ue,(0,n.toDisplayString)(e.$t("label.phone")),1),(0,n.createElementVNode)("div",{class:(0,n.normalizeClass)([a.errors.phone?"invalid":"","db-field-control flex items-center"])},[(0,n.createElementVNode)("div",he,[(0,n.createElementVNode)("button",ge,[(0,n.createTextVNode)((0,n.toDisplayString)(o.props.flag)+" ",1),(0,n.createElementVNode)("span",fe,(0,n.toDisplayString)(o.props.form.country_code),1),t[13]||(t[13]=(0,n.createElementVNode)("i",{class:"fa-solid fa-caret-down text-xs"},null,-1))]),(0,n.createElementVNode)("ul",be,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(r.countryCodes,function(e){return(0,n.openBlock)(),(0,n.createElementBlock)("li",{onClick:function(t){return r.change(e)},class:"flex items-center gap-2 p-1.5 rounded-md cursor-pointer hover:bg-gray-100"},[(0,n.createTextVNode)((0,n.toDisplayString)(e.flag_emoji)+" ",1),(0,n.createElementVNode)("span",ye,(0,n.toDisplayString)(e.calling_code),1)],8,ve)}),256))])]),(0,n.withDirectives)((0,n.createElementVNode)("input",{"onUpdate:modelValue":t[3]||(t[3]=function(e){return o.props.form.phone=e}),onKeypress:t[4]||(t[4]=function(e){return r.phoneNumber(e)}),class:(0,n.normalizeClass)([a.errors.phone?"invalid":"","pl-2 text-sm w-full h-full"]),type:"text",id:"phone"},null,34),[[n.vModelText,o.props.form.phone]])],2),a.errors.phone?((0,n.openBlock)(),(0,n.createElementBlock)("small",Ee,(0,n.toDisplayString)(a.errors.phone[0]),1)):(0,n.createCommentVNode)("",!0)]),(0,n.createElementVNode)("div",we,[(0,n.createElementVNode)("label",Ce,(0,n.toDisplayString)(e.$t("label.status")),1),(0,n.createElementVNode)("div",Ve,[(0,n.createElementVNode)("div",xe,[(0,n.createElementVNode)("div",Ne,[(0,n.withDirectives)((0,n.createElementVNode)("input",{value:a.enums.statusEnum.ACTIVE,"onUpdate:modelValue":t[5]||(t[5]=function(e){return o.props.form.status=e}),id:"active",type:"radio",class:"custom-radio-field"},null,8,ke),[[n.vModelRadio,o.props.form.status]]),t[14]||(t[14]=(0,n.createElementVNode)("span",{class:"custom-radio-span"},null,-1))]),(0,n.createElementVNode)("label",Ae,(0,n.toDisplayString)(e.$t("label.active")),1)]),(0,n.createElementVNode)("div",Be,[(0,n.createElementVNode)("div",Se,[(0,n.withDirectives)((0,n.createElementVNode)("input",{value:a.enums.statusEnum.INACTIVE,"onUpdate:modelValue":t[6]||(t[6]=function(e){return o.props.form.status=e}),type:"radio",id:"inactive",class:"custom-radio-field"},null,8,_e),[[n.vModelRadio,o.props.form.status]]),t[15]||(t[15]=(0,n.createElementVNode)("span",{class:"custom-radio-span"},null,-1))]),(0,n.createElementVNode)("label",Pe,(0,n.toDisplayString)(e.$t("label.inactive")),1)])]),a.errors.status?((0,n.openBlock)(),(0,n.createElementBlock)("small",$e,(0,n.toDisplayString)(a.errors.status[0]),1)):(0,n.createCommentVNode)("",!0)]),(0,n.createElementVNode)("div",De,[(0,n.createElementVNode)("label",Te,(0,n.toDisplayString)(e.$t("label.password")),1),(0,n.withDirectives)((0,n.createElementVNode)("input",{"onUpdate:modelValue":t[7]||(t[7]=function(e){return o.props.form.password=e}),class:(0,n.normalizeClass)([a.errors.password?"invalid":"","db-field-control"]),type:"password",id:"password",autocomplete:"off"},null,2),[[n.vModelText,o.props.form.password]]),a.errors.password?((0,n.openBlock)(),(0,n.createElementBlock)("small",Ie,(0,n.toDisplayString)(a.errors.password[0]),1)):(0,n.createCommentVNode)("",!0)]),(0,n.createElementVNode)("div",Ue,[(0,n.createElementVNode)("label",Le,(0,n.toDisplayString)(e.$t("label.password_confirmation")),1),(0,n.withDirectives)((0,n.createElementVNode)("input",{"onUpdate:modelValue":t[8]||(t[8]=function(e){return o.props.form.password_confirmation=e}),class:(0,n.normalizeClass)([a.errors.password_confirmation?"invalid":"","db-field-control"]),type:"password",id:"password_confirmation",autocomplete:"off"},null,2),[[n.vModelText,o.props.form.password_confirmation]]),a.errors.password_confirmation?((0,n.openBlock)(),(0,n.createElementBlock)("small",Oe,(0,n.toDisplayString)(a.errors.password_confirmation[0]),1)):(0,n.createCommentVNode)("",!0)]),(0,n.createElementVNode)("div",Me,[(0,n.createElementVNode)("label",je,(0,n.toDisplayString)(e.$t("label.role")),1),(0,n.createVNode)(c,{class:(0,n.normalizeClass)(["db-field-control f-b-custom-select",a.errors.role_id?"invalid":""]),id:"role_id",modelValue:o.props.form.role_id,"onUpdate:modelValue":t[9]||(t[9]=function(e){return o.props.form.role_id=e}),options:r.roles,"label-by":"name","value-by":"id",closeOnSelect:!0,searchable:!0,clearOnClose:!0,placeholder:"--","search-placeholder":"--"},null,8,["class","modelValue","options"]),a.errors.role_id?((0,n.openBlock)(),(0,n.createElementBlock)("small",Re,(0,n.toDisplayString)(a.errors.role_id[0]),1)):(0,n.createCommentVNode)("",!0)]),(0,n.createElementVNode)("div",ze,[(0,n.createElementVNode)("div",qe,[(0,n.createElementVNode)("button",He,[t[16]||(t[16]=(0,n.createElementVNode)("i",{class:"lab lab-fill-save"},null,-1)),(0,n.createElementVNode)("span",null,(0,n.toDisplayString)(e.$t("label.save")),1)]),(0,n.createElementVNode)("button",{type:"button",class:"modal-btn-outline modal-close",onClick:t[10]||(t[10]=function(){return r.reset&&r.reset.apply(r,arguments)})},[t[17]||(t[17]=(0,n.createElementVNode)("i",{class:"lab lab-fill-close-circle"},null,-1)),(0,n.createElementVNode)("span",null,(0,n.toDisplayString)(e.$t("button.close")),1)])])])])],32)])])])],64)}]]);var tt=o(1889),ot=o(1017),nt=o(1751),lt=o(9319),at=o(9238),rt=o(9639),st=o(9590),it=o(4579),ct=o(6365),dt=(o(5316),o(3911)),pt=o(725),mt=o(8536);function ut(e){return ut="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},ut(e)}function ht(e,t,o){return(t=function(e){var t=function(e,t){if("object"!=ut(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,t||"default");if("object"!=ut(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==ut(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}const gt={name:"EmployeeListComponent",components:{ExportComponent:ct.A,FilterComponent:it.A,SmIconSidebarModalEditComponent:rt.A,TableLimitComponent:lt.A,PaginationSMBox:nt.A,PaginationBox:ot.A,PaginationTextComponent:tt.A,EmployeeCreateComponent:et,LoadingComponent:ee.A,SmIconDeleteComponent:st.A,SmIconViewComponent:at.A,PrintComponent:dt.A,ExcelComponent:pt.A},data:function(){return{loading:{isActive:!1},enums:{statusEnum:We.A,statusEnumArray:ht(ht({},We.A.ACTIVE,this.$t("label.active")),We.A.INACTIVE,this.$t("label.inactive"))},printLoading:!0,printObj:{id:"print",popTitle:this.$t("menu.employees")},props:{form:{name:"",email:"",phone:"",password:"",password_confirmation:"",country_code:"",role_id:null,status:We.A.ACTIVE},search:{paginate:1,page:1,per_page:10,order_column:"id",order_type:"desc",name:"",email:"",phone:"",role_id:null,status:null},flag:""},ENV:mt.A}},computed:{roles:function(){return this.$store.getters["role/lists"]},employees:function(){return this.$store.getters["employee/lists"]},pagination:function(){return this.$store.getters["employee/pagination"]},paginationPage:function(){return this.$store.getters["employee/page"]},countryCode:function(){return this.$store.getters["countryCode/show"]}},mounted:function(){this.list(),this.$store.dispatch("role/lists",{order_column:"id",order_type:"asc",excepts:"1|2"})},methods:{permissionChecker:function(e){return Ye.A.permissionChecker(e)},statusClass:function(e){return Ye.A.statusClass(e)},handleSlide:function(e){return Ye.A.handleSlide(e)},phoneNumber:function(e){return Ye.A.phoneNumber(e)},textShortener:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:30;return Ye.A.textShortener(e,t)},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.role_id=null,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("employee/lists",this.props.search).then(function(t){e.loading.isActive=!1}).catch(function(t){e.loading.isActive=!1})},edit:function(e){var t=this;Ye.A.sideDrawerShow(),this.loading.isActive=!0,this.$store.dispatch("employee/edit",e.id),this.loading.isActive=!1,this.props.errors={},this.props.form={name:e.name,email:e.email,phone:e.phone,password:e.password,role_id:e.role_id,status:e.status,country_code:e.country_code},this.$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})},destroy:function(e){var t=this;Ye.A.destroyConfirmation().then(function(o){try{t.loading.isActive=!0,t.$store.dispatch("employee/destroy",{id:e,search:t.props.search}).then(function(e){t.loading.isActive=!1,Ke.A.successFlip(null,t.$t("menu.employees"))}).catch(function(e){t.loading.isActive=!1,Ke.A.error(e.response.data.message)})}catch(e){t.loading.isActive=!1,Ke.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("employee/export",this.props.search).then(function(t){e.loading.isActive=!1;var o=new Blob([t.data],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),n=document.createElement("a");n.href=URL.createObjectURL(o),n.download=e.$t("menu.employees"),n.click(),URL.revokeObjectURL(n.href)}).catch(function(t){e.loading.isActive=!1,Ke.A.error(t.response.data.message)})}}};var ft=o(5072),bt=o.n(ft),vt=o(1006),yt={insert:"head",singleton:!1};bt()(vt.A,yt);vt.A.locals;const Et=(0,Ze.A)(gt,[["render",function(e,t,o,ee,te,oe){var ne=(0,n.resolveComponent)("LoadingComponent"),le=(0,n.resolveComponent)("TableLimitComponent"),ae=(0,n.resolveComponent)("FilterComponent"),re=(0,n.resolveComponent)("ExportComponent"),se=(0,n.resolveComponent)("PrintComponent"),ie=(0,n.resolveComponent)("ExcelComponent"),ce=(0,n.resolveComponent)("EmployeeCreateComponent"),de=(0,n.resolveComponent)("vue-select"),pe=(0,n.resolveComponent)("SmIconViewComponent"),me=(0,n.resolveComponent)("SmIconSidebarModalEditComponent"),ue=(0,n.resolveComponent)("SmIconDeleteComponent"),he=(0,n.resolveComponent)("PaginationSMBox"),ge=(0,n.resolveComponent)("PaginationTextComponent"),fe=(0,n.resolveComponent)("PaginationBox");return(0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,null,[(0,n.createVNode)(ne,{props:te.loading},null,8,["props"]),(0,n.createElementVNode)("div",l,[(0,n.createElementVNode)("div",a,[(0,n.createElementVNode)("div",r,[(0,n.createElementVNode)("h3",s,(0,n.toDisplayString)(e.$t("menu.employees")),1),(0,n.createElementVNode)("div",i,[(0,n.createVNode)(le,{method:oe.list,search:te.props.search,page:oe.paginationPage},null,8,["method","search","page"]),(0,n.createVNode)(ae,{onClick:t[0]||(t[0]=(0,n.withModifiers)(function(e){return oe.handleSlide("employee-filter")},["prevent"]))}),(0,n.createElementVNode)("div",c,[(0,n.createVNode)(re),(0,n.createElementVNode)("div",d,[(0,n.createVNode)(se,{props:te.printObj},null,8,["props"]),(0,n.createVNode)(ie,{method:oe.xls},null,8,["method"])])]),oe.permissionChecker("employees_create")?((0,n.openBlock)(),(0,n.createBlock)(ce,{key:0,props:te.props},null,8,["props"])):(0,n.createCommentVNode)("",!0)])]),(0,n.createElementVNode)("div",p,[(0,n.createElementVNode)("form",{class:"p-4 sm:p-5 mb-5 w-full d-block",onSubmit:t[8]||(t[8]=(0,n.withModifiers)(function(){return oe.search&&oe.search.apply(oe,arguments)},["prevent"]))},[(0,n.createElementVNode)("div",m,[(0,n.createElementVNode)("div",u,[(0,n.createElementVNode)("label",h,(0,n.toDisplayString)(e.$t("label.name")),1),(0,n.withDirectives)((0,n.createElementVNode)("input",{id:"searchName","onUpdate:modelValue":t[1]||(t[1]=function(e){return te.props.search.name=e}),type:"text",class:"db-field-control"},null,512),[[n.vModelText,te.props.search.name]])]),(0,n.createElementVNode)("div",g,[(0,n.createElementVNode)("label",f,(0,n.toDisplayString)(e.$t("label.email")),1),(0,n.withDirectives)((0,n.createElementVNode)("input",{id:"searchEmail","onUpdate:modelValue":t[2]||(t[2]=function(e){return te.props.search.email=e}),type:"text",class:"db-field-control"},null,512),[[n.vModelText,te.props.search.email]])]),(0,n.createElementVNode)("div",b,[(0,n.createElementVNode)("label",v,(0,n.toDisplayString)(e.$t("label.phone")),1),(0,n.withDirectives)((0,n.createElementVNode)("input",{id:"searchPhone","onUpdate:modelValue":t[3]||(t[3]=function(e){return te.props.search.phone=e}),onKeypress:t[4]||(t[4]=function(e){return oe.phoneNumber(e)}),type:"text",class:"db-field-control"},null,544),[[n.vModelText,te.props.search.phone]])]),(0,n.createElementVNode)("div",y,[(0,n.createElementVNode)("label",E,(0,n.toDisplayString)(e.$t("label.status")),1),(0,n.createVNode)(de,{class:"db-field-control f-b-custom-select",id:"searchStatus",modelValue:te.props.search.status,"onUpdate:modelValue":t[5]||(t[5]=function(e){return te.props.search.status=e}),options:[{id:te.enums.statusEnum.ACTIVE,name:e.$t("label.active")},{id:te.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,n.createElementVNode)("div",w,[(0,n.createElementVNode)("label",C,(0,n.toDisplayString)(e.$t("label.role")),1),(0,n.createVNode)(de,{class:"db-field-control f-b-custom-select",id:"role_id",modelValue:te.props.search.role_id,"onUpdate:modelValue":t[6]||(t[6]=function(e){return te.props.search.role_id=e}),options:oe.roles,"label-by":"name","value-by":"id",closeOnSelect:!0,searchable:!0,clearOnClose:!0,placeholder:"--","search-placeholder":"--"},null,8,["modelValue","options"])]),(0,n.createElementVNode)("div",V,[(0,n.createElementVNode)("div",x,[(0,n.createElementVNode)("button",N,[t[9]||(t[9]=(0,n.createElementVNode)("i",{class:"lab lab-line-search lab-font-size-16"},null,-1)),(0,n.createElementVNode)("span",null,(0,n.toDisplayString)(e.$t("button.search")),1)]),(0,n.createElementVNode)("button",{class:"db-btn py-2 text-white bg-gray-600",onClick:t[7]||(t[7]=function(){return oe.clear&&oe.clear.apply(oe,arguments)})},[t[10]||(t[10]=(0,n.createElementVNode)("i",{class:"lab lab-line-cross lab-font-size-22"},null,-1)),(0,n.createElementVNode)("span",null,(0,n.toDisplayString)(e.$t("button.clear")),1)])])])])],32)]),(0,n.createElementVNode)("div",k,[(0,n.createElementVNode)("table",A,[(0,n.createElementVNode)("thead",B,[(0,n.createElementVNode)("tr",S,[(0,n.createElementVNode)("th",_,(0,n.toDisplayString)(e.$t("label.name")),1),(0,n.createElementVNode)("th",P,(0,n.toDisplayString)(e.$t("label.email")),1),(0,n.createElementVNode)("th",$,(0,n.toDisplayString)(e.$t("label.phone")),1),(0,n.createElementVNode)("th",D,(0,n.toDisplayString)(e.$t("label.role")),1),(0,n.createElementVNode)("th",T,(0,n.toDisplayString)(e.$t("label.status")),1),oe.permissionChecker("employees_show")||oe.permissionChecker("employees_edit")||oe.permissionChecker("employees_delete")?((0,n.openBlock)(),(0,n.createElementBlock)("th",I,(0,n.toDisplayString)(e.$t("label.action")),1)):(0,n.createCommentVNode)("",!0)])]),oe.employees.length>0?((0,n.openBlock)(),(0,n.createElementBlock)("tbody",U,[((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(oe.employees,function(e){return(0,n.openBlock)(),(0,n.createElementBlock)("tr",{class:"db-table-body-tr",key:e},[(0,n.createElementVNode)("td",L,(0,n.toDisplayString)(oe.textShortener(e.name,20)),1),(0,n.createElementVNode)("td",O,(0,n.toDisplayString)(e.email),1),(0,n.createElementVNode)("td",M,[(0,n.createElementVNode)("span",j,(0,n.toDisplayString)(e.phone?e.country_code+""+e.phone:""),1)]),(0,n.createElementVNode)("td",R,(0,n.toDisplayString)(e.role),1),(0,n.createElementVNode)("td",z,[(0,n.createElementVNode)("span",{class:(0,n.normalizeClass)(oe.statusClass(e.status))},(0,n.toDisplayString)(te.enums.statusEnumArray[e.status]),3)]),oe.permissionChecker("employees_show")||oe.permissionChecker("employees_edit")||oe.permissionChecker("employees_delete")?((0,n.openBlock)(),(0,n.createElementBlock)("td",q,[(0,n.createElementVNode)("div",H,[oe.permissionChecker("employees_show")?((0,n.openBlock)(),(0,n.createBlock)(pe,{key:0,link:"admin.employees.show",id:e.id},null,8,["id"])):(0,n.createCommentVNode)("",!0),oe.permissionChecker("employees_edit")?((0,n.openBlock)(),(0,n.createBlock)(me,{key:1,onClick:function(t){return oe.edit(e)}},null,8,["onClick"])):(0,n.createCommentVNode)("",!0),oe.permissionChecker("employees_delete")?((0,n.openBlock)(),(0,n.createBlock)(ue,{key:2,onClick:function(t){return oe.destroy(e.id)}},null,8,["onClick"])):(0,n.createCommentVNode)("",!0)])])):(0,n.createCommentVNode)("",!0)])}),128))])):((0,n.openBlock)(),(0,n.createElementBlock)("tbody",F,[(0,n.createElementVNode)("tr",W,[(0,n.createElementVNode)("td",K,[(0,n.createElementVNode)("div",Y,[(0,n.createElementVNode)("div",X,[(0,n.createElementVNode)("img",{class:"w-full h-full",src:te.ENV.API_URL+"/images/default/not-found/not_found.png",alt:"Not Found"},null,8,G)]),(0,n.createElementVNode)("span",J,(0,n.toDisplayString)(e.$t("message.no_data_found")),1)])])])]))])]),oe.employees.length>0?((0,n.openBlock)(),(0,n.createElementBlock)("div",Q,[(0,n.createVNode)(he,{pagination:oe.pagination,method:oe.list},null,8,["pagination","method"]),(0,n.createElementVNode)("div",Z,[(0,n.createVNode)(ge,{props:{page:oe.paginationPage}},null,8,["props"]),(0,n.createVNode)(fe,{pagination:oe.pagination,method:oe.list},null,8,["pagination","method"])])])):(0,n.createCommentVNode)("",!0)])])],64)}],["__scopeId","data-v-75cf348e"]])},725:(e,t,o)=>{o.d(t,{A:()=>a});var n=o(9726);const l={name:"ExcelComponent",props:{method:{type:Function}},methods:{excelDownload:function(){this.method()}}};const a=(0,o(6262).A)(l,[["render",function(e,t,o,l,a,r){return(0,n.openBlock)(),(0,n.createElementBlock)("a",{href:"#",onClick:t[0]||(t[0]=(0,n.withModifiers)(function(){return r.excelDownload&&r.excelDownload.apply(r,arguments)},["prevent"])),class:"db-card-filter-dropdown-menu"},[t[1]||(t[1]=(0,n.createElementVNode)("i",{class:"lab lab-line-file-excel lab-font-size-15"},null,-1)),(0,n.createTextVNode)(" "+(0,n.toDisplayString)(e.$t("button.excel")),1)])}]])},1006:(e,t,o)=>{o.d(t,{A:()=>a});var n=o(6314),l=o.n(n)()(function(e){return e[1]});l.push([e.id,"@media print{.hidden-print[data-v-75cf348e]{display:none!important}}",""]);const a=l},1017:(e,t,o)=>{o.d(t,{A:()=>a});var n=o(9726);const l={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 a=(0,o(6262).A)(l,[["render",function(e,t,o,l,a,r){var s=(0,n.resolveComponent)("TailwindPagination");return(0,n.openBlock)(),(0,n.createElementBlock)("div",null,[(0,n.createVNode)(s,{data:o.pagination,onPaginationChangePage:r.page,"active-classes":a.activeClass,limit:1},null,8,["data","onPaginationChangePage","active-classes"])])}]])},1751:(e,t,o)=>{o.d(t,{A:()=>r});var n=o(9726),l={class:"flex flex-1 justify-between sm:hidden"};const a={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 r=(0,o(6262).A)(a,[["render",function(e,t,o,a,r,s){var i=(0,n.resolveComponent)("TailwindPagination");return(0,n.openBlock)(),(0,n.createElementBlock)("div",l,[(0,n.createVNode)(i,{data:o.pagination,onPaginationChangePage:s.page,"active-classes":r.activeClass,limit:-1},null,8,["data","onPaginationChangePage","active-classes"])])}]])},1889:(e,t,o)=>{o.d(t,{A:()=>r});var n=o(9726),l={class:"text-sm text-gray-700"};const a={name:"PaginationTextComponent",props:["props"]};const r=(0,o(6262).A)(a,[["render",function(e,t,o,a,r,s){var i,c;return(0,n.openBlock)(),(0,n.createElementBlock)("div",null,[(0,n.createElementVNode)("p",l,(0,n.toDisplayString)(e.$t("message.pagination_label",{from:null!==(i=o.props.page.from)&&void 0!==i?i: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:()=>h});var n=o(9726);const l={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,n,l;return null!=(l=null!=(n=null!=(t=this.data.first_page_url)?t:null==(e=this.data.meta)?void 0:e.first_page_url)?n:null==(o=this.data.links)?void 0:o.first)?l: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,n,l;return null!=(l=null!=(n=null!=(t=this.data.last_page_url)?t:null==(e=this.data.meta)?void 0:e.last_page_url)?n:null==(o=this.data.links)?void 0:o.last)?l:null},nextPageUrl(){var e,t,o,n,l;return null!=(l=null!=(n=null!=(t=this.data.next_page_url)?t:null==(e=this.data.meta)?void 0:e.next_page_url)?n:null==(o=this.data.links)?void 0:o.next)?l: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,n,l;return null!=(l=null!=(n=null!=(t=this.data.prev_page_url)?t:null==(e=this.data.meta)?void 0:e.prev_page_url)?n:null==(o=this.data.links)?void 0:o.prev)?l: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,n=this.lastPage,l=this.limit,a=t-l,r=t+l,s=2*(l+2),i=2*(l+2)-1,c=[],d=[],p=1;p<=n;p++)(1===p||p===n||p>=a&&p<=r||o&&p<s&&t<s-2||o&&p>n-i&&t>n-i+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)}})})}},a=(e,t)=>{const o=e.__vccOpts||e;for(const[e,n]of t)o[e]=n;return o};Boolean,Boolean;Boolean,Boolean;const r={compatConfig:{MODE:3},inheritAttrs:!1,emits:["pagination-change-page"],components:{RenderlessPagination:l},props:{data:{type:Object,default:()=>{}},limit:{type:Number,default:0},keepLength:{type:Boolean,default:!1},itemClasses:{type:Array,default:()=>["bg-white","text-gray-500","border-gray-300","hover:bg-gray-50"]},activeClasses:{type:Array,default:()=>["bg-blue-50","border-blue-500","text-blue-600"]}},methods:{onPaginationChangePage(e){this.$emit("pagination-change-page",e)}}},s=["disabled"],i=(0,n.createElementVNode)("span",{class:"sr-only"},"Previous",-1),c=(0,n.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,n.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,n.createElementVNode)("span",{class:"sr-only"},"Next",-1),u=(0,n.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,n.createElementVNode)("path",{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"})],-1);const h=a(r,[["render",function(e,t,o,l,a,r){const h=(0,n.resolveComponent)("RenderlessPagination");return(0,n.openBlock)(),(0,n.createBlock)(h,{data:o.data,limit:o.limit,"keep-length":o.keepLength,onPaginationChangePage:r.onPaginationChangePage},{default:(0,n.withCtx)(t=>[t.computed.total>t.computed.perPage?((0,n.openBlock)(),(0,n.createElementBlock)("nav",(0,n.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,n.createElementVNode)("button",(0,n.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,n.toHandlers)(t.prevButtonEvents,!0)),[(0,n.renderSlot)(e.$slots,"prev-nav",{},()=>[i,c])],16,s),((0,n.openBlock)(!0),(0,n.createElementBlock)(n.Fragment,null,(0,n.renderList)(t.computed.pageRange,(e,l)=>((0,n.openBlock)(),(0,n.createElementBlock)("button",(0,n.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:l},(0,n.toHandlers)(t.pageButtonEvents(e),!0),{disabled:e===t.computed.currentPage}),(0,n.toDisplayString)(e),17,d))),128)),(0,n.createElementVNode)("button",(0,n.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,n.toHandlers)(t.nextButtonEvents,!0)),[(0,n.renderSlot)(e.$slots,"next-nav",{},()=>[m,u])],16,p)],16)):(0,n.createCommentVNode)("",!0)]),_:3},8,["data","limit","keep-length","onPaginationChangePage"])}]])},3911:(e,t,o)=>{o.d(t,{A:()=>r});var n=o(9726),l={class:"db-card-filter-dropdown-menu"};const a={name:"PrintComponent",props:["props"],directives:{print:o(5316).A}};const r=(0,o(6262).A)(a,[["render",function(e,t,o,a,r,s){var i=(0,n.resolveDirective)("print");return(0,n.withDirectives)(((0,n.openBlock)(),(0,n.createElementBlock)("button",l,[t[0]||(t[0]=(0,n.createElementVNode)("i",{class:"lab-line-printer lab-font-size-17"},null,-1)),(0,n.createTextVNode)(" "+(0,n.toDisplayString)(e.$t("button.print")),1)])),[[i,o.props]])}]])},4579:(e,t,o)=>{o.d(t,{A:()=>r});var n=o(9726),l={class:"db-card-filter-btn table-filter-btn"};const a={name:"FilterComponent"};const r=(0,o(6262).A)(a,[["render",function(e,t,o,a,r,s){return(0,n.openBlock)(),(0,n.createElementBlock)("button",l,[t[0]||(t[0]=(0,n.createElementVNode)("i",{class:"lab lab-line-filter lab-font-size-14"},null,-1)),(0,n.createElementVNode)("span",null,(0,n.toDisplayString)(e.$t("button.filter")),1)])}]])},5316:(e,t,o)=>{o.d(t,{A:()=>a});class n{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 o=t.getPrintWindow(e);t.settings.preview?t.previewIfrmaeLoad():t.print(o)},t.settings.vue);let o=this.getPrintWindow(e);this.settings.url||this.write(o.doc),this.settings.preview?this.previewIfrmaeLoad():this.print(o)}addEvent(e,t,o){e.addEventListener?e.addEventListener(t,o,!1):e.attachEvent?e.attachEvent("on"+t,o):e["on"+t]=o}previewIfrmaeLoad(){let e=document.getElementById("vue-pirnt-nb-previewBox");if(e){let t=this,o=e.querySelector("iframe");this.settings.previewBeforeOpenCallback(),this.addEvent(o,"load",function(){t.previewBoxShow(),t.removeCanvasImg(),t.settings.previewOpenCallback()}),this.addEvent(e.querySelector(".previewBodyUtilPrintBtn"),"click",function(){t.settings.beforeOpenCallback(),t.settings.openCallback(),o.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 o=document.getElementById(this.settings.id)||e.f,n=document.getElementById(this.settings.id).contentWindow||e.f.contentWindow;t.settings.beforeOpenCallback(),t.addEvent(o,"load",function(){n.focus(),t.settings.openCallback(),n.print(),o.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="",o="";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 n=document.styleSheets;if(n&&n.length>0)for(let e=0;e<n.length;e++)try{if(n[e].cssRules||n[e].rules){let t=n[e].cssRules||n[e].rules;for(let e=0;e<t.length;e++)o+=t[e].cssText}}catch(t){console.log(n[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">${o}</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 o=t[e].parentNode,n=t[e].toDataURL("image/png"),l=new Image;l.className="canvasImg",l.style.display="none",l.src=n,o.appendChild(l)}return e}getFormData(e){let t=e.cloneNode(!0),o=t.querySelectorAll("input,select,textarea"),n=t.querySelectorAll(".canvasImg,canvas"),l=-1;for(let e=0;e<n.length;e++){let t=n[e].parentNode,o=n[e];"canvas"===o.tagName.toLowerCase()?t.removeChild(o):o.style.display="block"}for(let t=0;t<o.length;t++){let n=o[t],a=n.getAttribute("type"),r=o[t];if(a||(a="SELECT"===n.tagName?"select":"TEXTAREA"===n.tagName?"textarea":""),"INPUT"===n.tagName)"radio"===a||"checkbox"===a?n.checked&&r.setAttribute("checked",n.checked):(r.value=n.value,r.setAttribute("value",n.value));else if("select"===a){l++;for(let t=0;t<e.querySelectorAll("select").length;t++){let o=e.querySelectorAll("select")[t];if(!o.getAttribute("newbs")&&o.setAttribute("newbs",t),o.getAttribute("newbs")==l){let t=e.querySelectorAll("select")[l].selectedIndex;n.options[t].setAttribute("selected",!0)}}}else r.innerHTML=n.value,r.setAttribute("html",n.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 o=document.createElement("div");o.setAttribute("class","previewHeader"),o.setAttribute("style","padding: 5px 20px;"),o.innerHTML=this.settings.previewTitle,t.appendChild(o),this.close=document.createElement("div");let n=this.close;n.setAttribute("class","previewClose"),n.setAttribute("style","position: absolute;top: 5px;right: 20px;width: 25px;height: 20px;cursor: pointer;");let l=document.createElement("div"),a=document.createElement("div");l.setAttribute("class","closeBefore"),l.setAttribute("style","position: absolute;width: 3px;height: 100%;background: #040404;transform: rotate(45deg); top: 0px;left: 50%;"),a.setAttribute("class","closeAfter"),a.setAttribute("style","position: absolute;width: 3px;height: 100%;background: #040404;transform: rotate(-45deg); top: 0px;left: 50%;"),n.appendChild(l),n.appendChild(a),o.appendChild(n),this.previewBody=document.createElement("div");let r=this.previewBody;r.setAttribute("class","previewBody"),r.setAttribute("style","display: flex;flex-direction: column; height: 100%;"),t.appendChild(r);let s=document.createElement("div");s.setAttribute("class","previewBodyUtil"),s.setAttribute("style","height: 32px;background: #474747;position: relative;"),r.appendChild(s),this.previewBodyUtilPrintBtn=document.createElement("div");let i=this.previewBodyUtilPrintBtn;return i.setAttribute("class","previewBodyUtilPrintBtn"),i.innerHTML=this.settings.previewPrintBtnLabel,i.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);"),s.appendChild(i),document.body.appendChild(t),{close:this.close,previewBody:this.previewBody}}iframeBox(e,t){let o=document.createElement("iframe");return o.style.border="0px",o.style.position="absolute",o.style.width="0px",o.style.height="0px",o.style.right="0px",o.style.top="0px",o.setAttribute("id",e),o.setAttribute("src",t),o}Iframe(e){let t=this.settings.id;e=e||(new Date).getTime();let o=this,n=this.iframeBox(t,e);try{if(this.settings.preview){n.setAttribute("style","border: 0px;flex: 1;");let e=this.previewBox(),t=e.previewBody,l=e.close;t.appendChild(n),this.addEvent(l,"click",function(){o.previewBoxHide()})}else document.body.appendChild(n);n.doc=null,n.doc=n.contentDocument?n.contentDocument:n.contentWindow?n.contentWindow.document:n.document}catch(e){throw new Error(e+". iframes may not be supported in this browser.")}if(null==n.doc)throw new Error("Cannot find document.");return n}}var l={directiveName:"print",mounted(e,t,o){let l=t.instance,a="";var r,s,i;s="click",i=()=>{if("string"==typeof t.value)a=t.value;else{if("object"!=typeof t.value||!t.value.id)return void window.print();{a=t.value.id;let e=a.replace(new RegExp("#","g"),"");document.getElementById(e)||(console.log("id in Error"),a="")}}c()},(r=e).addEventListener?r.addEventListener(s,i,!1):r.attachEvent?r.attachEvent("on"+s,i):r["on"+s]=i;const c=()=>{new n({ids:a,vue:l,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(l)},previewOpenCallback(){t.value.previewOpenCallback&&t.value.previewOpenCallback(l)},openCallback(){t.value.openCallback&&t.value.openCallback(l)},closeCallback(){t.value.closeCallback&&t.value.closeCallback(l)},beforeOpenCallback(){t.value.beforeOpenCallback&&t.value.beforeOpenCallback(l)}})}},install:function(e){e.directive("print",l)}};const a=l},6365:(e,t,o)=>{o.d(t,{A:()=>r});var n=o(9726),l={class:"db-card-filter-btn dropdown-btn"};const a={name:"ExportComponent"};const r=(0,o(6262).A)(a,[["render",function(e,t,o,a,r,s){return(0,n.openBlock)(),(0,n.createElementBlock)("button",l,[t[0]||(t[0]=(0,n.createElementVNode)("i",{class:"lab lab-line-file-export lab-font-size-17"},null,-1)),(0,n.createElementVNode)("span",null,(0,n.toDisplayString)(e.$t("button.export")),1)])}]])},7120:(e,t,o)=>{o.d(t,{A:()=>r});var n=o(9726);var l=o(5457);const a={name:"SmSidebarModalCreateComponent",props:["props"],data:function(){return{openCanvas:(0,l.y)().openCanvas}}};const r=(0,o(6262).A)(a,[["render",function(e,t,o,l,a,r){return(0,n.openBlock)(),(0,n.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,n.withModifiers)(function(e){return a.openCanvas("sidebar")},["prevent"]))},[t[1]||(t[1]=(0,n.createElementVNode)("i",{class:"lab lab-line-add-circle"},null,-1)),(0,n.createElementVNode)("span",null,(0,n.toDisplayString)(o.props.title),1)])}]])},9238:(e,t,o)=>{o.d(t,{A:()=>r});var n=o(9726),l={class:"db-tooltip"};const a={name:"SmIconViewComponent",props:{link:String,id:Number}};const r=(0,o(6262).A)(a,[["render",function(e,t,o,a,r,s){var i=(0,n.resolveComponent)("router-link");return(0,n.openBlock)(),(0,n.createBlock)(i,{class:"db-table-action view",to:{name:this.$props.link,params:{id:this.$props.id}}},{default:(0,n.withCtx)(function(){return[t[0]||(t[0]=(0,n.createElementVNode)("i",{class:"lab lab-line-eye"},null,-1)),(0,n.createElementVNode)("span",l,(0,n.toDisplayString)(e.$t("button.view")),1)]}),_:1,__:[0]},8,["to"])}]])},9319:(e,t,o)=>{o.d(t,{A:()=>m});var n=o(9726),l={key:0,class:"db-field-down-arrow"},a={value:"10"},r={value:"25"},s={value:"50"},i={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,n.openBlock)(),(0,n.createElementBlock)("div",l,[(0,n.withDirectives)((0,n.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,n.createElementVNode)("option",a,(0,n.toDisplayString)(e.$t("number.10")),1),(0,n.createElementVNode)("option",r,(0,n.toDisplayString)(e.$t("number.25")),1),(0,n.createElementVNode)("option",s,(0,n.toDisplayString)(e.$t("number.50")),1),(0,n.createElementVNode)("option",i,(0,n.toDisplayString)(e.$t("number.100")),1),(0,n.createElementVNode)("option",c,(0,n.toDisplayString)(e.$t("number.500")),1),(0,n.createElementVNode)("option",d,(0,n.toDisplayString)(e.$t("number.1000")),1)],544),[[n.vModelSelect,o.search.per_page]])])):(0,n.createCommentVNode)("",!0)}]])},9590:(e,t,o)=>{o.d(t,{A:()=>s});var n=o(9726),l={class:"db-table-action delete"},a={class:"db-tooltip"};const r={name:"SmIconDeleteComponent"};const s=(0,o(6262).A)(r,[["render",function(e,t,o,r,s,i){return(0,n.openBlock)(),(0,n.createElementBlock)("button",l,[t[0]||(t[0]=(0,n.createElementVNode)("i",{class:"lab lab-line-trash"},null,-1)),(0,n.createElementVNode)("span",a,(0,n.toDisplayString)(e.$t("button.delete")),1)])}]])},9639:(e,t,o)=>{o.d(t,{A:()=>s});var n=o(9726),l={class:"db-tooltip"};var a=o(5457);const r={name:"SmIconSidebarModalEditComponent",data:function(){return{openCanvas:(0,a.y)().openCanvas}}};const s=(0,o(6262).A)(r,[["render",function(e,t,o,a,r,s){return(0,n.openBlock)(),(0,n.createElementBlock)("button",{class:"db-table-action edit",onClick:t[0]||(t[0]=(0,n.withModifiers)(function(e){return r.openCanvas("sidebar")},["prevent"]))},[t[1]||(t[1]=(0,n.createElementVNode)("i",{class:"lab lab-line-edit"},null,-1)),(0,n.createElementVNode)("span",l,(0,n.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