Socket
Socket
Sign inDemoInstall

@clevercloud/components

Package Overview
Dependencies
73
Maintainers
11
Versions
154
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 13.0.0 to 13.1.0

dist/cc-product-list.js

2

dist/cc-addon-backups.js

@@ -1,2 +0,2 @@

import"./cc-button.js";import"./cc-input-text.js";import"./cc-block-section.js";import"./cc-block.js";import"./cc-notice.js";import{LitElement as e,html as t,css as c}from"lit";import{classMap as s}from"lit/directives/class-map.js";import{iconRemixHistoryLine as o,iconRemixCloseLine as a}from"./assets/cc-remix.icons.js";import{fakeString as n}from"./lib/fake-strings.js";import{i18n as i}from"./i18n.js";import{skeletonStyles as d}from"./styles/skeleton.js";import{ccLink as r,linkStyles as l}from"./templates/cc-link/cc-link.js";import"./cc-icon.js";const u={providerId:"",passwordForCommand:"",list:new Array(5).fill({createdAt:new Date,expiresAt:new Date})};class p extends e{static get properties(){return{backups:{type:Object},error:{type:Boolean},_overlay:{type:String,state:!0},_selectedBackup:{type:Object,state:!0}}}constructor(){super(),this.backups=null,this.error=!1,this._overlay=null,this._overlayTarget=null,this._selectedBackup=null}_getDescription(e){switch(e){case"es-addon":return i("cc-addon-backups.description.es-addon");case"es-addon-old":return i("cc-addon-backups.description.es-addon-old");case"postgresql-addon":return i("cc-addon-backups.description.postgresql-addon");case"mysql-addon":return i("cc-addon-backups.description.mysql-addon");case"mongodb-addon":return i("cc-addon-backups.description.mongodb-addon");case"redis-addon":return i("cc-addon-backups.description.redis-addon");case"jenkins":return i("cc-addon-backups.description.jenkins");default:return n(150)}}_getBackupText({createdAt:e,expiresAt:t}){return null!=t?i("cc-addon-backups.text",{createdAt:e,expiresAt:t}):i("cc-addon-backups.text.user-defined-retention",{createdAt:e})}_getBackupLink(e){switch(e){case"es-addon":return i("cc-addon-backups.link.es-addon");case"es-addon-old":return i("cc-addon-backups.link.es-addon-old");case"postgresql-addon":return i("cc-addon-backups.link.postgresql-addon");case"mysql-addon":return i("cc-addon-backups.link.mysql-addon");case"mongodb-addon":return i("cc-addon-backups.link.mongodb-addon");case"redis-addon":return i("cc-addon-backups.link.redis-addon");case"jenkins":return i("cc-addon-backups.link.jenkins");default:return n(18)}}_displaySectionWithService(e){switch(e){case"es-addon":return!0;case"es-addon-old":default:return!1}}_getRestoreWithServiceTitle(e){switch(e){case"es-addon":return i("cc-addon-backups.restore.with-service.title.es-addon");default:return n(20)}}_getRestoreWithServiceDescription(e,t){switch(e){case"es-addon":return i("cc-addon-backups.restore.with-service.description.es-addon",{href:t});default:return n(80)}}_getManualRestoreDescription(e){switch(e){case"es-addon":case"es-addon-old":return i("cc-addon-backups.restore.manual.description.es-addon");case"postgresql-addon":return i("cc-addon-backups.restore.manual.description.postgresql-addon");case"mysql-addon":return i("cc-addon-backups.restore.manual.description.mysql-addon");case"mongodb-addon":return i("cc-addon-backups.restore.manual.description.mongodb-addon");case"redis-addon":return i("cc-addon-backups.restore.manual.description.redis-addon");case"jenkins":return i("cc-addon-backups.restore.manual.description.jenkins");default:return n(70)}}_getDeleteWithServiceTitle(e){switch(e){case"es-addon":return i("cc-addon-backups.delete.with-service.title.es-addon");default:return n(20)}}_getDeleteWithServiceDescription(e,t){switch(e){case"es-addon":return i("cc-addon-backups.delete.with-service.description.es-addon",{href:t});default:return n(80)}}_getManualDeleteDescription(e){switch(e){case"es-addon":case"es-addon-old":return i("cc-addon-backups.delete.manual.description.es-addon");default:return n(70)}}_onOpenOverlay(e,t,c){this._overlay=t,this._selectedBackup=c,this._overlayTarget=e.target,this.updateComplete.then((()=>{this.shadowRoot.querySelector(".overlay cc-button").focus(),this.shadowRoot.querySelector(".overlay").scrollIntoView({behavior:"smooth",block:"center"})}))}_onCloseOverlay(){this._overlay=null,this._selectedBackup=null,this.updateComplete.then((()=>{this._overlayTarget.focus(),this._overlayTarget.scrollIntoView({behavior:"smooth",block:"center"}),this._overlayTarget=null}))}render(){const e=null==this.backups,c=e?u:this.backups,{providerId:n,list:d,passwordForCommand:l}=c,p=!this.error&&d.length>0,k=!this.error&&0===d.length;return t`<cc-block><div slot=title>${i("cc-addon-backups.title")}</div>${p?t`<div><span class=${s({skeleton:e})}>${this._getDescription(n)}</span></div><div class=backup-list>${c.list.map((c=>t`<div class=backup><span class=backup-icon><cc-icon .icon=${o} size=lg></cc-icon></span><span class=backup-text><span class="${s({skeleton:e})} backup-text-details">${this._getBackupText(c)}</span><br>${r(null==this._overlay?c.url:null,this._getBackupLink(n),e)}<cc-button link ?disabled=${null!=this._overlay} ?skeleton=${e} @cc-button:click=${e=>this._onOpenOverlay(e,"restore",c)}>${i("cc-addon-backups.restore.btn")}</cc-button>${null!=c.deleteCommand?t`<cc-button link ?disabled=${null!=this._overlay} ?skeleton=${e} @cc-button:click=${e=>this._onOpenOverlay(e,"delete",c)}>${i("cc-addon-backups.delete.btn")}</cc-button>`:""}</span></div>`))}</div>`:""} ${k?t`<div>${this._getDescription(n)}</div><div class=cc-block_empty-msg>${i("cc-addon-backups.empty")}</div>`:""} ${this.error?t`<cc-notice intent=warning message=${i("cc-addon-backups.loading-error")}></cc-notice>`:""} ${"restore"===this._overlay?t`<div slot=overlay><cc-block class=overlay><div slot=title>${i("cc-addon-backups.restore",this._selectedBackup)}</div><cc-button class=overlay-close-btn slot=button .icon=${a} hide-text outlined primary @cc-button:click=${this._onCloseOverlay}>${i("cc-addon-backups.close-btn")}</cc-button>${this._displaySectionWithService(n)?t`<cc-block-section><div slot=title>${this._getRestoreWithServiceTitle(n)}</div><div>${this._getRestoreWithServiceDescription(n,this._selectedBackup.url)}</div></cc-block-section>`:""}<cc-block-section><div slot=title>${i("cc-addon-backups.restore.manual.title")}</div><div>${this._getManualRestoreDescription(n)}</div>${null!=this._selectedBackup.restoreCommand?t`<cc-input-text readonly=readonly clipboard value=${this._selectedBackup.restoreCommand}></cc-input-text><div>${i("cc-addon-backups.command-password")}</div><cc-input-text readonly=readonly clipboard secret value=${l}></cc-input-text>`:""}</cc-block-section></cc-block></div>`:""} ${"delete"===this._overlay?t`<div slot=overlay><cc-block class=overlay><div slot=title>${i("cc-addon-backups.delete",this._selectedBackup)}</div><cc-button class=overlay-close-btn slot=button .icon=${a} hide-text outlined primary @cc-button:click=${this._onCloseOverlay}>${i("cc-addon-backups.close-btn")}</cc-button>${this._displaySectionWithService(n)?t`<cc-block-section><div slot=title>${this._getDeleteWithServiceTitle(n)}</div><div>${this._getDeleteWithServiceDescription(n,this._selectedBackup.url)}</div></cc-block-section>`:""}<cc-block-section><div slot=title>${i("cc-addon-backups.delete.manual.title")}</div><div>${this._getManualDeleteDescription(n)}</div><cc-input-text readonly=readonly clipboard value=${this._selectedBackup.deleteCommand}></cc-input-text><div>${i("cc-addon-backups.command-password")}</div><cc-input-text readonly=readonly clipboard secret value=${l}></cc-input-text></cc-block-section></cc-block></div>`:""}</cc-block>`}static get styles(){return[d,l,c`:host{display:grid;grid-gap:1em;line-height:1.5}.backup-list{display:grid;grid-gap:1.5em}.backup{display:flex;line-height:1.5em}.backup-icon,.backup-text{margin-right:.5em}.backup-icon{--cc-icon-color:#012a51}.backup-text{color:var(--cc-color-text-weak)}.backup-text-details:not(.skeleton) strong{color:var(--cc-color-text-strongest,#000)}[title]{cursor:help}.skeleton{background-color:#bbb}.overlay{max-width:80%;margin:2em;box-shadow:0 0 1em rgb(0 0 0 / 40%)}.overlay-close-btn{--cc-icon-size:1.4em}.cc-link,cc-button[link]{margin-right:.5em;vertical-align:baseline}cc-input-text{--cc-input-font-family:var(--cc-ff-monospace, monospace)}`]}}window.customElements.define("cc-addon-backups",p);export{p as CcAddonBackups};
import"./cc-button.js";import"./cc-input-text.js";import"./cc-block-section.js";import"./cc-block.js";import"./cc-notice.js";import{LitElement as e,html as t,css as c}from"lit";import{classMap as o}from"lit/directives/class-map.js";import{iconRemixHistoryLine as s,iconRemixCloseLine as n}from"./assets/cc-remix.icons.js";import{fakeString as a}from"./lib/fake-strings.js";import{i18n as i}from"./i18n.js";import{skeletonStyles as d}from"./styles/skeleton.js";import{ccLink as r,linkStyles as l}from"./templates/cc-link/cc-link.js";import"./cc-icon.js";const u={providerId:"",passwordForCommand:"",list:new Array(5).fill({createdAt:new Date,expiresAt:new Date})};class p extends e{static get properties(){return{backups:{type:Object},error:{type:Boolean},_overlay:{type:String,state:!0},_selectedBackup:{type:Object,state:!0}}}constructor(){super(),this.backups=null,this.error=!1,this._overlay=null,this._overlayTarget=null,this._selectedBackup=null}_getDescription(e){switch(e){case"es-addon":return i("cc-addon-backups.description.es-addon");case"es-addon-old":return i("cc-addon-backups.description.es-addon-old");case"postgresql-addon":return i("cc-addon-backups.description.postgresql-addon");case"mysql-addon":return i("cc-addon-backups.description.mysql-addon");case"mongodb-addon":return i("cc-addon-backups.description.mongodb-addon");case"redis-addon":return i("cc-addon-backups.description.redis-addon");case"jenkins":return i("cc-addon-backups.description.jenkins");default:return a(150)}}_getBackupText({createdAt:e,expiresAt:t}){return null!=t?i("cc-addon-backups.text",{createdAt:e,expiresAt:t}):i("cc-addon-backups.text.user-defined-retention",{createdAt:e})}_getBackupLink(e){switch(e){case"es-addon":return i("cc-addon-backups.link.es-addon");case"es-addon-old":return i("cc-addon-backups.link.es-addon-old");case"postgresql-addon":return i("cc-addon-backups.link.postgresql-addon");case"mysql-addon":return i("cc-addon-backups.link.mysql-addon");case"mongodb-addon":return i("cc-addon-backups.link.mongodb-addon");case"redis-addon":return i("cc-addon-backups.link.redis-addon");case"jenkins":return i("cc-addon-backups.link.jenkins");default:return a(18)}}_displaySectionWithService(e){return"es-addon"===e}_getRestoreWithServiceTitle(e){return"es-addon"===e?i("cc-addon-backups.restore.with-service.title.es-addon"):a(20)}_getRestoreWithServiceDescription(e,t){return"es-addon"===e?i("cc-addon-backups.restore.with-service.description.es-addon",{href:t}):a(80)}_getManualRestoreDescription(e){switch(e){case"es-addon":case"es-addon-old":return i("cc-addon-backups.restore.manual.description.es-addon");case"postgresql-addon":return i("cc-addon-backups.restore.manual.description.postgresql-addon");case"mysql-addon":return i("cc-addon-backups.restore.manual.description.mysql-addon");case"mongodb-addon":return i("cc-addon-backups.restore.manual.description.mongodb-addon");case"redis-addon":return i("cc-addon-backups.restore.manual.description.redis-addon");case"jenkins":return i("cc-addon-backups.restore.manual.description.jenkins");default:return a(70)}}_getDeleteWithServiceTitle(e){return"es-addon"===e?i("cc-addon-backups.delete.with-service.title.es-addon"):a(20)}_getDeleteWithServiceDescription(e,t){return"es-addon"===e?i("cc-addon-backups.delete.with-service.description.es-addon",{href:t}):a(80)}_getManualDeleteDescription(e){switch(e){case"es-addon":case"es-addon-old":return i("cc-addon-backups.delete.manual.description.es-addon");default:return a(70)}}_onOpenOverlay(e,t,c){this._overlay=t,this._selectedBackup=c,this._overlayTarget=e.target,this.updateComplete.then((()=>{this.shadowRoot.querySelector(".overlay cc-button").focus(),this.shadowRoot.querySelector(".overlay").scrollIntoView({behavior:"smooth",block:"center"})}))}_onCloseOverlay(){this._overlay=null,this._selectedBackup=null,this.updateComplete.then((()=>{this._overlayTarget.focus(),this._overlayTarget.scrollIntoView({behavior:"smooth",block:"center"}),this._overlayTarget=null}))}render(){const e=null==this.backups,c=e?u:this.backups,{providerId:a,list:d,passwordForCommand:l}=c,p=!this.error&&d.length>0,k=!this.error&&0===d.length;return t`<cc-block><div slot=title>${i("cc-addon-backups.title")}</div>${p?t`<div><span class=${o({skeleton:e})}>${this._getDescription(a)}</span></div><div class=backup-list>${c.list.map((c=>t`<div class=backup><span class=backup-icon><cc-icon .icon=${s} size=lg></cc-icon></span><span class=backup-text><span class="${o({skeleton:e})} backup-text-details">${this._getBackupText(c)}</span><br>${r(null==this._overlay?c.url:null,this._getBackupLink(a),e)}<cc-button link ?disabled=${null!=this._overlay} ?skeleton=${e} @cc-button:click=${e=>this._onOpenOverlay(e,"restore",c)}>${i("cc-addon-backups.restore.btn")}</cc-button>${null!=c.deleteCommand?t`<cc-button link ?disabled=${null!=this._overlay} ?skeleton=${e} @cc-button:click=${e=>this._onOpenOverlay(e,"delete",c)}>${i("cc-addon-backups.delete.btn")}</cc-button>`:""}</span></div>`))}</div>`:""} ${k?t`<div>${this._getDescription(a)}</div><div class=cc-block_empty-msg>${i("cc-addon-backups.empty")}</div>`:""} ${this.error?t`<cc-notice intent=warning message=${i("cc-addon-backups.loading-error")}></cc-notice>`:""} ${"restore"===this._overlay?t`<div slot=overlay><cc-block class=overlay><div slot=title>${i("cc-addon-backups.restore",this._selectedBackup)}</div><cc-button class=overlay-close-btn slot=button .icon=${n} hide-text outlined primary @cc-button:click=${this._onCloseOverlay}>${i("cc-addon-backups.close-btn")}</cc-button>${this._displaySectionWithService(a)?t`<cc-block-section><div slot=title>${this._getRestoreWithServiceTitle(a)}</div><div>${this._getRestoreWithServiceDescription(a,this._selectedBackup.url)}</div></cc-block-section>`:""}<cc-block-section><div slot=title>${i("cc-addon-backups.restore.manual.title")}</div><div>${this._getManualRestoreDescription(a)}</div>${null!=this._selectedBackup.restoreCommand?t`<cc-input-text readonly=readonly clipboard value=${this._selectedBackup.restoreCommand}></cc-input-text><div>${i("cc-addon-backups.command-password")}</div><cc-input-text readonly=readonly clipboard secret value=${l}></cc-input-text>`:""}</cc-block-section></cc-block></div>`:""} ${"delete"===this._overlay?t`<div slot=overlay><cc-block class=overlay><div slot=title>${i("cc-addon-backups.delete",this._selectedBackup)}</div><cc-button class=overlay-close-btn slot=button .icon=${n} hide-text outlined primary @cc-button:click=${this._onCloseOverlay}>${i("cc-addon-backups.close-btn")}</cc-button>${this._displaySectionWithService(a)?t`<cc-block-section><div slot=title>${this._getDeleteWithServiceTitle(a)}</div><div>${this._getDeleteWithServiceDescription(a,this._selectedBackup.url)}</div></cc-block-section>`:""}<cc-block-section><div slot=title>${i("cc-addon-backups.delete.manual.title")}</div><div>${this._getManualDeleteDescription(a)}</div><cc-input-text readonly=readonly clipboard value=${this._selectedBackup.deleteCommand}></cc-input-text><div>${i("cc-addon-backups.command-password")}</div><cc-input-text readonly=readonly clipboard secret value=${l}></cc-input-text></cc-block-section></cc-block></div>`:""}</cc-block>`}static get styles(){return[d,l,c`:host{display:grid;grid-gap:1em;line-height:1.5}.backup-list{display:grid;grid-gap:1.5em}.backup{display:flex;line-height:1.5em}.backup-icon,.backup-text{margin-right:.5em}.backup-icon{--cc-icon-color:#012a51}.backup-text{color:var(--cc-color-text-weak)}.backup-text-details:not(.skeleton) strong{color:var(--cc-color-text-strongest,#000)}[title]{cursor:help}.skeleton{background-color:#bbb}.overlay{max-width:80%;margin:2em;box-shadow:0 0 1em rgb(0 0 0 / 40%)}.overlay-close-btn{--cc-icon-size:1.4em}.cc-link,cc-button[link]{margin-right:.5em;vertical-align:baseline}cc-input-text{--cc-input-font-family:var(--cc-ff-monospace, monospace)}`]}}window.customElements.define("cc-addon-backups",p);export{p as CcAddonBackups};
//# sourceMappingURL=cc-addon-backups.js.map

@@ -1,2 +0,2 @@

import"./cc-input-text.js";import"./cc-block.js";import"./cc-notice.js";import{LitElement as e,html as t,css as r}from"lit";import{ifDefined as i}from"lit/directives/if-defined.js";import{i18n as c}from"./i18n.js";import{skeletonStyles as s}from"./styles/skeleton.js";class a extends e{static get properties(){return{credentials:{type:Array},error:{type:Boolean},image:{type:String},name:{type:String},toggleState:{type:Boolean,attribute:"toggle-state"},type:{type:String}}}constructor(){super(),this.credentials=null,this.error=!1,this.image=null,this.name=null,this.toggleState="off",this.type=null}_getDescription(e){switch(e){case"apm":return c("cc-addon-credentials.description.apm");case"elasticsearch":return c("cc-addon-credentials.description.elasticsearch");case"kibana":return c("cc-addon-credentials.description.kibana");case"pulsar":return c("cc-addon-credentials.description.pulsar");default:return""}}_getFieldName(e){switch(e){case"auth-token":return c("cc-addon-credentials.field.auth-token");case"host":return c("cc-addon-credentials.field.host");case"password":return c("cc-addon-credentials.field.password");case"url":return c("cc-addon-credentials.field.url");case"user":return c("cc-addon-credentials.field.user");default:return""}}render(){return t`<cc-block image=${i(this.image??void 0)} state=${this.toggleState}><div slot=title>${c("cc-addon-credentials.title",{name:this.name})}</div>${this.error?"":t`<div>${this._getDescription(this.type)}</div>${null!=this.credentials?t`<div class=credential-list>${this.credentials.map((({type:e,secret:r,value:c})=>t`<cc-input-text readonly=readonly clipboard ?secret=${r} ?skeleton=${null==c} value=${i(c)} label=${this._getFieldName(e)}></cc-input-text>`))}</div>`:""}`} ${this.error?t`<cc-notice intent=warning message=${c("cc-addon-credentials.loading-error")}></cc-notice>`:""}</cc-block>`}static get styles(){return[s,r`:host{display:block}.credential-list{display:flex;flex-wrap:wrap;gap:1em}cc-input-text{--cc-input-font-family:var(--cc-ff-monospace, monospace);flex:1 1 18em}.skeleton{background-color:#bbb}`]}}window.customElements.define("cc-addon-credentials",a);export{a as CcAddonCredentials};
import"./cc-input-text.js";import"./cc-block.js";import"./cc-notice.js";import{LitElement as e,html as t,css as r}from"lit";import{ifDefined as i}from"lit/directives/if-defined.js";import{i18n as c}from"./i18n.js";import{skeletonStyles as a}from"./styles/skeleton.js";class s extends e{static get properties(){return{credentials:{type:Array},error:{type:Boolean},image:{type:String},name:{type:String},toggleState:{type:Boolean,attribute:"toggle-state"},type:{type:String}}}constructor(){super(),this.credentials=null,this.error=!1,this.image=null,this.name=null,this.toggleState="off",this.type=null}_getDescription(e){switch(e){case"apm":return c("cc-addon-credentials.description.apm");case"elasticsearch":return c("cc-addon-credentials.description.elasticsearch");case"kibana":return c("cc-addon-credentials.description.kibana");case"pulsar":return c("cc-addon-credentials.description.pulsar");case"materiadb-kv":return c("cc-addon-credentials.description.materiadb-kv");default:return""}}_getFieldName(e){switch(e){case"auth-token":return c("cc-addon-credentials.field.auth-token");case"host":return c("cc-addon-credentials.field.host");case"password":return c("cc-addon-credentials.field.password");case"url":return c("cc-addon-credentials.field.url");case"user":return c("cc-addon-credentials.field.user");case"port":return c("cc-addon-credentials.field.port");default:return""}}render(){return t`<cc-block image=${i(this.image??void 0)} state=${this.toggleState}><div slot=title>${c("cc-addon-credentials.title",{name:this.name})}</div>${this.error?"":t`<div>${this._getDescription(this.type)}</div>${null!=this.credentials?t`<div class=credential-list>${this.credentials.map((({type:e,secret:r,value:c})=>t`<cc-input-text readonly=readonly clipboard ?secret=${r} ?skeleton=${null==c} value=${i(c)} label=${this._getFieldName(e)}></cc-input-text>`))}</div>`:""}`} ${this.error?t`<cc-notice intent=warning message=${c("cc-addon-credentials.loading-error")}></cc-notice>`:""}</cc-block>`}static get styles(){return[a,r`:host{display:block}.credential-list{display:flex;flex-wrap:wrap;gap:1em}cc-input-text{--cc-input-font-family:var(--cc-ff-monospace, monospace);flex:1 1 18em}.skeleton{background-color:#bbb}`]}}window.customElements.define("cc-addon-credentials",s);export{s as CcAddonCredentials};
//# sourceMappingURL=cc-addon-credentials.js.map

@@ -1,2 +0,2 @@

import"./cc-addon-option-form.js";import{LitElement as t,html as o,css as n}from"lit";import{dispatchCustomEvent as i}from"./lib/events.js";import{i18n as s}from"./i18n.js";import{ccAddonEncryptionAtRestOption as r}from"./templates/cc-addon-encryption-at-rest-option/cc-addon-encryption-at-rest-option.js";class e extends t{static get properties(){return{options:{type:Array}}}constructor(){super(),this.options=[]}_onFormOptionsSubmit({detail:t}){i(this,"submit",t)}_getFormOptions(){return this.options.map((t=>{switch(t.name){case"encryption":return r(t);default:return null}})).filter((t=>null!=t))}render(){const t=this._getFormOptions(),n=s("cc-addon-jenkins-options.title");return o`<cc-addon-option-form title=${n} .options=${t} @cc-addon-option-form:submit=${this._onFormOptionsSubmit}><div slot=description>${s("cc-addon-jenkins-options.description")}</div></cc-addon-option-form>`}static get styles(){return[n`:host{display:block}`]}}window.customElements.define("cc-addon-jenkins-options",e);export{e as CcAddonJenkinsOptions};
import"./cc-addon-option-form.js";import{LitElement as t,html as o,css as n}from"lit";import{dispatchCustomEvent as i}from"./lib/events.js";import{i18n as s}from"./i18n.js";import{ccAddonEncryptionAtRestOption as r}from"./templates/cc-addon-encryption-at-rest-option/cc-addon-encryption-at-rest-option.js";class e extends t{static get properties(){return{options:{type:Array}}}constructor(){super(),this.options=[]}_onFormOptionsSubmit({detail:t}){i(this,"submit",t)}_getFormOptions(){return this.options.map((t=>"encryption"===t.name?r(t):null)).filter((t=>null!=t))}render(){const t=this._getFormOptions(),n=s("cc-addon-jenkins-options.title");return o`<cc-addon-option-form title=${n} .options=${t} @cc-addon-option-form:submit=${this._onFormOptionsSubmit}><div slot=description>${s("cc-addon-jenkins-options.description")}</div></cc-addon-option-form>`}static get styles(){return[n`:host{display:block}`]}}window.customElements.define("cc-addon-jenkins-options",e);export{e as CcAddonJenkinsOptions};
//# sourceMappingURL=cc-addon-jenkins-options.js.map

@@ -1,2 +0,2 @@

import"./cc-addon-linked-apps.js";import"./cc-smart-container.js";import{getLinkedApplications as n}from"@clevercloud/client/esm/api/v2/addon.js";import{getAllZones as o}from"@clevercloud/client/esm/api/v4/product.js";import{ONE_DAY as i}from"@clevercloud/client/esm/with-cache.js";import{defineSmartComponent as a}from"./lib/define-smart-component.js";import{sendToApi as e}from"./lib/send-to-api.js";function t({apiConfig:n,signal:a}){return o().then(e({apiConfig:n,signal:a,cacheDelay:i}))}function r({apiConfig:o,signal:i,ownerId:a,addonId:t}){return n({id:a,addonId:t}).then(e({apiConfig:o,signal:i}))}a({selector:"cc-addon-linked-apps",params:{apiConfig:{type:Object},ownerId:{type:String},addonId:{type:String}},onContextUpdate({context:n,updateComponent:o,signal:i}){o("state",{type:"loading"});const{apiConfig:a,ownerId:e,addonId:d}=n;(function({apiConfig:n,signal:o,ownerId:i,addonId:a}){return Promise.all([t({apiConfig:n,signal:o}),r({apiConfig:n,signal:o,ownerId:i,addonId:a})]).then((([n,o])=>o.map((o=>{const{name:a,instance:e}=o,t=e.variant?.name,r=e.variant?.logo;return{name:a,link:function(n,o){return n.startsWith("orga_")?`/organisations/${n}/applications/${o}`:`/users/me/applications/${o}`}(i,o.id),variantName:t,variantLogoUrl:r,zone:n.find((n=>n.name===o.zone))}}))))})({apiConfig:a,ownerId:e,addonId:d,signal:i}).then((n=>{o("state",{type:"loaded",linkedApplications:n})})).catch((n=>{console.error(n),o("state",{type:"error"})}))}});
import"./cc-addon-linked-apps.js";import"./cc-smart-container.js";import{getLinkedApplications as n}from"@clevercloud/client/esm/api/v2/addon.js";import{getAllZones as o}from"@clevercloud/client/esm/api/v4/product.js";import{ONE_DAY as i}from"@clevercloud/client/esm/with-cache.js";import{defineSmartComponent as a}from"./lib/define-smart-component.js";import{sendToApi as e}from"./lib/send-to-api.js";function t({apiConfig:n,signal:a}){return o().then(e({apiConfig:n,signal:a,cacheDelay:i}))}function r({apiConfig:o,signal:i,ownerId:a,addonId:t}){return n({id:a,addonId:t}).then(e({apiConfig:o,signal:i}))}a({selector:"cc-addon-linked-apps",params:{apiConfig:{type:Object},ownerId:{type:String},addonId:{type:String}},onContextUpdate({context:n,updateComponent:o,signal:i}){o("state",{type:"loading"});const{apiConfig:a,ownerId:e,addonId:d}=n;(function({apiConfig:n,signal:o,ownerId:i,addonId:a}){return Promise.all([t({apiConfig:n,signal:o}),r({apiConfig:n,signal:o,ownerId:i,addonId:a})]).then((([n,o])=>o.map((o=>{const{name:a,instance:e}=o,t=e.variant?.name,r=e.variant?.logo,d=function(n,o){return n.startsWith("orga_")?`/organisations/${n}/applications/${o}`:`/users/me/applications/${o}`}(i,o.id);return{name:a,link:d,variantName:t,variantLogoUrl:r,zone:n.find((n=>n.name===o.zone))}}))))})({apiConfig:a,ownerId:e,addonId:d,signal:i}).then((n=>{o("state",{type:"loaded",linkedApplications:n})})).catch((n=>{console.error(n),o("state",{type:"error"})}))}});
//# sourceMappingURL=cc-addon-linked-apps.smart.js.map

@@ -1,2 +0,2 @@

import"./cc-addon-option-form.js";import{LitElement as o,html as t,css as n}from"lit";import{dispatchCustomEvent as i}from"./lib/events.js";import{i18n as r}from"./i18n.js";import{ccAddonEncryptionAtRestOption as s}from"./templates/cc-addon-encryption-at-rest-option/cc-addon-encryption-at-rest-option.js";class e extends o{static get properties(){return{options:{type:Array}}}constructor(){super(),this.options=[]}_onFormOptionsSubmit({detail:o}){i(this,"submit",o)}_getFormOptions(){return this.options.map((o=>{switch(o.name){case"encryption":return s(o);default:return null}})).filter((o=>null!=o))}render(){const o=this._getFormOptions(),n=r("cc-addon-mongodb-options.title");return t`<cc-addon-option-form title=${n} .options=${o} @cc-addon-option-form:submit=${this._onFormOptionsSubmit}><div slot=description>${r("cc-addon-mongodb-options.description")}</div></cc-addon-option-form>`}static get styles(){return[n`:host{display:block}`]}}window.customElements.define("cc-addon-mongodb-options",e);export{e as CcAddonMongodbOptions};
import"./cc-addon-option-form.js";import{LitElement as o,html as t,css as n}from"lit";import{dispatchCustomEvent as i}from"./lib/events.js";import{i18n as s}from"./i18n.js";import{ccAddonEncryptionAtRestOption as r}from"./templates/cc-addon-encryption-at-rest-option/cc-addon-encryption-at-rest-option.js";class e extends o{static get properties(){return{options:{type:Array}}}constructor(){super(),this.options=[]}_onFormOptionsSubmit({detail:o}){i(this,"submit",o)}_getFormOptions(){return this.options.map((o=>"encryption"===o.name?r(o):null)).filter((o=>null!=o))}render(){const o=this._getFormOptions(),n=s("cc-addon-mongodb-options.title");return t`<cc-addon-option-form title=${n} .options=${o} @cc-addon-option-form:submit=${this._onFormOptionsSubmit}><div slot=description>${s("cc-addon-mongodb-options.description")}</div></cc-addon-option-form>`}static get styles(){return[n`:host{display:block}`]}}window.customElements.define("cc-addon-mongodb-options",e);export{e as CcAddonMongodbOptions};
//# sourceMappingURL=cc-addon-mongodb-options.js.map

@@ -1,2 +0,2 @@

import"./cc-addon-option-form.js";import{LitElement as t,html as o,css as i}from"lit";import{dispatchCustomEvent as n}from"./lib/events.js";import{i18n as s}from"./i18n.js";import{ccAddonEncryptionAtRestOption as r}from"./templates/cc-addon-encryption-at-rest-option/cc-addon-encryption-at-rest-option.js";class e extends t{static get properties(){return{options:{type:Array}}}constructor(){super(),this.options=[]}_onFormOptionsSubmit({detail:t}){n(this,"submit",t)}_getFormOptions(){return this.options.map((t=>{switch(t.name){case"encryption":return r(t);default:return null}})).filter((t=>null!=t))}render(){const t=this._getFormOptions(),i=s("cc-addon-mysql-options.title");return o`<cc-addon-option-form title=${i} .options=${t} @cc-addon-option-form:submit=${this._onFormOptionsSubmit}><div slot=description>${s("cc-addon-mysql-options.description")}</div></cc-addon-option-form>`}static get styles(){return[i`:host{display:block}`]}}window.customElements.define("cc-addon-mysql-options",e);export{e as CcAddonMysqlOptions};
import"./cc-addon-option-form.js";import{LitElement as t,html as o,css as i}from"lit";import{dispatchCustomEvent as n}from"./lib/events.js";import{i18n as s}from"./i18n.js";import{ccAddonEncryptionAtRestOption as r}from"./templates/cc-addon-encryption-at-rest-option/cc-addon-encryption-at-rest-option.js";class e extends t{static get properties(){return{options:{type:Array}}}constructor(){super(),this.options=[]}_onFormOptionsSubmit({detail:t}){n(this,"submit",t)}_getFormOptions(){return this.options.map((t=>"encryption"===t.name?r(t):null)).filter((t=>null!=t))}render(){const t=this._getFormOptions(),i=s("cc-addon-mysql-options.title");return o`<cc-addon-option-form title=${i} .options=${t} @cc-addon-option-form:submit=${this._onFormOptionsSubmit}><div slot=description>${s("cc-addon-mysql-options.description")}</div></cc-addon-option-form>`}static get styles(){return[i`:host{display:block}`]}}window.customElements.define("cc-addon-mysql-options",e);export{e as CcAddonMysqlOptions};
//# sourceMappingURL=cc-addon-mysql-options.js.map

