OCDevManagePerformanceNewCollectionDialog.react",["fbt","GeoButton.react","GeoCancelButton.react","GeoModalFooter.react","GeoModalHeader.react","GeoModal_DEPRECATED.react","GeoTextArea.react","GeoTextInput.react","GeoToast.react","GeoVStack.react","OCDevManagePerformanceCollectionAddReports.react","OCDevManagePerformanceNewCollectionDialogMutation.graphql","OCDevManagePerformancePlaytestReportContext","RelayHooks","geoMargin","react","useGeoToaster","uuidv4"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c=u||(u=o("react")),d=u,m=d.useCallback,p=d.useContext,_=d.useEffect,f=d.useState;function g(t){var a,i,l,u,d=t.editCollectionID,g=t.isShown,h=t.setHidden,y=p(o("OCDevManagePerformancePlaytestReportContext").OCDevManagePerformancePlaytestReportContext),C=y.editCollectionData,b=y.isEditing,v=y.onStopEditing,S=y.refetchCollections,R=y.reports,L=r("useGeoToaster")(),E=L.add,k=f((a=C==null?void 0:C.name)!=null?a:""),I=k[0],T=k[1],D=f((i=C==null?void 0:C.description)!=null?i:""),x=D[0],$=D[1],P=f((l=C==null?void 0:C.reportIds)!=null?l:[]),N=P[0],M=P[1];_(function(){var e,t;T((e=C==null?void 0:C.name)!=null?e:""),$((t=C==null?void 0:C.description)!=null?t:"")},[C]);var w=m(function(){v(),T(""),$(""),h()},[v,h]),A=o("RelayHooks").useMutation(e!==void 0?e:e=n("OCDevManagePerformanceNewCollectionDialogMutation.graphql")),F=A[0],O=A[1],B=function(){F({variables:{input:{client_mutation_id:r("uuidv4")(),collection_id:d!=null?d:b?C==null?void 0:C.collectionId:void 0,description:x,name:I,report_ids:N}},onCompleted:function(){S&&S(),E(c.jsx(r("GeoToast.react"),{hasIcon:!0,heading:b?"Folder edited successfully":"Folder created successfully",status:"success"})),w()}})};return c.jsx(r("GeoModal_DEPRECATED.react"),{footer:c.jsx(r("GeoModalFooter.react"),{primaryButton:c.jsx(r("GeoButton.react"),{isDisabled:O,isLoading:O,label:s._(/*BTDS*/"Save"),variant:"primary",onClick:B}),secondaryButton:c.jsx(r("GeoCancelButton.react"),{"data-testid":void 0})}),header:c.jsx(r("GeoModalHeader.react"),{heading:s._(/*BTDS*/"Create new folder")}),isShown:g,onHide:w,children:c.jsxs(r("GeoVStack.react"),{xstyle:[r("geoMargin").bottom16,r("geoMargin").horiz16],children:[c.jsx(r("GeoTextInput.react"),{"data-testid":void 0,label:s._(/*BTDS*/"Name"),placeholder:s._(/*BTDS*/"What is your folder called?"),value:I,onChange:T}),c.jsx(r("GeoTextArea.react"),{"data-testid":void 0,isOptional:!0,label:s._(/*BTDS*/"Description"),placeholder:s._(/*BTDS*/"What kinds of reports are in your folder?"),value:x,onChange:$}),c.jsx(r("OCDevManagePerformanceCollectionAddReports.react"),{curReportIds:(u=C==null?void 0:C.reportIds)!=null?u:[],reports:R,onUpdateReportIds:M})]})})}g.displayName=g.name+" [from "+i.id+"]",l.default=g}),226);
-----
OCDevManagePerformanceNewCollectionDialogMutation.graphql",[],(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:"XFBUpsertHorizonPlaytestReportCollectionResponsePayload",kind:"LinkedField",name:"xfb_upsert_horizon_playtest_report_collection",plural:!1,selections:[{alias:null,args:null,concreteType:"XFBHorizonPlaytestReportCollection",kind:"LinkedField",name:"horizon_playtest_report_collection",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"OCDevManagePerformanceNewCollectionDialogMutation",selections:t,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"OCDevManagePerformanceNewCollectionDialogMutation",selections:t},params:{id:"25648307201422417",metadata:{},name:"OCDevManagePerformanceNewCollectionDialogMutation",operationKind:"mutation",text:null}}})();a.exports=e}),null);
-----