1"use strict";(self["webpackChunk_coreui_coreui_free_vue_admin_template"]=self["webpackChunk_coreui_coreui_free_vue_admin_template"]||[]).push([[7314],{10823:function(e,t,a){a.r(t),a.d(t,{default:function(){return I}});var r=a(92161);const s={key:0,class:"adm-page"},o={class:"adm-card"},l={class:"adm-toolbar"},n={class:"adm-search"},c={key:0,class:"adm-loading"},i={key:1},d={class:"adm-table-wrap"},m={class:"adm-table"},u={class:"adm-sort-icon"},h={class:"adm-sort-icon"},E={class:"adm-sort-icon"},N={key:0},p={class:"adm-cell-name"},V={class:"adm-cell-msg"},y={key:1,class:"adm-noaccess"},g={key:2,class:"adm-loading-page"};function k(e,t,a,k,f,v){return v.isContactFeatureVisible?((0,r.openBlock)(),(0,r.createElementBlock)("div",s,[t[16]||(t[16]=(0,r.createElementVNode)("div",{class:"adm-page-header"},[(0,r.createElementVNode)("div",null,[(0,r.createElementVNode)("h1",{class:"adm-page-title"},"Contact Us"),(0,r.createElementVNode)("p",{class:"adm-page-sub"},"View and manage contact enquiries submitted by users.")])],-1)),(0,r.createElementVNode)("div",o,[(0,r.createElementVNode)("div",l,[(0,r.createElementVNode)("div",n,[t[4]||(t[4]=(0,r.createElementVNode)("svg",{width:"15",height:"15",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[(0,r.createElementVNode)("circle",{cx:"11",cy:"11",r:"8"}),(0,r.createElementVNode)("line",{x1:"21",y1:"21",x2:"16.65",y2:"16.65"})],-1)),(0,r.withDirectives)((0,r.createElementVNode)("input",{type:"text","onUpdate:modelValue":t[0]||(t[0]=e=>f.searchQuery=e),placeholder:"Search contacts...",class:"adm-search-input"},null,512),[[r.vModelText,f.searchQuery]])])]),f.Busy?((0,r.openBlock)(),(0,r.createElementBlock)("div",c,[...t[5]||(t[5]=[(0,r.createElementVNode)("div",{class:"adm-spinner"},null,-1),(0,r.createTextVNode)(" Loading... ",-1)])])):((0,r.openBlock)(),(0,r.createElementBlock)("div",i,[(0,r.createElementVNode)("div",d,[(0,r.createElementVNode)("table",m,[(0,r.createElementVNode)("thead",null,[(0,r.createElementVNode)("tr",null,[(0,r.createElementVNode)("th",{class:"adm-sort-th",onClick:t[1]||(t[1]=e=>v.handleSort("CreatedDate"))},[t[6]||(t[6]=(0,r.createTextVNode)("Date ",-1)),(0,r.createElementVNode)("span",u,(0,r.toDisplayString)(v.sortIcon("CreatedDate")),1)]),(0,r.createElementVNode)("th",{class:"adm-sort-th",onClick:t[2]||(t[2]=e=>v.handleSort("Name"))},[t[7]||(t[7]=(0,r.createTextVNode)("Name ",-1)),(0,r.createElementVNode)("span",h,(0,r.toDisplayString)(v.sortIcon("Name")),1)]),t[9]||(t[9]=(0,r.createElementVNode)("th",null,"Mobile Number",-1)),(0,r.createElementVNode)("th",{class:"adm-sort-th",onClick:t[3]||(t[3]=e=>v.handleSort("Email"))},[t[8]||(t[8]=(0,r.createTextVNode)("Email ",-1)),(0,r.createElementVNode)("span",E,(0,r.toDisplayString)(v.sortIcon("Email")),1)]),t[10]||(t[10]=(0,r.createElementVNode)("th",null,"Message",-1)),t[11]||(t[11]=(0,r.createElementVNode)("th",null,"Status",-1)),t[12]||(t[12]=(0,r.createElementVNode)("th",null,"Action",-1))])]),(0,r.createElementVNode)("tbody",null,[v.filteredList.length?(0,r.createCommentVNode)("",!0):((0,r.openBlock)(),(0,r.createElementBlock)("tr",N,[...t[13]||(t[13]=[(0,r.createElementVNode)("td",{colspan:"7",class:"adm-empty"},"No contact enquiries found.",-1)])])),((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(v.filteredList,e=>((0,r.openBlock)(),(0,r.createElementBlock)("tr",{key:e.Id},[(0,r.createElementVNode)("td",null,(0,r.toDisplayString)(v.formatDate(e.CreatedDate)),1),(0,r.createElementVNode)("td",null,[(0,r.createElementVNode)("span",p,(0,r.toDisplayString)(e.Name),1)]),(0,r.createElementVNode)("td",null,(0,r.toDisplayString)(e.Phone),1),(0,r.createElementVNode)("td",null,(0,r.toDisplayString)(e.Email),1),(0,r.createElementVNode)("td",null,[(0,r.createElementVNode)("span",V,(0,r.toDisplayString)(e.Help),1)]),t[14]||(t[14]=(0,r.createElementVNode)("td",null,[(0,r.createElementVNode)("span",{class:"adm-badge adm-badge--amber"},"Unsolve")],-1)),t[15]||(t[15]=(0,r.createElementVNode)("td",null,[(0,r.createElementVNode)("div",{class:"adm-actions"},[(0,r.createElementVNode)("button",{class:"adm-btn-edit"},"Detail"),(0,r.createElementVNode)("button",{class:"adm-btn-del"},[(0,r.createElementVNode)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[(0,r.createElementVNode)("polyline",{points:"3 6 5 6 21 6"}),(0,r.createElementVNode)("path",{d:"M19 6l-1 14H6L5 6"}),(0,r.createElementVNode)("path",{d:"M10 11v6M14 11v6"})])])])],-1))]))),128))])])])]))])])):f.featuresLoaded?((0,r.openBlock)(),(0,r.createElementBlock)("div",y,[...t[17]||(t[17]=[(0,r.createElementVNode)("svg",{width:"48",height:"48",viewBox:"0 0 24 24",fill:"none",stroke:"#928AFD","stroke-width":"1.5"},[(0,r.createElementVNode)("circle",{cx:"12",cy:"12",r:"10"}),(0,r.createElementVNode)("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),(0,r.createElementVNode)("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})],-1),(0,r.createElementVNode)("h3",null,"No Access",-1),(0,r.createElementVNode)("p",null,"You don't have permission to access this page. Please contact your administrator.",-1)])])):((0,r.openBlock)(),(0,r.createElementBlock)("div",g,[...t[18]||(t[18]=[(0,r.createElementVNode)("div",{class:"adm-spinner"},null,-1)])]))}a(74423),a(18111),a(22489),a(13579);var f=a(74199),v=a.n(f),w=(a(34042),a(68337)),b=a(67860),C=a(33208),B=a(23394),L=a(45813),D=a(34487),x=a(86116),S=a(95093),A={name:"Login",components:{MarqueeText:v(),Mainlayout:B.A,Footerlayout:L.A,PulseLoader:x.A},data(){return{backgroundUrl:w,backgroundUrl1:b,backgroundMap:C,backgroundUrNoArrow:D,isPopupVisible2:!1,list:[],user:{}
1,isPopupVisible3:!1,videoUrl:"",searchQuery:"",sortKey:null,sortOrder:"asc",Busy:!1,features:[],isPopupError:!0,featuresLoaded:!1}},async mounted(){try{const e=await this.UserAuth();e?(await this.GetInfoUser(),this.GetListContactUs(),await this.getFeatures()):this.GoToLogin()}catch(e){console.error("Error during authentication:",e)}},computed:{filteredList(){const e=(this.searchQuery||"").toLowerCase().trim();let t=this.list.filter(t=>{const a=(t.Name||"").toLowerCase(),r=(t.Email||"").toLowerCase(),s=(t.Help||"").toLowerCase();return!e||(a.includes(e)||r.includes(e)||s.includes(e))});if(this.sortKey){const e=this.sortKey,a="asc"===this.sortOrder?1:-1;t=[...t].sort((t,r)=>{const s=(t[e]||"").toString().toLowerCase(),o=(r[e]||"").toString().toLowerCase();return s<o?-a:s>o?a:0})}return t},isContactFeatureVisible(){return this.featuresLoaded?Array.isArray(this.features)&&this.features.some(e=>"Input"===e.FeaturesType&&e.IsVisible):null}},methods:{handleSort(e){this.sortKey===e?this.sortOrder="asc"===this.sortOrder?"desc":"asc":(this.sortKey=e,this.sortOrder="asc")},sortIcon(e){return this.sortKey!==e?"â ":"asc"===this.sortOrder?"â²":"â¼"},formatDate(e){return e?S(e).format("DD-MM-YYYY"):"-"},async GetInfoUser(){try{const e=await this.$API.get(this.$LoginUserDetail,{withCredentials:!0});200===e.status&&(this.user=e.data)}catch(e){console.error("Error fetching user information:",e)}},async GetListContactUs(){try{this.Busy=!0;const e=await this.$API.get(this.$GetListContactUs);200===e.status&&(this.Busy=!1,this.list=e.data)}catch(e){this.Busy=!1}},async getFeatures(){try{const e=await this.$API.get(this.$GetFeatures,{withCredentials:!0});200===e.status&&(this.features=e.data)}catch(e){console.error("Error fetching features:",e)}finally{this.featuresLoaded=!0}}}},U=a(66262);const _=(0,U.A)(A,[["render",k],["__scopeId","data-v-2309238f"]]);var I=_}}]); 2//# sourceMappingURL=7314.896a6f6b.js.map
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.