@esri/solutions-components 5.1.0-next.154 → 5.1.0-next.156

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 (195) hide show
  1. package/dist/cdn/2C6OKRTL.js +2 -0
  2. package/dist/cdn/2L62YUIH.js +2 -0
  3. package/dist/cdn/2UIPY2ED.js +2 -0
  4. package/dist/cdn/{DN3PZCF4.js → 37SYO65U.js} +1 -1
  5. package/dist/cdn/{XK36P3C4.js → 3N4FGXFE.js} +1 -1
  6. package/dist/cdn/66VSNZFA.js +2 -0
  7. package/dist/cdn/{GCEPKR7I.js → 6LDTUOZL.js} +1 -1
  8. package/dist/cdn/6OJALTOU.js +2 -0
  9. package/dist/cdn/6RNSFI2J.js +2 -0
  10. package/dist/cdn/{3JZVI5AM.js → 6RONZCGM.js} +1 -1
  11. package/dist/cdn/{JOAEH3CI.js → 6RTL3IJQ.js} +1 -1
  12. package/dist/cdn/{2IGILR4T.js → 7CZG6NDM.js} +1 -1
  13. package/dist/cdn/{UNBTFJYB.js → 7IXJB2CS.js} +1 -1
  14. package/dist/cdn/7JC52SFZ.js +2 -0
  15. package/dist/cdn/{IFONVCBL.js → 7LKPG6HJ.js} +1 -1
  16. package/dist/cdn/{TB33W36T.js → 7NKBQ4G6.js} +1 -1
  17. package/dist/cdn/{VY5TD3VS.js → 7ZEDJMU7.js} +1 -1
  18. package/dist/cdn/{YXHO47AZ.js → 7ZJQQBSR.js} +1 -1
  19. package/dist/cdn/{PNESECPO.js → A6VVARNG.js} +1 -1
  20. package/dist/cdn/{JYUZPAPI.js → A7PEHKA2.js} +1 -1
  21. package/dist/cdn/{SYQ5E5TV.js → AKQEDHUS.js} +1 -1
  22. package/dist/cdn/{TOIBA2KF.js → ALQFRJNC.js} +1 -1
  23. package/dist/cdn/{FWRT4BPD.js → ARFCWGCB.js} +1 -1
  24. package/dist/cdn/{PPRV6EZZ.js → AVBZ2B75.js} +1 -1
  25. package/dist/cdn/{SZRVESYE.js → AXFB53AQ.js} +1 -1
  26. package/dist/cdn/{4ASIXXDP.js → AZDHGEBN.js} +1 -1
  27. package/dist/cdn/{JNE3LBQU.js → BFC6PQCO.js} +1 -1
  28. package/dist/cdn/BLR4MTOP.js +2 -0
  29. package/dist/cdn/{LHG6NOEP.js → BM4VSEDV.js} +1 -1
  30. package/dist/cdn/{DDJSF2M3.js → BWRBYYGI.js} +1 -1
  31. package/dist/cdn/{MDXI36JJ.js → BYGOJ5ML.js} +141 -138
  32. package/dist/cdn/C4F2OOUL.js +2 -0
  33. package/dist/cdn/C4T4HSG2.js +2 -0
  34. package/dist/cdn/C5KDPY7R.js +2 -0
  35. package/dist/cdn/{FZKGL66L.js → C76SZF3J.js} +1 -1
  36. package/dist/cdn/{XO54BFTC.js → CFQKZMGC.js} +1 -1
  37. package/dist/cdn/CJ3EZE7U.js +2 -0
  38. package/dist/cdn/{UWSHU7MG.js → CQQH3XK5.js} +1 -1
  39. package/dist/cdn/{TLM7N22U.js → DF7TCZUS.js} +1 -1
  40. package/dist/cdn/{QFFHU77I.js → DMX66TUK.js} +1 -1
  41. package/dist/cdn/{NKX2EIDR.js → DOXKOGC2.js} +1 -1
  42. package/dist/cdn/{WC37HMOI.js → DQ7I7HGP.js} +1 -1
  43. package/dist/cdn/E4BPYNC5.js +4 -0
  44. package/dist/cdn/{BJAEUZFB.js → EF4LWVLU.js} +1 -1
  45. package/dist/cdn/{IEC46RE7.js → EKFKOS5K.js} +1 -1
  46. package/dist/cdn/EKRMEQQI.js +2 -0
  47. package/dist/cdn/{ZCPVOS4Q.js → ENTBR5YC.js} +1 -1
  48. package/dist/cdn/EPKRNLRL.js +2 -0
  49. package/dist/cdn/EZ5PKNLU.js +2 -0
  50. package/dist/cdn/{LGZDNUGT.js → FS5WR74E.js} +1 -1
  51. package/dist/cdn/{NV2DLQDN.js → G5PL37M5.js} +1 -1
  52. package/dist/cdn/{RRD4QUQS.js → GBDBGOCT.js} +1 -1
  53. package/dist/cdn/{OAEWZFWV.js → GDX4FWG7.js} +1 -1
  54. package/dist/cdn/{GG4IIHQE.js → GFEDQ7WH.js} +1 -1
  55. package/dist/cdn/{G6EZOEPB.js → GJ7QMCFT.js} +1 -1
  56. package/dist/cdn/GXIGM56I.js +2 -0
  57. package/dist/cdn/HDTRW7I6.js +4 -0
  58. package/dist/cdn/HRH3YBW4.js +2 -0
  59. package/dist/cdn/{KV76ATT5.js → HS55CSUO.js} +1 -1
  60. package/dist/cdn/HVT2WBVC.js +2 -0
  61. package/dist/cdn/{QD22B6N2.js → I3A27HFS.js} +1 -1
  62. package/dist/cdn/IADXB53D.js +2 -0
  63. package/dist/cdn/{DXQQQNOF.js → IBAJ7OFO.js} +1 -1
  64. package/dist/cdn/{PX6AYCC4.js → IM3C52I6.js} +1 -1
  65. package/dist/cdn/{M3NML7ZV.js → IMJTIIHG.js} +1 -1
  66. package/dist/cdn/{EVO7B63R.js → IR55PBAU.js} +1 -1
  67. package/dist/cdn/{JXTZNXTZ.js → IUNUJ6GU.js} +1 -1
  68. package/dist/cdn/{GMSG7ZRV.js → IZ7DJL5P.js} +1 -1
  69. package/dist/cdn/{FNTXI57U.js → IZDAQGZD.js} +1 -1
  70. package/dist/cdn/JAYARGS3.js +2 -0
  71. package/dist/cdn/{UIGRRD7P.js → JET6MYZJ.js} +1 -1
  72. package/dist/cdn/{NYQQSL25.js → JM4BUUFY.js} +1 -1
  73. package/dist/cdn/JQANOMEB.js +2 -0
  74. package/dist/cdn/JTENM3PQ.js +2 -0
  75. package/dist/cdn/KDSK7F55.js +90 -0
  76. package/dist/cdn/KGU32CDZ.js +2 -0
  77. package/dist/cdn/{EKUENEEW.js → L2XO4YLV.js} +1 -1
  78. package/dist/cdn/{LWT3JEQ6.js → LJIX7K76.js} +5 -5
  79. package/dist/cdn/{ZOF7AUSS.js → LOPXSWVG.js} +1 -1
  80. package/dist/cdn/LZTAD4IE.js +2 -0
  81. package/dist/cdn/M5ZEJF3J.js +2 -0
  82. package/dist/cdn/{WG5NM5XY.js → MDMFIEM7.js} +1 -1
  83. package/dist/cdn/MPSNK45A.js +2 -0
  84. package/dist/cdn/{XJAXXELZ.js → N2LDQKCJ.js} +1 -1
  85. package/dist/cdn/{L5YT5FRJ.js → O4YFJXGF.js} +1 -1
  86. package/dist/cdn/{D6VR7GCD.js → OL5LAOD5.js} +1 -1
  87. package/dist/cdn/OOP3DI7Y.js +2 -0
  88. package/dist/cdn/ORMBTE2Z.js +2 -0
  89. package/dist/cdn/OUNL2UWX.js +7 -0
  90. package/dist/cdn/OVKPT3QA.js +2 -0
  91. package/dist/cdn/{RUVOSMTB.js → OZFVLORO.js} +1 -1
  92. package/dist/cdn/{3KYQE6O5.js → PBENK36A.js} +1 -1
  93. package/dist/cdn/{SHEPQVUX.js → PCP5UFZR.js} +1 -1
  94. package/dist/cdn/PRM47E4O.js +2 -0
  95. package/dist/cdn/{ZCLYSOQM.js → Q7GMS6X2.js} +1 -1
  96. package/dist/cdn/{2HAYT46E.js → QA3SYWWX.js} +1 -1
  97. package/dist/cdn/{3S5PVZVU.js → QCCLUBLV.js} +1 -1
  98. package/dist/cdn/{3CDO3ATJ.js → QCXOGAWW.js} +1 -1
  99. package/dist/cdn/{X6JL6SAH.js → QLRGY4WQ.js} +1 -1
  100. package/dist/cdn/{ZTRQVOAR.js → QX7YVGEN.js} +1 -1
  101. package/dist/cdn/{4D4UXCEU.js → R7A62RZ4.js} +1 -1
  102. package/dist/cdn/{S4VDUHA7.js → RCOHFQC5.js} +1 -1
  103. package/dist/cdn/{U56TK45K.js → RFSPNC4B.js} +13 -13
  104. package/dist/cdn/RLV5JHIU.js +2 -0
  105. package/dist/cdn/RXOPHYUF.js +2 -0
  106. package/dist/cdn/{M73VTGBI.js → S2A7SDYB.js} +1 -1
  107. package/dist/cdn/{RYBSWXQQ.js → S2Y44VZV.js} +1 -1
  108. package/dist/cdn/{3ZYEIYTY.js → S6J35GRM.js} +1 -1
  109. package/dist/cdn/SIODWUWX.js +2 -0
  110. package/dist/cdn/{WZCJ2VDD.js → SNJPMQCE.js} +1 -1
  111. package/dist/cdn/{DUXRJBCP.js → SRLQU37I.js} +1 -1
  112. package/dist/cdn/TCUNTTNI.js +2 -0
  113. package/dist/cdn/{AOWNMC3W.js → TK235QG4.js} +1 -1
  114. package/dist/cdn/{ITSA4WXG.js → TRXDA7G2.js} +1 -1
  115. package/dist/cdn/U2ZKJCSY.js +27 -0
  116. package/dist/cdn/UBPOT5V3.js +2 -0
  117. package/dist/cdn/{QGDR24DC.js → UY66XIX3.js} +1 -1
  118. package/dist/cdn/{BAFYN4RD.js → V2DYKK6V.js} +1 -1
  119. package/dist/cdn/{QEPO225M.js → V6VJJHYJ.js} +1 -1
  120. package/dist/cdn/{YM2IDMZO.js → V73HMWMC.js} +1 -1
  121. package/dist/cdn/{7WIFBTQF.js → VCL4OTSQ.js} +6 -14
  122. package/dist/cdn/{Z23BVIGQ.js → VYCVNEK2.js} +1 -1
  123. package/dist/cdn/{2BM4W44V.js → WAJG744H.js} +1 -1
  124. package/dist/cdn/WRLN7DLT.js +2 -0
  125. package/dist/cdn/X3CDW2ME.js +78 -0
  126. package/dist/cdn/{3TIQRBWC.js → XDONARND.js} +1 -1
  127. package/dist/cdn/{MGEDATQ7.js → XF5N3NI5.js} +1 -1
  128. package/dist/cdn/{63ZMLOEP.js → XKBOPER7.js} +1 -1
  129. package/dist/cdn/XOEFU24R.js +2 -0
  130. package/dist/cdn/{U6JZYJ4D.js → Y3Q6SFIV.js} +1 -1
  131. package/dist/cdn/Y6KZTCZD.js +2 -0
  132. package/dist/cdn/{WI67R264.js → YKSW755L.js} +1 -1
  133. package/dist/cdn/YM4U4HSN.js +2 -0
  134. package/dist/cdn/{OQOCOC5R.js → ZQAD6SUE.js} +1 -1
  135. package/dist/cdn/{QU25YPPX.js → ZZJHOJM5.js} +1 -1
  136. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.en.json +1 -1
  137. package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.json +1 -1
  138. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.en.json +1 -1
  139. package/dist/cdn/assets/solutions-deploy-app/t9n/messages.json +1 -1
  140. package/dist/cdn/index.js +1 -1
  141. package/dist/chunks/assessBuildRequest.js +13 -13
  142. package/dist/chunks/assessUpdateRequest.js +29 -26
  143. package/dist/chunks/assistantResponse.js +6 -14
  144. package/dist/chunks/classifyIntent.js +5 -5
  145. package/dist/chunks/solution-builder-assistant.js +3 -3
  146. package/dist/chunks/updateDesign.js +1 -1
  147. package/dist/components/arcgis-solutions-assistant/customElement.d.ts +6 -0
  148. package/dist/components/arcgis-solutions-assistant/customElement.js +465 -448
  149. package/dist/components/create-feature/customElement.js +101 -74
  150. package/dist/components/crowdsource-reporter/customElement.d.ts +6 -2
  151. package/dist/components/crowdsource-reporter/customElement.js +1 -1
  152. package/dist/components/solutions-deploy-app/customElement.d.ts +8 -0
  153. package/dist/components/solutions-deploy-app/customElement.js +19 -19
  154. package/dist/docs/api.json +1 -1
  155. package/dist/docs/docs.json +1 -1
  156. package/dist/docs/web-types.json +1 -1
  157. package/dist/solutions-components_commit.txt +3 -3
  158. package/package.json +3 -3
  159. package/dist/cdn/4MAZNAHZ.js +0 -2
  160. package/dist/cdn/4RU3GWUU.js +0 -2
  161. package/dist/cdn/6IBUETLU.js +0 -2
  162. package/dist/cdn/6ZN2VAXG.js +0 -2
  163. package/dist/cdn/7CAFUU5D.js +0 -2
  164. package/dist/cdn/APL6U736.js +0 -2
  165. package/dist/cdn/BBECVTV3.js +0 -2
  166. package/dist/cdn/BG4LNU44.js +0 -2
  167. package/dist/cdn/BZLMMSFW.js +0 -2
  168. package/dist/cdn/CDJCXGBN.js +0 -2
  169. package/dist/cdn/CUOHPTI7.js +0 -2
  170. package/dist/cdn/CVHXDPJO.js +0 -2
  171. package/dist/cdn/DD2Y5NOB.js +0 -2
  172. package/dist/cdn/DMM5WA5Q.js +0 -4
  173. package/dist/cdn/DVWIWECZ.js +0 -27
  174. package/dist/cdn/F2V6IA23.js +0 -2
  175. package/dist/cdn/GWJRCE5C.js +0 -90
  176. package/dist/cdn/JGMNZLH4.js +0 -7
  177. package/dist/cdn/JMYENPUQ.js +0 -2
  178. package/dist/cdn/LBY3ZNJE.js +0 -2
  179. package/dist/cdn/LZDMYPQ2.js +0 -75
  180. package/dist/cdn/ON244IGD.js +0 -2
  181. package/dist/cdn/PYBOC3DB.js +0 -2
  182. package/dist/cdn/RMEDO4JC.js +0 -2
  183. package/dist/cdn/SO27FVOH.js +0 -2
  184. package/dist/cdn/SWM5KEF6.js +0 -2
  185. package/dist/cdn/TDH6R4JP.js +0 -2
  186. package/dist/cdn/TWJSFINX.js +0 -2
  187. package/dist/cdn/UQDRAXO2.js +0 -2
  188. package/dist/cdn/UQN2JCKP.js +0 -2
  189. package/dist/cdn/WDRZR4N3.js +0 -2
  190. package/dist/cdn/WUKFT5AY.js +0 -4
  191. package/dist/cdn/WW6SEFWM.js +0 -2
  192. package/dist/cdn/XDF5MAGN.js +0 -2
  193. package/dist/cdn/Y7F2QFO6.js +0 -2
  194. package/dist/cdn/YCJJWOTP.js +0 -2
  195. package/dist/cdn/ZWKTEPK3.js +0 -2
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import b from"./SO27FVOH.js";import a from"./KGUELU4O.js";export default $arcgis.t(([S,U,q,v,{a:A,b:D}])=>{var T=5e3,Y=1e4,x=Symbol("TIMEOUT");function R(e,n,l,t=T){return Promise.race([e,new Promise(a=>{setTimeout(()=>{console.warn(`[InteractiveLegend] Timed out waiting for ${n}${l?` (layer: ${l})`:""} after ${t}ms; continuing.`),a(x)},t)})])}function O(e,n,l,t=T){return R(S.whenOnce(e).then(()=>!0),n,l,t)}function P(e,n,l){let t=l?.layer?.id;e.push(R(_(n,l),"createInteractiveLegendDataForLayer",t).then(a=>a===x?null:a))}function Z(e,n){return l=>{let t=l?.layer?.type;if(t==="feature"||t==="group"){P(e,n,l);let a=s=>{P(e,n,s)};l.children.forEach(s=>{a(s),s?.children?.length>0&&s.children.forEach(i=>{a(i),i?.children?.length>0&&i.children.forEach(o=>{a(o)})})})}}}async function _(e,n){try{let l=n?.layer?.id,t=n?.layer?.type==="group",a=n?.layer?.layers?.some(d=>d.visible),s=n?.layer?.layers?.every(d=>!d?.legendEnabled);await O(()=>e?.state==="ready","legendViewModel ready",l),!t||t&&a?t&&s?await O(()=>n?.layer?.loaded,"group layer loaded",l):await O(()=>n?.ready,"activeLayerInfo ready",l):await O(()=>!!n?.legendElements,"legendElements",l);let i=n?.legendElements?.[0],o=new Map,r=n.layer,u=e?.view?.whenLayerView(r);if(!u)return null;let c=await R(u,"whenLayerView",l,Y);if(c===x)return null;let f=c,y=r.renderer?.field??"";i!==void 0&&i?.infos?.forEach(d=>{if(d.type==="symbol-table"){let h=[];d.infos.forEach(m=>{let $={count:null,selected:!1,legendElementInfo:m};h.push($)});let E={count:null,selected:!1,legendElementInfo:d,nestedInfos:h};o.set(d.title,E)}else{let h={count:null,selected:!1,legendElementInfo:d};o.set(d.label??r.id,h)}});let p=[];return f?Promise.resolve({activeLayerInfo:n,title:f.layer.title,categories:o,field:y,queryExpressions:p,totalCount:null,fLayerView:f,legendElement:i}):Promise.resolve(null)}catch{return await Promise.resolve(null)}}async function ie(e){let n={},l=[];e.activeLayerInfos.forEach(Z(l,e));try{return(await Promise.all(l)).forEach(t=>{let a=t?.activeLayerInfo?.layer?.id;n[a]=t}),Promise.resolve(n)}catch{return await Promise.reject(new Error("Failed to generate data"))}}function oe(e){return Array.from(e,n=>n[1])}function fe(e,n,l,t,a){if(t)return t?.nestedInfos?.[a];let s="label"in l&&l?.label?l?.label:n?.id;return e?.categories?.get(s)}function ce(e){return A?.data?.[e?.id]}async function ue(e,n,l,t,a){let{queryExpressions:s,fLayerView:i}=e;ee(e,n,l,a);let o=s.every(f=>f&&f.includes("<>"))?" AND ":" OR ",r=s.join(o),u=i?.filter?.timeExtent??i?.featureEffect?.filter?.timeExtent??null,{type:c}=t;if(c==="filter")i.filter=new q({where:r,timeExtent:u});else if(t.effect){let{includedEffect:f,excludedEffect:y}=t.effect,p=await v(y,i,"excludedEffect"),d=await v(f,i,"includedEffect");i.featureEffect=new U({filter:new q({where:r,timeExtent:u}),includedEffect:d,excludedEffect:p})}return await Promise.resolve()}function k(e,n){let l=n?n?.layer?.renderer?.authoringInfo:null,t=l?l.fields:null,a=[];if(!t)return"";if(Object.hasOwn(e,"value"))return t.forEach(s=>{if(e.value===s)return;let i=`(${e.value} > ${s} OR (${s} IS NULL AND ${e.value} IS NOT NULL AND (${e.value} > 0 OR ${e.value} < 0)))`;a.push(i)}),a.join(" AND ");{let s=[];t.forEach(o=>{s.push(`${o} = 0`)});let i=[];if(t.length>2){t.forEach(r=>{t.forEach(u=>{if(r===u)return;let c=[];t.forEach(f=>{r===f||u===f||c.push(`${r} = ${u} AND (${r} > ${f} OR ${r} >= ${f})`)}),i.push(`(${c.join(" AND ")})`)})});let o=[];return t.forEach(r=>{o.push(`${r} IS NULL`)}),`(${s.join(" AND ")}) OR (${i.join(" OR ")}) OR (${o.join(" AND ")})`}else{let o=[];t.forEach(u=>{t.forEach(c=>{u!==c&&(o.push(`${u} = ${c}`),o.push(`(${s.join(" AND ")})`))})});let r=[];return t.forEach(u=>{t.forEach(c=>{u!==c&&r.push(`(${u} = 0 AND ${c} IS NULL) OR (${u} IS NULL AND ${c} IS NULL)`)})}),`(${o.join(" OR ")}) OR (${r.join(" OR ")})`}}}function ee(e,n,l,t){let{field:a,legendElement:s,categories:i,fLayerView:o}=e,r=e?.queryExpressions;t&&Array.from(e.categories).map(h=>h[1]).forEach(h=>{h.nestedInfos?.every(E=>!E.selected)&&h.nestedInfos?.forEach(E=>{let m=a?`${a} = '${E.legendElementInfo.value}'`:null,$=m?r.indexOf(m):-1;m&&$!==-1&&r.splice($,1)})});let u=s?.infos,c=j(o),f=c?k(n,o):b(n,a,l,s,u??[],""),y=i?t?i.get(t.title)?.nestedInfos?.[l]:i.get(n.label??o?.layer?.id):null;y&&(y.selected=!y?.selected);let p=u&&u.length===1,d=r.indexOf(f);if(c){let h=r.indexOf(f);r.length===0||h===-1?(r&&r[0]==="1=0"&&r.splice(0,1),r.push(f)):r&&r.length===1&&f===r[0]?r[0]="1=0":r&&r.length===1||r.length===1&&f!==r[0]&&r[0]==="1=0"?r[0]=f:r.length===1&&f===r[0]&&r[0]==="1=0"?r[0]=null:r.splice(h,1),r.join(" OR ")}else r.length===0||d===-1?(r&&r[0]==="1=0"&&r.splice(0,1),r.push(f)):r&&r.length===1&&f===r[0]&&!p?r[0]="1=0":r&&r.length===1&&!p||r.length===1&&f!==r[0]&&r[0]==="1=0"&&!p?r[0]=f:r.length===1&&f===r[0]&&r[0]==="1=0"&&!p?r[0]=null:r.splice(d,1);if(t){let h=[];Array.from(e.categories).map(E=>E[1]).forEach(E=>{E.nestedInfos?.every(m=>!m.selected)&&E.nestedInfos?.forEach(m=>{a&&`${a} = '${m.legendElementInfo.value}'`&&h.push(`${a} = '${m.legendElementInfo.value}'`)})}),h.forEach(E=>{r.includes(E)||r.push(E)})}}function b(e,n,l,t,a,s){let{value:i}=e;if(t?.type==="symbol-table")if(!Object.hasOwn(e,"value")||Array.isArray(e.value)&&a?.length===1){if(Object.hasOwn(a?.[0],"value")&&Array.isArray(a?.[0].value)&&Object.hasOwn(a?.[a.length-2],"value")&&Array.isArray(a?.[a.length-2].value))return s?`((${n}/${s}) > ${a?.[0].value[1]}) OR ((${n}/${s}) < ${a?.[a.length-2].value[0]}) OR ${s} = 0 OR ${s} IS NULL`:`${n} > ${a?.[0].value[1]} OR ${n} < ${a?.[a.length-2].value[0]} OR ${n} IS NULL`;if(a?.length===1)return"1=0";{let o=[];a?.forEach(u=>{if(u?.value){let{value:c}=u,f=c.indexOf("'")!==-1?c.split("'").join("''"):null,y=f?`${n} <> '${f}'`:isNaN(c)||typeof c=="string"&&!c.trim()?`${n} <> '${c}'`:`${n} <> ${c} AND ${n} <> '${c}'`;o.push(y)}});let r=o.join(" AND ");return n&&r?`${r} OR ${n} IS NULL`:""}}else{let o=i.indexOf("'")!==-1?i.split("'").join("''"):null,r=Array.isArray(e.value),u=a&&a.length-1===l,c=!Object.hasOwn(a?.[a.length-1],"value"),f=a&&a.length-2===l;return r?s?u||c&&f?`(${n}/${s}) >= ${i[0]} AND (${n}/${s}) <= ${e.value[1]}`:`(${n}/${s}) > ${i[0]} AND (${n}/${s}) <= ${e.value[1]}`:u||c&&f?`${n} >= ${i[0]} AND ${n} <= ${i[1]}`:`${n} > ${i[0]} AND ${n} <= ${i[1]}`:a?.length===1&&n?isNaN(i)||!i.trim().length?`${n} <> '${i}'`:`${n} <> ${i} OR ${n} <> '${i}'`:o?`${n} = '${o}'`:isNaN(i)||!i.trim().length?`${n} = '${i}'`:`${n} = ${i} OR ${n} = '${i}'`}else return""}function de(e){return Array.isArray(e)?e.every(n=>!n.selected):e&&Array.from(e.categories.entries()).every(n=>!n[1].selected)&&e.queryExpressions[0]!=="1=0"}function j(e){return e?.layer?.renderer?.authoringInfo?.type==="predominance"}function ye(e){return e?.legendElements[1]?.type==="relationship-ramp"}function he(e,n,l){let t=e.layer?.renderer?.field,a=n?.type,s=e?.layerView,i=s?.layer?.renderer?.classBreakInfos,o=s?.layer?.renderer?.uniqueValueInfos&&t,r=a==="size-ramp",u=a==="color-ramp",c=a==="opacity-ramp",f=a==="heatmap-ramp",y=s&&i&&i.length>1,p=s?.layer?.renderer?.authoringInfo?.type,d=p==="class-breaks-color",h=p==="class-breaks-size",E=n?.infos?.length===1&&!t,m=p==="relationship"&&n?.type!=="size-ramp"&&n?.type!=="symbol-table",$=e?.layer?.type==="feature",g=$&&t&&!u&&!r&&y,I=!!($&&t&&!u&&!r&&!y),L=!!(I||j(s)&&!r||d&&t||h&&t||E&&!t&&t!==null||m||o),M=e?.layer?.featureReduction&&e?.legendElements?.[l]?.type==="size-ramp",V=n?.type==="symbol-table"&&n?.infos?.length===1,Q=!e?.legendElements.every(w=>w.type!=="color-ramp"),B=!e?.legendElements.every(w=>w.type!=="size-ramp"),J=V&&Q,G=V&&B,H=n?.infos?.every(w=>typeof w.value=="number"),K=e?.legendElements?.[0]?.type==="symbol-table"&&e?.legendElements?.[1]?.type==="color-ramp",W=p==="dot-density",X=F(e?.layer,t);return $&&!M&&!c&&!f&&!J&&!G&&!H&&!K&&!W&&X?i?g||L:I||L:!1}function Ee(e){return e.queryExpressions=[],e?.fLayerView?.filter?.where&&(e.fLayerView.filter.where=""),e?.fLayerView?.featureEffect?.filter?.where&&(e.fLayerView.featureEffect=null),e.categories.forEach(n=>{n.selected=!1}),e}function pe(e,n){e.categories.get(n)?.nestedInfos?.forEach(s=>{let i=`${e.field} = '${s.legendElementInfo.value}'`,o=e.queryExpressions.indexOf(i);o!==-1&&e.queryExpressions.splice(o,1),s.selected=!1});let l=[],t=Array.from(e.categories).map(s=>s[1]);t.forEach(s=>{s.nestedInfos?.every(i=>!i.selected)&&s.nestedInfos?.forEach(i=>{l.push(`${e.field} = '${i.legendElementInfo.value}'`)})}),l.forEach(s=>{e.queryExpressions.includes(s)||e.queryExpressions.push(s)});let a=e.queryExpressions.join(" OR ");return t.every(s=>s.nestedInfos?.every(i=>!i.selected))?(e?.fLayerView?.filter?.where&&(e.fLayerView.filter.where=""),e?.fLayerView?.featureEffect?.filter?.where&&(e.fLayerView.featureEffect=null),e.queryExpressions=[]):(e?.fLayerView?.filter?.where&&(e.fLayerView.filter.where=a),e?.fLayerView?.featureEffect?.filter?.where&&(e.fLayerView.featureEffect.filter.where=a)),e}async function me(e,n,l){let t=e.fLayerView.createQuery();if(l)if(l.nestedInfos.every(a=>!a.selected)){let a=l.nestedInfos.map(s=>`${e.field} = '${s.legendElementInfo.value}'`).join(" OR ");t.where=a}else{let a=l.nestedInfos.filter(s=>s.selected).map(s=>`${e.field} = '${s.legendElementInfo.value}'`).join(" OR ");t.where=a}else{let a=e.queryExpressions.join(" OR ");t.where=a}try{let{extent:a}=await e.fLayerView.layer.queryExtent(t);await n.goTo(a)}catch{}}function $e(e){return e.map(n=>n?.count).reduce((n,l)=>n+l)}function ge(e){return e.map(n=>n?.nestedInfos?.map(l=>l.count).reduce((l,t)=>l+t)).reduce((n,l)=>n+l)}async function N(e,n,l,t,a,s,i,o){if(!n||!F(n?.layer,l))return;let r=n?.layer?.type==="feature"?n.createQuery():null,u=j(n)?k(t,n):t.type?b(i,l,o,t,t.infos):b(t,l,a,s,s.infos);r&&u&&(r.where=u==="1=0"?"1=1":u,e&&(r.geometry=e));try{let c=r?await n.queryFeatureCount(r):null;return Promise.resolve({[t.label??n?.layer?.id]:c})}catch(c){console.error("FAILURE AT 'getInfoCount': ",c)}return await Promise.resolve(null)}async function we(e,n){let l={...n},{activeLayerInfos:t}=e,a=e?.view?.extent,s={},i={};t.forEach(async o=>{let r=o.legendElements[0],u=o.layer,c=n[o?.layer?.id]?.fLayerView,f=u.renderer?.field,y=[];i[o.layer.id]=[],r?.infos?.forEach((d,h)=>{if(r.infos?.every(E=>E.type==="symbol-table")){let E=[];d.infos.forEach((m,$)=>{let g=N(a,c,f,d,h,r,m,$);E.push(g)}),i[o.layer.id].push(E)}else y.push(N(a,c,f,d,h,r)),i[o.layer.id]=y});let p=d=>{let h=[],E=d.legendElements[0],m=d.layer,$=n[d?.layer?.id]?.fLayerView,g=m.renderer?.field;E?.infos?.forEach((I,L)=>h.push(N(a,$,g,I,L,E))),i[d.layer.id]=h};o.children.forEach(async d=>{p(d),d?.children?.length>0&&d.children.forEach(h=>{p(h),h?.children?.length>0&&h.children.forEach(E=>{p(E)})})})});for(let o in i){let r=s[o];r||(r=s[o]={});let u=await Promise.all(i[o]);if(u.every(c=>Array.isArray(c))){let c=await Promise.all(u.map(async f=>(await Promise.all(f)).map(y=>y&&Object.values(y)[0])));r[o]=c,s[o]={...r[o]}}else{let c={};u.forEach(f=>{if(!f)return;let y=Object.keys(f)[0];c[y]=f[y]}),o&&(r[o]=c),s[o]={...r[o]}}}return t.forEach(o=>{let r=n[o.layer.id],u=o.layer.id;r?.categories?.forEach((f,y)=>{let p=Array.from(r?.categories).findIndex(d=>d[0]===y);if(f?.nestedInfos)f?.nestedInfos.forEach((d,h)=>{let E=s?.[o?.layer?.id]?.[p]?.[h];d.count=isNaN(E)?null:E});else{let d=s?.[u]?.[y];f.count=isNaN(d)?null:d}});let c=f=>{let y=f.layer.id;n[y]?.categories?.forEach((p,d)=>{let h=s?.[y]?.[d];p.count=h})};o?.children?.forEach(f=>{c(f),f?.children?.length>0&&f.children.forEach(y=>{c(y),y?.children?.length>0&&y.children.forEach(p=>{c(p)})})})}),await Promise.resolve(l)}function ve(e,n){return e?.nestedInfos?.[n]}function Ie(e){return Array.from(e).map(n=>n[1]).every(n=>!!n?.nestedInfos)}function Le(e){return!!e?.legendElements?.[0]?.infos?.every?.(n=>n?.type==="symbol-table")}function Oe(e,n){if(typeof n?.title=="string")return e?.categories?.get(n?.title)}function Ae(e){let n="calcite-mode-",l=`${n}light`,t=`${n}dark`;return e.classList.contains(t)?t:l}function Ne(e){if(e.layerId&&e.intLegendLayerData){let n=e.layerId,l=e.intLegendLayerData,t={...A.data,[n]:l};D.set("data",t)}}function be(e,n){let{type:l}=e;l==="filter"?ne(n):l==="effect"&&re(e,n)}function ne(e){e?.allLayerViews?.filter(n=>n?.layer?.type==="feature")?.forEach(n=>{let l=n,t=z(l);l.filter=t,l.set("featureEffect",null)})}function re(e,n){n?.allLayerViews?.filter(l=>l?.layer?.type==="feature").forEach(async l=>{let t=l;if(e?.effect&&t){let{includedEffect:a,excludedEffect:s}=e.effect,i=await v(s,t,"excludedEffect"),o=await v(a,t,"includedEffect"),r=z(t);t.featureEffect=new U({filter:r,includedEffect:o,excludedEffect:i}),t.set("filter",null)}})}function z(e){return e?.filter||e?.featureEffect?.filter}function F(e,n){let l=e?.fields,t=l&&l.map(a=>a.name);return n?t&&t.includes(n):!0}function xe(e){let n=[];return e.forEach(l=>C(l,n)),n}function C(e,n){n.push(e),e.children&&e.children.length>0&&e.children.forEach(l=>{C(l,n)})}return{a:_,b:ie,c:oe,d:fe,e:ce,f:ue,g:de,h:ye,i:he,j:Ee,k:pe,l:me,m:$e,n:ge,o:we,p:ve,q:Ie,r:Le,s:Oe,t:Ae,u:Ne,v:be,w:xe}},"core/reactiveUtils","layers/support/FeatureEffect","layers/support/FeatureFilter",a,b)
@@ -1,4 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import"./QPIMTXPL.js";function Ot(n,o){(o==null||o>n.length)&&(o=n.length);for(var a=0,s=Array(o);a<o;a++)s[a]=n[a];return s}function rn(n){if(Array.isArray(n))return n}function an(n,o){var a=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(a!=null){var s,u,p,O,re=[],I=!0,ie=!1;try{if(p=(a=a.call(n)).next,o!==0)for(;!(I=(s=p.call(a)).done)&&(re.push(s.value),re.length!==o);I=!0);}catch(Ce){ie=!0,u=Ce}finally{try{if(!I&&a.return!=null&&(O=a.return(),Object(O)!==O))return}finally{if(ie)throw u}}return re}}function sn(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
3
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ln(n,o){return rn(n)||an(n,o)||cn(n,o)||sn()}function cn(n,o){if(n){if(typeof n=="string")return Ot(n,o);var a={}.toString.call(n).slice(8,-1);return a==="Object"&&n.constructor&&(a=n.constructor.name),a==="Map"||a==="Set"?Array.from(n):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?Ot(n,o):void 0}}var Ft=Object.entries,Rt=Object.setPrototypeOf,un=Object.isFrozen,fn=Object.getPrototypeOf,mn=Object.getOwnPropertyDescriptor,N=Object.freeze,w=Object.seal,oe=Object.create,Ut=typeof Reflect<"u"&&Reflect,Qe=Ut.apply,et=Ut.construct;N||(N=function(o){return o});w||(w=function(o){return o});Qe||(Qe=function(o,a){for(var s=arguments.length,u=new Array(s>2?s-2:0),p=2;p<s;p++)u[p-2]=arguments[p];return o.apply(a,u)});et||(et=function(o){for(var a=arguments.length,s=new Array(a>1?a-1:0),u=1;u<a;u++)s[u-1]=arguments[u];return new o(...s)});var $=E(Array.prototype.forEach),pn=E(Array.prototype.lastIndexOf),Dt=E(Array.prototype.pop),ee=E(Array.prototype.push),dn=E(Array.prototype.splice),D=Array.isArray,me=E(String.prototype.toLowerCase),Ve=E(String.prototype.toString),Nt=E(String.prototype.match),te=E(String.prototype.replace),It=E(String.prototype.indexOf),Tn=E(String.prototype.trim),_n=E(Number.prototype.toString),gn=E(Boolean.prototype.toString),Lt=typeof BigInt>"u"?null:E(BigInt.prototype.toString),Ct=typeof Symbol>"u"?null:E(Symbol.prototype.toString),d=E(Object.prototype.hasOwnProperty),fe=E(Object.prototype.toString),b=E(RegExp.prototype.test),ne=hn(TypeError);function E(n){return function(o){o instanceof RegExp&&(o.lastIndex=0);for(var a=arguments.length,s=new Array(a>1?a-1:0),u=1;u<a;u++)s[u-1]=arguments[u];return Qe(n,o,s)}}function hn(n){return function(){for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return et(n,a)}}function l(n,o){let a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:me;if(Rt&&Rt(n,null),!D(o))return n;let s=o.length;for(;s--;){let u=o[s];if(typeof u=="string"){let p=a(u);p!==u&&(un(o)||(o[s]=p),u=p)}n[u]=!0}return n}function En(n){for(let o=0;o<n.length;o++)d(n,o)||(n[o]=null);return n}function R(n){let o=oe(null);for(let s of Ft(n)){var a=ln(s,2);let u=a[0],p=a[1];d(n,u)&&(D(p)?o[u]=En(p):p&&typeof p=="object"&&p.constructor===Object?o[u]=R(p):o[u]=p)}return o}function An(n){switch(typeof n){case"string":return n;case"number":return _n(n);case"boolean":return gn(n);case"bigint":return Lt?Lt(n):"0";case"symbol":return Ct?Ct(n):"Symbol()";case"undefined":return fe(n);case"function":case"object":{if(n===null)return fe(n);let o=n,a=U(o,"toString");if(typeof a=="function"){let s=a(o);return typeof s=="string"?s:fe(s)}return fe(n)}default:return fe(n)}}function U(n,o){for(;n!==null;){let s=mn(n,o);if(s){if(s.get)return E(s.get);if(typeof s.value=="function")return E(s.value)}n=fn(n)}function a(){return null}return a}function Sn(n){try{return b(n,""),!0}catch{return!1}}var wt=N(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),qe=N(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ke=N(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),yn=N(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Ze=N(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),bn=N(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Mt=N(["#text"]),Pt=N(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),Je=N(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),xt=N(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Le=N(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),On=w(/{{[\w\W]*|^[\w\W]*}}/g),Rn=w(/<%[\w\W]*|^[\w\W]*%>/g),Dn=w(/\${[\w\W]*/g),Nn=w(/^data-[\-\w.\u00B7-\uFFFF]+$/),In=w(/^aria-[\-\w]+$/),kt=w(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ln=w(/^(?:\w+script|data):/i),Cn=w(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),wn=w(/^html$/i),Mn=w(/^[a-z][.\w]*(-[.\w]+)+$/i),F={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Pn=function(){return typeof window>"u"?null:window},xn=function(o,a){if(typeof o!="object"||typeof o.createPolicy!="function")return null;let s=null,u="data-tt-policy-suffix";a&&a.hasAttribute(u)&&(s=a.getAttribute(u));let p="dompurify"+(s?"#"+s:"");try{return o.createPolicy(p,{createHTML(O){return O},createScriptURL(O){return O}})}catch{return console.warn("TrustedTypes policy "+p+" could not be created."),null}},vt=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Ht(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Pn(),o=i=>Ht(i);if(o.version="3.4.8",o.removed=[],!n||!n.document||n.document.nodeType!==F.document||!n.Element)return o.isSupported=!1,o;let a=n.document,s=a,u=s.currentScript;n.DocumentFragment;let p=n.HTMLTemplateElement,O=n.Node,re=n.Element,I=n.NodeFilter,ie=n.NamedNodeMap;ie===void 0&&(n.NamedNodeMap||n.MozNamedAttrMap),n.HTMLFormElement;let Ce=n.DOMParser,pe=n.trustedTypes,B=re.prototype,zt=U(B,"cloneNode"),Gt=U(B,"remove"),Wt=U(B,"nextSibling"),de=U(B,"childNodes"),Te=U(B,"parentNode"),_e=U(B,"shadowRoot"),Bt=U(B,"attributes"),M=O&&O.prototype?U(O.prototype,"nodeType"):null,z=O&&O.prototype?U(O.prototype,"nodeName"):null;if(typeof p=="function"){let i=a.createElement("template");i.content&&i.content.ownerDocument&&(a=i.content.ownerDocument)}let L,ae="",we=0,X=function(e){if(we>0)throw ne('The configured TRUSTED_TYPES_POLICY.createHTML must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose createHTML wraps DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.');we++;try{return L.createHTML(e)}finally{we--}},ge=a,Me=ge.implementation,tt=ge.createNodeIterator,Yt=ge.createDocumentFragment,jt=ge.getElementsByTagName,$t=s.importNode,S=vt();o.isSupported=typeof Ft=="function"&&typeof Te=="function"&&Me&&Me.createHTMLDocument!==void 0;let he=On,Ee=Rn,Ae=Dn,Xt=Nn,Vt=In,qt=Ln,nt=Cn,Kt=Mn,ot=kt,T=null,Pe=l({},[...wt,...qe,...Ke,...Ze,...Mt]),h=null,xe=l({},[...Pt,...Je,...xt,...Le]),_=Object.seal(oe(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),se=null,Se=null,G=Object.seal(oe(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),rt=!0,ke=!0,it=!1,at=!0,W=!1,le=!0,Y=!1,ve=!1,Fe=!1,V=!1,ye=!1,be=!1,st=!0,lt=!1,ct="user-content-",Ue=!0,ce=!1,q={},k=null,He=l({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),ut=null,ft=l({},["audio","video","img","source","image","track"]),ze=null,mt=l({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Oe="http://www.w3.org/1998/Math/MathML",Re="http://www.w3.org/2000/svg",v="http://www.w3.org/1999/xhtml",K=v,Ge=!1,We=null,Zt=l({},[Oe,Re,v],Ve),Be=l({},["mi","mo","mn","ms","mtext"]),Ye=l({},["annotation-xml"]),Jt=l({},["title","style","font","a","script"]),ue=null,Qt=["application/xhtml+xml","text/html"],en="text/html",g=null,Z=null,tn=a.createElement("form"),pt=function(e){return e instanceof RegExp||e instanceof Function},je=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(Z&&Z===e)return;(!e||typeof e!="object")&&(e={}),e=R(e),ue=Qt.indexOf(e.PARSER_MEDIA_TYPE)===-1?en:e.PARSER_MEDIA_TYPE,g=ue==="application/xhtml+xml"?Ve:me,T=d(e,"ALLOWED_TAGS")&&D(e.ALLOWED_TAGS)?l({},e.ALLOWED_TAGS,g):Pe,h=d(e,"ALLOWED_ATTR")&&D(e.ALLOWED_ATTR)?l({},e.ALLOWED_ATTR,g):xe,We=d(e,"ALLOWED_NAMESPACES")&&D(e.ALLOWED_NAMESPACES)?l({},e.ALLOWED_NAMESPACES,Ve):Zt,ze=d(e,"ADD_URI_SAFE_ATTR")&&D(e.ADD_URI_SAFE_ATTR)?l(R(mt),e.ADD_URI_SAFE_ATTR,g):mt,ut=d(e,"ADD_DATA_URI_TAGS")&&D(e.ADD_DATA_URI_TAGS)?l(R(ft),e.ADD_DATA_URI_TAGS,g):ft,k=d(e,"FORBID_CONTENTS")&&D(e.FORBID_CONTENTS)?l({},e.FORBID_CONTENTS,g):He,se=d(e,"FORBID_TAGS")&&D(e.FORBID_TAGS)?l({},e.FORBID_TAGS,g):R({}),Se=d(e,"FORBID_ATTR")&&D(e.FORBID_ATTR)?l({},e.FORBID_ATTR,g):R({}),q=d(e,"USE_PROFILES")?e.USE_PROFILES&&typeof e.USE_PROFILES=="object"?R(e.USE_PROFILES):e.USE_PROFILES:!1,rt=e.ALLOW_ARIA_ATTR!==!1,ke=e.ALLOW_DATA_ATTR!==!1,it=e.ALLOW_UNKNOWN_PROTOCOLS||!1,at=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,W=e.SAFE_FOR_TEMPLATES||!1,le=e.SAFE_FOR_XML!==!1,Y=e.WHOLE_DOCUMENT||!1,V=e.RETURN_DOM||!1,ye=e.RETURN_DOM_FRAGMENT||!1,be=e.RETURN_TRUSTED_TYPE||!1,Fe=e.FORCE_BODY||!1,st=e.SANITIZE_DOM!==!1,lt=e.SANITIZE_NAMED_PROPS||!1,Ue=e.KEEP_CONTENT!==!1,ce=e.IN_PLACE||!1,ot=Sn(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:kt,K=typeof e.NAMESPACE=="string"?e.NAMESPACE:v,Be=d(e,"MATHML_TEXT_INTEGRATION_POINTS")&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS=="object"?R(e.MATHML_TEXT_INTEGRATION_POINTS):l({},["mi","mo","mn","ms","mtext"]),Ye=d(e,"HTML_INTEGRATION_POINTS")&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS=="object"?R(e.HTML_INTEGRATION_POINTS):l({},["annotation-xml"]);let t=d(e,"CUSTOM_ELEMENT_HANDLING")&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING=="object"?R(e.CUSTOM_ELEMENT_HANDLING):oe(null);if(_=oe(null),d(t,"tagNameCheck")&&pt(t.tagNameCheck)&&(_.tagNameCheck=t.tagNameCheck),d(t,"attributeNameCheck")&&pt(t.attributeNameCheck)&&(_.attributeNameCheck=t.attributeNameCheck),d(t,"allowCustomizedBuiltInElements")&&typeof t.allowCustomizedBuiltInElements=="boolean"&&(_.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),W&&(ke=!1),ye&&(V=!0),q&&(T=l({},Mt),h=oe(null),q.html===!0&&(l(T,wt),l(h,Pt)),q.svg===!0&&(l(T,qe),l(h,Je),l(h,Le)),q.svgFilters===!0&&(l(T,Ke),l(h,Je),l(h,Le)),q.mathMl===!0&&(l(T,Ze),l(h,xt),l(h,Le))),G.tagCheck=null,G.attributeCheck=null,d(e,"ADD_TAGS")&&(typeof e.ADD_TAGS=="function"?G.tagCheck=e.ADD_TAGS:D(e.ADD_TAGS)&&(T===Pe&&(T=R(T)),l(T,e.ADD_TAGS,g))),d(e,"ADD_ATTR")&&(typeof e.ADD_ATTR=="function"?G.attributeCheck=e.ADD_ATTR:D(e.ADD_ATTR)&&(h===xe&&(h=R(h)),l(h,e.ADD_ATTR,g))),d(e,"ADD_URI_SAFE_ATTR")&&D(e.ADD_URI_SAFE_ATTR)&&l(ze,e.ADD_URI_SAFE_ATTR,g),d(e,"FORBID_CONTENTS")&&D(e.FORBID_CONTENTS)&&(k===He&&(k=R(k)),l(k,e.FORBID_CONTENTS,g)),d(e,"ADD_FORBID_CONTENTS")&&D(e.ADD_FORBID_CONTENTS)&&(k===He&&(k=R(k)),l(k,e.ADD_FORBID_CONTENTS,g)),Ue&&(T["#text"]=!0),Y&&l(T,["html","head","body"]),T.table&&(l(T,["tbody"]),delete se.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw ne('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw ne('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let r=L;L=e.TRUSTED_TYPES_POLICY;try{ae=X("")}catch(f){throw L=r,f}}else L===void 0&&e.TRUSTED_TYPES_POLICY!==null&&(L=xn(pe,u)),L&&typeof ae=="string"&&(ae=X(""));(S.uponSanitizeElement.length>0||S.uponSanitizeAttribute.length>0)&&T===Pe&&(T=R(T)),S.uponSanitizeAttribute.length>0&&h===xe&&(h=R(h)),N&&N(e),Z=e},dt=l({},[...qe,...Ke,...yn]),Tt=l({},[...Ze,...bn]),nn=function(e){let t=Te(e);(!t||!t.tagName)&&(t={namespaceURI:K,tagName:"template"});let r=me(e.tagName),f=me(t.tagName);return We[e.namespaceURI]?e.namespaceURI===Re?t.namespaceURI===v?r==="svg":t.namespaceURI===Oe?r==="svg"&&(f==="annotation-xml"||Be[f]):!!dt[r]:e.namespaceURI===Oe?t.namespaceURI===v?r==="math":t.namespaceURI===Re?r==="math"&&Ye[f]:!!Tt[r]:e.namespaceURI===v?t.namespaceURI===Re&&!Ye[f]||t.namespaceURI===Oe&&!Be[f]?!1:!Tt[r]&&(Jt[r]||!dt[r]):!!(ue==="application/xhtml+xml"&&We[e.namespaceURI]):!1},P=function(e){ee(o.removed,{element:e});try{Te(e).removeChild(e)}catch{Gt(e)}},j=function(e,t){try{ee(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch{ee(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is")if(V||ye)try{P(t)}catch{}else try{t.setAttribute(e,"")}catch{}},_t=function(e){let t=null,r=null;if(Fe)e="<remove></remove>"+e;else{let m=Nt(e,/^[\r\n\t ]+/);r=m&&m[0]}ue==="application/xhtml+xml"&&K===v&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let f=L?X(e):e;if(K===v)try{t=new Ce().parseFromString(f,ue)}catch{}if(!t||!t.documentElement){t=Me.createDocument(K,"template",null);try{t.documentElement.innerHTML=Ge?ae:f}catch{}}let c=t.body||t.documentElement;return e&&r&&c.insertBefore(a.createTextNode(r),c.childNodes[0]||null),K===v?jt.call(t,Y?"html":"body")[0]:Y?t.documentElement:c},gt=function(e){return tt.call(e.ownerDocument||e,e,I.SHOW_ELEMENT|I.SHOW_COMMENT|I.SHOW_TEXT|I.SHOW_PROCESSING_INSTRUCTION|I.SHOW_CDATA_SECTION,null)},$e=function(e){var t,r;e.normalize();let f=tt.call(e.ownerDocument||e,e,I.SHOW_TEXT|I.SHOW_COMMENT|I.SHOW_CDATA_SECTION|I.SHOW_PROCESSING_INSTRUCTION,null),c=f.nextNode();for(;c;){let A=c.data;$([he,Ee,Ae],C=>{A=te(A,C," ")}),c.data=A,c=f.nextNode()}let m=(t=(r=e.querySelectorAll)===null||r===void 0?void 0:r.call(e,"template"))!==null&&t!==void 0?t:[];$(Array.from(m),A=>{J(A.content)&&$e(A.content)})},De=function(e){let t=z?z(e):null;return typeof t!="string"||g(t)!=="form"?!1:typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||e.attributes!==Bt(e)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function"||e.nodeType!==M(e)||e.childNodes!==de(e)},J=function(e){if(!M||typeof e!="object"||e===null)return!1;try{return M(e)===F.documentFragment}catch{return!1}},Ne=function(e){if(!M||typeof e!="object"||e===null)return!1;try{return typeof M(e)=="number"}catch{return!1}};function H(i,e,t){$(i,r=>{r.call(o,e,t,Z)})}let ht=function(e){let t=null;if(H(S.beforeSanitizeElements,e,null),De(e))return P(e),!0;let r=g(z?z(e):e.nodeName);if(H(S.uponSanitizeElement,e,{tagName:r,allowedTags:T}),le&&e.hasChildNodes()&&!Ne(e.firstElementChild)&&b(/<[/\w!]/g,e.innerHTML)&&b(/<[/\w!]/g,e.textContent)||le&&e.namespaceURI===v&&r==="style"&&Ne(e.firstElementChild)||e.nodeType===F.progressingInstruction||le&&e.nodeType===F.comment&&b(/<[/\w]/g,e.data))return P(e),!0;if(se[r]||!(G.tagCheck instanceof Function&&G.tagCheck(r))&&!T[r]){if(!se[r]&&At(r)&&(_.tagNameCheck instanceof RegExp&&b(_.tagNameCheck,r)||_.tagNameCheck instanceof Function&&_.tagNameCheck(r)))return!1;if(Ue&&!k[r]){let c=Te(e),m=de(e);if(m&&c){let A=m.length;for(let C=A-1;C>=0;--C){let x=zt(m[C],!0);c.insertBefore(x,Wt(e))}}}return P(e),!0}return(M?M(e):e.nodeType)===F.element&&!nn(e)||(r==="noscript"||r==="noembed"||r==="noframes")&&b(/<\/no(script|embed|frames)/i,e.innerHTML)?(P(e),!0):(W&&e.nodeType===F.text&&(t=e.textContent,$([he,Ee,Ae],c=>{t=te(t,c," ")}),e.textContent!==t&&(ee(o.removed,{element:e.cloneNode()}),e.textContent=t)),H(S.afterSanitizeElements,e,null),!1)},Et=function(e,t,r){if(Se[t]||st&&(t==="id"||t==="name")&&(r in a||r in tn))return!1;let f=h[t]||G.attributeCheck instanceof Function&&G.attributeCheck(t,e);if(!(ke&&!Se[t]&&b(Xt,t))){if(!(rt&&b(Vt,t))){if(!f||Se[t]){if(!(At(e)&&(_.tagNameCheck instanceof RegExp&&b(_.tagNameCheck,e)||_.tagNameCheck instanceof Function&&_.tagNameCheck(e))&&(_.attributeNameCheck instanceof RegExp&&b(_.attributeNameCheck,t)||_.attributeNameCheck instanceof Function&&_.attributeNameCheck(t,e))||t==="is"&&_.allowCustomizedBuiltInElements&&(_.tagNameCheck instanceof RegExp&&b(_.tagNameCheck,r)||_.tagNameCheck instanceof Function&&_.tagNameCheck(r))))return!1}else if(!ze[t]){if(!b(ot,te(r,nt,""))){if(!((t==="src"||t==="xlink:href"||t==="href")&&e!=="script"&&It(r,"data:")===0&&ut[e])){if(!(it&&!b(qt,te(r,nt,"")))){if(r)return!1}}}}}}return!0},on=l({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),At=function(e){return!on[me(e)]&&b(Kt,e)},St=function(e){H(S.beforeSanitizeAttributes,e,null);let t=e.attributes;if(!t||De(e))return;let r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:h,forceKeepAttr:void 0},f=t.length;for(;f--;){let c=t[f],m=c.name,A=c.namespaceURI,C=c.value,x=g(m),Xe=C,y=m==="value"?Xe:Tn(Xe);if(r.attrName=x,r.attrValue=y,r.keepAttr=!0,r.forceKeepAttr=void 0,H(S.uponSanitizeAttribute,e,r),y=r.attrValue,lt&&(x==="id"||x==="name")&&It(y,ct)!==0&&(j(m,e),y=ct+y),le&&b(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,y)){j(m,e);continue}if(x==="attributename"&&Nt(y,"href")){j(m,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){j(m,e);continue}if(!at&&b(/\/>/i,y)){j(m,e);continue}W&&$([he,Ee,Ae],bt=>{y=te(y,bt," ")});let yt=g(e.nodeName);if(!Et(yt,x,y)){j(m,e);continue}if(L&&typeof pe=="object"&&typeof pe.getAttributeType=="function"&&!A)switch(pe.getAttributeType(yt,x)){case"TrustedHTML":{y=X(y);break}case"TrustedScriptURL":{y=L.createScriptURL(y);break}}if(y!==Xe)try{A?e.setAttributeNS(A,m,y):e.setAttribute(m,y),De(e)?P(e):Dt(o.removed)}catch{j(m,e)}}H(S.afterSanitizeAttributes,e,null)},Ie=function(e){let t=null,r=gt(e);for(H(S.beforeSanitizeShadowDOM,e,null);t=r.nextNode();)if(H(S.uponSanitizeShadowNode,t,null),ht(t),St(t),J(t.content)&&Ie(t.content),(M?M(t):t.nodeType)===F.element){let c=_e?_e(t):t.shadowRoot;J(c)&&(Q(c),Ie(c))}H(S.afterSanitizeShadowDOM,e,null)},Q=function(e){let t=M?M(e):e.nodeType;if(t===F.element){let c=_e?_e(e):e.shadowRoot;J(c)&&(Q(c),Ie(c))}let r=de?de(e):e.childNodes;if(!r)return;let f=[];$(r,c=>{ee(f,c)});for(let c of f)Q(c);if(t===F.element){let c=z?z(e):null;if(typeof c=="string"&&g(c)==="template"){let m=e.content;J(m)&&Q(m)}}};return o.sanitize=function(i){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=null,r=null,f=null,c=null;if(Ge=!i,Ge&&(i="<!-->"),typeof i!="string"&&!Ne(i)&&(i=An(i),typeof i!="string"))throw ne("dirty is not a string, aborting");if(!o.isSupported)return i;if(ve||je(e),o.removed=[],typeof i=="string"&&(ce=!1),ce){let C=z?z(i):i.nodeName;if(typeof C=="string"){let x=g(C);if(!T[x]||se[x])throw ne("root node is forbidden and cannot be sanitized in-place")}if(De(i))throw ne("root node is clobbered and cannot be sanitized in-place");Q(i)}else if(Ne(i))t=_t("<!---->"),r=t.ownerDocument.importNode(i,!0),r.nodeType===F.element&&r.nodeName==="BODY"||r.nodeName==="HTML"?t=r:t.appendChild(r),Q(r);else{if(!V&&!W&&!Y&&i.indexOf("<")===-1)return L&&be?X(i):i;if(t=_t(i),!t)return V?null:be?ae:""}t&&Fe&&P(t.firstChild);let m=gt(ce?i:t);for(;f=m.nextNode();)ht(f),St(f),J(f.content)&&Ie(f.content);if(ce)return W&&$e(i),i;if(V){if(W&&$e(t),ye)for(c=Yt.call(t.ownerDocument);t.firstChild;)c.appendChild(t.firstChild);else c=t;return(h.shadowroot||h.shadowrootmode)&&(c=$t.call(s,c,!0)),c}let A=Y?t.outerHTML:t.innerHTML;return Y&&T["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&b(wn,t.ownerDocument.doctype.name)&&(A="<!DOCTYPE "+t.ownerDocument.doctype.name+`>
4
- `+A),W&&$([he,Ee,Ae],C=>{A=te(A,C," ")}),L&&be?X(A):A},o.setConfig=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};je(i),ve=!0},o.clearConfig=function(){Z=null,ve=!1},o.isValidAttribute=function(i,e,t){Z||je({});let r=g(i),f=g(e);return Et(r,f,t)},o.addHook=function(i,e){typeof e=="function"&&ee(S[i],e)},o.removeHook=function(i,e){if(e!==void 0){let t=pn(S[i],e);return t===-1?void 0:dn(S[i],t,1)[0]}return Dt(S[i])},o.removeHooks=function(i){S[i]=[]},o.removeAllHooks=function(){S=vt()},o}var kn=Ht();export{kn as default};
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import f from"./WDRZR4N3.js";import e from"./SO27FVOH.js";import b from"./KGUELU4O.js";import a from"./4AFANEZZ.js";import{a as g}from"./LHG6NOEP.js";import{b as p}from"./CVHXDPJO.js";import"./RMEDO4JC.js";import"./ISFTCFSJ.js";import{G as o,I as d,J as l,K as c,h as s,i as t,q as r}from"./FFF5HUPM.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,,{i:h,t:v}])=>{var _=s`:host{display:block;--instant-apps-interactive-legend-heading-font-size: 1rem;--instant-apps-interactive-legend-heading-font-weight: normal;--instant-apps-interactive-legend-secondary-color: var( --calcite-color-text-1 );--instant-apps-interactive-legend-ui-padding: 15px 10px}:host .esri-widget__heading{overflow:hidden}:host .esri-widget__heading{margin:0;overflow-x:hidden}:host .esri-widget__heading{display:inline-block;font-size:var(--instant-apps-interactive-legend-heading-font-size)}:host .esri-widget__heading{font-weight:var(--instant-apps-interactive-legend-heading-font-weight)}:host header{display:flex;text-align:left;padding:var(--instant-apps-interactive-legend-ui-padding);background-color:var(--instant-apps-interactive-legend-secondary-background-color);color:var(--instant-apps-interactive-legend-secondary-color)}:host header h3{margin-bottom:0;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;line-height:normal;color:var(--instant-apps-interactive-legend-secondary-color)}:host header .instant-apps-interactive-legend__heading-text--group-item{-webkit-line-clamp:2;line-clamp:2}:host header span{width:100%;font-size:var(--instant-apps-interactive-legend-total-feature-count-font-size);color:var(--instant-apps-interactive-legend-secondary-color)}:host header .instant-apps-interactive-legend__header-action-container{display:flex;align-items:center}:host .esri-widget__heading header{padding:var(--instant-apps-interactive-legend-ui-padding)}:host .esri-widget--panel{margin:0}:host(.calcite-mode-dark) .instant-apps-interactive-legend__header{background-color:#242424;color:var(--calcite-color-text-1)}:host(.calcite-mode-light) .instant-apps-interactive-legend__header{background-color:#fff;color:var(--calcite-color-text-1)}`,e={label:"esri-legend__service-label",header:"esri-widget__heading",interactiveLegendHeader:"instant-apps-interactive-legend__header",headerActionContainer:"instant-apps-interactive-legend__header-action-container"},a=class extends o{constructor(){super(...arguments),this._messages=g({name:"instant-apps-interactive-legend",blocking:!0}),this.isChild=!1,this.expanded=!0,this.groupLayerCaptionElementExpandUpdated=r()}static{this.properties={legendvm:0,featureCount:5,activeLayerInfo:0,isChild:5,expanded:5}}static{this.styles=_}toggleExpanded(){return()=>{this.expanded=!this.expanded,this.groupLayerCaptionElementExpandUpdated.emit(this.expanded)}}render(){let m=h(this.activeLayerInfo),{expanded:n}=this,i=n?this._messages.collapse:this._messages.expand,f=this.isChild?" instant-apps-interactive-legend__heading-text--group-item":"";return t`<header class=${`${e.interactiveLegendHeader} ${v(this.el)}`} style=${l({borderLeft:"1px solid var(--calcite-color-border-3)"})}><span><span class=${d(e.headerActionContainer)}><calcite-action @click=${this.toggleExpanded()} .icon=${n?"chevron-down":"chevron-up"} appearance=transparent .text=${i} .label=${i} scale=s></calcite-action><h3 class=${`${e.header} ${e.label}${f}`} title=${this.activeLayerInfo?.title??""??c}>${this.activeLayerInfo?.title}</h3></span>${this.featureCount&&m?t`<instant-apps-interactive-legend-count .activeLayerInfo=${this.activeLayerInfo} show-total .legendvm=${this.legendvm}></instant-apps-interactive-legend-count>`:null}</span></header>`}};p("instant-apps-interactive-legend-group-legend-element-caption",a);return a},a,b,e,f)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import i from"./WDRZR4N3.js";import h from"./SO27FVOH.js";import e from"./KGUELU4O.js";import c from"./4AFANEZZ.js";import{a as d}from"./ONARC6AZ.js";import{a as $}from"./LHG6NOEP.js";import{b}from"./CVHXDPJO.js";import"./RMEDO4JC.js";import"./ISFTCFSJ.js";import{G as f,I as p,K as x,h as u,i as a,q as g}from"./FFF5HUPM.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,{a:r,b:h},{e:w,h:T,j:z,k:E,l:C,r:k,s:m,u:v}])=>{var A=u`:host{display:block;--instant-apps-interactive-legend-heading-font-size: 1rem;--instant-apps-interactive-legend-heading-font-weight: normal;--instant-apps-interactive-legend-caption-font-weight: normal;--instant-apps-interactive-legend-secondary-color: var( --calcite-color-text-1 );--instant-apps-interactive-legend-field-name-font-size: 1rem;--instant-apps-interactive-legend-total-feature-count-font-size: .875rem;--instant-apps-interactive-legend-info-font-size: .875rem;--instant-apps-interactive-legend-info-item-background--selected: #c7ebff;--instant-apps-interactive-legend-info-item-color--selected: var( --calcite-color-text-2 );--instant-apps-interactive-legend-secondary-background-color: var( --calcite-color-background );--instant-apps-interactive-legend-ui-padding: 15px 10px}:host .esri-legend__layer-caption calcite-action{margin-left:20px}:host .esri-legend__layer-caption{display:flex;align-items:center;font-size:var(--instant-apps-interactive-legend-field-name-font-size);background-color:var(--instant-apps-interactive-legend-secondary-background-color);color:var(--instant-apps-interactive-legend-secondary-color)}:host .instant-apps-interactive-legend__layer-caption--compact{--instant-apps-interactive-legend-ui-padding: 5px}:host .instant-apps-interactive-legend__layer-caption--compact .instant-apps-interactive-legend__layer-caption-btn-container{display:flex;justify-content:flex-end;width:100%}:host .instant-apps-interactive-legend__layer-caption--compact .instant-apps-interactive-legend__layer-caption-btn-container .instant-apps-interactive-legend__show-all-btn{border:none;background-color:transparent;cursor:pointer;color:var(--calcite-color-brand);font-weight:var(--calcite-font-weight-medium);font-size:.75rem;padding-inline-start:20px}:host .instant-apps-interactive-legend__layer-caption--compact .instant-apps-interactive-legend__zoom-to-btn{--calcite-icon-color: var(--calcite-color-brand);--calcite-color-transparent-hover: transparent}:host .instant-apps-interactive-legend__layer-caption--compact .instant-apps-interactive-legend__legend-layer-caption-text{display:inline-block;font-size:.75rem;white-space:nowrap;width:100%;overflow:hidden;text-overflow:ellipsis}:host .instant-apps-interactive-legend__legend-layer-caption-text{display:inline-block;margin-left:5px;margin-bottom:0;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;line-height:normal}:host .instant-apps-interactive-legend__layer-caption-btn-container{display:flex;white-space:nowrap}:host .instant-apps-interactive-legend__layer-caption-btn-container calcite-button{margin:2px}:host .esri-legend__layer-caption{font-weight:var(--instant-apps-interactive-legend-caption-font-weight)}:host .esri-legend__layer-caption{padding:var(--instant-apps-interactive-legend-ui-padding)}:host:dir(rtl) .esri-legend__layer-caption calcite-action{margin-left:unset;margin-right:20px}`,y={ZoomTo:"magnifying-glass-plus",ShowAll:"list-check-all"},o={layerCaption:"esri-legend__layer-caption",layerCaptionBtnContainer:"instant-apps-interactive-legend__layer-caption-btn-container",layerCaptionBtnContainerNoText:"instant-apps-interactive-legend__layer-caption-btn-container--no-text",layerCaptionText:"instant-apps-interactive-legend__legend-layer-caption-text",compact:"instant-apps-interactive-legend__layer-caption--compact",showAll:"instant-apps-interactive-legend__show-all-btn",zoomTo:"instant-apps-interactive-legend__zoom-to-btn"},_=class extends f{constructor(){super(...arguments),this._messages=$({name:"instant-apps-interactive-legend",blocking:!0}),this.expanded=!0,this.legendLayerExpandUpdated=g(),this.showAllSelected=g()}static{this.properties={legendvm:0,activeLayerInfo:0,layer:0,titleText:1,legendElementIndex:9,zoomTo:5,isInteractive:5,legendElement:0,expanded:5}}static{this.styles=A}toggleExpanded(){return()=>{this.expanded=!this.expanded,this.legendLayerExpandUpdated.emit(),(this.activeLayerInfo?.legendElements?.filter(e=>e.type==="relationship-ramp")).length>0&&h.set("relationshipRampExpandStates",{...r.relationshipRampExpandStates,[this.activeLayerInfo.layer.id]:this.expanded})}}handleZoomTo(){return()=>{let e=w(this.layer),i=m(e,this.legendElement);C(e,this.legendvm.view,i)}}handleShowAll(){return()=>{let e=()=>{let t=E(n,this.legendElement.title);v({intLegendLayerData:t,layerId:this.layer.id})},i=()=>{let t=z(n);v({intLegendLayerData:t,layerId:this.layer.id})},n=r.data?.[this.layer?.id];if(m(n,this.legendElement)){e();return}i(),this.showAllSelected.emit()}}render(){let e=k(this.activeLayerInfo),i=T(this.activeLayerInfo)&&(this.legendElement?.type==="relationship-ramp"||!this.legendElement?.type?.includes("-ramp")),{expanded:n}=this,t=h.get("compact"),s=t?` ${o.compact}`:"";if(e&&!this.titleText)return null;let l=this.titleText?a`<span class=${p(o.layerCaptionText)} title=${this.titleText??x}>${this.titleText}</span>`:null,c=this.isInteractive||i?this.renderLegendElementCaptionControls():"";return a`<div class=${`${o.layerCaption}${s}`}><calcite-action @click=${this.toggleExpanded()} .icon=${n?"chevron-down":"chevron-up"} appearance=transparent .text=${n?this._messages.collapse:this._messages.expand} .label=${n?this._messages.collapse:this._messages.expand} scale=s></calcite-action>${t?[l,c]:[c,l]}</div>`}renderLegendElementCaptionControls(){let e=this.titleText?"":` ${o.layerCaptionBtnContainerNoText}`;return d("layer-caption-btn-container",a`<div class=${`${o.layerCaptionBtnContainer}${e}`}>${this.renderShowAllZoomToButtons()}</div>`)}renderShowAllZoomToButtons(){return h.get("compact")?this.renderCompactButtonUI():this.renderButtonUI()}renderCompactButtonUI(){let{data:e}=r,{id:i}=this.layer||{},n=e?.[i]?.categories?.size>1,t="zoomToCompact",s=this.zoomTo&&[a`<calcite-action id=${t} class=${p(o.zoomTo)} @click=${this.handleZoomTo()} .icon=${y.ZoomTo} appearance=transparent scale=s .text=${this._messages.zoomTo}></calcite-action>`,a`<calcite-tooltip .referenceElement=${t} placement=top .label=${this._messages.zoomTo}>${this._messages.zoomTo}</calcite-tooltip>`]||"",l=n?a`<button @click=${this.handleShowAll()} class=${p(o.showAll)}>${this._messages.showAll}</button>`:null;return[s,l]}renderButtonUI(){let{data:e}=r,{id:i}=this.layer||{},n=e?.[i]?.categories?.size>1,t="showAll",s="zoomTo",l=n&&[d("show-all-button",a`<calcite-button id=${t} .label=${this._messages.showAll} @click=${this.handleShowAll()} .iconStart=${y.ShowAll} appearance=outline round></calcite-button>`),a`<calcite-tooltip .referenceElement=${t} placement=top .label=${this._messages.showAll}>${this._messages.showAll}</calcite-tooltip>`]||"",c=this.zoomTo&&[d("zoom-to-button",a`<calcite-button id=${s} .label=${this._messages.zoomTo} @click=${this.handleZoomTo()} .iconStart=${y.ZoomTo} appearance=outline round></calcite-button>`),a`<calcite-tooltip .referenceElement=${s} placement=top .label=${this._messages.zoomTo}>${this._messages.zoomTo}</calcite-tooltip>`]||"";return[l,c]}};b("instant-apps-interactive-legend-legend-element-caption",_);return _},c,e,h,i)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import e from"./WDRZR4N3.js";import d from"./SO27FVOH.js";import b from"./KGUELU4O.js";import a from"./4AFANEZZ.js";import{a as l}from"./ONARC6AZ.js";import{a as w}from"./LHG6NOEP.js";import{b as v}from"./CVHXDPJO.js";import"./RMEDO4JC.js";import"./ISFTCFSJ.js";import{E as p,F as g,G as f,I as c,h,i as o,t as m}from"./FFF5HUPM.js";import"./QPIMTXPL.js";export default $arcgis.t(([n,_,b,L,,,{b:y},{t:u}])=>{var C=h`@layer{instant-apps-interactive-legend{display:block;height:100%}instant-apps-interactive-legend .esri-legend{height:100%;background-color:var(--calcite-color-foreground-1)!important;color:var(--calcite-color-text-1)!important}instant-apps-interactive-legend .esri-legend.esri-component.esri-widget.esri-widget--panel{margin:0}instant-apps-interactive-legend .esri-legend__layer,instant-apps-interactive-legend .esri-legend__layer-body{margin-left:0!important}instant-apps-interactive-legend .esri-legend__layer-row{box-sizing:border-box!important}}`,I={esri:{base:"esri-legend",widget:"esri-widget",widgetPanel:"esri-widget--panel",component:"esri-component"}},d=class extends f{constructor(){super(...arguments),this._messages=w({name:"instant-apps-interactive-legend"}),this.ref=p(),this.zoomTo=!1,this.featureCount=!1,this.filterMode={type:"filter"},this.compact=!1}static{this.properties={handles:16,legendvm:16,view:0,zoomTo:5,featureCount:5,filterMode:0,compact:5}}static{this.styles=C}static{this.shadowRootOptions=m}async load(){this.compactHandler(),new MutationObserver(()=>{this.requestUpdate()}).observe(this.el,{attributes:!0}),await this.initializeModules()}willUpdate(e){(e.has("handles")||e.has("view"))&&this.init(),e.has("compact")&&(this.hasUpdated||this.compact)&&this.compactHandler()}async initializeModules(){this.handles=new _;let e=new b({});return await n.whenOnce(()=>e?.messages),this._messages={...this._messages,...e.messages},await Promise.resolve()}async init(){if(!(!this.view||!this.handles))try{let{on:e,whenOnce:i}=n,s=this.view?.map?.allLayers?.map(async r=>await r.load());await Promise.allSettled(s),await i(()=>this.view?.ready);let t={view:this.view,respectLayerDefinitionExpression:!0},a=new L(t);this.legendvm=a,this.handles.add([e(()=>this.legendvm?.activeLayerInfos,"change",()=>this._refreshActiveLayerInfos(this?.legendvm?.activeLayerInfos))])}catch(e){console.error('Failed at "init": ',e)}}compactHandler(){y.set("compact",this.compact)}_refreshActiveLayerInfos(e){e&&(this.handles.removeAll(),e.forEach(i=>this._renderOnActiveLayerInfoChange(i)))}render(){let{base:e,component:i,widget:s,widgetPanel:t}=I.esri,a=[e,i,s,t].filter(Boolean).map(r=>r).join(" ");return l("interactive-legend",o`<div class=${c(a)}>${this.legendvm?l("interactive-legend-classic",o`<instant-apps-interactive-legend-classic class=${c(u(this.el))} .legendvm=${this.legendvm} .zoomTo=${this.zoomTo} .filterMode=${this.filterMode} .featureCount=${this.featureCount} .messages=${this._messages} ${g(this.ref)}></instant-apps-interactive-legend-classic>`):null}</div>`)}_renderOnActiveLayerInfoChange(e){let{on:i}=n,s=i(()=>e.children,"change",()=>e.children.forEach(t=>this._renderOnActiveLayerInfoChange(t)));this.handles.add(s,`children_${e?.layer?.uid}`),e.children.forEach(t=>{this._renderOnActiveLayerInfoChange(t),t?.children?.length>0&&t?.children?.forEach(a=>this._renderOnActiveLayerInfoChange(a))})}};v("instant-apps-interactive-legend",d);return d},"core/reactiveUtils","core/Handles","widgets/Legend","widgets/Legend/LegendViewModel",a,b,d,e)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import e from"./WDRZR4N3.js";import c from"./SO27FVOH.js";import b from"./KGUELU4O.js";import a from"./4AFANEZZ.js";import{a as m}from"./ONARC6AZ.js";import{b as h}from"./CVHXDPJO.js";import"./ISFTCFSJ.js";import{E as r,F as o,G as p,I as i,h as d,i as t}from"./FFF5HUPM.js";import"./QPIMTXPL.js";export default $arcgis.t(([,,{b:c},{r:y}])=>{var f=d`:host{display:block}:host .esri-legend__layer-table,:host .instant-apps-interactive-legend__nested-unique-symbol{margin:0}:host .hide{display:none}`,e={layerTableSizeRamp:"esri-legend__layer-table--size-ramp",layerChildTable:"esri-legend__layer-child-table",layerTable:"esri-legend__layer-table",nestedUniqueSymbol:"instant-apps-interactive-legend__nested-unique-symbol",nonInteractive:"instant-apps-interactive-legend__non-interactive"},n=class extends p{constructor(){super(),this.legendLayerCaption=r(),this.expanded=!0,this.titleText="",this.listenOn(window,"legendLayerExpandUpdated",this.legendLayerExpandUpdatedEmitted)}static{this.properties={expanded:16,activeLayerInfo:0,isSizeRamp:5,isChild:5,isColorRamp:5,isRelationshipRamp:5,isInteractive:5,zoomTo:5,legendElement:0,titleText:1,legendvm:0,legendElementIndex:9}}static{this.styles=f}legendLayerExpandUpdatedEmitted(){this.legendLayerCaption.value&&(this.expanded=this.legendLayerCaption.value.expanded)}render(){let g=this.isChild?e.layerChildTable:e.layerTable,a=this.legendElement?.infos?.length===1&&!this.activeLayerInfo?.layer?.renderer?.field,v=(this.isSizeRamp||!this.isChild)&&!this.isColorRamp?` ${e.layerTableSizeRamp}`:"",$=this.isInteractive?"":` ${e.nonInteractive}`,x=y(this.activeLayerInfo)?` ${e.nestedUniqueSymbol}`:"",s=a&&!this.expanded&&!this.zoomTo?!0:this.expanded;if(this.isRelationshipRamp){let l=c.get("relationshipRampExpandStates")[this.activeLayerInfo.layer.id];s=l===void 0?!0:l}return t`<div class=${`${g}${v}${$}${x}`}><div .id=${`${this.activeLayerInfo?.layer?.id}-legend-element-caption`} class=${i(this.isRelationshipRamp||!this.titleText&&!this.zoomTo&&a?"hide":"show")}><instant-apps-interactive-legend-legend-element-caption .legendvm=${this.legendvm} .activeLayerInfo=${this.activeLayerInfo} .layer=${this.activeLayerInfo.layer} .titleText=${this.titleText} .legendElement=${this.legendElement} .legendElementIndex=${this.legendElementIndex} .zoomTo=${this.zoomTo} .isInteractive=${this.isInteractive} ${o(this.legendLayerCaption)}></instant-apps-interactive-legend-legend-element-caption></div>${m("content",t`<div .id=${`${this.activeLayerInfo?.layer?.id}-legend-element-content-${this.legendElementIndex}`} class=${i(s?"show":"hide")}><slot name=content></slot></div>`)}</div>`}};h("instant-apps-interactive-legend-legend-element",n);return n},a,b,c,e)
@@ -1,2 +0,0 @@
1
- /* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
2
- import{a as w}from"./7VD3Y4IF.js";import{a as v}from"./LHG6NOEP.js";import{b as y}from"./CVHXDPJO.js";import{c as m}from"./RMEDO4JC.js";import"./ISFTCFSJ.js";import{E as c,F as l,G as g,h as b,i as o}from"./FFF5HUPM.js";import"./QPIMTXPL.js";export default $arcgis.t(([k,G,{on:x},h,B,L,_])=>{var I=b`:host{--default-width: 375px;--width: var(--default-width);--padding: 10px;--border-style: 1px solid var(--calcite-color-border-1);--close-button-size: 48px;--calcite-icon-color: var(--calcite-color-text-3);display:block;background:var(--background-color, var(--calcite-color-foreground-1));color:var(--calcite-color-text-1);font-size:var(--calcite-font-size--1);box-sizing:border-box}::slotted(arcgis-sketch),::slotted(arcgis-search){display:flex;justify-content:center;align-items:center}::slotted(arcgis-sketch){--calcite-action-bar-shadow: none;--calcite-action-bar-corner-radius: none;--calcite-action-group-border-color: var(--calcite-color-border-1)}::slotted(arcgis-search){width:100%;padding:var(--padding)}[hidden]{display:none}[role=dialog]{width:var(--width);>*{padding-inline:var(--padding)}}header{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding-inline-end:0}h2{color:inherit;font-size:inherit;font-weight:var(--calcite-font-weight-medium);line-height:1;margin:0}calcite-button.close-dialog{width:var(--close-button-size);height:var(--close-button-size)}.border-bottom{height:1px;border-bottom:var(--border-style)}calcite-label:first-of-type span{padding-block-start:var(--padding)}.main-buttons-wrapper{display:flex;flex-direction:column;gap:var(--padding);padding-block:var(--padding)}`,u={style:"solid",color:[100,100,100,.5],outline:{color:[255,255,255,255],width:.75}};function C(r,e){return new L({geometry:r,symbol:e})}async function $({graphic:r,distance:e,unit:t,isGeodesic:s}){s&&!h.isLoaded()&&await h.load();let a=s?h:B;try{let i={unit:t},n=a.execute(r.geometry,e,i);if(!n)throw new Error("buffer failed");return n}catch(i){console.error(String(i))}}async function A({graphic:r,unit:e,isGeodesic:t,distanceValues:s}){let a=0,i=r,n=[];for(;a<s.length;){let M=s[a],f=await $({graphic:r,distance:M,unit:e,isGeodesic:t});if(!f)continue;let p=_.execute(f,i.geometry);p&&n.push(p),i=C(f,r.symbol),a++}return n}function S(r){let e=r?.assignedElements?.({flatten:!0});if(e?.length)return e.at(0)}var D=["meters","kilometers","miles","yards","feet","us-feet"],d=class extends g{constructor(){super(),this._messages=v({name:"instant-apps-buffer",blocking:!0}),this.#i=c(),this.#s=c(),this.#e=c(),this.#a=c(),this.#r=c(),this.open=!1,this.inputMethod="select-feature",this.inputGraphics=[],this.bufferUnit="miles",this.bufferInputStep=1,this.bufferDistance=1,this.bufferMinDistance=.1,this.bufferMaxDistance=1e6,this.geodesicBufferEnabled=!1,this.bufferColor=u.color,this.bufferStyle=u.style,this.bufferOutlineColor=u.outline.color,this.bufferOutlineWidth=u.outline.width,this.elevationInfoMode="on-the-ground",this.arcgisPropertyChange=m()("open","inputMethod"),this.bufferLayer=new k,this.listen("calciteRadioButtonGroupChange",this._handleBufferInputChange),this.listen("arcgisCreate",this._handleArcgisSketchEventCreate),this.listen("arcgisDelete",this._handleArcgisSketchEventDelete),this.listen("arcgisSearchClear",this._handleArcgisSearchClear),this.listen("arcgisSelectResult",this._handleArcgisSearchSelect)}static{this.properties={open:7,inputMethod:3,bufferLayer:0,inputGraphics:0,view:0,sources:0,bufferUnit:3,bufferInputStep:11,bufferDistance:11,distanceValuesSorted:32,bufferMinDistance:11,bufferMaxDistance:11,geodesicBufferEnabled:7,readyToBuffer:39,bufferColor:0,bufferStyle:1,bufferOutlineColor:0,bufferOutlineWidth:9,bufferGraphicSymbol:32,elevationInfoMode:1}}static{this.styles=I}#i;#s;#e;#a;#r;get#t(){let e=this.#a.value;return S(e)}get#n(){let e=this.#r.value;return S(e)}get distanceValuesSorted(){return this.el.shadowRoot.querySelector("instant-apps-buffer-distance-manager")?.distanceValuesSorted||[]}get readyToBuffer(){return!!this.view&&!!this.bufferLayer&&!!this.inputGraphics?.length&&!!this.distanceValuesSorted?.length}get bufferGraphicSymbol(){let e=typeof this.bufferOutlineWidth=="number"&&this.bufferOutlineWidth>0,t=typeof this.bufferOutlineColor<"u"&&e;return new G({color:this.bufferColor,style:this.bufferStyle,outline:t?{color:this.bufferOutlineColor,width:this.bufferOutlineWidth}:null})}async clearBufferLayer(){this._clearBufferLayer()}async close(){this.open=!1}async setFocus(){await this.#i.value.setFocus()}willUpdate(e){this.view&&this.view.type==="3d"&&(e.has("view")||e.has("elevationInfoMode"))&&(this.bufferLayer.elevationInfo={mode:this.elevationInfoMode}),e.has("inputMethod")&&this.inputMethod&&this._inputMethodChangeCleanUp()}async loaded(){let e=this.#e.value;await e.updateComplete,this.manager.onLifecycle(()=>x(()=>e.selectionManager,"selection-change",()=>this._getSelectedGraphics()))}_inputMethodChangeCleanUp(){this.inputGraphics=[],this.clearBufferLayer(),this.#e?.value?.clearSelection?.(),this.#n?.clear?.(),this.#t?.cancel?.(),this.#t?.delete?.(),this.#t?.layer?.removeAll?.()}_handleBufferInputChange(){let e=(this.#s.value.shadowRoot?.querySelector("calcite-radio-button-group")).selectedItem.value;this.inputMethod=e}_handleArcgisSketchEventCreate(e){e.detail.state==="complete"&&this._assignInputGraphicsFromArcgisSketch()}_handleArcgisSketchEventDelete(e){this._assignInputGraphicsFromArcgisSketch()}_assignInputGraphicsFromArcgisSketch(){this.#t&&(this.inputGraphics=[...this.#t?.layer?.graphics?.toArray()??[]])}async _handleArcgisSearchSelect(){let e=this.#n.resultGraphic;e&&(this.inputGraphics=[e])}_handleArcgisSearchClear(){this.inputGraphics=[]}async _getSelectedGraphics(){let e=await this.#e.value.getSelectedFeatures(),t=[];for(let s of e)t=[...t,...s.data.features];this.inputGraphics=t??[]}_clearBufferLayer(){this.bufferLayer?.removeAll()}async _onCreateBufferClick(){await this._bufferInputGraphics()}_onRemoveBufferClick(){this._clearBufferLayer()}_onBufferUnitChange(e){let t=e.target.value;this.bufferUnit=t}async _bufferInputGraphics(){if(!this.readyToBuffer)return;this.view.map?.layers.indexOf(this.bufferLayer)===-1?this.view.map.add(this.bufferLayer):this.bufferLayer.removeAll();let e=[];for(let a of this.inputGraphics){let i={graphic:a,unit:this.bufferUnit,isGeodesic:this.geodesicBufferEnabled},n;this.distanceValuesSorted.length>1&&(n=A({...i,distanceValues:this.distanceValuesSorted})),this.distanceValuesSorted?.length===1&&(n=$({...i,distance:this.distanceValuesSorted[0]})),e.push(n)}let t=this.bufferGraphicSymbol,s=await Promise.all(e).catch(a=>console.log(String(a)));if(s&&s?.length){let a=s.flat().filter(i=>!!i).map(i=>C(i,t));this.bufferLayer.addMany(a)}}_renderInputMethod(){if(this.inputMethod==="select-feature"){let e=this.sources||this.view?.map?.layers;return o`<instant-apps-selection-toolbar .view=${this.view} continuous-selection-enabled .sources=${e} ${l(this.#e)}></instant-apps-selection-toolbar>`}return this.inputMethod==="draw-graphic"?o`<slot name=arcgis-sketch ${l(this.#a)}></slot>`:this.inputMethod==="search-location"?o`<slot name=arcgis-search ${l(this.#r)}></slot>`:null}render(){return o`<div role=dialog .hidden=${!this.open} aria-labelledby=buffer-title><header><h2 id=buffer-title>${this._messages.title}</h2><calcite-button class="close-dialog" .label=${this._messages.labels.close} appearance=transparent scale=m @click=${this.close} ${l(this.#i)}><calcite-icon icon=x scale=m></calcite-icon></calcite-button></header><instant-apps-buffer-input-radiogroup .labels=${this._messages.inputRadioButtonLabels} .selectedValue=${this.inputMethod} ${l(this.#s)}></instant-apps-buffer-input-radiogroup>${this._renderInputMethod()}<instant-apps-buffer-distance-manager .bufferDistance=${this.bufferDistance} .bufferInputStep=${this.bufferInputStep} .bufferMinDistance=${this.bufferMinDistance} .bufferMaxDistance=${this.bufferMaxDistance} .inputNumberLabel=${this._messages.labels.distance} .addButtonLabel=${this._messages.labels.add} .removeValueLabel=${this._messages.labels.removeDistanceValue}></instant-apps-buffer-distance-manager><calcite-label><span>${this._messages.labels.unit}</span><calcite-select .label=${this._messages.labels.unit} @calciteSelectChange=${this._onBufferUnitChange}>${w(D,e=>e,e=>o`<calcite-option .value=${e} .selected=${this.bufferUnit===e}>${this._messages.units[e]}</calcite-option>`)}</calcite-select></calcite-label><div class="main-buttons-wrapper"><calcite-button @click=${this._onCreateBufferClick}>${this._messages.labels.draw}</calcite-button><calcite-button appearance=outline @click=${this._onRemoveBufferClick}>${this._messages.labels.clear}</calcite-button></div></div>`}};y("instant-apps-buffer",d);return d},"layers/GraphicsLayer","symbols/SimpleFillSymbol","core/reactiveUtils","geometry/operators/geodesicBufferOperator","geometry/operators/bufferOperator","Graphic","geometry/operators/differenceOperator")