@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.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 i of so(e))!ho.call(t,i)&&i!==r&&ft(t,i,{get:()=>e[i],enumerable:!(o=lo(e,i))||o.enumerable});return t};var x=(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 Hi={};po(Hi,{Footer:()=>oo,Header:()=>Qr,IconWithBadge:()=>ye,Layout:()=>io});module.exports=go(Hi);var Zr=require("react");var Gi=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("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&&(0,G.jsx)(ko,{})]})}function Me({className:t,...e}){return(0,G.jsx)(tt.NavigationMenu.List,{"data-slot":"navigation-menu-list",className:S("kui:group kui:flex kui:flex-1 kui:list-none kui:items-center kui:justify-center kui:gap-0",t),...e})}function je({className:t,...e}){return(0,G.jsx)(tt.NavigationMenu.Item,{"data-slot":"navigation-menu-item",className:S("kui:relative",t),...e})}var Fe=(0,be.cva)("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 ko({className:t,...e}){return(0,G.jsx)("div",{className:S("kui:absolute kui:top-full kui:left-0 kui:isolate kui:z-50 kui:flex kui:justify-center"),children:(0,G.jsx)(tt.NavigationMenu.Viewport,{"data-slot":"navigation-menu-viewport",className:S("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 Be({className:t,...e}){return(0,G.jsx)(tt.NavigationMenu.Link,{"data-slot":"navigation-menu-link",className:S("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})}var Yi=require("react"),Se=require("class-variance-authority"),We=require("radix-ui");var Pe=require("react/jsx-runtime"),xo=(0,Se.cva)("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 Ee({className:t,variant:e="default",size:r="default",asChild:o=!1,...i}){let n=o?We.Slot.Root:"button";return(0,Pe.jsx)(n,{"data-slot":"button","data-variant":e,"data-size":r,className:S(xo({variant:e,size:r,className:t})),...i})}var ht=x(require("react"),1);var m=x(require("react"),1);var Zi=!!(typeof window<"u"&&window.document&&window.document.createElement);function H(t,e,{checkForDefaultPrevented:r=!0}={}){return function(i){if(t?.(i),r===!1||!i.defaultPrevented)return e?.(i)}}var Ae=x(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(i=>{let n=Ne(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():Ne(t[i],null)}}}}function _(...t){return Ae.useCallback(Ot(...t),t)}var T=x(require("react"),1),Tt=require("react/jsx-runtime");function Oe(t,e){let r=T.createContext(e),o=n=>{let{children:c,...a}=n,l=T.useMemo(()=>a,Object.values(a));return(0,Tt.jsx)(r.Provider,{value:l,children:c})};o.displayName=t+"Provider";function i(n){let c=T.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 Te(t,e=[]){let r=[];function o(n,c){let a=T.createContext(c),l=r.length;r=[...r,c];let s=h=>{let{scope:p,children:g,...R}=h,u=p?.[t]?.[l]||a,f=T.useMemo(()=>R,Object.values(R));return(0,Tt.jsx)(u.Provider,{value:f,children:g})};s.displayName=n+"Provider";function d(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 \`${n}\``)}return[s,d]}let i=()=>{let n=r.map(c=>T.createContext(c));return function(a){let l=a?.[t]||n;return T.useMemo(()=>({[`__scope${t}`]:{...a,[t]:l}}),[a,l])}};return i.scopeName=t,[o,vo(i,...e)]}function vo(...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 T.useMemo(()=>({[`__scope${e.scopeName}`]:c}),[c])}};return r.scopeName=e.scopeName,r}var It=x(require("react"),1);var Ie=x(require("react"),1),K=globalThis?.document?Ie.useLayoutEffect:()=>{};var yo=It[" useId ".trim().toString()]||(()=>{}),mo=0;function kt(t){let[e,r]=It.useState(yo());return K(()=>{t||r(o=>o??String(mo++))},[t]),t||(e?`radix-${e}`:"")}var I=x(require("react"),1);var xt=x(require("react"),1);var Lo=I[" useInsertionEffect ".trim().toString()]||K;function De({prop:t,defaultProp:e,onChange:r=()=>{},caller:o}){let[i,n,c]=wo({defaultProp:e,onChange:r}),a=t!==void 0,l=a?t:i;{let d=I.useRef(t!==void 0);I.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=I.useCallback(d=>{if(a){let h=Co(d)?d(t):d;h!==t&&c.current?.(h)}else n(d)},[a,t,n,c]);return[l,s]}function wo({defaultProp:t,onChange:e}){let[r,o]=I.useState(t),i=I.useRef(r),n=I.useRef(e);return Lo(()=>{n.current=e},[e]),I.useEffect(()=>{i.current!==r&&(n.current?.(r),i.current=r)},[r,i]),[r,o,n]}function Co(t){return typeof t=="function"}var b=x(require("react"),1);var _e=x(require("react"),1),ze=x(require("react-dom"),1);var B=x(require("react"),1);var vt=require("react/jsx-runtime");function yt(t){let e=bo(t),r=B.forwardRef((o,i)=>{let{children:n,...c}=o,a=B.Children.toArray(n),l=a.find(Mo);if(l){let s=l.props.children,d=a.map(h=>h===l?B.Children.count(s)>1?B.Children.only(null):B.isValidElement(s)?s.props.children:null:h);return(0,vt.jsx)(e,{...c,ref:i,children:B.isValidElement(s)?B.cloneElement(s,void 0,d):null})}return(0,vt.jsx)(e,{...c,ref:i,children:n})});return r.displayName=`${t}.Slot`,r}function bo(t){let e=B.forwardRef((r,o)=>{let{children:i,...n}=r;if(B.isValidElement(i)){let c=Fo(i),a=jo(n,i.props);return i.type!==B.Fragment&&(a.ref=o?Ot(o,c):c),B.cloneElement(i,a)}return B.Children.count(i)>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 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 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=yt(`Primitive.${e}`),o=_e.forwardRef((i,n)=>{let{asChild:c,...a}=i,l=c?r:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),(0,He.jsx)(l,{...a,ref:n})});return o.displayName=`Primitive.${e}`,{...t,[e]:o}},{});function Ve(t,e){t&&ze.flushSync(()=>t.dispatchEvent(e))}var et=x(require("react"),1);function $(t){let e=et.useRef(t);return et.useEffect(()=>{e.current=t}),et.useMemo(()=>(...r)=>e.current?.(...r),[])}var Ue=x(require("react"),1);function Ge(t,e=globalThis?.document){let r=$(t);Ue.useEffect(()=>{let o=i=>{i.key==="Escape"&&r(i)};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:i,onFocusOutside:n,onInteractOutside:c,onDismiss:a,...l}=t,s=b.useContext(Ye),[d,h]=b.useState(null),p=d?.ownerDocument??globalThis?.document,[,g]=b.useState({}),R=_(e,k=>h(k)),u=Array.from(s.layers),[f]=[...s.layersWithOutsidePointerEventsDisabled].slice(-1),v=u.indexOf(f),L=d?u.indexOf(d):-1,M=s.layersWithOutsidePointerEventsDisabled.size>0,F=L>=v,j=Ao(k=>{let U=k.target,J=[...s.branches].some(ct=>ct.contains(U));!F||J||(i?.(k),c?.(k),k.defaultPrevented||a?.())},p),W=Oo(k=>{let U=k.target;[...s.branches].some(ct=>ct.contains(U))||(n?.(k),c?.(k),k.defaultPrevented||a?.())},p);return Ge(k=>{L===s.layers.size-1&&(o?.(k),!k.defaultPrevented&&a&&(k.preventDefault(),a()))},p),b.useEffect(()=>{if(d)return r&&(s.layersWithOutsidePointerEventsDisabled.size===0&&(Ke=p.body.style.pointerEvents,p.body.style.pointerEvents="none"),s.layersWithOutsidePointerEventsDisabled.add(d)),s.layers.add(d),$e(),()=>{r&&s.layersWithOutsidePointerEventsDisabled.size===1&&(p.body.style.pointerEvents=Ke)}},[d,p,r,s]),b.useEffect(()=>()=>{d&&(s.layers.delete(d),s.layersWithOutsidePointerEventsDisabled.delete(d),$e())},[d,s]),b.useEffect(()=>{let k=()=>g({});return document.addEventListener(Dt,k),()=>document.removeEventListener(Dt,k)},[]),(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),i=_(e,o);return b.useEffect(()=>{let n=o.current;if(n)return r.branches.add(n),()=>{r.branches.delete(n)}},[r.branches]),(0,_t.jsx)(O.div,{...t,ref:i})});No.displayName=Po;function Ao(t,e=globalThis?.document){let r=$(t),o=b.useRef(!1),i=b.useRef(()=>{});return b.useEffect(()=>{let n=a=>{if(a.target&&!o.current){let s=function(){Xe(Wo,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 Oo(t,e=globalThis?.document){let r=$(t),o=b.useRef(!1);return b.useEffect(()=>{let i=n=>{n.target&&!o.current&&Xe(Eo,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 $e(){let t=new CustomEvent(Dt);document.dispatchEvent(t)}function Xe(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?Ve(i,n):i.dispatchEvent(n)}var D=x(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:i,onUnmountAutoFocus:n,...c}=t,[a,l]=D.useState(null),s=$(i),d=$(n),h=D.useRef(null),p=_(e,u=>l(u)),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 k=W.target;a.contains(k)?h.current=k:Y(h.current,{select:!0})},M=function(W){if(g.paused||!a)return;let k=W.relatedTarget;k!==null&&(a.contains(k)||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 u=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 u=document.activeElement;if(!a.contains(u)){let v=new CustomEvent(Ht,qe);a.addEventListener(Ht,s),a.dispatchEvent(v),v.defaultPrevented||(Io(Vo(er(a)),{select:!0}),document.activeElement===u&&Y(a))}return()=>{a.removeEventListener(Ht,s),setTimeout(()=>{let v=new CustomEvent(Vt,qe);a.addEventListener(Vt,d),a.dispatchEvent(v),v.defaultPrevented||Y(u??document.body,{select:!0}),a.removeEventListener(Vt,d),Qe.remove(g)},0)}}},[a,s,d,g]);let R=D.useCallback(u=>{if(!r&&!o||g.paused)return;let f=u.key==="Tab"&&!u.altKey&&!u.ctrlKey&&!u.metaKey,v=document.activeElement;if(f&&v){let L=u.currentTarget,[M,F]=Do(L);M&&F?!u.shiftKey&&v===F?(u.preventDefault(),r&&Y(M,{select:!0})):u.shiftKey&&v===M&&(u.preventDefault(),r&&Y(F,{select:!0})):v===L&&u.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 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 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 mt=x(require("react"),1),rr=x(require("react-dom"),1);var or=require("react/jsx-runtime"),Uo="Portal",Gt=mt.forwardRef((t,e)=>{let{container:r,...o}=t,[i,n]=mt.useState(!1);K(()=>n(!0),[]);let c=r||i&&globalThis?.document?.body;return c?rr.default.createPortal((0,or.jsx)(O.div,{...o,ref:e}),c):null});Gt.displayName=Uo;var N=x(require("react"),1);var ir=x(require("react"),1);function Go(t,e){return ir.useReducer((r,o)=>e[r][o]??r,t)}var lt=t=>{let{present:e,children:r}=t,o=Ko(e),i=typeof r=="function"?r({present:o.isPresent}):N.Children.only(r),n=_(o.ref,$o(i));return typeof r=="function"||o.isPresent?N.cloneElement(i,{ref:n}):null};lt.displayName="Presence";function Ko(t){let[e,r]=N.useState(),o=N.useRef(null),i=N.useRef(t),n=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);n.current=a==="mounted"?s:"none"},[a]),K(()=>{let s=o.current,d=i.current;if(d!==t){let p=n.current,g=Lt(s);t?l("MOUNT"):g==="none"||s?.display==="none"?l("UNMOUNT"):l(d&&p!==g?"ANIMATION_OUT":"UNMOUNT"),i.current=t}},[t,l]),K(()=>{if(e){let s,d=e.ownerDocument.defaultView??window,h=g=>{let u=Lt(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=Lt(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: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=x(require("react"),1),Kt=0;function cr(){ar.useEffect(()=>{let t=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",t[0]??nr()),document.body.insertAdjacentElement("beforeend",t[1]??nr()),Kt++,()=>{Kt===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Kt--}},[])}function nr(){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,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},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 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 lr(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))}var jt=x(require("react"));var E=x(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 ur(t,e){var r=(0,sr.useState)(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}var bt=x(require("react"));var Yo=typeof window<"u"?bt.useLayoutEffect:bt.useEffect,dr=new WeakMap;function Xt(t,e){var r=ur(e||null,function(o){return t.forEach(function(i){return Ct(i,o)})});return Yo(function(){var o=dr.get(r);if(o){var i=new Set(o),n=new Set(t),c=r.current;i.forEach(function(a){n.has(a)||Ct(a,null)}),n.forEach(function(a){i.has(a)||Ct(a,c)})}dr.set(r,t)},[t]),r}function Xo(t){return t}function qo(t,e){e===void 0&&(e=Xo);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 qt(t){t===void 0&&(t={});var e=qo(null);return e.options=A({async:!0,ssr:!1},t),e}var hr=x(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}),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,R=t.noIsolation,u=t.inert,f=t.allowPinchZoom,v=t.as,L=v===void 0?"div":v,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]),k=A(A({},F),i);return E.createElement(E.Fragment,null,d&&E.createElement(j,{sideCar:Rt,removeScrollBar:s,shards:h,noRelative:g,noIsolation:R,inert:u,setCallbacks:n,allowPinchZoom:!!f,lockRef:r,gapMode:M}),c?E.cloneElement(E.Children.only(a),A(A({},k),{ref:W})):E.createElement(L,A({},k,{className:l,ref:W}),a))});st.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};st.classNames={fullWidth:q,zeroRight:X};var w=x(require("react"));var ot=x(require("react"));var kr=x(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){kr.useEffect(function(){return t.add(e),function(){t.remove()}},[e&&r])}};var ut=function(){var t=te(),e=function(r){var o=r.styles,i=r.dynamic;return t(o,i),null};return e};var ti={left:0,top:0,right:0,gap:0},ee=function(t){return parseInt(t||"",10)||0},ei=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[ee(r),ee(o),ee(i)]},re=function(t){if(t===void 0&&(t="margin"),typeof window>"u")return ti;var e=ei(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 ri=ut(),rt="data-scroll-locked",oi=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
|
+
.`.concat($t,` {
|
|
3
3
|
overflow: hidden `).concat(o,`;
|
|
4
4
|
padding-right: `).concat(a,"px ").concat(o,`;
|
|
5
5
|
}
|
|
@@ -7,8 +7,8 @@
|
|
|
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;
|
|
@@ -33,23 +33,23 @@
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
body[`).concat(rt,`] {
|
|
36
|
-
`).concat(
|
|
36
|
+
`).concat(Yt,": ").concat(a,`px;
|
|
37
37
|
}
|
|
38
|
-
`)},
|
|
38
|
+
`)},xr=function(){var t=parseInt(document.body.getAttribute(rt)||"0",10);return isFinite(t)?t:0},ii=function(){ot.useEffect(function(){return document.body.setAttribute(rt,(xr()+1).toString()),function(){var t=xr()-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,i=o===void 0?"margin":o;ii();var n=ot.useMemo(function(){return re(i)},[i]);return ot.createElement(ri,{styles:oi(n,!e,i,r?"":"!important")})};var ie=!1;if(typeof window<"u")try{dt=Object.defineProperty({},"passive",{get:function(){return ie=!0,!0}}),window.addEventListener("test",dt,dt),window.removeEventListener("test",dt,dt)}catch{ie=!1}var dt,Z=ie?{passive:!1}:!1;var ni=function(t){return t.tagName==="TEXTAREA"},vr=function(t,e){if(!(t instanceof Element))return!1;var r=window.getComputedStyle(t);return r[e]!=="hidden"&&!(r.overflowY===r.overflowX&&!ni(t)&&r[e]==="visible")},ai=function(t){return vr(t,"overflowY")},ci=function(t){return vr(t,"overflowX")},ne=function(t,e){var r=e.ownerDocument,o=e;do{typeof ShadowRoot<"u"&&o instanceof ShadowRoot&&(o=o.host);var i=yr(t,o);if(i){var n=mr(t,o),c=n[1],a=n[2];if(c>a)return!0}o=o.parentNode}while(o&&o!==r.body);return!1},li=function(t){var e=t.scrollTop,r=t.scrollHeight,o=t.clientHeight;return[e,r,o]},si=function(t){var e=t.scrollLeft,r=t.scrollWidth,o=t.clientWidth;return[e,r,o]},yr=function(t,e){return t==="v"?ai(e):ci(e)},mr=function(t,e){return t==="v"?li(e):si(e)},ui=function(t,e){return t==="h"&&e==="rtl"?-1:1},Lr=function(t,e,r,o,i){var n=ui(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=mr(t,a),R=g[0],u=g[1],f=g[2],v=u-f-n*R;(R||v)&&yr(t,a)&&(h+=v,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(d&&(i&&Math.abs(h)<1||!i&&c>h)||!d&&(i&&Math.abs(p)<1||!i&&-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},di=function(t,e){return t[0]===e[0]&&t[1]===e[1]},hi=function(t){return`
|
|
39
39
|
.block-interactivity-`.concat(t,` {pointer-events: none;}
|
|
40
40
|
.allow-interactivity-`).concat(t,` {pointer-events: all;}
|
|
41
|
-
`)},
|
|
41
|
+
`)},pi=0,it=[];function br(t){var e=w.useRef([]),r=w.useRef([0,0]),o=w.useRef(),i=w.useState(pi++)[0],n=w.useState(ut)[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(i));var u=lr([t.lockRef.current],(t.shards||[]).map(Cr),!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=w.useCallback(function(u,f){if("touches"in u&&u.touches.length===2||u.type==="wheel"&&u.ctrlKey)return!c.current.allowPinchZoom;var v=Mt(u),L=r.current,M="deltaX"in u?u.deltaX:L[0]-v[0],F="deltaY"in u?u.deltaY:L[1]-v[1],j,W=u.target,k=Math.abs(M)>Math.abs(F)?"h":"v";if("touches"in u&&k==="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=ne(k,W);if(!gt)return!0;if(gt?j=k:(j=k==="v"?"h":"v",gt=ne(k,W)),!gt)return!1;if(!o.current&&"changedTouches"in u&&(M||F)&&(o.current=j),!j)return!0;var me=o.current||j;return Lr(me,f,u,me==="h"?M:F,!0)},[]),l=w.useCallback(function(u){var f=u;if(!(!it.length||it[it.length-1]!==n)){var v="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)&&di(j.delta,v)})[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(u,f,v,L){var M={name:u,delta:f,target:v,should:L,shadowParent:gi(v)};e.current.push(M),setTimeout(function(){e.current=e.current.filter(function(F){return F!==M})},1)},[]),d=w.useCallback(function(u){r.current=Mt(u),o.current=void 0},[]),h=w.useCallback(function(u){s(u.type,wr(u),u.target,a(u,t.lockRef.current))},[]),p=w.useCallback(function(u){s(u.type,Mt(u),u.target,a(u,t.lockRef.current))},[]);w.useEffect(function(){return it.push(n),t.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:p}),document.addEventListener("wheel",l,Z),document.addEventListener("touchmove",l,Z),document.addEventListener("touchstart",d,Z),function(){it=it.filter(function(u){return u!==n}),document.removeEventListener("wheel",l,Z),document.removeEventListener("touchmove",l,Z),document.removeEventListener("touchstart",d,Z)}},[]);var g=t.removeScrollBar,R=t.inert;return w.createElement(w.Fragment,null,R?w.createElement(n,{styles:hi(i)}):null,g?w.createElement(oe,{noRelative:t.noRelative,gapMode:t.gapMode}):null)}function gi(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 fi=function(t){if(typeof document>"u")return null;var e=Array.isArray(t)?t[0]:t;return e.ownerDocument.body},nt=new WeakMap,Ft=new WeakMap,Bt={},ce=0,jr=function(t){return t&&(t.host||jr(t.parentNode))},ki=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})},xi=function(t,e,r,o){var i=ki(e,Array.isArray(t)?t:[t]);Bt[r]||(Bt[r]=new WeakMap);var n=Bt[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),R=g!==null&&g!=="false",u=(nt.get(p)||0)+1,f=(n.get(p)||0)+1;nt.set(p,u),n.set(p,f),c.push(p),u===1&&R&&Ft.set(p,!0),f===1&&p.setAttribute(r,"true"),R||p.setAttribute(o,"true")}catch(v){console.error("aria-hidden: cannot operate on ",p,v)}})};return d(e),a.clear(),ce++,function(){c.forEach(function(h){var p=nt.get(h)-1,g=n.get(h)-1;nt.set(h,p),n.set(h,g),p||(Ft.has(h)||h.removeAttribute(o),Ft.delete(h)),g||h.removeAttribute(r)}),ce--,ce||(nt=new WeakMap,nt=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]),i=e||fi(t);return i?(o.push.apply(o,Array.from(i.querySelectorAll("[aria-live], script"))),xi(o,i,r,"aria-hidden")):function(){return null}};var y=require("react/jsx-runtime"),Wt="Dialog",[Br,tc]=Te(Wt),[vi,z]=Br(Wt),Sr=t=>{let{__scopeDialog:e,children:r,open:o,defaultOpen:i,onOpenChange:n,modal:c=!0}=t,a=m.useRef(null),l=m.useRef(null),[s,d]=De({prop:o,defaultProp:i??!1,onChange:n,caller:Wt});return(0,y.jsx)(vi,{scope:e,triggerRef:a,contentRef:l,contentId:kt(),titleId:kt(),descriptionId:kt(),open:s,onOpenChange:d,onOpenToggle:m.useCallback(()=>d(h=>!h),[d]),modal:c,children:r})};Sr.displayName=Wt;var Wr="DialogTrigger",Er=m.forwardRef((t,e)=>{let{__scopeDialog:r,...o}=t,i=z(Wr,r),n=_(e,i.triggerRef);return(0,y.jsx)(O.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":ue(i.open),...o,ref:n,onClick:H(t.onClick,i.onOpenToggle)})});Er.displayName=Wr;var le="DialogPortal",[yi,Pr]=Br(le,{forceMount:void 0}),Nr=t=>{let{__scopeDialog:e,forceMount:r,children:o,container:i}=t,n=z(le,e);return(0,y.jsx)(yi,{scope:e,forceMount:r,children:m.Children.map(o,c=>(0,y.jsx)(lt,{present:r||n.open,children:(0,y.jsx)(Gt,{asChild:!0,container:i,children:c})}))})};Nr.displayName=le;var St="DialogOverlay",Ar=m.forwardRef((t,e)=>{let r=Pr(St,t.__scopeDialog),{forceMount:o=r.forceMount,...i}=t,n=z(St,t.__scopeDialog);return n.modal?(0,y.jsx)(lt,{present:o||n.open,children:(0,y.jsx)(Li,{...i,ref:e})}):null});Ar.displayName=St;var mi=yt("DialogOverlay.RemoveScroll"),Li=m.forwardRef((t,e)=>{let{__scopeDialog:r,...o}=t,i=z(St,r);return(0,y.jsx)(ae,{as:mi,allowPinchZoom:!0,shards:[i.contentRef],children:(0,y.jsx)(O.div,{"data-state":ue(i.open),...o,ref:e,style:{pointerEvents:"auto",...o.style}})})}),Q="DialogContent",Or=m.forwardRef((t,e)=>{let r=Pr(Q,t.__scopeDialog),{forceMount:o=r.forceMount,...i}=t,n=z(Q,t.__scopeDialog);return(0,y.jsx)(lt,{present:o||n.open,children:n.modal?(0,y.jsx)(wi,{...i,ref:e}):(0,y.jsx)(Ci,{...i,ref:e})})});Or.displayName=Q;var wi=m.forwardRef((t,e)=>{let r=z(Q,t.__scopeDialog),o=m.useRef(null),i=_(e,r.contentRef,o);return m.useEffect(()=>{let n=o.current;if(n)return Fr(n)},[]),(0,y.jsx)(Tr,{...t,ref:i,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:H(t.onCloseAutoFocus,n=>{n.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:H(t.onPointerDownOutside,n=>{let c=n.detail.originalEvent,a=c.button===0&&c.ctrlKey===!0;(c.button===2||a)&&n.preventDefault()}),onFocusOutside:H(t.onFocusOutside,n=>n.preventDefault())})}),Ci=m.forwardRef((t,e)=>{let r=z(Q,t.__scopeDialog),o=m.useRef(!1),i=m.useRef(!1);return(0,y.jsx)(Tr,{...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()}})}),Tr=m.forwardRef((t,e)=>{let{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:n,...c}=t,a=z(Q,r),l=m.useRef(null),s=_(e,l);return cr(),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(Ut,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:n,children:(0,y.jsx)(zt,{role:"dialog",id:a.contentId,"aria-describedby":a.descriptionId,"aria-labelledby":a.titleId,"data-state":ue(a.open),...c,ref:s,onDismiss:()=>a.onOpenChange(!1)})}),(0,y.jsxs)(y.Fragment,{children:[(0,y.jsx)(Ri,{titleId:a.titleId}),(0,y.jsx)(ji,{contentRef:l,descriptionId:a.descriptionId})]})]})}),se="DialogTitle",Ir=m.forwardRef((t,e)=>{let{__scopeDialog:r,...o}=t,i=z(se,r);return(0,y.jsx)(O.h2,{id:i.titleId,...o,ref:e})});Ir.displayName=se;var Dr="DialogDescription",_r=m.forwardRef((t,e)=>{let{__scopeDialog:r,...o}=t,i=z(Dr,r);return(0,y.jsx)(O.p,{id:i.descriptionId,...o,ref:e})});_r.displayName=Dr;var zr="DialogClose",bi=m.forwardRef((t,e)=>{let{__scopeDialog:r,...o}=t,i=z(zr,r);return(0,y.jsx)(O.button,{type:"button",...o,ref:e,onClick:H(t.onClick,()=>i.onOpenChange(!1))})});bi.displayName=zr;function ue(t){return t?"open":"closed"}var Hr="DialogTitleWarning",[ec,Vr]=Oe(Hr,{contentName:Q,titleName:se,docsSlug:"dialog"}),Ri=({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 m.useEffect(()=>{t&&(document.getElementById(t)||console.error(r))},[r,t]),null},
|
|
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"?(0,C.jsx)("span",{className:"font-ddin",children:l.label}):l.label},l.href||(typeof l.label=="string"?l.label:s)))})})})]})]})})}var at=
|
|
45
|
+
For more information, see https://radix-ui.com/primitives/docs/components/${e.docsSlug}`;return m.useEffect(()=>{t&&(document.getElementById(t)||console.error(r))},[r,t]),null},Mi="DialogDescriptionWarning",ji=({contentRef:t,descriptionId:e})=>{let o=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Vr(Mi).contentName}}.`;return m.useEffect(()=>{let i=t.current?.getAttribute("aria-describedby");e&&i&&(document.getElementById(e)||console.warn(o))},[o,t,e]),null},Ur=Sr,Gr=Er,Kr=Nr,de=Ar,he=Or,pe=Ir,ge=_r;var $r=require("class-variance-authority");var V=require("react/jsx-runtime"),Yr=Ur,Xr=Gr;var Bi=Kr,qr=ht.forwardRef(({className:t,...e},r)=>(0,V.jsx)(de,{className:S("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}));qr.displayName=de.displayName;var Si=(0,$r.cva)("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"}}),fe=ht.forwardRef(({side:t="right",className:e,children:r,...o},i)=>(0,V.jsxs)(Bi,{children:[(0,V.jsx)(qr,{}),(0,V.jsx)(he,{ref:i,className:S(Si({side:t}),e),...o,children:r})]}));fe.displayName=he.displayName;var Wi=({className:t,...e})=>(0,V.jsx)("div",{className:S("kui:flex kui:flex-col kui:space-y-2 kui:text-center kui:sm:text-left",t),...e});Wi.displayName="SheetHeader";var Ei=({className:t,...e})=>(0,V.jsx)("div",{className:S("kui:flex kui:flex-col-reverse kui:sm:flex-row kui:sm:justify-end kui:sm:space-x-2",t),...e});Ei.displayName="SheetFooter";var Pi=ht.forwardRef(({className:t,...e},r)=>(0,V.jsx)(pe,{ref:r,className:S("kui:text-lg kui:font-semibold kui:text-foreground",t),...e}));Pi.displayName=pe.displayName;var Ni=ht.forwardRef(({className:t,...e},r)=>(0,V.jsx)(ge,{ref:r,className:S("kui:text-sm kui:text-muted-foreground",t),...e}));Ni.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:i}){let[n,c]=(0,Zr.useState)(!1);return(0,C.jsx)("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:(0,C.jsxs)("div",{className:"kui:container kui:flex kui:h-16 kui:items-center kui:justify-between kui:px-4 kui:md:px-6",children:[(0,C.jsxs)("a",{href:e,className:"kui:flex kui:items-center kui:gap-1 kui:cursor-pointer kui:group",onClick:()=>{r(),c(!1)},children:[(0,C.jsx)("h1",{className:"kui:font-ddin kui:text-1xl kui:md:text-2xl kui:tracking-tight",children:o}),i&&(0,C.jsx)("span",{className:"kui:font-ddin kui:text-1xl kui:md:text-2xl kui:tracking-tight kui:text-muted-foreground",children:i})]}),(0,C.jsx)("div",{className:"kui:hidden kui:md:flex kui:items-center kui:gap-6",children:(0,C.jsx)(()=>(0,C.jsx)(Re,{children:(0,C.jsx)(Me,{className:"kui:gap-2 kui:md:gap-6",children:t.map((l,s)=>(0,C.jsx)(je,{children:(0,C.jsx)(Be,{className:S(Fe(),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"?(0,C.jsx)("span",{className:"kui:font-ddin kui:text-1xl",children:l.label}):l.label})},l.href||(typeof l.label=="string"?l.label:s)))})}),{})}),(0,C.jsxs)(Yr,{open:n,onOpenChange:c,children:[(0,C.jsx)(Xr,{asChild:!0,className:"kui:md:hidden",children:(0,C.jsx)(Ee,{variant:"ghost",size:"icon","aria-label":"Toggle menu",children:n?(0,C.jsx)(Et.X,{className:"kui:h-6 kui:w-6"}):(0,C.jsx)(Et.Menu,{className:"kui:h-6 kui:w-6"})})}),(0,C.jsx)(fe,{side:"right",className:"kui:w-100 kui:border-l kui:border-border/30 kui:mt-16",children:(0,C.jsx)("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:(0,C.jsx)("nav",{className:"kui:flex kui:flex-col kui:gap-12 kui:md:gap-16",children:t.map((l,s)=>(0,C.jsx)("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"?(0,C.jsx)("span",{className:"kui:font-ddin",children:l.label}):l.label},l.href||(typeof l.label=="string"?l.label:s)))})})})]})]})})}var at=x(require("react"),1);var ke=x(require("react"),1),xe={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},ve=ke.default.createContext&&ke.default.createContext(xe);var Ai=["attr","size","title"];function Oi(t,e){if(t==null)return{};var r,o,i=Ti(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 Ti(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(i){return Object.getOwnPropertyDescriptor(t,i).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){Ii(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 Ii(t,e,r){return(e=Di(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Di(t){var e=_i(t,"string");return typeof e=="symbol"?e:e+""}function _i(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(zi,Pt({attr:Nt({},t.attr)},e),to(t.child))}function zi(t){var e=r=>{var{attr:o,size:i,title:n}=t,c=Oi(t,Ai),a=i||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"}),n&&at.default.createElement("title",null,n),t.children)};return ve!==void 0?at.default.createElement(ve.Consumer,null,r=>e(r)):e(xe)}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:"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:(0,P.jsx)("div",{className:"kui:container kui:mx-auto kui:px-6 kui:max-w-[1400px]",children:(0,P.jsxs)("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:[(0,P.jsx)("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(0,P.jsx)("a",{href:i.href,className:"kui:hover:text-foreground kui:transition-colors",target:"_blank",rel:"noopener noreferrer","aria-label":i.label??"Social link",children:(0,P.jsx)(n,{className:"kui:w-4 kui:h-4"})},i.href)})}),(0,P.jsx)("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=>(0,P.jsx)("li",{children:(0,P.jsxs)("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:[(0,P.jsx)("span",{children:i.label}),i.isExternal&&(0,P.jsx)(ro,{className:"kui:inline-block kui:h-3.5 kui:w-3.5 kui:text-muted-foreground/60","aria-hidden":"true"})]})},i.href))}),r&&(0,P.jsx)("div",{className:"kui:order-2 kui:md:order-3 kui:font-medium kui:tracking-widest kui:whitespace-nowrap",children:(0,P.jsxs)("a",{href:r?.companyUrl,target:"_blank",rel:"noopener noreferrer",className:"kui:focus-visible:underline kui:outline-none",children:["\xA9 ",new Date().getFullYear()," ",r?.companyName]})})]})})})}var At=require("react/jsx-runtime");function io({header:t,footer:e,children:r}){return(0,At.jsxs)("div",{className:"kui:min-h-screen kui:bg-background kui:text-foreground kui:font-ddin kui:flex kui:flex-col",children:[t,(0,At.jsx)("div",{className:"kui:flex-1",children:r}),e]})}var no=x(require("react"),1),ao=require("lucide-react"),pt=require("react/jsx-runtime"),ye=no.forwardRef(({variant:t="none",itemCount:e=0,children:r,...o},i)=>(0,pt.jsxs)("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"?(0,pt.jsx)(ao.ShoppingCart,{className:"kui:text-foreground kui:h-7 kui:w-7"}):r,e>0&&(0,pt.jsx)("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})]}));ye.displayName="IconWithBadge";0&&(module.exports={Footer,Header,IconWithBadge,Layout});
|
|
55
55
|
//# sourceMappingURL=index.cjs.map
|