PubXDynamicPlacementsOptOutNotification.react",["fbt","CometPlaceholder.react","CometRouteParams","GeoButton.react","GeoGuidanceCard.react","GeoGuidanceCardContent.react","GeoGuidanceCardHeader.react","GeoPageCard.react","GeoPageSection.react","GeoText.react","GeoToast.react","PubXDynamicPlacementsOptOutNotificationDismissMutation.graphql","PubXDynamicPlacementsOptOutNotificationOptOutMutation.graphql","PubXDynamicPlacementsOptOutNotificationQuery.graphql","PubXLoggerStoreUtils","react","react-compiler-runtime","react-relay","useGeoToaster"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c,d,m=d||(d=o("react")),p=d,_=p.useCallback,f=p.useState,g=e!==void 0?e:e=n("PubXDynamicPlacementsOptOutNotificationQuery.graphql"),h=u!==void 0?u:u=n("PubXDynamicPlacementsOptOutNotificationOptOutMutation.graphql"),y=c!==void 0?c:c=n("PubXDynamicPlacementsOptOutNotificationDismissMutation.graphql");function C(e){var t=o("react-compiler-runtime").c(2),n=e.children,r=String(o("CometRouteParams").useRouteParams().business_id),a="pub_"+r,i;t[0]!==a?(i={id:a},t[0]=a,t[1]=i):i=t[1];var l=o("react-relay").useLazyLoadQuery(g,i);return!l.business||l.business.has_dynamic_placements!==!0||l.business.dynamic_placements_opt_out===!0||l.business.is_business_notification_dismissed===!0?null:n}function b(e){var t=o("react-compiler-runtime").c(16),n=e.columns,a=String(o("CometRouteParams").useRouteParams().business_id),l=f(!1),u=l[0],c=l[1],d=o("react-relay").useMutation(h),p=d[0],_=d[1],g=o("react-relay").useMutation(y),b=g[0],v=r("useGeoToaster")(),S=v.add,R;t[0]!==S?(R=function(t,n){S(m.jsx(r("GeoToast.react"),{heading:s._(/*BTDS*/"Something went wrong. Please try again later."),status:"error"})),o("PubXLoggerStoreUtils").error(t,n)},t[0]=S,t[1]=R):R=t[1];var L=R,E;t[2]!==a||t[3]!==b||t[4]!==L?(E=function(){b({variables:{business_id:a},onError:function(t){L(t,"DISMISS_DYNAMIC_PLACEMENTS")}}),c(!0)},t[2]=a,t[3]=b,t[4]=L,t[5]=E):E=t[5];var k=E,I;t[6]!==a||t[7]!==n||t[8]!==p||t[9]!==_||t[10]!==L||t[11]!==u||t[12]!==k?(I=!u&&m.jsx(r("GeoPageSection.react"),{children:m.jsx(r("GeoPageCard.react"),{columns:n,children:m.jsx(r("GeoGuidanceCard.react"),{header:m.jsx(r("GeoGuidanceCardHeader.react"),{heading:s._(/*BTDS*/"Introducing the dynamic placements feature for apps on Google Ad Manager"),isNotDismissable:!1,onClose:k}),status:"recommendation-personal",children:m.jsxs(r("GeoGuidanceCardContent.react"),{children:[m.jsx(r("GeoText.react"),{children:s._(/*BTDS*/"Dynamic Placements is a feature that helps ensure your appu2019s ad units on Google Ad Manager are eligible for monetization, even if some placements are not manually mapped. If your app is on Google Ad Manager, the Dynamic Placements feature is turned on by default unless you choose to opt out. This feature does not guarantee increased revenue, but it can help reduce onboarding friction and maximize eligible ad traffic. You can manage your preferences in the settings.")}),m.jsx(r("GeoButton.react"),{isDisabled:_,label:s._(/*BTDS*/"Opt out"),onClick:function(){p({variables:{business_id:a},onError:function(t){L(t,"OPT_OUT_DYNAMIC_PLACEMENTS")}})}})]})})})}),t[6]=a,t[7]=n,t[8]=p,t[9]=_,t[10]=L,t[11]=u,t[12]=k,t[13]=I):I=t[13];var T;return t[14]!==I?(T=m.jsx(r("CometPlaceholder.react"),{fallback:null,name:i.id,children:m.jsx(C,{children:I})}),t[14]=I,t[15]=T):T=t[15],T}l.default=b}),226);
-----