@arcgis/common-components 6.0.0-next.3 → 6.0.0-next.31

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 (115) hide show
  1. package/dist/cdn/2S4SSY4K.js +2 -0
  2. package/dist/cdn/{YEFEVEP6.js → 3UAY23XT.js} +1 -1
  3. package/dist/cdn/{OTWADB4M.js → 3ZTHRAIZ.js} +1 -1
  4. package/dist/cdn/{TXQKK4DJ.js → 4D35RDOE.js} +1 -1
  5. package/dist/cdn/4IMLX5B4.js +4 -0
  6. package/dist/cdn/5GVJKVEV.js +2 -0
  7. package/dist/cdn/6LZNNXUL.js +2 -0
  8. package/dist/cdn/74TVQE6W.js +2 -0
  9. package/dist/cdn/7WN227WZ.js +8207 -0
  10. package/dist/cdn/ANK7TFWV.js +2 -0
  11. package/dist/cdn/{X6DNIKWY.js → BAALW3SQ.js} +1 -1
  12. package/dist/cdn/{LNXO5YIS.js → BDIGRQ2U.js} +1 -1
  13. package/dist/cdn/BMR5AH6W.js +2 -0
  14. package/dist/cdn/DAAON2UO.js +3 -0
  15. package/dist/cdn/{IECXEZNI.js → EOGA62GK.js} +1 -1
  16. package/dist/cdn/{OMROUY3L.js → FESNPMRM.js} +1 -1
  17. package/dist/cdn/FGG3L42U.js +2 -0
  18. package/dist/cdn/{OIGA7XBZ.js → FVFYAK24.js} +1 -1
  19. package/dist/cdn/GZVXOCN5.js +2 -0
  20. package/dist/cdn/{D4UHHQ35.js → IOAVVVNO.js} +1 -1
  21. package/dist/cdn/{B33S3YBM.js → IZD4AM2W.js} +1 -1
  22. package/dist/cdn/{MFGUTQRR.js → J4AV4EAC.js} +1 -1
  23. package/dist/cdn/JYWWX277.js +2 -0
  24. package/dist/cdn/KEQPWVA6.js +2 -0
  25. package/dist/cdn/{TO3YFXVJ.js → LLLQXE2U.js} +1 -1
  26. package/dist/cdn/{KDCSDIUQ.js → M7F7EBFY.js} +1 -1
  27. package/dist/cdn/NZDJ3HVF.js +2 -0
  28. package/dist/cdn/OUPGMHLD.js +2 -0
  29. package/dist/cdn/{JTQN5KMG.js → PIXY2HTI.js} +1 -1
  30. package/dist/cdn/{BZFAYVKR.js → PJGWH4LW.js} +1 -1
  31. package/dist/cdn/SRO2CZ77.js +2 -0
  32. package/dist/cdn/T57JKNGO.js +2 -0
  33. package/dist/cdn/{EB5MDEWF.js → TE77L77R.js} +1 -1
  34. package/dist/cdn/TWPYXZ2O.js +2 -0
  35. package/dist/cdn/{735FTIBP.js → U6OGOB7D.js} +1 -1
  36. package/dist/cdn/V5FMQXMU.js +2 -0
  37. package/dist/cdn/{HYFFUYAU.js → VNC7X43V.js} +1 -1
  38. package/dist/cdn/W2W34T5K.js +2 -0
  39. package/dist/cdn/W7CWMG2O.js +2 -0
  40. package/dist/cdn/XMMFL5H3.js +2 -0
  41. package/dist/cdn/XQ65BGER.js +2 -0
  42. package/dist/cdn/ZJMMAZFG.js +2 -0
  43. package/dist/cdn/ZLVMV6TP.js +2 -0
  44. package/dist/cdn/{34AP2EEB.js → ZMYTELNC.js} +1 -1
  45. package/dist/cdn/assets/layer-replace/t9n/messages.en.json +1 -0
  46. package/dist/cdn/index.js +1 -1
  47. package/dist/cdn/main.css +1 -1
  48. package/dist/chunks/sharedCacheDirective.js +74 -0
  49. package/dist/chunks/toolbar.js +3 -3
  50. package/dist/components/arcgis-ckeditor5/customElement.js +144 -147
  51. package/dist/components/arcgis-color-input/customElement.js +29 -29
  52. package/dist/components/arcgis-color-input/index.js +2 -1
  53. package/dist/components/arcgis-field-pick-list/customElement.js +8 -8
  54. package/dist/components/arcgis-field-pick-list/index.js +1 -1
  55. package/dist/components/arcgis-html-content/customElement.d.ts +42 -0
  56. package/dist/components/arcgis-html-content/customElement.js +71 -0
  57. package/dist/components/arcgis-html-content/index.d.ts +1 -0
  58. package/dist/components/arcgis-html-content/index.js +1 -0
  59. package/dist/components/arcgis-label-input/customElement.js +1 -1
  60. package/dist/components/arcgis-layer-replace/customElement.d.ts +437 -0
  61. package/dist/components/arcgis-layer-replace/customElement.js +376 -0
  62. package/dist/components/arcgis-layer-replace/index.d.ts +1 -0
  63. package/dist/components/arcgis-layer-replace/index.js +7 -0
  64. package/dist/components/arcgis-slider/customElement.js +543 -455
  65. package/dist/components/arcgis-slider-field/customElement.d.ts +43 -41
  66. package/dist/components/arcgis-slider-field/customElement.js +45 -39
  67. package/dist/components/arcgis-slider-histogram-range/customElement.d.ts +21 -19
  68. package/dist/components/arcgis-slider-histogram-range/customElement.js +28 -22
  69. package/dist/components/arcgis-ticks/customElement.js +8 -8
  70. package/dist/components/arcgis-toolbar/customElement.d.ts +6 -3
  71. package/dist/components/arcgis-toolbar/customElement.js +30 -29
  72. package/dist/components/arcgis-toolbar/types.d.ts +1 -0
  73. package/dist/components/arcgis-toolbar-group/customElement.js +7 -7
  74. package/dist/components/arcgis-toolbar-item/customElement.js +1 -1
  75. package/dist/components/arcgis-toolbar-stack/customElement.js +51 -116
  76. package/dist/components/arcgis-unique-values-list/customElement.js +11 -11
  77. package/dist/components/arcgis-unique-values-list/index.js +1 -1
  78. package/dist/components/arcgis-value-picker/customElement.js +14 -14
  79. package/dist/components/arcgis-value-picker-combobox/customElement.js +4 -4
  80. package/dist/components/arcgis-value-picker-label/customElement.js +5 -5
  81. package/dist/components/arcgis-value-picker-slider/customElement.js +17 -17
  82. package/dist/docs/api.json +1 -1
  83. package/dist/docs/docs.json +1 -1
  84. package/dist/docs/vscode.css-custom-data.json +1 -1
  85. package/dist/docs/vscode.html-custom-data.json +1 -1
  86. package/dist/docs/web-types.json +1 -1
  87. package/dist/index.d.ts +15 -0
  88. package/dist/index.js +8 -5
  89. package/dist/loader.js +6 -4
  90. package/dist/types/lumina.d.ts +26 -2
  91. package/dist/types/preact.d.ts +28 -2
  92. package/dist/types/react.d.ts +30 -2
  93. package/dist/types/stencil.d.ts +26 -2
  94. package/dist/utils/sharedCacheDirective.d.ts +68 -0
  95. package/package.json +6 -6
  96. package/dist/cdn/3AFEXHZ5.js +0 -2
  97. package/dist/cdn/5EA7SGHX.js +0 -2
  98. package/dist/cdn/5XRYXPOX.js +0 -2
  99. package/dist/cdn/ATLXGXTH.js +0 -2
  100. package/dist/cdn/BCN6LPOG.js +0 -4
  101. package/dist/cdn/CKGWDI7B.js +0 -2
  102. package/dist/cdn/DR2THZQU.js +0 -8208
  103. package/dist/cdn/EM4OQXFS.js +0 -2
  104. package/dist/cdn/GDRW3MIZ.js +0 -2
  105. package/dist/cdn/HJ3EJZFF.js +0 -2
  106. package/dist/cdn/LLATF73T.js +0 -2
  107. package/dist/cdn/M2J3GPM4.js +0 -2
  108. package/dist/cdn/M3SFEFPX.js +0 -2
  109. package/dist/cdn/QCUF7B3I.js +0 -2
  110. package/dist/cdn/S4XOD4YS.js +0 -2
  111. package/dist/cdn/UIBTY5FF.js +0 -2
  112. package/dist/cdn/XUPA27AW.js +0 -2
  113. package/dist/cdn/XX2ZCFWI.js +0 -2
  114. package/dist/cdn/ZCVP2N2O.js +0 -2
  115. package/dist/cdn/ZGYD3GAS.js +0 -2
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import{a as o}from"./LLLQXE2U.js";import{e as n}from"./JYWWX277.js";import"./XMMFL5H3.js";import{L as l,S as r,h as c,j as i}from"./4IMLX5B4.js";var h=c`:host{align-items:center;display:flex;flex:auto;inline-size:300px;min-inline-size:0;padding-inline:var(--calcite-space-sm);--calcite-color-border-input: var(--calcite-color-border-3)}calcite-combobox{flex:auto;width:var(--calcite-space-none)}`,a=class extends l{constructor(){super(...arguments),this.messages=o({blocking:!0}),this.autoDestroyDisabled=!1,this.disabled=!1,this.canNext=!1,this.canPlay=!1,this.canPrevious=!1,this.arcgisPropertyChange=n()("canNext","canPlay","canPrevious","currentValue")}static{this.properties={autoDestroyDisabled:5,disabled:5,items:0,currentValue:0,canNext:5,canPlay:5,canPrevious:5}}static{this.styles=h}async destroy(){await this.manager.destroy()}reset(){this.currentValue=this.items?.[0]}step(e){if(!this.items||!this.currentValue)return;let t=this.items.findIndex(({value:s})=>s===this.currentValue?.value)+(e==="next"?1:-1);t>=this.items.length||t<0||(this.currentValue=this.items[t],this._checkState())}connectedCallback(){super.connectedCallback(),this.el.hidden=!0}willUpdate(e){(e.has("currentValue")||e.has("items"))&&this.items?.length&&(this.currentValue??=this.items[0]),this.el.hidden=!this.items?.length,this._checkState()}_checkState(){if(!this.items?.length){this.canPlay=!1,this.canNext=!1,this.canPrevious=!1;return}this.canPlay=!0;let e=this.items.findIndex(({value:t})=>t===this.currentValue?.value);this.canNext=e<this.items.length-1,this.canPrevious=e>0}render(){return i`<calcite-combobox .disabled=${this.disabled} selection-mode=single .label=${this.messages.comboboxLabel} @calciteComboboxChange=${({currentTarget:e})=>{let t=e.selectedItems[0]?.value;this.currentValue=this.items?.find(({value:s})=>s===t),this._checkState()}}>${this.items?.map(e=>i`<calcite-combobox-item .value=${e.value} .heading=${e.label} .selected=${e.value===this.currentValue?.value}></calcite-combobox-item>`)}</calcite-combobox>`}};r("arcgis-value-picker-combobox",a);export{a as ArcgisValuePickerCombobox};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{b}from"./DPJGC3YQ.js";import{c as l}from"./32MHBJSZ.js";import{a as g}from"./EB5MDEWF.js";import{K as h,L as m,M as p,O as a,R as u,h as d,j as o,t as c}from"./BCN6LPOG.js";var E=d`:host([text-enabled][data-layout="vertical"]){.interaction-container>button{flex-direction:column;>.text-container{writing-mode:vertical-lr}}}`,r=class extends m{constructor(){super(...arguments),this.#e=t=>{t!==this._element&&(this.#t?.disconnect(),this._element=t,this._hydratedElement=void 0,this.isConnected&&this.arcgisRenderedActionChanged.emit({element:t}),t&&(this._measureAction(),this.#t??=new ResizeObserver(e=>{!this.textEnabled||!this._element||this._measureAction(e)}),this.#t.observe(t),t.componentOnReady().then(()=>{!this.isConnected||this._element!==t||(this._hydratedElement=t,t.shadowRoot?.adoptedStyleSheets.push(E.styleSheet))})))},this._measuredWidth=0,this._measuredHeight=0,this.active=!1,this.tooltipText="",this.labelText="",this.disabled=!1,this.loading=!1,this.indicator=!1,this.textEnabled=!1,this.appearance="transparent",this.iconFlipRtl=!1,this.arcgisRenderedActionChanged=c(),this.arcgisToolbarItemSelected=c()}static{this.properties={_element:16,_hydratedElement:16,_measuredWidth:16,_measuredHeight:16,icon:1,active:7,tooltipText:1,labelText:1,disabled:5,loading:5,indicator:5,textEnabled:5,kind:3,appearance:3,iconFlipRtl:5,actionElement:32}}#t;#e;get actionElement(){return this._element}measure({layout:t,scale:e}){let s=l.actionPadding[e],i=l.action[e],n=t==="horizontal"?this._measuredWidth:this._measuredHeight;return[Math.max(i,n)+s]}proxiedRender(t){let{tooltipAppearance:e,scale:s}=t,i=this.tooltipText||this.labelText,n=this._hydratedElement,_=e!=="native"&&!!this.tooltipText&&n,$=e==="calcite-dark"?"calcite-mode-dark":void 0,x=b(t);return o`${g(this,o`<calcite-action .active=${this.active} data-appearance=${this.appearance??a} data-kind=${this.kind??a} data-layout=${t.layout??a} .disabled=${this.disabled} .icon=${this.icon} .iconFlipRtl=${this.iconFlipRtl} .indicator=${this.indicator} .label=${i} .loading=${this.loading} @click=${v=>this._handleActionClick(v)} .scale=${s} .text=${this.labelText} .textEnabled=${this.textEnabled} title=${(e==="native"?i:void 0)??a} ${h(this.#e)}></calcite-action>`)}${_?o`<calcite-tooltip class=${p($)} overlay-positioning=fixed .placement=${x} .referenceElement=${n} .scale=${s}><span>${i}</span></calcite-tooltip>`:void 0}`}disconnectedCallback(){this.#t?.disconnect(),super.disconnectedCallback()}_handleActionClick(t){this.arcgisToolbarItemSelected?.emit({element:t.currentTarget})}_measureAction(t){let e=t?.at(0)?.contentRect??this._element?.getBoundingClientRect();e&&(this._measuredWidth=Math.round(e.width),this._measuredHeight=Math.round(e.height))}};u("arcgis-toolbar-action",r);export{r as ArcgisToolbarAction};
2
+ import{b}from"./DPJGC3YQ.js";import{c as l}from"./32MHBJSZ.js";import{a as g}from"./TE77L77R.js";import{K as h,L as m,M as p,P as a,S as u,h as d,j as o,t as c}from"./4IMLX5B4.js";var E=d`:host([text-enabled][data-layout="vertical"]){.interaction-container>button{flex-direction:column;>.text-container{writing-mode:vertical-lr}}}`,r=class extends m{constructor(){super(...arguments),this.#e=t=>{t!==this._element&&(this.#t?.disconnect(),this._element=t,this._hydratedElement=void 0,this.isConnected&&this.arcgisRenderedActionChanged.emit({element:t}),t&&(this._measureAction(),this.#t??=new ResizeObserver(e=>{!this.textEnabled||!this._element||this._measureAction(e)}),this.#t.observe(t),t.componentOnReady().then(()=>{!this.isConnected||this._element!==t||(this._hydratedElement=t,t.shadowRoot?.adoptedStyleSheets.push(E.styleSheet))})))},this._measuredWidth=0,this._measuredHeight=0,this.active=!1,this.tooltipText="",this.labelText="",this.disabled=!1,this.loading=!1,this.indicator=!1,this.textEnabled=!1,this.appearance="transparent",this.iconFlipRtl=!1,this.arcgisRenderedActionChanged=c(),this.arcgisToolbarItemSelected=c()}static{this.properties={_element:16,_hydratedElement:16,_measuredWidth:16,_measuredHeight:16,icon:1,active:7,tooltipText:1,labelText:1,disabled:5,loading:5,indicator:5,textEnabled:5,kind:3,appearance:3,iconFlipRtl:5,actionElement:32}}#t;#e;get actionElement(){return this._element}measure({layout:t,scale:e}){let s=l.actionPadding[e],i=l.action[e],n=t==="horizontal"?this._measuredWidth:this._measuredHeight;return[Math.max(i,n)+s]}proxiedRender(t){let{tooltipAppearance:e,scale:s}=t,i=this.tooltipText||this.labelText,n=this._hydratedElement,_=e!=="native"&&!!this.tooltipText&&n,$=e==="calcite-dark"?"calcite-mode-dark":void 0,x=b(t);return o`${g(this,o`<calcite-action .active=${this.active} data-appearance=${this.appearance??a} data-kind=${this.kind??a} data-layout=${t.layout??a} .disabled=${this.disabled} .icon=${this.icon} .iconFlipRtl=${this.iconFlipRtl} .indicator=${this.indicator} .label=${i} .loading=${this.loading} @click=${v=>this._handleActionClick(v)} .scale=${s} .text=${this.labelText} .textEnabled=${this.textEnabled} title=${(e==="native"?i:void 0)??a} ${h(this.#e)}></calcite-action>`)}${_?o`<calcite-tooltip class=${p($)} overlay-positioning=fixed .placement=${x} .referenceElement=${n} .scale=${s}><span>${i}</span></calcite-tooltip>`:void 0}`}disconnectedCallback(){this.#t?.disconnect(),super.disconnectedCallback()}_handleActionClick(t){this.arcgisToolbarItemSelected?.emit({element:t.currentTarget})}_measureAction(t){let e=t?.at(0)?.contentRect??this._element?.getBoundingClientRect();e&&(this._measuredWidth=Math.round(e.width),this._measuredHeight=Math.round(e.height))}};u("arcgis-toolbar-action",r);export{r as ArcgisToolbarAction};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{i as o}from"./BCN6LPOG.js";var n=Symbol(),h=class{get taskComplete(){return this.t||(this.i===1?this.t=new Promise(((t,i)=>{this.o=t,this.h=i})):this.i===3?this.t=Promise.reject(this.l):this.t=Promise.resolve(this.u)),this.t}constructor(t,i,e){this.p=0,this.i=0,(this._=t).addController(this);let r=typeof i=="object"?i:{task:i,args:e};this.v=r.task,this.j=r.args,this.m=r.argsEqual??u,this.k=r.onComplete,this.A=r.onError,this.autoRun=r.autoRun??!0,"initialValue"in r&&(this.u=r.initialValue,this.i=2,this.O=this.T?.())}hostUpdate(){this.autoRun===!0&&this.S()}hostUpdated(){this.autoRun==="afterUpdate"&&this.S()}T(){if(this.j===void 0)return;let t=this.j();if(!Array.isArray(t))throw Error("The args function must return an array");return t}async S(){let t=this.T(),i=this.O;this.O=t,t===i||t===void 0||i!==void 0&&this.m(i,t)||await this.run(t)}async run(t){let i,e;t??=this.T(),this.O=t,this.i===1?this.q?.abort():(this.t=void 0,this.o=void 0,this.h=void 0),this.i=1,this.autoRun==="afterUpdate"?queueMicrotask((()=>this._.requestUpdate())):this._.requestUpdate();let r=++this.p;this.q=new AbortController;let a=!1;try{i=await this.v(t,{signal:this.q.signal})}catch(l){a=!0,e=l}if(this.p===r){if(i===n)this.i=0;else{if(a===!1){try{this.k?.(i)}catch{}this.i=2,this.o?.(i)}else{try{this.A?.(e)}catch{}this.i=3,this.h?.(e)}this.u=i,this.l=e}this._.requestUpdate()}}abort(t){this.i===1&&this.q?.abort(t)}get value(){return this.u}get error(){return this.l}get status(){return this.i}render(t){switch(this.i){case 0:return t.initial?.();case 1:return t.pending?.();case 2:return t.complete?.(this.value);case 3:return t.error?.(this.error);default:throw Error("Unexpected status: "+this.i)}}},u=(s,t)=>s===t||s.length===t.length&&s.every(((i,e)=>!o(i,t[e])));function m(s){return s!=null}function y(s,t){return t==="feature-reduction"&&"featureReduction"in s?s.featureReduction:s}export{h as a,m as b,y as c};
2
+ import{i as o}from"./4IMLX5B4.js";var n=Symbol(),h=class{get taskComplete(){return this.t||(this.i===1?this.t=new Promise(((t,i)=>{this.o=t,this.h=i})):this.i===3?this.t=Promise.reject(this.l):this.t=Promise.resolve(this.u)),this.t}constructor(t,i,e){this.p=0,this.i=0,(this._=t).addController(this);let r=typeof i=="object"?i:{task:i,args:e};this.v=r.task,this.j=r.args,this.m=r.argsEqual??u,this.k=r.onComplete,this.A=r.onError,this.autoRun=r.autoRun??!0,"initialValue"in r&&(this.u=r.initialValue,this.i=2,this.O=this.T?.())}hostUpdate(){this.autoRun===!0&&this.S()}hostUpdated(){this.autoRun==="afterUpdate"&&this.S()}T(){if(this.j===void 0)return;let t=this.j();if(!Array.isArray(t))throw Error("The args function must return an array");return t}async S(){let t=this.T(),i=this.O;this.O=t,t===i||t===void 0||i!==void 0&&this.m(i,t)||await this.run(t)}async run(t){let i,e;t??=this.T(),this.O=t,this.i===1?this.q?.abort():(this.t=void 0,this.o=void 0,this.h=void 0),this.i=1,this.autoRun==="afterUpdate"?queueMicrotask((()=>this._.requestUpdate())):this._.requestUpdate();let r=++this.p;this.q=new AbortController;let a=!1;try{i=await this.v(t,{signal:this.q.signal})}catch(l){a=!0,e=l}if(this.p===r){if(i===n)this.i=0;else{if(a===!1){try{this.k?.(i)}catch{}this.i=2,this.o?.(i)}else{try{this.A?.(e)}catch{}this.i=3,this.h?.(e)}this.u=i,this.l=e}this._.requestUpdate()}}abort(t){this.i===1&&this.q?.abort(t)}get value(){return this.u}get error(){return this.l}get status(){return this.i}render(t){switch(this.i){case 0:return t.initial?.();case 1:return t.pending?.();case 2:return t.complete?.(this.value);case 3:return t.error?.(this.error);default:throw Error("Unexpected status: "+this.i)}}},u=(s,t)=>s===t||s.length===t.length&&s.every(((i,e)=>!o(i,t[e])));function m(s){return s!=null}function y(s,t){return t==="feature-reduction"&&"featureReduction"in s?s.featureReduction:s}export{h as a,m as b,y as c};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import{a as y,b as f,c as v,d as R}from"./2S4SSY4K.js";import{b as $,d as o}from"./32MHBJSZ.js";import{c as b}from"./JYWWX277.js";import"./XMMFL5H3.js";import{a as _}from"./TE77L77R.js";import{K as h,L as m,N as d,S as g,j as l,t as u}from"./4IMLX5B4.js";var c=class extends m{constructor(){super(),this.#e=new ResizeObserver(e=>this._updateMeasurement(e)),this.#r=new MutationObserver(()=>this._syncGroups()),this.#i=b(),this._layout="horizontal",this._setRenderedBar=e=>{e==null&&(this._renderedBar=void 0,this._hydratedRenderedBar=void 0),!(e===this._renderedBar||e===this._hydratedRenderedBar)&&(this._renderedBar=e,this._hydratedRenderedBar=void 0,e&&e.componentOnReady().then(()=>{!this.isConnected||this._renderedBar!==e||(this._hydratedRenderedBar=e)}))},this._availableLength=0,this.scale="m",this.tooltipAppearance="native",this.relativePosition="top-left",this.toolbarKind="floating",this.arcgisInternalLayoutUpdate=u(),this.listen("arcgisInternalLayoutUpdate",e=>{e.target!==this.el&&this.requestUpdate(),this.el.parentElement?.localName!=="arcgis-toolbar-stack"&&e.stopPropagation()})}static{this.properties={_availableLength:16,_groups:16,_renderedBar:16,_hydratedRenderedBar:16,layout:3,scale:3,tooltipAppearance:1,relativePosition:1,toolbarKind:3,barElement:32,effectiveRelativeDirection:16}}static{this.styles=[R,y,f,v]}#e;#r;#a;#i;#t;get layout(){return this._layout}set layout(e){e!==this._layout&&(this._layout=e,this._updateMeasurement())}get barElement(){return this._hydratedRenderedBar}get effectiveRelativeDirection(){let[e,t]=this.relativePosition.split("-"),r=this.#i;switch(t){case"left":case"right":return`${e}-${t}`;case"end":return`${e}-${r==="ltr"?"right":"left"}`;case"start":return`${e}-${r==="ltr"?"left":"right"}`}}measure(e){let t=this._groups;if(!t?.length)return[0];let r=t.map(a=>a.measure(e)).reduce((a,i)=>a.flatMap(s=>i.map(n=>s+n)),[0]).map(a=>o(t,e,a).reduce((i,{budget:s})=>i+s,0));return Array.from(new Set(r)).sort((a,i)=>a-i)}allocate(e,t){let r=this._groups;return r?.length?o(r,e,t):[]}proxiedRender(e,t,r=this.toolbarKind,a=t){if(!this._groups?.length)return;let i=this.allocate(e,t),[s,n]=e.relativePosition.split("-"),p=e.layout==="horizontal"?{maxWidth:`${a}px`}:{maxHeight:`${a}px`};return _(this,l`<div class=${`toolbar-grid-wrapper ${n} ${s}`} style=${d(p)}><div class="toolbar-shadow-wrapper" style=${d(p)}><calcite-action-bar expand-toggle-disabled .floating=${r==="floating"} .layout=${e.layout} overflow-mode=none .scale=${e.scale} ${h(this._setRenderedBar)}>${i.map(({group:B,budget:x})=>B.proxiedRender(e,x))}</calcite-action-bar></div></div>`)}connectedCallback(){super.connectedCallback(),this._connectMeasurement(this.#t),this.#r.observe(this.el,{childList:!0}),this._syncGroups()}disconnectedCallback(){this.#e.disconnect(),this.#r.disconnect(),super.disconnectedCallback()}_setRulerEl(e){this.#t!==e&&(this.#t=e,this.isConnected&&this._connectMeasurement(e))}_connectMeasurement(e){this.#e.disconnect(),e&&(this.#e.observe(e),this._updateMeasurement())}_updateMeasurement(e){let t=e?.at(0)?.contentRect??this.#t?.getBoundingClientRect();t&&(this._availableLength=this.layout==="horizontal"?t.width:t.height)}_syncGroups(){this.#a?.abort();let e=Array.from(this.el.children).filter($),t=new AbortController;this.#a=t,Promise.all(e.map(r=>r.componentOnReady())).then(()=>{!this.isConnected||t.signal.aborted||(this._groups=e,this.arcgisInternalLayoutUpdate.emit())})}render(){if(!this._groups?.length||this.el.parentElement?.localName==="arcgis-toolbar-stack")return;let e={layout:this.layout,relativePosition:this.effectiveRelativeDirection,scale:this.scale,tooltipAppearance:this.tooltipAppearance,toolbarKind:this.toolbarKind},[{budget:t}]=o([this],e,this._availableLength);return l`<div class="ruler" ${h(this._setRulerEl)}></div>${this.proxiedRender(e,t,this.toolbarKind,this._availableLength)}`}};g("arcgis-toolbar",c);export{c as ArcgisToolbar};
@@ -0,0 +1,3 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ var P=function(){return P=Object.assign||function(r){for(var t,a=1,s=arguments.length;a<s;a++){t=arguments[a];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}return r},P.apply(this,arguments)},G={exports:{}},g={},W={exports:{}},x={};function M(){var e={};return e["align-content"]=!1,e["align-items"]=!1,e["align-self"]=!1,e["alignment-adjust"]=!1,e["alignment-baseline"]=!1,e.all=!1,e["anchor-point"]=!1,e.animation=!1,e["animation-delay"]=!1,e["animation-direction"]=!1,e["animation-duration"]=!1,e["animation-fill-mode"]=!1,e["animation-iteration-count"]=!1,e["animation-name"]=!1,e["animation-play-state"]=!1,e["animation-timing-function"]=!1,e.azimuth=!1,e["backface-visibility"]=!1,e.background=!0,e["background-attachment"]=!0,e["background-clip"]=!0,e["background-color"]=!0,e["background-image"]=!0,e["background-origin"]=!0,e["background-position"]=!0,e["background-repeat"]=!0,e["background-size"]=!0,e["baseline-shift"]=!1,e.binding=!1,e.bleed=!1,e["bookmark-label"]=!1,e["bookmark-level"]=!1,e["bookmark-state"]=!1,e.border=!0,e["border-bottom"]=!0,e["border-bottom-color"]=!0,e["border-bottom-left-radius"]=!0,e["border-bottom-right-radius"]=!0,e["border-bottom-style"]=!0,e["border-bottom-width"]=!0,e["border-collapse"]=!0,e["border-color"]=!0,e["border-image"]=!0,e["border-image-outset"]=!0,e["border-image-repeat"]=!0,e["border-image-slice"]=!0,e["border-image-source"]=!0,e["border-image-width"]=!0,e["border-left"]=!0,e["border-left-color"]=!0,e["border-left-style"]=!0,e["border-left-width"]=!0,e["border-radius"]=!0,e["border-right"]=!0,e["border-right-color"]=!0,e["border-right-style"]=!0,e["border-right-width"]=!0,e["border-spacing"]=!0,e["border-style"]=!0,e["border-top"]=!0,e["border-top-color"]=!0,e["border-top-left-radius"]=!0,e["border-top-right-radius"]=!0,e["border-top-style"]=!0,e["border-top-width"]=!0,e["border-width"]=!0,e.bottom=!1,e["box-decoration-break"]=!0,e["box-shadow"]=!0,e["box-sizing"]=!0,e["box-snap"]=!0,e["box-suppress"]=!0,e["break-after"]=!0,e["break-before"]=!0,e["break-inside"]=!0,e["caption-side"]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e["clip-path"]=!1,e["clip-rule"]=!1,e.color=!0,e["color-interpolation-filters"]=!0,e["column-count"]=!1,e["column-fill"]=!1,e["column-gap"]=!1,e["column-rule"]=!1,e["column-rule-color"]=!1,e["column-rule-style"]=!1,e["column-rule-width"]=!1,e["column-span"]=!1,e["column-width"]=!1,e.columns=!1,e.contain=!1,e.content=!1,e["counter-increment"]=!1,e["counter-reset"]=!1,e["counter-set"]=!1,e.crop=!1,e.cue=!1,e["cue-after"]=!1,e["cue-before"]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e["display-inside"]=!0,e["display-list"]=!0,e["display-outside"]=!0,e["dominant-baseline"]=!1,e.elevation=!1,e["empty-cells"]=!1,e.filter=!1,e.flex=!1,e["flex-basis"]=!1,e["flex-direction"]=!1,e["flex-flow"]=!1,e["flex-grow"]=!1,e["flex-shrink"]=!1,e["flex-wrap"]=!1,e.float=!1,e["float-offset"]=!1,e["flood-color"]=!1,e["flood-opacity"]=!1,e["flow-from"]=!1,e["flow-into"]=!1,e.font=!0,e["font-family"]=!0,e["font-feature-settings"]=!0,e["font-kerning"]=!0,e["font-language-override"]=!0,e["font-size"]=!0,e["font-size-adjust"]=!0,e["font-stretch"]=!0,e["font-style"]=!0,e["font-synthesis"]=!0,e["font-variant"]=!0,e["font-variant-alternates"]=!0,e["font-variant-caps"]=!0,e["font-variant-east-asian"]=!0,e["font-variant-ligatures"]=!0,e["font-variant-numeric"]=!0,e["font-variant-position"]=!0,e["font-weight"]=!0,e.grid=!1,e["grid-area"]=!1,e["grid-auto-columns"]=!1,e["grid-auto-flow"]=!1,e["grid-auto-rows"]=!1,e["grid-column"]=!1,e["grid-column-end"]=!1,e["grid-column-start"]=!1,e["grid-row"]=!1,e["grid-row-end"]=!1,e["grid-row-start"]=!1,e["grid-template"]=!1,e["grid-template-areas"]=!1,e["grid-template-columns"]=!1,e["grid-template-rows"]=!1,e["hanging-punctuation"]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e["image-orientation"]=!1,e["image-resolution"]=!1,e["ime-mode"]=!1,e["initial-letters"]=!1,e["inline-box-align"]=!1,e["justify-content"]=!1,e["justify-items"]=!1,e["justify-self"]=!1,e.left=!1,e["letter-spacing"]=!0,e["lighting-color"]=!0,e["line-box-contain"]=!1,e["line-break"]=!1,e["line-grid"]=!1,e["line-height"]=!1,e["line-snap"]=!1,e["line-stacking"]=!1,e["line-stacking-ruby"]=!1,e["line-stacking-shift"]=!1,e["line-stacking-strategy"]=!1,e["list-style"]=!0,e["list-style-image"]=!0,e["list-style-position"]=!0,e["list-style-type"]=!0,e.margin=!0,e["margin-bottom"]=!0,e["margin-left"]=!0,e["margin-right"]=!0,e["margin-top"]=!0,e["marker-offset"]=!1,e["marker-side"]=!1,e.marks=!1,e.mask=!1,e["mask-box"]=!1,e["mask-box-outset"]=!1,e["mask-box-repeat"]=!1,e["mask-box-slice"]=!1,e["mask-box-source"]=!1,e["mask-box-width"]=!1,e["mask-clip"]=!1,e["mask-image"]=!1,e["mask-origin"]=!1,e["mask-position"]=!1,e["mask-repeat"]=!1,e["mask-size"]=!1,e["mask-source-type"]=!1,e["mask-type"]=!1,e["max-height"]=!0,e["max-lines"]=!1,e["max-width"]=!0,e["min-height"]=!0,e["min-width"]=!0,e["move-to"]=!1,e["nav-down"]=!1,e["nav-index"]=!1,e["nav-left"]=!1,e["nav-right"]=!1,e["nav-up"]=!1,e["object-fit"]=!1,e["object-position"]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e["outline-color"]=!1,e["outline-offset"]=!1,e["outline-style"]=!1,e["outline-width"]=!1,e.overflow=!1,e["overflow-wrap"]=!1,e["overflow-x"]=!1,e["overflow-y"]=!1,e.padding=!0,e["padding-bottom"]=!0,e["padding-left"]=!0,e["padding-right"]=!0,e["padding-top"]=!0,e.page=!1,e["page-break-after"]=!1,e["page-break-before"]=!1,e["page-break-inside"]=!1,e["page-policy"]=!1,e.pause=!1,e["pause-after"]=!1,e["pause-before"]=!1,e.perspective=!1,e["perspective-origin"]=!1,e.pitch=!1,e["pitch-range"]=!1,e["play-during"]=!1,e.position=!1,e["presentation-level"]=!1,e.quotes=!1,e["region-fragment"]=!1,e.resize=!1,e.rest=!1,e["rest-after"]=!1,e["rest-before"]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e["rotation-point"]=!1,e["ruby-align"]=!1,e["ruby-merge"]=!1,e["ruby-position"]=!1,e["shape-image-threshold"]=!1,e["shape-outside"]=!1,e["shape-margin"]=!1,e.size=!1,e.speak=!1,e["speak-as"]=!1,e["speak-header"]=!1,e["speak-numeral"]=!1,e["speak-punctuation"]=!1,e["speech-rate"]=!1,e.stress=!1,e["string-set"]=!1,e["tab-size"]=!1,e["table-layout"]=!1,e["text-align"]=!0,e["text-align-last"]=!0,e["text-combine-upright"]=!0,e["text-decoration"]=!0,e["text-decoration-color"]=!0,e["text-decoration-line"]=!0,e["text-decoration-skip"]=!0,e["text-decoration-style"]=!0,e["text-emphasis"]=!0,e["text-emphasis-color"]=!0,e["text-emphasis-position"]=!0,e["text-emphasis-style"]=!0,e["text-height"]=!0,e["text-indent"]=!0,e["text-justify"]=!0,e["text-orientation"]=!0,e["text-overflow"]=!0,e["text-shadow"]=!0,e["text-space-collapse"]=!0,e["text-transform"]=!0,e["text-underline-position"]=!0,e["text-wrap"]=!0,e.top=!1,e.transform=!1,e["transform-origin"]=!1,e["transform-style"]=!1,e.transition=!1,e["transition-delay"]=!1,e["transition-duration"]=!1,e["transition-property"]=!1,e["transition-timing-function"]=!1,e["unicode-bidi"]=!1,e["vertical-align"]=!1,e.visibility=!1,e["voice-balance"]=!1,e["voice-duration"]=!1,e["voice-family"]=!1,e["voice-pitch"]=!1,e["voice-range"]=!1,e["voice-rate"]=!1,e["voice-stress"]=!1,e["voice-volume"]=!1,e.volume=!1,e["white-space"]=!1,e.widows=!1,e.width=!0,e["will-change"]=!1,e["word-break"]=!0,e["word-spacing"]=!0,e["word-wrap"]=!0,e["wrap-flow"]=!1,e["wrap-through"]=!1,e["writing-mode"]=!1,e["z-index"]=!1,e}function ce(e,r,t){}function ge(e,r,t){}var pe=/javascript\s*\:/img;function de(e,r){return pe.test(r)?"":r}x.whiteList=M();x.getDefaultWhiteList=M;x.onAttr=ce;x.onIgnoreAttr=ge;x.safeAttrValue=de;var he={indexOf:function(e,r){var t,a;if(Array.prototype.indexOf)return e.indexOf(r);for(t=0,a=e.length;t<a;t++)if(e[t]===r)return t;return-1},forEach:function(e,r,t){var a,s;if(Array.prototype.forEach)return e.forEach(r,t);for(a=0,s=e.length;a<s;a++)r.call(t,e[a],a,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}},E=he;function ve(e,r){e=E.trimRight(e),e[e.length-1]!==";"&&(e+=";");var t=e.length,a=!1,s=0,i=0,l="";function n(){if(!a){var u=E.trim(e.slice(s,i)),f=u.indexOf(":");if(f!==-1){var p=E.trim(u.slice(0,f)),d=E.trim(u.slice(f+1));if(p){var h=r(s,l.length,p,d,u);h&&(l+=h+"; ")}}}s=i+1}for(;i<t;i++){var o=e[i];if(o==="/"&&e[i+1]==="*"){var c=e.indexOf("*/",i+2);if(c===-1)break;i=c+1,s=i+1,a=!1}else o==="("?a=!0:o===")"?a=!1:o===";"?a||n():o===`
3
+ `&&n()}return E.trim(l)}var me=ve,_=x,ye=me;function D(e){return e==null}function be(e){var r={};for(var t in e)r[t]=e[t];return r}function Z(e){e=be(e||{}),e.whiteList=e.whiteList||_.whiteList,e.onAttr=e.onAttr||_.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||_.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||_.safeAttrValue,this.options=e}Z.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var r=this,t=r.options,a=t.whiteList,s=t.onAttr,i=t.onIgnoreAttr,l=t.safeAttrValue,n=ye(e,function(o,c,u,f,p){var d=a[u],h=!1;if(d===!0?h=d:typeof d=="function"?h=d(f):d instanceof RegExp&&(h=d.test(f)),h!==!0&&(h=!1),f=l(u,f),!!f){var m={position:c,sourcePosition:o,source:p,isWhite:h};if(h){var v=s(u,f,m);return D(v)?u+":"+f:v}else{var v=i(u,f,m);if(!D(v))return v}}});return n};var we=Z;(function(e,r){var t=x,a=we;function s(l,n){var o=new a(n);return o.process(l)}r=e.exports=s,r.FilterCSS=a;for(var i in t)r[i]=t[i]})(W,W.exports);var $=W.exports,N={indexOf:function(e,r){var t,a;if(Array.prototype.indexOf)return e.indexOf(r);for(t=0,a=e.length;t<a;t++)if(e[t]===r)return t;return-1},forEach:function(e,r,t){var a,s;if(Array.prototype.forEach)return e.forEach(r,t);for(a=0,s=e.length;a<s;a++)r.call(t,e[a],a,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var r=/\s|\n|\t/,t=r.exec(e);return t?t.index:-1}},Ae=$.FilterCSS,xe=$.getDefaultWhiteList,F=N;function J(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var K=new Ae;function Se(e,r,t){}function Te(e,r,t){}function ke(e,r,t){}function Le(e,r,t){}function Y(e){return e.replace(Oe,"&lt;").replace(_e,"&gt;")}function Ee(e,r,t,a){if(t=se(t),r==="href"||r==="src"){if(t=F.trim(t),t==="#")return"#";if(!(t.substr(0,7)==="http://"||t.substr(0,8)==="https://"||t.substr(0,7)==="mailto:"||t.substr(0,4)==="tel:"||t.substr(0,11)==="data:image/"||t.substr(0,6)==="ftp://"||t.substr(0,2)==="./"||t.substr(0,3)==="../"||t[0]==="#"||t[0]==="/"))return""}else if(r==="background"){if(C.lastIndex=0,C.test(t))return""}else if(r==="style"){if(j.lastIndex=0,j.test(t)||(H.lastIndex=0,H.test(t)&&(C.lastIndex=0,C.test(t))))return"";a!==!1&&(a=a||K,t=a.process(t))}return t=ne(t),t}var Oe=/</g,_e=/>/g,Ce=/"/g,Ie=/&quot;/g,Ve=/&#([a-zA-Z0-9]*);?/gim,Pe=/&colon;?/gim,Fe=/&newline;?/gim,C=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,j=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,H=/u\s*r\s*l\s*\(.*/gi;function ee(e){return e.replace(Ce,"&quot;")}function te(e){return e.replace(Ie,'"')}function re(e){return e.replace(Ve,function(t,a){return a[0]==="x"||a[0]==="X"?String.fromCharCode(parseInt(a.substr(1),16)):String.fromCharCode(parseInt(a,10))})}function ae(e){return e.replace(Pe,":").replace(Fe," ")}function ie(e){for(var r="",t=0,a=e.length;t<a;t++)r+=e.charCodeAt(t)<32?" ":e.charAt(t);return F.trim(r)}function se(e){return e=te(e),e=re(e),e=ae(e),e=ie(e),e}function ne(e){return e=ee(e),e=Y(e),e}function Re(){return""}function ze(e,r){typeof r!="function"&&(r=function(){});var t=!Array.isArray(e);function a(l){return t?!0:F.indexOf(e,l)!==-1}var s=[],i=!1;return{onIgnoreTag:function(l,n,o){if(a(l))if(o.isClosing){var c="[/removed]",u=o.position+c.length;return s.push([i!==!1?i:o.position,u]),i=!1,c}else return i||(i=o.position),"[removed]";else return r(l,n,o)},remove:function(l){var n="",o=0;return F.forEach(s,function(c){n+=l.slice(o,c[0]),o=c[1]}),n+=l.slice(o),n}}}function Ge(e){for(var r="",t=0;t<e.length;){var a=e.indexOf("<!--",t);if(a===-1){r+=e.slice(t);break}r+=e.slice(t,a);var s=e.indexOf("-->",a);if(s===-1)break;t=s+3}return r}function We(e){var r=e.split("");return r=r.filter(function(t){var a=t.charCodeAt(0);return a===127?!1:a<=31?a===10||a===13:!0}),r.join("")}g.whiteList=J();g.getDefaultWhiteList=J;g.onTag=Se;g.onIgnoreTag=Te;g.onTagAttr=ke;g.onIgnoreTagAttr=Le;g.safeAttrValue=Ee;g.escapeHtml=Y;g.escapeQuote=ee;g.unescapeQuote=te;g.escapeHtmlEntities=re;g.escapeDangerHtml5Entities=ae;g.clearNonPrintableCharacter=ie;g.friendlyAttrValue=se;g.escapeAttrValue=ne;g.onIgnoreTagStripAll=Re;g.StripTagBody=ze;g.stripCommentTag=Ge;g.stripBlankChar=We;g.cssFilter=K;g.getDefaultCSSWhiteList=xe;var R={},A=N;function $e(e){var r=A.spaceIndex(e),t;return r===-1?t=e.slice(1,-1):t=e.slice(1,r+1),t=A.trim(t).toLowerCase(),t.slice(0,1)==="/"&&(t=t.slice(1)),t.slice(-1)==="/"&&(t=t.slice(0,-1)),t}function Ne(e){return e.slice(0,2)==="</"}function Ue(e,r,t){var a="",s=0,i=!1,l=!1,n=0,o=e.length,c="",u="";e:for(n=0;n<o;n++){var f=e.charAt(n);if(i===!1){if(f==="<"){i=n;continue}}else if(l===!1){if(f==="<"){a+=t(e.slice(s,n)),i=n,s=n;continue}if(f===">"){a+=t(e.slice(s,i)),u=e.slice(i,n+1),c=$e(u),a+=r(i,a.length,c,u,Ne(u)),s=n+1,i=!1;continue}if(f==='"'||f==="'")for(var p=1,d=e.charAt(n-p);d.trim()===""||d==="=";){if(d==="="){l=f;continue e}d=e.charAt(n-++p)}}else if(f===l){l=!1;continue}}return s<e.length&&(a+=t(e.substr(s))),a}var Xe=/[^a-zA-Z0-9\\_:.-]/gim;function De(e,r){var t=0,a=0,s=[],i=!1,l=e.length;function n(p,d){if(p=A.trim(p),p=p.replace(Xe,"").toLowerCase(),!(p.length<1)){var h=r(p,d||"");h&&s.push(h)}}for(var o=0;o<l;o++){var c=e.charAt(o),u,f;if(i===!1&&c==="="){i=e.slice(t,o),t=o+1,a=e.charAt(t)==='"'||e.charAt(t)==="'"?t:He(e,o+1);continue}if(i!==!1&&o===a){if(f=e.indexOf(c,o+1),f===-1)break;u=A.trim(e.slice(a+1,f)),n(i,u),i=!1,o=f,t=o+1;continue}if(/\s|\n|\t/.test(c))if(e=e.replace(/\s|\n|\t/g," "),i===!1)if(f=je(e,o),f===-1){u=A.trim(e.slice(t,o)),n(u),i=!1,t=o+1;continue}else{o=f-1;continue}else if(f=Be(e,o-1),f===-1){u=A.trim(e.slice(t,o)),u=B(u),n(i,u),i=!1,t=o+1;continue}else continue}return t<e.length&&(i===!1?n(e.slice(t)):n(i,B(A.trim(e.slice(t))))),A.trim(s.join(" "))}function je(e,r){for(;r<e.length;r++){var t=e[r];if(t!==" ")return t==="="?r:-1}}function He(e,r){for(;r<e.length;r++){var t=e[r];if(t!==" ")return t==="'"||t==='"'?r:-1}}function Be(e,r){for(;r>0;r--){var t=e[r];if(t!==" ")return t==="="?r:-1}}function qe(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function B(e){return qe(e)?e.substr(1,e.length-2):e}R.parseTag=Ue;R.parseAttr=De;var Qe=$.FilterCSS,b=g,oe=R,Me=oe.parseTag,Ze=oe.parseAttr,V=N;function I(e){return e==null}function Je(e){var r=V.spaceIndex(e);if(r===-1)return{html:"",closing:e[e.length-2]==="/"};e=V.trim(e.slice(r+1,-1));var t=e[e.length-1]==="/";return t&&(e=V.trim(e.slice(0,-1))),{html:e,closing:t}}function Ke(e){var r={};for(var t in e)r[t]=e[t];return r}function Ye(e){var r={};for(var t in e)Array.isArray(e[t])?r[t.toLowerCase()]=e[t].map(function(a){return a.toLowerCase()}):r[t.toLowerCase()]=e[t];return r}function le(e){e=Ke(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=b.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=Ye(e.whiteList||e.allowList):e.whiteList=b.whiteList,e.onTag=e.onTag||b.onTag,e.onTagAttr=e.onTagAttr||b.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||b.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||b.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||b.safeAttrValue,e.escapeHtml=e.escapeHtml||b.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new Qe(e.css))}le.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var r=this,t=r.options,a=t.whiteList,s=t.onTag,i=t.onIgnoreTag,l=t.onTagAttr,n=t.onIgnoreTagAttr,o=t.safeAttrValue,c=t.escapeHtml,u=r.cssFilter;t.stripBlankChar&&(e=b.stripBlankChar(e)),t.allowCommentTag||(e=b.stripCommentTag(e));var f=!1;t.stripIgnoreTagBody&&(f=b.StripTagBody(t.stripIgnoreTagBody,i),i=f.onIgnoreTag);var p=Me(e,function(d,h,m,v,fe){var O={sourcePosition:d,position:h,isClosing:fe,isWhite:Object.prototype.hasOwnProperty.call(a,m)},k=s(m,v,O);if(!I(k))return k;if(O.isWhite){if(O.isClosing)return"</"+m+">";var U=Je(v),ue=a[m],X=Ze(U.html,function(S,T){var z=V.indexOf(ue,S)!==-1,L=l(m,S,T,z);return I(L)?z?(T=o(m,S,T,u),T?S+'="'+T+'"':S):(L=n(m,S,T,z),I(L)?void 0:L):L});return v="<"+m,X&&(v+=" "+X),U.closing&&(v+=" /"),v+=">",v}else return k=i(m,v,O),I(k)?c(v):k},c);return f&&(p=f.remove(p)),p};var et=le;(function(e,r){var t=g,a=R,s=et;function i(n,o){var c=new s(o);return c.process(n)}r=e.exports=i,r.filterXSS=i,r.FilterXSS=s,(function(){for(var n in t)r[n]=t[n];for(var o in a)r[o]=a[o]})();function l(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}l()&&(self.filterXSS=e.exports)})(G,G.exports);var w=G.exports,tt=function(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return!1;var r=Object.getPrototypeOf(e);if(r===null)return!0;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r},rt=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],y=["color","display","fill-opacity","font-family","font-size","font-style","font-weight","opacity","shape-rendering","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-rendering","transform","visibility"],at=["cx","cy","r"],it=["cx","cy","rx","ry"],st=["x1","x2","y1","y2"],q=["points"],nt=["rx","ry","x","y"],Q=["dx","dy","x","y"],ot=(function(){function e(r,t){var a=this;this.arcgisWhiteList={a:["href","style","target"],abbr:["title"],animate:[],animatetransform:[],article:["style"],aside:["style"],audio:["autoplay","controls","loop","muted","preload"],b:[],blockquote:["style"],br:[],circle:at.concat(y),clippath:[],code:["style"],dd:["style"],defs:[],del:["style"],details:["open","style"],div:["align","aria-hidden","aria-label","style"],dl:["style"],dt:["style"],ellipse:it.concat(y),em:[],figcaption:["style"],figure:["style"],font:["color","face","size","style"],footer:["style"],g:y.slice(),h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],header:["style"],hr:[],i:[],image:[],img:["alt","border","height","src","style","width"],li:[],line:st.concat(y),lineargradient:[],main:["style"],mark:["style"],marker:[],mask:[],nav:["style"],ol:[],p:["style"],path:["d"].concat(y),pattern:[],polygon:q.concat(y),polyline:q.concat(y),pre:["style"],radialgradient:[],rect:nt.concat(y),section:["style"],source:["media","src","type"],span:["aria-hidden","aria-label","style"],stop:["offset","stop-color","stop-opacity"],strong:[],sub:["style"],summary:["style"],sup:["style"],svg:["height","preserveaspectratio","viewbox","width","xmlns"].concat(y),switch:[],symbol:[],table:["border","cellpadding","cellspacing","height","style","width"],tbody:[],tr:["align","height","style","valign"],td:["align","colspan","height","nowrap","rowspan","style","valign","width"],th:["align","colspan","height","nowrap","rowspan","style","valign","width"],text:Q.concat(y),textpath:[],time:["style"],tspan:Q.concat(y),u:[],ul:[],use:[],video:["autoplay","controls","height","loop","muted","poster","preload","width"]},this.arcgisCSSWhiteList=P(P({},w.getDefaultCSSWhiteList()),{"align-items":!0,"align-self":!0,flex:!0,"flex-basis":!0,"flex-direction":!0,"flex-flow":!0,"flex-grow":!0,"flex-shrink":!0,"flex-wrap":!0,float:!0,gap:!0,grid:!0,"grid-area":!0,"grid-auto-columns":!0,"grid-auto-flow":!0,"grid-auto-rows":!0,"grid-column":!0,"grid-column-end":!0,"grid-column-start":!0,"grid-row":!0,"grid-row-end":!0,"grid-row-start":!0,"grid-template":!0,"grid-template-areas":!0,"grid-template-columns":!0,"grid-template-rows":!0,"justify-content":!0,"justify-items":!0,"justify-self":!0,"line-height":!0,overflow:!0,"row-gap":!0}),this.allowedProtocols=["http","https","mailto","iform","tel","flow","lfmobile","arcgis-navigator","arcgis-appstudio-player","arcgis-survey123","arcgis-collector","arcgis-workforce","arcgis-explorer","arcgis-trek2there","arcgis-quickcapture","mspbi","comgooglemaps","pdfefile","pdfehttp","pdfehttps","boxapp","boxemm","awb","awbs","gropen","radarscope","clickmobile","com.salesforce.fieldservice"],this.arcgisFilterOptions={allowCommentTag:!0,onTagAttr:function(i,l,n){if(i==="svg"){if(l==="viewbox")return'viewBox="'.concat(w.escapeAttrValue(n),'"');if(l==="preserveaspectratio")return'preserveAspectRatio="'.concat(w.escapeAttrValue(n),'"')}if(rt.indexOf(l)>-1)return"".concat(l,'="').concat(w.escapeAttrValue(n),'"')},safeAttrValue:function(i,l,n,o){return i==="a"&&l==="href"||(i==="img"||i==="source")&&l==="src"?a.sanitizeUrl(n):w.safeAttrValue(i,l,n,o)}},this._entityMap={"&":"&#x38;","<":"&#x3C;",">":"&#x3E;",'"':"&#x22;","'":"&#x27;","/":"&#x2F;"};var s;r&&!t?s=r:r&&t?(s=Object.create(this.arcgisFilterOptions),s.css={whiteList:this.arcgisCSSWhiteList},Object.keys(r).forEach(function(i){if(i==="whiteList")s.whiteList=a._extendObjectOfArrays([a.arcgisWhiteList,r.whiteList||{}]);else if(i==="css"){var l=r.css.whiteList;l!=null&&r.css instanceof Object&&Object.keys(l).forEach(function(n){return s.css.whiteList[n]=l[n]})}else s[i]=r[i]})):(s=Object.create(this.arcgisFilterOptions),s.whiteList=this.arcgisWhiteList,s.css={whiteList:this.arcgisCSSWhiteList}),this.xssFilterOptions=s,this._xssFilter=new w.FilterXSS(s)}return e.prototype.sanitize=function(r,t){switch(t===void 0&&(t={}),typeof r){case"number":return isNaN(r)||!isFinite(r)?null:r;case"boolean":return r;case"string":return this._xssFilter.process(r);case"object":return this._iterateOverObject(r,t);default:return t.allowUndefined&&typeof r>"u"?void 0:null}},e.prototype.sanitizeUrl=function(r,t){var a=(t??{}).isProtocolRequired,s=a===void 0?!0:a,i=this._trim(r.substring(0,r.indexOf(":"))),l=r==="/",n=/^#/.test(r),o=i&&this.allowedProtocols.indexOf(i.toLowerCase())>-1;return l||n||o?w.escapeAttrValue(r):!i&&!s?w.escapeAttrValue("https://".concat(r)):""},e.prototype.sanitizeHTMLAttribute=function(r,t,a,s){return typeof this.xssFilterOptions.safeAttrValue=="function"?this.xssFilterOptions.safeAttrValue(r,t,a,s):w.safeAttrValue(r,t,a,s)},e.prototype.validate=function(r,t){t===void 0&&(t={});var a=this.sanitize(r,t);return{isValid:r===a,sanitized:a}},e.prototype.encodeHTML=function(r){var t=this;return String(r).replace(/[&<>"'\/]/g,function(a){return t._entityMap[a]})},e.prototype.encodeAttrValue=function(r){var t=/^[a-zA-Z0-9]$/;return String(r).replace(/[\x00-\xFF]/g,function(a,s){return t.test(a)?a:"&#x".concat(Number(r.charCodeAt(s)).toString(16),";")})},e.prototype._extendObjectOfArrays=function(r){var t={};return r.forEach(function(a){Object.keys(a).forEach(function(s){Array.isArray(a[s])&&Array.isArray(t[s])?t[s]=t[s].concat(a[s]):t[s]=a[s]})}),t},e.prototype._iterateOverObject=function(r,t){var a=this;t===void 0&&(t={});try{var s=!1,i=void 0;if(Array.isArray(r))i=r.reduce(function(n,o){var c=a.validate(o,t);return c.isValid?n.concat([o]):(s=!0,n.concat([c.sanitized]))},[]);else if(tt(r)){var l=Object.keys(r);i=l.reduce(function(n,o){var c=r[o],u=a.validate(c,t);return u.isValid?n[o]=c:(s=!0,n[o]=u.sanitized),n},{})}else return t.allowUndefined&&typeof r>"u"?void 0:null;return s?i:r}catch{return null}},e.prototype._trim=function(r){return String.prototype.trim?r.trim():r.replace(/(^\s*)|(\s*$)/g,"")},e})();export{ot as a};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{e as w,g as x,o as E,p as D}from"./TTFTN2LD.js";import{a as B,b as f,c as T}from"./LNXO5YIS.js";import{a as A}from"./TO3YFXVJ.js";import"./LLATF73T.js";import"./XX2ZCFWI.js";import{a as C}from"./EB5MDEWF.js";import{J as R,K as U,L as H,R as _,h as O,j as Z,o as $,p as F,t as I}from"./BCN6LPOG.js";export default $arcgis.t(([{formatDate:N,convertDateFormatToIntlOptions:y,formatDateOnly:ie,formatTimeOnly:se,formatTimestamp:M,formatNumber:ae},ne,K,{clone:S}])=>{function W(i){return new Date(`1970-01-01T${i}Z`).getTime()}function P(i){return new Date(`${i} 00:00:00`).getTime()}function oe(i,e,s){let t;return e==="unknown"?t=N(i,{...y("short-date-short-time"),timeZone:"utc",timeZoneName:"shortOffset"}):t=N(i,{...y("short-date-short-time"),timeZone:e}),t}function le(i){return i?ie(i,y("short-date")):""}function re(i){let e;return typeof i=="string"?e=se(i,y("short-date-long-time")):e=N(i,{...y("long-time"),timeZone:"utc"}),e}function ue(i,e){return typeof i=="string"?e&&"timeZone"in e&&e.timeZone==="unknown"?M(i,{...y("short-date-short-time"),timeZone:"utc",timeZoneName:"shortOffset"}):M(i,{...y("short-date-short-time"),timeZone:e&&"timeZone"in e&&e.timeZone?e.timeZone:"system"}):e&&"timeZone"in e&&e.timeZone==="unknown"?N(i,{...y("short-date-short-time"),timeZone:"utc",timeZoneName:"shortOffset"}):N(i,{...y("short-date-short-time"),timeZone:e&&"timeZone"in e&&e.timeZone?e.timeZone:"system"})}function j(i,e,s){if(!w(i)&&!D(i)&&!E(i)&&!x(i))return;let t;return T(i,s).fields.forEach(l=>{let a=l.name,c="domain"in l?l.domain:void 0;if(!x(i)&&i.subtypeField===a){let m;E(i)||w(i)?m=i.subtypes:m=i.parent.subtypes,m.forEach(r=>{D(i)&&i.subtypeCode!==r.code||(e.name===a&&(t=t||[],t.push({code:r.code,name:r.name})),r.domains&&Object.keys(r.domains).forEach(n=>{if(e.name===n){let o=r.domains[n];o?.type==="coded-value"&&o?.codedValues&&o.codedValues.forEach(u=>{let d=!1;t=t||[],t.forEach(g=>{g.code===u.code&&(d=!0,`| ${g.name} |`.includes(`| ${u.name} |`)||(g.name+=` | ${u.name}`))}),d||t.push({code:u.code,name:u.name})})}}))})}if(e.name===a&&(w(i)||x(i))){let m=w(i)?i.typeIdField:void 0,r=w(i)?i.types:void 0;w(i)&&m&&r?(m===a?t=r.map(n=>({code:n.id,name:n.name})):(t=t||[],r.forEach(n=>{if(!n.domains?.[a]||n.domains[a].type==="inherited"){let o=c;o?.codedValues&&o.codedValues.forEach(u=>{let d=!1;t.forEach(g=>{g.code===u.code&&(d=!0,`| ${g.name} |`.includes(`| ${u.name} |`)||(g.name+=` | ${u.name}`))}),d||t.push(S(u))})}else n.domains?.[a]?.codedValues&&n.domains[a].codedValues.forEach(o=>{let u=!1;t.forEach(d=>{d.code===o.code&&(u=!0,`| ${d.name} |`.includes(`| ${o.name} |`)||(d.name+=` | ${o.name}`))}),u||t.push(S(o))})})),!t?.length&&c?.codedValues&&(t=S(c.codedValues))):c?.codedValues&&(t=c.codedValues)}}),t}function L(i,e){let s=e;if(s){let t="";for(let l=0;l<s.length;l++){let a=s[l];a.code==i&&(t+=(t.length?" | ":"")+a.name)}return t.length||(t=`${i}`),t}return i}function G(i){return["small-integer","big-integer","integer","single","double","long"].includes(i.type)}function J(i){switch(i.type){case"small-integer":case"big-integer":case"integer":case"single":case"double":case"long":return"number";case"blob":case"geometry":case"global-id":case"guid":case"oid":case"raster":case"xml":return;default:return i.type}}var de=O`:host{width:100%}.container{min-height:30px}.popover-unique-list{width:100%;overflow-y:auto}.unique-values-content-list-msg{font-size:75%;margin:5px}.count{padding:0 6px;font-size:smaller;white-space:nowrap}`,k=class extends H{constructor(){super(...arguments),this.dropdownNode=R(),this.initialized=!1,this._messages=A({blocking:!0}),this._propWatcherTask=new B(this,{task:async([e,s,t])=>{let l=f(e)&&f(s)||f(t);if(!f(t)&&!f(e)&&!f(s)?$("error",this,F("uniqueValues")):f(t)||(f(e)||$("error",this,F("layer")),f(s)||$("error",this,F("fieldName"))),f(e)&&f(s)){let{visualizationSource:a}=this;if(!T(e,a).fields?.filter(c=>c.name===s))throw $("error",this,"Field could not be found."),new Error}if(!l)throw new Error;await this.processProps(),this._propWatcherTask.autoRun=!1},args:()=>[this.layer,this.fieldName,this.uniqueValues]}),this.initialRender=!0,this.multiple=!1,this.partialUniqueValues=!1,this.showFilterLength=10,this.arcgisChange=I(),this.arcgisSortByChange=I(),this.arcgisLoad=I()}static{this.properties={initialRender:16,view:0,layer:0,visualizationSource:1,fieldName:1,uniqueValues:0,numberFormatOptions:0,selectedValues:0,sortBy:1,multiple:5,partialUniqueValues:5,showFilterLength:9,maxHeight:9}}static{this.styles=de}async setFocus(){this.listNode?.setFocus()}async getUniqueValues(){let{fieldInfo:e}=this;if(f(e?.uniqueValueInfos)){let{uniqueValueInfos:s,partialUniqueValues:t}=e;return{uniqueValues:s,partialUniqueValues:t}}}loaded(){this.layer&&this.fieldInfo&&(setTimeout(()=>this.initialRender=!1,800),this.listNode?.setFocus())}willUpdate(e){this.initialized&&(e.has("layer")||e.has("visualizationSource")||e.has("fieldName")||e.has("uniqueValues"))&&this.processProps().then(()=>this.requestUpdate()),e.has("maxHeight")&&this.maxHeight&&this.listNode?.setAttribute("style",`max-height: ${this.maxHeight||400}px`)}async processProps(){let{layer:e,fieldName:s,view:t,visualizationSource:l}=this,a=(e?T(e,l):void 0)?.fields?.filter(c=>c.name===s)?.[0];if(!a){$("error",this,`Field '${s}' not found in layer`),this.fieldInfo={layerField:a,fieldDomains:void 0,simpleType:void 0,partialUniqueValues:!1,uniqueValueInfos:[]};return}if(f(this.uniqueValues))this.fieldInfo={layerField:a,fieldDomains:e&&a?j(e,a,l):void 0,simpleType:e&&a?J(a):void 0,partialUniqueValues:this.partialUniqueValues??!1,uniqueValueInfos:this.uniqueValues},this.arcgisLoad.emit();else if(e&&a){this.fieldInfo={layerField:a,fieldDomains:j(e,a,l),simpleType:J(a),partialUniqueValues:!1};let{fieldInfo:c}=this;try{let m=await ne({layer:e,view:t,field:s,sqlWhere:"definitionExpression"in e?e.definitionExpression??void 0:void 0,forBinning:l==="feature-reduction"}),r=G(a),n=m.uniqueValueInfos.filter(o=>f(o.value)?a.type==="string"&&!r||a.type==="guid"?o.value!=="<Null>"&&`${o.value}`.trim()!=="":(G(a)||a.type,o.value!=="<Null>"&&o.value!==""):!1);n.sort((o,u)=>o.count>u.count?-1:o.count<u.count?1:0),c.fieldDomains?.length&&c.fieldDomains.forEach(o=>{n.find(u=>u.value===o.code)||n.push({value:o.code,count:0})}),c.uniqueValueInfos=n,c.partialUniqueValues=m.uniqueValueInfos.length===2e3,this.initialized||this.arcgisLoad.emit(),this.setUpTimeZoneHandle(),this.initialized=!0}catch(m){if($("error",this,`uniqueValues() - ${m.message}`),this.hasFieldDomains(c)){let r=[];c.fieldDomains.forEach(n=>{r.find(o=>o.value===n.code)||r.push({value:n.code,count:void 0})})}this.initialized=!0}setTimeout(()=>{this.initialRender=!1,this.listNode?.setFocus()},800)}}setListRef(e){let{maxHeight:s}=this;this.listNode=e,s&&e?.setAttribute("style",`max-height: ${s||400}px`)}onSortMenuSelect(e){let s=e.currentTarget.selectedItems?.[0].getAttribute("data-value");this.sortBy=s||void 0,this.arcgisSortByChange.emit(s||void 0)}setUpTimeZoneHandle(){this.timeZoneHandle?.remove();let{view:e,fieldInfo:s}=this;s.simpleType&&["date","timestamp-offset"].includes(s.simpleType)&&(this.timeZoneHandle=K.watch(()=>e?.timeZone,()=>this.requestUpdate()))}isSameLists(e,s){if(!e&&!s)return!0;if(!e||!s||e?.length!==s?.length)return!1;for(let t=0;t<e.length;t++)if(e[t]!==s[t])return!1;return!0}hasFieldDomains(e){return!!e.fieldDomains?.length}render(){return this._propWatcherTask.render({complete:()=>{let{fieldInfo:e,selectedValues:s,sortBy:t,multiple:l,initialRender:a,showFilterLength:c,_messages:m}=this,{fieldDomains:r,uniqueValueInfos:n,partialUniqueValues:o,layerField:u}=e,d=u?.type;if(!n?.length)return"";let g=d?["small-integer","big-integer","integer","single","double","long","oid"].includes(d):!1,Q=d?["date","date-only","time-only"].includes(d):!1,X=v=>{v.sort((h,p)=>h.count<=p.count?1:-1)},Y=v=>{let h=r?.length;v.sort((p,V)=>{if(!h&&g)return(typeof p.value=="string"?Number.parseFloat(p.value):p.value)-(typeof V.value=="string"?Number.parseFloat(V.value):V.value);{let q=h?L(p.value,r):p.label??p.value,b=h?L(V.value,r):V.label??V.value;return`${q}`.startsWith("_")?1:`${b}`.startsWith("_")?-1:`${q}`.localeCompare(`${b}`)}})},ee=(v,h)=>{v.sort((p,V)=>{let q=h?.indexOf(p.value)??-1,b=h?.indexOf(V.value)??-1;return q===b||q>-1&&b>-1?0:q>b?-1:1})};Y(n),!t||t==="count"?X(n):t==="selected"&&ee(n,s);let te=n.map(v=>this.renderUniqueValue(v)),z;return o&&!a&&(z=Z`<div class="unique-values-content-list-msg">${m.errors.tooManyUniqueValues}</div>`),Z`<div class="container"><calcite-list .label=${m.values} class="popover-unique-list" .filterEnabled=${n.length>=c} .selectionMode=${l?"multiple":"single"} .filterPlaceholder=${m.searchValues} @calciteListChange=${v=>{let h=v.currentTarget.selectedItems.map(p=>p.value);!r&&d==="date-only"?h=h?.map(p=>P(p)):!r&&d==="time-only"?h=h?.map(p=>W(p)):d&&["date","oid","small-integer","big-integer","integer","long"].includes(d)?h=h?.map(p=>Number.parseInt(p)):d&&["single","double"].includes(d)&&(h=h?.map(p=>Number.parseFloat(p))),!this.isSameLists(h,this.selectedValues)&&(this.selectedValues=h,this.arcgisChange.emit(h))}} @calciteListFilter=${()=>{this.dropdownNode.value&&(this.dropdownNode.value.disabled=this.listNode.filteredItems.length<4)}} ${U(this.setListRef)}>${n.length>=c&&!a?this.renderSort(g,Q):null}${te}</calcite-list>${z}</div>`},error:()=>""})}renderSort(e,s){let{sortBy:t,_messages:l}=this;return Z`<calcite-dropdown slot=filter-actions-end placement=bottom-end overlay-positioning=fixed @calciteDropdownSelect=${this.onSortMenuSelect} ${U(this.dropdownNode)}><calcite-action slot=trigger .label=${l.sortValues} text><calcite-icon scale=s icon=sortDescending flip-rtl></calcite-icon></calcite-action><calcite-dropdown-group><calcite-dropdown-item .selected=${t==="count"||!f(t)} data-value=count>${l.sortByCount}</calcite-dropdown-item><calcite-dropdown-item .selected=${t==="name"} data-value=name>${e||s?l.sortAscending:l.sortAlphabetical}</calcite-dropdown-item><calcite-dropdown-item .selected=${t==="selected"} data-value=selected>${l.sortSelected}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown>`}renderUniqueValue(e){let{selectedValues:s,initialRender:t,view:l,fieldInfo:a,numberFormatOptions:c}=this,{fieldDomains:m,uniqueValueInfos:r,simpleType:n}=a,o=l&&"timeZone"in l&&l.timeZone||"system",u=m?.length?L(e.value,m):n==="date"?oe(e.value,o):n==="date-only"?le(e.value):n==="time-only"?re(e.value):n==="timestamp-offset"?ue(e.value,l):typeof e.value=="number"?ae(e.value,c):e.label??e.value,d=s?n==="date-only"?s.includes(m?.length?e.value:P(e.value)):n==="time-only"?s.includes(m?.length?e.value:W(e.value)):s.includes(e.value):!1;return C(`list-item_${e.value}`,Z`<calcite-list-item .label=${`${u}`} .value=${`${e.value}`} .selected=${d}>${f(e.count)&&(r.length>200&&!t||r.length<=200)?Z`<div class="count" slot=actions-end>${`${e.count}`}</div>`:null}</calcite-list-item>`)}};_("arcgis-unique-values-list",k);return k},"intl","smartMapping/statistics/uniqueValues","core/reactiveUtils","core/lang")
2
+ import{e as w,g as x,o as E,p as D}from"./TTFTN2LD.js";import{a as B,b as p,c as T}from"./BDIGRQ2U.js";import{a as A}from"./LLLQXE2U.js";import"./JYWWX277.js";import"./XMMFL5H3.js";import{a as C}from"./TE77L77R.js";import{J as R,K as U,L as H,S as _,h as O,j as Z,o as $,p as F,t as I}from"./4IMLX5B4.js";export default $arcgis.t(([{formatDate:N,convertDateFormatToIntlOptions:y,formatDateOnly:ie,formatTimeOnly:se,formatTimestamp:M,formatNumber:ae},ne,K,{clone:S}])=>{function W(i){return new Date(`1970-01-01T${i}Z`).getTime()}function P(i){return new Date(`${i} 00:00:00`).getTime()}function oe(i,e,s){let t;return e==="unknown"?t=N(i,{...y("short-date-short-time"),timeZone:"utc",timeZoneName:"shortOffset"}):t=N(i,{...y("short-date-short-time"),timeZone:e}),t}function le(i){return i?ie(i,y("short-date")):""}function re(i){let e;return typeof i=="string"?e=se(i,y("short-date-long-time")):e=N(i,{...y("long-time"),timeZone:"utc"}),e}function ue(i,e){return typeof i=="string"?e&&"timeZone"in e&&e.timeZone==="unknown"?M(i,{...y("short-date-short-time"),timeZone:"utc",timeZoneName:"shortOffset"}):M(i,{...y("short-date-short-time"),timeZone:e&&"timeZone"in e&&e.timeZone?e.timeZone:"system"}):e&&"timeZone"in e&&e.timeZone==="unknown"?N(i,{...y("short-date-short-time"),timeZone:"utc",timeZoneName:"shortOffset"}):N(i,{...y("short-date-short-time"),timeZone:e&&"timeZone"in e&&e.timeZone?e.timeZone:"system"})}function j(i,e,s){if(!w(i)&&!D(i)&&!E(i)&&!x(i))return;let t;return T(i,s).fields.forEach(l=>{let a=l.name,c="domain"in l?l.domain:void 0;if(!x(i)&&i.subtypeField===a){let m;E(i)||w(i)?m=i.subtypes:m=i.parent.subtypes,m.forEach(r=>{D(i)&&i.subtypeCode!==r.code||(e.name===a&&(t=t||[],t.push({code:r.code,name:r.name})),r.domains&&Object.keys(r.domains).forEach(n=>{if(e.name===n){let o=r.domains[n];o?.type==="coded-value"&&o?.codedValues&&o.codedValues.forEach(u=>{let d=!1;t=t||[],t.forEach(g=>{g.code===u.code&&(d=!0,`| ${g.name} |`.includes(`| ${u.name} |`)||(g.name+=` | ${u.name}`))}),d||t.push({code:u.code,name:u.name})})}}))})}if(e.name===a&&(w(i)||x(i))){let m=w(i)?i.typeIdField:void 0,r=w(i)?i.types:void 0;w(i)&&m&&r?(m===a?t=r.map(n=>({code:n.id,name:n.name})):(t=t||[],r.forEach(n=>{if(!n.domains?.[a]||n.domains[a].type==="inherited"){let o=c;o?.codedValues&&o.codedValues.forEach(u=>{let d=!1;t.forEach(g=>{g.code===u.code&&(d=!0,`| ${g.name} |`.includes(`| ${u.name} |`)||(g.name+=` | ${u.name}`))}),d||t.push(S(u))})}else n.domains?.[a]?.codedValues&&n.domains[a].codedValues.forEach(o=>{let u=!1;t.forEach(d=>{d.code===o.code&&(u=!0,`| ${d.name} |`.includes(`| ${o.name} |`)||(d.name+=` | ${o.name}`))}),u||t.push(S(o))})})),!t?.length&&c?.codedValues&&(t=S(c.codedValues))):c?.codedValues&&(t=c.codedValues)}}),t}function L(i,e){let s=e;if(s){let t="";for(let l=0;l<s.length;l++){let a=s[l];a.code==i&&(t+=(t.length?" | ":"")+a.name)}return t.length||(t=`${i}`),t}return i}function G(i){return["small-integer","big-integer","integer","single","double","long"].includes(i.type)}function J(i){switch(i.type){case"small-integer":case"big-integer":case"integer":case"single":case"double":case"long":return"number";case"blob":case"geometry":case"global-id":case"guid":case"oid":case"raster":case"xml":return;default:return i.type}}var de=O`:host{width:100%}.container{min-height:30px}.popover-unique-list{width:100%;overflow-y:auto}.unique-values-content-list-msg{font-size:75%;margin:5px}.count{padding:0 6px;font-size:smaller;white-space:nowrap}`,k=class extends H{constructor(){super(...arguments),this.dropdownNode=R(),this.initialized=!1,this._messages=A({blocking:!0}),this._propWatcherTask=new B(this,{task:async([e,s,t])=>{let l=p(e)&&p(s)||p(t);if(!p(t)&&!p(e)&&!p(s)?$("error",this,F("uniqueValues")):p(t)||(p(e)||$("error",this,F("layer")),p(s)||$("error",this,F("fieldName"))),p(e)&&p(s)){let{visualizationSource:a}=this;if(!T(e,a).fields?.filter(c=>c.name===s))throw $("error",this,"Field could not be found."),new Error}if(!l)throw new Error;await this.processProps(),this._propWatcherTask.autoRun=!1},args:()=>[this.layer,this.fieldName,this.uniqueValues]}),this.initialRender=!0,this.multiple=!1,this.partialUniqueValues=!1,this.showFilterLength=10,this.arcgisChange=I(),this.arcgisSortByChange=I(),this.arcgisLoad=I()}static{this.properties={initialRender:16,view:0,layer:0,visualizationSource:1,fieldName:1,uniqueValues:0,numberFormatOptions:0,selectedValues:0,sortBy:1,multiple:5,partialUniqueValues:5,showFilterLength:9,maxHeight:9}}static{this.styles=de}async setFocus(){this.listNode?.setFocus()}async getUniqueValues(){let{fieldInfo:e}=this;if(p(e?.uniqueValueInfos)){let{uniqueValueInfos:s,partialUniqueValues:t}=e;return{uniqueValues:s,partialUniqueValues:t}}}loaded(){this.layer&&this.fieldInfo&&(setTimeout(()=>this.initialRender=!1,800),this.listNode?.setFocus())}willUpdate(e){this.initialized&&(e.has("layer")||e.has("visualizationSource")||e.has("fieldName")||e.has("uniqueValues"))&&this.processProps().then(()=>this.requestUpdate()),e.has("maxHeight")&&this.maxHeight&&this.listNode?.setAttribute("style",`max-height: ${this.maxHeight||400}px`)}async processProps(){let{layer:e,fieldName:s,view:t,visualizationSource:l}=this,a=(e?T(e,l):void 0)?.fields?.filter(c=>c.name===s)?.[0];if(!a){$("error",this,`Field '${s}' not found in layer`),this.fieldInfo={layerField:a,fieldDomains:void 0,simpleType:void 0,partialUniqueValues:!1,uniqueValueInfos:[]};return}if(p(this.uniqueValues))this.fieldInfo={layerField:a,fieldDomains:e&&a?j(e,a,l):void 0,simpleType:e&&a?J(a):void 0,partialUniqueValues:this.partialUniqueValues??!1,uniqueValueInfos:this.uniqueValues},this.arcgisLoad.emit();else if(e&&a){this.fieldInfo={layerField:a,fieldDomains:j(e,a,l),simpleType:J(a),partialUniqueValues:!1};let{fieldInfo:c}=this;try{let m=await ne({layer:e,view:t,field:s,sqlWhere:"definitionExpression"in e?e.definitionExpression??void 0:void 0,forBinning:l==="feature-reduction"}),r=G(a),n=m.uniqueValueInfos.filter(o=>p(o.value)?a.type==="string"&&!r||a.type==="guid"?o.value!=="<Null>"&&`${o.value}`.trim()!=="":(G(a)||a.type,o.value!=="<Null>"&&o.value!==""):!1);n.sort((o,u)=>o.count>u.count?-1:o.count<u.count?1:0),c.fieldDomains?.length&&c.fieldDomains.forEach(o=>{n.find(u=>u.value===o.code)||n.push({value:o.code,count:0})}),c.uniqueValueInfos=n,c.partialUniqueValues=m.uniqueValueInfos.length===2e3,this.initialized||this.arcgisLoad.emit(),this.setUpTimeZoneHandle(),this.initialized=!0}catch(m){if($("error",this,`uniqueValues() - ${m.message}`),this.hasFieldDomains(c)){let r=[];c.fieldDomains.forEach(n=>{r.find(o=>o.value===n.code)||r.push({value:n.code,count:void 0})})}this.initialized=!0}setTimeout(()=>{this.initialRender=!1,this.listNode?.setFocus()},800)}}setListRef(e){let{maxHeight:s}=this;this.listNode=e,s&&e?.setAttribute("style",`max-height: ${s||400}px`)}onSortMenuSelect(e){let s=e.currentTarget.selectedItems?.[0].getAttribute("data-value");this.sortBy=s||void 0,this.arcgisSortByChange.emit(s||void 0)}setUpTimeZoneHandle(){this.timeZoneHandle?.remove();let{view:e,fieldInfo:s}=this;s.simpleType&&["date","timestamp-offset"].includes(s.simpleType)&&(this.timeZoneHandle=K.watch(()=>e?.timeZone,()=>this.requestUpdate()))}isSameLists(e,s){if(!e&&!s)return!0;if(!e||!s||e?.length!==s?.length)return!1;for(let t=0;t<e.length;t++)if(e[t]!==s[t])return!1;return!0}hasFieldDomains(e){return!!e.fieldDomains?.length}render(){return this._propWatcherTask.render({complete:()=>{let{fieldInfo:e,selectedValues:s,sortBy:t,multiple:l,initialRender:a,showFilterLength:c,_messages:m}=this,{fieldDomains:r,uniqueValueInfos:n,partialUniqueValues:o,layerField:u}=e,d=u?.type;if(!n?.length)return"";let g=d?["small-integer","big-integer","integer","single","double","long","oid"].includes(d):!1,Q=d?["date","date-only","time-only"].includes(d):!1,X=v=>{v.sort((h,f)=>h.count<=f.count?1:-1)},Y=v=>{let h=r?.length;v.sort((f,V)=>{if(!h&&g)return(typeof f.value=="string"?Number.parseFloat(f.value):f.value)-(typeof V.value=="string"?Number.parseFloat(V.value):V.value);{let q=h?L(f.value,r):f.label??f.value,b=h?L(V.value,r):V.label??V.value;return`${q}`.startsWith("_")?1:`${b}`.startsWith("_")?-1:`${q}`.localeCompare(`${b}`)}})},ee=(v,h)=>{v.sort((f,V)=>{let q=h?.indexOf(f.value)??-1,b=h?.indexOf(V.value)??-1;return q===b||q>-1&&b>-1?0:q>b?-1:1})};Y(n),!t||t==="count"?X(n):t==="selected"&&ee(n,s);let te=n.map(v=>this.renderUniqueValue(v)),z;return o&&!a&&(z=Z`<div class="unique-values-content-list-msg">${m.errors.tooManyUniqueValues}</div>`),Z`<div class="container"><calcite-list .label=${m.values} class="popover-unique-list" .filterEnabled=${n.length>=c} .selectionMode=${l?"multiple":"single"} .filterPlaceholder=${m.searchValues} @calciteListChange=${v=>{let h=v.currentTarget.selectedItems.map(f=>f.value);!r&&d==="date-only"?h=h?.map(f=>P(f)):!r&&d==="time-only"?h=h?.map(f=>W(f)):d&&["date","oid","small-integer","big-integer","integer","long"].includes(d)?h=h?.map(f=>Number.parseInt(f)):d&&["single","double"].includes(d)&&(h=h?.map(f=>Number.parseFloat(f))),!this.isSameLists(h,this.selectedValues)&&(this.selectedValues=h,this.arcgisChange.emit(h))}} @calciteListFilter=${()=>{this.dropdownNode.value&&(this.dropdownNode.value.disabled=this.listNode.filteredItems.length<4)}} ${U(this.setListRef)}>${n.length>=c&&!a?this.renderSort(g,Q):null}${te}</calcite-list>${z}</div>`},error:()=>""})}renderSort(e,s){let{sortBy:t,_messages:l}=this;return Z`<calcite-action id=sort-action slot=filter-actions-end .label=${l.sortValues} text><calcite-icon scale=s icon=sort-descending flip-rtl></calcite-icon></calcite-action><calcite-dropdown placement=bottom-end overlay-positioning=fixed reference-element=sort-action @calciteDropdownSelect=${this.onSortMenuSelect} ${U(this.dropdownNode)}><calcite-dropdown-group><calcite-dropdown-item .selected=${t==="count"||!p(t)} data-value=count>${l.sortByCount}</calcite-dropdown-item><calcite-dropdown-item .selected=${t==="name"} data-value=name>${e||s?l.sortAscending:l.sortAlphabetical}</calcite-dropdown-item><calcite-dropdown-item .selected=${t==="selected"} data-value=selected>${l.sortSelected}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown>`}renderUniqueValue(e){let{selectedValues:s,initialRender:t,view:l,fieldInfo:a,numberFormatOptions:c}=this,{fieldDomains:m,uniqueValueInfos:r,simpleType:n}=a,o=l&&"timeZone"in l&&l.timeZone||"system",u=m?.length?L(e.value,m):n==="date"?oe(e.value,o):n==="date-only"?le(e.value):n==="time-only"?re(e.value):n==="timestamp-offset"?ue(e.value,l):typeof e.value=="number"?ae(e.value,c):e.label??e.value,d=s?n==="date-only"?s.includes(m?.length?e.value:P(e.value)):n==="time-only"?s.includes(m?.length?e.value:W(e.value)):s.includes(e.value):!1;return C(`list-item_${e.value}`,Z`<calcite-list-item .label=${`${u}`} .value=${`${e.value}`} .selected=${d}>${p(e.count)&&(r.length>200&&!t||r.length<=200)?Z`<div class="count" slot=actions-end>${`${e.count}`}</div>`:null}</calcite-list-item>`)}};_("arcgis-unique-values-list",k);return k},"intl","smartMapping/statistics/uniqueValues","core/reactiveUtils","core/lang")
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{L as p,R as m,h as l,j as e}from"./BCN6LPOG.js";export default $arcgis.t(([t])=>{var h=l`:host{display:block;block-size:30px;inline-size:100%}:host([layout="vertical"]){writing-mode:vertical-lr}arcgis-ramp-color{block-size:inherit;inline-size:inherit}`,c=new t([0,121,193]),o=class extends p{constructor(){super(...arguments),this._rampStops=[],this.fillColor=c.clone(),this.layout="horizontal",this.min=0,this.max=1,this.stops=[]}static{this.properties={fillColor:1,layout:1,min:9,max:9,stops:0}}static{this.styles=h}willUpdate(s){if(super.willUpdate(s),s.has("fillColor")||s.has("stops")){let{stops:n,fillColor:i}=this,r=(i instanceof t?i:t.fromString(i)??c).toRgb();this._rampStops=n.map(a=>({color:new t(r&&[...r,a.opacity]),value:a.value}))}}render(){return e`<arcgis-ramp-color .layout=${this.layout} .stops=${this._rampStops} .min=${this.min} .max=${this.max}></arcgis-ramp-color>`}};m("arcgis-ramp-opacity",o);return o},"Color")
2
+ import{L as p,S as m,h as l,j as e}from"./4IMLX5B4.js";export default $arcgis.t(([t])=>{var h=l`:host{display:block;block-size:30px;inline-size:100%}:host([layout="vertical"]){writing-mode:vertical-lr}arcgis-ramp-color{block-size:inherit;inline-size:inherit}`,c=new t([0,121,193]),o=class extends p{constructor(){super(...arguments),this._rampStops=[],this.fillColor=c.clone(),this.layout="horizontal",this.min=0,this.max=1,this.stops=[]}static{this.properties={fillColor:1,layout:1,min:9,max:9,stops:0}}static{this.styles=h}willUpdate(s){if(super.willUpdate(s),s.has("fillColor")||s.has("stops")){let{stops:n,fillColor:i}=this,r=(i instanceof t?i:t.fromString(i)??c).toRgb();this._rampStops=n.map(a=>({color:new t(r&&[...r,a.opacity]),value:a.value}))}}render(){return e`<arcgis-ramp-color .layout=${this.layout} .stops=${this._rampStops} .min=${this.min} .max=${this.max}></arcgis-ramp-color>`}};m("arcgis-ramp-opacity",o);return o},"Color")
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import{a as A}from"./ZJMMAZFG.js";import{a as he}from"./5KBPWYPL.js";import{a as ce}from"./LLLQXE2U.js";import{a as oe,c as le}from"./JYWWX277.js";import{a as ae,c as se}from"./XMMFL5H3.js";import{a as q}from"./TE77L77R.js";import{J as K,K as O,L as ne,M as R,N as z,P as E,S as ie,h as Q,j as y,q as ee,r as te,t as M,v as re,w as j}from"./4IMLX5B4.js";export default $arcgis.t(([{on:rt,watch:de},{createObservable:we,trackAccess:Pe},{property:ot,subclass:lt},ht,$e,{property:$,subclass:Ie},{watch:Y}])=>{var ue=(i,e)=>t=>De(t,i),B=class extends re{constructor(e,t){super(e),this.Y=new Map,this.A=void 0,this.#r=we();let r=this;r.#e=t,r.Z(),r.setProvisionalExports(ge(e,new WeakRef(r),e.M.length-1,r.instance,r.Y),!1),ee(e,a=>{if(a){let n=de(()=>e[a],o=>{if(o===r.instance)return;let s=r.instance;r.exports=o,r.instance=o,r.Y.forEach((l,c)=>e.requestUpdate(l,s[c])),r.#t&&s.destroy(),r.#t=!1},{sync:!0});r.onDestroy(n.remove)}},r.exports)}#t;#r;#e;get exports(){return Pe(this.#r),super.exports}set exports(e){super.exports=e,this.#r.notify()}Z(){let e=this;e.instance="prototype"in e.#e&&"declaredClass"in e.#e.prototype?new e.#e:e.#e(),e.#t=!0}hostConnected(){this.exports=this.instance}hostDestroy(){this.#t&&this.instance.destroy?.()}},De=oe(B),ge=(i,e,t,r,a)=>new Proxy(r,{get:(n,o)=>{let s=n[o];if(typeof o=="symbol"||a.has(o))return s;let l=i.M[t];return l.A=o,te(i,c=>{if(l.A=void 0,c!==void 0){let h=c.key;a.set(o,h);let u=i.constructor.getPropertyOptions(h),d=o!==h&&h.toLowerCase().includes("disable");Ce(e,u,o,h,d),u.i===void 0&&Ee(u,t,o,d)}},s)}}),Ce=(i,e,t,r,a,n)=>n=de(()=>{let o=i.deref();return o===void 0||o.component.manager.destroyed?n=n.remove():o.exports[t]},(o,s)=>{if(!n)return;i.deref().component?.requestUpdate(r,a?!s:s),e.c=!1},{sync:!0}),Ee=(i,e,t,r)=>{i.d.get=function(){let a=this.M[e]?.exports[t];return r?!a:a},i.d.set=function(a){let n=this.M[e];n.A!==t&&(n.exports[t]=r?!a:a)}};var me=ue;function*W(i,e){if(i!==void 0){let t=0;for(let r of i)yield e(r,t++)}}var _={increment:"ArrowUp",incrementHorizontal:"ArrowRight",decrement:"ArrowDown",decrementHorizontal:"ArrowLeft",pageIncrement:"PageUp",pageDecrement:"PageDown",jumpToStart:"Home",jumpToEnd:"End",confirmEdit:"Enter"};function pe({key:i,shiftKey:e},t,r){let a=Re(i);if(a==null)return null;let n=Me(i)||Te(i)&&e?ze(t):1;return{direction:r?a*-1:a,count:n}}function Re(i){return i===_.increment||i===_.incrementHorizontal||i===_.pageIncrement?1:i===_.decrement||i===_.decrementHorizontal||i===_.pageDecrement?-1:null}function ve(i){return i===_.jumpToEnd||i===_.jumpToStart}function Te(i){return i===_.increment||i===_.decrement||i===_.decrementHorizontal||i===_.incrementHorizontal}function Me(i){return i===_.pageIncrement||i===_.pageDecrement}function ze(i){let e=Number.isFinite(i)?Math.floor(i):1;return Math.max(1,e)}var Se=Q`:host{display:flex;width:100%;height:100%;font-size:var(--calcite-font-size--2);font-variant-numeric:tabular-nums;--arcgis-slider-dash-length: 5px;--arcgis-slider-handle-size: .875rem;--arcgis-slider-track-background-color: var(--calcite-color-border-2);--arcgis-internal-slider-show-range-labels: 0;--arcgis-internal-slider-show-value-labels: 0;--arcgis-internal-slider-value-labels-placement-start: 0;--arcgis-internal-slider-value-labels-placement-end: 0;--arcgis-internal-slider-range-labels-placement-center: 0;--arcgis-internal-slider-range-labels-placement-end: 0;--arcgis-internal-slider-handle-color: var(--calcite-color-text-3);--arcgis-internal-slider-handle-offset: calc(var(--arcgis-slider-handle-size) / 2);--arcgis-internal-slider-label-input-margin: calc(var(--arcgis-internal-slider-handle-offset) + 4px);--arcgis-internal-slider-label-input-height: var(--calcite-input-number-height, 1.5rem);--arcgis-internal-slider-track-range-background-color: var(--calcite-color-brand);--arcgis-internal-slider-track-size: 2px}:host([show-range-labels]){--arcgis-internal-slider-show-range-labels: 1}:host(:not([value-labels-display="hidden"])){--arcgis-internal-slider-show-value-labels: 1}:host([value-labels-placement="start"]){--arcgis-internal-slider-value-labels-placement-start: var(--arcgis-internal-slider-show-value-labels)}:host([value-labels-placement="end"]){--arcgis-internal-slider-value-labels-placement-end: var(--arcgis-internal-slider-show-value-labels)}:host([range-labels-placement="center"]){--arcgis-internal-slider-range-labels-placement-center: var(--arcgis-internal-slider-show-range-labels)}:host([range-labels-placement="end"]){--arcgis-internal-slider-range-labels-placement-end: var(--arcgis-internal-slider-show-range-labels)}:host([disabled]){cursor:default;opacity:var(--calcite-opacity-disabled);pointer-events:none}.content{direction:ltr;flex:1;touch-action:none;user-select:none;display:grid;word-wrap:normal;word-break:normal;padding-block:var(--arcgis-internal-slider-handle-offset)}.track-container{grid-area:track-container;position:relative;display:flex;justify-content:center;align-items:center}.track{touch-action:none;position:relative}.track-bounds{background-color:var(--arcgis-slider-track-background-color)}:host([layout="vertical"]){.track-effective-start{background:repeating-linear-gradient(to bottom,var(--arcgis-slider-track-background-color) 0 var(--arcgis-slider-dash-length),color-mix(in srgb,transparent 75%,var(--arcgis-slider-track-background-color) 25%) var(--arcgis-slider-dash-length) calc(var(--arcgis-slider-dash-length) * 2))}.track-effective-end{background:repeating-linear-gradient(to top,var(--arcgis-slider-track-background-color) 0 var(--arcgis-slider-dash-length),color-mix(in srgb,transparent 75%,var(--arcgis-slider-track-background-color) 25%) var(--arcgis-slider-dash-length) calc(var(--arcgis-slider-dash-length) * 2))}}:host([layout="horizontal"]){.track-effective-start{background:repeating-linear-gradient(to right,var(--arcgis-slider-track-background-color) 0 var(--arcgis-slider-dash-length),color-mix(in srgb,transparent 75%,var(--arcgis-slider-track-background-color) 25%) var(--arcgis-slider-dash-length) calc(var(--arcgis-slider-dash-length) * 2))}.track-effective-end{background:repeating-linear-gradient(to left,var(--arcgis-slider-track-background-color) 0 var(--arcgis-slider-dash-length),color-mix(in srgb,transparent 75%,var(--arcgis-slider-track-background-color) 25%) var(--arcgis-slider-dash-length) calc(var(--arcgis-slider-dash-length) * 2))}}.track-range-interactive{&.active{box-shadow:0 0 8px #00000029;outline:1px solid var(--calcite-color-border-2)}&.filled.active{outline-color:var(--calcite-color-focus, var(--calcite-color-focus, var(--calcite-color-brand)))}}.track-range{background-color:var(--arcgis-internal-slider-track-range-background-color);pointer-events:none}:host([disabled]) .track-range{background-color:var(--calcite-color-text-3)}:host([disabled]),:host([disabled][layout="horizontal"]),:host([disabled][layout="vertical"]){.track-range-interactive.interactive:after{cursor:default;pointer-events:none}}:host([layout="horizontal"]){.track-range-interactive.interactive:after{all:initial;cursor:ew-resize;position:absolute;inline-size:100%;content:"";inset-block-start:calc(-1 * var(--arcgis-internal-slider-handle-offset));block-size:var(--arcgis-slider-handle-size);margin-top:1px}}:host([layout="vertical"]){.track-range-interactive.interactive:after{all:initial;cursor:ns-resize;position:absolute;inline-size:100%;content:"";inset-block-start:calc(-1 * var(--arcgis-internal-slider-handle-offset));block-size:var(--arcgis-slider-handle-size);margin-left:1px;writing-mode:vertical-lr}}.segment{transform-origin:0 0;inset-block-start:0px;block-size:var(--arcgis-internal-slider-track-size);position:absolute;top:0;left:0}.thumb{-webkit-user-select:none;user-select:none;background-color:#4c4c4c;width:2px;height:2px;margin:-1px;position:absolute}.thumb-content{width:0;height:0;position:absolute;top:50%;left:50%}.thumb:focus,.thumb.active{.handle{background-color:var(--calcite-color-brand);box-shadow:0 0 8px #00000029;outline:2px solid var(--calcite-color-focus, var(--calcite-color-focus, var(--calcite-color-brand)));outline-offset:calc(2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}}.thumb.labels-only .handle{visibility:hidden;pointer-events:none}.thumb.labels-only{background-color:transparent}.handle{cursor:pointer;box-sizing:border-box;z-index:1;touch-action:none;background-color:var(--calcite-color-foreground-1);box-shadow:0 0 0 2px var(--arcgis-internal-slider-handle-color) inset;border-radius:var(--arcgis-slider-handle-size);width:var(--arcgis-slider-handle-size);height:var(--arcgis-slider-handle-size);transition:all var(--arcgis-internal-slider-transition-duration, var(--calcite-animation-timing, .125s)) ease-in-out;position:absolute;top:calc(var(--arcgis-internal-slider-handle-offset) * -1);left:calc(var(--arcgis-internal-slider-handle-offset) * -1)}.handle:hover{box-shadow:0 0 0 3px var(--calcite-color-brand) inset}:host([layout="vertical"]) .fixed-thumb .handle{width:calc(var(--arcgis-slider-handle-size) / 1.5);height:calc(var(--arcgis-slider-handle-size) * 1.5);cursor:ns-resize}.fixed-thumb .handle{width:calc(var(--arcgis-slider-handle-size) * 1.5);height:calc(var(--arcgis-slider-handle-size) / 1.5);top:0;left:0;transform:translate(-50%,-50%);cursor:ew-resize}.label{position:absolute;will-change:transform}.min{grid-area:range-start}.max{grid-area:range-end}:host([layout="horizontal"][mirrored][range-labels-placement="center"]),:host([layout="vertical"]:not([mirrored])){.min{grid-area:range-end}.max{grid-area:range-start}}.content-start{grid-area:content-start;display:flex}.content-end{grid-area:content-end;display:flex}:dir(rtl){.content-start,.content-end,.label,.max,.min,.popover{direction:rtl}}:host([layout="vertical"]){.content{grid-template:". range-start range-start range-start ." "content-start content-start track-container content-end content-end" ". range-end range-end range-end .";grid-template-rows:auto 1fr auto;grid-template-columns:1fr auto auto auto 1fr;row-gap:var(--arcgis-internal-slider-handle-offset)}.track-container{flex-direction:column}.track{flex:1;width:var(--arcgis-internal-slider-track-size)}.segment{writing-mode:vertical-lr}.label{top:calc(var(--arcgis-internal-slider-label-input-height) * -.5)}&:host([value-labels-placement="start"]){.label{right:var(--arcgis-internal-slider-label-input-margin)}}&:host([value-labels-placement="end"]){.label{left:var(--arcgis-internal-slider-label-input-margin)}}}:host([layout="horizontal"][range-labels-placement="center"]){.content{--arcgis-internal-slider-content-start-min-height: calc( ((1 - var(--arcgis-internal-slider-show-range-labels)) * var(--arcgis-internal-slider-handle-offset)) + (var(--arcgis-internal-slider-value-labels-placement-start) * var(--arcgis-internal-slider-label-input-height)) );--arcgis-internal-slider-content-end-min-height: calc( ((1 - var(--arcgis-internal-slider-show-range-labels)) * var(--arcgis-internal-slider-handle-offset)) + (var(--arcgis-internal-slider-value-labels-placement-end) * var(--arcgis-internal-slider-label-input-height)) );column-gap:calc(var(--arcgis-internal-slider-show-range-labels) * var(--arcgis-internal-slider-handle-offset) / 2);padding-inline:calc((1 - var(--arcgis-internal-slider-show-range-labels)) * var(--arcgis-internal-slider-handle-offset));grid-template:". content-start ." "range-start content-start range-end" "range-start track-container range-end" "range-start content-end range-end" ". content-end .";grid-template-columns:auto 1fr auto;grid-template-rows:minmax(var(--arcgis-internal-slider-content-start-min-height),auto) calc(var(--arcgis-internal-slider-show-range-labels) * calc(calc(var(--arcgis-internal-slider-label-input-height) / 2) - calc(var(--arcgis-internal-slider-track-size) / 2))) var(--arcgis-internal-slider-track-size) calc(var(--arcgis-internal-slider-show-range-labels) * calc(calc(var(--arcgis-internal-slider-label-input-height) / 2) - calc(var(--arcgis-internal-slider-track-size) / 2))) minmax(var(--arcgis-internal-slider-content-end-min-height),auto)}.track{flex:1;height:var(--arcgis-internal-slider-track-size)}&:host([value-labels-placement="start"]){.label,.label-separator{bottom:var(--arcgis-internal-slider-label-input-margin)}}&:host([value-labels-placement="end"]){.label,.label-separator{top:var(--arcgis-internal-slider-label-input-margin)}}}.label-separator{position:absolute;width:1em;height:var(--arcgis-internal-slider-label-input-height);margin:0;padding:0;pointer-events:none;text-align:center;z-index:0}.label-separator:before{content:"—"}:host([layout="horizontal"]) .label-separator{transform:translate(-50%)}:host([layout="horizontal"][range-labels-placement="end"]){min-inline-size:min-content;.content{--arcgis-internal-slider-content-start-min-height: calc( var(--arcgis-internal-slider-handle-offset) + var(--arcgis-internal-slider-value-labels-placement-start) * var(--arcgis-internal-slider-label-input-height) );--arcgis-internal-slider-content-end-min-height: calc( var(--arcgis-internal-slider-value-labels-placement-end) * var(--arcgis-internal-slider-label-input-height) );padding-inline:var(--arcgis-internal-slider-handle-offset);grid-template:"content-start content-start content-start" "track-container track-container track-container" "content-end content-end content-end" "content-end content-end content-end" "content-end content-end content-end";grid-template-columns:auto 0 auto;grid-template-rows:minmax(var(--arcgis-internal-slider-content-start-min-height),auto) var(--arcgis-internal-slider-track-size) var(--arcgis-internal-slider-handle-offset) calc(var(--arcgis-internal-slider-range-labels-placement-end) * var(--arcgis-internal-slider-label-input-height)) minmax(var(--arcgis-internal-slider-content-end-min-height),auto)}.track{flex:1;height:var(--arcgis-internal-slider-track-size)}&:host([value-labels-placement="start"]){.label,.label-separator{bottom:var(--arcgis-internal-slider-label-input-margin)}}&:host([value-labels-placement="end"]){.label,.label-separator{top:calc(var(--arcgis-internal-slider-label-input-margin) + var(--arcgis-internal-slider-range-labels-placement-end) * (var(--arcgis-internal-slider-label-input-height)))}}.min,.max{--arcgis-internal-slider-range-translation: calc(var(--arcgis-internal-slider-handle-offset) + .5rem + 1px);grid-area:unset;grid-row:-3}&:host(:not([mirrored])){.min{grid-column:1;margin-left:calc(var(--arcgis-internal-slider-range-translation) * -1)}.max{grid-column:3;margin-right:calc(var(--arcgis-internal-slider-range-translation) * -1)}}&:host([mirrored]){.min{grid-column:3;margin-right:calc(var(--arcgis-internal-slider-range-translation) * -1)}.max{grid-column:1;margin-left:calc(var(--arcgis-internal-slider-range-translation) * -1)}}}`,Ve=Object.defineProperty,Fe=Object.getOwnPropertyDescriptor,_e=i=>{throw TypeError(i)},D=(i,e,t,r)=>{for(var a=r>1?void 0:r?Fe(e,t):e,n=i.length-1,o;n>=0;n--)(o=i[n])&&(a=(r?o(e,t,a):o(a))||a);return r&&a&&Ve(e,t,a),a},xe=(i,e,t)=>e.has(i)||_e("Cannot "+t),Le=(i,e,t)=>(xe(i,e,"read from private field"),e.get(i)),Oe=(i,e,t)=>e.has(i)?_e("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(i):e.set(i,t),Ae=(i,e,t,r)=>(xe(i,e,"write to private field"),e.set(i,t),t),U;function Be(){return{min:0,max:100,values:[]}}var w=class extends $e{constructor(i={}){super({...Be(),properties:i}),this._entries=new Map,this.precision=4,this.ready=!1,Oe(this,U)}startup(){let{precision:i}=this,{min:e,max:t,values:r}=this;t=k(t,i),e=k(e,i),r=r?.map(n=>L(k(n,i),e,t)).sort((n,o)=>n-o),this._set("min",e),this._set("max",t),this._set("values",r);let a=new Map(r?.map(n=>[j(),n]));this._entries=a,Y(()=>this.min,n=>{let o=this.values;n!=null&&o?.length&&o.some(s=>s<n)&&(this._entries.forEach((s,l)=>{s<n&&this._entries.set(l,n)}),this._updatesValues())},{sync:!0}),Y(()=>this.max,n=>{let o=this.values;n!=null&&o?.length&&o.some(s=>s>n)&&(this._entries.forEach((s,l)=>{s>n&&this._entries.set(l,n)}),this._updatesValues())},{sync:!0}),Y(()=>this.precision,n=>{let{min:o,max:s,values:l}=this;this._set("min",k(o,n)),this._set("max",k(s,n)),l?.length&&(this._entries.forEach((c,h)=>{this._entries.set(h,k(c,n))}),this._updatesValues())},{sync:!0}),this._set("ready",!0)}get entries(){return this._entries}set max(i){if(!this.ready){this._set("max",i);return}let e=this._get("max"),t=k(i,this.precision);e!==t&&this._set("max",t)}set min(i){if(!this.ready){this._set("min",i);return}let e=this._get("min"),t=k(i,this.precision);e!==t&&this._set("min",t)}set values(i){if(Le(this,U)===i)return;if(Ae(this,U,i),!this.ready){this._set("values",i);return}let e=this._get("values");if(i=i?.map(r=>L(k(r,this.precision),this.min,this.max)).sort((r,a)=>r-a),e?.length===i?.length&&e.every((r,a)=>r===i[a]))return;let t=new Map(i?.map(r=>[j(),r]));this._entries=t,this._set("values",i)}getValue(i){return this._entries.get(i)}setValue(i,e){if(this.values==null)return!1;let{min:t,max:r}=this,a=this._entries.get(i),n=L(k(e,this.precision),t,r);return a===n?!1:(this._entries.set(i,n),this._updatesValues(),!0)}setValues(i){if(this.values==null)return!1;let e=!1,{min:t,max:r}=this;for(let[a,n]of i){let o=this._entries.get(a),s=L(k(n,this.precision),t,r);o!==s&&(e=!0,this._entries.set(a,s))}return e?(this._updatesValues(),!0):!1}_updatesValues(){let i=Array.from(this._entries.values()).sort((e,t)=>e-t);this._set("values",i)}};U=new WeakMap;D([$()],w.prototype,"_entries",2);D([$({readOnly:!0})],w.prototype,"entries",1);D([$()],w.prototype,"max",1);D([$()],w.prototype,"min",1);D([$({cast:i=>L(i,0,20)})],w.prototype,"precision",2);D([$({readOnly:!0})],w.prototype,"ready",2);D([$()],w.prototype,"values",1);w=D([Ie("esri.widgets.Slider.SliderData")],w);function L(i,e,t){return Math.min(Math.max(i,e),t)}function k(i,e){return Number.parseFloat(i.toFixed(e))}var G=class{constructor(e){this.steps=e,this.minIndex=0,this.maxIndex=this.steps.length-1}indexToValue(e){return this.steps[P(e,this.minIndex,this.maxIndex)]}valueToIndex(e){let t=this.steps.indexOf(e);return t!==-1?t:this.steps.reduce((r,a,n,o)=>Math.abs(a-e)<Math.abs(o[r]-e)?n:r,0)}getClosestStepDistances(e,t){if(t<=0)return[];let r=[];for(let a=this.minIndex;a<=this.maxIndex;a++){let n=this.indexToValue(a),o=Math.abs(n-e),s=!1;for(let l=0;l<r.length;l++)if(o<r[l].dist){r.splice(l,0,{idx:a,value:n,dist:o}),s=!0;break}!s&&r.length<t&&r.push({idx:a,value:n,dist:o}),r.length>t&&(r.length=t)}return r}},X=class{constructor(e,t,r){this.min=e,this.max=t,this.stepSize=r,this.minIndex=0,this.maxIndex=Math.round((this.max-this.min)/this.stepSize)}indexToValue(e){return this.min+P(e,this.minIndex,this.maxIndex)*this.stepSize}valueToIndex(e){return e=P(e,this.min,this.max),Math.round((e-this.min)/this.stepSize)}getClosestStepDistances(e,t){if(t<=0)return[];let r=[],a=this.minIndex,n=this.maxIndex,o=(P(e,this.min,this.max)-this.min)/this.stepSize,s=Math.floor(o),l=s+1;for(;r.length<t&&(s>=a||l<=n);){if(s<a){let m=this.indexToValue(l);r.push({idx:l,value:m,dist:Math.abs(m-e)}),l++;continue}if(l>n){let m=this.indexToValue(s);r.push({idx:s,value:m,dist:Math.abs(m-e)}),s--;continue}let c=this.indexToValue(s),h=this.indexToValue(l),u=Math.abs(c-e),d=Math.abs(h-e);u<=d?(r.push({idx:s,value:c,dist:u}),s--):(r.push({idx:l,value:h,dist:d}),l++)}return r}};function He(i){if(i.steps==null)return null;let e=i.steps;return Array.isArray(e)?e.length===0?null:new G(e):e<=0?null:new X(i.min,i.max,e)}function Ne(i,e,t){if(i==null){let s=new Map;for(let[l,c]of e.entries())s.set(l,c+t);return s}let r=e.size,a=Array.from(e.entries()).map(([s,l])=>{let c=l+t,h=i.getClosestStepDistances(c,r);return{uuid:s,stepDistances:h}}),n=new Set,o=new Map;a.sort((s,l)=>s.stepDistances[0].dist-l.stepDistances[0].dist);for(let s of a){let l=s.stepDistances.find(c=>!n.has(c.idx));l?(n.add(l.idx),o.set(s.uuid,l.value)):o.set(s.uuid,e.get(s.uuid))}return o}function H(i,e,t,r,a){let{allowValuesOverlap:n,precision:o,min:s,max:l}=a,c=e.get(t)??0,h=c+r,u=r>=0?-1:1,d,m,p;if(i){let v=new Set;if(!n)for(let[f,x]of e.entries())f!==t&&v.add(i.valueToIndex(x));let b=i.getClosestStepDistances(h,e.size+1);b.sort((f,x)=>S(f.dist,o)-S(x.dist,o)||u*(x.value-f.value));let g=0;d=b[g].value,p=f=>!n&&v.has(i.valueToIndex(f)),m=()=>(g++,b[g]?.value)}else{let v=new Set;for(let[g,f]of e.entries())g!==t&&v.add(S(f,o));let b=1/Math.pow(10,o);d=P(S(h,o),s,l),p=g=>!n&&v.has(g),m=()=>{let g=S(d+u*b,o);return g===d||g<s||g>l?void 0:g}}if(!p(d))return d;for(;;){let v=m();if(v===void 0)return c;if(d=v,!p(d))return d}}function S(i,e){return Number.parseFloat(i.toFixed(e))}function Ue(i,e,t,r=1){let a=ye(r),n=e,o=!1;for(let s=0;s<a;s++){let l=Ke(i,n,t);if(o||=l.changed,n=l.entries,!l.changed)break}return{changed:o,entries:n}}function je(i,e,t,r,a=1){let n=ye(a);if(n===1)return Z(i,e,t,r);let o=new Map(e),s=o.get(t);for(let l=0;l<n;l++){let c=Z(i,o,t,r);if(c===s)break;s=c,o.set(t,s)}return s}function ye(i){let e=Number.isFinite(i)?Math.floor(i):1;return Math.max(1,e)}function Ke(i,e,t){let r=new Map,a=t>0?Ye:ke,n=Array.from(e).sort((l,c)=>a(l[1],c[1])),o=!1,s=!0;for(let[l,c]of n)if(r.set(l,c),s){let h=Z(i,r,l,t);c===h&&(s=!1),o||=s,r.set(l,h)}return{changed:o,entries:r}}function Z(i,e,t,r){let{allowValuesOverlap:a,stepsProvider:n,resolution:o,min:s,max:l}=i,c=e.get(t);if(r=r>0?1:-1,!n){let g=P(c+r*o,s,l);if(a)return g;let f=new Set;for(let[x,C]of e)x!==t&&f.add(C);for(;f.has(g)&&g<=l&&g>=s;){let x=g;if(g=P(g+r*o,s,l),g===x)return c}return f.has(g)||g>l||g<s?c:g}let h=n.valueToIndex(c);if(h===-1)return c;if(a){let g=P(h+r,n.minIndex,n.maxIndex);return n.indexToValue(g)}let u=new Set;for(let[g,f]of e)g!==t&&u.add(n.valueToIndex(f));let d=h,m=!1,p=n.minIndex,v=n.maxIndex,b=0;for(;b<Math.abs(v-p)&&(d+=r,!(d<p||d>v));){if(!u.has(d)){m=!0;break}b++}return m?n.indexToValue(d):c}function qe(i,e,t,r){let{allowValuesOverlap:a,stepsProvider:n,resolution:o,min:s,max:l}=i,c=e.get(t);if(r=r>0?1:-1,!n){let m=new Set(Array.from(e).filter(([v])=>v!==t).map(([,v])=>v)),p=r>0?l:s;if(a)return p;for(;m.has(p);)if(p-=r*o,r>0&&p>l||r<0&&p<s){p=c;break}return p}if(a)return r>0?n.indexToValue(n.maxIndex):n.indexToValue(n.minIndex);let h=n.valueToIndex(c);if(h===-1)return c;let u=new Set(Array.from(e).filter(([m])=>m!==t).map(([,m])=>n.valueToIndex(m))),d=r>0?n.maxIndex:n.minIndex;for(;u.has(d);)if(d-=r,r>0&&d>l||r<0&&d<s){d=h;break}return n.indexToValue(d)}function We(i,e,t){let{stepsProvider:r,min:a,max:n}=i,o=new Map,s=Array.from(e).sort((c,h)=>ke(c[1],h[1]));if(r){let c=0;if(t>0){let h=s[s.length-1],u=r.valueToIndex(h[1]);c=r.maxIndex-u}else{let h=s[0],u=r.valueToIndex(h[1]);c=r.minIndex-u}if(c===0)for(let[h,u]of s)o.set(h,u);for(let[h,u]of s){let d=r.indexToValue(r.valueToIndex(u)+c);o.set(h,d)}return o}let l=0;if(t>0){let c=s[s.length-1];l=n-c[1]}else{let c=s[0];l=a-c[1]}for(let[c,h]of s)o.set(c,h+l);return o}function ke(i,e){return i-e}function Ye(i,e){return e-i}function P(i,e,t){return Math.max(e,Math.min(t,i))}var Ge=me(w),J=class extends ne{constructor(){super(...arguments),this._direction=le(),this._stepsProvider=null,this._popoverElement=K(),this._trackElement=K(),this.messages=ce({}),this._onPointerMoveDragUpdate=e=>{this._updateDrag(this._mapEventToRange(e))},this._onPointerUpDragEnd=e=>{F(e)&&this._endDrag()},this._onPointerCancelDragEnd=()=>{this._endDrag()},this._formatLabel=(e,t,r)=>{let a=he(this.messages._lang,t),n=this.labelFormatter;return n?n(r,e,s=>a.format(s))??a.format(r):a.format(r)},this._numberFormatOptions={},this._createFormatter=(e,t)=>this._formatLabel.bind(this,e,t),this._minFormatter=this._createFormatter("min",this._numberFormatOptions),this._maxFormatter=this._createFormatter("max",this._numberFormatOptions),this._valueFormatter=this._createFormatter("value",this._numberFormatOptions),this._resizeObserver=new ResizeObserver(()=>{this._layoutLabelInputs(),this._updatePopoverReferenceElement()}),this._labelInputsUpdateComplete=null,this._dragInfo=null,this._hasPopoverContent=!1,this._hasContentStart=!1,this._hasContentEnd=!1,this._measurablePopoverReferenceElement="",this._nextPopoverReferenceElement=null,this._activePart=null,this._sliderData=Ge(this),this.allowValuesOverlap=!1,this.autoDestroyDisabled=!1,this.disabled=!1,this.fillPlacement="start",this.layout="horizontal",this.max=this._sliderData.max,this.min=this._sliderData.min,this.mirrored=!1,this.popoverDisplay="auto",this.popoverLabel="",this.popoverPlacement="start",this.precision=this._sliderData.precision,this.valuesDraggingDisabled=!1,this.rangeLabelsEditingEnabled=!1,this.rangeLabelsPlacement="center",this.segmentsDraggingDisabled=!1,this.showRangeLabels=!1,this.valueLabelsDisplay="hidden",this.valueLabelsPlacement="start",this.valueLabelsEditingEnabled=!1,this.keyboardLargeStep=10,this.values=this._sliderData.values,this.arcgisActiveValueChange=M({cancelable:!1}),this.arcgisChange=M({cancelable:!1}),this.arcgisInput=M({cancelable:!1}),this.arcgisRangeChange=M({cancelable:!1})}static{this.properties={_dragInfo:16,_hasPopoverContent:16,_hasContentStart:16,_hasContentEnd:16,_measurablePopoverReferenceElement:16,_nextPopoverReferenceElement:16,_activePart:16,_sliderData:16,activeValue:32,allowValuesOverlap:5,autoDestroyDisabled:5,disabled:7,fullRangeMax:11,fullRangeMin:11,fillPlacement:1,labelFormatter:0,layout:3,max:11,min:11,mirrored:7,popoverDisplay:1,popoverLabel:1,popoverPlacement:3,precision:11,valuesDraggingDisabled:7,rangeLabelsEditingEnabled:5,rangeLabelsPlacement:3,segmentsDraggingDisabled:5,showRangeLabels:7,steps:[9,{converter:{fromAttribute(e){if(e.includes(","))return e.split(",").filter(r=>r.trim()!=="").map(parseFloat).filter(r=>Number.isFinite(r));let t=parseFloat(e);return Number.isFinite(t)?t:void 0}}}],valueLabelsDisplay:3,valueLabelsPlacement:3,valueLabelsEditingEnabled:5,keyboardLargeStep:9,values:[1,{converter:{fromAttribute(e){return e.includes(",")?e.split(",").filter(t=>t.trim()!=="").map(parseFloat).filter(t=>Number.isFinite(t)):[parseFloat(e)].filter(t=>Number.isFinite(t))}}}],messageOverrides:0}}static{this.styles=Se}static{this.shadowRootOptions={mode:"open",delegatesFocus:!0}}get _fullMin(){return this.fullRangeMin??this.min}get _fullMax(){return this.fullRangeMax??this.max}get _fullRange(){return this._fullMax-this._fullMin}get isHorizontal(){return this.layout==="horizontal"}get _trackWidthOrHeight(){let e=this._trackElement.value?.getBoundingClientRect();return e?this.isHorizontal?e.width:e.height:0}get _disabledOrInvalid(){return this.disabled||this.values.length===0||this._invalid}get _invalid(){let e=this.fullRangeMin==null||this.fullRangeMax==null||this.fullRangeMin<this.fullRangeMax,t=this.fullRangeMin==null||this.fullRangeMin<=this.min,r=this.fullRangeMax==null||this.fullRangeMax>=this.max;return this.min>=this.max||!e||!t||!r}get resolution(){let e=(this._sliderData.max-this._sliderData.min)/this._trackWidthOrHeight;return Math.max(e,1/Math.pow(10,this.precision))}get activeValue(){if(this._activePart)return this._activePart==="range"?"all":this._sliderData.getValue(this._activePart)}async destroy(){await this.manager.destroy()}load(){this._sliderData.startup()}willUpdate(e){if((e.has("steps")||e.has("min")||e.has("max"))&&(this._stepsProvider=He(this)),(e.has("values")||e.has("steps")||e.has("min")||e.has("max")||e.has("precision")||e.has("allowValuesOverlap"))&&!this.allowValuesOverlap){let t=this._resolveOverlappingValues();t&&this._setValues(t)}if(e.has("messages")||e.has("min")||e.has("max")||e.has("precision")||e.has("labelFormatter")){let t=this.max!=null&&this.min!=null&&this.max-this.min>10?2:this.precision;this._numberFormatOptions={maximumFractionDigits:t},this._minFormatter=this._createFormatter("min",this._numberFormatOptions),this._maxFormatter=this._createFormatter("max",this._numberFormatOptions),this._valueFormatter=this._createFormatter("value",this._numberFormatOptions)}if(e.has("values")){let t=this._resolveFillPlacement(this.values.length>1);t!==this.fillPlacement&&(this.fillPlacement=t)}}updated(e){this._layoutLabelInputs();let t=this._popoverElement.value;t&&(e.has("values")||e.has("min")||e.has("max"))&&t.reposition()}loaded(){this._resizeObserver.observe(this.el),this._updatePopoverReferenceElement()}disconnectedCallback(){super.disconnectedCallback(),this._removeDragListeners()}_makeResizeRef(){let e=null;return t=>{t?(e=t,this._resizeObserver.observe(t)):e&&(this._resizeObserver.unobserve(e),e=null)}}async _layoutLabelInputs(){if(!this._trackElement.value||this.valueLabelsDisplay==="hidden")return;let e=this.renderRoot.querySelectorAll("arcgis-label-input"),t=this.componentOnReady().then(()=>Promise.all(Array.from(e,s=>s.updateComplete)));if(this._labelInputsUpdateComplete=t,await t,t!==this._labelInputsUpdateComplete)return;this._labelInputsUpdateComplete=null;let r=this._trackElement.value;if(!r)return;let a=r.getBoundingClientRect(),n=[],o=this.isHorizontal;for(let s of this._sliderData.entries.keys()){let l=this._activePart==="range"||this._activePart===s;if(this.valueLabelsDisplay==="always"||l){let c=Je(this,s),h=be(this,s);if(!c||!h)continue;let u=c.getBoundingClientRect(),d=o?u.left+u.width/2:u.top+u.height/2;if(o){let m=h.getBoundingClientRect(),p=h.getLabelBoundingClientRect(),v=u.width/2,b=Math.round(p.width/2),g=m.width/2,f=a.left-v,x=a.right+v,C=d-b,I=d+b;C<f?g+=C-f:I>x&&(g+=I-x),h.style.transform=`translateX(${-Math.round(g)}px)`}else h.style.removeProperty("transform");n.push({handleBounds:u,handleCenter:d,labelInput:h})}}this._layoutCollidingLabelInputs(n)}_layoutCollidingLabelInputs(e){let t=this.isHorizontal,r=Array.from(this.renderRoot.querySelectorAll(".label-separator")),a=e.slice().sort((s,l)=>s.handleCenter-l.handleCenter);if(a.length===0)return;let n=this._trackElement.value?.getBoundingClientRect(),o=a.map(s=>[s]);for(let s=0;s<a.length;s++){for(let c of r)c.hidden=!0,c.style.removeProperty("left");let l=0;for(let c of o){let h=(c[0].handleCenter+c[c.length-1].handleCenter)/2,u=c.reduce((m,p)=>m+(t?p.labelInput.getBoundingClientRect().width:p.labelInput.getBoundingClientRect().height),0),d=c.length===1?t?c[0].labelInput.getBoundingClientRect().left:c[0].labelInput.getBoundingClientRect().top:h-u/2;if(n&&c.length>1){let m=c[0],p=c[c.length-1];if(t){let v=m.labelInput.getLabelBoundingClientRect().left-m.labelInput.getBoundingClientRect().left,b=p.labelInput.getBoundingClientRect().right-p.labelInput.getLabelBoundingClientRect().right,g=n.left-m.handleBounds.width/2-v,f=n.right+p.handleBounds.width/2+b-u;d=T(d,g,f)}else{let v=m.labelInput.getBoundingClientRect().height/2,b=p.labelInput.getBoundingClientRect().height/2,g=n.top-v,f=n.bottom+b-u;d=T(d,g,f)}}for(let m=0;m<c.length;m++){let p=c[m],v=p.labelInput.getBoundingClientRect(),b=t?v.width:v.height,g=(t?v.left:v.top)+b/2,f=this._getLabelTranslate(p.labelInput,t),x=d+b/2,C=`${t?"translateX":"translateY"}(${Math.round(f+x-g)}px)`;if(p.labelInput.style.transform!==C&&(p.labelInput.style.transform=C),d+=b,t&&m<c.length-1){let I=r[l++];if(!I)continue;I.hidden=!1,I.style.left=`${d-(n?.left??0)}px`}}}if(!this._mergeCollidingLabelGroups(o))break}}_mergeCollidingLabelGroups(e){let t=this.isHorizontal;for(let r=0;r<e.length-1;){let a=e[r],n=e[r+1],o=a[a.length-1],s=n[0],l=o.labelInput.getBoundingClientRect(),c=s.labelInput.getBoundingClientRect(),h=t?l.right:l.bottom;if((t?c.left:c.top)>h)r++;else return a.push(...n),e.splice(r+1,1),!0}return!1}_getLabelTranslate(e,t){let r=t?/translateX\((-?\d+(?:\.\d+)?)px\)/u:/translateY\((-?\d+(?:\.\d+)?)px\)/u,a=e.style.transform.match(r);return a?Number.parseFloat(a[1]):0}_onTrackFocus(){this._setActivePart("range")}_onTrackBlur(){this._setActivePart(null)}_onTrackRangePointerDown(e){this._disabledOrInvalid||!F(e)||(e.preventDefault(),e.currentTarget.focus(),this._startDrag("range",this._mapEventToRange(e)))}async _onPointerDown(e){if(this._disabledOrInvalid||!F(e))return;let t=this.renderRoot.querySelector("arcgis-label-input[editing]");if(e.target===t)return;if(t){t.blur(),this._focusEntry(V(t));return}if(Xe(e.target)||this.values?.length>1)return;let r=this._mapEventToRange(e),[a,n]=this._sliderData.entries.entries().next().value,o=r*this._fullRange+this._fullMin-n,s=N(this._fullMin,this._fullMax,n)/100;this._startDrag(a,s);let l=H(this._stepsProvider,this._sliderData.entries,a,o,{allowValuesOverlap:this.allowValuesOverlap,precision:this.precision,min:this.min,max:this.max});this._setValue(a,l),this._focusEntry(a)}_onThumbPointerDown(e){let t=V(e.currentTarget);if(!F(e)||this._disabledOrInvalid||!t)return;let r=be(this,t);e.target===r&&r?.editing||(e.stopPropagation(),e.preventDefault(),this._focusEntry(t),this._startDrag(t,this._mapEventToRange(e)))}_onFixedThumbPointerDown(e){this._disabledOrInvalid||!F(e)||(e.preventDefault(),e.currentTarget.focus())}_endDrag(){if(this._disabledOrInvalid)return;this._removeDragListeners();let e=!1;if(this._dragInfo){let{entries:t}=this._dragInfo;for(let[r,a]of t)if(this._sliderData.getValue(r)!==a){e=!0;break}}this._dragInfo=null,e&&this.arcgisChange.emit()}_startDrag(e,t){if(this._disabledOrInvalid)return;let{min:r,max:a,values:n}=this,o=r,s=a;if(this._setActivePart(e),e==="range"){if(this.segmentsDraggingDisabled)return;o=r-n[0],s=a-n[n.length-1]}this._dragInfo={position:t,entries:new Map(this._sliderData.entries.entries()),minDiff:o,maxDiff:s},this._addDragListeners()}_updateDrag(e){if(!this._dragInfo||!this._activePart)return;let{_activePart:t,_dragInfo:{position:r,entries:a,minDiff:n,maxDiff:o}}=this;if(r===e)return;let s=(e-r)*this._fullRange;if(t==="range"){s=Math.min(o,Math.max(n,s));let l=Ne(this._stepsProvider,a,s);this._setValues(l)}else{let l=H(this._stepsProvider,a,t,s,{allowValuesOverlap:this.allowValuesOverlap,precision:this.precision,min:this.min,max:this.max});this._setValue(t,l)}}_focusEntry(e){e&&fe(this,e)?.focus()}_addDragListeners(){document.addEventListener("pointerup",this._onPointerUpDragEnd),document.addEventListener("pointermove",this._onPointerMoveDragUpdate),document.addEventListener("pointercancel",this._onPointerCancelDragEnd)}_removeDragListeners(){document.removeEventListener("pointerup",this._onPointerUpDragEnd),document.removeEventListener("pointermove",this._onPointerMoveDragUpdate),document.removeEventListener("pointercancel",this._onPointerCancelDragEnd)}_setValues(e){this._sliderData.setValues(e)&&(this._dragInfo||this.arcgisChange.emit(),this.arcgisInput.emit())}_setValue(e,t){this._sliderData.setValue(e,t)&&(this._dragInfo||this.arcgisChange.emit(),this.arcgisInput.emit())}_resolveOverlappingValues(){let e=new Map(this._sliderData.entries),t=Array.from(e.entries()).sort((a,n)=>a[1]-n[1]),r=!1;for(let[a,n]of t){let o=T(n,this.min,this.max);if(!Array.from(e).some(([l,c])=>l!==a&&T(c,this.min,this.max)===o))continue;let s=H(this._stepsProvider,e,a,o-n,{allowValuesOverlap:!1,precision:this.precision,min:this.min,max:this.max});s!==n&&(r=!0),e.set(a,s)}return r?e:null}_onThumbFocus(e){let t=V(e.currentTarget);this._setActivePart(t)}_onThumbBlur(){this._setActivePart(null)}_onRangeInputChange(e){let t=e.currentTarget,r=t.value,a=t.dataset.type,n=!1;switch(e.stopPropagation(),a){case"min":{r<this.max?(this.min=r,n=!0):t.value=this.min;break}case"max":{r>this.min?(this.max=r,n=!0):t.value=this.max;break}}n&&this.arcgisRangeChange.emit()}_onValueInputChange(e){let t=e.currentTarget,r=V(t),a=t.value;if(r){e.stopPropagation();let n=this._sliderData.getValue(r),o=H(this._stepsProvider,this._sliderData.entries,r,a-n,{allowValuesOverlap:this.allowValuesOverlap,precision:this.precision,min:this.min,max:this.max});this._setValue(r,o),t.value=this._sliderData.getValue(r)}}_mapEventToRange(e){let t=this._trackElement.value?.getBoundingClientRect();if(!t)return 0;let r=this.isHorizontal?(e.clientX-t.left)/t.width:1-(e.clientY-t.top)/t.height;return this.mirrored?1-r:r}_getPositionStyleForElement(e){let t=N(this._fullMin,this._fullMax,e);return{[this.isHorizontal?this.mirrored?"right":"left":this.mirrored?"top":"bottom"]:`${t}%`}}_popoverSlotChange(e){this._hasPopoverContent=A(e),this._updatePopoverReferenceElement()}_onPopoverBeforeOpen(e){e.target===this._popoverElement.value&&this._popoverElement.value.style.removeProperty("visibility")}_onPopoverBeforeClose(e){e.target===this._popoverElement.value&&(this._popoverElement.value.style.visibility="hidden")}async _onPopoverClose(){this._nextPopoverReferenceElement!=null&&(this._measurablePopoverReferenceElement=this._nextPopoverReferenceElement,await this.updateComplete,this._nextPopoverReferenceElement=null)}_onContentStartSlotChange(e){this._hasContentStart=A(e)}_onContentEndSlotChange(e){this._hasContentEnd=A(e)}_onThumbKeyDown(e){let t=V(e.currentTarget);if(!t)return;let r=e.currentTarget.querySelector("arcgis-label-input");if(!r||r.editing)return;if(e.key===_.confirmEdit){r.edit();return}let a=pe(e,this.keyboardLargeStep,this.mirrored);if(a){e.preventDefault();let n=je(this._getStepsConfiguration(),this._sliderData.entries,t,a.direction,a.count);this._setValue(t,n);return}if(ve(e.key)){e.preventDefault();let n=qe(this._getStepsConfiguration(),this._sliderData.entries,t,this._getDirectionForHomeEndKey(e.key));this._setValue(t,n)}}_onTrackRangeKeyDown(e){if(this._disabledOrInvalid)return;let t=pe(e,this.keyboardLargeStep,this.mirrored);if(t){e.preventDefault();let{entries:r}=Ue(this._getStepsConfiguration(),this._sliderData.entries,t.direction,t.count);this._setValues(r);return}if(ve(e.key)){e.preventDefault();let r=We(this._getStepsConfiguration(),this._sliderData.entries,this._getDirectionForHomeEndKey(e.key));this._setValues(r)}}_getStepsConfiguration(){return{allowValuesOverlap:this.allowValuesOverlap,stepsProvider:this._stepsProvider,resolution:this.resolution,min:this.min,max:this.max}}_getDirectionForHomeEndKey(e){return this.isHorizontal&&this.mirrored||this.layout==="vertical"?e===_.jumpToEnd?-1:1:e===_.jumpToStart?-1:1}_setActivePart(e){this._activePart!==e&&(this._activePart=e,this._updatePopoverReferenceElement(),this.arcgisActiveValueChange.emit())}_resolveFillPlacement(e){let{fillPlacement:t}=this;return e?t==="between"||t==="not-between"||t==="none"?t:"between":t==="start"||t==="end"||t==="none"?t:"start"}_updatePopoverReferenceElement(){let{_activePart:e,popoverDisplay:t}=this,r="";if(this._hasPopoverContent)if(t==="always"&&this.values.length>1){let c=Array.from(this._sliderData.entries),[h,u]=c[0];r=c.every(([,d])=>d===u)?h:"track-range"}else e&&Ze(e)?r=e:this.values.length>1?r="track-range":r=this._sliderData.entries.keys().next().value??"";let a=null;r&&(r==="track-range"?a=this.renderRoot.querySelector("#track-range"):a=fe(this,r));let n=a?.getBoundingClientRect(),o=n&&n.width>0&&n.height>0?r:"",s=!!this._popoverElement.value?.open,l=this._hasPopoverContent&&!!o&&(this.popoverDisplay==="always"||!!this._activePart);this._nextPopoverReferenceElement!=null?this._nextPopoverReferenceElement=o:o!==this._measurablePopoverReferenceElement&&(s||l)?(this._nextPopoverReferenceElement=o,s||this._onPopoverClose()):this._measurablePopoverReferenceElement=o}render(){return y`<div class=${R({content:!0,disabled:this._disabledOrInvalid})} @pointerdown=${this._onPointerDown}>${this._renderContentStart()}${this._renderContentEnd()}${this._renderRangeLabel("min")}${this._renderTrackRange()}${this._renderRangeLabel("max")}${this._renderPopover()}</div>`}_renderPopover(){let{_activePart:e,layout:t,popoverDisplay:r,popoverLabel:a,popoverPlacement:n,valueLabelsDisplay:o,valueLabelsPlacement:s}=this,l=this._measurablePopoverReferenceElement,c=this._hasPopoverContent&&!!l&&(r==="always"||!!e)&&this._nextPopoverReferenceElement==null,h=t==="horizontal"?n==="start"?"top":"bottom":n==="start"?"left":"right",u=14;return l&&l!=="track-range"&&(u-=1),o!=="hidden"&&n===s&&(u+=24),y`<calcite-popover class="popover" focus-trap-disabled .label=${a} .open=${c} .offsetDistance=${u} .placement=${h} .referenceElement=${l} scale=s trigger-disabled @calcitePopoverBeforeOpen=${this._onPopoverBeforeOpen} @calcitePopoverBeforeClose=${this._onPopoverBeforeClose} @calcitePopoverClose=${this._onPopoverClose} ${O(this._popoverElement)}><slot name=popover @slotchange=${this._popoverSlotChange}></slot></calcite-popover>`}_renderContentStart(){return y`<div class="content-start" .hidden=${!this._hasContentStart}><slot name=content-start @slotchange=${this._onContentStartSlotChange}></slot></div>`}_renderContentEnd(){return y`<div class="content-end" .hidden=${!this._hasContentEnd}><slot name=content-end @slotchange=${this._onContentEndSlotChange}></slot></div>`}_renderTrackRange(){return y`<div class="track-container">${this._renderTrack()}<slot name=track-overlay></slot>${this._renderThumbs()}${this._renderLabelSeparators()}</div>`}_renderLabelSeparators(){let e=Math.max(0,this.values.length-1);return Array.from({length:e},(t,r)=>q(r,y`<div aria-hidden=true class="label-separator" hidden></div>`))}_renderTrack(){return y`<div class="track" ${O(this._trackElement)}>${this._renderTrackBackground()}${this._renderFillSegment()}</div>`}_renderTrackBackground(){let{max:e,min:t,fillPlacement:r,values:a}=this,n=a.length>1,o=this._fullMin,s=this._fullMax,l=[];return this._invalid?y`<div class="segment track-bounds" style=${z({left:"0%",right:"0%",top:"0%",bottom:"0%"})}></div>`:(o<t&&(l.push(this._renderSegment(o,t,[this.mirrored?"track-effective-end":"track-effective-start",!n&&r==="start"?"track-fill":null])),o=t),s>e&&(l.push(this._renderSegment(e,s,[this.mirrored?"track-effective-start":"track-effective-end",!n&&r==="end"?"track-fill":null])),s=e),l.push(this._renderSegment(o,s,["track-bounds"])),l)}_renderFillSegment(){let{values:e,min:t,max:r}=this;if(!e?.length||this._invalid)return;let a=[...e].sort((u,d)=>u-d),n=a[0],o=a[a.length-1],s=this._resolveFillPlacement(a.length>1),l;switch(s){case"start":t<n&&(l=this._renderSegment(t,n,["track-range"]));break;case"end":r>o&&(l=this._renderSegment(o,r,["track-range"]));break;case"between":a.length>1&&(l=this._renderSegment(n,o,["track-range"]));break;case"not-between":a.length>1&&(l=[this._renderSegment(t,n,["track-range"]),this._renderSegment(o,r,["track-range"])]);break}if(!(a.length>1))return l;let c=this.segmentsDraggingDisabled,h=this._renderSegment(n,o,["track-range-interactive",s==="between"?"filled":null,c?null:"interactive",this._activePart==="range"&&!this.segmentsDraggingDisabled?"active":null],{id:"track-range",onFocus:c?void 0:this._onTrackFocus,onBlur:c?void 0:this._onTrackBlur,onPointerDown:c?void 0:this._onTrackRangePointerDown,onKeyDown:c?void 0:this._onTrackRangeKeyDown});return[l,h]}_renderSegment(e,t,r,a){let{_fullMin:n,_fullMax:o,mirrored:s}=this,l=[N(n,o,T(e,n,o)),100-N(n,o,T(t,n,o))];s&&l.reverse();let c=this.isHorizontal?{left:`${l[0]}%`,right:`${l[1]}%`}:{top:`${l[1]}%`,bottom:`${l[0]}%`},h=ae("segment",...r);return y`<div id=${a?.id??E} class=${R(h)} style=${z(c)} .tabIndex=${a?.onPointerDown?0:-1} @focus=${a?.onFocus} @blur=${a?.onBlur} @pointerdown=${a?.onPointerDown} @keydown=${a?.onKeyDown}></div>`}_renderThumbs(){let{_sliderData:e}=this,t=Array.from(e.entries).filter(([,a])=>a>=this._fullMin&&a<=this._fullMax),r=t.map(([,a])=>a).sort((a,n)=>a-n);if(this.valuesDraggingDisabled&&r.length>1){let a=r[0],n=r.at(-1);if(a!=null&&n!=null){let o=(a+n)/2;return[this._renderFixedThumb(o),W(t,([s,l])=>this._renderThumb(s,l,!0))]}}return W(t,([a,n])=>this._renderThumb(a,n,!1))}_renderFixedThumb(e){let{_disabledOrInvalid:t,segmentsDraggingDisabled:r,isHorizontal:a}=this;return y`<div .ariaLabel=${this.messages.sliderValue} .ariaOrientation=${a?"horizontal":"vertical"} .ariaValueMax=${this.max} .ariaValueMin=${this.min} .ariaValueNow=${e} class=${R({thumb:!0,"fixed-thumb":!0,active:this._activePart==="range"})} @blur=${this._onTrackBlur} @focus=${this._onTrackFocus} @keydown=${r?void 0:this._onTrackRangeKeyDown} @pointerdown=${r?this._onFixedThumbPointerDown:this._onTrackRangePointerDown} role=slider style=${z({...this._getPositionStyleForElement(e),"z-index":this._activePart==="range"?1:0})} .tabIndex=${t?-1:0}><div class="thumb-content"><span class="handle"></span></div></div>`}_renderThumb(e,t,r){let{valueLabelsDisplay:a}=this,n=this._disabledOrInvalid,o=!r&&(this._activePart===e||this._activePart==="range"),s=!r&&(this._activePart==="range"||this._activePart===e),l=a==="always"||a==="auto"&&(s||r&&this._activePart==="range"),c=this.isHorizontal,h=c?"horizontal":"vertical",u=`label-${e}`,d=c?"center":this.valueLabelsPlacement==="start"?"end":"start";return q(e,y`<div id=${e??E} .ariaLabel=${this.messages.sliderValue} aria-labelledby=${(a?u:void 0)??E} .ariaOrientation=${h} .ariaValueMin=${this.min} .ariaValueMax=${this.max} .ariaValueNow=${t} .ariaValueText=${this._valueFormatter(t)} class=${R({thumb:!0,active:o,"labels-only":r})} data-entry=${e??E} @pointerdown=${r?void 0:this._onThumbPointerDown} @focus=${r?void 0:this._onThumbFocus} @blur=${r?void 0:this._onThumbBlur} @keydown=${r?void 0:this._onThumbKeyDown} role=slider style=${z({...this._getPositionStyleForElement(t),"z-index":this._activePart===e?2:1})} .tabIndex=${r||n?-1:0}><div class="thumb-content"><span class="handle"></span><arcgis-label-input .alignment=${d} class="label" .hidden=${!l} id=${u??E} .labelFormatter=${this._valueFormatter} @focus=${n?void 0:this._onThumbFocus} @blur=${n?void 0:this._onThumbBlur} @arcgisChange=${this._onValueInputChange} .readOnly=${!this.valueLabelsEditingEnabled} tabindex=-1 .value=${t} ${O(this._makeResizeRef())}></arcgis-label-input></div></div>`)}_renderRangeLabel(e){let t="center";if(this.isHorizontal){t=e==="min"?"end":"start";let r=()=>{t=t==="end"?"start":"end"};this.rangeLabelsPlacement==="end"&&r(),this.mirrored&&r(),this._direction==="rtl"&&r()}return y`<arcgis-label-input .alignment=${t} class=${R(e)} data-type=${e??E} .hidden=${!this.showRangeLabels} .labelFormatter=${this[`_${e}Formatter`]} @arcgisChange=${this._onRangeInputChange} .readOnly=${!this.rangeLabelsEditingEnabled} .value=${this[e]}></arcgis-label-input>`}};function Xe(i){return"dataset"in i&&i.tagName==="ARCGIS-LABEL-INPUT"&&(i.dataset.type==="min"||i.dataset.type==="max")}function V(i){let e=se(i,"[data-entry]");return e&&"dataset"in e?e.dataset.entry:null}function Ze(i){return typeof i!=null&&i!=="range"}function fe(i,e){return e?i.renderRoot.querySelector(`div[data-entry="${e}"]`):null}function Je(i,e){return e?i.renderRoot.querySelector(`div[data-entry="${e}"] span.handle`):null}function be(i,e){return e?i.renderRoot.querySelector(`div[data-entry="${e}"] arcgis-label-input`):null}function F(i){return i.isPrimary&&i.button===0}var Qe=5;function N(i,e,t){let r=e-i,a=(t-i)/r*100;return Number.parseFloat(a.toFixed(Qe))}function T(i,e,t){return Math.max(e,Math.min(t,i))}ie("arcgis-slider",J);return J},"core/reactiveUtils","applications/Components/reactiveUtils","core/accessorSupport/decorators","core/Accessor","core/Accessor","core/accessorSupport/decorators","core/reactiveUtils")
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{a as x}from"./3TY4GT5J.js";import{a as y}from"./KDCSDIUQ.js";import{a as b,b as _,c as A}from"./DPJGC3YQ.js";import{a as m}from"./32MHBJSZ.js";import"./LLATF73T.js";import"./XX2ZCFWI.js";import{K as f,L as $,M as g,O as u,R as C,j as d}from"./BCN6LPOG.js";var v=class extends ${constructor(){super(...arguments),this._elementReferenceController=new y(this),this._childrenObserver=new MutationObserver(()=>{this._syncChildren()}),this.priority=m.Medium,this.menuAppearance="action-menu",this.overflowActionLabel="More actions"}static{this.properties={_children:16,priority:9,menuAppearance:1,overflowActionLabel:1}}measure(e){let o=this._children?.length??0;if(!o)return[0];let i=b(e),l=o*i;if(!(this.priority<m.NeverCollapse&&o>2))return[l];let r=Math.min(o,2)*i,c=[r];if(o<=2||this.priority<=m.ForceCollapse)return c;for(let t=1;t<o-1;t++)c.push(r+i*t);return A(c)}proxiedRender(e,o){let i=this._children;if(!i)return;let{visible:l,hidden:r}=this._resolveActionsFromBudget(i,e,o),c="hamburger",t=this.overflowActionLabel,n=e.tooltipAppearance,s=n!=="native",a=this._elementReferenceController.element,w=n==="calcite-dark"?"calcite-mode-dark":void 0,h=_(e),R=this.menuAppearance==="action-menu"?d`<calcite-action-menu .label=${t} overlay-positioning=fixed .placement=${h}><calcite-action .icon=${c} .scale=${e.scale} slot=trigger .text=${t} title=${(n==="native"?t:"")??u} ${f(this._elementReferenceController.ref)}></calcite-action>${r.map(p=>p.proxiedRender(e,"expanded-action"))}</calcite-action-menu>`:d`<calcite-action .icon=${c} .scale=${e.scale} .text=${t} title=${(n==="native"?t:"")??u} ${f(this._elementReferenceController.ref)}></calcite-action><calcite-dropdown overlay-positioning=fixed .placement=${h} .referenceElement=${a}><calcite-dropdown-group selection-mode=none>${r.map(p=>p.proxiedRender(e,"dropdown-item"))}</calcite-dropdown-group></calcite-dropdown>`;return d`${l.map(p=>p.proxiedRender(e,"collapsed-action"))}${r.length?R:void 0}${r.length&&s?d`<calcite-tooltip class=${g(w)} close-on-click overlay-positioning=fixed .placement=${h} .referenceElement=${a}><span>${t}</span></calcite-tooltip>`:void 0}`}connectedCallback(){super.connectedCallback(),this._childrenObserver.observe(this.el,{childList:!0}),this._syncChildren()}disconnectedCallback(){this._childrenObserver.disconnect(),super.disconnectedCallback()}_syncChildren(){this._componentWaitAbortController?.abort();let e=Array.from(this.el.querySelectorAll("arcgis-toolbar-item")),o=new AbortController;this._componentWaitAbortController=o,Promise.all(e.map(i=>i.componentOnReady())).then(()=>{!this.isConnected||o.signal.aborted||(this._children=e)})}_resolveActionsFromBudget(e,o,i){let l=e.find(s=>s.active)??e?.toSorted(x)?.at(0),r=Math.floor(i/b(o));if(r>=e.length)return{visible:[...e],hidden:[]};let c=r-1,t=e.slice(0,c),n=e.slice(c);if(l&&n.includes(l)){let[s]=n.splice(n.indexOf(l),1),a=t.pop();t.push(s),a&&n.unshift(a)}return{visible:t,hidden:n}}};C("arcgis-toolbar-more-button",v);export{v as ArcgisToolbarMoreButton};
2
+ import{a as x}from"./3TY4GT5J.js";import{a as y}from"./M7F7EBFY.js";import{a as b,b as _,c as A}from"./DPJGC3YQ.js";import{a as m}from"./32MHBJSZ.js";import"./JYWWX277.js";import"./XMMFL5H3.js";import{K as f,L as $,M as g,P as u,S as C,j as d}from"./4IMLX5B4.js";var v=class extends ${constructor(){super(...arguments),this._elementReferenceController=new y(this),this._childrenObserver=new MutationObserver(()=>{this._syncChildren()}),this.priority=m.Medium,this.menuAppearance="action-menu",this.overflowActionLabel="More actions"}static{this.properties={_children:16,priority:9,menuAppearance:1,overflowActionLabel:1}}measure(e){let o=this._children?.length??0;if(!o)return[0];let i=b(e),l=o*i;if(!(this.priority<m.NeverCollapse&&o>2))return[l];let r=Math.min(o,2)*i,c=[r];if(o<=2||this.priority<=m.ForceCollapse)return c;for(let t=1;t<o-1;t++)c.push(r+i*t);return A(c)}proxiedRender(e,o){let i=this._children;if(!i)return;let{visible:l,hidden:r}=this._resolveActionsFromBudget(i,e,o),c="hamburger",t=this.overflowActionLabel,n=e.tooltipAppearance,s=n!=="native",a=this._elementReferenceController.element,w=n==="calcite-dark"?"calcite-mode-dark":void 0,h=_(e),R=this.menuAppearance==="action-menu"?d`<calcite-action-menu .label=${t} overlay-positioning=fixed .placement=${h}><calcite-action .icon=${c} .scale=${e.scale} slot=trigger .text=${t} title=${(n==="native"?t:"")??u} ${f(this._elementReferenceController.ref)}></calcite-action>${r.map(p=>p.proxiedRender(e,"expanded-action"))}</calcite-action-menu>`:d`<calcite-action .icon=${c} .scale=${e.scale} .text=${t} title=${(n==="native"?t:"")??u} ${f(this._elementReferenceController.ref)}></calcite-action><calcite-dropdown overlay-positioning=fixed .placement=${h} .referenceElement=${a}><calcite-dropdown-group selection-mode=none>${r.map(p=>p.proxiedRender(e,"dropdown-item"))}</calcite-dropdown-group></calcite-dropdown>`;return d`${l.map(p=>p.proxiedRender(e,"collapsed-action"))}${r.length?R:void 0}${r.length&&s?d`<calcite-tooltip class=${g(w)} close-on-click overlay-positioning=fixed .placement=${h} .referenceElement=${a}><span>${t}</span></calcite-tooltip>`:void 0}`}connectedCallback(){super.connectedCallback(),this._childrenObserver.observe(this.el,{childList:!0}),this._syncChildren()}disconnectedCallback(){this._childrenObserver.disconnect(),super.disconnectedCallback()}_syncChildren(){this._componentWaitAbortController?.abort();let e=Array.from(this.el.querySelectorAll("arcgis-toolbar-item")),o=new AbortController;this._componentWaitAbortController=o,Promise.all(e.map(i=>i.componentOnReady())).then(()=>{!this.isConnected||o.signal.aborted||(this._children=e)})}_resolveActionsFromBudget(e,o,i){let l=e.find(s=>s.active)??e?.toSorted(x)?.at(0),r=Math.floor(i/b(o));if(r>=e.length)return{visible:[...e],hidden:[]};let c=r-1,t=e.slice(0,c),n=e.slice(c);if(l&&n.includes(l)){let[s]=n.splice(n.indexOf(l),1),a=t.pop();t.push(s),a&&n.unshift(a)}return{visible:t,hidden:n}}};C("arcgis-toolbar-more-button",v);export{v as ArcgisToolbarMoreButton};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import{a as $}from"./GUL7EIJ4.js";import{a as y}from"./LLLQXE2U.js";import"./JYWWX277.js";import{d as k}from"./XMMFL5H3.js";import{a as n}from"./TE77L77R.js";import{J as w,K as l,L as v,N as f,P as p,S as E,h as g,j as i,k as h,n as m,t as s}from"./4IMLX5B4.js";function S(a,e,t){window.localStorage.setItem(a,JSON.stringify(e))}function I(a,e){let t=window.localStorage.getItem(a);return t&&e?JSON.parse(t):t}var R=g`:host,arcgis-picker-input{display:block}.color-picker-container{display:flex;flex-direction:column}.color-picker{--calcite-color-border-1: transparent;overflow-x:hidden}.preview-swatch{width:100%;height:24px;container-type:inline-size}.preview-swatch-no-color{overflow:hidden;block-size:inherit;inline-size:inherit;rect{transition-property:all;transition-duration:var(--calcite-animation-timing);transition-timing-function:cubic-bezier(.4,0,.2,1)}rect{fill:var(--calcite-theme-color-surface-2, var(--calcite-color-surface-2))}line{stroke:var(--calcite-color-status-danger)}}.recent-colors-container{align-items:center;border:var(--calcite-border-width-sm) solid var(--calcite-color-border-input);display:flex;gap:var(--calcite-space-sm);height:32px;padding:0 var(--calcite-space-xs);transition:outline-offset .1s ease-in-out,outline-color .1s ease-in-out}.preview-recent-swatch{cursor:pointer}.recent-colors-container:focus,.preview-recent-swatch:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-brand);outline-offset:var(--calcite-border-width-md)}.empty-swatch{cursor:default}.end-action{display:flex}.swatch-group{line-height:16px}`,d=class extends v{constructor(){super(),this._messages=y(),this.actionEl=w(),this.open=!1,this.setRecentColorElement=e=>t=>{switch(e){case 1:this.recentColor1El=t;break;case 2:this.recentColor2El=t;break;default:this.recentColor3El=t}},this.recentColors=[],this.clearable=!1,this.compact=!1,this.disabled=!1,this.placement="auto",this.storageId="arcgis-color-input-storage-colors",this.hideRecentColors=!1,this.showTransparency=!1,this.arcgisChange=s(),this.arcgisColorInputChange=s(),this.arcgisColorInputPopoverClose=s(),this.arcgisColorInputPopoverOpen=s(),this.arcgisColorInputSwatchUpdate=s(),this.arcgisInternalStoredColor=s(),this.arcgisPickerClose=s(),this.arcgisPickerOpen=s(),this.arcgisSwatchUpdate=s(),this.listenOn(document,"arcgisInternalStoredColor",this.handleUpdateRecentColors),this.listenOn(document,"arcgisRecentColorsUpdate",this.handleStoreNewRecentColor)}static{this.properties={recentColors:16,clearable:5,color:1,compact:5,disabled:5,messageOverrides:0,placement:1,popoverProps:0,storageId:1,hideRecentColors:5,showTransparency:5}}static{this.styles=R}async close(){await this.inlineInputEl?.close({focus:!1})}async setFocus(){await this.inlineInputEl?.setFocus()}isOpen(){return this.open}load(){this.setRecentColorsFromStorage()}disconnectedCallback(){super.disconnectedCallback(),this.removeTooltip()}async handleOpen(){await this.colorPickerEl?.setFocus(),this.open=!0,this.arcgisPickerOpen.emit(),this.arcgisColorInputPopoverOpen.emit()}setInlineInputRef(e){this.inlineInputEl=e}setColorPickerRef(e){e&&(this.colorPickerEl=e)}getRecentColorElement(e){switch(e){case 1:return this.recentColor1El;case 2:return this.recentColor2El;default:return this.recentColor3El}}setRecentColorsFromStorage(){let e=I(this.storageId,!0);e&&(this.recentColors=[...e])}handleSwatchClickOrKeyUp(e){if("key"in e&&e.key!=="Enter"&&e.key!=="Space")return;let t=e.currentTarget.color||void 0;this.updateColor(t),this.arcgisSwatchUpdate.emit(t),this.arcgisColorInputSwatchUpdate.emit(t),setTimeout(()=>this.recentColor1El?.focus(),200)}handleRecentColorsKeyDown(e){if(this.recentColors.length===1)return;let t=e.key,o;this.activeColorSwatchEl===this.recentColor1El?o=1:this.activeColorSwatchEl===this.recentColor2El?o=2:this.activeColorSwatchEl===this.recentColor3El&&(o=3),t==="ArrowLeft"&&(!o||o===1?this.getRecentColorElement(this.recentColors.length)?.focus():this.getRecentColorElement(o-1)?.focus()),t==="ArrowRight"&&(!o||o===this.recentColors.length?this.recentColor1El?.focus():this.getRecentColorElement(o+1)?.focus())}handleUpdateActiveSwatch(e){this.activeColorSwatchEl=e.currentTarget}handleStoreNewRecentColor(e){this.storeRecentColorToStorage(e.detail)}handleUpdateRecentColors(e){e.composedPath().includes(this.el)||this.setRecentColorsFromStorage()}handleClearColor(){this.updateColor(void 0)}updateColor(e,t=!0){e!==this.color&&(this.color=e,this.arcgisChange.emit(),this.arcgisColorInputChange.emit(),t&&this.storeRecentColorToStorage(e))}storeRecentColorToStorage(e){if(!e)return;e.length>7&&(e=e.slice(0,7));let t=[e,...this.recentColors.filter(o=>o!==e)].slice(0,3);S(this.storageId,t),this.recentColors=t,this.arcgisInternalStoredColor.emit()}handleClose(e){e.stopPropagation(),this.storeRecentColorToStorage(this.colorPickerEl?.value),this.open=!1,this.arcgisPickerClose.emit(this.colorPickerEl?.value),this.arcgisColorInputPopoverClose.emit(this.colorPickerEl?.value)}addTooltip(e){this.removeTooltip(),this.tooltipContainerEl=document.createElement("div"),m(i`<calcite-tooltip .placement=${e.placement??"auto"} .referenceElement=${e.referenceElement} overlay-positioning=fixed open>${e.innerHTML}</calcite-tooltip>`,this.tooltipContainerEl),document.body.append(this.tooltipContainerEl)}removeTooltip(){this.tooltipContainerEl?.parentNode&&(this.tooltipContainerEl.remove(),this.tooltipContainerEl=void 0)}render(){let{compact:e,disabled:t,recentColors:o,_messages:r}=this,C=[o[0],o[1]],b=k(this.el)==="rtl";return e||C.push(o[2]),i`<arcgis-picker-input .disabled=${t} .intlDone=${r.commitColor} .heading=${r.selectColor} .label=${r.selectColor} @arcgisPopoverOpen=${this.handleOpen} @arcgisPopoverClose=${this.handleClose} .popoverProps=${this.popoverProps} ${l(this.setInlineInputRef)}><div class="color-picker-container" slot=content>${n(`color-picker${e?"--compact":""}`,i`<calcite-color-picker .clearable=${this.clearable} class="color-picker" @calciteColorPickerInput=${$(c=>{c.stopPropagation(),this.updateColor(this.colorPickerEl.value,!1)},500)} .scale=${e?"s":"m"} .storageId=${this.storageId} .alphaChannel=${this.showTransparency} .value=${this.color} ${l(this.setColorPickerRef)}></calcite-color-picker>`)}</div>${this.color?i`<div slot=preview style=${f({backgroundColor:this.color})} class="preview-swatch" aria-label=${r.selectColor??""??p}></div>`:i`<div slot=preview class="preview-swatch" aria-label=${r.selectColor??""??p}><svg xmlns=http://www.w3.org/2000/svg class="preview-swatch-no-color">${h`<clipPath id=shape><rect height=100% width=100% rx=0 /></clipPath><rect clip-path="inset(0 round 0)" height=100% rx=0 stroke="rgba(0, 0, 0, 0.3)" stroke-width=2 width=100% /><line clip-path=url(#shape) stroke-width=3 x1=100% x2=0 y1=0 y2=100% />`}</svg></div>`}${!this.hideRecentColors&&i`<div slot=content-end class="recent-colors-container" @keydown=${this.handleRecentColorsKeyDown} tabindex=-1><calcite-swatch-group selection-mode=single .label=${r.recentColors??""} scale=s class="swatch-group">${C.map((c,u)=>c?n(c,i`<calcite-swatch class="preview-recent-swatch" role=button scale=s tabindex=0 .selected=${c===this.color} .color=${c} .label=${r.selectColor??""} @click=${this.handleSwatchClickOrKeyUp} @keyup=${this.handleSwatchClickOrKeyUp} @focus=${this.handleUpdateActiveSwatch} ${l(this.setRecentColorElement(u+1))}></calcite-swatch>`):this.renderEmptySwatch(`empty-swatch-${u}`))}</calcite-swatch-group></div>`||""}${this.clearable&&i`<div slot=content-end class="end-action"><calcite-action icon=circle-disallowed scale=s .label=${r.clearColor} .text=${r.clearColor??""} @click=${this.handleClearColor} @mouseover=${()=>this.addTooltip({referenceElement:this.actionEl.value,placement:b?"right-start":"left-start",innerHTML:r.noColor??""})} @mouseout=${()=>this.removeTooltip()} ${l(this.actionEl)}></calcite-action></div>`||""}</arcgis-picker-input>`}renderEmptySwatch(e){return n(e,i`<svg class="empty-swatch" viewBox="0 0 20 20" xmlns=http://www.w3.org/2000/svg width=20>${h`<rect width=20 height=20 fill=#f8f8f8 stroke=#000 stroke-dasharray=2 />`}</svg>`)}};E("arcgis-color-input",d);export{d as ArcgisColorInput};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{a as o}from"./EB5MDEWF.js";import{L as l,O as m,R as p,h as d,j as i,t as c}from"./BCN6LPOG.js";var b=d`:host{overflow-y:auto;overflow-x:hidden;scroll-behavior:smooth;height:100%;width:100%}`,n=class extends l{constructor(){super(...arguments),this.treeItemsOpen=new Set,this.handleMutations=e=>{e.forEach(t=>{if(t.type==="attributes"&&t.attributeName==="expanded"){let s=t.target;"key"in s.dataset&&s.dataset.key!==void 0&&this.treeItemsOpen.has(s.dataset.key)!==s.expanded&&this.toggleTreeItem(s.dataset.key)}})},this.renderedTree=[],this.data={},this.arcgisChange=c()}static{this.properties={renderedTree:16,data:0,value:1}}static{this.styles=b}load(){this.setupComponent()}willUpdate(e){e.has("data")&&(this.hasUpdated||Object.keys(this.data??{}).length>0)&&this.setupComponent()}loaded(){this.manager.onLifecycle(()=>{this.observer=new MutationObserver(this.handleMutations);let e=this.el.shadowRoot??this.el;return this.observer.observe(e,{attributes:!0,subtree:!0,attributeFilter:["expanded"]}),()=>{this.observer?.disconnect(),this.observer=void 0}})}setupComponent(){this.treeItemsOpen.clear(),this.buildJSXTree()}buildJSXTree(){let e=t=>{let s=[];for(let r of Object.keys(t)){let a=t[r],h;typeof a=="object"&&(h=this.treeItemsOpen.has(r)?e(a):[]);let u=typeof a=="object"?r:a;s.push(this.createTreeItem(r,u,h))}return s};this.renderedTree=e(this.data)}toggleTreeItem(e){this.treeItemsOpen.has(e)?this.treeItemsOpen.delete(e):this.treeItemsOpen.add(e),this.buildJSXTree()}createTreeItem(e,t,s){return i`<calcite-tree-item data-key=${e??m} .selected=${this.value===e} .expanded=${this.treeItemsOpen.has(e)}>${t}${s!==void 0&&o(`${e}-child-tree`,i`<calcite-tree slot=children>${s}</calcite-tree>`)||""}</calcite-tree-item>`}handleTreeSelect(e){let t=e.currentTarget?.selectedItems[0]?.dataset.key;t!==void 0&&(this.value=t,this.arcgisChange.emit())}render(){return o("base-tree",i`<calcite-tree scale=s @calciteTreeSelect=${this.handleTreeSelect}>${this.renderedTree}</calcite-tree>`)}};p("arcgis-coordinate-system-picker-tree",n);export{n as ArcgisCoordinateSystemPickerTree};
2
+ import{a as o}from"./TE77L77R.js";import{L as l,P as m,S as p,h as d,j as i,t as c}from"./4IMLX5B4.js";var b=d`:host{overflow-y:auto;overflow-x:hidden;scroll-behavior:smooth;height:100%;width:100%}`,n=class extends l{constructor(){super(...arguments),this.treeItemsOpen=new Set,this.handleMutations=e=>{e.forEach(t=>{if(t.type==="attributes"&&t.attributeName==="expanded"){let s=t.target;"key"in s.dataset&&s.dataset.key!==void 0&&this.treeItemsOpen.has(s.dataset.key)!==s.expanded&&this.toggleTreeItem(s.dataset.key)}})},this.renderedTree=[],this.data={},this.arcgisChange=c()}static{this.properties={renderedTree:16,data:0,value:1}}static{this.styles=b}load(){this.setupComponent()}willUpdate(e){e.has("data")&&(this.hasUpdated||Object.keys(this.data??{}).length>0)&&this.setupComponent()}loaded(){this.manager.onLifecycle(()=>{this.observer=new MutationObserver(this.handleMutations);let e=this.el.shadowRoot??this.el;return this.observer.observe(e,{attributes:!0,subtree:!0,attributeFilter:["expanded"]}),()=>{this.observer?.disconnect(),this.observer=void 0}})}setupComponent(){this.treeItemsOpen.clear(),this.buildJSXTree()}buildJSXTree(){let e=t=>{let s=[];for(let r of Object.keys(t)){let a=t[r],h;typeof a=="object"&&(h=this.treeItemsOpen.has(r)?e(a):[]);let u=typeof a=="object"?r:a;s.push(this.createTreeItem(r,u,h))}return s};this.renderedTree=e(this.data)}toggleTreeItem(e){this.treeItemsOpen.has(e)?this.treeItemsOpen.delete(e):this.treeItemsOpen.add(e),this.buildJSXTree()}createTreeItem(e,t,s){return i`<calcite-tree-item data-key=${e??m} .selected=${this.value===e} .expanded=${this.treeItemsOpen.has(e)}>${t}${s!==void 0&&o(`${e}-child-tree`,i`<calcite-tree slot=children>${s}</calcite-tree>`)||""}</calcite-tree-item>`}handleTreeSelect(e){let t=e.currentTarget?.selectedItems[0]?.dataset.key;t!==void 0&&(this.value=t,this.arcgisChange.emit())}render(){return o("base-tree",i`<calcite-tree scale=s @calciteTreeSelect=${this.handleTreeSelect}>${this.renderedTree}</calcite-tree>`)}};p("arcgis-coordinate-system-picker-tree",n);export{n as ArcgisCoordinateSystemPickerTree};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{a as L}from"./5KBPWYPL.js";import{a as E}from"./TO3YFXVJ.js";import"./LLATF73T.js";import"./XX2ZCFWI.js";import{L as D,M as C,N as y,O as h,R as k,h as _,j as x,k as d}from"./BCN6LPOG.js";export default $arcgis.t(([{substitute:N}])=>{var B=_`:host{display:block;--arcgis-histogram-bar-color: var(--calcite-color-border-1);--arcgis-histogram-stop-color: color-mix(in srgb, var(--calcite-color-brand) 80%, transparent)}.content{display:block;direction:ltr;width:100%;height:100%}.svg{display:block;width:100%;height:100%;overflow:visible}.data-line{stroke:#888;stroke-width:1px;shape-rendering:crispEdges}.average-data-line{stroke-width:1px;shape-rendering:crispEdges;stroke:#444}.label,.data-line-symbol{font-size:12px;stroke:#fff;stroke-width:2px;paint-order:stroke;unicode-bidi:plaintext}.data-line-symbol{font-family:"Georgia, serif",sans-serif;font-style:italic}`;function O(t,n,i,e,r,a){let[s,o]=r;if(!t||o===0||s===0||i==null||n==null)return null;let l=i-n,c=(t.length>1?t[t.length-1].maxValue-t[0].minValue:0)/l,[u,m]=e==="vertical"?[o*c,s]:[o,s*c],b=t?t.map(g=>g.count):[],p=Math.max(...b);return t.map(g=>{let[v,f]=e==="vertical"?[u/t.length,p!==0?g.count/p*m:0]:[p!==0?g.count/p*u:0,m/t.length],{maxValue:I}=g,V=i-I,[$,S]=e==="vertical"?[0,V*(o/l)]:[s-f-V*(s/l),o-v];return a&&($=s-$-f),[$,S,f,v]})}function A(t,n,i,e,r,a){if(e===void 0||r===void 0)return[];let s=[];return t!=null&&s.push({value:t,symbol:"x\u0304",lineClass:"average-data-line"}),n!=null&&e!=null&&r!=null&&s.push(...U(e,r,n,i,t)),a&&s.push(...a),s.filter(({value:o})=>o>=e&&o<=r)}function P(t,n,i,e,r,a){if(i==null)return[0,0,0,0];let s=Math.round((r-i)/e*100)/100;a&&n==="horizontal"&&(s=1-s);let[o,l]=t;if(n==="vertical"){let u=l-s*l||1;return u=Math.round(u)+.5,[0,"100%",u,u]}let c=s*o||1;return c=Math.round(c)+.5,[c,c,"100%",0]}function T(t,n,i,e,r,a){if(i==null)return[0,0];let s=Math.round((r-i)/e*100)/100;a&&n==="horizontal"&&(s=1-s);let[o,l]=t;return a&&n==="vertical"?[0,l-s*l]:n==="vertical"?[o,l-s*l]:[0,s*o]}function R(t,n,i){if(!t||t.length===0)return null;if(F(t)){let e=t.map(r=>({...r,color:M(r.color??i)}));return e.unshift({color:n,minValue:Number.NEGATIVE_INFINITY,maxValue:e[0].minValue}),e.push({color:n,minValue:e[e.length-1].maxValue,maxValue:Number.POSITIVE_INFINITY}),e}else return t.map(e=>({...e,color:M(e.color??i)}))}function G(t,n,i,e){if(!t||t.length===0)return i;if(F(t)){let r=Y(t,n);if(r.length===0)return i;if(e){let{color:a=i,weight:s}=r[0],{color:o=i,weight:l}=r[1]??r[0],c=s+l;return`color-mix(in srgb, ${a} ${s/c*100}%, ${o} ${l/c*100}%)`}return r[0].color??i}return H(t,n)}function Y(t,n){let i=[];for(let e of t){let r=Math.max(0,Math.min(n.maxValue,e.maxValue)-Math.max(n.minValue,e.minValue));r>0&&i.push({color:e.color,weight:r})}return i.sort((e,r)=>r.weight-e.weight)}function H(t,n){let i=(n.maxValue-n.minValue)/2+n.minValue;if(i>t[t.length-1].value)return t[t.length-1].color;for(let e=0;e<t.length-1;e++){let r=t[e],a=t[e+1];if(i<=r.value)return r.color;if(i<a.value){let s=(i-r.value)/(a.value-r.value)*100;return`color-mix(in srgb, ${r.color}, ${a.color} ${s}%)`}}return t[t.length-1].color}function F(t){return t[0]!=null&&"minValue"in t[0]}function M(t){if(typeof t=="string")return t;if(Array.isArray(t))return`rgba(${t[0]}, ${t[1]}, ${t[2]}, ${t[3]??1})`;let{r:n,g:i,b:e,a:r=1}=t;return`rgba(${n}, ${i}, ${e}, ${r})`}function U(t,n,i,e,r){let a=.06*(n-t);return j(i,e,r).map((s,o,l)=>{let c=l.length/2,u=s>r?"+":"-",m=o>=c?o-c+1:c-o;return{symbol:`${u}${m===1?"":m}\u03C3`,value:s}}).filter(({value:s})=>Math.abs(r-s)>a)}function j(t,n,i){if(i==null||t==null)return[];let e=n,r=[];for(let a=e*-1;a<=e;a++)a!==0&&r.push(i+a*t);return r}var z="var(--arcgis-histogram-bar-color)",J="var(--arcgis-histogram-stop-color)",w=class extends D{constructor(){super(...arguments),this._messages=E(),this._normalizedStops=null,this.#t=(n,i)=>{let e=r=>L(this._messages._lang,this._numberFormatterOptions).format(r);return this.labelFormatter?.(n,i,e)??e(n)},this._numberFormatterOptions={maximumFractionDigits:2},this.containerDimensions=[0,0],this.icon="graph-histogram",this.layout="horizontal",this.mirrored=!1,this.colorBlendingEnabled=!1,this.standardDeviationCount=1}static{this.properties={containerDimensions:16,colorStops:0,icon:3,labelFormatter:0,average:11,messageOverrides:0,standardDeviation:11,bins:0,dataLines:0,label:1,layout:3,max:11,min:11,mirrored:7,colorBlendingEnabled:5,standardDeviationCount:9}}static{this.styles=B}#t;loaded(){let n=new ResizeObserver(r=>{for(let a of r){let{width:s,height:o}=a.contentRect;this.containerDimensions=[s,o]}}),{width:i,height:e}=this.el.getBoundingClientRect();this.containerDimensions=[i,e],n.observe(this.el)}willUpdate(n){n.has("colorStops")&&(this._normalizedStops=R(this.colorStops,z,J))}render(){let{label:n}=this;return x`<div role=img .ariaLabel=${n??void 0} class="content">${this._renderContent()}</div>`}_renderContent(){let{containerDimensions:[n,i]}=this,e="bg-fill",r=n?[d`<defs><clipPath id=${e}><rect height=${i??h} width=${n??h} x=0 y=0 /></clipPath></defs>`,d`<g style=${y({clipPath:`url(#${e})`})}><g>${this._renderBars()}</g></g>`,d`<g>${this._renderLines()}</g>`]:[];return x`<svg class="svg" xmlns=http://www.w3.org/2000/svg>${r}</svg>`}_renderBars(){let{bins:n,_messages:i}=this,e=O(this.bins,this.min,this.max,this.layout,this.containerDimensions,this.mirrored);return!e||!n?null:e.map((r,a)=>{let[s,o,l,c]=r,u=n[a],m=i?.barLabel?N(i.barLabel,u):"";return d`<rect style=${y({fill:G(this._normalizedStops,u,z,this.colorBlendingEnabled)})} .ariaLabel=${m} data-index=${a??h} height=${c??h} role=img shape-rendering=crispEdges stroke-width=0 width=${l??h} x=${s??h} y=${o??h} />`})}_renderLines(){return A(this.average,this.standardDeviation,this.standardDeviationCount,this.min,this.max,this.dataLines)?.map(n=>W({dataLine:n,containerDimensions:this.containerDimensions,layout:this.layout,min:this.min,max:this.max,labelFormatter:this.#t,mirrored:this.mirrored}))}},W=t=>{let{containerDimensions:n,layout:i,min:e,max:r,dataLine:a,labelFormatter:s,mirrored:o}=t,l=r!=null&&e!=null?r-e:0,[c,u,m,b]=P(n,i,e,l,a.value,o),[p,g]=T(n,i,e,l,a.value,o),v="symbol"in a?[d`<tspan class="data-line-symbol">${a.symbol}</tspan>`,d`<tspan>${s(a.value,a.lineClass==="average-data-line"?"average":"standard-deviation")}</tspan>`]:a.label,f="lineClass"in a&&a.lineClass?a.lineClass:"data-line";return d`<g><title>${a.value}</title><line class=${C(f)} shape-rendering=crispEdges x1=${c??h} x2=${u??h} y1=${m??h} y2=${b??h} /><text class="label" text-anchor=${o&&i==="vertical"?"start":"end"} transform=${(i==="horizontal"?"rotate(270)":void 0)??h} x=${p??h} y=${g-2}>${v}</text></g>`};k("arcgis-histogram",w);return w},"intl")
2
+ import{a as L}from"./5KBPWYPL.js";import{a as E}from"./LLLQXE2U.js";import"./JYWWX277.js";import"./XMMFL5H3.js";import{L as D,M as C,N as y,P as h,S as k,h as _,j as x,k as d}from"./4IMLX5B4.js";export default $arcgis.t(([{substitute:N}])=>{var B=_`:host{display:block;--arcgis-histogram-bar-color: var(--calcite-color-border-1);--arcgis-histogram-stop-color: color-mix(in srgb, var(--calcite-color-brand) 80%, transparent)}.content{display:block;direction:ltr;width:100%;height:100%}.svg{display:block;width:100%;height:100%;overflow:visible}.data-line{stroke:#888;stroke-width:1px;shape-rendering:crispEdges}.average-data-line{stroke-width:1px;shape-rendering:crispEdges;stroke:#444}.label,.data-line-symbol{font-size:12px;stroke:#fff;stroke-width:2px;paint-order:stroke;unicode-bidi:plaintext}.data-line-symbol{font-family:"Georgia, serif",sans-serif;font-style:italic}`;function O(t,n,i,e,r,a){let[s,o]=r;if(!t||o===0||s===0||i==null||n==null)return null;let l=i-n,c=(t.length>1?t[t.length-1].maxValue-t[0].minValue:0)/l,[u,m]=e==="vertical"?[o*c,s]:[o,s*c],b=t?t.map(g=>g.count):[],p=Math.max(...b);return t.map(g=>{let[v,f]=e==="vertical"?[u/t.length,p!==0?g.count/p*m:0]:[p!==0?g.count/p*u:0,m/t.length],{maxValue:I}=g,V=i-I,[$,S]=e==="vertical"?[0,V*(o/l)]:[s-f-V*(s/l),o-v];return a&&($=s-$-f),[$,S,f,v]})}function A(t,n,i,e,r,a){if(e===void 0||r===void 0)return[];let s=[];return t!=null&&s.push({value:t,symbol:"x\u0304",lineClass:"average-data-line"}),n!=null&&e!=null&&r!=null&&s.push(...U(e,r,n,i,t)),a&&s.push(...a),s.filter(({value:o})=>o>=e&&o<=r)}function P(t,n,i,e,r,a){if(i==null)return[0,0,0,0];let s=Math.round((r-i)/e*100)/100;a&&n==="horizontal"&&(s=1-s);let[o,l]=t;if(n==="vertical"){let u=l-s*l||1;return u=Math.round(u)+.5,[0,"100%",u,u]}let c=s*o||1;return c=Math.round(c)+.5,[c,c,"100%",0]}function T(t,n,i,e,r,a){if(i==null)return[0,0];let s=Math.round((r-i)/e*100)/100;a&&n==="horizontal"&&(s=1-s);let[o,l]=t;return a&&n==="vertical"?[0,l-s*l]:n==="vertical"?[o,l-s*l]:[0,s*o]}function R(t,n,i){if(!t||t.length===0)return null;if(F(t)){let e=t.map(r=>({...r,color:M(r.color??i)}));return e.unshift({color:n,minValue:Number.NEGATIVE_INFINITY,maxValue:e[0].minValue}),e.push({color:n,minValue:e[e.length-1].maxValue,maxValue:Number.POSITIVE_INFINITY}),e}else return t.map(e=>({...e,color:M(e.color??i)}))}function G(t,n,i,e){if(!t||t.length===0)return i;if(F(t)){let r=Y(t,n);if(r.length===0)return i;if(e){let{color:a=i,weight:s}=r[0],{color:o=i,weight:l}=r[1]??r[0],c=s+l;return`color-mix(in srgb, ${a} ${s/c*100}%, ${o} ${l/c*100}%)`}return r[0].color??i}return H(t,n)}function Y(t,n){let i=[];for(let e of t){let r=Math.max(0,Math.min(n.maxValue,e.maxValue)-Math.max(n.minValue,e.minValue));r>0&&i.push({color:e.color,weight:r})}return i.sort((e,r)=>r.weight-e.weight)}function H(t,n){let i=(n.maxValue-n.minValue)/2+n.minValue;if(i>t[t.length-1].value)return t[t.length-1].color;for(let e=0;e<t.length-1;e++){let r=t[e],a=t[e+1];if(i<=r.value)return r.color;if(i<a.value){let s=(i-r.value)/(a.value-r.value)*100;return`color-mix(in srgb, ${r.color}, ${a.color} ${s}%)`}}return t[t.length-1].color}function F(t){return t[0]!=null&&"minValue"in t[0]}function M(t){if(typeof t=="string")return t;if(Array.isArray(t))return`rgba(${t[0]}, ${t[1]}, ${t[2]}, ${t[3]??1})`;let{r:n,g:i,b:e,a:r=1}=t;return`rgba(${n}, ${i}, ${e}, ${r})`}function U(t,n,i,e,r){let a=.06*(n-t);return j(i,e,r).map((s,o,l)=>{let c=l.length/2,u=s>r?"+":"-",m=o>=c?o-c+1:c-o;return{symbol:`${u}${m===1?"":m}\u03C3`,value:s}}).filter(({value:s})=>Math.abs(r-s)>a)}function j(t,n,i){if(i==null||t==null)return[];let e=n,r=[];for(let a=e*-1;a<=e;a++)a!==0&&r.push(i+a*t);return r}var z="var(--arcgis-histogram-bar-color)",J="var(--arcgis-histogram-stop-color)",w=class extends D{constructor(){super(...arguments),this._messages=E(),this._normalizedStops=null,this.#t=(n,i)=>{let e=r=>L(this._messages._lang,this._numberFormatterOptions).format(r);return this.labelFormatter?.(n,i,e)??e(n)},this._numberFormatterOptions={maximumFractionDigits:2},this.containerDimensions=[0,0],this.icon="graph-histogram",this.layout="horizontal",this.mirrored=!1,this.colorBlendingEnabled=!1,this.standardDeviationCount=1}static{this.properties={containerDimensions:16,colorStops:0,icon:3,labelFormatter:0,average:11,messageOverrides:0,standardDeviation:11,bins:0,dataLines:0,label:1,layout:3,max:11,min:11,mirrored:7,colorBlendingEnabled:5,standardDeviationCount:9}}static{this.styles=B}#t;loaded(){let n=new ResizeObserver(r=>{for(let a of r){let{width:s,height:o}=a.contentRect;this.containerDimensions=[s,o]}}),{width:i,height:e}=this.el.getBoundingClientRect();this.containerDimensions=[i,e],n.observe(this.el)}willUpdate(n){n.has("colorStops")&&(this._normalizedStops=R(this.colorStops,z,J))}render(){let{label:n}=this;return x`<div role=img .ariaLabel=${n??void 0} class="content">${this._renderContent()}</div>`}_renderContent(){let{containerDimensions:[n,i]}=this,e="bg-fill",r=n?[d`<defs><clipPath id=${e}><rect height=${i??h} width=${n??h} x=0 y=0 /></clipPath></defs>`,d`<g style=${y({clipPath:`url(#${e})`})}><g>${this._renderBars()}</g></g>`,d`<g>${this._renderLines()}</g>`]:[];return x`<svg class="svg" xmlns=http://www.w3.org/2000/svg>${r}</svg>`}_renderBars(){let{bins:n,_messages:i}=this,e=O(this.bins,this.min,this.max,this.layout,this.containerDimensions,this.mirrored);return!e||!n?null:e.map((r,a)=>{let[s,o,l,c]=r,u=n[a],m=i?.barLabel?N(i.barLabel,u):"";return d`<rect style=${y({fill:G(this._normalizedStops,u,z,this.colorBlendingEnabled)})} .ariaLabel=${m} data-index=${a??h} height=${c??h} role=img shape-rendering=crispEdges stroke-width=0 width=${l??h} x=${s??h} y=${o??h} />`})}_renderLines(){return A(this.average,this.standardDeviation,this.standardDeviationCount,this.min,this.max,this.dataLines)?.map(n=>W({dataLine:n,containerDimensions:this.containerDimensions,layout:this.layout,min:this.min,max:this.max,labelFormatter:this.#t,mirrored:this.mirrored}))}},W=t=>{let{containerDimensions:n,layout:i,min:e,max:r,dataLine:a,labelFormatter:s,mirrored:o}=t,l=r!=null&&e!=null?r-e:0,[c,u,m,b]=P(n,i,e,l,a.value,o),[p,g]=T(n,i,e,l,a.value,o),v="symbol"in a?[d`<tspan class="data-line-symbol">${a.symbol}</tspan>`,d`<tspan>${s(a.value,a.lineClass==="average-data-line"?"average":"standard-deviation")}</tspan>`]:a.label,f="lineClass"in a&&a.lineClass?a.lineClass:"data-line";return d`<g><title>${a.value}</title><line class=${C(f)} shape-rendering=crispEdges x1=${c??h} x2=${u??h} y1=${m??h} y2=${b??h} /><text class="label" text-anchor=${o&&i==="vertical"?"start":"end"} transform=${(i==="horizontal"?"rotate(270)":void 0)??h} x=${p??h} y=${g-2}>${v}</text></g>`};k("arcgis-histogram",w);return w},"intl")
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{e as r}from"./LLATF73T.js";import"./XX2ZCFWI.js";import{L as i,R as a}from"./BCN6LPOG.js";var s=class extends i{constructor(){super(...arguments),this.autoDestroyDisabled=!1,this.canNext=!1,this.canPlay=!1,this.canPrevious=!1,this.arcgisPropertyChange=r()("canNext","canPlay","canPrevious","currentValue")}static{this.properties={autoDestroyDisabled:5,items:0,currentValue:0,canNext:5,canPlay:5,canPrevious:5}}async destroy(){await this.manager.destroy()}reset(){this.currentValue=this.items?.at(0)}step(t){if(!this.items||!this.currentValue)return;let e=this.items.indexOf(this.currentValue)+(t==="next"?1:-1);e>=this.items.length||e<0||(this.currentValue=this.items.at(e),this._checkState())}connectedCallback(){super.connectedCallback(),this.el.hidden=!0}willUpdate(t){(t.has("currentValue")||t.has("items"))&&this.items?.length&&(this.currentValue??=this.items.at(0)),this._checkState()}_checkState(){if(!this.items?.length){this.canPlay=!1,this.canNext=!1,this.canPrevious=!1;return}this.canPlay=!0;let t=this.items.indexOf(this.currentValue);this.canNext=t>=0&&t<this.items.length-1,this.canPrevious=t>0}};a("arcgis-value-picker-collection",s);export{s as ArcgisValuePickerCollection};
2
+ import{e as r}from"./JYWWX277.js";import"./XMMFL5H3.js";import{L as i,S as a}from"./4IMLX5B4.js";var s=class extends i{constructor(){super(...arguments),this.autoDestroyDisabled=!1,this.canNext=!1,this.canPlay=!1,this.canPrevious=!1,this.arcgisPropertyChange=r()("canNext","canPlay","canPrevious","currentValue")}static{this.properties={autoDestroyDisabled:5,items:0,currentValue:0,canNext:5,canPlay:5,canPrevious:5}}async destroy(){await this.manager.destroy()}reset(){this.currentValue=this.items?.at(0)}step(t){if(!this.items||!this.currentValue)return;let e=this.items.indexOf(this.currentValue)+(t==="next"?1:-1);e>=this.items.length||e<0||(this.currentValue=this.items.at(e),this._checkState())}connectedCallback(){super.connectedCallback(),this.el.hidden=!0}willUpdate(t){(t.has("currentValue")||t.has("items"))&&this.items?.length&&(this.currentValue??=this.items.at(0)),this._checkState()}_checkState(){if(!this.items?.length){this.canPlay=!1,this.canNext=!1,this.canPrevious=!1;return}this.canPlay=!0;let t=this.items.indexOf(this.currentValue);this.canNext=t>=0&&t<this.items.length-1,this.canPrevious=t>0}};a("arcgis-value-picker-collection",s);export{s as ArcgisValuePickerCollection};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import{b as m,e as g}from"./XMMFL5H3.js";import{a as w,b as A,c as N,d as v,e as b,f as $,g as _,o as f,r as E,s as j,u as y}from"./4IMLX5B4.js";var D=t=>(...s)=>{let e=b(),o=new t(...s),r=o.exports;v(e.at(-1));let n=o.component.manager;n.W(o,r),o.watchExports(n.W.bind(n,o)),$(o);let a=[o.component,...e].reverse();return E(a,i=>i===void 0?void 0:F(o,i,r),r)},F=(t,{host:s,key:e,isReactive:o},r)=>{let n=s,a=n[e]!==t.exports,i=n[e]!==r,c=r!==t.exports;if(a&&!i&&c&&(n[e]=t.exports),s===t.component){if(o){let l=t.component.manager;i&&l.W(t,n[e]),t.onUpdate(h=>{if(h.has(e)){let O=n[e];O!==t.exports&&l.W(t,O)}})}t.O=o?void 0:e}let d=t.component.constructor.elementProperties.get(e)?.readOnly;t.watchExports(()=>{n[e]!==t.exports&&(d?_(()=>{n[e]=t.exports}):n[e]=t.exports)})};var W="ar,bg,bs,ca,cs,da,de,el,en,es,et,fi,fr,he,hr,hu,id,it,ja,ko,lt,lv,nl,nb,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sr,sv,th,tr,uk,vi,zh-CN,zh-HK,zh-TW".split(","),K=new Set(W),u="en",q={pt:"pt-BR",nb:"no",nn:"no",zh:"zh-CN"},k=async(t,s,e="")=>{let o=`${s}/${e}`,r=`${o}${t}.json`;return V[r]??=z(t,o),await V[r]},V={},z=async(t,s)=>{let e=`${s}${t}.json`;try{let o=await fetch(e);if(o.ok)return await o.json()}catch(o){return f("error","intl",`An unknown error occurred while fetching localization strings at ${e}`,{detail:{error:o}}),{}}return t===u?{}:await z(u,s)},x=t=>{let[s,e]=t.split("-"),o=s.toLowerCase(),r=o;return e&&(r=`${o}-${e.toUpperCase()}`),r=q[r]??r,K.has(r)?r:e?x(o):u};var C=t=>{let s=g(t,"lang",globalThis.navigator?.language||u);return{lang:s,t9nLocale:x(s)}},S=(t,s,e,o)=>{let r,n=()=>R(t,s(),o).then(a=>{(r?.lang!==a.lang||r.t9nLocale!==a.t9nLocale||r.t9nStrings!==a.t9nStrings)&&e(a),r=a}).catch(a=>{f("error","intl","Error updating component locale state",{detail:{error:a}})});return queueMicrotask(n),m(t,["lang"],n)},R=async(t,s,e=t.localName.split("-").slice(1).join("-"))=>{let{lang:o,t9nLocale:r}=C(t),n=`${s}/${e}/t9n`,i=e===null?{}:await k(r,n,"messages.");return{lang:o,t9nLocale:r,t9nStrings:i}};var M=t=>B(void 0,t);var L=class extends y{constructor(s,e){super(s);let o=this.exports;try{A(this.component);let r=e(this.component,this),n=this.exports!==o;if(w(r)){n||this.setProvisionalExports(r);let a=r.then(i=>{this.exports=i,super.catchUpLifecycle()}).catch(i=>{this.P.reject(i)});this.onLoad(async()=>await a)}else(!n||r!==void 0)&&(this.exports=r),queueMicrotask(()=>super.catchUpLifecycle())}catch(r){this.P.reject(r)}}catchUpLifecycle(){}},B=D(L),dt=(t,s)=>new P(t,s),P=class extends y{#t;#e;#o;constructor(s,e){super(),!!1&&(this.#e=s,this.#o=e,this.#t=new MutationObserver(o=>{o.forEach(r=>{s.includes(r.attributeName)&&e.call(this.component,this.component.el.getAttribute(r.attributeName),r.oldValue,r.attributeName)})}))}hostConnected(){this.#e.forEach(s=>{this.component.el.hasAttribute(s)&&this.#o.call(this.component,this.component.el.getAttribute(s),null,s)}),this.#t.observe(this.component.el,{attributes:!0,attributeOldValue:!0,attributeFilter:this.#e})}hostDisconnected(){this.#t.disconnect()}};var T="ltr",ut=()=>M((t,s)=>{s.exports=T,s.onLifecycle(()=>{let e=()=>{let o=g(t.el,"dir",T);s.exports=o==="rtl"?"rtl":"ltr"};return e(),m(t.el,["dir"],e)})}),ht=t=>(s={})=>M((e,o)=>{let r=C(e.el),n={_lang:r.lang,_t9nLocale:r.t9nLocale,_loading:!0},a=e;o.onLifecycle(()=>S(e.el,()=>t("./assets"),({t9nLocale:c,t9nStrings:p,lang:d})=>{let l={...p,_lang:d,_t9nLocale:c,_loading:!1};o.exports=l;let h=p.componentLabel;typeof h=="string"&&"label"in e&&e.label==null&&(e.label??=h),i(a.messageOverrides)},s.name));let i=c=>{let p=o.exports,d=p._original??p,l=U(d,c);c&&(l._original=d),o.exports=l};return"messageOverrides"in a&&o.onUpdate(c=>{c.has("messageOverrides")&&i(a.messageOverrides)}),s.blocking?(o.setProvisionalExports(n,!1),o.ready):n}),U=(t,s)=>{if(!s)return t;let e={...t};return Object.entries(s).forEach(([o,r])=>{t[o]!==void 0&&(typeof r=="object"?e[o]=U(t[o],r):e[o]=r??t[o])}),e},ft=t=>H,G="arcgisPropertyChange",H=(...t)=>{let s=N(),e=j(G,void 0,s),o=!0;return s.manager.onUpdated(r=>{if(o||!s.el.isConnected){o=!1;return}for(let n of t)r.has(n)&&e.emit({name:n})}),e};export{D as a,dt as b,ut as c,ht as d,ft as e};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import{a as C}from"./SRO2CZ77.js";import{a as S}from"./CFEMTMZX.js";import{a as T,b as E}from"./BDIGRQ2U.js";import{a as P}from"./LLLQXE2U.js";import"./JYWWX277.js";import"./XMMFL5H3.js";import{a as L}from"./TE77L77R.js";import{J as p,K as d,L as k,M as v,N as $,P as m,Q as y,S as B,h as x,j as o,o as F,p as I,t as h}from"./4IMLX5B4.js";var a=new Map;a.set("oid","key");a.set("guid","key");a.set("global-id","key");a.set("blob","binary");a.set("integer","integer");a.set("small-integer","integer");a.set("big-integer","integer");a.set("single","number");a.set("double","number");a.set("long","number");a.set("number","number");a.set("date","date-time");a.set("date-only","calendar");a.set("time-only","clock");a.set("timestamp-offset","time-zone");a.set("string","string");var N=({fieldType:n})=>o`<calcite-icon scale=s .icon=${a.get(n)}></calcite-icon>`;function _(n){return!!n.length&&"fields"in n[0]}function u(n){return!!n.length&&"subFieldInfos"in n[0]}function O(n){return n.filter(e=>u(e.fields))}function D(n){return n.flatMap(e=>e.fields)}function A(n){return n.flatMap(e=>u(e.fields)?[]:e.fields)}function f(n){return n.flatMap(e=>u(e.fields)?e.fields.flatMap(t=>t.subFieldInfos):e.fields)}function M(n,e){return n.flatMap(t=>u(t.fields)?t.fields.flatMap(i=>i.subFieldInfos.filter(s=>g(s,e,!0))):t.fields.filter(i=>w(i,e)))}function w(n,e){return e?"subFieldInfos"in n?g(n,e)||n.subFieldInfos.some(t=>g(t,e,!0)):g(n,e):!0}function g(n,e,t=!1){return[t?n.name.split("/").pop():n.name,n.alias,n.description].some(i=>i?.toLocaleLowerCase().includes(e.toLocaleLowerCase()))}var H=x`.panel{min-height:250px}.list-wrapper{max-height:50vh;overflow:auto}.list-controls{display:grid;grid-template-columns:1fr auto}.field-icons{display:flex;align-items:center;padding:0 var(--calcite-space-sm)}.selection-button-div{padding:var(--calcite-space-2xs) var(--calcite-space-sm-plus)}.no-match-text{padding:var(--calcite-space-md)}.footer{width:100%}.add-cancel-buttons{display:flex;align-content:space-between}`,b=class extends k{constructor(){super(...arguments),this._messages=P({blocking:!0}),this.popoverNode=p(),this.listWrapper=p(),this.listNode=p(),this.flowElement=p(),this.panelElement=p(),this.dropdownNode=p(),this.fieldInfoFlowItemEl=p(),this.allLists=[],this.filterText="",this.panelCutOffHeight=0,this.initialized=!1,this._propWatcherTask=new T(this,{task:async([e])=>{if(!this.listOnly&&!E(e?.refElement))throw F("error",this,I("popoverProps")),new Error;this._propWatcherTask.autoRun=!1},args:()=>[this.popoverProps]}),this.fields=[],this.selectedFields=[],this.listOnly=!1,this.showFieldInfo=!1,this.showFieldTypeIcon=!1,this.showFieldName=!1,this.showDescription=!1,this.showSelectionAll=!1,this.showCancel=!0,this.hideCancel=!1,this.showSort=!0,this.hideSort=!1,this.showFilterLength=10,this.multiple=!1,this.sortBy="default",this.groupFieldsAndExpressions=!1,this.arcgisChange=h(),this.arcgisClose=h(),this.arcgisDeleteField=h(),this.arcgisEditField=h(),this.arcgisFieldPickListChange=h(),this.arcgisFieldPickListDismissed=h(),this.arcgisFieldPickListSortByChange=h(),this.arcgisSortByChange=h()}static{this.properties={lastSortBy:16,filterFields:16,mapView:0,view:0,layer:0,fields:0,selectedFields:0,listOnly:5,popoverProps:0,showFieldInfo:5,showFieldTypeIcon:5,showFieldName:5,showDescription:5,showSelectionAll:5,showCancel:5,hideCancel:5,showSort:5,hideSort:5,showFilterLength:9,multiple:5,heading:1,okBtnText:1,filterPlaceholderText:1,filterNoResultsText:1,sortBy:1,groupFieldsAndExpressions:5,fieldsGroupHeading:1,expressionsGroupHeading:1,customExpressionCheck:0}}static{this.styles=H}async reposition(){await this.popoverNode.value?.reposition()}async setDisabled(e){this.panelElement.value&&(this.panelElement.value.disabled=e)}async setFocus(){setTimeout(()=>requestAnimationFrame(()=>{this.listOnly?this.listNode.value?.setFocus():this.panelElement.value?.setFocus()}),1)}load(){!this.view&&this.mapView&&(this.view=this.mapView),!this.showCancel&&!this.hideCancel&&(this.hideCancel=!0),!this.showSort&&!this.hideSort&&(this.hideSort=!0),this.listOnly&&this.showFieldInfo&&(this.showFieldInfo=!1,F("info",this,"showFieldInfo is not supported if listOnly is true.")),!this.multiple&&this.selectedFields.length>1&&(this.selectedFields=[this.selectedFields[0]]),this.lastSortBy=this.sortBy??this.lastSortBy,this.updateGroupedLists(),this.initialized=!0}willUpdate(e){this.initialized&&(e.has("fields")||e.has("sortBy")||e.has("lastSortBy")||e.has("customExpressionCheck"))&&(e.has("sortBy")&&(this.lastSortBy=this.sortBy??this.lastSortBy),this.updateGroupedLists())}loaded(){this.setUpObserver(),this.listOnly?this.listNode.value?.setFocus():(this.flowElement.value?.setFocus(),this.checkMaxHeight())}disconnectedCallback(){super.disconnectedCallback(),this.observer?.disconnect()}setUpObserver(){this.observer=new MutationObserver(e=>{for(let t of e)t.attributeName==="style"&&this.popoverNode.value&&this.dropdownNode.value&&this.popoverNode.value.style.visibility==="hidden"&&(this.dropdownNode.value.open=!1)})}checkMaxHeight(){setTimeout(()=>this.checkPanelMaxHeight(),200),setTimeout(()=>this.checkPanelMaxHeight(),500),setTimeout(()=>this.checkPanelMaxHeight(),1e3),setTimeout(()=>this.checkPanelMaxHeight(),1500)}checkPanelMaxHeight(){if(this.panelCutOffHeight===0){let e=this.panelElement.value?.getBoundingClientRect();if(e&&e.bottom>window.innerHeight){this.panelCutOffHeight=e.height-(e.bottom-window.innerHeight)-5;let t=this.listWrapper.value?.getBoundingClientRect();t&&(this.listWrapper.value.style.maxHeight=`${t.height-(e.bottom-window.innerHeight)-5}px`)}}}getSortedList(e){let t=[...e],i=t.filter(s=>s.type==="none");return t=t.filter(s=>s.type!=="none"),this.lastSortBy==="display"?t.sort((s,l)=>s.alias.localeCompare(l.alias)):this.lastSortBy==="field"?t.sort((s,l)=>s.name.localeCompare(l.name)):this.lastSortBy==="type"&&t.sort((s,l)=>s.type.localeCompare(l.type)),t=t.concat(i),t}isExpression(e){return this.customExpressionCheck?this.customExpressionCheck(e):e.name.includes(S.expression)}canDeselectAll(){let e=f(this.allLists);return this.filterFields?.length?this.filterContainsAll():this.selectedFields.length===e.length}filterContainsAll(){return!!this.filterFields?.every(e=>this.selectedFields.some(t=>t===e))}showFieldInfoCheck(e){let{layer:t}=this;return this.showFieldInfo?!(!t||this.isExpression(e)||e.name.includes(S.relationship)||e.type==="none"):!1}updateGroupedLists(){if(this.fields)if(this.allLists=[],_(this.fields))for(let e of this.fields){if(this.listOnly&&u(e.fields)){F("error",this,"subFieldInfos are not supported if listOnly is true.");continue}this.allLists.push({title:e.title,fields:this.getSortedGroupFields(e.fields)})}else this.allLists=this.groupFieldsAndExpressions?[{title:this.expressionsGroupHeading,fields:[...this.getSortedList(this.fields)].filter(e=>this.isExpression(e))},{title:this.fieldsGroupHeading,fields:[...this.getSortedList(this.fields)].filter(e=>!this.isExpression(e))}]:[{title:void 0,fields:this.getSortedList(this.fields)}]}getSortedGroupFields(e){return u(e)?this.getSortedList(e).map(t=>({...t,subFieldInfos:this.getSortedList(t.subFieldInfos).map(i=>({...i,name:`${t.name}/${i.name}`}))})):this.getSortedList(e)}addFieldInfoFlowItem(e,t){let i=this.flowElement.value,s=y(o`<calcite-flow-item selected .heading=${e.alias??e.name} .description=${e.name} class="panel" style=${$(this.panelCutOffHeight>0?`max-height: ${this.panelCutOffHeight}px`:"max-height: 50vh")} @calciteFlowItemBack=${l=>{l.currentTarget.remove(),this.fieldInfoFlowItemEl.value.selected=!1,this.panelElement.value.selected=!0,setTimeout(()=>{t.setFocus()},300)}} ${d(this.fieldInfoFlowItemEl)}><arcgis-field-info lang=${this._messages._lang??m} .fieldName=${e.name} .layer=${this.layer} .view=${this.view} class="content"></arcgis-field-info></calcite-flow-item>`);i.appendChild(s),this.panelElement.value.selected=!1,setTimeout(()=>{this.fieldInfoFlowItemEl?.value.setFocus()},1)}addSubFieldInfoFlowItem(e,t){let i=this.flowElement.value,s=e.subFieldInfos.filter(r=>g(r,this.filterText,!0)),l=y(o`<calcite-flow-item selected .heading=${e.alias??e.name} .description=${e.description??void 0} class="panel" style=${$(this.panelCutOffHeight>0?`max-height: ${this.panelCutOffHeight}px`:"max-height: 50vh")} @calciteFlowItemBack=${r=>{r.currentTarget.remove(),this.fieldInfoFlowItemEl.value.selected=!1,this.panelElement.value.selected=!0,setTimeout(()=>{t.setFocus()},300)}} ${d(this.fieldInfoFlowItemEl)}><calcite-list .label=${e.alias??e.name} .selectionMode=${this.multiple?"multiple":"single"} @calciteListChange=${r=>{this.updateSelectedFieldsForList(r.currentTarget,e.subFieldInfos),this.arcgisChange.emit({selectedFields:this.selectedFields}),this.arcgisFieldPickListChange.emit({selectedFields:this.selectedFields}),this.multiple||(this.arcgisClose.emit({selectedFields:this.selectedFields}),this.arcgisFieldPickListDismissed.emit({selectedFields:this.selectedFields}))}}>${s.map(r=>this.renderCalciteListItem(r,!1))}</calcite-list>${this.filterText&&!s.length&&this.filterNoResultsText?.length!==0?o`<div class="no-match-text">${this.filterNoResultsText??this._messages.noMatches}</div>`:null}</calcite-flow-item>`);i.appendChild(l),this.panelElement.value.selected=!1,setTimeout(()=>{this.fieldInfoFlowItemEl.value?.setFocus()},1)}shouldRenderSelectionButton(e){return this.multiple&&this.showSelectionAll&&(!e||!this.filterText||!!this.filterFields?.length)}handleListSelectionChange(e){this.updateSelectedFieldsForList(this.listNode.value,e),this.arcgisChange.emit({selectedFields:this.selectedFields}),this.arcgisFieldPickListChange.emit({selectedFields:this.selectedFields}),this.multiple||(this.arcgisClose.emit({selectedFields:this.selectedFields}),this.arcgisFieldPickListDismissed.emit({selectedFields:this.selectedFields}))}updateSelectedFieldsForList(e,t){let i=new Set(t.map(c=>c.name)),s=e.selectedItems.map(c=>c.value),l=this.selectedFields.filter(c=>!i.has(c)||s.includes(c)),r=s.filter(c=>!this.selectedFields.includes(c));this.selectedFields=this.multiple?[...new Set([...l,...r])]:s,this.reorderSelectedFieldsByCurrentListOrder()}setSortBy(e){this.lastSortBy=e,this.updateGroupedLists(),this.arcgisSortByChange.emit(this.lastSortBy),this.arcgisFieldPickListSortByChange.emit(this.lastSortBy),this.reorderSelectedFieldsByCurrentListOrder()&&(this.arcgisChange.emit({selectedFields:this.selectedFields}),this.arcgisFieldPickListChange.emit({selectedFields:this.selectedFields}))}reorderSelectedFieldsByCurrentListOrder(){if(!this.selectedFields.length)return!1;let e=f(this.allLists).map(l=>l.name),t=new Set(this.selectedFields),i=e.filter(l=>t.has(l)),s=i.length!==this.selectedFields.length||i.some((l,r)=>l!==this.selectedFields[r]);return s&&(this.selectedFields=[...i]),s}render(){return this._propWatcherTask.render({complete:()=>{if(this.listOnly)return this.renderList();let e=this.heading||(this.multiple?this._messages.headerSelect:this._messages.header),t=this.popoverProps;return this.el.classList.add("js-app-flyout"),L(`${t.autoClose}`,o`<calcite-popover .placement=${t.placement??"leading-start"} open pointer-disabled .referenceElement=${t.refElement} .offsetDistance=${t.offsetDistance??-Math.round(t.refElement.getBoundingClientRect().width)} .offsetSkidding=${t.offsetSkidding??0} .overlayPositioning=${t.overlayPositioning} trigger-disabled .autoClose=${t.autoClose} .label=${this.heading??(this.multiple?this._messages.headerSelect:this._messages.header)??""} @calcitePopoverClose=${()=>{this.arcgisClose.emit(),this.arcgisFieldPickListDismissed.emit()}} ${d(this.popoverNode)}><calcite-flow style=${$({width:`${t.popoverWidth??t.refElement.getBoundingClientRect().width}px`,...t.maxHeight&&{maxHeight:t.maxHeight}})} ${d(this.flowElement)}><calcite-flow-item class="panel" .heading=${e} closable @calciteFlowItemClose=${()=>{this.arcgisClose.emit(),this.arcgisFieldPickListDismissed.emit()}} ${d(this.panelElement)}><slot slot=content-top name=content-top></slot>${this.renderList()}<slot slot=content-bottom name=content-bottom></slot>${(this.multiple||!this.hideCancel)&&o`<div slot=footer class="footer"><slot name=content-footer></slot>${this.multiple&&!this.hideCancel?o`<div class="add-cancel-buttons">${this.renderAddButton()}${this.renderCancelButton()}</div>`:o`${this.renderAddButton()}${this.renderCancelButton()}`}</div>`||""}</calcite-flow-item></calcite-flow></calcite-popover>`)},error:()=>""})}renderList(){let e=this.heading||(this.multiple?this._messages.headerSelect:this._messages.header),t=A(this.allLists),i=O(this.allLists),s=f(this.allLists).length>=this.showFilterLength;return t.length||i.length?i.length?this.renderSplitLists(t,i,s):this.renderTopLevelOnlyFieldList(e,t,s):o`<slot name=no-fields></slot>`}renderSplitLists(e,t,i){let s=f(this.allLists),l=D(this.allLists).some(r=>w(r,this.filterText));return o`${i?o`<div class="list-controls"><calcite-filter .items=${s} .filterProps=${["name","alias","description"]} .placeholder=${this.filterPlaceholderText??this._messages.filter} @calciteFilterChange=${r=>{this.filterText=r.currentTarget.value,this.filterFields=this.filterText?M(this.allLists,this.filterText).map(c=>c.name):void 0}}></calcite-filter>${this.renderSortButton()}</div>`:null}<div class=${v(this.listOnly?"":"list-wrapper")} ${d(this.listWrapper)}>${this.shouldRenderSelectionButton(i)?this.renderSelectionButton():null}${this.renderSplitSubFieldLists(t)}${e.length?this.renderSplitTopLevelFieldList(e,!0):null}</div>${this.filterText&&!l&&this.filterNoResultsText?.length!==0?o`<div class="no-match-text">${this.filterNoResultsText??this._messages.noMatches}</div>`:null}`}renderSplitSubFieldLists(e){let t=e.map(i=>({...i,fields:i.fields.filter(s=>w(s,this.filterText))})).filter(i=>!!i.fields.length);return C(t,i=>i.title,i=>o`<calcite-list selection-mode=none .label=${i.title??this.heading??""}><calcite-list-item-group .heading=${i.title}>${C(i.fields,s=>s.name,s=>o`<calcite-list-item .label=${s.alias||s.name} .description=${this.multiple?this._messages.subFieldsSelected.replace("${count}",`${s.subFieldInfos.filter(l=>this.selectedFields.includes(l.name)).length}`):void 0} .value=${s.name} @click=${l=>this.addSubFieldInfoFlowItem(s,l.currentTarget)} @keydown=${l=>{l.key==="Enter"&&this.addSubFieldInfoFlowItem(s,l.currentTarget)}}><calcite-icon slot=actions-end icon=chevron-right flip-rtl scale=s></calcite-icon></calcite-list-item>`)}</calcite-list-item-group></calcite-list>`)}renderSplitTopLevelFieldList(e,t){return o`<calcite-list .label=${this.heading||(this.multiple?this._messages.headerSelect:this._messages.header)} .selectionMode=${this.multiple?"multiple":"single"} @calciteListChange=${()=>this.handleListSelectionChange(e)} ${d(this.listNode)}><slot name=content-center></slot>${this.renderGroupedListItems(t)}</calcite-list>`}renderTopLevelOnlyFieldList(e,t,i){return o`<div class=${v(this.listOnly?"":"list-wrapper")} ${d(this.listWrapper)}><calcite-list .label=${e} .selectionMode=${this.multiple?"multiple":"single"} .filterEnabled=${i} .filterPlaceholder=${this.filterPlaceholderText??this._messages.filter} @calciteListChange=${()=>this.handleListSelectionChange(t)} @calciteListFilter=${s=>{s.stopPropagation(),this.filterFields=this.listNode.value.filteredItems?.map(l=>l.value),this.filterText=this.listNode.value.filterText}} ${d(this.listNode)}>${this.renderSortButton("filter-actions-end")}${this.shouldRenderSelectionButton(i)?this.renderSelectionButton():null}<slot name=content-center></slot>${this.renderGroupedListItems(!1)}</calcite-list></div>`}renderSortButton(e){let t=f(this.allLists);if(!(t.length>=this.showFilterLength&&!this.hideSort))return"";let i=t.every(s=>!!s.type);return o`<calcite-action id=sort-action slot=${e??m} .text=${this._messages.sort??""} title=${this._messages.sort??m}><calcite-icon scale=s icon=sort-descending flip-rtl></calcite-icon></calcite-action><calcite-dropdown placement=bottom-end overlay-positioning=fixed reference-element=sort-action @calciteDropdownOpen=${()=>{this.observer?.disconnect(),this.popoverNode.value&&this.observer?.observe(this.popoverNode.value,{attributes:!0})}} @calciteDropdownClose=${()=>this.observer?.disconnect()} ${d(this.dropdownNode)}><calcite-dropdown-group><calcite-dropdown-item .selected=${this.lastSortBy==="default"} @calciteDropdownItemSelect=${()=>this.setSortBy("default")}>${this._messages.default}</calcite-dropdown-item><calcite-dropdown-item .selected=${this.lastSortBy==="display"} @calciteDropdownItemSelect=${()=>this.setSortBy("display")}>${this._messages.displayName}</calcite-dropdown-item>${i&&o`<calcite-dropdown-item .selected=${this.lastSortBy==="type"} @calciteDropdownItemSelect=${()=>this.setSortBy("type")}>${this._messages.type}</calcite-dropdown-item>`||""}<calcite-dropdown-item .selected=${this.lastSortBy==="field"} @calciteDropdownItemSelect=${()=>this.setSortBy("field")}>${this._messages.fieldName}</calcite-dropdown-item></calcite-dropdown-group></calcite-dropdown>`}renderSelectionButton(){return o`<div class="selection-button-div"><calcite-button appearance=transparent scale=s width=full @click=${()=>{if(this.canDeselectAll())this.selectedFields=this.filterFields?.length?this.selectedFields.filter(e=>!this.filterFields?.includes(e)):[];else if(this.filterFields?.length)this.selectedFields=[...new Set([...this.selectedFields,...this.filterFields])];else{let e=f(this.allLists);this.selectedFields=e.map(t=>t.name)}this.reorderSelectedFieldsByCurrentListOrder(),this.arcgisChange.emit({selectedFields:this.selectedFields}),this.arcgisFieldPickListChange.emit({selectedFields:this.selectedFields})}}>${this.canDeselectAll()?this._messages.deselectAll:this._messages.selectAll}</calcite-button></div>`}renderGroupedListItems(e){let t=this.allLists.filter(i=>!!i.fields.length&&!u(i.fields)).map(i=>({...i,fields:e?i.fields.filter(s=>w(s,this.filterText)):i.fields})).filter(i=>!!i.fields.length);return t.length===1&&!t[0].title?this.renderListItems(t[0].fields):t.map(i=>o`<calcite-list-item-group .heading=${i.title}>${this.renderListItems(i.fields)}</calcite-list-item-group>`)}renderListItems(e){return e.map(t=>this.renderCalciteListItem(t))}renderCalciteListItem(e,t=!0){let i=t&&this.showFieldInfoCheck(e),s=this.showFieldTypeIcon&&!!e.type;return L(e.name,o`<calcite-list-item .label=${e.alias||e.name} .description=${(()=>{if(this.showFieldName&&e.hideFieldName!==!0)return`{${e.name}}`;if(this.showDescription&&e.hideDescription!==!0&&e.description)return e.description})()} .value=${e.name} .selected=${!this.multiple&&e.name===this.selectedFields[0]||this.multiple&&this.selectedFields.includes(e.name)} .metadata=${{label:e.alias,fieldName:e.name}}>${s&&o`<div slot=actions-end class="field-icons">${N({fieldType:e.type})}</div>`||""}${this.renderInfoAction(e,i)}${this.renderEditAction(e)}${this.renderDeleteAction(e)}</calcite-list-item>`)}renderInfoAction(e,t){let{_messages:i}=this;return t?o`<calcite-action slot=actions-end .text=${i.info} title=${i.info??m} scale=s icon=information @click=${s=>{s.stopPropagation();let l=s.currentTarget;this.addFieldInfoFlowItem(e,l)}}></calcite-action>`:""}renderEditAction(e){let{_messages:t}=this;return e.showEditAction?o`<calcite-action slot=actions-end .text=${t.edit} title=${t.edit??m} scale=s icon=pencil @click=${i=>{i.stopPropagation(),this.arcgisEditField.emit({fieldName:e.name})}}></calcite-action>`:""}renderDeleteAction(e){let{_messages:t}=this;return e.showDeleteAction?o`<calcite-action slot=actions-end .text=${t.delete} title=${t.delete??m} scale=s icon=trash @click=${i=>{i.stopPropagation(),this.arcgisDeleteField.emit({fieldName:e.name})}}></calcite-action>`:""}renderAddButton(){return this.multiple?o`<calcite-button .appearance=${this.hideCancel?"outline-fill":"solid"} .width=${this.hideCancel?"full":"half"} @click=${()=>{this.arcgisClose.emit({selectedFields:this.selectedFields}),this.arcgisFieldPickListDismissed.emit({selectedFields:this.selectedFields})}}>${this.okBtnText||(this.multiple?this._messages.done:this._messages.ok)}</calcite-button>`:""}renderCancelButton(){return this.hideCancel?"":o`<calcite-button appearance=outline-fill .width=${this.multiple?"half":"full"} @click=${()=>{this.arcgisClose.emit(),this.arcgisFieldPickListDismissed.emit()}}>${this._messages.cancel}</calcite-button>`}};B("arcgis-field-pick-list",b);export{b as ArcgisFieldPickList};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{d as r}from"./LLATF73T.js";import{S as o}from"./BCN6LPOG.js";var s=r(o);export{s as a};
2
+ import{d as r}from"./JYWWX277.js";import{T as o}from"./4IMLX5B4.js";var s=r(o);export{s as a};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{u as s}from"./BCN6LPOG.js";var r=class extends s{constructor(t){super(t),this.ref=e=>{e!==this._referenceElement&&(this._referenceElement=e,this.exports=void 0,e&&e.componentOnReady().then(()=>{this._referenceElement===e&&(this.exports=e)}))},this.exports=void 0,this.watchExports(()=>{t.el.dispatchEvent(new CustomEvent("arcgisInternalLayoutUpdate",{bubbles:!0,composed:!0}))})}get element(){return this.exports}};export{r as a};
2
+ import{u as s}from"./4IMLX5B4.js";var r=class extends s{constructor(t){super(t),this.ref=e=>{e!==this._referenceElement&&(this._referenceElement=e,this.exports=void 0,e&&e.componentOnReady().then(()=>{this._referenceElement===e&&(this.exports=e)}))},this.exports=void 0,this.watchExports(()=>{t.el.dispatchEvent(new CustomEvent("arcgisInternalLayoutUpdate",{bubbles:!0,composed:!0}))})}get element(){return this.exports}};export{r as a};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import{e as n}from"./JYWWX277.js";import"./XMMFL5H3.js";import{L as r,S as c,h as s,j as a}from"./4IMLX5B4.js";var o=s`:host{display:flex;flex:auto;inline-size:300px;min-inline-size:0;padding:var(--calcite-space-sm)}:host([disabled]){opacity:var(--calcite-opacity-disabled);pointer-events:none}.container{align-items:center;border:solid var(--calcite-border-width-sm) var(--calcite-color-border-3);display:flex;flex:auto;padding-inline:var(--calcite-space-sm)}.text{color:var(--calcite-color-text-1);flex:auto;font-family:inherit;font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-regular);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:var(--calcite-space-none)}`,i=class extends r{constructor(){super(...arguments),this.autoDestroyDisabled=!1,this.disabled=!1,this.canNext=!1,this.canPlay=!1,this.canPrevious=!1,this.arcgisPropertyChange=n()("canNext","canPlay","canPrevious","currentValue")}static{this.properties={autoDestroyDisabled:5,disabled:7,items:0,currentValue:0,canNext:5,canPlay:5,canPrevious:5}}static{this.styles=o}async destroy(){await this.manager.destroy()}reset(){this.currentValue=this.items?.[0]}step(e){if(!this.items||!this.currentValue)return;let t=this.items.findIndex(({value:l})=>l===this.currentValue?.value)+(e==="next"?1:-1);t>=this.items.length||t<0||(this.currentValue=this.items[t],this._checkState())}connectedCallback(){super.connectedCallback(),this.el.hidden=!0}willUpdate(e){(e.has("currentValue")||e.has("items"))&&this.items?.length&&!this.currentValue&&(this.currentValue=this.items[0]),this.el.hidden=!this.items?.length,this._checkState()}_checkState(){if(!this.items?.length){this.canPlay=!1,this.canNext=!1,this.canPrevious=!1;return}this.canPlay=!0;let e=this.items.findIndex(({value:t})=>t===this.currentValue?.value);this.canNext=e<this.items.length-1,this.canPrevious=e>0}render(){return a`<div class="container"><div class="text">${this.currentValue?.label}</div></div>`}};c("arcgis-value-picker-label",i);export{i as ArcgisValuePickerLabel};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import{a as $,b as D,c as M,d as E}from"./2S4SSY4K.js";import{c as R}from"./JYWWX277.js";import"./XMMFL5H3.js";import{C as b,E as v,F as u,H as x,I as P,K as w,L,O as T,P as A,S as z,h as y,j as p,m as k,n as _,z as C}from"./4IMLX5B4.js";var m=class{constructor(t=new Map,e=new Set){this.cachedParts=t,this.directives=e}moveAllToCache(){for(let t of this.directives)t.moveToCache()}},g=class extends P{#e;#s;#t;constructor(t){if(super(t),t.type!==C.CHILD)throw new Error("sharedCache() can only be used in child expressions")}render(t,e,s){return[s]}update(t,[e,s,i]){this.#t!==e&&(this.#t&&this.#t.directives.delete(this),e.directives.add(this),this.#t=e),this.#e=t,this.#s=s;let o=e.cachedParts.get(s),r=o?u(o).pop():void 0;return r&&(x(t),b(t,void 0,r),v(t,[r])),this.render(e,s,i)}moveToCache(){let t=this.#e,e=this.#t;if(!t||!e)return;let s=u(t).pop();if(!s)return;let i=e.cachedParts.get(this.#s);if(!i){let o=document.createDocumentFragment();i=_(k,o),e.cachedParts.set(this.#s,i)}if(u(i).length>0)throw new Error("sharedCache() keys must be unique");v(i,[s]),b(i,void 0,s)}disconnected(){this.#t?.directives.delete(this)}reconnected(){this.#t?.directives.add(this)}},K=T(g);var q=y`:host{--calcite-internal-animation-timing-slow: 0}.stack{block-size:100%}.toolbar-stack{display:flex;gap:8px}:host([toolbar-kind="docked"]) .toolbar-stack{gap:0}.line{display:flex;gap:8px}:host([layout="vertical"]) .line{block-size:100%;flex-direction:column}:host([layout="vertical"]) .line[data-alignment=bottom]{align-self:end}.line[data-alignment=left]{justify-content:left}.line[data-alignment=right]{justify-content:right}:host([layout="vertical"]) .toolbar-stack{block-size:100%}:host([layout="horizontal"]) .toolbar-stack{flex-direction:column}:host([toolbar-kind="docked"][layout="horizontal"]) .toolbar-stack{min-inline-size:100%}:host([toolbar-kind="docked"][layout="vertical"]) .toolbar-stack{min-block-size:100%}`,I=8,f=class extends L{constructor(){super(),this.#e=new ResizeObserver(t=>this._updateMeasurement(t)),this.#s=new MutationObserver(()=>this._syncToolbars()),this.#r=R(),this.#i=new m,this._layout="horizontal",this._availableLength=0,this.scale="m",this.tooltipAppearance="native",this.relativePosition="top-left",this.toolbarKind="floating",this.listen("arcgisInternalLayoutUpdate",()=>this.requestUpdate())}static{this.properties={_availableLength:16,_toolbars:16,effectiveRelativeDirection:16,layout:3,scale:3,tooltipAppearance:1,relativePosition:1,toolbarKind:3}}static{this.styles=[q,E,$,D,M]}#e;#s;#t;#r;#i;#o;get effectiveRelativeDirection(){let[t,e]=this.relativePosition.split("-"),s=this.#r;switch(e){case"left":case"right":return`${t}-${e}`;case"end":return`${t}-${s==="ltr"?"right":"left"}`;case"start":return`${t}-${s==="ltr"?"left":"right"}`}}get layout(){return this._layout}set layout(t){t!==this._layout&&(this._layout=t,this._updateMeasurement())}connectedCallback(){super.connectedCallback(),this._connectMeasurement(this.#o),this.#s.observe(this.el,{childList:!0}),this._syncToolbars()}disconnectedCallback(){this.#e.disconnect(),this.#s.disconnect(),super.disconnectedCallback()}_setRulerEl(t){this.#o!==t&&(this.#o=t,this.isConnected&&this._connectMeasurement(t))}_connectMeasurement(t){this.#e.disconnect(),t&&(this.#e.observe(t),this._updateMeasurement())}_updateMeasurement(t){let e=t?.at(0)?.contentRect??this.#o?.getBoundingClientRect();e&&(this._availableLength=this.layout==="horizontal"?e.width:e.height)}_syncToolbars(){this.#t?.abort();let t=Array.from(this.el.children).filter(S),e=new AbortController;this.#t=e,Promise.all(t.map(s=>s.componentOnReady())).then(()=>{!this.isConnected||e.signal.aborted||(this._toolbars=t)})}_arrangeToolbarLines(t,e){let s=t.map(a=>{let d=a.allocate(e,this._availableLength);return{toolbar:a,budget:d.reduce((O,j)=>O+j.budget,0)}}),i=[],o=[],r=0;for(let a of s){let d=r+(o.length===0?0:I)+a.budget;o.length>0&&(this.toolbarKind==="docked"||d>this._availableLength)?(i.push(o),o=[a],r=a.budget):(o.push(a),r=d)}o.length>0&&i.push(o);let[h,c]=e.relativePosition.split("-"),l=e.layout==="vertical";return(l?c==="right":h==="bottom")&&i.reverse(),(l?h==="bottom":c==="right")&&i.forEach(a=>a.reverse()),i}#a;render(){let t=this._toolbars;if(!t?.length){this.#a?.length&&(this.#i.moveAllToCache(),this.#a=[]);return}let e={layout:this.layout,relativePosition:this.effectiveRelativeDirection,scale:this.scale,tooltipAppearance:this.tooltipAppearance,toolbarKind:this.toolbarKind},s=this._arrangeToolbarLines(t,e);U(this.#a,s)||(this.#i.moveAllToCache(),this.#a=s.map(c=>c.map(({toolbar:l})=>l)));let[i,o]=e.relativePosition.split("-"),r=this.layout==="vertical"?i:o,h=this.#i;return p`<div class="stack"><div class="ruler" ${w(this._setRulerEl)}></div><div class="toolbar-stack">${s.map(c=>p`<div class="line" data-alignment=${r??A}>${c.map(({toolbar:l,budget:a})=>K(h,l,l.proxiedRender(e,a,this.toolbarKind,this._availableLength)))}</div>`)}</div></div>`}};function S(n){return n.localName==="arcgis-toolbar"}function U(n,t){return n?.length===t.length&&t.every((e,s)=>e.length===n[s].length&&e.every(({toolbar:i},o)=>i===n[s][o]))}z("arcgis-toolbar-stack",f);export{f as ArcgisToolbarStack};
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{J as l,K as t,L as a,N as r,R as c,h as n,j as o,t as i}from"./BCN6LPOG.js";var d=n`:host{display:flex}:host([disabled]){opacity:.25;pointer-events:none}button{overflow:hidden;background-color:transparent;align-items:center;border:none;border-radius:0;box-sizing:border-box;cursor:pointer;display:flex;font-family:inherit;gap:var(--calcite-space-sm);height:100%;justify-content:center;outline-color:transparent;outline-offset:0;padding:3px 0;padding-inline:3px var(--calcite-space-sm);position:relative;text-decoration:none;user-select:none;text-align:center;-webkit-appearance:none;width:100%;&:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-brand);outline-offset:var(--calcite-border-width-md)}&:hover{text-decoration:none}}.preview{border:var(--calcite-border-width-sm) solid #949494;display:flex;align-items:center;flex-grow:1}.container{display:flex;gap:5px;width:100%}::slotted([slot="preview"]){flex-grow:1;display:flex}calcite-icon{color:var(--calcite-color-text-3)}`,s=class extends a{constructor(){super(),this.panelEl=l(),this.open=!1,this.disabled=!1,this.iconEnd="pencil",this.label="",this.arcgisPopoverOpen=i(),this.arcgisPopoverClose=i(),this.listenOn(document.body,"arcgisPopoverOpen",this.onPopoverOpen)}static{this.properties={open:16,disabled:7,heading:1,iconEnd:1,intlDone:1,label:1,popoverProps:0}}static{this.styles=d}async close(e){this.onPopoverClose(e)}async setFocus(){this.buttonEl?.focus()}setPreviewContainerRef(e){this.previewContainerEl=e}setButtonRef(e){this.buttonEl=e}handlePopoverOpen(e){this.panelEl.value.closed=!1,this.arcgisPopoverOpen.emit(),e.stopPropagation()}handlePopoverKeyUp({key:e}){e==="Escape"&&this.onPopoverClose({focus:!0})}onPopoverOpen(e){this.open&&(e.composedPath().includes(this.el)||(this.open=!1))}onPopoverClose(e){this.open=!1,this.arcgisPopoverClose.emit(),e?.focus&&setTimeout(()=>this.buttonEl?.focus(),300)}handlePanelClose(e){e.stopPropagation(),this.onPopoverClose({focus:!0})}handleButtonClick(){this.open=!this.open,this.open&&setTimeout(()=>{this.panelEl.value?.setFocus()},300)}render(){let{popoverProps:e}=this;return o`<calcite-popover pointer-disabled trigger-disabled @keyup=${this.handlePopoverKeyUp} .label=${this.label} .offsetDistance=${e?.offsetDistance??0} .offsetSkidding=${e?.offsetSkidding??0} .flipDisabled=${e?.flipDisabled??!1} .open=${this.disabled?!1:this.open} .overlayPositioning=${e?.overlayPositioning??"fixed"} .placement=${e?.placement??"bottom"} @calcitePopoverOpen=${this.handlePopoverOpen} @calcitePopoverClose=${p=>p.stopPropagation()} .referenceElement=${e?.refElement??this.previewContainerEl}><calcite-panel closable .heading=${this.heading} style=${r(e?.maxHeight?{maxHeight:e.maxHeight}:void 0)} @calcitePanelClose=${this.handlePanelClose} ${t(this.panelEl)}><slot name=content></slot><calcite-button appearance=solid slot=footer width=full .label=${this.intlDone} @click=${()=>this.onPopoverClose({focus:!0})}>${this.intlDone}</calcite-button></calcite-panel></calcite-popover><div class="container"><div class="preview" ${t(this.setPreviewContainerRef)}><button .disabled=${this.disabled} @click=${this.handleButtonClick} type=button .ariaLabel=${this.label} ${t(this.setButtonRef)}><slot name=preview></slot>${this.iconEnd?o`<calcite-icon .icon=${this.iconEnd} scale=s></calcite-icon>`:null}</button></div><slot name=content-end></slot></div>`}};c("arcgis-picker-input",s);export{s as ArcgisPickerInput};
2
+ import{J as l,K as t,L as a,N as r,S as c,h as n,j as o,t as i}from"./4IMLX5B4.js";var d=n`:host{display:flex}:host([disabled]){opacity:.25;pointer-events:none}button{overflow:hidden;background-color:transparent;align-items:center;border:none;border-radius:0;box-sizing:border-box;cursor:pointer;display:flex;font-family:inherit;gap:var(--calcite-space-sm);height:100%;justify-content:center;outline-color:transparent;outline-offset:0;padding:3px 0;padding-inline:3px var(--calcite-space-sm);position:relative;text-decoration:none;user-select:none;text-align:center;-webkit-appearance:none;width:100%;&:focus{outline:var(--calcite-border-width-md) solid var(--calcite-color-brand);outline-offset:var(--calcite-border-width-md)}&:hover{text-decoration:none}}.preview{border:var(--calcite-border-width-sm) solid #949494;display:flex;align-items:center;flex-grow:1}.container{display:flex;gap:5px;width:100%}::slotted([slot="preview"]){flex-grow:1;display:flex}calcite-icon{color:var(--calcite-color-text-3)}`,s=class extends a{constructor(){super(),this.panelEl=l(),this.open=!1,this.disabled=!1,this.iconEnd="pencil",this.label="",this.arcgisPopoverOpen=i(),this.arcgisPopoverClose=i(),this.listenOn(document.body,"arcgisPopoverOpen",this.onPopoverOpen)}static{this.properties={open:16,disabled:7,heading:1,iconEnd:1,intlDone:1,label:1,popoverProps:0}}static{this.styles=d}async close(e){this.onPopoverClose(e)}async setFocus(){this.buttonEl?.focus()}setPreviewContainerRef(e){this.previewContainerEl=e}setButtonRef(e){this.buttonEl=e}handlePopoverOpen(e){this.panelEl.value.closed=!1,this.arcgisPopoverOpen.emit(),e.stopPropagation()}handlePopoverKeyUp({key:e}){e==="Escape"&&this.onPopoverClose({focus:!0})}onPopoverOpen(e){this.open&&(e.composedPath().includes(this.el)||(this.open=!1))}onPopoverClose(e){this.open=!1,this.arcgisPopoverClose.emit(),e?.focus&&setTimeout(()=>this.buttonEl?.focus(),300)}handlePanelClose(e){e.stopPropagation(),this.onPopoverClose({focus:!0})}handleButtonClick(){this.open=!this.open,this.open&&setTimeout(()=>{this.panelEl.value?.setFocus()},300)}render(){let{popoverProps:e}=this;return o`<calcite-popover pointer-disabled trigger-disabled @keyup=${this.handlePopoverKeyUp} .label=${this.label} .offsetDistance=${e?.offsetDistance??0} .offsetSkidding=${e?.offsetSkidding??0} .flipDisabled=${e?.flipDisabled??!1} .open=${this.disabled?!1:this.open} .overlayPositioning=${e?.overlayPositioning??"fixed"} .placement=${e?.placement??"bottom"} @calcitePopoverOpen=${this.handlePopoverOpen} @calcitePopoverClose=${p=>p.stopPropagation()} .referenceElement=${e?.refElement??this.previewContainerEl}><calcite-panel closable .heading=${this.heading} style=${r(e?.maxHeight?{maxHeight:e.maxHeight}:void 0)} @calcitePanelClose=${this.handlePanelClose} ${t(this.panelEl)}><slot name=content></slot><calcite-button appearance=solid slot=footer width=full .label=${this.intlDone} @click=${()=>this.onPopoverClose({focus:!0})}>${this.intlDone}</calcite-button></calcite-panel></calcite-popover><div class="container"><div class="preview" ${t(this.setPreviewContainerRef)}><button .disabled=${this.disabled} @click=${this.handleButtonClick} type=button .ariaLabel=${this.label} ${t(this.setButtonRef)}><slot name=preview></slot>${this.iconEnd?o`<calcite-icon .icon=${this.iconEnd} scale=s></calcite-icon>`:null}</button></div><slot name=content-end></slot></div>`}};c("arcgis-picker-input",s);export{s as ArcgisPickerInput};