PageSourceSearch

https://nusagold.com.my/assets/CustomerIndex-BLK-pexV.js

js nusagold.com.my collected 2026-10-10 01:54:11 UTC 2,759 bytes, 1 lines download raw bytes

1import{F as _}from"./FilterMenu-DXnoeN3z.js";import{C as h,a as v}from"./CustomerTable-liRKZrqU.js";import{u as x}from"./report-B1LyzE7K.js";import{d as E,r as a,_ as R,c as w,b as e,q as l,v as F,g as m,h as M}from"./index-BiNElWAS.js";import"./multiselect-Dt1ifPrq.js";import"./index-CLQ_oLGC.js";import"./module-CYOBmVmI.js";import"./corporate-BfNdskJn.js";import"./form-data-CS5u0Hln.js";import"./bank-BgX_qMFx.js";import"./EntityDrilldownBreadcrumb-B3J4M8DB.js";import"./inputmask-CAoaweY4.js";import"./index.esm-BRoZROyn.js";import"./Attachment-oMDZ8iLZ.js";import"./FileCropper-BnHMaMbK.js";import"./assets-Ckar7Qhq.js";import"./country-DDAdyZlB.js";import"./user-CX0okrn2.js";import"./transaction-UhJKP5rI.js";import"./BaseTable-7wE6CdkE.js";import"./vue-skeletor.esm-CmHjpPLi.js";import"./BootstrapPagination-DTPAkT8K.js";import"./date-BCyDNxp-.js";import"./moment-C5S46NFB.js";import"./number-format-BAldXnqs.js";import"./price-Bq9pgzqX.js";const S=E({components:{FilterMenu:_,CustomerTable:v,CustomerCreateModal:h},setup(){const r=a(),t=a(),i=a(),c=a(),n=x();return{customerTableRef:r,modalCreateCustomerRef:t,filterMenuRef:i,queryData:c,createCustomer:()=>{t.value.modalShow()},searchFilter:o=>{c.value=o,r.value.fetchData(1,10,o)},exportExcel:async o=>{await n.fetchReportExportUsers({...o,search:{...o==null?void 0:o.search,user_t
1ype:"customer"}});const C=await(await fetch(n.reportExcelUrl)).blob(),u=window.URL.createObjectURL(C),s=document.createElement("a");s.href=u,s.setAttribute("download",n.reportExcelUrl.split("/").pop()),document.body.appendChild(s),s.click(),document.body.removeChild(s),window.URL.revokeObjectURL(u),i.value.enableButton()}}}}),U={class:"row"},k={class:"col-12"},T={class:"card"},B={class:"card-header"},$={class:"card-toolbar"},y={class:"card-body"};function L(r,t,i,c,n,b){const p=m("FilterMenu"),d=m("CustomerTable"),o=m("CustomerCreateModal");return M(),w("div",U,[e("div",k,[e("div",T,[e("div",B,[t[2]||(t[2]=e("div",{class:"card-title"},"Customers",-1)),e("div",$,[e("button",{id:"exportSubmitButton",type:"button",ref:"btnSubmitExportRef",onClick:t[0]||(t[0]=f=>r.createCustomer()),class:"btn btn-primary btn-sm"},t[1]||(t[1]=[e("i",{class:"bi bi-plus-circle"},null,-1),e("span",{class:"indicator-label"}," Add Customer ",-1),e("span",{class:"indicator-progress"},[F(" Please wait... "),e("span",{class:"spinner-border spinner-border-sm align-middle ms-2"})],-1)]),512)])]),l(p,{ref:"filterMenuRef",onExportExcel:r.exportExcel,onSearchFilter:r.searchFilter,"is-users":!0},null,8,["onExportExcel","onSearchFilter"]),e("div",y,[l(d,{ref:"customerTableRef","query-data":r.queryData},null,8,["query-data"])])])]),l(o,{ref:"modalCreateCustomerRef"},null,512)])}const ae=R(S,[["render",L]]);export{ae 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.