HandRaiserCreativeShopModal.react",["fbt","CreativeShopTopicTypes","GeoBaseText.react","GeoButton.react","GeoDivider.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoSection.react","GeoSelector.react","GeoSelectorItem.react","GeoTextArea.react","GeoTextInput.react","GeoVStack.react","HandRaiserCommonUtils","HandRaiserCreativeShopModalBusinessQuery.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("HandRaiserCreativeShopModalBusinessQuery.graphql");function p(e){switch(e){case"Creative Diversification":return s._(/*BTDS*/"Creative diversification");case"Reels":return s._(/*BTDS*/"Reels");case"Meta AI tools":return s._(/*BTDS*/"Meta AI tools");case"Brand Awareness":return s._(/*BTDS*/"Brand awareness");case"Catalog Ads":return s._(/*BTDS*/"Catalog ads");case"Partnership Ads":return s._(/*BTDS*/"Partnership ads");case"Other":return s._(/*BTDS*/"Other")}}function _(e){var t,n=e.additionalDetails,a=e.businessEmail,i=e.businessID,l=e.canSubmit,u=e.companyName,_=e.creativeShopTopic,f=e.hasSaveResultedIntoError,g=e.hasSaveResultedIntoSuccess,h=e.isSaving,y=e.jobTitle,C=e.onClose,b=e.onSave,v=e.setAdditionalDetails,S=e.setBusinessEmail,R=e.setBusinessID,L=e.setCompanyName,E=e.setCreativeShopTopic,k=e.setJobTitle,I=o("RelayHooks").useLazyLoadQuery(m,{}),T=d(function(){var e,t;return r("compactMap")((e=(t=I.eligible_business_for_mga_hand_raiser)==null?void 0:t.edges)!=null?e:[],function(e){var t=e.node,n=t.id,r=t.name;return{id:n,name:r}})},[(t=I.eligible_business_for_mga_hand_raiser)==null?void 0:t.edges]);return c.jsx(r("GeoModal.react"),{header:c.jsx(r("GeoModalHeader.react"),{heading:s._(/*BTDS*/"Get more from the Creative Shop")}),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*/"We want you to get more of what you need. So use this form in two ways: 1) to go deeper on topics like creative diversification, Reels and Meta AI tools. 2) To let us know what weu2019re not covering so we can build creative solutions for your current business challenges.")}),c.jsx(r("GeoDivider.react"),{}),c.jsx(r("GeoSelector.react"),{isDisabled:!1,label:s._(/*BTDS*/"Business"),placeholder:s._(/*BTDS*/"Choose Business"),value:i,onChange:R,children:T.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*/"Business email"),onChange:S,value:a}),c.jsx(r("GeoTextInput.react"),{label:s._(/*BTDS*/"Job Title"),onChange:k,value:y}),c.jsx(r("GeoTextInput.react"),{label:s._(/*BTDS*/"Company/Organization"),onChange:L,value:u}),c.jsx(r("GeoSelector.react"),{label:s._(/*BTDS*/"I would like more information on"),onChange:E,placeholder:s._(/*BTDS*/"Please select"),value:_,children:Array.from(r("CreativeShopTopicTypes").members()).filter(function(e){return e==="Creative Diversification"||e==="Meta AI tools"||e==="Reels"}).map(function(e){return c.jsx(r("GeoSelectorItem.react"),{label:p(e),value:e},e)})}),c.jsx(r("GeoTextArea.react"),{label:s._(/*BTDS*/"What is a business challenge or a creative solution you would like to see covered?"),placeholder:s._(/*BTDS*/"(Additional information will help us better understand your needs)"),onChange:v,value:n!=null?n:""}),c.jsx(o("HandRaiserCommonUtils").NoticeSection,{hasSaveResultedIntoError:f,hasSaveResultedIntoSuccess:g,isSaving:h})]})})})}_.displayName=_.name+" [from "+i.id+"]",l.default=_}),226);
-----
HandRaiserCreativeShopModalBusinessQuery.graphql",["HandRaiserCreativeShopModalBusinessQuery_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:"HandRaiserCreativeShopModalBusinessQuery",selections:[{kind:"RequiredField",field:{alias:null,args:null,concreteType:"EligibleBusinessForMgaHandRaiserConnection",kind:"LinkedField",name:"eligible_business_for_mga_hand_raiser",plural:!1,selections:[{alias:null,args:null,concreteType:"EligibleBusinessForMgaHandRaiserEdge",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_mga_hand_raiser.edges.node.id"},{kind:"RequiredField",field:t,action:"THROW",path:"eligible_business_for_mga_hand_raiser.edges.node.name"}],storageKey:null},action:"THROW",path:"eligible_business_for_mga_hand_raiser.edges.node"}],storageKey:null}],storageKey:null},action:"THROW",path:"eligible_business_for_mga_hand_raiser"}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"HandRaiserCreativeShopModalBusinessQuery",selections:[{alias:null,args:null,concreteType:"EligibleBusinessForMgaHandRaiserConnection",kind:"LinkedField",name:"eligible_business_for_mga_hand_raiser",plural:!1,selections:[{alias:null,args:null,concreteType:"EligibleBusinessForMgaHandRaiserEdge",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("HandRaiserCreativeShopModalBusinessQuery_facebookRelayOperation"),metadata:{},name:"HandRaiserCreativeShopModalBusinessQuery",operationKind:"query",text:null}}})();a.exports=e}),null);
-----
HandRaiserCreativeShopModalBusinessQuery_facebookRelayOperation",[],(function(t,n,r,o,a,i){a.exports="31312690598376943"}),null);
-----