@keslers/kui 0.4.1 → 1.0.0
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.
- package/dist/index.cjs +17 -17
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -1
- package/dist/index.d.ts +9 -1
- package/dist/index.js +15 -15
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
2
3
|
import { ReactNode } from 'react';
|
|
3
4
|
import { IconType } from 'react-icons';
|
|
4
5
|
|
|
@@ -45,4 +46,11 @@ interface LayoutProps {
|
|
|
45
46
|
}
|
|
46
47
|
declare function Layout({ header, footer, children }: LayoutProps): react_jsx_runtime.JSX.Element;
|
|
47
48
|
|
|
48
|
-
|
|
49
|
+
interface IconWithBadgeProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
50
|
+
variant?: "cart" | "none";
|
|
51
|
+
itemCount?: number;
|
|
52
|
+
children?: React.ReactNode;
|
|
53
|
+
}
|
|
54
|
+
declare const IconWithBadge: React.ForwardRefExoticComponent<IconWithBadgeProps & React.RefAttributes<HTMLButtonElement>>;
|
|
55
|
+
|
|
56
|
+
export { Footer, Header, IconWithBadge, Layout };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import * as React from 'react';
|
|
2
3
|
import { ReactNode } from 'react';
|
|
3
4
|
import { IconType } from 'react-icons';
|
|
4
5
|
|
|
@@ -45,4 +46,11 @@ interface LayoutProps {
|
|
|
45
46
|
}
|
|
46
47
|
declare function Layout({ header, footer, children }: LayoutProps): react_jsx_runtime.JSX.Element;
|
|
47
48
|
|
|
48
|
-
|
|
49
|
+
interface IconWithBadgeProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
50
|
+
variant?: "cart" | "none";
|
|
51
|
+
itemCount?: number;
|
|
52
|
+
children?: React.ReactNode;
|
|
53
|
+
}
|
|
54
|
+
declare const IconWithBadge: React.ForwardRefExoticComponent<IconWithBadgeProps & React.RefAttributes<HTMLButtonElement>>;
|
|
55
|
+
|
|
56
|
+
export { Footer, Header, IconWithBadge, Layout };
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{useState as Ln}from"react";import"react";import{cva as Hr}from"class-variance-authority";import{NavigationMenu as it}from"radix-ui";import{clsx as _r}from"clsx";import{twMerge as zr}from"tailwind-merge";function B(...t){return zr(_r(t))}import{ChevronDownIcon as Un}from"lucide-react";import{jsx as Q,jsxs as Ur}from"react/jsx-runtime";function pe({className:t,children:e,viewport:r=!0,...o}){return Ur(it.Root,{"data-slot":"navigation-menu","data-viewport":r,className:B("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",t),...o,children:[e,r&&Q(Vr,{})]})}function ge({className:t,...e}){return Q(it.List,{"data-slot":"navigation-menu-list",className:B("group flex flex-1 list-none items-center justify-center gap-0",t),...e})}function fe({className:t,...e}){return Q(it.Item,{"data-slot":"navigation-menu-item",className:B("relative",t),...e})}var xe=Hr("group/navigation-menu-trigger inline-flex h-9 w-max items-center justify-center rounded-lg bg-background px-2.5 py-1.5 text-sm font-medium transition-all outline-none hover:bg-muted focus:bg-muted focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 data-popup-open:bg-muted/50 data-popup-open:hover:bg-muted data-open:bg-muted/50 data-open:hover:bg-muted data-open:focus:bg-muted");function Vr({className:t,...e}){return Q("div",{className:B("absolute top-full left-0 isolate z-50 flex justify-center"),children:Q(it.Viewport,{"data-slot":"navigation-menu-viewport",className:B("origin-top-center relative mt-1.5 h-(--radix-navigation-menu-viewport-height) w-full overflow-hidden rounded-lg bg-popover text-popover-foreground shadow ring-1 ring-foreground/10 duration-100 md:w-(--radix-navigation-menu-viewport-width) data-open:animate-in data-open:zoom-in-90 data-closed:animate-out data-closed:zoom-out-90",t),...e})})}function ve({className:t,...e}){return Q(it.Link,{"data-slot":"navigation-menu-link",className:B("flex items-center gap-2 rounded-lg p-2 text-sm transition-all outline-none hover:bg-muted focus:bg-muted focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:outline-1 in-data-[slot=navigation-menu-content]:rounded-md data-active:bg-muted/50 data-active:hover:bg-muted data-active:focus:bg-muted [&_svg:not([class*='size-'])]:size-4",t),...e})}import"react";import{cva as Gr}from"class-variance-authority";import{Slot as Kr}from"radix-ui";import{jsx as Yr}from"react/jsx-runtime";var $r=Gr("group/button shrink-0 items-center justify-center rounded-lg border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"bg-primary text-primary-foreground [a]:hover:bg-primary/80",outline:"border-border bg-background hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",ghost:"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50",destructive:"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",xs:"h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",sm:"h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",lg:"h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-3 has-data-[icon=inline-start]:pl-3",icon:"size-8","icon-xs":"size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3","icon-sm":"size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg","icon-lg":"size-9"}},defaultVariants:{variant:"default",size:"default"}});function ye({className:t,variant:e="default",size:r="default",asChild:o=!1,...n}){let i=o?Kr.Root:"button";return Yr(i,{"data-slot":"button","data-variant":e,"data-size":r,className:B($r({variant:e,size:r,className:t})),...n})}import*as dt from"react";import*as y from"react";var Jn=!!(typeof window<"u"&&window.document&&window.document.createElement);function _(t,e,{checkForDefaultPrevented:r=!0}={}){return function(n){if(t?.(n),r===!1||!n.defaultPrevented)return e?.(n)}}import*as me from"react";function ke(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Bt(...t){return e=>{let r=!1,o=t.map(n=>{let i=ke(n,e);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let n=0;n<o.length;n++){let i=o[n];typeof i=="function"?i():ke(t[n],null)}}}}function I(...t){return me.useCallback(Bt(...t),t)}import*as A from"react";import{jsx as Le}from"react/jsx-runtime";function we(t,e){let r=A.createContext(e),o=i=>{let{children:c,...a}=i,l=A.useMemo(()=>a,Object.values(a));return Le(r.Provider,{value:l,children:c})};o.displayName=t+"Provider";function n(i){let c=A.useContext(r);if(c)return c;if(e!==void 0)return e;throw new Error(`\`${i}\` must be used within \`${t}\``)}return[o,n]}function Ce(t,e=[]){let r=[];function o(i,c){let a=A.createContext(c),l=r.length;r=[...r,c];let s=h=>{let{scope:p,children:g,...w}=h,d=p?.[t]?.[l]||a,f=A.useMemo(()=>w,Object.values(w));return Le(d.Provider,{value:f,children:g})};s.displayName=i+"Provider";function u(h,p){let g=p?.[t]?.[l]||a,w=A.useContext(g);if(w)return w;if(c!==void 0)return c;throw new Error(`\`${h}\` must be used within \`${i}\``)}return[s,u]}let n=()=>{let i=r.map(c=>A.createContext(c));return function(a){let l=a?.[t]||i;return A.useMemo(()=>({[`__scope${t}`]:{...a,[t]:l}}),[a,l])}};return n.scopeName=t,[o,Xr(n,...e)]}function Xr(...t){let e=t[0];if(t.length===1)return e;let r=()=>{let o=t.map(n=>({useScope:n(),scopeName:n.scopeName}));return function(i){let c=o.reduce((a,{useScope:l,scopeName:s})=>{let h=l(i)[`__scope${s}`];return{...a,...h}},{});return A.useMemo(()=>({[`__scope${e.scopeName}`]:c}),[c])}};return r.scopeName=e.scopeName,r}import*as Wt from"react";import*as be from"react";var V=globalThis?.document?be.useLayoutEffect:()=>{};var qr=Wt[" useId ".trim().toString()]||(()=>{}),Zr=0;function pt(t){let[e,r]=Wt.useState(qr());return V(()=>{t||r(o=>o??String(Zr++))},[t]),t||(e?`radix-${e}`:"")}import*as O from"react";import*as gt from"react";var Qr=O[" useInsertionEffect ".trim().toString()]||V;function Re({prop:t,defaultProp:e,onChange:r=()=>{},caller:o}){let[n,i,c]=Jr({defaultProp:e,onChange:r}),a=t!==void 0,l=a?t:n;{let u=O.useRef(t!==void 0);O.useEffect(()=>{let h=u.current;h!==a&&console.warn(`${o} is changing from ${h?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),u.current=a},[a,o])}let s=O.useCallback(u=>{if(a){let h=to(u)?u(t):u;h!==t&&c.current?.(h)}else i(u)},[a,t,i,c]);return[l,s]}function Jr({defaultProp:t,onChange:e}){let[r,o]=O.useState(t),n=O.useRef(r),i=O.useRef(e);return Qr(()=>{i.current=e},[e]),O.useEffect(()=>{n.current!==r&&(i.current?.(r),n.current=r)},[r,n]),[r,o,i]}function to(t){return typeof t=="function"}import*as L from"react";import*as je from"react";import*as Fe from"react-dom";import*as j from"react";import{Fragment as ui,jsx as Me}from"react/jsx-runtime";function ft(t){let e=eo(t),r=j.forwardRef((o,n)=>{let{children:i,...c}=o,a=j.Children.toArray(i),l=a.find(oo);if(l){let s=l.props.children,u=a.map(h=>h===l?j.Children.count(s)>1?j.Children.only(null):j.isValidElement(s)?s.props.children:null:h);return Me(e,{...c,ref:n,children:j.isValidElement(s)?j.cloneElement(s,void 0,u):null})}return Me(e,{...c,ref:n,children:i})});return r.displayName=`${t}.Slot`,r}function eo(t){let e=j.forwardRef((r,o)=>{let{children:n,...i}=r;if(j.isValidElement(n)){let c=io(n),a=no(i,n.props);return n.type!==j.Fragment&&(a.ref=o?Bt(o,c):c),j.cloneElement(n,a)}return j.Children.count(n)>1?j.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var ro=Symbol("radix.slottable");function oo(t){return j.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===ro}function no(t,e){let r={...e};for(let o in e){let n=t[o],i=e[o];/^on[A-Z]/.test(o)?n&&i?r[o]=(...a)=>{let l=i(...a);return n(...a),l}:n&&(r[o]=n):o==="style"?r[o]={...n,...i}:o==="className"&&(r[o]=[n,i].filter(Boolean).join(" "))}return{...t,...r}}function io(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}import{jsx as ao}from"react/jsx-runtime";var co=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],N=co.reduce((t,e)=>{let r=ft(`Primitive.${e}`),o=je.forwardRef((n,i)=>{let{asChild:c,...a}=n,l=c?r:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),ao(l,{...a,ref:i})});return o.displayName=`Primitive.${e}`,{...t,[e]:o}},{});function Se(t,e){t&&Fe.flushSync(()=>t.dispatchEvent(e))}import*as J from"react";function U(t){let e=J.useRef(t);return J.useEffect(()=>{e.current=t}),J.useMemo(()=>(...r)=>e.current?.(...r),[])}import*as Be from"react";function We(t,e=globalThis?.document){let r=U(t);Be.useEffect(()=>{let o=n=>{n.key==="Escape"&&r(n)};return e.addEventListener("keydown",o,{capture:!0}),()=>e.removeEventListener("keydown",o,{capture:!0})},[r,e])}import{jsx as Ne}from"react/jsx-runtime";var lo="DismissableLayer",Et="dismissableLayer.update",so="dismissableLayer.pointerDownOutside",uo="dismissableLayer.focusOutside",Ee,Ae=L.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Pt=L.forwardRef((t,e)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:n,onFocusOutside:i,onInteractOutside:c,onDismiss:a,...l}=t,s=L.useContext(Ae),[u,h]=L.useState(null),p=u?.ownerDocument??globalThis?.document,[,g]=L.useState({}),w=I(e,x=>h(x)),d=Array.from(s.layers),[f]=[...s.layersWithOutsidePointerEventsDisabled].slice(-1),v=d.indexOf(f),k=u?d.indexOf(u):-1,C=s.layersWithOutsidePointerEventsDisabled.size>0,M=k>=v,R=go(x=>{let H=x.target,Z=[...s.branches].some(nt=>nt.contains(H));!M||Z||(n?.(x),c?.(x),x.defaultPrevented||a?.())},p),S=fo(x=>{let H=x.target;[...s.branches].some(nt=>nt.contains(H))||(i?.(x),c?.(x),x.defaultPrevented||a?.())},p);return We(x=>{k===s.layers.size-1&&(o?.(x),!x.defaultPrevented&&a&&(x.preventDefault(),a()))},p),L.useEffect(()=>{if(u)return r&&(s.layersWithOutsidePointerEventsDisabled.size===0&&(Ee=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),s.layersWithOutsidePointerEventsDisabled.add(u)),s.layers.add(u),Pe(),()=>{r&&s.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Ee)}},[u,p,r,s]),L.useEffect(()=>()=>{u&&(s.layers.delete(u),s.layersWithOutsidePointerEventsDisabled.delete(u),Pe())},[u,s]),L.useEffect(()=>{let x=()=>g({});return document.addEventListener(Et,x),()=>document.removeEventListener(Et,x)},[]),Ne(N.div,{...l,ref:w,style:{pointerEvents:C?M?"auto":"none":void 0,...t.style},onFocusCapture:_(t.onFocusCapture,S.onFocusCapture),onBlurCapture:_(t.onBlurCapture,S.onBlurCapture),onPointerDownCapture:_(t.onPointerDownCapture,R.onPointerDownCapture)})});Pt.displayName=lo;var ho="DismissableLayerBranch",po=L.forwardRef((t,e)=>{let r=L.useContext(Ae),o=L.useRef(null),n=I(e,o);return L.useEffect(()=>{let i=o.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),Ne(N.div,{...t,ref:n})});po.displayName=ho;function go(t,e=globalThis?.document){let r=U(t),o=L.useRef(!1),n=L.useRef(()=>{});return L.useEffect(()=>{let i=a=>{if(a.target&&!o.current){let s=function(){Oe(so,r,u,{discrete:!0})};var l=s;let u={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",n.current),n.current=s,e.addEventListener("click",n.current,{once:!0})):s()}else e.removeEventListener("click",n.current);o.current=!1},c=window.setTimeout(()=>{e.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(c),e.removeEventListener("pointerdown",i),e.removeEventListener("click",n.current)}},[e,r]),{onPointerDownCapture:()=>o.current=!0}}function fo(t,e=globalThis?.document){let r=U(t),o=L.useRef(!1);return L.useEffect(()=>{let n=i=>{i.target&&!o.current&&Oe(uo,r,{originalEvent:i},{discrete:!1})};return e.addEventListener("focusin",n),()=>e.removeEventListener("focusin",n)},[e,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Pe(){let t=new CustomEvent(Et);document.dispatchEvent(t)}function Oe(t,e,r,{discrete:o}){let n=r.originalEvent.target,i=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});e&&n.addEventListener(t,e,{once:!0}),o?Se(n,i):n.dispatchEvent(i)}import*as T from"react";import{jsx as xo}from"react/jsx-runtime";var Nt="focusScope.autoFocusOnMount",At="focusScope.autoFocusOnUnmount",Te={bubbles:!1,cancelable:!0},vo="FocusScope",Ot=T.forwardRef((t,e)=>{let{loop:r=!1,trapped:o=!1,onMountAutoFocus:n,onUnmountAutoFocus:i,...c}=t,[a,l]=T.useState(null),s=U(n),u=U(i),h=T.useRef(null),p=I(e,d=>l(d)),g=T.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;T.useEffect(()=>{if(o){let k=function(S){if(g.paused||!a)return;let x=S.target;a.contains(x)?h.current=x:G(h.current,{select:!0})},C=function(S){if(g.paused||!a)return;let x=S.relatedTarget;x!==null&&(a.contains(x)||G(h.current,{select:!0}))},M=function(S){if(document.activeElement===document.body)for(let H of S)H.removedNodes.length>0&&G(a)};var d=k,f=C,v=M;document.addEventListener("focusin",k),document.addEventListener("focusout",C);let R=new MutationObserver(M);return a&&R.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",k),document.removeEventListener("focusout",C),R.disconnect()}}},[o,a,g.paused]),T.useEffect(()=>{if(a){De.add(g);let d=document.activeElement;if(!a.contains(d)){let v=new CustomEvent(Nt,Te);a.addEventListener(Nt,s),a.dispatchEvent(v),v.defaultPrevented||(yo(Co(ze(a)),{select:!0}),document.activeElement===d&&G(a))}return()=>{a.removeEventListener(Nt,s),setTimeout(()=>{let v=new CustomEvent(At,Te);a.addEventListener(At,u),a.dispatchEvent(v),v.defaultPrevented||G(d??document.body,{select:!0}),a.removeEventListener(At,u),De.remove(g)},0)}}},[a,s,u,g]);let w=T.useCallback(d=>{if(!r&&!o||g.paused)return;let f=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,v=document.activeElement;if(f&&v){let k=d.currentTarget,[C,M]=ko(k);C&&M?!d.shiftKey&&v===M?(d.preventDefault(),r&&G(C,{select:!0})):d.shiftKey&&v===C&&(d.preventDefault(),r&&G(M,{select:!0})):v===k&&d.preventDefault()}},[r,o,g.paused]);return xo(N.div,{tabIndex:-1,...c,ref:p,onKeyDown:w})});Ot.displayName=vo;function yo(t,{select:e=!1}={}){let r=document.activeElement;for(let o of t)if(G(o,{select:e}),document.activeElement!==r)return}function ko(t){let e=ze(t),r=Ie(e,t),o=Ie(e.reverse(),t);return[r,o]}function ze(t){let e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{let n=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||n?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function Ie(t,e){for(let r of t)if(!mo(r,{upTo:e}))return r}function mo(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function Lo(t){return t instanceof HTMLInputElement&&"select"in t}function G(t,{select:e=!1}={}){if(t&&t.focus){let r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&Lo(t)&&e&&t.select()}}var De=wo();function wo(){let t=[];return{add(e){let r=t[0];e!==r&&r?.pause(),t=_e(t,e),t.unshift(e)},remove(e){t=_e(t,e),t[0]?.resume()}}}function _e(t,e){let r=[...t],o=r.indexOf(e);return o!==-1&&r.splice(o,1),r}function Co(t){return t.filter(e=>e.tagName!=="A")}import*as xt from"react";import bo from"react-dom";import{jsx as Ro}from"react/jsx-runtime";var Mo="Portal",Tt=xt.forwardRef((t,e)=>{let{container:r,...o}=t,[n,i]=xt.useState(!1);V(()=>i(!0),[]);let c=r||n&&globalThis?.document?.body;return c?bo.createPortal(Ro(N.div,{...o,ref:e}),c):null});Tt.displayName=Mo;import*as E from"react";import*as He from"react";function jo(t,e){return He.useReducer((r,o)=>e[r][o]??r,t)}var at=t=>{let{present:e,children:r}=t,o=Fo(e),n=typeof r=="function"?r({present:o.isPresent}):E.Children.only(r),i=I(o.ref,So(n));return typeof r=="function"||o.isPresent?E.cloneElement(n,{ref:i}):null};at.displayName="Presence";function Fo(t){let[e,r]=E.useState(),o=E.useRef(null),n=E.useRef(t),i=E.useRef("none"),c=t?"mounted":"unmounted",[a,l]=jo(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return E.useEffect(()=>{let s=vt(o.current);i.current=a==="mounted"?s:"none"},[a]),V(()=>{let s=o.current,u=n.current;if(u!==t){let p=i.current,g=vt(s);t?l("MOUNT"):g==="none"||s?.display==="none"?l("UNMOUNT"):l(u&&p!==g?"ANIMATION_OUT":"UNMOUNT"),n.current=t}},[t,l]),V(()=>{if(e){let s,u=e.ownerDocument.defaultView??window,h=g=>{let d=vt(o.current).includes(CSS.escape(g.animationName));if(g.target===e&&d&&(l("ANIMATION_END"),!n.current)){let f=e.style.animationFillMode;e.style.animationFillMode="forwards",s=u.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=f)})}},p=g=>{g.target===e&&(i.current=vt(o.current))};return e.addEventListener("animationstart",p),e.addEventListener("animationcancel",h),e.addEventListener("animationend",h),()=>{u.clearTimeout(s),e.removeEventListener("animationstart",p),e.removeEventListener("animationcancel",h),e.removeEventListener("animationend",h)}}else l("ANIMATION_END")},[e,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:E.useCallback(s=>{o.current=s?getComputedStyle(s):null,r(s)},[])}}function vt(t){return t?.animationName||"none"}function So(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}import*as Ue from"react";var It=0;function Ge(){Ue.useEffect(()=>{let t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??Ve()),document.body.insertAdjacentElement("beforeend",t[1]??Ve()),It++,()=>{It===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),It--}},[])}function Ve(){let t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var P=function(){return P=Object.assign||function(e){for(var r,o=1,n=arguments.length;o<n;o++){r=arguments[o];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},P.apply(this,arguments)};function yt(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,o=Object.getOwnPropertySymbols(t);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(t,o[n])&&(r[o[n]]=t[o[n]]);return r}function Ke(t,e,r){if(r||arguments.length===2)for(var o=0,n=e.length,i;o<n;o++)(i||!(o in e))&&(i||(i=Array.prototype.slice.call(e,0,o)),i[o]=e[o]);return t.concat(i||Array.prototype.slice.call(e))}import*as Ct from"react";import*as W from"react";var K="right-scroll-bar-position",$="width-before-scroll-bar",Dt="with-scroll-bars-hidden",_t="--removed-body-scroll-bar-size";function kt(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}import{useState as Bo}from"react";function $e(t,e){var r=Bo(function(){return{value:t,callback:e,facade:{get current(){return r.value},set current(o){var n=r.value;n!==o&&(r.value=o,r.callback(o,n))}}}})[0];return r.callback=e,r.facade}import*as mt from"react";var Wo=typeof window<"u"?mt.useLayoutEffect:mt.useEffect,Ye=new WeakMap;function zt(t,e){var r=$e(e||null,function(o){return t.forEach(function(n){return kt(n,o)})});return Wo(function(){var o=Ye.get(r);if(o){var n=new Set(o),i=new Set(t),c=r.current;n.forEach(function(a){i.has(a)||kt(a,null)}),i.forEach(function(a){n.has(a)||kt(a,c)})}Ye.set(r,t)},[t]),r}function Eo(t){return t}function Po(t,e){e===void 0&&(e=Eo);var r=[],o=!1,n={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:t},useMedium:function(i){var c=e(i,o);return r.push(c),function(){r=r.filter(function(a){return a!==c})}},assignSyncMedium:function(i){for(o=!0;r.length;){var c=r;r=[],c.forEach(i)}r={push:function(a){return i(a)},filter:function(){return r}}},assignMedium:function(i){o=!0;var c=[];if(r.length){var a=r;r=[],a.forEach(i),c=r}var l=function(){var u=c;c=[],u.forEach(i)},s=function(){return Promise.resolve().then(l)};s(),r={push:function(u){c.push(u),s()},filter:function(u){return c=c.filter(u),r}}}};return n}function Ht(t){t===void 0&&(t={});var e=Po(null);return e.options=P({async:!0,ssr:!1},t),e}import*as Xe from"react";var qe=function(t){var e=t.sideCar,r=yt(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=e.read();if(!o)throw new Error("Sidecar medium not found");return Xe.createElement(o,P({},r))};qe.isSideCarExport=!0;function Vt(t,e){return t.useMedium(e),qe}var Lt=Ht();var Ut=function(){},ct=W.forwardRef(function(t,e){var r=W.useRef(null),o=W.useState({onScrollCapture:Ut,onWheelCapture:Ut,onTouchMoveCapture:Ut}),n=o[0],i=o[1],c=t.forwardProps,a=t.children,l=t.className,s=t.removeScrollBar,u=t.enabled,h=t.shards,p=t.sideCar,g=t.noRelative,w=t.noIsolation,d=t.inert,f=t.allowPinchZoom,v=t.as,k=v===void 0?"div":v,C=t.gapMode,M=yt(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=p,S=zt([r,e]),x=P(P({},M),n);return W.createElement(W.Fragment,null,u&&W.createElement(R,{sideCar:Lt,removeScrollBar:s,shards:h,noRelative:g,noIsolation:w,inert:d,setCallbacks:i,allowPinchZoom:!!f,lockRef:r,gapMode:C}),c?W.cloneElement(W.Children.only(a),P(P({},x),{ref:S})):W.createElement(k,P({},x,{className:l,ref:S}),a))});ct.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ct.classNames={fullWidth:$,zeroRight:K};import*as m from"react";import*as et from"react";import*as Je from"react";var Ze;var Qe=function(){if(Ze)return Ze;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function No(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=Qe();return e&&t.setAttribute("nonce",e),t}function Ao(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function Oo(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var Gt=function(){var t=0,e=null;return{add:function(r){t==0&&(e=No())&&(Ao(e,r),Oo(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}};var Kt=function(){var t=Gt();return function(e,r){Je.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&r])}};var lt=function(){var t=Kt(),e=function(r){var o=r.styles,n=r.dynamic;return t(o,n),null};return e};var To={left:0,top:0,right:0,gap:0},$t=function(t){return parseInt(t||"",10)||0},Io=function(t){var e=window.getComputedStyle(document.body),r=e[t==="padding"?"paddingLeft":"marginLeft"],o=e[t==="padding"?"paddingTop":"marginTop"],n=e[t==="padding"?"paddingRight":"marginRight"];return[$t(r),$t(o),$t(n)]},Yt=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return To;var e=Io(t),r=document.documentElement.clientWidth,o=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,o-r+e[2]-e[0])}};var Do=lt(),tt="data-scroll-locked",_o=function(t,e,r,o){var n=t.left,i=t.top,c=t.right,a=t.gap;return r===void 0&&(r="margin"),`
|
|
1
|
+
import{useState as Ci}from"react";import"react";import{cva as Gr}from"class-variance-authority";import{NavigationMenu as nt}from"radix-ui";import{clsx as Vr}from"clsx";import{twMerge as Ur}from"tailwind-merge";function B(...t){return Ur(Vr(t))}import{ChevronDownIcon as Yi}from"lucide-react";import{jsx as Q,jsxs as $r}from"react/jsx-runtime";function pe({className:t,children:e,viewport:r=!0,...o}){return $r(nt.Root,{"data-slot":"navigation-menu","data-viewport":r,className:B("kui:group/navigation-menu kui:relative kui:flex kui:max-w-max kui:flex-1 kui:items-center kui:justify-center",t),...o,children:[e,r&&Q(Kr,{})]})}function ge({className:t,...e}){return Q(nt.List,{"data-slot":"navigation-menu-list",className:B("kui:group kui:flex kui:flex-1 kui:list-none kui:items-center kui:justify-center kui:gap-0",t),...e})}function fe({className:t,...e}){return Q(nt.Item,{"data-slot":"navigation-menu-item",className:B("kui:relative",t),...e})}var ke=Gr("kui:group/navigation-menu-trigger kui:inline-flex kui:h-9 kui:w-max kui:items-center kui:justify-center kui:rounded-lg kui:bg-background kui:px-2.5 kui:py-1.5 kui:text-sm kui:font-medium kui:transition-all kui:outline-none kui:hover:bg-muted kui:focus:bg-muted kui:focus-visible:ring-3 kui:focus-visible:ring-ring/50 kui:focus-visible:outline-1 kui:disabled:pointer-events-none kui:disabled:opacity-50 kui:data-popup-open:bg-muted/50 kui:data-popup-open:hover:bg-muted kui:data-open:bg-muted/50 kui:data-open:hover:bg-muted kui:data-open:focus:bg-muted");function Kr({className:t,...e}){return Q("div",{className:B("kui:absolute kui:top-full kui:left-0 kui:isolate kui:z-50 kui:flex kui:justify-center"),children:Q(nt.Viewport,{"data-slot":"navigation-menu-viewport",className:B("kui:origin-top-center kui:relative kui:mt-1.5 kui:h-(--radix-navigation-menu-viewport-height) kui:w-full kui:overflow-hidden kui:rounded-lg kui:bg-popover kui:text-popover-foreground kui:shadow kui:ring-1 kui:ring-foreground/10 kui:duration-100 kui:md:w-(--radix-navigation-menu-viewport-width) kui:data-open:animate-in kui:data-open:zoom-in-90 kui:data-closed:animate-out kui:data-closed:zoom-out-90",t),...e})})}function xe({className:t,...e}){return Q(nt.Link,{"data-slot":"navigation-menu-link",className:B("kui:flex kui:items-center kui:gap-2 kui:rounded-lg kui:p-2 kui:text-sm kui:transition-all kui:outline-none kui:hover:bg-muted kui:focus:bg-muted kui:focus-visible:ring-3 kui:focus-visible:ring-ring/50 kui:focus-visible:outline-1 kui:in-data-[slot=navigation-menu-content]:rounded-md kui:data-active:bg-muted/50 kui:data-active:hover:bg-muted kui:data-active:focus:bg-muted kui:[&_svg:not([class*='size-']):not([class*='h-']):not([class*='w-'])]:size-4",t),...e})}import"react";import{cva as Yr}from"class-variance-authority";import{Slot as Xr}from"radix-ui";import{jsx as Zr}from"react/jsx-runtime";var qr=Yr("kui:group/button kui:shrink-0 kui:items-center kui:justify-center kui:rounded-lg kui:border kui:border-transparent kui:bg-clip-padding kui:text-sm kui:font-medium kui:whitespace-nowrap kui:transition-all kui:outline-none kui:select-none kui:focus-visible:border-ring kui:focus-visible:ring-3 kui:focus-visible:ring-ring/50 kui:active:translate-y-px kui:disabled:pointer-events-none kui:disabled:opacity-50 kui:aria-invalid:border-destructive kui:aria-invalid:ring-3 kui:aria-invalid:ring-destructive/20 kui:dark:aria-invalid:border-destructive/50 kui:dark:aria-invalid:ring-destructive/40 kui:[&_svg]:pointer-events-none kui:[&_svg]:shrink-0 kui:[&_svg:not([class*='size-'])]:size-4",{variants:{variant:{default:"kui:bg-primary kui:text-primary-foreground kui:[a]:hover:bg-primary/80",outline:"kui:border-border kui:bg-background kui:hover:bg-muted kui:hover:text-foreground kui:aria-expanded:bg-muted kui:aria-expanded:text-foreground kui:dark:border-input kui:dark:bg-input/30 kui:dark:hover:bg-input/50",secondary:"kui:bg-secondary kui:text-secondary-foreground kui:hover:bg-secondary/80 kui:aria-expanded:bg-secondary kui:aria-expanded:text-secondary-foreground",ghost:"kui:hover:bg-muted kui:hover:text-foreground kui:aria-expanded:bg-muted kui:aria-expanded:text-foreground kui:dark:hover:bg-muted/50",destructive:"kui:bg-destructive/10 kui:text-destructive kui:hover:bg-destructive/20 kui:focus-visible:border-destructive/40 kui:focus-visible:ring-destructive/20 kui:dark:bg-destructive/20 kui:dark:hover:bg-destructive/30 kui:dark:focus-visible:ring-destructive/40",link:"kui:text-primary kui:underline-offset-4 kui:hover:underline"},size:{default:"kui:h-8 kui:gap-1.5 kui:px-2.5 kui:has-data-[icon=inline-end]:pr-2 kui:has-data-[icon=inline-start]:pl-2",xs:"kui:h-6 kui:gap-1 kui:rounded-[min(var(--radius-md),10px)] kui:px-2 kui:text-xs kui:in-data-[slot=button-group]:rounded-lg kui:has-data-[icon=inline-end]:pr-1.5 kui:has-data-[icon=inline-start]:pl-1.5 kui:[&_svg:not([class*='size-'])]:size-3",sm:"kui:h-7 kui:gap-1 kui:rounded-[min(var(--radius-md),12px)] kui:px-2.5 kui:text-[0.8rem] kui:in-data-[slot=button-group]:rounded-lg kui:has-data-[icon=inline-end]:pr-1.5 kui:has-data-[icon=inline-start]:pl-1.5 kui:[&_svg:not([class*='size-'])]:size-3.5",lg:"kui:h-9 kui:gap-1.5 kui:px-2.5 kui:has-data-[icon=inline-end]:pr-3 kui:has-data-[icon=inline-start]:pl-3",icon:"kui:size-8","icon-xs":"kui:size-6 kui:rounded-[min(var(--radius-md),10px)] kui:in-data-[slot=button-group]:rounded-lg kui:[&_svg:not([class*='size-'])]:size-3","icon-sm":"kui:size-7 kui:rounded-[min(var(--radius-md),12px)] kui:in-data-[slot=button-group]:rounded-lg","icon-lg":"kui:size-9"}},defaultVariants:{variant:"default",size:"default"}});function ve({className:t,variant:e="default",size:r="default",asChild:o=!1,...i}){let n=o?Xr.Root:"button";return Zr(n,{"data-slot":"button","data-variant":e,"data-size":r,className:B(qr({variant:e,size:r,className:t})),...i})}import*as ut from"react";import*as v from"react";var on=!!(typeof window<"u"&&window.document&&window.document.createElement);function _(t,e,{checkForDefaultPrevented:r=!0}={}){return function(i){if(t?.(i),r===!1||!i.defaultPrevented)return e?.(i)}}import*as me from"react";function ye(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function St(...t){return e=>{let r=!1,o=t.map(i=>{let n=ye(i,e);return!r&&typeof n=="function"&&(r=!0),n});if(r)return()=>{for(let i=0;i<o.length;i++){let n=o[i];typeof n=="function"?n():ye(t[i],null)}}}}function I(...t){return me.useCallback(St(...t),t)}import*as A from"react";import{jsx as Le}from"react/jsx-runtime";function we(t,e){let r=A.createContext(e),o=n=>{let{children:c,...a}=n,l=A.useMemo(()=>a,Object.values(a));return Le(r.Provider,{value:l,children:c})};o.displayName=t+"Provider";function i(n){let c=A.useContext(r);if(c)return c;if(e!==void 0)return e;throw new Error(`\`${n}\` must be used within \`${t}\``)}return[o,i]}function Ce(t,e=[]){let r=[];function o(n,c){let a=A.createContext(c),l=r.length;r=[...r,c];let s=h=>{let{scope:p,children:g,...w}=h,u=p?.[t]?.[l]||a,f=A.useMemo(()=>w,Object.values(w));return Le(u.Provider,{value:f,children:g})};s.displayName=n+"Provider";function d(h,p){let g=p?.[t]?.[l]||a,w=A.useContext(g);if(w)return w;if(c!==void 0)return c;throw new Error(`\`${h}\` must be used within \`${n}\``)}return[s,d]}let i=()=>{let n=r.map(c=>A.createContext(c));return function(a){let l=a?.[t]||n;return A.useMemo(()=>({[`__scope${t}`]:{...a,[t]:l}}),[a,l])}};return i.scopeName=t,[o,Qr(i,...e)]}function Qr(...t){let e=t[0];if(t.length===1)return e;let r=()=>{let o=t.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(n){let c=o.reduce((a,{useScope:l,scopeName:s})=>{let h=l(n)[`__scope${s}`];return{...a,...h}},{});return A.useMemo(()=>({[`__scope${e.scopeName}`]:c}),[c])}};return r.scopeName=e.scopeName,r}import*as Wt from"react";import*as be from"react";var V=globalThis?.document?be.useLayoutEffect:()=>{};var Jr=Wt[" useId ".trim().toString()]||(()=>{}),to=0;function pt(t){let[e,r]=Wt.useState(Jr());return V(()=>{t||r(o=>o??String(to++))},[t]),t||(e?`radix-${e}`:"")}import*as O from"react";import*as gt from"react";var eo=O[" useInsertionEffect ".trim().toString()]||V;function Re({prop:t,defaultProp:e,onChange:r=()=>{},caller:o}){let[i,n,c]=ro({defaultProp:e,onChange:r}),a=t!==void 0,l=a?t:i;{let d=O.useRef(t!==void 0);O.useEffect(()=>{let h=d.current;h!==a&&console.warn(`${o} is changing from ${h?"controlled":"uncontrolled"} to ${a?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),d.current=a},[a,o])}let s=O.useCallback(d=>{if(a){let h=oo(d)?d(t):d;h!==t&&c.current?.(h)}else n(d)},[a,t,n,c]);return[l,s]}function ro({defaultProp:t,onChange:e}){let[r,o]=O.useState(t),i=O.useRef(r),n=O.useRef(e);return eo(()=>{n.current=e},[e]),O.useEffect(()=>{i.current!==r&&(n.current?.(r),i.current=r)},[r,i]),[r,o,n]}function oo(t){return typeof t=="function"}import*as L from"react";import*as je from"react";import*as Fe from"react-dom";import*as j from"react";import{Fragment as kn,jsx as Me}from"react/jsx-runtime";function ft(t){let e=io(t),r=j.forwardRef((o,i)=>{let{children:n,...c}=o,a=j.Children.toArray(n),l=a.find(ao);if(l){let s=l.props.children,d=a.map(h=>h===l?j.Children.count(s)>1?j.Children.only(null):j.isValidElement(s)?s.props.children:null:h);return Me(e,{...c,ref:i,children:j.isValidElement(s)?j.cloneElement(s,void 0,d):null})}return Me(e,{...c,ref:i,children:n})});return r.displayName=`${t}.Slot`,r}function io(t){let e=j.forwardRef((r,o)=>{let{children:i,...n}=r;if(j.isValidElement(i)){let c=lo(i),a=co(n,i.props);return i.type!==j.Fragment&&(a.ref=o?St(o,c):c),j.cloneElement(i,a)}return j.Children.count(i)>1?j.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var no=Symbol("radix.slottable");function ao(t){return j.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===no}function co(t,e){let r={...e};for(let o in e){let i=t[o],n=e[o];/^on[A-Z]/.test(o)?i&&n?r[o]=(...a)=>{let l=n(...a);return i(...a),l}:i&&(r[o]=i):o==="style"?r[o]={...i,...n}:o==="className"&&(r[o]=[i,n].filter(Boolean).join(" "))}return{...t,...r}}function lo(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}import{jsx as so}from"react/jsx-runtime";var uo=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],N=uo.reduce((t,e)=>{let r=ft(`Primitive.${e}`),o=je.forwardRef((i,n)=>{let{asChild:c,...a}=i,l=c?r:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),so(l,{...a,ref:n})});return o.displayName=`Primitive.${e}`,{...t,[e]:o}},{});function Be(t,e){t&&Fe.flushSync(()=>t.dispatchEvent(e))}import*as J from"react";function U(t){let e=J.useRef(t);return J.useEffect(()=>{e.current=t}),J.useMemo(()=>(...r)=>e.current?.(...r),[])}import*as Se from"react";function We(t,e=globalThis?.document){let r=U(t);Se.useEffect(()=>{let o=i=>{i.key==="Escape"&&r(i)};return e.addEventListener("keydown",o,{capture:!0}),()=>e.removeEventListener("keydown",o,{capture:!0})},[r,e])}import{jsx as Ne}from"react/jsx-runtime";var ho="DismissableLayer",Et="dismissableLayer.update",po="dismissableLayer.pointerDownOutside",go="dismissableLayer.focusOutside",Ee,Ae=L.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Pt=L.forwardRef((t,e)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:i,onFocusOutside:n,onInteractOutside:c,onDismiss:a,...l}=t,s=L.useContext(Ae),[d,h]=L.useState(null),p=d?.ownerDocument??globalThis?.document,[,g]=L.useState({}),w=I(e,k=>h(k)),u=Array.from(s.layers),[f]=[...s.layersWithOutsidePointerEventsDisabled].slice(-1),x=u.indexOf(f),y=d?u.indexOf(d):-1,C=s.layersWithOutsidePointerEventsDisabled.size>0,M=y>=x,R=xo(k=>{let H=k.target,Z=[...s.branches].some(it=>it.contains(H));!M||Z||(i?.(k),c?.(k),k.defaultPrevented||a?.())},p),S=vo(k=>{let H=k.target;[...s.branches].some(it=>it.contains(H))||(n?.(k),c?.(k),k.defaultPrevented||a?.())},p);return We(k=>{y===s.layers.size-1&&(o?.(k),!k.defaultPrevented&&a&&(k.preventDefault(),a()))},p),L.useEffect(()=>{if(d)return r&&(s.layersWithOutsidePointerEventsDisabled.size===0&&(Ee=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),s.layersWithOutsidePointerEventsDisabled.add(d)),s.layers.add(d),Pe(),()=>{r&&s.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Ee)}},[d,p,r,s]),L.useEffect(()=>()=>{d&&(s.layers.delete(d),s.layersWithOutsidePointerEventsDisabled.delete(d),Pe())},[d,s]),L.useEffect(()=>{let k=()=>g({});return document.addEventListener(Et,k),()=>document.removeEventListener(Et,k)},[]),Ne(N.div,{...l,ref:w,style:{pointerEvents:C?M?"auto":"none":void 0,...t.style},onFocusCapture:_(t.onFocusCapture,S.onFocusCapture),onBlurCapture:_(t.onBlurCapture,S.onBlurCapture),onPointerDownCapture:_(t.onPointerDownCapture,R.onPointerDownCapture)})});Pt.displayName=ho;var fo="DismissableLayerBranch",ko=L.forwardRef((t,e)=>{let r=L.useContext(Ae),o=L.useRef(null),i=I(e,o);return L.useEffect(()=>{let n=o.current;if(n)return r.branches.add(n),()=>{r.branches.delete(n)}},[r.branches]),Ne(N.div,{...t,ref:i})});ko.displayName=fo;function xo(t,e=globalThis?.document){let r=U(t),o=L.useRef(!1),i=L.useRef(()=>{});return L.useEffect(()=>{let n=a=>{if(a.target&&!o.current){let s=function(){Oe(po,r,d,{discrete:!0})};var l=s;let d={originalEvent:a};a.pointerType==="touch"?(e.removeEventListener("click",i.current),i.current=s,e.addEventListener("click",i.current,{once:!0})):s()}else e.removeEventListener("click",i.current);o.current=!1},c=window.setTimeout(()=>{e.addEventListener("pointerdown",n)},0);return()=>{window.clearTimeout(c),e.removeEventListener("pointerdown",n),e.removeEventListener("click",i.current)}},[e,r]),{onPointerDownCapture:()=>o.current=!0}}function vo(t,e=globalThis?.document){let r=U(t),o=L.useRef(!1);return L.useEffect(()=>{let i=n=>{n.target&&!o.current&&Oe(go,r,{originalEvent:n},{discrete:!1})};return e.addEventListener("focusin",i),()=>e.removeEventListener("focusin",i)},[e,r]),{onFocusCapture:()=>o.current=!0,onBlurCapture:()=>o.current=!1}}function Pe(){let t=new CustomEvent(Et);document.dispatchEvent(t)}function Oe(t,e,r,{discrete:o}){let i=r.originalEvent.target,n=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});e&&i.addEventListener(t,e,{once:!0}),o?Be(i,n):i.dispatchEvent(n)}import*as T from"react";import{jsx as yo}from"react/jsx-runtime";var Nt="focusScope.autoFocusOnMount",At="focusScope.autoFocusOnUnmount",Te={bubbles:!1,cancelable:!0},mo="FocusScope",Ot=T.forwardRef((t,e)=>{let{loop:r=!1,trapped:o=!1,onMountAutoFocus:i,onUnmountAutoFocus:n,...c}=t,[a,l]=T.useState(null),s=U(i),d=U(n),h=T.useRef(null),p=I(e,u=>l(u)),g=T.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;T.useEffect(()=>{if(o){let y=function(S){if(g.paused||!a)return;let k=S.target;a.contains(k)?h.current=k:G(h.current,{select:!0})},C=function(S){if(g.paused||!a)return;let k=S.relatedTarget;k!==null&&(a.contains(k)||G(h.current,{select:!0}))},M=function(S){if(document.activeElement===document.body)for(let H of S)H.removedNodes.length>0&&G(a)};var u=y,f=C,x=M;document.addEventListener("focusin",y),document.addEventListener("focusout",C);let R=new MutationObserver(M);return a&&R.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",y),document.removeEventListener("focusout",C),R.disconnect()}}},[o,a,g.paused]),T.useEffect(()=>{if(a){De.add(g);let u=document.activeElement;if(!a.contains(u)){let x=new CustomEvent(Nt,Te);a.addEventListener(Nt,s),a.dispatchEvent(x),x.defaultPrevented||(Lo(Mo(ze(a)),{select:!0}),document.activeElement===u&&G(a))}return()=>{a.removeEventListener(Nt,s),setTimeout(()=>{let x=new CustomEvent(At,Te);a.addEventListener(At,d),a.dispatchEvent(x),x.defaultPrevented||G(u??document.body,{select:!0}),a.removeEventListener(At,d),De.remove(g)},0)}}},[a,s,d,g]);let w=T.useCallback(u=>{if(!r&&!o||g.paused)return;let f=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,x=document.activeElement;if(f&&x){let y=u.currentTarget,[C,M]=wo(y);C&&M?!u.shiftKey&&x===M?(u.preventDefault(),r&&G(C,{select:!0})):u.shiftKey&&x===C&&(u.preventDefault(),r&&G(M,{select:!0})):x===y&&u.preventDefault()}},[r,o,g.paused]);return yo(N.div,{tabIndex:-1,...c,ref:p,onKeyDown:w})});Ot.displayName=mo;function Lo(t,{select:e=!1}={}){let r=document.activeElement;for(let o of t)if(G(o,{select:e}),document.activeElement!==r)return}function wo(t){let e=ze(t),r=Ie(e,t),o=Ie(e.reverse(),t);return[r,o]}function ze(t){let e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:o=>{let i=o.tagName==="INPUT"&&o.type==="hidden";return o.disabled||o.hidden||i?NodeFilter.FILTER_SKIP:o.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function Ie(t,e){for(let r of t)if(!Co(r,{upTo:e}))return r}function Co(t,{upTo:e}){if(getComputedStyle(t).visibility==="hidden")return!0;for(;t;){if(e!==void 0&&t===e)return!1;if(getComputedStyle(t).display==="none")return!0;t=t.parentElement}return!1}function bo(t){return t instanceof HTMLInputElement&&"select"in t}function G(t,{select:e=!1}={}){if(t&&t.focus){let r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&bo(t)&&e&&t.select()}}var De=Ro();function Ro(){let t=[];return{add(e){let r=t[0];e!==r&&r?.pause(),t=_e(t,e),t.unshift(e)},remove(e){t=_e(t,e),t[0]?.resume()}}}function _e(t,e){let r=[...t],o=r.indexOf(e);return o!==-1&&r.splice(o,1),r}function Mo(t){return t.filter(e=>e.tagName!=="A")}import*as kt from"react";import jo from"react-dom";import{jsx as Fo}from"react/jsx-runtime";var Bo="Portal",Tt=kt.forwardRef((t,e)=>{let{container:r,...o}=t,[i,n]=kt.useState(!1);V(()=>n(!0),[]);let c=r||i&&globalThis?.document?.body;return c?jo.createPortal(Fo(N.div,{...o,ref:e}),c):null});Tt.displayName=Bo;import*as E from"react";import*as He from"react";function So(t,e){return He.useReducer((r,o)=>e[r][o]??r,t)}var at=t=>{let{present:e,children:r}=t,o=Wo(e),i=typeof r=="function"?r({present:o.isPresent}):E.Children.only(r),n=I(o.ref,Eo(i));return typeof r=="function"||o.isPresent?E.cloneElement(i,{ref:n}):null};at.displayName="Presence";function Wo(t){let[e,r]=E.useState(),o=E.useRef(null),i=E.useRef(t),n=E.useRef("none"),c=t?"mounted":"unmounted",[a,l]=So(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return E.useEffect(()=>{let s=xt(o.current);n.current=a==="mounted"?s:"none"},[a]),V(()=>{let s=o.current,d=i.current;if(d!==t){let p=n.current,g=xt(s);t?l("MOUNT"):g==="none"||s?.display==="none"?l("UNMOUNT"):l(d&&p!==g?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,l]),V(()=>{if(e){let s,d=e.ownerDocument.defaultView??window,h=g=>{let u=xt(o.current).includes(CSS.escape(g.animationName));if(g.target===e&&u&&(l("ANIMATION_END"),!i.current)){let f=e.style.animationFillMode;e.style.animationFillMode="forwards",s=d.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=f)})}},p=g=>{g.target===e&&(n.current=xt(o.current))};return e.addEventListener("animationstart",p),e.addEventListener("animationcancel",h),e.addEventListener("animationend",h),()=>{d.clearTimeout(s),e.removeEventListener("animationstart",p),e.removeEventListener("animationcancel",h),e.removeEventListener("animationend",h)}}else l("ANIMATION_END")},[e,l]),{isPresent:["mounted","unmountSuspended"].includes(a),ref:E.useCallback(s=>{o.current=s?getComputedStyle(s):null,r(s)},[])}}function xt(t){return t?.animationName||"none"}function Eo(t){let e=Object.getOwnPropertyDescriptor(t.props,"ref")?.get,r=e&&"isReactWarning"in e&&e.isReactWarning;return r?t.ref:(e=Object.getOwnPropertyDescriptor(t,"ref")?.get,r=e&&"isReactWarning"in e&&e.isReactWarning,r?t.props.ref:t.props.ref||t.ref)}import*as Ue from"react";var It=0;function Ge(){Ue.useEffect(()=>{let t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??Ve()),document.body.insertAdjacentElement("beforeend",t[1]??Ve()),It++,()=>{It===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),It--}},[])}function Ve(){let t=document.createElement("span");return t.setAttribute("data-radix-focus-guard",""),t.tabIndex=0,t.style.outline="none",t.style.opacity="0",t.style.position="fixed",t.style.pointerEvents="none",t}var P=function(){return P=Object.assign||function(e){for(var r,o=1,i=arguments.length;o<i;o++){r=arguments[o];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},P.apply(this,arguments)};function vt(t,e){var r={};for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.indexOf(o)<0&&(r[o]=t[o]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,o=Object.getOwnPropertySymbols(t);i<o.length;i++)e.indexOf(o[i])<0&&Object.prototype.propertyIsEnumerable.call(t,o[i])&&(r[o[i]]=t[o[i]]);return r}function Ke(t,e,r){if(r||arguments.length===2)for(var o=0,i=e.length,n;o<i;o++)(n||!(o in e))&&(n||(n=Array.prototype.slice.call(e,0,o)),n[o]=e[o]);return t.concat(n||Array.prototype.slice.call(e))}import*as Ct from"react";import*as W from"react";var K="right-scroll-bar-position",$="width-before-scroll-bar",Dt="with-scroll-bars-hidden",_t="--removed-body-scroll-bar-size";function yt(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}import{useState as Po}from"react";function $e(t,e){var r=Po(function(){return{value:t,callback:e,facade:{get current(){return r.value},set current(o){var i=r.value;i!==o&&(r.value=o,r.callback(o,i))}}}})[0];return r.callback=e,r.facade}import*as mt from"react";var No=typeof window<"u"?mt.useLayoutEffect:mt.useEffect,Ye=new WeakMap;function zt(t,e){var r=$e(e||null,function(o){return t.forEach(function(i){return yt(i,o)})});return No(function(){var o=Ye.get(r);if(o){var i=new Set(o),n=new Set(t),c=r.current;i.forEach(function(a){n.has(a)||yt(a,null)}),n.forEach(function(a){i.has(a)||yt(a,c)})}Ye.set(r,t)},[t]),r}function Ao(t){return t}function Oo(t,e){e===void 0&&(e=Ao);var r=[],o=!1,i={read:function(){if(o)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:t},useMedium:function(n){var c=e(n,o);return r.push(c),function(){r=r.filter(function(a){return a!==c})}},assignSyncMedium:function(n){for(o=!0;r.length;){var c=r;r=[],c.forEach(n)}r={push:function(a){return n(a)},filter:function(){return r}}},assignMedium:function(n){o=!0;var c=[];if(r.length){var a=r;r=[],a.forEach(n),c=r}var l=function(){var d=c;c=[],d.forEach(n)},s=function(){return Promise.resolve().then(l)};s(),r={push:function(d){c.push(d),s()},filter:function(d){return c=c.filter(d),r}}}};return i}function Ht(t){t===void 0&&(t={});var e=Oo(null);return e.options=P({async:!0,ssr:!1},t),e}import*as Xe from"react";var qe=function(t){var e=t.sideCar,r=vt(t,["sideCar"]);if(!e)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=e.read();if(!o)throw new Error("Sidecar medium not found");return Xe.createElement(o,P({},r))};qe.isSideCarExport=!0;function Vt(t,e){return t.useMedium(e),qe}var Lt=Ht();var Ut=function(){},ct=W.forwardRef(function(t,e){var r=W.useRef(null),o=W.useState({onScrollCapture:Ut,onWheelCapture:Ut,onTouchMoveCapture:Ut}),i=o[0],n=o[1],c=t.forwardProps,a=t.children,l=t.className,s=t.removeScrollBar,d=t.enabled,h=t.shards,p=t.sideCar,g=t.noRelative,w=t.noIsolation,u=t.inert,f=t.allowPinchZoom,x=t.as,y=x===void 0?"div":x,C=t.gapMode,M=vt(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=p,S=zt([r,e]),k=P(P({},M),i);return W.createElement(W.Fragment,null,d&&W.createElement(R,{sideCar:Lt,removeScrollBar:s,shards:h,noRelative:g,noIsolation:w,inert:u,setCallbacks:n,allowPinchZoom:!!f,lockRef:r,gapMode:C}),c?W.cloneElement(W.Children.only(a),P(P({},k),{ref:S})):W.createElement(y,P({},k,{className:l,ref:S}),a))});ct.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};ct.classNames={fullWidth:$,zeroRight:K};import*as m from"react";import*as et from"react";import*as Je from"react";var Ze;var Qe=function(){if(Ze)return Ze;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function To(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=Qe();return e&&t.setAttribute("nonce",e),t}function Io(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function Do(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var Gt=function(){var t=0,e=null;return{add:function(r){t==0&&(e=To())&&(Io(e,r),Do(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}};var Kt=function(){var t=Gt();return function(e,r){Je.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&r])}};var lt=function(){var t=Kt(),e=function(r){var o=r.styles,i=r.dynamic;return t(o,i),null};return e};var _o={left:0,top:0,right:0,gap:0},$t=function(t){return parseInt(t||"",10)||0},zo=function(t){var e=window.getComputedStyle(document.body),r=e[t==="padding"?"paddingLeft":"marginLeft"],o=e[t==="padding"?"paddingTop":"marginTop"],i=e[t==="padding"?"paddingRight":"marginRight"];return[$t(r),$t(o),$t(i)]},Yt=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return _o;var e=zo(t),r=document.documentElement.clientWidth,o=window.innerWidth;return{left:e[0],top:e[1],right:e[2],gap:Math.max(0,o-r+e[2]-e[0])}};var Ho=lt(),tt="data-scroll-locked",Vo=function(t,e,r,o){var i=t.left,n=t.top,c=t.right,a=t.gap;return r===void 0&&(r="margin"),`
|
|
2
2
|
.`.concat(Dt,` {
|
|
3
3
|
overflow: hidden `).concat(o,`;
|
|
4
4
|
padding-right: `).concat(a,"px ").concat(o,`;
|
|
@@ -7,8 +7,8 @@ import{useState as Ln}from"react";import"react";import{cva as Hr}from"class-vari
|
|
|
7
7
|
overflow: hidden `).concat(o,`;
|
|
8
8
|
overscroll-behavior: contain;
|
|
9
9
|
`).concat([e&&"position: relative ".concat(o,";"),r==="margin"&&`
|
|
10
|
-
padding-left: `.concat(
|
|
11
|
-
padding-top: `).concat(
|
|
10
|
+
padding-left: `.concat(i,`px;
|
|
11
|
+
padding-top: `).concat(n,`px;
|
|
12
12
|
padding-right: `).concat(c,`px;
|
|
13
13
|
margin-left:0;
|
|
14
14
|
margin-top:0;
|
|
@@ -35,21 +35,21 @@ import{useState as Ln}from"react";import"react";import{cva as Hr}from"class-vari
|
|
|
35
35
|
body[`).concat(tt,`] {
|
|
36
36
|
`).concat(_t,": ").concat(a,`px;
|
|
37
37
|
}
|
|
38
|
-
`)},tr=function(){var t=parseInt(document.body.getAttribute(tt)||"0",10);return isFinite(t)?t:0},
|
|
38
|
+
`)},tr=function(){var t=parseInt(document.body.getAttribute(tt)||"0",10);return isFinite(t)?t:0},Uo=function(){et.useEffect(function(){return document.body.setAttribute(tt,(tr()+1).toString()),function(){var t=tr()-1;t<=0?document.body.removeAttribute(tt):document.body.setAttribute(tt,t.toString())}},[])},Xt=function(t){var e=t.noRelative,r=t.noImportant,o=t.gapMode,i=o===void 0?"margin":o;Uo();var n=et.useMemo(function(){return Yt(i)},[i]);return et.createElement(Ho,{styles:Vo(n,!e,i,r?"":"!important")})};var qt=!1;if(typeof window<"u")try{st=Object.defineProperty({},"passive",{get:function(){return qt=!0,!0}}),window.addEventListener("test",st,st),window.removeEventListener("test",st,st)}catch{qt=!1}var st,Y=qt?{passive:!1}:!1;var Go=function(t){return t.tagName==="TEXTAREA"},er=function(t,e){if(!(t instanceof Element))return!1;var r=window.getComputedStyle(t);return r[e]!=="hidden"&&!(r.overflowY===r.overflowX&&!Go(t)&&r[e]==="visible")},Ko=function(t){return er(t,"overflowY")},$o=function(t){return er(t,"overflowX")},Zt=function(t,e){var r=e.ownerDocument,o=e;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var i=rr(t,o);if(i){var n=or(t,o),c=n[1],a=n[2];if(c>a)return!0}o=o.parentNode}while(o&&o!==r.body);return!1},Yo=function(t){var e=t.scrollTop,r=t.scrollHeight,o=t.clientHeight;return[e,r,o]},Xo=function(t){var e=t.scrollLeft,r=t.scrollWidth,o=t.clientWidth;return[e,r,o]},rr=function(t,e){return t==="v"?Ko(e):$o(e)},or=function(t,e){return t==="v"?Yo(e):Xo(e)},qo=function(t,e){return t==="h"&&e==="rtl"?-1:1},ir=function(t,e,r,o,i){var n=qo(t,window.getComputedStyle(e).direction),c=n*o,a=r.target,l=e.contains(a),s=!1,d=c>0,h=0,p=0;do{if(!a)break;var g=or(t,a),w=g[0],u=g[1],f=g[2],x=u-f-n*w;(w||x)&&rr(t,a)&&(h+=x,p+=w);var y=a.parentNode;a=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!l&&a!==document.body||l&&(e.contains(a)||e===a));return(d&&(i&&Math.abs(h)<1||!i&&c>h)||!d&&(i&&Math.abs(p)<1||!i&&-c>p))&&(s=!0),s};var wt=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},nr=function(t){return[t.deltaX,t.deltaY]},ar=function(t){return t&&"current"in t?t.current:t},Zo=function(t,e){return t[0]===e[0]&&t[1]===e[1]},Qo=function(t){return`
|
|
39
39
|
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|
40
40
|
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|
41
|
-
`)},
|
|
41
|
+
`)},Jo=0,rt=[];function cr(t){var e=m.useRef([]),r=m.useRef([0,0]),o=m.useRef(),i=m.useState(Jo++)[0],n=m.useState(lt)[0],c=m.useRef(t);m.useEffect(function(){c.current=t},[t]),m.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(i));var u=Ke([t.lockRef.current],(t.shards||[]).map(ar),!0).filter(Boolean);return u.forEach(function(f){return f.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),u.forEach(function(f){return f.classList.remove("allow-interactivity-".concat(i))})}}},[t.inert,t.lockRef.current,t.shards]);var a=m.useCallback(function(u,f){if("touches"in u&&u.touches.length===2||u.type==="wheel"&&u.ctrlKey)return!c.current.allowPinchZoom;var x=wt(u),y=r.current,C="deltaX"in u?u.deltaX:y[0]-x[0],M="deltaY"in u?u.deltaY:y[1]-x[1],R,S=u.target,k=Math.abs(C)>Math.abs(M)?"h":"v";if("touches"in u&&k==="h"&&S.type==="range")return!1;var H=window.getSelection(),Z=H&&H.anchorNode,it=Z?Z===S||Z.contains(S):!1;if(it)return!1;var ht=Zt(k,S);if(!ht)return!0;if(ht?R=k:(R=k==="v"?"h":"v",ht=Zt(k,S)),!ht)return!1;if(!o.current&&"changedTouches"in u&&(C||M)&&(o.current=R),!R)return!0;var he=o.current||R;return ir(he,f,u,he==="h"?C:M,!0)},[]),l=m.useCallback(function(u){var f=u;if(!(!rt.length||rt[rt.length-1]!==n)){var x="deltaY"in f?nr(f):wt(f),y=e.current.filter(function(R){return R.name===f.type&&(R.target===f.target||f.target===R.shadowParent)&&Zo(R.delta,x)})[0];if(y&&y.should){f.cancelable&&f.preventDefault();return}if(!y){var C=(c.current.shards||[]).map(ar).filter(Boolean).filter(function(R){return R.contains(f.target)}),M=C.length>0?a(f,C[0]):!c.current.noIsolation;M&&f.cancelable&&f.preventDefault()}}},[]),s=m.useCallback(function(u,f,x,y){var C={name:u,delta:f,target:x,should:y,shadowParent:ti(x)};e.current.push(C),setTimeout(function(){e.current=e.current.filter(function(M){return M!==C})},1)},[]),d=m.useCallback(function(u){r.current=wt(u),o.current=void 0},[]),h=m.useCallback(function(u){s(u.type,nr(u),u.target,a(u,t.lockRef.current))},[]),p=m.useCallback(function(u){s(u.type,wt(u),u.target,a(u,t.lockRef.current))},[]);m.useEffect(function(){return rt.push(n),t.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",l,Y),document.addEventListener("touchmove",l,Y),document.addEventListener("touchstart",d,Y),function(){rt=rt.filter(function(u){return u!==n}),document.removeEventListener("wheel",l,Y),document.removeEventListener("touchmove",l,Y),document.removeEventListener("touchstart",d,Y)}},[]);var g=t.removeScrollBar,w=t.inert;return m.createElement(m.Fragment,null,w?m.createElement(n,{styles:Qo(i)}):null,g?m.createElement(Xt,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function ti(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}var lr=Vt(Lt,cr);var sr=Ct.forwardRef(function(t,e){return Ct.createElement(ct,P({},t,{ref:e,sideCar:lr}))});sr.classNames=ct.classNames;var Qt=sr;var ei=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},ot=new WeakMap,bt=new WeakMap,Rt={},Jt=0,ur=function(t){return t&&(t.host||ur(t.parentNode))},ri=function(t,e){return e.map(function(r){if(t.contains(r))return r;var o=ur(r);return o&&t.contains(o)?o:(console.error("aria-hidden",r,"in not contained inside",t,". Doing nothing"),null)}).filter(function(r){return!!r})},oi=function(t,e,r,o){var i=ri(e,Array.isArray(t)?t:[t]);Rt[r]||(Rt[r]=new WeakMap);var n=Rt[r],c=[],a=new Set,l=new Set(i),s=function(h){!h||a.has(h)||(a.add(h),s(h.parentNode))};i.forEach(s);var d=function(h){!h||l.has(h)||Array.prototype.forEach.call(h.children,function(p){if(a.has(p))d(p);else try{var g=p.getAttribute(o),w=g!==null&&g!=="false",u=(ot.get(p)||0)+1,f=(n.get(p)||0)+1;ot.set(p,u),n.set(p,f),c.push(p),u===1&&w&&bt.set(p,!0),f===1&&p.setAttribute(r,"true"),w||p.setAttribute(o,"true")}catch(x){console.error("aria-hidden: cannot operate on ",p,x)}})};return d(e),a.clear(),Jt++,function(){c.forEach(function(h){var p=ot.get(h)-1,g=n.get(h)-1;ot.set(h,p),n.set(h,g),p||(bt.has(h)||h.removeAttribute(o),bt.delete(h)),g||h.removeAttribute(r)}),Jt--,Jt||(ot=new WeakMap,ot=new WeakMap,bt=new WeakMap,Rt={})}},dr=function(t,e,r){r===void 0&&(r="data-aria-hidden");var o=Array.from(Array.isArray(t)?t:[t]),i=e||ei(t);return i?(o.push.apply(o,Array.from(i.querySelectorAll("[aria-live], script"))),oi(o,i,r,"aria-hidden")):function(){return null}};import{Fragment as hr,jsx as b,jsxs as pr}from"react/jsx-runtime";var jt="Dialog",[gr,kc]=Ce(jt),[ii,D]=gr(jt),fr=t=>{let{__scopeDialog:e,children:r,open:o,defaultOpen:i,onOpenChange:n,modal:c=!0}=t,a=v.useRef(null),l=v.useRef(null),[s,d]=Re({prop:o,defaultProp:i??!1,onChange:n,caller:jt});return b(ii,{scope:e,triggerRef:a,contentRef:l,contentId:pt(),titleId:pt(),descriptionId:pt(),open:s,onOpenChange:d,onOpenToggle:v.useCallback(()=>d(h=>!h),[d]),modal:c,children:r})};fr.displayName=jt;var kr="DialogTrigger",xr=v.forwardRef((t,e)=>{let{__scopeDialog:r,...o}=t,i=D(kr,r),n=I(e,i.triggerRef);return b(N.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":re(i.open),...o,ref:n,onClick:_(t.onClick,i.onOpenToggle)})});xr.displayName=kr;var te="DialogPortal",[ni,vr]=gr(te,{forceMount:void 0}),yr=t=>{let{__scopeDialog:e,forceMount:r,children:o,container:i}=t,n=D(te,e);return b(ni,{scope:e,forceMount:r,children:v.Children.map(o,c=>b(at,{present:r||n.open,children:b(Tt,{asChild:!0,container:i,children:c})}))})};yr.displayName=te;var Mt="DialogOverlay",mr=v.forwardRef((t,e)=>{let r=vr(Mt,t.__scopeDialog),{forceMount:o=r.forceMount,...i}=t,n=D(Mt,t.__scopeDialog);return n.modal?b(at,{present:o||n.open,children:b(ci,{...i,ref:e})}):null});mr.displayName=Mt;var ai=ft("DialogOverlay.RemoveScroll"),ci=v.forwardRef((t,e)=>{let{__scopeDialog:r,...o}=t,i=D(Mt,r);return b(Qt,{as:ai,allowPinchZoom:!0,shards:[i.contentRef],children:b(N.div,{"data-state":re(i.open),...o,ref:e,style:{pointerEvents:"auto",...o.style}})})}),X="DialogContent",Lr=v.forwardRef((t,e)=>{let r=vr(X,t.__scopeDialog),{forceMount:o=r.forceMount,...i}=t,n=D(X,t.__scopeDialog);return b(at,{present:o||n.open,children:n.modal?b(li,{...i,ref:e}):b(si,{...i,ref:e})})});Lr.displayName=X;var li=v.forwardRef((t,e)=>{let r=D(X,t.__scopeDialog),o=v.useRef(null),i=I(e,r.contentRef,o);return v.useEffect(()=>{let n=o.current;if(n)return dr(n)},[]),b(wr,{...t,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:_(t.onCloseAutoFocus,n=>{n.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:_(t.onPointerDownOutside,n=>{let c=n.detail.originalEvent,a=c.button===0&&c.ctrlKey===!0;(c.button===2||a)&&n.preventDefault()}),onFocusOutside:_(t.onFocusOutside,n=>n.preventDefault())})}),si=v.forwardRef((t,e)=>{let r=D(X,t.__scopeDialog),o=v.useRef(!1),i=v.useRef(!1);return b(wr,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:n=>{t.onCloseAutoFocus?.(n),n.defaultPrevented||(o.current||r.triggerRef.current?.focus(),n.preventDefault()),o.current=!1,i.current=!1},onInteractOutside:n=>{t.onInteractOutside?.(n),n.defaultPrevented||(o.current=!0,n.detail.originalEvent.type==="pointerdown"&&(i.current=!0));let c=n.target;r.triggerRef.current?.contains(c)&&n.preventDefault(),n.detail.originalEvent.type==="focusin"&&i.current&&n.preventDefault()}})}),wr=v.forwardRef((t,e)=>{let{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:n,...c}=t,a=D(X,r),l=v.useRef(null),s=I(e,l);return Ge(),pr(hr,{children:[b(Ot,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:n,children:b(Pt,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":re(a.open),...c,ref:s,onDismiss:()=>a.onOpenChange(!1)})}),pr(hr,{children:[b(di,{titleId:a.titleId}),b(pi,{contentRef:l,descriptionId:a.descriptionId})]})]})}),ee="DialogTitle",Cr=v.forwardRef((t,e)=>{let{__scopeDialog:r,...o}=t,i=D(ee,r);return b(N.h2,{id:i.titleId,...o,ref:e})});Cr.displayName=ee;var br="DialogDescription",Rr=v.forwardRef((t,e)=>{let{__scopeDialog:r,...o}=t,i=D(br,r);return b(N.p,{id:i.descriptionId,...o,ref:e})});Rr.displayName=br;var Mr="DialogClose",ui=v.forwardRef((t,e)=>{let{__scopeDialog:r,...o}=t,i=D(Mr,r);return b(N.button,{type:"button",...o,ref:e,onClick:_(t.onClick,()=>i.onOpenChange(!1))})});ui.displayName=Mr;function re(t){return t?"open":"closed"}var jr="DialogTitleWarning",[xc,Fr]=we(jr,{contentName:X,titleName:ee,docsSlug:"dialog"}),di=({titleId:t})=>{let e=Fr(jr),r=`\`${e.contentName}\` requires a \`${e.titleName}\` for the component to be accessible for screen reader users.
|
|
42
42
|
|
|
43
43
|
If you want to hide the \`${e.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
44
44
|
|
|
45
|
-
For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return
|
|
46
|
-
w-full text-left
|
|
47
|
-
text-3xl md:text-4xl
|
|
48
|
-
font-ddin font-medium tracking-wider
|
|
49
|
-
text-foreground hover:text-primary
|
|
50
|
-
transition-colors duration-300
|
|
51
|
-
py-4 px-4 rounded-lg
|
|
52
|
-
hover:bg-muted/30 focus:outline-none focus:ring-2 focus:ring-ring
|
|
53
|
-
block
|
|
54
|
-
`,children:typeof l.label=="string"?F("span",{className:"font-ddin",children:l.label}):l.label},l.href||(typeof l.label=="string"?l.label:s)))})})})]})]})})}import
|
|
45
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return v.useEffect(()=>{t&&(document.getElementById(t)||console.error(r))},[r,t]),null},hi="DialogDescriptionWarning",pi=({contentRef:t,descriptionId:e})=>{let o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Fr(hi).contentName}}.`;return v.useEffect(()=>{let i=t.current?.getAttribute("aria-describedby");e&&i&&(document.getElementById(e)||console.warn(o))},[o,t,e]),null},Br=fr,Sr=xr,Wr=yr,oe=mr,ie=Lr,ne=Cr,ae=Rr;import{cva as fi}from"class-variance-authority";import{jsx as q,jsxs as wi}from"react/jsx-runtime";var Er=Br,Pr=Sr;var ki=Wr,Nr=ut.forwardRef(({className:t,...e},r)=>q(oe,{className:B("kui:fixed kui:inset-0 kui:z-50 kui:data-[state=open]:animate-in kui:data-[state=closed]:animate-out kui:data-[state=closed]:fade-out-0 kui:data-[state=open]:fade-in-0",t),...e,ref:r}));Nr.displayName=oe.displayName;var xi=fi("kui:fixed kui:z-50 kui:gap-4 kui:shadow-lg kui:transition kui:ease-in-out kui:data-[state=closed]:duration-300 kui:data-[state=open]:duration-500 kui:data-[state=open]:animate-in kui:data-[state=closed]:animate-out",{variants:{side:{top:"kui:inset-x-0 kui:top-0 kui:border-b kui:data-[state=closed]:slide-out-to-top kui:data-[state=open]:slide-in-from-top",bottom:"kui:inset-x-0 kui:bottom-0 kui:border-t kui:data-[state=closed]:slide-out-to-bottom kui:data-[state=open]:slide-in-from-bottom",left:"kui:inset-y-0 kui:left-0 kui:h-full kui:w-3/4 kui:border-r kui:data-[state=closed]:slide-out-to-left kui:data-[state=open]:slide-in-from-left kui:sm:max-w-sm",right:"kui:inset-y-0 kui:right-0 kui:h-full kui:w-3/4 kui:border-l kui:data-[state=closed]:slide-out-to-right kui:data-[state=open]:slide-in-from-right kui:sm:max-w-sm"}},defaultVariants:{side:"right"}}),ce=ut.forwardRef(({side:t="right",className:e,children:r,...o},i)=>wi(ki,{children:[q(Nr,{}),q(ie,{ref:i,className:B(xi({side:t}),e),...o,children:r})]}));ce.displayName=ie.displayName;var vi=({className:t,...e})=>q("div",{className:B("kui:flex kui:flex-col kui:space-y-2 kui:text-center kui:sm:text-left",t),...e});vi.displayName="SheetHeader";var yi=({className:t,...e})=>q("div",{className:B("kui:flex kui:flex-col-reverse kui:sm:flex-row kui:sm:justify-end kui:sm:space-x-2",t),...e});yi.displayName="SheetFooter";var mi=ut.forwardRef(({className:t,...e},r)=>q(ne,{ref:r,className:B("kui:text-lg kui:font-semibold kui:text-foreground",t),...e}));mi.displayName=ne.displayName;var Li=ut.forwardRef(({className:t,...e},r)=>q(ae,{ref:r,className:B("kui:text-sm kui:text-muted-foreground",t),...e}));Li.displayName=ae.displayName;import{Menu as bi,X as Ri}from"lucide-react";import{jsx as F,jsxs as le}from"react/jsx-runtime";function Mi({navItems:t=[],logoHref:e="/",onLogoClick:r=()=>{},logo:o,secondaryLogo:i}){let[n,c]=Ci(!1);return F("header",{className:"kui:sticky kui:top-0 kui:z-60 kui:w-full kui:border-b kui:border-border/20 kui:bg-background/95 kui:backdrop-blur kui:supports-backdrop-filter:bg-background/60 kui:pointer-events-auto kui:uppercase",style:{pointerEvents:"auto"},children:le("div",{className:"kui:container kui:flex kui:h-16 kui:items-center kui:justify-between kui:px-4 kui:md:px-6",children:[le("a",{href:e,className:"kui:flex kui:items-center kui:gap-1 kui:cursor-pointer kui:group",onClick:()=>{r(),c(!1)},children:[F("h1",{className:"kui:font-ddin kui:text-1xl kui:md:text-2xl kui:tracking-tight",children:o}),i&&F("span",{className:"kui:font-ddin kui:text-1xl kui:md:text-2xl kui:tracking-tight kui:text-muted-foreground",children:i})]}),F("div",{className:"kui:hidden kui:md:flex kui:items-center kui:gap-6",children:F(()=>F(pe,{children:F(ge,{className:"kui:gap-2 kui:md:gap-6",children:t.map((l,s)=>F(fe,{children:F(xe,{className:B(ke(),typeof l.label!="string"&&"kui:h-12 kui:w-12 kui:p-0 kui:bg-transparent kui:hover:bg-muted/50 kui:flex kui:items-center kui:justify-center kui:rounded-full"),href:l.href,onClick:l.onClick,children:typeof l.label=="string"?F("span",{className:"kui:font-ddin kui:text-1xl",children:l.label}):l.label})},l.href||(typeof l.label=="string"?l.label:s)))})}),{})}),le(Er,{open:n,onOpenChange:c,children:[F(Pr,{asChild:!0,className:"kui:md:hidden",children:F(ve,{variant:"ghost",size:"icon","aria-label":"Toggle menu",children:n?F(Ri,{className:"kui:h-6 kui:w-6"}):F(bi,{className:"kui:h-6 kui:w-6"})})}),F(ce,{side:"right",className:"kui:w-100 kui:border-l kui:border-border/30 kui:mt-16",children:F("div",{className:"kui:flex kui:min-h-[calc(100vh-5rem)] kui:flex-col kui:justify-center kui:px-8 kui:py-12 kui:bg-background",children:F("nav",{className:"kui:flex kui:flex-col kui:gap-12 kui:md:gap-16",children:t.map((l,s)=>F("a",{href:l.href,onClick:()=>{l.onClick&&l.onClick(),c(!1)},className:`
|
|
46
|
+
kui:w-full kui:text-left
|
|
47
|
+
kui:text-3xl kui:md:text-4xl
|
|
48
|
+
kui:font-ddin kui:font-medium kui:tracking-wider
|
|
49
|
+
kui:text-foreground kui:hover:text-primary
|
|
50
|
+
kui:transition-colors kui:duration-300
|
|
51
|
+
kui:py-4 kui:px-4 kui:rounded-lg
|
|
52
|
+
kui:hover:bg-muted/30 kui:focus:outline-none kui:focus:ring-2 kui:focus:ring-ring
|
|
53
|
+
kui:block
|
|
54
|
+
`,children:typeof l.label=="string"?F("span",{className:"kui:font-ddin",children:l.label}):l.label},l.href||(typeof l.label=="string"?l.label:s)))})})})]})]})})}import dt from"react";import Ar from"react";var se={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ue=Ar.createContext&&Ar.createContext(se);var ji=["attr","size","title"];function Fi(t,e){if(t==null)return{};var r,o,i=Bi(t,e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);for(o=0;o<n.length;o++)r=n[o],e.indexOf(r)===-1&&{}.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function Bi(t,e){if(t==null)return{};var r={};for(var o in t)if({}.hasOwnProperty.call(t,o)){if(e.indexOf(o)!==-1)continue;r[o]=t[o]}return r}function Ft(){return Ft=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var o in r)({}).hasOwnProperty.call(r,o)&&(t[o]=r[o])}return t},Ft.apply(null,arguments)}function Or(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,o)}return r}function Bt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Or(Object(r),!0).forEach(function(o){Si(t,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Or(Object(r)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))})}return t}function Si(t,e,r){return(e=Wi(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Wi(t){var e=Ei(t,"string");return typeof e=="symbol"?e:e+""}function Ei(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var o=r.call(t,e||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Tr(t){return t&&t.map((e,r)=>dt.createElement(e.tag,Bt({key:r},e.attr),Tr(e.child)))}function Ir(t){return e=>dt.createElement(Pi,Ft({attr:Bt({},t.attr)},e),Tr(t.child))}function Pi(t){var e=r=>{var{attr:o,size:i,title:n}=t,c=Fi(t,ji),a=i||r.size||"1em",l;return r.className&&(l=r.className),t.className&&(l=(l?l+" ":"")+t.className),dt.createElement("svg",Ft({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,o,c,{className:l,style:Bt(Bt({color:t.color||r.color},r.style),t.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),n&&dt.createElement("title",null,n),t.children)};return ue!==void 0?dt.createElement(ue.Consumer,null,r=>e(r)):e(se)}function Dr(t){return Ir({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"},child:[]},{tag:"polyline",attr:{points:"15 3 21 3 21 9"},child:[]},{tag:"line",attr:{x1:"10",y1:"14",x2:"21",y2:"3"},child:[]}]})(t)}import{jsx as z,jsxs as de}from"react/jsx-runtime";function Ni({links:t=[],socials:e=[],copyright:r,...o}){return z("footer",{className:"kui:bg-background kui:pt-12 kui:pb-8 kui:w-full kui:font-ddin kui:uppercase kui:text-[10px] kui:sm:text-xs",...o,children:z("div",{className:"kui:container kui:mx-auto kui:px-6 kui:max-w-[1400px]",children:de("div",{className:"kui:flex kui:flex-col kui:md:flex-row kui:items-center kui:justify-between kui:gap-6 kui:md:gap-4 kui:text-muted-foreground",children:[z("div",{className:"kui:flex kui:items-center kui:gap-6 kui:order-3 kui:md:order-1",children:e.map(i=>{let n=i.icon;return z("a",{href:i.href,className:"kui:hover:text-foreground kui:transition-colors",target:"_blank",rel:"noopener noreferrer","aria-label":i.label??"Social link",children:z(n,{className:"kui:w-4 kui:h-4"})},i.href)})}),z("ul",{className:"kui:flex kui:flex-wrap kui:justify-center kui:items-center kui:gap-6 kui:md:gap-10 kui:order-1 kui:md:order-2 kui:font-medium kui:tracking-widest kui:text-foreground",children:t.map(i=>z("li",{children:de("a",{href:i.href,onClick:i.onClick,target:i.isExternal?"_blank":void 0,rel:i.isExternal?"noopener noreferrer":void 0,className:"kui:inline-flex kui:items-center kui:gap-1.5 kui:hover:text-muted-foreground kui:transition-colors",children:[z("span",{children:i.label}),i.isExternal&&z(Dr,{className:"kui:inline-block kui:h-3.5 kui:w-3.5 kui:text-muted-foreground/60","aria-hidden":"true"})]})},i.href))}),r&&z("div",{className:"kui:order-2 kui:md:order-3 kui:font-medium kui:tracking-widest kui:whitespace-nowrap",children:de("a",{href:r?.companyUrl,target:"_blank",rel:"noopener noreferrer",className:"kui:focus-visible:underline kui:outline-none",children:["\xA9 ",new Date().getFullYear()," ",r?.companyName]})})]})})})}import{jsx as Oi,jsxs as Ti}from"react/jsx-runtime";function Ai({header:t,footer:e,children:r}){return Ti("div",{className:"kui:min-h-screen kui:bg-background kui:text-foreground kui:font-ddin kui:flex kui:flex-col",children:[t,Oi("div",{className:"kui:flex-1",children:r}),e]})}import*as zr from"react";import{ShoppingCart as Ii}from"lucide-react";import{jsx as _r,jsxs as Di}from"react/jsx-runtime";var Hr=zr.forwardRef(({variant:t="none",itemCount:e=0,children:r,...o},i)=>Di("button",{ref:i,className:"kui:relative kui:flex kui:items-center kui:justify-center kui:rounded-full kui:transition-all kui:duration-200 kui:outline-none kui:focus-visible:ring-2 kui:focus-visible:ring-ring kui:focus-visible:ring-offset-2 kui:disabled:pointer-events-none kui:disabled:opacity-50 kui:hover:bg-muted/50 kui:active:scale-95 kui:h-12 kui:w-12 kui:p-0 kui:bg-transparent",...o,children:[t==="cart"?_r(Ii,{className:"kui:text-foreground kui:h-7 kui:w-7"}):r,e>0&&_r("span",{className:"kui:absolute kui:-top-1.5 kui:-right-1.5 kui:flex kui:items-center kui:justify-center kui:rounded-full kui:bg-primary kui:text-primary-foreground kui:text-[10px] kui:font-bold kui:px-1.5 kui:py-0.5 kui:min-w-[18px] kui:h-[18px] kui:shadow-sm kui:animate-in kui:zoom-in kui:duration-300",children:e>99?"99+":e})]}));Hr.displayName="IconWithBadge";export{Ni as Footer,Mi as Header,Hr as IconWithBadge,Ai as Layout};
|
|
55
55
|
//# sourceMappingURL=index.js.map
|