PageSourceSearch

https://www.boonerent-all.com/_next/static/immutable/chunks/1aot99m1-f5d7.js

js boonerent-all.com collected 2026-10-08 10:30:48 UTC 43,492 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,829568,e=>{"use strict";var t=e.i(444075);let r=(0,t.createContext)(null);e.s(["DrawerMenuContext",0,r,"useCloseDrawerMenu",0,()=>(0,t.use)(r)])},985982,e=>{"use strict";var t=e.i(399809),r=e.i(444075);let n=(0,r.createContext)({});e.s(["LayoutSettingsProvider",0,({children:e,...r})=>(0,t.jsx)(n.Provider,{value:r,children:e}),"useLayoutSettings",0,()=>(0,r.useContext)(n)])},482209,e=>{"use strict";var t=e.i(444075),r=e.i(392144);function n(e,t,r){let n=e=>{if(Array.isArray(e))return e.map(n);if(e&&"object"==typeof e){if(e.type&&e.props&&e.props.id===t)return{...e,props:{...e.props,...r}};let l={};for(let[t,r]of Object.entries(e))l[t]=n(r);return l}return e};return n(e)}e.s(["updateItemPropsById",0,n,"useAutoCloseOnDeselect",0,function(e,l){let i=(0,r.usePuckSelector)(e=>e.selectedItem?.props?.id),o=(0,r.usePuckSelector)(e=>e.dispatch);(0,t.useEffect)(()=>{l&&i!==e&&o({type:"setData",data:t=>n(t,e,{expandInEditor:!1})})},[i,e,l,o])}])},515032,e=>{"use strict";var t=e.i(399809),r=e.i(751063),n=e.i(813357),l=e.i(80687),i=e.i(867543),o=e.i(118010),a=e.i(359155),s=e.i(329693);e.s(["ContactSummaryRender",0,function({showHours:e,showPhone:c,separator:d,prefixIcon:u,iconOnly:m,font:p}){let f=(0,i.useIsEditorMode)(),{location:h,isLoading:x}=(0,a.useSelectedContactLocation)(),{fontClass:v,FontStyle:g}=(0,o.useFontStyle)(p);if(x&&!f)return(0,t.jsxs)(t.Fragment,{children:[g,(0,t.jsxs)("span",{className:(0,l.cn)("inline-flex items-center gap-2",v),children:[e&&(0,t.jsx)("span",{className:"inline-block h-3 w-40 animate-pulse rounded bg-muted"}),e&&c&&d,c&&(0,t.jsx)("span",{className:"inline-block h-3 w-24 animate-pulse rounded bg-muted"})]})]});let b=h?.business_hours?(0,s.formatBusinessHoursInline)(h.business_hours):"",y=h?.phone??"",j=y?(0,r.fPhone)(y):"",w=e?b||(f?"M-F 7AM-5PM, Sat/Sun: Closed":""):"",N=c?j||(f?"(800) 000-0000":""):"",k=!w&&c,S=!!u&&"none"!==u;if(k&&S&&m){if(!y&&!f)return(0,t.jsxs)(t.Fragment,{children:[g,(0,t.jsx)("span",{className:(0,l.cn)("inline-block",v),"aria-hidden":"true",children:" "})]});let e=(0,t.jsx)(n.DynamicIcon,{name:u,className:"h-4 w-4 shrink-0"});return(0,t.jsxs)(t.Fragment,{children:[g,y&&!f?(0,t.jsx)("a",{href:`tel:${y}`,"aria-label":j||"Call",className:(0,l.cn)("inline-flex items-center hover:underline",v),children:e}):(0,t.jsx)("span",{className:(0,l.cn)("inline-flex items-center",v),children:e})]})}let C=N&&y&&!f?(0,t.jsx)("a",{href:`tel:${y}`,className:"hover:underline",children:N}):N;if(!(w||C))return(0,t.jsxs)(t.Fragment,{children:[g,(0,t.jsx)("span",{className:(0,l.cn)("inline-block",v),"aria-hidden":"true",children:" "})]});let E=k&&S;return(0,t.jsxs)(t.Fragment,{children:[g,(0,t.jsxs)("span",{className:(0,l.cn)(E?"inline-flex items-center gap-1.5":void 0,v),children:[E?(0,t.jsx)(n.DynamicIcon,{name:u,className:"h-4 w-4 shrink-0"}):null,w,w&&C?d:"",C]})]})}])},845924,e=>{"use strict";var t=e.i(399809),r=e.i(46043),r=r,n=e.i(813357),l=e.i(30850),i=e.i(444075),o=e.i(179110),a=e.i(337282),s=e.i(441834),c=e.i(80687),d=e.i(829568),u=e.i(867543),m=e.i(499703),p=e.i(743403),r=r,f=e.i(657614),h=e.i(482209),x=e.i(392144);let v={left:"fixed left-0 top-0 h-full w-80 border-r",right:"fixed right-0 top-0 h-full w-80 border-l",top:"fixed top-0 inset-x-0 h-80 border-b",bottom:"fixed bottom-0 inset-x-0 h-80 border-t"};function g({icon:e,className:l,color:i}){let o=i?{color:i}:void 0;return e&&"none"!==e?(0,t.jsx)(n.DynamicIcon,{name:e,className:l,style:o}):(0,t.jsx)(r.default,{className:l,style:o})}function b({puckId:e,side:r,title:n,icon:l,iconColor:o,expandInEditor:a,layout:s,drawerBackgroundColor:d,slot:u,dragRef:y}){let j=(0,p.useEditorLayer)({label:"DrawerMenu",layout:s,dragRef:y}),{className:w,Style:N}=(0,p.useResponsiveStyle)(s,s?.hover),k=(0,i.useRef)(null),S=(0,m.useEditorViewport)(),C=(0,x.usePuckSelector)(e=>e.dispatch);return((0,i.useEffect)(()=>{a&&C({type:"setData",data:t=>(0,h.updateItemPropsById)(t,e,{expandInEditor:!1})})},[S?.type]),j.placeholder)?j.placeholder:(0,t.jsxs)(t.Fragment,{children:[N,(0,t.jsxs)("span",{ref:e=>{k.current=e,"function"==typeof y&&y(e)}
1,className:(0,c.cn)("inline-flex items-center justify-center",w),children:[(0,t.jsx)(g,{icon:l,color:o,className:"size-5"}),a&&(0,t.jsxs)("div",{className:(0,c.cn)("relative z-50 bg-background overflow-auto flex flex-col shadow-2xl pt-6",v[r]),style:{backgroundColor:d||void 0},children:[(0,t.jsx)(f.X,{className:"absolute right-1 top-1 w-5 h-5"}),(0,t.jsx)(u,{className:"flex flex-col gap-2"})]})]})]})}function y({icon:e,className:l,color:i}){let o=i?{color:i}:void 0;return e&&"none"!==e?(0,t.jsx)(n.DynamicIcon,{name:e,className:l,style:o}):(0,t.jsx)(r.default,{className:l,style:o})}e.s(["DrawerMenuRender",0,({puckId:e,side:r,triggerLabel:n,title:s,icon:c,iconColor:f,expandInEditor:h,layout:x,drawerBackgroundColor:v,slot:g,dragRef:j})=>{let w=(0,u.useIsEditorMode)(),{className:N,Style:k}=(0,p.useResponsiveStyle)(x,x?.hover),[S,C]=(0,i.useState)(!1),E=(0,l.usePathname)(),I=(0,l.useSearchParams)(),R=`${E}?${I.toString()}`,[D,P]=(0,i.useState)(R);return(R!==D&&(P(R),C(!1)),(0,i.useEffect)(()=>{if(!S)return;let e=(0,m.getBreakpoint)(window.innerWidth),t=()=>{let t=(0,m.getBreakpoint)(window.innerWidth);t!==e&&(e=t,C(!1))};return window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[S]),w)?(0,t.jsx)(b,{puckId:e,side:r,title:s,icon:c,iconColor:f,expandInEditor:h,layout:x,drawerBackgroundColor:v,slot:g,dragRef:j}):(0,t.jsxs)(t.Fragment,{children:[k,(0,t.jsxs)(a.Sheet,{open:S,onOpenChange:C,children:[(0,t.jsx)(a.SheetTrigger,{asChild:!0,children:(0,t.jsx)(o.Button,{ref:j,variant:"ghost",size:"icon","aria-label":n||"Open menu",className:N,children:(0,t.jsx)(y,{icon:c,color:f,className:"w-full h-full"})})}),(0,t.jsxs)(a.SheetContent,{side:r,className:"p-0 pt-7",style:{backgroundColor:v||void 0},children:[s?(0,t.jsx)(a.SheetTitle,{children:s}):(0,t.jsx)(a.SheetTitle,{className:"sr-only",children:"Menu"}),(0,t.jsx)(d.DrawerMenuContext.Provider,{value:()=>C(!1),children:(0,t.jsx)(g,{className:"h-full"})})]})]})]})},"DrawerMenuSkeleton",0,function({layout:e}){let{className:r,Style:n}=(0,p.useResponsiveStyle)(e,e?.hover);return(0,t.jsxs)(t.Fragment,{children:[n,(0,t.jsx)("div",{"aria-hidden":"true",className:(0,c.cn)((0,o.buttonVariants)({variant:"ghost",size:"icon"}),r),children:(0,t.jsx)(s.Skeleton,{className:"h-full w-full"})})]})}],845924)},504536,e=>{"use strict";var t=e.i(399809),r=e.i(472409),n=e.i(6845),l=e.i(499703),i=e.i(884403);let o={gridTemplateColumns:"repeat(1, minmax(0, 1fr))",position:"absolute"},a=[{label:"Floating",value:"absolute"},{label:"Inline",value:"inline"}],s=/^repeat\((\d+),\s*minmax\(0,\s*1fr\)\)$/,c=e=>{if(!e)return 0;let t=String(e).trim().match(/^(-?\d+(?:\.\d+)?)px$/);return t?Number(t[1]):0},d={type:"object",properties:{gridTemplateColumns:{type:"string",description:"CSS grid-template-columns, e.g. 'repeat(3, minmax(0, 1fr))'"},rowGap:{type:"string",description:"CSS row gap, e.g. '8px'"},columnGap:{type:"string",description:"CSS column gap, e.g. '8px'"},offset:{type:"string",description:"Gap between trigger and dropdown, e.g. '4px'"},position:{type:"string",enum:["absolute","inline"],description:"'absolute' = floating, 'inline' = in-flow"}}};e.s(["defaultLinkDropdownDesktop",0,o,"linkDropdownField",0,{type:"custom",render:function({value:e,onChange:d,field:u,readOnly:m}){let p=(0,l.useEditorViewport)(),f=p?.type??"desktop",h=e??{desktop:o},x=e=>(0,i.getEffectiveResponsiveValue)(h,f,e),v=(e=>{if(!e)return 1;let t=String(e).trim().match(s);return t?Number(t[1]):1})(x("gridTemplateColumns")),g=x("position")??"absolute",b=c(x("offset")),y=c(x("rowGap"))||8,j=c(x("columnGap"))||8,w=(e,t)=>{d({...h,[f]:{...h[f]??{},[e]:t}})};return(0,t.jsxs)("div",{className:"flex flex-col gap-3",children:[u.label&&(0,t.jsx)(n.Label,{className:"text-sm",children:u.label}),(0,t.jsxs)("div",{children:[(0,t.jsx)(n.Label,{className:"text-xs mb-1 block text-muted-foreground",children:"Columns"}),(0,t.jsx)(r.Input,{type:"number",min:1,max:12,value:v,disabled:m,onChange:e=>{let t=Math.max(1,Math.min(12,Number(e.target.value)||1));w("gridTemplateColumns",`repeat(${t}, minmax(0, 1fr))`)},className:"h-8 text-sm"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(n.Label,{className:"text-xs mb-1 block text-muted-foreground",children:"Offset (px)"}),(0,t.jsx)(r.Input,{type:"number",min:0,value:b,disabled:m,onChange:e=>{let t=Math.max(0,Number(e.target.value)||0);w("offset",t>0?`${t}px`:"")},className:"h-8 text-sm"})]}),(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)(n.Label,{className:"text-xs mb-1 block text-muted-foreground",children:"Row Gap (px)"}),(0,t.jsx)(r.Input,{type:"number",min:0,value:y,disabled:m,onChange:e=>{let t=Math.max(0,Number(e.target.value)||0);w("rowGap",`${t}px`)},className:"h-8 text-sm"})]}),(0,t.jsxs)("div",{className:"flex-1",children:[(0,t.jsx)(n.Label,{className:"text-xs mb-1 block text-muted-foreground",children:"Column Gap (px)"}),(0,t.jsx)(r.Input,{type:"number",min:0,value:j,disabled:m,onChange:e=>{let t=Math.max(0,Number(e.target.value)||0);w("columnGap",`${t}px`)},className:"h-8 text-sm"})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)(n.Label,{className:"text-xs mb-1 block text-muted-foreground",children:"Position"}),(0,t.jsx)("div",{className:"flex gap-1",children:a.map(e=>(0,t.jsx)("button",{type:"button",disabled:m,onClick:()=>w("position",e.value),className:`flex-1 h-8 rounded-md border text-xs px-2 transition-colors ${g===e.value?"border-primary bg-muted text-foreground":"border-input bg-background hover:bg-muted"} disabled:opacity-50`,children:e.label},e.value))})]})]})},ai:{schema:{type:"object",properties:{desktop:d,tablet:d,mobile:d}}}}])},706602,e=>{"use strict";var t=e.i(399809),r=e.i(123108),n=e.i(6845),l=e.i(499703),i=e.i(884403);let o={value:"dropdown",hover:!0},a=[{label:"Dropdown",value:"dropdown"},{label:"Always Open",value:"forceOpen"}],s={type:"object",properties:{value:{type:"string",enum:["dropdown","forceOpen"],description:"Dropdown trigger mode"},hover:{type:"boolean",description:"Open on hover when mode is dropdown"}}};e.s(["defaultLinkModeDesktop",0,o,"linkModeField",0,{type:"custom",render:function({value:e,onCh
1ange:s,field:c,readOnly:d}){let u=(0,l.useEditorViewport)(),m=u?.type??"desktop",p=e??{desktop:o},f=(0,i.getEffectiveResponsiveValue)(p,m,"value")??"dropdown",h=(0,i.getEffectiveResponsiveValue)(p,m,"hover")??!0;return(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[c.label&&(0,t.jsx)(n.Label,{className:"text-sm",children:c.label}),(0,t.jsx)("div",{className:"flex gap-1",children:a.map(e=>(0,t.jsx)("button",{type:"button",disabled:d,onClick:()=>{var t;return t=e.value,void s({...p,[m]:{...p[m]??{},value:t}})},className:`flex-1 h-8 rounded-md border text-xs px-2 transition-colors ${f===e.value?"border-primary bg-muted text-foreground":"border-input bg-background hover:bg-muted"} disabled:opacity-50`,children:e.label},e.value))}),"dropdown"===f&&(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)(r.Checkbox,{id:"link-mode-hover",checked:h,onCheckedChange:e=>{var t;return t=!!e,void s({...p,[m]:{...p[m]??{},hover:t}})},disabled:d}),(0,t.jsx)(n.Label,{htmlFor:"link-mode-hover",className:"text-sm",children:"Open on hover"})]})]})},ai:{schema:{type:"object",properties:{desktop:s,tablet:s,mobile:s}}}}])},807116,e=>{"use strict";var t=e.i(399809),r=e.i(813357),n=e.i(250324),l=e.i(30850),i=e.i(444075),o=e.i(149529),a=e.i(80687),s=e.i(867543),c=e.i(482209),d=e.i(743403),u=e.i(884403),m=e.i(713365);function p({icon:e,className:n,color:l}){return e&&"none"!==e?(0,t.jsx)(r.DynamicIcon,{name:e,className:n,style:{color:l||void 0}}):null}function f(e,t){return!!t&&!!e&&e===t}function h({href:e,target:r,className:l,style:i,children:o,ref:a,isEditor:s}){return s?(0,t.jsx)("span",{ref:a??void 0,role:"link","aria-disabled":"true",className:l,style:i,children:o}):(0,t.jsx)(n.default,{ref:a??void 0,href:e,className:l,style:i,target:"_blank"===r?"_blank":void 0,rel:"_blank"===r?"noopener noreferrer":void 0,children:o})}function x({items:e,gridStyle:r,pathname:n,activeCss:l,isEditor:i,hoverUnderline:o}){return(0,t.jsx)("div",{className:"grid",style:r,children:e.map((e,r)=>{let s=f(n,e.url),c={color:s&&l.color?l.color:e.color||void 0,backgroundColor:s?l.backgroundColor:void 0,textDecoration:s?l.textDecoration:void 0,fontSize:e.fontSize||void 0,fontWeight:e.fontWeight||void 0},d=e.iconPosition??"left";return(0,t.jsxs)(h,{href:e.url||"#",target:e.target,className:(0,a.cn)("text-sm inline-flex items-center gap-1.5",o&&"hover:underline"),style:c,isEditor:i,children:["left"===d?(0,t.jsx)(p,{icon:e.icon,className:"w-4 h-4"}):null,e.label,"right"===d?(0,t.jsx)(p,{icon:e.icon,className:"w-4 h-4"}):null]},`${e.label}-${r}`)})})}function v({puckId:e,expandInEditor:t}){return(0,c.useAutoCloseOnDeselect)(e,t),null}e.s(["LinkRender",0,function({puckId:e,label:n,url:c,target:g,icon:b,iconPosition:y="right",iconColor:j,caretIcon:w,items:N,hasDropdown:k,mode:S,dropdownStyle:C,activeStyle:E,hoverStyle:I,expandInEditor:R,font:D,layout:P,dropdownLayout:M,dragRef:$}){let A=I?.color,L=I?.underline,F=A?`lh_${(0,m.hashStr)(A)}`:void 0,_=A&&F?(0,t.jsx)("style",{dangerouslySetInnerHTML:{__html:`.${F}:hover{color:${A} !important;}`}}):null,O=(0,a.cn)(L&&"hover:underline",F),T=(0,s.useIsEditorMode)(),V=(0,l.usePathname)(),B=(0,d.useBreakpoint)(),{className:G,Style:K}=(0,d.useResponsiveStyle)(P,P?.hover),{className:q,Style:z}=(0,d.useResponsiveStyle)(M,M?.hover),{className:U,Style:W}=(0,d.useResponsiveStyle)(D),H=(0,u.getEffectiveResponsiveValue)(S,B,"value")??"dropdown",X="dropdown"===H&&((0,u.getEffectiveResponsiveValue)(S,B,"hover")??!0),J=(0,u.getEffectiveResponsiveValue)(C,B,"position")??"absolute",Q=(0,u.getEffectiveResponsiveValue)(C,B,"gridTemplateColumns")??"repeat(1, minmax(0, 1fr))",Y=(0,u.getEffectiveResponsiveValue)(C,B,"offset")??"",Z=parseInt(String(Y)?.replace(/px$/,""),10)||0,ee={gridTemplateColumns:Q,rowGap:(0,u.getEffectiveResponsiveValue)(C,B,"rowGap")??"8px",columnGap:(0,u.getEffectiveResponsiveValue)(C,B,"columnGap")??"8px"},et="forceOpen"===H?"inline":J,er=T&&(R||"inline"===et),en=f(V,c),el=E?{color:E.color||void 0,backgroundColor:E.backgroundColor||void 0,textDecoration:E.underline?"underline":void 0}:{},ei=en?{color:el.color||void 0,backgroundColor:el.backgroundColor||void 0,textDecoration:el.textDecoration}:{},[eo,ea]=(0,i.useState)(!1),es=!!er||eo,ec=er?()=>{}:ea,ed=(0,i.useRef)(null);(0,i.useEffect)(()=>()=>{ed.current&&clearTimeout(ed.current)},[]);let eu=()=>{ed.current&&(clearTimeout(ed.current),ed.current=null)},em=!!k,ep=N??[],ef=em&&ep.length>0,eh=(0,t.jsxs)(t.Fragment,{children:["left"===y?(0,t.jsx)(p,{icon:b,className:"w-4 h-4",color:j}):null,n,"right"===y?(0,t.jsx)(p,{icon:b,className:"w-4 h-4",color:j}):null]});if(!em)return(0,t.jsxs)(t.Fragment,{children:[K,W,_,(0,t.jsx)(h,{ref:$,href:c||"#",target:g,className:(0,a.cn)("inline-flex items-center gap-2",G,U,O),style:ei,isEditor:T,children:eh})]});if("forceOpen"===H)return(0,t.jsxs)(t.Fragment,{children:[K,W,z,_,(0,t.jsxs)("div",{ref:$,className:"flex flex-col",children:[T&&(0,t.jsx)(v,{puckId:e,expandInEditor:R}),(0,t.jsx)(h,{href:c||"#",target:g,className:(0,a.cn)("inline-flex items-center gap-2",G,U,O),style:ei,isEditor:T,children:eh}),ef&&(0,t.jsx)("div",{className:q,children:(0,t.jsx)(x,{items:ep,gridStyle:ee,pathname:V,activeCss:el,isEditor:T,hoverUnderline:L})})]})]});let ex=X?{onMouseEnter:()=>{eu(),ec(!0)},onMouseLeave:()=>{eu(),ed.current=setTimeout(()=>ec(!1),120)}}:{},ev=(0,t.jsxs)("div",{ref:"inline"===et?void 0:$,className:(0,a.cn)("inline-flex items-center gap-1",G,U,O),style:ei,children:[c?(0,t.jsx)(h,{href:c,target:g,className:(0,a.cn)("inline-flex items-center gap-2",L&&"hover:underline"),isEditor:T,children:eh}):(0,t.jsx)("button",{type:"button",className:(0,a.cn)("inline-flex items-center gap-2",L&&"hover:underline"),onClick:()=>ec(e=>!e),children:eh}),ef&&(0,t.jsx)("button",{type:"button","aria-label":"Toggle dropdown",className:"inline-flex items-center justify-center p-1",onClick:"dropdown"===H?()=>ec(e=>!e):void 0,children:(0,t.jsx)(r.DynamicIcon,{name:w&&"none"!==w?w:"chevron-down",className:(0,a.cn)("w-4 h-4 transition-transform",es&&"rotate-180")}
1)})]});return"inline"===et?(0,t.jsxs)(t.Fragment,{children:[K,W,z,_,(0,t.jsxs)("div",{ref:$,className:"flex flex-col",...ex,children:[T&&(0,t.jsx)(v,{puckId:e,expandInEditor:R}),ev,ef&&es&&(0,t.jsx)("div",{className:q,style:{marginTop:Z||void 0},children:(0,t.jsx)(x,{items:ep,gridStyle:ee,pathname:V,activeCss:el,isEditor:T})})]})]}):(0,t.jsxs)(t.Fragment,{children:[K,W,z,_,(0,t.jsxs)(o.Popover,{open:es,onOpenChange:ec,children:[T&&(0,t.jsx)(v,{puckId:e,expandInEditor:R}),(0,t.jsx)(o.PopoverTrigger,{asChild:!0,...ex,children:ev}),ef&&(0,t.jsx)(o.PopoverContent,{align:"start",sideOffset:Z,className:(0,a.cn)("w-auto p-2",q),...ex,children:(0,t.jsx)(x,{items:ep,gridStyle:ee,pathname:V,activeCss:el,isEditor:T,hoverUnderline:L})})]})]})}])},291363,e=>{"use strict";var t=e.i(399809),r=e.i(422935),n=e.i(382639),l=e.i(813357),i=e.i(250324),o=e.i(30850),a=e.i(444075),s=e.i(149529),c=e.i(441834),d=e.i(743157),u=e.i(470510),m=e.i(80687),p=e.i(118010),f=e.i(743403),h=e.i(713365);let x={1:"grid-cols-1",2:"md:grid-cols-2"};function v({icon:e,color:r}){return e&&"none"!==e?(0,t.jsx)(l.DynamicIcon,{name:e,className:"h-4 w-4 opacity-70",style:{color:r||void 0}}):null}e.s(["CategoriesDropdown",0,({label:e,intent:l=r.Intent.Rent,icon:c="none",iconColor:g,columns:b="2",depth:y="expanded",dropdownTitle:j="Browse Categories",dropdownDescription:w="Jump into any top-level category or drill into a subcategory.",viewAllLabel:N="View all categories",align:k="start",triggerBehavior:S="hover",layout:C,font:E,dropdownBackgroundColor:I,dropdownTextColor:R,interactionStyles:D})=>{let P=D?.active,M=D?.hover,$=M?.color,A=M?.underline,L=$?`lh_${(0,h.hashStr)($)}`:void 0,F=$&&L?(0,t.jsx)("style",{dangerouslySetInnerHTML:{__html:`.${L}:hover{color:${$} !important;}`}}):null,_="hover"===S,O=(0,o.usePathname)(),T=(0,o.useSearchParams)(),V=(0,u.parseIntentParam)(T?.get("intent")),{className:B,Style:G}=(0,f.useResponsiveStyle)(C,C?.hover),{fontClass:K,FontStyle:q}=(0,p.useFontStyle)(E),[z,U]=(0,a.useState)(!1),W=O?.startsWith("/categories")&&V===l?{color:P?.color||void 0,backgroundColor:P?.backgroundColor||void 0,textDecoration:P?.underline?"underline":void 0}:{},H=(0,a.useRef)(null),X=(0,a.useRef)(null),{data:J=[],isLoading:Q}=d.trpc.category.categories.useQuery({intent:l}),Y=!!I,Z=!!R;function ee(){H.current&&(clearTimeout(H.current),H.current=null)}function et(){X.current&&(clearTimeout(X.current),X.current=null)}function er(){ee(),et(),X.current=setTimeout(()=>{X.current=null,U(!1)},150)}function en(){ee(),et(),U(!1)}if(!Q&&0===J.length)return(0,t.jsx)(t.Fragment,{});let el=(0,u.withIntent)("/categories",l);return(0,t.jsxs)("div",{className:(0,m.cn)("flex",{start:"justify-start",center:"justify-center",end:"justify-end"}[k]),children:[G,q,F,(0,t.jsxs)(s.Popover,{open:z,onOpenChange:U,modal:!_,children:[(0,t.jsx)(s.PopoverTrigger,{asChild:!0,children:(0,t.jsxs)("button",{type:"button",className:(0,m.cn)("flex items-center gap-2 whitespace-nowrap",B,K,A&&"hover:underline",L),style:W,onPointerDown:_?e=>e.preventDefault():void 0,onMouseEnter:_?function(){et(),z||H.current||(H.current=setTimeout(()=>{H.current=null,U(!0)},150))}:void 0,onMouseLeave:_?er:void 0,children:[(0,t.jsx)(v,{icon:c,color:g}),(0,t.jsx)("span",{children:e}),(0,t.jsx)(n.ChevronRight,{className:"h-4 w-4 rotate-90 opacity-50"})]})}),(0,t.jsxs)(s.PopoverContent,{align:k,className:"flex max-h-[70vh] w-lg max-w-[calc(100vw-2rem)] flex-col overflow-hidden rounded-2xl p-0",style:{backgroundColor:I||void 0,color:R||void 0},onMouseEnter:_?function(){ee(),et()}:void 0,onMouseLeave:_?er:void 0,onFocusOutside:_?e=>e.preventDefault():void 0,onOpenAutoFocus:e=>e.preventDefault(),children:[(0,t.jsxs)("div",{className:(0,m.cn)("shrink-0 border-b px-4 py-3",!Y&&"bg-muted/30"),children:[(0,t.jsx)("div",{className:"text-sm font-semibold",children:j}),(0,t.jsx)("p",{className:(0,m.cn)("mt-1 text-xs",!Z&&"text-muted-foreground"),style:Z?{opacity:.7}:void 0,children:w})]}),(0,t.jsxs)("div",{className:"min-h-0 flex-1 touch-pan-y overflow-y-auto overscroll-contain p-3",children:[(0,t.jsxs)(i.default,{href:el,className:(0,m.cn)("mb-3 flex items-center justify-between rounded-xl border px-3 py-2.5 text-sm font-medium transition-colors hover:bg-accent/40",!Y&&"bg-background"),onClick:en,children:[(0,t.jsx)("span",{children:N}),(0,t.jsx)(n.ChevronRight,{className:(0,m.cn)("h-4 w-4",!Z&&"text-muted-foreground"),style:Z?{opacity:.5}:void 0})]}),(0,t.jsx)("div",{className:(0,m.cn)("grid gap-3",x[b]),children:J.map(e=>(0,t.jsxs)("div",{className:(0,m.cn)("rounded-xl border p-3 shadow-sm",!Y&&"bg-background"),children:[(0,t.jsxs)(i.default,{href:(0,u.
1withIntent)(`/categories/${e.slug}`,l),className:"flex items-center justify-between gap-3 rounded-lg px-1 py-1 text-sm font-semibold transition-colors hover:text-primary",onClick:en,children:[(0,t.jsx)("span",{children:e.label}),(0,t.jsx)(n.ChevronRight,{className:(0,m.cn)("h-4 w-4",!Z&&"text-muted-foreground"),style:Z?{opacity:.5}:void 0})]}),"expanded"===y&&e.sublist.length>0&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"my-2 h-px bg-border"}),(0,t.jsx)("div",{className:"flex flex-col gap-1",children:e.sublist.map(r=>(0,t.jsxs)(i.default,{href:(0,u.withIntent)(`/categories/${e.slug}/${r.slug}`,l),className:(0,m.cn)("flex items-center justify-between rounded-lg px-2 py-1.5 text-sm transition-colors hover:bg-accent/40 hover:text-foreground",!Z&&"text-muted-foreground"),style:Z?{opacity:.75}:void 0,onClick:en,children:[(0,t.jsx)("span",{children:r.label}),(0,t.jsx)(n.ChevronRight,{className:"h-3.5 w-3.5 opacity-50"})]},r.slug))})]})]},e.slug))})]})]})]})]})},"CategoriesDropdownSkeleton",0,function({label:e,icon:r="none",align:n="start",layout:l,font:i}){let{className:o,Style:a}=(0,f.useResponsiveStyle)(l,l?.hover),{fontClass:s,FontStyle:d}=(0,p.useFontStyle)(i);return(0,t.jsxs)("div",{"aria-hidden":"true",className:(0,m.cn)("flex",{"justify-start":"start"===n,"justify-center":"center"===n,"justify-end":"end"===n}),children:[a,d,(0,t.jsxs)("div",{className:(0,m.cn)("flex items-center gap-2 whitespace-nowrap",o,s),children:["none"!==r&&(0,t.jsx)(c.Skeleton,{className:"h-4 w-4"}),(0,t.jsx)(c.Skeleton,{children:(0,t.jsx)("span",{className:"invisible",children:e})}),(0,t.jsx)(c.Skeleton,{className:"h-4 w-4"})]})]})}])},794430,e=>{"use strict";var t=e.i(399809),r=e.i(366272),r=r,n=e.i(657614),l=e.i(30850),i=e.i(444075),o=/[\\\/_+.#"@\[\(\{&]/,a=/[\\\/_+.#"@\[\(\{&]/g,s=/[\s-]/,c=/[\s-]/g;function d(e){return e.toLowerCase().replace(c," ")}var u=e.i(271814),m=e.i(149620),p=e.i(200115),f=e.i(56032),h='[cmdk-group=""]',x='[cmdk-group-items=""]',v='[cmdk-item=""]',g=`${v}:not([aria-disabled="true"])`,b="cmdk-item-select",y="data-value",j=(e,t,r)=>{var n;return n=e,function e(t,r,n,l,i,d,u){if(d===r.length)return i===t.length?1:.99;var m=`${i},${d}`;if(void 0!==u[m])return u[m];for(var p,f,h,x,v=l.charAt(d),g=n.indexOf(v,i),b=0;g>=0;)(p=e(t,r,n,l,g+1,d+1,u))>b&&(g===i?p*=1:o.test(t.charAt(g-1))?(p*=.8,(h=t.slice(i,g-1).match(a))&&i>0&&(p*=Math.pow(.999,h.length))):s.test(t.charAt(g-1))?(p*=.9,(x=t.slice(i,g-1).match(c))&&i>0&&(p*=Math.pow(.999,x.length))):(p*=.17,i>0&&(p*=Math.pow(.999,g-i))),t.charAt(g)!==r.charAt(d)&&(p*=.9999)),(p<.1&&n.charAt(g-1)===l.charAt(d+1)||l.charAt(d+1)===l.charAt(d)&&n.charAt(g-1)!==l.charAt(d))&&.1*(f=e(t,r,n,l,g+1,d+2,u))>p&&(p=.1*f),p>b&&(b=p),g=n.indexOf(v,g+1);return u[m]=b,b}(n=r&&r.length>0?`${n+" "+r.join(" ")}`:n,t,d(n),d(t),0,0,{})},w=i.createContext(void 0),N=i.createContext(void 0),k=i.createContext(void 0),S=i.forwardRef((e,t)=>{let r=L(()=>{var t,r;return{search:"",value:null!=(r=null!=(t=e.value)?t:e.defaultValue)?r:"",filtered:{count:0,items:new Map,groups:new Set}}}),n=L(()=>new Set),l=L(()=>new Map),o=L(()=>new Map),a=L(()=>new Set),s=$(e),{label:c,children:d,value:u,onValueChange:f,filter:k,shouldFilter:S,loop:C,disablePointerSelection:E=!1,vimBindings:I=!0,...R}=e,D=(0,p.useId)(),P=(0,p.useId)(),M=(0,p.useId)(),F=i.useRef(null),_=T();A(()=>{if(void 0!==u){let e=u.trim();r.current.value=e,O.emit()}},[u]),A(()=>{_(6,W)},[]);let O=i.useMemo(()=>({subscribe:e=>(a.current.add(e),()=>a.current.delete(e)),snapshot:()=>r.current,setState:(e,t,n)=>{var l,i,o;if(!Object.is(r.current[e],t)){if(r.current[e]=t,"search"===e)U(),q(),_(1,z);else if("value"===e&&(n||_(5,W),(null==(l=s.current)?void 0:l.value)!==void 0)){null==(o=(i=s.current).onValueChange)||o.call(i,null!=t?t:"");return}O.emit()}},emit:()=>{a.current.forEach(e=>e())}}),[]),G=i.useMemo(()=>({value:(e,t,n)=>{var l;t!==(null==(l=o.current.get(e))?void 0:l.value)&&(o.current.set(e,{value:t,keywords:n}),r.current.filtered.items.set(e,K(t,n)),_(2,()=>{q(),O.emit()}))},item:(e,t)=>(n.current.add(e),t&&(l.current.has(t)?l.current.get(t).add(e):l.current.set(t,new Set([e]))),_(3,()=>{U(),q(),r.current.value||z(),O.emit()}),()=>{o.current.delete(e),n.current.delete(e),r.current.filtered.items.delete(e);let t=H();_(4,()=>{U(),(null==t?void 0:t.getAttribute("id"))===e&&z(),O.emit()})}),group:e=>(l.current.has(e)||l.current.set(e,new Set),()=>{o.current.delete(e),l.current.delete(e)}),filter:()=>s.current.shouldFilter,label:c||e["aria-label"],getDisablePointerSelection:()=>s.current.disablePointerSelection,listId:D,inputId:M,labelId:P,listInnerRef:F}),[]);function K(e,t){var n,l;let i=null!=(l=null==(n=s.current)?void 0:n.filter)?l:j;return e?i(e,r.current.search,t):0}function q(){if(!r.current.search||!1===s.current.shouldFilter)return;let e=r.current.filtered.items,t=[];r.current.filtered.groups.forEach(r=>{let n=l.current.get(r),i=0;
1n.forEach(t=>{i=Math.max(e.get(t),i)}),t.push([r,i])});let n=F.current;X().sort((t,r)=>{var n,l;let i=t.getAttribute("id"),o=r.getAttribute("id");return(null!=(n=e.get(o))?n:0)-(null!=(l=e.get(i))?l:0)}).forEach(e=>{let t=e.closest(x);t?t.appendChild(e.parentElement===t?e:e.closest(`${x} > *`)):n.appendChild(e.parentElement===n?e:e.closest(`${x} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let r=null==(t=F.current)?void 0:t.querySelector(`${h}[${y}="${encodeURIComponent(e[0])}"]`);null==r||r.parentElement.appendChild(r)})}function z(){let e=X().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(y);O.setState("value",t||void 0)}function U(){var e,t,i,a;if(!r.current.search||!1===s.current.shouldFilter){r.current.filtered.count=n.current.size;return}r.current.filtered.groups=new Set;let c=0;for(let l of n.current){let n=K(null!=(t=null==(e=o.current.get(l))?void 0:e.value)?t:"",null!=(a=null==(i=o.current.get(l))?void 0:i.keywords)?a:[]);r.current.filtered.items.set(l,n),n>0&&c++}for(let[e,t]of l.current)for(let n of t)if(r.current.filtered.items.get(n)>0){r.current.filtered.groups.add(e);break}r.current.filtered.count=c}function W(){var e,t,r;let n=H();n&&((null==(e=n.parentElement)?void 0:e.firstChild)===n&&(null==(r=null==(t=n.closest(h))?void 0:t.querySelector('[cmdk-group-heading=""]'))||r.scrollIntoView({block:"nearest"})),n.scrollIntoView({block:"nearest"}))}function H(){var e;return null==(e=F.current)?void 0:e.querySelector(`${v}[aria-selected="true"]`)}function X(){var e;return Array.from((null==(e=F.current)?void 0:e.querySelectorAll(g))||[])}function J(e){let t=X()[e];t&&O.setState("value",t.getAttribute(y))}function Q(e){var t;let r=H(),n=X(),l=n.findIndex(e=>e===r),i=n[l+e];null!=(t=s.current)&&t.loop&&(i=l+e<0?n[n.length-1]:l+e===n.length?n[0]:n[l+e]),i&&O.setState("value",i.getAttribute(y))}function Y(e){let t=H(),r=null==t?void 0:t.closest(h),n;for(;r&&!n;)n=null==(r=e>0?function(e,t){let r=e.nextElementSibling;for(;r;){if(r.matches(t))return r;r=r.nextElementSibling}}(r,h):function(e,t){let r=e.previousElementSibling;for(;r;){if(r.matches(t))return r;r=r.previousElementSibling}}(r,h))?void 0:r.querySelector(g);n?O.setState("value",n.getAttribute(y)):Q(e)}let Z=()=>J(X().length-1),ee=e=>{e.preventDefault(),e.metaKey?Z():e.altKey?Y(1):Q(1)},et=e=>{e.preventDefault(),e.metaKey?J(0):e.altKey?Y(-1):Q(-1)};return i.createElement(m.Primitive.div,{ref:t,tabIndex:-1,...R,"cmdk-root":"",onKeyDown:e=>{var t;if(null==(t=R.onKeyDown)||t.call(R,e),!e.defaultPrevented)switch(e.key){case"n":case"j":I&&e.ctrlKey&&ee(e);break;case"ArrowDown":ee(e);break;case"p":case"k":I&&e.ctrlKey&&et(e);break;case"ArrowUp":et(e);break;case"Home":e.preventDefault(),J(0);break;case"End":e.preventDefault(),Z();break;case"Enter":if(!e.nativeEvent.isComposing&&229!==e.keyCode){e.preventDefault();let t=H();if(t){let e=new Event(b);t.dispatchEvent(e)}}}}},i.createElement("label",{"cmdk-label":"",htmlFor:G.inputId,id:G.labelId,style:B},c),V(e,e=>i.createElement(N.Provider,{value:O},i.createElement(w.Provider,{value:G},e))))}),C=i.forwardRef((e,t)=>{var r,n;let l=(0,p.useId)(),o=i.useRef(null),a=i.useContext(k),s=i.useContext(w),c=$(e),d=null!=(n=null==(r=c.current)?void 0:r.forceMount)?n:null==a?void 0:a.forceMount;A(()=>{if(!d)return s.item(l,null==a?void 0:a.id)},[d]);let u=O(l,o,[e.value,e.children,o],e.keywords),f=i.useContext(N),h=_(e=>e.value&&e.value===u.current),x=_(e=>!!d||!1===s.filter()||!e.search||e.filtered.items.get(l)>0);function v(){var e,t;g(),null==(t=(e=c.current).onSelect)||t.call(e,u.current)}function g(){f.setState("value",u.current,!0)}if(i.useEffect(()=>{let t=o.current;if(!(!t||e.disabled))return t.addEventListener(b,v),()=>t.removeEventListener(b,v)},[x,e.onSelect,e.disabled]),!x)return null;let{disabled:y,value:j,onSelect:S,forceMount:C,keywords:E,...I}=e;return i.createElement(m.Primitive.div,{ref:F([o,t]),...I,id:l,"cmdk-item":"",role:"option","aria-disabled":!!y,"aria-selected":!!h,"data-disabled":!!y,"data-selected":!!h,onPointerMove:y||s.getDisablePointerSelection()?void 0:g,onClick:y?void 0:v},e.children)}),E=i.forwardRef((e,t)=>
1{let{heading:r,children:n,forceMount:l,...o}=e,a=(0,p.useId)(),s=i.useRef(null),c=i.useRef(null),d=(0,p.useId)(),u=i.useContext(w),f=_(e=>!!l||!1===u.filter()||!e.search||e.filtered.groups.has(a));A(()=>u.group(a),[]),O(a,s,[e.value,e.heading,c]);let h=i.useMemo(()=>({id:a,forceMount:l}),[l]);return i.createElement(m.Primitive.div,{ref:F([s,t]),...o,"cmdk-group":"",role:"presentation",hidden:!f||void 0},r&&i.createElement("div",{ref:c,"cmdk-group-heading":"","aria-hidden":!0,id:d},r),V(e,e=>i.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?d:void 0},i.createElement(k.Provider,{value:h},e))))}),I=i.forwardRef((e,t)=>{let{alwaysRender:r,...n}=e,l=i.useRef(null),o=_(e=>!e.search);return r||o?i.createElement(m.Primitive.div,{ref:F([l,t]),...n,"cmdk-separator":"",role:"separator"}):null}),R=i.forwardRef((e,t)=>{let{onValueChange:r,...n}=e,l=null!=e.value,o=i.useContext(N),a=_(e=>e.search),s=_(e=>e.value),c=i.useContext(w),d=i.useMemo(()=>{var e;let t=null==(e=c.listInnerRef.current)?void 0:e.querySelector(`${v}[${y}="${encodeURIComponent(s)}"]`);return null==t?void 0:t.getAttribute("id")},[]);return i.useEffect(()=>{null!=e.value&&o.setState("search",e.value)},[e.value]),i.createElement(m.Primitive.input,{ref:t,...n,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":c.listId,"aria-labelledby":c.labelId,"aria-activedescendant":d,id:c.inputId,type:"text",value:l?e.value:a,onChange:e=>{l||o.setState("search",e.target.value),null==r||r(e.target.value)}})}),D=i.forwardRef((e,t)=>{let{children:r,label:n="Suggestions",...l}=e,o=i.useRef(null),a=i.useRef(null),s=i.useContext(w);return i.useEffect(()=>{if(a.current&&o.current){let e=a.current,t=o.current,r,n=new ResizeObserver(()=>{r=requestAnimationFrame(()=>{let r=e.offsetHeight;t.style.setProperty("--cmdk-list-height",r.toFixed(1)+"px")})});return n.observe(e),()=>{cancelAnimationFrame(r),n.unobserve(e)}}},[]),i.createElement(m.Primitive.div,{ref:F([o,t]),...l,"cmdk-list":"",role:"listbox","aria-label":n,id:s.listId},V(e,e=>i.createElement("div",{ref:F([a,s.listInnerRef]),"cmdk-list-sizer":""},e)))}),P=i.forwardRef((e,t)=>{let{open:r,onOpenChange:n,overlayClassName:l,contentClassName:o,container:a,...s}=e;return i.createElement(u.Root,{open:r,onOpenChange:n},i.createElement(u.Portal,{container:a},i.createElement(u.Overlay,{"cmdk-overlay":"",className:l}),i.createElement(u.Content,{"aria-label":e.label,"cmdk-dialog":"",className:o},i.createElement(S,{ref:t,...s}))))}),M=Object.assign(S,{List:D,Item:C,Input:R,Group:E,Separator:I,Dialog:P,Empty:i.forwardRef((e,t)=>_(e=>0===e.filtered.count)?i.createElement(m.Primitive.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:i.forwardRef((e,t)=>{let{progress:r,children:n,label:l="Loading...",...o}=e;return i.createElement(m.Primitive.div,{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":l},V(e,e=>i.createElement("div",{"aria-hidden":!0},e)))})});function $(e){let t=i.useRef(e);return A(()=>{t.current=e}),t}var A="u"<typeof window?i.useEffect:i.useLayoutEffect;function L(e){let t=i.useRef();return void 0===t.current&&(t.current=e()),t}function F(e){return t=>{e.forEach(e=>{"function"==typeof e?e(t):null!=e&&(e.current=t)})}}function _(e){let t=i.useContext(N),r=()=>e(t.snapshot());return(0,f.useSyncExternalStore)(t.subscribe,r,r)}function O(e,t,r,n=[]){let l=i.useRef(),o=i.useContext(w);return A(()=>{var i;let a=(()=>{var e;for(let t of r){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():l.current}})(),s=n.map(e=>e.trim());o.value(e,a,s),null==(i=t.current)||i.setAttribute(y,a),l.current=a}),l}var T=()=>{let[e,t]=i.useState(),r=L(()=>new Map);return A(()=>{r.current.forEach(e=>e()),r.current=new Map},[e]),(e,n)=>{r.current.set(e,n),t({})}};function V({asChild:e,children:t},r){let n;return e&&i.isValidElement(t)?i.cloneElement("function"==typeof(n=t.type)?n(t.props):"render"in n?n.render(t.props):t,{ref:t.ref},r(t.props.children)):r(t)}var B={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"},G=e.i(632741),K=e.i(645971),q=e.i(80687);let z=i.forwardRef(({className:e,...r},n)=>(0,t.jsx)(M,{ref:n,className:(0,q.cn)("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground",e),...r}));z.displayName=M.displayName;let U=({children:e,title:r="Search",...n})=>(0,t.jsx)(K.Dialog,{...n,children:(0,t.jsxs)(K.DialogContent,{className:"overflow-hidden p-0 shadow-lg",children:[(0,t.jsx)(K.DialogTitle,{className:"sr-only",children:r}),(0,t.jsx)(z,{className:"[&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-group]]:px-2 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:e})]})}),W=i.forwardRef(({className:e,...r},n)=>(0,t.jsxs)("div",{className:"flex items-center border-b px-3","cmdk-input-wrapper":"",children:[(0,t.jsx)(G.Search,{className:"mr-2 h-4 w-4 shrink-0 opacity-50"}),(0,t.jsx)(M.Input,{ref:n,className:(0,q.cn)("flex h-11 w-full rounded-md bg-transparent py-3 text-sm outline-none placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50",e),...r})]}));W.displayName=M.Input.displayName;let H=i.forwardRef(({className:e,...r},n)=>(0,t.jsx)(M.List,{ref:n,className:(0,q.cn)("max-h-[300px] overflow-y-auto overflow-x-hidden",e),...r}));H.displayName=M.List.displayName,i.forwardRef((e,r)=>(0,t.jsx)(M.Empty,{ref:r,className:"py-6 text-center text-sm",...e})).displayName=M.Empty.displayName,i.forwardRef(({className:e,...r},n)=>(0,t.jsx)(M.Group,{ref:n,className:(0,q.cn)("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground",e),...r})).displayName=M.Group.displayName,i.forwardRef(({className:e,...r},n)=>(0,t.jsx)(M.Separator,{ref:n,className:(0,q.cn)("-mx-1 h-px bg-border",e),...r})).displayName=M.Separator.displayName,i.forwardRef(({className:e,...r},n)=>(0,t.jsx)(M.Item,{ref:n,className:(0,q.cn)("relative flex cursor-default select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none aria-selected:bg-accent aria-selected:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",e),...r})).displayName=M.Item.displayName;var X=e.i(441834),J=e.i(332783),Q=e.i(829568);let Y={auto:"w-auto max-w-full",sm:"w-48 max-w-full",md:"w-64 max-w-full",lg:"w-96 max-w-full",full:"w-full max-w-full"},Z={start:"justify-start",center:"justify-center",end:"justify-end"},ee="/categories";function et({placeholder:e,width:i="md",align:o="start",showSubmitButton:a,submitLabel:s,submitBgColor:c,submitTextColor:d,inputBgColor:u,inputBorderColor:m,inputTextColor:p}){let f=(0,Q.useCloseDrawerMenu)(),h=(0,l.useRouter)(),x=(0,J.useAnalytics)(),v=(0,l.useSearchParams)(),g=new URLSearchParams(v.toString()),b=v.get("q"),y=b?decodeURIComponent(b):"";return(0,t.jsx)("div",{className:(0,q.cn)("flex min-w-0 max-w-full",Z[o??"start"]),children:(0,t.jsxs)("form",{onSubmit:function(e){e.preventDefault();let t=e.target.search;t.value&&(g.set("q",encodeURIComponent(t.value)),x.search(t.value)),h.push(`${ee}?${g.toString()}`),f?.()},className:(0,q.cn)("flex min-w-0",Y[i??"md"]),children:[(0,t.jsxs)("div",{className:"relative min-w-0 flex-1",children:[(0,t.jsx)("input",{id:"puck-search",type:"text",name:"search",placeholder:e,defaultValue:y,style:{backgroundColor:u||void 0,borderColor:m||void 0,color:p||void 0},className:(0,q.cn)("w-full min-w-0 border px-9 py-2 text-[16px] leading-5 placeholder:text-muted-foreground lg:text-sm",!u&&"bg-background",!p&&"text-foreground",a?"rounded-l-lg border-r-0":"rounded-lg","focus:outline-none focus:ring-2 focus:ring-ring")},b),(0,t.jsx)("div",{className:"absolute left-0 top-0 ml-2 flex h-full items-center text-muted-foreground",children:(0,t.jsx)(r.default,{className:"h-4 w-4"})}),y&&(0,t.jsx)("div",{className:"absolute right-0 top-0 mr-3 flex h-full cursor-pointer items-center text-foreground",onClick:function(){let e=document.getElementById("puck-search");e&&(e.value=""),b&&(g.delete("q"),h.push(`${ee}?${g.toString()}`))},children:(0,t.jsx)(n.X,{className:"h-4 w-4"})})]}),a&&(0,t.jsx)("button",{type:"submit",style:{backgroundColor:c||void 0,borderColor:c||void 0,color:d||void 0},className:(0,q.cn)("shrink-0 rounded-r-lg border border-primary bg-primary px-6 py-2 text-sm font-medium text-primary-foreground","hover:opacity-90 focus:outline-none focus:ring-2 focus:ring-ring"),children:s})]})})}function er({align:e="start",placeholder:n,triggerLabel:o,triggerVariant:a,triggerBgColor:s,triggerTextColor:c,triggerBorderColor:d,triggerBorderWidth:u,triggerIconSize:m,triggerIconStrokeWidth:p,triggerPadding:f,enableShortcut:h}){let x=(0,Q.useCloseDrawerMenu)(),v=(0,l.useRouter)(),g=(0,J.useAnalytics)(),b=(0,l.useSearchParams)(),[y,j]=(0,i.useState)(!1),[w,N]=(0,i.useState)("");return(0,i.useEffect)(()=>
1{if(h)return document.addEventListener("keydown",e),()=>document.removeEventListener("keydown",e);function e(e){"k"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),j(e=>!e))}},[h]),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:(0,q.cn)("flex",Z[e??"start"]),children:(0,t.jsxs)("button",{type:"button",onClick:()=>j(!0),"aria-label":o,style:{backgroundColor:s||void 0,color:c||void 0,borderColor:d||void 0,borderWidth:u||void 0,borderStyle:u&&"0px"!==u?"solid":"none",padding:f||void 0},className:(0,q.cn)("cursor-pointer inline-flex items-center gap-2 rounded-lg text-sm","hover:opacity-90 focus:outline-none focus:ring-2 focus:ring-ring"),children:[(0,t.jsx)(r.default,{strokeWidth:p,style:{width:m,height:m}}),"labeled"===a&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{children:o}),h&&(0,t.jsx)("kbd",{className:"ml-2 hidden rounded border bg-muted px-1.5 py-0.5 text-[10px] text-muted-foreground sm:inline-block",children:"⌘K"})]})]})}),(0,t.jsxs)(U,{open:y,onOpenChange:j,children:[(0,t.jsx)(W,{placeholder:n,value:w,onValueChange:N,onKeyDown:e=>{if("Enter"===e.key){let t,r;e.preventDefault(),t=w.trim(),r=new URLSearchParams(b.toString()),t?(r.set("q",encodeURIComponent(t)),g.search(t)):r.delete("q"),j(!1),N(""),v.push(`${ee}?${r.toString()}`),x?.()}}}),(0,t.jsx)(H,{children:(0,t.jsxs)("div",{className:"px-4 py-3 text-sm text-muted-foreground",children:["Press ",(0,t.jsx)("kbd",{className:"rounded border bg-muted px-1.5 py-0.5 text-xs",children:"Enter"})," to search",w?` for "${w}"`:"","."]})})]})]})}e.s(["SearchBar",0,({mode:e="inline",placeholder:r="Search for products...",width:n="md",align:l="start",showSubmitButton:i=!0,submitLabel:o="Search",submitBgColor:a="var(--primary)",submitTextColor:s="var(--primary-foreground)",inputBgColor:c="var(--background)",inputBorderColor:d="var(--border)",inputTextColor:u="var(--foreground)",triggerLabel:m="Search",triggerVariant:p="icon",triggerBgColor:f="var(--background)",triggerTextColor:h="var(--foreground)",triggerBorderColor:x="var(--border)",triggerBorderWidth:v="1px",triggerIconSize:g="16px",triggerIconStrokeWidth:b="2px",triggerPadding:y="8px",enableShortcut:j=!0})=>"dialog"===e?(0,t.jsx)(er,{align:l,placeholder:r,triggerLabel:m,triggerVariant:p,triggerBgColor:f,triggerTextColor:h,triggerBorderColor:x,triggerBorderWidth:v,triggerIconSize:g,triggerIconStrokeWidth:b,triggerPadding:y,enableShortcut:j}):(0,t.jsx)(et,{placeholder:r,width:n,align:l,showSubmitButton:i,submitLabel:o,submitBgColor:a,submitTextColor:s,inputBgColor:c,inputBorderColor:d,inputTextColor:u}),"SearchBarSkeleton",0,function({mode:e="inline",width:r="md",align:n="start",showSubmitButton:l=!0,submitLabel:i="Search",triggerLabel:o="Search",triggerVariant:a="icon",triggerBorderWidth:s="1px",triggerIconSize:c="16px",triggerPadding:d="8px",enableShortcut:u=!0}){return(0,t.jsx)("div",{"aria-hidden":"true",className:(0,q.cn)("flex min-w-0 max-w-full",Z[n]),children:"dialog"===e?(0,t.jsxs)(X.Skeleton,{className:"inline-flex items-center gap-2 rounded-lg text-sm",style:{padding:d||void 0,borderWidth:s||void 0,borderStyle:s&&"0px"!==s?"solid":"none",borderColor:"transparent"},children:[(0,t.jsx)("span",{style:{width:c,height:c}}),"labeled"===a&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"invisible",children:o}),u&&(0,t.jsx)("span",{className:"invisible ml-2 hidden rounded border px-1.5 py-0.5 text-[10px] sm:inline-block",children:"⌘K"})]})]}):(0,t.jsxs)("div",{className:(0,q.cn)("flex min-w-0",Y[r]),children:[(0,t.jsx)(X.Skeleton,{className:(0,q.cn)("min-w-0 flex-1 border border-transparent px-9 py-2 text-[16px] leading-5 lg:text-sm",l?"rounded-l-lg rounded-r-none border-r-0":"rounded-lg"),children:(0,t.jsx)("span",{className:"invisible",children:" "})}),l&&(0,t.jsx)(X.Skeleton,{className:"shrink-0 rounded-l-none rounded-r-lg border border-transparent px-6 py-2 text-sm font-medium",children:(0,t.jsx)("span",{className:"invisible",children:i})})]})})}],794430)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.