ResearchToolsManagerApplicationTermsAndConditionsStep.react",["fbt","ContentLibraryRootTagSchemaReactTagMapping","GalaxyCMSHooks","GalaxyCMSReactBlock.react","GeoButton.react","GeoCheckboxInput.react","GeoFlexbox.react","GeoHeading.react","GeoLink.react","GeoScrollableArea.react","GeoSection.react","GeoSpinner.react","GeoToast.react","GeoVStack.react","RelayHooks","ResearchToolsManagerApplicationTermsAndConditionsStepMutation.graphql","ResearchToolsManagerApplicationTermsAndConditionsStep_fragment.graphql","ResearchToolsManagerLabels","ResearchToolsManagerLoggingUtils","react","useGeoToaster"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c,d=c||(c=o("react")),m=c.useState,p={termsContainer:{borderStartStartRadius:"xkqq1k2",borderStartEndRadius:"x91jh78",borderEndEndRadius:"x1xkn691",borderEndStartRadius:"x4oqio7",borderTopStyle:"x13fuv20",borderInlineEndStyle:"x18b5jzi",borderBottomStyle:"x1q0q8m5",borderInlineStartStyle:"x1t7ytsu",borderTopWidth:"x178xt8z",borderInlineEndWidth:"x1lun4ml",borderBottomWidth:"xso031l",borderInlineStartWidth:"xpilrb4",maxHeight:"x1phlbz0",$$css:!0}};function _(t){var a=t.queryRef,l=t.setStepID,c=o("RelayHooks").useFragment(e!==void 0?e:e=n("ResearchToolsManagerApplicationTermsAndConditionsStep_fragment.graphql"),a),_=c.applicationID,f=c.isCollaboratorApplication,g=c.latestVersion,h=g.applicationVersionID,y=g.isMarketingConsentGiven,C=g.isNeedsMoreInfoFollowUp,b=g.stepsRequiringMoreInfo,v=c.termsAndConditions.cmsContent,S=o("RelayHooks").useMutation(u!==void 0?u:u=n("ResearchToolsManagerApplicationTermsAndConditionsStepMutation.graphql")),R=S[0],L=S[1],E=r("useGeoToaster")(),k=E.add,I=o("ResearchToolsManagerLoggingUtils").useResearchToolsManagerLogger(),T=I.logEvent,D=I.logError,x=function(){T(_,h,"CLIENT_APPLICATION_VERSION_SUBMISSION_CLICKED"),!L&&R({onCompleted:function(){T(_,h,"CLIENT_APPLICATION_VERSION_SUBMISSION_SUCCEEDED"),k(d.jsx(r("GeoToast.react"),{heading:C?s._(/*BTDS*/"Application resubmitted successfully."):s._(/*BTDS*/"Application submitted successfully.")}))},onError:function(t){D(_,h,t,"CLIENT_APPLICATION_VERSION_SUBMISSION_FAILED"),k(d.jsx(r("GeoToast.react"),{heading:s._(/*BTDS*/"Unable to save changes to application."),status:"error"}))},variables:{input:{data_transparency_research_tools_application_version_id:h,is_marketing_consent_given:O}}})},$=m(C),P=$[0],N=$[1],M=m(!0),w=M[0],A=M[1],F=m(y),O=F[0],B=F[1];return d.jsxs(r("GeoVStack.react"),{context:"container",relation:"section",children:[d.jsxs(r("GeoVStack.react"),{context:"container",relation:"unrelated",children:[d.jsx(r("GeoHeading.react"),{level:2,children:o("ResearchToolsManagerLabels").getResearchToolsManagerResearcherApplicationStepLabel(6)}),d.jsx(r("GeoFlexbox.react"),{xstyle:p.termsContainer,children:d.jsx(r("GeoScrollableArea.react"),{direction:"vertical",onScrollBottom:function(){return A(!1)},children:d.jsx(r("GeoSection.react"),{children:d.jsx(o("GalaxyCMSHooks").GalaxyCMSReactTagMappingProvider,{tagMapping:r("ContentLibraryRootTagSchemaReactTagMapping"),children:d.jsx(r("GalaxyCMSReactBlock.react"),{content:v,fallback:d.jsx(r("GeoSpinner.react"),{loggingName:i.id}),referenceMappings:[r("ContentLibraryRootTagSchemaReactTagMapping")]})})})})}),d.jsx(r("GeoCheckboxInput.react"),{isDisabled:C||w,label:s._(/*BTDS*/"By proceeding, I confirm the information provided in the application is my information, the Facebook profile provided is my own personal profile and not a profile shared with anyone else, and that I have read and understand the Terms and Conditions including the {data_processing_agreement_link} and {terms_of_service_link}. I consent to and understand that my application information will be used by Meta and Metau2019s service providers for the purpose of reviewing my eligibility to access the Research Tools. I also understand my application information may be used to provide partner support and improve the Research Tools in accordance with our {link}.",[s._param("data_processing_agreement_link",d.jsx(r("GeoLink.react"),{href:"https://www.facebook.com/legal/terms/Privacy",target:"_blank",children:"Data Processing Agreement"})),s._param("terms_of_service_link",d.jsx(r("GeoLink.react"),{href:"https://www.facebook.com/terms/",target:"_blank",children:"Terms of Service"})),s._param("link",d.jsx(r("GeoLink.react"),{href:"https://facebook.com/policy",target:"_blank",children:"Privacy Policy"}))]),onChange:N,value:P},"agree"),d.jsx(r("GeoCheckboxInput.react"),{label:s._(/*BTDS*/"I consent to receive marketing messages (e.g. email, social) from Meta, including news, events and updates related to our business, products and services. You may withdraw your consent and unsubscribe from these at any time, for example by clicking the unsubscribe link in our messages. For more information about how Meta handles your data please read our {link}.",[s._param("link",d.jsx(r("GeoLink.react"),{href:"https://facebook.com/policy",target:"_blank",children:"Privacy Policy"}))]),onChange:B,value:O})]}),d.jsxs(r("GeoFlexbox.react"),{justifyContent:"space-between",children:[d.jsx(r("GeoButton.react"),{label:s._(/*BTDS*/"Back"),onClick:function(){return l(f?"INSTITUTION":"COLLABORATORS")},variant:"default"}),d.jsx(r("GeoButton.react"),{disabledMessage:s._(/*BTDS*/"Complete all fields to continue."),isDisabled:!P||(C?b.length>0:!1),isLoading:L,label:C?s._(/*BTDS*/"Resubmit application"):s._(/*BTDS*/"Agree & submit application"),onClick:function(){return x()},variant:"creation"})]})]})}_.displayName=_.name+" [from "+i.id+"]",l.default=_}),226);
-----
ResearchToolsManagerApplicationTermsAndConditionsStepMutation.graphql",["ResearchToolsManagerApplicationTermsAndConditionsStepMutation_facebookRelayOperation"],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"input"}],t=[{kind:"Variable",name:"data",variableName:"input"}],r={alias:null,args:null,kind:"ScalarField",name:"is_marketing_consent_given",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"is_needs_more_info_follow_up",storageKey:null},a={alias:null,args:null,kind:"ScalarField",name:"status",storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"steps_requiring_more_info",storageKey:null},l={alias:null,args:null,kind:"ScalarField",name:"time_submitted",storageKey:null};return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"ResearchToolsManagerApplicationTermsAndConditionsStepMutation",selections:[{kind:"RequiredField",field:{alias:"mutation",args:t,concreteType:"XFBMarkAsSubmittedDataTransparencyResearchToolsApplicationVersionResponsePayload",kind:"LinkedField",name:"xfb_mark_as_submitted_data_transparency_research_tools_application_version",plural:!1,selections:[{kind:"RequiredField",field:{alias:"applicationVersion",args:null,concreteType:"XFBDataTransparencyResearchToolsApplicationVersion",kind:"LinkedField",name:"data_transparency_research_tools_application_version",plural:!1,selections:[{kind:"RequiredField",field:r,action:"THROW",path:"mutation.applicationVersion.is_marketing_consent_given"},{kind:"RequiredField",field:o,action:"THROW",path:"mutation.applicationVersion.is_needs_more_info_follow_up"},{kind:"RequiredField",field:a,action:"THROW",path:"mutation.applicationVersion.status"},{kind:"RequiredField",field:i,action:"THROW",path:"mutation.applicationVersion.steps_requiring_more_info"},{kind:"RequiredField",field:l,action:"THROW",path:"mutation.applicationVersion.time_submitted"}],storageKey:null},action:"THROW",path:"mutation.applicationVersion"}],storageKey:null},action:"THROW",path:"mutation"}],type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"ResearchToolsManagerApplicationTermsAndConditionsStepMutation",selections:[{alias:"mutation",args:t,concreteType:"XFBMarkAsSubmittedDataTransparencyResearchToolsApplicationVersionResponsePayload",kind:"LinkedField",name:"xfb_mark_as_submitted_data_transparency_research_tools_application_version",plural:!1,selections:[{alias:"applicationVersion",args:null,concreteType:"XFBDataTransparencyResearchToolsApplicationVersion",kind:"LinkedField",name:"data_transparency_research_tools_application_version",plural:!1,selections:[r,o,a,i,l,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}],storageKey:null}]},params:{id:n("ResearchToolsManagerApplicationTermsAndConditionsStepMutation_facebookRelayOperation"),metadata:{},name:"ResearchToolsManagerApplicationTermsAndConditionsStepMutation",operationKind:"mutation",text:null}}})();a.exports=e}),null);
-----
ResearchToolsManagerApplicationTermsAndConditionsStepMutation_facebookRelayOperation",[],(function(t,n,r,o,a,i){a.exports="24946275138395063"}),null);
-----