AdsUEditorCLOCreditGuidanceCard.react",["fbt","AdsUEditorCLOCreditGuidanceCardMutation.graphql","AdsUEditorCLOCreditGuidanceCardTermsAcceptedMutation.graphql","ConversionAPILeadAdsStatContent","GeoButton.react","GeoGuidanceCard.react","GeoGuidanceCardContent.react","GeoGuidanceCardHeader.react","GeoHintText.react","GeoLink.react","GeoText.react","GeoTooltip.react","LeadGenAdsCreditUtils","LeadGenSVConversionLeadsOptimizationSitevarConfig","RelayHooks","geoMargin","meta-brand-arrow-up-diagonal-right-square-filled-16","nullthrows","react","react-compiler-runtime"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c,d=c||(c=o("react")),m=c.useEffect,p=e!==void 0?e:e=n("AdsUEditorCLOCreditGuidanceCardMutation.graphql"),_=u!==void 0?u:u=n("AdsUEditorCLOCreditGuidanceCardTermsAcceptedMutation.graphql"),f="https://www.facebook.com/legal/couponterms";function g(e){var t=o("react-compiler-runtime").c(27),n=e.businessID,a=e.buttonLabel,i=e.buttonRedirectionLink,l=e.eligibilityTier,u=e.pixelSetupState,c;t[0]!==l?(c=o("LeadGenAdsCreditUtils").getCreditAmountForTier(l),t[0]=l,t[1]=c):c=t[1];var g=c,h=o("RelayHooks").useMutation(p),y=h[0],C=o("RelayHooks").useMutation(_),b=C[0],v,S;t[2]!==n||t[3]!==y||t[4]!==u?(v=function(){u==="NOT_STARTED"&&y({variables:{businessID:r("nullthrows")(n)}})},S=[n,u,y],t[2]=n,t[3]=y,t[4]=u,t[5]=v,t[6]=S):(v=t[5],S=t[6]),m(v,S);var R;t[7]!==n||t[8]!==a||t[9]!==i||t[10]!==b||t[11]!==g||t[12]!==u?(R=u==="NOT_STARTED"?{header:d.jsx(r("GeoGuidanceCardHeader.react"),{heading:s._(/*BTDS*/"",[s._param("creditAmount",g)])}),description:d.jsxs(d.Fragment,{children:[d.jsx(r("GeoText.react"),{children:s._(/*BTDS*/"",[s._param("creditAmount",g),s._implicitParam("=m5",d.jsx(r("GeoLink.react"),{href:f,target:"_blank",children:s._(/*BTDS*/"")}))])}),d.jsx(r("GeoButton.react"),{href:i,icon:o("meta-brand-arrow-up-diagonal-right-square-filled-16").metaBrandArrowUpDiagonalRightSquareShareExternalFilled16,label:s._(/*BTDS*/""),target:"_blank",xstyle:r("geoMargin").top12,onClick:function(){u==="NOT_STARTED"&&b({variables:{businessID:r("nullthrows")(n)}})}})]})}:u==="IN_PROGRESS"?{header:d.jsx(r("GeoGuidanceCardHeader.react"),{heading:s._(/*BTDS*/"",[s._param("creditAmount",g),s._param("qualityLeadCostReduction",r("LeadGenSVConversionLeadsOptimizationSitevarConfig").apps.integrated_cpql_reduction_str)]),headingToolTip:d.jsx(r("GeoTooltip.react"),{content:d.jsx(r("GeoHintText.react"),{children:o("ConversionAPILeadAdsStatContent").CAPI_LEAD_ADS_LIFT_CITATION})})}),description:d.jsxs(d.Fragment,{children:[d.jsx(r("GeoText.react"),{children:s._(/*BTDS*/"",[s._param("creditAmount",g),s._implicitParam("=m5",d.jsx(r("GeoLink.react"),{href:f,target:"_blank",children:s._(/*BTDS*/"")}))])}),d.jsx(r("GeoButton.react"),{href:i,icon:o("meta-brand-arrow-up-diagonal-right-square-filled-16").metaBrandArrowUpDiagonalRightSquareShareExternalFilled16,label:a,target:"_blank",xstyle:r("geoMargin").top12})]})}:u==="COMPLETED"?{header:d.jsx(r("GeoGuidanceCardHeader.react"),{heading:s._(/*BTDS*/"",[s._param("creditAmount",g)])}),description:d.jsx(r("GeoText.react"),{children:s._(/*BTDS*/"",[s._param("creditAmount",g),s._implicitParam("=m3",d.jsx(r("GeoLink.react"),{href:f,target:"_blank",children:s._(/*BTDS*/"")}))])})}:null,t[7]=n,t[8]=a,t[9]=i,t[10]=b,t[11]=g,t[12]=u,t[13]=R):R=t[13];var L=R;if(L==null)return null;var E;t[14]!==a||t[15]!==i||t[16]!==u?(E=u==="COMPLETED"&&d.jsx(r("GeoButton.react"),{href:i,icon:o("meta-brand-arrow-up-diagonal-right-square-filled-16").metaBrandArrowUpDiagonalRightSquareShareExternalFilled16,label:a,target:"_blank",xstyle:r("geoMargin").top12}),t[14]=a,t[15]=i,t[16]=u,t[17]=E):E=t[17];var k=u==="IN_PROGRESS"?"warning":"active-feedback",I;t[18]!==L.description?(I=d.jsx(r("GeoGuidanceCardContent.react"),{children:L.description}),t[18]=L.description,t[19]=I):I=t[19];var T;t[20]!==L.header||t[21]!==k||t[22]!==I?(T=d.jsx(r("GeoGuidanceCard.react"),{header:L.header,status:k,xstyle:r("geoMargin").top16,children:I}),t[20]=L.header,t[21]=k,t[22]=I,t[23]=T):T=t[23];var D;return t[24]!==E||t[25]!==T?(D=d.jsxs(d.Fragment,{children:[E,T]}),t[24]=E,t[25]=T,t[26]=D):D=t[26],D}l.default=g}),226);
-----
LeadGenAdsCreditHowItWorksModal.react",["fbt","ix","GeoButton.react","GeoHeading.react","GeoIllustrationModal.react","GeoModalFooter.react","GeoSection.react","GeoText.react","GeoVStack.react","Image.react","LeadGenAdsCreditUtils","LeadGenSVConversionLeadsOptimizationSitevarConfig","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||d("react");function a(a){var b=a.couponTier,e=a.isShown,f=a.onClose;a=a.onGetStarted;b=d("LeadGenAdsCreditUtils").getCreditAmountForTier(b);var g=k.jsx(c("Image.react"),{alt:h._(/*BTDS*/"Ad credit illustration"),src:i("404451"),style:{height:"100%",width:"100%"}});a=k.jsx(c("GeoModalFooter.react"),{primaryButton:k.jsx(c("GeoButton.react"),{label:h._(/*BTDS*/"Get started"),onClick:a,variant:"primary"}),secondaryButton:k.jsx(c("GeoButton.react"),{label:h._(/*BTDS*/"Cancel"),onClick:f})});var j=h._(/*BTDS*/"{=m0}",[h._implicitParam("=m0",k.jsx("strong",{children:h._(/*BTDS*/"Get {credit amount} ad credit before December 31",[h._param("credit amount",b)])}))]);return k.jsx(c("GeoIllustrationModal.react"),{footer:a,heading:j,image:g,isShown:e,onHide:f,orientation:"vertical",children:k.jsx(c("GeoSection.react"),{children:k.jsxs(c("GeoVStack.react"),{children:[k.jsx(c("GeoHeading.react"),{level:4,children:h._(/*BTDS*/"How to get your {credit amount} ad credit",[h._param("credit amount",b)])}),k.jsxs("ol",{children:[k.jsx("li",{children:k.jsx(a=c("GeoText.react"),{children:h._(/*BTDS*/"Connect your CRM with Conversions API and send at least one CRM event")})}),k.jsx("li",{children:k.jsx(a,{children:h._(/*BTDS*/"Select {=m1} as the conversion location for your next leads campaign, and choose {=m4} as the performance goal.",[h._implicitParam("=m1",k.jsx("strong",{children:h._(/*BTDS*/"Instant Form")})),h._implicitParam("=m4",k.jsx("strong",{children:h._(/*BTDS*/"Maximize number of conversion leads")}))])})}),k.jsx("li",{children:k.jsx(a,{children:h._(/*BTDS*/"Your {credit amount} ad credit will be automatically applied to your next campaign.",[h._param("credit amount",b)])})})]}),k.jsx(c("GeoHeading.react"),{level:4,children:h._(/*BTDS*/"How long will the ad credit be applied?")}),k.jsx(a,{children:h._(/*BTDS*/"The ad credit will apply until December 31st or until supplies last. For best results to lower your cost per quality lead by {number of cost reduction}u0025, configure your sales funnel to complete your CRM integration.",[h._param("number of cost reduction",c("LeadGenSVConversionLeadsOptimizationSitevarConfig").apps.integrated_cpql_reduction_str)])})]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
LeadGenAdsCreditUtils",[],(function(u,n,d,a,o,s,e){"use strict";function r(t){switch(t){case"HIGH_SPEND":return"$1,500";case"MID_SPEND":return"$500";case"LOW_SPEND":return"$120";default:return null}}e.getCreditAmountForTier=r}),98);
-----
AdsEventsManagerNotifCenterCRMCAPISetupGuidanceCardContainer.react",["AdsEventsManagerNotifCenterCRMCAPISetupGuidanceAssets","AdsEventsManagerNotifCenterCRMCAPISetupGuidanceCardContainerMutation.graphql","AdsEventsManagerNotifCenterCRMCAPISetupGuidanceCardContainer_Query.graphql","AdsEventsManagerNotificationCenterRecommendationTaskCard.react","AdsFluxHooks","LeadGenAdsCreditUtils","RelayHooks","XAdsEventsManagerControllerRouteBuilder","adsEventsManagerBusinessIDSelector","goUriOnNewWindow","justknobx","nullthrows","react","react-compiler-runtime"],(function(D,N,a,t,H,T,k){"use strict";var _,f,g,U=g||(g=t("react")),L=g.useEffect;function Q(s){var h,e=t("react-compiler-runtime").c(20),I=s.affectedDataSources,E=s.messageKeyGroupName,S=s.messages,R=s.severity,n=t("AdsFluxHooks").useAdsSelector(a("adsEventsManagerBusinessIDSelector")),i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=_!==void 0?_:_=N("AdsEventsManagerNotifCenterCRMCAPISetupGuidanceCardContainerMutation.graphql"),e[0]=i):i=e[0];var x=t("RelayHooks").useMutation(i),C=x[0],q=t("RelayHooks").useLazyLoadQuery(f!==void 0?f:f=N("AdsEventsManagerNotifCenterCRMCAPISetupGuidanceCardContainer_Query.graphql"),{businessId:a("nullthrows")(n)}),o,d;e[1]!==n||e[2]!==C?(o=function(){n!=null&&C({variables:{businessID:n}})},d=[n,C],e[1]=n,e[2]=C,e[3]=o,e[4]=d):(o=e[3],d=e[4]),L(o,d);var u=((h=q.business)==null?void 0:h.clo_ads_credit_eligibility_tier)||"INELIGIBLE",c,r;if(e[5]!==u){r=Symbol.for("react.early_return_sentinel");e:{var b=t("LeadGenAdsCreditUtils").getCreditAmountForTier(u);if(!a("justknobx")._("1118")||u==="INELIGIBLE"||b==null){r=null;break e}c=t("AdsEventsManagerNotifCenterCRMCAPISetupGuidanceAssets").getCRMCAPISetupGuidanceTitle(b)}e[5]=u,e[6]=c,e[7]=r}else c=e[6],r=e[7];if(r!==Symbol.for("react.early_return_sentinel"))return r;var G=c,l;e[8]!==n?(l=function(){var w=a("XAdsEventsManagerControllerRouteBuilder").buildURL({business_id:a("nullthrows")(n),dialog:"crm_get_started"});a("goUriOnNewWindow")(w)},e[8]=n,e[9]=l):l=e[9];var P=l,A;e[10]!==P?(A=[{label:t("AdsEventsManagerNotifCenterCRMCAPISetupGuidanceAssets").CRM_CAPI_SETUP_GUIDANCE_CTA,onClick:function(){P()},type:"button",variant:"primary"}],e[10]=P,e[11]=A):A=e[11];var y=A,M;e[12]===Symbol.for("react.memo_cache_sentinel")?(M=t("AdsEventsManagerNotifCenterCRMCAPISetupGuidanceAssets").getCRMCAPISetupGuidanceDescription(),e[12]=M):M=e[12];var v;return e[13]!==I||e[14]!==y||e[15]!==G||e[16]!==E||e[17]!==S||e[18]!==R?(v=U.jsx(a("AdsEventsManagerNotificationCenterRecommendationTaskCard.react"),{callToActions:y,dataSources:I,description:M,imageContent:t("AdsEventsManagerNotifCenterCRMCAPISetupGuidanceAssets").CRM_CAPI_SETUP_GUIDANCE_ILLUSTRATION,messageKeyGroupName:E,messages:S,severity:R,subtitle:t("AdsEventsManagerNotifCenterCRMCAPISetupGuidanceAssets").CRM_CAPI_SETUP_GUIDANCE_SUBTITLE,title:G}),e[13]=I,e[14]=y,e[15]=G,e[16]=E,e[17]=S,e[18]=R,e[19]=v):v=e[19],v}var m=t("AdsFluxHooks").adsFluxContainer(Q,null,{containerName:T.id});k.default=m}),98);
-----
-----
LeadGenAdsCreditHowItWorksModal.react",["fbt","ix","GeoButton.react","GeoHeading.react","GeoIllustrationModal.react","GeoModalFooter.react","GeoSection.react","GeoText.react","GeoVStack.react","Image.react","LeadGenAdsCreditUtils","LeadGenSVConversionLeadsOptimizationSitevarConfig","react"],(function(a,b,c,d,e,f,g,h,i){"use strict";var j,k=j||d("react");function a(a){var b=a.couponTier,e=a.isShown,f=a.onClose;a=a.onGetStarted;b=d("LeadGenAdsCreditUtils").getCreditAmountForTier(b);var g=k.jsx(c("Image.react"),{alt:h._(/*BTDS*/"Ad credit illustration"),src:i("404451"),style:{height:"100%",width:"100%"}});a=k.jsx(c("GeoModalFooter.react"),{primaryButton:k.jsx(c("GeoButton.react"),{label:h._(/*BTDS*/"Get started"),onClick:a,variant:"primary"}),secondaryButton:k.jsx(c("GeoButton.react"),{label:h._(/*BTDS*/"Cancel"),onClick:f})});var j=h._(/*BTDS*/"{=m0}",[h._implicitParam("=m0",k.jsx("strong",{children:h._(/*BTDS*/"Get {credit amount} ad credit before December 31",[h._param("credit amount",b)])}))]);return k.jsx(c("GeoIllustrationModal.react"),{footer:a,heading:j,image:g,isShown:e,onHide:f,orientation:"vertical",children:k.jsx(c("GeoSection.react"),{children:k.jsxs(c("GeoVStack.react"),{children:[k.jsx(c("GeoHeading.react"),{level:4,children:h._(/*BTDS*/"How to get your {credit amount} ad credit",[h._param("credit amount",b)])}),k.jsxs("ol",{children:[k.jsx("li",{children:k.jsx(a=c("GeoText.react"),{children:h._(/*BTDS*/"Connect your CRM with Conversions API and send at least one CRM event")})}),k.jsx("li",{children:k.jsx(a,{children:h._(/*BTDS*/"Select {=m1} as the conversion location for your next leads campaign, and choose {=m4} as the performance goal.",[h._implicitParam("=m1",k.jsx("strong",{children:h._(/*BTDS*/"Instant Form")})),h._implicitParam("=m4",k.jsx("strong",{children:h._(/*BTDS*/"Maximize number of conversion leads")}))])})}),k.jsx("li",{children:k.jsx(a,{children:h._(/*BTDS*/"Your {credit amount} ad credit will be automatically applied to your next campaign.",[h._param("credit amount",b)])})})]}),k.jsx(c("GeoHeading.react"),{level:4,children:h._(/*BTDS*/"How long will the ad credit be applied?")}),k.jsx(a,{children:h._(/*BTDS*/"The ad credit will apply until December 31st or until supplies last. For best results to lower your cost per quality lead by {number of cost reduction}u0025, configure your sales funnel to complete your CRM integration.",[h._param("number of cost reduction",c("LeadGenSVConversionLeadsOptimizationSitevarConfig").apps.integrated_cpql_reduction_str)])})]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
LeadGenAdsCreditUtils",[],(function(u,n,d,a,o,s,e){"use strict";function r(t){switch(t){case"HIGH_SPEND":return"$1,500";case"MID_SPEND":return"$500";case"LOW_SPEND":return"$120";default:return null}}e.getCreditAmountForTier=r}),98);
-----
AdsEventsManagerNotifCenterCRMCAPISetupGuidanceCardContainer.react",["AdsEventsManagerNotifCenterCRMCAPISetupGuidanceAssets","AdsEventsManagerNotifCenterCRMCAPISetupGuidanceCardContainerMutation.graphql","AdsEventsManagerNotifCenterCRMCAPISetupGuidanceCardContainer_Query.graphql","AdsEventsManagerNotificationCenterRecommendationTaskCard.react","AdsFluxHooks","LeadGenAdsCreditUtils","RelayHooks","XAdsEventsManagerControllerRouteBuilder","adsEventsManagerBusinessIDSelector","goUriOnNewWindow","justknobx","nullthrows","react","react-compiler-runtime"],(function(D,N,a,t,H,T,k){"use strict";var _,f,g,U=g||(g=t("react")),L=g.useEffect;function Q(s){var h,e=t("react-compiler-runtime").c(20),I=s.affectedDataSources,E=s.messageKeyGroupName,S=s.messages,R=s.severity,n=t("AdsFluxHooks").useAdsSelector(a("adsEventsManagerBusinessIDSelector")),i;e[0]===Symbol.for("react.memo_cache_sentinel")?(i=_!==void 0?_:_=N("AdsEventsManagerNotifCenterCRMCAPISetupGuidanceCardContainerMutation.graphql"),e[0]=i):i=e[0];var x=t("RelayHooks").useMutation(i),C=x[0],q=t("RelayHooks").useLazyLoadQuery(f!==void 0?f:f=N("AdsEventsManagerNotifCenterCRMCAPISetupGuidanceCardContainer_Query.graphql"),{businessId:a("nullthrows")(n)}),o,d;e[1]!==n||e[2]!==C?(o=function(){n!=null&&C({variables:{businessID:n}})},d=[n,C],e[1]=n,e[2]=C,e[3]=o,e[4]=d):(o=e[3],d=e[4]),L(o,d);var u=((h=q.business)==null?void 0:h.clo_ads_credit_eligibility_tier)||"INELIGIBLE",c,r;if(e[5]!==u){r=Symbol.for("react.early_return_sentinel");e:{var b=t("LeadGenAdsCreditUtils").getCreditAmountForTier(u);if(!a("justknobx")._("1118")||u==="INELIGIBLE"||b==null){r=null;break e}c=t("AdsEventsManagerNotifCenterCRMCAPISetupGuidanceAssets").getCRMCAPISetupGuidanceTitle(b)}e[5]=u,e[6]=c,e[7]=r}else c=e[6],r=e[7];if(r!==Symbol.for("react.early_return_sentinel"))return r;var G=c,l;e[8]!==n?(l=function(){var w=a("XAdsEventsManagerControllerRouteBuilder").buildURL({business_id:a("nullthrows")(n),dialog:"crm_get_started"});a("goUriOnNewWindow")(w)},e[8]=n,e[9]=l):l=e[9];var P=l,A;e[10]!==P?(A=[{label:t("AdsEventsManagerNotifCenterCRMCAPISetupGuidanceAssets").CRM_CAPI_SETUP_GUIDANCE_CTA,onClick:function(){P()},type:"button",variant:"primary"}],e[10]=P,e[11]=A):A=e[11];var y=A,M;e[12]===Symbol.for("react.memo_cache_sentinel")?(M=t("AdsEventsManagerNotifCenterCRMCAPISetupGuidanceAssets").getCRMCAPISetupGuidanceDescription(),e[12]=M):M=e[12];var v;return e[13]!==I||e[14]!==y||e[15]!==G||e[16]!==E||e[17]!==S||e[18]!==R?(v=U.jsx(a("AdsEventsManagerNotificationCenterRecommendationTaskCard.react"),{callToActions:y,dataSources:I,description:M,imageContent:t("AdsEventsManagerNotifCenterCRMCAPISetupGuidanceAssets").CRM_CAPI_SETUP_GUIDANCE_ILLUSTRATION,messageKeyGroupName:E,messages:S,severity:R,subtitle:t("AdsEventsManagerNotifCenterCRMCAPISetupGuidanceAssets").CRM_CAPI_SETUP_GUIDANCE_SUBTITLE,title:G}),e[13]=I,e[14]=y,e[15]=G,e[16]=E,e[17]=S,e[18]=R,e[19]=v):v=e[19],v}var m=t("AdsFluxHooks").adsFluxContainer(Q,null,{containerName:T.id});k.default=m}),98);
-----