1import{_ as h,c as i,o as a,a as o,m as g,p as _,F as m,q as f,s as b,t as p,n as C,B as w,y as v,b as d,r as y}from"./DNWdprDe.js";import{T}from"./CoWFHeLu.js";import{g as $}from"./3CRU-8BP.js";const M={name:"SupportTablo",data(){return{showUserModal:!1,table:null,modalTitle:"",buttonText:"",user:{},users:[],changeCalled:"",errorConfirm:{showErrorMessage:!1,warnMessage:"",customClass:"",time:3e3},message:"",authority:[],selectedTab:!0,host:w().host,adminHost:"admin.corezzle.com"}},computed:{tabs(){return[{label:this.$t("support.all"),value:null},{label:this.$t("support.open"),value:!0},{label:this.$t("support.close"),value:!1}]}},mounted:async function(){this.initializeTable(),this.authority=this.$store.getters.getAuthority,await this.allAdminUser()},watch:{"$i18n.locale"(e,t){this.table&&e!==t&&C(()=>{this.updateTableColumns()})}},methods:{async allAdminUser(e=null){this.users=await $(e),this.users&&this.table.setData(this.users)},getTableColumns(){const e=this;return[{title:"#",width:"50",formatter:function(t){return t.getRow()._row.position}},{title:this.$t("support.category"),field:"subject.name"},{title:this.$t("support.title"),field:"title"},{title:this.$t("support.status"),field:"statu",formatter:function(t){return t.getValue()?e.$t("support.open"):e.$t("support.close")}},{title:this.$t("support.date"),field:"created_at",formatter:t=>new Date(t.getValue()).toISOString().slice(0,19).replace("T"," ")},{title:this.$t("support.message_detail"),formatter:function(t){return'<button class="go-to-detail" style="border: none; cursor: pointer; width: 100px; background: none;">â¡ï¸</button>'},cellClick:(t,n)=>{const s=n.getRow().getData().id;this.$router.push({name:"MessageDetail",query:{id:s}})}}]},initializeTable(){this.table=new T(this.$refs.table,{reactiveData:!0,layout:"fitColumns",resizableColumnFit:!0,responsiveLayout:"collapse",height:"100%",responsiveLayoutCollapseStartOpen:!1,pagination:"local",paginationSize:25,paginationSizeSelector:[5,10,25,50,100],ajaxFiltering:!0,paginationCounter:"rows",columns:this.getTableColumns()})},updateTableColumns(){if(this.table){const e=this.getTableColumns();this.table.setColumns(e)}},async toggleSupportModal(){this.$router.push({path:"/SupportHelpFormModal",query:{isNew:!0}})},closeErrorMessage(){this.errorConfirm.showErrorMessage=!1},errorMessage(e,t,n,u=3e3){this.errorConfirm.showErrorMessage=e,this.errorConfirm.warnMessage=t,this.errorConfirm.customClass=n,this.errorConfirm.time=u},async changeTab(e){this.selectedTab=e,await this.allAdminUser(e)}},beforeUnmount(){this.table&&this.table.destroy()}},k={class:"page-table"},S={class:"table-section"},x={class:"row",style:{padding:"20px"}},D={key:0,class:"tab-menu"},z=["onClick"],E={ref:"table",style:{width:"100%"}};function B(e,t,n,u,s,l){const c=v;return a(),i(m,null,[o("div",k,[o("div",S,[o("div",x,[s.host===s.adminHost?(a(),i("div",D,[(a(!0),i(m,null,f(l.tabs,r=>(a(),i("button",{key:r.value,class:b({active:s.selectedTab===r.value}),onClick:N=>l.changeTab(r.value)},p(r.label),11,z))),128))])):(a(),i("button",{key:1,class:"btn btn-success",style:{"z-index":"1",float:"right",margin:"-5px 0 15px 0"},onClick:t[0]||(t[0]=(...r)=>l.toggleSupportModal&&l.toggleSupportModal(...r))},p(e.$t("support.create_new_support")),1)),o("div",E,null,512)])])]),s.errorConfirm.showErrorMessage?(a(),g(c,{key:0,customClass:s.errorConfirm.customClass,"warn-message":s.errorConfirm.warnMessage,timeOut:s.errorConfirm.time,onClose:l.closeErrorMessage},null,8,["customClass","warn-message","timeOut","onClose"])):_("",!0)],64)}const F=h(M,[["render",B]]),H={name:"SupportHelp"},U={class:"blok-section"},q={class:"draft-section"},A={class:"blok blok-md-12",id:"drag_div"},V={class:"sub-header"};function L(e,t,n,u,s,l){const c=y("font-awesome-icon"),r=F;return a(),i("div",U,[o("div",q,[o("div",A,[o("div",V,[o("div",null,[d(c,{class:"icon",icon:["fas","pen-to-square"]}),o("span",null,p(e.$t("support.support_title")),1)])]),d(r)])])])}const j=h(H,[["render",L],["__scopeId","data-v-276a9d65"]]);export{j as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.