/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{O as o,U as r,b as a}from"./GRFF5Y4R.js";import"./ALDX5YZO.js";var t=class extends o{static{this.properties={viewModel:0,messages:0,fileName:1,selectExportsTab:0}}loaded(){this.manager.onLifecycle(()=>[])}async _handlePrintMap(){this.viewModel.export(this.fileName||this.messages.untitled),this.selectExportsTab()}render(){let{messages:e}=this,{layout:i,layoutItem:s,format:l}=this.viewModel.templateOptions,n=this.viewModel.state!=="ready"||!(i||s);return a`<div><calcite-button .ariaLabel=${e.exportDescription} .disabled=${n||!(i||s?.id)&&!l} @click=${this._handlePrintMap} scale=l width=full>${e.export}</calcite-button></div>`}};r("arcgis-print-export-button",t);export{t as PrintExportButton};
