@esri/solutions-components 0.11.36 → 0.11.37
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.
- package/dist/cjs/asyncToGenerator-c7fc3ee4.js +92 -0
- package/dist/cjs/basemap-gallery_7.cjs.entry.js +1 -1
- package/dist/cjs/buffer-tools_2.cjs.entry.js +1 -1
- package/dist/cjs/card-manager_3.cjs.entry.js +3 -3
- package/dist/cjs/consent-manager.cjs.entry.js +3 -3
- package/dist/cjs/create-feature_4.cjs.entry.js +7 -7
- package/dist/cjs/create-related-feature_3.cjs.entry.js +1 -1
- package/dist/cjs/crowdsource-manager.cjs.entry.js +1 -1
- package/dist/cjs/crowdsource-reporter.cjs.entry.js +1 -1
- package/dist/cjs/delete-dialog.cjs.entry.js +1 -1
- package/dist/cjs/downloadUtils-a5154543.js +5377 -0
- package/dist/cjs/feature-list.cjs.entry.js +4 -4
- package/dist/cjs/index.es-3c2404c3.js +11195 -0
- package/dist/cjs/json-editor_7.cjs.entry.js +1 -1
- package/dist/cjs/map-layer-picker.cjs.entry.js +1 -1
- package/dist/cjs/map-select-tools_3.cjs.entry.js +3 -3
- package/dist/cjs/popupUtils-7b26453a.js +121 -0
- package/dist/cjs/public-notification.cjs.entry.js +3 -3
- package/dist/cjs/purify-3d951edc.js +1364 -0
- package/dist/cjs/solution-configuration.cjs.entry.js +1 -1
- package/dist/cjs/solution-contents_3.cjs.entry.js +1 -1
- package/dist/cjs/solution-item-accordion.cjs.entry.js +1 -1
- package/dist/cjs/spatial-ref.cjs.entry.js +1 -1
- package/dist/collection/components/info-card/info-card.css +4 -0
- package/dist/collection/components/info-card/info-card.js +2 -2
- package/dist/collection/vendor/calcite-components/2ADYSLPZ.js +4 -0
- package/dist/collection/vendor/calcite-components/2BYCWVAC.js +4 -0
- package/dist/collection/vendor/calcite-components/2DJLQG4A.js +4 -0
- package/dist/collection/vendor/calcite-components/2KN7VFV3.js +4 -0
- package/dist/collection/vendor/calcite-components/2QQE6RBG.js +4 -0
- package/dist/collection/vendor/calcite-components/2W46C5IT.js +4 -0
- package/dist/collection/vendor/calcite-components/2WEHZC4R.js +4 -0
- package/dist/collection/vendor/calcite-components/2YD4Z56B.js +4 -0
- package/dist/collection/vendor/calcite-components/2YU4JUQK.js +4 -0
- package/dist/collection/vendor/calcite-components/323UDHL6.js +4 -0
- package/dist/collection/vendor/calcite-components/35N5CZK3.js +4 -0
- package/dist/collection/vendor/calcite-components/3GWF5ELI.js +4 -0
- package/dist/collection/vendor/calcite-components/3JWBMHMV.js +4 -0
- package/dist/collection/vendor/calcite-components/3NUUOJEI.js +4 -0
- package/dist/collection/vendor/calcite-components/3O4S27LQ.js +4 -0
- package/dist/collection/vendor/calcite-components/3O5VK4VN.js +4 -0
- package/dist/collection/vendor/calcite-components/3OFHBVGT.js +4 -0
- package/dist/collection/vendor/calcite-components/3XJDMBMJ.js +4 -0
- package/dist/collection/vendor/calcite-components/3YYHU67H.js +4 -0
- package/dist/collection/vendor/calcite-components/44ZIVGS7.js +4 -0
- package/dist/collection/vendor/calcite-components/4BEUN427.js +4 -0
- package/dist/collection/vendor/calcite-components/4G4MW34F.js +4 -0
- package/dist/collection/vendor/calcite-components/4GGWE4M3.js +4 -0
- package/dist/collection/vendor/calcite-components/4HF2MH3F.js +4 -0
- package/dist/collection/vendor/calcite-components/4KGTT6I3.js +4 -0
- package/dist/collection/vendor/calcite-components/4QHW2KCC.js +4 -0
- package/dist/collection/vendor/calcite-components/52AGH4NW.js +4 -0
- package/dist/collection/vendor/calcite-components/5A4SCMTT.js +4 -0
- package/dist/collection/vendor/calcite-components/5B6WX2DL.js +4 -0
- package/dist/collection/vendor/calcite-components/5BW6OEX4.js +4 -0
- package/dist/collection/vendor/calcite-components/5FDKP64C.js +4 -0
- package/dist/collection/vendor/calcite-components/5MAYMOZA.js +4 -0
- package/dist/collection/vendor/calcite-components/5UXZD2PW.js +4 -0
- package/dist/collection/vendor/calcite-components/5WEHUHTX.js +4 -0
- package/dist/collection/vendor/calcite-components/5ZOOOTHO.js +4 -0
- package/dist/collection/vendor/calcite-components/6C6KOC25.js +4 -0
- package/dist/collection/vendor/calcite-components/6DU5XIRS.js +4 -0
- package/dist/collection/vendor/calcite-components/6IRQP6SO.js +4 -0
- package/dist/collection/vendor/calcite-components/6M4MQUQE.js +4 -0
- package/dist/collection/vendor/calcite-components/6MCHN6SO.js +4 -0
- package/dist/collection/vendor/calcite-components/6NCXFBVI.js +4 -0
- package/dist/collection/vendor/calcite-components/6NJ2XB5D.js +4 -0
- package/dist/collection/vendor/calcite-components/6NPZR4ED.js +4 -0
- package/dist/collection/vendor/calcite-components/74XIV7EB.js +6 -0
- package/dist/collection/vendor/calcite-components/77RD52T4.js +4 -0
- package/dist/collection/vendor/calcite-components/7BOAE3LM.js +4 -0
- package/dist/collection/vendor/calcite-components/7DY27BCZ.js +5 -0
- package/dist/collection/vendor/calcite-components/7EIGV5FV.js +4 -0
- package/dist/collection/vendor/calcite-components/7MV5X5YY.js +4 -0
- package/dist/collection/vendor/calcite-components/7SAECUZA.js +4 -0
- package/dist/collection/vendor/calcite-components/7SFM2X2V.js +4 -0
- package/dist/collection/vendor/calcite-components/7SQTVACB.js +4 -0
- package/dist/collection/vendor/calcite-components/7U3ECTM6.js +4 -0
- package/dist/collection/vendor/calcite-components/7WRGOM4T.js +4 -0
- package/dist/collection/vendor/calcite-components/7XDJ54GY.js +4 -0
- package/dist/collection/vendor/calcite-components/ABXKDQDM.js +4 -0
- package/dist/collection/vendor/calcite-components/AN6BRRC4.js +4 -0
- package/dist/collection/vendor/calcite-components/AS3OWJAM.js +4 -0
- package/dist/collection/vendor/calcite-components/AUQ7MLX2.js +4 -0
- package/dist/collection/vendor/calcite-components/AWXNBIWS.js +4 -0
- package/dist/collection/vendor/calcite-components/AZOHNXOH.js +4 -0
- package/dist/collection/vendor/calcite-components/B45JROQX.js +4 -0
- package/dist/collection/vendor/calcite-components/B4YIOD3M.js +4 -0
- package/dist/collection/vendor/calcite-components/B7HWVLZ4.js +4 -0
- package/dist/collection/vendor/calcite-components/B7IG4G6I.js +4 -0
- package/dist/collection/vendor/calcite-components/B7MQCVNK.js +4 -0
- package/dist/collection/vendor/calcite-components/BFDAS53F.js +4 -0
- package/dist/collection/vendor/calcite-components/BHTF7FU6.js +4 -0
- package/dist/collection/vendor/calcite-components/BKNRSH5I.js +4 -0
- package/dist/collection/vendor/calcite-components/BTOGKDPW.js +4 -0
- package/dist/collection/vendor/calcite-components/BZAVOPTZ.js +4 -0
- package/dist/collection/vendor/calcite-components/CATJWSUR.js +4 -0
- package/dist/collection/vendor/calcite-components/CY5CVEEO.js +4 -0
- package/dist/collection/vendor/calcite-components/D4CU2ELJ.js +4 -0
- package/dist/collection/vendor/calcite-components/DFFLO6RQ.js +4 -0
- package/dist/collection/vendor/calcite-components/DIIIRTRD.js +4 -0
- package/dist/collection/vendor/calcite-components/DJ65IGAJ.js +4 -0
- package/dist/collection/vendor/calcite-components/DR6TNPNP.js +4 -0
- package/dist/collection/vendor/calcite-components/DSV6O5SN.js +4 -0
- package/dist/collection/vendor/calcite-components/DWSKOILM.js +4 -0
- package/dist/collection/vendor/calcite-components/E2K7V264.js +4 -0
- package/dist/collection/vendor/calcite-components/E5276FGO.js +4 -0
- package/dist/collection/vendor/calcite-components/EJZAAUYU.js +4 -0
- package/dist/collection/vendor/calcite-components/EO6WGEPM.js +4 -0
- package/dist/collection/vendor/calcite-components/EOTHRH2D.js +4 -0
- package/dist/collection/vendor/calcite-components/F3XJA6O4.js +4 -0
- package/dist/collection/vendor/calcite-components/F4EMKIHK.js +4 -0
- package/dist/collection/vendor/calcite-components/FA3NO5EU.js +4 -0
- package/dist/collection/vendor/calcite-components/FA3WMFEB.js +22 -0
- package/dist/collection/vendor/calcite-components/FKBMHLD3.js +4 -0
- package/dist/collection/vendor/calcite-components/FP7FM2VM.js +4 -0
- package/dist/collection/vendor/calcite-components/FP7S2M3E.js +4 -0
- package/dist/collection/vendor/calcite-components/FTPC7ETT.js +4 -0
- package/dist/collection/vendor/calcite-components/FWYDKVOD.js +4 -0
- package/dist/collection/vendor/calcite-components/G3CCZ6XE.js +4 -0
- package/dist/collection/vendor/calcite-components/G5S7W2IC.js +4 -0
- package/dist/collection/vendor/calcite-components/GEURCF7X.js +4 -0
- package/dist/collection/vendor/calcite-components/GFAN7OST.js +4 -0
- package/dist/collection/vendor/calcite-components/GGSSFQEY.js +4 -0
- package/dist/collection/vendor/calcite-components/GIAPPW2B.js +4 -0
- package/dist/collection/vendor/calcite-components/GQAZQ3S4.js +4 -0
- package/dist/collection/vendor/calcite-components/GQUIDXCJ.js +4 -0
- package/dist/collection/vendor/calcite-components/GUUZ7ZDV.js +4 -0
- package/dist/collection/vendor/calcite-components/H3XVYGU3.js +4 -0
- package/dist/collection/vendor/calcite-components/H6E5FODU.js +4 -0
- package/dist/collection/vendor/calcite-components/HBMJPX74.js +4 -0
- package/dist/collection/vendor/calcite-components/HEHWLTET.js +4 -0
- package/dist/collection/vendor/calcite-components/HHWADIGN.js +4 -0
- package/dist/collection/vendor/calcite-components/HJBKJ56M.js +4 -0
- package/dist/collection/vendor/calcite-components/HMAFQQAN.js +4 -0
- package/dist/collection/vendor/calcite-components/HMNR3FGX.js +28 -0
- package/dist/collection/vendor/calcite-components/HO6YJDQ6.js +4 -0
- package/dist/collection/vendor/calcite-components/HXRFWMNM.js +4 -0
- package/dist/collection/vendor/calcite-components/HZNGZAMK.js +4 -0
- package/dist/collection/vendor/calcite-components/HZSC2XKV.js +4 -0
- package/dist/collection/vendor/calcite-components/I7NALNEM.js +4 -0
- package/dist/collection/vendor/calcite-components/I7S2F2P2.js +4 -0
- package/dist/collection/vendor/calcite-components/J22MUGVD.js +4 -0
- package/dist/collection/vendor/calcite-components/J2XEN4PC.js +4 -0
- package/dist/collection/vendor/calcite-components/JHSTZGJJ.js +4 -0
- package/dist/collection/vendor/calcite-components/JNK6UYNK.js +4 -0
- package/dist/collection/vendor/calcite-components/JR5RWSNX.js +4 -0
- package/dist/collection/vendor/calcite-components/JSHY6EAI.js +4 -0
- package/dist/collection/vendor/calcite-components/JZB5GBZP.js +4 -0
- package/dist/collection/vendor/calcite-components/JZBTEL4E.js +4 -0
- package/dist/collection/vendor/calcite-components/KE362XQL.js +4 -0
- package/dist/collection/vendor/calcite-components/KGBDVMSN.js +4 -0
- package/dist/collection/vendor/calcite-components/KHFQ3CWL.js +4 -0
- package/dist/collection/vendor/calcite-components/KJ5QSHIV.js +4 -0
- package/dist/collection/vendor/calcite-components/KK2GYQJN.js +4 -0
- package/dist/collection/vendor/calcite-components/KPOLTNRY.js +4 -0
- package/dist/collection/vendor/calcite-components/KUJZNT2T.js +4 -0
- package/dist/collection/vendor/calcite-components/KW5SSXI2.js +4 -0
- package/dist/collection/vendor/calcite-components/KZLGID44.js +4 -0
- package/dist/collection/vendor/calcite-components/L64PNSJ7.js +4 -0
- package/dist/collection/vendor/calcite-components/LBEGPJNS.js +4 -0
- package/dist/collection/vendor/calcite-components/LDPDJTKP.js +4 -0
- package/dist/collection/vendor/calcite-components/LHPTWBKI.js +4 -0
- package/dist/collection/vendor/calcite-components/LPMWWCXO.js +4 -0
- package/dist/collection/vendor/calcite-components/M2Z3Q7XS.js +4 -0
- package/dist/collection/vendor/calcite-components/MADH6ZCD.js +4 -0
- package/dist/collection/vendor/calcite-components/MED7DXL5.js +4 -0
- package/dist/collection/vendor/calcite-components/MN6JS3SO.js +4 -0
- package/dist/collection/vendor/calcite-components/MNQ67HJJ.js +4 -0
- package/dist/collection/vendor/calcite-components/MOOKY73S.js +4 -0
- package/dist/collection/vendor/calcite-components/N3RCOT5M.js +4 -0
- package/dist/collection/vendor/calcite-components/N6SVU4LG.js +4 -0
- package/dist/collection/vendor/calcite-components/NE3OUQ5Q.js +4 -0
- package/dist/collection/vendor/calcite-components/NFHTQLBP.js +4 -0
- package/dist/collection/vendor/calcite-components/NHLJM63F.js +4 -0
- package/dist/collection/vendor/calcite-components/NLWFZFB3.js +4 -0
- package/dist/collection/vendor/calcite-components/NSBYYOY2.js +4 -0
- package/dist/collection/vendor/calcite-components/NSHGJK73.js +4 -0
- package/dist/collection/vendor/calcite-components/NUDAXIBZ.js +4 -0
- package/dist/collection/vendor/calcite-components/O5SN3SJX.js +4 -0
- package/dist/collection/vendor/calcite-components/OEWDESOU.js +4 -0
- package/dist/collection/vendor/calcite-components/OTB6UDF3.js +4 -0
- package/dist/collection/vendor/calcite-components/OXCCRWE7.js +4 -0
- package/dist/collection/vendor/calcite-components/PG3U4QAJ.js +4 -0
- package/dist/collection/vendor/calcite-components/PMUHOU3H.js +4 -0
- package/dist/collection/vendor/calcite-components/PRPWC5NA.js +4 -0
- package/dist/collection/vendor/calcite-components/PSOUNIL7.js +4 -0
- package/dist/collection/vendor/calcite-components/Q6VXEGD5.js +4 -0
- package/dist/collection/vendor/calcite-components/Q752TMWW.js +4 -0
- package/dist/collection/vendor/calcite-components/QMGTBEVK.js +4 -0
- package/dist/collection/vendor/calcite-components/QNL5HVWX.js +4 -0
- package/dist/collection/vendor/calcite-components/QQ2QONXU.js +4 -0
- package/dist/collection/vendor/calcite-components/QQCFFW4X.js +4 -0
- package/dist/collection/vendor/calcite-components/QSRM5BPK.js +4 -0
- package/dist/collection/vendor/calcite-components/QXDDQX5X.js +4 -0
- package/dist/collection/vendor/calcite-components/R4TXKGB3.js +4 -0
- package/dist/collection/vendor/calcite-components/R546VITU.js +4 -0
- package/dist/collection/vendor/calcite-components/RGOMC52G.js +4 -0
- package/dist/collection/vendor/calcite-components/RIMAR2EG.js +4 -0
- package/dist/collection/vendor/calcite-components/RJV2JRQS.js +4 -0
- package/dist/collection/vendor/calcite-components/RLVRPIQB.js +4 -0
- package/dist/collection/vendor/calcite-components/RR6NYECR.js +4 -0
- package/dist/collection/vendor/calcite-components/RVEN4NOD.js +4 -0
- package/dist/collection/vendor/calcite-components/RXONMM2F.js +4 -0
- package/dist/collection/vendor/calcite-components/RYOCULDB.js +4 -0
- package/dist/collection/vendor/calcite-components/SCKKZTVU.js +5 -0
- package/dist/collection/vendor/calcite-components/SKGKFH23.js +4 -0
- package/dist/collection/vendor/calcite-components/SUCAF23Q.js +4 -0
- package/dist/collection/vendor/calcite-components/SWZ5F3MV.js +4 -0
- package/dist/collection/vendor/calcite-components/SX5X4EI7.js +4 -0
- package/dist/collection/vendor/calcite-components/SXYTJEOC.js +4 -0
- package/dist/collection/vendor/calcite-components/SY3OC64V.js +4 -0
- package/dist/collection/vendor/calcite-components/SYD5OQF5.js +4 -0
- package/dist/collection/vendor/calcite-components/SZONZQBZ.js +4 -0
- package/dist/collection/vendor/calcite-components/TEDXU7XB.js +4 -0
- package/dist/collection/vendor/calcite-components/TL6JRD7M.js +5 -0
- package/dist/collection/vendor/calcite-components/TOC7BSNI.js +4 -0
- package/dist/collection/vendor/calcite-components/TYTRJYZL.js +4 -0
- package/dist/collection/vendor/calcite-components/U3FS2FCE.js +4 -0
- package/dist/collection/vendor/calcite-components/UIWDOEUD.js +4 -0
- package/dist/collection/vendor/calcite-components/URGYWK4W.js +4 -0
- package/dist/collection/vendor/calcite-components/V5LFQL3E.js +4 -0
- package/dist/collection/vendor/calcite-components/VGEM6KFP.js +4 -0
- package/dist/collection/vendor/calcite-components/VH2EYQHG.js +4 -0
- package/dist/collection/vendor/calcite-components/VHAES5IP.js +4 -0
- package/dist/collection/vendor/calcite-components/VJ5DDNTG.js +4 -0
- package/dist/collection/vendor/calcite-components/VTUEWQVZ.js +5 -0
- package/dist/collection/vendor/calcite-components/VXIKRCVR.js +4 -0
- package/dist/collection/vendor/calcite-components/W4BKGWAR.js +4 -0
- package/dist/collection/vendor/calcite-components/WB6MZBXE.js +4 -0
- package/dist/collection/vendor/calcite-components/WBAUVVNW.js +4 -0
- package/dist/collection/vendor/calcite-components/WCZACGMB.js +4 -0
- package/dist/collection/vendor/calcite-components/WEHMJO3D.js +4 -0
- package/dist/collection/vendor/calcite-components/WGTFNY3J.js +4 -0
- package/dist/collection/vendor/calcite-components/WHHZYHGQ.js +4 -0
- package/dist/collection/vendor/calcite-components/WOM5JCSF.js +4 -0
- package/dist/collection/vendor/calcite-components/X37LIRIJ.js +4 -0
- package/dist/collection/vendor/calcite-components/XVCE2OUE.js +4 -0
- package/dist/collection/vendor/calcite-components/XVQRC56A.js +4 -0
- package/dist/collection/vendor/calcite-components/XYA7Z3GN.js +4 -0
- package/dist/collection/vendor/calcite-components/YED3P76Q.js +4 -0
- package/dist/collection/vendor/calcite-components/YJZ2YI4N.js +4 -0
- package/dist/collection/vendor/calcite-components/YW6WV5X7.js +4 -0
- package/dist/collection/vendor/calcite-components/Z3IB3JHI.js +4 -0
- package/dist/collection/vendor/calcite-components/Z64MBKLN.js +4 -0
- package/dist/collection/vendor/calcite-components/Z762LC4M.js +4 -0
- package/dist/collection/vendor/calcite-components/ZHYECVB4.js +4 -0
- package/dist/collection/vendor/calcite-components/ZQALJZYZ.js +4 -0
- package/dist/collection/vendor/calcite-components/ZXJF7S7L.js +4 -0
- package/dist/collection/vendor/calcite-components/calcite.esm.js +2 -2
- package/dist/collection/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.ar.json +2 -2
- package/dist/collection/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.bg.json +2 -2
- package/dist/collection/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.bs.json +2 -2
- package/dist/collection/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.ca.json +2 -2
- package/dist/collection/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.cs.json +2 -2
- package/dist/collection/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.da.json +2 -2
- package/dist/collection/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.de.json +2 -2
- package/dist/collection/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.el.json +2 -2
- package/dist/collection/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.es.json +2 -2
- package/dist/collection/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.et.json +2 -2
- package/dist/collection/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.fi.json +2 -2
- package/dist/collection/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.fr.json +2 -2
- package/dist/collection/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.he.json +2 -2
- package/dist/collection/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.hr.json +2 -2
- package/dist/collection/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.hu.json +2 -2
- package/dist/collection/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.id.json +2 -2
- package/dist/collection/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.it.json +2 -2
- package/dist/collection/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.ja.json +2 -2
- package/dist/collection/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.ko.json +2 -2
- package/dist/collection/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.lt.json +2 -2
- package/dist/collection/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.lv.json +2 -2
- package/dist/collection/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.nl.json +2 -2
- package/dist/collection/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.no.json +2 -2
- package/dist/collection/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.pl.json +2 -2
- package/dist/collection/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.pt-BR.json +2 -2
- package/dist/collection/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.pt-PT.json +2 -2
- package/dist/collection/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.ro.json +2 -2
- package/dist/collection/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.ru.json +2 -2
- package/dist/collection/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.sk.json +2 -2
- package/dist/collection/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.sl.json +2 -2
- package/dist/collection/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.sr.json +2 -2
- package/dist/collection/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.sv.json +2 -2
- package/dist/collection/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.th.json +2 -2
- package/dist/collection/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.tr.json +2 -2
- package/dist/collection/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.uk.json +2 -2
- package/dist/collection/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.vi.json +2 -2
- package/dist/collection/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.zh-CN.json +2 -2
- package/dist/collection/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.zh-HK.json +2 -2
- package/dist/collection/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.zh-TW.json +2 -2
- package/dist/collection/vendor/instant-apps-components/instant-apps-components.esm.js +1 -1
- package/dist/collection/vendor/instant-apps-components/p-005a2711.js +2 -0
- package/dist/collection/vendor/instant-apps-components/p-032bc629.entry.js +2 -0
- package/dist/collection/vendor/instant-apps-components/p-05080364.entry.js +2 -0
- package/dist/collection/vendor/instant-apps-components/p-05080364.entry.js.map +1 -0
- package/dist/collection/vendor/instant-apps-components/p-050b8c6e.entry.js +2 -0
- package/dist/collection/vendor/instant-apps-components/p-0e4ff0a9.entry.js +2 -0
- package/dist/collection/vendor/instant-apps-components/p-2162260c.entry.js +2 -0
- package/dist/collection/vendor/instant-apps-components/p-2751b893.entry.js +2 -0
- package/dist/collection/vendor/instant-apps-components/p-2751b893.entry.js.map +1 -0
- package/dist/collection/vendor/instant-apps-components/p-2e588fed.entry.js +2 -0
- package/dist/collection/vendor/instant-apps-components/p-34b74df9.js +2 -0
- package/dist/collection/vendor/instant-apps-components/p-34b74df9.js.map +1 -0
- package/dist/collection/vendor/instant-apps-components/p-40992282.js +2 -0
- package/dist/collection/vendor/instant-apps-components/p-45a300a8.js +2 -0
- package/dist/collection/vendor/instant-apps-components/p-50b205e8.js +2 -0
- package/dist/collection/vendor/instant-apps-components/p-50b205e8.js.map +1 -0
- package/dist/collection/vendor/instant-apps-components/p-5d5a1e7d.entry.js +2 -0
- package/dist/collection/vendor/instant-apps-components/p-5d67f7d1.entry.js +2 -0
- package/dist/collection/vendor/instant-apps-components/p-625b0358.entry.js +2 -0
- package/dist/collection/vendor/instant-apps-components/p-6ab370d8.entry.js +2 -0
- package/dist/collection/vendor/instant-apps-components/p-75b6ba72.entry.js +2 -0
- package/dist/collection/vendor/instant-apps-components/p-82b50b9d.entry.js +2 -0
- package/dist/collection/vendor/instant-apps-components/p-85727adc.entry.js +2 -0
- package/dist/collection/vendor/instant-apps-components/p-88c9829f.entry.js +2 -0
- package/dist/collection/vendor/instant-apps-components/p-9ef92300.entry.js +2 -0
- package/dist/collection/vendor/instant-apps-components/p-a2fbebc1.js +2 -0
- package/dist/collection/vendor/instant-apps-components/p-a2fbebc1.js.map +1 -0
- package/dist/collection/vendor/instant-apps-components/p-af343e04.entry.js +2 -0
- package/dist/collection/vendor/instant-apps-components/p-b346c8fa.entry.js +2 -0
- package/dist/collection/vendor/instant-apps-components/p-b346c8fa.entry.js.map +1 -0
- package/dist/collection/vendor/instant-apps-components/p-b8c8fb6f.entry.js +2 -0
- package/dist/collection/vendor/instant-apps-components/p-bbc047f2.entry.js +2 -0
- package/dist/collection/vendor/instant-apps-components/p-c0385dc5.entry.js +2 -0
- package/dist/collection/vendor/instant-apps-components/p-cda36aea.entry.js +2 -0
- package/dist/collection/vendor/instant-apps-components/p-e3d0321c.entry.js +2 -0
- package/dist/collection/vendor/instant-apps-components/p-e3d0321c.entry.js.map +1 -0
- package/dist/components/downloadUtils.js +2 -2
- package/dist/components/info-card2.js +3 -3
- package/dist/components/purify.js +491 -684
- package/dist/esm/asyncToGenerator-96b2368d.js +88 -0
- package/dist/esm/basemap-gallery_7.entry.js +1 -1
- package/dist/esm/buffer-tools_2.entry.js +1 -1
- package/dist/esm/card-manager_3.entry.js +3 -3
- package/dist/esm/consent-manager.entry.js +3 -3
- package/dist/esm/create-feature_4.entry.js +7 -7
- package/dist/esm/create-related-feature_3.entry.js +1 -1
- package/dist/esm/crowdsource-manager.entry.js +1 -1
- package/dist/esm/crowdsource-reporter.entry.js +1 -1
- package/dist/esm/delete-dialog.entry.js +1 -1
- package/dist/esm/downloadUtils-b0527cde.js +5371 -0
- package/dist/esm/feature-list.entry.js +4 -4
- package/dist/esm/index.es-87662946.js +11108 -0
- package/dist/esm/json-editor_7.entry.js +1 -1
- package/dist/esm/map-layer-picker.entry.js +1 -1
- package/dist/esm/map-select-tools_3.entry.js +3 -3
- package/dist/esm/popupUtils-e38099ea.js +119 -0
- package/dist/esm/public-notification.entry.js +3 -3
- package/dist/esm/purify-ff5f3331.js +1362 -0
- package/dist/esm/solution-configuration.entry.js +1 -1
- package/dist/esm/solution-contents_3.entry.js +1 -1
- package/dist/esm/solution-item-accordion.entry.js +1 -1
- package/dist/esm/spatial-ref.entry.js +1 -1
- package/dist/solutions-components/p-0a60707c.entry.js +6 -0
- package/dist/solutions-components/p-105278a7.entry.js +6 -0
- package/dist/solutions-components/p-1aad0b63.entry.js +6 -0
- package/dist/solutions-components/p-2dc3849e.js +7 -0
- package/dist/solutions-components/p-3aa20e1f.entry.js +6 -0
- package/dist/solutions-components/p-47b7670b.entry.js +6 -0
- package/dist/solutions-components/p-4a2870b0.entry.js +21 -0
- package/dist/solutions-components/p-4fa0753d.entry.js +6 -0
- package/dist/solutions-components/p-50b4945e.entry.js +21 -0
- package/dist/solutions-components/p-5b481f0d.entry.js +6 -0
- package/dist/solutions-components/p-60b1fe27.entry.js +6 -0
- package/dist/solutions-components/p-7f36cfb0.entry.js +6 -0
- package/dist/solutions-components/p-83c42cc2.js +21 -0
- package/dist/solutions-components/p-956a987d.entry.js +6 -0
- package/dist/solutions-components/p-974e8883.js +498 -0
- package/dist/solutions-components/p-9ee56d38.entry.js +6 -0
- package/dist/solutions-components/p-b04179db.entry.js +11 -0
- package/dist/solutions-components/p-b8e4345e.entry.js +6 -0
- package/dist/solutions-components/p-bcdf6872.entry.js +6 -0
- package/dist/solutions-components/p-c83b1a4a.entry.js +6 -0
- package/dist/solutions-components/p-d65f8b73.js +6 -0
- package/dist/solutions-components/p-dc188d13.js +61 -0
- package/dist/solutions-components/p-f6d19f6d.entry.js +6 -0
- package/dist/solutions-components/solutions-components.esm.js +1 -1
- package/dist/solutions-components/vendor/calcite-components/2ADYSLPZ.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/2BYCWVAC.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/2DJLQG4A.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/2KN7VFV3.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/2QQE6RBG.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/2W46C5IT.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/2WEHZC4R.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/2YD4Z56B.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/2YU4JUQK.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/323UDHL6.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/35N5CZK3.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/3GWF5ELI.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/3JWBMHMV.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/3NUUOJEI.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/3O4S27LQ.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/3O5VK4VN.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/3OFHBVGT.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/3XJDMBMJ.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/3YYHU67H.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/44ZIVGS7.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/4BEUN427.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/4G4MW34F.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/4GGWE4M3.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/4HF2MH3F.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/4KGTT6I3.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/4QHW2KCC.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/52AGH4NW.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/5A4SCMTT.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/5B6WX2DL.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/5BW6OEX4.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/5FDKP64C.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/5MAYMOZA.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/5UXZD2PW.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/5WEHUHTX.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/5ZOOOTHO.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/6C6KOC25.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/6DU5XIRS.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/6IRQP6SO.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/6M4MQUQE.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/6MCHN6SO.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/6NCXFBVI.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/6NJ2XB5D.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/6NPZR4ED.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/74XIV7EB.js +6 -0
- package/dist/solutions-components/vendor/calcite-components/77RD52T4.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/7BOAE3LM.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/7DY27BCZ.js +5 -0
- package/dist/solutions-components/vendor/calcite-components/7EIGV5FV.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/7MV5X5YY.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/7SAECUZA.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/7SFM2X2V.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/7SQTVACB.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/7U3ECTM6.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/7WRGOM4T.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/7XDJ54GY.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/ABXKDQDM.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/AN6BRRC4.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/AS3OWJAM.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/AUQ7MLX2.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/AWXNBIWS.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/AZOHNXOH.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/B45JROQX.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/B4YIOD3M.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/B7HWVLZ4.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/B7IG4G6I.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/B7MQCVNK.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/BFDAS53F.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/BHTF7FU6.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/BKNRSH5I.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/BTOGKDPW.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/BZAVOPTZ.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/CATJWSUR.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/CY5CVEEO.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/D4CU2ELJ.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/DFFLO6RQ.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/DIIIRTRD.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/DJ65IGAJ.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/DR6TNPNP.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/DSV6O5SN.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/DWSKOILM.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/E2K7V264.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/E5276FGO.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/EJZAAUYU.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/EO6WGEPM.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/EOTHRH2D.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/F3XJA6O4.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/F4EMKIHK.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/FA3NO5EU.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/FA3WMFEB.js +22 -0
- package/dist/solutions-components/vendor/calcite-components/FKBMHLD3.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/FP7FM2VM.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/FP7S2M3E.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/FTPC7ETT.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/FWYDKVOD.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/G3CCZ6XE.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/G5S7W2IC.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/GEURCF7X.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/GFAN7OST.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/GGSSFQEY.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/GIAPPW2B.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/GQAZQ3S4.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/GQUIDXCJ.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/GUUZ7ZDV.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/H3XVYGU3.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/H6E5FODU.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/HBMJPX74.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/HEHWLTET.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/HHWADIGN.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/HJBKJ56M.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/HMAFQQAN.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/HMNR3FGX.js +28 -0
- package/dist/solutions-components/vendor/calcite-components/HO6YJDQ6.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/HXRFWMNM.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/HZNGZAMK.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/HZSC2XKV.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/I7NALNEM.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/I7S2F2P2.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/J22MUGVD.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/J2XEN4PC.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/JHSTZGJJ.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/JNK6UYNK.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/JR5RWSNX.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/JSHY6EAI.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/JZB5GBZP.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/JZBTEL4E.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/KE362XQL.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/KGBDVMSN.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/KHFQ3CWL.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/KJ5QSHIV.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/KK2GYQJN.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/KPOLTNRY.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/KUJZNT2T.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/KW5SSXI2.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/KZLGID44.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/L64PNSJ7.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/LBEGPJNS.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/LDPDJTKP.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/LHPTWBKI.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/LPMWWCXO.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/M2Z3Q7XS.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/MADH6ZCD.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/MED7DXL5.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/MN6JS3SO.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/MNQ67HJJ.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/MOOKY73S.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/N3RCOT5M.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/N6SVU4LG.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/NE3OUQ5Q.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/NFHTQLBP.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/NHLJM63F.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/NLWFZFB3.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/NSBYYOY2.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/NSHGJK73.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/NUDAXIBZ.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/O5SN3SJX.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/OEWDESOU.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/OTB6UDF3.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/OXCCRWE7.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/PG3U4QAJ.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/PMUHOU3H.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/PRPWC5NA.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/PSOUNIL7.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/Q6VXEGD5.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/Q752TMWW.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/QMGTBEVK.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/QNL5HVWX.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/QQ2QONXU.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/QQCFFW4X.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/QSRM5BPK.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/QXDDQX5X.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/R4TXKGB3.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/R546VITU.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/RGOMC52G.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/RIMAR2EG.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/RJV2JRQS.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/RLVRPIQB.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/RR6NYECR.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/RVEN4NOD.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/RXONMM2F.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/RYOCULDB.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/SCKKZTVU.js +5 -0
- package/dist/solutions-components/vendor/calcite-components/SKGKFH23.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/SUCAF23Q.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/SWZ5F3MV.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/SX5X4EI7.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/SXYTJEOC.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/SY3OC64V.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/SYD5OQF5.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/SZONZQBZ.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/TEDXU7XB.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/TL6JRD7M.js +5 -0
- package/dist/solutions-components/vendor/calcite-components/TOC7BSNI.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/TYTRJYZL.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/U3FS2FCE.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/UIWDOEUD.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/URGYWK4W.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/V5LFQL3E.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/VGEM6KFP.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/VH2EYQHG.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/VHAES5IP.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/VJ5DDNTG.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/VTUEWQVZ.js +5 -0
- package/dist/solutions-components/vendor/calcite-components/VXIKRCVR.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/W4BKGWAR.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/WB6MZBXE.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/WBAUVVNW.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/WCZACGMB.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/WEHMJO3D.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/WGTFNY3J.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/WHHZYHGQ.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/WOM5JCSF.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/X37LIRIJ.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/XVCE2OUE.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/XVQRC56A.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/XYA7Z3GN.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/YED3P76Q.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/YJZ2YI4N.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/YW6WV5X7.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/Z3IB3JHI.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/Z64MBKLN.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/Z762LC4M.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/ZHYECVB4.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/ZQALJZYZ.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/ZXJF7S7L.js +4 -0
- package/dist/solutions-components/vendor/calcite-components/calcite.esm.js +2 -2
- package/dist/solutions-components/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.ar.json +2 -2
- package/dist/solutions-components/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.bg.json +2 -2
- package/dist/solutions-components/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.bs.json +2 -2
- package/dist/solutions-components/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.ca.json +2 -2
- package/dist/solutions-components/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.cs.json +2 -2
- package/dist/solutions-components/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.da.json +2 -2
- package/dist/solutions-components/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.de.json +2 -2
- package/dist/solutions-components/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.el.json +2 -2
- package/dist/solutions-components/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.es.json +2 -2
- package/dist/solutions-components/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.et.json +2 -2
- package/dist/solutions-components/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.fi.json +2 -2
- package/dist/solutions-components/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.fr.json +2 -2
- package/dist/solutions-components/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.he.json +2 -2
- package/dist/solutions-components/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.hr.json +2 -2
- package/dist/solutions-components/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.hu.json +2 -2
- package/dist/solutions-components/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.id.json +2 -2
- package/dist/solutions-components/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.it.json +2 -2
- package/dist/solutions-components/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.ja.json +2 -2
- package/dist/solutions-components/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.ko.json +2 -2
- package/dist/solutions-components/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.lt.json +2 -2
- package/dist/solutions-components/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.lv.json +2 -2
- package/dist/solutions-components/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.nl.json +2 -2
- package/dist/solutions-components/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.no.json +2 -2
- package/dist/solutions-components/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.pl.json +2 -2
- package/dist/solutions-components/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.pt-BR.json +2 -2
- package/dist/solutions-components/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.pt-PT.json +2 -2
- package/dist/solutions-components/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.ro.json +2 -2
- package/dist/solutions-components/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.ru.json +2 -2
- package/dist/solutions-components/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.sk.json +2 -2
- package/dist/solutions-components/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.sl.json +2 -2
- package/dist/solutions-components/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.sr.json +2 -2
- package/dist/solutions-components/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.sv.json +2 -2
- package/dist/solutions-components/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.th.json +2 -2
- package/dist/solutions-components/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.tr.json +2 -2
- package/dist/solutions-components/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.uk.json +2 -2
- package/dist/solutions-components/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.vi.json +2 -2
- package/dist/solutions-components/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.zh-CN.json +2 -2
- package/dist/solutions-components/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.zh-HK.json +2 -2
- package/dist/solutions-components/vendor/instant-apps-components/assets/t9n/instant-apps-social-share/messages.zh-TW.json +2 -2
- package/dist/solutions-components/vendor/instant-apps-components/instant-apps-components.esm.js +1 -1
- package/dist/solutions-components/vendor/instant-apps-components/p-005a2711.js +2 -0
- package/dist/solutions-components/vendor/instant-apps-components/p-032bc629.entry.js +2 -0
- package/dist/solutions-components/vendor/instant-apps-components/p-05080364.entry.js +2 -0
- package/dist/solutions-components/vendor/instant-apps-components/p-05080364.entry.js.map +1 -0
- package/dist/solutions-components/vendor/instant-apps-components/p-050b8c6e.entry.js +2 -0
- package/dist/solutions-components/vendor/instant-apps-components/p-0e4ff0a9.entry.js +2 -0
- package/dist/solutions-components/vendor/instant-apps-components/p-2162260c.entry.js +2 -0
- package/dist/solutions-components/vendor/instant-apps-components/p-2751b893.entry.js +2 -0
- package/dist/solutions-components/vendor/instant-apps-components/p-2751b893.entry.js.map +1 -0
- package/dist/solutions-components/vendor/instant-apps-components/p-2e588fed.entry.js +2 -0
- package/dist/solutions-components/vendor/instant-apps-components/p-34b74df9.js +2 -0
- package/dist/solutions-components/vendor/instant-apps-components/p-34b74df9.js.map +1 -0
- package/dist/solutions-components/vendor/instant-apps-components/p-40992282.js +2 -0
- package/dist/solutions-components/vendor/instant-apps-components/p-45a300a8.js +2 -0
- package/dist/solutions-components/vendor/instant-apps-components/p-50b205e8.js +2 -0
- package/dist/solutions-components/vendor/instant-apps-components/p-50b205e8.js.map +1 -0
- package/dist/solutions-components/vendor/instant-apps-components/p-5d5a1e7d.entry.js +2 -0
- package/dist/solutions-components/vendor/instant-apps-components/p-5d67f7d1.entry.js +2 -0
- package/dist/solutions-components/vendor/instant-apps-components/p-625b0358.entry.js +2 -0
- package/dist/solutions-components/vendor/instant-apps-components/p-6ab370d8.entry.js +2 -0
- package/dist/solutions-components/vendor/instant-apps-components/p-75b6ba72.entry.js +2 -0
- package/dist/solutions-components/vendor/instant-apps-components/p-82b50b9d.entry.js +2 -0
- package/dist/solutions-components/vendor/instant-apps-components/p-85727adc.entry.js +2 -0
- package/dist/solutions-components/vendor/instant-apps-components/p-88c9829f.entry.js +2 -0
- package/dist/solutions-components/vendor/instant-apps-components/p-9ef92300.entry.js +2 -0
- package/dist/solutions-components/vendor/instant-apps-components/p-a2fbebc1.js +2 -0
- package/dist/solutions-components/vendor/instant-apps-components/p-a2fbebc1.js.map +1 -0
- package/dist/solutions-components/vendor/instant-apps-components/p-af343e04.entry.js +2 -0
- package/dist/solutions-components/vendor/instant-apps-components/p-b346c8fa.entry.js +2 -0
- package/dist/solutions-components/vendor/instant-apps-components/p-b346c8fa.entry.js.map +1 -0
- package/dist/solutions-components/vendor/instant-apps-components/p-b8c8fb6f.entry.js +2 -0
- package/dist/solutions-components/vendor/instant-apps-components/p-bbc047f2.entry.js +2 -0
- package/dist/solutions-components/vendor/instant-apps-components/p-c0385dc5.entry.js +2 -0
- package/dist/solutions-components/vendor/instant-apps-components/p-cda36aea.entry.js +2 -0
- package/dist/solutions-components/vendor/instant-apps-components/p-e3d0321c.entry.js +2 -0
- package/dist/solutions-components/vendor/instant-apps-components/p-e3d0321c.entry.js.map +1 -0
- package/dist/solutions-components_commit.txt +7 -7
- package/package.json +6 -6
- package/dist/cjs/asyncToGenerator-ccb3278b.js +0 -92
- package/dist/cjs/downloadUtils-fefa863b.js +0 -5377
- package/dist/cjs/index.es-0441a948.js +0 -11195
- package/dist/cjs/popupUtils-a68a20db.js +0 -121
- package/dist/cjs/purify-34cd0c00.js +0 -1557
- package/dist/collection/vendor/calcite-components/22RQB3WE.js +0 -4
- package/dist/collection/vendor/calcite-components/24SER2VV.js +0 -4
- package/dist/collection/vendor/calcite-components/2BGMAPSV.js +0 -4
- package/dist/collection/vendor/calcite-components/2JKKAEPM.js +0 -4
- package/dist/collection/vendor/calcite-components/2M4WCGKG.js +0 -4
- package/dist/collection/vendor/calcite-components/2YAXZHP2.js +0 -4
- package/dist/collection/vendor/calcite-components/345Q4UHX.js +0 -4
- package/dist/collection/vendor/calcite-components/36DMRAV2.js +0 -4
- package/dist/collection/vendor/calcite-components/3DGJ6ZQI.js +0 -4
- package/dist/collection/vendor/calcite-components/3GICXOBQ.js +0 -4
- package/dist/collection/vendor/calcite-components/3IV6JSC2.js +0 -4
- package/dist/collection/vendor/calcite-components/3TOVZEQB.js +0 -4
- package/dist/collection/vendor/calcite-components/45GA6INB.js +0 -4
- package/dist/collection/vendor/calcite-components/46U4MKUU.js +0 -4
- package/dist/collection/vendor/calcite-components/4BSCJ722.js +0 -4
- package/dist/collection/vendor/calcite-components/4SEPDFCP.js +0 -5
- package/dist/collection/vendor/calcite-components/4TQLSUKH.js +0 -4
- package/dist/collection/vendor/calcite-components/4YZ27QWL.js +0 -4
- package/dist/collection/vendor/calcite-components/4Z7JRTON.js +0 -4
- package/dist/collection/vendor/calcite-components/5AVZLE2Q.js +0 -4
- package/dist/collection/vendor/calcite-components/5EPP4MG3.js +0 -4
- package/dist/collection/vendor/calcite-components/66B2H27W.js +0 -4
- package/dist/collection/vendor/calcite-components/6LW27BEV.js +0 -4
- package/dist/collection/vendor/calcite-components/6OZRZ36X.js +0 -4
- package/dist/collection/vendor/calcite-components/6X2SD2PW.js +0 -4
- package/dist/collection/vendor/calcite-components/6XTYGXNG.js +0 -4
- package/dist/collection/vendor/calcite-components/6ZTWHW63.js +0 -4
- package/dist/collection/vendor/calcite-components/7D3VEEUX.js +0 -4
- package/dist/collection/vendor/calcite-components/7E342YOK.js +0 -4
- package/dist/collection/vendor/calcite-components/7KSGVDSR.js +0 -4
- package/dist/collection/vendor/calcite-components/7PWETOIU.js +0 -4
- package/dist/collection/vendor/calcite-components/7QHUEK5R.js +0 -4
- package/dist/collection/vendor/calcite-components/7SX3RD7P.js +0 -4
- package/dist/collection/vendor/calcite-components/7U7FF3Y4.js +0 -4
- package/dist/collection/vendor/calcite-components/7WG5I3MP.js +0 -4
- package/dist/collection/vendor/calcite-components/A5GGYTUQ.js +0 -4
- package/dist/collection/vendor/calcite-components/AI3R3SU6.js +0 -28
- package/dist/collection/vendor/calcite-components/ARHYATTG.js +0 -4
- package/dist/collection/vendor/calcite-components/ATHBUWBY.js +0 -4
- package/dist/collection/vendor/calcite-components/AXXJNFKZ.js +0 -4
- package/dist/collection/vendor/calcite-components/AYZ73RWQ.js +0 -4
- package/dist/collection/vendor/calcite-components/BAHIPAHM.js +0 -4
- package/dist/collection/vendor/calcite-components/BRTDMTZ3.js +0 -4
- package/dist/collection/vendor/calcite-components/BRTESQOJ.js +0 -4
- package/dist/collection/vendor/calcite-components/BSRMWMHQ.js +0 -4
- package/dist/collection/vendor/calcite-components/BZKF5ZXQ.js +0 -4
- package/dist/collection/vendor/calcite-components/C46JYVUP.js +0 -4
- package/dist/collection/vendor/calcite-components/C54C5E23.js +0 -4
- package/dist/collection/vendor/calcite-components/CBSMKHOY.js +0 -4
- package/dist/collection/vendor/calcite-components/CFRBQXK4.js +0 -4
- package/dist/collection/vendor/calcite-components/CIV3PH3Z.js +0 -4
- package/dist/collection/vendor/calcite-components/CJYTY62F.js +0 -4
- package/dist/collection/vendor/calcite-components/CK6HQQX6.js +0 -4
- package/dist/collection/vendor/calcite-components/CMO3X257.js +0 -4
- package/dist/collection/vendor/calcite-components/CNO6NFH5.js +0 -4
- package/dist/collection/vendor/calcite-components/CWPRBG3T.js +0 -4
- package/dist/collection/vendor/calcite-components/CY6C2FDZ.js +0 -4
- package/dist/collection/vendor/calcite-components/D2HDFE7S.js +0 -22
- package/dist/collection/vendor/calcite-components/D36VWSDW.js +0 -4
- package/dist/collection/vendor/calcite-components/DBVNMM6Q.js +0 -4
- package/dist/collection/vendor/calcite-components/DDJ75RTI.js +0 -4
- package/dist/collection/vendor/calcite-components/DH4ISGHV.js +0 -4
- package/dist/collection/vendor/calcite-components/DNYBIAUI.js +0 -4
- package/dist/collection/vendor/calcite-components/DT67ZFPX.js +0 -4
- package/dist/collection/vendor/calcite-components/DTL2LM6T.js +0 -4
- package/dist/collection/vendor/calcite-components/E3R5SMVW.js +0 -4
- package/dist/collection/vendor/calcite-components/E4NMFIKN.js +0 -4
- package/dist/collection/vendor/calcite-components/EAML4EDI.js +0 -5
- package/dist/collection/vendor/calcite-components/ECEZ4R6E.js +0 -4
- package/dist/collection/vendor/calcite-components/EFI2G5WL.js +0 -4
- package/dist/collection/vendor/calcite-components/EHZCT5YZ.js +0 -4
- package/dist/collection/vendor/calcite-components/EOHVH6PN.js +0 -4
- package/dist/collection/vendor/calcite-components/ESBOJTBS.js +0 -4
- package/dist/collection/vendor/calcite-components/F6EGRKXW.js +0 -4
- package/dist/collection/vendor/calcite-components/FCN5RMLA.js +0 -4
- package/dist/collection/vendor/calcite-components/FDIM6DYL.js +0 -4
- package/dist/collection/vendor/calcite-components/FE3A3YUN.js +0 -4
- package/dist/collection/vendor/calcite-components/FHBFGCTR.js +0 -4
- package/dist/collection/vendor/calcite-components/FNFWOOMR.js +0 -4
- package/dist/collection/vendor/calcite-components/FNM4DZZH.js +0 -4
- package/dist/collection/vendor/calcite-components/G2KHDAZD.js +0 -4
- package/dist/collection/vendor/calcite-components/G3LH75CQ.js +0 -4
- package/dist/collection/vendor/calcite-components/G3ZJ2KQT.js +0 -4
- package/dist/collection/vendor/calcite-components/G7WFYVUC.js +0 -5
- package/dist/collection/vendor/calcite-components/GAAXSGWK.js +0 -4
- package/dist/collection/vendor/calcite-components/GE63ETFI.js +0 -4
- package/dist/collection/vendor/calcite-components/GFC7NS6P.js +0 -4
- package/dist/collection/vendor/calcite-components/GGO5TMB4.js +0 -4
- package/dist/collection/vendor/calcite-components/GKKCWEZX.js +0 -4
- package/dist/collection/vendor/calcite-components/GN5CPLSJ.js +0 -4
- package/dist/collection/vendor/calcite-components/GNUSLZWJ.js +0 -4
- package/dist/collection/vendor/calcite-components/GOOHYN3D.js +0 -4
- package/dist/collection/vendor/calcite-components/GPUFLCIT.js +0 -4
- package/dist/collection/vendor/calcite-components/GSXEMGSW.js +0 -4
- package/dist/collection/vendor/calcite-components/GYQTRH4V.js +0 -4
- package/dist/collection/vendor/calcite-components/HFIRIAQA.js +0 -4
- package/dist/collection/vendor/calcite-components/HGTV36FX.js +0 -4
- package/dist/collection/vendor/calcite-components/HKHPJJ34.js +0 -4
- package/dist/collection/vendor/calcite-components/HMVKZP47.js +0 -4
- package/dist/collection/vendor/calcite-components/I2OIH73C.js +0 -4
- package/dist/collection/vendor/calcite-components/I32TMNTO.js +0 -4
- package/dist/collection/vendor/calcite-components/I62DUDHI.js +0 -4
- package/dist/collection/vendor/calcite-components/IH4RXHJJ.js +0 -4
- package/dist/collection/vendor/calcite-components/IJCTXZQB.js +0 -4
- package/dist/collection/vendor/calcite-components/IXRMDUEL.js +0 -4
- package/dist/collection/vendor/calcite-components/IYDN67SF.js +0 -4
- package/dist/collection/vendor/calcite-components/JCWM5Z43.js +0 -4
- package/dist/collection/vendor/calcite-components/JEX42CPR.js +0 -4
- package/dist/collection/vendor/calcite-components/JFYDLHH7.js +0 -4
- package/dist/collection/vendor/calcite-components/JLZYAYOL.js +0 -4
- package/dist/collection/vendor/calcite-components/JUNCR7R2.js +0 -4
- package/dist/collection/vendor/calcite-components/JVNEJ36Z.js +0 -4
- package/dist/collection/vendor/calcite-components/K3ZBW4GY.js +0 -4
- package/dist/collection/vendor/calcite-components/KBDXI6DJ.js +0 -4
- package/dist/collection/vendor/calcite-components/KBNS3CCT.js +0 -4
- package/dist/collection/vendor/calcite-components/KI2NOBMU.js +0 -4
- package/dist/collection/vendor/calcite-components/KSNEQFZX.js +0 -4
- package/dist/collection/vendor/calcite-components/KSVYAIHK.js +0 -4
- package/dist/collection/vendor/calcite-components/KULDQOV2.js +0 -4
- package/dist/collection/vendor/calcite-components/KVSCG5E3.js +0 -6
- package/dist/collection/vendor/calcite-components/KW57BHXD.js +0 -4
- package/dist/collection/vendor/calcite-components/KWOOGTG2.js +0 -4
- package/dist/collection/vendor/calcite-components/L5FDXQMT.js +0 -4
- package/dist/collection/vendor/calcite-components/LB5ATL5Q.js +0 -4
- package/dist/collection/vendor/calcite-components/LH7KSBQC.js +0 -4
- package/dist/collection/vendor/calcite-components/LHSAAMYQ.js +0 -4
- package/dist/collection/vendor/calcite-components/LILDCWFX.js +0 -4
- package/dist/collection/vendor/calcite-components/LLSB73WA.js +0 -4
- package/dist/collection/vendor/calcite-components/LOZEGKG2.js +0 -4
- package/dist/collection/vendor/calcite-components/MBQZPRQ5.js +0 -4
- package/dist/collection/vendor/calcite-components/MCSX2S5T.js +0 -4
- package/dist/collection/vendor/calcite-components/MIKGJ3NM.js +0 -4
- package/dist/collection/vendor/calcite-components/MPAVJ7UH.js +0 -4
- package/dist/collection/vendor/calcite-components/MPX2M2VX.js +0 -4
- package/dist/collection/vendor/calcite-components/MQYH4ONZ.js +0 -4
- package/dist/collection/vendor/calcite-components/MUWK32IE.js +0 -4
- package/dist/collection/vendor/calcite-components/MZRO54UT.js +0 -4
- package/dist/collection/vendor/calcite-components/N2BVYYYP.js +0 -4
- package/dist/collection/vendor/calcite-components/N4MN6VQ7.js +0 -4
- package/dist/collection/vendor/calcite-components/N55N67N5.js +0 -4
- package/dist/collection/vendor/calcite-components/NODC2JA6.js +0 -4
- package/dist/collection/vendor/calcite-components/NVBNX55L.js +0 -4
- package/dist/collection/vendor/calcite-components/NWVCPRVB.js +0 -4
- package/dist/collection/vendor/calcite-components/O4O3TSE5.js +0 -4
- package/dist/collection/vendor/calcite-components/OE2AH2NC.js +0 -4
- package/dist/collection/vendor/calcite-components/OGED6PPP.js +0 -4
- package/dist/collection/vendor/calcite-components/OHOS32IT.js +0 -4
- package/dist/collection/vendor/calcite-components/OLMX7G3J.js +0 -4
- package/dist/collection/vendor/calcite-components/OOSULFCY.js +0 -4
- package/dist/collection/vendor/calcite-components/OPBQNK7J.js +0 -4
- package/dist/collection/vendor/calcite-components/OTHVFLNW.js +0 -4
- package/dist/collection/vendor/calcite-components/OTUG3NVT.js +0 -4
- package/dist/collection/vendor/calcite-components/PNHR5K2L.js +0 -4
- package/dist/collection/vendor/calcite-components/PT2XMADA.js +0 -4
- package/dist/collection/vendor/calcite-components/PZLVQQMT.js +0 -4
- package/dist/collection/vendor/calcite-components/QAYSDI3M.js +0 -5
- package/dist/collection/vendor/calcite-components/QCGLMLKW.js +0 -4
- package/dist/collection/vendor/calcite-components/QHASLHZN.js +0 -4
- package/dist/collection/vendor/calcite-components/QK2H5T7J.js +0 -4
- package/dist/collection/vendor/calcite-components/QLKHJI4P.js +0 -4
- package/dist/collection/vendor/calcite-components/QQ67AVDV.js +0 -4
- package/dist/collection/vendor/calcite-components/QU33PBBI.js +0 -4
- package/dist/collection/vendor/calcite-components/QYGED6CL.js +0 -4
- package/dist/collection/vendor/calcite-components/R3HMG2D6.js +0 -4
- package/dist/collection/vendor/calcite-components/R4RMVIKH.js +0 -4
- package/dist/collection/vendor/calcite-components/R6GNPMSV.js +0 -4
- package/dist/collection/vendor/calcite-components/RAFCSOOQ.js +0 -4
- package/dist/collection/vendor/calcite-components/RAQWKUOJ.js +0 -4
- package/dist/collection/vendor/calcite-components/RESHLE2Y.js +0 -4
- package/dist/collection/vendor/calcite-components/RJLKHCRB.js +0 -4
- package/dist/collection/vendor/calcite-components/RLSQLIV6.js +0 -4
- package/dist/collection/vendor/calcite-components/RMGYRZXR.js +0 -4
- package/dist/collection/vendor/calcite-components/RSAEDAEX.js +0 -4
- package/dist/collection/vendor/calcite-components/RUTUU2EH.js +0 -4
- package/dist/collection/vendor/calcite-components/RVMVJW6K.js +0 -4
- package/dist/collection/vendor/calcite-components/RVQMJBNS.js +0 -4
- package/dist/collection/vendor/calcite-components/S76CXQTI.js +0 -4
- package/dist/collection/vendor/calcite-components/SBZ6VJ75.js +0 -4
- package/dist/collection/vendor/calcite-components/SJKTCGW6.js +0 -4
- package/dist/collection/vendor/calcite-components/SKDMJE3X.js +0 -4
- package/dist/collection/vendor/calcite-components/SMUXJLDL.js +0 -4
- package/dist/collection/vendor/calcite-components/SYEQSDHG.js +0 -4
- package/dist/collection/vendor/calcite-components/T3NRBBZP.js +0 -4
- package/dist/collection/vendor/calcite-components/T5UPGHU3.js +0 -4
- package/dist/collection/vendor/calcite-components/T6HODD4B.js +0 -4
- package/dist/collection/vendor/calcite-components/TNR5VZG2.js +0 -4
- package/dist/collection/vendor/calcite-components/TQIVV2F7.js +0 -4
- package/dist/collection/vendor/calcite-components/TQTAM3XB.js +0 -4
- package/dist/collection/vendor/calcite-components/TSJJLMPA.js +0 -4
- package/dist/collection/vendor/calcite-components/TVDZM7WT.js +0 -4
- package/dist/collection/vendor/calcite-components/U3WK4DZT.js +0 -4
- package/dist/collection/vendor/calcite-components/U725E4ID.js +0 -4
- package/dist/collection/vendor/calcite-components/UELGJSYH.js +0 -4
- package/dist/collection/vendor/calcite-components/UJL3BWDH.js +0 -4
- package/dist/collection/vendor/calcite-components/URM3R65T.js +0 -4
- package/dist/collection/vendor/calcite-components/US3PQV6O.js +0 -4
- package/dist/collection/vendor/calcite-components/V4JZRN7T.js +0 -4
- package/dist/collection/vendor/calcite-components/VCSXFNPO.js +0 -4
- package/dist/collection/vendor/calcite-components/VG7BJBFG.js +0 -4
- package/dist/collection/vendor/calcite-components/VJD4CRQ3.js +0 -4
- package/dist/collection/vendor/calcite-components/VMRLYKNI.js +0 -4
- package/dist/collection/vendor/calcite-components/VNQNKQ2J.js +0 -4
- package/dist/collection/vendor/calcite-components/VST65PDC.js +0 -4
- package/dist/collection/vendor/calcite-components/WKTGTKRJ.js +0 -4
- package/dist/collection/vendor/calcite-components/WPAMFFBY.js +0 -4
- package/dist/collection/vendor/calcite-components/WSGL37LB.js +0 -4
- package/dist/collection/vendor/calcite-components/WWUBU6N5.js +0 -4
- package/dist/collection/vendor/calcite-components/X2UHFJHG.js +0 -4
- package/dist/collection/vendor/calcite-components/XBZLGRRI.js +0 -4
- package/dist/collection/vendor/calcite-components/XOVG6UH3.js +0 -4
- package/dist/collection/vendor/calcite-components/XT32TCZG.js +0 -4
- package/dist/collection/vendor/calcite-components/XXZIOSXQ.js +0 -4
- package/dist/collection/vendor/calcite-components/Y6VF7HSM.js +0 -4
- package/dist/collection/vendor/calcite-components/YA5A7PJR.js +0 -4
- package/dist/collection/vendor/calcite-components/YMRTHS5X.js +0 -4
- package/dist/collection/vendor/calcite-components/YTRT5XZT.js +0 -4
- package/dist/collection/vendor/calcite-components/YXLQFMOA.js +0 -4
- package/dist/collection/vendor/calcite-components/YYJSHQR3.js +0 -4
- package/dist/collection/vendor/calcite-components/Z6GA347Y.js +0 -4
- package/dist/collection/vendor/calcite-components/Z7VNUC77.js +0 -4
- package/dist/collection/vendor/calcite-components/ZA76CHET.js +0 -4
- package/dist/collection/vendor/calcite-components/ZGXTLCGJ.js +0 -4
- package/dist/collection/vendor/calcite-components/ZQO6E4FO.js +0 -4
- package/dist/collection/vendor/calcite-components/ZV442E6X.js +0 -4
- package/dist/collection/vendor/instant-apps-components/p-0b1b0a5a.entry.js +0 -2
- package/dist/collection/vendor/instant-apps-components/p-1c4428aa.js +0 -2
- package/dist/collection/vendor/instant-apps-components/p-1c4428aa.js.map +0 -1
- package/dist/collection/vendor/instant-apps-components/p-3ce7e35f.entry.js +0 -2
- package/dist/collection/vendor/instant-apps-components/p-3e5898bb.entry.js +0 -2
- package/dist/collection/vendor/instant-apps-components/p-3e5898bb.entry.js.map +0 -1
- package/dist/collection/vendor/instant-apps-components/p-491aed47.entry.js +0 -2
- package/dist/collection/vendor/instant-apps-components/p-4ad06857.entry.js +0 -2
- package/dist/collection/vendor/instant-apps-components/p-51f2e0b2.js +0 -2
- package/dist/collection/vendor/instant-apps-components/p-51f2e0b2.js.map +0 -1
- package/dist/collection/vendor/instant-apps-components/p-525c0e1c.entry.js +0 -2
- package/dist/collection/vendor/instant-apps-components/p-5f6af6b4.entry.js +0 -2
- package/dist/collection/vendor/instant-apps-components/p-6c1383dc.entry.js +0 -2
- package/dist/collection/vendor/instant-apps-components/p-6e858759.entry.js +0 -2
- package/dist/collection/vendor/instant-apps-components/p-946ed90b.entry.js +0 -2
- package/dist/collection/vendor/instant-apps-components/p-9f85433e.entry.js +0 -2
- package/dist/collection/vendor/instant-apps-components/p-a271203d.entry.js +0 -2
- package/dist/collection/vendor/instant-apps-components/p-a72c317d.entry.js +0 -2
- package/dist/collection/vendor/instant-apps-components/p-ab4ac65e.entry.js +0 -2
- package/dist/collection/vendor/instant-apps-components/p-ab4ac65e.entry.js.map +0 -1
- package/dist/collection/vendor/instant-apps-components/p-ac95a4be.entry.js +0 -2
- package/dist/collection/vendor/instant-apps-components/p-b291a1e6.js +0 -2
- package/dist/collection/vendor/instant-apps-components/p-b291a1e6.js.map +0 -1
- package/dist/collection/vendor/instant-apps-components/p-b355f972.entry.js +0 -2
- package/dist/collection/vendor/instant-apps-components/p-b9eed273.entry.js +0 -2
- package/dist/collection/vendor/instant-apps-components/p-c5932580.js +0 -2
- package/dist/collection/vendor/instant-apps-components/p-c77b3b1b.js +0 -2
- package/dist/collection/vendor/instant-apps-components/p-cd7eea90.entry.js +0 -2
- package/dist/collection/vendor/instant-apps-components/p-cfc94a85.entry.js +0 -2
- package/dist/collection/vendor/instant-apps-components/p-cfc94a85.entry.js.map +0 -1
- package/dist/collection/vendor/instant-apps-components/p-ef8e7a97.entry.js +0 -2
- package/dist/collection/vendor/instant-apps-components/p-f146c213.js +0 -2
- package/dist/collection/vendor/instant-apps-components/p-fa2be703.entry.js +0 -2
- package/dist/collection/vendor/instant-apps-components/p-fa2be703.entry.js.map +0 -1
- package/dist/collection/vendor/instant-apps-components/p-fcbd42f5.entry.js +0 -2
- package/dist/collection/vendor/instant-apps-components/p-fedaae5b.entry.js +0 -2
- package/dist/esm/asyncToGenerator-48cd21fe.js +0 -88
- package/dist/esm/downloadUtils-7ef5420f.js +0 -5371
- package/dist/esm/index.es-c379ea10.js +0 -11108
- package/dist/esm/popupUtils-ef89df87.js +0 -119
- package/dist/esm/purify-b49e5991.js +0 -1555
- package/dist/solutions-components/p-11ad8edc.entry.js +0 -6
- package/dist/solutions-components/p-1325fa9e.entry.js +0 -6
- package/dist/solutions-components/p-1a65c187.entry.js +0 -6
- package/dist/solutions-components/p-2be59c38.entry.js +0 -6
- package/dist/solutions-components/p-4379cc5f.js +0 -498
- package/dist/solutions-components/p-5096280f.entry.js +0 -6
- package/dist/solutions-components/p-51033697.entry.js +0 -6
- package/dist/solutions-components/p-51e04c86.js +0 -21
- package/dist/solutions-components/p-605597cf.entry.js +0 -6
- package/dist/solutions-components/p-62a0aa8e.js +0 -6
- package/dist/solutions-components/p-681a41f3.entry.js +0 -6
- package/dist/solutions-components/p-6d1ee086.js +0 -61
- package/dist/solutions-components/p-7eec82e3.entry.js +0 -21
- package/dist/solutions-components/p-8b05b49c.entry.js +0 -6
- package/dist/solutions-components/p-93ebcb9b.entry.js +0 -6
- package/dist/solutions-components/p-a9c9ff86.entry.js +0 -6
- package/dist/solutions-components/p-ad83a5ba.js +0 -7
- package/dist/solutions-components/p-b1f11c67.entry.js +0 -11
- package/dist/solutions-components/p-b3b5dca4.entry.js +0 -6
- package/dist/solutions-components/p-c45ba7dd.entry.js +0 -6
- package/dist/solutions-components/p-de3ba7be.entry.js +0 -21
- package/dist/solutions-components/p-debeb4dc.entry.js +0 -6
- package/dist/solutions-components/p-f2cfed3a.entry.js +0 -6
- package/dist/solutions-components/vendor/calcite-components/22RQB3WE.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/24SER2VV.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/2BGMAPSV.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/2JKKAEPM.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/2M4WCGKG.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/2YAXZHP2.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/345Q4UHX.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/36DMRAV2.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/3DGJ6ZQI.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/3GICXOBQ.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/3IV6JSC2.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/3TOVZEQB.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/45GA6INB.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/46U4MKUU.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/4BSCJ722.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/4SEPDFCP.js +0 -5
- package/dist/solutions-components/vendor/calcite-components/4TQLSUKH.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/4YZ27QWL.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/4Z7JRTON.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/5AVZLE2Q.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/5EPP4MG3.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/66B2H27W.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/6LW27BEV.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/6OZRZ36X.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/6X2SD2PW.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/6XTYGXNG.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/6ZTWHW63.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/7D3VEEUX.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/7E342YOK.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/7KSGVDSR.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/7PWETOIU.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/7QHUEK5R.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/7SX3RD7P.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/7U7FF3Y4.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/7WG5I3MP.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/A5GGYTUQ.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/AI3R3SU6.js +0 -28
- package/dist/solutions-components/vendor/calcite-components/ARHYATTG.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/ATHBUWBY.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/AXXJNFKZ.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/AYZ73RWQ.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/BAHIPAHM.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/BRTDMTZ3.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/BRTESQOJ.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/BSRMWMHQ.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/BZKF5ZXQ.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/C46JYVUP.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/C54C5E23.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/CBSMKHOY.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/CFRBQXK4.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/CIV3PH3Z.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/CJYTY62F.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/CK6HQQX6.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/CMO3X257.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/CNO6NFH5.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/CWPRBG3T.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/CY6C2FDZ.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/D2HDFE7S.js +0 -22
- package/dist/solutions-components/vendor/calcite-components/D36VWSDW.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/DBVNMM6Q.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/DDJ75RTI.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/DH4ISGHV.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/DNYBIAUI.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/DT67ZFPX.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/DTL2LM6T.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/E3R5SMVW.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/E4NMFIKN.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/EAML4EDI.js +0 -5
- package/dist/solutions-components/vendor/calcite-components/ECEZ4R6E.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/EFI2G5WL.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/EHZCT5YZ.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/EOHVH6PN.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/ESBOJTBS.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/F6EGRKXW.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/FCN5RMLA.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/FDIM6DYL.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/FE3A3YUN.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/FHBFGCTR.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/FNFWOOMR.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/FNM4DZZH.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/G2KHDAZD.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/G3LH75CQ.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/G3ZJ2KQT.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/G7WFYVUC.js +0 -5
- package/dist/solutions-components/vendor/calcite-components/GAAXSGWK.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/GE63ETFI.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/GFC7NS6P.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/GGO5TMB4.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/GKKCWEZX.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/GN5CPLSJ.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/GNUSLZWJ.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/GOOHYN3D.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/GPUFLCIT.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/GSXEMGSW.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/GYQTRH4V.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/HFIRIAQA.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/HGTV36FX.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/HKHPJJ34.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/HMVKZP47.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/I2OIH73C.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/I32TMNTO.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/I62DUDHI.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/IH4RXHJJ.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/IJCTXZQB.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/IXRMDUEL.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/IYDN67SF.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/JCWM5Z43.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/JEX42CPR.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/JFYDLHH7.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/JLZYAYOL.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/JUNCR7R2.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/JVNEJ36Z.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/K3ZBW4GY.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/KBDXI6DJ.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/KBNS3CCT.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/KI2NOBMU.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/KSNEQFZX.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/KSVYAIHK.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/KULDQOV2.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/KVSCG5E3.js +0 -6
- package/dist/solutions-components/vendor/calcite-components/KW57BHXD.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/KWOOGTG2.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/L5FDXQMT.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/LB5ATL5Q.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/LH7KSBQC.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/LHSAAMYQ.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/LILDCWFX.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/LLSB73WA.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/LOZEGKG2.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/MBQZPRQ5.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/MCSX2S5T.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/MIKGJ3NM.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/MPAVJ7UH.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/MPX2M2VX.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/MQYH4ONZ.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/MUWK32IE.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/MZRO54UT.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/N2BVYYYP.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/N4MN6VQ7.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/N55N67N5.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/NODC2JA6.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/NVBNX55L.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/NWVCPRVB.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/O4O3TSE5.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/OE2AH2NC.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/OGED6PPP.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/OHOS32IT.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/OLMX7G3J.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/OOSULFCY.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/OPBQNK7J.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/OTHVFLNW.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/OTUG3NVT.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/PNHR5K2L.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/PT2XMADA.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/PZLVQQMT.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/QAYSDI3M.js +0 -5
- package/dist/solutions-components/vendor/calcite-components/QCGLMLKW.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/QHASLHZN.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/QK2H5T7J.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/QLKHJI4P.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/QQ67AVDV.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/QU33PBBI.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/QYGED6CL.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/R3HMG2D6.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/R4RMVIKH.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/R6GNPMSV.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/RAFCSOOQ.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/RAQWKUOJ.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/RESHLE2Y.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/RJLKHCRB.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/RLSQLIV6.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/RMGYRZXR.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/RSAEDAEX.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/RUTUU2EH.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/RVMVJW6K.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/RVQMJBNS.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/S76CXQTI.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/SBZ6VJ75.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/SJKTCGW6.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/SKDMJE3X.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/SMUXJLDL.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/SYEQSDHG.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/T3NRBBZP.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/T5UPGHU3.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/T6HODD4B.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/TNR5VZG2.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/TQIVV2F7.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/TQTAM3XB.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/TSJJLMPA.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/TVDZM7WT.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/U3WK4DZT.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/U725E4ID.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/UELGJSYH.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/UJL3BWDH.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/URM3R65T.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/US3PQV6O.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/V4JZRN7T.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/VCSXFNPO.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/VG7BJBFG.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/VJD4CRQ3.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/VMRLYKNI.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/VNQNKQ2J.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/VST65PDC.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/WKTGTKRJ.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/WPAMFFBY.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/WSGL37LB.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/WWUBU6N5.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/X2UHFJHG.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/XBZLGRRI.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/XOVG6UH3.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/XT32TCZG.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/XXZIOSXQ.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/Y6VF7HSM.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/YA5A7PJR.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/YMRTHS5X.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/YTRT5XZT.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/YXLQFMOA.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/YYJSHQR3.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/Z6GA347Y.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/Z7VNUC77.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/ZA76CHET.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/ZGXTLCGJ.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/ZQO6E4FO.js +0 -4
- package/dist/solutions-components/vendor/calcite-components/ZV442E6X.js +0 -4
- package/dist/solutions-components/vendor/instant-apps-components/p-0b1b0a5a.entry.js +0 -2
- package/dist/solutions-components/vendor/instant-apps-components/p-1c4428aa.js +0 -2
- package/dist/solutions-components/vendor/instant-apps-components/p-1c4428aa.js.map +0 -1
- package/dist/solutions-components/vendor/instant-apps-components/p-3ce7e35f.entry.js +0 -2
- package/dist/solutions-components/vendor/instant-apps-components/p-3e5898bb.entry.js +0 -2
- package/dist/solutions-components/vendor/instant-apps-components/p-3e5898bb.entry.js.map +0 -1
- package/dist/solutions-components/vendor/instant-apps-components/p-491aed47.entry.js +0 -2
- package/dist/solutions-components/vendor/instant-apps-components/p-4ad06857.entry.js +0 -2
- package/dist/solutions-components/vendor/instant-apps-components/p-51f2e0b2.js +0 -2
- package/dist/solutions-components/vendor/instant-apps-components/p-51f2e0b2.js.map +0 -1
- package/dist/solutions-components/vendor/instant-apps-components/p-525c0e1c.entry.js +0 -2
- package/dist/solutions-components/vendor/instant-apps-components/p-5f6af6b4.entry.js +0 -2
- package/dist/solutions-components/vendor/instant-apps-components/p-6c1383dc.entry.js +0 -2
- package/dist/solutions-components/vendor/instant-apps-components/p-6e858759.entry.js +0 -2
- package/dist/solutions-components/vendor/instant-apps-components/p-946ed90b.entry.js +0 -2
- package/dist/solutions-components/vendor/instant-apps-components/p-9f85433e.entry.js +0 -2
- package/dist/solutions-components/vendor/instant-apps-components/p-a271203d.entry.js +0 -2
- package/dist/solutions-components/vendor/instant-apps-components/p-a72c317d.entry.js +0 -2
- package/dist/solutions-components/vendor/instant-apps-components/p-ab4ac65e.entry.js +0 -2
- package/dist/solutions-components/vendor/instant-apps-components/p-ab4ac65e.entry.js.map +0 -1
- package/dist/solutions-components/vendor/instant-apps-components/p-ac95a4be.entry.js +0 -2
- package/dist/solutions-components/vendor/instant-apps-components/p-b291a1e6.js +0 -2
- package/dist/solutions-components/vendor/instant-apps-components/p-b291a1e6.js.map +0 -1
- package/dist/solutions-components/vendor/instant-apps-components/p-b355f972.entry.js +0 -2
- package/dist/solutions-components/vendor/instant-apps-components/p-b9eed273.entry.js +0 -2
- package/dist/solutions-components/vendor/instant-apps-components/p-c5932580.js +0 -2
- package/dist/solutions-components/vendor/instant-apps-components/p-c77b3b1b.js +0 -2
- package/dist/solutions-components/vendor/instant-apps-components/p-cd7eea90.entry.js +0 -2
- package/dist/solutions-components/vendor/instant-apps-components/p-cfc94a85.entry.js +0 -2
- package/dist/solutions-components/vendor/instant-apps-components/p-cfc94a85.entry.js.map +0 -1
- package/dist/solutions-components/vendor/instant-apps-components/p-ef8e7a97.entry.js +0 -2
- package/dist/solutions-components/vendor/instant-apps-components/p-f146c213.js +0 -2
- package/dist/solutions-components/vendor/instant-apps-components/p-fa2be703.entry.js +0 -2
- package/dist/solutions-components/vendor/instant-apps-components/p-fa2be703.entry.js.map +0 -1
- package/dist/solutions-components/vendor/instant-apps-components/p-fcbd42f5.entry.js +0 -2
- package/dist/solutions-components/vendor/instant-apps-components/p-fedaae5b.entry.js +0 -2
- /package/dist/cjs/{locale-81070bd9.js → locale-809dbc6e.js} +0 -0
- /package/dist/cjs/{typeof-920a4426.js → typeof-2a7e2dec.js} +0 -0
- /package/dist/collection/vendor/instant-apps-components/{p-c5932580.js.map → p-005a2711.js.map} +0 -0
- /package/dist/collection/vendor/instant-apps-components/{p-b355f972.entry.js.map → p-032bc629.entry.js.map} +0 -0
- /package/dist/collection/vendor/instant-apps-components/{p-4ad06857.entry.js.map → p-050b8c6e.entry.js.map} +0 -0
- /package/dist/collection/vendor/instant-apps-components/{p-946ed90b.entry.js.map → p-0e4ff0a9.entry.js.map} +0 -0
- /package/dist/collection/vendor/instant-apps-components/{p-491aed47.entry.js.map → p-2162260c.entry.js.map} +0 -0
- /package/dist/collection/vendor/instant-apps-components/{p-9f85433e.entry.js.map → p-2e588fed.entry.js.map} +0 -0
- /package/dist/collection/vendor/instant-apps-components/{p-c77b3b1b.js.map → p-40992282.js.map} +0 -0
- /package/dist/collection/vendor/instant-apps-components/{p-f146c213.js.map → p-45a300a8.js.map} +0 -0
- /package/dist/collection/vendor/instant-apps-components/{p-3ce7e35f.entry.js.map → p-5d5a1e7d.entry.js.map} +0 -0
- /package/dist/collection/vendor/instant-apps-components/{p-5f6af6b4.entry.js.map → p-5d67f7d1.entry.js.map} +0 -0
- /package/dist/collection/vendor/instant-apps-components/{p-ef8e7a97.entry.js.map → p-625b0358.entry.js.map} +0 -0
- /package/dist/collection/vendor/instant-apps-components/{p-a72c317d.entry.js.map → p-6ab370d8.entry.js.map} +0 -0
- /package/dist/collection/vendor/instant-apps-components/{p-6c1383dc.entry.js.map → p-75b6ba72.entry.js.map} +0 -0
- /package/dist/collection/vendor/instant-apps-components/{p-0b1b0a5a.entry.js.map → p-82b50b9d.entry.js.map} +0 -0
- /package/dist/collection/vendor/instant-apps-components/{p-525c0e1c.entry.js.map → p-85727adc.entry.js.map} +0 -0
- /package/dist/collection/vendor/instant-apps-components/{p-b9eed273.entry.js.map → p-88c9829f.entry.js.map} +0 -0
- /package/dist/collection/vendor/instant-apps-components/{p-a271203d.entry.js.map → p-9ef92300.entry.js.map} +0 -0
- /package/dist/collection/vendor/instant-apps-components/{p-fcbd42f5.entry.js.map → p-af343e04.entry.js.map} +0 -0
- /package/dist/collection/vendor/instant-apps-components/{p-6e858759.entry.js.map → p-b8c8fb6f.entry.js.map} +0 -0
- /package/dist/collection/vendor/instant-apps-components/{p-ac95a4be.entry.js.map → p-bbc047f2.entry.js.map} +0 -0
- /package/dist/collection/vendor/instant-apps-components/{p-cd7eea90.entry.js.map → p-c0385dc5.entry.js.map} +0 -0
- /package/dist/collection/vendor/instant-apps-components/{p-fedaae5b.entry.js.map → p-cda36aea.entry.js.map} +0 -0
- /package/dist/esm/{locale-4be8e04f.js → locale-fa8258bf.js} +0 -0
- /package/dist/esm/{typeof-2511410e.js → typeof-ef2a007d.js} +0 -0
- /package/dist/solutions-components/{p-af7e43e0.js → p-4fe489cf.js} +0 -0
- /package/dist/solutions-components/{p-8a74a780.js → p-57be3b9d.js} +0 -0
- /package/dist/solutions-components/vendor/instant-apps-components/{p-c5932580.js.map → p-005a2711.js.map} +0 -0
- /package/dist/solutions-components/vendor/instant-apps-components/{p-b355f972.entry.js.map → p-032bc629.entry.js.map} +0 -0
- /package/dist/solutions-components/vendor/instant-apps-components/{p-4ad06857.entry.js.map → p-050b8c6e.entry.js.map} +0 -0
- /package/dist/solutions-components/vendor/instant-apps-components/{p-946ed90b.entry.js.map → p-0e4ff0a9.entry.js.map} +0 -0
- /package/dist/solutions-components/vendor/instant-apps-components/{p-491aed47.entry.js.map → p-2162260c.entry.js.map} +0 -0
- /package/dist/solutions-components/vendor/instant-apps-components/{p-9f85433e.entry.js.map → p-2e588fed.entry.js.map} +0 -0
- /package/dist/solutions-components/vendor/instant-apps-components/{p-c77b3b1b.js.map → p-40992282.js.map} +0 -0
- /package/dist/solutions-components/vendor/instant-apps-components/{p-f146c213.js.map → p-45a300a8.js.map} +0 -0
- /package/dist/solutions-components/vendor/instant-apps-components/{p-3ce7e35f.entry.js.map → p-5d5a1e7d.entry.js.map} +0 -0
- /package/dist/solutions-components/vendor/instant-apps-components/{p-5f6af6b4.entry.js.map → p-5d67f7d1.entry.js.map} +0 -0
- /package/dist/solutions-components/vendor/instant-apps-components/{p-ef8e7a97.entry.js.map → p-625b0358.entry.js.map} +0 -0
- /package/dist/solutions-components/vendor/instant-apps-components/{p-a72c317d.entry.js.map → p-6ab370d8.entry.js.map} +0 -0
- /package/dist/solutions-components/vendor/instant-apps-components/{p-6c1383dc.entry.js.map → p-75b6ba72.entry.js.map} +0 -0
- /package/dist/solutions-components/vendor/instant-apps-components/{p-0b1b0a5a.entry.js.map → p-82b50b9d.entry.js.map} +0 -0
- /package/dist/solutions-components/vendor/instant-apps-components/{p-525c0e1c.entry.js.map → p-85727adc.entry.js.map} +0 -0
- /package/dist/solutions-components/vendor/instant-apps-components/{p-b9eed273.entry.js.map → p-88c9829f.entry.js.map} +0 -0
- /package/dist/solutions-components/vendor/instant-apps-components/{p-a271203d.entry.js.map → p-9ef92300.entry.js.map} +0 -0
- /package/dist/solutions-components/vendor/instant-apps-components/{p-fcbd42f5.entry.js.map → p-af343e04.entry.js.map} +0 -0
- /package/dist/solutions-components/vendor/instant-apps-components/{p-6e858759.entry.js.map → p-b8c8fb6f.entry.js.map} +0 -0
- /package/dist/solutions-components/vendor/instant-apps-components/{p-ac95a4be.entry.js.map → p-bbc047f2.entry.js.map} +0 -0
- /package/dist/solutions-components/vendor/instant-apps-components/{p-cd7eea90.entry.js.map → p-c0385dc5.entry.js.map} +0 -0
- /package/dist/solutions-components/vendor/instant-apps-components/{p-fedaae5b.entry.js.map → p-cda36aea.entry.js.map} +0 -0
@@ -0,0 +1,2 @@
|
|
1
|
+
import{r as t,h as n,g as e}from"./p-6517b6d4.js";import{g as i}from"./p-45a300a8.js";import"./p-5978fda4.js";import"./p-50b205e8.js";const a=":host{display:block}.instant-apps-popover__content{display:flex;flex-direction:column;padding:0 5% 5% 5%;max-width:35vw;font-family:var(--calcite-sans-family);font-size:0.875rem}.instant-apps-popover__content .instant-apps-popover__action{align-self:flex-start;--calcite-color-foreground-2:transparent}.instant-apps-popover__content span{display:inline-block;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1);margin:0 0 10px 0;font-family:var(--calcite-sans-family)}.instant-apps-popover__content p{line-height:19.12px;margin:0;margin-bottom:10px;font-family:var(--calcite-sans-family)}.instant-apps-popover__content .instant-apps-popover__footer{display:flex;flex-direction:row;align-items:center;justify-content:space-between}.instant-apps-popover__content .instant-apps-popover__footer span{margin-bottom:0;font-weight:normal;font-size:0.875rem;font-family:var(--calcite-sans-family)}.instant-apps-popover__content .instant-apps-popover__footer calcite-button:first-child{--calcite-color-foreground-3:transparent}.instant-apps-popover__content .instant-apps-popover__footer calcite-button:last-child{margin-left:5px}.instant-apps-popover__content .instant-apps-popover__img{width:100%;margin-bottom:10px}.instant-apps-popover__content.instant-apps-popover--action-disabled{padding:5%}.instant-apps-popover__content.instant-apps-popover--action-disabled #subtitle{margin:0 0 10px 0}";const s=a;const o={content:"instant-apps-popover__content",buttonContainer:"instant-apps-popover__button-container",action:"instant-apps-popover__action",actionDisabled:"instant-apps-popover--action-disabled",img:"instant-apps-popover__img",footer:"instant-apps-popover__footer"};const p=class{constructor(n){t(this,n);this.popoverTitle="";this.subtitle="";this.content="";this.imgSrc=undefined;this.imgAlt=undefined;this.mediaSrc=undefined;this.index=undefined;this.referenceElement=undefined;this.parent=undefined;this.placement="trailing-start";this.refId=undefined;this.pagination=false;this.disableAction=false;this.popoverAction=undefined;this.messages=undefined;this.messageOverrides=undefined}async componentDidLoad(){i(this,this.messageOverrides)}componentDidUpdate(){this.popoverEl.referenceElement=this.referenceElement}render(){return n("calcite-popover",{key:"4fb1947ad0b4cf992056a650295cc9bfb014789b",ref:t=>{if(t){this.popoverEl=t}},heading:this.popoverTitle,"auto-close":true,placement:this.placement,messageOverrides:{close:this.messages?.close},"trigger-disabled":true,"ref-id":this.refId,closable:true,referenceElement:this.referenceElement,label:this.popoverTitle},n("div",{key:"0db87d9d5b9ba92de5623b5538d0536cdf6a6efa",class:`${o.content}${this.disableAction?` ${o.actionDisabled}`:""}`},!this.disableAction?n("calcite-action",{key:"popover-action",class:o.action,onClick:this.popoverAction,icon:document.dir==="rtl"?"chevron-right":"chevron-left",compact:true,"text-enabled":true,text:this.messageOverrides?.popoverAction??this.messages?.back??""}):null,n("section",{key:"aa56a41d1eee02e8658998a7dd5139d051277595"},n("span",{key:"1931249c844420af83f86af01b1b433bdf38ced0",id:"subtitle"},this.subtitle),n("p",{key:"b1ac04a3a69a00a4fcea0998e8a826969d986773"},this.content),this.imgSrc?n("img",{key:`iac-popover-img-${this.refId}`,class:o.img,src:this.imgSrc,alt:this.imgAlt?this.imgAlt:""}):null),this.pagination?n("div",{key:`iac-popover-footer-${this.index}`,class:o.footer},n("span",null,this.index+1," ",this.messages?.of," ",this.parent?.instantAppsPopovers?.size),this.renderPagination()):null))}renderPagination(){const{index:t,messages:e,parent:i}=this;const a=this.parent?.instantAppsPopovers?.size;const s=t===0;const p=t===a-1;return n("div",{key:"pagination-button-container",class:o.buttonContainer},!s?n("calcite-button",{key:"prev",onClick:()=>i?.previous(),appearance:"outline",kind:"neutral"},e?.back):null,n("calcite-button",{key:"next",onClick:()=>{if(p){i?.done()}else{i?.next()}}},p?e?.done:e?.next))}get el(){return e(this)}};p.style=s;export{p as instant_apps_popover};
|
2
|
+
//# sourceMappingURL=p-5d5a1e7d.entry.js.map
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{r as n,h as t,g as i,H as s}from"./p-6517b6d4.js";import{g as a}from"./p-45a300a8.js";import{D as e,b as o,E as r}from"./p-50b205e8.js";import"./p-5978fda4.js";const c=':host{--instant-apps-sign-in-indicator-color:#007ac2;display:block;box-shadow:none !important}:host .instant-apps-sign-in__container{height:inherit;display:flex;align-items:center}:host .instant-apps-sign-in__container calcite-dropdown,:host .instant-apps-sign-in__container calcite-navigation-user{height:100%}:host .instant-apps-sign-in__container calcite-navigation-user{--calcite-color-foreground-2:rgba(0, 0, 0, 0.04);--calcite-color-foreground-3:rgba(0, 0, 0, 0.04)}:host .instant-apps-sign-in__container .instant-apps-sign-in__indicator::after{content:"";position:absolute;block-size:0.5rem;inline-size:0.5rem;border-radius:9999px;inset-block-end:-0.275rem;inset-inline-end:-0.275rem;background-color:var(--instant-apps-sign-in-indicator-color);bottom:calc(50% - 15px);right:calc(50% - 15px)}:host .instant-apps-sign-in__container .instant-apps-sign-in__sign-in-btn{margin:10px}:host .instant-apps-sign-in__container calcite-dropdown[scale=m] calcite-dropdown-group{min-width:140px}:host .instant-apps-sign-in__container calcite-dropdown[scale=s] calcite-dropdown-group{min-width:100px}:host .instant-apps-sign-in__container button{height:32px;width:32px;padding:0;box-sizing:border-box;display:flex;cursor:pointer;-webkit-user-select:none;user-select:none;appearance:none;-moz-appearance:none;-webkit-appearance:none;text-decoration-line:none;transition:color var(--calcite-animation-timing) ease-in-out, background-color var(--calcite-animation-timing) ease-in-out, box-shadow var(--calcite-animation-timing) ease-in-out, outline-color var(--calcite-internal-animation-timing-fast) ease-in-out;border:none;border-radius:50%;background:#000}:host .instant-apps-sign-in__container button:hover calcite-avatar{opacity:0.7;transition:0.3s}:host .instant-apps-sign-in__landing-page{display:flex;flex-direction:column;justify-content:center;padding:40px;width:50%;min-height:30%;background:rgba(255, 255, 255, 0.8);color:#151515;text-align:center}:host .instant-apps-sign-in__landing-page h1{font-size:22px;margin:10px 0}:host .instant-apps-sign-in__landing-page h2{font-size:16px;margin:0 0 10px}:host .instant-apps-sign-in__landing-page p{font-size:16px;margin:0}:host .instant-apps-sign-in__entry-button-container{display:flex;justify-content:center;gap:8px}:host .instant-apps-sign-in__entry-button{--calcite-color-brand:var(--instant-apps-landing-page-entry-button-color);--calcite-color-brand-hover:var(--instant-apps-landing-page-entry-button-color);--calcite-color-brand-press:var(--instant-apps-landing-page-entry-button-color);min-width:165px}:host .instant-apps-sign-in__entry-button[appearance=solid]{border:1px solid #fff}:host .instant-apps-sign-in__entry-button[appearance=solid]:hover,:host .instant-apps-sign-in__entry-button[appearance=solid]:focus{filter:brightness(0.9)}@media screen and (max-width: 767px){:host{flex-direction:column;align-items:center}:host calcite-button{width:100%}:host .instant-apps-sign-in__entry-button-container{display:flex;flex-direction:column}}';const p=c;const l={base:"instant-apps-sign-in__container",SignInBtn:"instant-apps-sign-in__sign-in-btn",buttonContainer:"instant-apps-sign-in__entry-button-container",entryButton:"instant-apps-sign-in__entry-button",indicator:"instant-apps-sign-in__indicator"};const h=class{constructor(t){n(this,t);this.type="navigation";this.portal=undefined;this.oauthappid=undefined;this.openInPopup=false;this.landingPage=false;this.showIndicator=true;this.closeLandingPage=undefined;this.signInDropdownItems=undefined;this.ready=false;this.isSignedIn=false;this.user=undefined;this.messages=undefined}async watchPortal(){await this.initSignIn()}async watchOauthappid(){await this.initSignIn()}async componentWillLoad(){void a(this);await this.initSignIn()}render(){const n=this.ready?this.renderContent():null;return t(s,{key:"9b55739609308095864d9942883433cbe73f391c"},n)}renderContent(){return this.type==="landingPage"?this.renderLandingPageSignIn():this.renderSignInContainer()}renderSignInContainer(){return t("div",{class:l.base},this.isSignedIn?this.renderSignInDropdown():this.renderSignInButton())}renderSignInDropdown(){const n=this.type==="navigation"?"m":"s";const i=this.showIndicator?l.indicator:"";const s=this.user?.id??this.user?.sourceJSON?.id;return t("calcite-dropdown",{placement:"bottom-end",scale:n},this.type==="navigation"?t("calcite-navigation-user",{class:i,slot:"trigger",thumbnail:this.user?.thumbnailUrl??"","full-name":this.user?.fullName,username:this.user?.username,"user-id":s,textDisabled:true}):t("button",{slot:"trigger"},t("calcite-avatar",{class:i,thumbnail:this.user?.thumbnailUrl??"","full-name":this.user?.fullName,username:this.user?.username,"user-id":s})),t("slot",{name:"sign-in-dropdown-top"}),t("calcite-dropdown-group",{"selection-mode":"none"},this.signInDropdownItems?.map((n=>t("calcite-dropdown-item",{onClick:n.onClick},n.label))),t("calcite-dropdown-item",{onClick:this.signOut.bind(this)},this.messages?.signOut)))}renderSignInButton(){const n=this.type==="navigation"?"transparent":"solid";const i=this.type==="navigation"?l.SignInBtn:"";return t("calcite-button",{class:i,onClick:this.signIn.bind(this),scale:"s","icon-start":"sign-in",appearance:n},this.messages?.signIn)}renderLandingPageSignIn(){return t("div",{class:l.buttonContainer},t("calcite-button",{class:l.entryButton,scale:"l",onClick:this.landingPageSignIn.bind(this)},this.messages?.signIn),t("calcite-button",{class:l.entryButton,scale:"l",appearance:"outline-fill",onClick:this.guestOnClick.bind(this)},this.messages?.continueAsGuest))}async initSignIn(){if(this.portal==null||this.oauthappid==null){return}const[n,t]=await Promise.all([e(),o()]);this.idManager=n;this.info=await r({appId:this.oauthappid,portalUrl:this.portal.url,flowType:"authorization-code",popup:this.openInPopup});this.idManager.registerOAuthInfos([this.info]);this.isSignedIn=await this.checkSignInStatus();this.ready=true;if(this.isSignedIn){await t.whenOnce((()=>this.portal.user));if(this.portal.user){this.user=this.portal.user}}}async signIn(){this.setSignInLocalStorage();await this.idManager.getCredential(`${this.info.portalUrl}/sharing`,{oAuthPopupConfirmation:false});await this.checkSignInStatus()}signOut(){this.portal.credential?.destroy();this.idManager.destroyCredentials();this.portal.authMode="anonymous";this.portal.credential=null;const n=window.location.href;this.setSignInLocalStorage();window.location.href=`${this.portal.restUrl}/oauth2/signout?client_id=${this.oauthappid}&redirect_uri=${n}`}async landingPageSignIn(){await this.signIn();if(this.closeLandingPage!=null){this.closeLandingPage()}}guestOnClick(){if(this.isSignedIn){this.signOut()}else if(this.closeLandingPage!=null){this.closeLandingPage()}}async checkSignInStatus(){try{const n=await this.idManager.checkSignInStatus(`${this.info.portalUrl}/sharing`);this.portal.credential=n;return true}catch{this.portal.credential=null;return false}}setSignInLocalStorage(){const n=new Date;const t=2e3;localStorage.setItem("signing-in",n.getTime().toString());setTimeout((()=>{localStorage.removeItem("signing-in")}),t)}get el(){return i(this)}static get watchers(){return{portal:["watchPortal"],oauthappid:["watchOauthappid"]}}};h.style=p;export{h as instant_apps_sign_in};
|
2
|
+
//# sourceMappingURL=p-5d67f7d1.entry.js.map
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{r as t,h as a,H as e,g as i}from"./p-6517b6d4.js";import{g as n}from"./p-45a300a8.js";import{a as r}from"./p-50b205e8.js";import{g as s}from"./p-a1e8ffff.js";import"./p-5978fda4.js";const o={"instant-apps":{path:"M11.206 4.805v-1.38a2.231 2.231 0 0 1 2.23-2.231h13.168a2.231 2.231 0 0 1 2.231 2.23v11.15a2.231 2.231 0 0 1-2.23 2.231h-1.398V5.555a.75.75 0 0 0-.75-.75zM30.94 27.204l-5.447-4.41a.211.211 0 0 0-.344.164v2.225H8.197a1.344 1.344 0 0 1-1.344-1.344V11.665a.75.75 0 0 1 .75-.75h9.872a.75.75 0 0 1 .75.75l-.003 7.534a2.422 2.422 0 0 1-.798 1.796l-.945.855h4.3a1.075 1.075 0 0 0 1.074-1.075v-10.54a2.231 2.231 0 0 0-2.23-2.23H5.354a2.148 2.148 0 0 0-2.13 2.23v16.507a2.231 2.231 0 0 0 2.23 2.231l19.695-.003v2.725a.211.211 0 0 0 .344.164l5.447-4.41a.158.158 0 0 0 0-.245z",fill:"#83a238"},"map-viewer":{path:"M21.647 13.706A1.647 1.647 0 1 1 20 15.353a1.647 1.647 0 0 1 1.647-1.647zM19 19.083A1.917 1.917 0 1 1 17.082 21 1.917 1.917 0 0 1 19 19.082zm7.684 3.393a2.433 2.433 0 0 1-.64 1.776l-.01.012c-1.045 1.134-3.215 1.8-5.738 1.8-3.815 0-5.054-1.485-8.586-1.828a6.765 6.765 0 0 1 .566-4.07c.98-1.674 2.445-1.568 3.41-2.724.967-1.157.033-3.384 1.397-4.748 1.539-1.538 3.44-.12 4.57-2.542.877-1.884 1.84-2.98 3.68-3.35a.39.39 0 0 1 .047.07c.132.695 1.097 11.68 1.304 15.604zM6.208 8.864A3.054 3.054 0 0 1 8.115 6.17s2.425-.88 3.09-1.029a2.637 2.637 0 0 1 .314-.01 4.967 4.967 0 0 1 1.157.157l.404.095a7.26 7.26 0 0 0-.238 3.294c.188 1.354.657 2.399-.066 4.361-1.003 2.721-2.901 2.585-3.857 4.562-1.285 2.657.21 6.226-2.182 6.835l.004.002.003.003c-.801.114-1.363.22-1.663.272zm21.549-5.09a.055.055 0 0 0-.022-.037.058.058 0 0 0-.037-.01l-7.37 1.025-8.771-2.742a.227.227 0 0 0-.162.01L3.594 5.566a.054.054 0 0 0-.032.045L1.58 29a41.592 41.592 0 0 1 9.115-1.285c2.765.094 6.646 2.287 10.29 2.177 3.51-.108 8.582-2.382 9.564-2.836a.054.054 0 0 0 .03-.056z",fill:"#3DB8FF"},"story-maps":{path:"M25.5 0C23.015 0 21 .953 21 3.433v8.517a1.467 1.467 0 0 0 .43 1.038l3.837 3.827a.33.33 0 0 0 .466 0l3.836-3.827A1.467 1.467 0 0 0 30 11.95V3.433C30 .953 27.985 0 25.5 0zm0 8.1a2.6 2.6 0 1 1 2.6-2.599A2.599 2.599 0 0 1 25.5 8.1zm-7.856.453c.294-.153.312-.457.312-.788v-2.31a.104.104 0 0 0-.129-.1 6.128 6.128 0 0 0-2.248 1.19.14.14 0 0 1-.167.008c-3.437-2.283-8.543-1.52-12.131-.988-.432.064-1.762.34-2.164.424A.146.146 0 0 0 1 6.133V26.69a.147.147 0 0 0 .05.11.134.134 0 0 0 .116.035A36.394 36.394 0 0 1 9.5 25.781c3.283.054 4.403.96 4.967 1.513l.915.897a.164.164 0 0 0 .23 0l.916-.897a5.98 5.98 0 0 1 3.972-1.47 25.341 25.341 0 0 1 5.715.516c.718.109 1.46.22 2.186.312l1.251.16a.308.308 0 0 0 .348-.305v-7.375a.161.161 0 0 0-.303-.077l-.107.2a7.218 7.218 0 0 1-6.902 3.766 10.455 10.455 0 0 0-5.688.796V9.454a.89.89 0 0 1 .332-.693 2.058 2.058 0 0 1 .312-.208zM14 23.817c-3.071-1.38-5.998-.808-9.447-.293l-.253.036a.263.263 0 0 1-.3-.259V8.525a.098.098 0 0 1 .084-.097l.804-.115c2.518-.372 6.303-1.048 8.708.515a.89.89 0 0 1 .404.746z",fill:"#4fbaa9"},dashboards:{path:"M25.819 28H23.18a.181.181 0 0 1-.181-.181V13.18a.181.181 0 0 1 .181-.181h2.638a.181.181 0 0 1 .181.181V27.82a.181.181 0 0 1-.181.181zM21 27.816v-9.631a.184.184 0 0 0-.184-.185h-2.631a.184.184 0 0 0-.185.184v9.631a.184.184 0 0 0 .184.185h2.631a.184.184 0 0 0 .185-.184zm9.82.184a.18.18 0 0 0 .18-.18v-7.64a.18.18 0 0 0-.18-.18h-2.64a.18.18 0 0 0-.18.18v7.64a.18.18 0 0 0 .18.18zM7 9.267v10.475c.706.033 3.538-1.718 4.274-4.7.679-2.751 3.485-2.864 4.443-2.94 1.766-.14 3.588-.607 4.566-2.798A.216.216 0 0 0 20.085 9H7.267A.267.267 0 0 0 7 9.267zm18.997-1.053A4.411 4.411 0 0 0 21.63 4H2.684A.684.684 0 0 0 2 4.684V21.81A3.19 3.19 0 0 0 5.19 25h9.565a.245.245 0 0 0 .245-.245v-2.362a.393.393 0 0 0-.393-.393H6.38A1.385 1.385 0 0 1 5 20.619V7.349A.348.348 0 0 1 5.348 7h16.324A1.346 1.346 0 0 1 23 8.363v1.28a.357.357 0 0 0 .357.357h2.599a.046.046 0 0 0 .046-.046z",fill:"#ee9e01"},"experience-builder":{path:"M30.85 12.82l-2.85 5v7.44A1.78 1.78 0 0 1 26.22 27H25V7.75a.76.76 0 0 0-.75-.75H12V1.31a.28.28 0 0 1 .42-.25L17.51 4h8.71A1.78 1.78 0 0 1 28 5.78v4.42l2.54 1.47a.83.83 0 0 1 .31 1.15zM12 18h8v-6h-8zm7.62 5H7.75a.76.76 0 0 1-.75-.75V4H5.78A1.78 1.78 0 0 0 4 5.78V13l-2.89 5a.85.85 0 0 0 .31 1.15L4 20.59v4.61A1.78 1.78 0 0 0 5.78 27h8.62l5.18 3a.28.28 0 0 0 .42-.24v-6.39a.38.38 0 0 0-.38-.37z",fill:"#09b8ca"},geoBIM:{path:"M17.802 21.398l6.2 2.557-5.14 2.133a.772.772 0 0 1-1.06-.717zM9.311 7.868a.604.604 0 0 1-.003-1.122L16 4.169l8.12 3.148-8.119 3.184zm-3.5 1.541l8.387 3.413v12.554a.772.772 0 0 1-1.06.717l-6.297-2.736a1.639 1.639 0 0 1-1.03-1.521zM3.844 6.03a1.316 1.316 0 0 0-.827 1.22v17.395a1.316 1.316 0 0 0 .827 1.221L16 30.888l12.983-5.317v-2.423l-7.156-3.023 7.156-2.963v-1.95l-5.101-2.2-3.867 1.516L24 16.123l-6.199 2.505v-5.711l.073-.122 11.108-4.487v-1.95l-12.47-5.047a1.384 1.384 0 0 0-1.027 0z",fill:"#11ad1d"},notebooks:{path:"M2.941 25A.906.906 0 0 1 2 24.135v-.271A.906.906 0 0 1 2.941 23h3.118a.906.906 0 0 1 .941.864v.271a.906.906 0 0 1-.941.865zm3.118-8A.906.906 0 0 0 7 16.135v-.271A.906.906 0 0 0 6.059 15H2.941a.906.906 0 0 0-.941.864v.271a.906.906 0 0 0 .941.865zm0-8A.906.906 0 0 0 7 8.135v-.271A.906.906 0 0 0 6.059 7H2.941A.906.906 0 0 0 2 7.864v.271A.906.906 0 0 0 2.941 9zm9.44 16h-3.726a.773.773 0 0 1-.773-.774V6.171A.172.172 0 0 1 11.172 6H15.5a.5.5 0 0 0 .5-.5v-2a.5.5 0 0 0-.5-.5H5.342A1.345 1.345 0 0 0 4 4.343V5h2.059A2.904 2.904 0 0 1 9 7.858v.277A2.907 2.907 0 0 1 6.059 11H4v2h2.059A2.907 2.907 0 0 1 9 15.864v.271A2.907 2.907 0 0 1 6.059 19H4v2h2.059A2.907 2.907 0 0 1 9 23.864v.271A2.907 2.907 0 0 1 6.059 27H4v1.405a.595.595 0 0 0 .595.595H15.5a.5.5 0 0 0 .5-.5v-3a.5.5 0 0 0-.5-.5zM20 3.5v2a.5.5 0 0 0 .5.5h4a.5.5 0 0 1 .5.5v18a.5.5 0 0 1-.5.5h-4a.5.5 0 0 0-.5.5v3a.5.5 0 0 0 .5.5h8a.5.5 0 0 0 .5-.5v-25a.5.5 0 0 0-.5-.5h-8a.5.5 0 0 0-.499.5z",fill:"#6e6e6e"},sites:{path:"M2.656 29A.656.656 0 0 1 2 28.344V6.185A3.189 3.189 0 0 1 5.185 3H29.72a.281.281 0 0 1 .281.281v22.53A3.194 3.194 0 0 1 26.81 29zm2.838-3h21.211a.295.295 0 0 0 .296-.295V13.494a.493.493 0 0 0-.493-.494H5v12.506a.494.494 0 0 0 .494.494zM23 9.91a.09.09 0 0 0 .09.09h3.82a.09.09 0 0 0 .09-.09V6.026A.026.026 0 0 0 26.974 6h-3.948a.026.026 0 0 0-.026.026zM6.633 6A1.597 1.597 0 0 0 5 7.595V10h14.523A.477.477 0 0 0 20 9.523V6.477A.477.477 0 0 0 19.523 6zM16 22v-5h7v5zm-7-2v-3h3v3z",fill:"#7842ed"},webAppBuilder:{path:"M15.044 19.974a.188.188 0 0 1-.192-.001l-3.762-2.35a.188.188 0 0 1-.09-.16v-4.098a.188.188 0 0 1 .096-.163l3.761-2.178a.188.188 0 0 1 .182-.001l3.863 2.179a.188.188 0 0 1 .098.165v4.095a.187.187 0 0 1-.092.161zm15.13-1.04a.052.052 0 0 0 .099.022 8.048 8.048 0 0 0 .67-3.147 7.155 7.155 0 0 0-3.507-6.213L17.59 3.768a4.054 4.054 0 0 0-1.968-.627 3.95 3.95 0 0 0-1.894.485c-.607.334-1.132.67-1.278.754a2.951 2.951 0 0 0-1.39 2.506v1.078a.2.2 0 0 0 .307.167l1.365-.87a4.988 4.988 0 0 1 2.319-.792 4.62 4.62 0 0 1 2.219.792s8.442 5.017 9.392 5.576a7.045 7.045 0 0 1 3.513 6.084zM9.546 23.55l.947-.547a.2.2 0 0 0 0-.345l-1.369-.79a4.326 4.326 0 0 1-2.13-3.842V7.286a7.16 7.16 0 0 1 3.63-6.083l.081-.05a.025.025 0 0 0-.012-.045l-.25-.005a8.333 8.333 0 0 0-3.887.994A7.102 7.102 0 0 0 3.069 8.31v10.786a3.96 3.96 0 0 0 1.89 3.362c.894.545 1.605.974 1.81 1.092a2.787 2.787 0 0 0 2.777 0zm4.383 6.37l9.997-5.773a3.959 3.959 0 0 0 1.967-3.32c.021-.929.034-1.604.034-1.806a2.786 2.786 0 0 0-1.39-2.406l-1.123-.57a.2.2 0 0 0-.289.177v1.604a4.45 4.45 0 0 1-2.218 3.842l-3.708 2.14a3.366 3.366 0 0 1-.256.135L11.6 27.128a6.427 6.427 0 0 1-3.343.938 7.137 7.137 0 0 1-3.513-1.038c-.09-.052-.38-.226-.797-.479a.094.094 0 0 0-.134.12 7.182 7.182 0 0 0 2.942 3.25 7.241 7.241 0 0 0 3.587 1.028 7.243 7.243 0 0 0 3.587-1.028z",fill:"#09b8ca"},urban:{path:"M32 14l-4 .003a1 1 0 0 0-1 1V21a1 1 0 0 1-1 1h-2V5.451l-7.598-3.335A1 1 0 0 0 15 3.03V25a1 1 0 0 1-1 1h-2V11.24h-.02L7.5 9l-4.48 2.24H3V20H0v4h5a1 1 0 0 0 1-1V12.717L7.5 12l1.5.717V28a2 2 0 0 0 2 2h5a2 2 0 0 0 2-2V6.094l3 1.317V24a2 2 0 0 0 2 2h5.02A1.977 1.977 0 0 0 30 24.024V17h2z",fill:"#3DB8FF"}};const c=new Map;Object.keys(o).forEach((t=>{c.set(t,`<svg viewBox="0 0 32 32" width="32" height="32" fill="${o[t].fill}"><path d="${o[t].path}"/></svg>`)}));function p(t){return c.get(t)||""}const l=":host{display:block;--instant-apps-create-action-background:var(--calcite-color-foreground-1);--instant-apps-create-action-background-hover:var(--calcite-color-foreground-2);--instant-apps-create-action-background-press:var(--calcite-color-foreground-3);--instant-apps-create-action-height:100%;--instant-apps-create-action-width:fit-content;--instant-apps-create-action-icon-color:var(--calcite-color-text-3);--instant-apps-create-action-icon-hover-color:var(--calcite-color-text-1);--instant-apps-create-background:var(--calcite-color-foreground-1);--instant-apps-create-text-color:var(--calcite-color-text-1);--instant-apps-create-popover-width:450px}.instant-apps-create{height:100%}.instant-apps-create *{box-sizing:border-box}.instant-apps-create__popover-container,.instant-apps-create__inline-container{padding:1rem 1.5rem;background:var(--instant-apps-create-background);--calcite-color-text-1:var(--instant-apps-create-text-color)}.instant-apps-create__popover-container{width:var(--instant-apps-create-popover-width)}.instant-apps-create calcite-popover{--calcite-color-foreground-1:var(--instant-apps-create-background)}.instant-apps-create calcite-button:last-of-type{margin-top:0.5rem}.instant-apps-create__header h3{margin:0;font-weight:var(--calcite-font-weight-medium)}.instant-apps-create__header p{margin:0;padding:0 0 0.5rem 0;font-weight:var(--calcite-font-weight-normal)}.instant-apps-create__options{display:flex;justify-content:space-between;align-items:center;flex-direction:column}.instant-apps-create__option{display:flex;color:inherit;text-decoration:inherit;height:fit-content;margin-bottom:0.5rem;cursor:pointer;--calcite-color-text-link:var(--calcite-color-text-1);align-items:stretch;--tw-shadow:0 0 #0000;--tw-shadow-colored:0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-ring-shadow, 0 0 rgba(0, 0, 0, 0)), var(--tw-shadow);outline-offset:0;outline-color:transparent;transition:outline-offset 100ms ease-in-out, outline-color 100ms ease-in-out}.instant-apps-create__option:first-of-type{margin-top:0.5rem}.instant-apps-create__option:last-of-type{margin-bottom:0}.instant-apps-create__option:hover{outline:1px solid var(--calcite-color-border-1);outline-offset:2px}.instant-apps-create__option-icon{display:flex;background:var(--calcite-color-foreground-2);color:var(--calcite-color-text-1);font-size:1.25rem;background-color:var(--calcite-color-background);justify-content:center;align-items:center;flex:1 1 auto;max-width:5rem;min-width:5rem;height:auto}.instant-apps-create__option-icon svg{display:block;overflow-clip-margin:content-box;overflow:hidden}.instant-apps-create__option-text{min-height:2rem;font-size:0.75rem;color:var(--calcite-color-text-2);padding:0.75rem 0 0 0.75rem}.instant-apps-create__option-text-wrapper{display:flex;align-items:center}.instant-apps-create__option-text h3{margin:0;font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium)}.instant-apps-create__option-text calcite-icon{margin-left:0.25rem;color:rgb(126, 126, 126);--tw-translate-x:0px;--tw-translate-y:0;--tw-rotate:0;--tw-skew-x:0;--tw-skew-y:0;--tw-scale-x:1;--tw-scale-y:1;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));opacity:0;transition-property:all;transition-duration:150ms;transition-timing-function:ease-in-out;transition-delay:0s}a:hover .instant-apps-create__option-text calcite-icon{opacity:1;--tw-translate-x:0.5rem;transform:translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.instant-apps-create__option-text p{margin:0;font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-3);line-height:1.35;min-height:3rem}";const h=l;const d={baseDark:"instant-apps-create calcite-mode-dark",baseLight:"instant-apps-create calcite-mode-light",inlineContainer:"instant-apps-create__inline-container",popoverContainer:"instant-apps-create__popover-container",hidden:"instant-apps-create__visually-hidden",header:"instant-apps-create__header",options:"instant-apps-create__options",option:"instant-apps-create__option",optionIcon:"instant-apps-create__option-icon",optionText:"instant-apps-create__option-text",optionTextWrapper:"instant-apps-create__option-text-wrapper",optionTitle:"instant-apps-create__option-title",optionSubtitle:"instant-apps-create__option-subtitle",optionLink:"instant-apps-create__option-link"};const v=class{constructor(a){t(this,a);this.popoverIcon="grid";this.mode="inline";this.popoverPositioning="absolute";this.popoverPlacement="auto";this.showHeader=true;this.content=undefined;this.options=["instant-apps","map-viewer","story-maps","experience-builder","dashboards"];this.portal=undefined;this.baseClass=d.baseLight;this.messages=undefined;this.CreateOptionsLookup=undefined}contentChanged(){if(this.CreateOptionsLookup){Object.keys(this.CreateOptionsLookup).forEach((t=>{this.CreateOptionsLookup[t].href=this.hrefLookup(t)}))}}async componentWillLoad(){this.baseClass=s(this.el)==="dark"?d.baseDark:d.baseLight;await this.initializeModules();return void await n(this).then((()=>{this.initializePredefinedOptions()}))}disconnectedCallback(){this.handles?.removeAll();this.handles?.destroy();this.handles=null}render(){const t=this.mode==="popover"?this.renderPopover():this.renderPanel();return a(e,{key:"239f44775dbefef9e12450e0325c82aadfd78c91"},a("div",{key:"6d4fb22d8c840682b8bd1764bdc90a854fa15f5a",class:this.baseClass},t))}async initializeModules(){this.handles=await r();return void await Promise.resolve()}initializePredefinedOptions(){const{instantApps:t,instantAppsDesc:a,mapViewer:e,mapViewerDesc:i,arcgisStoryMaps:n,storyMapsDesc:r,experienceBuilder:s,experienceBuilderDesc:o,dashboards:c,dashboardsDesc:l}=this.messages;this.CreateOptionsLookup={"instant-apps":{title:t,subtitle:a,img:p("instant-apps"),href:this.hrefLookup("instant-apps")},"map-viewer":{title:e,subtitle:i,img:p("map-viewer"),href:this.hrefLookup("map-viewer")},"story-maps":{title:n,subtitle:r,img:p("story-maps"),href:this.hrefLookup("story-maps")},"experience-builder":{title:s,subtitle:o,img:p("experience-builder"),href:this.hrefLookup("experience-builder")},dashboards:{title:c,subtitle:l,img:p("dashboards"),href:this.hrefLookup("dashboards")}}}hrefLookup(t){const a=this.getBaseUrl(this.portal);const e=this._getEnvironment(a);const i=this.contentHref();switch(t){case"instant-apps":return`${a}/apps/instantgallery/index.html?${i}`;case"dashboards":if(this.content!=null&&"portalItem"in this.content){return`${a}/apps/dashboards/new#id=${this.content?.portalItem?.id}`}else{return`${a}/apps/dashboards/new`}case"map-viewer":return`${a}/apps/mapviewer/index.html?${i}`;case"story-maps":return`https://storymaps${e==="prod"?"":e}.arcgis.com/stories/new?${i}`;case"experience-builder":return`https://experience${e==="prod"?"":e}.arcgis.com/builder/page/template/?${i}`}return""}contentHref(){if(this?.content?.portalItem?.type==="Web Map"){const t=this.content;return`webmap=${t?.portalItem?.id}`}else if(this?.content?.portalItem?.type==="Web Scene"){const t=this.content;return`webscene=${t?.portalItem?.id}`}else if(typeof this?.content?.fetchMembers==="function"){return`group=${this.content.id}`}else{return""}}getBaseUrl(t){if(!t){return""}const{customBaseUrl:a,portalHostname:e,urlKey:i}=t;const{protocol:n}=window.location;const r=i?`${i}.${a}`:e;return`${n}//${r}`}_getEnvironment(t){let a="";try{a=new URL(t)?.hostname}catch{}if(!a?.includes("arcgis.com")){return"dev"}else{return a.includes("devext")&&"dev"||a.includes("qaext")&&"qa"||"prod"}}renderPopover(){const t=this.renderPanel();return[a("calcite-popover",{referenceElement:"create-popover-btn",overlayPositioning:this.popoverPositioning,placement:this.popoverPlacement,autoClose:true,ref:t=>this.popoverEl=t,label:"Create panel"},t),a("calcite-action",{id:"create-popover-btn",alignment:"center",icon:this.popoverIcon,title:this.messages?.create,text:this.messages?.create})]}renderPanel(){const t=this.showHeader?this.renderHeader():null;const e=this.renderOptions();const i=this.mode==="inline"?d.inlineContainer:d.popoverContainer;return a("div",{class:i},t,e)}renderHeader(){const{create:t,createSubheading:e}=this.messages;return a("div",{class:d.header},a("h3",null,t),a("p",null,e))}renderOptions(){return a("nav",null,this.options.map((t=>this.renderOption(t))))}renderOption(t){if(typeof t==="string"){t=this.CreateOptionsLookup?.[t]}if(t==null){return a("div",null)}const{title:e,subtitle:i,img:n,href:r}=t;return a("a",{class:d.option,href:r,target:"_blank"},a("span",{class:d.optionIcon,innerHTML:n}),a("span",{class:d.optionText},a("span",{class:d.optionTextWrapper},a("h3",{class:d.optionTitle},e),a("calcite-icon",{scale:"s",icon:"launch"})),a("p",{class:d.optionSubtitle},i)))}get el(){return i(this)}static get watchers(){return{content:["contentChanged"]}}};v.style=h;export{v as instant_apps_create};
|
2
|
+
//# sourceMappingURL=p-625b0358.entry.js.map
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{r as t,c as s,h as i,g as e}from"./p-6517b6d4.js";import{g as o}from"./p-005a2711.js";import{a,c as n,L as c}from"./p-45a300a8.js";import{g as r,f as h}from"./p-40992282.js";import{i as l,l as d,m as p}from"./p-50b205e8.js";import"./p-eff6e0b8.js";import"./p-5978fda4.js";const u=":host{display:block;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-1);min-width:200px}:host calcite-dropdown{width:100%}:host calcite-button{--calcite-color-brand:var(--calcite-color-text-3);--calcite-color-brand-hover:var(--calcite-color-text-3)}";const w=u;const m=class{constructor(i){t(this,i);this.selectedLanguageUpdated=s(this,"selectedLanguageUpdated",7);this.icon="language";this.portalItem=undefined;this.view=undefined;this.locales=[];this.defaultLocale=undefined;this.selectedLanguage=null;this.calciteDropdownOverlayPositioning="absolute";this.messages=undefined;this.t9nData=null}async componentWillLoad(){const[t,s]=await Promise.all([l(),d()]);this.intl=t;this.request=s;this.messages=await o(document.createElement("instant-apps-language-translator"));try{this.portalItemResource=await r(this.portalItem);const t=await h(this.portalItemResource);this.t9nData=t??{}}catch(t){this.t9nData={};console.error("NO PORTAL ITEM RESOURCE AVAILABLE.")}finally{this.userLocale=this.defaultLocale;const s=new URLSearchParams(window.location.search);const i=s.get("locale");const e=this.locales?.map((t=>t?.locale))?.filter((t=>t===i))?.length>0;const o=a(t,this.portalItem.portal);const n=this.locales?.map((t=>t?.locale))?.filter((t=>t===o))?.length>0;this.selectedLanguage=e?i:n?o:this.userLocale;const c=this.selectedLanguage;if(c!==this.userLocale){this.calciteDropdownItemSelectCallback(c)();this.selectedLanguageUpdated.emit({locale:c,data:this.t9nData?.[c]??null})}if(this.view){const t=this.view.map;this.defaultWebMapId=t?.portalItem?.id??"";const s=this.locales?.filter((t=>t?.webmap&&t?.webmap!==this.defaultWebMapId&&t?.locale===this.selectedLanguage))?.[0]?.webmap;if(s){this.view.map=await p({portalItem:{id:s}})}}}}render(){const t=this.renderTrigger();const s=this.renderDropdownItems();const e=this.renderDefaultLocale();return i("calcite-dropdown",{key:"d48e5831173767a89033b16b2a33b7a234927fd5",onCalciteDropdownBeforeOpen:()=>this.trigger.iconEnd="chevron-up",onCalciteDropdownBeforeClose:()=>this.trigger.iconEnd="chevron-down","overlay-positioning":this.calciteDropdownOverlayPositioning,"width-scale":"m"},t,e,s)}renderDefaultLocale(){const{userLocale:t}=this;return i("calcite-dropdown-item",{key:`default-${t}`,onCalciteDropdownItemSelect:this.calciteDropdownItemSelectCallback(t),selected:this.selectedLanguage===this.userLocale},this.getSelectedLanguageText(t))}renderTrigger(){return i("calcite-button",{ref:t=>this.trigger=t,slot:"trigger","icon-start":this.icon,"icon-end":"chevron-down",width:"full",appearance:"outline"},this.getSelectedLanguageText(this.selectedLanguage))}renderDropdownItems(){return this.locales?.map((t=>t.locale))?.map((t=>this.renderDropdownItem(t)))}renderDropdownItem(t){const s=this.getSelectedLanguageText(t);const e=t===this.selectedLanguage;return i("calcite-dropdown-item",{key:t,selected:e,onCalciteDropdownItemSelect:this.calciteDropdownItemSelectCallback(t)},s)}calciteDropdownItemSelectCallback(t){return async()=>{this.selectedLanguage=t;const{intl:s,selectedLanguage:i,t9nData:e,userLocale:o}=this;const a=this.locales.find((t=>t.locale===i));if(e&&a&&i!==o){a.data=e[t]}const c=new URLSearchParams(window.location.search);const r=await n(this.selectedLanguage);s.setLocale(r);c.set("locale",r);if(this.view){const t=this.locales.filter((t=>t.locale===i))?.[0]?.webmap;if(t){this.view.map=await p({portalItem:{id:t}})}else{const t=this.view?.map?.portalItem?.id;if(t&&this.defaultWebMapId!==t){this.view.map=await p({portalItem:{id:this.defaultWebMapId}})}}}document.documentElement.setAttribute("lang",r);const h=this.intl.prefersRTL();if(h){document.documentElement.setAttribute("dir","rtl")}else{document.documentElement.setAttribute("dir","ltr")}window.history.replaceState({},"",decodeURIComponent(`${window.location.pathname}?${c}`));this.selectedLanguageUpdated.emit(a)}}getSelectedLanguageText(t){const s=Object.keys(c.partial);const i=s.includes(t);const e=i?"partial":"full";const o=c[e];const{language:a,translated:n}=o[t];return`${a} - ${n}`}async refresh(){try{const t=await r(this.portalItem);const s=await h(t);this.t9nData=s;const i={locale:this.selectedLanguage,data:s[this.selectedLanguage]};this.selectedLanguageUpdated.emit(i)}catch{}}get el(){return e(this)}};m.style=w;export{m as instant_apps_language_switcher};
|
2
|
+
//# sourceMappingURL=p-6ab370d8.entry.js.map
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{r as t,c as n,h as i,H as s,g as e}from"./p-6517b6d4.js";import{g as r}from"./p-45a300a8.js";import{g as o}from"./p-a1e8ffff.js";import{b as a,a as c,c as p,d as h}from"./p-50b205e8.js";import"./p-5978fda4.js";function l(t,n){if(t.match(/^[a-z]+:\/\//i)){return t}if(t.match(/^\/\//)){return window.location.protocol+t}if(t.match(/^[a-z]+:/i)){return t}const i=document.implementation.createHTMLDocument();const s=i.createElement("base");const e=i.createElement("a");i.head.appendChild(s);i.body.appendChild(e);if(n){s.href=n}e.href=t;return e.href}const u=(()=>{let t=0;const n=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>{t+=1;return`u${n()}${t}`}})();function d(t){const n=[];for(let i=0,s=t.length;i<s;i++){n.push(t[i])}return n}function f(t,n){const i=t.ownerDocument.defaultView||window;const s=i.getComputedStyle(t).getPropertyValue(n);return s?parseFloat(s.replace("px","")):0}function g(t){const n=f(t,"border-left-width");const i=f(t,"border-right-width");return t.clientWidth+n+i}function x(t){const n=f(t,"border-top-width");const i=f(t,"border-bottom-width");return t.clientHeight+n+i}function m(t,n={}){const i=n.width||g(t);const s=n.height||x(t);return{width:i,height:s}}function _(){let t;let n;try{n=process}catch(t){}const i=n&&n.env?n.env.devicePixelRatio:null;if(i){t=parseInt(i,10);if(Number.isNaN(t)){t=1}}return t||window.devicePixelRatio||1}const b=16384;function w(t){if(t.width>b||t.height>b){if(t.width>b&&t.height>b){if(t.width>t.height){t.height*=b/t.width;t.width=b}else{t.width*=b/t.height;t.height=b}}else if(t.width>b){t.height*=b/t.width;t.width=b}else{t.width*=b/t.height;t.height=b}}}function v(t){return new Promise(((n,i)=>{const s=new Image;s.decode=()=>n(s);s.onload=()=>n(s);s.onerror=i;s.crossOrigin="anonymous";s.decoding="async";s.src=t}))}async function y(t){return Promise.resolve().then((()=>(new XMLSerializer).serializeToString(t))).then(encodeURIComponent).then((t=>`data:image/svg+xml;charset=utf-8,${t}`))}async function k(t,n,i){const s="http://www.w3.org/2000/svg";const e=document.createElementNS(s,"svg");const r=document.createElementNS(s,"foreignObject");e.setAttribute("width",`${n}`);e.setAttribute("height",`${i}`);e.setAttribute("viewBox",`0 0 ${n} ${i}`);r.setAttribute("width","100%");r.setAttribute("height","100%");r.setAttribute("x","0");r.setAttribute("y","0");r.setAttribute("externalResourcesRequired","true");e.appendChild(r);r.appendChild(t);return y(e)}const P=(t,n)=>{if(t instanceof n)return true;const i=Object.getPrototypeOf(t);if(i===null)return false;return i.constructor.name===n.name||P(i,n)};function $(t){const n=t.getPropertyValue("content");return`${t.cssText} content: '${n.replace(/'|"/g,"")}';`}function C(t){return d(t).map((n=>{const i=t.getPropertyValue(n);const s=t.getPropertyPriority(n);return`${n}: ${i}${s?" !important":""};`})).join(" ")}function S(t,n,i){const s=`.${t}:${n}`;const e=i.cssText?$(i):C(i);return document.createTextNode(`${s}{${e}}`)}function E(t,n,i){const s=window.getComputedStyle(t,i);const e=s.getPropertyValue("content");if(e===""||e==="none"){return}const r=u();try{n.className=`${n.className} ${r}`}catch(t){return}const o=document.createElement("style");o.appendChild(S(r,i,s));n.appendChild(o)}function F(t,n){E(t,n,":before");E(t,n,":after")}const M="application/font-woff";const T="image/jpeg";const D={woff:M,woff2:M,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:T,jpeg:T,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function L(t){const n=/\.([^./]*?)$/g.exec(t);return n?n[1]:""}function j(t){const n=L(t).toLowerCase();return D[n]||""}function I(t){return t.split(/,/)[1]}function O(t){return t.search(/^(data:)/)!==-1}function z(t,n){return`data:${n};base64,${t}`}async function R(t,n,i){const s=await fetch(t,n);if(s.status===404){throw new Error(`Resource "${s.url}" not found`)}const e=await s.blob();return new Promise(((t,n)=>{const r=new FileReader;r.onerror=n;r.onloadend=()=>{try{t(i({res:s,result:r.result}))}catch(t){n(t)}};r.readAsDataURL(e)}))}const H={};function V(t,n,i){let s=t.replace(/\?.*/,"");if(i){s=t}if(/ttf|otf|eot|woff2?/i.test(s)){s=s.replace(/.*\//,"")}return n?`[${n}]${s}`:s}async function B(t,n,i){const s=V(t,n,i.includeQueryParams);if(H[s]!=null){return H[s]}if(i.cacheBust){t+=(/\?/.test(t)?"&":"?")+(new Date).getTime()}let e;try{const s=await R(t,i.fetchRequestInit,(({res:t,result:i})=>{if(!n){n=t.headers.get("Content-Type")||""}return I(i)}));e=z(s,n)}catch(n){e=i.imagePlaceholder||"";let s=`Failed to fetch resource: ${t}`;if(n){s=typeof n==="string"?n:n.message}if(s){console.warn(s)}}H[s]=e;return e}async function G(t){const n=t.toDataURL();if(n==="data:,"){return t.cloneNode(false)}return v(n)}async function W(t,n){if(t.currentSrc){const n=document.createElement("canvas");const i=n.getContext("2d");n.width=t.clientWidth;n.height=t.clientHeight;i===null||i===void 0?void 0:i.drawImage(t,0,0,n.width,n.height);const s=n.toDataURL();return v(s)}const i=t.poster;const s=j(i);const e=await B(i,s,n);return v(e)}async function A(t){var n;try{if((n=t===null||t===void 0?void 0:t.contentDocument)===null||n===void 0?void 0:n.body){return await Z(t.contentDocument.body,{},true)}}catch(t){}return t.cloneNode(false)}async function N(t,n){if(P(t,HTMLCanvasElement)){return G(t)}if(P(t,HTMLVideoElement)){return W(t,n)}if(P(t,HTMLIFrameElement)){return A(t)}return t.cloneNode(false)}const U=t=>t.tagName!=null&&t.tagName.toUpperCase()==="SLOT";async function J(t,n,i){var s,e;let r=[];if(U(t)&&t.assignedNodes){r=d(t.assignedNodes())}else if(P(t,HTMLIFrameElement)&&((s=t.contentDocument)===null||s===void 0?void 0:s.body)){r=d(t.contentDocument.body.childNodes)}else{r=d(((e=t.shadowRoot)!==null&&e!==void 0?e:t).childNodes)}if(r.length===0||P(t,HTMLVideoElement)){return n}await r.reduce(((t,s)=>t.then((()=>Z(s,i))).then((t=>{if(t){n.appendChild(t)}}))),Promise.resolve());return n}function q(t,n){const i=n.style;if(!i){return}const s=window.getComputedStyle(t);if(s.cssText){i.cssText=s.cssText;i.transformOrigin=s.transformOrigin}else{d(s).forEach((e=>{let r=s.getPropertyValue(e);if(e==="font-size"&&r.endsWith("px")){const t=Math.floor(parseFloat(r.substring(0,r.length-2)))-.1;r=`${t}px`}if(P(t,HTMLIFrameElement)&&e==="display"&&r==="inline"){r="block"}if(e==="d"&&n.getAttribute("d")){r=`path(${n.getAttribute("d")})`}i.setProperty(e,r,s.getPropertyPriority(e))}))}}function X(t,n){if(P(t,HTMLTextAreaElement)){n.innerHTML=t.value}if(P(t,HTMLInputElement)){n.setAttribute("value",t.value)}}function K(t,n){if(P(t,HTMLSelectElement)){const i=n;const s=Array.from(i.children).find((n=>t.value===n.getAttribute("value")));if(s){s.setAttribute("selected","")}}}function Q(t,n){if(P(n,Element)){q(t,n);F(t,n);X(t,n);K(t,n)}return n}async function Y(t,n){const i=t.querySelectorAll?t.querySelectorAll("use"):[];if(i.length===0){return t}const s={};for(let e=0;e<i.length;e++){const r=i[e];const o=r.getAttribute("xlink:href");if(o){const i=t.querySelector(o);const e=document.querySelector(o);if(!i&&e&&!s[o]){s[o]=await Z(e,n,true)}}}const e=Object.values(s);if(e.length){const n="http://www.w3.org/1999/xhtml";const i=document.createElementNS(n,"svg");i.setAttribute("xmlns",n);i.style.position="absolute";i.style.width="0";i.style.height="0";i.style.overflow="hidden";i.style.display="none";const s=document.createElementNS(n,"defs");i.appendChild(s);for(let t=0;t<e.length;t++){s.appendChild(e[t])}t.appendChild(i)}return t}async function Z(t,n,i){if(!i&&n.filter&&!n.filter(t)){return null}return Promise.resolve(t).then((t=>N(t,n))).then((i=>J(t,i,n))).then((n=>Q(t,n))).then((t=>Y(t,n)))}const tt=/url\((['"]?)([^'"]+?)\1\)/g;const nt=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g;const it=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function st(t){const n=t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${n})(['"]?\\))`,"g")}function et(t){const n=[];t.replace(tt,((t,i,s)=>{n.push(s);return t}));return n.filter((t=>!O(t)))}async function rt(t,n,i,s,e){try{const r=i?l(n,i):n;const o=j(n);let a;if(e){const t=await e(r);a=z(t,o)}else{a=await B(r,o,s)}return t.replace(st(n),`$1${a}$3`)}catch(t){}return t}function ot(t,{preferredFontFormat:n}){return!n?t:t.replace(it,(t=>{while(true){const[i,,s]=nt.exec(t)||[];if(!s){return""}if(s===n){return`src: ${i};`}}}))}function at(t){return t.search(tt)!==-1}async function ct(t,n,i){if(!at(t)){return t}const s=ot(t,i);const e=et(s);return e.reduce(((t,s)=>t.then((t=>rt(t,s,n,i)))),Promise.resolve(s))}async function pt(t,n,i){var s;const e=(s=n.style)===null||s===void 0?void 0:s.getPropertyValue(t);if(e){const s=await ct(e,null,i);n.style.setProperty(t,s,n.style.getPropertyPriority(t));return true}return false}async function ht(t,n){if(!await pt("background",t,n)){await pt("background-image",t,n)}if(!await pt("mask",t,n)){await pt("mask-image",t,n)}}async function lt(t,n){const i=P(t,HTMLImageElement);if(!(i&&!O(t.src))&&!(P(t,SVGImageElement)&&!O(t.href.baseVal))){return}const s=i?t.src:t.href.baseVal;const e=await B(s,j(s),n);await new Promise(((n,s)=>{t.onload=n;t.onerror=s;const r=t;if(r.decode){r.decode=n}if(r.loading==="lazy"){r.loading="eager"}if(i){t.srcset="";t.src=e}else{t.href.baseVal=e}}))}async function ut(t,n){const i=d(t.childNodes);const s=i.map((t=>dt(t,n)));await Promise.all(s).then((()=>t))}async function dt(t,n){if(P(t,Element)){await ht(t,n);await lt(t,n);await ut(t,n)}}function ft(t,n){const{style:i}=t;if(n.backgroundColor){i.backgroundColor=n.backgroundColor}if(n.width){i.width=`${n.width}px`}if(n.height){i.height=`${n.height}px`}const s=n.style;if(s!=null){Object.keys(s).forEach((t=>{i[t]=s[t]}))}return t}const gt={};async function xt(t){let n=gt[t];if(n!=null){return n}const i=await fetch(t);const s=await i.text();n={url:t,cssText:s};gt[t]=n;return n}async function mt(t,n){let i=t.cssText;const s=/url\(["']?([^"')]+)["']?\)/g;const e=i.match(/url\([^)]+\)/g)||[];const r=e.map((async e=>{let r=e.replace(s,"$1");if(!r.startsWith("https://")){r=new URL(r,t.url).href}return R(r,n.fetchRequestInit,(({result:t})=>{i=i.replace(e,`url(${t})`);return[e,t]}))}));return Promise.all(r).then((()=>i))}function _t(t){if(t==null){return[]}const n=[];const i=/(\/\*[\s\S]*?\*\/)/gi;let s=t.replace(i,"");const e=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");while(true){const t=e.exec(s);if(t===null){break}n.push(t[0])}s=s.replace(e,"");const r=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi;const o="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]"+"*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})";const a=new RegExp(o,"gi");while(true){let t=r.exec(s);if(t===null){t=a.exec(s);if(t===null){break}else{r.lastIndex=a.lastIndex}}else{a.lastIndex=r.lastIndex}n.push(t[0])}return n}async function bt(t,n){const i=[];const s=[];t.forEach((i=>{if("cssRules"in i){try{d(i.cssRules||[]).forEach(((t,e)=>{if(t.type===CSSRule.IMPORT_RULE){let r=e+1;const o=t.href;const a=xt(o).then((t=>mt(t,n))).then((t=>_t(t).forEach((t=>{try{i.insertRule(t,t.startsWith("@import")?r+=1:i.cssRules.length)}catch(n){console.error("Error inserting rule from remote css",{rule:t,error:n})}})))).catch((t=>{console.error("Error loading remote css",t.toString())}));s.push(a)}}))}catch(e){const r=t.find((t=>t.href==null))||document.styleSheets[0];if(i.href!=null){s.push(xt(i.href).then((t=>mt(t,n))).then((t=>_t(t).forEach((t=>{r.insertRule(t,i.cssRules.length)})))).catch((t=>{console.error("Error loading remote stylesheet",t)})))}console.error("Error inlining remote css file",e)}}}));return Promise.all(s).then((()=>{t.forEach((t=>{if("cssRules"in t){try{d(t.cssRules||[]).forEach((t=>{i.push(t)}))}catch(n){console.error(`Error while reading CSS rules from ${t.href}`,n)}}}));return i}))}function wt(t){return t.filter((t=>t.type===CSSRule.FONT_FACE_RULE)).filter((t=>at(t.style.getPropertyValue("src"))))}async function vt(t,n){if(t.ownerDocument==null){throw new Error("Provided element is not within a Document")}const i=d(t.ownerDocument.styleSheets);const s=await bt(i,n);return wt(s)}async function yt(t,n){const i=await vt(t,n);const s=await Promise.all(i.map((t=>{const i=t.parentStyleSheet?t.parentStyleSheet.href:null;return ct(t.cssText,i,n)})));return s.join("\n")}async function kt(t,n){const i=n.fontEmbedCSS!=null?n.fontEmbedCSS:n.skipFonts?null:await yt(t,n);if(i){const n=document.createElement("style");const s=document.createTextNode(i);n.appendChild(s);if(t.firstChild){t.insertBefore(n,t.firstChild)}else{t.appendChild(n)}}}async function Pt(t,n={}){const{width:i,height:s}=m(t,n);const e=await Z(t,n,true);await kt(e,n);await dt(e,n);ft(e,n);const r=await k(e,i,s);return r}async function $t(t,n={}){const{width:i,height:s}=m(t,n);const e=await Pt(t,n);const r=await v(e);const o=document.createElement("canvas");const a=o.getContext("2d");const c=n.pixelRatio||_();const p=n.canvasWidth||i;const h=n.canvasHeight||s;o.width=p*c;o.height=h*c;if(!n.skipAutoScale){w(o)}o.style.width=`${p}`;o.style.height=`${h}`;if(n.backgroundColor){a.fillStyle=n.backgroundColor;a.fillRect(0,0,o.width,o.height)}a.drawImage(r,0,0,o.width,o.height);return o}async function Ct(t,n={}){const i=await $t(t,n);return i.toDataURL()}async function St(t,n={}){const i=await $t(t,n);return i.toDataURL("image/jpeg",n.quality||1)}const Et=`\n @media print {\n @page {\n size: Portrait;\n margin: .25in;\n }\n\n html, body {\n padding: 0;\n margin: 0;\n height: 100%;\n width: 100%;\n }\n\n body > *:not(.instant-apps-export-print) { display: none; }\n }\n\n * {\n -webkit-print-color-adjust: exact;\n color-adjust: exact;\n }\n\n\n .instant-apps-export-print {\n position: absolute;\n z-index: -999;\n color: #323232 !important;\n --esri-calcite-mode-name: "light";\n }\n\n .instant-apps-export-print__pdf {\n height: 100%;\n width: 100%;\n display: grid;\n gap: 24px;\n grid-auto-flow: row;\n }\n\n .instant-apps-export-print__img {\n display: grid;\n width: auto;\n }\n\n .instant-apps-export-print__img--extra-content {\n grid-template-columns: 2fr minmax(0, 325px);\n }\n\n .instant-apps-export-print, .instant-apps-export-print * {\n box-sizing: border-box;\n }\n\n .instant-apps-export-print__view-section {\n height: 100%;\n }\n\n .instant-apps-export-print__view-container {\n height: 100%;\n width: 100%;\n display: flex;\n justify-content: center;\n }\n\n .instant-apps-export-print__img .instant-apps-export-print__view-container {\n grid-row: 1;\n grid-column: 1;\n }\n\n .instant-apps-export-print__view-wrapper {\n height: fit-content;\n width: fit-content;\n position: relative;\n display: flex;\n flex-direction: column;\n overflow: hidden;\n }\n\n .instant-apps-export-print__pdf .instant-apps-export-print__view-wrapper {\n border: 2pt solid #323232;\n }\n\n .instant-apps-export-print__img .instant-apps-export-print__view-wrapper {\n border: 1pt solid #323232;\n }\n\n .instant-apps-export-print__view {\n object-fit: contain;\n }\n\n .instant-apps-export-print__extra-container {\n grid-row: 1 / span 2;\n grid-column: 2;\n }\n \n .instant-apps-export-print__extra-container .esri-feature.esri-widget .esri-widget__heading.esri-feature__title {\n display: block;\n }\n\n .instant-apps-export-print__popup-container {\n height: min-content;\n max-width: 325px;\n display: none;\n color: #323232;\n background: #fff;\n break-inside: avoid;\n }\n\n .instant-apps-export-print__pdf .instant-apps-export-print__popup-container {\n border: 1pt solid #323232;\n }\n\n .instant-apps-export-print__img .instant-apps-export-print__popup-container {\n grid-row: 1 / span 2;\n grid-column: 2;\n }\n\n .instant-apps-export-print__popup-title {\n border-bottom: 1pt solid #323232;\n }\n\n .instant-apps-export-print__popup-content {\n background: #fff;\n padding-top: 8pt;\n }\n\n .instant-apps-export-print__popup-content .esri-feature-media__chart {\n background: #fff;\n }\n\n .instant-apps-export-print__legend-container {\n height: min-content;\n background: #fff;\n overflow: unset;\n }\n\n .instant-apps-export-print__img .instant-apps-export-print__legend-container {\n margin: 14px;\n grid-row: 2;\n grid-column: 1;\n }\n\n .esri-legend--card, .esri-legend--card__service-content {\n flex-flow: row wrap;\n }\n\n .instant-apps-export-print .esri-widget > *:not(.esri-scale-bar.esri-widget > *) {\n background: #fff;\n color: #323232;\n }\n\n .instant-apps-export-print__popup-content *, .instant-apps-export-print__img .esri-feature.esri-widget * {\n color: #323232;\n }\n\n .instant-apps-export-print .esri-widget__heading {\n margin: 4pt 7pt;\n padding: 0;\n color: #323232;\n }\n\n .instant-apps-export-print .esri-legend__ramp-label:before {\n border-color: rgba(0,0,0,0) rgba(50,50,50,.8) rgba(0,0,0,0) rgba(0,0,0,0);\n }\n\n .instant-apps-export-print .esri-legend--card__section {\n padding: 6pt;\n min-width: unset;\n }\n\n .instant-apps-export-print .esri-legend--card__color-ramp-container > .esri-legend--card__ramp-label {\n height: 25px;\n line-height: 25px;\n }\n\n .instant-apps-export-print .esri-legend--card__color-ramp-container .esri-legend--card__interval-separators-container {\n position: unset;\n transform: unset;\n text-align: center;\n }\n\n .instant-apps-export-print .esri-legend--card__section:first-child {\n border-left: none;\n }\n\n .instant-apps-export-print .esri-legend--card__service {\n border: none;\n flex: 0 1 auto;\n break-inside: avoid;\n }\n\n .instant-apps-export-print .esri-legend--card {\n border: none;\n gap: 6pt 12pt;\n }\n\n .instant-apps-export-print .esri-legend--card:not(:first-child),\n .instant-apps-export-print .esri-compass.esri-widget:not(:first-child) {\n display: none;\n }\n\n .instant-apps-export-print .esri-legend--card__service-caption-container {\n height: unset;\n padding: 0;\n border-bottom: none;\n }\n\n .instant-apps-export-print .esri-legend--card__service-caption-text {\n padding-bottom: 4px;\n }\n\n .instant-apps-export-print__compass-container {\n position: absolute;\n top: 65px;\n left: 15px;\n background: #fff;\n box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);\n --calcite-ui-icon-color: #000;\n border-radius: 50%;\n height: fit-content;\n }\n\n .instant-apps-export-print__compass-container .esri-compass {\n background: #fff;\n }\n\n .instant-apps-export-print__compass-container .esri-compass__icon.esri-icon-compass {\n color: #000;\n }\n\n .instant-apps-export-print__compass-container.esri-compass.esri-widget--button {\n background: #fff;\n }\n\n .instant-apps-export-print__scale-bar-container {\n width: 100%;\n position: absolute;\n bottom: 15px;\n margin: 0 15px;\n }\n\n .instant-apps-export-print__scale-bar-container .esri-scale-bar__label {\n color: #323232;\n font-size: 10px;\n padding: 0 4px;\n }\n \n .instant-apps-export-print__scale-bar-container--position .esri-scale-bar__label {\n height: 10px;\n padding: 0 2px;\n line-height: 11px;\n }\n\n .instant-apps-export-print__scale-bar-container .esri-scale-bar__bar-container:nth-child(1n+3) {\n display: none;\n }\n\n .instant-apps-export-print__scale-bar-container--position .esri-scale-bar__bar-container.esri-scale-bar__bar-container--line {\n align-items: center;\n }\n\n .instant-apps-export-print__scale-bar-container .esri-scale-bar__line {\n background-color: rgba(255, 255, 255, 0.66);\n }\n\n .instant-apps-export-print__scale-bar-container .esri-scale-bar__line--top {\n width: var(--instant-apps-scale-bar-top) !important;\n border-bottom: 2px solid #323232;\n }\n\n .instant-apps-export-print__scale-bar-container .esri-scale-bar__line--bottom {\n width: var(--instant-apps-scale-bar-bottom) !important;\n border-top: 2px solid #323232;\n }\n\n .instant-apps-export-print__scale-bar-container--position .esri-scale-bar__label-container--line {\n position: unset;\n margin: 0 2px;\n background-color: rgba(255, 255, 255, 0.66);\n height: 10px;\n display: flex;\n align-items: center;\n }\n\n .instant-apps-export-print__scale-bar-container .esri-scale-bar__line--top:before,\n .instant-apps-export-print__scale-bar-container .esri-scale-bar__line--top:after,\n .instant-apps-export-print__scale-bar-container .esri-scale-bar__line--bottom:before,\n .instant-apps-export-print__scale-bar-container .esri-scale-bar__line--bottom:after {\n background-color: #323232;\n border-right: 2px solid #323232;\n }\n\n .instant-apps-export-print__popup-container .esri-feature-media__item-navigation {\n display: none;\n }\n\n .instant-apps-export-print__popup-container .esri-feature-media__chart.esri-feature-media__chart--rendered * {\n width: 100%!important;\n }\n\n .instant-apps-export-print__popup-content .esri-popup__content {\n margin: 0;\n }\n\n .instant-apps-export-print__content-container {\n display: flex;\n gap: 24px;\n break-inside: avoid;\n break-before: auto;\n }`;const Ft=`\n.screenshot-preview.hide, .hide {\n display: none;\n}\n\n.screenshot-cursor {\n cursor: crosshair;\n}\n\n.relative {\n position: relative;\n}\n\n#screenshot-mask {\n position: absolute;\n background: var(--instant-apps-screenshot-mask-background);\n border: var(--instant-apps-screenshot-mask-border);\n}\n\n.screenshot-preview {\n display: flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n text-align: center;\n background-color: rgba(0, 0, 0, 0.75);\n}\n\n.screenshot-preview * {\n box-sizing: border-box;\n}\n\n.screenshot-img-container img {\n max-height: 75%;\n max-width: 75%;\n object-fit: contain;\n box-shadow: 2px 2px 5px 0 rgba(0, 0, 0, 0.5);\n margin-bottom: 0.5em;\n}\n\n.screenshot-img-container {\n height: 100%;\n width: 100%;\n overflow-y: auto;\n margin-bottom: 8px;\n display: flex;\n flex-flow: column;\n align-items: center;\n justify-content: center;\n}\n\n.screenshot-img-container calcite-button {\n margin: 5px;\n}`;const Mt=":host{display:block;--instant-apps-export-action-background:var(--calcite-color-foreground-1);--instant-apps-export-action-background-hover:var(--calcite-color-foreground-2);--instant-apps-export-action-background-press:var(--calcite-color-foreground-3);--instant-apps-export-action-height:100%;--instant-apps-export-action-width:fit-content;--instant-apps-export-action-icon-color:var(--calcite-color-text-3);--instant-apps-export-action-icon-hover-color:var(--calcite-color-text-1);--instant-apps-export-background:var(--calcite-color-foreground-1);--instant-apps-export-text-color:var(--calcite-color-text-1);--instant-apps-export-popover-width:250px;--instant-apps-export-button-text-dark-hover-color:#fff}.instant-apps-export{height:100%}.instant-apps-export *{box-sizing:border-box}.instant-apps-export__popover-container,.instant-apps-export__inline-container{padding:12px;background:var(--instant-apps-export-background);--calcite-color-text-1:var(--instant-apps-export-text-color)}.instant-apps-export__popover-container{width:var(--instant-apps-export-popover-width)}.instant-apps-export calcite-action{height:var(--instant-apps-export-action-height);width:var(--instant-apps-export-action-width);--calcite-color-foreground-1:var(--instant-apps-export-action-background);--calcite-color-foreground-2:var(--instant-apps-export-action-background-hover);--calcite-color-foreground-3:var(--instant-apps-export-action-background-press);--calcite-color-text-3:var(--instant-apps-export-action-icon-color);--calcite-color-text-1:var(--instant-apps-export-action-icon-hover-color)}.instant-apps-export .instant-apps-export-print{display:none}.instant-apps-export .instant-apps-export-print_img{display:flex;flex-flow:row wrap}.instant-apps-export__visually-hidden{position:absolute;top:0;z-index:-1;visibility:hidden}.instant-apps-export calcite-input{--calcite-color-foreground-1:var(--instant-apps-export-background);--calcite-color-text-1:var(--instant-apps-export-text-color)}.instant-apps-export calcite-popover{--calcite-color-foreground-1:var(--instant-apps-export-background)}.instant-apps-export calcite-switch{--calcite-color-foreground-1:#fff;--calcite-color-foreground-2:#f3f3f3}.instant-apps-export calcite-button:last-of-type{margin-top:0.5rem}.calcite-mode-dark.instant-apps-export .instant-apps-export__set-map-area{--calcite-color-brand-hover:#fff}.calcite-mode-dark.instant-apps-export calcite-switch{--calcite-color-foreground-1:#2b2b2b;--calcite-color-foreground-2:#202020}.instant-apps-export__compass-container.esri-widget{background:#fff;box-shadow:0 1px 2px rgba(0, 0, 0, 0.3)}.instant-apps-export__compass-container.esri-widget .esri-compass__icon.esri-icon-compass{color:#6e6e6e}.hide{display:none}.screenshotCursor{cursor:crosshair}";const Tt=Mt;const Dt={baseDark:"instant-apps-export calcite-mode-dark",baseLight:"instant-apps-export calcite-mode-light",inlineContainer:"instant-apps-export__inline-container",popoverContainer:"instant-apps-export__popover-container",hidden:"instant-apps-export__visually-hidden",setMapArea:"instant-apps-export__set-map-area",print:{pdfBase:"instant-apps-export-print instant-apps-export-print__pdf",imgBase:"instant-apps-export-print instant-apps-export-print__img",imgExtraContent:"instant-apps-export-print__img--extra-content",contentContainer:"instant-apps-export-print__content-container",extraContainer:"instant-apps-export-print__extra-container",legendContainer:"instant-apps-export-print__legend-container",compassContainer:"instant-apps-export-print__compass-container",scaleBarContainer:"instant-apps-export-print__scale-bar-container",popupContainer:"instant-apps-export-print__popup-container",popupContent:"instant-apps-export-print__popup-content",popupTitle:"instant-apps-export-print__popup-title",view:"instant-apps-export-print__view",viewContainer:"instant-apps-export-print__view-container",viewSection:"instant-apps-export-print__view-section",viewWrapper:"instant-apps-export-print__view-wrapper"}};const Lt="instant-app-export-drag";const jt=class{constructor(i){t(this,i);this.exportOutputUpdated=n(this,"exportOutputUpdated",7);this.fileTypes=["PDF","JPG","PNG"];this.output=undefined;this.beforeExport=async()=>await Promise.resolve();this.popoverIcon="export";this.extraContent=undefined;this.extraContentLabel=undefined;this.headerTitle="";this.logoImage="";this.includeExtraContent=true;this.showExtraContentInImg=false;this.includeLegend=true;this.includeMap=true;this.includePopup=false;this.includeFileFormat=true;this.mode="popover";this.popoverPositioning="absolute";this.popoverPlacement="auto";this.scale="m";this.showHeaderTitle=true;this.showIncludeLegend=true;this.showIncludeMap=false;this.showIncludePopup=true;this.showScaleBar=false;this.view=undefined;this.maskBackground="rgba(255, 51, 0, 0.1)";this.maskBorder="2px dashed rgb(255, 51, 0)";this.defaultFileType="PDF";this.baseClass=Dt.baseLight;this.exportIsLoading=undefined;this.messages=undefined;this.selectedFileType=undefined}watchIncludeMap(t){if(t){this.updateLegend()}}watchView(){this.handleIncludePopup()}async componentWillLoad(){this.selectedFileType=this.defaultFileType;this.pdfIncludeMap=this.includeMap;this.baseClass=o(this.el)==="dark"?Dt.baseDark:Dt.baseLight;await r(this);await this.initializeModules()}componentDidLoad(){if(!this.printEl){return}this.printContainerEl?.prepend(this.printEl);this.handleIncludePopup()}async initializeModules(){const t=await a();this.handles=await c();this.reactiveUtils=t}render(){const t=this.mode==="popover"?this.renderPopover():this.renderPanel();const n=this.renderCompass();return i(s,{key:"cdfe99a3f150de88b25daaefe04217589765f090"},i("div",{key:"13ec67b18c039d095dc4b795797807861e593f04",class:this.baseClass,onMouseEnter:this.handleWidgetCreation.bind(this),onFocusin:this.handleWidgetCreation.bind(this)},t,i("div",{key:"d78643d58760f433d2b9974ceeda42d8faa3d478",class:Dt.hidden},n)))}renderPopover(){const t=this.renderPanel();return[i("calcite-popover",{referenceElement:"export-popover-btn",label:this.messages?.exportPopover,overlayPositioning:this.popoverPositioning,placement:this.popoverPlacement,autoClose:true,ref:t=>this.popoverEl=t},t),i("calcite-action",{id:"export-popover-btn",alignment:"center",icon:this.popoverIcon,scale:this.scale,title:this.messages?.exportBtn,text:this.messages?.exportBtn})]}renderPanel(){const t=this.showHeaderTitle?this.renderTitle():null;const n=this.extraContent?this.renderSwitch("includeExtraContent",this.extraContentLabel,this.selectedFileType!=="PDF"&&!this.showExtraContentInImg):null;const s=this.showIncludeMap?this.renderSwitch("includeMap",undefined,this.selectedFileType!=="PDF"):null;const e=this.includeMap?this.renderMapOptions():null;const r=this.includeFileFormat?this.renderSelectFileType():null;const o=this.selectedFileType==="PDF"?this.renderPrint():this.renderImg();const a=this.mode==="inline"?Dt.inlineContainer:Dt.popoverContainer;return i("div",{class:a},t,n,s,e,r,this.includeMap?i("calcite-button",{class:Dt.setMapArea,appearance:"transparent",width:"full",onClick:this.setMapAreaOnClick.bind(this,true),disabled:this.exportIsLoading},this.messages?.setMapArea):null,i("calcite-button",{width:"full",onClick:this.exportOnClick.bind(this),disabled:this.exportIsLoading},this.selectedFileType==="PDF"?this.messages?.export:this.messages?.preview),o)}renderTitle(){return i("calcite-label",null,this.messages?.title,i("calcite-input",{value:this.headerTitle,onCalciteInputInput:this.updateHeaderTitle.bind(this)}))}renderSwitch(t,n,s){const e=t;const r=this[e];const o=t;const a=n?n:this.messages?.[o];return i("calcite-label",{layout:"inline-space-between"},a,i("calcite-switch",{checked:r,value:t,onCalciteSwitchChange:this.optionOnChange.bind(this),disabled:s}))}renderSelectFileType(){return i("calcite-label",null,this.messages?.fileType,i("calcite-select",{label:"",onCalciteSelectChange:this.handleSelectFileType.bind(this)},this.fileTypes.map((t=>i("calcite-option",{value:t,selected:t===this.selectedFileType},t)))))}renderMapOptions(){const t=this.showIncludeLegend?this.renderSwitch("includeLegend"):null;const n=this.showIncludePopup?this.renderSwitch("includePopup"):null;return i("div",null,t,n)}renderPrint(){const t=this.includeMap?this.renderPrintMap():null;const n=this.renderExtraContent();const s=this.includeMap&&this.showIncludeLegend?this.renderLegend():null;const e=this.includeMap&&this.showIncludePopup?this.renderPopup():null;return i("div",{ref:t=>this.printContainerEl=t},i("div",{class:Dt.print.pdfBase,ref:t=>this.printEl=t},t,s,i("div",{class:Dt.print.contentContainer},e,n)))}renderPrintMap(){return i("div",{class:Dt.print.viewContainer,ref:t=>this.viewContainerEl=t},i("div",{class:Dt.print.viewWrapper,ref:t=>this.viewWrapperEl=t},this.headerTitle?i("instant-apps-header",{logoImage:this.logoImage,logoScale:"s",titleText:this.headerTitle,backgroundColor:"#fff",textColor:"#323232"}):null,i("img",{class:Dt.print.view,ref:t=>this.viewEl=t}),i("div",{class:Dt.print.scaleBarContainer,ref:t=>this.scaleBarContainerEl=t})))}renderLegend(){return i("div",{class:Dt.print.legendContainer,ref:t=>this.legendContainerEl=t})}renderCompass(){return i("div",{class:Dt.print.compassContainer,ref:t=>this.compassContainerEl=t})}renderPopup(){return i("div",{class:Dt.print.popupContainer,ref:t=>this.popupContainerEl=t},i("div",{ref:t=>this.popupTitleEl=t,class:Dt.print.popupTitle}),i("div",{ref:t=>this.popupContentEl=t,class:Dt.print.popupContent}))}renderExtraContent(){return i("div",{class:Dt.print.extraContainer,id:"export-content",ref:t=>this.extraContainerEl=t})}renderImg(){const t=this.includeMap?this.renderPrintMap():null;const n=this.includeMap&&this.showIncludeLegend?this.renderLegend():null;let s;if(this.includeMap&&this.showIncludePopup){s=this.renderPopup()}else if(this.showExtraContentInImg&&this.extraContent&&this.includeExtraContent){s=this.renderExtraContent()}return i("div",{ref:t=>this.printContainerEl=t},i("div",{class:Dt.print.imgBase,ref:t=>this.printEl=t},t,n,s))}optionOnChange(t){const n=t.target;const{checked:i,value:s}=n;this[s]=i;this.updateExportOutput()}updateHeaderTitle(t){const n=t.target;this.headerTitle=n.value;this.updateExportOutput()}async exportOnClick(){this.removeScreenshotElements();await this.beforeExport();if(this.viewWrapperEl&&this.compassContainerEl&&!this.viewWrapperEl.contains(this.compassContainerEl)){this.viewWrapperEl.append(this.compassContainerEl)}void this.handleViewExportOnClick();if(this.popoverEl){this.popoverEl.open=false}}async exportPreviewOnClick(){if(this.selectedFileType==="PDF"){await this.exportPDF()}else{this.exportImg()}}async exportPDF(){this.removeScreenshotElements();await this.beforeExport();if(this.viewWrapperEl&&this.compassContainerEl&&!this.viewWrapperEl.contains(this.compassContainerEl)){this.viewWrapperEl.append(this.compassContainerEl)}void this.handleViewExportOnClick();if(this.popoverEl){this.popoverEl.open=false}}exportImg(){this.resetPopupVisibility();if(!this.dataUrl){return}const t=document.createElement("a");t.id="download-link";t.href=this.dataUrl;t.download=this.headerTitle??document.title;t.click();this.dataUrl=null;this.exportIsLoading=false;this.removeScreenshotElements();this.resetPrintContent()}async handleViewExportOnClick(){if(this.view){this.addPrintStyling();if(this.printEl){document.body.prepend(this.printEl)}this.handleExtraContent();if(this.includeMap){this.updateScaleBar();void this.viewScreenshot();this.handleImgLoaded()}else{this.handleImgLoaded()}}else{if(this.popoverEl){this.popoverEl.open=false}}}addPrintStyling(){if(!this.printStyleEl){this.printStyleEl=document.createElement("style");this.printStyleEl.innerHTML=Et;document.body.prepend(this.printStyleEl)}}handleImgLoaded(){this.exportIsLoading=true;const t=1500;setTimeout((()=>{if(this.selectedFileType==="PDF"){this.exportIsLoading=false}this.setupViewPrintElements()}),t)}handleExtraContent(){if(!this.printEl){return}const t=this.printEl.querySelector("#export-content");if(t){t.innerHTML="";const n=this.extraContent&&this.includeExtraContent;const i=this.selectedFileType!=="PDF"&&this.showExtraContentInImg&&n;this.printEl.classList.toggle(Dt.print.imgExtraContent,i);if(n){t.style.display="block";t.append(this.extraContent.cloneNode(true))}else{t.style.display="none"}}else if(this.showExtraContentInImg&&this.selectedFileType!=="PDF"&&!this.includeExtraContent){this.printEl.classList.toggle(Dt.print.imgExtraContent,false)}}resetPrintContent(){if(!this.view||!this.printEl){return}this.screenshot=null;this.printContainerEl?.prepend(this.printEl);this.printStyleEl?.remove();this.tmpPopupTitleEl?.remove();this.printStyleEl=undefined;const t=this.printEl.querySelector("#export-content");if(t){t.innerHTML=""}}async updatePopupToPrint(){if(!this.view||!this.popupContainerEl||!this.printEl){return}this.popupContainerEl.style.display=this.includePopup&&this.view?.popup?.visible?"block":"none";this.checkPopupOpen();const t=this.includePopup&&(this.view?.popup?.visible||this.popupHiddenByMapArea)&&this.view?.popup?.selectedFeature;this.printEl.classList.toggle(Dt.print.imgExtraContent,this.selectedFileType!=="PDF"&&!!t);if(t){const t=document.createElement(`h${this.view?.popup?.headingLevel??2}`);t.innerHTML=this.view?.popup?.title??"";t.className="esri-widget__heading esri-popup__header-title";if(!this.popupTitleEl){this.tmpPopupTitleEl=document.createElement("div");this.tmpPopupTitleEl.prepend(t);this.tmpPopupTitleEl.style.display=this.view?.popup?.title?"block":"none";this.popupContainerEl.prepend(this.tmpPopupTitleEl)}else{this.popupTitleEl.style.display=this.view?.popup?.title?"block":"none";this.popupTitleEl.innerHTML="";this.popupTitleEl.prepend(t)}}}updateExportOutput(){this.output={};if(this.showHeaderTitle){this.output.headerTitle=this.headerTitle}if(this.showIncludeLegend){this.output.includeLegend=this.includeLegend}if(this.showIncludeMap){this.output.includeMap=this.includeMap}if(this.showIncludePopup){this.output.includePopup=this.includePopup}this.exportOutputUpdated.emit()}setupViewPrintElements(){if(!this.view){return}this.handleLegendSetup();if(this.selectedFileType==="PDF"){const t=document.title;if(this.showHeaderTitle&&this.headerTitle){document.title=this.headerTitle}window.print();document.title=t;const n=1e3;setTimeout((()=>{this.resetPrintContent()}),n)}else{void this.convertToImage()}}async convertToImage(){if(!this.printEl){return}const t={backgroundColor:"#FFF",skipFonts:true};let n="";try{if(this.selectedFileType==="JPG"){n=await St(this.printEl,t)}else{n=await Ct(this.printEl,t)}}catch{this.logoImage=undefined;const i=500;await new Promise((t=>setTimeout(t,i)));n=await St(this.printEl,t)}finally{this.handleGetImage(n)}}handleGetImage(t){this.resetPrintContent();if(!t){return}this.dataUrl=t;this.setMapAreaOnClick(false);this.showPreview(t);this.view?.container?.classList.remove("screenshot-cursor");this.setMaskPosition(null)}handleLegendSetup(){if(this.showIncludeLegend&&this.view&&this.includeMap&&this.legendContainerEl){const t=this.legend&&this.legend.activeLayerInfos?.length>0;this.legendContainerEl.style.display=this.includeLegend&&t?"block":"none"}}handleWidgetCreation(){if(this.includeMap){this.handleLegendCreation();this.handleCompassCreation();void this.updatePopupToPrint()}}handleIncludePopup(){if(!this.handles||!this.reactiveUtils||!this.view||!this.showIncludePopup){return}const t="includePopup";this.handles.remove(t);void this.reactiveUtils.whenOnce((()=>this.view?.ready)).then((()=>{if(!this.reactiveUtils||!this.handles){return}this.handles.add(this.reactiveUtils.watch((()=>this.view?.popup?.visible===true),(t=>{if(this.settingMapArea){return}this.includePopup=t})),t)}))}handleLegendCreation(){if(this.view&&this.showIncludeLegend&&this.legendContainerEl){const t=this.view.map;const n=this.legend?.view?.map;const i=t?.portalItem?.id&&t?.portalItem?.id===n?.portalItem?.id;if(!i){this.updateLegend()}}}updateLegend(){void this.view?.when((async t=>{if(this.legend){this.legend.destroy();this.legend=null}if(this.legendContainerEl){this.legendContainerEl.innerHTML="";const n=document.createElement("div");this.legendContainerEl.append(n);this.legend=await p({container:n,view:t,respectLayerDefinitionExpression:true,style:{type:"card",layout:"side-by-side"}})}}))}handleCompassCreation(){if(this.view&&this.compassContainerEl){const t=this.view.map;const n=this.compass?.view?.map;const i=t?.portalItem?.id===n?.portalItem?.id;if(!i){this.updateCompass()}}}updateCompass(){void this.view?.when((async t=>{if(this.compass){this.compass.destroy();this.compass=null}const n=document.createElement("div");this.compassContainerEl?.append(n);this.compass=await h({container:n,view:t})}))}updateScaleBar(){if(this.scaleBarContainerEl&&this.view){this.scaleBarContainerEl.innerHTML="";if(this.showScaleBar){const t=this.view?.ui?.getComponents();const n=t?.find((({container:t})=>t?.className?.includes("esri-scale-bar")));if(n?.container&&typeof n.container!=="string"){this.scaleBarContainerEl.append(n.container.cloneNode(true))}}}}async viewScreenshot(){if(this.view&&this.includeMap){if(!this.screenshot){const t=1e3;this.scaleBarContainerEl?.classList.toggle("instant-apps-export-print__scale-bar-container--position",this.view.width>t);this.screenshot=await this.view.takeScreenshot({width:this.view.width*2,height:this.view.height*2})}this.handleScaleBarSize();if(this.viewEl&&this.viewWrapperEl){const{height:t,width:n}=this.screenshot.data;if(t>n){this.setMaxRowHeightOnViewContainer()}else{this.setMaxWidthOnViewContainer()}this.viewEl.src=this.screenshot.dataUrl}}}setMaxRowHeightOnViewContainer(){if(this.selectedFileType==="PDF"&&this.printEl){this.printEl.style.gridTemplateRows="minmax(auto, 70%)"}if(this.viewEl){this.viewEl.style.height="100%";this.viewEl.style.width=""}if(this.viewWrapperEl){this.viewWrapperEl.style.height="100%";this.viewWrapperEl.style.width="fit-content"}}setMaxWidthOnViewContainer(){if(this.printEl){this.printEl.style.gridTemplateRows=""}if(this.viewEl){this.viewEl.style.width="100%";this.viewEl.style.height=""}if(this.viewWrapperEl){this.viewWrapperEl.style.height="fit-content";this.viewWrapperEl.style.width="100%"}}checkPopupOpen(){if(this.view){const t=this.view?.popup?.container;const n=t?.querySelector(".esri-popup .esri-feature__main-container");if(n&&this.popupContentEl){const t=n.querySelectorAll("canvas");this.popupContentEl.innerHTML="";this.popupContentEl.append(n.cloneNode(true));const i=this.popupContentEl.querySelectorAll("canvas");t.forEach(((t,n)=>{const s=t.toDataURL();const e=document.createElement("img");e.src=s;const r=t.getAttribute("style");if(r){e.setAttribute("style",r)}const a=i[n];if(a){a.replaceWith(e);if(o(this.el)==="dark"&&e.parentElement?.parentElement){e.parentElement.style.background="#242424";e.parentElement.parentElement.style.background="#242424"}}}))}}}createScreenshot(){if(this.view){this.screenshotPreview=document.createElement("div");this.screenshotPreview.className="screenshot-preview hide";this.screenshotImgContainer=document.createElement("div");this.screenshotImgContainer.className="screenshot-img-container";this.screenshotImg=document.createElement("img");const t=document.createElement("div");const n=document.createElement("calcite-button");const i=document.createElement("calcite-button");n.innerHTML=this.selectedFileType==="PDF"?this.messages?.export:this.messages?.downloadImage;i.innerHTML=this.messages?.returnToMap;i.appearance="outline-fill";n.onclick=this.exportPreviewOnClick.bind(this);i.onclick=this.screenshotReturn.bind(this);t.append(i,n);this.screenshotImgContainer.append(this.screenshotImg,t);this.screenshotPreview.append(this.screenshotImgContainer);this.view?.container?.append(this.screenshotPreview)}}createMaskDiv(){if(this.view){this.maskDivEl=document.createElement("div");this.maskDivEl.id="screenshot-mask";this.maskDivEl.className="hide screenshot-cursor";this.maskDivEl.style.setProperty("--instant-apps-screenshot-mask-background",this.maskBackground);this.maskDivEl.style.setProperty("--instant-apps-screenshot-mask-border",this.maskBorder);this.screenshotStyle=document.createElement("style");this.screenshotStyle.innerHTML=Ft;this.view?.container?.append(this.screenshotStyle);this.view?.container?.append(this.maskDivEl)}}screenshotReturn(){this.removeScreenshotElements();this.exportIsLoading=false;this.screenshot=null;this.resetPopupVisibility()}setMapAreaOnClick(t){if(!this.view){return}this.settingMapArea=true;if(t){if(this.view?.popup?.visible){this.popupHiddenByMapArea=true;const t=this.view?.popup?.container;if(t){t.style.display="none"}}}this.exportIsLoading=true;this.createMaskDiv();this.createScreenshot();this.view?.container?.classList.add("screenshot-cursor","relative");this.view.addHandles(this.view.on("drag",(t=>{if(!this.view){return}t.stopPropagation();if(t.action!=="end"){this.updateMaskSize(t)}else{this.maskScreenshot()}})),Lt)}updateMaskSize(t){if(this.view){const n=this.clamp(Math.min(t.origin.x,t.x),0,this.view.width);const i=this.clamp(Math.max(t.origin.x,t.x),0,this.view.width);const s=this.clamp(Math.min(t.origin.y,t.y),0,this.view.height);const e=this.clamp(Math.max(t.origin.y,t.y),0,this.view.height);this.area={x:n,y:s,width:i-n,height:e-s};this.setMaskPosition(this.area)}}maskScreenshot(){if(this.view&&this.area){this.view.removeHandles(Lt);const t=this.area.height;const n=this.area.width;if(this.showScaleBar){const t=1e3;const i=.75;const s=this.view.width>t&&this.view.width*i<n;this.scaleBarContainerEl?.classList.toggle("instant-apps-export-print__scale-bar-container--position",s)}void this.view.takeScreenshot({area:this.area,width:n*2,height:t*2,format:"jpg"}).then((t=>{this.screenshot=t;this.view?.container?.classList.remove("screenshot-cursor");this.setMaskPosition(null);if(this.selectedFileType==="PDF"){this.showPreview(t?.dataUrl);this.resetPopupVisibility()}else{if(this.viewWrapperEl&&this.compassContainerEl&&!this.viewWrapperEl.contains(this.compassContainerEl)){this.viewWrapperEl.append(this.compassContainerEl)}void this.handleViewExportOnClick();if(this.popoverEl){this.popoverEl.open=false}}}))}}setMaskPosition(t){if(!this.maskDivEl){return}if(t){this.maskDivEl.classList.remove("hide");this.maskDivEl.style.left=`${t.x}px`;this.maskDivEl.style.top=`${t.y}px`;this.maskDivEl.style.width=`${t.width}px`;this.maskDivEl.style.height=`${t.height}px`}else{this.maskDivEl.remove()}}clamp(t,n,i){return t<n?n:t>i?i:t}showPreview(t){if(!t){return}this.screenshotPreview?.classList.remove("hide");if(this.screenshotImg){this.screenshotImg.src=t}}handleScaleBarSize(){if(this.showScaleBar&&this.view?.type==="2d"){if(this.scaleBarContainerEl){const t=this.scaleBarContainerEl.querySelector(".esri-scale-bar__line--top");const n=this.scaleBarContainerEl.querySelector(".esri-scale-bar__line--bottom");this.setScaleBarWidth(t,"top");this.setScaleBarWidth(n,"bottom")}}}setScaleBarWidth(t,n){if(t&&this.screenshot){const i=this.screenshot.data.width/2;const s=Number(t.style.width.replace("px",""));const e=100;const r=s/i*e;this.scaleBarContainerEl?.style.setProperty(`--instant-apps-scale-bar-${n}`,`${r}%`)}}removeScreenshotElements(){this.view?.removeHandles(Lt);this.screenshotPreview?.remove();this.screenshotStyle?.remove()}resetPopupVisibility(){if(this.view&&this.settingMapArea&&this.popupHiddenByMapArea){const t=this.view?.popup?.container;if(t){t.style.display=""}}this.settingMapArea=false;this.popupHiddenByMapArea=false}handleSelectFileType(t){const n=t.target;this.selectedFileType=n.value;if(this.selectedFileType==="PDF"){this.includeMap=this.pdfIncludeMap;if(!this.showExtraContentInImg){this.includeExtraContent=this.pdfIncludeExtraContent}}else{this.pdfIncludeMap=this.includeMap;this.includeMap=true;if(!this.showExtraContentInImg){this.pdfIncludeExtraContent=this.includeExtraContent;this.includeMap=true;this.includeExtraContent=false}}}get el(){return e(this)}static get watchers(){return{includeMap:["watchIncludeMap"],view:["watchView"]}}};jt.style=Tt;export{jt as instant_apps_export};
|
2
|
+
//# sourceMappingURL=p-75b6ba72.entry.js.map
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{r as t,h as e,H as i,g as a}from"./p-6517b6d4.js";import{g as s}from"./p-45a300a8.js";import"./p-5978fda4.js";import"./p-50b205e8.js";class n{constructor(){this.pages=[];this.headerText="";this.pages=[]}setPages(t){this.pages=t;this.setDefaultHeaderText()}setDefaultHeaderText(){this.headerText=!!this.pages.length?this.pages[0].title:""}}const c=":host{--instant-apps-app-guide-width:300px;--instant-apps-app-guide-height:400px;--instant-apps-app-guide-list-item-bubble-size:22px;width:var(--instant-apps-app-guide-width);height:var(--instant-apps-app-guide-height);display:block}:host calcite-panel{max-width:var(--instant-apps-app-guide-width);max-height:var(--instant-apps-app-guide-height);display:flex}:host calcite-carousel{flex:1;height:fit-content;background-color:var(--calcite-color-foreground-1);overflow:auto}:host [slot=header-content]{display:flex;gap:var(--calcite-spacing-sm);padding-inline-start:0.25rem;font-weight:var(--calcite-font-weight-bold)}:host calcite-carousel-item{flex-grow:1;display:flex;flex-direction:column}:host .instant-apps-app-guide__content-wrapper{padding-block-start:0.5rem;padding-inline:0.5rem;flex-shrink:1;flex-grow:0}:host calcite-icon{--calcite-ui-icon-color:var(--calcite-color-brand)}:host .instant-apps-app-guide__content-list{counter-set:item-counter;margin-inline:0;padding-inline-start:var(--calcite-spacing-xxxl);padding-inline-end:var(--calcite-spacing-lg);position:relative}:host .instant-apps-app-guide__content-list .instant-apps-app-guide__content-list--item{counter-increment:item-counter;margin-block-start:var(--calcite-spacing-lg);display:flex;align-items:flex-start}:host .instant-apps-app-guide__content-list .instant-apps-app-guide__content-list--item::before{content:counter(item-counter);background-color:var(--calcite-color-text-2);color:var(--calcite-color-text-inverse);line-height:var(--calcite-font-line-height-fixed-xl);width:var(--instant-apps-app-guide-list-item-bubble-size);left:0;border-radius:var(--calcite-corner-radius-pill);display:flex;justify-content:center;font-size:var(--calcite-font-size-sm);position:absolute;max-height:var(--instant-apps-app-guide-list-item-bubble-size)}:host .instant-apps-app-guide__content-list .instant-apps-app-guide__content-list--item::marker{color:var(--calcite-color-transparent)}";const r=c;const p={contentList:"instant-apps-app-guide__content-list",contentListItem:"instant-apps-app-guide__content-list--item",contentWrapper:"instant-apps-app-guide__content-wrapper"};const o=class{constructor(e){t(this,e);this._viewModel=new n;this.header=true;this.data=undefined;this.messages=undefined;this.headerText=undefined}watchPropHandler(t){this._setContent(t)}watchStateHandler(t){this._viewModel.headerText=t}componentWillLoad(){this._setContent(this?.data)}componentDidLoad(){s(this)}render(){const t=this._renderAppGuidePages(this._viewModel.pages);const a=this._renderAppGuideHeader();return e(i,{key:"17ec07719a7ea4692912d8c5e51a0ccfcf4fe448"},e("calcite-panel",{key:"fc659c5fcd7ee8370d79e8c6506cc6f55e784e74",scale:"s"},a,e("calcite-carousel",{key:"aa9b07f8ada18253b1a0fb0bfe228e04c81c6021",label:"App Guide",onCalciteCarouselChange:()=>this._updateHeaderText(),ref:t=>this._carouselRef=t,"arrow-type":this._getArrowType()},t)))}_setContent(t){this._viewModel.setPages(t);this.headerText=this._viewModel.headerText}_updateHeaderText(){const{_viewModel:t,_carouselRef:e,messages:i}=this;if(!(t&&e)){return}const a=Array.from(e.childNodes);const s=a.indexOf(e.selectedItem);const n=t?.pages;const c=n?.[s]??n[0];this.headerText=c?.title||i?.headerText}_getArrowType(){return this._viewModel.pages.length>2?"inline":"none"}_renderAppGuideHeader(){const{messages:t,header:i,headerText:a}=this;const s=!!i&&t?.headerText;const n=a||t?.headerText;return s?e("span",{slot:"header-content"},n," ",e("calcite-icon",{icon:"lightbulb",scale:"s"})):null}_renderAppGuidePages(t){return t.map(((t,i)=>{const{content:a,type:s,title:n}=t;return e("calcite-carousel-item",{label:n,key:`page_${i}`},e("div",{class:p.contentWrapper},this._renderContentItems(a,s)))}))}_renderContentItems(t,i){switch(i){case"list":return e("ol",{class:p.contentList},t.map(((t,i)=>e("li",{key:`content-list-item-${i}`,class:p.contentListItem},t))));case"paragraphs":default:return t.map(((t,i)=>e("p",{key:`content-paragraph-${i}`},t)))}}get el(){return a(this)}static get watchers(){return{data:["watchPropHandler"],headerText:["watchStateHandler"]}}};o.style=r;export{o as instant_apps_app_guide};
|
2
|
+
//# sourceMappingURL=p-82b50b9d.entry.js.map
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{r as t,h as n,H as o,g as s}from"./p-6517b6d4.js";import{n as e}from"./p-50b205e8.js";const i=":host{display:block}";const c=i;const a="floating";const r="instant-apps-control-panel";const p="border-bottom: 1px solid var(--calcite-color-border-3)";const d="components";const l=`[slot="${d}"]`;const h=class{constructor(n){t(this,n);this.components=[];this.view=undefined}async componentWillLoad(){this._handleComponents()}componentWillUpdate(){this._handleComponents()}render(){return n(o,{key:"da3ae85d12780699ce3a9172b89f9900122d5065"},n("slot",{key:"a3bf08049e83ce0c59e58214302d9409c6208e3c",name:d}))}_handleComponents(){const t=this._getComponentsNode();if(t){this._resetUI(t);this._attachComponents(t)}}_attachComponents(t){this.components.forEach(this._attachmentComponent(t))}_attachmentComponent(t){return async(n,o)=>{let s=n.content;if(n.isExpand){s=await this._getExpand(n);if(n.expandIcon){s.expandIcon=n.expandIcon}if(n.collapseTooltip){s.collapseTooltip=n.collapseTooltip}if(n.expandTooltip){s.expandTooltip=n.expandTooltip}}if(!s.container){s.container=document.createElement("div")}t?.appendChild(s.container);const e=o!==this.components.length-1;if(e){s.container.style=p}}}async _getExpand(t){const{view:n}=this;const{content:o}=t;const s=t?.expanded??false;return await e({content:o,view:n,expanded:s,mode:a,group:r})}_getComponentsNode(){const t=l;return this.el.querySelector(t)}_resetUI(t){const n=t.children.length>0;if(n){const{firstChild:n}=t;while(n){t.removeChild(n)}}}get el(){return s(this)}};h.style=c;export{h as instant_apps_control_panel};
|
2
|
+
//# sourceMappingURL=p-85727adc.entry.js.map
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{r as a,c as t,h as n,H as s,F as e,g as r}from"./p-6517b6d4.js";import{i,g as l,a as o,s as c,E as p,b as g,l as u,c as h,u as d}from"./p-005a2711.js";import{d as m,L as _}from"./p-45a300a8.js";import{g as f,f as b}from"./p-40992282.js";import{i as y,l as v}from"./p-50b205e8.js";import"./p-eff6e0b8.js";import"./p-5978fda4.js";const w=".sc-instant-apps-language-translator-h{display:block}.sc-instant-apps-language-translator-h calcite-modal.sc-instant-apps-language-translator{--calcite-modal-content-padding:0}.sc-instant-apps-language-translator-h .instant-apps-language-translator__header.sc-instant-apps-language-translator{display:flex;justify-content:space-between;width:100%}.sc-instant-apps-language-translator-h .instant-apps-language-translator__header-text.sc-instant-apps-language-translator{font-size:18px}.sc-instant-apps-language-translator-h .instant-apps-language-translator__saving-indicator.sc-instant-apps-language-translator{display:flex;align-items:center;font-size:14.5px;color:var(--calcite-color-brand)}.sc-instant-apps-language-translator-h .instant-apps-language-translator__writing-icon.sc-instant-apps-language-translator{display:flex;justify-content:center;align-items:center;margin-right:5px}.sc-instant-apps-language-translator-h .instant-apps-language-translator__close-button.sc-instant-apps-language-translator{width:175px}.sc-instant-apps-language-translator-h .instant-apps-language-translator__header-tip.sc-instant-apps-language-translator{padding:20px;max-width:45vw}.sc-instant-apps-language-translator-h .instant-apps-language-translator__top-bar.sc-instant-apps-language-translator{display:flex;width:100%;position:sticky;top:-2%;background:var(--calcite-color-foreground-1);z-index:1}.sc-instant-apps-language-translator-h .instant-apps-language-translator__top-bar.sc-instant-apps-language-translator calcite-label.sc-instant-apps-language-translator{--calcite-label-margin-bottom:0;font-weight:var(--calcite-font-weight-medium)}.sc-instant-apps-language-translator-h .instant-apps-language-translator__top-bar-section.sc-instant-apps-language-translator{box-sizing:border-box;display:flex;align-items:center;width:50%;padding:0.5%}.sc-instant-apps-language-translator-h .instant-apps-language-translator__user-lang-text.sc-instant-apps-language-translator{font-weight:var(--calcite-font-weight-medium)}.sc-instant-apps-language-translator-h .instant-apps-language-translator__top-bar-section.sc-instant-apps-language-translator:first-child{display:flex;justify-content:space-between}.sc-instant-apps-language-translator-h .instant-apps-language-translator__top-bar-section.sc-instant-apps-language-translator:nth-child(2) calcite-select.sc-instant-apps-language-translator{width:255px}.sc-instant-apps-language-translator-h .instant-apps-language-translator__collapse-search-container.sc-instant-apps-language-translator{display:flex;justify-content:space-between}.sc-instant-apps-language-translator-h .instant-apps-language-translator__collapse-search-container.sc-instant-apps-language-translator calcite-input.sc-instant-apps-language-translator{width:300px;margin-left:30px}.sc-instant-apps-language-translator-h .instant-apps-language-translator__primary-content.sc-instant-apps-language-translator{display:flex;align-items:center}.sc-instant-apps-language-translator-h .instant-apps-language-translator__primary-content.sc-instant-apps-language-translator .instant-apps-language-translator__close-button.sc-instant-apps-language-translator,.sc-instant-apps-language-translator-h .instant-apps-language-translator__primary-content.sc-instant-apps-language-translator .instant-apps-language-translator__saving-indicator.sc-instant-apps-language-translator,.sc-instant-apps-language-translator-h .instant-apps-language-translator__primary-content.sc-instant-apps-language-translator .instant-apps-language-translator__last-auto-save.sc-instant-apps-language-translator{margin-right:20px}.ck.ck-reset.ck-editor.ck-rounded-corners.sc-instant-apps-language-translator{margin-top:10px !important;margin-left:55px !important}.ck-editor__editable.sc-instant-apps-language-translator{height:70px !important;font-size:0.875rem !important;line-height:1.375 !important}.ck.ck-editor__editable_inline.sc-instant-apps-language-translator>.sc-instant-apps-language-translator:first-child,.ck.ck-editor__editable_inline.sc-instant-apps-language-translator>.sc-instant-apps-language-translator:last-child{--ck-spacing-large:0.5rem !important}html[dir=rtl] .sc-instant-apps-language-translator-h .instant-apps-language-translator__primary-content.sc-instant-apps-language-translator .instant-apps-language-translator__close-button.sc-instant-apps-language-translator,html[dir=rtl] .sc-instant-apps-language-translator-h .instant-apps-language-translator__primary-content.sc-instant-apps-language-translator .instant-apps-language-translator__saving-indicator.sc-instant-apps-language-translator,html[dir=rtl] .sc-instant-apps-language-translator-h .instant-apps-language-translator__primary-content.sc-instant-apps-language-translator .instant-apps-language-translator__last-auto-save.sc-instant-apps-language-translator{margin-right:unset;margin-left:20px}";const x=w;const S="instant-apps-language-translator";const k={BASE:S,header:`${S}__header`,headerText:`${S}__header-text`,savingIndicator:`${S}__saving-indicator`,closeButton:`${S}__close-button`,headerTip:`${S}__header-tip`,topBar:`${S}__top-bar`,topBarSection:`${S}__top-bar-section`,collapseSearchContainer:`${S}__collapse-search-container`,userLangText:`${S}__user-lang-text`,lastItem:`${S}--last-item`,writingIcon:`${S}__writing-icon`,primaryContent:`${S}__primary-content`,lastAutoSave:`${S}__last-auto-save`};const C=class{constructor(n){a(this,n);this.translatorDataUpdated=t(this,"translatorDataUpdated",7);this.portalItem=undefined;this.appSettings=undefined;this.locales=undefined;this.open=false;this.userLocaleInputOnChangeCallback=undefined;this.translatedLocaleInputOnChangeCallback=undefined;this.saving=false;this.messages=undefined;this.isCollapse=true}handleT9nItemUpdate(){this.translatorDataUpdated.emit()}handleLocaleChange(){this.initUIData();this.initSelectLanguage()}handleAppSettings(){this.initUIData();this.initSelectLanguage()}componentWillLoad(){i()}async componentDidLoad(){this.initialize()}async initialize(){const[a,t]=await Promise.all([y(),v()]);this.intl=a;this.request=t;await this.initMessages();this.initUIData();this.initPortalItemResourceT9nData();this.initSelectLanguage()}async initMessages(){try{const{el:a}=this;const t=await l(a);this.messages=t;return Promise.resolve()}catch{return void await Promise.reject(new Error("Failed to initialize messages"))}}initUIData(){const{appSettings:a,locales:t}=this;const n=o(a,t);c.set("uiData",n)}initSelectLanguage(){if(!this.intl){return}const{locales:a}=this;const t=a?.[0]?.locale??this.intl.getLocale();const n=c.get("currentLanguage");const s=this.locales.filter((a=>a.locale===n)).length===0;if(s){c.set("currentLanguage",t)}}async initPortalItemResourceT9nData(){try{const a=await f(this.portalItem);c.set("portalItemResource",a);const t=await b(a);c.set("lastSave",t.lastSave);c.set("portalItemResourceT9n",t??{})}catch{}}render(){return n(s,{key:"07a133ae824bb08ed75a34471beb7a1b60e40203"},this.renderDialog(),this.renderPopoverTip())}renderDialog(){return n("calcite-dialog",{open:this.open,scale:"l",placement:"cover",onCalciteDialogClose:this.close.bind(this)},this.renderHeader(),this.renderContent(),this.renderPrimaryContent())}renderPopoverTip(){return n("calcite-popover",{label:"",referenceElement:"headerTip",placement:"trailing","auto-close":true,closable:true},n("div",{class:k.headerTip},this.messages?.headerTip))}renderHeader(){return n("header",{class:k.header,slot:"header-content"},this.renderHeaderText())}renderHeaderText(){const{messages:a}=this;return n("div",{class:k.headerText},n("span",null,a?.header),n("calcite-button",{id:"headerTip",appearance:"transparent"},n("calcite-icon",{icon:p.Popover,scale:"s"})))}renderSavingIndicator(){const a=this.messages?.saving;return n("div",{class:k.savingIndicator},n("calcite-loader",{label:a,inline:true}),n("span",null,a))}renderContent(){const a=g(this.locales);return n("div",null,this.renderTopBar(),a?.length>0?this.renderUIData():this.renderNotice())}renderTopBar(){return n("div",{class:k.topBar},this.renderLeadingTopBarSection(),this.renderTrailingTopBarSection())}renderLeadingTopBarSection(){return n("div",{class:k.topBarSection},this.renderUserLocale(),this.renderCollapseSearchContainer())}renderUserLocale(){const a=this.messages?.languages;const t=m();const s=a?.[t];return n("div",{class:k.userLangText},s)}renderCollapseSearchContainer(){return n("div",{class:k.collapseSearchContainer},this.renderExpandCollapseButton(),this.renderSearch())}renderExpandCollapseButton(){const{isCollapse:a,messages:t}=this;const s=a?t?.collapseAll:t?.expandAll;return n(e,null,n("slot",{name:"primary-custom-action"}),n("slot",{name:"secondary-custom-action"}),n("calcite-button",{onClick:this.handleExpandCollapseAll.bind(this),appearance:"transparent","icon-start":p.ExpandCollapse},s))}renderSearch(){return n("instant-apps-language-translator-search",{onSuggestionSelected:this.onSuggestionSelect.bind(this),t9nPlaceholder:this.messages?.searchPlaceholder})}renderTrailingTopBarSection(){return n("div",{class:k.topBarSection},this.renderLanguageSelection(),n("slot",{name:"translation-custom-action"}))}renderLanguageSelection(){return n("calcite-label",{layout:"inline"},this.messages?.translatedLanguage,n("calcite-select",{label:"",onCalciteSelectChange:this.handleLanguageSelection.bind(this)},this.renderTranslatedLangOptions()))}renderTranslatedLangOptions(){const a=c.get("uiData");const t=a?.get("locales");const s=g(t);const e=Object.keys(_.partial);return s?.map((a=>{const t=e.includes(a);const s=t?"partial":"full";const r=_[s];const{language:i,translated:l}=r[a];const o=`${i} - ${l}`;return n("calcite-option",{key:`translated-lang-option-${a}`,value:a},o)}))}renderUIData(){if(!u?.uiData){return}const a=h();return n("div",null,a?.map(((t,n)=>this.renderUIDataItem(t,n,a.length))))}renderNotice(){const a=this.messages?.noLanguage;return n("calcite-notice",{open:true,icon:"exclamation-mark-triangle",kind:"warning"},n("div",{slot:"title"},a?.title),n("div",{slot:"message"},a?.message))}renderUIDataItem(a,t,s){const e=this.appSettings?.translatedLanguageLabels?.[u.currentLanguage];const r=t===s-1?k.lastItem:"";const i=this.appSettings.content.find((t=>t.id===a));return n("instant-apps-language-translator-item",{key:`${a}-${t}`,class:r,fieldName:a,translatedLanguageLabels:e,setting:i,userLocaleInputOnChangeCallback:async(a,t)=>{try{await this.userLocaleInputOnChangeCallback(a,t);const n=c.get("portalItemResource");d(n)}catch{}},translatedLocaleInputOnChangeCallback:async(a,t,n,s)=>{try{await this.translatedLocaleInputOnChangeCallback(a,t,n,s);d(s)}catch{}}})}renderPrimaryContent(){return n("div",{class:k.primaryContent,slot:"footer-end"},c.get("saving")?this.renderSavingIndicator():null,c.get("lastSave")?n("span",{key:"last-save",class:k.lastAutoSave},this.messages?.lastAutoSave," ",this.intl.formatDate(c.get("lastSave"))):null,n("calcite-button",{onClick:()=>this.open=false,class:k.closeButton},this.messages?.close))}handleExpandCollapseAll(){this.isCollapse=!this.isCollapse;const a=new Map(u.uiData);const t=h();t.forEach((t=>a.get(t).expanded=this.isCollapse));c.set("uiData",a)}onSuggestionSelect(a){const t=a.detail;const n=new Map(u.uiData);const s=h();const e=a=>{const s=n.get(a);if(a===t){s.selected=true;return}s.selected=false};s.forEach(e);c.set("uiData",n)}close(){this.open=false}handleLanguageSelection(a){const t=a.target;const n=t.value;c.set("currentLanguage",n)}async getTranslationData(){return c.get("portalItemResourceT9n")}async setTranslationData(a){void c.set("portalItemResourceT9n",a)}async getPortalItemResource(){return c.get("portalItemResource")}async batchWriteToPortalItemResource(a){c.set("saving",true);try{const t=await this.getPortalItemResource();if(!t){c.set("saving",false);return}const n=Date.now();c.set("lastSave",n);const s=JSON.stringify({...a,lastSave:n});const e=[s];const r={type:"application/json"};const i=new Blob(e,r);await t.update(i);setTimeout((()=>c.set("saving",false)),1500);this.translatorDataUpdated.emit();return Promise.resolve()}catch(a){console.error("Error writing to portal item resource: ",a);c.set("saving",false);return await Promise.reject(new Error("Failed to batch write to portal item resource"))}}get el(){return r(this)}static get watchers(){return{locales:["handleLocaleChange"],appSettings:["handleAppSettings"]}}};C.style=x;export{C as instant_apps_language_translator};
|
2
|
+
//# sourceMappingURL=p-88c9829f.entry.js.map
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{r as e,c as n,h as t,g as i}from"./p-6517b6d4.js";import{v as a,g as s}from"./p-a2fbebc1.js";import"./p-eff6e0b8.js";import"./p-50b205e8.js";import"./p-34b74df9.js";const p=".sc-instant-apps-interactive-legend-group-legend-element-caption-h{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}.sc-instant-apps-interactive-legend-group-legend-element-caption-h .esri-widget__heading.sc-instant-apps-interactive-legend-group-legend-element-caption{overflow:hidden}.sc-instant-apps-interactive-legend-group-legend-element-caption-h .esri-widget__heading.sc-instant-apps-interactive-legend-group-legend-element-caption{margin:0;overflow-x:hidden}.sc-instant-apps-interactive-legend-group-legend-element-caption-h .esri-widget__heading.sc-instant-apps-interactive-legend-group-legend-element-caption{display:inline-block;font-size:var(--instant-apps-interactive-legend-heading-font-size)}.sc-instant-apps-interactive-legend-group-legend-element-caption-h .esri-widget__heading.sc-instant-apps-interactive-legend-group-legend-element-caption{font-weight:var(--instant-apps-interactive-legend-heading-font-weight)}.sc-instant-apps-interactive-legend-group-legend-element-caption-h .esri-widget__heading.sc-instant-apps-interactive-legend-group-legend-element-caption header.sc-instant-apps-interactive-legend-group-legend-element-caption{padding:var(--instant-apps-interactive-legend-ui-padding)}.sc-instant-apps-interactive-legend-group-legend-element-caption-h header.sc-instant-apps-interactive-legend-group-legend-element-caption{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)}.sc-instant-apps-interactive-legend-group-legend-element-caption-h header.sc-instant-apps-interactive-legend-group-legend-element-caption h3.sc-instant-apps-interactive-legend-group-legend-element-caption{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)}.sc-instant-apps-interactive-legend-group-legend-element-caption-h header.sc-instant-apps-interactive-legend-group-legend-element-caption .instant-apps-interactive-legend__heading-text--group-item.sc-instant-apps-interactive-legend-group-legend-element-caption{-webkit-line-clamp:2;line-clamp:2}.sc-instant-apps-interactive-legend-group-legend-element-caption-h header.sc-instant-apps-interactive-legend-group-legend-element-caption span.sc-instant-apps-interactive-legend-group-legend-element-caption{width:100%;font-size:var(--instant-apps-interactive-legend-total-feature-count-font-size);color:var(--instant-apps-interactive-legend-secondary-color)}.sc-instant-apps-interactive-legend-group-legend-element-caption-h header.sc-instant-apps-interactive-legend-group-legend-element-caption .instant-apps-interactive-legend__header-action-container.sc-instant-apps-interactive-legend-group-legend-element-caption{display:flex;align-items:center}.sc-instant-apps-interactive-legend-group-legend-element-caption-h .esri-widget__heading.sc-instant-apps-interactive-legend-group-legend-element-caption header.sc-instant-apps-interactive-legend-group-legend-element-caption{padding:var(--instant-apps-interactive-legend-ui-padding)}.sc-instant-apps-interactive-legend-group-legend-element-caption-h .esri-widget--panel.sc-instant-apps-interactive-legend-group-legend-element-caption{margin:0}.calcite-mode-dark.sc-instant-apps-interactive-legend-group-legend-element-caption-h .instant-apps-interactive-legend__header.sc-instant-apps-interactive-legend-group-legend-element-caption{background-color:#242424;color:var(--calcite-color-text-1)}.calcite-mode-light.sc-instant-apps-interactive-legend-group-legend-element-caption-h .instant-apps-interactive-legend__header.sc-instant-apps-interactive-legend-group-legend-element-caption{background-color:#ffffff;color:var(--calcite-color-text-1)}";const c=p;const r={label:"esri-legend__service-label",header:"esri-widget__heading",interacitveLegendHeader:"instant-apps-interactive-legend__header",headerActionContainer:"instant-apps-interactive-legend__header-action-container"};const l=class{constructor(t){e(this,t);this.groupLayerCaptionElementExpandUpdatedEvent=n(this,"groupLayerCaptionElementExpandUpdated",7);this.legendvm=undefined;this.featureCount=undefined;this.activeLayerInfo=undefined;this.messages=undefined;this.isChild=false;this.expanded=true}render(){const e=a(this.activeLayerInfo);const{expanded:n}=this;const i=n?this.messages?.collapse:this.messages?.expand;const p=this.isChild?" instant-apps-interactive-legend__heading-text--group-item":"";return t("header",{key:"54b3774af9d12ff52ca01429e1edc5aa987481dd",class:`${r.interacitveLegendHeader} ${s(this.el)}`,style:{borderLeft:"1px solid var(--calcite-color-border-3)"}},t("span",{key:"ec9dfadf2376efd474b0333cb6f7d5ddb47c19c8"},t("span",{key:"1ea320fc3b7cd497c5d388d4c7fe7382289a8420",class:r.headerActionContainer},t("calcite-action",{key:"9bd10275be0564e1ec044df25944f4b2b559fe1e",onClick:this.toggleExpanded(),icon:n?"chevron-down":"chevron-up",appearance:"transparent",text:i,label:i,scale:"s"}),t("h3",{key:"3cdfbad64a12e8b968ca8c225b457793721cf59e",class:`${r.header} ${r.label}${p}`,title:this.activeLayerInfo?.title??""},this.activeLayerInfo?.title)),this.featureCount&&e?t("instant-apps-interactive-legend-count",{activeLayerInfo:this.activeLayerInfo,"show-total":true,messages:this.messages,legendvm:this.legendvm}):null))}toggleExpanded(){return()=>{this.expanded=!this.expanded;this.groupLayerCaptionElementExpandUpdatedEvent.emit(this.expanded)}}get el(){return i(this)}};l.style=c;export{l as instant_apps_interactive_legend_group_legend_element_caption};
|
2
|
+
//# sourceMappingURL=p-9ef92300.entry.js.map
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{c as t}from"./p-eff6e0b8.js";import{h as n,j as s}from"./p-50b205e8.js";import{g as e}from"./p-34b74df9.js";const c=t({data:{},relationshipRampExpandStates:{},compact:false});const o=c.state;const i=c;function r(t,n,s){return e=>{const c=e?.layer?.type;if(c==="feature"||c==="group"){const c=a(n,e,s).then((t=>t));if(c){t.push(c)}const o=e=>{const c=a(n,e,s).then((t=>t));if(c){t.push(c)}};e.children.forEach((t=>{o(t);if(t?.children?.length>0){t.children.forEach((t=>{o(t);if(t?.children?.length>0){t.children.forEach((t=>{o(t)}))}}))}}))}}}async function a(t,n,s){try{const e=n?.layer?.type==="group";const c=n?.layer?.layers?.some((t=>t.visible));const o=n?.layer?.layers?.every((t=>!t?.legendEnabled));await s.whenOnce((()=>t?.state==="ready"));if(!e||e&&c){if(e&&o){await s.whenOnce((()=>n?.layer?.loaded))}else{await s.whenOnce((()=>n?.ready))}}else{await s.whenOnce((()=>n?.legendElements))}const i=n?.legendElements?.[0];const r=new Map;const a=n.layer;const f=await(t?.view?.whenLayerView(a));const l=a.renderer?.field??"";if(i!==undefined){i?.infos?.forEach((t=>{const n=t.type==="symbol-table";if(n){const n=[];t.infos.forEach((t=>{const s={count:null,selected:false,legendElementInfo:t};n.push(s)}));const s={count:null,selected:false,legendElementInfo:t,nestedInfos:n};r.set(t.title,s)}else{const n={count:null,selected:false,legendElementInfo:t};r.set(t.label??a.id,n)}}))}const u=[];return Promise.resolve({activeLayerInfo:n,title:f?.layer?.title,categories:r,field:l,queryExpressions:u,totalCount:null,fLayerView:f,legendElement:i})}catch{return await Promise.resolve(null)}}async function f(t,n){const s={};const e=[];t.activeLayerInfos.forEach(r(e,t,n));try{const t=await Promise.all(e);t.forEach((t=>{const n=t?.activeLayerInfo?.layer?.id;s[n]=t}));return Promise.resolve(s)}catch(t){return await Promise.reject(new Error("Failed to generate data"))}}function l(t){return Array.from(t,(t=>t[1]))}function u(t,n,s,e,c){return e?e?.nestedInfos?.[c]:t?.categories?.get(s?.label??n?.id)}function $(t){return o?.data?.[t?.id]}async function d(t,c,o,i,r){const{queryExpressions:a,fLayerView:f}=t;y(t,c,o,r);const l=a.every((t=>t&&t.includes("<>")))?" AND ":" OR ";const u=a.join(l);const $=f?.filter?.timeExtent??f?.featureEffect?.filter?.timeExtent??null;const{type:d}=i;if(d==="filter"){f.filter=await n({where:u,timeExtent:$})}else{if(i.effect){const{includedEffect:t,excludedEffect:c}=i.effect;const o=await e(c,f,"excludedEffect");const r=await e(t,f,"includedEffect");f.featureEffect=await s({filter:await n({where:u,timeExtent:$}),includedEffect:r,excludedEffect:o})}}return void await Promise.resolve()}function m(t,n){const s=n?n?.layer?.renderer?.authoringInfo:null;const e=s?s.fields:null;const c=[];if(!e){return""}if(Object.hasOwn(t,"value")){e.forEach((n=>{if(t.value===n){return}const s=`(${t.value} > ${n} OR (${n} IS NULL AND ${t.value} IS NOT NULL AND (${t.value} > 0 OR ${t.value} < 0)))`;c.push(s)}));return c.join(" AND ")}else{const t=[];e.forEach((n=>{t.push(`${n} = 0`)}));const n=[];if(e.length>2){e.forEach((t=>{e.forEach((s=>{if(t===s){return}const c=[];e.forEach((n=>{if(t===n||s===n){return}c.push(`${t} = ${s} AND (${t} > ${n} OR ${t} >= ${n})`)}));n.push(`(${c.join(" AND ")})`)}))}));const s=[];e.forEach((t=>{s.push(`${t} IS NULL`)}));const c=`(${t.join(" AND ")}) OR (${n.join(" OR ")}) OR (${s.join(" AND ")})`;return c}else{const n=[];e.forEach((s=>{e.forEach((e=>{if(s===e){return}n.push(`${s} = ${e}`);n.push(`(${t.join(" AND ")})`)}))}));const s=[];e.forEach((t=>{e.forEach((n=>{if(t===n){return}s.push(`(${t} = 0 AND ${n} IS NULL) OR (${t} IS NULL AND ${n} IS NULL)`)}))}));return`(${n.join(" OR ")}) OR (${s.join(" OR ")})`}}}function y(t,n,s,e){const{field:c,legendElement:o,categories:i,fLayerView:r}=t;const a=t?.queryExpressions;if(e){const n=Array.from(t.categories).map((t=>t[1]));n.forEach((t=>{const n=t.nestedInfos?.every((t=>!t.selected));if(n){t.nestedInfos?.forEach((t=>{const n=c?`${c} = '${t.legendElementInfo.value}'`:null;const s=n?a.indexOf(n):-1;if(n&&s!==-1){a.splice(s,1)}}))}}))}const f=o?.infos;const l=w(r);const u=l?m(n,r):N(n,c,s,o,f??[],"");const $=i?e?i.get(e.title)?.nestedInfos?.[s]:i.get(n.label??r?.layer?.id):null;if($){$.selected=!$?.selected}const d=f&&f.length===1;const y=a.indexOf(u);if(l){const t=a.indexOf(u);if(a.length===0||t===-1){if(a&&a[0]==="1=0"){a.splice(0,1)}a.push(u)}else if(a&&a.length===1&&u===a[0]){a[0]="1=0"}else if(a&&a.length===1){a[0]=u}else if(a.length===1&&u!==a[0]&&a[0]==="1=0"){a[0]=u}else if(a.length===1&&u===a[0]&&a[0]==="1=0"){a[0]=null}else{a.splice(t,1)}a.join(" OR ")}else if(a.length===0||y===-1){if(a&&a[0]==="1=0"){a.splice(0,1)}a.push(u)}else if(a&&a.length===1&&u===a[0]&&!d){a[0]="1=0"}else if(a&&a.length===1&&!d){a[0]=u}else if(a.length===1&&u!==a[0]&&a[0]==="1=0"&&!d){a[0]=u}else if(a.length===1&&u===a[0]&&a[0]==="1=0"&&!d){a[0]=null}else{a.splice(y,1)}if(e){const n=[];const s=Array.from(t.categories).map((t=>t[1]));s.forEach((t=>{const s=t.nestedInfos?.every((t=>!t.selected));if(s){t.nestedInfos?.forEach((t=>{const s=c?`${c} = '${t.legendElementInfo.value}'`:null;if(s){n.push(`${c} = '${t.legendElementInfo.value}'`)}}))}}));n.forEach((t=>{if(!a.includes(t)){a.push(t)}}))}}function N(t,n,s,e,c,o){const{value:i}=t;if(e?.type==="symbol-table"){if(!Object.hasOwn(t,"value")||Array.isArray(t.value)&&c?.length===1){if(Object.hasOwn(c?.[0],"value")&&Array.isArray(c?.[0].value)&&Object.hasOwn(c?.[c.length-2],"value")&&Array.isArray(c?.[c.length-2].value)){const t=o?`((${n}/${o}) > ${c?.[0].value[1]}) OR ((${n}/${o}) < ${c?.[c.length-2].value[0]}) OR ${o} = 0 OR ${o} IS NULL`:`${n} > ${c?.[0].value[1]} OR ${n} < ${c?.[c.length-2].value[0]} OR ${n} IS NULL`;return t}else if(c?.length===1){return"1=0"}else{const t=[];c?.forEach((s=>{if(s?.value){const{value:e}=s;const c=e.indexOf("'")!==-1?e.split("'").join("''"):null;const o=c?`${n} <> '${c}'`:isNaN(e)||typeof e==="string"&&!e.trim()?`${n} <> '${e}'`:`${n} <> ${e} AND ${n} <> '${e}'`;t.push(o)}}));const s=t.join(" AND ");return n&&s?`${s} OR ${n} IS NULL`:""}}else{const e=i.indexOf("'")!==-1?i.split("'").join("''"):null;const r=Array.isArray(t.value);const a=c&&c.length-1===s;const f=!Object.hasOwn(c?.[c.length-1],"value");const l=c&&c.length-2===s;const u=r?o?a||f&&l?`(${n}/${o}) >= ${i[0]} AND (${n}/${o}) <= ${t.value[1]}`:`(${n}/${o}) > ${i[0]} AND (${n}/${o}) <= ${t.value[1]}`:a||f&&l?`${n} >= ${i[0]} AND ${n} <= ${i[1]}`:`${n} > ${i[0]} AND ${n} <= ${i[1]}`:c?.length===1&&n?isNaN(i)||!i.trim().length?`${n} <> '${i}'`:`${n} <> ${i} OR ${n} <> '${i}'`:e?`${n} = '${e}'`:isNaN(i)||!i.trim().length?`${n} = '${i}'`:`${n} = ${i} OR ${n} = '${i}'`;return u}}else{return""}}function p(t){if(Array.isArray(t)){return t.every((t=>!t.selected))}else{return t&&Array.from(t.categories.entries()).every((t=>!t[1].selected))&&t.queryExpressions[0]!=="1=0"}}function w(t){const n=t?.layer?.renderer?.authoringInfo?.type;return n==="predominance"}function A(t){return t?.legendElements[1]?.type==="relationship-ramp"}function O(t,n,s){const e=t.layer;const c=e?.renderer?.field;const o=n?.type;const i=t?.layerView;const r=i?.layer?.renderer?.classBreakInfos;const a=i?.layer?.renderer?.uniqueValueInfos&&c;const f=o==="size-ramp";const l=o==="color-ramp";const u=o==="opacity-ramp";const $=o==="heatmap-ramp";const d=i&&r&&r.length>1;const m=i?.layer?.renderer?.authoringInfo?.type;const y=m==="class-breaks-color";const N=m==="class-breaks-size";const p=n?.infos?.length===1&&!c;const A=m==="relationship"&&n?.type!=="size-ramp"&&n?.type!=="symbol-table";const O=t?.layer?.type==="feature";const b=O&&c&&!l&&!f&&d;const R=!!(O&&c&&!l&&!f&&!d);const E=!!(R||w(i)&&!f||y&&c||N&&c||p&&!c&&c!==null||A||a);const L=t?.layer?.featureReduction&&t?.legendElements?.[s]?.type==="size-ramp";const D=n?.type==="symbol-table"&&n?.infos?.length===1;const I=!t?.legendElements.every((t=>t.type!=="color-ramp"));const g=!t?.legendElements.every((t=>t.type!=="size-ramp"));const x=D&&I;const h=D&&g;const j=n?.infos?.every((t=>typeof t.value==="number"));const P=t?.legendElements?.[0]?.type==="symbol-table"&&t?.legendElements?.[1]?.type==="color-ramp";const v=m==="dot-density";const S=V(t?.layer,c);const U=O&&!L&&!u&&!$&&!x&&!h&&!j&&!P&&!v&&S?r?b||E:R||E:false;return U}function b(t){t.queryExpressions=[];if(t?.fLayerView?.filter?.where){t.fLayerView.filter.where=""}if(t?.fLayerView?.featureEffect?.filter?.where){t.fLayerView.featureEffect=null}t.categories.forEach((t=>{t.selected=false}));return t}function R(t,n){const s=t.categories.get(n);s?.nestedInfos?.forEach((n=>{const s=`${t.field} = '${n.legendElementInfo.value}'`;const e=t.queryExpressions.indexOf(s);if(e!==-1){t.queryExpressions.splice(e,1)}n.selected=false}));const e=[];const c=Array.from(t.categories).map((t=>t[1]));c.forEach((n=>{const s=n.nestedInfos?.every((t=>!t.selected));if(s){n.nestedInfos?.forEach((n=>{e.push(`${t.field} = '${n.legendElementInfo.value}'`)}))}}));e.forEach((n=>{if(!t.queryExpressions.includes(n)){t.queryExpressions.push(n)}}));const o=t.queryExpressions.join(" OR ");const i=c.every((t=>t.nestedInfos?.every((t=>!t.selected))));if(i){if(t?.fLayerView?.filter?.where){t.fLayerView.filter.where=""}if(t?.fLayerView?.featureEffect?.filter?.where){t.fLayerView.featureEffect=null}t.queryExpressions=[]}else{if(t?.fLayerView?.filter?.where){t.fLayerView.filter.where=o}if(t?.fLayerView?.featureEffect?.filter?.where){t.fLayerView.featureEffect.filter.where=o}}return t}async function E(t,n,s){const e=t.fLayerView.createQuery();if(s){const n=s.nestedInfos.every((t=>!t.selected));if(n){const n=s.nestedInfos.map((n=>`${t.field} = '${n.legendElementInfo.value}'`)).join(" OR ");e.where=n}else{const n=s.nestedInfos.filter((t=>t.selected)).map((n=>`${t.field} = '${n.legendElementInfo.value}'`)).join(" OR ");e.where=n}}else{const n=t.queryExpressions.join(" OR ");e.where=n}try{const{extent:s}=await t.fLayerView.layer.queryExtent(e);await n.goTo(s)}catch{}}function L(t){const n=t.map((t=>t?.count)).reduce(((t,n)=>t+n));return n}function D(t){return t.map((t=>t?.nestedInfos?.map((t=>t.count)).reduce(((t,n)=>t+n)))).reduce(((t,n)=>t+n))}async function I(t,n,s,e,c,o,i,r){if(!n){return}const a=V(n?.layer,s);if(!a){return}const f=n?.layer?.type==="feature"?n.createQuery():null;const l=w(n)?m(e,n):e.type?N(i,s,r,e,e.infos):N(e,s,c,o,o.infos);if(f&&l){f.where=l==="1=0"?"1=1":l;if(t){f.geometry=t}}try{const t=f?await n.queryFeatureCount(f):null;return Promise.resolve({[e.label??n?.layer?.id]:t})}catch(t){console.error("FAILURE AT 'getInfoCount': ",t)}return await Promise.resolve(null)}async function g(t,n){const s={...n};const{activeLayerInfos:e}=t;const c=t?.view?.extent;const o={};const i={};e.forEach((async t=>{const s=t.legendElements[0];const e=t.layer;const o=n[t?.layer?.id]?.fLayerView;const r=e.renderer?.field;const a=[];i[t.layer.id]=[];s?.infos?.forEach(((n,e)=>{const f=s.infos?.every((t=>t.type==="symbol-table"));if(f){const a=[];n.infos.forEach(((t,i)=>{const f=I(c,o,r,n,e,s,t,i);a.push(f)}));i[t.layer.id].push(a)}else{a.push(I(c,o,r,n,e,s));i[t.layer.id]=a}}));const f=t=>{const s=[];const e=t.legendElements[0];const o=t.layer;const r=n[t?.layer?.id]?.fLayerView;const a=o.renderer?.field;e?.infos?.forEach(((t,n)=>s.push(I(c,r,a,t,n,e))));i[t.layer.id]=s};t.children.forEach((async t=>{f(t);if(t?.children?.length>0){t.children.forEach((t=>{f(t);if(t?.children?.length>0){t.children.forEach((t=>{f(t)}))}}))}}))}));for(const t in i){let n=o[t];if(!n){n=o[t]={}}const s=await Promise.all(i[t]);if(s.every((t=>Array.isArray(t)))){const e=await Promise.all(s.map((async t=>{const n=await Promise.all(t);const s=n.map((t=>t&&Object.values(t)[0]));return s})));n[t]=e;o[t]={...n[t]}}else{const e={};s.forEach((t=>{if(!t){return}const n=Object.keys(t)[0];e[n]=t[n]}));if(t){n[t]=e}o[t]={...n[t]}}}e.forEach((t=>{const s=n[t.layer.id];const e=t.layer.id;const c=s.categories;c.forEach(((n,c)=>{const i=Array.from(s?.categories);const r=i.findIndex((t=>t[0]===c));if(n?.nestedInfos){n?.nestedInfos.forEach(((n,s)=>{const e=o?.[t?.layer?.id]?.[r]?.[s];n.count=!isNaN(e)?e:null}))}else{const t=o?.[e]?.[c];n.count=!isNaN(t)?t:null}}));const i=t=>{const s=t.layer.id;const e=n[s];e?.categories?.forEach(((t,n)=>{const e=o?.[s]?.[n];t.count=e}))};t.children.forEach((t=>{i(t);if(t?.children?.length>0){t.children.forEach((t=>{i(t);if(t?.children?.length>0){t.children.forEach((t=>{i(t)}))}}))}}))}));return await Promise.resolve(s)}function x(t,n){return t?.nestedInfos?.[n]}function h(t){const n=Array.from(t).map((t=>t[1]));return n.every((t=>!!t?.nestedInfos))}function j(t){return!!t?.legendElements?.[0]?.infos?.every?.((t=>t?.type==="symbol-table"))}function P(t,n){return t?.categories?.get(n?.title)}function v(t){const n=`calcite-mode-`;const s=`${n}light`;const e=`${n}dark`;const c=t.classList.contains(e);return c?e:s}function S(t){if(t.layerId&&t.intLegendLayerData){const n=t.layerId;const s=t.intLegendLayerData;const e={...o.data,[n]:s};i.set("data",e)}}function U(t,n){const{type:s}=t;if(s==="filter"){z(n)}else if(s==="effect"){k(t,n)}}function z(t){t?.allLayerViews?.filter((t=>t?.layer?.type==="feature"))?.forEach((t=>{const n=t;const s=q(n);n.filter=s;n.set("featureEffect",null)}))}function k(t,n){n?.allLayerViews?.filter((t=>t?.layer?.type==="feature")).forEach((async n=>{const c=n;if(t?.effect&&c){const{includedEffect:n,excludedEffect:o}=t.effect;const i=await e(o,c,"excludedEffect");const r=await e(n,c,"includedEffect");const a=q(c);c.featureEffect=await s({filter:a,includedEffect:r,excludedEffect:i});c.set("filter",null)}}))}function q(t){return t?.filter||t?.featureEffect?.filter}function V(t,n){const s=t?.fields;const e=s&&s.map((t=>t.name));return n?e&&e.includes(n):true}function C(t){const n=[];t.forEach((t=>F(t,n)));return n}function F(t,n){n.push(t);if(t.children&&t.children.length>0){t.children.forEach((t=>{F(t,n)}))}}export{P as a,u as b,p as c,g as d,f as e,C as f,v as g,U as h,o as i,a as j,d as k,$ as l,j as m,A as n,R as o,b as p,l as q,h as r,i as s,D as t,S as u,O as v,L as w,x,E as z};
|
2
|
+
//# sourceMappingURL=p-a2fbebc1.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["InteractiveLegendStore","createStore","data","relationshipRampExpandStates","compact","interactiveLegendState","state","store","activeLayerInfoCallback","intLegendDataPromises","legendViewModel","reactiveUtils","activeLayerInfo","aclType","layer","type","intLegendDataPromise","createInteractiveLegendDataForLayer","then","res","push","handleALIChild","aliChild","children","forEach","child","length","innerALIChild","innerInnerALIChild","async","isGroup","someVisible","layers","some","visible","noLegendEnabled","every","legendEnabled","whenOnce","loaded","ready","legendElements","legendElement","categories","Map","fLayer","fLayerView","view","whenLayerView","field","renderer","undefined","infos","legendElementInfo","isNestedUniqueSymbol","nestedInfos","nestedUniqueSymbolInfo","category","count","selected","set","title","label","id","queryExpressions","Promise","resolve","totalCount","generateData","activeLayerInfos","intLegendLayerDataObjs","all","intLegendLayerDataObj","layerId","err","reject","Error","getCategoriesArray","Array","from","getCategoryData","elementInfo","parentLegendElementInfoData","infoIndex","get","getIntLegendLayerData","handleFilter","info","filterMode","parentLegendElementInfo","generateQueryExpressions","sep","expression","includes","where","join","timeExtent","filter","featureEffect","newLayersSupportFeatureFilter","effect","includedEffect","excludedEffect","mergedExcludedEffect","getMergedEffect","mergedIncludedEffect","newLayersSupportFeatureEffect","handlePredominanceExpression","featureLayerView","authoringInfo","fields","expressionArr","Object","hasOwn","value","sqlQuery","queryForZeroes","otherExpression","field1","field2","queryForMultiplePredominance","field3","isNull","generatedOtherExpression","expressions","zeroAndNull","nestedCategories","map","entry","nestedCategory","untouched","nestedInfo","expressionIndex","indexOf","splice","legendElementInfos","isPredominance","checkPredominance","queryExpression","generateQueryExpression","hasOneValue","expressionList","normalizationField","isArray","singleQuote","split","isNaN","trim","noExpression","isLastElement","lastElementAndNoValue","secondToLastElement","checkNoneSelected","entries","authoringInfoType","checkRelationshipRamp","validateInteractivity","legendElementIndex","layerView","classBreakInfos","uniqueValueInfos","isSizeRamp","isColorRamp","opacityRamp","heatmapRamp","hasMoreThanOneClassBreak","classifyDataCheckedColorRamp","classifyDataCheckedSizeRamp","singleSymbol","isRelationshipRamp","isFeatureLayer","moreThanOneClassBreak","oneClassBreak","validate","hasClustering","featureReduction","isSingleSymbol","hasColorRamp","hasSizeRamp","singleSymbolColor","singleSymbolSize","isUnclassifiedSizeRamp","isBinning","isDotDensity","fieldExists","checkIfFieldExists","isValidated","showAll","showAllNestedUniqueSymbol","nestedUniqueSymbolCategoryId","nestedUniqueInfoCategory","existingIndex","allUntouched","zoomTo","query","createQuery","noneSelected","extent","queryExtent","goTo","calculateTotalCount","categoriesArr","reduce","acc","curr","calculateTotalFeatureCountForNestedSymbols","getInfoCount","nestedUniqueSymbolInfoIndex","geometry","featureCount","queryFeatureCount","console","error","handleFeatureCount","updatedData","dataCount","countPromises","counts","nestedInfoCounts","infoCount","childCounts","countPromise","countObj","countRes","countResItem","countArr2d","promise","promiseItem","values","layerCountObj","keys","dataFromActiveLayerInfo","key","categoryIndex","findIndex","categoryArrItem","nestedInfoIndex","childLayerId","getNestedInfoData","checkNestedUniqueSymbol","checkNestedUniqueSymbolLegendElement","getParentLegendElementInfoData","getTheme","el","calciteMode","light","dark","isDarkTheme","classList","contains","updateStore","layerData","intLegendLayerData","layerDataToSet","handleFilterChange","updateExistingFilterToFeatureFilter","updateExistingFilterToFeatureEffect","allLayerViews","existingFilter","getExistingFilter","fieldNames","name","getAllActiveLayerInfos","arr","acl","flattenActiveLayerInfos"],"sources":["src/components/instant-apps-interactive-legend/support/store.ts","src/components/instant-apps-interactive-legend/support/helpers.ts"],"sourcesContent":["import { createStore } from \"@stencil/store\";\nimport type { IInteractiveLegendData } from \"../instant-apps-interactive-legend-classic/interfaces/interfaces\";\n\ninterface InteractiveLegendState {\n data: IInteractiveLegendData;\n relationshipRampExpandStates: Record<string, boolean>;\n compact: boolean;\n}\n\nconst InteractiveLegendStore = createStore<InteractiveLegendState>({\n data: {} as IInteractiveLegendData,\n relationshipRampExpandStates: {},\n compact: false,\n});\n\nexport const interactiveLegendState = InteractiveLegendStore.state;\nexport const onInteractiveLegendChange = InteractiveLegendStore.onChange;\nexport const store = InteractiveLegendStore;\n","/* eslint-disable no-restricted-globals, no-restricted-syntax */\n\nimport type {\n IInteractiveLegendData,\n ICategories,\n IIntLegendLayerData,\n ICategory,\n InteractiveLegendElementInfo,\n} from \"../instant-apps-interactive-legend-classic/interfaces/interfaces\";\nimport type { FilterMode } from \"../../../interfaces/interfaces\";\nimport { interactiveLegendState, store } from \"../support/store\";\nimport { newLayersSupportFeatureEffect, newLayersSupportFeatureFilter } from \"@arcgis/core-adapter\";\nimport { getMergedEffect } from \"../../../utils/effects\";\n\n// data handling\nfunction activeLayerInfoCallback(\n intLegendDataPromises: Promise<IIntLegendLayerData | null>[],\n legendViewModel: __esri.LegendViewModel,\n reactiveUtils: __esri.reactiveUtils,\n): (activeLayerInfo: __esri.ActiveLayerInfo) => void {\n return (activeLayerInfo: __esri.ActiveLayerInfo) => {\n const aclType = activeLayerInfo?.layer?.type;\n if (aclType === \"feature\" || aclType === \"group\") {\n // Step 3a. Push to promises array since there are promises within function\n const intLegendDataPromise: Promise<IIntLegendLayerData | null> = createInteractiveLegendDataForLayer(\n legendViewModel,\n activeLayerInfo,\n reactiveUtils,\n ).then((res) => res);\n if (intLegendDataPromise) {\n intLegendDataPromises.push(intLegendDataPromise);\n }\n\n const handleALIChild = (aliChild: __esri.ActiveLayerInfo) => {\n const intLegendDataPromise = createInteractiveLegendDataForLayer(legendViewModel, aliChild, reactiveUtils).then(\n (res) => res,\n );\n if (intLegendDataPromise) {\n intLegendDataPromises.push(intLegendDataPromise);\n }\n };\n\n // Take ACLs children into account\n activeLayerInfo.children.forEach((child) => {\n handleALIChild(child);\n if (child?.children?.length > 0) {\n child.children.forEach((innerALIChild) => {\n handleALIChild(innerALIChild);\n if (innerALIChild?.children?.length > 0) {\n innerALIChild.children.forEach((innerInnerALIChild) => {\n handleALIChild(innerInnerALIChild);\n });\n }\n });\n }\n });\n }\n };\n}\n\nexport async function createInteractiveLegendDataForLayer(\n legendViewModel: __esri.LegendViewModel,\n activeLayerInfo: __esri.ActiveLayerInfo,\n reactiveUtils: __esri.reactiveUtils,\n): Promise<IIntLegendLayerData | null> {\n try {\n // Get first Legend Element from Active LayerInfo - only first legend element will be interactive\n const isGroup = activeLayerInfo?.layer?.type === \"group\";\n const someVisible = (activeLayerInfo?.layer as __esri.GroupLayer)?.layers?.some((layer) => layer.visible);\n const noLegendEnabled = (activeLayerInfo?.layer as __esri.GroupLayer)?.layers?.every(\n (layer) => !(layer as __esri.FeatureLayer)?.legendEnabled,\n );\n await reactiveUtils.whenOnce(() => legendViewModel?.state === \"ready\");\n\n if (!isGroup || (isGroup && someVisible)) {\n if (isGroup && noLegendEnabled) {\n await reactiveUtils.whenOnce(() => activeLayerInfo?.layer?.loaded);\n } else {\n await reactiveUtils.whenOnce(() => activeLayerInfo?.ready);\n }\n } else {\n await reactiveUtils.whenOnce(() => activeLayerInfo?.legendElements);\n }\n\n const legendElement = activeLayerInfo?.legendElements?.[0];\n\n // Each active layer info will have it's own property in object - we'll use the layer ID to categorize each layer\n // Hash map for each layers interactive categories i.e. Global power plants, Hydro, Solar, Wind, etc.\n const categories: ICategories = new Map();\n\n // Layer to access field from it's renderer to be used in expression\n const fLayer = activeLayerInfo.layer as __esri.FeatureLayer;\n // Get Feature Layer View to query\n const fLayerView = await legendViewModel?.view?.whenLayerView(fLayer);\n const field = (fLayer.renderer as __esri.UniqueValueRenderer)?.field ?? \"\";\n\n if (legendElement !== undefined) {\n legendElement?.infos?.forEach((legendElementInfo) => {\n const isNestedUniqueSymbol = legendElementInfo.type === \"symbol-table\";\n if (isNestedUniqueSymbol) {\n const nestedInfos: any = [];\n legendElementInfo.infos.forEach((nestedUniqueSymbolInfo: any) => {\n const category = {\n count: null,\n selected: false,\n legendElementInfo: nestedUniqueSymbolInfo,\n };\n nestedInfos.push(category);\n });\n const category = {\n count: null,\n selected: false,\n legendElementInfo,\n nestedInfos,\n };\n categories.set(legendElementInfo.title, category);\n } else {\n const category = {\n count: null,\n selected: false,\n legendElementInfo,\n };\n categories.set(legendElementInfo.label ?? fLayer.id, category);\n }\n });\n }\n\n // Generated expression to apply to layer filters\n const queryExpressions: string[] = [];\n\n // Total feature count\n return Promise.resolve({\n activeLayerInfo,\n title: fLayerView?.layer?.title,\n categories,\n field,\n queryExpressions,\n totalCount: null,\n fLayerView,\n legendElement,\n });\n } catch {\n return await Promise.resolve(null);\n }\n}\n\nexport async function generateData(\n legendViewModel: __esri.LegendViewModel,\n reactiveUtils: __esri.reactiveUtils,\n): Promise<IInteractiveLegendData> {\n // Create data object to return\n const data = {} as IInteractiveLegendData;\n\n // Set up Interactive Legend Data for each layer using it's corresponding active layer info\n // Array of promises - needed due to queryFeatureCount and whenLayerView calls\n const intLegendDataPromises = [] as Promise<IIntLegendLayerData>[];\n\n // Iterate through each Active Layer Info and create data bucket for each layer\n\n legendViewModel.activeLayerInfos.forEach(\n activeLayerInfoCallback(intLegendDataPromises, legendViewModel, reactiveUtils),\n );\n\n // Store resolved data\n try {\n const intLegendLayerDataObjs = await Promise.all(intLegendDataPromises);\n intLegendLayerDataObjs.forEach((intLegendLayerDataObj) => {\n const layerId = intLegendLayerDataObj?.activeLayerInfo?.layer?.id;\n data[layerId] = intLegendLayerDataObj;\n });\n\n return Promise.resolve(data);\n } catch (err) {\n return await Promise.reject(new Error(\"Failed to generate data\"));\n }\n}\n\n// data getters\nexport function getCategoriesArray(categories: ICategories): ICategory[] {\n return Array.from(categories, (category) => category[1]);\n}\n\nexport function getCategoryData(\n data: IIntLegendLayerData,\n layer: __esri.Layer,\n elementInfo: InteractiveLegendElementInfo,\n parentLegendElementInfoData: ICategory | undefined,\n infoIndex: number,\n): ICategory {\n return parentLegendElementInfoData\n ? parentLegendElementInfoData?.nestedInfos?.[infoIndex]\n : data?.categories?.get(elementInfo?.label ?? layer?.id);\n}\n\nexport function getIntLegendLayerData(fLayer: __esri.FeatureLayer): IIntLegendLayerData {\n return interactiveLegendState?.data?.[fLayer?.id];\n}\n\n// filtering\nexport async function handleFilter(\n data: IIntLegendLayerData,\n info: any,\n infoIndex: number,\n filterMode: FilterMode,\n parentLegendElementInfo?: any,\n): Promise<void> {\n const { queryExpressions, fLayerView } = data;\n generateQueryExpressions(data, info, infoIndex, parentLegendElementInfo);\n const sep = queryExpressions.every((expression) => expression && expression.includes(\"<>\")) ? \" AND \" : \" OR \";\n const where = queryExpressions.join(sep);\n const timeExtent = fLayerView?.filter?.timeExtent ?? fLayerView?.featureEffect?.filter?.timeExtent ?? null;\n\n const { type } = filterMode;\n\n if (type === \"filter\") {\n fLayerView.filter = await newLayersSupportFeatureFilter({ where, timeExtent });\n } else {\n if (filterMode.effect) {\n const { includedEffect, excludedEffect } = filterMode.effect;\n const mergedExcludedEffect = await getMergedEffect(excludedEffect, fLayerView, \"excludedEffect\");\n const mergedIncludedEffect = await getMergedEffect(includedEffect, fLayerView, \"includedEffect\");\n\n fLayerView.featureEffect = await newLayersSupportFeatureEffect({\n filter: await newLayersSupportFeatureFilter({ where, timeExtent }),\n includedEffect: mergedIncludedEffect,\n excludedEffect: mergedExcludedEffect,\n });\n }\n }\n return void (await Promise.resolve());\n}\n\nexport function handlePredominanceExpression(elementInfo: any, featureLayerView: __esri.FeatureLayerView): string {\n const authoringInfo = featureLayerView ? featureLayerView?.layer?.renderer?.authoringInfo : null;\n const fields = authoringInfo ? authoringInfo.fields : null;\n const expressionArr: string[] = [];\n if (!fields) {\n return \"\";\n }\n if (Object.hasOwn(elementInfo, \"value\")) {\n fields.forEach((field) => {\n if (elementInfo.value === field) {\n return;\n }\n const sqlQuery = `(${elementInfo.value} > ${field} OR (${field} IS NULL AND ${elementInfo.value} IS NOT NULL AND (${elementInfo.value} > 0 OR ${elementInfo.value} < 0)))`;\n expressionArr.push(sqlQuery);\n });\n return expressionArr.join(\" AND \");\n } else {\n const queryForZeroes: string[] = [];\n fields.forEach((field) => {\n queryForZeroes.push(`${field} = 0`);\n });\n\n const otherExpression: string[] = [];\n if (fields.length > 2) {\n fields.forEach((field1) => {\n fields.forEach((field2) => {\n if (field1 === field2) {\n return;\n }\n const queryForMultiplePredominance: string[] = [];\n fields.forEach((field3) => {\n if (field1 === field3 || field2 === field3) {\n return;\n }\n queryForMultiplePredominance.push(\n `${field1} = ${field2} AND (${field1} > ${field3} OR ${field1} >= ${field3})`,\n );\n });\n otherExpression.push(`(${queryForMultiplePredominance.join(\" AND \")})`);\n });\n });\n\n const isNull: string[] = [];\n\n fields.forEach((field) => {\n isNull.push(`${field} IS NULL`);\n });\n const generatedOtherExpression = `(${queryForZeroes.join(\" AND \")}) OR (${otherExpression.join(\" OR \")}) OR (${isNull.join(\" AND \")})`;\n return generatedOtherExpression;\n } else {\n const expressions: string[] = [];\n fields.forEach((field1) => {\n fields.forEach((field2) => {\n if (field1 === field2) {\n return;\n }\n expressions.push(`${field1} = ${field2}`);\n expressions.push(`(${queryForZeroes.join(\" AND \")})`);\n });\n });\n\n const zeroAndNull: string[] = [];\n fields.forEach((field1) => {\n fields.forEach((field2) => {\n if (field1 === field2) {\n return;\n }\n zeroAndNull.push(`(${field1} = 0 AND ${field2} IS NULL) OR (${field1} IS NULL AND ${field2} IS NULL)`);\n });\n });\n\n return `(${expressions.join(\" OR \")}) OR (${zeroAndNull.join(\" OR \")})`;\n }\n }\n}\n\nfunction generateQueryExpressions(\n data: IIntLegendLayerData,\n info: any,\n infoIndex: number,\n parentLegendElementInfo?: any,\n): void {\n const { field, legendElement, categories, fLayerView } = data;\n\n const queryExpressions = data?.queryExpressions;\n\n if (parentLegendElementInfo) {\n const nestedCategories = Array.from(data.categories).map((entry) => entry[1]);\n nestedCategories.forEach((nestedCategory) => {\n const untouched = nestedCategory.nestedInfos?.every((nestedInfo) => !nestedInfo.selected);\n\n if (untouched) {\n nestedCategory.nestedInfos?.forEach((nestedInfo) => {\n const expression = field ? `${field} = '${nestedInfo.legendElementInfo.value}'` : null;\n\n const expressionIndex = expression ? queryExpressions.indexOf(expression) : -1;\n\n if (expression && expressionIndex !== -1) {\n queryExpressions.splice(expressionIndex, 1);\n }\n });\n }\n });\n }\n\n const legendElementInfos = legendElement?.infos;\n\n const isPredominance = checkPredominance(fLayerView);\n\n const queryExpression = isPredominance\n ? handlePredominanceExpression(info, fLayerView)\n : generateQueryExpression(info, field, infoIndex, legendElement, legendElementInfos ?? [], \"\");\n const category = categories\n ? parentLegendElementInfo\n ? (categories.get(parentLegendElementInfo.title)?.nestedInfos?.[infoIndex] as ICategory)\n : categories.get(info.label ?? fLayerView?.layer?.id)!\n : null;\n\n if (category) {\n category.selected = !category?.selected;\n }\n\n const hasOneValue = legendElementInfos && legendElementInfos.length === 1;\n\n const expressionIndex = queryExpressions.indexOf(queryExpression);\n\n if (isPredominance) {\n const expressionIndex = queryExpressions.indexOf(queryExpression);\n if (queryExpressions.length === 0 || expressionIndex === -1) {\n if (queryExpressions && queryExpressions[0] === \"1=0\") {\n queryExpressions.splice(0, 1);\n }\n queryExpressions.push(queryExpression);\n } else if (queryExpressions && queryExpressions.length === 1 && queryExpression === queryExpressions[0]) {\n queryExpressions[0] = \"1=0\";\n } else if (queryExpressions && queryExpressions.length === 1) {\n queryExpressions[0] = queryExpression;\n } else if (\n queryExpressions.length === 1 &&\n queryExpression !== queryExpressions[0] &&\n queryExpressions[0] === \"1=0\"\n ) {\n queryExpressions[0] = queryExpression;\n } else if (\n queryExpressions.length === 1 &&\n queryExpression === queryExpressions[0] &&\n queryExpressions[0] === \"1=0\"\n ) {\n queryExpressions[0] = null;\n } else {\n queryExpressions.splice(expressionIndex, 1);\n }\n\n queryExpressions.join(\" OR \");\n } else if (queryExpressions.length === 0 || expressionIndex === -1) {\n if (queryExpressions && queryExpressions[0] === \"1=0\") {\n queryExpressions.splice(0, 1);\n }\n queryExpressions.push(queryExpression);\n } else if (\n queryExpressions &&\n queryExpressions.length === 1 &&\n queryExpression === queryExpressions[0] &&\n !hasOneValue\n ) {\n queryExpressions[0] = \"1=0\";\n } else if (queryExpressions && queryExpressions.length === 1 && !hasOneValue) {\n queryExpressions[0] = queryExpression;\n } else if (\n queryExpressions.length === 1 &&\n queryExpression !== queryExpressions[0] &&\n queryExpressions[0] === \"1=0\" &&\n !hasOneValue\n ) {\n queryExpressions[0] = queryExpression;\n } else if (\n queryExpressions.length === 1 &&\n queryExpression === queryExpressions[0] &&\n queryExpressions[0] === \"1=0\" &&\n !hasOneValue\n ) {\n queryExpressions[0] = null;\n } else {\n queryExpressions.splice(expressionIndex, 1);\n }\n\n if (parentLegendElementInfo) {\n const expressionList: string[] = [];\n const nestedCategories = Array.from(data.categories).map((entry) => entry[1]);\n nestedCategories.forEach((nestedCategory) => {\n const untouched = nestedCategory.nestedInfos?.every((nestedInfo) => !nestedInfo.selected);\n\n if (untouched) {\n nestedCategory.nestedInfos?.forEach((nestedInfo) => {\n const expression = field ? `${field} = '${nestedInfo.legendElementInfo.value}'` : null;\n if (expression) {\n expressionList.push(`${field} = '${nestedInfo.legendElementInfo.value}'`);\n }\n });\n }\n });\n\n expressionList.forEach((expression) => {\n if (!queryExpressions.includes(expression)) {\n queryExpressions.push(expression);\n }\n });\n }\n}\n\nfunction generateQueryExpression(\n info: any,\n field: string,\n infoIndex: number,\n legendElement: __esri.LegendElement,\n legendElementInfos?: any[],\n normalizationField?: string,\n): string {\n const { value } = info;\n if (legendElement?.type === \"symbol-table\") {\n // Classify data size/color ramp\n if (!Object.hasOwn(info, \"value\") || (Array.isArray(info.value) && legendElementInfos?.length === 1)) {\n // Classify data size/color ramp - 'Other' category\n if (\n Object.hasOwn(legendElementInfos?.[0], \"value\") &&\n Array.isArray(legendElementInfos?.[0].value) &&\n Object.hasOwn(legendElementInfos?.[legendElementInfos.length - 2], \"value\") &&\n Array.isArray(legendElementInfos?.[legendElementInfos.length - 2].value)\n ) {\n const expression = normalizationField\n ? `((${field}/${normalizationField}) > ${legendElementInfos?.[0].value[1]}) OR ((${field}/${normalizationField}) < ${\n legendElementInfos?.[legendElementInfos.length - 2].value[0]\n }) OR ${normalizationField} = 0 OR ${normalizationField} IS NULL`\n : `${field} > ${legendElementInfos?.[0].value[1]} OR ${field} < ${legendElementInfos?.[legendElementInfos.length - 2].value[0]} OR ${field} IS NULL`;\n return expression;\n } else if (legendElementInfos?.length === 1) {\n return \"1=0\";\n } else {\n // Types unique symbols - 'Other' category\n const expressionList = [] as string[];\n legendElementInfos?.forEach((legendElementInfo: any) => {\n if (legendElementInfo?.value) {\n const { value } = legendElementInfo;\n const singleQuote = value.indexOf(\"'\") !== -1 ? value.split(\"'\").join(\"''\") : null;\n const expression = singleQuote\n ? `${field} <> '${singleQuote}'`\n : isNaN(value) || (typeof value === \"string\" && !value.trim())\n ? `${field} <> '${value}'`\n : `${field} <> ${value} AND ${field} <> '${value}'`;\n expressionList.push(expression);\n }\n });\n const noExpression = expressionList.join(\" AND \");\n return field && noExpression ? `${noExpression} OR ${field} IS NULL` : \"\";\n }\n } else {\n const singleQuote = value.indexOf(\"'\") !== -1 ? value.split(\"'\").join(\"''\") : null;\n const isArray = Array.isArray(info.value);\n const isLastElement = legendElementInfos && legendElementInfos.length - 1 === infoIndex;\n const lastElementAndNoValue = !Object.hasOwn(legendElementInfos?.[legendElementInfos.length - 1], \"value\");\n const secondToLastElement = legendElementInfos && legendElementInfos.length - 2 === infoIndex;\n const expression = isArray\n ? normalizationField\n ? isLastElement || (lastElementAndNoValue && secondToLastElement)\n ? `(${field}/${normalizationField}) >= ${value[0]} AND (${field}/${normalizationField}) <= ${info.value[1]}`\n : `(${field}/${normalizationField}) > ${value[0]} AND (${field}/${normalizationField}) <= ${info.value[1]}`\n : isLastElement || (lastElementAndNoValue && secondToLastElement)\n ? `${field} >= ${value[0]} AND ${field} <= ${value[1]}`\n : `${field} > ${value[0]} AND ${field} <= ${value[1]}`\n : legendElementInfos?.length === 1 && field\n ? isNaN(value) || !value.trim().length\n ? `${field} <> '${value}'`\n : `${field} <> ${value} OR ${field} <> '${value}'`\n : singleQuote\n ? `${field} = '${singleQuote}'`\n : isNaN(value) || !value.trim().length\n ? `${field} = '${value}'`\n : `${field} = ${value} OR ${field} = '${value}'`;\n\n return expression;\n }\n } else {\n return \"\";\n }\n}\n\n// checks\nexport function checkAllSelected(data: IIntLegendLayerData): boolean {\n return data && Array.from(data.categories.entries()).every((entry) => entry[1].selected);\n}\n\nexport function checkNoneSelected(data: IIntLegendLayerData): boolean {\n if (Array.isArray(data)) {\n return data.every((entry) => !entry.selected);\n } else {\n return (\n data &&\n Array.from(data.categories.entries()).every((entry) => !entry[1].selected) &&\n data.queryExpressions[0] !== \"1=0\"\n );\n }\n}\n\nexport function checkPredominance(fLayerView: __esri.FeatureLayerView): boolean {\n const authoringInfoType = fLayerView?.layer?.renderer?.authoringInfo?.type;\n return authoringInfoType === \"predominance\";\n}\n\nexport function checkRelationshipRamp(activeLayerInfo: __esri.ActiveLayerInfo): boolean {\n return activeLayerInfo?.legendElements[1]?.type === \"relationship-ramp\";\n}\n\nexport function validateInteractivity(\n activeLayerInfo: __esri.ActiveLayerInfo,\n legendElement?: __esri.LegendElement,\n legendElementIndex?: number,\n): boolean {\n const fLayer = activeLayerInfo.layer as __esri.FeatureLayer;\n const field = (fLayer?.renderer as any)?.field;\n const type = legendElement?.type;\n const layerView = activeLayerInfo?.layerView as __esri.FeatureLayerView;\n const classBreakInfos = (layerView?.layer?.renderer as __esri.ClassBreaksRenderer)?.classBreakInfos;\n const uniqueValueInfos = (layerView?.layer?.renderer as __esri.UniqueValueRenderer)?.uniqueValueInfos && field;\n const isSizeRamp = type === \"size-ramp\";\n const isColorRamp = type === \"color-ramp\";\n const opacityRamp = type === \"opacity-ramp\";\n const heatmapRamp = type === \"heatmap-ramp\";\n\n const hasMoreThanOneClassBreak = layerView && classBreakInfos && classBreakInfos.length > 1;\n\n const authoringInfoType = layerView?.layer?.renderer?.authoringInfo?.type as string;\n const classifyDataCheckedColorRamp = authoringInfoType === \"class-breaks-color\";\n const classifyDataCheckedSizeRamp = authoringInfoType === \"class-breaks-size\";\n\n const singleSymbol = legendElement?.infos?.length === 1 && !field;\n\n const isRelationshipRamp =\n authoringInfoType === \"relationship\" &&\n legendElement?.type !== \"size-ramp\" &&\n legendElement?.type !== \"symbol-table\";\n\n const isFeatureLayer = activeLayerInfo?.layer?.type === \"feature\";\n\n const moreThanOneClassBreak = isFeatureLayer && field && !isColorRamp && !isSizeRamp && hasMoreThanOneClassBreak;\n\n const oneClassBreak = !!(isFeatureLayer && field && !isColorRamp && !isSizeRamp && !hasMoreThanOneClassBreak);\n\n const validate = !!(\n oneClassBreak ||\n (checkPredominance(layerView) && !isSizeRamp) ||\n (classifyDataCheckedColorRamp && field) ||\n (classifyDataCheckedSizeRamp && field) ||\n (singleSymbol && !field && field !== null) ||\n isRelationshipRamp ||\n uniqueValueInfos\n );\n\n const hasClustering =\n (activeLayerInfo?.layer as __esri.FeatureLayer)?.featureReduction &&\n activeLayerInfo?.legendElements?.[legendElementIndex!]?.type === \"size-ramp\";\n\n const isSingleSymbol = legendElement?.type === \"symbol-table\" && legendElement?.infos?.length === 1;\n\n const hasColorRamp = !activeLayerInfo?.legendElements.every((legendElement) => legendElement.type !== \"color-ramp\");\n\n const hasSizeRamp = !activeLayerInfo?.legendElements.every((legendElement) => legendElement.type !== \"size-ramp\");\n\n const singleSymbolColor = isSingleSymbol && hasColorRamp;\n\n const singleSymbolSize = isSingleSymbol && hasSizeRamp;\n\n const isUnclassifiedSizeRamp = legendElement?.infos?.every((info: any) => typeof info.value === \"number\");\n\n const isBinning =\n activeLayerInfo?.legendElements?.[0]?.type === \"symbol-table\" &&\n activeLayerInfo?.legendElements?.[1]?.type === \"color-ramp\";\n\n const isDotDensity = authoringInfoType === \"dot-density\";\n\n const fieldExists = checkIfFieldExists(activeLayerInfo?.layer as __esri.FeatureLayer, field);\n\n const isValidated =\n isFeatureLayer &&\n !hasClustering &&\n !opacityRamp &&\n !heatmapRamp &&\n !singleSymbolColor &&\n !singleSymbolSize &&\n !isUnclassifiedSizeRamp &&\n !isBinning &&\n !isDotDensity &&\n fieldExists\n ? classBreakInfos\n ? moreThanOneClassBreak || validate\n : oneClassBreak || validate\n : false;\n\n return isValidated;\n}\n\n// ui interactions\nexport function showAll(data: IIntLegendLayerData): IIntLegendLayerData {\n data.queryExpressions = [];\n if (data?.fLayerView?.filter?.where) {\n data.fLayerView.filter.where = \"\";\n }\n if (data?.fLayerView?.featureEffect?.filter?.where) {\n (data.fLayerView as any).featureEffect = null;\n }\n\n data.categories.forEach((category) => {\n category.selected = false;\n });\n return data;\n}\n\nexport function showAllNestedUniqueSymbol(\n data: IIntLegendLayerData,\n nestedUniqueSymbolCategoryId: string,\n): IIntLegendLayerData {\n const nestedUniqueInfoCategory = data.categories.get(nestedUniqueSymbolCategoryId);\n\n nestedUniqueInfoCategory?.nestedInfos?.forEach((nestedInfo) => {\n const expression = `${data.field} = '${nestedInfo.legendElementInfo.value}'`;\n const existingIndex = data.queryExpressions.indexOf(expression);\n if (existingIndex !== -1) {\n data.queryExpressions.splice(existingIndex, 1);\n }\n nestedInfo.selected = false;\n });\n\n const expressionList: string[] = [];\n const nestedCategories = Array.from(data.categories).map((entry) => entry[1]);\n nestedCategories.forEach((nestedCategory) => {\n const untouched = nestedCategory.nestedInfos?.every((nestedInfo) => !nestedInfo.selected);\n\n if (untouched) {\n nestedCategory.nestedInfos?.forEach((nestedInfo) => {\n expressionList.push(`${data.field} = '${nestedInfo.legendElementInfo.value}'`);\n });\n }\n });\n\n expressionList.forEach((expression) => {\n if (!data.queryExpressions.includes(expression)) {\n data.queryExpressions.push(expression);\n }\n });\n\n const where = data.queryExpressions.join(\" OR \");\n\n const allUntouched = nestedCategories.every((nestedCategory) =>\n nestedCategory.nestedInfos?.every((nestedInfo) => !nestedInfo.selected),\n );\n\n if (allUntouched) {\n if (data?.fLayerView?.filter?.where) {\n data.fLayerView.filter.where = \"\";\n }\n if (data?.fLayerView?.featureEffect?.filter?.where) {\n (data.fLayerView as any).featureEffect = null;\n }\n data.queryExpressions = [];\n } else {\n if (data?.fLayerView?.filter?.where) {\n data.fLayerView.filter.where = where;\n }\n if (data?.fLayerView?.featureEffect?.filter?.where) {\n (data.fLayerView as any).featureEffect.filter.where = where;\n }\n }\n\n return data;\n}\n\nexport async function zoomTo(data: IIntLegendLayerData, view: __esri.MapView, nestedCategory: any): Promise<void> {\n const query = data.fLayerView.createQuery();\n\n if (nestedCategory) {\n const noneSelected = nestedCategory.nestedInfos.every((nestedInfo: ICategory) => !nestedInfo.selected);\n if (noneSelected) {\n const expression = nestedCategory.nestedInfos\n .map((nestedInfo: any) => `${data.field} = '${nestedInfo.legendElementInfo.value}'`)\n .join(\" OR \");\n query.where = expression;\n } else {\n const expression = nestedCategory.nestedInfos\n .filter((nestedInfo: any) => nestedInfo.selected)\n .map((nestedInfo: any) => `${data.field} = '${nestedInfo.legendElementInfo.value}'`)\n .join(\" OR \");\n query.where = expression;\n }\n } else {\n const where = data.queryExpressions.join(\" OR \");\n query.where = where;\n }\n\n try {\n const { extent } = await data.fLayerView.layer.queryExtent(query);\n await view.goTo(extent);\n } catch {\n // Intentionally ignored\n }\n}\n\n// count\nexport function calculateTotalCount(categoriesArr: ICategory[]): number {\n const totalCount = categoriesArr\n .map((category: any) => category?.count)\n .reduce((acc: number, curr: number) => acc + curr);\n return totalCount;\n}\n\nexport function calculateTotalFeatureCountForNestedSymbols(categoriesArr: ICategory[]) {\n return categoriesArr\n .map((category) =>\n category?.nestedInfos?.map((nestedInfo) => nestedInfo.count).reduce((acc: number, curr: number) => acc + curr),\n )\n .reduce((acc: number, curr: number) => acc + curr);\n}\n\nexport async function getInfoCount(\n extent: __esri.Extent | undefined,\n fLayerView: __esri.FeatureLayerView,\n field: string,\n info: any,\n infoIndex: number,\n legendElement: __esri.LegendElement,\n nestedUniqueSymbolInfo?: any,\n nestedUniqueSymbolInfoIndex?: number,\n): Promise<Record<string, number | null> | null | undefined> {\n if (!fLayerView) {\n return;\n }\n\n const fieldExists = checkIfFieldExists(fLayerView?.layer, field);\n if (!fieldExists) {\n return;\n }\n\n const query = fLayerView?.layer?.type === \"feature\" ? fLayerView.createQuery() : null;\n\n const where = checkPredominance(fLayerView)\n ? handlePredominanceExpression(info, fLayerView)\n : info.type\n ? generateQueryExpression(nestedUniqueSymbolInfo, field, nestedUniqueSymbolInfoIndex!, info, info.infos)\n : generateQueryExpression(info, field, infoIndex, legendElement, legendElement.infos as any[]);\n\n if (query && where) {\n query.where = where === \"1=0\" ? \"1=1\" : where;\n if (extent) {\n query.geometry = extent;\n }\n }\n\n try {\n const featureCount = query ? await fLayerView.queryFeatureCount(query) : null;\n return Promise.resolve({ [info.label ?? fLayerView?.layer?.id]: featureCount });\n } catch (err) {\n console.error(\"FAILURE AT 'getInfoCount': \", err);\n }\n return await Promise.resolve(null);\n}\n\nexport async function handleFeatureCount(\n legendViewModel: __esri.LegendViewModel,\n data: IInteractiveLegendData,\n): Promise<IInteractiveLegendData> {\n const updatedData = { ...data };\n\n const { activeLayerInfos } = legendViewModel;\n const extent = legendViewModel?.view?.extent;\n\n const dataCount: Record<string, Record<string, number>> = {};\n\n const countPromises: Record<string, any[]> = {};\n\n activeLayerInfos.forEach(async (activeLayerInfo) => {\n const legendElement = activeLayerInfo.legendElements[0]!;\n const fLayer = activeLayerInfo.layer as __esri.FeatureLayer;\n const fLayerView = data[activeLayerInfo?.layer?.id]?.fLayerView;\n const field = (fLayer.renderer as __esri.UniqueValueRenderer)?.field;\n const counts: Promise<Record<string, number | null> | null | undefined>[] = [];\n\n countPromises[activeLayerInfo.layer.id] = [];\n\n legendElement?.infos?.forEach((info, infoIndex) => {\n const isNestedUniqueSymbol = legendElement.infos?.every((info) => info.type === \"symbol-table\");\n if (isNestedUniqueSymbol) {\n const nestedInfoCounts: any[] = [];\n info.infos.forEach((nestedUniqueSymbolInfo: any, nestedUniqueSymbolInfoIndex: number) => {\n const infoCount = getInfoCount(\n extent,\n fLayerView,\n field!,\n info,\n infoIndex,\n legendElement,\n nestedUniqueSymbolInfo,\n nestedUniqueSymbolInfoIndex,\n );\n nestedInfoCounts.push(infoCount);\n });\n countPromises[activeLayerInfo.layer.id].push(nestedInfoCounts);\n } else {\n counts.push(getInfoCount(extent, fLayerView, field!, info, infoIndex, legendElement));\n countPromises[activeLayerInfo.layer.id] = counts;\n }\n });\n\n const handleALIChild = (aliChild: __esri.ActiveLayerInfo) => {\n const childCounts: Promise<Record<string, number | null> | null | undefined>[] = [];\n const legendElement = aliChild.legendElements[0]!;\n const fLayer = aliChild.layer as __esri.FeatureLayer;\n const fLayerView = data[aliChild?.layer?.id]?.fLayerView;\n const field = (fLayer.renderer as __esri.UniqueValueRenderer)?.field;\n legendElement?.infos?.forEach((info, infoIndex) =>\n childCounts.push(getInfoCount(extent, fLayerView, field!, info, infoIndex, legendElement)),\n );\n\n countPromises[aliChild.layer.id] = childCounts;\n };\n\n activeLayerInfo.children.forEach(async (aliChild) => {\n handleALIChild(aliChild);\n if (aliChild?.children?.length > 0) {\n aliChild.children.forEach((innerALIChild) => {\n handleALIChild(innerALIChild);\n if (innerALIChild?.children?.length > 0) {\n innerALIChild.children.forEach((innerInnerALIChild) => {\n handleALIChild(innerInnerALIChild);\n });\n }\n });\n }\n });\n });\n for (const countPromise in countPromises) {\n let countObj = dataCount[countPromise] as Record<string, any>;\n\n if (!countObj) {\n // eslint-disable-next-line no-multi-assign\n countObj = dataCount[countPromise] = {};\n }\n\n const countRes = await Promise.all(countPromises[countPromise]);\n\n if (countRes.every((countResItem) => Array.isArray(countResItem))) {\n const countArr2d = await Promise.all(\n countRes.map(async (countResItem) => {\n const promise = await Promise.all(countResItem);\n const count = promise.map((promiseItem) => promiseItem && Object.values(promiseItem)[0]);\n return count;\n }),\n );\n countObj[countPromise] = countArr2d;\n\n dataCount[countPromise] = {\n ...countObj[countPromise],\n };\n } else {\n const layerCountObj: Record<string, number | null> = {};\n\n countRes.forEach((countResItem) => {\n if (!countResItem) {\n return;\n }\n const id = Object.keys(countResItem)[0];\n layerCountObj[id] = countResItem[id];\n });\n\n if (countPromise) {\n countObj[countPromise] = layerCountObj;\n }\n\n dataCount[countPromise] = {\n ...countObj[countPromise],\n };\n }\n }\n\n activeLayerInfos.forEach((activeLayerInfo) => {\n const dataFromActiveLayerInfo = data[activeLayerInfo.layer.id];\n const layerId = activeLayerInfo.layer.id;\n\n const categories = dataFromActiveLayerInfo.categories;\n\n categories.forEach((category: ICategory, key: string) => {\n const categoriesArr = Array.from(dataFromActiveLayerInfo?.categories);\n const categoryIndex = categoriesArr.findIndex((categoryArrItem: any) => categoryArrItem[0] === key);\n\n if (category?.nestedInfos) {\n category?.nestedInfos.forEach((nestedInfo, nestedInfoIndex) => {\n const count = (dataCount?.[activeLayerInfo?.layer?.id] as Record<string, any>)?.[categoryIndex]?.[\n nestedInfoIndex\n ];\n nestedInfo.count = !isNaN(count) ? count : null;\n });\n } else {\n const count = dataCount?.[layerId]?.[key];\n category.count = !isNaN(count) ? count : null;\n }\n });\n\n const handleALIChild = (aliChild: __esri.ActiveLayerInfo) => {\n const childLayerId = aliChild.layer.id;\n const dataFromActiveLayerInfo = data[childLayerId];\n\n dataFromActiveLayerInfo?.categories?.forEach((category: ICategory, key: string) => {\n const count = dataCount?.[childLayerId]?.[key];\n category.count = count;\n });\n };\n\n activeLayerInfo.children.forEach((aliChild) => {\n handleALIChild(aliChild);\n if (aliChild?.children?.length > 0) {\n aliChild.children.forEach((innerALIChild) => {\n handleALIChild(innerALIChild);\n if (innerALIChild?.children?.length > 0) {\n innerALIChild.children.forEach((innerInnerALIChild) => {\n handleALIChild(innerInnerALIChild);\n });\n }\n });\n }\n });\n });\n\n return await Promise.resolve(updatedData);\n}\n\n// nested\nexport function getNestedInfoData(category: ICategory, infoIndex: number): ICategory {\n return category?.nestedInfos?.[infoIndex];\n}\n\nexport function checkNestedUniqueSymbol(categories: ICategories): boolean {\n const categoriesArr = Array.from(categories).map((category: any) => category[1]);\n return categoriesArr.every((category: ICategory) => !!category?.nestedInfos);\n}\n\nexport function checkNestedUniqueSymbolLegendElement(activeLayerInfo: __esri.ActiveLayerInfo): boolean {\n return !!activeLayerInfo?.legendElements?.[0]?.infos?.every?.((info) => info?.type === \"symbol-table\");\n}\n\nexport function getParentLegendElementInfoData(\n data: IIntLegendLayerData,\n parentLegendElementInfo: any,\n): ICategory | undefined {\n return data?.categories?.get(parentLegendElementInfo?.title);\n}\n\n// theme\nexport function getTheme(el: HTMLElement): string {\n const calciteMode = `calcite-mode-`;\n const light = `${calciteMode}light`;\n const dark = `${calciteMode}dark`;\n const isDarkTheme = el.classList.contains(dark);\n return isDarkTheme ? dark : light;\n}\n\n// store\nexport function updateStore(layerData: { intLegendLayerData: IIntLegendLayerData; layerId: string }): void {\n if (layerData.layerId && layerData.intLegendLayerData) {\n const layerId = layerData.layerId;\n const layerDataToSet = layerData.intLegendLayerData;\n const data = { ...interactiveLegendState.data, [layerId]: layerDataToSet } as IInteractiveLegendData;\n store.set(\"data\", data);\n }\n}\n\n// handleFilterChange - Configuration experience\nexport function handleFilterChange(filterMode: FilterMode, view: __esri.MapView | __esri.SceneView): void {\n const { type } = filterMode;\n if (type === \"filter\") {\n updateExistingFilterToFeatureFilter(view);\n } else if (type === \"effect\") {\n updateExistingFilterToFeatureEffect(filterMode, view);\n }\n}\n\nfunction updateExistingFilterToFeatureFilter(view: __esri.MapView | __esri.SceneView): void {\n view?.allLayerViews\n ?.filter((layerView: __esri.LayerView) => layerView?.layer?.type === \"feature\")\n ?.forEach((layerView: __esri.LayerView) => {\n const fLayerView = layerView as __esri.FeatureLayerView;\n const existingFilter = getExistingFilter(fLayerView);\n fLayerView.filter = existingFilter;\n fLayerView.set(\"featureEffect\", null);\n });\n}\n\nfunction updateExistingFilterToFeatureEffect(filterMode: FilterMode, view: __esri.MapView | __esri.SceneView): void {\n view?.allLayerViews\n ?.filter((layerView: __esri.LayerView) => layerView?.layer?.type === \"feature\")\n .forEach(async (layerView: __esri.LayerView) => {\n const fLayerView = layerView as __esri.FeatureLayerView;\n if (filterMode?.effect && fLayerView) {\n const { includedEffect, excludedEffect } = filterMode.effect;\n const mergedExcludedEffect = await getMergedEffect(excludedEffect, fLayerView, \"excludedEffect\");\n const mergedIncludedEffect = await getMergedEffect(includedEffect, fLayerView, \"includedEffect\");\n\n const existingFilter = getExistingFilter(fLayerView);\n\n fLayerView.featureEffect = await newLayersSupportFeatureEffect({\n filter: existingFilter,\n includedEffect: mergedIncludedEffect,\n excludedEffect: mergedExcludedEffect,\n });\n fLayerView.set(\"filter\", null);\n }\n });\n}\n\nfunction getExistingFilter(fLayerView: __esri.FeatureLayerView): __esri.FeatureFilter {\n return (fLayerView?.filter || fLayerView?.featureEffect?.filter)!;\n}\n\nfunction checkIfFieldExists(fLayer: __esri.FeatureLayer, field: string) {\n const fields = fLayer?.fields;\n const fieldNames = fields && fields.map((field) => field.name);\n return field ? fieldNames && fieldNames.includes(field) : true;\n}\n\nexport function getAllActiveLayerInfos(\n activeLayerInfos: __esri.Collection<__esri.ActiveLayerInfo>,\n): __esri.ActiveLayerInfo[] {\n const arr: __esri.ActiveLayerInfo[] = [];\n activeLayerInfos.forEach((acl) => flattenActiveLayerInfos(acl, arr));\n return arr;\n}\n\nfunction flattenActiveLayerInfos(activeLayerInfo: __esri.ActiveLayerInfo, arr: __esri.ActiveLayerInfo[]) {\n arr.push(activeLayerInfo);\n if (activeLayerInfo.children && activeLayerInfo.children.length > 0) {\n activeLayerInfo.children.forEach((child) => {\n flattenActiveLayerInfos(child, arr);\n });\n }\n}\n"],"mappings":"mHASA,MAAMA,EAAyBC,EAAoC,CACjEC,KAAM,GACNC,6BAA8B,GAC9BC,QAAS,Q,MAGEC,EAAyBL,EAAuBM,M,MAEhDC,EAAQP,ECFrB,SAASQ,E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EA,SAASE,EAAwB7P,EAAyC2P,GACxEA,EAAInP,KAAKR,GACT,GAAIA,EAAgBW,UAAYX,EAAgBW,SAASG,OAAS,EAAG,CACnEd,EAAgBW,SAASC,SAASC,IAChCgP,EAAwBhP,EAAO8O,EAAI,G,CAGzC,Q","ignoreList":[]}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
import{r as t,c as e,h as i,H as s,g as n}from"./p-6517b6d4.js";import{g as r}from"./p-45a300a8.js";import{g as a}from"./p-a1e8ffff.js";import{i as o,e as l}from"./p-50b205e8.js";import"./p-5978fda4.js";const c="instant-apps-filter-list calcite-mode-light";const u="instant-apps-filter-list calcite-mode-dark";const h=["feature","geojson","wfs","csv","scene","subtype-group","point-cloud","map-image","sublayer"];function d(t){return t.replaceAll("'","''")}function p(t,e=false){if(t){const i=new Date(t);const s=`${i.getFullYear()}-${i.getMonth()+1}-${i.getDate()}`;if(e){const t=`${i.getHours()}:${i.getMinutes()}:${i.getSeconds()}`;return`${s} ${t}`}else{return s}}return}function f(t){if(t!=null){t.value=["",""];const e=t.shadowRoot?.querySelectorAll("calcite-input");if(e!=null){for(const t of e){t.value=""}}}}const m=":host{display:block}.instant-apps-filter-list *{box-sizing:border-box}.instant-apps-filter-list__container{height:100%}.instant-apps-filter-list__container calcite-block:last-of-type{margin-bottom:0}.instant-apps-filter-list__footer{padding:12px;display:flex}.instant-apps-filter-list__footer calcite-button:nth-child(2){margin-left:6px}.instant-apps-filter-list__item-container,.instant-apps-filter-list__item-container--user-input{display:flex;justify-content:space-between;align-items:center}.instant-apps-filter-list__item-container:not(:last-child),.instant-apps-filter-list__item-container--user-input:not(:last-child){padding-bottom:20px}.instant-apps-filter-list__item-container--user-input{margin:0;display:flex;flex-direction:column;align-items:flex-start}.instant-apps-filter-list__item-container--user-input>span{margin:0 0 6px;font-size:14px;font-weight:normal}.instant-apps-filter-list__item-container--user-input calcite-combobox{width:100%;font-size:16px;--calcite-combobox-input-height:24px}.instant-apps-filter-list__number-input-container{width:100%;display:flex;justify-content:center}.instant-apps-filter-list__number-input-container calcite-slider{width:90%}.instant-apps-filter-list__date-picker-input-container{display:flex;align-items:center;justify-content:unset;width:100%}.instant-apps-filter-list__date-picker-input-container calcite-action{height:64px;border-top:1px solid var(--calcite-color-border-input);border-right:1px solid var(--calcite-color-border-input);border-bottom:1px solid var(--calcite-color-border-input)}.instant-apps-filter-list__title{margin-right:20px}.instant-apps-filter-list__title>p{font-size:14px;font-weight:normal;margin:0}.instant-apps-filter-list__checkbox-container{display:flex}.instant-apps-filter-list__checkbox-container calcite-checkbox{height:18px}.instant-apps-filter-list__operator-description{margin:0;--calcite-font-size--1:12px}.instant-apps-filter-list__zoom-to{display:flex;justify-content:flex-end;margin:8px 0 20px}.instant-apps-filter-list__zoom-to calcite-action{width:min-content}.instant-apps-filter-list calcite-input-date-picker{--calcite-font-size--1:16px}@media (prefers-reduced-motion){.instant-apps-filter-list calcite-loader{--calcite-internal-duration-factor:2;--calcite-internal-animation-timing-slow:calc(300ms * 2)}}.instant-apps-filter-list.calcite-mode-dark .instant-apps-filter-list__header-container{background:#2b2b2b;color:#fff}.instant-apps-filter-list.calcite-mode-dark .instant-apps-filter-list__operator-description{background:#353535}";const b=m;const x={base:"instant-apps-filter-list",filterContainer:"instant-apps-filter-list__container",footer:"instant-apps-filter-list__footer",filterItemTitle:"instant-apps-filter-list__title",filterItemContainer:"instant-apps-filter-list__item-container",filterUIItemContainer:"instant-apps-filter-list__item-container--user-input",checkboxContainer:"instant-apps-filter-list__checkbox-container",numberInputContainer:"instant-apps-filter-list__number-input-container",dateInputContainer:"instant-apps-filter-list__date-picker-input-container",operatorDesc:"instant-apps-filter-list__operator-description",zoomTo:"instant-apps-filter-list__zoom-to"};const y=class{constructor(i){t(this,i);this.filterListReset=e(this,"filterListReset",7);this.filterUpdate=e(this,"filterUpdate",7);this.isLayerExpUpdated=false;this.layerExpressions=undefined;this.autoUpdateUrl=false;this.closeBtn=false;this.closeBtnOnClick=undefined;this.comboboxOverlayPositioning="absolute";this.closeBtnText=undefined;this.openFilters=false;this.extentSelector=false;this.extentSelectorConfig=undefined;this.urlParams=undefined;this.filterCount=0;this.view=undefined;this.zoomBtn=true;this.resetBtn=true;this.resetFiltersOnDisconnect=true;this.loading=undefined;this.filterLayerExpressions=undefined;this.messages=undefined;this.baseClass=c;this.initDefExpressions=undefined;this.initMapImageExpressions=undefined;this.initPointCloudFilters=undefined}watchViewHandler(){void this.handleWhenView()}watchLayerExpressions(){this.resetAllFilters();this.filterLayerExpressions=structuredClone(this.layerExpressions);void this.handleLayerExpressionsUpdate()}async getFilterInitState(){return await Promise.resolve({initDefExpressions:this.initDefExpressions,initMapImageExpressions:this.initMapImageExpressions,initPointCloudFilters:this.initPointCloudFilters})}async forceReset(){this.resetExpressions();return await Promise.resolve(true)}async updateInitDefExpressions(t){this.initDefExpressions=t.initDefExpressions;this.initMapImageExpressions=t.initMapImageExpressions;this.initPointCloudFilters=t.initPointCloudFilters;return await Promise.resolve(true)}async getCurrentLayerExpressions(){const t=structuredClone(this.filterLayerExpressions);return await Promise.resolve(t)}async handleUpdatingT9nData(t){if(t==null){return await Promise.resolve(true)}this.filterLayerExpressions?.forEach((e=>{const i=t?.find((t=>t.id===e.id));if(i!=null){e.title=i.title;e.expressions?.forEach((t=>{const e=i.expressions?.find((e=>e.id===t.id));if(e!=null){t.name=e.name}}))}}));return await Promise.resolve(true)}connectedCallback(){if(this.layerExpressions==null&&this.view==null){return}this.isLayerExpUpdated=true;this.filterLayerExpressions=structuredClone(this.layerExpressions);void this.handleLayerExpressionsUpdate()}async componentWillLoad(){this.baseClass=a(this.el)==="dark"?u:c;await this.initializeModules();void r(this);if(this.isLayerExpUpdated){return}this.isLayerExpUpdated=true;this.filterLayerExpressions=this.layerExpressions!=null?structuredClone(this.layerExpressions):[];if(this.view==null){return}void this.handleLayerExpressionsUpdate()}componentDidRender(){if(this.resetBtnEl!=null){this.resetBtnEl.disabled=!(this.filterLayerExpressions&&this.filterLayerExpressions.length>0)}}disconnectedCallback(){if(this.resetFiltersOnDisconnect){this.isLayerExpUpdated=false;this.filterLayerExpressions=structuredClone(this.layerExpressions);this.resetAllFilters()}}async initializeModules(){const[t,e]=await Promise.all([o(),l()]);this.geometryJsonUtils=e;this.intl=t}render(){const t=this.loading?this.renderLoading():this.initFilterConfig();const e=this.renderFooter();return i(s,{key:"3db1b211528d0ebe2cc379b9dccbd59c38c2f7c4"},i("calcite-panel",{key:"e4b301eaea85bbe60ec088fbc09b261eb24037b7",class:this.baseClass,ref:t=>this.panelEl=t},i("slot",{key:"11f63da744e4256c860b7d381890b7573fd5d33c",slot:"header-content",name:"filter-header-content"}),i("slot",{key:"e3249343120aff984fed5c6cbda79330efcfc7b4",slot:"header-actions-end",name:"filter-header-actions-end"}),i("div",{key:"filter-container",class:x.filterContainer},t,e)))}renderLoading(){return i("calcite-loader",{label:"Loading filters..."})}renderFilter(t){const{id:e}=t;return t.expressions.map(((s,n)=>s.type==="checkbox"||s.type==null?i("div",{key:`${e}-${n}`,class:x.filterItemContainer},i("div",{class:x.filterItemTitle},i("p",null,s.name)),i("div",{class:x.checkboxContainer},i("calcite-checkbox",{id:s.id.toString(),scale:"l",checked:s?.active,onCalciteCheckboxChange:this.handleCheckboxChange.bind(this,t,s)}))):this.initInput(t,s)))}renderLayerBlock(){return this.filterLayerExpressions?.map((t=>this.renderFilterBlocks(t)))}renderFilterBlocks(t){const e=this.renderFilter(t);const{operator:s}=t;const n=s?.trim()==="OR"?"orOperator":"andOperator";const r=this.renderZoomTo(t);return i("calcite-block",{key:t.id,heading:t.title,description:this.messages?.[n],open:this.openFilters?true:undefined,collapsible:true},r,e)}renderCombobox(t,e){return i("label",{key:"combo-select",class:x.filterUIItemContainer},i("span",null,e.name),i("calcite-combobox",{id:e.id.toString(),onCalciteComboboxChange:this.handleComboSelect.bind(this,e,t),label:e.name,placeholder:e.placeholder,selectionMode:"multiple","max-items":"6",scale:"s",overlayPositioning:this.comboboxOverlayPositioning},e.fields?.map(((t,i)=>this.renderComboboxItem(e,t,i)))))}renderComboboxItem(t,e,s){const n=this.createLabel(t,e);const r=t?.selectedFields;const a=r?.includes(e)??false;return i("calcite-combobox-item",{key:`${n}-${s}`,value:e,heading:`${n}`,selected:a})}initFilterConfig(){if(this.filterLayerExpressions&&this.filterLayerExpressions.length>0){if(this.filterLayerExpressions.length===1){const{operator:t}=this.filterLayerExpressions[0];const e=t?.trim()==="OR"?"orOperator":"andOperator";const s=this.renderZoomTo(this.filterLayerExpressions[0]);return i("calcite-block",{class:x.operatorDesc,heading:this.messages?.[e],open:true},s,this.renderFilter(this.filterLayerExpressions[0]))}else if(this.filterLayerExpressions.length>1){return this.renderLayerBlock()}}return}renderNumberSlider(t,e){const s=e?.min;const n=e?.max;const r=e?.step?e.step:1;const a=s!=null&&n!=null;const o=e?.field??"";const l=e?.range?.min!=null?e.range.min:s;const c=e?.range?.max!=null?e.range.max:n;const u=[l,c];return a?i("label",{key:e?.id.toString(),class:x.filterUIItemContainer},i("span",null,e?.name),i("div",{class:x.numberInputContainer},i("calcite-slider",{id:e?.id.toString(),onCalciteSliderChange:this.handleSliderChange.bind(this,e,t),min:s,max:n,minValue:s,maxValue:n,minLabel:this.messages?.minSlider?.replace("{field}",o),maxLabel:this.messages?.maxSlider?.replace("{field}",o),step:r,labelHandles:true,snap:true,value:u,"group-separator":e?.format?.digitSeparator,precise:true}))):undefined}renderDatePicker(t,e){const{min:s,max:n}=e;const r=[e?.range?.min,e?.range?.max];const a=s!=null&&n!=null;return a?i("label",{class:x.filterUIItemContainer},i("span",null,e?.name),i("div",{class:x.dateInputContainer},i("calcite-input-date-picker",{id:e?.id.toString(),onCalciteInputDatePickerChange:this.handleDatePickerRangeChange.bind(this,e,t),min:s,max:n,"overlay-positioning":"fixed",lang:this.intl?.getLocale()??"en",layout:"vertical",value:r,range:true}),i("calcite-action",{onClick:this.handleResetDatePicker.bind(this,e,t),icon:"reset",text:this.messages?.resetDatePicker,scale:"s"}))):null}renderFooter(){const t=this.closeBtnText??this.messages?.close;const e=this.closeBtn&&this.resetBtn?"half":"full";return i("div",{class:x.footer,slot:"footer"},this.resetBtn?i("calcite-button",{appearance:"outline",width:e,ref:t=>this.resetBtnEl=t,onClick:this.handleResetFilter.bind(this)},this.messages?.resetFilter):undefined,this.closeBtn?i("calcite-button",{appearance:"solid",width:e,kind:"brand",onClick:this.closeBtnOnClick?.bind(this)},t):undefined)}renderZoomTo(t){const e=t?.sublayerId?`zoom-to-${t.id}-${t.sublayerId}`:`zoom-to-${t.id}`;return this.zoomBtn?i("div",{class:x.zoomTo},i("calcite-button",{id:e,appearance:"transparent",kind:"neutral",scale:"s",iconStart:"magnifying-glass-plus",onClick:this.handleZoomTo.bind(this,t)},this.messages?.zoomTo)):undefined}handleResetDatePicker(t,e){const i=this.panelEl.querySelector(`[id='${t.id}']`);f(i);t.active=false;t.definitionExpression=undefined;t.range=undefined;this.generateOutput(e)}initInput(t,e){const{type:i,numDisplayOption:s,displayOption:n}=e;const r=s==="drop-down"||n==="drop-down";if(i==="string"||i==="coded-value"||(i==="number"||i==="range"||i==="date")&&r){return this.renderCombobox(t,e)}else if(i==="number"||i==="range"){return this.renderNumberSlider(t,e)}else if(i==="date"){return this.renderDatePicker(t,e)}return}async initExpressions(){this.loading=true;if(this.filterLayerExpressions==null||this.view==null){this.loading=false;return}await this.processExpressions();this.loading=false}async processExpressions(){if(!this.filterLayerExpressions){return}await Promise.all(this.filterLayerExpressions.map((async t=>{await Promise.all((t.expressions||[]).map((async e=>await this.setInitExpression(t,e))))})))}handleResetFilter(){this.resetExpressions();this.resetAllFilters();this.generateURLParams();this.filterListReset.emit()}resetExpressions(){this.filterLayerExpressions?.forEach((t=>{t.expressions?.forEach((t=>{const{type:e,numDisplayOption:i,displayOption:s}=t;let n="";if(e==="string"||e==="coded-value"||e==="date"&&(i==="drop-down"||s==="drop-down")||(e==="number"||e==="range")&&(i==="drop-down"||s==="drop-down")){n="combobox"}else if(e==="date"){n="datePicker"}else if(e==="number"||e==="range"){n="numberRange"}if(n){this.resetExpressionUI(n,t)}else{this.resetCheckbox(t)}t.active=false}))}))}resetExpressionUI(t,e){const{id:i}=e;switch(t){case"combobox":{e.selectedFields=undefined;const t=this.panelEl.querySelector(`[id='${i}']`);if(t){Array.from(t.children).forEach((t=>{t.selected=false}))}break}case"datePicker":{e.range=undefined;const t=this.panelEl.querySelector(`[id='${i}']`);f(t);break}case"numberRange":{e.range=undefined;const t=this.panelEl.querySelector(`[id='${i}']`);if(t){t.minValue=e.min;t.maxValue=e.max}break}}}resetCheckbox(t){const{id:e}=t;const i=this.panelEl.querySelector(`[id='${e}']`);if(i!=null){i.checked=false}}resetAllFilters(){const t=this.view?.map?.allLayers?.concat(this.view?.map?.allTables);t?.forEach((t=>{if(!h.includes(t.type)){return}const e=t;if(e.type==="point-cloud"){if(!this.initPointCloudFilters){return}e.filters=this.initPointCloudFilters[e.id]}else if(e.type==="map-image"){e.allSublayers.forEach((t=>{t.definitionExpression=this.initMapImageExpressions?.[e.id]?.[t.id]??""}))}else{if(this.initDefExpressions==null){return}e.definitionExpression=this.initDefExpressions[e.id]}}))}async updateStringExpression(t,e){const i=this.findFilterLayer(t);await this.getFeatureAttributes(i,e);this.handleDateField(i,e);if(e?.selectedFields){e.definitionExpression=this.createDefinitionExpression(e);return true}return false}handleDateField(t,e){if(e.type==="date"){const i=t.fields.find((({name:t})=>t===e.field));if(i?.type==="date-only"){e.dateOnly=true}}}createDefinitionExpression(t){if(!t.selectedFields?.length){return""}const e=t.selectedFields.map((t=>typeof t==="number"?t:`'${d(t)}'`));return`${t.field} IN (${e.join(",")})`}async updateNumberExpression(t,e){if(!e?.min&&e?.min!==0||!e?.max&&e?.max!==0){const i=this.findFilterLayer(t);const{field:s}=e;if(s!=null){this.setExpressionFormat(i,e,s);if(e?.numDisplayOption==="drop-down"||e?.displayOption==="drop-down"){await this.getFeatureAttributes(i,e)}else{const t=await this.calculateMinMaxStatistics(i,s);const n=t?.[0]?.attributes;if(e.format?.places!=null){e.min=this.roundMinNumberDown(n[`min${s}`],e.format.places);e.max=this.roundMaxNumberUp(n[`max${s}`],e.format.places)}else{e.min=n[`min${s}`];e.max=n[`max${s}`]}if(e?.range&&Object.keys(e.range).length){const{min:t,max:i}=e.range;e.definitionExpression=`${e.field} BETWEEN ${t} AND ${i}`;return true}}}}return false}async updateDateExpression(t,e){const{field:i,range:s}=e;const n=this.findFilterLayer(t);const r=await this.calculateMinMaxStatistics(n,i);const a=r?.[0]?.attributes;e.min=p(a[`min${i}`]);e.max=p(a[`max${i}`]);if(s!=null&&(s?.max!=null||s?.min!=null)){let{min:t,max:n}=s;t=t?.replace("+"," ");n=n?.replace("+"," ");if(t||n){const s=n&&!t?"<":!n&&t?">":null;if(s){e.definitionExpression=`${i} ${s} '${t??n}'`}else{e.definitionExpression=`${i} BETWEEN '${t}' AND '${n}'`}return true}}return false}async updateCodedValueExpression(t,e,i){if(!i?.domain||i?.domain?.type!=="coded-value"){return false}const s=this.findFilterLayer(t);await this.getFeatureAttributes(s,e);const n=i.domain;const r=n.codedValues.reduce(((t,{code:e,name:i})=>{t[e]=i;return t}),{});e.codedValues=r;if(e.selectedFields?.length){const t=e.selectedFields.map((t=>typeof t==="number"?t:`'${d(t)}'`)).join(",");e.definitionExpression=`${e.field} IN (${t})`;return true}return false}updateRangeExpression(t,e){if(!e?.domain||e?.domain?.type!=="range"){return false}const{field:i,range:s}=t;t.min=e.domain.minValue;t.max=e.domain.maxValue;if(s&&Object.keys(s).length){t.definitionExpression=`${i} BETWEEN ${s.min} AND ${s.max}`;return true}return false}async getFeatureAttributes(t,e){if(!this.isLayerSupported(t)){e.fields=[];return}const i=await this.getQueryLayer(t);const{maxRecordCount:s,supportsMaxRecordCountFactor:n}=this.extractQueryCapabilities(t);const r=await i.queryFeatureCount();const a=this.createQuery(i,e);await this.queryDistinctFeatures(i,a,e);if(this.shouldPaginate(s,r,n)){void this.handlePagination(i,a,s,n,r,e)}}isLayerSupported(t){return t&&h.includes(t.type)}extractQueryCapabilities(t){return{maxRecordCount:t.capabilities?.query?.maxRecordCount??t.sourceJSON?.maxRecordCount,supportsMaxRecordCountFactor:t.capabilities?.query?.supportsMaxRecordCountFactor}}createQuery(t,e){const i=t.createQuery();this.applyCacheHint(t,i);const s=e?.field;if(s){const e=this.getInitDefExprFromLayer(t);i.where=e||"1=1";i.outFields=[s];i.orderByFields=[`${s} ASC`];i.returnDistinctValues=true;i.returnGeometry=false;i.maxRecordCountFactor=5;this.applyQueryGeometryFromExtentSelector(i)}return i}async queryDistinctFeatures(t,e,i){if(!e.outFields){return}const s=await this.queryForFeatures(t,e,e.outFields[0]);if(s?.length){i.fields=[...new Set(s)];if(i.type==="string"){i.fields=i.fields.sort(((t,e)=>t.localeCompare(e)))}else if(i.type==="number"){i.fields=i.fields.sort(((t,e)=>t-e))}}}getQueryCount(t,e){return e?t*5:t}shouldPaginate(t,e,i){const s=this.getQueryCount(t,i);return t!=null&&e>s}async handlePagination(t,e,i,s,n,r){const a=this.getQueryCount(i,s);const o=[];for(let s=a;s<n;s+=a){const n=e.clone();n.num=i;n.start=s;o.push(this.queryForFeatures(t,n,e?.outFields?.[0]??""))}void Promise.all(o).then((t=>{t.forEach((t=>{if(t?.length&&r.fields){r.fields.push(...t)}}));if(r.type==="string"){r.fields=[...new Set(r.fields)].sort(((t,e)=>t.localeCompare(e)))}else if(r.type==="number"){r.fields=[...new Set(r.fields)].sort(((t,e)=>t-e))}else{r.fields=[...new Set(r.fields)].sort()}}))}async queryForFeatures(t,e,i){const s=await t.queryFeatures(e);const n=s?.features.filter((t=>t.attributes?.[i]));return n?.map((t=>t.attributes?.[i]))}async calculateMinMaxStatistics(t,e){if(!t||!h.includes(t.type)||!e){return[]}const i=this.createStatisticsQuery(t,e);const s=await t.queryFeatures(i);return s?.features||[]}createStatisticsQuery(t,e){const i=t.createQuery();i.where=this.getInitDefExprFromLayer(t)||"1=1";this.applyCacheHint(t,i);i.outStatistics=[{onStatisticField:e,outStatisticFieldName:`max${e}`,statisticType:"max"},{onStatisticField:e,outStatisticFieldName:`min${e}`,statisticType:"min"}];this.applyQueryGeometryFromExtentSelector(i);return i}getExtent(t,e){if(t&&e){const{constraints:t}=e;const i={...t};const s=i?.geometry;if(s){const t="extent"in s?s:this.geometryJsonUtils.fromJSON(s);if(t?.type==="extent"||t?.type==="polygon"){return t}}}return}async setInitExpression(t,e){if(!e.field||!e.type){await this.updateExpression(t,e,undefined);return}const i=this.findFilterLayer(t);if(!i){return}if(i.loadStatus==="not-loaded"||i.loadStatus==="failed"){await i.load()}await i.when((async()=>{const s=i.fields?.find((({name:t})=>t===e.field));const n=s?.domain?.type;e.type=n==="coded-value"||n==="range"?n:e.type;await this.updateExpression(t,e,s)}))}async updateExpression(t,e,i){const s=await this.handleExpressionType(t,e,i);if(s){this.generateOutput(t)}}async handleExpressionType(t,e,i){switch(e.type){case"string":return await this.updateStringExpression(t,e);case"number":return await this.updateNumberExpression(t,e);case"date":return await this.updateDateExpressionBasedOnDisplayOption(t,e);case"coded-value":return await this.updateCodedValueExpression(t,e,i);case"range":return await this.updateRangeExpressionBasedOnDisplayOption(t,e,i);case"checkbox":case null:case undefined:return e.active??false;default:return false}}async updateDateExpressionBasedOnDisplayOption(t,e){if(e.displayOption==="drop-down"){return await this.updateStringExpression(t,e)}else{return await this.updateDateExpression(t,e)}}async updateRangeExpressionBasedOnDisplayOption(t,e,i){if(e.displayOption==="drop-down"){return await this.updateStringExpression(t,e)}else{return this.updateRangeExpression(e,i)}}updateRangeExpressions(t,e,i,s){const n=this.getInitDefExprFromLayerExpression(e);if((s||s===0)&&(i||i===0)){if(s===t?.min&&i===t?.max){t.definitionExpression=undefined;t.active=false}else{t.definitionExpression=n?`(${n}) AND ${t?.field} BETWEEN ${s} AND ${i}`:`${t?.field} BETWEEN ${s} AND ${i}`;t.active=true}}t.range={min:s,max:i}}handleCheckboxChange(t,e,i){const s=i.target;e.active=s.checked;this.generateOutput(t)}handleSliderChange(t,e,i){const{maxValue:s,minValue:n}=i.target;this.updateRangeExpressions(t,e,s,n);this.generateOutput(e)}handleComboSelect(t,e,i){const s=i.target;const n=s.selectedItems;const{field:r,type:a}=t;t.selectedFields=n.map((({value:t})=>t));if(n.length){const e=n.map((({value:t})=>typeof t==="number"?t:`'${d(t)}'`));t.definitionExpression=a==="date"?e.map((t=>this.buildDateExpression(t,r))).join(" OR "):`${r} IN (${e.join(",")})`;t.active=true}else{t.definitionExpression=undefined;t.active=false}this.generateOutput(e)}handleDatePickerRangeChange(t,e,i){const s=i.target;const[n,r]=s.valueAsDate;const a=n?p(Math.floor(n.getTime()),true):undefined;const o=r?p(Math.floor(r.getTime()),true):undefined;if(a||o){t.definitionExpression=this.constructDefinitionExpression(t.field,a,o);t.range={min:a,max:o};t.active=true;this.generateOutput(e)}}constructDefinitionExpression(t,e,i){if(!e){return`${t} < '${i}'`}if(!i){return`${t} > '${e}'`}return`${t} BETWEEN '${e}' AND '${i}'`}handleURLParams(){if(!("URLSearchParams"in window)){return}const t=new URLSearchParams(document.location.search);const e=t.get("filter");if(!e){this.filterCount=0;return}const i=e.split(";").map((t=>JSON.parse(t)));this.filterCount=this.applyFilters(i)}applyFilters(t){let e=0;t.forEach((t=>{const i=this.filterLayerExpressions?.find((e=>e.id===t.layerId));if(!i){return}i.expressions?.forEach((i=>{if(i.id?.toString()===t.expressionId?.toString()){this.activateExpression(i,t);e++}}))}));return e}activateExpression(t,e){t.active=true;if(e.type==="range"){t.range=e.range}else if(e.type==="select"){t.selectedFields=e.selectedFields}}createURLParamExpression(t,e){const{id:i,range:s,selectedFields:n,type:r}=e;if(r==="string"||r==="coded-value"||e?.numDisplayOption==="drop-down"||e?.displayOption==="drop-down"){return{type:"select",layerId:t.id,expressionId:i.toString(),selectedFields:n}}else if(r==="number"||r==="range"||r==="date"){return{type:"range",layerId:t.id,expressionId:i.toString(),range:s}}else{return{layerId:t.id,expressionId:i.toString()}}}autoUpdateURLCheck(t){if(this.autoUpdateUrl){const e=t.toString()?`${window.location.pathname}?${t}`.trim():window.location.pathname;window.history.replaceState({},"",e)}}generateURLParams(){if(!("URLSearchParams"in window)){return}const t=new URLSearchParams(window.location.search);const e=this.filterLayerExpressions?.flatMap((t=>t?.expressions?.filter((t=>t.active)).map((e=>JSON.stringify(this.createURLParamExpression(t,e))))||[]))||[];this.filterCount=e.length;if(e.length>0){t.set("filter",e.join(";"))}else{t.delete("filter")}this.autoUpdateURLCheck(t);this.urlParams=t}updateFilter(t,e,i){const{id:s}=t;const n=this.view.map.findLayerById(s)??this.view.map.findTableById(s);if(n!=null){if(n.type==="point-cloud"){this.updateFilterLayerPCLFilter(n,i)}else if(n.type==="map-image"){const i=n.findSublayerById(t?.sublayerId);if(i!=null){this.updateFilterLayerDefExpression(i,e,t)}}else{this.updateFilterLayerDefExpression(n,e,t)}}}updateFilterLayerDefExpression(t,e,i){const{operator:s}=i;const n=this.getInitDefExprFromLayer(t);const r=e?.length>0&&n!=null&&n!==""?`(${e.join(s)}) AND (${n})`:e.length>0?e.join(s):n;t.definitionExpression=r}updateFilterLayerPCLFilter(t,e){t.filters=e}async handleWhenView(){if(this.view==null){return}const t=this.view.map;await t.loadAll();void this.handleLayerExpressionsUpdate()}async handleLayerExpressionsUpdate(){this.updateInitExpressions();this.handleURLParams();void this.initExpressions()}async handleZoomTo(t){const e=t?.sublayerId?`#zoom-to-${t.id}-${t.sublayerId}`:`#zoom-to-${t.id}`;const i=this.panelEl.querySelector(e);const s=(t,e)=>{if(i){i.loading=t;i.disabled=e}};s(true,true);await this.getZoomToExtent(t);if(this.zoomToExtent){const t=this.zoomToExtent.type==="point"&&this.zoomToExtent.count===1?{target:this.zoomToExtent.extent,zoom:10}:this.zoomToExtent.extent;await this.view.goTo(t)}s(false,false)}async getZoomToExtent(t){const e=this.view.allLayerViews.find((({layer:e})=>e.id===t.id));const i=e.layer;const s=i.type==="map-image"?i.findSublayerById(t.sublayerId):i;if(s&&s.type!=="point-cloud"&&h.includes(s?.type)){const t=await this.getQueryLayer(s);const e=t.createQuery();e.where=t.definitionExpression??"1=1";const i=await t.queryExtent(e);this.zoomToExtent={...i,type:t.geometryType}}}applyFilterToQuery(t,e){const i=this.view.allLayerViews.find((({layer:t})=>t.id===e.id));const s=i?.featureEffect?.filter??i.filter;if(s){const e=["objectIds","distance","geometry","spatialRelationship","units","where","timeExtent"];e.forEach((e=>{if(s[e]!=null){t[e]=s[e]}}))}}generateOutput(t){if(this.view==null){return}const e=[];let i=[];if(t){for(const s of t.expressions){const{active:t,definitionExpression:n,pointCloudFilters:r}=s;if(t&&n){e.push(`(${n})`)}if(t&&r!=null&&r.length>0){i=i.concat(r)}}this.updateFilter(t,e,i);this.generateURLParams();this.filterUpdate.emit()}}numberWithCommas(t){return t.toLocaleString("en-US",{maximumFractionDigits:20})}scientificRounding(t,e,i){if(t==null){return undefined}let s;if(!String(t).includes("e")){s=Math[i](t*Math.pow(10,e))/Math.pow(10,e)}else{const[n,r]=String(t).split("e").map((t=>Number(t)));const a=r+e;const o=Math[i](+`${n}e${a}`);s=o*Math.pow(10,-e)}return+s.toFixed(e)}roundMinNumberDown(t,e){return this.scientificRounding(t,e,"floor")}roundMaxNumberUp(t,e){return this.scientificRounding(t,e,"ceil")}roundNumber(t,e){return this.scientificRounding(t,e,"round")??t}setExpressionFormat(t,e,i){if(t?.popupTemplate!=null){const s=t?.popupTemplate.fieldInfos?.find((({fieldName:t})=>t===i));if(s?.format){e.format=s.format}}}getInitDefExprFromLayer(t){return t.type==="sublayer"?this.initMapImageExpressions?.[t?.layer?.id??""]?.[t.id]??"":this.initDefExpressions?.[t.id]??""}getInitDefExprFromLayerExpression(t){return t?.sublayerId!=null?this.initMapImageExpressions?.[t.id]?.[t.sublayerId]??"":this.initDefExpressions?.[t.id]??""}findFilterLayer(t){const e=this.view.map.allLayers.concat(this.view.map.allTables);const i=e.find((({id:e})=>e===t.id));if(i.type==="map-image"){return i?.findSublayerById(t.sublayerId)}else{return i}}createLabel(t,e){if(t.type==="coded-value"){return t?.codedValues?.[e]}if(t.type==="number"&&typeof e==="number"){let i=e;if(t.format?.places!=null){i=this.roundNumber(e,t.format.places)}if(t.format?.digitSeparator){return this.numberWithCommas(i)}return i}if(t.type==="date"&&!t.dateOnly){const t=this.intl.convertDateFormatToIntlOptions("short-date-long-time");return this.intl.formatDate(e,t)}return e}buildDateExpression(t,e){if(t){const i=new Date(t);const s=new Date(t);const n=new Date(s.setDate(i.getDate()+1));const r=`${i.getFullYear()}-${i.getMonth()+1}-${i.getDate()}`;const a=`${i.getHours()}:${i.getMinutes()}:${i.getSeconds()}`;const o=`${n.getHours()}:${n.getMinutes()}:${n.getSeconds()}`;const l=`${n.getFullYear()}-${n.getMonth()+1}-${n.getDate()}`;return`${e} BETWEEN '${r} ${a}' AND '${l} ${o}'`}return}async getQueryLayer(t){const e=t.type==="sublayer"?await t.createFeatureLayer():t;if(!e){throw new Error("Failed to create feature layer")}return e}applyCacheHint(t,e){if(t?.capabilities?.query?.supportsCacheHint){e.cacheHint=true}}applyQueryGeometryFromExtentSelector(t){if(!this.extentSelector||!this.extentSelectorConfig){return}const e=this.getExtent(this.extentSelector,this.extentSelectorConfig);if(!e){return}t.geometry=e;t.spatialRelationship="intersects"}updateInitExpressions(){if(this.view==null){return}const t=this.view.map;this.initDefExpressions={};this.initPointCloudFilters={};this.initMapImageExpressions={};t.allLayers.concat(t.allTables).forEach((t=>{if(!h.includes(t.type)){return}const e=t;if(e.type==="point-cloud"){if(!this.initPointCloudFilters){this.initPointCloudFilters={}}this.initPointCloudFilters[e.id]=e.filters}else if(e.type==="map-image"){if(!this.initMapImageExpressions){this.initMapImageExpressions={}}this.initMapImageExpressions[e.id]=e.allSublayers.reduce(((t,e)=>{t[e.id]=e.definitionExpression??"";return t}),{})}else{if(!this.initDefExpressions){return}this.initDefExpressions[e.id]=e.definitionExpression??""}}))}get el(){return n(this)}static get watchers(){return{view:["watchViewHandler"],layerExpressions:["watchLayerExpressions"]}}};y.style=b;export{y as instant_apps_filter_list};
|
2
|
+
//# sourceMappingURL=p-af343e04.entry.js.map
|