LWICometIneligibleObjectivesSection.react",["fbt","LWICometObjectiveListItem.react","LWICometObjectiveSectionItemUtils","LWIOmniText.react","react","withLWICometSpecPart"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=e||(e=o("react"));function c(e){var t=e.ineligibleObjectiveSpecList,n=e.lwiDataRef,a=e.objectiveSpecList,i=e.onPressGoal,l=e.selectedGoal,c=e.adAccountID,d=e.selectedInferredGoal;return t.length===0?null:u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"x14vqqas xod5an3 xyqm7xq x1ys307a",children:u.jsx(r("LWIOmniText.react"),{color:"secondary",type:"meta4",children:t.length>1?s._(/*BTDS*/""):s._(/*BTDS*/"")})}),t.map(function(e,t){return u.jsx(r("LWICometObjectiveListItem.react"),{adAccountID:c,descriptionOverride:o("LWICometObjectiveSectionItemUtils").getDescriptionOverride(e),lwiDataRef:n,objectiveSpec:e,objectiveSpecList:a,onPressGoal:i,selectedGoal:l,selectedInferredGoal:d},"ineligible-"+t.toString())})]})}c.displayName=c.name+" [from "+i.id+"]";var d=r("withLWICometSpecPart")(u.memo(c),function(e){return{adAccountID:e.adAccountData.legacyAccountID,selectedInferredGoal:e.inferredGoal}});l.default=d}),226);
-----
LWICometAMUpsellSection.react",["Actor","JSResourceForInteraction","LWICometContentConsistencyConstants","LWICometObjectiveListItem.react","LWICometObjectiveSectionItemUtils","LWIOmniDivider.react","LWIOmniText.react","lazyLoadComponent","react","useLWILoggerContext","withLWICometSpecPart"],(function(t,n,r,o,a,i,l){"use strict";var e,s=e||(e=o("react")),u=r("lazyLoadComponent")(r("JSResourceForInteraction")("LWICometAMUpsellButton.react").__setRef("LWICometAMUpsellSection.react")),c={divider:{marginTop:"xw7yly9",marginInlineEnd:"x1ys307a",marginBottom:"x1yztbdb",marginInlineStart:"xyqm7xq",$$css:!0}};function d(e){var t=e.actorID,n=e.amUpsellObjectivesSpecList,a=e.lwiDataRef,i=e.metaLogo,l=e.objectiveSpecList,d=e.selectedGoal,m=e.adAccountID,p=e.selectedInferredGoal,_=r("useLWILoggerContext")(),f=_.pageID,g=_.targetID;return n.length===0?null:s.jsxs(s.Fragment,{children:[s.jsx(r("LWIOmniDivider.react"),{xstyle:c.divider}),s.jsx("div",{className:"x14vqqas xod5an3 xyqm7xq x1ys307a",children:s.jsx(r("LWIOmniText.react"),{color:"secondary",type:"meta4",children:o("LWICometContentConsistencyConstants").AM_GOAL_PICKER_DIVIDER_TEXT})}),n.map(function(e,c){return s.jsx(r("LWICometObjectiveListItem.react"),{adAccountID:m,addOnSecondaryOverride:{addOn:s.jsx(o("Actor").ActorProvider,{initialActorID:t,readonly:!0,children:s.jsx(u,{adAccountID:m,amUpsellObjectivesSpecList:n,metaLogo:i,pageID:f,postID:g})}),type:"body"},descriptionOverride:o("LWICometObjectiveSectionItemUtils").getDescriptionOverride(e),lwiDataRef:a,objectiveSpec:e,objectiveSpecList:l,selectedGoal:d,selectedInferredGoal:p},"AMUpsellSectionItem "+c.toString())})]})}d.displayName=d.name+" [from "+i.id+"]";var m=r("withLWICometSpecPart")(s.memo(d),function(e){return{adAccountID:e.adAccountData.legacyAccountID,selectedInferredGoal:e.inferredGoal}});l.default=m}),98);
-----
mapLWIObjectiveSpecToAdsLWIGoalItem",["LWICometObjectiveSectionItemUtils"],(function(a,b,c,d,e,f,g){"use strict";function a(a){if(a==null)return null;var b=a.goal,c=a.title;a=a.description;if(b==null||c==null)return null;var e=d("LWICometObjectiveSectionItemUtils").GOAL_ICON_MAP[b];return e==null?null:{description:a,goal:b,icon:e,title:c}}g.mapLWIObjectiveSpecToAdsLWIGoalItem=a}),98);
-----
LWICometObjectiveInlineList.react",["fbt","CometRelay","FBLogger","JSResourceForInteraction","LWICometCarouselAdsUtils","LWICometErrorBoundary.react","LWICometIneligibleObjectiveLoggingUtils","LWICometObjectiveInlineList_lwi.graphql","LWICometObjectiveListItem.react","LWICometObjectiveSectionItemUtils","LWIOmniDivider.react","LWIOmniShowToggleButton.react","LWIOmniText.react","emptyFunction","lwiCometObjectiveReducer","react","useCollapsableList","useCometLazyDialog","useLWILoggerContext","useLWIReducers","withLWICometSpecPart"],(function(ce,k,i,c,ue,$,N,O){"use strict";var S,W,n=W||(W=c("react")),m=W,V=m.useCallback,K=m.useEffect,M=m.useLayoutEffect,X=m.useRef,Y=i("JSResourceForInteraction")("LWICometPageLikeDisableCarouselConfirmationDialog.react").__setRef("LWICometObjectiveInlineList.react"),E=3,Z=O._(/*BTDS*/""),Q={divider:{marginTop:"xw7yly9",marginInlineEnd:"x1ys307a",marginBottom:"x1yztbdb",marginInlineStart:"xyqm7xq",$$css:!0}};function G(e){var C=e.enableGuidedStartRecommendationPill,b=C===void 0?!1:C,l=e.ineligibleObjectiveSpecList,h=e.lwiDataRef,a=e.objectiveSpecList,s=e.onChangeGoal,v=e.onSelectAutomaticGoal,g=e.onSelectIneligibleGoal,d=e.selectedGoal,A=e.selectedObjective,w=e.adAccountID,R=e.assetFeedSpecPlus,p=e.creative,T=e.creativeAssetGroupsSpec,P=e.selectedInferredGoal,D=e.specContext,F=i("useLWILoggerContext")(),I=i("useLWIReducers")([i("lwiCometObjectiveReducer")]),H=c("CometRelay").useFragment(S!==void 0?S:S=k("LWICometObjectiveInlineList_lwi.graphql"),h),ie=i("useCometLazyDialog")(Y),q=ie[0],_=a.concat(l!=null?l:[]),B=X(!1);K(function(){l!=null&&l.length>0&&!B.current&&(B.current=!0,c("LWICometIneligibleObjectiveLoggingUtils").logIneligibleObjectiveEvent("render_ineligible_goals",F,D,l,a))},[l,F,a,D]),M(function(){if(d!=null&&(_==null?void 0:_.find(function(re){return d===re.goal}))==null){var t,o,j,r=a[0],u=(t=r.metadataList)==null?void 0:t[0],L=(o=r.objective)!=null?o:u==null?void 0:u.objective,ae=(j=r.offsiteCustomEvent)!=null?j:u==null?void 0:u.offsiteCustomEvent;if(L===null){i("FBLogger")("pages_lwi").mustfix("default objective for objective content is null");return}I({goal:r.goal,inferredGoal:r.inferredGoal,objective:L,offsiteCustomEvent:ae,type:"objective_reducer.update_objective"},{side:"client_side"}),s&&s(r)}},[_,I,a,s,d]);var x=_.filter(function(t){return t.goal!=="AUTOMATIC"}),y=c("useCollapsableList").useCollapsableList(x,E,ee(x,d,A)),J=y[0],ne=y[1],oe=y[2],U=J.filter(function(t){return t.isEligible===!0}),f=J.filter(function(t){return t.isEligible!==!0}),z=V(function(t){var o=t.goal,j=t.inferredGoal;if(t.isEligible===!1&&g!=null){g(t);return}if(o==="AUTOMATIC"){var r=function(){return I({type:"objective_reducer.select_automatic_goal"},{side:"user_action"})};v!=null?v(function(){r()}):r()}else{var u=function(){I({goal:o,inferredGoal:j,objective:t.objective,offsiteCustomEvent:t.offsiteCustomEvent,type:"objective_reducer.update_objective"},{side:"user_action"})};(o==="GET_PAGE_LIKES"||o==="GET_MORE_VISITS")&&(c("LWICometCarouselAdsUtils").isCarouselAdFormat(R,p)||T!=null)?q({onClose:i("emptyFunction"),onConfirm:function(){u()}},i("emptyFunction")):u()}s!=null&&s(t)},[R,p,T,I,s,v,g,q]);if(a.length<=1)return null;var le=x.length>E;return n.jsxs(i("LWICometErrorBoundary.react"),{sectionName:"LWICometObjectiveInlineList",children:[U.map(function(t,o){return n.jsx(i("LWICometObjectiveListItem.react"),{adAccountID:w,descriptionOverride:c("LWICometObjectiveSectionItemUtils").getDescriptionOverride(t),enableGuidedStartRecommendationPill:b,lwiDataRef:H,objectiveSpec:t,objectiveSpecList:a,onPressGoal:z,selectedGoal:d,selectedInferredGoal:P,selectedObjective:A},o.toString())}),U.length>0&&f.length>0&&n.jsx(i("LWIOmniDivider.react"),{xstyle:Q.divider}),f.length>0&&n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"x1yztbdb xyqm7xq x1ys307a",children:n.jsx(i("LWIOmniText.react"),{color:"secondary",type:"meta4",children:f.length>1?O._(/*BTDS*/""):O._(/*BTDS*/"")})}),f.map(function(t,o){return n.jsx(i("LWICometObjectiveListItem.react"),{adAccountID:w,descriptionOverride:c("LWICometObjectiveSectionItemUtils").getDescriptionOverride(t),lwiDataRef:H,objectiveSpec:t,objectiveSpecList:a,onPressGoal:z,selectedGoal:d,selectedInferredGoal:P,selectedObjective:A},"ineligible-"+o.toString())})]}),le&&n.jsx("div",{className:"x1xmf6yo",children:n.jsx(i("LWIOmniShowToggleButton.react"),{collapsed:ne,collapsedLabel:Z,onToggle:oe,paddingHorizontal:16})})]})}G.displayName=G.name+" [from "+$.id+"]";function ee(e,C,b){return e.find(function(l){var h=l.goal,a=l.metadataList,s=l.objective,v=a.find(function(g){return g.objective===b})!=null;return h===C&&(s===b||v)})}var te=i("withLWICometSpecPart")(n.memo(G),function(e){return{adAccountID:e.adAccountData.legacyAccountID,assetFeedSpecPlus:e.adgroupSpecs[e.selectedAdgroupID].assetFeedSpecPlus,creative:e.adgroupSpecs[e.selectedAdgroupID].creative,creativeAssetGroupsSpec:e.adgroupSpecs[e.selectedAdgroupID].creativeAssetGroupsSpec,selectedInferredGoal:e.inferredGoal,specContext:e}});N.default=te}),226);
-----
WebsiteClicksObjectiveSpec",["fbt","LWICometObjectiveSectionItemUtils"],(function(a,b,c,d,e,f,g,h){"use strict";a={businessGoal:"TRAFFIC",description:h._(/*BTDS*/"Drive people to click through to your website"),goal:"GET_WEBSITE_VISITORS",icon:d("LWICometObjectiveSectionItemUtils").GOAL_ICON_MAP.GET_WEBSITE_VISITORS,inferredGoal:null,metadataList:[],objective:"LINK_CLICKS",offsiteCustomEvent:null,title:h._(/*BTDS*/"Get more website visitors")};g.websiteClicksObjectiveSpec=a}),226);
-----
LeadGenObjectiveSpec",["fbt","LWICometObjectiveSectionItemUtils"],(function(a,b,c,d,e,f,g,h){"use strict";a={businessGoal:"SALES",description:h._(/*BTDS*/""),goal:"GET_LEADS",icon:d("LWICometObjectiveSectionItemUtils").GOAL_ICON_MAP.GET_LEADS,inferredGoal:null,metadataList:[],objective:"LEAD_GENERATION",offsiteCustomEvent:null,title:h._(/*BTDS*/"")};g.leadGenObjectiveSpec=a}),226);
-----
PageLikeObjectiveSpec",["fbt","LWICometObjectiveSectionItemUtils"],(function(a,b,c,d,e,f,g,h){"use strict";a={businessGoal:"TRAFFIC",description:h._(/*BTDS*/""),goal:"GET_PAGE_LIKES",icon:d("LWICometObjectiveSectionItemUtils").GOAL_ICON_MAP.GET_PAGE_LIKES,inferredGoal:null,metadataList:[],objective:"PAGE_LIKES",offsiteCustomEvent:null,title:h._(/*BTDS*/"")};g.pageLikeObjectiveSpec=a}),226);
-----
LWICometLeadGenUpsellMidAdCreationFormGuidance.react",["fbt","GeoCollapsibleGuidanceCard.react","GeoGuidanceCardContent.react","GeoGuidanceCardFooter.react","GeoGuidanceCardHeader.react","GeoLink.react","LWICometObjectiveSectionItemUtils","lwiCometObjectiveReducer","react","react-compiler-runtime","useLWIReducers"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var b=d("react-compiler-runtime").c(16),e=a.onSaveGoal;b[0]===Symbol["for"]("react.memo_cache_sentinel")?(a=h._(/*BTDS*/"__JHASH__3Y3KCR1pa15__JHASH__"),b[0]=a):a=b[0];a=a;var f;b[1]===Symbol["for"]("react.memo_cache_sentinel")?(f=[c("lwiCometObjectiveReducer")],b[1]=f):f=b[1];var g=c("useLWIReducers")(f);b[2]===Symbol["for"]("react.memo_cache_sentinel")?(f=h._(/*BTDS*/"__JHASH__3friqJElG-j__JHASH__"),b[2]=f):f=b[2];var i;b[3]===Symbol["for"]("react.memo_cache_sentinel")?(i=[],b[3]=i):i=b[3];b[4]===Symbol["for"]("react.memo_cache_sentinel")?(f={businessGoal:"SALES",description:f,goal:"GET_LEADS",icon:d("LWICometObjectiveSectionItemUtils").GOAL_ICON_MAP.GET_LEADS,inferredGoal:null,metadataList:i,objective:"LEAD_GENERATION",offsiteCustomEvent:null,title:h._(/*BTDS*/"__JHASH__LmCeGteABuk__JHASH__")},b[4]=f):f=b[4];var k=f;b[5]!==g||b[6]!==e?(i=function(){g({goal:"GET_LEADS",objective:"LEAD_GENERATION",offsiteCustomEvent:null,type:"objective_reducer.update_objective"},{side:"user_action"}),e&&(e&&e(k))},b[5]=g,b[6]=e,b[7]=i):i=b[7];f=i;b[8]===Symbol["for"]("react.memo_cache_sentinel")?(i="x14vqqas x1n2onr6 xh8yej3 x1vjfegm",b[8]=i):i=b[8];var l;b[9]===Symbol["for"]("react.memo_cache_sentinel")?(l=h._(/*BTDS*/"__JHASH__XvpNm8sSAc9__JHASH__",[h._implicitParam("=m1",j.jsx("strong",{children:h._(/*BTDS*/"__JHASH__qIoNhxTfHTG__JHASH__")}))]),b[9]=l):l=b[9];b[10]!==f?(l=j.jsx(c("GeoGuidanceCardFooter.react"),{children:j.jsx(c("GeoLink.react"),{onClick:f,children:l})}),b[10]=f,b[11]=l):l=b[11];b[12]===Symbol["for"]("react.memo_cache_sentinel")?(f=j.jsx(c("GeoGuidanceCardHeader.react"),{heading:a}),b[12]=f):f=b[12];b[13]===Symbol["for"]("react.memo_cache_sentinel")?(a=j.jsx(c("GeoGuidanceCardContent.react"),{children:h._(/*BTDS*/"__JHASH__IInP0pnbeNC__JHASH__")}),b[13]=a):a=b[13];b[14]!==l?(i=j.jsx("div",{className:i,children:j.jsx(c("GeoCollapsibleGuidanceCard.react"),{footer:l,header:f,isInitiallyExpanded:!0,status:"recommendation",children:a})}),b[14]=l,b[15]=i):i=b[15];return i}g["default"]=a}),226);
-----
LWICometLeadGenUpsellMidAdCreationGuidance.react",["fbt","GeoCollapsibleGuidanceCard.react","GeoGuidanceCardContent.react","GeoGuidanceCardFooter.react","GeoGuidanceCardHeader.react","GeoLink.react","LWICometObjectiveSectionItemUtils","lwiCometObjectiveReducer","react","useLWIReducers"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var b=a.onSaveGoal;a=h._(/*BTDS*/"Try a Get more leads ad to help improve results");var e=c("useLWIReducers")([c("lwiCometObjectiveReducer")]),f={businessGoal:"SALES",description:h._(/*BTDS*/"Use a form to collect contact information from potential customers"),goal:"GET_LEADS",icon:d("LWICometObjectiveSectionItemUtils").GOAL_ICON_MAP.GET_LEADS,inferredGoal:null,metadataList:[],objective:"LEAD_GENERATION",offsiteCustomEvent:null,title:h._(/*BTDS*/"Get more leads")},g=function(){e({goal:"GET_LEADS",objective:"LEAD_GENERATION",offsiteCustomEvent:null,type:"objective_reducer.update_objective"},{side:"user_action"}),b&&(b&&b(f))};return j.jsx("div",{className:"x14vqqas x1n2onr6 xh8yej3 x1vjfegm",children:j.jsx(c("GeoCollapsibleGuidanceCard.react"),{footer:j.jsx(c("GeoGuidanceCardFooter.react"),{children:j.jsx(c("GeoLink.react"),{onClick:g,children:h._(/*BTDS*/"u0932u0915u094du0937u094du092f u0915u094b {=m1} u092eu0947u0902 u092cu0926u0932u0947u0902",[h._implicitParam("=m1",j.jsx("strong",{children:h._(/*BTDS*/"u0914u0930 u0932u0940u0921 u092au093eu090fu0901")}))])})}),header:j.jsx(c("GeoGuidanceCardHeader.react"),{heading:a}),isInitiallyExpanded:!0,status:"recommendation",children:j.jsx(c("GeoGuidanceCardContent.react"),{children:h._(/*BTDS*/"Based on your ad description we recommend creating an ad to Get more leads to help you reach people who are likely to be respond to your business.")})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BizKitAdsSliderLWIBodyNo3D.react",["BizKitAdsSliderAdsManagerPostPreview.react","BizKitAdsSliderCreateAdCTA.react","BizKitAdsSliderCurrentPerformance.react","BizKitAdsSliderLWIBodyNo3D_adAccount_predictedPerformance.graphql","BizKitAdsSliderLWIBodyNo3D_lwiAdsSliderV3.graphql","BizKitAdsSliderLWIBudgetSlider.react","BizKitAdsSliderLWIGoalPicker.react","BizKitAdsSliderLWIPredictedPerformance.react","CometRelay","GeoFlexbox.react","LWICometGenericEventsLoggerLite","LWICometObjectiveSectionItemUtils","geoMargin","react","useBizKitAdsSliderImpressionLogging"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react"));e=j;var l=e.useMemo,m=e.useState,n=h!==void 0?h:h=b("BizKitAdsSliderLWIBodyNo3D_lwiAdsSliderV3.graphql"),o=i!==void 0?i:i=b("BizKitAdsSliderLWIBodyNo3D_adAccount_predictedPerformance.graphql");function a(a){var b=a.adAccountKey,e=a.adsSliderEntryPoint,f=a.lwiAdsSliderKey,g=a.lwiEntryPoint;g=g===void 0?"bizweb_home_ads_slider":g;var h=a.onChangeGoal,i=a.onClickCreateAd,j=a.onSwitchPost,l=a.onUpdateBudget,q=a.pageID;a=d("CometRelay").useFragment(o,b);b=d("CometRelay").useFragment(n,f);f=p(b);var r=f[0];f=f[1];f=m(f);var s=f[0],t=f[1];f=m(Number(b==null?void 0:(f=b.budget)==null?void 0:(f=f.default_daily_budget)==null?void 0:f.offset_amount));var u=f[0],v=f[1];c("useBizKitAdsSliderImpressionLogging")(e,q,b==null?void 0:(f=b.tofu_entity)==null?void 0:f.entity_id);if(q==null||b==null||a==null||r.length===0||b.tofu_entity==null)return null;f=j!=null?{igAssetID:(f=b.connected_instagram_account)==null?void 0:f.ig_asset_id,onSwitchPost:function(a){j(a,null,s==null?void 0:s.goal,e)},pageID:q}:void 0;return k.jsxs(c("GeoFlexbox.react"),{children:[k.jsxs(c("GeoFlexbox.react"),{basis:"0",direction:"column",grow:2,children:[k.jsx(c("BizKitAdsSliderLWIGoalPicker.react"),{adsLWIGoalList:r,selectedAdsLWIGoal:s,setAdsLWIGoal:function(a){t(a),h==null?void 0:h(a),d("LWICometGenericEventsLoggerLite").log({entry_point:e.toString(),event:"ads_slider_change_objective",extra_data:{newObjective:a},page_id:q})}}),k.jsx(c("GeoFlexbox.react"),{grow:1,xstyle:c("geoMargin").top24,children:k.jsx(c("BizKitAdsSliderLWIBudgetSlider.react"),{adsSliderEntryPoint:e,budget:b.budget,currency:(r=a.currency_code_enum)!=null?r:"USD",selectedBudget:u,setSelectedBudget:function(a){v(a),l==null?void 0:l(a)}})}),k.jsx(c("GeoFlexbox.react"),{justifyContent:"end",xstyle:c("geoMargin").top24,children:k.jsx(c("BizKitAdsSliderCreateAdCTA.react"),{adAccountID:a==null?void 0:a.legacy_account_id,adsLWIGoal:s==null?void 0:s.goal,adsSliderEntryPointType:e,dailyBudget:u,entrypoint:g,onClick:i,pageID:q,postID:b.tofu_entity.entity_id})})]},"left"),k.jsx(c("GeoFlexbox.react"),{direction:"column",xstyle:c("geoMargin").horiz16},"middle"),k.jsxs(c("GeoFlexbox.react"),{basis:"0",direction:"column",grow:3,children:[k.jsx(c("BizKitAdsSliderAdsManagerPostPreview.react"),{adsSliderEntryPoint:e,fragmentKey:b.tofu_entity,pageID:q,postSwitcherOptions:f}),k.jsxs(c("GeoFlexbox.react"),{children:[k.jsx(c("GeoFlexbox.react"),{basis:"0",grow:1,xstyle:c("geoMargin").end8,children:k.jsx(c("BizKitAdsSliderLWIPredictedPerformance.react"),{dailyBudget:u,entryPoint:"bizweb_home_v3",fragmentKey:a,goal:s==null?void 0:s.goal,inlineResults:!1,pageID:q,postID:b.tofu_entity.entity_id})}),k.jsx(c("GeoFlexbox.react"),{basis:"0",grow:1,xstyle:c("geoMargin").start8,children:k.jsx(c("BizKitAdsSliderCurrentPerformance.react"),{isLWI:!0,pageID:q,tofuEntityKey:b.tofu_entity})})]})]},"right")]})}a.displayName=a.name+" [from "+f.id+"]";function p(a){return l(function(){var b;return[((b=a==null?void 0:a.eligible_lwi_objectives)!=null?b:[]).map(function(a){return q(a)}).filter(Boolean),q(a==null?void 0:a.default_lwi_objective)]},[a==null?void 0:a.eligible_lwi_objectives,a==null?void 0:a.default_lwi_objective])}function q(a){if(a==null)return null;var b=a.goal,c=a.title;a=a.description;if(b==null||c==null)return null;var e=d("LWICometObjectiveSectionItemUtils").GOAL_ICON_MAP[b];return e==null?null:{description:a,goal:b,icon:e,title:c}}g["default"]=a}),98);
-----
BizKitAdsSliderLWIBody.react",["BizKitAdsSliderAdsManagerBudgetSlider.react","BizKitAdsSliderAdsManagerCurrentPerformance.react","BizKitAdsSliderAdsManagerPostPreview.react","BizKitAdsSliderCreateAdCTA.react","BizKitAdsSliderLWIBody_adAccount_predictedPerformance.graphql","BizKitAdsSliderLWIBody_lwiAdsSliderV3.graphql","BizKitAdsSliderLWIGoalPicker.react","CometRelay","GeoFlexbox.react","LWICometObjectiveSectionItemUtils","SYDAdsSliderWidgetPredictedPerformance.react","geoMargin","getAdsSliderOptimizationGoal","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k=j||(j=d("react"));e=j;var l=e.useMemo,m=e.useState,n=h!==void 0?h:h=b("BizKitAdsSliderLWIBody_lwiAdsSliderV3.graphql"),o=i!==void 0?i:i=b("BizKitAdsSliderLWIBody_adAccount_predictedPerformance.graphql");function a(a){var b,e=a.adAccountKey,f=a.adsSliderEntryPoint,g=a.lwiAdsSliderKey,h=a.lwiEntryPoint;h=h===void 0?"bizweb_home_ads_slider":h;var i=a.onChangeGoal,j=a.onClickCreateAd,l=a.onSwitchPost,q=a.onUpdateBudget;a=a.pageID;e=d("CometRelay").useFragment(o,e);g=d("CometRelay").useFragment(n,g);var r=p(g),s=r[0];r=r[1];r=m(r);var t=r[0],u=r[1],v=(r=t==null?void 0:t.objective)!=null?r:"LINK_CLICKS";r=c("getAdsSliderOptimizationGoal")(v,null);b=m(Number(g==null?void 0:(b=g.budget)==null?void 0:(b=b.default_daily_budget)==null?void 0:b.offset_amount));var w=b[0],x=b[1];if(a==null||g==null||e==null||s.length===0||g.tofu_entity==null)return null;b=l!=null?{igAssetID:(b=g.connected_instagram_account)==null?void 0:b.ig_asset_id,onSwitchPost:function(a){l(a,v)},pageID:a}:void 0;return k.jsxs(c("GeoFlexbox.react"),{children:[k.jsxs(c("GeoFlexbox.react"),{basis:"0",direction:"column",grow:2,children:[k.jsx(c("BizKitAdsSliderLWIGoalPicker.react"),{adsLWIGoalList:s,selectedAdsLWIGoal:t,setAdsLWIGoal:function(a){u(a),i==null?void 0:i(a)}}),k.jsx(c("GeoFlexbox.react"),{grow:1,xstyle:c("geoMargin").top24,children:k.jsx(c("BizKitAdsSliderAdsManagerBudgetSlider.react"),{budget:g.budget,currency:(s=e.currency_code_enum)!=null?s:"USD",selectedBudget:w,setSelectedBudget:function(a){x(a),q==null?void 0:q(a)}})}),k.jsx(c("GeoFlexbox.react"),{justifyContent:"end",xstyle:c("geoMargin").top24,children:k.jsx(c("BizKitAdsSliderCreateAdCTA.react"),{adAccountID:e==null?void 0:e.legacy_account_id,adsLWIGoal:t==null?void 0:t.goal,adsSliderEntryPointType:f,dailyBudget:w,entrypoint:h,onClick:j,pageID:a,postID:g.tofu_entity.entity_id})})]},"left"),k.jsx(c("GeoFlexbox.react"),{direction:"column",xstyle:c("geoMargin").horiz16},"middle"),k.jsxs(c("GeoFlexbox.react"),{basis:"0",direction:"column",grow:3,children:[k.jsx(c("BizKitAdsSliderAdsManagerPostPreview.react"),{fragmentKey:g.tofu_entity,postSwitcherOptions:b}),k.jsxs(c("GeoFlexbox.react"),{children:[k.jsx(c("GeoFlexbox.react"),{basis:"0",grow:1,xstyle:c("geoMargin").end8,children:k.jsx(c("SYDAdsSliderWidgetPredictedPerformance.react"),{dailyBudget:w,fragmentKey:e,initialObjective:v,inlineResults:!1,optimizationGoal:r,pageID:a,postID:g.tofu_entity.entity_id})}),k.jsx(c("GeoFlexbox.react"),{basis:"0",grow:1,xstyle:c("geoMargin").start8,children:k.jsx(c("BizKitAdsSliderAdsManagerCurrentPerformance.react"),{pageID:a,tofuEntityKey:g.tofu_entity})})]})]},"right")]})}a.displayName=a.name+" [from "+f.id+"]";function p(a){return l(function(){var b;return[((b=a==null?void 0:a.eligible_lwi_objectives)!=null?b:[]).map(function(a){return q(a)}).filter(Boolean),q(a==null?void 0:a.default_lwi_objective)]},[a==null?void 0:a.default_lwi_objective,a==null?void 0:a.eligible_lwi_objectives])}function q(a){if(a==null)return null;var b=a.goal,c=a.title,e=a.description;if(b==null||c==null)return null;var f=d("LWICometObjectiveSectionItemUtils").GOAL_ICON_MAP[b];return f==null?null:{description:e,goal:b,icon:f,objective:(e=a.objective)!=null?e:"LINK_CLICKS",title:c}}g["default"]=a}),98);
-----
BizKitAdsSliderLWIGoalPicker.react",["fbt","GeoFlexbox.react","GeoMediaItem.react","GeoSelector.react","GeoSelectorItem.react","Image.react","LWICometObjectiveSectionItemUtils","LWIGoalCategorizationUtils","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react");function a(a){var b=a.adsLWIGoalList,e=a.selectedAdsLWIGoal,f=a.setAdsLWIGoal;return j.jsx(c("GeoFlexbox.react"),{direction:"column",children:j.jsx(c("GeoSelector.react"),{"data-testid":void 0,displayValue:function(){return e==null?void 0:e.title},label:h._("Ad goal"),media:(e==null?void 0:e.goal)!=null?j.jsx(c("Image.react"),{src:d("LWIGoalCategorizationUtils").getBusinessGoalIconForGoal(e==null?void 0:e.goal),style:{height:"40px",scale:.6,transform:"translateY(-32px) translateX(-32px)",width:"40px"}}):null,onChange:function(a){return f(a)},ratio:"circle",value:e,children:b.map(function(a){var b=a.goal,e=a.title,g=a.description;if(b==null||e==null)return null;var h=d("LWICometObjectiveSectionItemUtils").GOAL_ICON_MAP[b];return h==null?null:j.jsx(c("GeoSelectorItem.react"),{"data-testid":void 0,description:g,label:e,media:j.jsx(c("GeoMediaItem.react"),{fit:"contain",hasMediaBackground:!0,media:j.jsx(c("Image.react"),{src:d("LWIGoalCategorizationUtils").getBusinessGoalIconForGoal(b)}),ratio:"square",size:48}),onChange:function(){f(a)},value:a},b)})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
BizWebInsightsAdsSliderContainer.react",["BizKitAdsSliderAdsManagerBudgetSlider.react","BizKitAdsSliderAdsManagerCurrentPerformance.react","BizKitAdsSliderAdsManagerPostPreview.react","BizKitAdsSliderCreateAdCTA.react","BizKitAdsSliderLWIGoalPicker.react","BizWebInsightsAdsSliderContainer_adAccount.graphql","BizWebInsightsAdsSliderContainer_lwiAdsSliderV3.graphql","BizWebInsightsAdsSliderContainer_topContent.graphql","CometRelay","GeoFlexbox.react","LWICometObjectiveSectionItemUtils","SYDAdsSliderWidgetPredictedPerformance.react","geoMargin","getAdsSliderOptimizationGoal","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l=k||(k=d("react"));e=k;var m=e.useMemo,n=e.useState,o=h!==void 0?h:h=b("BizWebInsightsAdsSliderContainer_lwiAdsSliderV3.graphql"),p=i!==void 0?i:i=b("BizWebInsightsAdsSliderContainer_topContent.graphql"),q=j!==void 0?j:j=b("BizWebInsightsAdsSliderContainer_adAccount.graphql");function a(a){var b,e=a.adAccountKey,f=a.adsSliderEntryPoint,g=a.lwiAdsSliderKey,h=a.lwiEntryPoint;h=h===void 0?"bizweb_home_ads_slider":h;var i=a.onChangeGoal,j=a.onClickCreateAd,k=a.onUpdateBudget,m=a.pageID;a=a.topContentKey;e=d("CometRelay").useFragment(q,e);g=d("CometRelay").useFragment(o,g);a=d("CometRelay").useFragment(p,a);var s=r(g),t=s[0];s=s[1];s=n(s);var u=s[0],v=s[1];s=(s=u==null?void 0:u.objective)!=null?s:"LINK_CLICKS";var w=c("getAdsSliderOptimizationGoal")(s,null);b=n(Number(g==null?void 0:(b=g.budget)==null?void 0:(b=b.default_daily_budget)==null?void 0:b.offset_amount));var x=b[0],y=b[1];return m==null||g==null||e==null||t.length===0||a==null?null:l.jsxs(c("GeoFlexbox.react"),{children:[l.jsxs(c("GeoFlexbox.react"),{basis:"0",direction:"column",grow:3,children:[l.jsx(c("BizKitAdsSliderAdsManagerPostPreview.react"),{fragmentKey:a}),l.jsxs(c("GeoFlexbox.react"),{children:[l.jsx(c("GeoFlexbox.react"),{basis:"0",grow:1,xstyle:c("geoMargin").end8,children:l.jsx(c("SYDAdsSliderWidgetPredictedPerformance.react"),{dailyBudget:x,fragmentKey:e,initialObjective:s,inlineResults:!1,optimizationGoal:w,pageID:m,postID:a.entity_id})}),l.jsx(c("GeoFlexbox.react"),{basis:"0",grow:1,xstyle:c("geoMargin").start8,children:l.jsx(c("BizKitAdsSliderAdsManagerCurrentPerformance.react"),{pageID:m,tofuEntityKey:a})})]})]},"right"),l.jsx(c("GeoFlexbox.react"),{direction:"column",xstyle:c("geoMargin").horiz16},"middle"),l.jsxs(c("GeoFlexbox.react"),{basis:"0",direction:"column",grow:2,children:[l.jsx(c("BizKitAdsSliderLWIGoalPicker.react"),{adsLWIGoalList:t,selectedAdsLWIGoal:u,setAdsLWIGoal:function(a){v(a),i==null?void 0:i(a)}}),l.jsx(c("GeoFlexbox.react"),{grow:1,xstyle:c("geoMargin").top24,children:l.jsx(c("BizKitAdsSliderAdsManagerBudgetSlider.react"),{budget:g.budget,currency:(b=e.currency_code_enum)!=null?b:"USD",selectedBudget:x,setSelectedBudget:function(a){y(a),k==null?void 0:k(a)}})}),l.jsx(c("GeoFlexbox.react"),{justifyContent:"end",xstyle:c("geoMargin").top24,children:l.jsx(c("BizKitAdsSliderCreateAdCTA.react"),{adAccountID:e==null?void 0:e.legacy_account_id,adsLWIGoal:u==null?void 0:u.goal,adsSliderEntryPointType:f,dailyBudget:x,entrypoint:h,onClick:j,pageID:m,postID:a.entity_id})})]},"left")]})}a.displayName=a.name+" [from "+f.id+"]";function r(a){return m(function(){var b;return[((b=a==null?void 0:a.eligible_lwi_objectives)!=null?b:[]).map(function(a){return s(a)}).filter(Boolean),s(a==null?void 0:a.default_lwi_objective)]},[a==null?void 0:a.default_lwi_objective,a==null?void 0:a.eligible_lwi_objectives])}function s(a){if(a==null)return null;var b=a.goal,c=a.title,e=a.description;if(b==null||c==null)return null;var f=d("LWICometObjectiveSectionItemUtils").GOAL_ICON_MAP[b];return f==null?null:{description:e,goal:b,icon:f,objective:(e=a.objective)!=null?e:"LINK_CLICKS",title:c}}g["default"]=a}),98);
-----
LWICometObjectiveSection_lwi.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"LWICometObjectiveSection_lwi",selections:[{args:null,kind:"FragmentSpread",name:"LWICometObjectiveContentInner_lwi"}],type:"LWIAPI",abstractKey:null};e.exports=a}),null);
-----
useLWICometObjectiveSpecList",["CometRelay","LWICometObjectiveSectionItemUtils","compactArray","react","recoverableViolation","useLWICometObjectiveSpecListFragment_lwiAPI.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=(i||d("react")).useMemo,k=h!==void 0?h:h=b("useLWICometObjectiveSpecListFragment_lwiAPI.graphql");function a(a,b){var e;b=d("CometRelay").useFragment(k,b);var f=(e=b==null?void 0:(e=b.boosted_component)==null?void 0:(e=e.options)==null?void 0:e.objectives_with_eligibility_data)!=null?e:b==null?void 0:(e=b.boosted_component)==null?void 0:(b=e.options)==null?void 0:b.eligible_objectives;return j(function(){return f==null?null:c("compactArray")(f.map(function(b){var e,f,g=b.business_goal,h=b.description,i=b.eligibility_data,j=b.goal,k=b.inferred_goal,m=b.metadata_list,n=b.title;e=(e=b.objective)!=null?e:m==null?void 0:(e=m[0])==null?void 0:e.objective;if(e==null||n==null||j==null){c("recoverableViolation")("objective or title or goal field of an eligible objective is null","pages_lwi");return null}f=(f=a==null?void 0:a[e])!=null?f:d("LWICometObjectiveSectionItemUtils").GOAL_ICON_MAP[j];if(f==null){c("recoverableViolation")("goal: "+j+" does not have a corresponding icon in configuration","pages_lwi");return null}b=(b=b.offsite_custom_event)!=null?b:m==null?void 0:(b=m[0])==null?void 0:b.offsite_custom_event;i=(i==null?void 0:i.is_eligible)!==!1;return{businessGoal:g,description:h,goal:j,icon:f,inferredGoal:k,isEligible:i,metadataList:l(m),objective:e,offsiteCustomEvent:b,title:n}}))},[f,a])}function l(a){return c("compactArray")(a.map(function(a){var b=a.objective,d=a.offsite_custom_event,e=a.selector_description;a=a.selector_title;if(e==null||b==null||a==null){c("recoverableViolation")("Metadata objective or description or title cannot be null.","pages_lwi");return null}return{objective:b,offsiteCustomEvent:d,selectorDescription:e,selectorTitle:a}}))}g.boostedComponentFragment=k;g.useLWICometObjectiveSpecList=a}),98);
-----
LWICometStoryCreationView.react",["fbt","CometRelay","LWICometAdAccountPicker.react","LWICometAdPreviewRightColumnSection.react","LWICometAdvantagePlacementsUtils","LWICometAudienceV2Section.react","LWICometCTASection.react","LWICometCTAUtils","LWICometDurationBudgetSection.react","LWICometEstimationSection.react","LWICometExpandableSectionWrapper.react","LWICometGenericCreationNotices.react","LWICometMessagingAppsSectionConstants","LWICometObjectiveSection.react","LWICometPaymentMethodSection.react","LWICometPaymentSummarySection.react","LWICometPixelSection.react","LWICometPlacementsSection.react","LWICometProductTwoColumnLayoutContainer.react","LWICometRegulatedCategoriesQuerySection.react","LWICometStoryCreationView_boostedComponent.graphql","LWICometStoryCreationView_ctwaInfo.graphql","LWICometStoryCreationView_lwi.graphql","LWICometStoryCreationView_page.graphql","LWICometStoryCreationView_viewer.graphql","LWICometSubmissionSection.react","cr:7410","deferredLoadComponent","lwiCometUnifiedCreationReducer","react","requireDeferred","unrecoverableViolation","useLWIReducers","useMigrateURLParamsToRouteParams","vulture","withLWICometSpecPart"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m,n,o=n||d("react"),p=c("deferredLoadComponent")(c("requireDeferred")("LWICometMessagingAppsSection.react").__setRef("LWICometStoryCreationView.react"));function a(a){var e=a.boostedComponent,f=a.boostedComponentInput,g=a.ctwaInfo,n=a.lwi,q=a.page,r=a.rightWash;r=r===void 0?!1:r;var s=a.title,t=a.viewer,u=a.adgroupSpecs,v=a.objective,w=a.selectedAdgroupID;a=a.selectedGoal;c("vulture")("13GiSxjsVLo");var x=c("useLWIReducers")([c("lwiCometUnifiedCreationReducer")]);e=d("CometRelay").useFragment(i!==void 0?i:i=b("LWICometStoryCreationView_boostedComponent.graphql"),e);q=d("CometRelay").useFragment(j!==void 0?j:j=b("LWICometStoryCreationView_page.graphql"),q);n=d("CometRelay").useFragment(k!==void 0?k:k=b("LWICometStoryCreationView_lwi.graphql"),n);t=d("CometRelay").useFragment(l!==void 0?l:l=b("LWICometStoryCreationView_viewer.graphql"),t);g=d("CometRelay").useFragment(m!==void 0?m:m=b("LWICometStoryCreationView_ctwaInfo.graphql"),g);var y=u[w];u=u[w].creative;w=d("LWICometCTAUtils").getLWICometCTA(u,y==null?void 0:y.assetFeedSpecPlus);y=w==null?void 0:w.type;w=d("LWICometMessagingAppsSectionConstants").isWhatsAppNumberBusiness(q==null?void 0:q.connected_whatsapp_number_type);a=d("LWICometMessagingAppsSectionConstants").showUnifiedCreationForPPE(a,null,d("LWICometMessagingAppsSectionConstants").isMessagingAppCTAType(y),v,w);w=(v==="MESSAGES"||a)&&d("LWICometMessagingAppsSectionConstants").isMessagingAppCTAType(y);v=e==null?void 0:e.options;if(!v)throw c("unrecoverableViolation")("options should not be empty or else none of the LWI sections can be rendered","pages_lwi");a=c("useMigrateURLParamsToRouteParams")();y=a.platform;a=d("LWICometAdvantagePlacementsUtils").getIsEligibleForAdvantagePlacements(u);return o.jsx(c("LWICometProductTwoColumnLayoutContainer.react"),{footer:o.jsx(c("LWICometSubmissionSection.react"),{}),headerAuxiliary:o.jsx(c("LWICometAdAccountPicker.react"),{useTwoColumnLayout:!0}),leftContent:[o.jsx(c("LWICometObjectiveSection.react"),{boostedComponentInput:f,eligibleForGoalCard:!0,objectiveSectionRef:q}),o.jsx(c("LWICometCTASection.react"),{boostedComponentInput:f,showHeader:!0,showMessageObjectiveUpsell:!0,showWhatsAppLinkErrorNotice:!0}),o.jsx(o.Fragment,{children:w?o.jsx(p,{boostedComponentInput:f,boostedComponentRef:e,ctwaInfoRef:g,lwiRef:n,macrosRef:t,onCleanUp:function(){x({type:"unified_creation_reducer.clean_up_unified_creation_spec"})},pageRef:q,productFlow:"boost_post_create_flow"}):null}),o.jsx(c("LWICometRegulatedCategoriesQuerySection.react"),{optionsRef:v}),o.jsx(c("LWICometAudienceV2Section.react"),{boostedComponentInput:f}),o.jsx(c("LWICometDurationBudgetSection.react"),{boostedComponent:e,boostedComponentInput:f,fetchRecommendation:!0},"LWICometDurationBudgetSection"),a?o.jsx(c("LWICometPlacementsSection.react"),{options:v}):null,o.jsx(c("LWICometExpandableSectionWrapper.react"),{children:[a?null:o.jsx(c("LWICometPlacementsSection.react"),{options:v},"placements"),o.jsx(c("LWICometPixelSection.react"),{},"pixel"),o.jsx(c("LWICometPaymentMethodSection.react"),{},"payment")].filter(Boolean)})].filter(Boolean),rightContent:[o.jsx(c("LWICometAdPreviewRightColumnSection.react"),{useWashBackground:r}),o.jsx(c("LWICometEstimationSection.react"),{useWashBackground:r}),o.jsx(c("LWICometPaymentSummarySection.react"),{useWashBackground:r})],title:s,topContent:[b("cr:7410")?[o.jsx(b("cr:7410"),{leadSource:y===String("INSTAGRAM")?"boosted_ig_story":"boosted_fb_story"})]:[],o.jsx(c("LWICometGenericCreationNotices.react"),{boostedComponent:e,boostedComponentProduct:f.product,pageID:f.page_id,similarAdNoticeHeader:h._("__JHASH__Aixj3UnHVmv__JHASH__")})].filter(Boolean),useWashRightColumn:r})}a.displayName=a.name+" [from "+f.id+"]";e=c("withLWICometSpecPart")(a,function(a){return{adgroupSpecs:a.adgroupSpecs,objective:a.objective,selectedAdgroupID:a.selectedAdgroupID,selectedGoal:a.goal}});g["default"]=e}),226);
-----
LWICometStoryCreationView_page.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"LWICometStoryCreationView_page",selections:[{args:null,kind:"FragmentSpread",name:"LWICometObjectiveSection_page"},{args:null,kind:"FragmentSpread",name:"LWICometMessagingAppsSection_page"},{alias:null,args:null,kind:"ScalarField",name:"connected_whatsapp_number_type",storageKey:null}],type:"Page",abstractKey:null};e.exports=a}),null);
-----
LWICometFBInstagramMediaCreationView.react",["fbt","CometRelay","LWICometACOToggle.react","LWICometAdAccountPicker.react","LWICometAdPreviewCTAUtils","LWICometAdPreviewRightColumnSection.react","LWICometAdvantagePlacementsUtils","LWICometAudienceV2Section.react","LWICometCTAUtils","LWICometDraftDialogUtils","LWICometDurationBudgetSection.react","LWICometErrorBoundary.react","LWICometEstimationSection.react","LWICometExpandableSectionWrapper.react","LWICometFBInstagramMediaCreationView_adAccountQEValues.graphql","LWICometFBInstagramMediaCreationView_boostedComponent.graphql","LWICometFBInstagramMediaCreationView_ctaOptions.graphql","LWICometFBInstagramMediaCreationView_ctwaInfo.graphql","LWICometFBInstagramMediaCreationView_lwi.graphql","LWICometFBInstagramMediaCreationView_page.graphql","LWICometFBInstagramMediaCreationView_viewer.graphql","LWICometGenericCreationNotices.react","LWICometMessagingAppsSectionConstants","LWICometMutationUtils","LWICometObjectiveSection.react","LWICometOptionalLoggingDataContext","LWICometPaymentMethodSection.react","LWICometPaymentSummarySection.react","LWICometPlacementsSection.react","LWICometProductTwoColumnLayoutContainer.react","LWICometRegulatedCategoriesQuerySection.react","LWICometSimplifiedCTASection.react","LWICometSubmissionSection.react","LWICometUnifiedDurationBudgetSection.react","RelayHooks","cr:7410","deferredLoadComponent","lwiCometUnifiedCreationReducer","react","recoverableViolation","requireDeferred","unrecoverableViolation","useDebouncedValue","useLWICometEligibleCTAs","useLWILoggerContext","useLWIReducers","vulture","withLWICometSpecPart"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m,n,o,p,q=p||(p=d("react"));e=p;var r=e.useCallback,s=e.useContext,t=e.useEffect,u=e.useState,v=e.useTransition,w=c("requireDeferred")("LWICometUnifiedLoggingUtil").__setRef("LWICometFBInstagramMediaCreationView.react"),aa=c("deferredLoadComponent")(c("requireDeferred")("LWICometMessagingAppsSection.react").__setRef("LWICometFBInstagramMediaCreationView.react")),ba=200,ca=i!==void 0?i:i=b("LWICometFBInstagramMediaCreationView_ctaOptions.graphql"),da=j!==void 0?j:j=b("LWICometFBInstagramMediaCreationView_adAccountQEValues.graphql");function a(a){var e=a.adAccountQEValues,f=a.boostedComponent,g=a.boostedComponentInput,i=a.ctaOptions$key,j=a.ctwaInfo,p=a.lwi,x=a.page,y=a.rightWash;y=y===void 0?!1:y;var ea=a.title,z=a.viewer,A=a.adAccountID,B=a.assetFeedSpecPlus,C=a.budgetType,D=a.creative,E=a.durationInDays,F=a.objective,fa=a.selectedBudget,G=a.selectedGoal,H=a.specContext;a=a.zeroOutcomesDailyBudget;c("vulture")("3RglSmFUCXj");f=d("CometRelay").useFragment(k!==void 0?k:k=b("LWICometFBInstagramMediaCreationView_boostedComponent.graphql"),f);var I=d("CometRelay").useFragment(l!==void 0?l:l=b("LWICometFBInstagramMediaCreationView_page.graphql"),x);j=d("CometRelay").useFragment(m!==void 0?m:m=b("LWICometFBInstagramMediaCreationView_ctwaInfo.graphql"),j);var ga=d("CometRelay").useFragment(n!==void 0?n:n=b("LWICometFBInstagramMediaCreationView_lwi.graphql"),p);z=d("CometRelay").useFragment(o!==void 0?o:o=b("LWICometFBInstagramMediaCreationView_viewer.graphql"),z);var J=d("RelayHooks").useRelayEnvironment(),K=c("useLWILoggerContext")(),L=s(c("LWICometOptionalLoggingDataContext")),M=K.flowID,N=K.pageID,O=K.product,P=K.targetID,Q=f==null?void 0:f.options;if(!Q)throw c("unrecoverableViolation")("options should not be empty or else none of the LWI sections can be rendered","pages_lwi");var R=f==null?void 0:f.context_spec,S=d("CometRelay").useRefetchableFragment(ca,i),T=S[0],U=S[1];S=(S=R==null?void 0:(S=R.post)==null?void 0:S.contains_instagram_video)!=null?S:!1;var V=u(S),W=V[0];V=V[1];R=(R=R==null?void 0:(R=R.post)==null?void 0:R.is_scheduled_post)!=null?R:!1;var ha=c("useLWIReducers")([c("lwiCometUnifiedCreationReducer")]);B=(B=d("LWICometCTAUtils").getLWICometCTA(D,B))==null?void 0:B.type;var ia=r(function(a,b){var e="UNPUBLISHED_CONTENT";b=d("LWICometMutationUtils").getCreationMutationData({loggerContext:K,optionalLoggingData:L,spec:a,specHistory:b});b=b.input.creation_spec;d("LWICometDraftDialogUtils").draftMutation({environment:J,existingDraftID:a.draftID,flowID:M,onCompletedCreate:function(){w.onReady(function(b){return b.logWithLoggerAndSpecContext(K,H,{action:"create",context:"ad",creative_spec:JSON.stringify(a.adgroupSpecs),event:"submit_flow",side:"user_action",targeting_spec:JSON.stringify(a.audienceData.targetSpec)})})},onErrorCreate:function(){c("recoverableViolation")("Failed to create draft","pages_lwi")},onErrorUpdate:function(){c("recoverableViolation")("Failed to update draft","pages_lwi")},pageID:N,product:O,spec:b,targetID:P,useCase:e})},[K,L,J,M,N,O,P,H]);T=c("useLWICometEligibleCTAs")(i!=null?T==null?void 0:(T=T.lwi)==null?void 0:(T=T.boosted_component)==null?void 0:T.options:Q);e=d("CometRelay").useRefetchableFragment(da,e);var X=e[0],Y=e[1];e=(X=X==null?void 0:(e=X.lwi)==null?void 0:e.exposeUnifiedBudgetTypesExperiment)!=null?X:"";X=v();var ja=X[0],ka=X[1],Z=r(function(a){ka(function(){Y({adAccountID:a},{fetchPolicy:"store-or-network"})})},[Y]);t(function(){Z(A)},[A,Z]);X=a;a!=null&&(X=C==="DAILY_BUDGET"?a:a*E);a=C!=="DAILY_BUDGET";E=p!=null&&x!=null;C=G==="AUTOMATIC"&&d("LWICometMessagingAppsSectionConstants").ctaOptionsArrayHasMultipleMessagingDestinations(T);p=E&&F==="MESSAGES"&&d("LWICometMessagingAppsSectionConstants").ctaOptionsArrayHasMultipleMessagingDestinations(T)&&d("LWICometMessagingAppsSectionConstants").isMessagingAppCTAType(B);x=v();E=x[0];var $=x[1];F=c("useDebouncedValue")(E,ba)&&E;B=r(function(a){i!=null&&$(function(){U({goal:a.goal,input:g,objective:a.objective},{fetchPolicy:"store-or-network"})})},[g,i,U,$]);x=d("LWICometAdvantagePlacementsUtils").getIsEligibleForAdvantagePlacements(D);return q.jsx(c("LWICometProductTwoColumnLayoutContainer.react"),{footer:q.jsx(c("LWICometSubmissionSection.react"),{disableSubmitButton:W,overrideCommitMutation:R?ia:null}),headerAuxiliary:q.jsx(c("LWICometAdAccountPicker.react"),{useTwoColumnLayout:!0}),leftContent:[q.jsx(c("LWICometObjectiveSection.react"),{boostedComponentInput:g,eligibleForGoalCard:!0,onChangeGoal:B,onSaveGoal:B}),q.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometACOToggleSection",children:q.jsx(c("LWICometACOToggle.react"),{pageRef:I,showAdOptimizationSection:!0})}),q.jsx(q.Fragment,{children:T.length>0&&(G==="AUTOMATIC"||!p)?q.jsx(c("LWICometSimplifiedCTASection.react"),{boostedComponentInput:g,ctaOptions:T,hasConnectedInstagramAccount:(I==null?void 0:I.coalesced_linked_bizlink_instagram_account)!=null,isEligibleForUnifiedCreationMergedCTA:C,isLoading:F,isWhatsAppBusinessNumber:d("LWICometMessagingAppsSectionConstants").isWhatsAppNumberBusiness(I==null?void 0:I.connected_whatsapp_number_type),onChangeGoal:B,shouldShowCTASectionWithOneEligibleCTA:!0,showHeader:!0}):null}),q.jsx(c("LWICometRegulatedCategoriesQuerySection.react"),{optionsRef:Q}),q.jsx(q.Fragment,{children:p?q.jsx(aa,{boostedComponentInput:g,boostedComponentRef:f,ctwaInfoRef:j,lwiRef:ga,macrosRef:z,onCleanUp:function(){return ha({type:"unified_creation_reducer.clean_up_unified_creation_spec"})},pageRef:I,productFlow:"boost_fb_instagram_media_create_flow"}):null}),q.jsx(c("LWICometAudienceV2Section.react"),{boostedComponentInput:g}),!ja&&e==="test_selector"?q.jsx(c("LWICometUnifiedDurationBudgetSection.react"),{boostedComponentInput:g}):q.jsx(c("LWICometDurationBudgetSection.react"),{boostedComponent:f,boostedComponentInput:g,disableRunContinuouslyOption:a,fetchRecommendation:!0},"LWICometDurationBudgetSection"),x?q.jsx(c("LWICometPlacementsSection.react"),{options:Q}):null,q.jsx(c("LWICometExpandableSectionWrapper.react"),{children:[x?null:q.jsx(c("LWICometPlacementsSection.react"),{options:Q},"placements"),q.jsx(c("LWICometPaymentMethodSection.react"),{},"payment")].filter(Boolean)})].filter(Boolean),rightContent:[q.jsx(c("LWICometAdPreviewRightColumnSection.react"),{getPreviewCtaValue:S?void 0:d("LWICometAdPreviewCTAUtils").getDefaultCtaValue,isVideoUploading:W,setIsVideoUploading:V,useWashBackground:y}),q.jsx(c("LWICometEstimationSection.react"),{hideResultsEstimate:X!=null&&fa-----
LiveProducerLiveAdsTabPlaceholder.react",["fbt","LWICometAdPreviewSectionPlaceholder.react","LWICometAudienceSectionPlaceholder.react","LWICometCTASectionPlaceholder.react","LWICometEstimationSectionPlaceholder.react","LWICometExpandableSectionWrapperPlaceholder.react","LWICometObjectiveSectionPlaceholder.react","LWICometPaymentSummarySectionPlaceholder.react","LWICometProductTwoColumnLayout.react","LWICometRightColumnSubmissionSectionPlaceholder.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=i||d("react"),k=h._("__JHASH__PLk9NcJi82s__JHASH__"),l=h._("__JHASH__E9BLBqTnFyy__JHASH__"),m=h._("__JHASH__1ONWmYw6eNx__JHASH__"),n=h._("__JHASH__BDeaeQe42jr__JHASH__");function a(a){a=a.isEditingFlow;a=a===void 0?!1:a;return j.jsx(c("LWICometProductTwoColumnLayout.react"),{footer:null,leftContent:[j.jsx(c("LWICometObjectiveSectionPlaceholder.react"),{}),j.jsx(c("LWICometCTASectionPlaceholder.react"),{}),j.jsx(c("LWICometAudienceSectionPlaceholder.react"),{}),j.jsx(c("LWICometExpandableSectionWrapperPlaceholder.react"),{})],rightContent:[j.jsx(c("LWICometAdPreviewSectionPlaceholder.react"),{}),j.jsx(c("LWICometEstimationSectionPlaceholder.react"),{}),j.jsx(c("LWICometPaymentSummarySectionPlaceholder.react"),{}),j.jsx(c("LWICometRightColumnSubmissionSectionPlaceholder.react"),{buttonLabel:a?n:m})],title:a?l:k})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
LWICometUserPostCreationView.react",["AdIntegrityPrecreateValidationBannerRootWrapper.react","CometRelay","LWICometAdAccountPicker.react","LWICometAdPreviewCTAUtils","LWICometAdPreviewRightColumnSection.react","LWICometAdblockNotice.react","LWICometAudienceV2Section.react","LWICometCTASection.react","LWICometConstants","LWICometDurationBudgetSection.react","LWICometErrorBoundary.react","LWICometEstimationSection.react","LWICometExpandableSectionWrapper.react","LWICometObjectiveSection.react","LWICometPaymentMethodSection.react","LWICometPaymentSummarySection.react","LWICometProductTwoColumnLayoutContainer.react","LWICometRegulatedCategoriesQuerySection.react","LWICometSubmissionSection.react","LWICometUserPostCreationView_boostedComponent.graphql","XCometVanityURLControllerRouteBuilder","cr:7410","gkx","react","unrecoverableViolation","useLWICometContextualDataContext","useLWILoggerContext","vulture"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||(i=d("react")),k=i.useMemo;function a(a){var e=a.boostedComponent,f=a.boostedComponentInput;a=a.title;c("vulture")("5OouewCNCIM");e=d("CometRelay").useFragment(h!==void 0?h:h=b("LWICometUserPostCreationView_boostedComponent.graphql"),e);var g=c("useLWICometContextualDataContext")(),i=e==null?void 0:e.options;if(!i)throw c("unrecoverableViolation")("options should not be empty or else none of the LWI sections can be rendered","pages_lwi");var l=i.eligible_objectives,m=c("useLWILoggerContext")();m=m.pageID;m=c("XCometVanityURLControllerRouteBuilder").buildURL({vanity:m});var n=g.postInfo.postType===d("LWICometConstants").PHOTO_POST_TYPE;g=k(function(){return!n&&l.some(function(a){return a.objective==="LINK_CLICKS"})},[l,n]);return j.jsx(c("LWICometProductTwoColumnLayoutContainer.react"),{footer:j.jsx(c("LWICometSubmissionSection.react"),{adCreationDialogButtonPropsOverride:{buttonLinkOverride:m},hideAdCenterLinkInAdCreationDialog:!0,shouldGoBackOnSuccess:c("gkx")("23530")===!1}),headerAuxiliary:j.jsx(c("LWICometAdAccountPicker.react"),{useTwoColumnLayout:!0}),leftContent:[j.jsx(c("AdIntegrityPrecreateValidationBannerRootWrapper.react"),{callsite:"LWI_WWW"}),j.jsx(c("LWICometAdblockNotice.react"),{}),j.jsx(c("LWICometObjectiveSection.react"),{boostedComponentInput:f,eligibleForGoalCard:!0}),j.jsx(c("LWICometCTASection.react"),{boostedComponentInput:f,hideLinkEditor:g,shouldFilterCallNow:!0,showHeader:!0,showMessageObjectiveUpsell:!0,showWhatsAppLinkErrorNotice:!0}),j.jsx(c("LWICometRegulatedCategoriesQuerySection.react"),{optionsRef:i}),j.jsx(c("LWICometAudienceV2Section.react"),{boostedComponentInput:f}),j.jsx(c("LWICometDurationBudgetSection.react"),{boostedComponent:e,boostedComponentInput:f,fetchRecommendation:!0},"LWICometDurationBudgetSection"),j.jsx(c("LWICometExpandableSectionWrapper.react"),{children:j.jsx(c("LWICometPaymentMethodSection.react"),{})})],rightContent:[j.jsx(c("LWICometAdPreviewRightColumnSection.react"),{getPreviewCtaValue:d("LWICometAdPreviewCTAUtils").getDefaultCtaValue,usePlaceholderWebsite:n}),j.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometEstimationSection",children:j.jsx(c("LWICometEstimationSection.react"),{})}),j.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometPaymentSummarySection",children:j.jsx(c("LWICometPaymentSummarySection.react"),{})})],title:a,topContent:b("cr:7410")?j.jsx(b("cr:7410"),{leadSource:"boosted_user_post"}):void 0})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LWICometEventCreationView.react",["fbt","ix","BizKitAdsGating.entrypointutils","CometRelay","LWICometAdAccountPicker.react","LWICometAdPreviewRightColumnSection.react","LWICometCreativeSection.react","LWICometDurationBudgetSection.react","LWICometErrorBoundary.react","LWICometEstimationSection.react","LWICometEventCreationView_boostedComponent.graphql","LWICometEventCreationView_couponQuery.graphql","LWICometEventCreationView_lwi.graphql","LWICometEventCreationView_page.graphql","LWICometExpandableSectionWrapper.react","LWICometGenericCreationNotices.react","LWICometGenericCreationNoticesV2.react","LWICometObjectiveSection.react","LWICometPaymentMethodSection.react","LWICometPaymentSummarySection.react","LWICometPixelSection.react","LWICometPlacementsSection.react","LWICometProductTwoColumnLayoutContainer.react","LWICometRegulatedCategoriesQuerySection.react","LWICometSubmissionSection.react","LWIOmniAudienceSection.react","cr:7410","deferredLoadComponent","fbicon","gkx","react","requireDeferred","unrecoverableViolation","useLWIBizWebFullScreenGoBack","useLWICometPostsAsCreativesEntrypointDialog","vulture"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l,m,n,o=n||d("react"),p=c("deferredLoadComponent")(c("requireDeferred")("LWICometEventObjectiveEffectSection.react").__setRef("LWICometEventCreationView.react")),q={LINK_CLICKS:d("fbicon")._(i("562221"),20)};function a(a){var e=a.boostedComponent,f=a.boostedComponentInput,g=a.couponQueryRef,i=a.lwi,n=a.page;a=a.title;c("vulture")("7GVJCl1oyr7");e=d("CometRelay").useFragment(j!==void 0?j:j=b("LWICometEventCreationView_boostedComponent.graphql"),e);i=d("CometRelay").useFragment(k!==void 0?k:k=b("LWICometEventCreationView_lwi.graphql"),i);n=d("CometRelay").useFragment(l!==void 0?l:l=b("LWICometEventCreationView_page.graphql"),n);var r=d("CometRelay").useFragment(m!==void 0?m:m=b("LWICometEventCreationView_couponQuery.graphql"),g),s=c("useLWICometPostsAsCreativesEntrypointDialog")(f.page_id);s=s[0];var t=e==null?void 0:e.options;if(!t)throw c("unrecoverableViolation")("options should not be empty or else none of the LWI sections can be rendered","pages_lwi");var u=c("useLWIBizWebFullScreenGoBack")();u=d("BizKitAdsGating.entrypointutils").getIsBizWebAdsExperience()?u:null;var v=c("gkx")("21034");return o.jsx(c("LWICometProductTwoColumnLayoutContainer.react"),{footer:o.jsx(c("LWICometSubmissionSection.react"),{secondaryButton:u!=null?{label:h._("__JHASH__2GIhK5e9fRK__JHASH__"),onPress:u}:void 0}),headerAuxiliary:o.jsx(c("LWICometAdAccountPicker.react"),{useTwoColumnLayout:!0}),leftContent:[o.jsx(c("LWICometObjectiveSection.react"),{boostedComponentInput:f,iconOverride:q},"LWICometObjectiveSection"),o.jsx(p,{boostedComponentInput:f},"LWICometEventObjectiveEffectSectionDeferred"),o.jsx(c("LWICometCreativeSection.react"),{aux:s,lwiRef:i,pageRef:n,showHeadline:!1},"LWICometCreativeSection"),o.jsx(c("LWICometRegulatedCategoriesQuerySection.react"),{optionsRef:t},"LWICometRegulatedCategoriesQuerySection"),o.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometAudienceSection",children:o.jsx(c("LWIOmniAudienceSection.react"),{boostedComponent:e,boostedComponentInput:f})},"LWIOmniAudienceSection"),o.jsx(c("LWICometDurationBudgetSection.react"),{boostedComponent:e,boostedComponentInput:f,fetchRecommendation:!0},"LWICometDurationBudgetSection"),o.jsxs(c("LWICometExpandableSectionWrapper.react"),{children:[o.jsx(c("LWICometPlacementsSection.react"),{options:t}),o.jsx(c("LWICometPixelSection.react"),{}),o.jsx(c("LWICometPaymentMethodSection.react"),{})]},"LWICometPlacementsSection")].filter(Boolean),rightContent:[o.jsx(c("LWICometAdPreviewRightColumnSection.react"),{useWashBackground:!v},"LWICometAdPreviewRightColumnSection"),o.jsx(c("LWICometEstimationSection.react"),{useWashBackground:!v},"LWICometEstimationSection"),o.jsx(c("LWICometPaymentSummarySection.react"),{useWashBackground:!v},"LWICometPaymentSummarySection")],title:a,topContent:[b("cr:7410")?[o.jsx(b("cr:7410"),{leadSource:"boosted_event"},"LWICometHPIBannerEligibile")]:[],g!==null?o.jsx(c("LWICometGenericCreationNoticesV2.react"),{boostedComponent:e,pageID:f.page_id,queryCouponRef:r},"LWICometGenericCreationNoticesV2"):o.jsx(c("LWICometGenericCreationNotices.react"),{boostedComponent:e,boostedComponentProduct:f.product,pageID:f.page_id},"LWICometGenericCreationNotices")],useWashRightColumn:!v})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
LWICometInstagramMediaCreationView.react",["fbt","BizKitAdsGating.entrypointutils","CometRelay","FBLogger","LWICometACOToggle.react","LWICometAdAccountPicker.react","LWICometAdPreviewCTAUtils","LWICometAdPreviewRightColumnSection.react","LWICometCTASection.react","LWICometCTAUtils","LWICometDraftDialogUtils","LWICometDurationBudgetSection.react","LWICometErrorBoundary.react","LWICometEstimationSection.react","LWICometExpandableSectionWrapper.react","LWICometFalcoEvent","LWICometGenericCreationNotices.react","LWICometInstagramMediaCreationView_adAccountQEValues.graphql","LWICometInstagramMediaCreationView_query.graphql","LWICometMessagingAppsSectionConstants","LWICometMutationUtils","LWICometObjectiveSection.react","LWICometOptionalLoggingDataContext","LWICometPaymentMethodSection.react","LWICometPaymentSummarySection.react","LWICometPlacementsSection.react","LWICometProductTwoColumnLayoutContainer.react","LWICometProductUtils","LWICometRegulatedCategoriesQuerySection.react","LWICometSubmissionSection.react","LWICometUnifiedDurationBudgetSection.react","LWIOmniAudienceSection.react","RelayHooks","cr:3392","cr:7193","cr:7410","gkx","lwiCometUnifiedCreationReducer","react","useLWIBizWebFullScreenGoBack","useLWILoggerContext","useLWIReducers","withLWICometSpecPart"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react"));e=k;var m=e.useCallback,n=e.useContext,o=e.useEffect,p=e.useState,q=e.useTransition,r=i!==void 0?i:i=b("LWICometInstagramMediaCreationView_query.graphql"),s=j!==void 0?j:j=b("LWICometInstagramMediaCreationView_adAccountQEValues.graphql");function a(a){var e,f,g,i=a.adAccountQEValues,j=a.boostedComponentInput,k=a.queryKey,n=a.rightWash;n=n===void 0?!1:n;var u=a.title,v=a.adAccountID,w=a.assetFeedSpecPlus,x=a.budgetType,y=a.creative,z=a.durationInDays,A=a.objective,B=a.selectedBudget;a=a.zeroOutcomesDailyBudget;var C=c("gkx")("21034"),D=!C||d("BizKitAdsGating.entrypointutils").getIsFBIGFeaturesIncludedInIGInfra();k=d("CometRelay").useFragment(r,k);e=(e=k.lwi)==null?void 0:e.boosted_component_wrapper;if(!e)throw c("FBLogger")("mbs_ads").mustfixThrow("boosted component should not be empty or else none of the LWI sections can be rendered");var E=e==null?void 0:e.context_spec,F=k.page,G=k==null?void 0:k.click_to_whatsapp_ads_info,H=k==null?void 0:k.lwi;k=k.viewer;var I=e==null?void 0:e.options;if(!I)throw c("FBLogger")("mbs_ads").mustfixThrow("options should not be empty or else none of the LWI sections can be rendered");f=(f=E==null?void 0:(f=E.post)==null?void 0:f.contains_instagram_video)!=null?f:!1;var J=p(f),K=J[0];J=J[1];g=(g=E==null?void 0:(g=E.post)==null?void 0:g.is_scheduled_post)!=null?g:!1;var L=c("useLWIReducers")([c("lwiCometUnifiedCreationReducer")]);w=(y=d("LWICometCTAUtils").getLWICometCTA(y,w))==null?void 0:y.type;y=(y=E==null?void 0:(y=E.page)==null?void 0:y.is_lightswitch_enabled)!=null?y:!1;var M=a;a!=null&&(M=x==="DAILY_BUDGET"?a:a*z);x=t();a=!y&&A==="MESSAGES"&&d("LWICometMessagingAppsSectionConstants").isMessagingAppCTAType(w)&&b("cr:7193")!=null;z=c("useLWIBizWebFullScreenGoBack")();A=E==null?void 0:(y=E.post)==null?void 0:y.instagram_media_product_type;w=d("CometRelay").useRefetchableFragment(s,i);E=w[0];var N=w[1];w=(i=E==null?void 0:(y=E.lwi)==null?void 0:y.exposeUnifiedBudgetTypesExperiment)!=null?i:"";E=q();y=E[0];var O=E[1],P=m(function(a){O(function(){N({adAccountID:a},{fetchPolicy:"store-or-network"})})},[N]);o(function(){P(v)},[v,P]);return l.jsx(c("LWICometProductTwoColumnLayoutContainer.react"),{footer:l.jsx(c("LWICometSubmissionSection.react"),{disableSubmitButton:K,overrideCommitMutation:g?x:null,secondaryButton:C&&z!=null?{label:h._("__JHASH___Iuq3aKAM4H__JHASH__"),onPress:z}:void 0}),headerAuxiliary:C&&b("cr:3392")?l.jsx(b("cr:3392"),{lwi:H,useTwoColumnLayout:!0}):l.jsx(c("LWICometAdAccountPicker.react"),{useTwoColumnLayout:!0}),leftContent:[l.jsx(c("LWICometObjectiveSection.react"),{boostedComponentInput:j,eligibleForGoalCard:D},"LWICometObjectiveSection"),l.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometACOToggleSection",children:l.jsx(c("LWICometACOToggle.react"),{pageRef:D?F:null,showAdOptimizationSection:D,showInstagramContent:!0})},"LWICometACOToggle"),a?null:l.jsx(c("LWICometCTASection.react"),{boostedComponentInput:j,shouldFilterCallNow:!0,shouldShowCTASectionWithOneEligibleCTA:!0,shouldShowUnifiedCreation:a,showGenericTooltip:!0,showHeader:!0,showWhatsAppLinkErrorNotice:!0},"LWICometCTASection"),a&&b("cr:7193")!=null?l.jsx(b("cr:7193"),{boostedComponentInput:j,boostedComponentRef:e,ctwaInfoRef:G,lwiRef:H,macrosRef:k,onCleanUp:function(){return L({type:"unified_creation_reducer.clean_up_unified_creation_spec"})},pageRef:F,productFlow:"boost_instagram_media_create_flow"},"LWICometMessagingAppsSection"):null,l.jsx(c("LWICometRegulatedCategoriesQuerySection.react"),{optionsRef:I},"LWICometRegulatedCategoriesQuerySection"),l.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWIOmniAudienceSection",children:l.jsx(c("LWIOmniAudienceSection.react"),{boostedComponent:e,boostedComponentInput:j})},"LWIOmniAudienceSection"),!y&&w==="test_selector"?l.jsx(c("LWICometUnifiedDurationBudgetSection.react"),{boostedComponentInput:j},"LWICometUnifiedDurationBudgetSection"):l.jsx(c("LWICometDurationBudgetSection.react"),{boostedComponent:e,boostedComponentInput:j,disableRunContinuouslyOption:!0,fetchRecommendation:!0},"LWICometUnifiedDurationBudgetSection"),l.jsx(c("LWICometPlacementsSection.react"),{expandable:!1,options:I,showSinglePlacement:!0},"LWICometPlacementsSection"),l.jsx(c("LWICometExpandableSectionWrapper.react"),{children:[l.jsx(c("LWICometPaymentMethodSection.react"),{},"payment")].filter(Boolean)},"LWICometExpandableSectionWrapper")].filter(Boolean),rightContent:[l.jsx(c("LWICometAdPreviewRightColumnSection.react"),{defaultToInstagramPreview:!0,getPreviewCtaValue:f?void 0:d("LWICometAdPreviewCTAUtils").getDefaultCtaValue,isStory:A==="STORY",isVideoUploading:K,setIsVideoUploading:J,useWashBackground:n},"LWICometAdPreviewRightColumnSection"),l.jsx(c("LWICometEstimationSection.react"),{hideResultsEstimate:M!=null&&B-----
LWICometPostCreationView.react",["fbt","401KCouponUtils.react","BizKitAdsGating.entrypointutils","CometRelay","FBLogger","IsLWIConsistenceExperimentEnabled.relayprovider","JSResourceForInteraction","LWIBizWebUserFlowUtils","LWICometACOToggle.react","LWICometAdAccountPicker.react","LWICometAdPreviewCTAUtils","LWICometAdPreviewRightColumnSection.react","LWICometAdvantagePlacementsUtils","LWICometBoostPostExistingCTASection.react","LWICometCTASection.react","LWICometCTAUtils","LWICometCallNowUtils","LWICometConstants","LWICometCreateBoostedComponentABTestMutation","LWICometCreateLeadGenFormUtil","LWICometDraftDialogUtils","LWICometDurationBudgetSection.react","LWICometErrorBoundary.react","LWICometEstimationSection.react","LWICometExperimentExposureContext","LWICometGenericCreationNotices.react","LWICometGenericCreationNoticesV2.react","LWICometGroupJoinSelectorSection.react","LWICometLeadGenFormContextProvider.react","LWICometLeadGenFormSelectorSection.react","LWICometMessagingAppsSectionConstants","LWICometMutationUtils","LWICometObjectiveSection.react","LWICometOptionalLoggingDataContext","LWICometPaymentMethodSection.react","LWICometPaymentSummarySection.react","LWICometPixelSection.react","LWICometPlacementsSection.react","LWICometPostButtonDestinationConfigUtils","LWICometPostCreationView_adAccountQEValues.graphql","LWICometPostCreationView_boostedComponent.graphql","LWICometPostCreationView_couponQuery.graphql","LWICometPostCreationView_ctwaInfo.graphql","LWICometPostCreationView_lwi.graphql","LWICometPostCreationView_page.graphql","LWICometPostCreationView_viewer.graphql","LWICometProductTwoColumnLayoutContainer.react","LWICometRegulatedCategoriesQuerySection.react","LWICometSubmissionSection.react","LWICometUnifiedCreationEligibilityChecker","LWICometUnifiedDurationBudgetSection.react","LWIOmniAudienceSection.react","LWIOmniCard.react","LWIOmniDuplicatePostNotice.react","LWIOmniExpandableSectionWrapper.react","LWIOmniLWIProposalPostNotice.react","QE2Logger","RelayHooks","XFBSBAGraduationCreationPackageTypeEnumsUtils.facebook","cr:6071","cr:6178","cr:6179","cr:6180","cr:7410","deferredLoadComponent","gkx","lwiCometCTAReducer","lwiCometUnifiedCreationReducer","qex","react","recoverableViolation","requireDeferred","unrecoverableViolation","useCometLazyDialog","useLWIAudioSwapStatus","useLWIBizWebFullScreenGoBack","useLWICometContextualDataContext","useLWICometUIStatusContext","useLWIGraduationEntrypointDialog","useLWILoggerContext","useLWIMBSCometBudgetH2BudgetExperiments","useLWIReducers","useLWIVideoCheckStoryReady","useRoutePassthroughProps","vulture","withLWICometSpecPart"],(function(a,b,c,d,e,f,g,h){"use strict";var aa,ba,ca,da,ea,fa,ga,i,j=i||(i=d("react"));e=i;var ha=e.useCallback,ia=e.useContext,k=e.useEffect,ja=e.useMemo,l=e.useRef,ka=e.useState,la=e.useTransition,ma=c("deferredLoadComponent")(c("requireDeferred")("LWICometMessagingAppsSection.react").__setRef("LWICometPostCreationView.react")),na=c("deferredLoadComponent")(c("requireDeferred")("LWICometCreativeGenerationAdTextSection.react").__setRef("LWICometPostCreationView.react"));function a(a){var e,f,g,i,m,n,o,p,oa=a.adCreationDialogButtonPropsOverride,q=a.boostedComponent,r=a.boostedComponentInput,pa=a.couponQueryRef,s=a.ctwaInfo,qa=a.headerAuxiliary,ra=a.hideBackgroundImageInAdCreationDialog,sa=a.lwi,ta=a.overrideBoostButtonMutation,ua=a.page,t=a.qe,u=a.rightWash;u=u===void 0?!1:u;var va=a.shouldCheckAutoBoostEntry,wa=a.submissionIndicatorOverride,xa=a.submissionSectionAdditionalTerms,ya=a.title,v=a.useRightColumnSubmitButton;v=v===void 0?!1:v;var w=a.viewer,x=a.abTestAudienceData,y=a.adAccountID,z=a.adgroupSpecs,A=a.budget,za=a.devicePlatforms,B=a.durationInDays,Aa=a.favorableOutcomesBudget,C=a.objective,Ba=a.regulatedCategories,D=a.selectedAdgroupID,Ca=a.selectedBudget,E=a.selectedGoal,F=a.similarAdvertiserBudget,G=a.targetSpec;a=a.zeroOutcomesBudget;c("vulture")("4taGtG0nIaA");var Da=c("gkx")("21034"),H=d("BizKitAdsGating.entrypointutils").getIsFBAdsExperience(),I=d("BizKitAdsGating.entrypointutils").getIsBizWebAdsExperience(),J=d("BizKitAdsGating.entrypointutils").getIsFBAndBizWebAdsExperience(),Ea=c("IsLWIConsistenceExperimentEnabled.relayprovider").get(!0)?b("cr:6071"):b("cr:6180"),Fa=c("IsLWIConsistenceExperimentEnabled.relayprovider").get(!0)?b("cr:6179"):b("cr:6178"),Ga=I&&E==="GET_SUBSCRIBERS",Ha=c("useLWIReducers")([c("lwiCometUnifiedCreationReducer"),c("lwiCometCTAReducer")]),K=d("CometRelay").useFragment(aa!==void 0?aa:aa=b("LWICometPostCreationView_boostedComponent.graphql"),q);q=d("CometRelay").useFragment(ba!==void 0?ba:ba=b("LWICometPostCreationView_page.graphql"),ua);ua=d("CometRelay").useFragment(ca!==void 0?ca:ca=b("LWICometPostCreationView_ctwaInfo.graphql"),s);s=d("CometRelay").useFragment(da!==void 0?da:da=b("LWICometPostCreationView_lwi.graphql"),sa);sa=d("CometRelay").useFragment(ea!==void 0?ea:ea=b("LWICometPostCreationView_viewer.graphql"),w);w=d("CometRelay").useRefetchableFragment(fa!==void 0?fa:fa=b("LWICometPostCreationView_adAccountQEValues.graphql"),t);t=w[0];var Ia=w[1];w=d("CometRelay").useFragment(ga!==void 0?ga:ga=b("LWICometPostCreationView_couponQuery.graphql"),pa);var L=K==null?void 0:K.options;if(L==null)throw c("unrecoverableViolation")("options should not be empty or else none of the LWI sections can be rendered","pages_lwi");var Ja=l(null);k(function(){(K==null?void 0:K.exposeBoostPostLeadGenDefaultExperiment)===!0&&(Ja.current=!1)},[K]);var M=ka(!1),N=M[0],Ka=M[1],O=d("RelayHooks").useRelayEnvironment();M=t==null?void 0:(M=t.lwi)==null?void 0:M.exposeUnifiedBudgetTypesExperiment;var P=la(),La=P[0],Ma=P[1];P=(P=(P=K.context_spec)==null?void 0:(P=P.page)==null?void 0:P.is_lightswitch_enabled)!=null?P:!1;var Q=z[D],R=z[D].creative;Q=(Q=d("LWICometCTAUtils").getLWICometCTA(R,Q==null?void 0:Q.assetFeedSpecPlus))==null?void 0:Q.type;var S=c("useLWICometContextualDataContext")(),T=S.postInfo.callToActionType,U=d("LWICometMessagingAppsSectionConstants").isMessagingAppCTAType(T),V=d("LWICometMessagingAppsSectionConstants").isWhatsAppNumberBusiness(q==null?void 0:q.connectedWhatsappNumberType);V=d("LWICometMessagingAppsSectionConstants").showUnifiedCreationForPPE(E,T,d("LWICometMessagingAppsSectionConstants").isMessagingAppCTAType(Q),C,V);var Na=C==="MESSAGES"&&(d("LWICometMessagingAppsSectionConstants").isMessagingAppCTAType(Q)||U)&&(q==null?void 0:q.is_eligible_for_ctm_on_lwi)===!0;V=(C==="MESSAGES"||V)&&(d("LWICometMessagingAppsSectionConstants").isMessagingAppCTAType(Q)||U)&&(q==null?void 0:q.is_eligible_for_ctm_on_lwi)===!0;U=J?Na||V:H?V:Na;var Oa=ia(c("LWICometOptionalLoggingDataContext")),W=c("useLWILoggerContext")();J=W.entryPoint;var Pa=W.flowID,Qa=W.pageID,Ra=W.product,Sa=W.targetID;d("LWIBizWebUserFlowUtils").addBizWebAdsBoostPostEnterDialogUserFlowPoint(String(J));V=R==null?void 0:R.object_story_id;Na=H&&J==="ad_proposal_lwi";var X=c("useRoutePassthroughProps")();X=c("useLWIVideoCheckStoryReady")((X==null?void 0:X.isEncodingVideoPost)===!0,(X=V)!=null?X:"");V=c("useLWIAudioSwapStatus")((V=V)!=null?V:"");V=V==null||V==="SUCCESSFUL";G=((e=G.geo_locations)==null?void 0:e.countries)?[].concat((e=G.geo_locations)==null?void 0:e.countries):[];e=za==null?void 0:za.map(function(a){return String(a)});G==null?void 0:G.sort();e==null?void 0:e.sort();za=S.postInfo.postUsedForRunningAds===!0;G=K==null?void 0:K.context_spec;e=G==null?void 0:G.post;f=(f=e==null?void 0:e.is_scheduled_post)!=null?f:!1;g=I&&((g=e==null?void 0:e.is_fb_reel)!=null?g:!1);i=(i=s==null?void 0:(i=s.should_show_sba_graduation_modal)==null?void 0:i.should_show)!=null?i:!1;m=(m=e==null?void 0:e.is_eligible_for_text_variations)!=null?m:!1;n=(n=G==null?void 0:(n=G.sba_graduation_eligible_creation_package)==null?void 0:n.is_eligible)!=null?n:!1;i=i&&n;n=(n=G==null?void 0:G.is_eligible_for_lwi_graduation_v4)!=null?n:!1;var Ta=(o=G==null?void 0:(o=G.sba_graduation_eligible_creation_package)==null?void 0:(o=o.creation_package_info)==null?void 0:o.url)!=null?o:"";o=G==null?void 0:(o=G.sba_graduation_eligible_creation_package)==null?void 0:(o=o.creation_package_info)==null?void 0:o.cp_type;var Ua=d("XFBSBAGraduationCreationPackageTypeEnumsUtils.facebook").toJSEnum(o);o=ha(function(a,b){var e="UNPUBLISHED_CONTENT";b=d("LWICometMutationUtils").getCreationMutationData({loggerContext:W,optionalLoggingData:Oa,spec:a,specHistory:b});b=b.input.creation_spec;d("LWICometDraftDialogUtils").draftMutation({environment:O,existingDraftID:a.draftID,flowID:Pa,onErrorCreate:function(){c("recoverableViolation")("Failed to create draft","pages_lwi")},onErrorUpdate:function(){c("recoverableViolation")("Failed to update draft","pages_lwi")},pageID:Qa,product:Ra,spec:b,targetID:Sa,useCase:e})},[O,Pa,W,Oa,Qa,Ra,Sa]);var Y=c("useLWICometUIStatusContext")(),Va=Y.setPostAdDialogStatus;Y=ha(function(a,b){d("CometRelay").commitMutation(O,{mutation:c("LWICometCreateBoostedComponentABTestMutation"),onError:function(a){Ka(!1),Va("NOT_SUBMITTED"),c("FBLogger")("pages_lwi").mustfix("Error (%s) when committing creation mutation for ab test",a.toString())},updater:function(a){},variables:d("LWICometMutationUtils").getCreationMutationData({externalDependentEntID:null,loggerContext:W,optionalLoggingData:Oa,spec:a,specHistory:b})})},[O,W,Oa,Va]);x=(x==null?void 0:x.length)===2;var Z=Ba.length===0;p=!f&&Z&&((p=c("qex")._("480"))!=null?p:!1);x=p&&x;var $=null;f?$=o:x&&($=Y);f=Z&&c("gkx")("23528");o=d("401KCouponUtils.react").useShow401KCoupon(A,Qa,y,String(Sa),B,"post_ad_submission_401k_heres_x",String(J),C,String(Q),F,a,Aa);x=c("useLWIBizWebFullScreenGoBack")();x=Da?x:null;Da=j.jsx(c("LWICometSubmissionSection.react"),{adCreationDialogButtonPropsOverride:oa,additionalRightColumnTermsContent:xa,disableSubmitButton:N||!X,hideBackgroundImageInAdCreationDialog:ra,isLiveBoostingAd:(A=K==null?void 0:(Y=K.context_spec)==null?void 0:(Z=Y.post)==null?void 0:Z.is_eligible_for_lb_lwi_guidance)!=null?A:!1,onPreSubmit:f?o:void 0,overrideCommitMutation:$,overrideMutationSubmit:ta,postAdDialogType:"BOOSTED_POST",secondaryButton:x!=null?{label:h._("__JHASH__2GIhK5e9fRK__JHASH__"),onPress:x}:void 0,shouldCheckAutoBoostEntry:va,submissionIndicatorOverride:wa,useRightColumnSubmitButton:v});var Wa=z[D].assetFeedSpecPlus;oa=ja(function(){return d("LWICometCallNowUtils").isCallNowSelected(Wa,R,T)?d("LWICometCallNowUtils").getReportedOptimizationGoal():null},[Wa,R,C,T,S.postInfo.postType]);xa=Q==="INSTAGRAM_MESSAGE"||T==="INSTAGRAM_MESSAGE";N=S.postInfo.postType===d("LWICometConstants").LINK_POST_TYPE;ra=S.postInfo.postType===d("LWICometConstants").PHOTO_POST_TYPE;Z=j.jsx(c("LWICometCTASection.react"),{boostedComponentInput:r,buttonDestinationOptionsConfig:P===!1?d("LWICometPostButtonDestinationConfigUtils").boostedPostButtonDestinationOptions:void 0,hideLinkEditor:N,isEnabledLeadgenLWIDefault:(Y=Ja.current)!=null?Y:!1,shouldFilterCallNow:!0,shouldShowUnifiedCreation:U,showHeader:!0,showMessageObjectiveUpsell:!0,showWhatsAppLinkErrorNotice:!0});var Xa=d("LWICometUnifiedCreationEligibilityChecker").shouldExposeSMCTAModel(J),Ya=ha(function(a,b){Ma(function(){Ia({adAccountID:a,exposeSMCTA:b},{fetchPolicy:"store-or-network"})})},[Ia]);k(function(){Ya(y,Xa)},[y,Xa,Ya]);k(function(){(K==null?void 0:K.exposeBoostPostGoalDefaultExperiment)===!0&&c("qex")._("1023")},[K==null?void 0:K.exposeBoostPostGoalDefaultExperiment]);k(function(){(K==null?void 0:K.exposeBoostPostLeadGenMultiphotoExperiment)===!0&&d("QE2Logger").logExposureForActingAccount("lwi_boost_post_support_multi_photo_lead_ad_creation_universe")},[K==null?void 0:K.exposeBoostPostLeadGenMultiphotoExperiment]);k(function(){(K==null?void 0:K.exposeCTXDefaultingLongTermHoldout)===!0&&c("qex")._("860")},[K==null?void 0:K.exposeCTXDefaultingLongTermHoldout]);k(function(){(K==null?void 0:K.exposeCallAdsMLBasedExperiment)===!0&&d("QE2Logger").logExposureForAdAccountID("call_intent_detection_lwi_sticky_rule",y)},[y,K==null?void 0:K.exposeCallAdsMLBasedExperiment]);var Za=(f=t==null?void 0:(A=t.lwi)==null?void 0:A.exposeAdBlockerRenderUniverse)!=null?f:!1;o=ja(function(){return{exposeAdBlockRenderFixExperiment:Za}},[Za]);$=C==="LEAD_GENERATION"||E==="ONSITE_OFFSITE_LEAD_GEN"||E==="LEAD_GENERATION";ta=E==="GROUP_JOINS";x=c("gkx")("23529");var $a=E==="ONSITE_OFFSITE_LEAD_GEN"||E==="LEAD_GENERATION"||E==="AUTOMATIC";D=(z=q==null?void 0:(va=q.admin_info)==null?void 0:(wa=va.lead_forms)==null?void 0:wa.count)!=null?z:0;var ab=l(!1),bb=l(D>0);k(function(){H&&$a&&!bb.current&&!ab.current&&Ja.current===!0&&(ab.current=!0,c("LWICometCreateLeadGenFormUtil")(d("LWICometLeadGenFormContextProvider.react").getLWICometLeadGenAutoGenFormContextData(r.page_id),O,function(a){bb.current=!0,ab.current=!1,Ha({formID:a,type:"cta_reducer.update_lead_gen_form_id"},{side:"client_side"})},function(a){}))},[$a,r,O,Ha,H]);S=d("LWICometAdvantagePlacementsUtils").getIsEligibleForAdvantagePlacements(R);P=c("JSResourceForInteraction")("LWICometAdCenterSBAGraduationDialog.react").__setRef("LWICometPostCreationView.react");var cb=l(!1);N=c("useCometLazyDialog")(P);var db=N[0];Y=ka(i);var eb=Y[0],fb=Y[1],gb=function(){fb(!1)};k(function(){!cb.current&&eb===!0&&(db({cpType:Ua,url:Ta},gb),cb.current=!0)},[db,eb,Ta,Ua]);c("useLWIGraduationEntrypointDialog")(n,Qa,Sa,"lwi_boost_component","lwi_boosted_components","lwi_boost_component");return j.jsx(c("LWICometProductTwoColumnLayoutContainer.react"),{footer:v?null:Da,headerAuxiliary:(J=qa)!=null?J:j.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometAdAccountPicker",children:j.jsx(c("LWICometAdAccountPicker.react"),{useTwoColumnLayout:!0})}),leftContent:[j.jsx(c("LWIOmniDuplicatePostNotice.react"),{}),j.jsx(j.Fragment,{children:Na&&j.jsx(c("LWIOmniLWIProposalPostNotice.react"),{})}),j.jsx(c("LWICometObjectiveSection.react"),{boostedComponentInput:r,canShowIneligibleObjectives:!0,eligibleForCTMLiveBoostingDefaulting:(f=K==null?void 0:(t=K.context_spec)==null?void 0:(A=t.post)==null?void 0:A.is_eligible_for_lb_lwi_ctm_defaulting)!=null?f:!1,eligibleForGoalCard:!0,objectiveSectionRef:q}),m?j.jsx(na,{adAccountID:y,regulatedCategories:Ba}):j.jsx(j.Fragment,{}),(e==null?void 0:e.is_fb_reel)!==!0?j.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometACOToggleSection",children:j.jsx(c("LWICometACOToggle.react"),{ctaType:Q,pageRef:q,showAdOptimizationSection:!0})}):j.jsx(j.Fragment,{}),ta?j.jsx(c("LWICometGroupJoinSelectorSection.react"),{}):j.jsx(j.Fragment,{}),c("LWICometLeadGenFormSelectorSection.react")!=null&&!za&&$&&!Ga?j.jsx(c("LWICometLeadGenFormSelectorSection.react"),{boostedComponentInput:r,contextSpec:G,setDisableSubmitButton:Ka}):j.jsx(j.Fragment,{}),j.jsx(j.Fragment,{children:T==null&&(E==="AUTOMATIC"||!U)?Z:null}),j.jsx(j.Fragment,{children:T==="WHATSAPP_MESSAGE"&&!U?j.jsx(c("LWICometBoostPostExistingCTASection.react"),{}):null}),j.jsx(j.Fragment,{children:I?null:j.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometRegulatedCategoriesQuerySection",children:j.jsx(c("LWICometRegulatedCategoriesQuerySection.react"),{optionsRef:L})})}),j.jsx(j.Fragment,{children:U||Ga?j.jsx(ma,{boostedComponentInput:r,boostedComponentRef:K,ctwaInfoRef:ua,lwiRef:s,macrosRef:sa,onCleanUp:function(){Ha({type:"unified_creation_reducer.clean_up_unified_creation_spec"})},pageRef:q,productFlow:"boost_post_create_flow"}):null}),j.jsx(j.Fragment,{children:I?j.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometRegulatedCategoriesQuerySection",children:j.jsx(c("LWICometRegulatedCategoriesQuerySection.react"),{optionsRef:L})}):null}),j.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometAudienceSection",children:j.jsx(c("LWIOmniAudienceSection.react"),{boostedComponent:K,boostedComponentInput:r,isAudienceABTestEnabled:p})},"audience"),!La&&M==="test_selector"?j.jsx(c("LWICometUnifiedDurationBudgetSection.react"),{boostedComponentInput:r}):j.jsx(c("LWICometDurationBudgetSection.react"),{CardComponent:c("LWIOmniCard.react"),boostedComponent:K,boostedComponentInput:r,disableStartDate:!1,fetchRecommendation:!0,newRecommendationUpdatesLocalBudget:x},"LWICometDurationBudgetSection"),S?j.jsx(c("LWICometPlacementsSection.react"),{options:L}):null,j.jsx(c("LWIOmniExpandableSectionWrapper.react"),{children:[S?null:j.jsx(c("LWICometPlacementsSection.react"),{options:L},"placements"),j.jsx(c("LWICometPixelSection.react"),{conversionsEventType:"purchase"},"pixel"),j.jsx(c("LWICometPaymentMethodSection.react"),{hasBottomDivider:!1},"payment")].filter(Boolean)})].filter(Boolean),rightContent:[j.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometAdPreviewRightColumnSection",children:j.jsx(c("LWICometAdPreviewRightColumnSection.react"),{defaultToInstagramPreview:xa,getPreviewCtaValue:d("LWICometAdPreviewCTAUtils").getDefaultCtaValue,isAudioSwapReady:V,isVideoStoryReady:X,usePlaceholderWebsite:ra,useWashBackground:u})}),I&&Fa!=null?j.jsx(Fa,{}):j.jsx(j.Fragment,{}),j.jsxs(c("LWICometExperimentExposureContext").Provider,{value:o,children:[j.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometEstimationSection",children:j.jsx(c("LWICometEstimationSection.react"),{hideResultsEstimate:H&&a!=null&&Ca-----
LWICometPostCreationView_page.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[{kind:"RootArgument",name:"__relay_internal__pv__IsFBAdsExperiencerelayprovider"}],kind:"Fragment",metadata:null,name:"LWICometPostCreationView_page",selections:[{args:null,kind:"FragmentSpread",name:"LWICometACOToggle_page"},{args:null,kind:"FragmentSpread",name:"LWICometMessagingAppsSection_page"},{args:null,kind:"FragmentSpread",name:"LWICometObjectiveSection_page"},{alias:null,args:null,kind:"ScalarField",name:"is_eligible_for_ctm_on_lwi",storageKey:null},{condition:"__relay_internal__pv__IsFBAdsExperiencerelayprovider",kind:"Condition",passingValue:!0,selections:[{alias:"connectedWhatsappNumberType",args:null,kind:"ScalarField",name:"connected_whatsapp_number_type",storageKey:null},{alias:null,args:null,concreteType:"PageAdminInfo",kind:"LinkedField",name:"admin_info",plural:!1,selections:[{alias:null,args:[{kind:"Literal",name:"lead_gen_status",value:["ACTIVE"]},{kind:"Literal",name:"lead_gen_use_case",value:["AUTOMATED_ADS","INSTANT_ARTICLES","LWI","MARKETPLACE_VERTICALS","MARKETPLACE_RENTALS","MARKETPLACE_HOME_SALES","NEWS_FUNDING","USER_FUNDING_SUBSCRIPTION","PAGES_PLATFORM","SERVICES_MASS_LEAD_GEN","SOTTO","NATIVE_LEAD_GEN"]}],concreteType:"LeadGenFormsConnection",kind:"LinkedField",name:"lead_forms",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"count",storageKey:null}],storageKey:"lead_forms(lead_gen_status:["ACTIVE"],lead_gen_use_case:["AUTOMATED_ADS","INSTANT_ARTICLES","LWI","MARKETPLACE_VERTICALS","MARKETPLACE_RENTALS","MARKETPLACE_HOME_SALES","NEWS_FUNDING","USER_FUNDING_SUBSCRIPTION","PAGES_PLATFORM","SERVICES_MASS_LEAD_GEN","SOTTO","NATIVE_LEAD_GEN"])"}],storageKey:null}]}],type:"Page",abstractKey:null};e.exports=a}),null);
-----
LWICometObjectiveSection.react",["CometPlaceholder.react","CometRelay","LWICometObjectiveContent.react","LWICometObjectiveSection_page.graphql","LWIOmniSectionGlimmer.react","react","vulture"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j=i||d("react");function a(a){var e=a.objectiveSectionRef;a=babelHelpers.objectWithoutPropertiesLoose(a,["objectiveSectionRef"]);c("vulture")("3MegJ7nZpCf");e=d("CometRelay").useFragment(h!==void 0?h:h=b("LWICometObjectiveSection_page.graphql"),e);return j.jsx(c("CometPlaceholder.react"),{fallback:j.jsx(c("LWIOmniSectionGlimmer.react"),{}),children:j.jsx(c("LWICometObjectiveContent.react"),babelHelpers["extends"]({},a,{objectiveContentRef:e}))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LWICometObjectiveSectionItemUtils",["fbt","ix","LWICometCommonStrings","fbicon","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j;j||d("react");b={AUTOMATIC:d("fbicon")._(i("587533"),20),CALL_NOW:d("fbicon")._(i("558161"),20),EVENT_RESPONSES:d("fbicon")._(i("509923"),20),EVENT_TICKETING:d("fbicon")._(i("562221"),20),GET_APP_INSTALLS:d("fbicon")._(i("489713"),20),GET_BOOKINGS:d("fbicon")._(i("1904654"),20),GET_CATALOG_SALES:d("fbicon")._(i("509117"),20),GET_LEADS:d("fbicon")._(i("709451"),20),GET_MESSAGES:d("fbicon")._(i("542883"),20),GET_MORE_PURCHASES_THROUGH_MESSAGING:d("fbicon")._(i("587533"),20),GET_MORE_VISITS:d("fbicon")._(i("558620"),20),GET_MULTI_MESSAGES:d("fbicon")._(i("542883"),20),GET_PAGE_LIKES:d("fbicon")._(i("509923"),20),GET_POST_ENGAGEMENT:d("fbicon")._(i("509923"),20),GET_PURCHASES:d("fbicon")._(i("763120"),20),GET_SUBSCRIBERS:d("fbicon")._(i("587533"),20),GET_VEHICLE_SALES:d("fbicon")._(i("485027"),20),GET_VIDEO_VIEWS:d("fbicon")._(i("484863"),20),GET_WEBSITE_VISITORS:d("fbicon")._(i("586897"),20),GROUP_JOINS:d("fbicon")._(i("510947"),20),LEAD_GENERATION:d("fbicon")._(i("709451"),20),LINK_CLICKS:d("fbicon")._(i("586897"),20),MESSAGES:d("fbicon")._(i("542883"),20),ONSITE_OFFSITE_LEAD_GEN:d("fbicon")._(i("709451"),20),PAGE_LIKES:d("fbicon")._(i("509923"),20),POST_ENGAGEMENT:d("fbicon")._(i("509923"),20),PROMOTE_LOCAL_BUSINESS:d("fbicon")._(i("487558"),20),PROMOTE_WHATSAPP_CHANNEL:d("fbicon")._(i("726969"),20),REACH:d("fbicon")._(i("487558"),20),SHOP_COLLECTION:d("fbicon")._(i("1429119"),20),SHOP_STOREFRONT:d("fbicon")._(i("763120"),20),VIDEO_VIEWS:d("fbicon")._(i("484863"),20),VIEW_INSTAGRAM_PROFILE:d("fbicon")._(i("722859"),20),WEBSITE_CONVERSIONS:d("fbicon")._(i("763120"),20),WHATSAPP_MESSAGES:d("fbicon")._(i("726969"),20)};c=h._("__JHASH__T3uFUe_qTHx__JHASH__",[h._param("link to our people metrics explanation",d("LWICometCommonStrings").PEOPLE_HYPER_LINK)]);function a(a){return a?h._("__JHASH__aGYwGhjCQnH__JHASH__"):h._("__JHASH__aKBQS6C6qiA__JHASH__")}a.displayName=a.name+" [from "+f.id+"]";g.GOAL_ICON_MAP=b;g.OBJECTIVE_INFO_CARD_LABEL=c;g.getJobObjectiveDescription=a}),226);
-----
useLWICometObjectiveSpecListQuery",["CometRelay","LWICometObjectiveSectionItemUtils","compactArray","react","recoverableViolation","useLWICometObjectiveSpecListQuery.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h,i;e=i||d("react");var j=e.useDeferredValue,k=e.useMemo,l=h!==void 0?h:h=b("useLWICometObjectiveSpecListQuery.graphql");function a(a,b,e,f){f===void 0&&(f=!1);b=j(b);b=d("CometRelay").useLazyLoadQuery(l,{adAccountID:b,boostedComponentInput:a,includeEligibleOnly:!f,includeIneligible:f});var g=(f=(a=b.lwi)==null?void 0:(f=a.boosted_component)==null?void 0:(a=f.options)==null?void 0:a.objectives_with_eligibility_data)!=null?f:(a=b.lwi)==null?void 0:(f=a.boosted_component)==null?void 0:(b=f.options)==null?void 0:b.eligible_objectives;return k(function(){return g==null?null:c("compactArray")(g.map(function(a){var b,f,g=a.business_goal,h=a.description,i=a.eligibility_data,j=a.goal,k=a.inferred_goal,l=a.metadata_list,n=a.title;b=(b=a.objective)!=null?b:l==null?void 0:(b=l[0])==null?void 0:b.objective;if(b==null||n==null||j==null){c("recoverableViolation")("objective or title or goal field of an eligible objective is null","pages_lwi");return null}f=(f=e==null?void 0:e[b])!=null?f:d("LWICometObjectiveSectionItemUtils").GOAL_ICON_MAP[j];if(f==null){c("recoverableViolation")("goal: "+j+" does not have a corresponding icon in configuration","pages_lwi");return null}a=(a=a.offsite_custom_event)!=null?a:l==null?void 0:(a=l[0])==null?void 0:a.offsite_custom_event;i=(i==null?void 0:i.is_eligible)!==!1;return{businessGoal:g,description:h,goal:j,icon:f,inferredGoal:k,isEligible:i,metadataList:m(l),objective:b,offsiteCustomEvent:a,title:n}}))},[g,e])}function m(a){return c("compactArray")(a.map(function(a){var b=a.objective,d=a.offsite_custom_event,e=a.selector_description;a=a.selector_title;if(e==null||b==null||a==null){c("recoverableViolation")("Metadata objective or description or title cannot be null.","pages_lwi");return null}return{objective:b,offsiteCustomEvent:d,selectorDescription:e,selectorTitle:a}}))}g["default"]=a}),98);
-----
LWICometObjectiveSection_page.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"LWICometObjectiveSection_page",selections:[{args:null,kind:"FragmentSpread",name:"LWICometObjectiveContent_page"}],type:"Page",abstractKey:null};e.exports=a}),null);
-----
LWICometWhatsAppShortlinkGuidanceCard",["fbt","ix","CometContextualMessage.react","FDSIcon.react","LWICometObjectiveSectionItemUtils","LWIOmniButtonGroup.react","MessagingAdsCTWAFbts","fbicon","lwiCometObjectiveReducer","react","requireDeferred","useLWILoggerContext","useLWIReducers","withLWICometSpecPart"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||(j=d("react")),l=j.useCallback,m=c("requireDeferred")("LWICometUnifiedLoggingUtil").__setRef("LWICometWhatsAppShortlinkGuidanceCard"),n="GET_MULTI_MESSAGES",o="SALES";function a(a){var b=a.ctwaShortLinkTestGroup,e=a.isWhatsAppBusinessNumber,f=a.onChangeGoal,g=a.setCtwaShortLinkTestGroup,j=a.setIsHackyWhatsappLink,p=a.setShowGuidanceAfterChangeGoal,q=a.specContext,r=c("useLWILoggerContext")(),s=c("useLWIReducers")([c("lwiCometObjectiveReducer")]),t="MESSAGES",u=h._("__JHASH__KzZlXmytjqS__JHASH__");a=l(function(){var a={businessGoal:o,description:"whatsappHackyShortLink",goal:n,icon:d("LWICometObjectiveSectionItemUtils").GOAL_ICON_MAP[n],inferredGoal:null,metadataList:[],objective:t,offsiteCustomEvent:null,title:u};s({goal:n,objective:t,offsiteCustomEvent:null,type:"objective_reducer.update_objective"},{side:"client_side"});e===!0&&j&&j(!0);f&&f(a);var c=b==="show_guidance"?"ctwa_hacky_ad_soft_upsell_change_goal_accept":b==="change_ad_goal"?"ctwa_hacky_ad_change_ad_goal":"";c!==""&&m.onReady(function(a){a.logWithLoggerAndSpecContext(r,q,{event:c,side:"user_action"})})},[u,s,e,j,f,b,r,q]);if(b==="change_ad_goal"){a();p&&p(!0);return null}else if(b==="show_guidance"){m.onReady(function(a){a.logWithLoggerAndSpecContext(r,q,{event:"ctwa_hacky_ad_soft_upsell_impression",side:"user_action"})});p=k.jsx("div",{className:"xktsk01 x1d52u69 xw7yly9",children:k.jsx(c("CometContextualMessage.react"),{addOnPrimary:k.jsx(c("LWIOmniButtonGroup.react"),{primary:{label:d("MessagingAdsCTWAFbts").WA_SHORT_LINK_SOFT_UPSELL_BUTTON_LABEL,onPress:a,reduceEmphasis:!0}}),body:d("MessagingAdsCTWAFbts").WA_SHORT_LINK_SOFT_UPSELL_BODY,headline:d("MessagingAdsCTWAFbts").WA_SHORT_LINK_SOFT_UPSELL_HEADLINE,icon:k.jsx(c("FDSIcon.react"),{color:"blueLink",icon:d("fbicon")._(i("479178"),24)}),level:4,onClose:function(){g(""),m.onReady(function(a){a.logWithLoggerAndSpecContext(r,q,{event:"ctwa_hacky_ad_soft_upsell_dismiss",side:"user_action"})})},type:"secondary"})});return p}return null}a.displayName=a.name+" [from "+f.id+"]";b=c("withLWICometSpecPart")(a,function(a){return{assetFeedSpecPlus:a.adgroupSpecs[a.selectedAdgroupID].assetFeedSpecPlus,creativeSpec:a.adgroupSpecs[a.selectedAdgroupID].creative,specContext:a}});g["default"]=b}),226);
-----
LWICometConsolidatedProductCreationView.react",["fbt","ix","BizKitAdsGating.entrypointutils","CometContextualMessage.react","CometRelay","FBLogger","FDSIcon.react","IsLWIConsistenceExperimentEnabled.relayprovider","LWICometACOToggle.react","LWICometACOUtils","LWICometAdAccountPicker.react","LWICometAdPreviewRightColumnSection.react","LWICometAdgroupUtils","LWICometAdsRejectionNoticeCard.react","LWICometAdsRejectionUtils","LWICometAdvantagePlacementsUtils","LWICometAudienceV2Section.react","LWICometAutomaticGoalDisableMultipleCTAConfirmationDialog.entrypoint","LWICometCTAUtils","LWICometCatalogSalesCreativeSection.react","LWICometCatalogSalesValidationContextProvider.react","LWICometConsolidatedProductButtonDestinationConfigUtils","LWICometConsolidatedProductCreationView_adAccountQEValues.graphql","LWICometConsolidatedProductCreationView_adgroup.graphql","LWICometConsolidatedProductCreationView_boostPostConversion.graphql","LWICometConsolidatedProductCreationView_ctaOptions.graphql","LWICometConsolidatedProductCreationView_query.graphql","LWICometConsolidatedProductUtils","LWICometCreateBoostedComponentABTestMutation","LWICometCreativeSection.react","LWICometDCOCreativeSection.react","LWICometDCOToggleSection.react","LWICometDurationBudgetSection.react","LWICometErrorBoundary.react","LWICometEstimationSection.react","LWICometExpandableSectionWrapper.react","LWICometGenericCreationNoticesV2.react","LWICometGroupJoinSelectorSection.react","LWICometMessagingAppsSectionConstants","LWICometMutationUtils","LWICometNoFundingSourceNotice.react","LWICometNoticeCardWrapper.react","LWICometObjectiveSection.react","LWICometOptionalLoggingDataContext","LWICometPaymentMethodSection.react","LWICometPaymentSummarySection.react","LWICometPixelSection.react","LWICometPlacementsSection.react","LWICometProductTwoColumnLayoutContainer.react","LWICometRegulatedCategoriesQuerySection.react","LWICometSimplifiedCTASection.react","LWICometSubmissionSection.react","LWICometUnifiedCreationEligibilityChecker","LWICometUnifiedDurationBudgetSection.react","LWICometWhatsAppUtils","LWIMultilingualAdsUtils","LWIOmniCard.react","LWIRuntimeEnviromentUtils","RelayHooks","cr:1499","cr:1920","cr:2223","cr:2291","cr:2334","cr:40","cr:5093","cr:6071","cr:6183","cr:6184","cr:6185","cr:6186","cr:6187","cr:7410","deferredLoadComponent","emptyFunction","fbicon","gkx","lwiCometButtonDestinationReducer","lwiCometCreativeDCOReducer","lwiCometCreativeReducer","lwiCometUnifiedCreationReducer","qex","react","requireDeferred","unrecoverableViolation","useCometEntryPointDialog","useDebouncedValue","useLWICometEligibleCTAs","useLWICometEnableCarousel","useLWICometInitialAdgroups","useLWICometPostsAsCreativesCallbacks","useLWICometPostsAsCreativesEntrypointDialog","useLWICometPostsAsCreativesUpdateAction","useLWICometUIStatusContext","useLWIGraduationEntrypointDialog","useLWILoggerContext","useLWIReducers","useOnUpdateEffect","vulture","withLWICometSpecPart"],(function(a,b,c,d,e,f,g,aa,ba){"use strict";var h,i,j,k,l,m,n=m||(m=d("react"));e=m;var ca=e.startTransition,o=e.useCallback,da=e.useContext,p=e.useEffect,ea=e.useRef,q=e.useState,fa=e.useTransition,ga=c("deferredLoadComponent")(c("requireDeferred")("LWICometCreativeMultipleCTAEditor.react").__setRef("LWICometConsolidatedProductCreationView.react")),ha=c("deferredLoadComponent")(c("requireDeferred")("LWICometMessagingAppsSection.react").__setRef("LWICometConsolidatedProductCreationView.react")),ia=c("deferredLoadComponent")(c("requireDeferred")("LWICometCTAWhatsAppSMBEnforcingErrorWrapper.react").__setRef("LWICometConsolidatedProductCreationView.react")),ja=200,ka=h!==void 0?h:h=b("LWICometConsolidatedProductCreationView_query.graphql"),la=i!==void 0?i:i=b("LWICometConsolidatedProductCreationView_boostPostConversion.graphql"),ma=j!==void 0?j:j=b("LWICometConsolidatedProductCreationView_ctaOptions.graphql"),na=k!==void 0?k:k=b("LWICometConsolidatedProductCreationView_adgroup.graphql"),oa=l!==void 0?l:l=b("LWICometConsolidatedProductCreationView_adAccountQEValues.graphql"),pa={errorStateContainer:{marginBottom:"x1yztbdb",$$css:!0}};function a(a){var e,f,g,h,i,j,k=a.boostedComponentInput,l=a.boostPostConversion$key,m=a.dataRef,qa=a.title,r=a.abTestAudienceData,ra=a.adAccountID,s=a.assetFeedSpecPlus,sa=a.buttonDestination,t=a.clientCreativeSpec,u=a.couponProduct,v=a.creativeSpec,ta=a.degreesOfFreedomType,w=a.enableDCO;w=w===void 0?!1:w;var x=a.goal,y=a.hasBrandedTemplate,ua=a.hasFundingSource,z=a.inferredGoal,A=a.objective,B=a.regulatedCategories,va=a.selectedBudget;a=a.zeroOutcomesDailyBudget;c("vulture")("mDUGDMfaaa");m=d("CometRelay").useFragment(ka,m);var C=m.lwi,D=C.boosted_component_wrapper,E=d("CometRelay").useFragment(la,l);l=m.page;var wa=m.click_to_whatsapp_ads_info,xa=m.viewer,F=D==null?void 0:D.options;if(!F)throw c("unrecoverableViolation")("options should not be empty or else none of the LWI sections can be rendered","pages_lwi");var ya=D==null?void 0:(e=D.context_spec)==null?void 0:(e=e.post)==null?void 0:e.story;e=c("useLWICometPostsAsCreativesCallbacks")(l==null?void 0:l.url);var G=e.onUpdateBodyText,H=e.onUpdatePhoto;e=e.onUpdateVideo;var za=c("useLWICometPostsAsCreativesUpdateAction")(c("emptyFunction"),G,H,e,ya),Aa=c("useLWICometPostsAsCreativesUpdateAction")(c("emptyFunction"),G,H,e,E==null?void 0:(G=E.context_spec)==null?void 0:(H=G.post)==null?void 0:H.story);G=(e=(e=m.lwi)==null?void 0:(G=e.boosted_component_wrapper)==null?void 0:(H=G.context_spec)==null?void 0:H.is_eligible_for_lwi_graduation_v4)!=null?e:!1;p(function(){var a;ya!=null?za():(E==null?void 0:(a=E.context_spec)==null?void 0:a.post)!=null&&Aa()},[]);e=(H=b("cr:6071")==null?void 0:b("cr:6071").shouldShowUsePostCTA(x))!=null?H:!1;H=c("useLWICometPostsAsCreativesEntrypointDialog")(k.page_id,e);H=H[0];var I=(f=d("LWICometCTAUtils").getLWICometCTA(v,s))==null?void 0:f.type;f=d("CometRelay").useRefetchableFragment(ma,m);var J=f[0],Ba=f[1];f=fa();var K=f[0],Ca=f[1];f=c("useDebouncedValue")(K,ja)&&K;K=c("useLWICometEligibleCTAs")(J==null?void 0:(K=J.lwi)==null?void 0:(J=K.boosted_component)==null?void 0:J.options);J=x==="AUTOMATIC"&&d("LWICometMessagingAppsSectionConstants").ctaOptionsArrayHasMultipleMessagingDestinations(K);var L=d("LWICometMessagingAppsSectionConstants").isWhatsAppNumberBusiness(l==null?void 0:l.connected_whatsapp_number_type),M=d("BizKitAdsGating.entrypointutils").getIsBizWebAdsExperience(),N=d("LWICometMessagingAppsSectionConstants").isMessagingAppCTAType(I),O=d("LWICometMessagingAppsSectionConstants").showUnifiedCreationForPPE(x,null,N,A,L),P=I==="WHATSAPP_MESSAGE";O=(O||A==="MESSAGES")&&d("LWICometMessagingAppsSectionConstants").ctaOptionsArrayHasMultipleMessagingDestinations(K)&&N&&!(M&&d("LWICometWhatsAppUtils").getIsWhatsAppHxCoupon(u)&&P);u=d("CometRelay").useRefetchableFragment(oa,m);var Da=u[0],Ea=u[1];Da=(u=Da.lwi)==null?void 0:u.exposeUnifiedBudgetTypesExperiment;u=fa();var Fa=u[0],Ga=u[1];u=(l==null?void 0:l.is_eligible_for_ctm_on_lwi)!==!0&&(l==null?void 0:l.is_eligible_for_linked_instagram)!==!0&&(l==null?void 0:l.is_eligible_for_linked_whatsapp)===!0;var Q=d("CometRelay").useRefetchableFragment(na,m),R=Q[0],Ha=Q[1];Q=d("LWIRuntimeEnviromentUtils").isFacebookComet();var S=d("LWIRuntimeEnviromentUtils").isFacebookStyle(),Ia=M&&x==="GET_SUBSCRIBERS",Ja=x==="GET_SUBSCRIBERS"&&c("gkx")("23525");N=M&&N;var T=c("IsLWIConsistenceExperimentEnabled.relayprovider").get(!0)?b("cr:6186"):b("cr:2334"),U=c("useLWICometEnableCarousel")(),Ka=M&&P&&!O&&(l==null?void 0:l.whatsapp_catalog_products)!=null&&(l==null?void 0:l.whatsapp_catalog_products.length)>0&&T!=null,V=c("useLWIReducers")([c("lwiCometCreativeReducer"),c("lwiCometCreativeDCOReducer"),c("lwiCometUnifiedCreationReducer")]),La=o(function(a){Ca(function(){Ba({goal:a.goal,input:k,objective:a.objective},{fetchPolicy:"store-or-network"})}),d("LWICometConsolidatedProductUtils").shouldUpdateWithRefetchedCreative(a.goal,x)&&ca(function(){Ha({goal:a.goal,input:k,shouldFetch:!0},{fetchPolicy:"store-or-network"})})},[Ha,k,Ba,x,Ca]),Ma=c("useCometEntryPointDialog")(c("LWICometAutomaticGoalDisableMultipleCTAConfirmationDialog.entrypoint"),{goal:"AUTOMATIC",input:k,objective:A}),Na=Ma[0],W=t==null?void 0:t.asset_feed_spec;Ma=o(function(a){Na({buttonDestination:sa,buttonDestinationOptionsConfig:d("LWICometConsolidatedProductButtonDestinationConfigUtils").buttonDestinationOptions,clientAssetFeedSpec:W,creativeSpec:v,goal:x,onClose:c("emptyFunction"),onConfirm:function(){V({type:"dco_reducer.convert_single_cta"},{side:"client_side"}),a()}},c("emptyFunction"))},[sa,W,v,V,x,Na]);R=c("useLWICometInitialAdgroups")({isNullable:!0,spec:R==null?void 0:(R=R.lwi)==null?void 0:(R=R.boosted_component)==null?void 0:R.spec,useAFS:!0});var X=R[0],Y=R[1];c("useOnUpdateEffect")(function(){Y!=null&&Object.keys(X).length!==0&&(X[Y]!=null&&V({adgroup:X[Y],type:"creative_reducer.update_adgroup"},{side:"client_side"}))},[X,Y]);R=(v==null?void 0:(R=v.object_story_spec)==null?void 0:(R=R.template_data)==null?void 0:R.format_option)==="carousel_images_multi_items";A=q((t=(s=d("LWICometCTAUtils").getLWICometLinkURL(s,v,A))!=null?s:t==null?void 0:(A=t.object_story_spec)==null?void 0:(s=A.link_data)==null?void 0:s.link)!=null?t:"");s=A[0];t=A[1];A=E==null?void 0:(A=E.spec)==null?void 0:(A=A.ad_account)==null?void 0:A.legacy_account_id;g=E==null?void 0:(g=E.spec)==null?void 0:(g=g.adgroup_spec)==null?void 0:g[0];g=g==null?void 0:g.adgroup_id;h=E==null?void 0:(h=E.boosting_info)==null?void 0:h.rejection_info;var Oa=h==null?void 0:h.primary_disapproval_reason;Oa=d("LWICometAdsRejectionUtils").isEligibleForRejectionLandingPage(Oa);i=d("LWICometAdsRejectionUtils").getGenericErrorStateForLowQualityCreates(h==null?void 0:(i=h.low_quality_creatives_body)==null?void 0:i.text,h==null?void 0:h.policy_name,h==null?void 0:h.policy_url);j=(j=h==null?void 0:(j=h.actions)==null?void 0:(j=j.map(function(a){return a==null?void 0:a.action_id}))==null?void 0:j.filter(Boolean))!=null?j:[];var Pa=ea(null),Qa=x==="GROUP_JOINS"||I==="JOIN_GROUP"?!1:d("LWICometACOUtils").inACOExperimentEnable(Ia),Z=q(!1),Ra=Z[0];Z=Z[1];var $=q(!1),Sa=$[0];$=$[1];R=R&&x==="GET_CATALOG_SALES"?n.jsx(c("LWICometCatalogSalesValidationContextProvider.react"),{children:n.jsx(c("LWICometCatalogSalesCreativeSection.react"),{boostedComponentInput:k,ctaOptions:K,isEditingView:!1})}):R?n.jsx(n.Fragment,{}):!Ka&&w&&c("LWICometDCOCreativeSection.react")?n.jsx(c("LWICometDCOCreativeSection.react"),{ctaSection:n.jsx(ga,{boostedComponentInput:k,buttonDestinationOptionsConfig:d("LWICometConsolidatedProductButtonDestinationConfigUtils").buttonDestinationOptions,isLoading:f,setStoredLinkURL:t,shouldShowCTASectionWithOneEligibleCTA:!0,storedLinkURL:s}),showHeadline:I!=="LIKE_PAGE"&&I!=="VISIT_PROFILE"&&I!=="JOIN_GROUP"}):n.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometCreativeSection",children:Ka&&(l==null?void 0:l.whatsapp_catalog_products)!=null&&T?n.jsx(T,{aux:H,boostedComponentInput:k,enableCarousel:U,lwiRef:C,whatsAppCatalogFragmentKey:l}):n.jsx(c("LWICometCreativeSection.react"),{aux:Ia?null:H,checkForBizWebNoticeCardEligibilty:N,ctaSection:b("cr:40")&&y===!0?n.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometBrandedTemplateCTASection",children:n.jsx(b("cr:40"),{buttonDestinationOptionsConfig:d("LWICometConsolidatedProductButtonDestinationConfigUtils").buttonDestinationOptions,ctaOptions:K,hasConnectedInstagramAccount:(l==null?void 0:l.coalesced_linked_bizlink_instagram_account)!=null,isEligibleForUnifiedCreationMergedCTA:J,isLoading:f,isWhatsAppBusinessNumber:L,shouldShowCTASectionWithOneEligibleCTA:!0})}):x==="GROUP_JOINS"?n.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometGroupJoinCTASection",children:n.jsx(c("LWICometGroupJoinSelectorSection.react"),{})}):!O||x==="AUTOMATIC"||u?n.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometSimplifiedCTASection",children:n.jsx(c("LWICometSimplifiedCTASection.react"),{boostedComponentInput:k,buttonDestinationOptionsConfig:d("LWICometConsolidatedProductButtonDestinationConfigUtils").buttonDestinationOptions,ctaOptions:K,hasConnectedInstagramAccount:(l==null?void 0:l.coalesced_linked_bizlink_instagram_account)!=null,isEligibleForUnifiedCreationMergedCTA:J,isLoading:f,isWhatsAppBusinessNumber:L,onChangeGoal:La,productFlow:"boost_consolidated_product_create_flow",setIsHackyWhatsappLink:Z,setShowGuidanceAfterChangeGoal:$,setStoredLinkURL:t,shouldShowCTASectionWithOneEligibleCTA:!0,showWhatsAppLinkErrorNotice:!0,storedLinkURL:s})}):void 0,enableDLO:d("LWIMultilingualAdsUtils").getIsMultilingualAdsEnabled(),goal:M?x:void 0,lwiRef:C,overrideEnableCarousel:M?d("LWICometConsolidatedProductUtils").shouldOverrideCarouselEnabled(x):null,pageRef:l,showHeadline:I!=="LIKE_PAGE"&&I!=="VISIT_PROFILE"&&I!=="JOIN_GROUP",showUsePostCTA:e})});var Ta=c("useLWIReducers")([c("lwiCometButtonDestinationReducer")]),Ua=ea(!1);p(function(){Ua.current||(Ua.current=!0,Ta({buttonDestination:d("LWICometConsolidatedProductButtonDestinationConfigUtils").getInitialButtonDestination(x,z,I),type:"button_detination_reducer.update_button_destination"}))},[I,Ta,x,z]);T=d("LWICometConsolidatedProductUtils").isConversionGoal(x,z);var Va=c("useLWILoggerContext")();U=Va.entryPoint;H=U==="ad_proposal_lwi";var Wa=d("LWICometUnifiedCreationEligibilityChecker").shouldExposeSMCTAModel(U),Xa=o(function(a,b){Ga(function(){Ea({adAccountID:a,exposeSMCTA:b},{fetchPolicy:"store-or-network"})})},[Ea]);p(function(){Xa(ra,Wa)},[ra,Wa,Xa]);N=d("LWICometAdvantagePlacementsUtils").getIsEligibleForAdvantagePlacements(v);p(function(){(D==null?void 0:D.exposeLWIBCPCTXDefaultExperiment)===!0&&c("qex")._("813")},[D==null?void 0:D.exposeLWIBCPCTXDefaultExperiment]);y=b("cr:6187")==null?void 0:b("cr:6187")();K=c("IsLWIConsistenceExperimentEnabled.relayprovider").get(!0)?b("cr:6183"):b("cr:1499");J=c("IsLWIConsistenceExperimentEnabled.relayprovider").get(!0)?b("cr:5093"):b("cr:1920");f=c("IsLWIConsistenceExperimentEnabled.relayprovider").get(!0)?b("cr:6184"):b("cr:2223");Z=c("IsLWIConsistenceExperimentEnabled.relayprovider").get(!0)?b("cr:6185"):b("cr:2291");c("useLWIGraduationEntrypointDialog")(G,k.page_id,k.target_id,"lwi_create_ad","lwi_create_ad","lwi_create_ad_component");var Ya=d("RelayHooks").useRelayEnvironment();$=(r==null?void 0:r.length)===2;t=B.length===0;e=t&&((s=c("qex")._("480"))!=null?s:!1);U=e&&$;var Za=da(c("LWICometOptionalLoggingDataContext"));G=c("useLWICometUIStatusContext")();var $a=G.setPostAdDialogStatus;r=o(function(a,b){d("CometRelay").commitMutation(Ya,{mutation:c("LWICometCreateBoostedComponentABTestMutation"),onError:function(a){$a("NOT_SUBMITTED"),c("FBLogger")("pages_lwi").mustfix("Error (%s) when committing creation mutation for ab test",a.toString())},updater:function(a){},variables:d("LWICometMutationUtils").getCreationMutationData({externalDependentEntID:null,loggerContext:Va,optionalLoggingData:Za,spec:a,specHistory:b})})},[Ya,Va,Za,$a]);return n.jsx(c("LWICometProductTwoColumnLayoutContainer.react"),{footer:n.jsx(c("LWICometSubmissionSection.react"),{overrideCommitMutation:U?r:null,postAdDialogType:"DEFAULT",secondaryButton:y!=null?{label:aa._("__JHASH__2GIhK5e9fRK__JHASH__"),onPress:y}:void 0}),headerAuxiliary:n.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometAdAccountPicker",children:n.jsx(c("LWICometAdAccountPicker.react"),{conversionsEventType:M&&T?"PURCHASE":void 0,useTwoColumnLayout:!0})}),leftContent:[n.jsx(n.Fragment,{children:H&&n.jsx("div",{className:"x1yztbdb",children:n.jsx(c("CometContextualMessage.react"),{body:"Some fields have been prefilled based on your conversation with the customer support representative.",headline:"Some fields have been prefilled",icon:n.jsx(c("FDSIcon.react"),{color:"blueLink",icon:d("fbicon")._(ba("479181"),24)})})})}),Oa&&i!=null?n.jsx(c("LWICometAdsRejectionNoticeCard.react"),{actionIDs:j,body:i==null?void 0:i.body,legacyAccountID:A,primaryCTALabel:aa._("__JHASH__J7v7F04ipEd__JHASH__"),primaryCTAOnPress:function(){window.requestAnimationFrame(function(){Pa.current!=null&&Pa.current.scrollIntoView({behavior:"smooth",block:"nearest"})})},rejectionInfo$key:h,selectedAdgroupID:g,shouldShowRequestReview:!1,title:i==null?void 0:i.title,xstyle:pa.errorStateContainer}):null,(Ia||Ja)&&K?n.jsx(K,{}):null,n.jsx(n.Fragment,{children:M&&Z&&P&&!O?n.jsxs(n.Fragment,{children:[!L&&f&&n.jsx(f,{dataRef:l}),n.jsx(ia,{enableListener:!1,queryRef:l}),n.jsx(Z,{})]}):null}),n.jsx(c("LWICometObjectiveSection.react"),{boostedComponentInput:k,eligibleForGoalCard:Q,onChangeGoal:La,onSaveGoal:La,onSelectAutomaticGoal:w&&(W==null?void 0:W.call_to_action_types)!=null&&(W==null?void 0:W.call_to_action_types.length)>1?Ma:void 0}),!Ka&&x!=="GROUP_JOINS"&&I!=="JOIN_GROUP"&&Q?n.jsx(c("LWICometDCOToggleSection.react"),{}):null,n.jsx("div",{ref:Pa,children:R}),Qa?n.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometACOToggleSection",children:n.jsx(c("LWICometACOToggle.react"),{ctaType:I,enableToggle:!w,pageRef:l})}):null,n.jsx(n.Fragment,{children:M?null:n.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometRegulatedCategoriesQuerySection",children:n.jsx(c("LWICometRegulatedCategoriesQuerySection.react"),{currentCTAType:I,optionsRef:F})})}),n.jsx(n.Fragment,{children:O&&x!=="WHATSAPP_MESSAGES"&&!u||Ja?n.jsx(ha,{boostedComponentInput:k,boostedComponentRef:D,ctwaInfoRef:wa,isHackyWhatsappLink:Ra,lwiRef:C,macrosRef:xa,onCleanUp:function(){V({type:"unified_creation_reducer.clean_up_unified_creation_spec"})},pageRef:l,productFlow:"boost_consolidated_product_create_flow",showGuidanceAfterChangeGoal:Sa}):null}),n.jsx(n.Fragment,{children:M?n.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometRegulatedCategoriesQuerySection",children:n.jsx(c("LWICometRegulatedCategoriesQuerySection.react"),{currentCTAType:I,optionsRef:F})}):null}),n.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometAudienceSection",children:n.jsx(c("LWICometAudienceV2Section.react"),{boostedComponentInput:k,isAudienceABTestEnabled:e})},"audience"),!Fa&&Da==="test_selector"?n.jsx(c("LWICometUnifiedDurationBudgetSection.react"),{boostedComponentInput:k}):n.jsx(c("LWICometDurationBudgetSection.react"),{CardComponent:M?c("LWIOmniCard.react"):void 0,boostedComponent:D,boostedComponentInput:k,fetchRecommendation:!0},"LWICometDurationBudgetSection"),N?n.jsx(c("LWICometPlacementsSection.react"),{options:F}):null,n.jsx(c("LWICometExpandableSectionWrapper.react"),{children:[N?null:n.jsx(c("LWICometPlacementsSection.react"),{options:F},"placements"),n.jsx(c("LWICometPixelSection.react"),{conversionsEventType:(B=d("LWICometConsolidatedProductUtils").getConversionsEventType(x,z))!=null?B:void 0,isPixelOptional:!T||x==="AUTOMATIC"},"pixel"),ua?null:n.jsx(c("LWICometNoFundingSourceNotice.react"),{},"no_funding_notice"),n.jsx(c("LWICometPaymentMethodSection.react"),{},"payment")].filter(Boolean)})].filter(Boolean),rightContent:[n.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometAdPreviewRightColumnSection",children:n.jsx(c("LWICometAdPreviewRightColumnSection.react"),{defaultToInstagramPreview:I==="INSTAGRAM_MESSAGE",getValidatedCreativeSpec:d("LWICometAdgroupUtils").getValidatedCTALinkInCreativeSpecForAdPreview,pageRef:l,showACOCarousel:ta===d("LWICometACOUtils").LWI_ACO_FLAG_V2,subtitle:M&&J!=null&&d("LWICometConsolidatedProductUtils").getIsCatalogSalesGoal(x,z)?n.jsx(J,{}):void 0,useWashBackground:S})}),n.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometEstimationSection",children:n.jsx(c("LWICometEstimationSection.react"),{hideResultsEstimate:a!=null&&va-----
LWICometCTAWhatsAppLinkURLConsolidatedProductErrorNotice.react",["fbt","AdsLWIValidationStrings","LWICometCTAUtils","LWICometObjectiveSectionItemUtils","LWICometWhatsAppConstants","LWICometWhatsAppPermissiveCTWALinkPattern","MessagingAdsCTWAFbts","MessagingAdsExperimentUtils","gkx","justknobx","lwiCometObjectiveReducer","qex","react","requireDeferred","useLWICometCurrentSpec","useLWILoggerContext","useLWINoticesContext","useLWIOmniConfirmationDialog","useLWIReducers","withLWICometSpecPart"],(function(a,b,c,d,e,f,g,h){"use strict";var i;i||(i=d("react"));b=i;var j=b.useCallback,k=b.useEffect,l=c("requireDeferred")("LWICometUnifiedLoggingUtil").__setRef("LWICometCTAWhatsAppLinkURLConsolidatedProductErrorNotice.react"),m="WHATSAPP_MESSAGES",n="GET_MULTI_MESSAGES",o="SALES";function a(a){var b=a.ctwaAccessStatus,e=a.currentCta,f=a.isWhatsAppBusinessNumber,g=a.onChangeGoal,i=a.setIsHackyWhatsappLink,p=a.shouldShowNotice,q=a.assetFeedSpecPlus;a=a.creativeSpec;var r=c("useLWILoggerContext")(),s=c("useLWICometCurrentSpec")(),t=c("useLWIOmniConfirmationDialog")();t=t[0];var u=j(t,[t]);t=c("useLWINoticesContext")();var v=t.setNoticesForSpecElement,w=c("useLWIReducers")([c("lwiCometObjectiveReducer")]),x="MESSAGES",y=h._("__JHASH__9rnWwOueY4O__JHASH__");c("gkx")("4355")&&(m=n,i&&f===!0&&i(!0));var z=j(function(){var a={businessGoal:o,description:null,goal:m,icon:d("LWICometObjectiveSectionItemUtils").GOAL_ICON_MAP[m],inferredGoal:null,metadataList:[],objective:x,offsiteCustomEvent:null,title:y};w({goal:m,objective:x,offsiteCustomEvent:null,type:"objective_reducer.update_objective"},{side:"client_side"});g&&g(a)},[x,g,w,y]),A=j(function(){var a={businessGoal:o,description:null,goal:n,icon:d("LWICometObjectiveSectionItemUtils").GOAL_ICON_MAP[n],inferredGoal:null,metadataList:[],objective:x,offsiteCustomEvent:null,title:h._("__JHASH__ITEu-pXmJkQ__JHASH__")};w({goal:n,objective:x,offsiteCustomEvent:null,type:"objective_reducer.update_objective"},{side:"client_side"});g&&g(a)},[w,x,g]),B=(t=d("LWICometCTAUtils").getLWICometCTA(a,q))==null?void 0:(f=t.value)==null?void 0:f.link;a=d("LWICometWhatsAppPermissiveCTWALinkPattern").PERMISSIVE_CTWA_LINK_PATTERN.test((i=B)!=null?i:"");var C=a&&e.type!=="WHATSAPP_LINK"&&e.type!=="WHATSAPP_MESSAGE"&&b==="ACCESS_GRANTED"&&p;k(function(){var a;v("CALL_TO_ACTION",c("justknobx")._("1011")&&C&&d("MessagingAdsExperimentUtils").displayWALinkErrorNoticeAndCard()?[{inLineCTALink:{label:d("MessagingAdsCTWAFbts").WA_LINK_DETECTION_ERROR_NOTICE_LINK,onClick:function(){u({body:d("MessagingAdsCTWAFbts").WA_LINK_DETECTION_TRANSITION_MODAL_BODY,cancel:"Cancel",confirm:"Continue",title:d("MessagingAdsCTWAFbts").WA_LINK_DETECTION_TRANSITION_MODAL_HEADER},A,function(){}),l.onReady(function(a){return a.logWithLoggerAndOptionalSpecContext(r,s,{event:"bizweb_messaging_ads_ctwa_url_error_notice_link_click",side:"user_action"})})}},message:d("MessagingAdsCTWAFbts").WA_LINK_DETECTION_ERROR_NOTICE_BODY,severity:"WARNING",title:d("LWICometWhatsAppConstants").WHATSAPP_LINK_ERROR_NOTICE_HEADER_TEXT}]:C&&c("qex")._("1361")?[{ctaButton:{primaryButton:{label:d("LWICometWhatsAppConstants").WHATSAPP_GOAL_UPSELL_NOTICE_BUTTON_TEXT,onPress:z,type:"secondary"}},message:d("AdsLWIValidationStrings").getInvalidWhatsAppLinkError("("+((a=B)!=null?a:"")+")"),severity:"ERROR",title:d("LWICometWhatsAppConstants").WHATSAPP_LINK_ERROR_NOTICE_HEADER_TEXT}]:[])},[C,z,v,B,u,r,s,A])}a.displayName=a.name+" [from "+f.id+"]";e=c("withLWICometSpecPart")(a,function(a){return{assetFeedSpecPlus:a.adgroupSpecs[a.selectedAdgroupID].assetFeedSpecPlus,creativeSpec:a.adgroupSpecs[a.selectedAdgroupID].creative}});g["default"]=e}),226);
-----
LWICometViewPlaceholder.react",["LWICometAdPreviewSectionPlaceholder.react","LWICometAudienceSectionPlaceholder.react","LWICometCTASectionPlaceholder.react","LWICometCreativeSectionPlaceholder.react","LWICometEstimationSectionPlaceholder.react","LWICometExpandableSectionWrapperPlaceholder.react","LWICometObjectiveSectionPlaceholder.react","LWICometPaymentSummarySectionPlaceholder.react","LWICometRightColumnSubmissionSectionPlaceholder.react","LWICometTwoColumnLayoutSubmissionSectionPlaceholder.react","react","unrecoverableViolation","useLWIUIComponentContext","vulture"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react");function a(a){var b=a.hasCreative;b=b===void 0?!1:b;var d=a.hasCTA;d=d===void 0?!1:d;var e=a.hasObjective;e=e===void 0?!1:e;var f=a.rightWash;f=f===void 0?!1:f;var g=a.submitButtonLabel,h=a.title;a=a.useRightColumnSubmitButton;a=a===void 0?!1:a;c("vulture")("5HQhXR0NTPK");var j=c("useLWIUIComponentContext")();j=j.creationLayout;if(j==null)throw c("unrecoverableViolation")("creationLayout should be provided in LWIUIComponentContext for LWICometViewPlaceholder","pages_lwi");j=j.CreationTwoColumnLayout;if(j==null)return null;var k=[];e&&k.push(i.jsx(c("LWICometObjectiveSectionPlaceholder.react"),{}));d&&k.push(i.jsx(c("LWICometCTASectionPlaceholder.react"),{}));b&&k.push(i.jsx(c("LWICometCreativeSectionPlaceholder.react"),{}));return i.jsx(j,{footer:a?null:i.jsx(c("LWICometTwoColumnLayoutSubmissionSectionPlaceholder.react"),{buttonLabel:g}),isLayoutForPlaceholder:!0,leftContent:[].concat(k,[i.jsx(c("LWICometAudienceSectionPlaceholder.react"),{}),i.jsx(c("LWICometExpandableSectionWrapperPlaceholder.react"),{hideDivider:!0})]),rightContent:[i.jsx(c("LWICometAdPreviewSectionPlaceholder.react"),{unifyCard:f,useWashBackground:f}),i.jsx(c("LWICometEstimationSectionPlaceholder.react"),{unifyCard:f}),i.jsx(c("LWICometPaymentSummarySectionPlaceholder.react"),{hideDivider:!0,unifyCard:f}),a?i.jsx(c("LWICometRightColumnSubmissionSectionPlaceholder.react"),{buttonLabel:g}):i.jsx(i.Fragment,{})],title:h,useWashRightColumn:f})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LWICometObjectiveSectionPlaceholder.react",["FDSGlimmer.react","LWICometPlaceholderCard.react","react","vulture"],(function(a,b,c,d,e,f,g){"use strict";var h,i=h||d("react"),j={icon:{borderTopStartRadius:"x107yiy2",borderTopEndRadius:"xv8uw2v",borderBottomEndRadius:"x1tfwpuw",borderBottomStartRadius:"x2g32xy",height:"x1vqgdyp",marginEnd:"xq8finb",marginLeft:null,marginRight:null,width:"x100vrsf",$$css:!0},subtitle:{height:"x1qx5ct2",width:"xqyf9gi",$$css:!0},text:{height:"x1qx5ct2",width:"xqyf9gi",$$css:!0},title:{height:"xxk0z11",marginBottom:"x1e56ztr",width:"xja02kk",$$css:!0}},k=[1,2];function a(){c("vulture")("1wPlUBuajJu");return i.jsxs(c("LWICometPlaceholderCard.react"),{children:[i.jsx(c("FDSGlimmer.react"),{index:1,xstyle:j.title}),i.jsx(c("FDSGlimmer.react"),{index:1,xstyle:j.subtitle}),k.map(function(a){return i.jsxs("div",{className:"x6s0dn4 x78zum5 xw7yly9",children:[i.jsx(c("FDSGlimmer.react"),{index:a,xstyle:j.icon}),i.jsx(c("FDSGlimmer.react"),{index:a,xstyle:j.text})]},a)})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LWICometWhatsAppShortlinkGuidanceCard",["fbt","ix","CometContextualMessage.react","FDSIcon.react","LWICometObjectiveSectionItemUtils","LWIOmniButtonGroup.react","MessagingAdsCTWAFbts","fbicon","lwiCometObjectiveReducer","react","requireDeferred","useLWILoggerContext","useLWIReducers","withLWICometSpecPart"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||(j=d("react")),l=j.useCallback,m=c("requireDeferred")("LWICometUnifiedLoggingUtil").__setRef("LWICometWhatsAppShortlinkGuidanceCard"),n="GET_MULTI_MESSAGES",o="SALES";function a(a){var b=a.ctwaShortLinkTestGroup,e=a.isWhatsAppBusinessNumber,f=a.onChangeGoal,g=a.setCtwaShortLinkTestGroup,j=a.setIsHackyWhatsappLink,p=a.setShowGuidanceAfterChangeGoal,q=a.specContext,r=c("useLWILoggerContext")(),s=c("useLWIReducers")([c("lwiCometObjectiveReducer")]),t="MESSAGES",u=h._("__JHASH__KzZlXmytjqS__JHASH__");a=l(function(){var a={businessGoal:o,description:"whatsappHackyShortLink",goal:n,icon:d("LWICometObjectiveSectionItemUtils").GOAL_ICON_MAP[n],inferredGoal:null,metadataList:[],objective:t,offsiteCustomEvent:null,title:u};s({goal:n,objective:t,offsiteCustomEvent:null,type:"objective_reducer.update_objective"},{side:"client_side"});e===!0&&j&&j(!0);f&&f(a);var c=b==="show_guidance"?"ctwa_hacky_ad_soft_upsell_change_goal_accept":b==="change_ad_goal"?"ctwa_hacky_ad_change_ad_goal":"";c!==""&&m.onReady(function(a){a.logWithLoggerAndSpecContext(r,q,{event:c,side:"user_action"})})},[u,s,e,j,f,b,r,q]);if(b==="change_ad_goal"){a();p&&p(!0);return null}else if(b==="show_guidance"){m.onReady(function(a){a.logWithLoggerAndSpecContext(r,q,{event:"ctwa_hacky_ad_soft_upsell_impression",side:"user_action"})});p=k.jsx("div",{className:"xktsk01 x1d52u69 xw7yly9",children:k.jsx(c("CometContextualMessage.react"),{addOnPrimary:k.jsx(c("LWIOmniButtonGroup.react"),{primary:{label:d("MessagingAdsCTWAFbts").WA_SHORT_LINK_SOFT_UPSELL_BUTTON_LABEL,onPress:a,reduceEmphasis:!0}}),body:d("MessagingAdsCTWAFbts").WA_SHORT_LINK_SOFT_UPSELL_BODY,headline:d("MessagingAdsCTWAFbts").WA_SHORT_LINK_SOFT_UPSELL_HEADLINE,icon:k.jsx(c("FDSIcon.react"),{color:"blueLink",icon:d("fbicon")._(i("479178"),24)}),level:4,onClose:function(){g(""),m.onReady(function(a){a.logWithLoggerAndSpecContext(r,q,{event:"ctwa_hacky_ad_soft_upsell_dismiss",side:"user_action"})})},type:"secondary"})});return p}return null}a.displayName=a.name+" [from "+f.id+"]";b=c("withLWICometSpecPart")(a,function(a){return{assetFeedSpecPlus:a.adgroupSpecs[a.selectedAdgroupID].assetFeedSpecPlus,creativeSpec:a.adgroupSpecs[a.selectedAdgroupID].creative,specContext:a}});g["default"]=b}),226);
-----
LWICometStoryCreationView.react",["fbt","CometRelay","LWICometAdAccountPicker.react","LWICometAdPreviewRightColumnSection.react","LWICometAdvantagePlacementsUtils","LWICometAudienceV2Section.react","LWICometCTASection.react","LWICometCTAUtils","LWICometDurationBudgetSection.react","LWICometEstimationSection.react","LWICometExpandableSectionWrapper.react","LWICometGenericCreationNotices.react","LWICometMessagingAppsSectionConstants","LWICometObjectiveSection.react","LWICometPaymentMethodSection.react","LWICometPaymentSummarySection.react","LWICometPixelSection.react","LWICometPlacementsSection.react","LWICometProductTwoColumnLayoutContainer.react","LWICometRegulatedCategoriesQuerySection.react","LWICometStoryCreationView_boostedComponent.graphql","LWICometStoryCreationView_ctwaInfo.graphql","LWICometStoryCreationView_lwi.graphql","LWICometStoryCreationView_page.graphql","LWICometStoryCreationView_viewer.graphql","LWICometSubmissionSection.react","cr:7410","deferredLoadComponent","lwiCometUnifiedCreationReducer","react","requireDeferred","unrecoverableViolation","useLWIReducers","useMigrateURLParamsToRouteParams","withLWICometSpecPart"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m,n,o=n||d("react"),p=c("deferredLoadComponent")(c("requireDeferred")("LWICometMessagingAppsSection.react").__setRef("LWICometStoryCreationView.react"));function a(a){var e=a.boostedComponent,f=a.boostedComponentInput,g=a.ctwaInfo,n=a.lwi,q=a.page,r=a.rightWash;r=r===void 0?!1:r;var s=a.title,t=a.viewer,u=a.adgroupSpecs,v=a.objective,w=a.selectedAdgroupID;a=a.selectedGoal;var x=c("useLWIReducers")([c("lwiCometUnifiedCreationReducer")]);e=d("CometRelay").useFragment(i!==void 0?i:i=b("LWICometStoryCreationView_boostedComponent.graphql"),e);q=d("CometRelay").useFragment(j!==void 0?j:j=b("LWICometStoryCreationView_page.graphql"),q);n=d("CometRelay").useFragment(k!==void 0?k:k=b("LWICometStoryCreationView_lwi.graphql"),n);t=d("CometRelay").useFragment(l!==void 0?l:l=b("LWICometStoryCreationView_viewer.graphql"),t);g=d("CometRelay").useFragment(m!==void 0?m:m=b("LWICometStoryCreationView_ctwaInfo.graphql"),g);var y=u[w];u=u[w].creative;w=d("LWICometCTAUtils").getLWICometCTA(u,y==null?void 0:y.assetFeedSpecPlus);y=w==null?void 0:w.type;w=d("LWICometMessagingAppsSectionConstants").isWhatsAppNumberBusiness(q==null?void 0:q.connected_whatsapp_number_type);a=d("LWICometMessagingAppsSectionConstants").showUnifiedCreationForPPE(a,null,d("LWICometMessagingAppsSectionConstants").isMessagingAppCTAType(y),v,w);w=(v==="MESSAGES"||a)&&d("LWICometMessagingAppsSectionConstants").isMessagingAppCTAType(y);v=e==null?void 0:e.options;if(!v)throw c("unrecoverableViolation")("options should not be empty or else none of the LWI sections can be rendered","pages_lwi");a=c("useMigrateURLParamsToRouteParams")();y=a.platform;a=d("LWICometAdvantagePlacementsUtils").getIsEligibleForAdvantagePlacements(u);return o.jsx(c("LWICometProductTwoColumnLayoutContainer.react"),{footer:o.jsx(c("LWICometSubmissionSection.react"),{}),headerAuxiliary:o.jsx(c("LWICometAdAccountPicker.react"),{useTwoColumnLayout:!0}),leftContent:[o.jsx(c("LWICometObjectiveSection.react"),{boostedComponentInput:f,eligibleForGoalCard:!0,objectiveSectionRef:q}),o.jsx(c("LWICometCTASection.react"),{boostedComponentInput:f,showHeader:!0,showMessageObjectiveUpsell:!0,showWhatsAppLinkErrorNotice:!0}),o.jsx(o.Fragment,{children:w?o.jsx(p,{boostedComponentInput:f,boostedComponentRef:e,ctwaInfoRef:g,lwiRef:n,macrosRef:t,onCleanUp:function(){x({type:"unified_creation_reducer.clean_up_unified_creation_spec"})},pageRef:q,productFlow:"boost_post_create_flow"}):null}),o.jsx(c("LWICometRegulatedCategoriesQuerySection.react"),{optionsRef:v}),o.jsx(c("LWICometAudienceV2Section.react"),{boostedComponentInput:f}),o.jsx(c("LWICometDurationBudgetSection.react"),{boostedComponent:e,boostedComponentInput:f,fetchRecommendation:!0}),a?o.jsx(c("LWICometPlacementsSection.react"),{options:v}):null,o.jsx(c("LWICometExpandableSectionWrapper.react"),{children:[a?null:o.jsx(c("LWICometPlacementsSection.react"),{options:v},"placements"),o.jsx(c("LWICometPixelSection.react"),{},"pixel"),o.jsx(c("LWICometPaymentMethodSection.react"),{},"payment")].filter(Boolean)})].filter(Boolean),rightContent:[o.jsx(c("LWICometAdPreviewRightColumnSection.react"),{useWashBackground:r}),o.jsx(c("LWICometEstimationSection.react"),{useWashBackground:r}),o.jsx(c("LWICometPaymentSummarySection.react"),{useWashBackground:r})],title:s,topContent:[b("cr:7410")?[o.jsx(b("cr:7410"),{leadSource:y===String("INSTAGRAM")?"boosted_ig_story":"boosted_fb_story"})]:[],o.jsx(c("LWICometGenericCreationNotices.react"),{boostedComponent:e,boostedComponentProduct:f.product,pageID:f.page_id,similarAdNoticeHeader:h._("__JHASH__Aixj3UnHVmv__JHASH__")})].filter(Boolean),useWashRightColumn:r})}a.displayName=a.name+" [from "+f.id+"]";e=c("withLWICometSpecPart")(a,function(a){return{adgroupSpecs:a.adgroupSpecs,objective:a.objective,selectedAdgroupID:a.selectedAdgroupID,selectedGoal:a.goal}});g["default"]=e}),98);
-----
LWICometStoryCreationView_page.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"LWICometStoryCreationView_page",selections:[{args:null,kind:"FragmentSpread",name:"LWICometObjectiveSection_page"},{args:null,kind:"FragmentSpread",name:"LWICometMessagingAppsSection_page"},{alias:null,args:null,kind:"ScalarField",name:"connected_whatsapp_number_type",storageKey:null}],type:"Page",abstractKey:null};e.exports=a}),null);
-----
LWICometInstagramMediaCreationView.react",["fbt","BaseContextualLayerAnchorRoot.react","BizKitAdsGating.entrypointutils","CometRelay","FBLogger","LWICometACOToggle.react","LWICometAdAccountPicker.react","LWICometAdPreviewCTAUtils","LWICometAdPreviewRightColumnSection.react","LWICometAdvantagePlacementsUtils","LWICometCTASection.react","LWICometCTAUtils","LWICometDraftDialogUtils","LWICometDurationBudgetSection.react","LWICometErrorBoundary.react","LWICometEstimationSection.react","LWICometExpandableSectionWrapper.react","LWICometFalcoEvent","LWICometGenericCreationNotices.react","LWICometInstagramMediaCreationView_query.graphql","LWICometMessagingAppsSectionConstants","LWICometMutationUtils","LWICometObjectiveSection.react","LWICometOptionalLoggingDataContext","LWICometPaymentMethodSection.react","LWICometPaymentSummarySection.react","LWICometPlacementsSection.react","LWICometProductTwoColumnLayoutContainer.react","LWICometProductUtils","LWICometRegulatedCategoriesQuerySection.react","LWICometSubmissionSection.react","LWIOmniAudienceSection.react","RelayHooks","cr:3898","cr:5404","cr:5906","cr:7410","gkx","lwiCometUnifiedCreationReducer","qex","react","useLWIBizWebFullScreenGoBack","useLWILoggerContext","useLWIMBSCometBudgetH2BudgetExperiments","useLWIReducers","withLWICometSpecPart"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react");e=d("react");var k=e.useCallback,l=e.useContext,m=e.useState,n=i!==void 0?i:i=b("LWICometInstagramMediaCreationView_query.graphql");function a(a){var e,f,g,i=a.assetFeedSpecPlus,k=a.boostedComponentInput,l=a.budgetType,p=a.creative,q=a.draftID,r=a.durationInDays,s=a.objective,t=a.queryKey,u=a.rightWash;u=u===void 0?!1:u;var v=a.selectedBudget,w=a.selectedGoal,x=a.title;a=a.zeroOutcomesDailyBudget;var y=c("gkx")("524"),z=!y||d("BizKitAdsGating.entrypointutils").getIsFBIGFeaturesIncludedInIGInfra();t=d("CometRelay").useFragment(n,t);e=(e=t.lwi)==null?void 0:e.boosted_component_wrapper;if(!e)throw c("FBLogger")("mbs_ads").mustfixThrow("boosted component should not be empty or else none of the LWI sections can be rendered");var A=e==null?void 0:e.context_spec,B=t.page,C=t==null?void 0:t.click_to_whatsapp_ads_info,D=t==null?void 0:t.lwi;t=t.viewer;var E=e==null?void 0:e.options;if(!E)throw c("FBLogger")("mbs_ads").mustfixThrow("options should not be empty or else none of the LWI sections can be rendered");var F=m(!1),G=F[0];F=F[1];w=w==="ONSITE_OFFSITE_LEAD_GEN";f=(f=A==null?void 0:(f=A.post)==null?void 0:f.contains_instagram_video)!=null?f:!1;var H=m(f),I=H[0];H=H[1];var J=(g=A==null?void 0:(g=A.post)==null?void 0:g.is_scheduled_post)!=null?g:!1,K=c("useLWIReducers")([c("lwiCometUnifiedCreationReducer")]);i=(g=d("LWICometCTAUtils").getLWICometCTA(p,i))==null?void 0:g.type;g=(g=A==null?void 0:(g=A.page)==null?void 0:g.is_lightswitch_enabled)!=null?g:!1;var L=a;a!=null&&(L=l==="DAILY_BUDGET"?a:a*r);l=d("useLWIMBSCometBudgetH2BudgetExperiments").shouldHideZeroOutcomeExpansionOutcomeEstimation();a=o();r=!g&&s==="MESSAGES"&&d("LWICometMessagingAppsSectionConstants").isMessagingAppCTAType(i)&&b("cr:3898")!=null;g=d("LWICometAdvantagePlacementsUtils").getIsEligibleForAdvantagePlacements(p);s=c("useLWIBizWebFullScreenGoBack")();var M=A==null?void 0:(i=A.post)==null?void 0:i.instagram_media_product_type;p=function(){if(J&&q!=null)return h._("u4fddu5b58u66f4u6539");switch(M){case"STORY":return h._("u7acbu5373u901fu63a8u5febu62cd");case"CLIPS":return h._("u7acbu5373u901fu63a8 Reels");default:return h._("u7acbu5373u901fu63a8")}};i=(i=c("qex")._("784"))!=null?i:!1;return j.jsx(c("LWICometProductTwoColumnLayoutContainer.react"),{footer:j.jsx(c("LWICometSubmissionSection.react"),{disableSubmitButton:G||I,overrideBoostButtonLabel:p(),overrideCommitMutation:J?a:null,secondaryButton:y&&s!=null?{label:h._("u53d6u6d88"),onPress:s}:void 0}),headerAuxiliary:y&&b("cr:5404")?j.jsx(b("cr:5404"),{lwi:D,useTwoColumnLayout:!0}):j.jsx(c("LWICometAdAccountPicker.react"),{useTwoColumnLayout:!0}),leftContent:[j.jsx(c("LWICometObjectiveSection.react"),{boostedComponentInput:k,eligibleForGoalCard:z}),j.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometACOToggleSection",children:j.jsx(c("LWICometACOToggle.react"),{pageRef:z?B:null,showAdOptimizationSection:z,showInstagramContent:!0})}),w&&b("cr:5906")!=null?j.jsx(b("cr:5906"),{boostedComponentInput:k,contextSpec:A,setDisableSubmitButton:F}):null,r?null:j.jsx(c("BaseContextualLayerAnchorRoot.react"),{children:j.jsx(c("LWICometCTASection.react"),{boostedComponentInput:k,shouldFilterCallNow:!0,shouldShowCTASectionWithOneEligibleCTA:!0,shouldShowUnifiedCreation:r,showGenericTooltip:!0,showHeader:!0,showWhatsAppLinkErrorNotice:!0})}),r&&b("cr:3898")!=null?j.jsx(b("cr:3898"),{boostedComponentInput:k,boostedComponentRef:e,ctwaInfoRef:C,lwiRef:D,macrosRef:t,onCleanUp:function(){return K({type:"unified_creation_reducer.clean_up_unified_creation_spec"})},pageRef:B,productFlow:"boost_instagram_media_create_flow"}):null,j.jsx(c("LWICometRegulatedCategoriesQuerySection.react"),{optionsRef:E}),j.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWIOmniAudienceSection",children:j.jsx(c("LWIOmniAudienceSection.react"),{boostedComponent:e,boostedComponentInput:k})}),j.jsx(c("LWICometDurationBudgetSection.react"),{boostedComponent:e,boostedComponentInput:k,disableRunContinuouslyOption:!0,fetchRecommendation:!0,newRecommendationUpdatesLocalBudget:i}),g?j.jsx(c("LWICometPlacementsSection.react"),{options:E,showSinglePlacement:!0}):null,j.jsx(c("LWICometExpandableSectionWrapper.react"),{children:[g?null:j.jsx(c("LWICometPlacementsSection.react"),{options:E,showSinglePlacement:!0},"placements"),j.jsx(c("LWICometPaymentMethodSection.react"),{},"payment")].filter(Boolean)})].filter(Boolean),rightContent:[j.jsx(c("LWICometAdPreviewRightColumnSection.react"),{defaultToInstagramPreview:!0,getPreviewCtaValue:f?void 0:d("LWICometAdPreviewCTAUtils").getDefaultCtaValue,isStory:M==="STORY",isVideoUploading:I,setIsVideoUploading:H,useWashBackground:u}),j.jsx(c("LWICometEstimationSection.react"),{hideResultsEstimate:L!=null&&v-----
LWICometUserPostCreationView.react",["fbt","AdIntegrityPrecreateValidationBannerRootWrapper.react","CometRelay","LWICometAdAccountPicker.react","LWICometAdPreviewCTAUtils","LWICometAdPreviewRightColumnSection.react","LWICometAdblockNotice.react","LWICometAudienceV2Section.react","LWICometCTASection.react","LWICometConstants","LWICometDurationBudgetSection.react","LWICometErrorBoundary.react","LWICometEstimationSection.react","LWICometExpandableSectionWrapper.react","LWICometObjectiveSection.react","LWICometPaymentMethodSection.react","LWICometPaymentSummarySection.react","LWICometProductTwoColumnLayoutContainer.react","LWICometRegulatedCategoriesQuerySection.react","LWICometSubmissionSection.react","LWICometUserPostCreationView_boostedComponent.graphql","XCometVanityURLControllerRouteBuilder","cr:1392678","gkx","react","unrecoverableViolation","useLWICometContextualDataContext","useLWILoggerContext"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react"),k=d("react").useMemo;function a(a){var e=a.boostedComponent,f=a.boostedComponentInput;a=a.title;e=d("CometRelay").useFragment(i!==void 0?i:i=b("LWICometUserPostCreationView_boostedComponent.graphql"),e);var g=c("useLWICometContextualDataContext")(),l=e==null?void 0:e.options;if(!l)throw c("unrecoverableViolation")("options should not be empty or else none of the LWI sections can be rendered","pages_lwi");var m=l.eligible_objectives,n=c("useLWILoggerContext")();n=n.pageID;n=c("XCometVanityURLControllerRouteBuilder").buildURL({vanity:n});var o=g.postInfo.postType===d("LWICometConstants").PHOTO_POST_TYPE;g=k(function(){return!o&&m.some(function(a){return a.objective==="LINK_CLICKS"})},[m,o]);return j.jsx(c("LWICometProductTwoColumnLayoutContainer.react"),{footer:j.jsx(c("LWICometSubmissionSection.react"),{adCreationDialogButtonPropsOverride:{buttonLinkOverride:n},hideAdCenterLinkInAdCreationDialog:!0,overrideBoostButtonLabel:h._("u7acbu5373u901fu63a8"),shouldGoBackOnSuccess:c("gkx")("1467740")===!1}),headerAuxiliary:j.jsx(c("LWICometAdAccountPicker.react"),{useTwoColumnLayout:!0}),leftContent:[j.jsx(c("AdIntegrityPrecreateValidationBannerRootWrapper.react"),{callsite:"LWI_WWW"}),j.jsx(c("LWICometAdblockNotice.react"),{}),j.jsx(c("LWICometObjectiveSection.react"),{boostedComponentInput:f,eligibleForGoalCard:!0}),j.jsx(c("LWICometCTASection.react"),{boostedComponentInput:f,hideLinkEditor:g,shouldFilterCallNow:!0,showHeader:!0,showMessageObjectiveUpsell:!0,showWhatsAppLinkErrorNotice:!0}),j.jsx(c("LWICometRegulatedCategoriesQuerySection.react"),{optionsRef:l}),j.jsx(c("LWICometAudienceV2Section.react"),{boostedComponentInput:f}),j.jsx(c("LWICometDurationBudgetSection.react"),{boostedComponent:e,boostedComponentInput:f,fetchRecommendation:!0}),j.jsx(c("LWICometExpandableSectionWrapper.react"),{children:j.jsx(c("LWICometPaymentMethodSection.react"),{})})],rightContent:[j.jsx(c("LWICometAdPreviewRightColumnSection.react"),{getPreviewCtaValue:d("LWICometAdPreviewCTAUtils").getDefaultCtaValue,usePlaceholderWebsite:o}),j.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometEstimationSection",children:j.jsx(c("LWICometEstimationSection.react"),{})}),j.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometPaymentSummarySection",children:j.jsx(c("LWICometPaymentSummarySection.react"),{})})],title:a,topContent:b("cr:1392678")?j.jsx(b("cr:1392678"),{leadSource:"BOOSTED_USER_POST"}):void 0})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LWICometJobObjectiveSection.react",["fbt","ix","LWICometObjectiveSectionItemUtils","LWICometSection.react","LWICometSectionGlimmer.react","LWIOmniListCell.react","fbicon","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j=d("react"),k={title:h._("u76eeu6807")};function a(a){a=a.isBulkBoosting;a=a===void 0?!1:a;return j.jsx(c("LWICometSection.react"),{fallback:j.jsx(c("LWICometSectionGlimmer.react"),{}),header:k,specElement:"GOAL",children:j.jsx(c("LWIOmniListCell.react"),{addOnPrimary:{color:"seafoam",icon:d("fbicon")._(i("481906"),24),size:36,type:"contained-icon"},headline:h._("u5438u5f15u66f4u591au6c42u804cu8005"),level:3,meta:d("LWICometObjectiveSectionItemUtils").getJobObjectiveDescription(a)})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LWICometFBInstagramMediaCreationView.react",["fbt","CometRelay","CommerceManagerMarketingCampaignContext","LWICometACOToggle.react","LWICometAdAccountPicker.react","LWICometAdPreviewCTAUtils","LWICometAdPreviewRightColumnSection.react","LWICometAudienceV2Section.react","LWICometCTAUtils","LWICometDraftDialogUtils","LWICometDurationBudgetSection.react","LWICometErrorBoundary.react","LWICometEstimationSection.react","LWICometExpandableSectionWrapper.react","LWICometFBInstagramMediaCreationView_boostedComponent.graphql","LWICometFBInstagramMediaCreationView_ctaOptions.graphql","LWICometFBInstagramMediaCreationView_ctwaInfo.graphql","LWICometFBInstagramMediaCreationView_lwi.graphql","LWICometFBInstagramMediaCreationView_page.graphql","LWICometFBInstagramMediaCreationView_viewer.graphql","LWICometFalcoEvent","LWICometGenericCreationNotices.react","LWICometMessagingAppsSectionConstants","LWICometMutationUtils","LWICometObjectiveSection.react","LWICometOptionalLoggingDataContext","LWICometPaymentMethodSection.react","LWICometPaymentSummarySection.react","LWICometPlacementsSection.react","LWICometProductTwoColumnLayoutContainer.react","LWICometProductUtils","LWICometRegulatedCategoriesQuerySection.react","LWICometSimplifiedCTASection.react","LWICometSubmissionSection.react","RelayHooks","cr:1392678","deferredLoadComponent","lwiCometUnifiedCreationReducer","react","recoverableViolation","requireDeferred","unrecoverableViolation","useDebouncedValue","useLWICometEligibleCTAs","useLWILoggerContext","useLWIReducers","withLWICometSpecPart"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m,n,o=d("react");e=d("react");var p=e.useCallback,q=e.useContext,r=e.useState,s=e.useTransition,t=c("deferredLoadComponent")(c("requireDeferred")("LWICometMessagingAppsSection.react").__setRef("LWICometFBInstagramMediaCreationView.react")),u=200,v=i!==void 0?i:i=b("LWICometFBInstagramMediaCreationView_ctaOptions.graphql");function a(a){var e,f,g=a.assetFeedSpecPlus,i=a.boostedComponent,w=a.boostedComponentInput,x=a.creative,y=a.ctaOptions$key,z=a.ctwaInfo,A=a.draftID,B=a.lwi,C=a.objective,D=a.page,E=a.rightWash;E=E===void 0?!1:E;var F=a.selectedGoal,G=a.title;a=a.viewer;i=d("CometRelay").useFragment(j!==void 0?j:j=b("LWICometFBInstagramMediaCreationView_boostedComponent.graphql"),i);var H=d("CometRelay").useFragment(k!==void 0?k:k=b("LWICometFBInstagramMediaCreationView_page.graphql"),D);z=d("CometRelay").useFragment(l!==void 0?l:l=b("LWICometFBInstagramMediaCreationView_ctwaInfo.graphql"),z);var I=d("CometRelay").useFragment(m!==void 0?m:m=b("LWICometFBInstagramMediaCreationView_lwi.graphql"),B);a=d("CometRelay").useFragment(n!==void 0?n:n=b("LWICometFBInstagramMediaCreationView_viewer.graphql"),a);var J=d("RelayHooks").useRelayEnvironment(),K=c("useLWILoggerContext")(),L=q(c("LWICometOptionalLoggingDataContext")),M=K.flowID,N=K.pageID,O=K.product,P=K.targetID,Q=i==null?void 0:i.options;if(!Q)throw c("unrecoverableViolation")("options should not be empty or else none of the LWI sections can be rendered","pages_lwi");var R=d("RelayHooks").useRefetchableFragment(v,y),S=R[0],T=R[1];R=q(c("CommerceManagerMarketingCampaignContext"));var U=R==null?void 0:R.setBoostAsyncRequestID,V=R==null?void 0:R.setBoostDraftID,W=R==null?void 0:R.stepID;function X(a){a=(a=a.create_boosted_component)==null?void 0:a.id;U!=null&&a!=null&&U(a)}e=(e=(e=i.context_spec)==null?void 0:(e=e.post)==null?void 0:e.contains_instagram_video)!=null?e:!1;var Y=r(e),Z=Y[0];Y=Y[1];f=(f=(f=i.context_spec)==null?void 0:(f=f.post)==null?void 0:f.is_scheduled_post)!=null?f:!1;A=f?A!=null?h._("u4fddu5b58u66f4u6539"):h._("u901fu63a8u5e16u5b50"):null;var aa=c("useLWIReducers")([c("lwiCometUnifiedCreationReducer")]);g=(x=d("LWICometCTAUtils").getLWICometCTA(x,g))==null?void 0:x.type;x=p(function(a,b){var e="UNPUBLISHED_CONTENT";b=d("LWICometMutationUtils").getCreationMutationData({loggerContext:K,optionalLoggingData:L,spec:a,specHistory:b});b=b.input.creation_spec;d("LWICometDraftDialogUtils").draftMutation({environment:J,existingDraftID:a.draftID,flowID:M,onCompletedCreate:function(b){b!=null&&V!=null&&V(b),d("LWICometFalcoEvent").log({action:"create",context:"ad",creative_spec:JSON.stringify(a.adgroupSpecs),event:"submit_flow",flow:K.flow,flow_id:K.flowID,page_id:K.pageID,post_id:K.targetID,product:d("LWICometProductUtils").productFromGraphQLEnumToJSEnumStrict(K.product),side:"user_action",targeting_spec:JSON.stringify(a.audienceData.targetSpec)})},onCompletedUpdate:function(a){a!=null&&V!=null&&V(a)},onErrorCreate:function(){c("recoverableViolation")("Failed to create draft","pages_lwi")},onErrorUpdate:function(){c("recoverableViolation")("Failed to update draft","pages_lwi")},pageID:N,product:O,spec:b,targetID:P,useCase:e})},[J,M,V,K,L,N,O,P]);S=c("useLWICometEligibleCTAs")(y!=null?S==null?void 0:(S=S.lwi)==null?void 0:(S=S.boosted_component)==null?void 0:S.options:Q);B=B!=null&&D!=null;D=F==="AUTOMATIC"&&d("LWICometMessagingAppsSectionConstants").ctaOptionsArrayHasMultipleMessagingDestinations(S);B=B&&C==="MESSAGES"&&d("LWICometMessagingAppsSectionConstants").ctaOptionsArrayHasMultipleMessagingDestinations(S)&&d("LWICometMessagingAppsSectionConstants").isMessagingAppCTAType(g);C=s();g=C[0];var $=C[1];C=c("useDebouncedValue")(g,u)&&g;g=p(function(a){y!=null&&$(function(){T({goal:a.goal,input:w,objective:a.objective},{fetchPolicy:"store-or-network"})})},[w,y,T,$]);return o.jsx(c("LWICometProductTwoColumnLayoutContainer.react"),{footer:o.jsx(c("LWICometSubmissionSection.react"),{disableSubmitButton:Z,externalDependentEntID:W,onMutationComplete:X,overrideBoostButtonLabel:(W=A)!=null?W:h._("u7acbu5373u901fu63a8"),overrideCommitMutation:f?x:null}),headerAuxiliary:o.jsx(c("LWICometAdAccountPicker.react"),{useTwoColumnLayout:!0}),leftContent:[o.jsx(c("LWICometObjectiveSection.react"),{boostedComponentInput:w,eligibleForGoalCard:!0,onChangeGoal:g,onSaveGoal:g}),o.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometACOToggleSection",children:o.jsx(c("LWICometACOToggle.react"),{pageRef:H,showAdOptimizationSection:!0})}),o.jsx(o.Fragment,{children:S.length>0&&(F==="AUTOMATIC"||!B)?o.jsx(c("LWICometSimplifiedCTASection.react"),{boostedComponentInput:w,ctaOptions:S,instagramUsername:H==null?void 0:(X=H.coalesced_linked_instagram_account)==null?void 0:X.username,isEligibleForUnifiedCreationMergedCTA:D,isLoading:C,isWhatsAppBusinessNumber:d("LWICometMessagingAppsSectionConstants").isWhatsAppNumberBusiness(H==null?void 0:H.connected_whatsapp_number_type),onChangeGoal:g,shouldShowCTASectionWithOneEligibleCTA:!0,showHeader:!0}):null}),o.jsx(c("LWICometRegulatedCategoriesQuerySection.react"),{optionsRef:Q}),o.jsx(o.Fragment,{children:B?o.jsx(t,{boostedComponentInput:w,boostedComponentRef:i,ctwaInfoRef:z,lwiRef:I,macrosRef:a,onCleanUp:function(){return aa({type:"unified_creation_reducer.clean_up_unified_creation_spec"})},pageRef:H,productFlow:"boost_fb_instagram_media_create_flow"}):null}),o.jsx(c("LWICometAudienceV2Section.react"),{boostedComponentInput:w}),o.jsx(c("LWICometDurationBudgetSection.react"),{boostedComponent:i,boostedComponentInput:w,disableRunContinuouslyOption:!0,fetchRecommendation:!0,requireStartDatePicker:R!=null}),o.jsxs(c("LWICometExpandableSectionWrapper.react"),{children:[o.jsx(c("LWICometPlacementsSection.react"),{options:Q}),o.jsx(c("LWICometPaymentMethodSection.react"),{})]})],rightContent:[o.jsx(c("LWICometAdPreviewRightColumnSection.react"),{getPreviewCtaValue:e?void 0:d("LWICometAdPreviewCTAUtils").getDefaultCtaValue,isVideoUploading:Z,setIsVideoUploading:Y,useWashBackground:E}),o.jsx(c("LWICometEstimationSection.react"),{useWashBackground:E}),o.jsx(c("LWICometPaymentSummarySection.react"),{useWashBackground:E})],title:G,topContent:[b("cr:1392678")?[o.jsx(b("cr:1392678"),{leadSource:"BOOSTED_FB_INSTAGRAM_MEDIA"})]:[],o.jsx(c("LWICometGenericCreationNotices.react"),{boostedComponent:i,boostedComponentProduct:w.product,pageID:w.page_id,similarAdNoticeHeader:h._("u4f60u76eeu524du5df2u901fu63a8u8fd9u7bc7u5e16u5b50u3002")})],useWashRightColumn:E})}a.displayName=a.name+" [from "+f.id+"]";e=c("withLWICometSpecPart")(a,function(a){var b=a.adgroupSpecs[a.selectedAdgroupID];return{assetFeedSpecPlus:b.assetFeedSpecPlus,creative:b.creative,draftID:a.draftID,objective:a.objective,selectedGoal:a.goal}});g["default"]=e}),98);
-----
LWIBizWebEventCreationViewCore.react",["fbt","ix","CometRelay","LWIBizWebCometFullScreenNavigationUtils","LWIBizWebEventCreationViewCore_boostedComponent.graphql","LWIBizWebFullScreenUIContext","LWIBizWebSubmissionSection.react","LWICometAdAccountPicker.react","LWICometAdPreviewRightColumnSection.react","LWICometAudienceSection.react","LWICometCreativeSection.react","LWICometDurationBudgetSection.react","LWICometEstimationSection.react","LWICometExpandableSectionWrapper.react","LWICometGenericCreationNotices.react","LWICometObjectiveSection.react","LWICometPaymentMethodSection.react","LWICometPaymentSummarySection.react","LWICometPixelSection.react","LWICometPlacementsSection.react","LWICometProductTwoColumnLayoutContainer.react","LWICometRegulatedCategoriesQuerySection.react","cr:1392678","cr:483","deferredLoadComponent","fbicon","react","requireDeferred","unrecoverableViolation","useLWICometPostsAsCreativesEntrypointDialog"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=d("react"),l=d("react").useContext,m=c("deferredLoadComponent")(c("requireDeferred")("LWICometEventObjectiveEffectSection.react").__setRef("LWIBizWebEventCreationViewCore.react")),n={LINK_CLICKS:d("fbicon")._(i("562221"),20)};function a(a){var e,f=a.boostedComponent,g=a.boostedComponentInput,i=a.rightWash;i=i===void 0?!1:i;a=a.title;f=d("CometRelay").useFragment(j!==void 0?j:j=b("LWIBizWebEventCreationViewCore_boostedComponent.graphql"),f);var o=c("useLWICometPostsAsCreativesEntrypointDialog")(g.page_id);o=o[0];var p=f==null?void 0:f.options;if(!p)throw c("unrecoverableViolation")("options should not be empty or else none of the LWI sections can be rendered","pages_lwi");var q=d("LWIBizWebCometFullScreenNavigationUtils").useLWIBizWebFullScreenGoBack();e=(e=(e=l(c("LWIBizWebFullScreenUIContext")))==null?void 0:e.shouldCollapseLists)!=null?e:!1;var r=e?"square":void 0;return k.jsx(c("LWICometProductTwoColumnLayoutContainer.react"),{footer:k.jsx(c("LWIBizWebSubmissionSection.react"),{overrideBoostButtonLabel:h._("u7acbu5373u901fu63a8u6d3bu52a8"),secondaryButton:q!=null?{label:h._("u53d6u6d88"),onPress:q}:void 0}),headerAuxiliary:k.jsx(c("LWICometAdAccountPicker.react"),{useTwoColumnLayout:!0}),leftContent:[k.jsx(c("LWICometObjectiveSection.react"),{boostedComponentInput:g,iconOverride:n}),k.jsx(m,{boostedComponentInput:g}),k.jsx(c("LWICometCreativeSection.react"),{aux:o,showHeadline:!1}),k.jsx(c("LWICometRegulatedCategoriesQuerySection.react"),{optionsRef:p}),k.jsx(c("LWICometAudienceSection.react"),{boostedComponent:f,boostedComponentInput:g,isBizWebCollapsed:e}),e&&b("cr:483")?k.jsx(b("cr:483"),{boostedComponent:f,boostedComponentInput:g,fetchRecommendation:!0}):k.jsx(c("LWICometDurationBudgetSection.react"),{boostedComponent:f,boostedComponentInput:g,fetchRecommendation:!0}),k.jsxs(c("LWICometExpandableSectionWrapper.react"),{children:[k.jsx(c("LWICometPlacementsSection.react"),{iconShape:r,options:p}),k.jsx(c("LWICometPixelSection.react"),{iconShape:r}),k.jsx(c("LWICometPaymentMethodSection.react"),{iconShape:r})]})].filter(Boolean),rightContent:[k.jsx(c("LWICometAdPreviewRightColumnSection.react"),{useWashBackground:i}),k.jsx(c("LWICometEstimationSection.react"),{useBizWebWash:i,useWashBackground:i}),k.jsx(c("LWICometPaymentSummarySection.react"),{useWashBackground:i})],title:a,topContent:[b("cr:1392678")?[k.jsx(b("cr:1392678"),{leadSource:"BOOSTED_EVENT"})]:[],k.jsx(c("LWICometGenericCreationNotices.react"),{boostedComponent:f,boostedComponentProduct:g.product,pageID:g.page_id})],useWashRightColumn:i})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LWIBizWebStoryCreationDialogView.react",["fbt","BaseContextualLayerAnchorRoot.react","CometRelay","LWIBizWebStoryCreationDialogView_boostedComponent.graphql","LWICometAdAccountPicker.react","LWICometAdPreviewCTAUtils","LWICometAdPreviewRightColumnSection.react","LWICometAudienceSection.react","LWICometCTASection.react","LWICometDurationBudgetSection.react","LWICometErrorBoundary.react","LWICometEstimationSection.react","LWICometExpandableSectionWrapper.react","LWICometGenericCreationNotices.react","LWICometMarketingExpertUpsellSectionWrapper.react","LWICometObjectiveSection.react","LWICometPaymentMethodSection.react","LWICometPaymentSummarySection.react","LWICometPlacementsSection.react","LWICometProductTwoColumnLayoutContainer.react","LWICometRegulatedCategoriesQuerySection.react","LWICometSubmissionSection.react","cr:1392678","qex","react","unrecoverableViolation","useLWIVideoCheckStoryReady","useRoutePassthroughProps","withLWICometSpecPart"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j=d("react"),k=d("react").useState,l=function(a){return a?!0:(a=c("qex")._("350"))!=null?a:!1};function a(a){var e,f=a.adgroupSpecs,g=a.boostedComponent,m=a.boostedComponentInput,n=a.devicePlatforms,o=a.rightWash;o=o===void 0?!1:o;var p=a.selectedAdgroupID,q=a.targetSpec;a=a.title;g=d("CometRelay").useFragment(i!==void 0?i:i=b("LWIBizWebStoryCreationDialogView_boostedComponent.graphql"),g);var r=g==null?void 0:g.options;if(r==null)throw c("unrecoverableViolation")("options should not be empty or else none of the LWI sections can be rendered","mbs_ads");var s=m.product==="BOOSTED_IG_STORY";e=(e=(e=g.context_spec)==null?void 0:(e=e.post)==null?void 0:e.contains_instagram_video)!=null?e:!1;var t=k(e),u=t[0];t=t[1];f=f[p].creative;p=f==null?void 0:f.object_story_id;f=c("useRoutePassthroughProps")();p=c("useLWIVideoCheckStoryReady")((f==null?void 0:f.isEncodingVideoPost)===!0,(f=p)!=null?f:"");q=(f=q.geo_locations)==null?void 0:f.countries;f=n==null?void 0:n.map(function(a){return String(a)});q==null?void 0:q.sort();f==null?void 0:f.sort();n=j.jsx(c("LWICometSubmissionSection.react"),{disableSubmitButton:s?u:!p,overrideBoostButtonLabel:h._("u7acbu5373u901fu63a8u5febu62cd"),overrideCommitMutation:null});return j.jsx(c("LWICometProductTwoColumnLayoutContainer.react"),{footer:n,headerAuxiliary:j.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometAdAccountPicker",children:j.jsx(c("LWICometAdAccountPicker.react"),{useTwoColumnLayout:!0})}),leftContent:[l(e)?j.jsxs(j.Fragment,{children:[j.jsx(c("LWICometObjectiveSection.react"),{boostedComponentInput:m,eligibleForGoalCard:!1}),j.jsx(c("BaseContextualLayerAnchorRoot.react"),{children:j.jsx(c("LWICometCTASection.react"),{boostedComponentInput:m,shouldFilterCallNow:!0,shouldShowCTASectionWithOneEligibleCTA:!0,showGenericTooltip:!0,showHeader:!0,showWhatsAppLinkErrorNotice:!0})})]}):null,j.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometRegulatedCategoriesQuerySection",children:j.jsx(c("LWICometRegulatedCategoriesQuerySection.react"),{optionsRef:r})}),j.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometAudienceSection",children:j.jsx(c("LWICometAudienceSection.react"),{boostedComponent:g,boostedComponentInput:m})}),j.jsx(c("LWICometDurationBudgetSection.react"),{boostedComponent:g,boostedComponentInput:m,disableRunContinuouslyOption:!0,fetchBudgetThreshold:!0,fetchRecommendation:!0}),j.jsxs(c("LWICometExpandableSectionWrapper.react"),{children:[j.jsx(c("LWICometPlacementsSection.react"),{options:r,showSinglePlacement:!0}),j.jsx(c("LWICometPaymentMethodSection.react"),{hasBottomDivider:!1})]})].filter(Boolean),rightContent:[j.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometAdPreviewRightColumnSection",children:j.jsx(c("LWICometAdPreviewRightColumnSection.react"),{defaultToInstagramPreview:s,getPreviewCtaValue:d("LWICometAdPreviewCTAUtils").getDefaultCtaValue,isStory:!0,isVideoStoryReady:s||p,isVideoUploading:s&&u,setIsVideoUploading:s?t:void 0,useWashBackground:o})}),j.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometEstimationSection",children:j.jsx(c("LWICometEstimationSection.react"),{useBizWebWash:o,useWashBackground:o})}),j.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometPaymentSummarySection",children:j.jsx(c("LWICometPaymentSummarySection.react"),{useWashBackground:o})}),j.jsx(c("LWICometMarketingExpertUpsellSectionWrapper.react"),{hasTopDivider:!0,pageID:m.page_id,useWashBackground:o})],title:a,topContent:[b("cr:1392678")?[j.jsx(b("cr:1392678"),{leadSource:"BOOSTED_FB_STORY"})]:[],j.jsx(c("LWICometGenericCreationNotices.react"),{boostedComponent:g,boostedComponentProduct:m.product,pageID:m.page_id,similarAdNoticeHeader:h._("u4f60u76eeu524du5df2u901fu63a8u8fd9u6761u5febu62cdu3002")})],useWashRightColumn:o})}a.displayName=a.name+" [from "+f.id+"]";e=c("withLWICometSpecPart")(a,function(a){return{adgroupSpecs:a.adgroupSpecs,devicePlatforms:a.placementSpec.publisher_platforms,selectedAdgroupID:a.selectedAdgroupID,targetSpec:a.audienceData.targetSpec}});g["default"]=e}),98);
-----
LWIBizWebPostCreationSharedGoalAndButtonSection.react",["CometPlaceholder.react","CometRelay","LWIBizWebPostCreationSharedGoalAndButtonSectionPlaceholder.react","LWIBizWebPostCreationSharedGoalAndButtonSection_boostedComponent.graphql","LWIBizWebPostCreationSharedGoalAndButtonSection_ctwaInfo.graphql","LWIBizWebPostCreationSharedGoalAndButtonSection_lwi.graphql","LWIBizWebPostCreationSharedGoalAndButtonSection_page.graphql","LWIBizWebPostCreationSharedGoalAndButtonSection_viewer.graphql","LWICometBoostPostExistingCTASection.react","LWICometCTASection.react","LWICometCTAUtils","LWICometConstants","LWICometLeadGenFormSelectorSection.react","LWICometMessagingAppsSectionConstants","LWICometObjectiveSection.react","LWICometPostButtonDestinationConfigUtils","deferredLoadComponent","lwiCometUnifiedCreationReducer","react","requireDeferred","useLWICometContextualDataContext","useLWIReducers","withLWICometSpecPart"],(function(a,b,c,d,e,f,g){"use strict";var h,i,j,k,l,m=d("react");e=d("react");var n=e.useEffect,o=e.useState,p=c("deferredLoadComponent")(c("requireDeferred")("LWICometMessagingAppsSection.react").__setRef("LWIBizWebPostCreationSharedGoalAndButtonSection.react"));function a(a){var e,f=a.adgroupSpecs,g=a.boostedComponent,q=a.boostedComponentInput,r=a.ctwaInfo,s=a.lwi,t=a.objective,u=a.page,v=a.selectedAdgroupID,w=a.selectedGoal;a=a.viewer;var x=c("useLWIReducers")([c("lwiCometUnifiedCreationReducer")]),y=d("CometRelay").useFragment(h!==void 0?h:h=b("LWIBizWebPostCreationSharedGoalAndButtonSection_boostedComponent.graphql"),g);g=d("CometRelay").useFragment(i!==void 0?i:i=b("LWIBizWebPostCreationSharedGoalAndButtonSection_lwi.graphql"),s);s=d("CometRelay").useFragment(j!==void 0?j:j=b("LWIBizWebPostCreationSharedGoalAndButtonSection_ctwaInfo.graphql"),r);r=d("CometRelay").useFragment(k!==void 0?k:k=b("LWIBizWebPostCreationSharedGoalAndButtonSection_viewer.graphql"),a);a=d("CometRelay").useFragment(l!==void 0?l:l=b("LWIBizWebPostCreationSharedGoalAndButtonSection_page.graphql"),u);u=o(!1);u[0];u=u[1];e=(e=(e=y.context_spec)==null?void 0:(e=e.page)==null?void 0:e.is_lightswitch_enabled)!=null?e:!1;var z=f[v];f=f[v].creative;f=(v=d("LWICometCTAUtils").getLWICometCTA(f,z==null?void 0:z.assetFeedSpecPlus))==null?void 0:v.type;z=c("useLWICometContextualDataContext")();v=z.postInfo.postUsedForRunningAds===!0;var A=y==null?void 0:y.context_spec,B=z.postInfo.callToActionType;f=d("LWICometMessagingAppsSectionConstants").isMessagingAppCTAType(f)||B==="MESSAGE_PAGE";f=!e&&f&&t==="MESSAGES";t=z.postInfo.postType===d("LWICometConstants").LINK_POST_TYPE;n(function(){y.exposeCouponDefaultBudgetExperiment===!0},[y.exposeCouponDefaultBudgetExperiment]);z=[m.jsx(c("LWICometObjectiveSection.react"),{boostedComponentInput:q,eligibleForGoalCard:!0},"objectiveSection"),c("LWICometLeadGenFormSelectorSection.react")!=null&&!v&&(w==="ONSITE_OFFSITE_LEAD_GEN"||w==="LEAD_GENERATION")?m.jsx(c("LWICometLeadGenFormSelectorSection.react"),{boostedComponentInput:q,contextSpec:A,setDisableSubmitButton:u},"leadgen"):m.jsx(m.Fragment,{},"leadGenNull"),m.jsx(m.Fragment,{children:B==null&&(w==="AUTOMATIC"||!f)&&m.jsx(c("LWICometCTASection.react"),{boostedComponentInput:q,buttonDestinationOptionsConfig:e===!1?d("LWICometPostButtonDestinationConfigUtils").boostedPostButtonDestinationOptions:void 0,hideLinkEditor:t,shouldFilterCallNow:!0,shouldShowUnifiedCreation:f,showHeader:!0,showMessageObjectiveUpsell:!0,showWhatsAppLinkErrorNotice:!0})},"ctaSection"),m.jsx(m.Fragment,{children:B==="WHATSAPP_MESSAGE"&&!f?m.jsx(c("LWICometBoostPostExistingCTASection.react"),{}):null},"existingCTA"),m.jsx(m.Fragment,{children:f?m.jsx(p,{boostedComponentInput:q,boostedComponentRef:y,ctwaInfoRef:s,lwiRef:g,macrosRef:r,onCleanUp:function(){x({type:"unified_creation_reducer.clean_up_unified_creation_spec"})},pageRef:a,productFlow:"boost_post_create_flow"}):null},"MessagingApps")];return m.jsx(c("CometPlaceholder.react"),{fallback:m.jsx(c("LWIBizWebPostCreationSharedGoalAndButtonSectionPlaceholder.react"),{}),children:z})}a.displayName=a.name+" [from "+f.id+"]";e=c("withLWICometSpecPart")(a,function(a){return{adgroupSpecs:a.adgroupSpecs,durationInDays:a.durationInDays,objective:a.objective,selectedAdgroupID:a.selectedAdgroupID,selectedGoal:a.goal,targetSpec:a.audienceData.targetSpec}});g["default"]=e}),98);
-----
LWIBizWebPostCreationSharedGoalAndButtonSectionPlaceholder.react",["LWICometCTASectionPlaceholder.react","LWICometObjectiveSectionPlaceholder.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){return[h.jsx(c("LWICometObjectiveSectionPlaceholder.react"),{},"objectivePlaceholder"),h.jsx(c("LWICometCTASectionPlaceholder.react"),{},"ctaPlaceholder")]}g["default"]=a}),98);
-----
LWICometConsolidatedProductCreationView.react",["fbt","ix","CometContextualMessage.react","CometIcon.react","CometRelay","LWICometACOToggle.react","LWICometACOUtils","LWICometAdAccountPicker.react","LWICometAdPreviewRightColumnSection.react","LWICometAdgroupUtils","LWICometAdsRejectionNoticeCard.react","LWICometAdsRejectionUtils","LWICometAdvantagePlacementsUtils","LWICometAudienceV2Section.react","LWICometAutomaticGoalDisableMultipleCTAConfirmationDialog.entrypoint","LWICometBrandedPromotedProgramSection.react","LWICometCTAUtils","LWICometCatalogSalesCreativeSection.react","LWICometCatalogSalesValidationContextProvider.react","LWICometConsolidatedProductButtonDestinationConfigUtils","LWICometConsolidatedProductCreationView_adgroup.graphql","LWICometConsolidatedProductCreationView_boostPostConversion.graphql","LWICometConsolidatedProductCreationView_boostedComponent.graphql","LWICometConsolidatedProductCreationView_ctaOptions.graphql","LWICometConsolidatedProductCreationView_ctwaInfo.graphql","LWICometConsolidatedProductCreationView_lwi.graphql","LWICometConsolidatedProductCreationView_page.graphql","LWICometConsolidatedProductCreationView_viewer.graphql","LWICometConsolidatedProductUtils","LWICometCreativeSection.react","LWICometDCOCreativeSection.react","LWICometDCOToggleSection.react","LWICometDurationBudgetSection.react","LWICometErrorBoundary.react","LWICometEstimationSection.react","LWICometExpandableSectionWrapper.react","LWICometGenericCreationNotices.react","LWICometMessagingAppsSectionConstants","LWICometNoFundingSourceNotice.react","LWICometNoticeCardWrapper.react","LWICometObjectiveSection.react","LWICometPaymentMethodSection.react","LWICometPaymentSummarySection.react","LWICometPixelSection.react","LWICometPlacementsSection.react","LWICometProductTwoColumnLayoutContainer.react","LWICometRegulatedCategoriesQuerySection.react","LWICometSimplifiedCTASection.react","LWICometSubmissionSection.react","LWIRuntimeEnviromentUtils","cr:1392678","cr:40","deferredLoadComponent","emptyFunction","fbicon","gkx","lwiCometButtonDestinationReducer","lwiCometCreativeDCOReducer","lwiCometCreativeReducer","lwiCometUnifiedCreationReducer","qex","react","requireDeferred","unrecoverableViolation","useCometEntryPointDialog","useDebouncedValue","useLWICometDisapprovalReason","useLWICometEligibleCTAs","useLWICometEnableCarousel","useLWICometInitialAdgroups","useLWICometPostsAsCreativesCallbacks","useLWICometPostsAsCreativesEntrypointDialog","useLWICometPostsAsCreativesUpdateAction","useLWILoggerContext","useLWIReducers","useOnUpdateEffect","withLWICometSpecPart"],(function(a,b,c,d,e,f,g,aa,ba){"use strict";var h,i,j,k,l,m,n,o,p=d("react");e=d("react");var ca=e.startTransition,da=e.useCallback,q=e.useEffect,ea=e.useRef,fa=e.useState,ga=e.useTransition,ha=c("deferredLoadComponent")(c("requireDeferred")("LWICometCreativeMultipleCTAEditor.react").__setRef("LWICometConsolidatedProductCreationView.react")),ia=c("deferredLoadComponent")(c("requireDeferred")("LWICometMessagingAppsSection.react").__setRef("LWICometConsolidatedProductCreationView.react")),ja=200,ka=h!==void 0?h:h=b("LWICometConsolidatedProductCreationView_ctaOptions.graphql"),la=i!==void 0?i:i=b("LWICometConsolidatedProductCreationView_adgroup.graphql"),ma={banner:{marginBottom:"x1yztbdb",$$css:!0},errorStateContainer:{marginBottom:"x1yztbdb",$$css:!0}};function a(a){var e,f,g,h=a.adgroup$key,i=a.assetFeedSpecPlus,r=a.boostedComponent,s=a.boostedComponentInput,t=a.boostPostConversion$key,na=a.buttonDestination,u=a.clientCreativeSpec,v=a.creativeSpec,w=a.ctaOptions$key,x=a.ctwaInfo,oa=a.degreesOfFreedomType,y=a.enableDCO;y=y===void 0?!1:y;var z=a.goal,A=a.hasBrandedTemplate,pa=a.hasFundingSource,B=a.inferredGoal,C=a.lwi,D=a.objective,E=a.page,qa=a.title;a=a.viewer;var F=d("CometRelay").useFragment(j!==void 0?j:j=b("LWICometConsolidatedProductCreationView_boostedComponent.graphql"),r),G=d("CometRelay").useFragment(k!==void 0?k:k=b("LWICometConsolidatedProductCreationView_boostPostConversion.graphql"),t);r=d("CometRelay").useFragment(l!==void 0?l:l=b("LWICometConsolidatedProductCreationView_page.graphql"),E);t=d("CometRelay").useFragment(m!==void 0?m:m=b("LWICometConsolidatedProductCreationView_ctwaInfo.graphql"),x);E=d("CometRelay").useFragment(n!==void 0?n:n=b("LWICometConsolidatedProductCreationView_lwi.graphql"),C);x=d("CometRelay").useFragment(o!==void 0?o:o=b("LWICometConsolidatedProductCreationView_viewer.graphql"),a);C=F==null?void 0:F.options;if(!C)throw c("unrecoverableViolation")("options should not be empty or else none of the LWI sections can be rendered","pages_lwi");a=c("useLWICometPostsAsCreativesCallbacks")(r==null?void 0:r.url);var H=a.onUpdateBodyText,I=a.onUpdatePhoto;a=a.onUpdateVideo;var ra=c("useLWICometPostsAsCreativesUpdateAction")(c("emptyFunction"),H,I,a,G==null?void 0:(H=G.context_spec)==null?void 0:(I=H.post)==null?void 0:I.story);q(function(){var a;(G==null?void 0:(a=G.context_spec)==null?void 0:a.post)!=null&&ra()},[]);a=c("useLWICometPostsAsCreativesEntrypointDialog")(s.page_id);H=a[0];var J=(I=d("LWICometCTAUtils").getLWICometCTA(v,i))==null?void 0:I.type;a=c("useLWICometEnableCarousel")();I=d("CometRelay").useRefetchableFragment(ka,w);w=I[0];var sa=I[1];I=ga();var K=I[0],ta=I[1];I=c("useDebouncedValue")(K,ja)&&K;K=c("useLWICometEligibleCTAs")(w==null?void 0:(K=w.lwi)==null?void 0:(w=K.boosted_component)==null?void 0:w.options);w=z==="AUTOMATIC"&&d("LWICometMessagingAppsSectionConstants").ctaOptionsArrayHasMultipleMessagingDestinations(K);var L=d("LWICometMessagingAppsSectionConstants").isWhatsAppNumberBusiness(r==null?void 0:r.connected_whatsapp_number_type),M=d("LWICometMessagingAppsSectionConstants").showUnifiedCreationForPPE(z,null,d("LWICometMessagingAppsSectionConstants").isMessagingAppCTAType(J),D,L);M=(M||D==="MESSAGES")&&d("LWICometMessagingAppsSectionConstants").ctaOptionsArrayHasMultipleMessagingDestinations(K)&&d("LWICometMessagingAppsSectionConstants").isMessagingAppCTAType(J);h=d("CometRelay").useRefetchableFragment(la,h);var N=h[0],ua=h[1];h=d("LWIRuntimeEnviromentUtils").isFacebookComet();var O=c("useLWIReducers")([c("lwiCometCreativeReducer"),c("lwiCometCreativeDCOReducer"),c("lwiCometUnifiedCreationReducer")]),P=da(function(a){ta(function(){sa({goal:a.goal,input:s,objective:a.objective},{fetchPolicy:"store-or-network"})}),d("LWICometConsolidatedProductUtils").shouldUpdateWithRefetchedCreative(a.goal,z)&&ca(function(){ua({goal:a.goal,input:s,shouldFetch:!0},{fetchPolicy:"store-or-network"})})},[ua,s,sa,z,ta]),Q=c("useCometEntryPointDialog")(c("LWICometAutomaticGoalDisableMultipleCTAConfirmationDialog.entrypoint"),{goal:"AUTOMATIC",input:s,objective:D}),va=Q[0],R=u==null?void 0:u.asset_feed_spec;Q=da(function(a){va({buttonDestination:na,buttonDestinationOptionsConfig:d("LWICometConsolidatedProductButtonDestinationConfigUtils").buttonDestinationOptions,clientAssetFeedSpec:R,creativeSpec:v,goal:z,onClose:c("emptyFunction"),onConfirm:function(){O({type:"dco_reducer.convert_single_cta"},{side:"client_side"}),a()}},c("emptyFunction"))},[na,R,v,O,z,va]);N=c("useLWICometInitialAdgroups")({isNullable:!0,spec:N==null?void 0:(N=N.lwi)==null?void 0:(N=N.boosted_component)==null?void 0:N.spec,useAFS:!0});var S=N[0],T=N[1];c("useOnUpdateEffect")(function(){T!=null&&Object.keys(S).length!==0&&(S[T]!=null&&O({adgroup:S[T],type:"creative_reducer.update_adgroup"},{side:"client_side"}))},[S,T]);N=(v==null?void 0:(N=v.object_story_spec)==null?void 0:(N=N.template_data)==null?void 0:N.format_option)==="carousel_images_multi_items";D=fa((u=(i=d("LWICometCTAUtils").getLWICometLinkURL(i,v,D))!=null?i:u==null?void 0:(D=u.object_story_spec)==null?void 0:(i=D.link_data)==null?void 0:i.link)!=null?u:"");i=D[0];u=D[1];D=G==null?void 0:(D=G.spec)==null?void 0:(D=D.ad_account)==null?void 0:D.legacy_account_id;e=G==null?void 0:(e=G.spec)==null?void 0:(e=e.adgroup_spec)==null?void 0:e[0];e=e==null?void 0:e.adgroup_id;f=G==null?void 0:(f=G.campaign_group)==null?void 0:(f=f.all_campaign_group_adgroups)==null?void 0:(f=f.edges[0])==null?void 0:(f=f.node)==null?void 0:f.integrity_validation;var U=f==null?void 0:f.component_info,V=c("useLWICometDisapprovalReason")(f),W=V.primaryDisapprovalContent,X=V.primaryDisapprovalReason;U=((V=U)!=null?V:[]).filter(function(a){return a.disapproval_reasons.some(function(a){return a===X})});V=d("LWICometAdsRejectionUtils").isEligibleForRejectionLandingPage(X);var Y=d("LWICometAdsRejectionUtils").getGenericErrorStateForLowQualityCreates(X,W==null?void 0:W.policy_url);U=V?d("LWICometAdsRejectionUtils").crowCompToHighlightableComponent((g=U[0])==null?void 0:g.component_type,(g=(g=U[0])==null?void 0:(U=g.meta_info_for_mapping)==null?void 0:U.is_video_thumbnail)!=null?g:!1):null;g=d("LWICometAdsRejectionUtils").getLowQualityComponentErrorState(X,U);var wa=U===d("LWICometAdsRejectionUtils").HighlightableComponents.IMAGE||U===d("LWICometAdsRejectionUtils").HighlightableComponents.VIDEO||U===d("LWICometAdsRejectionUtils").HighlightableComponents.VIDEO_THUMBNAIL?g:null,Z=U===d("LWICometAdsRejectionUtils").HighlightableComponents.BODY?g:null;g=U===d("LWICometAdsRejectionUtils").HighlightableComponents.URL?g:null;U=U===d("LWICometAdsRejectionUtils").HighlightableComponents.EMPTY||wa!=null;var $=ea(null);Z=N&&z==="GET_CATALOG_SALES"?p.jsx(c("LWICometCatalogSalesValidationContextProvider.react"),{children:p.jsx(c("LWICometCatalogSalesCreativeSection.react"),{boostedComponentInput:s,ctaOptions:K,isEditingView:!1})}):N?p.jsx(p.Fragment,{}):y&&c("LWICometDCOCreativeSection.react")?p.jsx(c("LWICometDCOCreativeSection.react"),{ctaSection:p.jsx(ha,{boostedComponentInput:s,buttonDestinationOptionsConfig:d("LWICometConsolidatedProductButtonDestinationConfigUtils").buttonDestinationOptions,isLoading:I,setStoredLinkURL:u,shouldShowCTASectionWithOneEligibleCTA:!0,storedLinkURL:i}),showHeadline:J!=="LIKE_PAGE"}):p.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometCreativeSection",children:p.jsx(c("LWICometCreativeSection.react"),{aux:H,bodyErrorState:Z,ctaSection:b("cr:40")&&A===!0?p.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometBrandedTemplateCTASection",children:p.jsx(b("cr:40"),{buttonDestinationOptionsConfig:d("LWICometConsolidatedProductButtonDestinationConfigUtils").buttonDestinationOptions,ctaOptions:K,instagramUsername:r==null?void 0:(N=r.coalesced_linked_instagram_account)==null?void 0:N.username,isEligibleForUnifiedCreationMergedCTA:w,isLoading:I,isWhatsAppBusinessNumber:L,shouldShowCTASectionWithOneEligibleCTA:!0})}):!M||z==="AUTOMATIC"?p.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometSimplifiedCTASection",children:p.jsx(c("LWICometSimplifiedCTASection.react"),{boostedComponentInput:s,buttonDestinationOptionsConfig:d("LWICometConsolidatedProductButtonDestinationConfigUtils").buttonDestinationOptions,ctaOptions:K,instagramUsername:r==null?void 0:(H=r.coalesced_linked_instagram_account)==null?void 0:H.username,isEligibleForUnifiedCreationMergedCTA:w,isLoading:I,isWhatsAppBusinessNumber:L,onChangeGoal:P,productFlow:"boost_consolidated_product_create_flow",setStoredLinkURL:u,shouldShowCTASectionWithOneEligibleCTA:!0,showWhatsAppLinkErrorNotice:!0,storedLinkURL:i,urlErrorState:g})}):void 0,enableCarousel:a,mediaErrorState:wa,pageRef:r,shouldHighlightEntireSection:U,showHeadline:J!=="LIKE_PAGE"})});var xa=c("useLWIReducers")([c("lwiCometButtonDestinationReducer")]),ya=ea(!1);q(function(){ya.current||(ya.current=!0,xa({buttonDestination:d("LWICometConsolidatedProductButtonDestinationConfigUtils").getInitialButtonDestination(z,B,J),type:"button_detination_reducer.update_button_destination"}))},[J,xa,z,B]);A=d("LWICometConsolidatedProductUtils").isConversionGoal(z,B);N=c("useLWILoggerContext")();K=N.entryPoint;H=K==="ad_proposal_lwi";I=d("LWICometAdvantagePlacementsUtils").getIsEligibleForAdvantagePlacements(v)&&((w=c("qex")._("95"))!=null?w:!1);q(function(){(F==null?void 0:F.exposeLWIBCPCtWADefaultExperiment)===!0&&c("qex")._("1632")},[F==null?void 0:F.exposeLWIBCPCtWADefaultExperiment]);return p.jsx(c("LWICometProductTwoColumnLayoutContainer.react"),{footer:p.jsx(c("LWICometSubmissionSection.react"),{postAdDialogType:"DEFAULT"}),headerAuxiliary:p.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometAdAccountPicker",children:p.jsx(c("LWICometAdAccountPicker.react"),{useTwoColumnLayout:!0})}),leftContent:[p.jsx(p.Fragment,{children:H&&p.jsx("div",{className:"x1yztbdb",children:p.jsx(c("CometContextualMessage.react"),{body:"Some fields have been prefilled based on your conversation with the customer support representative.",headline:"Some fields have been prefilled",icon:p.jsx(c("CometIcon.react"),{color:"blueLink",icon:d("fbicon")._(ba("479181"),24)})})})}),p.jsx(c("LWICometBrandedPromotedProgramSection.react"),{}),V?p.jsx(c("LWICometAdsRejectionNoticeCard.react"),{actionIDs:W==null?void 0:W.action_ids,body:Y==null?void 0:Y.body,legacyAccountID:D,primaryCTALabel:aa._("u7f16u8f91u5e7fu544au521bu610f"),primaryCTAOnPress:function(){window.requestAnimationFrame(function(){$.current!=null&&$.current.scrollIntoView({behavior:"smooth",block:"nearest"})})},selectedAdgroupID:e,shouldShowRequestReview:!1,title:Y==null?void 0:Y.title,validation:f,xstyle:ma.errorStateContainer}):null,p.jsx(c("LWICometObjectiveSection.react"),{boostedComponentInput:s,eligibleForGoalCard:h,onChangeGoal:P,onSaveGoal:P,onSelectAutomaticGoal:y&&(R==null?void 0:R.call_to_action_types)!=null&&(R==null?void 0:R.call_to_action_types.length)>1?Q:void 0}),h?p.jsx(c("LWICometDCOToggleSection.react"),{}):null,p.jsx("div",{ref:$,children:Z}),d("LWICometACOUtils").inACOExperimentEnable()?p.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometACOToggleSection",children:p.jsx(c("LWICometACOToggle.react"),{enableToggle:!y||c("gkx")("3106"),pageRef:r})}):null,p.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometRegulatedCategoriesQuerySection",children:p.jsx(c("LWICometRegulatedCategoriesQuerySection.react"),{optionsRef:C})}),p.jsx(p.Fragment,{children:M&&z!=="WHATSAPP_MESSAGES"?p.jsx(ia,{boostedComponentInput:s,boostedComponentRef:F,ctwaInfoRef:t,lwiRef:E,macrosRef:x,onCleanUp:function(){O({type:"unified_creation_reducer.clean_up_unified_creation_spec"})},pageRef:r,productFlow:"boost_consolidated_product_create_flow"}):null}),p.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometAudienceSection",children:p.jsx(c("LWICometAudienceV2Section.react"),{boostedComponentInput:s})}),p.jsx(c("LWICometDurationBudgetSection.react"),{boostedComponent:F,boostedComponentInput:s,fetchRecommendation:!0}),I?p.jsx(c("LWICometPlacementsSection.react"),{options:C}):null,p.jsx(c("LWICometExpandableSectionWrapper.react"),{children:[I?null:p.jsx(c("LWICometPlacementsSection.react"),{options:C},"placements"),p.jsx(c("LWICometPixelSection.react"),{conversionsEventType:(L=d("LWICometConsolidatedProductUtils").getConversionsEventType(z,B))!=null?L:void 0,isPixelOptional:!A||z==="AUTOMATIC"},"pixel"),pa?null:p.jsx(c("LWICometNoFundingSourceNotice.react"),{},"no_funding_notice"),p.jsx(c("LWICometPaymentMethodSection.react"),{},"payment")].filter(Boolean)})].filter(Boolean),rightContent:[p.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometAdPreviewRightColumnSection",children:p.jsx(c("LWICometAdPreviewRightColumnSection.react"),{defaultToInstagramPreview:J==="INSTAGRAM_MESSAGE",getValidatedCreativeSpec:d("LWICometAdgroupUtils").getValidatedCTALinkInCreativeSpecForAdPreview,showACOCarousel:oa===d("LWICometACOUtils").LWI_ACO_FLAG_V2,useWashBackground:!0})}),p.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometEstimationSection",children:p.jsx(c("LWICometEstimationSection.react"),{isPrimaryProfilePlus:r==null?void 0:r.is_delegate_page_with_linked_primary_profile,useWashBackground:!0})}),p.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometPaymentSummarySection",children:p.jsx(c("LWICometPaymentSummarySection.react"),{useWashBackground:!0})})],stickyIndex:1,title:qa,topContent:[p.jsx(c("LWICometNoticeCardWrapper.react"),{specElement:"GENERIC"}),b("cr:1392678")?[p.jsx(b("cr:1392678"),{leadSource:"BOOSTED_CONSOLIDATED_PRODUCT"})]:[],p.jsx(c("LWICometGenericCreationNotices.react"),{boostedComponent:F,boostedComponentProduct:s.product,disableRenderSimilarAdsNotice:!0,pageID:s.page_id})],useWashRightColumn:!0})}a.displayName=a.name+" [from "+f.id+"]";e=c("withLWICometSpecPart")(a,function(a){var b=a.adgroupSpecs[a.selectedAdgroupID];return{assetFeedSpecPlus:b.assetFeedSpecPlus,buttonDestination:a.buttonDestination,clientCreativeSpec:b.clientCreativeSpec,creativeSpec:b.creative,degreesOfFreedomType:b==null?void 0:(b=b.clientCreativeSpec)==null?void 0:(b=b.degrees_of_freedom_spec)==null?void 0:b.degrees_of_freedom_type,enableDCO:a.enableDCO,goal:a.goal,hasBrandedTemplate:a.brandedTemplate!=null,hasFundingSource:a.adAccountData.hasFundingSource,inferredGoal:a.inferredGoal,objective:a.objective}});g["default"]=e}),98);
-----
LWICometCTAWhatsAppLinkURLConsolidatedProductErrorNotice.react",["fbt","AdsLWIValidationStrings","LWICometCTAUtils","LWICometObjectiveSectionItemUtils","LWICometWhatsAppConstants","lwiCometObjectiveReducer","qex","react","useLWINoticesContext","useLWIReducers","withLWICometSpecPart"],(function(a,b,c,d,e,f,g,h){"use strict";d("react");b=d("react");var i=b.useCallback,j=b.useEffect,k="WHATSAPP_MESSAGES";function a(a){var b=a.assetFeedSpecPlus,e=a.creativeSpec,f=a.ctwaAccessStatus,g=a.currentCta,l=a.isWhatsAppBusinessNumber,m=a.onChangeGoal;a=a.shouldShowNotice;var n=c("useLWINoticesContext")(),o=n.setNoticesForSpecElement,p=c("useLWIReducers")([c("lwiCometObjectiveReducer")]),q=l===!0?"MESSAGES":"LINK_CLICKS",r=i(function(){var a={description:null,goal:k,icon:d("LWICometObjectiveSectionItemUtils").GOAL_ICON_MAP[k],inferredGoal:null,metadataList:[],objective:q,offsiteCustomEvent:null,title:h._("")};p({goal:k,objective:q,offsiteCustomEvent:null,type:"objective_reducer.update_objective"},{side:"client_side"});m&&m(a)},[q,m,p]),s=(n=d("LWICometCTAUtils").getLWICometCTA(e,b))==null?void 0:(l=n.value)==null?void 0:l.link;b=d("LWICometWhatsAppConstants").PERMISSIVE_CTWA_LINK_PATTERN.test((e=s)!=null?e:"");var t=b&&g.type!=="WHATSAPP_LINK"&&g.type!=="WHATSAPP_MESSAGE"&&f==="ACCESS_GRANTED"&&a;j(function(){var a;o("CALL_TO_ACTION",t&&c("qex")._("1361")?[{ctaButton:{primaryButton:{label:d("LWICometWhatsAppConstants").WHATSAPP_GOAL_UPSELL_NOTICE_BUTTON_TEXT,onPress:r,type:"secondary"}},message:d("AdsLWIValidationStrings").getInvalidWhatsAppLinkError("("+((a=s)!=null?a:"")+")"),severity:"ERROR",title:d("LWICometWhatsAppConstants").WHATSAPP_LINK_ERROR_NOTICE_HEADER_TEXT}]:[])},[t,r,o,s])}e=c("withLWICometSpecPart")(a,function(a){return{assetFeedSpecPlus:a.adgroupSpecs[a.selectedAdgroupID].assetFeedSpecPlus,creativeSpec:a.adgroupSpecs[a.selectedAdgroupID].creative}});g["default"]=e}),98);
-----
LWIBizWebInstagramMediaCreationViewCore.react",["fbt","BaseContextualLayerAnchorRoot.react","CometRelay","LWIBizIGReelsUtils","LWIBizWebCometFullScreenNavigationUtils","LWIBizWebFullScreenUIContext","LWIBizWebInstagramMediaCreationViewCore_boostedComponent.graphql","LWIBizWebInstagramMediaCreationViewCore_ctwaInfo.graphql","LWIBizWebInstagramMediaCreationViewCore_lwi.graphql","LWIBizWebInstagramMediaCreationViewCore_page.graphql","LWIBizWebInstagramMediaCreationViewCore_viewer.graphql","LWIBizWebSubmissionSection.react","LWICometACOToggle.react","LWICometACOUtils","LWICometAdAccountPicker.react","LWICometAdPreviewCTAUtils","LWICometAdPreviewRightColumnSection.react","LWICometAudienceSection.react","LWICometCTASection.react","LWICometCTAUtils","LWICometDraftDialogUtils","LWICometDurationBudgetSection.react","LWICometErrorBoundary.react","LWICometEstimationSection.react","LWICometExpandableSectionWrapper.react","LWICometFalcoEvent","LWICometGenericCreationNotices.react","LWICometMessagingAppsSectionConstants","LWICometMutationUtils","LWICometObjectiveSection.react","LWICometOptionalLoggingDataContext","LWICometPaymentMethodSection.react","LWICometPaymentSummarySection.react","LWICometPlacementsSection.react","LWICometProductTwoColumnLayoutContainer.react","LWICometProductUtils","LWICometRegulatedCategoriesQuerySection.react","RelayHooks","cr:1392678","cr:483","cr:508","cr:5404","lwiCometUnifiedCreationReducer","react","recoverableViolation","unrecoverableViolation","useLWILoggerContext","useLWIReducers","withLWICometSpecPart"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m,n=d("react");e=d("react");var o=e.useCallback,p=e.useContext,q=e.useState;function a(a){var e,f,g,r=a.assetFeedSpecPlus,s=a.boostedComponent,t=a.boostedComponentInput,u=a.creative,v=a.ctwaInfo,w=a.draftID,x=a.lwi,y=a.objective,z=a.page,A=a.rightWash;A=A===void 0?!1:A;var B=a.title;a=a.viewer;s=d("CometRelay").useFragment(i!==void 0?i:i=b("LWIBizWebInstagramMediaCreationViewCore_boostedComponent.graphql"),s);z=d("CometRelay").useFragment(j!==void 0?j:j=b("LWIBizWebInstagramMediaCreationViewCore_page.graphql"),z);v=d("CometRelay").useFragment(k!==void 0?k:k=b("LWIBizWebInstagramMediaCreationViewCore_ctwaInfo.graphql"),v);x=d("CometRelay").useFragment(l!==void 0?l:l=b("LWIBizWebInstagramMediaCreationViewCore_lwi.graphql"),x);a=d("CometRelay").useFragment(m!==void 0?m:m=b("LWIBizWebInstagramMediaCreationViewCore_viewer.graphql"),a);var C=d("RelayHooks").useRelayEnvironment(),D=c("useLWILoggerContext")(),E=p(c("LWICometOptionalLoggingDataContext")),F=D.flowID,G=D.pageID,H=D.product,I=D.targetID,J=s==null?void 0:s.options;if(!J)throw c("unrecoverableViolation")("options should not be empty or else none of the LWI sections can be rendered","mbs_ads");e=(e=(e=s.context_spec)==null?void 0:(e=e.post)==null?void 0:e.contains_instagram_video)!=null?e:!1;var K=q(e),L=K[0];K=K[1];f=(f=(f=s.context_spec)==null?void 0:(f=f.post)==null?void 0:f.is_scheduled_post)!=null?f:!1;w=f?w!=null?h._("Save changes"):h._("Boost post"):null;var M=c("useLWIReducers")([c("lwiCometUnifiedCreationReducer")]);r=(u=d("LWICometCTAUtils").getLWICometCTA(u,r))==null?void 0:u.type;u=(u=(u=s.context_spec)==null?void 0:(u=u.page)==null?void 0:u.is_lightswitch_enabled)!=null?u:!1;var N=o(function(a,b){var e="UNPUBLISHED_CONTENT";b=d("LWICometMutationUtils").getCreationMutationData({loggerContext:D,optionalLoggingData:E,spec:a,specHistory:b});b=b.input.creation_spec;d("LWICometDraftDialogUtils").draftMutation({environment:C,existingDraftID:a.draftID,flowID:F,onCompletedCreate:function(){d("LWICometFalcoEvent").log({action:"create",context:"ad",creative_spec:JSON.stringify(a.adgroupSpecs),event:"submit_flow",flow:D.flow,flow_id:D.flowID,page_id:D.pageID,post_id:D.targetID,product:d("LWICometProductUtils").productFromGraphQLEnumToJSEnumStrict(D.product),side:"user_action",targeting_spec:JSON.stringify(a.audienceData.targetSpec)})},onErrorCreate:function(){c("recoverableViolation")("Failed to create draft","mbs_ads")},onErrorUpdate:function(){c("recoverableViolation")("Failed to update draft","mbs_ads")},pageID:G,product:H,spec:b,targetID:I,useCase:e})},[C,F,D,E,G,H,I]);u=!u&&y==="MESSAGES"&&d("LWICometMessagingAppsSectionConstants").isMessagingAppCTAType(r)&&b("cr:508")!=null;y=d("LWIBizWebCometFullScreenNavigationUtils").useLWIBizWebFullScreenGoBack();r=(r=(r=p(c("LWIBizWebFullScreenUIContext")))==null?void 0:r.shouldCollapseLists)!=null?r:!1;var O=r?"square":void 0;g=(g=(g=s.context_spec)==null?void 0:(g=g.post)==null?void 0:g.is_ig_reel)!=null?g:!1;g=g&&d("LWIBizIGReelsUtils").getIsEligibleToSeeIGReelsLookAndFeel()?h._("Boost reel now"):h._("Boost Post Now");return n.jsx(c("LWICometProductTwoColumnLayoutContainer.react"),{footer:n.jsx(c("LWIBizWebSubmissionSection.react"),{disableSubmitButton:L,overrideBoostButtonLabel:(w=w)!=null?w:g,overrideCommitMutation:f?N:null,secondaryButton:y!=null?{label:h._("Cancel"),onPress:y}:void 0}),headerAuxiliary:b("cr:5404")?n.jsx(b("cr:5404"),{useTwoColumnLayout:!0}):n.jsx(c("LWICometAdAccountPicker.react"),{useTwoColumnLayout:!0}),leftContent:[n.jsx(c("LWICometObjectiveSection.react"),{boostedComponentInput:t,eligibleForGoalCard:!1}),n.jsx(n.Fragment,{children:d("LWICometACOUtils").inACOExperimentEnable()&&n.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometACOToggleSection",children:n.jsx(c("LWICometACOToggle.react"),{showInstagramContent:!0})})}),u?null:n.jsx(c("BaseContextualLayerAnchorRoot.react"),{children:n.jsx(c("LWICometCTASection.react"),{boostedComponentInput:t,shouldFilterCallNow:!0,shouldShowCTASectionWithOneEligibleCTA:!0,shouldShowUnifiedCreation:u,showGenericTooltip:!0,showHeader:!0,showWhatsAppLinkErrorNotice:!0})}),u&&b("cr:508")!=null?n.jsx(b("cr:508"),{boostedComponentInput:t,boostedComponentRef:s,ctwaInfoRef:v,lwiRef:x,macrosRef:a,onCleanUp:function(){return M({type:"unified_creation_reducer.clean_up_unified_creation_spec"})},pageRef:z,productFlow:"boost_instagram_media_create_flow"}):null,n.jsx(c("LWICometRegulatedCategoriesQuerySection.react"),{optionsRef:J}),n.jsx(c("LWICometAudienceSection.react"),{boostedComponent:s,boostedComponentInput:t,isBizWebCollapsed:r}),r&&b("cr:483")!=null?n.jsx(b("cr:483"),{boostedComponent:s,boostedComponentInput:t,fetchRecommendation:!0}):n.jsx(c("LWICometDurationBudgetSection.react"),{boostedComponent:s,boostedComponentInput:t,disableRunContinuouslyOption:!0,fetchRecommendation:!0}),n.jsxs(c("LWICometExpandableSectionWrapper.react"),{children:[n.jsx(c("LWICometPlacementsSection.react"),{iconShape:O,options:J,showSinglePlacement:!0}),n.jsx(c("LWICometPaymentMethodSection.react"),{iconShape:O})]})].filter(Boolean),rightContent:[n.jsx(c("LWICometAdPreviewRightColumnSection.react"),{defaultToInstagramPreview:!0,getPreviewCtaValue:e?void 0:d("LWICometAdPreviewCTAUtils").getDefaultCtaValue,isVideoUploading:L,setIsVideoUploading:K,useWashBackground:A}),n.jsx(c("LWICometEstimationSection.react"),{useBizWebWash:A,useWashBackground:A}),n.jsx(c("LWICometPaymentSummarySection.react"),{useWashBackground:A})],title:B,topContent:[b("cr:1392678")?[n.jsx(b("cr:1392678"),{leadSource:"BOOSTED_INSTAGRAM_MEDIA"})]:[],n.jsx(c("LWICometGenericCreationNotices.react"),{boostedComponent:s,boostedComponentProduct:t.product,pageID:t.page_id,similarAdNoticeHeader:h._("You"re currently running a boost for this post.")})],useWashRightColumn:A})}a.displayName=a.name+" [from "+f.id+"]";e=c("withLWICometSpecPart")(a,function(a){var b=a.adgroupSpecs[a.selectedAdgroupID];return{assetFeedSpecPlus:b.assetFeedSpecPlus,creative:b.creative,draftID:a.draftID,objective:a.objective,selectedGoal:a.goal}});g["default"]=e}),98);
-----
LWIBizWebPostCreationViewCore.react",["fbt","BACSCouponUtils.react","CometRelay","LWIBizWebCometFullScreenNavigationUtils","LWIBizWebDuplicatePostNotice.react","LWIBizWebFullScreenUIContext","LWIBizWebPostCreationViewCore_boostedComponent.graphql","LWIBizWebPostCreationViewCore_ctwaInfo.graphql","LWIBizWebPostCreationViewCore_lwi.graphql","LWIBizWebPostCreationViewCore_page.graphql","LWIBizWebPostCreationViewCore_viewer.graphql","LWIBizWebSharedPostPostEngagementNotice.react","LWIBizWebSubmissionSection.react","LWICometACOToggle.react","LWICometACOUtils","LWICometAdAccountPicker.react","LWICometAdPreviewCTAUtils","LWICometAdPreviewRightColumnSection.react","LWICometAudienceSection.react","LWICometBoostPostExistingCTASection.react","LWICometCTASection.react","LWICometCTAUtils","LWICometCallNowUtils","LWICometConstants","LWICometDraftDialogUtils","LWICometDurationBudgetSection.react","LWICometErrorBoundary.react","LWICometEstimationSection.react","LWICometExpandableSectionWrapper.react","LWICometGenericCreationNotices.react","LWICometLeadGenFormSelectorSection.react","LWICometMarketingExpertUpsellSectionWrapper.react","LWICometMessagingAppsSectionConstants","LWICometMutationUtils","LWICometObjectiveSection.react","LWICometOptionalLoggingDataContext","LWICometPaymentMethodSection.react","LWICometPaymentSummarySection.react","LWICometPixelSection.react","LWICometPlacementsSection.react","LWICometPostButtonDestinationConfigUtils","LWICometProductTwoColumnLayoutContainer.react","LWICometRegulatedCategoriesQuerySection.react","MessagingAdsExperimentUtils","RelayHooks","cr:1392678","cr:483","deferredLoadComponent","gkx","lwiCometUnifiedCreationReducer","react","recoverableViolation","requireDeferred","unrecoverableViolation","useLWICometContextualDataContext","useLWILoggerContext","useLWIReducers","useLWIVideoCheckStoryReady","useRoutePassthroughProps","withLWICometSpecPart"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l,m,n=d("react");e=d("react");var aa=e.useCallback,o=e.useContext,ba=e.useMemo,ca=e.useState,da=c("deferredLoadComponent")(c("requireDeferred")("LWICometMessagingAppsSection.react").__setRef("LWIBizWebPostCreationViewCore.react"));function a(a){var e,f=a.adAccountID,g=a.adgroupSpecs,p=a.boostedComponent,q=a.boostedComponentInput,r=a.budget,s=a.ctwaInfo,t=a.devicePlatforms,u=a.draftID,v=a.durationInDays,w=a.lwi,x=a.objective,y=a.page,z=a.pixelStatus,A=a.rightWash;A=A===void 0?!1:A;var B=a.selectedAdgroupID,C=a.selectedGoal,D=a.targetSpec,ea=a.title,E=a.useRightColumnSubmitButton;E=E===void 0?!1:E;a=a.viewer;var fa=c("useLWIReducers")([c("lwiCometUnifiedCreationReducer")]);p=d("CometRelay").useFragment(i!==void 0?i:i=b("LWIBizWebPostCreationViewCore_boostedComponent.graphql"),p);y=d("CometRelay").useFragment(j!==void 0?j:j=b("LWIBizWebPostCreationViewCore_page.graphql"),y);s=d("CometRelay").useFragment(k!==void 0?k:k=b("LWIBizWebPostCreationViewCore_ctwaInfo.graphql"),s);w=d("CometRelay").useFragment(l!==void 0?l:l=b("LWIBizWebPostCreationViewCore_lwi.graphql"),w);a=d("CometRelay").useFragment(m!==void 0?m:m=b("LWIBizWebPostCreationViewCore_viewer.graphql"),a);var F=p==null?void 0:p.options;if(F==null)throw c("unrecoverableViolation")("options should not be empty or else none of the LWI sections can be rendered","pages_lwi");var G=ca(!1),H=G[0];G=G[1];var I=d("RelayHooks").useRelayEnvironment();e=(e=(e=p.context_spec)==null?void 0:(e=e.page)==null?void 0:e.is_lightswitch_enabled)!=null?e:!1;var J=g[B],K=g[B].creative;J=(J=d("LWICometCTAUtils").getLWICometCTA(K,J==null?void 0:J.assetFeedSpecPlus))==null?void 0:J.type;var L=c("useLWICometContextualDataContext")(),M=L.postInfo.callToActionType,N=d("LWICometMessagingAppsSectionConstants").isMessagingAppCTAType(M);N=x==="MESSAGES"&&(d("LWICometMessagingAppsSectionConstants").isMessagingAppCTAType(J)||N);var O=o(c("LWICometOptionalLoggingDataContext")),P=c("useLWILoggerContext")(),Q=P.entryPoint,R=P.flowID,S=P.pageID,T=P.product,U=P.targetID,V=K==null?void 0:K.object_story_id,W=c("useRoutePassthroughProps")();V=c("useLWIVideoCheckStoryReady")((W==null?void 0:W.isEncodingVideoPost)===!0,(W=V)!=null?W:"");D=(W=D.geo_locations)==null?void 0:W.countries;W=t==null?void 0:t.map(function(a){return String(a)});D==null?void 0:D.sort();W==null?void 0:W.sort();t=L.postInfo.postUsedForRunningAds===!0;var X=p==null?void 0:p.context_spec,Y=X==null?void 0:X.post;Y=(Y=Y==null?void 0:Y.is_scheduled_post)!=null?Y:!1;var Z=d("MessagingAdsExperimentUtils").reorderMessagingAdsSection(),ga=aa(function(a,b){var e="UNPUBLISHED_CONTENT";b=d("LWICometMutationUtils").getCreationMutationData({loggerContext:P,optionalLoggingData:O,spec:a,specHistory:b});b=b.input.creation_spec;d("LWICometDraftDialogUtils").draftMutation({environment:I,existingDraftID:a.draftID,flowID:R,onErrorCreate:function(){c("recoverableViolation")("Failed to create draft","pages_lwi")},onErrorUpdate:function(){c("recoverableViolation")("Failed to update draft","pages_lwi")},pageID:S,product:T,spec:b,targetID:U,useCase:e})},[I,R,P,O,S,T,U]);u=Y?u!=null?h._("Save changes"):h._("Boost post"):null;var $=c("gkx")("1046");r=d("BACSCouponUtils.react").useShowBACSCoupon(r,S,f,String(U),v,"bacs_post_creation_coupon",String(Q),x,String(z),String(J),String(K==null?void 0:K.body),D,W);f=d("LWIBizWebCometFullScreenNavigationUtils").useLWIBizWebFullScreenGoBack();Q=n.jsx(c("LWIBizWebSubmissionSection.react"),{disableSubmitButton:H||!V,onPreSubmit:$?r:void 0,overrideBoostButtonLabel:(v=u)!=null?v:h._("Boost Post Now"),overrideCommitMutation:Y?ga:null,postAdDialogType:"BOOSTED_POST",secondaryButton:f!=null?{label:h._("Cancel"),onPress:f}:void 0,useRightColumnSubmitButton:E});z=L.postInfo.postType===d("LWICometConstants").LINK_POST_TYPE;D=L.postInfo.postType===d("LWICometConstants").PHOTO_POST_TYPE;var ha=g[B].assetFeedSpecPlus;W=ba(function(){return d("LWICometCallNowUtils").isPassCallNowNewOptimizationGoalQE(ha,K,x,M,L.postInfo.postType)?d("LWICometCallNowUtils").getReportedOptimizationGoal():null},[ha,K,x,M,L.postInfo.postType]);H=J==="INSTAGRAM_MESSAGE"||M==="INSTAGRAM_MESSAGE";u=(r=($=o(c("LWIBizWebFullScreenUIContext")))==null?void 0:$.shouldCollapseLists)!=null?r:!1;v=u?"square":void 0;return n.jsx(c("LWICometProductTwoColumnLayoutContainer.react"),{footer:E?null:Q,headerAuxiliary:n.jsx(c("LWICometAdAccountPicker.react"),{useTwoColumnLayout:!0}),leftContent:[n.jsx(c("LWIBizWebDuplicatePostNotice.react"),{}),n.jsx(c("LWICometObjectiveSection.react"),{boostedComponentInput:q,eligibleForGoalCard:!0,inCollapsedList:u}),n.jsx(n.Fragment,{children:d("LWICometACOUtils").inACOExperimentEnable()&&n.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometACOToggleSection",children:n.jsx(c("LWICometACOToggle.react"),{})})}),c("LWICometLeadGenFormSelectorSection.react")!=null&&!t&&(C==="ONSITE_OFFSITE_LEAD_GEN"||C==="LEAD_GENERATION")?n.jsx(c("LWICometLeadGenFormSelectorSection.react"),{boostedComponentInput:q,contextSpec:X,setDisableSubmitButton:G}):n.jsx(n.Fragment,{}),n.jsx(n.Fragment,{children:M==null&&(C==="AUTOMATIC"||!N)?n.jsx(c("LWICometCTASection.react"),{boostedComponentInput:q,buttonDestinationOptionsConfig:e===!1?d("LWICometPostButtonDestinationConfigUtils").boostedPostButtonDestinationOptions:void 0,hideLinkEditor:z,shouldFilterCallNow:!0,shouldShowUnifiedCreation:N,showHeader:!0,showMessageObjectiveUpsell:!0,showWhatsAppLinkErrorNotice:!0}):null}),n.jsx(n.Fragment,{children:M==="WHATSAPP_MESSAGE"&&!N?n.jsx(c("LWICometBoostPostExistingCTASection.react"),{}):null}),n.jsx(n.Fragment,{children:Z===!0?null:n.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometRegulatedCategoriesQuerySection",children:n.jsx(c("LWICometRegulatedCategoriesQuerySection.react"),{optionsRef:F})})}),n.jsx(n.Fragment,{children:N?n.jsx(da,{boostedComponentInput:q,boostedComponentRef:p,ctwaInfoRef:s,lwiRef:w,macrosRef:a,onCleanUp:function(){fa({type:"unified_creation_reducer.clean_up_unified_creation_spec"})},pageRef:y,productFlow:"boost_post_create_flow"}):null}),n.jsx(n.Fragment,{children:Z===!0?n.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometRegulatedCategoriesQuerySection",children:n.jsx(c("LWICometRegulatedCategoriesQuerySection.react"),{optionsRef:F})}):null}),n.jsx(c("LWICometAudienceSection.react"),{boostedComponent:p,boostedComponentInput:q,existingPostCTAType:M,isBizWebCollapsed:u}),u&&b("cr:483")!=null?n.jsx(b("cr:483"),{boostedComponent:p,boostedComponentInput:q,fetchBudgetThreshold:!0,fetchRecommendation:!0}):n.jsx(c("LWICometDurationBudgetSection.react"),{boostedComponent:p,boostedComponentInput:q,fetchBudgetThreshold:!0,fetchRecommendation:!0}),n.jsxs(c("LWICometExpandableSectionWrapper.react"),{children:[n.jsx(c("LWICometPlacementsSection.react"),{iconShape:v,options:F}),n.jsx(c("LWICometPixelSection.react"),{conversionsEventType:"purchase",iconShape:v}),n.jsx(c("LWICometPaymentMethodSection.react"),{iconShape:v})]})],rightContent:[n.jsx(c("LWICometAdPreviewRightColumnSection.react"),{defaultToInstagramPreview:H,getPreviewCtaValue:d("LWICometAdPreviewCTAUtils").getDefaultCtaValue,isVideoStoryReady:V,usePlaceholderWebsite:D,useWashBackground:A}),n.jsx(c("LWIBizWebSharedPostPostEngagementNotice.react"),{}),n.jsx(c("LWICometEstimationSection.react"),{optimizationGoalOverride:W,useBizWebWash:A,useWashBackground:A}),n.jsx(c("LWICometPaymentSummarySection.react"),{useWashBackground:A}),n.jsx(c("LWICometMarketingExpertUpsellSectionWrapper.react"),{hasTopDivider:!0,pageID:q.page_id,useWashBackground:A}),E?Q:n.jsx(n.Fragment,{})],title:ea,topContent:[b("cr:1392678")?[n.jsx(b("cr:1392678"),{leadSource:"BOOSTED_POST"})]:[],n.jsx(c("LWICometGenericCreationNotices.react"),{boostedComponent:p,boostedComponentProduct:q.product,pageID:q.page_id,similarAdNoticeHeader:h._("You"re currently running a boost for this post.")})],useWashRightColumn:A})}a.displayName=a.name+" [from "+f.id+"]";e=c("withLWICometSpecPart")(a,function(a){return{adAccountID:a.adAccountData.legacyAccountID,adgroupSpecs:a.adgroupSpecs,adsCouponOffer:a.adsCouponOffer,budget:a.budgetData.budget,devicePlatforms:a.placementSpec.publisher_platforms,draftID:a.draftID,durationInDays:a.durationInDays,objective:a.objective,pixelStatus:a.pixelID,selectedAdgroupID:a.selectedAdgroupID,selectedGoal:a.goal,targetSpec:a.audienceData.targetSpec}});g["default"]=e}),98);
-----
LWICometViewPlaceholder.react",["LWICometAdPreviewSectionPlaceholder.react","LWICometAudienceSectionPlaceholder.react","LWICometCTASectionPlaceholder.react","LWICometCreativeSectionPlaceholder.react","LWICometEstimationSectionPlaceholder.react","LWICometExpandableSectionWrapperPlaceholder.react","LWICometObjectiveSectionPlaceholder.react","LWICometPaymentSummarySectionPlaceholder.react","LWICometRightColumnSubmissionSectionPlaceholder.react","LWICometTwoColumnLayoutSubmissionSectionPlaceholder.react","react","unrecoverableViolation","useLWIUIComponentContext"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react");function a(a){var b=a.hasCreative;b=b===void 0?!1:b;var d=a.hasCTA;d=d===void 0?!1:d;var e=a.hasObjective;e=e===void 0?!1:e;var f=a.rightWash;f=f===void 0?!1:f;var g=a.submitButtonLabel,i=a.title;a=a.useRightColumnSubmitButton;a=a===void 0?!1:a;var j=c("useLWIUIComponentContext")();j=j.creationLayout;if(j==null)throw c("unrecoverableViolation")("creationLayout should be provided in LWIUIComponentContext for LWICometViewPlaceholder","pages_lwi");j=j.CreationTwoColumnLayout;if(j==null)return null;var k=[];e&&k.push(h.jsx(c("LWICometObjectiveSectionPlaceholder.react"),{}));d&&k.push(h.jsx(c("LWICometCTASectionPlaceholder.react"),{}));b&&k.push(h.jsx(c("LWICometCreativeSectionPlaceholder.react"),{}));return h.jsx(j,{footer:a?null:h.jsx(c("LWICometTwoColumnLayoutSubmissionSectionPlaceholder.react"),{buttonLabel:g}),isLayoutForPlaceholder:!0,leftContent:[].concat(k,[h.jsx(c("LWICometAudienceSectionPlaceholder.react"),{}),h.jsx(c("LWICometExpandableSectionWrapperPlaceholder.react"),{hideDivider:!0})]),rightContent:[h.jsx(c("LWICometAdPreviewSectionPlaceholder.react"),{unifyCard:f,useWashBackground:f}),h.jsx(c("LWICometEstimationSectionPlaceholder.react"),{unifyCard:f}),h.jsx(c("LWICometPaymentSummarySectionPlaceholder.react"),{hideDivider:!0,unifyCard:f}),a?h.jsx(c("LWICometRightColumnSubmissionSectionPlaceholder.react"),{buttonLabel:g}):h.jsx(h.Fragment,{})],title:i,useWashRightColumn:f})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LWICometEventCreationView.react",["fbt","ix","CometRelay","LWICometAdAccountPicker.react","LWICometAdPreviewRightColumnSection.react","LWICometAudienceV2Section.react","LWICometCreativeSection.react","LWICometDurationBudgetSection.react","LWICometEstimationSection.react","LWICometEventCreationView_boostedComponent.graphql","LWICometEventCreationView_page.graphql","LWICometExpandableSectionWrapper.react","LWICometGenericCreationNotices.react","LWICometObjectiveSection.react","LWICometPaymentMethodSection.react","LWICometPaymentSummarySection.react","LWICometPixelSection.react","LWICometPlacementsSection.react","LWICometProductTwoColumnLayoutContainer.react","LWICometRegulatedCategoriesQuerySection.react","LWICometSubmissionSection.react","cr:1392678","deferredLoadComponent","fbicon","react","requireDeferred","unrecoverableViolation","useLWICometPostsAsCreativesEntrypointDialog"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k,l=d("react"),m=c("deferredLoadComponent")(c("requireDeferred")("LWICometEventObjectiveEffectSection.react").__setRef("LWICometEventCreationView.react")),n={LINK_CLICKS:d("fbicon")._(i("562221"),20)};function a(a){var e=a.boostedComponent,f=a.boostedComponentInput,g=a.page;a=a.title;e=d("CometRelay").useFragment(j!==void 0?j:j=b("LWICometEventCreationView_boostedComponent.graphql"),e);g=d("CometRelay").useFragment(k!==void 0?k:k=b("LWICometEventCreationView_page.graphql"),g);var i=c("useLWICometPostsAsCreativesEntrypointDialog")(f.page_id);i=i[0];var o=e==null?void 0:e.options;if(!o)throw c("unrecoverableViolation")("options should not be empty or else none of the LWI sections can be rendered","pages_lwi");return l.jsx(c("LWICometProductTwoColumnLayoutContainer.react"),{footer:l.jsx(c("LWICometSubmissionSection.react"),{overrideBoostButtonLabel:h._("u7acbu5373u901fu63a8u6d3bu52a8")}),headerAuxiliary:l.jsx(c("LWICometAdAccountPicker.react"),{useTwoColumnLayout:!0}),leftContent:[l.jsx(c("LWICometObjectiveSection.react"),{boostedComponentInput:f,iconOverride:n}),l.jsx(m,{boostedComponentInput:f}),l.jsx(c("LWICometCreativeSection.react"),{aux:i,pageRef:g,showHeadline:!1}),l.jsx(c("LWICometRegulatedCategoriesQuerySection.react"),{optionsRef:o}),l.jsx(c("LWICometAudienceV2Section.react"),{boostedComponentInput:f}),l.jsx(c("LWICometDurationBudgetSection.react"),{boostedComponent:e,boostedComponentInput:f,fetchRecommendation:!0}),l.jsxs(c("LWICometExpandableSectionWrapper.react"),{children:[l.jsx(c("LWICometPlacementsSection.react"),{options:o}),l.jsx(c("LWICometPixelSection.react"),{}),l.jsx(c("LWICometPaymentMethodSection.react"),{})]})].filter(Boolean),rightContent:[l.jsx(c("LWICometAdPreviewRightColumnSection.react"),{useWashBackground:!0}),l.jsx(c("LWICometEstimationSection.react"),{useWashBackground:!0}),l.jsx(c("LWICometPaymentSummarySection.react"),{useWashBackground:!0})],title:a,topContent:[b("cr:1392678")?[l.jsx(b("cr:1392678"),{leadSource:"BOOSTED_EVENT"})]:[],l.jsx(c("LWICometGenericCreationNotices.react"),{boostedComponent:e,boostedComponentProduct:f.product,pageID:f.page_id})],useWashRightColumn:!0})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LWICometObjectiveSectionItemUtils",["fbt","ix","LWICometCommonStrings","fbicon","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";d("react");b={AUTOMATIC:d("fbicon")._(i("587533"),20),CALL_NOW:d("fbicon")._(i("558161"),20),EVENT_RESPONSES:d("fbicon")._(i("509923"),20),EVENT_TICKETING:d("fbicon")._(i("562221"),20),GET_APP_INSTALLS:d("fbicon")._(i("489713"),20),GET_BOOKINGS:d("fbicon")._(i("1904654"),20),GET_CATALOG_SALES:d("fbicon")._(i("509117"),20),GET_LEADS:d("fbicon")._(i("709451"),20),GET_MESSAGES:d("fbicon")._(i("542883"),20),GET_MULTI_MESSAGES:d("fbicon")._(i("542883"),20),GET_PAGE_LIKES:d("fbicon")._(i("509923"),20),GET_POST_ENGAGEMENT:d("fbicon")._(i("509923"),20),GET_PURCHASES:d("fbicon")._(i("763120"),20),GET_VEHICLE_SALES:d("fbicon")._(i("485027"),20),GET_VIDEO_VIEWS:d("fbicon")._(i("484863"),20),GET_WEBSITE_VISITORS:d("fbicon")._(i("586897"),20),LEAD_GENERATION:d("fbicon")._(i("709451"),20),LINK_CLICKS:d("fbicon")._(i("586897"),20),MESSAGES:d("fbicon")._(i("542883"),20),ONSITE_OFFSITE_LEAD_GEN:d("fbicon")._(i("709451"),20),PAGE_LIKES:d("fbicon")._(i("509923"),20),POST_ENGAGEMENT:d("fbicon")._(i("509923"),20),PROMOTE_LOCAL_BUSINESS:d("fbicon")._(i("487558"),20),REACH:d("fbicon")._(i("487558"),20),SHOP_COLLECTION:d("fbicon")._(i("1429119"),20),SHOP_STOREFRONT:d("fbicon")._(i("763120"),20),VIDEO_VIEWS:d("fbicon")._(i("484863"),20),VIEW_INSTAGRAM_PROFILE:d("fbicon")._(i("722859"),20),WEBSITE_CONVERSIONS:d("fbicon")._(i("763120"),20),WHATSAPP_MESSAGES:d("fbicon")._(i("726969"),20)};c=h._("u6211u4eecu4f1au81eau52a8u628au4f60u7684u5e16u5b50u5c55u793au7ed9u53efu80fdu4e0eu4e4bu4e92u52a8u7684{link to our people metrics explanation}",[h._param("link to our people metrics explanation",d("LWICometCommonStrings").PEOPLE_HYPER_LINK)]);function a(a){return a?h._("u5411u89c4u6a21u66f4u5927u3001u76f8u5173u5ea6u66f4u9ad8u7684u975eu516cu5171u4e3bu9875u7c89u4e1du663eu793au8fd9u4e9bu804cu4f4du3002"):h._("u5411u89c4u6a21u66f4u5927u3001u76f8u5173u5ea6u66f4u9ad8u7684u975eu516cu5171u4e3bu9875u7c89u4e1du663eu793au8fd9u4e2au804cu4f4du3002")}a.displayName=a.name+" [from "+f.id+"]";g.GOAL_ICON_MAP=b;g.OBJECTIVE_INFO_CARD_LABEL=c;g.getJobObjectiveDescription=a}),98);
-----
LWICometObjectiveSection_page.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"LWICometObjectiveSection_page",selections:[{args:null,kind:"FragmentSpread",name:"LWICometObjectiveContent_page"}],type:"Page",abstractKey:null};e.exports=a}),null);
-----
LWICometPostCreationView.react",["fbt","ix","BACSCouponUtils.react","CometContextualMessage.react","CometIcon.react","CometRelay","LWICometACOToggle.react","LWICometAdAccountPicker.react","LWICometAdPreviewCTAUtils","LWICometAdPreviewRightColumnSection.react","LWICometAdvantagePlacementsUtils","LWICometAudienceV2Section.react","LWICometBoostPostExistingCTASection.react","LWICometCTASection.react","LWICometCTAUtils","LWICometCallNowUtils","LWICometConstants","LWICometCreateLeadGenFormUtil","LWICometDraftDialogUtils","LWICometDurationBudgetSection.react","LWICometErrorBoundary.react","LWICometEstimationSection.react","LWICometExpandableSectionWrapper.react","LWICometGenericCreationNotices.react","LWICometLeadGenFormContextProvider.react","LWICometLeadGenFormSelectorSection.react","LWICometMarketingExpertUpsellSectionWrapper.react","LWICometMessagingAppsSectionConstants","LWICometMutationUtils","LWICometObjectiveSection.react","LWICometOptionalLoggingDataContext","LWICometPaymentMethodSection.react","LWICometPaymentSummarySection.react","LWICometPixelSection.react","LWICometPlacementsSection.react","LWICometPostButtonDestinationConfigUtils","LWICometPostCreationView_boostedComponent.graphql","LWICometPostCreationView_ctwaInfo.graphql","LWICometPostCreationView_lwi.graphql","LWICometPostCreationView_page.graphql","LWICometPostCreationView_viewer.graphql","LWICometProductTwoColumnLayoutContainer.react","LWICometRegulatedCategoriesQuerySection.react","LWICometSubmissionSection.react","QE2Logger","RelayHooks","cr:1392678","deferredLoadComponent","fbicon","gkx","lwiCometCTAReducer","lwiCometUnifiedCreationReducer","qex","react","recoverableViolation","requireDeferred","unrecoverableViolation","useLWICometContextualDataContext","useLWILoggerContext","useLWIReducers","useLWIVideoCheckStoryReady","useRoutePassthroughProps","withLWICometSpecPart"],(function(a,b,c,d,e,f,g,h,aa){"use strict";var i,j,k,l,m,n=d("react");e=d("react");var ba=e.useCallback,ca=e.useContext,o=e.useEffect,da=e.useMemo,p=e.useRef,ea=e.useState,fa=c("deferredLoadComponent")(c("requireDeferred")("LWICometMessagingAppsSection.react").__setRef("LWICometPostCreationView.react"));function a(a){var e,f=a.adAccountID,g=a.adCreationDialogButtonPropsOverride,q=a.adgroupSpecs,r=a.boostedComponent,s=a.boostedComponentInput,t=a.budget,u=a.ctwaInfo,v=a.devicePlatforms,w=a.draftID,x=a.durationInDays,ga=a.headerAuxiliary,y=a.hideBackgroundImageInAdCreationDialog,z=a.lwi,A=a.objective,B=a.overrideBoostButtonLabel,ha=a.overrideBoostButtonMutation,C=a.page,D=a.pixelStatus,E=a.rightWash;E=E===void 0?!1:E;var F=a.selectedAdgroupID,G=a.selectedGoal,ia=a.shouldCheckAutoBoostEntry,ja=a.submissionIndicatorOverride,H=a.submissionSectionAdditionalTerms,I=a.targetSpec,ka=a.title,J=a.useRightColumnSubmitButton;J=J===void 0?!1:J;a=a.viewer;var K=c("useLWIReducers")([c("lwiCometUnifiedCreationReducer"),c("lwiCometCTAReducer")]),L=d("CometRelay").useFragment(i!==void 0?i:i=b("LWICometPostCreationView_boostedComponent.graphql"),r);r=d("CometRelay").useFragment(j!==void 0?j:j=b("LWICometPostCreationView_page.graphql"),C);C=d("CometRelay").useFragment(k!==void 0?k:k=b("LWICometPostCreationView_ctwaInfo.graphql"),u);u=d("CometRelay").useFragment(l!==void 0?l:l=b("LWICometPostCreationView_lwi.graphql"),z);z=d("CometRelay").useFragment(m!==void 0?m:m=b("LWICometPostCreationView_viewer.graphql"),a);a=L==null?void 0:L.options;if(a==null)throw c("unrecoverableViolation")("options should not be empty or else none of the LWI sections can be rendered","pages_lwi");var M=p(null);o(function(){(L==null?void 0:L.exposeBoostPostLeadGenDefaultExperiment)===!0&&(M.current=c("qex")._("1736"))},[L]);var N=ea(!1),O=N[0];N=N[1];var P=d("RelayHooks").useRelayEnvironment();e=(e=(e=L.context_spec)==null?void 0:(e=e.page)==null?void 0:e.is_lightswitch_enabled)!=null?e:!1;var Q=q[F],R=q[F].creative;Q=d("LWICometCTAUtils").getLWICometCTA(R,Q==null?void 0:Q.assetFeedSpecPlus);Q=Q==null?void 0:Q.type;var S=c("useLWICometContextualDataContext")(),T=S.postInfo.callToActionType,U=d("LWICometMessagingAppsSectionConstants").isMessagingAppCTAType(T),V=d("LWICometMessagingAppsSectionConstants").isWhatsAppNumberBusiness(r==null?void 0:r.connectedWhatsappNumberType);V=d("LWICometMessagingAppsSectionConstants").showUnifiedCreationForPPE(G,T,d("LWICometMessagingAppsSectionConstants").isMessagingAppCTAType(Q),A,V);V=(A==="MESSAGES"||V)&&(d("LWICometMessagingAppsSectionConstants").isMessagingAppCTAType(Q)||U);var la=ca(c("LWICometOptionalLoggingDataContext")),W=c("useLWILoggerContext")();U=W.entryPoint;var ma=W.flowID,X=W.pageID,na=W.product,oa=W.targetID,Y=R==null?void 0:R.object_story_id,pa=U==="ad_proposal_lwi",Z=c("useRoutePassthroughProps")();Y=c("useLWIVideoCheckStoryReady")((Z==null?void 0:Z.isEncodingVideoPost)===!0,(Z=Y)!=null?Z:"");I=((Z=I.geo_locations)==null?void 0:Z.countries)?[].concat((Z=I.geo_locations)==null?void 0:Z.countries):[];Z=v==null?void 0:v.map(function(a){return String(a)});I==null?void 0:I.sort();Z==null?void 0:Z.sort();v=S.postInfo.postUsedForRunningAds===!0;var qa=L==null?void 0:L.context_spec,$=qa==null?void 0:qa.post,ra=($==null?void 0:$.post_owner_type)==="USER";$=($=$==null?void 0:$.is_scheduled_post)!=null?$:!1;var sa=ba(function(a,b){var e="UNPUBLISHED_CONTENT";b=d("LWICometMutationUtils").getCreationMutationData({loggerContext:W,optionalLoggingData:la,spec:a,specHistory:b});b=b.input.creation_spec;d("LWICometDraftDialogUtils").draftMutation({environment:P,existingDraftID:a.draftID,flowID:ma,onErrorCreate:function(){c("recoverableViolation")("Failed to create draft","pages_lwi")},onErrorUpdate:function(){c("recoverableViolation")("Failed to update draft","pages_lwi")},pageID:X,product:na,spec:b,targetID:oa,useCase:e})},[P,ma,W,la,X,na,oa]);w=$?w!=null?h._("u4fddu5b58u66f4u6539"):h._("u901fu63a8u5e16u5b50"):null;var ta=c("gkx")("1046");t=d("BACSCouponUtils.react").useShowBACSCoupon(t,X,f,String(oa),x,"bacs_post_creation_coupon",String(U),A,String(D),String(Q),String(R==null?void 0:R.body),I,Z);D=n.jsx(c("LWICometSubmissionSection.react"),{adCreationDialogButtonPropsOverride:g,additionalRightColumnTermsContent:H,disableSubmitButton:O||!Y,hideAdCenterLinkInAdCreationDialog:U==="media_manager"&&ra,hideBackgroundImageInAdCreationDialog:y,onPreSubmit:ta?t:void 0,overrideBoostButtonLabel:(x=(f=B)!=null?f:w)!=null?x:h._("u7acbu5373u901fu63a8"),overrideCommitMutation:$?sa:null,overrideMutationSubmit:ha,postAdDialogType:"BOOSTED_POST",shouldCheckAutoBoostEntry:ia,submissionIndicatorOverride:ja,useRightColumnSubmitButton:J});var ua=q[F].assetFeedSpecPlus;I=da(function(){return d("LWICometCallNowUtils").isPassCallNowNewOptimizationGoalQE(ua,R,A,T,S.postInfo.postType)?d("LWICometCallNowUtils").getReportedOptimizationGoal():null},[ua,R,A,T,S.postInfo.postType]);Z=Q==="INSTAGRAM_MESSAGE"||T==="INSTAGRAM_MESSAGE";g=S.postInfo.postType===d("LWICometConstants").LINK_POST_TYPE;H=S.postInfo.postType===d("LWICometConstants").PHOTO_POST_TYPE;U=n.jsx(c("LWICometCTASection.react"),{boostedComponentInput:s,buttonDestinationOptionsConfig:e===!1?d("LWICometPostButtonDestinationConfigUtils").boostedPostButtonDestinationOptions:void 0,hideLinkEditor:g,isEnabledLeadgenLWIDefault:(O=M.current)!=null?O:!1,shouldFilterCallNow:!0,shouldShowUnifiedCreation:V,showHeader:!0,showMessageObjectiveUpsell:!0,showWhatsAppLinkErrorNotice:!0});o(function(){(L==null?void 0:L.exposeBoostPostGoalDefaultExperiment)===!0&&c("qex")._("1023")},[L==null?void 0:L.exposeBoostPostGoalDefaultExperiment]);o(function(){(L==null?void 0:L.exposeBoostPostLeadGenMultiphotoExperiment)===!0&&d("QE2Logger").logExposureForActingAccount("lwi_boost_post_support_multi_photo_lead_ad_creation_universe")},[L==null?void 0:L.exposeBoostPostLeadGenMultiphotoExperiment]);ra=G==="ONSITE_OFFSITE_LEAD_GEN"||G==="LEAD_GENERATION";var va=G==="ONSITE_OFFSITE_LEAD_GEN"||G==="LEAD_GENERATION"||G==="AUTOMATIC";B=(t=r==null?void 0:(y=r.admin_info)==null?void 0:(ta=y.lead_forms)==null?void 0:ta.count)!=null?t:0;var wa=p(!1),xa=p(B>0);o(function(){va&&!xa.current&&!wa.current&&M.current===!0&&(wa.current=!0,c("LWICometCreateLeadGenFormUtil")(d("LWICometLeadGenFormContextProvider.react").getLWICometLeadGenAutoGenFormContextData(s.page_id),P,function(a){xa.current=!0,wa.current=!1,K({formID:a,type:"cta_reducer.update_lead_gen_form_id"},{side:"client_side"})},function(a){}))},[va,s,P,K]);w=d("LWICometAdvantagePlacementsUtils").getIsEligibleForAdvantagePlacements(R)&&((f=c("qex")._("95"))!=null?f:!1);return n.jsx(c("LWICometProductTwoColumnLayoutContainer.react"),{footer:J?null:D,headerAuxiliary:(x=ga)!=null?x:n.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometAdAccountPicker",children:n.jsx(c("LWICometAdAccountPicker.react"),{useTwoColumnLayout:!0})}),leftContent:[n.jsx(n.Fragment,{children:pa&&n.jsx("div",{className:"x1yztbdb",children:n.jsx(c("CometContextualMessage.react"),{body:h._("u90e8u5206u680fu4f4du5df2u6839u636eu4f60u4e0eu5ba2u6237u652fu6301u4ee3u8868u7684u5bf9u8bddu9884u5148u586bu5199u3002"),headline:h._("u90e8u5206u680fu4f4du5df2u9884u586b"),icon:n.jsx(c("CometIcon.react"),{color:"blueLink",icon:d("fbicon")._(aa("479181"),24)})})})}),n.jsx(c("LWICometObjectiveSection.react"),{boostedComponentInput:s,eligibleForGoalCard:!0,objectiveSectionRef:r}),n.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometACOToggleSection",children:n.jsx(c("LWICometACOToggle.react"),{pageRef:r,showAdOptimizationSection:!0})}),c("LWICometLeadGenFormSelectorSection.react")!=null&&!v&&ra?n.jsx(c("LWICometLeadGenFormSelectorSection.react"),{boostedComponentInput:s,contextSpec:qa,setDisableSubmitButton:N}):n.jsx(n.Fragment,{}),n.jsx(n.Fragment,{children:T==null&&(G==="AUTOMATIC"||!V)?U:null}),n.jsx(n.Fragment,{children:T==="WHATSAPP_MESSAGE"&&!V?n.jsx(c("LWICometBoostPostExistingCTASection.react"),{}):null}),n.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometRegulatedCategoriesQuerySection",children:n.jsx(c("LWICometRegulatedCategoriesQuerySection.react"),{optionsRef:a})}),n.jsx(n.Fragment,{children:V?n.jsx(fa,{boostedComponentInput:s,boostedComponentRef:L,ctwaInfoRef:C,lwiRef:u,macrosRef:z,onCleanUp:function(){K({type:"unified_creation_reducer.clean_up_unified_creation_spec"})},pageRef:r,productFlow:"boost_post_create_flow"}):null}),n.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometAudienceSection",children:n.jsx(c("LWICometAudienceV2Section.react"),{boostedComponentInput:s})}),n.jsx(c("LWICometDurationBudgetSection.react"),{boostedComponent:L,boostedComponentInput:s,fetchBudgetThreshold:!0,fetchRecommendation:!0}),w?n.jsx(c("LWICometPlacementsSection.react"),{options:a}):null,n.jsx(c("LWICometExpandableSectionWrapper.react"),{children:[w?null:n.jsx(c("LWICometPlacementsSection.react"),{options:a},"placements"),n.jsx(c("LWICometPixelSection.react"),{conversionsEventType:"purchase"},"pixel"),n.jsx(c("LWICometPaymentMethodSection.react"),{hasBottomDivider:!1},"payment")].filter(Boolean)})].filter(Boolean),rightContent:[n.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometAdPreviewRightColumnSection",children:n.jsx(c("LWICometAdPreviewRightColumnSection.react"),{defaultToInstagramPreview:Z,getPreviewCtaValue:d("LWICometAdPreviewCTAUtils").getDefaultCtaValue,isVideoStoryReady:Y,usePlaceholderWebsite:H,useWashBackground:E})}),n.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometEstimationSection",children:n.jsx(c("LWICometEstimationSection.react"),{optimizationGoalOverride:I,useWashBackground:E})}),n.jsx(c("LWICometErrorBoundary.react"),{sectionName:"LWICometPaymentSummarySection",children:n.jsx(c("LWICometPaymentSummarySection.react"),{useWashBackground:E})}),n.jsx(c("LWICometMarketingExpertUpsellSectionWrapper.react"),{hasTopDivider:!0,pageID:s.page_id,useWashBackground:E}),J?D:n.jsx(n.Fragment,{})],title:ka,topContent:[b("cr:1392678")?[n.jsx(b("cr:1392678"),{leadSource:"BOOSTED_POST"})]:[],n.jsx(c("LWICometGenericCreationNotices.react"),{boostedComponent:L,boostedComponentProduct:s.product,pageID:s.page_id,similarAdNoticeHeader:h._("u4f60u76eeu524du5df2u901fu63a8u8fd9u7bc7u5e16u5b50u3002")})],useWashRightColumn:E})}a.displayName=a.name+" [from "+f.id+"]";e=c("withLWICometSpecPart")(a,function(a){return{adAccountID:a.adAccountData.legacyAccountID,adgroupSpecs:a.adgroupSpecs,budget:a.budgetData.budget,devicePlatforms:a.placementSpec.publisher_platforms,draftID:a.draftID,durationInDays:a.durationInDays,objective:a.objective,pixelStatus:a.pixelID,selectedAdgroupID:a.selectedAdgroupID,selectedGoal:a.goal,targetSpec:a.audienceData.targetSpec}});g["default"]=e}),98);
-----
LWICometPostCreationView_page.graphql",[],(function(a,b,c,d,e,f){"use strict";a={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"LWICometPostCreationView_page",selections:[{args:null,kind:"FragmentSpread",name:"LWICometACOToggle_page"},{args:null,kind:"FragmentSpread",name:"LWICometMessagingAppsSection_page"},{args:null,kind:"FragmentSpread",name:"LWICometObjectiveSection_page"},{alias:"connectedWhatsappNumberType",args:null,kind:"ScalarField",name:"connected_whatsapp_number_type",storageKey:null},{alias:null,args:null,concreteType:"PageAdminInfo",kind:"LinkedField",name:"admin_info",plural:!1,selections:[{alias:null,args:[{kind:"Literal",name:"lead_gen_status",value:["ACTIVE"]},{kind:"Literal",name:"lead_gen_use_case",value:["AUTOMATED_ADS","INSTANT_ARTICLES","LWI","MARKETPLACE_VERTICALS","MARKETPLACE_RENTALS","MARKETPLACE_HOME_SALES","NEWS_FUNDING","USER_FUNDING_SUBSCRIPTION","PAGES_PLATFORM","SERVICES_MASS_LEAD_GEN","SOTTO","NATIVE_LEAD_GEN"]}],concreteType:"LeadGenFormsConnection",kind:"LinkedField",name:"lead_forms",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"count",storageKey:null}],storageKey:"lead_forms(lead_gen_status:["ACTIVE"],lead_gen_use_case:["AUTOMATED_ADS","INSTANT_ARTICLES","LWI","MARKETPLACE_VERTICALS","MARKETPLACE_RENTALS","MARKETPLACE_HOME_SALES","NEWS_FUNDING","USER_FUNDING_SUBSCRIPTION","PAGES_PLATFORM","SERVICES_MASS_LEAD_GEN","SOTTO","NATIVE_LEAD_GEN"])"}],storageKey:null}],type:"Page",abstractKey:null};e.exports=a}),null);
-----
LWICometObjectiveSection.react",["CometPlaceholder.react","CometRelay","LWICometObjectiveContent.react","LWICometObjectiveSection_page.graphql","LWICometSectionGlimmer.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h,i=d("react");function a(a){var e=a.objectiveSectionRef;a=babelHelpers.objectWithoutPropertiesLoose(a,["objectiveSectionRef"]);e=d("CometRelay").useFragment(h!==void 0?h:h=b("LWICometObjectiveSection_page.graphql"),e);return i.jsx(c("CometPlaceholder.react"),{fallback:i.jsx(c("LWICometSectionGlimmer.react"),{}),children:i.jsx(c("LWICometObjectiveContent.react"),babelHelpers["extends"]({},a,{objectiveContentRef:e}))})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
useLWICometObjectiveSpecListQuery",["CometRelay","LWICometConstants","LWICometObjectiveSectionItemUtils","compactArray","react","recoverableViolation","useLWICometContextualDataContext","useLWICometObjectiveSpecListQuery.graphql"],(function(a,b,c,d,e,f,g){"use strict";var h;e=d("react");var i=e.useDeferredValue,j=e.useMemo,k=h!==void 0?h:h=b("useLWICometObjectiveSpecListQuery.graphql");function a(a,b,e){b=i(b);b=d("CometRelay").useLazyLoadQuery(k,{adAccountID:b,boostedComponentInput:a});a=c("useLWICometContextualDataContext")();a=a.postInfo.postType===d("LWICometConstants").MULTI_PHOTO_POST_TYPE;var f=(b=b.lwi)==null?void 0:(b=b.boosted_component)==null?void 0:(b=b.options)==null?void 0:b.eligible_objectives;return j(function(){return f==null?null:c("compactArray")(f.map(function(a){var b,f,g=a.description,h=a.goal,i=a.inferred_goal,j=a.metadata_list,k=a.title;b=(b=a.objective)!=null?b:j==null?void 0:(b=j[0])==null?void 0:b.objective;if(b==null||k==null||h==null){c("recoverableViolation")("objective or title or goal field of an eligible objective is null","pages_lwi");return null}f=(f=e==null?void 0:e[b])!=null?f:d("LWICometObjectiveSectionItemUtils").GOAL_ICON_MAP[h];if(f==null){c("recoverableViolation")("goal: "+h+" does not have a corresponding icon in configuration","pages_lwi");return null}a=(a=a.offsite_custom_event)!=null?a:j==null?void 0:(a=j[0])==null?void 0:a.offsite_custom_event;return{description:g,goal:h,icon:f,inferredGoal:i,metadataList:l(j),objective:b,offsiteCustomEvent:a,title:k}}))},[f,e,a])}function l(a){return c("compactArray")(a.map(function(a){var b=a.objective,d=a.offsite_custom_event,e=a.selector_description;a=a.selector_title;if(e==null||b==null||a==null){c("recoverableViolation")("Metadata objective or description or title cannot be null.","pages_lwi");return null}return{objective:b,offsiteCustomEvent:d,selectorDescription:e,selectorTitle:a}}))}g["default"]=a}),98);
-----
LiveProducerLiveAdsTabPlaceholder.react",["fbt","LWICometAdPreviewSectionPlaceholder.react","LWICometAudienceSectionPlaceholder.react","LWICometCTASectionPlaceholder.react","LWICometEstimationSectionPlaceholder.react","LWICometExpandableSectionWrapperPlaceholder.react","LWICometObjectiveSectionPlaceholder.react","LWICometPaymentSummarySectionPlaceholder.react","LWICometProductTwoColumnLayout.react","LWICometRightColumnSubmissionSectionPlaceholder.react","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i=d("react"),j=h._("u901fu63a8u5e16u5b50"),k=h._("u7f16u8f91u901fu63a8u5e16"),l=h._("u7acbu5373u901fu63a8u5e16u5b50"),m=h._("u4fddu5b58u66f4u6539");function a(a){a=a.isEditingFlow;a=a===void 0?!1:a;return i.jsx(c("LWICometProductTwoColumnLayout.react"),{footer:null,leftContent:[i.jsx(c("LWICometObjectiveSectionPlaceholder.react"),{}),i.jsx(c("LWICometCTASectionPlaceholder.react"),{}),i.jsx(c("LWICometAudienceSectionPlaceholder.react"),{}),i.jsx(c("LWICometExpandableSectionWrapperPlaceholder.react"),{})],rightContent:[i.jsx(c("LWICometAdPreviewSectionPlaceholder.react"),{}),i.jsx(c("LWICometEstimationSectionPlaceholder.react"),{}),i.jsx(c("LWICometPaymentSummarySectionPlaceholder.react"),{}),i.jsx(c("LWICometRightColumnSubmissionSectionPlaceholder.react"),{buttonLabel:a?m:l})],title:a?k:j})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
LWICometObjectiveSectionPlaceholder.react",["CometGlimmer.react","LWICometPlaceholderCard.react","react"],(function(a,b,c,d,e,f,g){"use strict";var h=d("react"),i={icon:{borderTopStartRadius:"x107yiy2",borderTopEndRadius:"xv8uw2v",borderBottomEndRadius:"x1tfwpuw",borderBottomStartRadius:"x2g32xy",height:"x1vqgdyp",marginEnd:"xq8finb",width:"x100vrsf",$$css:!0},option:{alignItems:"x6s0dn4",display:"x78zum5",marginTop:"xw7yly9",$$css:!0},subtitle:{height:"x1qx5ct2",width:"xqyf9gi",$$css:!0},text:{height:"x1qx5ct2",width:"xqyf9gi",$$css:!0},title:{height:"xxk0z11",marginBottom:"x1e56ztr",width:"xja02kk",$$css:!0}},j=[1,2];function a(a){return h.jsxs(c("LWICometPlaceholderCard.react"),{children:[h.jsx(c("CometGlimmer.react"),{index:1,xstyle:i.title}),h.jsx(c("CometGlimmer.react"),{index:1,xstyle:i.subtitle}),j.map(function(a){return h.jsxs("div",{className:"x6s0dn4 x78zum5 xw7yly9",children:[h.jsx(c("CometGlimmer.react"),{index:a,xstyle:i.icon}),h.jsx(c("CometGlimmer.react"),{index:a,xstyle:i.text})]},a)})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----