import{LitElement as t,html as o,css as n}from"lit";import{dispatchCustomEvent as i}from"./lib/events.js";import{ccAddonEncryptionAtRestOption as s}from"./templates/cc-addon-encryption-at-rest-option/cc-addon-encryption-at-rest-option.js";import{i18n as r}from"./translation.js";import"./cc-addon-option-form.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?s(t):null)).filter((t=>null!=t))}render(){const t=this._getFormOptions(),n=r("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>${r("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
