diff --git a/assets/capi/capi-0.3.0.tgz b/assets/capi/capi-0.3.0.tgz new file mode 100644 index 0000000..099e6cb Binary files /dev/null and b/assets/capi/capi-0.3.0.tgz differ diff --git a/assets/index.yaml b/assets/index.yaml index e2ec355..73d8309 100644 --- a/assets/index.yaml +++ b/assets/index.yaml @@ -1,6 +1,27 @@ apiVersion: v1 entries: capi: + - annotations: + catalog.cattle.io/certified: rancher + catalog.cattle.io/display-name: CAPI UI + catalog.cattle.io/experimental: "true" + catalog.cattle.io/kube-version: '>= 1.16.0-0 < 1.29.0-0' + catalog.cattle.io/namespace: cattle-ui-plugin-system + catalog.cattle.io/os: linux + catalog.cattle.io/permits-os: linux, windows + catalog.cattle.io/rancher-version: '>= v2.8.0' + catalog.cattle.io/scope: management + catalog.cattle.io/ui-component: plugins + apiVersion: v2 + appVersion: 0.3.0 + created: "2024-03-14T22:51:54.106178297Z" + description: UI for CAPI cluster provisioning + digest: f9df66bfc9a861c49d0e59a72038644ac2fbe5e625b18ce783663d3740306c80 + name: capi + type: application + urls: + - assets/capi/capi-0.3.0.tgz + version: 0.3.0 - annotations: catalog.cattle.io/certified: rancher catalog.cattle.io/display-name: Rancher Turtles UI @@ -59,4 +80,4 @@ entries: urls: - assets/capi/capi-0.1.0.tgz version: 0.1.0 -generated: "2024-01-29T19:05:59.617047308Z" +generated: "2024-03-14T22:51:54.105437414Z" diff --git a/charts/capi/0.3.0/Chart.yaml b/charts/capi/0.3.0/Chart.yaml new file mode 100644 index 0000000..619754b --- /dev/null +++ b/charts/capi/0.3.0/Chart.yaml @@ -0,0 +1,17 @@ +annotations: + catalog.cattle.io/certified: rancher + catalog.cattle.io/kube-version: '>= 1.16.0-0 < 1.29.0-0' + catalog.cattle.io/namespace: cattle-ui-plugin-system + catalog.cattle.io/os: linux + catalog.cattle.io/permits-os: linux, windows + catalog.cattle.io/rancher-version: '>= v2.8.0' + catalog.cattle.io/scope: management + catalog.cattle.io/ui-component: plugins + catalog.cattle.io/display-name: CAPI UI + catalog.cattle.io/experimental: 'true' +apiVersion: v2 +appVersion: 0.3.0 +description: UI for CAPI cluster provisioning +name: capi +type: application +version: 0.3.0 diff --git a/charts/capi/0.3.0/templates/_helpers.tpl b/charts/capi/0.3.0/templates/_helpers.tpl new file mode 100644 index 0000000..bd2ec19 --- /dev/null +++ b/charts/capi/0.3.0/templates/_helpers.tpl @@ -0,0 +1,52 @@ +{{/* +Expand the name of the chart. +*/}} +{{- define "extension-server.name" -}} +{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Create a default fully qualified app name. +We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). +If release name contains chart name it will be used as a full name. +*/}} +{{- define "extension-server.fullname" -}} +{{- if .Values.fullnameOverride }} +{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }} +{{- else }} +{{- $name := default .Chart.Name .Values.nameOverride }} +{{- if contains $name .Release.Name }} +{{- .Release.Name | trunc 63 | trimSuffix "-" }} +{{- else }} +{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} +{{- end }} +{{- end }} +{{- end }} + + +{{/* +Create chart name and version as used by the chart label. +*/}} +{{- define "extension-server.chart" -}} +{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} +{{- end }} + +{{/* +Common labels +*/}} +{{- define "extension-server.labels" -}} +helm.sh/chart: {{ include "extension-server.chart" . }} +{{ include "extension-server.selectorLabels" . }} +{{- if .Chart.AppVersion }} +app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} +{{- end }} +app.kubernetes.io/managed-by: {{ .Release.Service }} +{{- end }} + +{{/* +Selector labels +*/}} +{{- define "extension-server.selectorLabels" -}} +app.kubernetes.io/name: {{ include "extension-server.name" . }} +app.kubernetes.io/instance: {{ .Release.Name }} +{{- end }} diff --git a/charts/capi/0.3.0/templates/cr.yaml b/charts/capi/0.3.0/templates/cr.yaml new file mode 100644 index 0000000..2325726 --- /dev/null +++ b/charts/capi/0.3.0/templates/cr.yaml @@ -0,0 +1,12 @@ +apiVersion: catalog.cattle.io/v1 +kind: UIPlugin +metadata: + name: {{ include "extension-server.fullname" . }} + namespace: {{ .Release.Namespace }} + labels: {{ include "extension-server.labels" . | nindent 4 }} +spec: + plugin: + name: {{ include "extension-server.fullname" . }} + version: {{ (semver (default .Chart.AppVersion .Values.plugin.versionOverride)).Original }} + endpoint: https://raw.githubusercontent.com/rancher/capi-ui-extension/gh-pages/extensions/capi/0.3.0 + noCache: {{ .Values.plugin.noCache }} diff --git a/charts/capi/0.3.0/values.yaml b/charts/capi/0.3.0/values.yaml new file mode 100644 index 0000000..9cc1bd5 --- /dev/null +++ b/charts/capi/0.3.0/values.yaml @@ -0,0 +1,6 @@ +nameOverride: "" +fullnameOverride: "" +plugin: + enabled: true + versionOverride: "" + noCache: false diff --git a/extensions/capi/0.3.0/files.txt b/extensions/capi/0.3.0/files.txt new file mode 100644 index 0000000..c16033c --- /dev/null +++ b/extensions/capi/0.3.0/files.txt @@ -0,0 +1,19 @@ +plugin/capi-0.3.0.umd.min.0.js +plugin/capi-0.3.0.umd.min.0.js.map +plugin/capi-0.3.0.umd.min.5.js +plugin/capi-0.3.0.umd.min.5.js.map +plugin/capi-0.3.0.umd.min.6.js +plugin/capi-0.3.0.umd.min.6.js.map +plugin/capi-0.3.0.umd.min.7.js +plugin/capi-0.3.0.umd.min.7.js.map +plugin/capi-0.3.0.umd.min.8.js +plugin/capi-0.3.0.umd.min.8.js.map +plugin/capi-0.3.0.umd.min.edit.js +plugin/capi-0.3.0.umd.min.edit.js.map +plugin/capi-0.3.0.umd.min.formatters.js +plugin/capi-0.3.0.umd.min.formatters.js.map +plugin/capi-0.3.0.umd.min.js +plugin/capi-0.3.0.umd.min.js.map +plugin/capi-0.3.0.umd.min.vendors~edit.js +plugin/capi-0.3.0.umd.min.vendors~edit.js.map +plugin/package.json diff --git a/extensions/capi/0.3.0/plugin/capi-0.3.0.umd.min.0.js b/extensions/capi/0.3.0/plugin/capi-0.3.0.umd.min.0.js new file mode 100644 index 0000000..8d2b89e --- /dev/null +++ b/extensions/capi/0.3.0/plugin/capi-0.3.0.umd.min.0.js @@ -0,0 +1,2 @@ +(("undefined"!==typeof self?self:this)["webpackJsonpcapi_0_3_0"]=("undefined"!==typeof self?self:this)["webpackJsonpcapi_0_3_0"]||[]).push([[0],{"46c7":function(e,n,a){"use strict";a.r(n);var t=function(){var e=this,n=e._self._c;e._self._setupProxy;return n("Banner",{attrs:{color:"warning","label-key":"capi.experimental"}})},l=[],s=a("8bbf"),r=a.n(s),i=a("eb32"),p=r.a.extend({name:"ExperimentalWarningBanner",components:{Banner:i["a"]}}),f=p,c=a("d802"),o=Object(c["a"])(f,t,l,!1,null,null,null);n["default"]=o.exports}}]); +//# sourceMappingURL=capi-0.3.0.umd.min.0.js.map \ No newline at end of file diff --git a/extensions/capi/0.3.0/plugin/capi-0.3.0.umd.min.0.js.map b/extensions/capi/0.3.0/plugin/capi-0.3.0.umd.min.0.js.map new file mode 100644 index 0000000..690ec1e --- /dev/null +++ b/extensions/capi/0.3.0/plugin/capi-0.3.0.umd.min.0.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack://capi-0.3.0/./components/ExperimentalBanner.vue","webpack://capi-0.3.0/./components/ExperimentalBanner.vue?d6b2","webpack://capi-0.3.0/./components/ExperimentalBanner.vue?96a8","webpack://capi-0.3.0/./components/ExperimentalBanner.vue?f39c"],"names":["render","_vm","this","_c","_self","_setupProxy","attrs","staticRenderFns","Vue","extend","name","components","Banner","component"],"mappings":"4LAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAOF,EAAG,SAAS,CAACG,MAAM,CAAC,MAAQ,UAAU,YAAY,wBAE9IC,EAAkB,G,iCCEPC,MAAIC,OAAO,CACxBC,KAAM,4BAENC,WAAY,CAAEC,iBCP6a,I,YCOzbC,EAAY,eACd,EACAb,EACAO,GACA,EACA,KACA,KACA,MAIa,aAAAM,E","file":"capi-0.3.0.umd.min.0.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('Banner',{attrs:{\"color\":\"warning\",\"label-key\":\"capi.experimental\"}})\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\nimport Vue from 'vue';\nimport Banner from '@components/Banner/Banner.vue';\n\nexport default Vue.extend({\n name: 'ExperimentalWarningBanner',\n\n components: { Banner },\n\n});\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./ExperimentalBanner.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./ExperimentalBanner.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ExperimentalBanner.vue?vue&type=template&id=7db387dc&\"\nimport script from \"./ExperimentalBanner.vue?vue&type=script&lang=ts&\"\nexport * from \"./ExperimentalBanner.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/cli-service/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"],"sourceRoot":""} \ No newline at end of file diff --git a/extensions/capi/0.3.0/plugin/capi-0.3.0.umd.min.5.js b/extensions/capi/0.3.0/plugin/capi-0.3.0.umd.min.5.js new file mode 100644 index 0000000..a8521e5 --- /dev/null +++ b/extensions/capi/0.3.0/plugin/capi-0.3.0.umd.min.5.js @@ -0,0 +1,2 @@ +(("undefined"!==typeof self?self:this)["webpackJsonpcapi_0_3_0"]=("undefined"!==typeof self?self:this)["webpackJsonpcapi_0_3_0"]||[]).push([[5],{"64c9":function(e,t,a){"use strict";a.r(t);var l=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[t("Checkbox",{attrs:{value:e.capiLabel,"label-key":"capi.autoImport.checkbox.label"},on:{input:e.toggleCapiLabel}},[t("br"),e._v(" "+e._s({...e.resource})+" ")])],1)},s=[],r=a("8bbf"),o=a.n(r),u=a("1032"),i=a("7e89"),n=o.a.extend({name:"CAPIAutoImportConfiguration",components:{Checkbox:u["a"]},props:{resource:{type:Object,required:!0},mode:{type:String,default:"create"}},methods:{toggleCapiLabel(e){e?this.$set(this.resource.metadata.labels,i["d"].AUTO_IMPORT,"true"):delete this.resource.metadata.labels[i["d"].AUTO_IMPORT]}},computed:{capiLabel(){var e;return"true"===(null===(e=this.resource)||void 0===e||null===(e=e.metadata.labels)||void 0===e?void 0:e[i["d"].AUTO_IMPORT])},labels(){return this.resource.labels}}}),c=n,p=a("d802"),d=Object(p["a"])(c,l,s,!1,null,null,null);t["default"]=d.exports}}]); +//# sourceMappingURL=capi-0.3.0.umd.min.5.js.map \ No newline at end of file diff --git a/extensions/capi/0.3.0/plugin/capi-0.3.0.umd.min.5.js.map b/extensions/capi/0.3.0/plugin/capi-0.3.0.umd.min.5.js.map new file mode 100644 index 0000000..18e6351 --- /dev/null +++ b/extensions/capi/0.3.0/plugin/capi-0.3.0.umd.min.5.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack://capi-0.3.0/./components/AutoImport.vue","webpack://capi-0.3.0/components/AutoImport.vue","webpack://capi-0.3.0/./components/AutoImport.vue?0138","webpack://capi-0.3.0/./components/AutoImport.vue?320f"],"names":["render","_vm","this","_c","_self","_setupProxy","attrs","capiLabel","on","toggleCapiLabel","_v","_s","resource","staticRenderFns","Vue","extend","name","components","Checkbox","props","type","Object","required","mode","String","default","methods","e","$set","metadata","labels","LABELS","AUTO_IMPORT","computed","_this$resource","component"],"mappings":"4LAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAOF,EAAG,MAAM,CAACA,EAAG,WAAW,CAACG,MAAM,CAAC,MAAQL,EAAIM,UAAU,YAAY,kCAAkCC,GAAG,CAAC,MAAQP,EAAIQ,kBAAkB,CAACN,EAAG,MAAMF,EAAIS,GAAG,IAAIT,EAAIU,GAAG,IAAIV,EAAIW,WAAW,QAAQ,IAEzRC,EAAkB,G,6CCGtBC,MAAAC,OAAA,CACAC,KAAA,8BAEAC,WAAA,CAAAC,iBAEAC,MAAA,CAEAP,SAAA,CACAQ,KAAAC,OACAC,UAAA,GAGAC,KAAA,CACAH,KAAAI,OACAC,QAAA,WAIAC,QAAA,CACAjB,gBAAAkB,GACAA,EACA,KAAAC,KAAA,KAAAhB,SAAAiB,SAAAC,OAAAC,OAAAC,YAAA,eAEA,KAAApB,SAAAiB,SAAAC,OAAAC,OAAAC,eAKAC,SAAA,CACA1B,YAAA,IAAA2B,EACA,wBAAAA,EAAA,KAAAtB,gBAAA,IAAAsB,GAAA,QAAAA,IAAAL,SAAAC,cAAA,IAAAI,OAAA,EAAAA,EAAAH,OAAAC,eAEAF,SACA,YAAAlB,SAAAkB,WCtCiY,I,YCO7XK,EAAY,eACd,EACAnC,EACAa,GACA,EACA,KACA,KACA,MAIa,aAAAsB,E","file":"capi-0.3.0.umd.min.5.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',[_c('Checkbox',{attrs:{\"value\":_vm.capiLabel,\"label-key\":\"capi.autoImport.checkbox.label\"},on:{\"input\":_vm.toggleCapiLabel}},[_c('br'),_vm._v(\" \"+_vm._s({..._vm.resource})+\" \")])],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./AutoImport.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./AutoImport.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./AutoImport.vue?vue&type=template&id=ea5d47f6&\"\nimport script from \"./AutoImport.vue?vue&type=script&lang=js&\"\nexport * from \"./AutoImport.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/cli-service/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"],"sourceRoot":""} \ No newline at end of file diff --git a/extensions/capi/0.3.0/plugin/capi-0.3.0.umd.min.6.js b/extensions/capi/0.3.0/plugin/capi-0.3.0.umd.min.6.js new file mode 100644 index 0000000..0e400e8 --- /dev/null +++ b/extensions/capi/0.3.0/plugin/capi-0.3.0.umd.min.6.js @@ -0,0 +1,2 @@ +(("undefined"!==typeof self?self:this)["webpackJsonpcapi_0_3_0"]=("undefined"!==typeof self?self:this)["webpackJsonpcapi_0_3_0"]||[]).push([[6],{deec:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e._self._c;return e.showWarning?t("Banner",{attrs:{color:"warning","label-key":"capi.warnings.embeddedFeatureFlag"}}):e._e()},n=[],r=a("907c"),l=a("eb32"),i=a("7e89"),c={name:"ClusterListCAPIWarning",components:{Banner:l["a"]},async fetch(){this.$store.getters["management/schemaFor"](r["l"].FEATURE)&&await this.$store.dispatch("management/findAll",{type:r["l"].FEATURE})},computed:{capiFeatureDisabled(){var e;const t=this.$store.getters["management/byId"](r["l"].FEATURE,"embedded-cluster-api");return t&&!(null!==t&&void 0!==t&&null!==(e=t.spec)&&void 0!==e&&e.value)},hasClusterClassSchema(){return!!this.$store.getters["management/schemaFor"](i["b"].CLUSTER_CLASS)},showWarning(){return this.capiFeatureDisabled&&!this.hasClusterClassSchema}}},u=c,o=a("d802"),d=Object(o["a"])(u,s,n,!1,null,null,null);t["default"]=d.exports}}]); +//# sourceMappingURL=capi-0.3.0.umd.min.6.js.map \ No newline at end of file diff --git a/extensions/capi/0.3.0/plugin/capi-0.3.0.umd.min.6.js.map b/extensions/capi/0.3.0/plugin/capi-0.3.0.umd.min.6.js.map new file mode 100644 index 0000000..ee6af5d --- /dev/null +++ b/extensions/capi/0.3.0/plugin/capi-0.3.0.umd.min.6.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack://capi-0.3.0/./components/ClusterListBanner.vue","webpack://capi-0.3.0/components/ClusterListBanner.vue","webpack://capi-0.3.0/./components/ClusterListBanner.vue?310b","webpack://capi-0.3.0/./components/ClusterListBanner.vue?cd38"],"names":["render","_vm","this","_c","_self","showWarning","attrs","_e","staticRenderFns","name","components","Banner","$store","getters","MANAGEMENT","FEATURE","dispatch","type","computed","capiFeatureDisabled","_capiFeature$spec","capiFeature","spec","value","hasClusterClassSchema","CAPI","CLUSTER_CLASS","component"],"mappings":"0LAAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAQF,EAAII,YAAaF,EAAG,SAAS,CAACG,MAAM,CAAC,MAAQ,UAAU,YAAY,uCAAuCL,EAAIM,MAE9KC,EAAkB,G,oCCGP,GACfC,KAAA,yBAEAC,WAAA,CAAAC,eAEA,cACA,KAAAC,OAAAC,QAAA,wBAAAC,OAAAC,gBACA,KAAAH,OAAAI,SAAA,sBAAAC,KAAAH,OAAAC,WAIAG,SAAA,CACAC,sBAAA,IAAAC,EACA,MAAAC,EAAA,KAAAT,OAAAC,QAAA,mBAAAC,OAAAC,QAAA,wBAEA,OAAAM,KAAA,OAAAA,QAAA,IAAAA,GAAA,QAAAD,EAAAC,EAAAC,YAAA,IAAAF,KAAAG,QAGAC,wBACA,aAAAZ,OAAAC,QAAA,wBAAAY,OAAAC,gBAEArB,cACA,YAAAc,sBAAA,KAAAK,yBC3BwY,I,YCOpYG,EAAY,eACd,EACA3B,EACAQ,GACA,EACA,KACA,KACA,MAIa,aAAAmB,E","file":"capi-0.3.0.umd.min.6.js","sourcesContent":["var render = function render(){var _vm=this,_c=_vm._self._c;return (_vm.showWarning)?_c('Banner',{attrs:{\"color\":\"warning\",\"label-key\":\"capi.warnings.embeddedFeatureFlag\"}}):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./ClusterListBanner.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./ClusterListBanner.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ClusterListBanner.vue?vue&type=template&id=76eac155&\"\nimport script from \"./ClusterListBanner.vue?vue&type=script&lang=js&\"\nexport * from \"./ClusterListBanner.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/cli-service/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"],"sourceRoot":""} \ No newline at end of file diff --git a/extensions/capi/0.3.0/plugin/capi-0.3.0.umd.min.7.js b/extensions/capi/0.3.0/plugin/capi-0.3.0.umd.min.7.js new file mode 100644 index 0000000..896823e --- /dev/null +++ b/extensions/capi/0.3.0/plugin/capi-0.3.0.umd.min.7.js @@ -0,0 +1,2 @@ +(("undefined"!==typeof self?self:this)["webpackJsonpcapi_0_3_0"]=("undefined"!==typeof self?self:this)["webpackJsonpcapi_0_3_0"]||[]).push([[7],{"7ada":function(e,t,n){(function(n){var o,a,i;(function(n,r){a=[],o=r,i="function"===typeof o?o.apply(t,a):o,void 0===i||(e.exports=i)})(0,(function(){"use strict";function t(e,t){return"undefined"==typeof t?t={autoBom:!1}:"object"!=typeof t&&(console.warn("Deprecated: Expected third argument to be a object"),t={autoBom:!t}),t.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob(["\ufeff",e],{type:e.type}):e}function o(e,t,n){var o=new XMLHttpRequest;o.open("GET",e),o.responseType="blob",o.onload=function(){c(o.response,t,n)},o.onerror=function(){console.error("could not download file")},o.send()}function a(e){var t=new XMLHttpRequest;t.open("HEAD",e,!1);try{t.send()}catch(e){}return 200<=t.status&&299>=t.status}function i(e){try{e.dispatchEvent(new MouseEvent("click"))}catch(o){var t=document.createEvent("MouseEvents");t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(t)}}var r="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof n&&n.global===n?n:void 0,c=r.saveAs||("object"!=typeof window||window!==r?function(){}:"download"in HTMLAnchorElement.prototype?function(e,t,n){var c=r.URL||r.webkitURL,s=document.createElement("a");t=t||e.name||"download",s.download=t,s.rel="noopener","string"==typeof e?(s.href=e,s.origin===location.origin?i(s):a(s.href)?o(e,t,n):i(s,s.target="_blank")):(s.href=c.createObjectURL(e),setTimeout((function(){c.revokeObjectURL(s.href)}),4e4),setTimeout((function(){i(s)}),0))}:"msSaveOrOpenBlob"in navigator?function(e,n,r){if(n=n||e.name||"download","string"!=typeof e)navigator.msSaveOrOpenBlob(t(e,r),n);else if(a(e))o(e,n,r);else{var c=document.createElement("a");c.href=e,c.target="_blank",setTimeout((function(){i(c)}))}}:function(e,t,n,a){if(a=a||open("","_blank"),a&&(a.document.title=a.document.body.innerText="downloading..."),"string"==typeof e)return o(e,t,n);var i="application/octet-stream"===e.type,c=/constructor/i.test(r.HTMLElement)||r.safari,s=/CriOS\/[\d]+/.test(navigator.userAgent);if((s||i&&c)&&"object"==typeof FileReader){var l=new FileReader;l.onloadend=function(){var e=l.result;e=s?e:e.replace(/^data:[^;]*;/,"data:attachment/file;"),a?a.location.href=e:location=e,a=null},l.readAsDataURL(e)}else{var f=r.URL||r.webkitURL,u=f.createObjectURL(e);a?a.location=u:location.href=u,a=null,setTimeout((function(){f.revokeObjectURL(u)}),4e4)}});r.saveAs=c.saveAs=c,e.exports=c}))}).call(this,n("7d15"))}}]); +//# sourceMappingURL=capi-0.3.0.umd.min.7.js.map \ No newline at end of file diff --git a/extensions/capi/0.3.0/plugin/capi-0.3.0.umd.min.7.js.map b/extensions/capi/0.3.0/plugin/capi-0.3.0.umd.min.7.js.map new file mode 100644 index 0000000..646c8a3 --- /dev/null +++ b/extensions/capi/0.3.0/plugin/capi-0.3.0.umd.min.7.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack://capi-0.3.0//home/runner/work/capi-ui-extension/capi-ui-extension/node_modules/file-saver/dist/FileSaver.min.js"],"names":["this","b","a","autoBom","console","warn","test","type","Blob","c","d","e","XMLHttpRequest","open","responseType","onload","response","onerror","error","send","status","dispatchEvent","MouseEvent","document","createEvent","initMouseEvent","window","f","self","global","saveAs","HTMLAnchorElement","prototype","g","h","i","URL","webkitURL","j","createElement","name","download","rel","href","origin","location","target","createObjectURL","setTimeout","revokeObjectURL","navigator","msSaveOrOpenBlob","title","body","innerText","HTMLElement","safari","userAgent","FileReader","onloadend","result","replace","readAsDataURL","k","l","module","exports"],"mappings":"yKAAA,qCAAwD,EAAO,GAAE,IAAE,kEAAnE,CAA0JA,GAAK,WAAW,aAAa,SAASC,EAAEC,EAAED,GAAG,MAAM,oBAAoBA,EAAEA,EAAE,CAACE,SAAQ,GAAI,iBAAiBF,IAAIG,QAAQC,KAAK,sDAAsDJ,EAAE,CAACE,SAASF,IAAIA,EAAEE,SAAS,6EAA6EG,KAAKJ,EAAEK,MAAM,IAAIC,KAAK,CAAC,SAASN,GAAG,CAACK,KAAKL,EAAEK,OAAOL,EAAE,SAASO,EAAER,EAAEQ,EAAEC,GAAG,IAAIC,EAAE,IAAIC,eAAeD,EAAEE,KAAK,MAAMZ,GAAGU,EAAEG,aAAa,OAAOH,EAAEI,OAAO,WAAWb,EAAES,EAAEK,SAASP,EAAEC,IAAIC,EAAEM,QAAQ,WAAWb,QAAQc,MAAM,4BAA4BP,EAAEQ,OAAO,SAAST,EAAER,GAAG,IAAID,EAAE,IAAIW,eAAeX,EAAEY,KAAK,OAAOX,GAAE,GAAI,IAAID,EAAEkB,OAAO,MAAMjB,IAAI,OAAO,KAAKD,EAAEmB,QAAQ,KAAKnB,EAAEmB,OAAO,SAAST,EAAET,GAAG,IAAIA,EAAEmB,cAAc,IAAIC,WAAW,UAAU,MAAMb,GAAG,IAAIR,EAAEsB,SAASC,YAAY,eAAevB,EAAEwB,eAAe,SAAQ,GAAG,EAAGC,OAAO,EAAE,EAAE,EAAE,GAAG,IAAG,GAAG,GAAG,GAAG,EAAG,EAAE,MAAMxB,EAAEmB,cAAcpB,IAAI,IAAI0B,EAAE,iB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B/B,EAAEK,KAAK2B,EAAE,eAAe5B,KAAKqB,EAAE4B,cAAc5B,EAAE6B,OAAOrB,EAAE,eAAe7B,KAAK4C,UAAUO,WAAW,IAAItB,GAAGF,GAAGC,IAAI,iBAAiBwB,WAAW,CAAC,IAAIpB,EAAE,IAAIoB,WAAWpB,EAAEqB,UAAU,WAAW,IAAIzD,EAAEoC,EAAEsB,OAAO1D,EAAEiC,EAAEjC,EAAEA,EAAE2D,QAAQ,eAAe,yBAAyBlD,EAAEA,EAAEkC,SAASF,KAAKzC,EAAE2C,SAAS3C,EAAES,EAAE,MAAM2B,EAAEwB,cAAc5D,OAAO,CAAC,IAAI6D,EAAEpC,EAAES,KAAKT,EAAEU,UAAU2B,EAAED,EAAEhB,gBAAgB7C,GAAGS,EAAEA,EAAEkC,SAASmB,EAAEnB,SAASF,KAAKqB,EAAErD,EAAE,KAAKqC,YAAW,WAAWe,EAAEd,gBAAgBe,KAAI,QAAQrC,EAAEG,OAAO5B,EAAE4B,OAAO5B,EAA+B+D,EAAOC,QAAQhE,O","file":"capi-0.3.0.umd.min.7.js","sourcesContent":["(function(a,b){if(\"function\"==typeof define&&define.amd)define([],b);else if(\"undefined\"!=typeof exports)b();else{b(),a.FileSaver={exports:{}}.exports}})(this,function(){\"use strict\";function b(a,b){return\"undefined\"==typeof b?b={autoBom:!1}:\"object\"!=typeof b&&(console.warn(\"Deprecated: Expected third argument to be a object\"),b={autoBom:!b}),b.autoBom&&/^\\s*(?:text\\/\\S*|application\\/xml|\\S*\\/\\S*\\+xml)\\s*;.*charset\\s*=\\s*utf-8/i.test(a.type)?new Blob([\"\\uFEFF\",a],{type:a.type}):a}function c(b,c,d){var e=new XMLHttpRequest;e.open(\"GET\",b),e.responseType=\"blob\",e.onload=function(){a(e.response,c,d)},e.onerror=function(){console.error(\"could not download file\")},e.send()}function d(a){var b=new XMLHttpRequest;b.open(\"HEAD\",a,!1);try{b.send()}catch(a){}return 200<=b.status&&299>=b.status}function e(a){try{a.dispatchEvent(new MouseEvent(\"click\"))}catch(c){var b=document.createEvent(\"MouseEvents\");b.initMouseEvent(\"click\",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),a.dispatchEvent(b)}}var f=\"object\"==typeof window&&window.window===window?window:\"object\"==typeof self&&self.self===self?self:\"object\"==typeof global&&global.global===global?global:void 0,a=f.saveAs||(\"object\"!=typeof window||window!==f?function(){}:\"download\"in HTMLAnchorElement.prototype?function(b,g,h){var i=f.URL||f.webkitURL,j=document.createElement(\"a\");g=g||b.name||\"download\",j.download=g,j.rel=\"noopener\",\"string\"==typeof b?(j.href=b,j.origin===location.origin?e(j):d(j.href)?c(b,g,h):e(j,j.target=\"_blank\")):(j.href=i.createObjectURL(b),setTimeout(function(){i.revokeObjectURL(j.href)},4E4),setTimeout(function(){e(j)},0))}:\"msSaveOrOpenBlob\"in navigator?function(f,g,h){if(g=g||f.name||\"download\",\"string\"!=typeof f)navigator.msSaveOrOpenBlob(b(f,h),g);else if(d(f))c(f,g,h);else{var i=document.createElement(\"a\");i.href=f,i.target=\"_blank\",setTimeout(function(){e(i)})}}:function(a,b,d,e){if(e=e||open(\"\",\"_blank\"),e&&(e.document.title=e.document.body.innerText=\"downloading...\"),\"string\"==typeof a)return c(a,b,d);var g=\"application/octet-stream\"===a.type,h=/constructor/i.test(f.HTMLElement)||f.safari,i=/CriOS\\/[\\d]+/.test(navigator.userAgent);if((i||g&&h)&&\"object\"==typeof FileReader){var j=new FileReader;j.onloadend=function(){var a=j.result;a=i?a:a.replace(/^data:[^;]*;/,\"data:attachment/file;\"),e?e.location.href=a:location=a,e=null},j.readAsDataURL(a)}else{var k=f.URL||f.webkitURL,l=k.createObjectURL(a);e?e.location=l:location.href=l,e=null,setTimeout(function(){k.revokeObjectURL(l)},4E4)}});f.saveAs=a.saveAs=a,\"undefined\"!=typeof module&&(module.exports=a)});\n\n//# sourceMappingURL=FileSaver.min.js.map"],"sourceRoot":""} \ No newline at end of file diff --git a/extensions/capi/0.3.0/plugin/capi-0.3.0.umd.min.8.js b/extensions/capi/0.3.0/plugin/capi-0.3.0.umd.min.8.js new file mode 100644 index 0000000..e8346ed --- /dev/null +++ b/extensions/capi/0.3.0/plugin/capi-0.3.0.umd.min.8.js @@ -0,0 +1,2 @@ +(("undefined"!==typeof self?self:this)["webpackJsonpcapi_0_3_0"]=("undefined"!==typeof self?self:this)["webpackJsonpcapi_0_3_0"]||[]).push([[8],{"1bb6":function(e,t){const n=[{action:{createCluster:"Create Cluster"},capi:{installation:{title:"Rancher Turtles",description:"The Rancher Turtles operator allows users to import CAPI-provisioned clusters into Rancher.",disableFeatureFlag:'The embedded-cluster-api feature flag must be disabled before installing the CAPI Turtles extension. Follow instructions in the documentation here to do so.',turtlesNeeded:'Either the user doesn\'t have permission to run the Turtles extension or the Turtles operator isn\'t installed. To learn how to install the Rancher Turtles extension, read the documentation.'},autoImport:{label:"CAPI Auto-Import",checkbox:{label:"Automatically import CAPI clusters created in this namespace"},enableAction:"Enable CAPI Auto-Import",disableAction:"Disable CAPI Auto-Import"},warnings:{embeddedFeatureFlag:"It looks like the Rancher-managed cluster API feature is disabled. To provision and manage RKE2 clusters you must either enable the embedded-cluster-api feature flag or install the Rancher Turtles extension."},cluster:{steps:{clusterClass:{title:"Cluster Class",label:"Cluster Class",subtext:null,description:""},configuration:{title:"Configuration",label:"Configuration",subtext:null,description:""},variables:{title:"Variables",label:"Variables",subtext:null,description:""}},secret:{reuse:"Use existing credential",create:"Create new credential"},controlPlane:{title:"Control Plane Options",provisioner:"Type"},providerConfig:{title:"Infrastructure"},clusterClass:{title:"Cluster Class",label:"Cluster Class",description:"Cluster Class Description"},variables:{title:"Variables"},version:{title:"Kubernetes Version"},networking:{title:"Networking",apiServerPort:"API Server Port",serviceDomain:"Service Domain",pods:"Pod CIDR Blocks",services:"Service VIP CIDR Blocks"},controlPlaneEndpoint:{title:"Control Plane Endpoint",host:"Host",port:"Port"},workers:{title:"Workers",class:"Class",name:"Name",machineDeployments:{title:"Machine Deployments"},machinePools:{title:"Machine Pools"}}},clusterClassCard:{title:"Cluster Class Name: {name}",controlPlaneName:"Control Plane Name",controlPlaneKind:"Control Plane Kind",controlPlaneNamespace:"Control Plane Namespace",machineDeploymentsCount:"{count, plural,\n one {{count} Machine Deployment }\n other {{count} Machine Deployments }\n}",machinePoolsCount:"{count, plural,\n one {{count} Machine Pool }\n other {{count} Machine Pools }\n}"},experimental:"The Rancher CAPI UI extension is experimental and is not currently supported."},nav:{group:{CAPITurtles:"CAPI"}},typeLabel:{"operator.cluster.x-k8s.io.infrastructureprovider":"{count, plural,\n one { Infrastructure Provider }\n other { Infrastructure Providers }\n}","cluster.x-k8s.io.machineset":"{count, plural,\n one { Machine Set}\n other { Machine Sets }\n}","cluster.x-k8s.io.machinedeployment":"{count, plural,\n one { Machine Deployment}\n other { Machine Deployments }\n}","cluster.x-k8s.io.clusterclass":"{count, plural,\n one { Cluster Class}\n other { Cluster Classes}\n}"},validation:{exclusiveMaxValue:'"{key}" must be less than {maximum}.',exclusiveMinValue:'"{key}" must be greater than {minimum}.',maxItems:'{maxItems, plural,\n one {"{key}" may contain no more than {maxItems} item.}\n other {"{key}" may contain no more than {maxItems} items.}\n}',minItems:'{minItems, plural,\n one {"{key}" must contain at least {minItems} item.}\n other {"{key}" must contain at least {minItems} items.}\n}',pattern:'"{key}" must match the pattern {pattern}.',stringFormat:'"{key}" must be a valid {format}.',uniqueItems:'"{key}" may not contain duplicate elements.',version:"Version format must match format for this provisioner.",name:"Name is required.",port:"Port value must be a number."},error:{clusterClassNotFound:"Could not find corresponding cluster class. Please check that cluster class exists and is valid."}}];e.exports=n.length<=1?n[0]:n}}]); +//# sourceMappingURL=capi-0.3.0.umd.min.8.js.map \ No newline at end of file diff --git a/extensions/capi/0.3.0/plugin/capi-0.3.0.umd.min.8.js.map b/extensions/capi/0.3.0/plugin/capi-0.3.0.umd.min.8.js.map new file mode 100644 index 0000000..c4483ea --- /dev/null +++ b/extensions/capi/0.3.0/plugin/capi-0.3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AAY,CAAE,mDAAmD,8FAA+F,8BAA8B,qEAAsE,qCAAqC,mFAAoF,gCAAgC,0EAA4E,WAAa,CAAE,kBAAoB,uCAA0C,kBAAoB,0CAA6C,SAAW,iJAAsJ,SAAW,2IAAgJ,QAAU,yDAA4D,aAAe,oCAAuC,YAAc,8CAAiD,QAAU,yDAA0D,KAAO,oBAAqB,KAAO,gCAAkC,MAAQ,CAAE,qBAAuB,sGACv9IC,EAAOC,QAAUF,EAAIG,QAAU,EAAIH,EAAI,GAAKA","file":"capi-0.3.0.umd.min.8.js","sourcesContent":["const doc = [({\"action\":({\"createCluster\":\"Create Cluster\"}), \"capi\":({\"installation\":({\"title\":\"Rancher Turtles\", \"description\":\"The Rancher Turtles operator allows users to import CAPI-provisioned clusters into Rancher.\", \"disableFeatureFlag\":\"The embedded-cluster-api feature flag must be disabled before installing the CAPI Turtles extension. Follow instructions in the documentation here to do so.\", \"turtlesNeeded\":\"Either the user doesn't have permission to run the Turtles extension or the Turtles operator isn't installed. To learn how to install the Rancher Turtles extension, read the documentation.\"}), \"autoImport\":({\"label\":\"CAPI Auto-Import\", \"checkbox\":({\"label\":\"Automatically import CAPI clusters created in this namespace\"}), \"enableAction\":\"Enable CAPI Auto-Import\", \"disableAction\":\"Disable CAPI Auto-Import\"}), \"warnings\":({\"embeddedFeatureFlag\":\"It looks like the Rancher-managed cluster API feature is disabled. To provision and manage RKE2 clusters you must either enable the embedded-cluster-api feature flag or install the Rancher Turtles extension.\"}), \"cluster\":({\"steps\":({\"clusterClass\":({\"title\":\"Cluster Class\", \"label\":\"Cluster Class\", \"subtext\":null, \"description\":\"\"}), \"configuration\":({\"title\":\"Configuration\", \"label\":\"Configuration\", \"subtext\":null, \"description\":\"\"}), \"variables\":({\"title\":\"Variables\", \"label\":\"Variables\", \"subtext\":null, \"description\":\"\"})}), \"secret\":({\"reuse\":\"Use existing credential\", \"create\":\"Create new credential\"}), \"controlPlane\":({\"title\":\"Control Plane Options\", \"provisioner\":\"Type\"}), \"providerConfig\":({\"title\":\"Infrastructure\"}), \"clusterClass\":({\"title\":\"Cluster Class\", \"label\":\"Cluster Class\", \"description\":\"Cluster Class Description\"}), \"variables\":({\"title\":\"Variables\"}), \"version\":({\"title\":\"Kubernetes Version\"}), \"networking\":({\"title\":\"Networking\", \"apiServerPort\":\"API Server Port\", \"serviceDomain\":\"Service Domain\", \"pods\":\"Pod CIDR Blocks\", \"services\":\"Service VIP CIDR Blocks\"}), \"controlPlaneEndpoint\":({\"title\":\"Control Plane Endpoint\", \"host\":\"Host\", \"port\":\"Port\"}), \"workers\":({\"title\":\"Workers\", \"class\":\"Class\", \"name\":\"Name\", \"machineDeployments\":({\"title\":\"Machine Deployments\"}), \"machinePools\":({\"title\":\"Machine Pools\"})})}), \"clusterClassCard\":({\"title\":\"Cluster Class Name: {name}\", \"controlPlaneName\":\"Control Plane Name\", \"controlPlaneKind\":\"Control Plane Kind\", \"controlPlaneNamespace\":\"Control Plane Namespace\", \"machineDeploymentsCount\":\"{count, plural,\\n one {{count} Machine Deployment }\\n other {{count} Machine Deployments }\\n}\", \"machinePoolsCount\":\"{count, plural,\\n one {{count} Machine Pool }\\n other {{count} Machine Pools }\\n}\"}), \"experimental\":\"The Rancher CAPI UI extension is experimental and is not currently supported.\"}), \"nav\":({\"group\":({\"CAPITurtles\":\"CAPI\"})}), \"typeLabel\":({\"operator.cluster.x-k8s.io.infrastructureprovider\":\"{count, plural,\\n one { Infrastructure Provider }\\n other { Infrastructure Providers }\\n}\", \"cluster.x-k8s.io.machineset\":\"{count, plural,\\n one { Machine Set}\\n other { Machine Sets }\\n}\", \"cluster.x-k8s.io.machinedeployment\":\"{count, plural,\\n one { Machine Deployment}\\n other { Machine Deployments }\\n}\", \"cluster.x-k8s.io.clusterclass\":\"{count, plural,\\n one { Cluster Class}\\n other { Cluster Classes}\\n}\"}), \"validation\":({\"exclusiveMaxValue\":\"\\\"{key}\\\" must be less than {maximum}.\", \"exclusiveMinValue\":\"\\\"{key}\\\" must be greater than {minimum}.\", \"maxItems\":\"{maxItems, plural,\\n one {\\\"{key}\\\" may contain no more than {maxItems} item.}\\n other {\\\"{key}\\\" may contain no more than {maxItems} items.}\\n}\", \"minItems\":\"{minItems, plural,\\n one {\\\"{key}\\\" must contain at least {minItems} item.}\\n other {\\\"{key}\\\" must contain at least {minItems} items.}\\n}\", \"pattern\":\"\\\"{key}\\\" must match the pattern {pattern}.\", \"stringFormat\":\"\\\"{key}\\\" must be a valid {format}.\", \"uniqueItems\":\"\\\"{key}\\\" may not contain duplicate elements.\", \"version\":\"Version format must match format for this provisioner.\", \"name\":\"Name is required.\", \"port\":\"Port value must be a number.\"}), \"error\":({\"clusterClassNotFound\":\"Could not find corresponding cluster class. Please check that cluster class exists and is valid.\"})})];\nmodule.exports = doc.length <= 1 ? doc[0] : doc;"],"sourceRoot":""} \ No newline at end of file diff --git a/extensions/capi/0.3.0/plugin/capi-0.3.0.umd.min.edit.js b/extensions/capi/0.3.0/plugin/capi-0.3.0.umd.min.edit.js new file mode 100644 index 0000000..1b77c2d --- /dev/null +++ b/extensions/capi/0.3.0/plugin/capi-0.3.0.umd.min.edit.js @@ -0,0 +1,2 @@ +(("undefined"!==typeof self?self:this)["webpackJsonpcapi_0_3_0"]=("undefined"!==typeof self?self:this)["webpackJsonpcapi_0_3_0"]||[]).push([[2],{"2ea8":function(e,t,a){"use strict";a("471a")},"330a3":function(e,t,a){"use strict";a("f359")},"3eff":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[t("div",{staticClass:"row mb-20"},[t("div",{staticClass:"col span-3"},[t("LabeledInput",{attrs:{value:e.apiServerPort,mode:e.mode,disabled:e.clusterIsAlreadyCreated,label:e.t("capi.cluster.networking.apiServerPort"),rules:e.rules.apiServerPort,required:""},on:{input:function(t){return e.$emit("api-server-port-changed",t)}}})],1),t("div",{staticClass:"col span-3"},[t("LabeledInput",{attrs:{value:e.serviceDomain,mode:e.mode,disabled:e.clusterIsAlreadyCreated,label:e.t("capi.cluster.networking.serviceDomain"),rules:e.rules.serviceDomain},on:{input:function(t){return e.$emit("service-domain-changed",t)}}})],1)]),t("div",{staticClass:"row mb-20"},[t("div",{staticClass:"col span-3"},[t("ArrayList",{attrs:{value:e.podsCidrBlocks,protip:!1,mode:e.mode,title:e.t("capi.cluster.networking.pods"),rules:e.rules.pods},on:{input:function(t){return e.$emit("pods-cidr-blocks-changed",t)}}})],1),t("div",{staticClass:"col span-3"},[t("ArrayList",{attrs:{value:e.servicesCidrBlocks,protip:!1,mode:e.mode,title:e.t("capi.cluster.networking.services"),rules:e.rules.services},on:{input:function(t){return e.$emit("services-cidr-blocks-changed",t)}}})],1)])])},l=[],r=a("8bbf"),i=a.n(r),o=a("9ce4"),n=a("da25"),c=a("977f"),d=a("e26b"),u=i.a.extend({components:{LabeledInput:d["a"],ArrayList:c["a"]},props:{value:{type:Object,required:!0},mode:{type:String,required:!0},rules:{default:()=>({serviceDomain:[],apiServerPort:[],pods:[],services:[]}),type:Object}},computed:{...Object(o["a"])({t:"i18n/t"}),clusterIsAlreadyCreated(){return this.mode===n["n"]},apiServerPort(){var e;return null===(e=this.value)||void 0===e?void 0:e.apiServerPort},serviceDomain(){var e;return null===(e=this.value)||void 0===e?void 0:e.serviceDomain},podsCidrBlocks(){var e;return null===(e=this.value)||void 0===e||null===(e=e.pods)||void 0===e?void 0:e.cidrBlocks},servicesCidrBlocks(){var e;return null===(e=this.value)||void 0===e||null===(e=e.services)||void 0===e?void 0:e.cidrBlocks}}}),v=u,p=a("d802"),m=Object(p["a"])(v,s,l,!1,null,null,null);t["default"]=m.exports},4369:function(e,t,a){var s=a("5eaa");t=s(!1),t.push([e.i,".label[data-v-7407ec5d]{display:flex;flex-direction:column;margin-bottom:10px}.label .text-label[data-v-7407ec5d]{font-size:12px;line-height:18px;color:var(--darker)}.label .value[data-v-7407ec5d]{line-height:18px}",""]),e.exports=t},"471a":function(e,t,a){var s=a("653f");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var l=a("0ed3").default;l("3bfc8dc4",s,!0,{sourceMap:!1,shadowMode:!1})},"4774b":function(e,t,a){"use strict";a("f954")},"4c7b":function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[e.title?t("div",{staticClass:"clearfix"},[e._t("title",(function(){return[t("h3",[e._v(" "+e._s(e.title)+" ")])]}))],2):e._e(),e.rows.length?e._l(e.rows,(function(a,s){return t("div",{key:s,staticClass:"box",attrs:{"data-testid":"array-list-box"+s}},[e._t("columns",(function(){return[t("div",{staticClass:"value"},[e._t("value",(function(){return[t("div",{staticClass:"col mt-20"},[t("LabeledInput",{ref:"value",refInFor:!0,attrs:{mode:e.mode,disabled:!1,label:e.t("capi.cluster.workers.name")},model:{value:a.value.name,callback:function(t){e.$set(a.value,"name",t)},expression:"row.value.name"}})],1),t("div",{staticClass:"col mt-20"},[t("LabeledSelect",{attrs:{mode:e.mode,options:e.classOptions,"label-key":"capi.cluster.workers.class"},model:{value:a.value.class,callback:function(t){e.$set(a.value,"class",t)},expression:"row.value.class"}})],1)]}),{row:a,mode:e.mode,isView:e.isView,queueUpdate:e.queueUpdate}),e.removeAllowed?t("div",{staticClass:"remove"},[e._t("remove-button",(function(){return[t("button",{staticClass:"btn role-link",attrs:{type:"button",disabled:e.isView,"data-testid":"remove-item-"+s},on:{click:function(t){return e.remove(a,s)}}},[e._v(" "+e._s(e.removeLabel)+" ")])]}),{remove:()=>e.remove(a,s),i:s,row:a})],2):e._e()],2)]}),{queueUpdate:e.queueUpdate,i:s,rows:e.rows,row:a,mode:e.mode,isView:e.isView})],2)})):"view"===e.mode?t("div",{staticClass:"text-muted"},[e._v(" — ")]):t("div",[e._t("empty")],2),e.addAllowed&&!e.isView?t("div",{staticClass:"footer"},[e.addAllowed?e._t("add",(function(){return[t("button",{staticClass:"btn role-tertiary add",attrs:{type:"button",disabled:e.loading,"data-testid":"array-list-button"},on:{click:function(t){return e.add()}}},[e.loading?t("i",{staticClass:"mr-5 icon icon-spinner icon-spin icon-lg"}):e._e(),e._v(" "+e._s(e.addLabel)+" ")])]}),{add:e.add}):e._e()],2):e._e()],2)},l=[],r=a("8bbf"),i=a.n(r),o=a("44db"),n=a.n(o),c=a("bddd"),d=a("e24b"),u=a("da25"),v=a("466b"),p=a("e26b"),m=i.a.extend({components:{LabeledSelect:v["a"],LabeledInput:p["a"]},props:{value:{type:Array,default:null},mode:{type:String,default:u["n"]},title:{type:String,required:!0},classOptions:{type:Array,default:null},addAllowed:{type:Boolean,default:!0},removeAllowed:{type:Boolean,default:!0},defaultAddValue:{type:[String,Number,Object,Array],default:""},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},data(){const e=(this.value||[]).slice(),t=[];for(const a of e)t.push({value:a});if(!t.length){const e=this.defaultAddValue?Object(d["e"])(this.defaultAddValue):"";t.push({value:e})}return{rows:t,lastUpdateWasFromValue:!1}},computed:{isView(){return this.mode===u["r"]},removeLabel(){return this.$store.getters["i18n/t"]("generic.remove")},addLabel(){return this.$store.getters["i18n/t"]("generic.add")}},watch:{value(){this.lastUpdateWasFromValue=!0,this.rows=(this.value||[]).map(e=>({value:e}))},rows:{deep:!0,handler(){this.lastUpdateWasFromValue||this.queueUpdate(),this.lastUpdateWasFromValue=!1}}},created(){this.queueUpdate=n()(this.update,50)},methods:{add(){this.rows.push({value:Object(d["e"])(this.defaultAddValue)}),this.defaultAddValue&&this.queueUpdate(),this.$nextTick(()=>{const e=this.$refs.value;e&&e.length>0&&e[e.length-1].focus(),this.$emit("add")})},remove(e,t){this.$emit("remove",{row:e,index:t}),Object(c["h"])(this.rows,t),this.queueUpdate()},update(){if(this.isView)return;const e=[];for(const t of this.rows){const a=t.value;"undefined"!==typeof a&&e.push(a)}this.$emit("input",e)}}}),h=m,f=a("d802"),b=Object(f["a"])(h,s,l,!1,null,null,null);t["default"]=b.exports},"52c9":function(e,t,a){"use strict";a("5ae4")},"5ae4":function(e,t,a){var s=a("ea19");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var l=a("0ed3").default;l("02c39b9b",s,!0,{sourceMap:!1,shadowMode:!1})},"653f":function(e,t,a){var s=a("5eaa");t=s(!1),t.push([e.i,".container[data-v-e4d7fae2]{display:grid;grid-template-columns:1fr 1fr 1fr}@media only screen and (max-width:992px){.container[data-v-e4d7fae2]{grid-template-columns:1fr 1fr}}@media only screen and (max-width:1281px){.container[data-v-e4d7fae2]{grid-template-columns:1fr}}",""]),e.exports=t},"89e5":function(e,t,a){var s=a("5eaa");t=s(!1),t.push([e.i,".cluster-card-container[data-v-40d0155a]{display:flex;flex-basis:40%;margin:10px;min-height:100px;padding:10px 20px;height:90%;border:1px solid var(--border);border-radius:var(--border-radius)}.cluster-card-container.selected[data-v-40d0155a]{border:2px solid var(--app-rancher-accent)}.cluster-card-container[data-v-40d0155a]:hover{box-shadow:0 0 30px var(--shadow);transition:box-shadow .1s ease-in-out;cursor:pointer;text-decoration:none!important}.cluster-card-container.rancher .deploys-os-label[data-v-40d0155a],.cluster-card-container.rancher .side-label[data-v-40d0155a]{background-color:var(--app-rancher-accent)}.cluster-card-container.rancher .deploys-os-label label[data-v-40d0155a],.cluster-card-container.rancher .side-label label[data-v-40d0155a]{color:var(--app-rancher-accent-text)}.cluster-card-container.rancher[data-v-40d0155a]:hover{border-color:var(--app-rancher-accent)}.cluster-card-container.partner .deploys-os-label[data-v-40d0155a],.cluster-card-container.partner .side-label[data-v-40d0155a]{background-color:var(--app-partner-accent)}.cluster-card-container.partner .deploys-os-label label[data-v-40d0155a],.cluster-card-container.partner .side-label label[data-v-40d0155a]{color:var(--app-partner-accent-text)}.cluster-card-container.partner[data-v-40d0155a]:hover{border-color:var(--app-partner-accent)}.cluster-card-container .card-wrap[data-v-40d0155a]{width:100%}.name[data-v-40d0155a]{font-size:16px;font-weight:700;margin-bottom:10px}.description[data-v-40d0155a]{font-size:14px;margin-bottom:20px}.container[data-v-40d0155a]{display:grid;padding:0;grid-template-columns:1fr 1fr}@media only screen and (max-width:1281px){.container[data-v-40d0155a]{grid-template-columns:1fr}}.leftcol[data-v-40d0155a]{justify-self:start;margin-right:10px}.rightcol[data-v-40d0155a]{justify-self:end}@media only screen and (max-width:1281px){.rightcol[data-v-40d0155a]{justify-self:start}}",""]),e.exports=t},"9a07":function(e,t,a){var s=a("5eaa");t=s(!1),t.push([e.i,".required[data-v-631fe087]{color:var(--error)}",""]),e.exports=t},"9b7b":function(e,t,a){"use strict";a("ef3f")},be3e:function(e,t,a){var s=a("5eaa");t=s(!1),t.push([e.i,".variables[data-v-83817b0e]{display:flex;flex-direction:row;flex-wrap:wrap}.variables>*[data-v-83817b0e]{flex:0 1 23.25%;margin:0 1.75% 10px 0;max-width:23.25%}.variables[data-v-83817b0e]>.wider{flex:0 1 48.25%;max-width:48.25%}.variables>.force-newline[data-v-83817b0e]{flex:1 0 100%;max-width:none}",""]),e.exports=t},c3c3:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e._self._c;e._self._setupProxy;return e.loading?t("Loading"):t("CruResource",{attrs:{mode:e.mode,"show-as-form":!0,resource:e.value,errors:e.errors,"validation-passed":!0,"cancel-event":!0,"done-route":e.doneRoute,"apply-hooks":e.applyHooks,steps:e.addSteps,"component-testid":"capi-cluster-create"},on:{done:e.done,error:t=>e.errors=t,finish:e.saveOverride,cancel:e.cancel},scopedSlots:e._u([{key:"stepClusterClass",fn:function(){return[t("CardGrid",{attrs:{rows:e.clusterClassOptions,"key-field":"id","name-field":"label","side-label-field":"tag"},on:{clicked:e.clickedType}})]},proxy:!0},{key:"stepConfiguration",fn:function(){return[e.isView?e._e():t("NameNsDescription",{attrs:{mode:e.mode,namespaced:!1,"namespace-options":e.allNamespaces,"name-label":"cluster.name.label","name-placeholder":"cluster.name.placeholder","description-label":"cluster.description.label","description-placeholder":"cluster.description.placeholder",rules:{name:e.fvGetAndReportPathRules("metadata.name")}},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}}),t("div",{staticClass:"row mb-20"},[t("div",{staticClass:"col span-3"},[t("h2",[t("t",{attrs:{k:"capi.cluster.version.title"}})],1),t("LabeledInput",{attrs:{mode:e.mode,"label-key":"cluster.kubernetesVersion.label",required:"",rules:e.fvGetAndReportPathRules("spec.topology.version")},model:{value:e.value.spec.topology.version,callback:function(t){e.$set(e.value.spec.topology,"version",t)},expression:"value.spec.topology.version"}})],1),t("div",{staticClass:"col"},[t("h2",[t("t",{attrs:{k:"capi.cluster.controlPlaneEndpoint.title"}})],1),t("ControlPlaneEndpointSection",{attrs:{mode:e.mode,rules:{host:e.fvGetAndReportPathRules("spec.controlPlaneEndpoint.host"),port:e.fvGetAndReportPathRules("spec.controlPlaneEndpoint.port")}},model:{value:e.controlPlaneEndpoint,callback:function(t){e.controlPlaneEndpoint=t},expression:"controlPlaneEndpoint"}})],1)]),t("div",{staticClass:"mt-20 block"},[t("h2",[t("t",{attrs:{k:"capi.cluster.networking.title"}})],1),t("NetworkSection",{attrs:{mode:e.mode,rules:{serviceDomain:e.fvGetAndReportPathRules("spec.clusterNetwork.serviceDomain"),apiServerPort:e.fvGetAndReportPathRules("spec.clusterNetwork.apiServerPort"),pods:e.fvGetAndReportPathRules("spec.clusterNetwork.pods"),services:e.fvGetAndReportPathRules("spec.clusterNetwork.services")}},on:{"api-server-port-changed":t=>e.$set(e.value.spec.clusterNetwork,"apiServerPort",Number(t)||""),"service-domain-changed":t=>e.$set(e.value.spec.clusterNetwork,"serviceDomain",t),"pods-cidr-blocks-changed":e.podsCidrBlocksChanged,"services-cidr-blocks-changed":e.servicesCidrBlocksChanged},model:{value:e.clusterNetwork,callback:function(t){e.clusterNetwork=t},expression:"clusterNetwork"}})],1),t("div",{staticClass:"mt-20 block"},[t("h2",[t("t",{attrs:{k:"capi.cluster.workers.title"}}),t("span",{staticClass:"required"},[e._v("*")])],1),t("div",{staticClass:"row mb-20"},[e.machineDeploymentOptions?t("div",{staticClass:"col span-3"},[t("WorkerItem",{attrs:{mode:e.mode,title:e.t("capi.cluster.workers.machineDeployments.title"),"default-add-value":e.defaultWorkerAddValue,"class-options":e.machineDeploymentOptions,"initial-empty-row":!0},model:{value:e.value.spec.topology.workers.machineDeployments,callback:function(t){e.$set(e.value.spec.topology.workers,"machineDeployments",t)},expression:"value.spec.topology.workers.machineDeployments"}})],1):e._e(),e.machinePoolOptions?t("div",{staticClass:"col span-3"},[t("WorkerItem",{attrs:{mode:e.mode,title:e.t("capi.cluster.workers.machinePools.title"),"default-add-value":e.defaultWorkerAddValue,"class-options":e.machinePoolOptions,"initial-empty-row":!0},model:{value:e.value.spec.topology.workers.machinePools,callback:function(t){e.$set(e.value.spec.topology.workers,"machinePools",t)},expression:"value.spec.topology.workers.machinePools"}})],1):e._e()])])]},proxy:!0},{key:"stepVariables",fn:function(){return[t("h2",[t("t",{attrs:{k:"capi.cluster.variables.title"}})],1),t("ClusterClassVariables",{attrs:{"cluster-class":e.clusterClassObj},on:{"validation-passed":t=>e.variablesReady=t},model:{value:e.value.spec.topology.variables,callback:function(t){e.$set(e.value.spec.topology,"variables",t)},expression:"value.spec.topology.variables"}})]},proxy:!0}])})},l=[],r=a("8bbf"),i=a.n(r),o=a("e24b"),n=a("bddd"),c=a("e26b"),d=a("3c8c"),u=a("ebab"),v=a("15ca"),p=a("fd5f"),m=a("305c"),h=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"variables"},[e.variableDefinitions&&e.variableDefinitions.length?[e._l(e.variableDefinitions,(function(a,s){return[t("Variable",{key:""+a.name,ref:a.name+"-input",refInFor:!0,attrs:{variable:a,value:e.valueFor(a),"validate-required":!e.machineDeploymentClass&&!e.machinePoolClass},on:{input:t=>e.updateVariables(t,a),"validation-passed":e.updateErrors}}),e.newComponentType(a,s)?t("div",{key:`${s}-${e.rerenderKey}`,staticClass:"force-newline"}):e._e()]}))]:e._e()],2)},f=[],b=a("44db"),y=a.n(b),C=a("2cb5"),k=a("330a"),g=a.n(k),w=a("c4c6"),x=a("760b"),_=a("7e89");const P=function(e,{key:t="Value"},a){const{exclusiveMinimum:s,exclusiveMaximum:l,maxItems:r,maxLength:i,maximum:o,minItems:n,minLength:c,minimum:d,pattern:u,uniqueItems:v,required:p,format:m}=a,h=[];return o&&(l?h.push(a=>Number(a)>=Number(o)?e("validation.exclusiveMaxValue",{key:t,maximum:o}):void 0):h.push(a=>Number(a)>Number(o)?e("validation.maxValue",{key:t,max:o}):void 0)),void 0!==d&&(s?h.push(a=>Number(a)<=Number(d)?e("validation.exclusiveMinValue",{key:t,minimum:d}):void 0):h.push(a=>Number(a)a&&a.lengtha&&a.length>Number(i)?e("validation.maxLength",{key:t,max:i}):void 0),r&&h.push(a=>a&&a.length>r?e("validation.maxItems",{key:t,maxItems:r}):void 0),void 0!==n&&h.push(a=>a&&a.lengtha&&a.filter((e,t)=>a.indexOf(e)!==t).length?e("validation.uniqueItems",{key:t}):void 0),p&&h.push(a=>p.find(e=>void 0===a[e])?e("validation.requiredFields",{key:t,requiredFields:p.toString()}):void 0),h},O=function(e,t){return a=>a&&!a.match(t)?e:void 0},j=function(e,{key:t="Value"},a){const s=Object(x["a"])(e,{key:t}),l=e("validation.stringFormat",{key:t,format:a});switch(a){case"hostname":return e=>s.wildcardHostname(e);case"ipv4":return e=>e&&!Object(C["i"])(e)?l:void 0;case"cidr":return e=>e&&!Object(w["a"])(e)?l:void 0;case"mac":return e=>e&&!Object(w["b"])(e)?l:void 0;case"uuid":return O(l,/^[0-9a-f]{8}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{4}-?[0-9a-f]{12}$/i);case"uuid3":return O(l,/^[0-9a-f]{8}-?[0-9a-f]{4}-?3[0-9a-f]{3}-?[0-9a-f]{4}-?[0-9a-f]{12}$/i);case"uuid4":return O(l,/^[0-9a-f]{8}-?[0-9a-f]{4}-?4[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$/i);case"uuid5":return O(l,/^[0-9a-f]{8}-?[0-9a-f]{4}-?5[0-9a-f]{3}-?[89ab][0-9a-f]{3}-?[0-9a-f]{12}$/i);default:return}},N=e=>e||!1===e||!g()(e),S=function(e,t){let a="";return _["c"][t]&&(a=`\\+(${_["c"][t].join("|")})`),new RegExp(`^v(\\d+.){2}\\d+${a}$`)},$=function(e,t){const a=S(e,t);return O(e("validation.version"),a)},V=function(e){return j(e,{key:"Host"},"hostname")},D=function(e){return t=>t&&isNaN(t)?e("validation.port"):void 0},q=function(e){return j(e,{key:"Value"},"cidr")},A=function(e){return e.every(e=>Object(w["a"])(e))};var I=function(){var e,t=this,a=t._self._c;t._self._setupProxy;return t.componentForType?a("div",{class:{wider:t.listComponent,"align-center":"checkbox-var"===(null===(e=t.componentForType)||void 0===e?void 0:e.name),[""+t.componentForType.name]:!0}},[t.componentForType?a(t.componentForType.component,{tag:"component",attrs:{value:t.value,label:t.variable.name,placeholder:t.schema.example,tooltip:t.schema.description,required:t.variable.required&&t.validateRequired,title:t.variable.name,options:t.variableOptions,rules:t.listComponent?[]:t.validationRules,type:"number"===t.schema.type||"integer"===t.schema.type?"number":"text"},on:{input:t.setValue},scopedSlots:t._u([{key:"title",fn:function(){return[a("div",{staticClass:"input-label"},[a("span",[t._v(t._s(t.variable.name)+" "),t.schema.description?a("i",{directives:[{name:"clean-tooltip",rawName:"v-clean-tooltip",value:t.schema.description,expression:"schema.description"}],staticClass:"icon icon-sm icon-info"}):t._e(),t.isValid?t._e():a("i",{directives:[{name:"clean-tooltip",rawName:"v-clean-tooltip",value:t.validationErrors.join(" "),expression:"validationErrors.join(' ')"}],staticClass:"icon icon-warning"})])])]},proxy:!0}],null,!1,149827440)}):t._e(),a("div",{staticClass:"flexbox-newline"})],1):t._e()},R=[],L=a("1032"),E=a("a232"),F=a("977f"),B=a("466b"),M=a("9ce4"),T=i.a.extend({name:"CCVariable",props:{variable:{type:Object,required:!0},value:{type:[String,Object,Boolean,Array,Number],default:()=>null},validateRequired:{type:Boolean,default:!0}},watch:{isValid(e){this.$emit("validation-passed",e)}},created(){this.isValid||this.$emit("validation-passed",!1)},computed:{...Object(M["a"])({t:"i18n/t"}),componentForType(){const{type:e}=this.schema;let t;if(this.variableOptions)t={component:B["a"],name:"text-var"};else switch(e){case"object":t={component:E["a"],name:"keyvalue-var"};break;case"array":t={component:F["a"],name:"arraylist-var"};break;case"string":t={component:c["a"],name:"text-var"};break;case"integer":t={component:c["a"],name:"text-var"};break;case"number":t={component:c["a"],name:"text-var"};break;case"boolean":t={component:L["a"],name:"checkbox-var"};break;default:break}return t},schema(){var e;return null===(e=this.variable)||void 0===e||null===(e=e.schema)||void 0===e?void 0:e.openAPIV3Schema},variableOptions(){var e;const t=null===(e=this.schema)||void 0===e?void 0:e.enum;return t&&t.length?t.map(e=>"object"===typeof e?JSON.stringify(e):e):null},validationRules(){var e;const t=this.t,a=P(t,{key:this.variable.name},this.schema),s=null===(e=this.variable)||void 0===e?void 0:e.required;return s&&this.validateRequired&&a.push(e=>N(e)?void 0:t("validation.required",{key:this.variable.name})),a},isValid(){return!this.validationErrors.length},validationErrors(){return this.validationRules.reduce((e,t)=>{const a=t(this.value);return a&&e.push(a),e},[])},listComponent(){var e,t;return"arraylist-var"===(null===(e=this.componentForType)||void 0===e?void 0:e.name)||"keyvalue-var"===(null===(t=this.componentForType)||void 0===t?void 0:t.name)}},methods:{setValue(e){let t=e;const{type:a}=this.schema;if("object"===a)try{t=JSON.parse(e)}catch{}this.$emit("input",t)}}}),U=T,K=(a("52c9"),a("d802")),G=Object(K["a"])(U,I,R,!1,null,"487e7c02",null),W=G.exports,J=i.a.extend({name:"ClusterClassVariables",components:{Variable:W},props:{clusterClass:{type:Object,default:()=>{}},value:{type:Array,default:()=>[]},machineDeploymentClass:{type:String,default:null},machinePoolClass:{type:String,default:null}},data(){return{errorCount:0,rerenderKey:Object(C["n"])()}},watch:{errorCount:{handler:y()((function(e){this.$emit("validation-passed",!e)}),5)},variableDefinitions(e,t){this.updateVariableDefaults(e,t),this.$nextTick(()=>{this.rerenderKey=Object(C["n"])()})}},created(){this.updateVariableDefaults(this.variableDefinitions,[])},computed:{variableDefinitions(){var e;const t=(null===(e=this.clusterClass)||void 0===e||null===(e=e.spec)||void 0===e?void 0:e.variables)||[];if(!this.machineDeploymentClass&&!this.machinePoolClass)return t;const a=this.machineScopedJsonPatches.reduce((e,t)=>{var a;const s=null===t||void 0===t||null===(a=t.valueFrom)||void 0===a?void 0:a.variable;if(!s)return e;const l=s.split(/\.|\[/)[0];return"builtin"!==l&&e.push(l),e},[]);return t.filter(e=>a.includes(e.name))},machineScopedJsonPatches(){var e;if(!this.machineDeploymentClass&&!this.machinePoolClass)return[];const t=[],a=this.machineDeploymentClass||this.machinePoolClass,s=this.machineDeploymentClass?"machineDeploymentClass":"machinePoolClass",l=(null===(e=this.clusterClass)||void 0===e||null===(e=e.spec)||void 0===e?void 0:e.patches)||[];return l.forEach(e=>{const l=(null===e||void 0===e?void 0:e.definitions)||[];l.forEach(e=>{var l;const r=(null===e||void 0===e||null===(l=e.selector)||void 0===l||null===(l=l.matchResources)||void 0===l||null===(l=l[s])||void 0===l?void 0:l.names)||[];r.includes(a)&&t.push(...e.jsonPatches)})}),t}},methods:{valueFor(e){return(this.value.find(t=>t.name===e.name)||{}).value},updateVariables(e,t){const a=[...this.value],s=this.value.findIndex(e=>e.name===t.name);s>=0?a[s].value=e:a.push({value:e,name:t.name}),this.$emit("input",a)},updateVariableDefaults(e,t){const a=[...this.value].reduce((a,s)=>{var l,r,i;const o=(e||[]).find(e=>e.name===s.name);if(!o)return a;const n=null===(l=(t||[]).find(e=>e.name===s.name))||void 0===l||null===(l=l.schema)||void 0===l||null===(l=l.openAPIV3Schema)||void 0===l?void 0:l.default;N(n)&&s.value===n&&delete s.value;let c=null===(r=o.schema)||void 0===r||null===(r=r.openAPIV3Schema)||void 0===r?void 0:r.default;return"boolean"!==(null===(i=o.schema)||void 0===i||null===(i=i.openAPIV3Schema)||void 0===i?void 0:i.type)||c||(c=!1),N(c)&&!s.value&&(s.value=c),a.push(s),a},[]);e.forEach(e=>{var t,s;let l=null===(t=e.schema)||void 0===t||null===(t=t.openAPIV3Schema)||void 0===t?void 0:t.default;"boolean"!==(null===(s=e.schema)||void 0===s||null===(s=s.openAPIV3Schema)||void 0===s?void 0:s.type)||l||(l=!1),N(l)&&!a.find(t=>t.name===e.name)&&a.push({name:e.name,value:l})}),this.errorCount=0,this.$emit("input",a)},updateErrors(e){e?this.errorCount--:this.errorCount++},newComponentType(e,t){var a,s,l;const r=this.$refs,i=null===(a=r[e.name+"-input"])||void 0===a||null===(a=a[0])||void 0===a?void 0:a.$el,o=null===(s=r[(null===(l=this.variableDefinitions[t+1])||void 0===l?void 0:l.name)+"-input"])||void 0===s||null===(s=s[0])||void 0===s?void 0:s.$el;return!!o&&(null===i||void 0===i?void 0:i._prevClass)!==o._prevClass}}}),z=J,H=(a("330a3"),Object(K["a"])(z,h,f,!1,null,"83817b0e",null)),Q=H.exports,X=function(){var e=this,t=e._self._c;e._self._setupProxy;return e.rows.length?t("div",{staticClass:"container"},e._l(e.rows,(function(a,s){return t("div",{key:e.get(a,e.keyField),attrs:{"data-testid":e.componentTestid+"-"+s},on:{click:function(t){return e.select(a,s)}}},[t("ClusterClassCard",{attrs:{value:a.obj,selected:a.selected}})],1)})),0):t("div",{staticClass:"m-50 text-center"},[t("h1",{directives:[{name:"t",rawName:"v-t",value:e.noDataKey,expression:"noDataKey"}]})])},Y=[],Z=a("87ef"),ee=a.n(Z),te=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",{staticClass:"cluster-card-container",class:{selected:!!e.selected},attrs:{"data-testid":"cluster-class-card"}},[t("div",{staticClass:"card-wrap"},[t("div",{staticClass:"name"},[e._v(" "+e._s(e.name)+" ")]),t("div",{staticClass:"description"},[t("p",[e._v(e._s(e.description))])]),t("div",{staticClass:"container"},[t("div",{staticClass:"leftcol"},[t("ClusterCardField",{attrs:{value:e.controlPlaneName,name:e.t("capi.clusterClassCard.controlPlaneName")}}),t("ClusterCardField",{attrs:{value:e.controlPlaneKind,name:e.t("capi.clusterClassCard.controlPlaneKind")}}),t("ClusterCardField",{attrs:{value:e.controlPlaneNamespace,name:e.t("capi.clusterClassCard.controlPlaneNamespace")}})],1),t("div",{staticClass:"rightcol"},[e.machineDeploymentsCount>0?t("ClusterCardField",{attrs:{value:e.machineDeploymentsList,name:e.t("capi.clusterClassCard.machineDeploymentsCount",{count:e.machineDeploymentsCount})}}):e._e(),e.machinePoolsCount>0?t("ClusterCardField",{attrs:{value:e.machinePoolsList,name:e.t("capi.clusterClassCard.machinePoolsCount",{count:e.machinePoolsCount})}}):e._e()],1)])])])},ae=[],se=function(){var e=this,t=e._self._c;return t("div",{staticClass:"label"},[t("div",{staticClass:"text-label"},[e._t("name",(function(){return[e._v(" "+e._s(e.name)+" ")]}))],2),t("div",{staticClass:"value"},[e._t("value",(function(){return[e._v(" "+e._s(e.value)+" ")]}))],2)])},le=[],re={props:{name:{type:String,required:!0},value:{type:[Number,String,void 0],default:""}}},ie=re,oe=(a("4774b"),Object(K["a"])(ie,se,le,!1,null,"7407ec5d",null)),ne=oe.exports,ce=i.a.extend({name:"ClusterClassCard",components:{ClusterCardField:ne},props:{value:{type:Object,required:!0},selected:{type:Boolean,default:!1}},data(){return{cloneData:!0,errors:[]}},computed:{...Object(M["a"])({t:"i18n/t"}),name(){var e;return(null===(e=this.value)||void 0===e||null===(e=e.metadata)||void 0===e?void 0:e.name)||""},description(){var e;return(null===(e=this.value)||void 0===e||null===(e=e.metadata)||void 0===e||null===(e=e.annotations)||void 0===e?void 0:e.description)||""},controlPlaneName(){var e;return null===(e=this.value)||void 0===e||null===(e=e.spec)||void 0===e||null===(e=e.controlPlane)||void 0===e||null===(e=e.ref)||void 0===e?void 0:e.name},controlPlaneKind(){var e;return null===(e=this.value)||void 0===e||null===(e=e.spec)||void 0===e||null===(e=e.controlPlane)||void 0===e||null===(e=e.ref)||void 0===e?void 0:e.kind},controlPlaneNamespace(){var e;return null===(e=this.value)||void 0===e||null===(e=e.spec)||void 0===e||null===(e=e.controlPlane)||void 0===e||null===(e=e.ref)||void 0===e?void 0:e.namespace},machineDeploymentsCount(){var e;return null===(e=this.value)||void 0===e||null===(e=e.spec)||void 0===e||null===(e=e.workers)||void 0===e||null===(e=e.machineDeployments)||void 0===e?void 0:e.length},machineDeploymentsList(){var e;return(null===(e=this.value)||void 0===e||null===(e=e.spec)||void 0===e||null===(e=e.workers)||void 0===e||null===(e=e.machineDeployments)||void 0===e?void 0:e.map(e=>e.class).join(", "))||""},machinePoolsCount(){var e;return null===(e=this.value)||void 0===e||null===(e=e.spec)||void 0===e||null===(e=e.workers)||void 0===e||null===(e=e.machinePools)||void 0===e?void 0:e.length},machinePoolsList(){var e;return(null===(e=this.value)||void 0===e||null===(e=e.spec)||void 0===e||null===(e=e.workers)||void 0===e||null===(e=e.machinePools)||void 0===e?void 0:e.map(e=>e.class).join(", "))||""}}}),de=ce,ue=(a("9b7b"),Object(K["a"])(de,te,ae,!1,null,"40d0155a",null)),ve=ue.exports,pe=i.a.extend({components:{ClusterClassCard:ve},name:"CardGrid",props:{rows:{type:Array,required:!0},keyField:{type:String,default:"key"},noDataKey:{type:String,default:"sortableTable.noRows"},componentTestid:{type:String,default:"select-card-grid"}},methods:{get:o["g"],select(e,t){this.resetSelected(),this.rows[t].selected=!0,this.$emit("clicked",e,t)},resetSelected(){this.rows.map(e=>{e.selected=!1})},capitalize:ee.a}}),me=pe,he=(a("2ea8"),Object(K["a"])(me,X,Y,!1,null,"e4d7fae2",null)),fe=he.exports,be=a("4c7b"),ye=a("3eff"),Ce=a("d221");const ke={version:"",class:"",workers:{machineDeployments:[],machinePools:[]}},ge={apiServerPort:6443,pods:{cidrBlocks:[]},serviceDomain:"",services:{cidrBlocks:[]}},we={host:"",port:49152};var xe=i.a.extend({name:"ClusterConfig",components:{CruResource:p["a"],Loading:v["a"],NameNsDescription:d["a"],LabeledInput:c["a"],WorkerItem:be["default"],NetworkSection:ye["default"],ControlPlaneEndpointSection:Ce["default"],ClusterClassVariables:Q,CardGrid:fe},mixins:[m["a"],u["a"]],props:{mode:{type:String,required:!0},value:{type:Object,required:!0},preselectedClass:{type:String,required:!1,default:""},clusterClasses:{type:Array,required:!0}},beforeMount(){this.initSpecs(),this.$nextTick(()=>{this.loading=!1})},data(){const e=this.$store,t=e.getters["i18n/t"],a={name:"stepClusterClass",title:t("capi.cluster.steps.clusterClass.title"),label:t("capi.cluster.steps.clusterClass.label"),subtext:"",descriptionKey:"capi.cluster.steps.clusterClass.description",ready:!1,weight:30},s={name:"stepConfiguration",title:t("capi.cluster.steps.configuration.title"),label:t("capi.cluster.steps.configuration.label"),subtext:"",descriptionKey:"capi.cluster.steps.configuration.description",ready:!1,weight:30},l={name:"stepVariables",title:t("capi.cluster.steps.variables.title"),label:t("capi.cluster.steps.variables.label"),subtext:"",descriptionKey:"capi.cluster.steps.variables.description",ready:!0,weight:30},r=this.preselectedClass?[s,l]:[a,s,l];return{addSteps:r,fvFormRuleSets:[{path:"metadata.name",rules:["required"]},{path:"spec.topology.version",rules:["required","version"]},{path:"spec.controlPlaneEndpoint.host",rules:["host"]},{path:"spec.controlPlaneEndpoint.port",rules:["port"]},{path:"spec.clusterNetwork.serviceDomain",rules:["host"]},{path:"spec.clusterNetwork.apiServerPort",rules:["required","port"]},{path:"spec.clusterNetwork.pods",rules:["cidr"]},{path:"spec.clusterNetwork.services",rules:["cidr"]}],credentialId:"",credential:null,versionInfo:{},allNamespaces:[],defaultWorkerAddValue:{name:"",class:""},variablesReady:!0,clusterClassObj:null,loading:!0}},watch:{clusterClassObj(e){const t=this.addSteps.find(e=>"stepClusterClass"===e.name);t&&this.$set(t,"ready",!!e)},stepConfigurationRequires(e){const t=this.addSteps.find(e=>"stepConfiguration"===e.name);this.$set(t,"ready",e)},variablesReady(e){const t=this.addSteps.find(e=>"stepVariables"===e.name);this.$set(t,"ready",e)}},computed:{modeOptions(){return[{label:this.t("capi.cluster.secret.reuse"),value:!1},{label:this.t("capi.cluster.secret.create"),value:!0}]},fvExtraRules(){return{version:$(this.$store.getters["i18n/t"],this.controlPlane),host:V(this.$store.getters["i18n/t"]),port:D(this.$store.getters["i18n/t"]),cidr:q(this.$store.getters["i18n/t"])}},stepConfigurationRequires(){var e,t,a,s,l,r,i,o,n,c,d,u,v,p;const m=!!this.value.metadata.name,h=S(this.$store.getters["i18n/t"],this.controlPlane),f=(null===(e=this.value)||void 0===e||null===(e=e.spec)||void 0===e||null===(e=e.topology)||void 0===e?void 0:e.version)&&!(null===(t=this.value)||void 0===t||null===(t=t.spec)||void 0===t||null===(t=t.topology)||void 0===t||!t.version.match(h)),b=!D(this.$store.getters["i18n/t"])(null===(a=this.value)||void 0===a||null===(a=a.spec)||void 0===a||null===(a=a.controlPlaneEndpoint)||void 0===a?void 0:a.port),y=!V(this.$store.getters["i18n/t"])(null===(s=this.value)||void 0===s||null===(s=s.spec)||void 0===s||null===(s=s.controlPlaneEndpoint)||void 0===s?void 0:s.host),C=(null===(l=this.value)||void 0===l||null===(l=l.spec)||void 0===l||null===(l=l.topology)||void 0===l||null===(l=l.workers)||void 0===l||null===(l=l.machineDeployments)||void 0===l?void 0:l.length)>0&&!(null===(r=this.value)||void 0===r||null===(r=r.spec)||void 0===r||null===(r=r.topology)||void 0===r||null===(r=r.workers)||void 0===r||null===(r=r.machineDeployments[0])||void 0===r||!r.name)&&!(null===(i=this.value)||void 0===i||null===(i=i.spec)||void 0===i||null===(i=i.topology)||void 0===i||null===(i=i.workers)||void 0===i||null===(i=i.machineDeployments[0])||void 0===i||!i.class),k=(null===(o=this.value)||void 0===o||null===(o=o.spec)||void 0===o||null===(o=o.topology)||void 0===o||null===(o=o.workers)||void 0===o||null===(o=o.machinePools)||void 0===o?void 0:o.length)>0&&!(null===(n=this.value)||void 0===n||null===(n=n.spec)||void 0===n||null===(n=n.topology)||void 0===n||null===(n=n.workers)||void 0===n||null===(n=n.machinePools[0])||void 0===n||!n.name)&&!(null===(c=this.value)||void 0===c||null===(c=c.spec)||void 0===c||null===(c=c.topology)||void 0===c||null===(c=c.workers)||void 0===c||null===(c=c.machinePools[0])||void 0===c||!c.class),g=!(null!==(d=this.value)&&void 0!==d&&null!==(d=d.spec)&&void 0!==d&&null!==(d=d.clusterNetwork)&&void 0!==d&&null!==(d=d.pods)&&void 0!==d&&d.cidrBlocks)||A(this.value.spec.clusterNetwork.pods.cidrBlocks),w=!(null!==(u=this.value)&&void 0!==u&&null!==(u=u.spec)&&void 0!==u&&null!==(u=u.clusterNetwork)&&void 0!==u&&null!==(u=u.services)&&void 0!==u&&u.cidrBlocks)||A(this.value.spec.clusterNetwork.services.cidrBlocks),x=!(null===(v=this.value)||void 0===v||null===(v=v.spec)||void 0===v||null===(v=v.clusterNetwork)||void 0===v||!v.apiServerPort)&&!isNaN(null===(p=this.value)||void 0===p||null===(p=p.spec)||void 0===p||null===(p=p.clusterNetwork)||void 0===p?void 0:p.apiServerPort)&&g&&w;return m&&f&&y&&b&&x&&(C||k)},clusterNetwork(){var e;return null===(e=this.value)||void 0===e||null===(e=e.spec)||void 0===e?void 0:e.clusterNetwork},controlPlaneEndpoint(){var e;return null===(e=this.value)||void 0===e||null===(e=e.spec)||void 0===e?void 0:e.controlPlaneEndpoint},machineDeploymentOptions(){var e;return null===(e=this.clusterClassObj)||void 0===e||null===(e=e.spec)||void 0===e||null===(e=e.workers)||void 0===e||null===(e=e.machineDeployments)||void 0===e?void 0:e.map(e=>e.class)},machinePoolOptions(){var e;return null===(e=this.clusterClassObj)||void 0===e||null===(e=e.spec)||void 0===e||null===(e=e.workers)||void 0===e||null===(e=e.machinePools)||void 0===e?void 0:e.map(e=>e.class)},controlPlane(){var e;return null===(e=this.clusterClassObj)||void 0===e||null===(e=e.spec)||void 0===e||null===(e=e.controlPlane)||void 0===e||null===(e=e.ref)||void 0===e?void 0:e.name},clusterClassOptions(){const e=[],t=this.clusterClassObj;return this.clusterClasses.forEach(e=>{a(e)}),e;function a(a){var s;const l=null===a||void 0===a||null===(s=a.metadata)||void 0===s?void 0:s.name,r={id:l,obj:a,selected:t===a};e.push(r)}}},methods:{set:o["k"],setClassInfo(e){this.clusterClassObj=this.clusterClasses.find(t=>{const a=unescape(e).split("/");return t.metadata.namespace===a[0]&&t.metadata.name===a[1]}),this.clusterClassObj?(this.setClass(),this.setNamespace()):this.errors.push(this.t("error.clusterClassNotFound"))},setClass(){var e;const t=null===(e=this.clusterClassObj)||void 0===e||null===(e=e.metadata)||void 0===e?void 0:e.name;this.set(this.value.spec.topology,"class",t)},setNamespace(){var e;const t=null===(e=this.clusterClassObj)||void 0===e||null===(e=e.metadata)||void 0===e?void 0:e.namespace;this.set(this.value.metadata,"namespace",t)},async saveOverride(){this.errors&&Object(n["c"])(this.errors);try{return await this.value.save(),this.done()}catch(e){this.errors.push(e)}},initSpecs(){this.value.spec||Object(o["k"])(this.value,"spec",{}),this.value.spec.topology||Object(o["k"])(this.value.spec,"topology",Object(o["e"])(ke)),this.value.spec.clusterNetwork||Object(o["k"])(this.value.spec,"clusterNetwork",Object(o["e"])(ge)),this.value.spec.controlPlaneEndpoint||Object(o["k"])(this.value.spec,"controlPlaneEndpoint",Object(o["e"])(we)),this.preselectedClass&&this.setClassInfo(this.preselectedClass)},cancelCredential(){this.$refs.cruresource&&this.$refs.cruresource.emitOrRoute()},cancel(){this.$router.push({name:"c-cluster-manager-capi",params:{}})},done(){this.$router.push({name:"c-cluster-manager-capi",params:{}})},clickedType(e){this.clusterClassObj=this.clusterClasses.find(t=>t.metadata.name===e.id),this.setClass(),this.setNamespace()},podsCidrBlocksChanged(e){var t;null!==(t=this.value.spec.clusterNetwork)&&void 0!==t&&t.pods||Object(o["k"])(this.value.spec.clusterNetwork,"pods",[]),Object(o["k"])(this.value.spec.clusterNetwork.pods,"cidrBlocks",e)},servicesCidrBlocksChanged(e){var t;null!==(t=this.value.spec.clusterNetwork)&&void 0!==t&&t.services||Object(o["k"])(this.value.spec.clusterNetwork,"services",[]),Object(o["k"])(this.value.spec.clusterNetwork.services,"cidrBlocks",e)}}}),_e=xe,Pe=(a("eb17"),Object(K["a"])(_e,s,l,!1,null,"631fe087",null));t["default"]=Pe.exports},c774:function(e,t,a){var s=a("9a07");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var l=a("0ed3").default;l("6f2ae094",s,!0,{sourceMap:!1,shadowMode:!1})},d221:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[t("div",{staticClass:"row mb-20"},[t("div",{staticClass:"col"},[t("LabeledInput",{attrs:{mode:e.mode,disabled:e.clusterIsAlreadyCreated,label:e.t("capi.cluster.controlPlaneEndpoint.host"),rules:e.rules.host},model:{value:e.value.host,callback:function(t){e.$set(e.value,"host",t)},expression:"value.host"}})],1),t("div",{staticClass:"col"},[t("LabeledInput",{attrs:{mode:e.mode,disabled:e.clusterIsAlreadyCreated,label:e.t("capi.cluster.controlPlaneEndpoint.port"),rules:e.rules.port},model:{value:e.value.port,callback:function(t){e.$set(e.value,"port",e._n(t))},expression:"value.port"}})],1)])])},l=[],r=a("8bbf"),i=a.n(r),o=a("9ce4"),n=a("da25"),c=a("e26b"),d=i.a.extend({name:"ControlPlaneEndpointSection",components:{LabeledInput:c["a"]},props:{value:{type:Object,required:!0},mode:{type:String,required:!0},rules:{default:()=>({host:[],port:[]}),type:Object}},computed:{...Object(o["a"])({t:"i18n/t"}),clusterIsAlreadyCreated(){return this.mode===n["n"]}}}),u=d,v=a("d802"),p=Object(v["a"])(u,s,l,!1,null,null,null);t["default"]=p.exports},df7e:function(e,t,a){"use strict";a.r(t);var s=function(){var e=this,t=e._self._c;e._self._setupProxy;return t("div",[e.loading?t("Loading"):t("div",[e.preselectedClass?t("ClusterConfig",{attrs:{"initial-value":e.initialValue,"live-value":e.liveValue,mode:e.mode,"preselected-class":e.preselectedClass,"cluster-classes":e.clusterClasses},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}}):t("CruResource",{staticClass:"create-cluster",attrs:{mode:e.mode,"validation-passed":!0,resource:e.value,errors:e.errors,"cancel-event":!0,"prevent-enter-submit":!0},on:{finish:e.save,cancel:e.cancel,error:t=>e.errors=t},scopedSlots:e._u([{key:"form-footer",fn:function(){return[t("div")]},proxy:!0}])},[t("ClusterConfig",{attrs:{"initial-value":e.initialValue,"live-value":e.liveValue,mode:e.mode,"cluster-classes":e.clusterClasses},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}})],1)],1)],1)},l=[],r=a("8bbf"),i=a.n(r),o=a("da25"),n=a("e24b"),c=a("305c"),d=a("15ca"),u=a("fd5f"),v=a("c3c3"),p=a("7e89"),m=i.a.extend({name:"CreateCluster",components:{CruResource:u["a"],Loading:d["a"],ClusterConfig:v["default"]},mixins:[c["a"]],props:{value:{type:Object,default:null},componentTestid:{type:String,default:"capi-provider-create"},mode:{type:String,required:!0}},beforeMount(){this.value.spec||Object(n["k"])(this.value,"spec",{}),this.value.id||this.value.metadata||Object(n["k"])(this.value,"metadata",{}),this.getClusterClasses().then(e=>{this.clusterClasses=e,this.loading=!1}).catch(e=>{this.errors.push(e),this.loading=!1})},data(){var e,t;const a=this.$route,s=a.query[o["g"]]||null,l=a.query[p["e"].CLASS],r=null===(e=this.value)||void 0===e||null===(e=e.spec)||void 0===e||null===(e=e.topology)||void 0===e?void 0:e.class,i=null===(t=this.value)||void 0===t||null===(t=t.metadata)||void 0===t?void 0:t.namespace,n=i&&r?escape(`${i}/${r}`):null,c=l||n||null;return{subType:s,preselectedClass:c,capiProviders:[],clusterClasses:[],loading:!0}},methods:{async getClusterClasses(){const e=await this.$store.dispatch("management/findAll",{type:p["b"].CLUSTER_CLASS});return e},cancel(){this.$router.push({name:"c-cluster-manager-capi",params:{}})}}}),h=m,f=a("d802"),b=Object(f["a"])(h,s,l,!1,null,null,null);t["default"]=b.exports},ea19:function(e,t,a){var s=a("5eaa");t=s(!1),t.push([e.i,'.align-center[data-v-487e7c02]{align-self:"center"}.input-label[data-v-487e7c02]{color:var(--input-label);margin-bottom:5px;display:block;width:100%}.input-label .icon-warning[data-v-487e7c02]{color:var(--error)}',""]),e.exports=t},eb17:function(e,t,a){"use strict";a("c774")},ef3f:function(e,t,a){var s=a("89e5");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var l=a("0ed3").default;l("1e7aae74",s,!0,{sourceMap:!1,shadowMode:!1})},f359:function(e,t,a){var s=a("be3e");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var l=a("0ed3").default;l("a354281e",s,!0,{sourceMap:!1,shadowMode:!1})},f954:function(e,t,a){var s=a("4369");s.__esModule&&(s=s.default),"string"===typeof s&&(s=[[e.i,s,""]]),s.locals&&(e.exports=s.locals);var l=a("0ed3").default;l("5a8cc4b7",s,!0,{sourceMap:!1,shadowMode:!1})}}]); +//# sourceMappingURL=capi-0.3.0.umd.min.edit.js.map \ No newline at end of file diff --git a/extensions/capi/0.3.0/plugin/capi-0.3.0.umd.min.edit.js.map b/extensions/capi/0.3.0/plugin/capi-0.3.0.umd.min.edit.js.map new file mode 100644 index 0000000..9042249 --- /dev/null +++ b/extensions/capi/0.3.0/plugin/capi-0.3.0.umd.min.edit.js.map @@ -0,0 +1 @@ +{"version":3,"sources":["webpack://capi-0.3.0/./components/CardGrid.vue?c65f","webpack://capi-0.3.0/./components/CCVariables/index.vue?8a5e","webpack://capi-0.3.0/./edit/NetworkSection.vue","webpack://capi-0.3.0/./edit/NetworkSection.vue?75a9","webpack://capi-0.3.0/./edit/NetworkSection.vue?d1ac","webpack://capi-0.3.0/./edit/NetworkSection.vue?8b29","webpack://capi-0.3.0/./components/ClusterClassCard/ClusterCardField.vue?423f","webpack://capi-0.3.0/./components/CardGrid.vue?3fcb","webpack://capi-0.3.0/./components/ClusterClassCard/ClusterCardField.vue?1db6","webpack://capi-0.3.0/./edit/WorkerItem.vue","webpack://capi-0.3.0/./edit/WorkerItem.vue?b6ad","webpack://capi-0.3.0/./edit/WorkerItem.vue?bb39","webpack://capi-0.3.0/./edit/WorkerItem.vue?3324","webpack://capi-0.3.0/./components/CCVariables/Variable.vue?097e","webpack://capi-0.3.0/./components/CCVariables/Variable.vue?457c","webpack://capi-0.3.0/./components/CardGrid.vue?8cdb","webpack://capi-0.3.0/./components/ClusterClassCard/index.vue?9a8d","webpack://capi-0.3.0/./edit/ClusterConfig.vue?45a0","webpack://capi-0.3.0/./components/ClusterClassCard/index.vue?8b8e","webpack://capi-0.3.0/./components/CCVariables/index.vue?fa2e","webpack://capi-0.3.0/./edit/ClusterConfig.vue","webpack://capi-0.3.0/./components/CCVariables/index.vue","webpack://capi-0.3.0/./util/validators.ts","webpack://capi-0.3.0/./components/CCVariables/Variable.vue","webpack://capi-0.3.0/./components/CCVariables/Variable.vue?80e7","webpack://capi-0.3.0/./components/CCVariables/Variable.vue?00fe","webpack://capi-0.3.0/./components/CCVariables/Variable.vue?a70f","webpack://capi-0.3.0/./components/CCVariables/index.vue?e9a9","webpack://capi-0.3.0/./components/CCVariables/index.vue?d726","webpack://capi-0.3.0/./components/CCVariables/index.vue?ca61","webpack://capi-0.3.0/./components/CardGrid.vue","webpack://capi-0.3.0/./components/ClusterClassCard/index.vue","webpack://capi-0.3.0/./components/ClusterClassCard/ClusterCardField.vue","webpack://capi-0.3.0/components/ClusterClassCard/ClusterCardField.vue","webpack://capi-0.3.0/./components/ClusterClassCard/ClusterCardField.vue?7b8b","webpack://capi-0.3.0/./components/ClusterClassCard/ClusterCardField.vue?c04e","webpack://capi-0.3.0/./components/ClusterClassCard/index.vue?0f5c","webpack://capi-0.3.0/./components/ClusterClassCard/index.vue?8114","webpack://capi-0.3.0/./components/ClusterClassCard/index.vue?8a64","webpack://capi-0.3.0/./components/CardGrid.vue?82e1","webpack://capi-0.3.0/./components/CardGrid.vue?c9c2","webpack://capi-0.3.0/./components/CardGrid.vue?4f39","webpack://capi-0.3.0/./edit/ClusterConfig.vue?02fd","webpack://capi-0.3.0/./edit/ClusterConfig.vue?635a","webpack://capi-0.3.0/./edit/ClusterConfig.vue?e848","webpack://capi-0.3.0/./edit/ClusterConfig.vue?acf9","webpack://capi-0.3.0/./edit/ControlPlaneEndpointSection.vue","webpack://capi-0.3.0/./edit/ControlPlaneEndpointSection.vue?bc76","webpack://capi-0.3.0/./edit/ControlPlaneEndpointSection.vue?3d8d","webpack://capi-0.3.0/./edit/ControlPlaneEndpointSection.vue?28fd","webpack://capi-0.3.0/./edit/cluster.x-k8s.io.cluster.vue","webpack://capi-0.3.0/./edit/cluster.x-k8s.io.cluster.vue?0266","webpack://capi-0.3.0/./edit/cluster.x-k8s.io.cluster.vue?19b6","webpack://capi-0.3.0/./edit/cluster.x-k8s.io.cluster.vue?9df0","webpack://capi-0.3.0/./components/CCVariables/Variable.vue?8a6e","webpack://capi-0.3.0/./edit/ClusterConfig.vue?ecdd","webpack://capi-0.3.0/./components/ClusterClassCard/index.vue?dcaf","webpack://capi-0.3.0/./components/CCVariables/index.vue?81b3","webpack://capi-0.3.0/./components/ClusterClassCard/ClusterCardField.vue?b46b"],"names":["render","_vm","this","_c","_self","_setupProxy","staticClass","attrs","apiServerPort","mode","clusterIsAlreadyCreated","t","rules","on","$event","$emit","serviceDomain","podsCidrBlocks","pods","servicesCidrBlocks","services","staticRenderFns","Vue","extend","components","LabeledInput","ArrayList","props","value","type","Object","required","String","default","computed","mapGetters","_EDIT","_this$value","_this$value2","_this$value3","cidrBlocks","_this$value4","component","___CSS_LOADER_API_IMPORT___","exports","push","module","i","content","__esModule","locals","add","title","_t","_v","_s","_e","rows","length","_l","row","idx","key","ref","refInFor","model","name","callback","$$v","$set","expression","classOptions","class","isView","queueUpdate","removeAllowed","remove","removeLabel","addAllowed","loading","addLabel","LabeledSelect","Array","Boolean","defaultAddValue","Number","disabled","data","input","slice","clone","lastUpdateWasFromValue","_VIEW","$store","getters","watch","map","v","deep","handler","created","debounce","update","methods","$nextTick","inputs","$refs","focus","index","removeAt","out","errors","doneRoute","applyHooks","addSteps","done","e","saveOverride","cancel","scopedSlots","_u","fn","clusterClassOptions","clickedType","proxy","allNamespaces","fvGetAndReportPathRules","spec","topology","version","host","port","controlPlaneEndpoint","val","clusterNetwork","podsCidrBlocksChanged","servicesCidrBlocksChanged","machineDeploymentOptions","defaultWorkerAddValue","workers","machineDeployments","machinePoolOptions","machinePools","clusterClassObj","variablesReady","variables","variableDefinitions","variableDef","valueFor","machineDeploymentClass","machinePoolClass","updateVariables","updateErrors","newComponentType","rerenderKey","openAPIV3SchemaValidators","openAPIV3Schema","exclusiveMinimum","exclusiveMaximum","maxItems","maxLength","maximum","minItems","minLength","minimum","pattern","uniqueItems","requiredFields","format","undefined","max","min","regexValidator","RegExp","stringFormatValidators","filter","item","indexOf","find","toString","errorMessage","regexp","match","formRules","formRulesGenerator","wildcardHostname","isIpv4","isValidCIDR","isValidMac","isDefined","isEmpty","versionTest","ending","CP_VERSIONS","join","versionValidator","test","hostValidator","portValidator","isNaN","cidrValidator","cidrArrayValid","arr","every","_vm$componentForType","componentForType","listComponent","tag","variable","schema","example","description","validateRequired","variableOptions","validationRules","setValue","directives","rawName","isValid","validationErrors","neu","KeyValue","Checkbox","_this$variable","_this$schema","opts","enum","opt","JSON","stringify","_this$variable2","reduce","errs","rule","message","_this$componentForTyp","_this$componentForTyp2","parse","Variable","clusterClass","errorCount","randomStr","old","updateVariableDefaults","_this$clusterClass","allVariableDefinitions","variableNames","machineScopedJsonPatches","names","patch","_patch$valueFrom","valueFromVariable","valueFrom","parsedName","split","includes","_this$clusterClass2","matchName","matchKey","patches","forEach","p","definitions","definition","_definition$selector","matchMachines","selector","matchResources","jsonPatches","existingIdx","findIndex","acc","existingVar","_find","_neuDef$schema","_neuDef$schema2","neuDef","n","oldDefault","d","newDefault","def","_def$schema","_def$schema2","_refs","_refs2","_this$variableDefinit","refs","inputEl","$el","nextInputEl","_prevClass","r","get","keyField","componentTestid","select","obj","selected","noDataKey","controlPlaneName","controlPlaneKind","controlPlaneNamespace","machineDeploymentsCount","machineDeploymentsList","count","machinePoolsCount","machinePoolsList","ClusterCardField","cloneData","metadata","annotations","controlPlane","kind","_this$value5","namespace","_this$value6","_this$value7","w","_this$value8","_this$value9","ClusterClassCard","resetSelected","el","capitalize","defaultTopologyConfig","defaultClusterNetwork","defaultCPEndpointConfig","CruResource","Loading","NameNsDescription","WorkerItem","NetworkSection","ControlPlaneEndpointSection","ClusterClassVariables","CardGrid","mixins","CreateEditView","FormValidation","preselectedClass","clusterClasses","beforeMount","initSpecs","store","stepClusterClass","label","subtext","descriptionKey","ready","weight","stepConfiguration","stepVariables","fvFormRuleSets","path","credentialId","credential","versionInfo","step","s","stepConfigurationRequires","modeOptions","fvExtraRules","cidr","_this$value10","_this$value11","_this$value12","_this$value13","_this$value14","nameValid","versionTestString","versionValid","controlPlaneEndpointPortValid","controlPlaneEndpointHostValid","machineDeploymentsValid","machinePoolsValid","networkPodsValid","networkServicesValid","networkValid","_this$value15","_this$value16","_this$clusterClassObj","_this$clusterClassObj2","_this$clusterClassObj3","currentObject","addType","_obj$metadata","id","subtype","set","setClassInfo","x","unescape","setClass","setNamespace","_this$clusterClassObj4","clusterClassName","_this$clusterClassObj5","clusterClassNs","clear","save","err","cancelCredential","cruresource","emitOrRoute","$router","params","_this$value$spec$clus","_this$value$spec$clus2","_n","initialValue","liveValue","ClusterConfig","getClusterClasses","then","cc","catch","route","$route","subType","query","SUB_TYPE","classFromURL","QUERY_PARAMS","CLASS","curClass","curNs","classFromValue","escape","capiProviders","allClusterClasses","dispatch","CAPI","CLUSTER_CLASS"],"mappings":"qLAAA,W,qCCAA,W,2CCAA,IAAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAUF,EAAIG,MAAMC,YAAY,OAAOF,EAAG,MAAM,CAACA,EAAG,MAAM,CAACG,YAAY,aAAa,CAACH,EAAG,MAAM,CAACG,YAAY,cAAc,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,QAAUI,EAAQE,QAE5C,IAAIC,EAAM,EAAQ,QAAqElB,QAC1EkB,EAAI,WAAYH,GAAS,EAAM,CAAC,WAAY,EAAM,YAAa","file":"capi-0.3.0.umd.min.edit.js","sourcesContent":["export * from \"-!../../../node_modules/vue-style-loader/index.js??ref--10-oneOf-1-0!../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-3!../../../node_modules/sass-loader/dist/cjs.js??ref--10-oneOf-1-4!../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./CardGrid.vue?vue&type=style&index=0&id=e4d7fae2&prod&lang=scss&scoped=true&\"","export * from \"-!../../../../node_modules/vue-style-loader/index.js??ref--10-oneOf-1-0!../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-3!../../../../node_modules/sass-loader/dist/cjs.js??ref--10-oneOf-1-4!../../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=83817b0e&prod&lang=scss&scoped=true&\"","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return _c('div',[_c('div',{staticClass:\"row mb-20\"},[_c('div',{staticClass:\"col span-3\"},[_c('LabeledInput',{attrs:{\"value\":_vm.apiServerPort,\"mode\":_vm.mode,\"disabled\":_vm.clusterIsAlreadyCreated,\"label\":_vm.t('capi.cluster.networking.apiServerPort'),\"rules\":_vm.rules.apiServerPort,\"required\":\"\"},on:{\"input\":function($event){return _vm.$emit('api-server-port-changed', $event)}}})],1),_c('div',{staticClass:\"col span-3\"},[_c('LabeledInput',{attrs:{\"value\":_vm.serviceDomain,\"mode\":_vm.mode,\"disabled\":_vm.clusterIsAlreadyCreated,\"label\":_vm.t('capi.cluster.networking.serviceDomain'),\"rules\":_vm.rules.serviceDomain},on:{\"input\":function($event){return _vm.$emit('service-domain-changed', $event)}}})],1)]),_c('div',{staticClass:\"row mb-20\"},[_c('div',{staticClass:\"col span-3\"},[_c('ArrayList',{attrs:{\"value\":_vm.podsCidrBlocks,\"protip\":false,\"mode\":_vm.mode,\"title\":_vm.t('capi.cluster.networking.pods'),\"rules\":_vm.rules.pods},on:{\"input\":function($event){return _vm.$emit('pods-cidr-blocks-changed', $event)}}})],1),_c('div',{staticClass:\"col span-3\"},[_c('ArrayList',{attrs:{\"value\":_vm.servicesCidrBlocks,\"protip\":false,\"mode\":_vm.mode,\"title\":_vm.t('capi.cluster.networking.services'),\"rules\":_vm.rules.services},on:{\"input\":function($event){return _vm.$emit('services-cidr-blocks-changed', $event)}}})],1)])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\nimport Vue from 'vue';\nimport { mapGetters } from 'vuex';\nimport { _EDIT } from '@shell/config/query-params';\nimport ArrayList from '@shell/components/form/ArrayList.vue';\nimport LabeledInput from '@components/Form/LabeledInput/LabeledInput.vue';\n\nexport default Vue.extend({\n components: {\n LabeledInput,\n ArrayList\n },\n props: {\n value: {\n type: Object,\n required: true,\n },\n mode: {\n type: String,\n required: true,\n },\n rules: {\n default: () => ({\n serviceDomain: [],\n apiServerPort: [],\n pods: [],\n services: []\n }),\n type: Object,\n },\n },\n computed: {\n ...mapGetters({ t: 'i18n/t' }),\n clusterIsAlreadyCreated() {\n return this.mode === _EDIT;\n },\n apiServerPort() {\n return this.value?.apiServerPort;\n },\n serviceDomain() {\n return this.value?.serviceDomain;\n },\n podsCidrBlocks() {\n return this.value?.pods?.cidrBlocks;\n },\n servicesCidrBlocks() {\n return this.value?.services?.cidrBlocks;\n },\n }\n});\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./NetworkSection.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./NetworkSection.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./NetworkSection.vue?vue&type=template&id=4bcad008&\"\nimport script from \"./NetworkSection.vue?vue&type=script&lang=ts&\"\nexport * from \"./NetworkSection.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/cli-service/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","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".label[data-v-7407ec5d]{display:flex;flex-direction:column;margin-bottom:10px}.label .text-label[data-v-7407ec5d]{font-size:12px;line-height:18px;color:var(--darker)}.label .value[data-v-7407ec5d]{line-height:18px}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","// style-loader: Adds some css to the DOM by adding a \n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./ClusterCardField.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./ClusterCardField.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ClusterCardField.vue?vue&type=template&id=7407ec5d&scoped=true&\"\nimport script from \"./ClusterCardField.vue?vue&type=script&lang=js&\"\nexport * from \"./ClusterCardField.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ClusterCardField.vue?vue&type=style&index=0&id=7407ec5d&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7407ec5d\",\n null\n \n)\n\nexport default component.exports","\nimport Vue from 'vue';\nimport { mapGetters } from 'vuex';\nimport ClusterCardField from './ClusterCardField.vue';\nimport { Worker } from './../../types/capi';\n\nexport default Vue.extend({\n name: 'ClusterClassCard',\n components: { ClusterCardField },\n\n props: {\n value: {\n type: Object,\n required: true,\n },\n selected: {\n type: Boolean,\n default: false\n }\n },\n\n data() {\n return {\n cloneData: true,\n errors: []\n };\n },\n\n computed: {\n ...mapGetters({ t: 'i18n/t' }),\n\n name() {\n return this.value?.metadata?.name || '';\n },\n description() {\n return this.value?.metadata?.annotations?.description || '';\n },\n controlPlaneName() {\n return this.value?.spec?.controlPlane?.ref?.name;\n },\n controlPlaneKind() {\n return this.value?.spec?.controlPlane?.ref?.kind;\n },\n controlPlaneNamespace() {\n return this.value?.spec?.controlPlane?.ref?.namespace;\n },\n machineDeploymentsCount() {\n return this.value?.spec?.workers?.machineDeployments?.length;\n },\n machineDeploymentsList() {\n return this.value?.spec?.workers?.machineDeployments?.map((w: Worker) => w.class).join(', ') || '';\n },\n machinePoolsCount() {\n return this.value?.spec?.workers?.machinePools?.length;\n },\n machinePoolsList() {\n return this.value?.spec?.workers?.machinePools?.map((w: Worker) => w.class).join(', ') || '';\n }\n },\n});\n","import mod from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../../node_modules/thread-loader/dist/cjs.js!../../../../node_modules/babel-loader/lib/index.js!../../../../node_modules/ts-loader/index.js??ref--15-3!../../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=40d0155a&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=ts&\"\nexport * from \"./index.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=40d0155a&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"40d0155a\",\n null\n \n)\n\nexport default component.exports","\nimport Vue from 'vue';\nimport type { PropType } from 'vue';\nimport { get } from '@shell/utils/object';\nimport capitalize from 'lodash/capitalize';\nimport ClusterClassCard from './../components/ClusterClassCard/index.vue';\n\ninterface Card {\n id: String,\n obj: Object,\n selected: Boolean\n}\n\nexport default Vue.extend({\n components: { ClusterClassCard },\n name: 'CardGrid',\n\n props: {\n rows: {\n type: Array as PropType,\n required: true,\n },\n\n keyField: {\n type: String,\n default: 'key',\n },\n\n noDataKey: {\n type: String,\n default: 'sortableTable.noRows',\n },\n\n /**\n * Inherited global identifier prefix for tests\n * Define a term based on the parent component to avoid conflicts on multiple components\n */\n componentTestid: {\n type: String,\n default: 'select-card-grid'\n }\n },\n\n methods: {\n get,\n select(row: Card[], idx: number) {\n this.resetSelected();\n this.rows[idx].selected = true;\n this.$emit('clicked', row, idx);\n },\n resetSelected() {\n this.rows.map((el) => {\n el.selected = false;\n });\n },\n capitalize\n },\n});\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./CardGrid.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./CardGrid.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./CardGrid.vue?vue&type=template&id=e4d7fae2&scoped=true&\"\nimport script from \"./CardGrid.vue?vue&type=script&lang=ts&\"\nexport * from \"./CardGrid.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./CardGrid.vue?vue&type=style&index=0&id=e4d7fae2&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"e4d7fae2\",\n null\n \n)\n\nexport default component.exports","\nimport Vue, { VueConstructor } from 'vue';\nimport { set, clone } from '@shell/utils/object';\nimport { clear } from '@shell/utils/array';\nimport LabeledInput from '@components/Form/LabeledInput/LabeledInput.vue';\nimport NameNsDescription from '@shell/components/form/NameNsDescription.vue';\nimport FormValidation from '@shell/mixins/form-validation';\nimport Loading from '@shell/components/Loading.vue';\nimport CruResource from '@shell/components/CruResource.vue';\nimport CreateEditView from '@shell/mixins/create-edit-view';\nimport { Translation } from '@rancher/shell/types/t';\nimport ClusterClassVariables from '../components/CCVariables/index.vue';\nimport {\n versionTest, versionValidator, hostValidator, portValidator, cidrValidator, cidrArrayValid\n} from '../util/validators';\nimport {\n CAPIClusterTopology, CAPIClusterNetwork, CAPIClusterCPEndpoint, ClusterClass, Worker\n} from './../types/capi';\nimport CardGrid from './../components/CardGrid.vue';\nimport WorkerItem from './WorkerItem.vue';\nimport NetworkSection from './NetworkSection.vue';\nimport ControlPlaneEndpointSection from './ControlPlaneEndpointSection.vue';\n\nconst defaultTopologyConfig: CAPIClusterTopology = {\n version: '',\n class: '',\n workers: { machineDeployments: [], machinePools: [] }\n};\nconst defaultClusterNetwork: CAPIClusterNetwork = {\n apiServerPort: 6443,\n pods: { cidrBlocks: [] },\n serviceDomain: '',\n services: { cidrBlocks: [] }\n};\n\nconst defaultCPEndpointConfig: CAPIClusterCPEndpoint = {\n host: '',\n port: 49152\n};\n\ninterface Step {\n name: String\n}\n\nexport default (Vue as VueConstructor<\n Vue & InstanceType\n>).extend({\n name: 'ClusterConfig',\n components: {\n CruResource,\n Loading,\n NameNsDescription,\n LabeledInput,\n WorkerItem,\n NetworkSection,\n ControlPlaneEndpointSection,\n ClusterClassVariables,\n CardGrid\n },\n mixins: [CreateEditView, FormValidation],\n props: {\n mode: {\n type: String,\n required: true,\n },\n value: {\n type: Object,\n required: true,\n },\n preselectedClass: {\n type: String,\n required: false,\n default: ''\n },\n clusterClasses: {\n type: Array,\n required: true\n }\n },\n beforeMount() {\n this.initSpecs();\n this.$nextTick(() => {\n this.loading = false;\n });\n },\n data() {\n const store = this.$store as {[key: string]: any};\n const t = store.getters['i18n/t'] as Translation;\n const stepClusterClass = {\n name: 'stepClusterClass',\n title: t('capi.cluster.steps.clusterClass.title'),\n label: t('capi.cluster.steps.clusterClass.label'),\n subtext: '',\n descriptionKey: 'capi.cluster.steps.clusterClass.description',\n ready: false,\n weight: 30\n };\n const stepConfiguration = {\n name: 'stepConfiguration',\n title: t('capi.cluster.steps.configuration.title'),\n label: t('capi.cluster.steps.configuration.label'),\n subtext: '',\n descriptionKey: 'capi.cluster.steps.configuration.description',\n ready: false,\n weight: 30\n };\n\n const stepVariables = {\n name: 'stepVariables',\n title: t('capi.cluster.steps.variables.title'),\n label: t('capi.cluster.steps.variables.label'),\n subtext: '',\n descriptionKey: 'capi.cluster.steps.variables.description',\n ready: true,\n weight: 30\n };\n const addSteps = !!this.preselectedClass ? [stepConfiguration, stepVariables] : [stepClusterClass, stepConfiguration, stepVariables];\n\n return {\n addSteps,\n fvFormRuleSets: [\n { path: 'metadata.name', rules: ['required'] },\n { path: 'spec.topology.version', rules: ['required', 'version'] },\n { path: 'spec.controlPlaneEndpoint.host', rules: ['host'] },\n { path: 'spec.controlPlaneEndpoint.port', rules: ['port'] },\n { path: 'spec.clusterNetwork.serviceDomain', rules: ['host'] },\n { path: 'spec.clusterNetwork.apiServerPort', rules: ['required', 'port'] },\n { path: 'spec.clusterNetwork.pods', rules: ['cidr'] },\n { path: 'spec.clusterNetwork.services', rules: ['cidr'] }\n ],\n credentialId: '',\n credential: null,\n versionInfo: {},\n allNamespaces: [],\n defaultWorkerAddValue: {\n name: '',\n class: ''\n },\n variablesReady: true,\n clusterClassObj: null,\n loading: true\n };\n },\n\n watch: {\n clusterClassObj(neu) {\n const step = this.addSteps.find((s: Step) => s.name === 'stepClusterClass');\n\n if (step) {\n this.$set(step, 'ready', !!neu);\n }\n },\n\n stepConfigurationRequires(neu) {\n const step = this.addSteps.find((s: Step) => s.name === 'stepConfiguration');\n\n this.$set(step, 'ready', neu);\n },\n\n variablesReady(neu) {\n const step = this.addSteps.find((s: Step) => s.name === 'stepVariables');\n\n this.$set(step, 'ready', neu);\n }\n },\n\n computed: {\n modeOptions() {\n return [{\n label: this.t('capi.cluster.secret.reuse'),\n value: false,\n }, {\n label: this.t('capi.cluster.secret.create'),\n value: true,\n }];\n },\n fvExtraRules() {\n return {\n version: versionValidator(this.$store.getters['i18n/t'], this.controlPlane),\n host: hostValidator(this.$store.getters['i18n/t']),\n port: portValidator(this.$store.getters['i18n/t']),\n cidr: cidrValidator(this.$store.getters['i18n/t'])\n };\n },\n stepConfigurationRequires() {\n const nameValid: boolean = !!this.value.metadata.name;\n const versionTestString: RegExp = versionTest(this.$store.getters['i18n/t'], this.controlPlane);\n const versionValid: boolean = this.value?.spec?.topology?.version && !!(this.value?.spec?.topology?.version.match(versionTestString));\n const controlPlaneEndpointPortValid: boolean = !portValidator(this.$store.getters['i18n/t'])(this.value?.spec?.controlPlaneEndpoint?.port);\n const controlPlaneEndpointHostValid: boolean = !hostValidator(this.$store.getters['i18n/t'])(this.value?.spec?.controlPlaneEndpoint?.host);\n const machineDeploymentsValid: boolean = this.value?.spec?.topology?.workers?.machineDeployments?.length > 0 && !!this.value?.spec?.topology?.workers?.machineDeployments[0]?.name && !!this.value?.spec?.topology?.workers?.machineDeployments[0]?.class;\n const machinePoolsValid: boolean = this.value?.spec?.topology?.workers?.machinePools?.length > 0 && !!this.value?.spec?.topology?.workers?.machinePools[0]?.name && !!this.value?.spec?.topology?.workers?.machinePools[0]?.class;\n const networkPodsValid: boolean = !this.value?.spec?.clusterNetwork?.pods?.cidrBlocks || cidrArrayValid(this.value.spec.clusterNetwork.pods.cidrBlocks);\n const networkServicesValid: boolean = !this.value?.spec?.clusterNetwork?.services?.cidrBlocks || cidrArrayValid(this.value.spec.clusterNetwork.services.cidrBlocks);\n const networkValid:boolean = !!this.value?.spec?.clusterNetwork?.apiServerPort && !isNaN(this.value?.spec?.clusterNetwork?.apiServerPort) && networkPodsValid && networkServicesValid;\n\n return nameValid && versionValid && controlPlaneEndpointHostValid && controlPlaneEndpointPortValid && networkValid && (machineDeploymentsValid || machinePoolsValid);\n },\n clusterNetwork() {\n return this.value?.spec?.clusterNetwork;\n },\n controlPlaneEndpoint() {\n return this.value?.spec?.controlPlaneEndpoint;\n },\n machineDeploymentOptions() {\n return this.clusterClassObj?.spec?.workers?.machineDeployments?.map( (w: Worker) => w.class);\n },\n machinePoolOptions() {\n return this.clusterClassObj?.spec?.workers?.machinePools?.map( (w: Worker) => w.class);\n },\n controlPlane() {\n return this.clusterClassObj?.spec?.controlPlane?.ref?.name;\n },\n clusterClassOptions() {\n const out: any[] = [];\n const currentObject = this.clusterClassObj;\n\n this.clusterClasses.forEach((obj: ClusterClass) => {\n addType(obj);\n });\n\n return out;\n\n function addType(obj: {[key: string]: any}) {\n const id = obj?.metadata?.name;\n const subtype = {\n id,\n obj,\n selected: currentObject === obj\n };\n\n out.push(subtype);\n }\n },\n },\n methods: {\n set,\n setClassInfo(name: string) {\n this.clusterClassObj = this.clusterClasses.find((x: ClusterClass) => {\n const split = unescape(name).split('/');\n\n return x.metadata.namespace === split[0] && x.metadata.name === split[1];\n });\n if ( !!this.clusterClassObj ) {\n this.setClass();\n this.setNamespace();\n } else {\n this.errors.push(this.t('error.clusterClassNotFound'));\n }\n },\n setClass() {\n const clusterClassName = this.clusterClassObj?.metadata?.name;\n\n this.set(this.value.spec.topology, 'class', clusterClassName);\n },\n setNamespace() {\n const clusterClassNs = this.clusterClassObj?.metadata?.namespace;\n\n this.set(this.value.metadata, 'namespace', clusterClassNs);\n },\n async saveOverride() {\n if ( this.errors ) {\n clear(this.errors);\n }\n try {\n await this.value.save();\n\n return this.done();\n } catch (err) {\n this.errors.push(err);\n }\n },\n\n initSpecs() {\n if ( !this.value.spec ) {\n set(this.value, 'spec', { });\n }\n if ( !this.value.spec.topology ) {\n set(this.value.spec, 'topology', clone(defaultTopologyConfig));\n }\n\n if ( !this.value.spec.clusterNetwork ) {\n set(this.value.spec, 'clusterNetwork', clone(defaultClusterNetwork));\n }\n\n if ( !this.value.spec.controlPlaneEndpoint ) {\n set(this.value.spec, 'controlPlaneEndpoint', clone(defaultCPEndpointConfig));\n }\n if ( this.preselectedClass) {\n this.setClassInfo(this.preselectedClass);\n }\n },\n cancelCredential() {\n if ( this.$refs.cruresource ) {\n this.$refs.cruresource.emitOrRoute();\n }\n },\n cancel() {\n this.$router.push({\n name: 'c-cluster-manager-capi',\n params: {},\n });\n },\n done() {\n this.$router.push({\n name: 'c-cluster-manager-capi',\n params: {},\n });\n },\n clickedType(obj: {[key:string]: any}) {\n this.clusterClassObj = this.clusterClasses.find((x: ClusterClass) => x.metadata.name === obj.id);\n this.setClass();\n this.setNamespace();\n },\n podsCidrBlocksChanged(val: string[]) {\n if ( !this.value.spec.clusterNetwork?.pods ) {\n set(this.value.spec.clusterNetwork, 'pods', []);\n }\n set(this.value.spec.clusterNetwork.pods, 'cidrBlocks', val);\n },\n servicesCidrBlocksChanged(val: string[]) {\n if ( !this.value.spec.clusterNetwork?.services ) {\n set(this.value.spec.clusterNetwork, 'services', []);\n }\n set(this.value.spec.clusterNetwork.services, 'cidrBlocks', val);\n }\n }\n});\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./ClusterConfig.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./ClusterConfig.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./ClusterConfig.vue?vue&type=template&id=631fe087&scoped=true&\"\nimport script from \"./ClusterConfig.vue?vue&type=script&lang=ts&\"\nexport * from \"./ClusterConfig.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./ClusterConfig.vue?vue&type=style&index=0&id=631fe087&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"631fe087\",\n null\n \n)\n\nexport default component.exports","// style-loader: Adds some css to the DOM by adding a \n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--14-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=337ae8b8&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=337ae8b8&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"337ae8b8\",\n null\n \n)\n\nexport default component.exports","import Dashboard from '../pages/index.vue';\n\nconst routes = [\n {\n name: 'c-cluster-manager-capi',\n path: '/c/:cluster/manager/capi',\n component: Dashboard,\n },\n];\n\nexport default routes;\n","import { LABELS } from '../types/capi';\n\nexport default function(resource: any) {\n if (resource?.metadata?.labels?.[LABELS.AUTO_IMPORT] === 'true') {\n delete resource.metadata.labels[LABELS.AUTO_IMPORT];\n } else {\n if (!resource.metadata.labels) {\n resource.metadata.labels = {};\n }\n resource.metadata.labels[LABELS.AUTO_IMPORT] = 'true';\n }\n try {\n resource.save();\n } catch (err) {\n const title = resource.t('resource.errors.update', { name: resource.name });\n\n resource.$dispatch('growl/error', {\n title, message: err, timeout: 5000\n }, { root: true });\n }\n}\n","import { importTypes } from '@rancher/auto-import';\nimport {\n ActionLocation, IPlugin, PanelLocation, TableColumnLocation, TabLocation\n} from '@shell/core/types';\nimport { _CLONE, _CREATE, _EDIT } from '@shell/config/query-params';\nimport { MANAGEMENT, CAPI as RANCHER_CAPI } from '@shell/config/types';\nimport { LABELS, CAPI as TURTLES_CAPI } from './types/capi';\nimport capiRouting from './routes/capi-routing';\nimport toggleAutoImport from './util/auto-import';\n\n// Init the package\nexport default function(plugin: IPlugin): void {\n // Auto-import model, detail, edit from the folders\n importTypes(plugin);\n\n // Provide plugin metadata from package.json\n plugin.metadata = require('./package.json');\n\n plugin.addProduct(require('./config/capi'));\n\n // Add Vue Routes\n plugin.addRoutes(capiRouting);\n\n // add tab to namespace edit\n plugin.addTab(\n TabLocation.RESOURCE_DETAIL,\n {\n resource: ['namespace'],\n cluster: ['local'],\n mode: [_CREATE, _CLONE, _EDIT, 'config']\n },\n {\n name: 'capi-auto-import',\n labelKey: 'capi.autoImport.label',\n weight: -5,\n showHeader: true,\n component: () => import('./components/AutoImport.vue')\n }\n );\n\n // add enable auto-import action to namespace table\n plugin.addAction(ActionLocation.TABLE,\n { path: [{ urlPath: '/c/local/explorer/projectsnamespaces', exact: true }, { urlPath: 'cluster.x-k8s.io.cluster', endsWith: true }] },\n {\n labelKey: 'capi.autoImport.enableAction',\n icon: 'icon-plus',\n enabled(target: any) {\n const isProject = target.type === MANAGEMENT.PROJECT;\n\n return !isProject && target?.metadata?.labels?.[LABELS.AUTO_IMPORT] !== 'true';\n },\n invoke(opts, resources = []) {\n resources.forEach((ns) => {\n toggleAutoImport(ns);\n });\n }\n });\n\n // add disable auto-import action to namespace table\n plugin.addAction(ActionLocation.TABLE,\n { path: [{ urlPath: '/c/local/explorer/projectsnamespaces', exact: true }, { urlPath: 'cluster.x-k8s.io.cluster', endsWith: true }] },\n {\n labelKey: 'capi.autoImport.disableAction',\n icon: 'icon-minus',\n enabled(target: any) {\n const isProject = target.type === MANAGEMENT.PROJECT;\n\n return !isProject && target?.metadata?.labels?.[LABELS.AUTO_IMPORT] === 'true';\n },\n invoke(opts, resources = []) {\n resources.forEach((ns) => {\n toggleAutoImport(ns);\n });\n }\n });\n\n // add column to namespace table\n plugin.addTableColumn(\n TableColumnLocation.RESOURCE,\n { path: [{ urlPath: '/c/local/explorer/projectsnamespaces', exact: true }] },\n {\n name: 'capi-auto-import',\n labelKey: 'capi.autoImport.label',\n getValue: (row: any) => {\n return row?.labels?.[LABELS.AUTO_IMPORT] === 'true';\n },\n width: 200,\n align: 'center',\n formatter: 'AutoImportState'\n }\n );\n\n // add warning to cluster mgmt resource list\n plugin.addPanel(PanelLocation.RESOURCE_LIST,\n { resource: ['provisioning.cattle.io.cluster'] },\n { component: () => import('./components/ClusterListBanner.vue') }\n );\n\n plugin.addPanel(PanelLocation.RESOURCE_LIST,\n {\n resource: [RANCHER_CAPI.CAPI_CLUSTER,\n TURTLES_CAPI.CLUSTER_CLASS,\n TURTLES_CAPI.PROVIDER,\n RANCHER_CAPI.MACHINE,\n RANCHER_CAPI.MACHINE_SET,\n RANCHER_CAPI.MACHINE_DEPLOYMENT]\n },\n { component: () => import('./components/ExperimentalBanner.vue') }\n );\n\n plugin.addPanel(PanelLocation.DETAILS_MASTHEAD,\n {\n resource: [RANCHER_CAPI.CAPI_CLUSTER,\n TURTLES_CAPI.CLUSTER_CLASS,\n TURTLES_CAPI.PROVIDER,\n RANCHER_CAPI.MACHINE,\n RANCHER_CAPI.MACHINE_SET,\n RANCHER_CAPI.MACHINE_DEPLOYMENT]\n },\n { component: () => import('./components/ExperimentalBanner.vue') }\n );\n}\n","import './setPublicPath'\nimport mod from '~entry'\nexport default mod\nexport * from '~entry'\n","import { get } from './object';\nimport { strPad } from './string';\n\n// Based on https://github.com/emberjs/ember.js/blob/master/packages/@ember/-internals/runtime/lib/type-of.js\n// and https://github.com/emberjs/ember.js/blob/master/packages/@ember/-internals/runtime/lib/mixins/array.js\n/*\nCopyright (c) 2019 Yehuda Katz, Tom Dale and Ember.js contributors\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of\nthis software and associated documentation files (the \"Software\"), to deal in\nthe Software without restriction, including without limitation the rights to\nuse, copy, modify, merge, publish, distribute, sublicense, and/or sell copies\nof the Software, and to permit persons to whom the Software is furnished to do\nso, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n*/\n\n// ........................................\n// TYPING & ARRAY MESSAGING\n//\nconst TYPE_MAP = {\n '[object Boolean]': 'boolean',\n '[object Number]': 'number',\n '[object String]': 'string',\n '[object Function]': 'function',\n '[object Array]': 'array',\n '[object Date]': 'date',\n '[object RegExp]': 'regexp',\n '[object Object]': 'object',\n '[object FileList]': 'filelist',\n};\n\nconst { toString } = Object.prototype;\n\n/**\n Returns a consistent type for the passed object.\n\n Use this instead of the built-in `typeof` to get the type of an item.\n It will return the same result across all browsers and includes a bit\n more detail. Here is what will be returned:\n\n | Return Value | Meaning |\n |---------------|------------------------------------------------------|\n | 'string' | String primitive or String object. |\n | 'number' | Number primitive or Number object. |\n | 'boolean' | Boolean primitive or Boolean object. |\n | 'null' | Null value |\n | 'undefined' | Undefined value |\n | 'function' | A function |\n | 'array' | An instance of Array |\n | 'regexp' | An instance of RegExp |\n | 'date' | An instance of Date |\n | 'filelist' | An instance of FileList |\n | 'error' | An instance of the Error object |\n | 'object' | A JavaScript object |\n\n Examples:\n\n import { typeOf } from '@shell/utils/type-of';\n\n typeOf(); // 'undefined'\n typeOf(null); // 'null'\n typeOf(undefined); // 'undefined'\n typeOf('michael'); // 'string'\n typeOf(new String('michael')); // 'string'\n typeOf(101); // 'number'\n typeOf(new Number(101)); // 'number'\n typeOf(true); // 'boolean'\n typeOf(new Boolean(true)); // 'boolean'\n typeOf(A); // 'function'\n typeOf([1, 2, 90]); // 'array'\n typeOf(/abc/); // 'regexp'\n typeOf(new Date()); // 'date'\n typeOf(event.target.files); // 'filelist'\n typeOf(new Error('teamocil')); // 'error'\n\n // 'normal' JavaScript object\n typeOf({ a: 'b' }); // 'object'\n*/\nexport function typeOf(item) {\n if (item === null) {\n return 'null';\n }\n if (item === undefined) {\n return 'undefined';\n }\n let ret = TYPE_MAP[toString.call(item)] || 'object';\n\n if (ret === 'object') {\n if (item instanceof Error) {\n ret = 'error';\n } else if (item instanceof Date) {\n ret = 'date';\n }\n }\n\n return ret;\n}\n\nexport function spaceship(a, b) {\n const diff = a - b;\n\n return (diff > 0) - (diff < 0);\n}\n\nconst TYPE_ORDER = {\n undefined: 0,\n null: 1,\n boolean: 2,\n number: 3,\n string: 4,\n array: 5,\n object: 6,\n instance: 7,\n function: 8,\n class: 9,\n date: 10,\n};\n\nexport function compare(a, b) {\n const typeA = typeOf(a);\n const typeB = typeOf(b);\n\n const res = spaceship(TYPE_ORDER[typeA], TYPE_ORDER[typeB]);\n\n if ( res ) {\n return res;\n }\n\n switch (typeA) {\n case 'boolean':\n case 'number':\n return spaceship(a, b);\n\n case 'string':\n return spaceship(a.localeCompare(b), 0);\n\n case 'array': {\n const aLen = a.length;\n const bLen = b.length;\n const len = Math.min(aLen, bLen);\n\n for (let i = 0; i < len; i++) {\n const r = compare(a[i], b[i]);\n\n if (r !== 0) {\n return r;\n }\n }\n\n // all elements are equal now\n // shorter array should be ordered first\n return spaceship(aLen, bLen);\n }\n case 'date':\n return spaceship(a.getTime(), b.getTime());\n }\n\n return 0;\n}\n\nexport function parseField(str) {\n const parts = str.split(/:/);\n\n if ( parts.length === 2 && parts[1] === 'desc' ) {\n return { field: parts[0], reverse: true };\n } else {\n return { field: str, reverse: false };\n }\n}\n\nexport function sortBy(ary, keys, desc) {\n if ( !Array.isArray(keys) ) {\n keys = [keys];\n }\n\n return (ary || []).slice().sort((objA, objB) => {\n for ( let i = 0 ; i < keys.length ; i++ ) {\n const parsed = parseField(keys[i]);\n const a = get(objA, parsed.field);\n const b = get(objB, parsed.field);\n let res = compare(a, b);\n\n if ( res ) {\n if ( desc ) {\n res *= -1;\n }\n\n if ( parsed.reverse ) {\n res *= -1;\n }\n\n return res;\n }\n }\n\n return 0;\n });\n}\n\n// Turn foo1-bar2 into foo0000000001-bar0000000002 so that the numbers sort numerically\nconst splitRegex = /([^\\d]+)/;\nconst notNumericRegex = /^[0-9]+$/;\n\nexport function sortableNumericSuffix(str) {\n if ( typeof str !== 'string' ) {\n return str;\n }\n\n return str.split(splitRegex).map((x) => x.match(notNumericRegex) ? strPad(x, 10, '0') : x).join('').trim();\n}\n\nexport function isNumeric(num) {\n return !!`${ num }`.match(notNumericRegex);\n}\n","export * from \"-!../../../../vue-style-loader/index.js??ref--10-oneOf-1-0!../../../../@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../../@vue/cli-service/node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../../postcss-loader/src/index.js??ref--10-oneOf-1-3!../../../../sass-loader/dist/cjs.js??ref--10-oneOf-1-4!../../../../cache-loader/dist/cjs.js??ref--2-0!../../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./LabeledTooltip.vue?vue&type=style&index=0&id=6fc47e64&prod&lang=scss&\"","var ListCache = require('./_ListCache'),\n stackClear = require('./_stackClear'),\n stackDelete = require('./_stackDelete'),\n stackGet = require('./_stackGet'),\n stackHas = require('./_stackHas'),\n stackSet = require('./_stackSet');\n\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Stack(entries) {\n var data = this.__data__ = new ListCache(entries);\n this.size = data.size;\n}\n\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype['delete'] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\n\nmodule.exports = Stack;\n","export * from \"-!../../../node_modules/vue-style-loader/index.js??ref--10-oneOf-1-0!../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../node_modules/postcss-loader/src/index.js??ref--10-oneOf-1-3!../../../node_modules/sass-loader/dist/cjs.js??ref--10-oneOf-1-4!../../../node_modules/cache-loader/dist/cjs.js??ref--2-0!../../../node_modules/@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=style&index=0&id=337ae8b8&prod&lang=scss&scoped=true&\"","var baseMerge = require('./_baseMerge'),\n createAssigner = require('./_createAssigner');\n\n/**\n * This method is like `_.assign` except that it recursively merges own and\n * inherited enumerable string keyed properties of source objects into the\n * destination object. Source properties that resolve to `undefined` are\n * skipped if a destination value exists. Array and plain object properties\n * are merged recursively. Other objects and value types are overridden by\n * assignment. Source objects are applied from left to right. Subsequent\n * sources overwrite property assignments of previous sources.\n *\n * **Note:** This method mutates `object`.\n *\n * @static\n * @memberOf _\n * @since 0.5.0\n * @category Object\n * @param {Object} object The destination object.\n * @param {...Object} [sources] The source objects.\n * @returns {Object} Returns `object`.\n * @example\n *\n * var object = {\n * 'a': [{ 'b': 2 }, { 'd': 4 }]\n * };\n *\n * var other = {\n * 'a': [{ 'c': 3 }, { 'e': 5 }]\n * };\n *\n * _.merge(object, other);\n * // => { 'a': [{ 'b': 2, 'c': 3 }, { 'd': 4, 'e': 5 }] }\n */\nvar merge = createAssigner(function(object, source, srcIndex) {\n baseMerge(object, source, srcIndex);\n});\n\nmodule.exports = merge;\n","/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length,\n result = Array(length);\n\n while (++index < length) {\n result[index] = iteratee(array[index], index, array);\n }\n return result;\n}\n\nmodule.exports = arrayMap;\n","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine(\"cronstrue\", [], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"cronstrue\"] = factory();\n\telse\n\t\troot[\"cronstrue\"] = factory();\n})(typeof self !== 'undefined' ? self : this, function() {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// define __esModule on exports\n/******/ \t__webpack_require__.r = function(exports) {\n/******/ \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n/******/ \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n/******/ \t\t}\n/******/ \t\tObject.defineProperty(exports, '__esModule', { value: true });\n/******/ \t};\n/******/\n/******/ \t// create a fake namespace object\n/******/ \t// mode & 1: value is a module id, require it\n/******/ \t// mode & 2: merge all properties of value into the ns\n/******/ \t// mode & 4: return value when already ns object\n/******/ \t// mode & 8|1: behave like require\n/******/ \t__webpack_require__.t = function(value, mode) {\n/******/ \t\tif(mode & 1) value = __webpack_require__(value);\n/******/ \t\tif(mode & 8) return value;\n/******/ \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n/******/ \t\tvar ns = Object.create(null);\n/******/ \t\t__webpack_require__.r(ns);\n/******/ \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n/******/ \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n/******/ \t\treturn ns;\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 4);\n/******/ })\n/************************************************************************/\n/******/ ([\n/* 0 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar stringUtilities_1 = __webpack_require__(1);\nvar cronParser_1 = __webpack_require__(2);\nvar ExpressionDescriptor = (function () {\n function ExpressionDescriptor(expression, options) {\n this.expression = expression;\n this.options = options;\n this.expressionParts = new Array(5);\n if (ExpressionDescriptor.locales[options.locale]) {\n this.i18n = ExpressionDescriptor.locales[options.locale];\n }\n else {\n console.warn(\"Locale '\" + options.locale + \"' could not be found; falling back to 'en'.\");\n this.i18n = ExpressionDescriptor.locales[\"en\"];\n }\n if (options.use24HourTimeFormat === undefined) {\n options.use24HourTimeFormat = this.i18n.use24HourTimeFormatByDefault();\n }\n }\n ExpressionDescriptor.toString = function (expression, _a) {\n var _b = _a === void 0 ? {} : _a, _c = _b.throwExceptionOnParseError, throwExceptionOnParseError = _c === void 0 ? true : _c, _d = _b.verbose, verbose = _d === void 0 ? false : _d, _e = _b.dayOfWeekStartIndexZero, dayOfWeekStartIndexZero = _e === void 0 ? true : _e, use24HourTimeFormat = _b.use24HourTimeFormat, _f = _b.locale, locale = _f === void 0 ? \"en\" : _f;\n var options = {\n throwExceptionOnParseError: throwExceptionOnParseError,\n verbose: verbose,\n dayOfWeekStartIndexZero: dayOfWeekStartIndexZero,\n use24HourTimeFormat: use24HourTimeFormat,\n locale: locale\n };\n var descripter = new ExpressionDescriptor(expression, options);\n return descripter.getFullDescription();\n };\n ExpressionDescriptor.initialize = function (localesLoader) {\n ExpressionDescriptor.specialCharacters = [\"/\", \"-\", \",\", \"*\"];\n localesLoader.load(ExpressionDescriptor.locales);\n };\n ExpressionDescriptor.prototype.getFullDescription = function () {\n var description = \"\";\n try {\n var parser = new cronParser_1.CronParser(this.expression, this.options.dayOfWeekStartIndexZero);\n this.expressionParts = parser.parse();\n var timeSegment = this.getTimeOfDayDescription();\n var dayOfMonthDesc = this.getDayOfMonthDescription();\n var monthDesc = this.getMonthDescription();\n var dayOfWeekDesc = this.getDayOfWeekDescription();\n var yearDesc = this.getYearDescription();\n description += timeSegment + dayOfMonthDesc + dayOfWeekDesc + monthDesc + yearDesc;\n description = this.transformVerbosity(description, this.options.verbose);\n description = description.charAt(0).toLocaleUpperCase() + description.substr(1);\n }\n catch (ex) {\n if (!this.options.throwExceptionOnParseError) {\n description = this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();\n }\n else {\n throw \"\" + ex;\n }\n }\n return description;\n };\n ExpressionDescriptor.prototype.getTimeOfDayDescription = function () {\n var secondsExpression = this.expressionParts[0];\n var minuteExpression = this.expressionParts[1];\n var hourExpression = this.expressionParts[2];\n var description = \"\";\n if (!stringUtilities_1.StringUtilities.containsAny(minuteExpression, ExpressionDescriptor.specialCharacters) &&\n !stringUtilities_1.StringUtilities.containsAny(hourExpression, ExpressionDescriptor.specialCharacters) &&\n !stringUtilities_1.StringUtilities.containsAny(secondsExpression, ExpressionDescriptor.specialCharacters)) {\n description += this.i18n.atSpace() + this.formatTime(hourExpression, minuteExpression, secondsExpression);\n }\n else if (!secondsExpression &&\n minuteExpression.indexOf(\"-\") > -1 &&\n !(minuteExpression.indexOf(\",\") > -1) &&\n !(minuteExpression.indexOf(\"/\") > -1) &&\n !stringUtilities_1.StringUtilities.containsAny(hourExpression, ExpressionDescriptor.specialCharacters)) {\n var minuteParts = minuteExpression.split(\"-\");\n description += stringUtilities_1.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(), this.formatTime(hourExpression, minuteParts[0], \"\"), this.formatTime(hourExpression, minuteParts[1], \"\"));\n }\n else if (!secondsExpression &&\n hourExpression.indexOf(\",\") > -1 &&\n hourExpression.indexOf(\"-\") == -1 &&\n hourExpression.indexOf(\"/\") == -1 &&\n !stringUtilities_1.StringUtilities.containsAny(minuteExpression, ExpressionDescriptor.specialCharacters)) {\n var hourParts = hourExpression.split(\",\");\n description += this.i18n.at();\n for (var i = 0; i < hourParts.length; i++) {\n description += \" \";\n description += this.formatTime(hourParts[i], minuteExpression, \"\");\n if (i < hourParts.length - 2) {\n description += \",\";\n }\n if (i == hourParts.length - 2) {\n description += this.i18n.spaceAnd();\n }\n }\n }\n else {\n var secondsDescription = this.getSecondsDescription();\n var minutesDescription = this.getMinutesDescription();\n var hoursDescription = this.getHoursDescription();\n description += secondsDescription;\n if (description.length > 0 && minutesDescription.length > 0) {\n description += \", \";\n }\n description += minutesDescription;\n if (description.length > 0 && hoursDescription.length > 0) {\n description += \", \";\n }\n description += hoursDescription;\n }\n return description;\n };\n ExpressionDescriptor.prototype.getSecondsDescription = function () {\n var _this = this;\n var description = this.getSegmentDescription(this.expressionParts[0], this.i18n.everySecond(), function (s) {\n return s;\n }, function (s) {\n return stringUtilities_1.StringUtilities.format(_this.i18n.everyX0Seconds(), s);\n }, function (s) {\n return _this.i18n.secondsX0ThroughX1PastTheMinute();\n }, function (s) {\n return s == \"0\"\n ? \"\"\n : parseInt(s) < 20\n ? _this.i18n.atX0SecondsPastTheMinute()\n : _this.i18n.atX0SecondsPastTheMinuteGt20() || _this.i18n.atX0SecondsPastTheMinute();\n });\n return description;\n };\n ExpressionDescriptor.prototype.getMinutesDescription = function () {\n var _this = this;\n var secondsExpression = this.expressionParts[0];\n var hourExpression = this.expressionParts[2];\n var description = this.getSegmentDescription(this.expressionParts[1], this.i18n.everyMinute(), function (s) {\n return s;\n }, function (s) {\n return stringUtilities_1.StringUtilities.format(_this.i18n.everyX0Minutes(), s);\n }, function (s) {\n return _this.i18n.minutesX0ThroughX1PastTheHour();\n }, function (s) {\n try {\n return s == \"0\" && hourExpression.indexOf(\"/\") == -1 && secondsExpression == \"\"\n ? _this.i18n.everyHour()\n : parseInt(s) < 20\n ? _this.i18n.atX0MinutesPastTheHour()\n : _this.i18n.atX0MinutesPastTheHourGt20() || _this.i18n.atX0MinutesPastTheHour();\n }\n catch (e) {\n return _this.i18n.atX0MinutesPastTheHour();\n }\n });\n return description;\n };\n ExpressionDescriptor.prototype.getHoursDescription = function () {\n var _this = this;\n var expression = this.expressionParts[2];\n var description = this.getSegmentDescription(expression, this.i18n.everyHour(), function (s) {\n return _this.formatTime(s, \"0\", \"\");\n }, function (s) {\n return stringUtilities_1.StringUtilities.format(_this.i18n.everyX0Hours(), s);\n }, function (s) {\n return _this.i18n.betweenX0AndX1();\n }, function (s) {\n return _this.i18n.atX0();\n });\n return description;\n };\n ExpressionDescriptor.prototype.getDayOfWeekDescription = function () {\n var _this = this;\n var daysOfWeekNames = this.i18n.daysOfTheWeek();\n var description = null;\n if (this.expressionParts[5] == \"*\") {\n description = \"\";\n }\n else {\n description = this.getSegmentDescription(this.expressionParts[5], this.i18n.commaEveryDay(), function (s) {\n var exp = s;\n if (s.indexOf(\"#\") > -1) {\n exp = s.substr(0, s.indexOf(\"#\"));\n }\n else if (s.indexOf(\"L\") > -1) {\n exp = exp.replace(\"L\", \"\");\n }\n return daysOfWeekNames[parseInt(exp)];\n }, function (s) {\n if (parseInt(s) == 1) {\n return \"\";\n }\n else {\n return stringUtilities_1.StringUtilities.format(_this.i18n.commaEveryX0DaysOfTheWeek(), s);\n }\n }, function (s) {\n return _this.i18n.commaX0ThroughX1();\n }, function (s) {\n var format = null;\n if (s.indexOf(\"#\") > -1) {\n var dayOfWeekOfMonthNumber = s.substring(s.indexOf(\"#\") + 1);\n var dayOfWeekOfMonthDescription = null;\n switch (dayOfWeekOfMonthNumber) {\n case \"1\":\n dayOfWeekOfMonthDescription = _this.i18n.first();\n break;\n case \"2\":\n dayOfWeekOfMonthDescription = _this.i18n.second();\n break;\n case \"3\":\n dayOfWeekOfMonthDescription = _this.i18n.third();\n break;\n case \"4\":\n dayOfWeekOfMonthDescription = _this.i18n.fourth();\n break;\n case \"5\":\n dayOfWeekOfMonthDescription = _this.i18n.fifth();\n break;\n }\n format = _this.i18n.commaOnThe() + dayOfWeekOfMonthDescription + _this.i18n.spaceX0OfTheMonth();\n }\n else if (s.indexOf(\"L\") > -1) {\n format = _this.i18n.commaOnTheLastX0OfTheMonth();\n }\n else {\n var domSpecified = _this.expressionParts[3] != \"*\";\n format = domSpecified ? _this.i18n.commaAndOnX0() : _this.i18n.commaOnlyOnX0();\n }\n return format;\n });\n }\n return description;\n };\n ExpressionDescriptor.prototype.getMonthDescription = function () {\n var _this = this;\n var monthNames = this.i18n.monthsOfTheYear();\n var description = this.getSegmentDescription(this.expressionParts[4], \"\", function (s) {\n return monthNames[parseInt(s) - 1];\n }, function (s) {\n if (parseInt(s) == 1) {\n return \"\";\n }\n else {\n return stringUtilities_1.StringUtilities.format(_this.i18n.commaEveryX0Months(), s);\n }\n }, function (s) {\n return _this.i18n.commaMonthX0ThroughMonthX1() || _this.i18n.commaX0ThroughX1();\n }, function (s) {\n return _this.i18n.commaOnlyInMonthX0 ? _this.i18n.commaOnlyInMonthX0() : _this.i18n.commaOnlyInX0();\n });\n return description;\n };\n ExpressionDescriptor.prototype.getDayOfMonthDescription = function () {\n var _this = this;\n var description = null;\n var expression = this.expressionParts[3];\n switch (expression) {\n case \"L\":\n description = this.i18n.commaOnTheLastDayOfTheMonth();\n break;\n case \"WL\":\n case \"LW\":\n description = this.i18n.commaOnTheLastWeekdayOfTheMonth();\n break;\n default:\n var weekDayNumberMatches = expression.match(/(\\d{1,2}W)|(W\\d{1,2})/);\n if (weekDayNumberMatches) {\n var dayNumber = parseInt(weekDayNumberMatches[0].replace(\"W\", \"\"));\n var dayString = dayNumber == 1\n ? this.i18n.firstWeekday()\n : stringUtilities_1.StringUtilities.format(this.i18n.weekdayNearestDayX0(), dayNumber.toString());\n description = stringUtilities_1.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(), dayString);\n break;\n }\n else {\n var lastDayOffSetMatches = expression.match(/L-(\\d{1,2})/);\n if (lastDayOffSetMatches) {\n var offSetDays = lastDayOffSetMatches[1];\n description = stringUtilities_1.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(), offSetDays);\n break;\n }\n else if (expression == \"*\" && this.expressionParts[5] != \"*\") {\n return \"\";\n }\n else {\n description = this.getSegmentDescription(expression, this.i18n.commaEveryDay(), function (s) {\n return s == \"L\" ? _this.i18n.lastDay() : ((_this.i18n.dayX0) ? stringUtilities_1.StringUtilities.format(_this.i18n.dayX0(), s) : s);\n }, function (s) {\n return s == \"1\" ? _this.i18n.commaEveryDay() : _this.i18n.commaEveryX0Days();\n }, function (s) {\n return _this.i18n.commaBetweenDayX0AndX1OfTheMonth();\n }, function (s) {\n return _this.i18n.commaOnDayX0OfTheMonth();\n });\n }\n break;\n }\n }\n return description;\n };\n ExpressionDescriptor.prototype.getYearDescription = function () {\n var _this = this;\n var description = this.getSegmentDescription(this.expressionParts[6], \"\", function (s) {\n return /^\\d+$/.test(s) ? new Date(parseInt(s), 1).getFullYear().toString() : s;\n }, function (s) {\n return stringUtilities_1.StringUtilities.format(_this.i18n.commaEveryX0Years(), s);\n }, function (s) {\n return _this.i18n.commaYearX0ThroughYearX1() || _this.i18n.commaX0ThroughX1();\n }, function (s) {\n return _this.i18n.commaOnlyInYearX0 ? _this.i18n.commaOnlyInYearX0() : _this.i18n.commaOnlyInX0();\n });\n return description;\n };\n ExpressionDescriptor.prototype.getSegmentDescription = function (expression, allDescription, getSingleItemDescription, getIntervalDescriptionFormat, getBetweenDescriptionFormat, getDescriptionFormat) {\n var _this = this;\n var description = null;\n if (!expression) {\n description = \"\";\n }\n else if (expression === \"*\") {\n description = allDescription;\n }\n else if (!stringUtilities_1.StringUtilities.containsAny(expression, [\"/\", \"-\", \",\"])) {\n description = stringUtilities_1.StringUtilities.format(getDescriptionFormat(expression), getSingleItemDescription(expression));\n }\n else if (expression.indexOf(\"/\") > -1) {\n var segments = expression.split(\"/\");\n description = stringUtilities_1.StringUtilities.format(getIntervalDescriptionFormat(segments[1]), segments[1]);\n if (segments[0].indexOf(\"-\") > -1) {\n var betweenSegmentDescription = this.generateBetweenSegmentDescription(segments[0], getBetweenDescriptionFormat, getSingleItemDescription);\n if (betweenSegmentDescription.indexOf(\", \") != 0) {\n description += \", \";\n }\n description += betweenSegmentDescription;\n }\n else if (!stringUtilities_1.StringUtilities.containsAny(segments[0], [\"*\", \",\"])) {\n var rangeItemDescription = stringUtilities_1.StringUtilities.format(getDescriptionFormat(segments[0]), getSingleItemDescription(segments[0]));\n rangeItemDescription = rangeItemDescription.replace(\", \", \"\");\n description += stringUtilities_1.StringUtilities.format(this.i18n.commaStartingX0(), rangeItemDescription);\n }\n }\n else if (expression.indexOf(\",\") > -1) {\n var segments = expression.split(\",\");\n var descriptionContent = \"\";\n for (var i = 0; i < segments.length; i++) {\n if (i > 0 && segments.length > 2) {\n descriptionContent += \",\";\n if (i < segments.length - 1) {\n descriptionContent += \" \";\n }\n }\n if (i > 0 && segments.length > 1 && (i == segments.length - 1 || segments.length == 2)) {\n descriptionContent += this.i18n.spaceAnd() + \" \";\n }\n if (segments[i].indexOf(\"-\") > -1) {\n var betweenSegmentDescription = this.generateBetweenSegmentDescription(segments[i], function (s) {\n return _this.i18n.commaX0ThroughX1();\n }, getSingleItemDescription);\n betweenSegmentDescription = betweenSegmentDescription.replace(\", \", \"\");\n descriptionContent += betweenSegmentDescription;\n }\n else {\n descriptionContent += getSingleItemDescription(segments[i]);\n }\n }\n description = stringUtilities_1.StringUtilities.format(getDescriptionFormat(expression), descriptionContent);\n }\n else if (expression.indexOf(\"-\") > -1) {\n description = this.generateBetweenSegmentDescription(expression, getBetweenDescriptionFormat, getSingleItemDescription);\n }\n return description;\n };\n ExpressionDescriptor.prototype.generateBetweenSegmentDescription = function (betweenExpression, getBetweenDescriptionFormat, getSingleItemDescription) {\n var description = \"\";\n var betweenSegments = betweenExpression.split(\"-\");\n var betweenSegment1Description = getSingleItemDescription(betweenSegments[0]);\n var betweenSegment2Description = getSingleItemDescription(betweenSegments[1]);\n betweenSegment2Description = betweenSegment2Description.replace(\":00\", \":59\");\n var betweenDescriptionFormat = getBetweenDescriptionFormat(betweenExpression);\n description += stringUtilities_1.StringUtilities.format(betweenDescriptionFormat, betweenSegment1Description, betweenSegment2Description);\n return description;\n };\n ExpressionDescriptor.prototype.formatTime = function (hourExpression, minuteExpression, secondExpression) {\n var hour = parseInt(hourExpression);\n var period = \"\";\n var setPeriodBeforeTime = false;\n if (!this.options.use24HourTimeFormat) {\n setPeriodBeforeTime = this.i18n.setPeriodBeforeTime && this.i18n.setPeriodBeforeTime();\n period = setPeriodBeforeTime ? this.getPeriod(hour) + \" \" : \" \" + this.getPeriod(hour);\n if (hour > 12) {\n hour -= 12;\n }\n if (hour === 0) {\n hour = 12;\n }\n }\n var minute = minuteExpression;\n var second = \"\";\n if (secondExpression) {\n second = \":\" + (\"00\" + secondExpression).substring(secondExpression.length);\n }\n return \"\" + (setPeriodBeforeTime ? period : \"\") + (\"00\" + hour.toString()).substring(hour.toString().length) + \":\" + (\"00\" + minute.toString()).substring(minute.toString().length) + second + (!setPeriodBeforeTime ? period : \"\");\n };\n ExpressionDescriptor.prototype.transformVerbosity = function (description, useVerboseFormat) {\n if (!useVerboseFormat) {\n description = description.replace(new RegExp(\", \" + this.i18n.everyMinute(), \"g\"), \"\");\n description = description.replace(new RegExp(\", \" + this.i18n.everyHour(), \"g\"), \"\");\n description = description.replace(new RegExp(this.i18n.commaEveryDay(), \"g\"), \"\");\n description = description.replace(/\\, ?$/, \"\");\n }\n return description;\n };\n ExpressionDescriptor.prototype.getPeriod = function (hour) {\n return hour >= 12 ? this.i18n.pm && this.i18n.pm() || \"PM\" : this.i18n.am && this.i18n.am() || \"AM\";\n };\n ExpressionDescriptor.locales = {};\n return ExpressionDescriptor;\n}());\nexports.ExpressionDescriptor = ExpressionDescriptor;\n\n\n/***/ }),\n/* 1 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar StringUtilities = (function () {\n function StringUtilities() {\n }\n StringUtilities.format = function (template) {\n var values = [];\n for (var _i = 1; _i < arguments.length; _i++) {\n values[_i - 1] = arguments[_i];\n }\n return template.replace(/%s/g, function () {\n return values.shift();\n });\n };\n StringUtilities.containsAny = function (text, searchStrings) {\n return searchStrings.some(function (c) {\n return text.indexOf(c) > -1;\n });\n };\n return StringUtilities;\n}());\nexports.StringUtilities = StringUtilities;\n\n\n/***/ }),\n/* 2 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar CronParser = (function () {\n function CronParser(expression, dayOfWeekStartIndexZero) {\n if (dayOfWeekStartIndexZero === void 0) { dayOfWeekStartIndexZero = true; }\n this.expression = expression;\n this.dayOfWeekStartIndexZero = dayOfWeekStartIndexZero;\n }\n CronParser.prototype.parse = function () {\n var parsed = this.extractParts(this.expression);\n this.normalize(parsed);\n this.validate(parsed);\n return parsed;\n };\n CronParser.prototype.extractParts = function (expression) {\n if (!this.expression) {\n throw new Error(\"Expression is empty\");\n }\n var parsed = expression.trim().split(/[ ]+/);\n if (parsed.length < 5) {\n throw new Error(\"Expression has only \" + parsed.length + \" part\" + (parsed.length == 1 ? \"\" : \"s\") + \". At least 5 parts are required.\");\n }\n else if (parsed.length == 5) {\n parsed.unshift(\"\");\n parsed.push(\"\");\n }\n else if (parsed.length == 6) {\n if (/\\d{4}$/.test(parsed[5])) {\n parsed.unshift(\"\");\n }\n else {\n parsed.push(\"\");\n }\n }\n else if (parsed.length > 7) {\n throw new Error(\"Expression has \" + parsed.length + \" parts; too many!\");\n }\n return parsed;\n };\n CronParser.prototype.normalize = function (expressionParts) {\n var _this = this;\n expressionParts[3] = expressionParts[3].replace(\"?\", \"*\");\n expressionParts[5] = expressionParts[5].replace(\"?\", \"*\");\n expressionParts[2] = expressionParts[2].replace(\"?\", \"*\");\n if (expressionParts[0].indexOf(\"0/\") == 0) {\n expressionParts[0] = expressionParts[0].replace(\"0/\", \"*/\");\n }\n if (expressionParts[1].indexOf(\"0/\") == 0) {\n expressionParts[1] = expressionParts[1].replace(\"0/\", \"*/\");\n }\n if (expressionParts[2].indexOf(\"0/\") == 0) {\n expressionParts[2] = expressionParts[2].replace(\"0/\", \"*/\");\n }\n if (expressionParts[3].indexOf(\"1/\") == 0) {\n expressionParts[3] = expressionParts[3].replace(\"1/\", \"*/\");\n }\n if (expressionParts[4].indexOf(\"1/\") == 0) {\n expressionParts[4] = expressionParts[4].replace(\"1/\", \"*/\");\n }\n if (expressionParts[5].indexOf(\"1/\") == 0) {\n expressionParts[5] = expressionParts[5].replace(\"1/\", \"*/\");\n }\n if (expressionParts[6].indexOf(\"1/\") == 0) {\n expressionParts[6] = expressionParts[6].replace(\"1/\", \"*/\");\n }\n expressionParts[5] = expressionParts[5].replace(/(^\\d)|([^#/\\s]\\d)/g, function (t) {\n var dowDigits = t.replace(/\\D/, \"\");\n var dowDigitsAdjusted = dowDigits;\n if (_this.dayOfWeekStartIndexZero) {\n if (dowDigits == \"7\") {\n dowDigitsAdjusted = \"0\";\n }\n }\n else {\n dowDigitsAdjusted = (parseInt(dowDigits) - 1).toString();\n }\n return t.replace(dowDigits, dowDigitsAdjusted);\n });\n if (expressionParts[5] == \"L\") {\n expressionParts[5] = \"6\";\n }\n if (expressionParts[3] == \"?\") {\n expressionParts[3] = \"*\";\n }\n if (expressionParts[3].indexOf(\"W\") > -1 &&\n (expressionParts[3].indexOf(\",\") > -1 || expressionParts[3].indexOf(\"-\") > -1)) {\n throw new Error(\"The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.\");\n }\n var days = {\n SUN: 0,\n MON: 1,\n TUE: 2,\n WED: 3,\n THU: 4,\n FRI: 5,\n SAT: 6\n };\n for (var day in days) {\n expressionParts[5] = expressionParts[5].replace(new RegExp(day, \"gi\"), days[day].toString());\n }\n var months = {\n JAN: 1,\n FEB: 2,\n MAR: 3,\n APR: 4,\n MAY: 5,\n JUN: 6,\n JUL: 7,\n AUG: 8,\n SEP: 9,\n OCT: 10,\n NOV: 11,\n DEC: 12\n };\n for (var month in months) {\n expressionParts[4] = expressionParts[4].replace(new RegExp(month, \"gi\"), months[month].toString());\n }\n if (expressionParts[0] == \"0\") {\n expressionParts[0] = \"\";\n }\n if (!/\\*|\\-|\\,|\\//.test(expressionParts[2]) &&\n (/\\*|\\//.test(expressionParts[1]) || /\\*|\\//.test(expressionParts[0]))) {\n expressionParts[2] += \"-\" + expressionParts[2];\n }\n for (var i = 0; i < expressionParts.length; i++) {\n if (expressionParts[i] == \"*/1\") {\n expressionParts[i] = \"*\";\n }\n if (expressionParts[i].indexOf(\"/\") > -1 && !/^\\*|\\-|\\,/.test(expressionParts[i])) {\n var stepRangeThrough = null;\n switch (i) {\n case 4:\n stepRangeThrough = \"12\";\n break;\n case 5:\n stepRangeThrough = \"6\";\n break;\n case 6:\n stepRangeThrough = \"9999\";\n break;\n default:\n stepRangeThrough = null;\n break;\n }\n if (stepRangeThrough != null) {\n var parts = expressionParts[i].split(\"/\");\n expressionParts[i] = parts[0] + \"-\" + stepRangeThrough + \"/\" + parts[1];\n }\n }\n }\n };\n CronParser.prototype.validate = function (parsed) {\n this.assertNoInvalidCharacters(\"DOW\", parsed[5]);\n this.assertNoInvalidCharacters(\"DOM\", parsed[3]);\n };\n CronParser.prototype.assertNoInvalidCharacters = function (partDescription, expression) {\n var invalidChars = expression.match(/[A-KM-VX-Z]+/gi);\n if (invalidChars && invalidChars.length) {\n throw new Error(partDescription + \" part contains invalid values: '\" + invalidChars.toString() + \"'\");\n }\n };\n return CronParser;\n}());\nexports.CronParser = CronParser;\n\n\n/***/ }),\n/* 3 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar en = (function () {\n function en() {\n }\n en.prototype.atX0SecondsPastTheMinuteGt20 = function () {\n return null;\n };\n en.prototype.atX0MinutesPastTheHourGt20 = function () {\n return null;\n };\n en.prototype.commaMonthX0ThroughMonthX1 = function () {\n return null;\n };\n en.prototype.commaYearX0ThroughYearX1 = function () {\n return null;\n };\n en.prototype.use24HourTimeFormatByDefault = function () {\n return false;\n };\n en.prototype.anErrorOccuredWhenGeneratingTheExpressionD = function () {\n return \"An error occured when generating the expression description. Check the cron expression syntax.\";\n };\n en.prototype.everyMinute = function () {\n return \"every minute\";\n };\n en.prototype.everyHour = function () {\n return \"every hour\";\n };\n en.prototype.atSpace = function () {\n return \"At \";\n };\n en.prototype.everyMinuteBetweenX0AndX1 = function () {\n return \"Every minute between %s and %s\";\n };\n en.prototype.at = function () {\n return \"At\";\n };\n en.prototype.spaceAnd = function () {\n return \" and\";\n };\n en.prototype.everySecond = function () {\n return \"every second\";\n };\n en.prototype.everyX0Seconds = function () {\n return \"every %s seconds\";\n };\n en.prototype.secondsX0ThroughX1PastTheMinute = function () {\n return \"seconds %s through %s past the minute\";\n };\n en.prototype.atX0SecondsPastTheMinute = function () {\n return \"at %s seconds past the minute\";\n };\n en.prototype.everyX0Minutes = function () {\n return \"every %s minutes\";\n };\n en.prototype.minutesX0ThroughX1PastTheHour = function () {\n return \"minutes %s through %s past the hour\";\n };\n en.prototype.atX0MinutesPastTheHour = function () {\n return \"at %s minutes past the hour\";\n };\n en.prototype.everyX0Hours = function () {\n return \"every %s hours\";\n };\n en.prototype.betweenX0AndX1 = function () {\n return \"between %s and %s\";\n };\n en.prototype.atX0 = function () {\n return \"at %s\";\n };\n en.prototype.commaEveryDay = function () {\n return \", every day\";\n };\n en.prototype.commaEveryX0DaysOfTheWeek = function () {\n return \", every %s days of the week\";\n };\n en.prototype.commaX0ThroughX1 = function () {\n return \", %s through %s\";\n };\n en.prototype.first = function () {\n return \"first\";\n };\n en.prototype.second = function () {\n return \"second\";\n };\n en.prototype.third = function () {\n return \"third\";\n };\n en.prototype.fourth = function () {\n return \"fourth\";\n };\n en.prototype.fifth = function () {\n return \"fifth\";\n };\n en.prototype.commaOnThe = function () {\n return \", on the \";\n };\n en.prototype.spaceX0OfTheMonth = function () {\n return \" %s of the month\";\n };\n en.prototype.lastDay = function () {\n return \"the last day\";\n };\n en.prototype.commaOnTheLastX0OfTheMonth = function () {\n return \", on the last %s of the month\";\n };\n en.prototype.commaOnlyOnX0 = function () {\n return \", only on %s\";\n };\n en.prototype.commaAndOnX0 = function () {\n return \", and on %s\";\n };\n en.prototype.commaEveryX0Months = function () {\n return \", every %s months\";\n };\n en.prototype.commaOnlyInX0 = function () {\n return \", only in %s\";\n };\n en.prototype.commaOnTheLastDayOfTheMonth = function () {\n return \", on the last day of the month\";\n };\n en.prototype.commaOnTheLastWeekdayOfTheMonth = function () {\n return \", on the last weekday of the month\";\n };\n en.prototype.commaDaysBeforeTheLastDayOfTheMonth = function () {\n return \", %s days before the last day of the month\";\n };\n en.prototype.firstWeekday = function () {\n return \"first weekday\";\n };\n en.prototype.weekdayNearestDayX0 = function () {\n return \"weekday nearest day %s\";\n };\n en.prototype.commaOnTheX0OfTheMonth = function () {\n return \", on the %s of the month\";\n };\n en.prototype.commaEveryX0Days = function () {\n return \", every %s days\";\n };\n en.prototype.commaBetweenDayX0AndX1OfTheMonth = function () {\n return \", between day %s and %s of the month\";\n };\n en.prototype.commaOnDayX0OfTheMonth = function () {\n return \", on day %s of the month\";\n };\n en.prototype.commaEveryHour = function () {\n return \", every hour\";\n };\n en.prototype.commaEveryX0Years = function () {\n return \", every %s years\";\n };\n en.prototype.commaStartingX0 = function () {\n return \", starting %s\";\n };\n en.prototype.daysOfTheWeek = function () {\n return [\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\"];\n };\n en.prototype.monthsOfTheYear = function () {\n return [\n \"January\",\n \"February\",\n \"March\",\n \"April\",\n \"May\",\n \"June\",\n \"July\",\n \"August\",\n \"September\",\n \"October\",\n \"November\",\n \"December\"\n ];\n };\n return en;\n}());\nexports.en = en;\n\n\n/***/ }),\n/* 4 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar expressionDescriptor_ts_1 = __webpack_require__(0);\nvar enLocaleLoader_1 = __webpack_require__(5);\nexpressionDescriptor_ts_1.ExpressionDescriptor.initialize(new enLocaleLoader_1.enLocaleLoader());\nexports.default = expressionDescriptor_ts_1.ExpressionDescriptor;\nvar toString = expressionDescriptor_ts_1.ExpressionDescriptor.toString;\nexports.toString = toString;\n\n\n/***/ }),\n/* 5 */\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", { value: true });\nvar en_1 = __webpack_require__(3);\nvar enLocaleLoader = (function () {\n function enLocaleLoader() {\n }\n enLocaleLoader.prototype.load = function (availableLocales) {\n availableLocales[\"en\"] = new en_1.en();\n };\n return enLocaleLoader;\n}());\nexports.enLocaleLoader = enLocaleLoader;\n\n\n/***/ })\n/******/ ]);\n});","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Promise = getNative(root, 'Promise');\n\nmodule.exports = Promise;\n","var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n","var MapCache = require('./_MapCache'),\n setCacheAdd = require('./_setCacheAdd'),\n setCacheHas = require('./_setCacheHas');\n\n/**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\nfunction SetCache(values) {\n var index = -1,\n length = values == null ? 0 : values.length;\n\n this.__data__ = new MapCache;\n while (++index < length) {\n this.add(values[index]);\n }\n}\n\n// Add methods to `SetCache`.\nSetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\nSetCache.prototype.has = setCacheHas;\n\nmodule.exports = SetCache;\n","var isKeyable = require('./_isKeyable');\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n var data = map.__data__;\n return isKeyable(key)\n ? data[typeof key == 'string' ? 'string' : 'hash']\n : data.map;\n}\n\nmodule.exports = getMapData;\n","/**\n * The base implementation of `_.hasIn` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\nfunction baseHasIn(object, key) {\n return object != null && key in Object(object);\n}\n\nmodule.exports = baseHasIn;\n","var Symbol = require('./_Symbol'),\n arrayMap = require('./_arrayMap'),\n isArray = require('./isArray'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isArray(value)) {\n // Recursively convert values (susceptible to call stack limits).\n return arrayMap(value, baseToString) + '';\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = baseToString;\n","/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a function that negates the result of the predicate `func`. The\n * `func` predicate is invoked with the `this` binding and arguments of the\n * created function.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Function\n * @param {Function} predicate The predicate to negate.\n * @returns {Function} Returns the new negated function.\n * @example\n *\n * function isEven(n) {\n * return n % 2 == 0;\n * }\n *\n * _.filter([1, 2, 3, 4, 5, 6], _.negate(isEven));\n * // => [1, 3, 5]\n */\nfunction negate(predicate) {\n if (typeof predicate != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n return function() {\n var args = arguments;\n switch (args.length) {\n case 0: return !predicate.call(this);\n case 1: return !predicate.call(this, args[0]);\n case 2: return !predicate.call(this, args[0], args[1]);\n case 3: return !predicate.call(this, args[0], args[1], args[2]);\n }\n return !predicate.apply(this, args);\n };\n}\n\nmodule.exports = negate;\n","var baseIsEqual = require('./_baseIsEqual'),\n get = require('./get'),\n hasIn = require('./hasIn'),\n isKey = require('./_isKey'),\n isStrictComparable = require('./_isStrictComparable'),\n matchesStrictComparable = require('./_matchesStrictComparable'),\n toKey = require('./_toKey');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.\n *\n * @private\n * @param {string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatchesProperty(path, srcValue) {\n if (isKey(path) && isStrictComparable(srcValue)) {\n return matchesStrictComparable(toKey(path), srcValue);\n }\n return function(object) {\n var objValue = get(object, path);\n return (objValue === undefined && objValue === srcValue)\n ? hasIn(object, path)\n : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);\n };\n}\n\nmodule.exports = baseMatchesProperty;\n","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n var isOwn = hasOwnProperty.call(value, symToStringTag),\n tag = value[symToStringTag];\n\n try {\n value[symToStringTag] = undefined;\n var unmasked = true;\n } catch (e) {}\n\n var result = nativeObjectToString.call(value);\n if (unmasked) {\n if (isOwn) {\n value[symToStringTag] = tag;\n } else {\n delete value[symToStringTag];\n }\n }\n return result;\n}\n\nmodule.exports = getRawTag;\n","var baseGetTag = require('./_baseGetTag'),\n getPrototype = require('./_getPrototype'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to infer the `Object` constructor. */\nvar objectCtorString = funcToString.call(Object);\n\n/**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\nfunction isPlainObject(value) {\n if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n return false;\n }\n var proto = getPrototype(value);\n if (proto === null) {\n return true;\n }\n var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n funcToString.call(Ctor) == objectCtorString;\n}\n\nmodule.exports = isPlainObject;\n","export function camelToTitle(str) {\n return dasherize((str || '')).split('-').map((str) => {\n return ucFirst(str);\n }).join(' ');\n}\n\nexport function ucFirst(str) {\n str = str || '';\n\n return str.substr(0, 1).toUpperCase() + str.substr(1);\n}\n\nexport function lcFirst(str) {\n str = str || '';\n\n return str.substr(0, 1).toLowerCase() + str.substr(1);\n}\n\nexport function strPad(str, toLength, padChars = ' ', right = false) {\n str = `${ str }`;\n\n if (str.length >= toLength) {\n return str;\n }\n\n const neededLen = toLength - str.length + 1;\n const padStr = (new Array(neededLen)).join(padChars).substr(0, neededLen);\n\n if (right) {\n return str + padStr;\n } else {\n return padStr + str;\n }\n}\n\n// Turn thing1 into thing00000001 so that the numbers sort numerically\nexport function sortableNumericSuffix(str) {\n str = str || '';\n const match = str.match(/^(.*[^0-9])([0-9]+)$/);\n\n if (match) {\n return match[1] + strPad(match[2], 8, '0');\n }\n\n return str;\n}\n\nconst entityMap = {\n '&': '&',\n '<': '<',\n '>': '>',\n '\"': '"',\n \"'\": ''',\n '/': '/'\n};\n\nexport function escapeHtml(html) {\n return String(html).replace(/[&<>\"']/g, (s) => {\n return entityMap[s];\n });\n}\n\n/**\n * Return HTML markup from escaped HTML string, allowing specific tags\n * @param text string\n * @returns string\n */\nexport function decodeHtml(text) {\n const div = document.createElement('div');\n\n div.innerHTML = text;\n\n return div.textContent || div.innerText || '';\n}\n\nexport function escapeRegex(string) {\n return string.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\$&'); // $& means the whole matched string\n}\n\nexport function random32(count) {\n count = Math.max(0, count || 1);\n\n const out = [];\n let i;\n\n if (window.crypto && window.crypto.getRandomValues) {\n const tmp = new Uint32Array(count);\n\n window.crypto.getRandomValues(tmp);\n for (i = 0; i < tmp.length; i++) {\n out[i] = tmp[i];\n }\n } else {\n for (i = 0; i < count; i++) {\n out[i] = Math.random() * 4294967296; // Math.pow(2,32);\n }\n }\n\n if (count === 1) {\n return out[0];\n } else {\n return out;\n }\n}\n\nconst alpha = 'abcdefghijklmnopqrstuvwxyz';\nconst num = '0123456789';\nconst sym = '!@#$%^&*()_+-=[]{};:,./<>?|';\n\nexport const CHARSET = {\n NUMERIC: num,\n NO_VOWELS: 'bcdfghjklmnpqrstvwxz2456789',\n ALPHA: alpha + alpha.toUpperCase(),\n ALPHA_NUM: alpha + alpha.toUpperCase() + num,\n ALPHA_LOWER: alpha,\n ALPHA_UPPER: alpha.toUpperCase(),\n HEX: `${ num }ABCDEF`,\n PASSWORD: alpha + alpha.toUpperCase() + num + alpha + alpha.toUpperCase() + num + sym,\n // ^-- includes alpha / ALPHA / num twice to reduce the occurrence of symbols\n};\n\nexport function randomStr(length = 16, chars = CHARSET.ALPHA_NUM) {\n if (!chars || !chars.length) {\n return null;\n }\n\n return random32(length).map((val) => {\n return chars[val % chars.length];\n }).join('');\n}\n\nexport function formatPercent(value, maxPrecision = 2) {\n if (value < 1 && maxPrecision >= 2) {\n return `${ Math.round(value * 100) / 100 }%`;\n } else if (value < 10 && maxPrecision >= 1) {\n return `${ Math.round(value * 10) / 10 }%`;\n } else {\n return `${ Math.round(value) }%`;\n }\n}\n\nexport function pluralize(str) {\n if ( str.match(/.*[^aeiou]y$/i) ) {\n return `${ str.substr(0, str.length - 1) }ies`;\n } else if ( str.endsWith('ics') ) {\n return str;\n } else if ( str.endsWith('s') ) {\n return `${ str }es`;\n } else {\n return `${ str }s`;\n }\n}\n\nexport function resourceNames(names, plusMore, t) {\n return names.reduce((res, name, i) => {\n if (i >= 5) {\n return res;\n }\n res += `${ escapeHtml( name ) }`;\n if (i === names.length - 1) {\n res += plusMore;\n } else {\n res += i === names.length - 2 ? t('generic.and') : t('generic.comma');\n }\n\n return res;\n }, '');\n}\n\nexport function indent(lines, count = 2, token = ' ', afterRegex = null) {\n if (typeof lines === 'string') {\n lines = lines.split(/\\n/);\n } else {\n lines = lines || [];\n }\n\n const padStr = (new Array(count + 1)).join(token);\n\n const out = lines.map((line) => {\n let prefix = '';\n let suffix = line;\n\n if (afterRegex) {\n const match = line.match(afterRegex);\n\n if (match) {\n prefix = match[match.length - 1];\n suffix = line.substr(match[0].length);\n }\n }\n\n return `${ prefix }${ padStr }${ suffix }`;\n });\n\n const str = out.join('\\n');\n\n return str;\n}\n\nconst decamelizeRegex = /([a-z\\d])([A-Z])/g;\n\nexport function decamelize(str) {\n return str.replace(decamelizeRegex, '$1_$2').toLowerCase();\n}\n\nconst dasherizeRegex = /[ _]/g;\n\nexport function dasherize(str) {\n return decamelize(str).replace(dasherizeRegex, '-');\n}\n\nexport function asciiLike(str) {\n str = str || '';\n\n if ( str.match(/[^\\r\\n\\t\\x20-\\x7F]/) ) {\n return false;\n }\n\n return true;\n}\n\nexport function coerceStringTypeToScalarType(val, type) {\n if ( type === 'float' ) {\n // Coerce strings to floats\n val = parseFloat(val) || null; // NaN becomes null\n } else if ( type === 'int' ) {\n // Coerce strings to ints\n val = parseInt(val, 10);\n\n if ( isNaN(val) ) {\n val = null;\n }\n } else if ( type === 'boolean') {\n // Coerce strings to boolean\n if (val.toLowerCase() === 'true') {\n val = true;\n } else if (val.toLowerCase() === 'false') {\n val = false;\n }\n }\n\n return val;\n}\n\nexport function matchesSomeRegex(stringRaw, regexes = []) {\n return regexes.some((regexRaw) => {\n const string = stringRaw || '';\n const regex = ensureRegex(regexRaw);\n\n return string.match(regex);\n });\n}\n\nexport function ensureRegex(strOrRegex, exact = true) {\n if ( typeof strOrRegex === 'string' ) {\n if ( exact ) {\n return new RegExp(`^${ escapeRegex(strOrRegex) }$`, 'i');\n } else {\n return new RegExp(`${ escapeRegex(strOrRegex) }`, 'i');\n }\n }\n\n return strOrRegex;\n}\n\nexport function nlToBr(value) {\n return escapeHtml(value || '').replace(/(\\r\\n|\\r|\\n)/g, '
\\n');\n}\n\nconst quotedMatch = /[^.\"']+|\"([^\"]*)\"|'([^']*)'/g;\n\nexport function splitObjectPath(path) {\n if ( path.includes('\"') || path.includes(\"'\") ) {\n // Path with quoted section\n return path.match(quotedMatch).map((x) => x.replace(/['\"]/g, ''));\n }\n\n // Regular path\n return path.split('.');\n}\n\nexport function joinObjectPath(ary) {\n let out = '';\n\n for ( const p of ary ) {\n if ( p.includes('.') ) {\n out += `.\"${ p }\"`;\n } else {\n out += `.${ p }`;\n }\n }\n\n if ( out.startsWith('.') ) {\n out = out.substr(1);\n }\n\n return out;\n}\n\nexport function shortenedImage(image) {\n return (image || '')\n .replace(/^(index\\.)?docker.io\\/(library\\/)?/, '')\n .replace(/:latest$/, '')\n .replace(/^(.*@sha256:)([0-9a-f]{8})[0-9a-f]+$/i, '$1$2…');\n}\n\nexport function isIpv4(ip) {\n const reg = /^((25[0-5]|2[0-4]\\d|[01]?\\d\\d?)\\.){3}(25[0-5]|2[0-4]\\d|[01]?\\d\\d?)$/;\n\n return reg.test(ip);\n}\n\nexport function sanitizeKey(k) {\n return (k || '').replace(/[^a-z0-9./_-]/ig, '');\n}\n\nexport function sanitizeValue(v) {\n return (v || '').replace(/[^a-z0-9._-]/ig, '');\n}\n\nexport function sanitizeIP(v) {\n return (v || '').replace(/[^a-z0-9.:_-]/ig, '');\n}\n","/**\n * Gets the value at `key`, unless `key` is \"__proto__\" or \"constructor\".\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction safeGet(object, key) {\n if (key === 'constructor' && typeof object[key] === 'function') {\n return;\n }\n\n if (key == '__proto__') {\n return;\n }\n\n return object[key];\n}\n\nmodule.exports = safeGet;\n","/**\n * A specialized version of `_.forEach` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns `array`.\n */\nfunction arrayEach(array, iteratee) {\n var index = -1,\n length = array == null ? 0 : array.length;\n\n while (++index < length) {\n if (iteratee(array[index], index, array) === false) {\n break;\n }\n }\n return array;\n}\n\nmodule.exports = arrayEach;\n","var assignValue = require('./_assignValue'),\n baseAssignValue = require('./_baseAssignValue');\n\n/**\n * Copies properties of `source` to `object`.\n *\n * @private\n * @param {Object} source The object to copy properties from.\n * @param {Array} props The property identifiers to copy.\n * @param {Object} [object={}] The object to copy properties to.\n * @param {Function} [customizer] The function to customize copied values.\n * @returns {Object} Returns `object`.\n */\nfunction copyObject(source, props, object, customizer) {\n var isNew = !object;\n object || (object = {});\n\n var index = -1,\n length = props.length;\n\n while (++index < length) {\n var key = props[index];\n\n var newValue = customizer\n ? customizer(object[key], source[key], key, object, source)\n : undefined;\n\n if (newValue === undefined) {\n newValue = source[key];\n }\n if (isNew) {\n baseAssignValue(object, key, newValue);\n } else {\n assignValue(object, key, newValue);\n }\n }\n return object;\n}\n\nmodule.exports = copyObject;\n","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n var data = this.__data__,\n index = assocIndexOf(data, key);\n\n if (index < 0) {\n ++this.size;\n data.push([key, value]);\n } else {\n data[index][1] = value;\n }\n return this;\n}\n\nmodule.exports = listCacheSet;\n","/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction stackHas(key) {\n return this.__data__.has(key);\n}\n\nmodule.exports = stackHas;\n","var baseKeys = require('./_baseKeys'),\n getTag = require('./_getTag'),\n isArguments = require('./isArguments'),\n isArray = require('./isArray'),\n isArrayLike = require('./isArrayLike'),\n isBuffer = require('./isBuffer'),\n isPrototype = require('./_isPrototype'),\n isTypedArray = require('./isTypedArray');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n setTag = '[object Set]';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if `value` is an empty object, collection, map, or set.\n *\n * Objects are considered empty if they have no own enumerable string keyed\n * properties.\n *\n * Array-like values such as `arguments` objects, arrays, buffers, strings, or\n * jQuery-like collections are considered empty if they have a `length` of `0`.\n * Similarly, maps and sets are considered empty if they have a `size` of `0`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is empty, else `false`.\n * @example\n *\n * _.isEmpty(null);\n * // => true\n *\n * _.isEmpty(true);\n * // => true\n *\n * _.isEmpty(1);\n * // => true\n *\n * _.isEmpty([1, 2, 3]);\n * // => false\n *\n * _.isEmpty({ 'a': 1 });\n * // => false\n */\nfunction isEmpty(value) {\n if (value == null) {\n return true;\n }\n if (isArrayLike(value) &&\n (isArray(value) || typeof value == 'string' || typeof value.splice == 'function' ||\n isBuffer(value) || isTypedArray(value) || isArguments(value))) {\n return !value.length;\n }\n var tag = getTag(value);\n if (tag == mapTag || tag == setTag) {\n return !value.size;\n }\n if (isPrototype(value)) {\n return !baseKeys(value).length;\n }\n for (var key in value) {\n if (hasOwnProperty.call(value, key)) {\n return false;\n }\n }\n return true;\n}\n\nmodule.exports = isEmpty;\n","var Stack = require('./_Stack'),\n assignMergeValue = require('./_assignMergeValue'),\n baseFor = require('./_baseFor'),\n baseMergeDeep = require('./_baseMergeDeep'),\n isObject = require('./isObject'),\n keysIn = require('./keysIn'),\n safeGet = require('./_safeGet');\n\n/**\n * The base implementation of `_.merge` without support for multiple sources.\n *\n * @private\n * @param {Object} object The destination object.\n * @param {Object} source The source object.\n * @param {number} srcIndex The index of `source`.\n * @param {Function} [customizer] The function to customize merged values.\n * @param {Object} [stack] Tracks traversed source values and their merged\n * counterparts.\n */\nfunction baseMerge(object, source, srcIndex, customizer, stack) {\n if (object === source) {\n return;\n }\n baseFor(source, function(srcValue, key) {\n stack || (stack = new Stack);\n if (isObject(srcValue)) {\n baseMergeDeep(object, source, key, srcIndex, baseMerge, customizer, stack);\n }\n else {\n var newValue = customizer\n ? customizer(safeGet(object, key), srcValue, (key + ''), object, source, stack)\n : undefined;\n\n if (newValue === undefined) {\n newValue = srcValue;\n }\n assignMergeValue(object, key, newValue);\n }\n }, keysIn);\n}\n\nmodule.exports = baseMerge;\n","var baseHasIn = require('./_baseHasIn'),\n hasPath = require('./_hasPath');\n\n/**\n * Checks if `path` is a direct or inherited property of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.hasIn(object, 'a');\n * // => true\n *\n * _.hasIn(object, 'a.b');\n * // => true\n *\n * _.hasIn(object, ['a', 'b']);\n * // => true\n *\n * _.hasIn(object, 'b');\n * // => false\n */\nfunction hasIn(object, path) {\n return object != null && hasPath(object, path, baseHasIn);\n}\n\nmodule.exports = hasIn;\n","var baseIsEqualDeep = require('./_baseIsEqualDeep'),\n isObjectLike = require('./isObjectLike');\n\n/**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n * 1 - Unordered comparison\n * 2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\nfunction baseIsEqual(value, other, bitmask, customizer, stack) {\n if (value === other) {\n return true;\n }\n if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\n return value !== value && other !== other;\n }\n return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n}\n\nmodule.exports = baseIsEqual;\n","var baseIsMap = require('./_baseIsMap'),\n baseUnary = require('./_baseUnary'),\n nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsMap = nodeUtil && nodeUtil.isMap;\n\n/**\n * Checks if `value` is classified as a `Map` object.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n * @example\n *\n * _.isMap(new Map);\n * // => true\n *\n * _.isMap(new WeakMap);\n * // => false\n */\nvar isMap = nodeIsMap ? baseUnary(nodeIsMap) : baseIsMap;\n\nmodule.exports = isMap;\n","var isArrayLike = require('./isArrayLike'),\n isObjectLike = require('./isObjectLike');\n\n/**\n * This method is like `_.isArrayLike` except that it also checks if `value`\n * is an object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array-like object,\n * else `false`.\n * @example\n *\n * _.isArrayLikeObject([1, 2, 3]);\n * // => true\n *\n * _.isArrayLikeObject(document.body.children);\n * // => true\n *\n * _.isArrayLikeObject('abc');\n * // => false\n *\n * _.isArrayLikeObject(_.noop);\n * // => false\n */\nfunction isArrayLikeObject(value) {\n return isObjectLike(value) && isArrayLike(value);\n}\n\nmodule.exports = isArrayLikeObject;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Set = getNative(root, 'Set');\n\nmodule.exports = Set;\n","export * from \"-!../../../vue-style-loader/index.js??ref--10-oneOf-1-0!../../../@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../@vue/cli-service/node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../postcss-loader/src/index.js??ref--10-oneOf-1-3!../../../sass-loader/dist/cjs.js??ref--10-oneOf-1-4!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./management.cattle.io.globalrole.vue?vue&type=style&index=0&id=effd72b0&prod&lang=scss&scoped=true&\"","var baseIndexOf = require('./_baseIndexOf');\n\n/**\n * A specialized version of `_.includes` for arrays without support for\n * specifying an index to search from.\n *\n * @private\n * @param {Array} [array] The array to inspect.\n * @param {*} target The value to search for.\n * @returns {boolean} Returns `true` if `target` is found, else `false`.\n */\nfunction arrayIncludes(array, value) {\n var length = array == null ? 0 : array.length;\n return !!length && baseIndexOf(array, value, 0) > -1;\n}\n\nmodule.exports = arrayIncludes;\n","var overArg = require('./_overArg');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeKeys = overArg(Object.keys, Object);\n\nmodule.exports = nativeKeys;\n","var baseGet = require('./_baseGet'),\n baseSet = require('./_baseSet'),\n castPath = require('./_castPath');\n\n/**\n * The base implementation of `_.pickBy` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The source object.\n * @param {string[]} paths The property paths to pick.\n * @param {Function} predicate The function invoked per property.\n * @returns {Object} Returns the new object.\n */\nfunction basePickBy(object, paths, predicate) {\n var index = -1,\n length = paths.length,\n result = {};\n\n while (++index < length) {\n var path = paths[index],\n value = baseGet(object, path);\n\n if (predicate(value, path)) {\n baseSet(result, castPath(path, object), value);\n }\n }\n return result;\n}\n\nmodule.exports = basePickBy;\n","import { isArray } from '@shell/utils/array';\n\nexport class ClusterNotFoundError extends Error {\n static name = 'ClusterNotFoundError'\n\n constructor(message) {\n super(message);\n this.name = ClusterNotFoundError.name;\n }\n}\n\n/**\n * An error occurred and the user should be redirected to a certain location (where this is handled)\n */\nexport class RedirectToError extends Error {\n static name = 'RedirectToError'\n\n constructor(message, url) {\n super(message);\n this.url = url;\n this.name = RedirectToError.name;\n }\n}\n\nexport class ApiError extends Error {\n constructor(res) {\n super(stringify(res));\n this.status = res._status || 0;\n this.statusText = res._statusText;\n this.headers = res.headers;\n this.url = res._url;\n }\n\n toString() {\n return `[${ this.status } ${ this.statusText }]: ${ this.message }`;\n }\n\n toJSON() {\n return {\n type: 'error',\n status: this.status,\n statusText: this.statusText,\n message: this.statusMessage,\n url: this.url,\n };\n }\n}\n\nexport function stringify(err) {\n let str;\n\n if ( typeof err === 'string' ) {\n str = err;\n } else if ( err && typeof err === 'object' ) {\n if ( err.message ) {\n str = err.message;\n\n if (typeof str === 'string') {\n try {\n const data = JSON.parse(str).data;\n\n if (data) {\n return data;\n }\n } catch {}\n }\n\n if ( err.detail ) {\n if ( str ) {\n str += ` (${ err.detail })`;\n } else {\n str = err.detail;\n }\n }\n } else if ( err.detail ) {\n str = err.detail;\n } else if ( err.url ) {\n str = `from ${ err.url }`;\n }\n }\n\n if (!str) {\n // Good luck...\n str = JSON.stringify(err);\n }\n\n return str;\n}\n\nexport function exceptionToErrorsArray(err) {\n if ( err?.response?.data ) {\n const body = err.response.data;\n\n if ( body && body.message ) {\n return [body.message];\n } else {\n return [err];\n }\n } else if (err.status && err.message) {\n return [err.message];\n } else if ( isArray(err) ) {\n return err;\n } else {\n return [err];\n }\n}\n","var getNative = require('./_getNative');\n\nvar defineProperty = (function() {\n try {\n var func = getNative(Object, 'defineProperty');\n func({}, '', {});\n return func;\n } catch (e) {}\n}());\n\nmodule.exports = defineProperty;\n","var getNative = require('./_getNative'),\n root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar DataView = getNative(root, 'DataView');\n\nmodule.exports = DataView;\n","var nativeCreate = require('./_nativeCreate');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n var data = this.__data__;\n return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n}\n\nmodule.exports = hashHas;\n","// style-loader: Adds some css to the DOM by adding a \n","import mod from \"-!../../../../cache-loader/dist/cjs.js??ref--14-0!../../../../thread-loader/dist/cjs.js!../../../../babel-loader/lib/index.js!../../../../cache-loader/dist/cjs.js??ref--2-0!../../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./LabeledSelect.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../cache-loader/dist/cjs.js??ref--14-0!../../../../thread-loader/dist/cjs.js!../../../../babel-loader/lib/index.js!../../../../cache-loader/dist/cjs.js??ref--2-0!../../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./LabeledSelect.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./LabeledSelect.vue?vue&type=template&id=529406d8&scoped=true&\"\nimport script from \"./LabeledSelect.vue?vue&type=script&lang=js&\"\nexport * from \"./LabeledSelect.vue?vue&type=script&lang=js&\"\nimport style0 from \"./LabeledSelect.vue?vue&type=style&index=0&id=529406d8&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"529406d8\",\n null\n \n)\n\nexport default component.exports","var identity = require('./identity'),\n overRest = require('./_overRest'),\n setToString = require('./_setToString');\n\n/**\n * The base implementation of `_.rest` which doesn't validate or coerce arguments.\n *\n * @private\n * @param {Function} func The function to apply a rest parameter to.\n * @param {number} [start=func.length-1] The start position of the rest parameter.\n * @returns {Function} Returns the new function.\n */\nfunction baseRest(func, start) {\n return setToString(overRest(func, start, identity), func + '');\n}\n\nmodule.exports = baseRest;\n","var Symbol = require('./_Symbol'),\n Uint8Array = require('./_Uint8Array'),\n eq = require('./eq'),\n equalArrays = require('./_equalArrays'),\n mapToArray = require('./_mapToArray'),\n setToArray = require('./_setToArray');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]',\n dateTag = '[object Date]',\n errorTag = '[object Error]',\n mapTag = '[object Map]',\n numberTag = '[object Number]',\n regexpTag = '[object RegExp]',\n setTag = '[object Set]',\n stringTag = '[object String]',\n symbolTag = '[object Symbol]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n dataViewTag = '[object DataView]';\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n switch (tag) {\n case dataViewTag:\n if ((object.byteLength != other.byteLength) ||\n (object.byteOffset != other.byteOffset)) {\n return false;\n }\n object = object.buffer;\n other = other.buffer;\n\n case arrayBufferTag:\n if ((object.byteLength != other.byteLength) ||\n !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n return false;\n }\n return true;\n\n case boolTag:\n case dateTag:\n case numberTag:\n // Coerce booleans to `1` or `0` and dates to milliseconds.\n // Invalid dates are coerced to `NaN`.\n return eq(+object, +other);\n\n case errorTag:\n return object.name == other.name && object.message == other.message;\n\n case regexpTag:\n case stringTag:\n // Coerce regexes to strings and treat strings, primitives and objects,\n // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n // for more details.\n return object == (other + '');\n\n case mapTag:\n var convert = mapToArray;\n\n case setTag:\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n convert || (convert = setToArray);\n\n if (object.size != other.size && !isPartial) {\n return false;\n }\n // Assume cyclic values are equal.\n var stacked = stack.get(object);\n if (stacked) {\n return stacked == other;\n }\n bitmask |= COMPARE_UNORDERED_FLAG;\n\n // Recursively compare objects (susceptible to call stack limits).\n stack.set(object, other);\n var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n stack['delete'](object);\n return result;\n\n case symbolTag:\n if (symbolValueOf) {\n return symbolValueOf.call(object) == symbolValueOf.call(other);\n }\n }\n return false;\n}\n\nmodule.exports = equalByTag;\n","var eq = require('./eq'),\n isArrayLike = require('./isArrayLike'),\n isIndex = require('./_isIndex'),\n isObject = require('./isObject');\n\n/**\n * Checks if the given arguments are from an iteratee call.\n *\n * @private\n * @param {*} value The potential iteratee value argument.\n * @param {*} index The potential iteratee index or key argument.\n * @param {*} object The potential iteratee object argument.\n * @returns {boolean} Returns `true` if the arguments are from an iteratee call,\n * else `false`.\n */\nfunction isIterateeCall(value, index, object) {\n if (!isObject(object)) {\n return false;\n }\n var type = typeof index;\n if (type == 'number'\n ? (isArrayLike(object) && isIndex(index, object.length))\n : (type == 'string' && index in object)\n ) {\n return eq(object[index], value);\n }\n return false;\n}\n\nmodule.exports = isIterateeCall;\n","/**\n * Sets the width of a DOM element. Adapted from [youmightnotneedjquery.com](https://youmightnotneedjquery.com/#set_width)\n * @param {Element} el - The target DOM element\n * @param {function | string | number} val - The desired width represented as a Number\n */\nexport function setWidth(el, val) {\n if (!el) {\n return;\n }\n\n if (typeof val === 'function') {\n val = val();\n }\n\n if (typeof val === 'string') {\n el.style.width = val;\n\n return;\n }\n\n el.style.width = `${ val }px`;\n}\n\n/**\n * Gets the width of a DOM element. Adapted from [youmightnotneedjquery.com](https://youmightnotneedjquery.com/#get_width)\n * @param {Element} el - The target DOM element\n * @returns Number representing the width for the provided element\n */\nexport function getWidth(el) {\n if (!el || !el.length) {\n return;\n }\n\n if (el.length) {\n return parseFloat(getComputedStyle(el[0]).width.replace('px', ''));\n } else {\n return parseFloat(getComputedStyle(el).width.replace('px', ''));\n }\n}\n","import Vue from 'vue';\nimport { _EDIT, _VIEW } from '@shell/config/query-params';\nimport { getWidth, setWidth } from '@shell/utils/width';\n\ninterface LabeledFormElement {\n raised: boolean;\n focused: boolean;\n blurred: number | null;\n}\n\nexport default Vue.extend({\n inheritAttrs: false,\n\n props: {\n mode: {\n type: String,\n default: _EDIT,\n },\n\n label: {\n type: String,\n default: null\n },\n\n labelKey: {\n type: String,\n default: null\n },\n\n placeholderKey: {\n type: String,\n default: null\n },\n\n tooltip: {\n type: [String, Object],\n default: null\n },\n\n hoverTooltip: {\n type: Boolean,\n default: true,\n },\n\n tooltipKey: {\n type: String,\n default: null\n },\n\n required: {\n type: Boolean,\n default: false,\n },\n\n disabled: {\n type: Boolean,\n default: false,\n },\n\n placeholder: {\n type: [String, Number],\n default: ''\n },\n\n value: {\n type: [String, Number, Object],\n default: ''\n },\n\n options: {\n default: null,\n type: Array\n },\n\n searchable: {\n default: false,\n type: Boolean\n },\n\n rules: {\n default: () => [],\n type: Array,\n // we only want functions in the rules array\n validator: (rules: any) => rules.every((rule: any) => ['function'].includes(typeof rule))\n },\n\n requireDirty: {\n default: true,\n type: Boolean\n }\n },\n\n data(): LabeledFormElement {\n return {\n raised: this.mode === _VIEW || !!`${ this.value }`,\n focused: false,\n blurred: null,\n };\n },\n\n computed: {\n requiredField(): boolean {\n // using \"any\" for a type on \"rule\" here is dirty but the use of the optional chaining operator makes it safe for what we're doing here.\n return (this.required || this.rules.some((rule: any): boolean => rule?.name === 'required'));\n },\n empty(): boolean {\n return !!`${ this.value }`;\n },\n\n isView(): boolean {\n return this.mode === _VIEW;\n },\n\n isDisabled(): boolean {\n return this.disabled || this.isView;\n },\n\n isSearchable(): boolean {\n const { searchable } = this;\n const options = ( this.options || [] );\n\n if (searchable || options.length >= 10) {\n return true;\n }\n\n return false;\n },\n validationMessage(): string | undefined {\n // we want to grab the required rule passed in if we can but if it's not there then we can just grab it from the formRulesGenerator\n const requiredRule = this.rules.find((rule: any) => rule?.name === 'required') as Function;\n const ruleMessages = [];\n const value = this?.value;\n\n if (requiredRule && this.blurred && !this.focused) {\n const message = requiredRule(value);\n\n if (!!message) {\n return message;\n }\n }\n\n for (const rule of this.rules as Function[]) {\n const message = rule(value);\n\n if (!!message && rule.name !== 'required') { // we're catching 'required' above so we can ignore it here\n ruleMessages.push(message);\n }\n }\n if (ruleMessages.length > 0 && (this.blurred || this.focused || !this.requireDirty)) {\n return ruleMessages.join(', ');\n } else {\n return undefined;\n }\n }\n },\n\n methods: {\n resizeHandler() {\n // since the DD is positioned there is no way to 'inherit' the size of the input, this calcs the size of the parent and set the dd width if it is smaller. If not let it grow with the regular styles\n this.$nextTick(() => {\n const DD = (this.$refs.select as HTMLElement).querySelector('ul.vs__dropdown-menu');\n\n const selectWidth = getWidth(this.$refs.select as Element) || 0;\n const dropWidth = getWidth(DD as Element) || 0;\n\n if (dropWidth < selectWidth) {\n setWidth(DD as Element, selectWidth);\n }\n });\n },\n onFocus() {\n this.$emit('on-focus');\n\n return this.onFocusLabeled();\n },\n\n onFocusLabeled() {\n this.raised = true;\n this.focused = true;\n },\n\n onBlur() {\n this.$emit('on-blur');\n\n return this.onBlurLabeled();\n },\n\n onBlurLabeled() {\n this.focused = false;\n\n if ( !this.value ) {\n this.raised = false;\n }\n\n this.blurred = Date.now();\n }\n }\n});\n","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.has` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\nfunction baseHas(object, key) {\n return object != null && hasOwnProperty.call(object, key);\n}\n\nmodule.exports = baseHas;\n","// style-loader: Adds some css to the DOM by adding a \n","import mod from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./management.cattle.io.project.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./management.cattle.io.project.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./management.cattle.io.project.vue?vue&type=template&id=3a26ac99&scoped=true&\"\nimport script from \"./management.cattle.io.project.vue?vue&type=script&lang=js&\"\nexport * from \"./management.cattle.io.project.vue?vue&type=script&lang=js&\"\nimport style0 from \"./management.cattle.io.project.vue?vue&type=style&index=0&id=3a26ac99&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"3a26ac99\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"mt-10\"},[_c('div',{staticClass:\"mb-30\"},[_vm._v(\" \"+_vm._s(_vm.t('promptRemove.attemptingToRemove', { type: _vm.type }))+\" \"),_c('span',{directives:[{name:\"clean-html\",rawName:\"v-clean-html\",value:(_vm.podNames),expression:\"podNames\"}],staticClass:\"machine-name\"})]),_c('div',{staticClass:\"mb-30\"},[_c('Checkbox',{attrs:{\"label\":_vm.t('promptForceRemove.forceDelete')},model:{value:(_vm.forceDelete),callback:function ($$v) {_vm.forceDelete=$$v},expression:\"forceDelete\"}})],1),_c('Banner',{attrs:{\"color\":\"warning\",\"label-key\":\"promptForceRemove.podRemoveWarning\"}}),_vm._l((_vm.errors),function(error,i){return _c('Banner',{key:i,attrs:{\"color\":\"error\",\"label\":error}})})],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./pod.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./pod.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./pod.vue?vue&type=template&id=db441fb2&scoped=true&\"\nimport script from \"./pod.vue?vue&type=script&lang=js&\"\nexport * from \"./pod.vue?vue&type=script&lang=js&\"\nimport style0 from \"./pod.vue?vue&type=style&index=0&id=db441fb2&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"db441fb2\",\n null\n \n)\n\nexport default component.exports","module.exports = __WEBPACK_EXTERNAL_MODULE__5877__;","// style-loader: Adds some css to the DOM by adding a \n","import mod from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./ActionDropdown.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./ActionDropdown.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ActionDropdown.vue?vue&type=template&id=70f0de36&\"\nimport script from \"./ActionDropdown.vue?vue&type=script&lang=js&\"\nexport * from \"./ActionDropdown.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ActionDropdown.vue?vue&type=style&index=0&id=70f0de36&prod&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../@vue/cli-service/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","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('thead',[_c('tr',{class:{'loading': _vm.loading}},[(_vm.tableActions)?_c('th',{attrs:{\"width\":_vm.checkWidth,\"align\":\"middle\"}},[_c('Checkbox',{staticClass:\"check\",attrs:{\"data-testid\":\"sortable-table_check_select_all\",\"indeterminate\":_vm.isIndeterminate,\"disabled\":_vm.noRows || _vm.noResults},model:{value:(_vm.isAll),callback:function ($$v) {_vm.isAll=$$v},expression:\"isAll\"}})],1):_vm._e(),(_vm.subExpandColumn)?_c('th',{attrs:{\"width\":_vm.expandWidth}}):_vm._e(),_vm._l((_vm.columns),function(col){return _c('th',{directives:[{name:\"show\",rawName:\"v-show\",value:(!_vm.hasAdvancedFiltering || (_vm.hasAdvancedFiltering && col.isColVisible)),expression:\"!hasAdvancedFiltering || (hasAdvancedFiltering && col.isColVisible)\"}],key:col.name,class:{ sortable: col.sort, [col.breakpoint]: !!col.breakpoint},attrs:{\"align\":col.align || 'left',\"width\":col.width},on:{\"click\":function($event){$event.preventDefault();return _vm.changeSort($event, col)}}},[_c('div',{staticClass:\"table-header-container\",class:{ 'not-filterable': _vm.hasAdvancedFiltering && !col.isFilter }},[(col.sort)?_c('span',{directives:[{name:\"clean-tooltip\",rawName:\"v-clean-tooltip\",value:(_vm.tooltip(col)),expression:\"tooltip(col)\"}]},[_c('span',{directives:[{name:\"clean-html\",rawName:\"v-clean-html\",value:(_vm.labelFor(col)),expression:\"labelFor(col)\"}]}),_c('i',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.hasAdvancedFiltering && !col.isFilter),expression:\"hasAdvancedFiltering && !col.isFilter\"},{name:\"clean-tooltip\",rawName:\"v-clean-tooltip\",value:(_vm.t('sortableTable.tableHeader.noFilter')),expression:\"t('sortableTable.tableHeader.noFilter')\"}],staticClass:\"icon icon-info not-filter-icon\"}),_c('span',{staticClass:\"icon-stack\"},[_c('i',{staticClass:\"icon icon-sort icon-stack-1x faded\"}),(_vm.isCurrent(col) && !_vm.descending)?_c('i',{staticClass:\"icon icon-sort-down icon-stack-1x\"}):_vm._e(),(_vm.isCurrent(col) && _vm.descending)?_c('i',{staticClass:\"icon icon-sort-up icon-stack-1x\"}):_vm._e()])]):_c('span',{directives:[{name:\"clean-tooltip\",rawName:\"v-clean-tooltip\",value:(_vm.tooltip(col)),expression:\"tooltip(col)\"}]},[_vm._v(_vm._s(_vm.labelFor(col)))])])])}),(_vm.rowActions && _vm.hasAdvancedFiltering && _vm.tableColsOptions.length)?_c('th',{attrs:{\"width\":_vm.rowActionsWidth}},[_c('div',{ref:\"table-options\",staticClass:\"table-options-group\"},[_c('button',{staticClass:\"btn btn-sm role-multi-action table-options-btn\",attrs:{\"aria-haspopup\":\"true\",\"aria-expanded\":\"false\",\"type\":\"button\"},on:{\"click\":_vm.tableColsOptionsClick}},[_c('i',{staticClass:\"icon icon-actions\"})]),_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.tableColsOptionsVisibility),expression:\"tableColsOptionsVisibility\"}],staticClass:\"table-options-container\",style:(_vm.tableColsMenuPosition)},[(_vm.hasAdvGrouping)?_c('div',{staticClass:\"table-options-grouping\"},[_c('span',{staticClass:\"table-options-col-subtitle\"},[_vm._v(_vm._s(_vm.t('sortableTable.tableHeader.groupBy'))+\":\")]),_c('LabeledSelect',{staticClass:\"table-options-grouping-select\",attrs:{\"clearable\":true,\"options\":_vm.groupOptions,\"disabled\":false,\"searchable\":false,\"mode\":\"edit\",\"multiple\":false,\"taggable\":false},model:{value:(_vm.advGroup),callback:function ($$v) {_vm.advGroup=$$v},expression:\"advGroup\"}})],1):_vm._e(),_c('p',{staticClass:\"table-options-col-subtitle mb-20\"},[_vm._v(\" \"+_vm._s(_vm.t('sortableTable.tableHeader.show'))+\": \")]),_c('ul',_vm._l((_vm.tableColsOptions),function(col,index){return _c('li',{directives:[{name:\"show\",rawName:\"v-show\",value:(col.isTableOption),expression:\"col.isTableOption\"}],key:index,class:{ 'visible': !col.preventColToggle }},[_c('Checkbox',{directives:[{name:\"show\",rawName:\"v-show\",value:(!col.preventColToggle),expression:\"!col.preventColToggle\"}],staticClass:\"table-options-checkbox\",attrs:{\"label\":col.label},on:{\"input\":function($event){return _vm.tableOptionsCheckbox($event, col.label)}},model:{value:(col.isColVisible),callback:function ($$v) {_vm.$set(col, \"isColVisible\", $$v)},expression:\"col.isColVisible\"}})],1)}),0)])])]):(_vm.rowActions)?_c('th',{attrs:{\"width\":_vm.rowActionsWidth}}):_vm._e()],2)])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","export function getParent(el, parentSelector) {\n el = el?.parentElement;\n\n if (!el) {\n return null;\n }\n\n const matchFn = el.matches || el.matchesSelector;\n\n if (!matchFn.call(el, parentSelector)) {\n return getParent(el, parentSelector);\n }\n\n return el;\n}\n","import { isMore, isRange, suppressContextMenu, isAlternate } from '@shell/utils/platform';\nimport { get } from '@shell/utils/object';\nimport { filterBy } from '@shell/utils/array';\nimport { getParent } from '@shell/utils/dom';\n\nexport const ALL = 'all';\nexport const SOME = 'some';\nexport const NONE = 'none';\n\nexport default {\n mounted() {\n const table = this.$el.querySelector('TABLE');\n\n this._onRowClickBound = this.onRowClick.bind(this);\n this._onRowMousedownBound = this.onRowMousedown.bind(this);\n this._onRowContextBound = this.onRowContext.bind(this);\n\n table.addEventListener('click', this._onRowClickBound);\n table.addEventListener('mousedown', this._onRowMousedownBound);\n table.addEventListener('contextmenu', this._onRowContextBound);\n },\n\n beforeDestroy() {\n const table = this.$el.querySelector('TABLE');\n\n table.removeEventListener('click', this._onRowClickBound);\n table.removeEventListener('mousedown', this._onRowMousedownBound);\n table.removeEventListener('contextmenu', this._onRowContextBound);\n },\n\n computed: {\n // Used for the table-level selection check-box to show checked (all selected)/intermediate (some selected)/unchecked (none selected)\n howMuchSelected() {\n const total = this.pagedRows.length;\n const selected = this.selectedRows.length;\n\n if ( selected >= total && total > 0 ) {\n return ALL;\n } else if ( selected > 0 ) {\n return SOME;\n }\n\n return NONE;\n },\n\n // NOTE: The logic here could be simplified and made more performant\n bulkActionsForSelection() {\n let disableAll = false;\n // pagedRows is all rows in the current page\n const all = this.pagedRows;\n const allRows = this.arrangedRows;\n let selected = this.selectedRows;\n\n // Nothing is selected\n if ( !this.selectedRows.length ) {\n // and there are no rows\n if ( !allRows ) {\n return [];\n }\n\n const firstNode = allRows[0];\n\n selected = firstNode ? [firstNode] : [];\n disableAll = true;\n }\n\n const map = {};\n\n // Find and add all the actions for all the nodes so that we know\n // what all the possible actions are\n for ( const node of all ) {\n if (node.availableActions) {\n for ( const act of node.availableActions ) {\n if ( act.bulkable ) {\n _add(map, act, false);\n }\n }\n }\n }\n\n // Go through all the selected items and add the actions (which were already identified above)\n // as available for some (or all) of the selected nodes\n for ( const node of selected ) {\n if (node.availableActions) {\n for ( const act of node.availableActions ) {\n if ( act.bulkable && act.enabled ) {\n _add(map, act, false);\n }\n }\n }\n }\n\n // If there's no items actually selected, we want to see all the actions\n // so you know what exists, but have them all be disabled since there's nothing to do them on.\n const out = _filter(map, disableAll);\n\n // Enable a bulkaction if some of the selected items can perform the action\n out.forEach((bulkAction) => {\n const actionEnabledForSomeSelected = this.selectedRows.some((node) => {\n const availableActions = node.availableActions || [];\n\n return availableActions.some((action) => action.action === bulkAction.action && action.enabled);\n });\n\n bulkAction.enabled = this.selectedRows.length > 0 && actionEnabledForSomeSelected;\n });\n\n return out.sort((a, b) => (b.weight || 0) - (a.weight || 0));\n }\n },\n\n data() {\n return {\n // List of selected items in the table\n selectedRows: [],\n prevNode: null,\n };\n },\n\n watch: {\n // On page change\n pagedRows() {\n // When the table contents changes:\n // - Remove items that are in the selection but no longer in the table.\n\n const content = this.pagedRows;\n const toRemove = [];\n\n for (const node of this.selectedRows) {\n if (!content.includes(node) ) {\n toRemove.push(node);\n }\n }\n\n this.update([], toRemove);\n }\n },\n\n methods: {\n onToggleAll(value) {\n if ( value ) {\n this.update(this.pagedRows, []);\n\n return true;\n } else {\n this.update([], this.pagedRows);\n\n return false;\n }\n },\n\n onRowMousedown(e) {\n if ( isRange(e) || this.isSelectionCheckbox(e.target) ) {\n e.preventDefault();\n }\n },\n\n onRowMouseEnter(e) {\n const tr = e.target.closest('TR');\n\n if (tr.classList.contains('sub-row')) {\n const trMainRow = tr.previousElementSibling;\n\n trMainRow.classList.add('sub-row-hovered');\n }\n },\n\n onRowMouseLeave(e) {\n const tr = e.target.closest('TR');\n\n if (tr.classList.contains('sub-row')) {\n const trMainRow = tr.previousElementSibling;\n\n trMainRow.classList.remove('sub-row-hovered');\n }\n },\n\n nodeForEvent(e) {\n const tagName = e.target.tagName;\n const tgt = e.target;\n const actionElement = tgt.closest('.actions');\n\n if ( tgt.classList.contains('select-all-check') ) {\n return;\n }\n\n if ( !actionElement ) {\n if (\n tagName === 'A' ||\n tagName === 'BUTTON' ||\n getParent(tgt, '.btn')\n ) {\n return;\n }\n }\n\n const tgtRow = e.target.closest('TR');\n\n return this.nodeForRow(tgtRow);\n },\n\n nodeForRow(tgtRow) {\n if ( tgtRow?.classList.contains('separator-row') ) {\n return;\n }\n\n while ( tgtRow && !tgtRow.classList.contains('main-row') ) {\n tgtRow = tgtRow.previousElementSibling;\n }\n\n if ( !tgtRow ) {\n return;\n }\n\n const nodeId = tgtRow.dataset.nodeId;\n\n if ( !nodeId ) {\n return;\n }\n\n const node = this.pagedRows.find( (x) => get(x, this.keyField) === nodeId );\n\n return node;\n },\n\n async onRowClick(e) {\n const node = this.nodeForEvent(e);\n const td = e.target.closest('TD');\n const skipSelect = td?.classList.contains('skip-select');\n\n if (skipSelect) {\n return;\n }\n const selection = this.selectedRows;\n const isCheckbox = this.isSelectionCheckbox(e.target) || td?.classList.contains('row-check');\n const isExpand = td?.classList.contains('row-expand');\n const content = this.pagedRows;\n\n this.$emit('rowClick', e);\n\n if ( !node ) {\n return;\n }\n\n if ( isExpand ) {\n this.toggleExpand(node);\n\n return;\n }\n\n const actionElement = e.target.closest('.actions');\n\n if ( actionElement ) {\n let resources = [node];\n\n if ( this.mangleActionResources ) {\n const i = actionElement.querySelector('i');\n\n i.classList.remove('icon-actions');\n i.classList.add('icon-spinner');\n i.classList.add('icon-spin');\n\n try {\n resources = await this.mangleActionResources(resources);\n } finally {\n i.classList.remove('icon-spinner');\n i.classList.remove('icon-spin');\n i.classList.add('icon-actions');\n }\n }\n\n this.$store.commit(`action-menu/show`, {\n resources,\n event: e,\n elem: actionElement\n });\n\n return;\n }\n\n const isSelected = selection.includes(node);\n let prevNode = this.prevNode;\n\n // PrevNode is only valid if it's in the current content\n if ( !prevNode || !content.includes(prevNode) ) {\n prevNode = node;\n }\n\n if ( isMore(e) ) {\n this.toggle(node);\n } else if ( isRange(e) ) {\n const toToggle = this.nodesBetween(prevNode, node);\n\n if ( isSelected ) {\n this.update([], toToggle);\n } else {\n this.update(toToggle, []);\n }\n } else if ( isCheckbox ) {\n this.toggle(node);\n } else {\n this.update([node], content);\n }\n\n this.prevNode = node;\n },\n\n async onRowContext(e) {\n const node = this.nodeForEvent(e);\n\n if ( suppressContextMenu(e) ) {\n return;\n }\n\n if ( !node ) {\n return;\n }\n\n e.preventDefault();\n e.stopPropagation();\n\n this.prevNode = node;\n const isSelected = this.selectedRows.includes(node);\n\n if ( !isSelected ) {\n this.update([node], this.selectedRows.slice());\n }\n\n let resources = this.selectedRows;\n\n if ( this.mangleActionResources ) {\n resources = await this.mangleActionResources(resources);\n }\n\n this.$store.commit(`action-menu/show`, {\n resources,\n event: e,\n });\n },\n\n keySelectRow(row, more = false) {\n const node = this.nodeForRow(row);\n const content = this.pagedRows;\n\n if ( !node ) {\n return;\n }\n\n if ( more ) {\n this.update([node], []);\n } else {\n this.update([node], content);\n }\n\n this.prevNode = node;\n },\n\n isSelectionCheckbox(element) {\n return element.tagName === 'INPUT' &&\n element.type === 'checkbox' &&\n element.closest('.selection-checkbox') !== null;\n },\n\n nodesBetween(a, b) {\n let toToggle = [];\n const key = this.groupBy;\n\n if ( key ) {\n // Grouped has 2 levels to look through\n const grouped = this.groupedRows;\n\n let from = this.groupIdx(a);\n let to = this.groupIdx(b);\n\n if ( !from || !to ) {\n return [];\n }\n\n // From has to come before To\n if ( (from.group > to.group) || ((from.group === to.group) && (from.item > to.item)) ) {\n [from, to] = [to, from];\n }\n\n for ( let i = from.group ; i <= to.group ; i++ ) {\n const items = grouped[i].rows;\n let j = (from.group === i ? from.item : 0);\n\n while ( items[j] && ( i < to.group || j <= to.item )) {\n toToggle.push(items[j]);\n j++;\n }\n }\n } else {\n // Ungrouped is much simpler\n const content = this.pagedRows;\n let from = content.indexOf(a);\n let to = content.indexOf(b);\n\n [from, to] = [Math.min(from, to), Math.max(from, to)];\n toToggle = content.slice(from, to + 1);\n }\n\n // check if there is already duplicate content selected (selectedRows) on the list to toggle...\n toToggle = toToggle.filter((item) => !this.selectedRows.includes(item));\n\n return toToggle;\n },\n\n groupIdx(node) {\n const grouped = this.groupedRows;\n\n for ( let i = 0 ; i < grouped.length ; i++ ) {\n const rows = grouped[i].rows;\n\n for ( let j = 0 ; j < rows.length ; j++ ) {\n if ( rows[j] === node ) {\n return {\n group: i,\n item: j\n };\n }\n }\n }\n\n return null;\n },\n\n toggle(node) {\n const add = [];\n const remove = [];\n\n if (this.selectedRows.includes(node)) {\n remove.push(node);\n } else {\n add.push(node);\n }\n\n this.update(add, remove);\n },\n\n update(toAdd, toRemove) {\n toRemove.forEach((row) => {\n const index = this.selectedRows.findIndex((r) => r === row);\n\n if (index !== -1) {\n this.selectedRows.splice(index, 1);\n }\n });\n\n if ( toAdd ) {\n this.selectedRows.push(...toAdd);\n }\n\n // Uncheck and check the checkboxes of nodes that have been added/removed\n if (toRemove.length) {\n this.$nextTick(() => {\n for ( let i = 0 ; i < toRemove.length ; i++ ) {\n this.updateInput(toRemove[i], false, this.keyField);\n }\n });\n }\n\n if (toAdd.length) {\n this.$nextTick(() => {\n for ( let i = 0 ; i < toAdd.length ; i++ ) {\n this.updateInput(toAdd[i], true, this.keyField);\n }\n });\n }\n\n this.$nextTick(() => {\n this.$emit('selection', this.selectedRows);\n });\n },\n\n updateInput(node, on, keyField) {\n const id = get(node, keyField);\n\n if ( id ) {\n // Note: This is looking for the checkbox control for the row\n const input = this.$el.querySelector(`div[data-checkbox-ctrl][data-node-id=\"${ id }\"]`);\n\n if ( input && !input.disabled ) {\n const label = input.querySelector('label');\n\n if (label) {\n label.value = on;\n }\n let tr = input.closest('tr');\n let first = true;\n\n while ( tr && (first || tr.classList.contains('sub-row') ) ) {\n if (on) {\n tr.classList.add('row-selected');\n } else {\n tr.classList.remove('row-selected');\n }\n tr = tr.nextElementSibling;\n first = false;\n }\n }\n }\n },\n\n select(nodes) {\n nodes.forEach((node) => {\n const id = get(node, this.keyField);\n const input = this.$el.querySelector(`label[data-node-id=\"${ id }\"]`);\n\n input.dispatchEvent(new Event('click'));\n });\n },\n\n applyTableAction(action, args, event) {\n const opts = { alt: event && isAlternate(event), event };\n\n // Go through the table selection and filter out those actions that can't run the chosen action\n const executableSelection = this.selectedRows.filter((row) => {\n const matchingResourceAction = row.availableActions.find((a) => a.action === action.action);\n\n return matchingResourceAction?.enabled;\n });\n\n _execute(executableSelection, action, args, opts, this);\n\n this.actionOfInterest = null;\n },\n\n clearSelection() {\n this.update([], this.selectedRows);\n },\n\n }\n};\n\n// ---------------------------------------------------------------------\n// --- Helpers that were in selectionStore.js --------------------------\n// ---------------------------------------------------------------------\n\nlet anon = 0;\n\nfunction _add(map, act, incrementCounts = true) {\n let id = act.action;\n\n if ( !id ) {\n id = `anon${ anon }`;\n anon++;\n }\n\n let obj = map[id];\n\n if ( !obj ) {\n obj = Object.assign({}, act);\n map[id] = obj;\n obj.allEnabled = false;\n }\n\n if ( !act.enabled ) {\n obj.allEnabled = false;\n } else {\n obj.anyEnabled = true;\n }\n\n if ( incrementCounts ) {\n obj.available = (obj.available || 0) + (!act.enabled ? 0 : 1 );\n obj.total = (obj.total || 0) + 1;\n }\n\n return obj;\n}\n\nfunction _filter(map, disableAll = false) {\n const out = filterBy(Object.values(map), 'anyEnabled', true);\n\n for ( const act of out ) {\n if ( disableAll ) {\n act.enabled = false;\n } else {\n act.enabled = ( act.available >= act.total );\n }\n }\n\n return out;\n}\n\nfunction _execute(resources, action, args, opts = {}, ctx) {\n args = args || [];\n\n // New pattern for extensions - always call invoke\n if (action.invoke) {\n const actionOpts = {\n action,\n event: opts.event,\n isAlt: !!opts.alt,\n };\n\n return action.invoke.apply(ctx, [actionOpts, resources || [], args]);\n }\n\n if ( resources.length > 1 && action.bulkAction && !opts.alt ) {\n const fn = resources[0][action.bulkAction];\n\n if ( fn ) {\n return fn.call(resources[0], resources, ...args);\n }\n }\n\n const promises = [];\n\n for ( const resource of resources ) {\n let fn;\n\n if (opts.alt && action.altAction) {\n fn = resource[action.altAction];\n } else {\n fn = resource[action.action];\n }\n\n if ( fn ) {\n promises.push(fn.apply(resource, args));\n }\n }\n\n return Promise.all(promises);\n}\n","// @TODO replace this with popper.js...\n\nexport const LEFT = 'left';\nexport const RIGHT = 'right';\nexport const TOP = 'top';\nexport const CENTER = 'center'; // These are both the same externally so you can use either,\nexport const MIDDLE = 'center'; // but have different meaning inside this file (center->left/right, middle->top/bottom)\nexport const BOTTOM = 'bottom';\nexport const AUTO = 'auto';\n\nexport function boundingRect(elem) {\n const pos = elem.getBoundingClientRect();\n const width = elem.offsetWidth;\n const height = elem.offsetHeight;\n\n return {\n top: pos.top,\n right: pos.left + width,\n bottom: pos.top + height,\n left: pos.left,\n width,\n height,\n };\n}\n\nexport function fakeRectFor(event) {\n return {\n top: event.clientY,\n left: event.clientX,\n bottom: event.clientY,\n right: event.clientX,\n width: 0,\n height: 0,\n };\n}\n\nexport function screenRect() {\n const width = window.innerWidth;\n const height = window.innerHeight;\n const top = window.pageYOffset;\n const left = window.pageXOffset;\n\n return {\n top,\n right: left + width,\n bottom: top + height,\n left,\n width,\n height,\n };\n}\n\nexport function fitOnScreen(contentElem, triggerElemOrEvent, opt, useDefaults) {\n let {\n positionX = AUTO, // Preferred horizontal position\n positionY = AUTO, // Preferred vertical position\n } = opt || {};\n\n const {\n fudgeX = 0,\n fudgeY = 0,\n overlapX = true, // Position on \"top\" of the trigger horizontally\n overlapY = false, // Position on \"top\" of the trigger vertically\n } = opt || {};\n\n const screen = screenRect();\n let trigger;\n\n if ( triggerElemOrEvent instanceof Event ) {\n trigger = fakeRectFor(triggerElemOrEvent);\n } else {\n trigger = boundingRect(triggerElemOrEvent);\n }\n\n let content = {};\n\n if (contentElem) {\n content = boundingRect(contentElem);\n }\n\n if (useDefaults) {\n content = {\n top: 0,\n right: 147,\n bottom: 163,\n left: 0,\n width: 147,\n height: 80\n };\n }\n\n // console.log('screen', screen);\n // console.log('trigger', trigger);\n // console.log('content', content);\n\n const style = { position: 'absolute' };\n\n const originFor = {\n left: (overlapX ? trigger.left : trigger.right ),\n center: (trigger.left + trigger.right ) / 2,\n right: (overlapX ? trigger.right : trigger.left ),\n top: (overlapY ? trigger.bottom : trigger.top ),\n middle: (trigger.top + trigger.bottom ) / 2,\n bottom: (overlapY ? trigger.top : trigger.bottom ),\n };\n\n // console.log('origin', originFor);\n\n const gapIf = {\n left: screen.right - content.width - originFor.left,\n center: Math.min(screen.right - (content.width / 2) - originFor.center, originFor.center - (content.width / 2) - screen.left),\n right: originFor.right - content.width - screen.left,\n top: originFor.bottom - content.height - screen.top,\n middle: Math.min(originFor.middle - (content.height / 2) - screen.top, screen.bottom - (content.height / 2) - originFor.middle),\n bottom: screen.bottom - content.height - originFor.top,\n };\n\n // console.log('gapIf', gapIf);\n\n if ( positionX === CENTER && gapIf.center < 0) {\n positionX = AUTO;\n }\n\n if ( positionX === AUTO ) {\n positionX = gapIf.left < 0 || gapIf.right * 1.5 > gapIf.left ? RIGHT : LEFT;\n } else if ( positionY === LEFT && gapIf.left < 0 ) {\n positionX = RIGHT;\n } else if ( positionY === RIGHT && gapIf.right < 0 ) {\n positionX = LEFT;\n }\n\n switch ( positionX ) {\n case LEFT:\n style.left = `${ originFor.left - fudgeX }px`;\n break;\n case CENTER:\n style.left = `${ ((originFor.left + originFor.right) / 2) - (content.width / 2) - fudgeX }px`;\n break;\n case RIGHT:\n style.left = `${ originFor.right + fudgeX - content.width }px`;\n // style.right = `${ screen.width - originFor.right - fudgeX }px`;\n break;\n }\n\n if ( positionY === MIDDLE && gapIf.middle < 0) {\n positionY = AUTO;\n }\n\n if ( positionY === AUTO ) {\n positionY = gapIf.top < 0 || gapIf.bottom * 1.5 > gapIf.top ? BOTTOM : TOP;\n } else if ( positionY === TOP && gapIf.top < 0 ) {\n positionY = BOTTOM;\n } else if ( positionY === BOTTOM && gapIf.bottom < 0 ) {\n positionY = TOP;\n }\n\n switch ( positionY ) {\n case TOP:\n style.top = `${ originFor.top + fudgeY - content.height }px`;\n break;\n case CENTER:\n style.top = `${ ((originFor.top + originFor.bottom) / 2) + fudgeY - content.height }px`;\n break;\n case BOTTOM:\n style.top = `${ originFor.bottom - fudgeY }px`;\n break;\n }\n\n // console.log(positionX, positionY, style);\n\n return style;\n}\n","\n\n\n\n \n \n","import mod from \"-!../../../../cache-loader/dist/cjs.js??ref--14-0!../../../../thread-loader/dist/cjs.js!../../../../babel-loader/lib/index.js!../../../../cache-loader/dist/cjs.js??ref--2-0!../../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./THead.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../cache-loader/dist/cjs.js??ref--14-0!../../../../thread-loader/dist/cjs.js!../../../../babel-loader/lib/index.js!../../../../cache-loader/dist/cjs.js??ref--2-0!../../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./THead.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./THead.vue?vue&type=template&id=36bf3081&scoped=true&\"\nimport script from \"./THead.vue?vue&type=script&lang=js&\"\nexport * from \"./THead.vue?vue&type=script&lang=js&\"\nimport style0 from \"./THead.vue?vue&type=style&index=0&id=36bf3081&prod&lang=scss&scoped=true&\"\nimport style1 from \"./THead.vue?vue&type=style&index=1&id=36bf3081&prod&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"36bf3081\",\n null\n \n)\n\nexport default component.exports","import { get } from '@shell/utils/object';\nimport { addObject, addObjects, isArray, removeAt } from '@shell/utils/array';\n\nexport const ADV_FILTER_ALL_COLS_VALUE = 'allcols';\nexport const ADV_FILTER_ALL_COLS_LABEL = 'All Columns';\nconst LABEL_IDENTIFIER = ':::islabel';\n\nexport default {\n data() {\n return {\n searchQuery: null,\n previousFilter: null,\n previousResult: null,\n };\n },\n\n computed: {\n searchFields() {\n const out = columnsToSearchField(this.columns);\n\n if ( this.extraSearchFields ) {\n addObjects(out, this.extraSearchFields);\n }\n\n return out;\n },\n\n /*\n subFields: computed('subHeaders.@each.{searchField,name}', 'extraSearchSubFields.[]', function() {\n let out = headersToSearchField(get(this, 'subHeaders'));\n\n return out.addObjects(get(this, 'extraSearchSubFields') || []);\n }),\n */\n filteredRows() {\n // PROP hasAdvancedFiltering comes from Advanced Filtering mixin (careful changing data var there...)\n if (!this.hasAdvancedFiltering) {\n return this.handleFiltering();\n } else {\n return this.handleAdvancedFiltering();\n }\n },\n },\n\n methods: {\n handleAdvancedFiltering() {\n this.subMatches = null;\n\n if (this.searchQuery.length) {\n const out = (this.arrangedRows || []).slice();\n\n const res = out.filter((row) => {\n return this.searchQuery.every((f) => {\n if (f.prop === ADV_FILTER_ALL_COLS_VALUE) {\n // advFilterSelectOptions comes from Advanced Filtering mixin\n // remove the All Columns option from the list so that we don't iterate over it\n const allCols = this.advFilterSelectOptions.slice(1);\n let searchFields = [];\n\n allCols.forEach((col) => {\n if (col.value.includes('[') && col.value.includes(']')) {\n searchFields = searchFields.concat(JSON.parse(col.value));\n } else {\n // this means we are on the presence of a label, which should be dealt\n // carefully because of object path such row.metadata.labels.\"app.kubernetes.io/managed-by\n const value = col.isLabel ? `${ col.label }${ LABEL_IDENTIFIER }` : col.value;\n\n searchFields.push(value);\n }\n });\n\n return handleStringSearch(searchFields, [f.value], row);\n } else {\n if (f.prop.includes('[') && f.prop.includes(']')) {\n return handleStringSearch(JSON.parse(f.prop), [f.value], row);\n }\n\n let prop = f.prop;\n\n // this means we are on the presence of a label, which should be dealt\n // carefully because of object path such row.metadata.labels.\"app.kubernetes.io/managed-by\"\n if (f.prop.includes('metadata.labels')) {\n prop = `${ f.label }${ LABEL_IDENTIFIER }`;\n }\n\n return handleStringSearch([prop], [f.value], row);\n }\n });\n });\n\n return res;\n }\n\n // return arrangedRows array if we don't have anything to search for...\n return this.arrangedRows;\n },\n\n handleFiltering() {\n const searchText = (this.searchQuery || '').trim().toLowerCase();\n let out;\n\n if ( searchText && this.previousResult && searchText.startsWith(this.previousFilter) ) {\n // If the new search is an addition to the last one, we can start with the same set of results as last time\n // and filter those down, since adding more searchText can only reduce the number of results.\n out = this.previousResult.slice();\n } else {\n this.previousResult = null;\n out = (this.arrangedRows || []).slice();\n }\n\n this.previousFilter = searchText;\n\n if ( !searchText.length ) {\n this.subMatches = null;\n this.previousResult = null;\n\n return out;\n }\n\n const searchFields = this.searchFields;\n const searchTokens = searchText.split(/\\s*[, ]\\s*/);\n const subSearch = this.subSearch;\n const subFields = this.subFields;\n const subMatches = {};\n\n for ( let i = out.length - 1 ; i >= 0 ; i-- ) {\n const row = out[i];\n let hits = 0;\n let mainFound = true;\n\n mainFound = handleStringSearch(searchFields, searchTokens, row);\n\n if ( subFields && subSearch) {\n const subRows = row[subSearch] || [];\n\n for ( let k = subRows.length - 1 ; k >= 0 ; k-- ) {\n let subFound = true;\n\n subFound = handleStringSearch(subFields, searchTokens, row);\n\n if ( subFound ) {\n hits++;\n }\n }\n\n subMatches[get(row, this.keyField)] = hits;\n }\n\n if ( !mainFound && hits === 0 ) {\n removeAt(out, i);\n }\n }\n\n this.subMatches = subMatches;\n this.previousResult = out;\n\n return out;\n }\n },\n\n watch: {\n arrangedRows(q) {\n // The rows changed so the old filter result is no longer useful\n this.previousResult = null;\n }\n },\n};\n\nfunction columnsToSearchField(columns) {\n const out = [];\n\n (columns || []).forEach((column) => {\n const field = column.search;\n\n if ( field ) {\n if ( typeof field === 'string' ) {\n addObject(out, field);\n } else if ( isArray(field) ) {\n addObjects(out, field);\n }\n } else if ( field === false ) {\n // Don't add the name\n } else {\n // Use value/name as the default\n addObject(out, column.value || column.name);\n }\n });\n\n return out.filter((x) => !!x);\n}\n\nconst ipLike = /^[0-9a-f\\.:]+$/i;\n\nfunction handleStringSearch(searchFields, searchTokens, row) {\n for ( let j = 0 ; j < searchTokens.length ; j++ ) {\n let expect = true;\n let token = searchTokens[j];\n\n if ( token.substr(0, 1) === '!' ) {\n expect = false;\n token = token.substr(1);\n }\n\n if ( token && matches(searchFields, token, row) !== expect ) {\n return false;\n }\n\n return true;\n }\n}\n\nfunction matches(fields, token, item) {\n for ( let field of fields ) {\n if ( !field ) {\n continue;\n }\n\n // some items might not even have metadata.labels or metadata.labels.something... ignore those items. Nothing to filter by\n if (typeof field !== 'function' &&\n field.includes(LABEL_IDENTIFIER) &&\n (!item.metadata.labels || !item.metadata.labels[field.replace(LABEL_IDENTIFIER, '')])) {\n continue;\n }\n\n let modifier;\n let val;\n\n if (typeof field === 'function') {\n val = field(item);\n } else if (field.includes(LABEL_IDENTIFIER)) {\n val = item.metadata.labels[field.replace(LABEL_IDENTIFIER, '')];\n } else {\n const idx = field.indexOf(':');\n\n if ( idx > 0 ) {\n modifier = field.substr(idx + 1);\n field = field.substr(0, idx);\n }\n\n if ( field.includes('.') ) {\n val = get(item, field);\n } else {\n val = item[field];\n }\n }\n\n if ( val === undefined ) {\n continue;\n }\n\n val = (`${ val }`).toLowerCase();\n if ( !val ) {\n continue;\n }\n\n if ( !modifier ) {\n if ( val.includes((`${ token }`).toLowerCase()) ) {\n return true;\n }\n } else if ( modifier === 'exact' ) {\n if ( val === token ) {\n return true;\n }\n } else if ( modifier === 'ip' ) {\n const tokenMayBeIp = ipLike.test(token);\n\n if ( tokenMayBeIp ) {\n const re = new RegExp(`(?:^|\\\\.)${ token }(?:\\\\.|$)`);\n\n if ( re.test(val) ) {\n return true;\n }\n }\n } else if ( modifier === 'prefix' ) {\n if ( val.indexOf(token) === 0) {\n return true;\n }\n }\n }\n\n return false;\n}\n","import { sortBy } from '@shell/utils/sort';\nimport { addObject } from '@shell/utils/array';\n\nexport default {\n computed: {\n sortFields() {\n let fromGroup = ( this.groupBy ? this.groupSort || this.groupBy : null) || [];\n let fromColumn = [];\n\n const column = (this.columns || this.headers).find((x) => x && x.name && x.name.toLowerCase() === this.sortBy.toLowerCase());\n\n if ( this.sortBy && column && column.sort ) {\n fromColumn = column.sort;\n }\n\n if ( !Array.isArray(fromGroup) ) {\n fromGroup = [fromGroup];\n }\n\n if ( !Array.isArray(fromColumn) ) {\n fromColumn = [fromColumn];\n }\n\n const out = [...fromGroup, ...fromColumn];\n\n addObject(out, 'nameSort');\n addObject(out, 'id');\n\n return out;\n },\n\n arrangedRows() {\n let key;\n\n if ( this.sortGenerationFn ) {\n key = `${ this.sortGenerationFn.apply(this) }/${ this.rows.length }/${ this.descending }/${ this.sortFields.join(',') }`;\n\n if ( this.cacheKey === key ) {\n return this.cachedRows;\n }\n }\n\n const out = sortBy(this.rows, this.sortFields, this.descending);\n\n if ( key ) {\n this.cacheKey = key;\n this.cachedRows = out;\n }\n\n return out;\n },\n },\n\n data() {\n let sortBy = null;\n\n this._defaultSortBy = this.defaultSortBy;\n\n // Try to find a reasonable default sort\n if ( !this._defaultSortBy ) {\n const markedColumn = this.headers.find((x) => !!x.defaultSort);\n const nameColumn = this.headers.find( (x) => x.name === 'name');\n\n if ( markedColumn ) {\n this._defaultSortBy = markedColumn.name;\n } else if ( nameColumn ) {\n // Use the name column if there is one\n this._defaultSortBy = nameColumn.name;\n } else {\n // The first column that isn't state\n const first = this.headers.filter( (x) => x.name !== 'state' )[0];\n\n if ( first ) {\n this._defaultSortBy = first.name;\n } else {\n // I give up\n this._defaultSortBy = 'id';\n }\n }\n }\n\n // If the sort column doesn't exist or isn't specified, use default\n if ( !sortBy || !this.headers.find((x) => x.name === sortBy ) ) {\n sortBy = this._defaultSortBy;\n }\n\n return {\n sortBy,\n descending: false,\n cachedRows: null,\n cacheKey: null,\n };\n },\n\n methods: {\n changeSort(sort, desc) {\n this.sortBy = sort;\n this.descending = desc;\n\n // Always go back to the first page when the sort is changed\n this.setPage(1);\n },\n },\n};\n","import { ROWS_PER_PAGE } from '@shell/store/prefs';\n\nexport default {\n computed: {\n indexFrom() {\n return Math.max(0, 1 + this.perPage * (this.page - 1));\n },\n\n indexTo() {\n return Math.min(this.filteredRows.length, this.indexFrom + this.perPage - 1);\n },\n\n totalPages() {\n return Math.ceil(this.filteredRows.length / this.perPage );\n },\n\n showPaging() {\n return !this.loading && this.paging && this.totalPages > 1;\n },\n\n pagingDisplay() {\n const opt = {\n ...(this.pagingParams || {}),\n\n count: this.filteredRows.length,\n pages: this.totalPages,\n from: this.indexFrom,\n to: this.indexTo,\n };\n\n return this.$store.getters['i18n/t'](this.pagingLabel, opt);\n },\n\n pagedRows() {\n if ( this.paging ) {\n return this.filteredRows.slice(this.indexFrom - 1, this.indexTo);\n } else {\n return this.filteredRows;\n }\n }\n },\n\n data() {\n const perPage = this.getPerPage();\n\n return { page: 1, perPage };\n },\n\n watch: {\n pagedRows() {\n // Go to the last page if we end up \"past\" the last page because the table changed\n\n const from = this.indexFrom;\n const last = this.filteredRows.length;\n\n if ( this.totalPages > 0 && this.page > 1 && from > last ) {\n this.setPage(this.totalPages);\n }\n }\n },\n\n methods: {\n getPerPage() {\n // perPage can not change while the list is displayed\n let out = this.rowsPerPage || 0;\n\n if ( out <= 0 ) {\n out = parseInt(this.$store.getters['prefs/get'](ROWS_PER_PAGE), 10) || 0;\n }\n\n // This should ideally never happen, but the preference value could be invalid, so return something...\n if ( out <= 0 ) {\n out = 10;\n }\n\n return out;\n },\n\n setPage(num) {\n if (this.page === num) {\n return;\n }\n\n this.page = num;\n },\n\n goToPage(which) {\n let page;\n\n switch (which) {\n case 'first':\n page = 1;\n break;\n case 'prev':\n page = Math.max(1, this.page - 1 );\n break;\n case 'next':\n page = Math.min(this.totalPages, this.page + 1 );\n break;\n case 'last':\n page = this.totalPages;\n break;\n }\n\n this.setPage(page);\n },\n\n getPageByRow(rowId, getRowId = (x) => x) {\n const pos = this.filteredRows.map(getRowId).indexOf(rowId);\n\n if (pos === -1) {\n return null;\n }\n\n return Math.ceil(pos / this.perPage);\n }\n }\n};\n","import { get } from '@shell/utils/object';\n\nexport default {\n computed: {\n groupedRows() {\n const groupKey = this.groupBy;\n const refKey = this.groupRef || groupKey;\n\n if ( !groupKey) {\n return [{\n key: 'default',\n ref: 'default',\n rows: this.pagedRows,\n }];\n }\n\n const out = [];\n const map = {};\n\n for ( const obj of this.pagedRows ) {\n const key = get(obj, groupKey) || '';\n const ref = get(obj, refKey);\n let entry = map[key];\n\n if ( entry ) {\n entry.rows.push(obj);\n } else {\n entry = {\n key,\n ref,\n rows: [obj]\n };\n map[key] = entry;\n out.push(entry);\n }\n }\n\n return out;\n }\n }\n};\n","import debounce from 'lodash/debounce';\n\n// Use a visible display type to reduce flickering\nconst displayType = 'inline-block';\n\nexport default {\n\n data() {\n return {\n bulkActionsClass: 'bulk',\n bulkActionClass: 'bulk-action',\n bulkActionsDropdownClass: 'bulk-actions-dropdown',\n bulkActionAvailabilityClass: 'action-availability',\n\n hiddenActions: [],\n\n updateHiddenBulkActions: debounce(this.protectedUpdateHiddenBulkActions, 10)\n };\n },\n\n beforeDestroy() {\n window.removeEventListener('resize', this.onWindowResize);\n },\n\n mounted() {\n window.addEventListener('resize', this.onWindowResize);\n this.updateHiddenBulkActions();\n },\n\n watch: {\n selectedRows() {\n this.updateHiddenBulkActions();\n },\n keyedAvailableActions() {\n this.updateHiddenBulkActions();\n },\n },\n\n computed: {\n availableActions() {\n return this.bulkActionsForSelection.filter((act) => !act.external);\n },\n\n keyedAvailableActions() {\n return this.availableActions.map((aa) => aa.action);\n },\n\n selectedRowsText() {\n if (!this.selectedRows.length) {\n return null;\n }\n\n return this.t('sortableTable.actionAvailability.selected', { actionable: this.selectedRows.length });\n },\n\n // Shows a tooltip if the bulk action that the user is hovering over can not be applied to all selected rows\n actionTooltip() {\n if (!this.selectedRows.length || !this.actionOfInterest) {\n return null;\n }\n\n const runnableTotal = this.selectedRows.filter(this.canRunBulkActionOfInterest).length;\n\n if (runnableTotal === this.selectedRows.length) {\n return null;\n }\n\n return this.t('sortableTable.actionAvailability.some', {\n actionable: runnableTotal,\n total: this.selectedRows.length,\n });\n },\n },\n\n methods: {\n onWindowResize() {\n this.updateHiddenBulkActions();\n this.onScroll();\n },\n\n /**\n * Determine if any actions wrap over to a new line, if so group them into a dropdown instead\n */\n protectedUpdateHiddenBulkActions() {\n if (!this.$refs.container) {\n return;\n }\n\n const actionsContainer = this.$refs.container.querySelector(`.${ this.bulkActionsClass }`);\n const actionsDropdown = this.$refs.container.querySelector(`.${ this.bulkActionsDropdownClass }`);\n\n if (!actionsContainer || !actionsDropdown) {\n return;\n }\n\n const actionsContainerWidth = actionsContainer.offsetWidth;\n const actionsHTMLCollection = this.$refs.container.querySelectorAll(`.${ this.bulkActionClass }`);\n const actions = Array.from(actionsHTMLCollection || []);\n\n // Determine if the 'x selected' label should show and it's size\n const selectedRowsText = this.$refs.container.querySelector(`.${ this.bulkActionAvailabilityClass }`);\n let selectedRowsTextWidth = 0;\n\n if (this.selectedRowsText) {\n if (selectedRowsText) {\n selectedRowsText.style.display = displayType;\n selectedRowsTextWidth = selectedRowsText.offsetWidth;\n } else {\n selectedRowsText.style.display = 'none;';\n }\n }\n\n this.hiddenActions = [];\n\n let cumulativeWidth = 0;\n let showActionsDropdown = false;\n let totalAvailableWidth = actionsContainerWidth - selectedRowsTextWidth;\n\n // Loop through all actions to determine if some exceed the available space in the row, if so hide them and instead show in a dropdown\n for (let i = 0; i < actions.length; i++) {\n const ba = actions[i];\n\n ba.style.display = displayType;\n const actionWidth = ba.offsetWidth;\n\n cumulativeWidth += actionWidth + 15;\n if (cumulativeWidth >= totalAvailableWidth) {\n // There are too many actions so the drop down will be visible.\n if (!showActionsDropdown) {\n // If we haven't previously enabled the drop down...\n actionsDropdown.style.display = displayType;\n // By showing the drop down some previously visible actions may now be hidden, so start the process again\n // ... except taking into account the width of drop down width in the available space\n i = -1;\n cumulativeWidth = 0;\n showActionsDropdown = true;\n totalAvailableWidth = actionsContainerWidth - actionsDropdown.offsetWidth - selectedRowsTextWidth;\n } else {\n // Collate the actions in an array and hide in the normal row\n const id = ba.attributes.getNamedItem('id').value;\n\n this.hiddenActions.push(this.availableActions.find((aa) => aa.action === id));\n ba.style.display = 'none';\n }\n }\n }\n\n if (!showActionsDropdown) {\n actionsDropdown.style.display = 'none';\n }\n }\n }\n};\n","import { ADV_FILTER_ALL_COLS_VALUE, ADV_FILTER_ALL_COLS_LABEL } from './filtering';\n\nconst DEFAULT_ADV_FILTER_COLS_VALUE = ADV_FILTER_ALL_COLS_VALUE;\n\nexport default {\n props: {\n /**\n * Group value\n * To be used on the THead component when adv filtering is present\n */\n group: {\n type: String,\n default: () => ''\n },\n /**\n * Group options\n * All of the grouping options available to be used on the THead component when adv filtering is present\n */\n groupOptions: {\n type: Array,\n default: () => []\n },\n /**\n * Flag that controls visibility of advanced filtering feature\n */\n hasAdvancedFiltering: {\n type: Boolean,\n default: false\n },\n /**\n * Flag that controls visibility of labels as possibe toggable cols to be displayed on the Sortable Table\n */\n advFilterHideLabelsAsCols: {\n type: Boolean,\n default: false\n },\n /**\n * Flag that prevents filtering by labels\n */\n advFilterPreventFilteringLabels: {\n type: Boolean,\n default: false\n },\n },\n data() {\n return {\n columnOptions: [],\n colOptionsWatcher: null,\n advancedFilteringVisibility: false,\n advancedFilteringValues: [],\n advFilterSearchTerm: null,\n advFilterSelectedProp: DEFAULT_ADV_FILTER_COLS_VALUE,\n advFilterSelectedLabel: ADV_FILTER_ALL_COLS_LABEL,\n column: null,\n };\n },\n\n mounted() {\n if (this.hasAdvancedFiltering) {\n // trigger to first populate the cols options for filters\n this.updateColsOptions();\n }\n },\n\n watch: {\n advancedFilteringValues() {\n // passing different dummy args to make sure update is triggered\n this.watcherUpdateLiveAndDelayed(true, false);\n },\n advancedFilteringVisibility(neu) {\n if (neu) {\n // check if user clicked outside the advanced filter box\n window.addEventListener('click', this.onClickOutside);\n\n // update filtering options and toggable cols every time dropdown is open\n this.updateColsOptions();\n } else {\n // unregister click event\n window.removeEventListener('click', this.onClickOutside);\n }\n }\n },\n\n computed: {\n advFilterSelectOptions() {\n return this.columnOptions.filter((c) => c.isFilter && !c.preventFiltering);\n },\n\n advGroupOptions() {\n return this.groupOptions.map((item) => {\n return {\n label: this.t(item.tooltipKey),\n value: item.value\n };\n });\n },\n },\n\n methods: {\n handleColsVisibilyAndFiltering(cols) {\n const allCols = cols;\n\n this.columnOptions.forEach((advCol) => {\n if (advCol.isTableOption) {\n const index = allCols.findIndex((col) => col.name === advCol.name);\n\n if (index !== -1) {\n allCols[index].isColVisible = advCol.isColVisible;\n allCols[index].isFilter = advCol.isFilter;\n } else {\n allCols.push(advCol);\n }\n }\n });\n\n return allCols;\n },\n // advanced filtering methods\n setColsOptions() {\n let opts = [];\n const rowLabels = [];\n const headerProps = [];\n\n // Filter out any columns that are too heavy to show for large page sizes\n const filteredHeaders = this.headers.slice().filter((c) => (!c.maxPageSize || (c.maxPageSize && c.maxPageSize >= this.perPage)));\n\n // add table cols from config (headers)\n filteredHeaders.forEach((prop) => {\n const name = prop.name;\n const label = prop.labelKey ? this.t(`${ prop.labelKey }`) : prop.label;\n const isFilter = !!((!Object.keys(prop).includes('search') || prop.search));\n let sortVal = prop.sort;\n const valueProp = prop.valueProp || prop.value;\n let value = null;\n let isColVisible = true;\n\n if (prop.sort && valueProp) {\n if (typeof prop.sort === 'string') {\n sortVal = prop.sort.includes(':') ? [prop.sort.split(':')[0]] : [prop.sort];\n }\n\n if (!sortVal.includes(valueProp)) {\n value = JSON.stringify(sortVal.concat([valueProp]));\n } else {\n value = JSON.stringify([valueProp]);\n }\n } else if (valueProp) {\n value = JSON.stringify([valueProp]);\n } else {\n value = null;\n }\n\n // maintain current visibility of cols if they exist already\n if (this.columnOptions?.length) {\n const opt = this.columnOptions.find((colOpt) => colOpt.name === name && colOpt.label === label);\n\n if (opt) {\n isColVisible = opt.isColVisible;\n }\n }\n\n headerProps.push({\n name,\n label,\n value,\n isFilter,\n isTableOption: true,\n isColVisible\n });\n });\n\n // add labels as table cols\n if (this.rows.length) {\n this.rows.forEach((row) => {\n if (row.metadata?.labels && Object.keys(row.metadata?.labels).length) {\n Object.keys(row.metadata?.labels).forEach((label) => {\n const res = {\n name: label,\n label,\n value: `metadata.labels.${ label }`,\n isFilter: true,\n isTableOption: true,\n isColVisible: false,\n isLabel: true,\n preventFiltering: this.advFilterPreventFilteringLabels,\n preventColToggle: this.advFilterHideLabelsAsCols\n };\n\n // maintain current visibility of cols if they exist already\n if (this.columnOptions?.length) {\n const opt = this.columnOptions.find((colOpt) => colOpt.name === label && colOpt.label === label);\n\n if (opt) {\n res.isColVisible = opt.isColVisible;\n }\n }\n\n if (!rowLabels.filter((row) => row.label === label).length) {\n rowLabels.push(res);\n }\n });\n }\n });\n }\n\n opts = headerProps.concat(rowLabels);\n\n // add find on all cols option...\n if (opts.length) {\n opts.unshift({\n name: ADV_FILTER_ALL_COLS_LABEL,\n label: ADV_FILTER_ALL_COLS_LABEL,\n value: ADV_FILTER_ALL_COLS_VALUE,\n isFilter: true,\n isTableOption: false\n });\n }\n\n return opts;\n },\n addAdvancedFilter() {\n // set new advanced filter\n if (this.advFilterSelectedProp && this.advFilterSearchTerm) {\n this.advancedFilteringValues.push({\n prop: this.advFilterSelectedProp,\n value: this.advFilterSearchTerm,\n label: this.advFilterSelectedLabel\n });\n\n this.eventualSearchQuery = this.advancedFilteringValues;\n\n this.advancedFilteringVisibility = false;\n this.advFilterSelectedProp = DEFAULT_ADV_FILTER_COLS_VALUE;\n this.advFilterSelectedLabel = ADV_FILTER_ALL_COLS_LABEL;\n this.advFilterSearchTerm = null;\n }\n },\n clearAllAdvancedFilters() {\n this.advancedFilteringValues = [];\n this.eventualSearchQuery = this.advancedFilteringValues;\n\n this.advancedFilteringVisibility = false;\n this.advFilterSelectedProp = DEFAULT_ADV_FILTER_COLS_VALUE;\n this.advFilterSelectedLabel = ADV_FILTER_ALL_COLS_LABEL;\n this.advFilterSearchTerm = null;\n },\n clearAdvancedFilter(index) {\n this.advancedFilteringValues.splice(index, 1);\n this.eventualSearchQuery = this.advancedFilteringValues;\n },\n onClickOutside(event) {\n const advFilterBox = this.$refs['advanced-filter-group'];\n\n if (!advFilterBox || advFilterBox.contains(event.target)) {\n return;\n }\n this.advancedFilteringVisibility = false;\n },\n updateColsOptions() {\n this.columnOptions = this.setColsOptions();\n },\n\n // cols visibility\n changeColVisibility(colData) {\n const index = this.columnOptions.findIndex((col) => col.label === colData.label);\n\n if (index !== -1) {\n this.columnOptions[index].isColVisible = colData.value;\n }\n },\n },\n};\n","\n\n\n\n \n\n \n","import mod from \"-!../../../../cache-loader/dist/cjs.js??ref--14-0!../../../../thread-loader/dist/cjs.js!../../../../babel-loader/lib/index.js!../../../../cache-loader/dist/cjs.js??ref--2-0!../../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../cache-loader/dist/cjs.js??ref--14-0!../../../../thread-loader/dist/cjs.js!../../../../babel-loader/lib/index.js!../../../../cache-loader/dist/cjs.js??ref--2-0!../../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./index.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./index.vue?vue&type=template&id=940c6fb8&scoped=true&\"\nimport script from \"./index.vue?vue&type=script&lang=js&\"\nexport * from \"./index.vue?vue&type=script&lang=js&\"\nimport style0 from \"./index.vue?vue&type=style&index=0&id=940c6fb8&prod&lang=scss&scoped=true&\"\nimport style1 from \"./index.vue?vue&type=style&index=1&id=940c6fb8&prod&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"940c6fb8\",\n null\n \n)\n\nexport default component.exports","import { CATTLE_PUBLIC_ENDPOINTS } from '@shell/config/labels-annotations';\nimport { NODE as NODE_TYPE } from '@shell/config/types';\nimport { COLUMN_BREAKPOINTS } from '@shell/components/SortableTable/index.vue';\n\n// Note: 'id' is always the last sort, so you don't have to specify it here.\n\nexport const STATE = {\n name: 'state',\n labelKey: 'tableHeaders.state',\n sort: ['stateSort', 'nameSort'],\n value: 'stateDisplay',\n getValue: (row) => row.stateDisplay,\n width: 100,\n default: 'unknown',\n formatter: 'BadgeStateFormatter',\n};\n\nexport const DOWNLOAD = {\n name: 'download',\n labelKey: 'tableHeaders.download',\n value: 'download',\n canBeVariable: true,\n align: 'right',\n};\n\n// This header is used for nodes in\n// both Cluster Explorer and Cluster Management.\nexport const INTERNAL_EXTERNAL_IP = {\n // @TODO this is called internal/external but displays external/internal (╯°□°)╯︵ ┻━┻\n name: 'internal-external-ip',\n labelKey: 'tableHeaders.internalExternalIp',\n search: ['externalIp', 'internalIp'],\n sort: ['externalIp', 'internalIp'],\n formatter: 'InternalExternalIP'\n};\n\nexport const NAME = {\n name: 'name',\n labelKey: 'tableHeaders.name',\n value: 'nameDisplay',\n getValue: (row) => row.nameDisplay,\n sort: ['nameSort'],\n formatter: 'LinkDetail',\n canBeVariable: true,\n};\n\nexport const LOGGING_OUTPUT_PROVIDERS = {\n name: 'logging-output-providers',\n labelKey: 'tableHeaders.loggingOutputProviders',\n value: 'providersDisplay',\n sort: ['providersSortable'],\n formatter: 'List',\n};\n\nexport const SIMPLE_NAME = {\n name: 'name',\n labelKey: 'tableHeaders.simpleName',\n value: 'name',\n sort: ['name'],\n width: 200,\n canBeVariable: true,\n};\n\nexport const EFFECT = {\n name: 'effect',\n labelKey: 'tableHeaders.effect',\n value: 'effect',\n sort: ['effect'],\n};\n\nexport const STORAGE_CLASS_PROVISIONER = {\n name: 'storage_class_provisioner',\n labelKey: 'tableHeaders.storage_class_provisioner',\n value: 'provisionerDisplay',\n sort: ['provisioner'],\n};\n\nexport const STORAGE_CLASS_DEFAULT = {\n name: 'storage_class_default',\n labelKey: 'tableHeaders.default',\n value: 'isDefault',\n sort: ['isDefault'],\n formatter: 'Checked',\n};\n\nexport const PERSISTENT_VOLUME_SOURCE = {\n name: 'persistent_volume_source',\n labelKey: 'tableHeaders.persistentVolumeSource',\n value: 'source',\n sort: ['provisioner'],\n};\n\nexport const PERSISTENT_VOLUME_CLAIM = {\n name: 'persistent-volume-claim',\n labelKey: 'tableHeaders.persistentVolumeClaim',\n sort: ['nameSort'],\n value: 'claimName',\n formatter: 'LinkDetail',\n formatterOpts: { reference: 'claim.detailLocation' },\n};\n\nexport const OUTPUT = {\n name: 'localOutputRefs',\n labelKey: 'tableHeaders.output',\n value: 'outputs',\n sort: ['outputsSortable'],\n formatter: 'ListLink',\n formatterOpts: { options: { internal: true } },\n};\n\nexport const CONFIGURED_PROVIDERS = {\n name: 'providers',\n labelKey: 'tableHeaders.providers',\n value: 'providersDisplay',\n sort: 'providersSortable',\n formatter: 'List'\n};\n\nexport const CLUSTER_OUTPUT = {\n ...OUTPUT,\n name: 'globalOutputRefs',\n value: 'clusterOutputs',\n sort: ['clusterOutputsSortable'],\n labelKey: 'tableHeaders.clusterOutput',\n};\n\nexport const ID_UNLINKED = {\n name: 'id',\n labelKey: 'tableHeaders.id',\n value: 'id',\n sort: ['id'],\n canBeVariable: true,\n};\n\nexport const NAME_UNLINKED = {\n name: 'name',\n labelKey: 'tableHeaders.nameUnlinked',\n value: 'nameDisplay',\n sort: ['nameSort'],\n canBeVariable: true,\n};\n\nexport const NAMESPACE = {\n name: 'namespace',\n labelKey: 'tableHeaders.namespace',\n value: 'namespace',\n getValue: (row) => row.namespace,\n sort: 'namespace',\n dashIfEmpty: true,\n};\n\nexport const NODE = {\n name: 'node',\n labelKey: 'tableHeaders.node',\n value: 'spec.nodeName',\n getValue: (row) => row.spec?.nodeName,\n sort: 'spec.nodeName',\n formatter: 'LinkName',\n formatterOpts: { type: NODE_TYPE },\n};\n\nexport const NODE_NAME = {\n name: 'nodeName',\n labelKey: 'tableHeaders.nodeName',\n sort: 'name',\n value: 'name',\n getValue: (row) => row.name,\n formatter: 'LinkDetail',\n};\n\nexport const ROLES = {\n name: 'roles',\n labelKey: 'tableHeaders.roles',\n sort: 'roles',\n value: 'roles'\n};\n\nexport const VERSION = {\n name: 'version',\n labelKey: 'tableHeaders.version',\n sort: 'version',\n value: 'version',\n getValue: (row) => row.version\n};\n\nexport const CPU = {\n name: 'cpu',\n labelKey: 'tableHeaders.cpu',\n sort: 'cpuUsage',\n search: false,\n value: 'cpuUsagePercentage',\n formatter: 'PercentageBar',\n width: 120,\n};\n\nexport const RAM = {\n name: 'ram',\n labelKey: 'tableHeaders.ram',\n sort: 'ramUsage',\n search: false,\n value: 'ramUsagePercentage',\n formatter: 'PercentageBar',\n width: 120,\n};\n\nexport const PRINCIPAL = {\n name: 'principal',\n labelKey: 'tableHeaders.name',\n sort: 'principal.loginName',\n value: 'principalId',\n formatter: 'Principal',\n};\n\nexport const PODS = {\n name: 'pods',\n labelKey: 'tableHeaders.pods',\n sort: 'podConsumed',\n search: false,\n value: (row) => row.podConsumedUsage,\n formatter: 'PercentageBar',\n width: 120,\n};\n\nexport const AGE = {\n name: 'age',\n labelKey: 'tableHeaders.age',\n value: 'creationTimestamp',\n getValue: (row) => row.creationTimestamp,\n sort: 'creationTimestamp:desc',\n search: false,\n formatter: 'LiveDate',\n width: 100,\n align: 'left'\n};\n\nexport const AGE_NORMAN = {\n ...AGE,\n getValue: (row) => row.created,\n value: 'created',\n sort: 'created:desc',\n};\n\nexport const CREATION_DATE = {\n name: 'date',\n labelKey: 'tableHeaders.date',\n value: 'metadata.creationTimestamp',\n sort: ['date'],\n formatter: 'Date'\n};\n\nexport const DESCRIPTION = {\n name: 'description',\n labelKey: 'tableHeaders.description',\n align: 'left',\n sort: ['description'],\n width: 300,\n};\n\nexport const DURATION = {\n name: 'duration',\n labelKey: 'tableHeaders.duration',\n value: 'duration.value',\n sort: 'duration.seconds',\n formatter: 'LiveDuration',\n};\n\nexport const IMAGE_NAME = {\n name: 'image',\n labelKey: 'tableHeaders.image',\n value: 'image',\n sort: ['image', 'nameSort'],\n formatter: 'ImageName',\n};\n\nexport const POD_IMAGES = {\n name: 'pod_images',\n labelKey: 'tableHeaders.podImages',\n value: 'imageNames',\n getValue: (row) => row.imageNames,\n sort: 'imageNames',\n // search: 'imageNames',\n formatter: 'PodImages'\n};\n\nexport const POD_RESTARTS = {\n name: 'pod_restarts',\n labelKey: 'tableHeaders.podRestarts',\n formatter: 'LivePodRestarts',\n delayLoading: true,\n value: 'restartCount',\n getValue: (row) => row.restartCount,\n // This column is expensive to compute, so don't make it searchable\n search: false,\n liveUpdates: true\n};\n\nexport const ENDPOINTS = {\n name: 'endpoint',\n labelKey: 'tableHeaders.endpoints',\n value: 'status.endpoints',\n formatter: 'Endpoints',\n width: 60,\n align: 'center',\n};\n\nexport const SCALE = {\n name: 'scale',\n labelKey: 'tableHeaders.scale',\n value: 'scales.desired',\n sort: ['scales.desired', 'nameSort'],\n formatter: 'Scale',\n width: 60,\n align: 'center',\n};\n\nexport const SIMPLE_SCALE = {\n name: 'simple-scale',\n labelKey: 'tableHeaders.simpleScale',\n value: 'scale',\n sort: ['scale']\n};\n\nexport const WEIGHT = {\n name: 'weight',\n labelKey: 'tableHeaders.weight',\n value: 'status.computedWeight',\n sort: 'status.computedWeight',\n formatter: 'Weight',\n width: 60,\n align: 'center',\n};\n\nexport const SUCCESS = {\n name: 'success',\n labelKey: 'tableHeaders.success',\n value: 'success',\n width: 100,\n align: 'right',\n};\n\nexport const REQ_RATE = {\n name: 'req-rate',\n labelKey: 'tableHeaders.reqRate',\n value: 'rps',\n width: 100,\n align: 'right',\n};\n\nexport const P95 = {\n name: 'p95',\n labelKey: 'tableHeaders.p95',\n value: 'p95',\n width: 100,\n align: 'right',\n};\n\nexport const KEYS = {\n name: 'keys',\n labelKey: 'tableHeaders.keys',\n sort: false,\n value: 'keysDisplay',\n};\n\nexport const TARGET_KIND = {\n name: 'target-kind',\n labelKey: 'tableHeaders.targetKind',\n value: 'kindDisplay',\n width: 100,\n};\n\nexport const TARGET = {\n name: 'target',\n labelKey: 'tableHeaders.target',\n value: 'targetDisplay',\n};\n\nexport const USERNAME = {\n name: 'username',\n labelKey: 'tableHeaders.username',\n value: 'username',\n dashIfEmpty: true,\n sort: 'username',\n};\n\nexport const USER_DISPLAY_NAME = {\n name: 'name',\n labelKey: 'tableHeaders.name',\n value: 'nameDisplay',\n sort: ['nameSort'],\n dashIfEmpty: true,\n};\n\nexport const USER_PROVIDER = {\n name: 'provider',\n labelKey: 'tableHeaders.provider',\n value: 'providerDisplay',\n dashIfEmpty: true,\n sort: 'providerDisplay',\n};\n\nexport const USER_ID = {\n name: 'user-id',\n labelKey: 'tableHeaders.userId',\n value: 'id',\n formatter: 'LinkDetail',\n canBeVariable: true,\n sort: 'id',\n};\n\nexport const ADDRESS = {\n name: 'address',\n labelKey: 'tableHeaders.address',\n value: 'address',\n sort: ['address'],\n};\n\nexport const SIMPLE_TYPE = {\n name: 'type',\n labelKey: 'tableHeaders.simpleType',\n value: 'type',\n sort: ['type'],\n width: 175,\n};\n\nexport const IMAGE_SIZE = {\n name: 'sizeBytes',\n labelKey: 'tableHeaders.imageSize',\n value: 'sizeBytes',\n sort: ['sizeBytes'],\n formatter: 'Si'\n};\n\nexport const TYPE = {\n name: 'type',\n labelKey: 'tableHeaders.type',\n value: 'typeDisplay',\n getValue: (row) => row.typeDisplay,\n sort: ['typeDisplay'],\n width: 100,\n};\n\nexport const SUB_TYPE = {\n name: 'subType',\n labelKey: 'tableHeaders.subType',\n value: 'subTypeDisplay',\n sort: ['subTypeDisplay'],\n width: 120,\n};\n\nexport const EVENT_TYPE = {\n name: 'type',\n labelKey: 'tableHeaders.type',\n value: 'eventType',\n sort: 'eventType',\n};\n\nexport const STATUS = {\n name: 'status',\n labelKey: 'tableHeaders.status',\n value: 'status',\n sort: ['status'],\n width: 175\n};\nexport const LAST_SEEN_TIME = {\n name: 'lastSeen',\n labelKey: 'tableHeaders.lastSeen',\n value: 'lastSeen',\n sort: 'lastTimestamp:desc',\n tooltip: 'tableHeaders.lastSeenTooltip'\n};\nexport const LAST_HEARTBEAT_TIME = {\n name: 'lastHeartbeatTime',\n labelKey: 'tableHeaders.lastSeen',\n value: 'lastHeartbeatTime',\n sort: ['lastHeartbeatTime'],\n formatter: 'LiveDate',\n width: 175\n};\nexport const REASON = {\n name: 'reason',\n labelKey: 'tableHeaders.reason',\n value: 'reason',\n sort: ['reason']\n};\nexport const OBJECT = {\n name: 'object',\n labelKey: 'tableHeaders.object',\n value: 'involvedObject',\n sort: ['involvedObject.kind', 'involvedObject.name'],\n canBeVariable: true,\n formatter: 'InvolvedObjectLink',\n};\nexport const RECLAIM_POLICY = {\n name: 'reclaimPolicy',\n labelKey: 'tableHeaders.reclaimPolicy',\n value: 'spec.persistentVolumeReclaimPolicy',\n sort: ['spec.persistentVolumeReclaimPolicy']\n};\nexport const PV_REASON = {\n name: 'pvReason',\n labelKey: 'tableHeaders.reason',\n value: 'status.reason',\n sort: ['status.reason']\n};\n\nexport const MESSAGE = {\n name: 'message',\n labelKey: 'tableHeaders.message',\n value: 'message',\n sort: ['message']\n};\nexport const KEY = {\n name: 'key',\n labelKey: 'tableHeaders.key',\n value: 'key',\n sort: ['key']\n};\nexport const VALUE = {\n name: 'value',\n labelKey: 'tableHeaders.value',\n value: 'value',\n sort: ['value'],\n};\n\nexport const BUILT_IN = {\n name: 'builtIn',\n labelKey: 'tableHeaders.builtIn',\n value: 'builtIn',\n sort: ['builtIn'],\n align: 'center',\n formatter: 'IconIsDefault'\n};\n\nexport const CLUSTER_CREATOR_DEFAULT = {\n name: 'default',\n labelKey: 'tableHeaders.clusterCreatorDefault',\n value: 'default',\n sort: ['Default'],\n align: 'center',\n formatter: 'IconIsDefault'\n};\n\nexport const RBAC_DEFAULT = {\n name: 'default',\n labelKey: 'tableHeaders.default',\n value: 'default',\n formatter: 'Checked',\n sort: ['default']\n};\n\nexport const RBAC_BUILTIN = {\n name: 'builtin',\n labelKey: 'tableHeaders.builtin',\n value: 'builtin',\n formatter: 'Checked',\n sort: ['builtin']\n};\n\nexport const RESOURCE = {\n name: 'resource',\n labelKey: 'tableHeaders.resource',\n value: 'resource',\n sort: ['resourceNames']\n};\n\nexport const API_GROUP = {\n name: 'apigroups',\n labelKey: 'tableHeaders.apiGroup',\n value: 'apiGroups',\n sort: ['apiGroups']\n};\n\nexport const INGRESS_CLASS = {\n name: 'ingressClassName',\n labelKey: 'tableHeaders.ingressClass',\n value: `$['spec']['ingressClassName']`,\n sort: `$['spec']['ingressClassName']`,\n};\n\nexport const INGRESS_DEFAULT_BACKEND = {\n name: 'ingressDefaultBackend',\n labelKey: 'tableHeaders.ingressDefaultBackend',\n value: 'hasDefaultBackend',\n sort: ['hasDefaultBackend:desc'],\n formatter: 'Checked',\n width: 75,\n align: 'center'\n};\n\nexport const INGRESS_TARGET = {\n name: 'ingressTarget',\n labelKey: 'tableHeaders.ingressTarget',\n value: \"$['spec']\",\n formatter: 'IngressTarget',\n sort: \"$['spec']['rules'][0].host\",\n};\n\nexport const SPEC_TYPE = {\n name: 'type',\n labelKey: 'tableHeaders.type',\n value: `$['spec']['type']`,\n sort: `$['spec']['type']`,\n formatter: 'ServiceType',\n};\n\nexport const TARGET_PORT = {\n formatter: 'ServiceTargets',\n labelKey: 'tableHeaders.targetPort',\n name: 'targetPort',\n sort: `$['spec']['targetPort']`,\n value: `$['spec']['targetPort']`,\n};\n\nexport const SELECTOR = {\n formatter: 'KeyValue',\n name: 'selector',\n labelKey: 'tableHeaders.selector',\n value: `$['spec']['selector']`,\n sort: `$['spec']['selector']`,\n};\n\nexport const CHART = {\n name: 'chart',\n labelKey: 'tableHeaders.chart',\n value: 'chartDisplay',\n sort: ['chartDisplay', 'versionSort'],\n};\n\nexport const CHART_UPGRADE = {\n name: 'upgrade',\n labelKey: 'tableHeaders.upgrade',\n value: 'upgradeAvailable',\n sort: 'upgradeAvailableSort:desc',\n dashIfEmpty: true,\n};\n\nexport const RESOURCES = {\n name: 'resources',\n labelKey: 'tableHeaders.resources',\n value: 'spec.resources.length',\n sort: 'spec.resources.length',\n width: 100,\n};\n\nexport const URL = {\n name: 'url',\n labelKey: 'tableHeaders.url',\n value: 'spec.url',\n sort: 'spec.url',\n};\n\nexport const LAST_UPDATED = {\n name: 'lastUpdated',\n labelKey: 'tableHeaders.lastUpdated',\n value: 'lastTransitionTime',\n formatter: 'LiveDate',\n formatterOpts: { addSuffix: true },\n sort: ['lastTransitionTime']\n};\n\nexport const WORKSPACE = {\n name: 'workspace',\n label: 'Workspace',\n value: 'metadata.namespace',\n sort: ['metadata.namespace', 'nameSort'],\n};\n\nexport const WORKLOAD_IMAGES = {\n ...POD_IMAGES,\n value: '',\n breakpoint: COLUMN_BREAKPOINTS.LAPTOP\n};\n\nexport const WORKLOAD_ENDPOINTS = {\n name: 'workloadEndpoints',\n labelKey: 'tableHeaders.endpoints',\n value: `$['metadata']['annotations']['${ CATTLE_PUBLIC_ENDPOINTS }']`,\n getValue: (row) => row.metadata?.annotations?.[CATTLE_PUBLIC_ENDPOINTS],\n formatter: 'Endpoints',\n dashIfEmpty: true,\n breakpoint: COLUMN_BREAKPOINTS.DESKTOP,\n maxPageSize: 25, // Hide this column when the page size is bigger than 25\n};\n\nexport const WORKLOAD_HEALTH_SCALE = {\n name: 'workloadHealthScale',\n labelKey: 'tableHeaders.health',\n formatter: 'WorkloadHealthScale',\n getValue: () => undefined,\n width: 150,\n skipSelect: true,\n delayLoading: true,\n // This column is expensive to compute, so don't make it searchable\n search: false,\n liveUpdates: true,\n};\n\nexport const FLEET_SUMMARY = {\n name: 'summary',\n labelKey: 'tableHeaders.resources',\n value: 'status.resourceCounts',\n sort: false,\n search: false,\n formatter: 'FleetSummaryGraph',\n align: 'center',\n width: 100,\n};\n\nexport const FLEET_REPO_CLUSTER_SUMMARY = {\n name: 'clusterSummary',\n labelKey: 'tableHeaders.clusterResources',\n value: 'status.resourceCounts',\n sort: false,\n search: false,\n formatter: 'FleetClusterSummaryGraph',\n align: 'center',\n width: 100,\n};\n\nexport const FLEET_REPO_PER_CLUSTER_STATE = {\n name: 'perClusterState',\n labelKey: 'tableHeaders.repoPerClusterState',\n tooltip: 'tableHeaders.repoPerClusterStateTooltip',\n sort: ['stateSort', 'nameSort'],\n width: 100,\n default: 'unknown',\n formatter: 'BadgeStateFormatter',\n formatterOpts: { arbitrary: true }\n\n};\n\nexport const APP_SUMMARY = {\n name: 'summary',\n labelKey: 'tableHeaders.resources',\n value: 'deployedResources.length',\n sort: false,\n search: false,\n formatter: 'AppSummaryGraph',\n align: 'center',\n width: 100,\n};\n\nexport const CONSTRAINT_VIOLATION_CONSTRAINT_LINK = {\n name: 'Constraint',\n labelKey: 'tableHeaders.constraint',\n value: 'constraintLink',\n sort: `constraintLink.text`,\n formatter: 'Link',\n formatterOpts: { options: { internal: true } },\n};\n\nexport const CONSTRAINT_VIOLATION_RESOURCE_LINK = {\n name: 'Name',\n labelKey: 'tableHeaders.name',\n value: 'resourceLink',\n sort: `resourceLink.text`,\n search: `resourceLink.text`,\n formatter: 'Link',\n formatterOpts: { options: { internal: true } },\n};\n\nexport const CONSTRAINT_VIOLATION_TYPE = {\n name: 'Type',\n labelKey: 'tableHeaders.type',\n value: `kind`,\n sort: `kind`\n};\n\nexport const CONSTRAINT_VIOLATION_NAMESPACE = {\n name: 'Namespace',\n labelKey: 'tableHeaders.namespace',\n value: `namespace`,\n sort: `namespace`,\n search: `namespace`,\n};\n\nexport const CONSTRAINT_VIOLATION_MESSAGE = {\n name: 'Message',\n labelKey: 'tableHeaders.message',\n value: `message`,\n sort: `message`\n};\n\nexport const CONSTRAINT_VIOLATION_TEMPLATE_LINK = {\n name: 'TemplateLink',\n labelKey: 'tableHeaders.template',\n value: `templateLink`,\n sort: `templateLink.text`,\n formatter: 'Link',\n formatterOpts: { options: { internal: true } },\n};\n\nexport const CONSTRAINT_VIOLATION_COUNT = {\n name: 'Count',\n labelKey: 'tableHeaders.count',\n value: `count`,\n sort: `count`,\n formatter: 'QualityText',\n formatterOpts: {\n qualityFn(value) {\n if (value <= 10) {\n return 'success';\n }\n\n if (value <= 20) {\n return 'warning';\n }\n\n return 'error';\n }\n }\n};\n\nexport const RECEIVER_PROVIDERS = {\n name: 'receiver-providers',\n label: 'Configured Providers',\n value: 'receiverTypes',\n sort: 'receiverTypes',\n formatter: 'List',\n};\n\nexport const CONFIGURED_RECEIVER = {\n name: 'receiver',\n label: 'Configured Receiver',\n value: 'receiverLink',\n sort: 'receiverLink.text',\n formatter: 'Link',\n formatterOpts: { options: { internal: true } },\n};\n\nexport const GROUP_NAME = {\n name: 'group-name',\n labelKey: 'tableHeaders.groupName',\n value: 'id',\n sort: ['name'],\n search: ['name'],\n formatter: 'Principal',\n width: 350\n};\n\nexport const GROUP_ROLE_NAME = {\n name: 'group-role-names',\n labelKey: 'tableHeaders.groupRoleNames',\n value: 'id',\n formatter: 'PrincipalGroupBindings',\n};\n\nexport const HPA_REFERENCE = {\n name: 'reference',\n labelKey: 'tableHeaders.hpaReference',\n value: 'spec.scaleTargetRef.name',\n sort: 'spec.scaleTargetRef.name',\n};\n\nexport const MIN_REPLICA = {\n name: 'minimum-replica',\n labelKey: 'tableHeaders.minReplicas',\n value: 'spec.minReplicas',\n sort: 'spec.minReplicas',\n};\n\nexport const MAX_REPLICA = {\n name: 'maximum-replica',\n labelKey: 'tableHeaders.maxReplicas',\n value: 'spec.maxReplicas',\n sort: 'spec.maxReplicas',\n};\n\nexport const CURRENT_REPLICA = {\n name: 'current-replica',\n labelKey: 'tableHeaders.currentReplicas',\n value: 'status.currentReplicas',\n sort: 'status.currentReplicas',\n};\n\nexport const EXPIRY_STATE = {\n ...STATE,\n value: '$',\n formatter: 'LiveExpiryBadgeState',\n};\n\nexport const ACCESS_KEY = {\n name: 'id',\n labelKey: 'tableHeaders.accessKey',\n align: 'left',\n sort: ['name'],\n width: 200,\n};\n\nexport const SCOPE = {\n name: 'scope',\n value: 'clusterName',\n labelKey: 'tableHeaders.scope',\n dashIfEmpty: true,\n align: 'left',\n sort: ['scope'],\n width: 100,\n};\n\nexport const SCOPE_NORMAN = {\n ...SCOPE,\n value: 'clusterId',\n sort: ['clusterId'],\n};\n\nexport const EXPIRES = {\n name: 'expires',\n value: 'expiresAt',\n labelKey: 'tableHeaders.expires',\n align: 'left',\n sort: ['expiresAt'],\n width: 200,\n formatter: 'LiveExpiryDate'\n};\n\nexport const RESTART = {\n name: 'restart',\n labelKey: 'tableHeaders.restart',\n value: 'restartRequired',\n sort: ['restartRequired', 'nameSort'],\n formatter: 'Checked',\n width: 75,\n align: 'center'\n};\n\nexport const ROLE = {\n name: 'role',\n value: 'roleDisplay',\n labelKey: 'tableHeaders.role',\n};\n\nexport const FEATURE_DESCRIPTION = {\n name: 'description',\n labelKey: 'tableHeaders.description',\n value: 'status.description',\n align: 'left',\n sort: ['status.description'],\n formatter: 'Translate',\n formatterOpts: { prefix: 'featureFlags.description' },\n};\n\nexport const STATE_NORMAN = {\n name: 'state',\n labelKey: 'tableHeaders.state',\n sort: ['stateSort', 'nameSort'],\n value: 'stateDisplay',\n width: 100,\n default: 'unknown',\n formatter: 'BadgeStateFormatter',\n};\n\nexport const KUBE_NODE_OS = {\n name: 'operating-system',\n labelKey: 'tableHeaders.operatingSystem',\n value: 'status.nodeInfo.operatingSystem',\n sort: ['status.nodeInfo.operatingSystem'],\n formatter: 'Capitalize'\n};\n\nexport const MACHINE_NODE_OS = {\n name: 'operating-system',\n labelKey: 'tableHeaders.operatingSystem',\n value: 'operatingSystem',\n sort: ['operatingSystem'],\n formatter: 'Capitalize',\n dashIfEmpty: true,\n};\n\nexport const MANAGEMENT_NODE_OS = {\n name: 'operating-system',\n labelKey: 'tableHeaders.operatingSystem',\n value: 'status.internalNodeStatus.nodeInfo.operatingSystem',\n sort: ['status.internalNodeStatus.nodeInfo.operatingSystem'],\n formatter: 'Capitalize',\n dashIfEmpty: true,\n};\n\n// FLEET\n\nexport const FLEET_BUNDLE_LAST_UPDATED = {\n name: 'lastUpdated',\n labelKey: 'tableHeaders.lastUpdated',\n value: 'lastUpdateTime',\n formatter: 'LiveDate',\n formatterOpts: { addSuffix: true },\n sort: ['lastUpdateTime']\n};\n\nexport const FLEET_BUNDLE_TYPE = {\n name: 'bundleType',\n labelKey: 'tableHeaders.fleetBundleType',\n value: 'bundleType',\n sort: ['bundleType'],\n width: 100,\n};\n\nexport const FLEET_REPO_CLUSTERS_READY = {\n name: 'clustersReady',\n labelKey: 'tableHeaders.clustersReady',\n value: 'status.readyClusters',\n sort: 'status.readyClusters',\n search: false,\n};\n\nexport const FLEET_REPO_TARGET = {\n name: 'target',\n labelKey: 'tableHeaders.target',\n value: 'targetInfo.modeDisplay',\n sort: ['targetInfo.modeDisplay', 'targetInfo.cluster', 'targetInfo.clusterGroup'],\n\n};\n\nexport const FLEET_REPO = {\n name: 'repo',\n labelKey: 'tableHeaders.repo',\n value: 'repoDisplay',\n sort: 'repoDisplay',\n search: ['spec.repo', 'status.commit'],\n};\n\nexport const UI_PLUGIN_CATALOG = [\n {\n name: 'state',\n labelKey: 'tableHeaders.state',\n sort: ['stateSort', 'nameSort'],\n value: 'state',\n width: 100,\n default: 'unknown',\n formatter: 'BadgeStateFormatter',\n formatterOpts: { arbitrary: true }\n },\n {\n name: 'name',\n labelKey: 'tableHeaders.name',\n value: 'name',\n sort: ['nameSort'],\n formatter: 'LinkDetail'\n },\n {\n name: 'image',\n sort: ['image'],\n labelKey: 'plugins.manageCatalog.headers.image.label',\n value: 'image'\n },\n {\n name: 'repository',\n sort: ['repository'],\n labelKey: 'plugins.manageCatalog.headers.repository.label',\n value: 'repo.metadata.name'\n }\n];\n","import { SETTING } from '@shell/config/settings';\nimport { COUNT, MANAGEMENT } from '@shell/config/types';\nimport { GC_DEFAULTS, GC_PREFERENCES } from './gc-types';\n\nclass GarbageCollect {\n private static ENABLE_DEBUG_LOGGING = false;\n\n /**\n * Don't run GC if it's been run within 5 seconds\n */\n private static GC_RE_RUN_GAP = 1000 * 5;\n\n private cachedGcPrefs: GC_PREFERENCES = GC_DEFAULTS;\n\n private cachedGcPrefsStamp = '';\n\n private debugLog = (...args: any) => {\n if (GarbageCollect.ENABLE_DEBUG_LOGGING) {\n console.debug('GC', ...args); // eslint-disable-line no-console\n }\n };\n\n /**\n * Time the GC last ran\n */\n private gcLastRun: number | null = 0;\n\n /**\n * To avoid JSON.parse on the `ui-performance` setting keep a local cache\n */\n private getUiPerfGarbageCollection = (rootState: any) => {\n const uiPerfSetting = rootState.management.types[MANAGEMENT.SETTING]?.list.find((s: any) => s.id === SETTING.UI_PERFORMANCE);\n\n if (!uiPerfSetting || !uiPerfSetting.value) {\n // Could be in the process of logging out\n return undefined;\n }\n const stamp = `${ uiPerfSetting.metadata.generation }-${ uiPerfSetting.metadata.resourceVersion }`;\n\n if (this.cachedGcPrefsStamp !== stamp) {\n this.debugLog(`Updating ${ SETTING.UI_PERFORMANCE } cache`);\n this.cachedGcPrefsStamp = stamp;\n const uiPerfSettingParsed = JSON.parse(uiPerfSetting.value);\n\n this.cachedGcPrefs = uiPerfSettingParsed.garbageCollection;\n }\n\n return this.cachedGcPrefs;\n };\n\n /**\n * The last time a resource was accessed by either find or getters style functions\n */\n private lastAccessedCache: {\n [store: string]: {\n [type: string]: number;\n }\n } = {}\n\n /**\n * Track when a logged in route changes.\n */\n private lastRouteChange = 0;\n\n // ------------- GC Enabled ---------------------\n\n gcEnabledAll(pseudoCtx: any, type: string) {\n return this.gcEnabledForStore(pseudoCtx.state) && this.gcEnabledSetting(pseudoCtx) && this.gcEnabledForType(pseudoCtx, type);\n }\n\n gcEnabledSetting(pseudoCtx: any) {\n const { rootState } = pseudoCtx;\n\n // Don't use a getter... as we'll end up triggering ourselves again\n const uiPerfGarbageCollection = this.getUiPerfGarbageCollection(rootState);\n\n return uiPerfGarbageCollection?.enabled;\n }\n\n gcEnabledForStore(state: any) {\n return state?.config?.supportsGc;\n }\n\n /**\n * Store can require certain types are not GC'd (for example `cluster` and `schema`s, `counts`, etc)\n */\n gcEnabledForType(pseudoCtx: any, type: string) {\n const { getters } = pseudoCtx;\n\n if (!type || getters.gcIgnoreTypes[type]) {\n return false;\n }\n\n return true;\n }\n\n gcEnabledInterval(pseudoCtx: any) {\n const { rootState } = pseudoCtx;\n\n // Don't use a getter... as we'll end up triggering ourselves again\n const uiPerfGarbageCollection = this.getUiPerfGarbageCollection(rootState);\n\n return {\n enabled: uiPerfGarbageCollection?.enabledInterval,\n interval: uiPerfGarbageCollection?.interval || 0\n };\n }\n\n gcEnabledRoute(pseudoCtx: any) {\n const { rootState } = pseudoCtx;\n\n // Don't use a getter... as we'll end up triggering ourselves again\n const uiPerfGarbageCollection = this.getUiPerfGarbageCollection(rootState);\n\n return uiPerfGarbageCollection?.enabledOnNavigate;\n }\n\n // ------------- GC (actual) ---------------------\n\n /**\n * Remove stale resource types from the store and stop watching them for changes\n */\n garbageCollect(ctx: any, ignoreTypes: {[type: string]: boolean} = {}) {\n const now = new Date().getTime();\n\n // Is gc currently running OR has run in the past GC_RE_RUN_GAP return early\n if (this.gcLastRun === null || now - this.gcLastRun < GarbageCollect.GC_RE_RUN_GAP) {\n this.debugLog('Skipping (running or recently run)', this.gcLastRun ? new Date(this.gcLastRun) : 'running');\n\n return;\n }\n\n this.gcLastRun = null;\n const gcd: {[type: string]: number} = {};\n\n try {\n const { getters, rootState, dispatch } = ctx;\n\n if (!rootState.clusterReady) {\n this.debugLog('Skipping (cluster not ready)');\n this.gcLastRun = new Date().getTime();\n\n return ;\n }\n this.debugLog(`------ Started ------`);\n\n const uiPerfGarbageCollection = this.getUiPerfGarbageCollection(rootState);\n\n if (!uiPerfGarbageCollection) {\n return ;\n }\n const maxAge = uiPerfGarbageCollection.ageThreshold * 1000;\n const maxCount = uiPerfGarbageCollection.countThreshold;\n\n this.debugLog(`Max Age: ${ maxAge }. Max Count: ${ maxCount }`);// , 'Cache', this.lastAccessedCache\n\n const store = ctx.state.config.namespace;\n\n // this.debugLog('Cache', this.lastAccessedCache);\n\n Object.entries((this.lastAccessedCache[store] || {})).forEach(([type, lastAccessed]) => {\n if (!lastAccessed) {\n // There's no last accessed time... gc is probably disabled in another way\n this.debugLog(`${ type }: Skipping (no accessed time)`);\n\n return;\n }\n\n if (!this.gcEnabledForType(ctx, type)) {\n // This specific store is telling us to ignore the type (for example `cluster` store will not GC schema's, counts, etc)\n this.debugLog(`${ type }: Skipping (type ignored by store)`);\n\n return;\n }\n\n if (ignoreTypes[type]) {\n // We're going to a place that needs the resource\n this.debugLog(`${ type }: Skipping (navigating to type)`);\n\n return;\n }\n\n if (now - lastAccessed <= maxAge) {\n // The resource was recently accessed\n\n this.debugLog(`${ type }: Skipping (recently accessed)`);\n\n return;\n }\n\n if (this.lastRouteChange !== undefined && this.lastRouteChange < lastAccessed ) {\n // The resource is being used in the current route/page\n this.debugLog(`${ type }: Skipping (used in current route/page)`);\n\n return;\n }\n\n const countFromResource = getters.all(COUNT)[0].counts[type]?.summary.count;\n const currentCount = countFromResource ?? 0;\n\n if (currentCount === undefined || currentCount < maxCount) {\n // There's too few resources, we might as well keep them to avoid a network request when we need them again\n this.debugLog(`${ type }: Skipping (too few of resource)`);\n\n return;\n }\n\n this.debugLog(`${ type }: Removing from store`);\n dispatch('forgetType', type);\n gcd[type] = currentCount;\n });\n\n this.gcLastRun = new Date().getTime();\n } catch (e) {\n this.debugLog(`: Error`, e);\n this.gcLastRun = new Date().getTime();\n }\n\n if (Object.keys(gcd).length > 0) {\n console.info('Garbage Collected Resources', gcd); // eslint-disable-line no-console\n }\n\n this.debugLog(`------ Finished ------`);\n }\n\n // ------------- GC Update local cache ---------------------\n\n /**\n * Update the time that the resource type was accessed\n * This needs to run after any type initialisation (aka registerType)\n */\n gcUpdateLastAccessed(pseudoCtx: any, type: string) {\n if (!this.gcEnabledAll(pseudoCtx, type)) {\n return;\n }\n const store = pseudoCtx.state.config.namespace;\n\n if (!this.lastAccessedCache[store]) {\n this.lastAccessedCache[store] = {};\n }\n\n this.lastAccessedCache[store][type] = new Date().getTime();\n }\n\n /**\n * Update the time the user last changed routes\n */\n gcUpdateRouteChanged() {\n this.lastRouteChange = new Date().getTime();\n }\n\n // ------------- GC reset ---------------------\n\n /**\n * Remove all cached access times for the given store\n */\n gcResetStore(state: any) {\n const store = state.config.namespace;\n\n delete this.lastAccessedCache[store];\n\n this.debugLog('Forgetting Store:', store);\n }\n\n /**\n * Remove cached access time for the given resource type\n */\n gcResetType(state: any, type: string) {\n const store = state.config.namespace;\n\n if (!this.lastAccessedCache[store]) {\n return;\n }\n delete this.lastAccessedCache[store][type];\n\n this.debugLog('Forgetting Type:', store, type);\n }\n}\n\nconst gc = new GarbageCollect();\n\nexport default gc;\n","type UriField = 'source' | 'protocol' | 'authority' | 'userInfo' | 'user' | 'password' | 'host' | 'port' | 'relative' | 'path' | 'directory' | 'file' | 'queryStr' | 'anchor'\ntype UriFields = {\n [key in UriField]: string; // eslint-disable-line no-unused-vars\n}\nexport type QueryParams = {\n [key: string]: string\n}\n\ninterface ParsedUri extends UriFields {\n query: QueryParams;\n}\n\nexport function addParam(url: string, key: string, val: string | string[]): string {\n let out = url + (url.includes('?') ? '&' : '?');\n\n // val can be a string or an array of strings\n if ( !Array.isArray(val) ) {\n val = [val];\n }\n out += val.map((v) => {\n if ( v === null ) {\n return `${ encodeURIComponent(key) }`;\n } else {\n return `${ encodeURIComponent(key) }=${ encodeURIComponent(v) }`;\n }\n }).join('&');\n\n return out;\n}\n\nexport function addParams(url: string, params: QueryParams): string {\n if ( params && typeof params === 'object' ) {\n Object.keys(params).forEach((key) => {\n url = addParam(url, key, params[key]);\n });\n }\n\n return url;\n}\n\nexport function removeParam(url: string, key: string): string {\n const parsed = parse(url);\n\n if ( parsed.query?.[key] ) {\n delete parsed.query[key];\n }\n\n return stringify(parsed);\n}\n\nexport function parseLinkHeader(str: string): Record {\n const out: { [key: string]: string} = { };\n const lines = (str || '').split(',');\n\n for ( const line of lines ) {\n const match = line.match(/^\\s*<([^>]+)>\\s*;\\s*rel\\s*=\"(.*)\"/);\n\n if ( match ) {\n out[match[2].toLowerCase()] = match[1];\n }\n }\n\n return out;\n}\n\nexport function isMaybeSecure(port: number, proto: string): boolean {\n const protocol = proto.toLowerCase();\n\n return portMatch([port], [443, 8443], ['443']) || protocol === 'https';\n}\n\nexport function portMatch(ports: number[], equals: number[], endsWith: string[]): boolean {\n for (let i = 0; i < ports.length; i++) {\n const port = ports[i];\n\n if (equals.includes(port)) {\n return true;\n }\n\n for (let j = 0; j < endsWith.length; j++) {\n const suffix = `${ endsWith[j] }`;\n const portStr = `${ port }`;\n\n if (portStr !== suffix && portStr.endsWith(suffix)) {\n return true;\n }\n }\n }\n\n return false;\n}\n\n// parseUri 1.2.2\n// (c) Steven Levithan \n// https://javascriptsource.com/parseuri/\n// MIT License\nexport function parse(str: string): ParsedUri {\n const o = parse.options;\n const m = o.parser[o.strictMode ? 'strict' : 'loose'].exec(str);\n\n if (!m) {\n throw new Error(`Cannot parse as uri: ${ str }`);\n }\n const uri = {} as ParsedUri;\n let i = 14;\n\n while (i--) {\n uri[o.key[i]] = m[i] || '';\n }\n\n uri.query = {};\n uri.queryStr.replace(o.q.parser, (_, $1: string, $2: string): string => {\n if ($1) {\n uri[o.q.name][$1] = $2;\n }\n\n return '';\n });\n\n return uri;\n}\n\nparse.options = {\n strictMode: false,\n key: ['source', 'protocol', 'authority', 'userInfo', 'user', 'password', 'host', 'port', 'relative', 'path', 'directory', 'file', 'queryStr', 'anchor'],\n q: {\n name: 'query',\n parser: /(?:^|&)([^&=]*)=?([^&]*)/g\n },\n parser: {\n strict: /^(?:([^:\\/?#]+):)?(?:\\/\\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\\/?#]*)(?::(\\d*))?))?((((?:[^?#\\/]*\\/)*)([^?#]*))(?:\\?([^#]*))?(?:#(.*))?)/,\n loose: /^(?:(?![^:@]+:[^:@\\/]*@)([^:\\/?#.]+):)?(?:\\/\\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\\/?#]*)(?::(\\d*))?)(((\\/(?:[^?#](?![^?#\\/]*\\.[^?#\\/.]+(?:[?#]|$)))*\\/?)?([^?#\\/]*))(?:\\?([^#]*))?(?:#(.*))?)/\n }\n} as {\n strictMode: boolean,\n key: UriField[],\n q: {\n name: 'query',\n parser: RegExp\n },\n parser: {\n strict: RegExp,\n loose: RegExp\n }\n};\n\nexport function stringify(uri: ParsedUri): string {\n let out = `${ uri.protocol }://`;\n\n if ( uri.user && uri.password ) {\n out += `${ uri.user }:${ uri.password }@`;\n } else if ( uri.user ) {\n out += `${ uri.user }@`;\n }\n\n out += uri.host;\n\n if ( uri.port ) {\n out += `:${ uri.port }`;\n }\n\n out += uri.path || '/';\n\n out = addParams(out, uri.query || {});\n\n if ( uri.anchor ) {\n out += `#${ uri.anchor }`;\n }\n\n return out;\n}\n","import { SETTING } from '@shell/config/settings';\nimport { MANAGEMENT } from '@shell/config/types';\n\nlet favIconSet = false;\n\nexport function haveSetFavIcon() {\n return favIconSet;\n}\n\nexport function setFavIcon(store) {\n const res = store.getters['management/byId'](MANAGEMENT.SETTING, SETTING.FAVICON);\n const brandSetting = store.getters['management/byId'](MANAGEMENT.SETTING, SETTING.BRAND);\n const link = findIconLink(document.head.getElementsByTagName('link'));\n\n if (link) {\n let brandImage;\n\n if (brandSetting?.value === 'suse') {\n brandImage = require('~shell/assets/brand/suse/favicon.png');\n } else if (brandSetting?.value === 'csp') {\n brandImage = require('~shell/assets/brand/csp/favicon.png');\n }\n\n link.href = res?.value || brandImage || defaultFavIcon;\n favIconSet = true;\n }\n}\n\nfunction getCurrentFavIcon() {\n const link = findIconLink(document.head.getElementsByTagName('link'));\n\n return link ? link.href : '';\n}\n\nfunction findIconLink(links) {\n for (let i = 0; i < links.length; i++) {\n const link = links[i];\n\n if (link.rel?.includes('icon')) {\n return link;\n }\n }\n\n return undefined;\n}\n\nconst defaultFavIcon = getCurrentFavIcon();\n","\n/**\n * Some plugins won't be bundled with the dashboard build but loaded on demand at run time.\n * This file allows 'manager' style plugins to defined how to determine if a unknown route\n * belongs to one of their associated plugins and how that plugin can be loaded\n */\nclass DynamicPluginLoader {\n dynamicPluginLoaders = [];\n\n register(reg) {\n this.dynamicPluginLoaders.push(reg);\n }\n\n async check({ route, store }) {\n for (const dpl of this.dynamicPluginLoaders) {\n // Check that the route is valid and then load the plugin associated with it\n const res = await dpl.load({ route, store });\n\n if (res) {\n return res;\n }\n }\n }\n}\n\nconst dynamicPluginLoader = new DynamicPluginLoader();\n\nexport default dynamicPluginLoader;\n","// Github repo cache\nexport const GITHUB_REPOS = 'githubRepos';\nexport const GITHUB_SCOPES = 'githubScopes';\nexport const _DATE = 'Updated';\n\nexport const BACK_TO = 'backTo';\n","import { MANAGEMENT } from '@shell/config/types';\n\nconst definitions = {};\n\nexport const create = function(name, def) {\n definitions[name] = { def };\n\n return name;\n};\n\nexport const mapFeature = function(name) {\n return {\n get() {\n return this.$store.getters['features/get'](name);\n },\n\n set(value) {\n throw new Error('The feature store only supports getting');\n }\n };\n};\n\n// --------------------\n// The default (2nd arg) is used only if the flag is missing entirely from the server.\n// This is mainly useful for development before the flag has been created in the API..\n\nexport const MULTI_CLUSTER = create('multi-cluster-management', true);\nexport const LEGACY = create('legacy', false);\nexport const RKE2 = create('rke2', true);\nexport const RKE1_UI = create('rke1-ui', true);\nexport const UNSUPPORTED_STORAGE_DRIVERS = create('unsupported-storage-drivers', false);\nexport const FLEET = create('continuous-delivery', true);\nexport const HARVESTER = create('harvester', true);\nexport const HARVESTER_CONTAINER = create('harvester-baremetal-container-workload', false);\nexport const FLEET_WORKSPACE_BACK = create('provisioningv2-fleet-workspace-back-population', false);\n\n// Not currently used.. no point defining ones we don't use\n// export const EMBEDDED_CLUSTER_API = create('embedded-cluster-api', true);\n// export const ISTIO_VIRTUAL_SERVICE_UI = create('istio-virtual-service-ui', true);\n// export const PROVISIONINGV2 = create('provisioningv2', true);\n// export const AUTH = create('auth', true);\n\n// --------------------\n\nexport const getters = {\n get: (state, getters, rootState, rootGetters) => (name) => {\n const definition = definitions[name];\n\n if (!definition) {\n throw new Error(`Unknown feature: ${ name }`);\n }\n\n const entry = rootGetters['management/byId'](MANAGEMENT.FEATURE, name);\n\n if ( entry ) {\n return entry.enabled;\n }\n\n return definition.def;\n },\n};\n\nexport const actions = {\n loadServer({ rootGetters, dispatch }) {\n if ( rootGetters['management/canList'](MANAGEMENT.FEATURE) ) {\n return dispatch('management/findAll', { type: MANAGEMENT.FEATURE }, { root: true });\n }\n },\n};\n","import { REDIRECTED } from '@shell/config/cookies';\nimport { NAME as EXPLORER } from '@shell/config/product/explorer';\nimport {\n SETUP, TIMED_OUT, UPGRADED, _FLAGGED, _UNFLAG\n} from '@shell/config/query-params';\nimport { SETTING } from '@shell/config/settings';\nimport { MANAGEMENT, NORMAN, DEFAULT_WORKSPACE } from '@shell/config/types';\nimport { _ALL_IF_AUTHED } from '@shell/plugins/dashboard-store/actions';\nimport { applyProducts } from '@shell/store/type-map';\nimport { findBy } from '@shell/utils/array';\nimport { ClusterNotFoundError, RedirectToError } from '@shell/utils/error';\nimport { get } from '@shell/utils/object';\nimport { setFavIcon, haveSetFavIcon } from '@shell/utils/favicon';\nimport dynamicPluginLoader from '@shell/pkg/dynamic-plugin-loader';\nimport { AFTER_LOGIN_ROUTE, WORKSPACE } from '@shell/store/prefs';\nimport { BACK_TO } from '@shell/config/local-storage';\nimport { NAME as FLEET_NAME } from '@shell/config/product/fleet.js';\nimport { canViewResource } from '@shell/utils/auth';\n\nconst getPackageFromRoute = (route) => {\n if (!route?.meta) {\n return;\n }\n // Sometimes meta is an array... sometimes not\n const arraySafe = Array.isArray(route.meta) ? route.meta : [route.meta];\n\n return arraySafe.find((m) => !!m.pkg)?.pkg;\n};\n\nconst getResourceFromRoute = (to) => {\n let resource = to.params?.resource;\n\n if (!resource) {\n resource = findMeta(to, 'resource');\n }\n\n return resource;\n};\n\nlet beforeEachSetup = false;\n\nfunction findMeta(route, key) {\n if (route?.meta) {\n const meta = Array.isArray(route.meta) ? route.meta : [route.meta];\n\n for (let i = 0; i < meta.length; i++) {\n if (meta[i][key]) {\n return meta[i][key];\n }\n }\n }\n\n return undefined;\n}\n\nexport function getClusterFromRoute(to) {\n let cluster = to.params?.cluster;\n\n if (!cluster) {\n cluster = findMeta(to, 'cluster');\n }\n\n return cluster;\n}\n\nexport function getProductFromRoute(to) {\n let product = to.params?.product;\n\n if ( !product ) {\n const match = to.name?.match(/^c-cluster-([^-]+)/);\n\n if ( match ) {\n product = match[1];\n }\n }\n\n // If still no product, see if the route indicates the product via route metadata\n if (!product) {\n product = findMeta(to, 'product');\n }\n\n return product;\n}\n\nfunction setProduct(store, to, redirect) {\n let product = getProductFromRoute(to);\n\n // since all products are hardcoded as routes (ex: c-local-explorer), if we match the wildcard route it means that the product does not exist\n if ((product && (!to.matched.length || (to.matched.length && to.matched[0].path === '/c/:cluster/:product'))) ||\n // if the product grabbed from the route is not registered, then we don't have it!\n (product && !store.getters['type-map/isProductRegistered'](product))) {\n store.dispatch('loadingError', new Error(store.getters['i18n/t']('nav.failWhale.productNotFound', { productNotFound: product }, true)));\n\n return () => redirect(302, '/fail-whale');\n }\n\n if ( !product ) {\n product = EXPLORER;\n }\n\n const oldProduct = store.getters['productId'];\n const oldStore = store.getters['currentProduct']?.inStore;\n\n if ( product !== oldProduct ) {\n store.commit('setProduct', product);\n }\n\n const neuStore = store.getters['currentProduct']?.inStore;\n\n if ( neuStore !== oldStore ) {\n // If the product store changes, clear the catalog.\n // There might be management catalog items in it vs cluster.\n store.commit('catalog/reset');\n }\n\n return false;\n}\n\n/**\n * Check that the resource is valid, if not redirect to fail whale\n *\n * This requires that\n * - product is set\n * - product's store is set and setup (so we can check schema's within it)\n * - product's store has the schemaFor getter (extension stores might not have it)\n * - there's a resource associated with route (meta or param)\n */\nfunction invalidResource(store, to, redirect) {\n const product = store.getters['currentProduct'];\n const resource = getResourceFromRoute(to);\n\n // In order to check a resource is valid we need these\n if (!product || !resource) {\n return false;\n }\n\n if (canViewResource(store, resource)) {\n return false;\n }\n\n // Unknown resource, redirect to fail whale\n\n store.dispatch('loadingError', new Error(store.getters['i18n/t']('nav.failWhale.resourceNotFound', { resource }, true)));\n\n return () => redirect(302, '/fail-whale');\n}\n\nexport default async function({\n route, app, store, redirect, $cookies, req, isDev, from, $plugin, next\n}) {\n if ( route.path && typeof route.path === 'string') {\n // Ignore webpack hot module reload requests\n if ( route.path.startsWith('/__webpack_hmr/') ) {\n return;\n }\n\n // Ignore the error page\n if ( route.path.startsWith('/fail-whale') ) {\n return;\n }\n }\n\n // This tells Ember not to redirect back to us once you've already been to dashboard once.\n if ( !$cookies.get(REDIRECTED) ) {\n $cookies.set(REDIRECTED, 'true', {\n path: '/',\n sameSite: true,\n secure: true,\n });\n }\n\n const upgraded = route.query[UPGRADED] === _FLAGGED;\n\n if ( upgraded ) {\n app.router.applyQuery({ [UPGRADED]: _UNFLAG });\n\n store.dispatch('growl/success', {\n title: store.getters['i18n/t']('serverUpgrade.title'),\n message: store.getters['i18n/t']('serverUpgrade.message'),\n timeout: 0,\n });\n }\n\n // Initial ?setup=admin-password can technically be on any route\n let initialPass = route.query[SETUP];\n let firstLogin = null;\n\n try {\n // Load settings, which will either be just the public ones if not logged in, or all if you are\n await store.dispatch('management/findAll', {\n type: MANAGEMENT.SETTING,\n opt: {\n load: _ALL_IF_AUTHED, url: `/v1/${ MANAGEMENT.SETTING }`, redirectUnauthorized: false\n }\n });\n\n // Set the favicon - use custom one from store if set\n if (!haveSetFavIcon()) {\n setFavIcon(store);\n }\n\n const res = store.getters['management/byId'](MANAGEMENT.SETTING, SETTING.FIRST_LOGIN);\n const plSetting = store.getters['management/byId'](MANAGEMENT.SETTING, SETTING.PL);\n\n firstLogin = res?.value === 'true';\n\n if (!initialPass && plSetting?.value === 'Harvester') {\n initialPass = 'admin';\n }\n } catch (e) {\n }\n\n if ( firstLogin === null ) {\n try {\n const res = await store.dispatch('rancher/find', {\n type: 'setting',\n id: SETTING.FIRST_LOGIN,\n opt: { url: `/v3/settings/${ SETTING.FIRST_LOGIN }` }\n });\n\n firstLogin = res?.value === 'true';\n\n const plSetting = await store.dispatch('rancher/find', {\n type: 'setting',\n id: SETTING.PL,\n opt: { url: `/v3/settings/${ SETTING.PL }` }\n });\n\n if (!initialPass && plSetting?.value === 'Harvester') {\n initialPass = 'admin';\n }\n } catch (e) {\n }\n }\n\n // TODO show error if firstLogin and default pass doesn't work\n if ( firstLogin ) {\n const ok = await tryInitialSetup(store, initialPass);\n\n if (ok) {\n if (initialPass) {\n store.dispatch('auth/setInitialPass', initialPass);\n }\n\n return redirect({ name: 'auth-setup' });\n } else {\n return redirect({ name: 'auth-login' });\n }\n }\n\n // Make sure you're actually logged in\n function isLoggedIn(me) {\n store.commit('auth/hasAuth', true);\n store.commit('auth/loggedInAs', me.id);\n }\n\n function notLoggedIn() {\n store.commit('auth/hasAuth', true);\n\n if ( route.name === 'index' ) {\n return redirect(302, '/auth/login');\n } else {\n return redirect(302, `/auth/login?${ TIMED_OUT }`);\n }\n }\n\n function noAuth() {\n store.commit('auth/hasAuth', false);\n }\n\n if ( store.getters['auth/enabled'] !== false && !store.getters['auth/loggedIn'] ) {\n // `await` so we have one successfully request whilst possibly logged in (ensures fromHeader is populated from `x-api-cattle-auth`)\n await store.dispatch('auth/getUser');\n\n const v3User = store.getters['auth/v3User'] || {};\n\n if (v3User?.mustChangePassword) {\n return redirect({ name: 'auth-setup' });\n }\n\n // In newer versions the API calls return the auth state instead of having to make a new call all the time.\n const fromHeader = store.getters['auth/fromHeader'];\n\n if ( fromHeader === 'none' ) {\n noAuth();\n } else if ( fromHeader === 'true' ) {\n const me = await findMe(store);\n\n isLoggedIn(me);\n } else if ( fromHeader === 'false' ) {\n notLoggedIn();\n } else {\n // Older versions look at principals and see what happens\n try {\n const me = await findMe(store);\n\n isLoggedIn(me);\n } catch (e) {\n const status = e?._status;\n\n if ( status === 404 ) {\n noAuth();\n } else {\n if ( status === 401 ) {\n notLoggedIn();\n } else {\n store.commit('setError', { error: e, locationError: new Error('Auth Middleware') });\n }\n\n return;\n }\n }\n }\n\n store.dispatch('gcStartIntervals');\n }\n\n const backTo = window.localStorage.getItem(BACK_TO);\n\n if (backTo) {\n window.localStorage.removeItem(BACK_TO);\n\n window.location.href = backTo;\n }\n\n // GC should be notified of route change before any find/get request is made that might be used for that page\n store.dispatch('gcRouteChanged', route);\n\n // Load stuff\n let localCheckResource = false;\n\n await applyProducts(store, $plugin);\n\n // Setup a beforeEach hook once to keep track of the current product\n if ( !beforeEachSetup ) {\n beforeEachSetup = true;\n // This only needs to happen when beforeEach hook hasn't run (the initial load)\n localCheckResource = true;\n\n store.app.router.beforeEach((to, from, next) => {\n // NOTE - This beforeEach runs AFTER this middleware. So anything in this middleware that requires it must set it manually\n let redirected = setProduct(store, to, redirect);\n\n if (redirected) {\n return redirected();\n }\n\n redirected = invalidResource(store, to, redirect);\n\n if (redirected) {\n return redirected();\n }\n\n next();\n });\n\n // Call it for the initial pageload\n const redirected = setProduct(store, route, redirect);\n\n if (redirected) {\n return redirected();\n }\n\n store.app.router.afterEach((to, from) => {\n // Clear state used to record if back button was used for navigation\n setTimeout(() => {\n window._popStateDetected = false;\n }, 1);\n });\n }\n\n try {\n let clusterId = get(route, 'params.cluster');\n\n // Route can provide cluster ID via metadata\n if (!clusterId && route) {\n clusterId = getClusterFromRoute(route);\n }\n\n const pkg = getPackageFromRoute(route);\n const product = getProductFromRoute(route);\n\n const oldPkg = getPackageFromRoute(from);\n const oldProduct = getProductFromRoute(from);\n\n // Leave an old pkg where we weren't before?\n const oldPkgPlugin = oldPkg ? Object.values($plugin.getPlugins()).find((p) => p.name === oldPkg) : null;\n\n if (oldPkg && oldPkg !== pkg ) {\n // Execute anything optional the plugin wants to. For example resetting it's store to remove data\n await oldPkgPlugin.onLeave(store, {\n clusterId,\n product,\n oldProduct,\n oldIsExt: !!oldPkg\n });\n }\n\n // Sometimes this needs to happen before or alongside other things... but is always needed\n const always = [\n store.dispatch('loadManagement')\n ];\n\n // Entering a new package where we weren't before?\n const newPkgPlugin = pkg ? Object.values($plugin.getPlugins()).find((p) => p.name === pkg) : null;\n\n // Note - We can't block on oldPkg !== newPkg because on a fresh load the `from` route equals the `to` route\n if (pkg && (oldPkg !== pkg || from.fullPath === route.fullPath)) {\n // Execute mandatory store actions\n await Promise.all(always);\n\n // Execute anything optional the plugin wants to\n await newPkgPlugin.onEnter(store, {\n clusterId,\n product,\n oldProduct,\n oldIsExt: !!oldPkg\n });\n }\n\n if (!route.matched?.length) {\n // If there are no matching routes we could be trying to nav to a page belonging to a dynamic plugin which needs loading\n await Promise.all([\n ...always,\n ]);\n\n // If a plugin claims the route and is loaded correctly we'll get a route back\n const newLocation = await dynamicPluginLoader.check({ route, store });\n\n // If we have a new location, double check that it's actually valid\n const resolvedRoute = newLocation ? store.app.router.resolve(newLocation) : null;\n\n if (resolvedRoute?.route.matched.length) {\n // Note - don't use `redirect` or `store.app.route` (breaks feature by failing to run middleware in default layout)\n return next(newLocation);\n }\n }\n\n // Ensure that the activeNamespaceCache is updated given the change of context either from or to a place where it uses workspaces\n // When fleet moves to it's own package this should be moved to pkg onEnter/onLeave\n if ((oldProduct === FLEET_NAME || product === FLEET_NAME) && oldProduct !== product) {\n // See note above for store.app.router.beforeEach, need to setProduct manually, for the moment do this in a targeted way\n const redirected = setProduct(store, route, redirect);\n\n if (redirected) {\n return redirected();\n }\n\n store.commit('updateWorkspace', {\n value: store.getters['prefs/get'](WORKSPACE) || DEFAULT_WORKSPACE,\n getters: store.getters\n });\n }\n\n // Always run loadCluster, it handles 'unload' as well\n // Run them in parallel\n await Promise.all([\n ...always,\n store.dispatch('loadCluster', {\n id: clusterId,\n oldPkg: oldPkgPlugin,\n newPkg: newPkgPlugin,\n product,\n oldProduct,\n targetRoute: route\n })\n ]);\n\n if (localCheckResource) {\n const redirected = invalidResource(store, route, redirect);\n\n if (redirected) {\n return redirected();\n }\n }\n\n if (!clusterId) {\n clusterId = store.getters['defaultClusterId']; // This needs the cluster list, so no parallel\n const isSingleProduct = store.getters['isSingleProduct'];\n\n if (isSingleProduct?.afterLoginRoute) {\n const value = {\n name: 'c-cluster-product',\n ...isSingleProduct.afterLoginRoute,\n params: {\n cluster: clusterId,\n ...isSingleProduct.afterLoginRoute?.params\n },\n };\n\n await store.dispatch('prefs/set', {\n key: AFTER_LOGIN_ROUTE,\n value,\n });\n }\n }\n } catch (e) {\n if ( e.name === ClusterNotFoundError.name ) {\n return redirect(302, '/home');\n } if ( e.name === RedirectToError.name ) {\n return redirect(302, e.url);\n } else {\n // Sets error 500 if lost connection to API\n store.commit('setError', { error: e, locationError: new Error(store.getters['i18n/t']('nav.failWhale.authMiddleware')) });\n\n return redirect(302, '/fail-whale');\n }\n }\n}\n\nasync function findMe(store) {\n // First thing we do in loadManagement is fetch principals anyway.... so don't ?me=true here\n const principals = await store.dispatch('rancher/findAll', {\n type: NORMAN.PRINCIPAL,\n opt: {\n url: '/v3/principals',\n redirectUnauthorized: false,\n }\n });\n\n const me = findBy(principals, 'me', true);\n\n return me;\n}\n\nasync function tryInitialSetup(store, password = 'admin') {\n try {\n const res = await store.dispatch('auth/login', {\n provider: 'local',\n body: {\n username: 'admin',\n password\n },\n });\n\n return res._status === 200;\n } catch (e) {\n console.error('Error trying initial setup', e); // eslint-disable-line no-console\n\n return false;\n }\n}\n","import { ActionLocation, CardLocation, ExtensionPoint } from '@shell/core/types';\nimport { isMac } from '@shell/utils/platform';\nimport { ucFirst, randomStr } from '@shell/utils/string';\nimport {\n _EDIT, _CONFIG, _DETAIL, _LIST, _CREATE\n} from '@shell/config/query-params';\nimport { getProductFromRoute } from '@shell/middleware/authenticated';\nimport { isEqual } from '@shell/utils/object';\n\nfunction checkRouteProduct($route, locationConfigParam) {\n const product = getProductFromRoute($route);\n\n // alias for the homepage\n if (locationConfigParam === 'home' && $route.name === 'home') {\n return true;\n } else if (locationConfigParam === product) {\n return true;\n }\n\n return false;\n}\n\nfunction checkRouteMode({ name, query }, locationConfigParam) {\n if (locationConfigParam === _EDIT && query.mode && query.mode === _EDIT && !query.as) {\n return true;\n } else if (locationConfigParam === _CONFIG && query.as && query.as === _CONFIG) {\n return true;\n } else if (locationConfigParam === _DETAIL && !query.as && name.includes('-id') && (!query.mode || query?.mode !== _EDIT)) {\n return true;\n // alias to target all list views\n } else if (locationConfigParam === _LIST && !name.includes('-id') && name.includes('-resource')) {\n return true;\n // alias to target create views\n } else if (locationConfigParam === _CREATE && name.endsWith('-create')) {\n return true;\n }\n\n return false;\n}\n\nfunction checkExtensionRouteBinding($route, locationConfig, context) {\n // if no configuration is passed, consider it as global\n if (!Object.keys(locationConfig).length) {\n return true;\n }\n\n const { params } = $route;\n\n // \"params\" to be checked based on the locationConfig\n // This has become overloaded with mode and context\n const paramsToCheck = [\n 'product',\n 'resource',\n 'namespace',\n 'cluster',\n 'id',\n 'mode',\n 'path',\n 'hash',\n // url query params\n 'queryParam',\n // Custom context specific params provided by the extension, not to be confused with location params\n 'context',\n ];\n\n let res = true;\n\n for (let i = 0; i < paramsToCheck.length; i++) {\n const param = paramsToCheck[i];\n\n if (locationConfig[param]) {\n const asArray = Array.isArray(locationConfig[param]) ? locationConfig[param] : [locationConfig[param]];\n\n for (let x = 0; x < asArray.length; x++) {\n const locationConfigParam = asArray[x];\n\n if (locationConfigParam) {\n if (param === 'hash') {\n res = $route.hash ? $route.hash.includes(locationConfigParam) : false;\n // handle \"product\" in a separate way...\n } else if (param === 'product') {\n res = checkRouteProduct($route, locationConfigParam);\n // also handle \"mode\" in a separate way because it mainly depends on query params\n } else if (param === 'mode') {\n res = checkRouteMode($route, locationConfigParam);\n } else if (param === 'resource') {\n // Match exact resource but also allow resource of '*' to match any resource\n res = (params[param] && locationConfigParam === '*') || locationConfigParam === params[param];\n } else if (param === 'context') {\n // Need all keys and values to match\n res = isEqual(locationConfigParam, context);\n // evaluate queryParam in route\n } else if (param === 'queryParam') {\n res = isEqual(locationConfigParam, $route.query);\n // evaluate path in route\n } else if (param === 'path' && locationConfigParam.urlPath) {\n if (locationConfigParam.endsWith) {\n res = $route.path.endsWith(locationConfigParam.urlPath);\n } else if (!Object.keys(locationConfigParam).includes('exact') || locationConfigParam.exact) {\n res = locationConfigParam.urlPath === $route.path;\n } else {\n res = $route.path.includes(locationConfigParam.urlPath);\n }\n } else if (locationConfigParam === params[param]) {\n res = true;\n } else {\n res = false;\n }\n }\n\n // If a single location config param is good then this is an param (aka ['pods', 'configmap'] = pods or configmaps)\n if (res) {\n break;\n }\n }\n\n // If a single param (set of location config params) is bad then this is not an acceptable location\n if (!res) {\n break;\n }\n }\n }\n\n return res;\n}\n\nexport function getApplicableExtensionEnhancements(pluginCtx, actionType, uiArea, currRoute, translationCtx = pluginCtx, context) {\n const extensionEnhancements = [];\n\n // gate it so that we prevent errors on older versions of dashboard\n if (pluginCtx.$plugin?.getUIConfig) {\n const actions = pluginCtx.$plugin.getUIConfig(actionType, uiArea);\n\n actions.forEach((action, i) => {\n if (checkExtensionRouteBinding(currRoute, action.locationConfig, context || {})) {\n // ADD CARD PLUGIN UI ENHANCEMENT\n if (actionType === ExtensionPoint.CARD) {\n // intercept to apply translation\n if (uiArea === CardLocation.CLUSTER_DASHBOARD_CARD && action.labelKey) {\n actions[i].label = translationCtx.t(action.labelKey);\n }\n\n // ADD ACTION PLUGIN UI ENHANCEMENT\n } else if (actionType === ExtensionPoint.ACTION) {\n // TABLE ACTION\n if (uiArea === ActionLocation.TABLE) {\n // intercept to apply translation\n if (action.labelKey) {\n actions[i].label = translationCtx.t(action.labelKey);\n }\n\n // bulkable flag\n actions[i].bulkable = actions[i].multiple || actions[i].bulkable;\n\n // populate action identifier to prevent errors\n if (!actions[i].action) {\n actions[i].action = `custom-table-action-${ randomStr(10).toLowerCase() }`;\n }\n }\n\n // extract simplified shortcut definition on plugin - HEADER ACTION\n if (uiArea === ActionLocation.HEADER && action.shortcut) {\n // if it's a string, then assume CTRL for windows and META for mac\n if (typeof action.shortcut === 'string') {\n actions[i].shortcutLabel = () => {\n return isMac ? `(\\u2318-${ action.shortcut.toUpperCase() })` : `(Ctrl-${ action.shortcut.toUpperCase() })`;\n };\n actions[i].shortcutKey = { windows: ['ctrl', action.shortcut], mac: ['meta', action.shortcut] };\n // correct check for an Object type in JS... handle the object passed\n } else if (typeof action.shortcut === 'object' && !Array.isArray(action.shortcut) && action.shortcut !== null) {\n actions[i].shortcutKey = action.shortcut;\n const keyboardCombo = isMac ? actions[i].shortcut.mac : actions[i].shortcut.windows ? actions[i].shortcut.windows : [];\n let scLabel = '';\n\n keyboardCombo.forEach((key, i) => {\n if (i < keyboardCombo.length - 1) {\n if (key === 'meta') {\n key = '\\u2318';\n } else {\n key = ucFirst(key);\n }\n scLabel += `${ key }`;\n scLabel += '-';\n } else {\n scLabel += `${ key.toUpperCase() }`;\n }\n });\n\n actions[i].shortcutLabel = () => {\n return `(${ scLabel })`;\n };\n }\n }\n }\n\n extensionEnhancements.push(actions[i]);\n }\n });\n }\n\n return extensionEnhancements;\n}\n","import { NORMAN_NAME } from '@shell/config/labels-annotations';\nimport {\n _CLONE,\n _CONFIG,\n _EDIT,\n _UNFLAG,\n _VIEW,\n _YAML,\n AS,\n MODE\n} from '@shell/config/query-params';\nimport { VIEW_IN_API } from '@shell/store/prefs';\nimport { addObject, addObjects, findBy, removeAt } from '@shell/utils/array';\nimport CustomValidators from '@shell/utils/custom-validators';\nimport { downloadFile, generateZip } from '@shell/utils/download';\nimport { clone, get } from '@shell/utils/object';\nimport { eachLimit } from '@shell/utils/promise';\nimport { sortableNumericSuffix } from '@shell/utils/sort';\nimport { coerceStringTypeToScalarType, escapeHtml, ucFirst } from '@shell/utils/string';\nimport {\n displayKeyFor,\n validateBoolean,\n validateChars,\n validateDnsLikeTypes,\n validateLength,\n} from '@shell/utils/validators';\nimport formRulesGenerator from '@shell/utils/validators/formRules/index';\nimport { waitFor } from '@shell/utils/async';\nimport jsyaml from 'js-yaml';\nimport compact from 'lodash/compact';\nimport forIn from 'lodash/forIn';\nimport isEmpty from 'lodash/isEmpty';\nimport isFunction from 'lodash/isFunction';\nimport isString from 'lodash/isString';\nimport uniq from 'lodash/uniq';\nimport Vue from 'vue';\n\nimport { normalizeType } from './normalize';\n\nimport { ExtensionPoint, ActionLocation } from '@shell/core/types';\nimport { getApplicableExtensionEnhancements } from '@shell/core/plugin-helpers';\n\nconst STRING_LIKE_TYPES = [\n 'string',\n 'date',\n 'blob',\n 'enum',\n 'multiline',\n 'masked',\n 'password',\n 'dnsLabel',\n 'hostname',\n];\nconst DNS_LIKE_TYPES = ['dnsLabel', 'dnsLabelRestricted', 'hostname'];\n\nconst REMAP_STATE = {\n disabled: 'inactive',\n notapplied: 'Not Applied',\n notready: 'Not Ready',\n waitapplied: 'Wait Applied',\n outofsync: 'Out of Sync',\n 'in-progress': 'In Progress',\n gitupdating: 'Git Updating',\n errapplied: 'Err Applied',\n waitcheckin: 'Wait Check-In',\n off: 'Disabled',\n waitingforinfrastructure: 'Waiting for Infra',\n waitingfornoderef: 'Waiting for Node Ref'\n};\n\nconst DEFAULT_COLOR = 'warning';\nconst DEFAULT_ICON = 'x';\n\nconst DEFAULT_WAIT_INTERVAL = 1000;\nconst DEFAULT_WAIT_TMIMEOUT = 30000;\n\nexport const STATES_ENUM = {\n IN_USE: 'in-use',\n IN_PROGRESS: 'in-progress',\n PENDING_ROLLBACK: 'pending-rollback',\n PENDING_UPGRADE: 'pending-upgrade',\n ABORTED: 'aborted',\n ACTIVATING: 'activating',\n ACTIVE: 'active',\n AVAILABLE: 'available',\n BACKED_UP: 'backedup',\n BOUND: 'bound',\n BUILDING: 'building',\n COMPLETED: 'completed',\n CORDONED: 'cordoned',\n COUNT: 'count',\n CREATED: 'created',\n CREATING: 'creating',\n DEACTIVATING: 'deactivating',\n DEGRADED: 'degraded',\n DENIED: 'denied',\n DEPLOYED: 'deployed',\n DEPLOYING: 'deploying',\n DISABLED: 'disabled',\n DISCONNECTED: 'disconnected',\n DRAINED: 'drained',\n DRAINING: 'draining',\n ERR_APPLIED: 'errapplied',\n ERROR: 'error',\n ERRORING: 'erroring',\n ERRORS: 'errors',\n EXPIRED: 'expired',\n EXPIRING: 'expiring',\n FAIL: 'fail',\n FAILED: 'failed',\n HEALTHY: 'healthy',\n INACTIVE: 'inactive',\n INFO: 'info',\n INITIALIZING: 'initializing',\n INPROGRESS: 'inprogress',\n LOCKED: 'locked',\n MIGRATING: 'migrating',\n MISSING: 'missing',\n MODIFIED: 'modified',\n NOT_APPLICABLE: 'notApplicable',\n NOT_APLLIED: 'notapplied',\n NOT_READY: 'notready',\n OFF: 'off',\n ORPHANED: 'orphaned',\n OTHER: 'other',\n OUT_OF_SYNC: 'outofsync',\n ON_GOING: 'on-going',\n PASS: 'pass',\n PASSED: 'passed',\n PAUSED: 'paused',\n PENDING: 'pending',\n PROVISIONING: 'provisioning',\n PROVISIONED: 'provisioned',\n PURGED: 'purged',\n PURGING: 'purging',\n READY: 'ready',\n RECONNECTING: 'reconnecting',\n REGISTERING: 'registering',\n REINITIALIZING: 'reinitializing',\n RELEASED: 'released',\n REMOVED: 'removed',\n REMOVING: 'removing',\n REQUESTED: 'requested',\n RESTARTING: 'restarting',\n RESTORING: 'restoring',\n RESIZING: 'resizing',\n RUNNING: 'running',\n SKIP: 'skip',\n SKIPPED: 'skipped',\n STARTING: 'starting',\n STOPPED: 'stopped',\n STOPPING: 'stopping',\n SUCCEEDED: 'succeeded',\n SUCCESS: 'success',\n SUCCESSFUL: 'successful',\n SUPERSEDED: 'superseded',\n SUSPENDED: 'suspended',\n UNAVAILABLE: 'unavailable',\n UNHEALTHY: 'unhealthy',\n UNINSTALLED: 'uninstalled',\n UNINSTALLING: 'uninstalling',\n UNKNOWN: 'unknown',\n UNTRIGGERED: 'untriggered',\n UPDATING: 'updating',\n WAIT_APPLIED: 'waitapplied',\n WAIT_CHECKIN: 'waitcheckin',\n WAITING: 'waiting',\n WARNING: 'warning',\n};\n\nexport function mapStateToEnum(statusString) {\n // e.g. in fleet Status is Capitalized. This function will map it to the enum\n return Object.values(STATES_ENUM).find((val) => {\n return val.toLowerCase() === statusString.toLocaleLowerCase();\n });\n}\n\nexport const STATES = {\n [STATES_ENUM.IN_USE]: {\n color: 'success', icon: 'dot-open', label: 'In Use', compoundIcon: 'checkmark'\n },\n [STATES_ENUM.IN_PROGRESS]: {\n color: 'info', icon: 'tag', label: 'In Progress', compoundIcon: 'info'\n },\n [STATES_ENUM.PENDING_ROLLBACK]: {\n color: 'info', icon: 'dot-half', label: 'Pending Rollback', compoundIcon: 'info'\n },\n [STATES_ENUM.PENDING_UPGRADE]: {\n color: 'info', icon: 'dot-half', label: 'Pending Update', compoundIcon: 'info'\n },\n [STATES_ENUM.ABORTED]: {\n color: 'warning', icon: 'error', label: 'Aborted', compoundIcon: 'warning'\n },\n [STATES_ENUM.ACTIVATING]: {\n color: 'info', icon: 'tag', label: 'Activating', compoundIcon: 'info'\n },\n [STATES_ENUM.ACTIVE]: {\n color: 'success', icon: 'dot-open', label: 'Active', compoundIcon: 'checkmark'\n },\n [STATES_ENUM.AVAILABLE]: {\n color: 'success', icon: 'dot-open', label: 'Available', compoundIcon: 'checkmark'\n },\n [STATES_ENUM.BACKED_UP]: {\n color: 'success', icon: 'backup', label: 'Backed Up', compoundIcon: 'checkmark'\n },\n [STATES_ENUM.BOUND]: {\n color: 'success', icon: 'dot', label: 'Bound', compoundIcon: 'checkmark'\n },\n [STATES_ENUM.BUILDING]: {\n color: 'success', icon: 'dot-open', label: 'Building', compoundIcon: 'checkmark'\n },\n [STATES_ENUM.COMPLETED]: {\n color: 'success', icon: 'dot', label: 'Completed', compoundIcon: 'checkmark'\n },\n [STATES_ENUM.CORDONED]: {\n color: 'info', icon: 'tag', label: 'Cordoned', compoundIcon: 'info'\n },\n [STATES_ENUM.COUNT]: {\n color: 'success', icon: 'dot-open', label: 'Count', compoundIcon: 'checkmark'\n },\n [STATES_ENUM.CREATED]: {\n color: 'info', icon: 'tag', label: 'Created', compoundIcon: 'info'\n },\n [STATES_ENUM.CREATING]: {\n color: 'info', icon: 'tag', label: 'Creating', compoundIcon: 'info'\n },\n [STATES_ENUM.DEACTIVATING]: {\n color: 'info', icon: 'adjust', label: 'Deactivating', compoundIcon: 'info'\n },\n [STATES_ENUM.DEGRADED]: {\n color: 'warning', icon: 'error', label: 'Degraded', compoundIcon: 'warning'\n },\n [STATES_ENUM.DENIED]: {\n color: 'error', icon: 'adjust', label: 'Denied', compoundIcon: 'error'\n },\n [STATES_ENUM.DEPLOYED]: {\n color: 'success', icon: 'dot-open', label: 'Deployed', compoundIcon: 'checkmark'\n },\n [STATES_ENUM.DISABLED]: {\n color: 'warning', icon: 'error', label: 'Disabled', compoundIcon: 'warning'\n },\n [STATES_ENUM.DISCONNECTED]: {\n color: 'warning', icon: 'error', label: 'Disconnected', compoundIcon: 'warning'\n },\n [STATES_ENUM.DRAINED]: {\n color: 'info', icon: 'tag', label: 'Drained', compoundIcon: 'info'\n },\n [STATES_ENUM.DRAINING]: {\n color: 'warning', icon: 'tag', label: 'Draining', compoundIcon: 'warning'\n },\n [STATES_ENUM.ERR_APPLIED]: {\n color: 'error', icon: 'error', label: 'Error Applied', compoundIcon: 'error'\n },\n [STATES_ENUM.ERROR]: {\n color: 'error', icon: 'error', label: 'Error', compoundIcon: 'error'\n },\n [STATES_ENUM.ERRORING]: {\n color: 'error', icon: 'error', label: 'Erroring', compoundIcon: 'error'\n },\n [STATES_ENUM.ERRORS]: {\n color: 'error', icon: 'error', label: 'Errors', compoundIcon: 'error'\n },\n [STATES_ENUM.EXPIRED]: {\n color: 'error', icon: 'error', label: 'Expired', compoundIcon: 'warning'\n },\n [STATES_ENUM.EXPIRING]: {\n color: 'warning', icon: 'error', label: 'Expiring', compoundIcon: 'error'\n },\n [STATES_ENUM.FAIL]: {\n color: 'error', icon: 'error', label: 'Fail', compoundIcon: 'error'\n },\n [STATES_ENUM.FAILED]: {\n color: 'error', icon: 'error', label: 'Failed', compoundIcon: 'error'\n },\n [STATES_ENUM.HEALTHY]: {\n color: 'success', icon: 'dot-open', label: 'Healthy', compoundIcon: 'checkmark'\n },\n [STATES_ENUM.INACTIVE]: {\n color: 'error', icon: 'dot', label: 'Inactive', compoundIcon: 'error'\n },\n [STATES_ENUM.INITIALIZING]: {\n color: 'warning', icon: 'error', label: 'Initializing', compoundIcon: 'warning'\n },\n [STATES_ENUM.INPROGRESS]: {\n color: 'info', icon: 'spinner', label: 'In Progress', compoundIcon: 'info'\n },\n [STATES_ENUM.INFO]: {\n color: 'info', icon: 'info', label: 'Info', compoundIcon: 'info'\n },\n [STATES_ENUM.LOCKED]: {\n color: 'warning', icon: 'adjust', label: 'Locked', compoundIcon: 'warning'\n },\n [STATES_ENUM.MIGRATING]: {\n color: 'info', icon: 'info', label: 'Migrated', compoundIcon: 'info'\n },\n [STATES_ENUM.MISSING]: {\n color: 'warning', icon: 'adjust', label: 'Missing', compoundIcon: 'warning'\n },\n [STATES_ENUM.MODIFIED]: {\n color: 'warning', icon: 'edit', label: 'Modified', compoundIcon: 'warning'\n },\n [STATES_ENUM.NOT_APPLICABLE]: {\n color: 'warning', icon: 'tag', label: 'Not Applicable', compoundIcon: 'warning'\n },\n [STATES_ENUM.NOT_APLLIED]: {\n color: 'warning', icon: 'tag', label: 'Not Applied', compoundIcon: 'warning'\n },\n [STATES_ENUM.NOT_READY]: {\n color: 'warning', icon: 'tag', label: 'Not Ready', compoundIcon: 'warning'\n },\n [STATES_ENUM.OFF]: {\n color: 'darker', icon: 'error', label: 'Off'\n },\n [STATES_ENUM.ON_GOING]: {\n color: 'info', icon: 'info', label: 'Info', compoundIcon: 'info'\n },\n [STATES_ENUM.ORPHANED]: {\n color: 'warning', icon: 'tag', label: 'Orphaned', compoundIcon: 'warning'\n },\n [STATES_ENUM.OTHER]: {\n color: 'info', icon: 'info', label: 'Other', compoundIcon: 'info'\n },\n [STATES_ENUM.OUT_OF_SYNC]: {\n color: 'warning', icon: 'tag', label: 'Out Of Sync', compoundIcon: 'warning'\n },\n [STATES_ENUM.PASS]: {\n color: 'success', icon: 'dot-dotfill', label: 'Pass', compoundIcon: 'checkmark'\n },\n [STATES_ENUM.PASSED]: {\n color: 'success', icon: 'dot-dotfill', label: 'Passed', compoundIcon: 'checkmark'\n },\n [STATES_ENUM.PAUSED]: {\n color: 'info', icon: 'info', label: 'Paused', compoundIcon: 'info'\n },\n [STATES_ENUM.PENDING]: {\n color: 'info', icon: 'tag', label: 'Pending', compoundIcon: 'info'\n },\n [STATES_ENUM.PROVISIONING]: {\n color: 'info', icon: 'dot', label: 'Provisioning', compoundIcon: 'info'\n },\n [STATES_ENUM.PROVISIONED]: {\n color: 'success', icon: 'dot', label: 'Provisioned', compoundIcon: 'checkmark'\n },\n [STATES_ENUM.PURGED]: {\n color: 'error', icon: 'purged', label: 'Purged', compoundIcon: 'error'\n },\n [STATES_ENUM.PURGING]: {\n color: 'info', icon: 'purged', label: 'Purging', compoundIcon: 'info'\n },\n [STATES_ENUM.READY]: {\n color: 'success', icon: 'dot-open', label: 'Ready', compoundIcon: 'checkmark'\n },\n [STATES_ENUM.RECONNECTING]: {\n color: 'error', icon: 'error', label: 'Reconnecting', compoundIcon: 'error'\n },\n [STATES_ENUM.REGISTERING]: {\n color: 'info', icon: 'tag', label: 'Registering', compoundIcon: 'info'\n },\n [STATES_ENUM.REINITIALIZING]: {\n color: 'warning', icon: 'error', label: 'Reinitializing', compoundIcon: 'warning'\n },\n [STATES_ENUM.RELEASED]: {\n color: 'warning', icon: 'error', label: 'Released', compoundIcon: 'warning'\n },\n [STATES_ENUM.REMOVED]: {\n color: 'error', icon: 'trash', label: 'Removed', compoundIcon: 'error'\n },\n [STATES_ENUM.REMOVING]: {\n color: 'info', icon: 'trash', label: 'Removing', compoundIcon: 'info'\n },\n [STATES_ENUM.REQUESTED]: {\n color: 'info', icon: 'tag', label: 'Requested', compoundIcon: 'info'\n },\n [STATES_ENUM.RESTARTING]: {\n color: 'info', icon: 'adjust', label: 'Restarting', compoundIcon: 'info'\n },\n [STATES_ENUM.RESTORING]: {\n color: 'info', icon: 'medicalcross', label: 'Restoring', compoundIcon: 'info'\n },\n [STATES_ENUM.RESIZING]: {\n color: 'warning', icon: 'dot', label: 'Resizing', compoundIcon: 'warning'\n },\n [STATES_ENUM.RUNNING]: {\n color: 'success', icon: 'dot-open', label: 'Running', compoundIcon: 'checkmark'\n },\n [STATES_ENUM.SKIP]: {\n color: 'info', icon: 'dot-open', label: 'Skip', compoundIcon: 'info'\n },\n [STATES_ENUM.SKIPPED]: {\n color: 'info', icon: 'dot-open', label: 'Skipped', compoundIcon: 'info'\n },\n [STATES_ENUM.STARTING]: {\n color: 'info', icon: 'adjust', label: 'Starting', compoundIcon: 'info'\n },\n [STATES_ENUM.STOPPED]: {\n color: 'error', icon: 'dot', label: 'Stopped', compoundIcon: 'error'\n },\n [STATES_ENUM.STOPPING]: {\n color: 'info', icon: 'adjust', label: 'Stopping', compoundIcon: 'info'\n },\n [STATES_ENUM.SUCCEEDED]: {\n color: 'success', icon: 'dot-dotfill', label: 'Succeeded', compoundIcon: 'checkmark'\n },\n [STATES_ENUM.SUCCESS]: {\n color: 'success', icon: 'dot-open', label: 'Success', compoundIcon: 'checkmark'\n },\n [STATES_ENUM.SUCCESSFUL]: {\n color: 'success', icon: 'dot-open', label: 'Successful'\n },\n [STATES_ENUM.SUPERSEDED]: {\n color: 'info', icon: 'dot-open', label: 'Superseded', compoundIcon: 'info'\n },\n [STATES_ENUM.SUSPENDED]: {\n color: 'info', icon: 'pause', label: 'Suspended', compoundIcon: 'info'\n },\n [STATES_ENUM.UNAVAILABLE]: {\n color: 'error', icon: 'error', label: 'Unavailable', compoundIcon: 'error'\n },\n [STATES_ENUM.UNHEALTHY]: {\n color: 'error', icon: 'error', label: 'Unhealthy', compoundIcon: 'error'\n },\n [STATES_ENUM.UNINSTALLED]: {\n color: 'info', icon: 'trash', label: 'Uninstalled', compoundIcon: 'info'\n },\n [STATES_ENUM.UNINSTALLING]: {\n color: 'info', icon: 'trash', label: 'Uninstalling', compoundIcon: 'info'\n },\n [STATES_ENUM.UNKNOWN]: {\n color: 'warning', icon: 'x', label: 'Unknown', compoundIcon: 'warning'\n },\n [STATES_ENUM.UNTRIGGERED]: {\n color: 'success', icon: 'tag', label: 'Untriggered', compoundIcon: 'checkmark'\n },\n [STATES_ENUM.UPDATING]: {\n color: 'warning', icon: 'tag', label: 'Updating', compoundIcon: 'warning'\n },\n [STATES_ENUM.WAIT_APPLIED]: {\n color: 'info', icon: 'tag', label: 'Wait Applied', compoundIcon: 'info'\n },\n [STATES_ENUM.WAIT_CHECKIN]: {\n color: 'warning', icon: 'tag', label: 'Wait Checkin', compoundIcon: 'warning'\n },\n [STATES_ENUM.WAITING]: {\n color: 'info', icon: 'tag', label: 'Waiting', compoundIcon: 'info'\n },\n [STATES_ENUM.WARNING]: {\n color: 'warning', icon: 'error', label: 'Warning', compoundIcon: 'warning'\n },\n [STATES_ENUM.DEPLOYING]: {\n color: 'info', icon: 'info', label: 'Deploying', compoundIcon: 'info'\n },\n};\n\nexport function getStatesByType(type = 'info') {\n const out = {\n info: [],\n error: [],\n success: [],\n warning: [],\n unknown: [],\n };\n\n forIn(STATES, (state, stateKey) => {\n if (state.color) {\n if (out[state.color]) {\n out[state.color].push(stateKey);\n } else {\n out.unknown.push(stateKey);\n }\n }\n });\n\n return out;\n}\n\nconst SORT_ORDER = {\n error: 1,\n warning: 2,\n info: 3,\n success: 4,\n ready: 5,\n notready: 6,\n other: 7,\n};\n\nexport function getStateLabel(state) {\n const lowercaseState = state.toLowerCase();\n\n return STATES[lowercaseState] ? STATES[lowercaseState].label : STATES[STATES_ENUM.UNKNOWN].label;\n}\n\nexport function colorForState(state, isError, isTransitioning) {\n if ( isError ) {\n return 'text-error';\n }\n\n if ( isTransitioning ) {\n return 'text-info';\n }\n\n const key = (state || 'active').toLowerCase();\n let color;\n\n if ( STATES[key] && STATES[key].color ) {\n color = maybeFn.call(this, STATES[key].color);\n }\n\n if ( !color ) {\n color = DEFAULT_COLOR;\n }\n\n return `text-${ color }`;\n}\n\nexport function stateDisplay(state) {\n // @TODO use translations\n const key = (state || 'active').toLowerCase();\n\n if ( REMAP_STATE[key] ) {\n return REMAP_STATE[key];\n }\n\n return key.split(/-/).map(ucFirst).join('-');\n}\n\nexport function primaryDisplayStatusFromCount(status) {\n const statusOrder = [\n STATES_ENUM.ERROR,\n STATES_ENUM.FAILED,\n STATES_ENUM.WARNING,\n STATES_ENUM.MODIFIED,\n STATES_ENUM.WAIT_APPLIED,\n STATES_ENUM.ORPHANED,\n STATES_ENUM.MISSING,\n STATES_ENUM.UNKNOWN,\n STATES_ENUM.NOT_READY,\n STATES_ENUM.READY,\n ];\n\n // sort status by order of statusOrder\n const existingStatuses = Object.keys(status).filter((key) => {\n return status[key] > 0 && statusOrder.includes(key.toLowerCase());\n }).sort((a, b) => statusOrder.indexOf(a.toLowerCase()) - statusOrder.indexOf(b.toLowerCase()));\n\n return existingStatuses[0] ? existingStatuses[0] : STATES_ENUM.UNKNOWN;\n}\n\nexport function stateSort(color, display) {\n color = color.replace(/^(text|bg)-/, '');\n\n return `${ SORT_ORDER[color] || SORT_ORDER['other'] } ${ display }`;\n}\n\nexport function isConditionReadyAndWaiting(condition) {\n if (!condition) {\n return false;\n }\n\n return condition?.type?.toLowerCase() === 'ready' && condition?.reason?.toLowerCase() === 'waiting';\n}\n\nfunction maybeFn(val) {\n if ( isFunction(val) ) {\n return val(this);\n }\n\n return val;\n}\n\nexport default class Resource {\n constructor(data, ctx, rehydrateNamespace = null, setClone = false) {\n for ( const k in data ) {\n this[k] = data[k];\n }\n\n Object.defineProperty(this, '$ctx', {\n value: ctx,\n enumerable: false,\n });\n\n if ( rehydrateNamespace ) {\n Object.defineProperty(this, '__rehydrate', {\n value: rehydrateNamespace,\n enumerable: true,\n configurable: true\n });\n }\n\n if ( setClone ) {\n Object.defineProperty(this, '__clone', {\n value: true,\n enumerable: true,\n configurable: true,\n writable: true\n });\n }\n }\n\n get '$getters'() {\n return this.$ctx.getters;\n }\n\n get '$rootGetters'() {\n return this.$ctx.rootGetters;\n }\n\n get '$dispatch'() {\n return this.$ctx.dispatch;\n }\n\n get '$state'() {\n return this.$ctx.state;\n }\n\n get '$rootState'() {\n return this.$ctx.rootState;\n }\n\n get customValidationRules() {\n return [\n /**\n * Essentially a fake schema object with additional params to extend validation\n *\n * @param {nullable} Value is nullable\n * @param {path} Path on the resource to the value to validate\n * @param {required} Value required\n * @param {requiredIf} Value required if value at path not empty\n * @param {translationKey} Human readable display key for param in path e.g. metadata.name === Name\n * @param {type} Type of field to validate\n * @param {validators} array of strings where item is name of exported validator function in custom-validators, args can be passed by prepending args separated by colon. e.g maxLength:63\n */\n /* {\n nullable: false,\n path: 'spec.ports',\n required: true,\n type: 'array',\n validators: ['servicePort'],\n } */\n ];\n }\n\n get _key() {\n const m = this.metadata;\n\n if ( m ) {\n if ( m.uid ) {\n return m.uid;\n }\n\n if ( m.namespace ) {\n return `${ this.type }/${ m.namespace }/${ m.name }`;\n }\n }\n\n if ( this.id ) {\n return `${ this.type }/${ this.id }`;\n }\n\n return `${ this.type }/${ Math.random() }`;\n }\n\n get schema() {\n return this.$getters['schemaFor'](this.type);\n }\n\n toString() {\n return `[${ this.type }: ${ this.id }]`;\n }\n\n get typeDisplay() {\n const schema = this.schema;\n\n if ( schema ) {\n return this.$rootGetters['type-map/labelFor'](schema);\n }\n\n return '?';\n }\n\n get nameDisplay() {\n return this.displayName || this.spec?.displayName || this.metadata?.annotations?.[NORMAN_NAME] || this.name || this.metadata?.name || this.id;\n }\n\n get nameSort() {\n return sortableNumericSuffix(this.nameDisplay).toLowerCase();\n }\n\n get namespacedName() {\n const namespace = this.metadata?.namespace;\n const name = this.nameDisplay;\n\n if ( namespace ) {\n return `${ namespace }:${ name }`;\n }\n\n return name;\n }\n\n get namespacedNameSort() {\n return sortableNumericSuffix(this.namespacedName).toLowerCase();\n }\n\n get groupByLabel() {\n const name = this.metadata?.namespace;\n let out;\n\n if ( name ) {\n out = this.t('resourceTable.groupLabel.namespace', { name: escapeHtml(name) });\n } else {\n out = this.t('resourceTable.groupLabel.notInANamespace');\n }\n\n return out;\n }\n\n setLabels(/* val */) {\n throw new Error('Implement setLabels in subclass');\n }\n\n setLabel(/* key, val */) {\n throw new Error('Implement setLabel in subclass');\n }\n\n setAnnotations(val) {\n throw new Error('Implement setAnnotations in subclass');\n }\n\n setAnnotation(key, val) {\n throw new Error('Implement setAnnotation in subclass');\n }\n\n // You can override the displayed by providing your own stateDisplay (and possibly using the function exported above)\n get stateDisplay() {\n return stateDisplay(this.state);\n }\n\n get stateColor() {\n return colorForState.call(\n this,\n this.state,\n this.stateObj?.error,\n this.stateObj?.transitioning\n );\n }\n\n get stateBackground() {\n return this.stateColor.replace('text-', 'bg-');\n }\n\n get stateIcon() {\n let trans = false;\n let error = false;\n\n if ( this.metadata && this.metadata.state ) {\n trans = this.metadata.state.transitioning;\n error = this.metadata.state.error;\n }\n\n if ( trans ) {\n return 'icon icon-spinner icon-spin';\n }\n\n if ( error ) {\n return 'icon icon-error';\n }\n\n const key = (this.state || '').toLowerCase();\n let icon;\n\n if ( STATES[key] && STATES[key].icon ) {\n icon = maybeFn.call(this, STATES[key].icon);\n }\n\n if ( !icon ) {\n icon = DEFAULT_ICON;\n }\n\n return `icon icon-${ icon }`;\n }\n\n get stateSort() {\n return stateSort(this.stateColor, this.stateDisplay);\n }\n\n get stateDescription() {\n const trans = this.stateObj?.transitioning || false;\n const error = this.stateObj?.error || false;\n const message = this.stateObj?.message;\n\n return trans || error ? ucFirst(message) : '';\n }\n\n get stateObj() {\n return this.metadata?.state;\n }\n\n // ------------------------------------------------------------------\n\n waitForTestFn(fn, msg, timeoutMs, intervalMs) {\n return waitFor(() => fn.apply(this), msg, timeoutMs || DEFAULT_WAIT_TMIMEOUT, intervalMs || DEFAULT_WAIT_INTERVAL, true);\n }\n\n waitForState(state, timeout, interval) {\n return this.waitForTestFn(() => {\n return (this.state || '').toLowerCase() === state.toLowerCase();\n }, `state=${ state }`, timeout, interval);\n }\n\n waitForTransition() {\n return this.waitForTestFn(() => {\n return !this.transitioning;\n }, 'transition completion', undefined, undefined);\n }\n\n waitForAction(name) {\n return this.waitForTestFn(() => {\n return this.hasAction(name);\n }, `action=${ name }`, undefined, undefined);\n }\n\n waitForLink(name) {\n return this.waitForTestFn(() => {\n return this.hasLink(name);\n }, `link=${ name }`, undefined, undefined);\n }\n\n hasCondition(condition) {\n return this.isCondition(condition, null);\n }\n\n isCondition(condition, withStatus = 'True') {\n if ( !this.status || !this.status.conditions ) {\n return false;\n }\n\n const entry = findBy((this.status.conditions || []), 'type', condition);\n\n if ( !entry ) {\n return false;\n }\n\n if ( !withStatus ) {\n return true;\n }\n\n return (entry.status || '').toLowerCase() === `${ withStatus }`.toLowerCase();\n }\n\n waitForCondition(name, withStatus = 'True', timeoutMs = DEFAULT_WAIT_TMIMEOUT, intervalMs = DEFAULT_WAIT_INTERVAL) {\n return this.waitForTestFn(() => {\n return this.isCondition(name, withStatus);\n }, `condition ${ name }=${ withStatus }`, timeoutMs, intervalMs);\n }\n\n // ------------------------------------------------------------------\n\n get availableActions() {\n const all = this._availableActions;\n\n // Remove disabled items and consecutive dividers\n let last = null;\n const out = all.filter((item) => {\n if ( item.enabled === false ) {\n return false;\n }\n\n const cur = item.divider;\n const ok = !cur || (cur && !last);\n\n last = cur;\n\n return ok;\n });\n\n // Remove dividers at the beginning\n while ( out.length && out[0].divider ) {\n out.shift();\n }\n\n // Remove dividers at the end\n while ( out.length && out[out.length - 1].divider ) {\n out.pop();\n }\n\n // Remove consecutive dividers in the middle\n for ( let i = 1 ; i < out.length ; i++ ) {\n if ( out[i].divider && out[i - 1].divider ) {\n removeAt(out, i, 1);\n i--;\n }\n }\n\n return out;\n }\n\n // You can add custom actions by overriding your own availableActions (and probably reading super._availableActions)\n get _availableActions() {\n // get menu actions available by plugins configuration\n const currentRoute = this.currentRouter().app._route;\n const extensionMenuActions = getApplicableExtensionEnhancements(this.$rootState, ExtensionPoint.ACTION, ActionLocation.TABLE, currentRoute, this);\n\n const all = [\n { divider: true },\n {\n action: this.canUpdate ? 'goToEdit' : 'goToViewConfig',\n label: this.t(this.canUpdate ? 'action.edit' : 'action.view'),\n icon: 'icon icon-edit',\n enabled: this.canCustomEdit,\n },\n {\n action: this.canEditYaml ? 'goToEditYaml' : 'goToViewYaml',\n label: this.t(this.canEditYaml ? 'action.editYaml' : 'action.viewYaml'),\n icon: 'icon icon-file',\n enabled: this.canYaml,\n },\n {\n action: (this.canCustomEdit ? 'goToClone' : 'cloneYaml'),\n label: this.t('action.clone'),\n icon: 'icon icon-copy',\n enabled: this.canClone && this.canCreate && (this.canCustomEdit || this.canYaml),\n },\n { divider: true },\n {\n action: 'download',\n label: this.t('action.download'),\n icon: 'icon icon-download',\n bulkable: true,\n bulkAction: 'downloadBulk',\n enabled: this.canYaml,\n weight: -9,\n },\n {\n action: 'viewInApi',\n label: this.t('action.viewInApi'),\n icon: 'icon icon-external-link',\n enabled: this.canViewInApi,\n },\n {\n action: 'promptRemove',\n altAction: 'remove',\n label: this.t('action.remove'),\n icon: 'icon icon-trash',\n bulkable: true,\n enabled: this.canDelete,\n bulkAction: 'promptRemove',\n weight: -10, // Delete always goes last\n },\n ];\n\n // Extension actions get added to the end, so add a divider if there are any\n if (extensionMenuActions.length) {\n // Add a divider first\n all.push({ divider: true });\n\n extensionMenuActions.forEach((action) => {\n const newActionInstance = { ...action };\n\n const enabledFn = newActionInstance.enabled;\n const typeofEnabled = typeof enabledFn;\n\n switch (typeofEnabled) {\n case 'undefined':\n newActionInstance.enabled = true;\n break;\n case 'function':\n Object.defineProperty(newActionInstance, 'enabled', { get: () => enabledFn(this) });\n break;\n case 'boolean':\n // no op, just use it directly\n break;\n default:\n // unsupported value\n console.warn(`Unsupported 'enabled' property type for action: ${ action.label || action.labelKey }` ); // eslint-disable-line no-console\n delete newActionInstance.enabled;\n break;\n }\n\n all.push(newActionInstance);\n });\n }\n\n return all;\n }\n\n // ------------------------------------------------------------------\n\n get canDelete() {\n return this._canDelete;\n }\n\n get _canDelete() {\n return this.hasLink('remove') && this.$rootGetters['type-map/optionsFor'](this.type).isRemovable;\n }\n\n get canClone() {\n return true;\n }\n\n get canUpdate() {\n return this.hasLink('update') && this.$rootGetters['type-map/optionsFor'](this.type).isEditable;\n }\n\n get canCustomEdit() {\n return this.$rootGetters['type-map/hasCustomEdit'](this.type, this.id);\n }\n\n get canCreate() {\n if ( this.schema && !this.schema?.collectionMethods.find((x) => x.toLowerCase() === 'post') ) {\n return false;\n }\n\n return this.$rootGetters['type-map/optionsFor'](this.type).isCreatable;\n }\n\n get canViewInApi() {\n return this.hasLink('self') && this.$rootGetters['prefs/get'](VIEW_IN_API);\n }\n\n get canYaml() {\n return this.hasLink('view');\n }\n\n get canEditYaml() {\n return this.schema?.resourceMethods?.find((x) => x === 'blocked-PUT') ? false : this.canUpdate;\n }\n\n // ------------------------------------------------------------------\n\n hasLink(linkName) {\n return !!this.linkFor(linkName);\n }\n\n linkFor(linkName) {\n return (this.links || {})[linkName];\n }\n\n followLink(linkName, opt = {}) {\n if ( !opt.url ) {\n opt.url = (this.links || {})[linkName];\n }\n\n if ( opt.urlSuffix ) {\n opt.url += opt.urlSuffix;\n }\n\n if ( !opt.url ) {\n throw new Error(`Unknown link ${ linkName } on ${ this.type } ${ this.id }`);\n }\n\n return this.$dispatch('request', { opt, type: this.type } );\n }\n\n // ------------------------------------------------------------------\n\n hasAction(actionName) {\n return !!this.actionLinkFor(actionName);\n }\n\n actionLinkFor(actionName) {\n return (this.actions || this.actionLinks || {})[actionName];\n }\n\n doAction(actionName, body, opt = {}) {\n return this.$dispatch('resourceAction', {\n resource: this,\n actionName,\n body,\n opt,\n });\n }\n\n async doActionGrowl(actionName, body, opt = {}) {\n try {\n await this.$dispatch('resourceAction', {\n resource: this,\n actionName,\n body,\n opt,\n });\n } catch (err) {\n this.$dispatch('growl/fromError', {\n title: this.$rootGetters['i18n/t']('generic.notification.title.error'),\n err: err.data || err,\n }, { root: true });\n }\n }\n\n // ------------------------------------------------------------------\n\n patch(data, opt = {}, merge = false, alertOnError = false) {\n if ( !opt.url ) {\n // Workaround for the links not being correct - view link is the only one that seems correct\n opt.url = this.linkFor('view') || this.linkFor('self');\n }\n\n opt.method = 'patch';\n opt.headers = opt.headers || {};\n\n if (!opt.headers['content-type']) {\n const contentType = merge ? 'application/strategic-merge-patch+json' : 'application/json-patch+json';\n\n opt.headers['content-type'] = contentType;\n }\n opt.data = data;\n\n const dispatch = this.$dispatch('request', { opt, type: this.type } );\n\n return !alertOnError ? dispatch : dispatch.catch((e) => {\n const title = this.t('resource.errors.update', { name: this.name });\n\n console.error(title, e); // eslint-disable-line no-console\n\n this.$dispatch('growl/error', {\n title,\n message: e?.message,\n timeout: 5000\n }, { root: true });\n });\n }\n\n save() {\n return this._save(...arguments);\n }\n\n /**\n * Remove any unwanted properties from the object that will be saved\n */\n cleanForSave(data, forNew) {\n delete data.__rehydrate;\n delete data.__clone;\n\n return data;\n }\n\n /**\n * Allow to handle the response of the save request\n * @param {*} res Full request response\n */\n processSaveResponse(res) { }\n\n async _save(opt = {}) {\n const forNew = !this.id;\n\n const errors = await this.validationErrors(this, opt.ignoreFields);\n\n if (!isEmpty(errors)) {\n return Promise.reject(errors);\n }\n\n if ( this.metadata?.resourceVersion ) {\n this.metadata.resourceVersion = `${ this.metadata.resourceVersion }`;\n }\n\n if ( !opt.url ) {\n if ( forNew ) {\n const schema = this.$getters['schemaFor'](this.type);\n let url = schema.linkFor('collection');\n\n if ( schema.attributes && schema.attributes.namespaced && this.metadata && this.metadata.namespace ) {\n url += `/${ this.metadata.namespace }`;\n }\n\n opt.url = url;\n } else {\n opt.url = this.linkFor('update') || this.linkFor('self');\n }\n }\n\n if ( !opt.method ) {\n opt.method = ( forNew ? 'post' : 'put' );\n }\n\n if ( !opt.headers ) {\n opt.headers = {};\n }\n\n if ( !opt.headers['content-type'] ) {\n opt.headers['content-type'] = 'application/json';\n }\n\n if ( !opt.headers['accept'] ) {\n opt.headers['accept'] = 'application/json';\n }\n\n // @TODO remove this once the API maps steve _type <-> k8s type in both directions\n opt.data = this.toSave() || { ...this };\n\n if (opt.data._type) {\n opt.data.type = opt.data._type;\n }\n\n if (opt.data._name) {\n opt.data.name = opt.data._name;\n }\n\n if (opt.data._labels) {\n opt.data.labels = opt.data._labels;\n }\n\n if (opt.data._annotations) {\n opt.data.annotations = opt.data._annotations;\n }\n\n opt.data = this.cleanForSave(opt.data, forNew);\n\n // handle \"replace\" opt as a query param _replace=true for norman PUT requests\n if (opt?.replace && opt.method === 'put') {\n const argParam = opt.url.includes('?') ? '&' : '?';\n\n opt.url = `${ opt.url }${ argParam }_replace=true`;\n delete opt.replace;\n }\n\n try {\n const res = await this.$dispatch('request', { opt, type: this.type } );\n\n // Allow to process response independently from the related models\n this.processSaveResponse(res);\n\n // Steve sometimes returns Table responses instead of the resource you just saved.. ignore\n if ( res && res.kind !== 'Table') {\n await this.$dispatch('load', { data: res, existing: (forNew ? this : undefined ) });\n }\n } catch (e) {\n if ( this.type && this.id && e?._status === 409) {\n // If there's a conflict, try to load the new version\n await this.$dispatch('find', {\n type: this.type,\n id: this.id,\n opt: { force: true }\n });\n }\n\n return Promise.reject(e);\n }\n\n return this;\n }\n\n remove() {\n return this._remove(...arguments);\n }\n\n async _remove(opt = {}) {\n if ( !opt.url ) {\n opt.url = this.linkFor('self');\n }\n\n opt.method = 'delete';\n\n const res = await this.$dispatch('request', { opt, type: this.type } );\n\n if ( res?._status === 204 ) {\n // If there's no body, assume the resource was immediately deleted\n // and drop it from the store as if a remove event happened.\n await this.$dispatch('ws.resource.remove', { data: this });\n }\n }\n\n // ------------------------------------------------------------------\n\n currentRoute() {\n return window.$nuxt.$route;\n }\n\n currentRouter() {\n return window.$nuxt.$router;\n }\n\n get listLocation() {\n return {\n name: `c-cluster-product-resource`,\n params: {\n product: this.$rootGetters['productId'],\n cluster: this.$rootGetters['clusterId'],\n resource: this.type,\n }\n };\n }\n\n get _detailLocation() {\n const schema = this.$getters['schemaFor'](this.type);\n\n const id = this.id?.replace(/.*\\//, '');\n\n return {\n name: `c-cluster-product-resource${ schema?.attributes?.namespaced ? '-namespace' : '' }-id`,\n params: {\n product: this.$rootGetters['productId'],\n cluster: this.$rootGetters['clusterId'],\n resource: this.type,\n namespace: this.metadata?.namespace,\n id,\n }\n };\n }\n\n get detailLocation() {\n return this._detailLocation;\n }\n\n goToDetail() {\n this.currentRouter().push(this.detailLocation);\n }\n\n goToClone(moreQuery = {}) {\n const location = this.detailLocation;\n\n location.query = {\n ...location.query,\n [MODE]: _CLONE,\n [AS]: _UNFLAG,\n ...moreQuery\n };\n\n this.currentRouter().push(location);\n }\n\n goToEdit(moreQuery = {}) {\n const location = this.detailLocation;\n\n location.query = {\n ...location.query,\n [MODE]: _EDIT,\n [AS]: _UNFLAG,\n ...moreQuery\n };\n\n this.currentRouter().push(location);\n }\n\n goToViewConfig(moreQuery = {}) {\n const location = this.detailLocation;\n\n location.query = {\n ...location.query,\n [MODE]: _VIEW,\n [AS]: _CONFIG,\n ...moreQuery\n };\n\n this.currentRouter().push(location);\n }\n\n goToEditYaml() {\n const location = this.detailLocation;\n\n location.query = {\n ...location.query,\n [MODE]: _EDIT,\n [AS]: _YAML\n };\n\n this.currentRouter().push(location);\n }\n\n goToViewYaml() {\n const location = this.detailLocation;\n\n location.query = {\n ...location.query,\n [MODE]: _VIEW,\n [AS]: _YAML\n };\n\n this.currentRouter().push(location);\n }\n\n cloneYaml(moreQuery = {}) {\n const location = this.detailLocation;\n\n location.query = {\n ...location.query,\n [MODE]: _CLONE,\n [AS]: _YAML,\n ...moreQuery\n };\n\n this.currentRouter().push(location);\n }\n\n async download() {\n const value = await this.followLink('view', { headers: { accept: 'application/yaml' } });\n const data = await this.cleanForDownload(value.data);\n\n downloadFile(`${ this.nameDisplay }.yaml`, data, 'application/yaml');\n }\n\n async downloadBulk(items) {\n const files = {};\n const names = [];\n\n for ( const item of items ) {\n let name = `${ item.nameDisplay }.yaml`;\n let i = 2;\n\n while ( names.includes(name) ) {\n name = `${ item.nameDisplay }_${ i++ }.yaml`;\n }\n\n names.push(name);\n }\n\n await eachLimit(items, 10, (item, idx) => {\n return item.followLink('view', { headers: { accept: 'application/yaml' } } ).then(async(data) => {\n const yaml = data.data || data;\n const cleanedYaml = await this.cleanForDownload(yaml);\n\n files[`resources/${ names[idx] }`] = cleanedYaml;\n });\n });\n\n const zip = await generateZip(files);\n\n downloadFile('resources.zip', zip, 'application/zip');\n }\n\n viewInApi() {\n window.open(this.links.self, '_blank');\n }\n\n promptRemove(resources) {\n if ( !resources ) {\n resources = this;\n }\n\n this.$dispatch('promptRemove', resources);\n }\n\n get confirmRemove() {\n return false;\n }\n\n applyDefaults() {\n }\n\n get urlFromAttrs() {\n const schema = this.$getters['schemaFor'](this.type);\n const { metadata:{ namespace = 'default' } } = this;\n let url = schema.links.collection;\n\n const attributes = schema?.attributes;\n\n if (!attributes) {\n throw new Error('Attributes must be present on the schema');\n }\n const { group, resource } = attributes;\n\n url = `${ url.slice(0, url.indexOf('/v1')) }/apis/${ group }/namespaces/${ namespace }/${ resource }`;\n\n return url;\n }\n\n // convert yaml to object, clean for new if creating/cloning\n // map _type to type\n cleanYaml(yaml, mode = 'edit') {\n try {\n const obj = jsyaml.load(yaml);\n\n if (mode !== 'edit') {\n this.$dispatch(`cleanForNew`, obj);\n }\n\n if (obj._type) {\n obj.type = obj._type;\n delete obj._type;\n }\n const out = jsyaml.dump(obj, { skipInvalid: true });\n\n return out;\n } catch (e) {\n return null;\n }\n }\n\n cleanForNew() {\n this.$dispatch(`cleanForNew`, this);\n }\n\n cleanForDiff() {\n this.$dispatch(`cleanForDiff`, this.toJSON());\n }\n\n async cleanForDownload(yaml) {\n return this.$dispatch(`cleanForDownload`, yaml);\n }\n\n yamlForSave(yaml) {\n try {\n const obj = jsyaml.load(yaml);\n\n if (obj) {\n if (this._type) {\n obj._type = obj.type;\n }\n\n return jsyaml.dump(obj);\n }\n } catch (e) {\n return null;\n }\n }\n\n async saveYaml(yaml) {\n await this._saveYaml(yaml);\n }\n\n async _saveYaml(yaml) {\n /* Multipart support, but need to know the right cluster and work for management store\n and \"apply\" seems to only work for create, not update.\n\n const ary = jsyaml.loadAll(yaml); // will throw on invalid yaml, and return one or more documents (usually one)\n\n if ( ary.length > 1 ) {\n await this.$rootGetters['currentCluster'].doAction('apply', {\n yaml,\n defaultNamespace: this.metadata.namespace,\n });\n }\n\n const parsed = ary[0];\n */\n\n const parsed = jsyaml.load(yaml); // will throw on invalid yaml, and return one or more documents (usually one)\n\n if ( this.schema?.attributes?.namespaced && !parsed.metadata.namespace ) {\n const err = this.$rootGetters['i18n/t']('resourceYaml.errors.namespaceRequired');\n\n throw err;\n }\n\n let res;\n const isCreate = !this.id;\n const headers = {\n 'content-type': 'application/yaml',\n accept: 'application/json',\n };\n\n if ( isCreate ) {\n res = await this.schema.followLink('collection', {\n method: 'POST',\n headers,\n data: yaml\n });\n } else {\n res = await this.followLink('update', {\n method: 'PUT',\n headers,\n data: yaml\n });\n }\n\n await this.$dispatch(`load`, {\n data: res,\n existing: (isCreate ? this : undefined)\n });\n\n if (this.isSpoofed) {\n await this.$dispatch('cluster/findAll', { type: this.type, opt: { force: true } }, { root: true });\n }\n }\n\n get modelValidationRules() {\n const rules = [];\n\n const customValidationRulesets = this?.customValidationRules\n .filter((rule) => !!rule.validators || !!rule.required)\n .map((rule) => {\n const formRules = formRulesGenerator(this.t, { displayKey: rule?.translationKey ? this.t(rule.translationKey) : 'Value' });\n\n return {\n path: rule.path,\n rules: [\n ...(rule.validators || []),\n ...rule.required ? ['required'] : [],\n ...['dnsLabel', 'dnsLabelRestricted', 'hostname'].includes(rule.type) ? [rule.type] : []\n ]\n .map((rule) => {\n if (rule.includes(':')) {\n const [ruleKey, ruleArg] = rule.split(':');\n\n return formRules[ruleKey](ruleArg);\n }\n\n return formRules[rule];\n }\n )\n .filter((rule) => !!rule)\n };\n })\n .filter((ruleset) => ruleset.rules.length > 0);\n\n rules.push(...customValidationRulesets);\n\n return rules;\n }\n\n customValidationErrors(data, ignorePaths = []) {\n const errors = [];\n\n let { customValidationRules } = this;\n\n if (!isEmpty(customValidationRules)) {\n if (isFunction(customValidationRules)) {\n customValidationRules = customValidationRules();\n }\n\n customValidationRules.filter((rule) => !ignorePaths.includes(rule.path)).forEach((rule) => {\n const {\n path,\n requiredIf: requiredIfPath,\n validators = [],\n type: fieldType,\n } = rule;\n let pathValue = get(data, path);\n\n const parsedRules = compact((validators || []));\n let displayKey = path;\n\n if (rule.translationKey && this.$rootGetters['i18n/exists'](rule.translationKey)) {\n displayKey = this.t(rule.translationKey);\n }\n\n if (isString(pathValue)) {\n pathValue = pathValue.trim();\n }\n if (requiredIfPath) {\n const reqIfVal = get(data, requiredIfPath);\n\n if (!isEmpty(reqIfVal) && (isEmpty(pathValue) && pathValue !== 0)) {\n errors.push(this.t('validation.required', { key: displayKey }));\n }\n }\n\n validateLength(pathValue, rule, displayKey, this.$rootGetters, errors);\n validateChars(pathValue, rule, displayKey, this.$rootGetters, errors);\n\n if ( !isEmpty(pathValue) && DNS_LIKE_TYPES.includes(fieldType) ) {\n // DNS types should be lowercase\n const tolower = (pathValue || '').toLowerCase();\n\n if ( tolower !== pathValue ) {\n pathValue = tolower;\n\n Vue.set(data, path, pathValue);\n }\n\n errors.push(...validateDnsLikeTypes(pathValue, fieldType, displayKey, this.$rootGetters, errors));\n }\n\n parsedRules.forEach((validator) => {\n const validatorAndArgs = validator.split(':');\n const validatorName = validatorAndArgs.slice(0, 1);\n const validatorArgs = validatorAndArgs.slice(1) || null;\n const validatorExists = Object.prototype.hasOwnProperty.call(CustomValidators, validatorName);\n\n if (!isEmpty(validatorName) && validatorExists) {\n CustomValidators[validatorName](pathValue, this.$rootGetters, errors, validatorArgs, displayKey, data);\n } else if (!isEmpty(validatorName) && !validatorExists) {\n // Check if validator is imported from plugin\n const pluginValidator = this.$rootState.$plugin?.getValidator(validatorName);\n\n if (pluginValidator) {\n pluginValidator(pathValue, this.$rootGetters, errors, validatorArgs, displayKey, data);\n } else {\n // eslint-disable-next-line\n console.warn(this.t('validation.custom.missing', { validatorName }));\n }\n }\n });\n });\n }\n\n return errors;\n }\n\n validationErrors(data = this, ignoreFields) {\n const errors = [];\n const {\n type: originalType,\n schema\n } = data;\n const type = normalizeType(originalType);\n\n if ( !originalType ) {\n // eslint-disable-next-line\n console.warn(this.t('validation.noType'), data);\n\n return errors;\n }\n\n if ( !schema ) {\n // eslint-disable-next-line\n // console.warn(this.t('validation.noSchema'), originalType, data);\n\n return errors;\n }\n\n const fields = schema.resourceFields || {};\n const keys = Object.keys(fields);\n let field, key, val, displayKey;\n\n for ( let i = 0 ; i < keys.length ; i++ ) {\n const fieldErrors = [];\n\n key = keys[i];\n field = fields[key];\n val = get(data, key);\n displayKey = displayKeyFor(type, key, this.$rootGetters);\n\n const fieldType = field?.type ? normalizeType(field.type) : null;\n const valIsString = isString(val);\n\n if ( ignoreFields && ignoreFields.includes(key) ) {\n continue;\n }\n\n if ( val === undefined ) {\n val = null;\n }\n\n if (valIsString) {\n if (fieldType) {\n Vue.set(data, key, coerceStringTypeToScalarType(val, fieldType));\n }\n\n // Empty strings on nullable string fields -> null\n if ( field.nullable && val.length === 0 && STRING_LIKE_TYPES.includes(fieldType)) {\n val = null;\n\n Vue.set(data, key, val);\n }\n }\n if (fieldType === 'boolean') {\n validateBoolean(val, field, displayKey, this.$rootGetters, fieldErrors);\n } else {\n validateLength(val, field, displayKey, this.$rootGetters, fieldErrors);\n validateChars(val, field, displayKey, this.$rootGetters, fieldErrors);\n }\n\n if (fieldErrors.length > 0) {\n fieldErrors.push(this.t('validation.required', { key: displayKey }));\n errors.push(...fieldErrors);\n continue;\n }\n\n // IDs claim to be these but are lies...\n if ( key !== 'id' && !isEmpty(val) && DNS_LIKE_TYPES.includes(fieldType) ) {\n // DNS types should be lowercase\n const tolower = (val || '').toLowerCase();\n\n if ( tolower !== val ) {\n val = tolower;\n\n Vue.set(data, key, val);\n }\n\n fieldErrors.push(...validateDnsLikeTypes(val, fieldType, displayKey, this.$rootGetters, fieldErrors));\n }\n errors.push(...fieldErrors);\n }\n\n return uniq([...errors, ...this.customValidationErrors(data)]);\n }\n\n get ownersByType() {\n const ownerReferences = this.metadata?.ownerReferences || [];\n const ownersByType = {};\n\n ownerReferences.forEach((owner) => {\n if (!ownersByType[owner.kind]) {\n ownersByType[owner.kind] = [owner];\n } else {\n ownersByType[owner.kind].push(owner);\n }\n });\n\n return ownersByType;\n }\n\n get owners() {\n const owners = [];\n\n for ( const kind in this.ownersByType) {\n const schema = this.$rootGetters['cluster/schema'](kind);\n\n if (schema) {\n const type = schema.id;\n const allOfResourceType = this.$rootGetters['cluster/all']( type );\n\n this.ownersByType[kind].forEach((resource, idx) => {\n const resourceInstance = allOfResourceType.find((resourceByType) => resourceByType?.metadata?.uid === resource.uid);\n\n if (resourceInstance) {\n owners.push(resourceInstance);\n }\n });\n }\n }\n\n return owners;\n }\n\n get details() {\n return this._details;\n }\n\n get _details() {\n const details = [];\n\n if (this.owners?.length > 0) {\n details.push({\n label: this.t('resourceDetail.detailTop.ownerReferences', { count: this.owners.length }),\n formatter: 'ListLinkDetail',\n content: this.owners.map((owner) => ({\n key: owner.id,\n row: owner,\n col: {},\n value: owner.metadata.name\n }))\n });\n }\n\n if (get(this, 'metadata.deletionTimestamp')) {\n details.push({\n label: this.t('resourceDetail.detailTop.deleted'),\n formatter: 'LiveDate',\n formatterOpts: { addSuffix: true },\n content: get(this, 'metadata.deletionTimestamp')\n });\n }\n\n return details;\n }\n\n get t() {\n return this.$rootGetters['i18n/t'];\n }\n\n // Returns array of MODELS that own this resource (async, network call)\n findOwners() {\n return this._getRelationship('owner', 'from');\n }\n\n // Returns array of {type, namespace, id} objects that own this resource (sync)\n getOwners() {\n return this._getRelationship('owner', 'from');\n }\n\n findOwned() {\n return this._findRelationship('owner', 'to');\n }\n\n _relationshipsFor(rel, direction) {\n const out = { selectors: [], ids: [] };\n\n if ( !this.metadata?.relationships?.length ) {\n return out;\n }\n\n for ( const r of this.metadata.relationships ) {\n if ( rel !== 'any' && r.rel !== rel ) {\n continue;\n }\n\n if ( !r[`${ direction }Type`] ) {\n continue;\n }\n\n if ( r.selector ) {\n addObjects(out.selectors, {\n type: r.toType,\n namespace: r.toNamespace,\n selector: r.selector\n });\n } else {\n const type = r[`${ direction }Type`];\n let namespace = r[`${ direction }Namespace`];\n let name = r[`${ direction }Id`];\n\n if ( !namespace && name.includes('/') ) {\n const idx = name.indexOf('/');\n\n namespace = name.substr(0, idx);\n name = name.substr(idx + 1);\n }\n\n const id = (namespace ? `${ namespace }/` : '') + name;\n\n addObject(out.ids, {\n type,\n namespace,\n name,\n id,\n });\n }\n }\n\n return out;\n }\n\n _getRelationship(rel, direction) {\n const res = this._relationshipsFor(rel, direction);\n\n if ( res.selectors?.length ) {\n // eslint-disable-next-line no-console\n console.warn('Sync request for a relationship that is a selector');\n }\n\n return res.ids || [];\n }\n\n async _findRelationship(rel, direction) {\n const { selectors, ids } = this._relationshipsFor(rel, direction);\n const out = [];\n\n for ( const sel of selectors ) {\n const matching = await this.$dispatch('findMatching', sel);\n\n addObjects(out, matching.data);\n }\n\n for ( const obj of ids ) {\n const { type, id } = obj;\n let matching = this.$getters['byId'](type, id);\n\n if ( !matching ) {\n try {\n matching = await this.$dispatch('find', { type, id });\n } catch {\n }\n }\n if (matching) {\n addObject(out, matching);\n }\n }\n\n return out;\n }\n\n get shortId() {\n const splitId = this.id.split('/');\n\n return splitId.length > 1 ? splitId[1] : splitId[0];\n }\n\n toJSON() {\n const out = {};\n const keys = Object.keys(this);\n\n for ( const k of keys ) {\n if ( this[k]?.toJSON ) {\n out[k] = this[k].toJSON();\n } else {\n out[k] = clone(this[k]);\n }\n }\n\n return out;\n }\n\n /**\n * Allow models to override the object that is sent when saving this resource\n */\n toSave() {\n return undefined;\n }\n\n get creationTimestamp() {\n return this.metadata?.creationTimestamp;\n }\n\n /**\n * Allows model to specify JSON Paths that should be folded in the YAML editor by default\n */\n get yamlFolding() {\n return [];\n }\n}\n","import { ANNOTATIONS_TO_IGNORE_REGEX, LABELS_TO_IGNORE_REGEX } from '@shell/config/labels-annotations';\nimport omitBy from 'lodash/omitBy';\nimport pickBy from 'lodash/pickBy';\nimport Vue from 'vue';\nimport { matchesSomeRegex } from '@shell/utils/string';\nimport Resource from '@shell/plugins/dashboard-store/resource-class';\n\n// these are defined elsewhere in Steve models and will cause the error \"Cannot set property of [object Object] which has only a getter\" if defined at top-level\nexport function cleanHybridResources(data) {\n const potentialNormanHoldovers = ['state', 'name', 'description', 'labels', 'annotations'];\n\n potentialNormanHoldovers.forEach((key) => delete data[key]);\n\n return data;\n}\n\nexport default class HybridModel extends Resource {\n constructor(data, ctx, rehydrateNamespace = null, setClone = false) {\n const cleanedData = cleanHybridResources(data);\n\n super(cleanedData, ctx, rehydrateNamespace, setClone);\n }\n\n get labels() {\n const all = this.metadata?.labels || {};\n\n return omitBy(all, (value, key) => {\n return matchesSomeRegex(key, LABELS_TO_IGNORE_REGEX);\n });\n }\n\n setLabels(val) {\n if ( !this.metadata ) {\n this.metadata = {};\n }\n\n const all = this.metadata.labels || {};\n const wasIgnored = pickBy(all, (value, key) => {\n return matchesSomeRegex(key, LABELS_TO_IGNORE_REGEX);\n });\n\n Vue.set(this.metadata, 'labels', { ...wasIgnored, ...val });\n }\n\n setLabel(key, val) {\n if ( val ) {\n if ( !this.metadata ) {\n this.metadata = {};\n }\n\n if ( !this.metadata.labels ) {\n this.metadata.labels = {};\n }\n\n Vue.set(this.metadata.labels, key, val);\n } else if ( this.metadata?.labels ) {\n Vue.set(this.metadata.labels, key, undefined);\n delete this.metadata.labels[key];\n }\n }\n\n get annotations() {\n const all = this.metadata?.annotations || {};\n\n return omitBy(all, (value, key) => {\n return matchesSomeRegex(key, ANNOTATIONS_TO_IGNORE_REGEX);\n });\n }\n\n setAnnotations(val) {\n if ( !this.metadata ) {\n this.metadata = {};\n }\n\n const all = this.metadata.annotations || {};\n const wasIgnored = pickBy(all, (value, key) => {\n return matchesSomeRegex(key, ANNOTATIONS_TO_IGNORE_REGEX);\n });\n\n Vue.set(this.metadata, 'annotations', { ...wasIgnored, ...val });\n }\n\n setAnnotation(key, val) {\n if ( val ) {\n if ( !this.metadata ) {\n this.metadata = {};\n }\n\n if ( !this.metadata.annotations ) {\n this.metadata.annotations = {};\n }\n\n Vue.set(this.metadata.annotations, key, val);\n } else if ( this.metadata?.annotations ) {\n Vue.set(this.metadata.annotations, key, undefined);\n delete this.metadata.annotations[key];\n }\n }\n\n get state() {\n return this.stateObj?.name || 'unknown';\n }\n}\n","import { DESCRIPTION } from '@shell/config/labels-annotations';\nimport HybridModel from './hybrid-class';\nimport { NEVER_ADD } from '@shell/utils/create-yaml';\nimport { deleteProperty } from '@shell/utils/object';\n\n// Some fields that are removed for YAML (NEVER_ADD) are required via API\nconst STEVE_ADD = [\n 'metadata.resourceVersion',\n 'metadata.fields',\n 'metadata.clusterName',\n 'metadata.deletionGracePeriodSeconds',\n 'metadata.generateName',\n];\nconst STEVE_NEVER_SAVE = NEVER_ADD.filter((na) => !STEVE_ADD.includes(na));\n\nexport default class SteveModel extends HybridModel {\n get name() {\n return this.metadata?.name || this._name;\n }\n\n get namespace() {\n return this.metadata?.namespace;\n }\n\n get description() {\n return this.metadata?.annotations?.[DESCRIPTION] || this.spec?.description || this._description;\n }\n\n /**\n * Set description based on the type of model available with private fallback\n */\n set description(value) {\n if (this.metadata?.annotations) {\n this.metadata.annotations[DESCRIPTION] = value;\n }\n\n if (this.spec) {\n this.spec.description = value;\n }\n\n this._description = value;\n }\n\n cleanForSave(data, forNew) {\n const val = super.cleanForSave(data);\n\n for (const field of STEVE_NEVER_SAVE) {\n deleteProperty(val, field);\n }\n\n return val;\n }\n}\n","export { default as Banner } from './Banner.vue';\n","var baseFor = require('./_baseFor'),\n castFunction = require('./_castFunction'),\n keysIn = require('./keysIn');\n\n/**\n * Iterates over own and inherited enumerable string keyed properties of an\n * object and invokes `iteratee` for each property. The iteratee is invoked\n * with three arguments: (value, key, object). Iteratee functions may exit\n * iteration early by explicitly returning `false`.\n *\n * @static\n * @memberOf _\n * @since 0.3.0\n * @category Object\n * @param {Object} object The object to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Object} Returns `object`.\n * @see _.forInRight\n * @example\n *\n * function Foo() {\n * this.a = 1;\n * this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.forIn(new Foo, function(value, key) {\n * console.log(key);\n * });\n * // => Logs 'a', 'b', then 'c' (iteration order is not guaranteed).\n */\nfunction forIn(object, iteratee) {\n return object == null\n ? object\n : baseFor(object, castFunction(iteratee), keysIn);\n}\n\nmodule.exports = forIn;\n","var SetCache = require('./_SetCache'),\n arraySome = require('./_arraySome'),\n cacheHas = require('./_cacheHas');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\nfunction equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n arrLength = array.length,\n othLength = other.length;\n\n if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n return false;\n }\n // Check that cyclic values are equal.\n var arrStacked = stack.get(array);\n var othStacked = stack.get(other);\n if (arrStacked && othStacked) {\n return arrStacked == other && othStacked == array;\n }\n var index = -1,\n result = true,\n seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\n\n stack.set(array, other);\n stack.set(other, array);\n\n // Ignore non-index properties.\n while (++index < arrLength) {\n var arrValue = array[index],\n othValue = other[index];\n\n if (customizer) {\n var compared = isPartial\n ? customizer(othValue, arrValue, index, other, array, stack)\n : customizer(arrValue, othValue, index, array, other, stack);\n }\n if (compared !== undefined) {\n if (compared) {\n continue;\n }\n result = false;\n break;\n }\n // Recursively compare arrays (susceptible to call stack limits).\n if (seen) {\n if (!arraySome(other, function(othValue, othIndex) {\n if (!cacheHas(seen, othIndex) &&\n (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n return seen.push(othIndex);\n }\n })) {\n result = false;\n break;\n }\n } else if (!(\n arrValue === othValue ||\n equalFunc(arrValue, othValue, bitmask, customizer, stack)\n )) {\n result = false;\n break;\n }\n }\n stack['delete'](array);\n stack['delete'](other);\n return result;\n}\n\nmodule.exports = equalArrays;\n","var Stack = require('./_Stack'),\n baseIsEqual = require('./_baseIsEqual');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.isMatch` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Array} matchData The property names, values, and compare flags to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n */\nfunction baseIsMatch(object, source, matchData, customizer) {\n var index = matchData.length,\n length = index,\n noCustomizer = !customizer;\n\n if (object == null) {\n return !length;\n }\n object = Object(object);\n while (index--) {\n var data = matchData[index];\n if ((noCustomizer && data[2])\n ? data[1] !== object[data[0]]\n : !(data[0] in object)\n ) {\n return false;\n }\n }\n while (++index < length) {\n data = matchData[index];\n var key = data[0],\n objValue = object[key],\n srcValue = data[1];\n\n if (noCustomizer && data[2]) {\n if (objValue === undefined && !(key in object)) {\n return false;\n }\n } else {\n var stack = new Stack;\n if (customizer) {\n var result = customizer(objValue, srcValue, key, object, source, stack);\n }\n if (!(result === undefined\n ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)\n : result\n )) {\n return false;\n }\n }\n }\n return true;\n}\n\nmodule.exports = baseIsMatch;\n","import SteveModel from '@shell/plugins/steve/steve-class';\nimport { CAPI } from '@shell/config/types';\nimport { BLANK_CLUSTER, QUERY_PARAMS } from '../types/capi';\n\nexport default class ClusterClass extends SteveModel {\n get _availableActions() {\n const out = super._availableActions;\n\n out.unshift({\n action: 'goToCreateCluster',\n label: this.t('action.createCluster'),\n icon: 'icon icon-plus',\n enabled: true\n });\n\n return out;\n }\n\n goToCreateCluster() {\n const escapedID = escape(this.id);\n const location = {\n name: 'c-cluster-product-resource-create',\n params: {\n cluster: BLANK_CLUSTER,\n product: 'manager',\n resource: CAPI.CAPI_CLUSTER\n },\n query: { [QUERY_PARAMS.CLASS]: escapedID }\n };\n\n this.currentRouter().push(location);\n }\n}\n","export type GC_PREFERENCES = {\n enabled: boolean,\n enabledInterval: boolean,\n interval: number,\n enabledOnNavigate: boolean,\n ageThreshold: number,\n countThreshold: number\n}\n\nexport const GC_DEFAULTS: GC_PREFERENCES = {\n enabled: false,\n\n // When GC Runs\n enabledInterval: true,\n interval: 1 * 60 * 5,\n enabledOnNavigate: true,\n\n // How GC handles resources when GC'ing\n ageThreshold: 1 * 60 * 2,\n countThreshold: 500,\n};\n","/**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\nfunction mapToArray(map) {\n var index = -1,\n result = Array(map.size);\n\n map.forEach(function(value, key) {\n result[++index] = [key, value];\n });\n return result;\n}\n\nmodule.exports = mapToArray;\n","module.exports = function(module) {\n\tif (!module.webpackPolyfill) {\n\t\tmodule.deprecate = function() {};\n\t\tmodule.paths = [];\n\t\t// module.parent = undefined by default\n\t\tif (!module.children) module.children = [];\n\t\tObject.defineProperty(module, \"loaded\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.l;\n\t\t\t}\n\t\t});\n\t\tObject.defineProperty(module, \"id\", {\n\t\t\tenumerable: true,\n\t\t\tget: function() {\n\t\t\t\treturn module.i;\n\t\t\t}\n\t\t});\n\t\tmodule.webpackPolyfill = 1;\n\t}\n\treturn module;\n};\n","var baseAssignValue = require('./_baseAssignValue'),\n eq = require('./eq');\n\n/**\n * This function is like `assignValue` except that it doesn't assign\n * `undefined` values.\n *\n * @private\n * @param {Object} object The object to modify.\n * @param {string} key The key of the property to assign.\n * @param {*} value The value to assign.\n */\nfunction assignMergeValue(object, key, value) {\n if ((value !== undefined && !eq(object[key], value)) ||\n (value === undefined && !(key in object))) {\n baseAssignValue(object, key, value);\n }\n}\n\nmodule.exports = assignMergeValue;\n","// style-loader: Adds some css to the DOM by adding a \n","import mod from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./management.cattle.io.globalrole.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./management.cattle.io.globalrole.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./management.cattle.io.globalrole.vue?vue&type=template&id=effd72b0&scoped=true&\"\nimport script from \"./management.cattle.io.globalrole.vue?vue&type=script&lang=js&\"\nexport * from \"./management.cattle.io.globalrole.vue?vue&type=script&lang=js&\"\nimport style0 from \"./management.cattle.io.globalrole.vue?vue&type=style&index=0&id=effd72b0&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"effd72b0\",\n null\n \n)\n\nexport default component.exports","/**\n * Creates a function that returns `value`.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {*} value The value to return from the new function.\n * @returns {Function} Returns the new constant function.\n * @example\n *\n * var objects = _.times(2, _.constant({ 'a': 1 }));\n *\n * console.log(objects);\n * // => [{ 'a': 1 }, { 'a': 1 }]\n *\n * console.log(objects[0] === objects[1]);\n * // => true\n */\nfunction constant(value) {\n return function() {\n return value;\n };\n}\n\nmodule.exports = constant;\n","export * from \"-!../../../vue-style-loader/index.js??ref--10-oneOf-1-0!../../../@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../@vue/cli-service/node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../postcss-loader/src/index.js??ref--10-oneOf-1-3!../../../sass-loader/dist/cjs.js??ref--10-oneOf-1-4!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./ActionDropdown.vue?vue&type=style&index=0&id=70f0de36&prod&lang=scss&\"","var getMapData = require('./_getMapData');\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n return getMapData(this, key).get(key);\n}\n\nmodule.exports = mapCacheGet;\n","var getMapData = require('./_getMapData');\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n var data = getMapData(this, key),\n size = data.size;\n\n data.set(key, value);\n this.size += data.size == size ? 0 : 1;\n return this;\n}\n\nmodule.exports = mapCacheSet;\n","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n","var g;\n\n// This works in non-strict mode\ng = (function() {\n\treturn this;\n})();\n\ntry {\n\t// This works if eval is allowed (see CSP)\n\tg = g || new Function(\"return this\")();\n} catch (e) {\n\t// This works if the window reference is available\n\tif (typeof window === \"object\") g = window;\n}\n\n// g can still be undefined, but nothing to do about it...\n// We return undefined, instead of nothing here, so it's\n// easier to handle this case. if(!global) { ...}\n\nmodule.exports = g;\n","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".table-options-group .table-options-btn.role-multi-action[data-v-36bf3081]{background-color:transparent;border:none;font-size:18px}.table-options-group .table-options-btn.role-multi-action[data-v-36bf3081]:focus,.table-options-group .table-options-btn.role-multi-action[data-v-36bf3081]:hover{background-color:var(--accent-btn);box-shadow:none}.table-options-group .table-options-container[data-v-36bf3081]{width:350px;border:1px solid var(--primary);background-color:var(--body-bg);padding:20px;z-index:1}.table-options-group .table-options-container .table-options-grouping[data-v-36bf3081]{display:flex;align-items:center;margin-bottom:20px}.table-options-group .table-options-container .table-options-grouping span[data-v-36bf3081]{white-space:nowrap;margin-right:10px}.table-options-group .table-options-container ul[data-v-36bf3081]{list-style:none;margin:0;padding:0;max-height:200px;overflow-y:auto}.table-options-group .table-options-container ul li[data-v-36bf3081]{margin:0;padding:0}.table-options-group .table-options-container ul li.visible[data-v-36bf3081]{margin:0 0 10px 0}.sortable>SPAN[data-v-36bf3081]{cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;white-space:nowrap}.sortable>SPAN[data-v-36bf3081]:active,.sortable>SPAN[data-v-36bf3081]:hover{text-decoration:underline;color:var(--body-text)}thead tr[data-v-36bf3081]{background-color:var(--sortable-table-header-bg);color:var(--body-text);text-align:left}thead tr[data-v-36bf3081]:not(.loading){border-bottom:1px solid var(--sortable-table-top-divider)}th[data-v-36bf3081]{padding:8px 5px;font-weight:400;border:0;color:var(--body-text)}th .table-header-container[data-v-36bf3081]{display:inherit}th .table-header-container>span[data-v-36bf3081]{display:flex;align-items:center}th .table-header-container.not-filterable[data-v-36bf3081],th .table-header-container.not-filterable .icon-stack[data-v-36bf3081]{margin-top:-2px}th .table-header-container .not-filter-icon[data-v-36bf3081]{font-size:16px;color:var(--primary);vertical-align:super}th[data-v-36bf3081]:first-child{padding-left:10px}th[data-v-36bf3081]:last-child{padding-right:10px}th:not(.sortable)>SPAN[data-v-36bf3081]{display:block;margin-bottom:2px}th A[data-v-36bf3081]{color:var(--body-text)}@media only screen and (max-width:480px){th.desktop[data-v-36bf3081],th.laptop[data-v-36bf3081],th.tablet[data-v-36bf3081]{display:none}}@media only screen and (max-width:992px){th.desktop[data-v-36bf3081],th.laptop[data-v-36bf3081]{display:none}}@media only screen and (max-width:1281px){th.desktop[data-v-36bf3081]{display:none}}.icon-stack[data-v-36bf3081]{width:12px}.icon-sort.faded[data-v-36bf3081]{opacity:.3}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".filter-select .vs__selected-options .vs__selected{text-align:left}.sortable-table{border-collapse:collapse;min-width:400px;border-radius:5px 5px 0 0;outline:1px solid var(--border);overflow:hidden;background:var(--sortable-table-bg);border-radius:4px}.sortable-table.overflow-x{overflow-x:visible}.sortable-table.overflow-y{overflow-y:visible}.sortable-table td{padding:8px 5px;border:0}.sortable-table td:first-child{padding-left:10px}.sortable-table td:last-child{padding-right:10px}.sortable-table td.row-check{padding-top:12px}.sortable-table tbody tr{border-bottom:1px solid var(--sortable-table-top-divider);background-color:var(--sortable-table-row-bg)}.sortable-table tbody tr.main-row.has-sub-row{border-bottom:0}.sortable-table tbody tr.main-row:not(.row-selected):hover+.sub-row{background-color:var(--sortable-table-hover-bg)}.sortable-table tbody tr:last-of-type{border-bottom:0}.sortable-table tbody tr.sub-row-hovered,.sortable-table tbody tr:hover{background-color:var(--sortable-table-hover-bg)}.sortable-table tbody tr.state-description>td{font-size:13px;padding-top:0;overflow-wrap:anywhere}.sortable-table tbody tr.active-row{color:var(--sortable-table-header-bg)}.sortable-table tbody tr.row-selected{background:var(--sortable-table-selected-bg)}.sortable-table tbody .no-rows td{padding:30px 0;text-align:center}.sortable-table tbody .no-results:hover,.sortable-table tbody .no-rows:hover{background-color:var(--body-bg)}.sortable-table tbody.group:before{content:\\\"\\\";display:block;height:20px;background-color:transparent}.sortable-table tbody tr.group-row{background-color:initial}.sortable-table tbody tr.group-row:first-child{border-bottom:2px solid var(--sortable-table-row-bg)}.sortable-table tbody tr.group-row:not(:first-child){margin-top:20px}.sortable-table tbody tr.group-row td{padding:0}.sortable-table tbody tr.group-row td:first-of-type{border-left:1px solid var(--sortable-table-accent-bg)}.sortable-table tbody tr.group-row .group-tab{height:40px;line-height:40px;padding:0 10px;border-radius:4px 4px 0 0;background-color:var(--sortable-table-row-bg);position:relative;top:1px;display:inline-block;z-index:10;min-width:72px}.sortable-table tbody tr.group-row .group-tab:after,.sortable-table tbody tr.group-row .group-tab:before{content:\\\" \\\";display:table}.sortable-table tbody tr.group-row .group-tab:after{clear:both}.sortable-table tbody tr.group-row .group-tab>SPAN{color:var(--sortable-table-group-label)}.sortable-table tbody tr.group-row .group-tab:after{height:40px;width:70px;border-radius:5px 5px 0 0;background-color:var(--sortable-table-row-bg);content:\\\"\\\";position:absolute;right:-15px;top:0;transform:skewX(40deg);z-index:-1}.for-inputs TABLE.sortable-table{width:100%;border-collapse:collapse;margin-bottom:10px}.for-inputs TABLE.sortable-table>TBODY>TR>TD,.for-inputs TABLE.sortable-table>THEAD>TR>TH{padding-right:10px;padding-bottom:10px}.for-inputs TABLE.sortable-table>TBODY>TR>TD:last-of-type,.for-inputs TABLE.sortable-table>THEAD>TR>TH:last-of-type{padding-right:0}.for-inputs TABLE.sortable-table>TBODY>TR:first-of-type>TD{padding-top:10px}.for-inputs TABLE.sortable-table>TBODY>TR:last-of-type>TD{padding-bottom:0}.for-inputs.clone TABLE.sortable-table>THEAD>TR>TH,.for-inputs.create TABLE.sortable-table>THEAD>TR>TH,.for-inputs.edit TABLE.sortable-table>THEAD>TR>TH{border-color:transparent}.sortable-table-header{position:relative;z-index:11}.sortable-table-header.titled{display:flex;align-items:center}.fixed-header-actions.button{grid-template-columns:[bulk] auto [middle] min-content [search] minmax(min-content,350px)}.fixed-header-actions{padding:0 0 20px 0;width:100%;z-index:11;background:transparent;display:grid;grid-template-columns:[bulk] auto [middle] min-content [search] minmax(min-content,200px);grid-column-gap:10px}.fixed-header-actions.advanced-filtering{grid-template-columns:[bulk] auto [middle] minmax(min-content,auto) [search] minmax(min-content,auto)}.fixed-header-actions .bulk{grid-area:bulk}.fixed-header-actions .bulk>BUTTON{display:none}.fixed-header-actions .bulk>BUTTON:not(:last-of-type){margin-right:10px}.fixed-header-actions .bulk .action-availability{display:none;margin-left:10px;vertical-align:middle;margin-top:2px}.fixed-header-actions .bulk .dropdown-button li.disabled{color:var(--disabled-text);cursor:not-allowed}.fixed-header-actions .bulk .dropdown-button li.disabled:hover{color:var(--disabled-text);background-color:unset;cursor:not-allowed}.fixed-header-actions .bulk .bulk-action .icon{vertical-align:-10%}.fixed-header-actions .middle{grid-area:middle;white-space:nowrap}.fixed-header-actions .middle .icon.icon-backup.animate{animation-name:spin;animation-duration:1s;animation-iteration-count:infinite;animation-timing-function:linear}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.fixed-header-actions .search{grid-area:search;text-align:right;justify-content:flex-end}.fixed-header-actions .bulk-actions-dropdown{display:none}.fixed-header-actions .bulk-actions-dropdown .dropdown-button{background-color:var(--primary)}.fixed-header-actions .bulk-actions-dropdown .dropdown-button:hover{background-color:var(--primary-hover-bg);color:var(--primary-hover-text)}.fixed-header-actions .bulk-actions-dropdown .dropdown-button .icon-chevron-down,.fixed-header-actions .bulk-actions-dropdown .dropdown-button>*{color:var(--primary-text)}.fixed-header-actions .bulk-actions-dropdown .dropdown-button .button-divider{border-color:var(--primary-text)}.fixed-header-actions .bulk-actions-dropdown .dropdown-button.disabled{border-color:var(--disabled-bg)}.fixed-header-actions .bulk-actions-dropdown .dropdown-button.disabled .icon-chevron-down{color:var(--disabled-text)!important}.fixed-header-actions .bulk-actions-dropdown .dropdown-button.disabled .button-divider{border-color:var(--disabled-text)}.paging{margin-top:10px;text-align:center}.paging SPAN{display:inline-block;min-width:200px}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","export const CAPI_PRODUCT_NAME = 'capi-turtles';\n\nexport const QUERY_PARAMS = { CLASS: 'class' };\n\nexport const BLANK_CLUSTER = '_';\n\nexport const LABELS = { AUTO_IMPORT: 'cluster-api.cattle.io/rancher-auto-import' };\n\nexport const CAPI = {\n CLUSTER_CLASS: 'cluster.x-k8s.io.clusterclass',\n PROVIDER: 'operator.cluster.x-k8s.io.infrastructureprovider',\n};\n\nexport const CP_VERSIONS = {\n 'kubekey-k3s': ['k3s1', 'k3s2'],\n rke2: ['rke2r1', 'rke2r2']\n};\n\nexport const CREDENTIALS_UPDATE_REQUIRED = ['aks'];\nexport const CREDENTIALS_NOT_REQUIRED = ['docker'];\nexport interface Worker {\n name: String,\n class: String\n}\n\nexport interface CAPIClusterTopology {\n version: String,\n class: String,\n workers: {\n machineDeployments: Worker[],\n machinePools: Worker[]\n }\n}\nexport interface CAPIClusterCPEndpoint {\n host: String,\n port: Number\n}\n\nexport interface CAPIClusterNetwork {\n apiServerPort?: Number,\n pods?: {\n cidrBlocks: String[]\n },\n serviceDomain?: String,\n services?: {\n cidrBlocks: String[]\n },\n}\n\nexport interface ClusterClass {\n metadata: {\n name: string,\n namespace: string,\n annotations?: {[key: string]: string}\n },\n spec: {\n infrastructure: Object,\n workers: Object,\n controlPlane: Object\n }\n}\n","import SteveModel from '@shell/plugins/steve/steve-class';\nimport { CAPI } from '@shell/config/types';\nimport { BLANK_CLUSTER, QUERY_PARAMS } from '../types/capi';\n\nexport class infraProvider extends SteveModel {\n // get _availableActions() {\n // const out = super._availableActions;\n\n // out.unshift({\n // action: 'goToCreateCluster',\n // label: 'action.createCluster',\n // icon: 'icon icon-copy',\n // enabled: true\n // });\n\n // return out;\n // }\n\n canYaml() {\n return false;\n }\n\n // goToCreateCluster() {\n // const escapedID = escape(this.id);\n // const location = {\n // name: 'c-cluster-manager-resource-create',\n // params: {\n // cluster: BLANK_CLUSTER,\n // resource: CAPI.CAPI_CLUSTER\n // },\n // query: { [QUERY_PARAMS.CLASS]: escapedID }\n // };\n\n // this.currentRouter().push(location);\n // }\n}\n","var arrayMap = require('./_arrayMap'),\n baseIteratee = require('./_baseIteratee'),\n basePickBy = require('./_basePickBy'),\n getAllKeysIn = require('./_getAllKeysIn');\n\n/**\n * Creates an object composed of the `object` properties `predicate` returns\n * truthy for. The predicate is invoked with two arguments: (value, key).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The source object.\n * @param {Function} [predicate=_.identity] The function invoked per property.\n * @returns {Object} Returns the new object.\n * @example\n *\n * var object = { 'a': 1, 'b': '2', 'c': 3 };\n *\n * _.pickBy(object, _.isNumber);\n * // => { 'a': 1, 'c': 3 }\n */\nfunction pickBy(object, predicate) {\n if (object == null) {\n return {};\n }\n var props = arrayMap(getAllKeysIn(object), function(prop) {\n return [prop];\n });\n predicate = baseIteratee(predicate);\n return basePickBy(object, props, function(value, path) {\n return predicate(value, path[0]);\n });\n}\n\nmodule.exports = pickBy;\n","var baseDifference = require('./_baseDifference'),\n baseFlatten = require('./_baseFlatten'),\n baseUniq = require('./_baseUniq');\n\n/**\n * The base implementation of methods like `_.xor`, without support for\n * iteratee shorthands, that accepts an array of arrays to inspect.\n *\n * @private\n * @param {Array} arrays The arrays to inspect.\n * @param {Function} [iteratee] The iteratee invoked per element.\n * @param {Function} [comparator] The comparator invoked per element.\n * @returns {Array} Returns the new array of values.\n */\nfunction baseXor(arrays, iteratee, comparator) {\n var length = arrays.length;\n if (length < 2) {\n return length ? baseUniq(arrays[0]) : [];\n }\n var index = -1,\n result = Array(length);\n\n while (++index < length) {\n var array = arrays[index],\n othIndex = -1;\n\n while (++othIndex < length) {\n if (othIndex != index) {\n result[index] = baseDifference(result[index] || array, arrays[othIndex], iteratee, comparator);\n }\n }\n }\n return baseUniq(baseFlatten(result, 1), iteratee, comparator);\n}\n\nmodule.exports = baseXor;\n","var getTag = require('./_getTag'),\n isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]';\n\n/**\n * The base implementation of `_.isMap` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a map, else `false`.\n */\nfunction baseIsMap(value) {\n return isObjectLike(value) && getTag(value) == mapTag;\n}\n\nmodule.exports = baseIsMap;\n","// style-loader: Adds some css to the DOM by adding a \n","import mod from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./management.cattle.io.roletemplate.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./management.cattle.io.roletemplate.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./management.cattle.io.roletemplate.vue?vue&type=template&id=5050d908&scoped=true&\"\nimport script from \"./management.cattle.io.roletemplate.vue?vue&type=script&lang=js&\"\nexport * from \"./management.cattle.io.roletemplate.vue?vue&type=script&lang=js&\"\nimport style0 from \"./management.cattle.io.roletemplate.vue?vue&type=style&index=0&id=5050d908&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"5050d908\",\n null\n \n)\n\nexport default component.exports","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".text.info[data-v-5050d908]{display:flex;align-items:center}.text.info>span[data-v-5050d908]{margin-right:5px}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","var mapCacheClear = require('./_mapCacheClear'),\n mapCacheDelete = require('./_mapCacheDelete'),\n mapCacheGet = require('./_mapCacheGet'),\n mapCacheHas = require('./_mapCacheHas'),\n mapCacheSet = require('./_mapCacheSet');\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n var index = -1,\n length = entries == null ? 0 : entries.length;\n\n this.clear();\n while (++index < length) {\n var entry = entries[index];\n this.set(entry[0], entry[1]);\n }\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\nmodule.exports = MapCache;\n","var isArray = require('./isArray'),\n isSymbol = require('./isSymbol');\n\n/** Used to match property names within property paths. */\nvar reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n reIsPlainProp = /^\\w*$/;\n\n/**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\nfunction isKey(value, object) {\n if (isArray(value)) {\n return false;\n }\n var type = typeof value;\n if (type == 'number' || type == 'symbol' || type == 'boolean' ||\n value == null || isSymbol(value)) {\n return true;\n }\n return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\n (object != null && value in Object(object));\n}\n\nmodule.exports = isKey;\n","module.exports = __WEBPACK_EXTERNAL_MODULE__8bbf__;","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../node_modules/@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".centered[data-v-337ae8b8]{display:flex;flex-wrap:wrap;flex-direction:column;justify-content:center;align-items:center;text-align:center;margin:100px 0}.centered .description[data-v-337ae8b8]{line-height:20px}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","var baseUniq = require('./_baseUniq');\n\n/**\n * Creates a duplicate-free version of an array, using\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * for equality comparisons, in which only the first occurrence of each element\n * is kept. The order of result values is determined by the order they occur\n * in the array.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @returns {Array} Returns the new duplicate free array.\n * @example\n *\n * _.uniq([2, 1, 2]);\n * // => [2, 1]\n */\nfunction uniq(array) {\n return (array && array.length) ? baseUniq(array) : [];\n}\n\nmodule.exports = uniq;\n","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".actions[data-v-db441fb2]{text-align:right}.machine-name[data-v-db441fb2]{font-weight:600}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","// style-loader: Adds some css to the DOM by adding a \n","import mod from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./Loading.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./Loading.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Loading.vue?vue&type=template&id=23723280&scoped=true&\"\nimport script from \"./Loading.vue?vue&type=script&lang=js&\"\nexport * from \"./Loading.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Loading.vue?vue&type=style&index=0&id=23723280&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"23723280\",\n null\n \n)\n\nexport default component.exports","/*\nLanguage: Nginx config\nAuthor: Peter Leonov \nContributors: Ivan Sagalaev \nCategory: config, web\nWebsite: https://www.nginx.com\n*/\n\n/** @type LanguageFn */\nfunction nginx(hljs) {\n const regex = hljs.regex;\n const VAR = {\n className: 'variable',\n variants: [\n { begin: /\\$\\d+/ },\n { begin: /\\$\\{\\w+\\}/ },\n { begin: regex.concat(/[$@]/, hljs.UNDERSCORE_IDENT_RE) }\n ]\n };\n const LITERALS = [\n \"on\",\n \"off\",\n \"yes\",\n \"no\",\n \"true\",\n \"false\",\n \"none\",\n \"blocked\",\n \"debug\",\n \"info\",\n \"notice\",\n \"warn\",\n \"error\",\n \"crit\",\n \"select\",\n \"break\",\n \"last\",\n \"permanent\",\n \"redirect\",\n \"kqueue\",\n \"rtsig\",\n \"epoll\",\n \"poll\",\n \"/dev/poll\"\n ];\n const DEFAULT = {\n endsWithParent: true,\n keywords: {\n $pattern: /[a-z_]{2,}|\\/dev\\/poll/,\n literal: LITERALS\n },\n relevance: 0,\n illegal: '=>',\n contains: [\n hljs.HASH_COMMENT_MODE,\n {\n className: 'string',\n contains: [\n hljs.BACKSLASH_ESCAPE,\n VAR\n ],\n variants: [\n {\n begin: /\"/,\n end: /\"/\n },\n {\n begin: /'/,\n end: /'/\n }\n ]\n },\n // this swallows entire URLs to avoid detecting numbers within\n {\n begin: '([a-z]+):/',\n end: '\\\\s',\n endsWithParent: true,\n excludeEnd: true,\n contains: [ VAR ]\n },\n {\n className: 'regexp',\n contains: [\n hljs.BACKSLASH_ESCAPE,\n VAR\n ],\n variants: [\n {\n begin: \"\\\\s\\\\^\",\n end: \"\\\\s|\\\\{|;\",\n returnEnd: true\n },\n // regexp locations (~, ~*)\n {\n begin: \"~\\\\*?\\\\s+\",\n end: \"\\\\s|\\\\{|;\",\n returnEnd: true\n },\n // *.example.com\n { begin: \"\\\\*(\\\\.[a-z\\\\-]+)+\" },\n // sub.example.*\n { begin: \"([a-z\\\\-]+\\\\.)+\\\\*\" }\n ]\n },\n // IP\n {\n className: 'number',\n begin: '\\\\b\\\\d{1,3}\\\\.\\\\d{1,3}\\\\.\\\\d{1,3}\\\\.\\\\d{1,3}(:\\\\d{1,5})?\\\\b'\n },\n // units\n {\n className: 'number',\n begin: '\\\\b\\\\d+[kKmMgGdshdwy]?\\\\b',\n relevance: 0\n },\n VAR\n ]\n };\n\n return {\n name: 'Nginx config',\n aliases: [ 'nginxconf' ],\n contains: [\n hljs.HASH_COMMENT_MODE,\n {\n beginKeywords: \"upstream location\",\n end: /;|\\{/,\n contains: DEFAULT.contains,\n keywords: { section: \"upstream location\" }\n },\n {\n className: 'section',\n begin: regex.concat(hljs.UNDERSCORE_IDENT_RE + regex.lookahead(/\\s+\\{/)),\n relevance: 0\n },\n {\n begin: regex.lookahead(hljs.UNDERSCORE_IDENT_RE + '\\\\s'),\n end: ';|\\\\{',\n contains: [\n {\n className: 'attribute',\n begin: hljs.UNDERSCORE_IDENT_RE,\n starts: DEFAULT\n }\n ],\n relevance: 0\n }\n ],\n illegal: '[^\\\\s\\\\}\\\\{]'\n };\n}\n\nmodule.exports = nginx;\n","/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f',\n reComboHalfMarksRange = '\\\\ufe20-\\\\ufe2f',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20ff',\n rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,\n rsVarRange = '\\\\ufe0e\\\\ufe0f';\n\n/** Used to compose unicode capture groups. */\nvar rsZWJ = '\\\\u200d';\n\n/** Used to detect strings with [zero-width joiners or code points from the astral planes](http://eev.ee/blog/2015/09/12/dark-corners-of-unicode/). */\nvar reHasUnicode = RegExp('[' + rsZWJ + rsAstralRange + rsComboRange + rsVarRange + ']');\n\n/**\n * Checks if `string` contains Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a symbol is found, else `false`.\n */\nfunction hasUnicode(string) {\n return reHasUnicode.test(string);\n}\n\nmodule.exports = hasUnicode;\n","\"use strict\";\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.isValidCron = void 0;\n// This comes from the fact that parseInt trims characters coming\n// after digits and consider it a valid int, so `1*` becomes `1`.\nvar safeParseInt = function (value) {\n if (/^\\d+$/.test(value)) {\n return Number(value);\n }\n else {\n return NaN;\n }\n};\nvar isWildcard = function (value) {\n return value === '*';\n};\nvar isQuestionMark = function (value) {\n return value === '?';\n};\nvar isInRange = function (value, start, stop) {\n return value >= start && value <= stop;\n};\nvar isValidRange = function (value, start, stop) {\n var sides = value.split('-');\n switch (sides.length) {\n case 1:\n return isWildcard(value) || isInRange(safeParseInt(value), start, stop);\n case 2:\n var _a = sides.map(function (side) { return safeParseInt(side); }), small = _a[0], big = _a[1];\n return small <= big && isInRange(small, start, stop) && isInRange(big, start, stop);\n default:\n return false;\n }\n};\nvar isValidStep = function (value) {\n return value === undefined || value.search(/[^\\d]/) === -1;\n};\nvar validateForRange = function (value, start, stop) {\n if (value.search(/[^\\d-,\\/*]/) !== -1) {\n return false;\n }\n var list = value.split(',');\n return list.every(function (condition) {\n var splits = condition.split('/');\n // Prevents `*/ * * * *` from being accepted.\n if (condition.trim().endsWith('/')) {\n return false;\n }\n // Prevents `*/*/* * * * *` from being accepted\n if (splits.length > 2) {\n return false;\n }\n // If we don't have a `/`, right will be undefined which is considered a valid step if we don't a `/`.\n var left = splits[0], right = splits[1];\n return isValidRange(left, start, stop) && isValidStep(right);\n });\n};\nvar hasValidSeconds = function (seconds) {\n return validateForRange(seconds, 0, 59);\n};\nvar hasValidMinutes = function (minutes) {\n return validateForRange(minutes, 0, 59);\n};\nvar hasValidHours = function (hours) {\n return validateForRange(hours, 0, 23);\n};\nvar hasValidDays = function (days, allowBlankDay) {\n return (allowBlankDay && isQuestionMark(days)) || validateForRange(days, 1, 31);\n};\nvar monthAlias = {\n jan: '1',\n feb: '2',\n mar: '3',\n apr: '4',\n may: '5',\n jun: '6',\n jul: '7',\n aug: '8',\n sep: '9',\n oct: '10',\n nov: '11',\n dec: '12'\n};\nvar hasValidMonths = function (months, alias) {\n // Prevents alias to be used as steps\n if (months.search(/\\/[a-zA-Z]/) !== -1) {\n return false;\n }\n if (alias) {\n var remappedMonths = months.toLowerCase().replace(/[a-z]{3}/g, function (match) {\n return monthAlias[match] === undefined ? match : monthAlias[match];\n });\n // If any invalid alias was used, it won't pass the other checks as there will be non-numeric values in the months\n return validateForRange(remappedMonths, 1, 12);\n }\n return validateForRange(months, 1, 12);\n};\nvar weekdaysAlias = {\n sun: '0',\n mon: '1',\n tue: '2',\n wed: '3',\n thu: '4',\n fri: '5',\n sat: '6'\n};\nvar hasValidWeekdays = function (weekdays, alias, allowBlankDay, allowSevenAsSunday) {\n // If there is a question mark, checks if the allowBlankDay flag is set\n if (allowBlankDay && isQuestionMark(weekdays)) {\n return true;\n }\n else if (!allowBlankDay && isQuestionMark(weekdays)) {\n return false;\n }\n // Prevents alias to be used as steps\n if (weekdays.search(/\\/[a-zA-Z]/) !== -1) {\n return false;\n }\n if (alias) {\n var remappedWeekdays = weekdays.toLowerCase().replace(/[a-z]{3}/g, function (match) {\n return weekdaysAlias[match] === undefined ? match : weekdaysAlias[match];\n });\n // If any invalid alias was used, it won't pass the other checks as there will be non-numeric values in the weekdays\n return validateForRange(remappedWeekdays, 0, allowSevenAsSunday ? 7 : 6);\n }\n return validateForRange(weekdays, 0, allowSevenAsSunday ? 7 : 6);\n};\nvar hasCompatibleDayFormat = function (days, weekdays, allowBlankDay) {\n return !(allowBlankDay && isQuestionMark(days) && isQuestionMark(weekdays));\n};\nvar split = function (cron) {\n return cron.trim().split(/\\s+/);\n};\nvar defaultOptions = {\n alias: false,\n seconds: false,\n allowBlankDay: false,\n allowSevenAsSunday: false\n};\nexports.isValidCron = function (cron, options) {\n options = __assign(__assign({}, defaultOptions), options);\n var splits = split(cron);\n if (splits.length > (options.seconds ? 6 : 5) || splits.length < 5) {\n return false;\n }\n var checks = [];\n if (splits.length === 6) {\n var seconds = splits.shift();\n if (seconds) {\n checks.push(hasValidSeconds(seconds));\n }\n }\n // We could only check the steps gradually and return false on the first invalid block,\n // However, this won't have any performance impact so why bother for now.\n var minutes = splits[0], hours = splits[1], days = splits[2], months = splits[3], weekdays = splits[4];\n checks.push(hasValidMinutes(minutes));\n checks.push(hasValidHours(hours));\n checks.push(hasValidDays(days, options.allowBlankDay));\n checks.push(hasValidMonths(months, options.alias));\n checks.push(hasValidWeekdays(weekdays, options.alias, options.allowBlankDay, options.allowSevenAsSunday));\n checks.push(hasCompatibleDayFormat(days, weekdays, options.allowBlankDay));\n return checks.every(Boolean);\n};\n//# sourceMappingURL=index.js.map","/*\nLanguage: Lua\nDescription: Lua is a powerful, efficient, lightweight, embeddable scripting language.\nAuthor: Andrew Fedorov \nCategory: common, scripting\nWebsite: https://www.lua.org\n*/\n\nfunction lua(hljs) {\n const OPENING_LONG_BRACKET = '\\\\[=*\\\\[';\n const CLOSING_LONG_BRACKET = '\\\\]=*\\\\]';\n const LONG_BRACKETS = {\n begin: OPENING_LONG_BRACKET,\n end: CLOSING_LONG_BRACKET,\n contains: [ 'self' ]\n };\n const COMMENTS = [\n hljs.COMMENT('--(?!' + OPENING_LONG_BRACKET + ')', '$'),\n hljs.COMMENT(\n '--' + OPENING_LONG_BRACKET,\n CLOSING_LONG_BRACKET,\n {\n contains: [ LONG_BRACKETS ],\n relevance: 10\n }\n )\n ];\n return {\n name: 'Lua',\n keywords: {\n $pattern: hljs.UNDERSCORE_IDENT_RE,\n literal: \"true false nil\",\n keyword: \"and break do else elseif end for goto if in local not or repeat return then until while\",\n built_in:\n // Metatags and globals:\n '_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len '\n + '__gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert '\n // Standard methods and properties:\n + 'collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring '\n + 'module next pairs pcall print rawequal rawget rawset require select setfenv '\n + 'setmetatable tonumber tostring type unpack xpcall arg self '\n // Library methods and properties (one line per library):\n + 'coroutine resume yield status wrap create running debug getupvalue '\n + 'debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv '\n + 'io lines write close flush open output type read stderr stdin input stdout popen tmpfile '\n + 'math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan '\n + 'os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall '\n + 'string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower '\n + 'table setn insert getn foreachi maxn foreach concat sort remove'\n },\n contains: COMMENTS.concat([\n {\n className: 'function',\n beginKeywords: 'function',\n end: '\\\\)',\n contains: [\n hljs.inherit(hljs.TITLE_MODE, { begin: '([_a-zA-Z]\\\\w*\\\\.)*([_a-zA-Z]\\\\w*:)?[_a-zA-Z]\\\\w*' }),\n {\n className: 'params',\n begin: '\\\\(',\n endsWithParent: true,\n contains: COMMENTS\n }\n ].concat(COMMENTS)\n },\n hljs.C_NUMBER_MODE,\n hljs.APOS_STRING_MODE,\n hljs.QUOTE_STRING_MODE,\n {\n className: 'string',\n begin: OPENING_LONG_BRACKET,\n end: CLOSING_LONG_BRACKET,\n contains: [ LONG_BRACKETS ],\n relevance: 5\n }\n ])\n };\n}\n\nmodule.exports = lua;\n","// style-loader: Adds some css to the DOM by adding a \n","import mod from \"-!../../../../cache-loader/dist/cjs.js??ref--14-0!../../../../thread-loader/dist/cjs.js!../../../../babel-loader/lib/index.js!../../../../cache-loader/dist/cjs.js??ref--2-0!../../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./NameNsDescription.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../cache-loader/dist/cjs.js??ref--14-0!../../../../thread-loader/dist/cjs.js!../../../../babel-loader/lib/index.js!../../../../cache-loader/dist/cjs.js??ref--2-0!../../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./NameNsDescription.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./NameNsDescription.vue?vue&type=template&id=08979412&scoped=true&\"\nimport script from \"./NameNsDescription.vue?vue&type=script&lang=js&\"\nexport * from \"./NameNsDescription.vue?vue&type=script&lang=js&\"\nimport style0 from \"./NameNsDescription.vue?vue&type=style&index=0&id=08979412&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"08979412\",\n null\n \n)\n\nexport default component.exports","/*\nLanguage: Go\nAuthor: Stephan Kountso aka StepLg \nContributors: Evgeny Stepanischev \nDescription: Google go language (golang). For info about language\nWebsite: http://golang.org/\nCategory: common, system\n*/\n\nfunction go(hljs) {\n const LITERALS = [\n \"true\",\n \"false\",\n \"iota\",\n \"nil\"\n ];\n const BUILT_INS = [\n \"append\",\n \"cap\",\n \"close\",\n \"complex\",\n \"copy\",\n \"imag\",\n \"len\",\n \"make\",\n \"new\",\n \"panic\",\n \"print\",\n \"println\",\n \"real\",\n \"recover\",\n \"delete\"\n ];\n const TYPES = [\n \"bool\",\n \"byte\",\n \"complex64\",\n \"complex128\",\n \"error\",\n \"float32\",\n \"float64\",\n \"int8\",\n \"int16\",\n \"int32\",\n \"int64\",\n \"string\",\n \"uint8\",\n \"uint16\",\n \"uint32\",\n \"uint64\",\n \"int\",\n \"uint\",\n \"uintptr\",\n \"rune\"\n ];\n const KWS = [\n \"break\",\n \"case\",\n \"chan\",\n \"const\",\n \"continue\",\n \"default\",\n \"defer\",\n \"else\",\n \"fallthrough\",\n \"for\",\n \"func\",\n \"go\",\n \"goto\",\n \"if\",\n \"import\",\n \"interface\",\n \"map\",\n \"package\",\n \"range\",\n \"return\",\n \"select\",\n \"struct\",\n \"switch\",\n \"type\",\n \"var\",\n ];\n const KEYWORDS = {\n keyword: KWS,\n type: TYPES,\n literal: LITERALS,\n built_in: BUILT_INS\n };\n return {\n name: 'Go',\n aliases: [ 'golang' ],\n keywords: KEYWORDS,\n illegal: ' source(x)).join(\"\");\n return joined;\n}\n\n/**\n * @param { Array } args\n * @returns {object}\n */\nfunction stripOptionsFromArgs(args) {\n const opts = args[args.length - 1];\n\n if (typeof opts === 'object' && opts.constructor === Object) {\n args.splice(args.length - 1, 1);\n return opts;\n } else {\n return {};\n }\n}\n\n/** @typedef { {capture?: boolean} } RegexEitherOptions */\n\n/**\n * Any of the passed expresssions may match\n *\n * Creates a huge this | this | that | that match\n * @param {(RegExp | string)[] | [...(RegExp | string)[], RegexEitherOptions]} args\n * @returns {string}\n */\nfunction either(...args) {\n /** @type { object & {capture?: boolean} } */\n const opts = stripOptionsFromArgs(args);\n const joined = '('\n + (opts.capture ? \"\" : \"?:\")\n + args.map((x) => source(x)).join(\"|\") + \")\";\n return joined;\n}\n\nconst keywordWrapper = keyword => concat(\n /\\b/,\n keyword,\n /\\w$/.test(keyword) ? /\\b/ : /\\B/\n);\n\n// Keywords that require a leading dot.\nconst dotKeywords = [\n 'Protocol', // contextual\n 'Type' // contextual\n].map(keywordWrapper);\n\n// Keywords that may have a leading dot.\nconst optionalDotKeywords = [\n 'init',\n 'self'\n].map(keywordWrapper);\n\n// should register as keyword, not type\nconst keywordTypes = [\n 'Any',\n 'Self'\n];\n\n// Regular keywords and literals.\nconst keywords = [\n // strings below will be fed into the regular `keywords` engine while regex\n // will result in additional modes being created to scan for those keywords to\n // avoid conflicts with other rules\n 'actor',\n 'any', // contextual\n 'associatedtype',\n 'async',\n 'await',\n /as\\?/, // operator\n /as!/, // operator\n 'as', // operator\n 'break',\n 'case',\n 'catch',\n 'class',\n 'continue',\n 'convenience', // contextual\n 'default',\n 'defer',\n 'deinit',\n 'didSet', // contextual\n 'distributed',\n 'do',\n 'dynamic', // contextual\n 'else',\n 'enum',\n 'extension',\n 'fallthrough',\n /fileprivate\\(set\\)/,\n 'fileprivate',\n 'final', // contextual\n 'for',\n 'func',\n 'get', // contextual\n 'guard',\n 'if',\n 'import',\n 'indirect', // contextual\n 'infix', // contextual\n /init\\?/,\n /init!/,\n 'inout',\n /internal\\(set\\)/,\n 'internal',\n 'in',\n 'is', // operator\n 'isolated', // contextual\n 'nonisolated', // contextual\n 'lazy', // contextual\n 'let',\n 'mutating', // contextual\n 'nonmutating', // contextual\n /open\\(set\\)/, // contextual\n 'open', // contextual\n 'operator',\n 'optional', // contextual\n 'override', // contextual\n 'postfix', // contextual\n 'precedencegroup',\n 'prefix', // contextual\n /private\\(set\\)/,\n 'private',\n 'protocol',\n /public\\(set\\)/,\n 'public',\n 'repeat',\n 'required', // contextual\n 'rethrows',\n 'return',\n 'set', // contextual\n 'some', // contextual\n 'static',\n 'struct',\n 'subscript',\n 'super',\n 'switch',\n 'throws',\n 'throw',\n /try\\?/, // operator\n /try!/, // operator\n 'try', // operator\n 'typealias',\n /unowned\\(safe\\)/, // contextual\n /unowned\\(unsafe\\)/, // contextual\n 'unowned', // contextual\n 'var',\n 'weak', // contextual\n 'where',\n 'while',\n 'willSet' // contextual\n];\n\n// NOTE: Contextual keywords are reserved only in specific contexts.\n// Ideally, these should be matched using modes to avoid false positives.\n\n// Literals.\nconst literals = [\n 'false',\n 'nil',\n 'true'\n];\n\n// Keywords used in precedence groups.\nconst precedencegroupKeywords = [\n 'assignment',\n 'associativity',\n 'higherThan',\n 'left',\n 'lowerThan',\n 'none',\n 'right'\n];\n\n// Keywords that start with a number sign (#).\n// #(un)available is handled separately.\nconst numberSignKeywords = [\n '#colorLiteral',\n '#column',\n '#dsohandle',\n '#else',\n '#elseif',\n '#endif',\n '#error',\n '#file',\n '#fileID',\n '#fileLiteral',\n '#filePath',\n '#function',\n '#if',\n '#imageLiteral',\n '#keyPath',\n '#line',\n '#selector',\n '#sourceLocation',\n '#warn_unqualified_access',\n '#warning'\n];\n\n// Global functions in the Standard Library.\nconst builtIns = [\n 'abs',\n 'all',\n 'any',\n 'assert',\n 'assertionFailure',\n 'debugPrint',\n 'dump',\n 'fatalError',\n 'getVaList',\n 'isKnownUniquelyReferenced',\n 'max',\n 'min',\n 'numericCast',\n 'pointwiseMax',\n 'pointwiseMin',\n 'precondition',\n 'preconditionFailure',\n 'print',\n 'readLine',\n 'repeatElement',\n 'sequence',\n 'stride',\n 'swap',\n 'swift_unboxFromSwiftValueWithType',\n 'transcode',\n 'type',\n 'unsafeBitCast',\n 'unsafeDowncast',\n 'withExtendedLifetime',\n 'withUnsafeMutablePointer',\n 'withUnsafePointer',\n 'withVaList',\n 'withoutActuallyEscaping',\n 'zip'\n];\n\n// Valid first characters for operators.\nconst operatorHead = either(\n /[/=\\-+!*%<>&|^~?]/,\n /[\\u00A1-\\u00A7]/,\n /[\\u00A9\\u00AB]/,\n /[\\u00AC\\u00AE]/,\n /[\\u00B0\\u00B1]/,\n /[\\u00B6\\u00BB\\u00BF\\u00D7\\u00F7]/,\n /[\\u2016-\\u2017]/,\n /[\\u2020-\\u2027]/,\n /[\\u2030-\\u203E]/,\n /[\\u2041-\\u2053]/,\n /[\\u2055-\\u205E]/,\n /[\\u2190-\\u23FF]/,\n /[\\u2500-\\u2775]/,\n /[\\u2794-\\u2BFF]/,\n /[\\u2E00-\\u2E7F]/,\n /[\\u3001-\\u3003]/,\n /[\\u3008-\\u3020]/,\n /[\\u3030]/\n);\n\n// Valid characters for operators.\nconst operatorCharacter = either(\n operatorHead,\n /[\\u0300-\\u036F]/,\n /[\\u1DC0-\\u1DFF]/,\n /[\\u20D0-\\u20FF]/,\n /[\\uFE00-\\uFE0F]/,\n /[\\uFE20-\\uFE2F]/\n // TODO: The following characters are also allowed, but the regex isn't supported yet.\n // /[\\u{E0100}-\\u{E01EF}]/u\n);\n\n// Valid operator.\nconst operator = concat(operatorHead, operatorCharacter, '*');\n\n// Valid first characters for identifiers.\nconst identifierHead = either(\n /[a-zA-Z_]/,\n /[\\u00A8\\u00AA\\u00AD\\u00AF\\u00B2-\\u00B5\\u00B7-\\u00BA]/,\n /[\\u00BC-\\u00BE\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u00FF]/,\n /[\\u0100-\\u02FF\\u0370-\\u167F\\u1681-\\u180D\\u180F-\\u1DBF]/,\n /[\\u1E00-\\u1FFF]/,\n /[\\u200B-\\u200D\\u202A-\\u202E\\u203F-\\u2040\\u2054\\u2060-\\u206F]/,\n /[\\u2070-\\u20CF\\u2100-\\u218F\\u2460-\\u24FF\\u2776-\\u2793]/,\n /[\\u2C00-\\u2DFF\\u2E80-\\u2FFF]/,\n /[\\u3004-\\u3007\\u3021-\\u302F\\u3031-\\u303F\\u3040-\\uD7FF]/,\n /[\\uF900-\\uFD3D\\uFD40-\\uFDCF\\uFDF0-\\uFE1F\\uFE30-\\uFE44]/,\n /[\\uFE47-\\uFEFE\\uFF00-\\uFFFD]/ // Should be /[\\uFE47-\\uFFFD]/, but we have to exclude FEFF.\n // The following characters are also allowed, but the regexes aren't supported yet.\n // /[\\u{10000}-\\u{1FFFD}\\u{20000-\\u{2FFFD}\\u{30000}-\\u{3FFFD}\\u{40000}-\\u{4FFFD}]/u,\n // /[\\u{50000}-\\u{5FFFD}\\u{60000-\\u{6FFFD}\\u{70000}-\\u{7FFFD}\\u{80000}-\\u{8FFFD}]/u,\n // /[\\u{90000}-\\u{9FFFD}\\u{A0000-\\u{AFFFD}\\u{B0000}-\\u{BFFFD}\\u{C0000}-\\u{CFFFD}]/u,\n // /[\\u{D0000}-\\u{DFFFD}\\u{E0000-\\u{EFFFD}]/u\n);\n\n// Valid characters for identifiers.\nconst identifierCharacter = either(\n identifierHead,\n /\\d/,\n /[\\u0300-\\u036F\\u1DC0-\\u1DFF\\u20D0-\\u20FF\\uFE20-\\uFE2F]/\n);\n\n// Valid identifier.\nconst identifier = concat(identifierHead, identifierCharacter, '*');\n\n// Valid type identifier.\nconst typeIdentifier = concat(/[A-Z]/, identifierCharacter, '*');\n\n// Built-in attributes, which are highlighted as keywords.\n// @available is handled separately.\nconst keywordAttributes = [\n 'autoclosure',\n concat(/convention\\(/, either('swift', 'block', 'c'), /\\)/),\n 'discardableResult',\n 'dynamicCallable',\n 'dynamicMemberLookup',\n 'escaping',\n 'frozen',\n 'GKInspectable',\n 'IBAction',\n 'IBDesignable',\n 'IBInspectable',\n 'IBOutlet',\n 'IBSegueAction',\n 'inlinable',\n 'main',\n 'nonobjc',\n 'NSApplicationMain',\n 'NSCopying',\n 'NSManaged',\n concat(/objc\\(/, identifier, /\\)/),\n 'objc',\n 'objcMembers',\n 'propertyWrapper',\n 'requires_stored_property_inits',\n 'resultBuilder',\n 'testable',\n 'UIApplicationMain',\n 'unknown',\n 'usableFromInline'\n];\n\n// Contextual keywords used in @available and #(un)available.\nconst availabilityKeywords = [\n 'iOS',\n 'iOSApplicationExtension',\n 'macOS',\n 'macOSApplicationExtension',\n 'macCatalyst',\n 'macCatalystApplicationExtension',\n 'watchOS',\n 'watchOSApplicationExtension',\n 'tvOS',\n 'tvOSApplicationExtension',\n 'swift'\n];\n\n/*\nLanguage: Swift\nDescription: Swift is a general-purpose programming language built using a modern approach to safety, performance, and software design patterns.\nAuthor: Steven Van Impe \nContributors: Chris Eidhof , Nate Cook , Alexander Lichter , Richard Gibson \nWebsite: https://swift.org\nCategory: common, system\n*/\n\n/** @type LanguageFn */\nfunction swift(hljs) {\n const WHITESPACE = {\n match: /\\s+/,\n relevance: 0\n };\n // https://docs.swift.org/swift-book/ReferenceManual/LexicalStructure.html#ID411\n const BLOCK_COMMENT = hljs.COMMENT(\n '/\\\\*',\n '\\\\*/',\n { contains: [ 'self' ] }\n );\n const COMMENTS = [\n hljs.C_LINE_COMMENT_MODE,\n BLOCK_COMMENT\n ];\n\n // https://docs.swift.org/swift-book/ReferenceManual/LexicalStructure.html#ID413\n // https://docs.swift.org/swift-book/ReferenceManual/zzSummaryOfTheGrammar.html\n const DOT_KEYWORD = {\n match: [\n /\\./,\n either(...dotKeywords, ...optionalDotKeywords)\n ],\n className: { 2: \"keyword\" }\n };\n const KEYWORD_GUARD = {\n // Consume .keyword to prevent highlighting properties and methods as keywords.\n match: concat(/\\./, either(...keywords)),\n relevance: 0\n };\n const PLAIN_KEYWORDS = keywords\n .filter(kw => typeof kw === 'string')\n .concat([ \"_|0\" ]); // seems common, so 0 relevance\n const REGEX_KEYWORDS = keywords\n .filter(kw => typeof kw !== 'string') // find regex\n .concat(keywordTypes)\n .map(keywordWrapper);\n const KEYWORD = { variants: [\n {\n className: 'keyword',\n match: either(...REGEX_KEYWORDS, ...optionalDotKeywords)\n }\n ] };\n // find all the regular keywords\n const KEYWORDS = {\n $pattern: either(\n /\\b\\w+/, // regular keywords\n /#\\w+/ // number keywords\n ),\n keyword: PLAIN_KEYWORDS\n .concat(numberSignKeywords),\n literal: literals\n };\n const KEYWORD_MODES = [\n DOT_KEYWORD,\n KEYWORD_GUARD,\n KEYWORD\n ];\n\n // https://github.com/apple/swift/tree/main/stdlib/public/core\n const BUILT_IN_GUARD = {\n // Consume .built_in to prevent highlighting properties and methods.\n match: concat(/\\./, either(...builtIns)),\n relevance: 0\n };\n const BUILT_IN = {\n className: 'built_in',\n match: concat(/\\b/, either(...builtIns), /(?=\\()/)\n };\n const BUILT_INS = [\n BUILT_IN_GUARD,\n BUILT_IN\n ];\n\n // https://docs.swift.org/swift-book/ReferenceManual/LexicalStructure.html#ID418\n const OPERATOR_GUARD = {\n // Prevent -> from being highlighting as an operator.\n match: /->/,\n relevance: 0\n };\n const OPERATOR = {\n className: 'operator',\n relevance: 0,\n variants: [\n { match: operator },\n {\n // dot-operator: only operators that start with a dot are allowed to use dots as\n // characters (..., ...<, .*, etc). So there rule here is: a dot followed by one or more\n // characters that may also include dots.\n match: `\\\\.(\\\\.|${operatorCharacter})+` }\n ]\n };\n const OPERATORS = [\n OPERATOR_GUARD,\n OPERATOR\n ];\n\n // https://docs.swift.org/swift-book/ReferenceManual/LexicalStructure.html#grammar_numeric-literal\n // TODO: Update for leading `-` after lookbehind is supported everywhere\n const decimalDigits = '([0-9]_*)+';\n const hexDigits = '([0-9a-fA-F]_*)+';\n const NUMBER = {\n className: 'number',\n relevance: 0,\n variants: [\n // decimal floating-point-literal (subsumes decimal-literal)\n { match: `\\\\b(${decimalDigits})(\\\\.(${decimalDigits}))?` + `([eE][+-]?(${decimalDigits}))?\\\\b` },\n // hexadecimal floating-point-literal (subsumes hexadecimal-literal)\n { match: `\\\\b0x(${hexDigits})(\\\\.(${hexDigits}))?` + `([pP][+-]?(${decimalDigits}))?\\\\b` },\n // octal-literal\n { match: /\\b0o([0-7]_*)+\\b/ },\n // binary-literal\n { match: /\\b0b([01]_*)+\\b/ }\n ]\n };\n\n // https://docs.swift.org/swift-book/ReferenceManual/LexicalStructure.html#grammar_string-literal\n const ESCAPED_CHARACTER = (rawDelimiter = \"\") => ({\n className: 'subst',\n variants: [\n { match: concat(/\\\\/, rawDelimiter, /[0\\\\tnr\"']/) },\n { match: concat(/\\\\/, rawDelimiter, /u\\{[0-9a-fA-F]{1,8}\\}/) }\n ]\n });\n const ESCAPED_NEWLINE = (rawDelimiter = \"\") => ({\n className: 'subst',\n match: concat(/\\\\/, rawDelimiter, /[\\t ]*(?:[\\r\\n]|\\r\\n)/)\n });\n const INTERPOLATION = (rawDelimiter = \"\") => ({\n className: 'subst',\n label: \"interpol\",\n begin: concat(/\\\\/, rawDelimiter, /\\(/),\n end: /\\)/\n });\n const MULTILINE_STRING = (rawDelimiter = \"\") => ({\n begin: concat(rawDelimiter, /\"\"\"/),\n end: concat(/\"\"\"/, rawDelimiter),\n contains: [\n ESCAPED_CHARACTER(rawDelimiter),\n ESCAPED_NEWLINE(rawDelimiter),\n INTERPOLATION(rawDelimiter)\n ]\n });\n const SINGLE_LINE_STRING = (rawDelimiter = \"\") => ({\n begin: concat(rawDelimiter, /\"/),\n end: concat(/\"/, rawDelimiter),\n contains: [\n ESCAPED_CHARACTER(rawDelimiter),\n INTERPOLATION(rawDelimiter)\n ]\n });\n const STRING = {\n className: 'string',\n variants: [\n MULTILINE_STRING(),\n MULTILINE_STRING(\"#\"),\n MULTILINE_STRING(\"##\"),\n MULTILINE_STRING(\"###\"),\n SINGLE_LINE_STRING(),\n SINGLE_LINE_STRING(\"#\"),\n SINGLE_LINE_STRING(\"##\"),\n SINGLE_LINE_STRING(\"###\")\n ]\n };\n\n // https://docs.swift.org/swift-book/ReferenceManual/LexicalStructure.html#ID412\n const QUOTED_IDENTIFIER = { match: concat(/`/, identifier, /`/) };\n const IMPLICIT_PARAMETER = {\n className: 'variable',\n match: /\\$\\d+/\n };\n const PROPERTY_WRAPPER_PROJECTION = {\n className: 'variable',\n match: `\\\\$${identifierCharacter}+`\n };\n const IDENTIFIERS = [\n QUOTED_IDENTIFIER,\n IMPLICIT_PARAMETER,\n PROPERTY_WRAPPER_PROJECTION\n ];\n\n // https://docs.swift.org/swift-book/ReferenceManual/Attributes.html\n const AVAILABLE_ATTRIBUTE = {\n match: /(@|#(un)?)available/,\n className: \"keyword\",\n starts: { contains: [\n {\n begin: /\\(/,\n end: /\\)/,\n keywords: availabilityKeywords,\n contains: [\n ...OPERATORS,\n NUMBER,\n STRING\n ]\n }\n ] }\n };\n const KEYWORD_ATTRIBUTE = {\n className: 'keyword',\n match: concat(/@/, either(...keywordAttributes))\n };\n const USER_DEFINED_ATTRIBUTE = {\n className: 'meta',\n match: concat(/@/, identifier)\n };\n const ATTRIBUTES = [\n AVAILABLE_ATTRIBUTE,\n KEYWORD_ATTRIBUTE,\n USER_DEFINED_ATTRIBUTE\n ];\n\n // https://docs.swift.org/swift-book/ReferenceManual/Types.html\n const TYPE = {\n match: lookahead(/\\b[A-Z]/),\n relevance: 0,\n contains: [\n { // Common Apple frameworks, for relevance boost\n className: 'type',\n match: concat(/(AV|CA|CF|CG|CI|CL|CM|CN|CT|MK|MP|MTK|MTL|NS|SCN|SK|UI|WK|XC)/, identifierCharacter, '+')\n },\n { // Type identifier\n className: 'type',\n match: typeIdentifier,\n relevance: 0\n },\n { // Optional type\n match: /[?!]+/,\n relevance: 0\n },\n { // Variadic parameter\n match: /\\.\\.\\./,\n relevance: 0\n },\n { // Protocol composition\n match: concat(/\\s+&\\s+/, lookahead(typeIdentifier)),\n relevance: 0\n }\n ]\n };\n const GENERIC_ARGUMENTS = {\n begin: //,\n keywords: KEYWORDS,\n contains: [\n ...COMMENTS,\n ...KEYWORD_MODES,\n ...ATTRIBUTES,\n OPERATOR_GUARD,\n TYPE\n ]\n };\n TYPE.contains.push(GENERIC_ARGUMENTS);\n\n // https://docs.swift.org/swift-book/ReferenceManual/Expressions.html#ID552\n // Prevents element names from being highlighted as keywords.\n const TUPLE_ELEMENT_NAME = {\n match: concat(identifier, /\\s*:/),\n keywords: \"_|0\",\n relevance: 0\n };\n // Matches tuples as well as the parameter list of a function type.\n const TUPLE = {\n begin: /\\(/,\n end: /\\)/,\n relevance: 0,\n keywords: KEYWORDS,\n contains: [\n 'self',\n TUPLE_ELEMENT_NAME,\n ...COMMENTS,\n ...KEYWORD_MODES,\n ...BUILT_INS,\n ...OPERATORS,\n NUMBER,\n STRING,\n ...IDENTIFIERS,\n ...ATTRIBUTES,\n TYPE\n ]\n };\n\n const GENERIC_PARAMETERS = {\n begin: //,\n contains: [\n ...COMMENTS,\n TYPE\n ]\n };\n const FUNCTION_PARAMETER_NAME = {\n begin: either(\n lookahead(concat(identifier, /\\s*:/)),\n lookahead(concat(identifier, /\\s+/, identifier, /\\s*:/))\n ),\n end: /:/,\n relevance: 0,\n contains: [\n {\n className: 'keyword',\n match: /\\b_\\b/\n },\n {\n className: 'params',\n match: identifier\n }\n ]\n };\n const FUNCTION_PARAMETERS = {\n begin: /\\(/,\n end: /\\)/,\n keywords: KEYWORDS,\n contains: [\n FUNCTION_PARAMETER_NAME,\n ...COMMENTS,\n ...KEYWORD_MODES,\n ...OPERATORS,\n NUMBER,\n STRING,\n ...ATTRIBUTES,\n TYPE,\n TUPLE\n ],\n endsParent: true,\n illegal: /[\"']/\n };\n // https://docs.swift.org/swift-book/ReferenceManual/Declarations.html#ID362\n const FUNCTION = {\n match: [\n /func/,\n /\\s+/,\n either(QUOTED_IDENTIFIER.match, identifier, operator)\n ],\n className: {\n 1: \"keyword\",\n 3: \"title.function\"\n },\n contains: [\n GENERIC_PARAMETERS,\n FUNCTION_PARAMETERS,\n WHITESPACE\n ],\n illegal: [\n /\\[/,\n /%/\n ]\n };\n\n // https://docs.swift.org/swift-book/ReferenceManual/Declarations.html#ID375\n // https://docs.swift.org/swift-book/ReferenceManual/Declarations.html#ID379\n const INIT_SUBSCRIPT = {\n match: [\n /\\b(?:subscript|init[?!]?)/,\n /\\s*(?=[<(])/,\n ],\n className: { 1: \"keyword\" },\n contains: [\n GENERIC_PARAMETERS,\n FUNCTION_PARAMETERS,\n WHITESPACE\n ],\n illegal: /\\[|%/\n };\n // https://docs.swift.org/swift-book/ReferenceManual/Declarations.html#ID380\n const OPERATOR_DECLARATION = {\n match: [\n /operator/,\n /\\s+/,\n operator\n ],\n className: {\n 1: \"keyword\",\n 3: \"title\"\n }\n };\n\n // https://docs.swift.org/swift-book/ReferenceManual/Declarations.html#ID550\n const PRECEDENCEGROUP = {\n begin: [\n /precedencegroup/,\n /\\s+/,\n typeIdentifier\n ],\n className: {\n 1: \"keyword\",\n 3: \"title\"\n },\n contains: [ TYPE ],\n keywords: [\n ...precedencegroupKeywords,\n ...literals\n ],\n end: /}/\n };\n\n // Add supported submodes to string interpolation.\n for (const variant of STRING.variants) {\n const interpolation = variant.contains.find(mode => mode.label === \"interpol\");\n // TODO: Interpolation can contain any expression, so there's room for improvement here.\n interpolation.keywords = KEYWORDS;\n const submodes = [\n ...KEYWORD_MODES,\n ...BUILT_INS,\n ...OPERATORS,\n NUMBER,\n STRING,\n ...IDENTIFIERS\n ];\n interpolation.contains = [\n ...submodes,\n {\n begin: /\\(/,\n end: /\\)/,\n contains: [\n 'self',\n ...submodes\n ]\n }\n ];\n }\n\n return {\n name: 'Swift',\n keywords: KEYWORDS,\n contains: [\n ...COMMENTS,\n FUNCTION,\n INIT_SUBSCRIPT,\n {\n beginKeywords: 'struct protocol class extension enum actor',\n end: '\\\\{',\n excludeEnd: true,\n keywords: KEYWORDS,\n contains: [\n hljs.inherit(hljs.TITLE_MODE, {\n className: \"title.class\",\n begin: /[A-Za-z$_][\\u00C0-\\u02B80-9A-Za-z$_]*/\n }),\n ...KEYWORD_MODES\n ]\n },\n OPERATOR_DECLARATION,\n PRECEDENCEGROUP,\n {\n beginKeywords: 'import',\n end: /$/,\n contains: [ ...COMMENTS ],\n relevance: 0\n },\n ...KEYWORD_MODES,\n ...BUILT_INS,\n ...OPERATORS,\n NUMBER,\n STRING,\n ...IDENTIFIERS,\n ...ATTRIBUTES,\n TYPE,\n TUPLE\n ]\n };\n}\n\nmodule.exports = swift;\n","/*\nLanguage: Protocol Buffers\nAuthor: Dan Tao \nDescription: Protocol buffer message definition format\nWebsite: https://developers.google.com/protocol-buffers/docs/proto3\nCategory: protocols\n*/\n\nfunction protobuf(hljs) {\n const KEYWORDS = [\n \"package\",\n \"import\",\n \"option\",\n \"optional\",\n \"required\",\n \"repeated\",\n \"group\",\n \"oneof\"\n ];\n const TYPES = [\n \"double\",\n \"float\",\n \"int32\",\n \"int64\",\n \"uint32\",\n \"uint64\",\n \"sint32\",\n \"sint64\",\n \"fixed32\",\n \"fixed64\",\n \"sfixed32\",\n \"sfixed64\",\n \"bool\",\n \"string\",\n \"bytes\"\n ];\n const CLASS_DEFINITION = {\n match: [\n /(message|enum|service)\\s+/,\n hljs.IDENT_RE\n ],\n scope: {\n 1: \"keyword\",\n 2: \"title.class\"\n }\n };\n\n return {\n name: 'Protocol Buffers',\n keywords: {\n keyword: KEYWORDS,\n type: TYPES,\n literal: [\n 'true',\n 'false'\n ]\n },\n contains: [\n hljs.QUOTE_STRING_MODE,\n hljs.NUMBER_MODE,\n hljs.C_LINE_COMMENT_MODE,\n hljs.C_BLOCK_COMMENT_MODE,\n CLASS_DEFINITION,\n {\n className: 'function',\n beginKeywords: 'rpc',\n end: /[{;]/,\n excludeEnd: true,\n keywords: 'rpc returns'\n },\n { // match enum items (relevance)\n // BLAH = ...;\n begin: /^\\s*[A-Z_]+(?=\\s*=[^\\n]+;$)/ }\n ]\n };\n}\n\nmodule.exports = protobuf;\n","var toString = {}.toString;\n\nmodule.exports = Array.isArray || function (arr) {\n return toString.call(arr) == '[object Array]';\n};\n","// style-loader: Adds some css to the DOM by adding a \n","import mod from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./CodeMirror.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./CodeMirror.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./CodeMirror.vue?vue&type=template&id=5390b64f&\"\nimport script from \"./CodeMirror.vue?vue&type=script&lang=js&\"\nexport * from \"./CodeMirror.vue?vue&type=script&lang=js&\"\nimport style0 from \"./CodeMirror.vue?vue&type=style&index=0&id=5390b64f&prod&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../@vue/cli-service/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","export { default as LabeledInput } from './LabeledInput.vue';\n","export * from \"-!../../../vue-style-loader/index.js??ref--10-oneOf-1-0!../../../@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../@vue/cli-service/node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../postcss-loader/src/index.js??ref--10-oneOf-1-3!../../../sass-loader/dist/cjs.js??ref--10-oneOf-1-4!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./YamlEditor.vue?vue&type=style&index=0&id=93239522&prod&lang=scss&scoped=true&\"","// style-loader: Adds some css to the DOM by adding a \n","import mod from \"-!../../../../cache-loader/dist/cjs.js??ref--14-0!../../../../thread-loader/dist/cjs.js!../../../../babel-loader/lib/index.js!../../../../cache-loader/dist/cjs.js??ref--2-0!../../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./ArrayList.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../cache-loader/dist/cjs.js??ref--14-0!../../../../thread-loader/dist/cjs.js!../../../../babel-loader/lib/index.js!../../../../cache-loader/dist/cjs.js??ref--2-0!../../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./ArrayList.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ArrayList.vue?vue&type=template&id=0fc06aaa&scoped=true&\"\nimport script from \"./ArrayList.vue?vue&type=script&lang=js&\"\nexport * from \"./ArrayList.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ArrayList.vue?vue&type=style&index=0&id=0fc06aaa&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"0fc06aaa\",\n null\n \n)\n\nexport default component.exports","/*\nLanguage: Dart\nRequires: markdown.js\nAuthor: Maxim Dikun \nDescription: Dart a modern, object-oriented language developed by Google. For more information see https://www.dartlang.org/\nWebsite: https://dart.dev\nCategory: scripting\n*/\n\n/** @type LanguageFn */\nfunction dart(hljs) {\n const SUBST = {\n className: 'subst',\n variants: [ { begin: '\\\\$[A-Za-z0-9_]+' } ]\n };\n\n const BRACED_SUBST = {\n className: 'subst',\n variants: [\n {\n begin: /\\$\\{/,\n end: /\\}/\n }\n ],\n keywords: 'true false null this is new super'\n };\n\n const STRING = {\n className: 'string',\n variants: [\n {\n begin: 'r\\'\\'\\'',\n end: '\\'\\'\\''\n },\n {\n begin: 'r\"\"\"',\n end: '\"\"\"'\n },\n {\n begin: 'r\\'',\n end: '\\'',\n illegal: '\\\\n'\n },\n {\n begin: 'r\"',\n end: '\"',\n illegal: '\\\\n'\n },\n {\n begin: '\\'\\'\\'',\n end: '\\'\\'\\'',\n contains: [\n hljs.BACKSLASH_ESCAPE,\n SUBST,\n BRACED_SUBST\n ]\n },\n {\n begin: '\"\"\"',\n end: '\"\"\"',\n contains: [\n hljs.BACKSLASH_ESCAPE,\n SUBST,\n BRACED_SUBST\n ]\n },\n {\n begin: '\\'',\n end: '\\'',\n illegal: '\\\\n',\n contains: [\n hljs.BACKSLASH_ESCAPE,\n SUBST,\n BRACED_SUBST\n ]\n },\n {\n begin: '\"',\n end: '\"',\n illegal: '\\\\n',\n contains: [\n hljs.BACKSLASH_ESCAPE,\n SUBST,\n BRACED_SUBST\n ]\n }\n ]\n };\n BRACED_SUBST.contains = [\n hljs.C_NUMBER_MODE,\n STRING\n ];\n\n const BUILT_IN_TYPES = [\n // dart:core\n 'Comparable',\n 'DateTime',\n 'Duration',\n 'Function',\n 'Iterable',\n 'Iterator',\n 'List',\n 'Map',\n 'Match',\n 'Object',\n 'Pattern',\n 'RegExp',\n 'Set',\n 'Stopwatch',\n 'String',\n 'StringBuffer',\n 'StringSink',\n 'Symbol',\n 'Type',\n 'Uri',\n 'bool',\n 'double',\n 'int',\n 'num',\n // dart:html\n 'Element',\n 'ElementList'\n ];\n const NULLABLE_BUILT_IN_TYPES = BUILT_IN_TYPES.map((e) => `${e}?`);\n\n const BASIC_KEYWORDS = [\n \"abstract\",\n \"as\",\n \"assert\",\n \"async\",\n \"await\",\n \"break\",\n \"case\",\n \"catch\",\n \"class\",\n \"const\",\n \"continue\",\n \"covariant\",\n \"default\",\n \"deferred\",\n \"do\",\n \"dynamic\",\n \"else\",\n \"enum\",\n \"export\",\n \"extends\",\n \"extension\",\n \"external\",\n \"factory\",\n \"false\",\n \"final\",\n \"finally\",\n \"for\",\n \"Function\",\n \"get\",\n \"hide\",\n \"if\",\n \"implements\",\n \"import\",\n \"in\",\n \"inferface\",\n \"is\",\n \"late\",\n \"library\",\n \"mixin\",\n \"new\",\n \"null\",\n \"on\",\n \"operator\",\n \"part\",\n \"required\",\n \"rethrow\",\n \"return\",\n \"set\",\n \"show\",\n \"static\",\n \"super\",\n \"switch\",\n \"sync\",\n \"this\",\n \"throw\",\n \"true\",\n \"try\",\n \"typedef\",\n \"var\",\n \"void\",\n \"while\",\n \"with\",\n \"yield\"\n ];\n\n const KEYWORDS = {\n keyword: BASIC_KEYWORDS,\n built_in:\n BUILT_IN_TYPES\n .concat(NULLABLE_BUILT_IN_TYPES)\n .concat([\n // dart:core\n 'Never',\n 'Null',\n 'dynamic',\n 'print',\n // dart:html\n 'document',\n 'querySelector',\n 'querySelectorAll',\n 'window'\n ]),\n $pattern: /[A-Za-z][A-Za-z0-9_]*\\??/\n };\n\n return {\n name: 'Dart',\n keywords: KEYWORDS,\n contains: [\n STRING,\n hljs.COMMENT(\n /\\/\\*\\*(?!\\/)/,\n /\\*\\//,\n {\n subLanguage: 'markdown',\n relevance: 0\n }\n ),\n hljs.COMMENT(\n /\\/{3,} ?/,\n /$/, { contains: [\n {\n subLanguage: 'markdown',\n begin: '.',\n end: '$',\n relevance: 0\n }\n ] }\n ),\n hljs.C_LINE_COMMENT_MODE,\n hljs.C_BLOCK_COMMENT_MODE,\n {\n className: 'class',\n beginKeywords: 'class interface',\n end: /\\{/,\n excludeEnd: true,\n contains: [\n { beginKeywords: 'extends implements' },\n hljs.UNDERSCORE_TITLE_MODE\n ]\n },\n hljs.C_NUMBER_MODE,\n {\n className: 'meta',\n begin: '@[A-Za-z]+'\n },\n { begin: '=>' // No markup, just a relevance booster\n }\n ]\n };\n}\n\nmodule.exports = dart;\n","// style-loader: Adds some css to the DOM by adding a \n","import mod from \"-!../../../../cache-loader/dist/cjs.js??ref--14-0!../../../../thread-loader/dist/cjs.js!../../../../babel-loader/lib/index.js!../../../../cache-loader/dist/cjs.js??ref--2-0!../../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./Select.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../cache-loader/dist/cjs.js??ref--14-0!../../../../thread-loader/dist/cjs.js!../../../../babel-loader/lib/index.js!../../../../cache-loader/dist/cjs.js??ref--2-0!../../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./Select.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Select.vue?vue&type=template&id=55a8f708&scoped=true&\"\nimport script from \"./Select.vue?vue&type=script&lang=js&\"\nexport * from \"./Select.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Select.vue?vue&type=style&index=0&id=55a8f708&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"55a8f708\",\n null\n \n)\n\nexport default component.exports","\n\n \n \n \n \n {{ addLabel }}\n \n \n \n \n \n\n\n\n","import mod from \"-!../../../../cache-loader/dist/cjs.js??ref--14-0!../../../../thread-loader/dist/cjs.js!../../../../babel-loader/lib/index.js!../../../../cache-loader/dist/cjs.js??ref--2-0!../../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./KeyValue.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../cache-loader/dist/cjs.js??ref--14-0!../../../../thread-loader/dist/cjs.js!../../../../babel-loader/lib/index.js!../../../../cache-loader/dist/cjs.js??ref--2-0!../../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./KeyValue.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./KeyValue.vue?vue&type=template&id=0c22da1d&\"\nimport script from \"./KeyValue.vue?vue&type=script&lang=js&\"\nexport * from \"./KeyValue.vue?vue&type=script&lang=js&\"\nimport style0 from \"./KeyValue.vue?vue&type=style&index=0&id=0c22da1d&prod&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../@vue/cli-service/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","\"use strict\";\nvar __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n var desc = Object.getOwnPropertyDescriptor(m, k);\n if (!desc || (\"get\" in desc ? !m.__esModule : desc.writable || desc.configurable)) {\n desc = { enumerable: true, get: function() { return m[k]; } };\n }\n Object.defineProperty(o, k2, desc);\n}) : (function(o, m, k, k2) {\n if (k2 === undefined) k2 = k;\n o[k2] = m[k];\n}));\nvar __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\n}) : function(o, v) {\n o[\"default\"] = v;\n});\nvar __importStar = (this && this.__importStar) || function (mod) {\n if (mod && mod.__esModule) return mod;\n var result = {};\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\n __setModuleDefault(result, mod);\n return result;\n};\nvar __importDefault = (this && this.__importDefault) || function (mod) {\n return (mod && mod.__esModule) ? mod : { \"default\": mod };\n};\nObject.defineProperty(exports, \"__esModule\", { value: true });\nexports.html = exports.parse = exports.defaultDiff2HtmlConfig = void 0;\nvar DiffParser = __importStar(require(\"./diff-parser\"));\nvar fileListPrinter = __importStar(require(\"./file-list-renderer\"));\nvar line_by_line_renderer_1 = __importStar(require(\"./line-by-line-renderer\"));\nvar side_by_side_renderer_1 = __importStar(require(\"./side-by-side-renderer\"));\nvar types_1 = require(\"./types\");\nvar hoganjs_utils_1 = __importDefault(require(\"./hoganjs-utils\"));\nexports.defaultDiff2HtmlConfig = __assign(__assign(__assign({}, line_by_line_renderer_1.defaultLineByLineRendererConfig), side_by_side_renderer_1.defaultSideBySideRendererConfig), { outputFormat: types_1.OutputFormatType.LINE_BY_LINE, drawFileList: true });\nfunction parse(diffInput, configuration) {\n if (configuration === void 0) { configuration = {}; }\n return DiffParser.parse(diffInput, __assign(__assign({}, exports.defaultDiff2HtmlConfig), configuration));\n}\nexports.parse = parse;\nfunction html(diffInput, configuration) {\n if (configuration === void 0) { configuration = {}; }\n var config = __assign(__assign({}, exports.defaultDiff2HtmlConfig), configuration);\n var diffJson = typeof diffInput === 'string' ? DiffParser.parse(diffInput, config) : diffInput;\n var hoganUtils = new hoganjs_utils_1.default(config);\n var fileList = config.drawFileList ? fileListPrinter.render(diffJson, hoganUtils) : '';\n var diffOutput = config.outputFormat === 'side-by-side'\n ? new side_by_side_renderer_1.default(hoganUtils, config).render(diffJson)\n : new line_by_line_renderer_1.default(hoganUtils, config).render(diffJson);\n return fileList + diffOutput;\n}\nexports.html = html;\n//# sourceMappingURL=diff2html.js.map","export * from \"-!../../../vue-style-loader/index.js??ref--10-oneOf-1-0!../../../@vue/cli-service/node_modules/css-loader/dist/cjs.js??ref--10-oneOf-1-1!../../../@vue/cli-service/node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../postcss-loader/src/index.js??ref--10-oneOf-1-2!../../../postcss-loader/src/index.js??ref--10-oneOf-1-3!../../../sass-loader/dist/cjs.js??ref--10-oneOf-1-4!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./CruResourceFooter.vue?vue&type=style&index=0&id=3e3d0b47&prod&lang=scss&\"","// Imports\nvar ___CSS_LOADER_API_IMPORT___ = require(\"../../../../@vue/cli-service/node_modules/css-loader/dist/runtime/api.js\");\nexports = ___CSS_LOADER_API_IMPORT___(false);\n// Module\nexports.push([module.id, \".key-value{width:100%}.key-value .file-selector.role-link{text-transform:none;padding:0}.key-value .kv-container{display:grid;align-items:center;-moz-column-gap:20px;column-gap:20px}.key-value .kv-container label{margin-bottom:0}.key-value .kv-container .kv-item{width:100%;margin:10px 0 10px 0}.key-value .kv-container .kv-item.extra,.key-value .kv-container .kv-item.key{align-self:flex-start}.key-value .kv-container .kv-item.value .value-container.upload-button{position:relative;display:flex;justify-content:right;align-items:center}.key-value .kv-container .kv-item.value .value-container .file-selector{position:absolute;margin-right:5px}.key-value .kv-container .kv-item.value textarea{padding:10px 10px 10px 10px}.key-value .kv-container .kv-item .text-monospace:not(.conceal){font-family:monospace,monospace}.key-value .remove{text-align:center}.key-value .remove BUTTON{padding:0}.key-value .title{margin-bottom:10px}.key-value .title .read-from-file{float:right}.key-value input{height:40px;line-height:1}.key-value .footer .protip{float:right;padding:5px 0}.key-value .download{text-align:right}.key-value .copy-value{padding:0 0 0 10px}\", \"\"]);\n// Exports\nmodule.exports = exports;\n","// style-loader: Adds some css to the DOM by adding a \n\n\n","import mod from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./FileDiff.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./FileDiff.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./FileDiff.vue?vue&type=template&id=0137ea75&scoped=true&\"\nimport script from \"./FileDiff.vue?vue&type=script&lang=js&\"\nexport * from \"./FileDiff.vue?vue&type=script&lang=js&\"\nimport style0 from \"./FileDiff.vue?vue&type=style&index=0&id=0137ea75&prod&lang=scss&scoped=true&\"\nimport style1 from \"./FileDiff.vue?vue&type=style&index=1&id=0137ea75&prod&scoped=true&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"0137ea75\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./YamlEditor.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./YamlEditor.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./YamlEditor.vue?vue&type=template&id=93239522&scoped=true&\"\nimport script from \"./YamlEditor.vue?vue&type=script&lang=js&\"\nexport * from \"./YamlEditor.vue?vue&type=script&lang=js&\"\nimport style0 from \"./YamlEditor.vue?vue&type=style&index=0&id=93239522&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"93239522\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c,_setup=_vm._self._setupProxy;return (!_vm.isView)?_c('div',[_c('div',{staticClass:\"spacer-small\"}),_vm._l((_vm.errors),function(err,idx){return _c('div',{key:idx},[_c('Banner',{attrs:{\"color\":\"error\",\"label\":err}})],1)}),_c('div',{staticClass:\"buttons\"},[_c('div',{staticClass:\"left\"},[_vm._t(\"left\")],2),_c('div',{staticClass:\"right\"},[_vm._t(\"cancel\",function(){return [_c('button',{staticClass:\"btn role-secondary\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.done}},[_c('t',{attrs:{\"k\":\"generic.cancel\"}})],1)]}),_vm._t(\"middle\"),_vm._t(\"save\",function(){return [(!_vm.isView)?_c('AsyncButton',{attrs:{\"mode\":_vm.mode,\"disabled\":_vm.disableSave},on:{\"click\":_vm.save}}):_vm._e()]}),_vm._t(\"right\")],2)])],2):_vm._e()\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\nimport Vue from 'vue';\nimport { _VIEW } from '@shell/config/query-params';\nimport AsyncButton, { AsyncButtonCallback } from '@shell/components/AsyncButton.vue';\nimport Banner from '@components/Banner/Banner.vue';\n\nexport default Vue.extend({\n components: { AsyncButton, Banner },\n\n props: {\n /**\n * Current mode of the page\n * passed to asyncButton to determine lables of the button\n */\n mode: {\n type: String,\n required: true,\n },\n\n errors: {\n type: Array,\n default: null,\n },\n\n disableSave: {\n type: Boolean,\n default: false,\n }\n },\n\n computed: {\n isView(): boolean {\n return this.mode === _VIEW;\n },\n },\n\n methods: {\n save(buttonCb: AsyncButtonCallback) {\n this.$emit('save', buttonCb);\n },\n\n done() {\n this.$emit('done');\n }\n }\n});\n","import mod from \"-!../../../../cache-loader/dist/cjs.js??ref--15-0!../../../../thread-loader/dist/cjs.js!../../../../babel-loader/lib/index.js!../../../../ts-loader/index.js??ref--15-3!../../../../cache-loader/dist/cjs.js??ref--2-0!../../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./Footer.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../../cache-loader/dist/cjs.js??ref--15-0!../../../../thread-loader/dist/cjs.js!../../../../babel-loader/lib/index.js!../../../../ts-loader/index.js??ref--15-3!../../../../cache-loader/dist/cjs.js??ref--2-0!../../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./Footer.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Footer.vue?vue&type=template&id=7a533750&\"\nimport script from \"./Footer.vue?vue&type=script&lang=ts&\"\nexport * from \"./Footer.vue?vue&type=script&lang=ts&\"\nimport style0 from \"./Footer.vue?vue&type=style&index=0&id=7a533750&prod&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../@vue/cli-service/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\n\n \n \n \n \n \n \n \n \n \n \n \n\n\n\n\n\n","import mod from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./ResourceYaml.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./ResourceYaml.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ResourceYaml.vue?vue&type=template&id=1a42fcca&scoped=true&\"\nimport script from \"./ResourceYaml.vue?vue&type=script&lang=js&\"\nexport * from \"./ResourceYaml.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ResourceYaml.vue?vue&type=style&index=0&id=1a42fcca&prod&lang=scss&scoped=true&\"\nimport style1 from \"./ResourceYaml.vue?vue&type=style&index=1&id=1a42fcca&prod&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"1a42fcca\",\n null\n \n)\n\nexport default component.exports","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{staticClass:\"cru-resource-footer\"},[_vm._t(\"footer-prefix\"),_vm._t(\"cancel\",function(){return [(!_vm.isView && _vm.showCancel)?_c('button',{staticClass:\"btn role-secondary\",attrs:{\"id\":\"cru-cancel\",\"data-testid\":_vm.componentTestid + '-cancel',\"type\":\"button\"},on:{\"click\":function($event){_vm.confirmCancelRequired ? _vm.checkCancel(true) : _vm.$emit('cancel-confirmed', true)}}},[_c('t',{attrs:{\"k\":\"generic.cancel\"}})],1):_vm._e()]}),_vm._t(\"default\",function(){return [(!_vm.isView)?_c('AsyncButton',{attrs:{\"data-testid\":_vm.componentTestid + '-create',\"mode\":_vm.finishButtonMode || _vm.mode},on:{\"click\":function($event){return _vm.$emit('finish', $event)}}}):_vm._e()]},{\"checkCancel\":_vm.checkCancel}),_c('ResourceCancelModal',{ref:\"cancelModal\",attrs:{\"is-cancel-modal\":_vm.isCancelModal,\"is-form\":_vm.isForm},on:{\"confirm-cancel\":function($event){return _vm.confirmCancel($event)}}})],2)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('modal',{staticClass:\"confirm-modal\",attrs:{\"name\":\"cancel-modal\",\"width\":440,\"height\":\"auto\"}},[_c('div',{staticClass:\"header\"},[_c('h4',{staticClass:\"text-default-text\"},[(_vm.isCancelModal)?_c('t',{attrs:{\"k\":\"generic.cancel\"}}):_c('span',[_vm._v(_vm._s(_vm.t(\"cruResource.backToForm\")))])],1)]),_c('div',{staticClass:\"body\"},[(_vm.isCancelModal)?_c('p',[_c('t',{attrs:{\"k\":\"cruResource.cancelBody\"}})],1):_c('p',[_c('t',{attrs:{\"k\":\"cruResource.backBody\"}})],1)]),_c('div',{staticClass:\"footer\"},[_c('button',{staticClass:\"btn role-secondary\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.cancelCancel}},[_vm._v(\" \"+_vm._s(_vm.isForm ? _vm.t(\"cruResource.reviewForm\") : _vm.t(\"cruResource.reviewYaml\"))+\" \")]),_c('button',{staticClass:\"btn role-primary\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.confirmCancel}},[(_vm.isCancelModal)?_c('span',[_vm._v(_vm._s(_vm.t(\"cruResource.confirmCancel\")))]):_c('span',[_vm._v(_vm._s(_vm.t(\"cruResource.confirmBack\")))])])])])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./ResourceCancelModal.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./ResourceCancelModal.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./ResourceCancelModal.vue?vue&type=template&id=7090e1b4&scoped=true&\"\nimport script from \"./ResourceCancelModal.vue?vue&type=script&lang=js&\"\nexport * from \"./ResourceCancelModal.vue?vue&type=script&lang=js&\"\nimport style0 from \"./ResourceCancelModal.vue?vue&type=style&index=0&id=7090e1b4&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"7090e1b4\",\n null\n \n)\n\nexport default component.exports","\n\n\n\n\n","import mod from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./CruResourceFooter.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./CruResourceFooter.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./CruResourceFooter.vue?vue&type=template&id=3e3d0b47&\"\nimport script from \"./CruResourceFooter.vue?vue&type=script&lang=js&\"\nexport * from \"./CruResourceFooter.vue?vue&type=script&lang=js&\"\nimport style0 from \"./CruResourceFooter.vue?vue&type=style&index=0&id=3e3d0b47&prod&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../@vue/cli-service/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","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{ref:\"wizard\",staticClass:\"outer-container\"},[(!_vm.stepsLoaded)?_c('Loading',{attrs:{\"mode\":\"relative\"}}):_vm._e(),_c('div',{staticClass:\"outer-container\",class:{'hide': !_vm.stepsLoaded}},[_c('div',{staticClass:\"header\"},[_c('div',{staticClass:\"title\"},[(_vm.showBanner)?_c('div',{staticClass:\"top choice-banner\"},[(!!_vm.bannerImage || !!_vm.bannerTitle)?_vm._t(\"bannerTitle\",function(){return [_c('div',{directives:[{name:\"show\",rawName:\"v-show\",value:(_vm.initialTitle || _vm.activeStepIndex > 0),expression:\"initialTitle || activeStepIndex > 0\"}],staticClass:\"title\"},[_vm._t(\"bannerTitleImage\",function(){return [(_vm.bannerImage)?_c('div',{staticClass:\"round-image\"},[_c('LazyImage',{staticClass:\"logo\",attrs:{\"src\":_vm.bannerImage}})],1):_vm._e()]}),_c('div',{staticClass:\"subtitle\"},[(_vm.bannerTitle)?_c('h2',[_vm._v(\" \"+_vm._s(_vm.bannerTitle)+\" \")]):_vm._e(),(_vm.bannerTitleSubtext)?_c('span',{staticClass:\"subtext\"},[_vm._v(_vm._s(_vm.bannerTitleSubtext))]):_vm._e()])],2)]}):_vm._e(),(_vm.activeStep && _vm.showSteps)?_c('div',{staticClass:\"subtitle\"},[_c('h2',[_vm._v(_vm._s(!!_vm.headerMode ? _vm.t(`wizard.${_vm.headerMode}`) : _vm.t(`asyncButton.${_vm.finishMode}.action`))+\": \"+_vm._s(_vm.t('wizard.step', {number:_vm.activeStepIndex+1})))]),_vm._t(\"bannerSubtext\",function(){return [(_vm.activeStep.subtext !== null)?_c('span',{staticClass:\"subtext\"},[_vm._v(_vm._s(_vm.activeStep.subtext || _vm.activeStep.label))]):_vm._e()]})],2):_vm._e()],2):_vm._e(),_c('div',{staticClass:\"step-sequence\"},[(_vm.showSteps)?_c('ul',{staticClass:\"steps\",attrs:{\"tabindex\":\"0\"},on:{\"keyup\":[function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"right\",39,$event.key,[\"Right\",\"ArrowRight\"]))return null;if('button' in $event && $event.button !== 2)return null;$event.stopPropagation();return _vm.selectNext(1)},function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"left\",37,$event.key,[\"Left\",\"ArrowLeft\"]))return null;if('button' in $event && $event.button !== 0)return null;$event.stopPropagation();return _vm.selectNext(-1)}]}},[_vm._l((_vm.visibleSteps),function(step,idx){return [_c('li',{key:step.name+'li',class:{step: true, active: step.name === _vm.activeStep.name, disabled: !_vm.isAvailable(step)},attrs:{\"id\":step.name,\"role\":\"presentation\"}},[_c('span',{staticClass:\"controls\",attrs:{\"aria-controls\":'step' + idx+1,\"aria-selected\":step.name === _vm.activeStep.name,\"role\":\"tab\"},on:{\"click\":function($event){$event.preventDefault();return _vm.goToStep(idx+1, true)}}},[_c('span',{staticClass:\"icon icon-lg\",class:{'icon-dot': step.name === _vm.activeStep.name, 'icon-dot-open':step.name !== _vm.activeStep.name}}),_c('span',[_vm._v(\" \"+_vm._s(step.label)+\" \")])])]),(idx!==_vm.visibleSteps.length-1)?_c('div',{key:step.name,staticClass:\"divider\"}):_vm._e()]})],2):_vm._e()])])]),_vm._t(\"stepContainer\",function(){return [_vm._l((_vm.steps),function(step){return [(step.name === _vm.activeStep.name || step.hidden)?_c('div',{key:step.name,staticClass:\"step-container__step\",class:{'hide': step.name !== _vm.activeStep.name && step.hidden}},[_vm._t(step.name,null,{\"step\":step})],2):_vm._e()]})]},{\"activeStep\":_vm.activeStep}),_vm._t(\"controlsContainer\",function(){return [_vm._l((_vm.errorStrings),function(err,idx){return _c('div',{key:idx},[_c('Banner',{staticClass:\"footer-error\",attrs:{\"color\":\"error\",\"label\":err,\"closable\":true},on:{\"close\":function($event){return _vm.errors.splice(idx, 1)}}})],1)}),_c('div',{staticClass:\"controls-row pt-20\",attrs:{\"id\":\"wizard-footer-controls\"}},[_vm._t(\"cancel\",function(){return [_c('button',{staticClass:\"btn role-secondary\",attrs:{\"type\":\"button\"},on:{\"click\":_vm.cancel}},[_c('t',{attrs:{\"k\":\"generic.cancel\"}})],1)]},{\"cancel\":_vm.cancel}),_c('div',{staticClass:\"controls-steps\"},[(_vm.showPrevious)?_vm._t(\"back\",function(){return [_c('button',{staticClass:\"btn role-secondary\",attrs:{\"disabled\":!_vm.canPrevious || (!_vm.editFirstStep && _vm.activeStepIndex===1),\"type\":\"button\"},on:{\"click\":function($event){return _vm.back()}}},[_c('t',{attrs:{\"k\":\"wizard.previous\"}})],1)]},{\"back\":_vm.back}):_vm._e(),(_vm.activeStepIndex === _vm.visibleSteps.length-1)?_vm._t(\"finish\",function(){return [_c('AsyncButton',{attrs:{\"disabled\":!_vm.activeStep.ready,\"mode\":_vm.finishMode},on:{\"click\":_vm.finish}})]},{\"finish\":_vm.finish}):_vm._t(\"next\",function(){return [_c('button',{class:_vm.nextButtonStyle,attrs:{\"disabled\":!_vm.canNext,\"type\":\"button\"},on:{\"click\":function($event){return _vm.next()}}},[_c('t',{attrs:{\"k\":_vm.nextButtonLabel}})],1)]},{\"next\":_vm.next})],2)],2)]},{\"showPrevious\":_vm.showPrevious,\"next\":_vm.next,\"back\":_vm.back,\"canNext\":_vm.canNext,\"activeStepIndex\":_vm.activeStepIndex,\"visibleSteps\":_vm.visibleSteps,\"errorStrings\":_vm.errorStrings,\"finish\":_vm.finish,\"cancel\":_vm.cancel,\"activeStep\":_vm.activeStep})],2)],1)\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","\n\n\n\n\n","import mod from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./Wizard.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./Wizard.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./Wizard.vue?vue&type=template&id=41c6a168&scoped=true&\"\nimport script from \"./Wizard.vue?vue&type=script&lang=js&\"\nexport * from \"./Wizard.vue?vue&type=script&lang=js&\"\nimport style0 from \"./Wizard.vue?vue&type=style&index=0&id=41c6a168&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"41c6a168\",\n null\n \n)\n\nexport default component.exports","\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n\n \n \n \n \n \n \n $emit('error', e)\"\n >\n \n \n \n \n \n\n\n\n","import mod from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./CruResource.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../cache-loader/dist/cjs.js??ref--14-0!../../../thread-loader/dist/cjs.js!../../../babel-loader/lib/index.js!../../../cache-loader/dist/cjs.js??ref--2-0!../../../@vue/cli-service/node_modules/vue-loader/lib/index.js??vue-loader-options!./CruResource.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./CruResource.vue?vue&type=template&id=8082eba2&scoped=true&\"\nimport script from \"./CruResource.vue?vue&type=script&lang=js&\"\nexport * from \"./CruResource.vue?vue&type=script&lang=js&\"\nimport style0 from \"./CruResource.vue?vue&type=style&index=0&id=8082eba2&prod&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../@vue/cli-service/node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"8082eba2\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""} \ No newline at end of file diff --git a/extensions/capi/0.3.0/plugin/package.json b/extensions/capi/0.3.0/plugin/package.json new file mode 100644 index 0000000..5ff84bf --- /dev/null +++ b/extensions/capi/0.3.0/plugin/package.json @@ -0,0 +1,19 @@ +{ + "name": "capi", + "description": "UI for CAPI cluster provisioning", + "version": "0.3.0", + "private": false, + "rancher": true, + "engines": { + "node": ">=16" + }, + "devDependencies": { + "@vue/cli-plugin-babel": "5.0.8", + "@vue/cli-service": "5.0.8", + "@vue/cli-plugin-typescript": "5.0.8" + }, + "files": [ + "**/*" + ], + "main": "capi-0.3.0.umd.min.js" +} \ No newline at end of file diff --git a/index.yaml b/index.yaml index e2ec355..73d8309 100644 --- a/index.yaml +++ b/index.yaml @@ -1,6 +1,27 @@ apiVersion: v1 entries: capi: + - annotations: + catalog.cattle.io/certified: rancher + catalog.cattle.io/display-name: CAPI UI + catalog.cattle.io/experimental: "true" + catalog.cattle.io/kube-version: '>= 1.16.0-0 < 1.29.0-0' + catalog.cattle.io/namespace: cattle-ui-plugin-system + catalog.cattle.io/os: linux + catalog.cattle.io/permits-os: linux, windows + catalog.cattle.io/rancher-version: '>= v2.8.0' + catalog.cattle.io/scope: management + catalog.cattle.io/ui-component: plugins + apiVersion: v2 + appVersion: 0.3.0 + created: "2024-03-14T22:51:54.106178297Z" + description: UI for CAPI cluster provisioning + digest: f9df66bfc9a861c49d0e59a72038644ac2fbe5e625b18ce783663d3740306c80 + name: capi + type: application + urls: + - assets/capi/capi-0.3.0.tgz + version: 0.3.0 - annotations: catalog.cattle.io/certified: rancher catalog.cattle.io/display-name: Rancher Turtles UI @@ -59,4 +80,4 @@ entries: urls: - assets/capi/capi-0.1.0.tgz version: 0.1.0 -generated: "2024-01-29T19:05:59.617047308Z" +generated: "2024-03-14T22:51:54.105437414Z"