"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3792],{43162:function(e,r,l){l.d(r,{w:function(){return x}});var t=l(46821),a=l(44333),s=l(15932),n=l(89349),i=l(51224),o=l(71658),d=l(74104),c=l(75079);let u=(0,o.tv)({base:"prose-caption-1 z-10 flex flex-row items-center justify-between gap-1 whitespace-nowrap border-[1px] border-transparent px-3 py-2 font-semibold",variants:{variant:{active:"border-[1px] border-base-divider-brand text-base-content-brand",activeOutline:"border-[1px] border-base-divider-strong text-base-content-brand",outline:"border-[1px] border-base-divider-strong",clear:""}},compoundVariants:[{variant:["outline","clear"],className:"pressed:text-base-content-brand selected:border-base-divider-brand selected:bg-base-canvas-brand-subtle selected:text-base-content-brand"}],defaultVariants:{variant:"clear"}});function x(e){let{label:r,isSelected:l,children:o,isOpen:x,onOpenChange:m,isDisabled:h,variant:p,isLoading:b,placement:f}=e,{refs:v,floatingStyles:g,context:j}=(0,a.YF)({placement:null!=f?f:"bottom-start",open:x,onOpenChange:m,middleware:[(0,s.cv)({mainAxis:5}),(0,s.uY)()],whileElementsMounted:n.Me}),{getReferenceProps:w,getFloatingProps:N}=(0,a.NI)([(0,a.eS)(j),(0,a.bQ)(j,{outsidePressEvent:"pointerdown"}),(0,a.qs)(j)]),y=(0,a.PC)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(d.Button,{isDisabled:h,ref:v.setReference,...w(),className:u({variant:x&&l?"activeOutline":l?"active":x?"outline":"clear"}),variant:null!=p?p:"outline",children:(0,t.jsxs)(t.Fragment,{children:[r,b?(0,t.jsx)(c.$,{size:"sm"}):x?(0,t.jsx)(i.jRD,{className:"text-base"}):(0,t.jsx)(i.OrA,{className:"text-base"})]})}),x&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(a.wD,{context:j,children:(0,t.jsx)("div",{className:"Popover z-20 rounded-lg border-[1px] border-base-divider-medium bg-white max-md:hidden",ref:v.setFloating,style:g,"aria-labelledby":y,...N(),children:o})}),(0,t.jsx)(a.y0,{"aria-label":"Filter menu ".concat(y),className:"Dialog-overlay z-20 md:hidden",lockScroll:!0,children:(0,t.jsx)(a.wD,{context:j,children:(0,t.jsx)("div",{className:"Dialog h-full w-full md:hidden","aria-labelledby":y,...N(),children:(0,t.jsx)("div",{className:"h-full w-full bg-white md:hidden",children:o})})})})]})]})}},23792:function(e,r,l){l.d(r,{MD:function(){return p},z4:function(){return y},rT:function(){return E}});var t=l(46821),a=l(85074),s=l(35053),n=l(51224),i=l(71658),o=l(74104),d=l(13238),c=l(49588),u=l(30023),x=l(75079),m=l(43162);let h=(0,i.tv)({base:"py-2",variants:{size:{small:"h-full w-full md:h-[26vh] md:w-[12vw] md:min-w-[150px]",medium:"h-full w-full md:h-[26vh] md:w-[15vw] md:min-w-[250px]",large:"h-full w-full md:h-[26vh] md:w-[28vw] md:min-w-[350px]"}}});function p(e){var r,l,i,p;let{modalTitle:b,title:f,selected:v,setSelected:g,options:j,getOptionLabel:w,getButtonLabel:N,dropdownSize:y,selectAllProps:k,searchProps:z,footerLabels:C,resetSelectionsOnToggle:S,buttonProps:D,dropdownPlacement:F}=e,V=(0,a.useMemo)(()=>{var e;return{id:"all",name:null!==(e=null==k?void 0:k.label)&&void 0!==e?e:"All"}},[null==k?void 0:k.label]),B=new Set(["all",...j]),A="all"!==v,[P,M]=(0,a.useState)(!1),T=(e,r)=>{e||S&&!0!==r?E(B):"all"!==O&&0===O.size?E(B):"all"===O||O.has("all")?g("all"):g(O),null==z||z.onSearch(""),M(e)},[O,E]=(0,a.useState)(new Set([]));(0,a.useEffect)(()=>{P&&v&&"all"!==v&&Array.from(v).length!==j.length&&E(v)},[P]);let L=(0,a.useMemo)(()=>Array.from(j).sort().join(),[j]),R=e=>(0,s.Z)(e)||"all"===e||"all"!==O&&!O.has("all")&&e.has("all")?E(B):(e.delete("all"),e.size===j.length&&Array.from(e).sort().join()===L)?E(B):E(e),Z=j.map(e=>({id:e,name:w?w(e):e})),G=h({size:y});return(0,t.jsx)(m.w,{placement:F,isLoading:null!==(r=null==C?void 0:C.loading)&&void 0!==r&&r,variant:null==D?void 0:D.variant,isDisabled:0===j.length||(null==C?void 0:C.loading),label:N(v),isSelected:A,isOpen:P,onOpenChange:e=>T(e),children:(0,t.jsxs)("div",{className:"flex h-full flex-col pt-6 shadow-sm",children:[(0,t.jsxs)("div",{className:"flex-0.2 flex flex-col px-6",children:[(0,t.jsxs)("div",{className:"flex flex-row md:hidden",children:[(0,t.jsx)("div",{className:"flex flex-auto",children:(0,t.jsx)("p",{className:"text-base-content-strong",children:b})}),(0,t.jsx)("div",{className:"flex",children:(0,t.jsx)(o.Button,{onPress:()=>{T(!1)},variant:"outline",className:"border-0 p-0",children:(0,t.jsx)(n.czh,{className:"text-2xl"})})})]}),(0,t.jsx)("p",{className:"prose-caption-3 max-md:hidden",children:f}),z?(0,t.jsx)("div",{className:"max-md:pt-6 md:pt-4",children:(0,t.jsx)(u.TC,{label:null!==(l=z.searchPlaceholder)&&void 0!==l?l:"Search",className:"max-w-xl [grid-area:search]",placeholder:null!==(i=z.searchPlaceholder)&&void 0!==i?i:"Search",defaultValue:z.searchQuery,onSubmit:z.onSearch})}):null]}),(0,t.jsx)("div",{className:"custom-scrollbar flex flex-auto flex-col overflow-y-hidden px-6 md:h-[32vh]",children:(null==z?void 0:z.searchQuery)?z.loading?(0,t.jsx)("div",{className:G,children:(0,t.jsx)("div",{className:"flex flex-row justify-center py-2",children:(0,t.jsx)(x.$,{size:"sm"})})}):0===z.searchResults.length?(0,t.jsx)("div",{className:G,children:(0,t.jsx)("p",{className:"prose-caption-1 py-1.5 text-base-content-medium",children:"0 result"})}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("p",{className:"prose-caption-1 pt-4 text-base-content-medium",children:[z.searchResults.length," result"]}),(0,t.jsx)(c.e,{className:G,selectionMode:"multiple",selectedKeys:O,onSelectionChange:R,"aria-label":"Select",items:z.searchResults.map(e=>{var r;return{id:e,name:null!==(r=null==w?void 0:w(e))&&void 0!==r?r:e}}),children:e=>{var r;return(0,t.jsx)(c.l,{textValue:null!==(r=null==w?void 0:w(e.id))&&void 0!==r?r:e.id,children:e.name})}})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"flex max-h-[40%] py-3",children:(0,t.jsxs)("label",{className:"me-5 inline-flex cursor-pointer items-center",children:[(0,t.jsx)("input",{type:"checkbox",value:"",checked:"all"===O||O.has("all"),onChange:()=>{},onClick:()=>{"all"===O||O.has("all")?E(new Set):E(B)},className:"peer sr-only"}),(0,t.jsx)("div",{className:"peer relative h-[18px] w-7 rounded-full bg-interaction-support-unselected px-0.5 py-0.5 after:flex after:h-3.5 after:w-3.5 after:items-center after:justify-center after:rounded-full after:border-none after:bg-white after:pb-[1px] after:pr-[1px] after:text-[8px] after:text-interaction-support-unselected after:transition-all after:content-['x'] peer-checked:bg-interaction-success peer-checked:after:translate-x-2.5 peer-checked:after:border-none peer-checked:after:pl-[1px] peer-checked:after:pt-[1px] peer-checked:after:text-interaction-success peer-checked:after:content-['\\2713'] rtl:peer-checked:after:-translate-x-full"}),(0,t.jsx)("span",{className:"prose-subhead-2 ml-1.5 text-base-content-strong",children:V.name})]})}),(0,t.jsx)(d.i,{className:"h-1"}),(0,t.jsx)("div",{className:"flex overflow-y-auto",children:(0,t.jsx)(c.e,{className:G,selectionMode:"multiple",selectedKeys:O,onSelectionChange:R,"aria-label":"Select",items:Z,children:e=>(0,t.jsx)(c.l,{textValue:e.id,children:e.name})})})]})}),(0,t.jsxs)("div",{className:"flex flex-row justify-between border-t border-t-base-divider-medium px-6 py-2",children:[(0,t.jsx)(o.Button,{variant:"outline",onPress:()=>{E(new Set)},className:"prose-caption-1 border-0 px-1 disabled:bg-white",isDisabled:"all"!==O&&0===O.size,children:(null==C?void 0:C.clearLabel)?C.clearLabel:"Clear"}),(0,t.jsxs)(o.Button,{isDisabled:"all"!==O&&0===O.size||!!C&&C.loading,onPress:()=>{T(!1,!0)},className:"flex min-w-20 flex-row items-center justify-center rounded-lg",children:[C?C.loading?(0,t.jsx)(x.$,{size:"sm"}):null!==(p=C.applyLabel)&&void 0!==p?p:"Apply":"Apply",(null==C?void 0:C.displayCount)?(0,t.jsx)("div",{className:"flex min-w-5 justify-end pl-0.5",children:"all"===O||O.has("all")?"(".concat(j.length,")"):"(".concat(O.size,")")}):null]})]})]})})}var b=l(23614),f=l(72579),v=l(72369),g=l(20893),j=l(71344);let w=(0,i.tv)({base:"prose-caption-1 flex flex-row items-center justify-between gap-1 whitespace-nowrap border-0 font-semibold",variants:{variant:{outline:"border-[1px] border-base-divider-strong",clear:"border-0"}},compoundVariants:[{variant:["outline","clear"],className:"pressed:text-base-content-brand selected:border-base-divider-brand selected:bg-base-canvas-brand-subtle selected:text-base-content-brand"}],defaultVariants:{variant:"outline"}});function N(e){let{label:r,children:l,isSelected:a,...s}=e;return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(g.hg,{...s,children:[(0,t.jsx)(o.Button,{"data-selected":(0,i.PB)(a),className:w({variant:s.isOpen?"outline":"clear"}),variant:"outline",children:e=>{let{isPressed:l}=e;return(0,t.jsxs)(t.Fragment,{children:[r,l?(0,t.jsx)(n.jRD,{className:"text-base"}):(0,t.jsx)(n.OrA,{className:"text-base"})]})}}),(0,t.jsx)(j.J,{overlayClassName:"max-md:hidden",children:(0,t.jsx)(g.Vq,{className:"rounded-lg border-[1px] bg-white focus-visible:outline-none max-md:fixed max-md:left-[1.25vw] max-md:mt-[-10px] max-md:w-[97.5vw]",...s,children:l})})]})})}function y(e){let{selected:r,setSelected:l}=e,[s,n]=(0,a.useState)(!1),o=Object.entries(v.o).reduce((e,r)=>{let[l,t]=r;return e[t]=l,e},{}),d=(0,a.useMemo)(()=>(0,t.jsxs)("p",{children:[(0,t.jsx)("span",{className:"font-medium",children:"Sort by: "}),"".concat(o[r])]}),[r,o]),c=e=>{l(e),n(!1)},u=(0,i.tv)({base:"flex cursor-pointer px-3 py-2 hover:bg-interaction-muted-main-hover",variants:{isSelected:{false:"bg-transparent",true:"bg-purple-100"}}});return(0,t.jsx)(N,{label:d,isSelected:!1,isOpen:s,onOpenChange:n,children:(0,t.jsx)("div",{className:"flex min-w-[10rem] flex-col p-2",children:Object.entries(v.o).map(e=>{let[l,a]=e;return(0,t.jsxs)(b.z,{className:u({isSelected:r===a}),id:l,onPress:()=>c(a),children:[(0,t.jsx)("p",{className:"prose-caption-1 flex-1 text-left",children:l}),r===a?(0,t.jsx)("p",{className:"prose-caption-1 justify-end pl-2",children:(0,t.jsx)(f.Gy1,{})}):null]},l)})})})}var k=l(9644),z=l(15832),C=l(7353);let S=(0,C.tv)({extend:i.kN,base:"outline-offset-0",variants:{isFocusVisible:{false:"outline-0",true:"outline-2"}}}),D=(0,C.tv)({extend:S,base:"flex max-w-fit cursor-default items-center gap-1 rounded-full border px-2 py-1 text-xs text-base-content-medium transition hover:bg-interaction-muted-main-hover",variants:{size:{md:"prose-subhead-2"},allowsRemoving:{true:"pr-1"},isSelected:{true:"border-transparent bg-purple-100 text-base-content-strong forced-color-adjust-none hover:bg-purple-100 forced-colors:bg-[Highlight] forced-colors:text-[HighlightText]"},isDisabled:{true:"bg-gray-100 text-gray-300 forced-colors:text-[GrayText]"}},defaultVariants:{size:"md"}}),F=(0,C.tv)({extend:i.kN,base:"flex cursor-default items-center justify-center rounded-full p-0.5 transition-[background-color] hover:bg-black/10 pressed:bg-black/20 dark:hover:bg-white/10 dark:pressed:bg-white/20"});function V(e){let{children:r,...l}=e,a="string"==typeof r?r:void 0;return(0,t.jsx)(k.Vp,{textValue:a,...l,className:(0,z.zw)(l.className,(e,r)=>D({...r,className:e})),children:e=>{let{allowsRemoving:l}=e;return(0,t.jsxs)(t.Fragment,{children:[r,l&&(0,t.jsx)(b.z,{slot:"remove",className:F,children:(0,t.jsx)(n.czh,{"aria-hidden":!0,className:"h-3 w-3"})})]})}})}var B=l(54342);let{container:A,label:P,tagList:M,footer:T}=(0,i.tv)({slots:{container:"flex flex-auto flex-col gap-4 p-6 max-md:max-w-full md:min-w-[400px] md:max-w-[450px]",label:"prose-caption-3 max-md:hidden",tagList:"flex flex-wrap gap-2",footer:"flex flex-row justify-between border-t border-t-base-divider-medium px-6 py-2"}})();function O(e){let{initialValues:r,internalValues:l,setInternalValues:i,onApply:d,items:c,children:u}=e,x="all"===l||l.has("all"),m=e=>(0,s.Z)(e)||"all"===e||"all"!==l&&!l.has("all")&&e.has("all")?i(new Set(["all"])):(e.delete("all"),i(e));return(0,a.useEffect)(()=>{r&&m(r)},[r]),(0,t.jsx)(k.QS,{selectionMode:"multiple",selectedKeys:l,onSelectionChange:m,children:(0,t.jsxs)("div",{className:"shadow-sm max-md:flex max-md:h-[100dvh] max-md:flex-1 max-md:flex-col",children:[(0,t.jsxs)("div",{className:A(),children:[(0,t.jsxs)("div",{className:"flex flex-row pb-6 md:hidden",children:[(0,t.jsx)("div",{className:"flex flex-auto",children:(0,t.jsx)("p",{className:"text-base-content-strong",children:"Select topics"})}),(0,t.jsx)("div",{className:"flex",children:(0,t.jsx)(o.Button,{onPress:d,variant:"outline",className:"border-0 p-0",children:(0,t.jsx)(n.czh,{className:"text-2xl"})})})]}),(0,t.jsx)(B._,{className:P(),children:"Topics"}),(0,t.jsx)(k.PS,{className:M(),items:c,children:u})]}),(0,t.jsxs)("div",{className:T(),children:[(0,t.jsx)(o.Button,{variant:"outline",className:"prose-caption-1 border-0 px-0 disabled:bg-white",onPress:()=>{i(new Set(["all"]))},isDisabled:x,children:"Clear"}),(0,t.jsx)(o.Button,{onPress:d,className:"rounded-lg",children:"Apply"})]})]})})}function E(e){let{selected:r,setSelected:l}=e,s="all"!==r,[n,i]=(0,a.useState)(!1),[o,d]=(0,a.useState)(null!=r?r:new Set([])),c=(0,a.useMemo)(()=>r&&"all"!==r?1===r.size?v.h[[...r][0]]:"".concat(r.size," Topics"):"Topics",[r]),u=e=>{l(e),i(!1)},x=()=>{if("all"===o||o.has("all"))return u("all");u(o)};return(0,t.jsx)(m.w,{label:c,isSelected:s,isOpen:n,onOpenChange:()=>{n?x():i(!n)},children:(0,t.jsx)(O,{initialValues:r,internalValues:o,setInternalValues:d,onApply:x,children:Object.entries(v.h).map(e=>{let[r,l]=e;return(0,t.jsx)(V,{className:"cursor-pointer",id:r,children:l},r)})})})}},72369:function(e,r,l){var t,a;l.d(r,{h:function(){return s},o:function(){return t}}),(a=t||(t={})).Relevance="relevancy",a["Last Updated"]="updatedAt",a["Date Created"]="createdAt",a.Downloads="downloadsCount";let s={all:"All",artsandculture:"Arts & Culture",economy:"Economy",education:"Education",environment:"Environment",health:"Health",housing:"Housing",social:"Social",transport:"Transport"}},13238:function(e,r,l){l.d(r,{i:function(){return s}});var t=l(46821);let a=(0,l(71658).tv)({base:"border-solid",variants:{color:{medium:"border-base-divider-medium"},orientation:{horizontal:"h-full",vertical:"w-full"}},defaultVariants:{color:"medium",orientation:"horizontal"}}),s=e=>{let{orientation:r="horizontal",className:l,...s}=e;return(0,t.jsx)("hr",{"aria-orientation":r,...s,className:a({className:l,orientation:r,...s})})}},49588:function(e,r,l){l.d(r,{e:function(){return b},l:function(){return v}});var t=l(46821);l(85074);var a=l(21009),s=l(23614),n=l(7353),i=l(56156),o=l(15832),d=l(51224),c=l(71658);let u=(0,n.tv)({base:"group prose-subhead-2 flex items-center gap-2 transition",variants:{isDisabled:{false:"text-base-content-strong dark:text-zinc-200",true:"text-interaction-support-disabled-content dark:text-zinc-600 forced-colors:text-[GrayText]"}}}),x=(0,n.tv)({extend:c.kN,base:"flex h-5 w-5 flex-shrink-0 items-center justify-center rounded border-2 transition",variants:{isSelected:{false:"dark:[--color:colors.zinc-400)] border-[--color] bg-white [--color:theme(colors.gray.400)] group-pressed:[--color:theme(colors.gray.500)] dark:bg-zinc-900 dark:group-pressed:[--color:theme(colors.zinc.300)]",true:"border-[--color] bg-[--color] [--color:theme(colors.interaction.main.DEFAULT)] group-pressed:[--color:theme(colors.interaction.main.active)] dark:[--color:theme(colors.slate.300)] dark:group-pressed:[--color:theme(colors.slate.200)] forced-colors:![--color:Highlight]"},isInvalid:{true:"[--color:theme(colors.red.700)] group-pressed:[--color:theme(colors.red.800)] dark:[--color:theme(colors.red.600)] dark:group-pressed:[--color:theme(colors.red.700)] forced-colors:![--color:Mark]"},isDisabled:{true:"[--color:theme(colors.gray.200)] dark:[--color:theme(colors.zinc.700)] forced-colors:![--color:GrayText]"}}}),m="w-4 h-4 text-white group-disabled:text-gray-400 dark:text-slate-900 dark:group-disabled:text-slate-600 forced-colors:text-[HighlightText]";function h(e){return(0,t.jsx)(i.XZ,{...e,className:(0,o.zw)(e.className,(e,r)=>u({...r,className:e})),children:r=>{let{isSelected:l,isIndeterminate:a,...s}=r;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:x({isSelected:l||a,...s}),children:a?(0,t.jsx)(d.pwh,{"aria-hidden":!0,className:m}):l?(0,t.jsx)(d.hXj,{"aria-hidden":!0,className:m}):null}),e.children]})}})}var p=l(38962);function b(e){let{children:r,...l}=e;return(0,t.jsx)(a.e_,{...l,className:(0,p.r)(l.className,"relative overflow-auto"),children:r})}let f=(0,n.tv)({extend:c.kN,base:"prose-subhead-2 relative -mb-px flex cursor-default select-none gap-3 py-2 text-base-content-strong -outline-offset-2 last:mb-0 hover:bg-interaction-muted-main-hover",variants:{isSelected:{false:"",true:"z-20"},isDisabled:{true:"z-10 text-interaction-support-disabled-content forced-colors:text-[GrayText]"}}});function v(e){let{children:r,...l}=e,n="string"==typeof r?r:void 0;return(0,t.jsx)(a.l5,{textValue:n,...l,className:f,children:e=>{let{selectionMode:l,selectionBehavior:a,allowsDragging:n}=e;return(0,t.jsxs)(t.Fragment,{children:[n&&(0,t.jsx)(s.z,{slot:"drag",children:"≡"}),"multiple"===l&&"toggle"===a&&(0,t.jsx)(h,{slot:"selection"}),r]})}})}},71344:function(e,r,l){l.d(r,{J:function(){return c}});var t=l(46821);l(85074);var a=l(15832),s=l(13312),n=l(80805),i=l(71658);let{popover:o,arrow:d}=(0,i.tv)({slots:{popover:"bg-clip-padding dark:bg-zinc-900/70 dark:text-zinc-300 dark:backdrop-blur-2xl dark:backdrop-saturate-200 forced-colors:bg-[Canvas]",arrow:"block fill-white stroke-black/10 stroke-1 group-placement-left:-rotate-90 group-placement-right:rotate-90 group-placement-bottom:rotate-180 dark:fill-[#1f1f21] dark:stroke-zinc-600 forced-colors:fill-[Canvas] forced-colors:stroke-[ButtonBorder]"},variants:{color:{inverse:{popover:"border-grey-800 bg-base-canvas-inverse text-base-content-inverse",arrow:"fill-base-canvas-inverse stroke-grey-800"}}}})();function c(e){let{children:r,showArrow:l,className:c,overlayClassName:u,color:x,...m}=e,h=(0,a.jn)(s.m),p=(null==h?void 0:h.trigger)==="SubmenuTrigger",b=l?12:8;b=p?b-6:b;let f=(0,i.tv)({base:"group"});return(0,t.jsxs)(s.J,{offset:b,...m,className:(0,a.zw)(c,(e,r)=>o({...r,color:x,className:e})),children:[l&&(0,t.jsx)(n.Q,{className:f({className:u}),children:(0,t.jsx)("svg",{width:12,height:12,viewBox:"0 0 12 12",className:d({color:x}),children:(0,t.jsx)("path",{d:"M0 0 L6 6 L12 0"})})}),r]})}},30023:function(e,r,l){l.d(r,{TC:function(){return f}});var t=l(46821),a=l(85074),s=l(78446),n=l(47866),i=l(15832),o=l(87738),d=l(51224),c=l(40546),u=l(74104),x=l(71658);let m=(0,x.tv)({variants:{isFocusWithin:{false:"border-base-divider-medium hover:border-purple-300 forced-colors:border-[ButtonBorder]",true:"-m-[1px] border-2 border-base-divider-brand"}}}),h=(0,x.tv)({base:"group flex items-center overflow-hidden rounded-lg border bg-white",variants:m.variants}),p=(0,x.tv)({base:"prose-subhead-5 relative box-content rounded-[6.25rem] px-3 font-medium text-base-content-strong placeholder-interaction-support-placeholder"});function b(e){return(0,t.jsx)(n.Z,{...e,className:(0,i.zw)(e.className,(e,r)=>h({...r,className:e}))})}function f(e){let{className:r,onSubmit:l,...n}=e,i=(0,c.c)(n),m=(0,a.useRef)(null),{inputProps:h,labelProps:f}=(0,s.t)(n,i,m);(0,a.useEffect)(()=>{null==l||l(i.value)},[i.value]);let v=(0,x.tv)({base:"border-0 p-0",variants:{hidden:{true:"hidden",false:""}}});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("label",{className:"sr-only",...f,children:n.label}),(0,t.jsxs)(b,{className:p({className:r}),"data-empty":(0,x.PB)(""===i.value),children:[(0,t.jsx)(d.Goc,{size:"1rem"}),(0,t.jsx)(o.I,{...h,ref:m,type:"search",className:"w-0 flex-1 bg-white py-2.5 pl-2 font-medium text-base-content-strong placeholder-interaction-support-placeholder outline-0 [&::-webkit-search-cancel-button]:hidden",required:!0}),(0,t.jsx)(u.Button,{variant:"outline",className:v({hidden:!i.value}),onPress:()=>{i.setValue("")},children:(0,t.jsx)(d.czh,{size:"1rem"})})]})]})}},75079:function(e,r,l){l.d(r,{$:function(){return s}});var t=l(46821);let a=(0,l(71658).tv)({base:"animate-loading fill-brand-primary-500 text-gray-200 dark:text-gray-600",variants:{size:{xs:"h-3 w-3",sm:"h-4 w-4",md:"h-6 w-6",lg:"h-8 w-8"}}}),s=e=>{let{size:r}=e;return(0,t.jsx)("div",{role:"status",children:(0,t.jsxs)("svg",{"aria-hidden":"true",className:a({size:r}),viewBox:"0 0 100 101",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("path",{d:"M100 50.5908C100 78.2051 77.6142 100.591 50 100.591C22.3858 100.591 0 78.2051 0 50.5908C0 22.9766 22.3858 0.59082 50 0.59082C77.6142 0.59082 100 22.9766 100 50.5908ZM9.08144 50.5908C9.08144 73.1895 27.4013 91.5094 50 91.5094C72.5987 91.5094 90.9186 73.1895 90.9186 50.5908C90.9186 27.9921 72.5987 9.67226 50 9.67226C27.4013 9.67226 9.08144 27.9921 9.08144 50.5908Z",fill:"currentColor"}),(0,t.jsx)("path",{d:"M93.9676 39.0409C96.393 38.4038 97.8624 35.9116 97.0079 33.5539C95.2932 28.8227 92.871 24.3692 89.8167 20.348C85.8452 15.1192 80.8826 10.7238 75.2124 7.41289C69.5422 4.10194 63.2754 1.94025 56.7698 1.05124C51.7666 0.367541 46.6976 0.446843 41.7345 1.27873C39.2613 1.69328 37.813 4.19778 38.4501 6.62326C39.0873 9.04874 41.5694 10.4717 44.0505 10.1071C47.8511 9.54855 51.7191 9.52689 55.5402 10.0491C60.8642 10.7766 65.9928 12.5457 70.6331 15.2552C75.2735 17.9648 79.3347 21.5619 82.5849 25.841C84.9175 28.9121 86.7997 32.2913 88.1811 35.8758C89.083 38.2158 91.5421 39.6781 93.9676 39.0409Z",fill:"currentFill"})]})})}}}]);