OCAccountMvanLinkTermsView.react",["fbt","IntlVariations","OCAccountMvanErrorUtils","OCAccountMvanLinkAppDownloadRoute","OCAccountMvanLinkRoute","OCAccountMvanLinkTermsViewAcceptMutation.graphql","OCAccountMvanLinkTermsViewQuery.graphql","OCAccountProfileImage.react","OCAccountSettingsRoute","OCDSButton.react","OCDSHeading.react","OCDSResponsiveRow.react","OCDSResponsiveRowItem.react","OCDSText.react","OCDSTextList.react","OCDSTextListItem.react","OCModal.react","OculusParentalSupervisionFalcoEvent","RelayHooks","gkx","goURI","react","uniqueID"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k,l=k||(k=d("react"));e=k;var m=e.useCallback,n=e.useEffect,o=e.useMemo,p=e.useState,q={heading:{marginBottom:"x4n8cb0",$$css:!0},profileName:{marginLeft:"x1tpqehw",marginStart:null,marginEnd:null,$$css:!0},button:{width:"xh8yej3",$$css:!0}},r="parsu_ocwww_link_terms_view";function a(a){var e=a.code;a.history;a=p(!1);var f=a[0],g=a[1];a=p();var k=a[0],s=a[1];a=m(function(){g(!1)},[]);var t=m(function(a){a=d("OCAccountMvanErrorUtils").parseError(a);g(!0);s(a)},[]),u=d("RelayHooks").useMutation(i!==void 0?i:i=b("OCAccountMvanLinkTermsViewAcceptMutation.graphql")),v=u[0],w=u[1],x=d("RelayHooks").useLazyLoadQuery(j!==void 0?j:j=b("OCAccountMvanLinkTermsViewQuery.graphql"),{code:e}),y=x==null?void 0:(u=x.xoc_parco_invitation)==null?void 0:u.id,z=x==null?void 0:(u=x.viewer)==null?void 0:(u=u.user)==null?void 0:u.id,A=x==null?void 0:(u=x.viewer)==null?void 0:(u=u.user)==null?void 0:u.has_valid_frl_account;n(function(){y!=null&&c("OculusParentalSupervisionFalcoEvent").log(function(){return{__canonicals:{unified_telemetry:{id:z}},event_name:"oculus_parsu_invite_open",guardian_userid:z,has_valid_frl_account:A,page_name:r}})},[y,z,A]);var B=m(function(){c("goURI")(c("OCAccountMvanLinkRoute").getURI())},[]),C=m(function(){var a=c("uniqueID")();v({variables:{input:{invitation_id:y,client_mutation_id:a,invitation_code:{sensitive_string_value:e}}},onCompleted:function(){c("OculusParentalSupervisionFalcoEvent").log(function(){return{__canonicals:{unified_telemetry:{id:z}},event_name:"oculus_parsu_invite_accept",guardian_userid:z,has_valid_frl_account:A,page_name:r}}),c("goURI")(c("OCAccountMvanLinkAppDownloadRoute").getURI(e).toString())},onError:t})},[v,e,y,z,A,t]),D=[l.jsx(c("OCDSTextListItem.react"),{children:l.jsx(c("OCDSText.react"),{children:h._("See how much time they spend in VR.")})},0),l.jsx(c("OCDSTextListItem.react"),{children:l.jsx(c("OCDSText.react"),{children:h._("See which apps they use and their purchases, downloads and gifts.")})},1),l.jsx(c("OCDSTextListItem.react"),{children:l.jsx(c("OCDSText.react"),{children:(x==null?void 0:(u=x.viewer)==null?void 0:(u=u.user)==null?void 0:u.has_valid_frl_account)!==!0?h._("See their followers and who they"re following in VR."):h._("See who they"re friends with.")})},2),l.jsx(c("OCDSTextListItem.react"),{children:l.jsx(c("OCDSText.react"),{children:h._("Allow or block access to their apps, purchases and features.")})},3)];c("gkx")("25631")&&D.push(l.jsx(c("OCDSTextListItem.react"),{children:l.jsx(c("OCDSText.react"),{children:h._("View and control the safety settings of some apps, including Meta Horizon Worlds.")})},4));var E=m(function(){c("OculusParentalSupervisionFalcoEvent").log(function(){return{__canonicals:{unified_telemetry:{id:z}},event_name:"oculus_parsu_invite_reject",guardian_userid:z,has_valid_frl_account:A,page_name:r}}),c("goURI")(c("OCAccountSettingsRoute").getURI())},[z,A]);u=o(function(){if(y!=null){var a;return l.jsxs(l.Fragment,{children:[l.jsx(c("OCDSHeading.react"),{type:"heading3",xstyle:q.heading,children:h._({"*":"Accept invite from {Teen Name}"},[h._name("Teen Name",x==null?void 0:(a=x.xoc_parco_invitation)==null?void 0:a.display_name,c("IntlVariations").GENDER_UNKNOWN)])}),l.jsxs("div",{className:"x16ydxro x1hq5gj4 x78zum5 x1q0g3np x2b8uid x1o2pa38 x6s0dn4",children:[l.jsx(c("OCAccountProfileImage.react"),{presenceStatus:null,uri:x==null?void 0:(a=x.xoc_parco_invitation)==null?void 0:(a=a.profile_photo)==null?void 0:a.uri}),l.jsx(c("OCDSHeading.react"),{type:"heading4",xstyle:q.profileName,children:x==null?void 0:(a=x.xoc_parco_invitation)==null?void 0:a.display_name})]}),l.jsx("div",{className:"x1hq5gj4",children:l.jsx(c("OCDSText.react"),{children:h._({"*":"{Teen Name} has invited you to support their Meta Quest account."},[h._name("Teen Name",x==null?void 0:(a=x.xoc_parco_invitation)==null?void 0:a.display_name,c("IntlVariations").GENDER_UNKNOWN)])})}),l.jsx("div",{className:"x1hq5gj4",children:l.jsx(c("OCDSText.react"),{children:h._("Once you accept, you can:")})}),l.jsx("div",{className:"x1hq5gj4 xq1n1xh",children:l.jsx(c("OCDSTextList.react"),{bulletSize:"large",children:D})}),l.jsx("div",{className:"x1hq5gj4",children:l.jsx(c("OCDSText.react"),{children:h._("You can"t change the way they choose to appear in VR or make changes to their account.")})}),l.jsx("div",{className:"x1hq5gj4",children:l.jsx(c("OCDSText.react"),{children:h._("Either of you can disconnect from each other at any time.")})}),l.jsxs(c("OCDSResponsiveRow.react"),{children:[l.jsx(c("OCDSResponsiveRowItem.react"),{span:{mobile:12,desktop:12,tablet:12}}),l.jsx(c("OCDSResponsiveRowItem.react"),{span:{mobile:12,desktop:12,tablet:12},children:l.jsx(c("OCDSButton.react"),{isDisabled:w,isLoading:w,label:h._("Accept invitation"),shape:"rectangle",type:"primary",xstyle:q.button,onClick:C})}),l.jsx(c("OCDSResponsiveRowItem.react"),{span:{mobile:12,desktop:12,tablet:12},children:l.jsx(c("OCDSButton.react"),{label:h._("Decline invitation"),shape:"rectangle",type:"primary",xstyle:q.button,onClick:E})})]})]})}return l.jsxs(l.Fragment,{children:[l.jsx(c("OCDSHeading.react"),{type:"heading3",xstyle:q.heading,children:h._("Invitation not found")}),l.jsx("div",{className:"x1hq5gj4",children:l.jsx(c("OCDSText.react"),{children:h._("We cannot find this invitation. Are you sure that you entered it correctly?")})}),l.jsxs(c("OCDSResponsiveRow.react"),{children:[l.jsx(c("OCDSResponsiveRowItem.react"),{span:{mobile:12,desktop:12,tablet:12}}),l.jsx(c("OCDSResponsiveRowItem.react"),{span:{mobile:12,desktop:12,tablet:12},children:l.jsx(c("OCDSButton.react"),{isDisabled:w,isLoading:w,label:h._("Start over"),shape:"rectangle",type:"primary",xstyle:q.button,onClick:B})})]})]})},[x==null?void 0:(u=x.viewer)==null?void 0:(u=u.user)==null?void 0:u.has_valid_frl_account,x==null?void 0:(u=x.xoc_parco_invitation)==null?void 0:u.display_name,x==null?void 0:(u=x.xoc_parco_invitation)==null?void 0:(u=u.profile_photo)==null?void 0:u.uri,w,y,C,E,B]);return l.jsxs("div",{className:"xh8yej3",children:[l.jsx("div",{className:"xwnkcuf x78zum5 xdt5ytf xdj266r xkrivgy xat24cr x1gryazu",children:u}),l.jsxs(c("OCModal.react"),{className:"xeuugli",classNameForDialog:"xeuugli xw5ewwj x78zum5 xdt5ytf x1cnzs8 xc73u3c xx6bls6 x5ib6vp x1lq5wgf xgqcy7u x30kzoy x9jhf4c",dismissable:!0,open:f,onClose:a,children:[l.jsx(c("OCDSHeading.react"),{type:"heading3",xstyle:q.heading,children:h._("You can"t set up parental supervision as a parent")}),l.jsx("div",{className:"x1hq5gj4",children:l.jsx(c("OCDSText.react"),{children:k==null?void 0:k.summary})}),l.jsx(c("OCDSButton.react"),{label:h._("Close"),shape:"rectangle",type:"primary",onClick:a})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
OCAccountMvanLinkTermsViewQuery.graphql",["OCAccountMvanLinkTermsViewQuery_oculusRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"code"}],c={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};c=[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"user",plural:!1,selections:[c,{alias:null,args:null,kind:"ScalarField",name:"has_valid_frl_account",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:[{kind:"Variable",name:"invitation_code",variableName:"code"}],concreteType:"XOCParcoInvitationInfo",kind:"LinkedField",name:"xoc_parco_invitation",plural:!1,selections:[c,{alias:null,args:null,concreteType:"Image",kind:"LinkedField",name:"profile_photo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"display_name",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"OCAccountMvanLinkTermsViewQuery",selections:c,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"OCAccountMvanLinkTermsViewQuery",selections:c},params:{id:b("OCAccountMvanLinkTermsViewQuery_oculusRelayOperation"),metadata:{},name:"OCAccountMvanLinkTermsViewQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
OCAccountMvanLinkTermsViewQuery_oculusRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5191330280978659"}),null);
-----
OCAccountMvanLinkTermsView.react",["fbt","IntlVariations","OCAccountMvanErrorUtils","OCAccountMvanLinkAppDownloadRoute","OCAccountMvanLinkRoute","OCAccountMvanLinkTermsViewAcceptMutation.graphql","OCAccountMvanLinkTermsViewQuery.graphql","OCAccountProfileImage.react","OCAccountSettingsRoute","OCDSButton.react","OCDSHeading.react","OCDSResponsiveRow.react","OCDSResponsiveRowItem.react","OCDSText.react","OCDSTextList.react","OCDSTextListItem.react","OCModal.react","OculusParentalSupervisionFalcoEvent","RelayHooks","gkx","goURI","react","uniqueID"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=d("react");e=d("react");var l=e.useCallback,m=e.useEffect,n=e.useMemo,o=e.useState,p={main:{width:"xh8yej3",$$css:!0},container:{maxWidth:"xwnkcuf",display:"x78zum5",flexDirection:"xdt5ytf",marginTop:"xdj266r",marginEnd:"xkrivgy",marginBottom:"xat24cr",marginStart:"x1gryazu",$$css:!0},errorBox:{minWidth:"xeuugli",maxWidth:"xw5ewwj",display:"x78zum5",flexDirection:"xdt5ytf",paddingTop:"x1cnzs8",paddingEnd:"xc73u3c",paddingBottom:"xx6bls6",paddingStart:"x5ib6vp",borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",$$css:!0},errorContainer:{minWidth:"xeuugli",$$css:!0},heading:{marginBottom:"x4n8cb0",$$css:!0},profileImages:{marginLeft:"x16ydxro",marginBottom:"x1hq5gj4",display:"x78zum5",flexDirection:"x1q0g3np",textAlign:"x2b8uid",justifyItems:"x1o2pa38",alignItems:"x6s0dn4",$$css:!0},profileName:{marginLeft:"x1tpqehw",$$css:!0},text:{marginBottom:"x1hq5gj4",$$css:!0},button:{width:"xh8yej3",$$css:!0},features:{marginBottom:"x1hq5gj4",marginLeft:"xq1n1xh",$$css:!0}},q="parsu_ocwww_link_terms_view";function a(a){var e=a.code;a=o(!1);var f=a[0],g=a[1];a=o();var r=a[0],s=a[1];a=l(function(){g(!1)},[]);var t=l(function(a){a=d("OCAccountMvanErrorUtils").parseError(a);g(!0);s(a)},[]),u=d("RelayHooks").useMutation(i!==void 0?i:i=b("OCAccountMvanLinkTermsViewAcceptMutation.graphql")),v=u[0],w=u[1],x=d("RelayHooks").useLazyLoadQuery(j!==void 0?j:j=b("OCAccountMvanLinkTermsViewQuery.graphql"),{code:e}),y=x==null?void 0:(u=x.xoc_parco_invitation)==null?void 0:u.id,z=x==null?void 0:(u=x.viewer)==null?void 0:(u=u.user)==null?void 0:u.id,A=x==null?void 0:(u=x.viewer)==null?void 0:(u=u.user)==null?void 0:u.has_valid_frl_account;m(function(){y!=null&&c("OculusParentalSupervisionFalcoEvent").log(function(){return{__canonicals:{unified_telemetry:{id:z}},event_name:"oculus_parsu_invite_open",guardian_userid:z,has_valid_frl_account:A,page_name:q}})},[y,z,A]);var B=l(function(){c("goURI")(c("OCAccountMvanLinkRoute").getURI())},[]),C=l(function(){var a=c("uniqueID")();v({variables:{input:{invitation_id:y,client_mutation_id:a,invitation_code:{sensitive_string_value:e}}},onCompleted:function(){c("OculusParentalSupervisionFalcoEvent").log(function(){return{__canonicals:{unified_telemetry:{id:z}},event_name:"oculus_parsu_invite_accept",guardian_userid:z,has_valid_frl_account:A,page_name:q}}),c("goURI")(c("OCAccountMvanLinkAppDownloadRoute").getURI(e).toString())},onError:t})},[v,e,y,z,A,t]),D=[k.jsx(c("OCDSTextListItem.react"),{children:k.jsx(c("OCDSText.react"),{children:h._("u67e5u770bu5b69u5b50u7684 VR u7528u65f6u3002")})},0),k.jsx(c("OCDSTextListItem.react"),{children:k.jsx(c("OCDSText.react"),{children:h._("u67e5u770b TA u4f7fu7528u7684u5e94u7528uff0cu4ee5u53ca TA u7684u8d2du4e70u3001u4e0bu8f7du548cu793cu7269u3002")})},1),k.jsx(c("OCDSTextListItem.react"),{children:k.jsx(c("OCDSText.react"),{children:(x==null?void 0:(u=x.viewer)==null?void 0:(u=u.user)==null?void 0:u.has_valid_frl_account)!==!0?h._("u67e5u770b TA u5728 VR u7684u7c89u4e1du548cu5173u6ce8u540du5355u3002"):h._("u67e5u770b TA u6709u54eau4e9bu597du53cbu3002")})},2),k.jsx(c("OCDSTextListItem.react"),{children:k.jsx(c("OCDSText.react"),{children:h._("u5141u8bb8u6216u963bu6b62 TA u8bbfu95eeu5e94u7528u3001u8d2du4e70u5546u54c1u548cu4f7fu7528u529fu80fdu3002")})},3)];c("gkx")("5899")&&D.push(k.jsx(c("OCDSTextListItem.react"),{children:k.jsx(c("OCDSText.react"),{children:h._("u67e5u770bu5e76u63a7u5236u4e00u4e9bu5e94u7528u7684u5b89u5168u8bbeu7f6euff0cu5305u62ec Meta Horizon u4e16u754cu3002")})},4));var E=l(function(){c("OculusParentalSupervisionFalcoEvent").log(function(){return{__canonicals:{unified_telemetry:{id:z}},event_name:"oculus_parsu_invite_reject",guardian_userid:z,has_valid_frl_account:A,page_name:q}}),c("goURI")(c("OCAccountSettingsRoute").getURI())},[z,A]);u=n(function(){if(y!=null){var a;return k.jsxs(k.Fragment,{children:[k.jsx(c("OCDSHeading.react"),{type:"heading3",xstyle:p.heading,children:h._({"*":"u63a5u53d7{Teen Name}u7684u9080u8bf7"},[h._name("Teen Name",x==null?void 0:(a=x.xoc_parco_invitation)==null?void 0:a.display_name,c("IntlVariations").GENDER_UNKNOWN)])}),k.jsxs("div",{className:"x16ydxro x1hq5gj4 x78zum5 x1q0g3np x2b8uid x1o2pa38 x6s0dn4",children:[k.jsx(c("OCAccountProfileImage.react"),{presenceStatus:null,uri:x==null?void 0:(a=x.xoc_parco_invitation)==null?void 0:(a=a.profile_photo)==null?void 0:a.uri}),k.jsx(c("OCDSHeading.react"),{type:"heading4",xstyle:p.profileName,children:x==null?void 0:(a=x.xoc_parco_invitation)==null?void 0:a.display_name})]}),k.jsx("div",{className:"x1hq5gj4",children:k.jsx(c("OCDSText.react"),{children:h._({"*":"{Teen Name}u5df2u9080u8bf7u4f60u4e3a TA u7684 Meta Quest u5e10u6237u63d0u4f9bu652fu6301u3002"},[h._name("Teen Name",x==null?void 0:(a=x.xoc_parco_invitation)==null?void 0:a.display_name,c("IntlVariations").GENDER_UNKNOWN)])})}),k.jsx("div",{className:"x1hq5gj4",children:k.jsx(c("OCDSText.react"),{children:h._("u63a5u53d7u540euff0cu4f60u53efu4ee5uff1a")})}),k.jsx("div",{className:"x1hq5gj4 xq1n1xh",children:k.jsx(c("OCDSTextList.react"),{bulletSize:"large",children:D})}),k.jsx("div",{className:"x1hq5gj4",children:k.jsx(c("OCDSText.react"),{children:h._("u4f60u4e0du80fdu66f4u6539 TA u5728 VR u4e2du9009u62e9u7684u663eu793au65b9u5f0fu6216u5bf9 TA u7684u5e10u6237u8fdbu884cu66f4u6539u3002")})}),k.jsx("div",{className:"x1hq5gj4",children:k.jsx(c("OCDSText.react"),{children:h._("u4f60u4eecu90fdu53efu4ee5u968fu65f6u89e3u9664u76d1u62a4u5173u7cfbu3002")})}),k.jsxs(c("OCDSResponsiveRow.react"),{children:[k.jsx(c("OCDSResponsiveRowItem.react"),{span:{mobile:12,desktop:12,tablet:12}}),k.jsx(c("OCDSResponsiveRowItem.react"),{span:{mobile:12,desktop:12,tablet:12},children:k.jsx(c("OCDSButton.react"),{isDisabled:w,isLoading:w,label:h._("u63a5u53d7u9080u8bf7"),shape:"rectangle",type:"primary",xstyle:p.button,onClick:C})}),k.jsx(c("OCDSResponsiveRowItem.react"),{span:{mobile:12,desktop:12,tablet:12},children:k.jsx(c("OCDSButton.react"),{label:h._("u62d2u7eddu9080u8bf7"),shape:"rectangle",type:"primary",xstyle:p.button,onClick:E})})]})]})}return k.jsxs(k.Fragment,{children:[k.jsx(c("OCDSHeading.react"),{type:"heading3",xstyle:p.heading,children:h._("u627eu4e0du5230u9080u8bf7")}),k.jsx("div",{className:"x1hq5gj4",children:k.jsx(c("OCDSText.react"),{children:h._("u6211u4eecu65e0u6cd5u627eu5230u8fd9u9879u9080u8bf7uff0cu4f60u662fu5426u786eu5b9au8f93u5165u65e0u8befuff1f")})}),k.jsxs(c("OCDSResponsiveRow.react"),{children:[k.jsx(c("OCDSResponsiveRowItem.react"),{span:{mobile:12,desktop:12,tablet:12}}),k.jsx(c("OCDSResponsiveRowItem.react"),{span:{mobile:12,desktop:12,tablet:12},children:k.jsx(c("OCDSButton.react"),{isDisabled:w,isLoading:w,label:h._("u91cdu6765"),shape:"rectangle",type:"primary",xstyle:p.button,onClick:B})})]})]})},[x==null?void 0:(u=x.viewer)==null?void 0:(u=u.user)==null?void 0:u.has_valid_frl_account,x==null?void 0:(u=x.xoc_parco_invitation)==null?void 0:u.display_name,x==null?void 0:(u=x.xoc_parco_invitation)==null?void 0:(u=u.profile_photo)==null?void 0:u.uri,w,y,C,E,B]);return k.jsxs("div",{className:"xh8yej3",children:[k.jsx("div",{className:"xwnkcuf x78zum5 xdt5ytf xdj266r xkrivgy xat24cr x1gryazu",children:u}),k.jsxs(c("OCModal.react"),{className:"xeuugli",classNameForDialog:"xeuugli xw5ewwj x78zum5 xdt5ytf x1cnzs8 xc73u3c xx6bls6 x5ib6vp x1lq5wgf xgqcy7u x30kzoy x9jhf4c",dismissable:!0,open:f,onClose:a,children:[k.jsx(c("OCDSHeading.react"),{type:"heading3",xstyle:p.heading,children:h._("u4f60u65e0u6cd5u4ee5u5bb6u957fu8eabu4efdu8bbeu7f6eu5bb6u957fu76d1u62a4")}),k.jsx("div",{className:"x1hq5gj4",children:k.jsx(c("OCDSText.react"),{children:r==null?void 0:r.summary})}),k.jsx(c("OCDSButton.react"),{label:h._("u5173u95ed"),shape:"rectangle",type:"primary",onClick:a})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
OCAccountMvanLinkTermsViewQuery.graphql",["OCAccountMvanLinkTermsViewQuery_oculusRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"code"}],c={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};c=[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"user",plural:!1,selections:[c,{alias:null,args:null,kind:"ScalarField",name:"has_valid_frl_account",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:[{kind:"Variable",name:"invitation_code",variableName:"code"}],concreteType:"XOCParcoInvitationInfo",kind:"LinkedField",name:"xoc_parco_invitation",plural:!1,selections:[c,{alias:null,args:null,concreteType:"Image",kind:"LinkedField",name:"profile_photo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"display_name",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"OCAccountMvanLinkTermsViewQuery",selections:c,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"OCAccountMvanLinkTermsViewQuery",selections:c},params:{id:b("OCAccountMvanLinkTermsViewQuery_oculusRelayOperation"),metadata:{},name:"OCAccountMvanLinkTermsViewQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
OCAccountMvanLinkTermsViewQuery_oculusRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5191330280978659"}),null);
-----
-----
OCAccountMvanLinkTermsViewQuery.graphql",["OCAccountMvanLinkTermsViewQuery_oculusRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"code"}],c={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};c=[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"user",plural:!1,selections:[c,{alias:null,args:null,kind:"ScalarField",name:"has_valid_frl_account",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:[{kind:"Variable",name:"invitation_code",variableName:"code"}],concreteType:"XOCParcoInvitationInfo",kind:"LinkedField",name:"xoc_parco_invitation",plural:!1,selections:[c,{alias:null,args:null,concreteType:"Image",kind:"LinkedField",name:"profile_photo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"display_name",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"OCAccountMvanLinkTermsViewQuery",selections:c,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"OCAccountMvanLinkTermsViewQuery",selections:c},params:{id:b("OCAccountMvanLinkTermsViewQuery_oculusRelayOperation"),metadata:{},name:"OCAccountMvanLinkTermsViewQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
OCAccountMvanLinkTermsViewQuery_oculusRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5191330280978659"}),null);
-----
OCAccountMvanLinkTermsView.react",["fbt","IntlVariations","OCAccountMvanErrorUtils","OCAccountMvanLinkAppDownloadRoute","OCAccountMvanLinkRoute","OCAccountMvanLinkTermsViewAcceptMutation.graphql","OCAccountMvanLinkTermsViewQuery.graphql","OCAccountProfileImage.react","OCAccountSettingsRoute","OCDSButton.react","OCDSHeading.react","OCDSResponsiveRow.react","OCDSResponsiveRowItem.react","OCDSText.react","OCDSTextList.react","OCDSTextListItem.react","OCModal.react","OculusParentalSupervisionFalcoEvent","RelayHooks","gkx","goURI","react","uniqueID"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=d("react");e=d("react");var l=e.useCallback,m=e.useEffect,n=e.useMemo,o=e.useState,p={main:{width:"xh8yej3",$$css:!0},container:{maxWidth:"xwnkcuf",display:"x78zum5",flexDirection:"xdt5ytf",marginTop:"xdj266r",marginEnd:"xkrivgy",marginBottom:"xat24cr",marginStart:"x1gryazu",$$css:!0},errorBox:{minWidth:"xeuugli",maxWidth:"xw5ewwj",display:"x78zum5",flexDirection:"xdt5ytf",paddingTop:"x1cnzs8",paddingEnd:"xc73u3c",paddingBottom:"xx6bls6",paddingStart:"x5ib6vp",borderTopStartRadius:"x1lq5wgf",borderTopEndRadius:"xgqcy7u",borderBottomEndRadius:"x30kzoy",borderBottomStartRadius:"x9jhf4c",$$css:!0},errorContainer:{minWidth:"xeuugli",$$css:!0},heading:{marginBottom:"x4n8cb0",$$css:!0},profileImages:{marginLeft:"x16ydxro",marginBottom:"x1hq5gj4",display:"x78zum5",flexDirection:"x1q0g3np",textAlign:"x2b8uid",justifyItems:"x1o2pa38",alignItems:"x6s0dn4",$$css:!0},profileName:{marginLeft:"x1tpqehw",$$css:!0},text:{marginBottom:"x1hq5gj4",$$css:!0},button:{width:"xh8yej3",$$css:!0},features:{marginBottom:"x1hq5gj4",marginLeft:"xq1n1xh",$$css:!0}},q="parsu_ocwww_link_terms_view";function a(a){var e=a.code;a=o(!1);var f=a[0],g=a[1];a=o();var r=a[0],s=a[1];a=l(function(){g(!1)},[]);var t=l(function(a){a=d("OCAccountMvanErrorUtils").parseError(a);g(!0);s(a)},[]),u=d("RelayHooks").useMutation(i!==void 0?i:i=b("OCAccountMvanLinkTermsViewAcceptMutation.graphql")),v=u[0],w=u[1],x=d("RelayHooks").useLazyLoadQuery(j!==void 0?j:j=b("OCAccountMvanLinkTermsViewQuery.graphql"),{code:e}),y=x==null?void 0:(u=x.xoc_parco_invitation)==null?void 0:u.id,z=x==null?void 0:(u=x.viewer)==null?void 0:(u=u.user)==null?void 0:u.id,A=x==null?void 0:(u=x.viewer)==null?void 0:(u=u.user)==null?void 0:u.has_valid_frl_account;m(function(){y!=null&&c("OculusParentalSupervisionFalcoEvent").log(function(){return{__canonicals:{unified_telemetry:{id:z}},event_name:"oculus_parsu_invite_open",guardian_userid:z,has_valid_frl_account:A,page_name:q}})},[y,z,A]);var B=l(function(){c("goURI")(c("OCAccountMvanLinkRoute").getURI())},[]),C=l(function(){var a=c("uniqueID")();v({variables:{input:{invitation_id:y,client_mutation_id:a,invitation_code:{sensitive_string_value:e}}},onCompleted:function(){c("OculusParentalSupervisionFalcoEvent").log(function(){return{__canonicals:{unified_telemetry:{id:z}},event_name:"oculus_parsu_invite_accept",guardian_userid:z,has_valid_frl_account:A,page_name:q}}),c("goURI")(c("OCAccountMvanLinkAppDownloadRoute").getURI(e).toString())},onError:t})},[v,e,y,z,A,t]),D=[k.jsx(c("OCDSTextListItem.react"),{children:k.jsx(c("OCDSText.react"),{children:h._("u67e5u770bu5b69u5b50u7684 VR u7528u65f6u3002")})},0),k.jsx(c("OCDSTextListItem.react"),{children:k.jsx(c("OCDSText.react"),{children:h._("u67e5u770b TA u4f7fu7528u7684u5e94u7528uff0cu4ee5u53ca TA u7684u8d2du4e70u3001u4e0bu8f7du548cu793cu7269u3002")})},1),k.jsx(c("OCDSTextListItem.react"),{children:k.jsx(c("OCDSText.react"),{children:(x==null?void 0:(u=x.viewer)==null?void 0:(u=u.user)==null?void 0:u.has_valid_frl_account)!==!0?h._("u67e5u770b TA u5728 VR u7684u7c89u4e1du548cu5173u6ce8u540du5355u3002"):h._("u67e5u770b TA u6709u54eau4e9bu597du53cbu3002")})},2),k.jsx(c("OCDSTextListItem.react"),{children:k.jsx(c("OCDSText.react"),{children:h._("u5141u8bb8u6216u963bu6b62 TA u8bbfu95eeu5e94u7528u3001u8d2du4e70u5546u54c1u548cu4f7fu7528u529fu80fdu3002")})},3)];c("gkx")("5899")&&D.push(k.jsx(c("OCDSTextListItem.react"),{children:k.jsx(c("OCDSText.react"),{children:h._("u67e5u770bu5e76u63a7u5236u4e00u4e9bu5e94u7528u7684u5b89u5168u8bbeu7f6euff0cu5305u62ec Meta Horizon u4e16u754cu3002")})},4));var E=l(function(){c("OculusParentalSupervisionFalcoEvent").log(function(){return{__canonicals:{unified_telemetry:{id:z}},event_name:"oculus_parsu_invite_reject",guardian_userid:z,has_valid_frl_account:A,page_name:q}}),c("goURI")(c("OCAccountSettingsRoute").getURI())},[z,A]);u=n(function(){if(y!=null){var a;return k.jsxs(k.Fragment,{children:[k.jsx(c("OCDSHeading.react"),{type:"heading3",xstyle:p.heading,children:h._({"*":"u63a5u53d7{Teen Name}u7684u9080u8bf7"},[h._name("Teen Name",x==null?void 0:(a=x.xoc_parco_invitation)==null?void 0:a.display_name,c("IntlVariations").GENDER_UNKNOWN)])}),k.jsxs("div",{className:"x16ydxro x1hq5gj4 x78zum5 x1q0g3np x2b8uid x1o2pa38 x6s0dn4",children:[k.jsx(c("OCAccountProfileImage.react"),{presenceStatus:null,uri:x==null?void 0:(a=x.xoc_parco_invitation)==null?void 0:(a=a.profile_photo)==null?void 0:a.uri}),k.jsx(c("OCDSHeading.react"),{type:"heading4",xstyle:p.profileName,children:x==null?void 0:(a=x.xoc_parco_invitation)==null?void 0:a.display_name})]}),k.jsx("div",{className:"x1hq5gj4",children:k.jsx(c("OCDSText.react"),{children:h._({"*":"{Teen Name}u5df2u9080u8bf7u4f60u4e3a TA u7684 Meta Quest u5e10u6237u63d0u4f9bu652fu6301u3002"},[h._name("Teen Name",x==null?void 0:(a=x.xoc_parco_invitation)==null?void 0:a.display_name,c("IntlVariations").GENDER_UNKNOWN)])})}),k.jsx("div",{className:"x1hq5gj4",children:k.jsx(c("OCDSText.react"),{children:h._("u63a5u53d7u540euff0cu4f60u53efu4ee5uff1a")})}),k.jsx("div",{className:"x1hq5gj4 xq1n1xh",children:k.jsx(c("OCDSTextList.react"),{bulletSize:"large",children:D})}),k.jsx("div",{className:"x1hq5gj4",children:k.jsx(c("OCDSText.react"),{children:h._("u4f60u4e0du80fdu66f4u6539 TA u5728 VR u4e2du9009u62e9u7684u663eu793au65b9u5f0fu6216u5bf9 TA u7684u5e10u6237u8fdbu884cu66f4u6539u3002")})}),k.jsx("div",{className:"x1hq5gj4",children:k.jsx(c("OCDSText.react"),{children:h._("u4f60u4eecu90fdu53efu4ee5u968fu65f6u89e3u9664u76d1u62a4u5173u7cfbu3002")})}),k.jsxs(c("OCDSResponsiveRow.react"),{children:[k.jsx(c("OCDSResponsiveRowItem.react"),{span:{mobile:12,desktop:12,tablet:12}}),k.jsx(c("OCDSResponsiveRowItem.react"),{span:{mobile:12,desktop:12,tablet:12},children:k.jsx(c("OCDSButton.react"),{isDisabled:w,isLoading:w,label:h._("u63a5u53d7u9080u8bf7"),shape:"rectangle",type:"primary",xstyle:p.button,onClick:C})}),k.jsx(c("OCDSResponsiveRowItem.react"),{span:{mobile:12,desktop:12,tablet:12},children:k.jsx(c("OCDSButton.react"),{label:h._("u62d2u7eddu9080u8bf7"),shape:"rectangle",type:"primary",xstyle:p.button,onClick:E})})]})]})}return k.jsxs(k.Fragment,{children:[k.jsx(c("OCDSHeading.react"),{type:"heading3",xstyle:p.heading,children:h._("u627eu4e0du5230u9080u8bf7")}),k.jsx("div",{className:"x1hq5gj4",children:k.jsx(c("OCDSText.react"),{children:h._("u6211u4eecu65e0u6cd5u627eu5230u8fd9u9879u9080u8bf7uff0cu4f60u662fu5426u786eu5b9au8f93u5165u65e0u8befuff1f")})}),k.jsxs(c("OCDSResponsiveRow.react"),{children:[k.jsx(c("OCDSResponsiveRowItem.react"),{span:{mobile:12,desktop:12,tablet:12}}),k.jsx(c("OCDSResponsiveRowItem.react"),{span:{mobile:12,desktop:12,tablet:12},children:k.jsx(c("OCDSButton.react"),{isDisabled:w,isLoading:w,label:h._("u91cdu6765"),shape:"rectangle",type:"primary",xstyle:p.button,onClick:B})})]})]})},[x==null?void 0:(u=x.viewer)==null?void 0:(u=u.user)==null?void 0:u.has_valid_frl_account,x==null?void 0:(u=x.xoc_parco_invitation)==null?void 0:u.display_name,x==null?void 0:(u=x.xoc_parco_invitation)==null?void 0:(u=u.profile_photo)==null?void 0:u.uri,w,y,C,E,B]);return k.jsxs("div",{className:"xh8yej3",children:[k.jsx("div",{className:"xwnkcuf x78zum5 xdt5ytf xdj266r xkrivgy xat24cr x1gryazu",children:u}),k.jsxs(c("OCModal.react"),{className:"xeuugli",classNameForDialog:"xeuugli xw5ewwj x78zum5 xdt5ytf x1cnzs8 xc73u3c xx6bls6 x5ib6vp x1lq5wgf xgqcy7u x30kzoy x9jhf4c",dismissable:!0,open:f,onClose:a,children:[k.jsx(c("OCDSHeading.react"),{type:"heading3",xstyle:p.heading,children:h._("u4f60u65e0u6cd5u4ee5u5bb6u957fu8eabu4efdu8bbeu7f6eu5bb6u957fu76d1u62a4")}),k.jsx("div",{className:"x1hq5gj4",children:k.jsx(c("OCDSText.react"),{children:r==null?void 0:r.summary})}),k.jsx(c("OCDSButton.react"),{label:h._("u5173u95ed"),shape:"rectangle",type:"primary",onClick:a})]})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),98);
-----
OCAccountMvanLinkTermsViewQuery.graphql",["OCAccountMvanLinkTermsViewQuery_oculusRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"code"}],c={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};c=[{alias:null,args:null,concreteType:"Viewer",kind:"LinkedField",name:"viewer",plural:!1,selections:[{alias:null,args:null,concreteType:"User",kind:"LinkedField",name:"user",plural:!1,selections:[c,{alias:null,args:null,kind:"ScalarField",name:"has_valid_frl_account",storageKey:null}],storageKey:null}],storageKey:null},{alias:null,args:[{kind:"Variable",name:"invitation_code",variableName:"code"}],concreteType:"XOCParcoInvitationInfo",kind:"LinkedField",name:"xoc_parco_invitation",plural:!1,selections:[c,{alias:null,args:null,concreteType:"Image",kind:"LinkedField",name:"profile_photo",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"uri",storageKey:null}],storageKey:null},{alias:null,args:null,kind:"ScalarField",name:"display_name",storageKey:null}],storageKey:null}];return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"OCAccountMvanLinkTermsViewQuery",selections:c,type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"OCAccountMvanLinkTermsViewQuery",selections:c},params:{id:b("OCAccountMvanLinkTermsViewQuery_oculusRelayOperation"),metadata:{},name:"OCAccountMvanLinkTermsViewQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
OCAccountMvanLinkTermsViewQuery_oculusRelayOperation",[],(function(a,b,c,d,e,f){e.exports="5191330280978659"}),null);
-----