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