@@ -1,2 +0,2 @@

import"./cc-addon-option-form.js";import{LitElement as t,html as o,css as i}from"lit";import{dispatchCustomEvent as n}from"./lib/events.js";import{i18n as s}from"./i18n.js";import{ccAddonEncryptionAtRestOption as r}from"./templates/cc-addon-encryption-at-rest-option/cc-addon-encryption-at-rest-option.js";class e extends t{static get properties(){return{options:{type:Array}}}constructor(){super(),this.options=[]}_onFormOptionsSubmit({detail:t}){n(this,"submit",t)}_getFormOptions(){return this.options.map((t=>{switch(t.name){case"encryption":return r(t);default:return null}})).filter((t=>null!=t))}render(){const t=this._getFormOptions(),i=s("cc-addon-postgresql-options.title");return o`<cc-addon-option-form title=${i} .options=${t} @cc-addon-option-form:submit=${this._onFormOptionsSubmit}><div slot=description>${s("cc-addon-postgresql-options.description")}</div></cc-addon-option-form>`}static get styles(){return[i`:host{display:block}`]}}window.customElements.define("cc-addon-postgresql-options",e);export{e as CcAddonPostgresqlOptions};
import"./cc-addon-option-form.js";import{LitElement as t,html as o,css as i}from"lit";import{dispatchCustomEvent as n}from"./lib/events.js";import{i18n as s}from"./i18n.js";import{ccAddonEncryptionAtRestOption as r}from"./templates/cc-addon-encryption-at-rest-option/cc-addon-encryption-at-rest-option.js";class e extends t{static get properties(){return{options:{type:Array}}}constructor(){super(),this.options=[]}_onFormOptionsSubmit({detail:t}){n(this,"submit",t)}_getFormOptions(){return this.options.map((t=>"encryption"===t.name?r(t):null)).filter((t=>null!=t))}render(){const t=this._getFormOptions(),i=s("cc-addon-postgresql-options.title");return o`<cc-addon-option-form title=${i} .options=${t} @cc-addon-option-form:submit=${this._onFormOptionsSubmit}><div slot=description>${s("cc-addon-postgresql-options.description")}</div></cc-addon-option-form>`}static get styles(){return[i`:host{display:block}`]}}window.customElements.define("cc-addon-postgresql-options",e);export{e as CcAddonPostgresqlOptions};
//# sourceMappingURL=cc-addon-postgresql-options.js.map

@@ -1,2 +0,2 @@

import"./cc-addon-option-form.js";import{LitElement as t,html as o,css as i}from"lit";import{dispatchCustomEvent as n}from"./lib/events.js";import{i18n as r}from"./i18n.js";import{ccAddonEncryptionAtRestOption as s}from"./templates/cc-addon-encryption-at-rest-option/cc-addon-encryption-at-rest-option.js";class e extends t{static get properties(){return{options:{type:Array}}}constructor(){super(),this.options=[]}_onFormOptionsSubmit({detail:t}){n(this,"submit",t)}_getFormOptions(){return this.options.map((t=>{switch(t.name){case"encryption":return s(t);default:return null}})).filter((t=>null!=t))}render(){const t=this._getFormOptions(),i=r("cc-addon-redis-options.title");return o`<cc-addon-option-form title=${i} .options=${t} @cc-addon-option-form:submit=${this._onFormOptionsSubmit}><div slot=description>${r("cc-addon-redis-options.description")}</div></cc-addon-option-form>`}static get styles(){return[i`:host{display:block}`]}}window.customElements.define("cc-addon-redis-options",e);export{e as CcAddonRedisOptions};
import"./cc-addon-option-form.js";import{LitElement as t,html as o,css as i}from"lit";import{dispatchCustomEvent as n}from"./lib/events.js";import{i18n as s}from"./i18n.js";import{ccAddonEncryptionAtRestOption as r}from"./templates/cc-addon-encryption-at-rest-option/cc-addon-encryption-at-rest-option.js";class e extends t{static get properties(){return{options:{type:Array}}}constructor(){super(),this.options=[]}_onFormOptionsSubmit({detail:t}){n(this,"submit",t)}_getFormOptions(){return this.options.map((t=>"encryption"===t.name?r(t):null)).filter((t=>null!=t))}render(){const t=this._getFormOptions(),i=s("cc-addon-redis-options.title");return o`<cc-addon-option-form title=${i} .options=${t} @cc-addon-option-form:submit=${this._onFormOptionsSubmit}><div slot=description>${s("cc-addon-redis-options.description")}</div></cc-addon-option-form>`}static get styles(){return[i`:host{display:block}`]}}window.customElements.define("cc-addon-redis-options",e);export{e as CcAddonRedisOptions};
//# sourceMappingURL=cc-addon-redis-options.js.map

@@ -1,2 +0,2 @@

import"./cc-article-list.js";import"./cc-smart-container.js";import{request as t}from"@clevercloud/client/esm/request.fetch.js";import{withCache as e}from"@clevercloud/client/esm/with-cache.js";import{defineSmartComponent as r}from"./lib/define-smart-component.js";import{parseRssFeed as c}from"./lib/xml-parser.js";r({selector:"cc-article-list",params:{lang:{type:String},limit:{type:Number}},onContextUpdate({context:r,updateComponent:o,signal:l}){o("state",{type:"loading"});const{lang:i,limit:a}=r;(async function({signal:r,lang:o,limit:l=9}){const i={method:"get",url:"fr"===o?"https://www.clever-cloud.com/fr/feed/?format=excerpt":"https://www.clever-cloud.com/feed/?format=excerpt",headers:{},signal:r},a=await e(i,144e5,(()=>t(i)));return c(a,l)})({signal:l,lang:i,limit:a}).then((t=>{o("state",{type:"loaded",articles:t})})).catch((t=>{console.error(t),o("state",{type:"error"})}))}});
import"./cc-article-list.js";import"./cc-smart-container.js";import{request as t}from"@clevercloud/client/esm/request.fetch.js";import{withCache as e}from"@clevercloud/client/esm/with-cache.js";import{defineSmartComponent as r}from"./lib/define-smart-component.js";import{parseRssFeed as c}from"./lib/xml-parser.js";const o=144e5;r({selector:"cc-article-list",params:{lang:{type:String},limit:{type:Number}},onContextUpdate({context:r,updateComponent:l,signal:i}){l("state",{type:"loading"});const{lang:a,limit:s}=r;(async function({signal:r,lang:l,limit:i=9}){const a="fr"===l?"https://www.clever-cloud.com/fr/feed/?format=excerpt":"https://www.clever-cloud.com/feed/?format=excerpt",s={method:"get",url:a,headers:{},signal:r},n=await e(s,o,(()=>t(s)));return c(n,i)})({signal:i,lang:a,limit:s}).then((t=>{l("state",{type:"loaded",articles:t})})).catch((t=>{console.error(t),l("state",{type:"error"})}))}});
//# sourceMappingURL=cc-article-list.smart.js.map

@@ -1,2 +0,2 @@

import"./cc-icon.js";import{LitElement as e,html as t,css as i}from"lit";import{classMap as o}from"lit/directives/class-map.js";import{ifDefined as r}from"lit/directives/if-defined.js";import{dispatchCustomEvent as n}from"./lib/events.js";import{i18n as s}from"./i18n.js";import{skeletonStyles as a}from"./styles/skeleton.js";import{linkStyles as l}from"./templates/cc-link/cc-link.js";class c extends e{static get properties(){return{a11yExpanded:{type:Boolean,attribute:"a11y-expanded",reflect:!0},a11yName:{type:String,attribute:"a11y-name"},a11yPressed:{type:Boolean,attribute:"a11y-pressed",reflect:!0},circle:{type:Boolean},danger:{type:Boolean},delay:{type:Number},disabled:{type:Boolean,reflect:!0},hideText:{type:Boolean,attribute:"hide-text"},icon:{type:Object},image:{type:String},link:{type:Boolean,reflect:!0},outlined:{type:Boolean},primary:{type:Boolean},skeleton:{type:Boolean},success:{type:Boolean},waiting:{type:Boolean,reflect:!0},warning:{type:Boolean},_cancelMode:{type:Boolean,state:!0}}}constructor(){super(),this.a11yExpanded=null,this.a11yName=null,this.a11yPressed=null,this.circle=!1,this.danger=!1,this.delay=null,this.disabled=!1,this.link=!1,this.hideText=!1,this.icon=null,this.image=null,this.outlined=!1,this.primary=!1,this.skeleton=!1,this.success=!1,this.waiting=!1,this.warning=!1,this._cancelMode=!1}focus(){this.shadowRoot.querySelector("button").focus()}_cancelClick(){clearTimeout(this._timeoutId),this._cancelMode=!1}_getAriaLabel(){return null!=this.a11yName?this.a11yName.trim()??"":!this.hideText||null==this.image&&null==this.icon?void 0:this.textContent?.trim()??""}_getTitle(){return null!=this.a11yName?this.a11yName.trim()??"":!this.hideText||null==this.image&&null==this.icon?void 0:this.textContent.trim()??""}_onClick(e){if(e.stopPropagation(),!this.disabled)return null==this.delay||0===this.delay||this.link?n(this,"click"):void(this._cancelMode?this._cancelClick():(this._cancelMode=!0,this._timeoutId=setTimeout((()=>{n(this,"click"),this._cancelMode=!1}),1e3*this.delay)))}willUpdate(e){e.has("disabled")&&!0===this.disabled&&this._cancelClick()}render(){const e={primary:this.primary&&!this.success&&!this.warning&&!this.danger&&!this.link,success:!this.primary&&this.success&&!this.warning&&!this.danger&&!this.link,warning:!this.primary&&!this.success&&this.warning&&!this.danger&&!this.link,danger:!this.primary&&!this.success&&!this.warning&&this.danger&&!this.link,skeleton:this.skeleton,"img-only":(null!=this.image||null!=this.icon)&&this.hideText,"txt-only":null==this.image&&null==this.icon,btn:!this.link,"cc-link":this.link},i=null==this.delay||this.link?null:this.delay,n=this.waiting;e.simple=!(e.primary||e.success||e.warning||e.danger||this.link),e.outlined=(this.outlined||e.simple)&&!this.link,e.circle=this.circle&&this.hideText&&(this.image||this.icon);const a=this.skeleton?-1:null;return t`<button type=button tabindex=${r(a)} class=${o(e)} aria-disabled=${this.disabled||this.skeleton||this.waiting} @click=${this._onClick} title=${r(this._getTitle())} aria-label=${r(this._getAriaLabel())} aria-expanded=${r(this.a11yExpanded??void 0)} aria-pressed=${r(this.a11yPressed??void 0)}><div class="${o({"cancel-mode":this._cancelMode})} text-wrapper">${null!=this.image?t`<img src=${this.image} alt="">`:""} ${null!=this.icon?t`<cc-icon .icon=${this.icon}></cc-icon>`:""}<div class=text-normal><slot></slot></div>${null!=i?t`<div class=text-cancel>${s("cc-button.cancel")}</div>`:""}</div>${null!=i?t`<progress class="${o({active:this._cancelMode})} delay" style=--delay:${i}s></progress>`:""} ${n&&!e.circle?t`<progress class=waiting></progress>`:""} ${n&&e.circle?t`<svg class=circle-loader viewBox="25 25 50 50" stroke-width=4 aria-hidden=true><circle fill=none cx=50 cy=50 r=15 /></svg>`:""}</button>`}static get styles(){return[a,l,i`:host{display:inline-block;box-sizing:border-box;vertical-align:middle}button{display:block;padding:0;border:none;margin:0;background:unset;font-family:inherit;font-size:unset}.btn{position:relative;overflow:hidden;width:100%;min-height:2em;padding:0 .5em;border:1px solid #000;background-color:var(--cc-color-bg-default,#fff);border-radius:var(--cc-button-border-radius,.15em);cursor:pointer;font-weight:var(--cc-button-font-weight,bold);text-transform:var(--cc-button-text-transform,uppercase);-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;border-color:var(--btn-color);background-color:var(--btn-color);color:var(--cc-color-text-inverted);box-shadow:0 0 0 0 rgb(255 255 255 / 0%);transition:box-shadow 75ms ease-in-out}.primary{--btn-color:var(--cc-color-bg-primary)}.success{--btn-color:var(--cc-color-bg-success)}.warning{--btn-color:var(--cc-color-bg-warning)}.danger{--btn-color:var(--cc-color-bg-danger)}.outlined{background-color:var(--cc-color-bg-default,#fff);color:var(--btn-color)}.circle{border-radius:50%}.simple{--btn-color:var(--cc-color-text-primary-strongest);border-color:var(--color-grey-medium)}.img-only{width:1.75em;height:1.75em;min-height:0;padding:0}.btn:focus{outline:var(--cc-focus-outline,#000 solid 2px);outline-offset:var(--cc-focus-outline-offset,2px)}.btn:not([aria-disabled=true]):hover{box-shadow:0 1px 3px rgb(0 0 0 / 40%)}.btn:not([aria-disabled=true]):active{box-shadow:none;outline:0}button[aria-disabled=true]{cursor:inherit;opacity:.5}.skeleton{border-color:#777;background-color:#bbb;color:transparent}.skeleton cc-icon,.skeleton img{visibility:hidden}.text-wrapper{display:grid;width:100%;height:100%;align-items:center;justify-content:center;gap:.5em;grid-template-columns:min-content 1fr}.txt-only .text-wrapper{gap:0;grid-template-columns:auto}.img-only .text-wrapper{gap:0;grid-template-columns:min-content}img{display:block;width:1.25em;height:1.25em}.img-only .text-normal{display:none}.text-cancel,.text-normal,cc-icon,img{grid-row:1/2}.text-cancel,.text-normal{font-size:.85em}cc-icon,img{grid-column:1/2}.text-normal{grid-column:-1/-2}.text-cancel{grid-column:1/-1}.text-wrapper.cancel-mode .text-normal,.text-wrapper.cancel-mode cc-icon,.text-wrapper.cancel-mode img,.text-wrapper:not(.cancel-mode) .text-cancel{visibility:hidden}progress,progress::-webkit-progress-bar{background-color:#fff}.outlined progress,.outlined progress::-webkit-progress-bar{background-color:var(--btn-color)}.cc-link progress,.cc-link progress::-webkit-progress-bar{background-color:var(--cc-color-bg-strong)}progress::-moz-progress-bar,progress::-webkit-progress-value{background-color:transparent}progress.delay{position:absolute;bottom:0;left:0;width:0;height:.2em;border:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}progress.delay.active{width:100%;transition:width var(--delay) linear}@keyframes waiting{from{left:-52%}to{left:52%}}progress.waiting{--width:25%;position:absolute;bottom:0;width:var(--width);height:.2em;border:none;margin-left:calc(50% - calc(var(--width)/ 2));animation:1s ease-in-out infinite alternate waiting;-webkit-appearance:none;-moz-appearance:none;appearance:none}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes stretch{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,200;stroke-dashoffset:-35px}100%{stroke-dashoffset:-124px}}:host([waiting]) button.circle{opacity:1}:host([waiting]) button.circle .text-wrapper cc-icon,:host([waiting]) button.circle .text-wrapper img{opacity:.25}.circle-loader{--bcw-speed:2s;position:absolute;animation:rotate var(--bcw-speed) linear infinite;inset:0;transform-origin:center;vertical-align:middle}.circle-loader circle{animation:stretch calc(var(--bcw-speed) * .75) ease-in-out infinite;stroke:currentcolor;stroke-dasharray:1,200;stroke-dashoffset:0;stroke-linecap:round}button::-moz-focus-inner{border:0}.cc-link{--btn-color:var(--color-text-strong);position:relative;overflow:hidden;min-height:2em;cursor:pointer;text-decoration:underline}.cc-link .text-normal{font-size:1em}`]}}window.customElements.define("cc-button",c);export{c as CcButton};
import"./cc-icon.js";import{LitElement as e,html as t,css as i}from"lit";import{classMap as o}from"lit/directives/class-map.js";import{ifDefined as r}from"lit/directives/if-defined.js";import{dispatchCustomEvent as n}from"./lib/events.js";import{i18n as s}from"./i18n.js";import{skeletonStyles as a}from"./styles/skeleton.js";import{linkStyles as l}from"./templates/cc-link/cc-link.js";class c extends e{static get properties(){return{a11yExpanded:{type:Boolean,attribute:"a11y-expanded",reflect:!0},a11yName:{type:String,attribute:"a11y-name"},a11yPressed:{type:Boolean,attribute:"a11y-pressed",reflect:!0},circle:{type:Boolean},danger:{type:Boolean},delay:{type:Number},disabled:{type:Boolean,reflect:!0},hideText:{type:Boolean,attribute:"hide-text"},icon:{type:Object},image:{type:String},link:{type:Boolean,reflect:!0},outlined:{type:Boolean},primary:{type:Boolean},skeleton:{type:Boolean},success:{type:Boolean},waiting:{type:Boolean,reflect:!0},warning:{type:Boolean},_cancelMode:{type:Boolean,state:!0}}}constructor(){super(),this.a11yExpanded=null,this.a11yName=null,this.a11yPressed=null,this.circle=!1,this.danger=!1,this.delay=null,this.disabled=!1,this.link=!1,this.hideText=!1,this.icon=null,this.image=null,this.outlined=!1,this.primary=!1,this.skeleton=!1,this.success=!1,this.waiting=!1,this.warning=!1,this._cancelMode=!1}focus(){this.shadowRoot.querySelector("button").focus()}_cancelClick(){clearTimeout(this._timeoutId),this._cancelMode=!1}_getAriaLabel(){return null!=this.a11yName?this.a11yName.trim()??"":!this.hideText||null==this.image&&null==this.icon?void 0:this.textContent?.trim()??""}_getTitle(){return null!=this.a11yName?this.a11yName.trim()??"":!this.hideText||null==this.image&&null==this.icon?void 0:this.textContent.trim()??""}_onClick(e){if(e.stopPropagation(),!(this.disabled||this.skeleton||this.waiting))return null==this.delay||0===this.delay||this.link?n(this,"click"):void(this._cancelMode?this._cancelClick():(this._cancelMode=!0,this._timeoutId=setTimeout((()=>{n(this,"click"),this._cancelMode=!1}),1e3*this.delay)))}willUpdate(e){e.has("disabled")&&!0===this.disabled&&this._cancelClick()}render(){const e={primary:this.primary&&!this.success&&!this.warning&&!this.danger&&!this.link,success:!this.primary&&this.success&&!this.warning&&!this.danger&&!this.link,warning:!this.primary&&!this.success&&this.warning&&!this.danger&&!this.link,danger:!this.primary&&!this.success&&!this.warning&&this.danger&&!this.link,skeleton:this.skeleton,"img-only":(null!=this.image||null!=this.icon)&&this.hideText,"txt-only":null==this.image&&null==this.icon,btn:!this.link,"cc-link":this.link},i=null==this.delay||this.link?null:this.delay,n=this.waiting;e.simple=!(e.primary||e.success||e.warning||e.danger||this.link),e.outlined=(this.outlined||e.simple)&&!this.link,e.circle=this.circle&&this.hideText&&(this.image||this.icon);const a=this.skeleton?-1:null;return t`<button type=button tabindex=${r(a)} class=${o(e)} aria-disabled=${this.disabled||this.skeleton||this.waiting} @click=${this._onClick} title=${r(this._getTitle())} aria-label=${r(this._getAriaLabel())} aria-expanded=${r(this.a11yExpanded??void 0)} aria-pressed=${r(this.a11yPressed??void 0)}><div class="${o({"cancel-mode":this._cancelMode})} text-wrapper">${null!=this.image?t`<img src=${this.image} alt="">`:""} ${null!=this.icon?t`<cc-icon .icon=${this.icon}></cc-icon>`:""}<div class=text-normal><slot></slot></div>${null!=i?t`<div class=text-cancel>${s("cc-button.cancel")}</div>`:""}</div>${null!=i?t`<progress class="${o({active:this._cancelMode})} delay" style=--delay:${i}s></progress>`:""} ${n&&!e.circle?t`<progress class=waiting></progress>`:""} ${n&&e.circle?t`<svg class=circle-loader viewBox="25 25 50 50" stroke-width=4 aria-hidden=true><circle fill=none cx=50 cy=50 r=15 /></svg>`:""}</button>`}static get styles(){return[a,l,i`:host{display:inline-block;box-sizing:border-box;vertical-align:middle}button{display:block;padding:0;border:none;margin:0;background:unset;font-family:inherit;font-size:unset}.btn{position:relative;overflow:hidden;width:100%;min-height:2em;padding:0 .5em;border:1px solid #000;background-color:var(--cc-color-bg-default,#fff);border-radius:var(--cc-button-border-radius,.15em);cursor:pointer;font-weight:var(--cc-button-font-weight,bold);text-transform:var(--cc-button-text-transform,uppercase);-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;border-color:var(--btn-color);background-color:var(--btn-color);color:var(--cc-color-text-inverted);box-shadow:0 0 0 0 rgb(255 255 255 / 0%);transition:box-shadow 75ms ease-in-out}.primary{--btn-color:var(--cc-color-bg-primary)}.success{--btn-color:var(--cc-color-bg-success)}.warning{--btn-color:var(--cc-color-bg-warning)}.danger{--btn-color:var(--cc-color-bg-danger)}.outlined{background-color:var(--cc-color-bg-default,#fff);color:var(--btn-color)}.circle{border-radius:50%}.simple{--btn-color:var(--cc-color-text-primary-strongest);border-color:var(--color-grey-medium)}.img-only{width:1.75em;height:1.75em;min-height:0;padding:0}.btn:focus{outline:var(--cc-focus-outline,#000 solid 2px);outline-offset:var(--cc-focus-outline-offset,2px)}.btn:not([aria-disabled=true]):hover{box-shadow:0 1px 3px rgb(0 0 0 / 40%)}.btn:not([aria-disabled=true]):active{box-shadow:none;outline:0}button[aria-disabled=true]{cursor:inherit;opacity:.5}.skeleton{border-color:#777;background-color:#bbb;color:transparent}.skeleton cc-icon,.skeleton img{visibility:hidden}.text-wrapper{display:grid;width:100%;height:100%;align-items:center;justify-content:center;gap:.5em;grid-template-columns:min-content 1fr}.txt-only .text-wrapper{gap:0;grid-template-columns:auto}.img-only .text-wrapper{gap:0;grid-template-columns:min-content}img{display:block;width:1.25em;height:1.25em}.img-only .text-normal{display:none}.text-cancel,.text-normal,cc-icon,img{grid-row:1/2}.text-cancel,.text-normal{font-size:.85em}cc-icon,img{grid-column:1/2}.text-normal{grid-column:-1/-2}.text-cancel{grid-column:1/-1}.text-wrapper.cancel-mode .text-normal,.text-wrapper.cancel-mode cc-icon,.text-wrapper.cancel-mode img,.text-wrapper:not(.cancel-mode) .text-cancel{visibility:hidden}progress,progress::-webkit-progress-bar{background-color:#fff}.outlined progress,.outlined progress::-webkit-progress-bar{background-color:var(--btn-color)}.cc-link progress,.cc-link progress::-webkit-progress-bar{background-color:var(--cc-color-bg-strong)}progress::-moz-progress-bar,progress::-webkit-progress-value{background-color:transparent}progress.delay{position:absolute;bottom:0;left:0;width:0;height:.2em;border:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}progress.delay.active{width:100%;transition:width var(--delay) linear}@keyframes waiting{from{left:-52%}to{left:52%}}progress.waiting{--width:25%;position:absolute;bottom:0;width:var(--width);height:.2em;border:none;margin-left:calc(50% - calc(var(--width)/ 2));animation:1s ease-in-out infinite alternate waiting;-webkit-appearance:none;-moz-appearance:none;appearance:none}@keyframes rotate{100%{transform:rotate(360deg)}}@keyframes stretch{0%{stroke-dasharray:1,200;stroke-dashoffset:0}50%{stroke-dasharray:90,200;stroke-dashoffset:-35px}100%{stroke-dashoffset:-124px}}:host([waiting]) button.circle{opacity:1}:host([waiting]) button.circle .text-wrapper cc-icon,:host([waiting]) button.circle .text-wrapper img{opacity:.25}.circle-loader{--bcw-speed:2s;position:absolute;animation:rotate var(--bcw-speed) linear infinite;inset:0;transform-origin:center;vertical-align:middle}.circle-loader circle{animation:stretch calc(var(--bcw-speed) * .75) ease-in-out infinite;stroke:currentcolor;stroke-dasharray:1,200;stroke-dashoffset:0;stroke-linecap:round}button::-moz-focus-inner{border:0}.cc-link{--btn-color:var(--color-text-strong);position:relative;overflow:hidden;min-height:2em;cursor:pointer;text-decoration:underline}.cc-link .text-normal{font-size:1em}.cc-link.skeleton:hover{color:transparent}`]}}window.customElements.define("cc-button",c);export{c as CcButton};
//# sourceMappingURL=cc-button.js.map

@@ -1,2 +0,2 @@

