DeveloperPlatformSearchFlyout.react",["fbt","CometErrorBoundary.react","DeveloperDocumentationLoggerUtils","DeveloperPlatformSearchFlyoutResults.react","DeveloperPlatformSearchFlyoutResultsQuery.graphql","DeveloperPlatformSearchFlyoutTypeahead.react","DeveloperPlatformSearchResultsGlimmer.react","FocusRegion.react","GeoNotice.react","MCDSFlyOut.react","MCDSVerticalStack.react","Placeholder.react","RelayHooks","focusScopeQueries","geoMargin","react"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=e||(e=o("react")),c=e,d=c.useCallback,m=c.useEffect,p=c.useState,_=10;function f(e){var t=e.props.onClose,a=p(""),i=a[0],l=a[1],c=p(""),f=c[0],g=c[1],h=o("RelayHooks").useQueryLoader(n("DeveloperPlatformSearchFlyoutResultsQuery.graphql")),y=h[0],C=h[1],b=d(function(e){g(e),C({query:e,offset:0,pageSize:_})},[C]);return m(function(){o("DeveloperDocumentationLoggerUtils").logDeveloperDocumentationOpsAndUserDataEvent({code_location:"DeveloperPlatformSearchFlyout",event:"search_flyout_load"})},[]),u.jsx(r("MCDSFlyOut.react"),{onClose:t,title:s._(/*BTDS*/"Search"),children:u.jsx(r("CometErrorBoundary.react"),{fallback:function(){return u.jsx(r("GeoNotice.react"),{status:"error",xstyle:r("geoMargin").bottom12,children:s._(/*BTDS*/"Something went wrong performing search. Please try reloading the page later.")})},onError:function(t){o("DeveloperDocumentationLoggerUtils").logDeveloperDocumentationError(t,{code_location:"DeveloperPlatformSearchFlyout",event:"search_flyout_load_error"})},children:u.jsx(o("FocusRegion.react").FocusRegion,{autoFocusQuery:o("focusScopeQueries").inputFirstTabbbableScopeQuery,children:u.jsxs(r("MCDSVerticalStack.react"),{gap:48,children:[u.jsx("div",{className:"xbktkl8 x1n2onr6",children:u.jsx(r("DeveloperPlatformSearchFlyoutTypeahead.react"),{inputValue:i,setInputValue:l,setSearchQuery:b})}),y&&u.jsx(r("Placeholder.react"),{fallback:u.jsx("div",{className:"x78zum5 xl56j7k x6s0dn4",children:u.jsx(r("DeveloperPlatformSearchResultsGlimmer.react"),{})}),children:u.jsx(r("DeveloperPlatformSearchFlyoutResults.react"),{queryRef:y,searchQuery:f})})]})})})})}f.displayName=f.name+" [from "+i.id+"]",l.default=f}),226);
-----
DeveloperPlatformSearchFlyoutResults.react",["fbt","DeveloperPlatformSearchFlyoutResultsQuery.graphql","DeveloperPlatformSearchResultItem.react","MCDSButton.react","MCDSText.react","MCDSVerticalStack.react","RelayHooks","XDeveloperSearchControllerRouteBuilder","mcdsPadding","react"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c=u||(u=o("react"));function d(t){var a=t.queryRef,i=t.searchQuery,l=o("RelayHooks").usePreloadedQuery(e!==void 0?e:e=n("DeveloperPlatformSearchFlyoutResultsQuery.graphql"),a);return l.xfb_dev_docs_search==null||l.xfb_dev_docs_search.length===0?c.jsx(r("MCDSText.react"),{color:"secondary",display:"block",type:"mcds-large-body",xstyle:r("mcdsPadding").top16,children:s._(/*BTDS*/"No results found, try different keywords.")}):c.jsxs(r("MCDSVerticalStack.react"),{gap:48,children:[c.jsx(r("MCDSVerticalStack.react"),{gap:24,children:l.xfb_dev_docs_search.map(function(e,t){var n,o,a;return c.jsx(r("DeveloperPlatformSearchResultItem.react"),{searchQuery:i,snippet:(n=e.snippet)!=null?n:"",title:(o=e.title)!=null?o:"",url:(a=e.href)!=null?a:""},"result-"+t)})}),c.jsx(r("MCDSButton.react"),{label:s._(/*BTDS*/"See all results"),linkProps:{url:r("XDeveloperSearchControllerRouteBuilder").buildURL({q:i}).toString()},type:"primary"})]})}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),226);
-----
DeveloperPlatformSearchFlyoutResultsQuery.graphql",["DeveloperPlatformSearchFlyoutResultsQuery_facebookRelayOperation"],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e={defaultValue:null,kind:"LocalArgument",name:"offset"},t={defaultValue:null,kind:"LocalArgument",name:"pageSize"},r={defaultValue:null,kind:"LocalArgument",name:"query"},o=[{alias:null,args:[{kind:"Variable",name:"offset",variableName:"offset"},{kind:"Variable",name:"page_size",variableName:"pageSize"},{kind:"Variable",name:"query",variableName:"query"}],concreteType:"XFBDeveloperDocumentationSearchResult",kind:"LinkedField",name:"xfb_dev_docs_search",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"snippet",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"href",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[e,t,r],kind:"Fragment",metadata:null,name:"DeveloperPlatformSearchFlyoutResultsQuery",selections:o,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[r,e,t],kind:"Operation",name:"DeveloperPlatformSearchFlyoutResultsQuery",selections:o},params:{id:n("DeveloperPlatformSearchFlyoutResultsQuery_facebookRelayOperation"),metadata:{},name:"DeveloperPlatformSearchFlyoutResultsQuery",operationKind:"query",text:null}}})();a.exports=e}),null);
-----
DeveloperPlatformSearchFlyoutResultsQuery_facebookRelayOperation",[],(function(t,n,r,o,a,i){a.exports="24549775481390809"}),null);
-----
-----
DeveloperPlatformSearchFlyoutResults.react",["fbt","DeveloperPlatformSearchFlyoutResultsQuery.graphql","DeveloperPlatformSearchResultItem.react","MCDSButton.react","MCDSText.react","MCDSVerticalStack.react","RelayHooks","XDeveloperSearchControllerRouteBuilder","mcdsPadding","react"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c=u||(u=o("react"));function d(t){var a=t.queryRef,i=t.searchQuery,l=o("RelayHooks").usePreloadedQuery(e!==void 0?e:e=n("DeveloperPlatformSearchFlyoutResultsQuery.graphql"),a);return l.xfb_dev_docs_search==null||l.xfb_dev_docs_search.length===0?c.jsx(r("MCDSText.react"),{color:"secondary",display:"block",type:"mcds-large-body",xstyle:r("mcdsPadding").top16,children:s._(/*BTDS*/"No results found, try different keywords.")}):c.jsxs(r("MCDSVerticalStack.react"),{gap:48,children:[c.jsx(r("MCDSVerticalStack.react"),{gap:24,children:l.xfb_dev_docs_search.map(function(e,t){var n,o,a;return c.jsx(r("DeveloperPlatformSearchResultItem.react"),{searchQuery:i,snippet:(n=e.snippet)!=null?n:"",title:(o=e.title)!=null?o:"",url:(a=e.href)!=null?a:""},"result-"+t)})}),c.jsx(r("MCDSButton.react"),{label:s._(/*BTDS*/"See all results"),linkProps:{url:r("XDeveloperSearchControllerRouteBuilder").buildURL({q:i}).toString()},type:"primary"})]})}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),226);
-----
DeveloperPlatformSearchFlyoutResultsQuery.graphql",["DeveloperPlatformSearchFlyoutResultsQuery_facebookRelayOperation"],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e={defaultValue:null,kind:"LocalArgument",name:"offset"},t={defaultValue:null,kind:"LocalArgument",name:"pageSize"},r={defaultValue:null,kind:"LocalArgument",name:"query"},o=[{alias:null,args:[{kind:"Variable",name:"offset",variableName:"offset"},{kind:"Variable",name:"page_size",variableName:"pageSize"},{kind:"Variable",name:"query",variableName:"query"}],concreteType:"XFBDeveloperDocumentationSearchResult",kind:"LinkedField",name:"xfb_dev_docs_search",plural:!0,selections:[{alias:null,args:null,kind:"ScalarField",name:"title",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"snippet",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"href",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[e,t,r],kind:"Fragment",metadata:null,name:"DeveloperPlatformSearchFlyoutResultsQuery",selections:o,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[r,e,t],kind:"Operation",name:"DeveloperPlatformSearchFlyoutResultsQuery",selections:o},params:{id:n("DeveloperPlatformSearchFlyoutResultsQuery_facebookRelayOperation"),metadata:{},name:"DeveloperPlatformSearchFlyoutResultsQuery",operationKind:"query",text:null}}})();a.exports=e}),null);
-----
DeveloperPlatformSearchFlyoutResultsQuery_facebookRelayOperation",[],(function(t,n,r,o,a,i){a.exports="24549775481390809"}),null);
-----