UNPKG

@arcgis/map-components

Version:
4 lines 945 B
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified. See https://js.arcgis.com/4.33/esri/copyright.txt for details. v4.33.13 */ import{E as a,P as r,U as s,k as i}from"./HX57SHRL.js";export default $arcgis.t(([{watch:o}])=>{var t=class extends r{constructor(){super(...arguments),this._showPrintAreaEnabled=!1}static{this.properties={_showPrintAreaEnabled:16,viewModel:0,messages:0}}static{this.shadowRootOptions=a}loaded(){this.manager.onLifecycle(()=>[o(()=>[this.viewModel.showPrintAreaEnabled],()=>{let{showPrintAreaEnabled:e}=this.viewModel;this._showPrintAreaEnabled=e},{initial:!0})])}render(){return i`<calcite-label layout=inline><calcite-switch .checked=${this._showPrintAreaEnabled} @calciteSwitchChange=${e=>{this.viewModel.showPrintAreaEnabled=!!e.currentTarget.checked}}></calcite-switch>${this.messages.printPreview}</calcite-label>`}};s("arcgis-print-preview-input",t);return t},"core/reactiveUtils")