import{LitElement as e,html as t,css as i}from"lit";import{classMap as r}from"lit/directives/class-map.js";import{ifDefined as o}from"lit/directives/if-defined.js";import{iconRemixEyeOffLine as s,iconRemixEyeLine as l,iconRemixCheckLine as n,iconRemixClipboardLine as a}from"./assets/cc-remix.icons.js";import{dispatchCustomEvent as c}from"./lib/events.js";import{i18n as d}from"./i18n.js";import{arrayEquals as p}from"./lib/utils.js";import{accessibilityStyles as h}from"./styles/accessibility.js";import{skeletonStyles as u}from"./styles/skeleton.js";import"./cc-icon.js";class b extends e{static get properties(){return{clipboard:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0},label:{type:String},hiddenLabel:{type:Boolean,attribute:"hidden-label"},inline:{type:Boolean,reflect:!0},multi:{type:Boolean,reflect:!0},name:{type:String,reflect:!0},placeholder:{type:String},readonly:{type:Boolean,reflect:!0},required:{type:Boolean},secret:{type:Boolean,reflect:!0},skeleton:{type:Boolean,reflect:!0},tags:{type:Array},value:{type:String},_copyOk:{type:Boolean,state:!0},_showSecret:{type:Boolean,state:!0},_tagsEnabled:{type:Boolean,state:!0},_hasError:{type:Boolean,state:!0}}}constructor(){super(),this.clipboard=!1,this.disabled=!1,this.inline=!1,this.label=null,this.hiddenLabel=!1,this.multi=!1,this.name=null,this.placeholder="",this.readonly=!1,this.required=!1,this.secret=!1,this.skeleton=!1,this.tags=null,this.value="",this._copyOk=!1,this._showSecret=!1,this._tagsEnabled=!1,this._hasError=!1}get tags(){return this._tagsEnabled?this.value.split(" ").filter((e=>""!==e)):null}set tags(e){if(this._tagsEnabled=null!=e,this._tagsEnabled){const t=this.tags;p(t,e)||(this.value=e.join(" "),this.requestUpdate("tags",t))}}focus(){this.shadowRoot.querySelector(".input").focus()}_onInput(e){if(this._tagsEnabled&&e.target.value.includes("\n")){const{selectionStart:t,selectionEnd:i}=e.target,r=e.target.value,o=e.target.value.replace(/\n/g,""),s=r.length-o.length;e.target.value=o,e.target.setSelectionRange(t-s,i-s)}this.value=e.target.value,c(this,"input",this.value),this._tagsEnabled&&c(this,"tags",this.tags)}_onFocus(e){this.readonly&&e.target.select()}_onClickCopy(){navigator.clipboard.writeText(this.value).then((()=>{this._copyOk=!0,setTimeout((()=>this._copyOk=!1),1e3)}))}_onClickSecret(){this._showSecret=!this._showSecret}_onKeyEvent(e){"keydown"!==e.type&&"keypress"!==e.type||e.stopPropagation(),this._tagsEnabled&&"keydown"===e.type&&13===e.keyCode&&(e.preventDefault(),c(this,"requestimplicitsubmit")),this.readonly||"keypress"!==e.type||13!==e.keyCode||(!this.multi||this.multi&&e.ctrlKey)&&c(this,"requestimplicitsubmit")}_onErrorSlotChanged(e){this._hasError=e.target.assignedNodes()?.length>0}render(){const e=this.value??"",i=e.split("\n").length,c=this.clipboard&&!this.disabled&&!this.skeleton,p=this.secret&&!this.multi&&!this.disabled&&!this.skeleton,h=this.multi||this._tagsEnabled,u=e.split(" ").map(((e,i,r)=>t`<span class=tag>${e}</span>${i!==r.length-1?" ":""}`));return t`${null!=this.label?t`<label class=${r({"visually-hidden":this.hiddenLabel})} for=input-id><span class=label-text>${this.label}</span> ${this.required?t`<span class=required>${d("cc-input-text.required")}</span>`:""}</label>`:""}<div class=meta-input><div class="${r({skeleton:this.skeleton})} wrapper" @input=${this._onInput} @keydown=${this._onKeyEvent} @keypress=${this._onKeyEvent}>${h?t`${this._tagsEnabled&&!this.skeleton?t`<div class="input input-underlayer" style=--rows:${i}><div class=all-tags>${u}</div></div>`:""} <textarea id=input-id class="${r({"input-tags":this._tagsEnabled,error:this._hasError})} input" style=--rows:${i} rows=${i} ?disabled=${this.disabled||this.skeleton} ?readonly=${this.readonly} .value=${e} name=${o(this.name??void 0)} placeholder=${this.placeholder} spellcheck=false wrap=${o(this._tagsEnabled?"soft":void 0)} aria-describedby="help-id error-id" @focus=${this._onFocus}></textarea>`:""} ${h?"":t`${c&&this.readonly?t`<div class="input input-mirror">${e}</div>`:""} <input id=input-id type=${this.secret&&!this._showSecret?"password":"text"} class="${r({error:this._hasError})} input" ?disabled=${this.disabled||this.skeleton} ?readonly=${this.readonly} .value=${e} name=${o(this.name??void 0)} placeholder=${this.placeholder} spellcheck=false aria-describedby="help-id error-id" @focus=${this._onFocus}>`}<div class=ring></div></div>${p?t`<button class=btn @click=${this._onClickSecret} title=${this._showSecret?d("cc-input-text.secret.hide"):d("cc-input-text.secret.show")}><cc-icon class=btn-img .icon=${this._showSecret?s:l} a11y-name=${this._showSecret?d("cc-input-text.secret.hide"):d("cc-input-text.secret.show")} size=lg></cc-icon></button>`:""} ${c?t`<button class=btn @click=${this._onClickCopy} title=${d("cc-input-text.clipboard")}><cc-icon class=btn-img .icon=${this._copyOk?n:a} a11y-name=${d("cc-input-text.clipboard")} size=lg></cc-icon></button>`:""}</div><div class=help-container id=help-id><slot name=help></slot></div><div class=error-container id=error-id><slot name=error @slotchange=${this._onErrorSlotChanged}></slot></div>`}static get styles(){return[h,u,i`:host{display:inline-block}:host([multi]){display:block}:host([inline]){display:inline-grid;align-items:baseline;gap:0 1em;grid-auto-rows:min-content;grid-template-areas:'label input' 'label help' 'label error';grid-template-columns:auto 1fr}:host([inline][multi]){display:grid}.help-container{grid-area:help}.error-container{grid-area:error}label{display:flex;align-items:flex-end;justify-content:space-between;padding-bottom:.35em;cursor:pointer;gap:2em;line-height:1.25em}label .label-text{color:var(--cc-input-label-color,inherit);font-size:var(--cc-input-label-font-size,inherit);font-weight:var(--cc-input-label-font-weight,normal)}:host([inline]) label{flex-direction:column;padding:0;gap:0;grid-area:label;line-height:normal}.required{color:var(--cc-color-text-weak);font-size:.9em;font-variant:small-caps}:host([inline]) .required{font-size:.8em}slot[name=help]::slotted(*){margin:.3em 0 0;color:var(--cc-color-text-weak);font-size:.9em}slot[name=error]::slotted(*){margin:.5em 0 0;color:var(--cc-color-text-danger)}.meta-input{position:relative;display:inline-flex;width:100%;height:max-content;box-sizing:border-box;grid-area:input;vertical-align:top}:host([multi]) .meta-input{display:flex}.wrapper{display:grid;overflow:hidden;min-width:0;flex:1 1 0;padding:.15em .5em}.input{display:block;width:100%;box-sizing:border-box;padding:0;border:1px solid #000;margin:0;-webkit-appearance:none;background:0 0;color:inherit;font-family:inherit;resize:none;z-index:2;overflow:hidden;height:calc(var(--rows,1) * 2em);border:none;font-family:var(--cc-input-font-family,inherit);font-size:.85em;grid-area:1/1/2/2;line-height:2em}.input::placeholder{font-style:italic}textarea:not([wrap]){white-space:pre}.input:active,.input:focus{outline:0}.input[disabled]{color:var(--cc-color-text-weak);opacity:1;pointer-events:none}.input-mirror{height:0}.input-tags,.input-underlayer{height:auto;padding:0 3px;font-family:var(--cc-input-font-family,var(--cc-ff-monospace));word-break:break-all;word-spacing:.5ch}.input-underlayer{z-index:1;color:transparent;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;white-space:pre-wrap}.input-underlayer .tag:not(:empty){--color:var(--cc-color-bg-soft, #eee);padding:1px 0;background-color:var(--color);border-radius:3px;box-shadow:0 0 0 2px var(--color)}.ring{position:absolute;z-index:0;top:0;right:0;bottom:0;left:0;overflow:hidden;border:1px solid var(--cc-color-border-neutral-strong,#aaa);background:var(--cc-color-bg-default,#fff);border-radius:var(--cc-border-radius-default,.25em);box-shadow:0 0 0 0 rgb(255 255 255 / 0%)}.input.error+.ring{border-color:var(--cc-color-border-danger)!important}.input:focus+.ring{border-color:var(--cc-color-border-neutral-focused,#777);outline:var(--cc-focus-outline,#000 solid 2px);outline-offset:var(--cc-focus-outline-offset,2px)}input.error:focus+.ring{outline:var(--cc-focus-outline-error,#000 solid 2px);outline-offset:var(--cc-focus-outline-offset,2px)}.input:hover+.ring{border-color:var(--cc-color-border-neutral-hovered,#777)}:host([disabled]) .ring{border-color:var(--cc-color-border-neutral-disabled,#eee);background:var(--cc-color-bg-neutral-disabled)}:host([readonly]) .ring{background:var(--cc-color-bg-neutral-readonly,#aaa)}.skeleton .input:hover+.ring,.skeleton .ring,.skeleton:hover .ring{border-color:var(--cc-color-border-neutral-disabled,#eee);background-color:var(--cc-color-bg-neutral-disabled);cursor:progress}.skeleton .input,.skeleton .input::placeholder{color:transparent}.btn{display:block;padding:0;border:none;margin:.2em .2em .2em 0;background:0 0;font-family:inherit;font-size:unset;z-index:2;width:1.6em;height:1.6em;flex-shrink:0;border-radius:var(--cc-border-radius-small,.15em);cursor:pointer}.btn:focus{outline:var(--cc-focus-outline,#000 solid 2px);outline-offset:var(--cc-focus-outline-offset,2px)}.btn:active,.btn:hover{box-shadow:none;outline:0}.btn:hover{background-color:var(--cc-color-bg-neutral-hovered)}.btn:active{background-color:var(--cc-color-bg-neutral-active)}.btn::-moz-focus-inner{border:0}.btn-img{--cc-icon-color:var(--cc-input-btn-icons-color, #595959);box-sizing:border-box;padding:15%}.btn-img:hover{--cc-icon-color:var(--cc-color-text-primary)}`]}}window.customElements.define("cc-input-text",b);export{b as CcInputText};
import{LitElement as e,html as t,css as i}from"lit";import{classMap as r}from"lit/directives/class-map.js";import{ifDefined as o}from"lit/directives/if-defined.js";import{iconRemixEyeOffLine as s,iconRemixEyeLine as l,iconRemixCheckLine as n,iconRemixClipboardLine as a}from"./assets/cc-remix.icons.js";import{dispatchCustomEvent as c}from"./lib/events.js";import{i18n as d}from"./i18n.js";import{arrayEquals as p}from"./lib/utils.js";import{accessibilityStyles as h}from"./styles/accessibility.js";import{skeletonStyles as u}from"./styles/skeleton.js";import"./cc-icon.js";const b=" ";class g extends e{static get properties(){return{clipboard:{type:Boolean,reflect:!0},disabled:{type:Boolean,reflect:!0},label:{type:String},hiddenLabel:{type:Boolean,attribute:"hidden-label"},inline:{type:Boolean,reflect:!0},multi:{type:Boolean,reflect:!0},name:{type:String,reflect:!0},placeholder:{type:String},readonly:{type:Boolean,reflect:!0},required:{type:Boolean},secret:{type:Boolean,reflect:!0},skeleton:{type:Boolean,reflect:!0},tags:{type:Array},value:{type:String},_copyOk:{type:Boolean,state:!0},_showSecret:{type:Boolean,state:!0},_tagsEnabled:{type:Boolean,state:!0},_hasError:{type:Boolean,state:!0}}}constructor(){super(),this.clipboard=!1,this.disabled=!1,this.inline=!1,this.label=null,this.hiddenLabel=!1,this.multi=!1,this.name=null,this.placeholder="",this.readonly=!1,this.required=!1,this.secret=!1,this.skeleton=!1,this.tags=null,this.value="",this._copyOk=!1,this._showSecret=!1,this._tagsEnabled=!1,this._hasError=!1}get tags(){return this._tagsEnabled?this.value.split(b).filter((e=>""!==e)):null}set tags(e){if(this._tagsEnabled=null!=e,this._tagsEnabled){const t=this.tags;p(t,e)||(this.value=e.join(b),this.requestUpdate("tags",t))}}focus(){this.shadowRoot.querySelector(".input").focus()}_onInput(e){if(this._tagsEnabled&&e.target.value.includes("\n")){const{selectionStart:t,selectionEnd:i}=e.target,r=e.target.value,o=e.target.value.replace(/\n/g,""),s=r.length-o.length;e.target.value=o,e.target.setSelectionRange(t-s,i-s)}this.value=e.target.value,c(this,"input",this.value),this._tagsEnabled&&c(this,"tags",this.tags)}_onFocus(e){this.readonly&&e.target.select()}_onClickCopy(){navigator.clipboard.writeText(this.value).then((()=>{this._copyOk=!0,setTimeout((()=>this._copyOk=!1),1e3)}))}_onClickSecret(){this._showSecret=!this._showSecret}_onKeyEvent(e){"keydown"!==e.type&&"keypress"!==e.type||e.stopPropagation(),this._tagsEnabled&&"keydown"===e.type&&13===e.keyCode&&(e.preventDefault(),c(this,"requestimplicitsubmit")),this.readonly||"keypress"!==e.type||13!==e.keyCode||(!this.multi||this.multi&&e.ctrlKey)&&c(this,"requestimplicitsubmit")}_onErrorSlotChanged(e){this._hasError=e.target.assignedNodes()?.length>0}render(){const e=this.value??"",i=e.split("\n").length,c=this.clipboard&&!this.disabled&&!this.skeleton,p=this.secret&&!this.multi&&!this.disabled&&!this.skeleton,h=this.multi||this._tagsEnabled,u=e.split(b).map(((e,i,r)=>t`<span class=tag>${e}</span>${i!==r.length-1?b:""}`));return t`${null!=this.label?t`<label class=${r({"visually-hidden":this.hiddenLabel})} for=input-id><span class=label-text>${this.label}</span> ${this.required?t`<span class=required>${d("cc-input-text.required")}</span>`:""}</label>`:""}<div class=meta-input><div class="${r({skeleton:this.skeleton})} wrapper" @input=${this._onInput} @keydown=${this._onKeyEvent} @keypress=${this._onKeyEvent}>${h?t`${this._tagsEnabled&&!this.skeleton?t`<div class="input input-underlayer" style=--rows:${i}><div class=all-tags>${u}</div></div>`:""} <textarea id=input-id class="${r({"input-tags":this._tagsEnabled,error:this._hasError})} input" style=--rows:${i} rows=${i} ?disabled=${this.disabled||this.skeleton} ?readonly=${this.readonly} .value=${e} name=${o(this.name??void 0)} placeholder=${this.placeholder} spellcheck=false wrap=${o(this._tagsEnabled?"soft":void 0)} aria-describedby="help-id error-id" @focus=${this._onFocus}></textarea>`:""} ${h?"":t`${c&&this.readonly?t`<div class="input input-mirror">${e}</div>`:""} <input id=input-id type=${this.secret&&!this._showSecret?"password":"text"} class="${r({error:this._hasError})} input" ?disabled=${this.disabled||this.skeleton} ?readonly=${this.readonly} .value=${e} name=${o(this.name??void 0)} placeholder=${this.placeholder} spellcheck=false aria-describedby="help-id error-id" @focus=${this._onFocus}>`}<div class=ring></div></div>${p?t`<button class=btn @click=${this._onClickSecret} title=${this._showSecret?d("cc-input-text.secret.hide"):d("cc-input-text.secret.show")}><cc-icon class=btn-img .icon=${this._showSecret?s:l} a11y-name=${this._showSecret?d("cc-input-text.secret.hide"):d("cc-input-text.secret.show")} size=lg></cc-icon></button>`:""} ${c?t`<button class=btn @click=${this._onClickCopy} title=${d("cc-input-text.clipboard")}><cc-icon class=btn-img .icon=${this._copyOk?n:a} a11y-name=${d("cc-input-text.clipboard")} size=lg></cc-icon></button>`:""}</div><div class=help-container id=help-id><slot name=help></slot></div><div class=error-container id=error-id><slot name=error @slotchange=${this._onErrorSlotChanged}></slot></div>`}static get styles(){return[h,u,i`:host{display:inline-block}:host([multi]){display:block}:host([inline]){display:inline-grid;align-items:baseline;gap:0 1em;grid-auto-rows:min-content;grid-template-areas:'label input' 'label help' 'label error';grid-template-columns:auto 1fr}:host([inline][multi]){display:grid}.help-container{grid-area:help}.error-container{grid-area:error}label{display:flex;align-items:flex-end;justify-content:space-between;padding-bottom:.35em;cursor:pointer;gap:2em;line-height:1.25em}label .label-text{color:var(--cc-input-label-color,inherit);font-size:var(--cc-input-label-font-size,inherit);font-weight:var(--cc-input-label-font-weight,normal)}:host([inline]) label{flex-direction:column;padding:0;gap:0;grid-area:label;line-height:normal}.required{color:var(--cc-color-text-weak);font-size:.9em;font-variant:small-caps}:host([inline]) .required{font-size:.8em}slot[name=help]::slotted(*){margin:.3em 0 0;color:var(--cc-color-text-weak);font-size:.9em}slot[name=error]::slotted(*){margin:.5em 0 0;color:var(--cc-color-text-danger)}.meta-input{position:relative;display:inline-flex;width:100%;height:max-content;box-sizing:border-box;grid-area:input;vertical-align:top}:host([multi]) .meta-input{display:flex}.wrapper{display:grid;overflow:hidden;min-width:0;flex:1 1 0;padding:.15em .5em}.input{display:block;width:100%;box-sizing:border-box;padding:0;border:1px solid #000;margin:0;-webkit-appearance:none;background:0 0;color:inherit;font-family:inherit;resize:none;z-index:2;overflow:hidden;height:calc(var(--rows,1) * 2em);border:none;font-family:var(--cc-input-font-family,inherit);font-size:.85em;grid-area:1/1/2/2;line-height:2em}.input::placeholder{font-style:italic}textarea:not([wrap]){white-space:pre}.input:active,.input:focus{outline:0}.input[disabled]{color:var(--cc-color-text-weak);opacity:1;pointer-events:none}.input-mirror{height:0}.input-tags,.input-underlayer{height:auto;padding:0 3px;font-family:var(--cc-input-font-family,var(--cc-ff-monospace));word-break:break-all;word-spacing:.5ch}.input-underlayer{z-index:1;color:transparent;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none;white-space:pre-wrap}.input-underlayer .tag:not(:empty){--color:var(--cc-color-bg-soft, #eee);padding:1px 0;background-color:var(--color);border-radius:3px;box-shadow:0 0 0 2px var(--color)}.ring{position:absolute;z-index:0;top:0;right:0;bottom:0;left:0;overflow:hidden;border:1px solid var(--cc-color-border-neutral-strong,#aaa);background:var(--cc-color-bg-default,#fff);border-radius:var(--cc-border-radius-default,.25em);box-shadow:0 0 0 0 rgb(255 255 255 / 0%)}.input.error+.ring{border-color:var(--cc-color-border-danger)!important}.input:focus+.ring{border-color:var(--cc-color-border-neutral-focused,#777);outline:var(--cc-focus-outline,#000 solid 2px);outline-offset:var(--cc-focus-outline-offset,2px)}input.error:focus+.ring{outline:var(--cc-focus-outline-error,#000 solid 2px);outline-offset:var(--cc-focus-outline-offset,2px)}.input:hover+.ring{border-color:var(--cc-color-border-neutral-hovered,#777)}:host([disabled]) .ring{border-color:var(--cc-color-border-neutral-disabled,#eee);background:var(--cc-color-bg-neutral-disabled)}:host([readonly]) .ring{background:var(--cc-color-bg-neutral-readonly,#aaa)}.skeleton .input:hover+.ring,.skeleton .ring,.skeleton:hover .ring{border-color:var(--cc-color-border-neutral-disabled,#eee);background-color:var(--cc-color-bg-neutral-disabled);cursor:progress}.skeleton .input,.skeleton .input::placeholder{color:transparent}.btn{display:block;padding:0;border:none;margin:.2em .2em .2em 0;background:0 0;font-family:inherit;font-size:unset;z-index:2;width:1.6em;height:1.6em;flex-shrink:0;border-radius:var(--cc-border-radius-small,.15em);cursor:pointer}.btn:focus{outline:var(--cc-focus-outline,#000 solid 2px);outline-offset:var(--cc-focus-outline-offset,2px)}.btn:active,.btn:hover{box-shadow:none;outline:0}.btn:hover{background-color:var(--cc-color-bg-neutral-hovered)}.btn:active{background-color:var(--cc-color-bg-neutral-active)}.btn::-moz-focus-inner{border:0}.btn-img{--cc-icon-color:var(--cc-input-btn-icons-color, #595959);box-sizing:border-box;padding:15%}.btn-img:hover{--cc-icon-color:var(--cc-color-text-primary)}`]}}window.customElements.define("cc-input-text",g);export{g as CcInputText};
//# sourceMappingURL=cc-input-text.js.map

@@ -1,2 +0,2 @@

import"./cc-loader.js";import"./cc-icon.js";import{LitElement as e,html as t,css as o}from"lit";import{classMap as r}from"lit/directives/class-map.js";import{iconRemixAlertFill as a}from"./assets/cc-remix.icons.js";import{WORLD_GEOJSON as i}from"./assets/world-110m.geo.js";import{ResizeController as n}from"./controllers/resize-controller.js";import{dispatchCustomEvent as s}from"./lib/events.js";import{i18n as c}from"./i18n.js";import"leaflet/src/control/index.js";import"leaflet/src/layer/vector/Renderer.getRenderer.js";import"leaflet/src/layer/Tooltip.js";import{divIcon as l,marker as m,map as d,geoJSON as p,layerGroup as h}from"leaflet/src/Leaflet.js";import{HeatLayer as g}from"./lib/leaflet-heat.js";import{leafletStyles as f}from"./styles/leaflet.js";class u extends e{static get properties(){return{centerLat:{type:Number,attribute:"center-lat"},centerLon:{type:Number,attribute:"center-lon"},error:{type:Boolean,reflect:!0},heatmapPoints:{type:Array,attribute:"heatmap-points"},loading:{type:Boolean,reflect:!0},mode:{type:String},points:{type:Array},viewZoom:{type:Number,attribute:"view-zoom",reflect:!0}}}constructor(){super(),this.centerLat=48.9,this.centerLon=2.4,this.error=!1,this.heatmapPoints=null,this.loading=!1,this.mode="points",this.viewZoom=2,this._pointsCache={},new n(this,{callback:()=>this.updateComplete.then((()=>this._map.invalidateSize()))})}_resetCurrentLayer(){const[e,t]="heatmap"===this.mode?[this._heatLayer,this._pointsLayer]:[this._pointsLayer,this._heatLayer];this._map.removeLayer(t),this._map.addLayer(e)}_updateHeatmap(e){if(!Array.isArray(e))return;const t=e.map((({count:e})=>e)),o=e.length>0?Math.max(...t):1,r=e.map((({lat:e,lon:t,count:o})=>[e,t,o])),a={blur:7,max:o,minOpacity:.3,radius:8};this._heatLayer.clearLayers().addLayer(new g(r,a))}_updatePoints(e){if(!Array.isArray(e))return;const t=new Set(Object.keys(this._pointsCache));for(const o of e){const e=[o.lat,o.lon,o.marker.tag].join(",");null==this._pointsCache[e]&&this._createMarker(e,o),this._updateMarker(e,o),t.delete(e)}for(const e of t.values())this._deleteMarker(e)}_createMarker(e,t){const o=document.createElement(t.marker.tag),r=l({html:o,iconSize:o.size,iconAnchor:o.anchor,tooltipAnchor:o.tooltip,className:"cc-map-marker"}),a=m([t.lat,t.lon],{icon:r,zIndexOffset:t.zIndexOffset,keyboard:!1}).addTo(this._pointsLayer);a.on("click",(()=>s(this,"marker-click",t))).on("mouseover",(()=>s(this,"marker-enter",t))).on("mouseout",(()=>s(this,"marker-leave",t))),this._pointsCache[e]={point:t,marker:a,iconElement:o}}_updateMarker(e,t){this._pointsCache[e].point=t;const{point:o,marker:r,iconElement:a}=this._pointsCache[e];for(const e in o.marker)"tag"!==e&&(a[e]=o.marker[e]);if(r.setZIndexOffset(o.zIndexOffset),null==o.tooltip)r.unbindTooltip();else if(null==r.getTooltip()&&r.bindTooltip("",{direction:"top",opacity:1}),null==o.tooltip.tag)r.setTooltipContent(o.tooltip);else{const e=r.getTooltip().getContent(),t=e?.tagName?.toLowerCase()!==o.tooltip.tag?document.createElement(o.tooltip.tag):e;for(const e in o.tooltip)"tag"!==e&&(t[e]=o.tooltip[e]);this.appendChild(t),this.removeChild(t),r.setTooltipContent(t)}}_deleteMarker(e){const{marker:t}=this._pointsCache[e];this._pointsLayer.removeLayer(t),delete this._pointsCache[e]}panInside(e,t){this._map.panInside([e,t],{padding:[50,50]})}firstUpdated(){this._map=d(this.renderRoot.getElementById("cc-map-container"),{attributionControl:!1,doubleClickZoom:!0,dragging:!0,keyboard:!0,maxBounds:[[-84,-180],[90,180]],maxBoundsViscosity:1,maxZoom:6,minZoom:1,zoomControl:!0}).setView([this.centerLat,this.centerLon],this.viewZoom),this._map.on("zoomanim",(e=>{this.viewZoom=e.zoom})),this._map.zoomControl.setPosition("bottomright"),p(i,{style:{className:"map-country"},pane:"tilePane"}).addTo(this._map),this._pointsLayer=h(),this._heatLayer=h(),this._resetCurrentLayer()}updated(e){(e.has("centerLat")||e.has("centerLon"))&&this._map.setView([this.centerLat,this.centerLon]),e.has("viewZoom")&&this._map.setZoom(this.viewZoom),e.has("mode")&&this._resetCurrentLayer(),e.has("heatmapPoints")&&this._updateHeatmap(this.heatmapPoints),e.has("points")&&this._updatePoints(this.points)}render(){const e=!this.error&&"heatmap"===this.mode&&0===this.heatmapPoints?.length,o=this.loading?"loading":"info";return t`<div id=cc-map-container class=${r({"no-data":e})}></div><div class="${r({"no-data":e})} legend"><slot></slot></div>${this.loading&&!this.error?t`<cc-loader class=loader></cc-loader>`:""} ${this.error||e?t`<div class=msg-container>${this.error?t`<div class="${r({"error-loading":"loading"===o})} error-message">${"loading"===o?t`<cc-loader class=loader-error></cc-loader>`:""}<cc-icon .icon=${a} a11y-name=${c("cc-map.error.icon-a11y-name")} class=icon-warning></cc-icon><p>${c("cc-map.error")}</p></div>`:""} ${e?t`<div class=msg>${c("cc-map.no-points")}</div>`:""}</div>`:""}`}static get styles(){return[f,o`:host{position:relative;display:flex;width:20em;height:15em;flex-direction:column;background-color:var(--cc-color-bg-default,#fff)}#cc-map-container{width:100%;flex:1 1 0}:host([error]) .leaflet-control-container,:host([loading]) .leaflet-control-container{display:none}#cc-map-container.no-data,.legend.no-data,:host([error]) #cc-map-container,:host([error]) .legend,:host([loading]) #cc-map-container,:host([loading]) .legend{filter:blur(.1em)}.leaflet-container{z-index:1;background-color:#aadaff}.map-country{fill:#f5f5f5;fill-opacity:100%;stroke:#ddd;stroke-width:1}:host(:not(:empty)) .legend{box-sizing:border-box;padding:.45em 1.1em;background-color:var(--cc-color-bg-neutral);box-shadow:inset 0 6px 6px -6px rgb(0 0 0 / 40%);font-size:.9em;font-style:italic}.loader{position:absolute;z-index:2000;top:0;left:0;width:100%;height:100%}.loader-error{height:1.5em}.msg-container{position:absolute;z-index:2000;top:0;left:0;display:flex;width:100%;height:100%;align-items:center;justify-content:center}.msg{display:flex;align-items:center;justify-content:center;padding:1em;border:1px solid var(--cc-color-border-neutral,#aaa);background-color:var(--cc-color-bg-default,#fff);border-radius:var(--cc-border-radius-default,.25em);box-shadow:0 0 1em rgb(0 0 0 / 40%)}.cc-map-marker{display:flex;align-items:center;justify-content:center}.error-message{display:grid;align-items:center;padding:1em;border:1px solid #bcc2d1;background-color:var(--cc-color-bg-default,#fff);border-radius:var(--cc-border-radius-default,.25em);box-shadow:0 0 1em rgb(0 0 0 / 40%);gap:.5em;grid-template-columns:min-content 1fr;text-align:center}.error-message.error-loading{grid-template-columns:auto 1fr}.error-message.error-loading .icon-warning{display:none}.error-message p{margin:0}.icon-warning{align-self:center;color:var(--cc-color-text-warning);--cc-icon-size:1.25em}`]}}window.customElements.define("cc-map",u);export{u as CcMap};
import"./cc-loader.js";import"./cc-icon.js";import{LitElement as e,html as t,css as o}from"lit";import{classMap as r}from"lit/directives/class-map.js";import{iconRemixAlertFill as a}from"./assets/cc-remix.icons.js";import{WORLD_GEOJSON as i}from"./assets/world-110m.geo.js";import{ResizeController as n}from"./controllers/resize-controller.js";import{dispatchCustomEvent as s}from"./lib/events.js";import{i18n as c}from"./i18n.js";import"leaflet/src/control/index.js";import"leaflet/src/layer/vector/Renderer.getRenderer.js";import"leaflet/src/layer/Tooltip.js";import{divIcon as l,marker as m,map as d,geoJSON as p,layerGroup as h}from"leaflet/src/Leaflet.js";import{HeatLayer as g}from"./lib/leaflet-heat.js";import{leafletStyles as f}from"./styles/leaflet.js";class u extends e{static get properties(){return{centerLat:{type:Number,attribute:"center-lat"},centerLon:{type:Number,attribute:"center-lon"},error:{type:Boolean,reflect:!0},heatmapPoints:{type:Array,attribute:"heatmap-points"},loading:{type:Boolean,reflect:!0},mode:{type:String},points:{type:Array},viewZoom:{type:Number,attribute:"view-zoom",reflect:!0}}}constructor(){super(),this.centerLat=48.9,this.centerLon=2.4,this.error=!1,this.heatmapPoints=null,this.loading=!1,this.mode="points",this.viewZoom=2,this._pointsCache={},new n(this,{callback:()=>this.updateComplete.then((()=>this._map.invalidateSize()))})}_resetCurrentLayer(){const[e,t]="heatmap"===this.mode?[this._heatLayer,this._pointsLayer]:[this._pointsLayer,this._heatLayer];this._map.removeLayer(t),this._map.addLayer(e)}_updateHeatmap(e){if(!Array.isArray(e))return;const t=e.map((({count:e})=>e)),o=e.length>0?Math.max(...t):1,r=e.map((({lat:e,lon:t,count:o})=>[e,t,o])),a={blur:7,max:o,minOpacity:.3,radius:8};this._heatLayer.clearLayers().addLayer(new g(r,a))}_updatePoints(e){if(!Array.isArray(e))return;const t=new Set(Object.keys(this._pointsCache));for(const o of e){const e=[o.lat,o.lon,o.marker.tag].join(",");null==this._pointsCache[e]&&this._createMarker(e,o),this._updateMarker(e,o),t.delete(e)}for(const e of t.values())this._deleteMarker(e)}_createMarker(e,t){const o=document.createElement(t.marker.tag),r=l({html:o,iconSize:o.size,iconAnchor:o.anchor,tooltipAnchor:o.tooltip,className:"cc-map-marker"}),a=m([t.lat,t.lon],{icon:r,zIndexOffset:t.zIndexOffset,keyboard:!1}).addTo(this._pointsLayer);a.on("click",(()=>s(this,"marker-click",t))).on("mouseover",(()=>s(this,"marker-enter",t))).on("mouseout",(()=>s(this,"marker-leave",t))),this._pointsCache[e]={point:t,marker:a,iconElement:o}}_updateMarker(e,t){this._pointsCache[e].point=t;const{point:o,marker:r,iconElement:a}=this._pointsCache[e];for(const e in o.marker)"tag"!==e&&(a[e]=o.marker[e]);if(r.setZIndexOffset(o.zIndexOffset),null==o.tooltip)r.unbindTooltip();else if(null==r.getTooltip()&&r.bindTooltip("",{direction:"top",opacity:1}),null==o.tooltip.tag)r.setTooltipContent(o.tooltip);else{const e=r.getTooltip().getContent(),t=e?.tagName?.toLowerCase(),a=t!==o.tooltip.tag?document.createElement(o.tooltip.tag):e;for(const e in o.tooltip)"tag"!==e&&(a[e]=o.tooltip[e]);this.appendChild(a),this.removeChild(a),r.setTooltipContent(a)}}_deleteMarker(e){const{marker:t}=this._pointsCache[e];this._pointsLayer.removeLayer(t),delete this._pointsCache[e]}panInside(e,t){this._map.panInside([e,t],{padding:[50,50]})}firstUpdated(){this._map=d(this.renderRoot.getElementById("cc-map-container"),{attributionControl:!1,doubleClickZoom:!0,dragging:!0,keyboard:!0,maxBounds:[[-84,-180],[90,180]],maxBoundsViscosity:1,maxZoom:6,minZoom:1,zoomControl:!0}).setView([this.centerLat,this.centerLon],this.viewZoom),this._map.on("zoomanim",(e=>{this.viewZoom=e.zoom})),this._map.zoomControl.setPosition("bottomright"),p(i,{style:{className:"map-country"},pane:"tilePane"}).addTo(this._map),this._pointsLayer=h(),this._heatLayer=h(),this._resetCurrentLayer()}updated(e){(e.has("centerLat")||e.has("centerLon"))&&this._map.setView([this.centerLat,this.centerLon]),e.has("viewZoom")&&this._map.setZoom(this.viewZoom),e.has("mode")&&this._resetCurrentLayer(),e.has("heatmapPoints")&&this._updateHeatmap(this.heatmapPoints),e.has("points")&&this._updatePoints(this.points)}render(){const e=!this.error&&"heatmap"===this.mode&&0===this.heatmapPoints?.length,o=this.loading?"loading":"info";return t`<div id=cc-map-container class=${r({"no-data":e})}></div><div class="${r({"no-data":e})} legend"><slot></slot></div>${this.loading&&!this.error?t`<cc-loader class=loader></cc-loader>`:""} ${this.error||e?t`<div class=msg-container>${this.error?t`<div class="${r({"error-loading":"loading"===o})} error-message">${"loading"===o?t`<cc-loader class=loader-error></cc-loader>`:""}<cc-icon .icon=${a} a11y-name=${c("cc-map.error.icon-a11y-name")} class=icon-warning></cc-icon><p>${c("cc-map.error")}</p></div>`:""} ${e?t`<div class=msg>${c("cc-map.no-points")}</div>`:""}</div>`:""}`}static get styles(){return[f,o`:host{position:relative;display:flex;width:20em;height:15em;flex-direction:column;background-color:var(--cc-color-bg-default,#fff)}#cc-map-container{width:100%;flex:1 1 0}:host([error]) .leaflet-control-container,:host([loading]) .leaflet-control-container{display:none}#cc-map-container.no-data,.legend.no-data,:host([error]) #cc-map-container,:host([error]) .legend,:host([loading]) #cc-map-container,:host([loading]) .legend{filter:blur(.1em)}.leaflet-container{z-index:1;background-color:#aadaff}.map-country{fill:#f5f5f5;fill-opacity:100%;stroke:#ddd;stroke-width:1}:host(:not(:empty)) .legend{box-sizing:border-box;padding:.45em 1.1em;background-color:var(--cc-color-bg-neutral);box-shadow:inset 0 6px 6px -6px rgb(0 0 0 / 40%);font-size:.9em;font-style:italic}.loader{position:absolute;z-index:2000;top:0;left:0;width:100%;height:100%}.loader-error{height:1.5em}.msg-container{position:absolute;z-index:2000;top:0;left:0;display:flex;width:100%;height:100%;align-items:center;justify-content:center}.msg{display:flex;align-items:center;justify-content:center;padding:1em;border:1px solid var(--cc-color-border-neutral,#aaa);background-color:var(--cc-color-bg-default,#fff);border-radius:var(--cc-border-radius-default,.25em);box-shadow:0 0 1em rgb(0 0 0 / 40%)}.cc-map-marker{display:flex;align-items:center;justify-content:center}.error-message{display:grid;align-items:center;padding:1em;border:1px solid #bcc2d1;background-color:var(--cc-color-bg-default,#fff);border-radius:var(--cc-border-radius-default,.25em);box-shadow:0 0 1em rgb(0 0 0 / 40%);gap:.5em;grid-template-columns:min-content 1fr;text-align:center}.error-message.error-loading{grid-template-columns:auto 1fr}.error-message.error-loading .icon-warning{display:none}.error-message p{margin:0}.icon-warning{align-self:center;color:var(--cc-color-text-warning);--cc-icon-size:1.25em}`]}}window.customElements.define("cc-map",u);export{u as CcMap};
//# sourceMappingURL=cc-map.js.map

@@ -1,2 +0,2 @@

