HandRaiserCreativeWorkshopModal.react",["fbt","AgencyLocationRegion","CreativeWorkshopOfferType","CreativeWorkshopType","GeoBaseText.react","GeoButton.react","GeoDivider.react","GeoHintText.react","GeoLink.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoNotice.react","GeoSection.react","GeoSelector.react","GeoSelectorItem.react","GeoTextInput.react","GeoTooltip.react","GeoVStack.react","HandRaiserCommonUtils","HandRaiserCreativeWorkshopModalBusinessQuery.graphql","RelayHooks","compactMap","react"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c=u||(u=o("react")),d=u.useMemo,m=e!==void 0?e:e=n("HandRaiserCreativeWorkshopModalBusinessQuery.graphql");function p(e){switch(e){case"APAC":return s._(/*BTDS*/"APAC");case"EMEA":return s._(/*BTDS*/"EMEA");case"LATAM":return s._(/*BTDS*/"LATAM");case"NORAM":return s._(/*BTDS*/"NORTH AMERICA")}}function _(e){switch(e){case"Creator workshop":return s._(/*BTDS*/"Creator Workshop");case"Generative AI workshop":return s._(/*BTDS*/"Generative AI Workshop");case"Own the room":return s._(/*BTDS*/"Own the room");case"Reels workshop":return s._(/*BTDS*/"Reels Workshop")}}function f(e){var t,n=e.agencyLocation,a=e.businessEmail,i=e.businessID,l=e.canSubmit,u=e.companyName,f=e.creativeWorkshopTopic,g=e.hasSaveResultedIntoError,h=e.hasSaveResultedIntoSuccess,y=e.isSaving,C=e.onClose,b=e.onSave,v=e.postWorkshopOffer,S=e.setAgencyLocation,R=e.setBusinessEmail,L=e.setBusinessID,E=e.setCompanyName,k=e.setCreativeWorkshopTopic,I=e.setPostWorkshopOffer,T=o("RelayHooks").useLazyLoadQuery(m,{}),D=d(function(){var e;return r("compactMap")((e=T.eligible_business_for_creative_workshop_hand_raiser.edges)!=null?e:[],function(e){var t=e.node,n=t.id,r=t.name;return{id:n,name:r}})},[(t=T.eligible_business_for_creative_workshop_hand_raiser)==null?void 0:t.edges]);return c.jsx(r("GeoModal.react"),{header:c.jsx(r("GeoModalHeader.react"),{heading:s._(/*BTDS*/"Request a Creative Offer")}),footer:c.jsx(r("GeoModalFooter.react"),{primaryButton:c.jsx(r("GeoButton.react"),{autoFocus:!0,isDisabled:!l,isLoading:!1,label:s._(/*BTDS*/"Submit"),variant:"primary",onClick:b})}),onHide:C,children:c.jsx(r("GeoSection.react"),{children:c.jsxs(r("GeoVStack.react"),{children:[c.jsx(r("GeoBaseText.react"),{color:"value",size:"value",weight:"normal",children:s._(/*BTDS*/"Complete this form to request your post-workshop offer. You can expect to receive an email response soon.")}),c.jsx(r("GeoDivider.react"),{}),c.jsx(r("GeoSelector.react"),{isDisabled:!1,label:s._(/*BTDS*/"Select your Meta Business Manager account ID"),placeholder:s._(/*BTDS*/"Choose Business"),value:i,onChange:L,children:D.map(function(e){return c.jsx(r("GeoSelectorItem.react"),{label:e.name,value:e.id,description:e.id},e.id)})}),c.jsx(r("GeoTextInput.react"),{label:s._(/*BTDS*/"Your email address"),onChange:R,value:a}),c.jsx(r("GeoTextInput.react"),{label:s._(/*BTDS*/"Client name"),onChange:E,value:u}),c.jsx(r("GeoSelector.react"),{label:s._(/*BTDS*/"Agency location (please select a region)"),onChange:S,placeholder:s._(/*BTDS*/"Please select"),value:n,children:Array.from(r("AgencyLocationRegion").members()).map(function(e){return c.jsx(r("GeoSelectorItem.react"),{label:p(e),value:e},e)})}),c.jsx(r("GeoSelector.react"),{label:s._(/*BTDS*/"Select the workshop you attended"),onChange:k,placeholder:s._(/*BTDS*/"Please select"),value:f,children:Array.from(r("CreativeWorkshopType").members()).filter(function(e){return e==="Creator workshop"}).map(function(e){return c.jsx(r("GeoSelectorItem.react"),{label:_(e),value:e},e)})}),c.jsxs(r("GeoSelector.react"),{isDisabled:f==null,label:s._(/*BTDS*/"Select a post-workshop offer"),tooltip:c.jsx(r("GeoTooltip.react"),{content:[c.jsx(r("GeoHintText.react"),{heading:s._(/*BTDS*/"For Creator workshop:"),children:s._(/*BTDS*/"Receive four months of funded access to your preferred SaaS platform that uses Meta technology to streamline key parts of the creator marketing process - from sourcing creators and managing partnership ad permissions to tracking performance.")},"creator-workshop"),c.jsx(r("GeoHintText.react"),{whiteSpace:"pre",children:" "},"line-break"),c.jsx(r("GeoHintText.react"),{heading:s._(/*BTDS*/"For Reels workshop:"),children:s._(/*BTDS*/"Badged Meta Business Partner agencies can now request a 6-month trial of Adobe Express Premium, fully funded by Meta.*")},"reels-workshop")],position:"right"}),onChange:I,placeholder:s._(/*BTDS*/"After selecting the workshop you want to attend above, choose your post-workshop offer here"),value:v,children:[f==="Creator workshop"?Array.from(r("CreativeWorkshopOfferType").members()).filter(function(e){return e==="Superfiliate"||e==="Dash Social"}).map(function(e){return c.jsx(r("GeoSelectorItem.react"),{label:e,value:e},e)}):null,f==="Reels workshop"?Array.from(r("CreativeWorkshopOfferType").members()).filter(function(e){return e==="Adobe Express Premium Trial"}).map(function(e){return c.jsx(r("GeoSelectorItem.react"),{label:e,value:e},e)}):null]}),c.jsx(r("GeoBaseText.react"),{color:"placeholder",size:"valueDescription",weight:"normal",children:s._(/*BTDS*/"By selecting an offer, you agree that your email address will be shared with the selected third-party partner for the purpose of registering for the related services. For more information about how we handle your data, please read our {Policy link}",[s._param("Policy link",c.jsx(r("GeoLink.react"),{display:"inline",href:"https://www.facebook.com/help/155833707900388",target:"_blank",children:"Privacy Policy."}))])}),c.jsx(o("HandRaiserCommonUtils").NoticeSection,{hasSaveResultedIntoError:g,hasSaveResultedIntoSuccess:h,isSaving:y}),D.length===0?c.jsx(r("GeoNotice.react"),{status:"warning",children:s._(/*BTDS*/"None of your Business Manager accounts are currently eligible.")}):null]})})})}f.displayName=f.name+" [from "+i.id+"]",l.default=f}),226);
-----
HandRaiserCreativeWorkshopModalBusinessQuery.graphql",["HandRaiserCreativeWorkshopModalBusinessQuery_facebookRelayOperation"],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null};return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"HandRaiserCreativeWorkshopModalBusinessQuery",selections:[{kind:"RequiredField",field:{alias:null,args:null,concreteType:"EligibleBusinessForCreativeWorkshopHandRaiserConnection",kind:"LinkedField",name:"eligible_business_for_creative_workshop_hand_raiser",plural:!1,selections:[{alias:null,args:null,concreteType:"EligibleBusinessForCreativeWorkshopHandRaiserEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{kind:"RequiredField",field:{alias:null,args:null,concreteType:"AdBusiness",kind:"LinkedField",name:"node",plural:!1,selections:[{kind:"RequiredField",field:e,action:"THROW",path:"eligible_business_for_creative_workshop_hand_raiser.edges.node.id"},{kind:"RequiredField",field:t,action:"THROW",path:"eligible_business_for_creative_workshop_hand_raiser.edges.node.name"}],storageKey:null},action:"THROW",path:"eligible_business_for_creative_workshop_hand_raiser.edges.node"}],storageKey:null}],storageKey:null},action:"THROW",path:"eligible_business_for_creative_workshop_hand_raiser"}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"HandRaiserCreativeWorkshopModalBusinessQuery",selections:[{alias:null,args:null,concreteType:"EligibleBusinessForCreativeWorkshopHandRaiserConnection",kind:"LinkedField",name:"eligible_business_for_creative_workshop_hand_raiser",plural:!1,selections:[{alias:null,args:null,concreteType:"EligibleBusinessForCreativeWorkshopHandRaiserEdge",kind:"LinkedField",name:"edges",plural:!0,selections:[{alias:null,args:null,concreteType:"AdBusiness",kind:"LinkedField",name:"node",plural:!1,selections:[e,t],storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:n("HandRaiserCreativeWorkshopModalBusinessQuery_facebookRelayOperation"),metadata:{},name:"HandRaiserCreativeWorkshopModalBusinessQuery",operationKind:"query",text:null}}})();a.exports=e}),null);
-----
HandRaiserCreativeWorkshopModalBusinessQuery_facebookRelayOperation",[],(function(t,n,r,o,a,i){a.exports="24793152016984924"}),null);
-----