OCDevManageWorldsABTestingConsentModal.react",["fbt","CometImage.react","GeoButton.react","GeoCancelButton.react","GeoFlexbox.react","GeoLink.react","GeoModalFooter.react","GeoModalHeader.react","GeoModal_DEPRECATED.react","GeoPill.react","GeoSection.react","GeoText.react","GeoToast.react","GeoVStack.react","OCDevManageWorldsABTestingConsentModalPublishExperimentMutation.graphql","OCDevManageWorldsABTestingConsentModal_experiment.graphql","RelayHooks","Surface.react","react","useGeoToaster"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||c("react"),m=i!==void 0?i:i=b("OCDevManageWorldsABTestingConsentModalPublishExperimentMutation.graphql");function a(a){var e=a.experiment,f=a.isConsentModalOpen,g=a.refetchFragment,i=a.setIsConsentModalOpen,k=d("RelayHooks").useFragment(j!==void 0?j:j=b("OCDevManageWorldsABTestingConsentModal_experiment.graphql"),e);a=c("useGeoToaster")();var n=a.add,o=function(a,b,d){d===void 0&&(d="success"),n(l.jsx(c("GeoToast.react"),{description:b,heading:a,status:d}))};e=d("RelayHooks").useMutation(m);var p=e[0];a=e[1];var q=function(){i(!1)};e=function(){var a;a={onCompleted:function(){o(h._(/*BTDS*/"Successfully published your test"),h._(/*BTDS*/"Your primary cover art is updated with the test art.")),q()},onError:function(){o(h._(/*BTDS*/"Error"),h._(/*BTDS*/"There was an error while publishing your test. Please try again later."),"error")},variables:{input:{world_metadata_variant_experiment_id:(a=k==null?void 0:k.id)!=null?a:""}}};p(a);g()};return l.jsx(c("Surface.react"),{surface:"consentModal",children:l.jsx(c("GeoModal_DEPRECATED.react"),{footer:l.jsx(c("GeoModalFooter.react"),{primaryButton:l.jsx(c("GeoButton.react"),{isLoading:a,label:h._(/*BTDS*/"Publish"),variant:"primary",onClick:e}),secondaryButton:l.jsx(c("GeoCancelButton.react"),{isDisabled:a,label:h._(/*BTDS*/"Cancel"),onClick:q})}),header:l.jsx(c("GeoModalHeader.react"),{heading:h._(/*BTDS*/"Change your thumbnail image")}),isShown:f,width:1400,onHide:q,children:l.jsxs(c("GeoFlexbox.react"),{direction:"column",gap:12,children:[l.jsxs(c("GeoFlexbox.react"),{direction:"row",gap:12,justifyContent:"space-around",children:[l.jsxs(c("GeoFlexbox.react"),{alignItems:"center",direction:"column",gap:12,children:[l.jsx(c("GeoPill.react"),{label:h._(/*BTDS*/"Original"),status:"success",value:"Original"}),l.jsx(c("CometImage.react"),{height:330,src:(e=k==null?void 0:k.control_image_uri)!=null?e:""})]}),l.jsxs(c("GeoFlexbox.react"),{alignItems:"center",direction:"column",gap:12,children:[l.jsx(c("GeoPill.react"),{label:h._(/*BTDS*/"Test"),value:"Test"}),l.jsx(c("CometImage.react"),{height:330,src:(a=k==null?void 0:k.experiment_image_uri)!=null?a:""})]})]}),l.jsxs(c("GeoSection.react"),{children:[(k==null?void 0:k.has_multi_screenshots)!==!0&&l.jsxs(c("GeoVStack.react"),{children:[l.jsx(c("GeoText.react"),{children:h._(/*BTDS*/"Replace your default thumbnail image with the test image from this test.")}),l.jsx(c("GeoText.react"),{children:h._(/*BTDS*/"By publishing the new image, you acknowledge that a small proportion of your users will not see the new image. This allows Meta to better understand the effectiveness of the A/B testing tool to make future updates.")})]}),(k==null?void 0:k.has_multi_screenshots)===!0&&l.jsxs(c("GeoVStack.react"),{children:[l.jsx(c("GeoText.react"),{children:h._(/*BTDS*/"Replace your default thumbnail image with the test image from this test. Other thumbnail images used for this world will not be affected.")}),l.jsx(c("GeoText.react"),{children:h._(/*BTDS*/"By publishing the new image, you acknowledge that a small proportion of your users will not see the new image. This allows Meta to better understand the effectiveness of the A/B testing tool to make future updates.")})]}),l.jsx(c("GeoLink.react"),{href:"www.meta.com",children:h._(/*BTDS*/"Learn more")})]})]})})})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCDevManageWorldsABTestingConsentModalPublishExperimentMutation.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:"XOCPublishWorldMetadataVariantExperimentResponsePayload",kind:"LinkedField",name:"xoc_publish_world_metadata_variant_experiment",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"client_mutation_id",storageKey:null},{alias:null,args:null,concreteType:"XOCWorldMetadataVariantExperiment",kind:"LinkedField",name:"world_metadata_variant_experiment",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"OCDevManageWorldsABTestingConsentModalPublishExperimentMutation",selections:t,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"OCDevManageWorldsABTestingConsentModalPublishExperimentMutation",selections:t},params:{id:"25251790941177598",metadata:{},name:"OCDevManageWorldsABTestingConsentModalPublishExperimentMutation",operationKind:"mutation",text:null}}})();a.exports=e}),null);
-----
-----
OCDevManageWorldsABTestingConsentModalPublishExperimentMutation.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:"XOCPublishWorldMetadataVariantExperimentResponsePayload",kind:"LinkedField",name:"xoc_publish_world_metadata_variant_experiment",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"client_mutation_id",storageKey:null},{alias:null,args:null,concreteType:"XOCWorldMetadataVariantExperiment",kind:"LinkedField",name:"world_metadata_variant_experiment",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null}],storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"OCDevManageWorldsABTestingConsentModalPublishExperimentMutation",selections:t,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"OCDevManageWorldsABTestingConsentModalPublishExperimentMutation",selections:t},params:{id:"25251790941177598",metadata:{},name:"OCDevManageWorldsABTestingConsentModalPublishExperimentMutation",operationKind:"mutation",text:null}}})();a.exports=e}),null);
-----