import{Chart as e,BarController as t,BarElement as i,Tooltip as c,CategoryScale as a,LinearScale as r,Title as s,Filler as n}from"chart.js";import{LitElement as l,html as o,css as m}from"lit";import{classMap as d}from"lit/directives/class-map.js";import{createRef as p,ref as h}from"lit/directives/ref.js";import{iconCleverGrafana as g,iconCleverInfo as u,iconCleverRam as v}from"./assets/cc-clever.icons.js";import{iconRemixCloseLine as b,iconRemixCpuLine as f,iconRemixAlertFill as _}from"./assets/cc-remix.icons.js";import{ResizeController as y}from"./controllers/resize-controller.js";import{i18n as $}from"./i18n.js";import{accessibilityStyles as k}from"./styles/accessibility.js";import{tileStyles as x}from"./styles/info-tiles.js";import{skeletonStyles as C}from"./styles/skeleton.js";import{ccLink as w,linkStyles as j}from"./templates/cc-link/cc-link.js";import"./cc-button.js";import"./cc-icon.js";e.register(t,i,c,a,r,s,n);const D=Array.from(new Array(24)).map(((e,t)=>({skeleton:!0,value:0,timestamp:Date.now()-864e5+3600*t})));class z extends l{static get properties(){return{grafanaLink:{type:String},metrics:{type:Object},metricsLink:{type:String},_docsPanelVisible:{type:Boolean,attribute:!1}}}constructor(){super(),this.grafanaLink="",this.metrics={state:"loading"},this.metricsLink="",this._docsPanelVisible=!1,this._cpuCtxRef=p(),this._memCtxRef=p(),new y(this,{callback:()=>this.updateComplete.then((()=>{this._cpuChart?.resize(),this._memChart?.resize()}))})}_createChart(t){return new e(t,{type:"bar",options:{responsive:!1,maintainAspectRatio:!1,radius:0,interaction:{intersect:!1},scales:{x:{display:!1,stacked:!0},y:{display:!1,beginAtZero:!0}},plugins:{legend:{display:!1},tooltip:{enabled:!1}}}})}_getChartData(e){const t=e.map((e=>e.timestamp)),i=e.map((e=>e.value)),c=Array.from(new Array(24)).map((e=>100));return{labels:t,datasets:[{fill:"origin",data:i,backgroundColor:e.map((({value:e,skeleton:t})=>t?"#bbb":this._getColorChart(e)))},{fill:"origin",data:c}]}}_getColorChart(e){return e>80?"rgb(190, 52, 97)":e>20?"rgb(78, 100, 234)":"rgb(100, 146, 234)"}_getColorLegend(e){return e>80?"var(--cc-color-text-danger)":e>20?"var(--cc-color-text-primary-strong)":"var(--cc-color-text-primary)"}_getCurrentPanel(){return this._docsPanelVisible?"docs":"error"===this.metrics.state?"error":"empty"===this.metrics.state?"empty":"loading"===this.metrics.state||"loaded"===this.metrics.state?"chart":void 0}_onToggleDocs(){this._docsPanelVisible=!this._docsPanelVisible}firstUpdated(){this._cpuChart=this._createChart(this._cpuCtxRef.value),this._memChart=this._createChart(this._memCtxRef.value)}updated(e){e.has("metrics")&&(this._cpuChart.data="loaded"===this.metrics.state?this._getChartData(this.metrics.value.cpuData):this._getChartData(D),this._cpuChart.update(),this._cpuChart.resize(),this._memChart.data="loaded"===this.metrics.state?this._getChartData(this.metrics.value.memData):this._getChartData(D),this._memChart.update(),this._memChart.resize())}render(){const e=this.metrics.state,t="loaded"===e?this.metrics.value.cpuData[this.metrics.value.cpuData.length-1].value:0,i="loaded"===e?this.metrics.value.memData[this.metrics.value.memData.length-1].value:0,c="loaded"===e?this._getColorLegend(t):"#bbb",a="loaded"===e?this._getColorLegend(i):"#bbb",r=this._getCurrentPanel();return o`<div class=tile_title>${$("cc-tile-metrics.title")}<div class=docs-buttons>${"loaded"===e?o`${w(this.grafanaLink,o`<cc-icon class=icon--grafana .icon=${g} a11y-name=${$("cc-tile-metrics.link-to-grafana")}></cc-icon>`,!1,$("cc-tile-metrics.link-to-grafana"))}`:""}<cc-button class="${d({"icon--close":this._docsPanelVisible,"icon--info":!this._docsPanelVisible})} docs-toggle" .icon=${this._docsPanelVisible?b:u} hide-text @cc-button:click=${this._onToggleDocs}>${this._docsPanelVisible?$("cc-tile-metrics.close-btn"):$("cc-tile-metrics.about-btn")}</cc-button></div></div><div class="${d({"tile--hidden":"chart"!==r})} tile_body"><div class=category aria-hidden=true><cc-icon size=lg class=icon--cpu .icon=${f}></cc-icon><div class="chart-container-wrapper chart-cpu"><div class="${d({skeleton:"loading"===e})} chart-container"><canvas id=cpu_chart ${h(this._cpuCtxRef)}></canvas></div></div><div class="${d({skeleton:"loading"===e,"skeleton-data-value":"loading"===e})} current-percentage percent-cpu" style=color:${c}>${$("cc-tile-metrics.percent",{percent:t/100})}</div><div class=legend-cpu>${$("cc-tile-metrics.legend.cpu")}</div></div><div class=category aria-hidden=true><cc-icon size=lg class=icon--mem .icon=${v}></cc-icon><div class="chart-container-wrapper chart-mem"><div class="${d({skeleton:"loading"===e})} chart-container"><canvas id=mem_chart ${h(this._memCtxRef)}></canvas></div></div><div class="${d({skeleton:"loading"===e,"skeleton-data-value":"loading"===e})} current-percentage percent-mem" style=color:${a}>${$("cc-tile-metrics.percent",{percent:i/100})}</div><div class=legend-mem>${$("cc-tile-metrics.legend.mem")}</div></div>${"loaded"===e?this._renderAccessibleTable():""}</div><div class="${d({"tile--hidden":"empty"!==r})} tile_message">${$("cc-tile-metrics.empty")}</div><div class="${d({"tile--hidden":"error"!==r})} tile_message"><div class=error-message><cc-icon .icon=${_} a11y-name=${$("cc-tile-metrics.error.icon-a11y-name")} class=icon-warning></cc-icon><p>${$("cc-tile-metrics.error")}</p></div></div><div class="${d({"tile--hidden":"docs"!==r})} tile_docs">${$("cc-tile-metrics.docs.msg")}<div class=docs-links><p>${$("cc-tile-metrics.docs.more-metrics")}</p><ul><li>${w(this.grafanaLink,$("cc-tile-metrics.grafana"),"loading"===e,$("cc-tile-metrics.link-to-grafana"))}</li><li>${w(this.metricsLink,$("cc-tile-metrics.metrics-link"),"loading"===e,$("cc-tile-metrics.link-to-metrics"))}</li></ul></div></div>`}_renderAccessibleTable(){return o`<table class=visually-hidden><caption>${$("cc-tile-metrics.title")}</caption><thead><tr><th lang=en>${$("cc-tile-metrics.a11y.table-header.timestamp")}</th><th>${$("cc-tile-metrics.a11y.table-header.cpu")}</th><th>${$("cc-tile-metrics.a11y.table-header.mem")}</th></tr></thead><tbody>${this.metrics.value.cpuData.map(((e,t)=>{const i=this.metrics.value.memData[t];return o`<tr><th>${$("cc-tile-metrics.timestamp-format",{timestamp:e.timestamp})}</th><td>${$("cc-tile-metrics.percent",{percent:e.value/100})}</td><td>${$("cc-tile-metrics.percent",{percent:i.value/100})}</td></tr>`}))}</tbody></table>`}static get styles(){return[k,j,C,x,m`.tile_title{display:flex;align-items:center;justify-content:space-between}.tile_title .cc-link{display:flex;width:1.75em;height:1.75em;box-sizing:border-box;align-items:center;justify-content:center;border:1px solid var(--cc-color-bg-strong);border-radius:var(--cc-border-radius-small,.15em);box-shadow:rgb(255 255 255 / 0%) 0 0 0 0;transition:box-shadow 75ms ease-in-out}.tile_title .cc-link:hover{box-shadow:rgb(0 0 0 / 40%) 0 1px 3px}.docs-buttons{display:flex;align-items:center;font-size:.8em;gap:.5em}.chart-container-wrapper{position:relative;width:100%;height:100%;grid-area:chart-wrapper}.chart-cpu{grid-area:chart-cpu}.chart-mem{grid-area:chart-mem}.chart-container{position:absolute;width:100%;min-width:0;height:100%;margin:auto}.tile_body{position:relative;min-height:8.75em;align-items:center;gap:0 1em;grid-template-areas:'icon-cpu chart-cpu percent-cpu' '. legend-cpu .' 'icon-mem chart-mem percent-mem' '. legend-mem .';grid-template-columns:min-content 1fr min-content;grid-template-rows:1fr max-content 1fr max-content}.percent-cpu{grid-area:percent-cpu}.percent-mem{grid-area:percent-mem}.skeleton-data-value{background-color:#bbb}.tile_body,.tile_docs,.tile_message{grid-area:2/1/3/2}.tile--hidden{visibility:hidden}.category{display:contents}.current-percentage{justify-self:end}.legend-cpu,.legend-mem{align-self:center;margin-top:.5em;color:var(--cc-color-text-weak);font-size:.75em;font-style:italic;justify-self:center}.legend-cpu{margin-bottom:1.25em;grid-area:legend-cpu}.legend-mem{grid-area:legend-mem}.tile_docs{display:grid;align-content:center}p{margin:0}.tile_docs ul{display:flex;padding:0;margin:0;gap:.5em;list-style:none}.docs-links{display:flex;align-items:flex-end;margin-top:.5em;gap:.5em}.icon--close{--cc-icon-size:1.4em}.icon--info{--cc-icon-color:var(--color-blue-60);--cc-icon-size:1.25em}.icon--grafana{--cc-icon-size:1.25em}.icon--cpu{grid-area:icon-cpu;--cc-icon-color:var(--cc-color-text-weak)}.icon--mem{grid-area:icon-mem;--cc-icon-color:var(--cc-color-text-weak)}.error-message{display:grid;gap:.75em;grid-template-columns:min-content 1fr;text-align:left}.error-message p{margin:0}.icon-warning{align-self:center;color:var(--cc-color-text-warning);--cc-icon-size:1.25em}`]}}window.customElements.define("cc-tile-metrics",z);export{z as CcTileMetrics};
import{Chart as e,BarController as t,BarElement as i,Tooltip as c,CategoryScale as a,LinearScale as r,Title as s,Filler as n}from"chart.js";import{LitElement as l,html as o,css as m}from"lit";import{classMap as d}from"lit/directives/class-map.js";import{createRef as p,ref as h}from"lit/directives/ref.js";import{iconCleverGrafana as g,iconCleverInfo as u,iconCleverRam as v}from"./assets/cc-clever.icons.js";import{iconRemixCloseLine as b,iconRemixCpuLine as f,iconRemixAlertFill as _}from"./assets/cc-remix.icons.js";import{ResizeController as y}from"./controllers/resize-controller.js";import{i18n as $}from"./i18n.js";import{accessibilityStyles as k}from"./styles/accessibility.js";import{tileStyles as x}from"./styles/info-tiles.js";import{skeletonStyles as C}from"./styles/skeleton.js";import{ccLink as w,linkStyles as j}from"./templates/cc-link/cc-link.js";import"./cc-button.js";import"./cc-icon.js";e.register(t,i,c,a,r,s,n);const D="#bbb",z=Array.from(new Array(24)).map(((e,t)=>({skeleton:!0,value:0,timestamp:Date.now()-864e5+3600*t})));class P extends l{static get properties(){return{grafanaLink:{type:String},metrics:{type:Object},metricsLink:{type:String},_docsPanelVisible:{type:Boolean,attribute:!1}}}constructor(){super(),this.grafanaLink="",this.metrics={state:"loading"},this.metricsLink="",this._docsPanelVisible=!1,this._cpuCtxRef=p(),this._memCtxRef=p(),new y(this,{callback:()=>this.updateComplete.then((()=>{this._cpuChart?.resize(),this._memChart?.resize()}))})}_createChart(t){return new e(t,{type:"bar",options:{responsive:!1,maintainAspectRatio:!1,radius:0,interaction:{intersect:!1},scales:{x:{display:!1,stacked:!0},y:{display:!1,beginAtZero:!0}},plugins:{legend:{display:!1},tooltip:{enabled:!1}}}})}_getChartData(e){const t=e.map((e=>e.timestamp)),i=e.map((e=>e.value)),c=Array.from(new Array(24)).map((e=>100));return{labels:t,datasets:[{fill:"origin",data:i,backgroundColor:e.map((({value:e,skeleton:t})=>t?D:this._getColorChart(e)))},{fill:"origin",data:c}]}}_getColorChart(e){return e>80?"rgb(190, 52, 97)":e>20?"rgb(78, 100, 234)":"rgb(100, 146, 234)"}_getColorLegend(e){return e>80?"var(--cc-color-text-danger)":e>20?"var(--cc-color-text-primary-strong)":"var(--cc-color-text-primary)"}_getCurrentPanel(){return this._docsPanelVisible?"docs":"error"===this.metrics.state?"error":"empty"===this.metrics.state?"empty":"loading"===this.metrics.state||"loaded"===this.metrics.state?"chart":void 0}_onToggleDocs(){this._docsPanelVisible=!this._docsPanelVisible}firstUpdated(){this._cpuChart=this._createChart(this._cpuCtxRef.value),this._memChart=this._createChart(this._memCtxRef.value)}updated(e){e.has("metrics")&&(this._cpuChart.data="loaded"===this.metrics.state?this._getChartData(this.metrics.value.cpuData):this._getChartData(z),this._cpuChart.update(),this._cpuChart.resize(),this._memChart.data="loaded"===this.metrics.state?this._getChartData(this.metrics.value.memData):this._getChartData(z),this._memChart.update(),this._memChart.resize())}render(){const e=this.metrics.state,t="loaded"===e?this.metrics.value.cpuData[this.metrics.value.cpuData.length-1].value:0,i="loaded"===e?this.metrics.value.memData[this.metrics.value.memData.length-1].value:0,c="loaded"===e?this._getColorLegend(t):D,a="loaded"===e?this._getColorLegend(i):D,r=this._getCurrentPanel();return o`<div class=tile_title>${$("cc-tile-metrics.title")}<div class=docs-buttons>${"loaded"===e?o`${w(this.grafanaLink,o`<cc-icon class=icon--grafana .icon=${g} a11y-name=${$("cc-tile-metrics.link-to-grafana")}></cc-icon>`,!1,$("cc-tile-metrics.link-to-grafana"))}`:""}<cc-button class="${d({"icon--close":this._docsPanelVisible,"icon--info":!this._docsPanelVisible})} docs-toggle" .icon=${this._docsPanelVisible?b:u} hide-text @cc-button:click=${this._onToggleDocs}>${this._docsPanelVisible?$("cc-tile-metrics.close-btn"):$("cc-tile-metrics.about-btn")}</cc-button></div></div><div class="${d({"tile--hidden":"chart"!==r})} tile_body"><div class=category aria-hidden=true><cc-icon size=lg class=icon--cpu .icon=${f}></cc-icon><div class="chart-container-wrapper chart-cpu"><div class="${d({skeleton:"loading"===e})} chart-container"><canvas id=cpu_chart ${h(this._cpuCtxRef)}></canvas></div></div><div class="${d({skeleton:"loading"===e,"skeleton-data-value":"loading"===e})} current-percentage percent-cpu" style=color:${c}>${$("cc-tile-metrics.percent",{percent:t/100})}</div><div class=legend-cpu>${$("cc-tile-metrics.legend.cpu")}</div></div><div class=category aria-hidden=true><cc-icon size=lg class=icon--mem .icon=${v}></cc-icon><div class="chart-container-wrapper chart-mem"><div class="${d({skeleton:"loading"===e})} chart-container"><canvas id=mem_chart ${h(this._memCtxRef)}></canvas></div></div><div class="${d({skeleton:"loading"===e,"skeleton-data-value":"loading"===e})} current-percentage percent-mem" style=color:${a}>${$("cc-tile-metrics.percent",{percent:i/100})}</div><div class=legend-mem>${$("cc-tile-metrics.legend.mem")}</div></div>${"loaded"===e?this._renderAccessibleTable():""}</div><div class="${d({"tile--hidden":"empty"!==r})} tile_message">${$("cc-tile-metrics.empty")}</div><div class="${d({"tile--hidden":"error"!==r})} tile_message"><div class=error-message><cc-icon .icon=${_} a11y-name=${$("cc-tile-metrics.error.icon-a11y-name")} class=icon-warning></cc-icon><p>${$("cc-tile-metrics.error")}</p></div></div><div class="${d({"tile--hidden":"docs"!==r})} tile_docs">${$("cc-tile-metrics.docs.msg")}<div class=docs-links><p>${$("cc-tile-metrics.docs.more-metrics")}</p><ul><li>${w(this.grafanaLink,$("cc-tile-metrics.grafana"),"loading"===e,$("cc-tile-metrics.link-to-grafana"))}</li><li>${w(this.metricsLink,$("cc-tile-metrics.metrics-link"),"loading"===e,$("cc-tile-metrics.link-to-metrics"))}</li></ul></div></div>`}_renderAccessibleTable(){return o`<table class=visually-hidden><caption>${$("cc-tile-metrics.title")}</caption><thead><tr><th lang=en>${$("cc-tile-metrics.a11y.table-header.timestamp")}</th><th>${$("cc-tile-metrics.a11y.table-header.cpu")}</th><th>${$("cc-tile-metrics.a11y.table-header.mem")}</th></tr></thead><tbody>${this.metrics.value.cpuData.map(((e,t)=>{const i=this.metrics.value.memData[t];return o`<tr><th>${$("cc-tile-metrics.timestamp-format",{timestamp:e.timestamp})}</th><td>${$("cc-tile-metrics.percent",{percent:e.value/100})}</td><td>${$("cc-tile-metrics.percent",{percent:i.value/100})}</td></tr>`}))}</tbody></table>`}static get styles(){return[k,j,C,x,m`.tile_title{display:flex;align-items:center;justify-content:space-between}.tile_title .cc-link{display:flex;width:1.75em;height:1.75em;box-sizing:border-box;align-items:center;justify-content:center;border:1px solid var(--cc-color-bg-strong);border-radius:var(--cc-border-radius-small,.15em);box-shadow:rgb(255 255 255 / 0%) 0 0 0 0;transition:box-shadow 75ms ease-in-out}.tile_title .cc-link:hover{box-shadow:rgb(0 0 0 / 40%) 0 1px 3px}.docs-buttons{display:flex;align-items:center;font-size:.8em;gap:.5em}.chart-container-wrapper{position:relative;width:100%;height:100%;grid-area:chart-wrapper}.chart-cpu{grid-area:chart-cpu}.chart-mem{grid-area:chart-mem}.chart-container{position:absolute;width:100%;min-width:0;height:100%;margin:auto}.tile_body{position:relative;min-height:8.75em;align-items:center;gap:0 1em;grid-template-areas:'icon-cpu chart-cpu percent-cpu' '. legend-cpu .' 'icon-mem chart-mem percent-mem' '. legend-mem .';grid-template-columns:min-content 1fr min-content;grid-template-rows:1fr max-content 1fr max-content}.percent-cpu{grid-area:percent-cpu}.percent-mem{grid-area:percent-mem}.skeleton-data-value{background-color:#bbb}.tile_body,.tile_docs,.tile_message{grid-area:2/1/3/2}.tile--hidden{visibility:hidden}.category{display:contents}.current-percentage{justify-self:end}.legend-cpu,.legend-mem{align-self:center;margin-top:.5em;color:var(--cc-color-text-weak);font-size:.75em;font-style:italic;justify-self:center}.legend-cpu{margin-bottom:1.25em;grid-area:legend-cpu}.legend-mem{grid-area:legend-mem}.tile_docs{display:grid;align-content:center}p{margin:0}.tile_docs ul{display:flex;padding:0;margin:0;gap:.5em;list-style:none}.docs-links{display:flex;align-items:flex-end;margin-top:.5em;gap:.5em}.icon--close{--cc-icon-size:1.4em}.icon--info{--cc-icon-color:var(--color-blue-60);--cc-icon-size:1.25em}.icon--grafana{--cc-icon-size:1.25em}.icon--cpu{grid-area:icon-cpu;--cc-icon-color:var(--cc-color-text-weak)}.icon--mem{grid-area:icon-mem;--cc-icon-color:var(--cc-color-text-weak)}.error-message{display:grid;gap:.75em;grid-template-columns:min-content 1fr;text-align:left}.error-message p{margin:0}.icon-warning{align-self:center;color:var(--cc-color-text-warning);--cc-icon-size:1.25em}`]}}window.customElements.define("cc-tile-metrics",P);export{P as CcTileMetrics};
//# sourceMappingURL=cc-tile-metrics.js.map

@@ -1,2 +0,2 @@

import"./cc-img.js";import{LitElement as t,html as e,css as a}from"lit";import{classMap as s}from"lit/directives/class-map.js";import{ifDefined as l}from"lit/directives/if-defined.js";import{i18n as o}from"./i18n.js";import{getFlagUrl as r,getInfraProviderLogoUrl as i}from"./lib/remote-assets.js";import{skeletonStyles as n}from"./styles/skeleton.js";const c={name:"name",country:"????????????",city:"??????????",tags:["????????","????????????"]};class m extends t{static get properties(){return{mode:{type:String,reflect:!0},zone:{type:Object}}}constructor(){super(),this.mode="default",this.zone=null}static getText(t){const{title:e,subtitle:a,infra:s}=m._getTextParts(t),l=[e,a].filter((t=>null!=t)).join(", ");return null!=s?`${l} (${s})`:l}static _getTextParts(t){if(t.tags.includes("scope:private")&&null!=t.displayName)return{title:t.displayName};const e=t.tags.find((t=>t.startsWith("infra:")))?.split(":")[1]??null;return{title:t.city,subtitle:o("cc-zone.country",{code:t.countryCode,name:t.country}),infra:e}}render(){const t=null==this.zone,a=t?c:this.zone,{title:o,subtitle:n,infra:d}=m._getTextParts(a);return e`<cc-img class=flag ?skeleton=${t} src=${l(r(a.countryCode))} a11y-name=${l(a.countryCode)}></cc-img><div class=wrapper-details-logo><div class=wrapper-details><div class=details><span class="${s({skeleton:t})} title">${o}</span> <span class="${s({skeleton:t})} subtitle">${n}</span></div>${null!=d?e`<cc-img class=infra-logo src=${i(d)} a11y-name=${d}></cc-img>`:""}</div><div class=tag-list>${a.tags.map((e=>this._renderTag(e,t)))}</div></div>`}_renderTag(t,a){if(t.includes(":")){const[l,o]=t.split(":");return e`<span class="${s({skeleton:a})} tag"><span class=tag__category>${l}:</span> <span>${o}</span></span>`}return e`<span class="${s({skeleton:a})} tag">${t}</span>`}static get styles(){return[n,a`:host{--lh:1.5em;display:flex}:host([mode=small-infra]),:host([mode=small]){--lh:1em}.flag{display:inline-block;width:2em;height:var(--lh);margin-right:1em;border-radius:var(--cc-border-radius-small,.15em);box-shadow:0 0 3px rgb(0 0 0 / 40%)}:host([mode=small-infra]) .flag,:host([mode=small]) .flag{width:1.33em;margin-right:.5em}.wrapper-details-logo{min-height:var(--lh);flex:1 1 0}.wrapper-details{display:flex}.details{flex:1 1 0;align-self:center;line-height:var(--lh)}:host([mode=small-infra]) .subtitle,:host([mode=small-infra]) .title,:host([mode=small]) .subtitle,:host([mode=small]) .title{font-size:.8em}.title{font-weight:700}.subtitle{color:var(--cc-zone-subtitle-color,var(--cc-color-text-weak))}.infra-logo{--cc-img-fit:contain;width:4em;height:var(--lh);margin-left:.5em}:host([mode=small-infra]) .tag-list,:host([mode=small]) .infra-logo,:host([mode=small]) .tag-list{display:none}.tag-list{display:flex;flex-wrap:wrap;margin-top:.1em;gap:.5em}.tag{display:flex;box-sizing:border-box;padding:var(--cc-zone-tag-padding,.1em .3em);border:1px solid var(--cc-zone-tag-bdcolor,transparent);background-color:var(--cc-zone-tag-bgcolor,var(--cc-color-bg-soft,#eee));border-radius:var(--cc-border-radius-default,.25em);color:var(--cc-zone-tag-textcolor,var(--cc-color-text-default,#000));font-family:var(--cc-zone-tag-font-family,var(--cc-ff-monospace));font-size:.8em;line-height:1.5}.tag__category{font-weight:var(--cc-zone-tag-category-font-weight,normal)}.skeleton{color:transparent!important}.skeleton:not(.tag){background-color:#bbb}`]}}window.customElements.define("cc-zone",m);export{m as CcZone};
import"./cc-img.js";import{LitElement as t,html as e,css as a}from"lit";import{classMap as s}from"lit/directives/class-map.js";import{ifDefined as l}from"lit/directives/if-defined.js";import{i18n as o}from"./i18n.js";import{getFlagUrl as r,getInfraProviderLogoUrl as i}from"./lib/remote-assets.js";import{skeletonStyles as n}from"./styles/skeleton.js";const c={name:"name",country:"????????????",city:"??????????",tags:["????????","????????????"]};class m extends t{static get properties(){return{mode:{type:String,reflect:!0},zone:{type:Object}}}constructor(){super(),this.mode="default",this.zone=null}static getText(t){const{title:e,subtitle:a,infra:s}=m._getTextParts(t),l=[e,a].filter((t=>null!=t)).join(", ");return null!=s?`${l} (${s})`:l}static _getTextParts(t){if(t.tags.includes("scope:private")&&null!=t.displayName)return{title:t.displayName};const e=t.tags.find((t=>t.startsWith("infra:"))),a=e?.split(":")[1]??null;return{title:t.city,subtitle:o("cc-zone.country",{code:t.countryCode,name:t.country}),infra:a}}render(){const t=null==this.zone,a=t?c:this.zone,{title:o,subtitle:n,infra:d}=m._getTextParts(a);return e`<cc-img class=flag ?skeleton=${t} src=${l(r(a.countryCode))} a11y-name=${l(a.countryCode)}></cc-img><div class=wrapper-details-logo><div class=wrapper-details><div class=details><span class="${s({skeleton:t})} title">${o}</span> <span class="${s({skeleton:t})} subtitle">${n}</span></div>${null!=d?e`<cc-img class=infra-logo src=${i(d)} a11y-name=${d}></cc-img>`:""}</div><div class=tag-list>${a.tags.map((e=>this._renderTag(e,t)))}</div></div>`}_renderTag(t,a){if(t.includes(":")){const[l,o]=t.split(":");return e`<span class="${s({skeleton:a})} tag"><span class=tag__category>${l}:</span> <span>${o}</span></span>`}return e`<span class="${s({skeleton:a})} tag">${t}</span>`}static get styles(){return[n,a`:host{--lh:1.5em;display:flex}:host([mode=small-infra]),:host([mode=small]){--lh:1em}.flag{display:inline-block;width:2em;height:var(--lh);margin-right:1em;border-radius:var(--cc-border-radius-small,.15em);box-shadow:0 0 3px rgb(0 0 0 / 40%)}:host([mode=small-infra]) .flag,:host([mode=small]) .flag{width:1.33em;margin-right:.5em}.wrapper-details-logo{min-height:var(--lh);flex:1 1 0}.wrapper-details{display:flex}.details{flex:1 1 0;align-self:center;line-height:var(--lh)}:host([mode=small-infra]) .subtitle,:host([mode=small-infra]) .title,:host([mode=small]) .subtitle,:host([mode=small]) .title{font-size:.8em}.title{font-weight:700}.subtitle{color:var(--cc-zone-subtitle-color,var(--cc-color-text-weak))}.infra-logo{--cc-img-fit:contain;width:4em;height:var(--lh);margin-left:.5em}:host([mode=small-infra]) .tag-list,:host([mode=small]) .infra-logo,:host([mode=small]) .tag-list{display:none}.tag-list{display:flex;flex-wrap:wrap;margin-top:.1em;gap:.5em}.tag{display:flex;box-sizing:border-box;padding:var(--cc-zone-tag-padding,.1em .3em);border:1px solid var(--cc-zone-tag-bdcolor,transparent);background-color:var(--cc-zone-tag-bgcolor,var(--cc-color-bg-soft,#eee));border-radius:var(--cc-border-radius-default,.25em);color:var(--cc-zone-tag-textcolor,var(--cc-color-text-default,#000));font-family:var(--cc-zone-tag-font-family,var(--cc-ff-monospace));font-size:.8em;line-height:1.5}.tag__category{font-weight:var(--cc-zone-tag-category-font-weight,normal)}.skeleton{color:transparent!important}.skeleton:not(.tag){background-color:#bbb}`]}}window.customElements.define("cc-zone",m);export{m as CcZone};
//# sourceMappingURL=cc-zone.js.map

@@ -1,2 +0,2 @@

import{range as e,randomPick as i,random as t}from"./lib/utils.js";const a=[1,3,4,9],n=e(31,36);const o={level:e=>{let i="neutral";return"ERROR"===e.value?i="danger":"WARN"===e.value?i="warning":"INFO"===e.value&&(i="info"),{strong:!0,intent:i,size:5}},ip:e=>({text:`💻 ${e.value}`,strong:!0,size:17})};function u(o,{longMessage:u=!1,ansi:l=!1,manyMetadata:r=!1}){const s=u?"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.":"Lorem ipsum dolor sit amet, consectetur adipiscing elit...",m=l?function(e){return e.split(" ").slice(0,t(5,50)).map((e=>`[${i(a)};${i(n)}m${e}`)).join(" ")}(s):s,c=r?e(1,20).map((e=>({name:`metadata${e}`,value:`value${e}`}))):[{name:"level",value:i(["INFO","WARN","DEBUG","ERROR"])},{name:"ip",value:i(["192.168.12.1","192.168.48.157"])}],d=new Date;return{id:`${d.getTime()}-${o}`,date:d,message:`Message ${o}. ${m}`,metadata:c}}function l(e,i){return Array(e).fill(0).map(((e,t)=>u(t,i??{})))}export{o as CUSTOM_METADATA_RENDERERS,u as createFakeLog,l as createFakeLogs};
import{range as e,randomPick as i,random as t}from"./lib/utils.js";const a="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",n="Lorem ipsum dolor sit amet, consectetur adipiscing elit...",o=[1,3,4,9],u=e(31,36);const l={level:e=>{let i="neutral";return"ERROR"===e.value?i="danger":"WARN"===e.value?i="warning":"INFO"===e.value&&(i="info"),{strong:!0,intent:i,size:5}},ip:e=>({text:`💻 ${e.value}`,strong:!0,size:17})};function r(l,{longMessage:r=!1,ansi:s=!1,manyMetadata:m=!1}){const c=r?a:n,d=s?function(e){return e.split(" ").slice(0,t(5,50)).map((e=>`[${i(o)};${i(u)}m${e}`)).join(" ")}(c):c,p=m?e(1,20).map((e=>({name:`metadata${e}`,value:`value${e}`}))):[{name:"level",value:i(["INFO","WARN","DEBUG","ERROR"])},{name:"ip",value:i(["192.168.12.1","192.168.48.157"])}],g=new Date;return{id:`${g.getTime()}-${l}`,date:g,message:`Message ${l}. ${d}`,metadata:p}}function s(e,i){return Array(e).fill(0).map(((e,t)=>r(t,i??{})))}export{l as CUSTOM_METADATA_RENDERERS,r as createFakeLog,s as createFakeLogs};
//# sourceMappingURL=fake-logs.js.map

@@ -91,2 +91,4 @@ import './cc-addon-admin.js';

import './generate-random-keywords.js';
import './cc-product-list.js';
import './products-controller.js';
import './cc-select.js';

@@ -93,0 +95,0 @@ import './cc-smart-container.js';

@@ -1,2 +0,2 @@

const t=/[\s_.-]+/;function n(n){return function(n){const r=[n.charAt(0)];for(let t=1;t<n.length;t++){const c=n.charAt(t-1).match(/[a-z]/g)?.length>0,e=n.charAt(t).match(/[A-Z]/g)?.length>0;c&&e&&r.push(" "),r.push(n.charAt(t))}return r.join("").split(t)}(n).map(((t,n)=>function(t,n=!0){if(null==t||""===t)return"";const r=t.charAt(0),c=t.slice(1).toLowerCase();if(n&&r>="0"&&r<="9")return`_${r}${c}`;return`${r.toUpperCase()}${c}`}(t,n>0))).join("")}export{n as pascalCase};
const t=/[\s_.-]+/,n="_";function r(r){return function(n){const r=[n.charAt(0)];for(let t=1;t<n.length;t++){const c=n.charAt(t-1).match(/[a-z]/g)?.length>0,e=n.charAt(t).match(/[A-Z]/g)?.length>0;c&&e&&r.push(" "),r.push(n.charAt(t))}return r.join("").split(t)}(r).map(((t,r)=>function(t,r=!0){if(null==t||""===t)return"";const c=t.charAt(0),e=t.slice(1).toLowerCase();if(r&&c>="0"&&c<="9")return`${n}${c}${e}`;return`${c.toUpperCase()}${e}`}(t,r>0))).join("")}export{r as pascalCase};
//# sourceMappingURL=change-case.js.map

@@ -1,2 +0,2 @@

