MBSNavigationToolsWithPermissionCheckSearchSource",["AbstractSearchSource","MBSNavigationSearchItemSearchableEntry","MBSNavigationToolsWithPermissionCheckSearchSourceQuery.graphql","RelayHooks","SearchSourceQueryStatus","clearTimeout","qex","setTimeout"],(function(t,n,r,o,a,i,l){"use strict";var e;function s(){var e;return(e=r("qex")._("1768"))!=null?e:!1}var u=e!==void 0?e:e=n("MBSNavigationToolsWithPermissionCheckSearchSourceQuery.graphql"),c=500,d=(function(e){function t(t,n,r){var o;return o=e.call(this)||this,o.$MBSNavigationToolsWithPermissionCheckSearchSource$p_1=t,o.$MBSNavigationToolsWithPermissionCheckSearchSource$p_2=n,o.$MBSNavigationToolsWithPermissionCheckSearchSource$p_3=r,o.$MBSNavigationToolsWithPermissionCheckSearchSource$p_4=null,o.$MBSNavigationToolsWithPermissionCheckSearchSource$p_5=null,o}babelHelpers.inheritsLoose(t,e);var n=t.prototype;return n.searchImpl=function(t,n,a){var e=this;if(t){var i=s()?t.trim().replace(/s+/g," ").toLowerCase():t.toLowerCase(),l=this.$MBSNavigationToolsWithPermissionCheckSearchSource$p_1.filter(function(e){return e.getTitle().toString().toLowerCase().includes(i)});if(l.length===0){n([],t,o("SearchSourceQueryStatus").COMPLETE);return}var d=[];if(l.forEach(function(e){if(e instanceof r("MBSNavigationSearchItemSearchableEntry")){var t=e.getToolType();t!=null&&d.push(t)}}),d.length===0){n([],t,o("SearchSourceQueryStatus").COMPLETE);return}this.$MBSNavigationToolsWithPermissionCheckSearchSource$p_4!=null&&r("clearTimeout")(this.$MBSNavigationToolsWithPermissionCheckSearchSource$p_4),this.$MBSNavigationToolsWithPermissionCheckSearchSource$p_5!=null&&(this.$MBSNavigationToolsWithPermissionCheckSearchSource$p_5.unsubscribe(),this.$MBSNavigationToolsWithPermissionCheckSearchSource$p_5=null),this.$MBSNavigationToolsWithPermissionCheckSearchSource$p_4=r("setTimeout")(function(){e.$MBSNavigationToolsWithPermissionCheckSearchSource$p_5=o("RelayHooks").fetchQuery(e.$MBSNavigationToolsWithPermissionCheckSearchSource$p_2,u,{businessID:e.$MBSNavigationToolsWithPermissionCheckSearchSource$p_3,toolNames:d}).subscribe({complete:function(){e.$MBSNavigationToolsWithPermissionCheckSearchSource$p_5=null},error:function(){e.$MBSNavigationToolsWithPermissionCheckSearchSource$p_5=null,n(l,t,o("SearchSourceQueryStatus").COMPLETE)},next:function(r){var e,a=(e=r.viewer)==null||(e=e.bizkit_scoping)==null?void 0:e.navigation_items_permission_check,i=[];a!=null&&a.length!==0&&a.forEach(function(e){e!=null&&i.push(e.label)});var s=l.filter(function(e){var t;return i==null?void 0:i.includes((t=e.getTitle())==null?void 0:t.toString())});n(s,t,o("SearchSourceQueryStatus").COMPLETE)}})},c)}},t})(r("AbstractSearchSource"));l.default=d}),98);
-----
AdsRecommendedAudienceSearchSource",["AbstractSearchSource","AdsAudienceTypeaheadConstants","AdsGraphAPI","SearchSourceQueryStatus","SearchableEntry","debounce","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h=["name"],i=c("debounce")(function(a,b,e){c("promiseDone")(d("AdsGraphAPI").get(f.id).adaccount(a).edge("recommendedaudiences").get(b),function(a){return e(a)})},d("AdsAudienceTypeaheadConstants").DEBOUNCE_TIME);a=function(a){babelHelpers.inheritsLoose(b,a);function b(b){var c;c=a.call(this)||this;c.$AdsRecommendedAudienceSearchSource$p_1=b.accountID;return c}var e=b.prototype;e.bootstrapImpl=function(a){this.search("",a)};e.searchImpl=function(a,b,c){var d=this;a={account_id:this.$AdsRecommendedAudienceSearchSource$p_1,fields:h};i(this.$AdsRecommendedAudienceSearchSource$p_1,a,function(a){return d.$AdsRecommendedAudienceSearchSource$p_2(b,a.data)})};e.$AdsRecommendedAudienceSearchSource$p_2=function(a,b){var e=[];b.forEach(function(a){a=new(c("SearchableEntry"))({uniqueID:a.id,title:(a=a.name)!=null?a:"",auxiliaryData:{}});e.push(a)});a(e,"",d("SearchSourceQueryStatus").COMPLETE)};b.getInstance=function(a){return new b(a)};return b}(c("AbstractSearchSource"));g["default"]=a}),98);
-----
LegalFMUtil",["invariant","CancelablePromise","CompositeDraftDecorator","CurrentUser","DateTime","EditorState","LegalFMConstants","LegalFMCurrentValues","LegalFMElementPropType","LegalFMFieldSourceType","LegalFMFieldType","LegalFMPropUtil","LegalFMRuleUtil","LegalFMUtil_field.graphql","LegalFMUtil_fieldReadOnly.graphql","LegalFMUtil_props.graphql","LegalFMUtil_template.graphql","Promise","RelayHooks","RichTextEditorLink.react","SearchSourceQueryStatus","SearchableEntry","StaticSearchSource","WebAsyncSearchSource","XLegalFMTypeaheadController","convertFromDraftStateToRaw","convertFromRawToDraftState","enumUtils","filterNulls","flatMapArray","forEachObject","getEntityMatcher","getJSEnumSafe","isEmpty","nullthrows","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m,n,o,p=o||d("react"),q=i!==void 0?i:i=b("LegalFMUtil_template.graphql"),r=j!==void 0?j:j=b("LegalFMUtil_field.graphql"),s=k!==void 0?k:k=b("LegalFMUtil_fieldReadOnly.graphql"),t=l!==void 0?l:l=b("LegalFMUtil_props.graphql");a=function(a){var b=[];c("forEachObject")(a,function(a,c){a!=null&&b.push({id:c,value:a})});return b};e=function(a){return d("enumUtils").coerceFromKey(a,c("LegalFMFieldType"))};f=function(a,b){a=a.fields;return a[b]};var u=function(a){return a!=null&&a.length>0?a:null},v=function(a){return a!=null&&a.length>0?a[0]:null},w=function(a,b,d){a!=null||h(0,19562);b=c("XLegalFMTypeaheadController").getURIBuilder().setEnum("source_type",a).setStringKeyset("current_value",(a=b)!=null?a:[]).setStringToStringMap("extra_params",d).getURI();return new(c("WebAsyncSearchSource"))({getAllForEmptyQuery:!0,bootstrapRequests:[{uri:b}],queryRequests:[{uri:b}]})},x=function(a,e,f){var g=w(a,e!=null?[e]:[],f);return new(c("CancelablePromise"))(new(n||(n=b("Promise")))(function(a,b){g.search((b=e)!=null?b:"",function(b,c,e){e===d("SearchSourceQueryStatus").COMPLETE&&a(b)})}))},y=function(a){return new(c("StaticSearchSource"))(a.map(function(a){return new(c("SearchableEntry"))({title:a.label,uniqueID:a.value})}))},z=function(a,b){return b.size===0?!0:Array.from(b).every(function(b){return a[b]!=null&&a[b].length>0})},A=function(a,b){return Object.entries(b).map(function(a){return a[0]}).filter(function(b){return a[b]==null||((b=a[b])==null?void 0:(b=b[0])==null?void 0:b.toLowerCase())!=="true"})},B=function(a,b){return Array.from(b).filter(function(b){return a[b]==null||a[b].length===0})},C=function(){return new(c("CompositeDraftDecorator"))([{strategy:c("getEntityMatcher")(function(a){return a.getType()==="LINK"}),component:c("RichTextEditorLink.react")}])},D=function(){return c("EditorState").createEmpty(C())},E=function(a){if(a==null||a==="")return D();a=JSON.parse(a);a=c("convertFromRawToDraftState")(a);return a.getBlockMap().size===0?D():c("EditorState").createWithContent(a,C())},F=function(a){var b;a=a.getCurrentContent();a=c("convertFromDraftStateToRaw")(a);(a==null?void 0:(b=a.blocks)==null?void 0:b.some(function(a){return a.type==="section"}))&&(a.blocks=a.blocks.filter(function(a){return a.type!=="section"}));return(a==null?void 0:a.blocks[0].text)!=null&&(a==null?void 0:a.blocks[0].text)!==""?[JSON.stringify(a)]:null},G=function(a,b){var e,f;e=((e=a==null?void 0:a.ruleSets)!=null?e:[]).map(d("LegalFMRuleUtil").mapRuleSet);f=c("flatMapArray")((f=a==null?void 0:a.sections)!=null?f:[],function(a){a=a.rows;return a});f=c("flatMapArray")(f,function(a){a=a.fields;return a}).reduce(function(a,d){d=d.id;d=c("nullthrows")(d);return babelHelpers["extends"]({},a,(a={},a[d]=b!=null&&b[d]!=null?b[d]:null,a))},{});e=d("LegalFMRuleUtil").evaluateRuleSets(e,f);return{fields:f,initialValues:b,ruleDecisionMap:e,template:a}},H=function(a){a=(a=d("RelayHooks").readInlineData(t,a))==null?void 0:a.properties;return(a=a==null?void 0:a.filter(function(a){return a.propType!=null}).map(function(a){var b=a.id,d=a.propType,e=a.propValue;a=a.ruleSet;return{id:b,propType:c("nullthrows")(c("getJSEnumSafe")(c("LegalFMElementPropType"),d)),value:Array.from(e),ruleSetID:a==null?void 0:a.ruleSetID}}))!=null?a:[]},I=function(a){return(a=a==null?void 0:(a=a.nodes)==null?void 0:a.map(function(a){var b=a.code,d=a.description,e=a.id,f=a.name;return{id:c("nullthrows")(e),name:(e=f)!=null?e:"",code:c("nullthrows")(b),description:d,props:H(a)}}))!=null?a:[]},J=function(a){a=d("RelayHooks").readInlineData(r,a);if(a==null)return null;var b=a.code,e=a.id,f=a.name,g=a.description,h=a.fieldType,i=a.isOnTableView,j=a.isSearchable,k=a.isValueSensitive;k=k===void 0?!1:k;var l=a.sourceType,m=a.options;return{id:c("nullthrows")(e),name:(e=f)!=null?e:"",code:(f=b)!=null?f:"",description:g,fieldType:c("nullthrows")(c("getJSEnumSafe")(c("LegalFMFieldType"),h)),sourceType:c("getJSEnumSafe")(c("LegalFMFieldSourceType"),l),isOnTableView:i,isSearchable:j,isValueSensitive:k,options:I(m),props:H(a)}},K=function(a){a=d("RelayHooks").readInlineData(s,a);if(a==null)return null;var b=a.code,e=a.id,f=a.name,g=a.fieldType,h=a.sourceType;a=a.options;return{id:c("nullthrows")(e),name:(e=f)!=null?e:"",code:(f=b)!=null?f:"",fieldType:c("nullthrows")(c("getJSEnumSafe")(c("LegalFMFieldType"),g)),sourceType:c("getJSEnumSafe")(c("LegalFMFieldSourceType"),h),options:(b=a==null?void 0:(e=a.nodes)==null?void 0:e.map(function(d){var a=d.code,e=d.description,b=d.id;d=d.name;return{id:c("nullthrows")(b),name:(b=d)!=null?b:"",code:c("nullthrows")(a),description:e}}))!=null?b:[]}},L=function(a){return(a=a==null?void 0:(a=a.nodes)==null?void 0:a.map(function(a){var b=a.id,d=a.name,e=a.code,f=a.description,g=a.rows;return{id:c("nullthrows")(b),name:(b=d)!=null?b:"",code:c("nullthrows")(e),description:f,rows:g.map(function(a){return{fields:c("filterNulls")(a.fields.map(function(a){return J(a)}))}}),props:H(a)}}))!=null?a:[]},M=function(a){a=d("RelayHooks").readInlineData(q,a);if(a==null)return null;var b=a.code,e=a.description,f=a.id,g=a.name,h=a.sections;return{id:f,name:(f=g)!=null?f:"",code:c("nullthrows")(b),description:e,sections:L(h),props:H(a),ruleSets:d("LegalFMRuleUtil").parseRuleSet(a)}},N=function(a){return a==null?void 0:a.flatMap(function(a){return a.split(":::")})},O=function(a,b,e){var f=a.fieldType,g=a.sourceType,h=a.props;a=a.id;var i=b.fields,j=b.initialValues;if(i[a]!=null)return;i=N(d("LegalFMPropUtil").getStringArrayProperty(b,(i=h)!=null?i:[],"DEFAULT_VALUE"));h=d("LegalFMPropUtil").getBooleanProperty(b,(b=h)!=null?b:[],"DEFAULT_TO_CURRENT",!1);b=P(f,g);!(m||(m=c("isEmpty")))(j[a])?e({type:d("LegalFMConstants").ACTION_TYPES.CHANGE_FIELD,payload:{fieldID:a,value:j[a]}}):h&&!(m||(m=c("isEmpty")))(b)?e({type:d("LegalFMConstants").ACTION_TYPES.CHANGE_FIELD,payload:{fieldID:a,value:b}}):(m||(m=c("isEmpty")))(i)||e({type:d("LegalFMConstants").ACTION_TYPES.CHANGE_FIELD,payload:{fieldID:a,value:i}})},P=function(a,b){if(a==="DATE_TIME"||a==="DATE")return[c("DateTime").localNow().getUnixTimestampSeconds().toString()];switch(b){case"COUNTRY":return c("LegalFMCurrentValues").currentValuesMap.COUNTRY;case"INTERN_USER":return[(a=c("CurrentUser").getEmployeeWorkUserID())!=null?a:c("CurrentUser").getID()];case"JURISDICTION":return c("LegalFMCurrentValues").currentValuesMap.JURISDICTION}return null},Q=function(a,b,c,d,e){if(d==null)return null;var f=a.codeMap;a=a.fieldTypeMap;var g=null;b!=null&&f!=null&&b in f?g=f[b]:c!=null&&a!=null&&c in a&&(g=a[c]);if(g==null)return null;f=g;b=f.component;a=f.props;c=babelHelpers["extends"]({},a,{id:d,value:e});return p.jsx(b,babelHelpers["extends"]({},c))},R=function(a,b){return a==null?null:(a=a.sections.flatMap(function(a){a=a.rows;return a.flatMap(function(a){a=a.fields;return a})}).find(function(a){a=a.code;return a===b}))==null?void 0:a.id},S=function(a,b){return a==null?null:(a=a.sections.flatMap(function(a){a=a.rows;return a}).flatMap(function(a){a=a.fields;return a}).find(function(a){a=a.code;return a===b}))==null?void 0:a.name};g.coerceFieldsToDataMap=a;g.getFieldType=e;g.getFieldValue=f;g.getMultipleValues=u;g.getOnlyValue=v;g.getSearchSource=w;g.getSearchSourcePromise=x;g.getStaticSearchSource=y;g.validateRequiredFields=z;g.getMissingCheckboxFields=A;g.getMissingRequiredFields=B;g.getEmptyEditorState=D;g.editorStateFromText=E;g.textFromEditorState=F;g.processTemplate=G;g.parseField=J;g.parseReadOnlyField=K;g.parseTemplate=M;g.parseDefaultValue=N;g.resetDefaultValue=O;g.getCurrentValue=P;g.getCustomField=Q;g.getFieldIDFromCode=R;g.getFieldNameFromCode=S}),98);
-----
VideoSuggestionsComposerSearchSource",["Cache","SearchSourceQueryStatus","ThisControllerNoLongerExists","WebAsyncSearchSource","debounce"],(function(a,b,c,d,e,f,g){var h=1e3,i=5,j=new(c("Cache"))();a=function(a){babelHelpers.inheritsLoose(b,a);function b(b,e,f,g){var i,j=d("ThisControllerNoLongerExists").__DEADURI__("soa4yzia");b=babelHelpers["extends"]({},b,{bootstrapRequests:[{uri:j}],getAllForEmptyQuery:!0,queryRequests:[{uri:j}]});i=a.call(this,b)||this;i.$VideoSuggestionsComposerSearchSource$p_5=function(){i.$VideoSuggestionsComposerSearchSource$p_2&&i.$VideoSuggestionsComposerSearchSource$p_2.query&&i.$VideoSuggestionsComposerSearchSource$p_2.callback&&!i.$VideoSuggestionsComposerSearchSource$p_7(i.$VideoSuggestionsComposerSearchSource$p_2.query,i.$VideoSuggestionsComposerSearchSource$p_2.callback)&&(i.$VideoSuggestionsComposerSearchSource$p_3&&i.$VideoSuggestionsComposerSearchSource$p_3(),a.prototype.searchImpl.call(babelHelpers.assertThisInitialized(i),i.$VideoSuggestionsComposerSearchSource$p_2.query,i.$VideoSuggestionsComposerSearchSource$p_2.callback,i.$VideoSuggestionsComposerSearchSource$p_2.options)),i.$VideoSuggestionsComposerSearchSource$p_2=null};i.$VideoSuggestionsComposerSearchSource$p_1=e?e:"";i.$VideoSuggestionsComposerSearchSource$p_3=f;i.$VideoSuggestionsComposerSearchSource$p_4=g;i.$VideoSuggestionsComposerSearchSource$p_5=c("debounce")(i.$VideoSuggestionsComposerSearchSource$p_5,h,babelHelpers.assertThisInitialized(i));return i}var e=b.prototype;e.searchImpl=function(a,b,c){b=this.$VideoSuggestionsComposerSearchSource$p_6(a,b),(!a.length||a.length-----
MBSNavigationSearchTypeaheadContainer.react",["MBSNavigationAggregatedSearchSource","MBSNavigationAssetSearchSource","MBSNavigationHelpSearchSource","MBSNavigationNewToolsSearchSource","MBSNavigationSearchTypeahead.react","MBSNavigationUniversalAdAccountSearchSource","RelayHooks","SearchSourceQueryStatus","react","requireDeferred","sortBy","useBizWebCurrentRouteName","useGlobalScope"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||(h=d("react")),j=h.useState,k=c("requireDeferred")("MbsGlobalSearchFalcoEvent").__setRef("MBSNavigationSearchTypeaheadContainer.react");function a(a){var b=a.entrypoint,e=a.recentlyViewedTools;a=a.tools;var f=j(""),g=f[0],h=f[1];f=j(!1);var m=f[0],n=f[1];f=d("RelayHooks").useRelayEnvironment();var o=c("useBizWebCurrentRouteName")(),p=c("useGlobalScope")();p=p.type==="PERSONAL"?null:p.id;var q=[];g.length>0&&(q.push(new(c("MBSNavigationHelpSearchSource"))(f)),q.push(new(c("MBSNavigationNewToolsSearchSource"))(a)),p!=null&&(q.push(new(c("MBSNavigationAssetSearchSource"))(f,p)),q.push(new(c("MBSNavigationUniversalAdAccountSearchSource"))(f))));a=new(c("MBSNavigationAggregatedSearchSource"))(q);p=function(a){a=a.target.value;h(a);a.length===0?n(!1):n(!0)};f=function(){n(!1)};q=function(a,c){c===d("SearchSourceQueryStatus").COMPLETE&&(n(!1),k.onReady(function(a){return a.log(function(){return{entrypoint:b,event_type:"RESULT_FOUND",nav_item:o,search_term:g,tool_click:"none"}})}))};var r=function(a){return g?c("sortBy")(a,function(a){return l(a.getType())}):a};return i.jsx(c("MBSNavigationSearchTypeahead.react"),{entrypoint:b,handleChange:p,isSearching:m,onEntriesFound:q,onNoEntriesFound:f,queryString:g,recentlyViewedTools:e,searchSource:a,sortEntries:r})}a.displayName=a.name+" [from "+f.id+"]";function l(a){switch(a){case"tool":return 0;case"ad-account":return 1;case"help":return 2;default:return-1}}g.MBSNavigationSearchTypeaheadContainer=a}),98);
-----
MBSNavigationNewToolsSearchSource",["AbstractSearchSource","SearchSourceQueryStatus"],(function(a,b,c,d,e,f,g){"use strict";a=function(a){babelHelpers.inheritsLoose(b,a);function b(b){var c;c=a.call(this)||this;c.$MBSNavigationNewToolsSearchSource$p_1=b;return c}var c=b.prototype;c.searchImpl=function(a,b,c){if(a){c=this.$MBSNavigationNewToolsSearchSource$p_1.filter(function(b){return b.getTitle().toString().toLowerCase().includes(a.toLowerCase())});b(c,a,d("SearchSourceQueryStatus").COMPLETE)}};return b}(c("AbstractSearchSource"));g["default"]=a}),98);
-----
useMisinfoSuggestedClaimsSearchSource",["SearchSourceQueryStatus","WebAsyncSearchSource","XMisinfoFactCheckSuggestedClaimsController","memoize","useSearchSourceResults"],(function(a,b,c,d,e,f,g){"use strict";var h=c("XMisinfoFactCheckSuggestedClaimsController").getURIBuilder().getURI(),i=c("memoize")(function(){return new(c("WebAsyncSearchSource"))({getAllForEmptyQuery:!1,queryRequests:[{uri:h}],bootstrapRequests:[{uri:h}]})});function a(a){var b,e=a.bootstrappedItems;a=a.queryString;a=c("useSearchSourceResults")(i(),a);return{entries:(a==null?void 0:a.entries)==null||(a==null?void 0:(b=a.entries)==null?void 0:b.length)===0?e:a==null?void 0:a.entries,isLoading:a==null||(a==null?void 0:a.queryStatus)===d("SearchSourceQueryStatus").ACTIVE}}g["default"]=a}),98);
-----
AdsEventInfoSearchSource",["AbstractSearchSource","AdsGraphAPI","GraphAPIPaging","SearchSourceQueryStatus","SearchableEntry","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h=["id","name","picture","start_time","place","attending_count","interested_count"],i=new Map(),j=new Map();function k(a,b){return a!=null&&a.toLowerCase().includes(b.toLowerCase())}function l(a){return function(b){if(k(b.name,a))return!0;if(b.start_time){var c=new Date(b.start_time).toLocaleString();if(c.includes(a))return!0}if(b.place){if(k(b.place.name,a))return!0;if(b.place.location&&(k(b.place.location.city,a)||k(b.place.location.state,a)||k(b.place.location.country,a)))return!0}return b.id&&b.id.includes(a)?!0:!1}}a=function(a){babelHelpers.inheritsLoose(b,a);function b(b,c){var d;d=a.call(this)||this;d.$AdsEventInfoSearchSource$p_1=b;d.$AdsEventInfoSearchSource$p_2=c;return d}var e=b.prototype;e.bootstrapImpl=function(a){var b=this,e=this.$AdsEventInfoSearchSource$p_2==="fb_event_ticket_engaged"||this.$AdsEventInfoSearchSource$p_2==="fb_event_purchase_ticket"||this.$AdsEventInfoSearchSource$p_2==="fb_event_cancel_ticket"?["onsite_ticket"]:null;c("promiseDone")(d("AdsGraphAPI").get(f.id).me().edge("promotable_events").batched().get({include_past_events:!0,is_page_event:!0,fields:h,page_id:this.$AdsEventInfoSearchSource$p_1,include_unfiltered_owned_events:!0,promotable_event_types:e}).then(d("GraphAPIPaging").eachPage(function(a){var c=i.get(b.$AdsEventInfoSearchSource$p_1);c instanceof Array?i.set(b.$AdsEventInfoSearchSource$p_1,c.concat(a.data)):i.set(b.$AdsEventInfoSearchSource$p_1,a.data)})),function(c){i.set(b.$AdsEventInfoSearchSource$p_1,c.data),a()},function(c){i.set(b.$AdsEventInfoSearchSource$p_1,[]),a()})};b.createSearchableEntry=function(a){return new(c("SearchableEntry"))({uniqueID:a.id,title:a.name,auxiliaryData:{place:a.place,interested_count:a.interested_count,attending_count:a.attending_count,start_time:a.start_time,picture:a.picture}})};b.getDataFromID=function(a){return d("AdsGraphAPI").get(f.id).object("promotable_event",a).batched().get({fields:h})};e.searchImpl=function(a,c,e){var f=[];e=i.get(this.$AdsEventInfoSearchSource$p_1);if(e===void 0){c(f,a,d("SearchSourceQueryStatus").ACTIVE);return}e=e.filter(l(a));e.forEach(function(a){a=b.createSearchableEntry(a);f.push(a)});c(f,a,d("SearchSourceQueryStatus").COMPLETE)};e.getBootstrappedEntries=function(a){var b=this;this.bootstrap(function(){return b.search("",a)})};b.getInstance=function(a,c){var d=a;c&&(d=a+c);var e=j.get(d);if(!e){a=new b(a,c);j.set(d,a);return a}return e};return b}(c("AbstractSearchSource"));g["default"]=a}),98);
-----
AssetLibrarySearchInput.brands",["cx","fbt","AbstractTypeahead.react","AssetLibraryLogger.brands","AssetLibrarySearchStore.brands","AssetLibraryTypeaheadRenderer.brands","BusinessLabelSearchSource","SearchSourceQueryStatus","joinClasses","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||d("react"),l=10;a=function(a){babelHelpers.inheritsLoose(b,a);function b(b){var e;e=a.call(this,b)||this;e.state={isLoading:!1,queryString:""};e.$3=function(){e.props.onEnterWithoutSelection&&e.props.onEnterWithoutSelection(e.state.queryString)};e.$6=function(a){e.props.autoCompleteOnSelect===!0&&e.setState({queryString:a.getKeywordString()}),c("AssetLibraryLogger.brands").logUserAction("nav_search_item_select",{query:a.getKeywordString(),itemKey:a.getType()}),e.props.onSelectAttempt&&e.props.onSelectAttempt(a)};e.$2=function(a){a=a.target.value;c("AssetLibraryLogger.brands").logUserAction("nav_search",{query:a});e.setState({queryString:a});e.props.onChange&&e.props.onChange(a)};e.$4=function(a,b){b===d("SearchSourceQueryStatus").COMPLETE&&e.setState({isLoading:!1})};e.$5=function(){e.setState({isLoading:!1})};e.$1=new(c("BusinessLabelSearchSource"))(b.businessID,b.use);return e}var e=b.prototype;e.UNSAFE_componentWillReceiveProps=function(a){this.props.clearToggler!==a.clearToggler&&this.setState({queryString:""}),(this.props.businessID!==a.businessID||this.props.use!==a.use)&&(this.$1=new(c("BusinessLabelSearchSource"))(a.businessID,a.use))};e.componentDidMount=function(){var a=c("AssetLibrarySearchStore.brands").getNameFilter();a&&this.setState({queryString:a})};e.render=function(){var a=c("AbstractTypeahead.react");return k.jsx("div",{className:c("joinClasses")(this.props.className,"_18wt"),children:k.jsx(a,{autoHighlight:!0,hideViewWithEntries:!0,placeholder:(a=this.props.placeholder)!=null?a:i._("__JHASH__W6cl31A-X1O__JHASH__"),presenter:{ViewRenderer:c("AssetLibraryTypeaheadRenderer.brands"),useLayer:!0,maxEntries:l,extraRendererProps:{isLoading:this.state.isLoading,searchQuery:this.state.queryString,className:"_5mp-"},alwaysVisibleOnFocus:!1},queryString:this.state.queryString,searchSource:this.$1,showEntriesOnFocus:!0,tallInput:!1,onChange:this.$2,onEnterWithoutSelection:this.$3,onEntriesFound:this.$4,onNoEntriesFound:this.$5,onSelectAttempt:this.$6})})};return b}(k.Component);g["default"]=a}),226);
-----
BusinessUnifiedNavSearchSource",["AbstractSearchSource","BusinessTypeaheadUtils.brands","BusinessUnifiedNavigationDataKey","BusinessUnifiedNavigationDataProvider","BusinessUnifiedNavigationSections","SearchSourceQueryStatus","unionArrays"],(function(a,b,c,d,e,f,g){"use strict";var h=c("BusinessUnifiedNavigationDataProvider").toFluxStore();a=function(a){babelHelpers.inheritsLoose(b,a);function b(b,c){var d;d=a.call(this)||this;d.$BusinessUnifiedNavSearchSource$p_1=b;d.$BusinessUnifiedNavSearchSource$p_2=c;return d}var e=b.prototype;e.searchImpl=function(a,b){a||b([],a);var e=this.$BusinessUnifiedNavSearchSource$p_1!==null?new(c("BusinessUnifiedNavigationDataKey"))({businessID:this.$BusinessUnifiedNavSearchSource$p_2}):new(c("BusinessUnifiedNavigationDataKey"))({localScopeID:this.$BusinessUnifiedNavSearchSource$p_1,localScopeType:"ad-account",businessID:this.$BusinessUnifiedNavSearchSource$p_2});e=h.getState().navigationDataMap.get(e);e.hasValueWithoutError()||b([],a,d("SearchSourceQueryStatus").ACTIVE);var f=[];e=e.mapValue(function(a){return a.sections.filter(function(a){return a.sectionType!==c("BusinessUnifiedNavigationSections").FREQUENTLY_USED})});for(var e=(e=e.getValue())!=null?e:[],g=Array.isArray(e),i=0,e=g?e:e[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var j;if(g){if(i>=e.length)break;j=e[i++]}else{i=e.next();if(i.done)break;j=i.value}j=j;f=c("unionArrays")(f,j.items)}j=f.filter(function(b){return b.displayedName.toString().toLowerCase().includes(a.toLowerCase())});i=d("BusinessTypeaheadUtils.brands").getEntriesFromBusinessUnifiedNavigationItems(j,"ad-tool");b(i,a,d("SearchSourceQueryStatus").COMPLETE)};return b}(c("AbstractSearchSource"));g["default"]=a}),98);
-----
BusinessTypeaheadContainer.brands",["fbt","AppLogger.brands","BusinessAsyncSearchSource","BusinessCompositeSearchSource_DEPRECATED","BusinessSearchTypeaheadResultItemType","BusinessTypeahead.brands","BusinessTypeaheadContext","BusinessTypeaheadUtils.brands","BusinessUnifiedNavSearchSource","BusinessUnifiedNavigationLogger","GlobalSearchConfig.brands","SearchSourceQueryStatus","URI","guid","react","sortBy"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||d("react");a=function(a){babelHelpers.inheritsLoose(b,a);function b(b){var e;e=a.call(this,b)||this;e.$11=function(){e.$4=new Date(),e.$1=e.$6(),e.$2=!1,e.$14("search_session_start"),c("BusinessUnifiedNavigationLogger").log("search_button_click","app_init")};e.$8=function(){e.$2||(e.$14("search_session_cancel",{timeSpent:new Date().getTime()-e.$4}),c("BusinessUnifiedNavigationLogger").log("search_modal_close","search_button_click",{queryString:e.state.queryString}))};e.$10=function(a,b){b===d("SearchSourceQueryStatus").COMPLETE&&(e.setState({isLoading:!1,noEntriesFound:!1}),e.$15(a.length))};e.$12=function(){e.setState({isLoading:!1,noEntriesFound:!0}),e.$15(0)};e.$9=function(a){a=a.target.value;a===""&&(e.$14("search_session_reset"),c("BusinessUnifiedNavigationLogger").log("search_input_reset","search_button_click"));c("BusinessUnifiedNavigationLogger").log("search_input_change","search_button_click",{queryString:a});e.setState({queryString:a,isLoading:!0})};e.$13=function(a,b,f){e.$2=!0;var g=a.getURI(),h=a.getAuxiliaryData();if(h&&h.action){h=f==="settings"?h.action.settings_uri:h.action.uri;g=new(i||(i=c("URI")))(h)}g||(g=d("BusinessTypeaheadUtils.brands").getBusinessSettingLink(e.props.businessID,a));e.$14("search_session_selection",{serverOrder:a.getOrder(),group:a.getType(),clientOrder:a.bizSeachIndex,clientOrderInGroup:a.bizSearchIndexInGroup,selectedActionType:f||"default",landingURI:g&&g.toString(),timeSpent:new Date().getTime()-e.$4});c("BusinessUnifiedNavigationLogger").log("search_select","search_button_click",{queryString:e.state.queryString});h=a.getType();Object.prototype.hasOwnProperty.call(c("GlobalSearchConfig.brands"),h)?c("GlobalSearchConfig.brands")[h].onCustomSelectAttempt(a,b,f):window.open(g,"_blank")};e.$7=function(a){a=c("sortBy")(a,function(a){return e.$16(a.getType())});var b=0,d=null;for(var f=0;f0?"search_entries_found":"search_entries_not_found","search_input_change",{queryString:this.state.queryString}))};e.$16=function(a){return Object.keys(c("BusinessSearchTypeaheadResultItemType")).indexOf(a)};e.$6=function(){return Date.now()+"-"+c("guid")()};return b}(k.Component);a.contextType=c("BusinessTypeaheadContext");g["default"]=a}),226);
-----
BusinessCompositeSearchSource_DEPRECATED",["AdsAccountStore","BusinessSearchConfig","BusinessTypeaheadUtils.brands","BusinessUnifiedNavigationDataKey","BusinessUnifiedNavigationDataProvider","BusinessUnifiedNavigationSections","CompositeSearchSource","SearchSourceQueryStatus","immutable"],(function(a,b,c,d,e,f,g){"use strict";var h=c("BusinessUnifiedNavigationDataProvider").toFluxStore();a=function(a){babelHelpers.inheritsLoose(b,a);function b(b){return a.call(this,b)||this}var e=b.prototype;e.searchImpl=function(b,e,f){f===void 0&&(f={});if(b===""){var g=c("AdsAccountStore").getSelectedAccountID(),i=c("AdsAccountStore").getSelectedBusinessID();g=h.getState().navigationDataMap.get(g!=null?new(c("BusinessUnifiedNavigationDataKey"))({localScopeID:g,localScopeType:"ad-account",businessID:i}):new(c("BusinessUnifiedNavigationDataKey"))({businessID:i}));if(!g.hasValueWithoutError())e([],b,d("SearchSourceQueryStatus").ACTIVE);else{g=(i=g.getValueEnforcing().sections.find(function(a){return a.sectionType===c("BusinessUnifiedNavigationSections").FREQUENTLY_USED}))==null?void 0:i.items;if(g==null)e([],b,d("SearchSourceQueryStatus").COMPLETE);else{i=d("BusinessTypeaheadUtils.brands").getEntriesFromBusinessUnifiedNavigationItems(g,"recently_used");e(i,b,d("SearchSourceQueryStatus").COMPLETE)}}return}g=function(a,b,d){var f=c("immutable").List(a).groupBy(function(a){return a.getType()}).toArray(),g=[],h={},i=0;while(i=k.length)continue;g.push(k[h[j]]);h[j]++;i++}e(g,b,d)};a.prototype.searchImpl.call(this,b,g,f)};return b}(c("CompositeSearchSource"));g["default"]=a}),98);
-----
MAbstractTypeahead.react",["cx","AlignedLayer.react","ReactDOMSelection","SearchSourceQueryStatus","SearchableTextInput.react","TypeaheadNavigation","TypeaheadView.react","getOrCreateDOMID","joinClasses","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");a=function(a){babelHelpers.inheritsLoose(b,a);function b(b){var e,f=Object.entries({autoComplete:"off",autoCorrect:"off",entriesWidthMatchContext:!0,hideViewWithEntries:!0,queryString:"",selectOnBlur:!1});for(var g=0;g0);e.props.onEntriesFound&&e.props.onEntriesFound(g);if(e.props.autoHighlight!==!0){e.setState(function(a){a=a.highlightedEntry;var b=a&&g.indexOf(a)!==-1;return{activeEntries:g,highlightedEntry:b===!0?a:null}});b&&e.$4(!0);return}e.setState(function(a){var b=a.highlightedEntry,c=b&&g.indexOf(b)!==-1;a=a.isAutoHighlight;a===!0?b=g[0]:(b=c===!0?b:g[0],a=!c);return{activeEntries:g,highlightedEntry:b,isAutoHighlight:a}});b&&e.$4(!0)};e.$5=function(){(e.state.activeEntries.length&&e.state.queryString!==null&&e.state.queryString!==void 0&&e.state.queryString.length>0||e.props.showEntriesOnFocus===!0)&&e.$4(!0),e.setState({focused:!0}),e.props.onFocus&&e.props.onFocus(new SyntheticFocusEvent())};e.$6=function(a){e.props.onBlur&&(!e.state.viewIsVisible||!e.state.highlightedEntry)&&e.props.onBlur(a),e.props.hideViewWithEntries!==!0&&(e.$4(!1),e.clearActiveEntries()),e.props.selectOnBlur===!0&&e.state.highlightedEntry&&e.props.onSelectAttempt!=null&&e.props.onSelectAttempt(e.state.highlightedEntry),e.setState({focused:!1}),e.props.onBlur&&e.props.onBlur(new SyntheticFocusEvent())};e.$7=function(){var a=e.getTextFieldDOM();if(a){var b=d("ReactDOMSelection").getOffsets(a);b&&b.start==b.end&&a.select()}e.props.onClick&&e.props.onClick(new SyntheticMouseEvent())};e.$8=function(a){if(e.props.onEnterWithoutSelection&&(!e.state.viewIsVisible||!e.state.highlightedEntry)){e.props.onEnterWithoutSelection(a);return}if(!e.state.viewIsVisible)return;if(!e.state.highlightedEntry){a.preventDefault();return}e.props.hideViewWithEntries!==!0&&e.$4(!1);e.props.onSelectAttempt!=null&&e.props.onSelectAttempt(e.state.highlightedEntry);a.preventDefault()};e.$10=function(a){e.$9(a)};e.$11=function(a){e.$9(a)};e.$12=function(a){e.$9(a)};e.$13=function(a){a.preventDefault(),d("TypeaheadNavigation").moveDown(e.state.activeEntries,e.state.highlightedEntry,e.$14)};e.$15=function(a){a.preventDefault(),d("TypeaheadNavigation").moveUp(e.state.activeEntries,e.state.highlightedEntry,e.$14)};e.$14=function(a){e.setState({highlightedEntry:a,isAutoHighlight:!a})};e.$16=function(a){e.props.onChange&&e.props.onChange(a),e.$4(e.state.focused&&(e.props.showEntriesOnFocus===!0||a.target.value.length>0)&&e.state.activeEntries.length>0)};e.$17=function(a){e.setState({highlightedEntry:a,isAutoHighlight:!1})};return e}var e=b.prototype;e.$9=function(a){this.state.viewIsVisible&&this.props.onSelectAttempt&&this.state.highlightedEntry&&(this.props.hideViewWithEntries!==!0&&(this.$4(!1),a.preventDefault()),this.props.onSelectAttempt(this.state.highlightedEntry))};e.$18=function(){return j.jsx(c("TypeaheadView.react"),{Renderer:this.props.presenter.ViewRenderer,extraRendererProps:this.props.presenter.extraRendererProps,highlightedEntry:this.state.highlightedEntry,selectedEntry:this.props.selectedEntry,isVisible:this.state.viewIsVisible,onHighlight:this.$17,onRenderHighlight:this.$2,onSelect:this.props.onSelectAttempt,entries:this.state.activeEntries,queryString:this.props.queryString})};e.$4=function(a){a!==this.state.viewIsVisible&&(this.props.onTypeaheadVisibilityChanged&&this.props.onTypeaheadVisibilityChanged(a),this.setState({viewIsVisible:a}))};e.UNSAFE_componentWillReceiveProps=function(a){(a.queryString==null||a.queryString.length==0)&&this.props.showEntriesOnFocus!==!0&&this.clearActiveEntries()};e.renderLayers=function(){var a=this;return!this.props.presenter.useLayer!==!0?null:j.jsx(c("AlignedLayer.react"),{align:"left",contextRef:function(){return a.$1.current},shown:this.state.viewIsVisible,children:this.$18()})};e.render=function(){var a=j.jsx(c("SearchableTextInput.react"),{"aria-activedescendant":this.state.activeDescendant,"aria-autocomplete":"list",ref:this.$1,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:this.props.inputClassName,queryString:this.props.queryString||"",placeholder:this.props.placeholder,searchSource:this.props.searchSource,searchSourceOptions:this.props.searchSourceOptions,searchOnFocus:!!this.props.showEntriesOnFocus,style:this.props.inputStyle,disabled:this.props.disabled,onEntriesFound:this.$3,onBlur:this.$6,onFocus:this.$5,onChange:this.$16,onComma:this.$11,onDownArrow:this.$13,onUpArrow:this.$15,onTab:this.$10,onSpace:this.$12,onEnter:this.$8,onBackspace:this.props.onBackspace,onPaste:this.props.onPaste,onClick:this.$7,tabIndex:this.props.tabIndex}),b=null;this.props.presenter.useLayer!==!0&&(b=this.$18());var d=c("joinClasses")("_58ah",this.props.className),e=babelHelpers["extends"]({},this.props);delete e.queryString;delete e.showEntriesOnFocus;delete e.inputClassName;delete e.inputID;delete e.onSelectAttempt;delete e.onEnterWithoutSelection;delete e.hideViewWithEntries;delete e.entriesWidthMatchContext;delete e.selectedEntry;delete e.onTypeaheadVisibilityChanged;return[j.jsxs("span",babelHelpers["extends"]({},e,{className:c("joinClasses")(this.props.className,d),onBlur:null,onClick:null,onFocus:null,tabIndex:null,children:[a,b]})),this.renderLayers()]};e.componentDidMount=function(){if(this.props.focusedOnInit===!0){var a;(a=this.$1.current)==null?void 0:a.focusInput()}this.setState({mounted:!0})};e.componentWillUnmount=function(){this.setState({mounted:!1})};e.clearActiveEntries=function(){this.setState({activeDescendant:null,activeEntries:[],highlightedEntry:null})};e.focusInput=function(){var a;(a=this.$1.current)==null?void 0:a.focusInput()};e.blurInput=function(){var a;(a=this.$1.current)==null?void 0:a.blurInput()};e.hideView=function(){this.$4(!1)};e.search=function(a,b){var c;(c=this.$1.current)==null?void 0:c.search(a,b)};e.getTextFieldDOM=function(){var a;return(a=this.$1.current)==null?void 0:a.getTextFieldDOM()};return b}(j.Component);g["default"]=a}),98);
-----
AdsAudienceSearchSource",["AbstractSearchSource","AdsAudienceDataSourceUtils","AdsAudienceMode","AdsAudienceTypeaheadConstants","AdsCustomAudienceType","AdsGraphAPI","AdsOnsiteDonateAdsUtils","AdsTargetingAudienceEditorGKSelectors","AdsTargetingReachEstimateConstant","CustomAudienceUtils","SearchSourceQueryStatus","SearchableEntry","cachedGraphAPI","debounce","gkx","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h=Math.random(),i=c("gkx")("21371"),j=c("debounce")(function(a,b){c("promiseDone")(c("cachedGraphAPI")(d("AdsGraphAPI").get(f.id).search("customaudience")).get(a,"customAudiencesSearch"),function(a){return b(a.data)})},d("AdsAudienceTypeaheadConstants").DEBOUNCE_TIME);a=function(a){babelHelpers.inheritsLoose(b,a);function b(b,e,f){var g;g=a.call(this)||this;g.$AdsAudienceSearchSource$p_1=function(a,b,e){var f=[];e.forEach(function(b){var e=b.data_source;if(g.isReporting===!0&&!c("AdsAudienceDataSourceUtils").isAllowedByForReporting(e))return;var h=!1;!c("gkx")("21372")&&!g.isOnsiteDonateAd&&(d("AdsOnsiteDonateAdsUtils").isFundraiserDonateOrCreateCustomAudienceRule(b.rule)||d("AdsOnsiteDonateAdsUtils").isFundraiserDonateOrCreateCustomAudienceRule(b.rule_v2))&&(h=!0);if(c("AdsAudienceDataSourceUtils").isDisallowedByDataSource(e))return;if(parseInt(b.subtype,10)===c("AdsCustomAudienceType").SUBTYPE_TO_ENUM_MAP.PARTNER)return;var j=!1;g.shouldUseSnapshotForDynamicCA&&!i&&(j=c("AdsAudienceDataSourceUtils").isDisallowedDynamicCA(e),g.inclusionExclusionMode===c("AdsAudienceMode").EXCLUDE&&(j=j||c("AdsAudienceDataSourceUtils").isNotExcludableDynamicCA(e)));e=!d("CustomAudienceUtils").isOwnedByCurrentAccount(b,g.accountID)&&b.status_code===470;j=new(c("SearchableEntry"))({uniqueID:b.audience_id,title:b.name,subtitle:c("AdsAudienceDataSourceUtils").textForTypeInUI(b,g.accountID),auxiliaryData:babelHelpers["extends"]({dataSource:b.data_source,customer_file_source:b.customer_file_source,disabled:j||h,isFundraiserCustomAudienceDisabled:h,isOwnerAccountDisabled:e,description:b.description,isAdAccountAdmin:g.isAdAccountAdmin,isPersonalAdAccount:g.isPersonalAdAccount,is_snapshot:b.is_snapshot,is_value_based:b.is_value_based,lookalikeSpec:b.lookalike_spec,lookalike_type:b.lookalike_type,is_maca_or_app_based_lal:b.is_maca_or_app_based_lal,is_wca_or_pixel_based_lal:b.is_wca_or_pixel_based_lal,matchedText:a,reach:b.approximate_count<=d("AdsTargetingReachEstimateConstant").LOW_REACH_SIZE?b.approximate_count===d("AdsTargetingReachEstimateConstant").ERROR_SIZE?"Not available":d("AdsTargetingReachEstimateConstant").LOW_REACH_SIZE_CONTENT:b.approximate_count,reach_lower_bound:b.approximate_count_lower_bound<=d("AdsTargetingReachEstimateConstant").LOW_REACH_SIZE?b.approximate_count_lower_bound===d("AdsTargetingReachEstimateConstant").ERROR_SIZE?"Not available":d("AdsTargetingReachEstimateConstant").LOW_REACH_SIZE_CONTENT:b.approximate_count_lower_bound,reach_upper_bound:b.approximate_count_upper_bound<=d("AdsTargetingReachEstimateConstant").LOW_REACH_SIZE?b.approximate_count_upper_bound===d("AdsTargetingReachEstimateConstant").ERROR_SIZE?"Not available":d("AdsTargetingReachEstimateConstant").LOW_REACH_SIZE_CONTENT:b.approximate_count_upper_bound},d("AdsTargetingAudienceEditorGKSelectors").passTargetingFrictionCAEASBackfillChanges()&&{belowSizeThreshold:b.approximate_count_upper_bound<=d("AdsTargetingReachEstimateConstant").LOW_REACH_SIZE&&b.approximate_count_upper_bound!==d("AdsTargetingReachEstimateConstant").ERROR_SIZE},{owner_account_info:b.owner_account_info,regulated_audience_spec:b.regulated_audience_spec,rule:b.rule,rule_v2:b.rule_v2,time_created:b.time_created,subtype:b.subtype,sharing_status:b.sharing_status,value_based_eligible_source:b.value_based_eligible_source,operation_status:{code:b.status_code},is_eu_privacy_directive_impacted:b.status_code===202,allowed_catalog_segments:b.allowed_catalog_segments,allow_new_campaigns:b.allow_new_campaigns,campaign_creation_typeahead_error:b.campaign_creation_typeahead_error})});f.push(j)});b(f,a,d("SearchSourceQueryStatus").COMPLETE)};f!==h||(g.accountID=e.accountID,g.businessUnitID=e.businessUnitID,g.isAdAccountAdmin=e.isAdAccountAdmin,g.isPersonalAdAccount=e.isPersonalAdAccount,g.shouldUseSnapshotForDynamicCA=!!e.shouldUseSnapshotForDynamicCA,g.inclusionExclusionMode=e.inclusionExclusionMode||c("AdsAudienceMode").INCLUDE,g.isOnsiteDonateAd=e.isOnsiteDonateAd,g.isReporting=e.isReporting,g.advantageAudienceCAExclusionSectionEnabled=e.advantageAudienceCAExclusionSectionEnabled);return g}var e=b.prototype;e.bootstrapImpl=function(a){this.search("",a)};e.bootstrapNumEntries=function(a,b){b===void 0&&(b=d("AdsAudienceTypeaheadConstants").MAX_ENTRIES_TO_RENDER),this.search("",a,{limit:b})};e.searchImpl=function(a,b,c){var e;c=c||{};c.q=a;c.account_id=this.accountID;c.business_unit_id=this.businessUnitID;c.limit=(e=c.limit)!=null?e:d("AdsAudienceTypeaheadConstants").MAX_ENTRIES_TO_RENDER;c.include_snapshot_audiences=this.shouldUseSnapshotForDynamicCA;j(c,this.$AdsAudienceSearchSource$p_1.bind(this,a,b))};b.getInstance=function(a){return new b(null,a,h)};return b}(c("AbstractSearchSource"));g["default"]=a}),98);
-----
AdsProspectingAudienceSearchSource",["AbstractSearchSource","AsyncRequest","SearchSourceQueryStatus","SearchableEntry","ThisControllerNoLongerExists"],(function(a,b,c,d,e,f,g){"use strict";a=function(a){babelHelpers.inheritsLoose(b,a);function b(b){var c;c=a.call(this)||this;c.$AdsProspectingAudienceSearchSource$p_1=b.accountID;return c}var e=b.prototype;e.bootstrapImpl=function(a){this.search("",a)};e.searchImpl=function(a,b,e){var f=this;a=d("ThisControllerNoLongerExists").__DEADURI__("c69d31swp");new(c("AsyncRequest"))().setURI(a).setHandler(function(a){f.$AdsProspectingAudienceSearchSource$p_2(a.payload,b)}).setErrorHandler(function(a){}).send()};e.$AdsProspectingAudienceSearchSource$p_2=function(a,b){var e=[];a.entries.forEach(function(a){a=new(c("SearchableEntry"))({uniqueID:a.uid,title:a.title,subtitle:a.subtitle,auxiliaryData:{type:a.type,subtype:a.subtype}});e.push(a)});b(e,"",d("SearchSourceQueryStatus").COMPLETE)};b.getInstance=function(a){return new b(a)};return b}(c("AbstractSearchSource"));g["default"]=a}),98);
-----
BusinessUnifiedNavigationToolsSearchSource",["AbstractSearchSource","SearchSourceQueryStatus","SearchableEntry","businessUnifiedNavigationItemsDataSelector","guid","unionArrays"],(function(a,b,c,d,e,f,g){"use strict";function h(a,b){var d=[];for(var e=0;e=e.length)break;j=e[i++]}else{i=e.next();if(i.done)break;j=i.value}j=j;f=c("unionArrays")(f,j.items)}j=h(f.filter(function(b){return b.displayedName.toString().toLowerCase().includes(a.toLowerCase())}),"ad-tool");b(j,a,d("SearchSourceQueryStatus").COMPLETE)}}return};return b}(c("AbstractSearchSource"));g["default"]=a}),98);
-----
BusinessUnifiedNavigationSearchTypeaheadContainer.react",["AdsHelpTrayPushCmsIdDataAction","BusinessAsyncSearchSource","BusinessCompositeSearchSource","BusinessTypeaheadContext","BusinessTypeaheadUtils.brands","BusinessUnifiedNavigationLogger","BusinessUnifiedNavigationSearchResultItemType","BusinessUnifiedNavigationSearchTypeahead.react","BusinessUnifiedNavigationToolsSearchSource","QuickPerformanceLogger","SearchSourceQueryStatus","URI","isEmpty","qpl","react","sortBy"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=k||d("react");a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var f=arguments.length,g=new Array(f),j=0;j-----
BIGUniversalAdAccountSelectorContainer.react",["AdsAccountInBusinessSearchSource","AdsAccountIncludingCrStSearchSource","AdsAccountSearchSource","AdsAccountWithCapabilitySearchSource","AdsAccountWithUserPermissionsSearchSource","BIGUniversalAdAccountSelector.react","SearchSourceQueryStatus","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var f=arguments.length,g=new Array(f),h=0;h-----
DeveloperCommunityHomeViewSearchTypeahead.react",["fbt","ix","CompositeSearchSource","DelegateSearchSource","DeveloperCommunityConstants","DeveloperCommunityHomeViewSearchTypeaheadContainer.react","DeveloperCommunityHomeViewSearchTypeaheadItem.react","DeveloperCommunitySearchRoute","DeveloperCommunityThreadGraphQLSearchSource","Image.react","SUIDeveloperCommunitySearchTypeaheadTheme","SUITypeahead.react","SearchSourceQueryStatus","SearchableEntry","goURI","killswitch","nullthrows","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||d("react");a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var f=arguments.length,g=new Array(f),i=0;i-----
AdsReportBuilderColumnSearchSource",["SearchSourceQueryStatus","StaticSearchSource","TokenizeUtil"],(function(a,b,c,d,e,f,g){"use strict";a=function(a){babelHelpers.inheritsLoose(b,a);function b(b){return a.call(this,b)||this}var e=b.prototype;e.searchImpl=function(a,b){var e=c("TokenizeUtil").tokenize(a.toLowerCase());e.length===0&&b([],a);var f=this.getSearchableEntries().filter(function(a){var b=0,c=a.getTitle().toString().toLowerCase();return e.every(function(a){var d=c.indexOf(a,b);b=d+a.length;return d>=0})});b(f,a,d("SearchSourceQueryStatus").COMPLETE)};return b}(c("StaticSearchSource"));g["default"]=a}),98);
-----
AdsTypeaheadFilterAbstractSearchSource",["AbstractSearchSource","AdsTypeaheadFilterInternalUtils","AdsTypeaheadFilterSearchableEntry","SearchSourceQueryStatus"],(function(a,b,c,d,e,f,g){"use strict";a=function(a){babelHelpers.inheritsLoose(b,a);function b(b,c,d){var e;e=a.call(this)||this;e.fieldConfig=function(){return e.config.fields[e.fieldKey]};e.operatorConfig=function(){return e.fieldConfig().operators[e.operatorKey]};e.config=b;e.fieldKey=c;e.operatorKey=d;return e}var e=b.prototype;e.labelForValueString=function(a){var b=this.operatorConfig().typeaheadLabel;b=b===void 0?": ":" "+b.toString()+" ";return this.fieldConfig().label.toString()+b+a};e.search=function(a,b,e){a===""&&e&&e.allowBlank===!0?b([c("AdsTypeaheadFilterSearchableEntry").make(this.config,this.fieldKey,this.operatorConfig().key,this.fieldConfig().label.toString(),d("AdsTypeaheadFilterInternalUtils").emptyValuesByFilterValueType[this.operatorConfig().valueType])],a,d("SearchSourceQueryStatus").COMPLETE):this.searchImpl(a,b,e)};return b}(c("AbstractSearchSource"));g["default"]=a}),98);
-----
AdsLocationSearchSource",["AbstractSearchSource","AdsApplicationUtils","AdsGraphAPI","AdsInterfacesLogger","AdsTargetingAudienceEditorGKSelectors","AdsTargetingLocationDataTransformer","AdsTargetingLocationLoggingEvents","CurrentLocale","FBLogger","GraphAPISearchConstants","LocationConstants","Promise","SearchSourceQueryStatus","SearchableEntry","adsTargetingLocationGetLocationFullName","cachedGraphAPI","debounce","nullthrows","promiseDone","requireWeak"],(function(a,b,c,d,e,f,g){"use strict";var h,i="adgeolocation";a=200;var j=0,k=10,l=5e3,m=10,n,o=[],p=[],q=[];function r(a,b){var c=[];a=a.slice();while(a.length>0)c.push(a.splice(0,b));return c}var s=c("debounce")(function(a,b){c("promiseDone")(d("AdsGraphAPI").get(f.id).search(i).get(babelHelpers["extends"]({},a,{locale:c("CurrentLocale").get()})),function(a){b(a.data)},function(a){d("AdsApplicationUtils").isPowerEditor()&&c("requireWeak")("AdsPerfInteractionsController",function(b){b=b;b.annotateFailure("am.editor_typeahead.targeting_location",f.id,{error:a,errorContext:{errorCode:a==null?void 0:a.code}})})})},a);function t(a,b,e){var f=b.adAccountID,g=b.allowedCountryList,h=b.disallowedCountryList,i=b.disallowedLocationTypes,j=b.selectedLocationType;b=b.enableGeoSearchFrictionImprovements;e===void 0&&(e=!1);a=babelHelpers["extends"]({qs:a,limit:k,place_fallback:!0,bulk_upload:e,ad_account_id:f},b===!0?{enable_geo_search_friction_improvements:b}:null);g&&g.length>0&&(a.allowed_countries=g);h&&h.length>0&&(a.disallowed_countries=h);if(i&&i.size>0){e=j&&j!=="all"&&!c("nullthrows")(i).has(j)?[j]:d("LocationConstants").locationTypes;a.location_types=e.filter(function(a){return!c("nullthrows")(i).has(a)}).map(d("LocationConstants").getSingularLocationType)}else j&&j!=="all"&&(a.location_types=[d("LocationConstants").getSingularLocationType(j)]);return a}function u(a,b,e,g,h){h===void 0&&(h=!1);e=t(a,e,h);c("promiseDone")(d("AdsGraphAPI").get(f.id).search(i).get(babelHelpers["extends"]({},e,{location_types:[d("LocationConstants").getSingularLocationType(b)],locale:c("CurrentLocale").get(),return_no_matches:!0})),function(c){c.data&&c.data.length?(o=o.concat(c.data.filter(function(a){return a.category!="no_match"}).map(function(a){a.type=b;return a})),p=p.concat(c.data.filter(function(a){return a.category=="no_match"}).map(function(a){return a.key}))):p=p.concat(a),g()},function(){p=p.concat(a),g()})}function v(a,b){var e=a.map(function(a){var b=a.indexOf(":");if(b===-1)return"US:"+a;else return a.substring(0,b).toUpperCase()+a.substring(b)});c("promiseDone")(d("AdsGraphAPI").get(f.id).search(d("GraphAPISearchConstants").ADGEOLOCATIONMETA).get({zips:e,locale:c("CurrentLocale").get()}),function(c){var f=c.data&&c.data.zips||{};e.forEach(function(b,c){if(b in f){var e;b=babelHelpers["extends"]({},f[b]);b.name=(e=b.name)==null?void 0:e.split(", ")[0];b.type=d("LocationConstants").ZIPS;o.push(b)}else p.push(a[c])});b()},function(){p=a,b()})}function w(a){var b=a.map(function(a){var b=a.indexOf(":");if(b===-1)return"US:"+a;else return a.substring(0,b).toUpperCase()+a.substring(b)});return d("AdsGraphAPI").get(f.id).search(d("GraphAPISearchConstants").ADGEOLOCATIONMETA).get({zips:b,locale:c("CurrentLocale").get()}).then(function(c){var e=c.data&&c.data.zips||{};b.forEach(function(b,c){if(b in e){var f;b=babelHelpers["extends"]({},e[b]);b.name=(f=b.name)==null?void 0:f.split(", ")[0];b.type=d("LocationConstants").ZIPS;o.push(b)}else p.push(a[c])})},function(){p=a})}e=function(a){babelHelpers.inheritsLoose(e,a);e.getInstance=function(){n||(n=new e());return n};function e(){var b;b=a.call(this)||this;return n?n||babelHelpers.assertThisInitialized(b):b}var g=e.prototype;g.onValidateProgress=function(a){this.$AdsLocationSearchSource$p_1=a};g.reportProgress=function(a){this.$AdsLocationSearchSource$p_1&&this.$AdsLocationSearchSource$p_1(a)};g.validate=function(a,e,f,g,i){i===void 0&&(i=!1);var j=function(){var a=o.map(function(a){return d("AdsTargetingLocationDataTransformer").searchDataToDataStore(a,!!g.countryAsObject)});f(a,p)};o=[];p=[];var k=d("LocationConstants").BULK_INUT_GEO_MARKET_INPUT_FORMAT;if(e===d("LocationConstants").ZIPS){if(a.length<=d("LocationConstants").getMaxTargetLocationsCount(d("LocationConstants").ZIPS)){d("AdsTargetingAudienceEditorGKSelectors").enableParallelProcessingOfZipCodes()?c("promiseDone")((h||(h=b("Promise"))).resolve(w(a)),j):v(a,j);return}var m=r(a,l);d("AdsTargetingAudienceEditorGKSelectors").enableParallelProcessingOfZipCodes()?this.$AdsLocationSearchSource$p_2(m,j):this.$AdsLocationSearchSource$p_3(m,j)}else e===d("LocationConstants").CUSTOM_LOCATIONS?this.validateCustomLocations(a,j):e===d("LocationConstants").GEO_MARKETS&&g.geoMarketInputFormat===k.CODE?this.$AdsLocationSearchSource$p_4(a,j):this.validateChunk(a,e,j,g,i)};g.$AdsLocationSearchSource$p_2=function(a,d){var e=[];for(var f=0;f-----
StaticSearchSourceWithAsyncData",["AbstractSearchSource","SearchSourceCallbackManager","SearchSourceQueryStatus","TokenizeUtil","abstractMethod","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";a=function(a){babelHelpers.inheritsLoose(e,a);function e(b){var d;d=a.call(this)||this;d.$StaticSearchSourceWithAsyncData$p_1=null;d.$StaticSearchSourceWithAsyncData$p_3=new(c("SearchSourceCallbackManager"))({parseFn:c("TokenizeUtil").parse,matchFn:c("TokenizeUtil").isQueryMatch,indexFn:void 0});d.$StaticSearchSourceWithAsyncData$p_2=d.$StaticSearchSourceWithAsyncData$p_4(b);return d}var f=e.prototype;f.__loadData=function(a){return c("abstractMethod")("StaticSearchSourceWithAsyncData","__loadData")};f.$StaticSearchSourceWithAsyncData$p_4=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){a=(yield this.__loadData(a));this.$StaticSearchSourceWithAsyncData$p_3.addLocalEntries(a);this.$StaticSearchSourceWithAsyncData$p_1=a;return a});function c(b){return a.apply(this,arguments)}return c}();f.searchImpl=function(a,b,c){this.$StaticSearchSourceWithAsyncData$p_5(a,b,c)};f.$StaticSearchSourceWithAsyncData$p_5=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,c){c=this.$StaticSearchSourceWithAsyncData$p_1;c==null&&(b([],a,d("SearchSourceQueryStatus").ACTIVE),c=(yield this.$StaticSearchSourceWithAsyncData$p_2));if(a===""){b(c,a,d("SearchSourceQueryStatus").COMPLETE);return}this.$StaticSearchSourceWithAsyncData$p_3.setQueryStringAsExhausted(a);this.$StaticSearchSourceWithAsyncData$p_3.search(a,b)});function c(b,c,d){return a.apply(this,arguments)}return c}();return e}(c("AbstractSearchSource"));g["default"]=a}),98);
-----
SignalsDSAssignAndTrackingTable.react",["fbt","ix","BUICheckboxInput_DEPRECATED.react","BUILink.react","BUISwitch_DEPRECATED.react","BUITable.react","BUITableColumn.react","BUIText.react","BUITextInput.react","BUITooltip.react","BusinessURI.brands","FixedDataTableSortableHeader.react","GeoSpinner.react","LoadObject","SearchSourceQueryStatus","SignalsDSAssignAndTrackingConfig","SignalsTooltipInfo.react","immutable","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||(j=d("react"));a=j.PureComponent;b=4;var l=60,m=40,n=40,o=370,p=150,q=m+l*b,r=n+o+p,s=i("403740"),t=h._("Search ad account by name or ID"),u=h._("Search for an ad account"),v=h._("Select ad account"),w=h._("Ad account"),x=h._("Auto-tracking"),y=h._("Turn on auto-tracking so all campaigns will use this event set for ad tracking and attribution."),z=h._("You can"t assign this event set to a shared ad account because your business only has analyst permissions for this ad account.");e=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var f=arguments.length,g=new Array(f),h=0;h0?k.jsx("div",{className:"x6s0dn4 x78zum5 x1pg5gke x5yr21d xl56j7k xh8yej3",children:k.jsx(c("BUICheckboxInput_DEPRECATED.react"),{label:v,labelIsHidden:!0,value:F,onChange:this.$5})}):k.jsx("div",{});F={headers:[f,D,E]};f=d?k.jsx(c("GeoSpinner.react"),{}):null;D=j.isEmpty()&&!d?k.jsx(c("BUIText.react"),{size:"meta1",children:h._("No ad account matches your search.")}):null;E=f!=null||D!=null?k.jsxs("div",{className:"x6s0dn4 x78zum5 xl56j7k x1cnzs8 xc73u3c xx6bls6 x5ib6vp",children:[f,D]}):null;return k.jsxs("div",{children:[k.jsx("div",{className:"x12nagc xewp6mh",children:k.jsx(c("BUITextInput.react"),{label:u,labelIsHidden:!0,placeholder:t,value:e,onChange:this.$3})}),k.jsxs(c("BUITable.react"),{borders:"all",headerProps:{height:m,item:F},items:j,maxHeight:q,rowHeight:l,width:r,children:[k.jsx(c("BUITableColumn.react"),{cell:A,header:C,width:n}),k.jsx(c("BUITableColumn.react"),{cell:i,header:C,width:o}),k.jsx(c("BUITableColumn.react"),{cell:B,header:C,width:p})]}),E]})};return b}(a);g["default"]=e}),226);
-----
AnalyticsEntitiesSearchSource",["AbstractSearchSource","AssetLibraryAppConstants.brands","SearchSourceQueryStatus","SearchableEntry","TextSearchUtil","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";a=function(a){babelHelpers.inheritsLoose(b,a);function b(b){var c;c=a.call(this)||this;c.promise=b;return c}var e=b.prototype;e.searchImpl=function(a,b,e){e=this.promise.then(function(b){return b.filter(function(b){return!a||c("TextSearchUtil").isMatch(b.name,a)||c("TextSearchUtil").isMatch(b.id,a)}).map(function(a){return new(c("SearchableEntry"))({auxiliaryData:a,keywordString:a.name,title:a.name,type:d("AssetLibraryAppConstants.brands").SearchResultTypes.NAME,uniqueID:a.id})})});c("promiseDone")(e,function(c){return b(c,a,d("SearchSourceQueryStatus").COMPLETE)})};return b}(c("AbstractSearchSource"));g["default"]=a}),98);
-----
BRPApplicationForm.react",["fbt","ix","BRPAllowlistAccountSearchSource.react","BRPAllowlistIGAccountSearchSource.react","BRPApplicationFormCreateMutation.graphql","BRPApplicationFormSection.react","CurrentBusinessUser","CurrentUser","ExampleCountriesSearchSource","FBLogger","FlexLayout.react","GeoBaseText.react","GeoButton.react","GeoCard.react","GeoHeading.react","GeoSearchableMultiSelector.react","GeoSection.react","GeoTextInput.react","GeoTokenizer.react","GeoTokenizerToken.react","Image.react","QPLUserFlow","RelayHooks","RelayModern","SearchSourceQueryStatus","err","fbicon","geoMargin","isEmail","nullthrows","qpl","react","useBoolean","useFileInput"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=k||(k=d("react"));e=k;var m=e.useEffect,n=e.useMemo,o=e.useState,p=new(c("ExampleCountriesSearchSource"))(),q=["aol.com","gmail.com","hotmail.com","icloud.com","outlook.com","yahoo.com"];function r(a){var b=/^(([w-]+.)+(xn--[w-]+|w+)|[([da-f]{0,4}:)*(?:[da-f]{1,4}|(?:(?:d{1,3}.){3}d{1,3}))])(:[0-9]+)?([/?].*)?$/,c=/^http(s)?://(([w-]+.)+(xn--[w-]+|w+)|[([da-f]{0,4}:)*(?:[da-f]{1,4}|(?:(?:d{1,3}.){3}d{1,3}))])(:[0-9]+)?([/?].*)?$/;return a.match(b)!==null||a.match(c)!==null}function a(){var a;m(function(){c("QPLUserFlow").addPoint(c("qpl")._(892215753,"5734"),"brp_application_form")},[]);var e=d("RelayHooks").useRelayEnvironment();a=o({value:(a=c("CurrentBusinessUser").email)!=null?a:""});var f=a[0],g=a[1];a=o({value:""});var k=a[0],s=a[1];a=o({value:""});var t=a[0],u=a[1];a=o({value:""});var v=a[0],w=a[1];a=o({value:""});var x=a[0],y=a[1];a=o({value:""});var z=a[0],A=a[1];a=o({value:""});var B=a[0],C=a[1];a=o({value:[]});var D=a[0],E=a[1];a=o({value:""});var F=a[0],G=a[1],H={contactEmail:f,jobTitle:k,rightOwnerName:t,brandWebsite:v,brandEmail:x,trademarkName:z,trademarkURL:B,trademarkRegistrationNumber:F},I={contactEmail:g,jobTitle:s,rightOwnerName:u,brandWebsite:w,brandEmail:y,trademarkName:A,trademarkURL:C,trademarkRegistrationNumber:G},J=function(a){return a.trim().length===0},K={contactEmail:function(a){a=a.value;return c("isEmail")(a)&&!q.includes(a.split("@").pop())},jobTitle:function(a){a=a.value;return!J(a)},rightOwnerName:function(a){a=a.value;return!J(a)},brandWebsite:function(a){a=a.value;return J(a)||r(a)},brandEmail:function(a){a=a.value;return c("isEmail")(a)},teamName:function(a){a=a.value;return!J(a)},trademarkName:function(a){a=a.value;return!J(a)},trademarkURL:function(a){a=a.value;return J(a)||r(a)},trademarkRegistrationNumber:function(a){a=a.value;return!J(a)}};a=n(function(){return new(c("BRPAllowlistAccountSearchSource.react"))()},[]);var L=o([]),M=L[0];L=L[1];var N=o(!1),O=N[0],P=N[1];N=n(function(){return new(c("BRPAllowlistIGAccountSearchSource.react"))()},[]);var Q=o([]),R=Q[0];Q=Q[1];var S=o(!1),T=S[0],U=S[1];S=o([]);var V=S[0],W=S[1];S=function(){X(),aa()};var X=c("useFileInput")(function(a){return W(a)},{allowMultiple:!1,accept:[".jpg",".jpeg",".gif",".png",".tiff",".pdf"]}),Y=c("useBoolean")(!1),Z=Y.value,$=Y.setTrue,aa=Y.setFalse;Y=d("RelayHooks").useMutation(j!==void 0?j:j=b("BRPApplicationFormCreateMutation.graphql"));var ba=Y[0];Y=Y[1];var ca=function(){var a=Object.keys(H).map(function(a){var b=H[a],c=K[a];c=c(b);if(!c){a=I[a];a({value:b.value,showError:!0})}return c}).every(Boolean),b=V.length>0;b||$();var g=D.value.length>0;g||E({value:D.value,showError:!0});if(!b||!a||!g)return;b=V[0];ba({variables:{input:{business:c("nullthrows")(c("CurrentBusinessUser").business_id),input_data:{applicant_full_name:c("CurrentUser").getName(),contact_email:f.value,fb_pages:M.map(function(a){return a.getUniqueID()}),instagram_accounts:R.map(function(a){return a.getUniqueID()}),job_title:k.value,reporting_email:x.value,right_owner_name:t.value,right_owner_website:v.value,team_name:"",trademark_country:D.value.map(function(a){return a.getTitle()}).join(", "),trademark_name:z.value,trademark_registration_number:F.value,trademark_url:B.value},trademark_registration_file:"file",tier_status:"CORE_L0"}},uploadables:b==null?{}:{file:b},onCompleted:function(a){d("RelayModern").commitLocalUpdate(e,function(a){(a=a.get(c("nullthrows")(c("CurrentBusinessUser").business_id)))==null?void 0:a.invalidateRecord()})},onError:function(a){c("FBLogger")("brand_rights_protection").event("error submitting the enrollment application.").catching(a).mustfix(a.message);throw c("err")("Unexpected error when submitting the application. Please contact brand-protection@fb.com for help.")}})};return l.jsxs(c("FlexLayout.react"),{direction:"vertical",align:"stretch",children:[l.jsx(c("GeoHeading.react"),{level:1,xstyle:c("geoMargin").vert12,children:h._("u7533u8bf7u4f7fu7528u54c1u724cu6743u5229u4fddu62a4u5de5u5177")}),l.jsx(c("GeoCard.react"),{children:l.jsxs("div",{className:"xbbxn1n xxbr6pl",children:[l.jsxs(c("GeoSection.react"),{children:[l.jsxs(c("BRPApplicationFormSection.react"),{title:h._("u7533u8bf7u4fe1u606f"),children:[l.jsx(c("GeoTextInput.react"),{label:h._("u5168u540d"),value:c("CurrentUser").getName(),isDisabled:!0}),l.jsx(c("GeoTextInput.react"),{label:h._("u8054u7cfbu90aeu7bb1"),placeholder:h._("u8bf7u8f93u5165u7528u4e8eu8054u7cfbu7684u90aeu7bb1"),description:h._("u6211u4eecu901au8fc7u8fd9u4e2au90aeu7bb1u786eu8ba4u4f60u4e3au8fd9u4e00u54c1u724cu5de5u4f5cuff0cu5e76u5c31u7533u8bf7u4e8bu5b9cu4e0eu4f60u8054u7cfbu3002"),message:f.showError===!0?h._("u90aeu7bb1u7684u57dfu540du5fc5u987bu662fu516cu53f8u540du79f0uff0cu4ee5u4fbfu6211u4eecu7684u56e2u961fu5728u5ba1u6838u7533u8bf7u65f6u786eu8ba4u4f60u4e3au8fd9u4e00u54c1u724cu5de5u4f5cu3002"):"",value:f.value,onChange:function(a){return g({value:a})},status:f.showError===!0?"error":void 0,"data-testid":void 0}),l.jsx(c("GeoTextInput.react"),{label:h._("u804cu4f4d"),placeholder:h._("u8f93u5165u804cu4f4d"),value:k.value,onChange:function(a){return s({value:a})},status:k.showError===!0?"error":void 0,"data-testid":void 0})]}),l.jsxs(c("BRPApplicationFormSection.react"),{title:h._("u6743u5229u6240u6709u8005u4fe1u606f"),children:[l.jsx(c("GeoTextInput.react"),{label:h._("u54c1u724cu6216u516cu53f8u540du79f0"),description:h._("u8f93u5165u62e5u6709u8be5u5546u6807u7684u54c1u724cu6216u516cu53f8u3002"),placeholder:h._("u8f93u5165u6743u5229u6240u6709u8005u540du79f0"),value:t.value,onChange:function(a){return u({value:a})},status:t.showError===!0?"error":void 0,"data-testid":void 0}),l.jsx(c("GeoTextInput.react"),{label:h._("u7528u4e8eu54c1u724cu4fddu62a4u76eeu7684u7684u7535u5b50u90aeu7bb1"),placeholder:h._("u8f93u5165u90aeu7bb1"),description:h._("u4f60u53efu4ee5u63d0u4f9bu4e0du5305u542bu81eau5df1u59d3u540du7684u901au7528u4e1au52a1u90aeu7bb1u3002u88abu4e3eu62a5u65b9u53efu80fdu4f1au901au8fc7u6b64u90aeu7bb1u8054u7cfbu4f60u3002"),value:x.value,onChange:function(a){return y({value:a})},status:x.showError===!0?"error":void 0,"data-testid":void 0}),l.jsx(c("GeoTextInput.react"),{label:h._("u54c1u724cu7f51u7ad9"),isOptional:!0,placeholder:h._("u8f93u5165u6743u5229u6240u6709u8005u7f51u7ad9"),description:h._("u8fd9u4e9bu4fe1u606fu5c06u7528u4e8eu786eu8ba4u4f60u54c1u724cu7684u77e5u8bc6u4ea7u6743 (IP) u6240u6709u6743u3002u7533u8bf7u83b7u6279u540euff0cu4f60u53efu4ee5u6dfbu52a0u66f4u591au7f51u7ad9u3002"),value:v.value,onChange:function(a){return w({value:a})},status:v.showError===!0?"error":void 0,"data-testid":void 0}),l.jsx(c("GeoTokenizer.react"),{label:h._("u5b98u65b9 Facebook u516cu5171u4e3bu9875"),placeholder:h._("u641cu7d22 Facebook u516cu5171u4e3bu9875..."),tooltipText:h._("u8fd9u4e9bu4fe1u606fu5c06u7528u4e8eu786eu8ba4u4f60u54c1u724cu7684u77e5u8bc6u4ea7u6743 (IP) u6240u6709u6743u3002u7533u8bf7u83b7u6279u540euff0cu4f60u53efu4ee5u6dfbu52a0u66f4u591au516cu5171u4e3bu9875u3002"),isPlaceholderPersistent:!0,emptySearchResultsContent:h._("u627eu4e0du5230u7ed3u679cuff0cu8bf7u8bd5u8bd5u5176u4ed6u5173u952eu8bcdu3002"),tokenRenderer:function(a){return l.jsx(c("GeoTokenizerToken.react"),{media:a.getPhoto()})},onChange:L,searchSource:a,value:M,isLoading:O,onSearch:function(){return P(!0)},onEntriesFound:function(a,b){return P(b!==d("SearchSourceQueryStatus").COMPLETE)},onNoEntriesFound:function(){return P(!1)}}),l.jsx(c("GeoTokenizer.react"),{label:h._("Official Instagram profile"),placeholder:h._("Search for Instagram profile..."),tooltipText:h._("u8fd9u4e9bu4fe1u606fu5c06u7528u4e8eu786eu8ba4u4f60u54c1u724cu7684u77e5u8bc6u4ea7u6743 (IP) u6240u6709u6743u3002u7533u8bf7u83b7u6279u540euff0cu4f60u53efu4ee5u6dfbu52a0u66f4u591a Instagram u4e3bu9875u3002"),isPlaceholderPersistent:!0,emptySearchResultsContent:h._("u627eu4e0du5230u7ed3u679cuff0cu8bf7u8bd5u8bd5u5176u4ed6u5173u952eu8bcdu3002"),tokenRenderer:function(a){return l.jsx(c("GeoTokenizerToken.react"),{media:a.getPhoto()})},onChange:Q,searchSource:N,value:R,isLoading:T,onSearch:function(){return U(!0)},onEntriesFound:function(a,b){return U(b!==d("SearchSourceQueryStatus").COMPLETE)},onNoEntriesFound:function(){return U(!1)},isOptional:!0})]}),l.jsxs(c("BRPApplicationFormSection.react"),{title:h._("u5546u6807u4fe1u606f"),titleDescription:h._("u5982u8981u7533u8bf7u54c1u724cu6743u5229u4fddu62a4u5de5u5177uff0cu4f60u5fc5u987bu81f3u5c11u62e5u6709u4e00u4e2au6709u6548u7684u6ce8u518cu5546u6807u3002"),children:[l.jsx(c("GeoTextInput.react"),{label:h._("u5546u6807u540du79f0"),placeholder:h._("u8f93u5165u5546u6807u540du79f0"),value:z.value,onChange:function(a){return A({value:a})},status:z.showError===!0?"error":void 0,"data-testid":void 0}),l.jsx(c("GeoTextInput.react"),{label:h._("u5546u6807u6ce8u518cu7f51u5740"),description:h._("u8bf7u63d0u4f9bu5546u6807u6ce8u518cu9875u9762u7684u76f4u63a5u94feu63a5uff08u7f51u5740uff09u3002"),placeholder:h._("u5546u6807u6ce8u518cu7f51u5740"),value:B.value,onChange:function(a){return C({value:a})},status:B.showError===!0?"error":void 0,isOptional:!0,"data-testid":void 0}),l.jsx(c("GeoSearchableMultiSelector.react"),{label:h._("u6ce8u518cu56fdu5bb6/u5730u533au6216u53f8u6cd5u8f96u533a"),onChange:function(a){E({value:a})},placeholder:h._("u8f93u5165u56fdu5bb6/u5730u533au6216u53f8u6cd5u8f96u533a"),errorMessage:D.showError===!0?" ":null,searchSource:p,value:D.value,"data-testid":void 0}),l.jsx(c("GeoTextInput.react"),{label:h._("u5546u6807u6ce8u518cu53f7"),placeholder:h._("u8f93u5165u5546u6807u6ce8u518cu53f7"),value:F.value,onChange:function(a){return G({value:a})},status:F.showError===!0?"error":void 0,"data-testid":void 0}),l.jsxs("div",{children:[l.jsx(c("GeoBaseText.react"),{size:"header4",color:"value",display:"block",children:"Trademark registration documents"}),l.jsx(c("GeoBaseText.react"),{size:"valueDescription",color:"value",display:"block",children:"You can add a scanned copy of the trademark registration certificate(s), screenshot of the registration on the website or database of the applicable national or community intellectual property office(s) in the file formats JPG, GIF, PNG, TIFF or PDF."})]}),l.jsxs("div",{children:[l.jsx(c("GeoButton.react"),{icon:l.jsx(c("Image.react"),{src:i("1464821")}),label:h._("u9009u62e9u6587u4ef6"),onClick:S,"data-testid":void 0}),l.jsx(c("GeoBaseText.react"),{size:"valueDescription",color:Z?"error":"value",display:"block",children:V.length>0?V[0].name:h._("u672au9009u62e9u6587u4ef6")})]})]})]}),l.jsxs(c("GeoSection.react"),{children:[l.jsx(c("BRPApplicationFormSection.react"),{children:[l.jsx(c("GeoTextInput.react"),{label:h._("u7535u5b50u7b7eu540d"),description:h._("u7535u5b50u7b7eu540du5e94u4e0eu4f60u7684u5168u540du4e00u81f4u3002"),value:c("CurrentUser").getName(),isDisabled:!0},"signature")]}),l.jsx(c("FlexLayout.react"),{justify:"end",children:l.jsx(c("GeoButton.react"),{icon:d("fbicon")._(i("579032"),16),label:h._("u53d1u9001"),onClick:ca,variant:"primary",isLoading:Y,isDisabled:Y,"data-testid":void 0})})]})]})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BRPSearchMethodSearchSource",["fbt","ix","AbstractSearchSource","SearchSourceQueryStatus","SearchableEntry"],(function(a,b,c,d,e,f,g,h,i){"use strict";a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b;b=a.call(this)||this;b.$BRPSearchMethodSearchSource$p_1=[];return b}var e=b.prototype;e.createSearchableEntries=function(a){var b,d="NEW_SEARCH";return[new(b=c("SearchableEntry"))({uniqueID:"id_search",title:a,subtitle:h._("u6309u7f16u53f7u641cu7d22"),photo:i("1555018"),auxiliaryData:{searchMethod:"id_search",searchText:a,dataType:d}}),new b({uniqueID:"url_search",title:a,subtitle:h._("u6309u7f51u5740u641cu7d22"),photo:i("1265786"),auxiliaryData:{searchMethod:"url_search",searchText:a,dataType:d}}),new b({uniqueID:"exact_phrase_search",title:a,subtitle:h._("u641cu7d22u7cbeu786eu77edu8bed"),photo:i("1688136"),auxiliaryData:{searchMethod:"exact_phrase_search",searchText:a,dataType:d}}),new b({uniqueID:"standard_search",title:a,subtitle:h._("u6309u5173u952eu8bcdu641cu7d22"),photo:i("1285096"),auxiliaryData:{searchMethod:"standard_search",searchText:a,dataType:d}})]};e.searchImpl=function(a,b,c){var e=this;c=this.createSearchableEntries(a);c=c.filter(function(a){if(e.checkSearchEntryValidityFn)return e.checkSearchEntryValidityFn(a);else return!0});b(c,a,d("SearchSourceQueryStatus").COMPLETE);this.$BRPSearchMethodSearchSource$p_1=c};e.setCheckSearchEntryValidityFn=function(a){this.checkSearchEntryValidityFn=a};e.getEntries=function(){return this.$BRPSearchMethodSearchSource$p_1};return b}(c("AbstractSearchSource"));g.BRPSearchMethodSearchSource=a}),226);
-----
BRPSearchHistorySearchSource",["ix","AbstractSearchSource","BRPSearchHistorySearchSourceQuery.graphql","BRPSearchMethod","RelayHooks","SearchSourceQueryStatus","SearchableEntry","debounceCore","enumUtils","promiseDone"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i!==void 0?i:i=b("BRPSearchHistorySearchSourceQuery.graphql");function k(a){return(a=a==null?void 0:(a=a.brp_search_history)==null?void 0:(a=a.recent_entries)==null?void 0:a.map(function(a){return l(a)}).filter(Boolean))!=null?a:[]}function a(a){a=(a=a.xfb_create_entry_brp_search_history_entry)==null?void 0:a.brp_search_history_entry;return l(a)}function l(a){var b;if(a==null||a.id==null||a.search_text==null||a.search_method==null)return null;b=(b={},b.id_search="ID",b.url_search="URL",b.exact_phrase_search="Exact phrase",b.standard_search="Keyword",b);var e=c("BRPSearchMethod")[d("enumUtils").assertKey(a.search_method,c("BRPSearchMethod"))];return new(c("SearchableEntry"))({uniqueID:a.id,title:a.search_text,subtitle:b[e],order:a.time_searched,photo:h("1643894"),auxiliaryData:{searchMethod:c("BRPSearchMethod")[d("enumUtils").assertKey(a.search_method,c("BRPSearchMethod"))],searchText:(b=a.search_text)!=null?b:"",dataType:"SEARCH_HISTORY"}})}e=function(a){babelHelpers.inheritsLoose(b,a);function b(b,e){var f;f=a.call(this)||this;f.$BRPSearchHistorySearchSource$p_4=100;f.$BRPSearchHistorySearchSource$p_1=[];f.$BRPSearchHistorySearchSource$p_2=new Map();f.entriesNeededToDisplay=b;f.$BRPSearchHistorySearchSource$p_3=e;f.$BRPSearchHistorySearchSource$p_5=c("debounceCore")(function(a,f){return c("promiseDone")(d("RelayHooks").fetchQuery(e,j,{count:b,query_string:a}).toPromise(),f)},200);f.bootstrap(function(){});return f}var e=b.prototype;e.bootstrapImpl=function(a){var b=this;c("promiseDone")(d("RelayHooks").fetchQuery(this.$BRPSearchHistorySearchSource$p_3,j,{count:this.$BRPSearchHistorySearchSource$p_4,query_string:""}).toPromise(),function(c){c=k(c);b.$BRPSearchHistorySearchSource$p_1=c;c.forEach(function(a){b.$BRPSearchHistorySearchSource$p_2.set(a.getUniqueID(),a)});a()})};e.searchImpl=function(a,b,c){var e=this;b([],a,d("SearchSourceQueryStatus").ACTIVE);this.bootstrap(function(){var d;return e.performSearch(a,b,(d=c==null?void 0:c.pendingDeletionEntries)!=null?d:[])})};e.performSearch=function(a,b,c){var e=this,f=this.$BRPSearchHistorySearchSource$p_1.filter(function(b){return b.getAuxiliaryData().searchText.toLowerCase().startsWith(a.toLowerCase())}),g=this.processEntriesForCallback(f,c);b(g,a,d("SearchSourceQueryStatus").COMPLETE);f=g.length>=this.entriesNeededToDisplay;if(f)return;this.$BRPSearchHistorySearchSource$p_5(a,function(f){f=k(f);f=f.filter(function(a){return!e.$BRPSearchHistorySearchSource$p_2.has(a.getUniqueID())});var h=g.concat(f);h=e.processEntriesForCallback(h,c);b(h,a,d("SearchSourceQueryStatus").COMPLETE);f.forEach(function(a){e.$BRPSearchHistorySearchSource$p_2.set(a.getUniqueID(),a),e.$BRPSearchHistorySearchSource$p_1.push(a)});e.$BRPSearchHistorySearchSource$p_1=e.$BRPSearchHistorySearchSource$p_1.sort(function(a,b){return b.getOrder()-a.getOrder()})})};e.addEntry=function(a){var b=this;if(this.$BRPSearchHistorySearchSource$p_2.has(a.getUniqueID()))return;if(this.$BRPSearchHistorySearchSource$p_1.includes(function(c){return b.isEntryDuplicate(a,c)}))return;this.$BRPSearchHistorySearchSource$p_2.set(a.getUniqueID(),a);var c=this.$BRPSearchHistorySearchSource$p_1.findIndex(function(b){return a.getOrder()>b.getOrder()});this.$BRPSearchHistorySearchSource$p_1.splice(c,0,a);this.$BRPSearchHistorySearchSource$p_1=this.$BRPSearchHistorySearchSource$p_1.filter(function(c){return!b.isEntryDuplicate(c,a)})};e.removeEntry=function(a){if(!this.containsEntry(a))return;var b=a.getUniqueID();this.$BRPSearchHistorySearchSource$p_2["delete"](b);this.$BRPSearchHistorySearchSource$p_1=this.$BRPSearchHistorySearchSource$p_1.filter(function(a){return a.getUniqueID()!==b})};e.containsEntry=function(a){return this.$BRPSearchHistorySearchSource$p_2.has(a.getUniqueID())};e.isEntryDuplicate=function(a,b){var c=a.getAuxiliaryData(),d=c.searchText;c=c.searchMethod;var e=b.getAuxiliaryData(),f=e.searchText;e=e.searchMethod;a=a.getOrder();b=b.getOrder();return d.toLowerCase()===f.toLowerCase()&&c===e&&a-----
BRPOnboardStepperContentAllowedAssetsSetting.react",["fbt","BRPAllowlistAccountSearchSource.react","BRPAllowlistIGAccountSearchSource.react","BRPApplicationUtils","BRPHomePageOnboardContainer.react","BRPOnboardStepperContentAllowedAssetsSettingAddMutation.graphql","BRPOnboardStepperContentAllowedAssetsSettingDeleteMutation.graphql","CurrentBusinessUser","FlexLayout.react","GeoButton.react","GeoHeading.react","GeoText.react","GeoTokenizer.react","GeoTokenizerToken.react","RelayHooks","SearchSourceQueryStatus","geoMargin","react","stylex","useBRPIPReviewers"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m=l||(l=d("react"));e=l;var n=e.useContext,o=e.useEffect,p=e.useMemo,q=e.useState;function a(a){var b=a.dispatchOverrideCompletedSteps;a=n(d("BRPHomePageOnboardContainer.react").OnboardStepContext);var e=a.step,f=a.setStep;a=p(function(){return new(c("BRPAllowlistAccountSearchSource.react"))()},[]);var g=q([]),i=g[0];g=g[1];var j=p(function(){return new(c("BRPAllowlistIGAccountSearchSource.react"))()},[]),l=q([]),t=l[0];l=l[1];var u=d("useBRPIPReviewers").useBRPIPReviewers().some(function(a){return a.id===c("CurrentBusinessUser").business_user_id});o(function(){i.length+t.length>0?b({action:"ADD",entry:"ALLOWED_ASSET_REFERENCE_SETTING"}):b({action:"REMOVE",entry:"ALLOWED_ASSET_REFERENCE_SETTING"})},[i,t]);return m.jsxs("div",{children:[m.jsxs("div",{children:[m.jsx(c("GeoHeading.react"),{level:2,children:h._("u628au5e10u6237u52a0u5165u767du540du5355 - u63a8u8350")}),m.jsx(c("GeoText.react"),{children:h._("u4f60u6dfbu52a0u7684u5e10u6237u5c06u4eceu641cu7d22u7ed3u679cu4e2du6392u9664uff0cu5176u5185u5bb9u5982u88abu4e3eu62a5u4fb5u6743uff0cu5219u4e0du4f1au88abu91c7u53d6u4efbu4f55u63aau65bdu3002u8fd9u4e9bu5e10u6237u7684u5185u5bb9u4e5fu4e0du4f1au7528u4f5cu68c0u6d4bu5339u914du5e7fu544au7684u53c2u7167u3002u4f60u53efu4ee5u968fu65f6u66f4u65b0u8fd9u4e2au5217u8868u3002")}),m.jsx(r,{}),m.jsx(s,{label:h._("u8981u52a0u5165u767du540du5355u7684 Facebook u516cu5171u4e3bu9875"),placeholder:h._("u641cu7d22 Facebook u516cu5171u4e3bu9875..."),entries:i,setEntries:g,searchSource:a}),m.jsx(r,{}),m.jsx(s,{label:h._("u8981u52a0u5165u767du540du5355u7684 Instagram u4e3bu9875"),placeholder:h._("Search for Instagram profile..."),entries:t,setEntries:l,searchSource:j})]}),m.jsx(c("FlexLayout.react"),{justify:"end",className:(k||(k=c("stylex")))(c("geoMargin").top24),children:m.jsx(c("GeoButton.react"),{label:h._("u5b8cu6210"),variant:"primary",xstyle:c("geoMargin").top24,isDisabled:!u,onClick:function(){return f(d("BRPApplicationUtils").getNextOnboardingStep(e))}})})]})}a.displayName=a.name+" [from "+f.id+"]";function r(){return m.jsx("div",{className:(k||(k=c("stylex")))(c("geoMargin").vert24)})}r.displayName=r.name+" [from "+f.id+"]";function s(a){var e=a.entries,f=a.label,g=a.placeholder,k=a.searchSource;a=a.setEntries;var l=q(!1),n=l[0],o=l[1];l=d("RelayHooks").useMutation(i!==void 0?i:i=b("BRPOnboardStepperContentAllowedAssetsSettingDeleteMutation.graphql"));var p=l[0];l=d("RelayHooks").useMutation(j!==void 0?j:j=b("BRPOnboardStepperContentAllowedAssetsSettingAddMutation.graphql"));var r=l[0];l=function(a){r({variables:{allowlist_ids:[a.getUniqueID()]}})};var s=function(a){p({variables:{entity_id:a.getUniqueID()}})};return m.jsx(c("GeoTokenizer.react"),{label:f,placeholder:g,isPlaceholderPersistent:!0,emptySearchResultsContent:h._("u627eu4e0du5230u7ed3u679cuff0cu8bf7u8bd5u8bd5u5176u4ed6u5173u952eu8bcdu3002"),tokenRenderer:function(a){return m.jsx(c("GeoTokenizerToken.react"),{media:a.getPhoto()})},onChange:a,searchSource:k,value:e,isLoading:n,onSearch:function(){return o(!0)},onEntriesFound:function(a,b){return o(b!==d("SearchSourceQueryStatus").COMPLETE)},onNoEntriesFound:function(){return o(!1)},onAddEntry:l,onRemoveEntry:s})}s.displayName=s.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
PlaceTopicsSearchSource",["AbstractSearchSource","AdsGraphAPI","GraphAPIPaging","SearchSourceQueryStatus","SearchableEntry","nullthrows","partitionArray","promiseDone","sortBy"],(function(a,b,c,d,e,f,g){"use strict";function h(a,b){var d=b.toLocaleLowerCase();b=a.filter(function(a){return a.getTitle().toLocaleLowerCase().includes(d)});a=c("partitionArray")(b,function(a){return a.getTitle().toLocaleLowerCase()===d});b=a[0];a=a[1];return b.concat(a)}function i(a){var b=[];for(var d=0;d-----
LMLocationBreakdownSearchSource",["fbt","AbstractSearchSource","AdsGraphAPI","GraphAPIPaging","SearchSourceQueryStatus","SearchableEntry","filterNulls","formatNumber","intlList","memoizeWithArgs","nullthrows","promiseDone"],(function(a,b,c,d,e,f,g,h){"use strict";var i=function(b){babelHelpers.inheritsLoose(a,b);a.get=function(a,b){return n(a,b)};function a(a,c){var d;d=b.call(this)||this;d.$LMLocationBreakdownSearchSource$p_1=null;d.$LMLocationBreakdownSearchSource$p_2=a;d.$LMLocationBreakdownSearchSource$p_3=c;return d}var e=a.prototype;e.bootstrapImpl=function(a){this.$LMLocationBreakdownSearchSource$p_1=m(this.$LMLocationBreakdownSearchSource$p_2,this.$LMLocationBreakdownSearchSource$p_3),c("promiseDone")(this.$LMLocationBreakdownSearchSource$p_1,a,a)};e.searchImpl=function(a,b,e){c("promiseDone")(c("nullthrows")(this.$LMLocationBreakdownSearchSource$p_1),function(c){return b(l(c,a),a,d("SearchSourceQueryStatus").COMPLETE)})};return a}(c("AbstractSearchSource"));function j(a,b){return a.getTitle().toLocaleLowerCase().startsWith(b)?1:0}function k(a,b,c){var d=j(a,c);c=j(b,c);return d!==c?c-d:a.getTitle().toLocaleLowerCase().localeCompare(b.getTitle().toLocaleLowerCase())}function l(a,b){b=b.toLocaleLowerCase();return a.filter(function(a){return a.getTitle().toLocaleLowerCase().includes(b)}).sort(function(a,c){return k(a,c,b)})}var m=function(a,b){return d("AdsGraphAPI").get(f.id).object("page",a).edge("locations_breakdown").get({limit:5e3,type:b}).then(d("GraphAPIPaging").allPages()).then(function(a){return a.data.filter(function(a){return!!a.location_name}).map(function(a){return new(c("SearchableEntry"))({auxiliaryData:a,title:o(a),uniqueID:a.location_id})})})},n=c("memoizeWithArgs")(function(a,b){a=new i(a,b);a.bootstrap();return a},function(a,b){return a+":"+b}),o=function(a){var b=c("filterNulls")([a.location_name,a.parent_region_name,a.parent_country_code]);b=c("intlList")(b,c("intlList").CONJUNCTIONS.NONE);return h._("{city/state/country name} ({location count})",[h._param("city/state/country name",b),h._param("location count",c("formatNumber").withThousandDelimiters(a.num_pages+a.num_unpublished_or_closed_pages))])};g["default"]=i}),226);
-----
AdsTargetingTypeaheadScenarioHelper",["AdsPerfInteractionsController","SearchSourceQueryStatus","debounce","promiseDone","waitForDoubleRAF"],(function(a,b,c,d,e,f,g){"use strict";var h=500,i=d("SearchSourceQueryStatus").ACTIVE,j=c("debounce")(function(a,b){if(i!==d("SearchSourceQueryStatus").COMPLETE){c("AdsPerfInteractionsController").startInteraction(a,(a=b)!=null?a:f.id)}},h);function a(a,b){i=d("SearchSourceQueryStatus").ACTIVE,j(a,b)}function b(){c("promiseDone")(c("waitForDoubleRAF")(),function(){i=d("SearchSourceQueryStatus").COMPLETE})}function e(){i=d("SearchSourceQueryStatus").COMPLETE}g.startInteraction=a;g.searchResultsLoaded=b;g.searchFailed=e}),98);
-----
DynamicSearchSource",["AbstractSearchSource","SearchSourceCallbackManager","SearchSourceQueryStatus","TokenizeUtil"],(function(a,b,c,d,e,f,g){"use strict";a=function(a){babelHelpers.inheritsLoose(b,a);function b(b,d,e){var f;f=a.call(this)||this;f.$DynamicSearchSource$p_2=b;f.$DynamicSearchSource$p_1=new(c("SearchSourceCallbackManager"))({parseFn:c("TokenizeUtil").parse,matchFn:c("TokenizeUtil").isQueryMatch,indexFn:d});f.$DynamicSearchSource$p_3=e;f.$DynamicSearchSource$p_1.addLocalEntries(f.$DynamicSearchSource$p_2);return f}var e=b.prototype;e.replaceSearchEntries=function(a){this.$DynamicSearchSource$p_2=a,this.$DynamicSearchSource$p_1.reset(),this.$DynamicSearchSource$p_1.addLocalEntries(this.$DynamicSearchSource$p_2)};e.searchImpl=function(a,b,c){c=c||this.$DynamicSearchSource$p_3;(c==null?void 0:c.setQueryStringAsExhausted)&&this.$DynamicSearchSource$p_1.setQueryStringAsExhausted(a);!a?b(this.$DynamicSearchSource$p_2,a,(c==null?void 0:c.setQueryStringAsExhausted)?d("SearchSourceQueryStatus").COMPLETE:void 0):this.$DynamicSearchSource$p_1.search(a,b)};return b}(c("AbstractSearchSource"));g["default"]=a}),98);
-----
RegexMatchSearchSource",["AbstractSearchSource","SearchSourceQueryStatus","SearchableEntry"],(function(a,b,c,d,e,f,g){a=function(a){babelHelpers.inheritsLoose(b,a);function b(b,c,d){var e;e=a.call(this)||this;e.$RegexMatchSearchSource2=new RegExp(b);e.$RegexMatchSearchSource3=c||"";e.$RegexMatchSearchSource1=d||{};return e}var e=b.prototype;e.searchImpl=function(a,b,e){if(a&&this.$RegexMatchSearchSource2.test(a)){e=new(c("SearchableEntry"))({uniqueID:a,title:a,type:this.$RegexMatchSearchSource3,auxiliaryData:babelHelpers["extends"]({},this.$RegexMatchSearchSource1,{isRegexEntry:!0})});b([e],a,d("SearchSourceQueryStatus").COMPLETE);return}b([],a,d("SearchSourceQueryStatus").COMPLETE)};return b}(c("AbstractSearchSource"));g["default"]=a}),98);
-----
AdsProductItemPropertySearchSource",["AbstractSearchSource","AdsDynamicPreviewGraphAPIUtils","AdsGraphAPI","CatalogItemTypeUtils","DynamicItemsTableUtils","Promise","SearchSourceQueryStatus","SearchableEntry","TokenizeUtil","getDynamicItemSetFieldConfig","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h,i=new Map();function j(a,b){var c=a.getOrder(),d=b.getOrder();return c===d?a.getTitle()>b.getTitle()?1:-1:c>d?1:-1}a=function(a){babelHelpers.inheritsLoose(e,a);e.getInstance=function(a,b,c,d,f,g,h){var j=e.getInstanceID(a,b,c,d,f,g,h);i.has(j)||i.set(j,new e(a,b,c,d,f,g,h));return i.get(j)};e.getInstanceID=function(a,b,c,d,e,f,g){a=a+"_"+b+"_"+d;c&&(a+="_includeQueryString");e&&(a+="_"+e);f&&(a+="_"+f);g&&(a+="_"+g.toString());return a};function e(b,c,d,e,f,g,h){var i;i=a.call(this)||this;i.$AdsProductItemPropertySearchSource$p_2=new Map();i.productCatalogID=b;i.property=c;i.includeQueryString=d;i.catalogItemType=e;i.wcaOperator=f;i.limit=g;i.isProductReturns=h;i.$AdsProductItemPropertySearchSource$p_1=new Map();return i}var g=e.prototype;g.bootstrapImpl=function(a){this.search("",a)};g.searchImpl=function(a,e,g){var i=this;if(this.$AdsProductItemPropertySearchSource$p_1.has(a)){e(this.$AdsProductItemPropertySearchSource$p_1.get(a),a,d("SearchSourceQueryStatus").COMPLETE);return}e([],a,d("SearchSourceQueryStatus").ACTIVE);g=this.$AdsProductItemPropertySearchSource$p_2.get(a)||[];g.push(e);this.$AdsProductItemPropertySearchSource$p_2.set(a,g);if(g.length>1)return;var k=function(b){var e=[],f={},g=function(d){var g=i.$AdsProductItemPropertySearchSource$p_3(b[d]);g&&g.forEach(function(h){if(!h||f[h])return;g=new(c("SearchableEntry"))({uniqueID:h,title:h,order:i.$AdsProductItemPropertySearchSource$p_4(a,h),auxiliaryData:b[d]});e.push(g);f[h]=!0})};for(var h=0;h-----
BUIBaseTypeahead.react",["cx","ix","BUIAbstractTypeahead.react","BUICloseButton.react","BUIFormUtils","BUIMultiElementLayoutContext","BUIPrivateDisabledContext","BUIPrivateInputSelectors","BUIPrivateLoggingAction","BUIPrivateLoggingClassification","BUIPrivateSizeContext","BUIPrivateThemeContext.react","BUIPrivateThemeUtils","BUIPrivateWithLoggingProvider.react","BUISpinner_DEPRECATED.react","BUITypeaheadContext","BUITypeaheadPresenter.react","Image.react","SearchSourceQueryStatus","isStringNullOrEmpty","makeBUIStandardComponent","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||d("react");a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,c;for(var e=arguments.length,f=new Array(e),g=0;g-----
AdsUnifiedFlexibleTargetingDataSource",["AbstractSearchSource","AdAccountTargetingUnifiedNodeDefaultFieldsStatic","AdsGraphAPI","AdsPerfInteractionsController","AdsUnifiedFlexibleTargetingDataSourceUtils","AdsUnifiedFlexibleTargetingSearchableEntry","SearchSourceQueryStatus","debounce","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h={};a=function(a){babelHelpers.inheritsLoose(b,a);function b(b,e,g,h,i,j,k,l,m,n,o,p,q,r){var s;e===void 0&&(e=null);h===void 0&&(h=null);i===void 0&&(i=null);j===void 0&&(j=!1);k===void 0&&(k=!1);l===void 0&&(l=!1);m===void 0&&(m=!1);n===void 0&&(n=[]);o===void 0&&(o=null);p===void 0&&(p=null);q===void 0&&(q=null);r===void 0&&(r=[]);s=a.call(this)||this;s.$AdsUnifiedFlexibleTargetingDataSource$p_1=function(a,b,e){if(!a){b([],a,d("SearchSourceQueryStatus").COMPLETE);return}var g=0,h=[];e&&e.sessionID&&e.targetingList&&(g=e.sessionID,h=e.targetingList,e=void 0);g={accountId:s.accountID,q:a,whitelisted_types:s.whitelistedTypes,excluded_category:s.excludedCategory,countries:s.countries,session_id:g,targeting_list:h,is_exclusion:s.isExclusion,is_account_level_brand_safety_exclusion:s.isAccountLevelBrandSafetyExclusion,is_account_level_employer_exclusion:s.isAccountLevelEmployerExclusion,fields:c("AdAccountTargetingUnifiedNodeDefaultFieldsStatic").fields.concat("is_recommendation","recommendation_model","search_interest_id"),allow_only_fat_head_interests:s.allowOnlyFatHeadInterests,regulated_categories:s.regulatedCategories,objective:s.objective,promoted_object:s.promotedObject,app_store:s.selectedAppStore,regulated_countries:s.regulatedCountries};h=e&&e.type?e.type:null;h!==null&&(g.limit_type=h);s.provideDataFunc?s.provideDataFunc(function(c){return s.$AdsUnifiedFlexibleTargetingDataSource$p_2(b,a,e,c)},g):c("promiseDone")(d("AdsGraphAPI").get(f.id).adaccount(s.accountID).edge("targetingsearch").get(g),function(c){return s.$AdsUnifiedFlexibleTargetingDataSource$p_2(b,a,e,c.data)},function(a){c("AdsPerfInteractionsController").annotateFailure("am.editor_typeahead.targeting",f.id,{error:a,errorContext:{errorCode:a==null?void 0:a.code}})})};s.accountID=b;s.whitelistedTypes=e;s.searchImpl=c("debounce")(s.$AdsUnifiedFlexibleTargetingDataSource$p_1,250,babelHelpers.assertThisInitialized(s));s.provideDataFunc=h;s.excludedCategory=g;s.countries=i;s.isExclusion=j;s.isAccountLevelBrandSafetyExclusion=k;s.isAccountLevelEmployerExclusion=l;s.allowOnlyFatHeadInterests=!!m;s.regulatedCategories=n;s.objective=o;s.promotedObject=p;s.selectedAppStore=q;s.regulatedCountries=r;return s}var e=b.prototype;e.$AdsUnifiedFlexibleTargetingDataSource$p_2=function(a,b,e,f){f=f.map(function(a){return new(c("AdsUnifiedFlexibleTargetingSearchableEntry"))({uniqueID:a.type+"."+a.id,title:a.name,name:a.name,id:a.id,type:a.type,description:a.description,reach:a.audience_size,reach_lower_bound:a.audience_size_lower_bound,reach_upper_bound:a.audience_size_upper_bound,source:a.source,path:a.path,key:a.key,query:b,partner:a.partner,extraData:a.extraData,isRecommendation:a.is_recommendation,recommendationModel:a.recommendation_model,searchInterestID:a.search_interest_id,searchOptions:e})});f=d("AdsUnifiedFlexibleTargetingDataSourceUtils").excludeCategoryForDataSource(this.excludedCategory,f);a(f,b,d("SearchSourceQueryStatus").COMPLETE)};b.getInstance=function(a,c,d,e,f,g,i,j,k){var l;c===void 0&&(c=null);e===void 0&&(e=null);f===void 0&&(f=[]);g===void 0&&(g=null);i===void 0&&(i=null);j===void 0&&(j=null);k===void 0&&(k=[]);var m=i||{},n=m.page_id,o=m.application_id;m=m.object_store_url;l=[a,d,(l=e)==null?void 0:l.toString(),f.toString(),g,n,o,m,j,k.toString()].join("");h[l]||(h[l]=new b(a,c,d,null,e,!1,!1,!1,!1,f,g,i,j,k));return h[l]};b.getInstanceForExclusion=function(a,c,d,e,f,g,i,j,k){var l;c===void 0&&(c=null);e===void 0&&(e=null);f===void 0&&(f=[]);g===void 0&&(g=null);i===void 0&&(i=null);j===void 0&&(j=null);k===void 0&&(k=[]);var m=i||{},n=m.page_id,o=m.application_id;m=m.object_store_url;l=[a,d,(l=e)==null?void 0:l.toString(),"exclusion",f.toString(),g,n,o,m,j,k.toString()].join("");h[l]||(h[l]=new b(a,c,d,null,e,!0,!1,!1,!1,f,g,i,j,k));return h[l]};b.getInstanceForAccountLevelBrandSafetyExclusion=function(a,c,d,e,f,g,i,j,k){var l;e===void 0&&(e=null);f===void 0&&(f=[]);g===void 0&&(g=null);i===void 0&&(i=null);j===void 0&&(j=null);k===void 0&&(k=[]);var m=i||{},n=m.page_id,o=m.application_id;m=m.object_store_url;l=[a,d,(l=e)==null?void 0:l.toString(),"AccountLevelBrandSafetyExclusion",f.toString(),g,n,o,m,j,k.toString()].join("");h[l]||(h[l]=new b(a,c,d,null,e,!0,!0,!1,!1,f,g,i,j,k));return h[l]};b.getInstanceForAccountLevelEmployerExclusion=function(a,c,d,e,f,g,i,j,k){var l;e===void 0&&(e=null);f===void 0&&(f=[]);g===void 0&&(g=null);i===void 0&&(i=null);j===void 0&&(j=null);k===void 0&&(k=[]);var m=i||{},n=m.page_id,o=m.application_id;m=m.object_store_url;l=[a,d,(l=e)==null?void 0:l.toString(),"AccountLevelEmployerExclusion",f.toString(),g,n,o,m,j,k.toString()].join("");h[l]||(h[l]=new b(a,c,d,null,e,!0,!1,!0,!1,f,g,i,j,k));return h[l]};return b}(c("AbstractSearchSource"));g["default"]=a}),98);
-----
SUIInlineTypeahead.react",["cx","AbstractTypeahead.react","DangerouslyAccessReactElementInternals_DO_NOT_USE_IN_NEW_CODE","SUISpinner.react","SUITheme","SUITokenizerItemList.react","SUITypeaheadNavigation","SearchSourceQueryStatus","createObjectFrom","isNullOrZero","joinClasses","react","withSUITheme"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");a=1e3;b={allowShowingSpinner:!1,areCategoriesCollapsible:!1,hasCategories:!1,hideSingleCategory:!1,shouldVirtualize:!0,shouldWrapSubtitle:!1,maxEntries:a};var k={queryString:"",isSearching:!1};e=function(a){babelHelpers.inheritsLoose(b,a);function b(b){var e;e=a.call(this,b)||this;e.$1=j.createRef();e.$2=!1;e.$4=j.createRef();e.$6=function(a){e.props.hasCategories&&e.props.areCategoriesCollapsible&&e.$4.current!=null&&a!=null&&e.$4.current.expandCategoryForEntry(a)};e.$7=function(){e.$2&&e.setState({isSearching:!0})};e.$8=function(a){a=a.target.value;e.setState({queryString:a});e.props.onQueryChange&&e.props.onQueryChange(a)};e.$9=function(a,b){b.stopPropagation(),e.props.onRemoveSearchResult&&e.props.onRemoveSearchResult(a)};e.$10=function(a){if(e.$5(a))return;e.props.onChange(a);e.$2&&e.setState({queryString:""})};e.$11=function(a,b){b===d("SearchSourceQueryStatus").COMPLETE&&e.setState({isSearching:!1}),e.props.onEntriesFound&&e.props.onEntriesFound(a)};e.$12=function(a){e.setState({isSearching:!1}),e.props.onNoEntriesFound&&e.props.onNoEntriesFound()};e.$5=function(a){var b=e.props,c=b.disabledEntryIDs;b=b.getDisableStateForEntry;c=c?c.has(a.getUniqueID()):!1;b&&(c=c||b(a));return c};e.state=k;e.$3=new(c("SUITypeaheadNavigation"))(e.$5,e.$6);return e}var e=b.prototype;e.componentDidMount=function(){this.$2=!0};e.componentWillUnmount=function(){this.$2=!1};e.focusInput=function(){this.$1.current&&this.$1.current.focusInput()};e.render=function(){var a=c("SUITheme").get(this).SUIInlineTypeahead,b=a.searchIcon,d=this.state.isSearching&&this.props.allowShowingSpinner;return j.jsxs("div",{className:c("joinClasses")(this.props.className,"_1vdu"),"data-testid":void 0,style:this.props.style,children:[j.jsx(c("AbstractTypeahead.react"),{additionalElements:this.props.additionalElements,ariaLabel:this.props.ariaLabel,autoHighlight:!0,"data-testid":void 0,excludedEntries:this.props.excludedEntryIDs?c("createObjectFrom")(Array.from(this.props.excludedEntryIDs)):void 0,hideViewWithEntries:!1,inputClassName:"_1vdv"+(d?" _35mr":""),inputRightChild:d?j.jsx(c("SUISpinner.react"),{className:"_35ms"}):null,inputStyle:a.inputTextColor!=null?{color:a.inputTextColor}:void 0,navigation:this.$3,onBlur:this.props.onBlur,onChange:this.$8,onEntriesFound:this.$11,onFocus:this.props.onFocus,onNoEntriesFound:this.$12,onSearch:this.$7,onSelectAttempt:this.$10,placeholder:this.props.placeholder,presenter:{ViewRenderer:c("SUITokenizerItemList.react"),alwaysVisibleOnFocus:this.props.emptySearchResultsContent!=null||this.props.beforeSearchResults!=null,extraRendererProps:{areCategoriesCollapsible:this.props.areCategoriesCollapsible,initiallyExpandedCategories:this.props.initiallyExpandedCategories,categoriesCompare:this.props.categoriesCompare,categoryItemCompare:this.props.categoryItemCompare,categoryHeader:this.props.categoryHeader,getCategoryHeaderProps:this.props.getCategoryHeaderProps,getCategorizedItems:this.props.getCategorizedItems,getLabelStyleForEntry:this.props.getLabelStyleForEntry,getLeftContentForEntry:this.props.getLeftContentForEntry,getRightContentForEntry:this.props.getRightContentForEntry,getSubtitleContentForEntry:this.props.getSubtitleContentForEntry,getTooltipInfo:this.props.getTooltipForEntry,hasCategories:this.props.hasCategories,hideSingleCategory:this.props.hideSingleCategory,isDisabledEntry:this.$5,emptySearchResultsContent:this.props.emptySearchResultsContent,customHeader:this.props.beforeSearchResults,onEndOfListReached:this.props.onEndOfListReached,onRemoveSearchResult:this.props.onRemoveSearchResult?this.$9:null,scrollToSelectionOnFirstRender:this.props.scrollToSelectionOnFirstRender,selectedEntries:this.props.selectedEntries,shouldContainWheelEvent:!0,shouldVirtualize:this.props.shouldVirtualize,shouldWrapSubtitle:this.props.shouldWrapSubtitle,style:{borderTop:"1px solid "+a.dividerBorderColor},theme:c("SUITheme").get(this),listMaxHeight:c("isNullOrZero")(this.props.maxListHeight)?null:this.props.maxListHeight,ref:this.$4},maxEntries:this.props.maxEntries,useLayer:!1},queryString:this.state.queryString,ref:this.$1,scrollIntoViewOnHighlight:!this.props.shouldVirtualize,scrollToSelectionOnFirstRender:this.props.scrollToSelectionOnFirstRender,searchSource:this.props.searchSource,searchSourceOptions:this.props.searchSourceOptions,selectOnBlur:!1,selectedEntries:this.props.selectedEntries||void 0,selectedEntry:this.props.selectedEntry||void 0,showEntriesOnFocus:!0}),j.cloneElement(b,{className:c("joinClasses")("_1vdw",l(b))})]})};return b}(j.PureComponent);e.defaultProps=b;function l(a){a=c("DangerouslyAccessReactElementInternals_DO_NOT_USE_IN_NEW_CODE")(a);a=a.props;return a!=null&&typeof a==="object"&&typeof a.className==="string"?a.className:null}f=c("withSUITheme")(e);g["default"]=f}),98);
-----
PagintaionSearchSourceCallbackManager",["SearchSourceQueryStatus","immutable"],(function(a,b,c,d,e,f,g){a=function(){function a(a){this.$4=a.parseFn,this.$3=a.matchFn,this.reset()}var b=a.prototype;b.reset=function(){this.$1={},this.$2={}};b.search=function(a,b,c){var e=this,f=this.$5(a);c=c===!0?d("SearchSourceQueryStatus").ACTIVE:d("SearchSourceQueryStatus").COMPLETE;if(f.size===0){b([],a,c);return}f=f.map(function(a){return e.$1[a]}).toArray();b(f,a,c)};b.addQueryEntries=function(a,b,c){var d=this;a.forEach(function(a){var b=a.getUniqueID();d.$1[b]=a});var e=this.$4(b).flatValue;this.$2[e]=this.$5(e).union(a.map(function(a){return a.getUniqueID()}));this.search(b,c)};b.$5=function(a){var b=this.$4(a).flatValue;if(Object.prototype.hasOwnProperty.call(this.$2,b))return this.$2[b];var c=this.$6(b);a=this.$7(a,c);this.$2[b]=a;return a};b.$6=function(a){var b=-1,d=null;Object.keys(this.$2).forEach(function(c){a.startsWith(c)&&c.length>b&&(b=c.length,d=c)});return d&&Object.prototype.hasOwnProperty.call(this.$2,d)?this.$2[d]:c("immutable").OrderedSet([])};b.$7=function(a,b){var c=this;return b.filter(function(b){return c.$3(a,c.$1[b].getTitle())})};return a}();g["default"]=a}),98);
-----
FreeformSearchSource",["AbstractSearchSource","RegexMatchSearchSource","SearchSourceQueryStatus","SearchableEntry"],(function(a,b,c,d,e,f,g){a=function(a){babelHelpers.inheritsLoose(b,a);function b(b,d,e){var f;f=a.call(this)||this;f.$FreeformSearchSource$p_1=b;f.$FreeformSearchSource$p_2=new(c("RegexMatchSearchSource"))("\S+");f.$FreeformSearchSource$p_3=d;f.$FreeformSearchSource$p_4=e;return f}var e=b.prototype;e.getBootstrappedEntries=function(a){return this.$FreeformSearchSource$p_1.getBootstrappedEntries?this.$FreeformSearchSource$p_1.getBootstrappedEntries(a):null};e.bootstrapImpl=function(a){this.$FreeformSearchSource$p_1.bootstrapImpl(a)};e.validateQuery=function(a){return a.length>=this.$FreeformSearchSource$p_4};e.searchImpl=function(a,b,e){var f=this;this.$FreeformSearchSource$p_2.searchImpl(a,function(g,h){var i=[];g.length===1&&f.validateQuery(h)&&(i=[new(c("SearchableEntry"))({uniqueID:g[0].getUniqueID(),title:f.$FreeformSearchSource$p_3(g[0].getTitle().trim())})],b(i,a));f.$FreeformSearchSource$p_1.searchImpl(a,function(a,c){a.length>0&&b(a.concat(i),c,d("SearchSourceQueryStatus").COMPLETE)},e)},e)};return b}(c("AbstractSearchSource"));g["default"]=a}),98);
-----
AbstractTypeahead.react",["cx","ARIAComboboxNotify","ContextualLayer.react","Event","InputSelection","ReactLayeredComponentMixin_DEPRECATED","SearchSourceQueryStatus","SearchableTextInput.react","Style","TypeaheadNavigation","TypeaheadView.react","clearImmediate","createReactClass_DEPRECATED","getOrCreateDOMID","gkx","joinClasses","react","setImmediate","uniqueID"],(function(a,b,c,d,e,f,g,h){var i,j=i||d("react"),k=[],l=10;a=c("createReactClass_DEPRECATED")({displayName:"AbstractTypeahead",mixins:[d("ReactLayeredComponentMixin_DEPRECATED")],getDefaultProps:function(){return{autoComplete:"off",autoCorrect:"off",blurOnWindowBlur:!0,selectOnBlur:!1,selectOnTab:!0,selectOnSpace:!1,selectOnComma:!1,selectTextOnClick:!0,hideViewWithEntries:!0,hideViewWhenDisabled:!1,entriesWidthMatchContext:!0,navigation:d("TypeaheadNavigation"),isRightToLeft:!1,scrollIntoViewOnHighlight:!0}},getInitialState:function(){return{highlightedEntry:null,isArrowNavigation:!1,isAutoHighlight:!!this.props.autoHighlight,ariaActiveDescendantID:null,ariaControlleeID:c("uniqueID")(),activeEntries:null,focused:!!this.props.focusedOnInit,viewIsVisible:!!this.props.focusedOnInit,isQueryLoading:!1}},getHighlightedEntry:function(){return this.state.highlightedEntry},_getScrollingParent:function(a){if(this._scrollingParent==null){a=c("Style").getScrollParent(a);this._scrollingParent=a!==window?a:null}return this._scrollingParent},_ensureIsVisible:function(a){if(!this.props.scrollIntoViewOnHighlight||!a)return;if(a.scrollIntoViewIfNeeded){a.scrollIntoViewIfNeeded(!1);return}var b=this._getScrollingParent(a);if(b==null)return;var c=b.clientHeight,d=b.scrollTop;b=a.offsetTop-b.offsetTop;var e=a.clientHeight;bc+d&&a.scrollIntoView(!1)},_onRenderHighlight:function(a){var b=c("getOrCreateDOMID")(a),e=d("ARIAComboboxNotify").maybeNotifyHighlightedEntry(this.state.highlightedEntry);this._ensureIsVisible(a);this.setState({ariaActiveDescendantID:e?null:b})},_determineViewVisibility:function(a,b){if(!a)return!1;a=a.length>0&&(this.props.showEntriesOnFocus||this.props.queryString&&this.props.queryString.trim().length>0);return!!(b&&(this.props.presenter.alwaysVisibleOnFocus||a))},_onSearch:function(){this.props.onSearch&&this.props.onSearch(),this.state.isQueryLoading===!1&&this.setState({isQueryLoading:!0})},_onEntriesFound:function(a,b,c){if(!this.isMounted())return;c===d("SearchSourceQueryStatus").COMPLETE&&this.setState({isQueryLoading:!1});if(this.props.excludedEntries){var e=this.props.excludedEntries;a=a.filter(function(a){return!Object.prototype.hasOwnProperty.call(e,a.getUniqueID())||e[a.getUniqueID()]===!1})}this.props.entryFilter&&(a=a.filter(this.props.entryFilter));b=this.props.presenter;a=typeof b.sortEntries==="function"?b.sortEntries(a,this.state.activeEntries,this.props.queryString):a;var f=this.props.additionalEntries;f=f?f.length:0;f=a.slice(0,(b.maxEntries||l)-f);this.props.additionalEntries&&(f=f.concat(this.props.additionalEntries),a=typeof b.sortEntries==="function"?b.sortEntries(f,this.state.activeEntries,this.props.queryString):f,f=a.slice(0,b.maxEntries||l));a=this._determineViewVisibility(f,this.state.focused);d("ARIAComboboxNotify").notifyFoundEntries(f);if(!f.length){this.setState({ariaActiveDescendantID:null,activeEntries:f,highlightedEntry:null,isAutoHighlight:!!this.props.autoHighlight});this._setViewIsVisible(a);this.props.onNoEntriesFound&&c===d("SearchSourceQueryStatus").COMPLETE&&this.props.onNoEntriesFound();return}this.props.onEntriesFound&&this.props.onEntriesFound(f,c);b=this.state.highlightedEntry;c=b&&f.indexOf(b)!==-1;if(!this.props.autoHighlight){this.setState({activeEntries:f,highlightedEntry:c?b:null});a&&this._setViewIsVisible(!0);return}var g=this.props.selectedEntry||(this.props.selectedEntries&&this.props.selectedEntries.length>0?this.props.selectedEntries[0]:null);g=this.props.scrollToSelectionOnFirstRender&&g?g:f[0];var h=this.state.isAutoHighlight;h?b=g:(b=c?b:g,h=!c);this.setState({activeEntries:f,highlightedEntry:b,isAutoHighlight:h});a&&this._setViewIsVisible(!0)},_onSelectAttempt:function(a,b){b&&b.preventDefault();if(this.props.shouldSubmitSelectedEntry&&!this.props.shouldSubmitSelectedEntry(a))return;this.props.hideViewWithEntries&&this._close();a&&this.props.onSelectAttempt&&this.props.onSelectAttempt(a,b)},_onInputFocus:function(a){var b=this._determineViewVisibility(this.state.activeEntries,!0);b&&this._setViewIsVisible(!0);this.setState({focused:!0});this.props.onFocus&&this.props.onFocus(a)},_onInputBlurWindowSafe:function(a){var b=this,d=c("setImmediate")(function(){e.remove(),b._onInputBlur(a)}),e=c("Event").listen(window,"blur",function(){e.remove(),c("clearImmediate")(d)})},_onInputBlur:function(a){if(this.props.shouldCloseOnBlur&&!this.props.shouldCloseOnBlur(this.state.highlightedEntry))return;this.setState({focused:!1});this.props.hideViewWithEntries&&this._close();this.props.selectOnBlur&&(this.state.highlightedEntry?this._onSelectAttempt(this.state.highlightedEntry):this.props.onEnterWithoutSelection&&(this.props.onEnterWithoutSelection(),this._onSelectAttempt(null)));this.props.onBlur&&this.props.onBlur(a)},_onInputClick:function(a){var b=this.getTextFieldDOM(),c=d("InputSelection").get(b);c&&c.start==c.end&&this.props.selectTextOnClick&&b.select();this.props.onClick&&this.props.onClick(a,this._onEntriesFound)},_onViewMouseDown:function(a){a.preventDefault()},_onEscape:function(){this._close(),this.blurInput(),this.setState({focused:!1}),this.props.onEscape&&this.props.onEscape()},_onEnter:function(a){if(this.props.onEnterWithoutSelection&&(!this.state.viewIsVisible||!this.state.highlightedEntry)){this.props.onEnterWithoutSelection(a);return}if(!this.state.viewIsVisible)return;this._onSelectAttempt(this.state.highlightedEntry,a)},_onTab:function(a){this._onKeySelectAttempt(this.props.selectOnTab,a)},_onSpace:function(a){this._onKeySelectAttempt(this.props.selectOnSpace,a)},_onComma:function(a){this._onKeySelectAttempt(this.props.selectOnComma,a)},_onKeySelectAttempt:function(a,b){a&&this.state.viewIsVisible&&this._onSelectAttempt(this.state.highlightedEntry,b)},_onDownArrow:function(a){var b=this.props.navigation;b&&b.moveDown&&(a.preventDefault(),b.moveDown(this.state.activeEntries||k,this.state.highlightedEntry,this._setHighlight))},_onLeftArrow:function(a){var b=this.props.navigation;b&&b.moveLeft&&(a.preventDefault(),b.moveLeft(this.state.activeEntries||k,this.state.highlightedEntry,this._setHighlight))},_onRightArrow:function(a){var b=this.props.navigation;b&&b.moveRight&&(a.preventDefault(),b.moveRight(this.state.activeEntries||k,this.state.highlightedEntry,this._setHighlight))},_onUpArrow:function(a){var b=this.props.navigation;b&&b.moveUp&&(a.preventDefault(),b.moveUp(this.state.activeEntries||k,this.state.highlightedEntry,this._setHighlight))},_setHighlight:function(a){this.setState({highlightedEntry:a,isArrowNavigation:!0,isAutoHighlight:!a})},_onInputChange:function(a){this.props.onChange&&this.props.onChange(a),this._setViewIsVisible(this.state.focused&&(this.props.showEntriesOnFocus||a.target.value.trim().length>0)&&(this.props.presenter.alwaysVisibleOnFocus||this.state.activeEntries!=null&&this.state.activeEntries.length>0))},_onViewHighlight:function(a){this.setState({highlightedEntry:a,isArrowNavigation:!1,isAutoHighlight:!1})},_getView:function(){return j.jsx(c("TypeaheadView.react"),{className:this.props.viewClassName,Renderer:this.props.presenter.ViewRenderer,extraRendererProps:babelHelpers["extends"]({},this.props.presenter.extraRendererProps,{isArrowNavigation:this.state.isArrowNavigation,isRightToLeft:this.props.isRightToLeft}),highlightedEntry:this.state.highlightedEntry,selectedEntry:this.props.selectedEntry,searchSource:this.props.searchSource,onEntriesFound:this._onEntriesFound,isVisible:this.state.viewIsVisible,isQueryLoading:this.state.isQueryLoading,controlleeID:this.state.ariaControlleeID,onHighlight:this._onViewHighlight,onRenderHighlight:this._onRenderHighlight,onSelect:this._onSelectAttempt,entries:this.state.activeEntries||k,queryString:this.props.queryString,onMouseDown:this._onViewMouseDown,style:this.props.viewStyle})},_setViewIsVisible:function(a){a!==this.state.viewIsVisible&&(this.props.onTypeaheadVisibilityChanged&&this.props.onTypeaheadVisibilityChanged(a,this.state.activeEntries||k),this.setState({viewIsVisible:a}))},UNSAFE_componentWillReceiveProps:function(a){!a.queryString&&!this.props.showEntriesOnFocus&&this.clearActiveEntries()},componentDidUpdate:function(a,b){a=this._determineViewVisibility(this.state.activeEntries,this.state.focused);c("gkx")("24833")&&this.props.hideViewWhenDisabled&&this.props.disabled?this._setViewIsVisible(!1):a&&this._setViewIsVisible(!0);b.highlightedEntry!==this.state.highlightedEntry&&(this.props.onHighlight&&this.props.onHighlight(this.state.highlightedEntry))},componentWillUnmount:function(){this._scrollingParent=null},renderLayers:function(){var a=this;if(!this.props.presenter.useLayer)return{};var b=null,d=null;this.props.context?b=this.props.context:this.props.presenter.useRootAsContext&&this.refs.root?d=function(){return a.refs.root}:d=function(){return a.refs.input};var e=this.props.presenter,f=e.layerComponent||c("ContextualLayer.react");return{typeaheadView:j.jsx(f,{alignment:e.alignment,behaviors:e.layerBehaviors,containerWidthMatchContext:this.props.entriesWidthMatchContext,contextRef:d,layerRootRef:e.layerRootRef,scrollableAreaContext:e.scrollableAreaContext,context:b,"data-testid":void 0,offsetX:this.props.offsetX,offsetY:this.props.offsetY,position:e.layerPosition||"below",shown:this.state.viewIsVisible,shouldSetARIAProperties:!1,width:e.width,children:this._getView()})}},render:function(){var a=this.props.showSelection&&this.state.highlightedEntry?this.state.highlightedEntry.getTitle():null,b=this.state.activeEntries;b=!!(b&&b.length);b=j.jsx(c("SearchableTextInput.react"),{"aria-activedescendant":this.state.ariaActiveDescendantID,"aria-expanded":b,"aria-autocomplete":"list","aria-haspopup":"listbox","aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledby,"aria-controls":this.state.ariaControlleeID,"aria-invalid":this.props.ariaInvalid,"aria-errormessage":this.props.ariaErrorMessage,"data-testid":void 0,required:this.props.required,ref:"input",autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:this.props.inputClassName,id:this.props.inputID,name:this.props.name,queryString:this.props.queryString,placeholder:this.props.placeholder,leftChild:this.props.inputLeftChild,rightChild:this.props.inputRightChild,maxLength:this.props.maxLength,searchSource:this.props.searchSource,searchSourceOptions:this.props.searchSourceOptions,searchOnFocus:!!this.props.showEntriesOnFocus,searchValueModifier:this.props.searchValueModifier,disabled:this.props.disabled,onDownArrow:this._onDownArrow,onLeftArrow:this._onLeftArrow,onRightArrow:this._onRightArrow,onUpArrow:this._onUpArrow,onEntriesFound:this._onEntriesFound,onSearch:this._onSearch,onEscape:this._onEscape,onBlur:this.props.blurOnWindowBlur?this._onInputBlur:this._onInputBlurWindowSafe,onFocus:this._onInputFocus,onChange:this._onInputChange,onTab:this._onTab,onSpace:this._onSpace,onComma:this._onComma,onEnter:this._onEnter,onBackspace:this.props.onBackspace,onPaste:this.props.onPaste,onClick:this._onInputClick,style:this.props.inputStyle,styles:this.props.inputStyles,tabIndex:this.props.tabIndex,type:this.props.type,useLabel:this.props.inputUseLabel,hint:a,spellCheck:this.props.spellCheck,noDefaultStyling:this.props.inputNoDefaultStyling});a=babelHelpers["extends"]({},this.props);delete a.additionalElements;delete a.additionalEntries;delete a.ariaLabel;delete a.ariaLabelledby;delete a.ariaInvalid;delete a.ariaErrorMessage;delete a.context;delete a.focusAfterSelection;delete a.inputClassName;delete a.viewClassName;delete a.inputID;delete a.inputStyle;delete a.searchSource;delete a.searchSourceOptions;delete a.excludedEntries;delete a.presenter;delete a.onBackspace;delete a.onSelectAttempt;delete a.onEntriesFound;delete a.onNoEntriesFound;delete a.onEnterWithoutSelection;delete a.autoHighlight;delete a.showEntriesOnFocus;delete a.selectOnBlur;delete a.blurOnWindowBlur;delete a.selectOnTab;delete a.selectOnComma;delete a.selectOnSpace;delete a.focusedOnInit;delete a.hideViewWithEntries;delete a.hideViewWhenDisabled;delete a.disabled;delete a.entriesWidthMatchContext;delete a.selectedEntry;delete a.onTypeaheadVisibilityChanged;delete a.onPaste;delete a.navigation;delete a.type;delete a.tallInput;delete a.viewStyle;delete a.queryString;delete a.onClear;delete a.clearable;delete a.showPhoto;delete a.highlightOnSelect;delete a.maxEntries;delete a.textInputDataTestID;delete a.isRightToLeft;delete a["data-testid"];delete a.selectTextOnClick;return j.jsxs("span",babelHelpers["extends"]({},a,{className:c("joinClasses")(this.props.className,"_58ah"),ref:"root",onBlur:void 0,onChange:void 0,onClick:void 0,onFocus:void 0,tabIndex:void 0,children:[b,this.props.additionalElements,this.props.presenter.useLayer?null:this._getView()]}))},componentDidMount:function(){this.props.focusedOnInit&&this.focusInput(),this.state.highlightedEntry&&(this.props.onHighlight&&this.props.onHighlight(this.state.highlightedEntry))},clearActiveEntries:function(){this.setState({ariaActiveDescendantID:null,activeEntries:null,highlightedEntry:null})},search:function(a){this.refs.input.search(a)},focusInput:function(){var a=this.getTextFieldDOM();a.value&&d("InputSelection").set(a,a.value.length);this.refs.input.focusInput()},selectInput:function(){this.refs.input.selectInput()},blurInput:function(){this.refs.input.blur?this.refs.input.blur():this.refs.input.blurInput&&this.refs.input.blurInput()},hideView:function(){this._setViewIsVisible(!1)},_close:function(){this._setViewIsVisible(!1),this.clearActiveEntries()},getTextFieldDOM:function(){return this.refs.input.getTextFieldDOM()}});b=a;g["default"]=b}),98);
-----
SearchSourceQueryStatus",[],(function(a,b,c,d,e,f){a="ACTIVE";b="COMPLETE";f.ACTIVE=a;f.COMPLETE=b}),66);
-----
AbstractAsyncSearchSource",["AbstractSearchSource","SearchSourceCallbackManager","SearchSourceQueryStatus","SearchableEntry","TokenizeUtil","emptyFunction","isValidUniqueID"],(function(a,b,c,d,e,f,g){a=function(a){babelHelpers.inheritsLoose(b,a);function b(b,d,e){var f,g;g=a.call(this)||this;g.$AbstractAsyncSearchSource1=b.asyncErrorHandler||c("emptyFunction");g.$AbstractAsyncSearchSource2=b.auxiliaryFields;g.$AbstractAsyncSearchSource4=b.bootstrapRequests;g.$AbstractAsyncSearchSource7=b.getAllForEmptyQuery;g.$AbstractAsyncSearchSource8=b.getAllForBootstrapPrefix;g.$AbstractAsyncSearchSource9=b.bootstrapPrefix;g.$AbstractAsyncSearchSource11=b.packageFn||g.$AbstractAsyncSearchSource15;g.$AbstractAsyncSearchSource12=b.queryRequests;g.$AbstractAsyncSearchSource13=b.requestData||{};g.$AbstractAsyncSearchSource6=(f=b.entryModifier_USE_SPARINGLY)!=null?f:c("emptyFunction").thatReturnsArgument;g.$AbstractAsyncSearchSource3=[];g.$AbstractAsyncSearchSource5=new(c("SearchSourceCallbackManager"))({parseFn:(f=b.parseFn)!=null?f:c("TokenizeUtil").parse,matchFn:b.matchFn||c("TokenizeUtil").isQueryMatch,indexFn:b.indexFn,exclusions:b.exclusions});g.$AbstractAsyncSearchSource14=d;g.$AbstractAsyncSearchSource10=e;return g}var e=b.prototype;e.bootstrapImpl=function(a){var b=this,c=a;if(!this.$AbstractAsyncSearchSource4||!this.$AbstractAsyncSearchSource4.length){c();return}var d=this.$AbstractAsyncSearchSource4.length,e=0;this.$AbstractAsyncSearchSource4.forEach(function(a){b.$AbstractAsyncSearchSource16(b.$AbstractAsyncSearchSource13,a,function(a){a=a.map(function(a){return b.$AbstractAsyncSearchSource6(a)});b.$AbstractAsyncSearchSource5.addLocalEntries(a);b.$AbstractAsyncSearchSource3=b.$AbstractAsyncSearchSource3.concat(a);e++;c&&e===d&&(c(),c=null)})})};e.searchImpl=function(a,b,c){var e=this,f=this.$AbstractAsyncSearchSource9;if(this.$AbstractAsyncSearchSource7&&a===""||this.$AbstractAsyncSearchSource8&&a&&f&&a.trim().toLowerCase()===f.trim().toLowerCase()){this.getBootstrappedEntries(function(c){c=c.map(function(a){return e.$AbstractAsyncSearchSource6(a)});b(c,a,d("SearchSourceQueryStatus").COMPLETE)});return}var g=[],h={};f=this.$AbstractAsyncSearchSource5.search(a,function(f,a,i){if(c&&c.waitForAllResults&&i!==d("SearchSourceQueryStatus").COMPLETE)return;g.length===0?(g=f,g.forEach(function(a,b){h[a.getUniqueID()]=b})):(g=[].concat(g),f.forEach(function(a){a=e.$AbstractAsyncSearchSource6(a);var b=a.getUniqueID();if(!Object.prototype.hasOwnProperty.call(h,b)){var c=g.length;g.push(a);h[b]=c}else{c=h[b];c-----
SearchSourceCallbackManager",["invariant","SearchSourceQueryStatus","createObjectFrom","nullthrows"],(function(a,b,c,d,e,f,g,h){a=function(){function a(a){this.$9=a.parseFn,typeof this.$9==="function"||h(0,4065),this.$8=a.matchFn,typeof this.$8==="function"||h(0,4066),this.$2=a.alwaysPrefixMatch||!1,this.$6=a.indexFn||i,this.$4=a.exclusions||{},this.reset()}var b=a.prototype;b.search=function(a,b){var c=this.$13(a,b);if(c)return 0;this.$1.push({queryString:a,callback:b});c=this.$1.length-1;this.$10.push(c);return c};b.$13=function(a,b){var c=this,e=this.$14(a),f=!!this.$5[a];if(!e.length){b([],a,f?d("SearchSourceQueryStatus").COMPLETE:d("SearchSourceQueryStatus").ACTIVE);return f}e=e.map(function(a){return c.$3[a]});b(e,a,f?d("SearchSourceQueryStatus").COMPLETE:d("SearchSourceQueryStatus").ACTIVE);return f};b.$15=function(){var a=this.$10;this.$10=[];a.forEach(this.$16,this)};b.$16=function(a){var b=this.$1[a];if(!b)return;b=this.$13(b.queryString,b.callback);if(b){delete this.$1[a];return}this.$10.push(a)};b.reset=function(){this.$3={},this.$12={},this.$7={},this.$11={},this.$5={},this.$10=[],this.$1=[void 0]};b.addLocalEntries=function(a){var b=this;a.forEach(function(a){var c=a.getUniqueID(),d=b.$6(a);b.$3[c]=a;b.$12[c]=d;a=b.$9(d);a.tokens.forEach(function(a){Object.prototype.hasOwnProperty.call(b.$7,a)||(b.$7[a]={}),b.$7[a][c]=!0})});this.$15()};b.addQueryEntries=function(a,b,e){var f=this;e===d("SearchSourceQueryStatus").COMPLETE&&this.setQueryStringAsExhausted(b);e=this.$14(b);var g=this.$9(b).flatValue;this.$11[g]=c("createObjectFrom")(e,!0);a.forEach(function(a){var b=a.getUniqueID();f.$3[b]=a;f.$12[b]=f.$6(a);f.$11[g][b]=!0});this.$15()};b.unsubscribe=function(a){delete this.$1[a]};b.removeEntry=function(a){delete this.$3[a]};b.getAllEntriesMap=function(){return this.$3};b.setQueryStringAsExhausted=function(a){this.$5[a]=!0};b.unsetQueryStringAsExhausted=function(a){delete this.$5[a]};b.$14=function(a){var b=this,c=this.$17(a,this.$18(a));a=this.$17(a,this.$19(a));c=c.concat(a);var d={},e=[];c.forEach(function(a){d[a]==null&&b.$3[a]!=null&&b.$4[a]==null&&(e.push(a),d[a]=!0)});return e};b.$17=function(a,b){var c=this.$20(a,b),d=this.$3;function e(a,b){if(c[a]!==c[b])return c[a]?-1:1;a=d[a];b=d[b];if(a.getOrder()!==b.getOrder())return a.getOrder()-b.getOrder();var e=a.getTitle().length,f=b.getTitle().length;return e!==f?e-f:a.getUniqueID()-b.getUniqueID()}return b.sort(e).slice()};b.$20=function(a,b){var c=this,d={};b.forEach(function(b){d[b]=c.$8(a,c.$12[b])});return d};b.$18=function(a){var b=this,d=this.$9(a,this.$2),e=this.$2?c("nullthrows")(d.sortedTokens):d.tokens,f=e.length,g=d.isPrefixQuery?f-1:null,h={},i={},j={};d=!1;var k={},l=0;e.forEach(function(a,c){if(Object.prototype.hasOwnProperty.call(k,a))return;l++;k[a]=!0;for(var e in b.$7){var f=e===a&&!Object.prototype.hasOwnProperty.call(h,e),m=!1;f||(m=(b.$2||g===c)&&e.indexOf(a)===0);if(!f&&!m){Object.prototype.hasOwnProperty.call(h,e)||(d=!0);continue}e===a?(Object.prototype.hasOwnProperty.call(i,e)&&(d=!0),h[e]=!0):((Object.prototype.hasOwnProperty.call(h,e)||Object.prototype.hasOwnProperty.call(i,e))&&(d=!0),i[e]=!0);for(f in b.$7[e])(c===0||Object.prototype.hasOwnProperty.call(j,f)&&j[f]==l-1)&&(j[f]=l)}});e=Object.keys(j).filter(function(a){return j[a]==l});(d||lb||d===a)&&(b=d.length,c=d)});return c!=null&&Object.prototype.hasOwnProperty.call(d,c)?Object.keys(d[c]):[]};b.$21=function(a,b){var c=this;return b.filter(function(b){return c.$8(a,c.$12[b])})};return a}();function i(a){return[a.getTitle(),a.getKeywordString()].join(" ")}g["default"]=a}),98);
-----
MAbstractTypeahead.react",["cx","AlignedLayer.react","ReactDOMSelection","SearchSourceQueryStatus","SearchableTextInput.react","TypeaheadNavigation","TypeaheadView.react","getOrCreateDOMID","joinClasses","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");a=function(a){babelHelpers.inheritsLoose(b,a);function b(b){var e,f=Object.entries({autoComplete:"off",autoCorrect:"off",entriesWidthMatchContext:!0,hideViewWithEntries:!0,queryString:"",selectOnBlur:!1});for(var g=0;g0);e.props.onEntriesFound&&e.props.onEntriesFound(g);if(e.props.autoHighlight!==!0){e.setState(function(a){a=a.highlightedEntry;var b=a&&g.indexOf(a)!==-1;return{activeEntries:g,highlightedEntry:b===!0?a:null}});b&&e.$4(!0);return}e.setState(function(a){var b=a.highlightedEntry,c=b&&g.indexOf(b)!==-1;a=a.isAutoHighlight;a===!0?b=g[0]:(b=c===!0?b:g[0],a=!c);return{activeEntries:g,highlightedEntry:b,isAutoHighlight:a}});b&&e.$4(!0)};e.$5=function(){(e.state.activeEntries.length&&e.state.queryString!==null&&e.state.queryString!==void 0&&e.state.queryString.length>0||e.props.showEntriesOnFocus===!0)&&e.$4(!0),e.setState({focused:!0}),e.props.onFocus&&e.props.onFocus(new SyntheticFocusEvent())};e.$6=function(a){e.props.onBlur&&(!e.state.viewIsVisible||!e.state.highlightedEntry)&&e.props.onBlur(a),e.props.hideViewWithEntries!==!0&&(e.$4(!1),e.clearActiveEntries()),e.props.selectOnBlur===!0&&e.state.highlightedEntry&&e.props.onSelectAttempt!=null&&e.props.onSelectAttempt(e.state.highlightedEntry),e.setState({focused:!1}),e.props.onBlur&&e.props.onBlur(new SyntheticFocusEvent())};e.$7=function(){var a=e.getTextFieldDOM();if(a){var b=d("ReactDOMSelection").getOffsets(a);b&&b.start==b.end&&a.select()}e.props.onClick&&e.props.onClick(new SyntheticMouseEvent())};e.$8=function(a){if(e.props.onEnterWithoutSelection&&(!e.state.viewIsVisible||!e.state.highlightedEntry)){e.props.onEnterWithoutSelection(a);return}if(!e.state.viewIsVisible)return;if(!e.state.highlightedEntry){a.preventDefault();return}e.props.hideViewWithEntries!==!0&&e.$4(!1);e.props.onSelectAttempt!=null&&e.props.onSelectAttempt(e.state.highlightedEntry);a.preventDefault()};e.$10=function(a){e.$9(a)};e.$11=function(a){e.$9(a)};e.$12=function(a){e.$9(a)};e.$13=function(a){a.preventDefault(),d("TypeaheadNavigation").moveDown(e.state.activeEntries,e.state.highlightedEntry,e.$14)};e.$15=function(a){a.preventDefault(),d("TypeaheadNavigation").moveUp(e.state.activeEntries,e.state.highlightedEntry,e.$14)};e.$14=function(a){e.setState({highlightedEntry:a,isAutoHighlight:!a})};e.$16=function(a){e.props.onChange&&e.props.onChange(a),e.$4(e.state.focused&&(e.props.showEntriesOnFocus===!0||a.target.value.length>0)&&e.state.activeEntries.length>0)};e.$17=function(a){e.setState({highlightedEntry:a,isAutoHighlight:!1})};return e}var e=b.prototype;e.$9=function(a){this.state.viewIsVisible&&this.props.onSelectAttempt&&this.state.highlightedEntry&&(this.props.hideViewWithEntries!==!0&&(this.$4(!1),a.preventDefault()),this.props.onSelectAttempt(this.state.highlightedEntry))};e.$18=function(){return j.jsx(c("TypeaheadView.react"),{Renderer:this.props.presenter.ViewRenderer,extraRendererProps:this.props.presenter.extraRendererProps,highlightedEntry:this.state.highlightedEntry,selectedEntry:this.props.selectedEntry,isVisible:this.state.viewIsVisible,onHighlight:this.$17,onRenderHighlight:this.$2,onSelect:this.props.onSelectAttempt,entries:this.state.activeEntries,queryString:this.props.queryString})};e.$4=function(a){a!==this.state.viewIsVisible&&(this.props.onTypeaheadVisibilityChanged&&this.props.onTypeaheadVisibilityChanged(a),this.setState({viewIsVisible:a}))};e.UNSAFE_componentWillReceiveProps=function(a){(a.queryString==null||a.queryString.length==0)&&this.props.showEntriesOnFocus!==!0&&this.clearActiveEntries()};e.renderLayers=function(){var a=this;return!this.props.presenter.useLayer!==!0?null:j.jsx(c("AlignedLayer.react"),{align:"left",contextRef:function(){return a.$1.current},shown:this.state.viewIsVisible,children:this.$18()})};e.render=function(){var a=j.jsx(c("SearchableTextInput.react"),{"aria-activedescendant":this.state.activeDescendant,"aria-autocomplete":"list",ref:this.$1,autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:this.props.inputClassName,queryString:this.props.queryString||"",placeholder:this.props.placeholder,searchSource:this.props.searchSource,searchSourceOptions:this.props.searchSourceOptions,searchOnFocus:!!this.props.showEntriesOnFocus,style:this.props.inputStyle,disabled:this.props.disabled,onEntriesFound:this.$3,onBlur:this.$6,onFocus:this.$5,onChange:this.$16,onComma:this.$11,onDownArrow:this.$13,onUpArrow:this.$15,onTab:this.$10,onSpace:this.$12,onEnter:this.$8,onBackspace:this.props.onBackspace,onPaste:this.props.onPaste,onClick:this.$7,tabIndex:this.props.tabIndex}),b=null;this.props.presenter.useLayer!==!0&&(b=this.$18());var d=c("joinClasses")("_58ah",this.props.className),e=babelHelpers["extends"]({},this.props);delete e.queryString;delete e.showEntriesOnFocus;delete e.inputClassName;delete e.inputID;delete e.onSelectAttempt;delete e.onEnterWithoutSelection;delete e.hideViewWithEntries;delete e.entriesWidthMatchContext;delete e.selectedEntry;delete e.onTypeaheadVisibilityChanged;return[j.jsxs("span",babelHelpers["extends"]({},e,{className:c("joinClasses")(this.props.className,d),onBlur:null,onClick:null,onFocus:null,tabIndex:null,children:[a,b]})),this.renderLayers()]};e.componentDidMount=function(){if(this.props.focusedOnInit===!0){var a;(a=this.$1.current)==null?void 0:a.focusInput()}this.setState({mounted:!0})};e.componentWillUnmount=function(){this.setState({mounted:!1})};e.clearActiveEntries=function(){this.setState({activeDescendant:null,activeEntries:[],highlightedEntry:null})};e.focusInput=function(){var a;(a=this.$1.current)==null?void 0:a.focusInput()};e.blurInput=function(){var a;(a=this.$1.current)==null?void 0:a.blurInput()};e.hideView=function(){this.$4(!1)};e.search=function(a,b){var c;(c=this.$1.current)==null?void 0:c.search(a,b)};e.getTextFieldDOM=function(){var a;return(a=this.$1.current)==null?void 0:a.getTextFieldDOM()};return b}(j.Component);g["default"]=a}),98);
-----
MBSNavigationKeywordsSearchSource",["AbstractRelaySearchSource","MBSNavigationKeywordsSearchSourceQuery.graphql","MBSNavigationSearchUtils","SearchSourceQueryStatus"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h!==void 0?h:h=b("MBSNavigationKeywordsSearchSourceQuery.graphql");function j(a){var b;b=(b=a.viewer)==null?void 0:(b=b.bizkit_scoping)==null?void 0:b.global_search_navigation_items;a=(a=a.viewer)==null?void 0:(a=a.bizkit_scoping)==null?void 0:a.global_search_settings_local_nav_items;var c=d("MBSNavigationSearchUtils").getMapMainNavItemsToSearchableEntry(b),e=d("MBSNavigationSearchUtils").getMapSubNavItemsToSearchableEntry(b);b=d("MBSNavigationSearchUtils").getMapSettingsSubNavItemsToSearchableEntry(b,a);return c.concat(e).concat(b)}function k(a,b){return b(a)}a=function(a){babelHelpers.inheritsLoose(b,a);function b(b,c,d){var e={bootstrapRequests:[{gen:function(){return l(c,d)}}],getAllForEmptyQuery:!0,packageFn:j};return a.call(this,b,e,k)||this}var c=b.prototype;c.searchImpl=function(a,b){this.getBootstrappedEntries(function(c){var e=[];c.filter(function(b){if(b.getTitle().toLowerCase().includes(a.toLowerCase()))e.push(b);else{var c;c=(c=b.getAuxiliaryData().keywords)!=null?c:[];c.length>0&&c.map(function(c){c.toLowerCase().includes(a.toLowerCase())&&e.push(b)})}});b(e,a,d("SearchSourceQueryStatus").COMPLETE)})};return b}(c("AbstractRelaySearchSource"));function l(a,b){return{query:i,variables:{businessID:a,localScopes:b}}}g["default"]=a}),98);
-----
MBSNavigationNewToolsSearchSource",["AbstractSearchSource","SearchSourceQueryStatus"],(function(a,b,c,d,e,f,g){"use strict";a=function(a){babelHelpers.inheritsLoose(b,a);function b(b){var c;c=a.call(this)||this;c.$MBSNavigationNewToolsSearchSource1=b;return c}var c=b.prototype;c.searchImpl=function(a,b,c){if(a){c=this.$MBSNavigationNewToolsSearchSource1.filter(function(b){return b.getTitle().toString().toLowerCase().includes(a.toLowerCase())});b(c,a,d("SearchSourceQueryStatus").COMPLETE)}};return b}(c("AbstractSearchSource"));g["default"]=a}),98);
-----
DeveloperCommunityHomeViewSearchTypeahead.react",["fbt","ix","CompositeSearchSource","DelegateSearchSource","DeveloperCommunityConstants","DeveloperCommunityHomeViewSearchTypeaheadContainer.react","DeveloperCommunityHomeViewSearchTypeaheadItem.react","DeveloperCommunitySearchRoute","DeveloperCommunityThreadGraphQLSearchSource","Image.react","SUIDeveloperCommunitySearchTypeaheadTheme","SUITypeahead.react","SearchSourceQueryStatus","SearchableEntry","goURI","killswitch","nullthrows","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var f=arguments.length,g=new Array(f),i=0;i-----
StaticSearchSourceWithAsyncData",["AbstractSearchSource","SearchSourceCallbackManager","SearchSourceQueryStatus","TokenizeUtil","abstractMethod","asyncToGeneratorRuntime"],(function(a,b,c,d,e,f,g){"use strict";a=function(a){babelHelpers.inheritsLoose(e,a);function e(b){var d;d=a.call(this)||this;d.$StaticSearchSourceWithAsyncData1=null;d.$StaticSearchSourceWithAsyncData3=new(c("SearchSourceCallbackManager"))({parseFn:c("TokenizeUtil").parse,matchFn:c("TokenizeUtil").isQueryMatch,indexFn:void 0});d.$StaticSearchSourceWithAsyncData2=d.$StaticSearchSourceWithAsyncData4(b);return d}var f=e.prototype;f.__loadData=function(a){return c("abstractMethod")("StaticSearchSourceWithAsyncData","__loadData")};f.$StaticSearchSourceWithAsyncData4=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a){a=(yield this.__loadData(a));this.$StaticSearchSourceWithAsyncData3.addLocalEntries(a);this.$StaticSearchSourceWithAsyncData1=a;return a});function c(b){return a.apply(this,arguments)}return c}();f.searchImpl=function(a,b,c){this.$StaticSearchSourceWithAsyncData5(a,b,c)};f.$StaticSearchSourceWithAsyncData5=function(){var a=b("asyncToGeneratorRuntime").asyncToGenerator(function*(a,b,c){c=this.$StaticSearchSourceWithAsyncData1;c==null&&(b([],a,d("SearchSourceQueryStatus").ACTIVE),c=(yield this.$StaticSearchSourceWithAsyncData2));if(a===""){b(c,a,d("SearchSourceQueryStatus").COMPLETE);return}this.$StaticSearchSourceWithAsyncData3.setQueryStringAsExhausted(a);this.$StaticSearchSourceWithAsyncData3.search(a,b)});function c(b,c,d){return a.apply(this,arguments)}return c}();return e}(c("AbstractSearchSource"));g["default"]=a}),98);
-----
Q4BRoleAddUserTokenizer.react",["fbt","GeoTokenizer.react","Q4BNonITAPUsersSearchSource","SearchSourceQueryStatus","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");b=d("react");var j=b.useMemo,k=b.useState;function a(a){var b=a.userEntries;a=a.setUserEntries;var e=k(!1),f=e[0],g=e[1];e=j(function(){return new(c("Q4BNonITAPUsersSearchSource"))()},[]);return i.jsx(c("GeoTokenizer.react"),{label:h._("Add people"),placeholder:h._("Search by name"),emptySearchResultsContent:h._("No results found"),value:b,onChange:a,searchSource:e,isLoading:f,onSearch:function(){return g(!0)},onEntriesFound:function(a,b){return g(b!==d("SearchSourceQueryStatus").COMPLETE)},onNoEntriesFound:function(){return g(!1)},showEntriesOnFocus:!0})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);/*FB_PKG_DELIM*/
-----
LegalFMUtil",["invariant","CancelablePromise","CompositeDraftDecorator","CurrentUser","DateTime","EditorState","LegalFMCurrentValues","LegalFMElementPropType","LegalFMFieldSourceType","LegalFMFieldType","LegalFMRuleUtil","LegalFMUtil_field.graphql","LegalFMUtil_fieldReadOnly.graphql","LegalFMUtil_props.graphql","LegalFMUtil_template.graphql","Promise","RelayHooks","RichTextEditorLink.react","SearchSourceQueryStatus","SearchableEntry","StaticSearchSource","WebAsyncSearchSource","XLegalFMTypeaheadController","convertFromDraftStateToRaw","convertFromRawToDraftState","enumUtils","filterNulls","flatMapArray","forEachObject","getEntityMatcher","getJSEnumSafe","nullthrows","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m=d("react"),n=i!==void 0?i:i=b("LegalFMUtil_template.graphql"),o=j!==void 0?j:j=b("LegalFMUtil_field.graphql"),p=k!==void 0?k:k=b("LegalFMUtil_fieldReadOnly.graphql"),q=l!==void 0?l:l=b("LegalFMUtil_props.graphql");a=function(a){var b=[];c("forEachObject")(a,function(a,c){a!=null&&b.push({id:c,value:a})});return b};e=function(a){return d("enumUtils").coerceFromKey(a,c("LegalFMFieldType"))};f=function(a,b){a=a.fields;return a[b]};var r=function(a){return a!=null&&a.length>0?a:null},s=function(a){return a!=null&&a.length>0?a[0]:null},t=function(a,b,d){a!=null||h(0,19562);b=c("XLegalFMTypeaheadController").getURIBuilder().setEnum("source_type",a).setStringKeyset("current_value",(a=b)!=null?a:[]).setStringToStringMap("extra_params",d).getURI();return new(c("WebAsyncSearchSource"))({getAllForEmptyQuery:!0,bootstrapRequests:[{uri:b}],queryRequests:[{uri:b}]})},u=function(a,e,f){var g=t(a,e!=null?[e]:[],f);return new(c("CancelablePromise"))(new(b("Promise"))(function(a,b){g.search((b=e)!=null?b:"",function(b,c,e){e===d("SearchSourceQueryStatus").COMPLETE&&a(b)})}))},v=function(a){return new(c("StaticSearchSource"))(a.map(function(a){return new(c("SearchableEntry"))({title:a.label,uniqueID:a.value})}))},w=function(a,b){return b.size===0?!0:Array.from(b).every(function(b){return a[b]!=null&&a[b].length>0})},x=function(a,b){return Array.from(b).filter(function(b){return a[b]==null||a[b].length===0})},y=function(){return new(c("CompositeDraftDecorator"))([{strategy:c("getEntityMatcher")(function(a){return a.getType()==="LINK"}),component:c("RichTextEditorLink.react")}])},z=function(){return c("EditorState").createEmpty(y())},A=function(a){if(a==null||a==="")return z();a=JSON.parse(a);a=c("convertFromRawToDraftState")(a);return a.getBlockMap().size===0?z():c("EditorState").createWithContent(a,y())},B=function(a){a=a.getCurrentContent();a=c("convertFromDraftStateToRaw")(a);return(a==null?void 0:a.blocks[0].text)!=null&&(a==null?void 0:a.blocks[0].text)!==""?[JSON.stringify(a)]:null},C=function(a,b){var e,f;e=((e=a==null?void 0:a.ruleSets)!=null?e:[]).map(d("LegalFMRuleUtil").mapRuleSet);f=c("flatMapArray")((f=a==null?void 0:a.sections)!=null?f:[],function(a){a=a.rows;return a});f=c("flatMapArray")(f,function(a){a=a.fields;return a}).reduce(function(a,d){d=d.id;d=c("nullthrows")(d);return babelHelpers["extends"]({},a,(a={},a[d]=b!=null&&b[d]!=null?b[d]:null,a))},{});e=d("LegalFMRuleUtil").evaluateRuleSets(e,f);return{fields:f,initialValues:b,ruleDecisionMap:e,template:a}},D=function(a){a=(a=d("RelayHooks").readInlineData(q,a))==null?void 0:a.properties;return(a=a==null?void 0:a.filter(function(a){return a.propType!=null}).map(function(a){var b=a.id,d=a.propType,e=a.propValue;a=a.ruleSet;return{id:b,propType:c("nullthrows")(c("getJSEnumSafe")(c("LegalFMElementPropType"),d)),value:Array.from(e),ruleSetID:a==null?void 0:a.ruleSetID}}))!=null?a:[]},E=function(a){return(a=a==null?void 0:(a=a.nodes)==null?void 0:a.map(function(a){var b=a.code,d=a.description,e=a.id,f=a.name;return{id:c("nullthrows")(e),name:(e=f)!=null?e:"",code:c("nullthrows")(b),description:d,props:D(a)}}))!=null?a:[]},F=function(a){a=d("RelayHooks").readInlineData(o,a);if(a==null)return null;var b=a.code,e=a.id,f=a.name,g=a.description,h=a.fieldType,i=a.isOnTableView,j=a.isSearchable,k=a.isValueSensitive;k=k===void 0?!1:k;var l=a.sourceType,m=a.options;return{id:c("nullthrows")(e),name:(e=f)!=null?e:"",code:(f=b)!=null?f:"",description:g,fieldType:c("nullthrows")(c("getJSEnumSafe")(c("LegalFMFieldType"),h)),sourceType:c("getJSEnumSafe")(c("LegalFMFieldSourceType"),l),isOnTableView:i,isSearchable:j,isValueSensitive:k,options:E(m),props:D(a)}},G=function(a){a=d("RelayHooks").readInlineData(p,a);if(a==null)return null;var b=a.code,e=a.id,f=a.name,g=a.fieldType,h=a.sourceType;a=a.options;return{id:c("nullthrows")(e),name:(e=f)!=null?e:"",code:(f=b)!=null?f:"",fieldType:c("nullthrows")(c("getJSEnumSafe")(c("LegalFMFieldType"),g)),sourceType:c("getJSEnumSafe")(c("LegalFMFieldSourceType"),h),options:(b=a==null?void 0:(e=a.nodes)==null?void 0:e.map(function(d){var a=d.code,e=d.description,b=d.id;d=d.name;return{id:c("nullthrows")(b),name:(b=d)!=null?b:"",code:c("nullthrows")(a),description:e}}))!=null?b:[]}},H=function(a){return(a=a==null?void 0:(a=a.nodes)==null?void 0:a.map(function(a){var b=a.id,d=a.name,e=a.code,f=a.description,g=a.rows;return{id:c("nullthrows")(b),name:(b=d)!=null?b:"",code:c("nullthrows")(e),description:f,rows:g.map(function(a){return{fields:c("filterNulls")(a.fields.map(function(a){return F(a)}))}}),props:D(a)}}))!=null?a:[]},I=function(a){a=d("RelayHooks").readInlineData(n,a);if(a==null)return null;var b=a.code,e=a.description,f=a.id,g=a.name,h=a.sections;return{id:f,name:(f=g)!=null?f:"",code:c("nullthrows")(b),description:e,sections:H(h),props:D(a),ruleSets:d("LegalFMRuleUtil").parseRuleSet(a)}},J=function(a,b){if(a==="DATE_TIME"||a==="DATE")return[c("DateTime").localNow().getUnixTimestampSeconds().toString()];switch(b){case"COUNTRY":return c("LegalFMCurrentValues").currentValuesMap.COUNTRY;case"INTERN_USER":return[(a=c("CurrentUser").getEmployeeWorkUserID())!=null?a:c("CurrentUser").getID()];case"JURISDICTION":return c("LegalFMCurrentValues").currentValuesMap.JURISDICTION}return null},K=function(a,b,c,d,e){if(d==null)return null;var f=a.codeMap;a=a.fieldTypeMap;var g=null;b!=null&&f!=null&&b in f?g=f[b]:c!=null&&a!=null&&c in a&&(g=a[c]);if(g==null)return null;f=g;b=f.component;a=f.props;c=babelHelpers["extends"]({},a,{id:d,value:e});return m.jsx(b,babelHelpers["extends"]({},c))},L=function(a,b){return a==null?null:(a=a.sections.flatMap(function(a){a=a.rows;return a.flatMap(function(a){a=a.fields;return a})}).find(function(a){a=a.code;return a===b}))==null?void 0:a.id};g.coerceFieldsToDataMap=a;g.getFieldType=e;g.getFieldValue=f;g.getMultipleValues=r;g.getOnlyValue=s;g.getSearchSource=t;g.getSearchSourcePromise=u;g.getStaticSearchSource=v;g.validateRequiredFields=w;g.getMissingRequiredFields=x;g.getEmptyEditorState=z;g.editorStateFromText=A;g.textFromEditorState=B;g.processTemplate=C;g.parseField=F;g.parseReadOnlyField=G;g.parseTemplate=I;g.getCurrentValue=J;g.getCustomField=K;g.getFieldIDFromCode=L}),98);
-----
useMisinfoSuggestedClaimsSearchSource",["SearchSourceQueryStatus","WebAsyncSearchSource","XMisinfoFactCheckSuggestedClaimsController","memoize","useSearchSourceResults"],(function(a,b,c,d,e,f,g){"use strict";var h=c("XMisinfoFactCheckSuggestedClaimsController").getURIBuilder().getURI(),i=c("memoize")(function(){return new(c("WebAsyncSearchSource"))({getAllForEmptyQuery:!1,queryRequests:[{uri:h}],bootstrapRequests:[{uri:h}]})});function a(a){var b,e=a.bootstrappedItems;a=a.queryString;a=c("useSearchSourceResults")(i(),a);return{entries:(a==null?void 0:a.entries)==null||(a==null?void 0:(b=a.entries)==null?void 0:b.length)===0?e:a==null?void 0:a.entries,isLoading:a==null||(a==null?void 0:a.queryStatus)===d("SearchSourceQueryStatus").ACTIVE}}g["default"]=a}),98);
-----
BRPApplicationForm.react",["fbt","ix","BRPAllowlistAccountSearchSource.react","BRPAllowlistIGAccountSearchSource.react","BRPApplicationFormCreateMutation.graphql","BRPApplicationFormSection.react","CurrentBusinessUser","CurrentUser","ExampleCountriesSearchSource","FBLogger","FlexLayout.react","GeoBaseText.react","GeoButton.react","GeoCard.react","GeoHeading.react","GeoSearchableMultiSelector.react","GeoSection.react","GeoTextInput.react","GeoTokenizer.react","GeoTokenizerToken.react","Image.react","QPLUserFlow","RelayHooks","RelayModern","SearchSourceQueryStatus","err","fbicon","geoMargin","isEmail","nullthrows","qpl","react","useBoolean","useFileInput"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=d("react");e=d("react");var l=e.useEffect,m=e.useMemo,n=e.useState,o=new(c("ExampleCountriesSearchSource"))(),p=["aol.com","gmail.com","hotmail.com","icloud.com","outlook.com","yahoo.com"];function q(a){var b=/^(([w-]+.)+(xn--[w-]+|w+)|[([da-f]{0,4}:)*(?:[da-f]{1,4}|(?:(?:d{1,3}.){3}d{1,3}))])(:[0-9]+)?([/?].*)?$/,c=/^http(s)?://(([w-]+.)+(xn--[w-]+|w+)|[([da-f]{0,4}:)*(?:[da-f]{1,4}|(?:(?:d{1,3}.){3}d{1,3}))])(:[0-9]+)?([/?].*)?$/;return a.match(b)!==null||a.match(c)!==null}function a(){var a;l(function(){c("QPLUserFlow").addPoint(c("qpl")._(892215753,"5734"),"brp_application_form")},[]);var e=d("RelayHooks").useRelayEnvironment();a=n({value:(a=c("CurrentBusinessUser").email)!=null?a:""});var f=a[0],g=a[1];a=n({value:""});var r=a[0],s=a[1];a=n({value:""});var t=a[0],u=a[1];a=n({value:""});var v=a[0],w=a[1];a=n({value:""});var x=a[0],y=a[1];a=n({value:""});var z=a[0],A=a[1];a=n({value:""});var B=a[0],C=a[1];a=n({value:[]});var D=a[0],E=a[1];a=n({value:""});var F=a[0],G=a[1],H={contactEmail:f,jobTitle:r,rightOwnerName:t,brandWebsite:v,brandEmail:x,trademarkName:z,trademarkURL:B,trademarkRegistrationNumber:F},I={contactEmail:g,jobTitle:s,rightOwnerName:u,brandWebsite:w,brandEmail:y,trademarkName:A,trademarkURL:C,trademarkRegistrationNumber:G},J=function(a){return a.trim().length===0},K={contactEmail:function(a){a=a.value;return c("isEmail")(a)&&!p.includes(a.split("@").pop())},jobTitle:function(a){a=a.value;return!J(a)},rightOwnerName:function(a){a=a.value;return!J(a)},brandWebsite:function(a){a=a.value;return J(a)||q(a)},brandEmail:function(a){a=a.value;return c("isEmail")(a)},teamName:function(a){a=a.value;return!J(a)},trademarkName:function(a){a=a.value;return!J(a)},trademarkURL:function(a){a=a.value;return J(a)||q(a)},trademarkRegistrationNumber:function(a){a=a.value;return!J(a)}};a=m(function(){return new(c("BRPAllowlistAccountSearchSource.react"))()},[]);var L=n([]),M=L[0];L=L[1];var N=n(!1),O=N[0],P=N[1];N=m(function(){return new(c("BRPAllowlistIGAccountSearchSource.react"))()},[]);var Q=n([]),R=Q[0];Q=Q[1];var S=n(!1),T=S[0],U=S[1];S=n([]);var V=S[0],W=S[1];S=function(){X(),aa()};var X=c("useFileInput")(function(a){return W(a)},{allowMultiple:!1,accept:[".jpg",".jpeg",".gif",".png",".tiff",".pdf"]}),Y=c("useBoolean")(!1),Z=Y.value,$=Y.setTrue,aa=Y.setFalse;Y=d("RelayHooks").useMutation(j!==void 0?j:j=b("BRPApplicationFormCreateMutation.graphql"));var ba=Y[0];Y=Y[1];var ca=function(){var a=Object.keys(H).map(function(a){var b=H[a],c=K[a];c=c(b);if(!c){a=I[a];a({value:b.value,showError:!0})}return c}).every(Boolean),b=V.length>0;b||$();var g=D.value.length>0;g||E({value:D.value,showError:!0});if(!b||!a||!g)return;b=V[0];ba({variables:{input:{business:c("nullthrows")(c("CurrentBusinessUser").business_id),input_data:{applicant_full_name:c("CurrentUser").getName(),contact_email:f.value,fb_pages:M.map(function(a){return a.getUniqueID()}),instagram_accounts:R.map(function(a){return a.getUniqueID()}),job_title:r.value,reporting_email:x.value,right_owner_name:t.value,right_owner_website:v.value,team_name:"",trademark_country:D.value.map(function(a){return a.getTitle()}).join(", "),trademark_name:z.value,trademark_registration_number:F.value,trademark_url:B.value},trademark_registration_file:"file",tier_status:"CORE_L0"}},uploadables:b==null?{}:{file:b},onCompleted:function(a){d("RelayModern").commitLocalUpdate(e,function(a){(a=a.get(c("nullthrows")(c("CurrentBusinessUser").business_id)))==null?void 0:a.invalidateRecord()})},onError:function(a){c("FBLogger")("brand_rights_protection").event("error submitting the enrollment application.").catching(a).mustfix(a.message);throw c("err")("Unexpected error when submitting the application. Please contact brand-protection@fb.com for help.")}})};return k.jsxs(c("FlexLayout.react"),{direction:"vertical",align:"stretch",children:[k.jsx(c("GeoHeading.react"),{level:1,xstyle:c("geoMargin").vert12,children:h._("u7533u8bf7u4f7fu7528u54c1u724cu6743u5229u4fddu62a4u5de5u5177")}),k.jsx(c("GeoCard.react"),{children:k.jsxs("div",{className:"xbbxn1n xxbr6pl",children:[k.jsxs(c("GeoSection.react"),{children:[k.jsxs(c("BRPApplicationFormSection.react"),{title:h._("u7533u8bf7u4fe1u606f"),children:[k.jsx(c("GeoTextInput.react"),{label:h._("u5168u540d"),value:c("CurrentUser").getName(),isDisabled:!0}),k.jsx(c("GeoTextInput.react"),{label:h._("u8054u7cfbu90aeu7bb1"),placeholder:h._("u8bf7u8f93u5165u7528u4e8eu8054u7cfbu7684u90aeu7bb1"),description:h._("u6211u4eecu901au8fc7u8fd9u4e2au90aeu7bb1u786eu8ba4u4f60u4e3au8fd9u4e00u54c1u724cu5de5u4f5cuff0cu5e76u5c31u7533u8bf7u4e8bu5b9cu4e0eu4f60u8054u7cfbu3002"),message:f.showError===!0?h._("u90aeu7bb1u7684u57dfu540du5fc5u987bu662fu516cu53f8u540du79f0uff0cu4ee5u4fbfu6211u4eecu7684u56e2u961fu5728u5ba1u6838u7533u8bf7u65f6u786eu8ba4u4f60u4e3au8fd9u4e00u54c1u724cu5de5u4f5cu3002"):"",value:f.value,onChange:function(a){return g({value:a})},status:f.showError===!0?"error":void 0,"data-testid":void 0}),k.jsx(c("GeoTextInput.react"),{label:h._("u804cu4f4d"),placeholder:h._("u8f93u5165u804cu4f4d"),value:r.value,onChange:function(a){return s({value:a})},status:r.showError===!0?"error":void 0,"data-testid":void 0})]}),k.jsxs(c("BRPApplicationFormSection.react"),{title:h._("u6743u5229u6240u6709u4ebau4fe1u606f"),children:[k.jsx(c("GeoTextInput.react"),{label:h._("u54c1u724cu6216u516cu53f8u540du79f0"),description:h._("u8f93u5165u62e5u6709u8be5u5546u6807u7684u54c1u724cu6216u516cu53f8u3002"),placeholder:h._("u8f93u5165u6743u5229u6240u6709u4ebau540du79f0"),value:t.value,onChange:function(a){return u({value:a})},status:t.showError===!0?"error":void 0,"data-testid":void 0}),k.jsx(c("GeoTextInput.react"),{label:h._("u7528u4e8eu54c1u724cu4fddu62a4u76eeu7684u7684u7535u5b50u90aeu7bb1"),placeholder:h._("u8f93u5165u90aeu7bb1"),description:h._("u4f60u53efu4ee5u63d0u4f9bu4e0du5305u542bu81eau5df1u59d3u540du7684u901au7528u4e1au52a1u90aeu7bb1u3002u88abu4e3eu62a5u65b9u53efu80fdu4f1au901au8fc7u6b64u90aeu7bb1u8054u7cfbu4f60u3002"),value:x.value,onChange:function(a){return y({value:a})},status:x.showError===!0?"error":void 0,"data-testid":void 0}),k.jsx(c("GeoTextInput.react"),{label:h._("u54c1u724cu7f51u7ad9"),isOptional:!0,placeholder:h._("u8f93u5165u6743u5229u6240u6709u4ebau7f51u7ad9"),description:h._("u8fd9u4e9bu4fe1u606fu5c06u7528u4e8eu786eu8ba4u4f60u54c1u724cu7684u77e5u8bc6u4ea7u6743 (IP) u6240u6709u6743u3002u7533u8bf7u83b7u6279u540euff0cu4f60u53efu4ee5u6dfbu52a0u66f4u591au7f51u7ad9u3002"),value:v.value,onChange:function(a){return w({value:a})},status:v.showError===!0?"error":void 0,"data-testid":void 0}),k.jsx(c("GeoTokenizer.react"),{label:h._("u5b98u65b9 Facebook u516cu5171u4e3bu9875"),placeholder:h._("u641cu7d22 Facebook u516cu5171u4e3bu9875..."),tooltipText:h._("u8fd9u4e9bu4fe1u606fu5c06u7528u4e8eu786eu8ba4u4f60u54c1u724cu7684u77e5u8bc6u4ea7u6743 (IP) u6240u6709u6743u3002u7533u8bf7u83b7u6279u540euff0cu4f60u53efu4ee5u6dfbu52a0u66f4u591au516cu5171u4e3bu9875u3002"),isPlaceholderPersistent:!0,emptySearchResultsContent:h._("u627eu4e0du5230u7ed3u679cuff0cu8bf7u8bd5u8bd5u5176u4ed6u5173u952eu8bcdu3002"),tokenRenderer:function(a){return k.jsx(c("GeoTokenizerToken.react"),{media:a.getPhoto()})},onChange:L,searchSource:a,value:M,isLoading:O,onSearch:function(){return P(!0)},onEntriesFound:function(a,b){return P(b!==d("SearchSourceQueryStatus").COMPLETE)},onNoEntriesFound:function(){return P(!1)}}),k.jsx(c("GeoTokenizer.react"),{label:h._("Official Instagram profile"),placeholder:h._("Search for Instagram profile..."),tooltipText:h._("u8fd9u4e9bu4fe1u606fu5c06u7528u4e8eu786eu8ba4u4f60u54c1u724cu7684u77e5u8bc6u4ea7u6743 (IP) u6240u6709u6743u3002u7533u8bf7u83b7u6279u540euff0cu4f60u53efu4ee5u6dfbu52a0u66f4u591a Instagram u4e3bu9875u3002"),isPlaceholderPersistent:!0,emptySearchResultsContent:h._("u627eu4e0du5230u7ed3u679cuff0cu8bf7u8bd5u8bd5u5176u4ed6u5173u952eu8bcdu3002"),tokenRenderer:function(a){return k.jsx(c("GeoTokenizerToken.react"),{media:a.getPhoto()})},onChange:Q,searchSource:N,value:R,isLoading:T,onSearch:function(){return U(!0)},onEntriesFound:function(a,b){return U(b!==d("SearchSourceQueryStatus").COMPLETE)},onNoEntriesFound:function(){return U(!1)},isOptional:!0})]}),k.jsxs(c("BRPApplicationFormSection.react"),{title:h._("u5546u6807u4fe1u606f"),titleDescription:h._("u5982u8981u7533u8bf7u54c1u724cu6743u5229u4fddu62a4u5de5u5177uff0cu4f60u5fc5u987bu81f3u5c11u62e5u6709u4e00u4e2au6709u6548u7684u6ce8u518cu5546u6807u3002"),children:[k.jsx(c("GeoTextInput.react"),{label:h._("u5546u6807u540du79f0"),placeholder:h._("u8f93u5165u5546u6807u540du79f0"),value:z.value,onChange:function(a){return A({value:a})},status:z.showError===!0?"error":void 0,"data-testid":void 0}),k.jsx(c("GeoTextInput.react"),{label:h._("u5546u6807u6ce8u518cu7f51u5740"),description:h._("u8bf7u63d0u4f9bu5546u6807u6ce8u518cu9875u9762u7684u76f4u63a5u94feu63a5uff08u7f51u5740uff09u3002"),placeholder:h._("u5546u6807u6ce8u518cu7f51u5740"),value:B.value,onChange:function(a){return C({value:a})},status:B.showError===!0?"error":void 0,isOptional:!0,"data-testid":void 0}),k.jsx(c("GeoSearchableMultiSelector.react"),{label:h._("u6ce8u518cu56fdu5bb6/u5730u533au6216u53f8u6cd5u8f96u533a"),onChange:function(a){E({value:a})},placeholder:h._("u8f93u5165u56fdu5bb6/u5730u533au6216u53f8u6cd5u8f96u533a"),errorMessage:D.showError===!0?" ":null,searchSource:o,value:D.value,"data-testid":void 0}),k.jsx(c("GeoTextInput.react"),{label:h._("u5546u6807u6ce8u518cu53f7"),placeholder:h._("u8f93u5165u5546u6807u6ce8u518cu53f7"),value:F.value,onChange:function(a){return G({value:a})},status:F.showError===!0?"error":void 0,"data-testid":void 0}),k.jsxs("div",{children:[k.jsx(c("GeoBaseText.react"),{size:"header4",color:"value",display:"block",children:"Trademark registration documents"}),k.jsx(c("GeoBaseText.react"),{size:"valueDescription",color:"value",display:"block",children:"You can add a scanned copy of the trademark registration certificate(s), screenshot of the registration on the website or database of the applicable national or community intellectual property office(s) in the file formats JPG, GIF, PNG, TIFF or PDF."})]}),k.jsxs("div",{children:[k.jsx(c("GeoButton.react"),{icon:k.jsx(c("Image.react"),{src:i("1464821")}),label:h._("u9009u62e9u6587u4ef6"),onClick:S,"data-testid":void 0}),k.jsx(c("GeoBaseText.react"),{size:"valueDescription",color:Z?"error":"value",display:"block",children:V.length>0?V[0].name:h._("u672au9009u62e9u6587u4ef6")})]})]})]}),k.jsxs(c("GeoSection.react"),{children:[k.jsx(c("BRPApplicationFormSection.react"),{children:[k.jsx(c("GeoTextInput.react"),{label:h._("u7535u5b50u7b7eu540d"),description:h._("u7535u5b50u7b7eu540du5e94u4e0eu4f60u7684u5168u540du4e00u81f4u3002"),value:c("CurrentUser").getName(),isDisabled:!0},"signature")]}),k.jsx(c("FlexLayout.react"),{justify:"end",children:k.jsx(c("GeoButton.react"),{icon:d("fbicon")._(i("579032"),16),label:h._("u53d1u9001"),onClick:ca,variant:"primary",isLoading:Y,isDisabled:Y,"data-testid":void 0})})]})]})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
BRPSearchMethodSearchSource",["fbt","ix","AbstractSearchSource","SearchSourceQueryStatus","SearchableEntry"],(function(a,b,c,d,e,f,g,h,i){"use strict";a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b;b=a.call(this)||this;b.$BRPSearchMethodSearchSource1=[];return b}var e=b.prototype;e.createSearchableEntries=function(a){var b="NEW_SEARCH";return[new(c("SearchableEntry"))({uniqueID:"id_search",title:a,subtitle:h._("u6309u7f16u53f7u641cu7d22"),photo:i("1555018"),auxiliaryData:{searchMethod:"id_search",searchText:a,dataType:b}}),new(c("SearchableEntry"))({uniqueID:"url_search",title:a,subtitle:h._("u6309u7f51u5740u641cu7d22"),photo:i("1265786"),auxiliaryData:{searchMethod:"url_search",searchText:a,dataType:b}}),new(c("SearchableEntry"))({uniqueID:"exact_phrase_search",title:a,subtitle:h._("u641cu7d22u7cbeu786eu77edu8bed"),photo:i("1688136"),auxiliaryData:{searchMethod:"exact_phrase_search",searchText:a,dataType:b}}),new(c("SearchableEntry"))({uniqueID:"standard_search",title:a,subtitle:h._("u6309u5173u952eu8bcdu641cu7d22"),photo:i("1285096"),auxiliaryData:{searchMethod:"standard_search",searchText:a,dataType:b}})]};e.searchImpl=function(a,b,c){var e=this;c=this.createSearchableEntries(a);c=c.filter(function(a){if(e.checkSearchEntryValidityFn)return e.checkSearchEntryValidityFn(a);else return!0});b(c,a,d("SearchSourceQueryStatus").COMPLETE);this.$BRPSearchMethodSearchSource1=c};e.setCheckSearchEntryValidityFn=function(a){this.checkSearchEntryValidityFn=a};e.getEntries=function(){return this.$BRPSearchMethodSearchSource1};return b}(c("AbstractSearchSource"));g.BRPSearchMethodSearchSource=a}),98);
-----
BRPSearchHistorySearchSource",["ix","AbstractSearchSource","BRPSearchHistorySearchSourceQuery.graphql","BRPSearchMethod","RelayHooks","SearchSourceQueryStatus","SearchableEntry","debounceCore","enumUtils","promiseDone"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i!==void 0?i:i=b("BRPSearchHistorySearchSourceQuery.graphql");function k(a){return(a=a==null?void 0:(a=a.brp_search_history)==null?void 0:(a=a.recent_entries)==null?void 0:a.map(function(a){return l(a)}).filter(Boolean))!=null?a:[]}function a(a){a=(a=a.xfb_create_entry_brp_search_history_entry)==null?void 0:a.brp_search_history_entry;return l(a)}function l(a){var b;if(a==null||a.id==null||a.search_text==null||a.search_method==null)return null;b=(b={},b.id_search="ID",b.url_search="URL",b.exact_phrase_search="Exact phrase",b.standard_search="Keyword",b);var e=c("BRPSearchMethod")[d("enumUtils").assertKey(a.search_method,c("BRPSearchMethod"))];return new(c("SearchableEntry"))({uniqueID:a.id,title:a.search_text,subtitle:b[e],order:a.time_searched,photo:h("1643894"),auxiliaryData:{searchMethod:c("BRPSearchMethod")[d("enumUtils").assertKey(a.search_method,c("BRPSearchMethod"))],searchText:(b=a.search_text)!=null?b:"",dataType:"SEARCH_HISTORY"}})}e=function(a){babelHelpers.inheritsLoose(b,a);function b(b,e){var f;f=a.call(this)||this;f.$BRPSearchHistorySearchSource4=100;f.$BRPSearchHistorySearchSource1=[];f.$BRPSearchHistorySearchSource2=new Map();f.entriesNeededToDisplay=b;f.$BRPSearchHistorySearchSource3=e;f.$BRPSearchHistorySearchSource5=c("debounceCore")(function(a,f){return c("promiseDone")(d("RelayHooks").fetchQuery(e,j,{count:b,query_string:a}).toPromise(),f)},200);f.bootstrap(function(){});return f}var e=b.prototype;e.bootstrapImpl=function(a){var b=this;c("promiseDone")(d("RelayHooks").fetchQuery(this.$BRPSearchHistorySearchSource3,j,{count:this.$BRPSearchHistorySearchSource4,query_string:""}).toPromise(),function(c){c=k(c);b.$BRPSearchHistorySearchSource1=c;c.forEach(function(a){b.$BRPSearchHistorySearchSource2.set(a.getUniqueID(),a)});a()})};e.searchImpl=function(a,b,c){var e=this;b([],a,d("SearchSourceQueryStatus").ACTIVE);this.bootstrap(function(){var d;return e.performSearch(a,b,(d=c==null?void 0:c.pendingDeletionEntries)!=null?d:[])})};e.performSearch=function(a,b,c){var e=this,f=this.$BRPSearchHistorySearchSource1.filter(function(b){return b.getAuxiliaryData().searchText.toLowerCase().startsWith(a.toLowerCase())}),g=this.processEntriesForCallback(f,c);b(g,a,d("SearchSourceQueryStatus").COMPLETE);f=g.length>=this.entriesNeededToDisplay;if(f)return;this.$BRPSearchHistorySearchSource5(a,function(f){f=k(f);f=f.filter(function(a){return!e.$BRPSearchHistorySearchSource2.has(a.getUniqueID())});var h=g.concat(f);h=e.processEntriesForCallback(h,c);b(h,a,d("SearchSourceQueryStatus").COMPLETE);f.forEach(function(a){e.$BRPSearchHistorySearchSource2.set(a.getUniqueID(),a),e.$BRPSearchHistorySearchSource1.push(a)});e.$BRPSearchHistorySearchSource1=e.$BRPSearchHistorySearchSource1.sort(function(a,b){return b.getOrder()-a.getOrder()})})};e.addEntry=function(a){var b=this;if(this.$BRPSearchHistorySearchSource2.has(a.getUniqueID()))return;if(this.$BRPSearchHistorySearchSource1.includes(function(c){return b.isEntryDuplicate(a,c)}))return;this.$BRPSearchHistorySearchSource2.set(a.getUniqueID(),a);var c=this.$BRPSearchHistorySearchSource1.findIndex(function(b){return a.getOrder()>b.getOrder()});this.$BRPSearchHistorySearchSource1.splice(c,0,a);this.$BRPSearchHistorySearchSource1=this.$BRPSearchHistorySearchSource1.filter(function(c){return!b.isEntryDuplicate(c,a)})};e.removeEntry=function(a){if(!this.containsEntry(a))return;var b=a.getUniqueID();this.$BRPSearchHistorySearchSource2["delete"](b);this.$BRPSearchHistorySearchSource1=this.$BRPSearchHistorySearchSource1.filter(function(a){return a.getUniqueID()!==b})};e.containsEntry=function(a){return this.$BRPSearchHistorySearchSource2.has(a.getUniqueID())};e.isEntryDuplicate=function(a,b){var c=a.getAuxiliaryData(),d=c.searchText;c=c.searchMethod;var e=b.getAuxiliaryData(),f=e.searchText;e=e.searchMethod;a=a.getOrder();b=b.getOrder();return d.toLowerCase()===f.toLowerCase()&&c===e&&a-----
BRPOnboardStepperContentAllowedAssetsSetting.react",["fbt","BRPAllowlistAccountSearchSource.react","BRPAllowlistIGAccountSearchSource.react","BRPApplicationUtils","BRPHomePageOnboardContainer.react","BRPOnboardStepperContentAllowedAssetsSettingAddMutation.graphql","BRPOnboardStepperContentAllowedAssetsSettingDeleteMutation.graphql","CurrentBusinessUser","FlexLayout.react","GeoButton.react","GeoHeading.react","GeoText.react","GeoTokenizer.react","GeoTokenizerToken.react","RelayHooks","SearchSourceQueryStatus","geoMargin","react","stylex","useBRPIPReviewers"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=d("react");e=d("react");var l=e.useContext,m=e.useEffect,n=e.useMemo,o=e.useState;function a(a){var b=a.dispatchOverrideCompletedSteps;a=l(d("BRPHomePageOnboardContainer.react").OnboardStepContext);var e=a.step,f=a.setStep;a=n(function(){return new(c("BRPAllowlistAccountSearchSource.react"))()},[]);var g=o([]),i=g[0];g=g[1];var j=n(function(){return new(c("BRPAllowlistIGAccountSearchSource.react"))()},[]),r=o([]),s=r[0];r=r[1];var t=d("useBRPIPReviewers").useBRPIPReviewers().some(function(a){return a.id===c("CurrentBusinessUser").business_user_id});m(function(){i.length+s.length>0?b({action:"ADD",entry:"ALLOWED_ASSET_REFERENCE_SETTING"}):b({action:"REMOVE",entry:"ALLOWED_ASSET_REFERENCE_SETTING"})},[i,s]);return k.jsxs("div",{children:[k.jsxs("div",{children:[k.jsx(c("GeoHeading.react"),{level:2,children:h._("u628au5e10u6237u52a0u5165u767du540du5355 - u63a8u8350")}),k.jsx(c("GeoText.react"),{children:h._("u4f60u6dfbu52a0u7684u5e10u6237u5c06u4eceu641cu7d22u7ed3u679cu4e2du6392u9664uff0cu5176u5185u5bb9u5982u88abu4e3eu62a5u4fb5u6743uff0cu5219u4e0du4f1au88abu91c7u53d6u4efbu4f55u63aau65bdu3002u8fd9u4e9bu5e10u6237u7684u5185u5bb9u4e5fu4e0du4f1au7528u4f5cu68c0u6d4bu5339u914du5e7fu544au7684u53c2u7167u3002u4f60u53efu4ee5u968fu65f6u66f4u65b0u8fd9u4e2au5217u8868u3002")}),k.jsx(p,{}),k.jsx(q,{label:h._("u8981u52a0u5165u767du540du5355u7684 Facebook u516cu5171u4e3bu9875"),placeholder:h._("u641cu7d22 Facebook u516cu5171u4e3bu9875..."),entries:i,setEntries:g,searchSource:a}),k.jsx(p,{}),k.jsx(q,{label:h._("u8981u52a0u5165u767du540du5355u7684 Instagram u4e3bu9875"),placeholder:h._("Search for Instagram profile..."),entries:s,setEntries:r,searchSource:j})]}),k.jsx(c("FlexLayout.react"),{justify:"end",className:c("stylex")(c("geoMargin").top24),children:k.jsx(c("GeoButton.react"),{label:h._("u5b8cu6210"),variant:"primary",xstyle:c("geoMargin").top24,isDisabled:!t,onClick:function(){return f(d("BRPApplicationUtils").getNextOnboardingStep(e))}})})]})}a.displayName=a.name+" [from "+f.id+"]";function p(){return k.jsx("div",{className:c("stylex")(c("geoMargin").vert24)})}p.displayName=p.name+" [from "+f.id+"]";function q(a){var e=a.label,f=a.placeholder,g=a.entries,l=a.setEntries;a=a.searchSource;var m=o(!1),n=m[0],p=m[1];m=d("RelayHooks").useMutation(i!==void 0?i:i=b("BRPOnboardStepperContentAllowedAssetsSettingDeleteMutation.graphql"));var q=m[0];m=d("RelayHooks").useMutation(j!==void 0?j:j=b("BRPOnboardStepperContentAllowedAssetsSettingAddMutation.graphql"));var r=m[0];m=function(a){r({variables:{allowlist_ids:[a.getUniqueID()]}})};var s=function(a){q({variables:{entity_id:a.getUniqueID()}})};return k.jsx(c("GeoTokenizer.react"),{label:e,placeholder:f,isPlaceholderPersistent:!0,emptySearchResultsContent:h._("u627eu4e0du5230u7ed3u679cuff0cu8bf7u8bd5u8bd5u5176u4ed6u5173u952eu8bcdu3002"),tokenRenderer:function(a){return k.jsx(c("GeoTokenizerToken.react"),{media:a.getPhoto()})},onChange:l,searchSource:a,value:g,isLoading:n,onSearch:function(){return p(!0)},onEntriesFound:function(a,b){return p(b!==d("SearchSourceQueryStatus").COMPLETE)},onNoEntriesFound:function(){return p(!1)},onAddEntry:m,onRemoveEntry:s})}q.displayName=q.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
AnalyticsEntitiesSearchSource",["AbstractSearchSource","AssetLibraryAppConstants.brands","SearchSourceQueryStatus","SearchableEntry","TextSearchUtil","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";a=function(a){babelHelpers.inheritsLoose(b,a);function b(b){var c;c=a.call(this)||this;c.promise=b;return c}var e=b.prototype;e.searchImpl=function(a,b,e){e=this.promise.then(function(b){return b.filter(function(b){return!a||c("TextSearchUtil").isMatch(b.name,a)||c("TextSearchUtil").isMatch(b.id,a)}).map(function(a){return new(c("SearchableEntry"))({auxiliaryData:a,keywordString:a.name,title:a.name,type:d("AssetLibraryAppConstants.brands").SearchResultTypes.NAME,uniqueID:a.id})})});c("promiseDone")(e,function(c){return b(c,a,d("SearchSourceQueryStatus").COMPLETE)})};return b}(c("AbstractSearchSource"));g["default"]=a}),98);
-----
AdsReportBuilderColumnSearchSource",["SearchSourceQueryStatus","StaticSearchSource","TokenizeUtil"],(function(a,b,c,d,e,f,g){"use strict";a=function(a){babelHelpers.inheritsLoose(b,a);function b(b){return a.call(this,b)||this}var e=b.prototype;e.searchImpl=function(a,b){var e=c("TokenizeUtil").tokenize(a.toLowerCase());e.length===0&&b([],a);var f=this.getSearchableEntries().filter(function(a){var b=0,c=a.getTitle().toString().toLowerCase();return e.every(function(a){var d=c.indexOf(a,b);b=d+a.length;return d>=0})});b(f,a,d("SearchSourceQueryStatus").COMPLETE)};return b}(c("StaticSearchSource"));g["default"]=a}),98);
-----
AssetLibrarySearchInput.brands",["cx","fbt","AbstractTypeahead.react","AssetLibraryLogger.brands","AssetLibrarySearchStore.brands","AssetLibraryTypeaheadRenderer.brands","BusinessLabelSearchSource","SearchSourceQueryStatus","joinClasses","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k=10;a=function(a){babelHelpers.inheritsLoose(b,a);function b(b){var e;e=a.call(this,b)||this;e.state={isLoading:!1,queryString:""};e.$3=function(){e.props.onEnterWithoutSelection&&e.props.onEnterWithoutSelection(e.state.queryString)};e.$6=function(a){e.props.autoCompleteOnSelect===!0&&e.setState({queryString:a.getKeywordString()}),c("AssetLibraryLogger.brands").logUserAction("nav_search_item_select",{query:a.getKeywordString(),itemKey:a.getType()}),e.props.onSelectAttempt&&e.props.onSelectAttempt(a)};e.$2=function(a){a=a.target.value;c("AssetLibraryLogger.brands").logUserAction("nav_search",{query:a});e.setState({queryString:a});e.props.onChange&&e.props.onChange(a)};e.$4=function(a,b){b===d("SearchSourceQueryStatus").COMPLETE&&e.setState({isLoading:!1})};e.$5=function(){e.setState({isLoading:!1})};e.$1=new(c("BusinessLabelSearchSource"))(b.businessID,b.use);return e}var e=b.prototype;e.UNSAFE_componentWillReceiveProps=function(a){this.props.clearToggler!==a.clearToggler&&this.setState({queryString:""}),(this.props.businessID!==a.businessID||this.props.use!==a.use)&&(this.$1=new(c("BusinessLabelSearchSource"))(a.businessID,a.use))};e.componentDidMount=function(){var a=c("AssetLibrarySearchStore.brands").getNameFilter();a&&this.setState({queryString:a})};e.render=function(){var a=c("AbstractTypeahead.react");return j.jsx("div",{className:c("joinClasses")(this.props.className,"_18wt"),children:j.jsx(a,{autoHighlight:!0,hideViewWithEntries:!0,placeholder:(a=this.props.placeholder)!=null?a:i._("u641cu7d22u540du79f0u6216u6807u7b7e"),presenter:{ViewRenderer:c("AssetLibraryTypeaheadRenderer.brands"),useLayer:!0,maxEntries:k,extraRendererProps:{isLoading:this.state.isLoading,searchQuery:this.state.queryString,className:"_5mp-"},alwaysVisibleOnFocus:!1},queryString:this.state.queryString,searchSource:this.$1,showEntriesOnFocus:!0,tallInput:!1,onChange:this.$2,onEnterWithoutSelection:this.$3,onEntriesFound:this.$4,onNoEntriesFound:this.$5,onSelectAttempt:this.$6})})};return b}(j.Component);g["default"]=a}),98);
-----
VideoSuggestionsComposerSearchSource",["Cache","SearchSourceQueryStatus","ThisControllerNoLongerExists","WebAsyncSearchSource","debounce"],(function(a,b,c,d,e,f,g){var h=1e3,i=5,j=new(c("Cache"))();a=function(a){babelHelpers.inheritsLoose(b,a);function b(b,e,f,g){var i,j=d("ThisControllerNoLongerExists").__DEADURI__("soa4yzia");b=babelHelpers["extends"]({},b,{bootstrapRequests:[{uri:j}],getAllForEmptyQuery:!0,queryRequests:[{uri:j}]});i=a.call(this,b)||this;i.$VideoSuggestionsComposerSearchSource5=function(){i.$VideoSuggestionsComposerSearchSource2&&i.$VideoSuggestionsComposerSearchSource2.query&&i.$VideoSuggestionsComposerSearchSource2.callback&&!i.$VideoSuggestionsComposerSearchSource7(i.$VideoSuggestionsComposerSearchSource2.query,i.$VideoSuggestionsComposerSearchSource2.callback)&&(i.$VideoSuggestionsComposerSearchSource3&&i.$VideoSuggestionsComposerSearchSource3(),a.prototype.searchImpl.call(babelHelpers.assertThisInitialized(i),i.$VideoSuggestionsComposerSearchSource2.query,i.$VideoSuggestionsComposerSearchSource2.callback,i.$VideoSuggestionsComposerSearchSource2.options)),i.$VideoSuggestionsComposerSearchSource2=null};i.$VideoSuggestionsComposerSearchSource1=e?e:"";i.$VideoSuggestionsComposerSearchSource3=f;i.$VideoSuggestionsComposerSearchSource4=g;i.$VideoSuggestionsComposerSearchSource5=c("debounce")(i.$VideoSuggestionsComposerSearchSource5,h,babelHelpers.assertThisInitialized(i));return i}var e=b.prototype;e.searchImpl=function(a,b,c){b=this.$VideoSuggestionsComposerSearchSource6(a,b),(!a.length||a.length-----
PagintaionSearchSourceCallbackManager",["SearchSourceQueryStatus","immutable"],(function(a,b,c,d,e,f,g){a=function(){function a(a){this.$4=a.parseFn,this.$3=a.matchFn,this.reset()}var b=a.prototype;b.reset=function(){this.$1={},this.$2={}};b.search=function(a,b){var c=this,e=this.$5(a);if(e.size===0){b([],a,d("SearchSourceQueryStatus").COMPLETE);return}e=e.map(function(a){return c.$1[a]}).toArray();b(e,a,d("SearchSourceQueryStatus").COMPLETE)};b.addQueryEntries=function(a,b,c){var d=this;a.forEach(function(a){var b=a.getUniqueID();d.$1[b]=a});var e=this.$4(b).flatValue;this.$2[e]=this.$5(e).union(a.map(function(a){return a.getUniqueID()}));this.search(b,c)};b.$5=function(a){var b=this.$4(a).flatValue;if(Object.prototype.hasOwnProperty.call(this.$2,b))return this.$2[b];var c=this.$6(b);a=this.$7(a,c);this.$2[b]=a;return a};b.$6=function(a){var b=-1,d=null;Object.keys(this.$2).forEach(function(c){a.startsWith(c)&&c.length>b&&(b=c.length,d=c)});return d&&Object.prototype.hasOwnProperty.call(this.$2,d)?this.$2[d]:c("immutable").OrderedSet([])};b.$7=function(a,b){var c=this;return b.filter(function(b){return c.$3(a,c.$1[b].getTitle())})};return a}();g["default"]=a}),98);
-----
MediaManagerInsightsMusicReleasesTracksSearchSource",["fbt","AbstractSearchSource","AdsGraphAPI","MediaManagerInsightsMusicReleasesGlobalConstants","MediaManagerPageAccessTokenStore","SearchSourceQueryStatus","SearchableEntry","debounceCore"],(function(a,b,c,d,e,f,g,h){"use strict";function i(a,b){return b?h._("{track_title}uff08u9650u5236u7ea7u5185u5bb9uff09",[h._param("track_title",a)]).toString():a}a=function(a){babelHelpers.inheritsLoose(b,a);function b(b){var e,g=b.pageId,h=b.selectedIsrcs;h=h===void 0?new Set():h;b=b.debouncePeriod;b=b===void 0?200:b;e=a.call(this)||this;e.request=function(a,b){var g=e.pageId,h=e.selectedIsrcs;c("MediaManagerPageAccessTokenStore").getPageAccessTokenByID(g).then(function(b){return d("AdsGraphAPI").get(f.id).object("page",g).edge("audio_isrcs").get({owner_id:g,access_token:b,date_format:"U",fields:["isrc","canonical_audio_asset{title_with_featured_artists,all_ddex_main_artists,cover_image_source,parental_warning_type,original_release_date}"],filtering:[{field:"audio_asset_fields",operator:"CONTAIN",value:a}]}).then(function(a){return a.data.filter(function(a){return!h.has((a=a.isrc)!=null?a:"")}).map(function(a){var b;return new(c("SearchableEntry"))({uniqueID:a.id,title:i((b=(b=a.canonical_audio_asset)==null?void 0:b.title_with_featured_artists)!=null?b:"",((b=a.canonical_audio_asset)==null?void 0:b.parental_warning_type)==="Explicit"),subtitle:(b=a.canonical_audio_asset)==null?void 0:b.all_ddex_main_artists,photo:(b=(b=a.canonical_audio_asset)==null?void 0:b.cover_image_source)!=null?b:d("MediaManagerInsightsMusicReleasesGlobalConstants").TRACK_COVER_PLACEHOLDER_URL,auxiliaryData:{isrc:a.isrc,releaseDate:(b=a.canonical_audio_asset)==null?void 0:b.original_release_date}})})})}).then(function(c){e.cache.set(a,c),b(c,a,d("SearchSourceQueryStatus").COMPLETE)})["catch"](function(){return b([],a,d("SearchSourceQueryStatus").COMPLETE)})};e.pageId=g;e.cache=new Map();e.debouncedRequest=c("debounceCore")(e.request,b);e.selectedIsrcs=h;return e}var e=b.prototype;e.searchImpl=function(a,b){var c=this.cache.get(a);if(c!=null)return b(c,a,d("SearchSourceQueryStatus").COMPLETE);a&&this.debouncedRequest(a,b)};return b}(c("AbstractSearchSource"));g["default"]=a}),98);
-----
MBSNavigationSearchTypeaheadContainer.react",["BizKitMultiAssetSelectionGating.entrypointutils","CompositeSearchSource","MBSNavigationPageSettingsSearchSource","MBSNavigationSearchTypeahead.react","MBSNavigationSubToolsSearchSource","MBSNavigationToolsSearchSource","RelayHooks","SearchSourceQueryStatus","getIsEligibleForRemovePageDependencyPhase1.entrypointutils","getIsMultiSelectLocalScopeSelector.entrypointutils","getLocalScopesQueryParam","react","useBizKitAssets","useGlobalScope"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=d("react").useState;function a(){var a=i(""),b=a[0],e=a[1];a=i(!1);var f=a[0],g=a[1];a=d("RelayHooks").useRelayEnvironment();var j=d("getIsMultiSelectLocalScopeSelector.entrypointutils").getIsMultiSelectLocalScopeSelector(),k=d("getIsEligibleForRemovePageDependencyPhase1.entrypointutils").getIsEligibleForRemovePageDependencyPhase1(),l=d("BizKitMultiAssetSelectionGating.entrypointutils").getCanSelectMultipleAssetsInSelector(),m=c("useGlobalScope")();m=m.type==="PERSONAL"?null:m.id;var n=c("useBizKitAssets")(["PAGE","INSTAGRAM_ACCOUNT_V2"]),o=n.filter(function(a){return a.type==="PAGE"}),p=null;o.length>0?p=o[0]:n.length>0&&(p=n[0]);var q=null;j&&n.length>0?q=n:n!==null&&p!==null&&(q=k||l?n:[p]);j=[];q!==null&&q.length>0&&(q=c("getLocalScopesQueryParam")(q),j.push(new(c("MBSNavigationToolsSearchSource"))(a,m,q)),j.push(new(c("MBSNavigationSubToolsSearchSource"))(a,m,q)));o.length>0&&j.push(new(c("MBSNavigationPageSettingsSearchSource"))(a,o[0].id));k=new(c("CompositeSearchSource"))(j);l=function(a){a=a.target.value;e(a);a.length===0?g(!1):g(!0)};n=function(){g(!1)};p=function(a,b){b===d("SearchSourceQueryStatus").COMPLETE&&g(!1)};return h.jsx(c("MBSNavigationSearchTypeahead.react"),{handleChange:l,isSearching:f,onEntriesFound:p,onNoEntriesFound:n,queryString:b,searchSource:k})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
AdsTypeaheadFilterAbstractSearchSource",["AbstractSearchSource","AdsTypeaheadFilterInternalUtils","AdsTypeaheadFilterSearchableEntry","SearchSourceQueryStatus"],(function(a,b,c,d,e,f,g){"use strict";a=function(a){babelHelpers.inheritsLoose(b,a);function b(b,c,d){var e;e=a.call(this)||this;e.fieldConfig=function(){return e.config.fields[e.fieldKey]};e.operatorConfig=function(){return e.fieldConfig().operators[e.operatorKey]};e.config=b;e.fieldKey=c;e.operatorKey=d;return e}var e=b.prototype;e.labelForValueString=function(a){var b=this.operatorConfig().typeaheadLabel;b=b===void 0?": ":" "+b.toString()+" ";return this.fieldConfig().label.toString()+b+a};e.search=function(a,b,e){a===""&&e&&e.allowBlank===!0?b([c("AdsTypeaheadFilterSearchableEntry").make(this.config,this.fieldKey,this.operatorConfig().key,this.fieldConfig().label.toString(),d("AdsTypeaheadFilterInternalUtils").emptyValuesByFilterValueType[this.operatorConfig().valueType])],a,d("SearchSourceQueryStatus").COMPLETE):this.searchImpl(a,b,e)};return b}(c("AbstractSearchSource"));g["default"]=a}),98);
-----
AdsEventInfoSearchSource",["AbstractSearchSource","AdsGraphAPI","GraphAPIPaging","SearchSourceQueryStatus","SearchableEntry","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h=["id","name","picture","start_time","place","attending_count","interested_count"],i=new Map(),j=new Map();function k(a,b){return a!=null&&a.toLowerCase().includes(b.toLowerCase())}function l(a){return function(b){if(k(b.name,a))return!0;if(b.start_time){var c=new Date(b.start_time).toLocaleString();if(c.includes(a))return!0}if(b.place){if(k(b.place.name,a))return!0;if(b.place.location&&(k(b.place.location.city,a)||k(b.place.location.state,a)||k(b.place.location.country,a)))return!0}return b.id&&b.id.includes(a)?!0:!1}}a=function(a){babelHelpers.inheritsLoose(b,a);function b(b,c){var d;d=a.call(this)||this;d.$AdsEventInfoSearchSource1=b;d.$AdsEventInfoSearchSource2=c;return d}var e=b.prototype;e.bootstrapImpl=function(a){var b=this,e=this.$AdsEventInfoSearchSource2==="fb_event_ticket_engaged"||this.$AdsEventInfoSearchSource2==="fb_event_purchase_ticket"||this.$AdsEventInfoSearchSource2==="fb_event_cancel_ticket"?["onsite_ticket"]:null;c("promiseDone")(d("AdsGraphAPI").get(f.id).me().edge("promotable_events").batched().get({include_past_events:!0,is_page_event:!0,fields:h,page_id:this.$AdsEventInfoSearchSource1,include_unfiltered_owned_events:!0,promotable_event_types:e}).then(d("GraphAPIPaging").eachPage(function(a){var c=i.get(b.$AdsEventInfoSearchSource1);c instanceof Array?i.set(b.$AdsEventInfoSearchSource1,c.concat(a.data)):i.set(b.$AdsEventInfoSearchSource1,a.data)})),function(c){i.set(b.$AdsEventInfoSearchSource1,c.data),a()},function(c){i.set(b.$AdsEventInfoSearchSource1,[]),a()})};b.createSearchableEntry=function(a){return new(c("SearchableEntry"))({uniqueID:a.id,title:a.name,auxiliaryData:{place:a.place,interested_count:a.interested_count,attending_count:a.attending_count,start_time:a.start_time,picture:a.picture}})};b.getDataFromID=function(a){return d("AdsGraphAPI").get(f.id).object("promotable_event",a).batched().get({fields:h})};e.searchImpl=function(a,c,e){var f=[];e=i.get(this.$AdsEventInfoSearchSource1);if(e===void 0){c(f,a,d("SearchSourceQueryStatus").ACTIVE);return}e=e.filter(l(a));e.forEach(function(a){a=b.createSearchableEntry(a);f.push(a)});c(f,a,d("SearchSourceQueryStatus").COMPLETE)};e.getBootstrappedEntries=function(a){var b=this;this.bootstrap(function(){return b.search("",a)})};b.getInstance=function(a,c){var d=a;c&&(d=a+c);var e=j.get(d);if(!e){a=new b(a,c);j.set(d,a);return a}return e};return b}(c("AbstractSearchSource"));g["default"]=a}),98);
-----
SignalsDSAssignAndTrackingTable.react",["fbt","ix","BUICheckboxInput_DEPRECATED.react","BUILink.react","BUISwitch_DEPRECATED.react","BUITable.react","BUITableColumn.react","BUIText.react","BUITextInput.react","BUITooltip.react","BusinessURI.brands","FixedDataTableSortableHeader.react","GeoSpinner.react","LoadObject","SearchSourceQueryStatus","SignalsDSAssignAndTrackingConfig","SignalsTooltipInfo.react","immutable","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");a=d("react").PureComponent;b=4;var k=60,l=40,m=40,n=370,o=150,p=l+k*b,q=m+n+o,r=i("403740"),s=h._("u6309u540du79f0u6216u7f16u53f7u641cu7d22u5e7fu544au5e10u6237"),t=h._("u641cu7d22u5e7fu544au5e10u6237"),u=h._("u9009u62e9u5e7fu544au5e10u6237"),v=h._("u5e7fu544au5e10u6237"),w=h._("u81eau52a8u8ffdu8e2a"),x=h._("u6253u5f00u81eau52a8u8ffdu8e2auff0cu6240u6709u5e7fu544au7cfbu5217u90fdu4f7fu7528u8fd9u4e2au4e8bu4ef6u96c6u8fdbu884cu8ffdu8e2au548cu5f52u56e0u3002"),y=h._("u4f60u4e0du80fdu5c06u6b64u4e8bu4ef6u96c6u5206u914du7ed9u5171u7528u5e7fu544au5e10u6237uff0cu56e0u4e3au4f60u7684u5546u52a1u7ba1u7406u5e73u53f0u53eau6709u8fd9u4e2au5e7fu544au5e10u6237u7684u5206u6790u5458u6743u9650u3002");e=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var f=arguments.length,g=new Array(f),h=0;h0?j.jsx("div",{className:"x6s0dn4 x78zum5 x1pg5gke x5yr21d xl56j7k xh8yej3",children:j.jsx(c("BUICheckboxInput_DEPRECATED.react"),{label:u,labelIsHidden:!0,value:F,onChange:this.$5})}):j.jsx("div",{});F={headers:[f,D,E]};f=d?j.jsx(c("GeoSpinner.react"),{}):null;D=z.isEmpty()&&!d?j.jsx(c("BUIText.react"),{size:"meta1",children:h._("u627eu4e0du5230u7b26u5408u641cu7d22u6761u4ef6u7684u5e7fu544au5e10u6237u3002")}):null;E=f!=null||D!=null?j.jsxs("div",{className:"x6s0dn4 x78zum5 xl56j7k x1cnzs8 xc73u3c xx6bls6 x5ib6vp",children:[f,D]}):null;return j.jsxs("div",{children:[j.jsx("div",{className:"x12nagc xewp6mh",children:j.jsx(c("BUITextInput.react"),{label:t,labelIsHidden:!0,placeholder:s,value:e,onChange:this.$3})}),j.jsxs(c("BUITable.react"),{borders:"all",headerProps:{height:l,item:F},items:z,maxHeight:p,rowHeight:k,width:q,children:[j.jsx(c("BUITableColumn.react"),{cell:A,header:C,width:m}),j.jsx(c("BUITableColumn.react"),{cell:i,header:C,width:n}),j.jsx(c("BUITableColumn.react"),{cell:B,header:C,width:o})]}),E]})};return b}(a);g["default"]=e}),98);
-----
BusinessUnifiedNavSearchSource",["AbstractSearchSource","BusinessTypeaheadUtils.brands","BusinessUnifiedNavigationDataKey","BusinessUnifiedNavigationDataProvider","BusinessUnifiedNavigationSections","SearchSourceQueryStatus","unionArrays"],(function(a,b,c,d,e,f,g){"use strict";var h=c("BusinessUnifiedNavigationDataProvider").toFluxStore();a=function(a){babelHelpers.inheritsLoose(b,a);function b(b,c){var d;d=a.call(this)||this;d.$BusinessUnifiedNavSearchSource1=b;d.$BusinessUnifiedNavSearchSource2=c;return d}var e=b.prototype;e.searchImpl=function(a,b){a||b([],a);var e=this.$BusinessUnifiedNavSearchSource1!==null?new(c("BusinessUnifiedNavigationDataKey"))({businessID:this.$BusinessUnifiedNavSearchSource2}):new(c("BusinessUnifiedNavigationDataKey"))({localScopeID:this.$BusinessUnifiedNavSearchSource1,localScopeType:"ad-account",businessID:this.$BusinessUnifiedNavSearchSource2});e=h.getState().navigationDataMap.get(e);e.hasValueWithoutError()||b([],a,d("SearchSourceQueryStatus").ACTIVE);var f=[];e=e.mapValue(function(a){return a.sections.filter(function(a){return a.sectionType!==c("BusinessUnifiedNavigationSections").FREQUENTLY_USED})});for(var e=(e=e.getValue())!=null?e:[],g=Array.isArray(e),i=0,e=g?e:e[typeof Symbol==="function"?Symbol.iterator:"@@iterator"]();;){var j;if(g){if(i>=e.length)break;j=e[i++]}else{i=e.next();if(i.done)break;j=i.value}j=j;f=c("unionArrays")(f,j.items)}j=f.filter(function(b){return b.displayedName.toString().toLowerCase().includes(a.toLowerCase())});i=d("BusinessTypeaheadUtils.brands").getEntriesFromBusinessUnifiedNavigationItems(j,"ad-tool");b(i,a,d("SearchSourceQueryStatus").COMPLETE)};return b}(c("AbstractSearchSource"));g["default"]=a}),98);
-----
BusinessTypeaheadContainer.brands",["fbt","AppLogger.brands","BusinessAsyncSearchSource","BusinessCompositeSearchSource_DEPRECATED","BusinessSearchTypeaheadResultItemType","BusinessTypeahead.brands","BusinessTypeaheadContext","BusinessTypeaheadUtils.brands","BusinessUnifiedNavSearchSource","BusinessUnifiedNavigationLogger","GlobalSearchConfig.brands","ScenarioUnifiedNavigationProvider.react","SearchSourceQueryStatus","URI","guid","react","sortBy"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");a=function(a){babelHelpers.inheritsLoose(b,a);function b(b){var e;e=a.call(this,b)||this;e.$11=function(){e.$4=new Date(),e.$1=e.$6(),e.$2=!1,e.$14("search_session_start"),c("BusinessUnifiedNavigationLogger").log("search_button_click","app_init")};e.$8=function(){e.$2||(e.$14("search_session_cancel",{timeSpent:new Date().getTime()-e.$4}),c("BusinessUnifiedNavigationLogger").log("search_modal_close","search_button_click",{queryString:e.state.queryString}))};e.$10=function(a,b){b===d("SearchSourceQueryStatus").COMPLETE&&(e.setState({isLoading:!1,noEntriesFound:!1}),e.$15(a.length))};e.$12=function(){e.setState({isLoading:!1,noEntriesFound:!0}),e.$15(0)};e.$9=function(a){a=a.target.value;a===""?(e.$14("search_session_reset"),c("BusinessUnifiedNavigationLogger").log("search_input_reset","search_button_click")):d("ScenarioUnifiedNavigationProvider.react").scenarioFunc.startSearch();c("BusinessUnifiedNavigationLogger").log("search_input_change","search_button_click",{queryString:a});e.setState({queryString:a,isLoading:!0})};e.$13=function(a,b,f){e.$2=!0;var g=a.getURI(),h=a.getAuxiliaryData();if(h&&h.action){h=f==="settings"?h.action.settings_uri:h.action.uri;g=new(c("URI"))(h)}g||(g=d("BusinessTypeaheadUtils.brands").getBusinessSettingLink(e.props.businessID,a));e.$14("search_session_selection",{serverOrder:a.getOrder(),group:a.getType(),clientOrder:a.bizSeachIndex,clientOrderInGroup:a.bizSearchIndexInGroup,selectedActionType:f||"default",landingURI:g&&g.toString(),timeSpent:new Date().getTime()-e.$4});c("BusinessUnifiedNavigationLogger").log("search_select","search_button_click",{queryString:e.state.queryString});h=a.getType();Object.prototype.hasOwnProperty.call(c("GlobalSearchConfig.brands"),h)?c("GlobalSearchConfig.brands")[h].onCustomSelectAttempt(a,b,f):window.open(g,"_blank")};e.$7=function(a){a=c("sortBy")(a,function(a){return e.$16(a.getType())});var b=0,d=null;for(var f=0;f0?"search_entries_found":"search_entries_not_found","search_input_change",{queryString:this.state.queryString}),d("ScenarioUnifiedNavigationProvider.react").scenarioFunc.searchResultsLoaded())};e.$16=function(a){return Object.keys(c("BusinessSearchTypeaheadResultItemType")).indexOf(a)};e.$6=function(){return Date.now()+"-"+c("guid")()};return b}(i.Component);a.contextType=c("BusinessTypeaheadContext");g["default"]=a}),98);
-----
BusinessCompositeSearchSource_DEPRECATED",["AdsAccountStore","BusinessSearchConfig","BusinessTypeaheadUtils.brands","BusinessUnifiedNavigationDataKey","BusinessUnifiedNavigationDataProvider","BusinessUnifiedNavigationSections","CompositeSearchSource","SearchSourceQueryStatus","immutable"],(function(a,b,c,d,e,f,g){"use strict";var h=c("BusinessUnifiedNavigationDataProvider").toFluxStore();a=function(a){babelHelpers.inheritsLoose(b,a);function b(b){return a.call(this,b)||this}var e=b.prototype;e.searchImpl=function(b,e,f){f===void 0&&(f={});if(b===""){var g=c("AdsAccountStore").getSelectedAccountID(),i=c("AdsAccountStore").getSelectedBusinessID();g=h.getState().navigationDataMap.get(g!=null?new(c("BusinessUnifiedNavigationDataKey"))({localScopeID:g,localScopeType:"ad-account",businessID:i}):new(c("BusinessUnifiedNavigationDataKey"))({businessID:i}));if(!g.hasValueWithoutError())e([],b,d("SearchSourceQueryStatus").ACTIVE);else{g=(i=g.getValueEnforcing().sections.find(function(a){return a.sectionType===c("BusinessUnifiedNavigationSections").FREQUENTLY_USED}))==null?void 0:i.items;if(g==null)e([],b,d("SearchSourceQueryStatus").COMPLETE);else{i=d("BusinessTypeaheadUtils.brands").getEntriesFromBusinessUnifiedNavigationItems(g,"recently_used");e(i,b,d("SearchSourceQueryStatus").COMPLETE)}}return}g=function(a,b,d){var f=c("immutable").List(a).groupBy(function(a){return a.getType()}).toArray(),g=[],h={},i=0;while(i=k.length)continue;g.push(k[h[j]]);h[j]++;i++}e(g,b,d)};a.prototype.searchImpl.call(this,b,g,f)};return b}(c("CompositeSearchSource"));g["default"]=a}),98);
-----
BusinessUnifiedNavigationToolsSearchSource",["AbstractSearchSource","SearchSourceQueryStatus","SearchableEntry","businessUnifiedNavigationItemsDataSelector","guid","unionArrays"],(function(a,b,c,d,e,f,g){"use strict";function h(a,b){var d=[];for(var e=0;e=e.length)break;j=e[i++]}else{i=e.next();if(i.done)break;j=i.value}j=j;f=c("unionArrays")(f,j.items)}j=h(f.filter(function(b){return b.displayedName.toString().toLowerCase().includes(a.toLowerCase())}),"ad-tool");b(j,a,d("SearchSourceQueryStatus").COMPLETE)}}return};return b}(c("AbstractSearchSource"));g["default"]=a}),98);
-----
BusinessUnifiedNavigationSearchTypeaheadContainer.react",["AdsHelpTrayPushCmsIdDataAction","BusinessAsyncSearchSource","BusinessCompositeSearchSource","BusinessTypeaheadContext","BusinessTypeaheadUtils.brands","BusinessUnifiedNavigationLogger","BusinessUnifiedNavigationSearchResultItemType","BusinessUnifiedNavigationSearchTypeahead.react","BusinessUnifiedNavigationToolsSearchSource","QuickPerformanceLogger","SearchSourceQueryStatus","URI","isEmpty","qpl","react","sortBy"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var f=arguments.length,g=new Array(f),h=0;h-----
ScenarioUnifiedNavigationProvider.react",["AdsMgmtPerfScenarioController","BusinessTypeaheadContext","SearchSourceQueryStatus","debounce","guid","promiseDone","react","waitForDoubleRAF"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i=500,j=c("guid")(),k=d("SearchSourceQueryStatus").ACTIVE,l=c("debounce")(function(){c("AdsMgmtPerfScenarioController").endScenarioAbandon(j,"outside_flux",null),k!==d("SearchSourceQueryStatus").COMPLETE&&(j=c("AdsMgmtPerfScenarioController").startScenario({name:"am:global_nav_bar:search"},"outside_flux",null))},i);function a(){k=d("SearchSourceQueryStatus").ACTIVE,l()}function b(){c("promiseDone")(c("waitForDoubleRAF")(),function(){k=d("SearchSourceQueryStatus").COMPLETE,c("AdsMgmtPerfScenarioController").endScenarioSuccess(j,"outside_flux",null)})}function e(){k=d("SearchSourceQueryStatus").COMPLETE,c("AdsMgmtPerfScenarioController").endScenarioFail(j,"outside_flux",null)}var m={startSearch:a,searchResultsLoaded:b,searchFailed:e};function n(a){return h.jsx(c("BusinessTypeaheadContext").Provider,{value:m,children:a.children})}n.displayName=n.name+" [from "+f.id+"]";g.scenarioFunc=m;g.ScenarioUnifiedNavigationProvider=n}),98);
-----
FreeformSearchSource",["AbstractSearchSource","RegexMatchSearchSource","SearchSourceQueryStatus","SearchableEntry"],(function(a,b,c,d,e,f,g){a=function(a){babelHelpers.inheritsLoose(b,a);function b(b,d,e){var f;f=a.call(this)||this;f.$FreeformSearchSource1=b;f.$FreeformSearchSource2=new(c("RegexMatchSearchSource"))("\S+");f.$FreeformSearchSource3=d;f.$FreeformSearchSource4=e;return f}var e=b.prototype;e.getBootstrappedEntries=function(a){return this.$FreeformSearchSource1.getBootstrappedEntries?this.$FreeformSearchSource1.getBootstrappedEntries(a):null};e.bootstrapImpl=function(a){this.$FreeformSearchSource1.bootstrapImpl(a)};e.validateQuery=function(a){return a.length>=this.$FreeformSearchSource4};e.searchImpl=function(a,b,e){var f=this;this.$FreeformSearchSource2.searchImpl(a,function(g,h){var i=[];g.length===1&&f.validateQuery(h)&&(i=[new(c("SearchableEntry"))({uniqueID:g[0].getUniqueID(),title:f.$FreeformSearchSource3(g[0].getTitle().trim())})],b(i,a));f.$FreeformSearchSource1.searchImpl(a,function(a,c){a.length>0&&b(a.concat(i),c,d("SearchSourceQueryStatus").COMPLETE)},e)},e)};return b}(c("AbstractSearchSource"));g["default"]=a}),98);
-----
AdsProspectingAudienceSearchSource",["AbstractSearchSource","AsyncRequest","SearchSourceQueryStatus","SearchableEntry","XAdsTargetingProspectingAudienceSourceTypeaheadController"],(function(a,b,c,d,e,f,g){"use strict";a=function(a){babelHelpers.inheritsLoose(b,a);function b(b){var c;c=a.call(this)||this;c.$AdsProspectingAudienceSearchSource1=b.accountID;return c}var e=b.prototype;e.bootstrapImpl=function(a){this.search("",a)};e.searchImpl=function(a,b,d){var e=this;a=c("XAdsTargetingProspectingAudienceSourceTypeaheadController").getURIBuilder().setInt("account_id",this.$AdsProspectingAudienceSearchSource1).getURI();new(c("AsyncRequest"))().setURI(a).setHandler(function(a){e.$AdsProspectingAudienceSearchSource2(a.payload,b)}).setErrorHandler(function(a){}).send()};e.$AdsProspectingAudienceSearchSource2=function(a,b){var e=[];a.entries.forEach(function(a){a=new(c("SearchableEntry"))({uniqueID:a.uid,title:a.title,subtitle:a.subtitle,auxiliaryData:{type:a.type,subtype:a.subtype}});e.push(a)});b(e,"",d("SearchSourceQueryStatus").COMPLETE)};b.getInstance=function(a){return new b(a)};return b}(c("AbstractSearchSource"));g["default"]=a}),98);
-----
AdsAudienceSearchSource",["AbstractSearchSource","AdsAudienceDataSourceUtils","AdsAudienceMode","AdsAudienceTypeaheadConstants","AdsCustomAudienceType","AdsGraphAPI","AdsOnsiteDonateAdsUtils","AdsTargetingReachEstimateConstant","CustomAudienceUtils","SearchSourceQueryStatus","SearchableEntry","cachedGraphAPI","debounce","gkx","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h=Math.random(),i=c("gkx")("1614825"),j=c("debounce")(function(a,b){c("promiseDone")(c("cachedGraphAPI")(d("AdsGraphAPI").get(f.id).search("customaudience")).get(a,"customAudiencesSearch"),function(a){return b(a.data)})},d("AdsAudienceTypeaheadConstants").DEBOUNCE_TIME);a=function(a){babelHelpers.inheritsLoose(b,a);function b(b,d,e){b=a.call(this)||this;e!==h||(b.accountID=d.accountID,b.businessUnitID=d.businessUnitID,b.isAdAccountAdmin=d.isAdAccountAdmin,b.isPersonalAdAccount=d.isPersonalAdAccount,b.shouldUseSnapshotForDynamicCA=!!d.shouldUseSnapshotForDynamicCA,b.inclusionExclusionMode=d.inclusionExclusionMode||c("AdsAudienceMode").INCLUDE,b.isOnsiteDonateAd=d.isOnsiteDonateAd,b.isReporting=d.isReporting,b.advantageAudienceCAExclusionSectionEnabled=d.advantageAudienceCAExclusionSectionEnabled);return b}var e=b.prototype;e.bootstrapImpl=function(a){this.search("",a)};e.bootstrapEntries=function(a){this.search("",a)};e.searchImpl=function(a,b,c){c=c||{};c.q=a;c.account_id=this.accountID;c.business_unit_id=this.businessUnitID;c.limit=d("AdsAudienceTypeaheadConstants").MAX_ENTRIES_TO_RENDER;c.include_snapshot_audiences=this.shouldUseSnapshotForDynamicCA;j(c,this.$AdsAudienceSearchSource1.bind(this,a,b))};e.$AdsAudienceSearchSource1=function(a,b,e){var f=this,g=[];e.forEach(function(b){var e=b.data_source;if(f.isReporting===!0&&!c("AdsAudienceDataSourceUtils").isAllowedByForReporting(e))return;if(f.advantageAudienceCAExclusionSectionEnabled===!0&&!c("AdsAudienceDataSourceUtils").isAllowedByAdvantageAudienceCAExclusion(e))return;var h=!1;!f.isOnsiteDonateAd&&(d("AdsOnsiteDonateAdsUtils").isFundraiserDonateOrCreateCustomAudienceRule(b.rule)||d("AdsOnsiteDonateAdsUtils").isFundraiserDonateOrCreateCustomAudienceRule(b.rule_v2))&&(h=!0);if(c("AdsAudienceDataSourceUtils").isDisallowedByDataSource(e))return;if(parseInt(b.subtype,10)===c("AdsCustomAudienceType").SUBTYPE_TO_ENUM_MAP.PARTNER)return;var j=!1;f.shouldUseSnapshotForDynamicCA&&!i&&(j=c("AdsAudienceDataSourceUtils").isDisallowedDynamicCA(e),f.inclusionExclusionMode===c("AdsAudienceMode").EXCLUDE&&(j=j||c("AdsAudienceDataSourceUtils").isNotExcludableDynamicCA(e)));e=!d("CustomAudienceUtils").isOwnedByCurrentAccount(b,f.accountID)&&b.status_code===470;j=new(c("SearchableEntry"))({uniqueID:b.audience_id,title:b.name,subtitle:c("AdsAudienceDataSourceUtils").textForTypeInUI(b,f.accountID),auxiliaryData:{dataSource:b.data_source,customer_file_source:b.customer_file_source,disabled:j||h,isFundraiserCustomAudienceDisabled:h,isOwnerAccountDisabled:e,description:b.description,isAdAccountAdmin:f.isAdAccountAdmin,isPersonalAdAccount:f.isPersonalAdAccount,is_snapshot:b.is_snapshot,is_value_based:b.is_value_based,lookalikeSpec:b.lookalike_spec,lookalike_type:b.lookalike_type,is_maca_or_app_based_lal:b.is_maca_or_app_based_lal,is_wca_or_pixel_based_lal:b.is_wca_or_pixel_based_lal,matchedText:a,reach:b.approximate_count<=d("AdsTargetingReachEstimateConstant").LOW_REACH_SIZE?b.approximate_count===d("AdsTargetingReachEstimateConstant").ERROR_SIZE?"Not available":"Fewer than 1000":b.approximate_count,reach_lower_bound:b.approximate_count_lower_bound<=d("AdsTargetingReachEstimateConstant").LOW_REACH_SIZE?b.approximate_count_lower_bound===d("AdsTargetingReachEstimateConstant").ERROR_SIZE?"Not available":"Fewer than 1000":b.approximate_count_lower_bound,reach_upper_bound:b.approximate_count_upper_bound<=d("AdsTargetingReachEstimateConstant").LOW_REACH_SIZE?b.approximate_count_upper_bound===d("AdsTargetingReachEstimateConstant").ERROR_SIZE?"Not available":"Fewer than 1000":b.approximate_count_upper_bound,owner_account_info:b.owner_account_info,regulated_audience_spec:b.regulated_audience_spec,rule:b.rule,rule_v2:b.rule_v2,time_created:b.time_created,subtype:b.subtype,sharing_status:b.sharing_status,value_based_eligible_source:b.value_based_eligible_source,operation_status:{code:b.status_code},is_eu_privacy_directive_impacted:b.status_code===202,allowed_catalog_segments:b.allowed_catalog_segments,allow_new_campaigns:b.allow_new_campaigns,campaign_creation_typeahead_error:b.campaign_creation_typeahead_error}});g.push(j)});b(g,a,d("SearchSourceQueryStatus").COMPLETE)};b.getInstance=function(a){return new b(null,a,h)};return b}(c("AbstractSearchSource"));f.exports=a}),34);
-----
AdsProductItemPropertySearchSource",["AbstractSearchSource","AdsDynamicPreviewGraphAPIUtils","AdsGraphAPI","CatalogItemTypeUtils","DynamicItemsTableUtils","Promise","SearchSourceQueryStatus","SearchableEntry","TokenizeUtil","getDynamicItemSetFieldConfig","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h=new Map();function i(a,b){var c=a.getOrder(),d=b.getOrder();return c===d?a.getTitle()>b.getTitle()?1:-1:c>d?1:-1}a=function(a){babelHelpers.inheritsLoose(e,a);e.getInstance=function(a,b,c,d,f,g,i){var j=e.getInstanceID(a,b,c,d,f,g,i);h.has(j)||h.set(j,new e(a,b,c,d,f,g,i));return h.get(j)};e.getInstanceID=function(a,b,c,d,e,f,g){a=a+"_"+b+"_"+d;c&&(a+="_includeQueryString");e&&(a+="_"+e);f&&(a+="_"+f);g&&(a+="_"+g.toString());return a};function e(b,c,d,e,f,g,h){var i;i=a.call(this)||this;i.$AdsProductItemPropertySearchSource2=new Map();i.productCatalogID=b;i.property=c;i.includeQueryString=d;i.catalogItemType=e;i.wcaOperator=f;i.limit=g;i.isProductReturns=h;i.$AdsProductItemPropertySearchSource1=new Map();return i}var g=e.prototype;g.bootstrapImpl=function(a){this.search("",a)};g.searchImpl=function(a,e,g){var h=this;if(this.$AdsProductItemPropertySearchSource1.has(a)){e(this.$AdsProductItemPropertySearchSource1.get(a),a,d("SearchSourceQueryStatus").COMPLETE);return}e([],a,d("SearchSourceQueryStatus").ACTIVE);g=this.$AdsProductItemPropertySearchSource2.get(a)||[];g.push(e);this.$AdsProductItemPropertySearchSource2.set(a,g);if(g.length>1)return;var j=function(b){var e=[],f={},g=function(d){var g=h.$AdsProductItemPropertySearchSource3(b[d]);g&&g.forEach(function(i){if(!i||f[i])return;g=new(c("SearchableEntry"))({uniqueID:i,title:i,order:h.$AdsProductItemPropertySearchSource4(a,i),auxiliaryData:b[d]});e.push(g);f[i]=!0})};for(var j=0;j-----
BIGUniversalAdAccountSelectorContainer.react",["AdsAccountInBusinessSearchSource","AdsAccountIncludingCrStSearchSource","AdsAccountSearchSource","AdsAccountWithCapabilitySearchSource","AdsAccountWithUserPermissionsSearchSource","BIGUniversalAdAccountSelector.react","SearchSourceQueryStatus","createCancelableFunction","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,e;for(var f=arguments.length,g=new Array(f),h=0;h-----
AdsLocationSearchSource",["AbstractSearchSource","AdsApplicationUtils","AdsGraphAPI","AdsInterfacesLogger","AdsTargetingLocationDataTransformer","AdsTargetingLocationLoggingEvents","CurrentLocale","GraphAPISearchConstants","LocationConstants","Promise","SearchSourceQueryStatus","SearchableEntry","adsTargetingLocationGetLocationFullName","cachedGraphAPI","debounce","nullthrows","promiseDone","requireWeak"],(function(a,b,c,d,e,f,g){"use strict";var h="adgeolocation";a=200;var i=0,j=10,k=5e3,l=10,m,n=[],o=[],p=[];function q(a,b){var c=[];a=a.slice();while(a.length>0)c.push(a.splice(0,b));return c}var r=c("debounce")(function(a,b){c("promiseDone")(d("AdsGraphAPI").get(f.id).search(h).get(babelHelpers["extends"]({},a,{locale:c("CurrentLocale").get()})),function(a){b(a.data)},function(a){d("AdsApplicationUtils").isPowerEditor()&&c("requireWeak")("AdsMgmtPerfScenarioController",function(b){e=b,e.endScenariosWithTrigger("am_edit_targeting_search_targeting_typeahead_fail","location_typeahead",null,{error_code:a==null?void 0:a.code,message:a==null?void 0:a.message})})})},a);function s(a,b,e){var f=b.allowedCountryList,g=b.disallowedCountryList,h=b.disallowedLocationTypes;b=b.selectedLocationType;e===void 0&&(e=!1);a={qs:a,limit:j,place_fallback:!0,bulk_upload:e};f&&f.length>0&&(a.allowed_countries=f);g&&g.length>0&&(a.disallowed_countries=g);if(h&&h.size>0){e=b&&b!=="all"&&!c("nullthrows")(h).has(b)?[b]:d("LocationConstants").locationTypes;a.location_types=e.filter(function(a){return!c("nullthrows")(h).has(a)}).map(d("LocationConstants").getSingularLocationType)}else b&&b!=="all"&&(a.location_types=[d("LocationConstants").getSingularLocationType(b)]);return a}function t(a,b,e,g,i){i===void 0&&(i=!1);e=s(a,e,i);c("promiseDone")(d("AdsGraphAPI").get(f.id).search(h).get(babelHelpers["extends"]({},e,{location_types:[d("LocationConstants").getSingularLocationType(b)],locale:c("CurrentLocale").get(),return_no_matches:!0})),function(c){c.data&&c.data.length?(n=n.concat(c.data.filter(function(a){return a.category!="no_match"}).map(function(a){a.type=b;return a})),o=o.concat(c.data.filter(function(a){return a.category=="no_match"}).map(function(a){return a.key}))):o=o.concat(a),g()},function(){o=o.concat(a),g()})}function u(a,b){var e=a.map(function(a){var b=a.indexOf(":");if(b===-1)return"US:"+a;else return a.substring(0,b).toUpperCase()+a.substring(b)});c("promiseDone")(d("AdsGraphAPI").get(f.id).search(d("GraphAPISearchConstants").ADGEOLOCATIONMETA).get({zips:e,locale:c("CurrentLocale").get()}),function(c){var f=c.data&&c.data.zips||{};e.forEach(function(b,c){if(b in f){var e;b=babelHelpers["extends"]({},f[b]);b.name=(e=b.name)==null?void 0:e.split(", ")[0];b.type=d("LocationConstants").ZIPS;n.push(b)}else o.push(a[c])});b()},function(){o=a,b()})}a=function(a){babelHelpers.inheritsLoose(e,a);e.getInstance=function(){m||(m=new e());return m};function e(){var b;b=a.call(this)||this;return m?m||babelHelpers.assertThisInitialized(b):b}var g=e.prototype;g.onValidateProgress=function(a){this.$AdsLocationSearchSource1=a};g.reportProgress=function(a){this.$AdsLocationSearchSource1&&this.$AdsLocationSearchSource1(a)};g.validate=function(a,b,c,e,f){f===void 0&&(f=!1);var g=function(){var a=n.map(function(a){return d("AdsTargetingLocationDataTransformer").searchDataToDataStore(a,!!e.countryAsObject)});c(a,o)};n=[];o=[];var h=d("LocationConstants").BULK_INUT_GEO_MARKET_INPUT_FORMAT;if(b===d("LocationConstants").ZIPS){if(a.length<=d("LocationConstants").getMaxTargetLocationsCount(d("LocationConstants").ZIPS)){u(a,g);return}var i=q(a,k),j=function a(){var b=i.shift();b?u(b,a):g()};j()}else b===d("LocationConstants").CUSTOM_LOCATIONS?this.validateCustomLocations(a,g):b===d("LocationConstants").GEO_MARKETS&&e.geoMarketInputFormat===h.CODE?this.$AdsLocationSearchSource2(a,g):this.validateChunk(a,b,g,e,f)};g.validateChunk=function(a,d,e,f,g){g===void 0&&(g=!1);var h=new(b("Promise"))(function(b,c){t(a,d,f,b,g)});c("promiseDone")(h,e)};g.$AdsLocationSearchSource2=function(a,b){c("promiseDone")(d("AdsGraphAPI").get(f.id).search(d("GraphAPISearchConstants").ADGEOLOCATIONMETA).get({geo_markets:a,locale:c("CurrentLocale").get()}),function(c){var e=c.data[d("LocationConstants").GEO_MARKETS]||{};a.forEach(function(a){if(a in e){var b=babelHelpers["extends"]({},e[a]);b.type=d("LocationConstants").GEO_MARKETS;n.push(b)}else o.push(a)});b()},function(){o=a,b()})};g.validateCustomLocations=function(a,e){var f=this;a=a.map(function(a){return new(b("Promise"))(function(b,c){f.validateAddress(a,function(c,e,f){c||!e?o.push(a):f!=null&&n.push(d("AdsTargetingLocationDataTransformer").geoCoderDataToSearchData(f)),b()})})});c("promiseDone")(b("Promise").all(a),function(){return e(n,o)})};g.validateAddress=function(a,b){a=c("cachedGraphAPI")(d("AdsGraphAPI").get(f.id).root("ads_geo_coding")).cacheFor(l).get({locale:c("CurrentLocale").get(),confirm:1,address:a});c("promiseDone")(a,function(a){a=a.data;a=a[0];!a||a&&a.confirmed===!1?b(null,!1):b(null,!0,a)},function(a){return b(a.code,!1)})};g.searchImpl=function(a,b,c){a.length<=i&&b([],a),c=c||{},r(s([a],c),this.$AdsLocationSearchSource3.bind(this,a,b,c))};g.$AdsLocationSearchSource3=function(a,b,e,f){if(a.length<=i)return;f.forEach(function(a){a.type=d("LocationConstants").getPluralLocationType(a.type)});var g=[];(!f||!f.length)&&c("AdsInterfacesLogger").log({eventName:c("AdsTargetingLocationLoggingEvents").GEO_LOCATION_NO_MATCH},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP);var h=e.disallowedLocationTypes||new Set(),j={};f.map(function(b,d){if(!j[b.key]){j[b.key]=!0;var f=h.has(b.type);if(f)return;f=e.bulkInputEntry?c("adsTargetingLocationGetLocationFullName")(b):b.name;if(f!=null){f=new(c("SearchableEntry"))({uniqueID:b.key,title:f,type:b.type,order:d,auxiliaryData:babelHelpers["extends"]({matchedText:a},b)});g.push(f)}}});p=f;if(g.length===0&&!h.has(d("LocationConstants").CUSTOM_LOCATIONS)){f=new(c("SearchableEntry"))({uniqueID:a,title:a,type:d("LocationConstants").CUSTOM_LOCATIONS,auxiliaryData:{matchedText:a,type:d("LocationConstants").CUSTOM_LOCATIONS,showSearchLabel:!0,key:a,name:a}});g.push(f)}b(g,a,d("SearchSourceQueryStatus").COMPLETE)};g.getCurrentRawResult=function(){return p};return e}(c("AbstractSearchSource"));g["default"]=a}),98);
-----
SearchSourceQueryStatus",[],(function(a,b,c,d,e,f){a="ACTIVE";b="COMPLETE";f.ACTIVE=a;f.COMPLETE=b}),66);
-----
SearchSourceCallbackManager",["invariant","SearchSourceQueryStatus","createObjectFrom","nullthrows"],(function(a,b,c,d,e,f,g,h){a=function(){function a(a){this.$9=a.parseFn,typeof this.$9==="function"||h(0,4065),this.$8=a.matchFn,typeof this.$8==="function"||h(0,4066),this.$2=a.alwaysPrefixMatch||!1,this.$6=a.indexFn||i,this.$4=a.exclusions||{},this.reset()}var b=a.prototype;b.search=function(a,b){var c=this.$13(a,b);if(c)return 0;this.$1.push({queryString:a,callback:b});c=this.$1.length-1;this.$10.push(c);return c};b.$13=function(a,b){var c=this,e=this.$14(a),f=!!this.$5[a];if(!e.length){b([],a,f?d("SearchSourceQueryStatus").COMPLETE:d("SearchSourceQueryStatus").ACTIVE);return f}e=e.map(function(a){return c.$3[a]});b(e,a,f?d("SearchSourceQueryStatus").COMPLETE:d("SearchSourceQueryStatus").ACTIVE);return f};b.$15=function(){var a=this.$10;this.$10=[];a.forEach(this.$16,this)};b.$16=function(a){var b=this.$1[a];if(!b)return;b=this.$13(b.queryString,b.callback);if(b){delete this.$1[a];return}this.$10.push(a)};b.reset=function(){this.$3={},this.$12={},this.$7={},this.$11={},this.$5={},this.$10=[],this.$1=[void 0]};b.addLocalEntries=function(a){var b=this;a.forEach(function(a){var c=a.getUniqueID(),d=b.$6(a);b.$3[c]=a;b.$12[c]=d;a=b.$9(d);a.tokens.forEach(function(a){Object.prototype.hasOwnProperty.call(b.$7,a)||(b.$7[a]={}),b.$7[a][c]=!0})});this.$15()};b.addQueryEntries=function(a,b,e){var f=this;e===d("SearchSourceQueryStatus").COMPLETE&&this.setQueryStringAsExhausted(b);e=this.$14(b);var g=this.$9(b).flatValue;this.$11[g]=c("createObjectFrom")(e,!0);a.forEach(function(a){var b=a.getUniqueID();f.$3[b]=a;f.$12[b]=f.$6(a);f.$11[g][b]=!0});this.$15()};b.unsubscribe=function(a){delete this.$1[a]};b.removeEntry=function(a){delete this.$3[a]};b.getAllEntriesMap=function(){return this.$3};b.setQueryStringAsExhausted=function(a){this.$5[a]=!0};b.unsetQueryStringAsExhausted=function(a){delete this.$5[a]};b.$14=function(a){var b=this,c=this.$17(a,this.$18(a));a=this.$17(a,this.$19(a));c=c.concat(a);var d={},e=[];c.forEach(function(a){d[a]==null&&b.$3[a]!=null&&b.$4[a]==null&&(e.push(a),d[a]=!0)});return e};b.$17=function(a,b){var c=this.$20(a,b),d=this.$3;function e(a,b){if(c[a]!==c[b])return c[a]?-1:1;a=d[a];b=d[b];if(a.getOrder()!==b.getOrder())return a.getOrder()-b.getOrder();var e=a.getTitle().length,f=b.getTitle().length;return e!==f?e-f:a.getUniqueID()-b.getUniqueID()}return b.sort(e).slice()};b.$20=function(a,b){var c=this,d={};b.forEach(function(b){d[b]=c.$8(a,c.$12[b])});return d};b.$18=function(a){var b=this,d=this.$9(a,this.$2),e=this.$2?c("nullthrows")(d.sortedTokens):d.tokens,f=e.length,g=d.isPrefixQuery?f-1:null,h={},i={},j={};d=!1;var k={},l=0;e.forEach(function(a,c){if(Object.prototype.hasOwnProperty.call(k,a))return;l++;k[a]=!0;for(var e in b.$7){var f=e===a&&!Object.prototype.hasOwnProperty.call(h,e),m=!1;f||(m=(b.$2||g===c)&&e.indexOf(a)===0);if(!f&&!m){Object.prototype.hasOwnProperty.call(h,e)||(d=!0);continue}e===a?(Object.prototype.hasOwnProperty.call(i,e)&&(d=!0),h[e]=!0):((Object.prototype.hasOwnProperty.call(h,e)||Object.prototype.hasOwnProperty.call(i,e))&&(d=!0),i[e]=!0);for(f in b.$7[e])(c===0||Object.prototype.hasOwnProperty.call(j,f)&&j[f]==l-1)&&(j[f]=l)}});e=Object.keys(j).filter(function(a){return j[a]==l});(d||lb||d===a)&&(b=d.length,c=d)});return c!=null&&Object.prototype.hasOwnProperty.call(d,c)?Object.keys(d[c]):[]};b.$21=function(a,b){var c=this;return b.filter(function(b){return c.$8(a,c.$12[b])})};return a}();function i(a){return[a.getTitle(),a.getKeywordString()].join(" ")}g["default"]=a}),98);
-----
AbstractTypeahead.react",["cx","ARIAComboboxNotify","AbstractTextField.react","ContextualLayer.react","Event","InputSelection","ReactLayeredComponentMixin_DEPRECATED","SearchSourceQueryStatus","SearchableTextInput.react","Style","TypeaheadNavigation","TypeaheadView.react","clearImmediate","createReactClass_DEPRECATED","getOrCreateDOMID","gkx","joinClasses","prop-types","react","setImmediate","uniqueID"],(function(a,b,c,d,e,f,g,h){var i=d("react"),j=[],k=10;a=c("createReactClass_DEPRECATED")({displayName:"AbstractTypeahead",mixins:[d("ReactLayeredComponentMixin_DEPRECATED")],propTypes:babelHelpers["extends"]({},c("AbstractTextField.react").propTypes,{ariaLabel:c("prop-types").node,ariaLabelledby:c("prop-types").string,ariaInvalid:c("prop-types").string,ariaErrorMessage:c("prop-types").string,additionalElements:c("prop-types").node,inputClassName:c("prop-types").string,viewClassName:c("prop-types").string,inputID:c("prop-types").string,inputLeftChild:c("prop-types").node,inputRightChild:c("prop-types").node,inputStyle:c("prop-types").object,inputStyles:c("prop-types").object,inputUseLabel:c("prop-types").bool,autoCapitalize:c("prop-types").string,autoComplete:c("prop-types").string,autoCorrect:c("prop-types").string,queryString:c("prop-types").string,searchSource:c("prop-types").object,searchSourceOptions:c("prop-types").object,textInputDataTestID:c("prop-types").string,"data-testid":c("prop-types").string,excludedEntries:c("prop-types").object,entryFilter:c("prop-types").func,additionalEntries:c("prop-types").array,presenter:c("prop-types").object.isRequired,onSelectAttempt:c("prop-types").func,onEntriesFound:c("prop-types").func,onHighlight:c("prop-types").func,onSearch:c("prop-types").func,onNoEntriesFound:c("prop-types").func,onEnterWithoutSelection:c("prop-types").func,autoHighlight:c("prop-types").bool,showEntriesOnFocus:c("prop-types").bool,selectOnBlur:c("prop-types").bool,blurOnWindowBlur:c("prop-types").bool,selectOnTab:c("prop-types").bool,selectOnSpace:c("prop-types").bool,selectOnComma:c("prop-types").bool,focusedOnInit:c("prop-types").bool,hideViewWithEntries:c("prop-types").bool,disabled:c("prop-types").bool,hideViewWhenDisabled:c("prop-types").bool,entriesWidthMatchContext:c("prop-types").bool,selectedEntry:c("prop-types").object,selectedEntries:c("prop-types").array,offsetX:c("prop-types").number,offsetY:c("prop-types").number,onTypeaheadVisibilityChanged:c("prop-types").func,onPaste:c("prop-types").func,navigation:c("prop-types").object,isRightToLeft:c("prop-types").bool,searchValueModifier:c("prop-types").func,selectTextOnClick:c("prop-types").bool,showSelection:c("prop-types").bool,shouldSubmitSelectedEntry:c("prop-types").func,shouldCloseOnBlur:c("prop-types").func,scrollToSelectionOnFirstRender:c("prop-types").bool,scrollIntoViewOnHighlight:c("prop-types").bool}),getDefaultProps:function(){return{autoComplete:"off",autoCorrect:"off",blurOnWindowBlur:!0,selectOnBlur:!1,selectOnTab:!0,selectOnSpace:!1,selectOnComma:!1,selectTextOnClick:!0,hideViewWithEntries:!0,hideViewWhenDisabled:!1,entriesWidthMatchContext:!0,navigation:d("TypeaheadNavigation"),isRightToLeft:!1,scrollIntoViewOnHighlight:!0}},getInitialState:function(){return{highlightedEntry:null,isArrowNavigation:!1,isAutoHighlight:!!this.props.autoHighlight,ariaActiveDescendantID:null,ariaControlleeID:c("uniqueID")(),activeEntries:null,focused:!!this.props.focusedOnInit,viewIsVisible:!!this.props.focusedOnInit,isQueryLoading:!1}},getHighlightedEntry:function(){return this.state.highlightedEntry},_getScrollingParent:function(a){if(this._scrollingParent==null){a=c("Style").getScrollParent(a);this._scrollingParent=a!==window?a:null}return this._scrollingParent},_ensureIsVisible:function(a){if(!this.props.scrollIntoViewOnHighlight||!a)return;if(a.scrollIntoViewIfNeeded){a.scrollIntoViewIfNeeded(!1);return}var b=this._getScrollingParent(a);if(b==null)return;var c=b.clientHeight,d=b.scrollTop;b=a.offsetTop-b.offsetTop;var e=a.clientHeight;bc+d&&a.scrollIntoView(!1)},_onRenderHighlight:function(a){var b=c("getOrCreateDOMID")(a),e=d("ARIAComboboxNotify").maybeNotifyHighlightedEntry(this.state.highlightedEntry);this._ensureIsVisible(a);this.setState({ariaActiveDescendantID:e?null:b})},_determineViewVisibility:function(a,b){if(!a)return!1;a=a.length>0&&(this.props.showEntriesOnFocus||this.props.queryString&&this.props.queryString.trim().length>0);return!!(b&&(this.props.presenter.alwaysVisibleOnFocus||a))},_onSearch:function(){this.props.onSearch&&this.props.onSearch(),this.state.isQueryLoading===!1&&this.setState({isQueryLoading:!0})},_onEntriesFound:function(a,b,c){if(!this.isMounted())return;c===d("SearchSourceQueryStatus").COMPLETE&&this.setState({isQueryLoading:!1});if(this.props.excludedEntries){var e=this.props.excludedEntries;a=a.filter(function(a){return!Object.prototype.hasOwnProperty.call(e,a.getUniqueID())||e[a.getUniqueID()]===!1})}this.props.entryFilter&&(a=a.filter(this.props.entryFilter));b=this.props.presenter;a=typeof b.sortEntries==="function"?b.sortEntries(a,this.state.activeEntries,this.props.queryString):a;var f=this.props.additionalEntries;f=f?f.length:0;f=a.slice(0,(b.maxEntries||k)-f);this.props.additionalEntries&&(f=f.concat(this.props.additionalEntries),a=typeof b.sortEntries==="function"?b.sortEntries(f,this.state.activeEntries,this.props.queryString):f,f=a.slice(0,b.maxEntries||k));a=this._determineViewVisibility(f,this.state.focused);d("ARIAComboboxNotify").notifyFoundEntries(f);if(!f.length){this.setState({ariaActiveDescendantID:null,activeEntries:f,highlightedEntry:null,isAutoHighlight:!!this.props.autoHighlight});this._setViewIsVisible(a);this.props.onNoEntriesFound&&c===d("SearchSourceQueryStatus").COMPLETE&&this.props.onNoEntriesFound();return}this.props.onEntriesFound&&this.props.onEntriesFound(f,c);b=this.state.highlightedEntry;c=b&&f.indexOf(b)!==-1;if(!this.props.autoHighlight){this.setState({activeEntries:f,highlightedEntry:c?b:null});a&&this._setViewIsVisible(!0);return}var g=this.props.selectedEntry||(this.props.selectedEntries&&this.props.selectedEntries.length>0?this.props.selectedEntries[0]:null);g=this.props.scrollToSelectionOnFirstRender&&g?g:f[0];var h=this.state.isAutoHighlight;h?b=g:(b=c?b:g,h=!c);this.setState({activeEntries:f,highlightedEntry:b,isAutoHighlight:h});a&&this._setViewIsVisible(!0)},_onSelectAttempt:function(a,b){b&&b.preventDefault();if(this.props.shouldSubmitSelectedEntry&&!this.props.shouldSubmitSelectedEntry(a))return;this.props.hideViewWithEntries&&this._close();a&&this.props.onSelectAttempt&&this.props.onSelectAttempt(a,b)},_onInputFocus:function(a){var b=this._determineViewVisibility(this.state.activeEntries,!0);b&&this._setViewIsVisible(!0);this.setState({focused:!0});this.props.onFocus&&this.props.onFocus(a)},_onInputBlurWindowSafe:function(a){var b=this,d=c("setImmediate")(function(){e.remove(),b._onInputBlur(a)}),e=c("Event").listen(window,"blur",function(){e.remove(),c("clearImmediate")(d)})},_onInputBlur:function(a){if(this.props.shouldCloseOnBlur&&!this.props.shouldCloseOnBlur(this.state.highlightedEntry))return;this.setState({focused:!1});this.props.hideViewWithEntries&&this._close();this.props.selectOnBlur&&(this.state.highlightedEntry?this._onSelectAttempt(this.state.highlightedEntry):this.props.onEnterWithoutSelection&&(this.props.onEnterWithoutSelection(),this._onSelectAttempt(null)));this.props.onBlur&&this.props.onBlur(a)},_onInputClick:function(a){var b=this.getTextFieldDOM(),c=d("InputSelection").get(b);c&&c.start==c.end&&this.props.selectTextOnClick&&b.select();this.props.onClick&&this.props.onClick(a,this._onEntriesFound)},_onViewMouseDown:function(a){a.preventDefault()},_onEscape:function(){this._close(),this.blurInput(),this.setState({focused:!1}),this.props.onEscape&&this.props.onEscape()},_onEnter:function(a){if(this.props.onEnterWithoutSelection&&(!this.state.viewIsVisible||!this.state.highlightedEntry)){this.props.onEnterWithoutSelection(a);return}if(!this.state.viewIsVisible)return;this._onSelectAttempt(this.state.highlightedEntry,a)},_onTab:function(a){this._onKeySelectAttempt(this.props.selectOnTab,a)},_onSpace:function(a){this._onKeySelectAttempt(this.props.selectOnSpace,a)},_onComma:function(a){this._onKeySelectAttempt(this.props.selectOnComma,a)},_onKeySelectAttempt:function(a,b){a&&this.state.viewIsVisible&&this._onSelectAttempt(this.state.highlightedEntry,b)},_onDownArrow:function(a){var b=this.props.navigation;b&&b.moveDown&&(a.preventDefault(),b.moveDown(this.state.activeEntries||j,this.state.highlightedEntry,this._setHighlight))},_onLeftArrow:function(a){var b=this.props.navigation;b&&b.moveLeft&&(a.preventDefault(),b.moveLeft(this.state.activeEntries||j,this.state.highlightedEntry,this._setHighlight))},_onRightArrow:function(a){var b=this.props.navigation;b&&b.moveRight&&(a.preventDefault(),b.moveRight(this.state.activeEntries||j,this.state.highlightedEntry,this._setHighlight))},_onUpArrow:function(a){var b=this.props.navigation;b&&b.moveUp&&(a.preventDefault(),b.moveUp(this.state.activeEntries||j,this.state.highlightedEntry,this._setHighlight))},_setHighlight:function(a){this.setState({highlightedEntry:a,isArrowNavigation:!0,isAutoHighlight:!a})},_onInputChange:function(a){this.props.onChange&&this.props.onChange(a),this._setViewIsVisible(this.state.focused&&(this.props.showEntriesOnFocus||a.target.value.trim().length>0)&&(this.props.presenter.alwaysVisibleOnFocus||this.state.activeEntries!=null&&this.state.activeEntries.length>0))},_onViewHighlight:function(a){this.setState({highlightedEntry:a,isArrowNavigation:!1,isAutoHighlight:!1})},_getView:function(){return i.jsx(c("TypeaheadView.react"),{className:this.props.viewClassName,Renderer:this.props.presenter.ViewRenderer,extraRendererProps:babelHelpers["extends"]({},this.props.presenter.extraRendererProps,{isArrowNavigation:this.state.isArrowNavigation,isRightToLeft:this.props.isRightToLeft}),highlightedEntry:this.state.highlightedEntry,selectedEntry:this.props.selectedEntry,searchSource:this.props.searchSource,onEntriesFound:this._onEntriesFound,isVisible:this.state.viewIsVisible,isQueryLoading:this.state.isQueryLoading,controlleeID:this.state.ariaControlleeID,onHighlight:this._onViewHighlight,onRenderHighlight:this._onRenderHighlight,onSelect:this._onSelectAttempt,entries:this.state.activeEntries||j,queryString:this.props.queryString,onMouseDown:this._onViewMouseDown})},_setViewIsVisible:function(a){a!==this.state.viewIsVisible&&(this.props.onTypeaheadVisibilityChanged&&this.props.onTypeaheadVisibilityChanged(a,this.state.activeEntries||j),this.setState({viewIsVisible:a}))},UNSAFE_componentWillReceiveProps:function(a){!a.queryString&&!this.props.showEntriesOnFocus&&this.clearActiveEntries()},componentDidUpdate:function(a,b){a=this._determineViewVisibility(this.state.activeEntries,this.state.focused);c("gkx")("1628602")&&this.props.hideViewWhenDisabled&&this.props.disabled?this._setViewIsVisible(!1):a&&this._setViewIsVisible(!0);b.highlightedEntry!==this.state.highlightedEntry&&(this.props.onHighlight&&this.props.onHighlight(this.state.highlightedEntry))},componentWillUnmount:function(){this._scrollingParent=null},renderLayers:function(){var a=this;if(!this.props.presenter.useLayer)return{};var b=null,d=null;this.props.context?b=this.props.context:this.props.presenter.useRootAsContext&&this.refs.root?d=function(){return a.refs.root}:d=function(){return a.refs.input};var e=this.props.presenter,f=e.layerComponent||c("ContextualLayer.react");return{typeaheadView:i.jsx(f,{alignment:e.alignment,behaviors:e.layerBehaviors,containerWidthMatchContext:this.props.entriesWidthMatchContext,contextRef:d,context:b,"data-testid":void 0,offsetX:this.props.offsetX,offsetY:this.props.offsetY,position:e.layerPosition||"below",shown:this.state.viewIsVisible,shouldSetARIAProperties:!1,width:e.width,children:this._getView()})}},render:function(){var a=this.props.showSelection&&this.state.highlightedEntry?this.state.highlightedEntry.getTitle():null,b=this.state.activeEntries;b=!!(b&&b.length);b=i.jsx(c("SearchableTextInput.react"),{"aria-activedescendant":this.state.ariaActiveDescendantID,"aria-expanded":b,"aria-autocomplete":"list","aria-haspopup":"listbox","aria-label":this.props.ariaLabel,"aria-labelledby":this.props.ariaLabelledby,"aria-controls":this.state.ariaControlleeID,"aria-invalid":this.props.ariaInvalid,"aria-errormessage":this.props.ariaErrorMessage,"data-testid":void 0,required:this.props.required,ref:"input",autoCapitalize:this.props.autoCapitalize,autoComplete:this.props.autoComplete,autoCorrect:this.props.autoCorrect,className:this.props.inputClassName,id:this.props.inputID,name:this.props.name,queryString:this.props.queryString,placeholder:this.props.placeholder,leftChild:this.props.inputLeftChild,rightChild:this.props.inputRightChild,maxLength:this.props.maxLength,searchSource:this.props.searchSource,searchSourceOptions:this.props.searchSourceOptions,searchOnFocus:!!this.props.showEntriesOnFocus,searchValueModifier:this.props.searchValueModifier,disabled:this.props.disabled,onDownArrow:this._onDownArrow,onLeftArrow:this._onLeftArrow,onRightArrow:this._onRightArrow,onUpArrow:this._onUpArrow,onEntriesFound:this._onEntriesFound,onSearch:this._onSearch,onEscape:this._onEscape,onBlur:this.props.blurOnWindowBlur?this._onInputBlur:this._onInputBlurWindowSafe,onFocus:this._onInputFocus,onChange:this._onInputChange,onTab:this._onTab,onSpace:this._onSpace,onComma:this._onComma,onEnter:this._onEnter,onBackspace:this.props.onBackspace,onPaste:this.props.onPaste,onClick:this._onInputClick,style:this.props.inputStyle,styles:this.props.inputStyles,tabIndex:this.props.tabIndex,type:this.props.type,useLabel:this.props.inputUseLabel,hint:a,spellCheck:this.props.spellCheck,noDefaultStyling:this.props.inputNoDefaultStyling});a=babelHelpers["extends"]({},this.props);delete a.additionalElements;delete a.additionalEntries;delete a.ariaLabel;delete a.ariaLabelledby;delete a.ariaInvalid;delete a.ariaErrorMessage;delete a.context;delete a.focusAfterSelection;delete a.inputClassName;delete a.viewClassName;delete a.inputID;delete a.inputStyle;delete a.searchSource;delete a.searchSourceOptions;delete a.excludedEntries;delete a.presenter;delete a.onBackspace;delete a.onSelectAttempt;delete a.onEntriesFound;delete a.onNoEntriesFound;delete a.onEnterWithoutSelection;delete a.autoHighlight;delete a.showEntriesOnFocus;delete a.selectOnBlur;delete a.blurOnWindowBlur;delete a.selectOnTab;delete a.selectOnComma;delete a.selectOnSpace;delete a.focusedOnInit;delete a.hideViewWithEntries;delete a.hideViewWhenDisabled;delete a.disabled;delete a.entriesWidthMatchContext;delete a.selectedEntry;delete a.onTypeaheadVisibilityChanged;delete a.onPaste;delete a.navigation;delete a.type;delete a.tallInput;delete a.viewStyle;delete a.queryString;delete a.onClear;delete a.clearable;delete a.showPhoto;delete a.highlightOnSelect;delete a.maxEntries;delete a.textInputDataTestID;delete a.isRightToLeft;delete a["data-testid"];delete a.selectTextOnClick;return i.jsxs("span",babelHelpers["extends"]({},a,{className:c("joinClasses")(this.props.className,"_58ah"),ref:"root",onBlur:void 0,onChange:void 0,onClick:void 0,onFocus:void 0,tabIndex:void 0,children:[b,this.props.additionalElements,this.props.presenter.useLayer?null:this._getView()]}))},componentDidMount:function(){this.props.focusedOnInit&&this.focusInput(),this.state.highlightedEntry&&(this.props.onHighlight&&this.props.onHighlight(this.state.highlightedEntry))},clearActiveEntries:function(){this.setState({ariaActiveDescendantID:null,activeEntries:null,highlightedEntry:null})},search:function(a){this.refs.input.search(a)},focusInput:function(){var a=this.getTextFieldDOM();a.value&&d("InputSelection").set(a,a.value.length);this.refs.input.focusInput()},selectInput:function(){this.refs.input.selectInput()},blurInput:function(){this.refs.input.blur?this.refs.input.blur():this.refs.input.blurInput&&this.refs.input.blurInput()},hideView:function(){this._setViewIsVisible(!1)},_close:function(){this._setViewIsVisible(!1),this.clearActiveEntries()},getTextFieldDOM:function(){return this.refs.input.getTextFieldDOM()}});b=a;g["default"]=b}),98);
-----
SUIInlineTypeahead.react",["cx","AbstractTypeahead.react","SUISpinner.react","SUITheme","SUITokenizerItemList.react","SUITypeaheadNavigation","SearchSourceQueryStatus","SearchableEntry","createObjectFrom","isNullOrZero","joinClasses","prop-types","react","withSUITheme"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react");a=1e3;b={allowShowingSpinner:!1,areCategoriesCollapsible:!1,hasCategories:!1,hideSingleCategory:!1,shouldVirtualize:!0,shouldWrapSubtitle:!1,maxEntries:a};var j={queryString:"",isSearching:!1};e=function(a){babelHelpers.inheritsLoose(b,a);function b(b){var e;e=a.call(this,b)||this;e.$1=i.createRef();e.$2=!1;e.$4=i.createRef();e.$6=function(a){e.props.hasCategories&&e.props.areCategoriesCollapsible&&e.$4.current!=null&&a!=null&&e.$4.current.expandCategoryForEntry(a)};e.$7=function(){e.$2&&e.setState({isSearching:!0})};e.$8=function(a){a=a.target.value;e.setState({queryString:a});e.props.onQueryChange&&e.props.onQueryChange(a)};e.$9=function(a,b){b.stopPropagation(),e.props.onRemoveSearchResult&&e.props.onRemoveSearchResult(a)};e.$10=function(a){if(e.$5(a))return;e.props.onChange(a);e.$2&&e.setState({queryString:""})};e.$11=function(a,b){b===d("SearchSourceQueryStatus").COMPLETE&&e.setState({isSearching:!1}),e.props.onEntriesFound&&e.props.onEntriesFound(a)};e.$12=function(a){e.setState({isSearching:!1}),e.props.onNoEntriesFound&&e.props.onNoEntriesFound()};e.$5=function(a){var b=e.props,c=b.disabledEntryIDs;b=b.getDisableStateForEntry;c=c?c.has(a.getUniqueID()):!1;b&&(c=c||b(a));return c};e.state=j;e.$3=new(c("SUITypeaheadNavigation"))(e.$5,e.$6);return e}var e=b.prototype;e.componentDidMount=function(){this.$2=!0};e.componentWillUnmount=function(){this.$2=!1};e.focusInput=function(){this.$1.current&&this.$1.current.focusInput()};e.render=function(){var a=c("SUITheme").get(this).SUIInlineTypeahead,b=a.searchIcon,d=this.state.isSearching&&this.props.allowShowingSpinner;return i.jsxs("div",{className:c("joinClasses")(this.props.className,"_1vdu"),"data-testid":void 0,style:this.props.style,children:[i.jsx(c("AbstractTypeahead.react"),{additionalElements:this.props.additionalElements,ariaLabel:this.props.ariaLabel,autoHighlight:!0,"data-testid":void 0,excludedEntries:this.props.excludedEntryIDs?c("createObjectFrom")(Array.from(this.props.excludedEntryIDs)):void 0,hideViewWithEntries:!1,inputClassName:"_1vdv"+(d?" _35mr":""),inputRightChild:d?i.jsx(c("SUISpinner.react"),{className:"_35ms"}):null,inputStyle:a.inputTextColor!=null?{color:a.inputTextColor}:void 0,navigation:this.$3,onBlur:this.props.onBlur,onChange:this.$8,onEntriesFound:this.$11,onFocus:this.props.onFocus,onNoEntriesFound:this.$12,onSearch:this.$7,onSelectAttempt:this.$10,placeholder:this.props.placeholder,presenter:{ViewRenderer:c("SUITokenizerItemList.react"),alwaysVisibleOnFocus:this.props.emptySearchResultsContent!=null||this.props.beforeSearchResults!=null,extraRendererProps:{areCategoriesCollapsible:this.props.areCategoriesCollapsible,initiallyExpandedCategories:this.props.initiallyExpandedCategories,categoriesCompare:this.props.categoriesCompare,categoryItemCompare:this.props.categoryItemCompare,categoryHeader:this.props.categoryHeader,getCategoryHeaderProps:this.props.getCategoryHeaderProps,getCategorizedItems:this.props.getCategorizedItems,getLabelStyleForEntry:this.props.getLabelStyleForEntry,getLeftContentForEntry:this.props.getLeftContentForEntry,getRightContentForEntry:this.props.getRightContentForEntry,getSubtitleContentForEntry:this.props.getSubtitleContentForEntry,getTooltipInfo:this.props.getTooltipForEntry,hasCategories:this.props.hasCategories,hideSingleCategory:this.props.hideSingleCategory,isDisabledEntry:this.$5,emptySearchResultsContent:this.props.emptySearchResultsContent,customHeader:this.props.beforeSearchResults,onEndOfListReached:this.props.onEndOfListReached,onRemoveSearchResult:this.props.onRemoveSearchResult?this.$9:null,scrollToSelectionOnFirstRender:this.props.scrollToSelectionOnFirstRender,selectedEntries:this.props.selectedEntries,shouldContainWheelEvent:!0,shouldVirtualize:this.props.shouldVirtualize,shouldWrapSubtitle:this.props.shouldWrapSubtitle,style:{borderTop:"1px solid "+a.dividerBorderColor},theme:c("SUITheme").get(this),listMaxHeight:c("isNullOrZero")(this.props.maxListHeight)?null:this.props.maxListHeight,ref:this.$4},maxEntries:this.props.maxEntries,useLayer:!1},queryString:this.state.queryString,ref:this.$1,scrollIntoViewOnHighlight:!this.props.shouldVirtualize,scrollToSelectionOnFirstRender:this.props.scrollToSelectionOnFirstRender,searchSource:this.props.searchSource,searchSourceOptions:this.props.searchSourceOptions,selectOnBlur:!1,selectedEntries:this.props.selectedEntries||void 0,selectedEntry:this.props.selectedEntry||void 0,showEntriesOnFocus:!0}),i.cloneElement(b,{className:c("joinClasses")("_1vdw",k(b))})]})};return b}(i.PureComponent);e.propTypes={additionalElements:c("prop-types").node,categoriesCompare:c("prop-types").func,hasCategories:c("prop-types").bool.isRequired,hideSingleCategory:c("prop-types").bool.isRequired,allowShowingSpinner:c("prop-types").bool,areCategoriesCollapsible:c("prop-types").bool,initiallyExpandedCategories:c("prop-types").arrayOf(c("prop-types").string),onChange:c("prop-types").func.isRequired,searchSource:c("prop-types").object.isRequired,disabledEntryIDs:c("prop-types").instanceOf(Set),emptySearchResultsContent:c("prop-types").node,beforeSearchResults:c("prop-types").node,excludedEntryIDs:c("prop-types").object,getDisableStateForEntry:c("prop-types").func,getCategoryHeaderProps:c("prop-types").func,getCategorizedItems:c("prop-types").func,getLabelStyleForEntry:c("prop-types").func,getLeftContentForEntry:c("prop-types").func,getRightContentForEntry:c("prop-types").func,getTooltipForEntry:c("prop-types").func,header:c("prop-types").node,inputRightChild:c("prop-types").node,onBlur:c("prop-types").func,onEndOfListReached:c("prop-types").func,onFocus:c("prop-types").func,onRemoveSearchResult:c("prop-types").func,placeholder:c("prop-types").string,scrollToSelectionOnFirstRender:c("prop-types").bool,searchSourceOptions:c("prop-types").object,selectedEntry:c("prop-types").instanceOf(c("SearchableEntry")),shouldVirtualize:c("prop-types").bool.isRequired,shouldWrapSubtitle:c("prop-types").bool,style:c("prop-types").object,theme:c("prop-types").instanceOf(c("SUITheme")),maxEntries:c("prop-types").number};e.defaultProps=b;function k(a){a=a.props;return a!=null&&typeof a==="object"&&typeof a.className==="string"?a.className:null}f=c("withSUITheme")(e);g["default"]=f}),98);
-----
AdsUnifiedFlexibleTargetingDataSource",["AbstractSearchSource","AdAccountTargetingUnifiedNodeDefaultFieldsStatic","AdsGraphAPI","AdsMgmtPerfScenarioController","AdsUnifiedFlexibleTargetingDataSourceUtils","AdsUnifiedFlexibleTargetingSearchableEntry","SearchSourceQueryStatus","debounce","promiseDone"],(function(a,b,c,d,e,f,g){"use strict";var h={};a=function(a){babelHelpers.inheritsLoose(b,a);function b(b,e,g,h,i,j,k,l,m,n,o){var p;e===void 0&&(e=null);h===void 0&&(h=null);i===void 0&&(i=null);j===void 0&&(j=!1);k===void 0&&(k=!1);l===void 0&&(l=[]);m===void 0&&(m=null);n===void 0&&(n=null);o===void 0&&(o=null);p=a.call(this)||this;p.$AdsUnifiedFlexibleTargetingDataSource1=function(a,b,e){if(!a){b([],a,d("SearchSourceQueryStatus").COMPLETE);return}var g=0,h=[];e&&e.sessionID&&e.targetingList&&(g=e.sessionID,h=e.targetingList,e=void 0);g={accountId:p.accountID,q:a,whitelisted_types:p.whitelistedTypes,excluded_category:p.excludedCategory,countries:p.countries,session_id:g,targeting_list:h,is_exclusion:p.isExclusion,fields:c("AdAccountTargetingUnifiedNodeDefaultFieldsStatic").fields.concat("is_recommendation","recommendation_model","search_interest_id"),allow_only_fat_head_interests:p.allowOnlyFatHeadInterests,regulated_categories:p.regulatedCategories,objective:p.objective,promoted_object:p.promotedObject,app_store:p.selectedAppStore};h=e&&e.type?e.type:null;h!==null&&(g.limit_type=h);p.provideDataFunc?p.provideDataFunc(function(c){return p.$AdsUnifiedFlexibleTargetingDataSource2(b,a,e,c)},g):c("promiseDone")(d("AdsGraphAPI").get(f.id).adaccount(p.accountID).edge("targetingsearch").get(g),function(c){return p.$AdsUnifiedFlexibleTargetingDataSource2(b,a,e,c.data)},function(a){c("AdsMgmtPerfScenarioController").endScenariosWithTrigger("am_edit_targeting_search_targeting_typeahead_fail","outside_flux",null,{error_code:a==null?void 0:a.code,message:a==null?void 0:a.message})})};p.accountID=b;p.whitelistedTypes=e;p.searchImpl=c("debounce")(p.$AdsUnifiedFlexibleTargetingDataSource1,250,babelHelpers.assertThisInitialized(p));p.provideDataFunc=h;p.excludedCategory=g;p.countries=i;p.isExclusion=j;p.allowOnlyFatHeadInterests=!!k;p.regulatedCategories=l;p.objective=m;p.promotedObject=n;p.selectedAppStore=o;return p}var e=b.prototype;e.$AdsUnifiedFlexibleTargetingDataSource2=function(a,b,e,f){f=f.map(function(a){return new(c("AdsUnifiedFlexibleTargetingSearchableEntry"))({uniqueID:a.type+"."+a.id,title:a.name,name:a.name,id:a.id,type:a.type,description:a.description,reach:a.audience_size,reach_lower_bound:a.audience_size_lower_bound,reach_upper_bound:a.audience_size_upper_bound,source:a.source,path:a.path,key:a.key,query:b,partner:a.partner,extraData:a.extraData,isRecommendation:a.is_recommendation,recommendationModel:a.recommendation_model,searchInterestID:a.search_interest_id,searchOptions:e})});f=d("AdsUnifiedFlexibleTargetingDataSourceUtils").excludeCategoryForDataSource(this.excludedCategory,f);a(f,b,d("SearchSourceQueryStatus").COMPLETE)};b.getInstance=function(a,c,d,e,f,g,i,j){var k;c===void 0&&(c=null);e===void 0&&(e=null);f===void 0&&(f=[]);g===void 0&&(g=null);i===void 0&&(i=null);j===void 0&&(j=null);var l=i||{},m=l.page_id,n=l.application_id;l=l.object_store_url;k=[a,d,(k=e)==null?void 0:k.toString(),f.toString(),g,m,n,l,j].join("");h[k]||(h[k]=new b(a,c,d,null,e,!1,!1,f,g,i,j));return h[k]};b.getInstanceForExclusion=function(a,c,d,e,f,g,i,j){var k;c===void 0&&(c=null);e===void 0&&(e=null);f===void 0&&(f=[]);g===void 0&&(g=null);i===void 0&&(i=null);j===void 0&&(j=null);var l=i||{},m=l.page_id,n=l.application_id;l=l.object_store_url;k=[a,d,(k=e)==null?void 0:k.toString(),"exclusion",f.toString(),g,m,n,l,j].join("");h[k]||(h[k]=new b(a,c,d,null,e,!0,!1,f,g,i,j));return h[k]};return b}(c("AbstractSearchSource"));g["default"]=a}),98);
-----
LMLocationBreakdownSearchSource",["fbt","AbstractSearchSource","AdsGraphAPI","GraphAPIPaging","SearchSourceQueryStatus","SearchableEntry","filterNulls","formatNumber","intlList","memoizeWithArgs","nullthrows","promiseDone"],(function(a,b,c,d,e,f,g,h){"use strict";var i=function(b){babelHelpers.inheritsLoose(a,b);a.get=function(a,b){return n(a,b)};function a(a,c){var d;d=b.call(this)||this;d.$LMLocationBreakdownSearchSource1=null;d.$LMLocationBreakdownSearchSource2=a;d.$LMLocationBreakdownSearchSource3=c;return d}var e=a.prototype;e.bootstrapImpl=function(a){this.$LMLocationBreakdownSearchSource1=m(this.$LMLocationBreakdownSearchSource2,this.$LMLocationBreakdownSearchSource3),c("promiseDone")(this.$LMLocationBreakdownSearchSource1,a,a)};e.searchImpl=function(a,b,e){c("promiseDone")(c("nullthrows")(this.$LMLocationBreakdownSearchSource1),function(c){return b(l(c,a),a,d("SearchSourceQueryStatus").COMPLETE)})};return a}(c("AbstractSearchSource"));function j(a,b){return a.getTitle().toLocaleLowerCase().startsWith(b)?1:0}function k(a,b,c){var d=j(a,c);c=j(b,c);return d!==c?c-d:a.getTitle().toLocaleLowerCase().localeCompare(b.getTitle().toLocaleLowerCase())}function l(a,b){b=b.toLocaleLowerCase();return a.filter(function(a){return a.getTitle().toLocaleLowerCase().includes(b)}).sort(function(a,c){return k(a,c,b)})}var m=function(a,b){return d("AdsGraphAPI").get(f.id).object("page",a).edge("locations_breakdown").get({limit:5e3,type:b}).then(d("GraphAPIPaging").allPages()).then(function(a){return a.data.filter(function(a){return!!a.location_name}).map(function(a){return new(c("SearchableEntry"))({auxiliaryData:a,title:o(a),uniqueID:a.location_id})})})},n=c("memoizeWithArgs")(function(a,b){a=new i(a,b);a.bootstrap();return a},function(a,b){return a+":"+b}),o=function(a){var b=c("filterNulls")([a.location_name,a.parent_region_name,a.parent_country_code]);b=c("intlList")(b,c("intlList").CONJUNCTIONS.NONE);return h._("{city/state/country name} ({location count})",[h._param("city/state/country name",b),h._param("location count",c("formatNumber").withThousandDelimiters(a.num_pages+a.num_unpublished_or_closed_pages))])};g["default"]=i}),98);
-----
PlaceTopicsSearchSource",["AbstractSearchSource","AdsGraphAPI","GraphAPIPaging","SearchSourceQueryStatus","SearchableEntry","nullthrows","partitionArray","promiseDone","sortBy"],(function(a,b,c,d,e,f,g){"use strict";function h(a,b){var d=b.toLocaleLowerCase();b=a.filter(function(a){return a.getTitle().toLocaleLowerCase().includes(d)});a=c("partitionArray")(b,function(a){return a.getTitle().toLocaleLowerCase()===d});b=a[0];a=a[1];return b.concat(a)}function i(a){var b=[];for(var d=0;d-----
AdsTargetingTypeaheadScenarioHelper",["AdsMgmtPerfScenarioController","AdsPerfInteractionUtil","AdsPerfInteractionsController","SearchSourceQueryStatus","debounce","guid","promiseDone","waitForDoubleRAF"],(function(a,b,c,d,e,f,g){"use strict";var h=500,i=c("guid")(),j=d("SearchSourceQueryStatus").ACTIVE,k=c("debounce")(function(a,b){c("AdsMgmtPerfScenarioController").endScenarioAbandon(i,"outside_flux",null);if(j!==d("SearchSourceQueryStatus").COMPLETE){b=(b=b)!=null?b:"outside_flux";i=c("AdsMgmtPerfScenarioController").startScenario({name:a},b,null);a=d("AdsPerfInteractionUtil").getInteractionNameFromLegacyScenarioName(a);a!=null&&c("AdsPerfInteractionsController").startInteraction(a,b,{scenarioID:i})}},h),l=c("debounce")(function(a,b){c("AdsMgmtPerfScenarioController").endScenarioAbandon(i,"outside_flux",null);if(j!==d("SearchSourceQueryStatus").COMPLETE){b=(b=b)!=null?b:"outside_flux";i=c("AdsMgmtPerfScenarioController").startScenario({name:a},b,null)}},h);function a(a,b){j=d("SearchSourceQueryStatus").ACTIVE,l(a,b)}function b(a,b){j=d("SearchSourceQueryStatus").ACTIVE,k(a,b)}function e(){c("promiseDone")(c("waitForDoubleRAF")(),function(){j=d("SearchSourceQueryStatus").COMPLETE,c("AdsMgmtPerfScenarioController").endScenarioSuccess(i,"outside_flux",null)})}function f(){j=d("SearchSourceQueryStatus").COMPLETE,c("AdsMgmtPerfScenarioController").endScenarioFail(i,"outside_flux",null)}g.startPerfScenario=a;g.startSearch=b;g.searchResultsLoaded=e;g.searchFailed=f}),98);
-----
DynamicSearchSource",["AbstractSearchSource","SearchSourceCallbackManager","SearchSourceQueryStatus","TokenizeUtil"],(function(a,b,c,d,e,f,g){"use strict";a=function(a){babelHelpers.inheritsLoose(b,a);function b(b,d,e){var f;f=a.call(this)||this;f.$DynamicSearchSource2=b;f.$DynamicSearchSource1=new(c("SearchSourceCallbackManager"))({parseFn:c("TokenizeUtil").parse,matchFn:c("TokenizeUtil").isQueryMatch,indexFn:d});f.$DynamicSearchSource3=e;f.$DynamicSearchSource1.addLocalEntries(f.$DynamicSearchSource2);return f}var e=b.prototype;e.replaceSearchEntries=function(a){this.$DynamicSearchSource2=a,this.$DynamicSearchSource1.reset(),this.$DynamicSearchSource1.addLocalEntries(this.$DynamicSearchSource2)};e.searchImpl=function(a,b,c){c=c||this.$DynamicSearchSource3;(c==null?void 0:c.setQueryStringAsExhausted)&&this.$DynamicSearchSource1.setQueryStringAsExhausted(a);!a?b(this.$DynamicSearchSource2,a,(c==null?void 0:c.setQueryStringAsExhausted)?d("SearchSourceQueryStatus").COMPLETE:void 0):this.$DynamicSearchSource1.search(a,b)};return b}(c("AbstractSearchSource"));g["default"]=a}),98);
-----
BUIBaseTypeahead.react",["cx","ix","BUIAbstractTypeahead.react","BUICloseButton.react","BUIMultiElementLayoutContext","BUIPrivateLoggingAction","BUIPrivateLoggingClassification","BUIPrivateWithLoggingProvider.react","BUISpinner_DEPRECATED.react","BUITypeaheadPresenter.react","FDSFormUtils","FDSPrivateDisabledContext","FDSPrivateInputSelectors","FDSPrivateSizeContext","FDSPrivateThemeContext.react","FDSPrivateThemeUtils","FDSTypeaheadContext","Image.react","SearchSourceQueryStatus","isStringNullOrEmpty","makeFDSStandardComponent","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react");a=function(a){babelHelpers.inheritsLoose(b,a);function b(){var b,c;for(var e=arguments.length,f=new Array(e),g=0;g-----
RegexMatchSearchSource",["AbstractSearchSource","SearchSourceQueryStatus","SearchableEntry"],(function(a,b,c,d,e,f,g){a=function(a){babelHelpers.inheritsLoose(b,a);function b(b,c,d){var e;e=a.call(this)||this;e.$RegexMatchSearchSource2=new RegExp(b);e.$RegexMatchSearchSource3=c||"";e.$RegexMatchSearchSource1=d||{};return e}var e=b.prototype;e.searchImpl=function(a,b,e){if(a&&this.$RegexMatchSearchSource2.test(a)){e=new(c("SearchableEntry"))({uniqueID:a,title:a,type:this.$RegexMatchSearchSource3,auxiliaryData:babelHelpers["extends"]({},this.$RegexMatchSearchSource1,{isRegexEntry:!0})});b([e],a,d("SearchSourceQueryStatus").COMPLETE);return}b([],a,d("SearchSourceQueryStatus").COMPLETE)};return b}(c("AbstractSearchSource"));g["default"]=a}),98);
-----
AbstractAsyncSearchSource",["AbstractSearchSource","SearchSourceCallbackManager","SearchSourceQueryStatus","SearchableEntry","TokenizeUtil","emptyFunction","isValidUniqueID"],(function(a,b,c,d,e,f,g){a=function(a){babelHelpers.inheritsLoose(b,a);function b(b,d,e){var f,g;g=a.call(this)||this;g.$AbstractAsyncSearchSource1=b.asyncErrorHandler||c("emptyFunction");g.$AbstractAsyncSearchSource2=b.auxiliaryFields;g.$AbstractAsyncSearchSource4=b.bootstrapRequests;g.$AbstractAsyncSearchSource7=b.getAllForEmptyQuery;g.$AbstractAsyncSearchSource8=b.getAllForBootstrapPrefix;g.$AbstractAsyncSearchSource9=b.bootstrapPrefix;g.$AbstractAsyncSearchSource11=b.packageFn||g.$AbstractAsyncSearchSource15;g.$AbstractAsyncSearchSource12=b.queryRequests;g.$AbstractAsyncSearchSource13=b.requestData||{};g.$AbstractAsyncSearchSource6=(f=b.entryModifier_USE_SPARINGLY)!=null?f:c("emptyFunction").thatReturnsArgument;g.$AbstractAsyncSearchSource3=[];g.$AbstractAsyncSearchSource5=new(c("SearchSourceCallbackManager"))({parseFn:(f=b.parseFn)!=null?f:c("TokenizeUtil").parse,matchFn:b.matchFn||c("TokenizeUtil").isQueryMatch,indexFn:b.indexFn,exclusions:b.exclusions});g.$AbstractAsyncSearchSource14=d;g.$AbstractAsyncSearchSource10=e;return g}var e=b.prototype;e.bootstrapImpl=function(a){var b=this,c=a;if(!this.$AbstractAsyncSearchSource4||!this.$AbstractAsyncSearchSource4.length){c();return}var d=this.$AbstractAsyncSearchSource4.length,e=0;this.$AbstractAsyncSearchSource4.forEach(function(a){b.$AbstractAsyncSearchSource16(b.$AbstractAsyncSearchSource13,a,function(a){a=a.map(function(a){return b.$AbstractAsyncSearchSource6(a)});b.$AbstractAsyncSearchSource5.addLocalEntries(a);b.$AbstractAsyncSearchSource3=b.$AbstractAsyncSearchSource3.concat(a);e++;c&&e===d&&(c(),c=null)})})};e.searchImpl=function(a,b,c){var e=this,f=this.$AbstractAsyncSearchSource9;if(this.$AbstractAsyncSearchSource7&&a===""||this.$AbstractAsyncSearchSource8&&a&&f&&a.trim().toLowerCase()===f.trim().toLowerCase()){this.getBootstrappedEntries(function(c){c=c.map(function(a){return e.$AbstractAsyncSearchSource6(a)});b(c,a,d("SearchSourceQueryStatus").COMPLETE)});return}var g=[],h={};f=this.$AbstractAsyncSearchSource5.search(a,function(f,a,i){if(c&&c.waitForAllResults&&i!==d("SearchSourceQueryStatus").COMPLETE)return;g.length===0?(g=f,g.forEach(function(a,b){h[a.getUniqueID()]=b})):(g=[].concat(g),f.forEach(function(a){a=e.$AbstractAsyncSearchSource6(a);var b=a.getUniqueID();if(!Object.prototype.hasOwnProperty.call(h,b)){var c=g.length;g.push(a);h[b]=c}else{c=h[b];c-----