import{LitElement as o,html as t,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 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?s(o):null)).filter((o=>null!=o))}render(){const o=this._getFormOptions(),n=r("cc-addon-postgresql-options.title");return t`<cc-addon-option-form heading=${n} .options=${o} @cc-addon-option-form:submit=${this._onFormOptionsSubmit}><div slot=description>${r("cc-addon-postgresql-options.description")}</div></cc-addon-option-form>`}static get styles(){return[n`:host{display:block}`]}}window.customElements.define("cc-addon-postgresql-options",e);export{e as CcAddonPostgresqlOptions};
//# sourceMappingURL=cc-addon-postgresql-options.js.map
