@arcgis/map-components 6.0.0-next.21 → 6.0.0-next.22

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 (36) hide show
  1. package/dist/cdn/{G56N6RF4.js → 2S6RQ6Q4.js} +1 -1
  2. package/dist/cdn/{FDESUDJ5.js → AIF4MCBB.js} +1 -1
  3. package/dist/cdn/CNJSDHZI.js +2 -0
  4. package/dist/cdn/{SDLZ4BNM.js → EVWWTIEQ.js} +1 -1
  5. package/dist/cdn/FRX4ZT35.js +2 -0
  6. package/dist/cdn/IQGL3AGV.js +2 -0
  7. package/dist/cdn/MW27GSDX.js +2 -0
  8. package/dist/cdn/{4LNXCEM5.js → NORQIOSX.js} +1 -1
  9. package/dist/cdn/PFMWLSWQ.js +2 -0
  10. package/dist/cdn/{WTAAQHO3.js → TM4FFRX5.js} +1 -1
  11. package/dist/cdn/index.js +1 -1
  12. package/dist/components/arcgis-basemap-layer-list-next/customElement.js +88 -86
  13. package/dist/components/arcgis-daylight/customElement.js +2 -1
  14. package/dist/components/arcgis-layer-list-item-indicator/customElement.js +2 -2
  15. package/dist/components/arcgis-layer-list-item-panel/customElement.js +9 -9
  16. package/dist/components/arcgis-layer-list-next/customElement.js +97 -95
  17. package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +5 -5
  18. package/dist/components/arcgis-sketch/customElement.d.ts +308 -30
  19. package/dist/components/arcgis-sketch/customElement.js +47 -20
  20. package/dist/components/arcgis-table-list-next/customElement.js +55 -54
  21. package/dist/components/arcgis-time-slider/customElement.d.ts +2 -2
  22. package/dist/docs/api.json +1 -1
  23. package/dist/docs/docs.json +1 -1
  24. package/dist/docs/vscode.html-custom-data.json +1 -1
  25. package/dist/docs/web-types.json +1 -1
  26. package/dist/loader.js +1 -1
  27. package/dist/types/lumina.d.ts +1 -1
  28. package/dist/types/preact.d.ts +1 -1
  29. package/dist/types/react.d.ts +1 -1
  30. package/dist/types/stencil.d.ts +1 -1
  31. package/package.json +6 -6
  32. package/dist/cdn/ED2T4ASN.js +0 -2
  33. package/dist/cdn/MBLS5ES4.js +0 -2
  34. package/dist/cdn/PHVKEWZ7.js +0 -2
  35. package/dist/cdn/QKGJVGXJ.js +0 -2
  36. package/dist/cdn/UPCWZNTA.js +0 -2
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{a as P}from"./TMTFZSJS.js";import{a as K,e as L,f as E,g as C,h as A,i as pe,j as g,k as me}from"./IM6IDWYR.js";import{a as Z}from"./FH3WFF5O.js";import{a as J}from"./7V7LQ35Q.js";import{a as y}from"./6J3KSMFG.js";import c from"./BOPNSNUT.js";import"./WJQUE4DR.js";import"./VKO3CVBS.js";import{a as ge}from"./REB4CHAK.js";import"./L5IRXOCJ.js";import b from"./OLY5EME5.js";import"./Q7GF26CL.js";import"./U77WHUC6.js";import a from"./SI2DEXWH.js";import"./LXME6MU5.js";import{P as Y,Q as G,R as oe,U as V,X as U,_ as le,a as ae,b as p,x as F}from"./PQ7NUE5C.js";import"./TAVTDQ6S.js";export default $arcgis.t(([{watch:fe,when:ze,whenOnce:Ue},{getZonedDateTimeParts:O,createZonedDate:se,formatCalendarDate:Q},De,N,Pe,{createTrackingTarget:Ze,runTracked:_e,signal:Le},,{a:ue},{e:ce,f:de,g:he}])=>{function Te(s,e){return(s%e+e)%e}var ee=class{#t;#d;#h=Ze(()=>{this.#i()});constructor(e){this.#d=e;let t;_e(this.#h,()=>{t=e()}),this.#t=Le(t)}#i(){let e=this.#t.value;_e(this.#h,()=>{this.#t.value=this.#d(e)})}mutate(e){this.#t.value=e}get value(){return this.#t.value}};function W(s){return new ee(s)}var j=Math.PI,m=Math.sin,k=Math.cos,Ee=Math.asin,Ae=Math.acos,S=j/180,ke=1e3*60*60*24,Ce=2440588,$e=2451545;function Ne(s){return s.valueOf()/ke-.5+Ce}function I(s){return new Date((s+.5-Ce)*ke)}function Ie(s){return Ne(s)-$e}var be=S*23.4397;function He(s,e){return Ee(m(e)*k(be)+k(e)*m(be)*m(s))}function Re(s){return S*(357.5291+.98560028*s)}function je(s){return S*(1.9148*m(s)+.02*m(2*s)+3e-4*m(3*s))}function qe(s,e){var t=S*102.9372;return s+e+t+j}var D={};D.PolarException={NORMAL:0,MIDNIGHT_SUN:1,POLAR_NIGHT:2};var X=[[-.83,"sunrise","sunset"]],Oe=9e-4;function Be(s,e){return Math.round(s-Oe-e/(2*j))}function ve(s,e,t){return Oe+(s+e)/(2*j)+t}function we(s,e,t){return $e+s+.0053*m(e)-.0069*m(2*t)}function Fe(s,e,t){return Ae((m(s)-m(e)*m(t))/(k(e)*k(t)))}D.getTimes=function(s,e,t){var i=S*-t,r=S*e,n=Ie(s),a=Be(n,i),l=ve(0,i,a),o=Re(l),d=je(o),c=qe(o,d),h=He(c,0),u=we(l,o,c);function v(B){var z=Fe(B,r,h),Me=ve(z,i,a);return we(Me,o,c)}function x(B){var z=(m(B)-m(r)*m(h))/(k(r)*k(h));return z<-1?D.PolarException.MIDNIGHT_SUN:z>1?D.PolarException.POLAR_NIGHT:D.PolarException.NORMAL}var _={solarNoon:I(u),nadir:I(u-.5),polarException:D.PolarException.NORMAL},b,f,M,q,ne;for(b=0,f=X.length;b<f;b+=1)M=X[b],q=v(M[0]*S),ne=u-(q-u),_[M[1]]=I(ne),_[M[2]]=I(q);return _.polarException=x(X[0][0]*S),_};var Ye={spring:{dayOfMonth:20,month:2},summer:{dayOfMonth:21,month:5},fall:{dayOfMonth:23,month:8},winter:{dayOfMonth:21,month:11}},te=["spring","summer","fall","winter"];function $(s,e,t){let i=re(e,t),{dayOfMonth:r,month:n}=Ye[i],a=new Date(s.getTime());return a.setMonth(n,r),a}function Ge(s,e){let t=Ve(s);return re(t,e)}function Ve(s){let e=s.getTime(),t=$(s,"spring","northern").getTime(),i=$(s,"summer","northern").getTime(),r=$(s,"fall","northern").getTime(),n=$(s,"winter","northern").getTime();return e>=t&&e<i?"spring":e>=i&&e<r?"summer":e>=r&&e<n?"fall":"winter"}function re(s,e){return e==="northern"?s:Je(s)}function xe(s){return s>=0?"northern":"southern"}function Je(s){let e=te.indexOf(s);return te[(e+2)%4]}var Ke=1440,Qe=864e5;function T({hour:s,minute:e}){return s*60+e}function We(s){return{year:s.getUTCFullYear(),month:s.getUTCMonth()+1,day:s.getUTCDate()}}function Xe(s,e,t){let i=O(s,t);if(!i)return s;let r=new Date(s.getTime()+e),n=O(r,t);return!n||n.year===i.year&&n.month===i.month&&n.day===i.day?r:se(i,T(n),t)??r}function et(s,e){let t=O(s,e);if(!t)return s;let i=t.month%12+1,r=t.year+(i===1?1:0),n=new Date(Date.UTC(r,i,0)).getUTCDate();return se({year:r,month:i,day:Math.min(t.day,n)},T(t),e)??s}function tt(s,e,t,i){let r=D.getTimes(s,e,t),n=r.sunrise,a=r.sunset,l=E(s,i),o=E(n,i),d=E(a,i);if(l.getUTCDate()!==o.getUTCDate()||l.getUTCDate()!==d.getUTCDate()){let c=l.getTime()-o.getTime()>0?1:-1;n.setUTCDate(n.getUTCDate()+c),a.setUTCDate(a.getUTCDate()+c)}return{sunrise:n,sunset:a}}var it=100,st=1e3,w=12e5,H=72e5;function ye(s,e){return Te(s+e,24)}function rt({mode:s,lighting:e,getPlaySpeed:t,getNextDate:i,onProgress:r,beforeProgress:n}){let a=-1;function l(o=Date.now()){let d=e.date,c=Date.now()-(o??0);if(s==="day"){o=Date.now();let h=t()/it*c;if(h>0){let u=i?.(d,s,h);if(!u){u=new Date(d.getTime()+h);let x=e.displayUTCOffset??0,_=ye(u.getUTCHours(),x),b=ye(d.getUTCHours(),x);_<b&&(u=new Date(d.getTime()+h-Qe))}let v=e.clone();n?.(),e.date=u,r?.(v,e)}}else if(c>st){o=Date.now();let h=i?.(d,s,0)??new Date(d.getTime());if(!i){let v=(d.getUTCMonth()+1)%12;h.setUTCMonth(v)}let u=e.clone();n?.(),e.date=h,r?.(u,e)}a=requestAnimationFrame(()=>l(o))}return l(),Z(()=>cancelAnimationFrame(a))}var R=w/4;function nt(s,e,t,i){let{day:r,night:n=r,twilight:a=r}=i,l=r*R,o=n*R,d=a*R;if(s==null||e==null||Number.isNaN(s.getTime())&&Number.isNaN(e.getTime()))return l;let c=t.getTime(),h=s.getTime(),u=e.getTime(),v=h-H/2,x=h+H/2,_=u-H/3*2,b=u+H/3,f=l;return c>=v&&c<=x?c-v<=w?f=o-(c-v)/w*(o-d):x-c<=w/2?f=l-(x-c)/w*2*(l-d):f=d:c>=_&&c<=b?c-_<=w/2?f=l-(c-_)/w*2*(l-d):b-c<=w?f=o-(b-c)/w*(o-d):f=d:(c<h||c>u)&&(f=o),f}var at=ae`.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))}}.time-label{align-items:center;display:flex;gap:var(--calcite-spacing-sm);+.slider{margin-block:var(--calcite-spacing-sm)}}.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}}`,ot={day:1,night:6,twilight:2/3},ie=class extends oe{constructor(){super(...arguments),this.messages=ge({blocking:!0}),this.#d="none",this.#h=null,this.#o=!1,this.#e=!1,this.#m=Y(),this.#T=Y(),this.#$=200,this.#O=200,this.#f=!1,this.#p={},this.#l=W(e=>{let t=this._lighting,i=g(t)?t.displayUTCOffset:void 0,r=this.#_(t)?this.#n(t.date):void 0;return this.#e?e:r??i??e}),this.#r=W(e=>{let t=this._lighting;if(!g(t))return e;let i=t.date;if(this.#e)return e;if(L(i)){let{minutesSinceMidnight:r}=this.#y(i);return r}return e}),this.#s=W(e=>{let t=this._lighting,i=this.#_(t)?this.#y(t.date).localDate:pe(this._view,this.utcOffset);return this.#e?e:i??e}),this.#c=!1,this.#k="offset",this.view=ue(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=F(),this.arcgisUserDateTimeChange=F()}static{this.properties={_playingState:16,_sunlightingDisabled:16,_directShadowsDisabled:16,localDateAsString:32,view:0,autoDestroyDisabled:5,currentSeason:1,dateOrSeason:3,dayPlaying:5,headingLevel:9,hideDatePicker:5,hideHeader:5,hidePlayButtons:5,hideShadowsToggle:5,hideSunLightingToggle:5,hideTimezone:5,icon:3,label:1,playSpeedMultiplier:9,referenceElement:1,timeSliderSteps:9,timeZoneMode:1,utcOffset:9,timeSliderPosition:9,localDate:1,yearPlaying:5}}static{this.styles=at}get _view(){return this.view?.type==="3d"?this.view:void 0}#t;#d;#h;#i;#o;#e;#m;#T;#$;#O;#f;#p;get#U(){return this.#T?.value?.startTime}#l;#r;#s;get _lighting(){return this._view?.environment?.lighting}#c;#k;#g;get _playingState(){return this.#d}set _playingState(e){this.#d=e,this.#g?.remove(),e==="none"?this.#t?.remove():(this.#z(e),this.#w())}get _sunlightingDisabled(){return!g(this._lighting)}set _sunlightingDisabled(e){this.#u("sunlightingDisabled",e);let t=this._view?.environment;if(t==null)return;let i=t.lighting,r=this.#h;this.#h=i;let n={directShadowsEnabled:i.directShadowsEnabled,glow:i.glow};g(i)&&(n.cameraTrackingEnabled=i.cameraTrackingEnabled);let a=e?"virtual":"sun",l;r?.type===a?l=r:l=e?new Pe:this.#Z(),l.set(n),t.lighting=l,e||(this.#a(),this.#m.value&&(this.#m.value.open=!1))}get _directShadowsDisabled(){return!this._lighting?.directShadowsEnabled}set _directShadowsDisabled(e){this.#u("directShadowsDisabled",e),this._lighting&&(this._lighting.directShadowsEnabled=!e)}get localDateAsString(){return this.#s.value??void 0}get currentSeason(){let e=this._view?.camera?.position?.latitude??0,t=xe(e);return Ge(this.localDate,t)}set currentSeason(e){this.#a();let t=this._view?.camera?.position?.latitude??0,i=xe(t),r=re(e,i);this.localDate=$(this.localDate,r,"northern"),this.#w()}get dayPlaying(){return this._playingState==="day"}set dayPlaying(e){this._playingState=e?"day":"none"}get timeZoneMode(){return this.#k}set timeZoneMode(e){this.#c||(this.#k=e)}get utcOffset(){return this.#l.value}set utcOffset(e){if(this.timeZoneMode==="region"){this.#D();return}this.#e=!0,this.#l.mutate(e),!this.#u("utcOffset",e)&&this.#b(!1)}get timeSliderPosition(){return this.#r.value}set timeSliderPosition(e){this.#e=!0,this.#r.mutate(Te(e??0,Ke)),!this.#u("timeSliderPosition",e)&&this.#b(!0)}get localDate(){return this.#s.value!=null?new Date(this.#s.value):new Date}set localDate(e){if(typeof e=="string"&&/^\d{4}-\d{2}-\d{2}$/u.test(e)){if(this.#e=!0,this.#s.mutate(e),this.#u("localDate",e))return;this.#b(!0);return}let t=new Date(e);if(L(t)){this.#e=!0,t.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate());let i=t.toISOString().slice(0,10);if(this.#s.mutate(i),this.#u("localDate",i))return;this.#b(!0)}}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(()=>[fe(()=>{let e=this._view?.camera?.position;return e?P(e):void 0},(e,t)=>{this.#R(e,t)},{sync:!0,initial:!0}),fe(()=>{let e=this._lighting;return[this._view?.timeZone,e,g(e)?e.date:void 0]},(e,t)=>{this._playingState==="day"&&t&&e[0]===t[0]&&e[1]===t[1]||this.#D()},{sync:!0,initial:!0}),ze(()=>!g(this._lighting),()=>{this.#a()}),De.onLocaleChange(()=>{this.requestUpdate()})]),this.manager.onDisconnected(()=>{this.#t?.remove(),this.#i?.remove(),this.#g?.remove()})}willUpdate(e){if(super.willUpdate(e),!!this.#c&&this.timeZoneMode==="offset"&&g(this._lighting)&&e.has("utcOffset")&&!e.has("localDate")&&!e.has("timeSliderPosition")){let t=this.utcOffset??0,{minutesSinceMidnight:i,localDate:r}=C(this._lighting.date,t);this.#r.mutate(i),this.#s.mutate(r)}}async loaded(){let e=new AbortController;this.manager.onDisconnected(()=>({remove:()=>{e.abort()}})),await ce(Ue(()=>this._view?.ready,{signal:e.signal}).then(()=>{let t=this._lighting,i=this._view?.camera?.position;if(this.timeZoneMode==="offset"&&this.#p.utcOffset==null&&g(t)&&t.displayUTCOffset==null&&i){let n=P(i);this.#v(n,t)}this.#c=!0,this.#_(t)&&this.#D(t),this.#P(),g(this._lighting)||(this.timeZoneMode==="region"?this.#j():this.#q());let r=this._playingState;r!=="none"&&this.#t==null&&this.#z(r)}))}#u(e,t){return this.#c||this.#f?!1:(this.#p[e]=t,!0)}#P(){let{utcOffset:e,timeSliderPosition:t,localDate:i,directShadowsDisabled:r,sunlightingDisabled:n}=this.#p;if(this.#f=!0,this.timeZoneMode==="offset"&&e!=null)if(t==null&&i==null){let a=this._lighting;g(a)?(a.displayUTCOffset=e,this.#v(e,a)):this.#l.mutate(e)}else this.utcOffset=e;t!=null&&(this.timeSliderPosition=t),i&&(this.localDate=i),r!=null&&(this._directShadowsDisabled=r),n!=null&&(this._sunlightingDisabled=n),this.#p={},this.#f=!1,this.#i||(this.#e=!1)}#_(e){return this.timeZoneMode==="region"&&g(e)&&L(e.date)}#Z(){return this.timeZoneMode==="region"?this.#L():this.#E()}#L(){let e=new Date,t=this.#C(e,0)??e;return new N({date:t,displayUTCOffset:this.#n(t)})}#C(e,t){let i=this.#x,r=O(e,i);if(!r)return null;let n=this.#s.value==null?r:We(this.localDate),a=this.timeSliderPosition??t??T(r);return se(n,a,i)}#E(){let e=A(this.localDateAsString??this.localDate,this.timeSliderPosition??0,this.utcOffset??0);return new N({date:e,displayUTCOffset:this.utcOffset})}#b(e){if(this.#e=!0,this.requestUpdate(),this.#o||=e,this.#i)return;let t=de(()=>{let i=this._lighting;g(i)&&(this.timeZoneMode==="region"?this.#A(i):this.#N(i)),this.#i?.remove(),this.#D()},{timeout:this.#$});this.#i=Z(()=>{he(t),this.#i=void 0,this.#o=!1,this.#e=!1})}#A(e){if(!this.#o){e.displayUTCOffset=this.#n(e.date);return}let t=this.#C(e.date,0);t&&(e.date=t,e.displayUTCOffset=this.#n(t))}#N(e){let t=this.utcOffset??0;if(!this.#o){e.displayUTCOffset=t;return}e.date=A(this.localDate,this.timeSliderPosition??0,t),e.displayUTCOffset=t}#I(e){if(!this.#o){e.displayUTCOffset=this.#n(e.date);return}let t=this.#C(e.date);t&&(e.date=t,e.displayUTCOffset=this.#n(t)),this.#i?.remove()}#H(e){let t=this.utcOffset??e.displayUTCOffset??0;if(!this.#o){e.displayUTCOffset=t,this.#i?.remove();return}let i=C(e.date,t),r=this.localDateAsString??i.localDate,n=this.timeSliderPosition??i.minutesSinceMidnight;e.date=A(r,n,t),e.displayUTCOffset=t,this.#i?.remove()}#R(e,t){let i=this._lighting;if(!(this.timeZoneMode==="region"||!this.#c||!g(i)||!i.cameraTrackingEnabled||e==null)){if(t==null&&i.displayUTCOffset==null){this.#v(e,i);return}i.displayUTCOffset!=null&&(i.displayUTCOffset=e),this.#v(e,i)}}#v(e,t){t.displayUTCOffset=e,this.#M(e,t.date)}#j(){let e=new N,t=this.#S(e.date);t&&(this.timeSliderPosition==null&&this.#r.mutate(T(t)),this.localDateAsString==null&&this.#s.mutate(Q(t)),this.#l.mutate(this.#n(e.date)),this.requestUpdate())}#q(){let e=this._view?.camera?.position,t=this.utcOffset??(e?P(e):0),i=new N({displayUTCOffset:t});this.#M(t,i.date,{fillMissingOnly:!0})}#M(e,t,{fillMissingOnly:i=!1}={}){let{minutesSinceMidnight:r,localDate:n}=C(t,e);(!i||this.utcOffset==null)&&this.#l.mutate(e),(!i||this.timeSliderPosition==null)&&this.#r.mutate(r),(!i||this.localDateAsString==null)&&this.#s.mutate(n),this.requestUpdate()}#w(){this.isConnected&&this.arcgisUserDateTimeChange.emit()}#a(){this._playingState="none"}#B(e){if(this.#g)return;let t=setTimeout(()=>{let i=e.date,{minutesSinceMidnight:r}=this.#y(i);this.#r.mutate(r),this.#g?.remove()},this.#O);this.#g=Z(()=>{clearTimeout(t),this.#g=void 0;let i=this._lighting;if(g(i)){let r=i.date,{minutesSinceMidnight:n}=this.#y(r);this.#r.mutate(n)}})}#z(e){this.#t?.remove();let t=this._view;if(t==null||this._sunlightingDisabled)return;let i=t.environment.lighting;if(!g(i))return;this.timeZoneMode==="region"?this.#I(i):this.#H(i);let r=0;this.#t=rt({mode:e,lighting:i,getNextDate:this.timeZoneMode==="region"?(n,a,l)=>a==="day"?Xe(n,l,this.#x):et(n,this.#x):void 0,beforeProgress:()=>{r=this.#U??0},onProgress:(n,a)=>{this.timeZoneMode==="region"&&(a.displayUTCOffset=this.#n(a.date)),this.#r.mutate(r),this.#B(a)},getPlaySpeed:()=>{let n=this._view,a=this._view?.environment.lighting;if(n!=null&&g(a)){let l=n.camera.position.latitude??0,o=n.camera.position.longitude??0,d=this.timeZoneMode==="region"?this.#n(a.date):a.displayUTCOffset??0,{sunrise:c,sunset:h}=tt(a.date,l,o,d);return nt(c,h,a.date,ot)*this.playSpeedMultiplier}else return R*this.playSpeedMultiplier}})}get#x(){return me(this._view?.timeZone??K)}#n(e){let t=this.#S(e);if(!t)throw new RangeError("Invalid date or time zone");return t.offsetMinutes/60}#y(e){let t=this.timeZoneMode==="region"?this.#S(e):null;return t?{localDate:Q(t),minutesSinceMidnight:T(t)}:C(e,this.utcOffset??0)}#S(e){return O(e,this.#x)}#D(e=this._lighting){if(!this.#c||!this.#_(e)||this.#e)return;let t=this.#S(e.date);if(!t)return;let i=this.#n(e.date);e.displayUTCOffset=i,this.#l.mutate(i),this.#s.mutate(Q(t)),this.#r.mutate(T(t)),this.requestUpdate()}#F({scale:e,disabled:t}){let{messages:i}=this;return p`<calcite-label .scale=${e} class="date-picker-container">${i.date}${lt({disabled:t,scale:e,date:this.localDateAsString,onDateChange:r=>{let n=r.currentTarget.value,a=Array.isArray(n)?n[0]:n;this.#a(),this.localDate=a,this.#w()}})}</calcite-label>${y({hidden:this.hidePlayButtons,children:Se({playing:this.yearPlaying,disabled:t,label:i.playYear,onClick:()=>{this._playingState==="year"?this._playingState="none":this._playingState="year"},scale:e})})}`}#Y({scale:e,disabled:t}){let{messages:i}=this;return p`<calcite-label .scale=${e} class="date-picker-container">${i.season}${ct({scale:e,selectedSeason:this.currentSeason,disabled:t,messages:i,onSeasonChange:r=>{this.#a(),this.currentSeason=r.currentTarget.value}})}</calcite-label>`}render(){let{messages:e,dateOrSeason:t}=this,i=this._sunlightingDisabled,r="m";if(this._view?.type!=="3d")return J({class:"root",label:e.componentLabel,title:e.title,hideHeader:this.hideHeader,headingLevel:this.headingLevel,children:p`<div class="unsupported"><p>${e.unsupported}</p></div>`});let n=(this.utcOffset??0)*60,a=this.view?.ready===!0,l=Array.isArray(this.timeSliderSteps)?this.timeSliderSteps.at(0):this.timeSliderSteps;return J({class:{root:!0,loading:!a},label:e.componentLabel,title:e.title,hideHeader:this.hideHeader,headingLevel:this.headingLevel,children:p`${a?void 0:p`<calcite-scrim loading></calcite-scrim>`}<div class="time-configuration" style=${V({columnGap:this.hidePlayButtons?"0":void 0})}><calcite-label class="slider-container" .scale=${r}>${this.timeZoneMode==="region"?p`<span class="time-label">${e.timeSliderLabel}${y({hidden:this.hideTimezone,children:p`<arcgis-time-zone-chip .disabled=${i} .timeZone=${this._view?.timeZone??K} .visualScale=${r} @click=${o=>o.stopPropagation()} @arcgisInternalTimeZoneChange=${o=>{this._view&&(this._view.timeZone=o.detail)}}></arcgis-time-zone-chip>`})}</span>`:e.timeSliderLabel}<arcgis-time-of-day-slider class="slider" .disabled=${this._sunlightingDisabled} mode=single .startTime=${this.timeSliderPosition??0} .steps=${l} style=${V({gridArea:"slider"})} @arcgisTimeChange=${({currentTarget:o})=>{this.#a(),this.timeSliderPosition=o.startTime,this.#w()}} ${G(this.#T)}></arcgis-time-of-day-slider></calcite-label>${y({hidden:this.hidePlayButtons,children:Se({disabled:this._sunlightingDisabled,playing:this.dayPlaying,label:e.playDay,onClick:()=>{this._playingState==="day"?this.#a():this._playingState="day"},scale:r})})}${this.timeZoneMode==="offset"?y({hidden:this.hideTimezone,children:p`<calcite-label .scale=${r} class="timezone-input-container">${e.timezone}<calcite-input-time-zone data-testid=daylight-time-zone-input mode=offset overlay-positioning=fixed .scale=${r} .disabled=${this._sunlightingDisabled} .value=${`${n}`} .referenceDate=${this.localDateAsString} @calciteInputTimeZoneChange=${o=>{let d=+o.target.value;this.utcOffset=d/60,this.#a()}} ${G(this.#m)}></calcite-input-time-zone></calcite-label><span></span>`}):void 0}${y({hidden:this.hideDatePicker,children:t==="date"?this.#F({scale:r,disabled:i}):this.#Y({scale:r,disabled:i})})}</div>${y({hidden:this.hideSunLightingToggle,children:dt({scale:r,messages:e.sunLightingToggle,sunlightingEnabled:!this._sunlightingDisabled,onSunLightingToggle:o=>{this._sunlightingDisabled=!o}})})}${y({hidden:this.hideShadowsToggle,children:ht({scale:r,messages:e.shadowsToggle,onShadowCheckboxChange:o=>{this._directShadowsDisabled=!o},shadowEnabled:!this._directShadowsDisabled})})}`})}};function Se({disabled:s,playing:e,onClick:t,label:i,scale:r="m"}){return p`<calcite-button appearance=solid .scale=${r} .disabled=${s} .iconStart=${e?"pause-f":"play-f"} .label=${i} @click=${t} round title=${i??U} type=button></calcite-button>`}function lt({disabled:s,date:e,onDateChange:t,scale:i}){return p`<calcite-input-date-picker data-testid=daylight-date-picker .disabled=${s} overlay-positioning=fixed placement=bottom .value=${e} .scale=${i} @calciteInputDatePickerChange=${t}></calcite-input-date-picker>`}function ct({messages:s,disabled:e,scale:t,selectedSeason:i,onSeasonChange:r}){return p`<calcite-select .disabled=${e} .label=${s.season} .scale=${t} .value=${i} @calciteSelectChange=${n=>{r(n)}}>${te.map(n=>p`<calcite-option .selected=${i===n} .value=${n}>${s[n]}</calcite-option>`)}</calcite-select>`}function dt({messages:s,sunlightingEnabled:e,onSunLightingToggle:t,scale:i}){return p`<calcite-label layout=inline .scale=${i} title=${s?.tooltip??U}><calcite-checkbox .scale=${i} .checked=${e} @calciteCheckboxChange=${r=>t(r.target.checked)}></calcite-checkbox>${s?.label}</calcite-label>`}function ht({messages:s,shadowEnabled:e,onShadowCheckboxChange:t,scale:i}){return p`<calcite-label layout=inline .scale=${i} title=${s?.tooltip??U}><calcite-checkbox .checked=${e} @calciteCheckboxChange=${r=>t(r.target.checked)}></calcite-checkbox>${s.label}</calcite-label>`}le("arcgis-daylight",ie);return ie},"core/reactiveUtils","core/timeUtils","intl","views/3d/environment/SunLighting","views/3d/environment/VirtualLighting","applications/Components/reactiveUtils",a,b,c)
2
+ import{a as P}from"./TMTFZSJS.js";import{a as K,e as L,f as E,g as C,h as A,i as me,j as g,k as pe}from"./IM6IDWYR.js";import{a as Z}from"./FH3WFF5O.js";import{a as J}from"./7V7LQ35Q.js";import{a as y}from"./6J3KSMFG.js";import c from"./BOPNSNUT.js";import"./WJQUE4DR.js";import"./VKO3CVBS.js";import{a as ge}from"./REB4CHAK.js";import"./L5IRXOCJ.js";import b from"./OLY5EME5.js";import"./Q7GF26CL.js";import"./U77WHUC6.js";import a from"./SI2DEXWH.js";import"./LXME6MU5.js";import{P as Y,Q as G,R as oe,U as V,X as U,_ as le,a as ae,b as m,x as F}from"./PQ7NUE5C.js";import"./TAVTDQ6S.js";export default $arcgis.t(([{watch:fe,when:ze,whenOnce:Ue},{getZonedDateTimeParts:O,createZonedDate:se,formatCalendarDate:Q},De,N,Pe,{createTrackingTarget:Ze,runTracked:_e,signal:Le},,{a:ue},{e:ce,f:de,g:he}])=>{function Te(s,e){return(s%e+e)%e}var ee=class{#i;#d;#h=Ze(()=>{this.#t()});constructor(e){this.#d=e;let i;_e(this.#h,()=>{i=e()}),this.#i=Le(i)}#t(){let e=this.#i.value;_e(this.#h,()=>{this.#i.value=this.#d(e)})}mutate(e){this.#i.value=e}get value(){return this.#i.value}};function W(s){return new ee(s)}var j=Math.PI,p=Math.sin,k=Math.cos,Ee=Math.asin,Ae=Math.acos,S=j/180,ke=1e3*60*60*24,Ce=2440588,$e=2451545;function Ne(s){return s.valueOf()/ke-.5+Ce}function I(s){return new Date((s+.5-Ce)*ke)}function Ie(s){return Ne(s)-$e}var be=S*23.4397;function He(s,e){return Ee(p(e)*k(be)+k(e)*p(be)*p(s))}function Re(s){return S*(357.5291+.98560028*s)}function je(s){return S*(1.9148*p(s)+.02*p(2*s)+3e-4*p(3*s))}function qe(s,e){var i=S*102.9372;return s+e+i+j}var D={};D.PolarException={NORMAL:0,MIDNIGHT_SUN:1,POLAR_NIGHT:2};var X=[[-.83,"sunrise","sunset"]],Oe=9e-4;function Be(s,e){return Math.round(s-Oe-e/(2*j))}function ve(s,e,i){return Oe+(s+e)/(2*j)+i}function we(s,e,i){return $e+s+.0053*p(e)-.0069*p(2*i)}function Fe(s,e,i){return Ae((p(s)-p(e)*p(i))/(k(e)*k(i)))}D.getTimes=function(s,e,i){var t=S*-i,r=S*e,n=Ie(s),a=Be(n,t),l=ve(0,t,a),o=Re(l),d=je(o),c=qe(o,d),h=He(c,0),u=we(l,o,c);function v(B){var z=Fe(B,r,h),Me=ve(z,t,a);return we(Me,o,c)}function x(B){var z=(p(B)-p(r)*p(h))/(k(r)*k(h));return z<-1?D.PolarException.MIDNIGHT_SUN:z>1?D.PolarException.POLAR_NIGHT:D.PolarException.NORMAL}var _={solarNoon:I(u),nadir:I(u-.5),polarException:D.PolarException.NORMAL},b,f,M,q,ne;for(b=0,f=X.length;b<f;b+=1)M=X[b],q=v(M[0]*S),ne=u-(q-u),_[M[1]]=I(ne),_[M[2]]=I(q);return _.polarException=x(X[0][0]*S),_};var Ye={spring:{dayOfMonth:20,month:2},summer:{dayOfMonth:21,month:5},fall:{dayOfMonth:23,month:8},winter:{dayOfMonth:21,month:11}},ie=["spring","summer","fall","winter"];function $(s,e,i){let t=re(e,i),{dayOfMonth:r,month:n}=Ye[t],a=new Date(s.getTime());return a.setMonth(n,r),a}function Ge(s,e){let i=Ve(s);return re(i,e)}function Ve(s){let e=s.getTime(),i=$(s,"spring","northern").getTime(),t=$(s,"summer","northern").getTime(),r=$(s,"fall","northern").getTime(),n=$(s,"winter","northern").getTime();return e>=i&&e<t?"spring":e>=t&&e<r?"summer":e>=r&&e<n?"fall":"winter"}function re(s,e){return e==="northern"?s:Je(s)}function xe(s){return s>=0?"northern":"southern"}function Je(s){let e=ie.indexOf(s);return ie[(e+2)%4]}var Ke=1440,Qe=864e5;function T({hour:s,minute:e}){return s*60+e}function We(s){return{year:s.getUTCFullYear(),month:s.getUTCMonth()+1,day:s.getUTCDate()}}function Xe(s,e,i){let t=O(s,i);if(!t)return s;let r=new Date(s.getTime()+e),n=O(r,i);return!n||n.year===t.year&&n.month===t.month&&n.day===t.day?r:se(t,T(n),i)??r}function ei(s,e){let i=O(s,e);if(!i)return s;let t=i.month%12+1,r=i.year+(t===1?1:0),n=new Date(Date.UTC(r,t,0)).getUTCDate();return se({year:r,month:t,day:Math.min(i.day,n)},T(i),e)??s}function ii(s,e,i,t){let r=D.getTimes(s,e,i),n=r.sunrise,a=r.sunset,l=E(s,t),o=E(n,t),d=E(a,t);if(l.getUTCDate()!==o.getUTCDate()||l.getUTCDate()!==d.getUTCDate()){let c=l.getTime()-o.getTime()>0?1:-1;n.setUTCDate(n.getUTCDate()+c),a.setUTCDate(a.getUTCDate()+c)}return{sunrise:n,sunset:a}}var ti=100,si=1e3,w=12e5,H=72e5;function ye(s,e){return Te(s+e,24)}function ri({mode:s,lighting:e,getPlaySpeed:i,getNextDate:t,onProgress:r,beforeProgress:n}){let a=-1;function l(o=Date.now()){let d=e.date,c=Date.now()-(o??0);if(s==="day"){o=Date.now();let h=i()/ti*c;if(h>0){let u=t?.(d,s,h);if(!u){u=new Date(d.getTime()+h);let x=e.displayUTCOffset??0,_=ye(u.getUTCHours(),x),b=ye(d.getUTCHours(),x);_<b&&(u=new Date(d.getTime()+h-Qe))}let v=e.clone();n?.(),e.date=u,r?.(v,e)}}else if(c>si){o=Date.now();let h=t?.(d,s,0)??new Date(d.getTime());if(!t){let v=(d.getUTCMonth()+1)%12;h.setUTCMonth(v)}let u=e.clone();n?.(),e.date=h,r?.(u,e)}a=requestAnimationFrame(()=>l(o))}return l(),Z(()=>cancelAnimationFrame(a))}var R=w/4;function ni(s,e,i,t){let{day:r,night:n=r,twilight:a=r}=t,l=r*R,o=n*R,d=a*R;if(s==null||e==null||Number.isNaN(s.getTime())&&Number.isNaN(e.getTime()))return l;let c=i.getTime(),h=s.getTime(),u=e.getTime(),v=h-H/2,x=h+H/2,_=u-H/3*2,b=u+H/3,f=l;return c>=v&&c<=x?c-v<=w?f=o-(c-v)/w*(o-d):x-c<=w/2?f=l-(x-c)/w*2*(l-d):f=d:c>=_&&c<=b?c-_<=w/2?f=l-(c-_)/w*2*(l-d):b-c<=w?f=o-(b-c)/w*(o-d):f=d:(c<h||c>u)&&(f=o),f}var ai=ae`.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))}}.time-label{align-items:center;display:flex;gap:var(--calcite-spacing-sm);+.slider{margin-block:var(--calcite-spacing-sm)}}.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}}`,oi={day:1,night:6,twilight:2/3},te=class extends oe{constructor(){super(...arguments),this.messages=ge({blocking:!0}),this.#d="none",this.#h=null,this.#o=!1,this.#e=!1,this.#p=Y(),this.#T=Y(),this.#$=200,this.#O=200,this.#f=!1,this.#m={},this.#l=W(e=>{let i=this._lighting,t=g(i)?i.displayUTCOffset:void 0,r=this.#_(i)?this.#n(i.date):void 0;return this.#e?e:r??t??e}),this.#r=W(e=>{let i=this._lighting;if(!g(i))return e;let t=i.date;if(this.#e)return e;if(L(t)){let{minutesSinceMidnight:r}=this.#y(t);return r}return e}),this.#s=W(e=>{let i=this._lighting,t=this.#_(i)?this.#y(i.date).localDate:me(this._view,this.utcOffset);return this.#e?e:t??e}),this.#c=!1,this.#k="offset",this.view=ue(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=F(),this.arcgisUserDateTimeChange=F()}static{this.properties={_playingState:16,_sunlightingDisabled:16,_directShadowsDisabled:16,localDateAsString:32,view:0,autoDestroyDisabled:5,currentSeason:1,dateOrSeason:3,dayPlaying:5,headingLevel:9,hideDatePicker:5,hideHeader:5,hidePlayButtons:5,hideShadowsToggle:5,hideSunLightingToggle:5,hideTimezone:5,icon:3,label:1,playSpeedMultiplier:9,referenceElement:1,timeSliderSteps:9,timeZoneMode:1,utcOffset:9,timeSliderPosition:9,localDate:1,yearPlaying:5}}static{this.styles=ai}get _view(){return this.view?.type==="3d"?this.view:void 0}#i;#d;#h;#t;#o;#e;#p;#T;#$;#O;#f;#m;get#U(){return this.#T?.value?.startTime}#l;#r;#s;get _lighting(){return this._view?.environment?.lighting}#c;#k;#g;get _playingState(){return this.#d}set _playingState(e){this.#d=e,this.#g?.remove(),e==="none"?this.#i?.remove():(this.#z(e),this.#w())}get _sunlightingDisabled(){return!g(this._lighting)}set _sunlightingDisabled(e){this.#u("sunlightingDisabled",e);let i=this._view?.environment;if(i==null)return;let t=i.lighting,r=this.#h;this.#h=t;let n={directShadowsEnabled:t.directShadowsEnabled,glow:t.glow,globalIllumination:t.globalIllumination};g(t)&&(n.cameraTrackingEnabled=t.cameraTrackingEnabled);let a=e?"virtual":"sun",l;r?.type===a?l=r:l=e?new Pe:this.#Z(),l.set(n),i.lighting=l,e||(this.#a(),this.#p.value&&(this.#p.value.open=!1))}get _directShadowsDisabled(){return!this._lighting?.directShadowsEnabled}set _directShadowsDisabled(e){this.#u("directShadowsDisabled",e),this._lighting&&(this._lighting.directShadowsEnabled=!e)}get localDateAsString(){return this.#s.value??void 0}get currentSeason(){let e=this._view?.camera?.position?.latitude??0,i=xe(e);return Ge(this.localDate,i)}set currentSeason(e){this.#a();let i=this._view?.camera?.position?.latitude??0,t=xe(i),r=re(e,t);this.localDate=$(this.localDate,r,"northern"),this.#w()}get dayPlaying(){return this._playingState==="day"}set dayPlaying(e){this._playingState=e?"day":"none"}get timeZoneMode(){return this.#k}set timeZoneMode(e){this.#c||(this.#k=e)}get utcOffset(){return this.#l.value}set utcOffset(e){if(this.timeZoneMode==="region"){this.#D();return}this.#e=!0,this.#l.mutate(e),!this.#u("utcOffset",e)&&this.#b(!1)}get timeSliderPosition(){return this.#r.value}set timeSliderPosition(e){this.#e=!0,this.#r.mutate(Te(e??0,Ke)),!this.#u("timeSliderPosition",e)&&this.#b(!0)}get localDate(){return this.#s.value!=null?new Date(this.#s.value):new Date}set localDate(e){if(typeof e=="string"&&/^\d{4}-\d{2}-\d{2}$/u.test(e)){if(this.#e=!0,this.#s.mutate(e),this.#u("localDate",e))return;this.#b(!0);return}let i=new Date(e);if(L(i)){this.#e=!0,i.setUTCFullYear(i.getFullYear(),i.getMonth(),i.getDate());let t=i.toISOString().slice(0,10);if(this.#s.mutate(t),this.#u("localDate",t))return;this.#b(!0)}}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(()=>[fe(()=>{let e=this._view?.camera?.position;return e?P(e):void 0},(e,i)=>{this.#R(e,i)},{sync:!0,initial:!0}),fe(()=>{let e=this._lighting;return[this._view?.timeZone,e,g(e)?e.date:void 0]},(e,i)=>{this._playingState==="day"&&i&&e[0]===i[0]&&e[1]===i[1]||this.#D()},{sync:!0,initial:!0}),ze(()=>!g(this._lighting),()=>{this.#a()}),De.onLocaleChange(()=>{this.requestUpdate()})]),this.manager.onDisconnected(()=>{this.#i?.remove(),this.#t?.remove(),this.#g?.remove()})}willUpdate(e){if(super.willUpdate(e),!!this.#c&&this.timeZoneMode==="offset"&&g(this._lighting)&&e.has("utcOffset")&&!e.has("localDate")&&!e.has("timeSliderPosition")){let i=this.utcOffset??0,{minutesSinceMidnight:t,localDate:r}=C(this._lighting.date,i);this.#r.mutate(t),this.#s.mutate(r)}}async loaded(){let e=new AbortController;this.manager.onDisconnected(()=>({remove:()=>{e.abort()}})),await ce(Ue(()=>this._view?.ready,{signal:e.signal}).then(()=>{let i=this._lighting,t=this._view?.camera?.position;if(this.timeZoneMode==="offset"&&this.#m.utcOffset==null&&g(i)&&i.displayUTCOffset==null&&t){let n=P(t);this.#v(n,i)}this.#c=!0,this.#_(i)&&this.#D(i),this.#P(),g(this._lighting)||(this.timeZoneMode==="region"?this.#j():this.#q());let r=this._playingState;r!=="none"&&this.#i==null&&this.#z(r)}))}#u(e,i){return this.#c||this.#f?!1:(this.#m[e]=i,!0)}#P(){let{utcOffset:e,timeSliderPosition:i,localDate:t,directShadowsDisabled:r,sunlightingDisabled:n}=this.#m;if(this.#f=!0,this.timeZoneMode==="offset"&&e!=null)if(i==null&&t==null){let a=this._lighting;g(a)?(a.displayUTCOffset=e,this.#v(e,a)):this.#l.mutate(e)}else this.utcOffset=e;i!=null&&(this.timeSliderPosition=i),t&&(this.localDate=t),r!=null&&(this._directShadowsDisabled=r),n!=null&&(this._sunlightingDisabled=n),this.#m={},this.#f=!1,this.#t||(this.#e=!1)}#_(e){return this.timeZoneMode==="region"&&g(e)&&L(e.date)}#Z(){return this.timeZoneMode==="region"?this.#L():this.#E()}#L(){let e=new Date,i=this.#C(e,0)??e;return new N({date:i,displayUTCOffset:this.#n(i)})}#C(e,i){let t=this.#x,r=O(e,t);if(!r)return null;let n=this.#s.value==null?r:We(this.localDate),a=this.timeSliderPosition??i??T(r);return se(n,a,t)}#E(){let e=A(this.localDateAsString??this.localDate,this.timeSliderPosition??0,this.utcOffset??0);return new N({date:e,displayUTCOffset:this.utcOffset})}#b(e){if(this.#e=!0,this.requestUpdate(),this.#o||=e,this.#t)return;let i=de(()=>{let t=this._lighting;g(t)&&(this.timeZoneMode==="region"?this.#A(t):this.#N(t)),this.#t?.remove(),this.#D()},{timeout:this.#$});this.#t=Z(()=>{he(i),this.#t=void 0,this.#o=!1,this.#e=!1})}#A(e){if(!this.#o){e.displayUTCOffset=this.#n(e.date);return}let i=this.#C(e.date,0);i&&(e.date=i,e.displayUTCOffset=this.#n(i))}#N(e){let i=this.utcOffset??0;if(!this.#o){e.displayUTCOffset=i;return}e.date=A(this.localDate,this.timeSliderPosition??0,i),e.displayUTCOffset=i}#I(e){if(!this.#o){e.displayUTCOffset=this.#n(e.date);return}let i=this.#C(e.date);i&&(e.date=i,e.displayUTCOffset=this.#n(i)),this.#t?.remove()}#H(e){let i=this.utcOffset??e.displayUTCOffset??0;if(!this.#o){e.displayUTCOffset=i,this.#t?.remove();return}let t=C(e.date,i),r=this.localDateAsString??t.localDate,n=this.timeSliderPosition??t.minutesSinceMidnight;e.date=A(r,n,i),e.displayUTCOffset=i,this.#t?.remove()}#R(e,i){let t=this._lighting;if(!(this.timeZoneMode==="region"||!this.#c||!g(t)||!t.cameraTrackingEnabled||e==null)){if(i==null&&t.displayUTCOffset==null){this.#v(e,t);return}t.displayUTCOffset!=null&&(t.displayUTCOffset=e),this.#v(e,t)}}#v(e,i){i.displayUTCOffset=e,this.#M(e,i.date)}#j(){let e=new N,i=this.#S(e.date);i&&(this.timeSliderPosition==null&&this.#r.mutate(T(i)),this.localDateAsString==null&&this.#s.mutate(Q(i)),this.#l.mutate(this.#n(e.date)),this.requestUpdate())}#q(){let e=this._view?.camera?.position,i=this.utcOffset??(e?P(e):0),t=new N({displayUTCOffset:i});this.#M(i,t.date,{fillMissingOnly:!0})}#M(e,i,{fillMissingOnly:t=!1}={}){let{minutesSinceMidnight:r,localDate:n}=C(i,e);(!t||this.utcOffset==null)&&this.#l.mutate(e),(!t||this.timeSliderPosition==null)&&this.#r.mutate(r),(!t||this.localDateAsString==null)&&this.#s.mutate(n),this.requestUpdate()}#w(){this.isConnected&&this.arcgisUserDateTimeChange.emit()}#a(){this._playingState="none"}#B(e){if(this.#g)return;let i=setTimeout(()=>{let t=e.date,{minutesSinceMidnight:r}=this.#y(t);this.#r.mutate(r),this.#g?.remove()},this.#O);this.#g=Z(()=>{clearTimeout(i),this.#g=void 0;let t=this._lighting;if(g(t)){let r=t.date,{minutesSinceMidnight:n}=this.#y(r);this.#r.mutate(n)}})}#z(e){this.#i?.remove();let i=this._view;if(i==null||this._sunlightingDisabled)return;let t=i.environment.lighting;if(!g(t))return;this.timeZoneMode==="region"?this.#I(t):this.#H(t);let r=0;this.#i=ri({mode:e,lighting:t,getNextDate:this.timeZoneMode==="region"?(n,a,l)=>a==="day"?Xe(n,l,this.#x):ei(n,this.#x):void 0,beforeProgress:()=>{r=this.#U??0},onProgress:(n,a)=>{this.timeZoneMode==="region"&&(a.displayUTCOffset=this.#n(a.date)),this.#r.mutate(r),this.#B(a)},getPlaySpeed:()=>{let n=this._view,a=this._view?.environment.lighting;if(n!=null&&g(a)){let l=n.camera.position.latitude??0,o=n.camera.position.longitude??0,d=this.timeZoneMode==="region"?this.#n(a.date):a.displayUTCOffset??0,{sunrise:c,sunset:h}=ii(a.date,l,o,d);return ni(c,h,a.date,oi)*this.playSpeedMultiplier}else return R*this.playSpeedMultiplier}})}get#x(){return pe(this._view?.timeZone??K)}#n(e){let i=this.#S(e);if(!i)throw new RangeError("Invalid date or time zone");return i.offsetMinutes/60}#y(e){let i=this.timeZoneMode==="region"?this.#S(e):null;return i?{localDate:Q(i),minutesSinceMidnight:T(i)}:C(e,this.utcOffset??0)}#S(e){return O(e,this.#x)}#D(e=this._lighting){if(!this.#c||!this.#_(e)||this.#e)return;let i=this.#S(e.date);if(!i)return;let t=this.#n(e.date);e.displayUTCOffset=t,this.#l.mutate(t),this.#s.mutate(Q(i)),this.#r.mutate(T(i)),this.requestUpdate()}#F({scale:e,disabled:i}){let{messages:t}=this;return m`<calcite-label .scale=${e} class="date-picker-container">${t.date}${li({disabled:i,scale:e,date:this.localDateAsString,onDateChange:r=>{let n=r.currentTarget.value,a=Array.isArray(n)?n[0]:n;this.#a(),this.localDate=a,this.#w()}})}</calcite-label>${y({hidden:this.hidePlayButtons,children:Se({playing:this.yearPlaying,disabled:i,label:t.playYear,onClick:()=>{this._playingState==="year"?this._playingState="none":this._playingState="year"},scale:e})})}`}#Y({scale:e,disabled:i}){let{messages:t}=this;return m`<calcite-label .scale=${e} class="date-picker-container">${t.season}${ci({scale:e,selectedSeason:this.currentSeason,disabled:i,messages:t,onSeasonChange:r=>{this.#a(),this.currentSeason=r.currentTarget.value}})}</calcite-label>`}render(){let{messages:e,dateOrSeason:i}=this,t=this._sunlightingDisabled,r="m";if(this._view?.type!=="3d")return J({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,l=Array.isArray(this.timeSliderSteps)?this.timeSliderSteps.at(0):this.timeSliderSteps;return J({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=${V({columnGap:this.hidePlayButtons?"0":void 0})}><calcite-label class="slider-container" .scale=${r}>${this.timeZoneMode==="region"?m`<span class="time-label">${e.timeSliderLabel}${y({hidden:this.hideTimezone,children:m`<arcgis-time-zone-chip .disabled=${t} .timeZone=${this._view?.timeZone??K} .visualScale=${r} @click=${o=>o.stopPropagation()} @arcgisInternalTimeZoneChange=${o=>{this._view&&(this._view.timeZone=o.detail)}}></arcgis-time-zone-chip>`})}</span>`:e.timeSliderLabel}<arcgis-time-of-day-slider class="slider" .disabled=${this._sunlightingDisabled} mode=single .startTime=${this.timeSliderPosition??0} .steps=${l} style=${V({gridArea:"slider"})} @arcgisTimeChange=${({currentTarget:o})=>{this.#a(),this.timeSliderPosition=o.startTime,this.#w()}} ${G(this.#T)}></arcgis-time-of-day-slider></calcite-label>${y({hidden:this.hidePlayButtons,children:Se({disabled:this._sunlightingDisabled,playing:this.dayPlaying,label:e.playDay,onClick:()=>{this._playingState==="day"?this.#a():this._playingState="day"},scale:r})})}${this.timeZoneMode==="offset"?y({hidden:this.hideTimezone,children:m`<calcite-label .scale=${r} class="timezone-input-container">${e.timezone}<calcite-input-time-zone data-testid=daylight-time-zone-input mode=offset overlay-positioning=fixed .scale=${r} .disabled=${this._sunlightingDisabled} .value=${`${n}`} .referenceDate=${this.localDateAsString} @calciteInputTimeZoneChange=${o=>{let d=+o.target.value;this.utcOffset=d/60,this.#a()}} ${G(this.#p)}></calcite-input-time-zone></calcite-label><span></span>`}):void 0}${y({hidden:this.hideDatePicker,children:i==="date"?this.#F({scale:r,disabled:t}):this.#Y({scale:r,disabled:t})})}</div>${y({hidden:this.hideSunLightingToggle,children:di({scale:r,messages:e.sunLightingToggle,sunlightingEnabled:!this._sunlightingDisabled,onSunLightingToggle:o=>{this._sunlightingDisabled=!o}})})}${y({hidden:this.hideShadowsToggle,children:hi({scale:r,messages:e.shadowsToggle,onShadowCheckboxChange:o=>{this._directShadowsDisabled=!o},shadowEnabled:!this._directShadowsDisabled})})}`})}};function Se({disabled:s,playing:e,onClick:i,label:t,scale:r="m"}){return m`<calcite-button appearance=solid .scale=${r} .disabled=${s} .iconStart=${e?"pause-f":"play-f"} .label=${t} @click=${i} round title=${t??U} type=button></calcite-button>`}function li({disabled:s,date:e,onDateChange:i,scale:t}){return m`<calcite-input-date-picker data-testid=daylight-date-picker .disabled=${s} overlay-positioning=fixed placement=bottom .value=${e} .scale=${t} @calciteInputDatePickerChange=${i}></calcite-input-date-picker>`}function ci({messages:s,disabled:e,scale:i,selectedSeason:t,onSeasonChange:r}){return m`<calcite-select .disabled=${e} .label=${s.season} .scale=${i} .value=${t} @calciteSelectChange=${n=>{r(n)}}>${ie.map(n=>m`<calcite-option .selected=${t===n} .value=${n}>${s[n]}</calcite-option>`)}</calcite-select>`}function di({messages:s,sunlightingEnabled:e,onSunLightingToggle:i,scale:t}){return m`<calcite-label layout=inline .scale=${t} title=${s?.tooltip??U}><calcite-checkbox .scale=${t} .checked=${e} @calciteCheckboxChange=${r=>i(r.target.checked)}></calcite-checkbox>${s?.label}</calcite-label>`}function hi({messages:s,shadowEnabled:e,onShadowCheckboxChange:i,scale:t}){return m`<calcite-label layout=inline .scale=${t} title=${s?.tooltip??U}><calcite-checkbox .checked=${e} @calciteCheckboxChange=${r=>i(r.target.checked)}></calcite-checkbox>${s.label}</calcite-label>`}le("arcgis-daylight",te);return te},"core/reactiveUtils","core/timeUtils","intl","views/3d/environment/SunLighting","views/3d/environment/VirtualLighting","applications/Components/reactiveUtils",a,b,c)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import a from"./SIT5NBLS.js";import{l as m}from"./ZCFWKPXL.js";import{h as g}from"./Q7GF26CL.js";import{R as c,Y as d,_ as p,a as s,b as l}from"./PQ7NUE5C.js";export default $arcgis.t(([{d:f,h:r}])=>{var h=s`@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{width:100%;div{width:100%}}arcgis-legend{--calcite-color-foreground-1: var(--calcite-color-transparent);--calcite-color-text-2: var(--arcgis-internal-layer-list-legend-color-text);width:100%;max-width:100%;min-width:0;box-sizing:border-box;overflow:hidden;overflow-y:auto}`,o=class extends c{constructor(){super(...arguments),this._disabled=null,this.content=this.item?.panel.content,this.listItem=this.item?.panel.listItem??this.item,this.autoDestroyDisabled=!1,this.arcgisPropertyChange=g()("listItem")}static{this.properties={_canCreateLegend:16,_legendLayerInfo:16,content:1,item:0,disabled:5,listItem:0,view:0,autoDestroyDisabled:5}}static{this.styles=h}get _canCreateLegend(){let{content:e,listItem:t}=this.item?.panel??{};if(!t||r(t))return!1;let i="legend";return e===i?!0:e!=null&&(Array.isArray(e)?e.includes(i):!1)}get _legendLayerInfo(){let e=this.item?.panel?.listItem?.layer;if(!e||e.type==="subtype-sublayer")return null;let t=m(e)?e:null,i=t?.source?.type==="map-layer"?t.source:null,a="layer"in e&&e.layer,n="";return i&&a?{layer:a,title:n,sublayerIds:[i.mapLayerId]}:{layer:e,title:n}}get disabled(){let{_legendElement:e}=this,{content:t,listItem:i}=this.item?.panel??{};return this._disabled!=null?this._disabled:i?Array.isArray(t)&&t.length>1?!1:e?!e.activeLayerInfos?.length||!i.visibleAtCurrentScale||!i.visible:!1:!0}set disabled(e){this._disabled=e}async destroy(){await this.manager.destroy()}updated(){this._loadLegend()}async _loadLegend(){this._canCreateLegend&&(this._legendElement||(this._legendElement=this._createLegendElement()))}_createLegendElement(){return d(l`<arcgis-legend .view=${this.view} @arcgisReady=${e=>e.stopPropagation()} .layerInfos=${this._legendLayerInfo?[this._legendLayerInfo]:[]}></arcgis-legend>`)}render(){return this._renderContents()}_renderContent(e){let{disabled:t}=this;return!e||t||!this.item?.panel?.open?null:e==="legend"?(this._legendElement||this._loadLegend(),this._legendElement):e instanceof HTMLElement||typeof e=="string"?e:null}_renderContents(){let{open:e}=this.item?.panel??{};if(!e)return null;let t=r(this.item)?f(this.item.panel.content):this.item?.panel?.content;return Array.isArray(t)?t.map(i=>this._renderContent(i)):this._renderContent(t)}};p("arcgis-layer-list-item-panel",o);return o},a)
2
+ import a from"./SIT5NBLS.js";import{l as m}from"./ZCFWKPXL.js";import{h as g}from"./Q7GF26CL.js";import{R as c,Y as d,_ as p,a as s,b as l}from"./PQ7NUE5C.js";export default $arcgis.t(([{d:f,h:r}])=>{var h=s`@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{width:100%;div{width:100%}}arcgis-legend{--calcite-color-foreground-1: var(--calcite-color-transparent);--calcite-color-text-2: var(--arcgis-internal-layer-list-legend-color-text);width:100%;max-width:100%;min-width:0;box-sizing:border-box;overflow:hidden;overflow-y:auto}`,o=class extends c{constructor(){super(...arguments),this._disabled=null,this.content=this.item?.panel.content,this.listItem=this.item?.panel.listItem??this.item,this.autoDestroyDisabled=!1,this.arcgisPropertyChange=g()("listItem")}static{this.properties={_canCreateLegend:16,_legendLayerInfo:16,content:1,item:0,disabled:5,listItem:0,view:0,autoDestroyDisabled:5}}static{this.styles=h}get _canCreateLegend(){let{content:e,listItem:t}=this.item?.panel??{};if(!t||r(t))return!1;let i="legend";return e===i?!0:e!=null&&(Array.isArray(e)?e.includes(i):!1)}get _legendLayerInfo(){let e=this.item?.panel?.listItem?.layer;if(!e||e.type==="subtype-sublayer")return null;let t=m(e)?e:null,i=t?.source?.type==="map-layer"?t.source:null,a="layer"in e&&e.layer,n="";return i&&a?{layer:a,title:n,sublayerIds:[i.mapLayerId]}:{layer:e,title:n}}get disabled(){let{_legendElement:e}=this,{content:t,listItem:i}=this.item?.panel??{};return this._disabled!=null?this._disabled:i?Array.isArray(t)&&t.length>1?!1:e?!e.activeLayerInfos?.length||!i.visibleAtCurrentScale||!i.visible:!1:!0}set disabled(e){this._disabled=e}async destroy(){await this.manager.destroy()}updated(){this.#e()}async#e(){this._canCreateLegend&&(this._legendElement||(this._legendElement=this.#i()))}#i(){return d(l`<arcgis-legend .view=${this.view} @arcgisReady=${e=>e.stopPropagation()} .layerInfos=${this._legendLayerInfo?[this._legendLayerInfo]:[]}></arcgis-legend>`)}render(){return this.#r()}#t(e){let{disabled:t}=this;return!e||t||!this.item?.panel?.open?null:e==="legend"?(this._legendElement||this.#e(),this._legendElement):e instanceof HTMLElement||typeof e=="string"?e:null}#r(){let{open:e}=this.item?.panel??{};if(!e)return null;let t=r(this.item)?f(this.item.panel.content):this.item?.panel?.content;return Array.isArray(t)?t.map(i=>this.#t(i)):this.#t(t)}};p("arcgis-layer-list-item-panel",o);return o},a)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import u from"./V7DMA5ZO.js";import"./EVWWTIEQ.js";import{a as Q}from"./4L43F7HU.js";import t from"./AIF4MCBB.js";import s from"./SIT5NBLS.js";import o from"./BFYJTV6Q.js";import{a as S,b as U,g as G,h as L,j as H,k as q,m as c,n as $}from"./ZCFWKPXL.js";import{a as N}from"./WVKMYNN7.js";import{a as m}from"./5GFPOTOB.js";import n from"./GEOME3IC.js";import l from"./HU57LQOA.js";import j from"./BOPNSNUT.js";import"./WJQUE4DR.js";import i from"./QVJ2FUNW.js";import{a as B}from"./REB4CHAK.js";import{a as _}from"./L5IRXOCJ.js";import{a as k}from"./7Y4SF2NT.js";import h from"./7ILT5PDJ.js";import f from"./7JPHMESH.js";import e from"./OLY5EME5.js";import{h as x}from"./Q7GF26CL.js";import"./U77WHUC6.js";import a from"./SI2DEXWH.js";import{a as P}from"./LXME6MU5.js";import{B as R,P as d,Q as p,R as C,T as g,X as y,Y as v,_ as A,a as M,b as r,x as b}from"./PQ7NUE5C.js";import"./TAVTDQ6S.js";export default $arcgis.t(([se,w,{on:ae,watch:le},,,,D,O,,,,,{k:j},,{a:z,b:J,c:K}])=>{var u={...Q,section:"section",editing:"editing",editingForm:"editing-form"},re=M`:host{--arcgis-layer-list-visibility-icon: hidden}.editing-form{display:flex;height:100%;flex:1}.editing{padding-block:var(--calcite-spacing-sm);padding-inline:var(--calcite-spacing-sm)}`,V="nested",oe=".*\\S+.*",W="data-basemap-layer-type",ne=O(se),F=class extends C{constructor(){super(...arguments),this._baseListRef=d(),this._referenceListRef=d(),this._editTitleInputRef=d(),this._layerFlowItemRef=d(),this._panelFlowItemRef=d(),this._rootFlowItemRef=d(),this._editingFlowItemRef=d(),this.#t=null,this._selectedDragItemLayerUid=null,this._rootGroupUid=`basemap-${R()}`,this.#i=null,this._focusRootFlowItem=!1,this._focusPanelFlowItem=!1,this._focusLayerFlowItem=null,this._focusEditingFlowItem=!1,this.messages=B(),this.viewModel=ne(this),this.arcgisClose=k(this),this._canMove=({dragEl:e,fromEl:t,toEl:i},s)=>{let a=s==="pull"?this.listItemCanGiveFunction:this.listItemCanReceiveFunction,o=c(e,this._allItems);if(!o?.sortable)return!1;let l=c(t,this._allItems),n=$(t),h=c(i,this._allItems),f=$(i),I=!!n&&!!f&&n===f,Y={selected:o,from:l,to:h},Z=t.group,ee=i.group,te=l?.layer?.type??"",ie=h?.layer?.type??"",T=new Set(["map-image","catalog","knowledge-graph"]);return Z&&ee&&typeof a=="function"?a(Y):I&&!T.has(te)&&!T.has(ie)&&o.layer?.type!=="sublayer"},this._onTriggerAction=(e,t)=>{this.triggerAction(e,t)},this._onTooltipReferenceChange=(e,t)=>{t?this._tooltipReferenceMap.set(e,t):this._tooltipReferenceMap.delete(e)},this._onTablesOpen=e=>{this.openedLayers.push(e.layer),this._focusLayerFlowItem=e.layer?.uid??null},this._onCatalogOpen=e=>{this.openedLayers.push(e.layer?.parent),this._focusLayerFlowItem=e.layer?.uid??null},this._onPanelOpen=()=>{this._focusPanelFlowItem=!0},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(i=>i.classList?.contains(u.item));this._activeItem=c(t,this._allItems)??null},this._onSelectedDragItemLayerUidChange=e=>{this._selectedDragItemLayerUid=e},this._toggleEditingTitle=()=>{let e=!this.editingTitle;this.editingTitle=e,e?this._focusEditingFlowItem=!0:this._focusRootFlowItem=!0},this._formSubmit=e=>{e.preventDefault();let t=this._editTitleInputRef.value?.value;t?.trim()&&(this.basemapTitle=t),this._toggleEditingTitle()},this._activeItem=null,this._tooltipReferenceMap=new Map,this._layerListMap=new Map,this.openedLayerLists=new w,this.autoDestroyDisabled=!1,this.baseFilterText="",this.baseItemCreatedFunction=this.viewModel.baseItemCreatedFunction,this.basemapTitle=this.viewModel.basemapTitle,this.closed=!1,this.collapsed=!1,this.dragEnabled=!1,this.editingTitle=!1,this.filterPlaceholder="",this.headingLevel=2,this.hideBaseLayers=!1,this.hideCatalogLayerList=!1,this.hideHeading=!1,this.hideNoFilterResultsNotice=!1,this.hideNoItemsNotice=!1,this.hideReferenceLayers=!1,this.hideStatusIndicators=!1,this.icon="layers",this.layerTablesEnabled=new w(["knowledge-graph"]),this.listModeDisabled=this.viewModel.listModeDisabled,this.minFilterItems=U,this.openedLayers=new w,this.referenceFilterText="",this.referenceItemCreatedFunction=this.viewModel.referenceItemCreatedFunction,this.selectedItems=new w,this.selectionMode="none",this.showCloseButton=!1,this.showCollapseButton=!1,this.showEditTitleButton=!1,this.showErrors=!1,this.showFilter=!1,this.showTemporaryLayerIndicators=!1,this.state=this.viewModel.state,this.view=this.viewModel.view,this.visibilityAppearance="default",this.arcgisBaseFilterChange=b(),this.arcgisOpenedLayersChange=b(),this.arcgisPropertyChange=x()("state"),this.arcgisReady=b(),this.arcgisReferenceFilterChange=b(),this.arcgisTriggerAction=D(()=>this.viewModel,"trigger-action")}static{this.properties={_activeItem:16,_catalogLayerList:16,_tableList:16,_tooltipReferenceMap:16,_layerListMap:16,openedLayerLists:16,_allItems:16,_visibleBaseItems:16,_visibleReferenceItems:16,_openedPanelItems:16,_totalBaseItems:16,_totalReferenceItems:16,_baseFilterEnabled:16,_referenceFilterEnabled:16,_renderedOpenLayerFlowItems:16,autoDestroyDisabled:5,baseFilterPredicate:0,baseFilterText:1,baseItemCreatedFunction:0,baseItems:32,basemapTitle:1,catalogLayerList:32,catalogOptions:0,closed:5,collapsed:7,dragEnabled:5,editingTitle:5,filterPlaceholder:1,headingLevel:9,hideBaseLayers:5,hideCatalogLayerList:5,hideHeading:5,hideNoFilterResultsNotice:5,hideNoItemsNotice:5,hideReferenceLayers:5,hideStatusIndicators:5,icon:1,knowledgeGraphOptions:0,label:1,layerTablesEnabled:0,listItemCanGiveFunction:0,listItemCanReceiveFunction:0,listModeDisabled:5,mapImageOptions:0,messageOverrides:0,minFilterItems:9,openedLayers:32,referenceElement:1,referenceFilterPredicate:0,referenceFilterText:1,referenceItems:32,referenceItemCreatedFunction:0,selectedItems:0,selectionMode:1,showCloseButton:5,showCollapseButton:5,showEditTitleButton:5,showErrors:5,showFilter:5,showTemporaryLayerIndicators:5,state:32,tableList:32,tileOptions:0,view:0,visibilityAppearance:1}}static{this.styles=[K,re,J]}#t;#i;get _allItems(){return this.referenceItems.concat(this.baseItems)}get _visibleBaseItems(){return this.baseItems.filter(e=>!e.hidden&&(this.showErrors||!e.error))}get _visibleReferenceItems(){return this.referenceItems.filter(e=>!e.hidden&&(this.showErrors||!e.error))}get _openedPanelItems(){return this._visibleReferenceItems.concat(this._visibleBaseItems).flatten(e=>e.children).filter(({hidden:e,panel:t})=>!e&&t?.open&&!t.disabled&&t.flowEnabled)}get _totalBaseItems(){return this.viewModel.baseItems.flatten(e=>e.children.filter(t=>t.layer?.type!=="catalog-dynamic-group")).length}get _totalReferenceItems(){return this.viewModel.referenceItems.flatten(e=>e.children.filter(t=>t.layer?.type!=="catalog-dynamic-group")).length}get _baseFilterEnabled(){return this._totalBaseItems>=this.minFilterItems&&this.showFilter}get _referenceFilterEnabled(){return this._totalReferenceItems>=this.minFilterItems&&this.showFilter}get _renderedOpenLayerFlowItems(){return this.openedLayers.toArray().map((e,t)=>this.#L(e,t===this.openedLayers.length-1))}get baseItems(){return this.viewModel.baseItems}get catalogLayerList(){return this._catalogLayerList}get referenceItems(){return this.viewModel.referenceItems}get tableList(){return this._tableList}async destroy(){await this.manager.destroy(),this.#n(),this._tooltipReferenceMap.clear()}loaded(){this.manager.onLifecycle(()=>[ae(()=>this.openedLayers,"change",()=>{this.#o()},{initial:!0}),le(()=>[this.viewModel.referenceItems.toArray(),this.viewModel.baseItems.toArray()],()=>G(this.selectedItems),{initial:!0})])}updated(){L(this._baseListRef.value,this.baseFilterPredicate,this.baseItems),L(this._referenceListRef.value,this.referenceFilterPredicate,this.referenceItems)}triggerAction(e,t){this.viewModel.triggerAction(e,t)}async#r(e,t){let i=this._layerListMap.get(e);if(i)return i;let s=e.type==="catalog"?await this.#h(e):await this._createTableList(e);return t.aborted||this._layerListMap.set(e,s),s}async#o(){let{_layerListMap:e,openedLayers:t,openedLayerLists:i}=this;this.#i?.abort();let s=new AbortController,{signal:a}=s;this.#i=s,e.forEach((n,h)=>{t.includes(h)||(n?.destroy?.(),e.delete(h))});let o=await Promise.all(t.map(n=>this.#r(n,a)));if(a.aborted)return;i.removeAll(),i.addMany(o);let l=i.at(-1);l?"catalogLayer"in l?(this._catalogLayerList=l,this._tableList=void 0):(this._catalogLayerList=void 0,this._tableList=l):(this._catalogLayerList=void 0,this._tableList=void 0),this.arcgisOpenedLayersChange.emit()}#n(){this.openedLayerLists.destroyAll(),this.openedLayers.removeAll(),this._layerListMap.clear()}async#h(e){let{headingLevel:t,catalogOptions:i,filterPlaceholder:s,minFilterItems:a,selectionMode:o,visibilityAppearance:l,layerTablesEnabled:n}=this;return v(r`<arcgis-catalog-layer-list-next .headingLevel=${t} .filterPlaceholder=${i?.filterPlaceholder??s} .listItemCreatedFunction=${i?.listItemCreatedFunction} .minFilterItems=${i?.minFilterItems??a} .selectionMode=${i?.selectionMode??o} .visibilityAppearance=${i?.visibilityAppearance??l} .showErrors=${i?.showErrors??this.showErrors} .showFilter=${i?.showFilter??this.showFilter} .hideStatusIndicators=${i?.hideStatusIndicators??this.hideStatusIndicators} .showTemporaryLayerIndicators=${i?.showTemporaryLayerIndicators??this.showTemporaryLayerIndicators} @arcgisReady=${h=>h.stopPropagation()} .catalogLayer=${e} .layerTablesEnabled=${n} .view=${this.view} .referenceElement=${this.referenceElement} @catalogOpen=${this._onCatalogOpen} @tablesOpen=${this._onTablesOpen}></arcgis-catalog-layer-list-next>`)}#c(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 t=this.#c(e);return v(r`<arcgis-table-list-next .headingLevel=${t?.headingLevel??this.headingLevel} .selectionMode=${t?.selectionMode??this.selectionMode} .dragEnabled=${t?.dragEnabled??this.dragEnabled} .collapsed=${t?.collapsed} .filterPlaceholder=${t?.filterPlaceholder} .filterText=${t?.filterText} .icon=${t?.icon??void 0} .label=${t?.label??void 0} .listItemCreatedFunction=${t?.listItemCreatedFunction} .tables=${t?.tables} .referenceElement=${this.referenceElement} @arcgisReady=${i=>i.stopPropagation()}></arcgis-table-list-next>`)}#d(e){e.open=!1,this._focusRootFlowItem=!0}#m({toEl:e,fromEl:t,dragEl:i,newIndex:s}){let a=c(i,this._allItems),o=e.hasAttribute("data-item")?c(e,this._allItems):null,l=t.hasAttribute("data-item")?c(t,this._allItems):null,n=X(t),h=X(e);s==null||!a||!n||!h||(this.viewModel.moveItem({targetItem:a,fromParentItem:l,toParentItem:o,newIndex:s,from:n,to:h}),j(this,a.uid,f=>f.parentElement?.closest("calcite-list")===e))}#p(e){let{fromEl:t,toEl:i,dragEl:s,oldIndex:a}=e;if(t!==i){s.remove();return}a==null||!t||!s||t.insertBefore(s,t.children[a])}_onCalciteListOrderChange(e){let t=this.#t,{toEl:i,fromEl:s,dragEl:a,newIndex:o}=e,l=t?.newIndex===o&&t?.dragEl===a&&t?.toEl===i&&t?.fromEl===s;if(!s||!i||l)return;this.#t=e,this._selectedDragItemLayerUid=a.value.layer?.uid??null;let n=s,h=i;if(n===h){let f=Array.from(s.children).filter(I=>I?.matches("calcite-list-item")).map(I=>I.value.layer?.uid??"");this._sortLayers(n,f);return}this.#m({toEl:h,fromEl:n,dragEl:a,newIndex:o})}_sortLayers(e,t){if(e===this._referenceListRef.value||e===this._baseListRef.value){let s=e===this._baseListRef.value?this.view?.map?.basemap?.baseLayers:this.view?.map?.basemap?.referenceLayers;H(s,t);return}let i=c(e,this._allItems);i&&q(i,t)}#g(e){if(this.selectionMode==="none")return;let t=e.target.selectedItems.map(i=>c(i,this._allItems)).filter(Boolean);this.selectedItems.removeAll(),this.selectedItems.addMany(t)}#e(e,t){return!t||!e?t:(e.setFocus(),!1)}render(){let e={[_.hidden]:this.state==="loading",[_.disabled]:this.state==="disabled"};return r`<div class=${g(P(_.widget,_.panel,e))}>${this.#w()}${this.#f()}</div>`}#u(e){return e?r`<calcite-tooltip overlay-positioning=fixed .referenceElement=${this._tooltipReferenceMap.get(e.layer?.uid??"")}>${this.messages.layerIncompatibleTooltip}</calcite-tooltip>`:null}#s(e){if(e.incompatible)return this.#u(e);let t=e.children?.filter(i=>!i.hidden).toArray().map(i=>this.#s(i));return t?.length?t:null}#f(){return this._visibleReferenceItems.concat(this._visibleBaseItems).toArray().map(e=>this.#s(e))}#a(e){return r`<div slot=message>${e}</div>`}#y(e,t){return this.hideNoItemsNotice?null:r`<div class=${g(u.itemMessage)}>${m(t,r`<calcite-notice icon=information kind=info open width=full>${this.#a(e)}</calcite-notice>`)}</div>`}#I(){return r`<div class=${g(u.editing)}><calcite-label>${this.messages.basemapTitle}<calcite-input .label=${this.messages.basemapTitle} name=basemaptitle .pattern=${oe} .placeholder=${this.messages.basemapTitle} required title=${this.messages.basemapTitle??y} type=text .value=${this.viewModel.basemapTitle??void 0} ${p(this._editTitleInputRef)}></calcite-input></calcite-label></div>`}#b(){return this.editingTitle?r`<calcite-flow-item .heading=${this.hideHeading?void 0:this.messages.basemapTitle} .headingLevel=${this.headingLevel} .selected=${!this.openedLayers.length&&!this._openedPanelItems.length} @calciteFlowItemBack=${e=>{e.preventDefault(),this._toggleEditingTitle()}} ${p(this._editingFlowItemRef)}>${this.#I()}<calcite-button appearance=outline @click=${this._toggleEditingTitle} slot=footer-actions width=full>${this.messages.cancel}</calcite-button><calcite-button slot=footer-actions type=submit width=full>${this.messages.ok}</calcite-button></calcite-flow-item>`:null}#_(){return this.showEditTitleButton&&!this.editingTitle?r`<calcite-action icon=pencil @click=${this._toggleEditingTitle} slot=header-actions-end .text=${this.messages.edit??""} title=${this.messages.edit??y}></calcite-action>`:null}#w(){let e=[m("root-flow-item",r`<calcite-flow-item .closable=${this.showCloseButton} .closed=${this.closed} .collapsed=${this.collapsed} .collapsible=${this.showCollapseButton} .heading=${this.hideHeading?void 0:this.viewModel.basemapTitle??this.messages.componentLabel} .headingLevel=${this.headingLevel} .selected=${!this.editingTitle&&!this.openedLayers.length&&!this._openedPanelItems.length} @calciteFlowItemClose=${()=>{this.closed=!0}} ${p(this._rootFlowItemRef)}>${this.#_()}${this.#F()}${this.#$()}</calcite-flow-item>`),this.#b(),this.#v(),this._renderedOpenLayerFlowItems];this._focusRootFlowItem=this.#e(this._rootFlowItemRef.value,this._focusRootFlowItem),this._focusEditingFlowItem=this.#e(this._editingFlowItemRef.value,this._focusEditingFlowItem);let t=m("root-flow",r`<calcite-flow>${e}</calcite-flow>`);return this.closed?null:this.editingTitle?r`<form class=${g(u.editingForm)} @submit=${this._formSubmit}>${t}</form>`:t}#v(){return N(this._openedPanelItems.toArray(),e=>e.uid,(e,t)=>{let{panel:i,title:s}=e,a=()=>this.#d(i);return this._focusPanelFlowItem=this.#e(this._panelFlowItemRef.value,this._focusPanelFlowItem),r`<calcite-flow-item .description=${s} .heading=${i.title} .headingLevel=${this.headingLevel} .selected=${!this.openedLayers.length&&t===this._openedPanelItems.length-1} @calciteFlowItemBack=${o=>{o.preventDefault(),a()}} ${p(this._panelFlowItemRef)}><arcgis-layer-list-item-panel .item=${e} .view=${this.view}></arcgis-layer-list-item-panel><calcite-button appearance=transparent @click=${a} slot=footer-actions width=full>${this.messages.back}</calcite-button></calcite-flow-item>`})}#L(e,t){let i=e.title||this.messages.untitledLayer;return this._focusLayerFlowItem===e.uid&&(this._focusLayerFlowItem=this.#e(this._layerFlowItemRef.value,!0)?e.uid:null),m(e.uid,r`<calcite-flow-item data-layer-uid=${e.uid??y} .description=${i} .heading=${this.messages[e.type==="catalog"?"catalogLayers":"tables"]} .headingLevel=${this.headingLevel} .selected=${t} @calciteFlowItemBack=${s=>{s.preventDefault(),this.openedLayers.pop();let a=this.openedLayers.at(-1);a?this._focusLayerFlowItem=a.uid:this._focusRootFlowItem=!0}} ${p(this._layerFlowItemRef)}>${this._layerListMap.get(e)}</calcite-flow-item>`)}#l(e,t,i){let s=t==="reference"?this._referenceFilterEnabled:this._baseFilterEnabled,a=t==="reference"?this.referenceFilterText:this.baseFilterText,o=(t==="reference"?this.messages.noReferenceLayers:this.messages.noBaseLayers)??this.messages.noItemsToDisplay??"";return m(`block-${t}`,r`<calcite-block class=${g(u.section)} expandable expanded .heading=${t==="reference"?this.messages.referenceHeading:this.messages.baseHeading} .headingLevel=${this.headingLevel+1}>${e?.length?null:this.#y(o,t)}${m(`list-${t}`,r`<calcite-list @focusin=${this._setActiveItem} @focusout=${this._clearActiveItem} .canPull=${l=>this._canMove(l,"pull")} .canPut=${l=>this._canMove(l,"put")} data-basemap-layer-type=${t??y} data-layer-type=${this._rootGroupUid??y} .displayMode=${V} .dragEnabled=${this.dragEnabled} .filterEnabled=${s} .filterPlaceholder=${this.filterPlaceholder} .filterProps=${S} .filterText=${s?a:""} .group=${this._rootGroupUid} .label=${this.messages.componentLabel??""} @mouseleave=${this._clearActiveItem} @mouseover=${this._setActiveItem} selection-appearance=border .selectionMode=${this.selectionMode} @calciteListChange=${this.#g} @calciteListDragEnd=${l=>this.#p(l.detail)} @calciteListFilter=${l=>{let n=l.currentTarget?.filterText??"";this[t==="reference"?"referenceFilterText":"baseFilterText"]=n,t==="base"?this.arcgisBaseFilterChange.emit():this.arcgisReferenceFilterChange.emit()}} @calciteListOrderChange=${l=>this._onCalciteListOrderChange(l.detail)} ${p(t==="reference"?this._referenceListRef:this._baseListRef)}>${e?.toArray().map(l=>this.#E(l,i))}${s&&!this.hideNoFilterResultsNotice?r`<div class=${g(u.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this.#a(o)}</calcite-notice></div>`:null}</calcite-list>`)}</calcite-block>`)}#$(){return this.hideBaseLayers?null:this.#l(this._visibleBaseItems,"base",this._visibleBaseItems.length===1)}#F(){return this.hideReferenceLayers?null:this.#l(this._visibleReferenceItems,"reference",!1)}#E(e,t,i,s){return m(e.uid,z({activeItem:this._activeItem,canMove:this._canMove,css:u,displayMode:V,dragEnabled:this.dragEnabled&&!t,hideCatalogLayerList:this.hideCatalogLayerList,hideStatusIndicators:this.hideStatusIndicators,item:e,layerTablesEnabled:this.layerTablesEnabled,listModeDisabled:this.viewModel.listModeDisabled,messages:this.messages,operationalItems:this._allItems,parent:i,parentTitles:s,rootGroupUid:this._rootGroupUid,selectedDragItemLayerUid:this._selectedDragItemLayerUid,selectedItems:this.selectedItems,selectionMode:this.selectionMode,setCurrentActiveItem:this._setCurrentActiveItem,clearActiveItem:this._clearActiveItem,showErrors:this.showErrors,showTemporaryLayerIndicators:this.showTemporaryLayerIndicators,visibilityAppearance:this.visibilityAppearance,handleAction:this._onTriggerAction,handleCatalogOpen:this._onCatalogOpen,handlePanelOpen:this._onPanelOpen,handleSelectedDragItemLayerUidChange:this._onSelectedDragItemLayerUidChange,handleTablesOpen:this._onTablesOpen,handleTooltipReferenceChange:this._onTooltipReferenceChange,view:this.view}))}};function X(E){let e=E.closest(`[${W}]`)?.getAttribute(W);return e==="base"||e==="reference"?e:null}A("arcgis-basemap-layer-list-next",F);return F},"layerList/BasemapLayerListModel","core/Collection","core/reactiveUtils",a,e,f,h,i,j,l,n,o,s,t,u)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{a as i}from"./4L43F7HU.js";import{e as y}from"./ZCFWKPXL.js";import{h as f}from"./Q7GF26CL.js";import{a as d}from"./LXME6MU5.js";import{Q as m,R as u,T as p,X as g,_ as h,a as l,b as o}from"./PQ7NUE5C.js";var v=l`:host{margin-inline:var(--calcite-space-sm)}.status-indicator{visibility:hidden}.publishing{visibility:visible;color:var(--calcite-color-text-2);transform-origin:var(--calcite-list-item-icon-center) var(--calcite-list-item-icon-center);animation:2s infinite arcgis-layer-list__publishing-anim}.updating{visibility:visible;animation:2s infinite arcgis-layer-list__updating-anim}.connection-status{visibility:visible;color:var(--calcite-color-status-warning);width:var(--calcite-spacing-xl);height:var(--calcite-spacing-xl)}.connection-status--connected{color:var(--calcite-color-status-success)}@keyframes arcgis-layer-list__updating-anim{0%,40%{color:transparent}50%,80%{color:var(--calcite-color-brand)}to{color:transparent}}@keyframes arcgis-layer-list__publishing-anim{0%,20%{transform:rotate(45deg)}80%,to{transform:rotate(135deg)}}`,r=class extends u{constructor(){super(...arguments),this.autoDestroyDisabled=!1,this.arcgisPropertyChange=f()("item","parent")}static{this.properties={_iconEl:16,item:0,parent:0,messages:0,autoDestroyDisabled:5}}static{this.styles=[v]}async destroy(){await this.manager.destroy()}_setIconEl(s){this._iconEl=s}getTooltipText(s,a,n,t){let e=c=>typeof c=="string"?c:"";if(s)return e(t?.publishing);if(a)return e(t?.updating);switch(n){case"connected":return e(t?.connected);case"paused":return e(t?.paused);default:return e(t?.disconnected)}}render(){if(!this.item)return null;let s="publishing"in this.item&&this.item.publishing,a="updating"in this.item&&this.item.updating&&!this.parent,n="connectionStatus"in this.item?this.item.connectionStatus:void 0,t=!!n,e=s||a||t?y({connectionStatus:n,publishing:s}):"blank",{messages:c}=this,b=this.getTooltipText(s,a,n,c);return o`<calcite-icon class=${p(d(i.statusIndicator,{[i.publishing]:s},"updating"in i&&{[i.updating]:a},"connectionStatus"in i&&{[i.connectionStatus]:t},"connectionStatusConnected"in i&&{[i.connectionStatusConnected]:t&&n==="connected"}))} title=${c?.connectionStatus??g} .icon=${e} scale=s ${m(this._setIconEl)}></calcite-icon>${this._iconEl?o`<calcite-tooltip placement=top .referenceElement=${this._iconEl}>${b}</calcite-tooltip>`:null}`}};h("arcgis-layer-list-item-indicator",r);export{r as a};
2
+ import{a as i}from"./4L43F7HU.js";import{e as y}from"./ZCFWKPXL.js";import{h as f}from"./Q7GF26CL.js";import{a as d}from"./LXME6MU5.js";import{Q as m,R as u,T as p,X as g,_ as h,a as l,b as o}from"./PQ7NUE5C.js";var v=l`:host{margin-inline:var(--calcite-space-sm)}.status-indicator{visibility:hidden}.publishing{visibility:visible;color:var(--calcite-color-text-2);transform-origin:var(--calcite-list-item-icon-center) var(--calcite-list-item-icon-center);animation:2s infinite arcgis-layer-list__publishing-anim}.updating{visibility:visible;animation:2s infinite arcgis-layer-list__updating-anim}.connection-status{visibility:visible;color:var(--calcite-color-status-warning);width:var(--calcite-spacing-xl);height:var(--calcite-spacing-xl)}.connection-status--connected{color:var(--calcite-color-status-success)}@keyframes arcgis-layer-list__updating-anim{0%,40%{color:transparent}50%,80%{color:var(--calcite-color-brand)}to{color:transparent}}@keyframes arcgis-layer-list__publishing-anim{0%,20%{transform:rotate(45deg)}80%,to{transform:rotate(135deg)}}`,r=class extends u{constructor(){super(...arguments),this.autoDestroyDisabled=!1,this.arcgisPropertyChange=f()("item","parent")}static{this.properties={_iconEl:16,item:0,parent:0,messages:0,autoDestroyDisabled:5}}static{this.styles=[v]}async destroy(){await this.manager.destroy()}#t(s){this._iconEl=s}getTooltipText(s,a,n,t){let e=c=>typeof c=="string"?c:"";if(s)return e(t?.publishing);if(a)return e(t?.updating);switch(n){case"connected":return e(t?.connected);case"paused":return e(t?.paused);default:return e(t?.disconnected)}}render(){if(!this.item)return null;let s="publishing"in this.item&&this.item.publishing,a="updating"in this.item&&this.item.updating&&!this.parent,n="connectionStatus"in this.item?this.item.connectionStatus:void 0,t=!!n,e=s||a||t?y({connectionStatus:n,publishing:s}):"blank",{messages:c}=this,b=this.getTooltipText(s,a,n,c);return o`<calcite-icon class=${p(d(i.statusIndicator,{[i.publishing]:s},"updating"in i&&{[i.updating]:a},"connectionStatus"in i&&{[i.connectionStatus]:t},"connectionStatusConnected"in i&&{[i.connectionStatusConnected]:t&&n==="connected"}))} title=${c?.connectionStatus??g} .icon=${e} scale=s ${m(this.#t)}></calcite-icon>${this._iconEl?o`<calcite-tooltip placement=top .referenceElement=${this._iconEl}>${b}</calcite-tooltip>`:null}`}};h("arcgis-layer-list-item-indicator",r);export{r as a};
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import n from"./V7DMA5ZO.js";import{a as k}from"./4L43F7HU.js";import l from"./SIT5NBLS.js";import j from"./BFYJTV6Q.js";import{a as x,b as N,c as R,g as B}from"./ZCFWKPXL.js";import{a as U}from"./WVKMYNN7.js";import{a as I}from"./5GFPOTOB.js";import i from"./GEOME3IC.js";import h from"./HU57LQOA.js";import g from"./BOPNSNUT.js";import"./WJQUE4DR.js";import f from"./QVJ2FUNW.js";import{a as T}from"./REB4CHAK.js";import{a as m}from"./L5IRXOCJ.js";import e from"./7ILT5PDJ.js";import c from"./7JPHMESH.js";import b from"./OLY5EME5.js";import{h as D}from"./Q7GF26CL.js";import"./U77WHUC6.js";import a from"./SI2DEXWH.js";import{a as F}from"./LXME6MU5.js";import{B as y,P as M,Q as E,R as _,T as p,X as C,_ as L,b as o,x as d}from"./PQ7NUE5C.js";import"./TAVTDQ6S.js";export default $arcgis.t(([j,{watch:w,on:q},V,,,,A,P,,,,,,{a:S,b:G,c:O}])=>{var v=k,H="nested",J=P(V),$=class extends _{constructor(){super(...arguments),this.#t=null,this._rootGroupUid=`table-${y()}`,this._rootListRef=M(),this._selectedDragItemLayerUid=null,this.messages=T(),this.viewModel=J(this),this._canMove=({dragEl:e,fromEl:t,toEl:i},s)=>{let l=s==="pull"?this.listItemCanGiveFunction:this.listItemCanReceiveFunction,a=this.#e(e);if(!a||!("sortable"in a)||!a.sortable)return!1;let c=this.#e(t),h=this.#i(t),n=this.#e(i),g=this.#i(i),f=!!h&&!!g&&h===g,u={selected:a,from:c,to:n},b=t?.group,r=i?.group;return b&&r&&typeof l=="function"?l(u):f},this._onPanelOpen=()=>{this.requestUpdate()},this._onSelectedDragItemLayerUidChange=e=>{this._selectedDragItemLayerUid=e},this._onTriggerAction=(e,t)=>{this.triggerAction(e,t)},this.autoDestroyDisabled=!1,this.closed=!1,this.collapsed=!1,this.dragEnabled=!1,this.filterPlaceholder="",this.filterText="",this.headingLevel=2,this.hideNoFilterResultsNotice=!1,this.hideNoItemsNotice=!1,this.hideStatusIndicators=!1,this.icon="table",this.listItemCreatedFunction=this.viewModel.listItemCreatedFunction,this.listModeDisabled=this.viewModel.listModeDisabled,this.map=this.viewModel.map,this.minDragEnabledItems=R,this.minFilterItems=N,this.selectedItems=new j,this.selectionMode="none",this.showCloseButton=!1,this.showCollapseButton=!1,this.showErrors=!1,this.showFilter=!1,this.showHeading=!1,this.showTemporaryTableIndicators=!1,this.tables=this.viewModel.tables,this.arcgisClose=d(),this.arcgisFilterChange=d(),this.arcgisPropertyChange=D()("state"),this.arcgisReady=d(),this.arcgisSelectedItemsChange=d(),this.arcgisTableItemsChanged=d(),this.arcgisTriggerAction=A(()=>this.viewModel,"trigger-action")}static{this.properties={_visibleItems:16,_openedPanelItems:16,_dragEnabled:16,_filterEnabled:16,autoDestroyDisabled:5,closed:5,collapsed:7,dragEnabled:5,filterPlaceholder:1,filterPredicate:0,filterText:1,headingLevel:9,hideNoFilterResultsNotice:5,hideNoItemsNotice:5,hideStatusIndicators:5,icon:1,label:1,listItemCanGiveFunction:0,listItemCanReceiveFunction:0,listItemCreatedFunction:0,listModeDisabled:5,map:0,messageOverrides:0,minDragEnabledItems:9,minFilterItems:9,referenceElement:1,selectedItems:0,selectionMode:1,showCloseButton:5,showCollapseButton:5,showErrors:5,showFilter:5,showHeading:5,showTemporaryTableIndicators:5,state:32,tableItems:32,tables:0,view:0}}static{this.styles=[O,G]}#t;get _visibleItems(){return this.tableItems?.filter(e=>!e.hidden&&(this.showErrors||!e.error))}get _openedPanelItems(){return this._visibleItems.filter(({hidden:e,panel:t})=>!e&&t?.open&&!t.disabled&&t.flowEnabled)}get _dragEnabled(){return this.viewModel.totalItems>=this.minDragEnabledItems&&this.dragEnabled}get _filterEnabled(){return this.viewModel.totalItems>=this.minFilterItems&&this.showFilter}get state(){return this.viewModel.state}get tableItems(){return this.viewModel.tableItems}async destroy(){await this.manager.destroy()}willUpdate(e){e.has("map")&&(this.viewModel.map=this.map),e.has("tables")&&(this.viewModel.tables=this.tables),e.has("listItemCreatedFunction")&&(this.viewModel.listItemCreatedFunction=this.listItemCreatedFunction)}loaded(){this.manager.onLifecycle(()=>[w(()=>this.view?.map,e=>{this.map||(this.viewModel.map=e)},{initial:!0}),q(()=>this.viewModel.tableItems,"change",()=>{B(this.selectedItems),this.arcgisTableItemsChanged.emit(),this.requestUpdate()},{initial:!0}),q(()=>this.selectedItems,"change",()=>this.arcgisSelectedItemsChange.emit()),w(()=>[this.viewModel.state,this.viewModel.totalItems],()=>this.requestUpdate(),{initial:!0}),w(()=>[this.filterPredicate,this._rootListRef.value],()=>this.#a())])}triggerAction(e,t){return this.viewModel.triggerAction(e,t)}#e(e){if(e?.tagName.toLowerCase()==="calcite-list-item")return e.value;let t=e?.getAttribute("data-item");return t?this.#l(t):null}#l(e){let t=this.tableItems?.toArray()??[];for(;t.length;){let i=t.shift();if(i){if(i.uid===e)return i;t.push(...i.children?.toArray()??[])}}return null}#i(e){return e?.getAttribute("data-layer-type")??null}#a(){let e=this._rootListRef.value;e&&(e.filterPredicate=this.filterPredicate?t=>{let i=this.#e(t);return i?this.filterPredicate(i):!1}:void 0)}#r(e){e.open=!1}#o(e,t){e?.sort((i,s)=>{let l=i.uid!=null?t.indexOf(i.uid):-1,a=s.uid!=null?t.indexOf(s.uid):-1;return l>a?-1:l<a?1:0})}#n(e){let{fromEl:t,dragEl:i,oldIndex:s}=e;s==null||!t||!i||t.insertBefore(i,t.children[s])}#h(e){let t=this.#t,{toEl:i,fromEl:s,dragEl:l,newIndex:a}=e,c=t?.newIndex===a&&t?.dragEl===l&&t?.toEl===i&&t?.fromEl===s;if(!s||!i||c)return;this.#t=e,this._selectedDragItemLayerUid=l.value;let h=Array.from(s.children).filter(n=>n?.matches("calcite-list-item")).map(n=>n.value.layer?.uid??"");this.#o(this.viewModel.tables,h)}#d(e){let{selectionMode:t,selectedItems:i}=this;if(t==="none")return;let s=e.target.selectedItems.map(l=>this.#e(l)).filter(Boolean);i.removeAll(),i.addMany(s)}#c(){this.closed=!0,this.arcgisClose.emit(),this.autoDestroyDisabled||this.destroy()}render(){let{state:e}=this,t={[m.hidden]:e==="loading",[m.disabled]:e==="disabled"};return o`<div class=${p(F(m.widget,m.panel,t))}>${this.#u()}</div>`}#s(){return o`<div slot=message>${this.messages.noItemsToDisplay}</div>`}#m(){return this.hideNoItemsNotice?null:o`<div class=${p(v.itemMessage)}><calcite-notice icon=information kind=info open width=full>${this.#s()}</calcite-notice></div>`}#g(){return U(this._openedPanelItems.toArray(),e=>e.uid,(e,t)=>{let{panel:i,title:s}=e,l=()=>this.#r(i);return o`<calcite-flow-item .description=${s} .heading=${i.title} .headingLevel=${this.headingLevel} .selected=${t===this._openedPanelItems.length-1} @calciteFlowItemBack=${a=>{a.preventDefault(),l()}}><arcgis-layer-list-item-panel .item=${e} .view=${this.view}></arcgis-layer-list-item-panel><calcite-button appearance=transparent @click=${l} slot=footer-actions width=full>${this.messages.back}</calcite-button></calcite-flow-item>`})}#u(){let{collapsed:e,_visibleItems:t,_filterEnabled:i,_rootGroupUid:s,showCloseButton:l,showCollapseButton:a,showHeading:c,_dragEnabled:h,selectionMode:n,filterText:g,filterPlaceholder:f,messages:u}=this,b=[o`<calcite-flow-item .closable=${l} .closed=${this.closed} .collapsed=${e} .collapsible=${a} .heading=${c?this.label??u.componentLabel:void 0} .headingLevel=${this.headingLevel} .selected=${!this._openedPanelItems.length} @calciteFlowItemClose=${()=>this.#c()}>${t?.length?o`<calcite-list .canPull=${r=>this._canMove(r,"pull")} .canPut=${r=>this._canMove(r,"put")} data-layer-type=${s??C} .displayMode=${H} .dragEnabled=${h} .filterEnabled=${i} .filterPlaceholder=${f} .filterProps=${x} .filterText=${i?g:""} .group=${s} .label=${this.label??u.componentLabel} selection-appearance=border .selectionMode=${n} @calciteListChange=${this.#d} @calciteListDragEnd=${r=>this.#n(r.detail)} @calciteListFilter=${r=>{this.filterText=r.currentTarget?.filterText??"",this.arcgisFilterChange.emit()}} @calciteListOrderChange=${r=>this.#h(r.detail)} ${E(this._rootListRef)}>${t.toArray().map(r=>this.#p(r))}${i&&!this.hideNoFilterResultsNotice?o`<div class=${p(v.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this.#s()}</calcite-notice></div>`:null}</calcite-list>`:this.#m()}</calcite-flow-item>`,this.#g()];return this.closed?null:I("root-flow",o`<calcite-flow>${b}</calcite-flow>`)}#p(e){return I(e.uid,S({canMove:this._canMove,css:v,displayMode:H,dragEnabled:this.dragEnabled,hideStatusIndicators:this.hideStatusIndicators,item:e,itemType:"table",listModeDisabled:this.viewModel.listModeDisabled,messages:this.messages,rootGroupUid:this._rootGroupUid,selectedDragItemLayerUid:this._selectedDragItemLayerUid,selectedItems:this.selectedItems,selectionMode:this.selectionMode,showErrors:this.showErrors,showFilter:this.showFilter,showTemporaryTableIndicators:this.showTemporaryTableIndicators,handleAction:(t,i)=>this._onTriggerAction(t,i),handlePanelOpen:this._onPanelOpen,handleSelectedDragItemLayerUidChange:this._onSelectedDragItemLayerUidChange,view:this.view}))}};L("arcgis-table-list-next",$);return $},"core/Collection","core/reactiveUtils","layerList/TableListModel",a,b,c,e,f,g,h,i,j,l,n)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import s from"./V7DMA5ZO.js";import"./EVWWTIEQ.js";import{a as g}from"./4L43F7HU.js";import r from"./SIT5NBLS.js";import o from"./BFYJTV6Q.js";import{a as j,b as q,c as z,g as A,h as J,j as K,k as Q,m,n as F}from"./ZCFWKPXL.js";import{a as H}from"./WVKMYNN7.js";import{a as _}from"./5GFPOTOB.js";import n from"./GEOME3IC.js";import l from"./HU57LQOA.js";import i from"./BOPNSNUT.js";import"./WJQUE4DR.js";import h from"./QVJ2FUNW.js";import{a as k}from"./REB4CHAK.js";import{a as b}from"./L5IRXOCJ.js";import{a as G}from"./7Y4SF2NT.js";import f from"./7ILT5PDJ.js";import e from"./7JPHMESH.js";import d from"./OLY5EME5.js";import{h as N}from"./Q7GF26CL.js";import"./U77WHUC6.js";import a from"./SI2DEXWH.js";import{a as B}from"./LXME6MU5.js";import{B as P,P as v,Q as L,R as D,T as w,X as M,Y as C,_ as x,b as c,x as p}from"./PQ7NUE5C.js";import"./TAVTDQ6S.js";export default $arcgis.t(([le,u,{on:T,watch:te},,,,U,S,,,,,{e:V,h:W,k:X},{a:Y,b:Z,c:ee}])=>{var ie="nested",re=S(le),O=class extends D{constructor(){super(...arguments),this.#i=null,this._rootListRef=v(),this._layerFlowItemRef=v(),this._panelFlowItemRef=v(),this._selectedDragItemLayerUid=null,this._rootGroupUid=`operational-${P()}`,this.#s=null,this.messages=k(),this._canMove=({dragEl:e,fromEl:t,toEl:i},a)=>{let s=a==="pull"?this.listItemCanGiveFunction:this.listItemCanReceiveFunction,l=m(e,this.operationalItems);if(!l?.sortable)return!1;let r=this.#e(t),o=this.#e(i),n=this.#t(r),d=F(r),f=this.#t(o),y=F(o),$=!!d&&!!y&&d===y,I={selected:l,from:n,to:f},E=r?.group,h=o?.group,se=n?.layer?.type??"",ae=f?.layer?.type??"",R=new Set(["map-image","catalog","knowledge-graph"]);return E&&h&&typeof s=="function"?s(I):$&&!R.has(se)&&!R.has(ae)&&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(g.item)),i=m(t,this.operationalItems);this._activeItem=i},this.viewModel=re(this),this.arcgisClose=G(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 u(["knowledge-graph"]),this.mapImageOptions=null,this.openedLayerLists=new u,this.tileOptions=null,this.autoDestroyDisabled=!1,this.closed=!1,this.collapsed=!1,this.dragEnabled=!1,this.filterPlaceholder="",this.filterText="",this.headingLevel=2,this.hideCatalogLayerList=!1,this.hideNoFilterResultsNotice=!1,this.hideNoItemsNotice=!1,this.hideStatusIndicators=!1,this.icon="layers",this.layerTablesAvailable=new u(["knowledge-graph"]),this.listItemCreatedFunction=this.viewModel.listItemCreatedFunction,this.listModeDisabled=this.viewModel.listModeDisabled,this.minDragEnabledItems=z,this.minFilterItems=q,this.openedLayers=new u,this.operationalItems=this.viewModel.operationalItems,this.selectedItems=new u,this.selectionMode="none",this.showCloseButton=!1,this.showCollapseButton=!1,this.showErrors=!1,this.showFilter=!1,this.showHeading=!1,this.showTemporaryLayerIndicators=!1,this.state=this.viewModel.state,this.view=this.viewModel.view,this.visibilityAppearance="default",this.arcgisFilterChange=p(),this.arcgisOpenedLayersChange=p(),this.arcgisPropertyChange=N()("state"),this.arcgisReady=p(),this.arcgisSelectedItemsChange=p(),this.arcgisTriggerAction=U(()=>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,autoDestroyDisabled:5,catalogLayerList:32,catalogOptions:0,closed:5,collapsed:5,dragEnabled:5,filterPlaceholder:1,filterPredicate:0,filterText:1,headingLevel:9,hideCatalogLayerList:5,hideNoFilterResultsNotice:5,hideNoItemsNotice:5,hideStatusIndicators:5,icon:1,knowledgeGraphOptions:0,label:1,layerTablesAvailable:0,listItemCanGiveFunction:0,listItemCanReceiveFunction:0,listItemCreatedFunction:0,listModeDisabled:5,messageOverrides:0,minDragEnabledItems:9,minFilterItems:9,openedLayers:32,operationalItems:0,referenceElement:1,selectedItems:0,selectionMode:1,showCloseButton:5,showCollapseButton:5,showErrors:5,showFilter:5,showHeading:5,showTemporaryLayerIndicators:5,state:32,tableList:32,view:0,visibilityAppearance:1}}static{this.styles=[ee,Z]}#i;#s;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(e=>!e.hidden&&e.panel?.open&&!e.panel.disabled&&e.panel.flowEnabled&&(!W(e)||V(e)))}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.#b(t,i===e.length-1))}get catalogLayerList(){return this._catalogLayerList}get tableList(){return this._tableList}async destroy(){await this.manager.destroy(),this.#h(),this._tooltipReferenceMap.clear()}loaded(){this.manager.onLifecycle(()=>[T(()=>this.openedLayers,"change",()=>{this.#n()},{initial:!0}),T(()=>this.viewModel.operationalItems,"change",()=>A(this.selectedItems),{initial:!0}),te(()=>this.operationalItems.flatten(e=>e.children).map(e=>e.uid).join(","),()=>{A(this.selectedItems),this.requestUpdate()},{initial:!0}),T(()=>this.selectedItems,"change",()=>this.arcgisSelectedItemsChange.emit()),te(()=>[this.filterPredicate,this._rootListRef.value],()=>J(this._rootListRef.value,this.filterPredicate,this.operationalItems))])}triggerAction(e,t){return this.viewModel.triggerAction(e,t)}#e(e){return e?e.matches("calcite-list")?e:e.closest("calcite-list[data-item]")||(this._rootListRef.value?.contains(e)?this._rootListRef.value:null):null}#t(e){let t=e?.getAttribute("data-item");return t?this.#r(t):null}#r(e){let t=this.operationalItems?.toArray()??[];for(;t.length;){let i=t.shift();if(!i)continue;if(i.uid===e)return i;let a=i.children?.toArray()??[];t.push(...a)}return null}async#o(e,t){let{_layerListMap:i}=this,a=i.get(e);if(a)return a;let s=e.type==="catalog"?await this.#c(e):await this.#m(e);return t.aborted||i.set(e,s),s}async#n(){let{_layerListMap:e,openedLayers:t,openedLayerLists:i}=this;this.#s?.abort();let a=new AbortController,{signal:s}=a;this.#s=a,e.forEach((o,n)=>{t.includes(n)||(o?.destroy?.(),e.delete(n))});let l=await Promise.all(t.map(o=>this.#o(o,s)));if(s.aborted)return;i.removeAll(),i.addMany(l);let r=i.at(-1);r?"catalogLayer"in r?(this._catalogLayerList=r,this._tableList=void 0):(this._catalogLayerList=void 0,this._tableList=r):(this._catalogLayerList=void 0,this._tableList=void 0),this.arcgisOpenedLayersChange.emit()}#h(){this.openedLayerLists.destroyAll(),this.openedLayers.removeAll(),this._layerListMap.clear()}async#c(e){let{headingLevel:t,catalogOptions:i,filterPlaceholder:a,listItemCreatedFunction:s,minFilterItems:l,selectionMode:r,visibilityAppearance:o}=this;return C(c`<arcgis-catalog-layer-list-next .headingLevel=${t} .filterPlaceholder=${i?.filterPlaceholder??a} .listItemCreatedFunction=${i?.listItemCreatedFunction??s} .minFilterItems=${i?.minFilterItems??l} .selectionMode=${i?.selectionMode??r} .visibilityAppearance=${i?.visibilityAppearance??o} .showErrors=${i?.showErrors??this.showErrors} .showFilter=${i?.showFilter??this.showFilter} .hideStatusIndicators=${i?.hideStatusIndicators??this.hideStatusIndicators} .showTemporaryLayerIndicators=${i?.showTemporaryLayerIndicators??this.showTemporaryLayerIndicators} .messageOverrides=${this.messageOverrides} @arcgisReady=${n=>n.stopPropagation()} .catalogLayer=${e} .view=${this.view} .referenceElement=${this.referenceElement} @catalogOpen=${this._onCatalogOpen} @tablesOpen=${this._onTablesOpen}></arcgis-catalog-layer-list-next>`)}#d(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#m(e){let{headingLevel:t,selectionMode:i,dragEnabled:a}=this,s=this.#d(e);return C(c`<arcgis-table-list-next .headingLevel=${s?.headingLevel??t} .selectionMode=${s?.selectionMode??i} .dragEnabled=${s?.dragEnabled??a} .collapsed=${s?.collapsed} .filterPlaceholder=${s?.filterPlaceholder} .filterText=${s?.filterText} .icon=${s?.icon??void 0} .label=${s?.label??void 0} .listItemCreatedFunction=${s?.listItemCreatedFunction} .messageOverrides=${this.messageOverrides} .tables=${s?.tables} .referenceElement=${this.referenceElement} @arcgisReady=${l=>l.stopPropagation()}></arcgis-table-list-next>`)}#p(e){e.open=!1}#g({toEl:e,fromEl:t,dragEl:i,newIndex:a}){let s=this.#e(e),l=this.#e(t),r=m(i,this.operationalItems),o=this.#t(s),n=this.#t(l);a==null||!r||(this.viewModel.moveItem(r,n,o,a),X(this,r.uid,d=>d!==i&&this.#e(d.parentElement)===s))}#u(e){let{fromEl:t,toEl:i,dragEl:a,oldIndex:s}=e;if(t!==i){a.remove();return}s==null||!t||!a||t.insertBefore(a,t.children[s])}#f(e){let t=this.#i,{dragEl:i,newIndex:a}=e,s=this.#e(e.fromEl),l=this.#e(e.toEl),r=t?.newIndex===a&&t?.dragEl===i&&t?.toEl===l&&t?.fromEl===s;if(!(!s||!l||r)){if(this.#i={...e,fromEl:s,toEl:l},this._selectedDragItemLayerUid=i.value,s===l){let o=Array.from(s.children).filter(n=>n?.matches("calcite-list-item")).map(n=>n.value.layer?.uid??"");this.#y(s,o);return}this.#g({toEl:l,fromEl:s,dragEl:i,newIndex:a})}}#y(e,t){if(e)if(e===this._rootListRef.value)K(this.el.view?.map?.layers,t);else{let i=m(e,this.operationalItems);if(!i)return;Q(i,t)}}#I(e){let{selectionMode:t,selectedItems:i}=this;if(t==="none")return;let a=e.target.selectedItems.map(s=>m(s,this.operationalItems)).filter(Boolean);i.removeAll(),i.addMany(a)}render(){let{state:e}=this,t={[b.hidden]:e==="loading",[b.disabled]:e==="disabled"};return c`<div class=${w(B(b.widget,t))}>${this._visibleItems?.length?this.#L():null}${this.#$()}</div>`}#v(e){let{_tooltipReferenceMap:t,messages:i}=this;return e?c`<calcite-tooltip overlay-positioning=fixed .referenceElement=${t.get(e.layer?.uid??"")}>${i.layerIncompatibleTooltip}</calcite-tooltip>`:null}#a(e){if(e.incompatible)return this.#v(e);let t=e.children?.filter(i=>!i.hidden).toArray().map(i=>this.#a(i))??[];return t.length?t:null}#L(){return this._visibleItems?.toArray().map(e=>this.#a(e))}#l(){return c`<div slot=message>${this.messages.noItemsToDisplay}</div>`}#w(){return this.hideNoItemsNotice?null:c`<div class=${w(g.itemMessage)}><calcite-notice icon=information kind=info open width=full>${this.#l()}</calcite-notice></div>`}#b(e,t){let{messages:i,openedLayers:a}=this,s=e.title||this.messages.untitledLayer;return _(e?.uid??s,c`<calcite-flow-item data-layer-uid=${e?.uid??""??M} .description=${s} .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()}} ${L(this._layerFlowItemRef)}>${this._layerListMap.get(e)}</calcite-flow-item>`)}#_(){let{_openedPanelItems:e,openedLayers:t}=this;return H(e.toArray(),i=>i.uid,(i,a)=>{let{panel:s,title:l}=i,r=()=>this.#p(s);return c`<calcite-flow-item .description=${l} .heading=${s.title} .headingLevel=${this.headingLevel} .selected=${!t.length&&a===e.length-1} @calciteFlowItemBack=${o=>{o.preventDefault(),r()}} ${L(this._panelFlowItemRef)}><arcgis-layer-list-item-panel .item=${i} .view=${this.view}></arcgis-layer-list-item-panel><calcite-button appearance=transparent @click=${r} slot=footer-actions width=full>${this.messages.back}</calcite-button></calcite-flow-item>`})}#$(){let{collapsed:e,_visibleItems:t,_openedPanelItems:i,_filterEnabled:a,_rootGroupUid:s,showCloseButton:l,showCollapseButton:r,showHeading:o,_dragEnabled:n,selectionMode:d,filterText:f,openedLayers:y,filterPlaceholder:$,messages:I}=this,E=[c`<calcite-flow-item .closable=${l} .closed=${this.closed} .collapsed=${e} .collapsible=${r} .heading=${o?I.componentLabel:void 0} .headingLevel=${this.headingLevel} .selected=${!y.length&&!i.length} @calciteFlowItemClose=${()=>this.closed=!1}>${t?.length?c`<calcite-list @focusin=${this._setActiveItem} @focusout=${this._clearActiveItem} .canPull=${h=>this._canMove(h,"pull")} .canPut=${h=>this._canMove(h,"put")} data-layer-type=${s??M} .displayMode=${ie} .dragEnabled=${n} .filterEnabled=${a} .filterPlaceholder=${$} .filterProps=${j} .filterText=${a?f:""} .group=${s} .label=${I.componentLabel} @mouseleave=${this._clearActiveItem} @mouseover=${this._setActiveItem} selection-appearance=highlight .selectionMode=${d} @calciteListChange=${this.#I} @calciteListFilter=${h=>{this.filterText=h.currentTarget?.filterText??"",this.arcgisFilterChange.emit()}} @calciteListOrderChange=${h=>this.#f(h.detail)} @calciteListDragEnd=${h=>this.#u(h.detail)} ${L(this._rootListRef)}>${t.toArray().map(h=>this.#E(h))}${a&&!this.hideNoFilterResultsNotice?c`<div class=${w(g.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full>${this.#l()}</calcite-notice></div>`:null}</calcite-list>`:this.#w()}</calcite-flow-item>`,this.#_(),this._renderedOpenLayerFlowItems];return this.closed?null:_("root-flow",c`<calcite-flow>${E}</calcite-flow>`)}#E(e,t,i){return _(e.uid,Y({activeItem:this._activeItem,canMove:this._canMove,css:g,displayMode:ie,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}))}};x("arcgis-layer-list-next",O);return O},"layerList/LayerListModel","core/Collection","core/reactiveUtils",a,d,e,f,h,i,l,n,o,r,s)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import{a as c}from"./KE2ER3F7.js";import h from"./PCXDOSKQ.js";import g from"./LSLTIN2Q.js";import f from"./7JPHMESH.js";import e from"./OLY5EME5.js";import{h as d}from"./Q7GF26CL.js";import"./U77WHUC6.js";import b from"./SI2DEXWH.js";import"./LXME6MU5.js";import{R as s,_ as n,a as t,p as o,x as a}from"./PQ7NUE5C.js";import"./TAVTDQ6S.js";export default $arcgis.t(([h,v,,,,l,g])=>{var w=t`:host{--esri-oriented-imagery-viewer-min-width: var(--arcgis-oriented-imagery-viewer-min-width, 288px);--esri-oriented-imagery-viewer-min-height: var(--arcgis-oriented-imagery-viewer-min-height, 348px);inline-size:100%;block-size:100%}.esri-image-viewer{width:100%;height:100%}.esri-image-viewer__slider-container{--calcite-block-padding: 0;box-sizing:border-box;box-shadow:none;padding-inline:var(--calcite-spacing-md);background-color:#0000;border:none;width:100%;margin:0;overflow:hidden}.esri-image-viewer__slider-container calcite-slider{width:100%}.esri-oriented-imagery-viewer{--esri-oriented-imagery-viewer-action-icon-size: 8px;--calcite-dialog-size-x: 210px;--calcite-dialog-min-size-y: 90px;--calcite-font-weight-medium: $font-weight;--calcite-font-size-0: $font-size;--calcite-icon-size: var(--esri-oriented-imagery-viewer-action-icon-size);box-sizing:border-box;z-index:1;container-type:size;width:100%;min-width:var(--esri-oriented-imagery-viewer-min-width);height:100%;min-height:var(--esri-oriented-imagery-viewer-min-height);flex-direction:column;align-items:flex-start;display:flex;overflow:hidden}.esri-oriented-imagery-viewer:has(.esri-widget .esri-oriented-imagery-viewer__image-overlays-no-result){--esri-oriented-imagery-viewer-min-height: 420px}.esri-oriented-imagery-viewer__body{flex-direction:column;flex:1 0 auto;order:1;align-self:stretch;height:100%;display:flex}.esri-oriented-imagery-viewer__body-current-coverage{--calcite-icon-color: var(--calcite-color-status-danger)}.esri-oriented-imagery-viewer__body-additional-camera-locations{--calcite-icon-color: var(--calcite-color-brand)}.esri-oriented-imagery-viewer__body-additional-coverage{--calcite-icon-color: var(--calcite-color-status-info)}.esri-oriented-imagery-viewer__body-footprint{--calcite-icon-color: var(--calcite-color-status-success)}.esri-oriented-imagery-viewer__carousel{z-index:1;border:1px solid var(--calcite-color-border-2);align-items:center;width:98%;height:140px;margin:auto 1% 0;position:absolute;bottom:0;box-shadow:0 0 1px #0000004d}.esri-oriented-imagery-viewer__carousel-container{height:auto;display:inline-block;overflow:auto hidden}.esri-oriented-imagery-viewer__carousel header{--calcite-font-weight-medium: $font-weight--light;--calcite-font-size-0: $font-size--tiny}.esri-oriented-imagery-viewer__carousel-item{width:100px;height:70px}.esri-oriented-imagery-viewer__carousel-item-wrapper{box-sizing:border-box;justify-content:center;align-items:center;width:106px;height:78px;margin:auto 10px;display:flex;box-shadow:0 1px 2px #0000004d}.esri-oriented-imagery-viewer__carousel-item-wrapper--selected{box-sizing:border-box;border:2px solid var(--calcite-color-brand);justify-content:center;align-items:center;width:106px;height:78px;margin:auto 10px;display:flex;box-shadow:0 1px 2px #0000004d}.esri-oriented-imagery-viewer__carousel-content{display:flex}.esri-oriented-imagery-viewer__close{background:var(--calcite-color-foreground-1);flex-direction:row;flex-grow:0;order:7;justify-content:center;align-items:center;width:48px;height:59px;display:flex}.esri-oriented-imagery-viewer__image-enhancement-wrapper,.esri-oriented-imagery-viewer__submenu{z-index:1;border:1px solid var(--calcite-color-border-2);align-items:center;width:98%;height:140px;margin:auto 1% 0;position:absolute;bottom:0;box-shadow:0 0 1px #0000004d}.esri-oriented-imagery-viewer__image-enhancement-tools{display:flex}.esri-oriented-imagery-viewer__image-enhancement-tool-container{width:50%;margin-block:2px;padding-inline:.75rem}.esri-oriented-imagery-viewer__submenu{height:auto}.esri-oriented-imagery-viewer__superimpose-tools{box-shadow:none;width:100%;height:auto;margin:0}.esri-oriented-imagery-viewer__superimpose-tools .esri-oriented-imagery-viewer__image-enhancement-tool-container{padding-block:var(--calcite-spacing-sm) var(--calcite-spacing-md);width:100%;margin-block:0}.esri-oriented-imagery-viewer__image-overlays{z-index:1;margin:auto 1% 0;border:1px solid var(--calcite-color-border-2);align-items:center;width:98%;height:140px;position:absolute;bottom:0;overflow-y:auto;box-shadow:0 0 1px #0000004d}.esri-oriented-imagery-viewer__image-overlays-layer-list,.esri-oriented-imagery-viewer__image-overlays-switch{padding:0 var(--calcite-spacing-md)}.esri-oriented-imagery-viewer__image-overlays-container{height:auto;display:flex}.esri-oriented-imagery-viewer__image-overlays-no-result{z-index:1;border:1px solid var(--calcite-color-border-2);align-items:center;width:98%;height:auto;margin:auto 1% 0;position:absolute;bottom:0;overflow-y:auto;box-shadow:0 0 1px #0000004d}.esri-oriented-imagery-viewer__image-overlays-no-result-layer-list,.esri-oriented-imagery-viewer__image-overlays-no-result-switch{padding:0 var(--calcite-spacing-md)}.esri-oriented-imagery-viewer__image-overlays-increased-height{z-index:1;border:1px solid var(--calcite-color-border-2);align-items:center;width:98%;height:200px;margin:auto 1% 0;position:absolute;bottom:0;overflow-y:auto;box-shadow:0 0 1px #0000004d}.esri-oriented-imagery-viewer__image-overlays-increased-height-layer-list,.esri-oriented-imagery-viewer__image-overlays-increased-height-switch{padding:0 var(--calcite-spacing-md)}.esri-oriented-imagery-viewer__measurement-results{width:auto;height:fit-content}.esri-oriented-imagery-viewer__measurements-table{margin-block-start:var(--calcite-spacing-sm)}.esri-oriented-imagery-viewer__measurements-bar{flex-wrap:nowrap;display:flex}.esri-oriented-imagery-viewer__measurements-button{display:flex}.esri-oriented-imagery-viewer__measurement-display{text-align:center;margin-block-end:var(--calcite-spacing-xxs)}.esri-oriented-imagery-viewer__viewer{cursor:url(data:text/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20height%3D%2226%22%20width%3D%2226%22%3E%0A%3Cpath%20stroke%3D%22%23000%22%20stroke-width%3D%221px%22%20fill%3D%22%23fff%22%20d%3D%22m15.3%2020.5s6.38-6.73%204.64-8.24-3.47%201.01-3.47%201.01%203.61-5.72%201.41-6.49c-2.2-0.769-3.33%204.36-3.33%204.36s0.873-5.76-1.06-5.76-1.58%205.39-1.58%205.39-0.574-4.59-2.18-4.12c-1.61%200.468-0.572%205.51-0.572%205.51s-1.58-4.89-2.93-3.79c-1.35%201.11%200.258%205.25%200.572%206.62%200.836%202.43%202.03%202.94%202.17%205.55%22%2F%3E%0A%3C%2Fsvg%3E%0A);flex-grow:1;width:100%;margin:0;display:flex}.esri-oriented-imagery-viewer__viewer--hidden{display:none}.esri-oriented-imagery-viewer__viewer-container{border-top:1px solid var(--calcite-color-border-3);background:var(--calcite-color-foreground-1);flex:1 0 auto;order:1;align-self:stretch;width:100%;height:100%;display:flex}.esri-oriented-imagery-viewer__alert{inset-block-end:var(--calcite-spacing-md);inset-inline:var(--calcite-spacing-md);position:absolute}.esri-oriented-imagery-viewer__alert>[slot=message]{display:block}@container (width <= 386px) or (height <= 348px){.esri-oriented-imagery-viewer__alert>[slot=message]{display:none}}.esri-oriented-imagery-viewer-container-measurement{border-top:var(--calcite-border-width-sm) solid var(--calcite-color-border-3);background:var(--calcite-color-foreground-1);flex:1 0 auto;order:1;align-self:stretch;width:100%;height:50%;display:flex}@keyframes rotateOrientedImageryNavigationTool{0%{transform:rotate(var(--oi-navigation-tool-rotation-from, 0deg))}to{transform:rotate(var(--oi-navigation-tool-rotation-to, 0deg))}}.esri-oriented-imagery-viewer__navigation{transform:rotate(var(--oi-navigation-tool-rotation-to, 0deg))}.esri-oriented-imagery-viewer__navigation-animate{animation:.7s linear forwards rotateOrientedImageryNavigationTool}.esri-oriented-imagery-viewer__navigation-feature{fill:var(--calcite-color-brand);stroke:var(--calcite-color-foreground-1);stroke-width:1px}.esri-oriented-imagery-viewer__navigation-feature.selected{fill:var(--calcite-color-status-danger)}.esri-oriented-imagery-viewer__navigation-feature-path{pointer-events:none}.esri-oriented-imagery-viewer__navigation-feature-path-stop-offset-0{stop-color:var(--calcite-color-status-danger);stop-opacity:.4}.esri-oriented-imagery-viewer__navigation-feature-path-stop-offset-1{stop-color:var(--calcite-color-status-danger);stop-opacity:.2}.esri-oriented-imagery-viewer__navigation-pointer{fill:var(--calcite-color-foreground-1);fill-rule:evenodd;stroke:#0000;stroke-dasharray:none;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-width:0}.esri-oriented-imagery-viewer__navigation-pointer-north{fill:var(--calcite-color-status-danger)}.esri-oriented-imagery-viewer__navigation-wrapper{z-index:1;position:absolute;bottom:0;right:0;overflow:hidden}.esri-oriented-imagery-viewer__navigation-wrapper--video{inset-block-end:calc(var(--calcite-spacing-xxxl) * 3)}.esri-oriented-imagery-viewer__navigation-wrapper--zoomed{transform-origin:100% 100%;transform:scale(1.5)}.esri-oriented-imagery-viewer__navigation-wrapper-boundary{fill:var(--calcite-color-foreground-1);fill-opacity:.25;stroke:var(--calcite-color-border-2)}.esri-oriented-imagery-viewer__navigation-sector{fill:none}.esri-oriented-imagery-viewer__navigation-sector-separator{stroke:var(--calcite-color-border-2);stroke-width:1px}.esri-oriented-imagery-viewer__navigation-sector-cross{stroke:var(--calcite-color-status-danger);stroke-width:1px}.esri-oriented-imagery-viewer__navigation-sector-enabled{fill:var(--calcite-color-foreground-1);stroke:var(--calcite-color-border-2);stroke-width:1px}.esri-oriented-imagery-viewer__navigation-sector-disabled{fill:var(--calcite-color-foreground-3);stroke:var(--calcite-color-border-2);stroke-width:1px}.esri-oriented-imagery-viewer__navigation-sector-outer{fill:var(--calcite-color-foreground-1);fill-opacity:.4;stroke:none}.esri-oriented-imagery-viewer__pro .esri-oriented-imagery-viewer{width:100%;max-width:unset;height:100%;max-height:unset;position:static}.esri-oriented-imagery-viewer__sketch-tools{justify-content:center;align-items:center;width:100%;display:flex;position:absolute;bottom:0}.esri-oriented-imagery-viewer--notice{margin-block:auto}.esri-oriented-imagery-viewer__navigation-ui{box-sizing:border-box;transform-style:preserve-3d;z-index:var(--calcite-z-index-overlay);aspect-ratio:1;pointer-events:none;flex-direction:column;align-items:center;width:50%;max-width:330px;display:flex;position:absolute;inset-block-end:0;inset-inline:50%;overflow:hidden;translate:-50%}.esri-oriented-imagery-viewer__navigation-ui__direction{--esri-oriented-imagery-viewer__navigation-ui-direction-color: wheat;--calcite-icon-color: var(--esri-oriented-imagery-viewer__navigation-ui-direction-color);transform-origin:top;transform-style:preserve-3d;cursor:not-allowed;border:3px solid #bfc5cc;border-radius:50%;width:4.5em;height:4.5em;transition:border-color .15s;position:absolute}.esri-oriented-imagery-viewer__navigation-ui__direction:not([disabled]){cursor:pointer;pointer-events:auto}.esri-oriented-imagery-viewer__navigation-ui__direction:not([disabled]):hover{--calcite-icon-color: var(--calcite-color-brand);border-color:var(--calcite-color-brand)}.esri-oriented-imagery-viewer__navigation-ui__direction-pad{box-sizing:border-box;filter:drop-shadow(0 2px 1px #00000080);width:100%;height:100%;transform:perspective(400px) rotateX(60deg)}.esri-oriented-imagery-viewer__navigation-settings-ui [slot=content-bottom]{padding:.5rem;display:none}.esri-oriented-imagery-viewer__navigation-settings-ui [selected]>[slot=content-bottom]{display:block}.esri-panoramic-viewer{width:100%;height:100%;overflow-x:hidden}.esri-panoramic-viewer__slider-container{--calcite-block-padding: 0;box-sizing:border-box;box-shadow:none;padding-inline:var(--calcite-spacing-md);background-color:#0000;border:none;width:100%;margin:0;overflow:hidden}.esri-panoramic-viewer__slider-container calcite-slider{width:100%}`,p=l(v),y="map-components:arcgis-oriented-imagery-viewer",r=class extends s{constructor(){super(...arguments),this.widget=p(this),this._hasOrientedImageryLayerToAdd=!1,this.viewModel=this.widget.viewModel,this.view=this.widget.view,this.autoDestroyDisabled=!1,this.actionBarPosition=this.widget.actionBarPosition,this.currentCoverageVisible=this.widget.currentCoverageVisible,this.dataCaptureEnabled=this.widget.dataCaptureEnabled,this.disabled=this.widget.disabled,this.galleryOpened=this.widget.galleryOpened,this.hideAdditionalCameraLocationsToggle=this.widget.visibleElements.additionalCameraLocationsToggle,this.hideAdditionalFootprintsToggle=this.widget.visibleElements.additionalFootprintToggle,this.hideCurrentFootprintToggle=this.widget.visibleElements.currentFootprintToggle,this.hideDirectionalNavigationToggle=this.widget.visibleElements.directionalNavigation,this.hideEnhancementToolToggle=this.widget.visibleElements.enhancementTool,this.hideExploreImagesToggle=this.widget.visibleElements.exploreImages,this.hideExploreImages3dToggle=this.widget.visibleElements.exploreImages3D,this.hideHeader=this.widget.visibleElements.header,this.hideMenu=this.widget.visibleElements.menu,this.hideImageGalleryToggle=this.widget.visibleElements.imageGallery,this.hideImageNavigationGroup=this.widget.visibleElements.imageNavigationTools,this.hideImageOverlaysToggle=this.widget.visibleElements.imageOverlays,this.hideMapImageLocationToolToggle=this.widget.visibleElements.mapImageConversionTool,this.hideImageMeasurementToolsGroup=this.widget.visibleElements.measurementTools,this.hideNavigationToolToggle=this.widget.visibleElements.navigationTool,this.hideOverlaysGroup=this.widget.visibleElements.overlays,this.hideSearchGroup=this.widget.visibleElements.searchTools,this.hideSequentialNavigationToggle=this.widget.visibleElements.sequentialNavigation,this.hideDisplayImageToggle=this.widget.visibleElements.showSelectedImage,this.hidePopupsAction=this.widget.visibleElements.showPopupsAction,this.hideSuperimposeViewToggle=this.widget.visibleElements.superimpose,this.hideUtilitiesGroup=this.widget.visibleElements.utilityTools,this.icon=this.widget.icon,this.imageEnhancementToolActive=this.widget.imageEnhancementToolActive,this.imageGalleryEnabled=this.widget.imageGalleryEnabled,this.imageOverlaysOpened=this.widget.imageOverlaysOpened,this.isAdditionalCoverageVisible=this.widget.isAdditionalCoverageVisible,this.isAdditionalPointSourcesVisible=this.widget.isAdditionalPointSourcesVisible,this.label=this.widget.label,this.layer=this.widget.layer,this.mapLayerId=g(this,e=>{e&&(e.type==="oriented-imagery"?this.layer=e:o("warn",this,`${y} - layer with id ${this.mapLayerId} is not a valid Oriented Imagery Layer`))}),this.mapImageConversionToolState=this.widget.mapImageConversionToolState,this.navigationToolActive=this.widget.navigationToolActive,this.preloadMedia=this.widget.preloadMedia,this.referencePoint=this.widget.referencePoint,this.selectedFeatureObjectId=this.widget.selectedFeatureObjectId,this.selectedPoint=this.widget.selectedPoint,this.state=this.viewModel.state,this.arcgisPropertyChange=d()("imageGalleryEnabled","layer","selectedPoint","selectedFeatureObjectId","state"),this.arcgisReady=a()}static{this.properties={view:0,autoDestroyDisabled:5,container:32,actionBarPosition:1,currentCoverageVisible:5,dataCaptureEnabled:5,disabled:5,galleryOpened:5,hideAdditionalCameraLocationsToggle:5,hideAdditionalFootprintsToggle:5,hideCurrentFootprintToggle:5,hideDirectionalNavigationToggle:5,hideEnhancementToolToggle:5,hideExploreImagesToggle:5,hideExploreImages3dToggle:5,hideHeader:5,hideMenu:5,hideImageGalleryToggle:5,hideImageNavigationGroup:5,hideImageOverlaysToggle:5,hideMapImageLocationToolToggle:5,hideImageMeasurementToolsGroup:5,hideNavigationToolToggle:5,hideOverlaysGroup:5,hideSearchGroup:5,hideSequentialNavigationToggle:5,hideDisplayImageToggle:5,hidePopupsAction:5,hideSuperimposeViewToggle:5,hideUtilitiesGroup:5,icon:1,imageEnhancementToolActive:5,imageGalleryEnabled:36,imageOverlaysOpened:5,isAdditionalCoverageVisible:5,isAdditionalPointSourcesVisible:5,label:1,layer:0,mapLayerId:1,mapImageConversionToolState:5,navigationToolActive:5,orientedImageryLayerItemId:1,preloadMedia:5,referenceElement:1,referencePoint:32,selectedFeatureObjectId:32,selectedPoint:32,state:32}}static{this.styles=[c,w]}get container(){return this.widget.container instanceof HTMLDivElement?this.widget.container:null}async destroy(){await this.manager.destroy()}async loadBestImage(e,i){return await this.widget.loadBestImage(e,i)}reset(){this.widget.reset()}async showImageByObjectId(e,i){return await this.widget.showImageByObjectId(e,i)}willUpdate(e){if(e.has("orientedImageryLayerItemId")){let i=this.orientedImageryLayerItemId;if(i&&this.widget){let m={portalItem:{id:i}};this.layer=new h(m),this.widget.view?this.widget.view.map?.add(this.layer):this._hasOrientedImageryLayerToAdd=!0}}}loaded(){this._hasOrientedImageryLayerToAdd&&(this.widget.view?this._onReady():this.el.addEventListener("arcgisReady",()=>{this._onReady()},{once:!0}))}_onReady(){let{layer:e}=this;e&&(this.widget.view?.map?.add(e),this._hasOrientedImageryLayerToAdd=!1)}};n("arcgis-oriented-imagery-viewer",r);return r},"layers/OrientedImageryLayer","widgets/OrientedImageryViewer",b,e,f,g,h)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import g from"./FDESUDJ5.js";import f from"./SIT5NBLS.js";import e from"./BFYJTV6Q.js";import"./ZCFWKPXL.js";import d from"./GEOME3IC.js";import c from"./HU57LQOA.js";import b from"./BOPNSNUT.js";import"./WJQUE4DR.js";import"./Q7GF26CL.js";import"./U77WHUC6.js";import a from"./SI2DEXWH.js";import"./LXME6MU5.js";import"./PQ7NUE5C.js";import"./TAVTDQ6S.js";export default $arcgis.t(([,,,,,,a])=>{return a},a,b,c,d,e,f,g)
2
+ import g from"./AIF4MCBB.js";import f from"./SIT5NBLS.js";import e from"./BFYJTV6Q.js";import"./ZCFWKPXL.js";import d from"./GEOME3IC.js";import c from"./HU57LQOA.js";import b from"./BOPNSNUT.js";import"./WJQUE4DR.js";import"./Q7GF26CL.js";import"./U77WHUC6.js";import a from"./SI2DEXWH.js";import"./LXME6MU5.js";import"./PQ7NUE5C.js";import"./TAVTDQ6S.js";export default $arcgis.t(([,,,,,,a])=>{return a},a,b,c,d,e,f,g)
@@ -0,0 +1,2 @@
1
+ /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
+ import{b as oe}from"./JB6WQEFJ.js";import g from"./DSIYRWN2.js";import{a as w}from"./LTFGTX7S.js";import"./FH3WFF5O.js";import{a as _}from"./6J3KSMFG.js";import f from"./BOPNSNUT.js";import"./WJQUE4DR.js";import e from"./QVJ2FUNW.js";import{a as ee}from"./REB4CHAK.js";import d from"./7ILT5PDJ.js";import c from"./7JPHMESH.js";import b from"./OLY5EME5.js";import{d as X,h as Y}from"./Q7GF26CL.js";import"./U77WHUC6.js";import a from"./SI2DEXWH.js";import{b as Q}from"./LXME6MU5.js";import{E as N,F as H,O as q,P as k,Q as E,R as j,X as A,_ as J,a as K,b as v,e as O,x as U,z}from"./PQ7NUE5C.js";import"./TAVTDQ6S.js";export default $arcgis.t(([{substitute:de},pe,ge,{watch:y,on:ue,whenOnce:me},ve,{getOrCreateMapValue:ae,createReactiveMap:ye},be,{property:p,subclass:fe},{ignoreAbortErrors:T},Ce,we,,,,C,te,{f:Z},ie])=>{var Te=["bottom-end","bottom-start","bottom-left","bottom-right","top-end","top-start","top-left","top-right"],Se=new Set(Te);function se(i,e){let t=e;for(let o of i.split(".")){if(typeof t!="object"||t===null)return;t=Reflect.get(t,o)}return typeof t=="string"?t:void 0}var Ee=K`.editing-controls-panel{min-inline-size:100px;max-inline-size:400px;-webkit-user-select:none;user-select:none;pointer-events:initial;padding:var(--calcite-space-sm);arcgis-sketch-tooltip-controls+arcgis-snapping-controls{border-block-start:1px solid var(--calcite-color-border-3)}}:host{pointer-events:none}.toolbar-container{block-size:100%;min-block-size:0;min-inline-size:0}arcgis-toolbar-stack[layout=vertical]{block-size:100cqh;min-block-size:100%;max-block-size:100%}`,_e={point:"pin",polyline:"line",polygon:"polygon",rectangle:"rectangle",circle:"circle",multipoint:"pins",mesh:"i3d-building",freehandPolygon:"freehand-area",freehandPolyline:"freehand",text:"text"},Me={selectionTools:{defaultPriority:w.Default,groupKind:"split-button",overflowLabel:"selection"},selectionSet:{defaultPriority:w.High,groupKind:"actions"},createTools:{defaultPriority:w.High,groupKind:"more-button",overflowLabel:"drawing"},undoRedo:{defaultPriority:w.Medium,groupKind:"split-button",overflowLabel:"action",preferEndSlot:!0},settings:{defaultPriority:w.Max,groupKind:"more-button",overflowLabel:"action",preferEndSlot:!0},geometrySimplification:{defaultPriority:w.Default,groupKind:"actions",preferEndSlot:!0}},ke=Object.defineProperty,Pe=Object.getOwnPropertyDescriptor,h=(i,e,t,o)=>{for(var s=o>1?void 0:o?Pe(e,t):e,r=i.length-1,d;r>=0;r--)(d=i[r])&&(s=(o?d(e,t,s):d(s))||s);return o&&s&&ke(e,t,s),s},c=class extends be{constructor(i){super(i),this._effectiveRenderStateCache=new Map,this._effectiveGeometrySimplificationInProgress=!1,this.visibleElements=new Ce,this.settingsPopoverOpen=!1,this.availableCreateTools=["point","polyline","freehandPolyline","polygon","freehandPolygon","rectangle","circle"]}initialize(){this.selectionViewModel??=new we({persistSelection:!1}),this.addHandles([y(()=>this.sketchViewModel,(i,e)=>{i!==e&&this._effectiveRenderStateCache.clear()},{sync:!0}),ie({getLoading:()=>this.sketchViewModel?.geometrySimplificationInProgress??!1,setEffectiveLoading:i=>{this._effectiveGeometrySimplificationInProgress=i}}),y(()=>this.view,i=>{this.selectionViewModel.view=i},{initial:!0,sync:!0}),y(()=>this.sketchViewModel?.layer,i=>this.selectionViewModel.sources=i?[i]:[],{initial:!0,sync:!0}),this.selectionViewModel.on("complete",({selection:i})=>{i.length&&this.update(i)}),y(()=>this.selectionViewModel.activeOperation,i=>{i&&(this.sketchViewModel?.cancel(),this._activeCustomToolOptions=void 0)},{sync:!0}),ue(()=>this.sketchViewModel,"create",i=>{i.state==="complete"&&this.sketchViewModel?.creationMode!=="continuous"&&(this._activeCustomToolOptions=void 0)}),y(()=>this.visibleElements.settingsMenu,i=>{i||(this.settingsPopoverOpen=!1)},{sync:!0})])}destroy(){this._pendingCommandAbortController?.abort(),this.selectionViewModel.destroy(),this.sketchViewModel=void 0}get _isEffectiveRenderStateFrozen(){let{sketchViewModel:i}=this;return!!(i?.toolTransitionInProgress||i?.geometrySimplificationInProgress)}_getEffectiveValue(i,e){if(!this._isEffectiveRenderStateFrozen||!this._effectiveRenderStateCache.has(i)){let t=e();return this._effectiveRenderStateCache.set(i,t),t}return this._effectiveRenderStateCache.get(i)}get _state(){return this.sketchViewModel?.state??"disabled"}get test(){return{activeCustomToolOptions:this._activeCustomToolOptions,activeSelectionTool:this._activeSelectionTool,selectionViewModel:this.selectionViewModel}}get _activeSelectionTool(){switch(this.selectionViewModel.activeOperation?.toolName){case"lasso":return"lasso-selection";case"rectangle":return"rectangle-selection";default:return}}get _activePluginUniqueIds(){let i=this.sketchViewModel?.activePluginConfigurations.filter(e=>!e.hidden).map(e=>e.uniqueId);return new Set(i??[])}get _createToolActions(){let{sketchViewModel:i}=this;if(!i)return[];let e=i.effectiveAvailablePlugins,t=this.state==="disabled",o=this.visibleElements.createTools,s=this.activeTool,r=this._activeCustomToolOptions,d=r||!i.firstPluginWithSwappableLeaf?this._customToolOptions:[],a=i.rootPlugins,l=d?.map(n=>({active:n===r,disabled:t,icon:n.icon,labelKey:n.label,onClick:n===r?()=>this._cancelActiveOperation():()=>this._activateLegacyDrawTool(n.toolName,n.createOptions,n)}))??[];if(r&&a)return[...this._pluginsToActions(a),...l];if(e?.length&&this.view?.type!=="3d")return[...this._pluginsToActions(e),...l];let g=this.view?.type==="3d";return[...this.availableCreateTools?.filter(n=>g&&n==="multipoint"?!1:n==="mesh"?!0:o[n])?.map(n=>({active:n===s,disabled:t,icon:_e[n],labelKey:`draw.${n}`,onClick:n===s?()=>this._cancelActiveOperation():()=>this._activateLegacyDrawTool(n)}))??[],...l]}get _shouldShowBackButton(){let i=this.sketchViewModel?.firstPluginWithSwappableLeaf,e=this.sketchViewModel?.rootPlugins,t=this._activeCustomToolOptions;return!!(this.sketchViewModel?.multiplePluginsActive&&i&&e&&!(e.length<2&&e.includes(i)&&!this.visibleElements.singlePluginBackButton)&&!t)}get _selectionToolActions(){return this._shouldShowBackButton?[{active:!1,disabled:this.state==="disabled",icon:"chevron-left",iconFlipRTL:!0,labelKey:"back",onClick:()=>this._cancelActiveOperation()}]:this._selectionCommands}get _settingsActions(){let i=this._customActions?.get("settings-before"),e=this._customActions?.get("settings-after"),t=this.visibleElements.settingsMenu,o=[];return!i?.length&&!e?.length&&!t||(i&&o.push(...this._customActionsToSketchActions(i)),t&&o.push({icon:"gear",active:this.settingsPopoverOpen,disabled:this.state==="disabled",labelKey:"settings.heading",tooltipKey:"settings.heading",refKey:"settings",onClick:()=>this.toggleSettingsPopover()}),e&&o.push(...this._customActionsToSketchActions(e))),o}get _activeTool(){let i=this.selectionViewModel.activeOperation;if(i)switch(i.toolName){case"lasso":return"lasso-selection";case"rectangle":return"rectangle-selection";case"default":return"custom-selection"}if(!this.sketchViewModel)return;let{availableCreateTools:e}=this,{activeTool:t,activeCreateToolDrawMode:o}=this.sketchViewModel;return t==="polygon"&&o==="freehand"&&e?.includes("freehandPolygon")?"freehandPolygon":t==="polyline"&&o==="freehand"&&e?.includes("freehandPolyline")?"freehandPolyline":t??void 0}get _selectionCommands(){let{state:i,visibleElements:e,_activeSelectionTool:t,_customActions:o}=this,s=this.state==="disabled",r=[];this.sketchViewModel?.updateOnGraphicClick!==!1&&r.push({active:i==="ready"&&this._activeSelectionTool==null,disabled:s,icon:"cursor",labelKey:"selectFeature",onClick:()=>this._activateDefaultSelectionTool()});let d=e.selectionTools;d["rectangle-selection"]&&r.push({active:t==="rectangle-selection",disabled:s,icon:"cursor-marquee",labelKey:"rectangleSelection",onClick:()=>this._activateSelectionTool("rectangle-selection")}),d["lasso-selection"]&&r.push({active:t==="lasso-selection",disabled:s,icon:"lasso-select",labelKey:"lassoSelection",onClick:()=>this._activateSelectionTool("lasso-selection")});let a=o?.get("selection-toolbar");return a&&r.push(...this._customActionsToSketchActions(a)),r}get _selectionSetActions(){let i=this.sketchViewModel?.updateGraphics.length??0;if(!i)return[];let e=this.state==="disabled",t=[],o=this._customActions?.get("before-selection-set"),s=this._customActions?.get("after-selection-set");return this.visibleElements.selectionCountLabel&&t.push({active:!1,appearance:"outline",disabled:e,icon:"selection-x",kind:"brand",labelKey:"deselectCount",labelParameters:{count:i},textEnabled:!0,renderAsAction:!0,onClick:()=>this._cancelSketchOperation()}),o&&t.push(...this._customActionsToSketchActions(o)),this.visibleElements.duplicateButton&&t.push({active:!1,disabled:e,icon:"copy",renderAsAction:!0,labelKey:i>1?"duplicateFeatures":"duplicateFeature",onClick:()=>this._duplicate()}),this.visibleElements.deleteButton&&t.push({active:!1,disabled:e,icon:"trash",kind:"danger",renderAsAction:!0,labelKey:i>1?"deleteFeatures":"deleteFeature",onClick:()=>this._delete()}),s&&t.push(...this._customActionsToSketchActions(s)),t}get _undoRedoActions(){return this.visibleElements.undoRedoMenu?[{active:!1,disabled:this.state==="disabled"||!this.sketchViewModel?.canUndo(),icon:"undo",labelKey:"undo",iconFlipRTL:!0,onClick:()=>this._undo()},{active:!1,disabled:this.state==="disabled"||!this.sketchViewModel?.canRedo(),icon:"redo",labelKey:"redo",iconFlipRTL:!0,onClick:()=>this._redo()}]:[]}get state(){return this._getEffectiveValue("state",()=>this._state)}get activeTool(){return this._getEffectiveValue("activeTool",()=>this._activeTool)}get activePluginIds(){return this._getEffectiveValue("activePluginId",()=>this._activePluginUniqueIds)}get groupedActions(){let i=this._getEffectiveValue("availableCommandGroups",()=>[["selectionTools",this._selectionToolActions],["createTools",this._createToolActions],["undoRedo",this._undoRedoActions],["settings",this._settingsActions],["selectionSet",this._selectionSetActions]].map(([t,o])=>({name:t,commands:o,visible:o.length>0}))),e=this._effectiveGeometrySimplificationInProgress?i.map(t=>({...t,commands:t.commands.map(o=>({...o,disabled:!0}))})):i;return!this.visibleElements.geometrySimplificationActivityIndicator||!this._effectiveGeometrySimplificationInProgress?e:[...e,{name:"geometrySimplification",commands:[{active:!1,appearance:"transparent",disabled:!0,kind:"warning",labelKey:"processing",loading:!0,onClick:()=>{},renderAsAction:!0}],visible:!0}]}async create(i,e){await this._executeWhenReady(async()=>{this.cancelAll();let t=this.sketchViewModel;t&&await T(t.create(i,e))})}async _executeWhenReady(i){this._pendingCommandAbortController?.abort();let e=new AbortController;this._pendingCommandAbortController=e;try{await T((async()=>{this.sketchViewModel?.geometrySimplificationInProgress&&await me(()=>!this.sketchViewModel?.geometrySimplificationInProgress,e.signal),e.signal.aborted||await i()})())}finally{this._pendingCommandAbortController===e&&(this._pendingCommandAbortController=void 0)}}toggleSettingsPopover(){this.settingsPopoverOpen=!this.settingsPopoverOpen}setCustomTools(i,e){this._customToolOptions=i??void 0;let t=this._activeCustomToolOptions;if(t){let o=this._customToolOptions?.find(s=>s.toolKey===t.toolKey);o?this._activeCustomToolOptions=o:this.cancelAll()}if(e?.length){let o=new Map;for(let s of e)ae(o,s.position,()=>[]).push(s);this._customActions=o}else this._customActions=void 0}cancelAll(){this._pendingCommandAbortController?.abort(),this._cancelSupportingOperations(),this.sketchViewModel?.cancel()}async update(i,e){await this._executeWhenReady(async()=>{let t=this.sketchViewModel;t&&await T(t.update(i,e))})}_activateDefaultSelectionTool(){this._executeWhenReady(()=>{this.cancelAll(),this.view?.focus()})}_cancelActiveOperation(){this._executeWhenReady(()=>this.cancelAll())}_cancelSketchOperation(){this._executeWhenReady(()=>this.sketchViewModel?.cancel())}_cancelSupportingOperations(){this.selectionViewModel.cancel(),this._activeCustomToolOptions=void 0}_activatePlugin(i){this._executeWhenReady(()=>{let e=this._activeCustomToolOptions!=null;this._cancelSupportingOperations();let t=this.sketchViewModel;if(t){if(e){t.cancel(),T(t.create(i));return}t.firstPluginWithSwappableLeaf?(t.replaceLeaf(i),this.view?.focus()):T(t.create(i))}})}_activateLegacyDrawTool(i,e,t){this._executeWhenReady(()=>{this._cancelSupportingOperations();let o=this.sketchViewModel;o&&(this._activeCustomToolOptions=t,T(o.create(i,e)))})}_activateSelectionTool(i){this._executeWhenReady(()=>{if(this._activeSelectionTool===i){this.selectionViewModel.cancel();return}this.cancelAll();let e={createTool:i==="lasso-selection"?"polygon":"rectangle",...i==="lasso-selection"?{mode:"hybrid",toolName:"lasso"}:{toolName:"rectangle"},type:"replace",selectOnComplete:!0};this.selectionViewModel.activate(e)&&this.view?.focus()})}_delete(){this._executeWhenReady(()=>this.sketchViewModel?.delete())}_duplicate(){this._executeWhenReady(()=>{this.sketchViewModel?.duplicate()})}_executeCustomAction(i){this._executeWhenReady(()=>i.onclick?.())}_redo(){this._executeWhenReady(()=>{this.sketchViewModel?.redo()})}_undo(){this._executeWhenReady(()=>{this.sketchViewModel?.undo()})}_customActionsToSketchActions(i){let e=this.state==="disabled";return i.map(t=>({active:t.active??!1,afterCreate:t.afterCreate,afterRemoved:t.afterRemoved,afterUpdate:t.afterUpdate,disabled:e||(t.disabled??!1),icon:t.icon,iconFlipRTL:t.flipRTL,id:t.id,labelKey:t.text,onClick:()=>this._executeCustomAction(t)}))}_pluginsToActions(i){let e=this.activePluginIds,t=this._activeCustomToolOptions,o=this.state==="disabled";return i.map(s=>({active:(e?.has(s.uniqueId)??!1)&&!t,icon:s.icon,disabled:o,labelKey:`digitizers.${s.localizationKey}`,onClick:()=>this._activatePlugin([s])}))}};h([p()],c.prototype,"_isEffectiveRenderStateFrozen",1);h([p()],c.prototype,"_effectiveGeometrySimplificationInProgress",2);h([p()],c.prototype,"_state",1);h([p()],c.prototype,"_customToolOptions",2);h([p()],c.prototype,"_activeCustomToolOptions",2);h([p()],c.prototype,"_customActions",2);h([p()],c.prototype,"selectionViewModel",2);h([p()],c.prototype,"_activeSelectionTool",1);h([p()],c.prototype,"_activePluginUniqueIds",1);h([p()],c.prototype,"_createToolActions",1);h([p()],c.prototype,"_shouldShowBackButton",1);h([p()],c.prototype,"_selectionToolActions",1);h([p()],c.prototype,"_settingsActions",1);h([p()],c.prototype,"_activeTool",1);h([p()],c.prototype,"_selectionCommands",1);h([p()],c.prototype,"_selectionSetActions",1);h([p()],c.prototype,"_undoRedoActions",1);h([p()],c.prototype,"sketchViewModel",2);h([p()],c.prototype,"visibleElements",2);h([p()],c.prototype,"view",2);h([p()],c.prototype,"settingsPopoverOpen",2);h([p()],c.prototype,"availableCreateTools",2);h([p()],c.prototype,"state",1);h([p()],c.prototype,"activeTool",1);h([p()],c.prototype,"activePluginIds",1);h([p()],c.prototype,"groupedActions",1);c=h([fe("components.sketch.SketchComponentViewModel")],c);var $=class extends q{#t;#e=!1;#i;constructor(e){if(super(e),e.type!==N.ELEMENT)throw new Error("nodeHooks() can only be used on elements")}render(e){return O}update(e,[t]){let o=e.element;if(!(o instanceof HTMLElement))throw new TypeError("nodeHooks() can only be used on HTMLElements");let s=this.#e?t.afterUpdate:t.afterCreate;return this.#t=o,this.#e=!0,this.#i=t,queueMicrotask(()=>{o.isConnected&&s?.(o)}),O}disconnected(){let e=this.#t,t=this.#i?.afterRemoved;!e||!t||queueMicrotask(()=>{e.isConnected||Z(()=>t(e),{timeout:16})})}},ne=H($),Le=new Set(["arcgis-map","arcgis-scene"]),Oe=8,R=class extends z{constructor(e){super(e),this.#t=new MutationObserver(()=>this.#c()),this.#e=new ResizeObserver(()=>this.#v()),this.#i=new ResizeObserver(([t])=>{if(!t)return;let o=this.component.layout==="horizontal"?t.contentRect.height:t.contentRect.width;o!==this.#s&&(this.#s=o,this.#v())}),this.#h=[],this.ref=t=>{this.#o!==t&&(this.#o=t,this.#a=void 0,this.#r=void 0,this.#c())},this.#g=()=>this.#c(),this.exports=void 0,this.onConnected(()=>this.#m()),this.onUpdated(()=>{this.#d!==this.component.layout&&this.#c()}),this.onDisconnected(()=>this.#f()),this.onLifecycle(()=>y(()=>this.component.view?.attributionHeight,()=>{this.#m()},{initial:!0}))}#t;#e;#i;#l;#s;#n;#h;#u;#o;#a;#r;#d;#p;#m(){queueMicrotask(()=>{this.component.el.isConnected&&this.#c()})}#c(){let e=this.#y();if(!e){this.#b(),this.#f();return}this.#C(e.toolbar),this.#w(e),this.#T(e),this.#v(e)}#y(){let e=this.component.el,t=e.parentElement,o=this.#o,s=e.assignedSlot;if(!t||!Le.has(t.localName)||!o||!s?.parentElement)return;let r=getComputedStyle(t).direction==="rtl"?"rtl":"ltr",d=re(e.slot,r);if(!d)return;let a=Array.from(t.children).filter(l=>l instanceof HTMLElement&&l.localName!=="arcgis-sketch");return{assignedSlot:s,content:a,direction:r,parent:t,position:d,toolbar:o}}#g;#C(e){this.#d!==this.component.layout&&(this.#s=void 0,this.#d=this.component.layout),this.#l!==e&&(this.#i.disconnect(),this.#l=e,this.#s=void 0,this.#i.observe(e))}#w(e){let t=e.assignedSlot;this.#n!==t&&(this.#n?.removeEventListener("slotchange",this.#g),this.#n=t,t.addEventListener("slotchange",this.#g)),this.#u!==e.parent&&(this.#t.disconnect(),this.#p?.(),this.#u=e.parent,this.#p=Q(e.parent,["dir"],()=>{this.#m()}),this.#t.observe(e.parent,{childList:!0,subtree:!1}))}#T(e){let t=[e.parent,...e.content];$e(this.#h,t)||(this.#e.disconnect(),t.forEach(o=>this.#e.observe(o)),this.#h=t)}#v(e=this.#y()){if(!e){this.#b();return}let t=this.component.layout,o=Ae({content:Ge(e),gap:Oe,layout:t,position:e.position,sameSlotReserve:Re(e.assignedSlot,this.component.el,t,e.assignedSlot.parentElement),toolbarBounds:e.toolbar.getBoundingClientRect(),viewBounds:e.parent.getBoundingClientRect()});this.#S(e.toolbar,t,o)}#S(e,t,o){o===this.#a&&t===this.#r||(this.#a=o,this.#r=t,e.style.setProperty("--arcgis-internal-toolbar-available-length",`${o}px`),t==="horizontal"?(e.style.height="",e.style.maxHeight="",e.style.maxWidth=`${o}px`,e.style.width="fit-content"):(e.style.height="fit-content",e.style.maxHeight=`${o}px`,e.style.maxWidth="",e.style.width=""))}#b(){this.#o&&(this.#o.style.maxHeight="",this.#o.style.maxWidth="",this.#o.style.height="",this.#o.style.width="",this.#o.style.removeProperty("--arcgis-internal-toolbar-available-length"),this.#a=void 0,this.#r=void 0)}#f(){this.#t.disconnect(),this.#p?.(),this.#p=void 0,this.#e.disconnect(),this.#i.disconnect(),this.#l=void 0,this.#s=void 0,this.#h=[],this.#n?.removeEventListener("slotchange",this.#g),this.#n=void 0,this.#a=void 0,this.#r=void 0,this.#d=void 0,this.#u=void 0}};function Ae({content:i,gap:e,layout:t,position:o,sameSlotReserve:s,toolbarBounds:r,viewBounds:d}){let a=G(d,t),l=G(r,t),g=le(o,t),n=g?l.start-a.start:a.end-l.end,u=0,m=!1;for(let S of i){if(le(S.position,t)===g)continue;let f=G(S.bounds,t);if(!(f.crossStart<l.crossEnd&&f.crossEnd>l.crossStart))continue;let M=g?a.end-f.start:f.end-a.start;u=Math.max(u,M),m=!0}let b=m?e:0;return Math.max(0,a.length-Math.max(0,n)-s-u-b)}function G(i,e){return e==="horizontal"?{start:i.left,end:i.right,length:i.width,crossStart:i.top,crossEnd:i.bottom}:{start:i.top,end:i.bottom,length:i.height,crossStart:i.left,crossEnd:i.right}}function le(i,e){return e==="horizontal"?i.endsWith("left"):i.startsWith("top")}function Ge(i){return i.content.flatMap(e=>{if(e.assignedSlot===i.assignedSlot)return[];let t=re(e.slot,i.direction);return t?[{bounds:e.getBoundingClientRect(),position:t}]:[]})}function $e(i,e){return i.length===e.length&&i.every((t,o)=>t===e[o])}function Re(i,e,t,o){let s=getComputedStyle(o).flexDirection;if(!(t==="horizontal"?s.startsWith("row"):s.startsWith("column")))return 0;let r=i.assignedElements().filter(g=>g instanceof HTMLElement),d=r.indexOf(e);if(d<0)return 0;let a=getComputedStyle(e),l=s==="row"?Number.parseFloat(a.marginRight):s==="row-reverse"?Number.parseFloat(a.marginLeft):s==="column"?Number.parseFloat(a.marginBottom):Number.parseFloat(a.marginTop);return r.slice(d+1).reduce((g,n)=>{let u=n.getBoundingClientRect(),m=getComputedStyle(n),b=t==="horizontal"?u.width+Number.parseFloat(m.marginLeft)+Number.parseFloat(m.marginRight):u.height+Number.parseFloat(m.marginTop)+Number.parseFloat(m.marginBottom);return g+b},l)}function re(i,e){let[t,o]=i.split("-");if(t!=="bottom"&&t!=="top")return;let s=o==="start"?e==="ltr"?"left":"right":o==="end"?e==="ltr"?"right":"left":o;return s==="left"||s==="right"?`${t}-${s}`:void 0}var xe=te(i=>new ve({...i,cancelUpdateOnClickAway:!0,creationMode:"continuous",textSymbol:new ge({text:"hello world"}),useLegacyCreateTools:!1})),x=class extends j{constructor(){super(),this.#t=new c,this.#l=k(),this.#s=new R(this),this.#n=k(),this._defaultGraphicsLayer=null,this._messages=ee(),this.test={componentViewModel:this.#t},this._groupLayoutPriorityOverrides=new Map,this._contextualToolLocation="separate",this._refMap=ye(),this.viewModel=xe(this),this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.createGraphic=this.viewModel.createGraphic,this.creationMode=this.viewModel.creationMode,this.defaultCreateOptions=this.viewModel.defaultCreateOptions,this.defaultGraphicsLayerDisabled=!1,this.defaultUpdateOptions=this.viewModel.defaultUpdateOptions,this.geometrySimplificationInProgress=this.viewModel.geometrySimplificationInProgress,this.icon="pencil",this.label=this._messages?.componentLabel,this.labelOptions=this.viewModel.labelOptions,this.layer=this.viewModel.layer,this.layout="horizontal",this.pointSymbol=this.viewModel.pointSymbol,this.polygonSymbol=this.viewModel.polygonSymbol,this.polylineSymbol=this.viewModel.polylineSymbol,this.activeFillSymbol=this.viewModel.activeFillSymbol,this.activeLineSymbol=this.viewModel.activeLineSymbol,this.activeVertexSymbol=this.viewModel.activeVertexSymbol,this.activeCreateToolDrawMode=this.viewModel.activeCreateToolDrawMode,this.visualScale="m",this.snappingOptions=this.viewModel.snappingOptions,this.textSymbol=this.viewModel.textSymbol,this.toolbarKind="floating",this.tooltipOptions=this.viewModel.tooltipOptions,this.useViewOptions=this.viewModel.useViewOptions,this.valueOptions=this.viewModel.valueOptions,this.useLegacyCreateTools=this.viewModel.useLegacyCreateTools,this.updateOnGraphicClickDisabled=this.viewModel.updateOnGraphicClick,this.updateGraphics=this.viewModel.updateGraphics,this.activeTooltip=this.viewModel.activeTooltip,this.arcgisCreate=C(()=>this.viewModel,"create"),this.arcgisDelete=C(()=>this.viewModel,"delete"),this.arcgisDuplicate=C(()=>this.viewModel,"duplicate"),this.arcgisPropertyChange=Y()("activeTool","geometrySimplificationInProgress","state"),this.arcgisReady=U(),this.arcgisRedo=C(()=>this.viewModel,"redo"),this.arcgisUndo=C(()=>this.viewModel,"undo"),this.arcgisUpdate=C(()=>this.viewModel,"update"),X(["slot"],()=>{this.requestUpdate()}),this.manager.onLifecycle(()=>[y(()=>this.el.view?.map,(e,t)=>{let o=this._defaultGraphicsLayer;o&&(t?.allLayers.includes(o)&&t.remove(o),o&&!e?.allLayers.includes(o)&&e?.add(o))}),y(()=>this.el.view,e=>{this.viewModel.view=e,this.#t.view=e??void 0},{initial:!0}),y(()=>this.viewModel,e=>{this.#t.sketchViewModel=e,this.viewModel.pluginManager.sketch=this},{initial:!0}),y(()=>this.#t.state,(e,t)=>{this.requestUpdate("state",t)},{initial:!0}),y(()=>this.#t.activeTool,()=>this.arcgisPropertyChange.emit({name:"activeTool"}),{sync:!0})]),this.manager.onDestroy(()=>{this._defaultGraphicsLayer&&this.el.view?.map?.allLayers.includes(this._defaultGraphicsLayer)&&this.el.view?.map?.remove(this._defaultGraphicsLayer),this._defaultGraphicsLayer?.destroy(),this._defaultGraphicsLayer=null,this.#t.destroy()})}static{this.properties={_groupLayoutPriorityOverrides:16,_contextualToolLocation:16,_refMap:16,viewModel:0,view:0,activeTool:32,autoDestroyDisabled:5,visibleElements:0,availableCreateTools:0,createGraphic:32,creationMode:1,defaultCreateOptions:0,defaultGraphicsLayerDisabled:5,defaultUpdateOptions:0,geometrySimplificationInProgress:36,hideCreateToolsCircle:5,hideCreateToolsMultipoint:5,hideCreateToolsPoint:5,hideCreateToolsPolygon:5,hideCreateToolsPolyline:5,hideCreateToolsRectangle:5,hideDuplicateButton:5,hideDeleteButton:5,hideSelectionCountLabel:5,hideLabelsToggle:5,hideSelectionToolsLassoSelection:5,hideSelectionToolsRectangleSelection:5,hideSettingsMenu:5,hideSinglePluginBackButton:5,hideSnappingControls:5,hideSnappingControlsElementsEnabledToggle:5,hideSnappingControlsElementsFeatureEnabledToggle:5,hideSnappingControlsElementsLayerList:5,hideSnappingControlsElementsSelfEnabledToggle:5,hideSnappingControlsElementsGridEnabledToggle:5,hideSnappingControlsElementsGridControls:5,hideSnappingControlsElementsGridControlsElementsColorSelection:5,hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle:5,hideSnappingControlsElementsGridControlsElementsLineIntervalInput:5,hideSnappingControlsElementsGridControlsElementsNumericInputs:5,hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning:5,hideSnappingControlsElementsGridControlsElementsPlacementButtons:5,hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle:5,hideTooltipsToggle:5,hideUndoRedoMenu:5,icon:1,label:1,labelOptions:0,layer:0,layout:1,pointSymbol:0,polygonSymbol:0,polylineSymbol:0,activeFillSymbol:0,activeLineSymbol:0,activeVertexSymbol:0,activeCreateToolDrawMode:1,referenceElement:1,relativePosition:1,scale:1,visualScale:1,showSnappingControlsElementsHeader:5,showCreateToolsFreehandPolygon:5,showCreateToolsFreehandPolyline:5,showCreateToolsText:5,hideGeometrySimplificationActivityIndicator:5,snappingOptions:0,state:32,textSymbol:0,toolbarKind:1,tooltipOptions:0,useViewOptions:5,valueOptions:0,useLegacyCreateTools:5,updateOnGraphicClickDisabled:5,cancelUpdateOnClickAwayDisabled:5,updateGraphics:32,activeTooltip:0}}static{this.styles=Ee}#t;get#e(){return this.#t.visibleElements}#i;#l;#s;#n;get activeTool(){return this.#t.activeTool}get visibleElements(){return this.#t.visibleElements}set visibleElements(e){this.#t.visibleElements=e}get availableCreateTools(){return this.#t.availableCreateTools}set availableCreateTools(e){this.#t.availableCreateTools=e}get hideCreateToolsCircle(){return!this.#e.createTools.circle}set hideCreateToolsCircle(e){this.#e.createTools.circle=!e}get hideCreateToolsMultipoint(){return!this.#e.createTools.multipoint}set hideCreateToolsMultipoint(e){this.#e.createTools.multipoint=!e}get hideCreateToolsPoint(){return!this.#e.createTools.point}set hideCreateToolsPoint(e){this.#e.createTools.point=!e}get hideCreateToolsPolygon(){return!this.#e.createTools.polygon}set hideCreateToolsPolygon(e){this.#e.createTools.polygon=!e}get hideCreateToolsPolyline(){return!this.#e.createTools.polyline}set hideCreateToolsPolyline(e){this.#e.createTools.polyline=!e}get hideCreateToolsRectangle(){return!this.#e.createTools.rectangle}set hideCreateToolsRectangle(e){this.#e.createTools.rectangle=!e}get hideDuplicateButton(){return!this.#e.duplicateButton}set hideDuplicateButton(e){this.#e.duplicateButton=!e}get hideDeleteButton(){return!this.#e.deleteButton}set hideDeleteButton(e){this.#e.deleteButton=!e}get hideSelectionCountLabel(){return!this.#e.selectionCountLabel}set hideSelectionCountLabel(e){this.#e.selectionCountLabel=!e}get hideLabelsToggle(){return!this.#e.labelsToggle}set hideLabelsToggle(e){this.#e.labelsToggle=!e}get hideSelectionToolsLassoSelection(){return!this.#e.selectionTools["lasso-selection"]}set hideSelectionToolsLassoSelection(e){this.#e.selectionTools["lasso-selection"]=!e}get hideSelectionToolsRectangleSelection(){return!this.#e.selectionTools["rectangle-selection"]}set hideSelectionToolsRectangleSelection(e){this.#e.selectionTools["rectangle-selection"]=!e}get hideSettingsMenu(){return!this.#e.settingsMenu}set hideSettingsMenu(e){this.#e.settingsMenu=!e}get hideSinglePluginBackButton(){return!this.#e.singlePluginBackButton}set hideSinglePluginBackButton(e){this.#e.singlePluginBackButton=!e}get hideSnappingControls(){return!this.#e.snappingControls}set hideSnappingControls(e){this.#e.snappingControls=!e}get hideSnappingControlsElementsEnabledToggle(){return!this.#e.snappingControlsElements.enabledToggle}set hideSnappingControlsElementsEnabledToggle(e){this.#e.snappingControlsElements.enabledToggle=!e}get hideSnappingControlsElementsFeatureEnabledToggle(){return!this.#e.snappingControlsElements.featureEnabledToggle}set hideSnappingControlsElementsFeatureEnabledToggle(e){this.#e.snappingControlsElements.featureEnabledToggle=!e}get hideSnappingControlsElementsLayerList(){return!this.#e.snappingControlsElements.layerList}set hideSnappingControlsElementsLayerList(e){this.#e.snappingControlsElements.layerList=!e}get hideSnappingControlsElementsSelfEnabledToggle(){return!this.#e.snappingControlsElements.selfEnabledToggle}set hideSnappingControlsElementsSelfEnabledToggle(e){this.#e.snappingControlsElements.selfEnabledToggle=!e}get hideSnappingControlsElementsGridEnabledToggle(){return!this.#e.snappingControlsElements.gridEnabledToggle}set hideSnappingControlsElementsGridEnabledToggle(e){this.#e.snappingControlsElements.gridEnabledToggle=!e}get hideSnappingControlsElementsGridControls(){return!this.#e.snappingControlsElements.gridControls}set hideSnappingControlsElementsGridControls(e){this.#e.snappingControlsElements.gridControls=!e}get hideSnappingControlsElementsGridControlsElementsColorSelection(){return!this.#e.snappingControlsElements.gridControlsElements.colorSelection}set hideSnappingControlsElementsGridControlsElementsColorSelection(e){this.#e.snappingControlsElements.gridControlsElements.colorSelection=!e}get hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle(){return!this.#e.snappingControlsElements.gridControlsElements.dynamicScaleToggle}set hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle(e){this.#e.snappingControlsElements.gridControlsElements.dynamicScaleToggle=!e}get hideSnappingControlsElementsGridControlsElementsLineIntervalInput(){return!this.#e.snappingControlsElements.gridControlsElements.lineIntervalInput}set hideSnappingControlsElementsGridControlsElementsLineIntervalInput(e){this.#e.snappingControlsElements.gridControlsElements.lineIntervalInput=!e}get hideSnappingControlsElementsGridControlsElementsNumericInputs(){return!this.#e.snappingControlsElements.gridControlsElements.numericInputs}set hideSnappingControlsElementsGridControlsElementsNumericInputs(e){this.#e.snappingControlsElements.gridControlsElements.numericInputs=!e}get hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning(){return!this.#e.snappingControlsElements.gridControlsElements.outOfScaleWarning}set hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning(e){this.#e.snappingControlsElements.gridControlsElements.outOfScaleWarning=!e}get hideSnappingControlsElementsGridControlsElementsPlacementButtons(){return!this.#e.snappingControlsElements.gridControlsElements.placementButtons}set hideSnappingControlsElementsGridControlsElementsPlacementButtons(e){this.#e.snappingControlsElements.gridControlsElements.placementButtons=!e}get hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle(){return!this.#e.snappingControlsElements.gridControlsElements.rotateWithMapToggle}set hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle(e){this.#e.snappingControlsElements.gridControlsElements.rotateWithMapToggle=!e}get hideTooltipsToggle(){return!this.#e.tooltipsToggle}set hideTooltipsToggle(e){this.#e.tooltipsToggle=!e}get hideUndoRedoMenu(){return!this.#e.undoRedoMenu}set hideUndoRedoMenu(e){this.#e.undoRedoMenu=!e}get relativePosition(){let e=this.el.slot;return this.#i??(Se.has(e)?e:oe.topRight)}set relativePosition(e){this.#i=e}get scale(){return this.visualScale}set scale(e){this.visualScale=e}get showSnappingControlsElementsHeader(){return this.#e.snappingControlsElements.header}set showSnappingControlsElementsHeader(e){this.#e.snappingControlsElements.header=e}get showCreateToolsFreehandPolygon(){return this.#e.createTools.freehandPolygon}set showCreateToolsFreehandPolygon(e){this.#e.createTools.freehandPolygon=e}get showCreateToolsFreehandPolyline(){return this.#e.createTools.freehandPolyline}set showCreateToolsFreehandPolyline(e){this.#e.createTools.freehandPolyline=e}get showCreateToolsText(){return this.#e.createTools.text}set showCreateToolsText(e){this.#e.createTools.text=e}get hideGeometrySimplificationActivityIndicator(){return!this.#e.geometrySimplificationActivityIndicator}set hideGeometrySimplificationActivityIndicator(e){this.#e.geometrySimplificationActivityIndicator=!e}get state(){return this.#t.state}get cancelUpdateOnClickAwayDisabled(){return!this.viewModel.cancelUpdateOnClickAway}set cancelUpdateOnClickAwayDisabled(e){this.viewModel.cancelUpdateOnClickAway=!e}async addGraphic(e){this.viewModel.addGraphic(e)}async addGraphics(e){this.viewModel.addGraphics(e)}async cancel(){this.#t.cancelAll()}async complete(){this.viewModel.complete()}async create(e,t){await this.#t.create(e,t)}async delete(){this.viewModel.delete()}async destroy(){await this.manager.destroy()}async dismissFloatingElements(){this.#t.settingsPopoverOpen=!1}async duplicate(){this.viewModel.duplicate()}async hasGraphic(e){return this.viewModel.hasGraphic(e)}async removeAllGraphics(){this.viewModel.removeAllGraphics()}async removeGraphic(e){this.viewModel.removeGraphic(e)}async removeGraphics(e){this.viewModel.removeGraphics(e)}async redo(){this.viewModel.redo()}async canRedo(){return this.viewModel.canRedo()}async setContextualToolLocation(e){this._contextualToolLocation=e}async setCustomTools(e,t){this.#t.setCustomTools(e,t)}async setGroupCollapsePriorities(e){this._groupLayoutPriorityOverrides=e||new Map}async triggerUpdate(e,t){await this.#t.update(e,t)}async place(e){this.viewModel.place(e)}async undo(){this.#t.sketchViewModel?.undo()}async canUndo(){return this.viewModel.canUndo()}connectedCallback(){super.connectedCallback(),this.defaultGraphicsLayerDisabled||(this._defaultGraphicsLayer?.destroyed&&(this._defaultGraphicsLayer=null),this._defaultGraphicsLayer??=new pe({title:"Sketch Layer"}),this.layer=this._defaultGraphicsLayer,this.view?.map?.add(this.layer),this.viewModel.layer=this._defaultGraphicsLayer)}disconnectedCallback(){this._defaultGraphicsLayer&&this.view?.map?.allLayers.includes(this._defaultGraphicsLayer)&&this.view?.map?.remove(this._defaultGraphicsLayer),super.disconnectedCallback()}render(){let e=this._refMap.get("settings")?.value?.actionElement,t=this.#t.groupedActions,{visualScale:o,layout:s,toolbarKind:r,relativePosition:d,_contextualToolLocation:a}=this,l=t.find(({name:n})=>n==="selectionSet"),g=t.filter(({name:n})=>n!=="selectionSet");return v`<div class="toolbar-container"><arcgis-toolbar-stack .layout=${s} .toolbarKind=${r} .relativePosition=${d} .scale=${o} tooltip-appearance=calcite ${E(this.#s.ref)}><arcgis-toolbar ${E(this.#l)}>${_({hidden:!l?.visible||a!=="inline",children:this._renderActionGroup(l)})}${g.map(n=>this._renderActionGroup(n))}${_({hidden:!l?.visible||a!=="inline-end",children:this._renderActionGroup(l)})}</arcgis-toolbar>${_({hidden:!l?.visible||a!=="separate",children:v`<arcgis-toolbar>${this._renderActionGroup(l)}</arcgis-toolbar>`})}</arcgis-toolbar-stack></div>${_({hidden:this.hideSettingsMenu,children:v`<arcgis-view-popover .open=${this.#t.settingsPopoverOpen} closable .heading=${this._messages.settings?.heading} .label=${this._messages.settings?.heading} .anchorElement=${e} .visualScale=${o} .actionBarElement=${this.#l.value?.barElement} @arcgisPropertyChange=${n=>this.#t.settingsPopoverOpen=n.target.open??!1} .view=${this.view??void 0}>${this._renderSettings()}</arcgis-view-popover>`})}`}_renderSettings(){let{autoDestroyDisabled:e,hideLabelsToggle:t,hideSnappingControls:o,hideTooltipsToggle:s,showSnappingControlsElementsHeader:r,useViewOptions:d,view:a,viewModel:l}=this;return v`<div class="editing-controls-panel"><arcgis-sketch-tooltip-controls .hideLabelsToggle=${t} .hideTooltipsToggle=${d||s} .directionMode=${l.valueOptions.directionMode} .labelsEnabled=${l.labelOptions.enabled} .tooltipsEnabled=${l.tooltipOptions.enabled} @arcgisPropertyChange=${g=>{g.stopPropagation();let{labelsEnabled:n,tooltipsEnabled:u,directionMode:m}=g.currentTarget,b=this.viewModel;switch(g.detail.name){case"labelsEnabled":b.labelOptions.enabled=n;break;case"directionMode":b.valueOptions.directionMode=m;break;case"tooltipsEnabled":b.tooltipOptions.enabled=u;break}}}></arcgis-sketch-tooltip-controls>${!d&&!o?v`<arcgis-snapping-controls .autoDestroyDisabled=${e} .view=${a} .visibleElements=${this.#e.snappingControlsElements} .snappingOptions=${l.snappingOptions} .showHeader=${r} @arcgisPropertyChange=${g=>g.stopPropagation()}></arcgis-snapping-controls>`:void 0}</div>`}_renderActionGroup({visible:e,commands:t,name:o}){if(!e||!t.length)return;let{defaultPriority:s,groupKind:r,overflowLabel:d,preferEndSlot:a}=Me[o],l=(o==="geometrySimplification"?void 0:this._groupLayoutPriorityOverrides.get(o))??s,g=t.map(u=>this._renderCommand(u)),n=se(`more.${d}`,this._messages);switch(r){case"more-button":return v`<arcgis-toolbar-group .priority=${l} .preferEndSlot=${a}><arcgis-toolbar-more-button .overflowActionLabel=${n} .priority=${l}>${g}</arcgis-toolbar-more-button></arcgis-toolbar-group>`;case"split-button":return v`<arcgis-toolbar-group .priority=${l} .preferEndSlot=${a}><arcgis-toolbar-split-button .overflowActionLabel=${n} .priority=${l}>${g}</arcgis-toolbar-split-button></arcgis-toolbar-group>`;case"actions":return v`<arcgis-toolbar-group .priority=${l} .preferEndSlot=${a}>${g}</arcgis-toolbar-group>`}}_renderCommand({active:e,afterCreate:t,afterRemoved:o,afterUpdate:s,appearance:r,icon:d,disabled:a,id:l,kind:g,labelKey:n,labelParameters:u,loading:m,tooltipKey:b,iconFlipRTL:S,onClick:f,refKey:M,textEnabled:V,renderAsAction:ce}){let{_messages:B,_refMap:he,layout:I}=this,P=se(n,B),L=P===void 0?n:u?de(P,u):P,D=B?.[b]??L,F=M?ae(he,M,k):this.#n,W={afterCreate:t,afterRemoved:o,afterUpdate:s};return ce?v`<arcgis-toolbar-action .active=${e} .appearance=${r} .disabled=${a} .icon=${d} .iconFlipRtl=${S} id=${l??A} .kind=${g} .loading=${m} .labelText=${I==="horizontal"?L:""} .textEnabled=${V} .tooltipText=${I==="horizontal"&&V?"":D} @arcgisToolbarItemSelected=${f} ${ne(W)} ${E(F)}></arcgis-toolbar-action>`:v`<arcgis-toolbar-item .active=${e} .disabled=${a} .icon=${d} id=${l??A} .iconFlipRtl=${S} .labelText=${L} .tooltipText=${D} @arcgisItemSelected=${f} ${ne(W)} ${E(F)}></arcgis-toolbar-item>`}};J("arcgis-sketch",x);return x},"intl","layers/GraphicsLayer","symbols/TextSymbol","core/reactiveUtils","widgets/Sketch/SketchViewModel","applications/Components/featureUtils","core/Accessor","core/accessorSupport/decorators","core/promiseUtils","widgets/Sketch/VisibleElements","widgets/support/SelectionToolbar/SelectionToolbarViewModel",a,b,c,d,e,f,g)
@@ -1,2 +1,2 @@
1
1
  /* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
2
- import{a}from"./SDLZ4BNM.js";import"./4L43F7HU.js";import"./ZCFWKPXL.js";import"./Q7GF26CL.js";import"./U77WHUC6.js";import"./LXME6MU5.js";import"./PQ7NUE5C.js";import"./TAVTDQ6S.js";export{a as ArcgisLayerListItemIndicator};
2
+ import{a}from"./EVWWTIEQ.js";import"./4L43F7HU.js";import"./ZCFWKPXL.js";import"./Q7GF26CL.js";import"./U77WHUC6.js";import"./LXME6MU5.js";import"./PQ7NUE5C.js";import"./TAVTDQ6S.js";export{a as ArcgisLayerListItemIndicator};