WearablesReleaseChannelsRoot.react",["fbt","CometRelay","GeoFlexbox.react","GeoHStack.react","GeoPageHeader.react","GeoVStack.react","WearablesReleaseChannelsRootQuery.graphql","WearablesUserReleaseChannelsGrid.react","WearablesUserReleaseChannelsTable.react","WearablesUserSiteStandardPage.react","compactMap","react","react-compiler-runtime","useGeoConfirmationModal","useWearablesLeaveReleaseChannel"],(function(t,n,r,o,a,i,l,s){"use strict";var e,u,c=u||(u=o("react")),d=u.useMemo,m={content:{width:"xh8yej3",$$css:!0},contentContainer:{marginTop:"xqui205",marginInlineEnd:"xpwdb9g",marginBottom:"x1hq5gj4",marginInlineStart:"xefazk8",maxWidth:"x1lz411i",$$css:!0},mobile:{display:"x1lliihq x12iyxos",$$css:!0},nonMobile:{display:"x1s85apg x472xim",$$css:!0}};function p(t){var a,i,l=o("react-compiler-runtime").c(17),u=t.queries,d=u.releaseChannelsQueryRef,p=o("CometRelay").usePreloadedQuery(e!==void 0?e:e=n("WearablesReleaseChannelsRootQuery.graphql"),d),g=r("useWearablesLeaveReleaseChannel")(),h=g[0],y=g[1],C=r("useGeoConfirmationModal")(),b;l[0]!==h||l[1]!==C?(b=function(t){return C({body:s._(/*BTDS*/"Are you sure you want to remove yourself from the release channel {Name of release channel user is removing themselves from}? To re-join you need to ask someone from {Name of the team who invited the user} for a new invitation.",[s._param("Name of release channel user is removing themselves from",c.jsx("b",{children:t.rcName})),s._param("Name of the team who invited the user",c.jsx("b",{children:t.organizationName}))]),cancel:s._(/*BTDS*/"Cancel"),confirm:s._(/*BTDS*/"Yes, stop testing"),onCancel:f,onConfirm:function(){return h(t.inviteID)},title:s._(/*BTDS*/"Are you sure you want to stop testing?")})},l[0]=h,l[1]=C,l[2]=b):b=l[2];var v=b;(a=p.viewer)==null||(a=a.user)==null||(a=a.wearables_release_channel_accepted_invitations)==null||a.nodes;var S;if(l[3]!==((i=p.viewer)==null||(i=i.user)==null||(i=i.wearables_release_channel_accepted_invitations)==null?void 0:i.nodes)){var R,L,E,k;S=(R=r("compactMap")((L=(E=p.viewer)==null||(E=E.user)==null||(E=E.wearables_release_channel_accepted_invitations)==null?void 0:E.nodes)!=null?L:[],_))!=null?R:[],l[3]=(k=p.viewer)==null||(k=k.user)==null||(k=k.wearables_release_channel_accepted_invitations)==null?void 0:k.nodes,l[4]=S}else S=l[4];var I=S,T;l[5]===Symbol.for("react.memo_cache_sentinel")?(T=c.jsx(r("GeoPageHeader.react"),{description:s._(/*BTDS*/"Manage the integrations youu2019re currently testing."),heading:s._(/*BTDS*/"Currently testing")}),l[5]=T):T=l[5];var D=T,x;l[6]!==y||l[7]!==v||l[8]!==I?(x=c.jsx(r("GeoFlexbox.react"),{xstyle:m.nonMobile,children:c.jsx(r("WearablesUserReleaseChannelsTable.react"),{invites:I,isLeaveInFlight:y,onLeaveReleaseChannel:v})}),l[6]=y,l[7]=v,l[8]=I,l[9]=x):x=l[9];var $;l[10]!==y||l[11]!==v||l[12]!==I?($=c.jsx(r("GeoFlexbox.react"),{xstyle:m.mobile,children:c.jsx(r("WearablesUserReleaseChannelsGrid.react"),{invites:I,isLeaveInFlight:y,onLeaveReleaseChannel:v})}),l[10]=y,l[11]=v,l[12]=I,l[13]=$):$=l[13];var P;return l[14]!==x||l[15]!==$?(P=c.jsx(r("WearablesUserSiteStandardPage.react"),{children:c.jsx(r("GeoHStack.react"),{justifyContent:"center",shrink:0,children:c.jsx(r("GeoVStack.react"),{alignItems:"center",justifyContent:"start",xstyle:m.contentContainer,children:c.jsxs(r("GeoVStack.react"),{xstyle:m.content,children:[D,x,$]})})})}),l[14]=x,l[15]=$,l[16]=P):P=l[16],P}function _(e){var t,n,r,o,a,i,l,s,u,c=e.id,d=(t=(n=e.release_channel)==null?void 0:n.name)!=null?t:"",m=(r=(o=e.release_channel)==null||(o=o.application_version)==null||(o=o.application_data)==null?void 0:o.app_name)!=null?r:"",p=(a=e.inviter_name)!=null?a:"",_=(i=e.created_time)!=null?i:0,f=(l=e.organisation_name)!=null?l:"",g=(s=(u=e.release_channel)==null||(u=u.application_version)==null?void 0:u.version)!=null?s:"";return c==null||d==null||m==null||p==null||_==null||f==null||g==null?null:{applicationName:m,invitedBy:p,invitedTime:_,inviteID:c,organizationName:f,rcName:d,version:g}}function f(){}l.default=p}),226);/*FB_PKG_DELIM*/
-----
WearablesReleaseChannelsRootQuery.graphql",["relay-runtime"],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"inviter_name",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"created_time",storageKey:null},r={alias:null,args:null,kind:"ScalarField",name:"organisation_name",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},a={alias:null,args:null,concreteType:"XARWearablesVersionApplicationData",kind:"LinkedField",name:"application_data",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"app_name",storageKey:null}],storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"version",storageKey:null};return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"WearablesReleaseChannelsRootQuery",selections:[{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:[{alias:null,args:null,concreteType:"UserWearablesReleaseChannelAcceptedInvitationsConnection",kind:"LinkedField",name:"wearables_release_channel_accepted_invitations",plural:!1,selections:[{alias:null,args:null,concreteType:"XARWearablesReleaseChannelInvitation",kind:"LinkedField",name:"nodes",plural:!0,selections:[e,t,n,r,{alias:null,args:null,concreteType:"XARWearablesReleaseChannel",kind:"LinkedField",name:"release_channel",plural:!1,selections:[o,{alias:null,args:null,concreteType:"XARWearablesApplicationVersion",kind:"LinkedField",name:"application_version",plural:!1,selections:[a,i],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"WearablesReleaseChannelsRootQuery",selections:[{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:[{alias:null,args:null,concreteType:"UserWearablesReleaseChannelAcceptedInvitationsConnection",kind:"LinkedField",name:"wearables_release_channel_accepted_invitations",plural:!1,selections:[{alias:null,args:null,concreteType:"XARWearablesReleaseChannelInvitation",kind:"LinkedField",name:"nodes",plural:!0,selections:[e,t,n,r,{alias:null,args:null,concreteType:"XARWearablesReleaseChannel",kind:"LinkedField",name:"release_channel",plural:!1,selections:[o,{alias:null,args:null,concreteType:"XARWearablesApplicationVersion",kind:"LinkedField",name:"application_version",plural:!1,selections:[a,i,e],storageKey:null},e],storageKey:null}],storageKey:null}],storageKey:null},e],storageKey:null}],storageKey:null}]},params:{id:"30448458144801651",metadata:{},name:"WearablesReleaseChannelsRootQuery",operationKind:"query",text:null}}})();n("relay-runtime").PreloadableQueryRegistry.set(e.params.id,e),a.exports=e}),null);
-----
WearablesReleaseChannelsRootQuery$Parameters",[],(function(t,n,r,o,a,i){"use strict";var e={kind:"PreloadableConcreteRequest",params:{id:"30448458144801651",metadata:{},name:"WearablesReleaseChannelsRootQuery",operationKind:"query",text:null}};a.exports=e}),null);/*FB_PKG_DELIM*/
-----
WearablesReleaseChannelsRootEntrypoint.entrypoint",["JSResourceForInteraction","WearablesReleaseChannelsRootQuery$Parameters"],(function(t,n,r,o,a,i,l){"use strict";var e={getPreloadProps:function(t){return{queries:{releaseChannelsQueryRef:{options:{},parameters:r("WearablesReleaseChannelsRootQuery$Parameters"),variables:{}}}}},root:r("JSResourceForInteraction")("WearablesReleaseChannelsRoot.react").__setRef("WearablesReleaseChannelsRootEntrypoint.entrypoint")},s=e;l.default=s}),98);/*FB_PKG_DELIM*/
-----
-----
WearablesReleaseChannelsRootQuery.graphql",["relay-runtime"],(function(t,n,r,o,a,i){"use strict";var e=(function(){var e={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null},t={alias:null,args:null,kind:"ScalarField",name:"inviter_name",storageKey:null},n={alias:null,args:null,kind:"ScalarField",name:"created_time",storageKey:null},r={alias:null,args:null,kind:"ScalarField",name:"organisation_name",storageKey:null},o={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},a={alias:null,args:null,concreteType:"XARWearablesVersionApplicationData",kind:"LinkedField",name:"application_data",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"app_name",storageKey:null}],storageKey:null},i={alias:null,args:null,kind:"ScalarField",name:"version",storageKey:null};return{fragment:{argumentDefinitions:[],kind:"Fragment",metadata:null,name:"WearablesReleaseChannelsRootQuery",selections:[{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:[{alias:null,args:null,concreteType:"UserWearablesReleaseChannelAcceptedInvitationsConnection",kind:"LinkedField",name:"wearables_release_channel_accepted_invitations",plural:!1,selections:[{alias:null,args:null,concreteType:"XARWearablesReleaseChannelInvitation",kind:"LinkedField",name:"nodes",plural:!0,selections:[e,t,n,r,{alias:null,args:null,concreteType:"XARWearablesReleaseChannel",kind:"LinkedField",name:"release_channel",plural:!1,selections:[o,{alias:null,args:null,concreteType:"XARWearablesApplicationVersion",kind:"LinkedField",name:"application_version",plural:!1,selections:[a,i],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],storageKey:null}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:[],kind:"Operation",name:"WearablesReleaseChannelsRootQuery",selections:[{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:[{alias:null,args:null,concreteType:"UserWearablesReleaseChannelAcceptedInvitationsConnection",kind:"LinkedField",name:"wearables_release_channel_accepted_invitations",plural:!1,selections:[{alias:null,args:null,concreteType:"XARWearablesReleaseChannelInvitation",kind:"LinkedField",name:"nodes",plural:!0,selections:[e,t,n,r,{alias:null,args:null,concreteType:"XARWearablesReleaseChannel",kind:"LinkedField",name:"release_channel",plural:!1,selections:[o,{alias:null,args:null,concreteType:"XARWearablesApplicationVersion",kind:"LinkedField",name:"application_version",plural:!1,selections:[a,i,e],storageKey:null},e],storageKey:null}],storageKey:null}],storageKey:null},e],storageKey:null}],storageKey:null}]},params:{id:"30448458144801651",metadata:{},name:"WearablesReleaseChannelsRootQuery",operationKind:"query",text:null}}})();n("relay-runtime").PreloadableQueryRegistry.set(e.params.id,e),a.exports=e}),null);
-----
WearablesReleaseChannelsRootQuery$Parameters",[],(function(t,n,r,o,a,i){"use strict";var e={kind:"PreloadableConcreteRequest",params:{id:"30448458144801651",metadata:{},name:"WearablesReleaseChannelsRootQuery",operationKind:"query",text:null}};a.exports=e}),null);/*FB_PKG_DELIM*/
-----
WearablesReleaseChannelsRootEntrypoint.entrypoint",["JSResourceForInteraction","WearablesReleaseChannelsRootQuery$Parameters"],(function(t,n,r,o,a,i,l){"use strict";var e={getPreloadProps:function(t){return{queries:{releaseChannelsQueryRef:{options:{},parameters:r("WearablesReleaseChannelsRootQuery$Parameters"),variables:{}}}}},root:r("JSResourceForInteraction")("WearablesReleaseChannelsRoot.react").__setRef("WearablesReleaseChannelsRootEntrypoint.entrypoint")},s=e;l.default=s}),98);/*FB_PKG_DELIM*/
-----