ProdashCometContentProtectInitialOnboardingDialogFooter.react",["fbt","CometRelay","ContentProtectAcceptTermsOfServiceMutation","FDSDialogFooter.react","FDSLink.react","FDSProgressRingIndeterminate.react","FDSText.react","ProdashCometContentProtectInitialOnboardingDialogFooterQuery.graphql","ProdashCometContentProtectOnboardingEducationDialogPage.entrypoint","ProdashCometContentProtectTOSDialog.entrypoint","ProdashContentProtectOnboardingStrings","RelayHooks","RmContentProtectFalcoEvent","react","react-compiler-runtime","usePushPage"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c=u||(u=o("react")),d=u.useState;function m(t){var a,i,l=o("react-compiler-runtime").c(33),u=t.onClose,m=t.queryReference,f=t.rightsHolderID,g=o("RelayHooks").usePreloadedQuery(e!==void 0?e:e=n("ProdashCometContentProtectInitialOnboardingDialogFooterQuery.graphql"),m),h=(a=(i=g.xfb_rights_holder)==null?void 0:i.has_accepted_content_protect_terms_of_service)!=null?a:!1,y;l[0]===Symbol.for("react.memo_cache_sentinel")?(y={},l[0]=y):y=l[0];var C=r("usePushPage")(r("ProdashCometContentProtectOnboardingEducationDialogPage.entrypoint"),y),b=C[0],v=C[1],S=v.onHoverIn,R=v.onHoverOut,L=v.onPressIn,E;l[1]===Symbol.for("react.memo_cache_sentinel")?(E={},l[1]=E):E=l[1];var k=r("usePushPage")(r("ProdashCometContentProtectTOSDialog.entrypoint"),E),I=k[0],T=k[1],D=T.onHoverIn,x=T.onHoverOut,$=T.onPressIn,P=o("CometRelay").useRelayEnvironment(),N=d(!1),M=N[0],w=N[1],A;l[2]!==P||l[3]!==u||l[4]!==b||l[5]!==f?(A=function(){w(!0),r("RmContentProtectFalcoEvent").log(_),o("ContentProtectAcceptTermsOfServiceMutation").commit(P,{input:{onboarding_entrypoint:"PRODASH_WEB_CONTENT_TAB"}},{onCompleted:function(t){var e,n=t==null||(e=t.xfb_content_protect_accept_terms_of_service)==null?void 0:e.success;n===!0?(w(!1),b({onClose:u,rightsHolderID:f})):w(!1)},onError:function(){w(!1)}},f)},l[2]=P,l[3]=u,l[4]=b,l[5]=f,l[6]=A):A=l[6];var F=A,O;l[7]!==I?(O=function(){r("RmContentProtectFalcoEvent").log(p),I({})},l[7]=I,l[8]=O):O=l[8];var B;l[9]===Symbol.for("react.memo_cache_sentinel")?(B=s._(/*BTDS*/""),l[9]=B):B=l[9];var W;l[10]!==D||l[11]!==x||l[12]!==$||l[13]!==O?(W=c.jsx(r("FDSText.react"),{color:"blueLink",type:"meta4",children:c.jsx(r("FDSLink.react"),{onClick:O,onHoverEnd:x,onHoverStart:D,onPressStart:$,children:B})}),l[10]=D,l[11]=x,l[12]=$,l[13]=O,l[14]=W):W=l[14];var q=W,U;l[15]!==h||l[16]!==q?(U=h?null:c.jsx(r("FDSText.react"),{type:"meta4",children:s._(/*BTDS*/"",[s._param("termsOfServiceLink",q)])}),l[15]=h,l[16]=q,l[17]=U):U=l[17];var V=U,H=M?o("ProdashContentProtectOnboardingStrings").ONBOARDING_TOS_LOADING_META_TEXT:V,G;l[18]!==M?(G=M?c.jsx(r("FDSProgressRingIndeterminate.react"),{"aria-label":s._(/*BTDS*/""),color:"dark",size:16}):void 0,l[18]=M,l[19]=G):G=l[19];var z;l[20]!==M?(z=M?o("ProdashContentProtectOnboardingStrings").LOADING_LABEL:s._(/*BTDS*/""),l[20]=M,l[21]=z):z=l[21];var j;l[22]!==F||l[23]!==M||l[24]!==S||l[25]!==R||l[26]!==L||l[27]!==G||l[28]!==z?(j={addOnPrimary:G,disabled:M,label:z,onHoverIn:S,onHoverOut:R,onPress:F,onPressIn:L},l[22]=F,l[23]=M,l[24]=S,l[25]=R,l[26]=L,l[27]=G,l[28]=z,l[29]=j):j=l[29];var K;return l[30]!==H||l[31]!==j?(K=c.jsx(r("FDSDialogFooter.react"),{meta:H,metaPosition:"below",primary:j}),l[30]=H,l[31]=j,l[32]=K):K=l[32],K}function p(){return{component:"education_screen_tos_link",event:"click",onboarding_entrypoint:"PRODASH_WEB_CONTENT_TAB",surface:"onboarding_education"}}function _(){return{component:"education_screen_continue_button",event:"click",onboarding_entrypoint:"PRODASH_WEB_CONTENT_TAB",surface:"onboarding_education"}}l.default=m}),226);
-----
ProdashCometContentProtectInitialOnboardingDialogFooterQuery.graphql",["ProdashCometContentProtectInitialOnboardingDialogFooterQuery_facebookRelayOperation","relay-runtime"],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e=[{defaultValue:null,kind:"LocalArgument",name:"rightsHolderID"}],t=[{kind:"Variable",name:"id",variableName:"rightsHolderID"}],r={alias:null,args:null,kind:"ScalarField",name:"has_accepted_content_protect_terms_of_service",storageKey:null};return{fragment:{argumentDefinitions:e,kind:"Fragment",metadata:null,name:"ProdashCometContentProtectInitialOnboardingDialogFooterQuery",selections:[{alias:null,args:t,concreteType:null,kind:"LinkedField",name:"xfb_rights_holder",plural:!1,selections:[r],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:e,kind:"Operation",name:"ProdashCometContentProtectInitialOnboardingDialogFooterQuery",selections:[{alias:null,args:t,concreteType:null,kind:"LinkedField",name:"xfb_rights_holder",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},r,{alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null}],storageKey:null}]},params:{id:n("ProdashCometContentProtectInitialOnboardingDialogFooterQuery_facebookRelayOperation"),metadata:{},name:"ProdashCometContentProtectInitialOnboardingDialogFooterQuery",operationKind:"query",text:null}}})();n("relay-runtime").PreloadableQueryRegistry.set(e.params.id,e),a.exports=e}),null);
-----
ProdashCometContentProtectInitialOnboardingDialog.entrypoint",["JSResourceForInteraction","ProdashCometContentProtectInitialOnboardingDialogFooterQuery$Parameters"],(function(t,n,r,o,a,i,l){"use strict";var e={getPreloadProps:function(t){var e=t.rightsHolderID;return{queries:{footerQueryReference:{parameters:n("ProdashCometContentProtectInitialOnboardingDialogFooterQuery$Parameters"),variables:{rightsHolderID:e}}}}},root:r("JSResourceForInteraction")("ProdashCometContentProtectInitialOnboardingDialog.react").__setRef("ProdashCometContentProtectInitialOnboardingDialog.entrypoint")},s=e;l.default=s}),98);
-----
ProdashCometContentProtectInitialOnboardingDialogFooterQuery$Parameters",["ProdashCometContentProtectInitialOnboardingDialogFooterQuery_facebookRelayOperation"],(function(t,n,r,o,a,i){"use strict";var e={kind:"PreloadableConcreteRequest",params:{id:n("ProdashCometContentProtectInitialOnboardingDialogFooterQuery_facebookRelayOperation"),metadata:{},name:"ProdashCometContentProtectInitialOnboardingDialogFooterQuery",operationKind:"query",text:null}};a.exports=e}),null);
-----
ProdashCometContentProtectInitialOnboardingDialogFooterQuery_facebookRelayOperation",[],(function(t,n,r,o,a,i){a.exports="25737760652508811"}),null);
-----