;/*FB_PKG_DELIM*/

__d("BaseTypeaheadBaseStaticDataSource",["BaseTypeaheadDataCacheProvider","BaseTypeaheadInMemoryMapDataCache","baseTypeaheadStartsWithMatchBuilder"],(function(a,b,c,d,e,f,g){"use strict";a=function(){function a(a){var b=a.entries,d=a.keyBuilder;a=a.matchBuilder;a=a===void 0?c("baseTypeaheadStartsWithMatchBuilder"):a;this.$1=new(c("BaseTypeaheadDataCacheProvider"))({cache:new(c("BaseTypeaheadInMemoryMapDataCache"))(),keyBuilder:d,matchBuilder:a});this.$1.add(b)}var b=a.prototype;b.fetchCache=function(a){var b=a.query;return{entries:this.$1.match(b),params:a}};return a}();g["default"]=a}),98);
__d("CometTypeaheadViewList.react",["CometCompositeStructureContext","getItemRoleFromCompositeRole","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react"));h.useMemo;function a(a){var b=d("react-compiler-runtime").c(16),e,f,g,h,j;b[0]!==a?(e=a.ariaProps,f=a.children,g=a.entries,h=a.highlightedEntry,j=babelHelpers.objectWithoutPropertiesLoose(a,["ariaProps","children","entries","highlightedEntry"]),b[0]=a,b[1]=e,b[2]=f,b[3]=g,b[4]=h,b[5]=j):(e=b[1],f=b[2],g=b[3],h=b[4],j=b[5]);var k=h!=null?h.key:null;a=e.role;b[6]!==a?(h=babelHelpers["extends"]({},a!=null?{role:a}:{}),b[6]=a,b[7]=h):h=b[7];h=h;h=h;var l;if(b[8]!==k||b[9]!==e||b[10]!==f||b[11]!==h||b[12]!==g||b[13]!==j||b[14]!==a){var m=c("getItemRoleFromCompositeRole")(a);l=g!=null&&g.length>0?i.jsx("ul",babelHelpers["extends"]({},e,{className:"x78zum5 xdt5ytf x1iyjqo2","data-testid":void 0,children:i.jsx(c("CometCompositeStructureContext").Provider,{value:h,children:g.map(function(a,b){var c=k===a.key;return f({entry:a,index:b,isActive:c,isLastItem:g.length-1===b,itemRole:m})})})})):null;b[8]=k;b[9]=e;b[10]=f;b[11]=h;b[12]=g;b[13]=j;b[14]=a;b[15]=l}else l=b[15];return l}g["default"]=a}),98);
__d("CometTypeaheadViewListStrategy.react",["CometTypeaheadViewList.react","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=d("react-compiler-runtime").c(14),e,f;if(b[0]!==a){var g=a.ariaProps,h=a.entries;a.extraViewProps;var j=a.highlightedEntry;a.isLoading;a.onAbandonTypeahead_DO_NOT_USE;var k=a.viewItemStrategyRenderer,l=babelHelpers.objectWithoutPropertiesLoose(a,["ariaProps","entries","extraViewProps","highlightedEntry","isLoading","onAbandonTypeahead_DO_NOT_USE","viewItemStrategyRenderer"]);g=g;h=h;j=j;e=k;f=l;b[0]=a;b[1]=e;b[2]=g;b[3]=h;b[4]=j;b[5]=f}else e=b[1],g=b[2],h=b[3],j=b[4],f=b[5];b[6]!==e||b[7]!==f?(k=function(a){var b=a.entry,c=a.isActive,d=a.isLastItem;a=a.itemRole;return i.createElement(e,babelHelpers["extends"]({},f,{entry:b,isActive:c,isLastItem:d,key:b.key,role:a}))},b[6]=e,b[7]=f,b[8]=k):k=b[8];b[9]!==g||b[10]!==h||b[11]!==j||b[12]!==k?(l=i.jsx(c("CometTypeaheadViewList.react"),{ariaProps:g,entries:h,highlightedEntry:j,testid:void 0,children:k}),b[9]=g,b[10]=h,b[11]=j,b[12]=k,b[13]=l):l=b[13];return l}g["default"]=a}),98);
__d("findCometScrollableLayoutActiveNode",[],(function(a,b,c,d,e,f){"use strict";function g(a){if(a==null)return null;if(a.tagName==="LI")return a.getAttribute("aria-selected")==="true"?a:null;return a.children==null?null:Array.from(a.children).reduce(function(a,b){return(a=a)!=null?a:g(b)},null)}f["default"]=g}),66);
__d("useCometTypeaheadKeyboardForScrollableArea",["findCometScrollableLayoutActiveNode","react","react-compiler-runtime"],(function(a,b,c,d,e,f,g){"use strict";var h;b=h||d("react");var i=b.useEffect,j=b.useRef;function a(a){var b=d("react-compiler-runtime").c(3),e=j(null),f;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(f=function(){var a;(a=c("findCometScrollableLayoutActiveNode")((a=e.current)==null?void 0:a.getDOMNode()))==null?void 0:a.scrollIntoView({behavior:"smooth",block:"nearest"})},b[0]=f):f=b[0];var g;b[1]!==a?(g=[a],b[1]=a,b[2]=g):g=b[2];i(f,g);return e}g["default"]=a}),98);
__d("useCometTypeaheadViewListStrategy",["CometTypeaheadProgressGlimmer.react","CometTypeaheadViewListStrategy.react","react","react-compiler-runtime","stylex"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react"));i.useCallback;function a(a){var b=d("react-compiler-runtime").c(8),e=a.emptyStateContent,f=a.extraViewProps,g=a.loadingState,i=a.nullstateContent,k=a.viewItemStrategyRenderer,l=a.viewListStrategyRenderer,m=a.viewXStyle,n=l===void 0?c("CometTypeaheadViewListStrategy.react"):l;b[0]!==n||b[1]!==e||b[2]!==f||b[3]!==g||b[4]!==i||b[5]!==k||b[6]!==m?(a=function(a){var b=a.entries,d=a.isLoading,l=a.queryString;a=babelHelpers.objectWithoutPropertiesLoose(a,["entries","isLoading","queryString"]);if(l.length===0&&i!=null)return i;return!d&&b.length===0&&e!=null?e:j.jsxs("div",babelHelpers["extends"]({},(h||(h=c("stylex"))).props([m]),{children:[j.jsx(n,babelHelpers["extends"]({},a,{entries:b,extraViewProps:f,isLoading:!1,queryString:l,viewItemStrategyRenderer:k})),d&&((a=g)!=null?a:j.jsx(c("CometTypeaheadProgressGlimmer.react"),{}))]}))},b[0]=n,b[1]=e,b[2]=f,b[3]=g,b[4]=i,b[5]=k,b[6]=m,b[7]=a):a=b[7];return a}g["default"]=a}),98);