AdsGuidanceWebsiteAndInstantFormL2Container.react",["AdsAdvantageAudienceUtils","AdsFluxHooks","AdsGuidanceWebsiteAndInstantFormL2ContainerQuery.graphql","AdsInlineGuidanceContainer.react","AdsPreflightRecommendationWebsiteAndInstantFormL2Plugin","AdsPromotedObjectTypes","AdsUEditorAdgroupArSelectors","AdsUEditorHooks","AdsUEditorPreflightRecommendationHubSelectors","AdsUEditorPreflightRecommendationHubURCIntegrationGatingUtils","AdsUEditorSelectors","RelayHooks","adsCreateSelector","adsGetUniformValueSelector","adsMgmtCampaignSelectedIdsSelector","adsUEditorCampaignDerivedPromotedObjectTypeSelector","adsUEditorCampaignFragmentIDSelector","adsUEditorPreflightUGPRecommendationWebsiteAndInstantFormL2Fragment","firstx","promiseDone","react","uuidv4"],(function(Q,v,e,t,w,r,y){var i,s,F=s||(s=t("react")),m=s,S=m.useMemo,C=m.useState,U=e("adsGetUniformValueSelector")(t("AdsUEditorSelectors").campaign.bulkByAccessorToJS(function(o){return o.destination_type}),null),R=e("adsGetUniformValueSelector")(e("adsUEditorCampaignDerivedPromotedObjectTypeSelector"),e("AdsPromotedObjectTypes").NONE),f=e("adsCreateSelector")([e("adsUEditorCampaignFragmentIDSelector"),t("AdsUEditorAdgroupArSelectors").selectedObjectiveSelector,U,R,e("adsMgmtCampaignSelectedIdsSelector"),t("AdsUEditorPreflightRecommendationHubSelectors").AdsUEditorPreflightRecommendationHubSelector],function(o,d,n,a,l,u){return{fragmentId:o,objective:d,destinationType:n,promotedObjectType:a,campaignID:e("firstx")(l),shouldShowPFRHub:u.shouldShowPFRHub}},{name:r.id+".stateSelector"});function c(){var o,d,n=t("AdsUEditorHooks").useUEditorCampaignAdsSelector(f),a=n.fragmentId,l=n.objective,u=n.destinationType,P=n.promotedObjectType,b=n.campaignID,p=n.shouldShowPFRHub,_=t("RelayHooks").useRelayEnvironment(),g=C(),A=g[0],G=g[1],I={website_and_instant_form_l2:{objective:t("AdsAdvantageAudienceUtils").convertObjectiveForGraphQL(l),destination_type:u,promoted_object_type:P}},L=JSON.stringify(I);S(function(){if(a!=null){var H=a.indexOf("-")<0?a:b;e("promiseDone")(t("RelayHooks").fetchQuery(_,i!==void 0?i:i=v("AdsGuidanceWebsiteAndInstantFormL2ContainerQuery.graphql"),{clientId:"ADS_MANAGER_PFR_WEBSITE_AND_INSTANT_FORM_L2_INLINE_CONTAINER",requestId:e("uuidv4")(),scope:{ad_object:{ad_object_ids:[H],ad_objects_level:"CAMPAIGN"}},options:{},pfrInputs:[I],channel:"CREATION_AND_EDITING",shouldFetchURCContent:t("AdsUEditorPreflightRecommendationHubURCIntegrationGatingUtils").shouldFetchURCContent()}).toPromise().then(function(W){G(W)}))}},[_,a,L]);var h=t("adsUEditorPreflightUGPRecommendationWebsiteAndInstantFormL2Fragment").useAdsUEditorPreflightUGPRecommendationWebsiteAndInstantFormL2Fragment(A),j=((o=h.eligible_ad_object_ids)==null?void 0:o.length)!==0,T=new Map([["website_and_instant_form_l2",h]]);return j?F.jsx(e("AdsInlineGuidanceContainer.react"),babelHelpers.extends({contentsQueryRef:A==null||(d=A.xfb_ugp_gen_pfrs)==null?void 0:d.URCInlinePFRContents},{guidancePluginKeyToGuidanceExtraDataMap:T},{plugin:e("AdsPreflightRecommendationWebsiteAndInstantFormL2Plugin"),pluginKey:"website_and_instant_form_l2",shouldShowPFRHub:p,targetAdObjectIDs:[b]})):null}c.displayName=c.name+" [from "+r.id+"]";var E=t("AdsFluxHooks").adsFluxContainer(c,null,{containerName:r.id});y.default=E}),98);
-----