@keslers/kui 0.4.0 → 0.4.2
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 +7 -7
- 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 +5 -5
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
"use strict";var oo=Object.create;var gt=Object.defineProperty;var no=Object.getOwnPropertyDescriptor;var io=Object.getOwnPropertyNames;var ao=Object.getPrototypeOf,co=Object.prototype.hasOwnProperty;var lo=(t,e)=>{for(var r in e)gt(t,r,{get:e[r],enumerable:!0})},ke=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of io(e))!co.call(t,n)&&n!==r&>(t,n,{get:()=>e[n],enumerable:!(o=no(e,n))||o.enumerable});return t};var y=(t,e,r)=>(r=t!=null?oo(ao(t)):{},ke(e||!t||!t.__esModule?gt(r,"default",{value:t,enumerable:!0}):r,t)),so=t=>ke(gt({},"__esModule",{value:!0}),t);var Dn={};lo(Dn,{Footer:()=>eo,Header:()=>qr,Layout:()=>ro});module.exports=so(Dn);var Xr=require("react");var Hn=require("react"),we=require("class-variance-authority"),tt=require("radix-ui");var me=require("clsx"),Le=require("tailwind-merge");function W(...t){return(0,Le.twMerge)((0,me.clsx)(t))}var uo=require("lucide-react"),G=require("react/jsx-runtime");function Ce({className:t,children:e,viewport:r=!0,...o}){return(0,G.jsxs)(tt.NavigationMenu.Root,{"data-slot":"navigation-menu","data-viewport":r,className:W("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",t),...o,children:[e,r&&(0,G.jsx)(ho,{})]})}function be({className:t,...e}){return(0,G.jsx)(tt.NavigationMenu.List,{"data-slot":"navigation-menu-list",className:W("group flex flex-1 list-none items-center justify-center gap-0",t),...e})}function Re({className:t,...e}){return(0,G.jsx)(tt.NavigationMenu.Item,{"data-slot":"navigation-menu-item",className:W("relative",t),...e})}var Me=(0,we.cva)("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 ho({className:t,...e}){return(0,G.jsx)("div",{className:W("absolute top-full left-0 isolate z-50 flex justify-center"),children:(0,G.jsx)(tt.NavigationMenu.Viewport,{"data-slot":"navigation-menu-viewport",className:W("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 je({className:t,...e}){return(0,G.jsx)(tt.NavigationMenu.Link,{"data-slot":"navigation-menu-link",className:W("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})}var Gn=require("react"),Fe=require("class-variance-authority"),Se=require("radix-ui");var We=require("react/jsx-runtime"),po=(0,Fe.cva)("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 Be({className:t,variant:e="default",size:r="default",asChild:o=!1,...n}){let i=o?Se.Slot.Root:"button";return(0,We.jsx)(i,{"data-slot":"button","data-variant":e,"data-size":r,className:W(po({variant:e,size:r,className:t})),...n})}var ht=y(require("react"),1);var m=y(require("react"),1);var Yn=!!(typeof window<"u"&&window.document&&window.document.createElement);function H(t,e,{checkForDefaultPrevented:r=!0}={}){return function(n){if(t?.(n),r===!1||!n.defaultPrevented)return e?.(n)}}var Pe=y(require("react"),1);function Ee(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function At(...t){return e=>{let r=!1,o=t.map(n=>{let i=Ee(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():Ee(t[n],null)}}}}function _(...t){return Pe.useCallback(At(...t),t)}var T=y(require("react"),1),Ot=require("react/jsx-runtime");function Ne(t,e){let r=T.createContext(e),o=i=>{let{children:c,...a}=i,l=T.useMemo(()=>a,Object.values(a));return(0,Ot.jsx)(r.Provider,{value:l,children:c})};o.displayName=t+"Provider";function n(i){let c=T.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 Ae(t,e=[]){let r=[];function o(i,c){let a=T.createContext(c),l=r.length;r=[...r,c];let s=h=>{let{scope:p,children:g,...R}=h,d=p?.[t]?.[l]||a,f=T.useMemo(()=>R,Object.values(R));return(0,Ot.jsx)(d.Provider,{value:f,children:g})};s.displayName=i+"Provider";function u(h,p){let g=p?.[t]?.[l]||a,R=T.useContext(g);if(R)return R;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=>T.createContext(c));return function(a){let l=a?.[t]||i;return T.useMemo(()=>({[`__scope${t}`]:{...a,[t]:l}}),[a,l])}};return n.scopeName=t,[o,go(n,...e)]}function go(...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 T.useMemo(()=>({[`__scope${e.scopeName}`]:c}),[c])}};return r.scopeName=e.scopeName,r}var Tt=y(require("react"),1);var Oe=y(require("react"),1),K=globalThis?.document?Oe.useLayoutEffect:()=>{};var fo=Tt[" useId ".trim().toString()]||(()=>{}),xo=0;function ft(t){let[e,r]=Tt.useState(fo());return K(()=>{t||r(o=>o??String(xo++))},[t]),t||(e?`radix-${e}`:"")}var I=y(require("react"),1);var xt=y(require("react"),1);var vo=I[" useInsertionEffect ".trim().toString()]||K;function Te({prop:t,defaultProp:e,onChange:r=()=>{},caller:o}){let[n,i,c]=yo({defaultProp:e,onChange:r}),a=t!==void 0,l=a?t:n;{let u=I.useRef(t!==void 0);I.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=I.useCallback(u=>{if(a){let h=ko(u)?u(t):u;h!==t&&c.current?.(h)}else i(u)},[a,t,i,c]);return[l,s]}function yo({defaultProp:t,onChange:e}){let[r,o]=I.useState(t),n=I.useRef(r),i=I.useRef(e);return vo(()=>{i.current=e},[e]),I.useEffect(()=>{n.current!==r&&(i.current?.(r),n.current=r)},[r,n]),[r,o,i]}function ko(t){return typeof t=="function"}var b=y(require("react"),1);var Ie=y(require("react"),1),De=y(require("react-dom"),1);var S=y(require("react"),1);var vt=require("react/jsx-runtime");function yt(t){let e=mo(t),r=S.forwardRef((o,n)=>{let{children:i,...c}=o,a=S.Children.toArray(i),l=a.find(wo);if(l){let s=l.props.children,u=a.map(h=>h===l?S.Children.count(s)>1?S.Children.only(null):S.isValidElement(s)?s.props.children:null:h);return(0,vt.jsx)(e,{...c,ref:n,children:S.isValidElement(s)?S.cloneElement(s,void 0,u):null})}return(0,vt.jsx)(e,{...c,ref:n,children:i})});return r.displayName=`${t}.Slot`,r}function mo(t){let e=S.forwardRef((r,o)=>{let{children:n,...i}=r;if(S.isValidElement(n)){let c=bo(n),a=Co(i,n.props);return n.type!==S.Fragment&&(a.ref=o?At(o,c):c),S.cloneElement(n,a)}return S.Children.count(n)>1?S.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var Lo=Symbol("radix.slottable");function wo(t){return S.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Lo}function Co(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 bo(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)}var _e=require("react/jsx-runtime"),Ro=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],O=Ro.reduce((t,e)=>{let r=yt(`Primitive.${e}`),o=Ie.forwardRef((n,i)=>{let{asChild:c,...a}=n,l=c?r:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,_e.jsx)(l,{...a,ref:i})});return o.displayName=`Primitive.${e}`,{...t,[e]:o}},{});function ze(t,e){t&&De.flushSync(()=>t.dispatchEvent(e))}var et=y(require("react"),1);function $(t){let e=et.useRef(t);return et.useEffect(()=>{e.current=t}),et.useMemo(()=>(...r)=>e.current?.(...r),[])}var He=y(require("react"),1);function Ve(t,e=globalThis?.document){let r=$(t);He.useEffect(()=>{let o=n=>{n.key==="Escape"&&r(n)};return e.addEventListener("keydown",o,{capture:!0}),()=>e.removeEventListener("keydown",o,{capture:!0})},[r,e])}var Dt=require("react/jsx-runtime"),Mo="DismissableLayer",It="dismissableLayer.update",jo="dismissableLayer.pointerDownOutside",Fo="dismissableLayer.focusOutside",Ue,Ke=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),_t=b.forwardRef((t,e)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:n,onFocusOutside:i,onInteractOutside:c,onDismiss:a,...l}=t,s=b.useContext(Ke),[u,h]=b.useState(null),p=u?.ownerDocument??globalThis?.document,[,g]=b.useState({}),R=_(e,x=>h(x)),d=Array.from(s.layers),[f]=[...s.layersWithOutsidePointerEventsDisabled].slice(-1),v=d.indexOf(f),L=u?d.indexOf(u):-1,M=s.layersWithOutsidePointerEventsDisabled.size>0,F=L>=v,j=Wo(x=>{let U=x.target,J=[...s.branches].some(ct=>ct.contains(U));!F||J||(n?.(x),c?.(x),x.defaultPrevented||a?.())},p),B=Eo(x=>{let U=x.target;[...s.branches].some(ct=>ct.contains(U))||(i?.(x),c?.(x),x.defaultPrevented||a?.())},p);return Ve(x=>{L===s.layers.size-1&&(o?.(x),!x.defaultPrevented&&a&&(x.preventDefault(),a()))},p),b.useEffect(()=>{if(u)return r&&(s.layersWithOutsidePointerEventsDisabled.size===0&&(Ue=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),s.layersWithOutsidePointerEventsDisabled.add(u)),s.layers.add(u),Ge(),()=>{r&&s.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Ue)}},[u,p,r,s]),b.useEffect(()=>()=>{u&&(s.layers.delete(u),s.layersWithOutsidePointerEventsDisabled.delete(u),Ge())},[u,s]),b.useEffect(()=>{let x=()=>g({});return document.addEventListener(It,x),()=>document.removeEventListener(It,x)},[]),(0,Dt.jsx)(O.div,{...l,ref:R,style:{pointerEvents:M?F?"auto":"none":void 0,...t.style},onFocusCapture:H(t.onFocusCapture,B.onFocusCapture),onBlurCapture:H(t.onBlurCapture,B.onBlurCapture),onPointerDownCapture:H(t.onPointerDownCapture,j.onPointerDownCapture)})});_t.displayName=Mo;var So="DismissableLayerBranch",Bo=b.forwardRef((t,e)=>{let r=b.useContext(Ke),o=b.useRef(null),n=_(e,o);return b.useEffect(()=>{let i=o.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),(0,Dt.jsx)(O.div,{...t,ref:n})});Bo.displayName=So;function Wo(t,e=globalThis?.document){let r=$(t),o=b.useRef(!1),n=b.useRef(()=>{});return b.useEffect(()=>{let i=a=>{if(a.target&&!o.current){let s=function(){$e(jo,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 Eo(t,e=globalThis?.document){let r=$(t),o=b.useRef(!1);return b.useEffect(()=>{let n=i=>{i.target&&!o.current&&$e(Fo,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 Ge(){let t=new CustomEvent(It);document.dispatchEvent(t)}function $e(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?ze(n,i):n.dispatchEvent(i)}var D=y(require("react"),1);var Qe=require("react/jsx-runtime"),zt="focusScope.autoFocusOnMount",Ht="focusScope.autoFocusOnUnmount",Ye={bubbles:!1,cancelable:!0},Po="FocusScope",Vt=D.forwardRef((t,e)=>{let{loop:r=!1,trapped:o=!1,onMountAutoFocus:n,onUnmountAutoFocus:i,...c}=t,[a,l]=D.useState(null),s=$(n),u=$(i),h=D.useRef(null),p=_(e,d=>l(d)),g=D.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;D.useEffect(()=>{if(o){let L=function(B){if(g.paused||!a)return;let x=B.target;a.contains(x)?h.current=x:Y(h.current,{select:!0})},M=function(B){if(g.paused||!a)return;let x=B.relatedTarget;x!==null&&(a.contains(x)||Y(h.current,{select:!0}))},F=function(B){if(document.activeElement===document.body)for(let U of B)U.removedNodes.length>0&&Y(a)};var d=L,f=M,v=F;document.addEventListener("focusin",L),document.addEventListener("focusout",M);let j=new MutationObserver(F);return a&&j.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",L),document.removeEventListener("focusout",M),j.disconnect()}}},[o,a,g.paused]),D.useEffect(()=>{if(a){qe.add(g);let d=document.activeElement;if(!a.contains(d)){let v=new CustomEvent(zt,Ye);a.addEventListener(zt,s),a.dispatchEvent(v),v.defaultPrevented||(No(Do(Je(a)),{select:!0}),document.activeElement===d&&Y(a))}return()=>{a.removeEventListener(zt,s),setTimeout(()=>{let v=new CustomEvent(Ht,Ye);a.addEventListener(Ht,u),a.dispatchEvent(v),v.defaultPrevented||Y(d??document.body,{select:!0}),a.removeEventListener(Ht,u),qe.remove(g)},0)}}},[a,s,u,g]);let R=D.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 L=d.currentTarget,[M,F]=Ao(L);M&&F?!d.shiftKey&&v===F?(d.preventDefault(),r&&Y(M,{select:!0})):d.shiftKey&&v===M&&(d.preventDefault(),r&&Y(F,{select:!0})):v===L&&d.preventDefault()}},[r,o,g.paused]);return(0,Qe.jsx)(O.div,{tabIndex:-1,...c,ref:p,onKeyDown:R})});Vt.displayName=Po;function No(t,{select:e=!1}={}){let r=document.activeElement;for(let o of t)if(Y(o,{select:e}),document.activeElement!==r)return}function Ao(t){let e=Je(t),r=Xe(e,t),o=Xe(e.reverse(),t);return[r,o]}function Je(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 Xe(t,e){for(let r of t)if(!Oo(r,{upTo:e}))return r}function Oo(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 To(t){return t instanceof HTMLInputElement&&"select"in t}function Y(t,{select:e=!1}={}){if(t&&t.focus){let r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&To(t)&&e&&t.select()}}var qe=Io();function Io(){let t=[];return{add(e){let r=t[0];e!==r&&r?.pause(),t=Ze(t,e),t.unshift(e)},remove(e){t=Ze(t,e),t[0]?.resume()}}}function Ze(t,e){let r=[...t],o=r.indexOf(e);return o!==-1&&r.splice(o,1),r}function Do(t){return t.filter(e=>e.tagName!=="A")}var kt=y(require("react"),1),tr=y(require("react-dom"),1);var er=require("react/jsx-runtime"),_o="Portal",Ut=kt.forwardRef((t,e)=>{let{container:r,...o}=t,[n,i]=kt.useState(!1);K(()=>i(!0),[]);let c=r||n&&globalThis?.document?.body;return c?tr.default.createPortal((0,er.jsx)(O.div,{...o,ref:e}),c):null});Ut.displayName=_o;var N=y(require("react"),1);var rr=y(require("react"),1);function zo(t,e){return rr.useReducer((r,o)=>e[r][o]??r,t)}var lt=t=>{let{present:e,children:r}=t,o=Ho(e),n=typeof r=="function"?r({present:o.isPresent}):N.Children.only(r),i=_(o.ref,Vo(n));return typeof r=="function"||o.isPresent?N.cloneElement(n,{ref:i}):null};lt.displayName="Presence";function Ho(t){let[e,r]=N.useState(),o=N.useRef(null),n=N.useRef(t),i=N.useRef("none"),c=t?"mounted":"unmounted",[a,l]=zo(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return N.useEffect(()=>{let s=mt(o.current);i.current=a==="mounted"?s:"none"},[a]),K(()=>{let s=o.current,u=n.current;if(u!==t){let p=i.current,g=mt(s);t?l("MOUNT"):g==="none"||s?.display==="none"?l("UNMOUNT"):l(u&&p!==g?"ANIMATION_OUT":"UNMOUNT"),n.current=t}},[t,l]),K(()=>{if(e){let s,u=e.ownerDocument.defaultView??window,h=g=>{let d=mt(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=mt(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:N.useCallback(s=>{o.current=s?getComputedStyle(s):null,r(s)},[])}}function mt(t){return t?.animationName||"none"}function Vo(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)}var nr=y(require("react"),1),Gt=0;function ir(){nr.useEffect(()=>{let t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??or()),document.body.insertAdjacentElement("beforeend",t[1]??or()),Gt++,()=>{Gt===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Gt--}},[])}function or(){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 A=function(){return A=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},A.apply(this,arguments)};function Lt(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 ar(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))}var Mt=y(require("react"));var E=y(require("react"));var X="right-scroll-bar-position",q="width-before-scroll-bar",Kt="with-scroll-bars-hidden",$t="--removed-body-scroll-bar-size";function wt(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}var cr=require("react");function lr(t,e){var r=(0,cr.useState)(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}var Ct=y(require("react"));var Uo=typeof window<"u"?Ct.useLayoutEffect:Ct.useEffect,sr=new WeakMap;function Yt(t,e){var r=lr(e||null,function(o){return t.forEach(function(n){return wt(n,o)})});return Uo(function(){var o=sr.get(r);if(o){var n=new Set(o),i=new Set(t),c=r.current;n.forEach(function(a){i.has(a)||wt(a,null)}),i.forEach(function(a){n.has(a)||wt(a,c)})}sr.set(r,t)},[t]),r}function Go(t){return t}function Ko(t,e){e===void 0&&(e=Go);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 Xt(t){t===void 0&&(t={});var e=Ko(null);return e.options=A({async:!0,ssr:!1},t),e}var dr=y(require("react")),ur=function(t){var e=t.sideCar,r=Lt(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 dr.createElement(o,A({},r))};ur.isSideCarExport=!0;function qt(t,e){return t.useMedium(e),ur}var bt=Xt();var Zt=function(){},st=E.forwardRef(function(t,e){var r=E.useRef(null),o=E.useState({onScrollCapture:Zt,onWheelCapture:Zt,onTouchMoveCapture:Zt}),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,R=t.noIsolation,d=t.inert,f=t.allowPinchZoom,v=t.as,L=v===void 0?"div":v,M=t.gapMode,F=Lt(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=p,B=Yt([r,e]),x=A(A({},F),n);return E.createElement(E.Fragment,null,u&&E.createElement(j,{sideCar:bt,removeScrollBar:s,shards:h,noRelative:g,noIsolation:R,inert:d,setCallbacks:i,allowPinchZoom:!!f,lockRef:r,gapMode:M}),c?E.cloneElement(E.Children.only(a),A(A({},x),{ref:B})):E.createElement(L,A({},x,{className:l,ref:B}),a))});st.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};st.classNames={fullWidth:q,zeroRight:X};var w=y(require("react"));var ot=y(require("react"));var gr=y(require("react"));var hr;var pr=function(){if(hr)return hr;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function $o(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=pr();return e&&t.setAttribute("nonce",e),t}function Yo(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function Xo(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var Qt=function(){var t=0,e=null;return{add:function(r){t==0&&(e=$o())&&(Yo(e,r),Xo(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}};var Jt=function(){var t=Qt();return function(e,r){gr.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&r])}};var dt=function(){var t=Jt(),e=function(r){var o=r.styles,n=r.dynamic;return t(o,n),null};return e};var qo={left:0,top:0,right:0,gap:0},te=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"],n=e[t==="padding"?"paddingRight":"marginRight"];return[te(r),te(o),te(n)]},ee=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return qo;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 Qo=dt(),rt="data-scroll-locked",Jo=function(t,e,r,o){var n=t.left,i=t.top,c=t.right,a=t.gap;return r===void 0&&(r="margin"),`
|
|
2
|
-
.`.concat(
|
|
1
|
+
"use strict";var co=Object.create;var ft=Object.defineProperty;var lo=Object.getOwnPropertyDescriptor;var so=Object.getOwnPropertyNames;var uo=Object.getPrototypeOf,ho=Object.prototype.hasOwnProperty;var po=(t,e)=>{for(var r in e)ft(t,r,{get:e[r],enumerable:!0})},Le=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of so(e))!ho.call(t,n)&&n!==r&&ft(t,n,{get:()=>e[n],enumerable:!(o=lo(e,n))||o.enumerable});return t};var v=(t,e,r)=>(r=t!=null?co(uo(t)):{},Le(e||!t||!t.__esModule?ft(r,"default",{value:t,enumerable:!0}):r,t)),go=t=>Le(ft({},"__esModule",{value:!0}),t);var Vn={};po(Vn,{Footer:()=>oo,Header:()=>Qr,IconWithBadge:()=>me,Layout:()=>no});module.exports=go(Vn);var Zr=require("react");var Kn=require("react"),be=require("class-variance-authority"),tt=require("radix-ui");var we=require("clsx"),Ce=require("tailwind-merge");function S(...t){return(0,Ce.twMerge)((0,we.clsx)(t))}var fo=require("lucide-react"),G=require("react/jsx-runtime");function Re({className:t,children:e,viewport:r=!0,...o}){return(0,G.jsxs)(tt.NavigationMenu.Root,{"data-slot":"navigation-menu","data-viewport":r,className:S("group/navigation-menu relative flex max-w-max flex-1 items-center justify-center",t),...o,children:[e,r&&(0,G.jsx)(xo,{})]})}function Me({className:t,...e}){return(0,G.jsx)(tt.NavigationMenu.List,{"data-slot":"navigation-menu-list",className:S("group flex flex-1 list-none items-center justify-center gap-0",t),...e})}function je({className:t,...e}){return(0,G.jsx)(tt.NavigationMenu.Item,{"data-slot":"navigation-menu-item",className:S("relative",t),...e})}var Fe=(0,be.cva)("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 xo({className:t,...e}){return(0,G.jsx)("div",{className:S("absolute top-full left-0 isolate z-50 flex justify-center"),children:(0,G.jsx)(tt.NavigationMenu.Viewport,{"data-slot":"navigation-menu-viewport",className:S("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 Be({className:t,...e}){return(0,G.jsx)(tt.NavigationMenu.Link,{"data-slot":"navigation-menu-link",className:S("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-']):not([class*='h-']):not([class*='w-'])]:size-4",t),...e})}var Xn=require("react"),Se=require("class-variance-authority"),We=require("radix-ui");var Pe=require("react/jsx-runtime"),vo=(0,Se.cva)("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 Ee({className:t,variant:e="default",size:r="default",asChild:o=!1,...n}){let i=o?We.Slot.Root:"button";return(0,Pe.jsx)(i,{"data-slot":"button","data-variant":e,"data-size":r,className:S(vo({variant:e,size:r,className:t})),...n})}var ht=v(require("react"),1);var k=v(require("react"),1);var Qn=!!(typeof window<"u"&&window.document&&window.document.createElement);function H(t,e,{checkForDefaultPrevented:r=!0}={}){return function(n){if(t?.(n),r===!1||!n.defaultPrevented)return e?.(n)}}var Ae=v(require("react"),1);function Ne(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Ot(...t){return e=>{let r=!1,o=t.map(n=>{let i=Ne(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():Ne(t[n],null)}}}}function _(...t){return Ae.useCallback(Ot(...t),t)}var T=v(require("react"),1),Tt=require("react/jsx-runtime");function Oe(t,e){let r=T.createContext(e),o=i=>{let{children:c,...a}=i,l=T.useMemo(()=>a,Object.values(a));return(0,Tt.jsx)(r.Provider,{value:l,children:c})};o.displayName=t+"Provider";function n(i){let c=T.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 Te(t,e=[]){let r=[];function o(i,c){let a=T.createContext(c),l=r.length;r=[...r,c];let s=h=>{let{scope:p,children:g,...R}=h,d=p?.[t]?.[l]||a,f=T.useMemo(()=>R,Object.values(R));return(0,Tt.jsx)(d.Provider,{value:f,children:g})};s.displayName=i+"Provider";function u(h,p){let g=p?.[t]?.[l]||a,R=T.useContext(g);if(R)return R;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=>T.createContext(c));return function(a){let l=a?.[t]||i;return T.useMemo(()=>({[`__scope${t}`]:{...a,[t]:l}}),[a,l])}};return n.scopeName=t,[o,yo(n,...e)]}function yo(...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 T.useMemo(()=>({[`__scope${e.scopeName}`]:c}),[c])}};return r.scopeName=e.scopeName,r}var It=v(require("react"),1);var Ie=v(require("react"),1),K=globalThis?.document?Ie.useLayoutEffect:()=>{};var mo=It[" useId ".trim().toString()]||(()=>{}),ko=0;function xt(t){let[e,r]=It.useState(mo());return K(()=>{t||r(o=>o??String(ko++))},[t]),t||(e?`radix-${e}`:"")}var I=v(require("react"),1);var vt=v(require("react"),1);var Lo=I[" useInsertionEffect ".trim().toString()]||K;function De({prop:t,defaultProp:e,onChange:r=()=>{},caller:o}){let[n,i,c]=wo({defaultProp:e,onChange:r}),a=t!==void 0,l=a?t:n;{let u=I.useRef(t!==void 0);I.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=I.useCallback(u=>{if(a){let h=Co(u)?u(t):u;h!==t&&c.current?.(h)}else i(u)},[a,t,i,c]);return[l,s]}function wo({defaultProp:t,onChange:e}){let[r,o]=I.useState(t),n=I.useRef(r),i=I.useRef(e);return Lo(()=>{i.current=e},[e]),I.useEffect(()=>{n.current!==r&&(i.current?.(r),n.current=r)},[r,n]),[r,o,i]}function Co(t){return typeof t=="function"}var b=v(require("react"),1);var _e=v(require("react"),1),ze=v(require("react-dom"),1);var B=v(require("react"),1);var yt=require("react/jsx-runtime");function mt(t){let e=bo(t),r=B.forwardRef((o,n)=>{let{children:i,...c}=o,a=B.Children.toArray(i),l=a.find(Mo);if(l){let s=l.props.children,u=a.map(h=>h===l?B.Children.count(s)>1?B.Children.only(null):B.isValidElement(s)?s.props.children:null:h);return(0,yt.jsx)(e,{...c,ref:n,children:B.isValidElement(s)?B.cloneElement(s,void 0,u):null})}return(0,yt.jsx)(e,{...c,ref:n,children:i})});return r.displayName=`${t}.Slot`,r}function bo(t){let e=B.forwardRef((r,o)=>{let{children:n,...i}=r;if(B.isValidElement(n)){let c=Fo(n),a=jo(i,n.props);return n.type!==B.Fragment&&(a.ref=o?Ot(o,c):c),B.cloneElement(n,a)}return B.Children.count(n)>1?B.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var Ro=Symbol("radix.slottable");function Mo(t){return B.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Ro}function jo(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 Fo(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)}var He=require("react/jsx-runtime"),Bo=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],O=Bo.reduce((t,e)=>{let r=mt(`Primitive.${e}`),o=_e.forwardRef((n,i)=>{let{asChild:c,...a}=n,l=c?r:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,He.jsx)(l,{...a,ref:i})});return o.displayName=`Primitive.${e}`,{...t,[e]:o}},{});function Ve(t,e){t&&ze.flushSync(()=>t.dispatchEvent(e))}var et=v(require("react"),1);function $(t){let e=et.useRef(t);return et.useEffect(()=>{e.current=t}),et.useMemo(()=>(...r)=>e.current?.(...r),[])}var Ue=v(require("react"),1);function Ge(t,e=globalThis?.document){let r=$(t);Ue.useEffect(()=>{let o=n=>{n.key==="Escape"&&r(n)};return e.addEventListener("keydown",o,{capture:!0}),()=>e.removeEventListener("keydown",o,{capture:!0})},[r,e])}var _t=require("react/jsx-runtime"),So="DismissableLayer",Dt="dismissableLayer.update",Wo="dismissableLayer.pointerDownOutside",Eo="dismissableLayer.focusOutside",Ke,Ye=b.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),zt=b.forwardRef((t,e)=>{let{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:n,onFocusOutside:i,onInteractOutside:c,onDismiss:a,...l}=t,s=b.useContext(Ye),[u,h]=b.useState(null),p=u?.ownerDocument??globalThis?.document,[,g]=b.useState({}),R=_(e,x=>h(x)),d=Array.from(s.layers),[f]=[...s.layersWithOutsidePointerEventsDisabled].slice(-1),y=d.indexOf(f),L=u?d.indexOf(u):-1,M=s.layersWithOutsidePointerEventsDisabled.size>0,F=L>=y,j=Ao(x=>{let U=x.target,J=[...s.branches].some(ct=>ct.contains(U));!F||J||(n?.(x),c?.(x),x.defaultPrevented||a?.())},p),W=Oo(x=>{let U=x.target;[...s.branches].some(ct=>ct.contains(U))||(i?.(x),c?.(x),x.defaultPrevented||a?.())},p);return Ge(x=>{L===s.layers.size-1&&(o?.(x),!x.defaultPrevented&&a&&(x.preventDefault(),a()))},p),b.useEffect(()=>{if(u)return r&&(s.layersWithOutsidePointerEventsDisabled.size===0&&(Ke=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),s.layersWithOutsidePointerEventsDisabled.add(u)),s.layers.add(u),$e(),()=>{r&&s.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Ke)}},[u,p,r,s]),b.useEffect(()=>()=>{u&&(s.layers.delete(u),s.layersWithOutsidePointerEventsDisabled.delete(u),$e())},[u,s]),b.useEffect(()=>{let x=()=>g({});return document.addEventListener(Dt,x),()=>document.removeEventListener(Dt,x)},[]),(0,_t.jsx)(O.div,{...l,ref:R,style:{pointerEvents:M?F?"auto":"none":void 0,...t.style},onFocusCapture:H(t.onFocusCapture,W.onFocusCapture),onBlurCapture:H(t.onBlurCapture,W.onBlurCapture),onPointerDownCapture:H(t.onPointerDownCapture,j.onPointerDownCapture)})});zt.displayName=So;var Po="DismissableLayerBranch",No=b.forwardRef((t,e)=>{let r=b.useContext(Ye),o=b.useRef(null),n=_(e,o);return b.useEffect(()=>{let i=o.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),(0,_t.jsx)(O.div,{...t,ref:n})});No.displayName=Po;function Ao(t,e=globalThis?.document){let r=$(t),o=b.useRef(!1),n=b.useRef(()=>{});return b.useEffect(()=>{let i=a=>{if(a.target&&!o.current){let s=function(){Xe(Wo,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 Oo(t,e=globalThis?.document){let r=$(t),o=b.useRef(!1);return b.useEffect(()=>{let n=i=>{i.target&&!o.current&&Xe(Eo,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 $e(){let t=new CustomEvent(Dt);document.dispatchEvent(t)}function Xe(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?Ve(n,i):n.dispatchEvent(i)}var D=v(require("react"),1);var tr=require("react/jsx-runtime"),Ht="focusScope.autoFocusOnMount",Vt="focusScope.autoFocusOnUnmount",qe={bubbles:!1,cancelable:!0},To="FocusScope",Ut=D.forwardRef((t,e)=>{let{loop:r=!1,trapped:o=!1,onMountAutoFocus:n,onUnmountAutoFocus:i,...c}=t,[a,l]=D.useState(null),s=$(n),u=$(i),h=D.useRef(null),p=_(e,d=>l(d)),g=D.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;D.useEffect(()=>{if(o){let L=function(W){if(g.paused||!a)return;let x=W.target;a.contains(x)?h.current=x:Y(h.current,{select:!0})},M=function(W){if(g.paused||!a)return;let x=W.relatedTarget;x!==null&&(a.contains(x)||Y(h.current,{select:!0}))},F=function(W){if(document.activeElement===document.body)for(let U of W)U.removedNodes.length>0&&Y(a)};var d=L,f=M,y=F;document.addEventListener("focusin",L),document.addEventListener("focusout",M);let j=new MutationObserver(F);return a&&j.observe(a,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",L),document.removeEventListener("focusout",M),j.disconnect()}}},[o,a,g.paused]),D.useEffect(()=>{if(a){Qe.add(g);let d=document.activeElement;if(!a.contains(d)){let y=new CustomEvent(Ht,qe);a.addEventListener(Ht,s),a.dispatchEvent(y),y.defaultPrevented||(Io(Vo(er(a)),{select:!0}),document.activeElement===d&&Y(a))}return()=>{a.removeEventListener(Ht,s),setTimeout(()=>{let y=new CustomEvent(Vt,qe);a.addEventListener(Vt,u),a.dispatchEvent(y),y.defaultPrevented||Y(d??document.body,{select:!0}),a.removeEventListener(Vt,u),Qe.remove(g)},0)}}},[a,s,u,g]);let R=D.useCallback(d=>{if(!r&&!o||g.paused)return;let f=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,y=document.activeElement;if(f&&y){let L=d.currentTarget,[M,F]=Do(L);M&&F?!d.shiftKey&&y===F?(d.preventDefault(),r&&Y(M,{select:!0})):d.shiftKey&&y===M&&(d.preventDefault(),r&&Y(F,{select:!0})):y===L&&d.preventDefault()}},[r,o,g.paused]);return(0,tr.jsx)(O.div,{tabIndex:-1,...c,ref:p,onKeyDown:R})});Ut.displayName=To;function Io(t,{select:e=!1}={}){let r=document.activeElement;for(let o of t)if(Y(o,{select:e}),document.activeElement!==r)return}function Do(t){let e=er(t),r=Ze(e,t),o=Ze(e.reverse(),t);return[r,o]}function er(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 Ze(t,e){for(let r of t)if(!_o(r,{upTo:e}))return r}function _o(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 zo(t){return t instanceof HTMLInputElement&&"select"in t}function Y(t,{select:e=!1}={}){if(t&&t.focus){let r=document.activeElement;t.focus({preventScroll:!0}),t!==r&&zo(t)&&e&&t.select()}}var Qe=Ho();function Ho(){let t=[];return{add(e){let r=t[0];e!==r&&r?.pause(),t=Je(t,e),t.unshift(e)},remove(e){t=Je(t,e),t[0]?.resume()}}}function Je(t,e){let r=[...t],o=r.indexOf(e);return o!==-1&&r.splice(o,1),r}function Vo(t){return t.filter(e=>e.tagName!=="A")}var kt=v(require("react"),1),rr=v(require("react-dom"),1);var or=require("react/jsx-runtime"),Uo="Portal",Gt=kt.forwardRef((t,e)=>{let{container:r,...o}=t,[n,i]=kt.useState(!1);K(()=>i(!0),[]);let c=r||n&&globalThis?.document?.body;return c?rr.default.createPortal((0,or.jsx)(O.div,{...o,ref:e}),c):null});Gt.displayName=Uo;var N=v(require("react"),1);var nr=v(require("react"),1);function Go(t,e){return nr.useReducer((r,o)=>e[r][o]??r,t)}var lt=t=>{let{present:e,children:r}=t,o=Ko(e),n=typeof r=="function"?r({present:o.isPresent}):N.Children.only(r),i=_(o.ref,$o(n));return typeof r=="function"||o.isPresent?N.cloneElement(n,{ref:i}):null};lt.displayName="Presence";function Ko(t){let[e,r]=N.useState(),o=N.useRef(null),n=N.useRef(t),i=N.useRef("none"),c=t?"mounted":"unmounted",[a,l]=Go(c,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return N.useEffect(()=>{let s=Lt(o.current);i.current=a==="mounted"?s:"none"},[a]),K(()=>{let s=o.current,u=n.current;if(u!==t){let p=i.current,g=Lt(s);t?l("MOUNT"):g==="none"||s?.display==="none"?l("UNMOUNT"):l(u&&p!==g?"ANIMATION_OUT":"UNMOUNT"),n.current=t}},[t,l]),K(()=>{if(e){let s,u=e.ownerDocument.defaultView??window,h=g=>{let d=Lt(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=Lt(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:N.useCallback(s=>{o.current=s?getComputedStyle(s):null,r(s)},[])}}function Lt(t){return t?.animationName||"none"}function $o(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)}var ar=v(require("react"),1),Kt=0;function cr(){ar.useEffect(()=>{let t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??ir()),document.body.insertAdjacentElement("beforeend",t[1]??ir()),Kt++,()=>{Kt===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Kt--}},[])}function ir(){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 A=function(){return A=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},A.apply(this,arguments)};function wt(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 lr(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))}var jt=v(require("react"));var E=v(require("react"));var X="right-scroll-bar-position",q="width-before-scroll-bar",$t="with-scroll-bars-hidden",Yt="--removed-body-scroll-bar-size";function Ct(t,e){return typeof t=="function"?t(e):t&&(t.current=e),t}var sr=require("react");function dr(t,e){var r=(0,sr.useState)(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}var bt=v(require("react"));var Yo=typeof window<"u"?bt.useLayoutEffect:bt.useEffect,ur=new WeakMap;function Xt(t,e){var r=dr(e||null,function(o){return t.forEach(function(n){return Ct(n,o)})});return Yo(function(){var o=ur.get(r);if(o){var n=new Set(o),i=new Set(t),c=r.current;n.forEach(function(a){i.has(a)||Ct(a,null)}),i.forEach(function(a){n.has(a)||Ct(a,c)})}ur.set(r,t)},[t]),r}function Xo(t){return t}function qo(t,e){e===void 0&&(e=Xo);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 qt(t){t===void 0&&(t={});var e=qo(null);return e.options=A({async:!0,ssr:!1},t),e}var hr=v(require("react")),pr=function(t){var e=t.sideCar,r=wt(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 hr.createElement(o,A({},r))};pr.isSideCarExport=!0;function Zt(t,e){return t.useMedium(e),pr}var Rt=qt();var Qt=function(){},st=E.forwardRef(function(t,e){var r=E.useRef(null),o=E.useState({onScrollCapture:Qt,onWheelCapture:Qt,onTouchMoveCapture:Qt}),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,R=t.noIsolation,d=t.inert,f=t.allowPinchZoom,y=t.as,L=y===void 0?"div":y,M=t.gapMode,F=wt(t,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),j=p,W=Xt([r,e]),x=A(A({},F),n);return E.createElement(E.Fragment,null,u&&E.createElement(j,{sideCar:Rt,removeScrollBar:s,shards:h,noRelative:g,noIsolation:R,inert:d,setCallbacks:i,allowPinchZoom:!!f,lockRef:r,gapMode:M}),c?E.cloneElement(E.Children.only(a),A(A({},x),{ref:W})):E.createElement(L,A({},x,{className:l,ref:W}),a))});st.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};st.classNames={fullWidth:q,zeroRight:X};var w=v(require("react"));var ot=v(require("react"));var xr=v(require("react"));var gr;var fr=function(){if(gr)return gr;if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function Zo(){if(!document)return null;var t=document.createElement("style");t.type="text/css";var e=fr();return e&&t.setAttribute("nonce",e),t}function Qo(t,e){t.styleSheet?t.styleSheet.cssText=e:t.appendChild(document.createTextNode(e))}function Jo(t){var e=document.head||document.getElementsByTagName("head")[0];e.appendChild(t)}var Jt=function(){var t=0,e=null;return{add:function(r){t==0&&(e=Zo())&&(Qo(e,r),Jo(e)),t++},remove:function(){t--,!t&&e&&(e.parentNode&&e.parentNode.removeChild(e),e=null)}}};var te=function(){var t=Jt();return function(e,r){xr.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&r])}};var dt=function(){var t=te(),e=function(r){var o=r.styles,n=r.dynamic;return t(o,n),null};return e};var tn={left:0,top:0,right:0,gap:0},ee=function(t){return parseInt(t||"",10)||0},en=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[ee(r),ee(o),ee(n)]},re=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return tn;var e=en(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 rn=dt(),rt="data-scroll-locked",on=function(t,e,r,o){var n=t.left,i=t.top,c=t.right,a=t.gap;return r===void 0&&(r="margin"),`
|
|
2
|
+
.`.concat($t,` {
|
|
3
3
|
overflow: hidden `).concat(o,`;
|
|
4
4
|
padding-right: `).concat(a,"px ").concat(o,`;
|
|
5
5
|
}
|
|
@@ -33,16 +33,16 @@
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
body[`).concat(rt,`] {
|
|
36
|
-
`).concat(
|
|
36
|
+
`).concat(Yt,": ").concat(a,`px;
|
|
37
37
|
}
|
|
38
|
-
`)},
|
|
38
|
+
`)},vr=function(){var t=parseInt(document.body.getAttribute(rt)||"0",10);return isFinite(t)?t:0},nn=function(){ot.useEffect(function(){return document.body.setAttribute(rt,(vr()+1).toString()),function(){var t=vr()-1;t<=0?document.body.removeAttribute(rt):document.body.setAttribute(rt,t.toString())}},[])},oe=function(t){var e=t.noRelative,r=t.noImportant,o=t.gapMode,n=o===void 0?"margin":o;nn();var i=ot.useMemo(function(){return re(n)},[n]);return ot.createElement(rn,{styles:on(i,!e,n,r?"":"!important")})};var ne=!1;if(typeof window<"u")try{ut=Object.defineProperty({},"passive",{get:function(){return ne=!0,!0}}),window.addEventListener("test",ut,ut),window.removeEventListener("test",ut,ut)}catch{ne=!1}var ut,Z=ne?{passive:!1}:!1;var an=function(t){return t.tagName==="TEXTAREA"},yr=function(t,e){if(!(t instanceof Element))return!1;var r=window.getComputedStyle(t);return r[e]!=="hidden"&&!(r.overflowY===r.overflowX&&!an(t)&&r[e]==="visible")},cn=function(t){return yr(t,"overflowY")},ln=function(t){return yr(t,"overflowX")},ie=function(t,e){var r=e.ownerDocument,o=e;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var n=mr(t,o);if(n){var i=kr(t,o),c=i[1],a=i[2];if(c>a)return!0}o=o.parentNode}while(o&&o!==r.body);return!1},sn=function(t){var e=t.scrollTop,r=t.scrollHeight,o=t.clientHeight;return[e,r,o]},dn=function(t){var e=t.scrollLeft,r=t.scrollWidth,o=t.clientWidth;return[e,r,o]},mr=function(t,e){return t==="v"?cn(e):ln(e)},kr=function(t,e){return t==="v"?sn(e):dn(e)},un=function(t,e){return t==="h"&&e==="rtl"?-1:1},Lr=function(t,e,r,o,n){var i=un(t,window.getComputedStyle(e).direction),c=i*o,a=r.target,l=e.contains(a),s=!1,u=c>0,h=0,p=0;do{if(!a)break;var g=kr(t,a),R=g[0],d=g[1],f=g[2],y=d-f-i*R;(R||y)&&mr(t,a)&&(h+=y,p+=R);var L=a.parentNode;a=L&&L.nodeType===Node.DOCUMENT_FRAGMENT_NODE?L.host:L}while(!l&&a!==document.body||l&&(e.contains(a)||e===a));return(u&&(n&&Math.abs(h)<1||!n&&c>h)||!u&&(n&&Math.abs(p)<1||!n&&-c>p))&&(s=!0),s};var Mt=function(t){return"changedTouches"in t?[t.changedTouches[0].clientX,t.changedTouches[0].clientY]:[0,0]},wr=function(t){return[t.deltaX,t.deltaY]},Cr=function(t){return t&&"current"in t?t.current:t},hn=function(t,e){return t[0]===e[0]&&t[1]===e[1]},pn=function(t){return`
|
|
39
39
|
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|
40
40
|
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|
41
|
-
`)},
|
|
41
|
+
`)},gn=0,nt=[];function br(t){var e=w.useRef([]),r=w.useRef([0,0]),o=w.useRef(),n=w.useState(gn++)[0],i=w.useState(dt)[0],c=w.useRef(t);w.useEffect(function(){c.current=t},[t]),w.useEffect(function(){if(t.inert){document.body.classList.add("block-interactivity-".concat(n));var d=lr([t.lockRef.current],(t.shards||[]).map(Cr),!0).filter(Boolean);return d.forEach(function(f){return f.classList.add("allow-interactivity-".concat(n))}),function(){document.body.classList.remove("block-interactivity-".concat(n)),d.forEach(function(f){return f.classList.remove("allow-interactivity-".concat(n))})}}},[t.inert,t.lockRef.current,t.shards]);var a=w.useCallback(function(d,f){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!c.current.allowPinchZoom;var y=Mt(d),L=r.current,M="deltaX"in d?d.deltaX:L[0]-y[0],F="deltaY"in d?d.deltaY:L[1]-y[1],j,W=d.target,x=Math.abs(M)>Math.abs(F)?"h":"v";if("touches"in d&&x==="h"&&W.type==="range")return!1;var U=window.getSelection(),J=U&&U.anchorNode,ct=J?J===W||J.contains(W):!1;if(ct)return!1;var gt=ie(x,W);if(!gt)return!0;if(gt?j=x:(j=x==="v"?"h":"v",gt=ie(x,W)),!gt)return!1;if(!o.current&&"changedTouches"in d&&(M||F)&&(o.current=j),!j)return!0;var ke=o.current||j;return Lr(ke,f,d,ke==="h"?M:F,!0)},[]),l=w.useCallback(function(d){var f=d;if(!(!nt.length||nt[nt.length-1]!==i)){var y="deltaY"in f?wr(f):Mt(f),L=e.current.filter(function(j){return j.name===f.type&&(j.target===f.target||f.target===j.shadowParent)&&hn(j.delta,y)})[0];if(L&&L.should){f.cancelable&&f.preventDefault();return}if(!L){var M=(c.current.shards||[]).map(Cr).filter(Boolean).filter(function(j){return j.contains(f.target)}),F=M.length>0?a(f,M[0]):!c.current.noIsolation;F&&f.cancelable&&f.preventDefault()}}},[]),s=w.useCallback(function(d,f,y,L){var M={name:d,delta:f,target:y,should:L,shadowParent:fn(y)};e.current.push(M),setTimeout(function(){e.current=e.current.filter(function(F){return F!==M})},1)},[]),u=w.useCallback(function(d){r.current=Mt(d),o.current=void 0},[]),h=w.useCallback(function(d){s(d.type,wr(d),d.target,a(d,t.lockRef.current))},[]),p=w.useCallback(function(d){s(d.type,Mt(d),d.target,a(d,t.lockRef.current))},[]);w.useEffect(function(){return nt.push(i),t.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",l,Z),document.addEventListener("touchmove",l,Z),document.addEventListener("touchstart",u,Z),function(){nt=nt.filter(function(d){return d!==i}),document.removeEventListener("wheel",l,Z),document.removeEventListener("touchmove",l,Z),document.removeEventListener("touchstart",u,Z)}},[]);var g=t.removeScrollBar,R=t.inert;return w.createElement(w.Fragment,null,R?w.createElement(i,{styles:pn(n)}):null,g?w.createElement(oe,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function fn(t){for(var e=null;t!==null;)t instanceof ShadowRoot&&(e=t.host,t=t.host),t=t.parentNode;return e}var Rr=Zt(Rt,br);var Mr=jt.forwardRef(function(t,e){return jt.createElement(st,A({},t,{ref:e,sideCar:Rr}))});Mr.classNames=st.classNames;var ae=Mr;var xn=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},it=new WeakMap,Ft=new WeakMap,Bt={},ce=0,jr=function(t){return t&&(t.host||jr(t.parentNode))},vn=function(t,e){return e.map(function(r){if(t.contains(r))return r;var o=jr(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})},yn=function(t,e,r,o){var n=vn(e,Array.isArray(t)?t:[t]);Bt[r]||(Bt[r]=new WeakMap);var i=Bt[r],c=[],a=new Set,l=new Set(n),s=function(h){!h||a.has(h)||(a.add(h),s(h.parentNode))};n.forEach(s);var u=function(h){!h||l.has(h)||Array.prototype.forEach.call(h.children,function(p){if(a.has(p))u(p);else try{var g=p.getAttribute(o),R=g!==null&&g!=="false",d=(it.get(p)||0)+1,f=(i.get(p)||0)+1;it.set(p,d),i.set(p,f),c.push(p),d===1&&R&&Ft.set(p,!0),f===1&&p.setAttribute(r,"true"),R||p.setAttribute(o,"true")}catch(y){console.error("aria-hidden: cannot operate on ",p,y)}})};return u(e),a.clear(),ce++,function(){c.forEach(function(h){var p=it.get(h)-1,g=i.get(h)-1;it.set(h,p),i.set(h,g),p||(Ft.has(h)||h.removeAttribute(o),Ft.delete(h)),g||h.removeAttribute(r)}),ce--,ce||(it=new WeakMap,it=new WeakMap,Ft=new WeakMap,Bt={})}},Fr=function(t,e,r){r===void 0&&(r="data-aria-hidden");var o=Array.from(Array.isArray(t)?t:[t]),n=e||xn(t);return n?(o.push.apply(o,Array.from(n.querySelectorAll("[aria-live], script"))),yn(o,n,r,"aria-hidden")):function(){return null}};var m=require("react/jsx-runtime"),Wt="Dialog",[Br,tc]=Te(Wt),[mn,z]=Br(Wt),Sr=t=>{let{__scopeDialog:e,children:r,open:o,defaultOpen:n,onOpenChange:i,modal:c=!0}=t,a=k.useRef(null),l=k.useRef(null),[s,u]=De({prop:o,defaultProp:n??!1,onChange:i,caller:Wt});return(0,m.jsx)(mn,{scope:e,triggerRef:a,contentRef:l,contentId:xt(),titleId:xt(),descriptionId:xt(),open:s,onOpenChange:u,onOpenToggle:k.useCallback(()=>u(h=>!h),[u]),modal:c,children:r})};Sr.displayName=Wt;var Wr="DialogTrigger",Er=k.forwardRef((t,e)=>{let{__scopeDialog:r,...o}=t,n=z(Wr,r),i=_(e,n.triggerRef);return(0,m.jsx)(O.button,{type:"button","aria-haspopup":"dialog","aria-expanded":n.open,"aria-controls":n.contentId,"data-state":de(n.open),...o,ref:i,onClick:H(t.onClick,n.onOpenToggle)})});Er.displayName=Wr;var le="DialogPortal",[kn,Pr]=Br(le,{forceMount:void 0}),Nr=t=>{let{__scopeDialog:e,forceMount:r,children:o,container:n}=t,i=z(le,e);return(0,m.jsx)(kn,{scope:e,forceMount:r,children:k.Children.map(o,c=>(0,m.jsx)(lt,{present:r||i.open,children:(0,m.jsx)(Gt,{asChild:!0,container:n,children:c})}))})};Nr.displayName=le;var St="DialogOverlay",Ar=k.forwardRef((t,e)=>{let r=Pr(St,t.__scopeDialog),{forceMount:o=r.forceMount,...n}=t,i=z(St,t.__scopeDialog);return i.modal?(0,m.jsx)(lt,{present:o||i.open,children:(0,m.jsx)(wn,{...n,ref:e})}):null});Ar.displayName=St;var Ln=mt("DialogOverlay.RemoveScroll"),wn=k.forwardRef((t,e)=>{let{__scopeDialog:r,...o}=t,n=z(St,r);return(0,m.jsx)(ae,{as:Ln,allowPinchZoom:!0,shards:[n.contentRef],children:(0,m.jsx)(O.div,{"data-state":de(n.open),...o,ref:e,style:{pointerEvents:"auto",...o.style}})})}),Q="DialogContent",Or=k.forwardRef((t,e)=>{let r=Pr(Q,t.__scopeDialog),{forceMount:o=r.forceMount,...n}=t,i=z(Q,t.__scopeDialog);return(0,m.jsx)(lt,{present:o||i.open,children:i.modal?(0,m.jsx)(Cn,{...n,ref:e}):(0,m.jsx)(bn,{...n,ref:e})})});Or.displayName=Q;var Cn=k.forwardRef((t,e)=>{let r=z(Q,t.__scopeDialog),o=k.useRef(null),n=_(e,r.contentRef,o);return k.useEffect(()=>{let i=o.current;if(i)return Fr(i)},[]),(0,m.jsx)(Tr,{...t,ref:n,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:H(t.onCloseAutoFocus,i=>{i.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:H(t.onPointerDownOutside,i=>{let c=i.detail.originalEvent,a=c.button===0&&c.ctrlKey===!0;(c.button===2||a)&&i.preventDefault()}),onFocusOutside:H(t.onFocusOutside,i=>i.preventDefault())})}),bn=k.forwardRef((t,e)=>{let r=z(Q,t.__scopeDialog),o=k.useRef(!1),n=k.useRef(!1);return(0,m.jsx)(Tr,{...t,ref:e,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:i=>{t.onCloseAutoFocus?.(i),i.defaultPrevented||(o.current||r.triggerRef.current?.focus(),i.preventDefault()),o.current=!1,n.current=!1},onInteractOutside:i=>{t.onInteractOutside?.(i),i.defaultPrevented||(o.current=!0,i.detail.originalEvent.type==="pointerdown"&&(n.current=!0));let c=i.target;r.triggerRef.current?.contains(c)&&i.preventDefault(),i.detail.originalEvent.type==="focusin"&&n.current&&i.preventDefault()}})}),Tr=k.forwardRef((t,e)=>{let{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:n,onCloseAutoFocus:i,...c}=t,a=z(Q,r),l=k.useRef(null),s=_(e,l);return cr(),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(Ut,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:n,onUnmountAutoFocus:i,children:(0,m.jsx)(zt,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":de(a.open),...c,ref:s,onDismiss:()=>a.onOpenChange(!1)})}),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(Mn,{titleId:a.titleId}),(0,m.jsx)(Fn,{contentRef:l,descriptionId:a.descriptionId})]})]})}),se="DialogTitle",Ir=k.forwardRef((t,e)=>{let{__scopeDialog:r,...o}=t,n=z(se,r);return(0,m.jsx)(O.h2,{id:n.titleId,...o,ref:e})});Ir.displayName=se;var Dr="DialogDescription",_r=k.forwardRef((t,e)=>{let{__scopeDialog:r,...o}=t,n=z(Dr,r);return(0,m.jsx)(O.p,{id:n.descriptionId,...o,ref:e})});_r.displayName=Dr;var zr="DialogClose",Rn=k.forwardRef((t,e)=>{let{__scopeDialog:r,...o}=t,n=z(zr,r);return(0,m.jsx)(O.button,{type:"button",...o,ref:e,onClick:H(t.onClick,()=>n.onOpenChange(!1))})});Rn.displayName=zr;function de(t){return t?"open":"closed"}var Hr="DialogTitleWarning",[ec,Vr]=Oe(Hr,{contentName:Q,titleName:se,docsSlug:"dialog"}),Mn=({titleId:t})=>{let e=Vr(Hr),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
|
|
45
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return k.useEffect(()=>{t&&(document.getElementById(t)||console.error(r))},[r,t]),null},jn="DialogDescriptionWarning",Fn=({contentRef:t,descriptionId:e})=>{let o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Vr(jn).contentName}}.`;return k.useEffect(()=>{let n=t.current?.getAttribute("aria-describedby");e&&n&&(document.getElementById(e)||console.warn(o))},[o,t,e]),null},Ur=Sr,Gr=Er,Kr=Nr,ue=Ar,he=Or,pe=Ir,ge=_r;var $r=require("class-variance-authority");var V=require("react/jsx-runtime"),Yr=Ur,Xr=Gr;var Sn=Kr,qr=ht.forwardRef(({className:t,...e},r)=>(0,V.jsx)(ue,{className:S("fixed inset-0 z-50 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",t),...e,ref:r}));qr.displayName=ue.displayName;var Wn=(0,$r.cva)("fixed z-50 gap-4 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),fe=ht.forwardRef(({side:t="right",className:e,children:r,...o},n)=>(0,V.jsxs)(Sn,{children:[(0,V.jsx)(qr,{}),(0,V.jsx)(he,{ref:n,className:S(Wn({side:t}),e),...o,children:r})]}));fe.displayName=he.displayName;var En=({className:t,...e})=>(0,V.jsx)("div",{className:S("flex flex-col space-y-2 text-center sm:text-left",t),...e});En.displayName="SheetHeader";var Pn=({className:t,...e})=>(0,V.jsx)("div",{className:S("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t),...e});Pn.displayName="SheetFooter";var Nn=ht.forwardRef(({className:t,...e},r)=>(0,V.jsx)(pe,{ref:r,className:S("text-lg font-semibold text-foreground",t),...e}));Nn.displayName=pe.displayName;var An=ht.forwardRef(({className:t,...e},r)=>(0,V.jsx)(ge,{ref:r,className:S("text-sm text-muted-foreground",t),...e}));An.displayName=ge.displayName;var Et=require("lucide-react");var C=require("react/jsx-runtime");function Qr({navItems:t=[],logoHref:e="/",onLogoClick:r=()=>{},logo:o,secondaryLogo:n}){let[i,c]=(0,Zr.useState)(!1);return(0,C.jsx)("header",{className:"sticky top-0 z-60 w-full border-b border-border/20 bg-background/95 backdrop-blur supports-backdrop-filter:bg-background/60 pointer-events-auto uppercase",style:{pointerEvents:"auto"},children:(0,C.jsxs)("div",{className:"container flex h-16 items-center justify-between px-4 md:px-6",children:[(0,C.jsxs)("a",{href:e,className:"flex items-center gap-1 cursor-pointer group",onClick:()=>{r(),c(!1)},children:[(0,C.jsx)("h1",{className:"font-ddin text-1xl md:text-2xl tracking-tight",children:o}),n&&(0,C.jsx)("span",{className:"font-ddin text-1xl md:text-2xl tracking-tight text-muted-foreground",children:n})]}),(0,C.jsx)("div",{className:"hidden md:flex items-center gap-6",children:(0,C.jsx)(()=>(0,C.jsx)(Re,{children:(0,C.jsx)(Me,{className:"gap-2 md:gap-6",children:t.map((l,s)=>(0,C.jsx)(je,{children:(0,C.jsx)(Be,{className:S(Fe(),typeof l.label!="string"&&"h-12 w-12 p-0 bg-transparent hover:bg-muted/50 flex items-center justify-center rounded-full"),href:l.href,onClick:l.onClick,children:typeof l.label=="string"?(0,C.jsx)("span",{className:"font-ddin text-1xl",children:l.label}):l.label})},l.href||(typeof l.label=="string"?l.label:s)))})}),{})}),(0,C.jsxs)(Yr,{open:i,onOpenChange:c,children:[(0,C.jsx)(Xr,{asChild:!0,className:"md:hidden",children:(0,C.jsx)(Ee,{variant:"ghost",size:"icon","aria-label":"Toggle menu",children:i?(0,C.jsx)(Et.X,{className:"h-6 w-6"}):(0,C.jsx)(Et.Menu,{className:"h-6 w-6"})})}),(0,C.jsx)(fe,{side:"right",className:"w-100 border-l border-border/30 mt-16",children:(0,C.jsx)("div",{className:"flex min-h-[calc(100vh-5rem)] flex-col justify-center px-8 py-12 bg-background",children:(0,C.jsx)("nav",{className:"flex flex-col gap-12 md:gap-16",children:t.map((l,s)=>(0,C.jsx)("a",{href:l.href,onClick:()=>{l.onClick&&l.onClick(),c(!1)},className:`
|
|
46
46
|
w-full text-left
|
|
47
47
|
text-3xl md:text-4xl
|
|
48
48
|
font-ddin font-medium tracking-wider
|
|
@@ -51,5 +51,5 @@ For more information, see https://radix-ui.com/primitives/docs/components/${e.do
|
|
|
51
51
|
py-4 px-4 rounded-lg
|
|
52
52
|
hover:bg-muted/30 focus:outline-none focus:ring-2 focus:ring-ring
|
|
53
53
|
block
|
|
54
|
-
`,children:typeof l.label=="string"?(0,C.jsx)("span",{className:"font-ddin",children:l.label}):l.label},l.href||(typeof l.label=="string"?l.label:s)))})})})]})]})})}var at=
|
|
54
|
+
`,children:typeof l.label=="string"?(0,C.jsx)("span",{className:"font-ddin",children:l.label}):l.label},l.href||(typeof l.label=="string"?l.label:s)))})})})]})]})})}var at=v(require("react"),1);var xe=v(require("react"),1),ve={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ye=xe.default.createContext&&xe.default.createContext(ve);var On=["attr","size","title"];function Tn(t,e){if(t==null)return{};var r,o,n=In(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(o=0;o<i.length;o++)r=i[o],e.indexOf(r)===-1&&{}.propertyIsEnumerable.call(t,r)&&(n[r]=t[r])}return n}function In(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 Pt(){return Pt=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},Pt.apply(null,arguments)}function Jr(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),r.push.apply(r,o)}return r}function Nt(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Jr(Object(r),!0).forEach(function(o){Dn(t,o,r[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Jr(Object(r)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(r,o))})}return t}function Dn(t,e,r){return(e=_n(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function _n(t){var e=zn(t,"string");return typeof e=="symbol"?e:e+""}function zn(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 to(t){return t&&t.map((e,r)=>at.default.createElement(e.tag,Nt({key:r},e.attr),to(e.child)))}function eo(t){return e=>at.default.createElement(Hn,Pt({attr:Nt({},t.attr)},e),to(t.child))}function Hn(t){var e=r=>{var{attr:o,size:n,title:i}=t,c=Tn(t,On),a=n||r.size||"1em",l;return r.className&&(l=r.className),t.className&&(l=(l?l+" ":"")+t.className),at.default.createElement("svg",Pt({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},r.attr,o,c,{className:l,style:Nt(Nt({color:t.color||r.color},r.style),t.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),i&&at.default.createElement("title",null,i),t.children)};return ye!==void 0?at.default.createElement(ye.Consumer,null,r=>e(r)):e(ve)}function ro(t){return eo({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)}var P=require("react/jsx-runtime");function oo({links:t=[],socials:e=[],copyright:r,...o}){return(0,P.jsx)("footer",{className:"bg-background pt-12 pb-8 w-full font-ddin uppercase text-[10px] sm:text-xs",...o,children:(0,P.jsx)("div",{className:"container mx-auto px-6 max-w-[1400px]",children:(0,P.jsxs)("div",{className:"flex flex-col md:flex-row items-center justify-between gap-6 md:gap-4 text-muted-foreground",children:[(0,P.jsx)("div",{className:"flex items-center gap-6 order-3 md:order-1",children:e.map(n=>{let i=n.icon;return(0,P.jsx)("a",{href:n.href,className:"hover:text-foreground transition-colors",target:"_blank",rel:"noopener noreferrer","aria-label":n.label??"Social link",children:(0,P.jsx)(i,{className:"w-4 h-4"})},n.href)})}),(0,P.jsx)("ul",{className:"flex flex-wrap justify-center items-center gap-6 md:gap-10 order-1 md:order-2 font-medium tracking-widest text-foreground",children:t.map(n=>(0,P.jsx)("li",{children:(0,P.jsxs)("a",{href:n.href,onClick:n.onClick,target:n.isExternal?"_blank":void 0,rel:n.isExternal?"noopener noreferrer":void 0,className:"inline-flex items-center gap-1.5 hover:text-muted-foreground transition-colors",children:[(0,P.jsx)("span",{children:n.label}),n.isExternal&&(0,P.jsx)(ro,{className:"inline-block h-3.5 w-3.5 text-muted-foreground/60","aria-hidden":"true"})]})},n.href))}),r&&(0,P.jsx)("div",{className:"order-2 md:order-3 font-medium tracking-widest whitespace-nowrap",children:(0,P.jsxs)("a",{href:r?.companyUrl,target:"_blank",rel:"noopener noreferrer",className:"focus-visible:underline outline-none",children:["\xA9 ",new Date().getFullYear()," ",r?.companyName]})})]})})})}var At=require("react/jsx-runtime");function no({header:t,footer:e,children:r}){return(0,At.jsxs)("div",{className:"min-h-screen bg-background text-foreground font-ddin flex flex-col",children:[t,(0,At.jsx)("div",{className:"flex-1",children:r}),e]})}var io=v(require("react"),1),ao=require("lucide-react"),pt=require("react/jsx-runtime"),me=io.forwardRef(({variant:t="none",itemCount:e=0,children:r,...o},n)=>(0,pt.jsxs)("button",{ref:n,className:"relative flex items-center justify-center rounded-full transition-all duration-200 outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 hover:bg-muted/50 active:scale-95 h-12 w-12 p-0 bg-transparent",...o,children:[t==="cart"?(0,pt.jsx)(ao.ShoppingCart,{className:"text-foreground h-7 w-7"}):r,e>0&&(0,pt.jsx)("span",{className:"absolute -top-1.5 -right-1.5 flex items-center justify-center rounded-full bg-primary text-primary-foreground text-[10px] font-bold px-1.5 py-0.5 min-w-[18px] h-[18px] shadow-sm animate-in zoom-in duration-300",children:e>99?"99+":e})]}));me.displayName="IconWithBadge";0&&(module.exports={Footer,Header,IconWithBadge,Layout});
|
|
55
55
|
//# sourceMappingURL=index.cjs.map
|