if (self.CavalryLogger) { CavalryLogger.start_js(["5OseP"]); } __d("InsightsLocaleNamesStatic",["fbt"],(function(a,b,c,d,e,f,g){e.exports={af_ZA:g._("Afrikaans"),ar_AE:g._("Arabic (United Arab Emirates)"),ar_AR:g._("Arabic"),ar_BH:g._("Arabic (Bahrain)"),ar_DJ:g._("Arabic (Djibouti)"),ar_DZ:g._("Arabic (Algeria)"),ar_EG:g._("Arabic (Egypt)"),ar_EH:g._("Arabic (Western Sahara)"),ar_ER:g._("Arabic (Eritrea)"),ar_IL:g._("Arabic (Israel)"),ar_IQ:g._("Arabic (Iraq)"),ar_JO:g._("Arabic (Jordan)"),ar_KM:g._("Arabic (Comoros)"),ar_KW:g._("Arabic (Kuwait)"),ar_LB:g._("Arabic (Lebanon)"),ar_LY:g._("Arabic (Libya)"),ar_MA:g._("Arabic (Morocco)"),ar_MR:g._("Arabic (Mauritania)"),ar_OM:g._("Arabic (Oman)"),ar_PS:g._("Arabic (Palestinian Territories)"),ar_QA:g._("Arabic (Qatar)"),ar_SA:g._("Arabic (Saudi Arabia)"),ar_SD:g._("Arabic (Sudan)"),ar_SO:g._("Arabic (Somalia)"),ar_SS:g._("Arabic (South Sudan)"),ar_SY:g._("Arabic (Syria)"),ar_TD:g._("Arabic (Chad)"),ar_TN:g._("Arabic (Tunisia)"),ar_US:g._("Arabic (US)"),ar_YE:g._("Arabic (Yemen)"),ay_BO:g._("Aymara"),az_AZ:g._("Azerbaijani"),be_BY:g._("Belarusian"),bg_BG:g._("Bulgarian"),bn_IN:g._("Bengali"),bs_BA:g._("Bosnian"),ca_ES:g._("Catalan"),ck_US:g._("Cherokee"),cs_CZ:g._("Czech"),cx_PH:g._("Cebuano"),cy_GB:g._("Welsh"),da_DK:g._("Danish"),de_AT:g._("German (Austria)"),de_CH:g._("German (Switzerland)"),de_DE:g._("German"),el_GR:g._("Greek"),en_AD:g._("English (Andorra)"),en_AE:g._("English (United Arab Emirates)"),en_AG:g._("English (Antigua & Barbuda)"),en_AI:g._("English (Anguilla)"),en_AL:g._("English (Albania)"),en_AS:g._("English (American Samoa)"),en_AT:g._("English (Austria)"),en_AU:g._("English (Australia)"),en_BA:g._("English (Bosnia & Herzegovina)"),en_BB:g._("English (Barbados)"),en_BE:g._("English (Belgium)"),en_BM:g._("English (Bermuda)"),en_BR:g._("English (Brazil)"),en_BS:g._("English (Bahamas)"),en_BW:g._("English (Botswana)"),en_BZ:g._("English (Belize)"),en_CA:g._("English (Canada)"),en_CC:g._("English (Cocos [Keeling] Islands)"),en_CH:g._("English (Switzerland)"),en_CK:g._("English (Cook Islands)"),en_CM:g._("English (Cameroon)"),en_CX:g._("English (Christmas Island)"),en_CY:g._("English (Cyprus)"),en_CZ:g._("English (Czech Republic)"),en_DE:g._("English (Germany)"),en_DG:g._("English (Diego Garcia)"),en_DK:g._("English (Denmark)"),en_DM:g._("English (Dominica)"),en_EE:g._("English (Estonia)"),en_EG:g._("English (Egypt)"),en_ER:g._("English (Eritrea)"),en_ES:g._("English (Spain)"),en_FI:g._("English (Finland)"),en_FJ:g._("English (Fiji)"),en_FK:g._("English (Falkland Islands)"),en_FM:g._("English (Micronesia)"),en_FR:g._("English (France)"),en_GB:g._("English (UK)"),en_GD:g._("English (Grenada)"),en_GG:g._("English (Guernsey)"),en_GH:g._("English (Ghana)"),en_GI:g._("English (Gibraltar)"),en_GM:g._("English (Gambia)"),en_GR:g._("English (Greece)"),en_GU:g._("English (Guam)"),en_GY:g._("English (Guyana)"),en_HK:g._("English (Hong Kong SAR China)"),en_HR:g._("English (Croatia)"),en_HU:g._("English (Hungary)"),en_ID:g._("English (Indonesia)"),en_IE:g._("English (Ireland)"),en_IL:g._("English (Israel)"),en_IM:g._("English (Isle of Man)"),en_IN:g._("English (India)"),en_IO:g._("English (British Indian Ocean Territory)"),en_IS:g._("English (Iceland)"),en_IT:g._("English (Italy)"),en_JE:g._("English (Jersey)"),en_JM:g._("English (Jamaica)"),en_JP:g._("English (Japan)"),en_KE:g._("English (Kenya)"),en_KI:g._("English (Kiribati)"),en_KN:g._("English (St. Kitts & Nevis)"),en_KR:g._("English (Korea)"),en_KW:g._("English (Kuwait)"),en_KY:g._("English (Cayman Islands)"),en_LB:g._("English (Lebanon)"),en_LC:g._("English (St. Lucia)"),en_LR:g._("English (Liberia)"),en_LS:g._("English (Lesotho)"),en_LT:g._("English (Lithuania)"),en_LU:g._("English (Luxembourg)"),en_LV:g._("English (Latvia)"),en_ME:g._("English (Montenegro)"),en_MG:g._("English (Madagascar)"),en_MH:g._("English (Marshall Islands)"),en_MO:g._("English (Macau SAR China)"),en_MP:g._("English (Northern Mariana Islands)"),en_MS:g._("English (Montserrat)"),en_MT:g._("English (Malta)"),en_MU:g._("English (Mauritius)"),en_MW:g._("English (Malawi)"),en_MX:g._("English (Mexico)"),en_MY:g._("English (Malaysia)"),en_NA:g._("English (Namibia)"),en_NF:g._("English (Norfolk Island)"),en_NG:g._("English (Nigeria)"),en_NL:g._("English (Netherlands)"),en_NO:g._("English (Norway)"),en_NR:g._("English (Nauru)"),en_NU:g._("English (Niue)"),en_NZ:g._("English (New Zealand)"),en_PG:g._("English (Papua New Guinea)"),en_PH:g._("English (Philippines)"),en_PI:g._("English (Pirate)"),en_PK:g._("English (Pakistan)"),en_PL:g._("English (Poland)"),en_PN:g._("English (Pitcairn Islands)"),en_PR:g._("English (Puerto Rico)"),en_PT:g._("English (Portugal)"),en_PW:g._("English (Palau)"),en_RO:g._("English (Romania)"),en_RU:g._("English (Russia)"),en_RW:g._("English (Rwanda)"),en_SA:g._("English (South Africa)"),en_SB:g._("English (Solomon Islands)"),en_SC:g._("English (Seychelles)"),en_SD:g._("English (Sudan)"),en_SE:g._("English (Sweden)"),en_SG:g._("English (Singapore)"),en_SH:g._("English (St. Helena)"),en_SI:g._("English (Slovenia)"),en_SK:g._("English (Slovakia)"),en_SL:g._("English (Sierra Leone)"),en_SS:g._("English (South Sudan)"),en_SX:g._("English (Sint Maarten)"),en_SZ:g._("English (Swaziland)"),en_TC:g._("English (Turks & Caicos Islands)"),en_TH:g._("English (Thailand)"),en_TK:g._("English (Tokelau)"),en_TO:g._("English (Tonga)"),en_TR:g._("English (Turkey)"),en_TT:g._("English (Trinidad & Tobago)"),en_TV:g._("English (Tuvalu)"),en_TZ:g._("English (Tanzania)"),en_UD:g._("English (Upside Down)"),en_UG:g._("English (Uganda)"),en_UM:g._("English (U.S. Outlying Islands)"),en_US:g._("English (US)"),en_VC:g._("English (St. Vincent & Grenadines)"),en_VG:g._("English (British Virgin Islands)"),en_VI:g._("English (U.S. Virgin Islands)"),en_VU:g._("English (Vanuatu)"),en_WS:g._("English (Samoa)"),en_ZA:g._("English (South Africa)"),en_ZM:g._("English (Zambia)"),en_ZW:g._("English (Zimbabwe)"),eo_EO:g._("Esperanto"),es_AR:g._("Spanish (Argentina)"),es_BO:g._("Spanish (Bolivia)"),es_CL:g._("Spanish (Chile)"),es_CO:g._("Spanish (Colombia)"),es_CR:g._("Spanish (Costa Rica)"),es_CU:g._("Spanish (Cuba)"),es_DO:g._("Spanish (Dominican Republic)"),es_EA:g._("Spanish (Ceuta & Melilla)"),es_EC:g._("Spanish (Ecuador)"),es_ES:g._("Spanish (Spain)"),es_GQ:g._("Spanish (Equatorial Guinea)"),es_GT:g._("Spanish (Guatemala)"),es_HN:g._("Spanish (Honduras)"),es_IC:g._("Spanish (Canary Islands)"),es_LA:g._("Spanish"),es_MX:g._("Spanish (Mexico)"),es_NI:g._("Spanish (Nicaragua)"),es_PA:g._("Spanish (Panama)"),es_PE:g._("Spanish (Peru)"),es_PH:g._("Spanish (Philippines)"),es_PR:g._("Spanish (Puerto Rico)"),es_PY:g._("Spanish (Paraguay)"),es_SV:g._("Spanish (El Salvador)"),es_US:g._("Spanish (United States)"),es_UY:g._("Spanish (Uruguay)"),es_VE:g._("Spanish (Venezuela)"),et_EE:g._("Estonian"),eu_ES:g._("Basque"),fa_IR:g._("Persian"),fb_LT:g._("Leet Speak"),fi_FI:g._("Finnish"),fo_FO:g._("Faroese"),fr_BE:g._("French (Belgium)"),fr_BF:g._("French (Burkina Faso)"),fr_BI:g._("French (Burundi)"),fr_BJ:g._("French (Benin)"),fr_BL:g._("French (St. Barthlemy)"),fr_CA:g._("French (Canada)"),fr_CD:g._("French (Congo - Kinshasa)"),fr_CF:g._("French (Central African Republic)"),fr_CG:g._("French (Congo - Brazzaville)"),fr_CH:g._("French (Switzerland)"),fr_CI:g._("French (Cote d'Ivoire)"),fr_CM:g._("French (Cameroon)"),fr_DJ:g._("French (Djibouti)"),fr_DZ:g._("French (Algeria)"),fr_FR:g._("French (France)"),fr_GA:g._("French (Gabon)"),fr_GF:g._("French (French Guiana)"),fr_GN:g._("French (Guinea)"),fr_GP:g._("French (Guadeloupe)"),fr_GQ:g._("French (Equatorial Guinea)"),fr_HT:g._("French (Haiti)"),fr_KM:g._("French (Comoros)"),fr_LU:g._("French (Luxembourg)"),fr_MA:g._("French (Morocco)"),fr_MC:g._("French (Monaco)"),fr_MF:g._("French (St. Martin)"),fr_MG:g._("French (Madagascar)"),fr_ML:g._("French (Mali)"),fr_MQ:g._("French (Martinique)"),fr_MR:g._("French (Mauritania)"),fr_MU:g._("French (Mauritius)"),fr_NC:g._("French (New Caledonia)"),fr_NE:g._("French (Niger)"),fr_PF:g._("French (French Polynesia)"),fr_PM:g._("French (St. Pierre & Miquelon)"),fr_RE:g._("French (La Reunion)"),fr_RW:g._("French (Rwanda)"),fr_SC:g._("French (Seychelles)"),fr_SN:g._("French (Senegal)"),fr_SY:g._("French (Syria)"),fr_TD:g._("French (Chad)"),fr_TG:g._("French (Togo)"),fr_TN:g._("French (Tunisia)"),fr_VU:g._("French (Vanuatu)"),fr_WF:g._("French (Wallis & Futuna)"),fr_YT:g._("French (Mayotte)"),fy_NL:g._("Frisian"),ga_IE:g._("Irish"),gl_ES:g._("Galician"),gn_PY:g._("Guarani"),gu_IN:g._("Gujarati"),gx_GR:g._("Classical Greek"),he_IL:g._("Hebrew"),hi_IN:g._("Hindi"),hr_HR:g._("Croatian"),hu_HU:g._("Hungarian"),hy_AM:g._("Armenian"),id_ID:g._("Indonesian"),is_IS:g._("Icelandic"),it_IT:g._("Italian"),iw_IL:g._("Hebrew (Israel)"),ja_JP:g._("Japanese"),ja_KS:g._("Japanese (Japan Kansai)"),jv_ID:g._("Javanese"),ka_GE:g._("Georgian"),kk_KZ:g._("Kazakh"),km_KH:g._("Khmer"),kn_IN:g._("Kannada"),ko_KR:g._("Korean"),ku_TR:g._("Kurdish"),la_VA:g._("Latin"),li_NL:g._("Limburgish"),lt_LT:g._("Lithuanian"),lv_LV:g._("Latvian"),mg_MG:g._("Malagasy"),mk_MK:g._("Macedonian"),ml_IN:g._("Malayalam"),mn_MN:g._("Mongolian"),mr_IN:g._("Marathi"),ms_MY:g._("Malay"),mt_MT:g._("Maltese"),nb_NO:g._("Norwegian (Bokmal)"),ne_NP:g._("Nepali"),nl_BE:g._("Dutch (Belgium)"),nl_NL:g._("Dutch"),nn_NO:g._("Norwegian (Nynorsk)"),pa_IN:g._("Punjabi"),pl_PL:g._("Polish"),ps_AF:g._("Pashto"),pt_BR:g._("Portuguese (Brazil)"),pt_PT:g._("Portuguese (Portugal)"),qu_PE:g._("Quechua"),rm_CH:g._("Romansh"),ro_RO:g._("Romanian"),ru_BY:g._("Russian (Belarus)"),ru_KZ:g._("Russian (Kazakhstan)"),ru_RU:g._("Russian"),ru_UA:g._("Russian (Ukraine)"),sa_IN:g._("Sanskrit"),se_NO:g._("Northern Sami"),sk_SK:g._("Slovak"),sl_SI:g._("Slovenian"),so_SO:g._("Somali"),sq_AL:g._("Albanian"),sr_RS:g._("Serbian"),sv_SE:g._("Swedish"),sw_KE:g._("Swahili"),sy_SY:g._("Syriac"),ta_IN:g._("Tamil"),te_IN:g._("Telugu"),tg_TJ:g._("Tajik"),th_TH:g._("Thai"),tl_PH:g._("Filipino"),tl_ST:g._("Klingon"),tr_TR:g._("Turkish"),tt_RU:g._("Tatar"),uk_UA:g._("Ukrainian"),ur_PK:g._("Urdu"),uz_UZ:g._("Uzbek"),vi_VN:g._("Vietnamese"),xh_ZA:g._("Xhosa"),yi_DE:g._("Yiddish"),zh_CN:g._("Simplified Chinese (China)"),zh_HK:g._("Traditional Chinese (Hong Kong)"),zh_TW:g._("Traditional Chinese (Taiwan)"),zu_ZA:g._("Zulu")}}),null); __d("RightsManagerRulesRequestSource",[],(function(a,b,c,d,e,f){e.exports={MATCH_SETTINGS_DIALOG:"MATCH_SETTINGS_DIALOG",RULES_SELECTOR:"RULES_SELECTOR",RULES_TAB:"RULES_TAB"}}),null); __d("VideoCopyrightDisputeStatus",[],(function(a,b,c,d,e,f){e.exports={IN_PROGRESS:"IN_PROGRESS",APPEALED:"APPEALED",RESOLVED_CLAIM_RETRACTED:"RESOLVED_CLAIM_RETRACTED",RESOLVED_CLAIM_UPHELD:"RESOLVED_CLAIM_UPHELD",RESOLVED_TAKEDOWN_REQUESTED:"RESOLVED_TAKEDOWN_REQUESTED",EXPIRED_RELEASED:"EXPIRED_RELEASED",EXPIRED_UPHELD:"EXPIRED_UPHELD",APPEAL_REJECTED:"APPEAL_REJECTED"}}),null); __d("VideoCopyrightRuleConditionType",[],(function(a,b,c,d,e,f){e.exports={UNDEFINED:"UNDEFINED",GEO:"GEO",MONITORING_TYPE:"MONITORING_TYPE",OVERLAP_DURATION:"OVERLAP_DURATION",VIDEO_EXPERIENCE:"VIDEO_EXPERIENCE",PUBLISHER_TYPE:"PUBLISHER_TYPE",MATCH_OVERLAP_PERCENTAGE:"MATCH_OVERLAP_PERCENTAGE",REFERENCE_OVERLAP_PERCENTAGE:"REFERENCE_OVERLAP_PERCENTAGE",PRIVACY:"PRIVACY",VALIDITY_PERIOD:"VALIDITY_PERIOD"}}),null); __d("VideoCopyrightRuleOperatorType",[],(function(a,b,c,d,e,f){e.exports={UNDEFINED:"UNDEFINED",IS:"IS",IS_NOT:"IS_NOT",IN_SET:"IN_SET",NOT_IN_SET:"NOT_IN_SET",LESS_THAN:"LESS_THAN",LESS_THAN_OR_EQUAL:"LESS_THAN_OR_EQUAL",GREATER_THAN:"GREATER_THAN",GREATER_THAN_OR_EQUAL:"GREATER_THAN_OR_EQUAL"}}),null); __d("AdsUseExistingPostModalOnRowSelectDataProviderPlugin",[],(function(a,b,c,d,e,f){"use strict";a={initialState:{selectedPost:null}};e.exports=a}),null); __d("AdsUseExistingPostModalOnRowSelectDataProvider",["Laminar","AdsUseExistingPostModalOnRowSelectDataProviderPlugin"],(function(a,b,c,d,e,f){"use strict";e.exports=b("Laminar").__createProvider(b("AdsUseExistingPostModalOnRowSelectDataProviderPlugin"),"AdsUseExistingPostModalOnRowSelectDataProviderPlugin")}),null); __d("AdsUseExistingPostModalOnRowSelectDataReducerPlugin",[],(function(a,b,c,d,e,f){"use strict";a={reduce:function(a,b){return{selectedPost:b.selectedPost}}};e.exports=a}),null); __d("AdsUseExistingPostModalOnRowSelectDataAction",["Laminar","AdsUseExistingPostModalOnRowSelectDataReducerPlugin","AdsUseExistingPostModalOnRowSelectDataProvider"],(function(a,b,c,d,e,f){"use strict";a=b("Laminar").__createAction(function(){return[b("Laminar").__createReducer(b("AdsUseExistingPostModalOnRowSelectDataReducerPlugin"),b("AdsUseExistingPostModalOnRowSelectDataProvider"),{})]},function(){return[]},"ADS_CREATE_POST.ROW_SELECT_ACTION");e.exports=a}),null); __d("useEffectOnce",["React"],(function(a,b,c,d,e,f){"use strict";var g=b("React").useEffect;function a(a){return g(a,[])}e.exports=a}),null); __d("AdsLWIInlineEditableText.react",["ix","cx","fbt","FDSButton.react","FDSText.react","Image.react","InlineBlock.react","React","ShimButton.react","SUIBusinessTheme","SUIBusinessThemeContainer.react","SUITextInput.react","asset","joinClasses","cxMargin"],(function(a,b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j=b("React").useCallback,k=b("React").useState;function a(a){__p&&__p();var c=a.onValueUpdate,d=k(!1),e=d[0],f=d[1];d=k(a.value);var h=d[0],i=d[1];d=j(function(){f(!0)},[]);var l=j(function(){f(!1),c&&c(h)},[h,c]),m=j(function(){f(!1)},[]),n=j(function(a){i(a)},[]),o=a.maxWidth;n=e?b("React").createElement("div",{style:{maxWidth:o}},b("React").createElement(b("SUITextInput.react"),{display:"inline",isAutoSized:!0,placeholder:a.placeholder,value:h,width:a.maxWidth,onChange:n})):b("React").createElement("div",{style:{maxWidth:o}},b("React").createElement(b("FDSText.react"),{display:"inline",size:a.size},h!==""?h:a.placeholder));o=e?b("React").createElement(b("InlineBlock.react"),null,b("React").createElement(b("FDSButton.react"),{label:"Save",margin:"_3-8_",use:"primary",onClick:l}),b("React").createElement(b("FDSButton.react"),{label:"Cancel",use:"default",onClick:m})):b("React").createElement(b("InlineBlock.react"),{className:"_4e4m"},b("React").createElement(b("ShimButton.react"),{className:"_4e4r",onClick:d},b("React").createElement(b("Image.react"),{src:g("496319")})));return b("React").createElement(b("SUIBusinessThemeContainer.react"),{theme:b("SUIBusinessTheme")},b("React").createElement("div",{className:b("joinClasses")("_4e4s",a.className)},b("React").createElement("div",{className:"_4e4t"},b("React").createElement(b("InlineBlock.react"),{className:"_3-90"},n)),b("React").createElement("div",{className:"_4e4t _4e4u"},o)))}a.defaultProps={placeholder:i._("Enter some text")};e.exports=a}),null); __d("AdsCMSaveFilterSetDialog.react",["cx","fbt","BUIAdoptionDialogButton.react","LayerFadeOnHide","LayerHideOnEscape","LayerHideOnTransition","React","SUIBusinessTheme","SUIModal.react","SUIModalFooter.react","SUIModalHeader.react","XUITextInput.react","trim"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){var c,d;for(var e=arguments.length,f=new Array(e),g=0;g=0;e--){c=b("getByPath")(a.userpermissions.data[e],["business","id"]);if(c&&d===c)break}!c&&!b("killswitch")("BUSINESS_USE_PAGE_ASSET_BUSINESS_INFO_TO_GROUP")&&b("getByPath")(a,["business"])&&(c=b("getByPath")(a,["business","id"]))}return c?c:b("BusinessAssetGrouping.brands").NULL_BIZ_ID};d.$3=function(){return b("getObjectValues")(this.props.pages).filter(Boolean)};return c}(b("React").Component);c.defaultProps={alignment:"right",currentUserID:null,disableAnimation:!1,disabled:!1,groupByProject:!1,maxwidth:260,popoverHeight:16,popoverWidth:16,requireWhatsAppBusinessNumber:!0,showBusinessPages:!0,showDialogOnInit:!1,showNonBizGroupTitle:!0,showPageName:!1,showPageProfileImage:!0,showWhatsAppStatus:!1,size:"large"};c.contextType=a;e.exports=c}),null); __d("AdsFilterChangeTypes",["keyMirror"],(function(a,b,c,d,e,f){"use strict";a=b("keyMirror")({ADD_INPUT:null,ADD_PRESET:null,ADD_SAVED_FILTER:null,CLEAR:null,CREATE_NEW:null,EDIT:null,REMOVE:null,REMOVE_PRESET:null,REMOVE_SAVED_FILTER:null});e.exports=a}),null); __d("LiftTimeUtils",["fbt","AdsTimezone","DateConsts","DateTime","Timezone"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();var h=b("DateConsts").MS_PER_SEC;d=b("Timezone").UTC;f=b("Timezone").getEnvironmentTimezoneID;b("Timezone").registerDefaultNamesAndRulesModules();var i=f()||d;function j(a,c){a===void 0&&(a=i);c===void 0&&(c="UTC");var d=b("AdsTimezone").sortedTimezones.find(function(b){return b.id===a});return d?c+d.offset:c}function a(a,c,d){c===void 0&&(c=i);d===void 0&&(d={});return b("DateTime").create(a/h,c).startOfDay().add(d).getUnixTimestamp()}function k(a,c){c===void 0&&(c=i);return b("DateTime").create(a/h,c).format("M j, Y")}function l(a,c){return b("DateTime").create(a/h,c).format("g:iA")}function c(a,b,c,d){c===void 0&&(c=i);d===void 0&&(d="UTC");return b===0?g._("Start on {start date} {test start time} {timezone offset} and repeat periodically",[g._param("start date",k(a,c)),g._param("test start time",l(a,c)),g._param("timezone offset",j(c,d))]):g._("{start date} {test start time} to {end date} {test end time} ({timezone offset})",[g._param("start date",k(a,c)),g._param("test start time",l(a,c)),g._param("end date",k(b,c)),g._param("test end time",l(b,c)),g._param("timezone offset",j(c,d))])}e.exports={DAY:24*60*60*1e3,SECONDS_PER_DAY:86400,SECONDS_PER_HOUR:3600,SECONDS_PER_MINUTE:60,MS_IN_SEC:1e3,LOCAL_TIMEZONE_ID:i,getTimezoneOffset:j,timeToMidnight:a,formatDateMjY:k,getStudyTimeString:c}}),null); __d("AdsCFExternalCreationLoadConfirmationDialogReducerPlugin",[],(function(a,b,c,d,e,f){"use strict";a={reduce:function(a,b){return babelHelpers["extends"]({},a,{showDialog:!0})}};e.exports=a}),null); __d("SignalsExpandable.react",["ix","cx","Image.react","React","ShimButton.react","asset","emptyFunction","immutable","joinClasses"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();var i=b("immutable").List;a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f0&&(a=this.props.width/this.props.duration);a=this.props.progress*a;var c=this.props.showScrubberHandle?this.props.scrubberHandleRadius:0,d=Math.max(this.props.scrubberBarHeight,c*2);return b("React").createElement("div",{className:"_65da",ref:"scrubber",style:{width:this.props.width-c}},b("React").createElement(b("AudioPlayerScrubberBar.react"),{backgroundColor:this.props.scrubberBackgroundColor,barHeight:this.props.scrubberBarHeight,cornerRadius:this.props.cornerRadius,height:d,lapsedColor:this.props.scrubberLapsedColor,onMouseDown:this.$1,translate:a,theme:this.props.theme,width:this.props.width},this.props.showScrubberHandle?b("React").createElement(b("AudioPlayerScrubberBarHandle.react"),{color:this.props.scrubberHandleColor,onMouseDown:this.$1,radius:this.props.scrubberHandleRadius,translate:"translate("+(a-this.props.scrubberHandleRadius)+")"}):null))};return c}(b("React").Component);c.defaultProps=a;e.exports=c}),null); __d("AudioPlayerTimestamp.react",["cx","FlexLayout.react","React","formatDurationSeconds"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){__p&&__p();var a=this.props,c=a.location,d=a.position,e=a.progress;a=a.duration;if(d==="none")return null;e={left:b("React").createElement("div",{className:"_6596"+(this.props.theme==="LIGHT"?" _qwp":"")},b("formatDurationSeconds")(e)),right:b("React").createElement("div",{className:"_6596"+(this.props.theme==="LIGHT"?" _qwp":"")},b("formatDurationSeconds")(a))};a=b("React").createElement(b("FlexLayout.react"),{justify:"end",className:"_1h7d"+(this.props.theme==="LIGHT"?" _qwp":"")},e.left,"/",e.right);if(d===c)return a;else if(d==="split")return e[c];else return null};return c}(b("React").Component);a.defaultProps={location:"left",position:"left"};e.exports=a}),null); __d("AudioPlayerVolumeSettings",["WebStorage","keyMirror"],(function(a,b,c,d,e,f){__p&&__p();var g=b("keyMirror")({AUDIO_PLAYER_CONTROLLER_VOLUME_BEFORE_MUTE:"",AUDIO_PLAYER_CONTROLLER_VOLUME:""});a=function(){"use strict";__p&&__p();function a(){this.$1=1,this.$2=1,this.$3=b("WebStorage").getLocalStorage()}var c=a.prototype;c.getVolume=function(){if(this.$3){var a=this.$3.getItem(g.AUDIO_PLAYER_CONTROLLER_VOLUME);if(a!==null&&!isNaN(+a))return+a}return this.$1};c.saveVolume=function(a){this.$3&&this.$3.setItem(g.AUDIO_PLAYER_CONTROLLER_VOLUME,String(a)),this.$1=a};c.getLastVolumeBeforeMute=function(){if(this.$3){var a=this.$3.getItem(g.AUDIO_PLAYER_CONTROLLER_VOLUME_BEFORE_MUTE);if(a!==null&&!isNaN(+a))return+a}return this.$2};c.saveLastVolumeBeforeMute=function(a){this.$3&&this.$3.setItem(g.AUDIO_PLAYER_CONTROLLER_VOLUME_BEFORE_MUTE,String(a)),this.$2=a};return a}();e.exports=new a()}),null); __d("AudioPlayerVolumeSlider.react",["cx","Event","React","ReactDOM","SubscriptionsHandler","emptyFunction","getElementPosition","shallowCompare"],(function(a,b,c,d,e,f,g){__p&&__p();a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){var c,d;for(var e=arguments.length,f=new Array(e),g=0;g0&&(d.setState({nubEngaged:!0,lastVolumeBeforeMute:a}),b("AudioPlayerVolumeSettings").saveLastVolumeBeforeMute(a))},d.$7=function(a){a>0&&(d.setState({lastVolumeBeforeMute:a}),b("AudioPlayerVolumeSettings").saveLastVolumeBeforeMute(a)),d.props.onVolumeChange(a),d.setState({nubEngaged:!1})},d.$3=function(a){d.props.onVolumeChange&&d.props.onVolumeChange(a)},c)||babelHelpers.assertThisInitialized(d)}var d=c.prototype;d.shouldComponentUpdate=function(a,c){return b("shallowCompare")(this,a,c)};d.$9=function(){return this.props.volume};d.$2=function(){this.state.lastVolumeBeforeMute>0&&this.state.lastVolumeBeforeMute<=1||i(0,2385)};d.render=function(){var a=Math.round(this.$9()*100),c;a===0?c="MUTE":a<=33?c="LOW":a<=66?c="MID":c="HIGH";c=b("AudioPlayerAssets").getAudioPlayerIconAsset(c,this.props.iconSize,this.props.theme);c=b("React").createElement("div",{className:"_1iuj"+(this.props.iconSize==="LARGE"?" _40-2":"")},b("React").createElement(b("Image.react"),{src:c}));a=a===0?h._("Unmute"):h._("Mute");return b("React").createElement("div",{className:"_1iuf"+(this.state.nubEngaged?" _1iun":"")+(this.state.focused?" _3b6p":"")+(this.props.iconSize==="LARGE"?" _40-2":"")},b("React").createElement(b("AudioPlayerVolumeSlider.react"),{onVolumeChangeBegin:this.$10,onVolumeChangeEnd:this.$7,onVolumeChange:this.$3,theme:this.props.theme,volume:this.$9()}),b("React").createElement(b("AbstractButton.react"),{className:"_1iuh",image:c,label:a,labelIsHidden:!0,onBlur:this.$5,onClick:this.$1,onFocus:this.$4,onKeyDown:this.$6,onMouseOut:this.$8,ref:"button",tabIndex:this.props.tabIndex,type:"button"}))};return c}(b("React").Component);e.exports=a}),null); __d("SoundCollectionHoverIcon.react",["cx","Image.react","React"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();a=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){return b("React").createElement("div",{className:"_6d53"},b("React").createElement("div",{className:"_6d54"},b("React").createElement(b("Image.react"),{src:this.props.icon})),b("React").createElement("div",{className:"_6d56"},b("React").createElement(b("Image.react"),{src:this.props.iconHover})))};return c}(b("React").Component);e.exports=a}),null); __d("SoundCollectionDownloadButton.react",["ix","Link.react","React","SoundCollectionHoverIcon.react","asset","emptyFunction"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();a=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){return b("React").createElement(b("Link.react"),{className:this.props.margin,download:this.props.title,href:this.props.href,s:"yes",onClick:this.props.onDownload},b("React").createElement(b("SoundCollectionHoverIcon.react"),{icon:g("425468"),iconHover:g("425467")}))};return c}(b("React").Component);a.defaultProps={title:"Untitled",onDownload:b("emptyFunction")};e.exports=a}),null); __d("AudioPlayerView.react",["cx","AudioPlayerControlPanel.react","AudioPlayerPlayPauseButton.react","AudioPlayerScrubber.react","AudioPlayerTimestamp.react","AudioPlayerVolumeControl.react","DateConsts","FlexLayout.react","React","SoundCollectionDownloadButton.react","cxMargin"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.calculateScrubberWidth=function(a){__p&&__p();var c=this.props,d=c.duration,e=c.simplePlayPauseButton,f=c.showDownload;c=c.showVolume;f&&(a-=32);c&&(a-=32);e&&(a-=32);if(d>10*b("DateConsts").SEC_PER_HOUR)return a-152;if(d>b("DateConsts").SEC_PER_HOUR)return a-142;return d>10*b("DateConsts").SEC_PER_MIN?a-122:a-112};d.render=function(){var a=this.props,c=a.className,d=a.controlPanelButtons,e=a.duration,f=a.iconSize,g=a.isPlaying,h=a.onVolumeChange,i=a.onDownload,j=a.progress,k=a.showDownload,l=a.showVolume,m=a.showScrubber,n=a.simplePlayPauseButton,o=a.src,p=a.timestampPosition,q=a.title,r=a.theme,s=a.togglePlayPause,t=a.volume;a=a.width;n=n?b("React").createElement(b("AudioPlayerPlayPauseButton.react"),{className:"_6595",iconSize:f,onClick:s,playing:g,theme:r}):null;s=d.length>0?b("React").createElement(b("AudioPlayerControlPanel.react"),{controlPanelButtons:d,playing:g}):null;return b("React").createElement("div",{className:c,style:{width:a}},s,b("React").createElement(b("FlexLayout.react"),{justify:"center",align:"center"},n,b("React").createElement(b("AudioPlayerTimestamp.react"),{progress:j,duration:e,location:"left",position:p,theme:r}),m?b("React").createElement(b("AudioPlayerScrubber.react"),babelHelpers["extends"]({},this.props,{width:this.calculateScrubberWidth(a)})):null,b("React").createElement(b("AudioPlayerTimestamp.react"),{progress:j,duration:e,location:"right",position:p,theme:r}),l?b("React").createElement(b("AudioPlayerVolumeControl.react"),{iconSize:f,theme:r,onVolumeChange:h,volume:t,tabIndex:"0"}):null,k?b("React").createElement(b("SoundCollectionDownloadButton.react"),{href:o,margin:"_3-8r",onDownload:i,title:q}):null))};return c}(b("React").Component);a.defaultProps={showDownload:!1,showScrubber:!0,showVolume:!1};e.exports=a}),null); __d("AudioPlayer.react",["AudioPlayerControls","AudioPlayerView.react","AudioPlayerVolumeSettings","Event","React","ReactDOM","SubscriptionsHandler","emptyFunction"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=250,h=!0,i=!1;a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){__p&&__p();var c,d;for(var e=arguments.length,f=new Array(e),j=0;j0&&this.getProgress()!==0&&(this.audioElement.currentTime=0,this.forceUpdate())};d.setProgress=function(a){this.audioElement.currentTime=Math.min(Math.max(a,0),this.getDuration()),this.forceUpdate()};d.getProgress=function(){return this.audioElement&&this.audioElement.currentTime?this.audioElement.currentTime:0};d.getDuration=function(){return this.audioElement&&this.audioElement.duration?this.audioElement.duration:0};d.getVolume=function(){return this.audioElement&&this.audioElement.volume?this.audioElement.volume:0};d.isPlaying=function(){return this.audioElement!==void 0&&!this.audioElement.paused};d.isTrackCompleted=function(){return this.getDuration()===this.getProgress()};d.setPlayPauseTo=function(a){this.isPlaying()!==a&&this.playing!==a&&(a?this.playAudio():this.pauseAudio())};d.moveProgressBySec=function(a){this.setProgress(this.getProgress()+a)};d.componentDidMount=function(){this.audioElement=document.createElement("audio"),this.subscriptionsHandler=new(b("SubscriptionsHandler"))(),this.subscriptionsHandler.addSubscriptions(b("Event").listen(this.audioElement,"canplay",this.onCanPlay),b("Event").listen(this.audioElement,"play",this.onPlay),b("Event").listen(this.audioElement,"pause",this.onPause),b("Event").listen(b("ReactDOM").findDOMNode(this),"audio-play",this.playAudio),b("Event").listen(b("ReactDOM").findDOMNode(this),"audio-pause",this.pauseAudio),b("Event").listen(this.audioElement,"ended",this.props.onTrackEnded)),this.audioElement.src=this.props.src,this.audioElement.loop=this.props.loop,this.setVolume(this.props.defaultVolume),this.audioElement.autoplay=this.props.autoplay,this.audioElement.load()};d.UNSAFE_componentWillReceiveProps=function(a){this.props.src!==a.src&&(this.audioElement.src=a.src,this.audioElement.load(),this.forceUpdate())};d.$1=function(){this.forceUpdateInterval!==null&&(window.clearInterval(this.forceUpdateInterval),this.forceUpdateInterval=null)};d.componentWillUnmount=function(){this.audioElement&&(this.audioElement.pause(),this.audioElement.remove()),this.subscriptionsHandler.release(),this.$1()};d.getOnClickFunctionForControlPanelButton=function(a){__p&&__p();var c=this;switch(a){case b("AudioPlayerControls").PLAY_PAUSE:return this.togglePlayPause;case b("AudioPlayerControls").SKIP_BACK_INCREMENTAL:return function(){c.moveProgressBySec(-10)};case b("AudioPlayerControls").SKIP_FORWARD_INCREMENTAL:return function(){c.moveProgressBySec(10)};case b("AudioPlayerControls").SKIP_FORWARD:return this.props.onSkipToNext?this.props.onSkipToNext:function(){c.setProgress(c.getDuration())};case b("AudioPlayerControls").SKIP_BACK:return this.props.onRewindToPrevious&&this.getProgress()<=1?this.props.onRewindToPrevious:function(){c.setProgress(0),c.setPlayPauseTo(h)};default:return function(){}}};d.render=function(){var a=this,c=this.props.controlPanelSelection.map(function(b){return{typeName:b,onClick:a.getOnClickFunctionForControlPanelButton(b)}});return b("React").createElement(b("AudioPlayerView.react"),babelHelpers["extends"]({},this.state,this.props,{controlPanelButtons:c,isPlaying:this.isPlaying(),duration:this.getDuration(),progress:this.getProgress(),volume:this.getVolume(),onSeekEnd:this.onSeekEnd,onSeekStart:this.onSeekStart,onSeekUpdate:this.onSeekUpdate,togglePlayPause:this.togglePlayPause,onVolumeChange:this.setVolume}))};return c}(b("React").Component);a.defaultProps={autoplay:!1,defaultVolume:.7,controlPanelSelection:[],iconSize:"MEDIUM",loop:!1,simplePlayPauseButton:!0,timestampPosition:"left",theme:"DARK",width:400,onDownload:b("emptyFunction"),onTogglePlayPause:b("emptyFunction"),onReadyToPlay:b("emptyFunction"),onTrackEnded:b("emptyFunction")};e.exports=a}),null); __d("AbstractInfiniteScroll.react",["cx","React","ReactDOM","Scroll","SubscriptionsHandler","joinClasses"],(function(a,b,c,d,e,f,g){__p&&__p();a=b("React").PropTypes;c=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){__p&&__p();var c,d;for(var e=arguments.length,f=new Array(e),g=0;g=e.scrollHeight-c&&a()},c)||babelHelpers.assertThisInitialized(d)}var d=c.prototype;d.componentDidMount=function(){var a=b("ReactDOM").findDOMNode(this);this.$1=new(b("SubscriptionsHandler"))();this.$1.addSubscriptions(this.props.resizeEventSubscription(a,this.checkIfEndReached),this.props.scrollEventSubscription(a,this.checkIfEndReached));this.checkIfEndReached()};d.componentDidUpdate=function(){this.checkIfEndReached()};d.componentWillUnmount=function(){this.$1.release(),delete this.$1};d.render=function(){return b("React").createElement("div",babelHelpers["extends"]({},this.props,{className:b("joinClasses")(this.props.className,"_3kbk")}),this.props.children)};return c}(b("React").Component);c.propTypes={distanceToEnd:a.number,onEndReached:a.func,resizeEventSubscription:a.func.isRequired,scrollEventSubscription:a.func.isRequired};c.defaultProps={distanceToEnd:50};e.exports=c}),null); __d("InfiniteScroll.react",["AbstractInfiniteScroll.react","Event","React"],(function(a,b,c,d,e,f){__p&&__p();a=function(a){"use strict";babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){return b("React").createElement(b("AbstractInfiniteScroll.react"),babelHelpers["extends"]({},this.props,{resizeEventSubscription:g,scrollEventSubscription:h}))};return c}(b("React").Component);a.defaultProps=b("AbstractInfiniteScroll.react").defaultProps;function g(a,c){return b("Event").listen(a,"resize",c)}function h(a,c){return b("Event").listen(a,"scroll",c)}e.exports=a}),null); __d("sumOfArray",[],(function(a,b,c,d,e,f){function a(a){var b=0,c=a.length;for(var d=0;d0&&a===0)return null;a=d(c)!==0?100*d(a)/d(c)+"%":"0";a={backgroundColor:this.getColorAtIndex(e),width:a};return b("React").createElement("div",{className:"_5abn",key:e,style:a})}return b("React").createElement("div",{className:"_5abm",style:e},a.map(f,this),b("React").createElement("div",{className:"_352g"}))};return c}(b("React").Component);e.exports=a}),null); __d("InsightsBackgroundBar.react",["cx","PageInsightsSponsoredPostsTableUnavailableContent.react","React","ReactDOM","Tooltip","XUIBackgroundBar.react","joinClasses","sumOfArray"],(function(a,b,c,d,e,f,g){__p&&__p();a=b("React").PropTypes;c=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){var c,d;for(var e=arguments.length,f=new Array(e),g=0;g=2;!c||a===0?b("Tooltip").remove(b("ReactDOM").findDOMNode(d.refs.bar)):b("Tooltip").set(b("ReactDOM").findDOMNode(d.refs.bar),b("ReactDOM").findDOMNode(d.refs.tooltip).cloneNode(!0),"above","center")},c)||babelHelpers.assertThisInitialized(d)}var d=c.prototype;d.componentDidMount=function(){this.$1()};d.componentDidUpdate=function(a){a.values!=this.props.values&&this.$1()};d.componentWillUnmount=function(){b("Tooltip").remove(b("ReactDOM").findDOMNode(this.refs.bar))};d.render=function(){__p&&__p();var a="_5kmz"+(this.props.tall?" _5km-":"")+(this.props.single?" _5km_":"")+(this.props["short"]?" _5vip":"")+(this.props.thin?" _608_":""),c=Array.isArray(this.props.values)?this.props.values:[this.props.values],d=this.props.scale&&this.props.scale.tickFormat(),e=this.props.totalValue?this.props.totalValue:b("sumOfArray")(c||[]),f=c.map(function(a,c){var d=this.props.titles?this.props.titles[c]:null,e=this.props.scale.tooltipFormat&&this.props.scale.tooltipFormat();e=e(a);this.props.availability&&!this.props.availability[c]&&(e=b("React").createElement(b("PageInsightsSponsoredPostsTableUnavailableContent.react"),{type:"Instagram"}));a=d||c;return b("React").createElement("div",{key:a,className:"_5kn0"},b("React").createElement("div",{className:"_5kn1"},d),b("React").createElement("div",{className:"_5kn2"},e))},this),g=null,h=null;this.props.labelWidth&&(g={marginLeft:this.props.labelWidth},h={width:this.props.labelWidth});if(this.props.label||typeof this.props.label==="undefined")var i=b("React").createElement("div",{className:"_5kn3 ellipsis",style:h},this.props.label||d(e));return b("React").createElement("div",{className:b("joinClasses")(a,this.props.className)},i,b("React").createElement("div",{className:"_5kn4 _11uq",style:g},b("React").createElement(b("XUIBackgroundBar.react"),{colors:this.props.colors,ref:"bar",scale:this.props.scale,values:c,inlineLabels:this.props.inlineLabels}),b("React").createElement("div",{className:"_5kn5",ref:"tooltip"},f)))};return c}(b("React").Component);c.propTypes={className:a.string,colors:a.oneOfType([a.array,a.func]),forceTooltip:a.bool,label:a.oneOfType([a.bool,a.object,a.string]),labelWidth:a.string,scale:a.func,single:a.bool,tall:a.bool,"short":a.bool,thin:a.bool,titles:a.array,values:a.array,totalValue:a.number,availability:a.array};e.exports=c}),null); __d("FBNoSelect",["DOMQuery","Event","UserAgent"],(function(a,b,c,d,e,f){__p&&__p();var g=["input","select","textarea","object","embed"];a=function(){"use strict";__p&&__p();function a(){this.$1=!1,this.$2={},this.$3={},this.$4=Array.from(g)}var c=a.prototype;c.addBlockClass=function(a){this.$5();return this.$6(this.$2,a)};c.removeBlockClass=function(a){this.$5();return this.$7(this.$2,a)};c.addUnblockClass=function(a){this.$5();return this.$6(this.$3,a)};c.removeUnblockClass=function(a){this.$5();return this.$7(this.$3,a)};c.addUnblockNodeType=function(a){this.$5();this.$4.includes(a)||this.$4.push(a);return this};c.removeUnblockNodeType=function(a){this.$5();a=this.$4.indexOf(a);a!==-1&&this.$4.splice(a,1);return this};c.addUnblockLayers=function(){this.addUnblockClass("uiLayer");return this};c.$6=function(a,b){a[b]?a[b]++:a[b]=1;return this};c.$7=function(a,b){a[b]&&(a[b]--,a[b]==0&&delete a[b]);return this};c.shouldBlock=function(a){__p&&__p();if(!this.$1)return!1;for(var a=a;a!==null&&a!==document;a=a.parentNode){if(a.classList){for(var c in this.$2)if(a.classList.contains(c))return!0;for(var d in this.$3)if(a.classList.contains(d))return!1}var e=b("DOMQuery").isNodeOfType(a,this.$4);if(e)return!1}return!1};c.$5=function(){__p&&__p();var a=this;if(this.$1)return;this.$1=!0;if(b("UserAgent").isEngine("Gecko"))b("Event").listen(document,"mousedown",function(b){a.shouldBlock(b.getTarget())&&(document.body.style.MozUserSelect="none")}),b("Event").listen(document,"mouseup",function(a){document.body.style.MozUserSelect=""});else{var c=!1,d=!1;b("Event").listen(document,"selectstart",function(b){if(c){d&&b.kill();return}d=!1;c=!0;a.shouldBlock(b.getTarget())&&(d=!0,b.kill())});b("Event").listen(document,{mousedown:function(){c=!1},mouseup:function(){c=!1}})}};return a}();c=new a();e.exports=c}),null); __d("FBSimpleSlider.react",["cx","Event","FBNoSelect","React","ReactDOM","Rect","Style","forEachObject"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();var h=.001;a=b("React").PropTypes;var i={ArrowUp:1,ArrowLeft:-1,ArrowDown:-1,ArrowRight:1};c=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(b){var c;c=a.call(this,b)||this;c.$4=12;var d=b.value!==null?parseFloat(b.value.toFixed(b.decimalPlaces)):b.min;c.state={left:c.$5(d,b.min,b.max),isDragging:!1};return c}var d=c.prototype;d.$5=function(a,b,c){return Math.min(c,Math.max(b,a))};d.$6=function(a){var c=new(b("Rect"))(b("ReactDOM").findDOMNode(this.refs.sliderBox)),d=a.pageX-c.getLeft();if(a.type!=="mousemove"){a=c.w()*this.$7(this.state.left);d>=a&&d<=a+this.$4?this.$1=d-a:this.$1=this.$4/2}a=(d-this.$1)/c.w();return this.$5(a,0,1)};d.$8=function(a){var b=this.props,c=b.min;b=b.max;b=b-c;return a*b+c};d.$7=function(a){var b=this.props,c=b.min;b=b.max;return this.$5((a-c)/(b-c),0,1)};d.$9=function(a){a=parseFloat(a.toFixed(this.props.decimalPlaces));Math.abs(a-this.$3)>h&&(this.$3=a,this.props.onChange(a))};d.$10=function(a){__p&&__p();if(this.props.disabled)return;var b=this.state.left,c=this.props,d=c.min;c=c.max;var e=i[a.key];if(e){e=a.shiftKey?Infinity*e:b+this.props.step*e;e=this.$5(e,d,c);this.preventDefaultForKeyDown(a);Math.abs(b-e)>h&&(this.setState({left:e}),this.$9(e))}};d.$11=function(a){this.state.isDragging&&(this.setState({isDragging:!1}),b("forEachObject")(this.$2,function(a){return a.remove()}),this.props.onMouseUp&&this.props.onMouseUp(a))};d.$12=function(a){if(this.state.isDragging){a=this.$8(this.$6(a));this.setState({left:a});this.$9(a)}};d.$13=function(a){if(this.props.disabled)return;var c=this.$8(this.$6(a));this.setState({isDragging:!0,left:c});this.$9(c);this.$2=b("Event").listen(document,{mousemove:this.$12.bind(this),mouseup:this.$11.bind(this)});this.props.onMouseDown&&this.props.onMouseDown(a)};d.UNSAFE_componentWillReceiveProps=function(a){this.setState({left:a.value!==null?a.value:a.min})};d.componentDidMount=function(){var a=b("ReactDOM").findDOMNode(this.refs.handle);this.$4=a instanceof Element?parseInt(b("Style").get(a,"width"),10):0;isNaN(this.$4)&&(this.$4=12);b("FBNoSelect").addBlockClass("_7wdw");this.$3=0};d.componentWillUnmount=function(){b("FBNoSelect").removeBlockClass("_7wdw"),this.$11({})};d.preventDefaultForKeyDown=function(a){this.state.propagatesKeyDownEvents||a.preventDefault()};d.render=function(){var a=this.$7(this.state.left)*100+"%",c={left:a};return b("React").createElement("div",{className:"_7wdw",disabled:this.props.disabled,onKeyDown:this.$10.bind(this),onMouseDown:this.$13.bind(this),tabIndex:this.props.disabled?null:"0"},b("React").createElement("div",{className:"_7wdb"},b("React").createElement("div",{className:"_7wdc"},b("React").createElement("div",{className:"_7wdd",style:{width:a}}))),b("React").createElement("div",{ref:"sliderBox",className:"_7wde"},b("React").createElement("div",{ref:"handle",className:"_7wdf",disabled:!!this.props.noHandle,style:c})))};return c}(b("React").Component);c.defaultProps={decimalPlaces:2,disabled:!1,propagatesKeyDownEvents:!1,noHandle:!1,step:1,value:null};c.propTypes={decimalPlaces:a.number,disabled:a.bool,max:a.number.isRequired,min:a.number.isRequired,onChange:a.func.isRequired,onMouseDown:a.func,onMouseUp:a.func,propagatesKeyDownEvents:a.bool,noHandle:a.bool,step:a.number,value:a.number};e.exports=c}),null); __d("BUIDraggableList.react",["cx","invariant","AbstractDraggableList.react","BUIComponent","BUIDefaultDraggableItem.react","FBOverlayBase.react","React","XUIGrayText.react","joinClasses","mapObject"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();a=b("React").PropTypes;c=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){__p&&__p();var c,d;for(var e=arguments.length,f=new Array(e),g=0;g-1&&(b=Array.from(c.props.entries),b.splice(a,1));c.props.onChange(b)},b)||babelHelpers.assertThisInitialized(c)}var d=c.prototype;d.render=function(){return b("React").createElement("div",null,b("React").createElement(b("XUITokenizer.react"),{limit:this.$BUIFilterTokenTypeaheadInput1(),entries:this.props.entries,focusedOnInit:this.props.focusedOnInit,onAddEntryAttempt:this.$BUIFilterTokenTypeaheadInput2,onRemoveEntryAttempt:this.$BUIFilterTokenTypeaheadInput3,placeholder:this.props.placeholder,presenter:this.props.presenter,searchSource:this.props.searchSource,searchSourceOptions:this.props.searchSourceOptions,className:this.props.className,showEntriesOnFocus:this.props.showEntriesOnFocus}),this.$BUIFilterTokenTypeaheadInput4())};d.$BUIFilterTokenTypeaheadInput1=function(){this.props.maxTypeaheadTokens==null||this.props.maxTypeaheadTokens>0||i(0,6251);return this.props.maxTypeaheadTokens||j};d.$BUIFilterTokenTypeaheadInput5=function(){return this.props.entries.length===this.$BUIFilterTokenTypeaheadInput1()};d.$BUIFilterTokenTypeaheadInput6=function(a){var b=a.getUniqueID();a=this.props.entries;return a.some(function(a){return a.getUniqueID()===b})};d.$BUIFilterTokenTypeaheadInput4=function(){return!this.$BUIFilterTokenTypeaheadInput5()?null:b("React").createElement("div",{className:"_2pid"},b("React").createElement(b("XUIText.react"),{size:"meta1",display:"block"},h._("You've added the maximum number of tokens.")))};return c}(b("BUIComponent"));c.defaultProps={focusedOnInit:!0,placeholder:h._("Add tokens ex. baseball, daycare etc.")};c.propTypes={entries:a.arrayOf(a.instanceOf(b("SearchableEntry"))).isRequired,focusedOnInit:a.bool,maxTypeaheadTokens:a.number,onChange:a.func.isRequired,placeholder:a.node.isRequired,presenter:a.object,searchSource:a.instanceOf(b("AbstractSearchSource")).isRequired,searchSourceOptions:a.object};e.exports=c}),null); __d("VideoFormattingUtils",["DateConsts"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("DateConsts").SEC_PER_HOUR,h=b("DateConsts").MIN_PER_HOUR,i=b("DateConsts").SEC_PER_MIN;function j(a){return("0"+a).slice(-2)}function a(a){a=Math.round(a);var b=Math.floor(a/g),c=Math.floor(a%g/h);a=a%i;return(b>0?j(b)+":":"")+(b>0?j(c):c)+":"+j(a)}function c(a,b){if(b===0)return"0%";a=Math.round(a*100/b);return a+"%"}function d(a){a=Math.round(a);var b=Math.floor(a/g),c=Math.floor(a%g/i);a=Math.floor(a%i);b=b>0?b+"h":"";c=c>0?c+"m":"";a=a>0?a+"s":"";return b+c+a}f={formatPercentage:c,formatTime:a,formatTimeDuration:d};e.exports=f}),null); __d("ClockFormatConverter",["fbt","invariant","VideoFormattingUtils"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();var i=1e3,j=60,k=/^\d\d$/,l=/^\d?\d?$/;a={TIME_SEPARATOR:g._(":"),validate:function(a,b){__p&&__p();a=a.split(/:|\./);if(a.length===0)return!1;for(var c=0;c=j)return!1}return!0},timestampToSeconds:function(a){this.validate(a)||h(0,1475);a=a.split(this.TIME_SEPARATOR);var b,c=0,d=1;while(b=a.pop())c+=parseInt(b,10)*d,d*=j;return c},timestampToMillis:function(a){return this.timestampToSeconds(a)*i},secondsToTimestamp:function(a){return a===0?"0"+this.TIME_SEPARATOR+"00":b("VideoFormattingUtils").formatTime(a)},millisToTimestamp:function(a){return this.secondsToTimestamp(a/i)},normalize:function(a){a=this.timestampToSeconds(a);return this.secondsToTimestamp(a)},normalizedSecondsTimestamp:function(a){a=a.split(this.TIME_SEPARATOR).map(function(a){return a.length===1?"0"+a:a});return this.normalize(a.join(this.TIME_SEPARATOR))},normalizeMinutesTimestamp:function(a){a=a.split(this.TIME_SEPARATOR);if(a.length===1)a.push("00");else for(var b=1;bc&&this.props.onSave?b("React").createElement("span",null,b("React").createElement(b("ShimButton.react"),{className:"_49u2"+(this.props.disableSaveButton||this.state.activeFilter?" _wda":"")+" _3yz4 _3yz8",onClick:this.props.disableSaveButton||this.state.activeFilter?null:this.$BUIFilterTokenizer18,ref:"saveButton"},h._("Save Filter")),this.$BUIFilterTokenizer19()):null};d.$BUIFilterTokenizer19=function(){var a=this;if(this.props.showSaveButtonNUX){this.props.onSaveButtonNUXSeen&&this.props.onSaveButtonNUXSeen();return b("React").createElement(b("XUIAmbientNUX.react"),{alignment:"right",offsetY:-10,position:"below",width:"custom",customwidth:390,contextRef:function(){return a.refs.saveButton},shown:this.props.showSaveButtonNUX,onCloseButtonClick:this.props.onSaveButtonNUXClosed},h._("New! Save your custom filters to streamline your work. Saved filters appear in your filter menu."))}return null};d.$BUIFilterTokenizer9=function(a){return!this.props.isReadOnly&&a.length>0&&this.props.onClear?b("React").createElement(b("ShimButton.react"),{className:"_49u2 _3yz4 _3yz8",onClick:this.$BUIFilterTokenizer20},h._("Clear")):null};d.$BUIFilterTokenizer12=function(){return this.props.onCancel?b("React").createElement("div",{className:"_3-8_"},b("React").createElement(b("SUIButton.react"),{height:"tall",label:h._("Cancel"),onClick:this.props.onCancel})):null};d.$BUIFilterTokenizer4=function(){if(!this.props.hideLabel)return b("React").createElement("span",{className:"_3o1w"},h._("Filters:"))};d.$BUIFilterTokenizer14=function(a,c){var d=this.$BUIFilterTokenizer21(a),e=this.$BUIFilterTokenizer22(a),f=this.$BUIFilterTokenizer6();return b("React").createElement("div",{className:this.props.verticalLayout?"":"_3u0k",key:"token"+c},b("React").createElement(b("BUIFilterToken.react"),{contentEditable:j(this.state.activeFilter,a),disabled:!e||this.props.isReadOnly,confirmOnBlur:this.props.confirmTokensOnBlur,dismissOnBlur:this.props.dismissTokensOnBlur,expandTokenInput:this.props.expandTokenInput,filter:a,hasSearchableSelector:this.props.hasSearchableSelector,isReadOnly:this.props.isReadOnly,index:c,onEditCancelAttempt:this.$BUIFilterTokenizer23,onEditAttempt:this.$BUIFilterTokenizer24,onRemove:this.$BUIFilterTokenizer25,onChange:this.$BUIFilterTokenizer26,validFieldConfigs:d,filterConstructor:this.props.filterConstructor,fieldsConfig:this.props.fieldsConfig,valuesConfig:this.props.valuesConfig,timezoneID:this.props.timezoneID,theme:this.props.theme,hideMenuOnSingleItem:this.props.hideMenuOnSingleItem,disableFieldSelector:this.props.disableFieldSelector,canAddStandalone:f<=1,useSUI_EXPERIMENTAL:this.props.useSUI_EXPERIMENTAL,fieldGroupingConfig:this.props.fieldGroupingConfig,enableFilterPrefixes:this.props.enableFilterPrefixes}))};d.$BUIFilterTokenizer11=function(a){return!a?null:b("React").createElement("div",{className:"_4pfn"},a)};d.$BUIFilterTokenizer10=function(a){if(!a)return null;var c=this.props.filterSet?this.props.filterSet.values.length:0,d=b("AdsGenericFilterFieldConfigUtil").getConfigByField(this.props.fieldsConfig,a.field);return b("React").createElement("div",{className:this.props.verticalLayout?"":"_3u0k",key:"token"+c},b("React").createElement(b("BUIFilterToken.react"),{applyOnly:!0,contentEditable:!0,dismissOnBlur:!1,fieldsConfig:this.props.fieldsConfig,filter:a,filterConstructor:this.props.filterConstructor,hasSearchableSelector:this.props.hasSearchableSelector,index:c,onChange:this.$BUIFilterTokenizer27,onRemove:this.$BUIFilterTokenizer28,onEditCancelAttempt:this.$BUIFilterTokenizer28,theme:this.props.theme,timezoneID:this.props.timezoneID,validFieldConfigs:[d],valuesConfig:this.props.valuesConfig,useSUI_EXPERIMENTAL:this.props.useSUI_EXPERIMENTAL,fieldGroupingConfig:this.props.fieldGroupingConfig,enableFilterPrefixes:this.props.enableFilterPrefixes}))};d.$BUIFilterTokenizer2=function(){if(this.props.filterSet)return this.props.filterSet.values.find(function(a){return a.value===""})};d.$BUIFilterTokenizer30=function(){var a;this.props.filterSet?a=this.props.filterSet.values.slice(0):a=[];return a};d.$BUIFilterTokenizer21=function(a){var c=this;return this.state.validFieldConfigs.filter(function(d){if(a.field.key===d.field.key)return!0;return d.allowDuplication&&c.props.allowDuplication?!0:!b("AdsGenericFilterFieldConfigUtil").isFieldInFilterSet(d.field,c.props.filterSet)})};d.$BUIFilterTokenizer29=function(a){if(a==="")return!0;return Array.isArray(a)&&a.length===0?!0:!1};d.$BUIFilterTokenizer22=function(a){return this.state.validFieldConfigs.some(function(b){return a.field.key===b.field.key&&!b.isStatic})};d.$BUIFilterTokenizer6=function(){var a=this;return!this.props.filterSet?0:this.props.filterSet.values.filter(function(b){return a.state.validFieldConfigs.some(function(a){return b.field.key===a.field.key})}).length};c.$BUIFilterTokenizer3=function(a){return a.filter(function(a){return!a.applyOnly})};d.$BUIFilterTokenizer13=function(){return this.props.theme==="dark"};return c}(b("BUIComponent"));c.defaultProps=a;function j(a,b){if(a&&b)return a.key===b.key;else return a===b}e.exports=c}),null); __d("FDSButtonGroup.react",["cx","FDSPrivateButtonLayoutContext","FDSPrivateThemeAtomsType","FDSPrivateThemeContext.react","React","joinClasses","makeFDSStandardComponent"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();var h=b("FDSPrivateButtonLayoutContext").Provider;a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){__p&&__p();var c,d;for(var e=arguments.length,f=new Array(e),g=0;g=d.getFullYear()&&(e=d.getFullYear(),f&&f>=d.getMonth()+1&&(f=d.getMonth()+1,a&&a>d.getDate()&&(a=d.getDate()))),f?a&&a>b("DateConsts").getDaysInMonth(e,f)&&(a=b("DateConsts").getDaysInMonth(e,f)):a=0):f=a=0;return{year:e,month:f,day:a}},UNSAFE_componentWillReceiveProps:function(a){var c=new Date(a.minTime*b("DateConsts").MS_PER_SEC),d=new Date(a.maxTime*b("DateConsts").MS_PER_SEC);a.setDateTo!=null?this.setState(a.setDateTo):this.setState(this._getValidDate(this.state,c,d))}};e.exports=a}),null); __d("XUIProgressiveDatepicker.react",["cx","DateConsts","DateStrings","InlineBlock.react","ProgressiveDatepickerMixin","React","XUISelector.react"],(function(a,b,c,d,e,f,g){__p&&__p();var h=b("XUISelector.react").Option;a=b("React").createClass({displayName:"TimelineProgressiveDatepicker",mixins:[b("ProgressiveDatepickerMixin")],render:function(){__p&&__p();var a=[];for(var c=this._getMinYear();c<=this._getMaxYear();c++){var d=b("React").createElement(h,{key:c,title:c,value:c},c);this.props.descendingYears?a.unshift(d):a.push(d)}a.unshift(b("React").createElement(h,{key:0,title:b("DateStrings").getYearLabel(),value:0},b("DateStrings").getYearLabel()));d=null;if(this.state.year||this.props.minTimeUnit!=="year"){c=[b("React").createElement(h,{key:0,title:b("DateStrings").getMonthLabel(),value:0},b("DateStrings").getMonthLabel())];var e=1,f=b("DateConsts").MONTHS_PER_YEAR;this._isMinYear()&&(e=this._getMinMonth());this._isMaxYear()&&(f=this._getMaxMonth());for(var e=e;e<=f;e++){var g=b("DateStrings").getMonthName(e);c.push(b("React").createElement(h,{key:e,title:g,value:e},g))}d=b("React").createElement(b("XUISelector.react"),{className:"_5vu1","data-testid":"ProgressiveDatepicker/monthSelector",disabled:this.props.disabled||!this.state.year,maxheight:this.props.menuMaxHeight,name:this._getMonthName(),onChange:this._onMonthChange,value:this.state.month},c)}g=null;if(this.state.month||this.props.minTimeUnit==="day"){f=[b("React").createElement(h,{key:0,title:b("DateStrings").getDayLabel(),value:0},b("DateStrings").getDayLabel())];e=1;c=b("DateConsts").getDaysInMonth(this.state.year,this.state.month);this._isMinYearAndMonth()&&(e=this._getMinDay());this._isMaxYearAndMonth()&&(c=this._getMaxDay());for(var e=e;e<=c;e++)f.push(b("React").createElement(h,{key:e,title:e,value:e},e));g=b("React").createElement(b("XUISelector.react"),{className:"_5vu1","data-testid":"ProgressiveDatepicker/daySelector",disabled:this.props.disabled||!this.state.month,maxheight:this.props.menuMaxHeight,name:this._getDayName(),onChange:this._onDayChange,value:this.state.day},f)}return b("React").createElement(b("InlineBlock.react"),null,b("React").createElement(b("XUISelector.react"),{"data-testid":"ProgressiveDatepicker/yearSelector",disabled:this.props.disabled,maxheight:this.props.menuMaxHeight,name:this._getYearName(),onChange:this._onYearChange,value:this.state.year},a),d,g)}});e.exports=a}),null); __d("XUIDialogSaveButton.react",["fbt","React","XUIDialogButton.react"],(function(a,b,c,d,e,f,g){__p&&__p();a=function(a){"use strict";babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){return b("React").createElement(b("XUIDialogButton.react"),babelHelpers["extends"]({},this.props,{action:"confirm",label:g._("Save")}))};return c}(b("React").Component);e.exports=a}),null); __d("FixedDataTableCellDefault.react",["cx","React","joinClasses"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();a=b("React").PropTypes;c=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){var a=this.props,c=a.height,d=a.width,e=a.style,f=a.className,g=a.children,h=a.columnKey,i=a.useDefaultCellLayout;a=babelHelpers.objectWithoutPropertiesLoose(a,["height","width","style","className","children","columnKey","useDefaultCellLayout"]);void h;void i;h=babelHelpers["extends"]({height:c,width:d},e);if(i===!1)return f==null||f===""&&b("React").isValidElement(g)?g:b("React").createElement("div",{className:f},g);else return b("React").createElement("div",babelHelpers["extends"]({},a,{className:b("joinClasses")("_4lgc","_4h2u",f),style:h}),b("React").createElement("div",{className:b("joinClasses")("_4lgd","_4h2w")},b("React").createElement("div",{className:b("joinClasses")("_4lge","_4h2x")},b("React").createElement("div",{className:"_4h2r"},g))))};return c}(b("React").Component);c.propTypes={height:a.number,width:a.number,columnKey:a.oneOfType([a.string,a.number]),useDefaultCellLayout:a.bool};e.exports=c}),null); __d("FixedDataTableColumn.react",["React"],(function(a,b,c,d,e,f){__p&&__p();a=function(a){"use strict";babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var c=b.prototype;c.render=function(){return null};return b}(b("React").Component);a.__TableColumn__=!0;e.exports=a}),null); __d("FixedDataTableColumnGroup.react",["React"],(function(a,b,c,d,e,f){__p&&__p();a=function(a){"use strict";babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var c=b.prototype;c.render=function(){return null};return b}(b("React").Component);a.__TableColumnGroup__=!0;e.exports=a}),null); __d("FixedDataTableHelper",["FixedDataTableColumn.react","FixedDataTableColumnGroup.react","Locale","React"],(function(a,b,c,d,e,f){"use strict";__p&&__p();d=b("Locale").isRTL()?-1:1;f=5;function a(a){if(a===null||a===void 0)return"";else return String(a)}function g(a,c){b("React").Children.forEach(a,function(a){a.type===b("FixedDataTableColumnGroup.react")?g(a.props.children,c):a.type===b("FixedDataTableColumn.react")&&c(a)})}function c(a,c){__p&&__p();var d=[];b("React").Children.forEach(a,function(a){__p&&__p();var e=a;if(a.type===b("FixedDataTableColumnGroup.react")){var f=!1,h=[];g(a.props.children,function(a){var b=c(a);b!==a&&(f=!0);h.push(b)});f&&(e=b("React").cloneElement(a,{children:h}))}else a.type===b("FixedDataTableColumn.react")&&(e=c(a));d.push(e)});return d}d={DIR_SIGN:d,CELL_VISIBILITY_TOLERANCE:f,renderToString:a,forEachColumn:g,mapColumns:c};e.exports=d}),null); __d("FixedDataTableCell.react",["cx","invariant","FixedDataTableCellDefault.react","FixedDataTableHelper","LogicalGridCell.react","LogicalGridCellFocusStrategy","React","gkx","joinClasses","shallowEqual"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();var i=b("FixedDataTableHelper").DIR_SIGN,j=b("gkx")("916577");a=b("React").PropTypes;c=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f=0&&(n.rowIndex=a.rowIndex);b("React").isValidElement(a.cell)?f=b("React").cloneElement(b("React").Children.only(a.cell),n):typeof a.cell==="function"?f=a.cell(n):f=b("React").createElement(b("FixedDataTableCellDefault.react"),n,a.cell);return b("React").createElement(b("LogicalGridCell.react"),{columnIndex:e,component:b("React").createElement("div",{className:l,style:k}),focusStrategy:b("LogicalGridCellFocusStrategy"),disableFocusRecovery:g},m,f)};d.$1=function(){this.props.getRowKey&&(this.lastRowKey=this.props.getRowKey(this.props.rowIndex))};return c}(b("React").Component);c.defaultProps={align:"left",highlighted:!1,useDefaultCellLayout:!0,noBorderCell:!1};c.propTypes_DISABLED_FOR_PERFORMANCE={isColumnHeader:a.bool,isRowHovered:a.bool,isScrolling:a.bool,align:a.oneOf(["left","center","right"]),className:a.string,highlighted:a.bool,width:a.number.isRequired,minWidth:a.number,maxWidth:a.number,height:a.number.isRequired,style:a.object,useDefaultCellLayout:a.bool,noBorderCell:a.bool,cell:a.oneOfType([a.string,a.element,a.func]),columnIndex:a.number,columnKey:a.oneOfType([a.string,a.number]),rowIndex:a.number.isRequired,onColumnResize:a.func,left:a.number.isRequired};e.exports=c}),null); __d("FixedDataTableCellGroupImpl.react",["cx","FixedDataTableCell.react","FixedDataTableHelper","React","emptyFunction","joinClasses","translateDOMPositionXY"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();a=b("React").PropTypes;var h=b("FixedDataTableHelper").DIR_SIGN;c=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){__p&&__p();var a=this.props,c=a.columns,d=new Array(c.length),e=0;for(var f=0,g=c.length;f=0){j="cell_"+f;d[f]=this.$1(a.rowIndex,a.rowHeight,i,e,j,a.useDefaultCellLayout)}e+=k}i=this.$2(c);j={height:a.height,position:"absolute",width:i,zIndex:a.zIndex};b("translateDOMPositionXY")(j,-1*h*a.left,0);return b("React").createElement("div",{className:"_3pzj",style:j},d)};d.$1=function(a,c,d,e,f,g){var h=d.isResizable&&this.props.onColumnResize;h=h?this.props.onColumnResize:void 0;var i=d.cellClassNameGetter||b("emptyFunction");i=b("joinClasses")(d.cellClassName,i(a));var j=d.canHover||!1;return b("React").createElement(b("FixedDataTableCell.react"),{getRowKey:this.props.getRowKey,isRowHovered:j?this.props.isRowHovered:void 0,isScrolling:this.props.isScrolling,align:d.align,noBorderCell:d.noBorderCell,className:i,height:c,isColumnHeader:this.props.isColumnHeader,key:f,maxWidth:d.maxWidth,minWidth:d.minWidth,onColumnResize:h,rowIndex:a,columnIndex:d.columnIndex,columnKey:d.columnKey,width:d.width,left:e,cell:d.cell,style:this.props.cellStyle,useDefaultCellLayout:g})};d.$2=function(a){var b=0;for(var c=0;c0){var c="_1gd6"+(this.props.scrollLeft>0?" _1gd7":"")+" _1gd8"+(this.props.scrollLeft>0?" _1gd9":"");a={left:a,height:this.props.height};return b("React").createElement("div",{className:c,style:a})}else return void 0};return c}(b("React").Component);c.propTypes={cellStyle:a.object,canHover:a.bool,"data-testid":a.string,isColumnHeader:a.bool,isScrolling:a.bool,fixedColumns:a.array.isRequired,height:a.number.isRequired,index:a.number.isRequired,scrollableColumns:a.array.isRequired,scrollLeft:a.number.isRequired,useDefaultCellLayout:a.bool,width:a.number.isRequired,onClick:a.func,onRightClick:a.func,onDoubleClick:a.func,onColumnResize:a.func};e.exports=c}),null); __d("FixedDataTableRow.react",["cx","FixedDataTableRowImpl.react","LogicalGridRow.react","React","translateDOMPositionXY"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();a=b("React").PropTypes;c=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){var a=this.props,c=a.offsetTop,d=a.zIndex,e=a.rowIndex;a=babelHelpers.objectWithoutPropertiesLoose(a,["offsetTop","zIndex","rowIndex"]);d={width:this.props.width,height:this.props.height,zIndex:(d=d)!=null?d:0};b("translateDOMPositionXY")(d,0,c);c=b("React").createElement("div",{style:d,className:"_1gda _2djg"});return b("React").createElement(b("LogicalGridRow.react"),{component:c,isColumnHeader:this.props.isColumnHeader,rowIndex:e},b("React").createElement(b("FixedDataTableRowImpl.react"),a))};return c}(b("React").Component);c.propTypes={"data-testid":a.string,isColumnHeader:a.bool,isScrolling:a.bool,height:a.number.isRequired,rowIndex:a.number,zIndex:a.number,offsetTop:a.number.isRequired,useDefaultCellLayout:a.bool,width:a.number.isRequired};c.defaultProps={isColumnHeader:!1};e.exports=c}),null); __d("FixedDataTableRowBuffer",["invariant","IntegerBufferSet","clamp"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();var h=3,i=6;a=function(){__p&&__p();function a(a,c,d,e,f){c!==0||g(0,4480),this.$1=new(b("IntegerBufferSet"))(),this.$2=c,this.$3=0,this.$4=0,this.$5=Math.ceil(d/c)+1,this.$6=f!=null?f:b("clamp")(Math.floor(this.$5/2),h,i),this.$7=a,this.$8=e,this.$9=[],this.$10=d}var c=a.prototype;c.getRowsWithUpdatedBuffer=function(){var a=2*this.$6,b=Math.max(this.$3-this.$6,0);while(b0)this.$11(b,this.$3,this.$4-1),b++,a--;return this.$9};c.getRows=function(a,b){b=b;b=b;var c=a;this.$3=a;while(b=e&&(d=this.$1.replaceFurthestValuePosition(b,c,a));d===null?(d=this.$1.getNewPositionForValue(a),this.$9[d]=a):this.$9[d]=a};return a}();e.exports=a}),null); __d("NestedFixedDataRow.react",["cx","FixedDataTableRow.react","React","emptyFunction","joinClasses","translateDOMPositionXY"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();var h=b("React").Fragment;a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){__p&&__p();var a=this.props,c=a.rowStyleGetter||b("emptyFunction"),d=a.rowClassNameGetter||b("emptyFunction"),e={position:"absolute",pointerEvents:a.isScrolling===!0?"none":"auto"};c=b("React").createElement(b("FixedDataTableRow.react"),{cellStyle:c(a.rowIndex),canHover:a.canHover,"data-testid":"FixedDataTableRow",isScrolling:a.isScrolling,index:a.rowIndex,rowIndex:a.rowIndex,width:a.width,height:a.currentRowHeight,scrollLeft:a.scrollLeft,offsetTop:Math.round(a.rowOffsetTop),fixedColumns:a.fixedColumns,scrollableColumns:a.scrollableColumns,useDefaultCellLayout:a.useDefaultCellLayout,onClick:a.onRowClick,onDoubleClick:a.onRowDoubleClick,onMouseDown:a.onRowMouseDown,onMouseEnter:a.onRowMouseEnter,onMouseLeave:a.onRowMouseLeave,className:b("joinClasses")(d(a.rowIndex),"_3c7k",(a.hasBottomBorder?"_4efq":"")+(a.hasBottomBorder?" _4efs":""))});b("translateDOMPositionXY")(e,0,a.firstRowOffset-a.firstRowPosition+a.offsetTop);c=b("React").createElement("div",{style:e},c);d=a.expandGetter&&a.expandGetter(a.rowIndex);if(d===!0){d=a.expandHeightGetter&&a.expandHeightGetter(a.rowIndex);var f=a.expandComponentOffsetGetter&&a.expandComponentOffsetGetter(a.rowIndex)||{marginLeft:10,marginTop:10};d=babelHelpers["extends"]({zIndex:0,height:d,marginLeft:f.marginLeft},e);e=a.offsetTop+a.rowOffsetTop+a.currentRowHeight+f.marginTop;b("translateDOMPositionXY")(d,0,a.firstRowOffset-a.firstRowPosition+e);f=a.expandComponentGetter?b("React").createElement("div",{style:d},a.expandComponentGetter(a.rowIndex)):null;e=b("React").createElement(h,null,c,f)}else e=c;return e};return c}(b("React").Component);e.exports=a}),null); __d("FixedDataTableBufferedRows.react",["cx","FixedDataTableRow.react","FixedDataTableRowBuffer","NestedFixedDataRow.react","React","emptyFunction","joinClasses","translateDOMPositionXY"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();var h=function(a){return typeof a==="number"};function i(a,b){return babelHelpers["extends"]({},b,{rowsToRender:b.rowBuffer.getRows(a.firstRowIndex,a.firstRowOffset)})}function j(a,b){return a.rowHeightGetter?a.rowHeightGetter(b):a.defaultRowHeight}a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(c){__p&&__p();var d;d=a.call(this,c)||this;d.$1=[];d.$2=!1;d.$3=function(){d.$2&&d.setState(function(a){return{rowsToRender:a.rowBuffer.getRowsWithUpdatedBuffer()}})};var e=new(b("FixedDataTableRowBuffer"))(c.rowsCount,d.props.defaultRowHeight,d.props.height,function(a){return j(d.props,a)},d.props.bufferRowCount);e={prevPropsBufferRowCount:c.bufferRowCount,prevPropsDefaultRowHeight:c.defaultRowHeight,prevPropsHeight:c.height,prevPropsIsScrolling:c.isScrolling,prevPropsRowsCount:c.rowsCount,rowBuffer:e,rowsToRender:[]};d.state=i(c,e);d.$1=[];return d}var d=c.prototype;d.componentDidMount=function(){window.setTimeout(this.$3,1e3),this.$2=!0};c.getDerivedStateFromProps=function(a,c){var d=c.rowBuffer;(a.rowsCount!==c.prevPropsRowsCount||a.defaultRowHeight!==c.prevPropsDefaultRowHeight||a.height!==c.prevPropsHeight||a.bufferRowCount!==c.prevPropsBufferRowCount)&&(d=new(b("FixedDataTableRowBuffer"))(a.rowsCount,a.defaultRowHeight,a.height,function(b){return j(a,b)},a.bufferRowCount));if(c.prevPropsIsScrolling&&!a.isScrolling)return babelHelpers["extends"]({},c,{prevPropsBufferRowCount:a.bufferRowCount,prevPropsDefaultRowHeight:a.defaultRowHeight,prevPropsHeight:a.height,prevPropsIsScrolling:a.isScrolling,prevPropsRowsCount:a.rowsCount,rowBuffer:d,rowsToRender:d.getRowsWithUpdatedBuffer()});else return i(a,babelHelpers["extends"]({},c,{prevPropsBufferRowCount:a.bufferRowCount,prevPropsDefaultRowHeight:a.defaultRowHeight,prevPropsHeight:a.height,prevPropsIsScrolling:a.isScrolling,prevPropsRowsCount:a.rowsCount,rowBuffer:d}))};d.shouldComponentUpdate=function(){return!0};d.componentWillUnmount=function(){this.$1.length=0,this.$2=!1};d.render=function(){__p&&__p();var a=this.props,c=a.rowClassNameGetter||b("emptyFunction"),d=a.rowStyleGetter||b("emptyFunction"),e=a.rowPositionGetter,f=this.state.rowsToRender;this.$1.length=f.length;var g=a.rowPositionGetter(a.firstRowIndex),h={position:"absolute",pointerEvents:a.isScrolling?"none":"auto"};if(a.expandGetter){var i=this.$4();for(var k=0;k0&&!this.$5(a))a--;return a};d.$5=function(a){a=j(this.props,a);return h(a)&&a>0};return c}(b("React").Component);e.exports=a}),null); __d("FixedDataTableColumnGroupNew.react",["React"],(function(a,b,c,d,e,f){__p&&__p();a=b("React").PropTypes;c=function(a){"use strict";babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var c=b.prototype;c.render=function(){return null};return b}(b("React").Component);c.__TableColumnGroup__=!0;c.propTypes={align:a.oneOf(["left","center","right"]),fixed:a.bool,hideHeaders:a.bool,header:a.oneOfType([a.node,a.func])};c.defaultProps={fixed:!1,hideHeaders:!1};e.exports=c}),null); __d("FixedDataTableColumnNew.react",["React"],(function(a,b,c,d,e,f){__p&&__p();a=b("React").PropTypes;c=function(a){"use strict";babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}var c=b.prototype;c.render=function(){return null};return b}(b("React").Component);c.__TableColumn__=!0;c.propTypes={align:a.oneOf(["left","center","right"]),fixed:a.bool,header:a.oneOfType([a.node,a.func]),headerStyle:a.object,cell:a.oneOfType([a.node,a.func]),cellClassNameGetter:a.func,cellStyle:a.object,footer:a.oneOfType([a.node,a.func]),columnKey:a.oneOfType([a.string,a.number]),width:a.number.isRequired,minWidth:a.number,maxWidth:a.number,flexGrow:a.number,isResizable:a.bool,allowCellsRecycling:a.bool};c.defaultProps={allowCellsRecycling:!1,fixed:!1};e.exports=c}),null); __d("FixedDataTableColumnResizeHandle.react",["cx","DOMMouseMoveTracker","Locale","React","clamp"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();a=b("React").PropTypes;function h(a,b){return a.initialEvent!=null&&!b.mouseMoveTracker.isDragging()}c=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){__p&&__p();var c,d;for(var e=arguments.length,f=new Array(e),g=0;g=0)&&(k=b("React").createElement(b("FixedDataTableHeader.react"),{key:"header_"+e,cellStyle:a.props.cellStyle||{},mainHeaderColumn:f,mainHeaderHeight:g,childrenHeaderColumns:h,childrenHeaderHeight:i,isScrolling:a.props.isScrolling,left:d,useDefaultCellLayout:a.props.useDefaultCellLayout,width:c,onColumnResize:a.props.onColumnResize}));d+=c;return k});c={height:this.props.height,width:c};b("translateDOMPositionXY")(c,-1*h*this.props.left,0);return b("React").createElement("div",{className:"_63jp",style:c},e)};return c}(b("React").PureComponent);e.exports=a}),null); __d("FixedDataTableHeaderGroup.react",["cx","FixedDataTableHeaderGroupImpl.react","FixedDataTableHelper","React"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();var h=b("FixedDataTableHelper").DIR_SIGN;a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f0){var d="_1gd6"+(this.props.scrollLeft>0?" _1gd7":"")+" _1gd8"+(this.props.scrollLeft>0?" _1gd9":"");a={left:a,height:c};return b("React").createElement("div",{className:d,style:a})}else return void 0};return c}(b("React").Component);e.exports=a}),null); __d("FixedDataTableScrollHelper",["BinaryIndexedTree","clamp"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=5,h={index:0,offset:0,position:0,contentHeight:0};a=function(){__p&&__p();function a(a,c,d,e,f,g){__p&&__p();var h=this;this.getRowPosition=function(a){if(a==null)return 0;h.$12(a);return h.$1.sumUntil(a)};this.$1=b("BinaryIndexedTree").uniform(a,c);this.$2=new Array(a);for(var i=0;i=0&&b>=a-g){var c=this.$12(b);this.$4+=c;b--}};c.$12=function(a){__p&&__p();var b;if(a==null||a<0||a>=this.$3)return 0;var c=this.$9&&this.$9(a);b=this.$7?(b=this.$7(a))!=null?b:0:0;b=b;if(c===!0&&this.$8){b+=(c=this.$8(a))!=null?c:0}if(b!==this.$2[a]){c=b-this.$2[a];this.$1.set(a,b);this.$2[a]=b;this.$5+=c;return c}return 0};c.scrollBy=function(a){__p&&__p();if(this.$3===0)return h;var c=this.$1.greatestLowerBound(this.$4);c=b("clamp")(c,0,Math.max(this.$3-1,0));var d=this.$1.sumUntil(c);c=c;var e=this.$4,f=this.$12(c);d!==0&&(e+=f);f=this.$2[c]-(e-d);d=a;if(d>=0)while(d>0&&c0&&c>=0){d=0){f=this.$12(c);a=this.$2[c];e+=f}}}f=this.$5-this.$10;e=b("clamp")(e,0,f);this.$4=e;a=this.updateContentHeight(e);c=a.firstRowIndex;d=a.firstRowOffset;return{index:c,offset:d,position:this.$4,contentHeight:this.$5}};c.$14=function(a){this.$12(a);var b=a,c=this.$2[b];while(c=0)b--,b>=0&&(this.$12(b),c+=this.$2[b]);b=this.$1.sumTo(a)-this.$10;b<0&&(b=0);return b};c.scrollTo=function(a){__p&&__p();if(this.$3===0)return h;a=a;if(a<=0){this.$4=0;this.$11(0,0);return{index:0,offset:0,position:this.$4,contentHeight:this.$5}}else if(a>=this.$5-this.$10){var b=this.$3-1;a=this.$14(b)}this.$4=a;b=this.updateContentHeight(a);a=b.firstRowIndex;b=b.firstRowOffset;return{index:a,offset:b,position:this.$4,contentHeight:this.$5}};c.updateContentHeight=function(a){var c=this.$1.greatestLowerBound(a);c=b("clamp")(c,0,Math.max(this.$3-1,0));var d=this.$1.sumUntil(c);d=d-a;this.$11(c,d);this.$13(c);return{firstRowIndex:c,firstRowOffset:d}};c.scrollToRow=function(a,c){a=b("clamp")(a,0,Math.max(this.$3-1,0));c=b("clamp")(c,-this.$2[a],0);a=this.$1.sumUntil(a);return this.scrollTo(a-c)};c.scrollRowIntoView=function(a){a=b("clamp")(a,0,Math.max(this.$3-1,0));var c=this.$1.sumUntil(a),d=c+this.$2[a];if(c0){g=m(h,e.get(g||"column"+c).width-d.get(g||"column"+c).width);f.splice(c,1,b("React").cloneElement(a,{},g))}};for(var a=0;a=0:e.state.scrollX>0;b=b?e.state.scrollX<=e.state.maxScrollX:e.state.scrollX0&&c||a<0&&b;else return a<0&&c||a>0&&b};e.$14=function(a){var b=e.props.shouldVerticalScroll!=null;if(e.props.overflowY==="hidden"&&!b||a===0)return!1;a=Math.round(a);if(a===0)return!1;var c=b?e.state.scrollY>=0:e.state.scrollY>0;b=b?e.state.scrollY<=e.state.maxScrollY:e.state.scrollY0&&b};e.$25=function(a){var b=e.getViewportRange(),c=b.column;b=b.row;var d=a[0];a=a[1];(d<=b[0]||d>=b[1])&&(e.$2=d);a>e.state.bodyFixedColumns.length-1&&(a<=c[0]||a>=c[1])&&(e.$3=a);(e.$2!=null&&e.$2!==0||e.$3!=null&&e.$3!==0)&&(e.setState(function(a){return babelHelpers["extends"]({},e.$11(e.props,a),{scrollSourceEvent:"keyboard"})}),e.$10())};e.$23=function(a,c,d,f,g,h,i){e.setState({isColumnResizing:!0,columnResizingData:{left:c+a-d,width:d,minWidth:f,maxWidth:g,initialEvent:{clientX:i.clientX,clientY:i.clientY,preventDefault:b("emptyFunction")},key:h},scrollSourceEvent:null})};e.$21=function(a,b){e.setState({isColumnResizing:!1,scrollSourceEvent:null}),!e.props.onColumnResizeEndCallback&&h(0,4894),e.props.onColumnResizeEndCallback(a,b)};e.$24=function(){if(!e.$5){e.$5=!0;var a=b("ReactDOM").findDOMNode(babelHelpers.assertThisInitialized(e));a&&e.$4!=null&&b("DOMEventListener").add(a,"wheel",e.$4.onWheel,{passive:!1})}};e.$16=function(){e.$5=!1;var a=b("ReactDOM").findDOMNode(babelHelpers.assertThisInitialized(e));a&&e.$4!=null&&b("DOMEventListener").remove(a,"wheel",e.$4.onWheel,{passive:!1})};e.$12=function(a,b){__p&&__p();if(e.$8){e.$6||e.$17();var c=e.state.scrollX;if(Math.abs(b)>Math.abs(a)&&e.props.overflowY!=="hidden"){var d=e.$1.scrollBy(Math.round(b)),f=e.props.shouldVerticalScroll;(!f||f({scrollY:d.position,deltaX:a,deltaY:b}))&&e.setState(function(a){return{firstRowIndex:d.index,firstRowOffset:d.offset,scrollY:d.position,scrollContentHeight:d.contentHeight,maxScrollY:Math.max(0,d.contentHeight-a.bodyHeight),scrollSourceEvent:"wheel"}})}else if(a&&e.props.overflowX!=="hidden"){c+=a*(e.props.isRTL===!0?-1:1);c=c<0?0:c;c=c>e.state.maxScrollX?e.state.maxScrollX:c;f=e.props.shouldHorizontalScroll;(!f||f({scrollX:c,deltaX:a,deltaY:b}))&&e.setState({scrollX:c,scrollSourceEvent:"wheel"})}e.$10()}};e.$20=function(a){if(e.$8&&a!==e.state.scrollX){e.$6||e.$17();var b=e.props.shouldHorizontalScroll;(!b||b({scrollX:a,deltaX:a-e.state.scrollX,deltaY:0}))&&e.setState({scrollX:a,scrollSourceEvent:"scrollbar"});e.$10()}};e.$19=function(a){if(e.$8&&a!==e.state.scrollY){e.$6||e.$17();var b=e.$1.scrollTo(Math.round(a)),c=e.props.shouldVerticalScroll;(!c||c({scrollY:b.position,deltaX:0,deltaY:a-e.state.scrollY}))&&e.setState({firstRowIndex:b.index,firstRowOffset:b.offset,scrollY:b.position,scrollContentHeight:b.contentHeight,scrollSourceEvent:"scrollbar"});e.$10()}};e.$10=function(){e.$8&&e.$6&&(e.$6=!1,e.forceUpdate(),e.props.onScrollEnd&&e.props.onScrollEnd(e.state.scrollX,e.state.scrollY))};d=(c.height===void 0?(d=c.maxHeight)!=null?d:0:c.height)-(c.headerHeight||0)-(c.footerHeight||0)-(c.groupHeaderHeight||0);e.$1=new(b("FixedDataTableScrollHelper"))(c.rowsCount,c.rowHeight,d,c.rowHeightGetter,c.expandHeightGetter,c.expandGetter);c.scrollTop&&e.$1.scrollTo(c.scrollTop);e.$10=b("debounceCore")(e.$10,200,babelHelpers.assertThisInitialized(e));e.state=e.$11(c);return e}var d=c.prototype;d.UNSAFE_componentWillMount=function(){var a=this.props.scrollToRow;a!==void 0&&a!==null&&(this.$2=a);a=this.props.scrollToColumn;a!==void 0&&a!==null&&(this.$3=a);this.$4=new(b("ReactWheelHandler"))(this.$12,this.$13,this.$14)};d.$15=function(){var a=this.state.scrollContentHeight,b=this.state.reservedHeight;a=a+b;b=this.props.height===void 0;b&&this.props.maxHeight!=null&&this.props.maxHeight>a?b=a:this.state.height>a&&this.props.ownerHeight!=null&&this.props.ownerHeight!==0?b=Math.max(a,this.props.ownerHeight):b=this.state.height+this.state.maxScrollY;b!==this.$9&&this.props.onContentHeightChange&&this.props.onContentHeightChange(b);this.$9=b};d.componentDidMount=function(){this.$15()};d.componentWillUnmount=function(){this.$16(),this.$8=!1};d.UNSAFE_componentWillReceiveProps=function(a){var b=this,c=a.scrollToRow;c!==void 0&&c!==null&&(this.$2=c);c=a.scrollToColumn;c!==void 0&&c!==null&&(this.$3=c);(this.props.ownerHeight!==a.ownerHeight||this.props.scrollTop!==a.scrollTop)&&this.$17();this.$10();this.setState(function(c){return babelHelpers["extends"]({},b.$11(a,c,b.props),{scrollSourceEvent:"props"})})};d.componentDidUpdate=function(){this.$15(),this.state.scrollSourceEvent&&this.$18(this.state.scrollSourceEvent)};d.render=function(){__p&&__p();var a=this.state,c=this.props,d=a.maxScrollY,e=a.maxScrollX>0&&c.overflowX!=="hidden",f=d>0&&c.overflowY!=="hidden",g=e?b("Scrollbar.react").SIZE:0,h=a.height-g-2*c.borderHeight-c.footerHeight,i=a.useGroupHeader?a.groupHeaderHeight:0,k=c.disableFixedHeader===!0&&!!a.scrollY;i=i+(k===!0?0:c.headerHeight);h-=i;var l=0,m=c.maxHeight!=null?i+a.bodyHeight:i+h,n=m+c.footerHeight;c.ownerHeight!==void 0&&c.ownerHeightc.ownerHeight||a.scrollY=q){var r=0,s,t;for(s=0;su&&(m=u)}delete this.$3}q=b("FixedDataTableWidthHelper").getTotalWidth(j);s=q>a.width&&a.overflowX!=="hidden";t=(c&&c.horizontalScrollbarVisible)!==s;a.onChangeHorizontalScrollbarVisibility&&t&&a.onChangeHorizontalScrollbarVisibility(s);r=a.height===void 0;t=Math.round((u=r?a.maxHeight:a.height)!=null?u:0);u=a.footerHeight+a.headerHeight+o+(s?b("Scrollbar.react").SIZE:0);var v=this.$1.getContentHeight(),w=v+u,x=a.expandGetter?n:0,y=t-u;q=Math.max(0,q-a.width);x=Math.max(x,v-y);m=Math.min(m||0,q);n=Math.min(n,x);x||(r&&(t=w),y=w-u);r=this.$1.getViewportHeight();this.$1.setViewportHeight(y);if(n>0&&y>r){w=this.$1.scrollBy(0);k=w.index;l=w.offset;n=w.position}r=j.some(function(a){return!!a.props.canHover});w=babelHelpers["extends"]({isColumnResizing:!!c&&c.isColumnResizing},g,a,{canHoverRows:r,columns:j,groupedColumns:d,columnResizingData:p,firstRowIndex:k,firstRowOffset:l,horizontalScrollbarVisible:s,maxScrollX:q,maxScrollY:x,reservedHeight:u,scrollContentHeight:v,scrollX:m,scrollY:n,bodyHeight:y,height:t,groupHeaderHeight:o,useGroupHeader:f});(!c||c.maxScrollX!==q)&&this.props.onContentWidthChange&&this.props.onContentWidthChange(q+a.width);return w};d.$17=function(){this.$8&&!this.$6&&(this.$6=!0,this.props.onScrollStart&&this.props.onScrollStart(this.state.scrollX,this.state.scrollY))};d.$18=function(a){var c=this.props.onRangeChange;if(c){var d=this.getViewportRange();b("areEqual")(d,this.$7)||(this.$7=d,c(d,{sourceEventType:a}))}else this.$7=void 0};d.getViewportRange=function(){return{row:this.$26(),column:this.$27()}};d.$26=function(){var a;a=(a=this.props.ownerHeight)!=null?a:0;a=this.$1.getViewportHeight()+(a||((a=this.props.height)!=null?a:0)||((a=this.props.maxHeight)!=null?a:0))-this.state.height;a=this.$1.getLastRowIndex(this.state.firstRowIndex,this.state.firstRowOffset,a);return[this.state.firstRowIndex,Math.min(a,this.props.rowsCount)]};d.$27=function(){__p&&__p();var a=this.state,b=a.bodyFixedColumns,c=a.bodyScrollableColumns;a=a.scrollX;var d=0;for(var e=0;e0?d:null,this.sourceID=e}a.fromURI=function(a){a=a.getQueryData();return new this(a.section,a.filtering,a.sort,a.current_page,a.sourceID)};var b=a.prototype;b.getQueryData=function(){var a={};this.section&&(a.section=this.section);this.filtering&&(a.filtering=this.filtering);this.sort&&(a.sort=this.sort);this.currentPage&&this.currentPage>0&&(a.current_page=this.currentPage);this.sourceID&&(a.sourceID=this.sourceID);return a};b.equalTo=function(a){return a.toString()==this.toString()};b.toString=function(){var a=this.filtering?this.filtering.map(function(a){return[a.field,a.operator,a.value.toString()].join(",")}).join("-"):"";return[this.section,a,(this.sort||[]).toString(),(this.currentPage||0).toString(),this.sourceID].join("|")};return a}();e.exports=a}),null); __d("PageContentTabVideoCopyrightThumbnail.react",["ix","cx","Image.react","React","fbglyph"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();a=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){return this.props.thumbnailSrc?b("React").createElement(b("Image.react"),{src:this.props.thumbnailSrc,className:"_1h52"}):b("React").createElement("div",{className:"_b7i"},b("React").createElement(b("Image.react"),{className:"_b7m",src:g("127761")}))};return c}(b("React").Component);e.exports=a}),null); __d("VideoCopyrightRuleLoggingAction",[],(function(a,b,c,d,e,f){"use strict";a=Object.freeze({MATCH_RULE_CREATED:"MATCH_RULE_CREATED",MATCH_RULE_DELETED:"MATCH_RULE_DELETED",MATCH_RULE_VIEWED:"MATCH_RULE_VIEWED"});e.exports=a}),null); __d("VideosCopyrightRuleActions",["GraphAPI","VideoCopyrightUtils"],(function(a,b,c,d,e,f){a={createMatchRule:function(a,c,d){return b("GraphAPI")(b("VideoCopyrightUtils").GRAPH_API_VERSION,e.id).object("page",a).edge("video_copyright_rules").post(babelHelpers["extends"]({},d,{access_token:c}))},reassociateReferences:function(a,c,d,f,g){return b("GraphAPI")(b("VideoCopyrightUtils").GRAPH_API_VERSION,e.id).object("video_copyright_rule",d).post({migration_rule_id:c,excluded_copyright_ids:f,access_token:g})},getMatchRule:function(a,c){return b("GraphAPI")(b("VideoCopyrightUtils").GRAPH_API_VERSION,e.id).object("video_copyright_rules",a).get({fields:b("VideoCopyrightUtils").getMatchGraphFields(),access_token:c,date_format:"U"})},deleteMatchRule:function(a,c){return b("GraphAPI")(b("VideoCopyrightUtils").GRAPH_API_VERSION,e.id).object("video_copyright_rule",a).remove({access_token:c})}};e.exports=a}),null); __d("PageContentTabVideosCopyrightRuleActions",["fbt","Promise","Arbiter","DateConsts","ErrorDialog","PageContentTabConstants","PageContentTabDispatcher","PageContentTabLoadingDialog","PageContentTabLogger","VideoCopyrightRuleLoggingAction","VideosCopyrightRuleActions","promiseDone"],(function(a,b,c,d,e,f,g){__p&&__p();a={createMatchRule:function(a,c,d){__p&&__p();var e=this;b("PageContentTabLoadingDialog").show();b("PageContentTabLogger").hasPageID()||b("PageContentTabLogger").init(a,"PAGES_MANAGER");var f=b("VideoCopyrightRuleLoggingAction").MATCH_RULE_CREATED;return b("VideosCopyrightRuleActions").createMatchRule(a,d,c).then(function(c){return b("VideosCopyrightRuleActions").getMatchRule(c.id,d).then(function(c){b("PageContentTabDispatcher").handlePostCreated(b("PageContentTabConstants").TABS.MATCH_RULES,c,a);e._logAction(f,c.id);b("PageContentTabLoadingDialog").hide();return c},function(a){e._onError(f,a)})})},reassociateReferences:function(a,c,d,e,f){__p&&__p();var h=this;b("PageContentTabLoadingDialog").show();var i=b("VideoCopyrightRuleLoggingAction").MATCH_RULE_CREATED,j={};e.map(function(a){var b;if((b=a)!=null?(b=b.rule_ids)!=null?(b=b[0])!=null?b.id:b:b:b){b=a.rule_ids[0].id;j[b]=j[b]||[];j[b].push(a.id)}});e=d.map(function(d){__p&&__p();if(d.id==c){b("ErrorDialog").show(g._("Error"),g._("You can not assign the same match rule."));b("PageContentTabLoadingDialog").hide();return b("Promise").reject()}return b("VideosCopyrightRuleActions").reassociateReferences(a,c,d.id,j[d.id]||[],f).then(function(a){d.is_in_migration=!0;return},function(a){h._onError(i,a);return{error:a}})});b("promiseDone")(b("Promise").all(e),function(e){if((e=e)!=null?(e=e[0])!=null?e.error:e:e){b("PageContentTabLoadingDialog").hide();return}c?b("promiseDone")(b("VideosCopyrightRuleActions").getMatchRule(c,f),function(e){b("PageContentTabDispatcher").handlePostChanged(e,b("PageContentTabConstants").TABS.MATCH_RULES,a),b("PageContentTabDispatcher").handlePostsChanged(d,b("PageContentTabConstants").TABS.MATCH_RULES,a),h._logAction(i,c),b("PageContentTabLoadingDialog").hideWithSuccessMessage(g._("Your match rule is updating. This may take some time."),2*b("DateConsts").MS_PER_SEC),b("Arbiter").inform("rightsmanager/reassociationSucceeded"+a,{})},function(a){h._onError(i,a)}):(b("PageContentTabDispatcher").handlePostsChanged(d,b("PageContentTabConstants").TABS.MATCH_RULES,a),h._logAction(i,""),b("PageContentTabLoadingDialog").hide())})},deleteMatchRule:function(a,c,d){var e=this;b("PageContentTabLoadingDialog").show();var f=b("VideoCopyrightRuleLoggingAction").MATCH_RULE_DELETED;b("promiseDone")(b("VideosCopyrightRuleActions").deleteMatchRule(c,d),function(d){b("PageContentTabDispatcher").handlePostRemoved(a,c,b("PageContentTabConstants").TABS.MATCH_RULES),e._logAction(f,c),b("PageContentTabLoadingDialog").hide()},function(a){e._onError(f,a,c)})},_logAction:function(a,c){b("PageContentTabLogger").log("action_taken_main_view",b("PageContentTabConstants").TABS.MATCH_RULES,{action:a,post_id:c,num_posts:1,bulk_action:!1})},_showErrorForAction:function(a){var c;switch(a){case b("VideoCopyrightRuleLoggingAction").MATCH_RULE_CREATED:c=g._("There was a problem creating your match rule. Please try again later.");break;case b("VideoCopyrightRuleLoggingAction").MATCH_RULE_VIEWED:c=g._("There was a problem displaying your match rule. Please try again later.");break;case b("VideoCopyrightRuleLoggingAction").MATCH_RULE_DELETED:c=g._("There was a problem deleting your match rule. Please try again later.");break}b("ErrorDialog").show(g._("Something Happened"),c)},_onError:function(a,c,d){this._showErrorForAction(a),b("PageContentTabLogger").log("api_error",b("PageContentTabConstants").TABS.MATCH_RULES,{error:JSON.stringify(c),action:a,post_id:d})}};e.exports=a}),null); __d("PageContentTabSortUtils",["invariant","PageContentTabConstants","flipObject"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();var h=b("PageContentTabConstants").COLUMNS;a={columnsToFields:function(){__p&&__p();var a={};a[h.POST]="message";a[h.DATE_CREATED]="creation_time";a[h.DATE_LAST_MODIFIED]="edited_by";a[h.SCHEDULED_PUBLISH_TIME]="scheduled_publish_time";a[h.NAME]="name";a[h.LOCATION]="location";a[h.POSITION]="position";a[h.RECEIVED]="received";a[h.VIDEO_DATE_CREATED]="created_time";a[h.FORM_DATE_CREATED]="created_time";a[h.PUBLISHED_DATE]="published_time";a[h.VIDEO_VIEWS]="view_count";a[h.OVERLAP]="total_match_duration";a[h.EXPIRES_DAYS]="expiration_days";a[h.DISPUTE_EXPIRES_DAYS]="dispute_expiration_days";a[h.STATUS]="expiration_days";a[h.REFERENCE_VIDEO]="reference_asset";a[h.MATCHES]="displayed_matches_count";a[h.DATE_FOUND]="added_to_dashboard_time";a[h.REFERENCE_MATCH_STATE]="match_state";a[h.REFERENCE_CONFLICTS]="total_match_duration";a[h.REFERENCE_CONFLICTS_DEADLINE]="expiration_time";a[h.MESSAGE_SENT_DATE]="message_sent_date";a[h.MESSAGE_SENDS]="message_sends";return a},getFieldFromColumn:function(a){var b=this.columnsToFields();b[a]||g(0,4522);return b[a]},getColumnFromField:function(a){var b=this.fieldsToColumns();b[a]||g(0,4523);return b[a]},fieldsToColumns:function(){return b("flipObject")(this.columnsToFields())},toAPI:function(a,c){if(!a)return[];c=c===b("PageContentTabConstants").SORT_ORDER_ASC?"_ascending":"_descending";a=this.getFieldFromColumn(a);return[a+c]},fromAPI:function(a){a&&a[0]||g(0,4524);var c,d;a[0].indexOf("_ascending")!==-1?(d=b("PageContentTabConstants").SORT_ORDER_ASC,c=a[0].replace("_ascending","")):(d=b("PageContentTabConstants").SORT_ORDER_DESC,c=a[0].replace("_descending",""));a=this.getColumnFromField(c);return{key:a,order:d}}};e.exports=a}),null); __d("PageContentTabURIUtils",["AdsGenericFilter","AdsGenericFilterSet","PageContentTabSortUtils","PageContentTabURIQueryData","URI"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a={updateURIWithQueryData:function(a,c,d,e,f){d=new(b("PageContentTabURIQueryData"))(d,a,c,e,f);a=b("URI").getRequestURI(!1);c=b("PageContentTabURIQueryData").fromURI(a);if(!d.equalTo(c)){e=a.setQueryData(d.getQueryData());window.history.pushState(d.getQueryData(),null,e)}},convertSortingQueryData:function(a){return a&&a.length?b("PageContentTabSortUtils").fromAPI(a):null},convertFilteringQueryData:function(a,c){__p&&__p();var d=this;if(c&&c.length){c=c.map(function(c){var e=d.getFilterFieldFromAPI(a,c.field);if(e&&e.field){var f=c.value;e.fromApiValueConverter&&(f=e.fromApiValueConverter(f));return new(b("AdsGenericFilter"))(e.field,c.operator,f)}return null}).filter(function(a){return!!a});return new(b("AdsGenericFilterSet"))(c)}return null},getSortingFromURI:function(a,c){var d=b("URI").getRequestURI(!1);d=d.getQueryData();if(d.section===a)if(c)return this.convertSortingQueryData(d.sort);else return d.sort;return null},getFilteringFromURI:function(a,c,d){var e=b("URI").getRequestURI(!1);e=e.getQueryData();if(e.section===a)if(c)return this.convertFilteringQueryData(d,e.filtering);else return e.filtering;return null},getSourceIDFromURI:function(a){var c=b("URI").getRequestURI(!1);c=c.getQueryData();return c.section===a?c.sourceID:null},getFilterFieldFromAPI:function(a,b){for(var c in a){var d=a[c].field;if(d.name===b)return a[c]}return{}}};e.exports=a}),null); __d("PUIExpandableContent.react",["cx","React","joinClasses"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;f1?b("React").createElement("div",null,e):e;return b("React").createElement("div",{className:"_5h8z"+(e==null&&d?" _3r0r":""),style:babelHelpers["extends"]({},a,c)},e,d)};return c}(b("SUIComponent"));e.exports=a}),null); __d("SUICardHeader.react",["cx","React","SUIComponent","SUITheme"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();a=b("React").PropTypes;c={hasVerticalPadding:!0,isFullBleed:!1};d=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){var a=b("SUITheme").get(this).SUICard;a=this.props.isFullBleed&&a.headerFullBleed||a.header;var c=this.props,d=c.children,e=c.hasVerticalPadding;c=c.rightContent;d=b("React").Children.count(d)>1?b("React").createElement("div",null,d):d;return b("React").createElement("div",{className:"_5h7n"+(!Boolean(d)&&Boolean(c)?" _3r0r":""),style:babelHelpers["extends"]({},a,{paddingBottom:e?a.paddingBottom:0,paddingTop:e?a.paddingTop:0})},d,c)};return c}(b("SUIComponent"));d.propTypes={hasVerticalPadding:a.bool,isFullBleed:a.bool,rightContent:a.node,theme:a.instanceOf(b("SUITheme"))};d.defaultProps=c;e.exports=d}),null); __d("SUITableTextCell.react",["cx","React","SUIComponent","SUITableAbstractCell.react","SUITableCellTypes"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();a=b("SUITableCellTypes").DEFAULT_TABLE_CELL_PROPS;c=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){var a=this.props,c=a.align,d=a.content;d=d===void 0?"__":d;var e=a.errorMessage,f=a.errorTooltipPosition,g=a.hasBorders,h=a.isModified,i=a.height;a=a.warningMessage;c=c&&c==="right";var j={"data-hover":"tooltip","data-tooltip-content":d,"data-tooltip-display":"overflow","data-tooltip-position":"above"};j=b("React").createElement("div",babelHelpers["extends"]({className:"ellipsis"},j),d);return b("React").createElement(b("SUITableAbstractCell.react"),{className:"_3-og"+(c?" _3-oh":""),content:j,"data-testid":this.props["data-testid"],errorMessage:e,errorTooltipPosition:f,hasBorders:!!g,height:i,isModified:!!h,warningMessage:a})};return c}(b("SUIComponent"));c.defaultProps=a;e.exports=c}),null); __d("SUITableTypesDEPRECATED",["React"],(function(a,b,c,d,e,f){"use strict";a=b("React").PropTypes;c=a.shape({id:a.string.isRequired,allowOverflow:a.bool,className:a.string,columnType:a.string,getTitle:a.func,label:a.node,orderBy:a.string,widthWeight:a.number});d=a.oneOf(["none","checkbox","row","rowWithCheckbox"]).isRequired;f=Object.freeze({ASCENDING:"ASCENDING",DESCENDING:"DESCENDING"});b=Object.freeze({TEXT:"TEXT",SUBTITLED:"SUBTITLED",GENERIC:"GENERIC"});e.exports={COLUMN_SHAPE:c,ORDER_DIRECTION:f,SELECTION_PROP_TYPE:d,COLUMN_TYPES:b}}),null); __d("SUIColumnTypeToSUICell",["SUITableSubtitleCell.react","SUITableTextCell.react","SUITableTypesDEPRECATED"],(function(a,b,c,d,e,f){"use strict";a=b("SUITableTypesDEPRECATED").COLUMN_TYPES;d=(c={},c[a.TEXT]=b("SUITableTextCell.react"),c[a.SUBTITLED]=b("SUITableSubtitleCell.react"),c[a.GENERIC]=null,c);e.exports=d}),null); __d("SUITableCellDEPRECATED.react",["cx","invariant","Icon.atlas","Layout.react","React","SUICheckboxInput.react","SUIComponent","SUITableTypesDEPRECATED","SUITooltip.react","Tooltip","joinClasses"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();var i=b("Layout.react").Column,j=b("Layout.react").FillColumn;a=b("React").PropTypes;c=b("SUITableTypesDEPRECATED").COLUMN_SHAPE;d=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){var b,c;for(var d=arguments.length,e=new Array(d),f=0;fe&&!this.state.isBelowMinimumViewportHeight;e=Math.min(e,this.state.bottom-this.state.headerHeight);return b("React").createElement("div",babelHelpers["extends"]({},a,{style:i.root}),b("React").createElement("div",{style:{height:this.state.headerHeight}}),b("React").createElement(b("ResponsiveBlock.react"),{className:b("joinClasses")(this.props.headerClassName,f&&this.props.headerClassNameWhenSticky),onResize:this._measureHeader,style:{position:f?"fixed":"absolute",left:f?this.state.left:0,top:f?e:0,width:this.state.width,zIndex:1}},d),b("React").createElement(b("ResponsiveBlock.react"),{className:this.props.contentClassName,onResize:this._measureRect,style:i.content},c))}});var i={root:{position:"relative",zIndex:0},content:{zIndex:0}};e.exports=c}),null); __d("SUITableDEPRECATED.react",["cx","invariant","DOMEventListener","ExecutionEnvironment","React","ReactDOM","StickyHeader.react","Style","SUIComponent","SUITableHeaderRowDEPRECATED.react","SUITableRowDEPRECATED.react","SUITableTypesDEPRECATED","SUITheme","getElementRect","immutable","isFalsey","isTruthy","joinClasses","onViewportChanged","throttle"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();a=b("React").PropTypes;c=b("SUITableTypesDEPRECATED").COLUMN_SHAPE;d=b("SUITableTypesDEPRECATED").SELECTION_PROP_TYPE;var i=20,j=40;f=1e3;var k=5;g={borders:[],hasErrorByColumnIDByItemID:{},hasErrorByItemID:{},hasWarningByColumnIDByItemID:{},hasWarningByItemID:{},isDisabledByItemID:{},isHeaderSticky:!0,isHighlightedByItemID:{},isViewedByItemID:{},isModifiedByColumnIDByItemID:{},isSelectedByItemID:{},preloadSize:f,renderMode:"headerAndBody",rowHeight:48,selectionType:"none",tooltipByColumnIDByItemID:{}};f=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(c,d){__p&&__p();var e;e=a.call(this,c,d)||this;e.$SUITableDEPRECATED9=function(){var a=e.$SUITableDEPRECATED2;a&&e.$SUITableDEPRECATED11(a)};e.$SUITableDEPRECATED8=function(a){e.$SUITableDEPRECATED2=a,e.$SUITableDEPRECATED11(a)};e.$SUITableDEPRECATED12=function(a,c){var d=b("immutable").Iterable(e.props.items||[]),f=a;c.nativeEvent.shiftKey&&e.$SUITableDEPRECATED1!==null&&e.$SUITableDEPRECATED1!==void 0&&e.$SUITableDEPRECATED1a.bottom){h=e-Math.floor((l-a.bottom)/d);f=Math.min(e,Math.max(h,0))}g=Math.max(0,g-k);f=Math.min(e,f+k);l=f>c-i;var m;if(cc&&(b("isFalsey")(d)||m>d);h&&this.$SUITableDEPRECATED5(m)}l={visibleStart:g,visibleEnd:f,lastRequestedLimit:0};b("isTruthy")(m)&&(l.lastRequestedLimit=m);this.setState(l)};d.$SUITableDEPRECATED6=function(a){__p&&__p();var b=this,c=this.props.onSelectItems;if(!c)return;var d=this.props.items;!d&&h(0,2751);var e=new Set(a.toArray().map(function(a){return a.id}));a=d.filter(function(a){return e.has(a.id)&&!b.props.isSelectedByItemID[a.id]});c(a)};d.$SUITableDEPRECATED7=function(a){__p&&__p();var b=this,c=this.props.onUnselectItems;if(!c)return;var d=this.props.items;!d&&h(0,2752);var e=new Set(a.toArray().map(function(a){return a.id}));a=d.filter(function(a){return e.has(a.id)&&!!b.props.isSelectedByItemID[a.id]});c(a)};d.$SUITableDEPRECATED13=function(){this.props.columns.length>0||h(0,2753);this.props.selectionType!=="none"&&(this.props.onSelectItems||h(0,2754),this.props.onUnselectItems||h(0,2755));var a=b("immutable").Iterable(this.props.items||[]);a.size===this.props.totalItemCount||this.props.onRequestMoreItems||h(0,2756)};d.render=function(){__p&&__p();var a=this;this.$SUITableDEPRECATED13();var c=b("SUITheme").get(this).SUITableDEPRECATED,d=b("immutable").Iterable(this.props.items||[]),e=this.$SUITableDEPRECATED10(),f=b("React").createElement(b("SUITableHeaderRowDEPRECATED.react"),{columns:this.props.columns,enableMultiLineHeader:this.props.enableMultiLineHeader,hasInnerBorders:this.props.borders.includes("inner"),hasTopBorder:this.props.borders.includes("top"),isSelectedByItemID:this.props.isSelectedByItemID,isVisible:!0,items:d,onSelectItems:this.$SUITableDEPRECATED6,onSortClick:this.props.onSortClick,onUnselectItems:this.$SUITableDEPRECATED7,renderMode:this.props.renderMode,selectionType:this.props.selectionType,totalItemCount:this.props.totalItemCount,uniform:c}),g=this.props.errorContent;Boolean(g)&&this.props.totalItemCount===0&&(g=this.props.noItemsMessage);g!=null&&(g=b("React").createElement("div",{className:"_1pm2","data-testid":"SUITableDEPRECATED/message",style:babelHelpers["extends"]({},c.textStyles.table,{color:c.colors.noItemsMessage})},g));var h,i,j;if(g==null){if(this.state.visibleStart>0){var k=e*this.state.visibleStart;h=b("React").createElement("tr",{style:{height:k+"px"}})}k=this.props.totalItemCount||0;if(this.state.visibleEnd=a.state.visibleEnd)return null;var f=!!a.props.isDisabledByItemID[d.id],g=!!a.props.isHighlightedByItemID[d.id],h=!!a.props.isViewedByItemID[d.id],i=!!a.props.hasErrorByItemID[d.id],j=!i&&!!a.props.hasWarningByItemID[d.id],k=a.props.selectionType==="row"||a.props.selectionType==="rowWithCheckbox";return b("React").createElement(b("SUITableRowDEPRECATED.react"),{columns:a.props.columns,"data-testid":"SUITableDEPRECATED/row",hasBottomBorder:a.props.borders.includes("row")||a.props.borders.includes("rowExceptLast")&&e=16?this.props.height-16:0);return b("React").createElement(b("FlexLayout.react"),{align:"center",className:"_3bfm"},b("React").createElement(b("Image.react"),{className:"_3bgk"+(this.props.isImageRound?" _3bgl":"")+(this.props.isImageCropped?" _837v":""),height:c,src:this.props.imageURI,width:c}),b("React").createElement("div",{className:"_3bgm"},b("React").createElement("div",babelHelpers["extends"]({className:"ellipsis _3bgn",style:babelHelpers["extends"]({},d.textStyles.primaryText)},e),a),f))};return c}(b("SUIComponent"));c.defaultProps=a;e.exports=c}),null); __d("SortedCopyrightCountryCodes",["CopyrightCountryNames"],(function(a,b,c,d,e,f){e.exports=Object.keys(b("CopyrightCountryNames")).sort(function(a,c){if(b("CopyrightCountryNames")[a]b("CopyrightCountryNames")[c]?1:0})}),null); __d("VideoCopyrightAPI",["fbt","regeneratorRuntime","Promise","Arbiter","GraphAPI","PageContentTabRightsManagerStore","SimpleXUIDialog","VideoCopyrightUITypedLogger","VideoCopyrightUtils"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();var h="NO_RULE_SELECTED";a={toAPI:function(a,c){__p&&__p();var d,e;return b("regeneratorRuntime").async(function(f){__p&&__p();while(1)switch(f.prev=f.next){case 0:d={};c.copyrightRuleID!=void 0&&(d.rule_id=c.copyrightRuleID);"copyrightAttributionID"in c&&(d.attribution_id=c.copyrightAttributionID||0);c.copyrightMonitoringType!=void 0&&(d.monitoring_type=c.copyrightMonitoringType);c.copyrightOwnershipCountries!=void 0&&(c.areCopyrightCountriesIncluded?d.ownership_countries=c.copyrightOwnershipCountries:d.excluded_ownership_countries=c.copyrightOwnershipCountries);c.isReferenceFileDisabled!=void 0&&(d.is_reference_disabled=!!c.isReferenceFileDisabled);c.copyrightWhitelistedFBUsers!=void 0&&(d.whitelisted_ids=(c.copyrightWhitelistedFBUsers||[]).map(function(a){return a.id}));if(!Array.isArray(c.copyrightWhitelistedIGUserNames)){f.next=12;break}f.next=10;return b("regeneratorRuntime").awrap(b("VideoCopyrightUtils").convertIGUserNameToIDs(a,c.copyrightWhitelistedIGUserNames));case 10:e=f.sent,Array.isArray(e)&&(d.whitelisted_ig_user_ids=e.filter(function(a){return a!=null}));case 12:(c.video_container||c.isReferenceVideo)&&(d.is_reference_video=c.video_container===21||c.isReferenceVideo===!0);c.copyrightExcludedSegments!=void 0&&(d.excluded_ownership_segments=c.copyrightExcludedSegments,d.append_excluded_ownership_segments=c.shouldAppendExcludedSegments||!1);c.selectedCategory!=void 0&&(d.content_category=c.selectedCategory);return f.abrupt("return",d);case 16:case"end":return f.stop()}},null,this)},copyrightVideo:function(a,c,d,f,g,i,j){__p&&__p();var k=this,l,m,n;return b("regeneratorRuntime").async(function(o){__p&&__p();while(1)switch(o.prev=o.next){case 0:l=f.copyrightRuleID;if(!(l===h&&!b("PageContentTabRightsManagerStore").getIsRMLite())){o.next=5;break}m=this._getErrorMessageForNoRuleSelected();this._showErrorDialog(m);return o.abrupt("return",b("Promise").reject(new Error()));case 5:o.next=7;return b("regeneratorRuntime").awrap(this.toAPI(c,f));case 7:n=o.sent;n.copyright_content_id=d;return o.abrupt("return",b("GraphAPI")(b("VideoCopyrightUtils").GRAPH_API_VERSION,e.id).object("page",c).edge("video_copyrights").post(babelHelpers["extends"]({},n,{access_token:a})).then(function(a){i&&i(a),b("Arbiter").inform("videoCopyright/created"+c,{copyrightID:a.id}),k._logEvent("copyright_created",g,c,d,null,n)},function(a){k._logEvent("api_error",g,c,d,null,n,a);Boolean(j)||k._showErrorDialog(a);throw a}));case 10:case"end":return o.stop()}},null,this)},uncopyrightVideo:function(a,c,d,f,g,h,i){__p&&__p();var j=this,k;return b("regeneratorRuntime").async(function(l){__p&&__p();while(1)switch(l.prev=l.next){case 0:l.next=2;return b("regeneratorRuntime").awrap(this.toAPI(c,g));case 2:k=l.sent;return l.abrupt("return",b("GraphAPI")(b("VideoCopyrightUtils").GRAPH_API_VERSION,e.id).object("video_copyright",f).remove({access_token:a}).then(function(a){i&&i(a),j._logEvent("copyright_deleted",h,c,d,f,k)},function(a){j._logEvent("api_error",h,c,d,f,k,a);throw a}));case 4:case"end":return l.stop()}},null,this)},editVideoCopyright:function(a,c,d,f,g,h){__p&&__p();var i=this,j;return b("regeneratorRuntime").async(function(k){__p&&__p();while(1)switch(k.prev=k.next){case 0:k.next=2;return b("regeneratorRuntime").awrap(this.toAPI(c,g));case 2:j=k.sent;return k.abrupt("return",b("GraphAPI")(b("VideoCopyrightUtils").GRAPH_API_VERSION,e.id).object("video_copyright",f).post(babelHelpers["extends"]({},j,{access_token:a})).then(function(a){i._logEvent("copyright_edited",h,c,d,f,j)},function(a){i._logEvent("api_error",h,c,d,f,j,a);i._showErrorDialog(a);throw a}));case 4:case"end":return k.stop()}},null,this)},reassignVideoCopyrightMatchRule:function(a,c,d,f,g){var h=this;return b("GraphAPI")(b("VideoCopyrightUtils").GRAPH_API_VERSION,e.id).object("video_copyright",d).post({rule_id:f,access_token:a}).then(function(a){new(b("VideoCopyrightUITypedLogger"))().setEvent("reassign_match_rule").setSource(g).setCopyrightID(d).setRightsHolderID(c).setRuleID(f).log()},function(a){new(b("VideoCopyrightUITypedLogger"))().setEvent("api_error").setSource(g).setCopyrightID(d).setRightsHolderID(c).setMessage("Tried to assign to rule ID "+f).setExceptionMessage(a).log();h._showErrorDialog(a);throw a})},updateAttribution:function(a,c,d,f,g){return b("GraphAPI")(b("VideoCopyrightUtils").GRAPH_API_VERSION,e.id).object("video_copyright",d).post({attribution_id:f==null?0:f,access_token:a})},_logEvent:function(a,c,d,e,f,g,h){new(b("VideoCopyrightUITypedLogger"))().setEvent(a).setSource(c).setCopyrightContentID(e).setCopyrightID(f).setRightsHolderID(d).setMonitoringType(g.monitoring_type).setIsReference(g.is_reference_video).setOwnershipCountries((g.ownership_countries||[]).join(",")).setWhitelistedIds((g.whitelisted_ids||[]).join(",")).setAttributionID(g.attribution_id).setRuleID(g.rule_id).setExceptionMessage(h).log()},_showErrorDialog:function(a){b("SimpleXUIDialog").show(a.error_user_msg||g._("Your video can't be monitored for matching uploads right now. Please try again later."),a.error_user_title||g._("Can't monitor video"))},_getErrorMessageForNoRuleSelected:function(){return{error_user_msg:g._("Match rule is required.")}}};e.exports=a}),null); __d("VideoCopyrightClaimAdEarningsText",["fbt","XPagesManagerSettingsController"],(function(a,b,c,d,e,f,g){"use strict";a={getRightsManagerSettingsURI:function(a){return b("XPagesManagerSettingsController").getURIBuilder().setString("page_token",a).setString("tab","video_copyright_management").setString("ref","vcr").getURI()},getTitle:function(){return g._("Claim Ad Earnings")},getMessage:function(){return g._("Pages and profiles can now earn money through ad breaks placed in their videos. If you find content posted by others that belongs to you, you may be able to claim a share of the ad earnings. Learn more.")}};e.exports=a}),null); __d("VideoCopyrightGeoSearchSource",["AbstractSearchSource","CopyrightCountryNames","SearchableEntry","filterObject","forEachObject"],(function(a,b,c,d,e,f){__p&&__p();a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.searchImpl=function(a,c,d){__p&&__p();d===void 0&&({});var e=[];if(a){var f=a.toLowerCase();d=b("filterObject")(b("CopyrightCountryNames"),function(a){return a.toString().toLowerCase().includes(f)});var g=0;b("forEachObject")(d,function(a,c){e.push(new(b("SearchableEntry"))({order:g++,title:a,uniqueID:c}))})}c(e,a)};return c}(b("AbstractSearchSource"));e.exports=a}),null); __d("VideoCopyrightMatchContentType",["ix","fbt","fbglyph"],(function(a,b,c,d,e,f,g,h){a={VIDEO_AND_AUDIO:{value:"VIDEO_AND_AUDIO",label:h._("Video and Audio"),glyphs:[g("122523"),g("123754")]},VIDEO_ONLY:{value:"VIDEO_ONLY",label:h._("Video Only"),glyphs:[g("122523")]},AUDIO_ONLY:{value:"AUDIO_ONLY",label:h._("Audio Only"),glyphs:[g("123754")]}};e.exports=a}),null); __d("VideoCopyrightMatchPrivacyType",["fbt"],(function(a,b,c,d,e,f,g){a={PUBLIC_ONLY:{value:"PUBLIC_ONLY",label:g._("Public videos only")},PRIVATE_ONLY:{value:"PRIVATE_ONLY",label:g._("Private videos only")},PUBLIC_OR_PRIVATE:{value:"PUBLIC_OR_PRIVATE",label:g._("Both public and private videos")}};e.exports=a}),null); __d("PolicyRuleAction",[],(function(a,b,c,d,e,f){__p&&__p();var g=0;a=function(){"use strict";__p&&__p();function a(a,b){this.$1=a,this.$2=b||[],this.$3=++g}var b=a.prototype;b.getActionType=function(){return this.$1};b.getID=function(){return this.$3};b.getConditions=function(){return this.$2};b.pushCondition=function(a){this.$2.push(a)};b.unshiftCondition=function(a){this.$2.unshift(a)};b.pushConditionByIndex=function(a,b){this.$2.splice(b,0,a)};b.removeCondition=function(a){a=this.$2.indexOf(a);this.$2.splice(a,1)};b.setActionType=function(a){this.$1=a};b.areConditionsValid=function(){return this.$2.every(function(a){return a.isValid&&a.isValid()})};return a}();e.exports=a}),null); __d("PolicyRuleCondition",["fbt"],(function(a,b,c,d,e,f,g){__p&&__p();a=function(){"use strict";__p&&__p();function a(a,b,c){this.$1=a,this.$2=b,this.$3=c,this.$4=null}var b=a.prototype;b.getConditionType=function(){return this.$1};b.setConditionType=function(a){this.$1=a};b.getOption=function(){return this.$2};b.setOption=function(a){this.$2=a};b.getValue=function(){return this.$3};b.setValue=function(a){this.$3=a};b.isValid=function(){return this.getError()==null};b.setCustomError=function(a){this.$4=a};b.getError=function(a){if(this.$4)return this.$4;a=a?a:this.$3;if(!a||a.length===0)return g._("Provide a value for this condition.")};return a}();e.exports=a}),null); __d("VideoCopyrightRuleConditionOption",["fbt"],(function(a,b,c,d,e,f,g){"use strict";a={GREATER_THAN:{key:"GREATER_THAN",untranslated:"Greater than",text:g._("Greater than"),symbol:">"},GREATER_THAN_OR_EQUAL:{key:"GREATER_THAN_OR_EQUAL",untranslated:"Greater than or equal to",text:g._("Greater than or equal to"),symbol:"\u2265"},LESS_THAN:{key:"LESS_THAN",untranslated:"Less than",text:g._("Less than"),symbol:"<"},LESS_THAN_OR_EQUAL:{key:"LESS_THAN_OR_EQUAL",untranslated:"Less than or equal to",text:g._("Less than or equal to"),symbol:"\u2264"},IN_SET:{key:"IN_SET",untranslated:"Is",text:g._("Is"),alias:"INCLUDE"},NOT_IN_SET:{key:"NOT_IN_SET",untranslated:"Is not",text:g._("Is not"),alias:"NOT_INCLUDE"},IS:{key:"IS",untranslated:"Is",text:g._("Is")},INCLUDE:{key:"INCLUDE",untranslated:"Include countries",text:g._("Include countries"),alias:"IN_SET"},NOT_INCLUDE:{key:"NOT_INCLUDE",untranslated:"Not include countries",text:g._("Exclude countries"),alias:"NOT_IN_SET"},WORLDWIDE:{key:"WORLDWIDE",untranslated:"Worldwide",text:g._("Worldwide")}};e.exports=a}),null); __d("VideoCopyrightRuleCondition",["ClockFormatConverter","PolicyRuleCondition","VideoCopyrightMatchContentType","VideoCopyrightPublisherType","VideoCopyrightRuleConditionOption","VideoCopyrightRuleConditionType","VideoCopyrightRuleGraphFields","VideoCopyrightRuleOperatorType"],(function(a,b,c,d,e,f){__p&&__p();function g(a){return{startDate:a.start_date,endDate:a.end_date,useLocalTime:a.use_local_time!=null?a.use_local_time:!1}}a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(b,c,d){return a.call(this,b,c,d)||this}var d=c.prototype;d.validityPeriodToAPI=function(){var a=this.getValue();return a==null?null:{start_date:a.startDate,end_date:a.endDate!=null?a.endDate:null,use_local_time:a.useLocalTime}};d.toAPI=function(){var a={},c=this.getValue();a[b("VideoCopyrightRuleGraphFields").TYPE]=this.getConditionType();a[b("VideoCopyrightRuleGraphFields").OPERATOR]=b("VideoCopyrightRuleOperatorType")[this.getOption()];this.getConditionType()===b("VideoCopyrightRuleConditionType").OVERLAP_DURATION?c=b("ClockFormatConverter").timestampToMillis(c):this.getConditionType()===b("VideoCopyrightRuleConditionType").VALIDITY_PERIOD&&(c=this.validityPeriodToAPI());a[b("VideoCopyrightRuleGraphFields").VALUE]=c;return a};d.toAPIforNewMatchRule=function(){var a={},c=this.getValue();a[b("VideoCopyrightRuleGraphFields").TYPE]=this.getConditionType();this.getConditionType()===b("VideoCopyrightRuleConditionType").GEO?(a[b("VideoCopyrightRuleGraphFields").OPERATOR]=b("VideoCopyrightRuleConditionOption")[this.getOption()].alias,this.getOption()===b("VideoCopyrightRuleConditionOption").WORLDWIDE.key&&(a[b("VideoCopyrightRuleGraphFields").OPERATOR]="IN_SET")):a[b("VideoCopyrightRuleGraphFields").OPERATOR]=b("VideoCopyrightRuleOperatorType")[this.getOption()];this.getConditionType()===b("VideoCopyrightRuleConditionType").OVERLAP_DURATION&&(c=b("ClockFormatConverter").timestampToMillis(c));this.getConditionType()===b("VideoCopyrightRuleConditionType").PRIVACY&&Array.isArray(c)&&(c.length>1?c="PUBLIC_OR_PRIVATE":c=c[0]);this.getConditionType()===b("VideoCopyrightRuleConditionType").PUBLISHER_TYPE&&Array.isArray(c)&&(c=c[0]);this.getConditionType()===b("VideoCopyrightRuleConditionType").VALIDITY_PERIOD&&(c=this.validityPeriodToAPI());a[b("VideoCopyrightRuleGraphFields").VALUE]=c;return a};c.fromAPI=function(a){__p&&__p();var c=a[b("VideoCopyrightRuleGraphFields").TYPE],d=a[b("VideoCopyrightRuleGraphFields").OPERATOR];a=a[b("VideoCopyrightRuleGraphFields").VALUE];switch(c){case b("VideoCopyrightRuleConditionType").OVERLAP_DURATION:a=b("ClockFormatConverter").millisToTimestamp(parseInt(a,10)).toString();break;case b("VideoCopyrightRuleConditionType").MONITORING_TYPE:a=Array.isArray(a)?a:a.split(",");break;case b("VideoCopyrightRuleConditionType").VALIDITY_PERIOD:a=g(a);break}return new this(c,d,a)};c.fromAPIforNewMatchRule=function(a,c){__p&&__p();var d=a[b("VideoCopyrightRuleGraphFields").TYPE],e=a[b("VideoCopyrightRuleGraphFields").OPERATOR],f=a[b("VideoCopyrightRuleGraphFields").VALUE];switch(d){case b("VideoCopyrightRuleConditionType").OVERLAP_DURATION:f=b("ClockFormatConverter").millisToTimestamp(parseInt(f,10)).toString();break;case b("VideoCopyrightRuleConditionType").MATCH_OVERLAP_PERCENTAGE:case b("VideoCopyrightRuleConditionType").REFERENCE_OVERLAP_PERCENTAGE:f=f.toString();break;case b("VideoCopyrightRuleConditionType").GEO:f.includes("Worldwide")?(e=b("VideoCopyrightRuleConditionOption").WORLDWIDE.key,f=["Worldwide"]):b("VideoCopyrightRuleConditionOption")[a[b("VideoCopyrightRuleGraphFields").OPERATOR]].alias&&(e=b("VideoCopyrightRuleConditionOption")[a[b("VideoCopyrightRuleGraphFields").OPERATOR]].alias);break;case b("VideoCopyrightRuleConditionType").PUBLISHER_TYPE:f=Array.isArray(f)?f:[f];if(f.length===Object.keys(b("VideoCopyrightPublisherType")).length&&!c)return null;break;case b("VideoCopyrightRuleConditionType").MONITORING_TYPE:f=Array.isArray(f)?f:[f];if(f.length===Object.keys(b("VideoCopyrightMatchContentType")).length&&!c)return null;break;case b("VideoCopyrightRuleConditionType").PRIVACY:a=["PUBLIC_ONLY","PRIVATE_ONLY"];if(f==="PUBLIC_OR_PRIVATE"){if(!c)return null;f=a}else{f=Array.isArray(f)?f:[f];if(f.length===a.length&&!c)return null}break;case b("VideoCopyrightRuleConditionType").VALIDITY_PERIOD:f=g(f);break}return new this(d,e,f)};return c}(b("PolicyRuleCondition"));e.exports=a}),null); __d("PolicyRuleTokenizedTypeahead.react",["React","SearchableEntry","SortedCopyrightCountryCodes","XUITokenizer.react"],(function(a,b,c,d,e,f){__p&&__p();a=b("React").PropTypes;c=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){__p&&__p();var b,c;for(var d=arguments.length,e=new Array(d),f=0;f100&&a.onValueUpdated("100")},onChange:function(b){return a.onValueUpdated(b.target.value)},placeholder:"0",value:a.condition.getValue(),xuiError:a.showError?a.condition.getError():null})}e.exports=a}),null); __d("VideoCopyrightOverlapType",["fbt"],(function(a,b,c,d,e,f,g){a={OVERLAP_DURATION:{value:"OVERLAP_DURATION",label:g._("mins")},REFERENCE_OVERLAP_PERCENTAGE:{value:"REFERENCE_OVERLAP_PERCENTAGE",label:g._("\u0025 of reference file")},MATCH_OVERLAP_PERCENTAGE:{value:"MATCH_OVERLAP_PERCENTAGE",label:g._("\u0025 of matching video")}};e.exports=a}),null); __d("VideoCopyrightRuleOverlapTypeSelector.react",["cx","React","SUIBusinessTheme","SUISelector.react","SUISelectorOption.react","VideoCopyrightOverlapType","VideoCopyrightRuleCondition"],(function(a,b,c,d,e,f,g){__p&&__p();a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){var a=this;return b("React").createElement("span",{className:"_ivl"},b("React").createElement(b("SUISelector.react"),{value:this.props.condition.getConditionType(),theme:b("SUIBusinessTheme"),disabled:this.props.isDisabled,onChange:function(b){return a.props.onOverlapTypeUpdated(b)}},Object.keys(b("VideoCopyrightOverlapType")).map(function(a){return b("React").createElement(b("SUISelectorOption.react"),{value:a,key:a},b("VideoCopyrightOverlapType")[a].label)})))};return c}(b("React").Component);e.exports=a}),null); __d("VideoCopyrightRuleConditionRowConfig",["cx","fbt","ClockFormatConverter","CopyrightCountryNames","PolicyRuleTokenizedTypeahead.react","React","VideoCopyrightGeoSearchSource","VideoCopyrightMatchContentType","VideoCopyrightPrivacyType","VideoCopyrightPublisherType","VideoCopyrightRuleActionType","VideoCopyrightRuleCondition","VideoCopyrightRuleConditionButtonSelector.react","VideoCopyrightRuleConditionOption","VideoCopyrightRuleConditionType","VideoCopyrightRuleConditionUtil","VideoCopyrightRuleOverlapAddDeletButton.react","VideoCopyrightRuleOverlapPercentageInput.react","VideoCopyrightRuleOverlapTypeSelector.react","XUITextInput.react"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();var i=new(b("VideoCopyrightGeoSearchSource"))();a={GEO:{label:h._("Apply this action"),labelForLite:h._("Apply these settings"),options:[b("VideoCopyrightRuleConditionOption").WORLDWIDE,b("VideoCopyrightRuleConditionOption").INCLUDE,b("VideoCopyrightRuleConditionOption").NOT_INCLUDE],createCondition:function(){return new(b("VideoCopyrightRuleCondition"))(b("VideoCopyrightRuleConditionType").GEO,b("VideoCopyrightRuleConditionOption").WORLDWIDE.key,["Worldwide"])},createDefaultCondition:function(){return new(b("VideoCopyrightRuleCondition"))(b("VideoCopyrightRuleConditionType").GEO,b("VideoCopyrightRuleConditionOption").WORLDWIDE.key,["Worldwide"])},renderValueInput:function(a,c,d,e){return a.getOption()==b("VideoCopyrightRuleConditionOption").WORLDWIDE.key?null:b("React").createElement(b("PolicyRuleTokenizedTypeahead.react"),{className:"_drg _4peh _345w",disabled:d,error:e?a.getError():null,name:"typeahead",onEntriesUpdated:c,placeholder:h._("Choose countries"),searchSource:i,searchSourceLabels:b("CopyrightCountryNames"),value:a.getValue()||[]})},getSummary:function(a,c){if(a===b("VideoCopyrightRuleConditionOption").INCLUDE.key)return h._({"*":"Include {number} countries","_1":"Include 1 country"},[h._plural(c.length,"number")]);else if(a===b("VideoCopyrightRuleConditionOption").NOT_INCLUDE.key)return h._({"*":"Exclude {number} countries","_1":"Exclude 1 country"},[h._plural(c.length,"number")]);else if(a===b("VideoCopyrightRuleConditionOption").WORLDWIDE.key)return h._("Worldwide");return null}},OVERLAP_DURATION:{label:h._("Overlap"),options:[b("VideoCopyrightRuleConditionOption").GREATER_THAN,b("VideoCopyrightRuleConditionOption").GREATER_THAN_OR_EQUAL,b("VideoCopyrightRuleConditionOption").LESS_THAN,b("VideoCopyrightRuleConditionOption").LESS_THAN_OR_EQUAL],createCondition:function(a){a===void 0&&(a="");return new(b("VideoCopyrightRuleCondition"))(b("VideoCopyrightRuleConditionType").OVERLAP_DURATION,b("VideoCopyrightRuleConditionOption").GREATER_THAN.key,a)},createConditionForTemplate:function(a){__p&&__p();var c="";switch(a){case b("VideoCopyrightRuleActionType").MONETIZE:c="5:00";break;case b("VideoCopyrightRuleActionType").BLOCK:c="5:00";break;case b("VideoCopyrightRuleActionType").TRACK:c="3:00";break;case b("VideoCopyrightRuleActionType").MANUAL_REVIEW:c="1:00";break}return new(b("VideoCopyrightRuleCondition"))(b("VideoCopyrightRuleConditionType").OVERLAP_DURATION,b("VideoCopyrightRuleConditionOption").GREATER_THAN.key,c)},renderValueInput:function(a,c,d,e){a.getValue()||a.setValue("");return b("React").createElement("span",{className:"_431x"},b("React").createElement(b("XUITextInput.react"),{className:"_431y",disabled:d,onBlur:function(){var d=a.getValue();if(!d||d.length===0)return;var e=b("ClockFormatConverter").normalizeMinutesTimestamp(d);e==="0"?c(""):e!==d&&c(e)},onChange:function(a){a=a.target.value;b("ClockFormatConverter").validate(a,!0)&&c(a)},placeholder:h._("00 {Time separator} 00",[h._param("Time separator",b("ClockFormatConverter").TIME_SEPARATOR)]),value:a.getValue(),xuiError:e?a.getError():null}))},renderConditionTypeSelector:function(a,c,d){return b("React").createElement(b("VideoCopyrightRuleOverlapTypeSelector.react"),{condition:a,onOverlapTypeUpdated:c,isDisabled:d})},nextConditionToAdd:b("VideoCopyrightRuleConditionType").REFERENCE_OVERLAP_PERCENTAGE,renderConditionAddDeleteButton:function(a,c,d,e,f,g){return g?null:b("React").createElement(b("VideoCopyrightRuleOverlapAddDeletButton.react"),{condition:a,onConditionDelete:c,onConditionAdded:f,shouldShowAddButton:d,shouldShowDeleteButton:e})},getSummary:function(a,c){return!c?null:h._("Overlap {math symbol e.g. > or \u003C} {Condition value will be a time string e.g. 1:00} minute(s)",[h._param("math symbol e.g. > or <",b("VideoCopyrightRuleConditionOption")[a].symbol),h._param("Condition value will be a time string e.g. 1:00",c)])}},REFERENCE_OVERLAP_PERCENTAGE:{label:h._("Overlap"),options:[b("VideoCopyrightRuleConditionOption").GREATER_THAN,b("VideoCopyrightRuleConditionOption").GREATER_THAN_OR_EQUAL,b("VideoCopyrightRuleConditionOption").LESS_THAN,b("VideoCopyrightRuleConditionOption").LESS_THAN_OR_EQUAL],createCondition:function(){return new(b("VideoCopyrightRuleCondition"))(b("VideoCopyrightRuleConditionType").REFERENCE_OVERLAP_PERCENTAGE,b("VideoCopyrightRuleConditionOption").GREATER_THAN.key,"")},renderValueInput:function(a,c,d,e){return b("React").createElement("span",{className:"_431x"},b("React").createElement(b("VideoCopyrightRuleOverlapPercentageInput.react"),{condition:a,onValueUpdated:c,isDisabled:d,showError:e}))},renderConditionTypeSelector:function(a,c,d){return b("React").createElement(b("VideoCopyrightRuleOverlapTypeSelector.react"),{condition:a,onOverlapTypeUpdated:c,isDisabled:d})},renderConditionAddDeleteButton:function(a,c,d,e,f,g){return g?null:b("React").createElement(b("VideoCopyrightRuleOverlapAddDeletButton.react"),{condition:a,onConditionDelete:c,onConditionAdded:f,shouldShowAddButton:d,shouldShowDeleteButton:e})},nextConditionToAdd:b("VideoCopyrightRuleConditionType").MATCH_OVERLAP_PERCENTAGE,getSummary:function(a,c){return!c?null:h._("Overlap {math symbol e.g. > or \u003C} {Condition value will be a percentage e.g. 0-100} \u0025 of reference file",[h._param("math symbol e.g. > or <",b("VideoCopyrightRuleConditionOption")[a].symbol),h._param("Condition value will be a percentage e.g. 0-100",c)])}},MATCH_OVERLAP_PERCENTAGE:{label:h._("Overlap"),options:[b("VideoCopyrightRuleConditionOption").GREATER_THAN,b("VideoCopyrightRuleConditionOption").GREATER_THAN_OR_EQUAL,b("VideoCopyrightRuleConditionOption").LESS_THAN,b("VideoCopyrightRuleConditionOption").LESS_THAN_OR_EQUAL],createCondition:function(){return new(b("VideoCopyrightRuleCondition"))(b("VideoCopyrightRuleConditionType").MATCH_OVERLAP_PERCENTAGE,b("VideoCopyrightRuleConditionOption").GREATER_THAN.key,"")},renderValueInput:function(a,c,d,e){return b("React").createElement("span",{className:"_431x"},b("React").createElement(b("VideoCopyrightRuleOverlapPercentageInput.react"),{condition:a,onValueUpdated:c,isDisabled:d,showError:e}))},renderConditionTypeSelector:function(a,c,d){return b("React").createElement(b("VideoCopyrightRuleOverlapTypeSelector.react"),{condition:a,onOverlapTypeUpdated:c,isDisabled:d})},renderConditionAddDeleteButton:function(a,c,d,e,f,g){return g?null:b("React").createElement(b("VideoCopyrightRuleOverlapAddDeletButton.react"),{condition:a,onConditionDelete:c,onConditionAdded:f,shouldShowAddButton:d,shouldShowDeleteButton:e})},nextConditionToAdd:b("VideoCopyrightRuleConditionType").OVERLAP_DURATION,getSummary:function(a,c){return!c?null:h._("Overlap {math symbol} {Condition value will be a percentage e.g. 0-100} \u0025 of matching file",[h._param("math symbol",b("VideoCopyrightRuleConditionOption")[a].symbol),h._param("Condition value will be a percentage e.g. 0-100",c)])}},MONITORING_TYPE:{label:h._("Content type"),createCondition:function(){return new(b("VideoCopyrightRuleCondition"))(b("VideoCopyrightRuleConditionType").MONITORING_TYPE,b("VideoCopyrightRuleConditionOption").IS.key,[b("VideoCopyrightMatchContentType").VIDEO_AND_AUDIO.value,b("VideoCopyrightMatchContentType").VIDEO_ONLY.value])},createDefaultCondition:function(){return new(b("VideoCopyrightRuleCondition"))(b("VideoCopyrightRuleConditionType").MONITORING_TYPE,b("VideoCopyrightRuleConditionOption").IS.key,[b("VideoCopyrightMatchContentType").VIDEO_AND_AUDIO.value,b("VideoCopyrightMatchContentType").VIDEO_ONLY.value,b("VideoCopyrightMatchContentType").AUDIO_ONLY.value])},renderValueInput:function(a,c,d,e){return b("React").createElement("div",null,b("React").createElement(b("VideoCopyrightRuleConditionButtonSelector.react"),{VideoCopyrightSelectorOptionType:b("VideoCopyrightMatchContentType"),onValueUpdated:c,condition:a,isDisabled:d}))},getSummary:function(a,c){return c.map(function(a){return b("VideoCopyrightMatchContentType")[a].label}).join(", ")},getDetailedDescription:function(a,c){__p&&__p();if(!Array.isArray(c))return null;a=c.indexOf(b("VideoCopyrightMatchContentType").VIDEO_ONLY.value)!=-1;var d=c.indexOf(b("VideoCopyrightMatchContentType").AUDIO_ONLY.value)!=-1;c=c.indexOf(b("VideoCopyrightMatchContentType").VIDEO_AND_AUDIO.value)!=-1;if(a&&!d&&!c)return h._("Matches will only contain video segments matching your reference file, not any audio segments.");if(!a&&d&&!c)return h._("Matches will only contain audio segments matching your reference file, not any video segments.");if(!a&&!d&&c)return h._("Matches must contain both video and audio segments matching your reference file.");if(a&&d&&!c)return h._("Matches will contain either video or audio segments matching your reference file, but not both.");if(a&&!d&&c)return h._("Matches must contain video segments matching your reference file.");if(!a&&d&&c)return h._("Matches must contain audio segments matching your reference file.");return a&&d&&c?h._("Matches will contain any matching video or audio."):null}},PUBLISHER_TYPE:{label:h._("Publisher"),createCondition:function(){return new(b("VideoCopyrightRuleCondition"))(b("VideoCopyrightRuleConditionType").PUBLISHER_TYPE,b("VideoCopyrightRuleConditionOption").IS.key,[b("VideoCopyrightPublisherType").PAGE.value])},createDefaultCondition:function(){return new(b("VideoCopyrightRuleCondition"))(b("VideoCopyrightRuleConditionType").PUBLISHER_TYPE,b("VideoCopyrightRuleConditionOption").IS.key,[b("VideoCopyrightPublisherType").PAGE.value,b("VideoCopyrightPublisherType").PERSON.value])},renderValueInput:function(a,c,d,e){return b("React").createElement(b("VideoCopyrightRuleConditionButtonSelector.react"),{VideoCopyrightSelectorOptionType:b("VideoCopyrightPublisherType"),onValueUpdated:c,condition:a,isDisabled:d})},getSummary:function(a,c){c.length===1?a=b("VideoCopyrightPublisherType")[c[0].toUpperCase()].summaryLabel:a=h._("Any");return h._("Publisher: {summary}",[h._param("summary",a)])}},PRIVACY:{label:h._("Privacy"),createCondition:function(){return new(b("VideoCopyrightRuleCondition"))(b("VideoCopyrightRuleConditionType").PRIVACY,b("VideoCopyrightRuleConditionOption").IS.key,[b("VideoCopyrightPrivacyType").PUBLIC_ONLY.value])},createDefaultCondition:function(){return new(b("VideoCopyrightRuleCondition"))(b("VideoCopyrightRuleConditionType").PRIVACY,b("VideoCopyrightRuleConditionOption").IS.key,[b("VideoCopyrightPrivacyType").PUBLIC_ONLY.value,b("VideoCopyrightPrivacyType").PRIVATE_ONLY.value])},renderValueInput:function(a,c,d,e){return b("React").createElement(b("VideoCopyrightRuleConditionButtonSelector.react"),{VideoCopyrightSelectorOptionType:b("VideoCopyrightPrivacyType"),onValueUpdated:c,condition:a,isDisabled:d})},getSummary:function(a,c){c.length===1?a=b("VideoCopyrightPrivacyType")[c[0]].summaryLabel:a=h._("Any");return h._("Privacy: {summary}",[h._param("summary",a)])}},VALIDITY_PERIOD:{label:h._("Validity Period"),createCondition:function(){return new(b("VideoCopyrightRuleCondition"))(b("VideoCopyrightRuleConditionType").VALIDITY_PERIOD,b("VideoCopyrightRuleConditionOption").IS.key,[])},createDefaultCondition:function(){return new(b("VideoCopyrightRuleCondition"))(b("VideoCopyrightRuleConditionType").VALIDITY_PERIOD,b("VideoCopyrightRuleConditionOption").IS.key,[])},renderValueInput:function(){return b("React").createElement("span",null)},getSummary:function(a,c){return b("VideoCopyrightRuleConditionUtil").getValidityPeriodWarning(c)}}};e.exports=a}),null); __d("VideoCopyrightRuleAction",["ix","Image.react","PolicyRuleAction","React","VideoCopyrightMatchPrivacyType","VideoCopyrightRuleActionType","VideoCopyrightRuleCondition","VideoCopyrightRuleConditionOption","VideoCopyrightRuleConditionRowConfig","VideoCopyrightRuleConditionType","VideoCopyrightRuleGraphFields","asset"],(function(a,b,c,d,e,f,g){__p&&__p();a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(c,d,e){e===void 0&&(e=!0);(!d||!d.length)&&(d=[new(b("VideoCopyrightRuleCondition"))(b("VideoCopyrightRuleConditionType").PRIVACY,b("VideoCopyrightRuleConditionOption").IS.key,b("VideoCopyrightMatchPrivacyType").PUBLIC_ONLY.value)]);d=a.call(this,c,d)||this;d.$VideoCopyrightRuleAction1=c;d.$VideoCopyrightRuleAction2=e;return d}var d=c.prototype;d.getIsValid=function(){return this.$VideoCopyrightRuleAction2};d.getIcon=function(){switch(this.$VideoCopyrightRuleAction1){case b("VideoCopyrightRuleActionType").TRACK:return b("React").createElement(b("Image.react"),{src:g("535119")});case b("VideoCopyrightRuleActionType").MUTE:case b("VideoCopyrightRuleActionType").BLOCK:return b("React").createElement(b("Image.react"),{src:g("859368")});case b("VideoCopyrightRuleActionType").MONETIZE:return b("React").createElement(b("Image.react"),{src:g("505897")});case b("VideoCopyrightRuleActionType").MANUAL_REVIEW:return b("React").createElement(b("Image.react"),{src:g("649815")});default:return null}};d.getConditionWithType=function(a){return this.getConditions().find(function(b){return b.getConditionType()===a})};d.hasConditionType=function(a){return!!this.getConditions().find(function(b){return b.getConditionType()===a})};d.toAPI=function(){var a={};a[b("VideoCopyrightRuleGraphFields").ACTION]=this.getActionType();var c=this.getConditions().map(function(a){return a.toAPI()});a[b("VideoCopyrightRuleGraphFields").CONDITIONS]=c;return a};d.toAPIforNewMatchRule=function(){var a={};a[b("VideoCopyrightRuleGraphFields").ACTION]=this.getActionType();var c=this.getConditions().filter(function(a){return a.getValue()&&a.getValue().length>0||a.getConditionType()===b("VideoCopyrightRuleConditionType").VALIDITY_PERIOD}).filter(function(a){return a.getConditionType()===b("VideoCopyrightRuleConditionType").PUBLISHER_TYPE?a.getValue().length!==2:!0}).map(function(a){return a.toAPIforNewMatchRule()});a[b("VideoCopyrightRuleGraphFields").CONDITIONS]=c.filter(function(a){return a.operator!=null});return a};c.fromAPI=function(a){var c=a[b("VideoCopyrightRuleGraphFields").ACTION],d=(a[b("VideoCopyrightRuleGraphFields").CONDITIONS]||[]).map(function(a){return b("VideoCopyrightRuleCondition").fromAPI(a)});a=a[b("VideoCopyrightRuleGraphFields").VALIDITY_STATUS]!=="invalid";c=new this(c,d,a);return c};c.fromAPIforNewMatchRule=function(a,c){__p&&__p();var d=a[b("VideoCopyrightRuleGraphFields").ACTION],e=[];(a[b("VideoCopyrightRuleGraphFields").CONDITIONS]||[]).forEach(function(a){a=b("VideoCopyrightRuleCondition").fromAPIforNewMatchRule(a,c);a&&e.push(a)});a=a[b("VideoCopyrightRuleGraphFields").VALIDITY_STATUS]!=="invalid";d=new this(d,e,a);d.hasConditionType(b("VideoCopyrightRuleConditionType").GEO)||d.pushConditionByIndex(b("VideoCopyrightRuleConditionRowConfig").GEO.createDefaultCondition(),0);!d.hasConditionType(b("VideoCopyrightRuleConditionType").PRIVACY)&&c&&d.pushConditionByIndex(b("VideoCopyrightRuleConditionRowConfig").PRIVACY.createDefaultCondition(),d.getConditions().length);!d.hasConditionType(b("VideoCopyrightRuleConditionType").PUBLISHER_TYPE)&&c&&d.pushConditionByIndex(b("VideoCopyrightRuleConditionRowConfig").PUBLISHER_TYPE.createDefaultCondition(),d.getConditions().length-1);!d.hasConditionType(b("VideoCopyrightRuleConditionType").MONITORING_TYPE)&&c&&d.pushConditionByIndex(b("VideoCopyrightRuleConditionRowConfig").MONITORING_TYPE.createDefaultCondition(),d.getConditions().length-2);return d};c.fromAction=function(a){return new this(a.$VideoCopyrightRuleAction1,a.getConditions(),a.getIsValid())};return c}(b("PolicyRuleAction"));e.exports=a}),null); __d("VideoCopyrightRule",["VideoCopyrightRuleAction","VideoCopyrightRuleGraphFields"],(function(a,b,c,d,e,f){__p&&__p();a=function(){"use strict";__p&&__p();function a(a,b,c,d){this.$3=a||[],this.$2=b,this.$1=c,this.$4=d!=null?d:!1}var c=a.prototype;c.deepClone=function(){var b=this.toAPI();return a.fromAPI(b)};c.getActions=function(){return this.$3};c.isEmpty=function(){return this.$3.length===0};c.pushAction=function(a){this.$3.push(a)};c.removeAction=function(a){a=this.$3.indexOf(a);this.$3.splice(a,1)};c.moveActionByIndex=function(a,b){this.$3.splice(b,0,this.$3.splice(a,1)[0])};c.replaceActionType=function(a,b){var c=this.$3.find(function(b){return b.getActionType()===a});if(c==null)return;c.setActionType(b)};c.removeActionByActionType=function(a){var b=this.$3.find(function(b){return b.getActionType()===a});b&&this.removeAction(b)};c.hasName=function(){return this.$2!=null&&this.$2.toString().trim().length>0};c.getName=function(){return this.$2||""};c.getNameNullable=function(){return this.$2};c.setName=function(a){this.$2=a};c.getID=function(){return this.$1};c.isDisabled=function(){return this.$4};c.toAPI=function(){var a={};a[b("VideoCopyrightRuleGraphFields").NAME]=this.$2;var c=this.$3.map(function(a){return a.toAPI()});a[b("VideoCopyrightRuleGraphFields").CONDITION_GROUPS]=c;a.id=this.$1;return a};c.toAPIforNewMatchRule=function(){var a={};a[b("VideoCopyrightRuleGraphFields").NAME]=this.$2;var c=this.$3.map(function(a){return a.toAPIforNewMatchRule()});a[b("VideoCopyrightRuleGraphFields").CONDITION_GROUPS]=c;return a};a.fromAPI=function(a){var c=a[b("VideoCopyrightRuleGraphFields").NAME],d=a[b("VideoCopyrightRuleGraphFields").CONDITION_GROUPS]?a[b("VideoCopyrightRuleGraphFields").CONDITION_GROUPS].map(function(a){return b("VideoCopyrightRuleAction").fromAPI(a)}):[];return new this(d,c,a.id,a.disabled)};a.fromRule=function(a){return new this(a.getActions(),a.getName(),a.getID(),a.isDisabled())};a.fromAPIforNewMatchRule=function(a,c){c===void 0&&(c=!0);var d=a[b("VideoCopyrightRuleGraphFields").NAME],e=a[b("VideoCopyrightRuleGraphFields").CONDITION_GROUPS]?a[b("VideoCopyrightRuleGraphFields").CONDITION_GROUPS].map(function(a){return b("VideoCopyrightRuleAction").fromAPIforNewMatchRule(a,c)}):[];return new this(e,d,a.id,a.disabled)};return a}();e.exports=a}),null); __d("VideoCopyrightRuleActionConfig",["fbt","VideoCopyrightRuleActionType"],(function(a,b,c,d,e,f,g){"use strict";function a(a){a=[{key:b("VideoCopyrightRuleActionType").ALLOW,label:g._("Allow match"),tooltip:null},{key:b("VideoCopyrightRuleActionType").TRACK,label:g._("Monitor match"),tooltip:null},{key:b("VideoCopyrightRuleActionType").BLOCK,label:g._("Block match"),tooltip:g._("Not all matches are eligible for automatic blocking")},{key:b("VideoCopyrightRuleActionType").TAKEDOWN,label:g._("Take Down"),tooltip:null},{key:b("VideoCopyrightRuleActionType").MONETIZE,label:g._("Claim ad earnings"),tooltip:g._("Not all matches are eligible for automatic claiming of ad earnings. Ex: if there are no ad breaks. In that case, the next action-condition will be checked."),extraData:g._("If you're unable to claim ad earnings, the next action you select will be applied to the video.")},{key:b("VideoCopyrightRuleActionType").ACQUIRE_VIEWS_AND_MONETIZE,label:g._("Acquire Views & Monetize"),tooltip:g._("Not all matches are eligible for automatic views acquisition & monetization")},{key:b("VideoCopyrightRuleActionType").MANUAL_REVIEW,label:g._("Manually review match"),tooltip:null}];return a}e.exports=a}),null); __d("VideoCopyrightRuleMetadataSummary.react",["cx","invariant","React","ReactComponentWithPureRenderMixin","VideoCopyrightRuleActionConfig","VideoCopyrightRuleConditionRowConfig","emptyFunction"],(function(a,b,c,d,e,f,g,h){__p&&__p();a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(c){c=a.call(this,c)||this;c.state={actionConfig:b("VideoCopyrightRuleActionConfig")({}),conditionConfig:b("VideoCopyrightRuleConditionRowConfig")};return c}var d=c.prototype;d.shouldComponentUpdate=function(a,c){return b("ReactComponentWithPureRenderMixin").shouldComponentUpdate.call(this,a,c)};d.$1=function(a,c){var d=this.state.conditionConfig[a.getConditionType()];d=d&&d.getSummary?d.getSummary:b("emptyFunction");if(d(a.getOption(),a.getValue())===null)return;return b("React").createElement("li",{className:"_idg",key:c},d(a.getOption(),a.getValue()))};d.$2=function(a,c){var d=this,e=this.$3(a.getActionType());return b("React").createElement("span",{key:c},b("React").createElement("p",null,e.label),b("React").createElement("ul",{className:"_idh"},a.getConditions().map(function(a,b){return d.$1(a,b)})))};d.$3=function(a){var b=this.state.actionConfig.filter(function(b){return b.key===a});b&&b.length==1||h(0,4300);return b[0]};d.render=function(){var a=this;if(!this.props.rule)return null;var c=this.props.rule||{};return b("React").createElement("span",{className:this.props.className},c.getActions().map(function(b,c){return a.$2(b,c+1)}))};return c}(b("React").Component);e.exports=a}),null); __d("VideoCopyrightMatchRuleSelector.react",["cx","fbt","invariant","AdsSelectorWithTooltips.react","Arbiter","GraphAPI","LoadingIndicator.react","PageContentTabAccessToken","React","RightsManagerRulesRequestSource","VideoCopyrightRule","VideoCopyrightRuleMetadataSummary.react","VideoCopyrightUtils","XUIText.react","keyMirror","promiseDone"],(function(a,b,c,d,e,f,g,h,i){__p&&__p();var j=b("AdsSelectorWithTooltips.react").Option,k=b("keyMirror")({DEFAULT:null,CREATE:null,NO_RULE_SELECTED:null}),l={id:k.CREATE,name:h._("Create new Match Rule..."),condition_groups:[]},m={id:k.NO_RULE_SELECTED,name:h._("Choose match rule..."),condition_groups:[],disabled:!0},n=100;a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(b){var c;c=a.call(this,b)||this;c.$8=function(a){c.$6(a)};c.state={rules:[],isLoading:!0};return c}var d=c.prototype;d.UNSAFE_componentWillMount=function(){this.$3(),this.$2=!0,this.$1=b("Arbiter").subscribe("VideoCopyrightRule/closeDialog",this.$4.bind(this))};d.componentWillUnmount=function(){this.$2=!1,this.$1&&(this.$1.unsubscribe(),this.$1=null)};d.$5=function(a){var b=this.props.rulesToHideFromDisplay;b!=void 0||i(0,4967);return a.filter(function(a){var c=a.getID();a=b.findIndex(function(a){return a.id===c});return a===-1})};d.$3=function(a){__p&&__p();var c=this,d=this.props.accessToken?this.props.accessToken:b("PageContentTabAccessToken").getAccessToken();b("promiseDone")(b("GraphAPI")(b("VideoCopyrightUtils").GRAPH_API_VERSION,e.id).object("page",this.props.pageID).edge("video_copyright_rules").get({access_token:d,summary:["version"],source:b("RightsManagerRulesRequestSource").RULES_SELECTOR,selected_rule_id:this.props.selectedRule,limit:n}),function(d){if(!c.$2)return;d=d.data;d=!Array.isArray(d)||!d.length?[m]:d;var e=d.map(function(a){return b("VideoCopyrightRule").fromAPIforNewMatchRule(a)});c.setState({isLoading:!1,rules:e},function(){a?c.$6(a):c.props.selectedRule?c.$6(c.props.selectedRule):e.length>0&&!Boolean(c.props.permitNullState)&&c.$6(e[0].getID())});c.props.onMatchRuleLoaded&&c.props.onMatchRuleLoaded()})};d.$4=function(a,b){var c=this;b&&this.setState({isLoading:!0},function(){return c.$3(b)})};d.$6=function(a){__p&&__p();var b;if(a===k.CREATE){this.props.onCreateNewRule&&this.props.onCreateNewRule();return}else a===k.DEFAULT?b=null:b=a;if(b!==this.props.selectedRule){a=this.state.rules.find(function(a){return a.getID()===b});this.props.onChange(b,a);this.$7(a)}};d.$7=function(a){if(this.props.onRuleActionsChange){var b=new Set();a&&a.getActions().map(function(a){return b.add(a.getActionType())});this.props.onRuleActionsChange(b)}};d.$9=function(a){if(this.props.rulesToHideFromDisplay&&this.props.rulesToHideFromDisplay.some(function(b){return b.id===a}))return null;if(a&&!this.state.rules.some(function(b){return b.getID()===a})){this.$6(null);return null}return a};d.$10=function(a){return a&&a.getActions()&&a.getActions().length?b("React").createElement(b("VideoCopyrightRuleMetadataSummary.react"),{className:"_2jzx",rule:a}):null};d.$11=function(a){return(!a||a===k.NO_RULE_SELECTED)&&!Boolean(this.props.permitNullState)?h._("Match rule is required"):null};d.$12=function(a){return(!a||a===k.NO_RULE_SELECTED)&&!Boolean(this.props.permitNullState)?b("React").createElement(b("XUIText.react"),{className:"_okf",weight:"bold"},"!"):null};d.render=function(){__p&&__p();var a=this;if(this.state.isLoading)return b("React").createElement(b("LoadingIndicator.react"),{size:"small",color:"white"});var c=this.state.rules;this.props.rulesToHideFromDisplay!=null&&this.props.rulesToHideFromDisplay.length&&(c=this.$5(c));c=this.props.onCreateNewRule?c.concat([b("VideoCopyrightRule").fromAPIforNewMatchRule(l)]):c;var d=c.map(function(c){return b("React").createElement(j,{tooltip:a.$10(c),key:c.getID(),value:c.getID(),isDisabled:c.isDisabled()},c.getName())}),e=this.$9(this.props.selectedRule);!e&&!Boolean(this.props.permitNullState)&&(e=c&&c.length?c[0].getID():k.DEFAULT,this.$6(e));return b("React").createElement("div",{className:this.props.className},b("React").createElement(b("AdsSelectorWithTooltips.react"),{buttonSize:this.props.buttonSize,buttonUse:Boolean(this.props.isFlat)?"flat":"default",isDisabled:this.props.disabled,onChange:this.$8,value:e,maxHeight:400,dropdownWidth:280,label:this.props.label,errorMessage:this.$11(e),errorTooltipPosition:"below"},d),this.$12(e))};return c}(b("React").Component);e.exports=a}),null); __d("MatchRuleDeleteConfirmationDialog.react",["fbt","React","VideoCopyrightUtils","XUIDialog.react","XUIDialogBody.react","XUIDialogButton.react","XUIDialogFooter.react","XUIDialogTitle.react","XUIText.react","cxMargin"],(function(a,b,c,d,e,f,g){__p&&__p();a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.$1=function(){return b("React").createElement("div",null,b("React").createElement(b("XUIText.react"),{className:"_3-95",size:"header4",display:"block"},g._("This match rule will be permanently deleted.")),b("React").createElement(b("XUIText.react"),{className:"_3-8x",size:"header4",display:"block"},g._({"reference file":{"this reference file":"This rule is now used by {Number of reference files} reference file. If you delete the rule, all new matches for this reference file will appear in your New Matches list in Rights Manager.","these reference files":"This rule is now used by {Number of reference files} reference file. If you delete the rule, all new matches for these reference files will appear in your New Matches list in Rights Manager."},"reference files":{"this reference file":"This rule is now used by {Number of reference files} reference files. If you delete the rule, all new matches for this reference file will appear in your New Matches list in Rights Manager.","these reference files":"This rule is now used by {Number of reference files} reference files. If you delete the rule, all new matches for these reference files will appear in your New Matches list in Rights Manager."}},[g._param("Number of reference files",b("VideoCopyrightUtils").formatNumber(this.props.postCount)),g._enum(this.props.postCount===1?"reference file":"reference files",{"reference file":"reference file","reference files":"reference files"}),g._enum(this.props.postCount===1?"this reference file":"these reference files",{"this reference file":"this reference file","these reference files":"these reference files"})])))};d.render=function(){return b("React").createElement(b("XUIDialog.react"),{width:450,shown:!0,fixedTopPosition:100},b("React").createElement(b("XUIDialogTitle.react"),null,g._("Delete match rule?")),b("React").createElement(b("XUIDialogBody.react"),null,this.$1()),b("React").createElement(b("XUIDialogFooter.react"),null,b("React").createElement(b("XUIDialogButton.react"),{label:g._("Cancel"),action:"cancel",size:"large",use:"default",onClick:this.props.onCancel}),b("React").createElement(b("XUIDialogButton.react"),{label:g._("Delete"),action:"cancel",size:"large",use:"confirm",onClick:this.props.onDelete})))};return c}(b("React").Component);e.exports=a}),null); __d("VideoCopyrightRuleActionItemConfig",["ix","cx","fbt","React","SUIBusinessTheme","SUITooltip.react","VideoCopyrightClaimAdEarningsText","VideoCopyrightRuleActionType","fbglyph"],(function(a,b,c,d,e,f,g,h,i){"use strict";a=[{key:b("VideoCopyrightRuleActionType").MONETIZE,title:i._("Claim Ad Earnings (Facebook Only)"),className:"_4bd5",titleOnDisable:b("React").createElement(b("SUITooltip.react"),{theme:b("SUIBusinessTheme"),position:"right",tooltip:i._("To claim ad earnings, you'll first need to specify how you or your organization would like to be paid by going to Settings > Rights Manager.")},i._("Claim Ad Earnings (Facebook Only)")),description:i._("Receive a share of the money earned from a matching video's ad breaks on Facebook"),descriptionForManualClaim:i._("Receive a share of the money earned by this video's ad breaks"),filterDescription:i._("Set up filters describing the type of matching videos you want to claim ad earnings from."),descriptionOnDisable:function(a){return i._("Receive a share of the money earned from a matching video's ad breaks on Facebook {=Set up Claiming}",[i._param("=Set up Claiming",b("React").createElement("a",{href:b("VideoCopyrightClaimAdEarningsText").getRightsManagerSettingsURI(a),target:"_blank"},i._("Set up Claiming")))])},glyphClassName:"_4utm",glyph:g("134490"),disabledGlyph:g("124878"),summaryGlyph:g("124876"),warning:i._("If there are no ad breaks in the matching video,the next action in this match rule will be checked.")},{key:b("VideoCopyrightRuleActionType").BLOCK,title:i._("Block"),className:"_4bd6",description:i._("Prevent matching videos from being discoverable or viewed on Facebook"),descriptionForManualClaim:i._("Prevent this video from being discoverable or viewed on Facebook"),filterDescription:i._("Set up filters describing the type of matching videos you want to block."),glyphClassName:"_4uto",glyph:g("134473"),disabledGlyph:g("124861"),summaryGlyph:g("124859"),warning:i._("Blocked videos will not generate Reference File Insights.")},{key:b("VideoCopyrightRuleActionType").TRACK,title:i._("Monitor"),className:"_4bd7",description:i._("Move matching videos to Monitor tab to keep an eye on how they're performing over a long period of time"),descriptionForManualClaim:i._("Keep an eye on how this video performs over a long period of time"),filterDescription:i._("Set up filters describing the type of matching videos you want to monitor."),glyphClassName:"_4utp",glyph:g("134084"),disabledGlyph:g("124472"),summaryGlyph:g("124470")},{key:b("VideoCopyrightRuleActionType").MANUAL_REVIEW,title:i._("Manually Review"),className:"_4bd8",description:i._("You'll have 30 days to decide what action to take before the matching video expires from Rights Manager"),descriptionForManualClaim:i._("Save this video to take action on it later in rights manager"),filterDescription:i._("Set up filters describing the type of matching videos you want to manually review."),glyphClassName:"_4utq",glyph:g("134637"),disabledGlyph:g("125025"),summaryGlyph:g("125023")}];e.exports=a}),null); __d("VideoCopyrightRuleActionEditButton.react",["ix","cssVar","cx","fbt","React","SUIBusinessTheme","SUIGlyphIcon.react","SUISelector.react","SUISelectorButton.react","SUISelectorOption.react","SUISelectorOptionGroup.react","SUITooltip.react","VideoCopyrightClaimAdEarningsText","VideoCopyrightRuleActionItemConfig","VideoCopyrightRuleActionType","fbglyph","keyMirror"],(function(a,b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k=b("keyMirror")({MOVE_UP:null,MOVE_DOWN:null,DELETE:null});a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){var c,d;for(var e=arguments.length,f=new Array(e),g=0;g Rights Manager. {=Go to Settings}",[j._param("=Go to Settings",b("React").createElement("a",{href:b("VideoCopyrightClaimAdEarningsText").getRightsManagerSettingsURI(a.props.pageID),target:"_blank"},j._("Go to Settings")))])},c.title):c.title)}),b("React").createElement("hr",{className:"_61gl"}),b("React").createElement(b("SUISelectorOption.react"),{value:k.MOVE_UP,disabled:this.props.actionIndex===0},j._("Move Up")),b("React").createElement(b("SUISelectorOption.react"),{value:k.MOVE_DOWN,disabled:this.props.actionIndex===this.props.actionCount-1},j._("Move Down")),b("React").createElement("hr",{className:"_61gl"}),b("React").createElement(b("SUISelectorOption.react"),{value:k.DELETE},j._("Delete")))))};return c}(b("React").Component);e.exports=a}),null); __d("VideoCopyrightRuleCondition.react",["ix","cx","Image.react","PageContentTabRightsManagerStore","React","SUIBusinessTheme","SUISelector.react","SUISelectorOption.react","Tooltip.react","VideoCopyrightRuleConditionOption","cxMargin","fbglyph"],(function(a,b,c,d,e,f,g,h){__p&&__p();a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(b){b=a.call(this,b)||this;b.state=b.getStateFromCondition(b.props.condition);return b}var d=c.prototype;d.UNSAFE_componentWillReceiveProps=function(a){this.state.condition!=a.condition&&this.setState(this.getStateFromCondition(a.condition))};d.getStateFromCondition=function(a){var b=a.getConditionType();b=this.props.conditionConfig[b];var c=b.customValidation?b.customValidation:function(){};return{condition:a,config:b,customValidation:c}};d.$1=function(){var a=this;if(!this.state.config.options)return null;var c=this.state.config.options.map(function(c){return b("React").createElement(b("SUISelectorOption.react"),{key:c.key,value:c.key,disabled:a.props.invalidDate},c.text)});return b("React").createElement(b("SUISelector.react"),{theme:b("SUIBusinessTheme"),onChange:function(b){return a.$2(b)},value:this.state.condition.getOption(),disabled:this.props.isViewing||this.props.invalidDate},c)};d.$3=function(a){this.state.customValidation(a),this.setState({condition:a}),this.props.onConditionUpdated(a)};d.$2=function(a){var c=this.state.condition;c.setOption(a);a=a===b("VideoCopyrightRuleConditionOption").WORLDWIDE.key?["Worldwide"]:null;c.setValue(a);this.$3(c)};d.$4=function(a){var b=this.state.condition,c=this.props.conditionConfig[a];b.setConditionType(a);b.setValue("");this.$3(b);this.setState({config:c})};d.$5=function(a){var b=this.state.condition;this.state.condition.setValue(a);this.$3(b)};d.$6=function(){return this.state.config.renderValueInput(this.state.condition,this.$5.bind(this),this.props.isViewing||this.props.invalidDate,this.props.shouldValidate)};d.$7=function(){var a=this.state.config.renderConditionTypeSelector;return!a?null:a(this.state.condition,this.$4.bind(this),this.props.isViewing||this.props.invalidDate)};d.$8=function(){var a=this.state.config.renderConditionAddDeleteButton;return!a?null:a(this.state.condition,this.props.onConditionRemoved,this.props.shouldShowAddButton,this.props.shouldShowDeleteButton,this.props.onAddCondition,this.props.isViewing||this.props.invalidDate)};d.$9=function(){var a=this.state.config.getDetailedDescription;if(!a)return null;a=a(this.state.condition.getOption(),this.state.condition.getValue());return!a?null:b("React").createElement("div",{className:"_6176"},a)};d.render=function(){return b("React").createElement("div",{className:"_3-8x"},b("React").createElement("table",null,b("React").createElement("tbody",null,b("React").createElement("tr",null,b("React").createElement("td",{className:"_31sp"},b("PageContentTabRightsManagerStore").getIsRMLite()?this.state.config.labelForLite||this.state.config.label:this.state.config.label,this.state.config.tooltip?b("React").createElement(b("Tooltip.react"),{tooltip:this.state.config.tooltip,className:"_2t-y"},b("React").createElement(b("Image.react"),{className:"_3-99",src:g("126340")})):null),b("React").createElement("td",{className:"_6177"},this.$1(),this.$6(),this.$7(),this.$8(),this.$9())))))};return c}(b("React").Component);e.exports=a}),null); __d("VideoCopyrightRuleOverlapConditionType",["VideoCopyrightRuleConditionType"],(function(a,b,c,d,e,f){a=[b("VideoCopyrightRuleConditionType").OVERLAP_DURATION,b("VideoCopyrightRuleConditionType").MATCH_OVERLAP_PERCENTAGE,b("VideoCopyrightRuleConditionType").REFERENCE_OVERLAP_PERCENTAGE];e.exports=a}),null); __d("VideoCopyrightRuleActionCard.react",["ix","cx","fbt","FDSText.react","Image.react","React","VideoCopyrightRuleActionEditButton.react","VideoCopyrightRuleActionType","VideoCopyrightRuleCondition.react","VideoCopyrightRuleConditionRowConfig","VideoCopyrightRuleConditionType","VideoCopyrightRuleConditionUtil","VideoCopyrightRuleOverlapConditionType","XUICard.react","asset","cxMargin","fbglyph"],(function(a,b,c,d,e,f,g,h,i){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(b){b=a.call(this,b)||this;b.state={action:b.props.action};return b}var d=c.prototype;d.$1=function(a){this.props.onActionUpdated()};d.$2=function(a){var b=this.state.action;b.removeCondition(a);this.setState({action:b});this.props.onActionUpdated()};d.$3=function(a){var b=this.state.action;b.setActionType(a);this.setState({action:b});this.props.onActionUpdated()};d.UNSAFE_componentWillReceiveProps=function(a){this.state.action!=a.action&&this.setState({action:a.action})};d.$4=function(a){var c=this.state.action.getConditions().filter(function(a){return b("VideoCopyrightRuleOverlapConditionType").includes(a.getConditionType())}).slice(-1)[0];return c===a};d.$5=function(){return this.state.action.getConditions().filter(function(a){return b("VideoCopyrightRuleOverlapConditionType").includes(a.getConditionType())}).length>1};d.$6=function(a){var c=this.state.action.getConditions().indexOf(a);a=b("VideoCopyrightRuleConditionRowConfig")[a.getConditionType()].nextConditionToAdd;a=b("VideoCopyrightRuleConditionRowConfig")[a].createCondition();var d=this.state.action;d.pushConditionByIndex(a,c+1);this.setState({action:d});this.props.onActionUpdated()};d.getValidityPeriodWarning=function(a){var c=this.props.action.getIsValid()?g("501292"):g("716809");return b("React").createElement("div",{className:"_3-8z"},b("React").createElement(b("Image.react"),{src:c}),b("React").createElement("div",{className:"_y5p"},b("VideoCopyrightRuleConditionUtil").getValidityPeriodWarning(a)))};d.render=function(){__p&&__p();var a=this,c=this.state.action.getConditionWithType(b("VideoCopyrightRuleConditionType").GEO),d=[b("VideoCopyrightRuleConditionType").MATCH_OVERLAP_PERCENTAGE,b("VideoCopyrightRuleConditionType").OVERLAP_DURATION,b("VideoCopyrightRuleConditionType").REFERENCE_OVERLAP_PERCENTAGE];this.props.isAudioAsset||d.push(b("VideoCopyrightRuleConditionType").MONITORING_TYPE);var e=this.state.action.getActionType()!==b("VideoCopyrightRuleActionType").MANUAL_REVIEW,f=this.state.action.getConditions().filter(function(a){return a.getConditionType()===b("VideoCopyrightRuleConditionType").VALIDITY_PERIOD});f=f.length===1?f[0].getValue():null;f!=null&&(f,f=this.getValidityPeriodWarning(f));var h=b("React").createElement(b("FDSText.react"),{size:"body1",color:"placeholder",weight:"normal"}," ",i._("- Disabled"));return b("React").createElement(b("XUICard.react"),{className:"_7324"+(this.props.action.getIsValid()?"":" _7325")},b("React").createElement("div",{className:"_y5k"},b("React").createElement(b("Image.react"),{src:this.props.action.getIsValid()?this.props.actionConfig.glyph:this.props.actionConfig.disabledGlyph}),b("React").createElement("div",{className:"_y5m"},this.props.actionConfig.title,this.props.action.getIsValid()?null:h),b("React").createElement(b("VideoCopyrightRuleActionEditButton.react"),{action:this.props.action,actionIndex:this.props.actionIndex,actionCount:this.props.actionCount,onActionDeleted:this.props.onActionDeleted,onActionTypeUpdated:this.$3.bind(this),onActionMoved:this.props.onActionMoved,isViewing:this.props.isViewing,isMonetizationOnboarded:this.props.isMonetizationOnboarded,pageID:this.props.pageID})),b("React").createElement("div",{className:"_y5n"},this.props.actionConfig.description),c&&e?b("React").createElement(b("VideoCopyrightRuleCondition.react"),{condition:c,shouldShowAddButton:this.$4(c),shouldShowDeleteButton:this.$5(),onAddCondition:function(){return a.$6(c)},conditionConfig:b("VideoCopyrightRuleConditionRowConfig"),isViewing:this.props.isViewing,shouldValidate:!1,onConditionRemoved:this.$2.bind(this),key:b("VideoCopyrightRuleConditionType").GEO,onConditionUpdated:this.$1.bind(this),invalidDate:!this.props.action.getIsValid()}):null,b("React").createElement("div",{className:"_y5o"},i._("Select filters")),b("React").createElement("div",{className:"_y5n"},this.props.actionConfig.filterDescription),this.state.action.getConditions().filter(function(a){return a.getConditionType()!==b("VideoCopyrightRuleConditionType").GEO&&a.getConditionType()!==b("VideoCopyrightRuleConditionType").VALIDITY_PERIOD}).filter(function(b){var c;return!((c=a.props)!=null?c.isMusicLabel:c)||d.includes(b.getConditionType())}).map(function(c,d){return b("React").createElement(b("VideoCopyrightRuleCondition.react"),{condition:c,shouldShowAddButton:a.$4(c),shouldShowDeleteButton:a.$5(),onAddCondition:function(){return a.$6(c)},conditionConfig:b("VideoCopyrightRuleConditionRowConfig"),isViewing:a.props.isViewing,shouldValidate:!1,onConditionRemoved:a.$2.bind(a),key:d,onConditionUpdated:a.$1.bind(a),invalidDate:!a.props.action.getIsValid()})}),this.props.actionConfig.warning?b("React").createElement("div",{className:"_3-8z"},b("React").createElement(b("Image.react"),{src:g("124165")}),b("React").createElement("div",{className:"_y5p"},this.props.actionConfig.warning)):null,f)};return c}(b("React").Component);e.exports=a}),null); __d("VideoCopyrightRuleAddActionButton.react",["ix","cx","fbt","React","SUIBusinessTheme","SUIButton.react","SUIGlyphIcon.react","fbglyph"],(function(a,b,c,d,e,f,g,h,i){"use strict";function a(a){return b("React").createElement("div",{className:"_1ck-"},b("React").createElement(b("SUIButton.react"),{onClick:function(){return a.onClickAddActionButton()},icon:b("React").createElement(b("SUIGlyphIcon.react"),{srcDefault:g("123418")}),height:"tall",theme:b("SUIBusinessTheme"),label:i._("Add an Action")}))}e.exports=a}),null); __d("VideoCopyrightRuleActionItem.react",["cx","React","VideoCopyrightRuleActionType"],(function(a,b,c,d,e,f,g){"use strict";a=function(a){return b("React").createElement("div",{className:a.className},b("React").createElement("div",{className:a.isSelected?"_4utl":"",onClick:a.disabled?null:a.onClick,role:"presentation"},b("React").createElement("div",{className:(a.disabled?"":"_4utk")+(a.disabled?" _1qv7":"")},b("React").createElement("div",null,b("React").createElement("div",{className:a.glyphClassName}),b("React").createElement("div",{className:"_4utz"},a.title)),b("React").createElement("div",{className:"_4ut-"},a.description))))};e.exports=a}),null); __d("VideoCopyrightRuleAddActionCard.react",["cx","fbt","Link.react","React","VideoCopyrightLearnMoreLinks","VideoCopyrightRuleActionItem.react","VideoCopyrightRuleActionItemConfig","VideoCopyrightRuleActionType","XUIButton.react","XUICard.react"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){var a=this;return b("React").createElement("div",null,b("React").createElement(b("XUICard.react"),{className:"_20_d"},b("React").createElement("div",{className:"_20_e"},b("React").createElement("div",{className:"_2698"},h._("Add an Action")),b("React").createElement("div",{className:"_2699"},h._("Select the action you want to take on videos that match content in your reference files. {Link saying learn more}",[h._param("Link saying learn more",b("React").createElement(b("Link.react"),{href:b("VideoCopyrightLearnMoreLinks").learn_more_add_action,target:"_blank"},h._("Learn more")))])),b("React").createElement("div",{className:"_269a"},b("VideoCopyrightRuleActionItemConfig").map(function(c){var d=!a.props.isMonetizationOnboarded&&c.key===b("VideoCopyrightRuleActionType").MONETIZE;return b("React").createElement(b("VideoCopyrightRuleActionItem.react"),{className:c.className,isSelected:a.props.selectedAction===c.key,onClick:function(){return a.props.onSelectAction(c.key)},glyphClassName:c.glyphClassName,title:d?c.titleOnDisable:c.title,description:d&&c.descriptionOnDisable?c.descriptionOnDisable(a.props.pageID):c.description,key:c.key,actionType:c.key,disabled:d,pageID:a.props.pageID})})),b("React").createElement("div",{className:"_269b"},b("React").createElement(b("XUIButton.react"),{className:"_2kuz",size:"medium",label:h._("Cancel"),use:"default",disabled:this.props.isRuleEmpty,onClick:this.props.onCloseAddActionCard}),b("React").createElement(b("XUIButton.react"),{className:"_2kuz",size:"medium",label:h._("Next"),use:"confirm",disabled:!this.props.selectedAction,onClick:function(){a.props.selectedAction?a.props.onAddAction(a.props.selectedAction):null}})))))};return c}(b("React").Component);e.exports=a}),null); __d("VideoCopyrightRuleActionColumn.react",["cx","fbt","LeftRight.react","React","ReactCSSTransitionGroup","VideoCopyrightRuleActionCard.react","VideoCopyrightRuleActionItemConfig","VideoCopyrightRuleActionType","VideoCopyrightRuleAddActionButton.react","VideoCopyrightRuleAddActionCard.react","XUIButton.react","XUICard.react"],(function(a,b,c,d,e,f,g,h){__p&&__p();a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(b){b=a.call(this,b)||this;b.state={selectedAction:null};return b}var d=c.prototype;d.$1=function(a){a!==null&&this.refs[a].scrollIntoView({block:"end",behavior:"smooth"})};d.UNSAFE_componentWillReceiveProps=function(a){a.actionIndexToFocus!==this.props.actionIndexToFocus&&this.$1(a.actionIndexToFocus)};d.render=function(){var a=this,c=this.props.noCreateRuleOption!=null&&this.props.noCreateRuleOption;return b("React").createElement("div",{className:this.props.className},this.props.isViewing&&!c?b("React").createElement(b("LeftRight.react"),null,b("React").createElement("div",{className:"_3yxt"},b("React").createElement("div",{className:"_331e"},h._("Read only. Create a new version of this match rule to make changes.")),b("React").createElement(b("XUIButton.react"),{className:"_331f",onClick:this.props.onCreateNewVersion,label:h._("New Version...")}))):null,b("React").createElement(b("XUICard.react"),{className:"_2ph_",background:"highlight"},b("React").createElement("div",{className:"_4q0_"},b("React").createElement("div",{className:"_4q10"},h._("Find videos that match your reference files")),h._("This match rule will find any videos on Facebook that match content in your reference files. You can associate reference files to this match rule when you add a new reference file or by going to the Reference File tab."))),b("React").createElement(b("ReactCSSTransitionGroup"),{className:"_620b",component:"div",key:"actionCards",transitionLeaveTimeout:300,transitionEnterTimeout:400,transitionName:"actionCards"},this.props.rule.getActions().map(function(c,d){return b("React").createElement("div",{ref:c.getID(),key:c.getID()},b("React").createElement(b("VideoCopyrightRuleActionCard.react"),{actionConfig:b("VideoCopyrightRuleActionItemConfig").find(function(a){return a.key===c.getActionType()}),actionIndex:d,actionCount:a.props.rule.getActions().length,action:c,onActionUpdated:a.props.onActionUpdated,onActionDeleted:a.props.onActionDeleted,onActionMoved:a.props.onActionMoved,isAudioAsset:a.props.isAudioAsset,isMusicLabel:a.props.isMusicLabel,isViewing:a.props.isViewing,isMonetizationOnboarded:a.props.isMonetizationOnboarded,pageID:a.props.pageID}))})),b("React").createElement(b("ReactCSSTransitionGroup"),{className:"_26ui",component:"div",key:"addActionCard",transitionEnter:!1,transitionLeave:this.state.selectedAction!==null,transitionLeaveTimeout:400,transitionName:"addActionCard"},this.props.showAddActionCard&&!this.props.isViewing?b("React").createElement(b("VideoCopyrightRuleAddActionCard.react"),{key:"addActionCardContainer",onAddAction:this.props.onAddAction,isMonetizationOnboarded:this.props.isMonetizationOnboarded,pageID:this.props.pageID,onCloseAddActionCard:function(){return a.setState({selectedAction:null},a.props.onCloseAddActionCard)},isRuleEmpty:this.props.rule.isEmpty(),selectedAction:this.state.selectedAction,onSelectAction:function(b){return a.setState({selectedAction:b})}}):null),!this.props.showAddActionCard&&!this.props.isViewing?b("React").createElement(b("VideoCopyrightRuleAddActionButton.react"),{onClickAddActionButton:this.props.onClickAddActionButton}):null,b("React").createElement(b("XUICard.react"),{className:"_2ph_ _3-8y",background:"highlight"},b("React").createElement("div",{className:"_4q0_"},b("React").createElement("div",{className:"_4q10"},h._("Make sure to set up every action you want to take with matching videos")),h._("Any matching videos that don't fall under one of your selected actions in your match rule won't appear in Rights Manager."))))};return c}(b("React").Component);e.exports=a}),null); __d("VideoCopyrightRuleActionSummary.react",["cx","Image.react","React","VideoCopyrightRuleAction","VideoCopyrightRuleActionItemConfig","VideoCopyrightRuleConditionOption","VideoCopyrightRuleConditionRowConfig","VideoCopyrightRuleConditionType"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();var h=[b("VideoCopyrightRuleConditionType").GEO,b("VideoCopyrightRuleConditionType").MATCH_OVERLAP_PERCENTAGE,b("VideoCopyrightRuleConditionType").OVERLAP_DURATION,b("VideoCopyrightRuleConditionType").REFERENCE_OVERLAP_PERCENTAGE];a=function(a){var c,d=b("VideoCopyrightRuleActionItemConfig").find(function(b){return b.key===a.action.getActionType()});return b("React").createElement("div",{role:"presentation",className:"_1sip",onClick:function(){return a.onActionToFocusUpdated(a.index)}},b("React").createElement("div",null,b("React").createElement(b("Image.react"),{src:(c=d)!=null?c.summaryGlyph:c}),b("React").createElement("div",{className:"_1sir"},(c=d)!=null?c.title:c),b("React").createElement("ul",null,a.action.getConditions().filter(function(a){return Object.prototype.hasOwnProperty.call(b("VideoCopyrightRuleConditionRowConfig")[a.getConditionType()],"getSummary")}).filter(function(a){return a.getOption()===b("VideoCopyrightRuleConditionOption").WORLDWIDE.key||a.getValue()!==null&&a.getValue().length>0}).filter(function(b){var c;return!((c=a)!=null?c.isMusicLabel:c)||h.includes(b.getConditionType())}).map(function(a,c){return b("React").createElement("li",{key:c,className:"_1siv"},b("VideoCopyrightRuleConditionRowConfig")[a.getConditionType()].getSummary(a.getOption(),a.getValue()))}))))};e.exports=a}),null); __d("VideoCopyrightRuleCancelConfirmationDialog.react",["fbt","React","XUIDialog.react","XUIDialogBody.react","XUIDialogButton.react","XUIDialogFooter.react","XUIDialogTitle.react"],(function(a,b,c,d,e,f,g){"use strict";function a(a){return b("React").createElement(b("XUIDialog.react"),{shown:a.showCancelConfirmationDialog,width:400},b("React").createElement(b("XUIDialogTitle.react"),{showCloseButton:!1},g._("Are you sure you want to cancel?")),b("React").createElement(b("XUIDialogBody.react"),null,a.editing?g._("Any changes you made will be discarded."):g._("The match rule you were creating will be removed.")),b("React").createElement(b("XUIDialogFooter.react"),null,b("React").createElement(b("XUIDialogButton.react"),{label:g._("Keep Editing"),use:"default",onClick:a.onBackToEdit}),b("React").createElement(b("XUIDialogButton.react"),{label:a.editing?g._("Cancel"):g._("Discard"),use:"confirm",onClick:a.onCloseDrawer})))}e.exports=a}),null); __d("VideoCopyrightRuleDialogMainPanelFooterButtons.react",["cx","fbt","React","XUIButton.react"],(function(a,b,c,d,e,f,g,h){"use strict";function a(a){return a.isViewing?b("React").createElement("span",null,a.hideDelete?null:b("React").createElement(b("XUIButton.react"),{className:"_60os",size:"large",label:h._("Delete"),onClick:a.onDeleteButtonClick,disabled:a.copyrightsCount!==0}),b("React").createElement(b("XUIButton.react"),{className:"_60ot"+(a.hideDelete?" _85vh":""),size:"large",use:"confirm",label:h._("OK"),onClick:a.onClose})):b("React").createElement("span",null,b("React").createElement(b("XUIButton.react"),{className:"_60os",size:"large",label:h._("Cancel"),onClick:a.onClose}),b("React").createElement(b("XUIButton.react"),{className:"_60ot",size:"large",label:h._("Save"),use:"confirm",disabled:a.rule.isEmpty(),onClick:a.onSave}))}e.exports=a}),null); __d("VideoCopyrightRuleDialogMainPanelFooter.react",["cx","fbt","React","SUIBusinessTheme","SUITextInput.react","VideoCopyrightRuleDialogMainPanelFooterButtons.react"],(function(a,b,c,d,e,f,g,h){"use strict";__p&&__p();a=function(a){babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){return b("React").createElement("div",{className:"_60oo"},b("React").createElement("div",{className:"_60op"},h._("Match Rule Name")),b("React").createElement("div",{className:"_60or"},b("React").createElement(b("SUITextInput.react"),{placeholder:h._("Type a name here"),disabled:this.props.isViewing,onChange:this.props.onRuleNameChange,value:this.props.rule.getName(),theme:b("SUIBusinessTheme"),errorMessage:this.props.showErrorMessage?h._("Enter a name for the new match rule."):null})),b("React").createElement(b("VideoCopyrightRuleDialogMainPanelFooterButtons.react"),{onSave:this.props.onSave,onClose:this.props.onClose,onDeleteButtonClick:this.props.onDeleteButtonClick,rule:this.props.rule,isViewing:this.props.isViewing,copyrightsCount:this.props.copyrightsCount,hideDelete:this.props.hideDelete}))};return c}(b("React").Component);e.exports=a}),null); __d("MMRMConfirmationDialog",["fbt","DOM","FDSButton.react","FDSModal.react","FDSModalFooter.react","FDSModalHeader.react","FDSSection.react","LayerFadeOnHide","LayerHideOnEscape","React","ReactDOM"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();var h={CANCEL:g._("Cancel")},i=function(c){__p&&__p();babelHelpers.inheritsLoose(a,c);function a(){var a,d;for(var e=arguments.length,f=new Array(e),g=0;ga?b-1:b:a=this.props.rule.getActions().length-1;this.props.rule.moveActionByIndex(c,a);this.props.onActionUpdated()};d.render=function(){var a=this;return b("React").createElement("div",{className:this.props.className},b("React").createElement("div",{className:"_60vi"},i._("PLATFORMS")),b("React").createElement("div",{className:"_60vj"},i._({"*":"Actions will be applied to matches on the following platforms","_1":"Actions will be applied to matches on the following platform"},[i._plural(this.props.isInstagramMonitoringEnabled?2:1)])),b("React").createElement("div",{className:"_60vj"},b("React").createElement(b("ImageBlock.react"),{className:"_3-99",contentClassName:"_2pic",spacing:"medium"},b("React").createElement(b("Image.react"),{className:"_lu9",src:g("390904")}),b("React").createElement(b("XUIText.react"),{className:"_60vj"},i._("Facebook"))),this.props.isInstagramMonitoringEnabled?b("React").createElement(b("ImageBlock.react"),{className:"_3-99",contentClassName:"_2pic",spacing:"medium"},b("React").createElement(b("Image.react"),{className:"_lu9",src:g("358267")}),b("React").createElement(b("XUIText.react"),{className:"_60vj"},i._("Instagram"))):null),b("React").createElement("div",{className:"_60vi _3-8x"},i._("ACTIONS")),b("React").createElement("div",{className:"_60vj"},i._("Actions will be applied in the order listed")),!this.props.rule.isEmpty()&&this.state.showDraggableList?b("React").createElement("div",{className:"_1wb6"},b("React").createElement(b("BUIDraggableList.react"),{itemIDs:Object.keys(this.state.itemsByID),itemsByID:this.state.itemsByID,onRemove:b("emptyFunction"),onReorder:function(b,c){a.$2(b,c)}})):this.props.rule.getActions().map(function(c,d){return b("React").createElement(b("VideoCopyrightRuleActionSummary.react"),{action:c,key:d,index:c.getID(),isMusicLabel:a.props.isMusicLabel,onActionToFocusUpdated:a.props.onActionToFocusUpdated})}),b("React").createElement("div",{className:"_60vj"},i._("Any remaining matches will be ignored")),this.props.rule.getActions().find(function(a){return a.getActionType()===b("VideoCopyrightRuleActionType").BLOCK})?b("React").createElement("div",{className:"_38f6"},b("React").createElement(b("Image.react"),{className:"_38f7",src:g("134351")}),b("React").createElement("div",{className:"_38f8"},i._("Blocked videos will not generate Reference File Insights"))):null,!this.props.rule.isEmpty()&&!this.props.isViewing&&this.props.rule.getActions().length>1?b("React").createElement("div",{className:"_1wb7"},this.state.showDraggableList?b("React").createElement("div",{className:"_3-96"},i._("Drag to change order")):null,b("React").createElement(b("SUIButton.react"),{onClick:function(){return a.setState({showDraggableList:!a.state.showDraggableList})},theme:b("SUIBusinessTheme"),label:this.state.showDraggableList?i._("Done"):i._("Change Order")})):null)};return c}(b("React").Component);e.exports=a}),null); __d("VideoCopyrightRuleMainPanelContent.react",["cx","React","SUIBusinessTheme","SUISpinner.react","VideoCopyrightRuleActionColumn.react","VideoCopyrightRuleActionType","VideoCopyrightRuleSummaryColumn.react"],(function(a,b,c,d,e,f,g){__p&&__p();a=function(a){"use strict";babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.render=function(){return b("React").createElement("div",null,this.props.showSpinner?b("React").createElement("div",{className:"_3_bv"},b("React").createElement(b("SUISpinner.react"),{theme:b("SUIBusinessTheme")})):b("React").createElement(b("VideoCopyrightRuleActionColumn.react"),{className:"_2qyy",rule:this.props.rule,actionIndexToFocus:this.props.actionIndexToFocus,onAddAction:this.props.onAddAction,onActionUpdated:this.props.onActionUpdated,showAddActionCard:this.props.showAddActionCard,onClickAddActionButton:this.props.onClickAddActionButton,onActionDeleted:this.props.onActionDeleted,onActionMoved:this.props.onActionMoved,onCloseAddActionCard:this.props.onCloseAddActionCard,isMusicLabel:this.props.isMusicLabel,isAudioAsset:this.props.isAudioAsset,isViewing:this.props.isViewing,isMonetizationOnboarded:this.props.isMonetizationOnboarded,pageID:this.props.pageID,onCreateNewVersion:this.props.onCreateNewVersion,noCreateRuleOption:this.props.noCreateRuleOption}),b("React").createElement(b("VideoCopyrightRuleSummaryColumn.react"),{className:"_2qyz",rule:this.props.rule,onActionToFocusUpdated:this.props.onActionToFocusUpdated,onActionUpdated:this.props.onActionUpdated,isInstagramMonitoringEnabled:this.props.isInstagramMonitoringEnabled,isMusicLabel:this.props.isMusicLabel,isViewing:this.props.isViewing}))};return c}(b("React").Component);e.exports=a}),null); __d("VideoCopyrightRuleMainPanelHeader.react",["cx","fbt","PageContentTabDrawer.react","React"],(function(a,b,c,d,e,f,g,h){"use strict";function a(a){return b("React").createElement(b("PageContentTabDrawer.react").Header,{showBackButton:!1,showCloseButton:!1,className:"_26-k",onClose:a.onClose},a.isViewing?h._("Match Rule: {Match rule name}",[h._param("Match rule name",b("React").createElement("span",null,a.ruleName,b("React").createElement("span",{className:"_6ftn"},"#",a.ruleID)))]):h._("Create Match Rule"))}e.exports=a}),null); __d("XVideoCopyrightMatchRuleDataController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/video/copyright/match_rule_dialog/",{page_id:{type:"FBID",required:!0},rule_id:{type:"FBID"}})}),null); __d("VideoCopyrightRuleMainPanel.react",["cx","fbt","ActorURI","Arbiter","AsyncRequest","DOM","MatchRuleDeleteConfirmationDialog.react","MMRMConfirmationDialog","PageContentTabDrawer.react","PageContentTabVideosCopyrightRuleActions","React","ReactDOM","VideoCopyrightRule","VideoCopyrightRuleAction","VideoCopyrightRuleActionType","VideoCopyrightRuleCancelConfirmationDialog.react","VideoCopyrightRuleConditionRowConfig","VideoCopyrightRuleDialogMainPanelFooter.react","VideoCopyrightRuleMainPanelContent.react","VideoCopyrightRuleMainPanelHeader.react","VideoCopyrightRuleOverlapConditionType","XVideoCopyrightMatchRuleDataController","promiseDone"],(function(a,b,c,d,e,f,g,h){__p&&__p();var i={CONTINUE_EDITING:h._("Continue Editing"),DISCARD_CHANGES:h._("Discard Changes"),DISCARD_CHANGES_WARNING:h._("Are you sure you want to cancel? Any changes you made to your match rule will be discarded.")};a=function(a){"use strict";__p&&__p();babelHelpers.inheritsLoose(c,a);function c(c){__p&&__p();var d;d=a.call(this,c)||this;d.$2=function(){d.setState({nestedDrawerPosition:"hidden",showCancelConfirmationDialog:!1})};d.$3=function(){d.props.isViewing?d.$2():(d.setState({showCancelConfirmationDialog:!0}),d.props.isMMRM&&b("MMRMConfirmationDialog").openDialog({cancelLabel:i.CONTINUE_EDITING,title:i.DISCARD_CHANGES,body:i.DISCARD_CHANGES_WARNING,confirmationLabel:i.DISCARD_CHANGES,onConfirm:d.$2,onClose:d.$4}))};d.$4=function(){d.setState({showCancelConfirmationDialog:!1})};d.state={rule:c.rule||new(b("VideoCopyrightRule"))(),showAddActionCard:!c.ruleID&&!c.rule,nestedDrawerPosition:"hidden",actionIndexToFocus:null,showSpinner:!!c.ruleID||d.props.accessToken===null||d.props.isMonetizationOnboarded===null,copyrightsCount:0,accessToken:c.accessToken||"",isInstagramMonitoringEnabled:null,isMonetizationOnboarded:c.isMonetizationOnboarded||!1,isViewing:c.isViewing,showNameErrorMessage:!1,showCancelConfirmationDialog:!1};return d}var d=c.prototype;d.UNSAFE_componentWillMount=function(){var a=this;if(this.props.ruleID||this.props.accessToken===null||this.props.isMonetizationOnboarded===null||this.state.isInstagramMonitoringEnabled===null){var c=b("XVideoCopyrightMatchRuleDataController").getURIBuilder().setFBID("page_id",this.props.pageID).setFBID("rule_id",this.props.ruleID).getURI();c=b("ActorURI").create(c,this.props.pageID);new(b("AsyncRequest"))(c).setHandler(function(c){c&&(a.props.ruleID&&a.setState({rule:b("VideoCopyrightRule").fromAPIforNewMatchRule(c.payload.rule),copyrightsCount:c.payload.rule.copyrights_count,showSpinner:!1}),a.setState({accessToken:c.payload.access_token,isMonetizationOnboarded:!!c.payload.is_monetization_onboarded,isInstagramMonitoringEnabled:c.payload.is_instagram_monitoring_enabled,showSpinner:!1}))}).send()}};d.componentDidMount=function(){this.setState({nestedDrawerPosition:"open"})};d.$1=function(){var a=this.state.rule;a.getActions().map(function(a){a.getConditions().find(function(a){return b("VideoCopyrightRuleOverlapConditionType").includes(a.getConditionType())})||a.pushConditionByIndex(b("VideoCopyrightRuleConditionRowConfig").OVERLAP_DURATION.createCondition(),1)});var c=h._("Copy");a.setName(a.getName().toString()+" "+c.toString());this.setState({rule:a,isViewing:!1})};d.onDeleteRule=function(){var a=this.props.mmrmOnDelete;if(a!=null){a();this.$2();return}this.props.ruleID&&(b("PageContentTabVideosCopyrightRuleActions").deleteMatchRule(this.props.pageID,this.props.ruleID,this.state.accessToken),this.$2())};d.$5=function(){b("ReactDOM").render(b("React").createElement(b("MatchRuleDeleteConfirmationDialog.react"),{onDelete:this.onDeleteRule.bind(this),onCancel:function(){},postCount:this.state.copyrightsCount}),b("DOM").create("div"))};d.$6=function(a){var c=this.state.rule;c.pushAction(new(b("VideoCopyrightRuleAction"))(a,this.props.isMusicLabel?[b("VideoCopyrightRuleConditionRowConfig").GEO.createCondition(),b("VideoCopyrightRuleConditionRowConfig").OVERLAP_DURATION.createCondition()]:[b("VideoCopyrightRuleConditionRowConfig").GEO.createCondition(),b("VideoCopyrightRuleConditionRowConfig").OVERLAP_DURATION.createCondition(),b("VideoCopyrightRuleConditionRowConfig").MONITORING_TYPE.createCondition(),b("VideoCopyrightRuleConditionRowConfig").PUBLISHER_TYPE.createCondition(),b("VideoCopyrightRuleConditionRowConfig").PRIVACY.createCondition()]));this.setState({rule:c,showAddActionCard:!1})};d.$7=function(){this.setState({showAddActionCard:!0})};d.$8=function(a){var b=this.state.rule;b.setName(a);this.setState({rule:b,showNameErrorMessage:!1})};d.$9=function(){this.setState({rule:this.state.rule})};d.$10=function(a){this.setState({actionIndexToFocus:a})};d.$11=function(a){this.state.rule.removeAction(a),this.$9(),this.state.rule.isEmpty()&&this.setState({showAddActionCard:!0})};d.$12=function(a,b){a=this.state.rule.getActions().indexOf(a);b=a+b;this.state.rule.moveActionByIndex(a,b);this.$9()};d.$13=function(){var a=this;if(!this.state.rule.hasName()){this.setState({showNameErrorMessage:!0});return}b("promiseDone")(b("PageContentTabVideosCopyrightRuleActions").createMatchRule(this.props.pageID,this.state.rule.toAPIforNewMatchRule(),this.state.accessToken),function(c){b("Arbiter").inform("VideoCopyrightRule/closeDialog",c.id),a.setState({nestedDrawerPosition:"hidden"}),a.props.onCloseDialog&&a.props.onCloseDialog(),a.props.onMatchRuleCreated&&a.props.onMatchRuleCreated(c)})};d.$14=function(){this.setState({showAddActionCard:!1})};d.render=function(){var a;a=(a=this.state.isInstagramMonitoringEnabled)!=null?a:!1;return b("React").createElement("div",null,b("React").createElement(b("PageContentTabDrawer.react"),{className:"_26-i"+(this.props.isMMRM!=null&&this.props.isMMRM?" _7_tm":""),onClose:this.$2.bind(this),onClosed:this.props.onCloseDialog,hideOnBackgroundClick:this.state.isViewing,useTransparentBackground:!1,position:this.state.nestedDrawerPosition,drawerView:{header:b("React").createElement(b("VideoCopyrightRuleMainPanelHeader.react"),{onClose:this.$2,ruleName:this.state.rule.getName(),isViewing:this.props.isViewing,ruleID:this.props.ruleID}),content:b("React").createElement(b("VideoCopyrightRuleMainPanelContent.react"),{rule:this.state.rule,actionIndexToFocus:this.state.actionIndexToFocus,onAddAction:this.$6.bind(this),onActionUpdated:this.$9.bind(this),showAddActionCard:this.state.showAddActionCard,onClickAddActionButton:this.$7.bind(this),onActionDeleted:this.$11.bind(this),onActionMoved:this.$12.bind(this),onActionToFocusUpdated:this.$10.bind(this),onCloseAddActionCard:this.$14.bind(this),isMusicLabel:this.props.isMusicLabel,isAudioAsset:this.props.isAudioAsset,isViewing:this.state.isViewing,showSpinner:this.state.showSpinner,isInstagramMonitoringEnabled:a,isMonetizationOnboarded:this.state.isMonetizationOnboarded,pageID:this.props.pageID,onCreateNewVersion:this.$1.bind(this),noCreateRuleOption:this.props.noCreateRuleOption}),footer:b("React").createElement(b("VideoCopyrightRuleDialogMainPanelFooter.react"),{onSave:this.$13.bind(this),onClose:this.$3,onRuleNameChange:this.$8.bind(this),rule:this.state.rule,isViewing:this.state.isViewing,onDeleteButtonClick:this.$5.bind(this),copyrightsCount:this.state.copyrightsCount,showErrorMessage:this.state.showNameErrorMessage,hideDelete:Boolean(this.props.hideDelete)})}}),!this.props.isMMRM&&b("React").createElement(b("VideoCopyrightRuleCancelConfirmationDialog.react"),{editing:this.props.editing,showCancelConfirmationDialog:this.state.showCancelConfirmationDialog,onCloseDrawer:this.$2,onBackToEdit:this.$4}))};return c}(b("React").Component);e.exports=a}),null); __d("VideoCopyrightRuleTemplateBlankSelectDialogContent.react",["cx","fbt","React","XUIButton.react","XUIDialog.react","XUIDialogTitle.react"],(function(a,b,c,d,e,f,g,h){"use strict";a=function(a){return b("React").createElement(b("XUIDialog.react"),{width:502,shown:!a.showMainPanel},b("React").createElement(b("XUIDialogTitle.react"),null,h._("Create Match Rule")),b("React").createElement("div",{className:"_4ynh"},h._("Select one to get started")),b("React").createElement("div",{className:"_4yni"},b("React").createElement("div",{className:"_4ynj"+(a.isTemplateSelected?" _4ynk":""),onClick:a.handleClickTemplate,role:"presentation"},b("React").createElement("div",{className:"_4ynl"},b("React").createElement("div",{className:"_2lxv"})),b("React").createElement("div",{className:"_4ynm"},h._("Template")),b("React").createElement("div",{className:"_4ynn"},h._("Get started with a sample match rule that you can edit."))),b("React").createElement("div",{className:"_4yno"+(a.isTemplateSelected?"":" _4ynk"),onClick:a.handleClickBlank,role:"presentation"},b("React").createElement("div",{className:"_4ynl"},b("React").createElement("div",{className:"_2lxy"})),b("React").createElement("div",{className:"_4ynm"},h._("Blank")),b("React").createElement("div",{className:"_4ynn"},h._("Set up a match rule without any pre-filled actions.")))),b("React").createElement("div",{className:"_4ynp"},h._("Match rules detect videos containing content you own the rights to and allow you to take actions on them automatically.")),b("React").createElement("div",{className:"_3eyy"},b("React").createElement("div",{className:"_3eyz"},b("React").createElement(b("XUIButton.react"),{size:"large",label:h._("Cancel"),className:"_4ynq",onClick:a.onClickCancelButton}),b("React").createElement(b("XUIButton.react"),{size:"large",label:h._("Next"),use:"confirm",className:"_4ynq",onClick:a.onClickNextButton}))))};e.exports=a}),null); __d("VideoCopyrightRuleTemplateBlankSelectDialog",["React","ReactDOM","VideoCopyrightRule","VideoCopyrightRuleAction","VideoCopyrightRuleActionType","VideoCopyrightRuleConditionRowConfig","VideoCopyrightRuleMainPanel.react","VideoCopyrightRuleTemplateBlankSelectDialogContent.react","XUIDialog.react"],(function(a,b,c,d,e,f){__p&&__p();var g=function(c){"use strict";__p&&__p();babelHelpers.inheritsLoose(a,c);function a(a){a=c.call(this,a)||this;a.state={isTemplateSelected:!0,showMainPanel:!1,rule:null};a.$1=a.$1.bind(babelHelpers.assertThisInitialized(a));a.$2=a.$2.bind(babelHelpers.assertThisInitialized(a));a.$3=a.$3.bind(babelHelpers.assertThisInitialized(a));a.$4=a.$4.bind(babelHelpers.assertThisInitialized(a));return a}var d=a.prototype;d.$1=function(){this.setState({isTemplateSelected:!0})};d.$2=function(){this.setState({isTemplateSelected:!1})};d.$4=function(){h.hide()};d.$5=function(a){return new(b("VideoCopyrightRuleAction"))(a,[b("VideoCopyrightRuleConditionRowConfig").GEO.createCondition(),b("VideoCopyrightRuleConditionRowConfig").OVERLAP_DURATION.createConditionForTemplate(a),b("VideoCopyrightRuleConditionRowConfig").MONITORING_TYPE.createCondition(),b("VideoCopyrightRuleConditionRowConfig").PUBLISHER_TYPE.createCondition(),b("VideoCopyrightRuleConditionRowConfig").PRIVACY.createCondition()])};d.$3=function(){var a=null;if(this.state.isTemplateSelected){var c=[this.$5(b("VideoCopyrightRuleActionType").BLOCK),this.$5(b("VideoCopyrightRuleActionType").TRACK),this.$5(b("VideoCopyrightRuleActionType").MANUAL_REVIEW)];this.props.isMonetizationOnboarded&&(c=[this.$5(b("VideoCopyrightRuleActionType").MONETIZE)].concat(c));a=new(b("VideoCopyrightRule"))(c)}this.setState({showMainPanel:!0,rule:a})};d.render=function(){return b("React").createElement("div",null,b("React").createElement(b("VideoCopyrightRuleTemplateBlankSelectDialogContent.react"),{isTemplateSelected:this.state.isTemplateSelected,handleClickTemplate:this.$1,handleClickBlank:this.$2,onClickCancelButton:this.$4,onClickNextButton:this.$3,showMainPanel:this.state.showMainPanel}),this.state.showMainPanel?b("React").createElement(b("XUIDialog.react"),{width:0,shown:!0,titleID:"main panel"},b("React").createElement(b("VideoCopyrightRuleMainPanel.react"),{pageID:this.props.pageID,rule:this.state.rule,accessToken:this.props.accessToken,isMMRM:this.props.isMMRM!=null&&this.props.isMMRM,isViewing:!1,onCloseDialog:this.$4,isMonetizationOnboarded:this.props.isMonetizationOnboarded,onMatchRuleCreated:this.props.onMatchRuleCreated})):null)};return a}(b("React").Component),h={show:function(a,c,d,e,f){d===void 0&&(d=null),this._container=document.createElement("div"),b("ReactDOM").render(b("React").createElement(g,{pageID:a,accessToken:c,isMMRM:f,isMonetizationOnboarded:d,onMatchRuleCreated:e}),this._container)},hide:function(){if(!this._container)return;this.destroy()},destroy:function(){b("ReactDOM").unmountComponentAtNode(this._container),this._container=null}};e.exports=h}),null); __d("SUIMediaManagerTheme",["ix","cssVar","cx","FlexLayout.react","Image.react","React","SUIAudiencePlatformTheme","SUIBusinessTheme","SUIMeasurementTheme","SUITheme","SUITypeStyle","asset"],(function(a,b,c,d,e,f,g,h,i){"use strict";a={white:"#FFFFFF",cellBorder:"#dddfe2"};c="-apple-system, BlinkMacSystemFont, Arial, sans-serif";d=babelHelpers["extends"]({},b("SUIAudiencePlatformTheme"),b("SUIBusinessTheme"),{SUIButton:babelHelpers["extends"]({},b("SUIBusinessTheme").SUIButton,{typeStyle:babelHelpers["extends"]({},b("SUIBusinessTheme").SUIButton.typeStyle,{fontSize:"13px"})}),SUIText:babelHelpers["extends"]({},b("SUIBusinessTheme").SUIText,{display:{fontFamily:c,fontSize:40,lineHeight:48},header1:{fontFamily:c,fontSize:36,lineHeight:40},header2:{fontFamily:c,fontSize:28,lineHeight:32},header3:{fontFamily:c,fontSize:24,lineHeight:28},header4:{fontFamily:c,fontSize:18,lineHeight:22}}),SUITableDEPRECATED:babelHelpers["extends"]({},b("SUIMeasurementTheme").SUITableDEPRECATED,{colors:babelHelpers["extends"]({},b("SUIMeasurementTheme").SUITableDEPRECATED.colors,{rowBackground:a.white,headingBackground:a.white,cellBorder:a.cellBorder,headingRule:a.cellBorder,cellHoverBackground:"rgba(235, 236, 237, 0.2)",cellSelectedBackground:"rgba(203, 226, 249, 0.2)",cellSelectedHoverBackground:"rgba(170, 201, 255, 0.15)"})}),SUITable:babelHelpers["extends"]({},b("SUIMeasurementTheme").SUITable,{colors:babelHelpers["extends"]({},b("SUIMeasurementTheme").SUITable.colors,{bodyTopAndBottomBorder:a.cellBorder,border:a.cellBorder,hoverBackground:"rgba(235, 236, 237, 0.2)",selectedRow:"rgba(203, 226, 249, 0.2)",highlightedRow:"rgba(245, 246, 247, 0.4)"})}),SUITabGroup:babelHelpers["extends"]({},b("SUIBusinessTheme").SUITabGroup,{dividerColor:void 0}),SUITabItem:babelHelpers["extends"]({},b("SUIBusinessTheme").SUITabItem,{activeBorderBottomColor:"#1877F2",activeTypeStyle:new(b("SUITypeStyle"))({color:"#1877F2",fontFamily:c,fontSize:"14px"}),typeStyle:new(b("SUITypeStyle"))({color:"#606770",fontFamily:c,fontSize:"14px"}),hoverBorderBottomColor:"#CCD0D5"}),SUICard:babelHelpers["extends"]({},b("SUIBusinessTheme").SUICard,{body:babelHelpers["extends"]({},b("SUIBusinessTheme").SUICard.body),borderRadius:"12px"}),SUILayerHeader:babelHelpers["extends"]({},b("SUIBusinessTheme").SUILayerHeader,{backgroundColor:"#F5F6F7"}),SUIInlineNux:babelHelpers["extends"]({},b("SUIBusinessTheme").SUIInlineNux,{icon:b("React").createElement(b("Image.react"),{className:"_4gza",src:g("550428")})}),SUIRadioList:babelHelpers["extends"]({},b("SUIBusinessTheme").SUIRadioList,{activeBorderColor:"#8D949E",backgroundColor:"transparent",borderColor:"#8D949E",selectedBorderColor:"#3578E5",selectedDotColor:"#3578E5"}),SUISearchInput:babelHelpers["extends"]({},b("SUIBusinessTheme").SUISearchInput,{searchIcon:b("React").createElement(b("FlexLayout.react"),{className:"_2pis"},b("React").createElement(b("Image.react"),{src:g("492647")}))}),SUINotice:babelHelpers["extends"]({},b("SUIBusinessTheme").SUINotice),SUIPopover:babelHelpers["extends"]({},b("SUIBusinessTheme").SUIPopover,{boxShadow:"0 20px 90px -20px rgba(0,0,0,0.2), 0 0 #a2a9b1"})});e.exports=new(b("SUITheme"))({id:"media-manager",components:d})}),null); __d("GeoblockingTranslationUtils",["CountryNamesConfig"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("CountryNamesConfig").codeToName;function h(a,b){var c=null;for(var d in a)if(d===b)return a[d];return c}function a(a){var b="";a.map(function(c,d){b+=h(g,c)||c,a!=null&&d+1!==a.length&&(b+=", ")});return b}e.exports={isObjIn:h,getCountryList:a}}),null); __d("VideoWithSpacePlayPause",["Event","Run"],(function(a,b,c,d,e,f){__p&&__p();var g=32;a=function(){"use strict";__p&&__p();function a(a){this.$1=a;var c=b("Event").listen(window,"keypress",this.$2.bind(this));b("Run").onLeave(function(){return c.remove()})}var c=a.prototype;c.$2=function(a){this.$1.isFullscreen()&&a.charCode==g&&(this.$1.isState("playing")?this.$1.pause("user_initiated"):this.$1.play("user_initiated"))};return a}();e.exports=a}),null); __d("VideoComponentWithSpacePlayPause.react",["React","VideoComponent","VideoWithSpacePlayPause"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(a){__p&&__p();babelHelpers.inheritsLoose(c,a);function c(){return a.apply(this,arguments)||this}var d=c.prototype;d.enable=function(a){new(b("VideoWithSpacePlayPause"))(a)};d.disable=function(){};d.render=function(){return null};return c}(b("React").Component);e.exports=b("VideoComponent").createContainer(a)}),null); __d("WoodhengeCreatorOnboardingActionTypes",["keyMirror"],(function(a,b,c,d,e,f){"use strict";a=b("keyMirror")({ADD_STICKERS:"",CROSSPOST_FAILED:"",CROSSPOST_FINISHED:"",EDIT_STICKERS:"",LOAD_STICKERS_DATA_FAILURE:"",LOAD_STICKERS_DATA_SUCCESS:"",INITIALIZE_PROMO_VIDEO_UPLOADER:"",INITIALIZE_THANK_YOU_VIDEO_UPLOADER:"",INITIALIZE:"",METADATA_LOADED_FROM_PROMO_VIDEO_UPLOADER:"",METADATA_LOADED_FROM_THANK_YOU_VIDEO_UPLOADER:"",PROMO_FILE_ADDED:"",PROMO_POST_FAILED:"",PROMO_POST_FINISHED:"",PROMO_UPLOAD_FAILED:"",PROMO_UPLOAD_FINISHED:"",PROMO_UPLOAD_PROGRESSED:"",REMOVE_STICKER:"",SET_ACCEPT_TOS:"",SET_BENEFITS:"",SET_BENEFIT_TYPES:"",SET_BENEFIT_DESCRIPTIONS:"",SET_BENEFITS_DATA:"",SET_CHOSEN_PRICE:"",SET_CREATOR_STATUS:"",SET_HAS_SUBMISSION_ERROR:"",SET_IN_ONBOARDING_STEP:"",SET_IS_SUBMITTING:"",SET_PRIVACY_POLICY_URL:"",SET_COVER_STICKER:"",SET_CUSTOM_TITLE:"",SET_CUSTOM_MESSAGE:"",SET_SHOW_BENEFITS_EDITOR:"",SET_SHOW_PREVIEW_SUBSCRIPTION:"",SET_SHOW_STICKER_UPLOADER:"",SET_SHOW_SUBMISSION_CONFIRMATION:"",SET_SHOW_VIDEO_EDITOR_EXIT_CONFIRM_DIALOG:"",SET_SHOW_VIDEO_EDITOR:"",SET_STICKER_UPLOADING_STEP:"",SET_SUBMITTED_VIDEO_ID:"",SET_THANK_YOU_MESSAGE:"",SUBMIT_STICKERS:"",SUBMIT_STICKERS_SUCCESS:"",SUBMIT_STICKERS_FAILURE:"",THANK_YOU_FILE_ADDED:"",THANK_YOU_POST_FAILED:"",THANK_YOU_POST_FINISHED:"",THANK_YOU_UPLOAD_FAILED:"",THANK_YOU_UPLOAD_FINISHED:"",THANK_YOU_UPLOAD_PROGRESSED:"",VALIDATE_STICKERS_FAILURE:"",VALIDATE_STICKERS_SUCCESS:""});e.exports=a}),null); __d("WoodhengeCreatorOnboardingDispatcher",["ExplicitRegistrationReactDispatcher"],(function(a,b,c,d,e,f){"use strict";e.exports=new(b("ExplicitRegistrationReactDispatcher"))({strict:!0})}),null); __d("WoodhengeCreatorOnboardingActions",["VideoUploadProgressBar","WoodhengeCreatorOnboardingActionTypes","WoodhengeCreatorOnboardingAPIUtils","WoodhengeCreatorOnboardingDispatcher"],(function(a,b,c,d,e,f){"use strict";__p&&__p();a=function(a,c){b("WoodhengeCreatorOnboardingDispatcher").dispatch({type:b("WoodhengeCreatorOnboardingActionTypes").CROSSPOST_FAILED,error:a,pageID:c})};c=function(a){b("WoodhengeCreatorOnboardingDispatcher").dispatch({type:b("WoodhengeCreatorOnboardingActionTypes").CROSSPOST_FINISHED,pageID:a})};d=function(a){b("WoodhengeCreatorOnboardingAPIUtils").getAdminedPagesOnboardingInfo(function(c){b("WoodhengeCreatorOnboardingDispatcher").dispatch({type:b("WoodhengeCreatorOnboardingActionTypes").INITIALIZE,adminedPages:c,selectedPageID:a})})};f=function(a){b("WoodhengeCreatorOnboardingDispatcher").dispatch({type:b("WoodhengeCreatorOnboardingActionTypes").INITIALIZE_PROMO_VIDEO_UPLOADER,videoUploader:a})};var g=function(a){b("WoodhengeCreatorOnboardingDispatcher").dispatch({type:b("WoodhengeCreatorOnboardingActionTypes").INITIALIZE_THANK_YOU_VIDEO_UPLOADER,videoUploader:a})},h=function(a){b("WoodhengeCreatorOnboardingDispatcher").dispatch({type:b("WoodhengeCreatorOnboardingActionTypes").METADATA_LOADED_FROM_PROMO_VIDEO_UPLOADER,data:a})},i=function(a){b("WoodhengeCreatorOnboardingDispatcher").dispatch({type:b("WoodhengeCreatorOnboardingActionTypes").METADATA_LOADED_FROM_THANK_YOU_VIDEO_UPLOADER,data:a})},j=function(a,c){b("WoodhengeCreatorOnboardingDispatcher").dispatch({type:b("WoodhengeCreatorOnboardingActionTypes").PROMO_FILE_ADDED,file:a,fileInput:c})},k=function(a,c){b("WoodhengeCreatorOnboardingDispatcher").dispatch({type:b("WoodhengeCreatorOnboardingActionTypes").PROMO_POST_FAILED,errorMessage:c.error_summary+": "+c.error_description})},l=function(a,c){b("WoodhengeCreatorOnboardingDispatcher").dispatch({type:b("WoodhengeCreatorOnboardingActionTypes").PROMO_POST_FINISHED,data:c})},m=function(a){b("WoodhengeCreatorOnboardingDispatcher").dispatch({type:b("WoodhengeCreatorOnboardingActionTypes").PROMO_UPLOAD_FAILED,errorData:a})},n=function(a){b("WoodhengeCreatorOnboardingDispatcher").dispatch({type:b("WoodhengeCreatorOnboardingActionTypes").PROMO_UPLOAD_FINISHED,data:a})},o=function(a,c){a=b("VideoUploadProgressBar").computeProgress(c.start_offset,c.sent_bytes,c.file_size,0,0);b("WoodhengeCreatorOnboardingDispatcher").dispatch({type:b("WoodhengeCreatorOnboardingActionTypes").PROMO_UPLOAD_PROGRESSED,progress:Math.round(10*a)/10})},p=function(a){b("WoodhengeCreatorOnboardingDispatcher").dispatch({type:b("WoodhengeCreatorOnboardingActionTypes").SET_BENEFITS,benefits:a})},q=function(a){b("WoodhengeCreatorOnboardingDispatcher").dispatch({type:b("WoodhengeCreatorOnboardingActionTypes").SET_CHOSEN_PRICE,chosenPrice:a})},r=function(a){b("WoodhengeCreatorOnboardingDispatcher").dispatch({type:b("WoodhengeCreatorOnboardingActionTypes").SET_CREATOR_STATUS,creatorStatus:a})},s=function(a){b("WoodhengeCreatorOnboardingDispatcher").dispatch({type:b("WoodhengeCreatorOnboardingActionTypes").SET_PRIVACY_POLICY_URL,privacyPolicyURL:a})},t=function(a){b("WoodhengeCreatorOnboardingDispatcher").dispatch({type:b("WoodhengeCreatorOnboardingActionTypes").SET_CUSTOM_TITLE,customTitle:a})},u=function(a){b("WoodhengeCreatorOnboardingDispatcher").dispatch({type:b("WoodhengeCreatorOnboardingActionTypes").SET_CUSTOM_MESSAGE,customMessage:a})},v=function(a){b("WoodhengeCreatorOnboardingDispatcher").dispatch({type:b("WoodhengeCreatorOnboardingActionTypes").SET_IN_ONBOARDING_STEP,step:a})},w=function(a){b("WoodhengeCreatorOnboardingDispatcher").dispatch({type:b("WoodhengeCreatorOnboardingActionTypes").SET_IS_SUBMITTING,isSubmitting:a})},x=function(a){b("WoodhengeCreatorOnboardingDispatcher").dispatch({type:b("WoodhengeCreatorOnboardingActionTypes").SET_SHOW_BENEFITS_EDITOR,showBenefitsEditor:a})},y=function(a){b("WoodhengeCreatorOnboardingDispatcher").dispatch({type:b("WoodhengeCreatorOnboardingActionTypes").SET_SHOW_SUBMISSION_CONFIRMATION,showSubmissionConfirmation:a})},z=function(a){b("WoodhengeCreatorOnboardingDispatcher").dispatch({type:b("WoodhengeCreatorOnboardingActionTypes").SET_SHOW_PREVIEW_SUBSCRIPTION,showPreviewSubscription:a})},A=function(a){b("WoodhengeCreatorOnboardingDispatcher").dispatch({type:b("WoodhengeCreatorOnboardingActionTypes").SET_SHOW_VIDEO_EDITOR,showVideoEditor:a})},B=function(a){b("WoodhengeCreatorOnboardingDispatcher").dispatch({type:b("WoodhengeCreatorOnboardingActionTypes").SET_SHOW_STICKER_UPLOADER,showStickerUploader:a})},C=function(a){b("WoodhengeCreatorOnboardingDispatcher").dispatch({type:b("WoodhengeCreatorOnboardingActionTypes").SET_SHOW_VIDEO_EDITOR_EXIT_CONFIRM_DIALOG,showVideoEditorExitConfirmDialog:a})},D=function(a){b("WoodhengeCreatorOnboardingDispatcher").dispatch({type:b("WoodhengeCreatorOnboardingActionTypes").SET_HAS_SUBMISSION_ERROR,hasSubmissionError:a})},E=function(a,c){b("WoodhengeCreatorOnboardingDispatcher").dispatch({type:b("WoodhengeCreatorOnboardingActionTypes").SET_SUBMITTED_VIDEO_ID,submittedPromoVideoID:a,submittedThankYouVideoID:c})},F=function(a){b("WoodhengeCreatorOnboardingDispatcher").dispatch({type:b("WoodhengeCreatorOnboardingActionTypes").SET_THANK_YOU_MESSAGE,thankYouMessage:a})},G=function(a,c){b("WoodhengeCreatorOnboardingDispatcher").dispatch({type:b("WoodhengeCreatorOnboardingActionTypes").THANK_YOU_FILE_ADDED,file:a,fileInput:c})},H=function(a,c){b("WoodhengeCreatorOnboardingDispatcher").dispatch({type:b("WoodhengeCreatorOnboardingActionTypes").THANK_YOU_POST_FAILED,errorMessage:c.error_summary+": "+c.error_description})},I=function(a,c){b("WoodhengeCreatorOnboardingDispatcher").dispatch({type:b("WoodhengeCreatorOnboardingActionTypes").THANK_YOU_POST_FINISHED,data:c})},J=function(a){b("WoodhengeCreatorOnboardingDispatcher").dispatch({type:b("WoodhengeCreatorOnboardingActionTypes").THANK_YOU_UPLOAD_FAILED,errorData:a})},K=function(a){b("WoodhengeCreatorOnboardingDispatcher").dispatch({type:b("WoodhengeCreatorOnboardingActionTypes").THANK_YOU_UPLOAD_FINISHED,data:a})},L=function(a,c){a=b("VideoUploadProgressBar").computeProgress(c.start_offset,c.sent_bytes,c.file_size,0,0);b("WoodhengeCreatorOnboardingDispatcher").dispatch({type:b("WoodhengeCreatorOnboardingActionTypes").THANK_YOU_UPLOAD_PROGRESSED,progress:Math.round(10*a)/10})},M=function(a,c){b("WoodhengeCreatorOnboardingDispatcher").dispatch({files:c,pageID:a,type:b("WoodhengeCreatorOnboardingActionTypes").ADD_STICKERS})},N=function(a,c){b("WoodhengeCreatorOnboardingDispatcher").dispatch({pageID:a,name:c,type:b("WoodhengeCreatorOnboardingActionTypes").REMOVE_STICKER})},O=function(a,c){b("WoodhengeCreatorOnboardingDispatcher").dispatch({stickerData:c,pageID:a,type:b("WoodhengeCreatorOnboardingActionTypes").VALIDATE_STICKERS_SUCCESS})},P=function(a){b("WoodhengeCreatorOnboardingDispatcher").dispatch({pageID:a,type:b("WoodhengeCreatorOnboardingActionTypes").VALIDATE_STICKERS_FAILURE})},Q=function(a,c){b("WoodhengeCreatorOnboardingDispatcher").dispatch({step:c,pageID:a,type:b("WoodhengeCreatorOnboardingActionTypes").SET_STICKER_UPLOADING_STEP})},R=function(a,c){b("WoodhengeCreatorOnboardingDispatcher").dispatch({isAccepted:c,pageID:a,type:b("WoodhengeCreatorOnboardingActionTypes").SET_ACCEPT_TOS})},S=function(a,c){b("WoodhengeCreatorOnboardingDispatcher").dispatch({coverSticker:c,pageID:a,type:b("WoodhengeCreatorOnboardingActionTypes").SET_COVER_STICKER})},T=function(a){b("WoodhengeCreatorOnboardingDispatcher").dispatch({pageID:a,type:b("WoodhengeCreatorOnboardingActionTypes").SUBMIT_STICKERS})},U=function(a){b("WoodhengeCreatorOnboardingDispatcher").dispatch({pageID:a,type:b("WoodhengeCreatorOnboardingActionTypes").SUBMIT_STICKERS_SUCCESS})},V=function(a){b("WoodhengeCreatorOnboardingDispatcher").dispatch({pageID:a,type:b("WoodhengeCreatorOnboardingActionTypes").SUBMIT_STICKERS_FAILURE})},W=function(a){b("WoodhengeCreatorOnboardingDispatcher").dispatch({pageID:a,type:b("WoodhengeCreatorOnboardingActionTypes").LOAD_STICKERS_DATA_FAILURE})},X=function(a,c){b("WoodhengeCreatorOnboardingDispatcher").dispatch({pageID:a,data:c,type:b("WoodhengeCreatorOnboardingActionTypes").LOAD_STICKERS_DATA_SUCCESS})},Y=function(a){b("WoodhengeCreatorOnboardingDispatcher").dispatch({pageID:a,type:b("WoodhengeCreatorOnboardingActionTypes").EDIT_STICKERS})};e.exports={addStickers:M,crosspostFailed:a,crosspostFinished:c,editStickers:Y,initialize:d,initializePromoVideoUploader:f,initializeThankYouVideoUploader:g,loadStickersDataFailure:W,loadStickersDataSuccess:X,metadataLoadedFromPromoVideoUploader:h,metadataLoadedFromThankYouVideoUploader:i,promoFileAdded:j,promoPostFailed:k,promoPostFinished:l,promoUploadFailed:m,promoUploadFinished:n,promoUploadProgressed:o,removeSticker:N,setAcceptTOS:R,setBenefits:p,setChosenPrice:q,setCoverSticker:S,setCreatorStatus:r,setCustomMessage:u,setCustomTitle:t,setHasSubmissionError:D,setInOnboardingStep:v,setIsSubmitting:w,setPrivacyPolicyURL:s,setShowBenefitsEditor:x,setShowPreviewSubscription:z,setShowStickerUploader:B,setShowSubmissionConfirmation:y,setShowVideoEditor:A,setShowVideoEditorExitConfirmDialog:C,setStickerUploadingStep:Q,setSubmittedVideoID:E,setThankYouMessage:F,submitStickers:T,submitStickersFailure:V,submitStickersSuccess:U,thankYouFileAdded:G,thankYouPostFailed:H,thankYouPostFinished:I,thankYouUploadFailed:J,thankYouUploadFinished:K,thankYouUploadProgressed:L,validateStickersFailure:P,validateStickersSuccess:O}}),null); __d("FanFundingPricingMatrixTier",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({USD_0_99:"USD 0.99",USD_1_99:"USD 1.99",USD_2_99:"USD 2.99",USD_4_99:"USD 4.99",USD_9_99:"USD 9.99",USD_19_99:"USD 19.99",USD_49_99:"USD 49.99",USD_99_99:"USD 99.99",BRL_9_90:"BRL 9,90"})}),null); __d("WoodhengeCreatorStatus",[],(function(a,b,c,d,e,f){e.exports=Object.freeze({CANDIDATE:"candidate",READY_TO_ONBOARD:"ready_to_onboard",ONBOARD_STARTED:"onboard_started",TOS_ACCEPTED:"tos_accpeted",PAYOUT_SETUP:"payout_setup",BENEFITS_SETUP:"benefits_setup",ASSETS_SETUP:"assets_setup",UNDER_REVIEW:"under_review",REJECTED:"rejected",APPROVED:"approved",LIVE:"live",DEMONETIZED:"demonetized",INELIGIBLE:"ineligible"})}),null); __d("WoodhengeCreatorOnboardingConstants",["keyMirror","WoodhengeCreatorStatus"],(function(a,b,c,d,e,f){"use strict";a=b("keyMirror")({LANDING:"",SET_UP:"",POST_SET_UP:"",POST_LANDING:""});c=b("keyMirror")({UPLOADING:"",SUBMITTING:"",SUBMITTED:"",REJECTED:"",ACCEPTED:""});e.exports={WoodhengeCreatorStickerUploaderStep:c,WoodhengeCreatorInOnboardingStep:a,WoodhengeCreatorStatus:b("keyMirror")(b("WoodhengeCreatorStatus"))}}),null); __d("WoodhengeViewerAdminedPagesOnboardingInfoQueryWebGraphQLQuery",["WebGraphQLQueryBase"],(function(a,b,c,d,e,f){"use strict";__p&&__p();e.exports=function(a){babelHelpers.inheritsLoose(b,a);function b(){return a.apply(this,arguments)||this}b.__getDocID=function(){return"3008817282525224"};b.getQueryID=function(){return"423299928276412"};return b}(b("WebGraphQLQueryBase"))}),null); __d("XFanSubscriptionsBenefitSetupController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/fan_subscriptions/benefit_setup/",{page_id:{type:"FBID"},benefit_types:{type:"StringVector"},benefit_descriptions:{type:"StringVector"},price_tier:{type:"Enum",enumType:1},privacy_policy_url:{type:"String"},custom_title:{type:"String"},custom_message:{type:"String"},onboarding_surface:{type:"Enum",enumType:1},group_name:{type:"String"}})}),null); __d("XNewVideoPostFromVideoAssetController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/video/post_from_asset/",{video_asset_id:{type:"Int"},source:{type:"Enum",enumType:1},video_id:{type:"Int"},source_page_id:{type:"Int"},__asyncDialog:{type:"Int"}})}),null); __d("XPaymentSubscriptionConsiderationAsyncController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/paymentsubscriptions/async/create_consideration_page/",{owner_id:{type:"FBID"},cover_video_id:{type:"FBID"},onboarding_surface:{type:"Enum",enumType:1}})}),null); __d("XPaymentSubscriptionCreateOrUpdateConfirmationPageAsyncController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/paymentsubscriptions/async/create_confirmation_page/",{owner_id:{type:"FBID"},cover_video_id:{type:"FBID"},welcome_title:{type:"String"},onboarding_surface:{type:"Enum",enumType:1}})}),null); __d("XPaymentSubscriptionGoLiveAsyncController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/paymentsubscriptions/async/go_live/",{page_id:{type:"FBID",required:!0},onboarding_surface:{type:"Enum",enumType:1}})}),null); __d("XPaymentSubscriptionSubmissionValidationController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/paymentsubscriptions/assets/submit/",{page_id:{type:"FBID"},privacy_policy_url:{type:"String"},is_auto_live_selected:{type:"Bool",defaultValue:!1},onboarding_surface:{type:"Enum",enumType:1},auto_approve_test_page:{type:"Bool",defaultValue:!0}})}),null); __d("XWoodhengeSignupPermlinkController",["XController"],(function(a,b,c,d,e,f){e.exports=b("XController").create("/becomesupporter/{page_token}/",{page_token:{type:"String",required:!0},business_id:{type:"Int"},surface:{type:"String"},entrypoint_surface:{type:"String"},auto_redirect:{type:"Bool",defaultValue:!0},post_id:{type:"String"}})}),null); __d("WoodhengeCreatorOnboardingAPIUtils",["ActorURI","AsyncDialog","AsyncRequest","FanFundingPricingMatrixTier","HubbleConstants","WebGraphQL","WoodhengeCreatorOnboardingActions","WoodhengeCreatorOnboardingConstants","WoodhengeCreatorOnboardingUtils","WoodhengeViewerAdminedPagesOnboardingInfoQueryWebGraphQLQuery","XFanSubscriptionsBenefitSetupController","XNewVideoPostFromVideoAssetController","XPagesManagerInsightsController","XPaymentSubscriptionConsiderationAsyncController","XPaymentSubscriptionCreateOrUpdateConfirmationPageAsyncController","XPaymentSubscriptionGoLiveAsyncController","XPaymentSubscriptionSubmissionValidationController","XWoodhengeSignupPermlinkController","promiseDone"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=b("WoodhengeCreatorOnboardingConstants").WoodhengeCreatorStatus,h=b("WoodhengeCreatorOnboardingUtils").generateBenefitTypesArray,i=b("WoodhengeCreatorOnboardingUtils").generateDescriptionArray,j="POST";a=function(a){b("promiseDone")(b("WebGraphQL").exec(new(b("WoodhengeViewerAdminedPagesOnboardingInfoQueryWebGraphQLQuery"))({})),function(b){b=(b==null?void 0:(b=b.viewer)==null?void 0:(b=b.admined_pages)==null?void 0:b.edges)||[];b=b.map(function(a){return a.node});a(b)})};c=function(a,c){var d="video_upload";a=b("XNewVideoPostFromVideoAssetController").getURIBuilder().setInt("video_id",a).setEnum("source",d).getURI();d=b("ActorURI").create(a,c);b("AsyncDialog").send(new(b("AsyncRequest"))(d))};d=function(a){return b("XWoodhengeSignupPermlinkController").getURIBuilder().setString("page_token",a).getURI().setDomain("www.facebook.com").setProtocol("https").toString()};f=function(a){return b("XPagesManagerInsightsController").getURIBuilder().setString("page_token",a).setString("section",b("HubbleConstants").NAV_SECTIONS.SUPPORTERS).setString("referrer","creator_studio").getURI().toString()};var k=function(a,c,d,e){var f=function(){b("WoodhengeCreatorOnboardingActions").setCreatorStatus(g.LIVE),b("WoodhengeCreatorOnboardingActions").setIsSubmitting(!1)},h=function(){b("WoodhengeCreatorOnboardingActions").setIsSubmitting(!1)};e=b("XPaymentSubscriptionGoLiveAsyncController").getURIBuilder().setFBID("page_id",d).setEnum("onboarding_surface",(d=e)!=null?d:"creator_studio").getURI();new(b("AsyncRequest"))().setURI(e).setHandler(c!=null?c:f).setErrorHandler(function(b){return a!=null?a():h()}).setMethod("POST").send()},l=function(a,c,d,e,f,g){__p&&__p();var k;f=b("XFanSubscriptionsBenefitSetupController").getURIBuilder().setFBID("page_id",String(f));k=(k=a.GROUP)==null?void 0:(k=k.extra_data)==null?void 0:k.group_name;var l=h(a);a=i(a);f=f.setStringVector("benefit_types",l).setStringVector("benefit_descriptions",a).setString("group_name",k).setEnum("price_tier",b("FanFundingPricingMatrixTier")[c]).setEnum("onboarding_surface","creator_studio");g!=null&&f.setString("privacy_policy_url",g.privacyPolicyURL).setString("custom_title",g.customTitle).setString("custom_message",g.customMessage);l=f.getURI();new(b("AsyncRequest"))().setURI(l).setMethod(j).setHandler(e).setErrorHandler(function(a){return d()}).send()},m=function(a,c,d){c=b("XPaymentSubscriptionConsiderationAsyncController").getURIBuilder().setFBID("owner_id",c).setFBID("cover_video_id",d).setEnum("onboarding_surface","creator_studio").getURI();new(b("AsyncRequest"))().setURI(c).setMethod(j).setHandler(a).send()},n=function(a,c,d,e){c=b("XPaymentSubscriptionCreateOrUpdateConfirmationPageAsyncController").getURIBuilder().setFBID("owner_id",c).setFBID("cover_video_id",e).setString("welcome_title",d.toString()).setEnum("onboarding_surface","creator_studio").getURI();new(b("AsyncRequest"))().setURI(c).setMethod(j).setHandler(a).send()},o=function(a,c,d,e){d=b("XPaymentSubscriptionSubmissionValidationController").getURIBuilder().setFBID("page_id",String(d)).setEnum("onboarding_surface","creator_studio").setBool("is_auto_live_selected",e).getURI();new(b("AsyncRequest"))().setURI(d).setMethod(j).setHandler(a).setErrorHandler(function(a){return c()}).send()};e.exports={completeSubmission:o,getAdminedPagesOnboardingInfo:a,getBecomeSupporterLink:d,getPromoPostDialog:c,getInsightsLink:f,setCreatorLive:k,submitBenefits:l,submitPromoVideo:m,submitThankYouVideo:n}}),null); __d("WoodhengeCreatorOnboardingAssets",["ix","asset"],(function(a,b,c,d,e,f,g){"use strict";a={PITCH_VIDEO_BACKGROUND:g("625359"),PROMO_VIDEO_BACKGROUND:g("791297"),THANK_YOU_VIDEO_BACKGROUND:g("791302"),PROMO_VIDEO_ACTION_BACKGROUND:g("793470"),THANK_YOU_VIDEO_ACTION_BACKGROUND:g("793471"),PROMO_POST_GENERIC:g("731504"),STICKER_UPLOADER_GENERIC:g("1000607"),GAB_TIP_ICON:g("1063264"),STATUS_UNDER_REVIEW:g("791301"),STATUS_APPROVED:g("791299"),STATUS_REJECTED:g("791300"),STATUS_ACTIVE:g("791298"),POST_PREVIEW_GLOBE:g("820203"),POST_PREVIEW_SUPPORTER_BADGE:g("823292"),POST_PREVIEW_UFI:g("820205"),GET_HELP_QUESTION_CIRCLE:g("569582"),PREVIEW_SUBSCRIPTION_EYE:g("544734"),STICKER_GLYPH:g("615796"),EDIT_BENEFITS_BADGE_HEART:g("546504"),EDIT_VIDEOS_VIDEO:g("495343"),VIDEO_UPLOADER_TIP_ICON:g("550107"),SUBSCRIPTION_ACTION_TIP_DOLLAR_CIRCLE:g("615737"),SUBSCRIPTION_ACTION_TIP_HEART:g("725800"),SUBSCRIPTION_ACTION_TIP_VIDEO:g("486700"),SUBSCRIPTION_ACTION_TIP_NEWS_FEED:g("607155"),SUBSCRIPTION_ACTION_TIP_MEGAPHONE:g("486805"),EDUCATION_TIP_COMPOSER:g("492261"),EDUCATION_TIP_LINE_CHART:g("548066"),EDUCATION_TIP_MEGAPHONE:g("486804"),VIDEO_UPLOADER_ERROR_ICON:g("494555"),PAYMENT_REVIEW_ICON:g("480632"),SUBMITTED_ICON:g("485261"),POST_PREVIEW_DOTS:g("496430"),BADGE_DISABLED_PREVIEW:g("957729")};e.exports=a}),null); __d("WoodhengeCreatorOnboardingStrings",["fbt","React"],(function(a,b,c,d,e,f,g){"use strict";__p&&__p();a={NEXT:g._("Next"),PREVIOUS:g._("Previous"),CANCEL:g._("Cancel"),DONE:g._("Done"),SAVE:g._("Save"),SUBMIT:g._("Submit for Review"),SAVING_IN_PROGRESS:g._("Saving"),EDIT_SUBSCRIPTION:g._("Edit Subscription"),CONTENT_UPLOADER_TITLE:g._("Upload Your Content"),VIDEO_UPLOADER_PITCH_TITLE:g._("Pitch Video"),VIDEO_UPLOADER_THANKYOU_TITLE:g._("Thank You Video"),VIDEO_UPLOADER_TOOLTIP:g._("Position your face in the top half of the screen"),VIDEO_UPLOADER_UPLOAD_BUTTON_LABEL:g._("Upload"),VIDEO_UPLOADER_UPDATE_PITCH_BUTTON_LABEL:g._("Update Pitch Video"),VIDEO_UPLOADER_UPDATE_THANKYOU_BUTTON_LABEL:g._("Update Thank You Video"),VIDEO_UPLOADER_ERORR_MESSAGE:g._("Upload failed! Please try again."),VIDEO_UPLOADER_GENERAL_INSTRUCTION:g._("No more than 1 minute. Portrait Format"),VIDEO_UPLOADER_PITCH_INSTRUCTION:g._("{=Send notification on your mobile and record directly with this layout via Facebook Camera}{=Make sure you paint a compelling picture of how they can join you on this epic journey. See tips to make compelling 'Pitch Video'}",[g._param("=Send notification on your mobile and record directly with this layout via Facebook Camera",b("React").createElement("p",null,g._("Send notification on your mobile and record directly with this layout via Facebook Camera"))),g._param("=Make sure you paint a compelling picture of how they can join you on this epic journey. See tips to make compelling 'Pitch Video'",b("React").createElement("p",null,g._("Make sure you paint a compelling picture of how they can join you on this epic journey. See tips to make compelling 'Pitch Video'")))]),VIDEO_UPLOADER_THANKYOU_INSTRUCTION:g._("How amazing is it going to be when your fans will get a personal thank you from you when they pledged? See tips on our onboarding guide."),GET_HELP:g._("Get Help"),PREVIEW_SUBSCRIPTION:g._("Preview Subscription"),EDIT_STICKERS:g._("Edit Stickers"),BENEFITS_SETUP_HEADER:g._("Customize Your Subscription"),BENEFITS_SETUP_BODY_TEXT:function(a,c){return g._("{=Choose a price and add benefits for your supporters. All supporters will get access to a supporter badge, but you can add additional benefits. You can preview what these benefits will look like and then submit for review. Your benefits will be reviewed to make sure they comply with [facebookPolicy] and [applePolicy].}",[g._param("=Choose a price and add benefits for your supporters. All supporters will get access to a supporter badge, but you can add additional benefits. You can preview what these benefits will look like and then submit for review. Your benefits will be reviewed to make sure they comply with [facebookPolicy] and [applePolicy].",b("React").createElement("p",null,g._("Choose a price and add benefits for your supporters. All supporters will get access to a supporter badge, but you can add additional benefits. You can preview what these benefits will look like and then submit for review. Your benefits will be reviewed to make sure they comply with {facebookPolicy} and {applePolicy}.",[g._param("facebookPolicy",a),g._param("applePolicy",c)])))])},BENEFITS_SETUP_PRICE_INDICATOR:g._("Monthly Price:"),BENEFITS_SETUP_PRICE:function(a){return g._("{price selected}",[g._param("price selected",a)])},BENEFITS_SETUP_BUTTON_LABEL:g._("Customize Subscription"),RECOMMENDED:g._("Recommended"),UNDER_REVIEW_STATUS_TITLE:g._("You've Submitted Your Fan Subscription Details"),UNDER_REVIEW_STATUS_DESCRIPTION:function(a,c){return g._("{=Your subscription will be reviewed to make sure it complies with [facebookPolicy] and with [applePolicy]. [New Line] This typically takes 5 to 7 business days, with some exceptions. You'll be notified as soon as the review is complete.}",[g._param("=Your subscription will be reviewed to make sure it complies with [facebookPolicy] and with [applePolicy]. [New Line] This typically takes 5 to 7 business days, with some exceptions. You'll be notified as soon as the review is complete.",b("React").createElement("p",null,g._("Your subscription will be reviewed to make sure it complies with {facebookPolicy} and with {applePolicy}. {New Line} This typically takes 5 to 7 business days, with some exceptions. You'll be notified as soon as the review is complete.",[g._param("facebookPolicy",a),g._param("applePolicy",c),g._param("New Line",b("React").createElement("br",null))])))])},UNDER_REVIEW_TITLE_WITHOUT_VIDEO:g._("Create Promotional and Thank You Videos"),SUBSCRIPTION_ACTION_TITLE_WITH_VIDEO:g._("Your Subscription Videos"),UNDER_REVIEW_DESCRIPTION_WITHOUT_VIDEO:g._("Use videos to help people understand what you're offering and why they should become supporters."),SUBSCRIPTION_ACTION_DESCRIPTION_WITH_VIDEO:g._("Your subscription videos will often be shown when someone is considering your subscription. You can preview how they look and edit them anytime."),ADD_VIDEO_BUTTON_LABEL:g._("Add Videos"),EDIT_VIDEO_BUTTON_LABEL:g._("Edit Videos"),EDIT_BENEFITS_BUTTON_LABEL:g._("Edit Benefits"),VIDEO_FIRST_CONVINSING_STRING:g._("Videos showcase your authentic voice."),VIDEO_SECOND_CONVINSING_STRING:g._("A promotional video unlocks special opportunities to spread awareness of your subscription."),VIDEO_THIRD_CONVINSING_STRING:g._("A thank you video shows appreciation for supporters and welcomes them to the community."),VIDEO_UPLOADER_TITLE:g._("Subscription Videos"),PROMOTIONAL_VIDEO_HEADER:g._("Promotional Video"),PROMOTIONAL_VIDEO_DESCRIPTION:g._("Add a video that promotes your subscription and describes the exclusive benefits supporters will receive. This will often be shown when people consider becoming supporters."),PROMOTIONAL_VIDEO_FIRST_TIP:g._("Your video must be a vertical video with a resolution of 720px or higher."),PROMOTIONAL_VIDEO_SECOND_TIP:g._("Position your face at the top of the frame. Your supporter benefits will appear at the bottom when viewed fullscreen on mobile devices."),PROMOTIONAL_VIDEO_THIRD_TIP:function(a){return g._("{helpCenterLink}",[g._param("helpCenterLink",a)])},PROMOTIONAL_VIDEO_PLACEHOLDER_TEXT:g._("Your benefits will be shown here"),THANK_YOU_VIDEO_HEADER:g._("Thank You Video"),THANK_YOU_VIDEO_DESCRIPTION:g._("Add a video that thanks your new supporters and welcomes them to the community. This video will only be shown to new supporters immediately after they subscribe."),THANK_YOU_VIDEO_FIRST_TIP:g._("Your video must be a vertical video with a resolution of 720px or higher."),THANK_YOU_VIDEO_SECOND_TIP:g._("Position your face at the top of the frame. Your thank you message will appear at the bottom when viewed fullscreen on mobile devices."),THANK_YOU_VIDEO_THIRD_TIP:function(a){return g._("{helpCenterLink}",[g._param("helpCenterLink",a)])},THANK_YOU_MESSAGE_PLACEHOLDER:g._("Add a thank you message..."),THANK_YOU_VIDEO_PLACEHOLDER_TEXT:g._("Your thank you mesage will be shown here"),UPLOAD_VIDEO_BUTTON_LABEL:g._("Upload Video"),UPDATE_VIDEO_BUTTON_LABEL:g._("Update Video"),DISCARD_CHANGES_HEADER:g._("Discard Changes?"),DISCARD_CHANGES_BODY_TEXT:g._("If you discard now, your uploaded videos won't be saved. You can save your progress after you upload both videos."),DISABLED_VIDEO_SAVE_BUTTON_TOOLTIP_TEXT:g._("You can save your progress after you upload both videos."),DISABLED_SUBMIT_REVIEW_BUTTON_TOOLTIP_TEXT:g._("Add at least one additional benefit."),DISABLED_SAVE_BENEFITS_BUTTON_TOOLTIP_TEXT:g._("Select at least one additional benefit."),DISABLED_SAVE_BENEFITS_BUTTON_INVALID_GROUP_NAME:g._("Write a name for your subscription group."),SELECT_BENEFIT_LABEL:g._("Select at least one additional benefit."),GO_BACK_BUTTON_LABEL:g._("Go Back"),DISCARD_BUTTON_LABEL:g._("Discard"),APPROVED_STATUS_TITLE:g._("Your Fan Subscriptions Have Been Approved"),APPROVED_STATUS_DESCRIPTION:function(a){return g._("{=You can now activate your subscription and start building your community of supporters. [New Line] The primary button on your Page will change to \"Become a Supporter\" after you activate. You can always edit this later. [learnMore].}",[g._param('=You can now activate your subscription and start building your community of supporters. [New Line] The primary button on your Page will change to "Become a Supporter" after you activate. You can always edit this later. [learnMore].',b("React").createElement("p",null,g._("You can now activate your subscription and start building your community of supporters. {New Line} The primary button on your Page will change to \"Become a Supporter\" after you activate. You can always edit this later. {learnMore}.",[g._param("New Line",b("React").createElement("br",null)),g._param("learnMore",a)])))])},APPROVED_STATUS_ACTION_LABEL:g._("Activate Subscriptions"),APPROVED_TITLE_WITHOUT_VIDEO:g._("Add Promotional and Thank You Videos"),APPROVED_DESCRIPTION_WITHOUT_VIDEO:g._("Use videos to help people understand what you're offering and why they should become supporters."),APPROVED_EDUCATION_HEADER:g._("Set Yourself Up for Success"),APPROVED_FIRST_EDUCATION_TIP:function(a){return g._("{addExclusivePostLink} for supporters so they can engage with you from the start.",[g._param("addExclusivePostLink",a)])},APPROVED_SECOND_EDUCATION_TIP:function(a){return g._("Think ahead about how you'll {addExclusivePostLink} once you activate.",[g._param("addExclusivePostLink",a)])},REJECTED_STATUS_TITLE:g._("Your Fan Subscriptions Weren't Approved"),REJECTED_STATUS_DESCRIPTION:function(a){return g._("{=[onboardingPageName] wasn't approved to test fan subscriptions at this time. As we continue to expand fan subscriptions to more Pages on Facebook, you may be able to apply again in the future.}",[g._param("=[onboardingPageName] wasn't approved to test fan subscriptions at this time. As we continue to expand fan subscriptions to more Pages on Facebook, you may be able to apply again in the future.",b("React").createElement("p",null,g._("{onboardingPageName} wasn't approved to test fan subscriptions at this time. As we continue to expand fan subscriptions to more Pages on Facebook, you may be able to apply again in the future.",[g._param("onboardingPageName",a)])))])},REJECTED_STATUS_ACTION_LABEL:g._("Contact Us"),LIVE_STATUS_TITLE:g._("Your Fan Subscriptions Are Active"),LIVE_STATUS_DESCRIPTION:function(a){return g._("{=The primary button on your Page is \"Become a Supporter.\"[learnMore]. [New Line] Here's your subscription link that allows people to become supporters. Share it widely to give people multiple opportunities to support you.}",[g._param('=The primary button on your Page is "Become a Supporter."[learnMore]. [New Line] Here\'s your subscription link that allows people to become supporters. Share it widely to give people multiple opportunities to support you.',b("React").createElement("p",null,g._("The primary button on your Page is \"Become a Supporter.\" {learnMore}. {New Line} Here's your subscription link that allows people to become supporters. Share it widely to give people multiple opportunities to support you.",[g._param("learnMore",a),g._param("New Line",b("React").createElement("br",null))])))])},LIVE_EDUCATION_HEADER:g._("Next Steps"),LIVE_FIRST_EDUCATION_TIP:function(a,b){return g._("{promoteSubscriptionLink} and {exclusivePostsLink} for supporters.",[g._param("promoteSubscriptionLink",a),g._param("exclusivePostsLink",b)])},LIVE_SECOND_EDUCATION_TIP:function(a){return g._("{insightsLink} often to see trends in your supporter growth.",[g._param("insightsLink",a)])},LIVE_TITLE_VIDEO:g._("Create Promotional and Thank You Videos"),LIVE_TITLE_POST:g._("Post Your Promotional Video"),LIVE_DESCRIPTION_VIDEO:g._("Use videos to help people understand what you're offering and why they should become supporters."),LIVE_DESCRIPTION_POST:g._("Create a post with your promotional video to spread awareness of your subscription."),LIVE_CREATE_PROMOTIONAL_POST:g._("Create Promotional Post"),POST_FIRST_CONVINSING_STRING:g._("The post will always have a button for people to become supporters."),POST_SECOND_CONVINSING_STRING:g._("Your promotional video will often appear to relevant people in video feeds on Facebook."),POST_THIRD_CONVINSING_STRING:g._("A notification about the post will be sent to your most engaged fans."),POST_PREVIEW_POST_VIDEO:g._("posted a video"),POST_PREVIEW_NOW:g._("Now"),POST_PREVIEW_EXAMPLE_POST_TEXT:g._("Your promotional post text will appear here."),POST_PREVIEW_BECOME_SUPPORTER_DESCRIPTION:g._("Show your support and enjoy special benefits"),MAKE_EXCLUSIVE_POST:g._("make exclusive posts"),ADD_EXCLUSIVE_POST:g._("Add exclusive posts"),PROMOTE_YOUR_SUBSCRIPTION:g._("promote your subscription"),PROMOTE_YOUR_SUBSCRIPTION_CAPS:g._("Promote your subscription"),CHECK_YOUR_INSIGHTS:g._("Check your insights"),FACEBOOK_POLICIES:g._("Facebook policies"),APPLE_GUIDELINES:g._("Apple guidelines"),PROMOTIONAL_VIDEO_TIP:g._("Tips on how to make a promotional video."),THANK_YOU_VIDEO_TIP:g._("Tips on how to make a thank you video."),LEARN_MORE:g._("Learn More"),INVALID_URL:g._("Must be a valid URL")};e.exports=a}),null); __d("WoodhengeCreatorOnboardingUtils",["FDSLink.react","FDSText.react","FlexLayout.react","Image.react","Link.react","React","URI","WoodhengeCreatorOnboardingAPIUtils","WoodhengeCreatorOnboardingAssets","WoodhengeCreatorOnboardingStrings","cxMargin"],(function(a,b,c,d,e,f){"use strict";__p&&__p();var g=2,h=function(a,c,d){return b("React").createElement(b("FDSLink.react"),{href:new(b("URI"))(c),target:"_blank"},b("React").createElement(b("FDSText.react"),{color:"highlight",size:d||"body1"},a))};a=function(){return[{type:"video_first_convincing_tip",content:b("WoodhengeCreatorOnboardingStrings").VIDEO_FIRST_CONVINSING_STRING,icon:b("WoodhengeCreatorOnboardingAssets").SUBSCRIPTION_ACTION_TIP_VIDEO},{type:"video_second_convincing_tip",content:b("WoodhengeCreatorOnboardingStrings").VIDEO_SECOND_CONVINSING_STRING,icon:b("WoodhengeCreatorOnboardingAssets").SUBSCRIPTION_ACTION_TIP_DOLLAR_CIRCLE},{type:"video_third_convincing_tip",content:b("WoodhengeCreatorOnboardingStrings").VIDEO_THIRD_CONVINSING_STRING,icon:b("WoodhengeCreatorOnboardingAssets").SUBSCRIPTION_ACTION_TIP_HEART}]};c=function(){return[{type:"post_first_convincing_tip",content:b("WoodhengeCreatorOnboardingStrings").POST_FIRST_CONVINSING_STRING,icon:b("WoodhengeCreatorOnboardingAssets").SUBSCRIPTION_ACTION_TIP_DOLLAR_CIRCLE},{type:"post_second_convincing_tip",content:b("WoodhengeCreatorOnboardingStrings").POST_SECOND_CONVINSING_STRING,icon:b("WoodhengeCreatorOnboardingAssets").SUBSCRIPTION_ACTION_TIP_NEWS_FEED},{type:"post_third_convincing_tip",content:b("WoodhengeCreatorOnboardingStrings").POST_THIRD_CONVINSING_STRING,icon:b("WoodhengeCreatorOnboardingAssets").SUBSCRIPTION_ACTION_TIP_MEGAPHONE}]};d=function(){return[{type:"approved_first_education_tip",content:b("WoodhengeCreatorOnboardingStrings").APPROVED_FIRST_EDUCATION_TIP(h(b("WoodhengeCreatorOnboardingStrings").ADD_EXCLUSIVE_POST,"https://www.facebook.com/creators/discover/unlocking-fan-subscription-success#post-supporter-only-content-regularly","body3")),icon:b("WoodhengeCreatorOnboardingAssets").EDUCATION_TIP_COMPOSER},{type:"approved_second_education_tip",content:b("WoodhengeCreatorOnboardingStrings").APPROVED_SECOND_EDUCATION_TIP(h(b("WoodhengeCreatorOnboardingStrings").PROMOTE_YOUR_SUBSCRIPTION,"https://www.facebook.com/creators/discover/unlocking-fan-subscription-success#maximize-your-first-few-weeks","body3")),icon:b("WoodhengeCreatorOnboardingAssets").EDUCATION_TIP_MEGAPHONE}]};f=function(a){return[{type:"live_first_education_tip",content:b("WoodhengeCreatorOnboardingStrings").LIVE_FIRST_EDUCATION_TIP(h(b("WoodhengeCreatorOnboardingStrings").PROMOTE_YOUR_SUBSCRIPTION_CAPS,"https://www.facebook.com/creators/discover/unlocking-fan-subscription-success#continue-to-promote-your-subscriptions","body3"),h(b("WoodhengeCreatorOnboardingStrings").MAKE_EXCLUSIVE_POST,"https://www.facebook.com/creators/discover/unlocking-fan-subscription-success#post-supporter-only-content-regularly","body3")),icon:b("WoodhengeCreatorOnboardingAssets").EDUCATION_TIP_COMPOSER},{type:"live_second_education_tip",content:b("WoodhengeCreatorOnboardingStrings").LIVE_SECOND_EDUCATION_TIP(h(b("WoodhengeCreatorOnboardingStrings").CHECK_YOUR_INSIGHTS,b("WoodhengeCreatorOnboardingAPIUtils").getInsightsLink(a),"body3")),icon:b("WoodhengeCreatorOnboardingAssets").EDUCATION_TIP_LINE_CHART}]};var i=function(a,c,d){return b("React").createElement(b("FlexLayout.react"),{align:"center",className:"_3-8n",direction:"horizontal"},b("React").createElement(b("Image.react"),{src:c}),b("React").createElement(b("Link.react"),{className:"_3-8s",onClick:d,style:{color:"black"}},a))},j=function(a){return b("React").createElement(b("FlexLayout.react"),{align:"center",className:"_4m0t",direction:"horizontal",key:a.type},b("React").createElement(b("Image.react"),{src:a.icon}),b("React").createElement(b("FDSText.react"),{color:"secondary",margin:"_3-8i",size:"body1"},a.content))},k=function(a){return b("React").createElement(b("FlexLayout.react"),{align:"start",className:"_3-8i",direction:"horizontal",key:a.type},b("React").createElement(b("Image.react"),{src:a.icon}),b("React").createElement(b("FDSText.react"),{color:"secondary",margin:"_3-9a",size:"body3",width:"200px"},a.content))},l=function(a,b){return a.includes("GROUP")?Number(b==null?void 0:b.length)>0:!0},m=function(a,b,c,d){c=o(c,d);d=l(a,b);return a.length>=g&&d&&c},n=function(a,c,d){if(!c)return b("WoodhengeCreatorOnboardingStrings").DISABLED_SAVE_BENEFITS_BUTTON_INVALID_GROUP_NAME;else if(d===!1)return b("WoodhengeCreatorOnboardingStrings").INVALID_URL;else if(!a)return b("WoodhengeCreatorOnboardingStrings").DISABLED_SAVE_BENEFITS_BUTTON_TOOLTIP_TEXT;return null},o=function(a,b){return a!=="NEWS"||w(b)},p=function(a){return Object.keys(a).filter(function(b){return a[b].selected})},q=function(a){var b=p(a);return b.map(function(b){return a[b].description})},r=function(){return h(b("WoodhengeCreatorOnboardingStrings").FACEBOOK_POLICIES,"https://www.facebook.com/legal/fan_funding_creator_terms")},s=function(){return h(b("WoodhengeCreatorOnboardingStrings").APPLE_GUIDELINES,"https://developer.apple.com/app-store/review/guidelines/#subscriptions")},t=function(){return h(b("WoodhengeCreatorOnboardingStrings").PROMOTIONAL_VIDEO_TIP,"https://www.facebook.com/creators/discover/getting-started-with-fan-subscriptions#recording-your-promotional-video")},u=function(){return h(b("WoodhengeCreatorOnboardingStrings").THANK_YOU_VIDEO_TIP,"https://www.facebook.com/creators/discover/getting-started-with-fan-subscriptions#recording-your-thank-you-video")},v=function(){return h(b("WoodhengeCreatorOnboardingStrings").LEARN_MORE,"https://www.facebook.com/help/393123551046542?helpref=faq_content")},w=function(a){if(a==null)return!1;var b=/^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};e.exports={canCreatorSubmitBenefits:m,generateBenefitTypesArray:p,generateDescriptionArray:q,getApplePolicyLink:s,getApprovedEducationTips:d,getBenefitSubmitButtonTooltip:n,getFBPolicyLink:r,getFormattedAction:i,getFormattedEducationTip:k,getFormattedHelpTip:j,getFormattedLink:h,getLearnMoreLink:v,getLiveEducationTips:f,getPostHelpTips:c,getPromoVideoHelpCenterLink:t,getThankYouVideoHelpCenterLink:u,getVideoHelpTips:a,hasValidGroupName:l,isValidURL:w,privacyPolicyURLIsValid:o}}),null); __d("EllipsisText.react",["cx","DOMContainer.react","React","joinClasses"],(function(a,b,c,d,e,f,g){"use strict";function a(a){var c=a.children instanceof Node?b("React").createElement(b("DOMContainer.react"),null,a.children):a.children;return b("React").createElement("span",{id:a.id,className:b("joinClasses")(a.className,"_6i6a")},c)}e.exports=a}),null); __d("d3-old/core/bisect",[],(function(a,b,c,d,e,f){__p&&__p();a=function(a){__p&&__p();return{left:function(b,c,d,e){arguments.length<3&&(d=0);arguments.length<4&&(e=b.length);while(d>>1;a.call(b,b[f],f)>>1;c",e=a[3]||"",f=a[4]||"",h=a[5],i=+a[6],l=a[7],o=a[8],p=a[9],q=1,r="",s=!1;o&&(o=+o.substring(1));(h||c==="0"&&d==="=")&&(h=c="0",d="=",l&&(i-=Math.floor((i-1)/4)));switch(p){case"n":l=!0;p="g";break;case"%":q=100;r="%";p="f";break;case"p":q=100;r="%";p="r";break;case"b":case"o":case"x":case"X":f&&(f="0"+p.toLowerCase());case"c":case"d":s=!0;o=0;break;case"s":q=-1;p="r";break}f==="#"&&(f="");p=="r"&&!o&&(p="g");p=k.get(p)||m;var t=h&&l;return function(a){__p&&__p();if(s&&a%1)return"";var j=a<0||a===0&&1/a<0?(a=-a,"-"):e;if(q<0){var k=b("d3-old/core/formatPrefix")(a,o);a=k.scale(a);r=k.symbol}else a*=q;a=p(a,o);!h&&l&&(a=n(a));k=f.length+a.length+(t?0:j.length);var m=k"?m+j+a:d==="^"?m.substring(0,k>>=1)+j+a+m.substring(k):j+(t?a:m+a))+r}};var j=/(?:([^{])?([<>=^]))?([+\- ])?(#)?(0)?([0-9]+)?(,)?(\.[0-9]+)?([a-zA-Z%])?/,k=b("d3-old/core/map")({b:function(a){return a.toString(2)},c:function(a){return String.fromCharCode(a)},o:function(a){return a.toString(8)},x:function(a){return a.toString(16)},X:function(a){return a.toString(16).toUpperCase()},g:function(a,b){return a.toPrecision(b)},e:function(a,b){return a.toExponential(b)},f:function(a,b){return a.toFixed(b)},r:function(a,c){return(a=b("d3-old/core/round")(a,l(a,c))).toFixed(Math.max(0,Math.min(20,l(a*(1+1e-15),c))))}});function l(a,b){return b-(a?Math.ceil(Math.log(a)/Math.LN10):1)}function m(a){return a+""}var n=a;if(h){var o=h.length;n=function(a){var b=a.lastIndexOf("."),c=b>=0?"."+a.substring(b+1):(b=a.length,""),d=[],e=0,f=h[0];while(b>0&&f>0)d.push(a.substring(b-=f,b+f)),f=h[e=(e+1)%o];return d.reverse().join(i||"")+c}}c._precision=l;e.exports=c}),null); __d("d3-old/core/formatPrefix",["d3-old/core/round","d3-old/core/format"],(function(a,b,c,d,e,f){__p&&__p();var g=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"].map(a);c=function(a,c){var d=0;a&&(a<0&&(a*=-1),c&&(a=b("d3-old/core/round")(a,b("d3-old/core/format")._precision(a,c))),d=1+Math.floor(1e-12+Math.log(a)/Math.LN10),d=Math.max(-24,Math.min(24,Math.floor((d<=0?d+1:d-1)/3)*3)));return g[8+d/3]};function a(a,b){var c=Math.pow(10,Math.abs(8-b)*3);return{scale:b>8?function(a){return a/c}:function(a){return a*c},symbol:a}}e.exports=c}),null); __d("d3-old/core/hcl",["d3-old/core/color","d3-old/core/core","d3-old/core/lab","d3-old/core/rgb"],(function(a,b,c,d,e,f){__p&&__p();a=b("d3-old/core/color")._Color;var g=b("d3-old/core/core")._radians;c=function(a,c,d){return arguments.length===1?a instanceof i?h(a.h,a.c,a.l):a instanceof b("d3-old/core/lab")._Lab?b("d3-old/core/lab")._hcl(a.l,a.a,a.b):b("d3-old/core/lab")._hcl((a=b("d3-old/core/rgb")._lab((a=b("d3-old/core/rgb")(a)).r,a.g,a.b)).l,a.a,a.b):h(+a,+c,+d)};function h(a,b,c){return new i(a,b,c)}function i(a,b,c){this.h=a,this.c=b,this.l=c}d=i.prototype=new a();d.brighter=function(a){return h(this.h,this.c,Math.min(100,this.l+b("d3-old/core/lab")._K*(arguments.length?a:1)))};d.darker=function(a){return h(this.h,this.c,Math.max(0,this.l-b("d3-old/core/lab")._K*(arguments.length?a:1)))};d.rgb=function(){return j(this.h,this.c,this.l).rgb()};function j(a,c,d){return b("d3-old/core/lab")._lab(d,Math.cos(a*=g)*c,Math.sin(a)*c)}c._Hcl=i;c._hcl=h;c._lab=j;e.exports=c}),null); __d("d3-old/core/hsl",["d3-old/core/color","d3-old/core/rgb"],(function(a,b,c,d,e,f){__p&&__p();a=b("d3-old/core/color")._Color;c=function(a,c,d){return arguments.length===1?a instanceof h?g(a.h,a.s,a.l):b("d3-old/core/rgb")._parse(""+a,b("d3-old/core/rgb")._hsl,g):g(+a,+c,+d)};function g(a,b,c){return new h(a,b,c)}function h(a,b,c){this.h=a,this.s=b,this.l=c}d=h.prototype=new a();d.brighter=function(a){a=Math.pow(.7,arguments.length?a:1);return g(this.h,this.s,this.l/a)};d.darker=function(a){a=Math.pow(.7,arguments.length?a:1);return g(this.h,this.s,a*this.l)};d.rgb=function(){return i(this.h,this.s,this.l)};function i(a,c,d){__p&&__p();var e,f;a=a%360;a<0&&(a+=360);c=c<0?0:c>1?1:c;d=d<0?0:d>1?1:d;f=d<=.5?d*(1+c):d+c-d*c;e=2*d-f;function g(a){a>360?a-=360:a<0&&(a+=360);if(a<60)return e+(f-e)*a/60;if(a<180)return f;return a<240?e+(f-e)*(240-a)/60:e}function h(a){return Math.round(g(a)*255)}return b("d3-old/core/rgb")._rgb(h(a+120),h(a),h(a-120))}c._hsl=g;c._rgb=i;e.exports=c}),null); __d("d3-old/core/xyz",[],(function(a,b,c,d,e,f){function a(a){return a>.008856?Math.pow(a,1/3):7.787037*a+4/29}function b(a){return Math.round(255*(a<=.00304?12.92*a:1.055*Math.pow(a,1/2.4)-.055))}f._lab=a;f._rgb=b}),null); __d("d3-old/core/lab",["d3-old/core/color","d3-old/core/xyz","d3-old/core/core","d3-old/core/hcl","d3-old/core/rgb"],(function(a,b,c,d,e,f){__p&&__p();c=b("d3-old/core/color")._Color;var g=b("d3-old/core/xyz")._rgb,h=b("d3-old/core/core")._u03c0;d=function(a,c,d){return arguments.length===1?a instanceof j?i(a.l,a.a,a.b):a instanceof b("d3-old/core/hcl")._Hcl?b("d3-old/core/hcl")._lab(a.l,a.c,a.h):b("d3-old/core/rgb")._lab((a=b("d3-old/core/rgb")(a)).r,a.g,a.b):i(+a,+c,+d)};function i(a,b,c){return new j(a,b,c)}function j(a,b,c){this.l=a,this.a=b,this.b=c}var k=18,l=.95047,m=1,n=1.08883;f=j.prototype=new c();f.brighter=function(a){return i(Math.min(100,this.l+k*(arguments.length?a:1)),this.a,this.b)};f.darker=function(a){return i(Math.max(0,this.l-k*(arguments.length?a:1)),this.a,this.b)};f.rgb=function(){return o(this.l,this.a,this.b)};function o(a,c,d){a=(a+16)/116;c=a+c/500;d=a-d/200;c=p(c)*l;a=p(a)*m;d=p(d)*n;return b("d3-old/core/rgb")._rgb(g(3.2404542*c-1.5371385*a-.4985314*d),g(-.969266*c+1.8760108*a+.041556*d),g(.0556434*c-.2040259*a+1.0572252*d))}function a(a,c,d){return b("d3-old/core/hcl")._hcl(Math.atan2(d,c)/h*180,Math.sqrt(c*c+d*d),a)}function p(a){return a>.206893034?a*a*a:(a-4/29)/7.787037}d._K=k;d._X=l;d._Y=m;d._Z=n;d._Lab=j;d._lab=i;d._rgb=o;d._hcl=a;e.exports=d}),null); __d("d3-old/core/rgb",["d3-old/core/color","d3-old/core/map","d3-old/core/xyz","d3-old/core/hsl","d3-old/core/lab"],(function(a,b,c,d,e,f){__p&&__p();c=b("d3-old/core/color")._Color;var g=b("d3-old/core/xyz")._lab;d=function(a,c,d){return arguments.length===1?a instanceof i?h(a.r,a.g,a.b):k(""+a,h,b("d3-old/core/hsl")._rgb):h(~~a,~~c,~~d)};function h(a,b,c){return new i(a,b,c)}function i(a,b,c){this.r=a,this.g=b,this.b=c}f=i.prototype=new c();f.brighter=function(a){a=Math.pow(.7,arguments.length?a:1);var b=this.r,c=this.g,d=this.b,e=30;if(!b&&!c&&!d)return h(e,e,e);b&&b=0&&(c=a.substring(0,b),a=a.substring(b+1));return Object.prototype.hasOwnProperty.call(g,c)?{space:g[c],local:a}:a}};e.exports=a}),null); __d("d3-old/core/transform",["d3-old/core/core","d3-old/core/ns"],(function(a,b,c,d,e,f){__p&&__p();var g=b("d3-old/core/core")._document,h=b("d3-old/core/core")._degrees;a=function(a){var c=g.createElementNS(b("d3-old/core/ns").prefix.svg,"g");return function(a){c.setAttribute("transform",a);a=c.transform.baseVal.consolidate();return new i(a?a.matrix:m)}(a)};function i(a){var b=[a.a,a.b],c=[a.c,a.d],d=k(b),e=j(b,c),f=k(l(c,b,-e))||0;b[0]*c[1]=0&&!(e=a.interpolators[d](b,c)));return e};m.number=function(a,b){b-=a;return function(c){return a+b*c}};m.round=function(a,b){b-=a;return function(c){return Math.round(a+b*c)}};m.string=function(a,b){__p&&__p();var c,d,e,f=0,g=[],h=[],i;n.lastIndex=0;for(d=0;c=n.exec(b);++d)c.index&&g.push(b.substring(f,c.index)),h.push({i:g.length,x:c[0]}),g.push(null),f=n.lastIndex;f180?j+=360:j-i>180&&(i+=360),e.push({i:d.push(d.pop()+"rotate(",null,")")-2,x:m.number(i,j)})):j&&d.push(d.pop()+"rotate("+j+")");k!=l?e.push({i:d.push(d.pop()+"skewX(",null,")")-2,x:m.number(k,l)}):l&&d.push(d.pop()+"skewX("+l+")");a[0]!=c[0]||a[1]!=c[1]?(f=d.push(d.pop()+"scale(",null,",",null,")"),e.push({i:f-4,x:m.number(a[0],c[0])},{i:f-2,x:m.number(a[1],c[1])})):(c[0]!=1||c[1]!=1)&&d.push(d.pop()+"scale("+c+")");f=e.length;return function(a){var b=-1,c;while(++b180?g-=360:g<-180&&(g+=360);return function(a){return h(d+g*a,e+i*a,f+j*a)+""}};m.lab=function(a,c){a=b("d3-old/core/lab")(a);c=b("d3-old/core/lab")(c);var d=a.l,e=a.a,f=a.b,g=c.l-d,h=c.a-e,j=c.b-f;return function(a){return i(d+g*a,e+h*a,f+j*a)+""}};m.hcl=function(a,c){a=b("d3-old/core/hcl")(a);c=b("d3-old/core/hcl")(c);var d=a.h,e=a.c,f=a.l,g=c.h-d,h=c.c-e,i=c.l-f;g>180?g-=360:g<-180&&(g+=360);return function(a){return j(d+g*a,e+h*a,f+i*a)+""}};m.array=function(a,b){__p&&__p();var c=[],d=[],e=a.length,f=b.length,g=Math.min(a.length,b.length),h;for(h=0;hb)d.push(h/e);else while((h=a+c*++f)2?h:g,m=e?i:j;f=k(a,c,m,d);l=k(c,a,m,b("d3-old/core/interpolate"));return r}function r(a){return f(a)}r.invert=function(a){return l(a)};r.domain=function(b){if(!arguments.length)return a;a=b.map(Number);return o()};r.range=function(a){if(!arguments.length)return c;c=a;return o()};r.rangeRound=function(a){return r.range(a).interpolate(b("d3-old/core/interpolate").round)};r.clamp=function(a){if(!arguments.length)return e;e=a;return o()};r.interpolate=function(a){if(!arguments.length)return d;d=a;return o()};r.ticks=function(b){return p(a,b)};r.tickFormat=function(b){return q(a,b)};r.nice=function(){k(a,n);return o()};r.copy=function(){return m(a,c,d,e)};return o()}function a(a,c){return b("d3-old/core/rebind")(a,c,"range","rangeRound","interpolate","clamp")}function n(a){a=Math.pow(10,Math.round(Math.log(a)/Math.LN10)-1);return a&&{floor:function(b){return Math.floor(b/a)*a},ceil:function(b){return Math.ceil(b/a)*a}}}function o(a,b){a=l(a);var c=a[1]-a[0],d=Math.pow(10,Math.floor(Math.log(c/b)/Math.LN10));b=b/c*d;b<=.15?d*=10:b<=.35?d*=5:b<=.75&&(d*=2);a[0]=Math.ceil(a[0]/d)*d;a[1]=Math.floor(a[1]/d)*d+d*.5;a[2]=d;return a}function p(a,c){return b("d3-old/core/range").apply(b("d3-old/core/core"),o(a,c))}function q(a,c){return b("d3-old/core/format")(",."+Math.max(0,-Math.floor(Math.log(o(a,c)[2])/Math.LN10+.01))+"f")}c._linearTicks=p;c._linearTickFormat=q;c._linearNice=n;c._linearRebind=a;e.exports=c}),null); __d("ImmutableListWithV4Types",["immutable"],(function(a,b,c,d,e,f){"use strict";e.exports=b("immutable").List}),null); __d("SpectrumNumberUtilities",["fbt","NumberFormatConfig","intlNumUtils"],(function(a,b,c,d,e,f,g){__p&&__p();function h(a){return b("intlNumUtils").formatNumberWithThousandDelimiters(Math.round(a),0)}function i(a){a=Math.round(a*10)/10;return b("intlNumUtils").getFloatString(a,b("NumberFormatConfig").numberDelimiter,b("NumberFormatConfig").decimalSeparator)}function j(a){return b("intlNumUtils").getFloatString(a,b("NumberFormatConfig").numberDelimiter,b("NumberFormatConfig").decimalSeparator)}function a(a){if(Math.abs(a)>=1e9)return j(a/1e9)+"b";if(Math.abs(a)>=1e6)return j(a/1e6)+"m";return Math.abs(a)>=1e3?j(a/1e3)+"K":h(a)}function k(a){if(Math.abs(a)>=1e9)return i(a/1e9)+"b";if(Math.abs(a)>=1e6)return i(a/1e6)+"m";return Math.abs(a)>=1e3?i(a/1e3)+"K":h(a)}var l={GBP:163,EUR:128,JPY:165,USD:36};function c(a,c){__p&&__p();var d=l[a];d&&(a=String.fromCharCode(d));var e;d="";if(c==Math.round(c))e=k(c);else{var f=c.toFixed(2).split("."),i=b("NumberFormatConfig").decimalSeparator;e=h(parseInt(f[0],10))+i+f[1];c<0&&(e=e.replace(/-/,""),d="-")}return g._("{negative sign(-) or blank}{currency symbol}{number}",[g._param("negative sign(-) or blank",d),g._param("currency symbol",a),g._param("number",e)]).toString()}d={CURRENCY_FORMATS:l,currencyFormatter:c,integerFormatter:h,floatFormatter:i,shortIntegerFormatter:k,shortIntegerFormatterWithoutRounding:a};e.exports=d}),null); __d("SpectrumBaseNumberScale",["SpectrumNumberUtilities","d3-old/core/range","d3-old/scale/linear"],(function(a,b,c,d,e,f){__p&&__p();function g(a){return a===0?0:Math.pow(10,Math.round(Math.log(Math.abs(a))/Math.LN10)-1)}function h(a,b){var c=a.domain(),d=c[0],e=c[c.length-1],f=e-d;e=0&&(c=Math.max(c,0),b=Math.max(b,d))):c0?1:-1,j=f>0?1:-1;i=b("d3-old/core/range")(i*Math.ceil(Math.abs(e/d))*d,j*Math.floor(Math.abs(f/d))*d+d*.5,d);i[0]0&&a==c[b-1]});j&&(i=a.ticks(c-1));if(i.length<=2)if(c>2&&f>1)return[e,e+g/2,f];else return[e,f];return i};var e=a.copy;a.copy=function(){return i(e(),c,d)};return a}a=function(a,c){c===void 0&&(c=b("SpectrumNumberUtilities").shortIntegerFormatter);a=a===void 0?0:a;return i(b("d3-old/scale/linear")(),a,c)};e.exports=a}),null); __d("SpectrumIntegerScale",["SpectrumBaseNumberScale"],(function(a,b,c,d,e,f){a=function(){return b("SpectrumBaseNumberScale")(0)};e.exports=a}),null);