| (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[177],{6146:()=>{},34726:(e,t,s)=>{"use strict";s.d(t,{Toaster:()=>v});var r=s(58081),a=s(55844),i=s(82149),n=s(37103),o=s(23484),d=s(22522),l=s(87687);let c=n.Kq,u=i.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)(n.LM,{ref:t,className:(0,l.cn)("fixed top-0 z-[100] flex max-h-screen w-full flex-col-reverse p-4 sm:bottom-0 sm:right-0 sm:top-auto sm:flex-col md:max-w-[420px]",s),...a})});u.displayName=n.LM.displayName;let p=(0,o.F)("group pointer-events-auto relative flex w-full items-center justify-between space-x-4 overflow-hidden rounded-md border p-6 pr-8 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full data-[state=open]:sm:slide-in-from-bottom-full",{variants:{variant:{default:"border bg-background text-foreground",destructive:"destructive group border-destructive bg-destructive text-destructive-foreground"}},defaultVariants:{variant:"default"}}),f=i.forwardRef((e,t)=>{let{className:s,variant:a,...i}=e;return(0,r.jsx)(n.bL,{ref:t,className:(0,l.cn)(p({variant:a}),s),...i})});f.displayName=n.bL.displayName,i.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)(n.rc,{ref:t,className:(0,l.cn)("inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium ring-offset-background transition-colors hover:bg-secondary focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 group-[.destructive]:hover:border-destructive/30 group-[.destructive]:hover:bg-destructive group-[.destructive]:hover:text-destructive-foreground group-[.destructive]:focus:ring-destructive",s),...a})}).displayName=n.rc.displayName;let m=i.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)(n.bm,{ref:t,className:(0,l.cn)("absolute right-2 top-2 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-none focus:ring-2 group-hover:opacity-100 group-[.destructive]:text-red-300 group-[.destructive]:hover:text-red-50 group-[.destructive]:focus:ring-red-400 group-[.destructive]:focus:ring-offset-red-600",s),"toast-close":"",...a,children:(0,r.jsx)(d.A,{className:"h-4 w-4"})})});m.displayName=n.bm.displayName;let x=i.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)(n.hE,{ref:t,className:(0,l.cn)("text-sm font-semibold",s),...a})});x.displayName=n.hE.displayName;let h=i.forwardRef((e,t)=>{let{className:s,...a}=e;return(0,r.jsx)(n.VY,{ref:t,className:(0,l.cn)("text-sm opacity-90",s),...a})});function v(){let{toasts:e}=(0,a.dj)();return(0,r.jsxs)(c,{children:[e.map(function(e){let{id:t,title:s,description:a,action:i,...n}=e;return(0,r.jsxs)(f,{...n,children:[(0,r.jsxs)("div",{className:"grid gap-1",children:[s&&(0,r.jsx)(x,{children:s}),a&&(0,r.jsx)(h,{children:a})]}),i,(0,r.jsx)(m,{})]},t)}),(0,r.jsx)(u,{})]})}h.displayName=n.VY.displayName},37487:(e,t,s)=>{"use strict";s.d(t,{AppSidebar:()=>h});var r=s(58081),a=s(48822),i=s(44770),n=s(39367),o=s(59921),d=s(90018),l=s(98019),c=s(72926),u=s(83427),p=s(97938),f=s(2151),m=s(78666);let x={navMain:[{title:"Dashboard",url:"/",icon:a.A},{title:"Inventory",icon:i.A,items:[{title:"Products",url:"/inventory",icon:i.A},{title:"Barcode Scanner",url:"/inventory/scanner",icon:n.A},{title:"Alerts",url:"/inventory/alerts",icon:o.A}]},{title:"Customers",url:"/customers",icon:d.A},{title:"WhatsApp",url:"/whatsapp",icon:l.A},{title:"AI Analytics",url:"/analytics",icon:c.A},{title:"Reports",url:"/reports",icon:u.A},{title:"Finance",url:"/finance",icon:p.A}]};function h(e){let{...t}=e;return(0,r.jsxs)(m.Bx,{variant:"inset",...t,children:[(0,r.jsx)(m.Gh,{children:(0,r.jsxs)("div",{className:"flex items-center gap-2 px-4 py-2",children:[(0,r.jsx)("div",{className:"flex h-8 w-8 items-center justify-center rounded-lg bg-primary text-primary-foreground",children:(0,r.jsx)(f.A,{className:"h-4 w-4"})}),(0,r.jsxs)("div",{className:"grid flex-1 text-left text-sm leading-tight",children:[(0,r.jsx)("span",{className:"truncate font-semibold",children:"SETA Smart"}),(0,r.jsx)("span",{className:"truncate text-xs",children:"Inventory"})]})]})}),(0,r.jsx)(m.Yv,{children:(0,r.jsx)(m.Cn,{children:(0,r.jsx)(m.rQ,{children:(0,r.jsx)(m.wZ,{children:x.navMain.map(e=>(0,r.jsx)(m.FX,{children:e.items?(0,r.jsxs)("div",{children:[(0,r.jsxs)(m.Uj,{children:[(0,r.jsx)(e.icon,{}),(0,r.jsx)("span",{children:e.title})]}),(0,r.jsx)(m.wZ,{className:"ml-4",children:e.items.map(e=>(0,r.jsx)(m.FX,{children:(0,r.jsx)(m.Uj,{asChild:!0,children:(0,r.jsxs)("a",{href:e.url,children:[(0,r.jsx)(e.icon,{}),(0,r.jsx)("span",{children:e.title})]})})},e.title))})]}):(0,r.jsx)(m.Uj,{asChild:!0,children:(0,r.jsxs)("a",{href:e.url,children:[(0,r.jsx)(e.icon,{}),(0,r.jsx)("span",{children:e.title})]})})},e.title))})})})}),(0,r.jsx)(m.jM,{})]})}},55844:(e,t,s)=>{"use strict";s.d(t,{dj:()=>p});var r=s(82149);let a=0,i=new Map,n=e=>{if(i.has(e))return;let t=setTimeout(()=>{i.delete(e),c({type:"REMOVE_TOAST",toastId:e})},1e6);i.set(e,t)},o=(e,t)=>{switch(t.type){case"ADD_TOAST":return{...e,toasts:[t.toast,...e.toasts].slice(0,1)};case"UPDATE_TOAST":return{...e,toasts:e.toasts.map(e=>e.id===t.toast.id?{...e,...t.toast}:e)};case"DISMISS_TOAST":{let{toastId:s}=t;return s?n(s):e.toasts.forEach(e=>{n(e.id)}),{...e,toasts:e.toasts.map(e=>e.id===s||void 0===s?{...e,open:!1}:e)}}case"REMOVE_TOAST":if(void 0===t.toastId)return{...e,toasts:[]};return{...e,toasts:e.toasts.filter(e=>e.id!==t.toastId)}}},d=[],l={toasts:[]};function c(e){l=o(l,e),d.forEach(e=>{e(l)})}function u(e){let{...t}=e,s=(a=(a+1)%Number.MAX_SAFE_INTEGER).toString(),r=()=>c({type:"DISMISS_TOAST",toastId:s});return c({type:"ADD_TOAST",toast:{...t,id:s,open:!0,onOpenChange:e=>{e||r()}}}),{id:s,dismiss:r,update:e=>c({type:"UPDATE_TOAST",toast:{...e,id:s}})}}function p(){let[e,t]=r.useState(l);return r.useEffect(()=>(d.push(t),()=>{let e=d.indexOf(t);e>-1&&d.splice(e,1)}),[e]),{...e,toast:u,dismiss:e=>c({type:"DISMISS_TOAST",toastId:e})}}},59654:(e,t,s)=>{Promise.resolve().then(s.t.bind(s,6146,23)),Promise.resolve().then(s.bind(s,37487)),Promise.resolve().then(s.bind(s,78666)),Promise.resolve().then(s.bind(s,34726)),Promise.resolve().then(s.t.bind(s,40366,23))}},e=>{var t=t=>e(e.s=t);e.O(0,[47,484,147,666,497,954,358],()=>t(59654)),_N_E=e.O()}]); |