PageSourceSearch

https://web.bilas.id/_next/static/chunks/769-c57d70723ed6d299.js

js bilas.id collected 2026-10-01 16:28:52 UTC 28,293 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[769],{59049:function(e,t,s){var a=s(57437);s(80831);var r=s(44641),i=s(71096),n=s.n(i),o=s(27648);let l=e=>e.replace(/_/g," ").replace(/\b\w/g,e=>e.toUpperCase()),d=e=>"object"==typeof e&&null!==e&&"_seconds"in e?n()(1e3*e._seconds).format("DD/MM/YYYY HH:mm:ss"):e;t.Z=e=>{let{data:t,isLoading:s=!1}=e,i=Object.entries(t),n=Math.ceil(i.length/2),c=i.slice(0,n),u=i.slice(n),p=(e,t)=>{let[s,i]=e,n="object"==typeof i&&null!==i&&"label"in i?i.label:i;if(null==n||""===n)return null;let c="object"==typeof i&&null!==i&&"path"in i?i.path:null,u="string"==typeof c&&/^https?:\/\//.test(c);return(0,a.jsxs)("div",{className:"space-y-1",children:[(0,a.jsx)(r.Z,{children:l(s)}),c?(0,a.jsx)(r.Z,{color:"blue",children:u?(0,a.jsx)("a",{href:c,target:"_blank",rel:"noopener noreferrer",className:"cursor-pointer no-underline",children:d(n)}):(0,a.jsx)(o.default,{href:c,className:"cursor-pointer no-underline",children:d(n)})}):(0,a.jsx)(r.Z,{semibold:!0,children:d(n)})]},t)};return(0,a.jsxs)("div",{className:"w-full grid grid-cols-5 gap-3",children:[(0,a.jsx)("div",{className:"col-span-5 space-y-3 md:space-y-5 md:col-span-2",children:c.map(p)}),(0,a.jsx)("div",{className:"col-span-5 space-y-3 md:space-y-5 md:col-span-2",children:u.map(p)})]})}},71738:function(e,t,s){s.d(t,{Z:function(){return w}});var a=s(57437),r=s(44102),i=s(66854),n=s(92283),o=s(44641),l=s(64953),d=s(9380),c=s(26047),u=s(55229),p=s(52714),h=s(24163),m=s(26752),b=s(91793),f=s(64850),g=s(47386);let x=(0,s(3243).Z)("outline","printer","Printer",[["path",{d:"M17 17h2a2 2 0 0 0 2 -2v-4a2 2 0 0 0 -2 -2h-14a2 2 0 0 0 -2 2v4a2 2 0 0 0 2 2h2",key:"svg-0"}],["path",{d:"M17 9v-4a2 2 0 0 0 -2 -2h-6a2 2 0 0 0 -2 2v4",key:"svg-1"}],["path",{d:"M7 15a2 2 0 0 1 2 -2h6a2 2 0 0 1 2 2v4a2 2 0 0 1 -2 2h-6a2 2 0 0 1 -2 -2l0 -4",key:"svg-2"}]]);var y=s(99376),v=s(2265),w=e=>{let{page:t}=e,s=(0,p.Z)(),w=(0,c.Z)(),k=(0,y.useRouter)(),{no_nota:j}=(0,y.useParams)(),{authData:N}=(0,b.Z)(),C=(0,y.usePathname)(),{activeOutlet:Z}=(0,b.Z)(),{isDesktop:O}=(0,h.Z)(),{data:M,refetch:T}=(0,u.Z)({page:t}),{openModal:S,handleOpenModal:R,resetAllState:P}=(0,d.W)(),A=(null==M?void 0:M.data_aktif)===!1,E=async()=>{let e={emoney:{waktu_pesan:null==M?void 0:M.waktu,id:null==M?void 0:M.id,pemilik:N.id,nama_pemilik:N.nama,data_emoney:JSON.stringify(M)},deposit:{waktu_pesan:null==M?void 0:M.waktu,id:null==M?void 0:M.id,data_deposit:JSON.stringify(M)}};try{let a;a="invoice"===t||"penjualan"===t?await m.Z.cancelTransaction({body:{id:null==M?void 0:M.id},page:t}):await m.Z.cancelTransactionServer({body:e[t],page:t,id:null==Z?void 0:Z.id}),"1"===a.data.value?s.success({message:"Transaksi berhasil dibatalkan",closeBtnText:"Tutup",onCloseAction:T}):s.error({message:"Gagal membatalkan transaksi",closeBtnText:"Tutup",onCloseAction:null})}catch(e){s.error({message:f.cT.error,closeBtnText:"Tutup",onCloseAction:null})}};return(0,v.useEffect)(()=>P(),[C]),(0,a.jsxs)("div",{className:"w-full flex justify-between border-b custom-border gap-y-3 pb-3",children:[(0,a.jsxs)("div",{className:"min-w-fit flex items-center gap-x-2",children:[(0,a.jsx)("button",{className:"hidden md:block",onClick:()=>k.back(),children:(0,a.jsx)(g.Z,{size:28,className:"text-secondary-light dark:text-secondary-dark"})}),(0,a.jsx)(o.Z,{size:"xl",semibold:!0,children:decodeURIComponent(j)}),(0,a.jsx)(l.Z,{isCircle:!1,className:"rounded-md",padding:"px-2 py-0",textSize:"small",isTextSemibold:!0,variant:A?"danger-outline":"blue-outline",text:A?"Dibatalkan":"Lunas",textColor:A?"danger":"blue"})]}),(0,a.jsxs)("div",{className:"w-full flex items-center gap-x-2 justify-end",children:[("deposit"===t||"emoney"===t)&&(0,a.jsxs)(n.Z,{padding:"p-2 md:py-1 md:px-4",variant:"outline",onClick:()=>R("printer",{type:"deposit"===t?"topup_paket_receipt":"topup_deposit_receipt",transactionData:M}),children:[(0,a.jsx)(x,{size:16,className:"md:hidden",color:"blue"}),(0,a.jsx)(o.Z,{color:"blue",className:"hidden md:block",children:"Cetak Nota"})]}),!A&&(0,a.jsxs)(n.Z,{padding:"p-2 md:py-1 md:px-4",variant:O?"danger-outline":"dark-outline",onClick:()=>{w.open({title:"Konfirmasi",cancelBtnText:"Batal",confirmBtnText:"Proses",isShowCancelBtn:!0,isShowConfirmBtn:!0,message:"Apakah anda yakin akan membatalkan transaksi ini?",close:w.close,onConfirm:E})},children:[(0,a.jsx)(r.HF,{className:"md:hidden"}),(0,a.jsx)(o.Z,{color:"danger",className:"hidden md:block",children:"Batalkan"})]})]}),S.printer.isOpen&&(0,a.jsx)(i.Z,{...S.printer})]})}},20940:function(e,t,s){var a=s(57437),r=s(18378),i=s(44641);t.Z=e=>{let{dataTable:t,columnTable:s,title:n=null}=e;return(0,a.jsxs)("div",{className:"w-full space-y-2  md:space-y-4 custom-border",children:[n&&(0,a.jsx)(i.Z,{size:"large",semibold:!0,children:n}),(0,a.jsx)(r.Z,{showPagination:!1,pagesize:null==t?void 0:t.length,columns:s,data:t,isEmptyImg:!1})]})}},37131:function(e,t,s){var a=s(57437),r=s(36760),i=s.n(r);t.Z=e=>{let{children:t,className:s="",useMinHeight:r=!0}=e;return(0,a.jsx)("div",{className:i()("relative flex flex-col w-full rounded-xl bg-subbackground-light dark:bg-background-dark",{"min-h-[calc(100dvh-200
1px)] space-y-3 md:space-y-5 px-4 py-4 md:mt-5 md:px-8 md:py-7":r,"p-4":!r},s),children:t})}},80831:function(e,t,s){s.d(t,{$j:function(){return g},RP:function(){return b},YE:function(){return f},Zb:function(){return o},aV:function(){return d},bZ:function(){return h},iA:function(){return l},uc:function(){return u},vz:function(){return c},wW:function(){return p},xv:function(){return n},zj:function(){return x}});var a=s(57437),r=s(37062);s(1014);let i=e=>{let{className:t,...s}=e;return(0,a.jsx)("div",{className:(0,r.cn)("animate-pulse rounded-md","bg-gray-300 dark:bg-gray-600",t),...s})};t.ZP=i;let n=e=>{let{className:t}=e;return(0,a.jsx)(i,{className:(0,r.cn)("w-32 h-5 rounded-lg",t)})},o=e=>{let{className:t}=e;return(0,a.jsxs)("div",{className:(0,r.cn)("p-5 border custom-border rounded-2xl flex flex-col gap-y-5",t),children:[(0,a.jsxs)("div",{className:"flex items-center gap-x-4",children:[(0,a.jsx)(i,{className:"w-16 h-16 rounded-full shrink-0"}),(0,a.jsxs)("div",{className:"flex flex-col gap-y-3 flex-1",children:[(0,a.jsx)(i,{className:"w-2/3 h-5 rounded-md"}),(0,a.jsx)(i,{className:"w-full h-5 rounded-md"})]})]}),(0,a.jsx)(i,{className:"w-full h-4 rounded-md"})]})},l=e=>{let{row:t=5,col:s=4}=e;return(0,a.jsxs)("div",{className:"w-full flex flex-col gap-y-4",children:[(0,a.jsx)("div",{className:"w-full flex gap-3 border-b border-gray-100 dark:border-gray-800 pb-2",children:[...Array(s)].map((e,t)=>(0,a.jsx)(i,{className:"w-full h-8"},t))}),[...Array(t)].map((e,t)=>(0,a.jsx)("div",{className:"w-full flex gap-3 items-center",children:[...Array(s)].map((e,t)=>(0,a.jsx)(i,{className:"w-full h-6"},t))},t))]})},d=e=>{let{row:t=5}=e;return(0,a.jsx)("div",{className:"w-full flex flex-col gap-y-4",children:[...Array(t)].map((e,t)=>(0,a.jsxs)("div",{className:"flex items-center justify-between",children:[(0,a.jsxs)("div",{className:"flex items-center gap-4",children:[(0,a.jsx)(i,{className:"w-12 h-12 rounded-full"}),(0,a.jsxs)("div",{className:"flex flex-col gap-y-2",children:[(0,a.jsx)(i,{className:"w-32 h-5"}),(0,a.jsx)(i,{className:"w-48 h-4 opacity-60"})]})]}),(0,a.jsxs)("div",{className:"flex flex-col items-end gap-y-2",children:[(0,a.jsx)(i,{className:"w-20 h-5"}),(0,a.jsx)(i,{className:"w-12 h-4 opacity-60"})]})]},t))})},c=e=>{let{count:t=6}=e;return(0,a.jsxs)("div",{className:(0,r.cn)("w-full p-6 border custom-border rounded-2xl bg-subbackground-light dark:bg-background-dark flex flex-col gap-y-6"),children:[(0,a.jsxs)("div",{className:"flex justify-between items-center",children:[(0,a.jsx)(i,{className:"w-32 h-6"}),(0,a.jsx)(i,{className:"w-16 h-6"})]}),(0,a.jsx)("div",{className:"flex items-end gap-x-3 h-48 w-full px-2",children:[...Array(t)].map((e,s)=>{let r=[...Array(t)].map(()=>Math.floor(100*Math.random()))[s%t];return(0,a.jsx)(i,{className:"w-full rounded-t-lg",style:{height:"".concat(r,"%")}},s)})}),(0,a.jsx)("div",{className:"flex justify-between px-2",children:[...Array(t)].map((e,t)=>(0,a.jsx)(i,{className:"w-8 h-3"},t))})]})},u=()=>(0,a.jsxs)("div",{className:"w-full flex flex-col gap-y-4",children:[(0,a.jsx)(i,{className:"w-32 h-6 mb-2"}),(0,a.jsxs)("div",{className:"flex flex-col sm:flex-row items-center justify-center gap-10 py-4",children:[(0,a.jsxs)("div",{className:"relative flex items-center justify-center",children:[(0,a.jsx)(i,{className:"w-40 h-40 rounded-full"}),(0,a.jsx)("div",{className:"absolute w-24 h-24 rounded-full bg-subbackground-light dark:bg-background-dark"})]}),(0,a.jsx)("div",{className:"flex flex-col gap-y-4 w-full sm:w-auto",children:[void 0,void 0,void 0].map((e,t)=>(0,a.jsxs)("div",{className:"flex items-center gap-3",children:[(0,a.jsx)(i,{className:"w-4 h-4 rounded-full"}),(0,a.jsxs)("div",{className:"flex flex-col gap-y-1",children:[(0,a.jsx)(i,{className:"w-24 h-4"}),(0,a.jsx)(i,{className:"w-16 h-3 opacity-50"})]})]},t))})]})]}),p=()=>(0,a.jsxs)("div",{className:"w-full flex flex-col gap-y-4",children:[(0,a.jsxs)("div",{className:"flex justify-between items-center",children:[(0,a.jsx)(i,{className:"w-32 h-6"}),(0,a.jsxs)("div",{className:"flex gap-2",children:[(0,a.jsx)(i,{className:"w-12 h-6"}),(0,a.jsx)(i,{className:"w-12 h-6"})]})]}),(0,a.jsxs)("div",{className:"relative h-48 w-full mt-2",children:[(0,a.jsxs)("div",{className:"absolute inset-0 flex flex-col justify-between py-2",children:[(0,a.jsx)("div",{className:"w-full border-b-2 border-dashed border-gray-100 dark:border-gray-800"}),(0,a.jsx)("div",{className:"w-full border-b-2 border-dashed border-gray-100 dark:border-gray-800"}),(0,a.jsx)("div",{className:"w-full border-b-2 border-dashed border-gray-100 dark:border-gray-800"}),(0,a.jsx)("div",{className:"w-full border-b-2 border-dashed border-gray-100 dark:border-gray-800"})]}),(0,a.jsx)("div",{className:"absolute inset-0 pt-4",children:(0,a.jsx)("svg",{className:"w-full h-full text-gray-400 dark:text-gray-600 opacity-50 animate-pulse",viewBox:"0 0 400 100",preserveAspectRatio:"none",children:(0,a.jsx)("path",{d:"M0,80 L40,60 L80,75 L120,40 L160,55 L200,30 L240,45 L280,20 L320,35 L360,10 L400,25",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})})})]})]}),h=e=>{let{col:t=4,row:s=5}=e;return(0,a.jsxs)("div",{className:"",children:[(0,a.jsx)("div",{className:"hidden md:block",children:(0,a.jsx)(l,{c
1ol:t,row:s})}),(0,a.jsx)("div",{className:"md:hidden block",children:(0,a.jsx)(d,{row:s})})]})},m=["w-full","w-11/12","w-full","w-5/6","w-full","w-3/4"],b=e=>{let{paragraphs:t=4,linesPerParagraph:s=4}=e;return(0,a.jsx)("div",{className:"w-full flex flex-col gap-y-6",children:[...Array(t)].map((e,t)=>(0,a.jsx)("div",{className:"flex flex-col gap-y-2",children:[...Array(s)].map((e,n)=>(0,a.jsx)(i,{className:(0,r.cn)("h-4 rounded",n===s-1?"w-2/3":m[(t*s+n)%m.length])},n))},t))})},f=()=>{let e=[3,6,6,1];return(0,a.jsx)("div",{className:"w-full flex flex-col gap-y-6 pt-4",children:e.map((t,s)=>(0,a.jsxs)("div",{className:"flex flex-col gap-y-2",children:[(0,a.jsx)(i,{className:"w-24 h-3 mb-2 opacity-70"}),(0,a.jsx)("div",{className:"flex flex-col gap-y-4",children:[...Array(t)].map((e,t)=>(0,a.jsxs)("div",{className:"flex items-center gap-x-4 px-2",children:[(0,a.jsx)(i,{className:"w-5 h-5 rounded-md shrink-0"}),(0,a.jsx)(i,{className:(0,r.cn)("h-4 rounded-md w-40")})]},t))}),s!==e.length-1&&(0,a.jsx)("div",{className:"w-full border-b border-gray-200 dark:border-gray-800 my-2"})]},s))})},g=()=>(0,a.jsx)("span",{className:"border-2 border-b-primary-light rounded-full inline-block box-border animate-spin w-6 h-6"}),x=()=>(0,a.jsx)("div",{className:"fixed inset-0 z-[9999] flex items-center justify-center bg-white/50 dark:bg-black/50 backdrop-blur-sm",children:(0,a.jsx)(g,{})})},1014:function(e,t,s){var a=s(57437),r=s(44641);t.Z=e=>{let{loadingText:t=null,className:s,color:i,textColor:n="white",textSize:o="base"}=e;return(0,a.jsxs)("div",{className:"flex items-center gap-x-2",children:[(0,a.jsx)("span",{className:"border-2 border-b-transparent rounded-full inline-block box-border animate-spin ".concat({default:"border-white",gray:"border-disable-light",black:"border-primary-dark"}[i||"default"]," ").concat({base:"w-4 h-4",large:"w-6 h-6",xl:"w-10 h-10"}[o])}),t&&(0,a.jsx)(r.Z,{className:s,color:n,size:o,children:t})]})}},64953:function(e,t,s){var a=s(57437),r=s(37062),i=s(91443),n=s(44641);t.Z=e=>{let{text:t,textColor:s="",customTextColor:o="",variant:l="",onClick:d,className:c="",textSize:u="",padding:p="px-4 py-1",customSize:h="",upperCase:m=!1,capitalize:b=!1,lowerCase:f=!1,isTextBold:g=!1,isTextSemibold:x=!1,isTextThin:y=!1,isCircle:v=!0}=e;return(0,a.jsxs)("div",{className:(0,r.cn)("text-white capitalize flex items-center dark:text-secondary-light",{"rounded-full":v,"justify-between gap-x-4":d,"justify-center":!d},p,{primary:"bg-primary-light dark:bg-primary-dark",success:"bg-success-light dark:bg-success-dark",danger:"bg-danger-light dark:bg-danger-dark",warning:"bg-warning-light dark:bg-warning-dark",disable:"bg-disable-light dark:bg-disable-dark",orange:"bg-orange-light dark:bg-orange-dark",outline:"border border-primary dark:border-disable-light","orange-outline":"border bg-orange-soft bg-opacity-10 border-orange-soft dark:border-orange-dark","danger-outline":"border bg-danger-soft bg-opacity-10 border-danger-soft dark:border-danger-light","blue-outline":"border bg-primary-soft bg-opacity-10 border-primary-soft dark:border-primary-dark","warning-outline":"border bg-warning-soft bg-opacity-10 border-warning-soft dark:border-warning-dark","success-outline":"border bg-success-soft bg-opacity-10 border-success-soft dark:border-success-dark","disable-outline":"border bg-disable-soft border-disable-light dark:border-disable-dark dark:bg-disable-soft",starter:"bg-gradient-to-b from-[#74EBD5] to-[#9FACE6]",pos:"bg-gradient-to-b from-[#FAB624] to-[#EF8522]",reg:"bg-gradient-to-b from-[#62AADD] to-[#4279BD]",bisnis:"bg-gradient-to-b from-[#E6007E] to-[#FE0003]",trial:"bg-disable-light dark:bg-disable-dark"}[l]||"",c),children:[(0,a.jsx)(n.Z,{size:u,customSize:h,color:s,customColor:o,bold:g,semibold:x,thin:y,upperCase:m,capitalize:b,lowerCase:f,children:t}),d&&(0,a.jsx)("button",{className:"text-disable-dark hover:text-gray-800 dark:text-disable-light dark:hover:text-disable-soft",onClick:d,"aria-label":"Close dialog",children:(0,a.jsx)(i.Z,{className:"w-4 h-4 text-primary-light"})})]})}},26047:function(e,t,s){let a=(0,s(3011).U)(e=>({isOpen:!1,title:"",message:"",onConfirm:()=>{},onCancel:null,cancelBtnText:"Tidak",confirmBtnText:"Ya",isShowConfirmBtn:!0,isShowCancelBtn:!0,image:null,open:t=>e({isOpen:!0,...t}),close:()=>e({isOpen:!1,title:"",message:"",onConfirm:()=>{},onCancel:null,cancelBtnText:"Tidak",confirmBtnText:"Ya",isShowConfirmBtn:!0,isShowCancelBtn:!0,image:null})}));t.Z=a},52714:function(e,t,s){let a=(0,s(3011).U)((e,t)=>({isOpen:!1,message:"",variant:"info",closeBtnText:"Tutup",onCloseAction:null,open:t=>{let{message:s,variant:a="info",closeBtnText:r="Tutup",onCloseAction:i=null}=t;return e({isOpen:!0,message:s,variant:a,closeBtnText:r,onCloseAction:i})},close:()=>{let{onCloseAction:s}=t();s&&"function"==typeof s&&s(),e({isOpen:!1,message:"",variant:"info",onCloseAction:null})},success:t=>{let{message:s,closeBtnText:a,onCloseAction:r=null}=t;return e({isOpen:!0,message:s,variant:"success",closeBtnText:a,onCloseAction:r})},error:t=>{let{message:s,closeBtnText:a,onCloseAction:r=null}=t;return e({isOpen:!0,message:s,variant:"error",closeBtnText:a,onCloseAction:r})},warning:t=>{let{message:s,closeBtnText:a,onCloseAction:r=null}=t;return e({isOpen:!0,message:s,variant:"warning",closeBtnText:a,onCloseAction:r})},info:t=>{let{message:s,closeBtnText:a,onCloseAction:r=null}=t;return e({isOpen:!0,message:s,variant:"info",closeBtnText:a,onCloseAction:r})}}));t.Z=a},22202:function(e,t,s){s.d(t,{G6:function(){return u},QI:function(){return p},ag:function(){return h},lG:function(){return b},pA:function(){return d},pF:function(){return c},pt:function(){return m}});var a=s(8561),r=s(91793),i=s(64850),n=s(11713),o=s(21770),l=s(3011);let d=()=>{var e,t,s,o;let{activeOutletId:l,setActiveOutlet:d}=(0,r.Z)(),c=(0,n.a)({queryKey:["outlet-data",l],queryFn:async()=>{let e=(await a.Z.getOutletProfile(l)).data.result;return e&&d(e),e},enabled:!!l}),u=(null===(e=c.data)||void 0===e?void 0:e.tipe)==="trial"?null===(t=c.data)||void 0===t?void 0:t.modetrial:null===(s=c.data)||void 0===s?void 0:s.tipe;return{outletType:i.$D[u],timeZone:(null===(o=c.data)||void 0===o?void 0:o.zonawaktu)||"Asia/Jakarta",...c}},c=function(){for(var e,t,s,i=arguments.length,o=Array(i),l=0;l<i;l++)o[l]=arguments[l];let{authData:d}=(0,r.Z)(),c={uid:null==d?void 0:d.uid,...(null==d?void 0:null===(e=d.role)||void 0===e?void 0:e.name)!=="pemilik"&&{staff_id_outlets:JSON.stringify(null==d?void 0:d.list_idoutlet)}},u=(0,n.a)({queryKey:["outlet-list",null==d?void 0:d.uid,null==d?void 0:d.id,null==d?void 0:null===(t=d.role)||void 0===t?void 0:t.name],queryFn:async()=>(await a.Z.getOutletList(c)).data.result,enabled:!!d,...o}),p=null===(s=u.data)||void 0===s?void 0:s.some(e=>"trial"===e.tipe);return{...u,isContainTrialOutlet:p}},u=()=>(0,o.D)({mutationFn:async e=>
1(await a.Z.updateReceiptConfig(e)).data.result}),p=(0,l.U)((e,t)=>({footerText:"",setFooterText:t=>e({footerText:t}),receipt:{},setReceipt:t=>e({receipt:t}),customReceipt:{},setCustomReceipt:t=>e({customReceipt:t}),paperWidth:58,setPaperWidth:t=>{localStorage.setItem("paperWidth",String(t)),e({paperWidth:t})},getMaxLength:e=>{let s=t().paperWidth;return 58===s?e?24:32:80===s?e?40:48:32},initFromOutlet:t=>{var s,a,r;return e({footerText:null!==(s=null==t?void 0:t.footer)&&void 0!==s?s:"",receipt:null!==(a=null==t?void 0:t.nota)&&void 0!==a?a:{},customReceipt:null!==(r=null==t?void 0:t.notacustom)&&void 0!==r?r:{}})}})),h=(0,l.U)(e=>({formData:{jadwal:{},antarjemput:[]},shuttle:[],jadwalErrors:{},shuttleErrors:[],setFormData:t=>e(e=>({formData:"function"==typeof t?t(e.formData):t})),setShuttle:t=>e(e=>({shuttle:"function"==typeof t?t(e.shuttle):t})),setJadwalErrors:t=>e({jadwalErrors:t}),setShuttleErrors:t=>e({shuttleErrors:t})})),m=()=>(0,o.D)({mutationFn:async e=>(await a.Z.updateJamOperasional(e)).data}),b=()=>(0,o.D)({mutationFn:async e=>(await a.Z.updateOngkir(e)).data})},24163:function(e,t,s){var a=s(2265);t.Z=()=>{let[e,t]=(0,a.useState)(!1),[s,r]=(0,a.useState)(0),[i,n]=(0,a.useState)({xs:!1,sm:!1,md:!1,lg:!1,xl:!1,"2xl":!1});return(0,a.useEffect)(()=>{{let e=()=>{let e=window.innerWidth;t(e>768),r(e<=768?10:15),n({xs:e<640,sm:e>=640,md:e>=768,lg:e>=1024,xl:e>=1280,"2xl":e>=1536})};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}}},[]),{isDesktop:e,itemsToShow:s,...i}}},8561:function(e,t,s){var a=s(24758),r=s(64850);let i=(0,a.a)(r.U3.dashboard),n=(0,a.a)(r.U3.backend);t.Z={getOutletProfile:e=>i.get("/web/outlet/profil?id=".concat(e)),updateOutletProfile:e=>i.post("/web/outlet/profil",e,{headers:{"x-access-token":"sjgyfne73592643gedudney3628465hgrdt","Content-Type":"multipart/form-data"}}),updateNota:e=>i.post("/web/outlet/nota",e),updateOngkir:e=>i.post("/web/outlet/ongkir",e),updateJamOperasional:e=>i.post("/web/outlet/jam",e),updateTransactionMethod:e=>i.post("/web/outlet/transaksi",e),getProvince:()=>n.get("/provinsi"),getCity:()=>n.get("/kabupaten"),getBankList:()=>i.get("/web/banks"),getCityByProviceId:e=>n.get("/kota/".concat(e)),getOpenStreetMapAPI:(e,t)=>i.get("https://nominatim.openstreetmap.org/reverse",{params:{format:"jsonv2",lat:e,lon:t,"accept-language":"id"},headers:{"User-Agent":"Bilas Dashboard ([email protected])","Accept-Language":"id"}}),getOutletList:e=>i.post("/web/outlet/list",e),addNewOutlet:e=>i.post("/web/outlet/create",e,{headers:{"x-access-token":"sjgyfne73592643gedudney3628465hgrdt","Content-Type":"multipart/form-data"}}),updateReceiptConfig:e=>i.put("/web/outlet/receipt",e)}},26752:function(e,t,s){var a=s(24758),r=s(64850);let i=(0,a.a)(r.U3.dashboard),n=(0,a.a)(r.U3.report);t.Z={getAllReguler:(e,t)=>i.get("/web/transaksi/reguler/all?id=".concat(e),{params:t}),getDetailTransaction:e=>{let{body:t,page:s}=e;return i.post("/web/transaksi/".concat(s,"/detail"),t)},cancelTransactionServer:e=>{let{id:t,body:s,page:a}=e;return n.put("/v1/ubahdata/".concat(a,"?id=").concat(t),s)},cancelTransaction:e=>{let{body:t,page:s}=e;return i.put("/web/transaksi/".concat(s,"/delete"),t)},getProdukJual:e=>i.get("/web/transaksi/produk/penjualan?id=".concat(e)),getTrxCountByStatus:e=>i.post("/web/transaksi/reguler/transactions-by-status",e),createRegularTrx:e=>i.post("/web/transaksi/reguler/create",e),updateRegularTrx:e=>i.post("/web/transaksi/reguler/update",e),topupEmoney:e=>i.post("/web/transaksi/topup/emoney",e),topupEmoneyWithQris:e=>i.post("/web/transaksi/topup/emoney/qris",e),topupDeposit:e=>i.post("/web/transaksi/topup/deposit",e),topupDepositWithQris:e=>i.post("/web/transaksi/topup/deposit/qris",e),produksi:{update:e=>i.post("/web/transaksi/produksi/update",e),cuci:e=>i.post("/web/transaksi/produksi/cuci",e),pengeringan:e=>i.post("/web/transaksi/produksi/pengeringan",e),setrika:e=>i.post("/web/transaksi/produksi/setrika",e),ambil:e=>i.post("/web/transaksi/produksi/ambil",e),selesai:e=>i.post("/web/transaksi/produksi/selesai",e),start_jemput:e=>i.post("/web/transaksi/produksi/jemput/start",e),finish_jemput:e=>i.post("/web/transaksi/produksi/jemput/finish",e),counter:e=>i.post("/web/transaksi/produksi/jemput/counter",e),start_antar:e=>i.post("/web/transaksi/produksi/antar/start",e),finish_antar:e=>i.post("/web/transaksi/produksi/antar/finish",e),finish_all:e=>i.post("/web/transaksi/produksi/finish-all",e)},payment:e=>i.post("/web/payment/transaksi/create",e),kasbon:e=>i.put("/web/payment/transaksi/kasbon",e),invoice:{invoiceTrxList:e=>n.post("/v1/invoicetrx/bonbyid",e),createInvoice:e=>i.post("/web/transaksi/invoice/create",e),createPayment:e=>i.post("/web/payment/invoice/create",e),cancelInvoice:e=>i.post("/web/transaksi/invoice/delete",e)}
1,penjualan:{create:e=>i.post("/web/transaksi/penjualan/create",e),payment:e=>i.post("/web/payment/penjualan/create",e),delete:e=>i.put("/web/transaksi/penjualan/delete",e)}}},62596:function(e,t,s){s.d(t,{Z:function(){return a}});let a=(0,s(3243).Z)("outline","trash","Trash",[["path",{d:"M4 7l16 0",key:"svg-0"}],["path",{d:"M10 11l0 6",key:"svg-1"}],["path",{d:"M14 11l0 6",key:"svg-2"}],["path",{d:"M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12",key:"svg-3"}],["path",{d:"M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3",key:"svg-4"}]])},2894:function(e,t,s){s.d(t,{R:function(){return o},m:function(){return n}});var a=s(18238),r=s(7989),i=s(11255),n=class extends r.F{#e;#t;#s;#a;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#s=e.mutationCache,this.#t=[],this.state=e.state||o(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#s.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#s.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#t.length||("pending"===this.state.status?this.scheduleGc():this.#s.remove(this))}continue(){return this.#a?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#r({type:"continue"})},s={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#a=(0,i.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(e,s):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#r({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#r({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#s.canRun(this)});let a="pending"===this.state.status,r=!this.#a.canStart();try{if(a)t();else{this.#r({type:"pending",variables:e,isPaused:r}),this.#s.config.onMutate&&await this.#s.config.onMutate(e,this,s);let t=await this.options.onMutate?.(e,s);t!==this.state.context&&this.#r({type:"pending",context:t,variables:e,isPaused:r})}let i=await this.#a.start();return await this.#s.config.onSuccess?.(i,e,this.state.context,this,s),await this.options.onSuccess?.(i,e,this.state.context,s),await this.#s.config.onSettled?.(i,null,this.state.variables,this.state.context,this,s),await this.options.onSettled?.(i,null,e,this.state.context,s),this.#r({type:"success",data:i}),i}catch(t){try{await this.#s.config.onError?.(t,e,this.state.context,this,s)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,s)}catch(e){Promise.reject(e)}try{await this.#s.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,s)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,s)}catch(e){Promise.reject(e)}throw this.#r({type:"error",error:t}),t}finally{this.#s.runNext(this)}}#r(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),a.Vr.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#s.notify({mutation:this,type:"updated",action:e})})}};function o(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},21770:function(e,t,s){s.d(t,{D:function(){return c}});var a=s(2265),r=s(2894),i=s(18238),n=s(24112),o=s(45345),l=class extends n.l{#e;#i=void 0;#n;#o;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#l()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),(0,o.VS)(this.options,t)||this.#e.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,o.Ym)(t.mutationKey)!==(0,o.Ym)(this.options.mutationKey)?this.reset():this.#n?.state.status==="pending"&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#l(),this.#d(e)}getCurrentResult(){return this.#i}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#l(),this.#d()}mutate(e,t){return this.#o=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#l(){let e=this.#n?.state??(0,r.R)();this.#i={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#d(e){i.Vr.batch(()=>
1{if(this.#o&&this.hasListeners()){let t=this.#i.variables,s=this.#i.context,a={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type==="success"){try{this.#o.onSuccess?.(e.data,t,s,a)}catch(e){Promise.reject(e)}try{this.#o.onSettled?.(e.data,null,t,s,a)}catch(e){Promise.reject(e)}}else if(e?.type==="error"){try{this.#o.onError?.(e.error,t,s,a)}catch(e){Promise.reject(e)}try{this.#o.onSettled?.(void 0,e.error,t,s,a)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#i)})})}},d=s(29827);function c(e,t){let s=(0,d.NL)(t),[r]=a.useState(()=>new l(s,e));a.useEffect(()=>{r.setOptions(e)},[r,e]);let n=a.useSyncExternalStore(a.useCallback(e=>r.subscribe(i.Vr.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),c=a.useCallback((e,t)=>{r.mutate(e,t).catch(o.ZT)},[r]);if(n.error&&(0,o.L3)(r.options.throwOnError,[n.error]))throw n.error;return{...n,mutate:c,mutateAsync:n.mutate}}}}]);

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.