@arcgis/map-components 6.0.0-next.14 → 6.0.0-next.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (134) hide show
  1. package/dist/cdn/33B22YZ5.js +2 -0
  2. package/dist/cdn/{NWCS3WJE.js → 35YLXOQ5.js} +1 -1
  3. package/dist/cdn/4XEZYOW7.js +2 -0
  4. package/dist/cdn/{OL5Z5MUQ.js → 54252KWO.js} +1 -1
  5. package/dist/cdn/{IZ3VMFW6.js → 5VXEMMLV.js} +1 -1
  6. package/dist/cdn/{UUBJR2VN.js → AI3ETXGZ.js} +1 -1
  7. package/dist/cdn/{OS3TKP63.js → AQ4GVWNJ.js} +1 -1
  8. package/dist/cdn/AWB7XOHF.js +2 -0
  9. package/dist/cdn/BYYCKI2P.js +2 -0
  10. package/dist/cdn/C2YP473B.js +2 -0
  11. package/dist/cdn/DUKK2PHD.js +2 -0
  12. package/dist/cdn/{I2VQOWJL.js → ECYWLMDD.js} +1 -1
  13. package/dist/cdn/FFVPO4JB.js +2 -0
  14. package/dist/cdn/{OS736MCE.js → FUJYJKDU.js} +1 -1
  15. package/dist/cdn/{SWWJXGPV.js → GFYLYX2V.js} +1 -1
  16. package/dist/cdn/GMEXAEOI.js +2 -0
  17. package/dist/cdn/H7QBBTTP.js +2 -0
  18. package/dist/cdn/{CDCI4EQR.js → HZDWPWBH.js} +1 -1
  19. package/dist/cdn/JB6WQEFJ.js +2 -0
  20. package/dist/cdn/{KJNU4Q25.js → JVC5XNYJ.js} +1 -1
  21. package/dist/cdn/LYYBCY4N.js +2 -0
  22. package/dist/cdn/{TMQVC4YN.js → NMGC3KRM.js} +1 -1
  23. package/dist/cdn/NU75HQA2.js +2 -0
  24. package/dist/cdn/{B2UZB5MB.js → NUZBBPNE.js} +2 -2
  25. package/dist/cdn/{JC24VBLE.js → ODSZ7JZM.js} +1 -1
  26. package/dist/cdn/{VWEJ2XSC.js → P3AEIHWE.js} +1 -1
  27. package/dist/cdn/QCYQNVPL.js +2 -0
  28. package/dist/cdn/{ARHQMHUP.js → SAIBFBPE.js} +1 -1
  29. package/dist/cdn/U6NHJKIM.js +2 -0
  30. package/dist/cdn/VYM3TR3Q.js +2 -0
  31. package/dist/cdn/WC2N2XG6.js +2 -0
  32. package/dist/cdn/ZDLHDQCX.js +2 -0
  33. package/dist/cdn/ZIQRARXE.js +2 -0
  34. package/dist/cdn/{Y56CR5OU.js → ZS5IADYN.js} +1 -1
  35. package/dist/cdn/index.js +1 -1
  36. package/dist/chunks/loader-utils.js +41 -0
  37. package/dist/chunks/resources.js +10 -4
  38. package/dist/chunks/slots.js +3 -3
  39. package/dist/chunks/useArcgisViewReadyError.js +180 -128
  40. package/dist/components/arcgis-editor/customElement.d.ts +9 -17
  41. package/dist/components/arcgis-editor/customElement.js +18 -16
  42. package/dist/components/arcgis-feature-next/customElement.js +21 -14
  43. package/dist/components/arcgis-feature-table/customElement.d.ts +58 -39
  44. package/dist/components/arcgis-features-next/customElement.js +137 -116
  45. package/dist/components/arcgis-fullscreen/customElement.js +4 -4
  46. package/dist/components/arcgis-legend/customElement.d.ts +2 -0
  47. package/dist/components/arcgis-line-of-sight/customElement.d.ts +15 -6
  48. package/dist/components/arcgis-link-chart/customElement.js +24 -24
  49. package/dist/components/arcgis-map/customElement.js +16 -16
  50. package/dist/components/arcgis-scene/customElement.js +21 -21
  51. package/dist/components/arcgis-sketch/customElement.d.ts +1 -3
  52. package/dist/components/arcgis-sketch/customElement.js +146 -178
  53. package/dist/components/arcgis-time-bar/TimeBarViewModel.d.ts +2 -4
  54. package/dist/components/arcgis-time-bar/customElement.js +108 -105
  55. package/dist/components/arcgis-time-bar-date/customElement.js +10 -10
  56. package/dist/components/arcgis-time-bar-extent/customElement.js +9 -9
  57. package/dist/components/arcgis-time-bar-slider/customElement.js +27 -33
  58. package/dist/components/arcgis-track/customElement.d.ts +2 -2
  59. package/dist/components/arcgis-track/types.d.ts +1 -1
  60. package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +4 -3
  61. package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +61 -68
  62. package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +26 -3
  63. package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +53 -50
  64. package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +1 -2
  65. package/dist/docs/api.json +1 -1
  66. package/dist/docs/docs.json +1 -1
  67. package/dist/docs/vscode.html-custom-data.json +1 -1
  68. package/dist/docs/web-types.json +1 -1
  69. package/dist/loader.js +2 -2
  70. package/dist/types/lumina.d.ts +2 -1
  71. package/dist/types/preact.d.ts +2 -1
  72. package/dist/types/react.d.ts +2 -1
  73. package/dist/types/stencil.d.ts +2 -1
  74. package/package.json +7 -7
  75. package/dist/cdn/6RE5RWYP.js +0 -2
  76. package/dist/cdn/AL3PLZEE.js +0 -2
  77. package/dist/cdn/EYM377YG.js +0 -2
  78. package/dist/cdn/FINGRYZY.js +0 -2
  79. package/dist/cdn/GLU2HDV6.js +0 -2
  80. package/dist/cdn/JR3EXG25.js +0 -2
  81. package/dist/cdn/LISDXDCI.js +0 -2
  82. package/dist/cdn/LXLLMRNZ.js +0 -2
  83. package/dist/cdn/OVXGV76V.js +0 -2
  84. package/dist/cdn/PTCHEZNA.js +0 -2
  85. package/dist/cdn/QAZ4W6K3.js +0 -2
  86. package/dist/cdn/QPR3KBLU.js +0 -2
  87. package/dist/cdn/TI6R2CP6.js +0 -2
  88. package/dist/cdn/TUT6GS4A.js +0 -2
  89. package/dist/cdn/UOO6QY7C.js +0 -2
  90. package/dist/cdn/UYWJU5UG.js +0 -2
  91. package/dist/cdn/WADL7TT6.js +0 -2
  92. /package/dist/cdn/{MGDY6SA3.js → 2JLC2JV7.js} +0 -0
  93. /package/dist/cdn/{ITSWOLPG.js → 37Z3E4ZM.js} +0 -0
  94. /package/dist/cdn/{SMCQ5457.js → 53PKFG2U.js} +0 -0
  95. /package/dist/cdn/{YZ23NKH4.js → 5ZLCMYZU.js} +0 -0
  96. /package/dist/cdn/{DXD3FSIB.js → 6MRDTILE.js} +0 -0
  97. /package/dist/cdn/{TTGAGK6Y.js → 72FJMPJ2.js} +0 -0
  98. /package/dist/cdn/{CIVCCENA.js → 7P23WI52.js} +0 -0
  99. /package/dist/cdn/{DU7MQDXJ.js → 7QUHJ4F6.js} +0 -0
  100. /package/dist/cdn/{PLRW457V.js → 7YXE3BUX.js} +0 -0
  101. /package/dist/cdn/{IYTA36WK.js → AE26KT54.js} +0 -0
  102. /package/dist/cdn/{OY2F5AX3.js → C4EAONGF.js} +0 -0
  103. /package/dist/cdn/{7RG4ZQP7.js → CTVCZ2FU.js} +0 -0
  104. /package/dist/cdn/{DVVXBWDN.js → EIQ3BKQI.js} +0 -0
  105. /package/dist/cdn/{J5PYSABF.js → EULM4L53.js} +0 -0
  106. /package/dist/cdn/{VHCJJ5FD.js → EVCKANRW.js} +0 -0
  107. /package/dist/cdn/{4U7C2G4R.js → GXIGMIXV.js} +0 -0
  108. /package/dist/cdn/{UAVE6R7W.js → JZSRPSRH.js} +0 -0
  109. /package/dist/cdn/{FSKKSFCQ.js → KDO2EJA3.js} +0 -0
  110. /package/dist/cdn/{B42Z3IQW.js → LCTJF3NT.js} +0 -0
  111. /package/dist/cdn/{LH3HGDD3.js → LGPNRKDT.js} +0 -0
  112. /package/dist/cdn/{5QBYMSV7.js → LNZRHKHG.js} +0 -0
  113. /package/dist/cdn/{SN3LTQAO.js → MM4N6C4V.js} +0 -0
  114. /package/dist/cdn/{A7G5RNN7.js → MQL4JTYG.js} +0 -0
  115. /package/dist/cdn/{4JRBTFMB.js → NUCXXE6V.js} +0 -0
  116. /package/dist/cdn/{XELSV7WY.js → O2VAKVIY.js} +0 -0
  117. /package/dist/cdn/{DYUSQ3OG.js → OLEIOWZX.js} +0 -0
  118. /package/dist/cdn/{3E6IBNWF.js → ORS7OWLJ.js} +0 -0
  119. /package/dist/cdn/{IHQ2C6NE.js → P3BAHG4Q.js} +0 -0
  120. /package/dist/cdn/{IPLEI5W5.js → QYMZT7OC.js} +0 -0
  121. /package/dist/cdn/{43JS3JXR.js → RENVCO3U.js} +0 -0
  122. /package/dist/cdn/{CJZCG74B.js → RGECACLD.js} +0 -0
  123. /package/dist/cdn/{HI7Y3XH5.js → SYIOPNRF.js} +0 -0
  124. /package/dist/cdn/{F2JEYWUA.js → T62G5MRK.js} +0 -0
  125. /package/dist/cdn/{AS55LGS3.js → TS32SDVT.js} +0 -0
  126. /package/dist/cdn/{W5QAG2HP.js → UCHDAO3V.js} +0 -0
  127. /package/dist/cdn/{HSYCQNEN.js → VNY7TNRC.js} +0 -0
  128. /package/dist/cdn/{KVN6NUH4.js → XJIILB3W.js} +0 -0
  129. /package/dist/cdn/{OHIZP5N4.js → Y4D3Q4G7.js} +0 -0
  130. /package/dist/cdn/{EMFLPMFZ.js → Y7KMV2PI.js} +0 -0
  131. /package/dist/cdn/{IBTIGEEQ.js → YASANB6O.js} +0 -0
  132. /package/dist/cdn/{L5L2SWJG.js → YMN2Q7CW.js} +0 -0
  133. /package/dist/cdn/{ZHP63EHR.js → YN6VG7UO.js} +0 -0
  134. /package/dist/cdn/{T6V5HDYH.js → YRYYWFPY.js} +0 -0
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import{b as Z}from"./JB6WQEFJ.js";import h from"./BYYCKI2P.js";import{a as y}from"./BK2UM27Y.js";import"./FH3WFF5O.js";import{a as f}from"./6J3KSMFG.js";import g from"./F4AJCUZ6.js";import"./WJQUE4DR.js";import e from"./OISNNHIG.js";import{a as Q}from"./7465ANAR.js";import d from"./TWPVYHJG.js";import c from"./KRJCOTGC.js";import b from"./U7WRQCRV.js";import{d as N,h as j}from"./GIBXI44G.js";import"./RQT2PVDJ.js";import a from"./SBYVR52H.js";import"./LXME6MU5.js";import{E as U,F,O as H,P as w,Q as S,R as z,X as P,_ as q,a as K,b as u,e as k,x as W}from"./7IGSTLKW.js";import"./TAVTDQ6S.js";export default $arcgis.t(([{substitute:ne},le,ae,{watch:m,on:re,whenOnce:ce},de,{getOrCreateMapValue:ie,createReactiveMap:he},pe,{property:r,subclass:ge},{ignoreAbortErrors:C},ue,me,,,,v,X,{f:J},Y])=>{var ve=["bottom-end","bottom-start","bottom-left","bottom-right","top-end","top-start","top-left","top-right"],ye=new Set(ve);function ee(i,e){let t=e;for(let o of i.split(".")){if(typeof t!="object"||t===null)return;t=Reflect.get(t,o)}return typeof t=="string"?t:void 0}var Ce=K`.editing-controls-panel{min-inline-size:100px;max-inline-size:400px;-webkit-user-select:none;user-select:none;pointer-events:initial;padding:var(--calcite-space-sm);arcgis-sketch-tooltip-controls+arcgis-snapping-controls{border-block-start:1px solid var(--calcite-color-border-3)}}:host{pointer-events:none}`,be={point:"pin",polyline:"line",polygon:"polygon",rectangle:"rectangle",circle:"circle",multipoint:"pins",mesh:"i3d-building",freehandPolygon:"freehand-area",freehandPolyline:"freehand",text:"text"},fe={selectionTools:{defaultPriority:y.Default,groupKind:"split-button",overflowLabel:"selection"},selectionSet:{defaultPriority:y.High,groupKind:"actions"},createTools:{defaultPriority:y.High,groupKind:"more-button",overflowLabel:"drawing"},undoRedo:{defaultPriority:y.Medium,groupKind:"split-button",overflowLabel:"action"},settings:{defaultPriority:y.Max,groupKind:"more-button",overflowLabel:"action"},geometrySimplification:{defaultPriority:y.Default,groupKind:"actions"}},Te=Object.defineProperty,we=Object.getOwnPropertyDescriptor,a=(i,e,t,o)=>{for(var s=o>1?void 0:o?we(e,t):e,c=i.length-1,p;c>=0;c--)(p=i[c])&&(s=(o?p(e,t,s):p(s))||s);return o&&s&&Te(e,t,s),s},l=class extends pe{constructor(i){super(i),this._effectiveRenderStateCache=new Map,this._effectiveGeometrySimplificationInProgress=!1,this.visibleElements=new ue,this.settingsPopoverOpen=!1,this.availableCreateTools=["point","polyline","freehandPolyline","polygon","freehandPolygon","rectangle","circle"]}initialize(){this.selectionViewModel??=new me({persistSelection:!1}),this.addHandles([m(()=>this.sketchViewModel,(i,e)=>{i!==e&&this._effectiveRenderStateCache.clear()},{sync:!0}),Y({getLoading:()=>this.sketchViewModel?.geometrySimplificationInProgress??!1,setEffectiveLoading:i=>{this._effectiveGeometrySimplificationInProgress=i}}),m(()=>this.view,i=>{this.selectionViewModel.view=i},{initial:!0,sync:!0}),m(()=>this.sketchViewModel?.layer,i=>this.selectionViewModel.sources=i?[i]:[],{initial:!0,sync:!0}),this.selectionViewModel.on("complete",({selection:i})=>{i.length&&this.update(i)}),m(()=>this.selectionViewModel.activeOperation,i=>{i&&(this.sketchViewModel?.cancel(),this._activeCustomToolOptions=void 0)},{sync:!0}),re(()=>this.sketchViewModel,"create",i=>{i.state==="complete"&&this.sketchViewModel?.creationMode!=="continuous"&&(this._activeCustomToolOptions=void 0)}),m(()=>this.visibleElements.settingsMenu,i=>{i||(this.settingsPopoverOpen=!1)},{sync:!0})])}destroy(){this._pendingCommandAbortController?.abort(),this.selectionViewModel.destroy(),this.sketchViewModel=void 0}get _isEffectiveRenderStateFrozen(){let{sketchViewModel:i}=this;return!!(i?.toolTransitionInProgress||i?.geometrySimplificationInProgress)}_getEffectiveValue(i,e){if(!this._isEffectiveRenderStateFrozen||!this._effectiveRenderStateCache.has(i)){let t=e();return this._effectiveRenderStateCache.set(i,t),t}return this._effectiveRenderStateCache.get(i)}get _state(){return this.sketchViewModel?.state??"disabled"}get test(){return{activeCustomToolOptions:this._activeCustomToolOptions,activeSelectionTool:this._activeSelectionTool,selectionViewModel:this.selectionViewModel}}get _activeSelectionTool(){switch(this.selectionViewModel.activeOperation?.toolName){case"lasso":return"lasso-selection";case"rectangle":return"rectangle-selection";default:return}}get _activePluginUniqueIds(){let i=this.sketchViewModel?.activePluginConfigurations.filter(e=>!e.hidden).map(e=>e.uniqueId);return new Set(i??[])}get _createToolActions(){let{sketchViewModel:i}=this;if(!i)return[];let e=i.effectiveAvailablePlugins,t=this.state==="disabled",o=this.visibleElements.createTools,s=this.activeTool,c=this._activeCustomToolOptions,p=c||!i.firstPluginWithSwappableLeaf?this._customToolOptions:[],h=i.rootPlugins,d=p?.map(n=>({active:n===c,disabled:t,icon:n.icon,labelKey:n.label,onClick:n===c?()=>this._cancelActiveOperation():()=>this._activateLegacyDrawTool(n.toolName,n.createOptions,n)}))??[];if(c&&h)return[...this._pluginsToActions(h),...d];if(e?.length&&this.view?.type!=="3d")return[...this._pluginsToActions(e),...d];let g=this.view?.type==="3d";return[...this.availableCreateTools?.filter(n=>g&&n==="multipoint"?!1:n==="mesh"?!0:o[n])?.map(n=>({active:n===s,disabled:t,icon:be[n],labelKey:`draw.${n}`,onClick:n===s?()=>this._cancelActiveOperation():()=>this._activateLegacyDrawTool(n)}))??[],...d]}get _shouldShowBackButton(){let i=this.sketchViewModel?.firstPluginWithSwappableLeaf,e=this.sketchViewModel?.rootPlugins,t=this._activeCustomToolOptions;return!!(this.sketchViewModel?.multiplePluginsActive&&i&&e&&!(e.length<2&&e.includes(i)&&!this.visibleElements.singlePluginBackButton)&&!t)}get _selectionToolActions(){return this._shouldShowBackButton?[{active:!1,disabled:this.state==="disabled",icon:"chevron-left",iconFlipRTL:!0,labelKey:"back",onClick:()=>this._cancelActiveOperation()}]:this._selectionCommands}get _settingsActions(){let i=this._customActions?.get("settings-before"),e=this._customActions?.get("settings-after"),t=this.visibleElements.settingsMenu,o=[];return!i?.length&&!e?.length&&!t||(i&&o.push(...this._customActionsToSketchActions(i)),t&&o.push({icon:"gear",active:this.settingsPopoverOpen,disabled:this.state==="disabled",labelKey:"settings.heading",tooltipKey:"settings.heading",refKey:"settings",onClick:()=>this.toggleSettingsPopover()}),e&&o.push(...this._customActionsToSketchActions(e))),o}get _activeTool(){let i=this.selectionViewModel.activeOperation;if(i)switch(i.toolName){case"lasso":return"lasso-selection";case"rectangle":return"rectangle-selection";case"default":return"custom-selection"}if(!this.sketchViewModel)return;let{availableCreateTools:e}=this,{activeTool:t,activeCreateToolDrawMode:o}=this.sketchViewModel;return t==="polygon"&&o==="freehand"&&e?.includes("freehandPolygon")?"freehandPolygon":t==="polyline"&&o==="freehand"&&e?.includes("freehandPolyline")?"freehandPolyline":t??void 0}get _selectionCommands(){let{state:i,visibleElements:e,_activeSelectionTool:t,_customActions:o}=this,s=this.state==="disabled",c=[];this.sketchViewModel?.updateOnGraphicClick!==!1&&c.push({active:i==="ready"&&this._activeSelectionTool==null,disabled:s,icon:"cursor",labelKey:"selectFeature",onClick:()=>this._activateDefaultSelectionTool()});let p=e.selectionTools;p["rectangle-selection"]&&c.push({active:t==="rectangle-selection",disabled:s,icon:"cursor-marquee",labelKey:"rectangleSelection",onClick:()=>this._activateSelectionTool("rectangle-selection")}),p["lasso-selection"]&&c.push({active:t==="lasso-selection",disabled:s,icon:"lasso-select",labelKey:"lassoSelection",onClick:()=>this._activateSelectionTool("lasso-selection")});let h=o?.get("selection-toolbar");return h&&c.push(...this._customActionsToSketchActions(h)),c}get _selectionSetActions(){let i=this.sketchViewModel?.updateGraphics.length??0;if(!i)return[];let e=this.state==="disabled",t=[],o=this._customActions?.get("before-selection-set"),s=this._customActions?.get("after-selection-set");return this.visibleElements.selectionCountLabel&&t.push({active:!1,appearance:"outline",disabled:e,icon:"selection-x",kind:"brand",labelKey:"deselectCount",labelParameters:{count:i},textEnabled:!0,renderAsAction:!0,onClick:()=>this._cancelSketchOperation()}),o&&t.push(...this._customActionsToSketchActions(o)),this.visibleElements.duplicateButton&&t.push({active:!1,disabled:e,icon:"copy",renderAsAction:!0,labelKey:i>1?"duplicateFeatures":"duplicateFeature",onClick:()=>this._duplicate()}),this.visibleElements.deleteButton&&t.push({active:!1,disabled:e,icon:"trash",kind:"danger",renderAsAction:!0,labelKey:i>1?"deleteFeatures":"deleteFeature",onClick:()=>this._delete()}),s&&t.push(...this._customActionsToSketchActions(s)),t}get _undoRedoActions(){return this.visibleElements.undoRedoMenu?[{active:!1,disabled:this.state==="disabled"||!this.sketchViewModel?.canUndo(),icon:"undo",labelKey:"undo",iconFlipRTL:!0,onClick:()=>this._undo()},{active:!1,disabled:this.state==="disabled"||!this.sketchViewModel?.canRedo(),icon:"redo",labelKey:"redo",iconFlipRTL:!0,onClick:()=>this._redo()}]:[]}get state(){return this._getEffectiveValue("state",()=>this._state)}get activeTool(){return this._getEffectiveValue("activeTool",()=>this._activeTool)}get activePluginIds(){return this._getEffectiveValue("activePluginId",()=>this._activePluginUniqueIds)}get groupedActions(){let i=this._getEffectiveValue("availableCommandGroups",()=>[["selectionTools",this._selectionToolActions],["createTools",this._createToolActions],["undoRedo",this._undoRedoActions],["settings",this._settingsActions],["selectionSet",this._selectionSetActions]].map(([t,o])=>({name:t,commands:o,visible:o.length>0}))),e=this._effectiveGeometrySimplificationInProgress?i.map(t=>({...t,commands:t.commands.map(o=>({...o,disabled:!0}))})):i;return!this.visibleElements.geometrySimplificationActivityIndicator||!this._effectiveGeometrySimplificationInProgress?e:[...e,{name:"geometrySimplification",commands:[{active:!1,appearance:"transparent",disabled:!0,kind:"warning",labelKey:"processing",loading:!0,onClick:()=>{},renderAsAction:!0}],visible:!0}]}async create(i,e){await this._executeWhenReady(async()=>{this.cancelAll();let t=this.sketchViewModel;t&&await C(t.create(i,e))})}async _executeWhenReady(i){this._pendingCommandAbortController?.abort();let e=new AbortController;this._pendingCommandAbortController=e;try{await C((async()=>{this.sketchViewModel?.geometrySimplificationInProgress&&await ce(()=>!this.sketchViewModel?.geometrySimplificationInProgress,e.signal),e.signal.aborted||await i()})())}finally{this._pendingCommandAbortController===e&&(this._pendingCommandAbortController=void 0)}}toggleSettingsPopover(){this.settingsPopoverOpen=!this.settingsPopoverOpen}setCustomTools(i,e){this._customToolOptions=i??void 0;let t=this._activeCustomToolOptions;if(t){let o=this._customToolOptions?.find(s=>s.toolKey===t.toolKey);o?this._activeCustomToolOptions=o:this.cancelAll()}if(e?.length){let o=new Map;for(let s of e)ie(o,s.position,()=>[]).push(s);this._customActions=o}else this._customActions=void 0}cancelAll(){this._pendingCommandAbortController?.abort(),this._cancelSupportingOperations(),this.sketchViewModel?.cancel()}async update(i,e){await this._executeWhenReady(async()=>{let t=this.sketchViewModel;t&&await C(t.update(i,e))})}_activateDefaultSelectionTool(){this._executeWhenReady(()=>{this.cancelAll(),this.view?.focus()})}_cancelActiveOperation(){this._executeWhenReady(()=>this.cancelAll())}_cancelSketchOperation(){this._executeWhenReady(()=>this.sketchViewModel?.cancel())}_cancelSupportingOperations(){this.selectionViewModel.cancel(),this._activeCustomToolOptions=void 0}_activatePlugin(i){this._executeWhenReady(()=>{let e=this._activeCustomToolOptions!=null;this._cancelSupportingOperations();let t=this.sketchViewModel;if(t){if(e){t.cancel(),C(t.create(i));return}t.firstPluginWithSwappableLeaf?(t.replaceLeaf(i),this.view?.focus()):C(t.create(i))}})}_activateLegacyDrawTool(i,e,t){this._executeWhenReady(()=>{this._cancelSupportingOperations();let o=this.sketchViewModel;o&&(this._activeCustomToolOptions=t,C(o.create(i,e)))})}_activateSelectionTool(i){this._executeWhenReady(()=>{if(this._activeSelectionTool===i){this.selectionViewModel.cancel();return}this.cancelAll();let e={createTool:i==="lasso-selection"?"polygon":"rectangle",...i==="lasso-selection"?{mode:"hybrid",toolName:"lasso"}:{toolName:"rectangle"},type:"replace",selectOnComplete:!0};this.selectionViewModel.activate(e)&&this.view?.focus()})}_delete(){this._executeWhenReady(()=>this.sketchViewModel?.delete())}_duplicate(){this._executeWhenReady(()=>{this.sketchViewModel?.duplicate()})}_executeCustomAction(i){this._executeWhenReady(()=>i.onclick?.())}_redo(){this._executeWhenReady(()=>{this.sketchViewModel?.redo()})}_undo(){this._executeWhenReady(()=>{this.sketchViewModel?.undo()})}_customActionsToSketchActions(i){let e=this.state==="disabled";return i.map(t=>({active:t.active??!1,afterCreate:t.afterCreate,afterRemoved:t.afterRemoved,afterUpdate:t.afterUpdate,disabled:e||(t.disabled??!1),icon:t.icon,iconFlipRTL:t.flipRTL,id:t.id,labelKey:t.text,onClick:()=>this._executeCustomAction(t)}))}_pluginsToActions(i){let e=this.activePluginIds,t=this._activeCustomToolOptions,o=this.state==="disabled";return i.map(s=>({active:(e?.has(s.uniqueId)??!1)&&!t,icon:s.icon,disabled:o,labelKey:`digitizers.${s.localizationKey}`,onClick:()=>this._activatePlugin([s])}))}};a([r()],l.prototype,"_isEffectiveRenderStateFrozen",1);a([r()],l.prototype,"_effectiveGeometrySimplificationInProgress",2);a([r()],l.prototype,"_state",1);a([r()],l.prototype,"_customToolOptions",2);a([r()],l.prototype,"_activeCustomToolOptions",2);a([r()],l.prototype,"_customActions",2);a([r()],l.prototype,"selectionViewModel",2);a([r()],l.prototype,"_activeSelectionTool",1);a([r()],l.prototype,"_activePluginUniqueIds",1);a([r()],l.prototype,"_createToolActions",1);a([r()],l.prototype,"_shouldShowBackButton",1);a([r()],l.prototype,"_selectionToolActions",1);a([r()],l.prototype,"_settingsActions",1);a([r()],l.prototype,"_activeTool",1);a([r()],l.prototype,"_selectionCommands",1);a([r()],l.prototype,"_selectionSetActions",1);a([r()],l.prototype,"_undoRedoActions",1);a([r()],l.prototype,"sketchViewModel",2);a([r()],l.prototype,"visibleElements",2);a([r()],l.prototype,"view",2);a([r()],l.prototype,"settingsPopoverOpen",2);a([r()],l.prototype,"availableCreateTools",2);a([r()],l.prototype,"state",1);a([r()],l.prototype,"activeTool",1);a([r()],l.prototype,"activePluginIds",1);a([r()],l.prototype,"groupedActions",1);l=a([ge("components.sketch.SketchComponentViewModel")],l);var O=class extends H{#t;#e=!1;#i;constructor(e){if(super(e),e.type!==U.ELEMENT)throw new Error("nodeHooks() can only be used on elements")}render(e){return k}update(e,[t]){let o=e.element;if(!(o instanceof HTMLElement))throw new TypeError("nodeHooks() can only be used on HTMLElements");let s=this.#e?t.afterUpdate:t.afterCreate;return this.#t=o,this.#e=!0,this.#i=t,queueMicrotask(()=>{o.isConnected&&s?.(o)}),k}disconnected(){let e=this.#t,t=this.#i?.afterRemoved;!e||!t||queueMicrotask(()=>{e.isConnected||J(()=>t(e),{timeout:16})})}},te=F(O),Se=X(i=>new de({...i,cancelUpdateOnClickAway:!0,creationMode:"continuous",textSymbol:new ae({text:"hello world"}),useLegacyCreateTools:!1})),A=class extends z{constructor(){super(),this.#t=new l,this.#o=w(),this.#s=w(),this._defaultGraphicsLayer=null,this._messages=Q(),this.test={componentViewModel:this.#t},this._groupLayoutPriorityOverrides=new Map,this._contextualToolLocation="separate",this._refMap=he(),this.viewModel=Se(this),this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.createGraphic=this.viewModel.createGraphic,this.creationMode=this.viewModel.creationMode,this.defaultCreateOptions=this.viewModel.defaultCreateOptions,this.defaultGraphicsLayerDisabled=!1,this.defaultUpdateOptions=this.viewModel.defaultUpdateOptions,this.geometrySimplificationInProgress=this.viewModel.geometrySimplificationInProgress,this.icon="pencil",this.label=this._messages?.componentLabel,this.labelOptions=this.viewModel.labelOptions,this.layer=this.viewModel.layer,this.layout="horizontal",this.pointSymbol=this.viewModel.pointSymbol,this.polygonSymbol=this.viewModel.polygonSymbol,this.polylineSymbol=this.viewModel.polylineSymbol,this.visualScale="m",this.snappingOptions=this.viewModel.snappingOptions,this.textSymbol=this.viewModel.textSymbol,this.toolbarKind="floating",this.tooltipOptions=this.viewModel.tooltipOptions,this.useViewOptions=this.viewModel.useViewOptions,this.valueOptions=this.viewModel.valueOptions,this.useLegacyCreateTools=this.viewModel.useLegacyCreateTools,this.updateOnGraphicClickDisabled=this.viewModel.updateOnGraphicClick,this.updateGraphics=this.viewModel.updateGraphics,this.arcgisCreate=v(()=>this.viewModel,"create"),this.arcgisDelete=v(()=>this.viewModel,"delete"),this.arcgisDuplicate=v(()=>this.viewModel,"duplicate"),this.arcgisPropertyChange=j()("activeTool","geometrySimplificationInProgress","state"),this.arcgisReady=W(),this.arcgisRedo=v(()=>this.viewModel,"redo"),this.arcgisUndo=v(()=>this.viewModel,"undo"),this.arcgisUpdate=v(()=>this.viewModel,"update"),N(["slot"],()=>{this.requestUpdate()}),this.manager.onLifecycle(()=>[m(()=>this.el.view?.map,(e,t)=>{let o=this._defaultGraphicsLayer;o&&(t?.allLayers.includes(o)&&t.remove(o),o&&!e?.allLayers.includes(o)&&e?.add(o))}),m(()=>this.el.view,e=>{this.viewModel.view=e,this.#t.view=e??void 0},{initial:!0}),m(()=>this.viewModel,e=>{this.#t.sketchViewModel=e,this.viewModel.pluginManager.sketch=this},{initial:!0}),m(()=>this.#t.state,(e,t)=>{this.requestUpdate("state",t)},{initial:!0}),m(()=>this.#t.activeTool,()=>this.arcgisPropertyChange.emit({name:"activeTool"}),{sync:!0})]),this.manager.onDestroy(()=>{this._defaultGraphicsLayer&&this.el.view?.map?.allLayers.includes(this._defaultGraphicsLayer)&&this.el.view?.map?.remove(this._defaultGraphicsLayer),this._defaultGraphicsLayer?.destroy(),this._defaultGraphicsLayer=null,this.#t.destroy()})}static{this.properties={_groupLayoutPriorityOverrides:16,_contextualToolLocation:16,_refMap:16,viewModel:0,view:0,activeTool:32,autoDestroyDisabled:5,visibleElements:0,availableCreateTools:0,createGraphic:32,creationMode:1,defaultCreateOptions:0,defaultGraphicsLayerDisabled:5,defaultUpdateOptions:0,geometrySimplificationInProgress:36,hideCreateToolsCircle:5,hideCreateToolsMultipoint:5,hideCreateToolsPoint:5,hideCreateToolsPolygon:5,hideCreateToolsPolyline:5,hideCreateToolsRectangle:5,hideDuplicateButton:5,hideDeleteButton:5,hideSelectionCountLabel:5,hideLabelsToggle:5,hideSelectionToolsLassoSelection:5,hideSelectionToolsRectangleSelection:5,hideSettingsMenu:5,hideSinglePluginBackButton:5,hideSnappingControls:5,hideSnappingControlsElementsEnabledToggle:5,hideSnappingControlsElementsFeatureEnabledToggle:5,hideSnappingControlsElementsLayerList:5,hideSnappingControlsElementsSelfEnabledToggle:5,hideSnappingControlsElementsGridEnabledToggle:5,hideSnappingControlsElementsGridControls:5,hideSnappingControlsElementsGridControlsElementsColorSelection:5,hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle:5,hideSnappingControlsElementsGridControlsElementsLineIntervalInput:5,hideSnappingControlsElementsGridControlsElementsNumericInputs:5,hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning:5,hideSnappingControlsElementsGridControlsElementsPlacementButtons:5,hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle:5,hideTooltipsToggle:5,hideUndoRedoMenu:5,icon:1,label:1,labelOptions:0,layer:0,layout:1,pointSymbol:0,polygonSymbol:0,polylineSymbol:0,referenceElement:1,relativePosition:1,scale:1,visualScale:1,showSnappingControlsElementsHeader:5,showCreateToolsFreehandPolygon:5,showCreateToolsFreehandPolyline:5,showCreateToolsText:5,hideGeometrySimplificationActivityIndicator:5,snappingOptions:0,state:32,textSymbol:0,toolbarKind:1,tooltipOptions:0,useViewOptions:5,valueOptions:0,useLegacyCreateTools:5,updateOnGraphicClickDisabled:5,cancelUpdateOnClickAwayDisabled:5,updateGraphics:32}}static{this.styles=Ce}#t;get#e(){return this.#t.visibleElements}#i;#o;#s;get activeTool(){return this.#t.activeTool}get visibleElements(){return this.#t.visibleElements}set visibleElements(e){this.#t.visibleElements=e}get availableCreateTools(){return this.#t.availableCreateTools}set availableCreateTools(e){this.#t.availableCreateTools=e}get hideCreateToolsCircle(){return!this.#e.createTools.circle}set hideCreateToolsCircle(e){this.#e.createTools.circle=!e}get hideCreateToolsMultipoint(){return!this.#e.createTools.multipoint}set hideCreateToolsMultipoint(e){this.#e.createTools.multipoint=!e}get hideCreateToolsPoint(){return!this.#e.createTools.point}set hideCreateToolsPoint(e){this.#e.createTools.point=!e}get hideCreateToolsPolygon(){return!this.#e.createTools.polygon}set hideCreateToolsPolygon(e){this.#e.createTools.polygon=!e}get hideCreateToolsPolyline(){return!this.#e.createTools.polyline}set hideCreateToolsPolyline(e){this.#e.createTools.polyline=!e}get hideCreateToolsRectangle(){return!this.#e.createTools.rectangle}set hideCreateToolsRectangle(e){this.#e.createTools.rectangle=!e}get hideDuplicateButton(){return!this.#e.duplicateButton}set hideDuplicateButton(e){this.#e.duplicateButton=!e}get hideDeleteButton(){return!this.#e.deleteButton}set hideDeleteButton(e){this.#e.deleteButton=!e}get hideSelectionCountLabel(){return!this.#e.selectionCountLabel}set hideSelectionCountLabel(e){this.#e.selectionCountLabel=!e}get hideLabelsToggle(){return!this.#e.labelsToggle}set hideLabelsToggle(e){this.#e.labelsToggle=!e}get hideSelectionToolsLassoSelection(){return!this.#e.selectionTools["lasso-selection"]}set hideSelectionToolsLassoSelection(e){this.#e.selectionTools["lasso-selection"]=!e}get hideSelectionToolsRectangleSelection(){return!this.#e.selectionTools["rectangle-selection"]}set hideSelectionToolsRectangleSelection(e){this.#e.selectionTools["rectangle-selection"]=!e}get hideSettingsMenu(){return!this.#e.settingsMenu}set hideSettingsMenu(e){this.#e.settingsMenu=!e}get hideSinglePluginBackButton(){return!this.#e.singlePluginBackButton}set hideSinglePluginBackButton(e){this.#e.singlePluginBackButton=!e}get hideSnappingControls(){return!this.#e.snappingControls}set hideSnappingControls(e){this.#e.snappingControls=!e}get hideSnappingControlsElementsEnabledToggle(){return!this.#e.snappingControlsElements.enabledToggle}set hideSnappingControlsElementsEnabledToggle(e){this.#e.snappingControlsElements.enabledToggle=!e}get hideSnappingControlsElementsFeatureEnabledToggle(){return!this.#e.snappingControlsElements.featureEnabledToggle}set hideSnappingControlsElementsFeatureEnabledToggle(e){this.#e.snappingControlsElements.featureEnabledToggle=!e}get hideSnappingControlsElementsLayerList(){return!this.#e.snappingControlsElements.layerList}set hideSnappingControlsElementsLayerList(e){this.#e.snappingControlsElements.layerList=!e}get hideSnappingControlsElementsSelfEnabledToggle(){return!this.#e.snappingControlsElements.selfEnabledToggle}set hideSnappingControlsElementsSelfEnabledToggle(e){this.#e.snappingControlsElements.selfEnabledToggle=!e}get hideSnappingControlsElementsGridEnabledToggle(){return!this.#e.snappingControlsElements.gridEnabledToggle}set hideSnappingControlsElementsGridEnabledToggle(e){this.#e.snappingControlsElements.gridEnabledToggle=!e}get hideSnappingControlsElementsGridControls(){return!this.#e.snappingControlsElements.gridControls}set hideSnappingControlsElementsGridControls(e){this.#e.snappingControlsElements.gridControls=!e}get hideSnappingControlsElementsGridControlsElementsColorSelection(){return!this.#e.snappingControlsElements.gridControlsElements.colorSelection}set hideSnappingControlsElementsGridControlsElementsColorSelection(e){this.#e.snappingControlsElements.gridControlsElements.colorSelection=!e}get hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle(){return!this.#e.snappingControlsElements.gridControlsElements.dynamicScaleToggle}set hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle(e){this.#e.snappingControlsElements.gridControlsElements.dynamicScaleToggle=!e}get hideSnappingControlsElementsGridControlsElementsLineIntervalInput(){return!this.#e.snappingControlsElements.gridControlsElements.lineIntervalInput}set hideSnappingControlsElementsGridControlsElementsLineIntervalInput(e){this.#e.snappingControlsElements.gridControlsElements.lineIntervalInput=!e}get hideSnappingControlsElementsGridControlsElementsNumericInputs(){return!this.#e.snappingControlsElements.gridControlsElements.numericInputs}set hideSnappingControlsElementsGridControlsElementsNumericInputs(e){this.#e.snappingControlsElements.gridControlsElements.numericInputs=!e}get hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning(){return!this.#e.snappingControlsElements.gridControlsElements.outOfScaleWarning}set hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning(e){this.#e.snappingControlsElements.gridControlsElements.outOfScaleWarning=!e}get hideSnappingControlsElementsGridControlsElementsPlacementButtons(){return!this.#e.snappingControlsElements.gridControlsElements.placementButtons}set hideSnappingControlsElementsGridControlsElementsPlacementButtons(e){this.#e.snappingControlsElements.gridControlsElements.placementButtons=!e}get hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle(){return!this.#e.snappingControlsElements.gridControlsElements.rotateWithMapToggle}set hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle(e){this.#e.snappingControlsElements.gridControlsElements.rotateWithMapToggle=!e}get hideTooltipsToggle(){return!this.#e.tooltipsToggle}set hideTooltipsToggle(e){this.#e.tooltipsToggle=!e}get hideUndoRedoMenu(){return!this.#e.undoRedoMenu}set hideUndoRedoMenu(e){this.#e.undoRedoMenu=!e}get relativePosition(){let e=this.el.slot;return this.#i??(ye.has(e)?e:Z.topRight)}set relativePosition(e){this.#i=e}get scale(){return this.visualScale}set scale(e){this.visualScale=e}get showSnappingControlsElementsHeader(){return this.#e.snappingControlsElements.header}set showSnappingControlsElementsHeader(e){this.#e.snappingControlsElements.header=e}get showCreateToolsFreehandPolygon(){return this.#e.createTools.freehandPolygon}set showCreateToolsFreehandPolygon(e){this.#e.createTools.freehandPolygon=e}get showCreateToolsFreehandPolyline(){return this.#e.createTools.freehandPolyline}set showCreateToolsFreehandPolyline(e){this.#e.createTools.freehandPolyline=e}get showCreateToolsText(){return this.#e.createTools.text}set showCreateToolsText(e){this.#e.createTools.text=e}get hideGeometrySimplificationActivityIndicator(){return!this.#e.geometrySimplificationActivityIndicator}set hideGeometrySimplificationActivityIndicator(e){this.#e.geometrySimplificationActivityIndicator=!e}get state(){return this.#t.state}get cancelUpdateOnClickAwayDisabled(){return!this.viewModel.cancelUpdateOnClickAway}set cancelUpdateOnClickAwayDisabled(e){this.viewModel.cancelUpdateOnClickAway=!e}async cancel(){this.#t.cancelAll()}async complete(){this.viewModel.complete()}async create(e,t){await this.#t.create(e,t)}async delete(){this.viewModel.delete()}async destroy(){await this.manager.destroy()}async dismissFloatingElements(){this.#t.settingsPopoverOpen=!1}async duplicate(){this.viewModel.duplicate()}async redo(){this.viewModel.redo()}async setContextualToolLocation(e){this._contextualToolLocation=e}async setCustomTools(e,t){this.#t.setCustomTools(e,t)}async setGroupCollapsePriorities(e){this._groupLayoutPriorityOverrides=e||new Map}async triggerUpdate(e,t){await this.#t.update(e,t)}async undo(){this.#t.sketchViewModel?.undo()}connectedCallback(){super.connectedCallback(),this.defaultGraphicsLayerDisabled||(this._defaultGraphicsLayer?.destroyed&&(this._defaultGraphicsLayer=null),this._defaultGraphicsLayer??=new le({title:"Sketch Layer"}),this.layer=this._defaultGraphicsLayer,this.view?.map?.add(this.layer),this.viewModel.layer=this._defaultGraphicsLayer)}disconnectedCallback(){this._defaultGraphicsLayer&&this.view?.map?.allLayers.includes(this._defaultGraphicsLayer)&&this.view?.map?.remove(this._defaultGraphicsLayer),super.disconnectedCallback()}render(){let e=this._refMap.get("settings")?.value?.actionElement,t=this.#t.groupedActions,{visualScale:o,layout:s,toolbarKind:c,relativePosition:p,_contextualToolLocation:h}=this,d=t.find(({name:n})=>n==="selectionSet"),g=t.filter(({name:n})=>n!=="selectionSet");return u`<div class="toolbar-container"><arcgis-toolbar-stack .layout=${s} .toolbarKind=${c} .relativePosition=${p} .scale=${o} tooltip-appearance=calcite><arcgis-toolbar ${S(this.#o)}>${f({hidden:!d?.visible||h!=="inline",children:this._renderActionGroup(d)})}${g.map(n=>this._renderActionGroup(n))}${f({hidden:!d?.visible||h!=="inline-end",children:this._renderActionGroup(d)})}</arcgis-toolbar>${f({hidden:!d?.visible||h!=="separate",children:u`<arcgis-toolbar>${this._renderActionGroup(d)}</arcgis-toolbar>`})}</arcgis-toolbar-stack></div>${f({hidden:this.hideSettingsMenu,children:u`<arcgis-view-popover .open=${this.#t.settingsPopoverOpen} closable .heading=${this._messages.settings?.heading} .label=${this._messages.settings?.heading} .anchorElement=${e} .visualScale=${o} .actionBarElement=${this.#o.value?.barElement} @arcgisPropertyChange=${n=>this.#t.settingsPopoverOpen=n.target.open??!1} .view=${this.view??void 0}>${this._renderSettings()}</arcgis-view-popover>`})}`}_renderSettings(){let{autoDestroyDisabled:e,hideLabelsToggle:t,hideSnappingControls:o,hideTooltipsToggle:s,showSnappingControlsElementsHeader:c,useViewOptions:p,view:h,viewModel:d}=this;return u`<div class="editing-controls-panel"><arcgis-sketch-tooltip-controls .hideLabelsToggle=${t} .hideTooltipsToggle=${p||s} .directionMode=${d.valueOptions.directionMode} .labelsEnabled=${d.labelOptions.enabled} .tooltipsEnabled=${d.tooltipOptions.enabled} @arcgisPropertyChange=${g=>{g.stopPropagation();let{labelsEnabled:n,tooltipsEnabled:T,directionMode:E}=g.currentTarget,b=this.viewModel;switch(g.detail.name){case"labelsEnabled":b.labelOptions.enabled=n;break;case"directionMode":b.valueOptions.directionMode=E;break;case"tooltipsEnabled":b.tooltipOptions.enabled=T;break}}}></arcgis-sketch-tooltip-controls>${!p&&!o?u`<arcgis-snapping-controls .autoDestroyDisabled=${e} .view=${h} .visibleElements=${this.#e.snappingControlsElements} .snappingOptions=${d.snappingOptions} .showHeader=${c} @arcgisPropertyChange=${g=>g.stopPropagation()}></arcgis-snapping-controls>`:void 0}</div>`}_renderActionGroup({visible:e,commands:t,name:o}){if(!e||!t.length)return;let{defaultPriority:s,groupKind:c,overflowLabel:p}=fe[o],h=(o==="geometrySimplification"?void 0:this._groupLayoutPriorityOverrides.get(o))??s,d=t.map(n=>this._renderCommand(n)),g=ee(`more.${p}`,this._messages);switch(c){case"more-button":return u`<arcgis-toolbar-group .priority=${h}><arcgis-toolbar-more-button .overflowActionLabel=${g} .priority=${h}>${d}</arcgis-toolbar-more-button></arcgis-toolbar-group>`;case"split-button":return u`<arcgis-toolbar-group .priority=${h}><arcgis-toolbar-split-button .overflowActionLabel=${g} .priority=${h}>${d}</arcgis-toolbar-split-button></arcgis-toolbar-group>`;case"actions":return u`<arcgis-toolbar-group .priority=${h}>${d}</arcgis-toolbar-group>`}}_renderCommand({active:e,afterCreate:t,afterRemoved:o,afterUpdate:s,appearance:c,icon:p,disabled:h,id:d,kind:g,labelKey:n,labelParameters:T,loading:E,tooltipKey:b,iconFlipRTL:L,onClick:G,refKey:$,textEnabled:R,renderAsAction:oe}){let{_messages:V,_refMap:se,layout:x}=this,_=ee(n,V),M=_===void 0?n:T?ne(_,T):_,I=V?.[b]??M,D=$?ie(se,$,w):this.#s,B={afterCreate:t,afterRemoved:o,afterUpdate:s};return oe?u`<arcgis-toolbar-action .active=${e} .appearance=${c} .disabled=${h} .icon=${p} .iconFlipRtl=${L} id=${d??P} .kind=${g} .loading=${E} .labelText=${x==="horizontal"?M:""} .textEnabled=${R} .tooltipText=${x==="horizontal"&&R?"":I} @arcgisToolbarItemSelected=${G} ${te(B)} ${S(D)}></arcgis-toolbar-action>`:u`<arcgis-toolbar-item .active=${e} .disabled=${h} .icon=${p} id=${d??P} .iconFlipRtl=${L} .labelText=${M} .tooltipText=${I} @arcgisItemSelected=${G} ${te(B)} ${S(D)}></arcgis-toolbar-item>`}};q("arcgis-sketch",A);return A},"intl","layers/GraphicsLayer","symbols/TextSymbol","core/reactiveUtils","widgets/Sketch/SketchViewModel","applications/Components/featureUtils","core/Accessor","core/accessorSupport/decorators","core/promiseUtils","widgets/Sketch/VisibleElements","widgets/support/SelectionToolbar/SelectionToolbarViewModel",a,b,c,d,e,g,h)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import f from"./3VB6M2GX.js";import{c as et}from"./Y6WTYXVP.js";import{a as K,b as Q,k as tt}from"./IM6IDWYR.js";import e from"./F4AJCUZ6.js";import"./WJQUE4DR.js";import d from"./OISNNHIG.js";import{a as G}from"./7465ANAR.js";import c from"./KRJCOTGC.js";import b from"./U7WRQCRV.js";import{f as L,h as H}from"./GIBXI44G.js";import"./RQT2PVDJ.js";import a from"./SBYVR52H.js";import"./LXME6MU5.js";import{P as q,Q as M,R as B,_ as V,a as I,b as p,f as y,p as W,x as j}from"./7IGSTLKW.js";import"./TAVTDQ6S.js";export default $arcgis.t(([pt,f,dt,vt,{convertDateFormatToIntlOptions:E},gt,{getTimeSliderSettingsFromWebDocument:ft},{property:l,subclass:yt},{watch:g,whenOnce:lt},,,,J,{c:U,e:X,h:Y},{a:it,b:st,c:D,d:k,e:at,f:nt,g:ot,h:P,i:rt}])=>{var ct=new WeakMap,mt=new WeakMap;function wt(t){let{locale:e,formatOptions:a}=t,o=_t(a),c=new Intl.DateTimeFormat(e,o);return ct.set(t,c),c}function xt(t){let{locale:e,formatOptions:a}=t,o=new Intl.NumberFormat(e,a);return mt.set(t,o),o}function bt(t){return ct.get(t)??wt(t)}function Et(t){return mt.get(t)??xt(t)}function _t(t){return t.timeZone?{...t,timeZone:tt(t.timeZone)}:t}var i=(t,e)=>({tick:t,tickFormat:e}),s={sf:{second:"numeric",fractionalSecondDigits:3},s:{second:"numeric"},ms:{minute:"numeric",second:"numeric"},mi:{minute:"numeric"},hm:{hour:"numeric",minute:"numeric"},dm:{day:"numeric",month:"short"},m:{month:"short"},my:{month:"short",year:"numeric"},y:{year:"numeric"}},Tt=[i({value:10,unit:"milliseconds"},s.sf),i({value:20,unit:"milliseconds"},s.sf),i({value:50,unit:"milliseconds"},s.sf),i({value:100,unit:"milliseconds"},s.sf),i({value:200,unit:"milliseconds"},s.sf),i({value:500,unit:"milliseconds"},s.sf),i({value:1,unit:"seconds"},s.s),i({value:2,unit:"seconds"},s.s),i({value:5,unit:"seconds"},s.s),i({value:10,unit:"seconds"},s.s),i({value:20,unit:"seconds"},s.ms),i({value:30,unit:"seconds"},s.ms),i({value:1,unit:"minutes"},s.mi),i({value:2,unit:"minutes"},s.mi),i({value:5,unit:"minutes"},s.mi),i({value:10,unit:"minutes"},s.mi),i({value:30,unit:"minutes"},s.hm),i({value:1,unit:"hours"},s.hm),i({value:2,unit:"hours"},s.hm),i({value:4,unit:"hours"},s.hm),i({value:8,unit:"hours"},s.hm),i({value:1,unit:"days"},s.dm),i({value:1,unit:"days"},s.dm),i({value:2,unit:"days"},s.dm),i({value:4,unit:"days"},s.dm),i({value:10,unit:"days"},s.dm),i({value:15,unit:"days"},s.dm),i({value:20,unit:"days"},s.dm),i({value:1,unit:"months"},s.m),i({value:3,unit:"months"},s.m),i({value:6,unit:"months"},s.my),i({value:1,unit:"years"},s.y),i({value:2,unit:"years"},s.y),i({value:4,unit:"years"},s.y),i({value:10,unit:"years"},s.y),i({value:20,unit:"years"},s.y),i({value:50,unit:"years"},s.y),i({value:100,unit:"years"},s.y),i({value:200,unit:"years"},s.y),i({value:500,unit:"years"},s.y),i({value:10,unit:"centuries"},s.y),i({value:20,unit:"centuries"},s.y),i({value:50,unit:"centuries"},s.y),i({value:100,unit:"centuries"},s.y),i({value:200,unit:"centuries"},s.y),i({value:500,unit:"centuries"},s.y),i({value:1e3,unit:"centuries"},s.y),i({value:2e3,unit:"centuries"},s.y),i({value:5e3,unit:"centuries"},s.y),i({value:1e4,unit:"centuries"},s.y),i({value:2e4,unit:"centuries"},s.y)];function St(t){return Tt.map(({tick:e,tickFormat:a})=>{let o=new gt(e),c=o.toMilliseconds(),m={...a,timeZone:t};return{duration:c,format:m,timeInterval:o}})}var $t=Object.defineProperty,Mt=Object.getOwnPropertyDescriptor,ht=t=>{throw TypeError(t)},r=(t,e,a,o)=>{for(var c=o>1?void 0:o?Mt(e,a):e,m=t.length-1,d;m>=0;m--)(d=t[m])&&(c=(o?d(e,a,c):d(c))||c);return o&&c&&$t(e,a,c),c},N=(t,e,a)=>e.has(t)||ht("Cannot "+a),_=(t,e,a)=>(N(t,e,"read from private field"),a?a.call(t):e.get(t)),Z=(t,e,a)=>e.has(t)?ht("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,a),Dt=(t,e,a,o)=>(N(t,e,"write to private field"),e.set(t,a),a),u=(t,e,a)=>(N(t,e,"access private method"),a),w,T,h,F,O,A,R,x,S,C,n=class extends pt{constructor(){super(...arguments),Z(this,h),Z(this,w,new AbortController),Z(this,T,!1),this.disabled=!1,this.format="date",this.loadPersistedSettingsDisabled=!1,this.loop=!1,this.mode="time-window",this.reverseAnimation=!1,this.savePersistedSettingsDisabled=!1,this.stops=it}get _adjustedTickFormat(){let{era:t,timeZone:e}=this;return{...this.tickFormat?.format,era:this.tickFormat?.format.year?t:void 0,timeZone:e}}get _dateFormat(){let{era:t,timeZone:e}=this;return{...E("short-date"),era:t,timeZone:e}}get _dateTimeFormat(){let{era:t,timeZone:e}=this;return{...E("short-date"),...E("long-time"),era:t,timeZone:e}}get _thumbPositions(){if(!this.timeExtent||this.timeExtent.isAllTime||this.timeExtent.isEmpty)return null;let{start:t,end:e}=this.timeExtent;switch(this.mode){case"cumulative-from-end":case"instant":return t?[t.getTime()]:null;case"cumulative-from-start":return e?[e.getTime()]:null;case"time-window":return t&&e?[t.getTime(),e.getTime()]:null}}get _thumbStopIndices(){let{_thumbPositions:t,effectiveStopsEpoch:e}=this;return!t||!e?null:t.map(a=>{let o=e.indexOf(a);if(o!==-1)return o;let c=e.reduce((m,d)=>Math.abs(d-a)<Math.abs(m-a)?d:m);return e.indexOf(c)})}get _timeFormat(){let{timeZone:t}=this;return{...E("long-time"),timeZone:t}}get canPrevious(){return this._thumbStopIndices?.map(t=>--t).every(t=>u(this,h,A).call(this,t))??!1}get canNext(){return this._thumbStopIndices?.map(t=>++t).every(t=>u(this,h,A).call(this,t))??!1}get effectiveStops(){let{fullTimeExtent:t,stops:e}=this;if(!e)return;if(k(e)){let{dates:o}=e;if(!o?.length)return;let c=o.sort(($,b)=>$.getTime()-b.getTime());if(!t?.start||!t?.end)return c;let{start:m,end:d}=t,v=m.getTime(),ut=d.getTime();return c.filter($=>{let b=$.getTime();return b>=v&&b<=ut})}let a=e.timeExtent??t;if(a)return D(e)?nt(a,e.count):ot(a,e.interval)}get effectiveStopsEpoch(){return this.effectiveStops?.map(t=>t.getTime())}get era(){return(this.fullTimeExtent?.start?.getFullYear()??0)<0?"short":void 0}get interactive(){return!(this.disabled||this.state==="disabled"||this.timeZone===Q)}get isOutOfRange(){let{timeExtent:t,fullTimeExtent:e}=this,{start:a,end:o}=e??{};if(!a||!o||!t||t.isAllTime||t.isEmpty)return!0;let{start:c,end:m}=t??{},d=c!=null&&(c<a||c>o),v=m!=null&&(m>o||m<a);return d||v}set playRate(t){t<=0||t>1e3*60*60||(this.state==="playing"&&u(this,h,R).call(this),this._set("playRate",t))}get state(){return this.fullTimeExtent?this._animationController?"playing":"ready":"disabled"}get tickFormatter(){return t=>this._formatDate(t,this._adjustedTickFormat)}get tickFormats(){return St(this.timeZone)}get tickValues(){let{fullTimeExtent:t,tickFormat:e,timeZone:a}=this;if(!t||!e)return[];let{start:o,end:c}=t;return!o||!c?[]:rt(o,c,e.timeInterval,a).map(m=>m.getTime())}get timeZone(){return this._userTimeZone??this.viewTimeZone??K}set timeZone(t){this._userTimeZone=t??void 0}get viewTimeZone(){return this.view?.timeZone}destroy(){_(this,w).abort(),this.view?.unregisterComponent(this),u(this,h,S).call(this)}formatDate(t){return this._formatDate(t,this._dateFormat)}formatDateTime(t){return this._formatDate(t,this._dateTimeFormat)}formatNumber(t,e){return this._formatNumber(t,e)}formatTime(t){return this._formatDate(t,this._timeFormat)}async initialize(){this.addHandles([g(()=>this.effectiveStops,t=>{t&&(this.timeExtent??=P(t,this.mode))},{initial:!0}),g(()=>this.timeExtent,t=>{!this.view||(!t||t.isAllTime)&&(!this.view.timeExtent||this.view.timeExtent.isAllTime)||this.view.timeExtent&&t?.equals(this.view.timeExtent)||(this.view.timeExtent=t)},{initial:!0}),g(()=>this.view,t=>{t?.timeExtent&&(this.timeExtent=t.timeExtent)}),g(()=>this.view,(t,e)=>{e?.unregisterComponent(this),t?.registerComponent(this)},{initial:!0,sync:!0}),g(()=>this.view?.timeExtent,t=>{if(this.view){if(!_(this,T)){Dt(this,T,!0);return}(!t||t.isAllTime)&&(!this.timeExtent||this.timeExtent.isAllTime)||t&&this.timeExtent&&t.equals(this.timeExtent)||(this.timeExtent=t??void 0)}}),g(()=>this.mode,t=>{if(!(!this.timeExtent||this.timeExtent.isAllTime||this.timeExtent.isEmpty||!this.fullTimeExtent?.start||!this.fullTimeExtent.end))switch(t){case"time-window":this.timeExtent=new f({start:this.timeExtent.start??this.timeExtent.end,end:this.timeExtent.end??this.timeExtent.start});break;case"cumulative-from-start":this.timeExtent=new f({start:null,end:this.timeExtent.end??this.timeExtent.start});break;case"cumulative-from-end":this.timeExtent=new f({start:this.timeExtent.start??this.timeExtent.end,end:null});break;case"instant":this.timeExtent=new f({start:this.timeExtent.start??this.timeExtent.end,end:this.timeExtent.start??this.timeExtent.end});break}})]),await X((async()=>{if(await lt(()=>this.view?.ready,{signal:_(this,w).signal}),this.loadPersistedSettingsDisabled)return;let t=await ft(this.view?.map,_(this,w).signal);t&&(this.fullTimeExtent=t.fullTimeExtent??void 0,this.loop=t.loop,this.mode=t.mode,this.playRate=t.playRate,this.stops=t.stops??void 0,this.timeExtent=t.timeExtent??void 0)})())}next(){u(this,h,x).call(this,{forward:!0,allowRestart:!1})}play(){u(this,h,R).call(this)}previous(){u(this,h,x).call(this,{forward:!1,allowRestart:!1})}stop(){u(this,h,S).call(this)}updateWebDocument(t){if(this.savePersistedSettingsDisabled)return;let e=new dt({currentTimeExtent:this.timeExtent,fullTimeExtent:this.fullTimeExtent,loop:this.loop,numStops:D(this.stops)?this.stops.count:null,numThumbs:this.mode==="time-window"?2:1,stopDelay:this.playRate,stopInterval:at(this.stops)?this.stops.interval:null,stops:k(this.stops)?this.stops.dates:null});t.widgets??=new vt,t.widgets.timeSlider=e}_formatDate(t,e){return bt({locale:this.locale,formatOptions:e}).format(t)}_formatNumber(t,e){return Et({locale:this.locale,formatOptions:e}).format(t)}};w=new WeakMap;T=new WeakMap;h=new WeakSet;F=async function(){try{let{view:t}=this,e=this._animationController?.signal;await Promise.all([Y(this.playRate,e),t&&lt(()=>!t.updating,e)])}catch(t){U(t)||W("error","arcgis-slider-time","animation error",{detail:{error:t}}),this._animationController=void 0;return}u(this,h,x).call(this,{forward:!this.reverseAnimation,allowRestart:!1}),this._animationController&&u(this,h,F).call(this)};O=function(t){return t?this.canNext:this.canPrevious};A=function(t){return t>=0&&t<(this.effectiveStopsEpoch?.length??0)};R=function(){u(this,h,S).call(this),this._animationController=new AbortController,u(this,h,x).call(this,{forward:!this.reverseAnimation,allowRestart:!0}),u(this,h,F).call(this)};x=function({forward:t,allowRestart:e}){let{_thumbStopIndices:a,effectiveStopsEpoch:o}=this;if(!(!a||!o))if(u(this,h,O).call(this,t)){let c=a.map(m=>m+(t?1:-1)).map(m=>o[m]);this.timeExtent=u(this,h,C).call(this,c),!this.loop&&!u(this,h,O).call(this,t)&&this.stop()}else if(this.loop||e){let c=Math.min(...a),m=Math.max(...a),d=(t?a.map(v=>v-c):a.map(v=>v+(o.length-1-m))).map(v=>o[v]);this.timeExtent=u(this,h,C).call(this,d)}else this.stop()};S=function(){this._animationController?.abort(),this._animationController=void 0};C=function(t){if(!t)return;let e=[...t].sort((a,o)=>a-o).map(a=>new Date(a));return P(e,this.mode)};r([l()],n.prototype,"_adjustedTickFormat",1);r([l()],n.prototype,"_animationController",2);r([l()],n.prototype,"_dateFormat",1);r([l()],n.prototype,"_dateTimeFormat",1);r([l()],n.prototype,"_thumbPositions",1);r([l()],n.prototype,"_thumbStopIndices",1);r([l()],n.prototype,"_timeFormat",1);r([l()],n.prototype,"_userTimeZone",2);r([l()],n.prototype,"canPrevious",1);r([l()],n.prototype,"canNext",1);r([l()],n.prototype,"disabled",2);r([l()],n.prototype,"effectiveStops",1);r([l()],n.prototype,"effectiveStopsEpoch",1);r([l()],n.prototype,"era",1);r([l()],n.prototype,"format",2);r([l({type:f})],n.prototype,"fullTimeExtent",2);r([l()],n.prototype,"interactive",1);r([l()],n.prototype,"isOutOfRange",1);r([l()],n.prototype,"loadPersistedSettingsDisabled",2);r([l()],n.prototype,"locale",2);r([l()],n.prototype,"loop",2);r([l()],n.prototype,"mode",2);r([l({value:1e3})],n.prototype,"playRate",1);r([l()],n.prototype,"reverseAnimation",2);r([l()],n.prototype,"savePersistedSettingsDisabled",2);r([l()],n.prototype,"state",1);r([l({cast:st})],n.prototype,"stops",2);r([l()],n.prototype,"tickFormat",2);r([l()],n.prototype,"tickFormatter",1);r([l()],n.prototype,"tickFormats",1);r([l()],n.prototype,"tickValues",1);r([l({type:f})],n.prototype,"timeExtent",2);r([l()],n.prototype,"timeZone",1);r([l()],n.prototype,"view",2);r([l()],n.prototype,"viewTimeZone",1);n=r([yt("components.time-bar.TimeBarViewModel")],n);var kt=I`:host{--arcgis-internal-color-black-30: color-mix(in srgb, #000000 30.2%, transparent);--arcgis-internal-box-shadow: var(--calcite-spacing-none) var(--calcite-spacing-px) var(--calcite-spacing-base) var(--arcgis-internal-color-black-30);--arcgis-internal-top-max-width: calc(min(100cqw, 100vw) - var(--calcite-spacing-xxxl));--arcgis-internal-panel-width: 300px;--arcgis-internal-panel-height: 100%;--arcgis-internal-panel-height-sm: 240px;--arcgis-internal-panel-height-md: 420px;--arcgis-internal-panel-height-lg: 540px;--arcgis-internal-panel-height-xl: 680px;--arcgis-internal-panel-gap: var(--calcite-spacing-lg);--arcgis-internal-panel-actions-gap: var(--calcite-spacing-sm);--arcgis-internal-basemap-gallery-width-lg: 450px;--arcgis-internal-collapse-icon-flip: scaleX(1);--arcgis-internal-row-direction: row;--arcgis-internal-legend-width: 300px;--arcgis-internal-layout-overlay-space-top: var(--arcgis-layout-overlay-space-top, 0px);--arcgis-internal-layout-overlay-space-bottom: var(--arcgis-layout-overlay-space-bottom, 0px);--arcgis-internal-layout-overlay-space-left: var(--arcgis-layout-overlay-space-left, 0px);--arcgis-internal-layout-overlay-space-right: var(--arcgis-layout-overlay-space-right, 0px);--arcgis-internal-view-color-focus: var(--arcgis-view-color-focus, var(--calcite-color-brand));--arcgis-internal-attribution-space-bottom: var(--arcgis-internal-layout-overlay-space-bottom);--arcgis-internal-attribution-space-left: var(--arcgis-internal-layout-overlay-space-left);--arcgis-internal-attribution-space-right: var(--arcgis-internal-layout-overlay-space-right);--arcgis-internal-attribution-font-size: var(--calcite-font-size-sm);--arcgis-internal-attribution-font-size-sm: var(--calcite-font-size-xs);--arcgis-internal-sketch-justify-content: flex-start}:host{color:var(--calcite-color-text-2);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight);transition:max-height var(--calcite-internal-animation-timing-medium) ease-in-out}:host([floating]) .action-bar{--calcite-action-bar-shadow: var(--arcgis-internal-box-shadow)}::slotted([slot="actions-end"]){border-inline-start:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);padding-inline-start:var(--calcite-spacing-sm)}.action-bar,.time-extent-group,.time-extent-group>slot{display:flex;flex:1 0 auto;place-items:center}.action-bar{--calcite-action-bar-shadow: none;--calcite-action-bar-background-color: var(--calcite-color-foreground-1)}.label{block-size:var(--calcite-size-fixed-xxxl);inline-size:175px}.settings{inline-size:calc(var(--arcgis-internal-panel-width) - 2 * var(--calcite-spacing-lg))}`,Pt=J(n),z=class extends B{constructor(){super(...arguments),this._direction=L(),this._viewModel=Pt(this),this.messages=G({name:"time-bar",blocking:!0}),this.#t=q(),this.#e=e=>{this._settingsActionElement=e},this.autoDestroyDisabled=!1,this.disabled=this._viewModel.disabled,this.effectiveStops=this._viewModel.effectiveStops,this.floating=!1,this.format=this._viewModel.format,this.fullTimeExtent=this._viewModel.fullTimeExtent,this.icon="clock",this.loadPersistedSettingsDisabled=this._viewModel.loadPersistedSettingsDisabled,this.loop=this._viewModel.loop,this.mode=this._viewModel.mode,this.playRate=this._viewModel.playRate,this.reverseAnimation=this._viewModel.reverseAnimation,this.savePersistedSettingsDisabled=this._viewModel.savePersistedSettingsDisabled,this.showNext=!1,this.showPlay=!1,this.showPrevious=!1,this.showSettings=!1,this.showTimeExtent=!1,this.state=this._viewModel.state,this.stops=this._viewModel.stops,this.timeExtent=this._viewModel.timeExtent,this.timeZone=this._viewModel.timeZone,this.view=this._viewModel.view,this.arcgisPropertyChange=H()("effectiveStops","fullTimeExtent","state","timeExtent"),this.arcgisReady=j()}static{this.properties={_settingsActionElement:16,autoDestroyDisabled:5,disabled:5,effectiveStops:32,floating:7,format:1,fullTimeExtent:0,icon:1,label:1,loadPersistedSettingsDisabled:5,loop:5,messageOverrides:0,mode:1,playRate:9,referenceElement:1,reverseAnimation:5,savePersistedSettingsDisabled:5,showNext:5,showPlay:5,showPrevious:5,showSettings:5,showTimeExtent:5,state:32,stops:0,timeExtent:0,timeZone:1,view:0}}static{this.styles=kt}#t;#e;async applyTimeSettings(e){this._viewModel.set(e)}async destroy(){await this.manager.destroy()}async next(){this._viewModel.next()}async play(){this._viewModel.play()}async previous(){this._viewModel.previous()}async stop(){this._viewModel.stop()}async updateWebDocument(e){this._viewModel.updateWebDocument(e)}willUpdate(e){e.has("messages")&&(this._viewModel.locale=this.messages._lang)}#m(e){let{currentTarget:a}=e,o=et(a).at(0)??a.querySelector("arcgis-time-bar-extent");o&&(o.messages=this.messages,o.viewModel=this._viewModel)}async#h(){switch(this.state){case"disabled":case"playing":return await this.stop();case"ready":return await this.play()}}render(){return p`<div role=presentation><calcite-action-bar class="action-bar" layout=horizontal expand-toggle-disabled .floating=${this.floating} overflow-mode=none>${this._direction==="ltr"?p`${this.#i()}${this.#a()}${this.#c()}${this.#l()}${this.#s()}`:p`${this.#i()}${this.#l()}${this.#c()}${this.#a()}${this.#s()}`}</calcite-action-bar></div>`}#i(){return this.showNext||this.showPlay||this.showPrevious||this.showTimeExtent||this.showSettings?null:p`<calcite-action disabled .text=${this.messages.componentLabel} text-enabled></calcite-action>`}#s(){return p`<slot name=actions-end slot=actions-end></slot>`}#a(){return this.showPrevious||this.showPlay||this.showNext?p`<calcite-action-group>${this._direction==="ltr"?p`${this.#o()}${this.#r()}${this.#n()}`:p`${this.#n()}${this.#r()}${this.#o()}`}</calcite-action-group>`:null}#n(){return this.showNext?p`<calcite-action .disabled=${this._viewModel.isOutOfRange||!this._viewModel.interactive||!this.effectiveStops?.length||this.state==="playing"||!this.loop&&!this._viewModel.canNext} icon=forward @click=${this.next} .text=${this.messages.next} title=${this.messages.next??y}></calcite-action>`:null}#o(){return this.showPlay?p`<calcite-action .disabled=${this._viewModel.isOutOfRange||!this._viewModel.interactive||!this.effectiveStops?.length} .icon=${this.state==="playing"?"pause-f":"play-f"} @click=${this.#h} .text=${this.state==="playing"?this.messages.stop:this.messages.play} title=${(this.state==="playing"?this.messages.stop:this.messages.play)??y}></calcite-action>`:null}#r(){return this.showPrevious?p`<calcite-action .disabled=${this._viewModel.isOutOfRange||!this._viewModel.interactive||!this.effectiveStops?.length||this.state==="playing"||!this.loop&&!this._viewModel.canPrevious} icon=reverse @click=${this.previous} .text=${this.messages.previous} title=${this.messages.previous??y}></calcite-action>`:null}#l(){return this.showSettings?p`<calcite-action-group><calcite-action .disabled=${!this._viewModel.interactive} .text=${this.messages.settings} icon=sliders-horizontal title=${this.messages.settings??y} ${M(this.#e)}></calcite-action>${this._settingsActionElement?p`<calcite-popover auto-close .heading=${this.messages.timeBarSettings} .label=${this.messages.timeBarSettings} .referenceElement=${this._settingsActionElement} @calcitePopoverClose=${()=>{this.#t.value?.navigateToOverview()}} overlay-positioning=fixed><slot name=settings><arcgis-time-bar-settings .autoDestroyDisabled=${this.autoDestroyDisabled} class="settings" .messages=${this.messages} .viewModel=${this._viewModel} ${M(this.#t)}></arcgis-time-bar-settings></slot></calcite-popover>`:void 0}</calcite-action-group>`:null}#c(){return this.showTimeExtent?p`<calcite-action-group class="time-extent-group"><slot name=time-extent @slotchange=${this.#m}><arcgis-time-bar-extent .autoDestroyDisabled=${this.autoDestroyDisabled} class="label" .messages=${this.messages} .viewModel=${this._viewModel}></arcgis-time-bar-extent></slot></calcite-action-group>`:null}};V("arcgis-time-bar",z);return z},"core/Accessor","time/TimeExtent","webdoc/widgets/TimeSlider","webdoc/Widgets","intl","time/TimeInterval","support/timeUtils","core/accessorSupport/decorators","core/reactiveUtils",a,b,c,d,e,f)