import{clampNumber as t}from"../utils.js";const e=1e3,n=6e4,r=36e5,i=864e5;function o(t){return new Date(t.getTime())}function u(t){return t instanceof Date&&!isNaN(t)}function f(e,n,r){return new Date(t(e.getTime(),n?.getTime(),r?.getTime()))}function c(t,e){return new Date(t,e+1,0).getDate()}const a={Y:function(t,e){const n=o(t),r=t.getUTCFullYear()+e;let i=t.getUTCDate();return i>28&&(i=Math.min(i,c(r,t.getUTCMonth())),n.setUTCDate(i)),n.setUTCFullYear(r),n},M:function(t,e){const n=o(t),r=Math.floor(e/12),i=e-12*r,u=t.getUTCFullYear()+r,f=t.getUTCMonth()+i;let a=t.getUTCDate();return a>28&&(a=Math.min(a,c(u,f)),n.setUTCDate(a)),n.setUTCFullYear(u),n.setUTCMonth(f),n},D:function(t,e){return a._shift(t,864e5*e)},H:function(t,e){return a._shift(t,36e5*e)},m:function(t,e){return a._shift(t,6e4*e)},s:function(t,e){return a._shift(t,1e3*e)},S:function(t,e){return a._shift(t,e)},_shift:function(t,e){return new Date(t.getTime()+e)}};function s(t,e,n){const r=a[e];if(null==r)throw new Error(`Cannot shift field "${e}".`);return r(t,n)}const d=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}(Z|[+-]\d{2}:\d{2})$/;function T(t){return C(t,d,(()=>new Date(t)))}const h=/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/;function l(t,e){return C(t,h,(()=>new Date(`${t}${"UTC"===e?"Z":""}`)))}function C(t,e,n){if(t.match(e)){const t=n();if(u(t))return t}throw new Error(`Invalid date "${t}"`)}export{i as DAY,r as HOUR,n as MINUTE,e as SECOND,f as clampDate,o as cloneDate,c as getNumberOfDaysInMonth,u as isDateValid,T as parseIsoDateString,l as parseSimpleDateString,s as shiftDateField};
import{clampNumber as t}from"../utils.js";const n=1e3,e=6e4,r=36e5,i=864e5;function o(t){return new Date(t.getTime())}function u(t){return t instanceof Date&&!isNaN(t)}function f(n,e,r){return new Date(t(n.getTime(),e?.getTime(),r?.getTime()))}function c(t,n){return new Date(t,n+1,0).getDate()}const a={Y:function(t,n){const e=o(t),r=t.getUTCFullYear()+n;let i=t.getUTCDate();return i>28&&(i=Math.min(i,c(r,t.getUTCMonth())),e.setUTCDate(i)),e.setUTCFullYear(r),e},M:function(t,n){const e=o(t),r=Math.floor(n/12),i=n-12*r,u=t.getUTCFullYear()+r,f=t.getUTCMonth()+i;let a=t.getUTCDate();return a>28&&(a=Math.min(a,c(u,f)),e.setUTCDate(a)),e.setUTCFullYear(u),e.setUTCMonth(f),e},D:function(t,n){return a._shift(t,n*i)},H:function(t,n){return a._shift(t,n*r)},m:function(t,n){return a._shift(t,6e4*n)},s:function(t,n){return a._shift(t,1e3*n)},S:function(t,n){return a._shift(t,n)},_shift:function(t,n){return new Date(t.getTime()+n)}};function s(t,n,e){const r=a[n];if(null==r)throw new Error(`Cannot shift field "${n}".`);return r(t,e)}const d=/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\.\d{3}(Z|[+-]\d{2}:\d{2})$/;function T(t){return C(t,d,(()=>new Date(t)))}const h=/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}$/;function l(t,n){return C(t,h,(()=>new Date(`${t}${"UTC"===n?"Z":""}`)))}function C(t,n,e){if(t.match(n)){const t=e();if(u(t))return t}throw new Error(`Invalid date "${t}"`)}export{i as DAY,r as HOUR,e as MINUTE,n as SECOND,f as clampDate,o as cloneDate,c as getNumberOfDaysInMonth,u as isDateValid,T as parseIsoDateString,l as parseSimpleDateString,s as shiftDateField};
//# sourceMappingURL=date-utils.js.map

@@ -1,2 +0,2 @@

function e(e,n,r){const t=e.plans.filter((e=>e.zones.length>0));return{name:e.name,productFeatures:o(e.features,r),plans:i(t,n,r)}}function n(e){return{sections:[{type:"storage",...u(e,"cellar.storage")},{type:"outbound-traffic",...u(e,"cellar.outbound")}]}}function r(e){return{sections:[{type:"storage",...u(e,"fsbucket.storage")}]}}function t(e){return{sections:[{type:"storage",...u(e,"pulsar_storage_size")},{type:"inbound-traffic",...u(e,"pulsar_throughput_in")},{type:"outbound-traffic",...u(e,"pulsar_throughput_out")}]}}function a(e){return{sections:[{type:"storage",...u(e,"heptapod.storage")},{type:"private-users",progressive:!0,...u(e,"heptapod.private_active_users")},{type:"public-users",progressive:!0,...u(e,"heptapod.public_active_users")}]}}function u(e,n){const r=e.countable.find((e=>e.service===n)),t="insecable"===r?.data_quantity_for_price?.secability?r.data_quantity_for_price.quantity:1,a=("PT1H"===r?.time_interval_for_price?.interval?720:1)/(r?.data_quantity_for_price?.quantity??1);return{secability:t,intervals:r.price_plans.map(((e,n,r)=>({minRange:0===n?0:r[n-1].max_quantity,maxRange:e.max_quantity,price:e.price*a})))}}function o(e,n){return(null==n?e.map((e=>e.name_code)).filter((e=>null!=e)):n).map((n=>e.find((e=>e.name_code===n)))).filter((e=>null!=e)).map((e=>({code:e.name_code,type:e.type.toLowerCase(),value:e.computable_value??"",name:e.name})))}function i(e,n,r){return e.map((e=>{const t=n.runtime.find((n=>n.slug_id.toLowerCase()===e.price_id.toLowerCase()));return{name:e.name,price:t?.price??0,features:o(e.features,r)}}))}function s(e,n){const r=function(e){const n=[{code:"cpu",type:"number-cpu-runtime"},{code:"memory",type:"bytes"}];e.variant.slug.startsWith("ml_")&&n.push({code:"gpu",type:"number"});return n}(e);return{name:e.variant.name,productFeatures:r,plans:p(e.flavors,n,r)}}function p(e,n,r){return e.map((e=>{const t=n.runtime.find((n=>n.slug_id.toLowerCase()===e.price_id.toLowerCase()));return{name:e.name,price:t?.price??0,features:c(r,e)}}))}function c(e,n){return e.map((e=>({...e,value:l(e.code,n)})))}function l(e,n){switch(e){case"cpu":return{cpu:n.cpus,shared:n.microservice,nice:n.nice};case"memory":return n.memory.value;case"gpu":return n.gpus}}function d(e){const n={type:"docker",version:"20211001",name:"Docker",defaultFlavor:null,buildFlavor:null,enabled:!0,comingSoon:!1,maxInstances:40,tags:[],deployments:["git"]};return"jenkins-runner"===e?{...n,variant:{id:"b8093938-4846-4f74-8c4a-82660180093e",slug:"jenkins-runner",name:"Jenkins runner",deployType:"docker",logo:"https://assets.clever-cloud.com/logos/jenkins.svg"},description:"Jenkins runner",flavors:[m("jenkins-runner.","XS",1,2),m("jenkins-runner.","S",2,4),m("jenkins-runner.","M",4,8),m("jenkins-runner.","L",6,12),m("jenkins-runner.","XL",8,16),m("jenkins-runner.","2XL",12,24),m("jenkins-runner.","3XL",16,32)]}:"heptapod-runner"===e?{...n,variant:{id:"9b207292-732b-4594-b48b-09a91ac72f0c",slug:"heptapod-runner",name:"Heptapod runner",deployType:"docker",logo:"https://assets.clever-cloud.com/logos/heptapod.svg"},description:"Heptapod runner",flavors:[m("heptapod-runner.","XS",1,2,!0,5),m("heptapod-runner.","S",2,4,!0,5),m("heptapod-runner.","M",4,8,!0,5),m("heptapod-runner.","L",6,12,!0,5),m("heptapod-runner.","XL",8,16,!0,5),m("heptapod-runner.","2XL",12,24,!0,5),m("heptapod-runner.","3XL",16,32,!0,5)]}:void 0}function m(e,n,r,t,a=!1,u=0){return{name:n,mem:null,cpus:r,gpus:0,disk:null,price:null,available:!0,microservice:a,machine_learning:!1,nice:u,price_id:e+n,memory:{unit:"B",value:t*1024**3,formatted:null}}}export{n as formatAddonCellar,r as formatAddonFsbucket,a as formatAddonHeptapod,e as formatAddonProduct,t as formatAddonPulsar,s as formatRuntimeProduct,d as getRunnerProduct};
function e(e,n,r){const t=e.plans.filter((e=>e.zones.length>0));return{name:e.name,productFeatures:i(e.features,r),plans:s(t,n,r)}}const n=720;function r(e){return{sections:[{type:"storage",...o(e,"cellar.storage")},{type:"outbound-traffic",...o(e,"cellar.outbound")}]}}function t(e){return{sections:[{type:"storage",...o(e,"fsbucket.storage")}]}}function a(e){return{sections:[{type:"storage",...o(e,"pulsar_storage_size")},{type:"inbound-traffic",...o(e,"pulsar_throughput_in")},{type:"outbound-traffic",...o(e,"pulsar_throughput_out")}]}}function u(e){return{sections:[{type:"storage",...o(e,"heptapod.storage")},{type:"private-users",progressive:!0,...o(e,"heptapod.private_active_users")},{type:"public-users",progressive:!0,...o(e,"heptapod.public_active_users")}]}}function o(e,r){const t=e.countable.find((e=>e.service===r)),a="insecable"===t?.data_quantity_for_price?.secability?t.data_quantity_for_price.quantity:1,u=("PT1H"===t?.time_interval_for_price?.interval?n:1)/(t?.data_quantity_for_price?.quantity??1);return{secability:a,intervals:t.price_plans.map(((e,n,r)=>({minRange:0===n?0:r[n-1].max_quantity,maxRange:e.max_quantity,price:e.price*u})))}}function i(e,n){return(null==n?e.map((e=>e.name_code)).filter((e=>null!=e)):n).map((n=>e.find((e=>e.name_code===n)))).filter((e=>null!=e)).map((e=>({code:e.name_code,type:e.type.toLowerCase(),value:e.computable_value??"",name:e.name})))}function s(e,n,r){return e.map((e=>{const t=n.runtime.find((n=>n.slug_id.toLowerCase()===e.price_id.toLowerCase()));return{name:e.name,price:t?.price??0,features:i(e.features,r)}}))}function p(e,n){const r=function(e){const n=[{code:"cpu",type:"number-cpu-runtime"},{code:"memory",type:"bytes"}];e.variant.slug.startsWith("ml_")&&n.push({code:"gpu",type:"number"});return n}(e);return{name:e.variant.name,productFeatures:r,plans:c(e.flavors,n,r)}}function c(e,n,r){return e.map((e=>{const t=n.runtime.find((n=>n.slug_id.toLowerCase()===e.price_id.toLowerCase()));return{name:e.name,price:t?.price??0,features:l(r,e)}}))}function l(e,n){return e.map((e=>({...e,value:d(e.code,n)})))}function d(e,n){switch(e){case"cpu":return{cpu:n.cpus,shared:n.microservice,nice:n.nice};case"memory":return n.memory.value;case"gpu":return n.gpus}}function m(e){const n={type:"docker",version:"20211001",name:"Docker",defaultFlavor:null,buildFlavor:null,enabled:!0,comingSoon:!1,maxInstances:40,tags:[],deployments:["git"]};return"jenkins-runner"===e?{...n,variant:{id:"b8093938-4846-4f74-8c4a-82660180093e",slug:"jenkins-runner",name:"Jenkins runner",deployType:"docker",logo:"https://assets.clever-cloud.com/logos/jenkins.svg"},description:"Jenkins runner",flavors:[f("jenkins-runner.","XS",1,2),f("jenkins-runner.","S",2,4),f("jenkins-runner.","M",4,8),f("jenkins-runner.","L",6,12),f("jenkins-runner.","XL",8,16),f("jenkins-runner.","2XL",12,24),f("jenkins-runner.","3XL",16,32)]}:"heptapod-runner"===e?{...n,variant:{id:"9b207292-732b-4594-b48b-09a91ac72f0c",slug:"heptapod-runner",name:"Heptapod runner",deployType:"docker",logo:"https://assets.clever-cloud.com/logos/heptapod.svg"},description:"Heptapod runner",flavors:[f("heptapod-runner.","XS",1,2,!0,5),f("heptapod-runner.","S",2,4,!0,5),f("heptapod-runner.","M",4,8,!0,5),f("heptapod-runner.","L",6,12,!0,5),f("heptapod-runner.","XL",8,16,!0,5),f("heptapod-runner.","2XL",12,24,!0,5),f("heptapod-runner.","3XL",16,32,!0,5)]}:void 0}function f(e,n,r,t,a=!1,u=0){return{name:n,mem:null,cpus:r,gpus:0,disk:null,price:null,available:!0,microservice:a,machine_learning:!1,nice:u,price_id:e+n,memory:{unit:"B",value:t*1024**3,formatted:null}}}export{r as formatAddonCellar,t as formatAddonFsbucket,u as formatAddonHeptapod,e as formatAddonProduct,a as formatAddonPulsar,p as formatRuntimeProduct,m as getRunnerProduct};
//# sourceMappingURL=product.js.map

@@ -1,2 +0,2 @@

const e="scope:private";function r(e){return null==e?null:[...e].sort(((e,r)=>{if(null==e||null==r)return 0;const l=e.tags.includes("infra:clever-cloud"),n=r.tags.includes("infra:clever-cloud");if(l!==n)return l?-1:1;const t=e.tags.includes("scope:private"),c=r.tags.includes("scope:private");if(l&&n){if(t!==c)return t?1:-1;if(t&&c)return(e.displayName??"").localeCompare(r.displayName??"")}return t!==c?t?-1:1:e.city.localeCompare(r.city)}))}export{e as PRIVATE_ZONE,r as sortZones};
const e="infra:clever-cloud",l="scope:private";function n(n){return null==n?null:[...n].sort(((n,r)=>{if(null==n||null==r)return 0;const t=n.tags.includes(e),i=r.tags.includes(e);if(t!==i)return t?-1:1;const u=n.tags.includes(l),c=r.tags.includes(l);if(t&&i){if(u!==c)return u?1:-1;if(u&&c)return(n.displayName??"").localeCompare(r.displayName??"")}return u!==c?u?-1:1:n.city.localeCompare(r.city)}))}export{l as PRIVATE_ZONE,n as sortZones};
//# sourceMappingURL=zone.js.map

@@ -1,2 +0,2 @@

import{objectEquals as e}from"./lib/utils.js";const t=Symbol("COMPONENTS"),n=Symbol("CURRENT_CONTEXT"),o=Symbol("LAST_CONTEXT");let r={};const c=new Set,i=new Set;function l(e,o){e[t]=new Map,c.add(e);const r=new MutationObserver((()=>f()));r.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeOldValue:!0}),o.addEventListener("abort",(()=>{r.disconnect(),c.delete(e),e[t].forEach(((t,n)=>{t.forEach((t=>d(e,n,t)))})),delete e[t],delete e[n]}),{once:!0})}function a(e,n){i.add(e),f(),null!=n&&n.addEventListener("abort",(()=>{i.delete(e),c.forEach((n=>{(n[t].get(e)??[]).forEach((t=>d(n,e,t))),n[t].delete(e)}))}),{once:!0})}function f(){const l=[],a=[],f=[];c.forEach((e=>{i.forEach((n=>{const o=Array.from(e.querySelectorAll(n.selector)).filter((t=>{return n="cc-smart-container",t.parentElement.closest(n)===e;var n})),r=e[t].get(n)??[];e[t].set(n,o),o.filter((e=>!r.includes(e))).forEach((t=>a.push([e,n,t]))),o.filter((e=>r.includes(e))).forEach((t=>f.push([e,n,t]))),r.filter((e=>!o.includes(e))).forEach((t=>l.push([e,n,t])))}))})),l.forEach((([e,t,n])=>d(e,t,n))),a.forEach((([e,t,n])=>function(e,t,n){n[o]={},t.onConnect?.(e,n)}(e,t,n))),[...a,...f].forEach((([t,c,i])=>function(t,c,i){const l=function(e,t){if(null==e)return{};if(null==t)return e;const n=Object.keys(t).map((t=>[t,e[t]])).filter((([e,t])=>void 0!==t));return Object.fromEntries(n)}({...r,...t[n]},c.params);if(e(i[o],l))return;i[o]=l,c.onContextUpdate?.(t,i,l)}(t,c,i)))}function s(e,t){e[n]=t,f()}function u(e){r=e,f()}function d(e,t,n){delete n[o],t.onDisconnect?.(e,n)}export{a as defineSmartComponentCore,l as observeContainer,s as updateContext,u as updateRootContext};
import{objectEquals as e}from"./lib/utils.js";const t=Symbol("COMPONENTS"),n=Symbol("CURRENT_CONTEXT"),o=Symbol("LAST_CONTEXT");let r={};const c=new Set,i=new Set;function l(e,o){e[t]=new Map,c.add(e);const r=new MutationObserver((()=>f()));r.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeOldValue:!0}),o.addEventListener("abort",(()=>{r.disconnect(),c.delete(e),e[t].forEach(((t,n)=>{t.forEach((t=>d(e,n,t)))})),delete e[t],delete e[n]}),{once:!0})}function a(e,n){i.add(e),f(),null!=n&&n.addEventListener("abort",(()=>{i.delete(e),c.forEach((n=>{(n[t].get(e)??[]).forEach((t=>d(n,e,t))),n[t].delete(e)}))}),{once:!0})}function f(){const l=[],a=[],f=[];c.forEach((e=>{i.forEach((n=>{const o=Array.from(e.querySelectorAll(n.selector)).filter((t=>{return n="cc-smart-container",t.parentElement.closest(n)===e;var n})),r=e[t].get(n)??[];e[t].set(n,o),o.filter((e=>!r.includes(e))).forEach((t=>a.push([e,n,t]))),o.filter((e=>r.includes(e))).forEach((t=>f.push([e,n,t]))),r.filter((e=>!o.includes(e))).forEach((t=>l.push([e,n,t])))}))})),l.forEach((([e,t,n])=>d(e,t,n))),a.forEach((([e,t,n])=>function(e,t,n){n[o]={},t.onConnect?.(e,n)}(e,t,n))),[...a,...f].forEach((([t,c,i])=>function(t,c,i){const l={...r,...t[n]},a=function(e,t){if(null==e)return{};if(null==t)return e;const n=Object.keys(t).map((t=>[t,e[t]])).filter((([e,t])=>void 0!==t));return Object.fromEntries(n)}(l,c.params);if(e(i[o],a))return;i[o]=a,c.onContextUpdate?.(t,i,a)}(t,c,i)))}function s(e,t){e[n]=t,f()}function u(e){r=e,f()}function d(e,t,n){delete n[o],t.onDisconnect?.(e,n)}export{a as defineSmartComponentCore,l as observeContainer,s as updateContext,u as updateRootContext};
//# sourceMappingURL=smart-manager.js.map

@@ -1,2 +0,2 @@

import{css as i,html as e}from"lit";import{classMap as o}from"lit/directives/class-map.js";import{ifDefined as n}from"lit/directives/if-defined.js";function c(i){try{return new URL(i,location.href).origin!==location.origin}catch(i){return!0}}const r=(i,r,t=!1,l)=>{const a=null!=i?i:void 0,s=c(a)?"_blank":void 0,d=c(a)?"noopener noreferrer":void 0;return e`<a class="${o({skeleton:t})} cc-link" href=${n(a)} target=${n(s)} rel=${n(d)} title=${n(l)}>${r}</a>`},t=i`.cc-link,.cc-link:active,.cc-link:visited,.sanitized-link,.sanitized-link:active,.sanitized-link:visited{color:var(--cc-color-text-primary-highlight,#00f)}.cc-link:enabled:hover,.sanitized-link:enabled:hover{color:var(--cc-color-text-primary)}.cc-link:focus,.sanitized-link:focus{background-color:var(--cc-color-bg-default,#fff);border-radius:.1em;outline:var(--cc-focus-outline,#000 solid 2px);outline-offset:var(--cc-focus-outline-offset,2px)}.cc-link::-moz-focus-inner,.sanitized-link::-moz-focus-inner{border:0}.cc-link .skeleton,.cc-link.skeleton,.sanitized-link .skeleton,.sanitized-link.skeleton{background-color:var(--cc-color-text-primary-weak,#76bcfd);color:transparent}`;export{r as ccLink,t as linkStyles};
import{css as i,html as e}from"lit";import{classMap as o}from"lit/directives/class-map.js";import{ifDefined as n}from"lit/directives/if-defined.js";function r(i){try{return new URL(i,location.href).origin!==location.origin}catch(i){return!0}}const c=(i,c,t=!1,l)=>{const a=null==i||t?void 0:i,s=r(a)?"_blank":void 0,d=r(a)?"noopener noreferrer":void 0;return e`<a class="${o({skeleton:t})} cc-link" href=${n(a)} target=${n(s)} rel=${n(d)} title=${n(l)}>${c}</a>`},t=i`.cc-link,.cc-link:active,.cc-link:visited,.sanitized-link,.sanitized-link:active,.sanitized-link:visited{color:var(--cc-color-text-primary-highlight,#00f)}.cc-link:enabled:hover,.sanitized-link:enabled:hover{color:var(--cc-color-text-primary)}.cc-link:focus,.sanitized-link:focus{background-color:var(--cc-color-bg-default,#fff);border-radius:.1em;outline:var(--cc-focus-outline,#000 solid 2px);outline-offset:var(--cc-focus-outline-offset,2px)}.cc-link::-moz-focus-inner,.sanitized-link::-moz-focus-inner{border:0}.cc-link .skeleton,.cc-link.skeleton,.sanitized-link .skeleton,.sanitized-link.skeleton{background-color:var(--cc-color-text-primary-weak,hsl(209deg 98% 73%));color:transparent}`;export{c as ccLink,t as linkStyles};
//# sourceMappingURL=cc-link.js.map

@@ -1,2 +0,2 @@

