@arcgis/map-components 5.2.0-next.11 → 5.2.0-next.13

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 (52) hide show
  1. package/dist/cdn/4BGPI3L3.js +2 -0
  2. package/dist/cdn/{GTOGU3CL.js → 5D3ZCD2V.js} +1 -1
  3. package/dist/cdn/{HNGHLDNZ.js → 5Z6MDFHN.js} +1 -1
  4. package/dist/cdn/64S26ZIP.js +2 -0
  5. package/dist/cdn/IJZYN6XT.js +2 -0
  6. package/dist/cdn/{3QWDXECJ.js → K6O7QOW4.js} +1 -1
  7. package/dist/cdn/MCIDCKIS.js +2 -0
  8. package/dist/cdn/O3S3JGUF.js +2 -0
  9. package/dist/cdn/QQPVIXFY.js +2 -0
  10. package/dist/cdn/R66ZOECE.js +2 -0
  11. package/dist/cdn/TPZUKUI7.js +2 -0
  12. package/dist/cdn/UCPXN4Y5.js +2 -0
  13. package/dist/cdn/assets/print/t9n/messages.en.json +1 -1
  14. package/dist/cdn/index.js +1 -1
  15. package/dist/components/arcgis-daylight/customElement.js +32 -23
  16. package/dist/components/arcgis-features/customElement.d.ts +15 -0
  17. package/dist/components/arcgis-features/customElement.js +33 -33
  18. package/dist/components/arcgis-features-next/customElement.d.ts +14 -0
  19. package/dist/components/arcgis-features-next/customElement.js +15 -12
  20. package/dist/components/arcgis-labeled-switch/customElement.js +5 -5
  21. package/dist/components/arcgis-layer-list-next/customElement.d.ts +2 -15
  22. package/dist/components/arcgis-layer-list-next/customElement.js +97 -77
  23. package/dist/components/arcgis-layer-list-next/layer-list-item/customElement.js +71 -72
  24. package/dist/components/arcgis-layer-list-next/types.d.ts +18 -0
  25. package/dist/components/arcgis-map/customElement.d.ts +126 -105
  26. package/dist/components/arcgis-multi-feature-form/customElement.js +14 -14
  27. package/dist/components/arcgis-print/customElement.d.ts +3 -0
  28. package/dist/components/arcgis-print-datum-transformation-input/customElement.js +74 -0
  29. package/dist/components/arcgis-print-datum-transformation-input/index.js +3 -0
  30. package/dist/components/arcgis-print-layout-advanced-options/customElement.js +14 -11
  31. package/dist/components/arcgis-print-layout-advanced-options/index.js +1 -0
  32. package/dist/components/arcgis-print-template-selector/customElement.js +8 -8
  33. package/dist/components/arcgis-slider-scale-range/customElement.d.ts +4 -5
  34. package/dist/components/arcgis-slider-scale-range/customElement.js +69 -56
  35. package/dist/docs/api.json +1 -1
  36. package/dist/docs/docs.json +1 -1
  37. package/dist/docs/vscode.html-custom-data.json +1 -1
  38. package/dist/docs/web-types.json +1 -1
  39. package/dist/loader.js +3 -2
  40. package/dist/types/lumina.d.ts +2 -2
  41. package/dist/types/preact.d.ts +2 -2
  42. package/dist/types/react.d.ts +2 -2
  43. package/dist/types/stencil.d.ts +2 -2
  44. package/package.json +4 -4
  45. package/dist/cdn/AGOMMJPB.js +0 -2
  46. package/dist/cdn/CTHUSEAE.js +0 -2
  47. package/dist/cdn/DNZU7DTQ.js +0 -2
  48. package/dist/cdn/EVMYQ43N.js +0 -2
  49. package/dist/cdn/IKSY73X2.js +0 -2
  50. package/dist/cdn/JE5LMTIW.js +0 -2
  51. package/dist/cdn/OUYGGJ47.js +0 -2
  52. package/dist/cdn/VNP4GF74.js +0 -2
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
- import{e as Y,f as S,g as T,h as ae,i as g}from"./LM56QFP5.js";import{a as U}from"./IZ46HAUJ.js";import{a as G}from"./JKGGA54X.js";import{a as D}from"./POKO37D3.js";import c from"./OKHEBRQW.js";import"./VJVKFKSG.js";import"./AC3GTCHJ.js";import{a as se}from"./H47NPYUM.js";import"./JD74LG7K.js";import b from"./ZUXQKICJ.js";import"./JCTU3MST.js";import"./BXKNMJRR.js";import a from"./FT7ETWDM.js";import"./IJQZON2Z.js";import{M as j,N as R,O as X,Q as B,R as O,U as ee,a as W,b as m,x as I}from"./IXZEUVT2.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:ye,when:De,whenOnce:Se},me,ke,Te,{createTrackingTarget:$e,runTracked:oe,signal:Ce},,{a:ne},{f:ie,g:te,h:re}])=>{function Pe(r,e){return r/15}function ze(r,e){let i=r?.[0];if(i==null)return null;e||(e={hours:0,minutes:0,seconds:0}),e.hours=Pe(i);let t=e.hours%1;e.hours-=t,e.minutes=t*60;let s=e.minutes%1;return e.minutes-=s,e.seconds=Math.round(s*60),e}function le(r){let e=ze([r.longitude,r.latitude]);return e==null?0:Math.round(e.hours+e.minutes/60+e.seconds/3600)}function _e(r,e){return(r%e+e)%e}var Z=class{#e;#t;#r=$e(()=>{this.#i()});constructor(e){this.#t=e;let i;oe(this.#r,()=>{i=e()}),this.#e=Ce(i)}#i(){let e=this.#e.value;oe(this.#r,()=>{this.#e.value=this.#t(e)})}mutate(e){this.#e.value=e}get value(){return this.#e.value}};function F(r){return new Z(r)}var A=Math.PI,u=Math.sin,$=Math.cos,Oe=Math.asin,Ue=Math.acos,w=A/180,fe=1e3*60*60*24,be=2440588,ve=2451545;function Me(r){return r.valueOf()/fe-.5+be}function M(r){return new Date((r+.5-be)*fe)}function Ee(r){return Me(r)-ve}var ce=w*23.4397;function Le(r,e){return Oe(u(e)*$(ce)+$(e)*u(ce)*u(r))}function Ae(r){return w*(357.5291+.98560028*r)}function Ne(r){return w*(1.9148*u(r)+.02*u(2*r)+3e-4*u(3*r))}function He(r,e){var i=w*102.9372;return r+e+i+A}var k={};k.PolarException={NORMAL:0,MIDNIGHT_SUN:1,POLAR_NIGHT:2};var q=[[-.83,"sunrise","sunset"]],we=9e-4;function Ie(r,e){return Math.round(r-we-e/(2*A))}function de(r,e,i){return we+(r+e)/(2*A)+i}function he(r,e,i){return ve+r+.0053*u(e)-.0069*u(2*i)}function je(r,e,i){return Ue((u(r)-u(e)*u(i))/($(e)*$(i)))}k.getTimes=function(r,e,i){var t=w*-i,s=w*e,n=Ee(r),a=Ie(n,t),c=de(0,t,a),o=Ae(c),d=Ne(o),l=He(o,d),h=Le(l,0),p=he(c,o,l);function x(H){var z=je(H,s,h),xe=de(z,t,a);return he(xe,o,l)}function y(H){var z=(u(H)-u(s)*u(h))/($(s)*$(h));return z<-1?k.PolarException.MIDNIGHT_SUN:z>1?k.PolarException.POLAR_NIGHT:k.PolarException.NORMAL}var f={solarNoon:M(p),nadir:M(p-.5),polarException:k.PolarException.NORMAL},v,_,P,N,Q;for(v=0,_=q.length;v<_;v+=1)P=q[v],N=x(P[0]*w),Q=p-(N-p),f[P[1]]=M(Q),f[P[2]]=M(N);return f.polarException=y(q[0][0]*w),f};var Re={spring:{dayOfMonth:20,month:2},summer:{dayOfMonth:21,month:5},fall:{dayOfMonth:23,month:8},winter:{dayOfMonth:21,month:11}},V=["spring","summer","fall","winter"];function C(r,e,i){let t=K(e,i),{dayOfMonth:s,month:n}=Re[t],a=new Date(r.getTime());return a.setMonth(n,s),a}function Be(r,e){let i=Ge(r);return K(i,e)}function Ge(r){let e=r.getTime(),i=C(r,"spring","northern").getTime(),t=C(r,"summer","northern").getTime(),s=C(r,"fall","northern").getTime(),n=C(r,"winter","northern").getTime();return e>=i&&e<t?"spring":e>=t&&e<s?"summer":e>=s&&e<n?"fall":"winter"}function K(r,e){return e==="northern"?r:Ye(r)}function ge(r){return r>=0?"northern":"southern"}function Ye(r){let e=V.indexOf(r);return V[(e+2)%4]}var Fe=1440,qe=864e5;function Ze(r,e,i,t){let s=k.getTimes(r,e,i),n=s.sunrise,a=s.sunset,c=S(r,t),o=S(n,t),d=S(a,t);if(c.getUTCDate()!==o.getUTCDate()||c.getUTCDate()!==d.getUTCDate()){let l=c.getTime()-o.getTime()>0?1:-1;n.setUTCDate(n.getUTCDate()+l),a.setUTCDate(a.getUTCDate()+l)}return{sunrise:n,sunset:a}}var Ve=100,Je=1e3,b=12e5,E=72e5;function ue(r,e){return _e(r+e,24)}function Ke({mode:r,lighting:e,getPlaySpeed:i,onProgress:t,beforeProgress:s}){let n=-1;function a(c=Date.now()){let o=e.date,d=Date.now()-(c??0);if(r==="day"){c=Date.now();let l=i()/Ve*d;if(l>0){let h=new Date(o.getTime()+l),p=e.displayUTCOffset??0,x=ue(h.getUTCHours(),p),y=ue(o.getUTCHours(),p);x<y&&(h=new Date(o.getTime()+l-qe));let f=e.clone();s?.(),e.date=h,t?.(f,e)}}else if(d>Je){c=Date.now();let l=(o.getUTCMonth()+1)%12,h=new Date(o.getTime());h.setUTCMonth(l);let p=e.clone();s?.(),e.date=h,t?.(p,e)}n=requestAnimationFrame(()=>a(c))}return a(),U(()=>cancelAnimationFrame(n))}var L=b/4;function Qe(r,e,i,t){let{day:s,night:n=s,twilight:a=s}=t,c=s*L,o=n*L,d=a*L;if(r==null||e==null||Number.isNaN(r.getTime())&&Number.isNaN(e.getTime()))return c;let l=i.getTime(),h=r.getTime(),p=e.getTime(),x=h-E/2,y=h+E/2,f=p-E/3*2,v=p+E/3,_=c;return l>=x&&l<=y?l-x<=b?_=o-(l-x)/b*(o-d):y-l<=b/2?_=c-(y-l)/b*2*(c-d):_=d:l>=f&&l<=v?l-f<=b/2?_=c-(l-f)/b*2*(c-d):v-l<=b?_=o-(v-l)/b*(o-d):_=d:(l<h||l>p)&&(_=o),_}var We=W`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted var(--calcite-color-foreground-current)}}.esri-slider{-webkit-user-select:none;user-select:none;direction:ltr;width:100%;height:100%;display:flex}.esri-disabled{pointer-events:none}.esri-disabled .esri-slider__content,.esri-disabled .esri-slider__min,.esri-disabled .esri-slider__max{opacity:var(--calcite-opacity-light)}.esri-slider--reversed.esri-slider--horizontal{flex-direction:row-reverse}.esri-slider--reversed.esri-slider--vertical{flex-direction:column}.esri-slider--horizontal{flex-direction:row}.esri-slider--horizontal .esri-slider__content{height:auto}.esri-slider--horizontal .esri-slider__track{width:100%;height:2px}.esri-slider--horizontal .esri-slider__segment--interactive:hover{cursor:ew-resize}.esri-slider--horizontal .esri-slider__anchor{width:1px;height:100%}.esri-slider--horizontal .esri-slider__label{text-align:center;margin:0 11px;top:-30px;left:-50px}.esri-slider--horizontal .esri-slider__label-input{text-align:center}.esri-slider--horizontal .esri-slider__max,.esri-slider--horizontal .esri-slider__min{flex:none;width:50px;height:auto;margin:auto}.esri-slider--horizontal .esri-slider__ticks{width:100%;margin:9px 0 0;top:100%;left:0}.esri-slider--horizontal .esri-slider__tick{width:1px;height:5px}.esri-slider--horizontal .esri-slider__tick-label{margin-top:18px}.esri-slider--vertical{flex-direction:column-reverse}.esri-slider--vertical .esri-slider__content{flex-direction:column;width:auto}.esri-slider--vertical .esri-slider__track{flex-direction:column;flex:1 0 0;width:2px;height:100%}.esri-slider--vertical .esri-slider__segment--interactive:hover{cursor:ns-resize}.esri-slider--vertical .esri-slider__anchor{width:100%;height:1px}.esri-slider--vertical .esri-slider__label{text-align:left;top:-10px;left:20px}.esri-slider--vertical .esri-slider__max,.esri-slider--vertical .esri-slider__min{flex:0 0 22px;width:100%;margin:auto}.esri-slider--vertical .esri-slider__ticks{margin:0 0 0 11px;top:0;left:100%}.esri-slider--vertical .esri-slider__tick{width:5px;height:1px}.esri-slider--vertical .esri-slider__tick-label{margin-left:30px}.esri-slider__content{z-index:0;flex:1 0 auto;justify-content:center;align-items:center;margin:auto;line-height:0;display:flex;position:relative}.esri-slider__track{touch-action:none;background-color:var(--calcite-color-border-ghost);display:inline-block;position:relative}.esri-slider__segment{transform-origin:0 0;will-change:transform;touch-action:none;width:100%;height:100%;position:absolute;top:0;left:0}.esri-slider__segment:hover{cursor:pointer}.esri-slider__anchor{touch-action:none;-webkit-user-select:none;user-select:none;background-color:var(--calcite-color-brand);position:absolute}.esri-slider__anchor:focus .esri-slider__thumb,.esri-slider__anchor:focus .esri-slider__label{outline:inherit}.esri-slider__anchor--moving:focus .esri-slider__thumb{cursor:grabbing;border:3px solid var(--calcite-color-brand-press)}.esri-slider__anchor--moving .esri-slider__label:hover,.esri-slider__anchor--moving .esri-slider__label--interactive:hover{cursor:grabbing}.esri-slider__thumb{box-sizing:border-box;z-index:1;touch-action:none;background-color:var(--calcite-color-foreground-2);border:2px solid var(--calcite-color-brand);border-radius:16px;width:16px;height:16px;transition:all .125s ease-in-out;position:absolute;top:-7px;left:-7px}.esri-slider__thumb:hover{cursor:grab;border-width:3px;border-color:var(--calcite-color-brand-press);width:19.2px;height:19.2px;top:-8.6px;left:-8.6px}.esri-slider__label{min-width:80px;line-height:var(--calcite-font-line-height-fixed-xl);position:absolute}.esri-slider__label:hover{cursor:grab}.esri-slider__label--interactive:hover,.esri-slider__max--interactive:hover,.esri-slider__min--interactive:hover{cursor:pointer;text-decoration:underline}.esri-slider__label-input{z-index:1;width:100%;position:relative}.esri-slider__extra-content{display:inline-block}.esri-slider__max,.esri-slider__min{text-align:center;justify-content:center;align-items:center;height:22px;line-height:var(--calcite-font-line-height-fixed-xl);display:flex}.esri-slider__max--interactive:hover,.esri-slider__min--interactive:hover{background-color:var(--calcite-color-foreground-2)}.esri-slider__range-input{text-align:center;width:100%;padding:1px 0}.esri-slider__ticks{z-index:0;height:100%;display:inline-block;position:absolute}.esri-slider__tick{background:var(--calcite-color-foreground-1);position:absolute}.esri-slider__tick-label{width:max-content;position:absolute}:dir(rtl) .esri-slider__label,:dir(rtl) .esri-slider__max,:dir(rtl) .esri-slider__min,:dir(rtl) .esri-slider__tick-label{direction:rtl;unicode-bidi:plaintext}:dir(rtl) .esri-slider__range-input,:dir(rtl) .esri-slider__label-input{unicode-bidi:plaintext}:host{width:350px}.root{display:flex;flex-direction:column;overflow:visible;gap:var(--calcite-spacing-md);justify-content:space-between;padding:var(--arcgis-internal-padding);position:relative;calcite-label{--calcite-label-margin-bottom: 0}&.loading>*:not(calcite-scrim){opacity:0}}.unsupported{padding:0 var(--calcite-spacing-lg);animation:esri-fade-in .25s ease-in-out}.slider{margin-block-start:0rem}.time-configuration{--date-play-button-offset: 11px;--slider-play-button-offset: var(--calcite-spacing-md);display:grid;gap:var(--calcite-spacing-md);grid-template-columns:1fr min-content;.slider-container{grid-column:1;+calcite-button{grid-column:2;transform:translateY(var(--slider-play-button-offset))}}.timezone-input-container{grid-column:1;min-width:0;+span{grid-column:2}}.date-picker-container{grid-column:1;+calcite-button{grid-column:2;transform:translateY(var(--date-play-button-offset))}}calcite-button{place-self:center}}`,Xe={day:1,night:6,twilight:2/3},J=class extends X{constructor(){super(...arguments),this.messages=se({blocking:!0}),this.#t="none",this.#r=null,this.#l=j(),this.#g=j(),this.#u=200,this.#p=200,this.#c=!1,this.#a={},this._offset=F(e=>g(this._lighting)?this._lighting.displayUTCOffset??e:e),this._timesliderPosition=F(e=>{if(g(this._lighting)){let i=this._lighting.displayUTCOffset??this.utcOffset??0,t=this._lighting.date;if(Y(t)){let{minutesSinceMidnight:s}=T(t,i);return s}else return e}return e}),this._localDate=F(e=>ae(this._view,this.utcOffset)??e),this.view=ne(this),this.autoDestroyDisabled=!1,this.dateOrSeason="date",this.headingLevel=2,this.hideDatePicker=!1,this.hideHeader=!1,this.hidePlayButtons=!1,this.hideShadowsToggle=!1,this.hideSunLightingToggle=!1,this.hideTimezone=!1,this.icon="brightness",this.playSpeedMultiplier=1,this.timeSliderSteps=5,this.arcgisReady=I(),this.arcgisUserDateTimeChange=I(),this.#o=!1}static{this.properties={localDateAsString:32,view:0,_playingState:16,_sunlightingDisabled:16,autoDestroyDisabled:5,currentSeason:1,dateOrSeason:3,dayPlaying:5,_directShadowsDisabled:16,headingLevel:9,hideDatePicker:5,hideHeader:5,hidePlayButtons:5,hideShadowsToggle:5,hideSunLightingToggle:5,hideTimezone:5,icon:3,label:1,playSpeedMultiplier:9,referenceElement:1,timeSliderSteps:9,utcOffset:9,timeSliderPosition:9,localDate:1,yearPlaying:5}}static{this.styles=We}get _view(){return this.view?.type==="3d"?this.view:void 0}#e;#t;#r;#i;#l;#g;#u;#p;#c;#s(e,i){return this.#o||this.#c?!1:(this.#a[e]=i,!0)}#m(){let{utcOffset:e,timeSliderPosition:i,localDate:t,directShadowsDisabled:s,sunlightingDisabled:n}=this.#a;if(this.#c=!0,e!=null)if(i==null&&t==null){let a=this._lighting;g(a)?(a.displayUTCOffset=e,this.#h(e,a)):this._offset.mutate(e)}else this.utcOffset=e;i!=null&&(this.timeSliderPosition=i),t&&(this.localDate=t),s!=null&&(this._directShadowsDisabled=s),n!=null&&(this._sunlightingDisabled=n),this.#a={},this.#c=!1}#d(){if(this.#i)return;let e=te(()=>{if(this.#i?.remove(),g(this._lighting)){let i=this.utcOffset??0,t=this.timeSliderPosition??0,s=this.localDate,n=t-i*60,a=S(s,n,"minutes");this._lighting.date=a,this._lighting.displayUTCOffset=i}},{timeout:this.#u});this.#i=U(()=>{re(e),this.#i=void 0})}#_({scale:e,disabled:i}){let{messages:t}=this;return m`<calcite-label .scale=${e} class="date-picker-container">${t.date}${ei({disabled:i,scale:e,date:this.localDateAsString,onDateChange:s=>{let n=s.currentTarget.value,a=Array.isArray(n)?n[0]:n;this._stopPlaying(),this.localDate=a,this._emitUserDateTimeChangeEvent()}})}</calcite-label>${D({hidden:this.hidePlayButtons,children:pe({playing:this.yearPlaying,disabled:i,label:t.playYear,onClick:()=>{this._playingState==="year"?this._playingState="none":this._playingState="year"},scale:e})})}`}#f({scale:e,disabled:i}){let{messages:t}=this;return m`<calcite-label .scale=${e} class="date-picker-container">${t.season}${ii({scale:e,selectedSeason:this.currentSeason,disabled:i,messages:t,onSeasonChange:s=>{this._stopPlaying(),this.currentSeason=s.currentTarget.value}})}</calcite-label>`}#a;get#b(){return this.#g?.value?.startTime}get localDateAsString(){return this._localDate.value??void 0}get _playingState(){return this.#t}set _playingState(e){this.#t=e,this.#n?.remove(),e==="none"?this.#e?.remove():(this._play(e),this._emitUserDateTimeChangeEvent())}get _lighting(){return this._view?.environment?.lighting}get _sunlightingDisabled(){return!g(this._lighting)}set _sunlightingDisabled(e){this.#s("sunlightingDisabled",e);let i=this._view?.environment;if(i==null)return;let t=i.lighting,s=this.#r;this.#r=t;let n={directShadowsEnabled:t.directShadowsEnabled,glow:t.glow};g(t)&&(n.cameraTrackingEnabled=t.cameraTrackingEnabled);let a=e?"virtual":"sun",c;s?.type===a?c=s:c=e?new Te:new ke({date:S(S(this.localDate,this.timeSliderPosition??0,"minutes"),this.utcOffset??0),displayUTCOffset:this.utcOffset}),c.set(n),i.lighting=c,e||(this._stopPlaying(),this.#l.value&&(this.#l.value.open=!1))}get currentSeason(){let e=this._view?.camera?.position?.latitude??0,i=ge(e);return Be(this.localDate,i)}set currentSeason(e){this._stopPlaying();let i=this._view?.camera?.position?.latitude??0,t=ge(i),s=K(e,t);this.localDate=C(this.localDate,s,"northern"),this._emitUserDateTimeChangeEvent()}get dayPlaying(){return this._playingState==="day"}set dayPlaying(e){this._playingState=e?"day":"none"}get _directShadowsDisabled(){return!this._lighting?.directShadowsEnabled}set _directShadowsDisabled(e){this.#s("directShadowsDisabled",e),this._lighting&&(this._lighting.directShadowsEnabled=!e)}get utcOffset(){return this._offset.value}set utcOffset(e){this._offset.mutate(e),!this.#s("utcOffset",e)&&this.#d()}get timeSliderPosition(){return this._timesliderPosition.value}set timeSliderPosition(e){this._timesliderPosition.mutate(_e(e??0,Fe)),!this.#s("timeSliderPosition",e)&&this.#d()}get localDate(){return this._localDate.value!=null?new Date(this._localDate.value):new Date}set localDate(e){if(typeof e=="string"&&/^\d{4}-\d{2}-\d{2}$/u.test(e)){if(this._localDate.mutate(e),this.#s("localDate",e))return;this.#d();return}let i=new Date(e);if(Y(i)){i.setUTCFullYear(i.getFullYear(),i.getMonth(),i.getDate());let t=i.toISOString().slice(0,10);if(this._localDate.mutate(t),this.#s("localDate",t))return;this.#d()}}get yearPlaying(){return this._playingState==="year"}set yearPlaying(e){this._playingState=e?"year":"none"}async destroy(){await this.manager.destroy()}async load(){this.manager.onLifecycle(()=>[ye(()=>{let e=this._view?.camera?.position;return e?le(e):void 0},(e,i)=>{this.#v(e,i)},{sync:!0,initial:!0}),De(()=>!g(this._lighting),()=>{this._stopPlaying()}),me.onLocaleChange(()=>{this.requestUpdate()})]),this.manager.onDisconnected(()=>{this.#e?.remove(),this.#i?.remove(),this.#n?.remove()})}willUpdate(e){if(super.willUpdate(e),!!this.#o&&g(this._lighting)&&e.has("utcOffset")&&!e.has("localDate")&&!e.has("timeSliderPosition")){let i=this.utcOffset??0,{minutesSinceMidnight:t,localDate:s}=T(this._lighting.date,i);this._timesliderPosition.mutate(t),this._localDate.mutate(s)}}#o;async loaded(){let e=new AbortController;this.manager.onDisconnected(()=>({remove:()=>{e.abort()}})),await ie(Se(()=>this._view?.ready,{signal:e.signal}).then(()=>{let i=this._lighting,t=this._view?.camera?.position;if(this.#a.utcOffset==null&&g(i)&&i.displayUTCOffset==null&&t){let n=le(t);this.#h(n,i)}this.#m();let s=this._playingState;s!=="none"&&this.#e==null&&this._play(s)})),this.#o=!0}#v(e,i){let t=this._lighting;if(!(!this.#o||!g(t)||!t.cameraTrackingEnabled||e==null)){if(i==null&&t.displayUTCOffset==null){this.#h(e,t);return}t.displayUTCOffset!=null&&(t.displayUTCOffset=e),this.#h(e,t)}}#h(e,i){this._offset.mutate(e);let{minutesSinceMidnight:t,localDate:s}=T(i.date,e);this._timesliderPosition.mutate(t),this._localDate.mutate(s),this.requestUpdate()}_emitUserDateTimeChangeEvent(){this.isConnected&&this.arcgisUserDateTimeChange.emit()}_stopPlaying(){this._playingState="none"}#n;#w(e){if(this.#n)return;let i=setTimeout(()=>{let t=e.displayUTCOffset??0,s=e.date,{minutesSinceMidnight:n}=T(s,t);this._timesliderPosition.mutate(n),this.#n?.remove()},this.#p);this.#n=U(()=>{clearTimeout(i),this.#n=void 0;let t=this._lighting;if(g(t)){let s=t.displayUTCOffset??0,n=t.date,{minutesSinceMidnight:a}=T(n,s);this._timesliderPosition.mutate(a)}})}_play(e){this.#e?.remove();let i=this._view;if(i==null||this._sunlightingDisabled)return;let t=i.environment.lighting;if(!g(t))return;let s=0;this.#e=Ke({mode:e,lighting:t,beforeProgress:()=>{s=this.#b??0},onProgress:(n,a)=>{this._timesliderPosition.mutate(s),this.#w(a)},getPlaySpeed:()=>{let n=this._view,a=this._view?.environment.lighting;if(n!=null&&g(a)){let c=n.camera.position.latitude??0,o=n.camera.position.longitude??0,{sunrise:d,sunset:l}=Ze(a.date,c,o,a.displayUTCOffset??0);return Qe(d,l,a.date,Xe)*this.playSpeedMultiplier}else return L*this.playSpeedMultiplier}})}render(){let{messages:e,dateOrSeason:i}=this,t=this._sunlightingDisabled,s="m";if(this._view?.type!=="3d")return G({class:"root",label:e.componentLabel,title:e.title,hideHeader:this.hideHeader,headingLevel:this.headingLevel,children:m`<div class="unsupported"><p>${e.unsupported}</p></div>`});let n=(this.utcOffset??0)*60,a=this.view?.ready===!0,c=Array.isArray(this.timeSliderSteps)?this.timeSliderSteps.at(0):this.timeSliderSteps;return G({class:{root:!0,loading:!a},label:e.componentLabel,title:e.title,hideHeader:this.hideHeader,headingLevel:this.headingLevel,children:m`${a?void 0:m`<calcite-scrim loading></calcite-scrim>`}<div class="time-configuration" style=${B({columnGap:this.hidePlayButtons?"0":void 0})}><calcite-label class="slider-container" .scale=${s}>${e.timeSliderLabel}<arcgis-time-of-day-slider class="slider" .disabled=${this._sunlightingDisabled} mode=single .startTime=${this.timeSliderPosition??0} .steps=${c} style=${B({gridArea:"slider"})} @arcgisTimeChange=${({currentTarget:o})=>{this._stopPlaying(),this._emitUserDateTimeChangeEvent(),this.timeSliderPosition=o.startTime}} ${R(this.#g)}></arcgis-time-of-day-slider></calcite-label>${D({hidden:this.hidePlayButtons,children:pe({disabled:this._sunlightingDisabled,playing:this.dayPlaying,label:e.playDay,onClick:()=>{this._playingState==="day"?this._stopPlaying():this._playingState="day"},scale:s})})}${D({hidden:this.hideTimezone,children:m`<calcite-label .scale=${s} class="timezone-input-container">${e.timezone}<calcite-input-time-zone mode=offset overlay-positioning=fixed .scale=${s} .disabled=${this._sunlightingDisabled} .value=${`${n}`} .referenceDate=${this.localDateAsString} @calciteInputTimeZoneChange=${o=>{let d=+o.target.value;this.utcOffset=d/60,this._stopPlaying()}} ${R(this.#l)}></calcite-input-time-zone></calcite-label><span></span>`})}${D({hidden:this.hideDatePicker,children:i==="date"?this.#_({scale:s,disabled:t}):this.#f({scale:s,disabled:t})})}</div>${D({hidden:this.hideSunLightingToggle,children:ti({scale:s,messages:e.sunLightingToggle,sunlightingEnabled:!this._sunlightingDisabled,onSunLightingToggle:o=>{this._sunlightingDisabled=!o}})})}${D({hidden:this.hideShadowsToggle,children:ri({scale:s,messages:e.shadowsToggle,onShadowCheckboxChange:o=>{this._directShadowsDisabled=!o},shadowEnabled:!this._directShadowsDisabled})})}`})}};function pe({disabled:r,playing:e,onClick:i,label:t,scale:s="m"}){return m`<calcite-button appearance=solid .scale=${s} .disabled=${r} .iconStart=${e?"pause-f":"play-f"} .label=${t} @click=${i} round title=${t??O} type=button></calcite-button>`}function ei({disabled:r,date:e,onDateChange:i,scale:t}){return m`<calcite-input-date-picker data-testid=daylight-date-picker .disabled=${r} overlay-positioning=fixed placement=bottom .value=${e} .scale=${t} @calciteInputDatePickerChange=${i}></calcite-input-date-picker>`}function ii({messages:r,disabled:e,scale:i,selectedSeason:t,onSeasonChange:s}){return m`<calcite-select .disabled=${e} .label=${r.season} .scale=${i} .value=${t} @calciteSelectChange=${n=>{s(n)}}>${V.map(n=>m`<calcite-option .selected=${t===n} .value=${n}>${r[n]}</calcite-option>`)}</calcite-select>`}function ti({messages:r,sunlightingEnabled:e,onSunLightingToggle:i,scale:t}){return m`<calcite-label layout=inline .scale=${t} title=${r?.tooltip??O}><calcite-checkbox .scale=${t} .checked=${e} @calciteCheckboxChange=${s=>i(s.target.checked)}></calcite-checkbox>${r?.label}</calcite-label>`}function ri({messages:r,shadowEnabled:e,onShadowCheckboxChange:i,scale:t}){return m`<calcite-label layout=inline .scale=${t} title=${r?.tooltip??O}><calcite-checkbox .checked=${e} @calciteCheckboxChange=${s=>i(s.target.checked)}></calcite-checkbox>${r.label}</calcite-label>`}ee("arcgis-daylight",J);return J},"core/reactiveUtils","intl","views/3d/environment/SunLighting","views/3d/environment/VirtualLighting","applications/Components/reactiveUtils",a,b,c)
2
+ import{e as Y,f as S,g as T,h as ae,i as g}from"./LM56QFP5.js";import{a as U}from"./IZ46HAUJ.js";import{a as G}from"./JKGGA54X.js";import{a as D}from"./POKO37D3.js";import c from"./OKHEBRQW.js";import"./VJVKFKSG.js";import"./AC3GTCHJ.js";import{a as se}from"./H47NPYUM.js";import"./JD74LG7K.js";import b from"./ZUXQKICJ.js";import"./JCTU3MST.js";import"./BXKNMJRR.js";import a from"./FT7ETWDM.js";import"./IJQZON2Z.js";import{M as j,N as R,O as X,Q as B,R as O,U as ee,a as W,b as m,x as I}from"./IXZEUVT2.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:ye,when:De,whenOnce:Se},me,ke,Te,{createTrackingTarget:$e,runTracked:oe,signal:Ce},,{a:ne},{f:ie,g:te,h:re}])=>{function Pe(r,e){return r/15}function ze(r,e){let i=r?.[0];if(i==null)return null;e||(e={hours:0,minutes:0,seconds:0}),e.hours=Pe(i);let t=e.hours%1;e.hours-=t,e.minutes=t*60;let s=e.minutes%1;return e.minutes-=s,e.seconds=Math.round(s*60),e}function le(r){let e=ze([r.longitude,r.latitude]);return e==null?0:Math.round(e.hours+e.minutes/60+e.seconds/3600)}function _e(r,e){return(r%e+e)%e}var Z=class{#e;#t;#r=$e(()=>{this.#i()});constructor(e){this.#t=e;let i;oe(this.#r,()=>{i=e()}),this.#e=Ce(i)}#i(){let e=this.#e.value;oe(this.#r,()=>{this.#e.value=this.#t(e)})}mutate(e){this.#e.value=e}get value(){return this.#e.value}};function q(r){return new Z(r)}var A=Math.PI,u=Math.sin,$=Math.cos,Oe=Math.asin,Ue=Math.acos,w=A/180,fe=1e3*60*60*24,be=2440588,ve=2451545;function Me(r){return r.valueOf()/fe-.5+be}function M(r){return new Date((r+.5-be)*fe)}function Ee(r){return Me(r)-ve}var ce=w*23.4397;function Le(r,e){return Oe(u(e)*$(ce)+$(e)*u(ce)*u(r))}function Ae(r){return w*(357.5291+.98560028*r)}function Ne(r){return w*(1.9148*u(r)+.02*u(2*r)+3e-4*u(3*r))}function He(r,e){var i=w*102.9372;return r+e+i+A}var k={};k.PolarException={NORMAL:0,MIDNIGHT_SUN:1,POLAR_NIGHT:2};var F=[[-.83,"sunrise","sunset"]],we=9e-4;function Ie(r,e){return Math.round(r-we-e/(2*A))}function de(r,e,i){return we+(r+e)/(2*A)+i}function he(r,e,i){return ve+r+.0053*u(e)-.0069*u(2*i)}function je(r,e,i){return Ue((u(r)-u(e)*u(i))/($(e)*$(i)))}k.getTimes=function(r,e,i){var t=w*-i,s=w*e,n=Ee(r),a=Ie(n,t),c=de(0,t,a),o=Ae(c),d=Ne(o),l=He(o,d),h=Le(l,0),p=he(c,o,l);function x(H){var z=je(H,s,h),xe=de(z,t,a);return he(xe,o,l)}function y(H){var z=(u(H)-u(s)*u(h))/($(s)*$(h));return z<-1?k.PolarException.MIDNIGHT_SUN:z>1?k.PolarException.POLAR_NIGHT:k.PolarException.NORMAL}var f={solarNoon:M(p),nadir:M(p-.5),polarException:k.PolarException.NORMAL},v,_,P,N,Q;for(v=0,_=F.length;v<_;v+=1)P=F[v],N=x(P[0]*w),Q=p-(N-p),f[P[1]]=M(Q),f[P[2]]=M(N);return f.polarException=y(F[0][0]*w),f};var Re={spring:{dayOfMonth:20,month:2},summer:{dayOfMonth:21,month:5},fall:{dayOfMonth:23,month:8},winter:{dayOfMonth:21,month:11}},V=["spring","summer","fall","winter"];function C(r,e,i){let t=K(e,i),{dayOfMonth:s,month:n}=Re[t],a=new Date(r.getTime());return a.setMonth(n,s),a}function Be(r,e){let i=Ge(r);return K(i,e)}function Ge(r){let e=r.getTime(),i=C(r,"spring","northern").getTime(),t=C(r,"summer","northern").getTime(),s=C(r,"fall","northern").getTime(),n=C(r,"winter","northern").getTime();return e>=i&&e<t?"spring":e>=t&&e<s?"summer":e>=s&&e<n?"fall":"winter"}function K(r,e){return e==="northern"?r:Ye(r)}function ge(r){return r>=0?"northern":"southern"}function Ye(r){let e=V.indexOf(r);return V[(e+2)%4]}var qe=1440,Fe=864e5;function Ze(r,e,i,t){let s=k.getTimes(r,e,i),n=s.sunrise,a=s.sunset,c=S(r,t),o=S(n,t),d=S(a,t);if(c.getUTCDate()!==o.getUTCDate()||c.getUTCDate()!==d.getUTCDate()){let l=c.getTime()-o.getTime()>0?1:-1;n.setUTCDate(n.getUTCDate()+l),a.setUTCDate(a.getUTCDate()+l)}return{sunrise:n,sunset:a}}var Ve=100,Je=1e3,b=12e5,E=72e5;function ue(r,e){return _e(r+e,24)}function Ke({mode:r,lighting:e,getPlaySpeed:i,onProgress:t,beforeProgress:s}){let n=-1;function a(c=Date.now()){let o=e.date,d=Date.now()-(c??0);if(r==="day"){c=Date.now();let l=i()/Ve*d;if(l>0){let h=new Date(o.getTime()+l),p=e.displayUTCOffset??0,x=ue(h.getUTCHours(),p),y=ue(o.getUTCHours(),p);x<y&&(h=new Date(o.getTime()+l-Fe));let f=e.clone();s?.(),e.date=h,t?.(f,e)}}else if(d>Je){c=Date.now();let l=(o.getUTCMonth()+1)%12,h=new Date(o.getTime());h.setUTCMonth(l);let p=e.clone();s?.(),e.date=h,t?.(p,e)}n=requestAnimationFrame(()=>a(c))}return a(),U(()=>cancelAnimationFrame(n))}var L=b/4;function Qe(r,e,i,t){let{day:s,night:n=s,twilight:a=s}=t,c=s*L,o=n*L,d=a*L;if(r==null||e==null||Number.isNaN(r.getTime())&&Number.isNaN(e.getTime()))return c;let l=i.getTime(),h=r.getTime(),p=e.getTime(),x=h-E/2,y=h+E/2,f=p-E/3*2,v=p+E/3,_=c;return l>=x&&l<=y?l-x<=b?_=o-(l-x)/b*(o-d):y-l<=b/2?_=c-(y-l)/b*2*(c-d):_=d:l>=f&&l<=v?l-f<=b/2?_=c-(l-f)/b*2*(c-d):v-l<=b?_=o-(v-l)/b*(o-d):_=d:(l<h||l>p)&&(_=o),_}var We=W`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted var(--calcite-color-foreground-current)}}.esri-slider{-webkit-user-select:none;user-select:none;direction:ltr;width:100%;height:100%;display:flex}.esri-disabled{pointer-events:none}.esri-disabled .esri-slider__content,.esri-disabled .esri-slider__min,.esri-disabled .esri-slider__max{opacity:var(--calcite-opacity-light)}.esri-slider--reversed.esri-slider--horizontal{flex-direction:row-reverse}.esri-slider--reversed.esri-slider--vertical{flex-direction:column}.esri-slider--horizontal{flex-direction:row}.esri-slider--horizontal .esri-slider__content{height:auto}.esri-slider--horizontal .esri-slider__track{width:100%;height:2px}.esri-slider--horizontal .esri-slider__segment--interactive:hover{cursor:ew-resize}.esri-slider--horizontal .esri-slider__anchor{width:1px;height:100%}.esri-slider--horizontal .esri-slider__label{text-align:center;margin:0 11px;top:-30px;left:-50px}.esri-slider--horizontal .esri-slider__label-input{text-align:center}.esri-slider--horizontal .esri-slider__max,.esri-slider--horizontal .esri-slider__min{flex:none;width:50px;height:auto;margin:auto}.esri-slider--horizontal .esri-slider__ticks{width:100%;margin:9px 0 0;top:100%;left:0}.esri-slider--horizontal .esri-slider__tick{width:1px;height:5px}.esri-slider--horizontal .esri-slider__tick-label{margin-top:18px}.esri-slider--vertical{flex-direction:column-reverse}.esri-slider--vertical .esri-slider__content{flex-direction:column;width:auto}.esri-slider--vertical .esri-slider__track{flex-direction:column;flex:1 0 0;width:2px;height:100%}.esri-slider--vertical .esri-slider__segment--interactive:hover{cursor:ns-resize}.esri-slider--vertical .esri-slider__anchor{width:100%;height:1px}.esri-slider--vertical .esri-slider__label{text-align:left;top:-10px;left:20px}.esri-slider--vertical .esri-slider__max,.esri-slider--vertical .esri-slider__min{flex:0 0 22px;width:100%;margin:auto}.esri-slider--vertical .esri-slider__ticks{margin:0 0 0 11px;top:0;left:100%}.esri-slider--vertical .esri-slider__tick{width:5px;height:1px}.esri-slider--vertical .esri-slider__tick-label{margin-left:30px}.esri-slider__content{z-index:0;flex:1 0 auto;justify-content:center;align-items:center;margin:auto;line-height:0;display:flex;position:relative}.esri-slider__track{touch-action:none;background-color:var(--calcite-color-border-ghost);display:inline-block;position:relative}.esri-slider__segment{transform-origin:0 0;will-change:transform;touch-action:none;width:100%;height:100%;position:absolute;top:0;left:0}.esri-slider__segment:hover{cursor:pointer}.esri-slider__anchor{touch-action:none;-webkit-user-select:none;user-select:none;background-color:var(--calcite-color-brand);position:absolute}.esri-slider__anchor:focus .esri-slider__thumb,.esri-slider__anchor:focus .esri-slider__label{outline:inherit}.esri-slider__anchor--moving:focus .esri-slider__thumb{cursor:grabbing;border:3px solid var(--calcite-color-brand-press)}.esri-slider__anchor--moving .esri-slider__label:hover,.esri-slider__anchor--moving .esri-slider__label--interactive:hover{cursor:grabbing}.esri-slider__thumb{box-sizing:border-box;z-index:1;touch-action:none;background-color:var(--calcite-color-foreground-2);border:2px solid var(--calcite-color-brand);border-radius:16px;width:16px;height:16px;transition:all .125s ease-in-out;position:absolute;top:-7px;left:-7px}.esri-slider__thumb:hover{cursor:grab;border-width:3px;border-color:var(--calcite-color-brand-press);width:19.2px;height:19.2px;top:-8.6px;left:-8.6px}.esri-slider__label{min-width:80px;line-height:var(--calcite-font-line-height-fixed-xl);position:absolute}.esri-slider__label:hover{cursor:grab}.esri-slider__label--interactive:hover,.esri-slider__max--interactive:hover,.esri-slider__min--interactive:hover{cursor:pointer;text-decoration:underline}.esri-slider__label-input{z-index:1;width:100%;position:relative}.esri-slider__extra-content{display:inline-block}.esri-slider__max,.esri-slider__min{text-align:center;justify-content:center;align-items:center;height:22px;line-height:var(--calcite-font-line-height-fixed-xl);display:flex}.esri-slider__max--interactive:hover,.esri-slider__min--interactive:hover{background-color:var(--calcite-color-foreground-2)}.esri-slider__range-input{text-align:center;width:100%;padding:1px 0}.esri-slider__ticks{z-index:0;height:100%;display:inline-block;position:absolute}.esri-slider__tick{background:var(--calcite-color-foreground-1);position:absolute}.esri-slider__tick-label{width:max-content;position:absolute}:dir(rtl) .esri-slider__label,:dir(rtl) .esri-slider__max,:dir(rtl) .esri-slider__min,:dir(rtl) .esri-slider__tick-label{direction:rtl;unicode-bidi:plaintext}:dir(rtl) .esri-slider__range-input,:dir(rtl) .esri-slider__label-input{unicode-bidi:plaintext}:host{width:350px}.root{display:flex;flex-direction:column;overflow:visible;gap:var(--calcite-spacing-md);justify-content:space-between;padding:var(--arcgis-internal-padding);position:relative;calcite-label{--calcite-label-margin-bottom: 0}&.loading>*:not(calcite-scrim){opacity:0}}.unsupported{padding:0 var(--calcite-spacing-lg);animation:esri-fade-in .25s ease-in-out}.slider{margin-block-start:0rem}.time-configuration{--date-play-button-offset: 11px;--slider-play-button-offset: var(--calcite-spacing-md);display:grid;gap:var(--calcite-spacing-md);grid-template-columns:1fr min-content;.slider-container{grid-column:1;+calcite-button{grid-column:2;transform:translateY(var(--slider-play-button-offset))}}.timezone-input-container{grid-column:1;min-width:0;+span{grid-column:2}}.date-picker-container{grid-column:1;+calcite-button{grid-column:2;transform:translateY(var(--date-play-button-offset))}}calcite-button{place-self:center}}`,Xe={day:1,night:6,twilight:2/3},J=class extends X{constructor(){super(...arguments),this.messages=se({blocking:!0}),this.#t="none",this.#r=null,this.#l=j(),this.#g=j(),this.#u=200,this.#p=200,this.#c=!1,this.#a={},this._offset=q(e=>{let i=this._lighting,t=g(i)?i.displayUTCOffset:void 0;return this.#i?e:t??e}),this._timesliderPosition=q(e=>{let i=this._lighting;if(!g(i))return e;let t=i.displayUTCOffset??this.utcOffset??0,s=i.date;if(this.#i)return e;if(Y(s)){let{minutesSinceMidnight:n}=T(s,t);return n}return e}),this._localDate=q(e=>{let i=ae(this._view,this.utcOffset);return this.#i?e:i??e}),this.view=ne(this),this.autoDestroyDisabled=!1,this.dateOrSeason="date",this.headingLevel=2,this.hideDatePicker=!1,this.hideHeader=!1,this.hidePlayButtons=!1,this.hideShadowsToggle=!1,this.hideSunLightingToggle=!1,this.hideTimezone=!1,this.icon="brightness",this.playSpeedMultiplier=1,this.timeSliderSteps=5,this.arcgisReady=I(),this.arcgisUserDateTimeChange=I(),this.#o=!1}static{this.properties={localDateAsString:32,view:0,_playingState:16,_sunlightingDisabled:16,autoDestroyDisabled:5,currentSeason:1,dateOrSeason:3,dayPlaying:5,_directShadowsDisabled:16,headingLevel:9,hideDatePicker:5,hideHeader:5,hidePlayButtons:5,hideShadowsToggle:5,hideSunLightingToggle:5,hideTimezone:5,icon:3,label:1,playSpeedMultiplier:9,referenceElement:1,timeSliderSteps:9,utcOffset:9,timeSliderPosition:9,localDate:1,yearPlaying:5}}static{this.styles=We}get _view(){return this.view?.type==="3d"?this.view:void 0}#e;#t;#r;#i;#l;#g;#u;#p;#c;#s(e,i){return this.#o||this.#c?!1:(this.#a[e]=i,!0)}#m(){let{utcOffset:e,timeSliderPosition:i,localDate:t,directShadowsDisabled:s,sunlightingDisabled:n}=this.#a;if(this.#c=!0,e!=null)if(i==null&&t==null){let a=this._lighting;g(a)?(a.displayUTCOffset=e,this.#h(e,a)):this._offset.mutate(e)}else this.utcOffset=e;i!=null&&(this.timeSliderPosition=i),t&&(this.localDate=t),s!=null&&(this._directShadowsDisabled=s),n!=null&&(this._sunlightingDisabled=n),this.#a={},this.#c=!1}#d(){if(this.requestUpdate(),this.#i)return;let e=te(()=>{if(g(this._lighting)){let i=this.utcOffset??0,t=this.timeSliderPosition??0,s=this.localDate,n=t-i*60,a=S(s,n,"minutes");this._lighting.date=a,this._lighting.displayUTCOffset=i}this.#i?.remove()},{timeout:this.#u});this.#i=U(()=>{re(e),this.#i=void 0})}#_({scale:e,disabled:i}){let{messages:t}=this;return m`<calcite-label .scale=${e} class="date-picker-container">${t.date}${ei({disabled:i,scale:e,date:this.localDateAsString,onDateChange:s=>{let n=s.currentTarget.value,a=Array.isArray(n)?n[0]:n;this._stopPlaying(),this.localDate=a,this._emitUserDateTimeChangeEvent()}})}</calcite-label>${D({hidden:this.hidePlayButtons,children:pe({playing:this.yearPlaying,disabled:i,label:t.playYear,onClick:()=>{this._playingState==="year"?this._playingState="none":this._playingState="year"},scale:e})})}`}#f({scale:e,disabled:i}){let{messages:t}=this;return m`<calcite-label .scale=${e} class="date-picker-container">${t.season}${ii({scale:e,selectedSeason:this.currentSeason,disabled:i,messages:t,onSeasonChange:s=>{this._stopPlaying(),this.currentSeason=s.currentTarget.value}})}</calcite-label>`}#a;get#b(){return this.#g?.value?.startTime}get localDateAsString(){return this._localDate.value??void 0}get _playingState(){return this.#t}set _playingState(e){this.#t=e,this.#n?.remove(),e==="none"?this.#e?.remove():(this._play(e),this._emitUserDateTimeChangeEvent())}get _lighting(){return this._view?.environment?.lighting}get _sunlightingDisabled(){return!g(this._lighting)}set _sunlightingDisabled(e){this.#s("sunlightingDisabled",e);let i=this._view?.environment;if(i==null)return;let t=i.lighting,s=this.#r;this.#r=t;let n={directShadowsEnabled:t.directShadowsEnabled,glow:t.glow};g(t)&&(n.cameraTrackingEnabled=t.cameraTrackingEnabled);let a=e?"virtual":"sun",c;s?.type===a?c=s:c=e?new Te:new ke({date:S(S(this.localDate,this.timeSliderPosition??0,"minutes"),this.utcOffset??0),displayUTCOffset:this.utcOffset}),c.set(n),i.lighting=c,e||(this._stopPlaying(),this.#l.value&&(this.#l.value.open=!1))}get currentSeason(){let e=this._view?.camera?.position?.latitude??0,i=ge(e);return Be(this.localDate,i)}set currentSeason(e){this._stopPlaying();let i=this._view?.camera?.position?.latitude??0,t=ge(i),s=K(e,t);this.localDate=C(this.localDate,s,"northern"),this._emitUserDateTimeChangeEvent()}get dayPlaying(){return this._playingState==="day"}set dayPlaying(e){this._playingState=e?"day":"none"}get _directShadowsDisabled(){return!this._lighting?.directShadowsEnabled}set _directShadowsDisabled(e){this.#s("directShadowsDisabled",e),this._lighting&&(this._lighting.directShadowsEnabled=!e)}get utcOffset(){return this._offset.value}set utcOffset(e){this._offset.mutate(e),!this.#s("utcOffset",e)&&this.#d()}get timeSliderPosition(){return this._timesliderPosition.value}set timeSliderPosition(e){this._timesliderPosition.mutate(_e(e??0,qe)),!this.#s("timeSliderPosition",e)&&this.#d()}get localDate(){return this._localDate.value!=null?new Date(this._localDate.value):new Date}set localDate(e){if(typeof e=="string"&&/^\d{4}-\d{2}-\d{2}$/u.test(e)){if(this._localDate.mutate(e),this.#s("localDate",e))return;this.#d();return}let i=new Date(e);if(Y(i)){i.setUTCFullYear(i.getFullYear(),i.getMonth(),i.getDate());let t=i.toISOString().slice(0,10);if(this._localDate.mutate(t),this.#s("localDate",t))return;this.#d()}}get yearPlaying(){return this._playingState==="year"}set yearPlaying(e){this._playingState=e?"year":"none"}async destroy(){await this.manager.destroy()}async load(){this.manager.onLifecycle(()=>[ye(()=>{let e=this._view?.camera?.position;return e?le(e):void 0},(e,i)=>{this.#v(e,i)},{sync:!0,initial:!0}),De(()=>!g(this._lighting),()=>{this._stopPlaying()}),me.onLocaleChange(()=>{this.requestUpdate()})]),this.manager.onDisconnected(()=>{this.#e?.remove(),this.#i?.remove(),this.#n?.remove()})}willUpdate(e){if(super.willUpdate(e),!!this.#o&&g(this._lighting)&&e.has("utcOffset")&&!e.has("localDate")&&!e.has("timeSliderPosition")){let i=this.utcOffset??0,{minutesSinceMidnight:t,localDate:s}=T(this._lighting.date,i);this._timesliderPosition.mutate(t),this._localDate.mutate(s)}}#o;async loaded(){let e=new AbortController;this.manager.onDisconnected(()=>({remove:()=>{e.abort()}})),await ie(Se(()=>this._view?.ready,{signal:e.signal}).then(()=>{let i=this._lighting,t=this._view?.camera?.position;if(this.#a.utcOffset==null&&g(i)&&i.displayUTCOffset==null&&t){let n=le(t);this.#h(n,i)}this.#o=!0,this.#m();let s=this._playingState;s!=="none"&&this.#e==null&&this._play(s)}))}#v(e,i){let t=this._lighting;if(!(!this.#o||!g(t)||!t.cameraTrackingEnabled||e==null)){if(i==null&&t.displayUTCOffset==null){this.#h(e,t);return}t.displayUTCOffset!=null&&(t.displayUTCOffset=e),this.#h(e,t)}}#h(e,i){this._offset.mutate(e);let{minutesSinceMidnight:t,localDate:s}=T(i.date,e);this._timesliderPosition.mutate(t),this._localDate.mutate(s),this.requestUpdate()}_emitUserDateTimeChangeEvent(){this.isConnected&&this.arcgisUserDateTimeChange.emit()}_stopPlaying(){this._playingState="none"}#n;#w(e){if(this.#n)return;let i=setTimeout(()=>{let t=e.displayUTCOffset??0,s=e.date,{minutesSinceMidnight:n}=T(s,t);this._timesliderPosition.mutate(n),this.#n?.remove()},this.#p);this.#n=U(()=>{clearTimeout(i),this.#n=void 0;let t=this._lighting;if(g(t)){let s=t.displayUTCOffset??0,n=t.date,{minutesSinceMidnight:a}=T(n,s);this._timesliderPosition.mutate(a)}})}_play(e){this.#e?.remove();let i=this._view;if(i==null||this._sunlightingDisabled)return;let t=i.environment.lighting;if(!g(t))return;let s=0;this.#e=Ke({mode:e,lighting:t,beforeProgress:()=>{s=this.#b??0},onProgress:(n,a)=>{this._timesliderPosition.mutate(s),this.#w(a)},getPlaySpeed:()=>{let n=this._view,a=this._view?.environment.lighting;if(n!=null&&g(a)){let c=n.camera.position.latitude??0,o=n.camera.position.longitude??0,{sunrise:d,sunset:l}=Ze(a.date,c,o,a.displayUTCOffset??0);return Qe(d,l,a.date,Xe)*this.playSpeedMultiplier}else return L*this.playSpeedMultiplier}})}render(){let{messages:e,dateOrSeason:i}=this,t=this._sunlightingDisabled,s="m";if(this._view?.type!=="3d")return G({class:"root",label:e.componentLabel,title:e.title,hideHeader:this.hideHeader,headingLevel:this.headingLevel,children:m`<div class="unsupported"><p>${e.unsupported}</p></div>`});let n=(this.utcOffset??0)*60,a=this.view?.ready===!0,c=Array.isArray(this.timeSliderSteps)?this.timeSliderSteps.at(0):this.timeSliderSteps;return G({class:{root:!0,loading:!a},label:e.componentLabel,title:e.title,hideHeader:this.hideHeader,headingLevel:this.headingLevel,children:m`${a?void 0:m`<calcite-scrim loading></calcite-scrim>`}<div class="time-configuration" style=${B({columnGap:this.hidePlayButtons?"0":void 0})}><calcite-label class="slider-container" .scale=${s}>${e.timeSliderLabel}<arcgis-time-of-day-slider class="slider" .disabled=${this._sunlightingDisabled} mode=single .startTime=${this.timeSliderPosition??0} .steps=${c} style=${B({gridArea:"slider"})} @arcgisTimeChange=${({currentTarget:o})=>{this._stopPlaying(),this._emitUserDateTimeChangeEvent(),this.timeSliderPosition=o.startTime}} ${R(this.#g)}></arcgis-time-of-day-slider></calcite-label>${D({hidden:this.hidePlayButtons,children:pe({disabled:this._sunlightingDisabled,playing:this.dayPlaying,label:e.playDay,onClick:()=>{this._playingState==="day"?this._stopPlaying():this._playingState="day"},scale:s})})}${D({hidden:this.hideTimezone,children:m`<calcite-label .scale=${s} class="timezone-input-container">${e.timezone}<calcite-input-time-zone mode=offset overlay-positioning=fixed .scale=${s} .disabled=${this._sunlightingDisabled} .value=${`${n}`} .referenceDate=${this.localDateAsString} @calciteInputTimeZoneChange=${o=>{let d=+o.target.value;this.utcOffset=d/60,this._stopPlaying()}} ${R(this.#l)}></calcite-input-time-zone></calcite-label><span></span>`})}${D({hidden:this.hideDatePicker,children:i==="date"?this.#_({scale:s,disabled:t}):this.#f({scale:s,disabled:t})})}</div>${D({hidden:this.hideSunLightingToggle,children:ti({scale:s,messages:e.sunLightingToggle,sunlightingEnabled:!this._sunlightingDisabled,onSunLightingToggle:o=>{this._sunlightingDisabled=!o}})})}${D({hidden:this.hideShadowsToggle,children:ri({scale:s,messages:e.shadowsToggle,onShadowCheckboxChange:o=>{this._directShadowsDisabled=!o},shadowEnabled:!this._directShadowsDisabled})})}`})}};function pe({disabled:r,playing:e,onClick:i,label:t,scale:s="m"}){return m`<calcite-button appearance=solid .scale=${s} .disabled=${r} .iconStart=${e?"pause-f":"play-f"} .label=${t} @click=${i} round title=${t??O} type=button></calcite-button>`}function ei({disabled:r,date:e,onDateChange:i,scale:t}){return m`<calcite-input-date-picker data-testid=daylight-date-picker .disabled=${r} overlay-positioning=fixed placement=bottom .value=${e} .scale=${t} @calciteInputDatePickerChange=${i}></calcite-input-date-picker>`}function ii({messages:r,disabled:e,scale:i,selectedSeason:t,onSeasonChange:s}){return m`<calcite-select .disabled=${e} .label=${r.season} .scale=${i} .value=${t} @calciteSelectChange=${n=>{s(n)}}>${V.map(n=>m`<calcite-option .selected=${t===n} .value=${n}>${r[n]}</calcite-option>`)}</calcite-select>`}function ti({messages:r,sunlightingEnabled:e,onSunLightingToggle:i,scale:t}){return m`<calcite-label layout=inline .scale=${t} title=${r?.tooltip??O}><calcite-checkbox .scale=${t} .checked=${e} @calciteCheckboxChange=${s=>i(s.target.checked)}></calcite-checkbox>${r?.label}</calcite-label>`}function ri({messages:r,shadowEnabled:e,onShadowCheckboxChange:i,scale:t}){return m`<calcite-label layout=inline .scale=${t} title=${r?.tooltip??O}><calcite-checkbox .checked=${e} @calciteCheckboxChange=${s=>i(s.target.checked)}></calcite-checkbox>${r.label}</calcite-label>`}ee("arcgis-daylight",J);return J},"core/reactiveUtils","intl","views/3d/environment/SunLighting","views/3d/environment/VirtualLighting","applications/Components/reactiveUtils",a,b,c)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import{a as P}from"./SRKKE3UN.js";import{a as Te,b as ze,c as Fe,d as Oe,f as Pe,g as De,h as Re,i as Se,j as Be,k as Ue,m as $,n as W,o as je,p as Ge,q as X}from"./LDDAJOTV.js";import i from"./SLTQSWGA.js";import"./ECNI2A4K.js";import{a as Me}from"./GXVM7UPW.js";import{a as M}from"./KTXZR4IK.js";import g from"./SJIHZIXG.js";import f from"./MZWO5JYA.js";import e from"./OKHEBRQW.js";import"./VJVKFKSG.js";import d from"./ACMQRVHQ.js";import{a as Ie}from"./H47NPYUM.js";import{a as B}from"./JD74LG7K.js";import{a as Ee}from"./TOVZMHWU.js";import c from"./M2MJH2FX.js";import b from"./ZUXQKICJ.js";import{h as $e}from"./JCTU3MST.js";import"./BXKNMJRR.js";import a from"./FT7ETWDM.js";import{d as z}from"./IJQZON2Z.js";import{B as be,M as C,N as E,O as ye,P as h,Q as we,R as m,S as K,U as xe,a as J,b as n,x as ve}from"./IXZEUVT2.js";import"./H6RQVSYM.js";export default $arcgis.t(([pt,D,{on:qe,watch:gt},{isLayerFromCatalog:ot},{h:ke},,{a:Le},Ce,,,,{a:Q,b:Ae}])=>{var He=new Map;function Ve(s){return s?He.get(s)??!1:!1}function st(s,e){let t=!(s.aria?.pressed??Ve(e));return s.aria={...s.aria,pressed:t},e&&He.set(e,t),t}function ee(s){return s&&"visibilityMode"in s?s.visibilityMode:null}function Ne(s,e){"visible"in s&&(ee(e)==="exclusive"&&s.visible||(s.visible=!s.visible))}function nt(s,e){s.panel.open=!s.panel.open,s.panel.open&&e&&e()}function lt(s,e,t,i){s&&t===e.layer?.uid&&(ke(s),i?.(null))}function ct(s,e,t){t.type==="toggle"&&(t.value=!t.value),s(t,e)}function dt(s){return s.actionsSections.map(e=>e.filter(t=>t.visible))}function Ze(s,e){let{icon:t}=e;if(t)return null;let i="image"in e?e.image:void 0;return i?n`<span aria-hidden=true class=${h(z(s.itemActionIcon,{[s.itemActionImage]:!!i}))} style=${we(Ae(i))}></span>`:null}function Ye(s,e,t){let{item:i,css:a,handleAction:o}=s,{active:l,disabled:c,title:d,type:g,indicator:v}=e,y=Q(e);return n`<calcite-action .active=${g==="toggle"?e.value:!1} data-action-id=${e.id??m} .disabled=${c} .icon=${y} .indicator=${v} .loading=${l} @click=${()=>ct(o,i,e)} scale=s slot=${(t?void 0:"actions-end")??m} .text=${d??""} .textEnabled=${t} title=${d??void 0??m}>${Ze(a,e)}</calcite-action>`}function te(s){let{item:e,parent:t,hideStatusIndicators:i,css:a,visibilityAppearance:o,hideCatalogLayerList:l,dragEnabled:c=!1,rootGroupUid:d,listModeDisabled:g=!1,selectionMode:v,displayMode:y,layerTablesEnabled:w,showErrors:F,parentTitles:I,selectedItems:O,activeItem:f,handleCatalogOpen:U,handleTablesOpen:j,selectedDragItemLayerUid:R,handleSelectedDragItemLayerUidChange:Ke,handlePanelOpen:Qe,messages:p,setCurrentActiveItem:ae,clearActiveItem:re}=s,L=C(),G=C(),A=e.title||("untitledTable"in p?p.untitledTable:p.untitledLayer??""),oe=null;i||(oe=n`<arcgis-layer-list-item-indicator class=${h(a.statusIndicator)} .messages=${p} .item=${e} .parent=${t} slot=content-end></arcgis-layer-list-item-indicator>`);let se=null;{let{layer:r}=e,u=r&&"persistenceEnabled"in r&&(ot(r)||!r.persistenceEnabled);(s.showTemporaryLayerIndicators||s.showTemporaryTableIndicators)&&u&&(se=n`<calcite-icon class=${h(a.itemTemporaryIcon)} icon=temporary scale=s slot=content-start title=${p.temporary??m}></calcite-icon>`)}let ne=null;if("visible"in e&&"visibleToggle"in a&&o){let r=ee(t);if(r!=="inherited"){let u=Oe({visible:e.visible,exclusive:r==="exclusive",visibilityAppearance:o}),_=o==="checkbox",b=p.layerVisibility,T=e.title??e.layer?.title??"",k=T?`${b??""}: ${T}`:b??"",Z=Ve(e.layer?.id);ne=n`<calcite-action .aria=${{pressed:Z}} class=${h(a.visibleToggle)} .icon=${_?u:void 0} .label=${k} @click=${q=>{st(q.currentTarget,e.layer?.id),Ne(e,t)}} .slot=${_?"actions-start":"actions-end"} .text=${b??""} title=${b??m}>${_?null:n`<calcite-icon class=${h(z({[a.visibleIcon]:r!=="exclusive"&&e.visible}))} .icon=${u} scale=s></calcite-icon>`}</calcite-action>`}}let le=null;{let r=e.panel;r?.open&&!r.disabled&&!r.flowEnabled&&(le=n`<div class=${h(a.itemContentBottom)} slot=content-bottom><arcgis-layer-list-item-panel .item=${e} .view=${s.view}></arcgis-layer-list-item-panel></div>`)}let ce=null;{let r=e.panel;if(r?.visible){let{open:u,title:_,disabled:b}=r,T={icon:r.icon,image:r.image,indicator:!1},k=Q(T);ce=n`<calcite-action .active=${u} .disabled=${b} .icon=${k} @click=${()=>nt(e,Qe)} slot=actions-end .text=${_??""} title=${_??void 0??m}>${Ze(a,r)}</calcite-action>`}}let de=null;{let r=e.layer,u=r?.type==="catalog-footprint",_=r?.type==="sublayer"&&X(r,"footprints");"itemCatalogIcon"in a&&(u||_)&&(de=n`<calcite-icon class=${h(a.itemCatalogIcon)} icon=footprint scale=s slot=content-start></calcite-icon>`)}let pe=null;{let r=e.layer,u=r?.type==="catalog-dynamic-group",_=r?.type==="sublayer"&&X(r,"layers-in-view");"itemCatalogIcon"in a&&(u||_)&&(pe=n`<calcite-icon class=${h(a.itemCatalogIcon)} icon=catalog-dataset scale=s slot=content-start></calcite-icon>`)}let ge=null;if("visible"in e){let r=e.layer;!l&&r?.type==="catalog-dynamic-group"&&(ge=n`<calcite-action .disabled=${!r.visible} icon=chevron-right icon-flip-rtl @click=${()=>U?.(e)} scale=s slot=actions-end .text=${A??""}></calcite-action>`)}let me=null,N=!1;{let r=e.layer;if(w&&r)switch(r.type){case"knowledge-graph":N=w.includes(r.type)&&"tables"in r&&!!r.tables?.length;break;case"map-image":case"tile":N=w.includes(r.type)&&"subtables"in r&&!!r.subtables?.length;break}"itemTableIcon"in a&&"visible"in e&&"tables"in p&&N&&(me=M(`${e.uid}-tables`,n`<calcite-list-item class=${h(a.item)} data-layer-id=${r?.id??m} drag-disabled .label=${p.tables} title=${p.tables??m} @calciteListItemSelect=${()=>j?.(e)} .value=${e}><calcite-icon class=${h(a.itemTableIcon)} icon=table scale=s slot=content-start></calcite-icon><calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon></calcite-list-item>`))}let he=null;if("children"in e){let r=[...I??[],e.title],{children:u,layer:_}=e,b=_?.type!=="catalog-dynamic-group"&&je(e),T=g?!1:Pe(_),k=_?.type==="group",Z=!T&&!b&&c&&k,q=k&&"sortable"in e&&e.sortable,at=c&&("childrenSortable"in e&&e.childrenSortable||q)&&Se(e),rt=b?(u?.filter(x=>!x.hidden&&(F||!x.error)).toArray()??[]).map(x=>te({...s,item:x,parent:e,parentTitles:r})):null;(b||Z)&&(he=n`<calcite-list .canPull=${x=>s.canMove?s.canMove(x,"pull"):!1} .canPut=${x=>s.canMove?s.canMove(x,"put"):!1} data-item=${e.uid??m} data-layer-type=${d??m} .displayMode=${y} .dragEnabled=${at} .group=${k?d:`${d}-${_?.uid}`} .label=${e.title} selection-appearance=highlight .selectionMode=${v}>${rt}${me}</calcite-list>`)}let Y=null;if(e.error){let r="layerError"in p?p.layerError:p.tableError;Y=n`<div class=${h(a.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s width=full><div slot=message>${r}</div></calcite-notice></div>`}else"incompatible"in e&&e.incompatible&&"layerIncompatible"in p&&(Y=n`<div class=${h(a.itemMessage)} slot=content-bottom><calcite-notice icon=exclamation-mark-triangle kind=warning open scale=s tabindex=0 width=full ${E(G)}><div slot=message>${p.layerIncompatible}</div></calcite-notice></div>`);let ue=dt(e),H=e.actionsSections.reduce((r,u)=>r+u.length,0),fe=Ge(ue),We=ue.toArray().map(r=>n`<calcite-action-group>${r.toArray().map(u=>Ye(s,u,!0))}</calcite-action-group>`),Xe=r=>{e.actionsOpen=r.currentTarget.open},_e=null;H>1&&(_e=n`<calcite-action-menu appearance=transparent .label=${p.menu??""} .open=${e.actionsOpen} overlay-positioning=fixed placement=bottom-end slot=actions-end @calciteActionMenuOpen=${Xe}><calcite-action .aria=${{expanded:e.actionsOpen??!1,hasPopup:"true"}} icon=ellipsis scale=s slot=trigger .text=${p.options??""} title=${p.options??m}></calcite-action>${We}</calcite-action-menu>`);let V=null;H===1&&fe?V=Ye(s,fe,!1):H>1&&(V=_e);let et="visibleAtCurrentTimeExtent"in e&&"layerInvisibleAtTime"in p&&!e.visibleAtCurrentTimeExtent?`${A} (${p.layerInvisibleAtTime})`:"visibleAtCurrentScale"in e&&"layerInvisibleAtScale"in p&&!e.visibleAtCurrentScale?`${A} (${p.layerInvisibleAtScale})`:A,tt="parent"in e&&e.parent?.layer?.type==="catalog",S=e.layer,it="visibleAtCurrentScale"in e&&!e.visibleAtCurrentScale||"visibleAtCurrentTimeExtent"in e&&!e.visibleAtCurrentTimeExtent;return queueMicrotask(()=>{lt(L.value??null,e,R,Ke),G.value&&(s.handleTooltipReferenceChange?.(S?.uid,G.value),queueMicrotask(()=>s.handleTooltipReferenceChange?.(S?.uid,null))),e.panel&&(e.panel.container=L.value)}),M(e.uid,n`<calcite-list-item class=${h(z(a.item,"itemActive"in a&&{[a.itemActive]:f?.uid===e.uid}))} data-item=${e.uid??m} data-layer-id=${S?.id??m} .dragDisabled=${!("sortable"in e&&e.sortable)||tt} id=${S?.uid??m} .label=${A} .metadata=${{parentTitles:I??[],_title:A}} .expanded=${"open"in e&&e.open} .selected=${v!=="none"?O.includes(e):!1} title=${et??m} .unavailable=${it} .value=${e} @focusin=${()=>{ae?.(e),L.value?.classList.add(a.itemActive)}} @focusout=${()=>{re?.(),L.value?.classList.remove(a.itemActive)}} @mouseover=${()=>{ae?.(e),L.value?.classList.add(a.itemActive)}} @mouseleave=${()=>{re?.(),L.value?.classList.remove(a.itemActive)}} @calciteListItemSelect=${r=>"visible"in e&&$(r.currentTarget,s.operationalItems)===e&&v==="none"&&ee(t)!=="inherited"&&Ne(e,t)} @calciteListItemToggle=${r=>{"open"in e&&(r.stopPropagation(),e.open=r.target.expanded)}} ${E(L)}>${de}${pe}${oe}${ne}${ge}${se}${he}${Y}${le}${ce}${V}</calcite-list-item>`)}var mt=J`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{width:100%;--arcgis-internal-layer-list-item-scroller-max-height: var(--arcgis-internal-panel-height-md)}.item{--calcite-list-item-icon-center: var(--calcite-space-sm)}.table-icon,.catalog-icon{margin-inline-end:0}.action-image{text-align:center;background-position:50%;background-repeat:no-repeat;background-size:contain;flex:0 0 var(--calcite-spacing-xl);width:var(--calcite-spacing-xl);height:var(--calcite-spacing-xl);font-size:14px}.item__filter-container--sticky{z-index:1;position:sticky;top:0}.item__group{margin-top:var(--calcite-spacing-md)}.item__scroller{overflow-y:auto;z-index:0;position:relative}.item__scroller--enabled{max-height:var(--arcgis-internal-layer-list-item-scroller-max-height)}.item__group__header{color:var(--calcite-color-text-2);font-weight:var(--calcite-font-weight-medium)}.item__list-item{cursor:pointer;min-height:var(--calcite-spacing-xxxl)}.item__list-item[class^=esri-icon-],.item__list-item[class*=" esri-icon-"]{padding-inline-end:2.8px}.item__list-item--disabled{cursor:default}.item__list-item-icon{justify-content:center;align-items:center;min-width:var(--calcite-spacing-xxxl);height:var(--calcite-spacing-xxxl);display:flex}.item__list-item-icon span{line-height:0}.arcgis-thumbnail-preview{background-position:50%;width:22px;height:22px}.item__no-matches-message{justify-content:center;align-items:center;height:96px;display:flex}.content-bottom{margin:var(--calcite-spacing-md) 15px}.content-bottom .arcgis-legend__service{padding:0 0 var(--calcite-spacing-md)}.message{margin:var(--calcite-spacing-md) 15px}.visible-icon{visibility:hidden}.item:hover>.visible-toggle>.visible-icon,.item:focus>.visible-toggle>.visible-icon,.item:focus-within>.visible-toggle>.visible-icon{visibility:visible}`,ht=J`@keyframes esri-basemap-slide{0%{opacity:0;margin-top:0;margin-left:0}75%{opacity:0;margin-top:0;margin-left:0}to{opacity:1;margin-top:5px;margin-left:5px}}@keyframes esri-docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes popup-intro-animation-up{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted #000}}@keyframes esri-spinner--start-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes esri-spinner--finish-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}@keyframes esri-spinner--rotate-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion){.esri-utility-network-trace__reset-prompt{animation:none!important}}@media(prefers-reduced-motion){.esri-popup--aligned-top-center,.esri-popup--aligned-top-left,.esri-popup--aligned-top-right,.esri-popup--aligned-bottom-center,.esri-popup--aligned-bottom-left,.esri-popup--aligned-bottom-right,.esri-popup--is-docked{animation:none!important}}@media(prefers-reduced-motion:reduce){.esri-fov-overlay{animation:none!important}}@keyframes esri-fade-in-down{0%{opacity:0;transform:translateY(-5px)}25%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in-up{0%{opacity:0;transform:translateY(5px)}25%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes esri-fade-in-scale{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes looping-progresss-bar-ani{0%{width:0;left:0}20%{width:20%;left:0}80%{width:20%;left:80%}to{width:0;left:100%}}@keyframes esri-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes panel-advance{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-advance--rtl{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat--rtl{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-widget--panel{min-width:300px;min-height:32px;padding:var(--arcgis-internal-padding);transition:max-height .25s ease-in-out;overflow-y:auto}:host{display:flex;min-height:var(--calcite-space-3xl);transition:max-height .25s ease-in-out;overflow-y:auto}:host>div{display:flex;width:100%}.filter-no-results{padding:var(--calcite-spacing-md) var(--calcite-space-md-plus)}.table-icon,.catalog-icon{margin-inline-end:0}.action-image{text-align:center;background-position:50%;background-repeat:no-repeat;background-size:contain;flex:0 0 var(--calcite-spacing-xl);width:var(--calcite-spacing-xl);height:var(--calcite-spacing-xl);font-size:var(--calcite-font-size)}.action-menu .action-group{display:none}.action-menu[open] .action-group{display:flex}.active:hover>.visible-toggle>.visible-icon,.active:focus>.visible-toggle>.visible-icon,.active:focus-within>.visible-toggle>.visible-icon{visibility:visible}.status-indicator{margin-inline:0}`,Je="nested",ut=Ce(pt),ie=class extends ye{constructor(){super(...arguments),this._lastDragDetail=null,this._rootListRef=C(),this._layerFlowItemRef=C(),this._panelFlowItemRef=C(),this._selectedDragItemLayerUid=null,this._rootGroupUid=`operational-${be()}`,this._openedLayersController=null,this.messages=Ie(),this._canMove=({dragEl:e,fromEl:t,toEl:i},a)=>{let o=a==="pull"?this.listItemCanGiveFunction:this.listItemCanReceiveFunction,l=$(e,this.operationalItems);if(!l?.sortable)return!1;let c=this._resolveListContainer(t),d=this._resolveListContainer(i),g=this._getContainerItem(c),v=W(c),y=this._getContainerItem(d),w=W(d),F=!!v&&!!w&&v===w,I={selected:l,from:g,to:y},O=c?.group,f=d?.group,U=g?.layer?.type??"",j=y?.layer?.type??"",R=new Set(["map-image","catalog","knowledge-graph"]);return O&&f&&typeof o=="function"?o(I):F&&!R.has(U)&&!R.has(j)&&l?.layer?.type!=="sublayer"},this._onCatalogOpen=e=>{this.openedLayers.push(e.layer?.parent)},this._onTablesOpen=e=>{this.openedLayers.push(e.layer)},this._clearActiveItem=()=>{this._activeItem=null},this._setCurrentActiveItem=e=>{this._activeItem=e},this._setActiveItem=e=>{if(this.visibilityAppearance!=="default")return;let t=Array.from(e.composedPath()).find(a=>a.classList?.contains(P.item)),i=$(t,this.operationalItems);this._activeItem=i},this.viewModel=ut(this),this.arcgisClose=Ee(this),this._activeItem=null,this._onTooltipReferenceChange=(e,t)=>{t?this._tooltipReferenceMap.set(e,t):this._tooltipReferenceMap.delete(e)},this._onSelectedDragItemLayerUidChange=e=>{this._selectedDragItemLayerUid=e},this._onTriggerAction=(e,t)=>{this.triggerAction(e,t)},this._tooltipReferenceMap=new Map,this._layerListMap=new Map,this.layerTablesEnabled=new D(["knowledge-graph"]),this.mapImageOptions=null,this.openedLayerLists=new D,this.tileOptions=null,this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.closed=!1,this.icon="layers",this.collapsed=!1,this.dragEnabled=!1,this.filterPlaceholder="",this.filterText="",this.headingLevel=2,this.layerTablesAvailable=new D(["knowledge-graph"]),this.listItemCreatedFunction=this.viewModel.listItemCreatedFunction,this.minDragEnabledItems=Fe,this.minFilterItems=ze,this.openedLayers=new D,this.operationalItems=this.viewModel.operationalItems,this.selectedItems=new D,this.selectionMode="none",this.visibilityAppearance="default",this.hideCatalogLayerList=!1,this.showCloseButton=!1,this.showCollapseButton=!1,this.showErrors=!1,this.showFilter=!1,this.showHeading=!1,this.hideStatusIndicators=!1,this.showTemporaryLayerIndicators=!1,this.state=this.viewModel.state,this.arcgisPropertyChange=$e()("state"),this.arcgisReady=ve(),this.arcgisTriggerAction=Le(()=>this.viewModel,"trigger-action")}static{this.properties={_catalogLayerList:16,_tableList:16,_tooltipReferenceMap:16,_layerListMap:16,_totalItems:16,_visibleItems:16,_openedPanelItems:16,_dragEnabled:16,_filterEnabled:16,layerTablesEnabled:16,mapImageOptions:16,openedLayerLists:16,tileOptions:16,_renderedOpenLayerFlowItems:16,view:0,autoDestroyDisabled:5,closed:5,referenceElement:1,icon:1,catalogLayerList:32,catalogOptions:0,collapsed:5,dragEnabled:5,filterPlaceholder:1,filterPredicate:0,filterText:1,headingLevel:9,knowledgeGraphOptions:0,layerTablesAvailable:0,listItemCanGiveFunction:0,listItemCanReceiveFunction:0,listItemCreatedFunction:0,minDragEnabledItems:9,minFilterItems:9,openedLayers:32,operationalItems:0,selectedItems:0,selectionMode:1,tableList:32,visibilityAppearance:1,hideCatalogLayerList:5,showCloseButton:5,showCollapseButton:5,showErrors:5,showFilter:5,showHeading:5,hideStatusIndicators:5,showTemporaryLayerIndicators:5,messageOverrides:0,label:1,state:32}}static{this.styles=[ht,mt]}get _totalItems(){return this.viewModel.operationalItems.flatten(e=>e.children.filter(t=>t.layer?.type!=="catalog-dynamic-group")).length}get _visibleItems(){return this.operationalItems?.filter(e=>!e.hidden&&(this.showErrors||!e.error))}get _openedPanelItems(){return this._visibleItems.flatten(e=>e.children).filter(({hidden:e,panel:t})=>!e&&t?.open&&!t.disabled&&t.flowEnabled)}get _dragEnabled(){return this._totalItems>=this.minDragEnabledItems&&this.dragEnabled}get _filterEnabled(){return this._totalItems>=this.minFilterItems&&this.showFilter}get _renderedOpenLayerFlowItems(){let{openedLayers:e}=this;return e.toArray().map((t,i)=>this._renderLayerFlowItem(t,i===e.length-1))}get catalogLayerList(){return this._catalogLayerList}get tableList(){return this._tableList}async destroy(){await this.manager.destroy(),this._destroyOpenedLayerLists(),this._tooltipReferenceMap.clear()}loaded(){this.manager.onLifecycle(()=>[qe(()=>this.openedLayers,"change",()=>{this._handleOpenedLayersChange()},{initial:!0}),qe(()=>this.viewModel.operationalItems,"change",()=>De(this.selectedItems),{initial:!0}),gt(()=>[this.filterPredicate,this._rootListRef.value],()=>Re(this._rootListRef.value,this.filterPredicate,this.operationalItems))])}triggerAction(e,t){return this.viewModel.triggerAction(e,t)}_resolveListContainer(e){return e?e.matches("calcite-list")?e:e.closest("calcite-list[data-item]")||(this._rootListRef.value?.contains(e)?this._rootListRef.value:null):null}_getContainerItem(e){let t=e?.getAttribute("data-item");return t?this.operationalItems.find(i=>i.uid===t)??null:null}async _createFlowList(e,t){let{_layerListMap:i}=this,a=i.get(e);if(a)return a;let o=e.type==="catalog"?await this._createCatalogLayerList(e):await this._createTableList(e);return t.aborted||i.set(e,o),o}async _handleOpenedLayersChange(){let{_layerListMap:e,openedLayers:t,openedLayerLists:i}=this;this._openedLayersController?.abort();let a=new AbortController,{signal:o}=a;this._openedLayersController=a,e.forEach((d,g)=>{t.includes(g)||(d?.destroy?.(),e.delete(g))});let l=await Promise.all(t.map(d=>this._createFlowList(d,o)));if(o.aborted)return;i.removeAll(),i.addMany(l);let c=i.at(-1);c?"catalogLayer"in c?(this._catalogLayerList=c,this._tableList=void 0):(this._catalogLayerList=void 0,this._tableList=c):(this._catalogLayerList=void 0,this._tableList=void 0)}_destroyOpenedLayerLists(){this.openedLayerLists.destroyAll(),this.openedLayers.removeAll(),this._layerListMap.clear()}async _createCatalogLayerList(e){let{headingLevel:t,catalogOptions:i,filterPlaceholder:a,listItemCreatedFunction:o,minFilterItems:l,selectionMode:c,visibilityAppearance:d}=this;return K(n`<arcgis-catalog-layer-list .headingLevel=${t} .filterPlaceholder=${i?.filterPlaceholder??a} .listItemCreatedFunction=${i?.listItemCreatedFunction??o} .minFilterItems=${i?.minFilterItems??l} .selectionMode=${i?.selectionMode??c} .visibilityAppearance=${i?.visibilityAppearance??d} .showErrors=${i?.visibleElements?.errors??this.showErrors} .showFilter=${i?.visibleElements?.filter??this.showFilter} .hideStatusIndicators=${i?.visibleElements?.statusIndicators??this.hideStatusIndicators} .showTemporaryLayerIndicators=${i?.visibleElements?.temporaryLayerIndicators??this.showTemporaryLayerIndicators} @arcgisReady=${g=>g.stopPropagation()} .catalogLayer=${e} .view=${this.view} .referenceElement=${this.referenceElement} @catalogOpen=${this._onCatalogOpen} @tablesOpen=${this._onTablesOpen}></arcgis-catalog-layer-list>`)}_getTableListParams(e){switch(e.type){case"knowledge-graph":return{...this.knowledgeGraphOptions,tables:e.tables};case"map-image":return{...this.mapImageOptions,tables:e.subtables};case"tile":return{...this.tileOptions,tables:e.subtables};default:return null}}async _createTableList(e){let{headingLevel:t,selectionMode:i,dragEnabled:a}=this,o=this._getTableListParams(e);return K(n`<arcgis-table-list .headingLevel=${o?.headingLevel??t} .selectionMode=${o?.selectionMode??i} .dragEnabled=${o?.dragEnabled??a} .collapsed=${o?.collapsed} .filterPlaceholder=${o?.filterPlaceholder} .filterText=${o?.filterText} .icon=${o?.icon??void 0} .label=${o?.label??void 0} .listItemCreatedFunction=${o?.listItemCreatedFunction} .tables=${o?.tables} .referenceElement=${this.referenceElement} @arcgisReady=${l=>l.stopPropagation()}></arcgis-table-list>`)}_handlePanelFlowItemBack(e){e.open=!1}_moveLayerFromChildList({toEl:e,fromEl:t,dragEl:i,newIndex:a}){let o=this._resolveListContainer(e),l=this._resolveListContainer(t),c=$(i,this.operationalItems),d=this._getContainerItem(o),g=this._getContainerItem(l);a==null||!c||this.viewModel.moveListItem(c,g,d,a)}_onCalciteListDragEnd(e){let{fromEl:t,toEl:i,dragEl:a,oldIndex:o}=e;if(t!==i){a.remove();return}o==null||!t||!a||t.insertBefore(a,t.children[o])}_onCalciteListOrderChange(e){let{_lastDragDetail:t}=this,{dragEl:i,newIndex:a}=e,o=this._resolveListContainer(e.fromEl),l=this._resolveListContainer(e.toEl),c=t?.newIndex===a&&t?.dragEl===i&&t?.toEl===l&&t?.fromEl===o;if(!(!o||!l||c)){if(this._lastDragDetail={...e,fromEl:o,toEl:l},this._selectedDragItemLayerUid=i.value,o===l){let d=Array.from(o.children).filter(g=>g?.matches("calcite-list-item")).map(g=>g.value.layer?.uid??"");this._sortLayers(o,d);return}this._moveLayerFromChildList({toEl:l,fromEl:o,dragEl:i,newIndex:a})}}_sortLayers(e,t){if(e)if(e===this._rootListRef.value)Be(this.el.view?.map?.layers,t);else{let i=$(e,this.operationalItems);if(!i)return;Ue(i,t)}}_handleCalciteListChange(e){let{selectionMode:t,selectedItems:i}=this;if(t==="none")return;let a=e.target.selectedItems.map(o=>$(o,this.operationalItems)).filter(Boolean);i.removeAll(),i.addMany(a)}render(){let{_visibleItems:e,state:t}=this,i={[B.hidden]:t==="loading",[B.disabled]:t==="disabled"};return n`<div class=${h(z(B.widget,i))}>${e?.length?[this._renderItemTooltips(),this._renderItems()]:this._renderNoItems()}</div>`}_renderItemTooltip(e){let{_tooltipReferenceMap:t,messages:i}=this;return e?n`<calcite-tooltip overlay-positioning=fixed .referenceElement=${t.get(e.layer?.uid??"")}>${i.layerIncompatibleTooltip}</calcite-tooltip>`:null}_renderItemTooltipNodes(e){if(e.incompatible)return this._renderItemTooltip(e);let t=e.children?.filter(i=>!i.hidden).toArray().map(i=>this._renderItemTooltipNodes(i))??[];return t.length?t:null}_renderItemTooltips(){return this._visibleItems?.toArray().map(e=>this._renderItemTooltipNodes(e))}_renderNoItemsMessage(){return n`<div slot=message>${this.messages.noItemsToDisplay}</div>`}_renderNoItems(){return n`<div class=${h(P.itemMessage)}><calcite-notice icon=information kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>`}_renderLayerFlowItem(e,t){let{messages:i,openedLayers:a}=this,o=e.title||this.messages.untitledLayer;return M(e?.uid??o,n`<calcite-flow-item data-layer-uid=${e?.uid??""??m} .description=${o} .heading=${i[e.type==="catalog"?"catalogLayers":"tables"]} .headingLevel=${this.headingLevel} .selected=${t} @calciteFlowItemBack=${l=>{l.preventDefault(),a.pop(),a.at(-1)&&this._layerFlowItemRef.value?.setFocus()}} ${E(this._layerFlowItemRef)}>${this._layerListMap.get(e)}</calcite-flow-item>`)}_renderPanelFlowItems(){let{_openedPanelItems:e,openedLayers:t}=this;return Me(e.toArray(),i=>i.uid,(i,a)=>{let{panel:o,title:l}=i,c=()=>this._handlePanelFlowItemBack(o);return n`<calcite-flow-item .description=${l} .heading=${o.title} .headingLevel=${this.headingLevel} .selected=${!t.length&&a===e.length-1} @calciteFlowItemBack=${d=>{d.preventDefault(),c()}} ${E(this._panelFlowItemRef)}><arcgis-layer-list-item-panel .item=${i} .view=${this.view}></arcgis-layer-list-item-panel><calcite-button appearance=transparent @click=${c} slot=footer-actions width=full>${this.messages.back}</calcite-button></calcite-flow-item>`})}_renderItems(){let{collapsed:e,_visibleItems:t,_openedPanelItems:i,_filterEnabled:a,_rootGroupUid:o,showCloseButton:l,showCollapseButton:c,showHeading:d,_dragEnabled:g,selectionMode:v,filterText:y,openedLayers:w,filterPlaceholder:F,messages:I}=this,O=[n`<calcite-flow-item .closable=${l} .closed=${this.closed} .collapsed=${e} .collapsible=${c} .heading=${d?I.componentLabel:void 0} .headingLevel=${this.headingLevel} .selected=${!w.length&&!i.length} @calciteFlowItemClose=${()=>this.closed=!1}><calcite-list @focusin=${this._setActiveItem} @focusout=${this._clearActiveItem} .canPull=${f=>this._canMove(f,"pull")} .canPut=${f=>this._canMove(f,"put")} data-layer-type=${o??m} .displayMode=${Je} .dragEnabled=${g} .filterEnabled=${a} .filterPlaceholder=${F} .filterProps=${Te} .filterText=${a?y:""} .group=${o} .label=${I.componentLabel} @mouseleave=${this._clearActiveItem} @mouseover=${this._setActiveItem} selection-appearance=highlight .selectionMode=${v} @calciteListChange=${this._handleCalciteListChange} @calciteListFilter=${f=>this.filterText=f.currentTarget?.filterText??""} @calciteListOrderChange=${f=>this._onCalciteListOrderChange(f.detail)} @calciteListDragEnd=${f=>this._onCalciteListDragEnd(f.detail)} ${E(this._rootListRef)}>${t?.toArray().map(f=>this._renderItem(f))??[]}${t?.length&&a?n`<div class=${h(P.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this._renderNoItemsMessage()}</calcite-notice></div>`:null}</calcite-list></calcite-flow-item>`,this._renderPanelFlowItems(),this._renderedOpenLayerFlowItems];return this.closed?null:M("root-flow",n`<calcite-flow>${O}</calcite-flow>`)}_renderItem(e,t,i){return M(e.uid,te({activeItem:this._activeItem,canMove:this._canMove,css:P,displayMode:Je,dragEnabled:this.dragEnabled,hideStatusIndicators:this.hideStatusIndicators,hideCatalogLayerList:this.hideCatalogLayerList,item:e,messages:this.messages,layerTablesEnabled:this.layerTablesEnabled,listModeDisabled:this.viewModel.listModeDisabled,operationalItems:this.operationalItems,parent:t,parentTitles:i,rootGroupUid:this._rootGroupUid,selectedDragItemLayerUid:this._selectedDragItemLayerUid,selectedItems:this.selectedItems,selectionMode:this.selectionMode,setCurrentActiveItem:this._setCurrentActiveItem,showTemporaryLayerIndicators:this.showTemporaryLayerIndicators,showCloseButton:this.showCloseButton,showCollapseButton:this.showCollapseButton,showErrors:this.showErrors,showHeading:this.showHeading,showFilter:this.showFilter,clearActiveItem:this._clearActiveItem,visibilityAppearance:this.visibilityAppearance,handleAction:this._onTriggerAction,handleCatalogOpen:this._onCatalogOpen,handleSelectedDragItemLayerUidChange:this._onSelectedDragItemLayerUidChange,handleTablesOpen:this._onTablesOpen,handleTooltipReferenceChange:this._onTooltipReferenceChange,view:this.view}))}};xe("arcgis-layer-list-next",ie);return ie},"widgets/LayerList/LayerListViewModel","core/Collection","core/reactiveUtils","layers/catalog/catalogUtils",a,b,c,d,e,f,g,i)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import a from"./MOJH7XEP.js";import{a as h}from"./FG75P4KZ.js";import"./JCTU3MST.js";import"./BXKNMJRR.js";import"./IJQZON2Z.js";import{O as d,R as m,U as p,a as r,b as l}from"./IXZEUVT2.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:w},{a:u,b:g,c:v,d:f,f:c}])=>{var y=r`:host{overflow-y:hidden;display:flex;flex:1 0}.template-select-flow-item-container{display:flex;flex-direction:column;justify-content:space-between;overflow-y:hidden;flex-grow:1}.template-select-flow-item-container .template-select-flow-item-content{display:flex;flex-direction:column;overflow-y:auto;flex:1 0}.template-select-flow-item-container .template-select-flow-item-content .template-select-flow-item-list-heading{display:flex;gap:var(--calcite-spacing-xs);align-items:center;justify-content:space-between;padding:var(--calcite-spacing-md) var(--calcite-spacing-lg);background-color:var(--calcite-color-foreground-2);border-bottom:1px solid var(--calcite-color-border-3);font-weight:var(--calcite-font-weight-semibold)}.template-button-container{padding:var(--calcite-spacing-md)}.template-done-button{width:100%}`,n=class extends d{constructor(){super(...arguments),this._handles=h("disconnect")}static{this.properties={_selectedTemplate:16,excludeOrganizationTemplates:5,viewModel:0,messages:0,hideTemplateSelector:0}}static{this.styles=y}loaded(){this.manager.onLifecycle(()=>[w(()=>this.viewModel.templateOptions.id,e=>{this._handles.removeHandles("template-handle"),this._selectedTemplate=e?this.viewModel.getLayoutTemplateById(e)??void 0:void 0,this._handles.addHandles(w(()=>this._selectedTemplate?.state,()=>this.requestUpdate(),{initial:!0}),"template-handle")},{initial:!0})])}_getPortalTemplates(){return this.viewModel.includeDefaultTemplates&&!this.excludeOrganizationTemplates?this.viewModel.defaultTemplates.toArray().filter(({layout:e,layoutItem:i})=>!c(e)&&!!i?.id):[]}_getDefaultTemplates(){return this.viewModel.includeDefaultTemplates?this.viewModel.defaultTemplates.toArray().filter(({layout:e,layoutItem:i})=>!c(e)&&!i?.id):[]}_getPrintServiceTemplates(){return!this.viewModel.includeDefaultTemplates||!this._getDefaultTemplates().length?this.viewModel.printServiceTemplates.toArray().filter(({layout:e})=>!c(e)):[]}render(){let{messages:e}=this,i=u.test(this.viewModel.portal?.url),t=this.viewModel.browseTemplates.toArray(),a=this._getPortalTemplates(),s=this._getDefaultTemplates(),o=this._getPrintServiceTemplates(),T=t.length+a.length+s.length+o.length>15;return l`<div class="template-select-flow-item-container"><div class="template-select-flow-item-content"><slot></slot><calcite-list .filterEnabled=${T} .filterProps=${["label"]} .label=${e.templateList} selection-mode=single-persist @calciteListChange=${({currentTarget:$})=>this.viewModel.applyTemplate($.selectedItems[0]?.value)}>${t.length?l`<div><div class="template-select-flow-item-list-heading">${e.myTemplates}${i?l`<calcite-chip icon=credits appearance=outline kind=neutral .label=${e.consumesCredits} scale=s>${e.consumesCredits}</calcite-chip>`:null}</div>${this._renderLayoutTemplates(t,!0)}</div>`:null}${a.length?l`<div><div class="template-select-flow-item-list-heading">${e.organizationTemplates}${i?l`<calcite-chip icon=credits appearance=outline kind=neutral .label=${e.consumesCredits} scale=s>${e.consumesCredits}</calcite-chip>`:null}</div>${this._renderLayoutTemplates(a)}</div>`:null}${t.length||a.length?s.length?l`<div><div class="template-select-flow-item-list-heading">${e.defaultTemplates}</div>${this._renderLayoutTemplates(s)}</div>`:null:this._renderLayoutTemplates(s)}${t.length||a.length?o.length?l`<div><div class="template-select-flow-item-list-heading">${e.defaultTemplates}</div>${this._renderLayoutTemplates(o)}</div>`:null:this._renderLayoutTemplates(o)}</calcite-list></div><div class="template-button-container"><calcite-button class="template-done-button" @click=${this.hideTemplateSelector}>Done</calcite-button></div></div>`}_renderLayoutTemplates(e,i=!1){return e.map(t=>l`<calcite-list-item .description=${g(t)} .label=${v(t,this.messages)} .selected=${t.id===this.viewModel.templateOptions.id} title=${t.description??""??m} .value=${t}><calcite-icon .icon=${(t.layout?f(t.layout):null)||"custom-print"} slot=content-start></calcite-icon>${t.state==="loading"?l`<calcite-loader inline label=loading scale=s slot=content-end></calcite-loader>`:null}${t?.state==="error"?l`<calcite-icon class="template-select-error" icon=exclamation-mark-circle scale=s slot=content-end></calcite-icon>`:null}${i?l`<calcite-action icon=trash @click=${()=>this.viewModel.removePortalTemplate(t)} slot=actions-end text=delete></calcite-action>`:null}</calcite-list-item>`)}};p("arcgis-print-template-selector",n);return n},"core/reactiveUtils",a)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import b from"./BZNHYPVY.js";import a from"./M2MJH2FX.js";import{h as d}from"./JCTU3MST.js";import{O as n,U as s,a as c,x as l}from"./IXZEUVT2.js";export default $arcgis.t(([g,{a:a},m])=>{var u=c`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__heading{word-break:break-word}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}.esri-batch-attribute-form{background-color:var(--calcite-color-background);padding:var(--arcgis-internal-padding, var(--calcite-space-md) var(--calcite-space-lg))}.esri-batch-attribute-form__notice-error{margin:0 0 var(--calcite-space-2xl)}.esri-batch-attribute-form__form{display:flex;flex-direction:column}.esri-batch-attribute-form__centered-button{align-self:center}.esri-batch-attribute-form__description-text{color:var(--calcite-color-text-3)}.esri-batch-attribute-form__label{white-space:pre-wrap;overflow-wrap:break-word;display:flex;position:relative;flex-direction:column;justify-content:space-between;transition:opacity .25s,margin .25s;opacity:1;margin-bottom:var(--calcite-space-xs);&:last-child{margin-bottom:0}}.esri-batch-attribute-form__label-text-content{white-space:pre-wrap;overflow-wrap:break-word;display:flex;align-items:center}.esri-batch-attribute-form__input--switch{margin:7px 0}.esri-batch-attribute-form__input--radio-label{display:flex;align-items:center}.esri-batch-attribute-form__input--radio-group{display:flex;flex-direction:column}.esri-batch-attribute-form__input--radio-placeholder{color:var(--calcite-color-text-3);font-style:italic}.esri-batch-attribute-form__multiple-choice-input,.esri-batch-attribute-form__multiple-choice-input__other-choice{display:flex;flex-direction:column;gap:var(--calcite-space-sm)}.esri-batch-attribute-form__multiple-choice-input__select-all{border-block-end:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);padding-block-end:var(--calcite-space-sm)}.esri-batch-attribute-form__multiple-choice-input__other-choice--with-select-all{border-block-start:var(--calcite-border-width-sm) solid var(--calcite-color-border-1);padding-block-start:var(--calcite-space-sm)}.esri-batch-attribute-form__form-header{margin-bottom:var(--calcite-space-md);.esri-batch-attribute-form__description-text~.esri-widget__heading{margin-bottom:0}}.esri-batch-attribute-form__input{width:100%;&:not(calcite-checkbox):focus{outline:var(--calcite-space-base) solid var(--calcite-color-brand);outline-offset:-2px}}.esri-batch-attribute-form__input--disabled{background-color:var(--calcite-color-background);font-weight:var(--calcite-font-weight-medium)}.esri-batch-attribute-form__individual-element{margin:var(--calcite-space-2xl) 0}.esri-batch-attribute-form__date-input-container{display:flex;flex-direction:column;gap:var(--calcite-space-sm);.esri-batch-attribute-form__input{margin-bottom:var(--calcite-space-base)}&:last-child{margin-bottom:0}}.esri-batch-attribute-form__group{margin:0 0 var(--calcite-space-md) 0;background-color:inherit;margin-inline:calc(var(--calcite-space-md) * -1)}.esri-batch-attribute-form__group--sequential{border-bottom:none;border-inline-start:3px solid var(--calcite-color-border-input)}.esri-batch-attribute-form__relationship-element-input{margin-block-end:var(--calcite-space-lg);calcite-notice,.esri-batch-attribute-form__relationship-element-input_list{margin-bottom:var(--calcite-space-md-plus)}}.esri-batch-attribute-form__relationship-element-input_header{color:var(--calcite-color-text-1)}.esri-batch-attribute-form__relationship-element-input_description,.esri-batch-attribute-form__relationship-element-input_header{margin-bottom:var(--calcite-space-md-plus)}.esri-batch-attribute-form__relationship-element-input_list{min-height:var(--calcite-space-2xs)}.esri-batch-attribute-form__relationship-element-input_list-observer{position:relative;bottom:20px;z-index:2;text-align:center}.esri-batch-attribute-form__relationship-element-input_showing-all{.esri-batch-attribute-form__relationship-element-input_add-button{margin-block:var(--calcite-space-md)}}.esri-batch-attribute-form__attachment-element-input{margin:var(--calcite-space-2xl) 0}.esri-batch-attribute-form__attachment-element-label{white-space:pre-wrap;overflow-wrap:break-word;margin-bottom:var(--calcite-space-2xs);color:var(--calcite-color-text-1);font-weight:var(--calcite-font-weight-medium)}.esri-batch-attribute-form__attachment-element-list{margin-block:var(--calcite-space-sm);border-block:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.esri-batch-attribute-form__attachment-element-list-item{--calcite-list-item-border-color: var(--calcite-color-border-3);white-space:pre-wrap;overflow-wrap:break-word;min-block-size:var(--calcite-space-2xl)}.esri-batch-attribute-form__attachment-element-list-item-start{display:flex;align-items:center;justify-content:center;border-radius:var(--calcite-corner-radius-sm);background-color:var(--calcite-color-surface-3);block-size:var(--calcite-space-3xl);inline-size:var(--calcite-space-3xl);color:var(--calcite-color-text-2)}.esri-batch-attribute-form__attachment-element-list-item-staged-indicator{display:inline-flex;border-radius:50%;background-color:var(--calcite-color-brand);block-size:var(--calcite-space-xs);inline-size:var(--calcite-space-xs)}.esri-batch-attribute-form__attachment-element-list-item-thumb{border-radius:inherit;block-size:100%;inline-size:100%;object-fit:cover}.esri-batch-attribute-form__attachment-element-list-item-icon{color:inherit}.esri-batch-attribute-form__attachment-element-empty-state{padding-block:var(--calcite-space-sm);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}.esri-batch-attribute-form__attachment-element-add-actions{display:flex;flex-direction:column;gap:var(--calcite-space-sm);align-items:flex-start;justify-content:flex-start;inline-size:100%}.esri-batch-attribute-form__attachment-element-capture-notice{inline-size:100%}.esri-batch-attribute-form__attachment-element-empty-action-hint{line-height:var(--calcite-font-line-height-fixed-base);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-regular)}.esri-batch-attribute-form__attachment-element-empty-action-hint-value{color:var(--calcite-color-text-1);font-weight:var(--calcite-font-weight-medium)}.esri-batch-attribute-form__attachment-element-all-panel{display:flex;flex-direction:column;gap:var(--calcite-space-md);padding:var(--calcite-space-sm)}.esri-batch-attribute-form__attachment-element-file-input{display:none}.esri-batch-attribute-form__attachment-element-add-panel{display:flex;flex-direction:column;gap:var(--calcite-space-md);padding:var(--calcite-space-sm)}.esri-batch-attribute-form__attachment-element-add-dropzone{box-sizing:border-box;display:flex;flex:1;flex-direction:column;gap:0;align-items:center;justify-content:center;transition:border-color var(--calcite-animation-timing) ease-in-out,background-color var(--calcite-animation-timing) ease-in-out,box-shadow var(--calcite-animation-timing) ease-in-out;border:var(--calcite-border-width-sm) dashed var(--calcite-color-border-input);border-radius:var(--calcite-corner-radius-sm);background-color:var(--calcite-color-surface-2);padding:var(--calcite-space-lg) var(--calcite-space-md);min-block-size:10.875rem;inline-size:100%;text-align:center}.esri-batch-attribute-form__attachment-element-add-dropzone-icon{margin-block-end:var(--calcite-space-sm);color:var(--calcite-color-text-3)}.esri-batch-attribute-form__attachment-element-add-dropzone-heading{margin-block-end:var(--calcite-space-xs);line-height:var(--calcite-font-line-height-fixed-base);color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-regular)}.esri-batch-attribute-form__attachment-element-add-dropzone-detail{white-space:pre-wrap;overflow-wrap:break-word;margin-block-end:var(--calcite-space-md);max-inline-size:13rem;line-height:var(--calcite-font-line-height-fixed-base);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-regular)}.esri-batch-attribute-form__attachment-element-add-dropzone calcite-button{align-self:center}.esri-batch-attribute-form__attachment-element-validation-criteria{display:flex;flex-direction:column;gap:var(--calcite-space-xs);padding:var(--calcite-space-sm)}.esri-batch-attribute-form__attachment-element-detail{display:flex;flex-direction:column;gap:var(--calcite-space-md);padding:var(--calcite-space-sm)}.esri-batch-attribute-form__attachment-element-detail-metadata-group{display:flex;flex-direction:column;gap:var(--calcite-space-2xs)}.esri-batch-attribute-form__attachment-element-detail-file-name-row{display:flex;gap:var(--calcite-space-2xs);align-items:center;inline-size:100%}.esri-batch-attribute-form__attachment-element-detail-file-name-input{flex:1 1 auto;min-inline-size:0}.esri-batch-attribute-form__attachment-element-detail-preview{box-sizing:border-box;display:flex;flex-direction:column;gap:var(--calcite-space-sm);align-items:center;justify-content:center;border:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-sm);background-color:var(--calcite-color-surface-2);padding:var(--calcite-space-sm);inline-size:100%}.esri-batch-attribute-form__attachment-element-detail-preview-image{display:block;block-size:auto;max-block-size:min(24rem,50vh);inline-size:100%;object-fit:contain}.esri-batch-attribute-form__attachment-element-detail-preview-icon{color:var(--calcite-color-text-2)}.esri-batch-attribute-form__attachment-element-detail-actions{display:flex;flex-wrap:wrap;gap:var(--calcite-space-xs)}.esri-batch-attribute-form__attachment-element-detail-metadata{display:flex;flex-direction:column;gap:var(--calcite-space-md);padding-block-start:var(--calcite-space-lg)}.esri-batch-attribute-form__attachment-element-detail-metadata-label{line-height:var(--calcite-font-line-height-fixed-base);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-regular);font-style:normal}.esri-batch-attribute-form__attachment-element-detail-metadata-value{white-space:pre-wrap;overflow-wrap:break-word;line-height:var(--calcite-font-line-height-relative-snug);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-regular);font-style:normal}.esri-batch-attribute-form__text-element-input{line-height:var(--calcite-font-line-height-relative-snug);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular);a{display:inline;position:relative;transition:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start inset-size,opacity,outline-color,transform var(--calcite-animation-timing) ease-in-out 0s,outline 0s,outline-offset 0s;border-style:none;background-color:transparent;background-image:linear-gradient(currentColor,currentColor),linear-gradient(var(--calcite-color-brand-underline),var(--calcite-color-brand-underline));background-position-x:0%,100%;background-position-y:min(1.5em,100%);background-repeat:no-repeat,no-repeat;background-size:0% 1px,100% 1px;padding:0;text-decoration:none;color:var(--calcite-color-text-link);&:hover,&:focus{background-size:100% 1px,100% 1px}&:active{background-size:100% 2px,100% 2px}&.calcite--rtl{background-position:100% 100%,100% 100%}}code{border:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-xs);background-color:var(--calcite-color-surface-4);padding:var(--calcite-space-2xs);white-space:normal;word-break:break-word;color:var(--calcite-color-text-2);font-family:var(--calcite-code-family);font-size:85%}h1,h2,h3,h4,h5{margin-bottom:var(--calcite-space-2xs);line-height:var(--calcite-font-line-height-relative-snug);color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-bold)}h5{font-weight:var(--calcite-font-weight-medium)}h6{margin-bottom:var(--calcite-space-2xs);line-height:var(--calcite-font-line-height-relative-snug);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-medium)}p{margin-bottom:var(--calcite-space-lg);line-height:var(--calcite-font-line-height-relative-snug);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size--1);font-weight:var(--calcite-font-weight-regular)}strong{font-weight:var(--calcite-font-weight-bold)}}.esri-batch-attribute-form__utility-network-associations-element-input{margin-block-end:var(--calcite-space-md);.esri-feature-utility-network-associations{.esri-feature-element-info__description{color:var(--calcite-color-text-3)}h5{color:var(--calcite-color-text-1);font-size:inherit}}}`,h=t=>{throw TypeError(t)},p=(t,e,i)=>e.has(t)||h("Cannot "+i),b=(t,e,i)=>(p(t,e,"read from private field"),i?i.call(t):e.get(t)),f=(t,e,i)=>e.has(t)?h("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),v=(t,e,i,x)=>(p(t,e,"write to private field"),e.set(t,i),i),r,_=m(g),o=class extends n{constructor(){super(...arguments),f(this,r),this.widget=_(this),this.viewModel=this.widget.viewModel,this.autoDestroyDisabled=!1,this.editType=this.viewModel.editType,this.groupDisplay=this.widget.groupDisplay,this.headingLevel=this.widget.headingLevel,this.icon=this.widget.icon,this.status=this.viewModel.status,this.valid=this.viewModel.valid,this.label=this.widget.label,this.features=this.widget.features,this.disabled=this.widget.disabled,this.activeFeatureIndex=this.widget.activeFeatureIndex,this.submitHasBeenAttempted=this.viewModel.submitHasBeenAttempted,this.updating=this.viewModel.updating,this.maximumFeatureCount=this.viewModel.maximumFeatureCount,this.maximumFeatureCountWithComplexForms=this.viewModel.maximumFeatureCountWithComplexForms,this.hasTooManyFeatures=this.viewModel.hasTooManyFeatures,this.hasTooManyComplexFeatures=this.viewModel.hasTooManyComplexFeatures,this.readOnly=this.widget.readOnly,this.timeZone=this.widget.timeZone,this.arcgisPropertyChange=d()("status","valid","updating","submitHasBeenAttempted","activeFeatureIndex"),this.arcgisReady=l(),this.arcgisSubmit=a(()=>this.widget,"submit"),this.arcgisValueChange=a(()=>this.widget,"value-change")}static{this.properties={view:0,autoDestroyDisabled:5,editType:1,groupDisplay:1,headingLevel:9,icon:1,status:1,valid:5,label:1,features:0,disabled:5,activeFeatureIndex:9,submitHasBeenAttempted:5,updating:5,maximumFeatureCount:9,maximumFeatureCountWithComplexForms:9,hasTooManyFeatures:5,hasTooManyComplexFeatures:5,invalidFeatures:32,position:1,referenceElement:1,readOnly:5,timeZone:1}}static{this.styles=u}get layerInfos(){return b(this,r)}set layerInfos(e){v(this,r,e)}get invalidFeatures(){return this.viewModel.invalidFeatures}async destroy(){await this.manager.destroy()}getValues(e){return this.viewModel.getValues(e)}goToFirstError(){this.widget.goToFirstError()}userChangesHaveMadeFeatureInvalid(e){return this.viewModel.userChangesHaveMadeFeatureInvalid(e)}};r=new WeakMap;s("arcgis-multi-feature-form",o);return o},"widgets/BatchAttributeForm",a,b)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import j from"./SLTQSWGA.js";import{a as D}from"./KTXZR4IK.js";import i from"./SJIHZIXG.js";import h from"./MZWO5JYA.js";import f from"./OKHEBRQW.js";import{a as T}from"./VJVKFKSG.js";import e from"./ACMQRVHQ.js";import{a as H}from"./H47NPYUM.js";import d from"./M2MJH2FX.js";import c from"./ZUXQKICJ.js";import{h as P}from"./JCTU3MST.js";import"./BXKNMJRR.js";import a from"./FT7ETWDM.js";import{a as k,d as I}from"./IJQZON2Z.js";import{M as v,N as g,O as L,P as C,R as p,S as O,U as R,a as B,b as o,o as y,x as b}from"./IXZEUVT2.js";import"./H6RQVSYM.js";export default $arcgis.t(([K,U,q,{initializeProjection:G},{renderingSanitizer:M},{stripHTML:S},{substitute:m,formatNumber:A},{watch:c},,,,z,,,{d:E},{c:V,d:Z}])=>{var W=B`:host{display:flex;overflow:hidden;flex:1 1 auto}.root{--calcite-color-background: var(--calcite-color-foreground-1);display:flex;overflow:hidden;flex:1 1 auto;flex-direction:column}.root img{image-orientation:from-image}.flow-item-collapsed{--calcite-flow-item-header-border-block-end: none}.container{display:flex;flex:1 1 auto;background-color:var(--calcite-color-foreground-1)}.container calcite-list{width:100%}.container:not(:empty,.content-hidden){padding:var(--arcgis-internal-padding-md, var(--calcite-spacing-md))}.root .arcgis-feature,.root .arcgis-feature-relationship,.root .arcgis-feature-utility-network-associations{background-color:transparent}.heading{word-break:break-word;word-wrap:break-word}.header,.footer{display:flex;align-items:center;justify-content:flex-end;background-color:var(--calcite-color-foreground-1)}.footer{flex:1}.pagination-text{padding-inline:var(--calcite-spacing-sm);color:var(--calcite-color-text-3);font-size:var(--calcite-font-size-sm)}.loader{align-self:center;padding-inline:var(--calcite-spacing-lg)}.pagination-action-bar{flex:1}.pagination-menu-button{padding-inline:var(--calcite-spacing-xxs);border-inline-start:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.icon{display:inline-block;flex:0 0 var(--calcite-spacing-lg);width:var(--calcite-spacing-lg);height:var(--calcite-spacing-lg)}.action-image{flex:0 0 var(--calcite-spacing-lg);background-position:50% 50%;background-repeat:no-repeat;background-size:contain;width:var(--calcite-spacing-lg);height:var(--calcite-spacing-lg)}.header{border-block-end:var(--calcite-border-width-sm) solid var(--calcite-color-border-3)}.content-feature{--calcite-flow-item-footer-padding: 0}.feature-menu-observer{position:relative;bottom:var(--calcite-spacing-xxl);z-index:2;text-align:center}.action-exit{transform:scaleX(-1)}.flow-item-drill-in{--calcite-flow-item-footer-padding: 0}`;function X(_){return _?.declaredClass.startsWith("esri.layers.")??!1}function J(_){if(!(!_||!("featureReduction"in _)))return _.featureReduction?.type}var Y=z(q),N=class extends L{constructor(){super(...arguments),this._zoomToFeature=new K({icon:"magnifying-glass-plus",id:"zoom-to-feature",title:"{messages.zoom}"}),this._fetchFeaturesController=null,this._featureMenuIntersectionObserverCallback=([e])=>{e?.isIntersecting&&this.viewModel.featurePage!=null&&this.viewModel.featurePage++},this._featureMenuIntersectionObserver=new IntersectionObserver(this._featureMenuIntersectionObserverCallback,{root:window.document}),this._featureMenuIntersectionObserverNode=null,this._focusTrapNode=v(),this._focusTrapAnimationFrameId=null,this._rootFlowItemNode=v(),this._featureMenuViewportNode=v(),this._actionBarMenuNode=v(),this._flowContainerNode=v(),this._aggregatedFeaturesComponent=v(),this.messages=H(),this._selectedFeatureComponent=v(),this._cancelOpenRelatedFeature=()=>{this._openRelatedFeatureAbortController=T(this._openRelatedFeatureAbortController)},this._openRelatedFeatureAbortController=null,this.flowItems=new U,this._aggregatedFeatureCount=0,this._selectedAggregatedFeatureIndex=-1,this._aggregatedFeaturesLoading=!1,this._hasActionsStartSlotContent=!1,this._hasActionsEndSlotContent=!1,this.viewModel=Y(this),this.actions=this.viewModel.actions,this.active=this.viewModel.active,this.autoDestroyDisabled=!1,this.focusTrapEnabled=!1,this.collapsed=!1,this.content=this.viewModel.content,this.defaultPopupTemplateEnabled=this.viewModel.defaultPopupTemplateEnabled,this.effectiveHeading=this.viewModel.effectiveHeading,this.featureCount=this.viewModel.featureCount,this.featureMenuOpen=!1,this.featureNavigationTop=!1,this.features=this.viewModel.features,this.featuresPerPage=this.viewModel.featuresPerPage,this.featureItemAbilities=this.viewModel.featureItemAbilities,this.goToOverride=this.viewModel.goToOverride,this.headerActions=new U,this.heading=this.viewModel.heading,this.headingLevel=2,this.hideActionBar=!1,this.hideCloseButton=!1,this.hideFeatureMenuHeading=!1,this.hideFeatureNavigation=!1,this.hideFeatureListLayerTitle=!1,this.hideHeading=!1,this.hideSelectFeature=!1,this.hideSpinner=!1,this.hideContent=!1,this.chartAnimationDisabled=this.viewModel.featureItemAbilities?.chartAnimation,this.hideAttachmentsContent=this.viewModel.featureItemAbilities?.attachmentsContent,this.hideCustomContent=this.viewModel.featureItemAbilities?.customContent,this.hideExpressionContent=!1,this.hideFieldsContent=this.viewModel.featureItemAbilities?.fieldsContent,this.hideMediaContent=this.viewModel.featureItemAbilities?.mediaContent,this.hideRelationshipContent=this.viewModel.featureItemAbilities?.relationshipContent,this.hideTextContent=this.viewModel.featureItemAbilities?.textContent,this.hideUtilityNetworkContent=this.viewModel.featureItemAbilities?.utilityNetworkAssociationsContent,this.hideLastEditedInfo=!1,this.highlightDisabled=this.viewModel.highlightEnabled,this.includeDefaultActionsDisabled=this.viewModel.includeDefaultActions,this.initialDisplayMode=this.viewModel.initialDisplayMode,this.location=this.viewModel.location,this.map=this.viewModel.map,this.open=this.viewModel.open,this.promises=this.viewModel.promises,this.responsiveActionsEnabled=!1,this.selectedFeature=this.viewModel.selectedFeature,this.selectedFeatureIndex=this.viewModel.selectedFeatureIndex,this.showCollapseButton=!1,this.spatialReference=this.viewModel.spatialReference,this.state=this.viewModel.state,this.timeZone=this.viewModel.timeZone,this.updateLocationEnabled=this.viewModel.updateLocationEnabled,this.view=this.viewModel.view,this.arcgisPropertyChange=P()("active","collapsed","effectiveHeading","featureCount","featureMenuOpen","features","promises","selectedDrillInFeature","selectedFeature","selectedFeatureComponent","selectedFeatureIndex","state","open"),this.arcgisReady=b(),this.arcgisClose=b(),this.arcgisTriggerAction=b()}static{this.properties={_openRelatedFeatureAbortController:16,flowItems:16,_aggregatedFeatureCount:16,_selectedAggregatedFeatureIndex:16,_aggregatedFeaturesLoading:16,_hasActionsStartSlotContent:16,_hasActionsEndSlotContent:16,_hideActionText:16,_featureNavigationVisible:16,_isCollapsed:16,_collapseEnabled:16,_featureFlowItemSelected:16,viewModel:0,actions:0,active:0,autoDestroyDisabled:5,focusTrapEnabled:5,collapseDirection:1,collapsed:5,content:1,defaultPopupTemplateEnabled:5,effectiveHeading:32,featureCount:9,featureMenuOpen:5,featureMenuTitle:1,featureNavigationTop:5,features:0,featuresPerPage:9,featureItemAbilities:0,goToOverride:0,headerActions:0,heading:1,headingLevel:9,hideActionBar:5,hideCloseButton:5,hideFeatureMenuHeading:5,hideFeatureNavigation:5,hideFeatureListLayerTitle:5,hideHeading:5,hideSelectFeature:5,hideSpinner:5,hideContent:5,chartAnimationDisabled:5,hideAttachmentsContent:5,hideCustomContent:5,hideExpressionContent:5,hideFieldsContent:5,hideMediaContent:5,hideRelationshipContent:5,hideTextContent:5,hideUtilityNetworkContent:5,hideLastEditedInfo:5,highlightDisabled:5,icon:1,includeDefaultActionsDisabled:5,initialDisplayMode:1,label:1,location:0,map:0,messageOverrides:0,open:5,referenceElement:1,promises:0,responsiveActionsEnabled:5,selectedDrillInFeature:32,selectedFeature:0,selectedFeatureComponent:32,selectedFeatureIndex:9,showCollapseButton:5,spatialReference:0,state:32,timeZone:1,updateLocationEnabled:5,view:0}}static{this.styles=W}get _hideActionText(){if(!this.responsiveActionsEnabled)return!1;let e=this.viewModel.view?.widthBreakpoint;return e==="xsmall"||e==="small"||e==="medium"}get _featureNavigationVisible(){return this.viewModel.active&&this.viewModel.featureCount>1&&!!this.viewModel.selectedFeature&&!this.hideFeatureNavigation}get _isCollapsed(){return this._collapseEnabled&&this.collapsed}get _collapseEnabled(){return this.showCollapseButton&&(this.initialDisplayMode==="list"||!!(this.heading||this.viewModel.selectedFeatureItem?.heading)&&!!(this.content||this.viewModel.selectedFeatureItem?.content))}get _featureFlowItemSelected(){return this.initialDisplayMode==="list"?!!this.selectedFeature:!this.featureMenuOpen}clear(){this.viewModel.clear()}close(){this.open=!1}async destroy(){await this.manager.destroy(),this._removeSpinner(this.referenceElement),this._cancelOpenRelatedFeature(),this._cancelToggleFocusTrapAnimationFrame(),this._removeFlowItems(),this._unobserveFeatureMenuObserver(),this._cancelFetchingFeatures(),this._featureMenuIntersectionObserver?.disconnect()}async fetchFeatures(e,t){this._cancelFetchingFeatures();let{signal:a}=t??{},i=new AbortController,{signal:s}=i,n=a?AbortSignal.any([s,a]):s;if(this._fetchFeaturesController=i,!e&&this.view&&this.location&&(await G(this.location.spatialReference,this.view.spatialReference,null,{signal:n}),e=this.view.toScreen(this.location)??void 0),!e)return;let r=await this.viewModel.fetchFeatures(e,{...t,signal:n});this.location=r.location,this.promises=r.pendingFeatures}next(){this.viewModel.next()}previous(){this.viewModel.previous()}async setFocus(){await this._focusTrapNode.value?.setFocus()}async triggerAction(e){if(!e.disabled)return e?.type==="toggle"&&(e.value=!e.value),await Z(e,this.viewModel)}connectedCallback(){super.connectedCallback(),this._createSpinner()}disconnectedCallback(){super.disconnectedCallback(),this._cancelToggleFocusTrapAnimationFrame(),this._removeSpinner(this.referenceElement)}loaded(){this.manager.onLifecycle(()=>[c(()=>this.viewModel?.active,()=>this._toggleFocusTrap()),c(()=>this.viewModel?.selectedFeatureIndex,(e,t)=>this._selectedFeatureIndexUpdated(e,t)),c(()=>this.viewModel?.view?.scale,()=>this._viewScaleChange()),c(()=>this.viewModel?.view,(e,t)=>t&&this._viewChange()),c(()=>this._spinnerEl?.screenLocation,()=>this._closeOpenActionMenu()),c(()=>this.selectedFeatureComponent?.viewModel,()=>this._removeFlowItems()),c(()=>this.viewModel?.featureItems,()=>this._featureMenuViewportScrollTop()),c(()=>this.flowItems.length,()=>this._syncSelectedDrillInFeature()),c(()=>[this.flowItems?.length,this.featureMenuOpen],()=>{this.setFocus()}),c(()=>this.viewModel.aggregatedFeaturesEnabled,e=>{e||(this._aggregatedFeatureCount=0,this._selectedAggregatedFeatureIndex=-1,this._aggregatedFeaturesLoading=!1,this._removeFlowItems())}),c(()=>this.referenceElement,(e,t)=>{this._removeSpinner(t),this._createSpinner()},{initial:!0}),c(()=>[this.hideSpinner,this.viewModel?.view,this.viewModel?.location,this.viewModel?.waitingForResult,this.viewModel?.open],()=>this._createSpinner(),{initial:!0})])}updated(){let e=this._selectedFeatureComponent.value??void 0;this.selectedFeatureComponent!==e&&y(()=>this.selectedFeatureComponent=e)}_toggleFocusTrap(){this._cancelToggleFocusTrapAnimationFrame(),this._focusTrapAnimationFrameId=requestAnimationFrame(()=>{this._focusTrapAnimationFrameId=null,this.viewModel.active?this._focusTrapNode.value?.activate():this._focusTrapNode.value?.deactivate()})}_cancelToggleFocusTrapAnimationFrame(){this._focusTrapAnimationFrameId!=null&&(cancelAnimationFrame(this._focusTrapAnimationFrameId),this._focusTrapAnimationFrameId=null)}_cancelFetchingFeatures(){this._fetchFeaturesController=T(this._fetchFeaturesController)}_handleClose(){this.close(),this.arcgisClose.emit()}_groupResultsByLayer(){let{featureItems:e}=this.viewModel,t=new Map;return e.forEach(a=>{let i=a?.graphic;if(!i)return;let s=E(i),n=X(s)?s:null,r=t.get(n);r||(r=[],t.set(n,r)),r.push(a)}),t}_handleCollapseToggle(){this.collapsed=!this.collapsed}async _openRelatedFeature(e){this._cancelOpenRelatedFeature();let t=new AbortController;if(this._openRelatedFeatureAbortController=t,await e.updateGeometry(),t.signal.aborted)return;let a=e.graphic,i=a?.geometry;if(i==null||a==null){this._openRelatedFeatureAbortController=null;return}if(this._removeFlowItems(),await this.viewModel.zoomTo({target:i}),t.signal.aborted)return;let s=await $arcgis.t(m=>m[0],"geometry/operators/labelPointOperator");if(t.signal.aborted)return;let n=s.execute(i);n!=null&&(this.location=n),this.features=[a],this.open=!0,await this.setFocus(),this._openRelatedFeatureAbortController=null}_handlePaginationMenuButton(){this._updateFeatureMenu()}_openFeatureMenu(){this._updateFeatureMenu(!0)}_closeFeatureMenu(){this._updateFeatureMenu(!1)}_updateFeatureMenu(e=!this.featureMenuOpen){this.featureMenuOpen=e}_previousFeature(){this.viewModel.previous()}_nextFeature(){this.viewModel.next()}_handleFeatureBack(){this.initialDisplayMode==="list"?(this.selectedFeatureIndex=-1,this.setFocus()):this._openFeatureMenu()}_handleFeatureMenuBack(){this.initialDisplayMode==="list"?(this.selectedFeatureIndex=-1,this.setFocus()):this.featureMenuOpen&&this._closeFeatureMenu()}_setActiveFeature(e){let{viewModel:t}=this;t.activeFeature=t.features?.[e]||null}_removeActiveFeature(){this.viewModel.activeFeature=null}_selectFeature(e){this.viewModel.selectedFeatureIndex=e,this.initialDisplayMode==="feature"?this._handleFeatureMenuBack():this.setFocus()}_unobserveFeatureMenuObserver(){this._featureMenuIntersectionObserverNode&&this._featureMenuIntersectionObserver.unobserve(this._featureMenuIntersectionObserverNode)}_featureMenuIntersectionObserverCreated(e){this._unobserveFeatureMenuObserver(),e&&this._featureMenuIntersectionObserver.observe(e),this._featureMenuIntersectionObserverNode=e}_getActionTitle(e){let{messages:t,selectedFeature:a}=this,{id:i}=e,s=a?.attributes,n=e.title??"",r=i==="zoom-to-feature"?m(n,{messages:t}):i==="remove-selected-feature"?m(n,{messages:t}):i==="zoom-to-clustered-features"?m(n,{messages:t}):i==="browse-aggregated-features"?m(n,{messages:t}):e.title;return r&&s?m(r,s):r??""}_onMainKeydown(e){let{key:t}=e;t==="ArrowLeft"&&(e.stopPropagation(),this._handleFeatureMenuBack(),this.previous(),this.setFocus()),t==="ArrowRight"&&(e.stopPropagation(),this._handleFeatureMenuBack(),this.next(),this.setFocus())}_featureMenuViewportScrollTop(){this._featureMenuViewportNode.value?.scrollContentTo({top:0})}_selectedFeatureIndexUpdated(e,t){let{featureCount:a,waitingForResult:i}=this.viewModel;i||!a||e===t||e===-1||(this._aggregatedFeatureCount=0,this._selectedAggregatedFeatureIndex=-1,this._removeFlowItems(),this._rootFlowItemNode.value?.scrollContentTo({top:0}))}_triggerAction(e){this.triggerAction(e),this.arcgisTriggerAction.emit({action:e})}_viewScaleChange(){let{selectedFeature:e}=this;!e?.isAggregate||J(E(e))!=="cluster"||(this.viewModel.aggregatedFeaturesEnabled=!1,this.open=!1,this.clear())}_viewChange(){this.viewModel.clear(),this.open=!1,this._aggregatedFeatureCount=0,this._removeFlowItems()}_handleAggregatedFeaturesPropertyChange({detail:e,target:t}){e.name==="aggregatedFeatureCount"&&(this._aggregatedFeatureCount=t.aggregatedFeatureCount),e.name==="selectedAggregatedFeatureIndex"&&(this._selectedAggregatedFeatureIndex=t.selectedAggregatedFeatureIndex,this._syncSelectedDrillInFeature()),e.name==="loading"&&(this._aggregatedFeaturesLoading=t.loading)}_closeOpenActionMenu(){let{_actionBarMenuNode:e}=this;e.value&&(e.value.menuOpen=!1)}_syncSelectedDrillInFeature(){let e=this.flowItems.getItemAt(this.flowItems.length-1);y(()=>this.selectedDrillInFeature=e?.graphic??void 0)}_removeFlowItems(){this.viewModel.aggregatedFeaturesEnabled=!1,this.flowItems?.destroyAll()}_getDrillInFlowItemDescription(e){switch(e.flowType){case"feature":case"feature-association":case"feature-utility-network-associations":case"feature-utility-network-association-type":return e.description;case"feature-relationship":return e.allItemsDescription}}_handleDrillInBackClick(){this.flowItems?.pop()?.destroy()}_getHeading(){let{effectiveHeading:e}=this.viewModel;return!this.hideHeading&&e?e:""}_handleActionsStartSlotChange(e){this._hasActionsStartSlotContent=k(e)}_handleActionsEndSlotChange(e){this._hasActionsEndSlotContent=k(e)}_removeSpinner(e){e?.manager?.component?.extraContent?.remove(this._spinnerEl),this._spinnerEl=void 0}_createSpinner(){let e=this.referenceElement;e&&(this._removeSpinner(e),this._spinnerEl=O(o`<arcgis-spinner .label=${this.messages.loading??""} .trackLocation=${!this.hideSpinner&&this.viewModel.open&&this.viewModel?.waitingForResult} .location=${this.viewModel?.location??void 0} .view=${this.viewModel?.view??void 0}></arcgis-spinner>`),e.manager?.component?.extraContent?.add(this._spinnerEl))}render(){return o`<div class="root" @keydown=${this._onMainKeydown}><calcite-focus-trap .focusTrapDisabled=${!this.focusTrapEnabled} ${g(this._focusTrapNode)}>${this._renderHeader()}${this._renderContentContainer()}</calcite-focus-trap></div>`}_renderFeatureNavigation(){return[this._renderPagination(()=>this._previousFeature(),()=>this._nextFeature()),this.initialDisplayMode==="list"?this._renderFeaturePaginationText(this.viewModel.featureCount,this.viewModel.selectedFeatureIndex):this._renderFeatureMenuButton()]}_renderHeader(){return this.featureNavigationTop&&this._featureNavigationVisible?o`<div class="header">${this._renderFeatureNavigation()}</div>`:null}_renderFooter(){return!this.featureNavigationTop&&this._featureNavigationVisible?o`<div class="footer" slot=footer>${this._renderFeatureNavigation()}</div>`:null}_renderFeaturePaginationText(e,t){let{messages:a}=this;return o`<div class="pagination-text">${m(a.pageText??"",{index:A(t+1),total:A(e)})}</div>`}_renderFeatureMenuButton(){let{messages:e,viewModel:t}=this,{featureCount:a,selectedFeatureIndex:i,pendingPromisesCount:s}=t;return o`<calcite-action class="pagination-menu-button" icon=list .label=${e.selectFeature} .loading=${s>0} @click=${this._handlePaginationMenuButton} .text=${m(e.pageText??"",{index:A(i+1),total:A(a)})} text-enabled title=${e.selectFeature??p}></calcite-action>`}_renderPagination(e,t){let{previous:a,next:i}=this.messages;return o`<calcite-action-bar class="pagination-action-bar" expand-disabled layout=horizontal overflow-actions-disabled scale=s><calcite-action-group scale=s><calcite-action class="pagination-previous" icon=chevron-left icon-flip-rtl .label=${a??""} @click=${e} .text=${a??""} title=${a??""??p}></calcite-action><calcite-action icon=chevron-right icon-flip-rtl .label=${i??""} @click=${t} .text=${i??""} title=${i??""??p}></calcite-action></calcite-action-group></calcite-action-bar>`}_renderFeatureMenuItem(e,t){let{initialDisplayMode:a}=this,{selectedFeatureItem:i}=this.viewModel,s=e===i;return o`<calcite-list-item @blur=${this._removeActiveFeature} @focus=${()=>this._setActiveFeature(t)} @mouseleave=${this._removeActiveFeature} @mouseover=${()=>this._setActiveFeature(t)} .selected=${s} @calciteListItemSelect=${()=>this._selectFeature(t)}><span .innerHTML=${(M.sanitize(e.heading)||this.messages.untitled)??""} slot=content></span>${a==="list"?o`<calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon>`:null}</calcite-list-item>`}_renderFeatureMenu(){let{messages:e,viewModel:t}=this,a=this._groupResultsByLayer(),i=new Map;t.featureItems.forEach((n,r)=>i.set(n,r));let s=this.initialDisplayMode==="list"?"none":"single";return t.featureItems.length?o`<calcite-list display-mode=flat .label=${e?.featuresList??""} selection-appearance=icon .selectionMode=${s}>${Array.from(a.keys(),n=>{let r=a.get(n)?.map(l=>{let h=i.get(l);return h==null?null:this._renderFeatureMenuItem(l,h)}),d=n?n.title??this.messages.untitled:null;return!this.hideFeatureListLayerTitle&&d!==null?D(n??"map-graphics",o`<calcite-list-item-group .heading=${d}>${r}</calcite-list-item-group>`):r})}</calcite-list>`:null}_renderHeaderAction(e){let t=e.title||"";return e.visible?o`<calcite-action .active=${e.type==="toggle"?e.value:!1} .disabled=${e.disabled} .icon=${e.icon??void 0} .indicator=${e.active} .loading=${e.active} @click=${()=>this._triggerAction(e)} slot=header-actions-end .text=${t} title=${t??p}></calcite-action>`:null}_renderHeaderActions(){return this.headerActions.map(e=>this._renderHeaderAction(e)).toArray()}_renderContentFeature(e){let{headingLevel:t,hideCloseButton:a,_isCollapsed:i,_collapseEnabled:s,featureNavigationTop:n,initialDisplayMode:r,selectedFeature:d,hideHeading:l}=this,{active:h,selectedFeatureItem:f,content:F}=this.viewModel,u=this._getHeading();if(r==="list"&&!d)return null;let w=f?!f.content:!F;return o`<calcite-flow-item class=${C(I({"content-feature":!0,"flow-item-collapsed":i}))} .closable=${!a} .closed=${!h} .collapsed=${i} .collapseDirection=${n?"down":"up"} .collapsible=${s} .headingLevel=${t} .selected=${e} .messageOverrides=${{collapse:this.messages.collapse,expand:this.messages.expand}} @calciteFlowItemBack=${this._handleFeatureBack} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} .heading=${!l&&u?S(u):void 0} ${g(this._rootFlowItemNode)}>${!l&&u?o`<div slot=heading><div .innerHTML=${M.sanitize(u??"")??""}></div></div>`:null}${this._renderHeaderActions()}${this._renderActionBar()}<div class=${C(I("container","content-container",{"content-hidden":w}))}>${this._renderContent()}</div>${this._renderFooter()}</calcite-flow-item>`}_renderFeatureMenuContainer(){let{viewModel:e,hideCloseButton:t,featureMenuTitle:a,messages:i,initialDisplayMode:s,featureMenuOpen:n,_featureFlowItemSelected:r,_collapseEnabled:d,_isCollapsed:l,featureNavigationTop:h,headingLevel:f}=this,{active:F,featureItems:u,pendingPromisesCount:w}=e,x=a??i.selectFeature;if(s==="feature"&&!n)return null;let $=!r;return o`<calcite-flow-item class=${C(I({"flow-item-collapsed":l}))} .closable=${s==="list"&&!t} .closed=${!F} .collapsed=${s==="list"&&l} .collapseDirection=${h?"down":"up"} .collapsible=${s==="list"&&d} .messageOverrides=${{collapse:this.messages.collapse,expand:this.messages.expand}} .description=${this.hideFeatureMenuHeading?void 0:m(i.total??"",{total:u.length})} .heading=${this.hideFeatureMenuHeading?void 0:x} .headingLevel=${f} .loading=${e.waitingForContents} .selected=${$} @calciteFlowItemBack=${j=>{j.preventDefault(),this._handleFeatureMenuBack()}} @calciteFlowItemClose=${this._handleClose} @calciteFlowItemToggle=${this._handleCollapseToggle} ${g(this._featureMenuViewportNode)}>${s==="list"?this._renderHeaderActions():null}${w>0?o`<calcite-loader class="loader" inline .label=${i.loading??""} slot=header-actions-end></calcite-loader>`:null}<div class="container">${$?this._renderFeatureMenu():null}</div><div class="feature-menu-observer" ${g(this._featureMenuIntersectionObserverCreated)}></div>${s==="feature"?o`<calcite-button scale=s appearance=transparent @click=${this._handleFeatureMenuBack} slot=footer-start width=full>${i.back}</calcite-button>`:null}</calcite-flow-item>`}_renderFlowItem(e,t){let{messages:a,hideCloseButton:i,hideSelectFeature:s,active:n,hideHeading:r}=this,d="graphic"in e&&"isFeatureFromTable"in e&&!e.isFeatureFromTable,l=d&&!s,h=e.flowType==="feature-association",f=a.returnToInitialFeature??"",F=a?.selectFeature,u=this._getActionTitle(this._zoomToFeature),w=!this.hideActionBar&&h&&d,x=e.flowType==="feature"&&this.viewModel.aggregatedFeaturesEnabled?o`<div class="footer" slot=footer>${this._renderPagination(()=>{this._aggregatedFeaturesComponent.value?.previous()},()=>{this._aggregatedFeaturesComponent.value?.next()})}${this._renderFeaturePaginationText(this._aggregatedFeatureCount,this._selectedAggregatedFeatureIndex)}</div>`:null;return o`<calcite-flow-item .closable=${!i} .closed=${!n} class="flow-item-drill-in" .description=${S(this._getDrillInFlowItemDescription(e)??"")} .heading=${r?void 0:S(e.heading??"")} .selected=${t} @calciteFlowItemBack=${$=>{$.preventDefault(),this._handleDrillInBackClick()}} .loading=${!!this._openRelatedFeatureAbortController} @calciteFlowItemClose=${this._handleClose}>${r?null:o`<div slot=heading><div .innerHTML=${M.sanitize(e.heading??"")??""}></div></div>`}<div slot=description><div .innerHTML=${M.sanitize(this._getDrillInFlowItemDescription(e)??"")??""}></div></div><calcite-action class="action-exit" icon=move-up @click=${this._removeFlowItems} slot=header-actions-start .text=${f??""} title=${f??""??p}></calcite-action>${l?o`<calcite-action icon=zoom-to-object @click=${()=>this._openRelatedFeature(e)} slot=header-actions-end .text=${F??""} title=${F??p}></calcite-action>`:null}${w?o`<calcite-action-bar expand-disabled expanded scale=s slot=action-bar><calcite-action-group overlay-positioning=fixed scale=s><calcite-action .disabled=${this._zoomToFeature.disabled} .icon=${this._zoomToFeature.icon??void 0} .loading=${this._zoomToFeature.active} scale=s text-enabled .text=${u} title=${u??p} @click=${()=>V(this.viewModel,this._zoomToFeature,e)}></calcite-action></calcite-action-group></calcite-action-bar>`:null}<div class="container">${e}</div>${x}</calcite-flow-item>`}_renderContentContainer(){let e=this.flowItems?.toArray(),t=e.length>0,a=this.viewModel.aggregatedFeaturesEnabled&&this.viewModel.selectedFeature?.isAggregate&&!t,i=a&&e.length===0,s=e.length===0&&this._featureFlowItemSelected&&!a,n=e?.map((l,h)=>this._renderFlowItem(l,this._featureFlowItemSelected&&h===e.length-1)),r=this._renderBrowseAggregateContainer(!!i),d=this.initialDisplayMode==="list"?[this._renderFeatureMenuContainer(),this._renderContentFeature(s)]:[this._renderContentFeature(s),this._renderFeatureMenuContainer()];return o`<calcite-flow ${g(this._flowContainerNode)}>${d}${r}${n}</calcite-flow>`}_renderBrowseAggregateContainer(e){let{hideCloseButton:t,active:a,messages:i}=this,{selectedFeature:s}=this.viewModel;return this.viewModel.aggregatedFeaturesEnabled&&s?.isAggregate?o`<calcite-flow-item .selected=${e} .closable=${!t} .closed=${!a} .description=${this._aggregatedFeatureCount?m(i.total??"",{total:this._aggregatedFeatureCount}):""} .heading=${i.aggregatedFeatures} @calciteFlowItemBack=${n=>{n.preventDefault(),this.viewModel.aggregatedFeaturesEnabled=!1}} .loading=${this._aggregatedFeaturesLoading} @calciteFlowItemClose=${this._handleClose}><arcgis-aggregated-features .autoDestroyDisabled=${this.autoDestroyDisabled} .feature=${s??void 0} .flowItems=${this.flowItems} .map=${this.map??void 0} .messages=${i} @arcgisPropertyChange=${this._handleAggregatedFeaturesPropertyChange} .spatialReference=${this.spatialReference??void 0} .timeZone=${this.timeZone??void 0} .view=${this.view??void 0} ${g(this._aggregatedFeaturesComponent)}></arcgis-aggregated-features><calcite-button appearance=transparent @click=${()=>this.viewModel.aggregatedFeaturesEnabled=!1} slot=footer-start scale=s width=full>${i.back}</calcite-button></calcite-flow-item>`:null}_renderActionBar(){let e=this.viewModel.selectedFeatureItem?.isFeatureFromTable,t=this.viewModel.allActions.toArray(),a=e&&!this.location?t.filter(s=>s.id!==this._zoomToFeature.id):t,i=!!a.length||this._hasActionsStartSlotContent||this._hasActionsEndSlotContent;return!this._isCollapsed&&!this.hideActionBar&&i?o`<calcite-action-bar expand-disabled .expanded=${!this._hideActionText} scale=s slot=action-bar><slot name=actions-start @slotchange=${this._handleActionsStartSlotChange}></slot><calcite-action-group overlay-positioning=fixed scale=s ${g(this._actionBarMenuNode)}>${this._renderActions(a)}</calcite-action-group><slot name=actions-end @slotchange=${this._handleActionsEndSlotChange}></slot></calcite-action-bar>`:null}_renderActions(e){return e.map(t=>{let a=this._getActionTitle(t);return o`<calcite-action .active=${t.type==="toggle"?t.value:!1} .disabled=${t.disabled} .icon=${t.icon??void 0} .loading=${t.active} scale=s .textEnabled=${!this._hideActionText} .text=${a??""} title=${a??p} .hidden=${!t.visible} @click=${()=>this._triggerAction(t)}></calcite-action>`})}_renderContent(){let{content:e,selectedFeatureItem:t}=this.viewModel;return t?o`<arcgis-feature-next .autoDestroyDisabled=${this.autoDestroyDisabled} .chartAnimationDisabled=${this.chartAnimationDisabled} .defaultPopupTemplateEnabled=${this.defaultPopupTemplateEnabled} .flowItems=${this.flowItems} .graphic=${t.graphic} .headingLevel=${this.headingLevel+1} .hideAttachmentsContent=${this.hideAttachmentsContent} .hideContent=${this.hideContent} .hideCustomContent=${this.hideCustomContent} .hideExpressionContent=${this.hideExpressionContent} .hideFieldsContent=${this.hideFieldsContent} hide-heading .hideLastEditedInfo=${this.hideLastEditedInfo} .hideMediaContent=${this.hideMediaContent} .hideTextContent=${this.hideTextContent} .location=${this.location} .map=${this.map} .referenceElement=${this.referenceElement} .showRelationshipContent=${!this.hideRelationshipContent} .showUtilityNetworkContent=${!this.hideUtilityNetworkContent} .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} ${g(this._selectedFeatureComponent)}></arcgis-feature-next>`:typeof e=="string"?D(e,o`<div .innerHTML=${M.sanitize(e)??""}></div>`):e??null}};R("arcgis-features-next",N);return N},"support/actions/ActionButton","core/Collection","popup/Features","applications/Components/featureUtils","applications/Components/sanitizerUtils","applications/Components/stringUtils","intl","core/reactiveUtils",a,c,d,e,f,h,i,j)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import{a as h}from"./KTXZR4IK.js";import{N as n,O as o,P as r,U as d,a as s,b as a,x as l}from"./IXZEUVT2.js";import"./H6RQVSYM.js";var f=s`.label{--calcite-label-margin-bottom: 0}.label-content{display:flex;flex:1;gap:var(--calcite-spacing-sm);align-items:center;text-wrap:balance}.label-content>div{flex-grow:1}.icon{margin-top:-1px;&.info{color:var(--calcite-color-status-info)}&.warning{color:var(--calcite-color-status-warning)}}.tooltip{text-wrap:wrap}`,c=class extends o{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.hintKind="info",this.arcgisCheckedChanged=l()}static{this.properties={checked:7,disabled:7,label:1,hint:1,hintIcon:1,hintKind:1}}static{this.styles=f}async destroy(){await this.manager.destroy()}_setIconRef(e){this._icon=e,this.requestUpdate()}render(){let{label:e,hint:i,hintKind:p,hintIcon:b,checked:m,disabled:g}=this;return a`<calcite-label class="label" layout=inline-space-between scale=s>${i?h("label-content",a`<div class="label-content"><div>${e}</div><calcite-icon class=${r(p!=="warning"?"icon info":"icon warning")} .icon=${b??"information"} @click=${t=>t.stopPropagation()} .textLabel=${i} scale=s tabindex=0 ${n(this._setIconRef)}></calcite-icon><calcite-tooltip id=labeledSwitchTooltip class="tooltip" overlay-positioning=fixed .referenceElement=${this._icon??void 0}>${i}</calcite-tooltip></div>`):e}<calcite-switch .checked=${m} .disabled=${g} scale=s .name=${e} @calciteSwitchChange=${t=>{this.checked=t.target.checked,this.arcgisCheckedChanged.emit(t.target.checked)}}></calcite-switch></calcite-label>`}};d("arcgis-labeled-switch",c);export{c as LabeledSwitch};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
2
+ import{a as w}from"./KTXZR4IK.js";import{a as b}from"./H47NPYUM.js";import c from"./ZUXQKICJ.js";import{h as $}from"./JCTU3MST.js";import"./BXKNMJRR.js";import a from"./FT7ETWDM.js";import"./IJQZON2Z.js";import{M as _,N as M,O as v,Q as u,R as g,U as f,V as y,a as p,b as r,x as S}from"./IXZEUVT2.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:T},R,,{a:L}])=>{var m=new Set(["ar-iq","ar-kw","bg-bg","cs-cz","da-dk","da-gl","de-at","de-ch","de-de","de-li","el-gr","en-ae","en-au","en-ca","en-eg","en-gb","en-hk","en-id","en-ie","en-il","en-in","en-iq","en-ke","en-lu","en-mo","en-my","en-nz","en-rw","en-sg","en-us","en-vi","en-wo","en-za","es-ar","es-bo","es-cl","es-co","es-cr","es-es","es-gt","es-mx","es-ni","es-pe","es-pr","es-sv","es-ve","et-ee","fi-fi","fr-ci","fr-fr","fr-ma","fr-mg","fr-ml","fr-tn","is-is","it-it","ja-jp","ko-kr","lt-lt","lv-lv","nl-be","nl-nl","nl-sr","nn-no","pl-pl","pt-br","pt-pt","ro-ro","ru-ru","sk-sk","sv-se","th-th","zh-cn","zh-tw"]),P={ar:"iq",bg:"bg",cs:"cz",da:"dk",de:"de",el:"gr",en:"us",es:"es",et:"ee",fi:"fi",fr:"fr",is:"is",it:"it",ja:"jp",ko:"kr",lt:"lt",lv:"lv",nl:"nl",nn:"no",pl:"pl",pt:"br",ro:"ro",ru:"ru",sk:"sk",sv:"se",th:"th",zh:"cn"},k=p`:host{display:block;width:310px;max-width:100%}.slider{height:50px}.scale-indicator-container{position:relative;width:100%;margin-top:2px}.scale-indicator-icon{transform:scale(.8,1.7);margin-left:-6px;width:1px;--calcite-icon-color: var(--calcite-color-text-3)}.scale-menu-list{max-height:220px;overflow-y:auto}.scale-menu-input{max-width:120px}.scale-menu-button-container{display:flex;direction:ltr;justify-content:space-between}.scale-menu-button{min-width:0}:dir(rtl) .scale-menu-button-container>*{direction:rtl}.preview-container{padding:6px;background-color:var(--calcite-color-foreground-1);box-shadow:0 1px 2px #0000004d}`,l=[{id:"world",scale:147914382,minScale:147914382,maxScale:1e8},{id:"continent",scale:5e7,minScale:99999999,maxScale:35e6},{id:"countriesBig",scale:25e6,minScale:34999999,maxScale:15e6},{id:"countriesSmall",scale:12e6,minScale:14999999,maxScale:7e6},{id:"statesProvinces",scale:6e6,minScale:6999999,maxScale:4e6},{id:"stateProvince",scale:3e6,minScale:3999999,maxScale:2e6},{id:"counties",scale:15e5,minScale:1999999,maxScale:1e6},{id:"county",scale:75e4,minScale:999999,maxScale:5e5},{id:"metropolitanArea",scale:32e4,minScale:499999,maxScale:25e4},{id:"cities",scale:16e4,minScale:249999,maxScale:12e4},{id:"city",scale:8e4,minScale:119999,maxScale:6e4},{id:"town",scale:4e4,minScale:59999,maxScale:3e4},{id:"neighborhood",scale:2e4,minScale:29999,maxScale:15e3},{id:"streets",scale:1e4,minScale:14999,maxScale:7500},{id:"street",scale:5e3,minScale:7499,maxScale:4e3},{id:"buildings",scale:2500,minScale:3999,maxScale:2e3},{id:"building",scale:1250,minScale:1999,maxScale:801},{id:"smallBuilding",scale:800,minScale:800,maxScale:401},{id:"rooms",scale:400,minScale:400,maxScale:101},{id:"room",scale:100,minScale:100,maxScale:0}],x=class extends v{constructor(){super(...arguments),this.messages=b(),this._sliderRef=_(),this._activeMenu=null,this._customScaleSelected=null,this._portalRegion=null,this._layerMaxScaleLimit=l[l.length-1].maxScale,this._layerMinScaleLimit=l[0].minScale,this.autoDestroyDisabled=!1,this.disabled=!1,this.hidePreview=!1,this.hideMaxScaleMenu=!1,this.hideMinScaleMenu=!1,this.icon="actual-size",this.maxScale=0,this.maxScaleLimit=l[l.length-1].maxScale,this.minScale=0,this.minScaleLimit=l[0].minScale,this.mode="range",this.showWorldValue=!1,this.view=L(this),this.arcgisChange=S(),this.arcgisInput=S(),this.arcgisPropertyChange=$()("state","minScale","maxScale"),this.arcgisReady=S()}static{this.properties={_activeMenu:16,_customScaleSelected:16,_portalRegion:16,_layerMaxScaleLimit:16,_layerMinScaleLimit:16,autoDestroyDisabled:5,disabled:7,hidePreview:5,hideMaxScaleMenu:5,hideMinScaleMenu:5,icon:1,label:1,layer:0,maxScale:9,maxScaleLimit:9,minScale:9,minScaleLimit:9,mode:1,referenceElement:1,region:1,showWorldValue:5,state:32,view:0}}static{this.styles=k}get state(){let{view:e,layer:a}=this;return!e&&!a||!e&&a?.loadStatus==="loaded"||!a&&e?.ready||e?.ready&&a?.loadStatus==="loaded"?"ready":"disabled"}async destroy(){await this.manager.destroy()}willUpdate(e){if((e.has("maxScaleLimit")||e.has("minScaleLimit"))&&(this.minScaleLimit===0&&(this.minScaleLimit=l[0].minScale),this.maxScaleLimit===0&&(this.maxScaleLimit=l[l.length-1].maxScale),this.minScaleLimit=Math.min(this.minScaleLimit,l[0].minScale),this.maxScaleLimit=Math.max(this.maxScaleLimit,l[l.length-1].maxScale),this.minScale!==0&&(this.minScale=Math.min(this.minScale,this._interactiveMinScale)),this.maxScale!==0&&(this.maxScale=Math.max(this.maxScale,this._interactiveMaxScale)),this.hasUpdated&&this._syncLayerScale()),e.has("maxScale")||e.has("minScale")){if(this.minScale!==0){let a=this._clampScale("min",this.minScale);this.minScale=a===this.minScaleLimit?0:a}if(this.maxScale!==0){let a=this._clampScale("max",this.maxScale);this.maxScale=a===this.maxScaleLimit?0:a}}e.has("layer")&&(this.layer?this.layer.load().catch(()=>{}):(this._layerMinScaleLimit=l[0].minScale,this._layerMaxScaleLimit=l[l.length-1].maxScale)),e.has("mode")&&(this.mode==="max-scale-only"?this.minScale=0:this.mode==="min-scale-only"&&(this.maxScale=0),e.get("mode")!==void 0&&this._syncLayerScale())}loaded(){R.getDefault().load().then(e=>{let a=e.user?.culture??e.culture;a&&(this._portalRegion=a.split("-")[1]?.toLowerCase()??null)}).catch(()=>{}),this.manager.onLifecycle(()=>[T(()=>this.view?.scale,()=>this.requestUpdate(),{initial:!0}),T(()=>({loaded:this.layer?.loadStatus==="loaded",ready:this.view?.ready}),({loaded:e,ready:a})=>{if(!e||!a||!this.layer)return;this._layerMinScaleLimit=l[0].minScale,this._layerMaxScaleLimit=l[l.length-1].maxScale;let t=this.layer.type==="wcs"||this.layer.type==="imagery-tile"&&this.layer.raster?.tileType==="Raster"?null:"tileInfo"in this.layer?this.layer.tileInfo?.lods:null;if(t)!("resampling"in this.layer)||this.layer.resampling||(this._layerMinScaleLimit=t[0].scale===0?l[0].minScale:Math.min(l[0].minScale,t[0].scale),this._layerMaxScaleLimit=t[t.length-1].scale);else{let s=this.layer&&"maxScaleRange"in this.layer?this.layer.maxScaleRange:null,c=0,n=0;s&&(c=s.minScale,n=s.maxScale),n!==0&&(this._layerMaxScaleLimit=n),c!==0&&(this._layerMinScaleLimit=c)}let i=this.layer;i&&"minScale"in i&&"maxScale"in i&&(i.minScale!==0&&this.minScale===0&&(this.minScale=Math.min(i.minScale,this._interactiveMinScale)),i.maxScale!==0&&this.maxScale===0&&(this.maxScale=Math.max(i.maxScale,this._interactiveMaxScale)))},{initial:!0})])}get _interactiveMinScale(){return Math.min(this.minScaleLimit,this._layerMinScaleLimit)}get _interactiveMaxScale(){return Math.max(this.maxScaleLimit,this._layerMaxScaleLimit)}get _effectiveMinScale(){return this.minScale===0?this._interactiveMinScale:this.minScale}get _effectiveMaxScale(){return this.maxScale===0?this._interactiveMaxScale:this.maxScale}get _sliderFullRangeMin(){return this._mapScaleToSlider(this.minScaleLimit)}get _sliderFullRangeMax(){return this._mapScaleToSlider(this.maxScaleLimit)}_clampScale(e,a){return e==="min"?Math.min(Math.max(a,this._effectiveMaxScale+1),this._interactiveMinScale):Math.max(Math.min(a,this._effectiveMinScale-1),this._interactiveMaxScale)}_getDropdownLabel(e){let a=e==="min"?this._effectiveMinScale:this._effectiveMaxScale,t=Math.floor(this._mapScaleToSlider(a)),i=this.messages.scaleRangeLabels;return i?i[l[t].id]:""}_getSpriteSheetFile(){if(this.region){let t=this.region.toLowerCase(),i=`${this.messages._t9nLocale}-${t}`;if(m.has(i))return i;for(let s of m)if(s.endsWith(`-${t}`))return s}let e=this.messages._lang.toLowerCase();if(m.has(e))return e;if(this._portalRegion){let t=`${this.messages._t9nLocale}-${this._portalRegion}`;if(m.has(t))return t}let a=P[this.messages._t9nLocale];if(a){let t=`${this.messages._t9nLocale}-${a}`;if(m.has(t))return t}for(let t of m)if(t.startsWith(`${this.messages._t9nLocale}-`))return t;return"en-wo"}_handleCustomScaleInput(e,a){let t=Number.parseFloat(a);this._setScale(e,t)}_handleSliderThumbDrag(){let e=this._sliderRef.value;if(e){if(this.mode==="max-scale-only"){let a=Math.max(this._mapSliderToScale(e.values[0]),this._interactiveMaxScale);this.maxScale=a===this._interactiveMaxScale?0:a}else if(this.mode==="min-scale-only"){let a=Math.min(this._mapSliderToScale(e.values[0]),this._interactiveMinScale);this.minScale=a===this._interactiveMinScale?0:a}else{let a=Math.min(this._mapSliderToScale(e.values[0]),this._interactiveMinScale),t=Math.max(this._mapSliderToScale(e.values[1]),this._interactiveMaxScale);this.minScale=a===this._interactiveMinScale?0:a,this.maxScale=t===this._interactiveMaxScale?0:t}this._syncLayerScale()}}_mapScaleToSlider(e){let a=Math.min(l[0].minScale,Math.max(l[l.length-1].maxScale,e)),t=l.findIndex(n=>a>=n.maxScale&&a<=n.minScale),i=l[t],s=t,c=t+.9999;return i?s+(a-i.minScale)*(c-s)/(i.maxScale-i.minScale):0}_mapSliderToScale(e){let a=Math.min(l.length-1,Math.max(0,Math.floor(e))),{maxScale:t,minScale:i}=l[a],s=a,c=s+.9999;return i+(e-s)*(t-i)/(c-s)}_setScale(e,a){e==="min"?this.minScale=a===0?0:this._clampScale("min",a):this.maxScale=a===0?0:this._clampScale("max",a),this._syncLayerScale(),this._activeMenu=null}_syncLayerScale(){this.layer&&"minScale"in this.layer&&"maxScale"in this.layer&&(this.layer.minScale=this.mode==="max-scale-only"?0:this._effectiveMinScale,this.layer.maxScale=this.mode==="min-scale-only"?0:this._effectiveMaxScale)}_renderScalePreviewPopover(){let e=this._renderScalePreview();return this.hidePreview||!e?null:r`<div slot=popover>${e}</div>`}render(){let e=this._mapScaleToSlider(this._interactiveMinScale),a=this._mapScaleToSlider(this._interactiveMaxScale),t=this._sliderFullRangeMin,i=this._sliderFullRangeMax;return r`<div><arcgis-slider class="slider" .disabled=${this.disabled} layout=horizontal .fillPlacement=${this.mode==="max-scale-only"?"start":this.mode==="min-scale-only"?"end":void 0} .fullRangeMin=${t<e?t:void 0} .fullRangeMax=${i>a?i:void 0} .max=${a} .min=${e} .labelFormatter=${(s,c,n)=>n(Math.round(this._mapSliderToScale(s)))} .values=${this.mode==="max-scale-only"?[this._mapScaleToSlider(this._effectiveMaxScale)]:this.mode==="min-scale-only"?[this._mapScaleToSlider(this._effectiveMinScale)]:[this._mapScaleToSlider(this._effectiveMinScale),this._mapScaleToSlider(this._effectiveMaxScale)]} @arcgisInput=${this._handleSliderThumbDrag} ${M(this._sliderRef)}>${this._renderScalePreviewPopover()}${this.view?.scale!=null&&this._renderCurrentScaleIndicator(this.view.scale)||""}</arcgis-slider><div class="scale-menu-button-container" slot=content-end>${this.mode!=="max-scale-only"&&!this.hideMinScaleMenu?[this._renderScaleMenuButtons("min"),this._renderScaleMenuPopover("min")]:r`<div></div>`}${this.mode!=="min-scale-only"&&!this.hideMaxScaleMenu&&[this._renderScaleMenuButtons("max"),this._renderScaleMenuPopover("max")]||""}</div></div>`}_renderCurrentScaleIndicator(e){let a=this._sliderFullRangeMin,t=this._sliderFullRangeMax-a,i=Math.min(100,Math.max(0,(this._mapScaleToSlider(e)-a)/t*100));return w("scale-indicator",r`<div class="scale-indicator-container" slot=content-end><div class="scale-indicator-icon" style=${u({position:"absolute",left:`${i}%`})} .title=${`${this.messages.currentScale} 1:${Math.round(e).toLocaleString(this.messages._t9nLocale)}`}><calcite-icon icon=caret-up scale=s></calcite-icon></div></div>`)}_renderCustomScaleValue(e,a){let t=Math.round(a).toString();return r`<calcite-list-item .label=${this.messages?.featuredScaleLabels?.custom} .selected=${this._customScaleSelected===e} @calciteListItemSelect=${i=>{let s=i.target.querySelector("calcite-input-number");this._handleCustomScaleInput(e,s?.value??""),this._customScaleSelected=e}}><calcite-input-number dir=ltr class="scale-menu-input" slot=content-end group-separator inputmode=numeric .max=${l[0].minScale} .min=${l[l.length-1].maxScale} number-button-type=none .placeholder=${this.messages?.customScaleInputTooltip} prefix-text=1: scale=s step=1 .value=${t} @click=${i=>i.stopPropagation()} @keydown=${i=>{i.key==="Enter"&&(this._handleCustomScaleInput(e,i.target.value),this._customScaleSelected=e,i.stopPropagation())}}></calcite-input-number></calcite-list-item>`}_renderScaleMenuButtons(e){return r`<calcite-button .disabled=${this.disabled} class="scale-menu-button" .id=${`scale-menu-button-${e}`} icon-end=chevron-down scale=s .appearance=${this._activeMenu===e?"outline":"transparent"}>${this._getDropdownLabel(e)}</calcite-button>`}_renderScaleMenuPopover(e){return r`<calcite-popover auto-close .label=${`${e==="min"?"Min":"Max"} scale menu`} .referenceElement=${`scale-menu-button-${e}`} .placement=${e==="max"?"bottom-end":"bottom-start"} .open=${this._activeMenu===e} scale=s @calcitePopoverOpen=${()=>this._activeMenu=e} @calcitePopoverClose=${()=>{this._activeMenu===e&&(this._activeMenu=null)}}>${this._renderScaleMenu(e)}</calcite-popover>`}_renderScaleMenu(e){let a=Math.floor(this._mapScaleToSlider(this._effectiveMaxScale)),t=Math.floor(this._mapScaleToSlider(this._effectiveMinScale)),i=e==="min"?this._effectiveMinScale:this._effectiveMaxScale,s=this.messages.featuredScaleLabels;if(!s)return;let c=Math.floor(this._mapScaleToSlider(this._interactiveMaxScale)),n=Math.floor(this._mapScaleToSlider(this._interactiveMinScale)),d=l.filter((o,h)=>e==="min"?h<a&&h>=n:h>t&&h<=c).map(o=>this._renderScaleMenuItem({scaleLabel:s[o.id],scaleValue:o.scale,isSelected:i===o.scale,valueVisible:o.id!=="world"||this.showWorldValue,type:e}));return r`<calcite-list label="Scale Menu List" scale=s class="scale-menu-list" selection-appearance=icon selection-mode=single-persist>${this.view?.scale!=null&&this._renderCustomScaleValue(e,i)||""}${this.view?.scale!=null?this._renderScaleMenuItem({scaleValue:this.view.scale,scaleLabel:s.current,isSelected:i===this.view.scale,valueVisible:!0,type:e}):null}${d}</calcite-list>`}_renderScaleMenuItem(e){let{scaleValue:a,scaleLabel:t,isSelected:i,valueVisible:s}=e,c=a===l[0].scale?` ${this.messages.aboveSuffix}`:a===l[l.length-1].scale?` ${this.messages.belowSuffix}`:"";return r`<calcite-list-item .label=${t} .selected=${i&&this._customScaleSelected!==e.type} .description=${s?`1:${Math.round(a).toLocaleString(this.messages._t9nLocale)}${c}`:void 0} @calciteListItemSelect=${()=>{this._setScale(e.type,a),this._customScaleSelected=null}}></calcite-list-item>`}_renderScalePreview(){let e=this._sliderRef.value?.activeValue;if(typeof e!="number")return null;let a=Math.min(l.length-1,Math.max(0,Math.floor(e))),t=5,i=128,s=i*(a%t),c=i*Math.floor(a/t),n=`-${s}px -${c}px`,d=this._getSpriteSheetFile();return r`<div class="preview-container"><img src=${y(`./assets/slider-scale-range/images/${d}.avif`)??g} style=${u({display:"block",height:`${i}px`,width:`${i}px`,objectPosition:n,objectFit:"none"})}></div>`}};f("arcgis-slider-scale-range",x);return x},"core/reactiveUtils","portal/Portal",a,c)
@@ -1 +1 @@
1
- {"componentLabel":"Print","title":"Title","fileName":"File name","titlePlaceHolder":"Title of file","fileNamePlaceHolder":"File name","formatDefaultOption":"Select format","fileFormatTitle":"File format","layoutTitle":"Page setup","layoutDefaultOption":"Select page setup","scale":"Set scale","scaleLabel":"scale","reset":"reset","author":"Author","copyright":"Copyright","legend":"Include legend","lock":"lock","swap":"swap","panelToggle":"Panel toggle","advancedOptions":"Advanced options","width":"Width","height":"Height","dpi":"DPI","attribution":"Include attribution","northArrow":"Include north arrow","scaleBar":"Include scale bar","outSpatialReference":"Output spatial reference","invalidWkid":"Invalid WKID","layoutTab":"Layout","mapOnlyTab":"Map only","printPreview":"Show print area","browseTemplates":"Browse templates","untitled":"untitled","pending":"Exporting","ready":"Open this","linkReady":"Open in new window.","errorMessage":"Select this to remove it.","exportWebMapError":"An error occurred while exporting the web map.","exportWebMapCIMError":"CIMSymbol is not supported by a print service published from ArcMap.","exportedLinksList":"Exported links","sceneViewError":"Printing is not supported in SceneView.","noViewError":"An assigned view is required to print.","serviceError":"There seems to have been an error.","export":"Export","delete":"Delete","options":"Options","exportDescription":"Export. Exported files will appear below.","noExportedFiles":"No exported files","exportsTab":"Exports","selectTemplate":"Select template","selectTemplateDescription":"Using a template will apply its values","exportHint":"When you export a file, it will be shown here. Exports are only stored for a short period of time. Download your export to ensure continued access.","template":"Template","a3-landscape":"A3 landscape","a3-portrait":"A3 portrait","a4-landscape":"A4 landscape","a4-portrait":"A4 portrait","letter-ansi-a-landscape":"Letter ANSI A landscape","letter-ansi-a-portrait":"Letter ANSI A portrait","tabloid-ansi-b-landscape":"Tabloid ANSI B landscape","tabloid-ansi-b-portrait":"Tabloid ANSI B portrait","defaultTemplates":"Default templates","organizationTemplates":"Organization templates","chooseTemplate":"Choose template","templateList":"Templates","generatingExport":"Generating export","consumesCredits":"Consumes credits","credits":"credits","templatesNoLongerAvailable":"Templates are no longer available","templatesNoLongerAvailableDescription":"One or more of your custom templates are no longer available.","myTemplates":"My templates","saveExportToMyContent":"Save export to My Content","saveAs":"Save as","openItem":"Open item","forceFeatureAttributes":"Feature attributes","includeTables":"Include tables","scaleBarUnit":"Scale bar unit","dynamicLegend":"Dynamic legend","loading":"Loading","miles":"Miles","kilometers":"Kilometers","meters":"Meters","feet":"Feet","yards":"Yards","nautical-miles":"Nautical miles","milesAndKilometers":"Miles and Kilometers","feetAndMeters":"Feet and Meters","outOfCredits":"Out of credits","outOfCreditsDescription":"Your organization has used all available credits and could enter restricted status.","customerService":"Customer service","contactCustomerService":"Please contact {customerService} for assistance.","restrictedStatus":"Restricted status","restrictedStatusDescription":"Your ArcGIS Online organization is in restricted status because all available credits have been used.","suspendedStatus":"Suspended status","suspendedStatusDescription":"Your subscription has been disabled because you consumed all your {credits} or your subscription expired."}
1
+ {"componentLabel":"Print","title":"Title","fileName":"File name","titlePlaceHolder":"Title of file","fileNamePlaceHolder":"File name","formatDefaultOption":"Select format","fileFormatTitle":"File format","layoutTitle":"Page setup","layoutDefaultOption":"Select page setup","scale":"Set scale","scaleLabel":"scale","reset":"reset","author":"Author","copyright":"Copyright","legend":"Include legend","lock":"lock","swap":"swap","panelToggle":"Panel toggle","advancedOptions":"Advanced options","width":"Width","height":"Height","dpi":"DPI","attribution":"Include attribution","northArrow":"Include north arrow","scaleBar":"Include scale bar","outSpatialReference":"Output spatial reference","datumTransformations":"Datum transformations","invalidWkid":"Invalid WKID","layoutTab":"Layout","mapOnlyTab":"Map only","printPreview":"Show print area","browseTemplates":"Browse templates","untitled":"untitled","pending":"Exporting","ready":"Open this","linkReady":"Open in new window.","errorMessage":"Select this to remove it.","exportWebMapError":"An error occurred while exporting the web map.","exportWebMapCIMError":"CIMSymbol is not supported by a print service published from ArcMap.","exportedLinksList":"Exported links","sceneViewError":"Printing is not supported in SceneView.","noViewError":"An assigned view is required to print.","serviceError":"There seems to have been an error.","export":"Export","delete":"Delete","options":"Options","exportDescription":"Export. Exported files will appear below.","noExportedFiles":"No exported files","exportsTab":"Exports","selectTemplate":"Select template","selectTemplateDescription":"Using a template will apply its values","exportHint":"When you export a file, it will be shown here. Exports are only stored for a short period of time. Download your export to ensure continued access.","template":"Template","a3-landscape":"A3 landscape","a3-portrait":"A3 portrait","a4-landscape":"A4 landscape","a4-portrait":"A4 portrait","letter-ansi-a-landscape":"Letter ANSI A landscape","letter-ansi-a-portrait":"Letter ANSI A portrait","tabloid-ansi-b-landscape":"Tabloid ANSI B landscape","tabloid-ansi-b-portrait":"Tabloid ANSI B portrait","defaultTemplates":"Default templates","organizationTemplates":"Organization templates","chooseTemplate":"Choose template","templateList":"Templates","generatingExport":"Generating export","consumesCredits":"Consumes credits","credits":"credits","templatesNoLongerAvailable":"Templates are no longer available","templatesNoLongerAvailableDescription":"One or more of your custom templates are no longer available.","myTemplates":"My templates","saveExportToMyContent":"Save export to My Content","saveAs":"Save as","openItem":"Open item","forceFeatureAttributes":"Feature attributes","includeTables":"Include tables","scaleBarUnit":"Scale bar unit","dynamicLegend":"Dynamic legend","loading":"Loading","miles":"Miles","kilometers":"Kilometers","meters":"Meters","feet":"Feet","yards":"Yards","nautical-miles":"Nautical miles","milesAndKilometers":"Miles and Kilometers","feetAndMeters":"Feet and Meters","outOfCredits":"Out of credits","outOfCreditsDescription":"Your organization has used all available credits and could enter restricted status.","customerService":"Customer service","contactCustomerService":"Please contact {customerService} for assistance.","restrictedStatus":"Restricted status","restrictedStatusDescription":"Your ArcGIS Online organization is in restricted status because all available credits have been used.","suspendedStatus":"Suspended status","suspendedStatusDescription":"Your subscription has been disabled because you consumed all your {credits} or your subscription expired."}