__d("ProdashCometContentProtectHomeRestrictionsLiftedDialog.entrypoint",["JSResourceForInteraction"],(function(t,n,r,o,a,i,l){"use strict";var e={getPreloadProps:function(){return{queries:{}}},root:r("JSResourceForInteraction")("ProdashCometContentProtectHomeRestrictionsLiftedDialog.react").__setRef("ProdashCometContentProtectHomeRestrictionsLiftedDialog.entrypoint")},s=e;l.default=s}),98); __d("ProdashCometContentProtectHomeRestrictionsWidgetDismissMutation_facebookRelayOperation",[],(function(t,n,r,o,a,i){a.exports="26190870867180286"}),null); __d("ProdashCometContentProtectHomeRestrictionsWidgetDismissMutation.graphql",["ProdashCometContentProtectHomeRestrictionsWidgetDismissMutation_facebookRelayOperation"],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e=[{alias:null,args:null,concreteType:"XFBContentProtectDismissPenaltyLiftedNoticeResponsePayload",kind:"LinkedField",name:"xfb_content_protect_dismiss_penalty_lifted_notice",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"success",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"ProdashCometContentProtectHomeRestrictionsWidgetDismissMutation",selections:e,type:"Mutation",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"ProdashCometContentProtectHomeRestrictionsWidgetDismissMutation",selections:e},params:{id:n("ProdashCometContentProtectHomeRestrictionsWidgetDismissMutation_facebookRelayOperation"),metadata:{},name:"ProdashCometContentProtectHomeRestrictionsWidgetDismissMutation",operationKind:"mutation",text:null}}})();a.exports=e}),null); __d("ProdashCometContentProtectHomeRestrictionsWidget_prodash_widget_card.graphql",[],(function(t,n,r,o,a,i){"use strict";var e={argumentDefinitions:[],kind:"Fragment",metadata:null,name:"ProdashCometContentProtectHomeRestrictionsWidget_prodash_widget_card",selections:[{alias:null,args:null,concreteType:null,kind:"LinkedField",name:"rights_holder",plural:!1,selections:[{alias:null,args:null,concreteType:"RightsManagerPageData",kind:"LinkedField",name:"rights_manager_page_data",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"penalty_system_status",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"is_promode",storageKey:null},{args:null,kind:"FragmentSpread",name:"ProdashCometContentProtectHomeRestrictionsLiftedDialog_data"},{args:null,kind:"FragmentSpread",name:"ProdashCometContentProtectHomeRestrictionsRestrictedDialog_data"}],storageKey:null}],type:"XFBProdashCometContentProtectHomeRestrictionsWidget",abstractKey:null};a.exports=e}),null); __d("ProdashCometContentProtectHomeRestrictionsWidget.react",["CometRelay","FBNucleusCautionCircleFilled24Icon.react","FBNucleusCheckmarkCircleFilled24Icon.react","FDSButtonGroup.react","FDSContextualMessage.react","FDSIcon.react","ProdashCometContentProtectHomeRestrictionsLiftedDialog.entrypoint","ProdashCometContentProtectHomeRestrictionsRestrictedDialog.entrypoint","ProdashCometContentProtectHomeRestrictionsWidgetDismissMutation.graphql","ProdashCometContentProtectHomeRestrictionsWidget_prodash_widget_card.graphql","ProdashContentProtectHomeStrings","RmContentProtectFalcoEvent","react","useCometEntryPointDialog","useProdashCometWidgetRefs"],(function(t,n,r,o,a,i,l){"use strict";var e,s,u,c=u||(u=o("react"));function d(t){var a,i=t.prodash_widget_card,l=o("CometRelay").useFragment(e!==void 0?e:e=n("ProdashCometContentProtectHomeRestrictionsWidget_prodash_widget_card.graphql"),i),u=r("useProdashCometWidgetRefs")(),d=u.hideWidget,m=l==null?void 0:l.rights_holder,p=m==null||(a=m.rights_manager_page_data)==null?void 0:a.penalty_system_status,_=p==="PENALTY_LIFTED",f=(m==null?void 0:m.is_promode)===!0,g=o("CometRelay").useMutation(s!==void 0?s:s=n("ProdashCometContentProtectHomeRestrictionsWidgetDismissMutation.graphql")),h=g[0],y=r("useCometEntryPointDialog")(r("ProdashCometContentProtectHomeRestrictionsLiftedDialog.entrypoint"),{},"button"),C=y[0],b=y[1],v=y[2],S=y[3],R=r("useCometEntryPointDialog")(r("ProdashCometContentProtectHomeRestrictionsRestrictedDialog.entrypoint"),{},"button"),L=R[0],E=R[1],k=R[2],I=R[3],T=function(){r("RmContentProtectFalcoEvent").log(function(){return{component:"penalty_system_overview_contextual_message",event:"click",surface:"home"}}),_?(r("RmContentProtectFalcoEvent").log(function(){return{component:"penalty_system_lifted_message",event:"impression",surface:"home"}}),C({data:m})):(r("RmContentProtectFalcoEvent").log(function(){return{component:"penalty_enforced_screen",event:"impression",surface:"home"}}),L({data:m}))},D=o("ProdashContentProtectHomeStrings").getPenaltySystemContextualMessageTitle(_,f),x=o("ProdashContentProtectHomeStrings").getPenaltySystemContextualMessageDescription(_),$=_?c.jsx(r("FDSIcon.react"),{color:"primaryAccent",icon:r("FBNucleusCheckmarkCircleFilled24Icon.react"),size:24}):c.jsx(r("FDSIcon.react"),{color:"negative",icon:r("FBNucleusCautionCircleFilled24Icon.react"),size:24}),P=c.jsx(r("FDSButtonGroup.react"),{primary:{label:o("ProdashContentProtectHomeStrings").PENALTY_SYSTEM_CTA,onPress:T}}),N=function(){h({variables:{}}),d("content_protect_home_restrictions_comet")};return c.jsx(r("FDSContextualMessage.react"),{addOnPrimary:P,body:x,headline:D,icon:$,onClose:_?N:void 0,type:"secondary"})}d.displayName=d.name+" [from "+i.id+"]",l.default=d}),98);