@simpoobusiness/sdk 1.0.13 → 1.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1 @@
1
+ export declare const createApiClient: (apiKey: string) => Axios.AxiosInstance;
@@ -0,0 +1 @@
1
+ export declare const icons: Icons;
@@ -0,0 +1,8 @@
1
+ import React from "react";
2
+ declare function InfoCard({ children, trigger, fieldName, align, }: {
3
+ children: React.ReactNode;
4
+ trigger?: any;
5
+ fieldName?: string;
6
+ align?: "start" | "center" | "end";
7
+ }): import("react/jsx-runtime").JSX.Element;
8
+ export default InfoCard;
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ declare function Container({ children, className, }: {
3
+ children: React.ReactNode;
4
+ className?: string;
5
+ }): import("react/jsx-runtime").JSX.Element;
6
+ export default Container;
@@ -0,0 +1,4 @@
1
+ declare function StatusComponent({ status }: {
2
+ status: string;
3
+ }): import("react/jsx-runtime").JSX.Element;
4
+ export default StatusComponent;
@@ -0,0 +1,9 @@
1
+ export interface Emptyprops {
2
+ header?: string;
3
+ subText?: string;
4
+ icon?: string;
5
+ }
6
+ declare function ItemEmpty({ props }: {
7
+ props?: Emptyprops;
8
+ }): import("react/jsx-runtime").JSX.Element;
9
+ export default ItemEmpty;
@@ -0,0 +1,27 @@
1
+ import { type ColumnDef } from "@tanstack/react-table";
2
+ import { ReactNode } from "react";
3
+ import { Meta } from "./pagination-component";
4
+ import { Emptyprops } from "./ItemEmpty";
5
+ interface DataTableProps<TData, TValue> {
6
+ columns: ColumnDef<TData, TValue>[];
7
+ data: TData[];
8
+ tbhRowClass?: string;
9
+ tHeadClass?: string;
10
+ tbCellClass?: string;
11
+ meta?: Meta;
12
+ showBulkActions?: boolean;
13
+ showPaginate?: boolean;
14
+ emptyData?: boolean;
15
+ emptyProps?: Emptyprops;
16
+ loading?: boolean;
17
+ hasAccordion?: boolean;
18
+ accordionData?: (row: TData) => ReactNode;
19
+ bodyRowClass?: string;
20
+ tableContainerClass?: string;
21
+ firstCellClass?: string;
22
+ lastCellClass?: string;
23
+ showAccordionDropdown?: boolean;
24
+ onToggleAccordion?: (index: number, row: TData) => void;
25
+ }
26
+ export declare function Table<TData, TValue>({ columns, data, tbhRowClass, tHeadClass, tbCellClass, meta, showBulkActions, showPaginate, emptyData, emptyProps, loading, accordionData, hasAccordion, bodyRowClass, tableContainerClass, firstCellClass, lastCellClass, showAccordionDropdown, onToggleAccordion, }: DataTableProps<TData, TValue>): import("react/jsx-runtime").JSX.Element;
27
+ export {};
@@ -0,0 +1,13 @@
1
+ export interface Meta {
2
+ current_page: number;
3
+ last_page: number;
4
+ per_page: number;
5
+ total: number;
6
+ from: number;
7
+ to: number;
8
+ }
9
+ declare function PaginationComponent({ showBulkActions, meta, }: {
10
+ showBulkActions?: boolean;
11
+ meta?: Meta;
12
+ }): import("react/jsx-runtime").JSX.Element;
13
+ export default PaginationComponent;
@@ -0,0 +1,27 @@
1
+ import * as React from "react";
2
+ import * as DropdownMenuPrimitive from "@radix-ui/react-dropdown-menu";
3
+ declare const DropdownMenu: React.FC<DropdownMenuPrimitive.DropdownMenuProps>;
4
+ declare const DropdownMenuTrigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
5
+ declare const DropdownMenuGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>>;
6
+ declare const DropdownMenuPortal: React.FC<DropdownMenuPrimitive.DropdownMenuPortalProps>;
7
+ declare const DropdownMenuSub: React.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
8
+ declare const DropdownMenuRadioGroup: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & React.RefAttributes<HTMLDivElement>>;
9
+ declare const DropdownMenuSubTrigger: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
10
+ inset?: boolean;
11
+ } & React.RefAttributes<HTMLDivElement>>;
12
+ declare const DropdownMenuSubContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
13
+ declare const DropdownMenuContent: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
14
+ declare const DropdownMenuItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
15
+ inset?: boolean;
16
+ } & React.RefAttributes<HTMLDivElement>>;
17
+ declare const DropdownMenuCheckboxItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
18
+ declare const DropdownMenuRadioItem: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
19
+ declare const DropdownMenuLabel: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
20
+ inset?: boolean;
21
+ } & React.RefAttributes<HTMLDivElement>>;
22
+ declare const DropdownMenuSeparator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
23
+ declare const DropdownMenuShortcut: {
24
+ ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>): import("react/jsx-runtime").JSX.Element;
25
+ displayName: string;
26
+ };
27
+ export { DropdownMenu, DropdownMenuTrigger, DropdownMenuContent, DropdownMenuItem, DropdownMenuCheckboxItem, DropdownMenuRadioItem, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuGroup, DropdownMenuPortal, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuRadioGroup, };
@@ -0,0 +1,6 @@
1
+ import * as React from "react";
2
+ import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
3
+ declare const HoverCard: React.FC<HoverCardPrimitive.HoverCardProps>;
4
+ declare const HoverCardTrigger: React.ForwardRefExoticComponent<HoverCardPrimitive.HoverCardTriggerProps & React.RefAttributes<HTMLAnchorElement>>;
5
+ declare const HoverCardContent: React.ForwardRefExoticComponent<Omit<HoverCardPrimitive.HoverCardContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
6
+ export { HoverCard, HoverCardTrigger, HoverCardContent };
@@ -0,0 +1,2 @@
1
+ declare function Skeleton({ className, ...props }: React.HTMLAttributes<HTMLDivElement>): import("react/jsx-runtime").JSX.Element;
2
+ export { Skeleton };
@@ -0,0 +1,10 @@
1
+ import * as React from "react";
2
+ declare const Table: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableElement> & React.RefAttributes<HTMLTableElement>>;
3
+ declare const TableHeader: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
4
+ declare const TableBody: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
5
+ declare const TableFooter: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableSectionElement> & React.RefAttributes<HTMLTableSectionElement>>;
6
+ declare const TableRow: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableRowElement> & React.RefAttributes<HTMLTableRowElement>>;
7
+ declare const TableHead: React.ForwardRefExoticComponent<React.ThHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
8
+ declare const TableCell: React.ForwardRefExoticComponent<React.TdHTMLAttributes<HTMLTableCellElement> & React.RefAttributes<HTMLTableCellElement>>;
9
+ declare const TableCaption: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLTableCaptionElement> & React.RefAttributes<HTMLTableCaptionElement>>;
10
+ export { Table, TableHeader, TableBody, TableFooter, TableHead, TableRow, TableCell, TableCaption, };
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export declare const InventoryTable: React.FC;
@@ -0,0 +1,22 @@
1
+ import { ColumnDef } from "@tanstack/react-table";
2
+ export type Items = {
3
+ item_description: string;
4
+ all_quantity: number;
5
+ quantity: number;
6
+ type: string;
7
+ selling_price: number;
8
+ categories: Array<any>;
9
+ tags: string[];
10
+ status: string;
11
+ sku: string;
12
+ item_image: string;
13
+ barcode: Array<any>;
14
+ expired: number;
15
+ expiring: number;
16
+ unit: string;
17
+ uuid: string;
18
+ item_type_id: string;
19
+ reorder_level: string;
20
+ fullData: ItemData;
21
+ };
22
+ export declare const itemColumns: ColumnDef<Items>[];
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ interface SDKContextProps {
3
+ apiKey: string;
4
+ }
5
+ export declare const useSDK: () => SDKContextProps;
6
+ interface SDKProviderProps {
7
+ apiKey: string;
8
+ children: React.ReactNode;
9
+ }
10
+ export declare const SimpooProvider: React.FC<SDKProviderProps>;
11
+ export {};
@@ -0,0 +1,17 @@
1
+ import "./styles/tailwind.css";
2
+ /**
3
+ * Initializes the Simpoo SDK with your configuration.
4
+ * @param config - Object containing API key and other options.
5
+ * @example
6
+ * SimpooSDK.init({ apiKey: "12345" });
7
+ */
8
+ export declare function init(config: {
9
+ apiKey: string;
10
+ }): void;
11
+ /**
12
+ * Renders the Inventory widget inside a container.
13
+ * @param containerSelector - CSS selector for the container element.
14
+ * @example
15
+ * SimpooSDK.renderInventory("#inventory-widget");
16
+ */
17
+ export declare function renderWidget(widgetName: string, selector: string): void;
@@ -0,0 +1,2 @@
1
+ export { SimpooProvider } from "./context/SimpooProvider";
2
+ export { InventoryTable } from "./components/widgets/inventory/InventoryTable";
@@ -0,0 +1,2 @@
1
+ import { type ClassValue } from "clsx";
2
+ export declare function cn(...inputs: ClassValue[]): string;
@@ -1 +1 @@
1
- /*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer theme, base, components, utilities;@layer theme{:host,:root{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-gray-50:oklch(98.5% 0.002 247.839);--color-gray-100:oklch(96.7% 0.003 264.542);--color-gray-200:oklch(92.8% 0.006 264.531);--color-gray-300:oklch(87.2% 0.01 258.338);--color-gray-500:oklch(55.1% 0.027 264.364);--color-gray-600:oklch(44.6% 0.03 256.802);--color-gray-700:oklch(37.3% 0.034 259.733);--color-neutral-50:oklch(98.5% 0 0);--color-neutral-100:oklch(97% 0 0);--color-neutral-200:oklch(92.2% 0 0);--color-neutral-800:oklch(26.9% 0 0);--color-neutral-900:oklch(20.5% 0 0);--color-neutral-950:oklch(14.5% 0 0);--color-black:#000;--color-white:#fff;--spacing:0.25rem;--text-xs:0.75rem;--text-xs--line-height:1.33333;--text-sm:0.875rem;--text-sm--line-height:1.42857;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-widest:0.1em;--radius-sm:0.25rem;--radius-md:0.375rem;--radius-lg:0.5rem;--radius-xl:0.75rem;--radius-2xl:1rem;--animate-pulse:pulse 2s cubic-bezier(0.4,0,0.6,1) infinite;--default-transition-duration:150ms;--default-transition-timing-function:cubic-bezier(0.4,0,0.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,::backdrop,::file-selector-button,:after,:before{border:0 solid;box-sizing:border-box;margin:0;padding:0}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:var(--default-font-feature-settings,normal);-webkit-tap-highlight-color:transparent;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-variation-settings:var(--default-font-variation-settings,normal);line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:var(--default-mono-font-feature-settings,normal);font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-size:1em;font-variation-settings:var(--default-mono-font-variation-settings,normal)}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}menu,ol,ul{list-style:none}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}::file-selector-button,button,input,optgroup,select,textarea{font-feature-settings:inherit;background-color:transparent;border-radius:0;color:inherit;font:inherit;font-variation-settings:inherit;letter-spacing:inherit;opacity:1}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::-moz-placeholder{opacity:1}::placeholder{opacity:1}@supports (not (-webkit-appearance:-apple-pay-button)) or (contain-intrinsic-size:1px){::-moz-placeholder{color:currentcolor;@supports (color:color-mix(in lab,red,red)){color:color-mix(in oklab,currentcolor 50%,transparent)}}::placeholder{color:currentcolor;@supports (color:color-mix(in lab,red,red)){color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-meridiem-field,::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-minute-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-second-field,::-webkit-datetime-edit-year-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}::file-selector-button,button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer utilities{.absolute{position:absolute}.relative{position:relative}.left-2{left:calc(var(--spacing)*2)}.z-50{z-index:50}.container{width:100%;@media (width >= 40rem){max-width:40rem}@media (width >= 48rem){max-width:48rem}@media (width >= 64rem){max-width:64rem}@media (width >= 80rem){max-width:80rem}@media (width >= 96rem){max-width:96rem}}.-mx-1{margin-inline:calc(var(--spacing)*-1)}.my-1{margin-block:calc(var(--spacing)*1)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-5{margin-top:calc(var(--spacing)*5)}.ml-auto{margin-left:auto}.flex{display:flex}.hidden{display:none}.inline{display:inline}.table{display:table}.h-2{height:calc(var(--spacing)*2)}.h-3\.5{height:calc(var(--spacing)*3.5)}.h-4{height:calc(var(--spacing)*4)}.h-6{height:calc(var(--spacing)*6)}.h-9{height:calc(var(--spacing)*9)}.h-12{height:calc(var(--spacing)*12)}.h-24{height:calc(var(--spacing)*24)}.h-\[18px\]{height:18px}.h-\[30px\]{height:30px}.h-\[50px\]{height:50px}.h-full{height:100%}.h-px{height:1px}.w-2{width:calc(var(--spacing)*2)}.w-3\.5{width:calc(var(--spacing)*3.5)}.w-4{width:calc(var(--spacing)*4)}.w-6{width:calc(var(--spacing)*6)}.w-64{width:calc(var(--spacing)*64)}.w-\[50px\]{width:50px}.w-\[90px\]{width:90px}.w-\[140px\]{width:140px}.w-\[210px\]{width:210px}.w-full{width:100%}.max-w-\[265px\]{max-width:265px}.min-w-\[8rem\]{min-width:8rem}.min-w-\[70px\]{min-width:70px}.shrink-0{flex-shrink:0}.caption-bottom{caption-side:bottom}.-rotate-90{rotate:-90deg}.rotate-90{rotate:90deg}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.list-disc{list-style-type:disc}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-2\.5{gap:calc(var(--spacing)*2.5)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-5{gap:calc(var(--spacing)*5)}.gap-\[5px\]{gap:5px}.gap-\[30px\]{gap:30px}.space-y-1{:where(&>:not(:last-child)){--tw-space-y-reverse:0;margin-block-end:calc(var(--spacing)*1*(1 - var(--tw-space-y-reverse)));margin-block-start:calc(var(--spacing)*1*var(--tw-space-y-reverse))}}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-\[7px\]{border-radius:7px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-none{--tw-border-style:none;border-style:none}.\!border-gray-600{border-color:var(--color-gray-600)!important}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-neutral-200{border-color:var(--color-neutral-200)}.bg-\[\#0A0D14\]{background-color:#0a0d14}.bg-\[\#9747FF1A\]{background-color:#9747ff1a}.bg-\[\#E1E3EA\]{background-color:#e1e3ea}.bg-\[\#f5edff\]{background-color:#f5edff}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-300{background-color:var(--color-gray-300)}.bg-neutral-100{background-color:var(--color-neutral-100)}.bg-white{background-color:var(--color-white)}.fill-current{fill:currentcolor}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:calc(var(--spacing)*0)}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-2\.5{padding:calc(var(--spacing)*2.5)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-\[7px\]{padding:7px}.px-2{padding-inline:calc(var(--spacing)*2)}.px-\[5px\]{padding-inline:5px}.px-\[15px\]{padding-inline:15px}.py-1\.5{padding-block:calc(var(--spacing)*1.5)}.py-2\.5{padding-block:calc(var(--spacing)*2.5)}.py-24{padding-block:calc(var(--spacing)*24)}.py-\[30px\]{padding-block:30px}.pr-2{padding-right:calc(var(--spacing)*2)}.pl-4{padding-left:calc(var(--spacing)*4)}.pl-8{padding-left:calc(var(--spacing)*8)}.text-center{text-align:center}.text-left{text-align:left}.align-middle{vertical-align:middle}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[13px\]{font-size:13px}.text-\[15px\]{font-size:15px}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.whitespace-nowrap{white-space:nowrap}.text-\[\#7239EA\]{color:#7239ea}.text-\[\#CDD0D5\]{color:#cdd0d5}.text-black{color:var(--color-black)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-neutral-950{color:var(--color-neutral-950)}.text-white{color:var(--color-white)}.capitalize{text-transform:capitalize}.uppercase{text-transform:uppercase}.opacity-60{opacity:60%}.shadow-\[0_3px_4px_0_\#00000008\]{--tw-shadow:0 3px 4px 0 var(--tw-shadow-color,#00000008)}.shadow-\[0_3px_4px_0_\#00000008\],.shadow-\[0_8px_14px_0_\#0F2A510A\]{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_8px_14px_0_\#0F2A510A\]{--tw-shadow:0 8px 14px 0 var(--tw-shadow-color,#0f2a510a)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,rgba(0,0,0,.1)),0 4px 6px -4px var(--tw-shadow-color,rgba(0,0,0,.1))}.shadow-lg,.shadow-md{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,rgba(0,0,0,.1)),0 2px 4px -2px var(--tw-shadow-color,rgba(0,0,0,.1))}.transition-colors{transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.transition-transform{transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.duration-200{--tw-duration:200ms;transition-duration:.2s}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.first-letter\:uppercase{&:first-letter{text-transform:uppercase}}.hover\:border{&:hover{@media (hover:hover){border-bottom-width:1px;border-left-width:1px;border-right-width:1px;border-style:var(--tw-border-style);border-top-width:1px}}}.hover\:\!bg-gray-100{&:hover{@media (hover:hover){background-color:var(--color-gray-100)!important}}}.hover\:bg-gray-50{&:hover{@media (hover:hover){background-color:var(--color-gray-50)}}}.hover\:bg-gray-100{&:hover{@media (hover:hover){background-color:var(--color-gray-100)}}}.focus\:bg-neutral-100{&:focus{background-color:var(--color-neutral-100)}}.focus\:text-neutral-900{&:focus{color:var(--color-neutral-900)}}.data-\[disabled\]\:pointer-events-none{&[data-disabled]{pointer-events:none}}.data-\[disabled\]\:opacity-50{&[data-disabled]{opacity:50%}}.data-\[side\=bottom\]\:slide-in-from-top-2{&[data-side=bottom]{--tw-enter-translate-y:calc(var(--spacing)*2*-1)}}.data-\[side\=left\]\:slide-in-from-right-2{&[data-side=left]{--tw-enter-translate-x:calc(var(--spacing)*2)}}.data-\[side\=right\]\:slide-in-from-left-2{&[data-side=right]{--tw-enter-translate-x:calc(var(--spacing)*2*-1)}}.data-\[side\=top\]\:slide-in-from-bottom-2{&[data-side=top]{--tw-enter-translate-y:calc(var(--spacing)*2)}}.data-\[state\=checked\]\:border-none{&[data-state=checked]{--tw-border-style:none;border-style:none}}.data-\[state\=closed\]\:animate-out{&[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}}.data-\[state\=closed\]\:fade-out-0{&[data-state=closed]{--tw-exit-opacity:0}}.data-\[state\=closed\]\:zoom-out-95{&[data-state=closed]{--tw-exit-scale:95%;--tw-exit-scale:.95}}.data-\[state\=open\]\:animate-in{&[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}}.data-\[state\=open\]\:bg-neutral-100{&[data-state=open]{background-color:var(--color-neutral-100)}}.data-\[state\=open\]\:fade-in-0{&[data-state=open]{--tw-enter-opacity:0}}.data-\[state\=open\]\:zoom-in-95{&[data-state=open]{--tw-enter-scale:95%;--tw-enter-scale:.95}}.data-\[state\=selected\]\:bg-gray-100{&[data-state=selected]{background-color:var(--color-gray-100)}}.dark\:bg-neutral-800,.dark\:bg-neutral-950,.dark\:border-neutral-800,.dark\:focus\:bg-neutral-800,.dark\:text-neutral-50{@media (prefers-color-scheme:dark){&:focus{background-color:var(--color-neutral-800)}}}.dark\:focus\:text-neutral-50{@media (prefers-color-scheme:dark){&:focus{color:var(--color-neutral-50)}}}.dark\:data-\[state\=open\]\:bg-neutral-800{@media (prefers-color-scheme:dark){&[data-state=open]{background-color:var(--color-neutral-800)}}}.\[\&_tr\]\:border-b{& tr{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}}.\[\&_tr\:last-child\]\:border-0{& tr:last-child{border-style:var(--tw-border-style);border-width:0}}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0{&:has([role=checkbox]){padding-right:calc(var(--spacing)*0)}}.\[\&\>tr\]\:last\:border-b-0{&>tr{&:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}}}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}@keyframes pulse{50%{opacity:.5}}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0))}}@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}
1
+ /*! tailwindcss v4.1.11 | MIT License | https://tailwindcss.com */@layer properties{@supports ((-webkit-hyphens:none) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,::backdrop,:after,:before{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-border-style:solid;--tw-font-weight:initial;--tw-tracking:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-duration:initial;--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0}}}@layer theme{:host,:root{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-200:oklch(92.8% .006 264.531);--color-gray-300:oklch(87.2% .01 258.338);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-600:oklch(44.6% .03 256.802);--color-gray-700:oklch(37.3% .034 259.733);--color-neutral-50:oklch(98.5% 0 0);--color-neutral-100:oklch(97% 0 0);--color-neutral-200:oklch(92.2% 0 0);--color-neutral-800:oklch(26.9% 0 0);--color-neutral-900:oklch(20.5% 0 0);--color-neutral-950:oklch(14.5% 0 0);--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:1.33333;--text-sm:.875rem;--text-sm--line-height:1.42857;--font-weight-normal:400;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-widest:.1em;--radius-sm:.25rem;--radius-md:.375rem;--radius-lg:.5rem;--radius-xl:.75rem;--radius-2xl:1rem;--animate-pulse:pulse 2s cubic-bezier(.4,0,.6,1)infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,::backdrop,:after,:before{border:0 solid;box-sizing:border-box;margin:0;padding:0}::file-selector-button{border:0 solid;box-sizing:border-box;margin:0;padding:0}:host,html{-webkit-text-size-adjust:100%;font-feature-settings:var(--default-font-feature-settings,normal);-webkit-tap-highlight-color:transparent;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-variation-settings:var(--default-font-variation-settings,normal);line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4}hr{border-top-width:1px;color:inherit;height:0}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,pre,samp{font-feature-settings:var(--default-mono-font-feature-settings,normal);font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-size:1em;font-variation-settings:var(--default-mono-font-variation-settings,normal)}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{border-collapse:collapse;border-color:inherit;text-indent:0}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}menu,ol,ul{list-style:none}audio,canvas,embed,iframe,img,object,svg,video{display:block;vertical-align:middle}img,video{height:auto;max-width:100%}button,input,optgroup,select,textarea{font-feature-settings:inherit;background-color:#0000;border-radius:0;color:inherit;font:inherit;font-variation-settings:inherit;letter-spacing:inherit;opacity:1}::file-selector-button{font-feature-settings:inherit;background-color:#0000;border-radius:0;color:inherit;font:inherit;font-variation-settings:inherit;letter-spacing:inherit;opacity:1}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::-moz-placeholder{opacity:1}::placeholder{opacity:1}@supports (not (-webkit-appearance:-apple-pay-button)) or (contain-intrinsic-size:1px){::-moz-placeholder{color:currentColor}::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::-moz-placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit,::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-millisecond-field,::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.absolute{position:absolute}.relative{position:relative}.left-2{left:calc(var(--spacing)*2)}.z-50{z-index:50}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.-mx-1{margin-inline:calc(var(--spacing)*-1)}.my-1{margin-block:calc(var(--spacing)*1)}.mt-4{margin-top:calc(var(--spacing)*4)}.mt-5{margin-top:calc(var(--spacing)*5)}.ml-auto{margin-left:auto}.flex{display:flex}.hidden{display:none}.inline{display:inline}.table{display:table}.h-2{height:calc(var(--spacing)*2)}.h-3\.5{height:calc(var(--spacing)*3.5)}.h-4{height:calc(var(--spacing)*4)}.h-6{height:calc(var(--spacing)*6)}.h-9{height:calc(var(--spacing)*9)}.h-12{height:calc(var(--spacing)*12)}.h-24{height:calc(var(--spacing)*24)}.h-\[18px\]{height:18px}.h-\[30px\]{height:30px}.h-\[50px\]{height:50px}.h-full{height:100%}.h-px{height:1px}.w-2{width:calc(var(--spacing)*2)}.w-3\.5{width:calc(var(--spacing)*3.5)}.w-4{width:calc(var(--spacing)*4)}.w-6{width:calc(var(--spacing)*6)}.w-64{width:calc(var(--spacing)*64)}.w-\[50px\]{width:50px}.w-\[90px\]{width:90px}.w-\[140px\]{width:140px}.w-\[210px\]{width:210px}.w-full{width:100%}.max-w-\[265px\]{max-width:265px}.min-w-\[8rem\]{min-width:8rem}.min-w-\[70px\]{min-width:70px}.shrink-0{flex-shrink:0}.caption-bottom{caption-side:bottom}.-rotate-90{rotate:-90deg}.rotate-90{rotate:90deg}.transform{transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-pulse{animation:var(--animate-pulse)}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.list-disc{list-style-type:disc}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1{gap:calc(var(--spacing)*1)}.gap-2{gap:calc(var(--spacing)*2)}.gap-2\.5{gap:calc(var(--spacing)*2.5)}.gap-3{gap:calc(var(--spacing)*3)}.gap-4{gap:calc(var(--spacing)*4)}.gap-5{gap:calc(var(--spacing)*5)}.gap-\[5px\]{gap:5px}.gap-\[30px\]{gap:30px}:where(.space-y-1>:not(:last-child)){--tw-space-y-reverse:0;margin-block-end:calc(var(--spacing)*1*(1 - var(--tw-space-y-reverse)));margin-block-start:calc(var(--spacing)*1*var(--tw-space-y-reverse))}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:var(--radius-2xl)}.rounded-\[7px\]{border-radius:7px}.rounded-lg{border-radius:var(--radius-lg)}.rounded-md{border-radius:var(--radius-md)}.rounded-sm{border-radius:var(--radius-sm)}.rounded-xl{border-radius:var(--radius-xl)}.border{border-style:var(--tw-border-style);border-width:1px}.border-t{border-top-style:var(--tw-border-style);border-top-width:1px}.border-b{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-none{--tw-border-style:none;border-style:none}.\!border-gray-600{border-color:var(--color-gray-600)!important}.border-gray-200{border-color:var(--color-gray-200)}.border-gray-300{border-color:var(--color-gray-300)}.border-neutral-200{border-color:var(--color-neutral-200)}.bg-\[\#0A0D14\]{background-color:#0a0d14}.bg-\[\#9747FF1A\]{background-color:#9747ff1a}.bg-\[\#E1E3EA\]{background-color:#e1e3ea}.bg-\[\#f5edff\]{background-color:#f5edff}.bg-gray-50{background-color:var(--color-gray-50)}.bg-gray-100{background-color:var(--color-gray-100)}.bg-gray-300{background-color:var(--color-gray-300)}.bg-neutral-100{background-color:var(--color-neutral-100)}.bg-white{background-color:var(--color-white)}.fill-current{fill:currentColor}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0{padding:calc(var(--spacing)*0)}.p-1{padding:calc(var(--spacing)*1)}.p-2{padding:calc(var(--spacing)*2)}.p-2\.5{padding:calc(var(--spacing)*2.5)}.p-3{padding:calc(var(--spacing)*3)}.p-4{padding:calc(var(--spacing)*4)}.p-\[7px\]{padding:7px}.px-2{padding-inline:calc(var(--spacing)*2)}.px-4{padding-inline:calc(var(--spacing)*4)}.px-\[5px\]{padding-inline:5px}.px-\[15px\]{padding-inline:15px}.py-1\.5{padding-block:calc(var(--spacing)*1.5)}.py-2\.5{padding-block:calc(var(--spacing)*2.5)}.py-6{padding-block:calc(var(--spacing)*6)}.py-24{padding-block:calc(var(--spacing)*24)}.py-\[30px\]{padding-block:30px}.pr-2{padding-right:calc(var(--spacing)*2)}.pl-4{padding-left:calc(var(--spacing)*4)}.pl-8{padding-left:calc(var(--spacing)*8)}.text-center{text-align:center}.text-left{text-align:left}.align-middle{vertical-align:middle}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-\[13px\]{font-size:13px}.text-\[15px\]{font-size:15px}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-normal{--tw-font-weight:var(--font-weight-normal);font-weight:var(--font-weight-normal)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.whitespace-nowrap{white-space:nowrap}.text-\[\#7239EA\]{color:#7239ea}.text-\[\#CDD0D5\]{color:#cdd0d5}.text-black{color:var(--color-black)}.text-gray-500{color:var(--color-gray-500)}.text-gray-600{color:var(--color-gray-600)}.text-gray-700{color:var(--color-gray-700)}.text-neutral-950{color:var(--color-neutral-950)}.text-white{color:var(--color-white)}.capitalize{text-transform:capitalize}.uppercase{text-transform:uppercase}.opacity-60{opacity:.6}.shadow-\[0_3px_4px_0_\#00000008\]{--tw-shadow:0 3px 4px 0 var(--tw-shadow-color,#00000008)}.shadow-\[0_3px_4px_0_\#00000008\],.shadow-\[0_8px_14px_0_\#0F2A510A\]{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-\[0_8px_14px_0_\#0F2A510A\]{--tw-shadow:0 8px 14px 0 var(--tw-shadow-color,#0f2a510a)}.shadow-lg{--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a)}.shadow-lg,.shadow-md{box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md{--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a)}.transition-colors{transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.transition-transform{transition-duration:var(--tw-duration,var(--default-transition-duration));transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.outline-none{--tw-outline-style:none;outline-style:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.first-letter\:uppercase:first-letter{text-transform:uppercase}@media (hover:hover){.hover\:border:hover{border-style:var(--tw-border-style);border-width:1px}.hover\:\!bg-gray-100:hover{background-color:var(--color-gray-100)!important}.hover\:bg-gray-50:hover{background-color:var(--color-gray-50)}.hover\:bg-gray-100:hover{background-color:var(--color-gray-100)}}.focus\:bg-neutral-100:focus{background-color:var(--color-neutral-100)}.focus\:text-neutral-900:focus{color:var(--color-neutral-900)}.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y:calc(var(--spacing)*2*-1)}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x:calc(var(--spacing)*2)}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x:calc(var(--spacing)*2*-1)}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y:calc(var(--spacing)*2)}.data-\[state\=checked\]\:border-none[data-state=checked]{--tw-border-style:none;border-style:none}.data-\[state\=closed\]\:animate-out[data-state=closed]{animation:exit var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity:0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale:.95}.data-\[state\=open\]\:animate-in[data-state=open]{animation:enter var(--tw-animation-duration,var(--tw-duration,.15s))var(--tw-ease,ease)var(--tw-animation-delay,0s)var(--tw-animation-iteration-count,1)var(--tw-animation-direction,normal)var(--tw-animation-fill-mode,none)}.data-\[state\=open\]\:bg-neutral-100[data-state=open]{background-color:var(--color-neutral-100)}.data-\[state\=open\]\:fade-in-0[data-state=open]{--tw-enter-opacity:0}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale:.95}.data-\[state\=selected\]\:bg-gray-100[data-state=selected]{background-color:var(--color-gray-100)}@media (prefers-color-scheme:dark){.dark\:border-neutral-800{border-color:var(--color-neutral-800)}.dark\:bg-neutral-800{background-color:var(--color-neutral-800)}.dark\:bg-neutral-950{background-color:var(--color-neutral-950)}.dark\:text-neutral-50{color:var(--color-neutral-50)}.dark\:focus\:bg-neutral-800:focus{background-color:var(--color-neutral-800)}.dark\:focus\:text-neutral-50:focus{color:var(--color-neutral-50)}.dark\:data-\[state\=open\]\:bg-neutral-800[data-state=open]{background-color:var(--color-neutral-800)}}.\[\&_tr\]\:border-b tr{border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-style:var(--tw-border-style);border-width:0}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:calc(var(--spacing)*0)}.\[\&\>tr\]\:last\:border-b-0>tr:last-child{border-bottom-style:var(--tw-border-style);border-bottom-width:0}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-duration{syntax:"*";inherits:false}@keyframes pulse{50%{opacity:.5}}@keyframes enter{0%{opacity:var(--tw-enter-opacity,1);transform:translate3d(var(--tw-enter-translate-x,0),var(--tw-enter-translate-y,0),0)scale3d(var(--tw-enter-scale,1),var(--tw-enter-scale,1),var(--tw-enter-scale,1))rotate(var(--tw-enter-rotate,0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity,1);transform:translate3d(var(--tw-exit-translate-x,0),var(--tw-exit-translate-y,0),0)scale3d(var(--tw-exit-scale,1),var(--tw-exit-scale,1),var(--tw-exit-scale,1))rotate(var(--tw-exit-rotate,0))}}
@@ -136,5 +136,5 @@ function(e,t){return dh(e,t)}(e,{shouldForwardProp:m,label:Rh(),...c}),h=e=>{if(
136
136
  animation-iteration-count: infinite;
137
137
  animation-delay: 200ms;
138
138
  }
139
- `,vb=M.forwardRef(function(e,t){const n=Yy({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:a,...i}=n,[l,s]=M.useState([]),u=M.useRef(0),c=M.useRef(null);M.useEffect(()=>{c.current&&(c.current(),c.current=null)},[l]);const d=M.useRef(!1),f=fb(),p=M.useRef(null),m=M.useRef(null),h=M.useCallback(e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:a,cb:i}=e;s(e=>[...e,g.jsx(bb,{classes:{ripple:Go(o.ripple,pb.ripple),rippleVisible:Go(o.rippleVisible,pb.rippleVisible),ripplePulsate:Go(o.ripplePulsate,pb.ripplePulsate),child:Go(o.child,pb.child),childLeaving:Go(o.childLeaving,pb.childLeaving),childPulsate:Go(o.childPulsate,pb.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:a},u.current)]),u.current+=1,c.current=i},[o]),y=M.useCallback((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:a=r||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===e?.type&&d.current)return void(d.current=!1);"touchstart"===e?.type&&(d.current=!0);const l=i?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(a||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(a)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}e?.touches?null===p.current&&(p.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},f.start(80,()=>{p.current&&(p.current(),p.current=null)})):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},[r,h,f]),b=M.useCallback(()=>{y({},{pulsate:!0})},[y]),v=M.useCallback((e,t)=>{if(f.clear(),"touchend"===e?.type&&p.current)return p.current(),p.current=null,void f.start(0,()=>{v(e,t)});p.current=null,s(e=>e.length>0?e.slice(1):e),c.current=t},[f]);return M.useImperativeHandle(t,()=>({pulsate:b,start:y,stop:v}),[b,y,v]),g.jsx(yb,{className:Go(pb.root,o.root,a),ref:m,...i,children:g.jsx(ub,{component:null,exit:!0,children:l})})});function wb(e){return Hf("MuiButtonBase",e)}const xb=Uf("MuiButtonBase",["root","disabled","focusVisible"]),Sb=Qy("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${xb.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),kb=M.forwardRef(function(e,t){const n=Yy({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:a,className:i,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,focusVisibleClassName:f,LinkComponent:p="a",onBlur:m,onClick:h,onContextMenu:y,onDragLeave:b,onFocus:v,onFocusVisible:w,onKeyDown:x,onKeyUp:S,onMouseDown:k,onMouseLeave:C,onMouseUp:E,onTouchEnd:R,onTouchMove:P,onTouchStart:_,tabIndex:O=0,TouchRippleProps:N,touchRippleRef:T,type:A,...F}=n,z=M.useRef(null),j=nb.use(),L=Jy(j.ref,T),[D,I]=M.useState(!1);s&&D&&I(!1),M.useImperativeHandle(r,()=>({focusVisible:()=>{I(!0),z.current.focus()}}),[]);const $=j.shouldMount&&!u&&!s;M.useEffect(()=>{D&&d&&!u&&j.pulsate()},[u,d,D,j]);const B=Cb(j,"start",k,c),V=Cb(j,"stop",y,c),H=Cb(j,"stop",b,c),U=Cb(j,"stop",E,c),W=Cb(j,"stop",e=>{D&&e.preventDefault(),C&&C(e)},c),G=Cb(j,"start",_,c),q=Cb(j,"stop",R,c),K=Cb(j,"stop",P,c),X=Cb(j,"stop",e=>{cp(e.target)||I(!1),m&&m(e)},!1),Q=Zy(e=>{z.current||(z.current=e.currentTarget),cp(e.target)&&(I(!0),w&&w(e)),v&&v(e)}),Y=()=>{const e=z.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},J=Zy(e=>{d&&!e.repeat&&D&&" "===e.key&&j.stop(e,()=>{j.start(e)}),e.target===e.currentTarget&&Y()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&Y()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))}),Z=Zy(e=>{d&&" "===e.key&&D&&!e.defaultPrevented&&j.stop(e,()=>{j.pulsate(e)}),S&&S(e),h&&e.target===e.currentTarget&&Y()&&" "===e.key&&!e.defaultPrevented&&h(e)});let ee=l;"button"===ee&&(F.href||F.to)&&(ee=p);const te={};"button"===ee?(te.type=void 0===A?"button":A,te.disabled=s):(F.href||F.to||(te.role="button"),s&&(te["aria-disabled"]=s));const ne=Jy(t,z),re={...n,centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:O,focusVisible:D},oe=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=If({root:["root",t&&"disabled",n&&"focusVisible"]},wb,o);return n&&r&&(a.root+=` ${r}`),a})(re);return g.jsxs(Sb,{as:ee,className:Go(oe.root,i),ownerState:re,onBlur:X,onClick:h,onContextMenu:V,onFocus:Q,onKeyDown:J,onKeyUp:Z,onMouseDown:B,onMouseLeave:W,onMouseUp:U,onDragLeave:H,onTouchEnd:q,onTouchMove:K,onTouchStart:G,ref:ne,tabIndex:s?-1:O,type:A,...te,...F,children:[a,$?g.jsx(vb,{ref:L,center:o,...N}):null]})});function Cb(e,t,n,r=!1){return Zy(o=>(n&&n(o),r||e[t](o),!0))}function Eb(e=[]){return([,t])=>t&&function(e,t=[]){if(!function(e){return"string"==typeof e.main}(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||"string"!=typeof e[n])return!1;return!0}(t,e)}const Rb=function(e){let t,n;return function(r){let o=t;return void 0!==o&&r.theme===n||(Ah.theme=r.theme,o=vh(e(Ah)),t=o,n=r.theme),o}};function Pb(e){return Hf("MuiSvgIcon",e)}Uf("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const _b=Qy("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${dp(n.color)}`],t[`fontSize${dp(n.fontSize)}`]]}})(Rb(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Ob=M.forwardRef(function(e,t){const n=Yy({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:a="inherit",component:i="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24",...f}=n,p=M.isValidElement(r)&&"svg"===r.type,m={...n,color:a,component:i,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:p},h={};u||(h.viewBox=d);const y=(e=>{const{color:t,fontSize:n,classes:r}=e;return If({root:["root","inherit"!==t&&`color${dp(t)}`,`fontSize${dp(n)}`]},Pb,r)})(m);return g.jsxs(_b,{as:i,className:Go(y.root,o),focusable:"false",color:s,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t,...h,...f,...p&&r.props,ownerState:m,children:[p?r.props.children:r,c?g.jsx("title",{children:c}):null]})});function Nb(e,t){function n(t,n){return g.jsx(Ob,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=Ob.muiName,M.memo(M.forwardRef(n))}Ob.muiName="SvgIcon";var Tb=Nb(g.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"})),Ab=Nb(g.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"})),Mb=Nb(g.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),Fb=Nb(g.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}));function zb(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t}function jb(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const e=Go(n?.className,a,o?.className,r?.className),t={...n?.style,...o?.style,...r?.style},i={...n,...o,...r};return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}const i=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}({...o,...r}),l=zb(r),s=zb(o),u=t(i),c=Go(u?.className,n?.className,a,o?.className,r?.className),d={...u?.style,...n?.style,...o?.style,...r?.style},f={...u,...n,...s,...l};return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}function Lb(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:a,internalForwardedProps:i,shouldForwardComponentProp:l=!1,...s}=t,{component:u,slots:c={[e]:void 0},slotProps:d={[e]:void 0},...f}=a,p=c[e]||r,m=function(e,t,n){return"function"==typeof e?e(t,n):e}(d[e],o),{props:{component:g,...h},internalRef:y}=jb({className:n,...s,externalForwardedProps:"root"===e?f:void 0,externalSlotProps:m}),b=Jy(y,m?.ref,t.ref),v="root"===e?g||u:g,w=function(e,t,n){return void 0===e||"string"==typeof e?t:{...t,ownerState:{...t.ownerState,...n}}}(p,{..."root"===e&&!u&&!c[e]&&i,..."root"!==e&&!c[e]&&i,...h,...v&&!l&&{as:v},...v&&l&&{component:v},ref:b},o);return[p,w]}const Db=(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${dp(n.size)}`],"text"===n.variant&&t[`text${dp(n.color)}`],"outlined"===n.variant&&t[`outlined${dp(n.color)}`],"rounded"===n.shape&&t.rounded,"page"===n.type&&t.page,("start-ellipsis"===n.type||"end-ellipsis"===n.type)&&t.ellipsis,("previous"===n.type||"next"===n.type)&&t.previousNext,("first"===n.type||"last"===n.type)&&t.firstLast]},Ib=Qy("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:Db})(Rb(({theme:e})=>({...e.typography.body2,borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${up.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:{size:"small"},style:{minWidth:26,borderRadius:13,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,borderRadius:20,padding:"0 10px",fontSize:e.typography.pxToRem(15)}}]}))),$b=Qy(kb,{name:"MuiPaginationItem",slot:"Root",overridesResolver:Db})(Rb(({theme:e})=>({...e.typography.body2,borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${up.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${up.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${up.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ep(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${up.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ep(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${up.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}},variants:[{props:{size:"small"},style:{minWidth:26,height:26,borderRadius:13,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,height:40,borderRadius:20,padding:"0 10px",fontSize:e.typography.pxToRem(15)}},{props:{shape:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"outlined"},style:{border:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:"1px solid "+("light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),[`&.${up.selected}`]:{[`&.${up.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}}}},{props:{variant:"text"},style:{[`&.${up.selected}`]:{[`&.${up.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}},...Object.entries(e.palette).filter(Eb(["dark","contrastText"])).map(([t])=>({props:{variant:"text",color:t},style:{[`&.${up.selected}`]:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}},[`&.${up.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark},[`&.${up.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}})),...Object.entries(e.palette).filter(Eb(["light"])).map(([t])=>({props:{variant:"outlined",color:t},style:{[`&.${up.selected}`]:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:ep(e.palette[t].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:ep(e.palette[t].main,e.palette.action.activatedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ep(e.palette[t].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${up.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ep(e.palette[t].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}}}}))]}))),Bb=Qy("div",{name:"MuiPaginationItem",slot:"Icon"})(Rb(({theme:e})=>({fontSize:e.typography.pxToRem(20),margin:"0 -8px",variants:[{props:{size:"small"},style:{fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{fontSize:e.typography.pxToRem(22)}}]}))),Vb=M.forwardRef(function(e,t){const n=Yy({props:e,name:"MuiPaginationItem"}),{className:r,color:o="standard",component:a,components:i={},disabled:l=!1,page:s,selected:u=!1,shape:c="circular",size:d="medium",slots:f={},slotProps:p={},type:m="page",variant:h="text",...y}=n,b={...n,color:o,disabled:l,selected:u,shape:c,size:d,type:m,variant:h},v=M.useContext(lp)??!1,w=(e=>{const{classes:t,color:n,disabled:r,selected:o,size:a,shape:i,type:l,variant:s}=e;return If({root:["root",`size${dp(a)}`,s,i,"standard"!==n&&`color${dp(n)}`,"standard"!==n&&`${s}${dp(n)}`,r&&"disabled",o&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[l]],icon:["icon"]},sp,t)})(b),x={slots:{previous:f.previous??i.previous,next:f.next??i.next,first:f.first??i.first,last:f.last??i.last},slotProps:p},[S,k]=Lb("previous",{elementType:Mb,externalForwardedProps:x,ownerState:b}),[C,E]=Lb("next",{elementType:Fb,externalForwardedProps:x,ownerState:b}),[R,P]=Lb("first",{elementType:Tb,externalForwardedProps:x,ownerState:b}),[_,O]=Lb("last",{elementType:Ab,externalForwardedProps:x,ownerState:b}),N=v?{previous:"next",next:"previous",first:"last",last:"first"}[m]:m,T={previous:S,next:C,first:R,last:_}[N],A={previous:k,next:E,first:P,last:O}[N];return"start-ellipsis"===m||"end-ellipsis"===m?g.jsx(Ib,{ref:t,ownerState:b,className:Go(w.root,r),children:"…"}):g.jsxs($b,{ref:t,ownerState:b,component:a,disabled:l,className:Go(w.root,r),...y,children:["page"===m&&s,T?g.jsx(Bb,{...A,className:w.icon,as:T}):null]})}),Hb=Qy("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant]]}})({}),Ub=Qy("ul",{name:"MuiPagination",slot:"Ul"})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function Wb(e,t,n){return"page"===e?`${n?"":"Go to "}page ${t}`:`Go to ${e} page`}const Gb=M.forwardRef(function(e,t){const n=Yy({props:e,name:"MuiPagination"}),{boundaryCount:r=1,className:o,color:a="standard",count:i=1,defaultPage:l=1,disabled:s=!1,getItemAriaLabel:u=Wb,hideNextButton:c=!1,hidePrevButton:d=!1,onChange:f,page:p,renderItem:m=e=>g.jsx(Vb,{...e}),shape:h="circular",showFirstButton:y=!1,showLastButton:b=!1,siblingCount:v=1,size:w="medium",variant:x="text",...S}=n,{items:k}=Gf({...n,componentName:"Pagination"}),C={...n,boundaryCount:r,color:a,count:i,defaultPage:l,disabled:s,getItemAriaLabel:u,hideNextButton:c,hidePrevButton:d,renderItem:m,shape:h,showFirstButton:y,showLastButton:b,siblingCount:v,size:w,variant:x},E=(e=>{const{classes:t,variant:n}=e;return If({root:["root",n],ul:["ul"]},Wf,t)})(C);return g.jsx(Hb,{"aria-label":"pagination navigation",className:Go(E.root,o),ownerState:C,ref:t,...S,children:g.jsx(Ub,{className:E.ul,ownerState:C,children:k.map((e,t)=>g.jsx("li",{children:m({...e,color:a,"aria-label":u(e.type,e.page,e.selected),shape:h,size:w,variant:x})},t))})})}),qb={arrow:g.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:g.jsx("path",{d:"M8.65833 15.7667C8.54866 15.7673 8.43994 15.7463 8.33841 15.7048C8.23688 15.6634 8.14453 15.6023 8.06667 15.525C7.91146 15.3689 7.82434 15.1577 7.82434 14.9375C7.82434 14.7174 7.91146 14.5062 8.06667 14.35L12.4083 10L8.06667 5.65004C7.93014 5.49062 7.85881 5.28556 7.86691 5.07583C7.87501 4.8661 7.96195 4.66715 8.11036 4.51874C8.25878 4.37032 8.45773 4.28338 8.66746 4.27528C8.87719 4.26718 9.08225 4.33852 9.24167 4.47504L14.1667 9.40837C14.2439 9.48624 14.305 9.57859 14.3465 9.68012C14.3879 9.78165 14.409 9.89037 14.4083 10C14.4053 10.2207 14.3189 10.432 14.1667 10.5917L9.225 15.525C9.07391 15.675 8.87116 15.7615 8.65833 15.7667Z",fill:"#A1A5B7"})}),info_input:g.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[g.jsx("path",{opacity:"0.3",d:"M10 18.3332C14.6024 18.3332 18.3333 14.6022 18.3333 9.99984C18.3333 5.39746 14.6024 1.6665 10 1.6665C5.39763 1.6665 1.66667 5.39746 1.66667 9.99984C1.66667 14.6022 5.39763 18.3332 10 18.3332Z",fill:"#1868DB"}),g.jsx("path",{d:"M10 8.83301C10.221 8.83301 10.433 8.9208 10.5893 9.07708C10.7455 9.23337 10.8333 9.44533 10.8333 9.66634V13.5497C10.8333 13.7707 10.7455 13.9826 10.5893 14.1389C10.433 14.2952 10.221 14.383 10 14.383C9.77899 14.383 9.56703 14.2952 9.41075 14.1389C9.25447 13.9826 9.16667 13.7707 9.16667 13.5497V9.66634C9.16667 9.44533 9.25447 9.23337 9.41075 9.07708C9.56703 8.9208 9.77899 8.83301 10 8.83301Z",fill:"#1868DB"}),g.jsx("path",{d:"M10 7.70003C10.5753 7.70003 11.0417 7.23366 11.0417 6.65837C11.0417 6.08307 10.5753 5.6167 10 5.6167C9.42471 5.6167 8.95834 6.08307 8.95834 6.65837C8.95834 7.23366 9.42471 7.70003 10 7.70003Z",fill:"#1868DB"})]})};function Kb({showBulkActions:e=!0,meta:t}){const n=Z(),{currentPage:r,perview:o}=ne(e=>e.app);return M.useEffect(()=>{t&&r>t?.last_page&&n(bt(1))},[t?.per_page]),g.jsxs("div",{className:Za("flex items-center justify-between gap-4 flex-wrap",t&&t?.total>0?null:"hidden"),children:[e?g.jsxs("div",{className:"flex items-center gap-2.5 shrink-0",children:[g.jsxs(zf,{children:[g.jsx(jf,{asChild:!0,children:g.jsxs("button",{className:"rounded-md h-9 flex items-center justify-between p-3 font-semibold text-xs text-gray-600 outline-none border border-gray-300 gap-2.5 ",children:[o,g.jsx("span",{className:"rotate-90",children:qb.arrow})]})}),g.jsx(Lf,{align:"center",className:"flex flex-col gap-2.5 rounded-xl border-gray-200 py-2.5",children:[7,10,20].map((e,t)=>g.jsx(Df,{className:`capitalize focus:bg-primary_light rounded-md focus:text-primary font-semibold text-sm cursor-pointer px-[15px] flex items-center gap-[5px] ${o===e?"bg-primary_light text-primary":"text-gray-700"} `,onClick:()=>n(vt(e)),children:e},t))})]}),g.jsxs("p",{className:"font-normal text-gray-600 text-[15px]",children:["Showing ",t?.from," - ",t?.to," of ",t?.total]})]}):null,g.jsx(Gb,{count:t?.last_page||1,page:t?.current_page??1,shape:"rounded",color:"primary",onChange:(e,t)=>{n(bt(t))}})]})}function Xb({props:e={}}){return g.jsxs("div",{className:"flex flex-col gap-3 items-center py-24",children:[g.jsx("p",{className:"font-bold text-sm",children:e.header??"No item attached"}),g.jsx("p",{className:"font-bold text-[13px] text-gray-700",children:e.subText??"Add a new item to start managing your orders."})]})}function Qb({columns:e,data:t,tbhRowClass:n,tHeadClass:r,tbCellClass:o,meta:a,showBulkActions:i,showPaginate:l=!0,emptyData:s,emptyProps:u,loading:c,accordionData:d,hasAccordion:f,bodyRowClass:p,tableContainerClass:m,firstCellClass:h,lastCellClass:y,showAccordionDropdown:b=!0,onToggleAccordion:v}){const[w,x]=M.useState(null),S=function(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=M.useState(()=>({current:Ho(t)})),[r,o]=M.useState(()=>n.current.initialState);return n.current.setOptions(t=>({...t,...e,state:{...r,...e.state},onStateChange:t=>{o(t),null==e.onStateChange||e.onStateChange(t)}})),n.current}({data:t,columns:e,getCoreRowModel:e=>Yr(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(t,o,a){void 0===o&&(o=0);const i=[];for(let s=0;s<t.length;s++){const u=ro(e,e._getRowId(t[s],s,a),t[s],s,o,0,null==a?void 0:a.id);var l;n.flatRows.push(u),n.rowsById[u.id]=u,i.push(u),e.options.getSubRows&&(u.originalSubRows=e.options.getSubRows(t[s],s),null!=(l=u.originalSubRows)&&l.length&&(u.subRows=r(u.originalSubRows,o+1,u)))}return i};return n.rows=r(t),n},Jr(e.options,"debugTable",0,()=>e._autoResetPageIndex()))});return g.jsxs("div",{className:"flex flex-col gap-[30px]",children:[g.jsx("div",{className:`shadow-[0_3px_4px_0_#00000008] ${m}`,children:g.jsxs(ei,{children:[g.jsx(ti,{children:S.getHeaderGroups().map(e=>g.jsx(ri,{className:Za("border-gray-300 bg-gray-100 hover:!bg-gray-100 rounded-xl",n),children:e.headers.map(e=>g.jsx(oi,{className:Za("text-dark text-sm capitalize font-bold",r),children:e.isPlaceholder?null:Uo(e.column.columnDef.header,e.getContext())},e.id))},e.id))}),g.jsx(ni,{children:c?Array(5).fill(null).map((e,t)=>g.jsx(F.Fragment,{children:S.getHeaderGroups().map(e=>g.jsx(ri,{className:Za("border-gray-300 hover:!bg-gray-100 rounded-xl"),children:e.headers.map(e=>g.jsx(ai,{children:g.jsx(ii,{className:"w-full h-6 rounded-lg"})},e.id))},e.id))},t)):S?.getRowModel().rows?.length?S?.getRowModel().rows.map((e,t)=>g.jsx(F.Fragment,{children:g.jsx(ri,{onClick:()=>((e,t)=>{x(t=>t===e?null:e),v?.(e,t)})(t,e.original),"data-state":e.getIsSelected()&&"selected",className:`border-gray-300 hover:!bg-gray-100 data-[state=selected]:bg-gray-100 ${p} `,children:e.getVisibleCells().map((n,r)=>g.jsx(ai,{className:Za("text-gray-500 text-sm font-bold",o,0===r&&h,r===e.getVisibleCells().length-1&&y),children:g.jsxs("div",{className:"flex",children:[f&&b&&0===r&&g.jsx("div",{className:"cursor-pointer inline",children:g.jsx("div",{className:"transform transition-transform duration-200 "+(w===t?"-rotate-90":"rotate-90"),children:qb.arrow})})," ",g.jsx("div",{children:Uo(n.column.columnDef.cell,n.getContext())})]})},n.id))},e.id)},e.id)):g.jsx(ri,{children:g.jsx(ai,{colSpan:e.length,className:"h-24 text-center hover:bg-gray-100",children:s?g.jsx(Xb,{props:u}):"No results found."})})})]})}),l&&g.jsx(Kb,{showBulkActions:i,meta:a})]})}function Yb(e,t="NGN",n="en-NG"){isNaN(e)&&(e=0);return new Intl.NumberFormat(n,{style:"currency",currency:t,minimumFractionDigits:2,maximumFractionDigits:6}).format(e)}function Jb(e=0){if(null==e)return"0";if(isNaN(e))return"0";{const[t,n]=e.toString().split("."),r=t.replace(/\B(?=(\d{3})+(?!\d))/g,",");return n?`${r}.${n}`:r}}var Zb,ev="HoverCard",[tv,nv]=di(ev,[Ws]),rv=Ws(),[ov,av]=tv(ev),iv=e=>{const{__scopeHoverCard:t,children:n,open:r,defaultOpen:o,onOpenChange:a,openDelay:i=700,closeDelay:l=300}=e,s=rv(t),u=M.useRef(0),c=M.useRef(0),d=M.useRef(!1),f=M.useRef(!1),[p,m]=gi({prop:r,defaultProp:o??!1,onChange:a,caller:ev}),h=M.useCallback(()=>{clearTimeout(c.current),u.current=window.setTimeout(()=>m(!0),i)},[i,m]),y=M.useCallback(()=>{clearTimeout(u.current),d.current||f.current||(c.current=window.setTimeout(()=>m(!1),l))},[l,m]),b=M.useCallback(()=>m(!1),[m]);return M.useEffect(()=>()=>{clearTimeout(u.current),clearTimeout(c.current)},[]),g.jsx(ov,{scope:t,open:p,onOpenChange:m,onOpen:h,onClose:y,onDismiss:b,hasSelectionRef:d,isPointerDownOnContentRef:f,children:g.jsx(lu,{...s,children:n})})};iv.displayName=ev;var lv="HoverCardTrigger",sv=M.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=av(lv,n),a=rv(n);return g.jsx(su,{asChild:!0,...a,children:g.jsx(Si.a,{"data-state":o.open?"open":"closed",...r,ref:t,onPointerEnter:li(e.onPointerEnter,mv(o.onOpen)),onPointerLeave:li(e.onPointerLeave,mv(o.onClose)),onFocus:li(e.onFocus,o.onOpen),onBlur:li(e.onBlur,o.onClose),onTouchStart:li(e.onTouchStart,e=>e.preventDefault())})})});sv.displayName=lv;var[uv,cv]=tv("HoverCardPortal",{forceMount:void 0}),dv="HoverCardContent",fv=M.forwardRef((e,t)=>{const n=cv(dv,e.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=e,a=av(dv,e.__scopeHoverCard);return g.jsx(fu,{present:r||a.open,children:g.jsx(pv,{"data-state":a.open?"open":"closed",...o,onPointerEnter:li(e.onPointerEnter,mv(a.onOpen)),onPointerLeave:li(e.onPointerLeave,mv(a.onClose)),ref:t})})});fv.displayName=dv;var pv=M.forwardRef((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,...l}=e,s=av(dv,n),u=rv(n),c=M.useRef(null),d=ci(t,c),[f,p]=M.useState(!1);return M.useEffect(()=>{if(f){const e=document.body;return Zb=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=Zb,e.style.webkitUserSelect=Zb}}},[f]),M.useEffect(()=>{if(c.current){const e=()=>{p(!1),s.isPointerDownOnContentRef.current=!1,setTimeout(()=>{""!==document.getSelection()?.toString()&&(s.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),s.hasSelectionRef.current=!1,s.isPointerDownOnContentRef.current=!1}}},[s.isPointerDownOnContentRef,s.hasSelectionRef]),M.useEffect(()=>{if(c.current){const e=function(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}(c.current);e.forEach(e=>e.setAttribute("tabindex","-1"))}}),g.jsx(Mi,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:i,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:li(a,e=>{e.preventDefault()}),onDismiss:s.onDismiss,children:g.jsx(uu,{...u,...l,onPointerDown:li(l.onPointerDown,e=>{e.currentTarget.contains(e.target)&&p(!0),s.hasSelectionRef.current=!1,s.isPointerDownOnContentRef.current=!0}),ref:d,style:{...l.style,userSelect:f?"text":void 0,WebkitUserSelect:f?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})});function mv(e){return t=>"touch"===t.pointerType?void 0:e()}M.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=rv(n);return g.jsx(cu,{...o,...r,ref:t})}).displayName="HoverCardArrow";var gv=fv;const hv=iv,yv=sv,bv=M.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>g.jsx(gv,{ref:o,align:t,sideOffset:n,className:Za("z-50 w-64 rounded-md border border-neutral-200 bg-white p-4 text-neutral-950 shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",e),...r}));function vv({children:e,trigger:t,fieldName:n,align:r="start"}){return g.jsxs(hv,{children:[g.jsx(yv,{className:"cursor-pointer",children:t??qb.info_input}),g.jsxs(bv,{align:r,className:"bg-[#0A0D14] text-[#CDD0D5] text-xs font-normal border-none",children:[n?g.jsx("p",{className:"text-sm font-medium text-white first-letter:uppercase",children:n}):null,e]})]})}function wv({status:e}){return g.jsx("span",{className:Za("font-semibold text-xs rounded p-[7px] capitalize text-center min-w-[70px] bg-gray-300 text-gray-700",["active","approved","published","received","returned","completed","reconciled","credit"].includes(e)?"text-success bg-success-light":null,["inactive","pending","expired","expiring","rejected","voided","cancelled","debit","out of stock"].includes(e)?"text-danger bg-danger_light":null,["pending","paylater","suspended","awaiting_approval"].includes(e)?"text-warning bg-warning-light":null,["draft","in_transit"].includes(e)?"text-black bg-[#E1E3EA]":null,["ongoing"].includes(e)?"text-[#7239EA] bg-[#f5edff]":null),children:e?.replace("_"," ")})}bv.displayName=gv.displayName;const xv=[{accessorKey:"item_description",header:"item description",cell:({row:e})=>{const t=e.original;return g.jsxs("div",{className:"flex items-center gap-5",children:[g.jsx("div",{className:"w-[50px] h-[50px] rounded-2xl relative bg-gray-100",children:g.jsx("img",{src:t.item_image,alt:"item image",className:"rounded-2xl object-cover w-full h-full",draggable:!1})}),g.jsxs("div",{className:"space-y-1 max-w-[265px]",children:[g.jsx(Sv,{title:t.item_description,item_uuid:t.uuid,item_type_id:t.item_type_id,data:t.fullData}),g.jsxs("p",{className:"text-dark text-xs font-normal flex items-center gap-1",children:[g.jsx("span",{className:"uppercase whitespace-nowrap",children:t.sku}),t.barcode?.length>0?g.jsxs(g.Fragment,{children:[g.jsx("span",{children:"|"}),t.barcode?.[0]?.barcode,t.barcode.length>1?g.jsxs("span",{className:"rounded bg-[#9747FF1A] px-[5px] flex items-center text-[#7239EA] font-semibold text-[11px] h-[18px]",children:["+",t.barcode?.length-1]}):null]}):null,t.expired?g.jsxs(g.Fragment,{children:[g.jsx("span",{children:"|"}),"Expired",g.jsx("span",{className:"rounded bg-danger_light px-[5px] flex items-center text-danger font-semibold text-[11px] h-[18px]",children:t.expired})]}):null,t.expiring?g.jsxs(g.Fragment,{children:[g.jsx("span",{children:"|"}),"Expiring",g.jsx("span",{className:"rounded bg-warning-light px-[5px] flex items-center text-warning font-semibold text-[11px] h-[18px]",children:t.expiring})]}):null]})]})]})}},{accessorKey:"quantity",header:()=>g.jsx("p",{children:"quantity"}),cell:({row:e})=>{const t=e.original;return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:Za("flex items-center",t.quantity<=0?"text-danger":Number(t.reorder_level)==t.quantity?"text-orange":null),children:g.jsx("p",{children:Jb(t.quantity)+t.unit})}),t.all_quantity===t.quantity?null:g.jsx("p",{className:"text-gray-700",children:Intl.NumberFormat().format(t.all_quantity??0)+t.unit})]})}},{accessorKey:"type",cell:({row:e})=>{const t=e.original;return g.jsx("p",{className:"capitalize",children:t.type})}},{accessorKey:"selling_price",header:"Selling Price (₦)",cell:({row:e})=>{const t=e.original;return g.jsx("p",{children:Yb(t.selling_price??0)})}},{accessorKey:"categories",header:"categories/Tags",cell:({row:e})=>{const t=e.original;return g.jsxs(g.Fragment,{children:[" ",g.jsxs("div",{className:"flex items-center gap-2 capitalize",children:[t.categories&&t.categories?.length>0?t.categories?.[0]?.name:"...",t.categories.length>1?g.jsx(vv,{align:"center",fieldName:"Categories",trigger:g.jsxs("button",{className:"rounded bg-[#9747FF1A] px-[5px] flex items-center text-[#7239EA] font-semibold text-[11px] h-[18px]",children:["+",t.categories.length-1]}),children:g.jsx("ul",{className:"list-disc pl-4",children:t.categories.map((e,t)=>g.jsx("li",{children:e.name},t))})}):null]}),g.jsxs("div",{className:"text-gray-700 flex items-center gap-2 capitalize",children:[t.tags?.[0],t.tags?.length>1?g.jsx(vv,{align:"center",fieldName:"Tags",trigger:g.jsxs("button",{className:"rounded bg-[#9747FF1A] px-[5px] flex items-center text-[#7239EA] font-semibold text-[11px] h-[18px]",children:["+",t.tags.length-1]}),children:g.jsx("ul",{className:"list-disc pl-4",children:t.tags.map((e,t)=>g.jsx("li",{children:e},t))})}):null]})]})}},{accessorKey:"status",cell:({row:e})=>{const t=e.getValue("status");return g.jsx(wv,{status:t})}}],Sv=({title:e,item_uuid:t,item_type_id:n,data:r})=>{const[o,a]=M.useState(!1),[i,l]=M.useState(!1),[s,u]=M.useState(!1);return g.jsx(g.Fragment,{children:g.jsx("button",{className:Za("text-primary font-bold text-sm first-letter:uppercase truncate max-w-[265px]",r.expired?"text-danger":""),title:e,children:e})})};function kv({children:e,className:t}){return g.jsx("div",{className:Za("border rounded-xl py-[30px] border-gray-200 ",t),children:e})}const Cv=()=>{const{apiKey:e}=(()=>{const e=M.useContext(xt);if(!e)throw new Error("useSDK must be used within SDKProvider");return e})(),[t,n]=F.useState([]),[r,o]=F.useState(null),[a,i]=F.useState(!1),{currentPage:l,perview:s}=ne(e=>e.app);M.useEffect(()=>{const t=(e=>{e||console.warn("⚠️ No API key provided to createApiClient");const t=Tr.create({baseURL:"https://biz.api.simpoocodes.com/api/gateway/v1",headers:{"Content-Type":"application/json","SIMPOO-API-KEY":e}});return t.interceptors.request.use(t=>(e&&t.headers&&(t.headers["SIMPOO-API-KEY"]=e),t),e=>Promise.reject(e)),t.interceptors.response.use(e=>e,e=>(e.response?console.error("API Error:",e.response.status,e.response.data):console.error("Network or Axios Error:",e.message),Promise.reject(e))),t})(e||"");e&&(async()=>{i(!0);try{const e=await t.get(`/outbound/items?page=${l}&paginate=${s}&status=all`);if(200===e.status&&"object"==typeof e.data&&null!==e.data&&"status"in e.data&&"success"===e.data.status&&"data"in e.data){const t=e.data.data?.[0];n(t?.data||[]),o(t?.meta||null)}}catch(e){console.error(e)}finally{i(!1),console.log("request completed.")}})()},[e,s,l]);const u=t.map(e=>({item_description:e?.name,all_quantity:+e?.all_quantity,quantity:+e?.quantity,type:e?.item_type?.name,selling_price:+e?.selling_price,categories:e?.category||[],tags:e?.item_tags?.map(e=>e.name)||[],status:e?.status?"published":"draft",sku:e?.sku,item_image:e.images?.length>0?e.images[0].image:"assets/placeholder-imageaf93498c918127fb.svg",barcode:e?.barcode,expired:e?.expired,expiring:e?.expiring,unit:e?.item_unit,uuid:e?.uuid,item_type_id:e?.item_type?.uuid,reorder_level:e?.reorder_level,fullData:e}));return g.jsx(kv,{children:g.jsx(Qb,{loading:a,columns:xv,data:u||[],emptyData:0===u.length,emptyProps:{header:"No item yet",subText:"Add new item to start managing your inventory."},tHeadClass:"whitespace-nowrap",tbCellClass:"text-dark font-semibold",meta:r})})},Ev="https://unpkg.com/@simpoobusiness/sdk/dist/simpoo-sdk.css";let Rv={};function Pv(e){Rv=e}const _v={inventory:Cv};function Ov(e,t){!function(){if(!document.querySelector(`link[href="${Ev}"]`)){const e=document.createElement("link");e.rel="stylesheet",e.href=Ev,document.head.appendChild(e)}}();if(!_v[e])return void console.error(`SimpooSDK: Widget "${e}" not found.`);const n=document.querySelector(t);if(!n)throw new Error(`Container "${t}" not found!`);A.createRoot(n).render(g.jsx(St,{apiKey:Rv.apiKey||"",children:g.jsx(Cv,{})}))}"undefined"!=typeof window&&(window.SimpooSDK={init:Pv,renderWidget:Ov}),e.init=Pv,e.renderWidget=Ov});
139
+ `,vb=M.forwardRef(function(e,t){const n=Yy({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:a,...i}=n,[l,s]=M.useState([]),u=M.useRef(0),c=M.useRef(null);M.useEffect(()=>{c.current&&(c.current(),c.current=null)},[l]);const d=M.useRef(!1),f=fb(),p=M.useRef(null),m=M.useRef(null),h=M.useCallback(e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:a,cb:i}=e;s(e=>[...e,g.jsx(bb,{classes:{ripple:Go(o.ripple,pb.ripple),rippleVisible:Go(o.rippleVisible,pb.rippleVisible),ripplePulsate:Go(o.ripplePulsate,pb.ripplePulsate),child:Go(o.child,pb.child),childLeaving:Go(o.childLeaving,pb.childLeaving),childPulsate:Go(o.childPulsate,pb.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:a},u.current)]),u.current+=1,c.current=i},[o]),y=M.useCallback((e={},t={},n=()=>{})=>{const{pulsate:o=!1,center:a=r||t.pulsate,fakeElement:i=!1}=t;if("mousedown"===e?.type&&d.current)return void(d.current=!1);"touchstart"===e?.type&&(d.current=!0);const l=i?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(a||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(a)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}e?.touches?null===p.current&&(p.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},f.start(80,()=>{p.current&&(p.current(),p.current=null)})):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},[r,h,f]),b=M.useCallback(()=>{y({},{pulsate:!0})},[y]),v=M.useCallback((e,t)=>{if(f.clear(),"touchend"===e?.type&&p.current)return p.current(),p.current=null,void f.start(0,()=>{v(e,t)});p.current=null,s(e=>e.length>0?e.slice(1):e),c.current=t},[f]);return M.useImperativeHandle(t,()=>({pulsate:b,start:y,stop:v}),[b,y,v]),g.jsx(yb,{className:Go(pb.root,o.root,a),ref:m,...i,children:g.jsx(ub,{component:null,exit:!0,children:l})})});function wb(e){return Hf("MuiButtonBase",e)}const xb=Uf("MuiButtonBase",["root","disabled","focusVisible"]),Sb=Qy("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${xb.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),kb=M.forwardRef(function(e,t){const n=Yy({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:a,className:i,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,focusVisibleClassName:f,LinkComponent:p="a",onBlur:m,onClick:h,onContextMenu:y,onDragLeave:b,onFocus:v,onFocusVisible:w,onKeyDown:x,onKeyUp:S,onMouseDown:k,onMouseLeave:C,onMouseUp:E,onTouchEnd:R,onTouchMove:P,onTouchStart:_,tabIndex:O=0,TouchRippleProps:N,touchRippleRef:T,type:A,...F}=n,z=M.useRef(null),j=nb.use(),L=Jy(j.ref,T),[D,I]=M.useState(!1);s&&D&&I(!1),M.useImperativeHandle(r,()=>({focusVisible:()=>{I(!0),z.current.focus()}}),[]);const $=j.shouldMount&&!u&&!s;M.useEffect(()=>{D&&d&&!u&&j.pulsate()},[u,d,D,j]);const B=Cb(j,"start",k,c),V=Cb(j,"stop",y,c),H=Cb(j,"stop",b,c),U=Cb(j,"stop",E,c),W=Cb(j,"stop",e=>{D&&e.preventDefault(),C&&C(e)},c),G=Cb(j,"start",_,c),q=Cb(j,"stop",R,c),K=Cb(j,"stop",P,c),X=Cb(j,"stop",e=>{cp(e.target)||I(!1),m&&m(e)},!1),Q=Zy(e=>{z.current||(z.current=e.currentTarget),cp(e.target)&&(I(!0),w&&w(e)),v&&v(e)}),Y=()=>{const e=z.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},J=Zy(e=>{d&&!e.repeat&&D&&" "===e.key&&j.stop(e,()=>{j.start(e)}),e.target===e.currentTarget&&Y()&&" "===e.key&&e.preventDefault(),x&&x(e),e.target===e.currentTarget&&Y()&&"Enter"===e.key&&!s&&(e.preventDefault(),h&&h(e))}),Z=Zy(e=>{d&&" "===e.key&&D&&!e.defaultPrevented&&j.stop(e,()=>{j.pulsate(e)}),S&&S(e),h&&e.target===e.currentTarget&&Y()&&" "===e.key&&!e.defaultPrevented&&h(e)});let ee=l;"button"===ee&&(F.href||F.to)&&(ee=p);const te={};"button"===ee?(te.type=void 0===A?"button":A,te.disabled=s):(F.href||F.to||(te.role="button"),s&&(te["aria-disabled"]=s));const ne=Jy(t,z),re={...n,centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:O,focusVisible:D},oe=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=If({root:["root",t&&"disabled",n&&"focusVisible"]},wb,o);return n&&r&&(a.root+=` ${r}`),a})(re);return g.jsxs(Sb,{as:ee,className:Go(oe.root,i),ownerState:re,onBlur:X,onClick:h,onContextMenu:V,onFocus:Q,onKeyDown:J,onKeyUp:Z,onMouseDown:B,onMouseLeave:W,onMouseUp:U,onDragLeave:H,onTouchEnd:q,onTouchMove:K,onTouchStart:G,ref:ne,tabIndex:s?-1:O,type:A,...te,...F,children:[a,$?g.jsx(vb,{ref:L,center:o,...N}):null]})});function Cb(e,t,n,r=!1){return Zy(o=>(n&&n(o),r||e[t](o),!0))}function Eb(e=[]){return([,t])=>t&&function(e,t=[]){if(!function(e){return"string"==typeof e.main}(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||"string"!=typeof e[n])return!1;return!0}(t,e)}const Rb=function(e){let t,n;return function(r){let o=t;return void 0!==o&&r.theme===n||(Ah.theme=r.theme,o=vh(e(Ah)),t=o,n=r.theme),o}};function Pb(e){return Hf("MuiSvgIcon",e)}Uf("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const _b=Qy("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${dp(n.color)}`],t[`fontSize${dp(n.fontSize)}`]]}})(Rb(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Ob=M.forwardRef(function(e,t){const n=Yy({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:a="inherit",component:i="svg",fontSize:l="medium",htmlColor:s,inheritViewBox:u=!1,titleAccess:c,viewBox:d="0 0 24 24",...f}=n,p=M.isValidElement(r)&&"svg"===r.type,m={...n,color:a,component:i,fontSize:l,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:d,hasSvgAsChild:p},h={};u||(h.viewBox=d);const y=(e=>{const{color:t,fontSize:n,classes:r}=e;return If({root:["root","inherit"!==t&&`color${dp(t)}`,`fontSize${dp(n)}`]},Pb,r)})(m);return g.jsxs(_b,{as:i,className:Go(y.root,o),focusable:"false",color:s,"aria-hidden":!c||void 0,role:c?"img":void 0,ref:t,...h,...f,...p&&r.props,ownerState:m,children:[p?r.props.children:r,c?g.jsx("title",{children:c}):null]})});function Nb(e,t){function n(t,n){return g.jsx(Ob,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=Ob.muiName,M.memo(M.forwardRef(n))}Ob.muiName="SvgIcon";var Tb=Nb(g.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"})),Ab=Nb(g.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"})),Mb=Nb(g.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"})),Fb=Nb(g.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}));function zb(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t}function jb(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:a}=e;if(!t){const e=Go(n?.className,a,o?.className,r?.className),t={...n?.style,...o?.style,...r?.style},i={...n,...o,...r};return e.length>0&&(i.className=e),Object.keys(t).length>0&&(i.style=t),{props:i,internalRef:void 0}}const i=function(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}({...o,...r}),l=zb(r),s=zb(o),u=t(i),c=Go(u?.className,n?.className,a,o?.className,r?.className),d={...u?.style,...n?.style,...o?.style,...r?.style},f={...u,...n,...s,...l};return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}function Lb(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:a,internalForwardedProps:i,shouldForwardComponentProp:l=!1,...s}=t,{component:u,slots:c={[e]:void 0},slotProps:d={[e]:void 0},...f}=a,p=c[e]||r,m=function(e,t,n){return"function"==typeof e?e(t,n):e}(d[e],o),{props:{component:g,...h},internalRef:y}=jb({className:n,...s,externalForwardedProps:"root"===e?f:void 0,externalSlotProps:m}),b=Jy(y,m?.ref,t.ref),v="root"===e?g||u:g,w=function(e,t,n){return void 0===e||"string"==typeof e?t:{...t,ownerState:{...t.ownerState,...n}}}(p,{..."root"===e&&!u&&!c[e]&&i,..."root"!==e&&!c[e]&&i,...h,...v&&!l&&{as:v},...v&&l&&{component:v},ref:b},o);return[p,w]}const Db=(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${dp(n.size)}`],"text"===n.variant&&t[`text${dp(n.color)}`],"outlined"===n.variant&&t[`outlined${dp(n.color)}`],"rounded"===n.shape&&t.rounded,"page"===n.type&&t.page,("start-ellipsis"===n.type||"end-ellipsis"===n.type)&&t.ellipsis,("previous"===n.type||"next"===n.type)&&t.previousNext,("first"===n.type||"last"===n.type)&&t.firstLast]},Ib=Qy("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:Db})(Rb(({theme:e})=>({...e.typography.body2,borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${up.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:{size:"small"},style:{minWidth:26,borderRadius:13,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,borderRadius:20,padding:"0 10px",fontSize:e.typography.pxToRem(15)}}]}))),$b=Qy(kb,{name:"MuiPaginationItem",slot:"Root",overridesResolver:Db})(Rb(({theme:e})=>({...e.typography.body2,borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${up.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${up.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${up.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:ep(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${up.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ep(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${up.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}},variants:[{props:{size:"small"},style:{minWidth:26,height:26,borderRadius:13,margin:"0 1px",padding:"0 4px"}},{props:{size:"large"},style:{minWidth:40,height:40,borderRadius:20,padding:"0 10px",fontSize:e.typography.pxToRem(15)}},{props:{shape:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"outlined"},style:{border:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:"1px solid "+("light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),[`&.${up.selected}`]:{[`&.${up.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}}}},{props:{variant:"text"},style:{[`&.${up.selected}`]:{[`&.${up.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}},...Object.entries(e.palette).filter(Eb(["dark","contrastText"])).map(([t])=>({props:{variant:"text",color:t},style:{[`&.${up.selected}`]:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}},[`&.${up.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark},[`&.${up.disabled}`]:{color:(e.vars||e).palette.action.disabled}}}})),...Object.entries(e.palette).filter(Eb(["light"])).map(([t])=>({props:{variant:"outlined",color:t},style:{[`&.${up.selected}`]:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:ep(e.palette[t].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:ep(e.palette[t].main,e.palette.action.activatedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ep(e.palette[t].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${up.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:ep(e.palette[t].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}}}}))]}))),Bb=Qy("div",{name:"MuiPaginationItem",slot:"Icon"})(Rb(({theme:e})=>({fontSize:e.typography.pxToRem(20),margin:"0 -8px",variants:[{props:{size:"small"},style:{fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{fontSize:e.typography.pxToRem(22)}}]}))),Vb=M.forwardRef(function(e,t){const n=Yy({props:e,name:"MuiPaginationItem"}),{className:r,color:o="standard",component:a,components:i={},disabled:l=!1,page:s,selected:u=!1,shape:c="circular",size:d="medium",slots:f={},slotProps:p={},type:m="page",variant:h="text",...y}=n,b={...n,color:o,disabled:l,selected:u,shape:c,size:d,type:m,variant:h},v=M.useContext(lp)??!1,w=(e=>{const{classes:t,color:n,disabled:r,selected:o,size:a,shape:i,type:l,variant:s}=e;return If({root:["root",`size${dp(a)}`,s,i,"standard"!==n&&`color${dp(n)}`,"standard"!==n&&`${s}${dp(n)}`,r&&"disabled",o&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[l]],icon:["icon"]},sp,t)})(b),x={slots:{previous:f.previous??i.previous,next:f.next??i.next,first:f.first??i.first,last:f.last??i.last},slotProps:p},[S,k]=Lb("previous",{elementType:Mb,externalForwardedProps:x,ownerState:b}),[C,E]=Lb("next",{elementType:Fb,externalForwardedProps:x,ownerState:b}),[R,P]=Lb("first",{elementType:Tb,externalForwardedProps:x,ownerState:b}),[_,O]=Lb("last",{elementType:Ab,externalForwardedProps:x,ownerState:b}),N=v?{previous:"next",next:"previous",first:"last",last:"first"}[m]:m,T={previous:S,next:C,first:R,last:_}[N],A={previous:k,next:E,first:P,last:O}[N];return"start-ellipsis"===m||"end-ellipsis"===m?g.jsx(Ib,{ref:t,ownerState:b,className:Go(w.root,r),children:"…"}):g.jsxs($b,{ref:t,ownerState:b,component:a,disabled:l,className:Go(w.root,r),...y,children:["page"===m&&s,T?g.jsx(Bb,{...A,className:w.icon,as:T}):null]})}),Hb=Qy("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant]]}})({}),Ub=Qy("ul",{name:"MuiPagination",slot:"Ul"})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function Wb(e,t,n){return"page"===e?`${n?"":"Go to "}page ${t}`:`Go to ${e} page`}const Gb=M.forwardRef(function(e,t){const n=Yy({props:e,name:"MuiPagination"}),{boundaryCount:r=1,className:o,color:a="standard",count:i=1,defaultPage:l=1,disabled:s=!1,getItemAriaLabel:u=Wb,hideNextButton:c=!1,hidePrevButton:d=!1,onChange:f,page:p,renderItem:m=e=>g.jsx(Vb,{...e}),shape:h="circular",showFirstButton:y=!1,showLastButton:b=!1,siblingCount:v=1,size:w="medium",variant:x="text",...S}=n,{items:k}=Gf({...n,componentName:"Pagination"}),C={...n,boundaryCount:r,color:a,count:i,defaultPage:l,disabled:s,getItemAriaLabel:u,hideNextButton:c,hidePrevButton:d,renderItem:m,shape:h,showFirstButton:y,showLastButton:b,siblingCount:v,size:w,variant:x},E=(e=>{const{classes:t,variant:n}=e;return If({root:["root",n],ul:["ul"]},Wf,t)})(C);return g.jsx(Hb,{"aria-label":"pagination navigation",className:Go(E.root,o),ownerState:C,ref:t,...S,children:g.jsx(Ub,{className:E.ul,ownerState:C,children:k.map((e,t)=>g.jsx("li",{children:m({...e,color:a,"aria-label":u(e.type,e.page,e.selected),shape:h,size:w,variant:x})},t))})})}),qb={arrow:g.jsx("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:g.jsx("path",{d:"M8.65833 15.7667C8.54866 15.7673 8.43994 15.7463 8.33841 15.7048C8.23688 15.6634 8.14453 15.6023 8.06667 15.525C7.91146 15.3689 7.82434 15.1577 7.82434 14.9375C7.82434 14.7174 7.91146 14.5062 8.06667 14.35L12.4083 10L8.06667 5.65004C7.93014 5.49062 7.85881 5.28556 7.86691 5.07583C7.87501 4.8661 7.96195 4.66715 8.11036 4.51874C8.25878 4.37032 8.45773 4.28338 8.66746 4.27528C8.87719 4.26718 9.08225 4.33852 9.24167 4.47504L14.1667 9.40837C14.2439 9.48624 14.305 9.57859 14.3465 9.68012C14.3879 9.78165 14.409 9.89037 14.4083 10C14.4053 10.2207 14.3189 10.432 14.1667 10.5917L9.225 15.525C9.07391 15.675 8.87116 15.7615 8.65833 15.7667Z",fill:"#A1A5B7"})}),info_input:g.jsxs("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[g.jsx("path",{opacity:"0.3",d:"M10 18.3332C14.6024 18.3332 18.3333 14.6022 18.3333 9.99984C18.3333 5.39746 14.6024 1.6665 10 1.6665C5.39763 1.6665 1.66667 5.39746 1.66667 9.99984C1.66667 14.6022 5.39763 18.3332 10 18.3332Z",fill:"#1868DB"}),g.jsx("path",{d:"M10 8.83301C10.221 8.83301 10.433 8.9208 10.5893 9.07708C10.7455 9.23337 10.8333 9.44533 10.8333 9.66634V13.5497C10.8333 13.7707 10.7455 13.9826 10.5893 14.1389C10.433 14.2952 10.221 14.383 10 14.383C9.77899 14.383 9.56703 14.2952 9.41075 14.1389C9.25447 13.9826 9.16667 13.7707 9.16667 13.5497V9.66634C9.16667 9.44533 9.25447 9.23337 9.41075 9.07708C9.56703 8.9208 9.77899 8.83301 10 8.83301Z",fill:"#1868DB"}),g.jsx("path",{d:"M10 7.70003C10.5753 7.70003 11.0417 7.23366 11.0417 6.65837C11.0417 6.08307 10.5753 5.6167 10 5.6167C9.42471 5.6167 8.95834 6.08307 8.95834 6.65837C8.95834 7.23366 9.42471 7.70003 10 7.70003Z",fill:"#1868DB"})]})};function Kb({showBulkActions:e=!0,meta:t}){const n=Z(),{currentPage:r,perview:o}=ne(e=>e.app);return M.useEffect(()=>{t&&r>t?.last_page&&n(bt(1))},[t?.per_page]),g.jsxs("div",{className:Za("flex items-center justify-between gap-4 flex-wrap",t&&t?.total>0?null:"hidden"),children:[e?g.jsxs("div",{className:"flex items-center gap-2.5 shrink-0",children:[g.jsxs(zf,{children:[g.jsx(jf,{asChild:!0,children:g.jsxs("button",{className:"rounded-md h-9 flex items-center justify-between p-3 font-semibold text-xs text-gray-600 outline-none border border-gray-300 gap-2.5 ",children:[o,g.jsx("span",{className:"rotate-90",children:qb.arrow})]})}),g.jsx(Lf,{align:"center",className:"flex flex-col gap-2.5 rounded-xl border-gray-200 py-2.5",children:[7,10,20].map((e,t)=>g.jsx(Df,{className:`capitalize focus:bg-primary_light rounded-md focus:text-primary font-semibold text-sm cursor-pointer px-[15px] flex items-center gap-[5px] ${o===e?"bg-primary_light text-primary":"text-gray-700"} `,onClick:()=>n(vt(e)),children:e},t))})]}),g.jsxs("p",{className:"font-normal text-gray-600 text-[15px]",children:["Showing ",t?.from," - ",t?.to," of ",t?.total]})]}):null,g.jsx(Gb,{count:t?.last_page||1,page:t?.current_page??1,shape:"rounded",color:"primary",onChange:(e,t)=>{n(bt(t))}})]})}function Xb({props:e={}}){return g.jsxs("div",{className:"flex flex-col gap-3 items-center py-24",children:[g.jsx("p",{className:"font-bold text-sm",children:e.header??"No item attached"}),g.jsx("p",{className:"font-bold text-[13px] text-gray-700",children:e.subText??"Add a new item to start managing your orders."})]})}function Qb({columns:e,data:t,tbhRowClass:n,tHeadClass:r,tbCellClass:o,meta:a,showBulkActions:i,showPaginate:l=!0,emptyData:s,emptyProps:u,loading:c,accordionData:d,hasAccordion:f,bodyRowClass:p,tableContainerClass:m,firstCellClass:h,lastCellClass:y,showAccordionDropdown:b=!0,onToggleAccordion:v}){const[w,x]=M.useState(null),S=function(e){const t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=M.useState(()=>({current:Ho(t)})),[r,o]=M.useState(()=>n.current.initialState);return n.current.setOptions(t=>({...t,...e,state:{...r,...e.state},onStateChange:t=>{o(t),null==e.onStateChange||e.onStateChange(t)}})),n.current}({data:t,columns:e,getCoreRowModel:e=>Yr(()=>[e.options.data],t=>{const n={rows:[],flatRows:[],rowsById:{}},r=function(t,o,a){void 0===o&&(o=0);const i=[];for(let s=0;s<t.length;s++){const u=ro(e,e._getRowId(t[s],s,a),t[s],s,o,0,null==a?void 0:a.id);var l;n.flatRows.push(u),n.rowsById[u.id]=u,i.push(u),e.options.getSubRows&&(u.originalSubRows=e.options.getSubRows(t[s],s),null!=(l=u.originalSubRows)&&l.length&&(u.subRows=r(u.originalSubRows,o+1,u)))}return i};return n.rows=r(t),n},Jr(e.options,"debugTable",0,()=>e._autoResetPageIndex()))});return g.jsxs("div",{className:"flex flex-col gap-[30px]",children:[g.jsx("div",{className:`shadow-[0_3px_4px_0_#00000008] ${m}`,children:g.jsxs(ei,{children:[g.jsx(ti,{children:S.getHeaderGroups().map(e=>g.jsx(ri,{className:Za("border-gray-300 bg-gray-100 hover:!bg-gray-100 rounded-xl",n),children:e.headers.map(e=>g.jsx(oi,{className:Za("text-dark text-sm capitalize font-bold",r),children:e.isPlaceholder?null:Uo(e.column.columnDef.header,e.getContext())},e.id))},e.id))}),g.jsx(ni,{children:c?Array(5).fill(null).map((e,t)=>g.jsx(F.Fragment,{children:S.getHeaderGroups().map(e=>g.jsx(ri,{className:Za("border-gray-300 hover:!bg-gray-100 rounded-xl"),children:e.headers.map(e=>g.jsx(ai,{children:g.jsx(ii,{className:"w-full h-6 rounded-lg"})},e.id))},e.id))},t)):S?.getRowModel().rows?.length?S?.getRowModel().rows.map((e,t)=>g.jsx(F.Fragment,{children:g.jsx(ri,{onClick:()=>((e,t)=>{x(t=>t===e?null:e),v?.(e,t)})(t,e.original),"data-state":e.getIsSelected()&&"selected",className:`border-gray-300 hover:!bg-gray-100 data-[state=selected]:bg-gray-100 ${p} `,children:e.getVisibleCells().map((n,r)=>g.jsx(ai,{className:Za("text-gray-500 text-sm font-bold",o,0===r&&h,r===e.getVisibleCells().length-1&&y),children:g.jsxs("div",{className:"flex",children:[f&&b&&0===r&&g.jsx("div",{className:"cursor-pointer inline",children:g.jsx("div",{className:"transform transition-transform duration-200 "+(w===t?"-rotate-90":"rotate-90"),children:qb.arrow})})," ",g.jsx("div",{children:Uo(n.column.columnDef.cell,n.getContext())})]})},n.id))},e.id)},e.id)):g.jsx(ri,{children:g.jsx(ai,{colSpan:e.length,className:"h-24 text-center hover:bg-gray-100",children:s?g.jsx(Xb,{props:u}):"No results found."})})})]})}),l&&g.jsx(Kb,{showBulkActions:i,meta:a})]})}function Yb(e,t="NGN",n="en-NG"){isNaN(e)&&(e=0);return new Intl.NumberFormat(n,{style:"currency",currency:t,minimumFractionDigits:2,maximumFractionDigits:6}).format(e)}function Jb(e=0){if(null==e)return"0";if(isNaN(e))return"0";{const[t,n]=e.toString().split("."),r=t.replace(/\B(?=(\d{3})+(?!\d))/g,",");return n?`${r}.${n}`:r}}var Zb,ev="HoverCard",[tv,nv]=di(ev,[Ws]),rv=Ws(),[ov,av]=tv(ev),iv=e=>{const{__scopeHoverCard:t,children:n,open:r,defaultOpen:o,onOpenChange:a,openDelay:i=700,closeDelay:l=300}=e,s=rv(t),u=M.useRef(0),c=M.useRef(0),d=M.useRef(!1),f=M.useRef(!1),[p,m]=gi({prop:r,defaultProp:o??!1,onChange:a,caller:ev}),h=M.useCallback(()=>{clearTimeout(c.current),u.current=window.setTimeout(()=>m(!0),i)},[i,m]),y=M.useCallback(()=>{clearTimeout(u.current),d.current||f.current||(c.current=window.setTimeout(()=>m(!1),l))},[l,m]),b=M.useCallback(()=>m(!1),[m]);return M.useEffect(()=>()=>{clearTimeout(u.current),clearTimeout(c.current)},[]),g.jsx(ov,{scope:t,open:p,onOpenChange:m,onOpen:h,onClose:y,onDismiss:b,hasSelectionRef:d,isPointerDownOnContentRef:f,children:g.jsx(lu,{...s,children:n})})};iv.displayName=ev;var lv="HoverCardTrigger",sv=M.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=av(lv,n),a=rv(n);return g.jsx(su,{asChild:!0,...a,children:g.jsx(Si.a,{"data-state":o.open?"open":"closed",...r,ref:t,onPointerEnter:li(e.onPointerEnter,mv(o.onOpen)),onPointerLeave:li(e.onPointerLeave,mv(o.onClose)),onFocus:li(e.onFocus,o.onOpen),onBlur:li(e.onBlur,o.onClose),onTouchStart:li(e.onTouchStart,e=>e.preventDefault())})})});sv.displayName=lv;var[uv,cv]=tv("HoverCardPortal",{forceMount:void 0}),dv="HoverCardContent",fv=M.forwardRef((e,t)=>{const n=cv(dv,e.__scopeHoverCard),{forceMount:r=n.forceMount,...o}=e,a=av(dv,e.__scopeHoverCard);return g.jsx(fu,{present:r||a.open,children:g.jsx(pv,{"data-state":a.open?"open":"closed",...o,onPointerEnter:li(e.onPointerEnter,mv(a.onOpen)),onPointerLeave:li(e.onPointerLeave,mv(a.onClose)),ref:t})})});fv.displayName=dv;var pv=M.forwardRef((e,t)=>{const{__scopeHoverCard:n,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,...l}=e,s=av(dv,n),u=rv(n),c=M.useRef(null),d=ci(t,c),[f,p]=M.useState(!1);return M.useEffect(()=>{if(f){const e=document.body;return Zb=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=Zb,e.style.webkitUserSelect=Zb}}},[f]),M.useEffect(()=>{if(c.current){const e=()=>{p(!1),s.isPointerDownOnContentRef.current=!1,setTimeout(()=>{""!==document.getSelection()?.toString()&&(s.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),s.hasSelectionRef.current=!1,s.isPointerDownOnContentRef.current=!1}}},[s.isPointerDownOnContentRef,s.hasSelectionRef]),M.useEffect(()=>{if(c.current){const e=function(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t}(c.current);e.forEach(e=>e.setAttribute("tabindex","-1"))}}),g.jsx(Mi,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:i,onEscapeKeyDown:r,onPointerDownOutside:o,onFocusOutside:li(a,e=>{e.preventDefault()}),onDismiss:s.onDismiss,children:g.jsx(uu,{...u,...l,onPointerDown:li(l.onPointerDown,e=>{e.currentTarget.contains(e.target)&&p(!0),s.hasSelectionRef.current=!1,s.isPointerDownOnContentRef.current=!0}),ref:d,style:{...l.style,userSelect:f?"text":void 0,WebkitUserSelect:f?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})});function mv(e){return t=>"touch"===t.pointerType?void 0:e()}M.forwardRef((e,t)=>{const{__scopeHoverCard:n,...r}=e,o=rv(n);return g.jsx(cu,{...o,...r,ref:t})}).displayName="HoverCardArrow";var gv=fv;const hv=iv,yv=sv,bv=M.forwardRef(({className:e,align:t="center",sideOffset:n=4,...r},o)=>g.jsx(gv,{ref:o,align:t,sideOffset:n,className:Za("z-50 w-64 rounded-md border border-neutral-200 bg-white p-4 text-neutral-950 shadow-md outline-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 dark:border-neutral-800 dark:bg-neutral-950 dark:text-neutral-50",e),...r}));function vv({children:e,trigger:t,fieldName:n,align:r="start"}){return g.jsxs(hv,{children:[g.jsx(yv,{className:"cursor-pointer",children:t??qb.info_input}),g.jsxs(bv,{align:r,className:"bg-[#0A0D14] text-[#CDD0D5] text-xs font-normal border-none",children:[n?g.jsx("p",{className:"text-sm font-medium text-white first-letter:uppercase",children:n}):null,e]})]})}function wv({status:e}){return g.jsx("span",{className:Za("font-semibold text-xs rounded p-[7px] capitalize text-center min-w-[70px] bg-gray-300 text-gray-700",["active","approved","published","received","returned","completed","reconciled","credit"].includes(e)?"text-success bg-success-light":null,["inactive","pending","expired","expiring","rejected","voided","cancelled","debit","out of stock"].includes(e)?"text-danger bg-danger_light":null,["pending","paylater","suspended","awaiting_approval"].includes(e)?"text-warning bg-warning-light":null,["draft","in_transit"].includes(e)?"text-black bg-[#E1E3EA]":null,["ongoing"].includes(e)?"text-[#7239EA] bg-[#f5edff]":null),children:e?.replace("_"," ")})}bv.displayName=gv.displayName;const xv=[{accessorKey:"item_description",header:"item description",cell:({row:e})=>{const t=e.original;return g.jsxs("div",{className:"flex items-center gap-5",children:[g.jsx("div",{className:"w-[50px] h-[50px] rounded-2xl relative bg-gray-100",children:g.jsx("img",{src:t.item_image,alt:"item image",className:"rounded-2xl object-cover w-full h-full",draggable:!1})}),g.jsxs("div",{className:"space-y-1 max-w-[265px]",children:[g.jsx(Sv,{title:t.item_description,item_uuid:t.uuid,item_type_id:t.item_type_id,data:t.fullData}),g.jsxs("p",{className:"text-dark text-xs font-normal flex items-center gap-1",children:[g.jsx("span",{className:"uppercase whitespace-nowrap",children:t.sku}),t.barcode?.length>0?g.jsxs(g.Fragment,{children:[g.jsx("span",{children:"|"}),t.barcode?.[0]?.barcode,t.barcode.length>1?g.jsxs("span",{className:"rounded bg-[#9747FF1A] px-[5px] flex items-center text-[#7239EA] font-semibold text-[11px] h-[18px]",children:["+",t.barcode?.length-1]}):null]}):null,t.expired?g.jsxs(g.Fragment,{children:[g.jsx("span",{children:"|"}),"Expired",g.jsx("span",{className:"rounded bg-danger_light px-[5px] flex items-center text-danger font-semibold text-[11px] h-[18px]",children:t.expired})]}):null,t.expiring?g.jsxs(g.Fragment,{children:[g.jsx("span",{children:"|"}),"Expiring",g.jsx("span",{className:"rounded bg-warning-light px-[5px] flex items-center text-warning font-semibold text-[11px] h-[18px]",children:t.expiring})]}):null]})]})]})}},{accessorKey:"quantity",header:()=>g.jsx("p",{children:"quantity"}),cell:({row:e})=>{const t=e.original;return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:Za("flex items-center",t.quantity<=0?"text-danger":Number(t.reorder_level)==t.quantity?"text-orange":null),children:g.jsx("p",{children:Jb(t.quantity)+t.unit})}),t.all_quantity===t.quantity?null:g.jsx("p",{className:"text-gray-700",children:Intl.NumberFormat().format(t.all_quantity??0)+t.unit})]})}},{accessorKey:"type",cell:({row:e})=>{const t=e.original;return g.jsx("p",{className:"capitalize",children:t.type})}},{accessorKey:"selling_price",header:"Selling Price (₦)",cell:({row:e})=>{const t=e.original;return g.jsx("p",{children:Yb(t.selling_price??0)})}},{accessorKey:"categories",header:"categories/Tags",cell:({row:e})=>{const t=e.original;return g.jsxs(g.Fragment,{children:[" ",g.jsxs("div",{className:"flex items-center gap-2 capitalize",children:[t.categories&&t.categories?.length>0?t.categories?.[0]?.name:"...",t.categories.length>1?g.jsx(vv,{align:"center",fieldName:"Categories",trigger:g.jsxs("button",{className:"rounded bg-[#9747FF1A] px-[5px] flex items-center text-[#7239EA] font-semibold text-[11px] h-[18px]",children:["+",t.categories.length-1]}),children:g.jsx("ul",{className:"list-disc pl-4",children:t.categories.map((e,t)=>g.jsx("li",{children:e.name},t))})}):null]}),g.jsxs("div",{className:"text-gray-700 flex items-center gap-2 capitalize",children:[t.tags?.[0],t.tags?.length>1?g.jsx(vv,{align:"center",fieldName:"Tags",trigger:g.jsxs("button",{className:"rounded bg-[#9747FF1A] px-[5px] flex items-center text-[#7239EA] font-semibold text-[11px] h-[18px]",children:["+",t.tags.length-1]}),children:g.jsx("ul",{className:"list-disc pl-4",children:t.tags.map((e,t)=>g.jsx("li",{children:e},t))})}):null]})]})}},{accessorKey:"status",cell:({row:e})=>{const t=e.getValue("status");return g.jsx(wv,{status:t})}}],Sv=({title:e,item_uuid:t,item_type_id:n,data:r})=>{const[o,a]=M.useState(!1),[i,l]=M.useState(!1),[s,u]=M.useState(!1);return g.jsx(g.Fragment,{children:g.jsx("button",{className:Za("text-primary font-bold text-sm first-letter:uppercase truncate max-w-[265px]",r.expired?"text-danger":""),title:e,children:e})})};function kv({children:e,className:t}){return g.jsx("div",{className:Za("border rounded-xl py-[30px] border-gray-200 ",t),children:e})}const Cv="https://unpkg.com/@simpoobusiness/sdk/dist/simpoo-sdk.css";let Ev={};function Rv(e){Ev=e}const Pv={inventory:()=>{const{apiKey:e}=(()=>{const e=M.useContext(xt);if(!e)throw new Error("useSDK must be used within SDKProvider");return e})(),[t,n]=F.useState([]),[r,o]=F.useState(null),[a,i]=F.useState(!1),{currentPage:l,perview:s}=ne(e=>e.app);M.useEffect(()=>{const t=(e=>{e||console.warn("⚠️ No API key provided to createApiClient");const t=Tr.create({baseURL:"https://biz.api.simpoocodes.com/api/gateway/v1",headers:{"Content-Type":"application/json","SIMPOO-API-KEY":e}});return t.interceptors.request.use(t=>(e&&t.headers&&(t.headers["SIMPOO-API-KEY"]=e),t),e=>Promise.reject(e)),t.interceptors.response.use(e=>e,e=>(e.response?console.error("API Error:",e.response.status,e.response.data):console.error("Network or Axios Error:",e.message),Promise.reject(e))),t})(e||"");e&&(async()=>{i(!0);try{const e=await t.get(`/outbound/items?page=${l}&paginate=${s}&status=all`);if(200===e.status&&"object"==typeof e.data&&null!==e.data&&"status"in e.data&&"success"===e.data.status&&"data"in e.data){const t=e.data.data?.[0];n(t?.data||[]),o(t?.meta||null)}}catch(e){console.error(e)}finally{i(!1),console.log("request completed.")}})()},[e,s,l]);const u=t.map(e=>({item_description:e?.name,all_quantity:+e?.all_quantity,quantity:+e?.quantity,type:e?.item_type?.name,selling_price:+e?.selling_price,categories:e?.category||[],tags:e?.item_tags?.map(e=>e.name)||[],status:e?.status?"published":"draft",sku:e?.sku,item_image:e.images?.length>0?e.images[0].image:"/assets/placeholder-imageaf93498c918127fb.svg",barcode:e?.barcode,expired:e?.expired,expiring:e?.expiring,unit:e?.item_unit,uuid:e?.uuid,item_type_id:e?.item_type?.uuid,reorder_level:e?.reorder_level,fullData:e}));return g.jsx(kv,{className:"px-4 py-6",children:g.jsx(Qb,{loading:a,columns:xv,data:u||[],emptyData:0===u.length,emptyProps:{header:"No item yet",subText:"Add new item to start managing your inventory."},tHeadClass:"whitespace-nowrap",tbCellClass:"text-dark font-semibold",meta:r})})}};function _v(e,t){!function(){if(!document.querySelector(`link[href="${Cv}"]`)){const e=document.createElement("link");e.rel="stylesheet",e.href=Cv,document.head.appendChild(e)}}();const n=Pv[e];if(!n)return void console.error(`SimpooSDK: Widget "${e}" not found.`);const r=document.querySelector(t);if(!r)throw new Error(`Container "${t}" not found!`);A.createRoot(r).render(g.jsx(St,{apiKey:Ev.apiKey||"",children:g.jsx(n,{})}))}"undefined"!=typeof window&&(window.SimpooSDK={init:Rv,renderWidget:_v}),e.init=Rv,e.renderWidget=_v});
140
140
  //# sourceMappingURL=simpoo-sdk.js.map