AdsUEditorAdgroupPartnershipAdsSourcedTestimonialsContainer",["fbt","AHGHelpTrayLink2.react","AdsUEditorAdgroupPartnershipAdsSourcedTestimonialsContainerQuery.graphql","GeoBaseText.react","GeoFlexbox.react","GeoHStack.react","GeoHeading.react","GeoIcon.react","GeoMediaItem.react","GeoSwitch.react","GeoText.react","RelayHooks","emptyFunction","emptyObject","meta-brand-community-notes-outline-16","react","react-compiler-runtime","useRelayEverywhereAdgroupContextKey"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c=u||(u=o("react")),d="864905605775576";function m(e){var t=o("react-compiler-runtime").c(10),n=e.name,a=e.testimonialCount;if(n==null||a==null)return null;var i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=c.jsx(r("GeoMediaItem.react"),{fit:"cover",media:c.jsx(r("GeoIcon.react"),{icon:o("meta-brand-community-notes-outline-16").metaBrandCommunityNotesOutline16,size:16}),ratio:"square",size:48}),t[0]=i):i=t[0];var l;t[1]===Symbol.for("react.memo_cache_sentinel")?(l=c.jsx(r("GeoText.react"),{children:s._(/*BTDS*/"Brief")}),t[1]=l):l=t[1];var u;t[2]!==n?(u=c.jsx(r("GeoBaseText.react"),{color:"valueDescription",display:"truncate",size:"valueDescription",children:n}),t[2]=n,t[3]=u):u=t[3];var d;t[4]===Symbol.for("react.memo_cache_sentinel")?(d=c.jsx(r("GeoBaseText.react"),{color:"valueDescription",size:"valueDescription",children:"xB7"}),t[4]=d):d=t[4];var m;t[5]!==a?(m=c.jsxs(r("GeoHStack.react"),{alignItems:"center",context:"component",relation:"related",shrink:0,children:[d,c.jsx(r("GeoBaseText.react"),{color:"valueDescription",size:"valueDescription",children:s._(/*BTDS*/"_j{"*":"{accepted testimonials} testimonials","_1":"{accepted testimonials} testimonial"}",[s._plural(a),s._param("accepted testimonials",a)])})]}),t[5]=a,t[6]=m):m=t[6];var p;return t[7]!==u||t[8]!==m?(p=c.jsxs(r("GeoFlexbox.react"),{alignItems:"center",direction:"row",gap:8,children:[i,c.jsxs(r("GeoFlexbox.react"),{direction:"column",children:[l,c.jsxs(r("GeoHStack.react"),{alignItems:"center",context:"component",relation:"related",children:[u,m]})]})]}),t[7]=u,t[8]=m,t[9]=p):p=t[9],p}function p(t){var a,i,l,u=o("react-compiler-runtime").c(10),p=t.briefID,_=t.businessID,f=r("useRelayEverywhereAdgroupContextKey")(),g=e!==void 0?e:e=n("AdsUEditorAdgroupPartnershipAdsSourcedTestimonialsContainerQuery.graphql"),h=o("RelayHooks").useLazyLoadQuery(g,{businessID:_,briefID:p,contextKey:f}),y=(a=(i=h.selected_ad_account)==null||(i=i.relay_everywhere)==null||(i=i.ueditor_adgroup)==null?void 0:i.is_branded_content_switched_on_selector)!=null?a:!1;if(y)return null;var C;if(u[0]!==((l=h.business)==null||(l=l.partnership_ads_hub_briefs)==null?void 0:l.nodes)){var b,v,S;C=(b=(v=h.business)==null||(v=v.partnership_ads_hub_briefs)==null?void 0:v.nodes.at(0))!=null?b:r("emptyObject"),u[0]=(S=h.business)==null||(S=S.partnership_ads_hub_briefs)==null?void 0:S.nodes,u[1]=C}else C=u[1];var R=C,L=R.brief_name,E=R.submission_count,k;u[2]===Symbol.for("react.memo_cache_sentinel")?(k={marginTop:16},u[2]=k):k=u[2];var I;u[3]===Symbol.for("react.memo_cache_sentinel")?(I=c.jsx(r("GeoHeading.react"),{level:4,children:s._(/*BTDS*/"Sourced testimonials")}),u[3]=I):I=u[3];var T;u[4]===Symbol.for("react.memo_cache_sentinel")?(T=s._(/*BTDS*/"To add testimonials, select a brief from sourced content on the ad set page."),u[4]=T):T=u[4];var D;u[5]===Symbol.for("react.memo_cache_sentinel")?(D=c.jsxs(r("GeoFlexbox.react"),{direction:"row",gap:8,justifyContent:"space-between",children:[I,c.jsx(r("GeoSwitch.react"),{disabledMessage:T,isDisabled:!0,label:s._(/*BTDS*/"Off"),value:!1,onChange:r("emptyFunction")})]}),u[5]=D):D=u[5];var x;u[6]===Symbol.for("react.memo_cache_sentinel")?(x=c.jsx(r("GeoText.react"),{children:s._(/*BTDS*/"Automatically add accepted testimonials from your content brief to ads associated with that brief. {learnMoreLink}",[s._param("learnMoreLink",c.jsx(r("AHGHelpTrayLink2.react"),{helpCenterID:d,label:s._(/*BTDS*/"About testimonials")}))])}),u[6]=x):x=u[6];var $;return u[7]!==L||u[8]!==E?($=c.jsx(r("GeoFlexbox.react"),{style:k,children:c.jsxs(r("GeoFlexbox.react"),{direction:"column",gap:8,children:[D,x,c.jsx(m,{name:L,testimonialCount:E})]})}),u[7]=L,u[8]=E,u[9]=$):$=u[9],$}l.default=p}),226);
-----
-----