DeveloperAllAppsInfoBarDropdownMenu.react",["fbt","DeveloperAllAppsInfoBarDropdownMenuQuery.graphql","DeveloperAppArchivalModal.react","DeveloperAppArchivalRestoreModal.react","DeveloperAppDeleteModal.react","DeveloperAppResignRoleModal.react","DeveloperApplicationQPLUtils.react","DeveloperTestAppCreateModal.react","GeoDropdownMenu.react","GeoMenuGroup.react","GeoMenuItem.react","GeoMenuLink.react","GeoModalGlimmer.react","Placeholder.react","RelayHooks","XDeveloperAppController","gkx","react"],(function(a,b,c,d,e,f,g,h){"use strict";var i,j,k=j||(j=d("react")),l=j.useState,m=i!==void 0?i:i=b("DeveloperAllAppsInfoBarDropdownMenuQuery.graphql");function a(a){var b=a.app,e=a.appID;a=a.roleText;var f=c("gkx")("15346"),g=d("RelayHooks").useLazyLoadQuery(m,{appId:e,skip:!f}),i=f?g.node:b;f=l(!1);g=f[0];var j=f[1];f=l(!1);var n=f[0],o=f[1];f=l(!1);var p=f[0],q=f[1];f=l(!1);var r=f[0],s=f[1];f=l(!1);var t=f[0],u=f[1];f=function(){d("DeveloperApplicationQPLUtils.react").markAllAppsPagePoint(d("DeveloperApplicationQPLUtils.react").AllAppsPagePoint.ALL_APPS_PAGE_DELETE_APP_DIALOG_CANCEL_CLICKED),o(!1)};var v=function(){d("DeveloperApplicationQPLUtils.react").markAllAppsPagePoint(d("DeveloperApplicationQPLUtils.react").AllAppsPagePoint.ALL_APPS_PAGE_ARCHIVE_APP_MODAL_CANCEL_CLICKED),q(!1)},w=function(){d("DeveloperApplicationQPLUtils.react").markAllAppsPagePoint(d("DeveloperApplicationQPLUtils.react").AllAppsPagePoint.ALL_APPS_PAGE_CREATE_TEST_APP_DIALOG_CANCEL_CLICKED),j(!1)},x=(i==null?void 0:i.is_archived)===!0?h._(/*BTDS*/"Restore App"):h._(/*BTDS*/"Archive App");return k.jsxs("div",{children:[k.jsxs(c("GeoDropdownMenu.react"),{buttonVariant:"flat","data-testid":void 0,useEllipsisIcon:!0,children:[(i==null?void 0:i.can_create_test_app)===!0&&(i==null?void 0:i.is_archived)===!1&&k.jsx(c("GeoMenuItem.react"),{label:h._(/*BTDS*/"Create Test App"),onClick:function(){d("DeveloperApplicationQPLUtils.react").markAllAppsPagePoint(d("DeveloperApplicationQPLUtils.react").AllAppsPagePoint.ALL_APPS_PAGE_CREATE_TEST_APP_CLICKED,{string:{app_id:e},bool:{is_pantheon_app:i==null?void 0:i.is_pantheon_app}}),j(!0)}}),(i==null?void 0:i.can_remove)===!0&&k.jsx(c("GeoMenuItem.react"),{label:h._(/*BTDS*/"Resign as {role}",[h._param("role",a)]),onClick:function(){u(!0)}}),(i==null?void 0:i.can_archive)===!0&&k.jsx(c("GeoMenuItem.react"),{"data-testid":void 0,label:x,onClick:function(){i.is_archived===!0?d("DeveloperApplicationQPLUtils.react").markAllAppsPagePoint(d("DeveloperApplicationQPLUtils.react").AllAppsPagePoint.ALL_APPS_PAGE_RESTORE_APP_CLICKED,{string:{app_id:e},bool:{is_pantheon_app:i.is_pantheon_app}}):d("DeveloperApplicationQPLUtils.react").markAllAppsPagePoint(d("DeveloperApplicationQPLUtils.react").AllAppsPagePoint.ALL_APPS_PAGE_ARCHIVE_APP_CLICKED,{string:{app_id:e},bool:{is_pantheon_app:i.is_pantheon_app}}),i.is_archived===!0?s(!0):q(!0)}}),((i==null?void 0:i.can_delete)===!0||(i==null?void 0:i.can_archive)===!0)&&k.jsx(c("GeoMenuItem.react"),{"data-testid":void 0,label:h._(/*BTDS*/"Remove App"),onClick:function(){d("DeveloperApplicationQPLUtils.react").markAllAppsPagePoint(d("DeveloperApplicationQPLUtils.react").AllAppsPagePoint.ALL_APPS_PAGE_DELETE_APP_CLICKED,{string:{app_id:e},bool:{is_pantheon_app:i.is_pantheon_app}}),o(!0)}}),(i==null?void 0:i.child_apps)!=null&&i.child_apps.length>0&&k.jsx(c("GeoMenuGroup.react"),{label:h._(/*BTDS*/"Test Apps"),children:i.child_apps.map(function(a,b){return k.jsx(c("GeoMenuLink.react"),{href:c("XDeveloperAppController").getURIBuilder().setParams({app_id:a.app_id,page:"dashboard"}).getURI(),label:(b=a.name)!=null?b:"",openLinkInNewTab:!0},a.app_id)})})]}),t&&k.jsx(c("Placeholder.react"),{fallback:k.jsx(c("GeoModalGlimmer.react"),{onHide:function(){return u(!1)}}),children:k.jsx(c("DeveloperAppResignRoleModal.react"),{app:b,appID:e,isShown:t,onHide:function(){return u(!1)}})}),g&&k.jsx(c("Placeholder.react"),{fallback:k.jsx(c("GeoModalGlimmer.react"),{onHide:w}),children:k.jsx(c("DeveloperTestAppCreateModal.react"),{app:b,appID:e,isShown:g,onHide:w})}),n&&k.jsx(c("Placeholder.react"),{fallback:k.jsx(c("GeoModalGlimmer.react"),{onHide:f}),children:k.jsx(c("DeveloperAppDeleteModal.react"),{appID:e,appName:b==null?void 0:b.name,contactEmail:b==null?void 0:b.contact_email,isShown:n,onHide:f,userEmail:b==null?void 0:b.user_email})}),p&&k.jsx(c("Placeholder.react"),{fallback:k.jsx(c("GeoModalGlimmer.react"),{onHide:v}),children:k.jsx(c("DeveloperAppArchivalModal.react"),{app:b,appID:e,isShown:p,onHide:v})}),r&&k.jsx(c("Placeholder.react"),{fallback:k.jsx(c("GeoModalGlimmer.react"),{onHide:function(){return u(!1)}}),children:k.jsx(c("DeveloperAppArchivalRestoreModal.react"),{appID:e,appName:b==null?void 0:b.name,isShown:r,onHide:function(){return s(!1)}})})]})}a.displayName=a.name+" [from "+f.id+"]";g["default"]=a}),226);
-----
DeveloperAllAppsInfoBarDropdownMenuQuery.graphql",["DeveloperAllAppsInfoBarDropdownMenuQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"appId"},{defaultValue:null,kind:"LocalArgument",name:"skip"}],c=[{kind:"Variable",name:"id",variableName:"appId"}],d={alias:null,args:null,kind:"ScalarField",name:"can_create_test_app",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"can_remove",storageKey:null},f={alias:"can_archive",args:null,kind:"ScalarField",name:"is_viewer_admin",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"is_archived",storageKey:null},h={alias:"is_pantheon_app",args:null,kind:"ScalarField",name:"is_in_use_cases",storageKey:null},i={alias:"app_id",args:null,kind:"ScalarField",name:"id",storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},k={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"DeveloperAllAppsInfoBarDropdownMenuQuery",selections:[{condition:"skip",kind:"Condition",passingValue:!1,selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{kind:"InlineFragment",selections:[d,e,f,g,h,{alias:null,args:null,concreteType:"Application",kind:"LinkedField",name:"child_apps",plural:!0,selections:[i,j],storageKey:null}],type:"Application",abstractKey:null}],storageKey:null}]}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"DeveloperAllAppsInfoBarDropdownMenuQuery",selections:[{condition:"skip",kind:"Condition",passingValue:!1,selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"InlineFragment",selections:[d,e,f,g,h,{alias:null,args:null,concreteType:"Application",kind:"LinkedField",name:"child_apps",plural:!0,selections:[i,j,k],storageKey:null}],type:"Application",abstractKey:null},k],storageKey:null}]}]},params:{id:b("DeveloperAllAppsInfoBarDropdownMenuQuery_facebookRelayOperation"),metadata:{},name:"DeveloperAllAppsInfoBarDropdownMenuQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
DeveloperAllAppsInfoBarDropdownMenuQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="8695093500615361"}),null);
-----
-----
DeveloperAllAppsInfoBarDropdownMenuQuery.graphql",["DeveloperAllAppsInfoBarDropdownMenuQuery_facebookRelayOperation"],(function(a,b,c,d,e,f){"use strict";a=function(){var a=[{defaultValue:null,kind:"LocalArgument",name:"appId"},{defaultValue:null,kind:"LocalArgument",name:"skip"}],c=[{kind:"Variable",name:"id",variableName:"appId"}],d={alias:null,args:null,kind:"ScalarField",name:"can_create_test_app",storageKey:null},e={alias:null,args:null,kind:"ScalarField",name:"can_remove",storageKey:null},f={alias:"can_archive",args:null,kind:"ScalarField",name:"is_viewer_admin",storageKey:null},g={alias:null,args:null,kind:"ScalarField",name:"is_archived",storageKey:null},h={alias:"is_pantheon_app",args:null,kind:"ScalarField",name:"is_in_use_cases",storageKey:null},i={alias:"app_id",args:null,kind:"ScalarField",name:"id",storageKey:null},j={alias:null,args:null,kind:"ScalarField",name:"name",storageKey:null},k={alias:null,args:null,kind:"ScalarField",name:"id",storageKey:null};return{fragment:{argumentDefinitions:a,kind:"Fragment",metadata:null,name:"DeveloperAllAppsInfoBarDropdownMenuQuery",selections:[{condition:"skip",kind:"Condition",passingValue:!1,selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{kind:"InlineFragment",selections:[d,e,f,g,h,{alias:null,args:null,concreteType:"Application",kind:"LinkedField",name:"child_apps",plural:!0,selections:[i,j],storageKey:null}],type:"Application",abstractKey:null}],storageKey:null}]}],type:"Query",abstractKey:null},kind:"Request",operation:{argumentDefinitions:a,kind:"Operation",name:"DeveloperAllAppsInfoBarDropdownMenuQuery",selections:[{condition:"skip",kind:"Condition",passingValue:!1,selections:[{alias:null,args:c,concreteType:null,kind:"LinkedField",name:"node",plural:!1,selections:[{alias:null,args:null,kind:"ScalarField",name:"__typename",storageKey:null},{kind:"InlineFragment",selections:[d,e,f,g,h,{alias:null,args:null,concreteType:"Application",kind:"LinkedField",name:"child_apps",plural:!0,selections:[i,j,k],storageKey:null}],type:"Application",abstractKey:null},k],storageKey:null}]}]},params:{id:b("DeveloperAllAppsInfoBarDropdownMenuQuery_facebookRelayOperation"),metadata:{},name:"DeveloperAllAppsInfoBarDropdownMenuQuery",operationKind:"query",text:null}}}();e.exports=a}),null);
-----
DeveloperAllAppsInfoBarDropdownMenuQuery_facebookRelayOperation",[],(function(a,b,c,d,e,f){e.exports="8695093500615361"}),null);
-----