/*! All material copyright GeoScene, All Rights Reserved, unless otherwise specified.
See https://js.geoscene.cn/4.33/geoscene/copyright.txt for details.
v4.33.18 */
import{P as n,Q as t,U as c,a as r,j as l,k as e}from"./3VKC6PRK.js";var x=l`.geoscene-print__export-section--centered{text-align:center}.geoscene-print__panel-container{display:flex;flex:1 0;flex-direction:column;gap:var(--calcite-spacing-sm)}.geoscene-print__exported-files-empty{display:flex;flex-direction:column;align-items:center;padding:var(--calcite-spacing-lg) var(--calcite-spacing-sm);font-size:small}.geoscene-print__export-title{font-weight:700;font-size:var(--calcite-font-size)}`,i="geoscene-print",s={exportSection:`${i}__export-section`,panelContainer:`${i}__panel-container`,exportedFilesEmpty:`${i}__exported-files-empty`,exportedFilesTitle:`${i}__export-title`,exportSectionCentered:`${i}__export-section--centered`},o=class extends n{static{this.properties={saveAsButtonCallback:0,viewModel:0,messages:0,allowedFormatsForSaving:1}}static{this.styles=x}loaded(){this.manager.onLifecycle(()=>[this.viewModel.exportedLinks.on("change",()=>this.requestUpdate())])}render(){let a=this.viewModel.exportedLinks,p={[s.exportSectionCentered]:!a.length};return e`<section class=${t(r(s.exportSection,p))} role=tabpanel><div class=${t(s.panelContainer)}>${a.length===0?e`<div class=${t(s.exportedFilesEmpty)}><calcite-icon icon=file scale=l></calcite-icon><div><p class=${t(s.exportedFilesTitle)}>${this.messages.noExportedFiles}</p><div>${this.messages.exportHint}</div></div></div>`:e`<calcite-list .filterEnabled=${a.length>10} .label=${this.messages.exportedLinksList}>${a.map(d=>e`<geoscene-print-exported-link .exportedLink=${d} .viewModel=${this.viewModel} .messages=${this.messages} .allowedFormatsForSaving=${this.allowedFormatsForSaving} .saveAsButtonCallback=${this.saveAsButtonCallback}></geoscene-print-exported-link>`)}</calcite-list>`}</div></section>`}};c("geoscene-print-exports-panel",o);export{o as PrintExportsPanel};