if (self.CavalryLogger) { CavalryLogger.start_js(["d9ke2"]); }

__d("AdmarketAccountStatusesJS",[],(function a(b,c,d,e,f,g){f.exports={values:{ADMARKET_ACCOUNT_STATUS_DISABLED:0,ADMARKET_ACCOUNT_STATUS_ACTIVE:1,ADMARKET_ACCOUNT_STATUS_TEST:2,ADMARKET_ACCOUNT_STATUS_UNSETTLED:3,ADMARKET_ACCOUNT_STATUS_UNSPECIFIED:4,ADMARKET_ACCOUNT_STATUS_PENDING_CLOSURE:5,ADMARKET_ACCOUNT_STATUS_CLOSED:6,ADMARKET_ACCOUNT_STATUS_PENDING_RISK_REVIEW:7,ADMARKET_ACCOUNT_STATUS_PENDING_SETTLEMENT:8,ADMARKET_ACCOUNT_STATUS_IN_GRACE_PERIOD:9,ADMARKET_ACCOUNT_STATUS_INVALID_DUP_WRONG_DB:10},labels:["ADMARKET_ACCOUNT_STATUS_DISABLED","ADMARKET_ACCOUNT_STATUS_ACTIVE","ADMARKET_ACCOUNT_STATUS_TEST","ADMARKET_ACCOUNT_STATUS_UNSETTLED","ADMARKET_ACCOUNT_STATUS_UNSPECIFIED","ADMARKET_ACCOUNT_STATUS_PENDING_CLOSURE","ADMARKET_ACCOUNT_STATUS_CLOSED","ADMARKET_ACCOUNT_STATUS_PENDING_RISK_REVIEW","ADMARKET_ACCOUNT_STATUS_PENDING_SETTLEMENT","ADMARKET_ACCOUNT_STATUS_IN_GRACE_PERIOD","ADMARKET_ACCOUNT_STATUS_INVALID_DUP_WRONG_DB"],descriptions:{0:"This ad account has recently been flagged because of unusual activity. Any ads this account is running will be paused until your client confirms their account information.",3:"This ad account is unsettled. Please contact the client to inform them of the situation to see how it can be resolved.",5:"This account will be deactivated soon. Closure is pending upon ensuring that this account does not have any outstanding balances.",6:"This advertising account has been deactivated.",8:"This account is currently pending settlement.",9:"The payment method associated with this account could not be charged. Your client must go to the Payment Information page and settle the outstanding balance."}}}),null);
__d("AdsImageUploadConstants",[],(function a(b,c,d,e,f,g){f.exports={maxWidth:2048,maxHeight:2048}}),null);
__d("AdsOtherConsts",[],(function a(b,c,d,e,f,g){f.exports={REACH_TOO_LOW_NUMBER:1e3}}),null);
__d("AdsReachEstimateLoadErrorDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"REACH_ESTIMATE.LOAD_ERROR");f.exports=h}),null);
__d("AdsReachEstimateLoadSuccessDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"REACH_ESTIMATE.LOAD_SUCCESS");f.exports=h}),null);
__d("AdsReachEstimateStartedLoadDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"REACH_ESTIMATE.STARTED_LOAD");f.exports=h}),null);
__d("AdsReachEstimateServerActions",["AdsReachEstimateLoadErrorDataAction","AdsReachEstimateLoadSuccessDataAction","AdsReachEstimateStartedLoadDataAction"],(function a(b,c,d,e,f,g){"use strict";var h={updateReachEstimate:function i(j,k){c("AdsReachEstimateLoadSuccessDataAction").dispatch({data:j,params:k})},failReachEstimate:function i(j,k){c("AdsReachEstimateLoadErrorDataAction").dispatch({error:j,params:k})},notifyStartedLoading:function i(j){c("AdsReachEstimateStartedLoadDataAction").dispatch({params:j})}};f.exports=h}),null);
__d("AdsBoostedComponentCommonV2LoadDialogDataDataActionPlugin",[],(function a(b,c,d,e,f,g){"use strict";var h={key:"boostedComponentCommonV2LoadDialogData",actionType:"BoostedComponentCommon.LOAD_DIALOG_DATA"};f.exports=h}),null);
__d("AdsLWIAdgroupListStoreKeyRecord",["immutable"],(function a(b,c,d,e,f,g){"use strict";var h,i,j=c("immutable").Record({product:undefined,boostID:undefined,targetID:undefined,objective:undefined,status:undefined});h=babelHelpers.inherits(k,j);i=h&&h.prototype;function k(){h.apply(this,arguments)}f.exports=k}),null);
__d("AdsLWIAdgroupListStoreLoadDialogDataActionHandler",["AdsAPIAdgroupFields","AdsBoostedComponentCommonV2LoadDialogDataDataActionPlugin","AdsLWIAdgroupListStoreKeyRecord","BoostedComponentAdgroupRunStatusSets","immutable","adsLWICurrentInstanceDataSelector"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=c("BoostedComponentAdgroupRunStatusSets").NOT_ARCHIVED_OR_DELETED_OR_ADGROUP_PAUSED,i={type:c("AdsBoostedComponentCommonV2LoadDialogDataDataActionPlugin").actionType,genExtraData:function j(k,l){var m=c("adsLWICurrentInstanceDataSelector")();if(!m)return{key:null};return{key:new(c("AdsLWIAdgroupListStoreKeyRecord"))({product:m.product,boostID:m.boostID,targetID:m.targetID,status:h})}},mutate:function j(k,l,m){var n=m&&m.key,o=k.data.creative_store_data;if(!n||!o||!o.adgroup_specs)return l;var p=c("immutable").fromJS(o.adgroup_specs),q=c("immutable").List(p.map(function(r){return r.get(c("AdsAPIAdgroupFields").ID)}));return l.set(n,q)}};f.exports=i}),null);
__d("AdsLWIAdgroupListStoreActionHandlers",["AdsLWIAdgroupListStoreLoadDialogDataActionHandler"],(function a(b,c,d,e,f,g){"use strict";f.exports=[c("AdsLWIAdgroupListStoreLoadDialogDataActionHandler")]}),null);
__d("AdsLWICreativeRefreshStoreActionHandlers",[],(function a(b,c,d,e,f,g){"use strict";f.exports=[]}),null);
__d("AdsLWIRulesStoreActionHandlers",[],(function a(b,c,d,e,f,g){"use strict";f.exports=[]}),null);
__d("AdsLWISubmissionStatusStoreActionHandlers",[],(function a(b,c,d,e,f,g){"use strict";f.exports=[]}),null);
__d("AdsLWIValidationStoreActionHandlers",[],(function a(b,c,d,e,f,g){"use strict";f.exports=[]}),null);
__d("AdsLWIAdgroupStoreDataRecord",["immutable"],(function a(b,c,d,e,f,g){"use strict";var h,i,j=c("immutable").Record({isNewAdgroup:undefined,initialValue:undefined,adgroupSpec:undefined,previousAdgroupSpec:undefined,defaultPictureURI:undefined,defaultVideoDetails:undefined,isSlideshowProcessing:undefined,isSlideshowSelected:undefined,videoUploader:undefined,isVideoUploadSucess:undefined,videoUploadProgress:undefined,videoUploadStatus:undefined,selectedAttachmentIndex:undefined,adsCTAOptionsSpecs:undefined,isValidatingMessagePageCTA:undefined,isValidatingPhoneNumber:undefined,phoneNumberValidationError:undefined,instagramValidationException:undefined});h=babelHelpers.inherits(k,j);i=h&&h.prototype;function k(){h.apply(this,arguments)}f.exports=k}),null);
__d("AdsLWIBulkUpdateCTALinkDataActionPlugin",[],(function a(b,c,d,e,f,g){"use strict";var h={key:"lwiBulkUpdateCTALink",actionType:"AdsLWICreative.BULK_UPDATE_CTA_LINK"};f.exports=h}),null);
__d("AdsLWIAdgroupBulkUpdateCTALinkActionHandler",["AdsAPIAdgroupPaths","AdsDataAtom","AdsLWIAdgroupStoreDataRecord","AdsLWIBulkUpdateCTALinkDataActionPlugin","AdsSelectorUtils","immutable","adsLWIAdgroupIDsSelector"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h={type:c("AdsLWIBulkUpdateCTALinkDataActionPlugin").actionType,mutate:function i(j,k,l){__p&&__p();c("AdsDataAtom").waitFor(c("AdsSelectorUtils").getStoreDispatchTokens([c("adsLWIAdgroupIDsSelector")]));var m=c("adsLWIAdgroupIDsSelector")();if(!m)return k;var n=j.ctaLink,o=j.ctaType,p=c("AdsAPIAdgroupPaths").CREATIVE.OBJECT_STORY_SPEC.LINK_DATA.CALL_TO_ACTION,q=p.TYPE,r=p.VALUE;return k.withMutations(function(s){m.forEach(function(t){var u=k.get(t),v=u.adgroupSpec,w=v.getIn(q,n);if(w===o){var x=v.setIn(r.LINK,n),y=v.getIn(c("AdsAPIAdgroupPaths").ID);s.set(y,u.set("adgroupSpec",x))}})})}};f.exports=h}),null);
__d("AdsLWIAdgroupUtils",["AdsAPIAdgroupRecord","AdsVideoUploadStatus","immutable"],(function a(b,c,d,e,f,g){"use strict";var h={isNewAdgroup:false,initialValue:c("immutable").Map(),adgroupSpec:new(c("AdsAPIAdgroupRecord"))(),previousAdgroupSpec:c("immutable").Map(),defaultPictureURI:"",defaultVideoDetails:c("immutable").Map(),isSlideshowProcessing:false,isSlideshowSelected:false,videoUploader:null,isVideoUploadSucess:false,videoUploadProgress:0,videoUploadStatus:c("AdsVideoUploadStatus").NONE,selectedAttachmentIndex:0,adsCTAOptionsSpecs:null,isValidatingMessagePageCTA:false,isValidatingPhoneNumber:false,phoneNumberValidationError:null,instagramValidationException:null};f.exports={DEFAULT_ADGROUP_STORE_DATA:h}}),null);
__d("AdsLWIAdgroupStoreLoadDialogDataActionHandler",["AdsAPIAdgroupRecord","AdsBoostedComponentCommonV2LoadDialogDataDataActionPlugin","AdsLWIAdgroupStoreDataRecord","AdsLWIAdgroupUtils","immutable"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=c("AdsLWIAdgroupUtils").DEFAULT_ADGROUP_STORE_DATA,i={type:c("AdsBoostedComponentCommonV2LoadDialogDataDataActionPlugin").actionType,mutate:function j(k,l,m){var n=k.data.creative_store_data;if(!n||!n.adgroup_specs)return l;var o=l,p=n.adgroup_specs;p.forEach(function(q){var r=q.id,s=new(c("AdsAPIAdgroupRecord"))(q),t=new(c("AdsLWIAdgroupStoreDataRecord"))(babelHelpers["extends"]({},h,{isNewAdgroup:q.isNewAdgroup,adgroupSpec:s,defaultPictureURI:n.default_picture_uri,defaultVideoDetails:n.default_video_details}));o=o.set(r,t)});return o}};f.exports=i}),null);
__d("AdsLWIUpdateCreativeLinkDataHeadlineDataActionPlugin",[],(function a(b,c,d,e,f,g){"use strict";var h={key:"lwiUpdateCreativeLinkDataHeadline",actionType:"BoostedComponentCreative.UPDATE_CREATIVE_LINK_DATA_HEADLINE"};f.exports=h}),null);
__d("AdsLWICommonStoreState",["BoostedComponentV2Utils","immutable"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("BoostedComponentV2Utils").logDataError;h=babelHelpers.inherits(k,c("immutable").Record({storeDataMap:c("immutable").Map(),lastUsedKey:null,storeName:"NONE"}));i=h&&h.prototype;k.prototype.getDataByKey=function(l){var m=this.storeDataMap;return m&&m.has(l)?m.get(l):null};k.prototype.setDataByKey=function(l,m){__p&&__p();if(!m){j(this.storeName,"No Data: AdsLWICommonStoreState.setDataByKey",l.get("product"),l.get("targetID"));return this}var n=this.storeDataMap;if(!n){j(this.storeName,"No storeDataMap: AdsLWICommonStoreState.setDataByKey",l.get("product"),l.get("targetID"));n=c("immutable").Map()}n=n.set(l,m);return this.set("storeDataMap",n).set("lastUsedKey",l)};k.prototype.copyData=function(l,m){var n=this.storeDataMap.set(l,this.storeDataMap.get(m));return this.set("storeDataMap",n).set("lastUsedKey",l)};k.prototype.getLastUsedKey=function(){return this.lastUsedKey};function k(){h.apply(this,arguments)}f.exports=k}),null);
__d("AdsLWICreativeStore",["AdsDataAtom","AdsLWICommonStoreState","AdsLWICreativeStoreActionHandlers","BoostedComponentAppID","BoostedComponentFluxReduceStore","createObjectBy"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("createObjectBy")([].concat(c("AdsLWICreativeStoreActionHandlers")),function(m){return m.type}),k="AdsLWICreativeStore";h=babelHelpers.inherits(l,c("BoostedComponentFluxReduceStore"));i=h&&h.prototype;function l(){var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=i.constructor).call.apply(m,[this].concat(p)),this.storeName=k,n}l.prototype.getInitialState=function(){return new(c("AdsLWICommonStoreState"))({storeName:k})};l.prototype.reduce=function(m,n){var o=n.action,p=o.appID;if(p===c("BoostedComponentAppID").BOOSTED_POST||p===c("BoostedComponentAppID").BOOSTED_JOB_POST)return m;var q=j[o.type];if(q){var r=q.genExtraData&&q.genExtraData(o,m);return q.mutate(o,m,r)}return m};f.exports=new l(c("AdsDataAtom"))}),null);
__d("adsLWICommonStoreStateKeySelector",["AdsLWICommonStoreStateKeyRecord","adsCreateSelector","adsLWICurrentInstanceDataSelector"],(function a(b,c,d,e,f,g){"use strict";var h=c("adsCreateSelector")([c("adsLWICurrentInstanceDataSelector")],function(i){if(!i)return null;return new(c("AdsLWICommonStoreStateKeyRecord"))({boostID:i.boostID,pageID:i.pageID,product:i.product,targetID:i.targetID})},f.id+".selector");f.exports=h}),null);
__d("adsLWICreateNewKeyedStoreDataSelector",["adsCreateSelector","adsLWICommonStoreStateKeySelector"],(function a(b,c,d,e,f,g){"use strict";function h(i){return c("adsCreateSelector")([i,c("adsLWICommonStoreStateKeySelector")],function(j,k){if(!k)return null;return j.getDataByKey(k)},f.id)}f.exports=h}),null);
__d("adsLWICreativeStoreDataSelector",["AdsLWICreativeStore","AdsStoreUtils","adsLWICreateNewKeyedStoreDataSelector"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsStoreUtils").toSelector(c("AdsLWICreativeStore")),i=c("adsLWICreateNewKeyedStoreDataSelector")(h);f.exports=i}),null);
__d("AdsLWIAdgroupStoreUpdateCreativeHeadlineActionHandler",["invariant","AdsAPIAdgroupPaths","AdsDataAtom","AdsLWIAdgroupStoreDataRecord","AdsLWIUpdateCreativeLinkDataHeadlineDataActionPlugin","AdsSelectorUtils","immutable","adsLWICreativeStoreDataSelector"],(function a(b,c,d,e,f,g,h){"use strict";var i={type:c("AdsLWIUpdateCreativeLinkDataHeadlineDataActionPlugin").actionType,mutate:function j(k,l,m){c("AdsDataAtom").waitFor(c("AdsSelectorUtils").getStoreDispatchTokens([c("adsLWICreativeStoreDataSelector")]));var n=c("adsLWICreativeStoreDataSelector")();n||h(0);var o=k.headline,p=n.selectedAdgroupID,q=l.get(p),r=q.adgroupSpec,s=r.setIn(c("AdsAPIAdgroupPaths").CREATIVE.OBJECT_STORY_SPEC.LINK_DATA.NAME,o);return l.set(p,q.set("adgroupSpec",s))}};f.exports=i}),null);
__d("AdsLWIUpdateCreativeLinkDataBodyDataActionPlugin",[],(function a(b,c,d,e,f,g){"use strict";var h={key:"lwiUpdateCreativeLinkDataBody",actionType:"BoostedComponentCreative.UPDATE_CREATIVE_LINK_DATA_BODY"};f.exports=h}),null);
__d("AdsLWIAdgroupStoreUpdateCreativeLinkDataBodyActionHandler",["AdsAPIAdgroupPaths","AdsDataAtom","AdsLWIAdgroupStoreDataRecord","AdsLWIUpdateCreativeLinkDataBodyDataActionPlugin","AdsSelectorUtils","immutable","adsLWICreativeStoreDataSelector","nullthrows"],(function a(b,c,d,e,f,g){"use strict";var h={type:c("AdsLWIUpdateCreativeLinkDataBodyDataActionPlugin").actionType,mutate:function i(j,k,l){c("AdsDataAtom").waitFor(c("AdsSelectorUtils").getStoreDispatchTokens([c("adsLWICreativeStoreDataSelector")]));var m=c("adsLWICreativeStoreDataSelector")(),n=c("nullthrows")(m).selectedAdgroupID,o=k.get(n),p=o.adgroupSpec,q=p.setIn(c("AdsAPIAdgroupPaths").CREATIVE.OBJECT_STORY_SPEC.LINK_DATA.MESSAGE,j.body);return k.set(n,o.set("adgroupSpec",q))}};f.exports=h}),null);
__d("AdsLWIAdgroupStoreActionHandlers",["AdsLWIAdgroupStoreLoadDialogDataActionHandler","AdsLWIAdgroupStoreUpdateCreativeHeadlineActionHandler","AdsLWIAdgroupStoreUpdateCreativeLinkDataBodyActionHandler","AdsLWIAdgroupBulkUpdateCTALinkActionHandler"],(function a(b,c,d,e,f,g){"use strict";f.exports=[c("AdsLWIAdgroupStoreLoadDialogDataActionHandler"),c("AdsLWIAdgroupStoreUpdateCreativeHeadlineActionHandler"),c("AdsLWIAdgroupStoreUpdateCreativeLinkDataBodyActionHandler"),c("AdsLWIAdgroupBulkUpdateCTALinkActionHandler")]}),null);
__d("adsLWIAdgroupIDsSelector",["AdsLWIAdgroupListStoreKeyRecord","immutable","adsCreateSelector","adsLWIAdgroupStoreSelectors","adsLWICreativeStoreDataSelector","adsLWICurrentInstanceDataSelector"],(function a(b,c,d,e,f,g){"use strict";var h=c("adsLWIAdgroupStoreSelectors").adsLWIAdgroupListStoreSelector,i=c("adsCreateSelector")([c("adsLWICreativeStoreDataSelector"),c("adsLWICurrentInstanceDataSelector")],function(k,l){if(!k||!l)return null;return new(c("AdsLWIAdgroupListStoreKeyRecord"))({product:l.product,boostID:l.boostID,targetID:l.targetID,status:k.selectedRunStatusSet})},f.id+".adsLWIAdgroupListStoreKeySelector"),j=c("adsCreateSelector")([h,i],function(k,l){return l?k.get(l):null},f.id+".adsLWIAdgroupIDsSelector");f.exports=j}),null);
__d("AdsLWIAdgroupListStore",["AdsDataAtom","AdsLWIAdgroupListStoreActionHandlers","BoostedComponentFluxReduceStore","immutable","createObjectBy"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("createObjectBy")([].concat(c("AdsLWIAdgroupListStoreActionHandlers")),function(m){return m.type}),k="AdsLWIAdgroupListStore";h=babelHelpers.inherits(l,c("BoostedComponentFluxReduceStore"));i=h&&h.prototype;function l(){var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=i.constructor).call.apply(m,[this].concat(p)),this.storeName=k,n}l.prototype.getInitialState=function(){return c("immutable").Map()};l.prototype.reduce=function(m,n){var o=n.action,p=j[o.type];if(p){var q=p.genExtraData&&p.genExtraData(o,m);return p.mutate(o,m,q)}return m};f.exports=new l(c("AdsDataAtom"))}),null);
__d("adsLWIAdgroupStoreSelectors",["AdsLWIAdgroupListStore","AdsLWIAdgroupStore","AdsStoreUtils"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsStoreUtils").toSelector(c("AdsLWIAdgroupListStore")),i=c("AdsStoreUtils").toSelector(c("AdsLWIAdgroupStore"));f.exports={adsLWIAdgroupListStoreSelector:h,adsLWIAdgroupStoreSelector:i}}),null);
__d("AdsLWIAdgroupStore",["AdsDataAtom","AdsLWIAdgroupStoreActionHandlers","AdsLWIAdgroupStoreDataRecord","BoostedComponentFluxReduceStore","immutable","createObjectBy"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("createObjectBy")([].concat(c("AdsLWIAdgroupStoreActionHandlers")),function(m){return m.type}),k="AdsLWIAdgroupStore";h=babelHelpers.inherits(l,c("BoostedComponentFluxReduceStore"));i=h&&h.prototype;function l(){var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=i.constructor).call.apply(m,[this].concat(p)),this.storeName=k,n}l.prototype.getInitialState=function(){return c("immutable").Map()};l.prototype.reduce=function(m,n){var o=n.action,p=j[o.type];if(p){var q=p.genExtraData&&p.genExtraData(o,m);return p.mutate(o,m,q)}return m};f.exports=new l(c("AdsDataAtom"))}),null);
__d("AdsLWIRetargetingSpecStoreDataRecord",["immutable"],(function a(b,c,d,e,f,g){"use strict";var h,i,j=c("immutable").Record({dataLoaded:false,productSetID:undefined,adgroupSpec:null});h=babelHelpers.inherits(k,j);i=h&&h.prototype;function k(){h.apply(this,arguments)}f.exports=k}),null);
__d("AdsLWIRetargetingSpecStoreFetchDialogDataActionHandler",["AdsBoostedComponentCommonV2FetchDialogDataDataAction","AdsLWIRetargetingSpecStoreDataRecord","AdsLWIUseCommonStoreStateKeyActionHandler"],(function a(b,c,d,e,f,g){"use strict";var h=babelHelpers["extends"]({},c("AdsLWIUseCommonStoreStateKeyActionHandler"),{type:c("AdsBoostedComponentCommonV2FetchDialogDataDataAction").actionType,mutate:function i(j,k,l){var m=l&&l.key;return m?k.setDataByKey(m,new(c("AdsLWIRetargetingSpecStoreDataRecord"))()):k}});f.exports=h}),null);
__d("AdsLWIRetargetingSpecStoreLoadDialogDataActionHandler",["AdsBoostedComponentCommonV2LoadDialogDataDataAction","AdsLWIRetargetingSpecStoreDataRecord","AdsLWIUseCommonStoreStateKeyActionHandler","immutable"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=babelHelpers["extends"]({},c("AdsLWIUseCommonStoreStateKeyActionHandler"),{type:c("AdsBoostedComponentCommonV2LoadDialogDataDataAction").actionType,mutate:function i(j,k,l){var m=l&&l.key,n=j.data.retargeting_spec_store_data;if(!n||!m)return k;var o=k.getDataByKey(m);if(!o)o=new(c("AdsLWIRetargetingSpecStoreDataRecord"))();o=o.withMutations(function(p){p.set("dataLoaded",true).set("productSetID",n.product_set_id).set("adgroupSpec",c("immutable").fromJS(n.adgroup_spec))});return k.setDataByKey(m,o)}});f.exports=h}),null);
__d("AdsLWIRetargetingSpecStoreActionHandlers",["AdsLWIRetargetingSpecStoreFetchDialogDataActionHandler","AdsLWIRetargetingSpecStoreLoadDialogDataActionHandler"],(function a(b,c,d,e,f,g){"use strict";f.exports=[c("AdsLWIRetargetingSpecStoreFetchDialogDataActionHandler"),c("AdsLWIRetargetingSpecStoreLoadDialogDataActionHandler")]}),null);
__d("AdsLWICreativeRefreshStore",["AdsDataAtom","AdsLWICreativeRefreshStoreActionHandlers","BoostedComponentFluxReduceStore","BoostedComponentStoreState","createObjectBy"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("BoostedComponentStoreState").BoostedComponentState,k=c("createObjectBy")([].concat(c("AdsLWICreativeRefreshStoreActionHandlers")),function(n){return n.type}),l="AdsLWICreativeRefreshStore";h=babelHelpers.inherits(m,c("BoostedComponentFluxReduceStore"));i=h&&h.prototype;function m(){var n,o;for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=i.constructor).call.apply(n,[this].concat(q)),this.storeName=l,o}m.prototype.getInitialState=function(){return new j({storeName:l})};m.prototype.reduce=function(n,o){var p=k[o.type];if(p){var q=p.genExtraData&&p.genExtraData(o,n);return p.mutate(o,n,q)}return n};f.exports=new m(c("AdsDataAtom"))}),null);
__d("AdsLWIRetargetingSpecStore",["AdsDataAtom","AdsLWICommonStoreState","AdsLWIRetargetingSpecStoreActionHandlers","AdsLWIRetargetingSpecStoreDataRecord","BoostedComponentFluxReduceStore","createObjectBy"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("createObjectBy")([].concat(c("AdsLWIRetargetingSpecStoreActionHandlers")),function(m){return m.type}),k="AdsLWIRetargetingSpecStore";h=babelHelpers.inherits(l,c("BoostedComponentFluxReduceStore"));i=h&&h.prototype;function l(){var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=i.constructor).call.apply(m,[this].concat(p)),this.storeName=k,n}l.prototype.getInitialState=function(){return new(c("AdsLWICommonStoreState"))({storeName:k})};l.prototype.reduce=function(m,n){var o=n.action,p=j[o.type];if(p){var q=p.genExtraData&&p.genExtraData(o,m);return p.mutate(o,m,q)}return m};f.exports=new l(c("AdsDataAtom"))}),null);
__d("AdsTargetingFallbackErrorNotice.react",["fbt","React","SUIBusinessTheme","SUINotice.react"],(function a(b,c,d,e,f,g,h){"use strict";var i=h._("Sorry, an unexpected error happened.");function j(){return c("React").createElement(c("SUINotice.react"),{style:{marginBottom:"12px"},theme:c("SUIBusinessTheme"),type:"error"},i)}f.exports=j}),null);
__d("BoostedAutomatedAdsBudgetEstimationStoreValidator",["AdproObjectiveType","BoostedAutomatedAdsStrings","immutable"],(function a(b,c,d,e,f,g){"use strict";var h=function h(i,j,k,l,m,n){var o=c("immutable").List();if(j<l)o=o.push(n===c("AdproObjectiveType").LEAD_GENERATION?c("BoostedAutomatedAdsStrings").getMinBudgetErrorForLeadGen(i,m,l):c("BoostedAutomatedAdsStrings").getMinBudgetError(i,m,l));else if(j>k)o=o.push(c("BoostedAutomatedAdsStrings").getMaxBudgetError(i,m,k));return o};f.exports={getValidateBudgetErrors:h}}),null);
__d("BoostedAutomatedAdsTargetingValidator",["BoostedAutomatedAdsStrings","immutable"],(function a(b,c,d,e,f,g){"use strict";var h=function h(i){var j=c("immutable").List();if(i===0)j=j.push(c("BoostedAutomatedAdsStrings").TARGETING_SECTION_NO_LOCATION_ERROR);return j};f.exports={getValidateTargetingErrors:h}}),null);
__d("BoostedAutomatedAdsValidationStoreData",["AdsAPIAdgroupFields","ApiAdCreativeFields","ApiAdCreativeStorySpecFields","ApiCallToActionFields","ApiObjectStorySpecLinkFields","immutable"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("AdsAPIAdgroupFields").CREATIVE,k=c("ApiAdCreativeFields").OBJECT_STORY_SPEC,l=c("ApiAdCreativeStorySpecFields").LINK_DATA,m=c("ApiCallToActionFields").TYPE,n=c("ApiObjectStorySpecLinkFields").CALL_TO_ACTION,o=c("ApiObjectStorySpecLinkFields").MESSAGE,p=c("ApiObjectStorySpecLinkFields").NAME,q=c("ApiObjectStorySpecLinkFields").PICTURE;h=babelHelpers.inherits(r,c("immutable").Record({bodyErrorsByAdgroup:c("immutable").List(),callToActionErrorsByAdgroup:c("immutable").List(),headlineErrorsByAdgroup:c("immutable").List(),imageErrorsByAdgroup:c("immutable").List(),urlErrors:c("immutable").List(),budgetErrors:c("immutable").List(),targetingErrors:c("immutable").List()}));i=h&&h.prototype;r.prototype.clearCreativeErrors=function(){return this.withMutations(function(s){s.merge({callToActionErrorsByAdgroup:c("immutable").List(),bodyErrorsByAdgroup:c("immutable").List(),headlineErrorsByAdgroup:c("immutable").List(),imageErrorsByAdgroup:c("immutable").List()})})};r.prototype.setCreativeErrorsForNewAdgroup=function(s){return this.withMutations(function(t){t.merge({callToActionErrorsByAdgroup:this.getCallToActionErrorsByAdgroup().push(s.get("callToActionErrors")),bodyErrorsByAdgroup:this.getBodyErrorsByAdgroup().push(s.get("bodyErrors")),headlineErrorsByAdgroup:this.getHeadlineErrorsByAdgroup().push(s.get("headlineErrors")),imageErrorsByAdgroup:this.getImageErrorsByAdgroup().push(s.get("imageError"))})}.bind(this))};r.prototype.setValidateErrorsForSelectedFieldForSelectedAdgroup=function(s,t,u){switch(s){case n:return this.setIn(["callToActionErrorsByAdgroup",u],t);case o:return this.setIn(["bodyErrorsByAdgroup",u],t);case p:return this.setIn(["headlineErrorsByAdgroup",u],t);case q:return this.setIn(["imageErrorsByAdgroup",u],t);default:return this}};r.prototype.setValidateErrorsForSelectedFieldForAllAdgroups=function(s,t){switch(s){case n:return this.set("callToActionErrorsByAdgroup",t);case o:return this.set("bodyErrorsByAdgroup",t);case p:return this.set("headlineErrorsByAdgroup",t);case q:return this.set("imageErrorsByAdgroup",t);default:return this}};r.prototype.setCallToActionErrorsForSelectedType=function(s,t,u){var v=this.getCallToActionErrorsByAdgroup().withMutations(function(w){s.map(function(x,y){var z=x.getIn([j,k,l,n],null);if(z&&z.get(m)===u)w=w.set(y,t)});return w});return this.set("callToActionErrorsByAdgroup",v)};r.prototype.setTargetingErrors=function(s){return this.set("targetingErrors",s)};r.prototype.setBudgetErrors=function(s){return this.set("budgetErrors",s)};r.prototype.setURLErrors=function(s){return this.set("urlErrors",s)};r.prototype.getTargetingErrors=function(){return this.targetingErrors};r.prototype.getBudgetErrors=function(){return this.budgetErrors};r.prototype.getCallToActionErrorsByAdgroup=function(){return this.callToActionErrorsByAdgroup};r.prototype.getBodyErrorsByAdgroup=function(){return this.bodyErrorsByAdgroup};r.prototype.getHeadlineErrorsByAdgroup=function(){return this.headlineErrorsByAdgroup};r.prototype.getURLErrors=function(){return this.urlErrors};r.prototype.getImageErrorsByAdgroup=function(){return this.imageErrorsByAdgroup};r.prototype.getCreativeErrorsByAdgroups=function(){return this.bodyErrorsByAdgroup.map(function(s,t){var u=this.imageErrorsByAdgroup.get(t);s=s.toList();if(u)s=s.push(u);return s.concat(this.headlineErrorsByAdgroup.get(t).toList()).concat(this.urlErrors).concat(this.callToActionErrorsByAdgroup.get(t))}.bind(this))};r.prototype.getHasErrors=function(){var s=this.getCreativeErrorsByAdgroups().push(this.budgetErrors,this.targetingErrors);return s.some(function(t){return!t.isEmpty()})};r.prototype.getHasCreativeErrorsByAdgroup=function(){return this.getCreativeErrorsByAdgroups().map(function(s){return!s.isEmpty()})};function r(){h.apply(this,arguments)}f.exports=r}),null);
__d("BoostedComponentConstraintStoreData",["BoostedComponentBaseStoreData","immutable"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j={blacklist_countries:c("immutable").List([]),max_age:0,max_city_num:0,max_country_num:0,max_daily_budget:0,max_lifetime_budget_per_day:0,max_monthly_budget:0,max_region_num:0,min_age:0,min_call_now_age:0,min_daily_budget:0,min_lifetime_budget:0,min_lifetime_budget_per_day:0,min_monthly_budget:0,suggested_min_daily_budget:0,whitelist_countries:c("immutable").List([])};h=babelHelpers.inherits(k,c("BoostedComponentBaseStoreData")(j));i=h&&h.prototype;k.prototype.getMaxAge=function(){return this.max_age};k.prototype.getMinAge=function(){return this.min_age};k.prototype.getBlacklistCountries=function(){return this.blacklist_countries};k.prototype.getWhitelistCountries=function(){return this.whitelist_countries};k.prototype.getMaxDailyBudget=function(){return this.max_daily_budget};k.prototype.getMaxLifetimeBudgetPerDay=function(){return this.max_lifetime_budget_per_day};k.prototype.getMinDailyBudget=function(){return this.min_daily_budget};k.prototype.getMinLifetimeBudget=function(){return this.min_lifetime_budget};k.prototype.getMinLifetimeBudgetPerDay=function(){return this.min_lifetime_budget_per_day};k.prototype.getMinMonthlyBudget=function(){return this.min_monthly_budget};k.prototype.getMaxMonthlyBudget=function(){return this.max_monthly_budget};k.prototype.getMinCallNowAge=function(){return this.min_call_now_age};function k(){h.apply(this,arguments)}f.exports=k}),null);
__d("BoostedComponentConstraintStoreV2",["AdsBoostedComponentCommonV2CreateSuccessWithBoostIdDataAction","AdsBoostedComponentCommonV2FetchDialogDataDataAction","AdsBoostedComponentCommonV2LoadDialogChangeDataDataAction","AdsBoostedComponentCommonV2LoadDialogDataDataAction","AdsDataAtom","BoostedComponentConstraintStoreData","BoostedComponentFetchActionTypesV2","BoostedComponentFluxReduceStore","BoostedComponentStoreState","BoostedComponentV2Utils"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("BoostedComponentStoreState").BoostedComponentState,k=c("BoostedComponentStoreState").getKey,l=c("BoostedComponentV2Utils").getKeyData,m="BoostedComponentConstraintStoreV2";h=babelHelpers.inherits(n,c("BoostedComponentFluxReduceStore"));i=h&&h.prototype;function n(){var o,p;for(var q=arguments.length,r=Array(q),s=0;s<q;s++)r[s]=arguments[s];return p=(o=i.constructor).call.apply(o,[this].concat(r)),this.storeName=m,p}n.prototype.getInitialState=function(){return new j({storeName:m})};n.prototype.getDataByKey=function(o){return this.getState().getDataByKey(o)};n.prototype.reduce=function(o,p){__p&&__p();var q=p.action,r=l(q),s=r.appID,t=r.boostID,u=r.targetID;if(!s)return o;var v=k(s,u,t);switch(q.type){case c("AdsBoostedComponentCommonV2FetchDialogDataDataAction").actionType:case c("BoostedComponentFetchActionTypesV2").FETCH_ALL_DATA:return o.setDataByKey(v,new(c("BoostedComponentConstraintStoreData"))());case c("BoostedComponentFetchActionTypesV2").LOAD_ALL_DATA:case c("AdsBoostedComponentCommonV2LoadDialogDataDataAction").actionType:var w=q.data.constraint_store_data;w.dataLoaded=true;return o.mergeDataByKey(v,w);case c("AdsBoostedComponentCommonV2LoadDialogChangeDataDataAction").actionType:var x=q.data.constraint_store_data;if(x)return o.mergeDataByKey(v,x);return o;case c("AdsBoostedComponentCommonV2CreateSuccessWithBoostIdDataAction").actionType:return o.copyData(v,s,u,q.oldBoostID);default:return o}};f.exports=new n(c("AdsDataAtom"))}),null);
__d("BoostedAutomatedAdsValidationStoreV2",["AdsBoostedComponentAdAccountV2LoadAdAccountDataDataAction","AdsBoostedComponentAudienceV2UpdateTargetSpecDataAction","AdsBoostedComponentCommonV2CreateSuccessWithBoostIdDataAction","AdsCallToActionTypes","AdsDataAtom","AdsImageStore","AdsLWIBulkUpdateCTALinkDataAction","AdsLWIUpdateCreativeLinkDataBodyDataAction","AdsLWIUpdateCreativeLinkDataHeadlineDataAction","AdsLWIValidationStoreActionHandlers","BoostedAutomatedAdsBudgetStoreV2","BoostedAutomatedAdsDialogUIActionTypesV2","BoostedAutomatedAdsMultiAdgroupSpecActionTypesV2","BoostedAutomatedAdsMultiAdgroupSpecStoreV2","BoostedAutomatedAdsObjectiveActionTypesV2","BoostedAutomatedAdsObjectiveStoreV2","BoostedAutomatedAdsValidationStoreData","BoostedComponentAdAccountStoreV2","BoostedComponentAppID","BoostedComponentAppIDUtils","BoostedComponentAudienceImmStoreV2","BoostedComponentBudgetAndDurationActionTypesV2","BoostedComponentBudgetType","BoostedComponentCommonActionTypesV2","BoostedComponentConstraintStoreV2","BoostedComponentContainerUtils","BoostedComponentExistingAdInfoStoreV2","BoostedComponentFetchActionTypesV2","BoostedComponentStoreState","BoostedComponentStringsV2","BoostedComponentV2Utils","FluxReduceStore","immutable","createObjectBy","ApiObjectStorySpecLinkFields","ApiAdCreativeStorySpecFields","ApiAdCreativeFields","AdsAPIAdgroupFields","BoostedComponentCreativeStoreValidator","BoostedAutomatedAdsMultiAdgroupSpecStoreValidator","BoostedAutomatedAdsBudgetEstimationStoreValidator","BoostedAutomatedAdsTargetingValidator","AdsImageActionType"],(function aa(ba,a,ca,da,b,ea){"use strict";__p&&__p();var c,d,e=a("BoostedComponentContainerUtils").isDataLoaded,f=a("BoostedComponentStoreState").BoostedComponentState,g=a("BoostedComponentStoreState").getIDsFromKey,fa=a("BoostedComponentStoreState").getKey,ga=a("BoostedComponentV2Utils").logFluxStoreError,ha=a("BoostedComponentV2Utils").getKeyData,ia=a("createObjectBy")([].concat(a("AdsLWIValidationStoreActionHandlers")),function(v){return v.type}),h=[a("AdsImageStore").getDispatchToken(),a("BoostedComponentAdAccountStoreV2").getDispatchToken(),a("BoostedComponentAudienceImmStoreV2").getDispatchToken(),a("BoostedAutomatedAdsBudgetStoreV2").getDispatchToken(),a("BoostedComponentExistingAdInfoStoreV2").getDispatchToken(),a("BoostedAutomatedAdsMultiAdgroupSpecStoreV2").getDispatchToken(),a("BoostedAutomatedAdsObjectiveStoreV2").getDispatchToken()],i=a("ApiObjectStorySpecLinkFields").CALL_TO_ACTION,ja=a("ApiObjectStorySpecLinkFields").LINK,j=a("ApiObjectStorySpecLinkFields").MESSAGE,k=a("ApiObjectStorySpecLinkFields").NAME,l=a("ApiAdCreativeStorySpecFields").LINK_DATA,ka=a("ApiAdCreativeStorySpecFields").VIDEO_DATA,m=a("ApiAdCreativeFields").OBJECT_STORY_SPEC,n=a("AdsAPIAdgroupFields").CREATIVE,o=a("BoostedComponentCreativeStoreValidator").getValidateBodyErrors,p=a("BoostedComponentCreativeStoreValidator").getHeadlineErrors,la=a("BoostedAutomatedAdsMultiAdgroupSpecStoreValidator").getCreativeErrors,ma=a("BoostedAutomatedAdsMultiAdgroupSpecStoreValidator").getURLErrors,q=a("BoostedAutomatedAdsMultiAdgroupSpecStoreValidator").getValidateCallToActionErrors,na=a("BoostedAutomatedAdsBudgetEstimationStoreValidator").getValidateBudgetErrors,r=a("BoostedAutomatedAdsTargetingValidator").getValidateTargetingErrors,oa=a("AdsImageActionType").BATCH_LOADED,pa=a("AdsImageActionType").LOAD_IMAGES_SUCCESS,qa=a("AdsImageActionType").LOAD_DIMENSION_SUCCESS,ra=a("immutable").Set([oa,pa,qa]),s=a("immutable").Set([a("AdsBoostedComponentAdAccountV2LoadAdAccountDataDataAction").actionType]),t=function t(v,w,x,y,z,A){return v.getIn([n,m,ka],null)?a("immutable").Map().withMutations(function(B){return B.set("bodyErrors",a("immutable").Map()).set("headlineErrors",a("immutable").Map()).set("imageErrors",a("immutable").Map()).set("callToActionErrors",a("immutable").List())}):la(v.getIn([n,m,l],null),w,x,y,z,A)};c=babelHelpers.inherits(u,a("FluxReduceStore"));d=c&&c.prototype;u.prototype.getInitialState=function(){return new f({storeName:"BoostedAutomatedAdsValidationStoreV2"})};u.prototype.getDataByKey=function(v){return this.getState().getDataByKey(v)};u.prototype.$BoostedAutomatedAdsValidationStoreV21=function(v,w){a("AdsDataAtom").waitFor(h);var x=a("BoostedComponentAdAccountStoreV2").getState(),y=a("BoostedComponentAudienceImmStoreV2").getDataByKey(w),z=a("BoostedComponentConstraintStoreV2").getDataByKey(w),A=a("BoostedAutomatedAdsMultiAdgroupSpecStoreV2").getDataByKey(w),B=a("BoostedComponentExistingAdInfoStoreV2").getDataByKey(w);if(!e([x,y,z,A]))return v;var C=A.isPageMessagingDisabled(),D=B.getIsBoosted()?B.getCampaignAdAccountID():x.getSelectedAccountID(),E=A.getImages(D);return v.withMutations(function(F){F=F.clearCreativeErrors();A.getAdgroupSpecs().map(function(G,H){F.setCreativeErrorsForNewAdgroup(t(G,C,E.get(H),y.getMinAge(),z.getMinCallNowAge(),A.getValidatePhoneNumberError()))})})};u.prototype.$BoostedAutomatedAdsValidationStoreV22=function(v,w,x){a("AdsDataAtom").waitFor(h);var y=a("BoostedComponentAdAccountStoreV2").getState(),z=a("BoostedAutomatedAdsBudgetStoreV2").getDataByKey(x),A=a("BoostedComponentConstraintStoreV2").getDataByKey(x),B=a("BoostedComponentExistingAdInfoStoreV2").getDataByKey(x),C=a("BoostedAutomatedAdsObjectiveStoreV2").getDataByKey(x);if(!e([y,z,A,B,C]))return v;var D=B.getBudgetType(),E=C.getProgramObjective(),F=a("immutable").List(),G=w.dailyBudget||z.getSelectedBudgetValue();F=na(D,G,A.getMaxDailyBudget(),A.getMinDailyBudget(),y.getCurrency(),E);return v.setBudgetErrors(F)};u.prototype.$BoostedAutomatedAdsValidationStoreV23=function(v,w){a("AdsDataAtom").waitFor(h);var x=a("BoostedComponentExistingAdInfoStoreV2").getDataByKey(w),y=a("BoostedAutomatedAdsMultiAdgroupSpecStoreV2").getDataByKey(w),z=a("BoostedAutomatedAdsObjectiveStoreV2").getDataByKey(w),A=y.getAdgroupSpecs().first(),B=A?ma(x.getIsBoosted(),z.getProgramObjective(),A.getIn([n,m,l,ja],null)):a("immutable").List();return v.setURLErrors(B)};u.prototype.reduce=function(v,w){__p&&__p();var x,y=w.action,z=ha(y),A=z.appID,B=z.boostID;try{if(ra.contains(y.type)){var C=v.getLastUsedKey();if(!C)return v;var D=g(C),E=D[0];if(!a("BoostedComponentAppIDUtils").isBoostedAutomatedAds(E))return v;var F=v.getDataByKey(C),G=this.$BoostedAutomatedAdsValidationStoreV21(F,C);return v.setDataByKey(C,G)}if(!a("BoostedComponentAppIDUtils").isBoostedAutomatedAds(A)&&!s.contains(y.type))return v;var H=s.contains(y.type)?v.getLastUsedKey():fa(A,null,B);if(!H)return v;var I=v.getDataByKey(H);switch(y.type){case a("AdsBoostedComponentCommonV2CreateSuccessWithBoostIdDataAction").actionType:return v.copyData(H,A,null,y.oldBoostID);case a("BoostedAutomatedAdsDialogUIActionTypesV2").UNDO_SETTINGS_CHANGES:I=this.$BoostedAutomatedAdsValidationStoreV23(I,H);a("AdsDataAtom").waitFor([a("BoostedComponentAudienceImmStoreV2").getDispatchToken()]);var J=a("BoostedComponentAudienceImmStoreV2").getDataByKey(H),sa=r(J.getLocationsNum());I=I.setTargetingErrors(sa);case a("BoostedComponentBudgetAndDurationActionTypesV2").INPUT_CUSTOM_BUDGET:case a("BoostedComponentBudgetAndDurationActionTypesV2").UPDATE_BUDGET:case a("AdsBoostedComponentAdAccountV2LoadAdAccountDataDataAction").actionType:return v.setDataByKey(H,this.$BoostedAutomatedAdsValidationStoreV22(I,y,H));case a("BoostedComponentFetchActionTypesV2").FETCH_ALL_DATA:case a("BoostedComponentCommonActionTypesV2").FETCH_BUTTON_DATA:case a("BoostedComponentCommonActionTypesV2").FETCH_DIALOG_DATA:case a("BoostedComponentCommonActionTypesV2").LOAD_INITIAL_DATA:return v.setDataByKey(H,new(a("BoostedAutomatedAdsValidationStoreData"))());case a("BoostedComponentFetchActionTypesV2").LOAD_ALL_DATA:case a("BoostedComponentCommonActionTypesV2").LOAD_DIALOG_DATA:var ta=v.getDataByKey(H),ua=this.$BoostedAutomatedAdsValidationStoreV21(ta,H);return v.setDataByKey(H,ua);case a("BoostedAutomatedAdsMultiAdgroupSpecActionTypesV2").ADD_NEW_ADGROUP:case a("BoostedAutomatedAdsMultiAdgroupSpecActionTypesV2").DUPLICATE_SELECTED_AD:case a("BoostedAutomatedAdsMultiAdgroupSpecActionTypesV2").CANCEL_IMAGE_SELECTION:case a("BoostedAutomatedAdsMultiAdgroupSpecActionTypesV2").REMOVE_SELECTED_AD:case a("BoostedAutomatedAdsMultiAdgroupSpecActionTypesV2").UPDATE_IMAGES:var G=this.$BoostedAutomatedAdsValidationStoreV21(I,H);return v.setDataByKey(H,G);case a("BoostedAutomatedAdsMultiAdgroupSpecActionTypesV2").APPLY_TO_ALL:a("AdsDataAtom").waitFor([a("BoostedAutomatedAdsMultiAdgroupSpecStoreV2").getDispatchToken()]);var K=a("BoostedAutomatedAdsMultiAdgroupSpecStoreV2").getDataByKey(H),va=K.getNumberOfAds(),L=K.getSelectedAdgroupIndex(),M=y.field,N=void 0;switch(M){case i:N=I.getCallToActionErrorsByAdgroup().get(L);break;case j:N=I.getBodyErrorsByAdgroup().get(L);break;case k:N=I.getHeadlineErrorsByAdgroup().get(L);break;default:break}var O=I.setValidateErrorsForSelectedFieldForAllAdgroups(M,a("immutable").List(Array(va).fill(N)));return v.setDataByKey(H,O);case a("BoostedAutomatedAdsMultiAdgroupSpecActionTypesV2").UNDO_APPLY_TO_ALL:var x=function(){__p&&__p();a("AdsDataAtom").waitFor([a("BoostedAutomatedAdsMultiAdgroupSpecStoreV2").getDispatchToken()]);var J=a("BoostedComponentAudienceImmStoreV2").getDataByKey(H),ib=a("BoostedComponentConstraintStoreV2").getDataByKey(H),K=a("BoostedAutomatedAdsMultiAdgroupSpecStoreV2").getDataByKey(H),M=y.field,N=[];K.getAdgroupSpecs().map(function(jb){var $=jb.getIn([n,m,l],null);switch(M){case i:N.push(q($.get(i),K.isPageMessagingDisabled(),ib.getMinCallNowAge(),J.getMinAge(),K.getValidatePhoneNumberError()));break;case j:N.push(o($.get(j),a("BoostedComponentAppID").BOOSTED_AUTOMATED_ADS));break;case k:N.push(p($.get(k)));break;default:break}});var O=I.setValidateErrorsForSelectedFieldForAllAdgroups(M,a("immutable").List(N));return{v:v.setDataByKey(H,O)}}();if(typeof x==="object")return x.v;case a("AdsLWIBulkUpdateCTALinkDataAction").actionType:a("AdsDataAtom").waitFor([a("BoostedAutomatedAdsMultiAdgroupSpecStoreV2").getDispatchToken()]);var wa=a("BoostedComponentAudienceImmStoreV2").getDataByKey(H),xa=a("BoostedComponentConstraintStoreV2").getDataByKey(H),P=a("BoostedAutomatedAdsMultiAdgroupSpecStoreV2").getDataByKey(H),ya=q(P.getSelectedAdgroupCreativeSpec().getIn([m,l,i],null),P.isPageMessagingDisabled(),xa.getMinCallNowAge(),wa.getMinAge(),P.getValidatePhoneNumberError()),za=y.ctaType,Aa=I.setCallToActionErrorsForSelectedType(P.getAdgroupSpecs(),ya,za);return v.setDataByKey(H,Aa);case a("AdsBoostedComponentAudienceV2UpdateTargetSpecDataAction").actionType:a("AdsDataAtom").waitFor([a("BoostedAutomatedAdsMultiAdgroupSpecStoreV2").getDispatchToken(),a("BoostedComponentAudienceImmStoreV2").getDispatchToken()]);var Q=a("BoostedComponentAudienceImmStoreV2").getDataByKey(H),Ba=r(Q.getLocationsNum()),R=I.setTargetingErrors(Ba),S=a("BoostedAutomatedAdsMultiAdgroupSpecStoreV2").getDataByKey(H),T=S.getCTAsOfType(a("AdsCallToActionTypes").TYPES.CALL_NOW.name);if(T.size===0)return v.setDataByKey(H,R);var Ca=a("BoostedComponentConstraintStoreV2").getDataByKey(H),Da=q(T.first(),S.isPageMessagingDisabled(),Ca.getMinCallNowAge(),Q.getMinAge(),S.getValidatePhoneNumberError());R=R.setCallToActionErrorsForSelectedType(S.getAdgroupSpecs(),Da,a("AdsCallToActionTypes").TYPES.CALL_NOW.name);return v.setDataByKey(H,R);case a("BoostedAutomatedAdsMultiAdgroupSpecActionTypesV2").PHONE_NUMBER_VALIDATION_SUCCESS:a("AdsDataAtom").waitFor([a("BoostedAutomatedAdsMultiAdgroupSpecStoreV2").getDispatchToken()]);var Ea=a("BoostedComponentAudienceImmStoreV2").getDataByKey(H),Fa=a("BoostedComponentConstraintStoreV2").getDataByKey(H),U=a("BoostedAutomatedAdsMultiAdgroupSpecStoreV2").getDataByKey(H),Ga=q(U.getSelectedAdgroupCreativeSpec().getIn([m,l,i],null),U.isPageMessagingDisabled(),Fa.getMinCallNowAge(),Ea.getMinAge(),U.getValidatePhoneNumberError()),Ha=I.setCallToActionErrorsForSelectedType(U.getAdgroupSpecs(),Ga,a("AdsCallToActionTypes").TYPES.CALL_NOW.name);return v.setDataByKey(H,Ha);case a("BoostedAutomatedAdsMultiAdgroupSpecActionTypesV2").CHANGE_CTA_TYPE:a("AdsDataAtom").waitFor([a("BoostedAutomatedAdsMultiAdgroupSpecStoreV2").getDispatchToken()]);var Ia=a("BoostedComponentAudienceImmStoreV2").getDataByKey(H),Ja=a("BoostedComponentConstraintStoreV2").getDataByKey(H),V=a("BoostedAutomatedAdsMultiAdgroupSpecStoreV2").getDataByKey(H),Ka=q(V.getSelectedAdgroupCreativeSpec().getIn([m,l,i],null),V.isPageMessagingDisabled(),Ja.getMinCallNowAge(),Ia.getMinAge(),V.getValidatePhoneNumberError()),La=I.setIn(["callToActionErrorsByAdgroup",V.getSelectedAdgroupIndex()],Ka);return v.setDataByKey(H,La);case a("BoostedAutomatedAdsMultiAdgroupSpecActionTypesV2").GET_PAGE_MESSAGE_SETTING_SUCCESS:case a("BoostedAutomatedAdsMultiAdgroupSpecActionTypesV2").PAGE_MESSAGING_ENABLE_REQUEST_SUCCESS:a("AdsDataAtom").waitFor([a("BoostedAutomatedAdsMultiAdgroupSpecStoreV2").getDispatchToken()]);var Ma=y.isMessagingEnabled,Na=Ma?a("immutable").List():a("immutable").List([a("BoostedComponentStringsV2").PAGE_MESSAGES_DISABLED_ERROR]),Oa=a("BoostedAutomatedAdsMultiAdgroupSpecStoreV2").getDataByKey(H),Pa=I.setCallToActionErrorsForSelectedType(Oa.getAdgroupSpecs(),Na,a("AdsCallToActionTypes").TYPES.MESSAGE_PAGE.name);return v.setDataByKey(H,Pa);case a("BoostedAutomatedAdsMultiAdgroupSpecActionTypesV2").GET_PAGE_MESSAGE_SETTING_FAIL:case a("BoostedAutomatedAdsMultiAdgroupSpecActionTypesV2").PAGE_MESSAGING_ENABLE_REQUEST_FAIL:a("AdsDataAtom").waitFor([a("BoostedAutomatedAdsMultiAdgroupSpecStoreV2").getDispatchToken()]);var Qa=a("BoostedAutomatedAdsMultiAdgroupSpecStoreV2").getDataByKey(H),Ra=a("immutable").List([a("BoostedComponentStringsV2").CALL_TO_ACTION_VALIDATION_FAILED]),Sa=I.setCallToActionErrorsForSelectedType(Qa.getAdgroupSpecs(),Ra,a("AdsCallToActionTypes").TYPES.MESSAGE_PAGE.name);return v.setDataByKey(H,Sa);case a("AdsLWIUpdateCreativeLinkDataHeadlineDataAction").actionType:a("AdsDataAtom").waitFor([a("BoostedAutomatedAdsMultiAdgroupSpecStoreV2").getDispatchToken()]);var Ta=a("BoostedAutomatedAdsMultiAdgroupSpecStoreV2").getDataByKey(H),Ua=y.headline,Va=p(Ua),Wa=I.setValidateErrorsForSelectedFieldForSelectedAdgroup(k,Va,Ta.getSelectedAdgroupIndex());return v.setDataByKey(H,Wa);case a("AdsLWIUpdateCreativeLinkDataBodyDataAction").actionType:a("AdsDataAtom").waitFor([a("BoostedAutomatedAdsMultiAdgroupSpecStoreV2").getDispatchToken()]);var Xa=a("BoostedAutomatedAdsMultiAdgroupSpecStoreV2").getDataByKey(H),Ya=y.body,Za=o(Ya,a("BoostedComponentAppID").BOOSTED_AUTOMATED_ADS),$a=I.setValidateErrorsForSelectedFieldForSelectedAdgroup(j,Za,Xa.getSelectedAdgroupIndex());return v.setDataByKey(H,$a);case a("BoostedAutomatedAdsDialogUIActionTypesV2").AD_DETAILS_DIALOG_CLOSE:I=this.$BoostedAutomatedAdsValidationStoreV23(I,H);var ab=this.$BoostedAutomatedAdsValidationStoreV21(I,H);return v.setDataByKey(H,ab);case a("BoostedAutomatedAdsDialogUIActionTypesV2").CREATION_STEP_FORWARD:return v.setDataByKey(H,this.$BoostedAutomatedAdsValidationStoreV23(I,H));case a("BoostedAutomatedAdsObjectiveActionTypesV2").UPDATE_PROGRAM_OBJECTIVE_AND_CTA_TYPE:case a("BoostedAutomatedAdsObjectiveActionTypesV2").UPDATE_PROGRAM_CTA_LINK:var W=this.$BoostedAutomatedAdsValidationStoreV23(I,H);a("AdsDataAtom").waitFor([a("BoostedAutomatedAdsMultiAdgroupSpecStoreV2").getDispatchToken(),a("BoostedComponentAudienceImmStoreV2").getDispatchToken(),a("BoostedComponentConstraintStoreV2").getDispatchToken()]);var bb=a("BoostedComponentAudienceImmStoreV2").getDataByKey(H),cb=a("BoostedComponentConstraintStoreV2").getDataByKey(H),X=a("BoostedAutomatedAdsMultiAdgroupSpecStoreV2").getDataByKey(H),Y=X.getSelectedAdgroupCreativeSpec();if(Y){var db=q(Y.getIn([m,l,i],null),X.isPageMessagingDisabled(),cb.getMinCallNowAge(),bb.getMinAge(),X.getValidatePhoneNumberError()),eb=y.programCTAType,fb=W.setCallToActionErrorsForSelectedType(X.getAdgroupSpecs(),db,eb);return v.setDataByKey(H,fb)}else return v.setDataByKey(H,W);default:var Z=ia[y.type];if(Z){var gb=Z.genExtraData&&Z.genExtraData(y,v);return Z.mutate(y,v,gb)}return v}}catch(hb){ga(hb,"BoostedAutomatedAdsValidationStoreV2",y.type,A);return v}};function u(){c.apply(this,arguments)}b.exports=new u(a("AdsDataAtom"))}),null);
__d("BoostedComponentSections",[],(function a(b,c,d,e,f,g){"use strict";var h=Object.freeze({AD_ACCOUNT_SECTION:"ad_account_section",AD_PREVIEW_SECTION:"ad_preview_section",BUDGET_AND_DURATION_SECTION:"budget_and_duration_section",CREATIVE_SECTION:"creative_section",SUMMARY_SECTION:"summary_section",OBJECTIVE_SELECTOR_SECTION:"objective_selector_section",TARGETING_AREA_MAP_SECTION:"targeting_area_map_section",TARGETING_SECTION:"targeting_section",VALUE_PROPS_SECTION:"value_props_section"});f.exports=h}),null);
__d("BoostedComponentCreationStepToSectionsMapping",["BoostedComponentSections"],(function a(b,c,d,e,f,g){"use strict";var h={CREATIVE:[c("BoostedComponentSections").CREATIVE_SECTION,c("BoostedComponentSections").AD_PREVIEW_SECTION],DEFAULT:[c("BoostedComponentSections").AD_ACCOUNT_SECTION,c("BoostedComponentSections").AD_PREVIEW_SECTION,c("BoostedComponentSections").BUDGET_AND_DURATION_SECTION,c("BoostedComponentSections").CREATIVE_SECTION,c("BoostedComponentSections").TARGETING_SECTION],LANDING:[c("BoostedComponentSections").VALUE_PROPS_SECTION,c("BoostedComponentSections").OBJECTIVE_SELECTOR_SECTION],TARGETING:[c("BoostedComponentSections").TARGETING_AREA_MAP_SECTION,c("BoostedComponentSections").TARGETING_SECTION],SUMMARY:[c("BoostedComponentSections").AD_ACCOUNT_SECTION,c("BoostedComponentSections").BUDGET_AND_DURATION_SECTION,c("BoostedComponentSections").SUMMARY_SECTION]};f.exports=h}),null);
__d("BoostedComponentSteppedCreationUtils",["AdproObjectiveType","BoostedComponentAppID","BoostedComponentCreationStep","BoostedComponentCreationStepToSectionsMapping"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h={getNextStep:function i(j,k){switch(j){case c("BoostedComponentCreationStep").LANDING:return k?c("BoostedComponentCreationStep").TARGETING:c("BoostedComponentCreationStep").CREATIVE;case c("BoostedComponentCreationStep").TARGETING:return k?c("BoostedComponentCreationStep").CREATIVE:c("BoostedComponentCreationStep").SUMMARY;case c("BoostedComponentCreationStep").CREATIVE:return k?c("BoostedComponentCreationStep").SUMMARY:c("BoostedComponentCreationStep").TARGETING;default:return c("BoostedComponentCreationStep").CREATIVE}},getPreviousStep:function i(j,k){switch(j){case c("BoostedComponentCreationStep").CREATIVE:return k?c("BoostedComponentCreationStep").TARGETING:c("BoostedComponentCreationStep").LANDING;case c("BoostedComponentCreationStep").TARGETING:return k?c("BoostedComponentCreationStep").LANDING:c("BoostedComponentCreationStep").CREATIVE;case c("BoostedComponentCreationStep").SUMMARY:return k?c("BoostedComponentCreationStep").CREATIVE:c("BoostedComponentCreationStep").TARGETING;default:return c("BoostedComponentCreationStep").CREATIVE}},_getCreationStepRequiredSections:function i(j,k){switch(j){case c("BoostedComponentAppID").BOOSTED_AUTOMATED_ADS:switch(k){case c("BoostedComponentCreationStep").LANDING:return c("BoostedComponentCreationStepToSectionsMapping").LANDING;case c("BoostedComponentCreationStep").CREATIVE:return c("BoostedComponentCreationStepToSectionsMapping").CREATIVE;case c("BoostedComponentCreationStep").TARGETING:return c("BoostedComponentCreationStepToSectionsMapping").TARGETING;case c("BoostedComponentCreationStep").SUMMARY:return c("BoostedComponentCreationStepToSectionsMapping").SUMMARY;default:return c("BoostedComponentCreationStepToSectionsMapping").DEFAULT}default:return c("BoostedComponentCreationStepToSectionsMapping").DEFAULT}},shouldShowSectionForSteppedCreation:function i(j,k,l){var m=h._getCreationStepRequiredSections(k,l);return m.indexOf(j)>-1},shouldShowTargetingStepFirst:function i(j){return j===c("AdproObjectiveType").REACH}};f.exports=h}),null);
__d("AdsBoostedComponentLocalAwarenessV2UpdateMapSizeDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"BoostedComponentLocalAwareness.UPDATE_MAP_SIZE");f.exports=h}),null);
__d("BoostedComponentDialogSubmissionStates",[],(function a(b,c,d,e,f,g){"use strict";var h=Object.freeze({ENABLED:0,SUBMITTING:1,DISABLED:2});f.exports=h}),null);
__d("BoostedComponentSubmissionStatusStoreData",["BoostedComponentDialogSubmissionStates","immutable"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("immutable").Record({dataLoaded:false,isFetching:false,actionType:"",fetchEstimates:false,submissionState:c("BoostedComponentDialogSubmissionStates").DISABLED,isReady:false}));i=h&&h.prototype;j.prototype.getIsReady=function(){return this.isReady};j.prototype.getActionType=function(){return this.actionType};j.prototype.getSubmissionState=function(){return this.submissionState};j.prototype.setActionType=function(k){return this.set("actionType",k)};j.prototype.setDataLoaded=function(k){return this.set("dataLoaded",k)};j.prototype.setIsFetching=function(k){return this.set("isFetching",k)};j.prototype.setIsFetchEstimates=function(k){return this.set("fetchEstimates",k)};j.prototype.setIsReady=function(k){return this.set("isReady",k)};j.prototype.setSubmissionState=function(k){return this.set("submissionState",k)};function j(){h.apply(this,arguments)}f.exports=j}),null);
__d("BoostedComponentSubmisionStatusStoreV2",["AdsBoostedComponentCommonV2CreateSuccessDataAction","AdsBoostedComponentCommonV2CreateSuccessWithBoostIdDataAction","AdsBoostedComponentCommonV2FetchButtonDataDataAction","AdsBoostedComponentCommonV2FetchDialogDataDataAction","AdsBoostedComponentCommonV2HandleDialogChangeErrorDataAction","AdsBoostedComponentCommonV2LoadDialogChangeDataDataAction","AdsBoostedComponentCommonV2LoadDialogDataDataAction","AdsBoostedComponentLocalAwarenessV2UpdateAgeDataAction","AdsBoostedComponentLocalAwarenessV2UpdateCustomLocationDataAction","AdsBoostedComponentLocalAwarenessV2UpdateGenderDataAction","AdsBoostedComponentLocalAwarenessV2UpdateMapSizeDataAction","AdsBoostedComponentObjectiveV2UpdateObjectiveDataAction","AdsDataAtom","AdsLWISelectCustomAudienceDataAction","AdsLWISubmissionStatusStoreActionHandlers","BoostedAutomatedAdsCommonActionTypesV2","BoostedAutomatedAdsMultiAdgroupSpecActionTypesV2","BoostedComponentAdAccountActionTypesV2","BoostedComponentAdAccountStoreV2","BoostedComponentAppID","BoostedComponentAudienceActionTypesV2","BoostedComponentAudienceStoreV2","BoostedComponentBudgetAndDurationActionTypesV2","BoostedComponentBudgetEstimationStoreV2","BoostedComponentCommonActionTypesV2","BoostedComponentContextStoreV2","BoostedComponentCouponPromotionStoreV2","BoostedComponentCreativeActionTypesV2","BoostedComponentDeliveryActionTypesV2","BoostedComponentDurationStoreV2","BoostedComponentFetchActionTypesV2","BoostedComponentFluxReduceStore","BoostedComponentStoreState","BoostedComponentSubmissionStatusStoreData","BoostedComponentV2Utils","BoostedPostCreativeStoreV2","createObjectBy"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("BoostedComponentV2Utils").getKeyData,k=c("BoostedComponentStoreState").BoostedComponentState,l=c("BoostedComponentStoreState").getKey,m=c("createObjectBy")([].concat(c("AdsLWISubmissionStatusStoreActionHandlers")),function(q){return q.type}),n=[c("BoostedComponentAdAccountStoreV2").getDispatchToken(),c("BoostedComponentAudienceStoreV2").getDispatchToken(),c("BoostedComponentBudgetEstimationStoreV2").getDispatchToken(),c("BoostedComponentContextStoreV2").getDispatchToken(),c("BoostedComponentCouponPromotionStoreV2").getDispatchToken(),c("BoostedComponentDurationStoreV2").getDispatchToken(),c("BoostedPostCreativeStoreV2").getDispatchToken()],o="BoostedComponentSubmisionStatusStoreV2";h=babelHelpers.inherits(p,c("BoostedComponentFluxReduceStore"));i=h&&h.prototype;function p(){var q,r;for(var s=arguments.length,t=Array(s),u=0;u<s;u++)t[u]=arguments[u];return r=(q=i.constructor).call.apply(q,[this].concat(t)),this.storeName=o,r}p.prototype.getInitialState=function(){return new k({storeName:o})};p.prototype.getDataByKey=function(q){return this.getState().getDataByKey(q)};p.prototype.reduce=function(q,r){__p&&__p();var s=r.action,t=j(s),u=t.appID,v=t.boostID,w=t.targetID;if(!u)return q;var x=l(u,w,v),y=void 0;switch(s.type){case c("AdsBoostedComponentCommonV2FetchDialogDataDataAction").actionType:case c("AdsBoostedComponentCommonV2FetchButtonDataDataAction").actionType:case c("BoostedComponentFetchActionTypesV2").FETCH_ALL_DATA:return q.setDataByKey(x,new(c("BoostedComponentSubmissionStatusStoreData"))({isFetching:true}));case c("AdsBoostedComponentCommonV2LoadDialogDataDataAction").actionType:case c("BoostedComponentFetchActionTypesV2").LOAD_ALL_DATA:c("AdsDataAtom").waitFor(n);y={dataLoaded:true,isFetching:false};return q.mergeDataByKey(x,y);case c("BoostedComponentCommonActionTypesV2").DELETE_SUCCESS:case c("BoostedComponentBudgetAndDurationActionTypesV2").INPUT_CUSTOM_BUDGET:case c("BoostedComponentBudgetAndDurationActionTypesV2").INPUT_CUSTOM_ADD_BUDGET:case c("BoostedComponentBudgetAndDurationActionTypesV2").INPUT_CUSTOM_MONTHLY_BUDGET:case c("BoostedComponentAudienceActionTypesV2").SET_AUDIENCE:case c("BoostedComponentAudienceActionTypesV2").LOAD_AUDIENCES:case c("BoostedComponentAudienceActionTypesV2").CREATE_AUDIENCE_SUCCESS:case c("BoostedComponentAudienceActionTypesV2").DELETE_AUDIENCE_SUCCESS:case c("BoostedComponentAudienceActionTypesV2").EDIT_AUDIENCE_SUCCESS:case c("BoostedComponentAudienceActionTypesV2").EDIT_JOB_AUDIENCE:case c("BoostedComponentAudienceActionTypesV2").SET_IG_PLACEMENT_REMOVED:case c("BoostedComponentAudienceActionTypesV2").UPDATE_INTERESTS:case c("BoostedComponentAdAccountActionTypesV2").UPDATE_CURRENCY:case c("BoostedComponentCreativeActionTypesV2").UPDATE_CALL_TO_ACTION:case c("BoostedAutomatedAdsMultiAdgroupSpecActionTypesV2").DELETE_ADGROUP_SUBMIT:case c("BoostedAutomatedAdsMultiAdgroupSpecActionTypesV2").PAUSE_ADGROUP_SUBMIT:case c("BoostedAutomatedAdsMultiAdgroupSpecActionTypesV2").RESUME_ADGROUP_SUBMIT:case c("AdsBoostedComponentLocalAwarenessV2UpdateAgeDataAction").actionType:case c("AdsBoostedComponentLocalAwarenessV2UpdateMapSizeDataAction").actionType:case c("AdsBoostedComponentLocalAwarenessV2UpdateCustomLocationDataAction").actionType:case c("AdsBoostedComponentLocalAwarenessV2UpdateGenderDataAction").actionType:case c("AdsBoostedComponentObjectiveV2UpdateObjectiveDataAction").actionType:case c("AdsLWISelectCustomAudienceDataAction").actionType:c("AdsDataAtom").waitFor(n);y={actionType:s.type,fetchEstimates:true,isReady:false};return q.mergeDataByKey(x,y);case c("BoostedComponentAdAccountActionTypesV2").UPDATE_ACCOUNT:c("AdsDataAtom").waitFor(n);var z=c("BoostedComponentContextStoreV2").getDataByKey(x),A=z.getIsJobOpening()||u===c("BoostedComponentAppID").BOOSTED_JOB_POST||u===c("BoostedComponentAppID").BOOSTED_LOCAL_AWARENESS;y={actionType:s.type,fetchEstimates:false,isReady:A};return q.mergeDataByKey(x,y);case c("AdsBoostedComponentCommonV2LoadDialogChangeDataDataAction").actionType:case c("BoostedComponentBudgetAndDurationActionTypesV2").UPDATE_BUDGET:case c("BoostedComponentBudgetAndDurationActionTypesV2").UPDATE_ADD_BUDGET:case c("BoostedComponentBudgetAndDurationActionTypesV2").UPDATE_MONTHLY_BUDGET:case c("BoostedComponentBudgetAndDurationActionTypesV2").UPDATE_CAMPAIGN_LENGTH_IN_DAYS:case c("BoostedComponentDeliveryActionTypesV2").UPDATE_BID_AMOUNT:case c("BoostedComponentDeliveryActionTypesV2").UPDATE_PACING_TYPE:c("AdsDataAtom").waitFor(n);y={actionType:s.type,fetchEstimates:false,isReady:true};return q.mergeDataByKey(x,y);case c("AdsBoostedComponentCommonV2CreateSuccessDataAction").actionType:case c("BoostedAutomatedAdsCommonActionTypesV2").CONVERSION_UPSELL_CREATE_SUCCESS:case c("BoostedComponentCommonActionTypesV2").EDIT_SUCCESS:case c("BoostedComponentCommonActionTypesV2").RESUME_SUCCESS:case c("AdsBoostedComponentCommonV2CreateSuccessWithBoostIdDataAction").actionType:case c("AdsBoostedComponentCommonV2HandleDialogChangeErrorDataAction").actionType:case c("BoostedAutomatedAdsMultiAdgroupSpecActionTypesV2").DELETE_ADGROUP_SUCCESS:case c("BoostedAutomatedAdsMultiAdgroupSpecActionTypesV2").PAUSE_ADGROUP_SUCCESS:case c("BoostedAutomatedAdsMultiAdgroupSpecActionTypesV2").RESUME_ADGROUP_SUCCESS:c("AdsDataAtom").waitFor(n);if(s.type===c("AdsBoostedComponentCommonV2CreateSuccessWithBoostIdDataAction").actionType)q=q.copyData(x,u,w,s.oldBoostID);y={actionType:s.type,fetchEstimates:false,isReady:false};return q.mergeDataByKey(x,y);default:var B=m[s.type];if(B){var C=B.genExtraData&&B.genExtraData(s,q);return B.mutate(s,q,C)}return q}};f.exports=new p(c("AdsDataAtom"))}),null);
__d("BoostedAutomatedAdsLoggerStoreV2",["AdsDataAtom","AdsReviewIPCUtils","Banzai","BoostedAutomatedAdsBudgetStoreV2","BoostedAutomatedAdsConstants","BoostedAutomatedAdsDialogUIStoreV2","BoostedAutomatedAdsMultiAdgroupSpecStoreV2","BoostedAutomatedAdsObjectiveStoreV2","BoostedAutomatedAdsValidationStoreV2","BoostedComponentActionToClientEventUtils","BoostedComponentAdAccountStoreV2","BoostedComponentAppIDUtils","BoostedComponentAudienceImmStoreV2","BoostedComponentClientEvent","BoostedComponentContextStoreV2","BoostedComponentExistingAdInfoStoreV2","BoostedComponentSpecUtils","BoostedComponentSteppedCreationUtils","BoostedComponentStoreState","BoostedComponentSubmisionStatusStoreV2","BoostedComponentV2Utils","FluxReduceStore","IPCEventName","Set"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("BoostedComponentStoreState").getKey,k=c("BoostedComponentV2Utils").getKeyData,l=[c("BoostedAutomatedAdsBudgetStoreV2").getDispatchToken(),c("BoostedAutomatedAdsDialogUIStoreV2").getDispatchToken(),c("BoostedAutomatedAdsMultiAdgroupSpecStoreV2").getDispatchToken(),c("BoostedAutomatedAdsObjectiveStoreV2").getDispatchToken(),c("BoostedAutomatedAdsValidationStoreV2").getDispatchToken(),c("BoostedComponentAdAccountStoreV2").getDispatchToken(),c("BoostedComponentAudienceImmStoreV2").getDispatchToken(),c("BoostedComponentContextStoreV2").getDispatchToken(),c("BoostedComponentExistingAdInfoStoreV2").getDispatchToken(),c("BoostedComponentSubmisionStatusStoreV2").getDispatchToken()],m=new(c("Set"))([c("BoostedComponentClientEvent").MAYBE_UPDATE_FROM_DUPLICATE_CONFIG]),n=new(c("Set"))([c("BoostedComponentClientEvent").UPDATE_CALL_TO_ACTION]);h=babelHelpers.inherits(o,c("FluxReduceStore"));i=h&&h.prototype;o.prototype.getInitialState=function(){return{}};o.prototype.reduce=function(p,q){__p&&__p();var r=q.action,s=k(r),t=s.appID,u=s.boostID,v=s.targetID;if(!c("BoostedComponentAppIDUtils").isBoostedAutomatedAds(t))return p;var w=c("BoostedComponentActionToClientEventUtils").getClientEventFromAction(r.type);if(!w||w===c("BoostedComponentClientEvent").UNMAPPED_V2_ACTION||r.skipLogging&&n.has(w)||m.has(w))return p;c("AdsDataAtom").waitFor(l);var x=j(t,v,u);this.$BoostedAutomatedAdsLoggerStoreV22(w,r);this.$BoostedAutomatedAdsLoggerStoreV23(t,w,r,x);return p};o.prototype.$BoostedAutomatedAdsLoggerStoreV22=function(p,q){var r=null;switch(p){case c("BoostedComponentClientEvent").INTEGRITY_BANNER_SHOWN:r=c("IPCEventName").UI_BANNER_COMPONENT_RENDER;break;default:return}c("AdsReviewIPCUtils").logRenderStatus(q.adAccountID,r,true,q.policies)};o.prototype.$BoostedAutomatedAdsLoggerStoreV23=function(p,q,r,s){__p&&__p();var t=null;if(c("Banzai").isEnabled("boosted_component")){t=this.$BoostedAutomatedAdsLoggerStoreV24(p,q,r,s);var u=c("BoostedComponentContextStoreV2").getDataByKey(s),v=this.$BoostedAutomatedAdsLoggerStoreV25(t,s);v.event=q;v.flow_id=u.getFlowID();c("Banzai").post("boosted_component",v,c("Banzai").VITAL)}if(t===null)t=this.$BoostedAutomatedAdsLoggerStoreV24(p,q,r,s)};o.prototype.$BoostedAutomatedAdsLoggerStoreV25=function(p,q){var r=c("BoostedComponentAdAccountStoreV2").getState(),s=c("BoostedComponentContextStoreV2").getDataByKey(q),t=c("BoostedComponentExistingAdInfoStoreV2").getDataByKey(q),u=babelHelpers["extends"]({},p,{campaign_group_id:t.getCampaignGroupID(),page_id:s.getPageID(),post_id:s.getPostID(),source_app_id:s.getAppID(),placement:s.getPlacement(),ad_account_id:r.getSelectedAccountID(),is_boosted:t.getIsBoosted()});return u};o.prototype.$BoostedAutomatedAdsLoggerStoreV24=function(p,q,r,s){__p&&__p();var t=null,u={};switch(q){case c("BoostedComponentClientEvent").CREATE_SUBMIT:this.$BoostedAutomatedAdsLoggerStoreV21=Date.now();break;case c("BoostedComponentClientEvent").CREATE_SUCCESS:case c("BoostedComponentClientEvent").CREATE_FAIL:u.processing_time=Date.now()-this.$BoostedAutomatedAdsLoggerStoreV21;break;case c("BoostedComponentClientEvent").INTEGRITY_BANNER_SHOWN:case c("BoostedComponentClientEvent").INTEGRITY_TEXT_PENALTY:u.cms_ids=r.cmsIDs;break;case c("BoostedComponentClientEvent").INPUT_CUSTOM_BUDGET:case c("BoostedComponentClientEvent").UPDATE_BUDGET:var v=c("BoostedAutomatedAdsBudgetStoreV2").getDataByKey(s);u.ending_value=v.getSelectedBudgetValue();break;case c("BoostedComponentClientEvent").PREVIEW_AD_ON_DESKTOP_FEED:case c("BoostedComponentClientEvent").PREVIEW_AD_ON_MOBILE_FEED:case c("BoostedComponentClientEvent").PREVIEW_AD_ON_RHC:case c("BoostedComponentClientEvent").PREVIEW_AD_ON_INSTAGRAM:case c("BoostedComponentClientEvent").PREVIEW_AD_ON_AUDIENCE_NETWORK_INSTREAM_VIDEO:case c("BoostedComponentClientEvent").PREVIEW_AD_ON_MOBILE_INTERSTITIAL:case c("BoostedComponentClientEvent").PREVIEW_AD_ON_MOBILE_NATIVE:if(r.ineligibleMessage)u.error_messages=[r.ineligibleMessage];break;case c("BoostedComponentClientEvent").AUDIENCE_CHANGE:var w=r.targetingSpec;if(w)u.targeting_spec=w;break;case c("BoostedComponentClientEvent").AUDIENCE_MANAGER_OPEN:var x=r.editMode;if(x)u.audience_edit_mode=x;else u.audience_edit_mode=false;break;case c("BoostedComponentClientEvent").UPDATE_OBJECTIVE:var y=c("BoostedAutomatedAdsObjectiveStoreV2").getDataByKey(s);u.ending_value=y.getProgramObjective();break;case c("BoostedComponentClientEvent").CONVERSION_UPSELL_CLICK:this.$BoostedAutomatedAdsLoggerStoreV21=Date.now();break;case c("BoostedComponentClientEvent").CONVERSION_UPSELL_SUCCESS:case c("BoostedComponentClientEvent").CONVERSION_UPSELL_FAIL:case c("BoostedComponentClientEvent").CONVERSION_UPSELL_DELETE_FAIL:u.processing_time=Date.now()-this.$BoostedAutomatedAdsLoggerStoreV21;break;case c("BoostedComponentClientEvent").CONVERSION_UPSELL_SWITCH_DIALOG_CLOSE_CLICK:break;case c("BoostedComponentClientEvent").CONVERSION_UPSELL_SWITCH_DIALOG_OPEN_CLICK:break;case c("BoostedComponentClientEvent").CONVERSION_UPSELL_GO_NEXT:u.starting_value=c("BoostedAutomatedAdsConstants").CONVERSION_UPSELL_INFO_STEP;u.ending_value=c("BoostedAutomatedAdsConstants").CONVERSION_UPSELL_EDIT_STEP;break;case c("BoostedComponentClientEvent").CONVERSION_UPSELL_GO_BACK:u.starting_value=c("BoostedAutomatedAdsConstants").CONVERSION_UPSELL_EDIT_STEP;u.ending_value=c("BoostedAutomatedAdsConstants").CONVERSION_UPSELL_INFO_STEP;break;case c("BoostedComponentClientEvent").CREATION_STEP_BACKWARD:t=c("BoostedAutomatedAdsDialogUIStoreV2").getDataByKey(s);u.starting_value=c("BoostedComponentSteppedCreationUtils").getNextStep(t.getCurrentStep());u.ending_value=t.getCurrentStep();break;case c("BoostedComponentClientEvent").CREATION_STEP_FORWARD:t=c("BoostedAutomatedAdsDialogUIStoreV2").getDataByKey(s);u.starting_value=c("BoostedComponentSteppedCreationUtils").getPreviousStep(t.getCurrentStep());u.ending_value=t.getCurrentStep();break;case c("BoostedComponentClientEvent").TOGGLE_CUSTOM_AUDIENCES:u.starting_value=(!r.selected).toString().concat(" ",r.audienceID);u.ending_value=r.selected.toString().concat(" ",r.audienceID);break;case c("BoostedComponentClientEvent").TOGGLE_INSTAGRAM_PLACEMENT:u.starting_value=(!r.removed).toString();u.ending_value=r.removed.toString();break;case c("BoostedComponentClientEvent").TOGGLE_VISITOR_TARGETING:u.starting_value=(!r.selected).toString();u.ending_value=r.selected.toString();break;case c("BoostedComponentClientEvent").SET_AN_PLACEMENT_ENABLED:u.starting_value=(!r.enabled).toString();u.ending_value=r.enabled.toString();break}var z=c("BoostedAutomatedAdsMultiAdgroupSpecStoreV2").getDataByKey(s),A=c("BoostedAutomatedAdsValidationStoreV2").getDataByKey(s),B=A.getCreativeErrorsByAdgroups(),C=B.flatten(),D=A.getBudgetErrors(),E=C.concat(D);if(!E.isEmpty())u.error_messages=E;u.specs=JSON.stringify(c("BoostedComponentSpecUtils").getSpecsObjectByKey(p,s));u.selected_adgroup_index=z.getSelectedAdgroupIndex();switch(q){case c("BoostedComponentClientEvent").CREATE_CLICK:case c("BoostedComponentClientEvent").CREATE_SUBMIT:case c("BoostedComponentClientEvent").CREATE_SUCCESS:case c("BoostedComponentClientEvent").CREATE_FAIL:var F=r.error;if(F){u.error_code=F.error;u.error_messages=F.errorDescription;u.error_type=F.errorSummary}u.default_specs=c("BoostedComponentSpecUtils").getSpecsObjectByKey(p,s);break}switch(q){case c("BoostedComponentClientEvent").UPDATE_IMAGE:if(r!=null&&r.imageType!=null)u.image_type=r.imageType;break}return u};function o(){h.apply(this,arguments)}f.exports=new o(c("AdsDataAtom"))}),null);
__d("BoostedAutomatedAdsRulesStoreData",["BoostedComponentBaseStoreData"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j={has_governing_ad_rules:false};h=babelHelpers.inherits(k,c("BoostedComponentBaseStoreData")(j));i=h&&h.prototype;k.prototype.getHasGoverningAdRules=function(){return this.has_governing_ad_rules};k.prototype.setHasGoverningAdRules=function(l){return this.set("has_governing_ad_rules",l)};function k(){h.apply(this,arguments)}f.exports=k}),null);
__d("BoostedComponentAdRulesStoreFields",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({HAS_GOVERNING_AD_RULES:"has_governing_ad_rules"})}),null);
__d("BoostedAutomatedAdsRulesStoreV2",["AdsBoostedComponentCommonV2CreateSuccessDataAction","AdsBoostedComponentCommonV2CreateSuccessWithBoostIdDataAction","AdsBoostedComponentCommonV2FetchDialogDataDataAction","AdsDataAtom","AdsLWIRulesStoreActionHandlers","BoostedAutomatedAdsCommonActionTypesV2","BoostedAutomatedAdsRulesStoreData","BoostedComponentAdRulesStoreFields","BoostedComponentAppIDUtils","BoostedComponentFetchActionTypesV2","BoostedComponentStoreState","BoostedComponentV2Utils","FluxReduceStore","createObjectBy"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("BoostedComponentV2Utils").getKeyData,k=c("BoostedComponentStoreState").BoostedComponentState,l=c("BoostedComponentStoreState").getKey,m=c("createObjectBy")([].concat(c("AdsLWIRulesStoreActionHandlers")),function(o){return o.type});h=babelHelpers.inherits(n,c("FluxReduceStore"));i=h&&h.prototype;n.prototype.getInitialState=function(){return new k({storeName:"BoostedAutomatedAdsRulesStoreV2"})};n.prototype.getDataByKey=function(o){return this.getState().getDataByKey(o)};n.prototype.reduce=function(o,p){__p&&__p();var q=p.action,r=j(q),s=r.appID,t=r.boostID,u=r.targetID,v=q.data;if(!c("BoostedComponentAppIDUtils").isBoostedAutomatedAds(s))return o;var w=l(s,u,t),x=void 0;switch(q.type){case c("AdsBoostedComponentCommonV2FetchDialogDataDataAction").actionType:case c("BoostedComponentFetchActionTypesV2").FETCH_ALL_DATA:return o.setDataByKey(w,new(c("BoostedAutomatedAdsRulesStoreData"))());case c("AdsBoostedComponentCommonV2CreateSuccessWithBoostIdDataAction").actionType:o=o.copyData(w,s,u,q.oldBoostID);case c("BoostedAutomatedAdsCommonActionTypesV2").CONVERSION_UPSELL_CREATE_SUCCESS:case c("AdsBoostedComponentCommonV2CreateSuccessDataAction").actionType:var y=v.ad_rules_store_data;x=o.getDataByKey(w);x=x.setHasGoverningAdRules(y[c("BoostedComponentAdRulesStoreFields").HAS_GOVERNING_AD_RULES]);return o.setDataByKey(w,x);default:var z=m[q.type];if(z){var A=z.genExtraData&&z.genExtraData(q,o);return z.mutate(q,o,A)}return o}};function n(){h.apply(this,arguments)}f.exports=new n(c("AdsDataAtom"))}),null);
__d("BoostedAutomatedAdsSubmissionStatusStoreData",["immutable"],(function a(b,c,d,e,f,g){"use strict";var h,i;h=babelHelpers.inherits(j,c("immutable").Record({dataLoaded:false,isFetching:false,isLeadGenFormCreated:false}));i=h&&h.prototype;j.prototype.getIsLeadGenFormCreated=function(){return this.isLeadGenFormCreated};function j(){h.apply(this,arguments)}f.exports=j}),null);
__d("BoostedAutomatedAdsSubmissionStatusStoreV2",["AdsBoostedComponentCommonV2CreateSuccessWithBoostIdDataAction","AdsBoostedComponentCommonV2FetchDialogDataDataAction","AdsBoostedComponentCommonV2LoadDialogDataDataAction","AdsDataAtom","AdsLeadGenFormEditorApiFormCreatedDataAction","AdsLWISubmissionStatusStoreActionHandlers","BoostedAutomatedAdsBudgetStoreV2","BoostedAutomatedAdsMultiAdgroupSpecStoreV2","BoostedAutomatedAdsSubmissionStatusStoreData","BoostedComponentAppIDUtils","BoostedComponentAudienceImmStoreV2","BoostedComponentContextStoreV2","BoostedComponentExistingAdInfoStoreV2","BoostedComponentFetchActionTypesV2","BoostedComponentStoreState","BoostedComponentV2Utils","FluxReduceStore","immutable","createObjectBy"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("BoostedComponentStoreState").BoostedComponentState,k=c("BoostedComponentStoreState").getIDsFromKey,l=c("BoostedComponentStoreState").getKey,m=c("BoostedComponentV2Utils").logFluxStoreError,n=c("BoostedComponentV2Utils").getKeyData,o=c("createObjectBy")([].concat(c("AdsLWISubmissionStatusStoreActionHandlers")),function(s){return s.type}),p=[c("BoostedAutomatedAdsBudgetStoreV2").getDispatchToken(),c("BoostedAutomatedAdsMultiAdgroupSpecStoreV2").getDispatchToken(),c("BoostedComponentAudienceImmStoreV2").getDispatchToken(),c("BoostedComponentContextStoreV2").getDispatchToken(),c("BoostedComponentExistingAdInfoStoreV2").getDispatchToken()],q=c("immutable").Set([c("AdsLeadGenFormEditorApiFormCreatedDataAction").actionType]);h=babelHelpers.inherits(r,c("FluxReduceStore"));i=h&&h.prototype;r.prototype.getInitialState=function(){return new j({storeName:"BoostedAutomatedAdsSubmissionStatusStoreV2"})};r.prototype.getDataByKey=function(s){return this.getState().getDataByKey(s)};r.prototype.reduce=function(s,t){__p&&__p();var u=t.action,v=n(u),w=v.appID,x=v.boostID;try{if(q.contains(u.type)){var y=s.getLastUsedKey();if(!y)return s;var z=k(y),A=z[0];if(!c("BoostedComponentAppIDUtils").isBoostedAutomatedAds(A))return s;switch(u.type){case c("AdsLeadGenFormEditorApiFormCreatedDataAction").actionType:c("AdsDataAtom").waitFor([c("BoostedAutomatedAdsMultiAdgroupSpecStoreV2").getDispatchToken()]);return s.mergeDataByKey(y,{isLeadGenFormCreated:true});default:return s}}if(!c("BoostedComponentAppIDUtils").isBoostedAutomatedAds(w))return s;var B=l(w,null,x),C=void 0;switch(u.type){case c("AdsBoostedComponentCommonV2FetchDialogDataDataAction").actionType:case c("BoostedComponentFetchActionTypesV2").FETCH_ALL_DATA:return s.setDataByKey(B,new(c("BoostedAutomatedAdsSubmissionStatusStoreData"))({isFetching:true}));case c("AdsBoostedComponentCommonV2LoadDialogDataDataAction").actionType:case c("BoostedComponentFetchActionTypesV2").LOAD_ALL_DATA:c("AdsDataAtom").waitFor(p);C={dataLoaded:true,isFetching:false};return s.mergeDataByKey(B,C);case c("AdsBoostedComponentCommonV2CreateSuccessWithBoostIdDataAction").actionType:return s.copyData(B,w,null,u.oldBoostID);default:var D=o[u.type];if(D){var E=D.genExtraData&&D.genExtraData(u,s);return D.mutate(u,s,E)}return s}}catch(F){m(F,"BoostedAutomatedAdsSubmissionStatusStoreV2",u.type,w);return s}};function r(){h.apply(this,arguments)}f.exports=new r(c("AdsDataAtom"))}),null);
__d("BoostedComponentCreativeEditingElement",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({CREATIVE_LINK_DATA_URL:"creative_link_data_url",CREATIVE_LINK_DATA_HEADLINE:"creative_link_data_headline",CREATIVE_LINK_DATA_OFFER:"creative_link_data_offer",CREATIVE_LINK_DATA_OFFER_EXPIRY:"creative_link_data_offer_expiry",CREATIVE_LINK_DATA_TEXT:"creative_link_data_text",CREATIVE_BODY:"creative_body",CREATIVE_LINK_DATA:"creative_link_data",CREATIVE_MULTI_PRODUCTS:"creative_multi_products",CREATIVE_IMAGE_SELECTOR:"creative_image_selector",CREATIVE_CTA:"creative_cta",CREATIVE_MAP_CARD:"creative_map_card",CREATIVE_TEMPLATE_DATA:"creative_template_data",CREATIVE_AUTOMATED_ADS_MULTI_EDITOR:"creative_automated_ads_multi_editor"})}),null);
__d("BoostedComponentCreativeEditingConfig",["BoostedComponentCreativeEditingElement"],(function a(b,c,d,e,f,g){"use strict";var h={BOOSTED_APP_INSTALL:[c("BoostedComponentCreativeEditingElement").CREATIVE_LINK_DATA_HEADLINE],BOOSTED_AUTOMATED_ADS_LINK_CLICKS:[c("BoostedComponentCreativeEditingElement").CREATIVE_LINK_DATA_HEADLINE,c("BoostedComponentCreativeEditingElement").CREATIVE_LINK_DATA_TEXT,c("BoostedComponentCreativeEditingElement").CREATIVE_LINK_DATA_URL,c("BoostedComponentCreativeEditingElement").CREATIVE_AUTOMATED_ADS_MULTI_EDITOR],BOOSTED_AUTOMATED_ADS_LOCAL_AWARENESS:[c("BoostedComponentCreativeEditingElement").CREATIVE_LINK_DATA_HEADLINE,c("BoostedComponentCreativeEditingElement").CREATIVE_LINK_DATA_TEXT,c("BoostedComponentCreativeEditingElement").CREATIVE_AUTOMATED_ADS_MULTI_EDITOR],BOOSTED_CCTA:[c("BoostedComponentCreativeEditingElement").CREATIVE_LINK_DATA,c("BoostedComponentCreativeEditingElement").CREATIVE_LINK_DATA_HEADLINE,c("BoostedComponentCreativeEditingElement").CREATIVE_LINK_DATA_TEXT,c("BoostedComponentCreativeEditingElement").CREATIVE_IMAGE_SELECTOR,c("BoostedComponentCreativeEditingElement").CREATIVE_CTA],BOOSTED_DYNAMIC_PRODUCTS:[c("BoostedComponentCreativeEditingElement").CREATIVE_TEMPLATE_DATA],BOOSTED_EVENT:[c("BoostedComponentCreativeEditingElement").CREATIVE_LINK_DATA,c("BoostedComponentCreativeEditingElement").CREATIVE_LINK_DATA_TEXT,c("BoostedComponentCreativeEditingElement").CREATIVE_IMAGE_SELECTOR],BOOSTED_GROUP:[c("BoostedComponentCreativeEditingElement").CREATIVE_LINK_DATA,c("BoostedComponentCreativeEditingElement").CREATIVE_LINK_DATA_TEXT],BOOSTED_LOCAL_AWARENESS:[c("BoostedComponentCreativeEditingElement").CREATIVE_LINK_DATA,c("BoostedComponentCreativeEditingElement").CREATIVE_LINK_DATA_TEXT,c("BoostedComponentCreativeEditingElement").CREATIVE_LINK_DATA_OFFER,c("BoostedComponentCreativeEditingElement").CREATIVE_LINK_DATA_HEADLINE,c("BoostedComponentCreativeEditingElement").CREATIVE_LINK_DATA_OFFER_EXPIRY,c("BoostedComponentCreativeEditingElement").CREATIVE_IMAGE_SELECTOR,c("BoostedComponentCreativeEditingElement").CREATIVE_MAP_CARD,c("BoostedComponentCreativeEditingElement").CREATIVE_CTA],BOOSTED_LOCAL_AWARENESS_CAROUSEL:[c("BoostedComponentCreativeEditingElement").CREATIVE_LINK_DATA,c("BoostedComponentCreativeEditingElement").CREATIVE_LINK_DATA_TEXT,c("BoostedComponentCreativeEditingElement").CREATIVE_MULTI_PRODUCTS,c("BoostedComponentCreativeEditingElement").CREATIVE_CTA],BOOSTED_LOCAL_AWARENESS_MPA_VIEW:[c("BoostedComponentCreativeEditingElement").CREATIVE_LINK_DATA,c("BoostedComponentCreativeEditingElement").CREATIVE_LINK_DATA_HEADLINE],BOOSTED_PAGE:[c("BoostedComponentCreativeEditingElement").CREATIVE_LINK_DATA,c("BoostedComponentCreativeEditingElement").CREATIVE_LINK_DATA_HEADLINE,c("BoostedComponentCreativeEditingElement").CREATIVE_LINK_DATA_TEXT,c("BoostedComponentCreativeEditingElement").CREATIVE_IMAGE_SELECTOR,c("BoostedComponentCreativeEditingElement").CREATIVE_CTA],BOOSTED_PAGELIKE:[c("BoostedComponentCreativeEditingElement").CREATIVE_BODY,c("BoostedComponentCreativeEditingElement").CREATIVE_IMAGE_SELECTOR],BOOSTED_POST:[c("BoostedComponentCreativeEditingElement").CREATIVE_CTA],BOOSTED_WEBSITE:[c("BoostedComponentCreativeEditingElement").CREATIVE_CTA,c("BoostedComponentCreativeEditingElement").CREATIVE_LINK_DATA,c("BoostedComponentCreativeEditingElement").CREATIVE_LINK_DATA_URL,c("BoostedComponentCreativeEditingElement").CREATIVE_LINK_DATA_TEXT,c("BoostedComponentCreativeEditingElement").CREATIVE_MULTI_PRODUCTS],BOOSTED_WEBSITE_MPA_VIEW:[c("BoostedComponentCreativeEditingElement").CREATIVE_LINK_DATA,c("BoostedComponentCreativeEditingElement").CREATIVE_LINK_DATA_HEADLINE]};f.exports=h}),null);
__d("BoostedComponentHeadlineStyles",["keyMirror"],(function a(b,c,d,e,f,g){"use strict";var h=c("keyMirror")({DEFAULT:null,OFFER:null});f.exports=h}),null);
__d("BoostedComponentMultiAdsConstants",[],(function a(b,c,d,e,f,g){"use strict";var h=Object.freeze({MIN_PRODUCT_NUM:1,MAX_PRODUCT_NUM:5});f.exports=h}),null);
__d("BoostedComponentBetterProductCheckerUtils",["Promise","AsyncRequest","BoostedComponentAppID","React","URI","XBoostedComponentFetchButtonDataController","isFacebookURI"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h={checkURI:function i(j,k,l){__p&&__p();var m=new(c("URI"))(k);if(!c("isFacebookURI")(m))return null;var n=m.getPath().replace(/(\/)+$/,""),o=n.split("/");if(o.length>2&&o[1]==="events"){var p=o[2];return{suggestedProduct:c("BoostedComponentAppID").BOOSTED_EVENT,postID:p}}var q=new(c("URI"))(l),r=q.getPath().replace(/\//g,"");if(o[1]!==r&&o[1]!==j)return null;else if(o.length<=3)return{suggestedProduct:c("BoostedComponentAppID").BOOSTED_PAGELIKE,postID:null};else if(o[2]==="posts"||o[2]==="videos"){var s=o[3];return{suggestedProduct:c("BoostedComponentAppID").BOOSTED_POST,postID:s}}else if(o[2]==="photos"){var t=o[4];return{suggestedProduct:c("BoostedComponentAppID").BOOSTED_POST,postID:t}}else return null},fetchButtonData:function i(j,k,l,m){return new(c("Promise"))(function(n,o){var p=c("XBoostedComponentFetchButtonDataController").getURIBuilder().setInt("app_id",j).setInt("page_id",k).setInt("post_id",l).setString("ref",m).getURI();new(c("AsyncRequest"))(p).setHandler(function(q){return n(q.payload)}).setErrorHandler(function(q){return o(q)}).send()})}};f.exports=h}),null);
__d("BoostedComponentCallToActionUtils",["BoostedComponentAppID","SimpleNUXMessage","SimpleNUXMessageTypes"],(function a(b,c,d,e,f,g){"use strict";var h={getNUXTypeForAppID:function i(j,k){switch(j){case c("BoostedComponentAppID").BOOSTED_POST:return k&&c("SimpleNUXMessage").hasUserSeenMessage(c("SimpleNUXMessageTypes").BOOSTED_COMPONENT_CTA_SELECTOR_NUX)?c("SimpleNUXMessageTypes").BOOSTED_COMPONENT_WHATSAPP_CTA_NUX:c("SimpleNUXMessageTypes").BOOSTED_COMPONENT_CTA_SELECTOR_NUX;case c("BoostedComponentAppID").BOOSTED_LOCAL_AWARENESS:return c("SimpleNUXMessageTypes").BOOSTED_LOCAL_AWARENESS_SAVE_CTA_NUX;default:return null}}};f.exports=h}),null);
__d("BoostedComponentCreativeSectionUtils",["BoostedComponentAppID","BoostedComponentCreativeCategory"],(function a(b,c,d,e,f,g){"use strict";function h(i,j){return i===c("BoostedComponentAppID").BOOSTED_WEBSITE&&j===c("BoostedComponentCreativeCategory").IMAGE}f.exports={isBoostedWebsiteWithImageCategory:h}}),null);
__d("BoostedComponentSimplifiedConstants",[],(function a(b,c,d,e,f,g){"use strict";var h={DIALOG_WIDTH:940,DIALOG_BODY_MAX_HEIGHT:600,DIALOG_BODY_MIN_HEIGHT:350,DIALOG_RIGHT_PANEL_WIDTH:540,DIALOG_LEFT_PANEL_WIDTH:400,DIALOG_MARGIN:250,DIALOG_LEFT_PANEL_SPINNER_HEIGHT:550,DIALOG_PANEL_MAX_WIDTH:940,DIALOG_PANEL_MIN_WIDTH:0,FIRST_STEP:0,SECOND_STEP:1,THIRD_STEP:2,FOURTH_STEP:3};f.exports=h}),null);
__d("BoostedComponentTextPenaltyActionTypesV2",["keyMirrorRecursive"],(function a(b,c,d,e,f,g){"use strict";var h=c("keyMirrorRecursive")({START_UPLOAD_NEW_PAGE_POST_PHOTO:"",FINISH_SUCCESS_UPLOAD_NEW_PAGE_POST_PHOTO:"",FINISH_FAILURE_UPLOAD_NEW_PAGE_POST_PHOTO:""},"BoostedComponentTextPenaltyActionTypesV2");f.exports=h}),null);
__d("XBoostedComponentFetchAdAccountDataController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/ads/boosted_components/fetch_ad_account_data/",{ad_account_id:{type:"FBID"},app_id:{type:"FBID",required:true},page_id:{type:"FBID",required:true}})}),null);
__d("BoostedComponentAdAccountActionsV2",["AdsBoostedComponentAdAccountV2LoadAdAccountDataDataAction","AdsBoostedComponentAdAccountV2UpdateAccountDataAction","AdsBoostedComponentAdAccountV2UpdateCurrencyDataAction","AdsBoostedComponentAdAccountV2UpdateSpendCapDataAction","AsyncRequest","BoostedComponentAppID","BoostedComponentClientEvent","BoostedComponentCommonActionsV2","XBoostedComponentFetchAdAccountDataController"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=function h(l,m,n,o,p,q){c("AdsBoostedComponentAdAccountV2UpdateAccountDataAction").dispatch({accountID:l,appID:n,targetID:p,boostID:q});k(n,m,l);if(n===c("BoostedComponentAppID").BOOSTED_AUTOMATED_ADS||n===c("BoostedComponentAppID").BOOSTED_JOB_POST){var r=n===c("BoostedComponentAppID").BOOSTED_JOB_POST?p:null;c("BoostedComponentCommonActionsV2").fetchDialogChangeData(c("BoostedComponentClientEvent").UPDATE_ACCOUNT,m,null,n,r,q,undefined,o)}},i=function i(l,m,n,o,p,q){c("AdsBoostedComponentAdAccountV2UpdateCurrencyDataAction").dispatch({currency:l,appID:m,targetID:n,boostID:o});if(m===c("BoostedComponentAppID").BOOSTED_AUTOMATED_ADS)c("BoostedComponentCommonActionsV2").fetchDialogChangeData(c("BoostedComponentClientEvent").UPDATE_CURRENCY,q,null,m,null,o,undefined,p)},j=function j(l,m,n,o){c("AdsBoostedComponentAdAccountV2UpdateSpendCapDataAction").dispatch({spendCap:l,appID:m,targetID:n,boostID:o})},k=function k(l,m,n){var o=c("XBoostedComponentFetchAdAccountDataController").getURIBuilder().setFBID("app_id",l).setFBID("page_id",m);if(n)o.setFBID("ad_account_id",n);new(c("AsyncRequest"))().setURI(o.getURI()).setHandler(function(p){c("AdsBoostedComponentAdAccountV2LoadAdAccountDataDataAction").dispatch({adAccountData:p.payload})}).setErrorHandler(function(p){}).send()};f.exports={fetchAdAccountData:k,updateAdAccount:h,updateCurrency:i,updateSpendCap:j}}),null);
__d("XBoostedAppInstallAppUrlChangeController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/ads/boosted_components/app_url_change/",{page_id:{type:"Int",required:true},specs:{type:"String",required:true}})}),null);
__d("BoostedComponentAppInstallActions",["AdsDataAtom","AsyncRequest","AsyncResponse","BoostedComponentAppInstallActionTypesV2","SearchableEntry","XBoostedAppInstallAppUrlChangeController"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(l,m,n,o,p){c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentAppInstallActionTypesV2").SELECT_APP_STORE,appID:l,targetID:m,boostID:n,selectedAppStore:o,appURL:p})}function i(l,m,n){c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentAppInstallActionTypesV2").CLEAR_SELECTED_APP,appID:l,targetID:m,boostID:n,appURL:""})}function j(l){c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentAppInstallActionTypesV2").SELECT_APP,selectedApp:l})}function k(l,m,n,o,p,q){var r=c("XBoostedAppInstallAppUrlChangeController").getURIBuilder().setInt("page_id",o).setString("specs",p).getURI();new(c("AsyncRequest"))(r).setHandler(function(s){var t=s.payload,u=t.creative_store_data,v=t.targeting_store_data;c("AdsDataAtom").handleUpdateFromServerResponse({type:c("BoostedComponentAppInstallActionTypesV2").SELECT_APP_SUCCESS,appID:l,targetID:m,boostID:n,creativeSpec:u,targetingSpec:v,appURL:q})}).setMethod("POST").send()}f.exports={clearSelectedApp:i,updateSelectedAppStore:h,updateSelectedApp:j,updateBoostedAppInstallCreativeAndAudienceSpec:k}}),null);
__d("XAdsPageLocationController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/ads/createflow/page_location/",{id:{type:"String",required:true}})}),null);
__d("AdsPageLocationUtils",["Promise","AsyncRequest","XAdsPageLocationController"],(function a(b,c,d,e,f,g){"use strict";var h=3e4,i={getPageAddressFields:function j(k){return new(c("Promise"))(function(l,m){var n=c("XAdsPageLocationController").getURIBuilder().setString("id",k).getURI();new(c("AsyncRequest"))().setURI(n).setMethod("GET").setReadOnly(true).setHandler(function(o){l(o.payload)}).setErrorHandler(function(o){m(o)}).setTimeoutHandler(h,function(o){m(new Error("Timeout when trying to fetch page location."))}).send()})}};f.exports=i}),null);
__d("City",["ImmutableObject"],(function a(b,c,d,e,f,g){"use strict";var h,i;h=babelHelpers.inherits(j,c("ImmutableObject"));i=h&&h.prototype;function j(k,l){i.constructor.call(this,{key:k,name:l})}j.prototype.valueOf=function(){return this.key};f.exports=j}),null);
__d("XPresmaWhatsAppSendVerificationCodeController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/presma/whatsapp/verification_code/send/",{})}),null);
__d("XPresmaWhatsAppVerificationCodeValidationController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/presma/whatsapp/verification_code/validate/",{})}),null);
__d("BoostedComponentCreativeActionsV2",["invariant","Promise","AdsCallToActionTypes","AdsDataAtom","AdsGraphAPI","AdsLWIUpdateCallToActionLinkDataAction","AdsLWIUpdateCreativeBodyDataAction","AdsLWIUpdateCreativeLinkDataBodyDataAction","AdsLWIUpdateCreativeLinkDataHeadlineDataAction","AdsPageLocationUtils","AsyncRequest","AsyncResponse","BoostedComponentCreativeActionTypesV2","BoostedComponentVideoCreativeUtils","City","WhatsAppNumberVerificationResult","XPresmaWhatsAppSendVerificationCodeController","XPresmaWhatsAppVerificationCodeValidationController","isEmpty","messagePageCTAUtils"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i=c("BoostedComponentVideoCreativeUtils").getVideoLibrary,j=function j(R,S,T){c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentCreativeActionTypesV2").TOGGLE_CALL_TO_ACTION_SELECTOR,appID:R,targetID:S,boostID:T})},k=function k(R,S,T,U){c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentCreativeActionTypesV2").FETCH_DEFAULT_CITY_SUBMIT,appID:S,targetID:T,boostID:U});c("AdsPageLocationUtils").getPageAddressFields(R).then(function(V){if(!V)return c("Promise").reject(new Error("no city info available"));var W=V.city.name+", "+V.country.name;return{city:new(c("City"))(String(V.city.id),W)}}).done(function(V){c("AdsDataAtom").handleUpdateFromServerResponse({type:c("BoostedComponentCreativeActionTypesV2").FETCH_DEFAULT_CITY_SUCCESS,city:V,appID:S,targetID:T,boostID:U})},function(){c("AdsDataAtom").handleUpdateFromServerResponse({type:c("BoostedComponentCreativeActionTypesV2").FETCH_DEFAULT_CITY_FAIL,appID:S,targetID:T,boostID:U})})},l=function l(R,S,T,U,V,W){R===c("AdsCallToActionTypes").TYPES.MESSAGE_PAGE.name||h(0);c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentCreativeActionTypesV2").PAGE_MESSAGING_ENABLE_REQUEST_SUBMIT,appID:U,targetID:V,boostID:W});c("messagePageCTAUtils").enableMessaging(T,S).done(function(X){var Y=X&&X.success;c("AdsDataAtom").handleUpdateFromServerResponse({type:c("BoostedComponentCreativeActionTypesV2").PAGE_MESSAGING_ENABLE_REQUEST_SUCCESS,appID:U,targetID:V,isMessagingEnabled:Y,callToActionType:R,pageID:T,boostID:W})},function(X){c("AdsDataAtom").handleUpdateFromServerResponse({type:c("BoostedComponentCreativeActionTypesV2").PAGE_MESSAGING_ENABLE_REQUEST_FAIL,appID:U,targetID:V,error:X,boostID:W})})},m=function m(R,S,T,U,V){c("AdsDataAtom").handleUpdateFromServerResponse({type:c("BoostedComponentCreativeActionTypesV2").GET_PAGE_MESSAGE_SETTING_SUBMIT,appID:R,targetID:V,boostID:S});c("messagePageCTAUtils").isMessagingEnabled(U,T).done(function(W){c("AdsDataAtom").handleUpdateFromServerResponse({type:c("BoostedComponentCreativeActionTypesV2").GET_PAGE_MESSAGE_SETTING_SUCCESS,appID:R,targetID:V,isMessagingEnabled:W,boostID:S})},function(W){c("AdsDataAtom").handleUpdateFromServerResponse({type:c("BoostedComponentCreativeActionTypesV2").GET_PAGE_MESSAGE_SETTING_FAIL,appID:R,targetID:V,error:W,boostID:S})})},n=function n(R,S,T,U,V,W){__p&&__p();c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentCreativeActionTypesV2").ADD_WHATSAPP_NUMBER_SUBMIT,appID:R,targetID:T,boostID:S,isCodeResendRequest:W});var X=c("XPresmaWhatsAppSendVerificationCodeController").getURIBuilder().getURI(),Y={page_token:U,whatsapp_number:V,request_source:"ads_interface_lwi"};new(c("AsyncRequest"))().setURI(X).setMethod("POST").setData(Y).setHandler(function(Z){var $=Z.payload.verification_status;if(W&&$===c("WhatsAppNumberVerificationResult").VERIFICATION_CODE_SEND_SUCCESS)$=c("WhatsAppNumberVerificationResult").VERIFICATION_CODE_SENT_AGAIN;if($===c("WhatsAppNumberVerificationResult").VERIFIED)c("AdsDataAtom").handleUpdateFromServerResponse({type:c("BoostedComponentCreativeActionTypesV2").VALIDATE_WHATSAPP_VERIFICATION_CODE_SUCCESS,appID:R,targetID:T,boostID:S,verificationStatus:$,whatsAppNumber:V});else c("AdsDataAtom").handleUpdateFromServerResponse({type:c("BoostedComponentCreativeActionTypesV2").ADD_WHATSAPP_NUMBER_SUCCESS,appID:R,targetID:T,boostID:S,verificationStatus:$})}).setErrorHandler(function(Z){var $=c("WhatsAppNumberVerificationResult").VERIFICATION_CODE_SEND_FAILURE;c("AdsDataAtom").handleUpdateFromServerResponse({type:c("BoostedComponentCreativeActionTypesV2").ADD_WHATSAPP_NUMBER_FAIL,appID:R,targetID:T,boostID:S,error:Z,verificationStatus:$})}).send()},o=function o(R,S,T,U,V,W){c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentCreativeActionTypesV2").VALIDATE_WHATSAPP_VERIFICATION_CODE_SUBMIT,appID:R,targetID:T,boostID:S});var X=c("XPresmaWhatsAppVerificationCodeValidationController").getURIBuilder().getURI(),Y={page_token:U,verification_code:W,whatsapp_number:V,request_source:"ads_interface_lwi"};new(c("AsyncRequest"))().setURI(X).setMethod("POST").setData(Y).setHandler(function(Z){var $=Z.payload.verificationStatus;if($===c("WhatsAppNumberVerificationResult").VERIFIED)c("AdsDataAtom").handleUpdateFromServerResponse({type:c("BoostedComponentCreativeActionTypesV2").VALIDATE_WHATSAPP_VERIFICATION_CODE_SUCCESS,appID:R,targetID:T,boostID:S,verificationStatus:$,whatsAppNumber:V});else c("AdsDataAtom").handleUpdateFromServerResponse({type:c("BoostedComponentCreativeActionTypesV2").VALIDATE_WHATSAPP_VERIFICATION_CODE_FAIL,appID:R,targetID:T,boostID:S,verificationStatus:$})}).setErrorHandler(function(Z){c("AsyncResponse").defaultErrorHandler(Z)}).send()},p=function p(R,S,T){c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentCreativeActionTypesV2").CLEAR_WHATSAPP_VERIFICATION_STATUS,appID:R,targetID:T,boostID:S})},q=function q(R,S,T){c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentCreativeActionTypesV2").CLOSE_WHATSAPP_LINK_SUCCESS_BANNER,appID:R,targetID:T,boostID:S})},r=function r(R,S,T,U){c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentCreativeActionTypesV2").TOGGLE_WHATSAPP_NUMBER_READ_EDIT_MODE,appID:R,targetID:T,boostID:S,isReadOnlyMode:U})},s=function s(R,S,T,U,V,W){var X=R?R.get("type"):null;c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentCreativeActionTypesV2").UPDATE_CALL_TO_ACTION,callToActionUpdate:R,pageID:V,callToActionType:X,appID:S,targetID:T,boostID:U});if(X===c("AdsCallToActionTypes").TYPES.MESSAGE_PAGE.name)m(S,U,W,V,T)},t=function t(R,S,T,U){c("AdsLWIUpdateCallToActionLinkDataAction").dispatch({link:R,appID:S,targetID:T,boostID:U})},u=function u(R,S,T,U,V,W){var X=null;c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentCreativeActionTypesV2").UPDATE_WELCOME_MESSAGE,welcomeMessageUpdate:R,pageID:V,callToActionType:X,appID:S,targetID:T,boostID:U})},v=function v(R,S,T,U,V){c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentCreativeActionTypesV2").TOGGLE_CREATIVE_CATEGORY_LINK,creativeCategory:R,pageID:S,appID:T,targetID:U,boostID:V})},w=function w(R,S,T,U){c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentCreativeActionTypesV2").OPEN_IMAGE_DIALOG,pageID:R,appID:S,targetID:T,boostID:U})},x=function x(R,S,T,U,V){c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentCreativeActionTypesV2").SELECT_CHILD_ATTACHMENT_INDEX,selectedAttachmentIndex:R,pageID:S,appID:T,targetID:U,boostID:V})},y=function y(R,S,T,U,V){c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentCreativeActionTypesV2").UPDATE_IMAGE_CROPS,imageCropsUpdate:R,pageID:S,appID:T,targetID:U,boostID:V})},z=function z(R,S,T,U,V,W){c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentCreativeActionTypesV2").UPDATE_IMAGE,image:R,imageType:S,appID:T,targetID:U,boostID:V,accountID:W})},A=function A(R,S,T,U,V,W){c("AdsDataAtom").handleUpdateFromServerResponse({type:c("BoostedComponentCreativeActionTypesV2").VIDEO_ENCODING_SUCCESS,accountID:R,video:S,pageID:T,appID:U,targetID:V,boostID:W});i(R,T,U,V,W)},B=function B(R,S,T,U,V){c("AdsDataAtom").handleUpdateFromServerResponse({type:c("BoostedComponentCreativeActionTypesV2").VIDEO_UPLOAD_ERROR,error:R,pageID:S,appID:T,targetID:U,boostID:V})},C=function C(R,S,T,U){c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentCreativeActionTypesV2").VIDEO_UPLOAD_CANCEL,pageID:R,appID:S,targetID:T,boostID:U})},D=function D(R,S,T,U){c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentCreativeActionTypesV2").CLEAR_VIDEO_CREATIVE,pageID:R,appID:S,targetID:T,boostID:U})},E=function E(R,S,T,U,V){c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentCreativeActionTypesV2").UPDATE_VIDEO_THUMBNAIL,thumbnail:R,pageID:S,appID:T,targetID:U,boostID:V})},F=function F(R,S,T,U,V,W,X,Y,Z){c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentCreativeActionTypesV2").VIDEO_UPLOAD_START,title:R,url:S,fileList:T,accessToken:U,adAccountID:V,pageID:W,appID:X,targetID:Y,boostID:Z})},G=function G(R,S,T,U){c("AdsLWIUpdateCreativeBodyDataAction").dispatch({body:R,appID:S,targetID:T,boostID:U})},H=function H(R,S,T,U){c("AdsLWIUpdateCreativeLinkDataBodyDataAction").dispatch({body:R,appID:S,targetID:T,boostID:U})},I=function I(R,S,T,U){c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentCreativeActionTypesV2").UPDATE_VIDEO_DESCRIPTION,body:R,appID:S,targetID:T,boostID:U})},J=function J(R,S,T,U){c("AdsLWIUpdateCreativeLinkDataHeadlineDataAction").dispatch({headline:R,appID:S,targetID:T,boostID:U})},K=function K(R,S,T,U){c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentCreativeActionTypesV2").UPDATE_VIDEO_HEADLINE,headline:R,appID:S,targetID:T,boostID:U})},L=function L(R,S,T,U){c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentCreativeActionTypesV2").UPDATE_VIDEO_DATA_URL,url:R,appID:S,targetID:T,boostID:U})},M=function M(R,S,T,U,V){c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentCreativeActionTypesV2").UPDATE_LINK_DATA_URL,url:R,appID:T,targetID:U,boostID:V});if(S)c("AdsGraphAPI").get(f.id).search("addestination").get({object_url:R}).done(function(W){var X=W.data;if(X)N(X,T,U,V)})},N=function N(R,S,T,U){var V=R[0];if(!c("isEmpty")(V))c("AdsDataAtom").handleUpdateFromServerResponse({type:c("BoostedComponentCreativeActionTypesV2").UPDATE_LINK_DATA_FROM_DESTINATION_DATA,destinationData:V,appID:S,targetID:T,boostID:U})},O=function O(R,S,T,U,V){c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentCreativeActionTypesV2").ADD_CHILDATTACHMENT,linkDataSpecUpdate:R,selectedAttachmentIndex:S,appID:T,targetID:U,boostID:V})},P=function P(R,S,T,U,V){c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentCreativeActionTypesV2").REMOVE_CHILDATTACHMENT,linkDataSpecUpdate:R,selectedAttachmentIndex:S,appID:T,targetID:U,boostID:V})},Q=function Q(R,S,T,U){c("AdsDataAtom").handleUpdateFromViewAction({type:c("BoostedComponentCreativeActionTypesV2").UPDATE_MAP_CARDS,appID:R,targetID:S,boostID:T,enableMapCards:U})};f.exports={onToggleCallToActionSelector:j,fetchDefaultCity:k,requestEnablePageMessaging:l,verifyWhatsAppNumber:n,validateWhatsAppVerificationCode:o,clearWhatsAppVerificationStatus:p,closeWhatsAppLinkSuccessBanner:q,toggleWhatsAppNumberReadEditMode:r,onCallToActionChange:s,onCallToActionLinkChange:t,onToggleCreativeCategoryLink:v,onImageDialogShown:w,onChildAttachmentIndexSelected:x,onWelcomeMessageChange:u,updateImageCrops:y,updateImage:z,hanldeVideoEncodingSuccess:A,hanldeVideoEncodingFailure:B,onCancelVideoUpload:C,onClearVideoCreative:D,onMapCardChange:Q,updateVideoThumbnail:E,startVideoImport:F,updateCreativeBody:G,updateLinkDataBody:H,updateVideoDescription:I,updateLinkDataHeadline:J,updateVideoHeadline:K,updateVideoDataURL:L,updateLinkDataURL:M,onChildAttachmentAdd:O,onChildAttachmentRemove:P}}),null);
__d("BoostedComponentInstagramNuxTypes",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({CONNECT_TO_BUSINESS_PROFILE:"connect_to_business_profile"})}),null);
__d("XBoostedComponentConnectInstagramBusinessAccountController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/ads/boosted_components/connect_instagram_business_account/",{app_id:{type:"Int",required:true},page_id:{type:"Int",required:true},post_id:{type:"Int"}})}),null);
__d("BoostedComponentInstagramActionsV2",["AdsBoostedComponentInstagramV2LoadConnectedInstagramAccountDataDataAction","AsyncRequest","BoostedComponentInstagramNuxTypes","immutable","XBoostedComponentConnectInstagramBusinessAccountController"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=function h(j,k,l,m,n){c("AdsBoostedComponentInstagramV2LoadConnectedInstagramAccountDataDataAction").dispatch({appID:j,targetID:k,data:{instagramAccountID:l,nuxType:m,nuxExtraData:n}})},i=function i(j,k,l){__p&&__p();var m=c("XBoostedComponentConnectInstagramBusinessAccountController").getURIBuilder().setInt("app_id",j).setInt("page_id",l).setInt("post_id",k),n=m.getURI();new(c("AsyncRequest"))(n).setHandler(function(o){var p=o.payload;if(!p)return;var q=p.instagramAccountID,r=p.instagramAccountUsername;if(!q)return;var s=c("BoostedComponentInstagramNuxTypes").CONNECT_TO_BUSINESS_PROFILE,t=c("immutable").Map({instagramAccountUsername:r});h(j,k,q,s,t)}).setErrorHandler(function(o){}).send()};f.exports={connectInstagramBusinessAccount:i}}),null);
__d("BoostedComponentSection.react",["cx","LeftRight.react","React","XUICard.react","XUICardSection.react","joinClasses"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes;i=babelHelpers.inherits(l,c("React").Component);j=i&&i.prototype;function l(){var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=j.constructor).call.apply(m,[this].concat(p)),this.$BoostedComponentSection1=function(){if(!this.props.title)return null;return c("React").createElement("div",{className:"_144t"},c("React").createElement(c("LeftRight.react"),null,this.props.title,this.props.headerLink))}.bind(this),n}l.prototype.render=function(){var m="_2f3o"+(!this.props.isOnlyTopBorder&&!this.props.isFirstSection?" _49hu":"")+(this.props.isOnlyTopBorder?" _3s8d":"")+(this.props.noBorder||this.props.isOnlyTopBorder&&this.props.isFirstSection?" _3s8e":"");return c("React").createElement(c("XUICard.react"),{className:m},this.$BoostedComponentSection1(),c("React").createElement(c("XUICardSection.react"),{className:c("joinClasses")(this.props.className,!this.props.isOnlyTopBorder?"_2ji8":"")},this.props.children))};l.propTypes={headerLink:k.object,isFirstSection:k.bool,isOnlyTopBorder:k.bool,noBorder:k.bool,title:k.string};f.exports=l}),null);
__d("BoostedComponentContentV2.react",["cx","React","joinClasses"],(function a(b,c,d,e,f,g,h){"use strict";var i=function i(j){var k=0,l=c("React").Children.map(j.children,function(m,n){if(m==undefined)return m;return c("React").createElement("div",{className:++k!==1?"_2jlc":""},m)});return c("React").createElement("div",{className:c("joinClasses")(j.className,"_2jld")},l)};f.exports=i}),null);
__d("BoostedComponentSectionSubheaderV2.react",["cx","BoostedComponentContentV2.react","React","SUIBusinessTheme","SUINotice.react"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i=function i(j){__p&&__p();var k=j.errors,l=j.link,m=j.warnings,n=void 0,o=void 0;if(k&&k.size>0){n=k;o="error"}else{n=m;o="warning"}if(!n||n.size<1)return null;var p=n.map(function(s){return l?c("React").createElement("span",null,s," ",l):s}),q=null;if(p.count()>1)q=p.map(function(s,t){return c("React").createElement("li",{key:"item_"+t},s)});else q=p.map(function(s,t){return c("React").createElement("div",{key:"item_"+t},s)});var r=null;if(q.count()>1)r=c("React").createElement("ul",{className:"_2w97"},q);else if(q.count()===1)r=q.first();else r=c("React").createElement("div",null);return c("React").createElement(c("BoostedComponentContentV2.react"),{className:"_1vtn"},c("React").createElement(c("SUINotice.react"),{theme:c("SUIBusinessTheme"),type:o},r))};f.exports=i}),null);
__d("BoostedComponentCollapsableSectionV2.react",["cx","BoostedComponentCreativeSectionStrings","BoostedComponentSection.react","BoostedComponentSectionSubheaderV2.react","BoostedComponentStringsV2","BoostedComponentTestElement","Image.react","Link.react","React","SUIBusinessTheme","SUIText.react"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("BoostedComponentCreativeSectionStrings").getCreativeSectionTitle,l=c("React").createElement(c("Image.react"),{src:"/images/ads/manage/oca/pencil.png"}),m=function m(p){var q=p.isCollapsed?c("BoostedComponentStringsV2").EDIT:c("BoostedComponentStringsV2").SAVE,r=p.isCollapsed?l:null;if(p.collapsedLinkEnabled)return c("React").createElement(c("Link.react"),{className:"_2jae","data-testid":c("BoostedComponentTestElement").COLLAPSE_LINK,role:"button",onClick:p.onCollapseLinkClick},r," ",q);return c("React").createElement(c("SUIText.react"),{shade:"light",size:"meta1",theme:c("SUIBusinessTheme")},r," ",q)},n=function n(p){if(!p.isCollapsed)return null;var q=c("React").createElement(c("Link.react"),{role:"button",onClick:p.onCollapseLinkClick},c("BoostedComponentStringsV2").EDIT);return c("React").createElement(c("BoostedComponentSectionSubheaderV2.react"),{errors:p.errors,link:q})};i=babelHelpers.inherits(o,c("React").Component);j=i&&i.prototype;function o(){var p,q;for(var r=arguments.length,s=Array(r),t=0;t<r;t++)s[t]=arguments[t];return q=(p=j.constructor).call.apply(p,[this].concat(s)),this.state={isCollapsed:this.props.collapsedLinkEnabled},this.$BoostedComponentCollapsableSectionV21=function(){this.setState({isCollapsed:!this.state.isCollapsed})}.bind(this),q}o.prototype.componentWillReceiveProps=function(p){var q=p.errors;if(q&&q.size)if(this.state.isCollapsed)this.setState({isCollapsed:false})};o.prototype.render=function(){var p=this.props,q=p.collapsedLinkEnabled,r=p.errors,s=this.state.isCollapsed?null:this.props.children;return c("React").createElement(c("BoostedComponentSection.react"),{headerLink:c("React").createElement(m,{collapsedLinkEnabled:q,isCollapsed:this.state.isCollapsed,onCollapseLinkClick:this.$BoostedComponentCollapsableSectionV21}),isFirstSection:this.props.isFirstSection,title:k(this.props.appID)},c("React").createElement(n,{errors:r,isCollapsed:this.state.isCollapsed,onCollapseLinkClick:this.$BoostedComponentCollapsableSectionV21}),s)};f.exports=o}),null);
__d("BoostedComponentLabeledEditor.react",["cx","fbt","AdsLabeledField.react","LeftRight.react","LoadingIndicator.react","React","SUIBusinessTheme","SUIText.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("React").PropTypes;j=babelHelpers.inherits(m,c("React").Component);k=j&&j.prototype;function m(){__p&&__p();var n,o;for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=k.constructor).call.apply(n,[this].concat(q)),this.$BoostedComponentLabeledEditor1=function(){return this.props.children.props.value===null?0:this.props.children.props.value.length}.bind(this),this.$BoostedComponentLabeledEditor3=function(){var s=(!this.props.showLoadingIndicator?"hidden_elem":"")+" _3-9d";return c("React").createElement(c("LoadingIndicator.react"),{className:s,color:"white",size:"small"})}.bind(this),this.$BoostedComponentLabeledEditor5=function(){if(!this.props.showLoadingIndicator&&this.props.showCounter)return this.$BoostedComponentLabeledEditor2();return this.$BoostedComponentLabeledEditor3()}.bind(this),o}m.prototype.$BoostedComponentLabeledEditor2=function(){var n=this.props.counterValue!=null?this.props.counterValue:this.$BoostedComponentLabeledEditor1(),o=false;if(this.props.exceedCounterLimitColor&&this.props.counterLimit&&n&&this.props.counterLimit<n)o=true;return c("React").createElement(c("SUIText.react"),{shade:"light",size:"meta1",theme:c("SUIBusinessTheme")},i._("{length of string} \/ {maximum length allowed}",[i.param("length of string",c("React").createElement(c("SUIText.react"),{customColorUseSparingly:o?this.props.exceedCounterLimitColor:undefined,shade:"light"},n)),i.param("maximum length allowed",this.props.counterLimit)]))};m.prototype.$BoostedComponentLabeledEditor4=function(){if(this.props.descriptionText)return c("React").createElement("div",{className:"_321j"},this.props.descriptionText);return null};m.prototype.render=function(){var n=!this.props.label;return c("React").createElement("div",{className:this.props.className},c("React").createElement(c("LeftRight.react"),{className:n?"hidden_elem":""},c("React").createElement(c("AdsLabeledField.react"),{className:"_2nvc",helpText:this.props.tooltip,label:this.props.label,labelSize:"small",tooltipWidth:this.props.tooltipWidth}),this.$BoostedComponentLabeledEditor5()),c("React").createElement("div",null,this.props.children),this.$BoostedComponentLabeledEditor4())};m.propTypes={className:l.string,counterLimit:l.number,counterValue:l.number,descriptionText:l.node,exceedCounterLimitColor:l.string,label:l.node,showCounter:l.bool,showLoadingIndicator:l.bool,tooltip:l.node,tooltipWidth:l.number};f.exports=m}),null);
__d("BoostedComponentCreativeBodyEditorV2.react",["AdsTextInput.react","AdsValidationConfig","BoostedComponentConstants","BoostedComponentCreativeSectionStrings","BoostedComponentLabeledEditor.react","BoostedComponentTestElement","React"],(function a(b,c,d,e,f,g){"use strict";var h=function h(i){var j=i.body,k=i.className,l=i.errors,m=i.onBodyChange,n=i.showCounter,o=i.tooltip,p=l?l.toJS():null,q=n?c("AdsValidationConfig").maxBodyLength:null;return c("React").createElement(c("BoostedComponentLabeledEditor.react"),{className:k,counterLimit:c("BoostedComponentConstants").BODY_EDITOR_TEXT_LIMIT,label:c("BoostedComponentCreativeSectionStrings").CREATIVE_BODY_LABEL,showCounter:n,tooltip:o},c("React").createElement(c("AdsTextInput.react"),{badTextRules:c("BoostedComponentConstants").BAD_TEXT_RULES,"data-testid":c("BoostedComponentTestElement").DIALOG_CREATIVE_BODY,errors:p,hideMaxLength:true,maxLength:q,multiline:true,placeholder:c("BoostedComponentCreativeSectionStrings").CREATIVE_BODY_PLACEHOLDER,value:j,onChange:m}))};h.defaultProps={showCounter:true};f.exports=h}),null);
__d("BoostedComponentCreativeHeadlineEditorV2.react",["AdsTextInput.react","AdsValidationConfig","BoostedComponentConstants","BoostedComponentCreativeSectionStrings","BoostedComponentLabeledEditor.react","React"],(function a(b,c,d,e,f,g){"use strict";var h=function h(i){var j=i.errors,k=i.headline,l=i.onHeadlineChange,m=j?j.toJS():null;return c("React").createElement(c("BoostedComponentLabeledEditor.react"),{counterLimit:c("BoostedComponentConstants").HEADLINE_EDITOR_TEXT_LIMIT,label:c("BoostedComponentCreativeSectionStrings").CREATIVE_HEADLINE_LABEL,showCounter:true,tooltip:c("BoostedComponentCreativeSectionStrings").CREATIVE_HEADLINE_TOOLTIP},c("React").createElement(c("AdsTextInput.react"),{badTextRules:c("BoostedComponentConstants").BAD_TEXT_RULES,enforceMaxLength:true,errors:m,hideMaxLength:true,maxLength:c("AdsValidationConfig").maxTitleLength,multiline:false,placeholder:c("BoostedComponentCreativeSectionStrings").CREATIVE_HEADLINE_PLACEHOLDER,value:k,onChange:l}))};f.exports=h}),null);
__d("AdsIndexedTabBar.react",["cx","React","TabBar.react","TabBarItem.react"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes;i=babelHelpers.inherits(l,c("React").Component);j=i&&i.prototype;function l(){var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=j.constructor).call.apply(m,[this].concat(p)),this.$AdsIndexedTabBar1=function(r){this.props.onItemSelected(+r)}.bind(this),n}l.prototype.render=function(){var m=[];for(var n=0;n<this.props.numItems;n++){var o=n+1,p="_53th"+(n>0?" _53tj":"")+(n===this.props.selectedItem?" _53tk":"")+(o!==n+1?" _x5b":"")+(this.props.size==="small"?" _r9g":"");m.push(c("React").createElement(c("TabBarItem.react"),{key:n},c("React").createElement("div",{className:p},o),c("React").createElement("div",{className:"_1_d-"}),c("React").createElement("div",{className:"_1_d_"})))}return c("React").createElement(c("TabBar.react"),{className:"_53tn",shouldCalculateVisibleTabs:this.props.shouldCalculateVisibleTabs,onTabClick:this.$AdsIndexedTabBar1},m)};l.propTypes={numItems:k.number.isRequired,onItemSelected:k.func.isRequired,selectedItem:k.number.isRequired,shouldCalculateVisibleTabs:k.bool.isRequired,size:k.oneOf(["small","normal"])};l.defaultProps={shouldCalculateVisibleTabs:true};f.exports=l}),null);
__d("BoostedComponentBetterProductNotice.react",["cx","AdsLWIDialogUtils","BoostedComponentAppID","BoostedComponentAppIDUtils","BoostedComponentBetterProductCheckerUtils","BoostedComponentRef","BoostedComponentStrings","BoostedPostStrings","React","XUIButton.react","XUINotice.react","getByPath"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("BoostedComponentBetterProductCheckerUtils").checkURI,l=c("BoostedComponentStrings").getBoostedWebsiteBetterProductString;i=babelHelpers.inherits(m,c("React").Component);j=i&&i.prototype;function m(){var n,o;for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=j.constructor).call.apply(n,[this].concat(q)),this.state={buttonData:null,suggestedProduct:null},this.$BoostedComponentBetterProductNotice4=function(){var s=this.state.buttonData;if(s){this.props.onButtonClick();c("AdsLWIDialogUtils").openLWIDialog(s.instanceID,this.props.pageID,s.placement,s.appID,s.instanceData.boostID,s.instanceData.targetID,false)}}.bind(this),o}m.prototype.componentDidMount=function(){var n=this.props,o=n.pageID,p=n.enteredURI,q=n.pageURI;if(p)this.$BoostedComponentBetterProductNotice1(o,p,q)};m.prototype.componentWillReceiveProps=function(n){var o=n.enteredURI;if(o&&o!==this.props.enteredURI){var p=n.pageID,q=n.pageURI;this.$BoostedComponentBetterProductNotice1(p,o,q)}};m.prototype.$BoostedComponentBetterProductNotice1=function(n,o,p){var q,r=this,s=k(n,o,p);if(s)(function(){var t=s.suggestedProduct,u=s.postID;c("BoostedComponentBetterProductCheckerUtils").fetchButtonData(t,n,u,c("BoostedComponentRef").WWW_CCTA_BETTER_PRODUCT_DIALOG).then(function(v){return this.$BoostedComponentBetterProductNotice2(t,v)}.bind(r))["catch"](function(v){return this.$BoostedComponentBetterProductNotice3()}.bind(r)).done()})();else this.$BoostedComponentBetterProductNotice3()};m.prototype.$BoostedComponentBetterProductNotice3=function(){if(this.state.suggestedProduct||this.state.buttonData)this.setState({buttonData:null,suggestedProduct:null})};m.prototype.$BoostedComponentBetterProductNotice2=function(n,o){__p&&__p();if(c("BoostedComponentAppIDUtils").isBoostedPostFamily(n)){var p=c("getByPath")(o,["configData","context_store_data","post_info"]);if(!p||!p.id)this.$BoostedComponentBetterProductNotice3();else{var q=c("BoostedPostStrings").DEFAULT_BUTTON_LABEL;if(n===c("BoostedComponentAppID").BOOSTED_EVENT)q=c("BoostedPostStrings").EVENT_BUTTON_LABEL;this.setState({buttonData:{appID:o.boostedComponentAppID,buttonLabel:q,configData:o.configData,instanceData:o.instanceData,instanceID:o.instanceID,placement:o.placement},suggestedProduct:n})}}else this.setState({buttonData:{appID:o.appID,buttonLabel:o.buttonLabel,configData:o.configData,ineligibleTooltip:o.ineligibleTooltip,instanceData:o.instanceData,instanceID:o.instanceID,placement:o.placement},suggestedProduct:n})};m.prototype.render=function(){var n=this.state.buttonData;if(!this.state.suggestedProduct||!n)return null;return c("React").createElement(c("XUINotice.react"),{className:this.props.className,size:"small"},l(this.state.suggestedProduct),c("React").createElement("div",{className:"_3-8w"},c("React").createElement(c("XUIButton.react"),{label:n.buttonLabel,ref:"button",use:"confirm",onClick:this.$BoostedComponentBetterProductNotice4})))};f.exports=m}),null);
__d("BoostedComponentContent.react",["cx","React","joinClasses"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes;i=babelHelpers.inherits(l,c("React").Component);j=i&&i.prototype;l.prototype.render=function(){var m=0,n=c("React").Children.map(this.props.children,function(o,p){if(o==undefined)return o;return c("React").createElement("div",{className:++m!==1?"_2jlc":""},o)});return c("React").createElement("div",{className:c("joinClasses")(this.props.className,"_2jld")},n)};function l(){i.apply(this,arguments)}l.propTypes={className:k.string};f.exports=l}),null);
__d("BoostedComponentCreativeEditorMixin",["AdsAPIObjectives","BoostedComponentAppID","BoostedComponentCreativeEditingConfig"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h={getFieldBadTextRules:function i(){return{BAD_CHAR:/[\^~_=\{\}\[\]\|<>]/g,PUNC_STREAK:/[\/!.\\?\-*,;:()]{2,}/g,START_CHAR:/^[\/!\.\\?\-\*,:;()]/}},_getConfigForAppID:function i(j,k,l,m){__p&&__p();switch(j){case c("BoostedComponentAppID").BOOSTED_APP_INSTALL:return c("BoostedComponentCreativeEditingConfig").BOOSTED_APP_INSTALL;case c("BoostedComponentAppID").BOOSTED_AUTOMATED_ADS:return m===c("AdsAPIObjectives").LINK_CLICKS||m===c("AdsAPIObjectives").WEBSITE_CONVERSIONS?c("BoostedComponentCreativeEditingConfig").BOOSTED_AUTOMATED_ADS_LINK_CLICKS:c("BoostedComponentCreativeEditingConfig").BOOSTED_AUTOMATED_ADS_LOCAL_AWARENESS;case c("BoostedComponentAppID").BOOSTED_CCTA:return c("BoostedComponentCreativeEditingConfig").BOOSTED_CCTA;case c("BoostedComponentAppID").BOOSTED_DYNAMIC_PRODUCTS:return c("BoostedComponentCreativeEditingConfig").BOOSTED_DYNAMIC_PRODUCTS;case c("BoostedComponentAppID").BOOSTED_EVENT:return c("BoostedComponentCreativeEditingConfig").BOOSTED_EVENT;case c("BoostedComponentAppID").BOOSTED_GROUP:return c("BoostedComponentCreativeEditingConfig").BOOSTED_GROUP;case c("BoostedComponentAppID").BOOSTED_LOCAL_AWARENESS:if(k)return l?c("BoostedComponentCreativeEditingConfig").BOOSTED_LOCAL_AWARENESS_MPA_VIEW:c("BoostedComponentCreativeEditingConfig").BOOSTED_LOCAL_AWARENESS_CAROUSEL;else return c("BoostedComponentCreativeEditingConfig").BOOSTED_LOCAL_AWARENESS;case c("BoostedComponentAppID").BOOSTED_PAGE:return c("BoostedComponentCreativeEditingConfig").BOOSTED_PAGE;case c("BoostedComponentAppID").BOOSTED_PAGELIKE:return c("BoostedComponentCreativeEditingConfig").BOOSTED_PAGELIKE;case c("BoostedComponentAppID").BOOSTED_POST:return c("BoostedComponentCreativeEditingConfig").BOOSTED_POST;case c("BoostedComponentAppID").BOOSTED_WEBSITE:return l?c("BoostedComponentCreativeEditingConfig").BOOSTED_WEBSITE_MPA_VIEW:c("BoostedComponentCreativeEditingConfig").BOOSTED_WEBSITE}return null},shouldRenderCreativeElement:function i(j,k,l,m,n){var o=h._getConfigForAppID(j,l,m,n);if(!o)return false;return o.indexOf(k)>-1},reorderCreativeElements:function i(j,k,l,m,n){var o=h._getConfigForAppID(j,l,m,n);if(!o)return[];var p=[];o.map(function(q){if(k.has(q))p.push(k.get(q))});return p}};f.exports=h}),null);
__d("AdsOfferInputLabel.react",["cx","ix","Image.react","React","SUIBusinessTheme","SUIPopoverLayer.react","SUISimplePopover.react","SUIText.react","joinClasses"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("React").PropTypes;j=babelHelpers.inherits(m,c("React").Component);k=j&&j.prototype;function m(){var n,o;for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=k.constructor).call.apply(n,[this].concat(q)),this.state={shouldShowTooltip:false},this.$AdsOfferInputLabel2=function(){this.setState({shouldShowTooltip:true})}.bind(this),this.$AdsOfferInputLabel3=function(){this.setState({shouldShowTooltip:false})}.bind(this),o}m.prototype.renderLayers=function(){if(!this.props.helpText||!this.state.shouldShowTooltip)return null;return c("React").createElement(c("SUIPopoverLayer.react"),{content:this.props.helpText,contextRef:function(){return this.refs.helpIcon}.bind(this),key:"tooltip",position:"below",theme:c("SUIBusinessTheme")})};m.prototype.render=function(){return c("React").createElement("span",null,c("React").createElement(c("SUIText.react"),{className:c("joinClasses")("_4ptj",this.props.className),display:this.props.display||"block",shade:"medium",size:"meta1",theme:c("SUIBusinessTheme"),weight:"bold"},this.props.label,this.props.helpText?this.$AdsOfferInputLabel1():null),this.renderLayers())};m.prototype.$AdsOfferInputLabel1=function(){if(this.props.useAdsHelpLink&&this.props.helpText)return c("React").createElement(c("SUISimplePopover.react"),{content:this.props.helpText,contentWidthUseSparingly:268,theme:c("SUIBusinessTheme")});return c("React").createElement(c("Image.react"),{className:"_1vuh",ref:"helpIcon",src:i("28631"),onMouseEnter:this.$AdsOfferInputLabel2,onMouseLeave:this.$AdsOfferInputLabel3})};m.propTypes={className:l.string,display:l.string,helpText:l.node,label:l.node.isRequired,useAdsHelpLink:l.bool};f.exports=m}),null);
__d("OfferDiscountType",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({PERCENTAGE_OFF:"percentage_off",FREE_STUFF:"free_stuff",CASH_DISCOUNT:"cash_discount",BOGO:"bogo"})}),null);
__d("AdsOfferDiscountTypeSelector.react",["cx","fbt","AdsOfferInputLabel.react","OfferDiscountType","React","XUISingleSelector.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("XUISingleSelector.react").Option,m=c("React").PropTypes;j=babelHelpers.inherits(n,c("React").Component);k=j&&j.prototype;n.prototype.render=function(){return c("React").createElement("div",{className:"_55hx"},c("React").createElement(c("AdsOfferInputLabel.react"),{className:this.props.useAdsStyles?"_lgp":null,helpText:this.props.helpText,label:this.props.label||i._("Offer Type"),useAdsHelpLink:this.props.useAdsStyles}),c("React").createElement(c("XUISingleSelector.react"),{size:"large",value:this.props.discountType,onBlur:this.props.onBlur,onChange:this.props.onSelectorChange},this.$AdsOfferDiscountTypeSelector1(),c("React").createElement(l,{value:c("OfferDiscountType").PERCENTAGE_OFF},i._("Percent Off")),c("React").createElement(l,{value:c("OfferDiscountType").CASH_DISCOUNT},i._("Amount Off")),c("React").createElement(l,{value:c("OfferDiscountType").BOGO},i._("Buy One, Get One")),c("React").createElement(l,{value:c("OfferDiscountType").FREE_STUFF},i._("Free Stuff"))))};n.prototype.$AdsOfferDiscountTypeSelector1=function(){if(this.props.showNoOfferOption)return c("React").createElement(l,{value:null},i._("No offer"));return null};function n(){j.apply(this,arguments)}n.propTypes={discountType:m.string,helpText:m.string,label:m.string,showNoOfferOption:m.bool,useAdsStyles:m.bool,onBlur:m.func,onSelectorChange:m.func.isRequired};f.exports=n}),null);
__d("BoostedLocalAwarenessOfferEditor.react",["fbt","AdsOfferDiscountTypeSelector.react","React"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").Component,l=c("React").PropTypes;i=babelHelpers.inherits(m,k);j=i&&i.prototype;function m(){var n,o;for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=j.constructor).call.apply(n,[this].concat(q)),this.$BoostedLocalAwarenessOfferEditor1=function(s){this.props.onOfferTypeChange(s.value)}.bind(this),o}m.prototype.render=function(){return c("React").createElement(c("AdsOfferDiscountTypeSelector.react"),{discountType:this.props.type,helpText:h._("Attract people to your business by adding a discount or promotion."),label:h._("Offer (optional)"),showNoOfferOption:true,useAdsStyles:true,onSelectorChange:this.$BoostedLocalAwarenessOfferEditor1})};m.propTypes={type:l.string,onOfferTypeChange:l.func.isRequired};f.exports=m}),null);
__d("AbstractCalendarPager.react",["fbt","LocalDate","Focus","React","ReactDOM","uniqueID"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").Component,l=c("React").PropTypes;i=babelHelpers.inherits(m,k);j=i&&i.prototype;function m(o){j.constructor.call(this,o);n.call(this);this.$AbstractCalendarPager2=c("uniqueID")();this.state=this.$AbstractCalendarPager5(o,{})}m.prototype.componentWillReceiveProps=function(o){var p=!this.$AbstractCalendarPager6(o.focusDate,this.props.focusDate)&&this.$AbstractCalendarPager3&&this.$AbstractCalendarPager3.equals(o.focusDate),q=!this.$AbstractCalendarPager7(this.props.selectDate,o.selectDate)&&this.$AbstractCalendarPager7(this.$AbstractCalendarPager4,o.selectDate);this.$AbstractCalendarPager3=null;this.$AbstractCalendarPager4=null;this.setState(function(r){return this.$AbstractCalendarPager5(o,r)}.bind(this),function(){if(p)this.$AbstractCalendarPager1&&c("Focus").set(this.$AbstractCalendarPager1);if(q)this.$AbstractCalendarPager1&&c("Focus").setWithoutOutline(this.$AbstractCalendarPager1)}.bind(this))};m.prototype.$AbstractCalendarPager7=function(o,p){return!!(o&&p&&o.equals(p))};m.prototype.$AbstractCalendarPager6=function(o,p){return o.getMonth()===p.getMonth()&&o.getYear()===p.getYear()};m.prototype.$AbstractCalendarPager5=function(o,p){var q=o.focusDate,r=o.rangeSelectDate,s=o.selectDate;return{cursor:this.$AbstractCalendarPager8(p.cursor,o)&&p.cursor||this.$AbstractCalendarPager8(s,o)&&s||this.$AbstractCalendarPager8(r,o)&&r||q,buttonFocused:p.buttonFocused!=null?p.buttonFocused:false}};m.prototype.$AbstractCalendarPager8=function(o,p){if(!o)return false;var q=p.focusDate.startOfMonth(),r=q.addMonths(p.count);return q.isBeforeOrEqual(o)&&r.isAfter(o)};m.prototype.$AbstractCalendarPager12=function(o){return this.props.focusDate.startOfMonth().addMonths(o)};m.prototype.$AbstractCalendarPager16=function(o){o.preventDefault()};m.prototype.canPageByMonthDelta=function(o){if(!this.props.limitPagerToRestraints)return true;return this.$AbstractCalendarPager11(this.$AbstractCalendarPager12(o))};m.prototype.$AbstractCalendarPager11=function(o){var p=o.getMonth(),q=o;while(q.getMonth()===p){if(this.$AbstractCalendarPager17(q))return true;q=q.addDays(1)}return false};m.prototype.$AbstractCalendarPager17=function(o){return!this.props.dateRestraints||this.props.dateRestraints.every(function(p){return p(o)})};m.prototype.canPagePrev=function(){return this.canPageByMonthDelta(-1)};m.prototype.canPageNext=function(){return this.canPageByMonthDelta(1)};m.prototype.$AbstractCalendarPager18=function(o){return c("React").createElement("h2",{className:this.props.classNames.monthHeader,id:o.headerId,key:o.key},this.$AbstractCalendarPager19(o))};m.prototype.$AbstractCalendarPager19=function(o){return h._("{month} {year}",[h.param("month",c("React").createElement("span",{className:this.props.classNames.month},o.focusDate.format("F",{skipPatternLocalization:true}))),h.param("year",c("React").createElement("span",{className:this.props.classNames.year},o.focusDate.getYear()))])};m.prototype.$AbstractCalendarPager20=function(){return c("React").cloneElement(this.props.leftButton,{disabled:!this.canPagePrev(),label:h._("Previous month"),labelIsHidden:true,onBlur:this.$AbstractCalendarPager21,onClick:this.$AbstractCalendarPager14,onFocus:this.$AbstractCalendarPager22,onMouseDown:this.$AbstractCalendarPager16,tabIndex:0})};m.prototype.$AbstractCalendarPager23=function(){return c("React").cloneElement(this.props.rightButton,{disabled:!this.canPageNext(),label:h._("Next month"),labelIsHidden:true,onBlur:this.$AbstractCalendarPager21,onClick:this.$AbstractCalendarPager15,onFocus:this.$AbstractCalendarPager22,onMouseDown:this.$AbstractCalendarPager16,tabIndex:0})};m.prototype.$AbstractCalendarPager24=function(o){var p=this.props;return c("React").createElement(p.calendarType,{"aria-labelledby":o.headerId,allowDuplicateSelection:p.allowDuplicateSelection,allowVariableRowCount:p.allowVariableRowCount,dateRestraints:p.dateRestraints,dayInnerFormatter:p.dayInnerFormatter,defaultCursor:this.state.cursor,focusDate:o.focusDate,highlightedDates:p.highlightedDates,hoveredDates:p.hoveredDates,highlightedTimes:p.highlightedTimes,onCursorChange:this.$AbstractCalendarPager10,onMouseOverDay:p.onMouseOverDay,onMouseOutDay:p.onMouseOutDay,onFocusDateChange:p.onFocusDateChange,onSelectDateChange:this.$AbstractCalendarPager9,rangeSelectDate:p.rangeSelectDate,selectDate:p.selectDate,setupFocusRef:this.$AbstractCalendarPager13})};m.prototype.$AbstractCalendarPager25=function(o){return c("React").createElement("div",{className:this.props.classNames.calendarWrapper,key:o.key},this.$AbstractCalendarPager18(o),this.$AbstractCalendarPager24(o))};m.prototype.$AbstractCalendarPager26=function(){var o=[],p=this.props.count;for(var q=0;q<p;q++){var r=this.$AbstractCalendarPager12(q),s=r.getMonth()+"-"+r.getYear();o.push({focusDate:r,headerId:this.$AbstractCalendarPager2+"-"+s,key:p>1?s:"1"})}return o};m.prototype.render=function(){__p&&__p();var o=this.$AbstractCalendarPager26(),p=Object.assign({},this.props);delete p.allowDuplicateSelection;delete p.allowVariableRowCount;delete p.calendarType;delete p.classNames;delete p.count;delete p.dateRestraints;delete p.dayInnerFormatter;delete p.focusDate;delete p.highlightedTimes;delete p.hoveredDates;delete p.leftButton;delete p.limitPagerToRestraints;delete p.onFocusDateChange;delete p.onSelectDateChange;delete p.rangeSelectDate;delete p.rightButton;delete p.selectDate;delete p.setupFocusRef;return c("React").createElement("div",babelHelpers["extends"]({},p,{"data-count":this.props.count}),c("React").createElement("div",{className:this.props.classNames.buttonsWrapper},this.$AbstractCalendarPager20(),this.$AbstractCalendarPager23()),c("React").createElement("div",{className:this.props.classNames.main},o.map(this.$AbstractCalendarPager25,this)),c("React").createElement("div",{"aria-atomic":"true","aria-live":"polite",className:"accessible_elem"},this.state.buttonFocused?this.$AbstractCalendarPager19(o[0]):""))};m.propTypes={allowDuplicateSelection:l.bool,allowVariableRowCount:l.bool,calendarType:l.func.isRequired,classNames:l.shape({buttonsWrapper:l.string,calendarWrapper:l.string,main:l.string,month:l.string,monthHeader:l.string,year:l.string}),count:l.number,dateRestraints:l.array,dayInnerFormatter:l.func,focusDate:l.instanceOf(c("LocalDate")).isRequired,highlightedDates:l.array,highlightedTimes:l.array,hoveredDates:l.array,leftButton:l.node.isRequired,limitPagerToRestraints:l.bool,onFocusDateChange:l.func.isRequired,onMouseOverDay:l.func,onMouseOutDay:l.func,onSelectDateChange:l.func,rangeSelectDate:l.instanceOf(c("LocalDate")),renderExplicitRangeLabel:l.bool,rightButton:l.node.isRequired,selectDate:l.instanceOf(c("LocalDate")),setupFocusRef:l.func};m.defaultProps={classNames:{},count:1};var n=function n(){__p&&__p();this.$AbstractCalendarPager9=function(o){this.setState({cursor:o});this.$AbstractCalendarPager4=o;this.props.onSelectDateChange&&this.props.onSelectDateChange(o)}.bind(this);this.$AbstractCalendarPager10=function(o){__p&&__p();if(this.props.limitPagerToRestraints&&!this.$AbstractCalendarPager11(o))return;var p=void 0;if(!this.$AbstractCalendarPager8(o,this.props)){p=this.$AbstractCalendarPager12(this.props.focusDate.isBefore(o)?1:-1);var q={focusDate:p,count:this.props.count};if(!this.$AbstractCalendarPager8(o,q))p=o}this.setState({cursor:o},function(){if(p){this.$AbstractCalendarPager3=p;this.props.onFocusDateChange(p)}else this.$AbstractCalendarPager1&&c("Focus").set(this.$AbstractCalendarPager1)}.bind(this))}.bind(this);this.$AbstractCalendarPager13=function(o){this.$AbstractCalendarPager1=o?c("ReactDOM").findDOMNode(o):null;this.props.setupFocusRef&&this.props.setupFocusRef(this.$AbstractCalendarPager1)}.bind(this);this.$AbstractCalendarPager14=function(){this.props.onFocusDateChange(this.$AbstractCalendarPager12(-1))}.bind(this);this.$AbstractCalendarPager15=function(){this.props.onFocusDateChange(this.$AbstractCalendarPager12(1))}.bind(this);this.$AbstractCalendarPager22=function(){this.setState({buttonFocused:true})}.bind(this);this.$AbstractCalendarPager21=function(){this.setState({buttonFocused:false})}.bind(this)};f.exports=m}),null);
__d("DateHelpers",[],(function a(b,c,d,e,f,g){__p&&__p();function h(k){var l=k.getDayOfWeek();if(l===0)l=7;var m=Math.floor((k.getDayOfYear()-l+11)/7);if(m<1)m=i(k.subtractYears(1));else if(m>i(k))m=1;return m}function i(k){var l=k.getYear(),m=k.startOfYear(),n=m.getDayOfWeek();if(n===4||n===3&&j(l))return 53;return 52}function j(k){return k%4===0&&k%100!==0||k%400===0}f.exports={getISOWeekNumber:h,isLeapYear:j}}),null);
__d("AbstractCalendar.react",["fbt","DateFormatConfig","DateHelpers","List.react","LocalDate","React","RTLKeys","joinClasses"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k,l,m=c("React").PropTypes,n=7,o=6,p="start",q="mid",r="end",s="only";i=babelHelpers.inherits(t,c("React").Component);j=i&&i.prototype;function t(){__p&&__p();var v,w;for(var x=arguments.length,y=Array(x),z=0;z<x;z++)y[z]=arguments[z];return w=(v=j.constructor).call.apply(v,[this].concat(y)),this.$AbstractCalendar1=function(A){this.props.onCursorChange&&this.props.onCursorChange(A)}.bind(this),this.$AbstractCalendar2=function(A){if(!this.props.interactive)return;if((this.props.allowDuplicateSelection||!this.isDateSelected(A))&&this.isDateValid(A))this.props.onSelectDateChange&&this.props.onSelectDateChange(A)}.bind(this),this.isDateSelected=function(A){return!!this.props.selectDate&&A.equals(this.props.selectDate)}.bind(this),this.isDateHighlighted=function(A){return!!this.props.highlightedDates&&this.props.highlightedDates.some(function(B){return A.equals(B)})}.bind(this),this.isDateValid=function(A){return!this.props.dateRestraints||this.props.dateRestraints.every(function(B){return B(A)})}.bind(this),this.$AbstractCalendar3=function(A,B,C){if(this.props.showWeekNumbers)B.unshift(this.$AbstractCalendar4(C));A.push(B)}.bind(this),this.$AbstractCalendar4=function(A){if(A.getDayOfWeek()===0)A=A.addDays(1);var B=this.props.classNames||{},C=c("DateHelpers").getISOWeekNumber(A);return c("React").createElement("div",{className:B.weekNumber,key:"weekNumber",role:"rowheader"},C)}.bind(this),w}t.prototype.isDateHovered=function(v){return!!this.props.hoveredDates&&this.props.hoveredDates.some(function(w){return v.equals(w)})};t.prototype.render=function(){__p&&__p();var v=this.props.focusDate,w=this.props.weeklyView,x=c("DateFormatConfig").weekStart,y=w?v.startOfWeek().addDays((x+1)%7):v.startOfMonth(),z=this.props.selectDate,A=null,B=null;if(this.props.rangeSelectDate!==null)A=this.props.rangeSelectDate;if(z&&A){var C=z.min(A),D=z.max(A);B={minDate:C,maxDate:D,hasDuration:!C.equals(D)}}var E=[],F=[],G=w?0:(y.getDayOfWeek()+6-x)%7,H=this.props.classNames||{};for(var I=0;I<G;++I)F.push(c("React").createElement("span",{className:H.spacer,key:I,role:"gridcell"}));var J=w?y.addWeeks(1):y.addMonths(1);while(y.isBefore(J)){var K=y;y=y.addDays(1);var L=y.getMonth()>K.getMonth()||K.getMonth()===12&&y.getMonth()===1,M=(F.length+1)%7,N=M===1||!w&&K.getDayOfMonth()===1,O=M===0||!w&&L,P=null,Q=null;if(B){if(K.isAfter(B.minDate)&&K.isBefore(B.maxDate))P=q;else if(K.equals(B.minDate))P=p;else if(K.equals(B.maxDate))P=r;if(!B.hasDuration)Q=s;else if(O)Q=N||P==p?s:r;else if(N)Q=P==r?s:p;else Q=q}var R=this.props.defaultCursor&&this.props.defaultCursor.equals(K);F.push(c("React").createElement(u,{date:K,dayClassNames:this.props.dayClassNames,dayInnerClassNames:this.props.dayInnerClassNames,dayInnerFormatter:this.props.dayInnerFormatter,focused:K.equals(this.props.focusDate),highlighted:this.isDateHighlighted(K),hovered:this.isDateHovered(K),key:K,onCursorChange:this.$AbstractCalendar1,onMouseOver:this.props.onMouseOverDay,onMouseOut:this.props.onMouseOutDay,onSelect:this.$AbstractCalendar2,rangePosition:P,setupFocusRef:R?this.props.setupFocusRef:undefined,rowPosition:Q,selected:this.isDateSelected(K),tabIndex:R?0:-1,valid:this.isDateValid(K)}));if(O&&!w){if(F.length<n){var S=n-F.length;for(var T=0;T<S;T++)F.push(c("React").createElement("span",{className:H.spacer,key:T,role:"gridcell"}))}this.$AbstractCalendar3(E,F,K);F=[]}}if(F.length)this.$AbstractCalendar3(E,F,y);if(!this.props.allowVariableRowCount)for(var U=E.length;U<o;++U)E.push(c("React").createElement("span",{className:H.spacer,key:U,role:"gridcell"}));E=E.map(function(Y,Z){return c("React").createElement("div",{className:H.row,key:Z,role:"row"},Y)});var V=[];if(this.props.showWeekNumbers)V.push(c("React").createElement("li",{"aria-label":h._("Week number"),className:H.weekNumberHeading,key:"title",role:"columnheader"},h._("Wk")));for(var W=0;W<n;++W)V.push(c("React").createElement("li",{key:W,className:H.dayName,role:"columnheader",style:this.props.dayNameStyle},c("DateFormatConfig").shortDayNames[(x+W)%7]));var X=Object.assign({},this.props);delete X.allowVariableRowCount;delete X.allowDuplicateSelection;delete X.classNames;delete X.dayClassNames;delete X.dayInnerClassNames;delete X.dayInnerFormatter;delete X.dayNameStyle;delete X.dateRestraints;delete X.defaultCursor;delete X.focusDate;delete X.highlightedDates;delete X.interactive;delete X.onCursorChange;delete X.onSelectDateChange;delete X.rangeSelectDate;delete X.selectDate;delete X.setupFocusRef;delete X.showWeekNumbers;delete X.weeklyView;delete X.onFocusDateChange;delete X.highlightedTimes;return c("React").createElement("div",babelHelpers["extends"]({},X,{className:c("joinClasses")(this.props.className,H.root,this.props.interactive?H.interactive:null,this.props.showWeekNumbers?H.weekNumbers:null),role:"grid"}),c("React").createElement(c("List.react"),{className:H.dayNames,border:"none",direction:"horizontal",role:"row",spacing:"none"},V),c("React").createElement("div",{className:H.monthViewDayGrid},E))};t.propTypes={allowVariableRowCount:m.bool,allowDuplicateSelection:m.bool,classNames:m.shape({dayName:m.string,dayNames:m.string,interactive:m.string,monthViewDayGrid:m.string,root:m.string,row:m.string,spacer:m.string}),dayClassNames:m.shape({day:m.string,dayInRange:m.string,dayRangeEndpoint:m.string,dayRangeLeft:m.string,dayRangeOnly:m.string,dayRangeRight:m.string,dayValid:m.string}),dayInnerClassNames:m.shape({dayInner:m.string,dayInnerFocused:m.string,dayInnerHighlighted:m.string,dayInnerHovered:m.string,dayInnerSelected:m.string}),dayInnerFormatter:m.func,dayNameStyle:m.object,dateRestraints:m.arrayOf(m.func),defaultCursor:m.instanceOf(c("LocalDate")),focusDate:m.instanceOf(c("LocalDate")).isRequired,highlightedDates:m.arrayOf(m.instanceOf(c("LocalDate"))),hoveredDates:m.arrayOf(m.instanceOf(c("LocalDate"))),interactive:m.bool,onCursorChange:m.func,onMouseOverDay:m.func,onMouseOutDay:m.func,onSelectDateChange:m.func,rangeSelectDate:m.instanceOf(c("LocalDate")),selectDate:m.instanceOf(c("LocalDate")),setupFocusRef:m.func,showWeekNumbers:m.bool,weeklyView:m.bool};t.defaultProps={allowDuplicateSelection:false,allowVariableRowCount:true,classNames:{},dayClassNames:{},dayInnerClassNames:{},interactive:true,rangeSelectDate:null,showWeekNumbers:false,weeklyView:false};k=babelHelpers.inherits(u,c("React").Component);l=k&&k.prototype;function u(){__p&&__p();var v,w;for(var x=arguments.length,y=Array(x),z=0;z<x;z++)y[z]=arguments[z];return w=(v=l.constructor).call.apply(v,[this].concat(y)),this.$Day1=function(A){return c("joinClasses").apply(this,Object.keys(A).filter(function(B){return A[B]}))}.bind(this),this.$Day2=function(A){__p&&__p();switch(A.keyCode){case c("RTLKeys").RETURN:case c("RTLKeys").SPACE:A.preventDefault();this.$Day3();break;case c("RTLKeys").getLeft():A.preventDefault();this.$Day4(-1);break;case c("RTLKeys").getRight():A.preventDefault();this.$Day4(1);break;case c("RTLKeys").UP:A.preventDefault();this.$Day4(-7);break;case c("RTLKeys").DOWN:A.preventDefault();this.$Day4(7);break;case c("RTLKeys").HOME:A.preventDefault();this.$Day5(this.props.date.startOfMonth());break;case c("RTLKeys").END:A.preventDefault();this.$Day5(this.props.date.startOfMonth().addMonths(1).subtractDays(1));break;case c("RTLKeys").PAGE_UP:A.preventDefault();this.$Day6(A.ctrlKey||A.altKey?-12:-1);break;case c("RTLKeys").PAGE_DOWN:A.preventDefault();this.$Day6(A.ctrlKey||A.altKey?12:1);break}}.bind(this),this.$Day5=function(A){this.props.onCursorChange(A)}.bind(this),this.$Day4=function(A){this.$Day5(this.props.date.addDays(A))}.bind(this),this.$Day6=function(A){this.$Day5(this.props.date.addMonths(A))}.bind(this),this.$Day7=function(A){A.preventDefault()},this.$Day8=function(A){this.props.onMouseOut&&this.props.onMouseOut(this.props.date)}.bind(this),this.$Day9=function(A){this.props.onMouseOver&&this.props.onMouseOver(this.props.date)}.bind(this),this.$Day3=function(){if(this.props.valid)this.props.onSelect(this.props.date)}.bind(this),w}u.prototype.render=function(){var v,w,x=this.props,y=x.rowPosition,z=x.rangePosition,A=x.dayClassNames,B=x.dayInnerClassNames,C=z==p||z==q&&y==p,D=z==r||z==q&&y==r,E=y==s,F=z==p||z==r,G=(v={},v[A.day]=true,v[A.dayInRange]=z,v[A.dayRangeEndpoint]=F,v[A.dayRangeLeft]=C,v[A.dayRangeOnly]=E,v[A.dayRangeRight]=D,v[A.dayValid]=x.valid,v),H=(w={},w[B.dayInner]=true,w[B.dayInnerSelected]=x.selected,w[B.dayInnerFocused]=x.focused,w[B.dayInnerHighlighted]=x.highlighted,w[B.dayInnerHovered]=x.hovered,w),I={};if(x.dayInnerFormatter)I=x.dayInnerFormatter(x.date,{focused:x.focused,highlighted:x.highlighted,hovered:x.hovered,rangePosition:x.rangePosition,selected:x.selected,valid:x.valid});return c("React").createElement("span",{"aria-selected":x.selected||z!=null,className:this.$Day1(G),"data-sigil":x.valid?"touchable":null,onTouchStart:this.$Day3,role:"gridcell",style:I},c("React").createElement("span",{"aria-disabled":!x.valid,"aria-pressed":x.selected?true:undefined,className:this.$Day1(H),onMouseDown:this.$Day7,onMouseOver:this.$Day9,onMouseOut:this.$Day8,onClick:this.$Day3,onKeyDown:this.$Day2,ref:this.props.setupFocusRef,role:"button",tabIndex:x.tabIndex},this.props.date.getDayOfMonth()))};u.propTypes={date:m.instanceOf(c("LocalDate")).isRequired,dayInnerFormatter:m.func,focused:m.bool,highlighted:m.bool,hovered:m.bool,onCursorChange:m.func.isRequired,onSelect:m.func.isRequired,rangePosition:m.oneOf([p,q,r]),rowPosition:m.oneOf([p,q,r,s]),selected:m.bool,setupFocusRef:m.func,tabIndex:m.number,valid:m.bool};f.exports=t}),null);
__d("BUICalendar.react",["cx","AbstractCalendar.react","BUIComponent","React"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j;i=babelHelpers.inherits(k,c("BUIComponent"));j=i&&i.prototype;k.prototype.render=function(){var q={classNames:{dayName:"_oww",dayNames:"_owx",interactive:"_owy",monthViewDayGrid:"_owz clearfix",root:"_ow-",row:"_ow_ clearfix",spacer:"_ox0",weekNumber:"_3akl",weekNumberHeading:"_3akm",weekNumbers:"_3akn"},dayClassNames:{day:"_ox5",dayInRange:"_ox6",dayRangeEndpoint:"_ox7",dayRangeLeft:"_ox8",dayRangeOnly:"_ox9",dayRangeRight:"_oxa",dayValid:"_oxb"},dayInnerClassNames:{dayInner:"_oxc",dayInnerHighlighted:"_oxd",dayInnerHovered:"_2p4z",dayInnerSelected:"_oxe"}};return c("React").createElement(c("AbstractCalendar.react"),babelHelpers["extends"]({},q,this.props))};function k(){i.apply(this,arguments)}var l=c("AbstractCalendar.react").propTypes,m=l.classNames,n=l.dayClassNames,o=l.dayInnerClassNames,p=babelHelpers.objectWithoutProperties(l,["classNames","dayClassNames","dayInnerClassNames"]);k.propTypes=babelHelpers["extends"]({},p);f.exports=k}),null);
__d("BUICalendarPager.react",["ix","cx","fbt","AbstractButton.react","AbstractCalendarPager.react","BUICalendar.react","BUIComponent","Image.react","Locale","React","fbglyph","joinClasses"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m=c("React").PropTypes,n=c("Locale").isRTL();k=babelHelpers.inherits(o,c("BUIComponent"));l=k&&k.prototype;o.prototype.render=function(){var s=c("React").createElement(v,{className:"_2f0o _2f0p",glyphEnabled:h("142930"),glyphDisabled:h("144532"),label:j._("Next month"),labelIsHidden:true}),t=c("React").createElement(v,{className:"_2f0o _2f0q",glyphEnabled:h("142934"),glyphDisabled:h("144536"),label:j._("Previous month"),labelIsHidden:true}),w=this.props;return c("React").createElement(c("AbstractCalendarPager.react"),babelHelpers["extends"]({},w,{calendarType:c("BUICalendar.react"),className:c("joinClasses")("_2f0r",w.className),classNames:{buttonsWrapper:"_4_hv",calendarWrapper:"_4_hw",main:"_30w2 clearfix",month:"_2f0w",monthHeader:"_2f0s",year:"_2f0x"},leftButton:n?t:s,rightButton:n?s:t}))};function o(){k.apply(this,arguments)}var p=c("AbstractCalendarPager.react").propTypes,q=p.calendarType,r=p.classNames,s=p.leftButton,t=p.rightButton,u=babelHelpers.objectWithoutProperties(p,["calendarType","classNames","leftButton","rightButton"]);o.propTypes=babelHelpers["extends"]({},u,{count:m.oneOf([1,2])});o.defaultProps={count:1};function v(w){var x=w.disabled?w.glyphDisabled:w.glyphEnabled;w=Object.assign({},w);delete w.glyphDisabled;delete w.glyphEnabled;var y=c("React").createElement(c("Image.react"),{className:"_2f0y",src:x});return c("React").createElement(c("AbstractButton.react"),babelHelpers["extends"]({},w,{image:y,type:"button"}))}f.exports=o}),null);
__d("DatePickerInput.react",["cx","AbstractTextField.react","CalendarUtils","DateFormatConfig","InputSelection","Keys","LocalDate","React","ReactDOM","emptyFunction","getEventCharCode","joinClasses","shallowCompare"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes,l=c("React").Component,m=/\d/,n={order:c("DateFormatConfig").numericDateOrder,separator:c("DateFormatConfig").numericDateSeparator};function o(r){var s=/[1-9]{1}[0-9]*/g,t=void 0,u={},v=0;while(t=s.exec(r)){u[n.order[v]]=t;v++}return u}function p(r){if(r==null)return"";return c("CalendarUtils").localDateToString(r,n)}i=babelHelpers.inherits(q,l);j=i&&i.prototype;function q(r){__p&&__p();j.constructor.call(this,r);this.onFocus=function(s){this.setState({focused:true});this.props.onFocus(s)}.bind(this);this.onChange=function(s){__p&&__p();var t=void 0;if(s)if(typeof s==="string")t=s;else t=s.target.value;var u=void 0,v=false;if(t){u=c("CalendarUtils").stringToLocalDate(t,n.order);if(u){v=this.$DatePickerInput6(u);if(v)this.props.onChange(u);else this.props.onInvalidDateSelected(u)}}else this.props.onChange(null);if(u)this.setState({rawValue:this.$DatePickerInput2(u)});else this.setState({rawValue:t})}.bind(this);this.onKeyDown=function(event){__p&&__p();var s=event.keyCode;if(s==c("Keys").RETURN){event.preventDefault();this.props.onBlur(event);return}if(s===c("Keys").TAB){this.props.onBlur(event);return}if(s==c("Keys").UP||s==c("Keys").DOWN){event.preventDefault();var t=s==c("Keys").UP?1:-1,u=event.target,v=c("InputSelection").get(u),w=o(u.value),x=this.$DatePickerInput3();if(!x)return;for(var y in w){var z=w[y],A=z.index+z[0].length;if(v.start>=z.index&&v.start<=A){switch(y){case"m":x=x.addMonths(t);break;case"d":x=x.addDays(t);break;case"y":x=x.addYears(t);break}break}}if(x){this.$DatePickerInput1=y;if(this.$DatePickerInput6(x))this.props.onChange(x);else this.props.onInvalidDateSelected(x);this.setState({rawValue:this.$DatePickerInput2(x)})}}}.bind(this);this.onKeyUp=function(event){var s=event.keyCode;if(s==c("Keys").UP||s==c("Keys").DOWN)event.preventDefault();if(s==c("Keys").ESC)this.props.onBlur(event)}.bind(this);this.onKeyPress=function(event){var s=String.fromCharCode(c("getEventCharCode")(event.nativeEvent)),t=c("DateFormatConfig").numericDateSeparator;if(s===t||m.test(s))return;event.preventDefault()};this.state={focused:false,rawValue:this.$DatePickerInput2(r.value||r.defaultValue)}}q.prototype.shouldComponentUpdate=function(r,s){return c("shallowCompare")(this,r,s)};q.prototype.componentWillReceiveProps=function(r){if(r.value!==this.props.value||r.formatter!==this.props.formatter)this.setState({rawValue:this.$DatePickerInput2(r.value,r)})};q.prototype.$DatePickerInput3=function(){return c("CalendarUtils").stringToLocalDate(this.state.rawValue,n.order)};q.prototype.$DatePickerInput4=function(r){return r.formatter||p};q.prototype.$DatePickerInput2=function(r,s){return this.$DatePickerInput4(s||this.props)(r)};q.prototype.componentDidUpdate=function(r,s){var t=this.$DatePickerInput5();if(this.props.selectAllOnFocus&&!s.focused&&this.state.focused)c("InputSelection").set(t,0,t.value.length);else if(this.$DatePickerInput1){var u=o(this.state.rawValue),v=u[this.$DatePickerInput1];c("InputSelection").set(t,v.index,v.index+v[0].length)}this.$DatePickerInput1=null};q.prototype.getInput=function(){return this.refs.inputBox};q.prototype.$DatePickerInput5=function(){var r=c("ReactDOM").findDOMNode(this.refs.inputBox);if(r.nodeName==="INPUT")return r;else return r.getElementsByTagName("input")[0]};q.prototype.onInputBlur=function(r,s){var t=void 0,u=this.$DatePickerInput3();if(this.props.value)t=this.$DatePickerInput2(this.props.value);else if(u)t=this.state.rawValue;else t="";this.setState({focused:false,rawValue:t});s&&s(r)};q.prototype.$DatePickerInput6=function(r){return this.props.dateRestraints.every(function(s){return s(r)})};q.prototype.$DatePickerInput7=function(){var r=void 0;if(this.props.icon)r=c("React").cloneElement(this.props.icon,{className:c("joinClasses")(this.props.icon.props.className,"_3smn")});var s={root:"",empty:""};return c("React").createElement(c("AbstractTextField.react"),{leftChild:r,classNames:s},c("React").createElement("input",{className:"_3smp",type:"text"}))};q.prototype.$DatePickerInput8=function(){var r=this.props.input||this.$DatePickerInput7(),s=this.$DatePickerInput3();return c("React").cloneElement(r,{"aria-labelledby":this.props["aria-labelledby"],"aria-valuenow":s?s.toUTCDate().getTime():0,"aria-valuetext":this.state.rawValue,"data-testid":this.props["data-testid"],dir:"ltr",placeholder:this.props.placeholder,value:this.state.rawValue,onChange:this.onChange,onFocus:this.onFocus,onBlur:function(t){return this.onInputBlur(t,r.props.onBlur)}.bind(this),onKeyDown:this.onKeyDown,onKeyPress:this.onKeyPress,onKeyUp:this.onKeyUp,disabled:this.props.disabled,ref:"inputBox",role:"spinbutton"})};q.prototype.render=function(){var r=this.$DatePickerInput3(),s=c("joinClasses")(this.props.className,"_3smo");return c("React").createElement("span",{"aria-live":this.state.focused?"":"polite",className:s},c("React").createElement("span",{className:"accessible_elem"},this.state.rawValue),this.$DatePickerInput8(),c("React").createElement("input",{type:"hidden",name:this.props.name,value:r?r.toString():""}))};q.propTypes={"aria-labelledby":k.string,"data-testid":k.string,dateRestraints:k.arrayOf(k.func),defaultValue:k.instanceOf(c("LocalDate")),disabled:k.bool,formatter:k.func,icon:k.element,input:k.element,name:k.string,onBlur:k.func,onChange:k.func,onFocus:k.func,onInvalidDateSelected:k.func,placeholder:k.string,selectAllOnFocus:k.bool,value:k.instanceOf(c("LocalDate"))};q.defaultProps={dateRestraints:[],formatter:p,onBlur:c("emptyFunction"),onChange:c("emptyFunction"),onFocus:c("emptyFunction"),onInvalidDateSelected:c("emptyFunction"),placeholder:c("CalendarUtils").placeholderDateString(n),selectAllOnFocus:false};f.exports=q}),null);
__d("BUIDateInput.react",["ix","cx","BUIComponent","BUITextInput_DEPRECATED.react","CalendarUtils","CurrentLocale","DateFormatConfig","DatePickerInput.react","Image.react","Keys","LocalDate","React","Set","XUIError.react","fbglyph","joinClasses","shallowCompare"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("React").PropTypes,m=new(c("Set"))(["en_US"]);j=babelHelpers.inherits(n,c("BUIComponent"));k=j&&j.prototype;function n(p){__p&&__p();k.constructor.call(this,p);this.$BUIDateInput9=function(q){this.setState({focused:true});this.props.onFocus&&this.props.onFocus(q)}.bind(this);this.$BUIDateInput3=function(q){this.props.onIconClick&&this.props.onIconClick(q)}.bind(this);this.$BUIDateInput4=function(q){if(q.keyCode===c("Keys").RETURN||q.keyCode===c("Keys").SPACE)this.$BUIDateInput3(q)}.bind(this);this.$BUIDateInput7=function(q){this.setState({focused:false});this.props.onInputBlur&&this.props.onInputBlur(q)}.bind(this);this.$BUIDateInput8=function(q){this.$BUIDateInput1=q}.bind(this);this.state={focused:false}}n.prototype.shouldComponentUpdate=function(p,q){return c("shallowCompare")(this,p,q)};n.prototype.$BUIDateInput2=function(){return c("React").createElement("span",{"aria-label":this.props.iconLabel,className:"_4vbi",onClick:this.$BUIDateInput3,onKeyDown:this.$BUIDateInput4,ref:this.props.setupIconRef,role:"button",tabIndex:"0"})};n.prototype.$BUIDateInput5=function(){var p=void 0;if(!this.props.disabled&&this.props.onIconClick)p=this.$BUIDateInput2();if(this.props.hideIcon)return p;var q=this.props.disabled?h("143342"):h("141740");return c("React").createElement("span",null,p,c("React").createElement(c("Image.react"),{src:q}))};n.prototype.$BUIDateInput6=function(){return c("React").createElement(c("BUITextInput_DEPRECATED.react"),{height:this.props.height,highlighted:this.props.highlighted||this.state.focused,leftIcon:this.$BUIDateInput5(),onBlur:this.$BUIDateInput7,onClick:this.props.onClick,placeholder:c("CalendarUtils").placeholderDateString({order:c("DateFormatConfig").numericDateOrder,separator:c("DateFormatConfig").numericDateSeparator}),xuiError:this.props.xuiError,xuiErrorPosition:this.props.xuiErrorPosition,xuiErrorAlignh:this.props.xuiErrorAlignh})};n.prototype.render=function(){var p=this.props,q=p.height,r=p.hideIcon,s=p.onClick,t=p.onIconClick,u=p.setupIconRef,v=p.xuiError,w=p.xuiErrorAlignh,x=p.xuiErrorPosition,y=babelHelpers.objectWithoutProperties(p,["height","hideIcon","onClick","onIconClick","setupIconRef","xuiError","xuiErrorAlignh","xuiErrorPosition"]);if(this.shouldDisplayFriendlyFormat())y=babelHelpers["extends"]({},y,{formatter:o});var z=c("joinClasses")(this.props.className,"_nqg"+(this.props.hideIcon?" _4vbq":""));return c("React").createElement("div",{className:z},c("React").createElement(c("DatePickerInput.react"),babelHelpers["extends"]({},y,{ref:this.$BUIDateInput8,input:this.$BUIDateInput6(),onFocus:this.$BUIDateInput9,selectAllOnFocus:true})))};n.prototype.shouldDisplayFriendlyFormat=function(){return!!this.props.value&&!this.state.focused&&m.has(c("CurrentLocale").get())};n.prototype.focusInput=function(){var p=this.$BUIDateInput1&&this.$BUIDateInput1.getInput();p&&p.focusInput()};n.prototype.blurInput=function(){var p=this.$BUIDateInput1&&this.$BUIDateInput1.getInput();p&&p.blurInput()};n.propTypes=babelHelpers["extends"]({},c("XUIError.react").propTypes,{"data-testid-date":l.string,dateRestraints:l.arrayOf(l.func),defaultValue:l.instanceOf(c("LocalDate")),disabled:l.bool,height:c("BUITextInput_DEPRECATED.react").propTypes.height,hideIcon:l.bool,highlighted:l.bool,iconLabel:l.any,setupIconRef:l.func,onChange:l.func,onBlur:l.func,onIconClick:l.func,onInvalidDateSelected:l.func,onInputBlur:l.func,onFocus:l.func,placeholder:l.string,value:l.instanceOf(c("LocalDate"))});function o(p){if(p==null)return"";return p.format(c("DateFormatConfig").formats["M j, Y"])}f.exports=n}),null);
__d("BUIDatePicker.react",["cx","fbt","invariant","AccessibleLayer","BUICalendarPager.react","BUIComponent","BUIDateInput.react","ContextualLayer.react","ContextualLayerAutoFlip","ContextualLayerHideOnScrollOut","ContextualLayerUpdateOnScroll","Focus","LayerHideOnEscape","LayerRefocusOnHide","LayerTabIsolation","LocalDate","React","ReactDOM","Timezone","XUICard.react"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m=c("Timezone").getEnvironmentTimezoneID()||c("Timezone").UTC,n={AccessibleLayer:c("AccessibleLayer"),ContextualLayerAutoFlip:c("ContextualLayerAutoFlip"),ContextualLayerHideOnScrollOut:c("ContextualLayerHideOnScrollOut"),ContextualLayerUpdateOnScroll:c("ContextualLayerUpdateOnScroll"),LayerHideOnEscape:c("LayerHideOnEscape"),LayerRefocusOnHide:c("LayerRefocusOnHide"),LayerTabIsolation:c("LayerTabIsolation")};k=babelHelpers.inherits(o,c("BUIComponent"));l=k&&k.prototype;function o(q){l.constructor.call(this,q);p.call(this);var r=q.value||q.defaultValue;this.state={showCalendar:false,value:r,focusValue:r||c("LocalDate").today(m)}}o.prototype.componentWillReceiveProps=function(q){if(q.value!==this.props.value)this.setState({value:q.value,focusValue:q.value||this.state.focusValue})};o.prototype.focusInput=function(){this.setState({showCalendar:true});this.$BUIDatePicker1&&this.$BUIDatePicker1.focusInput()};o.prototype.render=function(){return c("React").createElement("span",null,c("React").createElement(c("BUIDateInput.react"),babelHelpers["extends"]({},this.props,{ref:this.$BUIDatePicker15,highlighted:this.state.showCalendar,iconLabel:i._("Choose a date"),onBlur:this.$BUIDatePicker10,onChange:this.$BUIDatePicker12,onClick:this.$BUIDatePicker8,onFocus:this.$BUIDatePicker7,onIconClick:this.$BUIDatePicker9,onInputBlur:this.props.onBlur,setupIconRef:this.$BUIDatePicker5,value:this.state.value})),this.renderLayers())};o.propTypes=babelHelpers["extends"]({},c("BUIDateInput.react").propTypes);var p=function p(){__p&&__p();this.$BUIDatePicker2=null;this.$BUIDatePicker3=null;this.$BUIDatePicker4=function(){var q=this.$BUIDatePicker2;q||j(0);return q}.bind(this);this.$BUIDatePicker5=function(q){this.$BUIDatePicker2=c("ReactDOM").findDOMNode(q)}.bind(this);this.$BUIDatePicker6=function(q){if(q)this.$BUIDatePicker3=c("ReactDOM").findDOMNode(q);else this.$BUIDatePicker3=null}.bind(this);this.$BUIDatePicker7=function(q){this.setState({showCalendar:true});this.props.onFocus&&this.props.onFocus(q)}.bind(this);this.$BUIDatePicker8=function(){if(!this.props.disabled)this.setState({showCalendar:true})}.bind(this);this.$BUIDatePicker9=function(){if(!this.props.disabled)this.setState({showCalendar:true},function(){this.$BUIDatePicker3&&c("Focus").set(this.$BUIDatePicker3)}.bind(this))}.bind(this);this.$BUIDatePicker10=function(){this.setState({showCalendar:false})}.bind(this);this.$BUIDatePicker11=function(q){this.setState({showCalendar:q})}.bind(this);this.$BUIDatePicker12=function(q){this.props.onChange&&this.props.onChange(q);this.setState({value:q,focusValue:q||c("LocalDate").today(m)})}.bind(this);this.$BUIDatePicker13=function(q){this.setState({focusValue:q})}.bind(this);this.$BUIDatePicker14=function(q){this.props.onChange&&this.props.onChange(q);this.setState({value:q,focusValue:q,showCalendar:false})}.bind(this);this.$BUIDatePicker15=function(q){this.$BUIDatePicker1=q}.bind(this);this.$BUIDatePicker16=function(){return c("React").createElement(c("ContextualLayer.react"),{key:"layer",behaviors:n,contextRef:this.$BUIDatePicker4,offsetX:1,offsetY:1,onBlur:this.$BUIDatePicker10,onToggle:this.$BUIDatePicker11,position:"below",shouldSetARIAProperties:false,shown:true},c("React").createElement(c("XUICard.react"),{"aria-label":i._("Date picker"),className:"_5c02",role:"dialog"},c("React").createElement(c("BUICalendarPager.react"),{allowDuplicateSelection:true,allowVariableRowCount:false,dateRestraints:this.props.dateRestraints,focusDate:this.state.focusValue,onFocusDateChange:this.$BUIDatePicker13,onSelectDateChange:this.$BUIDatePicker14,selectDate:this.state.value,setupFocusRef:this.$BUIDatePicker6})))}.bind(this);this.renderLayers=function(){if(this.props.disabled||!this.state.showCalendar)return null;return this.$BUIDatePicker16()}.bind(this)};f.exports=o}),null);
__d("BoostedLocalAwarenessOfferExpiryEditor.react",["cx","fbt","BoostedComponentContent.react","BoostedComponentLabeledEditor.react","BUIDatePicker.react","LocalDate","React","Timezone"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("React").PropTypes,m=c("Timezone").getEnvironmentTimezoneID,n=c("Timezone").UTC,o=m()||n;j=babelHelpers.inherits(p,c("React").Component);k=j&&j.prototype;function p(){var q,r;for(var s=arguments.length,t=Array(s),u=0;u<s;u++)t[u]=arguments[u];return r=(q=k.constructor).call.apply(q,[this].concat(t)),this.$BoostedLocalAwarenessOfferExpiryEditor1=function(v){this.props.onChange(v.toInstant(o))}.bind(this),r}p.prototype.render=function(){var q=this.props.minValue,r=this.props.value?this.props.value:q,s=r?c("LocalDate").fromInstant(r,o):null,t=q?c("LocalDate").fromInstant(q,o):null,u=c("LocalDate").today(o).addYears(1),v=[function(w){return w.isBefore(u)}];if(t)v.push(function(w){return w.isAfterOrEqual(t)});return c("React").createElement(c("BoostedComponentContent.react"),null,c("React").createElement(c("BoostedComponentLabeledEditor.react"),{className:"_3-8z",label:i._("Offer Expiration Date")},c("React").createElement(c("BUIDatePicker.react"),{dateRestraints:v,value:s,onChange:this.$BoostedLocalAwarenessOfferExpiryEditor1})))};p.propTypes={minValue:l.number,value:l.number,onChange:l.func.isRequired};f.exports=p}),null);
__d("BoostedComponentCreativeLinkDataEditor.react",["cx","AdsAPIObjectives","AdsTextInput.react","AdsValidationConfig","AdsValidationConsts","BoostedComponentAppID","BoostedComponentBetterProductNotice.react","BoostedComponentConstants","BoostedComponentContent.react","BoostedComponentCreativeEditingElement","BoostedComponentCreativeEditorMixin","BoostedComponentHeadlineStyles","BoostedComponentLabeledEditor.react","BoostedComponentStrings","BoostedComponentTestElement","BoostedLocalAwarenessOfferEditor.react","BoostedLocalAwarenessOfferExpiryEditor.react","Map","OfferComposerConstants.react","OfferDiscountType","React","TooltipLink.react","getObjectValues"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i=c("React").PropTypes,j=c("React").createClass({displayName:"BoostedComponentCreativeLinkDataEditor",mixins:[c("BoostedComponentCreativeEditorMixin")],propTypes:{appID:i.string.isRequired,experimentStore:i.object,fieldActionHeadline:i.object,fieldActionText:i.object,fieldActionURL:i.object,headline:i.string,headlineStyle:i.oneOf(c("getObjectValues")(c("BoostedComponentHeadlineStyles"))),isBoosted:i.bool,objective:i.oneOf(c("getObjectValues")(c("AdsAPIObjectives"))),offerExpiryDate:i.number,offerExpiryMinDate:i.number,offerType:i.oneOf(c("getObjectValues")(c("OfferDiscountType"))),pageID:i.string,pageURI:i.string,shouldEdit:i.bool.isRequired,showBetterProductNotice:i.bool,showOffersEditor:i.bool,supportCarouselInLA:i.bool.isRequired,text:i.string,url:i.string,useMediaPanelRedesign:i.bool,useMultiAdsView:i.bool,validateLink:i.func,validateMessage:i.func,validateName:i.func,onBetterProductNoticeButtonClick:i.func,onLinkDataHeadlineChange:i.func,onLinkDataTextChange:i.func,onLinkDataURLChange:i.func,onOfferExpiryDateChange:i.func,onOfferTypeChange:i.func,onToggleOffer:i.func},getDefaultProps:function k(){return{headlineStyle:c("BoostedComponentHeadlineStyles").DEFAULT}},_getCreativeLinkDataURLInput:function k(){if(!this.props.forceShow){if(!this.shouldRenderCreativeElement(this.props.appID,c("BoostedComponentCreativeEditingElement").CREATIVE_LINK_DATA_URL,this.props.supportCarouselInLA,this.props.useMultiAdsView,this.props.objective))return null;if(this.props.shouldEdit)return c("React").createElement(c("BoostedComponentLabeledEditor.react"),{key:c("BoostedComponentCreativeEditingElement").CREATIVE_LINK_DATA_URL,label:c("BoostedComponentStrings").CREATIVE_LINK_DATA_URL_LABEL,tooltip:c("BoostedComponentStrings").CREATIVE_LINK_DATA_URL_TOOLTIP},c("React").createElement(c("TooltipLink.react"),{tooltip:this.props.url},this.props.url),this.props.fieldActionURL)}var l=c("React").createElement(c("BoostedComponentBetterProductNotice.react"),{appID:this.props.appID,className:"_3-8x",enteredURI:this.props.url,pageID:this.props.pageID,pageURI:this.props.pageURI,onButtonClick:this.props.onBetterProductNoticeButtonClick});return c("React").createElement(c("BoostedComponentLabeledEditor.react"),{key:c("BoostedComponentCreativeEditingElement").CREATIVE_LINK_DATA_URL,label:c("BoostedComponentStrings").CREATIVE_LINK_DATA_URL_LABEL,tooltip:c("BoostedComponentStrings").CREATIVE_LINK_DATA_URL_TOOLTIP},c("React").createElement(c("AdsTextInput.react"),{badTextRules:null,"data-testid":c("BoostedComponentTestElement").CREATIVE_URL_INPUT,errors:this.props.validateLink&&this.props.validateLink(this.props.url),hideMaxLength:true,maxLength:c("AdsValidationConsts").maxURLLength,multiline:false,placeholder:c("BoostedComponentStrings").CREATIVE_LINK_DATA_URL_PLACEHOLDER,value:this.props.url,onChange:this.props.onLinkDataURLChange}),l)},_getCreativeLinkDataHeadlineInput:function k(){if(!this.props.forceShow)if(!this.shouldRenderCreativeElement(this.props.appID,c("BoostedComponentCreativeEditingElement").CREATIVE_LINK_DATA_HEADLINE,this.props.supportCarouselInLA,this.props.useMultiAdsView,this.props.objective))return null;return c("React").createElement("div",{key:c("BoostedComponentCreativeEditingElement").CREATIVE_LINK_DATA_HEADLINE},c("React").createElement(c("BoostedComponentLabeledEditor.react"),{counterLimit:this.props.headlineStyle===c("BoostedComponentHeadlineStyles").OFFER?c("OfferComposerConstants.react").MAX_LENGTH_TITLE:c("BoostedComponentConstants").HEADLINE_EDITOR_TEXT_LIMIT,label:this.props.headlineStyle===c("BoostedComponentHeadlineStyles").OFFER?c("BoostedComponentStrings").CREATIVE_LINK_DATA_HEADLINE_OFFER_LABEL:c("BoostedComponentStrings").CREATIVE_LINK_DATA_HEADLINE_LABEL,showCounter:true,tooltip:this.props.headlineStyle===c("BoostedComponentHeadlineStyles").OFFER?c("BoostedComponentStrings").CREATIVE_LINK_DATA_HEADLINE_OFFER_TOOLTIP:c("BoostedComponentStrings").CREATIVE_LINK_DATA_HEADLINE_TOOLTIP},c("React").createElement(c("AdsTextInput.react"),{badTextRules:c("getObjectValues")(this.getFieldBadTextRules()),"data-testid":c("BoostedComponentTestElement").CREATIVE_HEADLINE_INPUT,enforceMaxLength:this.props.headlineStyle===c("BoostedComponentHeadlineStyles").OFFER,errors:this.props.validateName&&this.props.validateName(this.props.headline),hideMaxLength:true,maxLength:this.props.headlineStyle===c("BoostedComponentHeadlineStyles").OFFER?c("OfferComposerConstants.react").MAX_LENGTH_TITLE:c("AdsValidationConfig").maxTitleLength,multiline:false,placeholder:this.props.headlineStyle===c("BoostedComponentHeadlineStyles").OFFER?c("BoostedComponentStrings").CREATIVE_LINK_DATA_HEADLINE_OFFER_PLACEHOLDER:c("BoostedComponentStrings").CREATIVE_LINK_DATA_HEADLINE_PLACEHOLDER,value:this.props.headline,onChange:this.props.onLinkDataHeadlineChange})),this.props.fieldActionHeadline)},_getCreativeLinkDataTextInput:function k(){__p&&__p();if(!this.props.forceShow)if(!this.shouldRenderCreativeElement(this.props.appID,c("BoostedComponentCreativeEditingElement").CREATIVE_LINK_DATA_TEXT,this.props.supportCarouselInLA,this.props.useMultiAdsView,this.props.objective))return null;var l=c("BoostedComponentStrings").CREATIVE_LINK_DATA_TEXT_TOOLTIP;if(this.props.appID===c("BoostedComponentAppID").BOOSTED_LOCAL_AWARENESS)l=c("BoostedComponentStrings").CREATIVE_LINK_DATA_TEXT_TOOLTIP_LA;else if(this.props.appID===c("BoostedComponentAppID").BOOSTED_EVENT)l=c("BoostedComponentStrings").CREATIVE_LINK_DATA_TEXT_TOOLTIP_EVENT;else if(this.props.appID===c("BoostedComponentAppID").BOOSTED_AUTOMATED_ADS)switch(this.props.objective){case c("AdsAPIObjectives").LINK_CLICKS:l=c("BoostedComponentStrings").CREATIVE_LINK_DATA_TEXT_TOOLTIP;break;case c("AdsAPIObjectives").REACH:case c("AdsAPIObjectives").LOCAL_AWARENESS:l=c("BoostedComponentStrings").CREATIVE_LINK_DATA_TEXT_TOOLTIP_LA;break}else if(this.props.appID===c("BoostedComponentAppID").BOOSTED_GROUP)l=c("BoostedComponentStrings").CREATIVE_LINK_DATA_TEXT_TOOLTIP_GROUP;return c("React").createElement("div",{key:c("BoostedComponentCreativeEditingElement").CREATIVE_LINK_DATA_TEXT},c("React").createElement(c("BoostedComponentLabeledEditor.react"),{counterLimit:c("BoostedComponentConstants").BODY_EDITOR_TEXT_LIMIT,label:c("BoostedComponentStrings").CREATIVE_LINK_DATA_TEXT_LABEL,tooltip:l},c("React").createElement(c("AdsTextInput.react"),{badTextRules:c("getObjectValues")(this.getFieldBadTextRules()),"data-testid":c("BoostedComponentTestElement").CREATIVE_TEXT_INPUT,errors:this.props.validateMessage&&this.props.validateMessage(this.props.text),hideMaxLength:true,multiline:true,placeholder:c("BoostedComponentStrings").CREATIVE_LINK_DATA_TEXT_PLACEHOLDER,value:this.props.text,onChange:this.props.onLinkDataTextChange})),this.props.fieldActionText)},_getCreativeLinkDataOfferEditor:function k(){return c("React").createElement(c("BoostedLocalAwarenessOfferEditor.react"),{key:c("BoostedComponentCreativeEditingElement").CREATIVE_LINK_DATA_OFFER,type:this.props.offerType,onOfferTypeChange:this.props.onOfferTypeChange})},_getCreativeLinkDataOfferExpiryEditor:function k(){return c("React").createElement(c("BoostedLocalAwarenessOfferExpiryEditor.react"),{key:c("BoostedComponentCreativeEditingElement").CREATIVE_LINK_DATA_OFFER_EXPIRY,minValue:this.props.offerExpiryMinDate,value:this.props.offerExpiryDate,onChange:this.props.onOfferExpiryDateChange})},render:function k(){__p&&__p();var l=new(c("Map"))();l.set(c("BoostedComponentCreativeEditingElement").CREATIVE_LINK_DATA_URL,this._getCreativeLinkDataURLInput());l.set(c("BoostedComponentCreativeEditingElement").CREATIVE_LINK_DATA_HEADLINE,this._getCreativeLinkDataHeadlineInput());l.set(c("BoostedComponentCreativeEditingElement").CREATIVE_LINK_DATA_TEXT,this._getCreativeLinkDataTextInput());if(this.props.showOffersEditor)l.set(c("BoostedComponentCreativeEditingElement").CREATIVE_LINK_DATA_OFFER,this._getCreativeLinkDataOfferEditor());if(this.props.offerType)l.set(c("BoostedComponentCreativeEditingElement").CREATIVE_LINK_DATA_OFFER_EXPIRY,this._getCreativeLinkDataOfferExpiryEditor());var m=this.reorderCreativeElements(this.props.appID,l,this.props.supportCarouselInLA,this.props.useMultiAdsView,this.props.objective);return c("React").createElement(c("BoostedComponentContent.react"),null,m)}});f.exports=j}),null);
__d("AdsCFCreativeImagePanelAction.react",["cx","fbt","BUIAdoptionUtils","Link.react","React","SUIBusinessTheme","SUIButton.react","joinClasses"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("React").PropTypes;j=babelHelpers.inherits(m,c("React").Component);k=j&&j.prototype;m.prototype.render=function(){__p&&__p();var n=this.props.label,o=this.props.disabled,p=o?null:this.props.onClick,q=this.props.fileInputNodeID,r=c("joinClasses")(this.props.className,"_5y_t"+(o?" _5y_u":"")),s=this.props["aria-label"],t="tooltip",u=void 0,v=void 0,w=void 0;if(q){u=c("React").createElement("span",{"aria-label":s,className:"_5y_v","data-hover":t,role:"presentation",onClick:p});p=null}else{v=s;w=t}if(this.props.hide)return c("React").createElement("label",{className:r,htmlFor:o?"":q},u,this.props.children);if(this.props.actionStyle==="link")return c("React").createElement(c("Link.react"),{onClick:p},u,this.props.children,n);return c("React").createElement("label",{className:r,htmlFor:o?"":q},u,this.props.children,c("React").createElement(c("SUIButton.react"),{"aria-label":v,"data-hover":w,"data-testid":this.props["data-testid"],disabled:o,height:c("BUIAdoptionUtils").convertSizeToHeight(this.props.size),icon:this.props.buttonIcon,label:n,theme:c("SUIBusinessTheme"),onClick:p}))};function m(){j.apply(this,arguments)}m.propTypes={actionStyle:l.oneOf(["button","link"]),className:l.string,disabled:l.bool,fileInputNodeID:l.string,hide:l.bool,label:l.node,size:l.oneOf(["small","medium","large","xlarge","xxlarge"]),onClick:l.func};m.defaultProps={actionStyle:"button","aria-label":i._("Access a library that contains all your ad images."),children:[],disabled:false,fileInputNodeID:"",hide:false,size:"xlarge"};f.exports=m}),null);
__d("AHGLink.react",["AdsLearnMoreStrings","AHGLogUtils","React","SUIBusinessTheme","SUILink.react","URI"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("React").Component);i=h&&h.prototype;function j(){var k,l;for(var m=arguments.length,n=Array(m),o=0;o<m;o++)n[o]=arguments[o];return l=(k=i.constructor).call.apply(k,[this].concat(n)),this.$AHGLink2=function(p){this.$AHGLink1();this.props.onClick&&this.props.onClick(p)}.bind(this),l}j.prototype.$AHGLink1=function(){c("AHGLogUtils").logLinkClick("AHGLink",this.props.href.toString())};j.prototype.render=function(){var k=this.props,l=k.className_DEPRECATED,m=k.href,n=k.isInverseColor,o=k.label;return c("React").createElement(c("SUILink.react"),{className:l,href:m.toString(),isInverseColor:n,target:"_blank",theme:c("SUIBusinessTheme"),onClick:this.$AHGLink2},o)};j.defaultProps={href:"#",label:c("AdsLearnMoreStrings").INLINE_LEARN_MORE};f.exports=j}),null);
__d("AdsImageCropperWindow.react",["cx","fbt","ix","CenteredContainer.react","Image.react","React","ReactDOM","joinClasses"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m=c("React").PropTypes;k=babelHelpers.inherits(n,c("React").Component);l=k&&k.prototype;function n(){__p&&__p();var o,p;for(var q=arguments.length,r=Array(q),s=0;s<q;s++)r[s]=arguments[s];return p=(o=l.constructor).call.apply(o,[this].concat(r)),this.state={ctaFullWidth:null},this.$AdsImageCropperWindow1=function(){if(!this.state.ctaFullWidth){var t=this.refs&&this.refs.cta,u=t&&c("ReactDOM").findDOMNode(t);if(u&&u.offsetWidth)this.setState({ctaFullWidth:u.offsetWidth})}}.bind(this),this.$AdsImageCropperWindow2=function(){var t=this.state.ctaFullWidth,u=!t||this.props.width&&this.props.width>t,v=this.props.isResizable?i._("Crop Image"):i._("Drag to Reposition Image");return c("React").createElement("div",{className:"_5tw6"+(this.props.isCropping?" _5tw7":"")+(!t?" _5tw8":""),ref:"cta"},c("React").createElement(c("Image.react"),{src:j("22701")}),c("React").createElement("div",{className:(!u&&this.props.isResizing?"hidden_elem":"")+" _5tw9"},v))}.bind(this),p}n.prototype.componentDidUpdate=function(o){this.$AdsImageCropperWindow1()};n.prototype.shouldComponentUpdate=function(o){return!this.state.ctaFullWidth||this.props.width!==o.width||this.props.height!==o.height||this.props.isCropping!==o.isCropping};n.prototype.render=function(){return c("React").createElement(c("CenteredContainer.react"),babelHelpers["extends"]({},this.props,{className:c("joinClasses")(this.props.className,"_5tw4 lfloat"),style:babelHelpers["extends"]({},this.props.style||{},{width:this.props.width,height:this.props.height}),vertical:true}),c("React").createElement("div",{className:"_5tw5"}),this.$AdsImageCropperWindow2())};n.propTypes={height:m.number,isCropping:m.bool,isResizable:m.bool,isResizing:m.bool,width:m.number};n.defaultProps={isResizable:false};f.exports=n}),null);
__d("AdsImageCropSelector.react",["cx","invariant","ix","AdsImageCropperWindow.react","AdsImageLegacy","BackgroundImage.react","Event","Image.react","React","ReactDOM","isEmpty","joinClasses"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k=c("React").PropTypes,l=function l(o){return o*o},m=function m(o,p,q){return Math.min(Math.max(o,p),q)},n=c("React").createClass({displayName:"AdsImageCropSelector",_dragging:false,_dragEvent:null,_handler:null,_node:null,_origin:{},_releaseEvent:null,propTypes:{className:k.string,disableResizer:k.bool.isRequired,height:k.number.isRequired,image:k.instanceOf(c("AdsImageLegacy")).isRequired,imageSpec:k.object.isRequired,isDisabled:k.bool.isRequired,isError:k.bool.isRequired,isReady:k.bool.isRequired,width:k.number.isRequired,onContextMenu:k.func.isRequired,onCropUpdate:k.func.isRequired},getInitialState:function o(){return{coordinates:{},imageDimensions:{},isCropping:false,isResizing:false,min:{},max:{},scale:1,screenX:0,screenY:0}},componentWillMount:function o(){this._calculateState(this.props)},componentWillUnmount:function o(){if(this._dragEvent)this._dragEvent.remove();if(this._releaseEvent)this._releaseEvent.remove()},componentWillReceiveProps:function o(p){this._calculateState(p)},render:function o(){var p=this._isCroppingAllowed();return c("React").createElement("div",{className:c("joinClasses")(this.props.className,"_5tv-"),style:babelHelpers["extends"]({},this.props.style||{},{width:this.props.width}),onContextMenu:this._onContextMenu},c("React").createElement(c("BackgroundImage.react"),{backgroundSize:p?"contain":"containinside",className:"_537t",height:this.props.height,loadingIndicatorStyle:"large",src:this._getImageUrl(),width:this.props.width}),this._renderCropperMask(),this._renderFooter())},_getImageUrl:function o(){var p=this.props.image;return p.isStockImage()?p.getFullSizeUrl():p.getUrl()},_drawCropperGrid:function o(){var p=c("React").createElement("td",{className:"_35i_"}),q=c("React").createElement("tr",null,p,p,p);return c("React").createElement("table",{className:"_35j0"},c("React").createElement("tbody",null,q,q,q))},_renderCropperMask:function o(){if(!this._isCroppingAllowed())return null;var p=this._getFillStyle(this.state.coordinates),q=this.state.coordinates.width+"px",r=this.state.coordinates.height+"px",s=this.props.disableResizer?"none":"block";return c("React").createElement("div",{className:"_537t _4jo2"},c("React").createElement("div",{className:"_537t _537u",ref:"selector",style:{borderWidth:p,width:q,height:r,display:s}},this._drawCropperGrid(),this._getResizeHandles(),c("React").createElement(c("AdsImageCropperWindow.react"),{className:"_537t",height:this.state.isResizing?undefined:this.state.coordinates.height,isCropping:this.state.isCropping&&this._dragging,isResizable:true,isResizing:this.state.isResizing,width:this.state.isResizing?undefined:this.state.coordinates.width,onMouseDown:this._onCropMoveStart})))},_isCroppingAllowed:function o(){return!this.props.isDisabled&&!this.props.isError&&this.props.isReady},_renderFooter:function o(){if(!this.props.isReady)return null;var p=this.props.image,q=this.props.imageSpec,r=q.placement,s=p.getValidation(r),t=s.errorMessage||s.warningMessage||s.successMessage,u=j("22275");if(s.errorMessage||s.warningMessage)u=j("22276");return c("React").createElement("div",{className:"_5tw0"},c("React").createElement("div",{className:(!t?"hidden_elem":"")+" lfloat"},c("React").createElement(c("Image.react"),{className:"_5tw1",src:u}),c("React").createElement("span",{className:"_5tw2"},t&&t.split("\n")[0])))},_getResizeHandles:function o(){return c("React").createElement("div",{className:"_u4e",ref:"handles"},c("React").createElement("div",{className:"_u49 _u4a",key:"top_left",onMouseDown:this._onCropResizeStart}),c("React").createElement("div",{className:"_u49 _u4b",key:"top_right",onMouseDown:this._onCropResizeStart}),c("React").createElement("div",{className:"_u49 _u4c",key:"bottom_right",onMouseDown:this._onCropResizeStart}),c("React").createElement("div",{className:"_u49 _u4d",key:"bottom_left",onMouseDown:this._onCropResizeStart}))},_getFillStyle:function o(p){var q=Math.floor(p.top),r=Math.floor(p.left),s=Math.ceil(p.right),t=Math.ceil(p.bottom);return q+"px "+s+"px "+t+"px "+r+"px"},_updateFormats:function o(){var p,q=this.props.image,r=this.props.imageSpec,s=r.cropKey,t=r.placement,u=this.getOffset(),v=this.getCoordinates(u);this.props.onCropUpdate(q,t,(p={},p[s]=v,p))},getOffset:function o(){return{left:this.state.coordinates.left-this.state.min.x,right:this.state.coordinates.right-this.state.min.x,top:this.state.coordinates.top-this.state.min.y,bottom:this.state.coordinates.bottom-this.state.min.y}},getCoordinates:function o(p){var q=this.state.imageDimensions,r={bottom:0,left:Math.round(p.left/this.state.scale),right:Math.round(q.width-p.right/this.state.scale),top:Math.round(p.top/this.state.scale)},s=this.props.imageSpec;if(s.aspectRatio)r.bottom=Math.floor(r.top+(r.right-r.left)/s.aspectRatio);else r.bottom=Math.round(q.height-p.bottom/this.state.scale);return[[r.left,r.top],[r.right,r.bottom]]},_onCropResizeStart:function o(event){this._onCropChangeStart(event,true)},_onCropMoveStart:function o(event){this._onCropChangeStart(event,false)},_onCropChangeStart:function o(event,p){__p&&__p();event.preventDefault();this._setSelectorNodeToRendered();if(!this._dragging){this._handler=this._getHandler(p);var q=c("ReactDOM").findDOMNode(this.refs.handles);q||i(0);var r=q.getBoundingClientRect(),s=r.left,t=r.top,u=r.width,v=r.height;this._origin={x:s+u/2,y:t+v/2};this._dragEvent=c("Event").listen(window,"mousemove",this._cropMove);this._releaseEvent=c("Event").listen(window,"mouseup",this._cropEnd);this.setState({isCropping:true,isResizing:p,screenX:event.pageX,screenY:event.pageY});this._dragging=true;this._place(this.state.coordinates.left,this.state.coordinates.top,this.state.coordinates.width,this.state.coordinates.height)}},_setSelectorNodeToRendered:function o(){!this._node||i(0);this._node=c("ReactDOM").findDOMNode(this.refs.selector);this._node||i(0)},_cropMove:function o(event){if(this._dragging){event.prevent();this._handler||i(0);this._handler(event.pageX-this.state.screenX,event.pageY-this.state.screenY)}},_cropEnd:function o(event){__p&&__p();if(this._dragging){this._dragging=false;this.setState({isCropping:false,isResizing:false});this._handler||i(0);this._handler(event.pageX-this.state.screenX,event.pageY-this.state.screenY);this._dragEvent&&this._dragEvent.remove();this._dragEvent=null;this._releaseEvent&&this._releaseEvent.remove();this._releaseEvent=null;this._handler=null}this._resetSelectorNode()},_resetSelectorNode:function o(){delete this._node},_resize:function o(p,q){var r=Math.sqrt(l(this.state.screenX-this._origin.x)+l(this.state.screenY-this._origin.y)),s={x:p/2+this.state.screenX,y:q/2+this.state.screenY},t=Math.sqrt(l(this._origin.x-s.x)+l(this._origin.y-s.y)),u=m(t/r,this.state.min.scale,this.state.max.scale),v=Math.round(this.state.coordinates.width*u),w=Math.round(this.state.coordinates.height*u),x=this.state.screenX<this._origin.x?this.state.coordinates.width-v:0,y=this.state.screenY<this._origin.y?this.state.coordinates.height-w:0,z=m(this.state.coordinates.left+x,this.state.min.x,this.state.max.x-v),A=m(this.state.coordinates.top+y,this.state.min.y,this.state.max.y-w);this._place(z,A,v,w)},_move:function o(p,q){var r=this.state.coordinates.width,s=this.state.coordinates.height,t=m(this.state.coordinates.left+p,this.state.min.x,this.state.max.x-r),u=m(this.state.coordinates.top+q,this.state.min.y,this.state.max.y-s);this._place(t,u,r,s)},_place:function o(p,q,r,s){var t=this.props.height-q-s,u=this.props.width-p-r,v=this._getFillStyle({top:q,left:p,bottom:t,right:u});this._node||i(0);this._node.style.borderWidth=v;this._node.style.width=r+"px";this._node.style.height=s+"px";if(!this._dragging)this.setState({coordinates:{top:q,left:p,bottom:t,right:u,width:r,height:s}},function(){this._updateFormats()}.bind(this))},_getHandler:function o(p){return p?this._resize:this._move},_calculateState:function o(p){__p&&__p();if(!p.isReady)return;var q=p.image.getCrop(p.imageSpec.cropKey),r=Math.min(p.width/p.image.getWidth(),p.height/p.image.getHeight()),s={height:p.image.getHeight(),scaledWidth:Math.round(p.image.getWidth()*r),scaledHeight:Math.round(p.image.getHeight()*r),width:p.image.getWidth()},t={scale:1,x:(p.width-s.scaledWidth)/2,y:(p.height-s.scaledHeight)/2},u={scale:1,x:t.x+s.scaledWidth,y:t.y+s.scaledHeight},v={};if(q&&q.length){v.top=t.y+q[0][1]*r;v.left=t.x+q[0][0]*r;v.bottom=t.y+(s.height-q[1][1])*r;v.right=t.x+(s.width-q[1][0])*r;v.width=p.width-v.right-v.left;v.height=p.height-v.bottom-v.top}if(c("isEmpty")(v)||Object.keys(v).some(function(w){return v[w]<0})){if(s.width/p.imageSpec.aspectRatio>s.height){v.height=s.scaledHeight;v.width=v.height*p.imageSpec.aspectRatio}else{v.width=s.scaledWidth;v.height=v.width/p.imageSpec.aspectRatio}v.top=t.y+(s.scaledHeight-v.height)/2;v.left=t.x+(s.scaledWidth-v.width)/2;v.bottom=p.height-v.top-v.height;v.right=p.width-v.left-v.width}t.scale=Math.min(p.imageSpec.minWarningWidth*r/v.width,p.imageSpec.minWarningHeight*r/v.height);u.scale=Math.min(s.scaledWidth/v.width,s.scaledHeight/v.height);this.setState({max:u,min:t,imageDimensions:s,scale:r,coordinates:v})},_onContextMenu:function o(event){this.props.onContextMenu(this.props.image,event)}});f.exports=n}),null);
__d("AdsImageCropperEditorItem.react",["cx","AdsImageUtils","AdsUtils","React","ShimButton.react","joinClasses"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("AdsUtils").isEqualWeak,l=c("React").PropTypes;i=babelHelpers.inherits(m,c("React").Component);j=i&&i.prototype;function m(){__p&&__p();var n,o;for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=j.constructor).call.apply(n,[this].concat(q)),this.$AdsImageCropperEditorItem1=function(){var s=this.props.image,t=this.props.imageSpec,u=t.placement,v=t.cropKey,w=c("AdsImageUtils").calculateDefaultCoordinates(s.getWidth(),s.getHeight(),t.aspectRatio);if(!s.getCrop(v)&&this.$AdsImageCropperEditorItem3()){var x;this.props.onCropUpdate(s,u,(x={},x[v]=w,x))}}.bind(this),this.$AdsImageCropperEditorItem2=function(){var s=this.props.image;return s.isStockImage()?s.getFullSizeUrl():s.getUrl()}.bind(this),this.$AdsImageCropperEditorItem3=function(){var s=this.props.isDisabled,t=this.props.isError,u=this.props.isReady;return!s&&!t&&u}.bind(this),this.$AdsImageCropperEditorItem7=function(){this.props.onClick(this.props.imageSpec.placement)}.bind(this),this.$AdsImageCropperEditorItem6=function(event){this.props.onContextMenu(this.props.image,event)}.bind(this),o}m.prototype.componentDidMount=function(){this.$AdsImageCropperEditorItem1()};m.prototype.componentDidUpdate=function(){this.$AdsImageCropperEditorItem1()};m.prototype.shouldComponentUpdate=function(n){return!k(this.props.image.getCrops(),n.image.getCrops())||this.props.isDisabled!==n.isDisabled||this.props.isError!==n.isError||this.props.isReady!==n.isReady||this.props.isSelected!==n.isSelected||this.props.imageSpec.aspectRatio!==n.imageSpec.aspectRatio||this.props.height!==n.height};m.prototype.render=function(){var n=this.props.image,o=this.props.imageSpec,p=this.$AdsImageCropperEditorItem2(),q=this.$AdsImageCropperEditorItem3(),r=q&&this.$AdsImageCropperEditorItem4(n,o),s=q?this.$AdsImageCropperEditorItem5(n,o):1,t=void 0;if(p)t={backgroundImage:"url("+p+")",backgroundSize:Math.round(s*100)+"%",backgroundPosition:r,backgroundRepeat:"no-repeat"};var u=c("React").createElement("div",{style:babelHelpers["extends"]({},t,{height:this.props.height,width:this.props.width}),onContextMenu:this.$AdsImageCropperEditorItem6});return c("React").createElement(c("ShimButton.react"),{className:c("joinClasses")(this.props.className,"_5twa"+(this.props.isSelected?" _5twb":"")),onClick:this.$AdsImageCropperEditorItem7},u)};m.prototype.$AdsImageCropperEditorItem4=function(n,o){var p=n.getCrop(o.cropKey),q="50% 50%";if(p&&p.length){var r=n.getWidth(),s=n.getHeight(),t=this.props.width,u=this.props.height;q=c("AdsImageUtils").calculateCroppedPosition(r,s,t,u,p)}return q};m.prototype.$AdsImageCropperEditorItem5=function(n,o){var p=1,q=n.getCrop(o.cropKey);if(q&&q.length)p=c("AdsImageUtils").calculateBackgroundScale(n.getWidth(),n.getHeight(),q);return p};m.propTypes={className:l.string,height:l.number.isRequired,image:l.object.isRequired,imageSpec:l.object.isRequired,isDisabled:l.bool.isRequired,isError:l.bool.isRequired,isReady:l.bool.isRequired,isSelected:l.bool,width:l.number.isRequired,onClick:l.func.isRequired,onContextMenu:l.func.isRequired,onCropUpdate:l.func.isRequired};f.exports=m}),null);
__d("AdsImageCropperEditorPlaceholderItem.react",["cx","React","ShimButton.react","joinClasses"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes;i=babelHelpers.inherits(l,c("React").Component);j=i&&i.prototype;function l(){var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=j.constructor).call.apply(m,[this].concat(p)),this.$AdsImageCropperEditorPlaceholderItem1=function(){this.props.onClick(this.props.placement)}.bind(this),n}l.prototype.render=function(){var m=c("React").createElement("div",{className:"_1ai3",style:{height:this.props.height,width:this.props.width}});return c("React").createElement(c("ShimButton.react"),{className:c("joinClasses")(this.props.className,"_5twa"+(this.props.isSelected?" _5twb":"")),onClick:this.$AdsImageCropperEditorPlaceholderItem1},m)};l.propTypes={className:k.string,height:k.number.isRequired,isSelected:k.bool,placement:k.string.isRequired,width:k.number.isRequired,onClick:k.func.isRequired};f.exports=l}),null);
__d("AdsImageCropperImageSpecSelector.react",["cx","fbt","AdImageSpecCropKeys","AdImageSpecs","AdsImageLegacy","AdsImageValidation","AdsPageTypes","InstagramAdImageStoryPortalSpecs","React","SUIBusinessTheme","SUIButtonGroup.react","Tooltip","XUIButton.react","gkx"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("React").PropTypes,m={NO_CROP:i._("Original"),LANDSCAPE:i._("Landscape"),SQUARE:i._("Square"),STORY:i._("Portrait")};j=babelHelpers.inherits(n,c("React").Component);k=j&&j.prototype;function n(){var o,p;for(var q=arguments.length,r=Array(q),s=0;s<q;s++)r[s]=arguments[s];return p=(o=k.constructor).call.apply(o,[this].concat(r)),this.state={selectedSpec:this.props.selectedSpec,disabledSpecs:this.$AdsImageCropperImageSpecSelector1(this.props.image,this.props.imageSpecs)},p}n.prototype.componentWillReceiveProps=function(o){this.setState({selectedSpec:o.selectedSpec,disabledSpecs:this.$AdsImageCropperImageSpecSelector1(o.image,o.imageSpecs)})};n.prototype.render=function(){__p&&__p();var o=this.props.imageSpecs;if(!o||o.length<=1)return null;if(o.every(function(r){return r.placement===c("AdsPageTypes").INSTAGRAM_STREAM}))o.sort(function(r,s){return this.$AdsImageCropperImageSpecSelector2(r)-this.$AdsImageCropperImageSpecSelector2(s)}.bind(this));if(o.every(function(r){return r.placement===c("AdsPageTypes").INSTAGRAM_STORY})){o=o.filter(function(r){return r.cropKey===c("AdImageSpecCropKeys").NO_CROP||r.cropKey===c("AdImageSpecCropKeys")["90x160"]});o.sort(function(r,s){return this.$AdsImageCropperImageSpecSelector2(r)-this.$AdsImageCropperImageSpecSelector2(s)}.bind(this))}var p=this.state.selectedSpec,q=o.map(function(r){return c("React").createElement(c("XUIButton.react"),babelHelpers["extends"]({className:"_5qc-"+(!p||p.aspectRatio!==r.aspectRatio||p.placement!==r.placement?" _5qc_":"")+(this.state.disabledSpecs.some(function(s){return s.cropKey===r.cropKey})?" _55oe":"")+" _5bv8",key:r.placement+r.cropKey,label:this.$AdsImageCropperImageSpecSelector3(r),size:"large",onClick:function(){return this.$AdsImageCropperImageSpecSelector4(r)}.bind(this)},c("Tooltip").propsFor(this.$AdsImageCropperImageSpecSelector5(this.props.image,r))))}.bind(this));return c("React").createElement(c("SUIButtonGroup.react"),{theme:c("SUIBusinessTheme")},q)};n.prototype.$AdsImageCropperImageSpecSelector4=function(o){if(this.state.disabledSpecs.some(function(p){return p.cropKey===o.cropKey}))return;this.setState({selectedSpec:o});this.props.onUpdateImageSpec(o)};n.prototype.$AdsImageCropperImageSpecSelector3=function(o){__p&&__p();if(o.placement===c("AdsPageTypes").INSTAGRAM_STREAM)switch(o.cropKey){case c("AdImageSpecs").INSTAGRAM_STREAM.cropKey:return m.SQUARE;case c("AdImageSpecs").INSTAGRAM_STREAM_NO_CROP.cropKey:return m.NO_CROP;case c("AdImageSpecs").INSTAGRAM_STREAM_LANDSCAPE.cropKey:return m.LANDSCAPE}else if(o.placement===c("AdsPageTypes").INSTAGRAM_STORY)switch(o.cropKey){case c("AdImageSpecs").INSTAGRAM_STORY.cropKey:return m.NO_CROP;case c("AdImageSpecs").INSTAGRAM_STORY_CROP.cropKey:return m.STORY}return o.aspectRatio};n.prototype.$AdsImageCropperImageSpecSelector2=function(o){switch(o.cropKey){case c("AdImageSpecs").INSTAGRAM_STREAM_NO_CROP.cropKey:return 0;case c("AdImageSpecs").INSTAGRAM_STREAM_LANDSCAPE.cropKey:return 1;case c("AdImageSpecs").INSTAGRAM_STREAM.cropKey:return 2;case c("AdImageSpecs").INSTAGRAM_STORY.cropKey:return 3;case c("AdImageSpecs").INSTAGRAM_STORY_CROP.cropKey:return 4}return-1};n.prototype.$AdsImageCropperImageSpecSelector1=function(o,p){var q=o.getWidth(),r=o.getHeight(),s=c("gkx")("AT5gTHWzPb9gKQAyeSlkH_YBoHd8u5vPOGrhfgo3Sf__Z2Bz7E14G3zlZRAdm-qX8Yr257cuNuewCZCRCM5yrbDh")?c("InstagramAdImageStoryPortalSpecs").INSTAGRAM_STORY:c("AdImageSpecs").INSTAGRAM_STORY;return p.filter(function(t){return q<t.minWarningWidth||r<t.minWarningHeight||t.placement===c("AdsPageTypes").INSTAGRAM_STREAM&&t.cropKey===c("AdImageSpecs").INSTAGRAM_STREAM_NO_CROP.cropKey&&!c("AdsImageValidation").isValidAspectRatio(o,c("AdImageSpecs").INSTAGRAM_STREAM_NO_CROP)||t.placement===c("AdsPageTypes").INSTAGRAM_STORY&&t.cropKey===c("AdImageSpecs").INSTAGRAM_STORY.cropKey&&!c("AdsImageValidation").isValidAspectRatio(o,s)})};n.prototype.$AdsImageCropperImageSpecSelector5=function(o,p){__p&&__p();if(!this.state.disabledSpecs.some(function(s){return s.cropKey===p.cropKey}))return null;var q=o.getWidth(),r=o.getHeight();if(p.placement===c("AdsPageTypes").INSTAGRAM_STREAM)switch(p.cropKey){case c("AdImageSpecs").INSTAGRAM_STREAM_NO_CROP.cropKey:if(q<p.minWarningWidth||r<p.minWarningHeight)return null;return i._({"wide":"This aspect ratio is disabled because the original image is too wide","tall":"This aspect ratio is disabled because the original image is too tall"},[i["enum"](q>r?"wide":"tall",{wide:"wide",tall:"tall"})]);case c("AdImageSpecs").INSTAGRAM_STREAM.cropKey:return i._("This aspect ratio is disabled because the resulting image will be smaller than 500x500 pixels");case c("AdImageSpecs").INSTAGRAM_STREAM_LANDSCAPE.cropKey:return i._("This aspect ratio is disabled because the resulting image will be smaller than 500x262 pixels")}else if(p.placement===c("AdsPageTypes").INSTAGRAM_STORY)switch(p.cropKey){case c("AdImageSpecs").INSTAGRAM_STORY.cropKey:if(q<p.minWarningWidth||r<p.minWarningHeight)return null;return i._({"wide":"This aspect ratio is disabled because the original image is too wide","tall":"This aspect ratio is disabled because the original image is too tall"},[i["enum"](q/r>.5625?"wide":"tall",{wide:"wide",tall:"tall"})]);case c("AdImageSpecs").INSTAGRAM_STORY_CROP.cropKey:return i._("This aspect ratio is disabled because the resulting image will be smaller than 500x889 pixels")}return null};n.propTypes={image:l.instanceOf(c("AdsImageLegacy")).isRequired,imageSpecs:l.arrayOf(l.object).isRequired,selectedSpec:l.object,onUpdateImageSpec:l.func.isRequired};f.exports=n}),null);
__d("AdsTextOverlayRecommendationNote.react",["fbt","AdsLearnMore.react","React","SUIBusinessTheme","SUIText.react"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k="980593475366490";i=babelHelpers.inherits(l,c("React").Component);j=i&&i.prototype;l.prototype.render=function(){var m=this.props.showPenaltyMessage?h._("To maximize ad delivery, use an image that contains {text penalty text} {Learn more}",[h.param("text penalty text",c("React").createElement(c("SUIText.react"),{shade:"medium",size:"meta1",theme:c("SUIBusinessTheme"),weight:"bold"},h._("little or no overlaid text."))),h.param("Learn more",c("React").createElement(c("AdsLearnMore.react"),{cmsID:k}))]):h._("Your image may not include {=more than 20\u0025 text}",[h.param("=more than 20% text",c("React").createElement(c("SUIText.react"),{shade:"medium",size:"meta1",theme:c("SUIBusinessTheme"),weight:"bold"},h._("more than 20\u0025 text.")))]);return c("React").createElement("span",null,m)};function l(){i.apply(this,arguments)}f.exports=l}),null);
__d("AdsImagePanelNote.react",["cx","fbt","AdsTextOverlayRecommendationNote.react","List.react","React","SUIBusinessTheme","SUIText.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("React").PropTypes;j=babelHelpers.inherits(m,c("React").Component);k=j&&j.prototype;function m(){var n,o;for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=k.constructor).call.apply(n,[this].concat(q)),this.$AdsImagePanelNote1=function(){return c("React").createElement(c("SUIText.react"),{shade:"medium",theme:c("SUIBusinessTheme")},i._("Recommended image size: {Image size}",[i.param("Image size",c("React").createElement(c("SUIText.react"),{shade:"medium",theme:c("SUIBusinessTheme"),weight:"bold"},i._("{width} \u00d7 {height} pixels",[i.param("width",this.props.imageSpec.width),i.param("height",this.props.imageSpec.height)])))]))}.bind(this),this.$AdsImagePanelNote2=function(){return c("React").createElement(c("SUIText.react"),{shade:"medium",theme:c("SUIBusinessTheme")},i._("Recommended image ratio: {Image ratio}",[i.param("Image ratio",c("React").createElement(c("SUIText.react"),{shade:"medium",theme:c("SUIBusinessTheme"),weight:"bold"},this.props.imageSpec.displayRatio))]))}.bind(this),o}m.prototype.render=function(){return c("React").createElement("div",{className:"_5qs _3-8o _2ph_"},c("React").createElement("h4",{className:"_5r0 _3-94"},i._("IMAGE SPECIFICATIONS")),c("React").createElement(c("List.react"),{border:"none",className:"_5r1 _3-9c",spacing:"small"},c("React").createElement("li",null,this.$AdsImagePanelNote1()),c("React").createElement("li",null,this.$AdsImagePanelNote2()),c("React").createElement("li",null,c("React").createElement(c("SUIText.react"),{shade:"medium",theme:c("SUIBusinessTheme")},c("React").createElement(c("AdsTextOverlayRecommendationNote.react"),{showPenaltyMessage:true})))))};m.propTypes={imageSpec:l.object.isRequired};f.exports=m}),null);
__d("AdsPlacementAssetCustomizationLoggerEvents",[],(function a(b,c,d,e,f,g){"use strict";var h=Object.freeze({CLICK_BASE_IMAGE_CROP:"pac_click_base_image_crop",CLICK_CUSTOMIZE:"pac_click_customize",CLICK_INSTAGRAM_IMAGE_CROP:"pac_click_instagram_image_crop",REMOVE_CUSTOMIZATION:"pac_remove_customization",CLICK_OLD_CROPPER_INSTAGRAM_CUSTOMIZATION:"pac_click_old_cropper_instagram_customization",REMOVE_OLD_CROPPER_INSTAGRAM_CUSTOMIZATION:"pac_remove_old_cropper_instagram_customization",CLICK_VIDEO_CUSTOMIZE:"pac_click_video_customize",REMOVE_VIDEO_CUSTOMIZATION:"pac_remove_video_customization",BASE_VIDEO_THUMBNAIL_CHANGE:"pac_base_video_thumbnail_change",INSTAGRAM_VIDEO_THUMBNAIL_CHANGE:"pac_instagram_video_thumbnail_change",BASE_VIDEO_CUSTOM_THUMBNAIL_CHANGE:"pac_base_video_custom_thumbnail_change",INSTAGRAM_VIDEO_CUSTOM_THUMBNAIL_CHANGE:"pac_instagram_video_custom_thumbnail_change",BASE_VIDEO_CAPTIONS_CHANGE:"pac_base_video_captions_change",INSTAGRAM_VIDEO_CAPTIONS_CHANGE:"pac_instagram_video_captions_change",PAC_PHASE1_UI_RENDERED:"pac_phase1_ui_rendered",PAC_PHASE2_UI_RENDERED:"pac_phase2_ui_rendered",CLICK_PHASE2_CUSTOMIZATION_SELECTOR:"pac_phase2_click_customization_selector",CLICK_PHASE2_CUSTOMIZATION_SELECTOR_ITEM:"pac_phase2_click_customization_selector_item",ADD_IMAGE_PLACEMENT_CUSTOMIZATION:"pac_add_image_placement_customization",REMOVE_IMAGE_PLACEMENT_CUSTOMIZATION:"pac_remove_image_placement_customization",BASE_IMAGE_CROP_CHANGE:"pac_base_image_crop_change",CUSTOM_IMAGE_CROP_CHANGE:"pac_custom_image_crop_change",ADD_VIDEO_PLACEMENT_CUSTOMIZATION:"pac_add_video_placement_customization",REMOVE_VIDEO_PLACEMENT_CUSTOMIZATION:"pac_remove_video_placement_customization",BASE_VIDEO_THUMBNAIL_CHANGE_V2:"pac_base_video_thumbnail_change_v2",CUSTOM_VIDEO_THUMBNAIL_CHANGE:"pac_custom_video_thumbnail_change",BASE_VIDEO_CAPTION_CHANGE_V2:"pac_base_video_caption_change_v2",CUSTOM_VIDEO_CAPTION_CHANGE:"pac_custom_video_caption_change",CLICK_SELECT_ALL_PAC_PLACEMENTS:"pac_click_select_all_placements",CREATE_AD:"pac_create_ad",EDIT_AD:"pac_edit_ad"});f.exports=h}),null);
__d("AdsImageCropperEditor.react",["cssVar","cx","fbt","AdImageSpecCropKeys","AdImageSpecsUtils","AdsImageCropperEditorItem.react","AdsImageCropperEditorPlaceholderItem.react","AdsImageCropperImageSpecSelector.react","AdsImageCropSelector.react","AdsImageDialog.react","AdsImageLegacy","AdsImagePanelNote.react","AdsImageUtils","AdsImageValidation","AdsInterfacesLogEvents","AdsInterfacesLogger","AdsPageTypes","AdsPlacementAssetCustomizationLoggerEvents","AHGLink.react","ApiAdPageTypeToPlatformMap","BUIAdoptionCloseButton.react","CenteredContainer.react","Event","React","ReactFragment","SUIBusinessTheme","SUIButton.react","SUICheckboxInput.react","SUIText.react","XUIButton.react","debounce","emptyFunction","getViewportDimensions","mapObject"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m=c("React").PropTypes,n=parseInt("684",10),o=parseInt("584",10),p=40,q=50,r=parseInt("880",10),s=2,t=12,u=16,v=32,w=20,x=12,y=70,z=186,A=100,B=12,C=28;k=babelHelpers.inherits(D,c("React").Component);l=k&&k.prototype;function D(){__p&&__p();var E,F;for(var G=arguments.length,H=Array(G),I=0;I<G;I++)H[I]=arguments[I];return F=(E=l.constructor).call.apply(E,[this].concat(H)),this.$AdsImageCropperEditor1=null,this.$AdsImageCropperEditor26=function(J){if(J)this.$AdsImageCropperEditor29();else this.$AdsImageCropperEditor30()}.bind(this),this.$AdsImageCropperEditor18=function(J){this.setState({selectedPlacement:J})}.bind(this),this.$AdsImageCropperEditor31=function(J){var K=this.$AdsImageCropperEditor4(this.state.selectedPlacement),L=this.state.placementImageSpecs,M=L[this.state.selectedPlacement];if(M!==J){var N;L[this.state.selectedPlacement]=J;this.setState({placementImageSpecs:L});this.props.onImageUpdate(K,this.state.selectedPlacement,(N={},N[J.cropKey]=K.crops[J.cropKey]||c("AdsImageUtils").calculateDefaultCoordinates(K.getWidth(),K.getHeight(),J.aspectRatio),N))}}.bind(this),this.$AdsImageCropperEditor29=function(){c("AdsInterfacesLogger").log({eventName:c("AdsPlacementAssetCustomizationLoggerEvents").CLICK_OLD_CROPPER_INSTAGRAM_CUSTOMIZATION,eventCategory:c("AdsInterfacesLogEvents").EventCategory.USER_ACTION});this.setState({showCustomImagePanel:true})}.bind(this),this.$AdsImageCropperEditor27=function(){this.setState({showImageLibrary:true})}.bind(this),this.$AdsImageCropperEditor6=function(){this.setState({showImageLibrary:false})}.bind(this),this.$AdsImageCropperEditor7=function(J){if(J[0])this.props.onImageUpdate(new(c("AdsImageLegacy"))(babelHelpers["extends"]({},J[0])),this.state.selectedPlacement,null);this.$AdsImageCropperEditor6()}.bind(this),this.$AdsImageCropperEditor30=function(){c("AdsInterfacesLogger").log({eventName:c("AdsPlacementAssetCustomizationLoggerEvents").REMOVE_OLD_CROPPER_INSTAGRAM_CUSTOMIZATION,eventCategory:c("AdsInterfacesLogEvents").EventCategory.USER_ACTION});this.props.onImageUpdate(this.props.image,this.state.selectedPlacement,null);this.setState({showCustomImagePanel:false})}.bind(this),this.state={placementImageSpecs:this.$AdsImageCropperEditor2(this.props.image,this.props.platformCustomizations,this.$AdsImageCropperEditor3(this.props.imageSpecs)),selectedPlacement:this.props.selectedPlacement||this.props.imageSpecs[0].placement},F}D.prototype.componentWillMount=function(){var E=c("debounce")(function(){return this.forceUpdate()}.bind(this));this.$AdsImageCropperEditor1=c("Event").listen(window,"resize",E)};D.prototype.componentWillUnmount=function(){if(this.$AdsImageCropperEditor1&&this.$AdsImageCropperEditor1.remove)this.$AdsImageCropperEditor1.remove();this.$AdsImageCropperEditor1=null};D.prototype.componentWillReceiveProps=function(E){var F=E.imageSpecs;if(F.length===0)return;var G=E.image,H=this.state.selectedPlacement,I=E.platformCustomizations,J=this.state.placementImageSpecs[H],K=F.every(function(L){return J!==L});if(!J||K)this.setState({selectedPlacement:F[0].placement});this.setState({placementImageSpecs:this.$AdsImageCropperEditor2(G,I,this.$AdsImageCropperEditor3(F))})};D.prototype.renderLayers=function(){var E=void 0;if(this.state.showImageLibrary)E=c("React").createElement(c("AdsImageDialog.react"),{accountID:this.props.accountID,libraryImages:this.props.libraryImages,maxSelectedImages:1,selectedImages:[this.$AdsImageCropperEditor4(this.state.selectedPlacement).toJSON()],specs:this.$AdsImageCropperEditor5(),onCancel:this.$AdsImageCropperEditor6,onSelect:this.$AdsImageCropperEditor7});return c("ReactFragment").create({dialog:E})};D.prototype.render=function(){__p&&__p();var E=this.state.selectedPlacement,F=this.$AdsImageCropperEditor4(E),G=this.state.placementImageSpecs[E];if(this.props.imageSpecs.length===0||!G)return c("React").createElement("div",null,this.renderLayers());var H=void 0,I=void 0;if(this.state.showCustomImagePanel&&c("ApiAdPageTypeToPlatformMap")[E]&&F.equals(this.props.image))H=this.$AdsImageCropperEditor8(G);else{H=this.$AdsImageCropperEditor9(F,G);I=this.$AdsImageCropperEditor10(F)}var J=c("React").createElement("div",{className:"_5twc",style:{width:this.$AdsImageCropperEditor11()}},this.$AdsImageCropperEditor12(),this.$AdsImageCropperEditor13(),this.$AdsImageCropperEditor14());return c("React").createElement("div",{className:"_5twd",style:{height:this.$AdsImageCropperEditor15()}},c("React").createElement("div",{className:"_5oh2"},H,I),J,this.renderLayers())};D.prototype.$AdsImageCropperEditor12=function(){return c("React").createElement("div",{className:"_5twe"},this.props.header,c("React").createElement(c("BUIAdoptionCloseButton.react"),{className_DEPRECATED:"_5twf rfloat",size:"large",onClick:this.props.onClose}))};D.prototype.$AdsImageCropperEditor16=function(E){return this.props.disabledSpecs.some(function(F){return F.placement===E})};D.prototype.$AdsImageCropperEditor14=function(){return c("React").createElement("div",{className:"_5twg"},c("React").createElement(c("XUIButton.react"),{className:"rfloat",label:j._("Done"),use:"confirm",onClick:this.props.onClose}))};D.prototype.$AdsImageCropperEditor13=function(){__p&&__p();var E=this.state.selectedPlacement,F=this.$AdsImageCropperEditor3(this.props.imageSpecs),G=this.props.isSingleCropMode?1:Object.keys(F).length,H=G>1,I=this.$AdsImageCropperEditor11()-(G-1)*x-G*s*2-2*(H?t:v),J=this.$AdsImageCropperEditor15()-p-q-2*(H?u:w),K=Math.min(J-s*2,H?y:z),L=this.$AdsImageCropperEditor17(F,I,K),M=this.state.placementImageSpecs,N=Object.keys(M).map(function(X){return M[X]}),O=[];for(var P=0;P<G;P++){var Q=N[P];if(G>1&&Q.placement===c("AdsPageTypes").INSTAGRAM_STORY)continue;var R=this.$AdsImageCropperEditor4(Q.placement),S=Q.aspectRatio>0?Q.aspectRatio:R.width/R.height,T=L[Q.placement].width,U=T/S;if(H){U=L[Q.placement].height;T=L[Q.placement].height*S}if(U>K){U=K;T=U*S}var V=E===Q.placement;if(!V){T+=s;U+=s}if(Q.aspectRatio<=0)Q=babelHelpers["extends"]({},Q,{height:R.height,width:R.width,aspectRatio:R.width/R.height});var W=void 0;if(this.state.showCustomImagePanel&&c("ApiAdPageTypeToPlatformMap")[Q.placement]&&R.equals(this.props.image))W=c("React").createElement(c("AdsImageCropperEditorPlaceholderItem.react"),{height:Math.floor(U),isSelected:V,placement:Q.placement,width:Math.floor(T),onClick:this.$AdsImageCropperEditor18});else W=c("React").createElement(c("AdsImageCropperEditorItem.react"),{height:Math.floor(U),image:R,imageSpec:Q,isDisabled:this.$AdsImageCropperEditor16(Q.placement),isError:this.$AdsImageCropperEditor19(R,Q),isReady:this.$AdsImageCropperEditor20(R),isSelected:V,width:Math.floor(T),onClick:this.$AdsImageCropperEditor18,onContextMenu:this.$AdsImageCropperEditor21,onCropUpdate:this.props.onImageUpdate});O.push(c("React").createElement("div",{className:"_145i",key:R.getUniqueIdentifier()+Q.placement+Q.cropKey,style:{width:L[Q.placement].width}},W))}return c("React").createElement("div",null,this.$AdsImageCropperEditor22(H),this.$AdsImageCropperEditor23(F,L),c("React").createElement("div",{className:"_5twi"},O),this.$AdsImageCropperEditor24(),this.$AdsImageCropperEditor25())};D.prototype.$AdsImageCropperEditor24=function(){var E=this.state.selectedPlacement;if(!c("ApiAdPageTypeToPlatformMap")[E]||!this.props.canSetPlatformCustomImage||this.props.isSingleCropMode)return null;var F=this.props.image,G=this.$AdsImageCropperEditor4(E),H=this.state.showCustomImagePanel||!F.equals(G),I=c("React").createElement(c("SUICheckboxInput.react"),{display:"block",label:j._("Select a separate image for this placement"),theme:c("SUIBusinessTheme"),value:H,onChange:this.$AdsImageCropperEditor26}),J=void 0;if(H)J=c("React").createElement("div",null,c("React").createElement(c("SUIButton.react"),{label:j._("Change Image"),style:{marginTop:"12px"},theme:c("SUIBusinessTheme"),onClick:this.$AdsImageCropperEditor27}),c("React").createElement(c("AdsImagePanelNote.react"),{imageSpec:this.$AdsImageCropperEditor28()}));return c("React").createElement("div",{className:"_2ph_"},I,J)};D.prototype.$AdsImageCropperEditor9=function(E,F){var G=this.$AdsImageCropperEditor15()-q-2*B-(this.props.showSpecSelector?C:0);return c("React").createElement(c("AdsImageCropSelector.react"),{disableResizer:F.aspectRatio<=0,height:G,image:E,imageSpec:F,isDisabled:this.$AdsImageCropperEditor16(F.placement),isError:this.$AdsImageCropperEditor19(E,F),isReady:this.$AdsImageCropperEditor20(E),suppressValidationError:this.props.suppressValidationError,width:r-this.$AdsImageCropperEditor11()-2*B,onContextMenu:this.$AdsImageCropperEditor21,onCropUpdate:this.props.onImageUpdate})};D.prototype.$AdsImageCropperEditor8=function(E){var F=this.$AdsImageCropperEditor15()-2*B,G=r-this.$AdsImageCropperEditor11()-2*B;return c("React").createElement("div",{className:"_5tv-",style:{height:F,width:G}},c("React").createElement(c("CenteredContainer.react"),{className:"_kzj",fullHeight:true,vertical:true},j._("Please select an image for this placement")))};D.prototype.$AdsImageCropperEditor10=function(E){var F=this.state.selectedPlacement;if(!this.props.showSpecSelector||F!==c("AdsPageTypes").INSTAGRAM_STREAM&&F!==c("AdsPageTypes").INSTAGRAM_STORY)return null;var G=this.$AdsImageCropperEditor3(this.props.imageSpecs),H=this.state.placementImageSpecs[F];return c("React").createElement("div",{className:"_23et"},c("React").createElement(c("AdsImageCropperImageSpecSelector.react"),{image:E,imageSpecs:G[F],selectedSpec:H,onUpdateImageSpec:this.$AdsImageCropperEditor31}))};D.prototype.$AdsImageCropperEditor23=function(E,F){if(Object.keys(F).length<=1)return null;var G=Object.keys(E).map(function(H){return c("React").createElement("div",{className:"_qmy",key:"header title"+H,style:{width:F[H].width}},c("AdImageSpecsUtils").getImageSpecPlacementPlatform(E[H][0]))});return c("React").createElement(c("CenteredContainer.react"),{className:"_qmz",horizontal:true,vertical:false},c("React").createElement("div",null,G))};D.prototype.$AdsImageCropperEditor25=function(){var E=this.state.selectedPlacement;if(!this.$AdsImageCropperEditor16(E))return null;var F=this.$AdsImageCropperEditor3(this.props.imageSpecs),G=c("AdImageSpecsUtils").getImageSpecPlacementPlatform(F[E][0]);if(!G)return null;G=G.charAt(0).toUpperCase()+G.slice(1).toLowerCase();return c("React").createElement(c("SUIText.react"),{className:"_26_h",display:"block",size:"meta1",theme:c("SUIBusinessTheme"),weight:"bold"},j._("Editing the crop for {Placement name (Facebook or Instagram)} is not available",[j.param("Placement name (Facebook or Instagram)",G)]))};D.prototype.$AdsImageCropperEditor22=function(E){if(!E)return null;return c("React").createElement(c("SUIText.react"),{className:"_3-8z _3-8t _3-96",display:"block",size:"meta1",theme:c("SUIBusinessTheme")},j._("Select the image to edit how it is cropped. {=Learn about ad placements} on Facebook and Instagram.",[j.param("=Learn about ad placements",c("React").createElement(c("AHGLink.react"),{href:"/business/help/202838606926630",label:j._("Learn about ad placements")}))]))};D.prototype.$AdsImageCropperEditor15=function(){var E=c("getViewportDimensions")().height,F=E-A;return Math.max(o,Math.min(n,F))};D.prototype.$AdsImageCropperEditor19=function(E,F){if(this.props.suppressValidationError)return false;return E.hasValidationError(F.placement)};D.prototype.$AdsImageCropperEditor20=function(E){return E.isStockImage()?E.hasFullSizeDimensions():E.hasDimensions()};D.prototype.$AdsImageCropperEditor11=function(){var E="250";return parseInt(E,10)};D.prototype.$AdsImageCropperEditor21=function(E,event){if(E.isStockImage())event.preventDefault()};D.prototype.$AdsImageCropperEditor2=function(E,F,G){__p&&__p();return c("mapObject")(G,function(H,I){var J=c("ApiAdPageTypeToPlatformMap")[I],K=J&&F&&F[J];if(!K)K=E;var L=Object.keys(K.crops),M=c("AdsImageValidation").getDefaultImageSpec(J,K,H);if(this.props.isSingleCropMode&&J||!J||F&&F[J])H.forEach(function(N){if(L.includes(N.cropKey))M=N});return M}.bind(this))};D.prototype.$AdsImageCropperEditor3=function(E){var F={};E.forEach(function(G){F[G.placement]=F[G.placement]||[];F[G.placement].push(G)});return F};D.prototype.$AdsImageCropperEditor17=function(E,F,G){__p&&__p();if(this.props.isSingleCropMode){var H,I=this.props.imageSpecs[0];E=(H={},H[I.placement]=[I],H)}var J=0,K={};Object.keys(E).map(function(M){var N=this.$AdsImageCropperEditor4(M),O=N.width/N.height;K[M]=E[M].map(function(P){return P.aspectRatio>0?P.aspectRatio:O}).reduce(function(P,Q){return Math.max(P,Q)});J+=K[M]}.bind(this));var L={};Object.keys(K).forEach(function(M){var N=K[M],O=N/J*F,P=O/N;if(P>G){P=G;O=P*N}L[M]={height:P,width:O}});return L};D.prototype.$AdsImageCropperEditor4=function(E){var F=void 0,G=c("ApiAdPageTypeToPlatformMap")[E],H=this.props.platformCustomizations;if(H&&G)F=H[G];return F||this.props.image};D.prototype.$AdsImageCropperEditor5=function(){var E=this.props.imageSpecs.filter(function(F){return c("ApiAdPageTypeToPlatformMap")[F.placement]===c("ApiAdPageTypeToPlatformMap")[this.state.selectedPlacement]}.bind(this));return c("AdImageSpecsUtils").filterCropImageSpecs(E)};D.prototype.$AdsImageCropperEditor28=function(){var E=this.$AdsImageCropperEditor5();return E.find(function(F){return F.cropKey===c("AdImageSpecCropKeys")["100x100"]})||E[0]};D.propTypes={accountID:m.string,canSetPlatformCustomImage:m.bool,disabledSpecs:m.arrayOf(m.object).isRequired,header:m.node.isRequired,image:m.instanceOf(c("AdsImageLegacy")).isRequired,imageSpecs:m.array.isRequired,isSingleCropMode:m.bool,libraryImages:m.arrayOf(m.shape({url:m.string.isRequired,hash:m.string.isRequired})),platformCustomizations:m.objectOf(m.instanceOf(c("AdsImageLegacy")).isRequired),selectedPlacement:m.string,showSpecSelector:m.bool,suppressValidationError:m.bool,onClose:m.func,onImageUpdate:m.func.isRequired};D.defaultProps={disabledSpecs:[],onClose:c("emptyFunction"),onImageUpdate:c("emptyFunction")};f.exports=D}),null);
__d("AdsImageCropperEditorDialogMixins",["AdsImageCropperEditor.react","AdsImageLegacy","LayerFadeOnHide","LayerHideOnEscape","LayerHideOnTransition","React","ReactLayeredComponentMixin_DEPRECATED","XUIDialog.react","emptyFunction"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=c("React").PropTypes,i=880,j={propTypes:{header:h.string.isRequired,image:h.instanceOf(c("AdsImageLegacy")),imageSpecs:h.array.isRequired,onCropUpdate:h.func,onShow:h.func},getDefaultProps:function l(){return{onCropUpdate:c("emptyFunction"),onShow:c("emptyFunction")}},getInitialState:function l(){return{dialogShown:false}},renderLayers:function l(){if(!this.state.dialogShown||!this.props.image)return{};return{dialog:c("React").createElement(c("XUIDialog.react"),{behaviors:{LayerFadeOnHide:c("LayerFadeOnHide"),LayerHideOnEscape:c("LayerHideOnEscape"),LayerHideOnTransition:c("LayerHideOnTransition")},shown:this.state.dialogShown,width:i,onToggle:this._onToggle},c("React").createElement(c("AdsImageCropperEditor.react"),{canSetPlatformCustomImage:true,header:this.props.header,image:this.props.image,imageSpecs:this.props.imageSpecs,onClose:this.hideCropper,onImageUpdate:this.props.onCropUpdate}))}},showCropper:function l(){this.props.onShow();this.setState({dialogShown:true})},hideCropper:function l(){this.setState({dialogShown:false})},_onToggle:function l(m){if(!m)setTimeout(function(){return this.setState({dialogShown:false})}.bind(this),0)}},k=[j,c("ReactLayeredComponentMixin_DEPRECATED")];f.exports=k}),null);
__d("AdsCFCreativeImagePanelCropperAction.react",["ix","AdsCFCreativeImagePanelAction.react","AdsImageCropperEditorDialogMixins","React"],(function a(b,c,d,e,f,g,h){"use strict";var i=c("React").PropTypes,j=c("React").createClass({displayName:"AdsCFCreativeImagePanelCropperAction",mixins:c("AdsImageCropperEditorDialogMixins"),propTypes:{buttonIcon:i.object,className:i.string,disabled:i.bool,tooltip:i.node.isRequired,label:i.node.isRequired,iconHeight:i.number,iconWidth:i.number,size:i.oneOf(["small","medium","large","xlarge","xxlarge"])},render:function k(){return c("React").createElement(c("AdsCFCreativeImagePanelAction.react"),{buttonIcon:this.props.buttonIcon,className:this.props.className,"data-tooltip-content":this.props.tooltip,disabled:this.props.disabled,iconHeight:this.props.iconHeight,iconSrc:h("22265"),iconWidth:this.props.iconWidth,label:this.props.label,size:this.props.size,onClick:this.showCropper})}});f.exports=j}),null);
__d("BoostedComponentImageCropper.react",["fbt","AdsCFCreativeImagePanelCropperAction.react","AdsImageLegacy","React"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes;i=babelHelpers.inherits(l,c("React").Component);j=i&&i.prototype;function l(){var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=j.constructor).call.apply(m,[this].concat(p)),this.$BoostedComponentImageCropper1=function(r,s,t){var u=Object.keys(t)[0];if(u)this.props.onCropClick(u,t[u])}.bind(this),n}l.prototype.render=function(){var m=h._("Reposition Image"),n=h._("Reposition Image"),o=h._("Reposition the image to change how it appears in your ad.");return c("React").createElement(c("AdsCFCreativeImagePanelCropperAction.react"),{buttonIcon:this.props.buttonIcon,className:this.props.className,disabled:this.props.disabled||!this.props.image,header:n,image:this.props.image,imageSpecs:this.props.imageSpecs,label:m,size:"xlarge",tooltip:o,onCropUpdate:this.$BoostedComponentImageCropper1})};l.propTypes={buttonIcon:k.object,className:k.string,disabled:k.bool,image:k.instanceOf(c("AdsImageLegacy")),imageSpecs:k.array.isRequired,onCropClick:k.func.isRequired};f.exports=l}),null);
__d("BoostedComponentImageEditEvent",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({EDITOR_OPENED:"editor_opened",IMAGE_EDITED:"image_edited"})}),null);
__d("BoostedComponentImageEditorTypedLogger",["Banzai","GeneratedLoggerUtils","nullthrows"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(){this.clear()}h.prototype.log=function(){c("GeneratedLoggerUtils").log("logger:BoostedComponentImageEditorLoggerConfig",this.$BoostedComponentImageEditorTypedLogger1,c("Banzai").BASIC)};h.prototype.logVital=function(){c("GeneratedLoggerUtils").log("logger:BoostedComponentImageEditorLoggerConfig",this.$BoostedComponentImageEditorTypedLogger1,c("Banzai").VITAL)};h.prototype.clear=function(){this.$BoostedComponentImageEditorTypedLogger1={};return this};h.prototype.updateData=function(j){this.$BoostedComponentImageEditorTypedLogger1=babelHelpers["extends"]({},this.$BoostedComponentImageEditorTypedLogger1,j);return this};h.prototype.setEvent=function(j){this.$BoostedComponentImageEditorTypedLogger1.event=j;return this};h.prototype.setPageID=function(j){this.$BoostedComponentImageEditorTypedLogger1.page_id=j;return this};h.prototype.setPhotoID=function(j){this.$BoostedComponentImageEditorTypedLogger1.photo_id=j;return this};h.prototype.setStickers=function(j){this.$BoostedComponentImageEditorTypedLogger1.stickers=j;return this};h.prototype.setUsedCropping=function(j){this.$BoostedComponentImageEditorTypedLogger1.used_cropping=j;return this};h.prototype.setUsedFilters=function(j){this.$BoostedComponentImageEditorTypedLogger1.used_filters=j;return this};h.prototype.setUsedStickers=function(j){this.$BoostedComponentImageEditorTypedLogger1.used_stickers=j;return this};h.prototype.setUsedTextOverlay=function(j){this.$BoostedComponentImageEditorTypedLogger1.used_text_overlay=j;return this};h.prototype.setVC=function(j){this.$BoostedComponentImageEditorTypedLogger1.vc=j;return this};var i={event:true,page_id:true,photo_id:true,stickers:true,used_cropping:true,used_filters:true,used_stickers:true,used_text_overlay:true,vc:true};f.exports=h}),null);
__d("XBoostedComponentTemporaryPhotoController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/ads/boosted_components/temporary_photo/",{url:{type:"String"}})}),null);
__d("BoostedComponentImageEditor.react",["fbt","ix","Promise","AdsCFCreativeImagePanelAction.react","AdsDaoGraph","AdsImageLegacy","Arbiter","AsyncRequest","AsyncResponse","BoostedComponentImageEditEvent","BoostedComponentImageEditorTypedLogger","ErrorUtils","FBLogger","ModalPhotoEditorTabName","PhotoEditorTargetType","Random","React","XBoostedComponentTemporaryPhotoController","XStickerPhotoEditorController","emptyFunction","nullthrows"],(function a(b,c,d,e,f,g,h,i){__p&&__p();var j,k,l=c("Random").random,m="EDITED_IMAGE";j=babelHelpers.inherits(n,c("React").Component);k=j&&j.prototype;function n(){__p&&__p();var o,p;"use strict";for(var q=arguments.length,r=Array(q),s=0;s<q;s++)r[s]=arguments[s];return p=(o=k.constructor).call.apply(o,[this].concat(r)),this.state={gridID:l().toString(),imageIDs:{},imageUrlToInitialImageUrl:{}},this.$BoostedComponentImageEditor3=function(){var t=this.props.image;if(t){this.props.onWorkStart();this.$BoostedComponentImageEditor5(t.getUrl()).then(this.$BoostedComponentImageEditor6)["catch"](function(u){c("ErrorUtils").reportError(u);this.props.onWorkEnd()}.bind(this))}}.bind(this),this.$BoostedComponentImageEditor6=function(t){__p&&__p();return new(c("Promise"))(function(u,v){__p&&__p();var w=c("XStickerPhotoEditorController").getURIBuilder().setString("grid_id",this.state.gridID).setBool("enable_tagging",false).setBool("enable_square_crop_mode",false).setBool("enable_text",this.props.enableText).setBool("enable_stickers",this.props.enableStickers).setEnum("target_type",c("PhotoEditorTargetType").COMPOSER).setEnum("initial_tab",c("ModalPhotoEditorTabName").CROP).setInt("photo_fbid",this.$BoostedComponentImageEditor7().originalImageID).setInt("latest_fbid",t),x=this.props.imageSpecs;if(x.length)w=w.setFloat("aspect_ratio",x[0].aspectRatio);new(c("BoostedComponentImageEditorTypedLogger"))().setEvent(c("BoostedComponentImageEditEvent").EDITOR_OPENED).setPhotoID(t).setPageID(this.props.pageID).log();new(c("AsyncRequest"))(w.getURI()).setFinallyHandler(function(y){if(y.getError()){v(y.toError());return}this.$BoostedComponentImageEditor2=c("Arbiter").subscribe("AttachmentsPhotoEditor/newImage"+this.state.gridID,this.$BoostedComponentImageEditor11);this.props.onWorkEnd();u()}.bind(this)).send()}.bind(this))}.bind(this),this.$BoostedComponentImageEditor11=function(t,u){this.props.onWorkStart();this.$BoostedComponentImageEditor12(u);var v=new b.FileReader();v.onloadend=function(){return this.$BoostedComponentImageEditor13(v.result)}.bind(this);v.readAsDataURL(u.blob);this.$BoostedComponentImageEditor4()}.bind(this),p}n.prototype.render=function(){"use strict";var o=h._("Edit Image"),p=h._("Edit the image to change how it appears in your ad."),q=this.props,r=q.disabled,s=q.image,t=r||!s||!s.getUrl();return c("React").createElement(c("AdsCFCreativeImagePanelAction.react"),{buttonIcon:this.props.buttonIcon,className:this.props.className,"data-tooltip-content":p,disabled:t,iconSrc:i("22265"),label:o,size:"xlarge",onClick:this.$BoostedComponentImageEditor3})};n.prototype.componentWillUnmount=function(){"use strict";this.$BoostedComponentImageEditor4()};n.prototype.$BoostedComponentImageEditor5=function(o){"use strict";__p&&__p();return new(c("Promise"))(function(p,q){__p&&__p();var r=this.$BoostedComponentImageEditor7()[o];if(r){p(r);return}var s=c("XBoostedComponentTemporaryPhotoController").getURIBuilder().setString("url",o).getURI();new(c("AsyncRequest"))(s).setFinallyHandler(function(t){__p&&__p();if(t.getError()){q(t.toError());return}var u=t.getPayload().fbid,v=this.$BoostedComponentImageEditor7();v[o]=u;if(!v.originalImageID)v.originalImageID=u;this.$BoostedComponentImageEditor8(v);p(u)}.bind(this)).send()}.bind(this))};n.prototype.$BoostedComponentImageEditor8=function(o){"use strict";var p=this.state.imageIDs;p[this.$BoostedComponentImageEditor9()]=o;this.setState({imageIDs:p})};n.prototype.$BoostedComponentImageEditor7=function(){"use strict";var o=this.state.imageIDs;return o[this.$BoostedComponentImageEditor9()]||{}};n.prototype.$BoostedComponentImageEditor9=function(){"use strict";var o=this.state.imageUrlToInitialImageUrl,p=this.props.image,q=c("nullthrows")(c("nullthrows")(p).getUrl());return o[q]||q};n.prototype.$BoostedComponentImageEditor10=function(o){"use strict";var p=this.state.imageUrlToInitialImageUrl,q=this.$BoostedComponentImageEditor9();p[o]=q;this.setState({imageUrlToInitialImageUrl:p})};n.prototype.$BoostedComponentImageEditor12=function(o){"use strict";try{var p=o.textOverlays||[],q=Object.keys(o.stickers||{});new(c("BoostedComponentImageEditorTypedLogger"))().setEvent(c("BoostedComponentImageEditEvent").IMAGE_EDITED).setPhotoID(o.fbid).setPageID(this.props.pageID).setUsedFilters(o.hasFilter).setUsedCropping(o.hasCrop).setUsedStickers(!!q.length).setUsedTextOverlay(!!p.length).setStickers(q.join(",")).log()}catch(r){c("ErrorUtils").reportError(r)}};n.prototype.$BoostedComponentImageEditor13=function(o){"use strict";__p&&__p();if(!o){c("FBLogger")("FIXME").mustfix("Failed to read data");return}try{var p=function(t,u){if(t&&t.images){var v=new(c("AdsImageLegacy"))(t.images[m]);this.$BoostedComponentImageEditor10(v.getUrl());this.props.onUploadClick(v)}else if(u&&u.error)c("ErrorUtils").reportError(u.error);this.props.onWorkEnd()}.bind(this),q=o.split(","),r={bytes:q[1],name:m,encoding:q[0],handleError:p,accountId:this.props.accountID};c("AdsDaoGraph").add.imageForAccount.one(p,r,c("emptyFunction"))}catch(s){c("ErrorUtils").reportError(s)}};n.prototype.$BoostedComponentImageEditor4=function(){"use strict";var o=this.$BoostedComponentImageEditor2;if(o&&o.unsubscribe){o.unsubscribe();this.$BoostedComponentImageEditor2=null}};f.exports=n}),null);
__d("BoostedComponentImageSelectorV2Container.react",["AdImageSpecsUtils","AdsFluxContainer","AdsImageLegacy","AdsImageSelectorV2ConfigUtils","AdsImageSelectorV2ModalContainer.react","AdsImageSelectorV2Types","AdsInstagramIdentityUtils","AdsPageInstagramAccountStore","immutable","React"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("AdsImageSelectorV2Types").DEFAULT_SOURCE_TYPE_LIST;h=babelHelpers.inherits(k,c("React").PureComponent);i=h&&h.prototype;k.getStores=function(l){return[c("AdsPageInstagramAccountStore")]};k.calculateState=function(l,m){var n=null,o=m.pageID?m.pageID:null;if(o){var p=c("AdsPageInstagramAccountStore").get(o),q=c("AdsInstagramIdentityUtils").getEligibleInstagramAccount(false,p);if(q)n=q.id}return{pageID:o,instagramAccountID:n}};k.prototype.render=function(){var l=c("AdImageSpecsUtils").reduceAndMergeImageSpec(this.props.imageSpecs),m=c("immutable").List([c("AdsImageSelectorV2ConfigUtils").getAccountImageConfig(this.props.accountID,l,true),c("AdsImageSelectorV2ConfigUtils").getStockImageConfig(this.props.defaultStockSearchText),c("AdsImageSelectorV2ConfigUtils").getPageImageConfig(this.state.pageID,l,true),c("AdsImageSelectorV2ConfigUtils").getUploadImageConfig(this.props.accountID,l.first()),c("AdsImageSelectorV2ConfigUtils").getInstagramImageConfig(this.state.instagramAccountID,l,true)]);m=m.filter(function(n){return this.props.sourceTypeList.includes(n.type)}.bind(this));return c("React").createElement(c("AdsImageSelectorV2ModalContainer.react"),{adEditWarningMessage:this.props.adEditWarningMessage,header:this.props.header,initialSource:this.props.initialSource,isShown:this.props.isShown,maxSelectedImageIDs:this.props.maxSelectedImageIDs,selectedImageIDs:this.props.selectedImageIDs,sources:m,onConfirm:this.props.onConfirm,onConfirmLegacy:this.props.onConfirmLegacy,onHide:this.props.onHide})};function k(){h.apply(this,arguments)}k.defaultProps={sourceTypeList:j,imageSpecs:[]};f.exports=c("AdsFluxContainer").create(k,{withProps:true,name:f.id})}),null);
__d("SUIBoostedComponentTheme",["ix","React","SUIBusinessTheme","SUIGlyphIcon.react","SUITheme"],(function a(b,c,d,e,f,g,h){"use strict";var i=function i(m){return c("React").createElement(c("SUIGlyphIcon.react"),babelHelpers["extends"]({},m,{srcDefault:h("101291"),srcHover:h("101293")}))},j=function j(m){return c("React").createElement(c("SUIGlyphIcon.react"),babelHelpers["extends"]({},m,{srcDefault:h("101294"),srcHover:h("101295")}))},k={SUICloseButton:{dark:{large:i,small:i},light:{large:j,small:j},iconSize:{large:12,small:12}}},l=new(c("SUITheme"))({id:"boosted_component",components:babelHelpers["extends"]({},c("SUIBusinessTheme"),k)});f.exports=l}),null);
__d("BoostedComponentImageLibrarySelector.react",["AdsImageDialogContainer.react","AdsImageIDUtils","AdsImageLegacy","AdsImageSelectorV2Types","AdsMediaPanelTabs","BoostedComponentImageSelectorV2Container.react","immutable","React","ShimButton.react","SUIBoostedComponentTheme","Tooltip.react","emptyFunction","gkx"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("AdsImageSelectorV2Types").AdsImageSource,k=c("AdsImageSelectorV2Types").ALL_SOURCE_TYPE_LIST;h=babelHelpers.inherits(l,c("React").Component);i=h&&h.prototype;function l(){__p&&__p();var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=i.constructor).call.apply(m,[this].concat(p)),this.state={showDialog:this.props.showDialog===true},this.$BoostedComponentImageLibrarySelector1=function(event){event.preventDefault();this.setState({showDialog:true});this.props.onDialogShown()}.bind(this),this.$BoostedComponentImageLibrarySelector6=function(r){this.setState({showDialog:false});var s=r.map(function(t){return new(c("AdsImageLegacy"))(t)});this.props.onImagesSelected(s)}.bind(this),this.$BoostedComponentImageLibrarySelector4=function(r){this.setState({showDialog:false});this.props.onImagesSelected(r.toArray())}.bind(this),this.$BoostedComponentImageLibrarySelector5=function(){this.setState({showDialog:false});if(this.props.onImageSelectionCancelled)this.props.onImageSelectionCancelled()}.bind(this),n}l.prototype.componentWillReceiveProps=function(m){if(m.showDialog!==this.props.showDialog)this.setState({showDialog:m.showDialog===true})};l.prototype.render=function(){var m=c("React").createElement(c("ShimButton.react"),{onClick:this.props.disabled?null:this.$BoostedComponentImageLibrarySelector1},this.props.clickableTrigger);if(!this.props.tooltipText)return m;return c("React").createElement(c("Tooltip.react"),{alignH:"left",className:this.props.className,position:"above",tooltip:this.props.tooltipText},m,this.$BoostedComponentImageLibrarySelector2())};l.prototype.$BoostedComponentImageLibrarySelector2=function(){__p&&__p();var m=null;if(this.state.showDialog){var n=void 0;if(this.props.enableStock)n=this.props.defaultStockSearchText;if(c("gkx")("AT6lT8s-lYKB5LRmP7d-QYBhUD7X_CNEOzgL1PbJAIi0zfFxesqKQ0yjhhCYTHie1XOPrmltBCRly47ifx0Irut0")){var o=k;if(!this.props.enableStock)o=o.remove(j.STOCK_IMAGE);var p=j.ACCOUNT_IMAGE;if(this.props.image&&this.props.image.isStockImage())p=j.STOCK_IMAGE;m=c("React").createElement(c("BoostedComponentImageSelectorV2Container.react"),{accountID:this.props.accountID,defaultStockSearchText:n,initialSource:p,isShown:this.state.showDialog,maxSelectedImageIDs:this.props.maxSelectedImages,pageID:this.props.pageID,selectedImageIDs:this.$BoostedComponentImageLibrarySelector3(),sourceTypeList:o,specs:this.props.imageSpecs,onConfirmLegacy:this.$BoostedComponentImageLibrarySelector4,onHide:this.$BoostedComponentImageLibrarySelector5})}else{var q=[c("AdsMediaPanelTabs").UPLOAD,c("AdsMediaPanelTabs").LIBRARY];if(this.props.enableStock)q.push(c("AdsMediaPanelTabs").STOCK);var r=void 0;if(this.props.image&&this.props.image.isStockImage())r=c("AdsMediaPanelTabs").STOCK;var s=null;if(this.props.imageUrl)s={url:this.props.imageUrl,hash:this.props.imageHash};if(this.props.image&&this.props.image.isStockImage()){var t=this.props.image;s={crops:t.getCrops(),fullSizeUrl:t.getFullSizeUrl(),height:t.getHeight(),previewHeight:t.getPreviewHeight(),previewUrl:t.getPreviewUrl(),previewWidth:t.getPreviewWidth(),stockImageID:t.getStockImageID(),thumbHeight:t.getThumbnailHeight(),thumbWidth:t.getThumbnailWidth(),url:t.getThumbnailUrl(),width:t.getWidth()}}var u=s?[s]:[];m=c("React").createElement(c("AdsImageDialogContainer.react"),{accountID:this.props.accountID,defaultStockSearchText:n,initialTab:r,maxSelectedImages:this.props.maxSelectedImages,pageID:this.props.pageID,selectedImages:u,specs:this.props.imageSpecs,tabKeys:q,theme:c("SUIBoostedComponentTheme"),useInstagramImageCreative:true,onCancel:this.$BoostedComponentImageLibrarySelector5,onSelect:this.$BoostedComponentImageLibrarySelector6})}}return m};l.prototype.$BoostedComponentImageLibrarySelector3=function(){__p&&__p();var m=null;if(this.props.imageHash)m={hash:this.props.imageHash};else if(this.props.image&&this.props.image.isStockImage()){var n=this.props.image;m={stockImageID:n.getStockImageID()}}else if(this.props.imageUrl)m={url:this.props.imageUrl};var o=m?[m]:[];return c("AdsImageIDUtils").getImageIDsFromImageInfoArray(this.props.accountID,o)};l.defaultProps={onDialogShown:c("emptyFunction"),maxSelectedImages:1};f.exports=l}),null);
__d("AdsInterfaceCreativeLoggingEvents",[],(function a(b,c,d,e,f,g){"use strict";var h=Object.freeze({ADS_ADGROUP_PREVIEW_GENERATE_ERROR:"ADS_ADGROUP_PREVIEW_GENERATE_ERROR",CAROUSEL_IMAGE_CONFIRMED_IN_IMAGE_LIBRARY_DIALOG:"CAROUSEL_IMAGE_CONFIRMED_IN_IMAGE_LIBRARY_DIALOG",CAROUSEL_IMAGE_CROP_COMPLETED:"CAROUSEL_IMAGE_CROP_COMPLETED",CAROUSEL_IMAGE_CROP_DIALOG_OPENED:"CAROUSEL_IMAGE_CROP_DIALOG_OPENED",CAROUSEL_SELECT_OR_CHANGE_IMAGE_DIALOG_OPEN:"CAROUSEL_SELECT_OR_CHANGE_IMAGE_DIALOG_OPEN",IMAGE_TOO_SMALL_ERROR:"IMAGE_TOO_SMALL_ERROR",IMAGE_UPLOAD_FAILURE:"IMAGE_UPLOAD_FAILURE",IMAGE_UPLOAD_SUCCESSFUL:"IMAGE_UPLOAD_SUCCESSFUL"});f.exports=h}),null);
__d("ImageReader",["Promise","DOM","Event"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(k,l,m,n,o){__p&&__p();var p=new Image(),q=function q(){l(null,0,0)};c("Event").listen(p,{load:function r(){__p&&__p();if(o){l(k,p.width,p.height);return}m=m||p.width;n=n||p.height;if(p.width>m||p.height>n){var s=Math.max(p.width/m,p.height/n),t=p.width/s<<0,u=p.height/s<<0,v=c("DOM").create("canvas",{css:"background-color: transparent;",width:t,height:u}),w=v.getContext("2d");w.drawImage(p,0,0,p.width,p.height,0,0,t,u);try{l(v.toDataURL("image/jpeg"),p.width,p.height);return}catch(x){l(k,p.width,p.height)}}else l(k,p.width,p.height)},error:q,abort:q});p.src=k}function i(k,l,m,n,o){var p=new b.FileReader();p.onloadend=function(q){h(p.result,l,m,n,o)};p.readAsDataURL(k)}function j(k,l,m,n){return new(c("Promise"))(function(o){i(k,function(p){return o(p)},l,m,n)})}f.exports={promiseRead:j,read:i,resizeIfNeeded:h}}),null);
__d("XAdsCFImageUploadController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/ads/create/imageupload/",{})}),null);
__d("AdsUploadProcess",["cx","regeneratorRuntime","AdsDaoGraph","AdsImageLegacy","AdsImageUploadConstants","ArbiterMixin","DOM","GlobalCallback","ImageReader","SphericalImage","XAdsCFImageUploadController","getAsyncParams","gkx","mixin"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k={IFRAME_NAME:"_57mk"},l=0;i=babelHelpers.inherits(m,c("mixin")(c("ArbiterMixin")));j=i&&i.prototype;function m(n,o){j.constructor.call(this);this.id=l;l++;this.file=n;this.iframe=null;this.$AdsUploadProcess1=o}m.prototype.getID=function(){return this.id};m.prototype.upload=function(n){if(window.FileReader)this.$AdsUploadProcess2();else this.$AdsUploadProcess3(n)};m.prototype.$AdsUploadProcess2=function n(){__p&&__p();var o,p,q;return c("regeneratorRuntime").async(function r(s){__p&&__p();while(1)switch(s.prev=s.next){case 0:o=function(t){__p&&__p();if(!t){this.failed();return}var u=t.split(","),v=function(y,z){if(y&&y.images){var A=this.file.name,B=new(c("AdsImageLegacy"))(y.images[A]);this.succeeded(B)}else{var C=z&&z.error;this.failed(C)}}.bind(this),w=function(y){this.progressData=y;this.progressPercent=y.loaded/y.total*100;this.inform("onProgress",y)}.bind(this);try{c("AdsDaoGraph").add.imageForAccount.one(v,{bytes:u[1],name:this.file.name,encoding:u[0],handleError:v,accountId:this.$AdsUploadProcess1},w)}catch(x){this.failed(x.message);throw new Error(x.message)}}.bind(this);p=false;if(!c("gkx")("AT4gX863rgXifZCfnlh2LAJcgb7dGnlujrJHPPDHFjq1TGjfcNaW6I-MICgTeLsVsIp9txEr6OdzjtOd7cPWsD2V")){s.next=12;break}s.prev=3;s.next=6;return c("regeneratorRuntime").awrap(c("SphericalImage").createFromBlob(this.file));case 6:q=s.sent;if(q.isSpherical())p=true;s.next=12;break;case 10:s.prev=10;s.t0=s["catch"](3);case 12:c("ImageReader").read(this.file,o,c("AdsImageUploadConstants").maxWidth,c("AdsImageUploadConstants").maxHeight,p);case 13:case"end":return s.stop()}},null,this,[[3,10]])};m.prototype.$AdsUploadProcess3=function(n){__p&&__p();var o=document.createElement("iframe");o.className="_57mi";var p=k.IFRAME_NAME+this.getID();o.name=p;n.target=p;var q=c("XAdsCFImageUploadController").getURIBuilder();n.action=q.getURI().getQualifiedURI().toString();var r=c("getAsyncParams")("POST");Object.assign(r,{account_id:this.$AdsUploadProcess1,callback:c("GlobalCallback").create(this.$AdsUploadProcess4.bind(this,o)),domain:document.domain});Object.keys(r).forEach(function(s){n.appendChild(c("DOM").create("input",{type:"hidden",name:s,value:r[s]}))});document.body&&document.body.appendChild(o);n.submit()};m.prototype.$AdsUploadProcess4=function(n,o,p){c("GlobalCallback").remove(o);c("DOM").remove(n);if(p&&p.url)this.succeeded(new(c("AdsImageLegacy"))(p));else this.failed()};m.prototype.succeeded=function(n){this.image=n;this.inform("succeeded",n)};m.prototype.failed=function(n){this.inform("failed",n)};f.exports=m}),null);
__d("AdsImageUploaderDEPRECATED",["cx","fbt","invariant","Promise","AdsImageUploadErrorActions","AdsImageValidation","AdsInterfaceCreativeLoggingEvents","AdsInterfacesLogger","AdsUploadProcess","ArbiterMixin","CSS","DOMEventListener","DOMQuery","Parent","React","ReactDOM","WebApiApplication","ads-lib-connect_DEPRECATED","adsFormatErrorMessage","getDOMImageSize","mixin"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m=c("ads-lib-connect_DEPRECATED").FB,n=b.URL||b.webkitURL,o={UPLOAD_ELEMENT:"_57mh",DRAG_OVER:"_57mj",CLICK_HIJACK:"_57mf",CLICK_HIJACK_FORM:"_5ecl"};k=babelHelpers.inherits(p,c("mixin")(c("ArbiterMixin")));l=k&&k.prototype;function p(q,r){__p&&__p();l.constructor.call(this);this.handleFormInputMount=function(s){var t=s;if(t){c("DOMEventListener").add(t,"change",function(u){this.handleInputChange(u,t)}.bind(this));this.onFormInputMount&&this.onFormInputMount(t)}}.bind(this);this.handleInputClick=function(){this.inform("onUploadClicked")}.bind(this);r=r||{};r.accountId||j(0);this.accountId=r.accountId;this.acceptsMultiple="multiple"in r?!!r.multiple:true;this.acceptsMultiple=window.FileReader?this.acceptsMultiple:false;this.validateImageSize=r.validateImageSize;this.validateImageFormat=r.validateImageFormat;this.imageSpec=r.imageSpec||{minWarningWidth:0,minWarningHeight:0};this.onFormInputMount=r.onFormInputMount;this.onGifUpload=r.onGifUpload;this.root=q;if(this.root){this.findAndDecorateUploadElements();this.createDragAndDropArea(this.root)}}p.prototype.findAndDecorateUploadElements=function(){var q=c("DOMQuery").scry(this.root,"."+o.UPLOAD_ELEMENT);q.forEach(function(r){this.decorateUploadElement(r)},this);if(c("CSS").hasClass(this.root,o.UPLOAD_ELEMENT))this.decorateUploadElement(this.root)};p.prototype.createDragAndDropArea=function(q){__p&&__p();c("DOMEventListener").add(q,"dragenter",function(r){r.preventDefault();c("CSS").addClass(this,o.DRAG_OVER)});c("DOMEventListener").add(q,"dragleave",function(r){r.preventDefault();c("CSS").removeClass(this,o.DRAG_OVER)});c("DOMEventListener").add(q,"dragover",function(r){r.preventDefault();r.dataTransfer.dropEffect="copy"});c("DOMEventListener").add(q,"drop",this.onDrop.bind(this))};p.prototype.onDrop=function(q){q.preventDefault();var r=c("DOMQuery").scry(this.root,"."+o.CLICK_HIJACK_FORM)[0];this.upload(q.dataTransfer.files,r)};p.prototype.decorateUploadElement=function(q){var r=c("WebApiApplication").getAccessToken(),s=m.url("/act_"+this.accountId+"/adimages",null,r);if(c("DOMQuery").scry(q,"."+o.CLICK_HIJACK).length)return;var t=document.createElement("div");t.className=o.CLICK_HIJACK;var u=c("React").createElement("form",{action:s,className:o.CLICK_HIJACK_FORM,encType:"multipart/form-data",method:"POST"},c("React").createElement("input",{accept:"image/*",className:"_57mg",multiple:this.acceptsMultiple,name:"fileToUpload",ref:this.handleFormInputMount,type:"file",onClick:this.handleInputClick}));u=c("ReactDOM").render(u,t);q.appendChild(t)};p.prototype.handleInputChange=function(q,r){var s=q.target||r,t=s.files||[s.value],u=c("Parent").byTag(s,"form");if(u)this.upload(t,u)};p.prototype.filterFiles=function(q){var r=Array.from(q).filter(function(s){return!s.type||s.type.match(/image\.*/i)});return r};p.prototype.containsGifFile=function(q){var r=Array.from(q).findIndex(function(s){return s.type!=null&&s.type.match(/gif\.*/i)});return r!==-1};p.prototype.getImageTooSmallErrorMessages=function(q){var r=i._("Image too small."),s=i._({"*":{"*":"This image is too small. Try one that's at least {width} x {height} px."}},[i.param("width",q.minWarningWidth,[0]),i.param("height",q.minWarningHeight,[0])]);return{shortMessage:r,longMessage:s}};p.prototype.getImageNotSupportedErrorMessages=function(q){var r=i._("Image format not supported."),s=!q?i._("The image format isn't supported. Please use a different image."):i._("The {image format} image format isn't supported. Please use a different image.",[i.param("image format",q)]);return{shortMessage:r,longMessage:s}};p.prototype.$AdsImageUploaderDEPRECATED1=function(q,r){return c("AdsImageValidation").isWarningSize({getWidth:function s(){return q},getHeight:function s(){return r},isStockImage:function s(){return false},hasFullSizeDimensions:function s(){return true}},this.imageSpec)};p.prototype.upload=function(q,r){__p&&__p();q=Array.from(q);var s=q.length;if(!this.acceptsMultiple)q=[q[0]];q=this.filterFiles(q);var t=q.length;if(!q)return;var u=t!==s;if(u)c("AdsImageUploadErrorActions").setUploadFormatError(this.getImageNotSupportedErrorMessages());var v=[],w=[];if(this.validateImageFormat)q.forEach(function(y){if(c("AdsImageValidation").isValidFormat(y.type))w.push(y);else{c("AdsImageUploadErrorActions").setUploadFormatError(this.getImageNotSupportedErrorMessages(y.type));u=true}}.bind(this));else w=q;if(this.onGifUpload!=null&&this.containsGifFile(w))this.onGifUpload();var x=[];x=w.map(function(y){__p&&__p();return new(c("Promise"))(function(z,A){__p&&__p();c("getDOMImageSize")(n.createObjectURL(y),function(B,C,D){__p&&__p();if(this.validateImageFormat&&B===0&&C===0){c("AdsImageUploadErrorActions").setUploadFormatError(this.getImageNotSupportedErrorMessages());z(false)}else if(this.validateImageSize&&this.imageSpec&&!this.$AdsImageUploaderDEPRECATED1(B,C)){c("AdsImageUploadErrorActions").setUploadSizeError(this.getImageTooSmallErrorMessages(this.imageSpec));c("AdsInterfacesLogger").log({eventName:c("AdsInterfaceCreativeLoggingEvents").IMAGE_TOO_SMALL_ERROR},c("AdsInterfacesLogger").LOG_TYPE_SECONDARY_APP);z(false)}else{v.push(new(c("AdsUploadProcess"))(y,this.accountId));z(true)}}.bind(this))}.bind(this))}.bind(this));c("Promise").all(x).done(function(y){if(y.every(function(z){return z})&&!u)c("AdsImageUploadErrorActions").removeErrors();this.startUploadProcesses(v,r)}.bind(this))};p.prototype.$AdsImageUploaderDEPRECATED2=function(q){var r=c("Parent").byClass(q,o.CLICK_HIJACK),s=r&&r.parentNode;if(r&&s){s.removeChild(r);this.decorateUploadElement(s)}};p.prototype.startUploadProcesses=function(q,r){__p&&__p();this.inform("onUploadStarted",q);var s=[],t=0,u=q.map(function(v){__p&&__p();return new(c("Promise"))(function(w,x){__p&&__p();v.subscribe("succeeded",function(y,z){s.push(z);w();c("AdsInterfacesLogger").log({eventName:c("AdsInterfaceCreativeLoggingEvents").IMAGE_UPLOAD_SUCCESSFUL},c("AdsInterfacesLogger").LOG_TYPE_SECONDARY_APP)});v.subscribe("failed",function(y,z){var A=c("adsFormatErrorMessage")(z);c("AdsImageUploadErrorActions").setUploadAPIError({shortMessage:i._("Upload error"),longMessage:A});t++;w();c("AdsInterfacesLogger").log({eventName:c("AdsInterfaceCreativeLoggingEvents").IMAGE_UPLOAD_FAILURE},c("AdsInterfacesLogger").LOG_TYPE_SECONDARY_APP)});v.upload(r)})});c("Promise").all(u).done(function(){this.$AdsImageUploaderDEPRECATED2(r);this.uploadEnded(s,t)}.bind(this))};p.prototype.uploadEnded=function(q,r){this.inform("onUploadEnded",{succeededImages:q,numFailedImages:r})};f.exports={AdsImageUploaderDEPRECATED:p,AdsImageUploaderConstantsDEPRECATED:o}}),null);
__d("AdsCFCreativeImagePanelUploaderAction.react",["cx","fbt","ix","AdsCFCreativeImagePanelAction.react","AdsCFCreativeViewActions","AdsImageUploaderDEPRECATED","DOM","React","ReactDOM","SubscriptionsHandler","emptyFunction"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m=c("AdsImageUploaderDEPRECATED").AdsImageUploaderDEPRECATED,n=c("AdsImageUploaderDEPRECATED").AdsImageUploaderConstantsDEPRECATED;k=babelHelpers.inherits(o,c("React").Component);l=k&&k.prototype;function o(){var p,q;for(var r=arguments.length,s=Array(r),t=0;t<r;t++)s[t]=arguments[t];return q=(p=l.constructor).call.apply(p,[this].concat(s)),this.$AdsCFCreativeImagePanelUploaderAction1=[],this.$AdsCFCreativeImagePanelUploaderAction4=function(u){if(this.props.postponeDestroyUploader)return;this.$AdsCFCreativeImagePanelUploaderAction7(u)}.bind(this),q}o.prototype.componentDidMount=function(){this.$AdsCFCreativeImagePanelUploaderAction1=[this.$AdsCFCreativeImagePanelUploaderAction2()]};o.prototype.componentWillReceiveProps=function(p){if(this.props.accountID!==p.accountID)this.$AdsCFCreativeImagePanelUploaderAction3()};o.prototype.componentDidUpdate=function(){if(!this.$AdsCFCreativeImagePanelUploaderAction1)this.$AdsCFCreativeImagePanelUploaderAction1=[this.$AdsCFCreativeImagePanelUploaderAction2()]};o.prototype.componentWillUnmount=function(){this.$AdsCFCreativeImagePanelUploaderAction3()};o.prototype.$AdsCFCreativeImagePanelUploaderAction3=function(){this.$AdsCFCreativeImagePanelUploaderAction1.forEach(this.$AdsCFCreativeImagePanelUploaderAction4,this);delete this.$AdsCFCreativeImagePanelUploaderAction1};o.prototype.render=function(){var p=j("22268"),q=this.props.disabled,r=void 0,s=i._("Upload");if(this.props.multiple)r=q?i._({"*":"You've selected the maximum of {max_count} images. You can remove some images if you want to upload more."},[i.param("max_count",this.props.maxUploadableImages,[0])]):i._("Upload new images for your ads.");else r=i._("Upload a new image for your ads.");var t="_5yya"+(q?" hidden_elem":"");return c("React").createElement(c("AdsCFCreativeImagePanelAction.react"),babelHelpers["extends"]({},this.props,{"data-tooltip-content":r,hide:this.props.hide,iconSrc:p,label:s,size:this.props.size,onClick:this.props.onUploadClick}),c("React").createElement("div",{className:t,ref:"uploaders"}))};o.prototype.$AdsCFCreativeImagePanelUploaderAction5=function(p,q,r){p.input.removeAttribute("id");p.element.className="hidden_elem";p.filesCount=r.length;this.$AdsCFCreativeImagePanelUploaderAction1.push(this.$AdsCFCreativeImagePanelUploaderAction2());this.props.onUploadStart(r)};o.prototype.$AdsCFCreativeImagePanelUploaderAction6=function(p,q,r){this.props.onUploadEnd(r.succeededImages,r.numFailedImages);this.$AdsCFCreativeImagePanelUploaderAction7(p)};o.prototype.$AdsCFCreativeImagePanelUploaderAction2=function(){__p&&__p();var p={},q=c("DOM").create("span",{className:n.UPLOAD_ELEMENT});c("ReactDOM").findDOMNode(this.refs.uploaders).appendChild(q);var r=new m(q,{accountId:this.props.accountID,imageSpec:this.props.imageSpec,multiple:this.props.multiple,onGifUpload:this.$AdsCFCreativeImagePanelUploaderAction8,onFormInputMount:function(t){if(!t)return;t.id=this.props.fileInputNodeID;p.input=t}.bind(this),validateImageSize:this.props.validateImageSize,validateImageFormat:this.props.validateImageFormat}),s=new(c("SubscriptionsHandler"))();s.addSubscriptions(r.subscribe("onUploadStarted",this.$AdsCFCreativeImagePanelUploaderAction5.bind(this,p)),r.subscribe("onUploadEnded",this.$AdsCFCreativeImagePanelUploaderAction6.bind(this,p)));p.filesCount=0;p.uploader=r;p.element=q;p.subscriptions=s;return p};o.prototype.$AdsCFCreativeImagePanelUploaderAction8=function(){c("AdsCFCreativeViewActions").gifUploadedFromImage()};o.prototype.$AdsCFCreativeImagePanelUploaderAction7=function(p){if(p.uploader){delete p.uploader;p.subscriptions.release();delete p.subscriptions;c("DOM").remove(p.element);delete p.input;delete p.element}};o.defaultProps={hide:false,onUploadClick:c("emptyFunction"),onUploadStart:c("emptyFunction"),onUploadEnd:c("emptyFunction"),postponeDestroyUploader:false};f.exports=o}),null);
__d("AdsMultiImageSelectorUtils",[],(function a(b,c,d,e,f,g){"use strict";var h=6,i=1,j=1,k={getMaxUploadableImages:function l(m,n){if(m)return i;else if(n)return j;else return h}};f.exports=k}),null);
__d("BoostedComponentImageUploader.react",["invariant","AdsCFCreativeImagePanelUploaderAction.react","AdsMultiImageSelectorUtils","React","WebApiApplication"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes;i=babelHelpers.inherits(l,c("React").Component);j=i&&i.prototype;function l(){var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=j.constructor).call.apply(m,[this].concat(p)),this.$BoostedComponentImageUploader1=function(r){c("WebApiApplication").init(this.props.accessToken,this.props.clientID)}.bind(this),this.$BoostedComponentImageUploader2=function(r){r.length===1||h(0);this.props.onUploadEnd();this.props.onUploadClick(r[0])}.bind(this),this.$BoostedComponentImageUploader3=function(r){this.props.onUploadStart()}.bind(this),n}l.prototype.render=function(){return c("React").createElement(c("AdsCFCreativeImagePanelUploaderAction.react"),{accountID:this.props.accountID,className:this.props.className,disabled:this.props.disabled,fileInputNodeID:"BoostedComponentImageUploader"+this.props.clientID,maxUploadableImages:c("AdsMultiImageSelectorUtils").getMaxUploadableImages(false,false),multiple:false,size:"xlarge",onUploadClick:this.$BoostedComponentImageUploader1,onUploadEnd:this.$BoostedComponentImageUploader2,onUploadStart:this.$BoostedComponentImageUploader3})};l.propTypes={accountID:k.string.isRequired,accessToken:k.string.isRequired,clientID:k.string.isRequired,onUploadClick:k.func.isRequired,className:k.string,disabled:k.bool,onUploadEnd:k.func,onUploadStart:k.func};f.exports=l}),null);
__d("BoostedComponentImageSelector.react",["cx","AdImageSpecCropKeys","AdsImageUtils","BoostedComponentAvailableGK","BoostedComponentImageCropper.react","BoostedComponentImageEditor.react","BoostedComponentImageLibrarySelector.react","BoostedComponentImageUploader.react","BoostedComponentQEs","BoostedComponentQEUtils","BoostedComponentStrings","React","XUIButton.react","XUISpinner.react","boostedComponentGKCheck","joinClasses"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("BoostedComponentAvailableGK").BOOSTED_COMPONENT_IMAGE_EDITING,l=36,m=36;i=babelHelpers.inherits(n,c("React").Component);j=i&&i.prototype;function n(o){j.constructor.call(this,o);this.$BoostedComponentImageSelector5=function(){this.setState({isWorking:false})}.bind(this);this.$BoostedComponentImageSelector6=function(){this.setState({isWorking:true})}.bind(this);this.state={isWorking:false}}n.prototype.render=function(){var o=(!this.state.isWorking?"hidden_elem":"")+" _3-99";return c("React").createElement("div",null,this.$BoostedComponentImageSelector1(),this.$BoostedComponentImageSelector2(),this.$BoostedComponentImageSelector3(),this.$BoostedComponentImageSelector4(),c("React").createElement(c("XUISpinner.react"),{className:o}))};n.prototype.$BoostedComponentImageSelector4=function(){if(c("boostedComponentGKCheck")(k))return c("React").createElement(c("BoostedComponentImageEditor.react"),{accountID:this.props.accountID,buttonIcon:this.props.iconImageCrop,className:c("joinClasses")("_4nqt",this.props.buttonClass),disabled:this.state.isWorking,enableStickers:true,enableText:true,image:this.props.image,imageSpecs:this.props.imageSpecs,pageID:this.props.pageID,onCropClick:this.props.onImagesSelected,onUploadClick:this.props.onImageUploadClick,onWorkEnd:this.$BoostedComponentImageSelector5,onWorkStart:this.$BoostedComponentImageSelector6});return c("React").createElement(c("BoostedComponentImageCropper.react"),{buttonIcon:this.props.iconImageCrop,className:c("joinClasses")("_4nqt",this.props.buttonClass),disabled:this.state.isWorking,image:this.props.image,imageSpecs:this.props.imageSpecs,onCropClick:this.props.onImageCropClick})};n.prototype.$BoostedComponentImageSelector2=function(){if(this.props.hideImageUploader)return null;return c("React").createElement(c("BoostedComponentImageUploader.react"),{accessToken:this.props.accessToken,accountID:this.props.accountID,className:c("joinClasses")("_4nqt",this.props.buttonClass),clientID:this.props.clientID,disabled:this.state.isWorking,onUploadClick:this.props.onImageUploadClick,onUploadEnd:this.$BoostedComponentImageSelector5,onUploadStart:this.$BoostedComponentImageSelector6})};n.prototype.$BoostedComponentImageSelector3=function(){var o="";if(this.props.hideImageUploader)o=c("BoostedComponentStrings").REPLACE_IMAGE;else o=c("BoostedComponentStrings").SELECT_IMAGE;var p=c("React").createElement(c("XUIButton.react"),{disabled:this.state.isWorking,image:this.props.iconImageLibrary,label:o,size:"xlarge"});return c("React").createElement(c("BoostedComponentImageLibrarySelector.react"),{accountID:this.props.accountID,className:c("joinClasses")("_4nqt",this.props.buttonClass),clickableTrigger:p,defaultStockSearchText:this.props.defaultStockSearchText,disabled:this.state.isWorking,enableStock:this.props.enableStock,image:this.props.image,imageHash:this.props.imageHash,imageSpecs:this.props.imageSpecs,imageUrl:this.props.imageUrl,instagramImages:this.props.instagramImages,maxSelectedImages:this.props.maxSelectedImages,pageID:this.props.pageID,showDialog:this.props.showDialog,tooltipText:c("BoostedComponentStrings").IMAGE_SELECTOR_TOOLTIP_TEXT,onDialogShown:this.props.onDialogShown,onImageSelectionCancelled:this.props.onImageSelectionCancelled,onImagesSelected:this.props.onImagesSelected})};n.prototype.$BoostedComponentImageSelector1=function(){if(!this.props.showImagePreviewBox)return null;return c("React").createElement("div",{className:"_3cz2"},this.$BoostedComponentImageSelector7(this.props.image))};n.prototype.$BoostedComponentImageSelector7=function(o){if(!o||!o.hasDimensions())return null;return c("AdsImageUtils").renderScaledCroppedImage(o.getUrl(),m,l,o.getWidth(),o.getHeight(),o.getCrop(c("AdImageSpecCropKeys")["100x100"]))};n.defaultProps={imageIndex:0,hideImageUploader:false,showImagePreviewBox:false};f.exports=n}),null);
__d("BoostedComponentCreativeMultiImageEditorV2.react",["ix","cx","fbt","xuiglyph","AdsIndexedTabBar.react","ApiObjectStorySpecLinkChildFields","BoostedComponentCreativeLinkDataEditor.react","BoostedComponentImageSelector.react","BoostedComponentLabeledEditor.react","BoostedComponentStrings","Grid.react","LeftRight.react","Link.react","React","Image.react","XUIButton.react","BoostedComponentImageCreativeUtils"],(function a(b,c,d,e,f,g,h,i,j,k){"use strict";__p&&__p();var l=c("Grid.react").GridItem,m=c("BoostedComponentImageCreativeUtils").getImageSpecs,n=function n(r){var s=r.childAttachments,t=r.maxProducts,u=r.onChildAttachmentAdd;if(s.size>=t)return null;return c("React").createElement(c("XUIButton.react"),{className:"_3-9a",image:c("React").createElement(c("Image.react"),{src:h("89668")}),label:j._("Add"),labelIsHidden:true,onClick:u})},o=function o(r){var s=r.childAttachments,t=r.minProducts,u=r.onChildAttachmentRemove;if(s.size<=t)return null;return c("React").createElement(c("LeftRight.react"),{direction:"right"},c("React").createElement(c("Link.react"),{onClick:u},j._("Remove")))},p=function p(r){var s=r.appID,t=r.childAttachments,u=r.selectedAttachmentIndex,v=r.supportCarouselInLA,w=r.onChildAttachmentHeadlineChange,x=t.get(u),y=x?x.get(c("ApiObjectStorySpecLinkChildFields").NAME):"";return c("React").createElement(c("BoostedComponentCreativeLinkDataEditor.react"),{appID:s,headline:y,shouldEdit:false,supportCarouselInLA:v,useMultiAdsView:true,onLinkDataHeadlineChange:w})},q=function q(r){var s=r.accessToken,t=r.accountID,u=r.appID,v=r.childAttachments,w=r.clientID,x=r.defaultStockSearchText,y=r.hideImageUploader,z=r.image,A=r.imageHash,B=r.imageUrl,C=r.maxProducts,D=r.minProducts,E=r.pageID,F=r.selectedAttachmentIndex,G=r.supportCarouselInLA,H=r.useMediaPanelRedesign,I=r.onChildAttachmentImageCropClick,J=r.onChildAttachmentImageUploadClick,K=r.onChildAttachmentImagesSelected,L=r.onChildAttachmentHeadlineChange,M=r.onDialogShown,N=r.onChildAttachmentAdd,O=r.onChildAttachmentRemove,P=r.onChildAttachmentSelected;return c("React").createElement("div",null,c("React").createElement(c("Grid.react"),{cols:2},c("React").createElement(l,{key:"left"},c("React").createElement(c("AdsIndexedTabBar.react"),{numItems:v.size,selectedItem:F,onItemAdded:N,onItemSelected:P})),c("React").createElement(l,{key:"rigth"},c("React").createElement(n,{childAttachments:v,maxProducts:C,onChildAttachmentAdd:N}))),c("React").createElement("div",{background:"light-wash",className:"_1ev3"},c("React").createElement(o,{childAttachments:v,minProducts:D,onChildAttachmentRemove:O}),c("React").createElement(p,{appID:u,childAttachments:v,selectedAttachmentIndex:F,supportCarouselInLA:G,onChildAttachmentHeadlineChange:L}),c("React").createElement(c("BoostedComponentLabeledEditor.react"),{label:c("BoostedComponentStrings").CREATIVE_IMAGE,tooltip:c("BoostedComponentStrings").CREATIVE_IMAGE_TOOLTIP},c("React").createElement(c("BoostedComponentImageSelector.react"),{accessToken:s,accountID:t,clientID:w,defaultStockSearchText:x,hideImageUploader:y,image:z,imageIndex:F,imageHash:A,imageSpecs:m(u,v&&v.size>1,G),imageUrl:B,pageID:E,useMediaPanelRedesign:H,onDialogShown:M,onImageCropClick:I,onImageUploadClick:J,onImagesSelected:K}))))};f.exports=q}),null);
__d("BoostedComponentCreativeURLEditorV2.react",["AdsTextInput.react","AdsValidationConsts","BoostedComponentConstants","BoostedComponentCreativeSectionStrings","BoostedComponentLabeledEditor.react","React"],(function a(b,c,d,e,f,g){"use strict";var h=function h(i){var j=i.url,k=i.errors,l=i.onURLChange,m=k?k.toJS():null;return c("React").createElement(c("BoostedComponentLabeledEditor.react"),{counterLimit:c("BoostedComponentConstants").HEADLINE_EDITOR_TEXT_LIMIT,label:c("BoostedComponentCreativeSectionStrings").CREATIVE_URL_LABEL,tooltip:c("BoostedComponentCreativeSectionStrings").CREATIVE_URL_TOOLTIP},c("React").createElement(c("AdsTextInput.react"),{badTextRules:null,errors:m,hideMaxLength:true,maxLength:c("AdsValidationConsts").maxURLLength,multiline:false,placeholder:c("BoostedComponentCreativeSectionStrings").CREATIVE_URL_PLACEHOLDER,value:j,onChange:l}))};f.exports=h}),null);
__d("BoostedComponentDualCreativeContentV2.react",["cx","BoostedComponentCreativeActionsV2","BoostedComponentCreativeCategory","BoostedComponentCreativeSectionStrings","Link.react","React","SUIBusinessTheme","SUISimplePopover.react"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("BoostedComponentCreativeActionsV2").onToggleCreativeCategoryLink,l=c("BoostedComponentCreativeSectionStrings").getDualCreativeSectionSubtitle,m=c("BoostedComponentCreativeSectionStrings").getDualCreativeSectionTitle,n=268;i=babelHelpers.inherits(o,c("React").Component);j=i&&i.prototype;function o(){var p,q;for(var r=arguments.length,s=Array(r),t=0;t<r;t++)s[t]=arguments[t];return q=(p=j.constructor).call.apply(p,[this].concat(s)),this.$BoostedComponentDualCreativeContentV21=function(){var u=this.props,v=u.appID,w=u.boostID,x=u.creativeCategory,y=u.pageID,z=u.targetID,A=x===c("BoostedComponentCreativeCategory").IMAGE?c("BoostedComponentCreativeCategory").VIDEO:c("BoostedComponentCreativeCategory").IMAGE;k(A,y,v,z,w)}.bind(this),q}o.prototype.render=function(){var p=this.props,q=p.children,r=p.creativeCategory,s=p.imageEditorLabel,t=p.imageEditorTooltip,u=p.videoEditorLabel;return c("React").createElement("div",null,c("React").createElement("div",{className:"_5-3b"},c("React").createElement("label",{className:"_5-3c"},m(r,s,u))," ",t?c("React").createElement(c("SUISimplePopover.react"),{content:t,contentWidthUseSparingly:n,theme:c("SUIBusinessTheme")}):null),c("React").createElement("div",{className:"_5-3d"},c("React").createElement(c("Link.react"),{onClick:this.$BoostedComponentDualCreativeContentV21},l(r))),c("React").createElement("div",{className:"_3-8w"},q))};f.exports=o}),null);
__d("BoostedComponentBudgetValidationStrings",["fbt","AdsCurrencyFormatter"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i=function i(q,r){return h._("The minimum budget for this ad is {min_budget_per_day} per day. Ads that drive real business results, such as someone sending you a message, require a higher budget. Increase your budget to connect with more highly engaged people.",[h.param("min_budget_per_day",c("AdsCurrencyFormatter").formatCurrency(q,r))])},j=function j(q,r,s){return h._("The minimum budget for this ad is {min_budget_per_day} per day, so your budget needs to be at least {min_budget}. Ads that drive real business results, such as someone sending you a message, require a higher budget. Increase your budget to continue.",[h.param("min_budget_per_day",c("AdsCurrencyFormatter").formatCurrency(q,r)),h.param("min_budget",c("AdsCurrencyFormatter").formatCurrency(q,s))])},k=function k(q,r,s){if(s)return h._("The minimum budget for this ad is {min_budget_per_day} per day. Ads that drive real business results, such as someone sending you a message, require a higher budget. Increase your budget to continue.",[h.param("min_budget_per_day",c("AdsCurrencyFormatter").formatCurrency(q,r))]);return h._("The minimum budget is {min_budget_per_day} per day.",[h.param("min_budget_per_day",c("AdsCurrencyFormatter").formatCurrency(q,r))])},l=function l(q,r,s,t){if(t)return h._("The minimum budget for this ad is {min_budget_per_day} per day, so your budget needs to be at least {min_budget}. Ads that drive real business results, such as someone sending you a message, require a higher budget. Increase your budget to continue.",[h.param("min_budget_per_day",c("AdsCurrencyFormatter").formatCurrency(q,r)),h.param("min_budget",c("AdsCurrencyFormatter").formatCurrency(q,s))]);return h._("The minimum budget is {min_budget_per_day} per day, so your budget needs to be at least {min_budget}.",[h.param("min_budget_per_day",c("AdsCurrencyFormatter").formatCurrency(q,r)),h.param("min_budget",c("AdsCurrencyFormatter").formatCurrency(q,s))])},m=function m(q,r){return h._("Your budget needs to be less than {max_budget}.",[h.param("max_budget",c("AdsCurrencyFormatter").formatCurrency(q,r))])},n=function n(q,r){return h._("Your budget for this promotion exceeds the maximum. To comply with Facebook's Terms for Restricted Lead Ads, please lower your budget to {max_budget} per month or less.",[h.param("max_budget",c("AdsCurrencyFormatter").formatCurrency(q,r))])},o=function o(q,r){return h._("The minimum budget for this ad is {max_budget}. Ads that drive real business results, such as someone sharing their contact info with you, require a higher budget. Increase your budget to continue.",[h.param("max_budget",c("AdsCurrencyFormatter").formatCurrency(q,r))])},p=function p(q,r){return h._("The minimum budget for this ad is {min_total_budget}. Ads that drive real business results require a higher budget. Increase your budget to continue.",[h.param("min_total_budget",c("AdsCurrencyFormatter").formatCurrency(q,r))])};f.exports={getSingleDayMinBudgetError:k,getMultiDaysMinBudgetError:l,getSingleDayMinBudgetWarning:i,getMultiDaysMinBudgetWarning:j,getMaxBudgetError:m,getMaxBudgetErrorForRestrictedLeadGen:n,getMinTotalBudgetErrorForBoostedLeadGen:o,getMinTotalBudgetErrorForBoostedJobPost:p}}),null);
__d("BoostedComponentBudgetEstimationStoreValidator",["fbt","BoostedComponentAppID","BoostedComponentBudgetType","BoostedComponentBudgetValidationStrings","BoostedComponentDialogViewStates"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i=c("BoostedComponentBudgetValidationStrings").getSingleDayMinBudgetError,j=c("BoostedComponentBudgetValidationStrings").getMultiDaysMinBudgetError,k=c("BoostedComponentBudgetValidationStrings").getMaxBudgetError,l=c("BoostedComponentBudgetValidationStrings").getMaxBudgetErrorForRestrictedLeadGen,m=c("BoostedComponentBudgetValidationStrings").getMinTotalBudgetErrorForBoostedLeadGen,n=c("BoostedComponentBudgetValidationStrings").getMinTotalBudgetErrorForBoostedJobPost,o=c("BoostedComponentBudgetValidationStrings").getSingleDayMinBudgetWarning,p=c("BoostedComponentBudgetValidationStrings").getMultiDaysMinBudgetWarning,q=function q(s,t,u,v,w,x){if(!x||w===0||t===c("BoostedComponentBudgetType").LIFETIME_BUDGET)return null;if(s<w)if(u===1||t===c("BoostedComponentBudgetType").DAILY_BUDGET)return[o(v,w)];else return[p(v,w,w*u)];return null},r=function r(s,t,u,v,w,x,y,z,A,B,C,D,E,F,G){__p&&__p();if(t===c("BoostedComponentDialogViewStates").EDIT&&E){var H=u;if(v===c("BoostedComponentBudgetType").DAILY_BUDGET)H*=w;H=Math.floor(H);if(H<y)return[h._("Since you've already paid for this ad, you can only increase the original budget.")]}if(z&&v===c("BoostedComponentBudgetType").LIFETIME_BUDGET&&u<D)return[h._("You can't make your budget less than the amount you've already spent promoting this post. If you don't want to spend more on this post you can pause or delete the promotion.")];var I=B;if(v===c("BoostedComponentBudgetType").LIFETIME_BUDGET)I=w*B;if(u<I)if(w===1||v===c("BoostedComponentBudgetType").DAILY_BUDGET)return[i(x,B,G)];else return[j(x,B,I,G)];else if(C&&u<C){if(s===c("BoostedComponentAppID").BOOSTED_JOB_POST||s===c("BoostedComponentAppID").BOOSTED_JOB_POST_MOBILE)return[n(x,C)];return[m(x,C)]}else if(u>A){var J=void 0;if(s===c("BoostedComponentAppID").BOOSTED_LEAD_GEN&&F)J=l(x,A);else J=k(x,A);return[J]}return null};f.exports={getValidateBudgetError:r,getValidateBudgetWarning:q}}),null);
__d("BoostedComponentDeliveryStoreValidator",["fbt","AdsAPIPacingType"],(function a(b,c,d,e,f,g,h){"use strict";var i=function i(j,k){if(k===c("AdsAPIPacingType").NO_PACING&&j===0)return[h._("Please enter a bid or switch to standard delivery type")];return null};f.exports={getValidateDeliveryTypeError:i}}),null);
__d("BoostedComponentLeadGenUtils",["BoostedComponentRef","URI"],(function a(b,c,d,e,f,g){"use strict";var h=new(c("URI"))("/business/help/114161868925832/"),i=new(c("URI"))("/business/help/528479170832814/"),j=function j(n){return n!=="0"&&!!n},k=function k(n,o){return l(n)&&j(o)},l=function l(n){return n!==c("BoostedComponentRef").WWW_THIRD_PARTY_EMBEDDED_FLOW},m=function m(n){return l(n)?i:h};f.exports={isBoostFormStep:j,isConsolidatedBoostFormStep:k,isOnFacebookLeadGenPlacement:l,getHelpCenterURILink:m}}),null);
__d("BoostedComponentValidationStoreData",["immutable"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("immutable").Record({callToActionErrors:c("immutable").List(),welcomeMessageErrors:c("immutable").List(),creativeBodyErrors:c("immutable").Map(),creativeHeadlineErrors:c("immutable").Map(),creativeURLErrors:c("immutable").Map(),creativeImageErrors:c("immutable").Map(),creativeVideoErrors:c("immutable").Map(),addBudgetErrors:c("immutable").List(),budgetErrors:c("immutable").List(),budgetWarnings:c("immutable").List(),deliveryTypeErrors:c("immutable").List(),hasErrors:false}));i=h&&h.prototype;j.prototype.setBudgetErrors=function(k){return this.set("budgetErrors",k)};j.prototype.getBudgetErrors=function(){return this.budgetErrors};j.prototype.getBudgetWarnings=function(){return this.budgetWarnings};j.prototype.getAddBudgetErrors=function(){return this.addBudgetErrors};j.prototype.getCreativeSectionErrors=function(){var k=this.creativeBodyErrors.toList().concat(this.creativeHeadlineErrors.toList()).concat(this.creativeURLErrors.toList()).concat(this.callToActionErrors);if(this.creativeImageErrors)k=k.concat(this.creativeImageErrors.toList());if(this.creativeVideoErrors)k=k.concat(this.creativeVideoErrors.toList());return k};j.prototype.getCallToActionErrors=function(){return this.callToActionErrors};j.prototype.getWelcomeMessageErrors=function(){return this.welcomeMessageErrors};j.prototype.getBodyErrors=function(){return this.creativeBodyErrors};j.prototype.getHeadlineErrors=function(){return this.creativeHeadlineErrors};j.prototype.getURLErrors=function(){return this.creativeURLErrors};j.prototype.getImageErrors=function(){return this.creativeImageErrors};j.prototype.getDeliveryTypeErrors=function(){return this.deliveryTypeErrors};j.prototype.getAllErrors=function(){var k=this.creativeImageErrors?this.creativeImageErrors.toList():c("immutable").List(),l=this.creativeVideoErrors?this.creativeVideoErrors.toList():c("immutable").List(),m=c("immutable").List([this.budgetErrors,this.callToActionErrors,this.welcomeMessageErrors,this.deliveryTypeErrors,this.creativeBodyErrors.toList(),this.creativeHeadlineErrors.toList(),this.creativeURLErrors.toList(),k,l]).flatten();return m};j.prototype.getHasErrors=function(){return!!this.getAllErrors().size};function j(){h.apply(this,arguments)}f.exports=j}),null);
__d("BoostedComponentsCallToActionValidator",["AdsCallToActionTypes","AdsCallToActionUtils","ApiCallToActionFields","BoostedComponentAppID","BoostedComponentCreativeSectionStrings","BoostedComponentCreativeSectionUtils","BoostedComponentStringsV2","CallToActionValueFields","immutable","PostAttachmentTypes","URI","ads-lib-urllib","isFacebookURI"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=function h(m,n,o){var p=new(c("URI"))(o);if(i(p,m))return null;else if(!o||!c("ads-lib-urllib").isUrl(o)&&p.getProtocol()!=="mailto")return[c("BoostedComponentStringsV2").INVALID_URL_ERROR];else if(!n&&c("isFacebookURI")(p)&&m===c("BoostedComponentAppID").BOOSTED_WEBSITE)return[c("BoostedComponentStringsV2").INVALID_FBURL_ERROR];return null},i=function i(m,n){if(n!==c("BoostedComponentAppID").BOOSTED_CCTA)return false;return c("isFacebookURI")(m)&&(new RegExp("^/iw/").test(m.getPath())||new RegExp("^/pages/platform/first-party-cta/").test(m.getPath()))},j=function j(m){return/tel:(\+)?[\d,-]{9,15}$/.test(m)},k=function k(m,n,o,p,q,r,s){__p&&__p();var t=arguments.length<=7||arguments[7]===undefined?true:arguments[7];if(!n||m===c("BoostedComponentAppID").BOOSTED_LEAD_GEN||m===c("BoostedComponentAppID").BOOSTED_APP_INSTALL)return null;var u=n.getIn([c("ApiCallToActionFields").VALUE,c("CallToActionValueFields").LINK]);switch(n.get(c("ApiCallToActionFields").TYPE)){case c("AdsCallToActionTypes").TYPES.CALL_NOW.name:if(s<r){var v=m===c("BoostedComponentAppID").BOOSTED_POST?c("BoostedComponentStringsV2").PHONE_NUMBER_AGE_ERROR:c("BoostedComponentStringsV2").getCallToActionAgeTooLowError(r);return[v]}var w=n.getIn([c("ApiCallToActionFields").VALUE,c("CallToActionValueFields").LINK]);if(!j(w))return[c("BoostedComponentStringsV2").INVALID_PHONE_NUMBER_ERROR];return null;case c("AdsCallToActionTypes").TYPES.GET_DIRECTIONS.name:if(!u||!c("AdsCallToActionUtils").isValidGeoLink(u))return[c("BoostedComponentStringsV2").CALL_TO_ACTION_ADDRESS_INVALID];return null;case c("AdsCallToActionTypes").TYPES.WHATSAPP_MESSAGE.name:var x=n.getIn([c("ApiCallToActionFields").VALUE,c("CallToActionValueFields").WHATSAPP_NUMBER]);if(!x)return[c("BoostedComponentStringsV2").INVALID_WHATSAPP_NUMBER_ERROR];return null;case c("AdsCallToActionTypes").TYPES.BOOK_TRAVEL.name:case c("AdsCallToActionTypes").TYPES.LEARN_MORE.name:case c("AdsCallToActionTypes").TYPES.SHOP_NOW.name:case c("AdsCallToActionTypes").TYPES.SIGN_UP.name:case c("AdsCallToActionTypes").TYPES.GET_OFFER.name:if(q===c("PostAttachmentTypes").SINGLE_SHARE||c("BoostedComponentCreativeSectionUtils").isBoostedWebsiteWithImageCategory(m,o)||!t)return null;return h(m,p,u);default:return null}},l=function l(m){if(m&&m.length>c("BoostedComponentCreativeSectionStrings").MAX_LENGTH)return c("immutable").List([c("BoostedComponentCreativeSectionStrings").WELCOME_MESSAGE_TOO_LONG]);return null};f.exports={getValidateURLError:h,getValidateCallToActionError:k,getValidateWelcomeMessageError:l}}),null);
__d("BoostedComponentValidationStoreV2",["AdsBoostedComponentAdAccountV2UpdateAccountDataAction","AdsBoostedComponentAdAccountV2UpdateCurrencyDataAction","AdsBoostedComponentAudienceV2CreateAudienceSubmitDataAction","AdsBoostedComponentAudienceV2DeleteAudienceSubmitDataAction","AdsBoostedComponentAudienceV2EditAudienceSubmitDataAction","AdsBoostedComponentAudienceV2EditAudienceSuccessDataAction","AdsBoostedComponentAudienceV2LoadAudiencesDataAction","AdsBoostedComponentAudienceV2SetAudienceDataAction","AdsBoostedComponentCommonV2CreateSuccessDataAction","AdsBoostedComponentCommonV2CreateSuccessWithBoostIdDataAction","AdsBoostedComponentCommonV2FetchButtonDataDataAction","AdsBoostedComponentCommonV2FetchDialogDataDataAction","AdsBoostedComponentCommonV2LoadDialogChangeDataDataAction","AdsBoostedComponentCommonV2LoadDialogDataDataAction","AdsBoostedComponentLocalAwarenessV2UpdateAgeDataAction","AdsBoostedComponentObjectiveV2UpdateObjectiveDataAction","AdsCallToActionTypes","AdsDataAtom","AdsLWIUpdateCreativeBodyDataAction","AdsLWIUpdateCreativeLinkDataBodyDataAction","AdsLWIUpdateCreativeLinkDataHeadlineDataAction","AdsLWIValidationStoreActionHandlers","ApiCallToActionFields","BoostedActionCreativeStoreV2","BoostedAutomatedAdsBudgetEstimationStoreValidator","BoostedAutomatedAdsCommonActionTypesV2","BoostedComponentAdAccountStoreV2","BoostedComponentAppID","BoostedComponentAppInstallActionTypesV2","BoostedComponentAppInstallAppSelectorValidator","BoostedComponentAudienceStoreV2","BoostedComponentBudgetAndDurationActionTypesV2","BoostedComponentBudgetEstimationStoreV2","BoostedComponentBudgetEstimationStoreValidator","BoostedComponentBudgetType","BoostedComponentCommonActionTypesV2","BoostedComponentConstraintStoreV2","BoostedComponentContextStoreV2","BoostedComponentCreativeActionTypesV2","BoostedComponentCreativeStoreValidator","BoostedComponentDeliveryActionTypesV2","BoostedComponentDeliveryStoreV2","BoostedComponentDeliveryStoreValidator","BoostedComponentDialogUIStoreV2","BoostedComponentDurationStoreV2","BoostedComponentExistingAdInfoStoreV2","BoostedComponentFetchActionTypesV2","BoostedComponentFluxReduceStore","BoostedComponentLeadGenUtils","BoostedComponentMonthlyBudgetEstimationStoreV2","BoostedComponentNewAdInfoStoreV2","BoostedComponentObjective","BoostedComponentQEs","BoostedComponentQEUtils","BoostedComponentsCallToActionValidator","BoostedComponentStoreState","BoostedComponentStringsV2","BoostedComponentV2Utils","BoostedComponentValidationStoreData","BoostedPostCreativeStoreV2","CallToActionValueFields","immutable","PhoneNumber","createObjectBy"],(function aa(ba,a,ca,da,b,ea){"use strict";__p&&__p();var c,d,e=a("BoostedAutomatedAdsBudgetEstimationStoreValidator").getValidateBudgetErrors,f=a("BoostedComponentAppInstallAppSelectorValidator").getValidateAppInstallAppURLErrors,g=a("BoostedComponentBudgetEstimationStoreValidator").getValidateBudgetError,h=a("BoostedComponentBudgetEstimationStoreValidator").getValidateBudgetWarning,i=a("BoostedComponentCreativeStoreValidator").getValidateBodyErrors,j=a("BoostedComponentCreativeStoreValidator").getHeadlineErrors,k=a("BoostedComponentCreativeStoreValidator").getURLErrors,fa=a("BoostedComponentCreativeStoreValidator").getCreativeErrors,ga=a("BoostedComponentCreativeStoreValidator").getImageErrors,ha=a("BoostedComponentCreativeStoreValidator").getVideoErrors,ia=a("BoostedComponentDeliveryStoreValidator").getValidateDeliveryTypeError,ja=a("BoostedComponentLeadGenUtils").isOnFacebookLeadGenPlacement,l=a("BoostedComponentsCallToActionValidator").getValidateCallToActionError,ka=a("BoostedComponentsCallToActionValidator").getValidateWelcomeMessageError,la=a("BoostedComponentV2Utils").getKeyData,ma=a("BoostedComponentStoreState").BoostedComponentState,na=a("BoostedComponentStoreState").getKey,oa=a("createObjectBy")([].concat(a("AdsLWIValidationStoreActionHandlers")),function(p){return p.type}),m=[a("BoostedComponentAdAccountStoreV2").getDispatchToken(),a("BoostedComponentAudienceStoreV2").getDispatchToken(),a("BoostedComponentBudgetEstimationStoreV2").getDispatchToken(),a("BoostedComponentConstraintStoreV2").getDispatchToken(),a("BoostedComponentDialogUIStoreV2").getDispatchToken(),a("BoostedComponentDurationStoreV2").getDispatchToken(),a("BoostedComponentExistingAdInfoStoreV2").getDispatchToken()],n="BoostedComponentValidationStoreV2";c=babelHelpers.inherits(o,a("BoostedComponentFluxReduceStore"));d=c&&c.prototype;function o(){var p,q;for(var r=arguments.length,s=Array(r),t=0;t<r;t++)s[t]=arguments[t];return q=(p=d.constructor).call.apply(p,[this].concat(s)),this.storeName=n,q}o.prototype.getInitialState=function(){return new ma({storeName:n})};o.prototype.getDataByKey=function(p){return this.getState().getDataByKey(p)};o.prototype.reduce=function(p,q){__p&&__p();var r,s=this,t=q.action,u=la(t),v=u.appID,w=u.boostID,x=u.targetID;if(!v||v===a("BoostedComponentAppID").BOOSTED_AUTOMATED_ADS)return p;var y=na(v,x,w),z=void 0,A=void 0,B=void 0;switch(t.type){case a("AdsBoostedComponentCommonV2FetchButtonDataDataAction").actionType:case a("AdsBoostedComponentCommonV2FetchDialogDataDataAction").actionType:case a("BoostedComponentFetchActionTypesV2").FETCH_ALL_DATA:return p.setDataByKey(y,new(a("BoostedComponentValidationStoreData"))());case a("BoostedAutomatedAdsCommonActionTypesV2").CONVERSION_UPSELL_CREATE_SUCCESS:case a("AdsBoostedComponentCommonV2CreateSuccessDataAction").actionType:case a("AdsBoostedComponentCommonV2CreateSuccessWithBoostIdDataAction").actionType:case a("BoostedComponentCommonActionTypesV2").EDIT_SUCCESS:case a("AdsBoostedComponentCommonV2LoadDialogDataDataAction").actionType:case a("AdsBoostedComponentCommonV2LoadDialogChangeDataDataAction").actionType:case a("BoostedComponentFetchActionTypesV2").LOAD_ALL_DATA:case a("BoostedComponentBudgetAndDurationActionTypesV2").INPUT_CUSTOM_ADD_BUDGET:case a("BoostedComponentBudgetAndDurationActionTypesV2").INPUT_CUSTOM_BUDGET:case a("BoostedComponentBudgetAndDurationActionTypesV2").UPDATE_BUDGET:case a("BoostedComponentBudgetAndDurationActionTypesV2").UPDATE_CAMPAIGN_LENGTH_IN_DAYS:case a("BoostedComponentBudgetAndDurationActionTypesV2").UPDATE_RUN_CONTINUOUSLY:case a("AdsBoostedComponentAdAccountV2UpdateAccountDataAction").actionType:case a("AdsBoostedComponentAdAccountV2UpdateCurrencyDataAction").actionType:a("AdsDataAtom").waitFor(m);this.$BoostedComponentValidationStoreV21(v);if(t.type===a("AdsBoostedComponentCommonV2CreateSuccessWithBoostIdDataAction").actionType)p=p.copyData(y,v,x,t.oldBoostID);var C=a("BoostedComponentContextStoreV2").getDataByKey(y);A=a("BoostedComponentExistingAdInfoStoreV2").getDataByKey(y);var D=A.getIsBoosted();if(D&&!C.getCanViewerEdit())return p;var E=a("BoostedComponentAdAccountStoreV2").getState(),F=a("BoostedComponentBudgetEstimationStoreV2").getDataByKey(y),G=a("BoostedComponentDurationStoreV2").getDataByKey(y),pa=a("BoostedComponentDialogUIStoreV2").getDataByKey(y),H=a("BoostedComponentConstraintStoreV2").getDataByKey(y),I=D?A.getBudgetType():F.getBudgetType(),qa=I===a("BoostedComponentBudgetType").LIFETIME_BUDGET?H.getMaxLifetimeBudgetPerDay():H.getMaxDailyBudget(),ra=I===a("BoostedComponentBudgetType").LIFETIME_BUDGET?H.getMinLifetimeBudgetPerDay():H.getMinDailyBudget(),J=t.budget?t.type===a("BoostedComponentBudgetAndDurationActionTypesV2").INPUT_CUSTOM_ADD_BUDGET?t.budget+A.getRawTotalBudget():t.budget:F.getSelectedBudgetValue(),sa=E.getIsAccountInCheckout(),ta=C.getPlacement(),K=ja(ta),L=void 0;if(v===a("BoostedComponentAppID").BOOSTED_LEAD_GEN&&K||v===a("BoostedComponentAppID").BOOSTED_JOB_POST||v==a("BoostedComponentAppID").BOOSTED_JOB_POST_MOBILE||v==a("BoostedComponentAppID").BOOSTED_EVENT&&H.getMinLifetimeBudget()>0)L=H.getMinLifetimeBudget();var M=false,ua=false,va=H.get("suggested_min_daily_budget");if(v===a("BoostedComponentAppID").BOOSTED_POST){var N=a("BoostedComponentNewAdInfoStoreV2").getDataByKey(y),O=N.get("qe_exposures");if(O&&O.get("boosted_post_web_send_message_objective_universe")&&a("BoostedComponentQEUtils").getQE(a("BoostedComponentQEs").BOOSTED_POST_WEB_SEND_MESSAGE_OBJECTIVE).getParamBool("budget",false,true))M=N.getSelectedObjective()===a("BoostedComponentObjective").SEND_MESSAGE}var P=g(v,pa.getActiveDialogTab(),J,I,G.getCampaignLengthInDays(),E.getCurrency(),A.getRawTotalBudget(),D,qa,ra,L,A.getSpent(),sa,K,M),wa=h(J,I,G.getCampaignLengthInDays(),E.getCurrency(),va,ua);if(t.type===a("BoostedComponentBudgetAndDurationActionTypesV2").INPUT_CUSTOM_ADD_BUDGET)z={addBudgetErrors:a("immutable").List(P)};else z={budgetErrors:a("immutable").List(P),budgetWarnings:a("immutable").List(wa)};if(this.$BoostedComponentValidationStoreV22(v)&&(t.type===a("AdsBoostedComponentCommonV2LoadDialogDataDataAction").actionType||t.type===a("AdsBoostedComponentCommonV2LoadDialogChangeDataDataAction").actionType)){var xa=a("BoostedActionCreativeStoreV2").getDataByKey(y),ya=E.getSelectedAccountID();z=babelHelpers["extends"]({},z,fa(xa,v,ya).toObject())}return p.mergeDataByKey(y,z);case a("BoostedComponentBudgetAndDurationActionTypesV2").INPUT_CUSTOM_MONTHLY_BUDGET:case a("BoostedComponentBudgetAndDurationActionTypesV2").UPDATE_MONTHLY_BUDGET:a("AdsDataAtom").waitFor(m);z=p.getDataByKey(y);var za=a("BoostedComponentAdAccountStoreV2").getState(),Aa=a("BoostedComponentMonthlyBudgetEstimationStoreV2").getDataByKey(y),Q=a("BoostedComponentConstraintStoreV2").getDataByKey(y),Ba=t.monthlyBudget?t.monthlyBudget:Aa.getSelectedMonthlyBudgetValue(),Ca=e(a("BoostedComponentBudgetType").MONTHLY_BUDGET,Ba,Q.getMaxMonthlyBudget(),Q.getMinMonthlyBudget(),za.getCurrency()),Da=z.setBudgetErrors(Ca);return p.setDataByKey(y,Da);case a("BoostedComponentCreativeActionTypesV2").UPDATE_IMAGE:case a("BoostedComponentCreativeActionTypesV2").UPDATE_IMAGE_CROPS:this.$BoostedComponentValidationStoreV21(v);B=a("BoostedActionCreativeStoreV2").getDataByKey(y);var Ea=a("BoostedComponentAdAccountStoreV2").getState(),Fa=Ea.getSelectedAccountID(),Ga=ga(B,v,Fa);z={creativeImageErrors:Ga};return p.mergeDataByKey(y,z);case a("BoostedComponentCreativeActionTypesV2").UPDATE_VIDEO_LIBRARY:case a("BoostedComponentCreativeActionTypesV2").VIDEO_UPLOAD_SUCCESS:case a("BoostedComponentCreativeActionTypesV2").VIDEO_ENCODING_SUCCESS:case a("BoostedComponentCreativeActionTypesV2").UPDATE_VIDEO_THUMBNAIL:case a("BoostedComponentCreativeActionTypesV2").VIDEO_UPLOAD_CANCEL:case a("BoostedComponentCreativeActionTypesV2").VIDEO_UPLOAD_ERROR:case a("BoostedComponentCreativeActionTypesV2").VIDEO_UPLOAD_PROGRESS:case a("BoostedComponentCreativeActionTypesV2").VIDEO_UPLOAD_START:this.$BoostedComponentValidationStoreV21(v);B=a("BoostedActionCreativeStoreV2").getDataByKey(y);var Ha=ha(B,v);z={creativeVideoErrors:Ha};return p.mergeDataByKey(y,z);case a("BoostedComponentCreativeActionTypesV2").PAGE_MESSAGING_ENABLE_REQUEST_SUCCESS:case a("BoostedComponentCreativeActionTypesV2").GET_PAGE_MESSAGE_SETTING_SUCCESS:var Ia=t.isMessagingEnabled;if(!Ia){var Ja=[a("BoostedComponentStringsV2").PAGE_MESSAGES_DISABLED_ERROR];z={callToActionErrors:a("immutable").List(Ja)};return p.mergeDataByKey(y,z)}return p.setDataByKey(y,new(a("BoostedComponentValidationStoreData"))());case a("BoostedComponentCreativeActionTypesV2").PAGE_MESSAGING_ENABLE_REQUEST_FAIL:case a("BoostedComponentCreativeActionTypesV2").GET_PAGE_MESSAGE_SETTING_FAIL:var Ka=[a("BoostedComponentStringsV2").CALL_TO_ACTION_VALIDATION_FAILED];z={callToActionErrors:a("immutable").List(Ka)};return p.mergeDataByKey(y,z);case a("BoostedComponentCreativeActionTypesV2").PHONE_NUMBER_VALIDATION_FAIL:var R=t.phoneNumberLink,La=v===a("BoostedComponentAppID").BOOSTED_POST?a("BoostedPostCreativeStoreV2").getDataByKey(y):a("BoostedActionCreativeStoreV2").getDataByKey(y),S=La.getCallToAction();if(S&&S.get(a("ApiCallToActionFields").TYPE)===a("AdsCallToActionTypes").TYPES.CALL_NOW.name&&S.getIn([a("ApiCallToActionFields").VALUE,a("CallToActionValueFields").LINK])===R){z={callToActionErrors:a("immutable").List([a("BoostedComponentStringsV2").INVALID_PHONE_NUMBER_ERROR])};return p.mergeDataByKey(y,z)}return p;case a("AdsBoostedComponentLocalAwarenessV2UpdateAgeDataAction").actionType:case a("AdsBoostedComponentObjectiveV2UpdateObjectiveDataAction").actionType:case a("BoostedComponentCreativeActionTypesV2").VALIDATE_WHATSAPP_VERIFICATION_CODE_SUCCESS:case a("BoostedComponentCreativeActionTypesV2").UPDATE_CALL_TO_ACTION:var r=function(){__p&&__p();var Xa;a("AdsDataAtom").waitFor(m);s.$BoostedComponentValidationStoreV21(v);var B=void 0,W=null;if(v===a("BoostedComponentAppID").BOOSTED_POST){B=a("BoostedPostCreativeStoreV2").getDataByKey(y);W=B.getPostTypeEligibleForCTA()}else B=a("BoostedActionCreativeStoreV2").getDataByKey(y);A=a("BoostedComponentExistingAdInfoStoreV2").getDataByKey(y);var H=a("BoostedComponentConstraintStoreV2").getDataByKey(y),Ya=a("BoostedComponentAudienceStoreV2").getDataByKey(y),Za=t.callToActionUpdate,$a=t.pageID,ab=t.skipPhoneNumberValidation,U=t.type===a("BoostedComponentCreativeActionTypesV2").UPDATE_CALL_TO_ACTION?Za:B.getCallToAction();if(!U&&t.type!==a("BoostedComponentCreativeActionTypesV2").UPDATE_CALL_TO_ACTION)return{v:p};var X=l(v,U,B.getCreativeCategory(),A.getIsBoosted(),W,H.getMinCallNowAge(),Ya.getMinAge(),p.getDataByKey(y).getURLErrors().isEmpty()),Y=U.get(a("ApiCallToActionFields").TYPE);if(!ab&&!X&&U&&Y===a("AdsCallToActionTypes").TYPES.CALL_NOW.name)(function(){var R=U.getIn([a("ApiCallToActionFields").VALUE,a("CallToActionValueFields").LINK]),Z=a("PhoneNumber").getRawNumberFromTelURI(R);if(Z)a("PhoneNumber").parseNumber(Z).done(function($){if($&&$.getURI()!==R)a("AdsDataAtom").handleUpdateFromViewAction({type:a("BoostedComponentCreativeActionTypesV2").UPDATE_CALL_TO_ACTION,callToActionUpdate:U.setIn([a("ApiCallToActionFields").VALUE,a("CallToActionValueFields").LINK],$.getURI()),pageID:$a,callToActionType:Y,appID:v,targetID:x,boostID:w,skipPhoneNumberValidation:true})},function($){a("AdsDataAtom").handleUpdateFromServerResponse({type:a("BoostedComponentCreativeActionTypesV2").PHONE_NUMBER_VALIDATION_FAIL,appID:v,targetID:x,boostID:w,phoneNumberLink:R})})})();z={callToActionErrors:a("immutable").List(X)};return{v:p.mergeDataByKey(y,z)}}();if(typeof r==="object")return r.v;case a("BoostedComponentAppInstallActionTypesV2").CLEAR_SELECTED_APP:case a("BoostedComponentAppInstallActionTypesV2").SELECT_APP_STORE:case a("BoostedComponentAppInstallActionTypesV2").SELECT_APP_SUCCESS:var Ma=t.appURL,Na=f(Ma,v);z={creativeURLErrors:Na};return p.mergeDataByKey(y,z);case a("BoostedComponentCreativeActionTypesV2").UPDATE_WELCOME_MESSAGE:var Oa=t.welcomeMessageUpdate,Pa=ka(Oa);z={welcomeMessageErrors:a("immutable").List(Pa)};return p.mergeDataByKey(y,z);case a("AdsLWIUpdateCreativeBodyDataAction").actionType:case a("BoostedComponentCreativeActionTypesV2").UPDATE_VIDEO_DESCRIPTION:case a("AdsLWIUpdateCreativeLinkDataBodyDataAction").actionType:var Qa=i(t.body,v);z={creativeBodyErrors:Qa};return p.mergeDataByKey(y,z);case a("AdsLWIUpdateCreativeLinkDataHeadlineDataAction").actionType:case a("BoostedComponentCreativeActionTypesV2").UPDATE_VIDEO_HEADLINE:z={creativeHeadlineErrors:j(t.headline)};return p.mergeDataByKey(y,z);case a("BoostedComponentCreativeActionTypesV2").UPDATE_VIDEO_DATA_URL:case a("BoostedComponentCreativeActionTypesV2").UPDATE_LINK_DATA_URL:z={creativeURLErrors:k(t.url,v)};return p.mergeDataByKey(y,z);case a("BoostedComponentDeliveryActionTypesV2").UPDATE_BID_AMOUNT:case a("BoostedComponentDeliveryActionTypesV2").UPDATE_PACING_TYPE:a("AdsDataAtom").waitFor([a("BoostedComponentDeliveryStoreV2").getDispatchToken()]);var T=a("BoostedComponentDeliveryStoreV2").getDataByKey(y),Ra=ia(T.getBidAmount(),T.getPacingType());z={deliveryTypeErrors:a("immutable").List(Ra)};return p.mergeDataByKey(y,z);case a("AdsBoostedComponentAudienceV2SetAudienceDataAction").actionType:case a("AdsBoostedComponentAudienceV2CreateAudienceSubmitDataAction").actionType:case a("AdsBoostedComponentAudienceV2DeleteAudienceSubmitDataAction").actionType:case a("AdsBoostedComponentAudienceV2EditAudienceSubmitDataAction").actionType:case a("AdsBoostedComponentAudienceV2LoadAudiencesDataAction").actionType:case a("AdsBoostedComponentAudienceV2EditAudienceSuccessDataAction").actionType:if(v!==a("BoostedComponentAppID").BOOSTED_PAGE)return p;a("AdsDataAtom").waitFor(m);B=a("BoostedActionCreativeStoreV2").getDataByKey(y);var U=B.getCallToAction();if(U){var Sa=a("BoostedComponentAudienceStoreV2").getDataByKey(y),Ta=a("BoostedComponentConstraintStoreV2").getDataByKey(y),Ua=a("BoostedComponentExistingAdInfoStoreV2").getDataByKey(y),Va=l(v,U,B.getCreativeCategory(),Ua.getIsBoosted(),null,Ta.getMinCallNowAge(),Sa.getMinAge());return p.mergeDataByKey(y,{callToActionErrors:a("immutable").List(Va)})}return p;default:var V=oa[t.type];if(V){var Wa=V.genExtraData&&V.genExtraData(t,p);return V.mutate(t,p,Wa)}return p}};o.prototype.$BoostedComponentValidationStoreV21=function(p){switch(p){case a("BoostedComponentAppID").BOOSTED_APP_INSTALL:case a("BoostedComponentAppID").BOOSTED_PAGELIKE:case a("BoostedComponentAppID").BOOSTED_WEBSITE:case a("BoostedComponentAppID").BOOSTED_LOCAL_AWARENESS:case a("BoostedComponentAppID").BOOSTED_CCTA:case a("BoostedComponentAppID").BOOSTED_PAGE:case a("BoostedComponentAppID").BOOSTED_EVENT:a("AdsDataAtom").waitFor([a("BoostedActionCreativeStoreV2").getDispatchToken()]);break;case a("BoostedComponentAppID").BOOSTED_POST:a("AdsDataAtom").waitFor([a("BoostedPostCreativeStoreV2").getDispatchToken()]);break;default:}};o.prototype.$BoostedComponentValidationStoreV22=function(p){return p===a("BoostedComponentAppID").BOOSTED_PAGELIKE||p===a("BoostedComponentAppID").BOOSTED_WEBSITE||p===a("BoostedComponentAppID").BOOSTED_LOCAL_AWARENESS||p===a("BoostedComponentAppID").BOOSTED_CCTA||p===a("BoostedComponentAppID").BOOSTED_PAGE||p===a("BoostedComponentAppID").BOOSTED_EVENT||p===a("BoostedComponentAppID").BOOSTED_APP_INSTALL};b.exports=new o(a("AdsDataAtom"))}),null);
__d("BoostedComponentCreativeHeadlineEditorContainer.react",["AdsFluxContainer","AdsLWIInstanceUtils","BoostedActionCreativeStoreV2","BoostedComponentCreativeActionsV2","BoostedComponentCreativeCategory","BoostedComponentCreativeHeadlineEditorV2.react","BoostedComponentErrorBoundaryContainer.react","BoostedComponentValidationStoreV2","React","adsLWICurrentInstanceDataSelector"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("AdsLWIInstanceUtils").getKeyFromInstanceData,k=c("BoostedComponentCreativeActionsV2").updateLinkDataHeadline,l=c("BoostedComponentCreativeActionsV2").updateVideoHeadline;h=babelHelpers.inherits(m,c("React").Component);i=h&&h.prototype;function m(){var n,o;for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=i.constructor).call.apply(n,[this].concat(q)),this.state={dataLoaded:false,errors:null,headline:null},this.$BoostedComponentCreativeHeadlineEditorContainer1=function(s){var t=this.props.creativeCategory;if(t===c("BoostedComponentCreativeCategory").VIDEO)l(s,this.props.appID,this.props.targetID,this.props.boostID);else k(s,this.props.appID,this.props.targetID,this.props.boostID)}.bind(this),o}m.getStores=function(){return[].concat(c("adsLWICurrentInstanceDataSelector").getStores(),[c("BoostedActionCreativeStoreV2"),c("BoostedComponentValidationStoreV2")])};m.calculateState=function(n,o){var p=o.appID,q=o.targetID,r=o.boostID,s=j(p,q,r),t=c("BoostedActionCreativeStoreV2").getDataByKey(s),u=t.get("dataLoaded");if(!u)return babelHelpers["extends"]({},n,{dataLoaded:u});var v=c("BoostedComponentValidationStoreV2").getDataByKey(s);return{dataLoaded:u,errors:v.getHeadlineErrors(),headline:t.getHeadline()}};m.prototype.render=function(){var n=this.state,o=n.dataLoaded,p=n.errors,q=n.headline;if(!o)return null;return c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentCreativeHeadlineEditorV2"},c("React").createElement(c("BoostedComponentCreativeHeadlineEditorV2.react"),{errors:p,headline:q,onHeadlineChange:this.$BoostedComponentCreativeHeadlineEditorContainer1}))};f.exports=c("AdsFluxContainer").create(m,{withProps:true,name:f.id})}),null);
__d("BoostedComponentCreativeMultiImageEditorContainer.react",["invariant","AdsFluxContainer","AdsImageStore","AdsLWIInstanceUtils","ApiObjectStorySpecLinkChildFields","ApiObjectStorySpecLinkFields","BoostedActionCreativeStoreV2","BoostedComponentAdAccountStoreV2","BoostedComponentContainerUtils","BoostedComponentContextStoreV2","BoostedComponentCreativeActionsV2","BoostedComponentCreativeMultiImageEditorV2.react","BoostedComponentErrorBoundaryContainer.react","BoostedComponentImageCreativeUtils","BoostedComponentMultiAdsConstants","immutable","React","adsLWICurrentInstanceDataSelector"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("AdsLWIInstanceUtils").getKeyFromInstanceData,l=c("BoostedComponentContainerUtils").isDataLoaded,m=c("BoostedComponentCreativeActionsV2").onChildAttachmentAdd,n=c("BoostedComponentCreativeActionsV2").onChildAttachmentIndexSelected,o=c("BoostedComponentCreativeActionsV2").onChildAttachmentRemove,p=c("BoostedComponentCreativeActionsV2").onImageDialogShown,q=c("BoostedComponentCreativeActionsV2").updateImage,r=c("BoostedComponentCreativeActionsV2").updateImageCrops,s=c("BoostedComponentCreativeActionsV2").updateLinkDataHeadline,t=c("BoostedComponentImageCreativeUtils").BoostedComponentImageTypeEnum,u=c("BoostedComponentImageCreativeUtils").buildObjectStorySpecLinkDataSpec,v=c("BoostedComponentImageCreativeUtils").getImageTypeForLogging;i=babelHelpers.inherits(w,c("React").Component);j=i&&i.prototype;function w(){__p&&__p();var x,y;for(var z=arguments.length,A=Array(z),B=0;B<z;B++)A[B]=arguments[B];return y=(x=j.constructor).call.apply(x,[this].concat(A)),this.state={accessToken:"",accountID:"",clientID:"",dataLoaded:false,defaultChildAttachment:c("immutable").Map(),defaultStockSearchText:"",image:null,imageCrops:null,imageHash:null,imageUrl:null,linkURL:null,headline:null,message:null,objectStorySpecLinkData:c("immutable").Map(),products:c("immutable").List(),selectedAttachmentIndex:0,supportCarouselInLA:false},this.$BoostedComponentCreativeMultiImageEditorContainer1=function(){var C=this.props,D=C.pageID,E=C.appID,F=C.targetID,G=C.boostID;p(D,E,F,G)}.bind(this),this.$BoostedComponentCreativeMultiImageEditorContainer2=function(C){var D=this.props,E=D.pageID,F=D.appID,G=D.targetID,H=D.boostID;n(C,E,F,G,H)}.bind(this),this.$BoostedComponentCreativeMultiImageEditorContainer3=function(){var C=this.props,D=C.appID,E=C.targetID,F=C.boostID,G=this.state,H=G.defaultChildAttachment,I=G.objectStorySpecLinkData,J=G.products,K=I||c("immutable").Map(),L=J.push(H);m(K.set(c("ApiObjectStorySpecLinkFields").CHILD_ATTACHMENTS,L),L.size-1,D,E,F)}.bind(this),this.$BoostedComponentCreativeMultiImageEditorContainer4=function(){__p&&__p();var C,D=this,E=this.props,F=E.appID,G=E.targetID,H=E.boostID,I=this.state,J=I.objectStorySpecLinkData,K=I.products,L=I.selectedAttachmentIndex,M=J||c("immutable").Map();if(K.size<=1)return;var N=K.remove(L);if(N.size===1)(function(){var O=D.state,P=O.imageCrops,Q=O.imageHash,R=O.imageUrl,S=O.linkURL,T=O.message,U=O.headline,V=N.get(0),W=V.get(c("ApiObjectStorySpecLinkChildFields").NAME)?V.get(c("ApiObjectStorySpecLinkChildFields").NAME):U,X=V.get(c("ApiObjectStorySpecLinkChildFields").PICTURE)?V.get(c("ApiObjectStorySpecLinkChildFields").PICTURE):R,Y=V.get(c("ApiObjectStorySpecLinkChildFields").IMAGE_HASH)?V.get(c("ApiObjectStorySpecLinkChildFields").IMAGE_HASH):Q,Z=V.get(c("ApiObjectStorySpecLinkChildFields").IMAGE_CROPS)?V.get(c("ApiObjectStorySpecLinkChildFields").IMAGE_CROPS):P;M=M.withMutations(function($){return $.merge(u(S,T,W,X,Y,Z)).set(c("ApiObjectStorySpecLinkFields").CHILD_ATTACHMENTS,null)["delete"](c("ApiObjectStorySpecLinkFields").MULTI_SHARE_END_CARD)["delete"](c("ApiObjectStorySpecLinkFields").MULTI_SHARE_OPTIMIZED)})})();else M=M.set(c("ApiObjectStorySpecLinkFields").CHILD_ATTACHMENTS,N);o(M,N.size-1,F,G,H)}.bind(this),this.$BoostedComponentCreativeMultiImageEditorContainer5=function(C){s(C,this.props.appID,this.props.targetID,this.props.boostID)}.bind(this),this.$BoostedComponentCreativeMultiImageEditorContainer6=function(C){C.length!==0||h(0);var D=C[0],E=this.state.accountID,F=this.props,G=F.appID,H=F.targetID,I=F.boostID;q(D,v(D),G,H,I,E)}.bind(this),this.$BoostedComponentCreativeMultiImageEditorContainer7=function(C){var D=this.state.accountID,E=this.props,F=E.appID,G=E.targetID,H=E.boostID;q(C,t.UPLOAD,F,G,H,D)}.bind(this),this.$BoostedComponentCreativeMultiImageEditorContainer8=function(C,D){var E,F=this.props,G=F.pageID,H=F.appID,I=F.targetID,J=F.boostID,K=c("immutable").fromJS((E={},E[C]=D,E));r(K,G,H,I,J)}.bind(this),y}w.getStores=function(){return[].concat(c("adsLWICurrentInstanceDataSelector").getStores(),[c("AdsImageStore"),c("BoostedActionCreativeStoreV2"),c("BoostedComponentAdAccountStoreV2"),c("BoostedComponentContextStoreV2")])};w.calculateState=function(x,y){var z=y.appID,A=y.targetID,B=y.boostID,C=k(z,A,B),D=c("BoostedComponentAdAccountStoreV2").getState(),E=c("BoostedComponentContextStoreV2").getDataByKey(C),F=c("BoostedActionCreativeStoreV2").getDataByKey(C),G=l([D,E,F]);if(!G)return babelHelpers["extends"]({},x,{dataLoaded:G});var H=D.getSelectedAccountID();return{accessToken:E.get("access_token"),accountID:H,clientID:E.getClientID(),dataLoaded:G,defaultChildAttachment:F.getDefaultChildAttachment(),defaultStockSearchText:F.getPageKeywords()?F.getPageKeywords()[0]:"",image:F.getImageLegacy(H),imageCrops:F.getImageCrops(),imageHash:F.getImageHash(),imageUrl:F.getImageURL(),linkURL:F.getLinkURL(),headline:F.getHeadline(),message:F.getMessage(),objectStorySpecLinkData:F.getObjectStorySpecLinkData(),products:F.getProductsSpec(),selectedAttachmentIndex:F.getSelectedAttachmentIndex(),supportCarouselInLA:!!F.getIsLAwithCarousalSupport()}};w.prototype.render=function(){var x=this.state.dataLoaded;if(!x)return null;var y=this.state,z=y.accessToken,A=y.accountID,B=y.clientID,C=y.defaultStockSearchText,D=y.image,E=y.imageHash,F=y.imageUrl,G=y.linkURL,H=y.headline,I=y.products,J=y.selectedAttachmentIndex,K=y.supportCarouselInLA;return c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentCreativeMultiImageEditorV2"},c("React").createElement(c("BoostedComponentCreativeMultiImageEditorV2.react"),{accessToken:z,accountID:A,appID:this.props.appID,childAttachments:I,clientID:B,defaultStockSearchText:C,headline:H,hideImageUploader:this.props.hideImageUploader,image:D,imageHash:E,imageUrl:F,linkURL:G,maxProducts:this.props.maxProducts?this.props.maxProducts:c("BoostedComponentMultiAdsConstants").MAX_PRODUCT_NUM,minProducts:this.props.minProducts?this.props.minProducts:c("BoostedComponentMultiAdsConstants").MIN_PRODUCT_NUM,pageID:this.props.pageID,selectedAttachmentIndex:J,supportCarouselInLA:K,useMediaPanelRedesign:this.props.useMediaPanelRedesign,onChildAttachmentAdd:this.$BoostedComponentCreativeMultiImageEditorContainer3,onChildAttachmentHeadlineChange:this.$BoostedComponentCreativeMultiImageEditorContainer5,onChildAttachmentImageCropClick:this.$BoostedComponentCreativeMultiImageEditorContainer8,onChildAttachmentImageUploadClick:this.$BoostedComponentCreativeMultiImageEditorContainer7,onChildAttachmentImagesSelected:this.$BoostedComponentCreativeMultiImageEditorContainer6,onChildAttachmentRemove:this.$BoostedComponentCreativeMultiImageEditorContainer4,onChildAttachmentSelected:this.$BoostedComponentCreativeMultiImageEditorContainer2,onDialogShown:this.$BoostedComponentCreativeMultiImageEditorContainer1}))};f.exports=c("AdsFluxContainer").create(w,{withProps:true,name:f.id})}),null);
__d("BoostedComponentSlideshowUploaderV2",["AdsSlideshowUploader","BoostedComponentCreativeActionsV2","immutable"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("BoostedComponentCreativeActionsV2").hanldeVideoEncodingSuccess,k=c("BoostedComponentCreativeActionsV2").hanldeVideoEncodingFailure;h=babelHelpers.inherits(l,c("AdsSlideshowUploader"));i=h&&h.prototype;function l(m,n,o,p,q){i.constructor.call(this);this.$BoostedComponentSlideshowUploaderV24=n;this.$BoostedComponentSlideshowUploaderV22=o;this.$BoostedComponentSlideshowUploaderV25=p;this.$BoostedComponentSlideshowUploaderV26=q;this.$BoostedComponentSlideshowUploaderV21=m}l.prototype.abort=function(){this.$BoostedComponentSlideshowUploaderV23=true};l.prototype.isAborted=function(){return!!this.$BoostedComponentSlideshowUploaderV23};l.prototype.__handleEncodingSuccess=function(m,n){if(this.$BoostedComponentSlideshowUploaderV23)return;j(this.$BoostedComponentSlideshowUploaderV21,c("immutable").fromJS(m),this.$BoostedComponentSlideshowUploaderV24,this.$BoostedComponentSlideshowUploaderV22,this.$BoostedComponentSlideshowUploaderV25,this.$BoostedComponentSlideshowUploaderV26)};l.prototype.__handleUploadFailure=function(m){if(this.$BoostedComponentSlideshowUploaderV23)return;k(m,this.$BoostedComponentSlideshowUploaderV24,this.$BoostedComponentSlideshowUploaderV22,this.$BoostedComponentSlideshowUploaderV25,this.$BoostedComponentSlideshowUploaderV26)};f.exports=l}),null);
__d("BoostedComponentVideoSelector.react",["cx","fbt","invariant","ix","AdsCreateVideoButtonContainer.react","AdsFakeProgressBar.react","AdsSlideshowActions","AdsVideoPicker.react","BoostedComponentStrings","BoostedComponentVideoSource","BUIAdoptionCloseButton.react","Image.react","Layout.react","LoadObject","SlideshowConstants","SlideshowEntrypoint","SUIBusinessTheme","SUIText.react","XUIButton.react","React"],(function a(b,c,d,e,f,g,h,i,j,k){"use strict";__p&&__p();var l,m,n=c("Layout.react").Column,o=c("Layout.react").FillColumn;l=babelHelpers.inherits(p,c("React").Component);m=l&&l.prototype;function p(){__p&&__p();var q,r;for(var s=arguments.length,t=Array(s),u=0;u<s;u++)t[u]=arguments[u];return r=(q=m.constructor).call.apply(q,[this].concat(t)),this.$BoostedComponentVideoSelector5=function(v){this.props.onVideoPickerConfirm(v[0])}.bind(this),this.$BoostedComponentVideoSelector3=function(){return c("React").createElement("div",{className:"_5it1"},c("React").createElement("div",{className:"_2pid _2pir"},c("React").createElement(c("SUIText.react"),{shade:"light",size:"meta1",theme:c("SUIBusinessTheme")},i._("We're creating your slideshow. This can take between 30 seconds and 2 minutes."))),c("React").createElement(c("Layout.react"),{className:"_3-8y"},c("React").createElement(o,null,c("React").createElement(c("AdsFakeProgressBar.react"),{className:"_3-8w",expectedTime:3})),c("React").createElement(n,null,c("React").createElement(c("BUIAdoptionCloseButton.react"),{className_DEPRECATED:"_3-99",onClick:this.$BoostedComponentVideoSelector6}))))}.bind(this),this.$BoostedComponentVideoSelector6=function(){c("AdsSlideshowActions").cancelSlideshowCreation();this.props.slideshowUploader.abort()}.bind(this),this.$BoostedComponentVideoSelector7=function(){c("AdsSlideshowActions").reset();this.props.onRemove()}.bind(this),this.$BoostedComponentVideoSelector1=function(){this.props.selectedVideoName||j(0);var v=null;switch(this.props.videoSource){case c("BoostedComponentVideoSource").UPLOAD:v=c("BoostedComponentStrings").getVideoUploadSuccessText(this.props.selectedVideoName);break;case c("BoostedComponentVideoSource").BROWSE_LIBRARY:case c("BoostedComponentVideoSource").PRELOAD_VIDEO:v=c("BoostedComponentStrings").getVideoSelectedText(this.props.selectedVideoName);break;default:}return c("React").createElement("div",{className:"_2i41"},c("React").createElement("div",{className:"_2i42"},c("React").createElement(c("Image.react"),{className:"_3vfj",src:k("76809")}),v),c("React").createElement(c("BUIAdoptionCloseButton.react"),{className_DEPRECATED:"_58zx",label:i._("Remove video"),onClick:this.props.onRemove}))}.bind(this),r}p.prototype.render=function(){if(this.props.selectedVideoName)return this.$BoostedComponentVideoSelector1();else if(this.props.isSlideshowSelected)return this.$BoostedComponentVideoSelector2();else if(this.props.isSlideshowProcessing)return this.$BoostedComponentVideoSelector3();return this.$BoostedComponentVideoSelector4()};p.prototype.$BoostedComponentVideoSelector4=function(){var q=c("React").createElement(c("AdsCreateVideoButtonContainer.react"),{accountID:this.props.accountID,className:"_3-9a",entrypoint:c("SlideshowEntrypoint").BOOSTED_COMPONENT,maxSelectedImages:c("SlideshowConstants").max_photo_num,pageID:this.props.pageID,size:"xlarge",slideshowUploader:this.props.slideshowUploader,type:"button"});return c("React").createElement("div",null,c("React").createElement(c("AdsVideoPicker.react"),{hasHelpTray:false,hasRemoteUpload:false,uploadProgress:this.props.uploadProgressValue,uploadStatus:this.props.uploadStatus,uploadTitle:this.props.selectedVideoName,videoList:c("LoadObject").withValue(this.props.videoLibrary),onClose:this.props.onCancelUpload,onDialogConfirm:this.$BoostedComponentVideoSelector5,onDismissError:this.props.onCancelUpload,onImportConfirm:this.props.onVideoImportConfirm,onUploadCancel:this.props.onCancelUpload,onVideoFileChange:this.props.onVideoUploadClick},c("React").createElement(c("XUIButton.react"),{label:i._("Select Video"),size:"xlarge"})),!this.props.hideSlideshowButton?q:null)};p.prototype.$BoostedComponentVideoSelector2=function(){return c("React").createElement("div",null,c("React").createElement(c("AdsCreateVideoButtonContainer.react"),{accountID:this.props.accountID,buttonName:i._("Edit Slideshow"),className:"_3-9a",entrypoint:c("SlideshowEntrypoint").BOOSTED_COMPONENT,maxSelectedImages:c("SlideshowConstants").max_photo_num,pageID:this.props.pageID,size:"xlarge",slideshowUploader:this.props.slideshowUploader,type:"button",onCloseDialog:c("AdsSlideshowActions").closeEditSlideshowDialog,onShowDialog:c("AdsSlideshowActions").showEditSlideshowDialog}),c("React").createElement(c("XUIButton.react"),{className:"_3-9a",label:i._("Delete Slideshow"),size:"xlarge",onClick:this.$BoostedComponentVideoSelector7}))};f.exports=p}),null);
__d("AdsArrowedCarousel.react",["AdsArrowedContainer.react","AdsCarousel.react","React"],(function a(b,c,d,e,f,g){__p&&__p();var h,i;h=babelHelpers.inherits(j,c("React").Component);i=h&&h.prototype;function j(){__p&&__p();var k,l;"use strict";for(var m=arguments.length,n=Array(m),o=0;o<m;o++)n[o]=arguments[o];return l=(k=i.constructor).call.apply(k,[this].concat(n)),this.state={index:0,canIncrementIndex:false,canDecrementIndex:false},this.$AdsArrowedCarousel2=function(p){var q=this.state.index+p<this.$AdsArrowedCarousel1(),r=this.state.index>0;if(q!==this.state.canIncrementIndex||r!==this.state.canDecrementIndex)this.setState({canIncrementIndex:q,canDecrementIndex:r})}.bind(this),this.$AdsArrowedCarousel4=function(){var p=this.state.index+1;this.props.onIndexChange&&this.props.onIndexChange(p);this.setState({index:p})}.bind(this),this.$AdsArrowedCarousel3=function(){var p=this.state.index-1;this.props.onIndexChange&&this.props.onIndexChange(p);this.setState({index:p})}.bind(this),l}j.prototype.$AdsArrowedCarousel1=function(){"use strict";var k=0;c("React").Children.forEach(this.props.children,function(l){return k++});return k};j.prototype.render=function(){"use strict";var k=this.props,l=k.children,m=k.onIndexChange,n=babelHelpers.objectWithoutProperties(k,["children","onIndexChange"]);return c("React").createElement(c("AdsArrowedContainer.react"),babelHelpers["extends"]({},n,{onDecrement:this.state.canDecrementIndex?this.$AdsArrowedCarousel3:null,onIncrement:this.state.canIncrementIndex?this.$AdsArrowedCarousel4:null}),c("React").createElement(c("AdsCarousel.react"),{index:this.state.index,onUpdated:this.$AdsArrowedCarousel2},l))};f.exports=j}),null);
__d("AdsUiImage.react",["Image.react","React"],(function a(b,c,d,e,f,g){__p&&__p();var h,i,j=c("React").PropTypes;h=babelHelpers.inherits(k,c("React").Component);i=h&&h.prototype;k.prototype.render=function(){"use strict";var l=this.props.visibleWidth||this.props.realWidth,m=this.props.visibleHeight||this.props.realHeight,n=this.props.fixedHeight/m,o={height:this.props.fixedHeight,overflow:"hidden",width:l*n};return c("React").createElement("div",babelHelpers["extends"]({},this.props,{style:babelHelpers["extends"]({},this.props.style||{},o)}),c("React").createElement(c("Image.react"),{height:this.props.realHeight*n,src:this.props.src,width:this.props.realWidth*n}))};function k(){"use strict";h.apply(this,arguments)}k.propTypes={fixedHeight:j.number.isRequired,realHeight:j.number.isRequired,realWidth:j.number.isRequired,src:j.string,visibleHeight:j.number,visibleWidth:j.number};f.exports=k}),null);
__d("BoostedComponentVideoThumbnails.react",["cx","AdsArrowedCarousel.react","AdsSelected.react","AdsUiImage.react","BoostedComponentImageLibrarySelector.react","BoostedComponentStrings","CenteredContainer.react","Layout.react","Link.react","React","curry","joinClasses"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("Layout.react").Column,l=c("Layout.react").FillColumn,m=c("React").PropTypes;i=babelHelpers.inherits(n,c("React").Component);j=i&&i.prototype;function n(){var o,p;for(var q=arguments.length,r=Array(q),s=0;s<q;s++)r[s]=arguments[s];return p=(o=j.constructor).call.apply(o,[this].concat(r)),this.$BoostedComponentVideoThumbnails1=function(t,u){var v=false;if(this.props.selectedThumbnail)v=t.id===this.props.selectedThumbnail.id;return c("React").createElement(c("AdsSelected.react"),{isSelected:v,key:"thumbnail_"+u},c("React").createElement(c("Link.react"),{onClick:c("curry")(this.props.onThumbnailClick,[t])},c("React").createElement(c("AdsUiImage.react"),{fixedHeight:80,key:u,realHeight:t.height,realWidth:t.width,src:t.uri})))}.bind(this),p}n.prototype.render=function(){var o=c("React").createElement(c("Link.react"),null,c("React").createElement(c("AdsSelected.react"),{isSelected:false},c("React").createElement(c("CenteredContainer.react"),{className:"_2pnt",vertical:true},c("React").createElement(c("AdsUiImage.react"),{fixedHeight:24,realHeight:24,realWidth:24,src:"/images/ads/mediapanel/thumbnailPicker-plus.png"}),c("React").createElement("div",{className:"_1lk6"},c("BoostedComponentStrings").CREATIVE_VIDEO_CUSTOM_THUMBNAIL))));return c("React").createElement("div",{className:"_576r"},c("React").createElement(k,{className:"_3x-j"},c("React").createElement(c("BoostedComponentImageLibrarySelector.react"),{accountID:this.props.accountID,className:c("joinClasses")("_3-99","_3-90"),clickableTrigger:o,onImagesSelected:this.props.onThumbnailClick,tooltipText:c("BoostedComponentStrings").IMAGE_SELECTOR_TOOLTIP_TEXT})),c("React").createElement(c("Layout.react"),null,c("React").createElement(l,null,c("React").createElement(c("AdsArrowedCarousel.react"),{className:"_3-96"},this.props.selectedVideoThumbnails.map(this.$BoostedComponentVideoThumbnails1)))))};n.propTypes={selectedVideoThumbnails:m.array.isRequired,selectedThumbnail:m.object,onThumbnailClick:m.func.isRequired,accountID:m.string.isRequired};f.exports=n}),null);
__d("BoostedComponentVideoPanel.react",["cx","AdsVideoUploadStatus","BoostedComponentStrings","BoostedComponentVideoSelector.react","BoostedComponentVideoThumbnails.react","React"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j;i=babelHelpers.inherits(k,c("React").Component);j=i&&i.prototype;k.prototype.render=function(){var l=null,m=this.props.uploadStatus===c("AdsVideoUploadStatus").NONE&&(this.props.selectedVideoName||this.props.selectedVideoThumbnails||this.props.isSlideshowSelected),n="_40rp"+(!m?" _40rq":"");if(m)l=c("React").createElement(c("BoostedComponentVideoThumbnails.react"),{accountID:this.props.accountID,selectedThumbnail:this.props.selectedThumbnail,selectedVideoThumbnails:this.props.selectedVideoThumbnails,switchColumn:this.props.switchColumn,onThumbnailClick:this.props.onThumbnailClick});return c("React").createElement("div",null,c("React").createElement("div",{className:"_3-8y"},c("React").createElement("div",{className:"_40rp"},c("BoostedComponentStrings").CREATIVE_VIDEO_STEP_ONE),c("React").createElement(c("BoostedComponentVideoSelector.react"),{accountID:this.props.accountID,hideSlideshowButton:this.props.hideSlideshowButton,isSlideshowProcessing:this.props.isSlideshowProcessing,isSlideshowSelected:this.props.isSlideshowSelected,pageID:this.props.pageID,selectedVideoName:this.props.selectedVideoName,slideshowUploader:this.props.slideshowUploader,uploadProgressValue:this.props.uploadProgressValue,uploadStatus:this.props.uploadStatus,userID:this.props.userID,videoLibrary:this.props.videoLibrary,videoSource:this.props.videoSource,onCancelUpload:this.props.onCancelUpload,onRemove:this.props.onRemove,onVideoImportConfirm:this.props.onVideoImportConfirm,onVideoPickerConfirm:this.props.onVideoPickerConfirm,onVideoUploadClick:this.props.onVideoUploadClick})),c("React").createElement("div",{className:"_3-8y"},c("React").createElement("div",{className:n},c("BoostedComponentStrings").CREATIVE_VIDEO_STEP_TWO),l))};function k(){i.apply(this,arguments)}f.exports=k}),null);
__d("BoostedComponentVideoPanelV2.react",["BoostedComponentSlideshowUploaderV2","BoostedComponentVideoCreativeUtils","BoostedComponentVideoPanel.react","React"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("BoostedComponentVideoCreativeUtils").getVideoLibrary;h=babelHelpers.inherits(k,c("React").Component);i=h&&h.prototype;function k(l){i.constructor.call(this,l);var m=this.props,n=m.accountID,o=m.pageID,p=m.appID,q=m.targetID,r=m.boostID;this.$BoostedComponentVideoPanelV21=new(c("BoostedComponentSlideshowUploaderV2"))(n,o,p,q,r);j(n,o,p,q,r)}k.prototype.componentWillReceiveProps=function(l){var m=l.accountID,n=l.pageID,o=l.appID,p=l.targetID,q=l.boostID;if(!this.$BoostedComponentVideoPanelV21||this.$BoostedComponentVideoPanelV21.isAborted())this.$BoostedComponentVideoPanelV21=new(c("BoostedComponentSlideshowUploaderV2"))(m,n,o,p,q);var r=this.props.accountID;if(r!==m)j(m,n,o,p,q)};k.prototype.render=function(){var l=this.props,m=l.accountID,n=l.currentVideoThumbnail,o=l.hideSlideshowButton,p=l.isSlideshowProcessing,q=l.isSlideshowSelected,r=l.pageID,s=l.userID,t=l.videoLibrary,u=l.videoName,v=l.videoSource,w=l.videoThumbnails,x=l.videoUploadProgress,y=l.videoUploadStatus,z=l.onCancelVideoUpload,A=l.onClearVideoCreative,B=l.onThumbnailClick,C=l.onVideoImportConfirm,D=l.onVideoPickerConfirm,E=l.onVideoUploadClick;if(!this.$BoostedComponentVideoPanelV21)return null;return c("React").createElement(c("BoostedComponentVideoPanel.react"),{accountID:m,hideSlideshowButton:o,isSlideshowProcessing:p,isSlideshowSelected:q,pageID:r,selectedThumbnail:n&&n.toJS(),selectedVideoName:u,selectedVideoThumbnails:w&&w.toJS(),slideshowUploader:this.$BoostedComponentVideoPanelV21,uploadProgressValue:x,uploadStatus:y,userID:s,videoLibrary:t&&t.toJS(),videoSource:v,onCancelUpload:z,onRemove:A,onThumbnailClick:B,onVideoImportConfirm:C,onVideoPickerConfirm:D,onVideoUploadClick:E})};f.exports=k}),null);
__d("BoostedComponentCreativeVideoEditorContainer.react",["invariant","AdsFluxContainer","AdsImageLegacy","AdsLWIInstanceUtils","AdsVideoUploadStatus","BoostedActionCreativeStoreV2","BoostedComponentAdAccountStoreV2","BoostedComponentContainerUtils","BoostedComponentContextStoreV2","BoostedComponentCreativeActionsV2","BoostedComponentErrorBoundaryContainer.react","BoostedComponentVideoPanelV2.react","BoostedComponentVideoSource","immutable","React","adsLWICurrentInstanceDataSelector"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("AdsLWIInstanceUtils").getKeyFromInstanceData,l=c("BoostedComponentContainerUtils").isDataLoaded,m=c("BoostedComponentCreativeActionsV2").hanldeVideoEncodingSuccess,n=c("BoostedComponentCreativeActionsV2").startVideoImport,o=c("BoostedComponentCreativeActionsV2").onClearVideoCreative,p=c("BoostedComponentCreativeActionsV2").onCancelVideoUpload,q=c("BoostedComponentCreativeActionsV2").updateVideoThumbnail;i=babelHelpers.inherits(r,c("React").Component);j=i&&i.prototype;function r(){__p&&__p();var s,t;for(var u=arguments.length,v=Array(u),w=0;w<u;w++)v[w]=arguments[w];return t=(s=j.constructor).call.apply(s,[this].concat(v)),this.state={accessToken:"",accountID:"",currentVideoThumbnail:null,dataLoaded:false,isSlideshowProcessing:false,isSlideshowSelected:false,userID:"",videoLibrary:c("immutable").List(),videoLibraryByID:c("immutable").Map(),videoName:"",videoSource:null,videoThumbnails:c("immutable").List(),videoUploadProgress:0,videoUploadStatus:c("AdsVideoUploadStatus").NONE},this.$BoostedComponentCreativeVideoEditorContainer1=function(){var x=this.props,y=x.pageID,z=x.appID,A=x.targetID,B=x.boostID;p(y,z,A,B)}.bind(this),this.$BoostedComponentCreativeVideoEditorContainer2=function(){var x=this.props,y=x.pageID,z=x.appID,A=x.targetID,B=x.boostID;o(y,z,A,B)}.bind(this),this.$BoostedComponentCreativeVideoEditorContainer3=function(x){x.length!==0||h(0);var y=x[0];if(y instanceof c("AdsImageLegacy"))y={width:y.getWidth(),height:y.getHeight(),uri:y.getUrl()};var z=this.props,A=z.pageID,B=z.appID,C=z.targetID,D=z.boostID;q(c("immutable").fromJS(y),A,B,C,D)}.bind(this),this.$BoostedComponentCreativeVideoEditorContainer4=function(x,y){var z=this.props,A=z.pageID,B=z.appID,C=z.targetID,D=z.boostID,E=this.state,F=E.accessToken,G=E.accountID;n(x,y,null,F,G,A,B,C,D)}.bind(this),this.$BoostedComponentCreativeVideoEditorContainer5=function(x){var y=this.state,z=y.accountID,A=y.videoLibraryByID,B=A.get(x).set("source",c("BoostedComponentVideoSource").BROWSE_LIBRARY);if(B){var C=this.props,D=C.pageID,E=C.appID,F=C.targetID,G=C.boostID;m(z,B,D,E,F,G)}}.bind(this),this.$BoostedComponentCreativeVideoEditorContainer6=function(x){if(x){var y=this.props,z=y.pageID,A=y.appID,B=y.targetID,C=y.boostID,D=this.state,E=D.accessToken,F=D.accountID;n(null,null,x,E,F,z,A,B,C)}}.bind(this),t}r.getStores=function(){return[].concat(c("adsLWICurrentInstanceDataSelector").getStores(),[c("BoostedActionCreativeStoreV2"),c("BoostedComponentAdAccountStoreV2"),c("BoostedComponentContextStoreV2")])};r.calculateState=function(s,t){var u=t.appID,v=t.targetID,w=t.boostID,x=k(u,v,w),y=c("BoostedComponentAdAccountStoreV2").getState(),z=c("BoostedComponentContextStoreV2").getDataByKey(x),A=c("BoostedActionCreativeStoreV2").getDataByKey(x),B=l([y,z,A]);if(!B)return babelHelpers["extends"]({},s,{dataLoaded:B});return{accessToken:z.getAccessToken(),accountID:y.getSelectedAccountID(),currentVideoThumbnail:A.getCurrentVideoThumbnail(),dataLoaded:B,isSlideshowProcessing:A.getIsSlideshowProcessing(),isSlideshowSelected:A.getIsSlideshowSelected(),userID:z.getUserID(),videoLibrary:A.getVideoLibrary(),videoLibraryByID:A.getVideoLibraryByID(),videoName:A.getVideoName()||A.getVideoID(),videoSource:A.getVideoSource(),videoThumbnails:A.getVideoThumbnails(),videoUploadProgress:A.getVideoUploadProgress(),videoUploadStatus:A.getVideoUploadStatus()}};r.prototype.render=function(){var s=this.state.dataLoaded;if(!s)return null;var t=this.state,u=t.accountID,v=t.currentVideoThumbnail,w=t.isSlideshowProcessing,x=t.isSlideshowSelected,y=t.userID,z=t.videoLibrary,A=t.videoLibraryByID,B=t.videoName,C=t.videoSource,D=t.videoThumbnails,E=t.videoUploadProgress,F=t.videoUploadStatus,G=this.props,H=G.appID,I=G.boostID,J=G.pageID,K=G.targetID;return c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentVideoPanelV2"},c("React").createElement(c("BoostedComponentVideoPanelV2.react"),{accountID:u,appID:H,boostID:I,currentVideoThumbnail:v,isSlideshowProcessing:w,isSlideshowSelected:x,pageID:J,targetID:K,userID:y,videoLibrary:z,videoLibraryByID:A,videoName:B,videoSource:C,videoThumbnails:D,videoUploadProgress:E,videoUploadStatus:F,onCancelVideoUpload:this.$BoostedComponentCreativeVideoEditorContainer1,onClearVideoCreative:this.$BoostedComponentCreativeVideoEditorContainer2,onThumbnailClick:this.$BoostedComponentCreativeVideoEditorContainer3,onVideoImportConfirm:this.$BoostedComponentCreativeVideoEditorContainer4,onVideoPickerConfirm:this.$BoostedComponentCreativeVideoEditorContainer5,onVideoUploadClick:this.$BoostedComponentCreativeVideoEditorContainer6}))};f.exports=c("AdsFluxContainer").create(r,{withProps:true,name:f.id})}),null);
__d("BoostedComponentMultiImageAndVideoDualCreative.react",["BoostedComponentCreativeCategory","BoostedComponentCreativeHeadlineEditorContainer.react","BoostedComponentCreativeMultiImageEditorContainer.react","BoostedComponentCreativeSectionStrings","BoostedComponentCreativeVideoEditorContainer.react","BoostedComponentDualCreativeContentV2.react","React"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=c("BoostedComponentCreativeSectionStrings").getDualCreativeSectionTitleTooltip,i=function i(j){var k=j.appID,l=j.boostID,m=j.creativeCategory,n=j.pageID,o=j.targetID,p=null;switch(m){case c("BoostedComponentCreativeCategory").IMAGE:p=c("React").createElement(c("BoostedComponentCreativeMultiImageEditorContainer.react"),{appID:k,boostID:l,pageID:n,targetID:o});break;case c("BoostedComponentCreativeCategory").VIDEO:p=c("React").createElement("div",null,c("React").createElement(c("BoostedComponentCreativeVideoEditorContainer.react"),{appID:k,boostID:l,pageID:n,targetID:o}),c("React").createElement(c("BoostedComponentCreativeHeadlineEditorContainer.react"),{appID:k,boostID:l,creativeCategory:c("BoostedComponentCreativeCategory").VIDEO,targetID:o}));break;default:break}return c("React").createElement(c("BoostedComponentDualCreativeContentV2.react"),{appID:k,boostID:l,creativeCategory:m,imageEditorTooltip:h(m),pageID:n,targetID:o},p)};f.exports=i}),null);
__d("BoostedComponentSectionV2.react",["cx","LeftRight.react","Link.react","React","XUICardSection.react"],(function a(b,c,d,e,f,g,h){"use strict";var i=function i(j){var k=j.children,l=j.className,m=j.title,n=j.headerLink,o=null;if(j.title){var p=n?c("React").createElement(c("Link.react"),{role:"button",onClick:n.onClick},n.label):null;o=c("React").createElement(c("LeftRight.react"),{className:"_52g0"},m,p)}return c("React").createElement(c("XUICardSection.react"),{className:l},o,k)};f.exports=i}),null);
__d("BoostedComponentSectionV2Spinner.react",["BoostedComponentSectionV2.react","CenteredContainer.react","React","XUISpinner.react"],(function a(b,c,d,e,f,g){"use strict";var h=function h(i){return c("React").createElement(c("BoostedComponentSectionV2.react"),{title:i.title},c("React").createElement(c("CenteredContainer.react"),{horizontal:true,style:{height:i.height},vertical:true},c("React").createElement(c("XUISpinner.react"),{size:"large"})))};f.exports=h}),null);
__d("BoostedComponentCreativeSingleImageEditorContainer.react",["invariant","AdsFluxContainer","AdsLWIInstanceUtils","BoostedActionCreativeStoreV2","BoostedComponentAdAccountStoreV2","BoostedComponentContainerUtils","BoostedComponentContextStoreV2","BoostedComponentCreativeActionsV2","BoostedComponentErrorBoundaryContainer.react","BoostedComponentImageCreativeUtils","BoostedComponentImageSelector.react","BoostedComponentLabeledEditor.react","immutable","React","adsLWICurrentInstanceDataSelector"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("AdsLWIInstanceUtils").getKeyFromInstanceData,l=c("BoostedComponentContainerUtils").isDataLoaded,m=c("BoostedComponentCreativeActionsV2").onImageDialogShown,n=c("BoostedComponentCreativeActionsV2").updateImage,o=c("BoostedComponentCreativeActionsV2").updateImageCrops,p=c("BoostedComponentImageCreativeUtils").BoostedComponentImageTypeEnum,q=c("BoostedComponentImageCreativeUtils").getImageSpecs,r=c("BoostedComponentImageCreativeUtils").getImageTypeForLogging;i=babelHelpers.inherits(s,c("React").Component);j=i&&i.prototype;function s(){__p&&__p();var t,u;for(var v=arguments.length,w=Array(v),x=0;x<v;x++)w[x]=arguments[x];return u=(t=j.constructor).call.apply(t,[this].concat(w)),this.state={accessToken:"",accountID:"",clientID:"",image:null,imageHash:null,imageUrl:null,isLAWithCarouselSupport:false},this.$BoostedComponentCreativeSingleImageEditorContainer1=function(){var y=this.props,z=y.pageID,A=y.appID,B=y.targetID,C=y.boostID;m(z,A,B,C)}.bind(this),this.$BoostedComponentCreativeSingleImageEditorContainer2=function(y,z){var A,B=this.props,C=B.pageID,D=B.appID,E=B.targetID,F=B.boostID,G=c("immutable").fromJS((A={},A[y]=z,A));o(G,C,D,E,F)}.bind(this),this.$BoostedComponentCreativeSingleImageEditorContainer3=function(y){y.length!==0||h(0);var z=this.state.accountID,A=this.props,B=A.pageID,C=A.appID,D=A.targetID,E=A.boostID,F=y[0];n(F,r(F),C,D,E,z)}.bind(this),this.$BoostedComponentCreativeSingleImageEditorContainer4=function(y){var z=this.state.accountID,A=this.props,B=A.pageID,C=A.appID,D=A.targetID,E=A.boostID;n(y,p.UPLOAD,C,D,E,z)}.bind(this),u}s.getStores=function(){return[].concat(c("adsLWICurrentInstanceDataSelector").getStores(),[c("BoostedActionCreativeStoreV2"),c("BoostedComponentAdAccountStoreV2"),c("BoostedComponentContextStoreV2")])};s.calculateState=function(t,u){var v=u.appID,w=u.targetID,x=u.boostID,y=k(v,w,x),z=c("BoostedComponentAdAccountStoreV2").getState(),A=c("BoostedComponentContextStoreV2").getDataByKey(y),B=c("BoostedActionCreativeStoreV2").getDataByKey(y),C=l([z,A,B]);if(!C)return babelHelpers["extends"]({},t);var D=z.getSelectedAccountID();return{accessToken:A.getAccessToken(),accountID:D,clientID:A.getClientID(),image:B.getImageLegacy(D),imageHash:B.getImageHash(),imageUrl:B.getImageURL(),isLAWithCarouselSupport:B.getIsLAwithCarousalSupport()}};s.prototype.render=function(){var t=this.state,u=t.accessToken,v=t.accountID,w=t.clientID,x=t.image,y=t.imageHash,z=t.imageUrl,A=t.isLAWithCarouselSupport;return c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentLabeledEditor"},c("React").createElement(c("BoostedComponentLabeledEditor.react"),{className:this.props.className,label:this.props.imageEditorLabel,tooltip:this.props.imageEditorTooltip},c("React").createElement(c("BoostedComponentImageSelector.react"),{accessToken:u,accountID:v,clientID:w,hideImageUploader:this.props.hideImageUploader,iconImageCrop:this.props.iconImageCrop,iconImageLibrary:this.props.iconImageLibrary,image:x,imageHash:y,imageSpecs:q(this.props.appID,false,A),imageUrl:z,pageID:this.props.pageID,showImagePreviewBox:this.props.showImagePreviewBox,onDialogShown:this.$BoostedComponentCreativeSingleImageEditorContainer1,onImageCropClick:this.$BoostedComponentCreativeSingleImageEditorContainer2,onImageUploadClick:this.$BoostedComponentCreativeSingleImageEditorContainer4,onImagesSelected:this.$BoostedComponentCreativeSingleImageEditorContainer3})))};f.exports=c("AdsFluxContainer").create(s,{withProps:true,name:f.id})}),null);
__d("BoostedComponentSingleImageAndVideoDualCreative.react",["BoostedComponentCreativeCategory","BoostedComponentCreativeSectionStrings","BoostedComponentCreativeSingleImageEditorContainer.react","BoostedComponentCreativeVideoEditorContainer.react","BoostedComponentDualCreativeContentV2.react","React"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=function h(i){var j=i.appID,k=i.boostID,l=i.creativeCategory,m=i.pageID,n=i.targetID,o=null;switch(l){case c("BoostedComponentCreativeCategory").IMAGE:o=c("React").createElement(c("BoostedComponentCreativeSingleImageEditorContainer.react"),{appID:j,boostID:k,pageID:m,targetID:n});break;case c("BoostedComponentCreativeCategory").VIDEO:o=c("React").createElement(c("BoostedComponentCreativeVideoEditorContainer.react"),{appID:j,boostID:k,pageID:m,targetID:n});break;default:break}return c("React").createElement(c("BoostedComponentDualCreativeContentV2.react"),{appID:j,boostID:k,creativeCategory:l,imageEditorLabel:c("BoostedComponentCreativeSectionStrings").IMAGE_LABEL,pageID:m,targetID:n},o)};f.exports=h}),null);
__d("BoostedComponentWhatsAppCTAEditor.react",["cx","fbt","BoostedComponentCreativeActionsV2","BoostedComponentLabeledEditor.react","BoostedComponentStrings","BoostedComponentWhatsAppValidationUtils","LayerFadeOnHide","Link.react","PhoneCodeSelector.react","React","SUIBusinessTheme","SUINotice.react","SUISpinner.react","SUITextInput.react","XUIDialog.react","XUIDialogBody.react","XUIDialogCancelButton.react","XUIDialogConfirmButton.react","XUIDialogFooter.react","XUIDialogTitle.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("BoostedComponentCreativeActionsV2").validateWhatsAppVerificationCode,m=c("BoostedComponentCreativeActionsV2").verifyWhatsAppNumber,n=c("BoostedComponentCreativeActionsV2").clearWhatsAppVerificationStatus,o=c("BoostedComponentCreativeActionsV2").closeWhatsAppLinkSuccessBanner,p=c("BoostedComponentCreativeActionsV2").toggleWhatsAppNumberReadEditMode,q=c("BoostedComponentWhatsAppValidationUtils").getInvalidPhoneNumberError,r=c("BoostedComponentWhatsAppValidationUtils").getFormattedPhoneNumber,s=c("BoostedComponentWhatsAppValidationUtils").getVerificationCodeSendFailureError,t=c("BoostedComponentWhatsAppValidationUtils").getDisplayMessageText,u=c("BoostedComponentWhatsAppValidationUtils").getDisplayErrorMessageText,v=5,w=i._("Connect WhatsApp to your Page"),x=i._("Add your WhatsApp number so people can send you messages."),y=i._("WhatsApp number"),z=i._("Add Your WhatsApp Number"),A=i._("Send code again"),B=i._("Your WhatsApp number is now connected to your Page."),C=i._("Add"),D=i._("Edit"),E=i._("Cancel"),F=function F(L){var M=L.verificationStatus;if(u(M))return c("React").createElement("div",{className:"_62tf"},u(M));var N=t(M);return c("React").createElement("div",{className:"_62t1"},N)},G=function G(){return c("React").createElement(c("SUINotice.react"),{style:{marginTop:"4px"},theme:c("SUIBusinessTheme"),type:"information"},c("React").createElement("div",null,i._("With this button, Facebook will expand your targeting if there's a chance to reach more people likely to send you a message on WhatsApp.")," ",c("React").createElement(c("Link.react"),{href:"https://www.facebook.com/business/help/128066880933676",target:"_blank"},i._("Learn more"))))},H=function H(L){var M=L.whatsAppNumber,N=L.onVerificationDialogClose;return c("React").createElement("div",{className:"_1v_b"},c("React").createElement("div",{className:"_1v_c"},i._("Your WhatsApp number: {number}",[i.param("number",M)])),c("React").createElement("div",{className:"_1v_d"},c("React").createElement(c("Link.react"),{onClick:N},D)))},I=function I(L){var M=L.isValidatingVerificationCode,N=L.verificationCode,O=L.verificationStatus,P=L.whatsAppNumber,Q=L.onValidateWhatsAppVerificationCodeClick,R=L.onVerificationCodeChange,S=L.onVerificationCodeResendClick,T=L.onVerificationDialogClose,U=M||N.length!==v;return c("React").createElement(c("XUIDialog.react"),{behaviors:{LayerFadeOnHide:c("LayerFadeOnHide")},layerHideOnBlur:false,shown:true,width:445},c("React").createElement(c("XUIDialogTitle.react"),{className:"_2w1n"},z),c("React").createElement(c("XUIDialogBody.react"),null,c("React").createElement(F,{verificationStatus:O}),c("React").createElement("div",{className:"_1shm"},c("React").createElement(c("SUITextInput.react"),{theme:c("SUIBusinessTheme"),value:N,onChange:R})),c("React").createElement(H,{whatsAppNumber:P,onVerificationDialogClose:T}),c("React").createElement("div",{className:"_39yb"},c("React").createElement(c("Link.react"),{onClick:S},A))),c("React").createElement(c("XUIDialogFooter.react"),null,c("React").createElement(c("XUIDialogCancelButton.react"),{onClick:T}),c("React").createElement(c("XUIDialogConfirmButton.react"),{action:"confirm",disabled:U,use:"default",onClick:Q})))},J=function J(L){var M=L.selectedPhoneNumber,N=L.verifiedWhatsappNumber,O=L.onAddWhatsAppNumberClick,P=L.onCancelLinkClick,Q=M===""?c("React").createElement("div",{className:"_44np"},C):c("React").createElement(c("Link.react"),{className:"_1i39",onClick:O},C);return c("React").createElement("div",{className:"_29sb"},Q,N&&c("React").createElement(c("Link.react"),{className:"_1i39",onClick:P},E))};j=babelHelpers.inherits(K,c("React").Component);k=j&&j.prototype;function K(){__p&&__p();var L,M;for(var N=arguments.length,O=Array(N),P=0;P<N;P++)O[P]=arguments[P];return M=(L=k.constructor).call.apply(L,[this].concat(O)),this.state={selectedCountryCode:this.props.initialCountryCode,selectedPhoneNumber:"",verificationCode:""},this.$BoostedComponentWhatsAppCTAEditor1=function(Q,R){var S=this.props,T=S.appID,U=S.boostID,V=S.targetID;this.setState({selectedCountryCode:R});n(T,U,V)}.bind(this),this.$BoostedComponentWhatsAppCTAEditor2=function(Q){var R=this.props,S=R.appID,T=R.boostID,U=R.targetID;this.setState({selectedPhoneNumber:Q});n(S,T,U)}.bind(this),this.$BoostedComponentWhatsAppCTAEditor3=function(Q){if(!isNaN(Q))this.setState({verificationCode:Q})}.bind(this),this.$BoostedComponentWhatsAppCTAEditor5=function(){var Q=this.props,R=Q.appID,S=Q.boostID,T=Q.targetID,U=Q.pageToken,V=Q.showVerificationDialog,W=r(this.state.selectedCountryCode,this.state.selectedPhoneNumber);if(V)this.$BoostedComponentWhatsAppCTAEditor4();m(R,S,T,U,W,!!V)}.bind(this),this.$BoostedComponentWhatsAppCTAEditor6=function(){var Q=this.props,R=Q.appID,S=Q.boostID,T=Q.targetID,U=Q.pageToken,V=this.state,W=V.selectedCountryCode,X=V.selectedPhoneNumber,Y=V.verificationCode,Z=r(W,X);l(R,S,T,U,Z,Y)}.bind(this),this.$BoostedComponentWhatsAppCTAEditor7=function(){var Q=this.props,R=Q.appID,S=Q.boostID,T=Q.targetID;this.$BoostedComponentWhatsAppCTAEditor4();n(R,S,T)}.bind(this),this.$BoostedComponentWhatsAppCTAEditor8=function(){var Q=this.props,R=Q.appID,S=Q.boostID,T=Q.targetID;o(R,S,T)}.bind(this),this.$BoostedComponentWhatsAppCTAEditor9=function(){var Q=this.props,R=Q.appID,S=Q.boostID,T=Q.targetID,U=Q.isReadOnlyMode;p(R,S,T,!U)}.bind(this),M}K.prototype.$BoostedComponentWhatsAppCTAEditor4=function(){if(this.state.verificationCode!=="")this.setState({verificationCode:""})};K.prototype.$BoostedComponentWhatsAppCTAEditor10=function(){return q(this.state.selectedPhoneNumber)||s(this.props.verificationStatus)};K.prototype.render=function(){var L=this.props,M=L.isReadOnlyMode,N=L.isValidatingVerificationCode,O=L.isVerifyingWhatsAppNumberOnServer,P=L.initialCountryCode,Q=L.showSuccessBanner,R=L.showVerificationDialog,S=L.verificationStatus,T=L.verifiedWhatsappNumber,U=this.state,V=U.selectedCountryCode,W=U.selectedPhoneNumber,X=U.verificationCode,Y=r(V,W);return M?c("React").createElement(c("BoostedComponentLabeledEditor.react"),{label:c("BoostedComponentStrings").CALL_TO_ACTION_WHATSAPP_NUMBER_LABEL},c("React").createElement("div",{className:"_254n"},"+",T,c("React").createElement(c("Link.react"),{className:"_1i39",onClick:this.$BoostedComponentWhatsAppCTAEditor9},D)),Q?c("React").createElement("div",{className:"__yj"},c("React").createElement(c("SUINotice.react"),{theme:c("SUIBusinessTheme"),type:"success",onClose:this.$BoostedComponentWhatsAppCTAEditor8},B)):null,c("React").createElement(G,null)):c("React").createElement(c("BoostedComponentLabeledEditor.react"),{descriptionText:x,label:w},c("React").createElement("div",null,c("React").createElement(c("PhoneCodeSelector.react"),{className:"_1i37",initialCountryCode:P,onUpdate:this.$BoostedComponentWhatsAppCTAEditor1}),c("React").createElement("div",{className:"_1i38"},c("React").createElement(c("SUITextInput.react"),{disabled:O,errorMessage:this.$BoostedComponentWhatsAppCTAEditor10(),errorTooltipPosition:"right",placeholder:y,theme:c("SUIBusinessTheme"),value:this.state.selectedPhoneNumber,onChange:this.$BoostedComponentWhatsAppCTAEditor2})),O?c("React").createElement(c("SUISpinner.react"),{className:"_gri",size:"small",theme:c("SUIBusinessTheme")}):c("React").createElement(J,{selectedPhoneNumber:W,verifiedWhatsappNumber:T,onAddWhatsAppNumberClick:this.$BoostedComponentWhatsAppCTAEditor5,onCancelLinkClick:this.$BoostedComponentWhatsAppCTAEditor9})),R&&c("React").createElement(I,{isValidatingVerificationCode:N,verificationCode:X,verificationStatus:S,whatsAppNumber:Y,onValidateWhatsAppVerificationCodeClick:this.$BoostedComponentWhatsAppCTAEditor6,onVerificationCodeChange:this.$BoostedComponentWhatsAppCTAEditor3,onVerificationCodeResendClick:this.$BoostedComponentWhatsAppCTAEditor5,onVerificationDialogClose:this.$BoostedComponentWhatsAppCTAEditor7}))};f.exports=K}),null);
__d("AdsCampaignSearchAppsAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"CAMPAIGN.SEARCH_APPS");f.exports=h}),null);
__d("AppStoreSearchResultSourceStoreEnum",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({OWN_APPS:"own_apps",GOOGLE_STORE:"google_store",APPLE_STORE:"apple_store",URL_INPUT:"url_input"})}),null);
__d("AdsSearchAppsTypeaheadStore",["fbt","AdsCampaignSearchAppsAction","AdsDataAtom","AdsGraphAPI","AppStoreSearchResultSourceStoreEnum","FluxLoadObjectStore","immutable","LoadObject","SearchableEntry"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k,l;i=babelHelpers.inherits(m,c("immutable").Record({adAccountID:undefined,appStore:undefined,appStoreCountry:undefined,query:undefined}));j=i&&i.prototype;function m(){i.apply(this,arguments)}k=babelHelpers.inherits(n,c("FluxLoadObjectStore"));l=k&&k.prototype;n.prototype.getFor=function(o,p,q,r){return this.get(new m({adAccountID:o,appStore:p,appStoreCountry:q,query:r}))};n.prototype.reduce=function(o,p){var q=p.action;switch(q.type){case c("AdsCampaignSearchAppsAction").actionType:var r=q.searchApps.data.map(function(s){return this.createSearchableEntry(s)}.bind(this));return this.__handleOne(o,q.key,r);default:return o}};n.prototype.__load=function(o){c("AdsGraphAPI").get(f.id).adaccount(o.get("adAccountID")).edge("matched_search_applications").get({app_store:o.get("appStore"),app_store_country:o.get("appStoreCountry"),query_term:o.get("query")}).done(function(p){return c("AdsCampaignSearchAppsAction").dispatch({searchApps:p,key:o})})};n.prototype.createSearchableEntry=function(o){var p="";if(o.search_source_store===c("AppStoreSearchResultSourceStoreEnum").OWN_APPS)p=h._("Registered to your account");return new(c("SearchableEntry"))({title:o.name,subtitle:p,uniqueID:o.unique_id+":"+o.app_id,photo:o.icon_url,uri:o.url,keywordString:o.app_id})};function n(){k.apply(this,arguments)}f.exports=new n(c("AdsDataAtom"))}),null);
__d("AdsSearchAppsSearchSource",["AdsFluxStoreSearchSource","AdsSearchAppsTypeaheadStore"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("AdsFluxStoreSearchSource"));i=h&&h.prototype;function j(k){var l=babelHelpers["extends"]({getAllForEmptyQuery:true},k,{queryRequests:[{store:c("AdsSearchAppsTypeaheadStore"),getData:function m(n){return c("AdsSearchAppsTypeaheadStore").getFor(k.adAccountId,k.appStore,k.appStoreCountry,n||"")}}]});self.$AdsSearchAppsSearchSource2=k.adAccountId;self.$AdsSearchAppsSearchSource3=k.appStore;self.$AdsSearchAppsSearchSource4=k.appStoreCountry;i.constructor.call(this,l)}j.getInstance=function(k,l,m){if(!self.$AdsSearchAppsSearchSource1||self.$AdsSearchAppsSearchSource2!==k||self.$AdsSearchAppsSearchSource3!==l||self.$AdsSearchAppsSearchSource4!==m)self.$AdsSearchAppsSearchSource1=new j({adAccountId:k,appStore:l,appStoreCountry:m});return self.$AdsSearchAppsSearchSource1};f.exports=j}),null);
__d("AdsTypeahead.react",["cx","AdsValidationIcon.react","AdsValidationIconType","BackgroundImage.react","BUIAdoptionCloseButton.react","React","SearchableEntry","SUIBusinessTheme","SUISimplePopover.react","XUITypeahead.react","joinClasses"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes;i=babelHelpers.inherits(l,c("React").Component);j=i&&i.prototype;function l(){__p&&__p();var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=j.constructor).call.apply(m,[this].concat(p)),this.state={queryString:this.props.selectedEntry?this.props.selectedEntry.getTitle():"",focused:!!this.props.focusedOnInit},this.focusInput=function(){this.setState({focused:true});this.refs.typeahead.focusInput()}.bind(this),this.$AdsTypeahead5=function(event){if(this.props.onChangeLogFunc)this.props.onChangeLogFunc(event.target.value);this.setState({queryString:event.target.value},this.$AdsTypeahead9)}.bind(this),this.$AdsTypeahead9=function(){this.props.selectedEntry&&this.props.onSelectAttempt&&this.props.onSelectAttempt(null);if(this.props.onQueryStringChange)this.props.onQueryStringChange(this.state.queryString)}.bind(this),this.$AdsTypeahead7=function(r){this.props.onSelectAttempt&&this.props.onSelectAttempt(r)}.bind(this),this.$AdsTypeahead8=function(){this.props.onClearEntryLogFunc&&this.props.onClearEntryLogFunc(this.props.queryStringOnClearEntry||"");this.setState({queryString:this.props.queryStringOnClearEntry||""},this.$AdsTypeahead10)}.bind(this),this.$AdsTypeahead10=function(){this.refs.typeahead.focusInput();this.props.onSelectAttempt&&this.props.onSelectAttempt(null)}.bind(this),this.$AdsTypeahead6=function(){if(this.props.onFocusLogFunc)this.props.onFocusLogFunc();this.setState({focused:true})}.bind(this),this.$AdsTypeahead4=function(){this.setState({focused:false})}.bind(this),n}l.prototype.componentWillReceiveProps=function(m){if("selectedEntry"in m){var n=!m.selectedEntry&&this.props.selectedEntry;if(this.props.clearQueryWhenEntryIsRemoved&&n)this.setState({queryString:""});else this.setState({queryString:m.selectedEntry?m.selectedEntry.getTitle():m.clearQueryIfNoSelectedEntry?"":this.state.queryString})}};l.prototype.render=function(){var m=null,n=null;if(this.props.selectedEntry){m=this.props.selectedEntry;n=this.props.selectedEntry.getPhoto()}var o=Array.isArray(this.props.errors)&&this.props.errors.length?c("React").createElement("span",{className:"_1fys"},c("React").createElement(c("AdsValidationIcon.react"),{messages:this.props.errors,type:c("AdsValidationIconType").ERROR_WHITE})):null,p=c("joinClasses")("_1fyt _1fyu"+(this.state.focused?" _1fyv":"")+(!!o?" _1fyw":""),this.props.className),q=this.props.placeholder||"",r=!this.props.selectedEntry||!this.state.queryString,s=!!this.state.queryString&&!this.props.selectedEntry&&this.props.enableSelectOnBlur,t=null;if(this.props.tooltipHelpText)t=c("React").createElement("span",{className:"_1fyx"},c("React").createElement(c("SUISimplePopover.react"),{content:this.$AdsTypeahead1(),theme:c("SUIBusinessTheme")}));return c("React").createElement("div",{className:p,title:this.props.disableTooltip?null:q},c("React").createElement("div",{className:"_1fyy"+(this.props.hasExtraSpacing?" _7tf":"")+(!!o?" _1fyz":"")},o,c("React").createElement("div",{className:(this.props.disabled?"_1fy-":"")+" _1fy_"+(!!m?" _1fz0":"")+(!!t?" _1fz1":"")+(!!n?" _1fz2":"")},n&&this.$AdsTypeahead2(n),m&&this.$AdsTypeahead3(),!m&&t,c("React").createElement(c("XUITypeahead.react"),{autoHighlight:this.props.autoHighlight,"data-testid":this.props["data-testid"],disabled:this.props.disabled||this.props.disabledTextInput,focusedOnInit:this.props.focusedOnInit,maxEntries:this.props.maxEntries,placeholder:q,presenter:this.props.presenter,queryString:this.state.queryString,ref:"typeahead",searchSource:this.props.searchSource,selectOnBlur:s,showEntriesOnFocus:r,textInputDataTestID:this.props.textInputDataTestID,viewStyle:"rich",onBlur:this.$AdsTypeahead4,onChange:this.$AdsTypeahead5,onFocus:this.$AdsTypeahead6,onSelectAttempt:this.$AdsTypeahead7}))),c("React").createElement("div",null,this.props.children))};l.prototype.$AdsTypeahead2=function(m){return c("React").createElement(c("BackgroundImage.react"),{backgroundSize:"cover",className:"_1fz3",height:24,src:m,width:24})};l.prototype.$AdsTypeahead3=function(){if(this.props.disabled||!this.props.clearable)return null;return c("React").createElement("div",{className:"_1fz4"},c("React").createElement(c("BUIAdoptionCloseButton.react"),{onClick:this.$AdsTypeahead8}))};l.prototype.$AdsTypeahead1=function(){return c("React").Children.map(this.props.tooltipHelpText,function(m,n){return c("React").createElement("p",{className:"_1fz5",key:n},m)})};l.propTypes={autoHighlight:k.bool,clearQueryIfNoSelectedEntry:k.bool,clearQueryWhenEntryIsRemoved:k.bool,clearable:k.bool,disabled:k.bool,disabledTextInput:k.bool,disableTooltip:k.bool,enableSelectOnBlur:k.bool,errors:k.array,focusedOnInit:k.bool,hasExtraSpacing:k.bool,maxEntries:k.number,placeholder:k.node,presenter:k.object,queryStringOnClearEntry:k.string,searchSource:k.object.isRequired,selectedEntry:k.instanceOf(c("SearchableEntry")),textInputDataTestID:k.string,onChangeLogFunc:k.func,onClearEntryLogFunc:k.func,onFocusLogFunc:k.func,onQueryStringChange:k.func,onSelectAttempt:k.func};l.defaultProps={autoHighlight:true,clearable:true,clearQueryIfNoSelectedEntry:false,disabledTextInput:false,disableTooltip:false,hasExtraSpacing:true,enableSelectOnBlur:true};f.exports=l}),null);
__d("BoostedComponentAppInstallEvents",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({CHANGE_APP_STORE:"change_app_store",SEARCH_APP:"search_app",SELECT_APP:"select_app",CLICK_APP_URL_LINK:"click_app_url_link"})}),null);
__d("BoostedComponentAppInstallSectionStringsV2",["fbt"],(function a(b,c,d,e,f,g,h){"use strict";var i={SELECT_APP_STORE_LABEL:h._("Choose an app store where people can download your app."),SELECT_APP_BY_NAME_OR_URL_LABEL:h._("Search for your app by typing in the app name or enter its exact app store URL."),APP_STORE_URL_TOOLTOP:h._("You can find your app store URL by searching for your app within the app store and copying the URL from the top of the page. For example: https:\/\/itunes.apple.com\/us\/app\/facebook\/id284882215"),GOOGLE_URL_TOOLTOP:h._("You can find your app store URL by searching for your app within the app store and copying the URL from the top of the page. For example: https:\/\/play.google.com\/store\/apps\/details?id=com.facebook.katana"),DESCRIBE_YOUR_APP_TEXT:h._("Tell people a bit more about your app. Make sure to clearly explain what you are promoting.")};f.exports=i}),null);
__d("BoostedComponentAppInstallTypedLogger",["Banzai","GeneratedLoggerUtils","nullthrows"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(){this.clear()}h.prototype.log=function(){c("GeneratedLoggerUtils").log("logger:BoostedComponentAppInstallLoggerConfig",this.$BoostedComponentAppInstallTypedLogger1,c("Banzai").BASIC)};h.prototype.logVital=function(){c("GeneratedLoggerUtils").log("logger:BoostedComponentAppInstallLoggerConfig",this.$BoostedComponentAppInstallTypedLogger1,c("Banzai").VITAL)};h.prototype.clear=function(){this.$BoostedComponentAppInstallTypedLogger1={};return this};h.prototype.updateData=function(j){this.$BoostedComponentAppInstallTypedLogger1=babelHelpers["extends"]({},this.$BoostedComponentAppInstallTypedLogger1,j);return this};h.prototype.setEvent=function(j){this.$BoostedComponentAppInstallTypedLogger1.event=j;return this};h.prototype.setExtraInfo=function(j){this.$BoostedComponentAppInstallTypedLogger1.extra_info=j;return this};h.prototype.setPageid=function(j){this.$BoostedComponentAppInstallTypedLogger1.pageid=j;return this};h.prototype.setVC=function(j){this.$BoostedComponentAppInstallTypedLogger1.vc=j;return this};var i={event:true,extra_info:true,pageid:true,vc:true};f.exports=h}),null);
__d("BoostedAppInstallAppSearchField.react",["cx","fbt","AdsSearchAppsSearchSource","AdsTypeahead.react","BoostedComponentAppInstallEvents","BoostedComponentAppInstallSectionStringsV2","BoostedComponentAppInstallTypedLogger","BoostedComponentLabeledEditor.react","React","SearchableEntry","ads-app-platforms"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("ads-app-platforms").MOBILE_STORE;j=babelHelpers.inherits(m,c("React").Component);k=j&&j.prototype;function m(){var n,o;for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=k.constructor).call.apply(n,[this].concat(q)),this.onChangeLogFunc=function(s){var t=this.props.pageID,u=new(c("BoostedComponentAppInstallTypedLogger"))().setPageid(t).setEvent(c("BoostedComponentAppInstallEvents").SEARCH_APP).setExtraInfo(s);u.log()}.bind(this),o}m.prototype.render=function(){var n=this.props.selectedAppStore,o=n===l.ITUNES?c("BoostedComponentAppInstallSectionStringsV2").APP_STORE_URL_TOOLTOP:c("BoostedComponentAppInstallSectionStringsV2").GOOGLE_URL_TOOLTOP,p=this.props.isBoosted?null:i._("Enter the app's name or app store URL");return c("React").createElement(c("BoostedComponentLabeledEditor.react"),{className:"_2vyt",label:c("BoostedComponentAppInstallSectionStringsV2").SELECT_APP_BY_NAME_OR_URL_LABEL,tooltip:o,tooltipWidth:400},c("React").createElement(c("AdsTypeahead.react"),{className:"_2vyu",clearQueryIfNoSelectedEntry:true,disabled:this.props.isBoosted,hasExtraSpacing:false,placeholder:p,searchSource:this.props.searchSource,selectedEntry:this.props.selectedApp,onChangeLogFunc:this.onChangeLogFunc,onSelectAttempt:this.props.onSelectAttempt}))};f.exports=m}),null);
__d("BoostedAppInstallAppSelectorStore",["AdsDataAtom","BoostedComponentAppInstallActionTypesV2","FluxReduceStore","immutable","SearchableEntry","ads-app-platforms"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j,k,l=c("ads-app-platforms").MOBILE_STORE;h=babelHelpers.inherits(m,c("immutable").Record({selectedAppStore:l.GOOGLE_PLAY,selectedApp:null}));i=h&&h.prototype;function m(){h.apply(this,arguments)}j=babelHelpers.inherits(n,c("FluxReduceStore"));k=j&&j.prototype;n.prototype.getInitialState=function(){return new m()};n.prototype.getSelectedAppStore=function(){return this.getState().selectedAppStore};n.prototype.getSelectedApp=function(){return this.getState().selectedApp};n.prototype.reduce=function(o,p){var q=p.action;switch(q.type){case c("BoostedComponentAppInstallActionTypesV2").SELECT_APP_STORE:return o.set("selectedAppStore",q.selectedAppStore).set("selectedApp",null);case c("BoostedComponentAppInstallActionTypesV2").SELECT_APP:return o.set("selectedApp",q.selectedApp);default:return o}};function n(){j.apply(this,arguments)}f.exports=new n(c("AdsDataAtom"))}),null);
__d("BoostedAppInstallAppStoreSelector.react",["BoostedComponentAppInstallSectionStringsV2","BoostedComponentLabeledEditor.react","React","SUIBusinessTheme","SUISelector.react","SUISelectorOption.react","ads-app-platforms"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("ads-app-platforms").MOBILE_STORE,k=c("ads-app-platforms").getStoreName,l=[j.GOOGLE_PLAY,j.ITUNES];h=babelHelpers.inherits(m,c("React").Component);i=h&&h.prototype;m.prototype.render=function(){var n=Object.values(l).map(function(o){return c("React").createElement(c("SUISelectorOption.react"),{key:o,value:o},k(o))});return c("React").createElement(c("BoostedComponentLabeledEditor.react"),{label:c("BoostedComponentAppInstallSectionStringsV2").SELECT_APP_STORE_LABEL},c("React").createElement(c("SUISelector.react"),{disabled:this.props.isBoosted,shouldHideOnMouseLeave:true,theme:c("SUIBusinessTheme"),value:this.props.selectedAppStore,onChange:this.props.onSelectAppStoreChange},n))};function m(){h.apply(this,arguments)}f.exports=m}),null);
__d("BoostedAppInstallAppSelectorContainer.react",["fbt","AdsAPIAdgroupFields","AdsAppUtils","AdsFluxContainer","AdsLWIInstanceUtils","AdsSearchAppsSearchSource","AdsSearchAppsTypeaheadStore","ApiAdCreativeFields","ApiAdCreativeStorySpecFields","ApiCallToActionFields","ApiObjectStorySpecLinkFields","BoostedActionCreativeStoreV2","BoostedAppInstallAppSearchField.react","BoostedAppInstallAppSelectorStore","BoostedAppInstallAppStoreSelector.react","BoostedComponentAdAccountStoreV2","BoostedComponentAppInstallActions","BoostedComponentAppInstallEvents","BoostedComponentAppInstallTypedLogger","BoostedComponentAudienceStoreV2","BoostedComponentBudgetEstimationStoreV2","BoostedComponentContainerUtils","BoostedComponentCreativeCategory","CallToActionValueFields","Link.react","React","SearchableEntry","URI","ads-app-platforms","setByPath"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("AdsLWIInstanceUtils").getKeyFromInstanceData,l=c("BoostedComponentContainerUtils").isDataLoaded,m=c("ads-app-platforms").MOBILE_STORE;i=babelHelpers.inherits(n,c("React").Component);j=i&&i.prototype;function n(){__p&&__p();var o,p;for(var q=arguments.length,r=Array(q),s=0;s<q;s++)r[s]=arguments[s];return p=(o=j.constructor).call.apply(o,[this].concat(r)),this.$BoostedAppInstallAppSelectorContainer1=function(t){var u=c("BoostedAppInstallAppSelectorStore").getSelectedAppStore();if(u===t)return;var v=this.props,w=v.appID,x=v.pageID,y=v.targetID,z=v.boostID,A="";c("BoostedComponentAppInstallActions").updateSelectedAppStore(w,y,z,t,A);var B=new(c("BoostedComponentAppInstallTypedLogger"))().setPageid(x).setEvent(c("BoostedComponentAppInstallEvents").CHANGE_APP_STORE).setExtraInfo(t);B.log()}.bind(this),this.$BoostedAppInstallAppSelectorContainer2=function(t){__p&&__p();c("BoostedComponentAppInstallActions").updateSelectedApp(t);var u=this.props,v=u.appID,w=u.targetID,x=u.boostID,y=u.pageID,z=u.creativeCategory;if(!t)c("BoostedComponentAppInstallActions").clearSelectedApp(v,w,x);var A=t?t.getURI():"",B=this.state.spec;if(z===c("BoostedComponentCreativeCategory").VIDEO)c("setByPath")(B,[c("AdsAPIAdgroupFields").CREATIVE,c("ApiAdCreativeFields").OBJECT_STORY_SPEC,c("ApiAdCreativeStorySpecFields").VIDEO_DATA,c("ApiObjectStorySpecLinkFields").CALL_TO_ACTION,c("ApiCallToActionFields").VALUE,c("CallToActionValueFields").LINK],A);else c("setByPath")(B,[c("AdsAPIAdgroupFields").CREATIVE,c("ApiAdCreativeFields").OBJECT_STORY_SPEC,c("ApiAdCreativeStorySpecFields").LINK_DATA,c("ApiObjectStorySpecLinkFields").LINK],A);c("BoostedComponentAppInstallActions").updateBoostedAppInstallCreativeAndAudienceSpec(v,w,x,y,JSON.stringify(B),A);var C=new(c("BoostedComponentAppInstallTypedLogger"))().setPageid(y).setEvent(c("BoostedComponentAppInstallEvents").SELECT_APP).setExtraInfo(A);C.log()}.bind(this),this.$BoostedAppInstallAppSelectorContainer3=function(){var t=this.props.pageID,u=new(c("BoostedComponentAppInstallTypedLogger"))().setPageid(t).setEvent(c("BoostedComponentAppInstallEvents").CLICK_APP_URL_LINK).setExtraInfo(this.state.selectedApp?this.state.selectedApp.getURI():null);u.log()}.bind(this),p}n.getStores=function(){return[c("BoostedActionCreativeStoreV2"),c("BoostedAppInstallAppSelectorStore"),c("BoostedComponentAdAccountStoreV2"),c("BoostedComponentAudienceStoreV2"),c("BoostedComponentBudgetEstimationStoreV2")]};n.calculateState=function(o,p){__p&&__p();var q=p.appID,r=p.targetID,s=p.boostID,t=p.creativeCategory,u=k(q,r,s),v=c("BoostedActionCreativeStoreV2").getDataByKey(u),w=c("BoostedComponentAudienceStoreV2").getDataByKey(u),x=c("BoostedComponentAdAccountStoreV2").getState(),y=c("BoostedComponentBudgetEstimationStoreV2").getDataByKey(u),z=l([v,w,x,y]);if(!z)return babelHelpers["extends"]({},o,{dataLoaded:z});var A=v.getCreativeSpec(),B=w.getTargetSpec(),C=c("BoostedAppInstallAppSelectorStore").getSelectedAppStore(),D=c("BoostedAppInstallAppSelectorStore").getSelectedApp(),E=x.getSelectedAccountID(),F=y.getSelectedBudgetValue(),G={creative:A,targeting:B,account_id:E,daily_budget:F},H=JSON.stringify(G),I=JSON.parse(H),J=D;if(D===null){var K="";if(t===c("BoostedComponentCreativeCategory").VIDEO)K=A.getIn([c("ApiAdCreativeFields").OBJECT_STORY_SPEC,c("ApiAdCreativeStorySpecFields").VIDEO_DATA,c("ApiObjectStorySpecLinkFields").CALL_TO_ACTION,c("ApiCallToActionFields").VALUE,c("CallToActionValueFields").LINK]);else K=A.getIn([c("ApiAdCreativeFields").OBJECT_STORY_SPEC,c("ApiAdCreativeStorySpecFields").LINK_DATA,c("ApiObjectStorySpecLinkFields").LINK]);if(c("AdsAppUtils").isGooglePlayURL(K)||c("AdsAppUtils").isItunesURL(K)){C=c("AdsAppUtils").isGooglePlayURL(K)?m.GOOGLE_PLAY:m.ITUNES;var L=c("AdsSearchAppsTypeaheadStore").getFor(E,C,"US",K).getValue();if(L!==undefined&&L!==null)if(L.length>0)J=L[0]}}return{selectedApp:J,selectedAppStore:C,searchSource:c("AdsSearchAppsSearchSource").getInstance(E,C,"US"),spec:I}};n.prototype.$BoostedAppInstallAppSelectorContainer4=function(){var o=null;if(this.state.selectedApp)o=c("React").createElement(c("Link.react"),{href:new(c("URI"))(this.state.selectedApp.getURI()),style:{fontSize:"smaller"},target:"_blank",onClick:this.$BoostedAppInstallAppSelectorContainer3},h._("See this app in the app store"));return o};n.prototype.render=function(){return c("React").createElement("div",null,c("React").createElement(c("BoostedAppInstallAppStoreSelector.react"),{isBoosted:this.props.isBoosted,selectedAppStore:this.state.selectedAppStore,onSelectAppStoreChange:this.$BoostedAppInstallAppSelectorContainer1}),c("React").createElement(c("BoostedAppInstallAppSearchField.react"),{isBoosted:this.props.isBoosted,pageID:this.props.pageID,searchSource:this.state.searchSource,selectedApp:this.state.selectedApp,selectedAppStore:this.state.selectedAppStore,onSelectAttempt:this.$BoostedAppInstallAppSelectorContainer2}),this.$BoostedAppInstallAppSelectorContainer4())};f.exports=c("AdsFluxContainer").create(n,{withProps:true,name:f.id})}),null);
__d("BoostedComponentCTAPlaceEditor.react",["fbt","ActionList.react","AdsCallToActionUtils","BoostedAutomatedAdsStrings","BoostedComponentConstants","BoostedComponentLabeledEditor.react","BoostedComponentStrings","BootloadedComponent.react","City","JSResource","LayerFadeOnHide","LayerHideOnEscape","LayerHideOnTransition","LayerRemoveOnHide","Link.react","LoadingDialog.react","React","SUIBusinessTheme","SUIText.react","XUIError.react"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes,l={LayerFadeOnHide:c("LayerFadeOnHide"),LayerHideOnEscape:c("LayerHideOnEscape"),LayerHideOnTransition:c("LayerHideOnTransition"),LayerRemoveOnHide:c("LayerRemoveOnHide")};i=babelHelpers.inherits(m,c("React").Component);j=i&&i.prototype;function m(){__p&&__p();var n,o;for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=j.constructor).call.apply(n,[this].concat(q)),this.state={dialogShown:false},this.$BoostedComponentCTAPlaceEditor1=function(){if(this.props.onEditAddressClick)this.props.onEditAddressClick();this.$BoostedComponentCTAPlaceEditor4(true)}.bind(this),this.$BoostedComponentCTAPlaceEditor3=function(){var s=c("AdsCallToActionUtils").parseGeoLink(this.props.ctaLink||"");if(s)return c("React").createElement(c("SUIText.react"),{shade:"dark",theme:c("SUIBusinessTheme")},s.toString());return c("React").createElement(c("XUIError.react"),{xuiError:this.props.invalidAddressError?this.props.invalidAddressError:c("BoostedComponentStrings").CALL_TO_ACTION_ADDRESS_INVALID},c("React").createElement("span",null,h._("None")))}.bind(this),this.$BoostedComponentCTAPlaceEditor6=function(s){this.setState({dialogShown:false});if(s.place)this.props.onCTALinkChange(c("AdsCallToActionUtils").makeGeoLink(s.place))}.bind(this),this.$BoostedComponentCTAPlaceEditor5=function(){this.setState({dialogShown:false})}.bind(this),this.$BoostedComponentCTAPlaceEditor4=function(s){this.setState({dialogShown:s})}.bind(this),o}m.prototype.render=function(){var n=c("AdsCallToActionUtils").parseGeoLink(this.props.ctaLink||"");if(this.props.hideTitle&&!n)return c("React").createElement("div",null,c("React").createElement(c("Link.react"),{onClick:this.$BoostedComponentCTAPlaceEditor1},c("BoostedAutomatedAdsStrings").ADD_ADDRESS_LABEL),this.$BoostedComponentCTAPlaceEditor2());var o=this.props.hideTitle?"":c("BoostedComponentStrings").getCallToActionAddressLabel(this.props.appID),p=this.props.hideTitle?"":c("BoostedComponentStrings").getCallToActionAddressTooltip(this.props.appID);return c("React").createElement(c("BoostedComponentLabeledEditor.react"),{descriptionText:c("BoostedComponentStrings").getCallToActionAddressDescription(this.props.appID),label:o,tooltip:p},c("React").createElement(c("ActionList.react"),null,this.$BoostedComponentCTAPlaceEditor3(),c("React").createElement(c("Link.react"),{onClick:this.$BoostedComponentCTAPlaceEditor1},c("BoostedComponentStrings").CALL_TO_ACTION_ADDRESS_EDIT)),this.$BoostedComponentCTAPlaceEditor2())};m.prototype.$BoostedComponentCTAPlaceEditor2=function(){return c("React").createElement(c("BootloadedComponent.react"),{behaviors:l,bootloadForcePlaceholder:this.props.isLoading,bootloadLoader:c("JSResource")("AdsPagePlaceDialogContainer.react").__setRef("BoostedComponentCTAPlaceEditor.react"),bootloadPlaceholder:c("React").createElement(c("LoadingDialog.react"),{behaviors:null,shown:this.state.dialogShown,width:c("BoostedComponentConstants").LOADING_DIALOG_WIDTH,onToggle:this.$BoostedComponentCTAPlaceEditor4}),defaultCity:this.props.defaultCity,isShown:this.state.dialogShown,pageAccessToken:this.props.pageAccessToken,pageID:this.props.pageID,userID:this.props.userID,onHide:this.$BoostedComponentCTAPlaceEditor5,onSubmit:this.$BoostedComponentCTAPlaceEditor6})};m.propTypes={appID:k.string,ctaLink:k.string,onCTALinkChange:k.func.isRequired,userID:k.string,pageID:k.string,pageAccessToken:k.string,invalidAddressError:k.node,isLoading:k.bool,defaultCity:k.instanceOf(c("City")),hideTitle:k.bool.isRequired,onEditAddressClick:k.func};m.defaultProps={hideTitle:false};f.exports=m}),null);
__d("AdsCreativeCallToActionField.react",["cx","fbt","invariant","AdsAPIObjectives","AdsCallToActionTypes","AdsCallToActionUtils","AdsPromotedObjectTypes","AdsTestIDs","Link.react","React","XUIError.react","XUISelector.react","getObjectValues"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m=c("React").PropTypes,n=c("XUISelector.react").Option;k=babelHelpers.inherits(o,c("React").Component);l=k&&k.prototype;function o(){__p&&__p();var p,q;for(var r=arguments.length,s=Array(r),t=0;t<r;t++)s[t]=arguments[t];return q=(p=l.constructor).call.apply(p,[this].concat(s)),this.$AdsCreativeCallToActionField4=function(){if(!this.props.isDisabled||!this.props.disabledHintText)return null;return c("React").createElement("div",{className:"ptm _26ju"},this.props.disabledHintText)}.bind(this),this.$AdsCreativeCallToActionField3=function(){if(!this.props.xuiError||!this.props.onRemoveInstagramPlacement)return null;return c("React").createElement("div",null,c("React").createElement(c("Link.react"),{onClick:this.props.onRemoveInstagramPlacement},i._("Remove Instagram Placement")))}.bind(this),q}o.prototype.render=function(){__p&&__p();var p=this.props.selectedType===c("AdsCallToActionTypes").TYPES.NO_BUTTON.name?null:this.props.selectedType,q=this.$AdsCreativeCallToActionField1(this.props.apiObjective,this.props.promotedObjectType,p),r=q.filter(function(u){return u.name===p});if(this.props.isReadOnly){var s=this.props.noButtonLabel;r.length>0||this.props.noButtonLabel!=null||j(0);if(r.length>0)s=r[0].text;return c("React").createElement("div",null,s)}var t=this.$AdsCreativeCallToActionField2(p,q,r);return c("React").createElement("div",null,c("React").createElement(c("XUIError.react"),this.props,c("React").createElement(c("XUISelector.react"),{className:"uiContextualLayerParent","data-testid":c("AdsTestIDs").CALL_TO_ACTION_SELECTOR,"data-unit-testid":c("AdsTestIDs").CALL_TO_ACTION_SELECTOR,disabled:!!this.props.isDisabled,id:"CTASelectorButton",position:this.props.position,size:this.props.size,value:p||"",onChange:this.props.onChange,onClick:this.props.onClick},t)),this.$AdsCreativeCallToActionField3(),this.$AdsCreativeCallToActionField4())};o.prototype.$AdsCreativeCallToActionField1=function(p,q,r){var s=p?c("AdsCallToActionUtils").typesForObjective(this.props.apiObjective,q,this.props.accountCapabilities,this.props.appDestination):c("getObjectValues")(c("AdsCallToActionTypes").TYPES),t=s.filter(function(u){return(u.name===r||!this.props.availableTypes||this.props.availableTypes.includes(u.name))&&!this.props.disabledTypes.includes(u.name)}.bind(this));return t};o.prototype.$AdsCreativeCallToActionField2=function(p,q,r){__p&&__p();var s=[],t=c("React").createElement(n,{key:"none",value:""},this.props.noButtonLabel?this.props.noButtonLabel:i._("No Button")),u=c("React").createElement(n,{key:p,value:p},p);if(!this.props.hideNoButton&&!p)s.push(t);else{if(!this.props.hideNoButton&&!this.props.isRequired)s.push(t);if(!r.length)s.push(u)}q.filter(function(v){return v.name!==c("AdsCallToActionTypes").TYPES.NO_BUTTON.name}).forEach(function(v){s.push(c("React").createElement(n,{key:v.name,value:v.name},v.text))});return s};o.propTypes={accountCapabilities:m.array,apiObjective:m.oneOf(Object.keys(c("AdsAPIObjectives"))),appDestination:m.string,availableTypes:m.array,className:m.string,disabledHintText:m.node,disabledTypes:m.arrayOf(m.string).isRequired,isDisabled:m.bool,isReadOnly:m.bool,isRequired:m.bool,noButtonLabel:m.node,position:m.oneOf(["above","below","left","right"]),promotedObjectType:m.oneOf(Object.keys(c("AdsPromotedObjectTypes"))),selectedType:m.string,size:m.string,xuiError:m.string,onChange:m.func.isRequired,onRemoveInstagramPlacement:m.func};o.defaultProps={disabledTypes:[]};f.exports=o}),null);
__d("BoostedComponentCallToActionSelector.react",["cx","fbt","AdsAPIObjectives","AdsCallToActionTypes","AdsCreativeCallToActionField.react","BoostedComponentAppID","BoostedComponentCallToActionUtils","BoostedComponentCreativeSectionStrings","BoostedComponentLabeledEditor.react","BoostedComponentStrings","ContextualLayerAutoFlip","ContextualLayerHideOnScroll","LayerFadeOnHide","React","SimpleNUXMessage","SimpleNUXMessageTypes","SUIBusinessTheme","SUIText.react","XUIAmbientNUX.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=-260;j=babelHelpers.inherits(m,c("React").Component);k=j&&j.prototype;function m(n){k.constructor.call(this,n);this.$BoostedComponentCallToActionSelector1=false;this.$BoostedComponentCallToActionSelector8=function(){var o=this.props,p=o.appID,q=o.callToActionMenuOptions,r=o.onCallToActionSelectorNuxClose,s=!!q&&q.includes(c("AdsCallToActionTypes").TYPES.WHATSAPP_MESSAGE.name),t=c("BoostedComponentCallToActionUtils").getNUXTypeForAppID(p,s);if(t&&r)r(t);if(this.$BoostedComponentCallToActionSelector1)this.setState({showNux:false})}.bind(this);this.state={showNux:false}}m.prototype.componentDidMount=function(){this.$BoostedComponentCallToActionSelector1=true;this.$BoostedComponentCallToActionSelector2()};m.prototype.componentWillReceiveProps=function(){this.$BoostedComponentCallToActionSelector2()};m.prototype.componentWillUnmount=function(){this.$BoostedComponentCallToActionSelector1=false};m.prototype.$BoostedComponentCallToActionSelector2=function(){setTimeout(function(){if(this.$BoostedComponentCallToActionSelector1)this.setState({showNux:this.$BoostedComponentCallToActionSelector3()})}.bind(this),1e3)};m.prototype.$BoostedComponentCallToActionSelector3=function(){var n=this.props,o=n.appID,p=n.callToActionMenuOptions,q=!!p&&p.includes(c("AdsCallToActionTypes").TYPES.WHATSAPP_MESSAGE.name),r=c("BoostedComponentCallToActionUtils").getNUXTypeForAppID(o,q);return r!=null&&!c("SimpleNUXMessage").hasUserSeenMessage(r)};m.prototype.$BoostedComponentCallToActionSelector4=function(){__p&&__p();var n=this.props.apiObjective,o=void 0,p=void 0;if((this.props.appID===c("BoostedComponentAppID").BOOSTED_POST||this.props.appID===c("BoostedComponentAppID").BOOSTED_LEAD_GEN)&&this.props.callToActionMenuOptions)o=this.props.callToActionMenuOptions;else if(this.props.appID===c("BoostedComponentAppID").BOOSTED_APP_INSTALL)o=[c("AdsCallToActionTypes").TYPES.DOWNLOAD.name,c("AdsCallToActionTypes").TYPES.INSTALL_MOBILE_APP.name,c("AdsCallToActionTypes").TYPES.LEARN_MORE.name];else if(this.props.appID===c("BoostedComponentAppID").BOOSTED_WEBSITE)o=[c("AdsCallToActionTypes").TYPES.APPLY_NOW.name,c("AdsCallToActionTypes").TYPES.BOOK_TRAVEL.name,c("AdsCallToActionTypes").TYPES.CONTACT_US.name,c("AdsCallToActionTypes").TYPES.DONATE_NOW.name,c("AdsCallToActionTypes").TYPES.DOWNLOAD.name,c("AdsCallToActionTypes").TYPES.LEARN_MORE.name,c("AdsCallToActionTypes").TYPES.LISTEN_MUSIC.name,c("AdsCallToActionTypes").TYPES.REQUEST_TIME.name,c("AdsCallToActionTypes").TYPES.SEE_MENU.name,c("AdsCallToActionTypes").TYPES.SHOP_NOW.name,c("AdsCallToActionTypes").TYPES.SIGN_UP.name,c("AdsCallToActionTypes").TYPES.WATCH_MORE.name];else if(this.props.appID===c("BoostedComponentAppID").BOOSTED_AUTOMATED_ADS){p=c("BoostedComponentStrings").CALL_TO_ACTION_NO_BUTTON_LABEL;switch(this.props.apiObjective){case c("AdsAPIObjectives").LOCAL_AWARENESS:case c("AdsAPIObjectives").REACH:o=[c("AdsCallToActionTypes").TYPES.CALL_NOW.name,c("AdsCallToActionTypes").TYPES.GET_DIRECTIONS.name,c("AdsCallToActionTypes").TYPES.MESSAGE_PAGE.name];break;case c("AdsAPIObjectives").WEBSITE_CONVERSIONS:o=[c("AdsCallToActionTypes").TYPES.SHOP_NOW.name,c("AdsCallToActionTypes").TYPES.LEARN_MORE.name,c("AdsCallToActionTypes").TYPES.CONTACT_US.name];break;case c("AdsAPIObjectives").LINK_CLICKS:o=[c("AdsCallToActionTypes").TYPES.APPLY_NOW.name,c("AdsCallToActionTypes").TYPES.BOOK_TRAVEL.name,c("AdsCallToActionTypes").TYPES.CONTACT_US.name,c("AdsCallToActionTypes").TYPES.DOWNLOAD.name,c("AdsCallToActionTypes").TYPES.LEARN_MORE.name,c("AdsCallToActionTypes").TYPES.SHOP_NOW.name,c("AdsCallToActionTypes").TYPES.SIGN_UP.name,c("AdsCallToActionTypes").TYPES.WATCH_MORE.name,c("AdsCallToActionTypes").TYPES.GET_OFFER.name];break;case c("AdsAPIObjectives").LEAD_GENERATION:o=[c("AdsCallToActionTypes").TYPES.APPLY_NOW.name,c("AdsCallToActionTypes").TYPES.DOWNLOAD.name,c("AdsCallToActionTypes").TYPES.GET_QUOTE.name,c("AdsCallToActionTypes").TYPES.LEARN_MORE.name,c("AdsCallToActionTypes").TYPES.SIGN_UP.name,c("AdsCallToActionTypes").TYPES.SUBSCRIBE.name];default:break}}else switch(this.props.apiObjective){case c("AdsAPIObjectives").LOCAL_AWARENESS:p=c("AdsCallToActionTypes").TYPES.LIKE_PAGE.text;o=[c("AdsCallToActionTypes").TYPES.CALL_NOW.name,c("AdsCallToActionTypes").TYPES.GET_DIRECTIONS.name,c("AdsCallToActionTypes").TYPES.LEARN_MORE.name,c("AdsCallToActionTypes").TYPES.SAVE.name,c("AdsCallToActionTypes").TYPES.MESSAGE_PAGE.name];break;default:p=undefined;break}return c("React").createElement(c("BoostedComponentLabeledEditor.react"),{className:"_1doi",label:this.props.label,tooltip:this.props.tooltip},c("React").createElement(c("AdsCreativeCallToActionField.react"),{apiObjective:n,availableTypes:o,className:"uiContextualLayerParent",disabledHintText:null,hideNoButton:this.props.hideNoButton,isDisabled:this.props.isDisabled,isReadOnly:this.props.isReadOnly,isRequired:this.props.isDefaultOptionRequired,noButtonLabel:this.props.noButtonLabel||p,position:this.props.position,ref:"ctaSelector",selectedType:this.props.selectedCallToActionType,size:"xlarge",onChange:this.props.onCallToActionChange,onClick:this.props.onCallToActionSelectorButtonClick}),this.renderLayers())};m.prototype.render=function(){__p&&__p();if(this.props.hideSelector){var n=c("AdsCallToActionTypes").TYPES,o=null;if(!(this.props.selectedCallToActionType in n))o=i._("No call to action selected or available.");else{var p=this.props.selectedCallToActionType?n[this.props.selectedCallToActionType].text:"";o=i._("Your {label} button will appear on an ad for your Page. If you'd like to change the button, edit it on your Page.",[i.param("label",c("React").createElement(c("SUIText.react"),{theme:c("SUIBusinessTheme"),weight:"bold"},p))])}return c("React").createElement(c("BoostedComponentLabeledEditor.react"),{label:this.props.label},o)}return c("React").createElement("div",null,this.$BoostedComponentCallToActionSelector4(),this.props.fieldAction)};m.prototype.renderLayers=function(){if(!this.state.showNux)return null;var n=this.props,o=n.appID,p=n.callToActionMenuOptions;switch(o){case c("BoostedComponentAppID").BOOSTED_POST:if(!!p&&p.includes(c("AdsCallToActionTypes").TYPES.WHATSAPP_MESSAGE.name)&&c("SimpleNUXMessage").hasUserSeenMessage(c("SimpleNUXMessageTypes").BOOSTED_COMPONENT_CTA_SELECTOR_NUX))return this.$BoostedComponentCallToActionSelector5();return this.$BoostedComponentCallToActionSelector6();default:return null}};m.prototype.$BoostedComponentCallToActionSelector5=function(){return this.$BoostedComponentCallToActionSelector7({ContextualLayerAutoFlip:c("ContextualLayerAutoFlip"),ContextualLayerHideOnScroll:c("ContextualLayerHideOnScroll"),LayerFadeOnHide:c("LayerFadeOnHide")},c("BoostedComponentCreativeSectionStrings").CREATIVE_WHATSAPP_CTA_NUX_HEADER,c("BoostedComponentCreativeSectionStrings").CREATIVE_WHATSAPP_CTA_NUX_BODY,"auto")};m.prototype.$BoostedComponentCallToActionSelector6=function(){return this.$BoostedComponentCallToActionSelector7({ContextualLayerAutoFlip:c("ContextualLayerAutoFlip"),ContextualLayerHideOnScroll:c("ContextualLayerHideOnScroll"),LayerFadeOnHide:c("LayerFadeOnHide")},c("BoostedComponentStrings").CREATIVE_CTA_NUX_HEADER,c("BoostedComponentStrings").CREATIVE_CTA_NUX_BODY,"normal")};m.prototype.$BoostedComponentCallToActionSelector7=function(n,o,p,q){var r=function(){return this.refs.ctaSelector}.bind(this),s=o!=null?c("React").createElement("div",{className:"_1dul"},o):null;return c("React").createElement(c("XUIAmbientNUX.react"),{behaviors:n,contextRef:r,key:"ctaSelectorNUX",offsetX:l,position:"right",shown:this.state.showNux,width:q,onCloseButtonClick:this.$BoostedComponentCallToActionSelector8},s,c("React").createElement("div",{className:"_1duk"},p))};f.exports=m}),null);
__d("BoostedComponentWelcomeMessageEditor.react",["AdsTextInput.react","BoostedComponentCreativeSectionStrings","BoostedComponentLabeledEditor.react","BoostedComponentStrings","immutable","React"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("React").Component);i=h&&h.prototype;j.prototype.render=function(){var k=this.props.welcomeMessage?this.props.welcomeMessage.length:0;return c("React").createElement(c("BoostedComponentLabeledEditor.react"),{counterLimit:c("BoostedComponentCreativeSectionStrings").MAX_LENGTH,counterValue:k,descriptionText:c("BoostedComponentCreativeSectionStrings").WELCOME_MESSAGE_EDITOR_DESCRIPTION,label:c("BoostedComponentCreativeSectionStrings").WELCOME_MESSAGE_EDITOR_LABEL,showCounter:true,tooltip:c("BoostedComponentStrings").getWelcomeMessageInputBoxTooltip()},c("React").createElement(c("AdsTextInput.react"),{errors:this.props.welcomeMessageErrors&&this.props.welcomeMessageErrors.toObject(),multiline:false,placeholder:c("BoostedComponentCreativeSectionStrings").CALL_TO_ACTION_SEND_MESSAGE_PLACEHOLDER,value:this.props.welcomeMessage,onChange:this.props.onWelcomeMessageChange}))};function j(){h.apply(this,arguments)}f.exports=j}),null);
__d("BoostedComponentCreativeUtils",["BoostedComponentAppID","BoostedComponentAppIDUtils"],(function a(b,c,d,e,f,g){"use strict";var h=c("BoostedComponentAppIDUtils").isBoostedActionBasedAppID,i=function i(j){return h(j)||j===c("BoostedComponentAppID").BOOSTED_EVENT||j===c("BoostedComponentAppID").BOOSTED_GROUP};f.exports={useBoostedActionCreativeStore:i}}),null);
__d("BoostedComponentWhatsAppCTAEditorContainer.react",["AdsFluxContainer","AdsLWIInstanceUtils","ApiCallToActionFields","BoostedComponentContainerUtils","BoostedComponentContextStoreV2","BoostedComponentCreativeUtils","BoostedComponentErrorBoundaryContainer.react","BoostedComponentWhatsAppCTAEditor.react","BoostedPostCreativeStoreV2","CallToActionValueFields","React","adsLWICurrentInstanceDataSelector","getByPath"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("AdsLWIInstanceUtils").getKeyFromInstanceData,k=c("BoostedComponentContainerUtils").isDataLoaded,l=c("BoostedComponentCreativeUtils").useBoostedActionCreativeStore;h=babelHelpers.inherits(m,c("React").Component);i=h&&h.prototype;function m(){var n,o;for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=i.constructor).call.apply(n,[this].concat(q)),this.state={dataLoaded:false,isReadOnlyMode:false,isValidatingVerificationCode:false,isVerifyingWhatsAppNumberOnServer:false,initialCountryCode:"",pageToken:"",showSuccessBanner:false,showVerificationDialog:false,verificationStatus:null,verifiedWhatsappNumber:null},o}m.getStores=function(){return[].concat(c("adsLWICurrentInstanceDataSelector").getStores(),[c("BoostedComponentContextStoreV2"),c("BoostedPostCreativeStoreV2")])};m.calculateState=function(n,o){__p&&__p();var p=o.appID,q=o.targetID,r=o.boostID,s=j(p,q,r),t=c("BoostedComponentContextStoreV2").getDataByKey(s),u=void 0,v=void 0;if(!l(p)){u=c("BoostedPostCreativeStoreV2").getDataByKey(s);v=k([t,u])}else v=k([t]);if(!v)return babelHelpers["extends"]({},n,{dataLoaded:v});var w=t.getBoostedPostPageInfo(),x=w&&w.get("initial_country_code")?w.get("initial_country_code"):"US",y=w&&w.get("page_token")?w.get("page_token"):"",z=u?u.get("whatsapp_cta_specs"):null,A=z?z.get("isValidatingVerificationCode"):false,B=z?z.get("isVerifyingWhatsAppNumberOnServer"):false,C=z?z.get("verificationStatus"):null,D=z?z.get("verificationDialogShown"):false,E=z?z.get("isReadOnlyMode"):false,F=z?z.get("showSuccessBanner"):false,G=u?u.getCallToAction():null,H=G?c("getByPath")(G.toJS(),[c("ApiCallToActionFields").VALUE,c("CallToActionValueFields").WHATSAPP_NUMBER]):null;return{dataLoaded:v,isReadOnlyMode:E,isValidatingVerificationCode:A,isVerifyingWhatsAppNumberOnServer:B,initialCountryCode:x,pageToken:y,showSuccessBanner:F,showVerificationDialog:D,verificationStatus:C,verifiedWhatsappNumber:H}};m.prototype.render=function(){var n=this.state,o=n.dataLoaded,p=n.isReadOnlyMode,q=n.isValidatingVerificationCode,r=n.isVerifyingWhatsAppNumberOnServer,s=n.initialCountryCode,t=n.pageToken,u=n.showSuccessBanner,v=n.showVerificationDialog,w=n.verificationStatus,x=n.verifiedWhatsappNumber;if(!o)return null;var y=this.props,z=y.appID,A=y.boostID,B=y.targetID;return c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentWhatsAppCTAEditor"},c("React").createElement(c("BoostedComponentWhatsAppCTAEditor.react"),{appID:z,boostID:A,initialCountryCode:s,isReadOnlyMode:p,isValidatingVerificationCode:q,isVerifyingWhatsAppNumberOnServer:r,pageToken:t,showSuccessBanner:u,showVerificationDialog:v,targetID:B,verificationStatus:w,verifiedWhatsappNumber:x}))};f.exports=c("AdsFluxContainer").create(m,{withProps:true,name:f.id})}),null);
__d("BoostedLocalAwarenessMapCardEditor.react",["cx","fbt","BoostedComponentContent.react","InputLabel.react","React","XUICheckboxInput.react"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("React").Component,m=c("React").PropTypes;j=babelHelpers.inherits(n,l);k=j&&j.prototype;function n(){var o,p;for(var q=arguments.length,r=Array(q),s=0;s<q;s++)r[s]=arguments[s];return p=(o=k.constructor).call.apply(o,[this].concat(r)),this.$BoostedLocalAwarenessMapCardEditor1=function(t){if(t.target.checked)this.props.onEnable();else this.props.onDisable()}.bind(this),p}n.prototype.render=function(){return c("React").createElement(c("BoostedComponentContent.react"),{className:"_5soe"},c("React").createElement(c("InputLabel.react"),{label:i._("Include a map card that shows your business location")},c("React").createElement(c("XUICheckboxInput.react"),{checked:this.props.value,className:"_3-90",onChange:this.$BoostedLocalAwarenessMapCardEditor1})))};n.propTypes={value:m.bool.isRequired,onDisable:m.func.isRequired,onEnable:m.func.isRequired};f.exports=n}),null);
__d("BoostedComponentCallToActionEditor.react",["cx","fbt","AdsAPIObjectives","AdsCallToActionTypes","AdsTextInput.react","ApiCallToActionFields","BoostedAutomatedAdsStrings","BoostedComponentAppID","BoostedComponentCallToActionSelector.react","BoostedComponentContent.react","BoostedComponentCreativeSectionStrings","BoostedComponentCTAPlaceEditor.react","BoostedComponentLabeledEditor.react","BoostedComponentLeadGenUtils","BoostedComponentQEs","BoostedComponentQEUtils","BoostedComponentStrings","BoostedComponentWelcomeMessageEditor.react","BoostedComponentWhatsAppCTAEditorContainer.react","BoostedLocalAwarenessMapCardEditor.react","CallToActionValueFields","Link.react","PostAttachmentTypes","React","SUIBusinessTheme","SUIText.react","getByPath"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("BoostedComponentLeadGenUtils").isOnFacebookLeadGenPlacement;j=babelHelpers.inherits(m,c("React").Component);k=j&&j.prototype;m.prototype.render=function(){__p&&__p();var n=void 0,o=false,p=false,q=undefined,r=false;switch(this.props.appID){case c("BoostedComponentAppID").BOOSTED_LEAD_GEN:n=c("AdsAPIObjectives").LEAD_GENERATION;if(this.props.isBoosted)o=true;r=true;break;case c("BoostedComponentAppID").BOOSTED_LOCAL_AWARENESS:n=c("AdsAPIObjectives").LOCAL_AWARENESS;if(this.props.isBoosted)o=true;if(this.props.products&&this.props.products.length>1)q=c("BoostedComponentStrings").CALL_TO_ACTION_NO_BUTTON_LABEL;break;case c("BoostedComponentAppID").BOOSTED_EVENT:n=c("AdsAPIObjectives").EVENT_RESPONSES;break;case c("BoostedComponentAppID").BOOSTED_CCTA:case c("BoostedComponentAppID").BOOSTED_PAGE:n=c("AdsAPIObjectives").LINK_CLICKS;o=true;p=true;break;case c("BoostedComponentAppID").BOOSTED_WEBSITE:n=c("AdsAPIObjectives").LINK_CLICKS;r=true;break;case c("BoostedComponentAppID").BOOSTED_PAGELIKE:n=c("AdsAPIObjectives").PAGE_LIKES;break;case c("BoostedComponentAppID").BOOSTED_AUTOMATED_ADS:n=this.props.apiObjective;o=!!this.props.readOnly;break;case c("BoostedComponentAppID").BOOSTED_POST:n=null;break;case c("BoostedComponentAppID").BOOSTED_APP_INSTALL:n=c("AdsAPIObjectives").APP_INSTALLS;r=true;break;default:n=c("AdsAPIObjectives").NONE}return c("React").createElement("div",{onKeyDown:this.$BoostedComponentCallToActionEditor1},c("React").createElement(c("BoostedComponentContent.react"),{className:"_5sa6"},c("React").createElement(c("BoostedComponentCallToActionSelector.react"),{apiObjective:n,appID:this.props.appID,callToActionMenuOptions:this.props.callToActionMenuOptions,descriptionText:this.$BoostedComponentCallToActionEditor2(),enableLocalAwarenessSaveCTA:this.props.enableLocalAwarenessSaveCTA,fieldAction:this.props.fieldAction,hideNoButton:this.props.hideNoButton,hideSelector:p,isDefaultOptionRequired:r,isDisabled:!!this.props.disableButtonOptions,isReadOnly:o,label:c("BoostedComponentStrings").getCallToActionSelectorLabel(this.props.appID,this.props.hideSelectorLabel),noButtonLabel:q,position:this.props.position,selectedCallToActionType:this.props.callToAction&&this.props.callToAction.type,showNUXForLocalAwarenessSaveCTA:this.props.showNUXForLocalAwarenessSaveCTA,tooltip:o?undefined:c("BoostedComponentStrings").getCallToActionSelectorTooltip(this.props.appID),onCallToActionChange:this.props.onCTATypeChange,onCallToActionSelectorButtonClick:this.props.onCTASelectorButtonClick,onCallToActionSelectorNuxClose:this.props.onCTASelectorNuxClose}),this.$BoostedComponentCallToActionEditor3(),this.$BoostedComponentCallToActionEditor4(),this.$BoostedComponentCallToActionEditor5(),this.$BoostedComponentCallToActionEditor6(),this.$BoostedComponentCallToActionEditor7(),this.$BoostedComponentCallToActionEditor8(),this.$BoostedComponentCallToActionEditor9(),this.$BoostedComponentCallToActionEditor10()),this.$BoostedComponentCallToActionEditor11())};m.prototype.$BoostedComponentCallToActionEditor11=function(){var n=this.props.callToAction,o=n?n.type:null,p=c("BoostedComponentQEUtils").getQE(c("BoostedComponentQEs").BOOSTED_ACTIONS_V2_UNIVERSE).getParamBool("use_v2",false),q=c("BoostedComponentQEUtils").getQE(c("BoostedComponentQEs").BOOSTED_SEND_MESSAGE_CTA_WELCOME_MESSAGE_V1_QE).getParamBool("enabled",false);if(p&&q&&(this.props.appID===c("BoostedComponentAppID").BOOSTED_CCTA||this.props.appID===c("BoostedComponentAppID").BOOSTED_PAGE)&&o===c("AdsCallToActionTypes").TYPES.MESSAGE_PAGE.name)return c("React").createElement(c("BoostedComponentContent.react"),{className:"_2els"},c("React").createElement(c("BoostedComponentWelcomeMessageEditor.react"),{welcomeMessage:this.props.welcomeMessage,welcomeMessageErrors:this.props.welcomeMessageErrors,onWelcomeMessageChange:this.props.onCTAWelcomeMessageChange}));return null};m.prototype.$BoostedComponentCallToActionEditor9=function(){var n=this.props,o=n.callToAction,p=n.postTypeEligibleForCTA,q=n.placement,r=o?o.type:null,s=c("AdsCallToActionTypes").TYPES;if(this.props.appID===c("BoostedComponentAppID").BOOSTED_POST&&p===c("PostAttachmentTypes").SINGLE_SHARE&&(r===s.SHOP_NOW.name||r===s.BOOK_TRAVEL.name||r===s.LEARN_MORE.name||r===s.SIGN_UP.name))return c("React").createElement("div",{className:"_1xxe"},c("BoostedComponentStrings").CALL_TO_ACTION_LINK_DEFAULT_DESCRIPTION_FOR_BOOSTED_POST);if(this.props.appID===c("BoostedComponentAppID").BOOSTED_LEAD_GEN){var t=c("BoostedComponentStrings").getBoostedLeadGenCTAButtonNotice(r,l(q));return c("React").createElement("div",{className:"_1xxe"},t)}return null};m.prototype.$BoostedComponentCallToActionEditor1=function(event){if(event.key==="ArrowLeft"||event.key==="ArrowRight")event.stopPropagation()};m.prototype.$BoostedComponentCallToActionEditor2=function(){var n=this.props,o=n.callToAction,p=n.postTypeEligibleForCTA;if(this.props.appID===c("BoostedComponentAppID").BOOSTED_POST&&(p===c("PostAttachmentTypes").SINGLE_VIDEO&&o||p===c("PostAttachmentTypes").SINGLE_SHARE&&o&&(o.type===c("AdsCallToActionTypes").TYPES.CALL_NOW.name||o.type===c("AdsCallToActionTypes").TYPES.GET_DIRECTIONS.name||o.type===c("AdsCallToActionTypes").TYPES.MESSAGE_PAGE.name)))return null;return c("BoostedComponentStrings").getCallToActionSelectorDescriptionText(this.props.appID)};m.prototype.$BoostedComponentCallToActionEditor3=function(){if(this.props.callToAction==null||this.props.callToAction.type!==c("AdsCallToActionTypes").TYPES.SAVE.name)return null;return c("BoostedComponentStrings").getCallToActionSaveDescription(this.props.appID)};m.prototype.$BoostedComponentCallToActionEditor4=function(){if(!this.props.callToAction||this.props.callToAction.type!==c("AdsCallToActionTypes").TYPES.MESSAGE_PAGE.name)return null;if(this.props.messagingSettingLinkEnabled===true)return c("React").createElement("div",null,i._("{Change settings link} to allow people to send private messages to your Page",[i.param("Change settings link",c("React").createElement(c("Link.react"),{onClick:this.props.onMessageSettingLinkClick},"Click here"))]));return null};m.prototype.$BoostedComponentCallToActionEditor5=function(){if(!this.props.callToAction||this.props.callToAction.type!==c("AdsCallToActionTypes").TYPES.CALL_NOW.name)return null;var n=null;if(this.props.appID===c("BoostedComponentAppID").BOOSTED_CCTA||this.props.appID===c("BoostedComponentAppID").BOOSTED_PAGE)n=this.props.displayPhoneNumber;else n=c("React").createElement(c("AdsTextInput.react"),{errors:this.props.validateCallToAction&&this.props.validateCallToAction(this.props.callToAction)||this.props.callToActionErrors&&this.props.callToActionErrors.toObject(),multiline:false,placeholder:c("BoostedComponentStrings").CALL_TO_ACTION_PHONE_NUMBER_PLACEHOLDER,value:this.props.displayPhoneNumber,onChange:this.props.onPhoneNumberChanged});return c("React").createElement(c("BoostedComponentLabeledEditor.react"),{descriptionText:c("BoostedComponentStrings").CALL_TO_ACTION_CALL_NOW_DESCRIPTION,label:c("BoostedComponentStrings").CALL_TO_ACTION_PHONE_NUMBER_LABEL,tooltip:c("BoostedComponentStrings").getCallToActionCallNowTooltip(this.props.appID)},n)};m.prototype.$BoostedComponentCallToActionEditor6=function(){var n=this.props,o=n.appID,p=n.boostID,q=n.targetID;if(o===c("BoostedComponentAppID").BOOSTED_PAGE||!this.props.callToAction||this.props.callToAction.type!==c("AdsCallToActionTypes").TYPES.WHATSAPP_MESSAGE.name)return null;return c("React").createElement(c("BoostedComponentWhatsAppCTAEditorContainer.react"),{appID:o,boostID:p,targetID:q})};m.prototype.$BoostedComponentCallToActionEditor7=function(){if(!this.props.callToAction||this.props.callToAction.type!==c("AdsCallToActionTypes").TYPES.GET_DIRECTIONS.name)return null;return c("React").createElement(c("BoostedComponentCTAPlaceEditor.react"),{appID:this.props.appID,ctaLink:c("getByPath")(this.props.callToAction,[c("ApiCallToActionFields").VALUE,c("CallToActionValueFields").LINK]),defaultCity:this.props.defaultCity.hasValue()?this.props.defaultCity.value.city:undefined,isLoading:this.props.defaultCity.isLoading(),pageAccessToken:this.props.pageAccessToken,pageID:this.props.pageID,userID:this.props.userID,onCTALinkChange:this.props.onCTALinkChange,onEditAddressClick:this.props.onEditAddressClick})};m.prototype.$BoostedComponentCallToActionEditor8=function(){__p&&__p();var n=this.props,o=n.appID,p=n.callToAction;if(!p||o===c("BoostedComponentAppID").BOOSTED_CCTA||o===c("BoostedComponentAppID").BOOSTED_LEAD_GEN||o===c("BoostedComponentAppID").BOOSTED_PAGE||o===c("BoostedComponentAppID").BOOSTED_WEBSITE||o===c("BoostedComponentAppID").BOOSTED_APP_INSTALL||o===c("BoostedComponentAppID").BOOSTED_AUTOMATED_ADS&&(this.props.apiObjective===c("AdsAPIObjectives").LINK_CLICKS||this.props.apiObjective===c("AdsAPIObjectives").WEBSITE_CONVERSIONS))return null;switch(o){case c("BoostedComponentAppID").BOOSTED_POST:if(!this.props.postTypeEligibleForCTA||this.props.postTypeEligibleForCTA===c("PostAttachmentTypes").SINGLE_SHARE||p.type!==c("AdsCallToActionTypes").TYPES.BOOK_TRAVEL.name&&p.type!==c("AdsCallToActionTypes").TYPES.LEARN_MORE.name&&p.type!==c("AdsCallToActionTypes").TYPES.SHOP_NOW.name&&p.type!==c("AdsCallToActionTypes").TYPES.SIGN_UP.name&&p.type!==c("AdsCallToActionTypes").TYPES.GET_OFFER.name&&p.type!==c("AdsCallToActionTypes").TYPES.MESSAGE_PAGE.name)return null;var q=false;if(p.type===c("AdsCallToActionTypes").TYPES.MESSAGE_PAGE.name)if(!this.props.messagingSettingLinkEnabled&&q){var r=this.props.welcomeMessage?this.props.welcomeMessage.length:0;return c("React").createElement(c("BoostedComponentLabeledEditor.react"),{counterLimit:c("BoostedComponentCreativeSectionStrings").MAX_LENGTH,counterValue:r,descriptionText:c("BoostedComponentCreativeSectionStrings").WELCOME_MESSAGE_EDITOR_DESCRIPTION,label:c("BoostedComponentCreativeSectionStrings").WELCOME_MESSAGE_EDITOR_LABEL,tooltip:c("BoostedComponentStrings").getWelcomeMessageInputBoxTooltip()},c("React").createElement(c("AdsTextInput.react"),{errors:this.props.welcomeMessageErrors&&this.props.welcomeMessageErrors.toObject(),multiline:false,placeholder:c("BoostedComponentCreativeSectionStrings").CALL_TO_ACTION_SEND_MESSAGE_PLACEHOLDER,showCounter:true,value:this.props.welcomeMessage,onChange:this.props.onCTAWelcomeMessageChange}))}else return null;return c("React").createElement(c("BoostedComponentLabeledEditor.react"),{descriptionText:c("BoostedComponentStrings").CALL_TO_ACTION_LINK_EDITOR_DESCRIPTION,label:c("BoostedComponentStrings").CALL_TO_ACTION_LINK_EDITOR_LABEL,tooltip:c("BoostedComponentStrings").getCallToActionLinkEditorTooltip(this.props.appID)},c("React").createElement(c("AdsTextInput.react"),{disabled:!!this.props.disableButtonOptions,errors:this.props.validateCallToAction&&this.props.validateCallToAction(p)||this.props.callToActionErrors&&this.props.callToActionErrors.toObject(),multiline:false,placeholder:c("BoostedComponentStrings").CALL_TO_ACTION_LEARN_MORE_PLACEHOLDER,value:c("getByPath")(p,[c("ApiCallToActionFields").VALUE,c("CallToActionValueFields").LINK]),onChange:this.props.onCTALinkChange}));case c("BoostedComponentAppID").BOOSTED_AUTOMATED_ADS:if(p.type!==c("AdsCallToActionTypes").TYPES.LEARN_MORE.name&&p.type!==c("AdsCallToActionTypes").TYPES.SHOP_NOW.name&&p.type!==c("AdsCallToActionTypes").TYPES.CONTACT_US.name||this.props.apiObjective===c("AdsAPIObjectives").LEAD_GENERATION)return null;return c("React").createElement(c("BoostedComponentContent.react"),null,c("React").createElement(c("BoostedComponentLabeledEditor.react"),{label:c("BoostedAutomatedAdsStrings").DESTINATION_FOR_CTA_BUTTON_LABEL},c("React").createElement("div",{className:"_5yba"},c("getByPath")(p,[c("ApiCallToActionFields").VALUE,c("CallToActionValueFields").LINK])),this.$BoostedComponentCallToActionEditor12()));default:if(p.type!==c("AdsCallToActionTypes").TYPES.LEARN_MORE.name&&p.type!==c("AdsCallToActionTypes").TYPES.SHOP_NOW.name&&p.type!==c("AdsCallToActionTypes").TYPES.CONTACT_US.name)return null;return c("React").createElement(c("BoostedComponentLabeledEditor.react"),{label:c("BoostedComponentStrings").CALL_TO_ACTION_LEARN_MORE_LABEL,tooltip:c("BoostedComponentStrings").CALL_TO_ACTION_LEARN_MORE_TOOLTIP},c("React").createElement(c("AdsTextInput.react"),{errors:this.props.validateCallToAction&&this.props.validateCallToAction(p)||this.props.callToActionErrors&&this.props.callToActionErrors.toObject(),multiline:false,placeholder:c("BoostedComponentStrings").CALL_TO_ACTION_LEARN_MORE_PLACEHOLDER,value:c("getByPath")(p,[c("ApiCallToActionFields").VALUE,c("CallToActionValueFields").LINK]),onChange:this.props.onCTALinkChange}))}};m.prototype.$BoostedComponentCallToActionEditor12=function(){if(this.props.isBoosted)return null;return c("React").createElement(c("SUIText.react"),{display:"block",shade:"light",size:"meta1",theme:c("SUIBusinessTheme")},c("BoostedComponentStrings").BOOSTED_AUTOMATED_ADS_URL_UNEDITABLE_WARNING)};m.prototype.$BoostedComponentCallToActionEditor10=function(){if(!this.props.shouldRenderMapCard)return null;return c("React").createElement(c("BoostedLocalAwarenessMapCardEditor.react"),{value:this.props.hasMapCard,onDisable:this.props.onDisableMapCard,onEnable:this.props.onEnableMapCard})};function m(){j.apply(this,arguments)}f.exports=m}),null);
__d("BoostedComponentAddButtonCard.react",["cx","fbt","AdsCallToActionTypes","BoostedComponentCallToActionEditor.react","BoostedComponentCallToActionField","BoostedComponentContentV2.react","BoostedComponentLabeledEditor.react","BoostedComponentStrings","React","XUIRadioList.react","getByPath"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("XUIRadioList.react").Item,m="NO_BUTTON",n="ADS",o=function o(q){return c("React").createElement("div",{className:"_871"},i._("Add a button so people can take an action when they see your post."))};j=babelHelpers.inherits(p,c("React").Component);k=j&&j.prototype;function p(q){__p&&__p();k.constructor.call(this,q);this.state={selectedRadioListValue:null,showDescription:true};this.$BoostedComponentAddButtonCard1=function(r){__p&&__p();var s=this.props,t=s.instantWorkflowCTAMenuOptionsSpecs,u=s.onCTAChange,v=s.onCTATypeChange;this.setState({selectedRadioListValue:r});if(r===m){this.setState({showDescription:true});v("")}else if(r===n){u(this.$BoostedComponentAddButtonCard2());this.setState({showDescription:false})}else{if(t){var w=c("getByPath")(t,[r,c("BoostedComponentCallToActionField").CTA_DATA]);if(w)u(w)}this.setState({showDescription:true})}}.bind(this);this.state={selectedRadioListValue:m,showDescription:true}}p.prototype.$BoostedComponentAddButtonCard3=function(){return c("React").createElement(l,{disabled:!!this.props.disableButtonOptions,key:m,value:m},c("React").createElement("div",{className:"_1fzr"},i._("No button")))};p.prototype.$BoostedComponentAddButtonCard4=function(){var q=this.props,r=q.disableButtonOptions,s=q.showAdsCTA;if(!s)return null;var t=this.state.selectedRadioListValue,u=null;if(t===n)u=this.$BoostedComponentAddButtonCard5(true,true,!!r);return c("React").createElement(l,{disabled:!!r,key:n,value:n},c("React").createElement("div",{className:"_1fzr"},i._("Choose a different button")),u)};p.prototype.$BoostedComponentAddButtonCard6=function(){var q=this.props,r=q.disableButtonOptions,s=q.instantWorkflowCTAMenuOptionsSpecs;if(!s)return null;var t=Object.keys(s).map(function(u){var v=c("getByPath")(c("AdsCallToActionTypes"),["TYPES",u,"text"]);return c("React").createElement(l,{disabled:!!r,key:u,value:u},c("React").createElement("div",{className:"_1fzr"},i._("Add my Page's {Call to action button label} button",[i.param("Call to action button label",c("React").createElement("b",null,v))])))});return t};p.prototype.$BoostedComponentAddButtonCard5=function(q,r,s){var t=this.props,u=t.adsCTAMenuOptionsSpecs,v=t.callToAction,w=t.callToActionErrors,x=babelHelpers.objectWithoutProperties(t,["adsCTAMenuOptionsSpecs","callToAction","callToActionErrors"]),y=q&&!v?this.$BoostedComponentAddButtonCard2():v;return c("React").createElement(c("BoostedComponentContentV2.react"),{className:"_1vtn"},c("React").createElement(c("BoostedComponentCallToActionEditor.react"),babelHelpers["extends"]({callToAction:y,callToActionErrors:w,callToActionMenuOptions:u?Object.keys(u):null,disableButtonOptions:!!s,hideNoButton:q,hideSelectorLabel:r},x)))};p.prototype.$BoostedComponentAddButtonCard2=function(){var q=this.props.adsCTAMenuOptionsSpecs;return q?q[c("AdsCallToActionTypes").TYPES.LEARN_MORE.name]:null};p.prototype.render=function(){var q=this.props,r=q.disableButtonOptions,s=q.showInstantWorkflowCTA;if(!s)return this.$BoostedComponentAddButtonCard5(false,false,!!r);var t=this.state.showDescription?c("React").createElement(o,null):null;return c("React").createElement("div",null,c("React").createElement(c("BoostedComponentLabeledEditor.react"),{className:"_1vtn",label:c("BoostedComponentStrings").CREATIVE_CTA_LABEL_FOR_POST,tooltip:c("BoostedComponentStrings").CREATIVE_CTA_TOOLTIP_FOR_POST_V2},c("React").createElement(c("XUIRadioList.react"),{className:"_1fzt",selectedValue:this.state.selectedRadioListValue,onValueChange:this.$BoostedComponentAddButtonCard1},this.$BoostedComponentAddButtonCard3(),this.$BoostedComponentAddButtonCard6(),this.$BoostedComponentAddButtonCard4())),t)};f.exports=p}),null);
__d("BoostedComponentCallToActionEditorContainer.react",["fbt","AdsCallToActionTypes","AdsFluxContainer","AdsLWIInstanceUtils","ApiCallToActionFields","BoostedActionCreativeStoreV2","BoostedComponentAddButtonCard.react","BoostedComponentAppID","BoostedComponentAppIDUtils","BoostedComponentContainerUtils","BoostedComponentContextStoreV2","BoostedComponentCreativeActionsV2","BoostedComponentCreativeSectionStrings","BoostedComponentErrorBoundaryContainer.react","BoostedComponentNewAdInfoStoreV2","BoostedComponentObjective","BoostedComponentQEs","BoostedComponentQEUtils","BoostedComponentValidationStoreV2","BoostedPostCreativeStoreV2","CallToActionValueFields","immutable","LoadObject","PostAttachmentTypes","React","SimpleNUXMessage","SUIBusinessTheme","SUINotice.react","URI","adsLWICurrentInstanceDataSelector"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("AdsLWIInstanceUtils").getKeyFromInstanceData,l=c("BoostedComponentContainerUtils").isDataLoaded,m=c("BoostedComponentCreativeSectionStrings").getCallToActionNameFromType,n=c("BoostedComponentCreativeActionsV2").onToggleCallToActionSelector,o=c("BoostedComponentCreativeActionsV2").fetchDefaultCity,p=c("BoostedComponentCreativeActionsV2").requestEnablePageMessaging,q=c("BoostedComponentCreativeActionsV2").onCallToActionChange,r=c("BoostedComponentCreativeActionsV2").onCallToActionLinkChange,s=c("BoostedComponentCreativeActionsV2").onWelcomeMessageChange,t=function t(w){if(!w||w.get("type")!==c("AdsCallToActionTypes").TYPES.CALL_NOW.name)return null;var x=w.getIn(["value","link"]);if(!x||x.indexOf("tel:")!==0)return null;return x},u=function u(w){__p&&__p();var x=w.objective,y=w.ctaType,z=m(y),A=false;switch(x){case c("BoostedComponentObjective").SEND_MESSAGE:A=y===c("AdsCallToActionTypes").TYPES.MESSAGE_PAGE.name;break;case c("BoostedComponentObjective").GET_BOOKINGS:A=y===c("AdsCallToActionTypes").TYPES.BOOK_TRAVEL.name||y===c("AdsCallToActionTypes").TYPES.REQUEST_TIME.name;break;default:break}if(!A||!z)return null;var B=void 0;switch(x){case c("BoostedComponentObjective").SEND_MESSAGE:B=h._("The objective you selected for this ad requires the {=[call to action type name]} button. If you want to change this button text, select a different objective.",[h.param("=[call to action type name]",c("React").createElement("b",null,h._("{call to action type name}",[h.param("call to action type name",z)])))]);break;case c("BoostedComponentObjective").GET_BOOKINGS:B=h._("The objective you selected for this ad requires your Page's {=[call to action type name]} button. If you want to change this button text, select a different objective.",[h.param("=[call to action type name]",c("React").createElement("b",null,h._("{call to action type name}",[h.param("call to action type name",z)])))]);break;default:return null}return c("React").createElement(c("SUINotice.react"),{style:{marginLeft:"12px",marginRight:"12px"},theme:c("SUIBusinessTheme"),type:"information"},B)};i=babelHelpers.inherits(v,c("React").Component);j=i&&i.prototype;function v(){__p&&__p();var w,x;for(var y=arguments.length,z=Array(y),A=0;A<y;A++)z[A]=arguments[A];return x=(w=j.constructor).call.apply(w,[this].concat(z)),this.state={adsCTAMenuOptionsSpecs:null,callToAction:c("immutable").Map(),callToActionErrors:c("immutable").List(),dataLoaded:false,defaultCity:c("LoadObject").empty(),disableButtonOptions:false,displayPhoneNumber:null,instantWorkflowCTAMenuOptionsSpecs:null,isEligibleForAdsCTA:false,isEligibleForInstantWorkflowCTA:false,messagingSettingLinkEnabled:false,objective:null,pageAccessToken:"",postTypeEligibleForCTA:null,childAttachments:null,userID:"",welcomeMessage:null,welcomeMessageErrors:c("immutable").List(),ctaLink:null},this.$BoostedComponentCallToActionEditorContainer2=function(){n(this.props.appID,this.props.targetID,this.props.boostID)}.bind(this),this.$BoostedComponentCallToActionEditorContainer3=function(){o(this.props.pageID,this.props.appID,this.props.targetID,this.props.boostID)}.bind(this),this.$BoostedComponentCallToActionEditorContainer4=function(){var B=this.state.callToAction;p(B&&B.get(c("ApiCallToActionFields").TYPE),this.state.pageAccessToken,this.props.pageID,this.props.appID,this.props.targetID,this.props.boostID)}.bind(this),this.$BoostedComponentCallToActionEditorContainer5=function(B){__p&&__p();var C=this.state.callToAction;if(!C)return;var D=C.get(c("ApiCallToActionFields").TYPE),E=C.get(c("ApiCallToActionFields").VALUE);if(!E)C=C.set(c("ApiCallToActionFields").VALUE,c("immutable").Map());C=C.setIn([c("ApiCallToActionFields").VALUE,c("CallToActionValueFields").LINK],B);if(this.state.postTypeEligibleForCTA===c("PostAttachmentTypes").SINGLE_VIDEO)switch(D){case c("AdsCallToActionTypes").TYPES.BOOK_TRAVEL.name:case c("AdsCallToActionTypes").TYPES.LEARN_MORE.name:case c("AdsCallToActionTypes").TYPES.SHOP_NOW.name:case c("AdsCallToActionTypes").TYPES.SIGN_UP.name:var F=new(c("URI"))(B);C=C.setIn([c("ApiCallToActionFields").VALUE,c("CallToActionValueFields").CAPTION],F.getDomain());break;default:break}q(C,this.props.appID,this.props.targetID,this.props.boostID,this.props.pageID,this.state.pageAccessToken);if(this.state.postTypeEligibleForCTA!==c("PostAttachmentTypes").SINGLE_SHARE&&this.props.appID===c("BoostedComponentAppID").BOOSTED_POST)switch(D){case c("AdsCallToActionTypes").TYPES.BOOK_TRAVEL.name:case c("AdsCallToActionTypes").TYPES.LEARN_MORE.name:case c("AdsCallToActionTypes").TYPES.SHOP_NOW.name:case c("AdsCallToActionTypes").TYPES.SIGN_UP.name:case c("AdsCallToActionTypes").TYPES.GET_OFFER.name:r(B,this.props.appID,this.props.targetID,this.props.boostID);break;default:break}}.bind(this),this.$BoostedComponentCallToActionEditorContainer6=function(B){s(B,this.props.appID,this.props.targetID,this.props.boostID,this.props.pageID,this.state.pageAccessToken)}.bind(this),this.$BoostedComponentCallToActionEditorContainer7=function(B){q(c("immutable").fromJS(B),this.props.appID,this.props.targetID,this.props.boostID,this.props.pageID,this.state.pageAccessToken)}.bind(this),this.$BoostedComponentCallToActionEditorContainer8=function(B){__p&&__p();var C=this.state,D=C.adsCTAMenuOptionsSpecs,E=C.ctaLink,F=null,G=B.value;if(D)F=D.get(G);if(!F&&G){F={};F[c("ApiCallToActionFields").TYPE]=G;F[c("ApiCallToActionFields").VALUE]={}}if(F&&E!==null&&this.state.postTypeEligibleForCTA!==c("PostAttachmentTypes").SINGLE_SHARE&&(G===c("AdsCallToActionTypes").TYPES.BOOK_TRAVEL.name||G===c("AdsCallToActionTypes").TYPES.LEARN_MORE.name||G===c("AdsCallToActionTypes").TYPES.SHOP_NOW.name||G===c("AdsCallToActionTypes").TYPES.SIGN_UP.name)){var H=F.getIn([c("ApiCallToActionFields").VALUE,c("CallToActionValueFields").LINK]);if(E!==H)F=F.setIn([c("ApiCallToActionFields").VALUE,c("CallToActionValueFields").LINK],E)}q(c("immutable").fromJS(F),this.props.appID,this.props.targetID,this.props.boostID,this.props.pageID,this.state.pageAccessToken)}.bind(this),this.$BoostedComponentCallToActionEditorContainer9=function(B){var C=this.state.callToAction;if(!C)return;C=C.setIn([c("ApiCallToActionFields").VALUE,c("CallToActionValueFields").LINK],"tel:"+B);q(C,this.props.appID,this.props.targetID,this.props.boostID,this.props.pageID,this.state.pageAccessToken)}.bind(this),x}v.getStores=function(){return[].concat(c("adsLWICurrentInstanceDataSelector").getStores(),[c("BoostedActionCreativeStoreV2"),c("BoostedComponentContextStoreV2"),c("BoostedPostCreativeStoreV2"),c("BoostedComponentValidationStoreV2"),c("BoostedComponentNewAdInfoStoreV2")])};v.calculateState=function(w,x){__p&&__p();var y=x.appID,z=x.targetID,A=x.boostID,B=k(y,z,A),C=c("BoostedComponentContextStoreV2").getDataByKey(B),D=c("BoostedComponentValidationStoreV2").getDataByKey(B),E=c("BoostedComponentNewAdInfoStoreV2").getDataByKey(B),F=D.getCallToActionErrors(),G=null,H=false,I=null,J=false,K=true,L=null,M=null,N=null,O=null,P=null;if(c("BoostedComponentAppIDUtils").isBoostedActionBasedAppID(y)){G=c("BoostedActionCreativeStoreV2").getDataByKey(B);H=l([C,G,E]);if(!H)return babelHelpers["extends"]({},w,{dataLoaded:H});M=G.getProductsSpec()}else{G=c("BoostedPostCreativeStoreV2").getDataByKey(B);H=l([C,G]);if(!H)return babelHelpers["extends"]({},w,{dataLoaded:H});I=G.getInstantWorkflowOptionsSpecs();J=G.getIsEligibleForInstantWorkflowCTA();K=G.getIsEligibleForAdsCTA();L=G.getPostTypeEligibleForCTA();P=G.getCTALink()}O=D.getWelcomeMessageErrors();N=G.getWelcomeMessage();var Q=G.getCallToAction(),R=G.getDisplayPhoneNumberCache(),S=t(Q),T=R.get(S),U=E.getSelectedObjective(),V=U===c("BoostedComponentObjective").SEND_MESSAGE||U===c("BoostedComponentObjective").GET_BOOKINGS;return{adsCTAMenuOptionsSpecs:G.getAdsCallToActionOptionsSpecs(),callToAction:Q,callToActionErrors:F,dataLoaded:H,defaultCity:G.getDefaultCity(),disableButtonOptions:V,displayPhoneNumber:T,instantWorkflowCTAMenuOptionsSpecs:I,isEligibleForAdsCTA:K,isEligibleForInstantWorkflowCTA:J,messagingSettingLinkEnabled:G.getIsPageMessagingDisabled(),objective:U,pageAccessToken:C.getPageAccessToken(),postTypeEligibleForCTA:L,childAttachments:M,userID:C.getUserID(),welcomeMessage:N,welcomeMessageErrors:O,ctaLink:P}};v.prototype.componentDidMount=function(){if(this.props.appID===c("BoostedComponentAppID").BOOSTED_POST)c("BoostedComponentQEUtils").getQE(c("BoostedComponentQEs").BOOSTED_POST_DEFAULT_SEND_MESSAGE_UNIVERSE).getParamString("group","control")};v.prototype.$BoostedComponentCallToActionEditorContainer1=function(){var w=this.state,x=w.callToAction,y=w.displayPhoneNumber;if(y)return y;var z=t(x);return z?z.substr(4):""};v.prototype.$BoostedComponentCallToActionEditorContainer10=function(w){c("SimpleNUXMessage").markMessageSeenByUser(w)};v.prototype.render=function(){if(!this.state.dataLoaded)return null;var w=this.state,x=w.adsCTAMenuOptionsSpecs,y=w.callToAction,z=w.callToActionErrors,A=w.defaultCity,B=w.disableButtonOptions,C=w.instantWorkflowCTAMenuOptionsSpecs,D=w.isEligibleForAdsCTA,E=w.isEligibleForInstantWorkflowCTA,F=w.messagingSettingLinkEnabled,G=w.objective,H=w.pageAccessToken,I=w.postTypeEligibleForCTA,J=w.childAttachments,K=w.userID,L=w.welcomeMessage,M=w.welcomeMessageErrors,N=this.props,O=N.appID,P=N.boostID,Q=N.isBoosted,R=N.instanceID,S=N.pageID,T=N.placement,U=N.targetID,V=void 0;if(O===c("BoostedComponentAppID").BOOSTED_POST&&y)V=c("React").createElement(u,{ctaType:y.get("type"),objective:G});return c("React").createElement("div",null,V,c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentAddButtonCard"},c("React").createElement(c("BoostedComponentAddButtonCard.react"),{adsCTAMenuOptionsSpecs:x&&x.toJS(),appID:O,boostID:P,callToAction:y&&y.toJS(),callToActionErrors:z,defaultCity:A,disableButtonOptions:B,displayPhoneNumber:this.$BoostedComponentCallToActionEditorContainer1(),instanceID:R,instantWorkflowCTAMenuOptionsSpecs:C&&C.toJS(),isBoosted:Q,messagingSettingLinkEnabled:F,pageAccessToken:H,pageID:S,placement:T,postTypeEligibleForCTA:I,products:!J?undefined:J.toJS(),showAdsCTA:D,showInstantWorkflowCTA:E,targetID:U,userID:K,welcomeMessage:L,welcomeMessageErrors:M,onCTAChange:this.$BoostedComponentCallToActionEditorContainer7,onCTALinkChange:this.$BoostedComponentCallToActionEditorContainer5,onCTASelectorButtonClick:this.$BoostedComponentCallToActionEditorContainer2,onCTASelectorNuxClose:this.$BoostedComponentCallToActionEditorContainer10,onCTATypeChange:this.$BoostedComponentCallToActionEditorContainer8,onCTAWelcomeMessageChange:this.$BoostedComponentCallToActionEditorContainer6,onEditAddressClick:this.$BoostedComponentCallToActionEditorContainer3,onMessageSettingLinkClick:this.$BoostedComponentCallToActionEditorContainer4,onPhoneNumberChanged:this.$BoostedComponentCallToActionEditorContainer9})))};f.exports=c("AdsFluxContainer").create(v,{withProps:true,name:f.id})}),null);
__d("BoostedComponentCreativeLinkDataBodyEditorContainer.react",["AdsFluxContainer","AdsLWIInstanceUtils","BoostedActionCreativeStoreV2","BoostedComponentContainerUtils","BoostedComponentCreativeActionsV2","BoostedComponentCreativeBodyEditorV2.react","BoostedComponentCreativeCategory","BoostedComponentErrorBoundaryContainer.react","BoostedComponentValidationStoreV2","React","adsLWICurrentInstanceDataSelector"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("AdsLWIInstanceUtils").getKeyFromInstanceData,k=c("BoostedComponentContainerUtils").isDataLoaded,l=c("BoostedComponentCreativeActionsV2").updateLinkDataBody,m=c("BoostedComponentCreativeActionsV2").updateVideoDescription;h=babelHelpers.inherits(n,c("React").Component);i=h&&h.prototype;function n(){var o,p;for(var q=arguments.length,r=Array(q),s=0;s<q;s++)r[s]=arguments[s];return p=(o=i.constructor).call.apply(o,[this].concat(r)),this.state={body:null,dataLoaded:false,errors:null,isLAWithCarouselSupport:false},this.$BoostedComponentCreativeLinkDataBodyEditorContainer1=function(t){var u=this.props.creativeCategory;if(u===c("BoostedComponentCreativeCategory").VIDEO)m(t,this.props.appID,this.props.targetID,this.props.boostID);else l(t,this.props.appID,this.props.targetID,this.props.boostID)}.bind(this),p}n.getStores=function(){return[].concat(c("adsLWICurrentInstanceDataSelector").getStores(),[c("BoostedActionCreativeStoreV2"),c("BoostedComponentValidationStoreV2")])};n.calculateState=function(o,p){var q=p.appID,r=p.targetID,s=p.boostID,t=p.creativeCategory,u=j(q,r,s),v=c("BoostedActionCreativeStoreV2").getDataByKey(u),w=k([v]);if(!w)return babelHelpers["extends"]({},o,{dataLoaded:w});var x=c("BoostedComponentValidationStoreV2").getDataByKey(u),y=t===c("BoostedComponentCreativeCategory").VIDEO?v.getVideoDataBody():v.getLinkDataMessage();return{body:y,dataLoaded:w,errors:x.getBodyErrors(),isLAWithCarouselSupport:v.getIsLAwithCarousalSupport()}};n.prototype.render=function(){var o=this.state,p=o.body,q=o.dataLoaded,r=o.errors,s=o.isLAWithCarouselSupport,t=this.props,u=t.className,v=t.showCounter,w=t.tooltip;if(!q)return null;return c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentCreativeBodyEditorV2"},c("React").createElement(c("BoostedComponentCreativeBodyEditorV2.react"),{body:p,className:u,errors:r,showCounter:v,supportCarouselInLA:s,tooltip:w,onBodyChange:this.$BoostedComponentCreativeLinkDataBodyEditorContainer1}))};f.exports=c("AdsFluxContainer").create(n,{withProps:true,name:f.id})}),null);
__d("BoostedAppInstallCreativeSectionV2.react",["cx","BoostedAppInstallAppSelectorContainer.react","BoostedComponentAppInstallSectionStringsV2","BoostedComponentCallToActionEditorContainer.react","BoostedComponentContentV2.react","BoostedComponentCreativeLinkDataBodyEditorContainer.react","BoostedComponentCreativeSectionStrings","BoostedComponentErrorBoundaryContainer.react","BoostedComponentMultiImageAndVideoDualCreative.react","BoostedComponentSectionSubheaderV2.react","BoostedComponentSectionV2.react","React"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j;i=babelHelpers.inherits(k,c("React").Component);j=i&&i.prototype;k.prototype.render=function(){var l=this.props,m=l.appID,n=l.boostID,o=l.creativeCategory,p=l.errors,q=l.isBoosted,r=l.pageID,s=l.targetID,t=c("React").createElement(c("BoostedComponentContentV2.react"),{className:"_2ji8"},c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentSectionSubheaderV2"},c("React").createElement(c("BoostedComponentSectionSubheaderV2.react"),{errors:p})),c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedAppInstallAppSelectorContainer"},c("React").createElement(c("BoostedAppInstallAppSelectorContainer.react"),{appID:m,boostID:n,creativeCategory:o,isBoosted:q,pageID:r,targetID:s})),c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentCreativeLinkDataBodyEditorContainer"},c("React").createElement(c("BoostedComponentCreativeLinkDataBodyEditorContainer.react"),{appID:m,boostID:n,creativeCategory:o,targetID:s,tooltip:c("BoostedComponentAppInstallSectionStringsV2").DESCRIBE_YOUR_APP_TEXT})),c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentMultiImageAndVideoDualCreative"},c("React").createElement(c("BoostedComponentMultiImageAndVideoDualCreative.react"),{appID:m,boostID:n,creativeCategory:o,pageID:r,targetID:s})),c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentCallToActionEditorContainer"},c("React").createElement(c("BoostedComponentCallToActionEditorContainer.react"),{appID:m,boostID:n,isBoosted:q,pageID:r,targetID:s})));return c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentSectionV2"},c("React").createElement(c("BoostedComponentSectionV2.react"),{isFirstSection:!q,title:c("BoostedComponentCreativeSectionStrings").getCreativeSectionTitle(m)},t))};function k(){i.apply(this,arguments)}f.exports=k}),null);
__d("BoostedEventCreativeSectionV2.react",["cx","BoostedComponentContentV2.react","BoostedComponentCreativeCategory","BoostedComponentCreativeLinkDataBodyEditorContainer.react","BoostedComponentCreativeSectionStrings","BoostedComponentCreativeSingleImageEditorContainer.react","BoostedComponentSectionSubheaderV2.react","BoostedComponentSectionV2.react","BoostedComponentSingleImageAndVideoDualCreative.react","React"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("BoostedComponentCreativeSectionStrings").getCreativeSectionTitle;i=babelHelpers.inherits(l,c("React").Component);j=i&&i.prototype;l.prototype.render=function(){var m=this.props,n=m.appID,o=m.boostID,p=m.creativeCategory,q=m.errors,r=m.isBoosted,s=m.pageID,t=m.targetID;return c("React").createElement(c("BoostedComponentSectionV2.react"),{isFirstSection:!r,title:k(n)},c("React").createElement(c("BoostedComponentSectionSubheaderV2.react"),{errors:q}),c("React").createElement(c("BoostedComponentContentV2.react"),null,c("React").createElement(c("BoostedComponentCreativeLinkDataBodyEditorContainer.react"),{appID:n,boostID:o,className:"_1vtn",creativeCategory:p,showCounter:false,targetID:t,tooltip:c("BoostedComponentCreativeSectionStrings").CREATIVE_BODY_EVENT_TOOLTIP}),c("React").createElement("div",{className:"_1vtn"},c("React").createElement(c("BoostedComponentSingleImageAndVideoDualCreative.react"),{appID:n,boostID:o,creativeCategory:p,pageID:s,targetID:t}))))};function l(){i.apply(this,arguments)}f.exports=l}),null);
__d("BoostedComponentCreativeBodyEditorV2Container.react",["AdsFluxContainer","AdsLWIInstanceUtils","BoostedActionCreativeStoreV2","BoostedComponentContainerUtils","BoostedComponentCreativeActionsV2","BoostedComponentCreativeBodyEditorV2.react","BoostedComponentCreativeCategory","BoostedComponentCreativeSectionStrings","BoostedComponentErrorBoundaryContainer.react","BoostedComponentValidationStoreV2","React","adsLWICurrentInstanceDataSelector"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("AdsLWIInstanceUtils").getKeyFromInstanceData,k=c("BoostedComponentContainerUtils").isDataLoaded,l=c("BoostedComponentCreativeActionsV2").updateCreativeBody,m=c("BoostedComponentCreativeActionsV2").updateVideoDescription;h=babelHelpers.inherits(n,c("React").Component);i=h&&h.prototype;function n(){var o,p;for(var q=arguments.length,r=Array(q),s=0;s<q;s++)r[s]=arguments[s];return p=(o=i.constructor).call.apply(o,[this].concat(r)),this.state={body:null,dataLoaded:false,errors:null,isLAWithCarouselSupport:false},this.$BoostedComponentCreativeBodyEditorV2Container1=function(t){var u=this.props.creativeCategory;if(u===c("BoostedComponentCreativeCategory").IMAGE)l(t,this.props.appID,this.props.targetID,this.props.boostID);else m(t,this.props.appID,this.props.targetID,this.props.boostID)}.bind(this),p}n.getStores=function(){return[].concat(c("adsLWICurrentInstanceDataSelector").getStores(),[c("BoostedActionCreativeStoreV2"),c("BoostedComponentValidationStoreV2")])};n.calculateState=function(o,p){var q=p.appID,r=p.targetID,s=p.boostID,t=p.creativeCategory,u=j(q,r,s),v=c("BoostedActionCreativeStoreV2").getDataByKey(u),w=k([v]);if(!w)return babelHelpers["extends"]({},o,{dataLoaded:w});var x=c("BoostedComponentValidationStoreV2").getDataByKey(u),y=t===c("BoostedComponentCreativeCategory").IMAGE?v.getCreativeSpecBody():v.getVideoDataDescription();return{body:y,dataLoaded:w,errors:x.getBodyErrors(),isLAWithCarouselSupport:v.getIsLAwithCarousalSupport()}};n.prototype.render=function(){var o=this.state,p=o.body,q=o.dataLoaded,r=o.errors,s=o.isLAWithCarouselSupport;if(!q)return null;return c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentCreativeBodyEditorV2"},c("React").createElement(c("BoostedComponentCreativeBodyEditorV2.react"),{body:p,errors:r,supportCarouselInLA:s,tooltip:c("BoostedComponentCreativeSectionStrings").CREATIVE_BODY_TOOLTIP,onBodyChange:this.$BoostedComponentCreativeBodyEditorV2Container1}))};f.exports=c("AdsFluxContainer").create(n,{withProps:true,name:f.id})}),null);
__d("BoostedPagelikeCreativeSectionV2.react",["cx","BoostedComponentCollapsableSectionV2.react","BoostedComponentContentV2.react","BoostedComponentCreativeBodyEditorV2Container.react","BoostedComponentCreativeSectionStrings","BoostedComponentErrorBoundaryContainer.react","BoostedComponentSectionSubheaderV2.react","BoostedComponentSectionV2.react","BoostedComponentSingleImageAndVideoDualCreative.react","React"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j;i=babelHelpers.inherits(k,c("React").Component);j=i&&i.prototype;k.prototype.render=function(){var l=this.props,m=l.appID,n=l.boostID,o=l.creativeCategory,p=l.collapsedLinkEnabled,q=l.errors,r=l.isBoosted,s=l.noCollapse,t=l.pageID,u=l.targetID,v=s?"_2ji8":" ",w=c("React").createElement(c("BoostedComponentContentV2.react"),{className:v},c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentSectionSubheaderV2"},c("React").createElement(c("BoostedComponentSectionSubheaderV2.react"),{errors:q})),c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentCreativeBodyEditorV2Container"},c("React").createElement(c("BoostedComponentCreativeBodyEditorV2Container.react"),{appID:m,boostID:n,creativeCategory:o,targetID:u})),c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentSingleImageAndVideoDualCreative"},c("React").createElement(c("BoostedComponentSingleImageAndVideoDualCreative.react"),{appID:m,boostID:n,creativeCategory:o,pageID:t,targetID:u})));if(s)return c("React").createElement(c("BoostedComponentSectionV2.react"),{isFirstSection:!r,title:c("BoostedComponentCreativeSectionStrings").getCreativeSectionTitle(m)},w);return c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentCollapsableSectionV2"},c("React").createElement(c("BoostedComponentCollapsableSectionV2.react"),{appID:m,boostID:n,collapsedLinkEnabled:p,errors:q,isFirstSection:!r,pageID:t,targetID:u},w))};function k(){i.apply(this,arguments)}f.exports=k}),null);
__d("BoostedPostCreativeSectionV2.react",["BoostedComponentCallToActionEditorContainer.react","BoostedComponentContentV2.react","BoostedComponentCreativeSectionStrings","BoostedComponentSectionSubheaderV2.react","BoostedComponentSectionV2.react","React"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("BoostedComponentCreativeSectionStrings").getCreativeSectionTitle;h=babelHelpers.inherits(k,c("React").Component);i=h&&h.prototype;k.prototype.render=function(){var l=this.props,m=l.appID,n=l.boostID,o=l.callToActionErrors,p=l.instanceID,q=l.isBoosted,r=l.isFirstSection,s=l.pageID,t=l.targetID;return c("React").createElement(c("BoostedComponentSectionV2.react"),{isFirstSection:r,title:j(m)},c("React").createElement(c("BoostedComponentSectionSubheaderV2.react"),{errors:o}),c("React").createElement(c("BoostedComponentContentV2.react"),null,c("React").createElement(c("BoostedComponentCallToActionEditorContainer.react"),{appID:m,boostID:n,instanceID:p,isBoosted:q,pageID:s,targetID:t})))};function k(){h.apply(this,arguments)}f.exports=k}),null);
__d("BoostedComponentCreativeURLEditorContainer.react",["cx","AdsFluxContainer","AdsLWIInstanceUtils","BoostedActionCreativeStoreV2","BoostedComponentBetterProductNotice.react","BoostedComponentContainerUtils","BoostedComponentContextStoreV2","BoostedComponentCreativeActionsV2","BoostedComponentCreativeCategory","BoostedComponentCreativeURLEditorV2.react","BoostedComponentDialogUIActionsV2","BoostedComponentErrorBoundaryContainer.react","BoostedComponentValidationStoreV2","React","URI","ads-lib-urllib","adsLWICurrentInstanceDataSelector"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("AdsLWIInstanceUtils").getKeyFromInstanceData,l=c("BoostedComponentContainerUtils").isDataLoaded,m=c("BoostedComponentCreativeActionsV2").updateVideoDataURL,n=c("BoostedComponentCreativeActionsV2").updateLinkDataURL;i=babelHelpers.inherits(o,c("React").Component);j=i&&i.prototype;function o(){__p&&__p();var p,q;for(var r=arguments.length,s=Array(r),t=0;t<r;t++)s[t]=arguments[t];return q=(p=j.constructor).call.apply(p,[this].concat(s)),this.state={dataLoaded:false,errors:null,pageURI:"",url:null},this.$BoostedComponentCreativeURLEditorContainer1=function(u){var v=this.props,w=v.appID,x=v.boostID,y=v.creativeCategory,z=v.targetID,A=u,B=false;if(c("ads-lib-urllib").isUrl(u)){B=true;A=new(c("URI"))(c("ads-lib-urllib").normalize(u)).toString()}if(A!==this.state.url)if(y===c("BoostedComponentCreativeCategory").VIDEO)m(A,w,z,x);else n(A,B,w,z,x)}.bind(this),this.$BoostedComponentCreativeURLEditorContainer2=function(){var u=this.props,v=u.appID,w=u.boostID,x=u.isBoosted,y=u.pageID,z=u.targetID;c("BoostedComponentDialogUIActionsV2").closeDialog(v,z,w,x,y)}.bind(this),q}o.getStores=function(){return[].concat(c("adsLWICurrentInstanceDataSelector").getStores(),[c("BoostedActionCreativeStoreV2"),c("BoostedComponentContextStoreV2"),c("BoostedComponentValidationStoreV2")])};o.calculateState=function(p,q){var r=q.appID,s=q.targetID,t=q.boostID,u=k(r,s,t),v=c("BoostedActionCreativeStoreV2").getDataByKey(u),w=l([v]);if(!w)return babelHelpers["extends"]({},p,{dataLoaded:w});var x=c("BoostedComponentValidationStoreV2").getDataByKey(u),y=c("BoostedComponentContextStoreV2").getDataByKey(u);return{dataLoaded:w,errors:x.getURLErrors(),pageURI:y.getPageURI(),url:v.getLinkURL()}};o.prototype.render=function(){var p=this.state.dataLoaded;if(!p)return null;var q=this.state,r=q.errors,s=q.pageURI,t=q.url;return c("React").createElement("div",null,c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentCreativeURLEditorV2"},c("React").createElement(c("BoostedComponentCreativeURLEditorV2.react"),{errors:r,url:t,onURLChange:this.$BoostedComponentCreativeURLEditorContainer1})),c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentBetterProductNotice"},c("React").createElement(c("BoostedComponentBetterProductNotice.react"),{appID:this.props.appID,className:"_3-8x",enteredURI:t,pageID:this.props.pageID,pageURI:s,onButtonClick:this.$BoostedComponentCreativeURLEditorContainer2})))};f.exports=c("AdsFluxContainer").create(o,{withProps:true,name:f.id})}),null);
__d("BoostedWebsiteCreativeSectionV2.react",["cx","BoostedComponentCallToActionEditorContainer.react","BoostedComponentCollapsableSectionV2.react","BoostedComponentContentV2.react","BoostedComponentCreativeLinkDataBodyEditorContainer.react","BoostedComponentCreativeSectionStrings","BoostedComponentCreativeURLEditorContainer.react","BoostedComponentErrorBoundaryContainer.react","BoostedComponentMultiImageAndVideoDualCreative.react","BoostedComponentSectionSubheaderV2.react","BoostedComponentSectionV2.react","React"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j;i=babelHelpers.inherits(k,c("React").Component);j=i&&i.prototype;k.prototype.render=function(){var l=this.props,m=l.appID,n=l.boostID,o=l.collapsedLinkEnabled,p=l.creativeCategory,q=l.errors,r=l.isBoosted,s=l.noCollapse,t=l.pageID,u=l.targetID,v=s?"_2ji8":" ",w=c("React").createElement(c("BoostedComponentContentV2.react"),{className:v},c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentSectionSubheaderV2"},c("React").createElement(c("BoostedComponentSectionSubheaderV2.react"),{errors:q})),c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentCreativeURLEditorContainer"},c("React").createElement(c("BoostedComponentCreativeURLEditorContainer.react"),{appID:m,boostID:n,creativeCategory:p,isBoosted:r,pageID:t,targetID:u})),c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentCreativeLinkDataBodyEditorContainer"},c("React").createElement(c("BoostedComponentCreativeLinkDataBodyEditorContainer.react"),{appID:m,boostID:n,creativeCategory:p,targetID:u,tooltip:c("BoostedComponentCreativeSectionStrings").CREATIVE_BODY_WEBSITE_TOOLTIP})),c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentMultiImageAndVideoDualCreative"},c("React").createElement(c("BoostedComponentMultiImageAndVideoDualCreative.react"),{appID:m,boostID:n,creativeCategory:p,pageID:t,targetID:u})),c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentCallToActionEditorContainer"},c("React").createElement(c("BoostedComponentCallToActionEditorContainer.react"),{appID:m,boostID:n,isBoosted:r,pageID:t,targetID:u})));if(s)return c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentSectionV2"},c("React").createElement(c("BoostedComponentSectionV2.react"),{isFirstSection:!r,title:c("BoostedComponentCreativeSectionStrings").getCreativeSectionTitle(m)},w));return c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedComponentCollapsableSectionV2"},c("React").createElement(c("BoostedComponentCollapsableSectionV2.react"),{appID:m,boostID:n,collapsedLinkEnabled:o,errors:q,isFirstSection:!r,pageID:t,targetID:u},w))};function k(){i.apply(this,arguments)}f.exports=k}),null);
__d("BoostedAppInstallCreativeSectionContainer.react",["AdsFluxContainer","AdsLWIInstanceUtils","BoostedActionCreativeStoreV2","BoostedAppInstallCreativeSectionV2.react","BoostedComponentContainerUtils","BoostedComponentCreativeSectionStrings","BoostedComponentErrorBoundaryContainer.react","BoostedComponentSectionV2Spinner.react","BoostedComponentSimplifiedConstants","BoostedComponentValidationStoreV2","immutable","React","adsLWICurrentInstanceDataSelector"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("AdsLWIInstanceUtils").getKeyFromInstanceData,k=c("BoostedComponentContainerUtils").isDataLoaded,l=c("BoostedComponentSimplifiedConstants").DIALOG_LEFT_PANEL_SPINNER_HEIGHT;h=babelHelpers.inherits(m,c("React").Component);i=h&&h.prototype;function m(){var n,o;for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=i.constructor).call.apply(n,[this].concat(q)),this.state={errors:c("immutable").List(),creativeCategory:null,dataLoaded:false},o}m.getStores=function(){return[].concat(c("adsLWICurrentInstanceDataSelector").getStores(),[c("BoostedActionCreativeStoreV2"),c("BoostedComponentValidationStoreV2")])};m.calculateState=function(n,o){var p=o.appID,q=o.targetID,r=o.boostID,s=j(p,q,r),t=c("BoostedActionCreativeStoreV2").getDataByKey(s),u=k([t]);if(!u)return babelHelpers["extends"]({},n,{dataLoaded:u});var v=c("BoostedComponentValidationStoreV2").getDataByKey(s);return{creativeCategory:t.getCreativeCategory(),dataLoaded:u,errors:v.getCreativeSectionErrors()}};m.prototype.render=function(){if(!this.state.dataLoaded)return c("React").createElement(c("BoostedComponentSectionV2Spinner.react"),{height:l,title:c("BoostedComponentCreativeSectionStrings").getCreativeSectionTitle(this.props.appID)});var n=this.state,o=n.creativeCategory,p=n.errors;return c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedAppInstallCreativeSectionV2"},c("React").createElement(c("BoostedAppInstallCreativeSectionV2.react"),{appID:this.props.appID,boostID:this.props.boostID,creativeCategory:o,errors:p,isBoosted:this.props.isBoosted,pageID:this.props.pageID,sectionName:"BoostedAppInstallCreativeSectionV2",targetID:this.props.targetID}))};f.exports=c("AdsFluxContainer").create(m,{withProps:true,name:f.id})}),null);
__d("BoostedPagelikeCreativeSectionContainer.react",["AdsFluxContainer","AdsLWIInstanceUtils","BoostedActionCreativeStoreV2","BoostedComponentContainerUtils","BoostedComponentCreativeSectionStrings","BoostedComponentErrorBoundaryContainer.react","BoostedComponentSectionV2Spinner.react","BoostedComponentSimplifiedConstants","BoostedComponentValidationStoreV2","BoostedPagelikeCreativeSectionV2.react","immutable","React","adsLWICurrentInstanceDataSelector"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("AdsLWIInstanceUtils").getKeyFromInstanceData,k=c("BoostedComponentContainerUtils").isDataLoaded,l=c("BoostedComponentSimplifiedConstants").DIALOG_LEFT_PANEL_SPINNER_HEIGHT;h=babelHelpers.inherits(m,c("React").Component);i=h&&h.prototype;function m(){var n,o;for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=i.constructor).call.apply(n,[this].concat(q)),this.state={collapsedLinkEnabled:false,creativeCategory:null,errors:c("immutable").List(),dataLoaded:false},o}m.getStores=function(){return[].concat(c("adsLWICurrentInstanceDataSelector").getStores(),[c("BoostedActionCreativeStoreV2"),c("BoostedComponentValidationStoreV2")])};m.calculateState=function(n,o){var p=o.appID,q=o.targetID,r=o.boostID,s=j(p,q,r),t=c("BoostedActionCreativeStoreV2").getDataByKey(s),u=k([t]);if(!u)return babelHelpers["extends"]({},n,{dataLoaded:u});var v=c("BoostedComponentValidationStoreV2").getDataByKey(s),w=v.getCreativeSectionErrors(),x=!w||w.count()===0;return{creativeCategory:t.getCreativeCategory(),collapsedLinkEnabled:x,dataLoaded:u,errors:w}};m.prototype.render=function(){if(!this.state.dataLoaded)return this.props.noCollapse?c("React").createElement(c("BoostedComponentSectionV2Spinner.react"),{height:l,title:c("BoostedComponentCreativeSectionStrings").getCreativeSectionTitle(this.props.appID)}):null;var n=this.state,o=n.creativeCategory,p=n.collapsedLinkEnabled,q=n.errors;return c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedPagelikeCreativeSectionV2"},c("React").createElement(c("BoostedPagelikeCreativeSectionV2.react"),{appID:this.props.appID,boostID:this.props.boostID,collapsedLinkEnabled:p,creativeCategory:o,errors:q,isBoosted:this.props.isBoosted,noCollapse:this.props.noCollapse,pageID:this.props.pageID,targetID:this.props.targetID}))};f.exports=c("AdsFluxContainer").create(m,{withProps:true,name:f.id})}),null);
__d("BoostedWebsiteCreativeSectionContainer.react",["AdsFluxContainer","AdsLWIInstanceUtils","BoostedActionCreativeStoreV2","BoostedComponentContainerUtils","BoostedComponentCreativeSectionStrings","BoostedComponentErrorBoundaryContainer.react","BoostedComponentSectionV2Spinner.react","BoostedComponentSimplifiedConstants","BoostedComponentValidationStoreV2","BoostedWebsiteCreativeSectionV2.react","immutable","React","adsLWICurrentInstanceDataSelector"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("AdsLWIInstanceUtils").getKeyFromInstanceData,k=c("BoostedComponentContainerUtils").isDataLoaded,l=c("BoostedComponentSimplifiedConstants").DIALOG_LEFT_PANEL_SPINNER_HEIGHT;h=babelHelpers.inherits(m,c("React").Component);i=h&&h.prototype;function m(){var n,o;for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=i.constructor).call.apply(n,[this].concat(q)),this.state={errors:c("immutable").List(),collapsedLinkEnabled:false,creativeCategory:null,dataLoaded:false},o}m.getStores=function(){return[].concat(c("adsLWICurrentInstanceDataSelector").getStores(),[c("BoostedActionCreativeStoreV2"),c("BoostedComponentValidationStoreV2")])};m.calculateState=function(n,o){var p=o.appID,q=o.targetID,r=o.boostID,s=j(p,q,r),t=c("BoostedActionCreativeStoreV2").getDataByKey(s),u=k([t]);if(!u)return babelHelpers["extends"]({},n,{dataLoaded:u});var v=c("BoostedComponentValidationStoreV2").getDataByKey(s),w=v.getCreativeSectionErrors(),x=!w||w.count()===0;return{collapsedLinkEnabled:x,creativeCategory:t.getCreativeCategory(),dataLoaded:u,errors:v.getCreativeSectionErrors()}};m.prototype.render=function(){if(!this.state.dataLoaded)return this.props.noCollapse?c("React").createElement(c("BoostedComponentSectionV2Spinner.react"),{height:l,title:c("BoostedComponentCreativeSectionStrings").getCreativeSectionTitle(this.props.appID)}):null;var n=this.state,o=n.collapsedLinkEnabled,p=n.creativeCategory,q=n.errors;return c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedWebsiteCreativeSectionV2"},c("React").createElement(c("BoostedWebsiteCreativeSectionV2.react"),{appID:this.props.appID,boostID:this.props.boostID,collapsedLinkEnabled:o,creativeCategory:p,errors:q,isBoosted:this.props.isBoosted,noCollapse:this.props.noCollapse,pageID:this.props.pageID,targetID:this.props.targetID}))};f.exports=c("AdsFluxContainer").create(m,{withProps:true,name:f.id})}),null);
__d("BoostedEventCreativeSectionContainer.react",["AdsFluxContainer","AdsLWIInstanceUtils","BoostedActionCreativeStoreV2","BoostedComponentContainerUtils","BoostedComponentErrorBoundaryContainer.react","BoostedComponentValidationStoreV2","BoostedEventCreativeSectionV2.react","immutable","React","adsLWICurrentInstanceDataSelector"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("AdsLWIInstanceUtils").getKeyFromInstanceData,k=c("BoostedComponentContainerUtils").isDataLoaded;h=babelHelpers.inherits(l,c("React").Component);i=h&&h.prototype;function l(){var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=i.constructor).call.apply(m,[this].concat(p)),this.state={creativeCategory:null,dataLoaded:false,errors:c("immutable").List()},n}l.getStores=function(){return[].concat(c("adsLWICurrentInstanceDataSelector").getStores(),[c("BoostedActionCreativeStoreV2"),c("BoostedComponentValidationStoreV2")])};l.calculateState=function(m,n){var o=n.appID,p=n.targetID,q=n.boostID,r=j(o,p,q),s=c("BoostedActionCreativeStoreV2").getDataByKey(r),t=k([s]);if(!t)return babelHelpers["extends"]({},m,{dataLoaded:t});var u=c("BoostedComponentValidationStoreV2").getDataByKey(r);return{creativeCategory:s.getCreativeCategory(),dataLoaded:t,errors:u.getCreativeSectionErrors()}};l.prototype.render=function(){var m=this.state,n=m.creativeCategory,o=m.dataLoaded,p=m.errors;if(!o)return null;var q=this.props,r=q.appID,s=q.boostID,t=q.isBoosted,u=q.pageID,v=q.targetID;return c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedEventCreativeSectionV2"},c("React").createElement(c("BoostedEventCreativeSectionV2.react"),{appID:r,boostID:s,creativeCategory:n,errors:p,isBoosted:t,pageID:u,targetID:v}))};f.exports=c("AdsFluxContainer").create(l,{withProps:true,name:f.id})}),null);
__d("BoostedPostCreativeSectionContainer.react",["AdsFluxContainer","AdsLWIInstanceUtils","BoostedComponentContainerUtils","BoostedComponentErrorBoundaryContainer.react","BoostedComponentSectionV2Spinner.react","BoostedComponentValidationStoreV2","BoostedPostCreativeSectionV2.react","BoostedPostCreativeStoreV2","immutable","React","adsLWICurrentInstanceDataSelector"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("AdsLWIInstanceUtils").getKeyFromInstanceData,k=c("BoostedComponentContainerUtils").isDataLoaded;h=babelHelpers.inherits(l,c("React").Component);i=h&&h.prototype;function l(){var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=i.constructor).call.apply(m,[this].concat(p)),this.state={callToActionErrors:c("immutable").List(),dataLoaded:false,isEligibleForCTA:false},n}l.getStores=function(){return[].concat(c("adsLWICurrentInstanceDataSelector").getStores(),[c("BoostedPostCreativeStoreV2"),c("BoostedComponentValidationStoreV2")])};l.calculateState=function(m,n){var o=n.appID,p=n.targetID,q=n.boostID,r=j(o,p,q),s=c("BoostedPostCreativeStoreV2").getDataByKey(r),t=c("BoostedComponentValidationStoreV2").getDataByKey(r),u=k([s]);if(!u)return babelHelpers["extends"]({},m,{dataLoaded:u});return{callToActionErrors:t.getCallToActionErrors(),dataLoaded:u,isEligibleForCTA:s.getIsEligibleForCTA()}};l.prototype.render=function(){var m=this.state,n=m.callToActionErrors,o=m.dataLoaded,p=m.isEligibleForCTA;if(!p)return null;if(!o)return c("React").createElement(c("BoostedComponentSectionV2Spinner.react"),{height:100});var q=this.props,r=q.appID,s=q.boostID,t=q.instanceID,u=q.isBoosted,v=q.isFirstSection,w=q.pageID,x=q.targetID;return c("React").createElement(c("BoostedComponentErrorBoundaryContainer.react"),{sectionName:"BoostedPostCreativeSectionV2"},c("React").createElement(c("BoostedPostCreativeSectionV2.react"),{appID:r,boostID:s,callToActionErrors:n,instanceID:t,isBoosted:u,isFirstSection:v,pageID:w,targetID:x}))};f.exports=c("AdsFluxContainer").create(l,{withProps:true,name:f.id})}),null);
__d("BoostedComponentLoggerStoreData",["BoostedComponentBaseStoreData"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j={raw_messages:[]};h=babelHelpers.inherits(k,c("BoostedComponentBaseStoreData")(j));i=h&&h.prototype;k.prototype.getRawLogMessages=function(){return this.raw_messages};k.prototype.setRawLogMessage=function(l){var m=this.getRawLogMessages().slice(0);m.push(l);return this.set("raw_messages",m)};function k(){h.apply(this,arguments)}f.exports=k}),null);
__d("BoostedComponentLoggerStoreV2",["AdsDataAtom","AdsReviewIPCUtils","Banzai","BoostedComponentActionToClientEventUtils","BoostedComponentAdAccountStoreV2","BoostedComponentAppID","BoostedComponentAudienceStoreV2","BoostedComponentBudgetEstimationStoreV2","BoostedComponentClientAppStore","BoostedComponentClientEvent","BoostedComponentContextStoreData","BoostedComponentContextStoreV2","BoostedComponentDialogUIStoreV2","BoostedComponentDurationStoreV2","BoostedComponentExistingAdInfoStoreData","BoostedComponentExistingAdInfoStoreV2","BoostedComponentExperimentationStoreV2","BoostedComponentFluxReduceStore","BoostedComponentLoggerStoreData","BoostedComponentMonthlyBudgetEstimationStoreV2","BoostedComponentNewAdInfoStoreV2","BoostedComponentObjectiveUtils","BoostedComponentRef","BoostedComponentSpecUtils","BoostedComponentStoreState","BoostedComponentSubmisionStatusStoreV2","BoostedComponentV2Utils","BoostedComponentValidationStoreData","BoostedComponentValidationStoreV2","BoostedPostCreativeStoreV2","IPCEventName","Set","URI"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("BoostedComponentObjectiveUtils").getAdproObjectiveType,k=c("BoostedComponentStoreState").getKey,l=c("BoostedComponentV2Utils").logDataError,m=[c("BoostedComponentAdAccountStoreV2").getDispatchToken(),c("BoostedComponentContextStoreV2").getDispatchToken(),c("BoostedComponentDialogUIStoreV2").getDispatchToken(),c("BoostedComponentDurationStoreV2").getDispatchToken(),c("BoostedComponentExistingAdInfoStoreV2").getDispatchToken(),c("BoostedComponentValidationStoreV2").getDispatchToken()],n=[c("BoostedComponentAudienceStoreV2").getDispatchToken(),c("BoostedComponentBudgetEstimationStoreV2").getDispatchToken(),c("BoostedComponentMonthlyBudgetEstimationStoreV2").getDispatchToken(),c("BoostedPostCreativeStoreV2").getDispatchToken(),c("BoostedComponentExperimentationStoreV2").getDispatchToken(),c("BoostedComponentNewAdInfoStoreV2").getDispatchToken(),c("BoostedComponentSubmisionStatusStoreV2").getDispatchToken()],o=new(c("Set"))([c("BoostedComponentClientEvent").MAYBE_UPDATE_FROM_DUPLICATE_CONFIG]),p=new(c("Set"))([c("BoostedComponentClientEvent").DATA_LOADED,c("BoostedComponentClientEvent").UPDATE_CALL_TO_ACTION]),q="BoostedComponentLoggerStoreV2";h=babelHelpers.inherits(r,c("BoostedComponentFluxReduceStore"));i=h&&h.prototype;function r(){var s,t;for(var u=arguments.length,v=Array(u),w=0;w<u;w++)v[w]=arguments[w];return t=(s=i.constructor).call.apply(s,[this].concat(v)),this.storeName=q,t}r.prototype.getInitialState=function(){return new(c("BoostedComponentLoggerStoreData"))()};r.prototype.reduce=function(s,t){__p&&__p();var u=t.action,v=u.appID,w=u.boostID,x=u.targetID;if(!v||v===c("BoostedComponentAppID").BOOSTED_AUTOMATED_ADS)return s;var y=c("BoostedComponentActionToClientEventUtils").getClientEventFromAction(u.type);if(!y||y===c("BoostedComponentClientEvent").UNMAPPED_V2_ACTION||u.skipLogging&&p.has(y)||o.has(y))return s;c("AdsDataAtom").waitFor(m);var z=k(v,x,w),A=c("BoostedComponentContextStoreV2").getDataByKey(z),B=c("BoostedComponentExistingAdInfoStoreV2").getDataByKey(z);if(!(A instanceof c("BoostedComponentContextStoreData"))||!(B instanceof c("BoostedComponentExistingAdInfoStoreData"))){l("BoostedComponentLoggerStoreV2","No contextData/existingAdInfoData. key: "+z+",          contextData: "+JSON.stringify(A)+",          existingAdInfoData: "+JSON.stringify(B),v,x);return s}this.$BoostedComponentLoggerStoreV22(y,u,x,z);var C=this.$BoostedComponentLoggerStoreV23(v,y,u,z),D=new(c("URI"))(window.location.href).getQueryData(),E=D.log_viewer;if(E==="true"&&C)return s.setRawLogMessage(C);return s};r.prototype.$BoostedComponentLoggerStoreV22=function(s,t,u,v){var w=null;switch(s){case c("BoostedComponentClientEvent").INTEGRITY_BANNER_SHOWN:w=c("IPCEventName").UI_BANNER_COMPONENT_RENDER;break;default:return}var x=c("BoostedComponentContextStoreV2").getDataByKey(v),y=x.getFlowID();c("AdsReviewIPCUtils").logRenderStatus(t.adAccountID,w,true,t.policies,u,y)};r.prototype.$BoostedComponentLoggerStoreV23=function(s,t,u,v){if(c("Banzai").isEnabled("boosted_component")){var w=this.$BoostedComponentLoggerStoreV24(s,t,u,v),x=c("BoostedComponentContextStoreV2").getDataByKey(v),y=this.$BoostedComponentLoggerStoreV25(w,v);y.event=t;y.flow_id=x.getFlowID();c("Banzai").post("boosted_component",y,c("Banzai").VITAL);return y}return null};r.prototype.$BoostedComponentLoggerStoreV25=function(s,t){var u=c("BoostedComponentAdAccountStoreV2").getState(),v=c("BoostedComponentContextStoreV2").getDataByKey(t),w=c("BoostedComponentExistingAdInfoStoreV2").getDataByKey(t),x=babelHelpers["extends"]({},s,{campaign_group_id:w.getCampaignGroupID(),page_id:v.getPageID(),post_id:v.getPostID(),source_app_id:v.getAppID(),placement:v.getPlacement(),ad_account_id:u.getSelectedAccountID(),is_boosted:w.getIsBoosted()});if(v.getPlacement()===c("BoostedComponentRef").WWW_THIRD_PARTY_EMBEDDED_FLOW){var y=c("BoostedComponentClientAppStore").getState().getID();x.entry_point_details=y.toString()}return x};r.prototype.$BoostedComponentLoggerStoreV24=function(s,t,u,v){__p&&__p();var w={},x=c("BoostedComponentBudgetEstimationStoreV2").getDataByKey(v),y=c("BoostedComponentDialogUIStoreV2").getDataByKey(v),z=c("BoostedComponentDurationStoreV2").getDataByKey(v);switch(t){case c("BoostedComponentClientEvent").CREATE_SUBMIT:this.$BoostedComponentLoggerStoreV21=Date.now();break;case c("BoostedComponentClientEvent").CREATE_SUCCESS:case c("BoostedComponentClientEvent").CREATE_FAIL:w.processing_time=Date.now()-this.$BoostedComponentLoggerStoreV21;break;case c("BoostedComponentClientEvent").INTEGRITY_BANNER_SHOWN:case c("BoostedComponentClientEvent").INTEGRITY_TEXT_PENALTY:w.cms_ids=u.cmsIDs;break;case c("BoostedComponentClientEvent").INPUT_CUSTOM_BUDGET:case c("BoostedComponentClientEvent").UPDATE_BUDGET:w.ending_value=x.getSelectedBudgetValue();break;case c("BoostedComponentClientEvent").UPDATE_CAMPAIGN_LENGTH_IN_DAYS:case c("BoostedComponentClientEvent").UPDATE_RUN_CONTINUOUSLY:w.ending_value=z.getRunContinuously()?-1:z.getCampaignLengthInDays();break;case c("BoostedComponentClientEvent").PREVIEW_AD_ON_DESKTOP_FEED:case c("BoostedComponentClientEvent").PREVIEW_AD_ON_MOBILE_FEED:case c("BoostedComponentClientEvent").PREVIEW_AD_ON_RHC:case c("BoostedComponentClientEvent").PREVIEW_AD_ON_INSTAGRAM:case c("BoostedComponentClientEvent").PREVIEW_AD_ON_AUDIENCE_NETWORK_INSTREAM_VIDEO:case c("BoostedComponentClientEvent").PREVIEW_AD_ON_MOBILE_INTERSTITIAL:case c("BoostedComponentClientEvent").PREVIEW_AD_ON_MOBILE_NATIVE:if(u.ineligibleMessage)w.error_messages=[u.ineligibleMessage];break;case c("BoostedComponentClientEvent").AUDIENCE_CHANGE:var A=u.targetingSpec;if(A)w.targeting_spec=A;break;case c("BoostedComponentClientEvent").AUDIENCE_MANAGER_OPEN:var B=u.editMode;if(B)w.audience_edit_mode=B;else w.audience_edit_mode=false;break;case c("BoostedComponentClientEvent").SHOW_OBJECTIVE_STEP:w.starting_value=0;w.ending_value=-1;break;case c("BoostedComponentClientEvent").CREATION_STEP_BACKWARD:var C=y.getCreationStepIndex();w.starting_value=C+1;w.ending_value=C;break;case c("BoostedComponentClientEvent").CREATION_STEP_FORWARD:var D=y.getCreationStepIndex();w.starting_value=D-1;w.ending_value=D;break;case c("BoostedComponentClientEvent").SELECT_APP_ID:w.starting_value=-1;w.ending_value=0;break}var E=c("BoostedComponentValidationStoreV2").getDataByKey(v);if(E instanceof c("BoostedComponentValidationStoreData")){var F=E.getAllErrors();if(F.size)w.error_messages=F.toJS()}switch(t){case c("BoostedComponentClientEvent").CREATE_CLICK:case c("BoostedComponentClientEvent").CREATE_SUBMIT:case c("BoostedComponentClientEvent").CREATE_SUCCESS:case c("BoostedComponentClientEvent").CREATE_FAIL:var G=u.error;if(G){w.error_code=G.error;w.error_messages=G.errorDescription;w.error_type=G.errorSummary}c("AdsDataAtom").waitFor(n);var H=c("BoostedComponentSpecUtils").getSpecsJSONByKey(s,v);w.specs=H;w.default_specs=H;break}switch(t){case c("BoostedComponentClientEvent").CREATE_FAIL:case c("BoostedComponentClientEvent").CREATE_SUCCESS:case c("BoostedComponentClientEvent").INIT_DATA_LOADED:case c("BoostedComponentClientEvent").ON_UPSELL_BUTTON_CLICK:var I=y.getUpsellLogData().toJS();if(I)w.upsell_data=I;break}switch(t){case c("BoostedComponentClientEvent").UPDATE_IMAGE:if(u!==null&&u.imageType!==null)w.image_type=u.imageType;break}switch(t){case c("BoostedComponentClientEvent").LOAD_CONNECTED_INSTAGRAM_ACCOUNT_DATA:var J=u.data.instagramAccountID;w.connected_instagram_account_id=J;break}switch(t){case c("BoostedComponentClientEvent").CHANGE_OBJECTIVE_RADIO_ITEM:if(u!==null&&u.objective!==null)w.objective=j(u.objective);break}return w};f.exports=new r(c("AdsDataAtom"))}),null);
__d("BoostedComponentInsightsStoreData",["BoostedComponentBaseStoreData","immutable"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j={age_gender_data:c("immutable").Map(),conversion_type:null,conversions:0,country_data:{},engagement_data:c("immutable").Map(),experiment_exposures:null,impressions:null,message_data:null,lead_data:{},placement_data:c("immutable").Map(),reach:0,region_data:c("immutable").Map(),secondary_conversions:null,spend:null};h=babelHelpers.inherits(k,c("BoostedComponentBaseStoreData")(j));i=h&&h.prototype;k.prototype.canShowInsights=function(){return this.reach>0&&this.dataLoaded};k.prototype.getConversionType=function(){return this.conversion_type};k.prototype.getConversions=function(){return this.conversions};k.prototype.getReach=function(){return this.reach};k.prototype.getSpend=function(){return this.spend};k.prototype.getImpressions=function(){return this.impressions};k.prototype.getEngagementData=function(){return this.engagement_data};k.prototype.getCountryData=function(){return this.country_data};k.prototype.getAgeGenderData=function(){return this.age_gender_data};k.prototype.getLeadData=function(){return this.lead_data};function k(){h.apply(this,arguments)}f.exports=k}),null);
__d("BoostedComponentInsightsStoreV2",["AdsBoostedComponentCommonV2CreateSuccessWithBoostIdDataAction","AdsBoostedComponentCommonV2LoadDialogDataDataAction","AdsDataAtom","AdsLWIInsightsStoreActionHandlers","BoostedComponentFetchActionTypesV2","BoostedComponentInsightsStoreData","BoostedComponentStoreState","BoostedComponentV2Utils","FluxReduceStore","immutable","createObjectBy"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("BoostedComponentV2Utils").getKeyData,k=c("BoostedComponentStoreState").BoostedComponentState,l=c("BoostedComponentStoreState").getKey,m="BoostedComponentInsightsStoreV2";h=babelHelpers.inherits(n,c("FluxReduceStore"));i=h&&h.prototype;function n(){var o,p;for(var q=arguments.length,r=Array(q),s=0;s<q;s++)r[s]=arguments[s];return p=(o=i.constructor).call.apply(o,[this].concat(r)),this.storeName=m,p}n.prototype.getInitialState=function(){return new k({storeName:m})};n.prototype.getDataByKey=function(o){return this.getState().getDataByKey(o)};n.prototype.reduce=function(o,p){var q=p.action,r=j(q),s=r.appID,t=r.boostID,u=r.targetID;if(!s)return o;var v=l(s,u,t);switch(q.type){case c("AdsBoostedComponentCommonV2LoadDialogDataDataAction").actionType:case c("BoostedComponentFetchActionTypesV2").LOAD_ALL_DATA:var w=q.data.insights_store_data;return o.setDataByKey(v,new(c("BoostedComponentInsightsStoreData"))(c("immutable").fromJS(babelHelpers["extends"]({},w,{dataLoaded:true}))));case c("AdsBoostedComponentCommonV2CreateSuccessWithBoostIdDataAction").actionType:return o.copyData(v,s,u,q.oldBoostID);default:return o}};f.exports=new n(c("AdsDataAtom"))}),null);
__d("BoostedComponentInstagramStoreData",["BoostedComponentBaseStoreData"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j={nuxType:null,nuxExtraData:null,instagramAccountID:null};h=babelHelpers.inherits(k,c("BoostedComponentBaseStoreData")(j));i=h&&h.prototype;k.prototype.getNuxType=function(){return this.noticeType};k.prototype.setNuxType=function(l){return this.set("nuxType",l)};k.prototype.getNuxExtraData=function(){return this.nuxExtraData};k.prototype.setNuxExtraData=function(l){return this.set("nuxExtraData",l)};k.prototype.getInstagramAccountID=function(){return this.instagramAccountID};k.prototype.setInstagramAccountID=function(l){return this.set("instagramAccountID",l)};function k(){h.apply(this,arguments)}f.exports=k}),null);
__d("BoostedComponentInstagramStoreV2",["AdsBoostedComponentInstagramV2LoadConnectedInstagramAccountDataDataAction","AdsDataAtom","BoostedComponentFluxReduceStore","BoostedComponentInstagramStoreData","BoostedComponentStoreState","BoostedComponentV2Utils"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("BoostedComponentV2Utils").getKeyData,k=c("BoostedComponentStoreState").BoostedComponentState,l=c("BoostedComponentStoreState").getKey,m="BoostedComponentInstagramStoreV2";h=babelHelpers.inherits(n,c("BoostedComponentFluxReduceStore"));i=h&&h.prototype;function n(){var o,p;for(var q=arguments.length,r=Array(q),s=0;s<q;s++)r[s]=arguments[s];return p=(o=i.constructor).call.apply(o,[this].concat(r)),this.storeName=m,p}n.prototype.getInitialState=function(){return new k({storeName:m})};n.prototype.getDataByKey=function(o){return this.getState().getDataByKey(o)};n.prototype.reduce=function(o,p){__p&&__p();var q=p.action,r=j(q),s=r.appID,t=r.boostID,u=r.targetID,v=q.data;if(!s)return o;var w=l(s,u,t),x=o.getDataByKey(w);if(!(x instanceof c("BoostedComponentInstagramStoreData")))x=new(c("BoostedComponentInstagramStoreData"))();switch(q.type){case c("AdsBoostedComponentInstagramV2LoadConnectedInstagramAccountDataDataAction").actionType:var y=v.nuxType,z=v.nuxExtraData,A=v.instagramAccountID;x=x.withMutations(function(B){B.setInstagramAccountID(A).setNuxType(y).setNuxExtraData(z)});return o.setDataByKey(w,x);default:return o}};f.exports=new n(c("AdsDataAtom"))}),null);
__d("AdsBoostedComponentLeadGenV2FetchFormDataDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"BoostedComponentLeadGen.FETCH_FORM_DATA");f.exports=h}),null);
__d("AdsBoostedComponentLeadGenV2FetchLeadGenDataDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"BoostedComponentLeadGen.FETCH_LEAD_GEN_DATA");f.exports=h}),null);
__d("AdsBoostedComponentLeadGenV2LoadFormDataDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"BoostedComponentLeadGen.LOAD_FORM_DATA");f.exports=h}),null);
__d("AdsBoostedComponentLeadGenV2LoadLeadGenDataDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"BoostedComponentLeadGen.LOAD_LEAD_GEN_DATA");f.exports=h}),null);
__d("BoostedComponentLeadGenStoreData",["BoostedComponentBaseStoreData","DateTime","immutable","Timezone"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("Timezone").getEnvironmentTimezoneID()||c("Timezone").UTC,k={formCreatedTime:c("DateTime").now(j),formDataLoaded:false,formName:"",leadGenDataID:"",leadsData:c("immutable").List(),leadGenDataLoaded:false,moreLeadsThanFetched:false,questions:c("immutable").Map()};h=babelHelpers.inherits(l,c("BoostedComponentBaseStoreData")(k));i=h&&h.prototype;l.prototype.getformCreatedTime=function(){return this.formCreatedTime};l.prototype.getFormName=function(){return this.formName};l.prototype.getLeadGenDataID=function(){return this.leadGenDataID};l.prototype.getFormDataLoaded=function(){return this.formDataLoaded};l.prototype.getLeadsData=function(){return this.leadsData};l.prototype.getLeadGenDataLoaded=function(){return this.leadGenDataLoaded};l.prototype.getMoreLeadsThanFetched=function(){return this.moreLeadsThanFetched};l.prototype.getQuestions=function(){return this.questions};function l(){h.apply(this,arguments)}f.exports=l}),null);
__d("BoostedComponentLeadGenStoreV2",["AdsBoostedComponentCommonV2CreateSuccessDataAction","AdsBoostedComponentCommonV2CreateSuccessWithBoostIdDataAction","AdsBoostedComponentCommonV2FetchDialogDataDataAction","AdsBoostedComponentCommonV2LoadDialogDataDataAction","AdsBoostedComponentLeadGenV2FetchFormDataDataAction","AdsBoostedComponentLeadGenV2FetchLeadGenDataDataAction","AdsBoostedComponentLeadGenV2LoadFormDataDataAction","AdsBoostedComponentLeadGenV2LoadLeadGenDataDataAction","AdsDataAtom","BoostedAutomatedAdsCommonActionTypesV2","BoostedComponentAppIDUtils","BoostedComponentFetchActionTypesV2","BoostedComponentLeadGenStoreData","BoostedComponentStoreState","BoostedComponentV2Utils","DateTime","FluxReduceStore","immutable","Timezone","isEmpty"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("BoostedComponentV2Utils").getKeyData,k=c("BoostedComponentStoreState").BoostedComponentState,l=c("BoostedComponentStoreState").getKey,m=c("Timezone").getEnvironmentTimezoneID()||c("Timezone").UTC,n="BoostedComponentLeadGenStoreV2";h=babelHelpers.inherits(o,c("FluxReduceStore"));i=h&&h.prototype;function o(){var p,q;for(var r=arguments.length,s=Array(r),t=0;t<r;t++)s[t]=arguments[t];return q=(p=i.constructor).call.apply(p,[this].concat(s)),this.storeName=n,q}o.prototype.getInitialState=function(){return new k({storeName:n})};o.prototype.getDataByKey=function(p){return this.getState().getDataByKey(p)};o.prototype.reduce=function(p,q){__p&&__p();var r=q.action,s=j(r),t=s.appID,u=s.boostID,v=r.data;if(!c("BoostedComponentAppIDUtils").isBoostedAutomatedAds(t)&&!c("BoostedComponentAppIDUtils").isBoostedLeadGen(t))return p;var w=l(t,null,u),x=p.getDataByKey(w);switch(r.type){case c("AdsBoostedComponentCommonV2FetchDialogDataDataAction").actionType:case c("BoostedComponentFetchActionTypesV2").FETCH_ALL_DATA:return p.setDataByKey(w,new(c("BoostedComponentLeadGenStoreData"))());case c("AdsBoostedComponentCommonV2LoadDialogDataDataAction").actionType:case c("BoostedComponentFetchActionTypesV2").LOAD_ALL_DATA:case c("BoostedAutomatedAdsCommonActionTypesV2").CONVERSION_UPSELL_CREATE_SUCCESS:case c("AdsBoostedComponentCommonV2CreateSuccessDataAction").actionType:case c("AdsBoostedComponentCommonV2CreateSuccessWithBoostIdDataAction").actionType:var y=r.data.lead_gen_store_data,z="";if(!c("isEmpty")(y))z=y.lead_gen_data_id.toString();if(!(x instanceof c("BoostedComponentLeadGenStoreData")))p=p.setDataByKey(w,new(c("BoostedComponentLeadGenStoreData"))());return p.mergeDataByKey(w,{leadGenDataID:z,dataLoaded:true});case c("AdsBoostedComponentLeadGenV2FetchLeadGenDataDataAction").actionType:return p.mergeDataByKey(w,{isFetching:true});case c("AdsBoostedComponentLeadGenV2LoadLeadGenDataDataAction").actionType:var A=v.leads_data,B=v.more_leads_than_fetched,C=v.questions;if(!(x instanceof c("BoostedComponentLeadGenStoreData")))x=new(c("BoostedComponentLeadGenStoreData"))();x=x.withMutations(function(v){return v.set("isFetching",false).set("leadsData",c("immutable").fromJS(A)).set("leadGenDataLoaded",true).set("moreLeadsThanFetched",B).set("questions",c("immutable").fromJS(C))});return p.setDataByKey(w,x);case c("AdsBoostedComponentLeadGenV2FetchFormDataDataAction").actionType:return p.mergeDataByKey(w,{isFetching:true});case c("AdsBoostedComponentLeadGenV2LoadFormDataDataAction").actionType:var D=r.data,E=D.createdTime,F=D.formName,G=new(c("DateTime"))(E,m);return p.mergeDataByKey(w,{isFetching:false,formCreatedTime:G,formDataLoaded:true,formName:F});default:return p}};f.exports=new o(c("AdsDataAtom"))}),null);
__d("BoostedComponentLocalAwarenessStoreData",["BoostedComponentBaseStoreData","GeoCoordinates"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j={audienceSizeLoaded:false,currentMapSize:null,isCTACompatibleWithInstagram:false,pageLocation:null};h=babelHelpers.inherits(k,c("BoostedComponentBaseStoreData")(j));i=h&&h.prototype;k.prototype.getPageCoordinates=function(){if(this.pageLocation&&this.pageLocation.longitude&&this.pageLocation.latitude)return new(c("GeoCoordinates"))(this.pageLocation.latitude,this.pageLocation.longitude);return null};k.prototype.getAudienceSizeLoaded=function(){return this.audienceSizeLoaded};k.prototype.setAudienceSizeLoaded=function(l){return this.set("audienceSizeLoaded",l)};k.prototype.setPageLocation=function(l){return this.set("pageLocation",l)};k.prototype.getPageAddress=function(){if(this.pageLocation)return this.pageLocation.address_string||this.pageLocation.name;return null};k.prototype.setCurrentMapSize=function(l){return this.set("currentMapSize",l)};k.prototype.getCurrentMapSize=function(){return this.currentMapSize};k.prototype.getIsCTACompatibleWithInstagram=function(){return this.isCTACompatibleWithInstagram};k.prototype.setIsCTACompatibleWithInstagram=function(l){return this.set("isCTACompatibleWithInstagram",l)};function k(){h.apply(this,arguments)}f.exports=k}),null);
__d("BoostedComponentLocalAwarenessStoreV2",["AdsBoostedComponentCommonV2CreateSuccessWithBoostIdDataAction","AdsBoostedComponentCommonV2FetchDialogChangeDataDataAction","AdsBoostedComponentCommonV2FetchDialogDataDataAction","AdsBoostedComponentCommonV2LoadDialogChangeDataDataAction","AdsBoostedComponentCommonV2LoadDialogDataDataAction","AdsBoostedComponentLocalAwarenessV2UpdateMapSizeDataAction","AdsCallToActionTypes","AdsDataAtom","BoostedComponentContextStoreV2","BoostedComponentCreativeActionTypesV2","BoostedComponentFetchActionTypesV2","BoostedComponentLocalAwarenessStoreData","BoostedComponentStoreState","BoostedComponentV2Utils","FluxReduceStore"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("BoostedComponentV2Utils").getKeyData,k=c("BoostedComponentStoreState").BoostedComponentState,l=c("BoostedComponentStoreState").getKey,m=[c("BoostedComponentContextStoreV2").getDispatchToken()],n="BoostedComponentLocalAwarenessStoreV2";h=babelHelpers.inherits(o,c("FluxReduceStore"));i=h&&h.prototype;function o(){var p,q;for(var r=arguments.length,s=Array(r),t=0;t<r;t++)s[t]=arguments[t];return q=(p=i.constructor).call.apply(p,[this].concat(s)),this.storeName=n,q}o.prototype.getInitialState=function(){return new k({storeName:n})};o.prototype.getDataByKey=function(p){return this.getState().getDataByKey(p)};o.prototype.reduce=function(p,q){__p&&__p();var r=q.action,s=j(r),t=s.appID,u=s.boostID,v=s.targetID;if(!t)return p;var w=l(t,v,u);switch(r.type){case c("BoostedComponentFetchActionTypesV2").FETCH_ALL_DATA:case c("AdsBoostedComponentCommonV2FetchDialogDataDataAction").actionType:return p.setDataByKey(w,new(c("BoostedComponentLocalAwarenessStoreData"))());case c("BoostedComponentFetchActionTypesV2").LOAD_ALL_DATA:case c("AdsBoostedComponentCommonV2LoadDialogDataDataAction").actionType:c("AdsDataAtom").waitFor(m);var x=c("BoostedComponentContextStoreV2").getDataByKey(w),y=x.getIn(["page_info","local_awareness","page_location"]);y=y?y.toJS():null;var z=p.getDataByKey(w);if(!(z instanceof c("BoostedComponentLocalAwarenessStoreData")))z=new(c("BoostedComponentLocalAwarenessStoreData"))();z=z.setAudienceSizeLoaded(true).setPageLocation(y).set("dataLoaded",true);return p.setDataByKey(w,z);case c("AdsBoostedComponentCommonV2FetchDialogChangeDataDataAction").actionType:return p.mergeDataByKey(w,{audienceSizeLoaded:false});case c("AdsBoostedComponentCommonV2LoadDialogChangeDataDataAction").actionType:return p.mergeDataByKey(w,{audienceSizeLoaded:true});case c("AdsBoostedComponentLocalAwarenessV2UpdateMapSizeDataAction").actionType:var A=r.mapSize,B=p.getDataByKey(w),C=B.setCurrentMapSize(A);return p.setDataByKey(w,C);case c("BoostedComponentCreativeActionTypesV2").UPDATE_CALL_TO_ACTION:var D=r.callToActionType;if(!D)return p;var E=p.getDataByKey(w),F=E.setIsCTACompatibleWithInstagram(true);return p.setDataByKey(w,F);case c("AdsBoostedComponentCommonV2CreateSuccessWithBoostIdDataAction").actionType:return p.copyData(w,t,v,r.oldBoostID);default:return p}};f.exports=new o(c("AdsDataAtom"))}),null);
__d("BoostedComponentReviewAPIStoreData",["AdsReviewAPIFeedbackHelper","immutable"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j={cache:c("immutable").Map(),feedbackHelper:new(c("AdsReviewAPIFeedbackHelper"))()};h=babelHelpers.inherits(k,c("immutable").Record(j));i=h&&h.prototype;k.prototype.maybeSetFeedback=function(l,m){var n=this.getFeedbackHelper();n.maybeSetFeedback(l);if(!m){var o=this.getCache();o=o.set(l.adHash,l);return this.set("cache",o).set("feedbackHelper",n)}return this.set("feedbackHelper",n)};k.prototype.getFeedbackHelper=function(){return this.feedbackHelper};k.prototype.getCache=function(){return this.cache};k.prototype.getReviewFeedback=function(){return this.getFeedbackHelper().getReviewFeedback()};k.prototype.getIsAdRejected=function(){return this.getFeedbackHelper().getIsAdRejected()};k.prototype.getMaybeTextOverlayViolation=function(){return this.getFeedbackHelper().getMaybeTextOverlayViolation()};k.prototype.getPolicies=function(){return this.getFeedbackHelper().getPolicies()};k.prototype.getCreativeID=function(){return this.getFeedbackHelper().getCreativeID()};function k(){h.apply(this,arguments)}f.exports=k}),null);
__d("BoostedComponentReviewAPIStoreV2",["AdsBoostedComponentCommonV2CreateSuccessWithBoostIdDataAction","AdsBoostedComponentCommonV2FetchDialogDataDataAction","AdsDataAtom","AdsReviewAPIFeedbackHelper","BoostedComponentAdsReviewAPIActionTypesV2","BoostedComponentFetchActionTypesV2","BoostedComponentFluxReduceStore","BoostedComponentReviewAPIStoreData","BoostedComponentStoreState","BoostedComponentV2Utils"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("BoostedComponentV2Utils").getKeyData,k=c("BoostedComponentStoreState").BoostedComponentState,l=c("BoostedComponentStoreState").getKey,m="BoostedComponentReviewAPIStoreV2";h=babelHelpers.inherits(n,c("BoostedComponentFluxReduceStore"));i=h&&h.prototype;function n(){var o,p;for(var q=arguments.length,r=Array(q),s=0;s<q;s++)r[s]=arguments[s];return p=(o=i.constructor).call.apply(o,[this].concat(r)),this.storeName=m,p}n.prototype.getInitialState=function(){return new k({storeName:m})};n.prototype.getDataByKey=function(o){return this.getState().getDataByKey(o)};n.prototype.reduce=function(o,p){__p&&__p();var q=p.action,r=j(q),s=r.appID,t=r.boostID,u=r.targetID;if(!s)return o;var v=l(s,u,t),w=o.getDataByKey(v);switch(q.type){case c("AdsBoostedComponentCommonV2FetchDialogDataDataAction").actionType:case c("BoostedComponentFetchActionTypesV2").FETCH_ALL_DATA:var x=new(c("AdsReviewAPIFeedbackHelper"))();return o.setDataByKey(v,new(c("BoostedComponentReviewAPIStoreData"))({feedbackHelper:x}));case c("BoostedComponentAdsReviewAPIActionTypesV2").AD_REVIEW_API_REQUEST_COMPLETE:var y=q.data,z=q.isCacheHit;return o.setDataByKey(v,w.maybeSetFeedback(y,z));case c("AdsBoostedComponentCommonV2CreateSuccessWithBoostIdDataAction").actionType:return o.copyData(v,s,u,q.oldBoostID);default:return o}};f.exports=new n(c("AdsDataAtom"))}),null);
__d("BoostedComponentSurveyAndFeedbackStoreData",["BoostedComponentBaseStoreData"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j={cancel_flow_survey_uri:null,creation_flow_survey_uri:null,pause_survey_uri:null,view_results_flow_survey_uri:null,should_show_star_rating:false};h=babelHelpers.inherits(k,c("BoostedComponentBaseStoreData")(j));i=h&&h.prototype;k.prototype.getShouldShowStarRating=function(){return this.should_show_star_rating};k.prototype.getPauseSurveyURI=function(){return this.pause_survey_uri};k.prototype.getCreationFlowSurveyURI=function(){return this.creation_flow_survey_uri};k.prototype.getResultsFlowSurveyURI=function(){return this.view_results_flow_survey_uri};k.prototype.setShouldShowStarRating=function(l){return this.set("should_show_star_rating",l)};function k(){h.apply(this,arguments)}f.exports=k}),null);
__d("BoostedComponentSurveyAndFeedbackStoreV2",["AdsBoostedComponentCommonV2CreateSuccessWithBoostIdDataAction","AdsBoostedComponentCommonV2LoadDialogDataDataAction","AdsDataAtom","BoostedComponentFetchActionTypesV2","BoostedComponentFluxReduceStore","BoostedComponentStoreState","BoostedComponentSurveyAndFeedbackActionTypesV2","BoostedComponentSurveyAndFeedbackStoreData","BoostedComponentV2Utils"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("BoostedComponentV2Utils").getKeyData,k=c("BoostedComponentStoreState").BoostedComponentState,l=c("BoostedComponentStoreState").getKey,m="BoostedComponentSurveyAndFeedbackStoreV2";h=babelHelpers.inherits(n,c("BoostedComponentFluxReduceStore"));i=h&&h.prototype;function n(){var o,p;for(var q=arguments.length,r=Array(q),s=0;s<q;s++)r[s]=arguments[s];return p=(o=i.constructor).call.apply(o,[this].concat(r)),this.storeName=m,p}n.prototype.getInitialState=function(){return new k({storeName:m})};n.prototype.getDataByKey=function(o){return this.getState().getDataByKey(o)};n.prototype.reduce=function(o,p){__p&&__p();var q=p.action,r=j(q),s=r.appID,t=r.boostID,u=r.targetID;if(!s)return o;var v=l(s,u,t);switch(q.type){case c("AdsBoostedComponentCommonV2LoadDialogDataDataAction").actionType:case c("BoostedComponentFetchActionTypesV2").LOAD_ALL_DATA:var w=q.data.survey_and_feedback_store_data;w.dataLoaded=true;return o.setDataByKey(v,new(c("BoostedComponentSurveyAndFeedbackStoreData"))(w));case c("BoostedComponentSurveyAndFeedbackActionTypesV2").SAVE_SURVEY_FEEDBACK:var x=o.getDataByKey(v);x=x.setShouldShowStarRating(false);return o.setDataByKey(v,x);case c("AdsBoostedComponentCommonV2CreateSuccessWithBoostIdDataAction").actionType:return o.copyData(v,s,u,q.oldBoostID);default:return o}};f.exports=new n(c("AdsDataAtom"))}),null);
__d("AdsBoostedComponentAdPreviewV2PreviewAdLoadStartDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"BoostedComponentAdPreview.PREVIEW_AD_LOAD_START");f.exports=h}),null);
__d("AdsBoostedComponentAdPreviewV2PreviewAdLoadSuccessDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"BoostedComponentAdPreview.PREVIEW_AD_LOAD_SUCCESS");f.exports=h}),null);
__d("AdsBoostedComponentCommonV2AymtAutoOpenDialogLinkClickDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"BoostedComponentCommon.AYMT_AUTO_OPEN_DIALOG_LINK_CLICK");f.exports=h}),null);
__d("BoostedComponentTTIAbandonmentTypedLogger",["Banzai","GeneratedLoggerUtils","nullthrows"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(){this.clear()}h.prototype.log=function(){c("GeneratedLoggerUtils").log("logger:BoostedComponentTTIAbandonmentLoggerConfig",this.$BoostedComponentTTIAbandonmentTypedLogger1,c("Banzai").BASIC)};h.prototype.logVital=function(){c("GeneratedLoggerUtils").log("logger:BoostedComponentTTIAbandonmentLoggerConfig",this.$BoostedComponentTTIAbandonmentTypedLogger1,c("Banzai").VITAL)};h.prototype.clear=function(){this.$BoostedComponentTTIAbandonmentTypedLogger1={};return this};h.prototype.updateData=function(j){this.$BoostedComponentTTIAbandonmentTypedLogger1=babelHelpers["extends"]({},this.$BoostedComponentTTIAbandonmentTypedLogger1,j);return this};h.prototype.setActionID=function(j){this.$BoostedComponentTTIAbandonmentTypedLogger1.action_id=j;return this};h.prototype.setAdPreviewTime=function(j){this.$BoostedComponentTTIAbandonmentTypedLogger1.ad_preview_time=j;return this};h.prototype.setAutoOpenDialog=function(j){this.$BoostedComponentTTIAbandonmentTypedLogger1.auto_open_dialog=j;return this};h.prototype.setClientTime=function(j){this.$BoostedComponentTTIAbandonmentTypedLogger1.client_time=j;return this};h.prototype.setDataReadyToClick=function(j){this.$BoostedComponentTTIAbandonmentTypedLogger1.data_ready_to_click=j;return this};h.prototype.setEntryPoint=function(j){this.$BoostedComponentTTIAbandonmentTypedLogger1.entry_point=j;return this};h.prototype.setFlow=function(j){this.$BoostedComponentTTIAbandonmentTypedLogger1.flow=j;return this};h.prototype.setFlowID=function(j){this.$BoostedComponentTTIAbandonmentTypedLogger1.flow_id=j;return this};h.prototype.setIsBoosted=function(j){this.$BoostedComponentTTIAbandonmentTypedLogger1.is_boosted=j;return this};h.prototype.setNetworkTime=function(j){this.$BoostedComponentTTIAbandonmentTypedLogger1.network_time=j;return this};h.prototype.setPageID=function(j){this.$BoostedComponentTTIAbandonmentTypedLogger1.page_id=j;return this};h.prototype.setPayload=function(j){this.$BoostedComponentTTIAbandonmentTypedLogger1.payload=j;return this};h.prototype.setServerTime=function(j){this.$BoostedComponentTTIAbandonmentTypedLogger1.server_time=j;return this};h.prototype.setSourceAppID=function(j){this.$BoostedComponentTTIAbandonmentTypedLogger1.source_app_id=j;return this};h.prototype.setTargetID=function(j){this.$BoostedComponentTTIAbandonmentTypedLogger1.target_id=j;return this};h.prototype.setTimeToAbandon=function(j){this.$BoostedComponentTTIAbandonmentTypedLogger1.time_to_abandon=j;return this};h.prototype.setVC=function(j){this.$BoostedComponentTTIAbandonmentTypedLogger1.vc=j;return this};h.prototype.setVersion=function(j){this.$BoostedComponentTTIAbandonmentTypedLogger1.version=j;return this};var i={action_id:true,ad_preview_time:true,auto_open_dialog:true,client_time:true,data_ready_to_click:true,entry_point:true,flow:true,flow_id:true,is_boosted:true,network_time:true,page_id:true,payload:true,server_time:true,source_app_id:true,target_id:true,time_to_abandon:true,vc:true,version:true};f.exports=h}),null);
__d("BoostedComponentTTITypedLogger",["Banzai","GeneratedLoggerUtils","nullthrows"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();function h(){this.clear()}h.prototype.log=function(){c("GeneratedLoggerUtils").log("logger:BoostedComponentTTILoggerConfig",this.$BoostedComponentTTITypedLogger1,c("Banzai").BASIC)};h.prototype.logVital=function(){c("GeneratedLoggerUtils").log("logger:BoostedComponentTTILoggerConfig",this.$BoostedComponentTTITypedLogger1,c("Banzai").VITAL)};h.prototype.clear=function(){this.$BoostedComponentTTITypedLogger1={};return this};h.prototype.updateData=function(j){this.$BoostedComponentTTITypedLogger1=babelHelpers["extends"]({},this.$BoostedComponentTTITypedLogger1,j);return this};h.prototype.setActionID=function(j){this.$BoostedComponentTTITypedLogger1.action_id=j;return this};h.prototype.setAdPreviewTime=function(j){this.$BoostedComponentTTITypedLogger1.ad_preview_time=j;return this};h.prototype.setAutoOpenDialog=function(j){this.$BoostedComponentTTITypedLogger1.auto_open_dialog=j;return this};h.prototype.setClientTime=function(j){this.$BoostedComponentTTITypedLogger1.client_time=j;return this};h.prototype.setDataReadyToClick=function(j){this.$BoostedComponentTTITypedLogger1.data_ready_to_click=j;return this};h.prototype.setEntryPoint=function(j){this.$BoostedComponentTTITypedLogger1.entry_point=j;return this};h.prototype.setFlow=function(j){this.$BoostedComponentTTITypedLogger1.flow=j;return this};h.prototype.setFlowID=function(j){this.$BoostedComponentTTITypedLogger1.flow_id=j;return this};h.prototype.setIsBoosted=function(j){this.$BoostedComponentTTITypedLogger1.is_boosted=j;return this};h.prototype.setNetworkTime=function(j){this.$BoostedComponentTTITypedLogger1.network_time=j;return this};h.prototype.setPageID=function(j){this.$BoostedComponentTTITypedLogger1.page_id=j;return this};h.prototype.setPayload=function(j){this.$BoostedComponentTTITypedLogger1.payload=j;return this};h.prototype.setServerNetworkTime=function(j){this.$BoostedComponentTTITypedLogger1.server_network_time=j;return this};h.prototype.setServerTime=function(j){this.$BoostedComponentTTITypedLogger1.server_time=j;return this};h.prototype.setSourceAppID=function(j){this.$BoostedComponentTTITypedLogger1.source_app_id=j;return this};h.prototype.setTargetID=function(j){this.$BoostedComponentTTITypedLogger1.target_id=j;return this};h.prototype.setTti=function(j){this.$BoostedComponentTTITypedLogger1.tti=j;return this};h.prototype.setVC=function(j){this.$BoostedComponentTTITypedLogger1.vc=j;return this};h.prototype.setVersion=function(j){this.$BoostedComponentTTITypedLogger1.version=j;return this};var i={action_id:true,ad_preview_time:true,auto_open_dialog:true,client_time:true,data_ready_to_click:true,entry_point:true,flow:true,flow_id:true,is_boosted:true,network_time:true,page_id:true,payload:true,server_network_time:true,server_time:true,source_app_id:true,target_id:true,tti:true,vc:true,version:true};f.exports=h}),null);
__d("BoostedComponentTTIStoreData",["BoostedComponentTTIAbandonmentTypedLogger","BoostedComponentTTITypedLogger","immutable"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("immutable").Record({aymt_link_click:null,auto_open:false,data_fetch_start:null,data_fetch_done:null,dialog_open_start:null,server_send_response:null,server_receive_request:null,data_size:null,ad_preview_start:null,flow_id:null,app_id:null,page_id:null,target_id:null,entry_point:null,is_boosted:null,logged:false}));i=h&&h.prototype;j.prototype.dataFetchStart=function(){return this.set("data_fetch_start",Date.now())};j.prototype.setAdPreviewStart=function(){return this.set("ad_preview_start",Date.now())};j.prototype.setAymtLinkClick=function(){return this.set("aymt_link_click",Date.now())};j.prototype.dataFetchDone=function(k,l,m,n,o,p,q,r,s){return this.set("data_fetch_done",Date.now()).set("target_id",k).set("data_size",l).set("app_id",m).set("page_id",p).set("flow_id",q).set("entry_point",r).set("is_boosted",s).set("server_receive_request",n).set("server_send_response",o)};j.prototype.setDialogOpenStart=function(){return this.set("dialog_open_start",Date.now())};j.prototype.upsellButtonClicked=function(k,l,m,n){return this.set("flow_id",l).set("page_id",k).set("entry_point",m).set("is_boosted",n)};j.prototype.isValidData=function(){if(!this.flow_id||!this.app_id||!this.page_id||!this.entry_point||!this.ad_preview_start||!this.dialog_open_start&&!this.aymt_link_click||!this.data_fetch_done||!this.server_send_response||!this.server_receive_request||!this.data_size)return false;return true};j.prototype.log=function(){if(!this.logged){if(this.isValidData()){var k=Date.now();new(c("BoostedComponentTTITypedLogger"))().setFlowID(this.flow_id).setSourceAppID(this.app_id).setPageID(this.page_id).setTargetID(this.target_id).setEntryPoint(this.entry_point).setClientTime(this.ad_preview_start-Math.max(this.data_fetch_done,this.dialog_open_start)).setServerTime(this.server_send_response-this.server_receive_request).setNetworkTime(this.data_fetch_done-this.server_send_response+this.server_receive_request-this.data_fetch_start).setTti(this.aymt_link_click?k-this.aymt_link_click:k-this.dialog_open_start).setAdPreviewTime(k-this.ad_preview_start).setDataReadyToClick(Math.max(0,this.dialog_open_start-this.data_fetch_done)).setPayload(this.data_size).setAutoOpenDialog(this.auto_open).setIsBoosted(this.is_boosted).setVersion(2).log()}return this.set("logged",true)}return this};j.prototype.isValidAbandonmentData=function(){if(!this.flow_id||!this.app_id||!this.page_id||!this.entry_point||!this.dialog_open_start)return false;return true};j.prototype.logAbandonment=function(k){__p&&__p();if(!this.logged){if(this.isValidAbandonmentData()){var l=Date.now(),m=new(c("BoostedComponentTTIAbandonmentTypedLogger"))().setFlowID(this.flow_id).setSourceAppID(k).setPageID(this.page_id).setTargetID(this.target_id).setEntryPoint(this.entry_point).setTimeToAbandon(l-this.dialog_open_start).setAutoOpenDialog(this.auto_open).setIsBoosted(this.is_boosted).setVersion(2);if(this.ad_preview_start&&this.data_fetch_done)m.setClientTime(this.ad_preview_start-Math.max(this.data_fetch_done,this.dialog_open_start));if(this.server_send_response&&this.server_receive_request)m.setServerTime(this.server_send_response-this.server_receive_request);if(this.data_fetch_done&&this.server_receive_request&&this.server_send_response)m.setNetworkTime(this.data_fetch_done-this.server_send_response+this.server_receive_request-this.data_fetch_start);if(this.data_fetch_done)m.setDataReadyToClick(Math.max(0,this.dialog_open_start-this.data_fetch_done));if(this.data_size)m.setPayload(this.data_size);m.log()}return this.set("logged",true)}return this};function j(){h.apply(this,arguments)}f.exports=j}),null);
__d("BoostedComponentTTIStoreV2",["AdsBoostedComponentAdPreviewV2PreviewAdLoadStartDataAction","AdsBoostedComponentAdPreviewV2PreviewAdLoadSuccessDataAction","AdsBoostedComponentCommonV2AymtAutoOpenDialogLinkClickDataAction","AdsBoostedComponentCommonV2CreateSuccessWithBoostIdDataAction","AdsBoostedComponentCommonV2FetchDialogDataDataAction","AdsBoostedComponentCommonV2LoadDialogDataDataAction","AdsBoostedComponentDialogUiv2AutoOpenDataAction","AdsBoostedComponentDialogUiv2ButtonClickDataAction","AdsBoostedComponentDialogUiv2CloseDialogClickDataAction","AdsDataAtom","BoostedComponentAppID","BoostedComponentContextStoreV2","BoostedComponentDialogUIActionTypesV2","BoostedComponentExistingAdInfoStoreV2","BoostedComponentFetchActionTypesV2","BoostedComponentFluxReduceStore","BoostedComponentStoreState","BoostedComponentTTIStoreData","BoostedComponentV2Utils","URI"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("BoostedComponentV2Utils").getKeyData,k=c("BoostedComponentStoreState").BoostedComponentState,l=c("BoostedComponentStoreState").getKey,m="BoostedComponentTTIStoreV2";h=babelHelpers.inherits(n,c("BoostedComponentFluxReduceStore"));i=h&&h.prototype;function n(){var o,p;for(var q=arguments.length,r=Array(q),s=0;s<q;s++)r[s]=arguments[s];return p=(o=i.constructor).call.apply(o,[this].concat(r)),this.storeName=m,p}n.prototype.getInitialState=function(){return new k({storeName:m})};n.prototype.getDataByKey=function(o){return this.getState().getDataByKey(o)};n.prototype.reduce=function(o,p){__p&&__p();var q=p.action,r=j(q),s=r.appID,t=r.boostID,u=r.targetID,v=q.data;if(!s||s===c("BoostedComponentAppID").BOOSTED_AUTOMATED_ADS)return o;var w=l(s,u,t),x=o.getDataByKey(w);switch(q.type){case c("AdsBoostedComponentCommonV2AymtAutoOpenDialogLinkClickDataAction").actionType:if(!(x instanceof c("BoostedComponentTTIStoreData")))x=new(c("BoostedComponentTTIStoreData"))();var y=q.pageID,z=q.placement;x=x.setAymtLinkClick();x=x.upsellButtonClicked(y,"",z,false);return o.setDataByKey(w,x);case c("AdsBoostedComponentCommonV2FetchDialogDataDataAction").actionType:case c("BoostedComponentFetchActionTypesV2").FETCH_ALL_DATA:if(!(x instanceof c("BoostedComponentTTIStoreData")))x=new(c("BoostedComponentTTIStoreData"))();x=x.dataFetchStart();return o.setDataByKey(w,x);case c("AdsBoostedComponentDialogUiv2AutoOpenDataAction").actionType:if(!(x instanceof c("BoostedComponentTTIStoreData")))x=new(c("BoostedComponentTTIStoreData"))();x=x.dataFetchStart();x=x.set("auto_open",true);var A=new(c("URI"))(window.location.href),B=A.getQueryData(),C=B.aymt_tip,D=B.aymt_link_click,E=B.tti;if(C==="1"&&D&&!E){x=x.set("aymt_link_click",D);window.history.pushState("","",A.addQueryData("tti",1).toString())}return o.setDataByKey(w,x);case c("AdsBoostedComponentCommonV2LoadDialogDataDataAction").actionType:case c("BoostedComponentFetchActionTypesV2").LOAD_ALL_DATA:c("AdsDataAtom").waitFor([c("BoostedComponentContextStoreV2").getDispatchToken(),c("BoostedComponentExistingAdInfoStoreV2").getDispatchToken()]);var F=c("BoostedComponentContextStoreV2").getDataByKey(w),G=c("BoostedComponentExistingAdInfoStoreV2").getDataByKey(w),H=v.tti_store_data;if(H){x=x.dataFetchDone(u?u:null,H.data_size,s,H.server_receive_request,H.server_send_response,F.getPageID(),F.getFlowID(),F.getPlacement(),G.getIsBoosted());return o.setDataByKey(w,x)}return o;case c("AdsBoostedComponentDialogUiv2ButtonClickDataAction").actionType:if(!(x instanceof c("BoostedComponentTTIStoreData")))x=new(c("BoostedComponentTTIStoreData"))();x=x.setDialogOpenStart();c("AdsDataAtom").waitFor([c("BoostedComponentContextStoreV2").getDispatchToken(),c("BoostedComponentExistingAdInfoStoreV2").getDispatchToken()]);var I=c("BoostedComponentContextStoreV2").getDataByKey(w),J=c("BoostedComponentExistingAdInfoStoreV2").getDataByKey(w);x=x.upsellButtonClicked(I.getPageID(),I.getFlowID(),I.getPlacement(),J.getIsBoosted());return o.setDataByKey(w,x);case c("AdsBoostedComponentAdPreviewV2PreviewAdLoadStartDataAction").actionType:x=x.setAdPreviewStart();return o.setDataByKey(w,x);case c("AdsBoostedComponentAdPreviewV2PreviewAdLoadSuccessDataAction").actionType:x=x.log();return o.setDataByKey(w,x);case c("AdsBoostedComponentDialogUiv2CloseDialogClickDataAction").actionType:case c("BoostedComponentDialogUIActionTypesV2").EDIT_DIALOG_CLOSE:x=x.logAbandonment(s);return o.setDataByKey(w,x);case c("AdsBoostedComponentCommonV2CreateSuccessWithBoostIdDataAction").actionType:return o.copyData(w,s,u,q.oldBoostID);default:return o}};f.exports=new n(c("AdsDataAtom"))}),null);
__d("BoostedComponentTextPenaltyPhotoSwapState",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({NEUTRAL:"Neutral",UPLOADING:"Uploading",CHANGED:"Changed"})}),null);
__d("BoostedComponentTextPenaltyStoreData",["BoostedComponentBaseStoreData","BoostedComponentTextPenaltyPhotoSwapState"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j={newPhotoFBID:null,newPhotoURI:null,textPenaltyPhotoSwapState:c("BoostedComponentTextPenaltyPhotoSwapState").NEUTRAL,textPenaltyScore:null};h=babelHelpers.inherits(k,c("BoostedComponentBaseStoreData")(j));i=h&&h.prototype;k.prototype.getTextPenaltyPhotoSwapState=function(){return this.textPenaltyPhotoSwapState};k.prototype.setTextPenaltyPhotoSwapState=function(l){return this.set("textPenaltyPhotoSwapState",l)};k.prototype.getNewPhotoURI=function(){return this.newPhotoURI};k.prototype.setNewPhotoURI=function(l){return this.set("newPhotoURI",l)};k.prototype.getNewPhotoFBID=function(){return this.newPhotoFBID};k.prototype.setNewPhotoFBID=function(l){return this.set("newPhotoFBID",l)};k.prototype.getTextPenaltyScore=function(){return this.textPenaltyScore};k.prototype.setTextPenaltyScore=function(l){return this.set("textPenaltyScore",l)};function k(){h.apply(this,arguments)}f.exports=k}),null);
__d("BoostedComponentTextPenaltyStoreV2",["AdsBoostedComponentCommonV2CreateSuccessWithBoostIdDataAction","AdsBoostedComponentCommonV2FetchDialogDataDataAction","AdsBoostedComponentCommonV2LoadDialogDataDataAction","AdsDataAtom","BoostedComponentFetchActionTypesV2","BoostedComponentFluxReduceStore","BoostedComponentStoreState","BoostedComponentTextPenaltyActionTypesV2","BoostedComponentTextPenaltyStoreData","BoostedComponentV2Utils"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("BoostedComponentV2Utils").getKeyData,k=c("BoostedComponentStoreState").BoostedComponentState,l=c("BoostedComponentStoreState").getKey,m="BoostedComponentTextPenaltyStoreV2";h=babelHelpers.inherits(n,c("BoostedComponentFluxReduceStore"));i=h&&h.prototype;function n(){var o,p;for(var q=arguments.length,r=Array(q),s=0;s<q;s++)r[s]=arguments[s];return p=(o=i.constructor).call.apply(o,[this].concat(r)),this.storeName=m,p}n.prototype.getInitialState=function(){return new k({storeName:m})};n.prototype.getDataByKey=function(o){return this.getState().getDataByKey(o)};n.prototype.reduce=function(o,p){__p&&__p();var q=p.action,r=j(q),s=r.appID,t=r.boostID,u=r.targetID;if(!s)return o;var v=l(s,u,t),w=o.getDataByKey(v);switch(q.type){case c("BoostedComponentFetchActionTypesV2").FETCH_ALL_DATA:case c("AdsBoostedComponentCommonV2FetchDialogDataDataAction").actionType:return o.setDataByKey(v,new(c("BoostedComponentTextPenaltyStoreData"))({dataLoaded:true}));case c("BoostedComponentFetchActionTypesV2").LOAD_ALL_DATA:case c("AdsBoostedComponentCommonV2LoadDialogDataDataAction").actionType:if(!(w instanceof c("BoostedComponentTextPenaltyStoreData")))w=new(c("BoostedComponentTextPenaltyStoreData"))({dataLoaded:true});return o.setDataByKey(v,w);case c("BoostedComponentTextPenaltyActionTypesV2").START_UPLOAD_NEW_PAGE_POST_PHOTO:return o.setDataByKey(v,w.setTextPenaltyPhotoSwapState("Uploading"));case c("BoostedComponentTextPenaltyActionTypesV2").FINISH_SUCCESS_UPLOAD_NEW_PAGE_POST_PHOTO:var x=q.uri,y=q.fbid,z=q.text_penalty;return o.setDataByKey(v,w.setTextPenaltyPhotoSwapState("Changed").setNewPhotoURI(x).setNewPhotoFBID(y).setTextPenaltyScore(z));case c("AdsBoostedComponentCommonV2CreateSuccessWithBoostIdDataAction").actionType:return o.copyData(v,s,u,q.oldBoostID)}return o};f.exports=new n(c("AdsDataAtom"))}),null);
__d("BoostedComponentInitUtils",["AdsDataAtom","AdsLWICurrentDialogStateStore","AdsLWIInstanceStore","BoostedComponentAdAccountActionsV2","BoostedComponentAdAccountStoreV2","BoostedComponentAppID","BoostedComponentAppStateStore","BoostedComponentContextStoreV2","BoostedComponentDialogUIStoreV2","BoostedComponentExistingAdInfoStoreV2","BoostedComponentInstagramActionsV2","BoostedComponentLoggerStoreV2","BoostedComponentPaymentStoreV2","BoostedComponentStoreState","BoostedComponentTTIStoreV2","ImageReviewRequestStore","Set","WebApiApplication","AdsLWIAdgroupListStore","AdsLWIAdgroupStore","AdsLWICreativeStore","AdsLWICreativeRefreshStore","BoostedActionCreativeStoreV2","BoostedComponentAudienceStoreV2","BoostedComponentBudgetEstimationStoreV2","BoostedComponentCheckoutStoreV2","BoostedComponentConstraintStoreV2","BoostedComponentCouponPromotionStoreV2","BoostedComponentDeliveryStoreV2","BoostedComponentDurationStoreV2","BoostedComponentExperimentationStoreV2","BoostedComponentInsightsStoreV2","BoostedComponentInstagramStoreV2","BoostedComponentLeadGenStoreV2","BoostedComponentLocalAwarenessStoreV2","BoostedComponentMonthlyBudgetEstimationStoreV2","BoostedComponentNewAdInfoStoreV2","BoostedComponentPixelStoreV2","BoostedComponentReviewAPIStoreV2","BoostedComponentSubmisionStatusStoreV2","BoostedComponentSurveyAndFeedbackStoreV2","BoostedComponentURIStoreV2","BoostedComponentValidationStoreV2","BoostedPostCreativeStoreV2","AdsLWIRetargetingSpecStore","BoostedAutomatedAdsBudgetStoreV2","BoostedAutomatedAdsDialogUIStoreV2","BoostedAutomatedAdsInsightsStoreV2","BoostedAutomatedAdsLoggerStoreV2","BoostedAutomatedAdsMultiAdgroupSpecStoreV2","BoostedAutomatedAdsObjectiveStoreV2","BoostedAutomatedAdsRulesStoreV2","BoostedAutomatedAdsSubmissionStatusStoreV2","BoostedAutomatedAdsValidationStoreV2","BoostedComponentAudienceImmStoreV2","BoostedComponentTextPenaltyStoreV2","BoostedAppInstallCreativeSectionContainer.react","BoostedWebsiteCreativeSectionContainer.react","BoostedPostCreativeSectionContainer.react","BoostedPagelikeCreativeSectionContainer.react","BoostedEventCreativeSectionContainer.react"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=c("BoostedComponentStoreState").getKey,i=c("BoostedComponentAppID").BOOSTED_POST,j=c("BoostedComponentAppID").BOOSTED_WEBSITE,k=false,l=false,m=false,n=false,o=false,p=new(c("Set"))(),q=function q(){if(m)return;c("AdsDataAtom").explicitlyRegisterStores([c("AdsLWICurrentDialogStateStore"),c("AdsLWIInstanceStore"),c("BoostedComponentAdAccountStoreV2"),c("BoostedComponentAppStateStore"),c("BoostedComponentContextStoreV2"),c("BoostedComponentDialogUIStoreV2"),c("BoostedComponentExistingAdInfoStoreV2"),c("BoostedComponentLoggerStoreV2"),c("BoostedComponentPaymentStoreV2"),c("BoostedComponentTTIStoreV2"),c("ImageReviewRequestStore")]);m=true},r=function r(){if(o)return;c("AdsDataAtom").explicitlyRegisterStores([c("AdsLWIAdgroupListStore"),c("AdsLWIAdgroupStore"),c("AdsLWICreativeStore"),c("AdsLWICreativeRefreshStore"),c("BoostedActionCreativeStoreV2"),c("BoostedComponentAudienceStoreV2"),c("BoostedComponentBudgetEstimationStoreV2"),c("BoostedComponentCheckoutStoreV2"),c("BoostedComponentConstraintStoreV2"),c("BoostedComponentCouponPromotionStoreV2"),c("BoostedComponentDeliveryStoreV2"),c("BoostedComponentDurationStoreV2"),c("BoostedComponentExperimentationStoreV2"),c("BoostedComponentInsightsStoreV2"),c("BoostedComponentInstagramStoreV2"),c("BoostedComponentLeadGenStoreV2"),c("BoostedComponentLocalAwarenessStoreV2"),c("BoostedComponentMonthlyBudgetEstimationStoreV2"),c("BoostedComponentNewAdInfoStoreV2"),c("BoostedComponentPixelStoreV2"),c("BoostedComponentReviewAPIStoreV2"),c("BoostedComponentSubmisionStatusStoreV2"),c("BoostedComponentSurveyAndFeedbackStoreV2"),c("BoostedComponentURIStoreV2"),c("BoostedComponentValidationStoreV2"),c("BoostedPostCreativeStoreV2")]);o=true},s=function s(){if(l)return;c("AdsDataAtom").explicitlyRegisterStores([c("AdsLWIAdgroupListStore"),c("AdsLWIAdgroupStore"),c("AdsLWICreativeStore"),c("AdsLWICreativeRefreshStore"),c("AdsLWIRetargetingSpecStore"),c("BoostedAutomatedAdsBudgetStoreV2"),c("BoostedAutomatedAdsDialogUIStoreV2"),c("BoostedAutomatedAdsInsightsStoreV2"),c("BoostedAutomatedAdsLoggerStoreV2"),c("BoostedAutomatedAdsMultiAdgroupSpecStoreV2"),c("BoostedAutomatedAdsObjectiveStoreV2"),c("BoostedAutomatedAdsRulesStoreV2"),c("BoostedAutomatedAdsSubmissionStatusStoreV2"),c("BoostedAutomatedAdsValidationStoreV2"),c("BoostedComponentAdAccountStoreV2"),c("BoostedComponentAudienceImmStoreV2"),c("BoostedComponentConstraintStoreV2"),c("BoostedComponentContextStoreV2"),c("BoostedComponentCouponPromotionStoreV2"),c("BoostedComponentDeliveryStoreV2"),c("BoostedComponentDurationStoreV2"),c("BoostedComponentExistingAdInfoStoreV2"),c("BoostedComponentInsightsStoreV2"),c("BoostedComponentLeadGenStoreV2"),c("BoostedComponentReviewAPIStoreV2"),c("BoostedComponentSubmisionStatusStoreV2"),c("BoostedComponentSurveyAndFeedbackStoreV2"),c("BoostedComponentURIStoreV2"),c("BoostedComponentTextPenaltyStoreV2")]);l=true},t=function t(x){__p&&__p();if(n)return;switch(x){case c("BoostedComponentAppID").BOOSTED_APP_INSTALL:c("BoostedAppInstallCreativeSectionContainer.react");break;case c("BoostedComponentAppID").BOOSTED_WEBSITE:c("BoostedWebsiteCreativeSectionContainer.react");break;case c("BoostedComponentAppID").BOOSTED_POST:c("BoostedPostCreativeSectionContainer.react");break;case c("BoostedComponentAppID").BOOSTED_PAGELIKE:c("BoostedPagelikeCreativeSectionContainer.react");break;case c("BoostedComponentAppID").BOOSTED_EVENT:c("BoostedEventCreativeSectionContainer.react");break;default:break}n=true},u=function u(x,y){c("WebApiApplication").init(y,x)},v=function v(x,y){if(k)return;c("BoostedComponentAdAccountActionsV2").fetchAdAccountData(x,y);k=true},w=function w(x,y,z){var A=h(x,y,null);if(p.has(A))return;c("BoostedComponentInstagramActionsV2").connectInstagramBusinessAccount(x,y,z);p.add(A)};f.exports={registerBoostedAutomatedAdsStores:s,registerBoostedComponentButtonStores:q,registerBoostedComponentDialogStores:r,bootloadCreativeSectionContainer:t,initBoostedComponentApp:u,connectInstagramBusinessAccount:w,fetchAdAccountData:v}}),null);
__d("AdsCommonTargetingSentencesRenderer.react",["cx","fbt","FBMoreLink.react","React","SUIBusinessTheme","SUIText.react","intlList"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("React").PropTypes;j=babelHelpers.inherits(m,c("React").Component);k=j&&j.prototype;function m(){var n,o;for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=k.constructor).call.apply(n,[this].concat(q)),this.$AdsCommonTargetingSentencesRenderer3=function(){this.props.onShowClick&&this.props.onShowClick(this.props.isCollapsed)}.bind(this),o}m.prototype.$AdsCommonTargetingSentencesRenderer1=function(){return this.props.isOnDarkBackground?"white":"dark"};m.prototype.render=function(){__p&&__p();var n=this.props,o=n.isCollapsed,p=n.numSentencesToShow,q=n.sentences,r=babelHelpers.objectWithoutProperties(n,["isCollapsed","numSentencesToShow","sentences"]);if(!q)return null;if(p)q=q.slice(0,Math.max(0,p));var s=q.map(function(u){return this.$AdsCommonTargetingSentencesRenderer2(u)}.bind(this)),t=void 0;if(o!=null)t=c("React").createElement("li",null,c("React").createElement(c("FBMoreLink.react"),{allowToggle:true,isCollapsed:o,onClick:this.$AdsCommonTargetingSentencesRenderer3}));return c("React").createElement("ul",r,s,t)};m.prototype.$AdsCommonTargetingSentencesRenderer2=function(n){if(!n.content)return c("React").createElement("li",{key:n},n);var o=n.content+n.children.join("");return c("React").createElement("li",{className:"_3v3m",key:o},c("React").createElement(c("SUIText.react"),{shade:this.$AdsCommonTargetingSentencesRenderer1(),size:"meta1",theme:c("SUIBusinessTheme")},i._("{category name, ends with colon} {list of selected options}",[i.param("category name, ends with colon",c("React").createElement(c("SUIText.react"),{shade:"light"},n.content)),i.param("list of selected options",c("intlList")(n.children,c("intlList").CONJUNCTIONS.NONE))])))};m.propTypes={isCollapsed:l.bool,isOnDarkBackground:l.bool,numSentencesToShow:l.number,sentences:l.arrayOf(l.oneOfType([l.object,l.string])),onShowClick:l.func};f.exports=m}),null);
__d("AdsCurrencyInput.react",["AdsAbstractCurrencyInput.react","React","SUIBusinessThemeContainer.react","SUITextInput.react","ifRequired"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("React").PropTypes;h=babelHelpers.inherits(k,c("React").Component);i=h&&h.prototype;function k(){var l,m;for(var n=arguments.length,o=Array(n),p=0;p<n;p++)o[p]=arguments[p];return m=(l=i.constructor).call.apply(l,[this].concat(o)),this.focusInput=function(){this.refs.input.focusInput()}.bind(this),this.onUnderlyingValueChange=function(q,r){c("ifRequired")("AdsCMLoggerInternal",function(s){s.log("ADS_CM_CURRENCY_INPUT_CHANGE",null,{old_value:r,new_value:q})});this.props.onUnderlyingValueChange&&this.props.onUnderlyingValueChange(q,r)}.bind(this),m}k.prototype.render=function(){return c("React").createElement(c("SUIBusinessThemeContainer.react"),null,c("React").createElement(c("AdsAbstractCurrencyInput.react"),babelHelpers["extends"]({},this.props,{ref:"input",textInputClass:c("SUITextInput.react"),onUnderlyingValueChange:this.onUnderlyingValueChange})))};k.propTypes={"data-testid":j.string,currency:j.string.isRequired,eventType:j.oneOf(["change","blur"]),invalidInputIsNull:j.bool,negativeIsNull:j.bool,nonnegative:j.bool,showSymbol:j.bool,value:j.number,withDecimals:j.bool,withISO:j.bool,onDataUpdate:j.func.isRequired,onKeyUp:j.func,onMultiplePaste:j.func,onUnderlyingValueChange:j.func};k.defaultProps={onKeyUp:null,xuiError:null};f.exports=k}),null);
__d("AdsSpinnerCover.react",["cx","React","SUIBusinessTheme","SUISpinner.react","joinClasses"],(function a(b,c,d,e,f,g,h){"use strict";var i=function i(j){var k=c("joinClasses")(j.className,"_2qei"+(j.show?" _2qej":"")+(j.background==="medium"?" _2qek":"")+(j.background==="dark"?" _2qel":"")),l=j.show?c("React").createElement("div",{className:"_2qer"},c("React").createElement(c("SUISpinner.react"),{background:j.background==="medium"||j.background==="dark"?"dark":"light",size:"large",theme:c("SUIBusinessTheme")})):null;return c("React").createElement("div",{className:k},l)};f.exports=i}),null);
__d("AdsStickyArea.react",["cx","Event","Parent","React","ReactDOM","Style","SubscriptionsHandler","UserAgent","Vector","debounce"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes,l=10,m=12,n=12;i=babelHelpers.inherits(o,c("React").Component);j=i&&i.prototype;function o(){__p&&__p();var p,q;for(var r=arguments.length,s=Array(r),t=0;t<r;t++)s[t]=arguments[t];return q=(p=j.constructor).call.apply(p,[this].concat(s)),this.$AdsStickyArea10=function(u){__p&&__p();u.deliberateSync=true;if(this.$AdsStickyArea1&&this.$AdsStickyArea6){var v=this.$AdsStickyArea6,w=v.scrollHeight,x=v.clientHeight;if(x!==w){var y=v.scrollTop+u.deltaY;if(y>=0&&y+x<=w)return}var z=this.$AdsStickyArea5;if(z){z.scrollTop+=u.deltaY;this.$AdsStickyArea4&&this.$AdsStickyArea4();u.preventDefault()}}}.bind(this),this.reflow=function(){__p&&__p();if(this.$AdsStickyArea9())return;var u=this.$AdsStickyArea5,v=this.$AdsStickyArea2,w=this.$AdsStickyArea6;if(!u||!w||!v)return;this.$AdsStickyArea11();var x=w.getBoundingClientRect(),y=x.top,z=x.width,A=x.height;if(u===window){this.$AdsStickyArea12();return}var B=u.getBoundingClientRect(),C=B.top,D=B.left,E=B.height,F=u.scrollHeight,G=c("Vector").getElementPosition(this.$AdsStickyArea2,"viewport"),H=this.props.topOffset;if(y-H>C||F<=u.scrollTop+(y-C)+A+m){this.$AdsStickyArea12();return}w.style.position="fixed";w.style.maxHeight=E-H+"px";v.style.minWidth=z+"px";if(this.props.zIndex)w.style.zIndex=this.props.zIndex.toString();if(this.props.canOverflow)w.style.overflowY="auto";w.style.width=z+"px";var I=this.props.topHeaderOffset||0,J=this.props.inContainingBlock?H+I:H+C;w.style.top=J+"px";var K=this.props.inContainingBlock?G.x-D:G.x;w.style.left=K+"px";w.className="_2712";this.$AdsStickyArea1=true;this.$AdsStickyArea13(J,x.height)}.bind(this),this.$AdsStickyArea14=function(u){__p&&__p();if(u){if(this.props.findParentByScrollableClass){var v=c("Parent").byClass(u,"scrollable");this.$AdsStickyArea5=v instanceof HTMLElement?v:null}else this.$AdsStickyArea5=c("Style").getScrollParent(u);this.$AdsStickyArea2=u;this.$AdsStickyArea5===window}else{this.$AdsStickyArea5=null;this.$AdsStickyArea2=null}}.bind(this),this.$AdsStickyArea15=function(u){this.$AdsStickyArea6=u}.bind(this),q}o.prototype.componentDidMount=function(){__p&&__p();if(this.$AdsStickyArea9())return;if(this.$AdsStickyArea6&&this.$AdsStickyArea5){var p=this.props.optimizePerf?c("debounce")(this.reflow,l):this.reflow;this.$AdsStickyArea3=this.props.attachTo?c("ReactDOM").findDOMNode(this.props.attachTo):null;var q=new(c("SubscriptionsHandler"))();q.addSubscriptions(c("Event").listen(this.$AdsStickyArea5,"scroll",p),c("Event").listen(this.$AdsStickyArea5,"resize",p),c("Event").listen(this.$AdsStickyArea6,"scroll",p),c("Event").listen(this.$AdsStickyArea6,"resize",p),c("Event").listen(window,"scroll",p),c("Event").listen(window,"resize",p),c("Event").listen(this.$AdsStickyArea6,"wheel",this.$AdsStickyArea10));if(this.$AdsStickyArea3)q.addSubscriptions(c("Event").listen(this.$AdsStickyArea3,"resize",p));this.$AdsStickyArea7=q;this.$AdsStickyArea4=p}};o.prototype.componentWillUnmount=function(){if(this.$AdsStickyArea9())return;if(this.$AdsStickyArea7)this.$AdsStickyArea7.release()};o.prototype.$AdsStickyArea11=function(){if(!this.$AdsStickyArea6)return;this.$AdsStickyArea6.style.position="";this.$AdsStickyArea6.style.top="";this.$AdsStickyArea6.style.left="";this.$AdsStickyArea6.style.width="";this.$AdsStickyArea6.style.clip="";this.$AdsStickyArea6.style.zIndex=""};o.prototype.$AdsStickyArea12=function(){if(!this.$AdsStickyArea6)return;this.$AdsStickyArea6.style.maxHeight="";this.$AdsStickyArea6.style.overflowY="";this.$AdsStickyArea6.className="_271b";this.$AdsStickyArea1=false;this.$AdsStickyArea11()};o.prototype.$AdsStickyArea13=function(p,q){if(!this.$AdsStickyArea3||!this.$AdsStickyArea6)return;var r=c("Vector").getElementPosition(this.$AdsStickyArea3,"viewport"),s=c("Vector").getElementDimensions(this.$AdsStickyArea3);if(q+p>r.y+s.y){this.$AdsStickyArea12();var t=s.y-q;this.$AdsStickyArea6.style.position="absolute";this.$AdsStickyArea6.style.top=t+"px"}};o.prototype.render=function(){__p&&__p();if(this.$AdsStickyArea9())return c("React").createElement("div",null,this.props.children);var p=babelHelpers["extends"]({},this.props);delete p.attachTo;delete p.canOverflow;delete p.inContainingBlock;delete p.optimizePerf;delete p.shouldDoNothingInIE;delete p.topHeaderOffset;delete p.topOffset;delete p.zIndex;return c("React").createElement("div",babelHelpers["extends"]({},p,{ref:this.$AdsStickyArea14}),c("React").createElement("div",{ref:this.$AdsStickyArea15},this.props.children))};o.prototype.$AdsStickyArea16=function(){if(this.$AdsStickyArea8==null)this.$AdsStickyArea8=c("UserAgent").isBrowser("IE");return this.$AdsStickyArea8};o.prototype.$AdsStickyArea9=function(){return!!this.props.shouldDoNothingInIE&&this.$AdsStickyArea16()};o.defaultProps={canOverflow:true,optimizePerf:true,shouldDoNothingInIE:false,topOffset:n};o.propTypes={attachTo:k.object,canOverflow:k.bool,children:k.oneOfType([k.node,k.element,k.arrayOf(k.element)]),inContainingBlock:k.bool,optimizePerf:k.bool,shouldDoNothingInIE:k.bool,topHeaderOffset:k.number,topOffset:k.number,zIndex:k.number};f.exports=o}),null);
__d("AdsHelpTraySpinner.react",["CenteredContainer.react","React","SUIBusinessTheme","SUISpinner.react"],(function a(b,c,d,e,f,g){"use strict";var h,i;h=babelHelpers.inherits(j,c("React").Component);i=h&&h.prototype;j.prototype.render=function(){return c("React").createElement(c("CenteredContainer.react"),null,c("React").createElement(c("SUISpinner.react"),{size:"large",theme:c("SUIBusinessTheme")}))};function j(){h.apply(this,arguments)}f.exports=j}),null);
__d("AdsPreviewSharingMenuItem.react",["cx","React","SUIBusinessTheme","SUIGlyphIcon.react","SUIText.react"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j;i=babelHelpers.inherits(k,c("React").PureComponent);j=i&&i.prototype;function k(){var l,m;for(var n=arguments.length,o=Array(n),p=0;p<n;p++)o[p]=arguments[p];return m=(l=j.constructor).call.apply(l,[this].concat(o)),this.$AdsPreviewSharingMenuItem1=function(q){if(this.props.link.href==null)q.preventDefault();this.props.onClick(this.props.link)}.bind(this),m}k.prototype.render=function(){var l=this.props.link;return c("React").createElement("a",{className:"_10jy",href:l.href||"#",target:"_blank",onClick:this.$AdsPreviewSharingMenuItem1},c("React").createElement("div",{className:"_10jz"},c("React").createElement(c("SUIGlyphIcon.react"),{srcDefault:l.icon})),c("React").createElement("div",{className:"_10j-"},c("React").createElement(c("SUIText.react"),{shade:"medium",theme:c("SUIBusinessTheme"),weight:"bold"},l.title)))};f.exports=k}),null);
__d("AdsPreviewSharingMenu.react",["ix","cx","fbt","invariant","AccessibleLayer","AdsPreviewSharingMenuItem.react","BIGAdoptionConfig","ContextualLayerHideOnScroll","LayerFadeOnHide","LayerFadeOnShow","LayerFitHeightToScreen","LayerHideOnBlur","LayerHideOnEscape","React","SUIBusinessTheme","SUIBusinessThemeContainer.react","SUIButton.react","SUIGlyphIcon.react","SUIText.react","Tooltip.react","XUIContextualDialog.react","asset","fbglyph","nullthrows"],(function a(b,c,d,e,f,g,h,i,j,k){"use strict";__p&&__p();var l,m,n=["share","device","permalink","facebook","messenger","fbonly"],o={share:j._("Share Previews"),device:j._("Preview on Device"),permalink:j._("See Post"),facebook:j._("View on Facebook"),messenger:j._("View on Messenger"),fbonly:j._("FB-only")};l=babelHelpers.inherits(p,c("React").PureComponent);m=l&&l.prototype;function p(){__p&&__p();m.constructor.call(this);this.$AdsPreviewSharingMenu2=function(){return this.refs.button}.bind(this);this.$AdsPreviewSharingMenu4=function(s){if(s.onClick)s.onClick();this.$AdsPreviewSharingMenu3(false)}.bind(this);this.$AdsPreviewSharingMenu3=function(s){this.setState({visible:s})}.bind(this);this.$AdsPreviewSharingMenu1=function(){var s=!this.state.visible;this.$AdsPreviewSharingMenu3(s)}.bind(this);this.state={visible:false}}p.prototype.render=function(){var s=j._("Share previews"),t=this.props.labelText?this.props.labelText:s,u=c("React").createElement(c("SUIButton.react"),{disabled:this.props.disabled,icon:c("React").createElement(c("SUIGlyphIcon.react"),{disabled:this.props.disabled,srcDefault:c("BIGAdoptionConfig").ads_fbicon_adoption?h("401034"):h("112854"),srcDisabled:c("BIGAdoptionConfig").ads_fbicon_adoption?h("401035"):h("125669")}),label:t,labelIsHidden:!this.props.showLabel,ref:"button",theme:c("SUIBusinessTheme"),use:"default",onClick:this.$AdsPreviewSharingMenu1}),v=this.props.disabled?c("React").createElement(c("Tooltip.react"),{alignH:"right",display:"block",position:this.props.dialogPosition||"below",tooltip:this.props.disabledMessage},u):u;if(!this.props.disabled)this.props.links!=null||k(0);var w=this.props.disabled?null:c("React").createElement(c("XUIContextualDialog.react"),{alignment:"right",behaviors:{AccessibleLayer:c("AccessibleLayer"),ContextualLayerHideOnScroll:c("ContextualLayerHideOnScroll"),LayerHideOnTransition:false,LayerHideOnBlur:c("LayerHideOnBlur"),LayerHideOnEscape:c("LayerHideOnEscape"),LayerFadeOnShow:c("LayerFadeOnShow"),LayerFadeOnHide:c("LayerFadeOnHide"),LayerFitHeightToScreen:c("LayerFitHeightToScreen")},contextRef:this.$AdsPreviewSharingMenu2,key:"contextualDialog",position:this.props.dialogPosition||"below",shown:this.state.visible,width:c("XUIContextualDialog.react").WIDTH.NORMAL,onToggle:this.$AdsPreviewSharingMenu3},c("React").createElement("div",{className:"_1ji1"},c("React").createElement(r,{links:c("nullthrows")(this.props.links),onMenuItemClick:this.$AdsPreviewSharingMenu4})));return c("React").createElement(c("SUIBusinessThemeContainer.react"),null,c("React").createElement("span",null,v,w))};p.defaultProps={disabledMessage:j._("No preview sharing options are available for the current ad")};function q(s,t){return s.sortPosition<t.sortPosition?-1:1}var r=function r(s){__p&&__p();var t={};s.links.forEach(function(w){if(t[w.section]==null)t[w.section]=[];t[w.section].push(w)});function u(w){return c("React").createElement("li",{key:w.key},c("React").createElement(c("AdsPreviewSharingMenuItem.react"),{link:w,onClick:s.onMenuItemClick}))}var v=n.map(function(w){var x=t[w];if(x==null)return null;x.sort(q);return c("React").createElement("li",{key:w},c("React").createElement("div",{className:"_4acr"},c("React").createElement(c("SUIText.react"),{className:"_4acs",shade:"medium",theme:c("SUIBusinessTheme"),weight:"bold"},o[w])),c("React").createElement("ul",null,x.map(u)))});return c("React").createElement("ul",null,v)};f.exports=p}),null);
__d("AdsReachEstimateDataLoader",["AdsAPIReachEstimateFields","AdsGraphAPI"],(function a(b,c,d,e,f,g){"use strict";function h(k){var l,m=k.get("creativeActionSpec"),n=(l={targeting_spec:k.get("targetingSpec").toJS(),currency:k.get("currency")},l[c("AdsAPIReachEstimateFields").OPTIMIZE_FOR]=k.get("optimizeFor"),l.creative_action_spec=m?m.toJS():undefined,l.object_store_url=k.get("object_store_url"),l.bid_value=k.get("bidValue"),l);return c("AdsGraphAPI").get(f.id).adaccount(k.get("accountID")).edge("reachestimate").get(n)}function i(k){var l,m=(l={},l[c("AdsAPIReachEstimateFields").TARGETING_SPEC]=k.get("targetingSpec").toJS(),l[c("AdsAPIReachEstimateFields").OPTIMIZE_FOR]=k.get("optimizeFor"),l);return c("AdsGraphAPI").get(f.id).object("adcampaign",k.get("campaignID")).edge("reachestimate").get(m)}var j={loadReachEstimateForAccount:h,loadReachEstimateForCampaign:i};f.exports=j}),null);
__d("AdsReachEstimateDataDispatcher",["AdsInterfacesLogEvents","AdsInterfacesLogger","AdsReachEstimateDataLoader","AdsReachEstimateServerActions"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=c("AdsInterfacesLogEvents").Event,i=c("AdsInterfacesLogEvents").EventCategory;function j(n){c("AdsReachEstimateServerActions").notifyStartedLoading(n);c("AdsReachEstimateDataLoader").loadReachEstimateForAccount(n).done(function(o){if(l(o))c("AdsInterfacesLogger").log({eventName:h.REACH_ESTIMATE_LOADED_WITHOUT_PREDICTION,EventCategory:i.ERROR},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP);c("AdsReachEstimateServerActions").updateReachEstimate(o.data,n)},function(o){c("AdsReachEstimateServerActions").failReachEstimate(o,n)})}function k(n){c("AdsReachEstimateServerActions").notifyStartedLoading(n);c("AdsReachEstimateDataLoader").loadReachEstimateForCampaign(n).done(function(o){if(l(o))c("AdsInterfacesLogger").log({eventName:h.REACH_ESTIMATE_LOADED_WITHOUT_PREDICTION,EventCategory:i.ERROR},c("AdsInterfacesLogger").LOG_TYPE_PRIMARY_APP);c("AdsReachEstimateServerActions").updateReachEstimate(o.data,n)},function(o){c("AdsReachEstimateServerActions").failReachEstimate(o,n)})}function l(n){return!(n&&n.data&&n.data.curve)}var m={loadReachEstimateForAccount:j,loadReachEstimateForCampaign:k};f.exports=m}),null);
__d("AdsPixelDialogTitleMap",["fbt"],(function a(b,c,d,e,f,g,h){"use strict";f.exports={BASE_CODE_INSTALL_METHOD_SELECTOR:h._("Choose Installation Option"),BASE_CODE_MANUAL_INSTALL:h._("Install Pixel Code"),CREATE_PIXEL:h._("Create a Facebook Pixel"),EMAIL_CODE:h._("Email Pixel Code"),EMAIL_CODE_SUCCESS:h._("Email Pixel Code"),EVENT_CODE_MANUAL_INSTALL:h._("Install Pixel Code"),INTEGRATIONS_LIST:h._("Choose a Partner"),INTEGRATION_REQUEST_SUCCESS:h._("Request a New Integration Solution"),INTEGRATIONS_SHOPIFY:h._("Install Your Pixel on Shopify"),SETUP_CONVERSION:h._("View Pixel Code"),SOLUTION_TYPE_SELECTOR:h._("Install Your Pixel Code"),VIEW_CODE:h._("View Pixel Base Code"),VIEW_EVENT_CODE:h._("View Pixel Code")}}),null);
__d("AdsPixelDialogStore",["AdsDataAtom","AdsGoalServerCreatedGoalDataAction","AdsGoalServerEditedGoalDataAction","AdsPixelDialogTitleMap","AdsPixelDialogTypes","AdsPixelViewDialogTypeChangeDataAction","AdsPixelViewOnDialogBackDataAction","FluxStore","adsBaseStoreMixin_DEPRECATED"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("FluxStore"));i=h&&h.prototype;function j(){__p&&__p();i.constructor.call(this,c("AdsDataAtom"));c("adsBaseStoreMixin_DEPRECATED")(this);this.$AdsPixelDialogStoreClass1="";this.$AdsPixelDialogStoreClass6=c("AdsPixelDialogTypes").NO_DIALOG;this.$AdsPixelDialogStoreClass7=[];this.$AdsPixelDialogStoreClass8=null;this.$AdsPixelDialogStoreClass5=null;this.$AdsPixelDialogStoreClass2=false;this.$AdsPixelDialogStoreClass3=false;this.$AdsPixelDialogStoreClass4=false;this.$AdsPixelDialogStoreClass9=null}j.prototype.getStoreName=function(){return"AdsPixelDialogStore"};j.prototype.__onDispatch=function(l){__p&&__p();var m=l.action;switch(m.actionType){case c("AdsPixelViewDialogTypeChangeDataAction").actionType:var n=m.data,o=n.dialogType,p=n.inlineCreationType,q=n.integrationName,r=n.isGCPixelCreationFlow,s=n.isInlineFlow,t=n.shouldNotRedirectToPixelInspector,u=n.pixelIDForDialog;if(o in c("AdsPixelDialogTypes")){if(o===c("AdsPixelDialogTypes").NO_DIALOG)this.$AdsPixelDialogStoreClass10();else this.$AdsPixelDialogStoreClass7.push(this.$AdsPixelDialogStoreClass6);if(this.$AdsPixelDialogStoreClass6 in c("AdsPixelDialogTitleMap"))this.$AdsPixelDialogStoreClass8=c("AdsPixelDialogTitleMap")[this.$AdsPixelDialogStoreClass6];this.$AdsPixelDialogStoreClass6=o;if(r!=null)this.$AdsPixelDialogStoreClass2=r;if(s!=null)this.$AdsPixelDialogStoreClass3=s;if(t!=null)this.$AdsPixelDialogStoreClass4=t;if(q!=null)this.$AdsPixelDialogStoreClass1=q;if(p!=null)this.$AdsPixelDialogStoreClass5=p;if(u!=null)this.$AdsPixelDialogStoreClass9=u;this.__emitChange()}break;case c("AdsPixelViewOnDialogBackDataAction").actionType:if(this.$AdsPixelDialogStoreClass7.length>0){if(this.$AdsPixelDialogStoreClass6 in c("AdsPixelDialogTitleMap"))this.$AdsPixelDialogStoreClass8=c("AdsPixelDialogTitleMap")[this.$AdsPixelDialogStoreClass6];this.$AdsPixelDialogStoreClass6=this.$AdsPixelDialogStoreClass7.pop()}this.__emitChange();break;case c("AdsGoalServerEditedGoalDataAction").actionType:this.$AdsPixelDialogStoreClass6=c("AdsPixelDialogTypes").NO_DIALOG;this.$AdsPixelDialogStoreClass10();this.__emitChange();break;case c("AdsGoalServerCreatedGoalDataAction").actionType:var v=m.data.newCustomConversionCreationFlow;if(!v){this.$AdsPixelDialogStoreClass6=c("AdsPixelDialogTypes").GOAL_CREATE_STEP_THREE;this.__emitChange()}break}};j.prototype.getCurrentDialogType=function(){return this.$AdsPixelDialogStoreClass6};j.prototype.getPreviousDialogType=function(){return this.$AdsPixelDialogStoreClass7.length>0?this.$AdsPixelDialogStoreClass7[this.$AdsPixelDialogStoreClass7.length-1]:c("AdsPixelDialogTypes").NO_DIALOG};j.prototype.getPreviousDialogTitle=function(){return this.$AdsPixelDialogStoreClass8};j.prototype.getCurrentIntegraionName=function(){return this.$AdsPixelDialogStoreClass1};j.prototype.getPixelIDForDialog=function(){return this.$AdsPixelDialogStoreClass9};j.prototype.getIsGCPixelCreationFlow=function(){return this.$AdsPixelDialogStoreClass2};j.prototype.getIsInlineFlow=function(){return this.$AdsPixelDialogStoreClass3};j.prototype.getShouldNotRedirectToPixelInspector=function(){return this.$AdsPixelDialogStoreClass4};j.prototype.getInlineCreationType=function(){return this.$AdsPixelDialogStoreClass5};j.prototype.setPixelIDForDialog=function(l){this.$AdsPixelDialogStoreClass9=l};j.prototype.$AdsPixelDialogStoreClass10=function(){this.$AdsPixelDialogStoreClass7=[]};var k=new j();f.exports=k}),null);
__d("AdsPixelDialogLazy.react",["AdsFluxContainer","AdsPixelDialogStore","AdsPixelDialogTypes","BootloadedComponent.react","JSResource","LoadingDialog.react","React","gkx"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("React").Component;h=babelHelpers.inherits(k,j);i=h&&h.prototype;k.getStores=function(){return[c("AdsPixelDialogStore")]};k.calculateState=function(l,m){return{dialogType:c("AdsPixelDialogStore").getCurrentDialogType()}};k.prototype.render=function(){var l=c("gkx")("AT7E8ZSWPUaGRI-qHi7fttfUhGLLUqvRrAwOyaEcJhRtXdULlFL2dHk2C1XwUQnLGBf_EWVw38hz0MPh-mqh7-2S");return this.state.dialogType!==c("AdsPixelDialogTypes").NO_DIALOG?l?c("React").createElement(c("BootloadedComponent.react"),babelHelpers["extends"]({bootloadLoader:c("JSResource")("AdsPixelDialogContainer.react").__setRef("AdsPixelDialogLazy.react"),bootloadPlaceholder:c("React").createElement(c("LoadingDialog.react"),{behaviors:{LayerHideOnBlur:false}})},this.props)):c("React").createElement(c("BootloadedComponent.react"),babelHelpers["extends"]({bootloadLoader:c("JSResource")("AdsPixelDialog.react").__setRef("AdsPixelDialogLazy.react"),bootloadPlaceholder:c("React").createElement(c("LoadingDialog.react"),{behaviors:{LayerHideOnBlur:false}})},this.props)):null};function k(){h.apply(this,arguments)}f.exports=c("AdsFluxContainer").create(k,{name:f.id})}),null);
__d("BrandPixelServerActionTypes.brands",["keyMirrorRecursive"],(function a(b,c,d,e,f,g){"use strict";var h={CLEAR_ERROR:"",BUSINESS_PIXEL_CREATED:"",RECEIVE_ERROR:"",RECEIVE_PIXEL_SHARED_ACCOUNTS:"",RECEIVE_PIXEL_SHARED_AGENCIES:"",RECEIVE_PIXELS:"",REMOVE_PIXEL_SHARED_ACCOUNT:"",REMOVE_PIXEL_SHARED_AGENCY:""},i=c("keyMirrorRecursive")(h,"BRAND_PIXEL_SERVER_ACTION");f.exports=i}),null);
__d("AdsPixelCreateStore",["AdsDataAtom","AdsPixelDialogTypes","AdsPixelServerPixelCreatedDataAction","AdsPixelServerReceiveErrorDataAction","AdsPixelServerWaitForServerResponseDataAction","AdsPixelViewClearPixelDataAction","AdsPixelViewDialogTypeChangeDataAction","AdsPixelViewEndPixelCreateDataAction","AdsPixelViewStartPixelCreateDataAction","AdsPixelViewViewPixelNuxEndDataAction","AdsPixelViewViewPixelNuxStartDataAction","BrandPixelServerActionTypes.brands","FluxStore","adsBaseStoreMixin_DEPRECATED"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i;h=babelHelpers.inherits(j,c("FluxStore"));i=h&&h.prototype;function j(){i.constructor.call(this,c("AdsDataAtom"));c("adsBaseStoreMixin_DEPRECATED")(this);this.$AdsPixelCreateStoreClass2={isCreating:false,pixelNUX:false};this.$AdsPixelCreateStoreClass1=null;this.$AdsPixelCreateStoreClass3=false}j.prototype.getStoreName=function(){return"AdsPixelCreateStore"};j.prototype.getIsWaitingForServerResponse=function(){return this.$AdsPixelCreateStoreClass3};j.prototype.getCreatedPixelID=function(){if(this.$AdsPixelCreateStoreClass1===null||this.$AdsPixelCreateStoreClass1===undefined)return"";return this.$AdsPixelCreateStoreClass1.id.toString()};j.prototype.getCreatedPixelName=function(){if(!this.$AdsPixelCreateStoreClass1)return"";return this.$AdsPixelCreateStoreClass1.name.toString()};j.prototype.getIsPixelNUX=function(){return this.$AdsPixelCreateStoreClass2.pixelNUX};j.prototype.getIsInPixelCreation=function(){return this.$AdsPixelCreateStoreClass2.isCreating};j.prototype.getPixelCode=function(){if(this.$AdsPixelCreateStoreClass1===null||this.$AdsPixelCreateStoreClass1===undefined)return"";return this.$AdsPixelCreateStoreClass1.code};j.prototype.getIsPixelCreated=function(){return!(this.$AdsPixelCreateStoreClass1===null||this.$AdsPixelCreateStoreClass1===undefined)};j.prototype.__onDispatch=function(k){__p&&__p();var l=k.action,m=true;switch(l.actionType){case c("AdsPixelViewViewPixelNuxStartDataAction").actionType:if(this.$AdsPixelCreateStoreClass2.pixelNUX===true)m=false;this.$AdsPixelCreateStoreClass2.pixelNUX=true;break;case c("AdsPixelViewStartPixelCreateDataAction").actionType:this.$AdsPixelCreateStoreClass2.isCreating=true;break;case c("AdsPixelViewDialogTypeChangeDataAction").actionType:if(l.data.dialogType===c("AdsPixelDialogTypes").NO_DIALOG){this.$AdsPixelCreateStoreClass2.pixelNUX=false;this.$AdsPixelCreateStoreClass2.isCreating=false}break;case c("AdsPixelViewViewPixelNuxEndDataAction").actionType:this.$AdsPixelCreateStoreClass2.pixelNUX=false;break;case c("AdsPixelViewEndPixelCreateDataAction").actionType:this.$AdsPixelCreateStoreClass2.isCreating=false;break;case c("AdsPixelServerReceiveErrorDataAction").actionType:this.$AdsPixelCreateStoreClass3=false;break;case c("AdsPixelServerWaitForServerResponseDataAction").actionType:this.$AdsPixelCreateStoreClass3=true;break;case c("AdsPixelServerPixelCreatedDataAction").actionType:this.$AdsPixelCreateStoreClass1=l.pixel;this.$AdsPixelCreateStoreClass3=false;break;case c("BrandPixelServerActionTypes.brands").BUSINESS_PIXEL_CREATED:this.$AdsPixelCreateStoreClass1=l.feedback.pixelList[0];this.$AdsPixelCreateStoreClass3=false;break;case c("AdsPixelViewClearPixelDataAction").actionType:this.$AdsPixelCreateStoreClass1=null;this.$AdsPixelCreateStoreClass3=false;break;default:m=false;break}if(m)this.__emitChange()};f.exports=new j()}),null);
__d("AdsPixelHelpCenter",[],(function a(b,c,d,e,f,g){"use strict";var h={ADS_DISCREPANCIES_REPORT:{cmsID:"147965221941551",uri:""},ADS_REPORT:{cmsID:"339239069606476",uri:""},CONFIRM_WORKING:{cmsID:"218844828315224",uri:""},CONVERSION:{cmsID:"916525851724197",uri:""},CREATE_AUDIENCE:{cmsID:"666509013483225",uri:""},CREATE_PIXEL:{cmsID:"336923339852238",uri:""},CUSTOM_CONVERSIONS:{cmsID:"780705975381000",uri:""},CUSTOM_CONVERSION_DELETION:{cmsID:"434245993430255#delete",uri:""},CUSTOM_EVENTS:{cmsID:"180560505711847",uri:""},EVENT_INFERENCES_CHANGES:{cmsID:"1292598407460746",uri:""},GENERAL:{cmsID:"651294705016616",uri:""},GOOGLE_TAG_MANAGER_QUICK:{cmsID:"1021909254506499",uri:""},GOOGLE_TAG_MANAGER_MANUAL:{cmsID:"",uri:"/business/m/pixel-setup-get-started"},INTRODUCTION:{cmsID:"742478679120153",uri:""},INSTALL:{cmsID:"952192354843755",uri:""},INSTALL_CONVERSION_PIXEL:{cmsID:"373979379354234",uri:""},INTEGRATION:{cmsID:"1179210765468894",uri:""},MIGRATION:{cmsID:"1686199411616919",uri:""},PIXEL_REPORT:{cmsID:"898185560232180",uri:""},SET_CONVERSION_VALUE:{cmsID:"392174274295227",uri:""},SHARE:{cmsID:"352686481592916",uri:""},STANDARD_EVENTS:{cmsID:"402791146561655",uri:""},THIRD_PARTY_INTEGRATION:{cmsID:"457075141160886",uri:""},TRACK_CONVERSION:{cmsID:"746098608829613",uri:""},UPGRADE:{cmsID:"414962531994158",uri:""},USING_PIXEL_HELPER:{cmsID:"198406697184603",uri:""},DIAGNOSTICS_NUX:{cmsID:"490934944618455",uri:""}},i=babelHelpers["extends"]({},h,{PIXEL_HELPER:"https://developers.facebook.com/docs/facebook-pixel/pixel-helper",PIXEL_QUICK_START:"https://www.facebook.com/business/m/pixel-setup-get-started"});Object.keys(h).forEach(function(j){var k=i[j].uri;i[j].uri=k||"/help/"+h[j].cmsID});f.exports=i}),null);
__d("AdsPixelHelpCenterLinkUtil",["AdsHelpTrayUIActions","Link.react","React"],(function a(b,c,d,e,f,g){"use strict";var h={getHelpLink:function i(j,k,l){var m=function m(event){return c("AdsHelpTrayUIActions").pushCMSIDToHistory(j.cmsID)};if(k)return c("React").createElement(c("Link.react"),{style:{fontWeight:"bold"},onClick:m},l);return c("React").createElement(c("Link.react"),{href:j.uri,style:{fontWeight:"bold"},target:"_blank"},l)}};f.exports=h}),null);
__d("AdsWebsiteOptimizationContextUtils",["AdsPixelHelpCenterLinkUtil","React","emptyFunction"],(function a(b,c,d,e,f,g){"use strict";var h=c("React").PropTypes,i={getContextTypes:function j(){return{getHelpLink:h.func.isRequired,isCampaignManager:h.func.isRequired,updateConversionChoice:h.func.isRequired}},getDefaultContext:function j(){return{getHelpLink:function k(l,m,n){return c("AdsPixelHelpCenterLinkUtil").getHelpLink(l,m,n)},isCampaignManager:function k(){return false},updateConversionChoice:c("emptyFunction")}}};f.exports=i}),null);
__d("AdsSavedAudienceSavedAudienceBatchCreatedDataAction",["AdsDataAction"],(function a(b,c,d,e,f,g){"use strict";var h=c("AdsDataAction").create([],"SAVED_AUDIENCE.BATCH_CREATED");f.exports=h}),null);
__d("AdsTargetingPotentialReachTooltipLink.react",["fbt","React","SUIBusinessTheme","SUILink.react"],(function a(b,c,d,e,f,g,h){"use strict";function i(){return c("React").createElement(c("SUILink.react"),{href:"/business/help/1665333080167380",target:"_blank",theme:c("SUIBusinessTheme")},h._("Learn more."))}f.exports=i}),null);
__d("AdsReachFrequencyPotentialReachTooltipOverviewContent.react",["fbt","AdsTargetingPotentialReachTooltipLink.react","React","SUIBusinessTheme","SUIText.react"],(function a(b,c,d,e,f,g,h){"use strict";function i(){return c("React").createElement("div",null,c("React").createElement(c("SUIText.react"),{display:"block",style:{marginBottom:12},theme:c("SUIBusinessTheme")},h._("This is the percentage of your target audience that you can predictably reach with your stated budget.")),c("React").createElement(c("SUIText.react"),{display:"block",style:{marginBottom:12},theme:c("SUIBusinessTheme")},h._(["Audience size is estimated based on the placements and targeting criteria you select and include factors like Facebook user behaviors, user demographics and location data. They're designed to estimate how many people in a given area could see an ad a business might run. They're not designed to match population or census estimates.","180a12261ccf90093741d3958ba78ceb"])," ",c("React").createElement(c("AdsTargetingPotentialReachTooltipLink.react"),null)))}f.exports=i}),null);
__d("AdsReachEstimateRecord",["immutable"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j,k;h=babelHelpers.inherits(l,c("immutable").Record({accountID:"",bidValue:0,creativeActionSpec:null,currency:"",object_store_url:"",optimizeFor:"",targetingSpec:null}));i=h&&h.prototype;function l(){h.apply(this,arguments)}j=babelHelpers.inherits(m,c("immutable").Record({campaignID:"",optimizeFor:"",targetingSpec:null}));k=j&&j.prototype;function m(){j.apply(this,arguments)}f.exports={ReachEstimateAccountRecord:l,ReachEstimateCampaignRecord:m}}),null);
__d("isValidTargetingSpec",["fbt","AdsAPIMessengerPosition","immutable"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();function i(j){if(j instanceof c("immutable").Iterable)j=j.toJS();if(!j||Object.keys(j).length===0)return false;var k=j.geo_locations&&typeof j.geo_locations==="object"&&Object.keys(j.geo_locations).length>0,l=j.custom_audiences&&Array.isArray(j.custom_audiences)&&j.custom_audiences.length>0,m=j.engagement_specs&&Array.isArray(j.engagement_specs)&&j.engagement_specs.length>0,n=j.product_audience_specs&&Array.isArray(j.product_audience_specs)&&j.product_audience_specs.length>0,o=j.place_page_set_ids&&Array.isArray(j.place_page_set_ids)&&j.place_page_set_ids.length>0,p=j.messenger_positions&&Array.isArray(j.messenger_positions)&&j.messenger_positions.length>0&&j.messenger_positions[0]===c("AdsAPIMessengerPosition").MESSENGER_THREAD;if(!k&&!l&&!m&&!n&&!o&&!p)return false;return true}i.errorMessage=h._("Your audience targeting is incomplete. Select at least one location, or choose a Custom Audience.");f.exports=i}),null);
__d("AdsReachEstimateStore",["AdsDataAtom","AdsLoadState_LEGACY","AdsReachEstimateDataDispatcher","AdsReachEstimateLoadErrorDataAction","AdsReachEstimateLoadSuccessDataAction","AdsReachEstimateRecord","AdsReachEstimateStartedLoadDataAction","FluxLoadObjectStore","immutable","LoadObject","adsBaseStoreMixin_DEPRECATED","isValidTargetingSpec"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("AdsReachEstimateRecord").ReachEstimateAccountRecord,k=c("AdsReachEstimateRecord").ReachEstimateCampaignRecord,l=Error(c("AdsLoadState_LEGACY").ERROR);h=babelHelpers.inherits(m,c("FluxLoadObjectStore"));i=h&&h.prototype;function m(){i.constructor.call(this,c("AdsDataAtom"));c("adsBaseStoreMixin_DEPRECATED")(this)}m.prototype.getStoreName=function(){return"AdsReachEstimateStore"};m.prototype.getReachEstimateForAccount=function(o,p,q,r,s,t,u,v){if(!c("isValidTargetingSpec")(q))return c("LoadObject").withError(l);var w=new j({accountID:o,currency:p||"",targetingSpec:c("immutable").fromJS(q),creativeActionSpec:c("immutable").fromJS(r||null),optimizeFor:s,object_store_url:t||"",bidValue:u||0}),x=this.get(w);if(x.hasError()&&v){this.__load(w);return c("LoadObject").loading()}return x};m.prototype.getReachEstimateForCampaignOrAccount=function(o,p,q,r,s,t,u,v,w,x){__p&&__p();if(!c("isValidTargetingSpec")(r))return c("LoadObject").withError(l);if(w||!o)return this.getReachEstimateForAccount(p,q,r,s,t,u,v,x);var y=new k({campaignID:o,targetingSpec:c("immutable").fromJS(r),optimizeFor:t}),z=this.get(y);if(z.hasError()&&x){this.__load(y);return c("LoadObject").loading()}return z};m.prototype.reduce=function(o,p){var q=p.action;switch(q.actionType){case c("AdsReachEstimateLoadSuccessDataAction").actionType:return this.__handleOne(o,q.params,q.data);case c("AdsReachEstimateLoadErrorDataAction").actionType:return this.__handleOne(o,q.params,l);case c("AdsReachEstimateStartedLoadDataAction").actionType:return this.__setLoading(o,c("immutable").List.of(q.params));default:return o}};m.prototype.__handleOne=function(o,p,q){var r=this.getCached(p);if(q instanceof Error)return o.set(p,r.setError(q).removeValue().done());else return o.set(p,r.setValue(q).removeError().done())};m.prototype.__load=function(o){if(o instanceof k)c("AdsReachEstimateDataDispatcher").loadReachEstimateForCampaign(o);else if(o instanceof j)c("AdsReachEstimateDataDispatcher").loadReachEstimateForAccount(o)};var n=new m();b.debug_AdsReachEstimateStore=n;f.exports=n}),null);
__d("AdsPreviewUtils",["AdsAPIAdgroupPaths","AdsGraphAPI","AdsObjectStorySpecUtils","AdsPreviewApiFormats","ApiAdCreativeFields","Map","getByPath","mergeDeep"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h={fixCreative:function i(j,k){__p&&__p();var l=c("getByPath")(j,c("AdsAPIAdgroupPaths").CREATIVE.OBJECT_STORY_SPEC.path.slice(1)),m=c("mergeDeep")(j);if(m[c("ApiAdCreativeFields").INSTAGRAM_STORY_ID]&&m[c("ApiAdCreativeFields").OBJECT_ID]){delete m[c("ApiAdCreativeFields").OBJECT_STORY_SPEC];delete m[c("ApiAdCreativeFields").OBJECT_STORY_ID]}else{delete m[c("ApiAdCreativeFields").INSTAGRAM_STORY_ID];if(!k||c("AdsObjectStorySpecUtils").isEmpty(l))delete m[c("ApiAdCreativeFields").OBJECT_STORY_SPEC];else{delete m[c("ApiAdCreativeFields").OBJECT_ID];delete m[c("ApiAdCreativeFields").OBJECT_STORY_ID]}}if(m[c("ApiAdCreativeFields").IMAGE_HASH]&&m[c("ApiAdCreativeFields").IMAGE_URL])delete m[c("ApiAdCreativeFields").IMAGE_URL];l=m[c("ApiAdCreativeFields").OBJECT_STORY_SPEC];if(l&&l.link_data&&l.link_data.image_hash&&l.link_data.picture)delete l.link_data.picture;if(l&&l.photo_data&&l.photo_data.image_hash&&l.photo_data.url)delete l.photo_data.url;return m},getCroppingConfig:function i(j){if(!j)return new(c("Map"))();return new(c("Map"))([[c("AdsPreviewApiFormats").DESKTOP_FEED_STANDARD,true],[c("AdsPreviewApiFormats").GROUPS_DESKTOP,true],[c("AdsPreviewApiFormats").INSTANT_ARTICLE_STANDARD,true],[c("AdsPreviewApiFormats").RIGHT_COLUMN_STANDARD,true]])},getPageletAPIVersion:function i(){return"v"+c("AdsGraphAPI").getVersion()}};f.exports=h}),null);
__d("AdPreview.react",["cx","fbt","AdsPreviewApiFormats","AdsPreviewUtils","AdsSpinnerCover.react","Arbiter","BUIAdoptionUtils","DOM","immutable","React","ReactDOM","SUIBusinessTheme","SUINotice.react","UIPagelet","WebApiApplication"],(function a(b,c,d,e,f,g,h,i){__p&&__p();var j,k,l=c("React").PropTypes;j=babelHelpers.inherits(m,c("React").Component);k=j&&j.prototype;function m(){__p&&__p();var n,o;"use strict";for(var p=arguments.length,q=Array(p),r=0;r<p;r++)q[r]=arguments[r];return o=(n=k.constructor).call.apply(n,[this].concat(q)),this.state={isError:false,isLoading:false,errorLevel:null,errorMessage:null},this.$AdPreview1=function(s){__p&&__p();var t=s.adAccountID,u=s.adgroupID,v=s.creativeID,w=s.creative,x=s.customPlayMode,y=s.lastForceUpdateTimeStamp,z=s.linkShareData,A=s.apiFormat,B=s.appID,C=s.borderStyle,D=s.objective,E=s.productItemIDs,F=s.placePageID,G=s.postData,H=this.$AdPreview6(t,u,v,w,x,A==c("AdsPreviewApiFormats").RIGHT_COLUMN_STANDARD?undefined:z,A,B,C,D,E,F,G);if(H===this.$AdPreview2&&(!y||this.props.lastForceUpdateTimeStamp===y))return;this.$AdPreview3&&this.$AdPreview3.cancel();this.$AdPreview3=null;this.$AdPreview2=H;if(A!==this.props.apiFormat){this.$AdPreview4();c("DOM").empty(this.$AdPreview5())}if(!u&&!w){this.setState({isError:true,isLoading:false});return}if(this.props.onValidate){var I=this.props.onValidate(w,A);if(I.length){var J=null,K=null,L=I.filter(function(O){return O.field===m.PREVIEW_MESSAGE_FIELD_NAME});if(L.length){J=L[0].level;K=L[0].message}this.setState({isError:true,isLoading:false,errorLevel:J,errorMessage:K});return}}this.setState({isError:false,isLoading:true,errorLevel:null,errorMessage:null});this.$AdPreview4();if(!B)B=c("WebApiApplication").getClientID();var M=!!u,N=this.props.onPreviewLoadStart;N&&N({requestKey:this.$AdPreview2});this.$AdPreview3=c("UIPagelet").loadFromEndpoint("AdPreviewPageletController",this.$AdPreview5(),{adaccountid:t,adid:M?u:null,appid:B,creativeid:v,creative:M?null:w,customplaymode:x===undefined?null:x,linksharedata:A==c("AdsPreviewApiFormats").RIGHT_COLUMN_STANDARD?undefined:z,videodata:{ad_objective:D},format:A,borderstyle:C,productitemids:E,editable:this.props.editable,placePageID:F,postdata:G,version:this.props.apiVersion?this.props.apiVersion:c("AdsPreviewUtils").getPageletAPIVersion()},{append:false,crossPage:true,displayCallback:this.$AdPreview7,errorHandler:this.$AdPreview8,transportErrorHandler:this.$AdPreview8,bundle:this.props.bundle!==undefined?this.props.bundle:true})}.bind(this),this.$AdPreview4=function(){var s=c("ReactDOM").findDOMNode(this.refs.pageletContainer);if(!s.querySelector)return;var t=s.querySelectorAll(".UFILikeLink, .UFIList, .UFIBlingBox");for(var u=0,v=t.length;u<v;u++)c("ReactDOM").unmountComponentAtNode(t[u].parentNode)}.bind(this),this.$AdPreview5=function(){return c("ReactDOM").findDOMNode(this.refs.pageletContainer)}.bind(this),this.$AdPreview6=function(s,t,u,v,w,x,y,z,A,B,C,D,E){return[s,y,t,u,JSON.stringify(v),w,JSON.stringify(x),z,A,B,JSON.stringify(C),D,JSON.stringify(E)].join(":")},this.$AdPreview7=function(s){this.$AdPreview3=null;this.setState({isError:false,isLoading:false});s();c("Arbiter").inform("AdPreview/PageletLoadSuccess",{component:this});var t=this.props.onPreviewLoadSuccess;t&&t({requestKey:this.$AdPreview2})}.bind(this),this.$AdPreview8=function(s){this.$AdPreview3=null;this.setState({isError:true,isLoading:false});var t=this.props.onPreviewLoadFailure;t&&t({requestKey:this.$AdPreview2})}.bind(this),o}m.prototype.componentDidMount=function(){"use strict";this.$AdPreview1(this.props)};m.prototype.componentWillUnmount=function(){"use strict";this.$AdPreview2=null;this.$AdPreview3&&this.$AdPreview3.cancel();this.$AdPreview3=null;this.$AdPreview4();c("DOM").empty(this.$AdPreview5())};m.prototype.componentWillReceiveProps=function(n){"use strict";this.$AdPreview1(n)};m.prototype.render=function(){"use strict";var n=!this.state.isError,o=this.state.isError&&!this.state.isLoading,p=this.state.errorLevel?this.state.errorLevel:"warn",q=this.state.errorMessage?this.state.errorMessage:i._("Unable to display a preview for this ad.");return c("React").createElement("div",{className:"_2hm6"+(this.state.isLoading?" _2hm7":"")},c("React").createElement("div",{className:this.props.className},c("React").createElement(c("AdsSpinnerCover.react"),{className:"_4fap",show:this.state.isLoading}),c("React").createElement("div",{className:o?"":"hidden_elem"},c("React").createElement(c("SUINotice.react"),{theme:c("SUIBusinessTheme"),type:c("BUIAdoptionUtils").convertUseToType(p)},q)),c("React").createElement("div",{className:n?"":"hidden_elem",ref:"pageletContainer"})))};m.propTypes={adAccountID:l.string.isRequired,adgroupID:l.string,apiFormat:l.string.isRequired,apiVersion:l.string,appID:l.string,borderStyle:l.string,bundle:l.bool,creative:l.object,creativeID:l.string,customPlayMode:l.number,editable:l.bool,lastForceUpdateTimeStamp:l.number,linkShareData:l.object,objective:l.string,placePageID:l.string,productItemIDs:l.array,onPreviewLoadFailure:l.func,onPreviewLoadStart:l.func,onPreviewLoadSuccess:l.func,onValidate:l.func};m.defaultProps={appID:c("WebApiApplication").getClientID(),editable:false};m.PREVIEW_MESSAGE_FIELD_NAME="PREVIEW_MESSAGE_FIELD_NAME";f.exports=m}),null);
__d("AdsTargetingPlacementsUtils",["AdsAPITargetFields","AdsPlacementPlatformLabelConstant","AdsPlacementPositionLabelConstant"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h=[c("AdsAPITargetFields").FACEBOOK_POSITIONS,c("AdsAPITargetFields").INSTAGRAM_POSITIONS,c("AdsAPITargetFields").MESSENGER_POSITIONS,c("AdsAPITargetFields").AUDIENCE_NETWORK_POSITIONS];function i(j){__p&&__p();var k=[];if(!j)return k;h.map(function(l){var m=j[l];if(!m||m.length===0)return;var n=m.map(function(o){return{positionType:o,label:c("AdsPlacementPositionLabelConstant")[o]}});k.push({label:c("AdsPlacementPlatformLabelConstant")[l],platformType:l,positions:n})});return k}f.exports={getLabelsFromAPISpec:i}}),null);
__d("AdsTargetingPotentialReachConstant",["fbt"],(function a(b,c,d,e,f,g,h){"use strict";var i=h._("Estimates are based on the topic and audience criteria you select and include factors like user behaviors, demographics and location data. They're designed to estimate how many people meet the audience criteria you specified. They're not designed to match population or census estimates."),j=h._("Estimates are based on the placements and targeting criteria you select and include factors like Facebook user behaviors, user demographics and location data. They're designed to estimate how many people in a given area could see an ad a business might run. They're not designed to match population or census estimates."),k=h._("How this number is estimated"),l=[{label:h._("Overview"),value:"Overview"},{label:h._("Details"),value:"Details"}];f.exports={AUDIENCE_INSIGHTS_REACH_ESTIMATE_CONTENT:i,DEFAULT_CONTENT:j,TITLE:k,TABS:l}}),null);
__d("AdsTargetingPotentialReachContent.react",["cx","fbt","AdsLearnMore.react","AdsReachFrequencyPotentialReachTooltipOverviewContent.react","AdsTargetingPotentialReachConstant","AdsTargetingPotentialReachTooltipLink.react","React","SUIBusinessTheme","SUITabGroup.react","SUIText.react","intlList"],(function a(b,c,d,e,f,g,h,i){"use strict";__p&&__p();var j,k,l=c("AdsTargetingPotentialReachConstant").DEFAULT_CONTENT,m=c("AdsTargetingPotentialReachConstant").TITLE,n=c("AdsTargetingPotentialReachConstant").TABS;function o(t){var u=t.positions.map(function(v){return v.label});return c("React").createElement("div",{className:"_3-95"},c("React").createElement(c("SUIText.react"),{theme:c("SUIBusinessTheme"),weight:"bold"},t.label,":"," "),c("intlList")(u))}function p(t){return c("React").createElement("div",null,c("React").createElement("div",{className:"_3-95"},i._("Estimates are affected by the following placements:")),t.placementLabels.map(function(u){return c("React").createElement(o,babelHelpers["extends"]({},u,{key:u.platformType}))}))}function q(t){return t.isReachFrequency?c("React").createElement(c("AdsReachFrequencyPotentialReachTooltipOverviewContent.react"),null):c("React").createElement(c("SUIText.react"),{display:"block",style:{marginBottom:12},theme:c("SUIBusinessTheme")},t.content||l," ",c("React").createElement("br",null),c("React").createElement(c("AdsLearnMore.react"),{cmsID:"1665333080167380",isStandalone:true}))}function r(t){var u=t.isReachFrequency?null:c("React").createElement(c("SUIText.react"),{display:"block",size:"regular_DEPRECATED",style:{marginBottom:12},theme:c("SUIBusinessTheme"),weight:"bold"},m);return c("React").createElement("div",null,u,c("React").createElement(q,t))}j=babelHelpers.inherits(s,c("React").Component);k=j&&j.prototype;function s(){var t,u;for(var v=arguments.length,w=Array(v),x=0;x<v;x++)w[x]=arguments[x];return u=(t=k.constructor).call.apply(t,[this].concat(w)),this.state={activeTab:"Overview"},this.$AdsTargetingPotentialReachContent1=function(y){this.setState({activeTab:y})}.bind(this),u}s.prototype.render=function(){var t=this.props,u=t.content,v=t.placementLabels,w=t.isReachFrequency;if(!v)return c("React").createElement(r,{content:u,isReachFrequency:w});var x=w?null:c("React").createElement(c("SUIText.react"),{display:"block",size:"regular_DEPRECATED",theme:c("SUIBusinessTheme"),weight:"bold"},m);return c("React").createElement("div",null,x,c("React").createElement(c("SUITabGroup.react"),{tabs:n,theme:c("SUIBusinessTheme"),value:this.state.activeTab,onChange:this.$AdsTargetingPotentialReachContent1}),c("React").createElement(c("SUIText.react"),{display:"block",style:{marginBottom:12,marginTop:8},theme:c("SUIBusinessTheme")},this.state.activeTab==="Overview"?c("React").createElement(q,this.props):c("React").createElement(p,this.props)))};s.defaultProps={isReachFrequency:false};f.exports=s}),null);
__d("AdsTargetingReachBlockerConstant",["fbt"],(function a(b,c,d,e,f,g,h){"use strict";f.exports={ERROR_CONTENT:h._("Data is not available."),ERROR_SIZE:-1,AM_ERROR_CONTENT:h._("Not available")}}),null);
__d("AdsTargetingTogglerSafeMixin",[],(function a(b,c,d,e,f,g){var h={setStateSafe:function i(j,k){setTimeout(function(){this.setState(j,k)}.bind(this),0)}};f.exports=h}),null);
__d("AdsParamsToResultCache",["invariant"],(function a(b,c,d,e,f,g,h){__p&&__p();function i(j,k){"use strict";j>0&&k>=j||h(0);this.$AdsParamsToResultCache1=[];this.$AdsParamsToResultCache2={};this.$AdsParamsToResultCache3=k;this.$AdsParamsToResultCache4=j}i.prototype.get=function(j){"use strict";var k=JSON.stringify(j);return k in this.$AdsParamsToResultCache2?this.$AdsParamsToResultCache2[k]:undefined};i.prototype.set=function(j,k){"use strict";var l=JSON.stringify(j);if(!(l in this.$AdsParamsToResultCache2))this.$AdsParamsToResultCache1.unshift(l);this.$AdsParamsToResultCache2[l]=k;if(this.$AdsParamsToResultCache1.length>this.$AdsParamsToResultCache3)while(this.$AdsParamsToResultCache1.length>this.$AdsParamsToResultCache4)delete this.$AdsParamsToResultCache2[this.$AdsParamsToResultCache1.pop()]};f.exports=i}),null);
__d("SUIAudiencePlatformTheme",["cssVar","Icon.atlas","React","SUIAtlasIcon.react","SUITheme","SUITypeStyle"],(function a(b,c,d,e,f,g,h){"use strict";var i={black:"#000000",white:"#ffffff",fbBlue:"#3b5998",bgBlue:"#e9ebee",accentBlue:"#4080ff",red:"#fa3e3e",green:"#42b72a",blue90:"#4267b2",blue80:"#4267b2",blue70:"#577fbc",blue60:"#7596c8",blue50:"#9cb4d8",blue40:"#9cb4d8",blue30:"#c4d2e7",blue20:"#c4d2e7",blue10:"#ecf0f7",blue5:"#f6f7f9",blue2:"#f6f7f9",blueblack90:"#0d0d0d",blueblack80:"#191919",blueblack70:"#262626",blueblack60:"#162643",blueblack50:"#162643",blueblack40:"#20375f",blueblack30:"#20375f",blueblack20:"#29487d",blueblack10:"#29487d",blueblack5:"#365899",blueblack2:"#365899",bluegray90:"#1d2129",bluegray80:"#1d2129",bluegray70:"#1d2129",bluegray60:"#4b4f56",bluegray50:"#4b4f56",bluegray40:"#90949c",bluegray30:"#90949c",bluegray20:"#bec2c9",bluegray10:"#dddfe2",bluegray5:"#e9ebee",bluegray2:"#f6f7f9",gray90:"#191919",gray80:"#333333",gray70:"#4c4c4c",gray60:"#666666",gray50:"#7f7f7f",gray40:"#999999",gray30:"#b2b2b2",gray20:"#cccccc",gray10:"#e5e5e5",gray5:"#f2f2f2",gray2:"#fafafa",textLink:"#365899",textLinkLight:"#4267b2",textDark:"#1d2129",textMedium:"#4b4f56",textLight:"#90949c",textInverseLight:"#ffffff",textInverseMedium:"#cccccc",textInverseDark:"#7f7f7f",textPlaceholder:"#90949c",textPlaceholderFocused:"#bec2c9",greenButtonBorder:"#60A62E",greenButtonNormal:"#68B92E",greenButtonPressed:"#45A800",redLight:"#ffbaba",yellow:"#ffcc00",yellowLight:"#fef7e4"},j={heading:new(c("SUITypeStyle"))({fontSize:"24px",color:"#1d2129",fontFamily:"Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif",fontWeight:"bold"}),type16:new(c("SUITypeStyle"))({fontSize:"16px",color:"#1d2129",fontFamily:"Helvetica, Arial, sans-serif"}),type12:new(c("SUITypeStyle"))({fontSize:"12px",color:"#1d2129",fontFamily:"Helvetica, Arial, sans-serif"}),type11:new(c("SUITypeStyle"))({fontSize:"11px",color:"#1d2129",fontFamily:"Helvetica, Arial, sans-serif"}),code12:new(c("SUITypeStyle"))({fontSize:"12px",color:"#1d2129",fontFamily:"Menlo, Consolas, Monaco, monospace"})},k=function k(n){return c("React").createElement(c("SUIAtlasIcon.react"),babelHelpers["extends"]({},n,{colorDefault:i.gray50,colorDisabled:i.gray10,colorHover:i.gray70,name:"delete"}))},l={SUIButton:{height:{normal:32,"short":32,tall:48},padding:{normal:{button:"16px",icon:"6px",onlyIcon:"19px"},"short":{button:"16px",icon:"6px",onlyIcon:"19px"},tall:{button:"16px",icon:"6px",onlyIcon:"19px"}},typeStyle:j.type12,use:{confirm:{active:{background:i.blueblack20,borderColor:i.blueblack30,color:i.white},disabled:{background:i.white,borderColor:i.gray10,color:i.textLight},hover:{background:i.blueblack10,borderColor:i.blueblack30,color:i.white},normal:{background:i.blueblack30,borderColor:i.blueblack30,color:i.white}},"default":{active:{background:i.gray5,borderColor:i.gray20,color:i.textMedium},disabled:{background:i.white,borderColor:i.gray10,color:i.textLight},hover:{background:i.white,borderColor:i.gray30,color:i.textMedium},normal:{background:i.white,borderColor:i.gray20,color:i.textMedium}},special:{active:{background:i.greenButtonPressed,borderColor:i.greenButtonBorder,color:i.white},disabled:{background:i.white,borderColor:i.gray10,color:i.textLight},hover:{background:i.greenButtonNormal,borderColor:i.greenButtonBorder,color:i.white},normal:{background:i.greenButtonNormal,borderColor:i.greenButtonBorder,color:i.white}}}},SUIButtonIcon:{colorConfirm:i.white,colorDefault:i.textDark,colorDisabled:i.white,colorSpecial:i.white,defaultSize:18,iconComponent:c("SUIAtlasIcon.react")},SUIThreeStateCheckboxInput:{activeCheckboxBackgroundColor:i.white,activeCheckboxBorderColor:i.accentBlue,checkboxBackgroundColor:i.white,checkboxBorderColor:i.gray20,checkedIcon:c("React").createElement(c("SUIAtlasIcon.react"),{colorDefault:i.textDark,name:"check",size:14}),disabledLabelColor:i.textLight,labelColor:i.textDark,partiallyCheckedIcon:c("React").createElement(c("SUIAtlasIcon.react"),{colorDefault:i.textDark,name:"dash",size:14}),typeStyle:j.type12},SUICardDEPRECATED:{colors:{background:i.white,border:i.gray5,footerBackground:i.gray2,innerBorder:i.gray20},typeStyles:{content:j.type12,footer:j.type12,header:j.type16}},SUICloseButton:{dark:{large:k,small:k},light:{large:k,small:k},iconSize:{large:14,small:14}},SUICustomPopover:{backgroundColor:i.white,borderColor:i.gray10,borderHighlightColor:i.green,color:i.gray70},SUITooltip:{backgroundColor:i.black,color:i.white,typeStyle:babelHelpers["extends"]({},j.type12,{WebkitFontSmoothing:"auto"})},SUIDateInput:{inputIcon:c("React").createElement(c("SUIAtlasIcon.react"),{colorDefault:i.gray30,name:"calendarMonth",size:24}),layerBackgroundColor:i.white,layerBorderColor:i.gray10},SUICalendarPager:{dayColor:i.gray70,dayDisabledColor:i.gray20,dayNameColor:i.gray20,gridBorderColor:i.gray10,pagerBackgroundColor:i.gray5,pagerBorderColor:i.gray5,rangeBackgroundColor:i.gray10,selectedBackgroundColor:i.blue50,typeStyle:j.type12},SUIDateTimeRangePicker:{backgroundColor:i.white,borderColor:i.gray10,typeStyle:j.type12},SUIError:{error:{borderColor:i.red,icon:c("React").createElement(c("SUIAtlasIcon.react"),{colorDefault:i.red,name:"warning",size:24})},warning:{borderColor:i.yellow,icon:c("React").createElement(c("SUIAtlasIcon.react"),{colorDefault:i.yellow,name:"warning",size:24})}},SUIHelpMessage:{icon:c("React").createElement(c("SUIAtlasIcon.react"),{name:"information",style:{color:i.textLight}})},SUIHighlightedText:{backgroundColor:i.blue50},SUIInlineTypeahead:{dividerBorderColor:i.gray10,searchIcon:c("React").createElement(c("SUIAtlasIcon.react"),{colorDefault:i.gray50,name:"search"})},SUILoadingBar:{backgroundColor:i.bgBlue,movingColor:i.blue50},SUILink:{hoverColor:i.blueblack30,normalColor:i.fbBlue},SUIModalCardDEPRECATED:{boxShadow:"0px 1px 0px 0px rgba(0, 0, 0, 0.10)",colors:{background:i.gray2,border:i.gray5,footerBackground:i.white,headerBackground:i.white,innerBorder:i.gray20},fullWidthFooterDivider:true,padding:{contentLightPadding:{paddingBottom:"8px",paddingLeft:"24px",paddingRight:"24px",paddingTop:"8px"},contentNormalPadding:{paddingBottom:"24px",paddingLeft:"24px",paddingRight:"24px",paddingTop:"24px"},footer:{paddingBottom:"0",paddingLeft:"24px",paddingRight:"8px",paddingTop:"0"},header:{paddingBottom:"0",paddingLeft:"24px",paddingRight:"8px",paddingTop:"0"}},typeStyles:{content:j.type12,footer:j.type16,header:j.type16}},SUINameCell:{description:{color:i.gray70,typeStyle:j.type11},height:48},SUINestedTable:{borderColor:i.gray20,evenBackgroundColor:i.white,loadingColor:i.gray30,loadingBackgroundColor:i.gray2,oddBackgroundColor:i.gray2,rowIconClosedName:"chevronRight",rowIconComponent:c("Icon.atlas"),rowIconOpenName:"chevronDown",textColor:i.gray70,textStyle:j.type12},SUIRadioList:{activeBackgroundColor:"#dddfe2",activeBorderColor:"#bec2c9",activeDotColor:"#4b4f56",backgroundColor:"#f6f7f9",borderColor:"#dddfe2",disabledBackgroundColor:"#f6f7f9",disabledBorderColor:"#dddfe2",disabledDotColor:"#dddfe2",disabledTypeColor:i.textMedium,dotColor:"#4b4f56",enabledTypeColor:i.textDark,typeStyle:j.type12},SUISearchableSelector:{disabledSubtitleTypeStyle:j.type12,disabledTitleTypeStyle:j.type12,dropdownBackgroundColor:i.white,dropdownBorderColor:i.gray10,headerBackgroundColor:i.white,headerTypeStyle:j.type12,subtitleColor:i.gray30,subtitleTypeStyle:j.type12,titleTypeStyle:j.type12},SUISearchInput:{cancelIcon:c("React").createElement(c("SUIAtlasIcon.react"),{colorDefault:i.gray10,colorHover:i.gray20,name:"delete"}),searchIcon:c("React").createElement(c("SUIAtlasIcon.react"),{colorDefault:i.gray10,colorFocused:i.gray20,name:"search",size:24})},SUISectionHeading:{borderColor:"#C4C6CA",color:"#535A67",typeStyle:j.heading},SUISelector:{backgroundColor:i.white,borderColor:i.gray10,boxShadow:"none"},SUISelectorButton:{chevron:c("React").createElement(c("SUIAtlasIcon.react"),{colorDefault:i.gray70,colorDisabled:i.gray30,name:"chevronDown",size:12}),padding:"12px"},SUISelectorOption:{activeBackgroundColor:i.blue30,activeColor:i.gray70,color:i.gray70,descriptionColor:i.gray40,descriptionSelectedColor:i.gray10,disabledBackgroundColor:i.gray10,disabledColor:i.white,highlightedBackgroundColor:i.blue30,highlightedColor:i.gray70,padding:{bottom:"8px",left:"12px",right:"24px",top:"8px"},paddingWhenNoValue:{bottom:"8px",left:"12px",right:"24px",top:"8px"},selectedBackgroundColor:i.blue90,selectedColor:i.white,selectedTypeStyle:j.type12,typeStyle:j.type12},SUISelectorSeparator:{color:i.gray10,margin:{bottom:"12px",left:"12px",right:"12px",top:"12px"}},SUISpinner:{activeColor:i.gray50,backgroundColor:i.gray20,darkActiveColor:i.gray50,darkBackgroundColor:i.gray20,sizes:{large:{border:2,diameter:20},small:{border:1.5,diameter:12}}},SUITable:{cellPadding:8,colors:{cell:i.textDark,cellBorder:i.gray20,cellErrorBackground:i.redLight,cellHoverBackground:"initial",cellModifiedBackground:i.gray10,cellSelectedBackground:i.blue20,cellSelectedHoverBackground:"initial",cellWarningBackground:i.yellowLight,error:i.red,heading:i.textDark,headingBackground:i.white,headingRule:"#dcdee4",highlight:i.accentBlue,loading:i.gray30,loadingBackground:i.gray2,noItemsMessage:i.textDark,rowBackground:i.white,rowStripe:i.blue2,text:i.textDark,warning:i.yellow},textStyles:{cell:j.type12,heading:j.type12,table:j.type12}},SUITextArea:{disabled:{background:i.gray2,borderColor:i.gray10},enabled:{background:i.white,borderColor:i.gray20},focusedBorderColor:"#4080ff",placeholderColor:i.textPlaceholder,placeholderColorFocused:i.textPlaceholderFocused,typeStyle:j.type12},SUITextInput:{characterCountTypeStyle:new(c("SUITypeStyle"))({color:i.textPlaceholder,fontFamily:"Helvetica, Arial, sans-serif",fontSize:"11px",fontWeight:"normal"}),disabled:{background:i.gray2,borderColor:i.gray10},enabled:{background:i.white,borderColor:i.gray20},errorIconMargin:"3px",focusedBorderColor:"#4080ff",height:32,maxLengthHighlightColor:"rgba(250, 62, 62, 0.3)",placeholderColor:i.textPlaceholder,placeholderColorFocused:i.textPlaceholderFocused,typeStyle:j.type12},SUIToggle:{height:26,off:{hover:{backgroundColor:i.gray30,color:i.gray70},normal:{backgroundColor:i.gray20,color:i.gray50}},on:{hover:{backgroundColor:i.gray70,color:i.gray2},normal:{backgroundColor:i.gray50,color:i.gray2}},switchColor:i.white,typeStyle:j.type12},SUIToken:{backgroundColor:i.bluegray5,color:i.blueblack50,typeStyle:j.type12},SUITokenizer:{disabled:{backgroundColor:i.gray2,borderColor:i.gray20},enabled:{backgroundColor:i.white,borderColor:i.gray20},typeaheadInput:{typeStyle:j.type12}},SUITokenizerItem:{disabled:{color:i.gray30,subtitleColor:i.gray20},highlighted:{backgroundColor:i.bluegray5,color:i.gray80,subtitleColor:i.gray50},normal:{color:i.gray70,subtitleColor:i.gray50},remove:{disabledIcon:c("React").createElement(c("SUIAtlasIcon.react"),{colorDefault:i.gray30,name:"delete",size:14}),highlightedIcon:c("React").createElement(c("SUIAtlasIcon.react"),{colorDefault:i.gray80,name:"delete",size:14}),normalIcon:c("React").createElement(c("SUIAtlasIcon.react"),{colorDefault:i.gray70,name:"delete",size:14}),selectedIcon:c("React").createElement(c("SUIAtlasIcon.react"),{colorDefault:i.white,name:"delete",size:14})},selected:{backgroundColor:i.blue50,color:i.white,disabledIcon:c("React").createElement(c("SUIAtlasIcon.react"),{colorDefault:i.gray30,name:"check",size:14}),highlightedIcon:c("React").createElement(c("SUIAtlasIcon.react"),{colorDefault:i.gray80,name:"check",size:14}),isIconShownForSingleSelection:false,normalIcon:c("React").createElement(c("SUIAtlasIcon.react"),{colorDefault:i.gray70,name:"check",size:14}),selectedIcon:c("React").createElement(c("SUIAtlasIcon.react"),{colorDefault:i.white,name:"check",size:14}),subtitleColor:i.bluegray5}},SUITokenizerItemList:{backgroundColor:i.white,borderColor:i.gray10,categoryHeader:{borderColor:i.gray5,typeStyle:j.type16},typeStyle:j.type12},SUITypeahead:{input:{backgroundColor:i.white,borderColor:i.gray20,errorBorderColor:i.red,typeStyle:j.type12,height:32},dropdown:{backgroundColor:i.white,borderColor:i.gray5,boxShadow:"0px 2px 1px -1px rgba(0, 0, 0, 0.10)",itemPadding:{bottom:"8px",left:"12px",right:"12px",top:"8px"}},highlight:{backgroundColor:i.bluegray5}},SUIHorizontalLayout:{margin:8}},m=new(c("SUITheme"))({id:"audienceplatform",components:l});f.exports=m}),null);
__d("AdsPill.react",["cx","React","joinClasses"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes;i=babelHelpers.inherits(l,c("React").Component);j=i&&i.prototype;l.prototype.render=function(){return c("React").createElement("span",babelHelpers["extends"]({},this.props,{className:c("joinClasses")(this.props.className,"_3aqo"+(this.props.display==="inline"?" _1b1w":""))}),this.props.children)};function l(){i.apply(this,arguments)}l.propTypes={display:k.oneOf(["block","inline"])};l.defaultProps={display:"block"};f.exports=l}),null);
__d("BUIAdoptionSelector.react",["BIGAdoptionConfig","BUIAdoptionWrapper.react","React","SUIBusinessTheme","SUISelector.react","XUISelector.react","XUISingleSelector.react"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("React").PropTypes;h=babelHelpers.inherits(k,c("React").Component);i=h&&h.prototype;k.prototype.getChildContext=function(){return{sui_selector_button_adoption:c("BIGAdoptionConfig").sui_selector_adoption}};k.prototype.render=function(){return c("React").createElement(c("BUIAdoptionWrapper.react"),{enabled:c("BIGAdoptionConfig").sui_selector_adoption,fallback:this.props.canSelectMultiple?c("React").createElement(c("XUISelector.react"),k.convertSUIPropsToXUIProps(this.props),this.props.children):c("React").createElement(c("XUISingleSelector.react"),k.convertSUIPropsToXUIProps(this.props),this.props.children)},c("React").createElement(c("SUISelector.react"),babelHelpers["extends"]({theme:c("SUIBusinessTheme")},this.props),this.props.children))};k.convertSUIPropsToXUIProps=function(l){__p&&__p();var m=c("SUISelector.react").defaultProps.menuVerticalAlignment;if(l.menuVerticalAlignment==="above")m="above";else if(l.menuHorizontalAlignment==="right")m="right";return babelHelpers["extends"]({},l,{customButton:l.button,className:l.className_DEPRECATED,layerBehaviors:Object.values(l.contextualLayerBehaviors),maxheight:l.maxHeight,maxwidth:typeof l.width==="number"?l.width:undefined,multiple:l.canSelectMultiple,position:m,defaultValue:l.value==null?l.value:undefined,value:l.value!=null?l.value:undefined,onChange:function n(o){if(l.canSelectMultiple)l.onChange(o.map(function(p){var q=p.value;return q}));else l.onChange(o.value)}})};function k(){h.apply(this,arguments)}k.defaultProps=c("SUISelector.react").defaultProps;k.childContextTypes={sui_selector_button_adoption:j.bool};f.exports=k}),null);
__d("BUIAdoptionSelectorOption.react",["BIGAdoptionConfig","BUIAdoptionWrapper.react","React","SUIBusinessTheme","SUISelectorOption.react","TooltipData","XUISelector.react"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i=c("XUISelector.react").Option,j=void 0;if(c("BIGAdoptionConfig").sui_selector_adoption){var k,l;j=(l=k=function(){__p&&__p();var o,p;o=babelHelpers.inherits(q,c("React").Component);p=o&&o.prototype;q.prototype.render=function(){"use strict";return c("React").createElement(c("BUIAdoptionWrapper.react"),{enabled:c("BIGAdoptionConfig").sui_selector_adoption,fallback:c("React").createElement("span",null)},c("React").createElement(c("SUISelectorOption.react"),babelHelpers["extends"]({theme:c("SUIBusinessTheme")},this.props),this.props.children))};function q(){"use strict";o.apply(this,arguments)}return q}(),k.defaultProps=c("SUISelectorOption.react").defaultProps,l)}else{var m,n;(function(){__p&&__p();function o(p){var q=p.canSelectMultiple,r=p.className_DEPRECATED,s=p.tooltip,t=babelHelpers.objectWithoutProperties(p,["canSelectMultiple","className_DEPRECATED","tooltip"]);return babelHelpers["extends"]({},t,{className:r,multiple:q},c("TooltipData").propsFor(s))}j=(n=m=function(){var p,q;p=babelHelpers.inherits(r,i);q=p&&p.prototype;function r(s){"use strict";q.constructor.call(this,o(s))}return r}(),m.defaultProps=c("SUISelectorOption.react").defaultProps,n)})()}f.exports=j}),null);
__d("BUIPopoverButton_DEPRECATED.react",["ix","cx","fbt","AbstractButton.react","BUIComponent","Image.react","React","URI","XUIError.react","fbglyph"],(function a(b,c,d,e,f,g,h,i,j){"use strict";__p&&__p();var k,l,m=c("React").PropTypes;k=babelHelpers.inherits(n,c("BUIComponent"));l=k&&k.prototype;n.prototype.render=function(){var o="_61al"+(this.props.height==="short"?" _61am":"")+(this.props.height==="medium"?" _24vl":"")+(this.props.height==="tall"?" _24vm":"")+(this.props.height==="xtall"?" _24vn":""),p=this.props,q=p.xuiError,r=p.xuiErrorAlignh,s=p.xuiErrorPosition,t=p.label,u=t===undefined?j._("Down"):t,v=babelHelpers.objectWithoutProperties(p,["xuiError","xuiErrorAlignh","xuiErrorPosition","label"]),w=this.props.label!==undefined?this.props.labelIsHidden:true;return c("React").createElement(c("XUIError.react"),{xuiError:q,xuiErrorAlignh:r,xuiErrorPosition:s},c("React").createElement(c("AbstractButton.react"),babelHelpers["extends"]({},v,{className:o,href:new(c("URI"))("#"),imageRight:c("React").createElement(c("Image.react"),{src:h("123702")}),label:u,labelIsHidden:w,role:"button"})))};function n(){k.apply(this,arguments)}n.defaultProps={height:"short"};n.propTypes=babelHelpers["extends"]({},c("AbstractButton.react").propTypes,{height:m.oneOf(["short","medium","tall","xtall"])});f.exports=n}),null);
__d("BUIDateRangePicker.react",["ix","cx","fbt","invariant","AccessibleLayer","BUIComponent","BUIDateRangeCompareUtils","BUIDateRangeLayer.react","BUIDateRangeUtils","BUIPopoverButton_DEPRECATED.react","ContextualLayer.react","ContextualLayerAutoFlip","ContextualLayerUpdateOnScroll","DateConsts","Focus","Image.react","LayerHideOnEscape","LayerRefocusOnHide","LayerTabIsolation","LocalDate","LocalDateInterval","React","ReactDOM","SUIBusinessTheme","SUIText.react","XUIError.react","fbglyph"],(function a(b,c,d,e,f,g,h,i,j,k){"use strict";__p&&__p();var l,m,n=c("BUIDateRangeUtils").CUSTOM,o=c("React").PropTypes,p={AccessibleLayer:c("AccessibleLayer"),ContextualLayerAutoFlip:c("ContextualLayerAutoFlip"),ContextualLayerUpdateOnScroll:c("ContextualLayerUpdateOnScroll"),LayerHideOnEscape:c("LayerHideOnEscape"),LayerRefocusOnHide:c("LayerRefocusOnHide"),LayerTabIsolation:c("LayerTabIsolation")};l=babelHelpers.inherits(q,c("BUIComponent"));m=l&&l.prototype;function q(){__p&&__p();var s,t;for(var u=arguments.length,v=Array(u),w=0;w<u;w++)v[w]=arguments[w];return t=(s=m.constructor).call.apply(s,[this].concat(v)),this.state={showLayer:typeof this.props.showLayer==="boolean"?this.props.showLayer:false},this.$BUIDateRangePicker1=null,this.$BUIDateRangePicker2=null,this.$BUIDateRangePicker3=false,this.$BUIDateRangePicker4=function(){this.$BUIDateRangePicker3=true}.bind(this),this.$BUIDateRangePicker5=function(){this.props.onToggle&&this.props.onToggle(this.state.showLayer);if(this.state.showLayer)this.$BUIDateRangePicker2&&c("Focus").setWithoutOutline(this.$BUIDateRangePicker2)}.bind(this),this.$BUIDateRangePicker6=function(){if(!this.$BUIDateRangePicker3)this.setState({showLayer:false},this.$BUIDateRangePicker5)}.bind(this),this.$BUIDateRangePicker7=function(){this.$BUIDateRangePicker3=false;this.setState(function(x){return{showLayer:!x.showLayer}},this.$BUIDateRangePicker5)}.bind(this),this.$BUIDateRangePicker8=function(x){this.setState(function(y){if(x!==y.showLayer)return{showLayer:x};else return{showLayer:y.showLayer}},this.$BUIDateRangePicker5)}.bind(this),this.$BUIDateRangePicker9=function(){var x=this.$BUIDateRangePicker1;x||k(0);return x}.bind(this),this.$BUIDateRangePicker10=function(x){this.$BUIDateRangePicker1=c("ReactDOM").findDOMNode(x)}.bind(this),this.$BUIDateRangePicker11=function(x){this.$BUIDateRangePicker2=c("ReactDOM").findDOMNode(x)}.bind(this),t}q.hasSubLabel=function(s){if(!s.showSublabel)return false;var t=c("BUIDateRangeUtils").calculateDefaultSelection(s),u=s.enableComparison,v=s.renderExplicitRangeLabel,w=!!(u&&t.compareInterval),x=!!(v&&t.option&&t.option.shouldRenderExplicitRangeLabel);return w||x&&(!t.interval||!t.interval.contains(c("LocalDate").today(s.timezoneID)))};q.prototype.componentWillReceiveProps=function(s){if(typeof s.showLayer==="boolean"&&this.props.showLayer!==s.showLayer)this.setState({showLayer:s.showLayer})};q.prototype.$BUIDateRangePicker12=function(){return c("React").createElement(c("ContextualLayer.react"),{alignment:this.props.alignment,key:"layer",behaviors:p,contextRef:this.$BUIDateRangePicker9,onBlur:this.$BUIDateRangePicker6,onToggle:this.$BUIDateRangePicker8,position:"below",shouldSetARIAProperties:false,shown:true},c("React").createElement(c("BUIDateRangeLayer.react"),{className:"_5mwk",dateRestraints:this.props.dateRestraints,defaultIncludeToday:this.props.defaultIncludeToday,defaultValue:this.$BUIDateRangePicker13(),enableComparison:this.props.enableComparison,hideCalendar:this.props.hideCalendar,showRange:this.props.showRange,inlineNux:this.props.inlineNux,limitPagerToRestraints:this.props.limitPagerToRestraints,onCancel:this.$BUIDateRangePicker6,onChange:this.props.onChange,onConfirm:this.$BUIDateRangePicker6,onUnconfirmedRangeSelection:this.props.onUnconfirmedRangeSelection,options:this.props.options,setupFocusRef:this.$BUIDateRangePicker11,highlightedDates:this.props.highlightedDates,shown:true,timezoneID:this.props.timezoneID,timezoneLabel:this.props.timezoneLabel}))};q.prototype.$BUIDateRangePicker13=function(){var s=c("BUIDateRangeUtils").calculateDefaultSelection(this.props);return s.option&&s.interval?{compareInterval:s.compareInterval,comparePreset:s.comparePreset,includeToday:s.includeToday,interval:s.interval,preset:s.option.value}:null};q.prototype.renderLayers=function(){if(this.props.disabled||!this.state.showLayer)return null;return this.$BUIDateRangePicker12()};q.prototype.$BUIDateRangePicker14=function(){__p&&__p();var s=c("BUIDateRangeUtils").calculateDefaultSelection(this.props),t=this.props,u=t.dateFormat,v=t.enableComparison,w=t.renderExplicitRangeLabel,x=t.verbose,y=void 0,z=x==="all"||s.option===n||w&&s.option&&s.option.shouldRenderExplicitRangeLabel||v&&s.compareInterval&&s.interval,A=!(x==="all"||s.option===n);if(z&&A)y=c("BUIDateRangeUtils").createCombinedLabel(c("BUIDateRangeUtils").friendly(s),c("BUIDateRangeUtils").verbose(s.interval,u));else if(A)y=c("BUIDateRangeUtils").friendly(s);else if(z)y=c("BUIDateRangeUtils").verbose(s.interval,u);else y=c("BUIDateRangeUtils").friendly(s);var B=q.hasSubLabel(this.props),C=B?c("React").createElement(r,this.props):null;return c("React").createElement("div",{className:"_1uz0"+(B?" _5--v":"")},c("React").createElement("div",null,y),C)};q.prototype.$BUIDateRangePicker15=function(){return c("React").createElement(c("Image.react"),{src:h("122516")})};q.prototype.render=function(){return c("React").createElement("span",{className:this.props.enableComparison?"_5ldw":""},c("React").createElement(c("BUIPopoverButton_DEPRECATED.react"),{className:this.props.className,disabled:this.props.disabled,height:this.props.height,label:this.$BUIDateRangePicker14(),image:this.props.hideIcon?null:this.$BUIDateRangePicker15(),onClick:this.$BUIDateRangePicker7,onMouseDown:this.$BUIDateRangePicker4,ref:this.$BUIDateRangePicker10,xuiError:this.props.xuiError,xuiErrorAlignh:this.props.xuiErrorAlignh,xuiErrorPosition:this.props.xuiErrorPosition}),this.renderLayers())};q.propTypes=babelHelpers["extends"]({},c("XUIError.react").propTypes,{alignment:o.string,dateFormat:o.string,dateRestraints:c("BUIDateRangeLayer.react").propTypes.dateRestraints,defaultIncludeToday:o.bool.isRequired,disabled:o.bool,enableComparison:o.bool,height:c("BUIPopoverButton_DEPRECATED.react").propTypes.height.isRequired,hideCalendar:o.bool.isRequired,showRange:o.bool,hideIcon:o.bool.isRequired,inlineNux:o.node,limitPagerToRestraints:o.bool,showLayer:o.bool,showSublabel:o.bool,onChange:o.func,onToggle:o.func,onUnconfirmedRangeSelection:o.func,options:o.arrayOf(o.shape({calculateInterval:o.func.isRequired,calculateIntervalIncludingToday:o.func,text:o.any.isRequired,value:o.string.isRequired,disabledInCompareMode:o.bool})).isRequired,timezoneID:o.number.isRequired,timezoneLabel:o.node,value:o.shape({compareInterval:o.instanceOf(c("LocalDateInterval")),comparePreset:o.string,includeToday:o.bool,interval:o.instanceOf(c("LocalDateInterval")),preset:o.string}),verbose:o.oneOf(["all","custom"]),renderExplicitRangeLabel:o.bool,highlightedDates:o.array});q.defaultProps={defaultIncludeToday:false,height:"short",hideCalendar:false,hideIcon:true,options:c("BUIDateRangeLayer.react").defaultProps.options};function r(s){var t=c("BUIDateRangeUtils").calculateDefaultSelection(s),u=s.enableComparison,v=s.dateFormat,w=u&&t.compareInterval,x=t.interval&&t.interval.toDuration()===c("DateConsts").SEC_PER_DAY?c("BUIDateRangeCompareUtils").COMPARE_LABEL_SINGLE_DAY_WIDTH:"auto",y=w?j._("vs. {label}",[j.param("label",c("BUIDateRangeUtils").verbose(t.compareInterval,v))]):j._("Note: Does not include today's data");return c("React").createElement(c("SUIText.react"),{className:"_5--w",display:"truncate",shade:"light",size:"xsmall_DEPRECATED",theme:c("SUIBusinessTheme"),weight:"normal",width:x},y)}f.exports=q}),null);
__d("BUIInsightsChartWithLegend.react",["InsightsChartWithLegend.react","InsightsItems","React","BUIInsightsTheme"],(function a(b,c,d,e,f,g){"use strict";__p&&__p();var h,i,j=c("InsightsItems").BaseItem,k=c("InsightsItems").SeriesDataItem;h=babelHelpers.inherits(l,c("React").PureComponent);i=h&&h.prototype;l.prototype.render=function(){__p&&__p();var m=c("BUIInsightsTheme"),n=this.props,o=n.chart,p=n.items,q=o.props;while(q.children&&!q.schema)q=c("React").Children.only(q.children).props;var r=q.schema,s=Array.from(m.colors.merge(q.colors).values()),t=m.autoColors.merge(q.autoColors),u={};p.forEach(function(x){if(x instanceof j&&!(x instanceof k))return;var y=x instanceof k?x.seriesName:x.key;if(y in r&&!t.has(y)&&!(y in u)){var z=Object.keys(u).length%s.length;u[y]=s[z]}});var v=t.merge(u);o=c("React").cloneElement(o,{autoColors:v});var w=c("React").cloneElement(this.props.children,{autoColors:v});return c("React").createElement(c("InsightsChartWithLegend.react"),babelHelpers["extends"]({},this.props,{chart:o,items:p}),w)};function l(){h.apply(this,arguments)}l.propTypes=babelHelpers["extends"]({},c("InsightsChartWithLegend.react").propTypes);f.exports=l}),null);
__d("XUICheckboxList.react",["cx","InputLabel.react","ScrollableArea.react","React","XUICheckboxInput.react","joinClasses"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes;i=babelHelpers.inherits(l,c("React").Component);j=i&&i.prototype;function l(){var m,n;for(var o=arguments.length,p=Array(o),q=0;q<o;q++)p[q]=arguments[q];return n=(m=j.constructor).call.apply(m,[this].concat(p)),this.renderItem=function(r,s){return c("React").createElement(c("InputLabel.react"),babelHelpers["extends"]({key:r.value,className:r.className},r.inputLabelProps,{label:r.label}),c("React").createElement(c("XUICheckboxInput.react"),{ref:s===0?function(t){return this.$XUICheckboxList1=t}.bind(this):undefined,disabled:r.disabled,value:r.value,checked:!!r.checked,onChange:this.$XUICheckboxList2.bind(this,r)}))}.bind(this),this.$XUICheckboxList2=function(r,s){if(r.checked)this.props.onRemove(r);else this.props.onAdd(r)}.bind(this),n}l.prototype.render=function(){var m="_5uy8 "+(this.props.className||"");return c("React").createElement(c("ScrollableArea.react"),babelHelpers["extends"]({},this.props,{shadow:false,className:c("joinClasses")(this.props.className,m)}),this.props.items.map(this.renderItem))};l.prototype.focusInput=function(){this.$XUICheckboxList1&&this.$XUICheckboxList1.focusInput()};l.prototype.blurInput=function(){this.$XUICheckboxList1&&this.$XUICheckboxList1.blurInput()};l.propTypes={items:k.array.isRequired,height:k.number,onAdd:k.func.isRequired,onRemove:k.func.isRequired};f.exports=l}),null);
__d("MercurySeenIndicator.react",["cx","MercuryDelayedRoger","MercuryIDs","React","SubscriptionsHandler"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k=c("React").PropTypes;i=babelHelpers.inherits(l,c("React").Component);j=i&&i.prototype;l.prototype.componentWillMount=function(){this.$MercurySeenIndicator1=c("MercuryDelayedRoger").getForFBID(this.props.viewer)};l.prototype.componentDidMount=function(){this.$MercurySeenIndicator2=new(c("SubscriptionsHandler"))();this.$MercurySeenIndicator2.addSubscriptions(this.$MercurySeenIndicator1.subscribe("state-changed",function(m,n){n[this.props.thread.thread_id]&&this.forceUpdate()}.bind(this)))};l.prototype.componentWillUnmount=function(){this.$MercurySeenIndicator2&&this.$MercurySeenIndicator2.release()};l.prototype.render=function(){var m=this.$MercurySeenIndicator3(),n=m.viewer,o=m.others,p=this.$MercurySeenIndicator4(n),q=this.$MercurySeenIndicator5(o);return c("React").createElement("span",{className:"_3jy5"+(p?" repliedLast":"")+(p&&q?" seenByAll":"")})};l.prototype.$MercurySeenIndicator3=function(){var m=c("MercuryIDs").getParticipantIDFromUserID(this.props.viewer),n=this.props.thread.participants.filter(function(o){return o!==m});return{viewer:m,others:n}};l.prototype.$MercurySeenIndicator4=function(m){return m===this.props.thread.snippet_sender};l.prototype.$MercurySeenIndicator5=function(m){var n=this.props.thread.thread_id;return this.$MercurySeenIndicator1.getSeenBy(n).length===m.length};function l(){i.apply(this,arguments)}l.propTypes={thread:k.object.isRequired,viewer:k.string.isRequired};f.exports=l}),null);
__d("SUIRadioList.react",["cx","Focus","Map","React","RTLKeys","SUIComponent","SUITheme","Tooltip","emptyFunction","joinClasses","nullthrows","uniqueID","KeyStatus","VirtualCursorStatus"],(function a(b,c,d,e,f,g,h){"use strict";__p&&__p();var i,j,k,l,m=c("React").Element,n=c("React").PropTypes,o=c("KeyStatus").isKeyDown,p=c("VirtualCursorStatus").isVirtualCursorTriggered;i=babelHelpers.inherits(q,c("SUIComponent"));j=i&&i.prototype;function q(){__p&&__p();var s;(s=j.constructor).call.apply(s,[this].concat(Array.prototype.slice.call(arguments)));this.$SUIRadioListItem2=function(){this.setState({isActive:false,showFocusRing:false})}.bind(this);this.$SUIRadioListItem3=function(){if(o()||p())this.setState({showFocusRing:true})}.bind(this);this.$SUIRadioListItem4=function(event){switch(event.keyCode){case c("RTLKeys").SPACE:case c("RTLKeys").RETURN:this.setState({isActive:true,showFocusRing:true});break}this.props.onKeyDown(event)}.bind(this);this.$SUIRadioListItem5=function(event){switch(event.keyCode){case c("RTLKeys").SPACE:case c("RTLKeys").RETURN:this.setState({isActive:false,showFocusRing:true});break}}.bind(this);this.$SUIRadioListItem6=function(){this.setState({isActive:true,showFocusRing:false})}.bind(this);this.$SUIRadioListItem7=function(){this.setState({isActive:false,showFocusRing:false})}.bind(this);this.$SUIRadioListItem8=function(){if(!this.props.disabled)this.props.onSelect(this.props.value)}.bind(this);this.state={isActive:false,showFocusRing:false};this.$SUIRadioListItem1=c("uniqueID")()}q.prototype.render=function(){var s=c("SUITheme").get(this).SUIRadioList,t=babelHelpers["extends"]({},s.typeStyle,{color:this.props.disabled?s.disabledTypeColor:s.enabledTypeColor,fontWeight:"normal",lineHeight:"16px"}),u=this.props.selectedValue===this.props.value;return c("React").createElement("div",babelHelpers["extends"]({},c("Tooltip").propsFor(this.props.tooltip),{className:c("joinClasses")(this.props.className,"_1iq6"+(this.props.radioAlignment==="center"?" _4a8o":"")),"data-value":this.props.value,onClick:this.$SUIRadioListItem8,onMouseDown:this.$SUIRadioListItem6,onMouseUp:this.$SUIRadioListItem7,role:"presentation"}),c("React").createElement("div",{"aria-checked":u,"aria-disabled":this.props.disabled,"aria-labelledby":this.$SUIRadioListItem1,"aria-posinset":this.props["aria-posinset"],"aria-setsize":this.props["aria-setsize"],className:"_gxj"+(!this.state.showFocusRing?" _1a48":""),onBlur:this.$SUIRadioListItem2,onFocus:this.$SUIRadioListItem3,onKeyDown:this.$SUIRadioListItem4,onKeyUp:this.$SUIRadioListItem5,ref:this.props.setupRadioRef,role:"radio",style:{backgroundColor:this.props.disabled&&s.disabledBackgroundColor||this.state.isActive&&s.activeBackgroundColor||u&&s.selectedBackgroundColor||s.backgroundColor,borderColor:this.props.disabled&&s.disabledBorderColor||this.state.isActive&&s.activeBorderColor||u&&s.selectedBorderColor||s.borderColor},tabIndex:this.props.tabIndex},u?c("React").createElement("div",{className:"_gxk",style:{backgroundColor:this.props.disabled&&s.disabledDotColor||this.state.isActive&&s.activeDotColor||u&&s.selectedDotColor||s.dotColor}}):null),c("React").createElement("label",{className:"_gxl",id:this.$SUIRadioListItem1,style:t},this.props.children))};q.propTypes={"aria-posinset":n.number,"aria-setsize":n.number,disabled:n.bool.isRequired,name:n.string,onKeyDown:n.func.isRequired,onSelect:n.func.isRequired,radioAlignment:n.oneOf(["top","center"]).isRequired,selectedValue:n.any,tabIndex:n.number,theme:n.instanceOf(c("SUITheme")),tooltip:n.node,value:n.any};q.defaultProps={disabled:false,onKeyDown:c("emptyFunction"),onSelect:c("emptyFunction"),radioAlignment:"top",selectedValue:null};k=babelHelpers.inherits(r,c("SUIComponent"));l=k&&k.prototype;function r(){__p&&__p();var s;(s=l.constructor).call.apply(s,[this].concat(Array.prototype.slice.call(arguments)));this.$SUIRadioList5=function(t){__p&&__p();return function(event){__p&&__p();switch(event.keyCode){case c("RTLKeys").UP:case c("RTLKeys").getLeft():event.preventDefault();this.$SUIRadioList3(t-1);break;case c("RTLKeys").DOWN:case c("RTLKeys").getRight():event.preventDefault();this.$SUIRadioList3(t+1);break;case c("RTLKeys").SPACE:event.preventDefault();this.$SUIRadioList3(t);break}}.bind(this)}.bind(this);this.$SUIRadioList4=function(t){if(t!==this.props.value)this.props.onChange(t)}.bind(this);this.$SUIRadioList1=new(c("Map"))();this.$SUIRadioList2=new(c("Map"))()}r.prototype.$SUIRadioList3=function(s){if(s>=this.$SUIRadioList2.size)s=0;else if(s<0)s=this.$SUIRadioList2.size-1;var t=c("nullthrows")(this.$SUIRadioList2.get(s)),u=c("nullthrows")(this.$SUIRadioList1.get(s));if(!t.props.disabled)this.$SUIRadioList4(t.props.value);c("Focus").set(u)};r.prototype.render=function(){var s=this.props,t=s.children,u=s.direction,v=s.margin,w=s.name,x=s.onChange,y=s.radioAlignment,z=s.value,A=babelHelpers.objectWithoutProperties(s,["children","direction","margin","name","onChange","radioAlignment","value"]);void x;var B=c("React").Children.toArray(t),C=B.some(function(F){return F&&F.props.value===z}),D=B.filter(c("emptyFunction").thatReturnsArgument).length,E=c("React").Children.map(t,function(F,G){return!F?F:c("React").cloneElement(F,{name:w,"aria-posinset":G+1,"aria-setsize":D,onKeyDown:this.$SUIRadioList5(G),onSelect:this.$SUIRadioList4,radioAlignment:y,ref:function(H){this.$SUIRadioList2.set(G,H)}.bind(this),selectedValue:z,setupRadioRef:function(H){this.$SUIRadioList1.set(G,H)}.bind(this),tabIndex:z===F.props.value||!C&&G===0?0:-1})}.bind(this));return c("React").createElement("ul",babelHelpers["extends"]({className:c("joinClasses")("_4nzn"+(u==="horizontal"?" _4nzo":""),v),"data-testid":this.props["data-testid"],"data-value":z},A,{role:"radiogroup"}),E)};r.Item=q;r.defaultProps={radioAlignment:"top",direction:"vertical"};r.propTypes={direction:n.oneOf(["horizontal","vertical"]),name:n.string,margin:n.string,onChange:n.func.isRequired,radioAlignment:n.oneOf(["top","center"]).isRequired,theme:n.instanceOf(c("SUITheme")),value:n.any};f.exports=r}),null);
__d("SUILoadingModalOverlay.react",["cx","React","SUISpinner.react"],(function a(b,c,d,e,f,g,h){"use strict";var i,j,k=c("React").PureComponent;i=babelHelpers.inherits(l,k);j=i&&i.prototype;l.prototype.render=function(){return c("React").createElement("div",{className:"_4b3s"},c("React").createElement("div",{className:"_4b3t"},c("React").createElement(c("SUISpinner.react"),{background:"dark",size:"large",theme:this.props.theme})))};function l(){i.apply(this,arguments)}f.exports=l}),null);
__d("AdsTargetingWebdriverIDs",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({TARGETING_AGE:"targeting_age",TARGETING_AGE_EDITOR_MIN:"targeting_age_editor_min",TARGETING_CONNECTIONS:"targeting_connection",TARGETING_CONTAINER:"targeting-container",TARGETING_CUSTOM_AUDIENCE:"targeting_custom_audience",TARGETING_CUSTOM_AUDIENCE_EXCLUDE_LINK:"targeting_custom_audience_exclude_link",TARGETING_CUSTOM_AUDIENCE_ITEM:"targeting_custom_audience_item",TARGETING_CUSTOM_AUDIENCE_LABEL:"targeting_custom_audeince_label",TARGETING_CUSTOM_AUDIENCE_SELECTED_ITEM:"targeting_custom_audience_selected_item",TARGETING_CUSTOM_AUDIENCE_TOKENIZER:"targeting_custom_audience_tokenizer",TARGETING_DETAILED_TARGETING:"targeting_detailed_targeting",TARGETING_DIALOG_CONFIRM_BUTTON:"targeting_dialog_confirm_button",TARGETING_EDIT_BUTTON:"targeting_edit_button",TARGETING_EXCLUDED_CUSTOM_AUDIENCE_SELECTED_ITEM:"targeting_excluded_custom_audience_selected_item",TARGETING_EXCLUDED_CUSTOM_AUDIENCE_TOKENIZER:"targeting_excluded_custom_audience_tokenizer",TARGETING_FLEXIBLE_TARGETING_TOKENIZER:"targeting_flexible_targeting_tokenizer",TARGETING_FLEXIBLE_TARGETING_ENTRIES_VIEW:"targeting_flexible_targeting_entries_view",TARGETING_GENDER:"targeting_gender",TARGETING_GENDER_SELECTOR_WOMEN:"targeting_gender_selector_women",TARGETING_LANGUAGE:"targeting_language",TARGETING_LOCATION:"targeting_location",TARGETING_LOCATION_EDITOR_SWITCH:"targeting_location_editor_switch",TARGETING_PAGE_SET:"targeting_page_set",TARGETING_PAGE_SET_OPEN_DIALOG_BUTTON:"targeting_page_set_open_dialog_button",TARGETING_PAGE_SET_DIALOG:"targeting_page_set_dialog",TARGETING_PAGE_SET_DIALOG_LOADING:"targeting_page_set_dialog_loading",TARGETING_PAGE_SET_DIALOG_SAVE_BUTTON:"targeting_page_set_dialog_save_button",TARGETING_PAGE_SET_EDIT_DIALOG_LINK:"targeting_page_set_edit_dialog_link",TARGETING_SAVED_AUDIENCE_TAB:"targeting_saved_audience_tab",TARGETING_SAVED_AUDIENCE_TAB_ITEM:"targeting_saved_audience_tab_item",TARGETING_SENTENCES:"targeting_sentences"})}),null);
__d("PixelTrackingEnum",[],(function a(b,c,d,e,f,g){f.exports=Object.freeze({NO_URL:"NO_URL"})}),null);
__d("XAdsManagerCampaignGroupPageController",["XController"],(function a(b,c,d,e,f,g){f.exports=c("XController").create("/ads/manage/summary/campaign/",{business_id:{type:"Int"},campaign_id:{type:"Int",required:true},level:{type:"Enum",defaultValue:"ad_set",enumType:1},time_start:{type:"String"},time_end:{type:"String"},offset:{type:"Int",defaultValue:0},status:{type:"Enum",enumType:0},sort_key:{type:"Int"},sort_dir:{type:"String"},show_adgroup_id:{type:"Int"},can_use_campaign_spend_cap:{type:"Bool",defaultValue:false},source:{type:"Enum",enumType:1}})}),null);