{"version":3,"sources":["webpack:///./lib/logger/index.js","webpack:////build/source/ee/app/assets/javascripts/workspaces/common/services/calculate_display_state.js","webpack:////build/source/ee/app/assets/javascripts/workspaces/common/graphql/queries/get_project_details.query.graphql","webpack:////build/source/ee/app/assets/javascripts/workspaces/common/components/workspace_state_indicator.vue","webpack:///../../../ee/app/assets/javascripts/workspaces/common/components/workspace_state_indicator.vue","webpack:////build/source/ee/app/assets/javascripts/workspaces/common/components/workspace_state_indicator.vue?2b81","webpack:////build/source/ee/app/assets/javascripts/workspaces/common/components/workspace_state_indicator.vue?8927","webpack:////build/source/ee/app/assets/javascripts/workspaces/common/graphql/queries/get_remote_development_cluster_agents.query.graphql","webpack:////build/source/ee/app/assets/javascripts/workspaces/common/constants.js","webpack:////build/source/ee/app/assets/javascripts/workspaces/common/components/workspace_actions.vue","webpack:///../../../ee/app/assets/javascripts/workspaces/common/components/workspace_actions.vue","webpack:////build/source/ee/app/assets/javascripts/workspaces/common/components/workspace_actions.vue?5cd6","webpack:////build/source/ee/app/assets/javascripts/workspaces/common/components/workspace_actions.vue?907a","webpack:///../../../ee/app/assets/javascripts/workspaces/common/components/update_workspace_mutation.vue","webpack:////build/source/ee/app/assets/javascripts/workspaces/common/components/update_workspace_mutation.vue?f028","webpack:////build/source/ee/app/assets/javascripts/workspaces/common/components/update_workspace_mutation.vue","webpack:////build/source/ee/app/assets/javascripts/workspaces/common/graphql/fragments/workspace_item.fragment.graphql","webpack:////build/source/ee/app/assets/javascripts/workspaces/common/components/get_project_details_query.vue?96b5","webpack:///../../../ee/app/assets/javascripts/workspaces/common/components/get_project_details_query.vue","webpack:////build/source/ee/app/assets/javascripts/workspaces/common/components/get_project_details_query.vue","webpack:////build/source/ee/app/assets/javascripts/workspaces/common/graphql/mutations/workspace_update.mutation.graphql"],"names":["logError","message","args","console","error","calculateDisplayState","workspaceActualState","workspaceDesiredState","WORKSPACE_STATES","terminated","WORKSPACE_DESIRED_STATES","terminating","unknown","failed","includes","stopped","stopping","restartRequested","starting","running","creationRequested","doc","loc","source","definitionRefs","findOperation","name","i","definitions","length","element","value","forEach","def","refs","Set","collectFragmentReferences","node","kind","add","type","selectionSet","selections","selection","variableDefinitions","module","exports","operationName","newDoc","hasOwnProperty","opRefs","allRefs","newRefs","refName","size","prevRefs","has","childRef","op","push","oneQuery","i18n","labels","s__","stateLabel","STATE_TO_VARIANT","components","GlBadge","directives","GlTooltip","GlTooltipDirective","props","workspaceDisplayState","String","required","validator","Object","values","computed","iconName","iconLabel","variant","component","_c","this","_self","staticClass","attrs","_v","_s","_pick","I18N_LOADING_WORKSPACES_FAILED","WORKSPACES_LIST_PAGE_SIZE","WORKSPACES_LIST_POLL_INTERVAL","GET_WORKSPACE_STATE_INTERVAL","ACTIONS","key","isVisible","displayState","desiredState","title","extraAttrs","class","GlDisclosureDropdown","actions","_this","filter","map","id","_uniqueId","text","action","$emit","_vm","scopedSlots","_u","fn","item","_e","updateWorkspaceFailedMessage","methods","state","data","$apollo","mutate","mutation","workspaceUpdateMutation","variables","input","convertToGraphQLId","TYPE_WORKSPACE","errors","workspaceUpdate","e","render","$scopedSlots","default","update","staticRenderFns","projectFullPath","apollo","projectDetails","query","getProjectDetailsQuery","skip","result","project","nameWithNamespace","repository","group","rootRef","fullPath","clusterAgents","fetchRemoteDevelopmentClusterAgents","Array","isArray","namespace","_data$namespace","getRemoteDevelopmentClusterAgents","remoteDevelopmentClusterAgents","nodes","workspacesAgentConfig","defaultMaxHoursBeforeTermination","_this$$scopedSlots$de","_this$$scopedSlots","call"],"mappings":"2FAAA,kCACO,MAEMA,EAAW,SAACC,EAAU,MAAOC,GACxCC,QAAQC,MAHgB,WAGKH,EAAH,QAAmBC,K,kCCJ/C,kDAcO,MAAMG,EAAwB,SAACC,EAAsBC,GAK1D,OAAID,IAAyBE,IAAiBC,WACrCD,IAAiBC,WAOtBF,IAA0BG,IAAyBD,WAC9CD,IAAiBG,YASxBL,IAAyBC,GACzB,CACEC,IAAiBI,QACjBJ,IAAiBK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AAQb,IAAIkB,UAapB,OAPAN,EAAQnB,SAAQ,SAASqB,GACvB,IAAIK,EAAKjC,EAAcJ,EAAKgC,GACxBK,GACFV,EAAOpB,YAAY+B,KAAKD,MAIrBV,EAK+BY,CAASvC,EAAK","file":"105.c82720fa.chunk.js","sourcesContent":["/* eslint-disable no-console */\nexport const LOG_PREFIX = '[gitlab]';\n\nexport const logError = (message = '', ...args) => {\n console.error(LOG_PREFIX, `${message}\\n`, ...args);\n};\n","import { WORKSPACE_DESIRED_STATES, WORKSPACE_STATES } from '../constants';\n\n/**\n * Calculates a Workspace's displayState based on the Workspace's actualState and\n * desiredState. A \"displayState\" is a UI-specific state used by several components\n * in the User's Workspaces application to determine how to communicate a Workspace's state\n * and which actions are available in the UI.\n *\n * IMPLEMENTATION NOTE: The order of the rules implemented in this function matters.\n *\n * @param {String} workspaceActualState\n * @param {String} workspaceDesiredState\n * @returns {string}\n */\nexport const calculateDisplayState = (workspaceActualState, workspaceDesiredState) => {\n /**\n * 1st rule: The workspace is terminated. The workspace can't transition to other states\n * from this actual state therefore is final.\n */\n if (workspaceActualState === WORKSPACE_STATES.terminated) {\n return WORKSPACE_STATES.terminated;\n }\n\n /**\n * 2nd rule: The user wants to terminate the workspace. The user can't cancel the operation\n * and the workspace can't transition to other states after being terminated per the 1st rule.\n */\n if (workspaceDesiredState === WORKSPACE_DESIRED_STATES.terminated) {\n return WORKSPACE_STATES.terminating;\n }\n\n /**\n * 3rd rule: Actual state takes precedence over desired state when:\n * - The workspace's actual state and the workspaces's desired state are the same.\n * - The workspace's actual state is unknown, failed, error, or terminating.\n * */\n if (\n workspaceActualState === workspaceDesiredState ||\n [\n WORKSPACE_STATES.unknown,\n WORKSPACE_STATES.failed,\n WORKSPACE_STATES.error,\n WORKSPACE_STATES.terminating,\n ].includes(workspaceActualState)\n ) {\n return workspaceActualState;\n }\n\n /*\n * 4th rule: If the workspace's desired state is Stopped, we display that the Workspace is stopping.\n */\n if ([WORKSPACE_DESIRED_STATES.stopped].includes(workspaceDesiredState)) {\n return WORKSPACE_STATES.stopping;\n }\n\n /**\n * 5th rule: If the workspace's desired state is RestartRequested, we display that the Workspace is stopping\n * unless the workspace is already stopped. The backend stops a workspace when the desired state is RestartRequested\n * and, after the workspace is stopped, the backend will set desiredState to running\n * https://handbook.gitlab.com/handbook/engineering/architecture/design-documents/workspaces/#possible-desired_state-values\n */\n if (workspaceDesiredState === WORKSPACE_DESIRED_STATES.restartRequested) {\n return workspaceActualState === WORKSPACE_STATES.stopped\n ? WORKSPACE_STATES.starting\n : WORKSPACE_STATES.stopping;\n }\n\n /**\n * 6th rule: If the workspace's desired state is Running, display that the workspace is starting\n * unless the workspace actual space is CreationRequested because we want to display a \"Creating\" label.\n */\n if (\n workspaceDesiredState === WORKSPACE_DESIRED_STATES.running &&\n workspaceActualState !== WORKSPACE_STATES.creationRequested\n ) {\n return WORKSPACE_STATES.starting;\n }\n\n /**\n * If the rules above are not satisfied, it's safe to return the actual state.\n */\n return workspaceActualState;\n};\n","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"getProjectDetails\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"projectFullPath\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"project\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"fullPath\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"projectFullPath\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"nameWithNamespace\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"group\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"fullPath\"},\"arguments\":[],\"directives\":[]}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"repository\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"rootRef\"},\"arguments\":[],\"directives\":[]}]}}]}}]}}],\"loc\":{\"start\":0,\"end\":203}};\n doc.loc.source = {\"body\":\"query getProjectDetails($projectFullPath: ID!) {\\n project(fullPath: $projectFullPath) {\\n id\\n nameWithNamespace\\n group {\\n id\\n fullPath\\n }\\n repository {\\n rootRef\\n }\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"getProjectDetails\"] = oneQuery(doc, \"getProjectDetails\");\n \n","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('gl-badge',{staticClass:\"workspace-state-indicator\",attrs:{\"icon\":_vm.iconName,\"variant\":_vm.variant,\"data-testid\":\"workspace-state-indicator\",\"data-qa-title\":_vm.iconLabel}},[_vm._v(_vm._s(_vm.iconLabel))])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n {{ iconLabel }}\n\n","import mod from \"-!../../../../../../../node_modules/thread-loader/dist/cjs.js??ref--13-0!../../../../../../../node_modules/babel-loader/lib/index.js??ref--13-1!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./workspace_state_indicator.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../../../../node_modules/thread-loader/dist/cjs.js??ref--13-0!../../../../../../../node_modules/babel-loader/lib/index.js??ref--13-1!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./workspace_state_indicator.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./workspace_state_indicator.vue?vue&type=template&id=d01e76fc\"\nimport script from \"./workspace_state_indicator.vue?vue&type=script&lang=js\"\nexport * from \"./workspace_state_indicator.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"query\",\"name\":{\"kind\":\"Name\",\"value\":\"getRemoteDevelopmentClusterAgents\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"namespace\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"ID\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"namespace\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"fullPath\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"namespace\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"remoteDevelopmentClusterAgents\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"filter\"},\"value\":{\"kind\":\"EnumValue\",\"value\":\"AVAILABLE\"}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"nodes\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"project\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"nameWithNamespace\"},\"arguments\":[],\"directives\":[]}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"workspacesAgentConfig\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"defaultMaxHoursBeforeTermination\"},\"arguments\":[],\"directives\":[]}]}}]}}]}}]}}]}}],\"loc\":{\"start\":0,\"end\":383}};\n doc.loc.source = {\"body\":\"query getRemoteDevelopmentClusterAgents($namespace: ID!) {\\n namespace(fullPath: $namespace) {\\n id\\n remoteDevelopmentClusterAgents(filter: AVAILABLE) {\\n nodes {\\n id\\n name\\n project {\\n id\\n nameWithNamespace\\n }\\n workspacesAgentConfig {\\n id\\n defaultMaxHoursBeforeTermination\\n }\\n }\\n }\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"getRemoteDevelopmentClusterAgents\"] = oneQuery(doc, \"getRemoteDevelopmentClusterAgents\");\n \n","import { pick } from 'lodash';\nimport { s__ } from '~/locale';\n\n/* eslint-disable @gitlab/require-i18n-strings */\nexport const WORKSPACE_STATES = {\n creationRequested: 'CreationRequested',\n starting: 'Starting',\n running: 'Running',\n stopping: 'Stopping',\n stopped: 'Stopped',\n terminating: 'Terminating',\n terminated: 'Terminated',\n failed: 'Failed',\n error: 'Error',\n unknown: 'Unknown',\n};\n\nexport const WORKSPACE_DESIRED_STATES = {\n ...pick(WORKSPACE_STATES, 'running', 'stopped', 'terminated'),\n restartRequested: 'RestartRequested',\n};\n/* eslint-enable @gitlab/require-i18n-strings */\n\nexport const WORKSPACES_DROPDOWN_GROUP_PAGE_SIZE = 20;\n\nexport const I18N_LOADING_WORKSPACES_FAILED = s__(\n 'Workspaces|Unable to load current workspaces. Please try again or contact an administrator.',\n);\n\nexport const WORKSPACES_LIST_PAGE_SIZE = 10;\nexport const WORKSPACES_LIST_POLL_INTERVAL = 3000;\nexport const GET_WORKSPACE_STATE_INTERVAL = 1000;\n","var render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.actions.length > 0)?_c('gl-disclosure-dropdown',{attrs:{\"items\":_vm.actions,\"icon\":\"ellipsis_v\",\"toggle-text\":\"Actions\",\"text-sr-only\":\"\",\"category\":\"tertiary\",\"no-caret\":\"\",\"positioning-strategy\":\"fixed\",\"data-testid\":\"workspace-actions-dropdown\"},scopedSlots:_vm._u([{key:\"list-item\",fn:function({ item }){return [_c('span',{key:item.key,attrs:{\"id\":item.id,\"data-testid\":`workspace-${item.key}-button`}},[_vm._v(\"\\n \"+_vm._s(item.text)+\"\\n \")])]}}],null,false,3549335071)}):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n 0\"\n :items=\"actions\"\n icon=\"ellipsis_v\"\n toggle-text=\"Actions\"\n text-sr-only\n category=\"tertiary\"\n no-caret\n positioning-strategy=\"fixed\"\n data-testid=\"workspace-actions-dropdown\"\n >\n \n \n {{ item.text }}\n \n \n \n\n","import mod from \"-!../../../../../../../node_modules/thread-loader/dist/cjs.js??ref--13-0!../../../../../../../node_modules/babel-loader/lib/index.js??ref--13-1!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./workspace_actions.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../../../../node_modules/thread-loader/dist/cjs.js??ref--13-0!../../../../../../../node_modules/babel-loader/lib/index.js??ref--13-1!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./workspace_actions.vue?vue&type=script&lang=js\"","import { render, staticRenderFns } from \"./workspace_actions.vue?vue&type=template&id=43ef6dc0\"\nimport script from \"./workspace_actions.vue?vue&type=script&lang=js\"\nexport * from \"./workspace_actions.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n","import mod from \"-!../../../../../../../node_modules/thread-loader/dist/cjs.js??ref--13-0!../../../../../../../node_modules/babel-loader/lib/index.js??ref--13-1!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./update_workspace_mutation.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../../../../node_modules/thread-loader/dist/cjs.js??ref--13-0!../../../../../../../node_modules/babel-loader/lib/index.js??ref--13-1!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./update_workspace_mutation.vue?vue&type=script&lang=js\"","var render, staticRenderFns\nimport script from \"./update_workspace_mutation.vue?vue&type=script&lang=js\"\nexport * from \"./update_workspace_mutation.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"FragmentDefinition\",\"name\":{\"kind\":\"Name\",\"value\":\"WorkspaceItem\"},\"typeCondition\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"Workspace\"}},\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"name\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"namespace\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"projectId\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"desiredState\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"actualState\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"url\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"devfileRef\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"devfilePath\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"devfileWebUrl\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"maxHoursBeforeTermination\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"createdAt\"},\"arguments\":[],\"directives\":[]}]}}],\"loc\":{\"start\":0,\"end\":194}};\n doc.loc.source = {\"body\":\"fragment WorkspaceItem on Workspace {\\n id\\n name\\n namespace\\n projectId\\n desiredState\\n actualState\\n url\\n devfileRef\\n devfilePath\\n devfileWebUrl\\n maxHoursBeforeTermination\\n createdAt\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"WorkspaceItem\"] = oneQuery(doc, \"WorkspaceItem\");\n \n","import mod from \"-!../../../../../../../node_modules/thread-loader/dist/cjs.js??ref--13-0!../../../../../../../node_modules/babel-loader/lib/index.js??ref--13-1!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./get_project_details_query.vue?vue&type=script&lang=js\"; export default mod; export * from \"-!../../../../../../../node_modules/thread-loader/dist/cjs.js??ref--13-0!../../../../../../../node_modules/babel-loader/lib/index.js??ref--13-1!../../../../../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./get_project_details_query.vue?vue&type=script&lang=js\"","\n","var render, staticRenderFns\nimport script from \"./get_project_details_query.vue?vue&type=script&lang=js\"\nexport * from \"./get_project_details_query.vue?vue&type=script&lang=js\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports","\n var doc = {\"kind\":\"Document\",\"definitions\":[{\"kind\":\"OperationDefinition\",\"operation\":\"mutation\",\"name\":{\"kind\":\"Name\",\"value\":\"workspaceUpdate\"},\"variableDefinitions\":[{\"kind\":\"VariableDefinition\",\"variable\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}},\"type\":{\"kind\":\"NonNullType\",\"type\":{\"kind\":\"NamedType\",\"name\":{\"kind\":\"Name\",\"value\":\"WorkspaceUpdateInput\"}}},\"directives\":[]}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"workspaceUpdate\"},\"arguments\":[{\"kind\":\"Argument\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"},\"value\":{\"kind\":\"Variable\",\"name\":{\"kind\":\"Name\",\"value\":\"input\"}}}],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"workspace\"},\"arguments\":[],\"directives\":[],\"selectionSet\":{\"kind\":\"SelectionSet\",\"selections\":[{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"id\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"actualState\"},\"arguments\":[],\"directives\":[]},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"desiredState\"},\"arguments\":[],\"directives\":[]}]}},{\"kind\":\"Field\",\"name\":{\"kind\":\"Name\",\"value\":\"errors\"},\"arguments\":[],\"directives\":[]}]}}]}}],\"loc\":{\"start\":0,\"end\":178}};\n doc.loc.source = {\"body\":\"mutation workspaceUpdate($input: WorkspaceUpdateInput!) {\\n workspaceUpdate(input: $input) {\\n workspace {\\n id\\n actualState\\n desiredState\\n }\\n errors\\n }\\n}\\n\",\"name\":\"GraphQL request\",\"locationOffset\":{\"line\":1,\"column\":1}};\n \n\n var names = {};\n function unique(defs) {\n return defs.filter(\n function(def) {\n if (def.kind !== 'FragmentDefinition') return true;\n var name = def.name.value\n if (names[name]) {\n return false;\n } else {\n names[name] = true;\n return true;\n }\n }\n )\n }\n \n\n // Collect any fragment/type references from a node, adding them to the refs Set\n function collectFragmentReferences(node, refs) {\n if (node.kind === \"FragmentSpread\") {\n refs.add(node.name.value);\n } else if (node.kind === \"VariableDefinition\") {\n var type = node.type;\n if (type.kind === \"NamedType\") {\n refs.add(type.name.value);\n }\n }\n\n if (node.selectionSet) {\n node.selectionSet.selections.forEach(function(selection) {\n collectFragmentReferences(selection, refs);\n });\n }\n\n if (node.variableDefinitions) {\n node.variableDefinitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n\n if (node.definitions) {\n node.definitions.forEach(function(def) {\n collectFragmentReferences(def, refs);\n });\n }\n }\n\n var definitionRefs = {};\n (function extractReferences() {\n doc.definitions.forEach(function(def) {\n if (def.name) {\n var refs = new Set();\n collectFragmentReferences(def, refs);\n definitionRefs[def.name.value] = refs;\n }\n });\n })();\n\n function findOperation(doc, name) {\n for (var i = 0; i < doc.definitions.length; i++) {\n var element = doc.definitions[i];\n if (element.name && element.name.value == name) {\n return element;\n }\n }\n }\n\n function oneQuery(doc, operationName) {\n // Copy the DocumentNode, but clear out the definitions\n var newDoc = {\n kind: doc.kind,\n definitions: [findOperation(doc, operationName)]\n };\n if (doc.hasOwnProperty(\"loc\")) {\n newDoc.loc = doc.loc;\n }\n\n // Now, for the operation we're running, find any fragments referenced by\n // it or the fragments it references\n var opRefs = definitionRefs[operationName] || new Set();\n var allRefs = new Set();\n var newRefs = new Set();\n\n // IE 11 doesn't support \"new Set(iterable)\", so we add the members of opRefs to newRefs one by one\n opRefs.forEach(function(refName) {\n newRefs.add(refName);\n });\n\n while (newRefs.size > 0) {\n var prevRefs = newRefs;\n newRefs = new Set();\n\n prevRefs.forEach(function(refName) {\n if (!allRefs.has(refName)) {\n allRefs.add(refName);\n var childRefs = definitionRefs[refName] || new Set();\n childRefs.forEach(function(childRef) {\n newRefs.add(childRef);\n });\n }\n });\n }\n\n allRefs.forEach(function(refName) {\n var op = findOperation(doc, refName);\n if (op) {\n newDoc.definitions.push(op);\n }\n });\n\n return newDoc;\n }\n \n module.exports = doc;\n \n module.exports[\"workspaceUpdate\"] = oneQuery(doc, \"workspaceUpdate\");\n \n"],"sourceRoot":""}