import{formatDate as e,formatDatetime as a,formatDateOnly as t,formatHours as n,prepareFormatDistanceToNow as o}from"./lib/i18n-date.js";import{getCountryName as i}from"./lib/i18n-display.js";import{formatCurrency as c,formatNumber as r,formatPercent as s,prepareNumberUnitFormatter as d,prepareNumberBytesFormatter as l}from"./lib/i18n-number.js";import{sanitize as p}from"./lib/i18n-sanitize.js";import{preparePlural as m}from"./lib/i18n-string.js";const u="en",g=m("en"),h=o("en",((e,a)=>`${e} ${g(e,a)} ago`),"just now"),b=d("en"),y=l("en","B"," "),f=d("en","B"," ");function v(e){return f(e).split(" ")[1]}function w(e){return[`CPUs: ${e.cpus}`+(e.microservice?" (shared)":""),e.gpus>0?`GPUs: ${e.gpus}`:"",`RAM: ${y(1024*e.mem*1024)}`].filter((e=>e)).join("\n")}const k={LANGUAGE:"English","cc-addon-admin.admin":"Add-on administration","cc-addon-admin.danger-zone":"Danger zone","cc-addon-admin.delete":"Delete the add-on","cc-addon-admin.delete-description":()=>p`Deleting this add-on will make it immediately unavailable.<br>The virtual machine will be stopped in 24 hours.<br>Backups will be kept according to the retention policy.`,"cc-addon-admin.error-loading":"Something went wrong while loading add-on info.","cc-addon-admin.heading.name":"Name","cc-addon-admin.heading.tags":"Tags","cc-addon-admin.input.name":"Add-on name","cc-addon-admin.input.tags":"Add-on tags","cc-addon-admin.tags-description":"Tags allow you to classify your applications and add-ons to create categories","cc-addon-admin.tags-empty":"No defined tags","cc-addon-admin.tags-update":"Update tags","cc-addon-admin.update":"Update name","cc-addon-backups.close-btn":"Close this panel","cc-addon-backups.command-password":"This command will ask for your password, here it is:","cc-addon-backups.delete":({createdAt:t})=>p`Delete the backup from <strong title="${e("en",t)}">${a("en",t)}</strong>`,"cc-addon-backups.delete.btn":"delete...","cc-addon-backups.delete.manual.description.es-addon":()=>p`You can delete this backup using <a href="https://curl.se/docs/">cURL</a> by executing this command:`,"cc-addon-backups.delete.manual.title":"Delete manually","cc-addon-backups.delete.with-service.description.es-addon":({href:e})=>p`You can delete this backup using Kibana by going to the <a href="${e}">backup repository</a>.`,"cc-addon-backups.delete.with-service.title.es-addon":"Delete with Kibana","cc-addon-backups.description.es-addon":"Backups are managed by Elasticsearch itself. You can define the retention period and backup frequency through Kibana's UI.","cc-addon-backups.description.es-addon-old":"Backups are managed by Elasticsearch itself. The version of your Elasticsearch does not allow to define a retention policy. Deleting a backup can be done manually through Elasticsearch's API.","cc-addon-backups.description.jenkins":"Backups are created by archiving Jenkins's data.","cc-addon-backups.description.mongodb-addon":()=>p`Backups are created using the <a href="https://docs.mongodb.com/v4.0/reference/program/mongodump/">mongodump</a> tool.`,"cc-addon-backups.description.mysql-addon":()=>p`Backups are created using the <a href="https://dev.mysql.com/doc/refman/8.0/en/mysqldump.html">mysqldump</a> tool.`,"cc-addon-backups.description.postgresql-addon":()=>p`Backups are created using the <a href="https://www.postgresql.org/docs/current/app-pgdump.html">pg_dump</a> tool.`,"cc-addon-backups.description.redis-addon":"Backups are created by archiving Redis's data.","cc-addon-backups.empty":"There are no backups yet.","cc-addon-backups.link.es-addon":"open in Kibana","cc-addon-backups.link.es-addon-old":"open in Elasticsearch","cc-addon-backups.link.jenkins":"download","cc-addon-backups.link.mongodb-addon":"download","cc-addon-backups.link.mysql-addon":"download","cc-addon-backups.link.postgresql-addon":"download","cc-addon-backups.link.redis-addon":"download","cc-addon-backups.loading-error":"Something went wrong while loading the backups.","cc-addon-backups.restore":({createdAt:t})=>p`Restore the backup from <strong title="${e("en",t)}">${a("en",t)}</strong>`,"cc-addon-backups.restore.btn":"restore...","cc-addon-backups.restore.manual.description.es-addon":()=>p`You can restore this backup using <a href="https://curl.se/docs/">cURL</a> by executing this command:`,"cc-addon-backups.restore.manual.description.jenkins":"Restoring a Jenkins backup must be done by our support team. Please open a support ticket containing the add-on ID and the backup to restore and we will do it for you.","cc-addon-backups.restore.manual.description.mongodb-addon":()=>p`You can restore this backup using the <a href="https://docs.mongodb.com/v4.0/reference/program/mongorestore/">mongorestore</a> tool by executing this command:`,"cc-addon-backups.restore.manual.description.mysql-addon":()=>p`You can restore this backup using the <a href="https://dev.mysql.com/doc/refman/8.0/en/mysql.html">mysql</a> CLI by executing this command:`,"cc-addon-backups.restore.manual.description.postgresql-addon":()=>p`You can restore this backup using the <a href="https://www.postgresql.org/docs/current/app-pgrestore.html">pg_restore</a> tool by executing this command:`,"cc-addon-backups.restore.manual.description.redis-addon":"Restoring a Redis backup must be done by our support team. Please open a support ticket containing the add-on ID and the backup to restore and we will do it for you.","cc-addon-backups.restore.manual.title":"Restore manually","cc-addon-backups.restore.with-service.description.es-addon":({href:e})=>p`You can restore this backup using Kibana by going to the <a href="${e}">backup repository</a>.`,"cc-addon-backups.restore.with-service.title.es-addon":"Restore with Kibana","cc-addon-backups.text":({createdAt:n,expiresAt:o})=>p`Backup from <strong title="${e("en",n)}">${a("en",n)}</strong> (expires on <strong>${t("en",o)}</strong>)`,"cc-addon-backups.text.user-defined-retention":({createdAt:t})=>p`Backup from <strong title="${e("en",t)}">${a("en",t)}</strong> (expires after defined retention)`,"cc-addon-backups.title":"Backups","cc-addon-credentials.description.apm":"Use those credentials to connect an APM Server instance to your Elasticsearch cluster.","cc-addon-credentials.description.elasticsearch":"Use those credentials to connect to your Elasticsearch cluster.","cc-addon-credentials.description.kibana":"Use those credentials to connect a Kibana instance to your Elasticsearch cluster.","cc-addon-credentials.description.pulsar":"Use those information to connect your Pulsar add-on.","cc-addon-credentials.field.auth-token":"Authentication token","cc-addon-credentials.field.host":"Domain name","cc-addon-credentials.field.password":"Password","cc-addon-credentials.field.url":"URL","cc-addon-credentials.field.user":"User","cc-addon-credentials.loading-error":"Something went wrong while loading the credentials.","cc-addon-credentials.title":({name:e})=>`${e} credentials`,"cc-addon-elasticsearch-options.description":()=>p`This add-on is part of the Elastic Stack offer which includes two options. Both these options will be deployed as applications, managed and updated by Clever Cloud on your behalf. They will appear as regular applications that you can stop, scale up or down automatically like one of your own applications. As such, <strong>enabling these options will result in an increase in credits consumption</strong> as well.`,"cc-addon-elasticsearch-options.description.apm":()=>p`Elastic APM server is an application performance monitoring system built on the Elastic Stack. Deploying this will allow you to automatically send APM metrics from any applications linked to the Elasticsearch add-on instance, providing you add the Elastic APM agent to the application code. Learn more in the <a href="https://www.elastic.co/guide/en/apm/get-started/current/overview.html">official APM server documentation</a>.`,"cc-addon-elasticsearch-options.description.kibana":()=>p`Kibana is the admin UI for the Elastic Stack. It lets you visualize your Elasticsearch data and navigate the stack so you can do anything from tracking query load to understanding the way requests flow through your apps. Learn more in the <a href="https://www.elastic.co/guide/en/kibana/master/index.html">official Kibana documentation</a>.`,"cc-addon-elasticsearch-options.error.icon-a11y-name":"Warning","cc-addon-elasticsearch-options.title":"Options for the Elastic Stack","cc-addon-elasticsearch-options.warning.apm":"If you enable this option, we'll deploy and manage an Elastic APM server application for you, this will lead to additional costs.","cc-addon-elasticsearch-options.warning.apm.details":e=>p`By default, the app will start on a <strong title="${w(e)}">${e.name} instance</strong> which costs around <strong>${c("en",e.monthlyCost)} per month</strong>.`,"cc-addon-elasticsearch-options.warning.kibana":"If you enable this option, we'll deploy and manage a Kibana application for you, this will lead to additional costs.","cc-addon-elasticsearch-options.warning.kibana.details":e=>p`By default, the app will start on a <strong title="${w(e)}">${e.name} instance</strong> which costs around <strong>${c("en",e.monthlyCost)} per month</strong>.`,"cc-addon-encryption-at-rest-option.description":()=>p`Encryption at rest encrypts the entire data disk of your add-on. It prevents reading the stored data in case of a physical access to the hard drive. More information in our <a href="https://www.clever-cloud.com/doc/administrate/encryption-at-rest/">documentation</a>.`,"cc-addon-encryption-at-rest-option.title":"Encryption at rest","cc-addon-features.details":"Here's the list of all the features of your add-on. Features may evolve and your add-on would need a migration to match them all.","cc-addon-features.feature-name.disk":"Disk","cc-addon-features.feature-name.memory":"Memory","cc-addon-features.feature-name.nodes":"Nodes","cc-addon-features.feature-value.dedicated":"Dedicated","cc-addon-features.feature-value.no":"No","cc-addon-features.feature-value.yes":"Yes","cc-addon-features.loading-error":"Something went wrong while loading add-on features.","cc-addon-features.title":"Features","cc-addon-jenkins-options.description":"Choose the options you want for your Jenkins add-on.","cc-addon-jenkins-options.title":"Options for the Jenkins add-on","cc-addon-linked-apps.details":"Here's the list of applications linked to this add-on. The add-on exposes its environment variables to those linked applications.","cc-addon-linked-apps.loading-error":"Something went wrong while loading linked applications.","cc-addon-linked-apps.no-linked-applications":"No applications linked yet.","cc-addon-linked-apps.title":"Linked applications","cc-addon-mongodb-options.description":"Choose the options you want for your MongoDB add-on.","cc-addon-mongodb-options.title":"Options for the MongoDB add-on","cc-addon-mysql-options.description":"Choose the options you want for your MySQL add-on.","cc-addon-mysql-options.title":"Options for the MySQL add-on","cc-addon-option.disabled":"Disabled","cc-addon-option.enabled":"Enabled","cc-addon-option-form.confirm":"Confirm options","cc-addon-postgresql-options.description":"Choose the options you want for your PostgreSQL add-on.","cc-addon-postgresql-options.title":"Options for the PostgreSQL add-on","cc-addon-redis-options.description":"Choose the options you want for your Redis add-on.","cc-addon-redis-options.title":"Options for the Redis add-on","cc-ansi-palette.compliant":"Color compliant with RGAA","cc-ansi-palette.fg-bg":({foreground:e,background:a})=>`Foreground: ${e}, Background: ${a}`,"cc-ansi-palette.hover":({color:e})=>`Hover background: ${e}`,"cc-ansi-palette.not-compliant":"Color not compliant with RGAA","cc-ansi-palette.ratio":({ratio:e})=>r("en",e,{minimumFractionDigits:2,maximumFractionDigits:2}).padStart(5,"0"),"cc-ansi-palette.selected":({color:e})=>`Selected background: ${e}`,"cc-article-card.date":({date:e})=>t("en",e),"cc-article-list.error":"An error occurred while loading articles.","cc-beta.label":"beta","cc-block.toggle.close":"Close","cc-block.toggle.open":"Open","cc-button.cancel":"Click to cancel","cc-datetime-relative.distance":({date:e})=>h(e),"cc-datetime-relative.title":({date:a})=>e("en",a),"cc-doc-card.link":({link:e,product:a})=>p`<a href=${e} aria-label="Read the documentation - ${a}">Read the documentation</a>`,"cc-doc-card.skeleton-link-title":"Read the documentation","cc-doc-list.error":"An error occurred while loading documentation","cc-elasticsearch-info.error":"Something went wrong while loading add-ons linked to this application.","cc-elasticsearch-info.info":"Info","cc-elasticsearch-info.link.apm":"Open APM","cc-elasticsearch-info.link.doc":"Read the documentation","cc-elasticsearch-info.link.elasticsearch":"Check out the Elasticsearch add-on","cc-elasticsearch-info.link.kibana":"Open Kibana","cc-elasticsearch-info.text":"This add-on is part of the Elastic Stack offer. You can find the documentation and linked services right below.","cc-email-list.loading.error":"Something went wrong while loading email addresses.","cc-email-list.primary.action.resend-confirmation-email":"Resend a confirmation email","cc-email-list.primary.action.resend-confirmation-email.error":({address:e})=>p`Something went wrong while sending the confirmation email to <strong>${e}</strong>.`,"cc-email-list.primary.action.resend-confirmation-email.success.message":({address:e})=>p`To complete the process, you must click on the link that has been sent to you by email at <strong>${e}</strong>.`,"cc-email-list.primary.action.resend-confirmation-email.success.title":"A confirmation email has been sent","cc-email-list.primary.description":"This is the address used to create your account. All notifications are sent to this address.","cc-email-list.primary.email.unverified":"Not verified","cc-email-list.primary.email.verified":"Verified","cc-email-list.primary.title":"Primary email address","cc-email-list.secondary.action.add":"Add email address","cc-email-list.secondary.action.add.error":({address:e})=>p`Something went wrong while adding the secondary email address <strong>${e}</strong>.`,"cc-email-list.secondary.action.add.success.message":({address:e})=>p`To complete the process you must confirm your registration by clicking on the link that was sent to you by email at <strong>${e}</strong>.`,"cc-email-list.secondary.action.add.success.title":"Secondary email address addition has been taken into account","cc-email-list.secondary.action.delete.accessible-name":({address:e})=>`Delete - ${e}`,"cc-email-list.secondary.action.delete.error":({address:e})=>p`Something went wrong while deleting secondary email address <strong>${e}</strong>.`,"cc-email-list.secondary.action.delete.name":"Delete","cc-email-list.secondary.action.delete.success":({address:e})=>p`Secondary email address <strong>${e}</strong> deleted successfully.`,"cc-email-list.secondary.action.mark-as-primary.accessible-name":({address:e})=>`Mark as primary - ${e}`,"cc-email-list.secondary.action.mark-as-primary.error":({address:e})=>p`Something went wrong while marking secondary email address <strong>${e}</strong> as primary.`,"cc-email-list.secondary.action.mark-as-primary.name":"Mark as primary","cc-email-list.secondary.action.mark-as-primary.success":({address:e})=>p`Secondary email address <strong>${e}</strong> has been successfully marked as primary.`,"cc-email-list.secondary.address-input.error.already-defined":"This email address already belongs to you","cc-email-list.secondary.address-input.error.empty":"You must enter an email address","cc-email-list.secondary.address-input.error.invalid":()=>p`Invalid email address format.<br>Example: john.doe@example.com.`,"cc-email-list.secondary.address-input.error.used":"This email address does not belong to you","cc-email-list.secondary.address-input.format":"name@example.com","cc-email-list.secondary.address-input.label":"Email address","cc-email-list.secondary.description":"Unlike the primary email address, no notifications are sent to these addresses. You can be invited inside an organisation with any of your secondary email addresses.","cc-email-list.secondary.title":"Secondary email addresses","cc-email-list.title":"Email addresses","cc-env-var-create.create-button":"Add","cc-env-var-create.errors.already-defined-name":({name:e})=>p`Name <code>${e}</code> is already defined`,"cc-env-var-create.errors.invalid-name":({name:e})=>p`Name <code>${e}</code> is invalid`,"cc-env-var-create.info.java-prop":({name:e})=>p`Variable <code>${e}</code> will only be injected as a Java property and won't be part of the environment, <a href="https://www.clever-cloud.com/doc/develop/env-variables/#environment-variables-rules-and-formats">more details</a>`,"cc-env-var-create.name.label":"Variable name","cc-env-var-create.value.label":"Variable value","cc-env-var-editor-expert.errors.duplicated-name":({name:e})=>p`be careful, the name <code>${e}</code> is already defined`,"cc-env-var-editor-expert.errors.invalid-line":()=>p`this line is not valid, the correct pattern is: <code>NAME="VALUE"</code>`,"cc-env-var-editor-expert.errors.invalid-name":({name:e})=>p`<code>${e}</code> is not a valid variable name`,"cc-env-var-editor-expert.errors.invalid-name-strict":({name:e})=>p`<code>${e}</code> is not a valid variable name`,"cc-env-var-editor-expert.errors.invalid-value":()=>p`the value is not valid, if you use quotes, you need to escape them like this: <code>\\"</code> or quote the whole value.`,"cc-env-var-editor-expert.errors.line":"line","cc-env-var-editor-expert.errors.unknown":"Unknown Error","cc-env-var-editor-expert.example":()=>p`Format: <code>VARIABLE_NAME="variable value"</code> <br> Every variable must be separated by a line break, <a href="https://www.clever-cloud.com/doc/develop/env-variables/#format">learn more</a>.`,"cc-env-var-editor-expert.info.java-prop":({name:e})=>p`Variable <code>${e}</code> will only be injected as a Java property and won't be part of the environment, <a href="https://www.clever-cloud.com/doc/develop/env-variables/#environment-variables-rules-and-formats">more details</a>`,"cc-env-var-editor-expert.label":'Variable editing. Format: VARIABLE_NAME="variable value". Every variable must be separated by a line break.',"cc-env-var-editor-json.errors.duplicated-name":({name:e})=>p`be careful, the name <code>${e}</code> is already defined`,"cc-env-var-editor-json.errors.invalid-json":"The JSON entered is invalid","cc-env-var-editor-json.errors.invalid-json-entry":()=>p`The input was a valid JSON array of objects but all entries must have properties <code>name</code> and <code>value</code> of type string. Ex: <code>[{ "name": "THE_NAME", "value": "the value" }]</code>`,"cc-env-var-editor-json.errors.invalid-json-format":"The input was valid JSON but it does not follow the correct format. It must be an array of objects","cc-env-var-editor-json.errors.invalid-name":({name:e})=>p`<code>${e}</code> is not a valid variable name`,"cc-env-var-editor-json.errors.invalid-name-strict":({name:e})=>p`<code>${e}</code> is not a valid variable name in strict mode`,"cc-env-var-editor-json.errors.unknown":"Unknown Error","cc-env-var-editor-json.example":()=>p`Format: <code>{ "name": "VARIABLE_NAME", "value": "variable value" }</code> <br> Array of objects following the above format, <a href="https://www.clever-cloud.com/doc/develop/env-variables/#format">learn more</a>.`,"cc-env-var-editor-json.info.java-prop":({name:e})=>p`Variable <code>${e}</code> will only be injected as a Java property and won't be part of the environment, <a href="https://www.clever-cloud.com/doc/develop/env-variables/#environment-variables-rules-and-formats">more details</a>`,"cc-env-var-editor-json.label":'Variable editing. Array of objects following the format: { "name": "VARIABLE_NAME", "value": "variable value" }.',"cc-env-var-editor-simple.empty-data":"There are no variables.","cc-env-var-form.description.config-provider":({addonName:e})=>p`Configuration exposed to dependent applications. <a href="https://www.clever-cloud.com/doc/deploy/addon/config-provider/">Learn more</a><br>These variables will be injected as environment variables in applications that have the add-on <strong>${e}</strong> in their service dependencies.<br>Every time you update your changes, all the dependent applications will be automatically restarted.`,"cc-env-var-form.description.env-var":({appName:e})=>p`These variables will be injected as environment variables in the application <strong>${e}</strong>. <a href="https://doc.clever-cloud.com/admin-console/environment-variables/">Learn more</a>`,"cc-env-var-form.description.exposed-config":({appName:e})=>p`Configuration exposed to dependent applications. <a href="https://www.clever-cloud.com/doc/admin-console/service-dependencies/">Learn more</a><br>These variables won't be injected in the application <strong>${e}</strong>, they will be injected as environment variables in applications that have <strong>${e}</strong> in their service dependencies.`,"cc-env-var-form.error.loading":"Something went wrong while loading variables.","cc-env-var-form.heading.config-provider":"Variables","cc-env-var-form.heading.env-var":"Environment variables","cc-env-var-form.heading.exposed-config":"Exposed configuration","cc-env-var-form.mode.expert":"Expert","cc-env-var-form.mode.simple":"Simple","cc-env-var-form.reset":"Reset changes","cc-env-var-form.restart-app":"Restart the app to apply changes","cc-env-var-form.update":"Update changes","cc-env-var-form.update.error":"Something went wrong while updating variables.","cc-env-var-form.update.success":"Variables have been updated successfully.","cc-env-var-input.delete-button":"Remove","cc-env-var-input.keep-button":"Keep","cc-env-var-input.value-label":({variableName:e})=>`${e} value`,"cc-env-var-input.value-placeholder":"variable value","cc-env-var-linked-services.description.addon":({serviceName:e,appName:a})=>p`List of variables exposed by the add-on <strong>${e}</strong>.<br>Those variables will be injected as environment variables in the application <strong>${a}</strong>.`,"cc-env-var-linked-services.description.app":({serviceName:e,appName:a})=>p`Configuration exposed by the application <strong>${e}</strong>.<br>Those variables will be injected as environement variables in the application <strong>${a}</strong>.`,"cc-env-var-linked-services.empty.addon":({appName:e})=>p`No add-ons linked to <strong>${e}</strong>.`,"cc-env-var-linked-services.empty.app":({appName:e})=>p`No applications linked to <strong>${e}</strong>.`,"cc-env-var-linked-services.error.addon":({appName:e})=>p`Something went wrong while loading add-ons linked to <strong>${e}</strong>.`,"cc-env-var-linked-services.error.app":({appName:e})=>p`Something went wrong while loading applications linked to <strong>${e}</strong>.`,"cc-env-var-linked-services.heading.addon":({name:e})=>`Add-on: ${e}`,"cc-env-var-linked-services.heading.app":({name:e})=>`Application: ${e}`,"cc-env-var-linked-services.loading.addon":({appName:e})=>p`Loading variables exposed by add-ons linked to <strong>${e}</strong>...`,"cc-env-var-linked-services.loading.app":({appName:e})=>p`Loading configuration exposed by applications linked to <strong>${e}</strong>...`,"cc-grafana-info.disable-description":"Disabling Grafana will delete and end all accesses to this Grafana organisation. You will still be able to create another one.","cc-grafana-info.disable-title":"Disable Grafana","cc-grafana-info.disable.error":"Something went wrong while disabling Grafana dashboards.","cc-grafana-info.disable.success":"Grafana dashboards have been disabled successfully.","cc-grafana-info.documentation-description":"This service is used to visualize the our metrics data. You can find the documentation and details about those metrics here.","cc-grafana-info.documentation-title":"Documentation","cc-grafana-info.enable-description":"Enabling Grafana will create and provide all accesses to a Grafana organisation.","cc-grafana-info.enable-title":"Enable Grafana","cc-grafana-info.enable.error":"Something went wrong while enabling Grafana dashboards.","cc-grafana-info.enable.success":"Grafana dashboards have been enabled successfully.","cc-grafana-info.error-link-grafana":"Something went wrong while loading Grafana link.","cc-grafana-info.error-loading":"Something went wrong while loading Grafana state.","cc-grafana-info.grafana-link-description":"Link to the Grafana which contains Clever Cloud metrics dashboards.","cc-grafana-info.grafana-link-title":"Grafana","cc-grafana-info.link.doc":"Read the documentation","cc-grafana-info.link.grafana":"Open Grafana","cc-grafana-info.loading-title":"Grafana","cc-grafana-info.main-title":"Metrics in Grafana","cc-grafana-info.reset-description":"Reset all Clever Cloud dashboards to their initial state.","cc-grafana-info.reset-title":"Reset all dashboards","cc-grafana-info.reset.error":"Something went wrong while resetting Grafana dashboards.","cc-grafana-info.reset.success":"Grafana dashboards have been reset successfully.","cc-grafana-info.screenshot.addon.alt":"Screenshot of an add-on dashboard in Grafana","cc-grafana-info.screenshot.addon.description":()=>p`This dashboard includes several graphs about an add-on. <br> First, it displays a panel containing system metrics like <strong>CPU, memory, disks and network</strong>. <br> For <strong>MySQL, PostgreSQL, MongoDB and Redis</strong> add-ons, a second panel will contain databases data and provides information like <strong>connections count, queries or transactions, errors or deadlocks and tuples operations<strong>.`,"cc-grafana-info.screenshot.addon.title":"Add-on dashboard preview","cc-grafana-info.screenshot.organisation.alt":"Screenshot of an organisation dashboard in Grafana","cc-grafana-info.screenshot.organisation.description":()=>p`This dashboard includes several graphs about a Clever Cloud organisation. <br> It provides a graph summarizing the amount of <strong>deployed application runtimes and add-ons</strong>. It also provides the number of services <strong>by type</strong> or <strong>by plan (flavor)</strong>. <br> The <strong>state graph</strong> indicates a state for all deployments performed during the elapsed Grafana time interval. <br> And finally on this dashboard you will retrieve <strong>global and specific links</strong> (sorted by requests count) to access an application runtime or add-on dashboard.`,"cc-grafana-info.screenshot.organisation.title":"Organisation dashboard preview","cc-grafana-info.screenshot.runtime.alt":"Screenshot of an application runtime dashboard in Grafana","cc-grafana-info.screenshot.runtime.description":()=>p`This dashboard features an <strong>overview panel</strong> to get quick information about an application, as well as several panels about its system metrics. <br> It provides several graphs summarizing the state of <strong>CPU, memory, disks and network</strong>. <br> For each of these metric types, you will retrieve usage graphs, gauges, as well as the result of a simple linear prediction done on the elapsed Grafana time interval. This linear prediction yields the expected duration for the metric to reach 90%.`,"cc-grafana-info.screenshot.runtime.title":"Application runtime dashboard preview","cc-header-addon.creation-date":"Creation date","cc-header-addon.creation-date.full":({date:a})=>e("en",a),"cc-header-addon.creation-date.short":({date:e})=>t("en",e),"cc-header-addon.error":"Something went wrong while loading add-on info.","cc-header-addon.id-label":"Add-on identifier","cc-header-addon.id-label-alternative":"Alternative add-on identifier (real id)","cc-header-addon.plan":"Plan","cc-header-addon.version":"Version","cc-header-app.action.cancel-deployment":"Cancel deployment","cc-header-app.action.restart":"Restart","cc-header-app.action.restart-last-commit":"Restart last pushed commit","cc-header-app.action.restart-rebuild":"Re-build and restart","cc-header-app.action.start":"Start","cc-header-app.action.start-last-commit":"Start last pushed commit","cc-header-app.action.start-rebuild":"Re-build and start","cc-header-app.action.stop":"Stop app","cc-header-app.commits.git":({commit:e})=>`git repo version (HEAD): ${e}`,"cc-header-app.commits.no-commits":"no commits yet","cc-header-app.commits.running":({commit:e})=>`running version: ${e}`,"cc-header-app.commits.starting":({commit:e})=>`deploying version: ${e}`,"cc-header-app.disable-buttons":"You are not authorized to perform those actions","cc-header-app.error":"Something went wrong while loading app info.","cc-header-app.read-logs":"read logs here","cc-header-app.state-msg.app-is-restarting":"Your application is restarting...","cc-header-app.state-msg.app-is-running":"Your application is running!","cc-header-app.state-msg.app-is-starting":"Your application is starting...","cc-header-app.state-msg.app-is-stopped":"Your application is currently stopped.","cc-header-app.state-msg.last-deploy-failed":"The last deployment failed,","cc-header-app.state-msg.unknown-state":"Unknown state, try to restart the application or contact our support if you have additional questions.","cc-header-app.user-action-msg.app-will-start":"Your application is about to start...","cc-header-app.user-action-msg.app-will-stop":"Your application is about to stop...","cc-header-app.user-action-msg.deploy-cancelled":"This deployment has been cancelled.","cc-header-app.user-action-msg.deploy-will-begin":"A new deployment is about to begin...","cc-header-orga.error":"Something went wrong while loading organisation info.","cc-header-orga.hotline":"Hotline:","cc-heptapod-info.description":()=>p`This Heptapod instance hosts mercurial projects. Learn more on <a href="https://about.heptapod.host">https://about.heptapod.host</a>.`,"cc-heptapod-info.error-loading":"Something went wrong while loading usage info.","cc-heptapod-info.not-in-use":"You are not using this Heptapod service.","cc-heptapod-info.price-description":"Estimated price","cc-heptapod-info.price-value":({price:e})=>`${c("en",e)} / month`,"cc-heptapod-info.private-active-users-description":"Private users","cc-heptapod-info.public-active-users-description":"Public users","cc-heptapod-info.storage-bytes":({storage:e})=>y(e,1),"cc-heptapod-info.storage-description":"Storage size","cc-input-date.keyboard-hint":"You can use up or down arrow keys to modify parts of the date.","cc-input-date.required":"required","cc-input-number.decrease":"decrease","cc-input-number.increase":"increase","cc-input-number.required":"required","cc-input-text.clipboard":"Copy to clipboard","cc-input-text.required":"required","cc-input-text.secret.hide":"Hide secret","cc-input-text.secret.show":"Show secret","cc-invoice.download-pdf":"Download PDF","cc-invoice.error":"Something went wrong while loading the invoice.","cc-invoice.info":({date:e,amount:a})=>p`This invoice was issued on <strong>${t("en",e)}</strong> for a total amount of <strong>${c("en",a)}</strong>.`,"cc-invoice.title":"Invoice","cc-invoice-list.error":"An error occured while loading invoices.","cc-invoice-list.pending":"Pending invoices","cc-invoice-list.pending.no-invoices":"No pending invoices at the moment.","cc-invoice-list.processed":"Paid invoices","cc-invoice-list.processed.no-invoices":"No paid invoices at the moment.","cc-invoice-list.processing":"Invoices awaiting payment validation","cc-invoice-list.title":"Invoices","cc-invoice-list.year":"Year:","cc-invoice-table.date.emission":"Emission date","cc-invoice-table.date.value":({date:e})=>`${t("en",e)}`,"cc-invoice-table.number":"Number","cc-invoice-table.open-pdf":"Download PDF","cc-invoice-table.pay":"Pay","cc-invoice-table.text":({number:e,date:a,amount:n})=>p`Invoice <strong>${e}</strong> issued on <strong>${t("en",a)}</strong> for a total amount of <code>${c("en",n)}</code>`,"cc-invoice-table.total.label":"Total","cc-invoice-table.total.value":({amount:e})=>`${c("en",e)}`,"cc-jenkins-info.documentation.link":"Read the documentation","cc-jenkins-info.documentation.text":"Our documentation can help you start using Jenkins and create jobs that run on Clever Cloud docker applications.","cc-jenkins-info.documentation.title":"Documentation","cc-jenkins-info.error":"An error occured while fetching the information about this add-on.","cc-jenkins-info.info":"Info","cc-jenkins-info.open-jenkins.link":"Access Jenkins","cc-jenkins-info.open-jenkins.text":"Access Jenkins using the Clever Cloud SSO (Single Sign-On). Organisation members can also access the Jenkins service.","cc-jenkins-info.open-jenkins.title":"Access Jenkins","cc-jenkins-info.text":"This add-on is part of the Jenkins offer. You can find the documentation and various information below.","cc-jenkins-info.update.new-version":({version:e})=>`Jenkins version ${e} is available!`,"cc-jenkins-info.update.text":"Jenkins and its plugins often get updates. You can automatically update Jenkins and its plugins using its dedicated WEB interface.","cc-jenkins-info.update.title":"Updates","cc-jenkins-info.update.up-to-date":"Your Jenkins version is up-to-date.","cc-loader.a11y-name":"Loading","cc-logs.copied":({count:e})=>`Copied (${e} ${g(e,"line")})`,"cc-logs.copy":"Copy","cc-logs.select-button.label":({index:e})=>`Select the line ${e}`,"cc-logs.unselect-button.label":({index:e})=>`Unselect the line ${e}`,"cc-logs-control.date-display":"Date format","cc-logs-control.date-display.datetime-iso":"Date and hour ISO","cc-logs-control.date-display.datetime-short":"Date and hour","cc-logs-control.date-display.none":"Do not display","cc-logs-control.date-display.time-iso":"Hour ISO","cc-logs-control.date-display.time-short":"Hour","cc-logs-control.option-header.date":"Date","cc-logs-control.option-header.display":"Display","cc-logs-control.option-header.metadata":"Metadata","cc-logs-control.palette":"Color scheme","cc-logs-control.palette.default":"Default scheme","cc-logs-control.scroll-to-bottom":"Scroll to bottom","cc-logs-control.show-logs-options":"Options","cc-logs-control.strip-ansi":"Strip ANSI escape code","cc-logs-control.timezone":"Time zone","cc-logs-control.timezone.local":"Local","cc-logs-control.timezone.utc":"UTC","cc-logs-control.wrap-lines":"Force lines wrap","cc-logs-instances.build.a11y-name":"Instance dedicated to build","cc-logs-instances.cold.empty":"No instance","cc-logs-instances.cold.header":"Instances","cc-logs-instances.deleted.header":"Deleted instances","cc-logs-instances.deploying.header":"Deployment in progress","cc-logs-instances.deployment.deployed":"Deployed","cc-logs-instances.deployment.state.cancelled":"Deployment cancelled","cc-logs-instances.deployment.state.failed":"Deployment failed","cc-logs-instances.deployment.state.succeeded":"Deployment succeeded","cc-logs-instances.deployment.state.wip":"Deployment in progress","cc-logs-instances.ghost.header":"Ghost instances","cc-logs-instances.ghost.notice":"Some unwanted instances are still running, but will soon be destroyed by our scheduler. You can contact support to get more information.","cc-logs-instances.instance.state.deleted":"Deleted instance","cc-logs-instances.instance.state.deploying":"Deploying instance","cc-logs-instances.instance.state.running":"Running instance","cc-logs-instances.instance.state.stopping":"Stopping instance","cc-logs-instances.loading.error":"Something went wrong while loading instances.","cc-logs-instances.loading.loader":"Instances are loading","cc-logs-instances.running.empty":"No instance running","cc-logs-instances.running.header":"Running instances","cc-logs-instances.stopping.header":"Stopping instances","cc-logsmap.legend.heatmap":({orgaName:e})=>p`Heatmap of HTTP requests received by all apps from <strong>${e}</strong> during the last 24 hours.`,"cc-logsmap.legend.heatmap.app":({appName:e})=>p`Heatmap of HTTP requests received by <strong>${e}</strong> during the last 24 hours.`,"cc-logsmap.legend.points":({orgaName:e})=>p`Realtime map of HTTP requests received by all apps from <strong>${e}</strong>.`,"cc-logsmap.legend.points.app":({appName:e})=>p`Realtime map of HTTP requests received by <strong>${e}</strong>.`,"cc-logsmap.mode.heatmap":"Last 24h","cc-logsmap.mode.points":"Realtime","cc-map.error":"Something went wrong while trying to fetch data for the map.","cc-map.error.icon-a11y-name":"Warning","cc-map.no-points":"No data to display on the map right now.","cc-matomo-info.about.text":()=>p`
import{formatDate as e,formatDatetime as a,formatDateOnly as t,formatHours as n,prepareFormatDistanceToNow as o}from"./lib/i18n-date.js";import{getCountryName as i}from"./lib/i18n-display.js";import{formatCurrency as c,formatNumber as r,formatPercent as s,prepareNumberUnitFormatter as d,prepareNumberBytesFormatter as l}from"./lib/i18n-number.js";import{sanitize as p}from"./lib/i18n-sanitize.js";import{preparePlural as m}from"./lib/i18n-string.js";const u="en",g=m(u),h=o(u,((e,a)=>`${e} ${g(e,a)} ago`),"just now"),b=d(u),y=l(u,"B"," "),f=d(u,"B"," ");function v(e){return f(e).split(" ")[1]}function w(e){return[`CPUs: ${e.cpus}`+(e.microservice?" (shared)":""),e.gpus>0?`GPUs: ${e.gpus}`:"",`RAM: ${y(1024*e.mem*1024)}`].filter((e=>e)).join("\n")}const k={LANGUAGE:"English","cc-addon-admin.admin":"Add-on administration","cc-addon-admin.danger-zone":"Danger zone","cc-addon-admin.delete":"Delete the add-on","cc-addon-admin.delete-description":()=>p`Deleting this add-on will make it immediately unavailable.<br>The virtual machine will be stopped in 24 hours.<br>Backups will be kept according to the retention policy.`,"cc-addon-admin.error-loading":"Something went wrong while loading add-on info.","cc-addon-admin.heading.name":"Name","cc-addon-admin.heading.tags":"Tags","cc-addon-admin.input.name":"Add-on name","cc-addon-admin.input.tags":"Add-on tags","cc-addon-admin.tags-description":"Tags allow you to classify your applications and add-ons to create categories","cc-addon-admin.tags-empty":"No defined tags","cc-addon-admin.tags-update":"Update tags","cc-addon-admin.update":"Update name","cc-addon-backups.close-btn":"Close this panel","cc-addon-backups.command-password":"This command will ask for your password, here it is:","cc-addon-backups.delete":({createdAt:t})=>p`Delete the backup from <strong title="${e(u,t)}">${a(u,t)}</strong>`,"cc-addon-backups.delete.btn":"delete...","cc-addon-backups.delete.manual.description.es-addon":()=>p`You can delete this backup using <a href="https://curl.se/docs/">cURL</a> by executing this command:`,"cc-addon-backups.delete.manual.title":"Delete manually","cc-addon-backups.delete.with-service.description.es-addon":({href:e})=>p`You can delete this backup using Kibana by going to the <a href="${e}">backup repository</a>.`,"cc-addon-backups.delete.with-service.title.es-addon":"Delete with Kibana","cc-addon-backups.description.es-addon":"Backups are managed by Elasticsearch itself. You can define the retention period and backup frequency through Kibana's UI.","cc-addon-backups.description.es-addon-old":"Backups are managed by Elasticsearch itself. The version of your Elasticsearch does not allow to define a retention policy. Deleting a backup can be done manually through Elasticsearch's API.","cc-addon-backups.description.jenkins":"Backups are created by archiving Jenkins's data.","cc-addon-backups.description.mongodb-addon":()=>p`Backups are created using the <a href="https://docs.mongodb.com/v4.0/reference/program/mongodump/">mongodump</a> tool.`,"cc-addon-backups.description.mysql-addon":()=>p`Backups are created using the <a href="https://dev.mysql.com/doc/refman/8.0/en/mysqldump.html">mysqldump</a> tool.`,"cc-addon-backups.description.postgresql-addon":()=>p`Backups are created using the <a href="https://www.postgresql.org/docs/current/app-pgdump.html">pg_dump</a> tool.`,"cc-addon-backups.description.redis-addon":"Backups are created by archiving Redis's data.","cc-addon-backups.empty":"There are no backups yet.","cc-addon-backups.link.es-addon":"open in Kibana","cc-addon-backups.link.es-addon-old":"open in Elasticsearch","cc-addon-backups.link.jenkins":"download","cc-addon-backups.link.mongodb-addon":"download","cc-addon-backups.link.mysql-addon":"download","cc-addon-backups.link.postgresql-addon":"download","cc-addon-backups.link.redis-addon":"download","cc-addon-backups.loading-error":"Something went wrong while loading the backups.","cc-addon-backups.restore":({createdAt:t})=>p`Restore the backup from <strong title="${e(u,t)}">${a(u,t)}</strong>`,"cc-addon-backups.restore.btn":"restore...","cc-addon-backups.restore.manual.description.es-addon":()=>p`You can restore this backup using <a href="https://curl.se/docs/">cURL</a> by executing this command:`,"cc-addon-backups.restore.manual.description.jenkins":"Restoring a Jenkins backup must be done by our support team. Please open a support ticket containing the add-on ID and the backup to restore and we will do it for you.","cc-addon-backups.restore.manual.description.mongodb-addon":()=>p`You can restore this backup using the <a href="https://docs.mongodb.com/v4.0/reference/program/mongorestore/">mongorestore</a> tool by executing this command:`,"cc-addon-backups.restore.manual.description.mysql-addon":()=>p`You can restore this backup using the <a href="https://dev.mysql.com/doc/refman/8.0/en/mysql.html">mysql</a> CLI by executing this command:`,"cc-addon-backups.restore.manual.description.postgresql-addon":()=>p`You can restore this backup using the <a href="https://www.postgresql.org/docs/current/app-pgrestore.html">pg_restore</a> tool by executing this command:`,"cc-addon-backups.restore.manual.description.redis-addon":"Restoring a Redis backup must be done by our support team. Please open a support ticket containing the add-on ID and the backup to restore and we will do it for you.","cc-addon-backups.restore.manual.title":"Restore manually","cc-addon-backups.restore.with-service.description.es-addon":({href:e})=>p`You can restore this backup using Kibana by going to the <a href="${e}">backup repository</a>.`,"cc-addon-backups.restore.with-service.title.es-addon":"Restore with Kibana","cc-addon-backups.text":({createdAt:n,expiresAt:o})=>p`Backup from <strong title="${e(u,n)}">${a(u,n)}</strong> (expires on <strong>${t(u,o)}</strong>)`,"cc-addon-backups.text.user-defined-retention":({createdAt:t})=>p`Backup from <strong title="${e(u,t)}">${a(u,t)}</strong> (expires after defined retention)`,"cc-addon-backups.title":"Backups","cc-addon-credentials.description.apm":"Use those credentials to connect an APM Server instance to your Elasticsearch cluster.","cc-addon-credentials.description.elasticsearch":"Use those credentials to connect to your Elasticsearch cluster.","cc-addon-credentials.description.kibana":"Use those credentials to connect a Kibana instance to your Elasticsearch cluster.","cc-addon-credentials.description.materiadb-kv":"Use this information to connect your MateriaDB KV add-on.","cc-addon-credentials.description.pulsar":"Use this information to connect your Pulsar add-on.","cc-addon-credentials.field.auth-token":"Token","cc-addon-credentials.field.host":"Host","cc-addon-credentials.field.password":"Password","cc-addon-credentials.field.port":"Port","cc-addon-credentials.field.url":"URL","cc-addon-credentials.field.user":"User","cc-addon-credentials.loading-error":"Something went wrong while loading the credentials.","cc-addon-credentials.title":({name:e})=>`${e} credentials`,"cc-addon-elasticsearch-options.description":()=>p`This add-on is part of the Elastic Stack offer which includes two options. Both these options will be deployed as applications, managed and updated by Clever Cloud on your behalf. They will appear as regular applications that you can stop, scale up or down automatically like one of your own applications. As such, <strong>enabling these options will result in an increase in credits consumption</strong> as well.`,"cc-addon-elasticsearch-options.description.apm":()=>p`Elastic APM server is an application performance monitoring system built on the Elastic Stack. Deploying this will allow you to automatically send APM metrics from any applications linked to the Elasticsearch add-on instance, providing you add the Elastic APM agent to the application code. Learn more in the <a href="https://www.elastic.co/guide/en/apm/get-started/current/overview.html">official APM server documentation</a>.`,"cc-addon-elasticsearch-options.description.kibana":()=>p`Kibana is the admin UI for the Elastic Stack. It lets you visualize your Elasticsearch data and navigate the stack so you can do anything from tracking query load to understanding the way requests flow through your apps. Learn more in the <a href="https://www.elastic.co/guide/en/kibana/master/index.html">official Kibana documentation</a>.`,"cc-addon-elasticsearch-options.error.icon-a11y-name":"Warning","cc-addon-elasticsearch-options.title":"Options for the Elastic Stack","cc-addon-elasticsearch-options.warning.apm":"If you enable this option, we'll deploy and manage an Elastic APM server application for you, this will lead to additional costs.","cc-addon-elasticsearch-options.warning.apm.details":e=>p`By default, the app will start on a <strong title="${w(e)}">${e.name} instance</strong> which costs around <strong>${c(u,e.monthlyCost)} per month</strong>.`,"cc-addon-elasticsearch-options.warning.kibana":"If you enable this option, we'll deploy and manage a Kibana application for you, this will lead to additional costs.","cc-addon-elasticsearch-options.warning.kibana.details":e=>p`By default, the app will start on a <strong title="${w(e)}">${e.name} instance</strong> which costs around <strong>${c(u,e.monthlyCost)} per month</strong>.`,"cc-addon-encryption-at-rest-option.description":()=>p`Encryption at rest encrypts the entire data disk of your add-on. It prevents reading the stored data in case of a physical access to the hard drive. More information in our <a href="https://www.clever-cloud.com/doc/administrate/encryption-at-rest/">documentation</a>.`,"cc-addon-encryption-at-rest-option.title":"Encryption at rest","cc-addon-features.details":"Here's the list of all the features of your add-on. Features may evolve and your add-on would need a migration to match them all.","cc-addon-features.feature-name.disk":"Disk","cc-addon-features.feature-name.memory":"Memory","cc-addon-features.feature-name.nodes":"Nodes","cc-addon-features.feature-value.dedicated":"Dedicated","cc-addon-features.feature-value.no":"No","cc-addon-features.feature-value.yes":"Yes","cc-addon-features.loading-error":"Something went wrong while loading add-on features.","cc-addon-features.title":"Features","cc-addon-jenkins-options.description":"Choose the options you want for your Jenkins add-on.","cc-addon-jenkins-options.title":"Options for the Jenkins add-on","cc-addon-linked-apps.details":"Here's the list of applications linked to this add-on. The add-on exposes its environment variables to those linked applications.","cc-addon-linked-apps.loading-error":"Something went wrong while loading linked applications.","cc-addon-linked-apps.no-linked-applications":"No applications linked yet.","cc-addon-linked-apps.title":"Linked applications","cc-addon-mongodb-options.description":"Choose the options you want for your MongoDB add-on.","cc-addon-mongodb-options.title":"Options for the MongoDB add-on","cc-addon-mysql-options.description":"Choose the options you want for your MySQL add-on.","cc-addon-mysql-options.title":"Options for the MySQL add-on","cc-addon-option.disabled":"Disabled","cc-addon-option.enabled":"Enabled","cc-addon-option-form.confirm":"Confirm options","cc-addon-postgresql-options.description":"Choose the options you want for your PostgreSQL add-on.","cc-addon-postgresql-options.title":"Options for the PostgreSQL add-on","cc-addon-redis-options.description":"Choose the options you want for your Redis add-on.","cc-addon-redis-options.title":"Options for the Redis add-on","cc-ansi-palette.compliant":"Color compliant with RGAA","cc-ansi-palette.fg-bg":({foreground:e,background:a})=>`Foreground: ${e}, Background: ${a}`,"cc-ansi-palette.hover":({color:e})=>`Hover background: ${e}`,"cc-ansi-palette.not-compliant":"Color not compliant with RGAA","cc-ansi-palette.ratio":({ratio:e})=>r(u,e,{minimumFractionDigits:2,maximumFractionDigits:2}).padStart(5,"0"),"cc-ansi-palette.selected":({color:e})=>`Selected background: ${e}`,"cc-article-card.date":({date:e})=>t(u,e),"cc-article-list.error":"An error occurred while loading articles.","cc-beta.label":"beta","cc-block.toggle.close":"Close","cc-block.toggle.open":"Open","cc-button.cancel":"Click to cancel","cc-datetime-relative.distance":({date:e})=>h(e),"cc-datetime-relative.title":({date:a})=>e(u,a),"cc-doc-card.link":({link:e,product:a})=>p`<a href=${e} aria-label="Read the documentation - ${a}">Read the documentation</a>`,"cc-doc-card.skeleton-link-title":"Read the documentation","cc-doc-list.error":"An error occurred while loading documentation","cc-elasticsearch-info.error":"Something went wrong while loading add-ons linked to this application.","cc-elasticsearch-info.info":"Info","cc-elasticsearch-info.link.apm":"Open APM","cc-elasticsearch-info.link.doc":"Read the documentation","cc-elasticsearch-info.link.elasticsearch":"Check out the Elasticsearch add-on","cc-elasticsearch-info.link.kibana":"Open Kibana","cc-elasticsearch-info.text":"This add-on is part of the Elastic Stack offer. You can find the documentation and linked services right below.","cc-email-list.loading.error":"Something went wrong while loading email addresses.","cc-email-list.primary.action.resend-confirmation-email":"Resend a confirmation email","cc-email-list.primary.action.resend-confirmation-email.error":({address:e})=>p`Something went wrong while sending the confirmation email to <strong>${e}</strong>.`,"cc-email-list.primary.action.resend-confirmation-email.success.message":({address:e})=>p`To complete the process, you must click on the link that has been sent to you by email at <strong>${e}</strong>.`,"cc-email-list.primary.action.resend-confirmation-email.success.title":"A confirmation email has been sent","cc-email-list.primary.description":"This is the address used to create your account. All notifications are sent to this address.","cc-email-list.primary.email.unverified":"Not verified","cc-email-list.primary.email.verified":"Verified","cc-email-list.primary.title":"Primary email address","cc-email-list.secondary.action.add":"Add email address","cc-email-list.secondary.action.add.error":({address:e})=>p`Something went wrong while adding the secondary email address <strong>${e}</strong>.`,"cc-email-list.secondary.action.add.success.message":({address:e})=>p`To complete the process you must confirm your registration by clicking on the link that was sent to you by email at <strong>${e}</strong>.`,"cc-email-list.secondary.action.add.success.title":"Secondary email address addition has been taken into account","cc-email-list.secondary.action.delete.accessible-name":({address:e})=>`Delete - ${e}`,"cc-email-list.secondary.action.delete.error":({address:e})=>p`Something went wrong while deleting secondary email address <strong>${e}</strong>.`,"cc-email-list.secondary.action.delete.name":"Delete","cc-email-list.secondary.action.delete.success":({address:e})=>p`Secondary email address <strong>${e}</strong> deleted successfully.`,"cc-email-list.secondary.action.mark-as-primary.accessible-name":({address:e})=>`Mark as primary - ${e}`,"cc-email-list.secondary.action.mark-as-primary.error":({address:e})=>p`Something went wrong while marking secondary email address <strong>${e}</strong> as primary.`,"cc-email-list.secondary.action.mark-as-primary.name":"Mark as primary","cc-email-list.secondary.action.mark-as-primary.success":({address:e})=>p`Secondary email address <strong>${e}</strong> has been successfully marked as primary.`,"cc-email-list.secondary.address-input.error.already-defined":"This email address already belongs to you","cc-email-list.secondary.address-input.error.empty":"You must enter an email address","cc-email-list.secondary.address-input.error.invalid":()=>p`Invalid email address format.<br>Example: john.doe@example.com.`,"cc-email-list.secondary.address-input.error.used":"This email address does not belong to you","cc-email-list.secondary.address-input.format":"name@example.com","cc-email-list.secondary.address-input.label":"Email address","cc-email-list.secondary.description":"Unlike the primary email address, no notifications are sent to these addresses. You can be invited inside an organisation with any of your secondary email addresses.","cc-email-list.secondary.title":"Secondary email addresses","cc-email-list.title":"Email addresses","cc-env-var-create.create-button":"Add","cc-env-var-create.errors.already-defined-name":({name:e})=>p`Name <code>${e}</code> is already defined`,"cc-env-var-create.errors.invalid-name":({name:e})=>p`Name <code>${e}</code> is invalid`,"cc-env-var-create.info.java-prop":({name:e})=>p`Variable <code>${e}</code> will only be injected as a Java property and won't be part of the environment, <a href="https://www.clever-cloud.com/doc/develop/env-variables/#environment-variables-rules-and-formats">more details</a>`,"cc-env-var-create.name.label":"Variable name","cc-env-var-create.value.label":"Variable value","cc-env-var-editor-expert.errors.duplicated-name":({name:e})=>p`be careful, the name <code>${e}</code> is already defined`,"cc-env-var-editor-expert.errors.invalid-line":()=>p`this line is not valid, the correct pattern is: <code>NAME="VALUE"</code>`,"cc-env-var-editor-expert.errors.invalid-name":({name:e})=>p`<code>${e}</code> is not a valid variable name`,"cc-env-var-editor-expert.errors.invalid-name-strict":({name:e})=>p`<code>${e}</code> is not a valid variable name`,"cc-env-var-editor-expert.errors.invalid-value":()=>p`the value is not valid, if you use quotes, you need to escape them like this: <code>\\"</code> or quote the whole value.`,"cc-env-var-editor-expert.errors.line":"line","cc-env-var-editor-expert.errors.unknown":"Unknown Error","cc-env-var-editor-expert.example":()=>p`Format: <code>VARIABLE_NAME="variable value"</code> <br> Every variable must be separated by a line break, <a href="https://www.clever-cloud.com/doc/develop/env-variables/#format">learn more</a>.`,"cc-env-var-editor-expert.info.java-prop":({name:e})=>p`Variable <code>${e}</code> will only be injected as a Java property and won't be part of the environment, <a href="https://www.clever-cloud.com/doc/develop/env-variables/#environment-variables-rules-and-formats">more details</a>`,"cc-env-var-editor-expert.label":'Variable editing. Format: VARIABLE_NAME="variable value". Every variable must be separated by a line break.',"cc-env-var-editor-json.errors.duplicated-name":({name:e})=>p`be careful, the name <code>${e}</code> is already defined`,"cc-env-var-editor-json.errors.invalid-json":"The JSON entered is invalid","cc-env-var-editor-json.errors.invalid-json-entry":()=>p`The input was a valid JSON array of objects but all entries must have properties <code>name</code> and <code>value</code> of type string. Ex: <code>[{ "name": "THE_NAME", "value": "the value" }]</code>`,"cc-env-var-editor-json.errors.invalid-json-format":"The input was valid JSON but it does not follow the correct format. It must be an array of objects","cc-env-var-editor-json.errors.invalid-name":({name:e})=>p`<code>${e}</code> is not a valid variable name`,"cc-env-var-editor-json.errors.invalid-name-strict":({name:e})=>p`<code>${e}</code> is not a valid variable name in strict mode`,"cc-env-var-editor-json.errors.unknown":"Unknown Error","cc-env-var-editor-json.example":()=>p`Format: <code>{ "name": "VARIABLE_NAME", "value": "variable value" }</code> <br> Array of objects following the above format, <a href="https://www.clever-cloud.com/doc/develop/env-variables/#format">learn more</a>.`,"cc-env-var-editor-json.info.java-prop":({name:e})=>p`Variable <code>${e}</code> will only be injected as a Java property and won't be part of the environment, <a href="https://www.clever-cloud.com/doc/develop/env-variables/#environment-variables-rules-and-formats">more details</a>`,"cc-env-var-editor-json.label":'Variable editing. Array of objects following the format: { "name": "VARIABLE_NAME", "value": "variable value" }.',"cc-env-var-editor-simple.empty-data":"There are no variables.","cc-env-var-form.description.config-provider":({addonName:e})=>p`Configuration exposed to dependent applications. <a href="https://www.clever-cloud.com/doc/deploy/addon/config-provider/">Learn more</a><br>These variables will be injected as environment variables in applications that have the add-on <strong>${e}</strong> in their service dependencies.<br>Every time you update your changes, all the dependent applications will be automatically restarted.`,"cc-env-var-form.description.env-var":({appName:e})=>p`These variables will be injected as environment variables in the application <strong>${e}</strong>. <a href="https://doc.clever-cloud.com/admin-console/environment-variables/">Learn more</a>`,"cc-env-var-form.description.exposed-config":({appName:e})=>p`Configuration exposed to dependent applications. <a href="https://www.clever-cloud.com/doc/admin-console/service-dependencies/">Learn more</a><br>These variables won't be injected in the application <strong>${e}</strong>, they will be injected as environment variables in applications that have <strong>${e}</strong> in their service dependencies.`,"cc-env-var-form.error.loading":"Something went wrong while loading variables.","cc-env-var-form.heading.config-provider":"Variables","cc-env-var-form.heading.env-var":"Environment variables","cc-env-var-form.heading.exposed-config":"Exposed configuration","cc-env-var-form.mode.expert":"Expert","cc-env-var-form.mode.simple":"Simple","cc-env-var-form.reset":"Reset changes","cc-env-var-form.restart-app":"Restart the app to apply changes","cc-env-var-form.update":"Update changes","cc-env-var-form.update.error":"Something went wrong while updating variables.","cc-env-var-form.update.success":"Variables have been updated successfully.","cc-env-var-input.delete-button":"Remove","cc-env-var-input.keep-button":"Keep","cc-env-var-input.value-label":({variableName:e})=>`${e} value`,"cc-env-var-input.value-placeholder":"variable value","cc-env-var-linked-services.description.addon":({serviceName:e,appName:a})=>p`List of variables exposed by the add-on <strong>${e}</strong>.<br>Those variables will be injected as environment variables in the application <strong>${a}</strong>.`,"cc-env-var-linked-services.description.app":({serviceName:e,appName:a})=>p`Configuration exposed by the application <strong>${e}</strong>.<br>Those variables will be injected as environement variables in the application <strong>${a}</strong>.`,"cc-env-var-linked-services.empty.addon":({appName:e})=>p`No add-ons linked to <strong>${e}</strong>.`,"cc-env-var-linked-services.empty.app":({appName:e})=>p`No applications linked to <strong>${e}</strong>.`,"cc-env-var-linked-services.error.addon":({appName:e})=>p`Something went wrong while loading add-ons linked to <strong>${e}</strong>.`,"cc-env-var-linked-services.error.app":({appName:e})=>p`Something went wrong while loading applications linked to <strong>${e}</strong>.`,"cc-env-var-linked-services.heading.addon":({name:e})=>`Add-on: ${e}`,"cc-env-var-linked-services.heading.app":({name:e})=>`Application: ${e}`,"cc-env-var-linked-services.loading.addon":({appName:e})=>p`Loading variables exposed by add-ons linked to <strong>${e}</strong>...`,"cc-env-var-linked-services.loading.app":({appName:e})=>p`Loading configuration exposed by applications linked to <strong>${e}</strong>...`,"cc-grafana-info.disable-description":"Disabling Grafana will delete and end all accesses to this Grafana organisation. You will still be able to create another one.","cc-grafana-info.disable-title":"Disable Grafana","cc-grafana-info.disable.error":"Something went wrong while disabling Grafana dashboards.","cc-grafana-info.disable.success":"Grafana dashboards have been disabled successfully.","cc-grafana-info.documentation-description":"This service is used to visualize the our metrics data. You can find the documentation and details about those metrics here.","cc-grafana-info.documentation-title":"Documentation","cc-grafana-info.enable-description":"Enabling Grafana will create and provide all accesses to a Grafana organisation.","cc-grafana-info.enable-title":"Enable Grafana","cc-grafana-info.enable.error":"Something went wrong while enabling Grafana dashboards.","cc-grafana-info.enable.success":"Grafana dashboards have been enabled successfully.","cc-grafana-info.error-link-grafana":"Something went wrong while loading Grafana link.","cc-grafana-info.error-loading":"Something went wrong while loading Grafana state.","cc-grafana-info.grafana-link-description":"Link to the Grafana which contains Clever Cloud metrics dashboards.","cc-grafana-info.grafana-link-title":"Grafana","cc-grafana-info.link.doc":"Read the documentation","cc-grafana-info.link.grafana":"Open Grafana","cc-grafana-info.loading-title":"Grafana","cc-grafana-info.main-title":"Metrics in Grafana","cc-grafana-info.reset-description":"Reset all Clever Cloud dashboards to their initial state.","cc-grafana-info.reset-title":"Reset all dashboards","cc-grafana-info.reset.error":"Something went wrong while resetting Grafana dashboards.","cc-grafana-info.reset.success":"Grafana dashboards have been reset successfully.","cc-grafana-info.screenshot.addon.alt":"Screenshot of an add-on dashboard in Grafana","cc-grafana-info.screenshot.addon.description":()=>p`This dashboard includes several graphs about an add-on. <br> First, it displays a panel containing system metrics like <strong>CPU, memory, disks and network</strong>. <br> For <strong>MySQL, PostgreSQL, MongoDB and Redis</strong> add-ons, a second panel will contain databases data and provides information like <strong>connections count, queries or transactions, errors or deadlocks and tuples operations<strong>.`,"cc-grafana-info.screenshot.addon.title":"Add-on dashboard preview","cc-grafana-info.screenshot.organisation.alt":"Screenshot of an organisation dashboard in Grafana","cc-grafana-info.screenshot.organisation.description":()=>p`This dashboard includes several graphs about a Clever Cloud organisation. <br> It provides a graph summarizing the amount of <strong>deployed application runtimes and add-ons</strong>. It also provides the number of services <strong>by type</strong> or <strong>by plan (flavor)</strong>. <br> The <strong>state graph</strong> indicates a state for all deployments performed during the elapsed Grafana time interval. <br> And finally on this dashboard you will retrieve <strong>global and specific links</strong> (sorted by requests count) to access an application runtime or add-on dashboard.`,"cc-grafana-info.screenshot.organisation.title":"Organisation dashboard preview","cc-grafana-info.screenshot.runtime.alt":"Screenshot of an application runtime dashboard in Grafana","cc-grafana-info.screenshot.runtime.description":()=>p`This dashboard features an <strong>overview panel</strong> to get quick information about an application, as well as several panels about its system metrics. <br> It provides several graphs summarizing the state of <strong>CPU, memory, disks and network</strong>. <br> For each of these metric types, you will retrieve usage graphs, gauges, as well as the result of a simple linear prediction done on the elapsed Grafana time interval. This linear prediction yields the expected duration for the metric to reach 90%.`,"cc-grafana-info.screenshot.runtime.title":"Application runtime dashboard preview","cc-header-addon.creation-date":"Creation date","cc-header-addon.creation-date.full":({date:a})=>e(u,a),"cc-header-addon.creation-date.short":({date:e})=>t(u,e),"cc-header-addon.error":"Something went wrong while loading add-on info.","cc-header-addon.id-label":"Add-on identifier","cc-header-addon.id-label-alternative":"Alternative add-on identifier (real id)","cc-header-addon.plan":"Plan","cc-header-addon.version":"Version","cc-header-app.action.cancel-deployment":"Cancel deployment","cc-header-app.action.restart":"Restart","cc-header-app.action.restart-last-commit":"Restart last pushed commit","cc-header-app.action.restart-rebuild":"Re-build and restart","cc-header-app.action.start":"Start","cc-header-app.action.start-last-commit":"Start last pushed commit","cc-header-app.action.start-rebuild":"Re-build and start","cc-header-app.action.stop":"Stop app","cc-header-app.commits.git":({commit:e})=>`git repo version (HEAD): ${e}`,"cc-header-app.commits.no-commits":"no commits yet","cc-header-app.commits.running":({commit:e})=>`running version: ${e}`,"cc-header-app.commits.starting":({commit:e})=>`deploying version: ${e}`,"cc-header-app.disable-buttons":"You are not authorized to perform those actions","cc-header-app.error":"Something went wrong while loading app info.","cc-header-app.read-logs":"read logs here","cc-header-app.state-msg.app-is-restarting":"Your application is restarting...","cc-header-app.state-msg.app-is-running":"Your application is running!","cc-header-app.state-msg.app-is-starting":"Your application is starting...","cc-header-app.state-msg.app-is-stopped":"Your application is currently stopped.","cc-header-app.state-msg.last-deploy-failed":"The last deployment failed,","cc-header-app.state-msg.unknown-state":"Unknown state, try to restart the application or contact our support if you have additional questions.","cc-header-app.user-action-msg.app-will-start":"Your application is about to start...","cc-header-app.user-action-msg.app-will-stop":"Your application is about to stop...","cc-header-app.user-action-msg.deploy-cancelled":"This deployment has been cancelled.","cc-header-app.user-action-msg.deploy-will-begin":"A new deployment is about to begin...","cc-header-orga.error":"Something went wrong while loading organisation info.","cc-header-orga.hotline":"Hotline:","cc-heptapod-info.description":()=>p`This Heptapod instance hosts mercurial projects. Learn more on <a href="https://about.heptapod.host">https://about.heptapod.host</a>.`,"cc-heptapod-info.error-loading":"Something went wrong while loading usage info.","cc-heptapod-info.not-in-use":"You are not using this Heptapod service.","cc-heptapod-info.price-description":"Estimated price","cc-heptapod-info.price-value":({price:e})=>`${c(u,e)} / month`,"cc-heptapod-info.private-active-users-description":"Private users","cc-heptapod-info.public-active-users-description":"Public users","cc-heptapod-info.storage-bytes":({storage:e})=>y(e,1),"cc-heptapod-info.storage-description":"Storage size","cc-input-date.keyboard-hint":"You can use up or down arrow keys to modify parts of the date.","cc-input-date.required":"required","cc-input-number.decrease":"decrease","cc-input-number.increase":"increase","cc-input-number.required":"required","cc-input-text.clipboard":"Copy to clipboard","cc-input-text.required":"required","cc-input-text.secret.hide":"Hide secret","cc-input-text.secret.show":"Show secret","cc-invoice.download-pdf":"Download PDF","cc-invoice.error":"Something went wrong while loading the invoice.","cc-invoice.info":({date:e,amount:a})=>p`This invoice was issued on <strong>${t(u,e)}</strong> for a total amount of <strong>${c(u,a)}</strong>.`,"cc-invoice.title":"Invoice","cc-invoice-list.error":"An error occured while loading invoices.","cc-invoice-list.pending":"Pending invoices","cc-invoice-list.pending.no-invoices":"No pending invoices at the moment.","cc-invoice-list.processed":"Paid invoices","cc-invoice-list.processed.no-invoices":"No paid invoices at the moment.","cc-invoice-list.processing":"Invoices awaiting payment validation","cc-invoice-list.title":"Invoices","cc-invoice-list.year":"Year:","cc-invoice-table.date.emission":"Emission date","cc-invoice-table.date.value":({date:e})=>`${t(u,e)}`,"cc-invoice-table.number":"Number","cc-invoice-table.open-pdf":"Download PDF","cc-invoice-table.pay":"Pay","cc-invoice-table.text":({number:e,date:a,amount:n})=>p`Invoice <strong>${e}</strong> issued on <strong>${t(u,a)}</strong> for a total amount of <code>${c(u,n)}</code>`,"cc-invoice-table.total.label":"Total","cc-invoice-table.total.value":({amount:e})=>`${c(u,e)}`,"cc-jenkins-info.documentation.link":"Read the documentation","cc-jenkins-info.documentation.text":"Our documentation can help you start using Jenkins and create jobs that run on Clever Cloud docker applications.","cc-jenkins-info.documentation.title":"Documentation","cc-jenkins-info.error":"An error occured while fetching the information about this add-on.","cc-jenkins-info.info":"Info","cc-jenkins-info.open-jenkins.link":"Access Jenkins","cc-jenkins-info.open-jenkins.text":"Access Jenkins using the Clever Cloud SSO (Single Sign-On). Organisation members can also access the Jenkins service.","cc-jenkins-info.open-jenkins.title":"Access Jenkins","cc-jenkins-info.text":"This add-on is part of the Jenkins offer. You can find the documentation and various information below.","cc-jenkins-info.update.new-version":({version:e})=>`Jenkins version ${e} is available!`,"cc-jenkins-info.update.text":"Jenkins and its plugins often get updates. You can automatically update Jenkins and its plugins using its dedicated WEB interface.","cc-jenkins-info.update.title":"Updates","cc-jenkins-info.update.up-to-date":"Your Jenkins version is up-to-date.","cc-loader.a11y-name":"Loading","cc-logs.copied":({count:e})=>`Copied (${e} ${g(e,"line")})`,"cc-logs.copy":"Copy","cc-logs.select-button.label":({index:e})=>`Select the line ${e}`,"cc-logs.unselect-button.label":({index:e})=>`Unselect the line ${e}`,"cc-logs-control.date-display":"Date format","cc-logs-control.date-display.datetime-iso":"Date and hour ISO","cc-logs-control.date-display.datetime-short":"Date and hour","cc-logs-control.date-display.none":"Do not display","cc-logs-control.date-display.time-iso":"Hour ISO","cc-logs-control.date-display.time-short":"Hour","cc-logs-control.option-header.date":"Date","cc-logs-control.option-header.display":"Display","cc-logs-control.option-header.metadata":"Metadata","cc-logs-control.palette":"Color scheme","cc-logs-control.palette.default":"Default scheme","cc-logs-control.scroll-to-bottom":"Scroll to bottom","cc-logs-control.show-logs-options":"Options","cc-logs-control.strip-ansi":"Strip ANSI escape code","cc-logs-control.timezone":"Time zone","cc-logs-control.timezone.local":"Local","cc-logs-control.timezone.utc":"UTC","cc-logs-control.wrap-lines":"Force lines wrap","cc-logs-instances.build.a11y-name":"Instance dedicated to build","cc-logs-instances.cold.empty":"No instance","cc-logs-instances.cold.header":"Instances","cc-logs-instances.deleted.header":"Deleted instances","cc-logs-instances.deploying.header":"Deployment in progress","cc-logs-instances.deployment.deployed":"Deployed","cc-logs-instances.deployment.state.cancelled":"Deployment cancelled","cc-logs-instances.deployment.state.failed":"Deployment failed","cc-logs-instances.deployment.state.succeeded":"Deployment succeeded","cc-logs-instances.deployment.state.wip":"Deployment in progress","cc-logs-instances.ghost.header":"Ghost instances","cc-logs-instances.ghost.notice":"Some unwanted instances are still running, but will soon be destroyed by our scheduler. You can contact support to get more information.","cc-logs-instances.instance.state.deleted":"Deleted instance","cc-logs-instances.instance.state.deploying":"Deploying instance","cc-logs-instances.instance.state.running":"Running instance","cc-logs-instances.instance.state.stopping":"Stopping instance","cc-logs-instances.loading.error":"Something went wrong while loading instances.","cc-logs-instances.loading.loader":"Instances are loading","cc-logs-instances.running.empty":"No instance running","cc-logs-instances.running.header":"Running instances","cc-logs-instances.stopping.header":"Stopping instances","cc-logsmap.legend.heatmap":({orgaName:e})=>p`Heatmap of HTTP requests received by all apps from <strong>${e}</strong> during the last 24 hours.`,"cc-logsmap.legend.heatmap.app":({appName:e})=>p`Heatmap of HTTP requests received by <strong>${e}</strong> during the last 24 hours.`,"cc-logsmap.legend.points":({orgaName:e})=>p`Realtime map of HTTP requests received by all apps from <strong>${e}</strong>.`,"cc-logsmap.legend.points.app":({appName:e})=>p`Realtime map of HTTP requests received by <strong>${e}</strong>.`,"cc-logsmap.mode.heatmap":"Last 24h","cc-logsmap.mode.points":"Realtime","cc-map.error":"Something went wrong while trying to fetch data for the map.","cc-map.error.icon-a11y-name":"Warning","cc-map.no-points":"No data to display on the map right now.","cc-matomo-info.about.text":()=>p`
<p>The Matomo add-on is a meta add-on. It provides you with a <strong>PHP</strong> application, a <strong>MySQL</strong> add-on and a <strong>Redis</strong> add-on.</p>

@@ -8,3 +8,3 @@ <p>They appear in your organisation just like your other applications and add-ons. You can still configure them as you like. For example, you may want to change the PHP application's domain or migrate the MySQL add-on to a bigger plan.</p>

<p>If you change your mind afterwards, you will need to ask someone from this organisation to be invited again.</p>
`,"cc-orga-member-list.list.heading":"Members","cc-orga-member-list.main-heading":"Manage organisation members","cc-orga-member-list.no-result":"No results matching your criteria.","cc-payment-warning.billing-page-link":({orgaName:e,orgaBillingLink:a})=>p`<a href="${a}" aria-label="Go to the billing page - ${e}">Go to the billing page</a>`,"cc-payment-warning.generic.default-payment-method-is-expired":({orgaName:e})=>p`<strong>${e}</strong> has a default payment method but it has expired.`,"cc-payment-warning.generic.no-default-payment-method":({orgaName:e})=>p`<strong>${e}</strong> has registered payment methods but none of them are set as default.`,"cc-payment-warning.generic.no-payment-method":({orgaName:e})=>p`<strong>${e}</strong> doesn't have any registered payment method.`,"cc-payment-warning.home":({orgaCount:e})=>`To avoid any suspension of your services and deletion of your data, please check the billing info related to the following ${g(e,"organisation")}:`,"cc-payment-warning.home.title":"Beware! Something is wrong with your payment methods.","cc-payment-warning.orga.default-payment-method-is-expired":"To avoid any suspension of your services and deletion of your data, please add a valid payment method and set it as default.","cc-payment-warning.orga.default-payment-method-is-expired.title":"Beware! Your default payment method has expired","cc-payment-warning.orga.no-default-payment-method":"To avoid any suspension of your services and deletion of your data, please set one of them as default.","cc-payment-warning.orga.no-default-payment-method.title":"Beware! You have registered payment methods but none of them are set as default","cc-payment-warning.orga.no-payment-method":"To avoid any suspension of your services and deletion of your data, please add a valid payment method and set it as default.","cc-payment-warning.orga.no-payment-method.title":"Beware! You don't have any registered payment method","cc-pricing-estimation.count.label":({productCount:e})=>g(e,"product"),"cc-pricing-estimation.estimated-price-name.1000-minutes":`Price (${r("en",1e3)} minutes)`,"cc-pricing-estimation.estimated-price-name.30-days":()=>p`estimated/30&nbsp;days`,"cc-pricing-estimation.estimated-price-name.day":"estimated/Day","cc-pricing-estimation.estimated-price-name.hour":"estimated/Hour","cc-pricing-estimation.estimated-price-name.minute":"estimated/Minute","cc-pricing-estimation.estimated-price-name.second":"estimated/Second","cc-pricing-estimation.feature.connection-limit":"Connection limit: ","cc-pricing-estimation.feature.cpu":"vCPUs: ","cc-pricing-estimation.feature.custom":({featureName:e})=>`${e}: `,"cc-pricing-estimation.feature.databases":"Databases: ","cc-pricing-estimation.feature.disk-size":"Disk size: ","cc-pricing-estimation.feature.gpu":"GPUs: ","cc-pricing-estimation.feature.has-logs":"Logs: ","cc-pricing-estimation.feature.has-metrics":"Metrics: ","cc-pricing-estimation.feature.max-db-size":"Max DB size: ","cc-pricing-estimation.feature.memory":"RAM: ","cc-pricing-estimation.feature.version":"Version: ","cc-pricing-estimation.heading":"My selection","cc-pricing-estimation.hide":"Hide","cc-pricing-estimation.label.currency":"Currency: ","cc-pricing-estimation.label.temporality":"Unit of time: ","cc-pricing-estimation.plan.delete":({productName:e,planName:a})=>`Remove ${e} - ${a}`,"cc-pricing-estimation.plan.qty.btn.decrease":({productName:e,planName:a})=>`Decrease quantity - ${e} (${a})`,"cc-pricing-estimation.plan.qty.btn.increase":({productName:e,planName:a})=>`Increase quantity - ${e} (${a})`,"cc-pricing-estimation.plan.qty.label":"Quantity: ","cc-pricing-estimation.plan.total.label":({productName:e,planName:a})=>`Total for ${e} ${a}`,"cc-pricing-estimation.price":({price:e,code:a,digits:t})=>c("en",e,{currency:a,minimumFractionDigits:t,maximumFractionDigits:t}),"cc-pricing-estimation.price-name.1000-minutes":`Price (${r("en",1e3)} minutes)`,"cc-pricing-estimation.price-name.30-days":()=>p`Price/30&nbsp;days`,"cc-pricing-estimation.price-name.day":"Price/Day","cc-pricing-estimation.price-name.hour":"Price/Hour","cc-pricing-estimation.price-name.minute":"Price/Minute","cc-pricing-estimation.price-name.second":"Price/Second","cc-pricing-estimation.price.unit.label":"Unit price: ","cc-pricing-estimation.show":"Show","cc-pricing-estimation.tax-excluded":"tax excl.","cc-pricing-estimation.total.label":"Total: ","cc-pricing-estimation.type.boolean":({boolean:e})=>""+(e?"Yes":"No"),"cc-pricing-estimation.type.boolean-shared":({shared:e})=>""+(e?"Shared":"Dedicated"),"cc-pricing-estimation.type.bytes":({bytes:e})=>y(e,0,3),"cc-pricing-estimation.type.number":({number:e})=>r("en",e),"cc-pricing-estimation.type.number-cpu-runtime":({cpu:e,shared:a})=>a?p`<em title="Lower priority access to vCPU">${r("en",e)}<code>*</code></em>`:r("en",e),"cc-pricing-header.error":"Something went wrong while loading pricing filters.","cc-pricing-header.label.currency":"Currency","cc-pricing-header.label.temporality":"Unit of time","cc-pricing-header.label.zone":"Zone","cc-pricing-header.price-name.1000-minutes":`Price (${r("en",1e3)} minutes)`,"cc-pricing-header.price-name.30-days":()=>p`Price/30&nbsp;days`,"cc-pricing-header.price-name.day":"Price/Day","cc-pricing-header.price-name.hour":"Price/Hour","cc-pricing-header.price-name.minute":"Price/Minute","cc-pricing-header.price-name.second":"Price/Second","cc-pricing-product.add-button":({productName:e,size:a})=>`Add ${e} - ${a} to the cost estimate`,"cc-pricing-product.error":"An error occured while loading pricing details.","cc-pricing-product.feature.connection-limit":"Connection limit","cc-pricing-product.feature.cpu":"vCPUs","cc-pricing-product.feature.databases":"Databases","cc-pricing-product.feature.dedicated":"Dedicated","cc-pricing-product.feature.disk-size":"Disk size","cc-pricing-product.feature.gpu":"GPUs","cc-pricing-product.feature.has-logs":"Logs","cc-pricing-product.feature.has-metrics":"Metrics","cc-pricing-product.feature.is-migratable":"Migration tool","cc-pricing-product.feature.max-db-size":"Max DB size","cc-pricing-product.feature.memory":"RAM","cc-pricing-product.feature.version":"Version","cc-pricing-product.plan":"Plan","cc-pricing-product.price":({price:e,code:a,digits:t})=>c("en",e,{currency:a,minimumFractionDigits:t,maximumFractionDigits:t}),"cc-pricing-product.price-name.1000-minutes":`Price (${r("en",1e3)} minutes)`,"cc-pricing-product.price-name.30-days":()=>p`Price/30&nbsp;days`,"cc-pricing-product.price-name.day":"Price/Day","cc-pricing-product.price-name.hour":"Price/Hour","cc-pricing-product.price-name.minute":"Price/Minute","cc-pricing-product.price-name.second":"Price/Second","cc-pricing-product.type.boolean":({boolean:e})=>""+(e?"Yes":"No"),"cc-pricing-product.type.boolean-shared":({shared:e})=>""+(e?"Shared":"Dedicated"),"cc-pricing-product.type.bytes":({bytes:e})=>y(e,0,3),"cc-pricing-product.type.number":({number:e})=>r("en",e),"cc-pricing-product.type.number-cpu-runtime":({cpu:e,shared:a})=>a?p`<em title="Lower priority access to vCPU">${r("en",e)}<code>*</code></em>`:r("en",e),"cc-pricing-product-consumption.add":"Add","cc-pricing-product-consumption.bytes":({bytes:e})=>f(e),"cc-pricing-product-consumption.bytes-unit":({bytes:e})=>v(e),"cc-pricing-product-consumption.error":"An error occured while retrieving pricing details.","cc-pricing-product-consumption.inbound-traffic.label":"traffic in","cc-pricing-product-consumption.inbound-traffic.title":"Inbound traffic:","cc-pricing-product-consumption.number":({number:e})=>r("en",e),"cc-pricing-product-consumption.outbound-traffic.label":"traffic out","cc-pricing-product-consumption.outbound-traffic.title":"Outbound traffic:","cc-pricing-product-consumption.price":({price:e,code:a})=>`${c("en",e,{currency:a})}`,"cc-pricing-product-consumption.price-interval.bytes":({price:e,code:a})=>`${c("en",e,{minimumFractionDigits:3,maximumFractionDigits:3,currency:a})} / ${v(1e9)} (30 days)`,"cc-pricing-product-consumption.price-interval.free":"FREE","cc-pricing-product-consumption.price-interval.users":({userCount:e,price:a,code:t})=>{const n=g(e,"user");return`${c("en",a*e,{currency:t})} / ${e} ${n} (30 days)`},"cc-pricing-product-consumption.private-users.label":"private users","cc-pricing-product-consumption.private-users.title":"Private users:","cc-pricing-product-consumption.public-users.label":"public users","cc-pricing-product-consumption.public-users.title":"Public users:","cc-pricing-product-consumption.quantity":"Quantity","cc-pricing-product-consumption.size":({bytes:e})=>`Size (in ${v(e)})`,"cc-pricing-product-consumption.storage.label":"storage","cc-pricing-product-consumption.storage.title":"Storage:","cc-pricing-product-consumption.subtotal.title":"Subtotal (30 days):","cc-pricing-product-consumption.toggle-btn.label":"Show more details","cc-pricing-product-consumption.total.title":"Estimated total (30 days):","cc-pricing-product-consumption.unit":"Unit","cc-product-card.select":e=>`${e} - select this product`,"cc-select.required":"required","cc-ssh-key-list.add.btn":"Add key","cc-ssh-key-list.add.info":()=>p`<p>You need to associate an SSH key to your account to deploy via Git. Use this form to do so.</p><p>You can create an SSH key with the following command:</p><code>ssh-keygen -t ed25519 -C "my-email@example.com"</code><p>The generated public key is written in the "*.pub" file.</p>`,"cc-ssh-key-list.add.name":"Name","cc-ssh-key-list.add.public-key":"Public key","cc-ssh-key-list.add.title":"Add a new key","cc-ssh-key-list.doc.info":()=>p`If you need any help, head up to our <a href="https://www.clever-cloud.com/doc/admin-console/ssh-keys/">documentation</a>.`,"cc-ssh-key-list.error.add":({name:e})=>`An error occurred while adding your new personal key "${e}".`,"cc-ssh-key-list.error.delete":({name:e})=>`An error occurred while deleting your personal key "${e}".`,"cc-ssh-key-list.error.import":({name:e})=>`An error occurred while importing your GitHub key "${e}".`,"cc-ssh-key-list.error.loading":"An error occurred while loading your keys.","cc-ssh-key-list.error.private-key":"Invalid format: did you enter your private key instead of your public key?","cc-ssh-key-list.error.required.name":"Please enter a name for your SSH key","cc-ssh-key-list.error.required.public-key":"Please enter the public key value","cc-ssh-key-list.github.empty":"There are no SSH keys available for import from your GitHub account.","cc-ssh-key-list.github.import":"Import","cc-ssh-key-list.github.import.a11y":({name:e})=>`Import the GitHub SSH key - ${e}`,"cc-ssh-key-list.github.info":()=>p`<p>These are the SSH keys from your GitHub account. You can import them to associate them to your Clever Cloud account.</p>`,"cc-ssh-key-list.github.title":"GitHub keys","cc-ssh-key-list.github.unlinked":()=>p`There is no GitHub account linked to your Clever Cloud account. You may link your accounts from your <a href="./information">profile</a> page.`,"cc-ssh-key-list.personal.delete":"Delete","cc-ssh-key-list.personal.delete.a11y":({name:e})=>`Delete your personal SSH key - ${e}`,"cc-ssh-key-list.personal.empty":"There are no SSH keys associated with your account.","cc-ssh-key-list.personal.info":()=>p`<p>These are the SSH keys associated with your account.</p><p>If you want to check whether a key is already associated or not, you can list the fingerprints of your local keys with the following command:</p><code>ssh-add -l -E sha256</code>`,"cc-ssh-key-list.personal.title":"Your keys","cc-ssh-key-list.success.add":({name:e})=>p`Your key <strong>${e}</strong> has been added successfully.`,"cc-ssh-key-list.success.delete":({name:e})=>p`Your key <strong>${e}</strong> has been deleted successfully.`,"cc-ssh-key-list.success.import":({name:e})=>p`Your key <strong>${e}</strong> has been imported successfully.`,"cc-ssh-key-list.title":"SSH Keys","cc-tcp-redirection.create-button":"Create","cc-tcp-redirection.delete-button":"Delete","cc-tcp-redirection.namespace-additionaldescription-cleverapps":()=>p`This namespace is used by all <em>cleverapps.io</em> domains (e.g. <em>my-app.cleverapps.io</em>).`,"cc-tcp-redirection.namespace-additionaldescription-default":()=>p`This namespace is used by all custom domains (e.g. <em>my-app.com</em>).`,"cc-tcp-redirection.namespace-private":"This is your private namespace.","cc-tcp-redirection.redirection-defined":({namespace:e,sourcePort:a})=>p`This application has a redirection from port <code>${a}</code> to port <code>4040</code> in the <strong>${e}</strong> namespace.`,"cc-tcp-redirection.redirection-not-defined":({namespace:e})=>p`You can create a redirection in the <strong>${e}</strong> namespace.`,"cc-tcp-redirection-form.create.error":({namespace:e})=>p`Something went wrong while creating a TCP redirection in the <strong>${e}</strong> namespace.`,"cc-tcp-redirection-form.create.success":({namespace:e})=>p`The TCP redirection in the <strong>${e}</strong> namespace has been created successfully.`,"cc-tcp-redirection-form.delete.error":({namespace:e})=>p`Something went wrong while deleting the TCP redirection in the <strong>${e}</strong> namespace.`,"cc-tcp-redirection-form.delete.success":({namespace:e})=>p`The TCP redirection in the <strong>${e}</strong> namespace has been deleted successfully.`,"cc-tcp-redirection-form.description":()=>p`
`,"cc-orga-member-list.list.heading":"Members","cc-orga-member-list.main-heading":"Manage organisation members","cc-orga-member-list.no-result":"No results matching your criteria.","cc-payment-warning.billing-page-link":({orgaName:e,orgaBillingLink:a})=>p`<a href="${a}" aria-label="Go to the billing page - ${e}">Go to the billing page</a>`,"cc-payment-warning.generic.default-payment-method-is-expired":({orgaName:e})=>p`<strong>${e}</strong> has a default payment method but it has expired.`,"cc-payment-warning.generic.no-default-payment-method":({orgaName:e})=>p`<strong>${e}</strong> has registered payment methods but none of them are set as default.`,"cc-payment-warning.generic.no-payment-method":({orgaName:e})=>p`<strong>${e}</strong> doesn't have any registered payment method.`,"cc-payment-warning.home":({orgaCount:e})=>`To avoid any suspension of your services and deletion of your data, please check the billing info related to the following ${g(e,"organisation")}:`,"cc-payment-warning.home.title":"Beware! Something is wrong with your payment methods.","cc-payment-warning.orga.default-payment-method-is-expired":"To avoid any suspension of your services and deletion of your data, please add a valid payment method and set it as default.","cc-payment-warning.orga.default-payment-method-is-expired.title":"Beware! Your default payment method has expired","cc-payment-warning.orga.no-default-payment-method":"To avoid any suspension of your services and deletion of your data, please set one of them as default.","cc-payment-warning.orga.no-default-payment-method.title":"Beware! You have registered payment methods but none of them are set as default","cc-payment-warning.orga.no-payment-method":"To avoid any suspension of your services and deletion of your data, please add a valid payment method and set it as default.","cc-payment-warning.orga.no-payment-method.title":"Beware! You don't have any registered payment method","cc-pricing-estimation.count.label":({productCount:e})=>g(e,"product"),"cc-pricing-estimation.estimated-price-name.1000-minutes":`Price (${r(u,1e3)} minutes)`,"cc-pricing-estimation.estimated-price-name.30-days":()=>p`estimated/30&nbsp;days`,"cc-pricing-estimation.estimated-price-name.day":"estimated/Day","cc-pricing-estimation.estimated-price-name.hour":"estimated/Hour","cc-pricing-estimation.estimated-price-name.minute":"estimated/Minute","cc-pricing-estimation.estimated-price-name.second":"estimated/Second","cc-pricing-estimation.feature.connection-limit":"Connection limit: ","cc-pricing-estimation.feature.cpu":"vCPUs: ","cc-pricing-estimation.feature.custom":({featureName:e})=>`${e}: `,"cc-pricing-estimation.feature.databases":"Databases: ","cc-pricing-estimation.feature.disk-size":"Disk size: ","cc-pricing-estimation.feature.gpu":"GPUs: ","cc-pricing-estimation.feature.has-logs":"Logs: ","cc-pricing-estimation.feature.has-metrics":"Metrics: ","cc-pricing-estimation.feature.max-db-size":"Max DB size: ","cc-pricing-estimation.feature.memory":"RAM: ","cc-pricing-estimation.feature.version":"Version: ","cc-pricing-estimation.heading":"My selection","cc-pricing-estimation.hide":"Hide","cc-pricing-estimation.label.currency":"Currency: ","cc-pricing-estimation.label.temporality":"Unit of time: ","cc-pricing-estimation.plan.delete":({productName:e,planName:a})=>`Remove ${e} - ${a}`,"cc-pricing-estimation.plan.qty.btn.decrease":({productName:e,planName:a})=>`Decrease quantity - ${e} (${a})`,"cc-pricing-estimation.plan.qty.btn.increase":({productName:e,planName:a})=>`Increase quantity - ${e} (${a})`,"cc-pricing-estimation.plan.qty.label":"Quantity: ","cc-pricing-estimation.plan.total.label":({productName:e,planName:a})=>`Total for ${e} ${a}`,"cc-pricing-estimation.price":({price:e,code:a,digits:t})=>c(u,e,{currency:a,minimumFractionDigits:t,maximumFractionDigits:t}),"cc-pricing-estimation.price-name.1000-minutes":`Price (${r(u,1e3)} minutes)`,"cc-pricing-estimation.price-name.30-days":()=>p`Price/30&nbsp;days`,"cc-pricing-estimation.price-name.day":"Price/Day","cc-pricing-estimation.price-name.hour":"Price/Hour","cc-pricing-estimation.price-name.minute":"Price/Minute","cc-pricing-estimation.price-name.second":"Price/Second","cc-pricing-estimation.price.unit.label":"Unit price: ","cc-pricing-estimation.show":"Show","cc-pricing-estimation.tax-excluded":"tax excl.","cc-pricing-estimation.total.label":"Total: ","cc-pricing-estimation.type.boolean":({boolean:e})=>""+(e?"Yes":"No"),"cc-pricing-estimation.type.boolean-shared":({shared:e})=>""+(e?"Shared":"Dedicated"),"cc-pricing-estimation.type.bytes":({bytes:e})=>y(e,0,3),"cc-pricing-estimation.type.number":({number:e})=>r(u,e),"cc-pricing-estimation.type.number-cpu-runtime":({cpu:e,shared:a})=>a?p`<em title="Lower priority access to vCPU">${r(u,e)}<code>*</code></em>`:r(u,e),"cc-pricing-header.error":"Something went wrong while loading pricing filters.","cc-pricing-header.label.currency":"Currency","cc-pricing-header.label.temporality":"Unit of time","cc-pricing-header.label.zone":"Zone","cc-pricing-header.price-name.1000-minutes":`Price (${r(u,1e3)} minutes)`,"cc-pricing-header.price-name.30-days":()=>p`Price/30&nbsp;days`,"cc-pricing-header.price-name.day":"Price/Day","cc-pricing-header.price-name.hour":"Price/Hour","cc-pricing-header.price-name.minute":"Price/Minute","cc-pricing-header.price-name.second":"Price/Second","cc-pricing-product.add-button":({productName:e,size:a})=>`Add ${e} - ${a} to the cost estimate`,"cc-pricing-product.error":"An error occured while loading pricing details.","cc-pricing-product.feature.connection-limit":"Connection limit","cc-pricing-product.feature.cpu":"vCPUs","cc-pricing-product.feature.databases":"Databases","cc-pricing-product.feature.dedicated":"Dedicated","cc-pricing-product.feature.disk-size":"Disk size","cc-pricing-product.feature.gpu":"GPUs","cc-pricing-product.feature.has-logs":"Logs","cc-pricing-product.feature.has-metrics":"Metrics","cc-pricing-product.feature.is-migratable":"Migration tool","cc-pricing-product.feature.max-db-size":"Max DB size","cc-pricing-product.feature.memory":"RAM","cc-pricing-product.feature.version":"Version","cc-pricing-product.plan":"Plan","cc-pricing-product.price":({price:e,code:a,digits:t})=>c(u,e,{currency:a,minimumFractionDigits:t,maximumFractionDigits:t}),"cc-pricing-product.price-name.1000-minutes":`Price (${r(u,1e3)} minutes)`,"cc-pricing-product.price-name.30-days":()=>p`Price/30&nbsp;days`,"cc-pricing-product.price-name.day":"Price/Day","cc-pricing-product.price-name.hour":"Price/Hour","cc-pricing-product.price-name.minute":"Price/Minute","cc-pricing-product.price-name.second":"Price/Second","cc-pricing-product.type.boolean":({boolean:e})=>""+(e?"Yes":"No"),"cc-pricing-product.type.boolean-shared":({shared:e})=>""+(e?"Shared":"Dedicated"),"cc-pricing-product.type.bytes":({bytes:e})=>y(e,0,3),"cc-pricing-product.type.number":({number:e})=>r(u,e),"cc-pricing-product.type.number-cpu-runtime":({cpu:e,shared:a})=>a?p`<em title="Lower priority access to vCPU">${r(u,e)}<code>*</code></em>`:r(u,e),"cc-pricing-product-consumption.add":"Add","cc-pricing-product-consumption.bytes":({bytes:e})=>f(e),"cc-pricing-product-consumption.bytes-unit":({bytes:e})=>v(e),"cc-pricing-product-consumption.error":"An error occured while retrieving pricing details.","cc-pricing-product-consumption.inbound-traffic.label":"traffic in","cc-pricing-product-consumption.inbound-traffic.title":"Inbound traffic:","cc-pricing-product-consumption.number":({number:e})=>r(u,e),"cc-pricing-product-consumption.outbound-traffic.label":"traffic out","cc-pricing-product-consumption.outbound-traffic.title":"Outbound traffic:","cc-pricing-product-consumption.price":({price:e,code:a})=>`${c(u,e,{currency:a})}`,"cc-pricing-product-consumption.price-interval.bytes":({price:e,code:a})=>`${c(u,e,{minimumFractionDigits:3,maximumFractionDigits:3,currency:a})} / ${v(1e9)} (30 days)`,"cc-pricing-product-consumption.price-interval.free":"FREE","cc-pricing-product-consumption.price-interval.users":({userCount:e,price:a,code:t})=>{const n=g(e,"user");return`${c(u,a*e,{currency:t})} / ${e} ${n} (30 days)`},"cc-pricing-product-consumption.private-users.label":"private users","cc-pricing-product-consumption.private-users.title":"Private users:","cc-pricing-product-consumption.public-users.label":"public users","cc-pricing-product-consumption.public-users.title":"Public users:","cc-pricing-product-consumption.quantity":"Quantity","cc-pricing-product-consumption.size":({bytes:e})=>`Size (in ${v(e)})`,"cc-pricing-product-consumption.storage.label":"storage","cc-pricing-product-consumption.storage.title":"Storage:","cc-pricing-product-consumption.subtotal.title":"Subtotal (30 days):","cc-pricing-product-consumption.toggle-btn.label":"Show more details","cc-pricing-product-consumption.total.title":"Estimated total (30 days):","cc-pricing-product-consumption.unit":"Unit","cc-product-card.select":e=>`${e} - select this product`,"cc-product-list.all-label":"All","cc-product-list.filter-category-legend":"Filter by category","cc-product-list.search-empty":"No products matching your search criteria were found.","cc-product-list.search-label":"Search for a product","cc-select.required":"required","cc-ssh-key-list.add.btn":"Add key","cc-ssh-key-list.add.info":()=>p`<p>You need to associate an SSH key to your account to deploy via Git. Use this form to do so.</p><p>You can create an SSH key with the following command:</p><code>ssh-keygen -t ed25519 -C "my-email@example.com"</code><p>The generated public key is written in the "*.pub" file.</p>`,"cc-ssh-key-list.add.name":"Name","cc-ssh-key-list.add.public-key":"Public key","cc-ssh-key-list.add.title":"Add a new key","cc-ssh-key-list.doc.info":()=>p`If you need any help, head up to our <a href="https://www.clever-cloud.com/doc/admin-console/ssh-keys/">documentation</a>.`,"cc-ssh-key-list.error.add":({name:e})=>`An error occurred while adding your new personal key "${e}".`,"cc-ssh-key-list.error.delete":({name:e})=>`An error occurred while deleting your personal key "${e}".`,"cc-ssh-key-list.error.import":({name:e})=>`An error occurred while importing your GitHub key "${e}".`,"cc-ssh-key-list.error.loading":"An error occurred while loading your keys.","cc-ssh-key-list.error.private-key":"Invalid format: did you enter your private key instead of your public key?","cc-ssh-key-list.error.required.name":"Please enter a name for your SSH key","cc-ssh-key-list.error.required.public-key":"Please enter the public key value","cc-ssh-key-list.github.empty":"There are no SSH keys available for import from your GitHub account.","cc-ssh-key-list.github.import":"Import","cc-ssh-key-list.github.import.a11y":({name:e})=>`Import the GitHub SSH key - ${e}`,"cc-ssh-key-list.github.info":()=>p`<p>These are the SSH keys from your GitHub account. You can import them to associate them to your Clever Cloud account.</p>`,"cc-ssh-key-list.github.title":"GitHub keys","cc-ssh-key-list.github.unlinked":()=>p`There is no GitHub account linked to your Clever Cloud account. You may link your accounts from your <a href="./information">profile</a> page.`,"cc-ssh-key-list.personal.delete":"Delete","cc-ssh-key-list.personal.delete.a11y":({name:e})=>`Delete your personal SSH key - ${e}`,"cc-ssh-key-list.personal.empty":"There are no SSH keys associated with your account.","cc-ssh-key-list.personal.info":()=>p`<p>These are the SSH keys associated with your account.</p><p>If you want to check whether a key is already associated or not, you can list the fingerprints of your local keys with the following command:</p><code>ssh-add -l -E sha256</code>`,"cc-ssh-key-list.personal.title":"Your keys","cc-ssh-key-list.success.add":({name:e})=>p`Your key <strong>${e}</strong> has been added successfully.`,"cc-ssh-key-list.success.delete":({name:e})=>p`Your key <strong>${e}</strong> has been deleted successfully.`,"cc-ssh-key-list.success.import":({name:e})=>p`Your key <strong>${e}</strong> has been imported successfully.`,"cc-ssh-key-list.title":"SSH Keys","cc-tcp-redirection.create-button":"Create","cc-tcp-redirection.delete-button":"Delete","cc-tcp-redirection.namespace-additionaldescription-cleverapps":()=>p`This namespace is used by all <em>cleverapps.io</em> domains (e.g. <em>my-app.cleverapps.io</em>).`,"cc-tcp-redirection.namespace-additionaldescription-default":()=>p`This namespace is used by all custom domains (e.g. <em>my-app.com</em>).`,"cc-tcp-redirection.namespace-private":"This is your private namespace.","cc-tcp-redirection.redirection-defined":({namespace:e,sourcePort:a})=>p`This application has a redirection from port <code>${a}</code> to port <code>4040</code> in the <strong>${e}</strong> namespace.`,"cc-tcp-redirection.redirection-not-defined":({namespace:e})=>p`You can create a redirection in the <strong>${e}</strong> namespace.`,"cc-tcp-redirection-form.create.error":({namespace:e})=>p`Something went wrong while creating a TCP redirection in the <strong>${e}</strong> namespace.`,"cc-tcp-redirection-form.create.success":({namespace:e})=>p`The TCP redirection in the <strong>${e}</strong> namespace has been created successfully.`,"cc-tcp-redirection-form.delete.error":({namespace:e})=>p`Something went wrong while deleting the TCP redirection in the <strong>${e}</strong> namespace.`,"cc-tcp-redirection-form.delete.success":({namespace:e})=>p`The TCP redirection in the <strong>${e}</strong> namespace has been deleted successfully.`,"cc-tcp-redirection-form.description":()=>p`
<p>

@@ -20,3 +20,3 @@ A TCP redirection allows you to route external traffic to the <code>4040</code> port of the application.<br>

<p>Each bar represents a time window of <strong>1 hour</strong>.</p>
<p>The percentage shown is the average over the last hour.</p>`,"cc-tile-metrics.empty":"No metrics. Application is stopped.","cc-tile-metrics.error":"Something went wrong while loading metrics.","cc-tile-metrics.error.icon-a11y-name":"Warning","cc-tile-metrics.grafana":"Grafana","cc-tile-metrics.legend.cpu":"CPU usage over 24h","cc-tile-metrics.legend.mem":"RAM usage over 24h","cc-tile-metrics.link-to-grafana":"Open Grafana","cc-tile-metrics.link-to-metrics":"Open Metrics","cc-tile-metrics.metrics-link":"Metrics","cc-tile-metrics.percent":({percent:e})=>s("en",e),"cc-tile-metrics.timestamp-format":({timestamp:a})=>e("en",a),"cc-tile-metrics.title":"Server metrics","cc-tile-requests.about-btn":"About this chart...","cc-tile-requests.close-btn":"Display chart","cc-tile-requests.date-hours":({date:e})=>n("en",e),"cc-tile-requests.date-tooltip":({from:e,to:a})=>`${t("en",e)}: from ${n("en",e)} to ${n("en",a)}`,"cc-tile-requests.docs.msg":({windowHours:e})=>{const a=g(e,"hour");return p`HTTP requests received in the last 24 hours. Each bar represents a time window of <strong>${e} ${a}</strong>.`},"cc-tile-requests.empty":"No data to display for now.","cc-tile-requests.error":"Something went wrong while loading HTTP requests.","cc-tile-requests.error.icon-a11y-name":"Warning","cc-tile-requests.requests-count":({requestCount:e})=>b(e),"cc-tile-requests.requests-nb":({value:e,windowHours:a})=>{const t=g(e,"request"),n=g(a,"hour");return`${r("en",e)} ${t} (in ${a} ${n})`},"cc-tile-requests.requests-nb.total":({totalRequests:e})=>{const a=g(e,"request");return`${b(e)} ${a} in 24 hours`},"cc-tile-requests.title":"HTTP requests","cc-tile-scalability.error":"Something went wrong while loading scalability config.","cc-tile-scalability.error.icon-a11y-name":"Warning","cc-tile-scalability.flavor-info":e=>w(e),"cc-tile-scalability.number":"Number","cc-tile-scalability.size":"Size","cc-tile-scalability.title":"Scalability","cc-tile-status-codes.about-btn":"About this chart...","cc-tile-status-codes.close-btn":"Display chart","cc-tile-status-codes.docs.link":()=>p`<a href="https://developer.mozilla.org/en/docs/Web/HTTP/Status">HTTP response status codes (MDN)</a>`,"cc-tile-status-codes.docs.msg":"Repartition of HTTP response codes returned in the last 24 hours. Click on legend items to show/hide HTTP code categories.","cc-tile-status-codes.empty":"No data to display for now.","cc-tile-status-codes.error":"Something went wrong while loading HTTP response codes.","cc-tile-status-codes.error.icon-a11y-name":"Warning","cc-tile-status-codes.title":"HTTP response codes","cc-tile-status-codes.tooltip":({value:e,percent:a})=>{const t=g(e,"request");return`${r("en",e)} ${t} (${s("en",a)})`},"cc-toast.close":"Close this notification","cc-toast.icon-alt.danger":"Error","cc-toast.icon-alt.info":"Information","cc-toast.icon-alt.success":"Success","cc-toast.icon-alt.warning":"Warning","cc-zone.country":({code:e,name:a})=>i("en",e,a),"cc-zone-input.error":"Something went wrong while loading zones.","cc-zone-input.private-map-warning":"Private zones don't appear on the map."};export{u as lang,k as translations};
<p>The percentage shown is the average over the last hour.</p>`,"cc-tile-metrics.empty":"No metrics. Application is stopped.","cc-tile-metrics.error":"Something went wrong while loading metrics.","cc-tile-metrics.error.icon-a11y-name":"Warning","cc-tile-metrics.grafana":"Grafana","cc-tile-metrics.legend.cpu":"CPU usage over 24h","cc-tile-metrics.legend.mem":"RAM usage over 24h","cc-tile-metrics.link-to-grafana":"Open Grafana","cc-tile-metrics.link-to-metrics":"Open Metrics","cc-tile-metrics.metrics-link":"Metrics","cc-tile-metrics.percent":({percent:e})=>s(u,e),"cc-tile-metrics.timestamp-format":({timestamp:a})=>e(u,a),"cc-tile-metrics.title":"Server metrics","cc-tile-requests.about-btn":"About this chart...","cc-tile-requests.close-btn":"Display chart","cc-tile-requests.date-hours":({date:e})=>n(u,e),"cc-tile-requests.date-tooltip":({from:e,to:a})=>`${t(u,e)}: from ${n(u,e)} to ${n(u,a)}`,"cc-tile-requests.docs.msg":({windowHours:e})=>{const a=g(e,"hour");return p`HTTP requests received in the last 24 hours. Each bar represents a time window of <strong>${e} ${a}</strong>.`},"cc-tile-requests.empty":"No data to display for now.","cc-tile-requests.error":"Something went wrong while loading HTTP requests.","cc-tile-requests.error.icon-a11y-name":"Warning","cc-tile-requests.requests-count":({requestCount:e})=>b(e),"cc-tile-requests.requests-nb":({value:e,windowHours:a})=>{const t=g(e,"request"),n=g(a,"hour");return`${r(u,e)} ${t} (in ${a} ${n})`},"cc-tile-requests.requests-nb.total":({totalRequests:e})=>{const a=g(e,"request");return`${b(e)} ${a} in 24 hours`},"cc-tile-requests.title":"HTTP requests","cc-tile-scalability.error":"Something went wrong while loading scalability config.","cc-tile-scalability.error.icon-a11y-name":"Warning","cc-tile-scalability.flavor-info":e=>w(e),"cc-tile-scalability.number":"Number","cc-tile-scalability.size":"Size","cc-tile-scalability.title":"Scalability","cc-tile-status-codes.about-btn":"About this chart...","cc-tile-status-codes.close-btn":"Display chart","cc-tile-status-codes.docs.link":()=>p`<a href="https://developer.mozilla.org/en/docs/Web/HTTP/Status">HTTP response status codes (MDN)</a>`,"cc-tile-status-codes.docs.msg":"Repartition of HTTP response codes returned in the last 24 hours. Click on legend items to show/hide HTTP code categories.","cc-tile-status-codes.empty":"No data to display for now.","cc-tile-status-codes.error":"Something went wrong while loading HTTP response codes.","cc-tile-status-codes.error.icon-a11y-name":"Warning","cc-tile-status-codes.title":"HTTP response codes","cc-tile-status-codes.tooltip":({value:e,percent:a})=>{const t=g(e,"request");return`${r(u,e)} ${t} (${s(u,a)})`},"cc-toast.close":"Close this notification","cc-toast.icon-alt.danger":"Error","cc-toast.icon-alt.info":"Information","cc-toast.icon-alt.success":"Success","cc-toast.icon-alt.warning":"Warning","cc-zone.country":({code:e,name:a})=>i(u,e,a),"cc-zone-input.error":"Something went wrong while loading zones.","cc-zone-input.private-map-warning":"Private zones don't appear on the map."};export{u as lang,k as translations};
//# sourceMappingURL=translations.en.js.map
{
"name": "@clevercloud/components",
"version": "13.0.0",
"version": "13.1.0",
"description": "Collection of Web Components by Clever Cloud",

@@ -84,7 +84,7 @@ "license": "Apache-2.0",

"@rollup/plugin-node-resolve": "^13.0.0",
"@storybook/addon-essentials": "^7.6.17",
"@storybook/addon-links": "^7.6.17",
"@storybook/blocks": "^7.6.17",
"@storybook/web-components": "^7.6.17",
"@storybook/web-components-vite": "^7.6.17",
"@storybook/addon-essentials": "^8.0.2",
"@storybook/addon-links": "^8.0.2",
"@storybook/blocks": "^8.0.2",
"@storybook/web-components": "^8.0.2",
"@storybook/web-components-vite": "^8.0.2",
"@stylelint/postcss-css-in-js": "^0.38.0",

@@ -126,4 +126,2 @@ "@web/dev-server-rollup": "^0.3.19",

"postcss-styled": "^0.34.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"remark-frontmatter": "^3.0.0",

@@ -141,3 +139,3 @@ "remark-gfm": "^1.0.0",

"rollup-plugin-visualizer": "^5.5.0",
"storybook": "^7.6.17",
"storybook": "^8.0.2",
"stylelint": "^14.15.0",

@@ -151,2 +149,3 @@ "stylelint-config-idiomatic-order": "^8.1.0",

"typescript": "~4.3.2",
"vite": "^5.2.0",
"unified": "^9.2.1"

@@ -153,0 +152,0 @@ },

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc