WhatsAppBusinessTechProviderChooseSolutionModal.react",["fbt","GeoButton.react","GeoCancelButton.react","GeoModal.react","GeoModalFooter.react","GeoModalHeader.react","GeoSearchableSelector.react","GeoSection.react","LayerHideSources","SearchableEntry","StaticSearchSource","err","nullthrows","react","useSetSolutionInPartnerInfoMutation"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u=e||(e=o("react")),c=e,d=c.useMemo,m=c.useState,p={selector:{marginTop:"xw7yly9",marginBottom:"x1yztbdb",$$css:!0}},_=s._(/*BTDS*/"Choose a solution"),f=s._(/*BTDS*/"Choose a partner solution"),g=s._(/*BTDS*/"Partner solution");function h(e){var t=e.props,n=t.onHide,o=t.businessID,a=t.onConfirm,l=t.solutions,c=function(){n(r("LayerHideSources").LAYER_HIDE_BUTTON)},h=d(function(){return l.map(function(e){return new(r("SearchableEntry"))({title:r("nullthrows")(e.name,"Unexpected null value ["+i.id+"][#1]"),subtitle:"Solution ID: "+r("nullthrows")(e.solution_id,"Unexpected null value ["+i.id+"][#2]"),uniqueID:r("nullthrows")(e.solution_id,"Unexpected null value ["+i.id+"][#3]")})})},[l]),y=d(function(){return new(r("StaticSearchSource"))(h)},[h]),C=m(null),b=C[0],v=C[1],S=r("useSetSolutionInPartnerInfoMutation")(),R=S[0],L=S[1],E=function(){R(o,r("nullthrows")(b,"Unexpected null value for selectedSolutionID ["+i.id+"][#4]")).then(function(e){var t;if(((t=e.xfb_update_solution_whatsapp_business_partner_info)==null?void 0:t.success)===!0){var n=l.find(function(e){return e.solution_id===b});a(r("nullthrows")(n,"Unexpected null value for solution ["+i.id+"][#5]")),c()}else throw r("err")("Failed to set solution")}).catch(function(e){})},k=m(b!=null?h.find(function(e){return e.getAuxiliaryData()===b}):null),I=k[0],T=k[1],D=function(t){T(t),v(t.getUniqueID())};return u.jsx(r("GeoModal.react"),{footer:u.jsx(r("GeoModalFooter.react"),{primaryButton:u.jsx(r("GeoButton.react"),{isDisabled:L,isLoading:L,label:s._(/*BTDS*/"Confirm"),variant:"primary",onClick:E}),secondaryButton:u.jsx(r("GeoCancelButton.react"),{"data-testid":void 0,isDisabled:L,onClick:c})}),header:u.jsx(r("GeoModalHeader.react"),{heading:f}),onHide:c,children:u.jsx(r("GeoSection.react"),{children:u.jsx(r("GeoSearchableSelector.react"),{description:"",isDisabled:L,isOptional:!1,label:g,placeholder:_,searchSource:y,value:I,xstyle:p.selector,onChange:D})})})}h.displayName=h.name+" [from "+i.id+"]",l.default=h}),226);
-----
useSetSolutionInPartnerInfoMutation",["Promise","RelayHooks","useSetSolutionInPartnerInfoMutation.graphql"],(function(t,n,r,o,a,i,l){"use strict";var e,s;function u(){var t=o("RelayHooks").useMutation(e!==void 0?e:e=n("useSetSolutionInPartnerInfoMutation.graphql")),r=t[0],a=t[1],i=function(t,o){return new(s||(s=n("Promise")))(function(e,n){r({variables:{input:{business_id:t,solution_id:o}},onCompleted:e,onError:n})})};return[i,a]}l.default=u}),98);
-----
useSetSolutionInPartnerInfoMutation.graphql",["useSetSolutionInPartnerInfoMutation_facebookRelayOperation"],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"input"}],t=[{alias:null,args:[{kind:"Variable",name:"data",variableName:"input"}],concreteType:"XFBUpdateSolutionInWhatsappBusinessPartnerInfoResponse",kind:"LinkedField",name:"xfb_update_solution_whatsapp_business_partner_info",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"success",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"useSetSolutionInPartnerInfoMutation",selections:t,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"useSetSolutionInPartnerInfoMutation",selections:t},params:{id:n("useSetSolutionInPartnerInfoMutation_facebookRelayOperation"),metadata:{},name:"useSetSolutionInPartnerInfoMutation",operationKind:"mutation",text:null}}})();a.exports=e}),null);
-----
useSetSolutionInPartnerInfoMutation_facebookRelayOperation",[],(function(t,n,r,o,a,i){a.exports="29738921225721166"}),null);
-----