@esri/solutions-components 1.0.0-next.20250513 → 1.0.0-next.20250513.1
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/cdn/{RTL6LDYI.js → 23YKBWAC.js} +2 -2
- package/dist/cdn/{TSJDIDQQ.js → 246GABX4.js} +2 -2
- package/dist/cdn/{TKZBNC7H.js → 2BYLFULE.js} +2 -2
- package/dist/cdn/{K4CSMHLX.js → 2DDJ2AFS.js} +2 -2
- package/dist/cdn/{P5SCKVEP.js → 2JBJHRHU.js} +2 -2
- package/dist/cdn/{YWPX2AWZ.js → 2K3MMRXW.js} +2 -2
- package/dist/cdn/{3WW3YWCT.js → 2SMSSXCB.js} +2 -2
- package/dist/cdn/{KIU22HO4.js → 2T3QIT6S.js} +2 -2
- package/dist/cdn/{XOTJKE5D.js → 2VM36EOG.js} +2 -2
- package/dist/cdn/{ETTBV6A5.js → 36KGPYQP.js} +2 -2
- package/dist/cdn/{TGLGAJZN.js → 3CR3QCZT.js} +2 -2
- package/dist/cdn/{B33KRB36.js → 3HOUIYSB.js} +2 -2
- package/dist/cdn/{2ZOPKOQW.js → 3MPH6U6A.js} +2 -2
- package/dist/cdn/{X5NCT7SI.js → 3O5NME66.js} +1 -1
- package/dist/cdn/{BVAH7X2K.js → 3QDSK6LK.js} +2 -2
- package/dist/cdn/{CIQJF5B3.js → 3SIKQBUD.js} +2 -2
- package/dist/cdn/{QIVU3W4F.js → 3TOH77TX.js} +2 -2
- package/dist/cdn/{3KNYDGE4.js → 3TUJ4JJ5.js} +2 -2
- package/dist/cdn/{3S3YE7LS.js → 3ZAAVHR2.js} +2 -2
- package/dist/cdn/{XV6244HK.js → 44RAERGT.js} +2 -2
- package/dist/cdn/{DAC3GWK5.js → 47DEY33Q.js} +2 -2
- package/dist/cdn/{D2BGUJW5.js → 47XOSUMG.js} +2 -2
- package/dist/cdn/{VTJTEDJC.js → 4AGFHRFX.js} +2 -2
- package/dist/cdn/{XW3XMCXE.js → 4DOBOTOA.js} +2 -2
- package/dist/cdn/{U35AQBWJ.js → 4I2ETJ5R.js} +1 -1
- package/dist/cdn/4IU5MAMG.js +4 -0
- package/dist/cdn/{VPPRTR4I.js → 4JQ3EMVS.js} +2 -2
- package/dist/cdn/{EOOHBALJ.js → 4OCR3H4M.js} +2 -2
- package/dist/cdn/{7FTLGHTG.js → 4SXLUGVC.js} +2 -2
- package/dist/cdn/{GPW2TCPZ.js → 4T5G7D3M.js} +2 -2
- package/dist/cdn/{A4AUBCIN.js → 4WY233D6.js} +2 -2
- package/dist/cdn/{DGN5X5A4.js → 524EKBTA.js} +2 -2
- package/dist/cdn/{7VOZDFCU.js → 52BCWQEA.js} +2 -2
- package/dist/cdn/{TD4SVRZ2.js → 52MJSDMV.js} +2 -2
- package/dist/cdn/{TV4DZ4NC.js → 5GGF35L5.js} +2 -2
- package/dist/cdn/{VQKEDTWW.js → 5O34KXSF.js} +2 -2
- package/dist/cdn/{G2KU4GJD.js → 5Z7R3XOW.js} +1 -1
- package/dist/cdn/{4HNFRLEB.js → 65GRV5ZI.js} +2 -2
- package/dist/cdn/{FIE266AU.js → 66TACLFN.js} +2 -2
- package/dist/cdn/{FLC5VXCW.js → 67LEPSGW.js} +2 -2
- package/dist/cdn/{FJRGFI2V.js → 6CYK6BB7.js} +1 -1
- package/dist/cdn/{RKUNOYZR.js → 6HKXUI6P.js} +2 -2
- package/dist/cdn/{GA57AOAH.js → 6JLMDDJ5.js} +2 -2
- package/dist/cdn/{356X3OF7.js → 6YQEXU32.js} +2 -2
- package/dist/cdn/{NYANCYTJ.js → 743KENLL.js} +2 -2
- package/dist/cdn/{4Z3IUDH5.js → 74BFRFR6.js} +4 -4
- package/dist/cdn/{5GI5HKKC.js → 74OAFWYK.js} +2 -2
- package/dist/cdn/{5AVYYC47.js → 762BKOZV.js} +2 -2
- package/dist/cdn/{KUVX4OOK.js → 7BAB326V.js} +2 -2
- package/dist/cdn/{PL3CH3LF.js → 7EV7MOH7.js} +2 -2
- package/dist/cdn/{PDEMBJK2.js → 7NJWTG5Q.js} +2 -2
- package/dist/cdn/{GYXP7WY2.js → 7POMEGOT.js} +2 -2
- package/dist/cdn/{WBDBLEC7.js → 7QIW3X3J.js} +2 -2
- package/dist/cdn/{37UTA2CS.js → 7TXDKHSR.js} +2 -2
- package/dist/cdn/{4M3HYUSJ.js → 7TZTFXYB.js} +2 -2
- package/dist/cdn/{WUYLVJC7.js → 7ZWQ5RIA.js} +2 -2
- package/dist/cdn/{RFSMSYJR.js → AEJKH2N4.js} +2 -2
- package/dist/cdn/{HZIMPHWC.js → AFRKXBZK.js} +2 -2
- package/dist/cdn/{T66Y6KTO.js → ANP7AZFG.js} +2 -2
- package/dist/cdn/{PJF5G4QB.js → ARKBNGKH.js} +2 -2
- package/dist/cdn/{MSCUGG2N.js → ARTYQZHE.js} +1 -1
- package/dist/cdn/{JBH2RRSE.js → AVRXN4UR.js} +2 -2
- package/dist/cdn/{XI6U7JLE.js → AWLITXKE.js} +2 -2
- package/dist/cdn/{C44EKR3M.js → AZKYXX53.js} +1 -1
- package/dist/cdn/{P55AP2OS.js → B6EMT5VV.js} +2 -2
- package/dist/cdn/{W4QVPEC6.js → B7XFXDPR.js} +1 -1
- package/dist/cdn/{HSCOIXLG.js → BCWHIGGF.js} +2 -2
- package/dist/cdn/{CNU3TPX7.js → BEUU4V47.js} +2 -2
- package/dist/cdn/{IZGA6GXU.js → BK4S3RXL.js} +2 -2
- package/dist/cdn/{2LWA3LPI.js → BMFQADY6.js} +2 -2
- package/dist/cdn/{2PNI22UK.js → BMT45QOY.js} +2 -2
- package/dist/cdn/{MXKCH65B.js → BRP2ZFTA.js} +2 -2
- package/dist/cdn/{ANRR2Q3N.js → BS6MCVLT.js} +2 -2
- package/dist/cdn/{OAJSYATY.js → BTPTRXRA.js} +2 -2
- package/dist/cdn/{LZXK3MVJ.js → BVZUGCOI.js} +2 -2
- package/dist/cdn/{ULVBGZTW.js → BWXM7YAS.js} +2 -2
- package/dist/cdn/{UDGQW7QL.js → C3QQO3JT.js} +2 -2
- package/dist/cdn/{RXTELQ34.js → C3XQ4X7S.js} +2 -2
- package/dist/cdn/{6MHBJPS2.js → C5KZI572.js} +2 -2
- package/dist/cdn/{MB76IRBK.js → CBESNLSQ.js} +2 -2
- package/dist/cdn/{VLGVIKZ6.js → CCTVQ7J6.js} +2 -2
- package/dist/cdn/{ONIJZZLM.js → CLOM3LFK.js} +2 -2
- package/dist/cdn/{WAHZ4BJA.js → CT7VEZDK.js} +2 -2
- package/dist/cdn/{KKSOLSMJ.js → CXYY2U43.js} +2 -2
- package/dist/cdn/{AI3WLROH.js → D2LLTH6P.js} +2 -2
- package/dist/cdn/{KCDVHUF2.js → D6E3WEYR.js} +2 -2
- package/dist/cdn/{53N47Q3X.js → DADLOUNZ.js} +2 -2
- package/dist/cdn/{MFYJYT6Q.js → DHRLL7NQ.js} +2 -2
- package/dist/cdn/{2MC74LFI.js → DJLABPFC.js} +2 -2
- package/dist/cdn/{5IYB6I37.js → DKBSVQN3.js} +2 -2
- package/dist/cdn/{EIZMLFHI.js → DNUOMN67.js} +1 -1
- package/dist/cdn/{OMLJWKTW.js → DOSGDH3U.js} +2 -2
- package/dist/cdn/{LBK4TQ4U.js → DPO6UDKC.js} +2 -2
- package/dist/cdn/{DHPOWICJ.js → DQEAYFAF.js} +2 -2
- package/dist/cdn/{GM3ATYLE.js → DUMJIXV7.js} +1 -1
- package/dist/cdn/{ISCASEIO.js → DVK7WGWJ.js} +1 -1
- package/dist/cdn/{4SNRICQS.js → DX2VURSL.js} +2 -2
- package/dist/cdn/DXOLFQBJ.js +4 -0
- package/dist/cdn/{WCAYMKQP.js → DYDTMS5A.js} +2 -2
- package/dist/cdn/{5D3XSPVE.js → E5J3LXUI.js} +2 -2
- package/dist/cdn/{IKBVEVMI.js → EKWMSR5N.js} +2 -2
- package/dist/cdn/{HHVCX4HB.js → ELHHO2HG.js} +1 -1
- package/dist/cdn/{G6RUG3BR.js → EMLYWNKX.js} +2 -2
- package/dist/cdn/EQ7BO6C2.js +4 -0
- package/dist/cdn/{ZIJGSIAY.js → F2TP7D3Z.js} +1 -1
- package/dist/cdn/{MEMYGNMH.js → F4CZ5GDH.js} +2 -2
- package/dist/cdn/{PVMRTOAH.js → F4S54KIN.js} +2 -2
- package/dist/cdn/{ZSVGZTYI.js → F7TRMIZC.js} +2 -2
- package/dist/cdn/{BZM6QEVQ.js → FGM64GKL.js} +1 -1
- package/dist/cdn/{6HNT2RSP.js → FN3PUVIO.js} +2 -2
- package/dist/cdn/{WKBQVMT4.js → FQA6EV3F.js} +2 -2
- package/dist/cdn/{33R6U7YA.js → FQQPKFKR.js} +2 -2
- package/dist/cdn/{4YGER5QC.js → FW3OFREF.js} +1 -1
- package/dist/cdn/{2HQWNDOT.js → GD5M2FA3.js} +1 -1
- package/dist/cdn/{TGVDYRKZ.js → GMYAKEAU.js} +2 -2
- package/dist/cdn/{4745A7PL.js → GU775YRY.js} +1 -1
- package/dist/cdn/{CCHSAYV3.js → H2XZ5TPS.js} +2 -2
- package/dist/cdn/{5RJEQIH2.js → HDVUMH4E.js} +1 -1
- package/dist/cdn/{7KFM4VXO.js → HFGSRQ53.js} +2 -2
- package/dist/cdn/{QBKMKNGL.js → HGJHBG4H.js} +2 -2
- package/dist/cdn/{MYHI7ROY.js → HQTPWCRI.js} +2 -2
- package/dist/cdn/{H7Y4URDU.js → HTFV4B6M.js} +2 -2
- package/dist/cdn/{I5XMZWO6.js → IA5UUSGD.js} +2 -2
- package/dist/cdn/{JQV5TGAK.js → IBDM4N5B.js} +2 -2
- package/dist/cdn/{EZUUCYDZ.js → ICNH5LLB.js} +2 -2
- package/dist/cdn/{QCF4PYQB.js → ICTNZMXC.js} +1 -1
- package/dist/cdn/{EZLMQOSZ.js → IEEDUG7D.js} +2 -2
- package/dist/cdn/{4DVIYVRO.js → IFS2FCRW.js} +2 -2
- package/dist/cdn/{KJGF4NJ3.js → IQBIY4LU.js} +2 -2
- package/dist/cdn/{JGPXY5SS.js → IXYPSCHA.js} +2 -2
- package/dist/cdn/{GGVX7BU3.js → J2AOE72O.js} +2 -2
- package/dist/cdn/{UJSCHQIP.js → JADH56DH.js} +2 -2
- package/dist/cdn/{UVBA6JNL.js → JAXLR4NG.js} +1 -1
- package/dist/cdn/{OOGXSHWN.js → JC5GPNKP.js} +2 -2
- package/dist/cdn/{EDPL4TKI.js → JKV6HJNN.js} +2 -2
- package/dist/cdn/{CDXLLR33.js → JMWKZJCV.js} +2 -2
- package/dist/cdn/{QHJVQDMN.js → JO3TGX3S.js} +2 -2
- package/dist/cdn/{3P3P323U.js → JQFYSHOL.js} +2 -2
- package/dist/cdn/{F57GZO2E.js → JYBRQYQO.js} +2 -2
- package/dist/cdn/{CZOWNF5N.js → KAOZRVHT.js} +2 -2
- package/dist/cdn/KAP76DTH.js +4 -0
- package/dist/cdn/{RN7TUN7E.js → KBP3WSLN.js} +2 -2
- package/dist/cdn/{RVRAGQDC.js → KD4M5XSM.js} +2 -2
- package/dist/cdn/{PWDTDHPM.js → KDUEXCFJ.js} +1 -1
- package/dist/cdn/{IG3I76TX.js → KJUPNH26.js} +1 -1
- package/dist/cdn/{LZVWOWHQ.js → KN3DG5N5.js} +2 -2
- package/dist/cdn/{74FUG5XE.js → KRLBHVWO.js} +2 -2
- package/dist/cdn/{OBGBZA5Q.js → KXKPHNIN.js} +2 -2
- package/dist/cdn/{V6UTV55V.js → L3CECNF2.js} +1 -1
- package/dist/cdn/{KMJY2PGB.js → L6ZKECRD.js} +2 -2
- package/dist/cdn/{YRLQIYDY.js → LHQQTERG.js} +2 -2
- package/dist/cdn/{MGRH7AJX.js → LIY7L5HY.js} +2 -2
- package/dist/cdn/{HXLDVONX.js → LJHTCGCE.js} +2 -2
- package/dist/cdn/{MCIIM4XE.js → LJVAXK4D.js} +2 -2
- package/dist/cdn/LYF2DSS7.js +4 -0
- package/dist/cdn/{B2634ITV.js → M2IPXBJW.js} +2 -2
- package/dist/cdn/{5RGCCJRI.js → M2TI7O6U.js} +2 -2
- package/dist/cdn/{YNLSAEFB.js → M5IOEAD5.js} +2 -2
- package/dist/cdn/{EOM3X2VQ.js → M7SGJ27H.js} +2 -2
- package/dist/cdn/MCBLASJ3.js +4 -0
- package/dist/cdn/{T6FHHQZJ.js → MM4GYF2M.js} +2 -2
- package/dist/cdn/{KVYB56FX.js → MM73SXGN.js} +2 -2
- package/dist/cdn/{FR5YKIYR.js → MQYS3NXM.js} +2 -2
- package/dist/cdn/{HTWIZOH4.js → MUVB5RUT.js} +2 -2
- package/dist/cdn/{OUAPE77Q.js → MWVT5VTF.js} +2 -2
- package/dist/cdn/{5XZ2VEVE.js → MYWEE66N.js} +2 -2
- package/dist/cdn/{IVOSJYWQ.js → N7YKFWHI.js} +2 -2
- package/dist/cdn/{XISA6SLB.js → NERPCGAI.js} +2 -2
- package/dist/cdn/{UOCWAIF5.js → NJJU4T5L.js} +2 -2
- package/dist/cdn/{FZAZSLYD.js → NLJKG426.js} +2 -2
- package/dist/cdn/{V3NOQ3VR.js → NMQL6RPI.js} +2 -2
- package/dist/cdn/{3DPLKEDU.js → NRIFWRSL.js} +2 -2
- package/dist/cdn/{VOCP45SC.js → NTLHACLF.js} +2 -2
- package/dist/cdn/{3RC2WF5B.js → NUCM6ABX.js} +3 -3
- package/dist/cdn/{3Y5R5IUQ.js → NYYKUTZ2.js} +2 -2
- package/dist/cdn/{S3WKVRQS.js → OJ6AH4AP.js} +2 -2
- package/dist/cdn/{KQVVUDCM.js → OOKZNHYN.js} +1 -1
- package/dist/cdn/{55P3U5JJ.js → OWP2RUTT.js} +2 -2
- package/dist/cdn/{I7UVWQMY.js → OXFWSAQC.js} +2 -2
- package/dist/cdn/{L46SKXK3.js → P3NUNSXP.js} +2 -2
- package/dist/cdn/{2FXMJWEJ.js → P5SS2UTJ.js} +2 -2
- package/dist/cdn/{2AE65J7Z.js → PCLM5T4X.js} +2 -2
- package/dist/cdn/{6VGFUAX5.js → PFQ3QFCX.js} +2 -2
- package/dist/cdn/{SBDAFL5S.js → PHNR5GQ7.js} +2 -2
- package/dist/cdn/{55KC257N.js → PKRP2ZND.js} +2 -2
- package/dist/cdn/{5AWXJIBG.js → PW2VRRCC.js} +2 -2
- package/dist/cdn/PWU7JUQ7.js +4 -0
- package/dist/cdn/{7WDOCGDK.js → Q3SDKCO5.js} +1 -1
- package/dist/cdn/{47R5RC4C.js → Q4LK4Y27.js} +2 -2
- package/dist/cdn/{6DG3MERJ.js → Q7ODV6KG.js} +2 -2
- package/dist/cdn/{P4CX5EDN.js → QCY5Q4DC.js} +2 -2
- package/dist/cdn/{ACHUFFFB.js → QIQDU5TD.js} +2 -2
- package/dist/cdn/{H6UT37EX.js → QKA6L5H2.js} +2 -2
- package/dist/cdn/{GSFWKQWQ.js → QKEAWMVG.js} +2 -2
- package/dist/cdn/{VAP272QY.js → QMDSZ7FM.js} +2 -2
- package/dist/cdn/{ADVQIEJR.js → QMZEUTLX.js} +1 -1
- package/dist/cdn/{YMECWXNY.js → QN47PAEX.js} +2 -2
- package/dist/cdn/{CAPUUGJR.js → QQ5XIIVB.js} +2 -2
- package/dist/cdn/{YFTL66BW.js → QRQDRKIY.js} +2 -2
- package/dist/cdn/{Q5EJXK76.js → QUP6DAHI.js} +2 -2
- package/dist/cdn/{HZFEYQGX.js → R2H5RSJ2.js} +1 -1
- package/dist/cdn/{JUZCGG5Y.js → R2JFZODC.js} +2 -2
- package/dist/cdn/{CTH3ZJDZ.js → RBCCFTZL.js} +2 -2
- package/dist/cdn/{A52VN6U6.js → RK2A2EVN.js} +2 -2
- package/dist/cdn/{7KGIY4Y7.js → RKMNK4LY.js} +2 -2
- package/dist/cdn/{TKUGQKMA.js → RWUIYZW7.js} +2 -2
- package/dist/cdn/{3WNCCUTZ.js → SCZ6RNHE.js} +1 -1
- package/dist/cdn/{LH4PUHQS.js → SFM44CFT.js} +2 -2
- package/dist/cdn/{GQU6FXIT.js → SHCFADDZ.js} +1 -1
- package/dist/cdn/{FDZH3TUO.js → SMHCAJLS.js} +2 -2
- package/dist/cdn/{CBMZJGCV.js → SOTTOWSO.js} +2 -2
- package/dist/cdn/{XJOAEUHQ.js → SPDLS67W.js} +2 -2
- package/dist/cdn/{GRCUUM5W.js → SYY2ZMAO.js} +2 -2
- package/dist/cdn/{IRVZT2BS.js → T2ZDNBN5.js} +2 -2
- package/dist/cdn/{WUWWLJEX.js → TASEETLT.js} +1 -1
- package/dist/cdn/{U7RXVNQC.js → TGKBXQFJ.js} +1 -1
- package/dist/cdn/{5CSQUWE5.js → TGPT6425.js} +2 -2
- package/dist/cdn/{T4UFIWDF.js → THV6PWO2.js} +2 -2
- package/dist/cdn/{GMCIGFUB.js → TVA5RLDT.js} +2 -2
- package/dist/cdn/{K4FMFGHK.js → TWXMTERQ.js} +2 -2
- package/dist/cdn/{D3DQ3LMO.js → U2VNJ7F6.js} +2 -2
- package/dist/cdn/{N73I4LYZ.js → U5CODQHI.js} +2 -2
- package/dist/cdn/{4CCXX3SG.js → U7PVKGZW.js} +2 -2
- package/dist/cdn/{JIJBRLA5.js → UBMZTDIG.js} +2 -2
- package/dist/cdn/{EE7WJZP4.js → UCLIEM25.js} +2 -2
- package/dist/cdn/{UKMHZ5PP.js → UFMXTBV5.js} +2 -2
- package/dist/cdn/{2HW4GV5C.js → UFXHNUVA.js} +2 -2
- package/dist/cdn/{NLQ42NQW.js → UIY6JQVD.js} +2 -2
- package/dist/cdn/{KBLQQKHW.js → UNKRKQGZ.js} +2 -2
- package/dist/cdn/{PNZ6XBPV.js → UVWG3C2B.js} +1 -1
- package/dist/cdn/{AXEU574G.js → UZT7DBX5.js} +2 -2
- package/dist/cdn/{S67NXZHK.js → UZURAIZS.js} +2 -2
- package/dist/cdn/{DVO5GTFT.js → V4OFJDAH.js} +2 -2
- package/dist/cdn/{QRM36WK6.js → V66DC2RZ.js} +2 -2
- package/dist/cdn/{KP6XEQR7.js → V7IFHU6D.js} +2 -2
- package/dist/cdn/{L2YHTSUT.js → VBBBC5BC.js} +2 -2
- package/dist/cdn/{ZADWIJ7Q.js → VCPH6BNX.js} +2 -2
- package/dist/cdn/{HOLWK3EZ.js → VEH7MCF4.js} +2 -2
- package/dist/cdn/{5DHQPMEJ.js → VQRIVYMR.js} +2 -2
- package/dist/cdn/{GPUA6MAJ.js → VRSOFLBM.js} +2 -2
- package/dist/cdn/{VGXJDR76.js → VSY4FDGY.js} +2 -2
- package/dist/cdn/{USMPDRTK.js → W2BBALTD.js} +2 -2
- package/dist/cdn/{H4ZWRKI2.js → W4CDQBTA.js} +2 -2
- package/dist/cdn/{ZVRPCQAG.js → WKEGSNNF.js} +1 -1
- package/dist/cdn/{6QS23BIH.js → WTQ7BZT3.js} +2 -2
- package/dist/cdn/{XZS545IF.js → X4VJZ3Q6.js} +2 -2
- package/dist/cdn/{7RAJQNDO.js → XCC7EMQO.js} +2 -2
- package/dist/cdn/XFRJGRQ2.js +4 -0
- package/dist/cdn/{E35TDRWG.js → XKATHJUA.js} +2 -2
- package/dist/cdn/{BMMWWZDP.js → XPNMHAKP.js} +2 -2
- package/dist/cdn/{KDKKKQOA.js → XQ3FJCBS.js} +2 -2
- package/dist/cdn/{AT3EMTZF.js → XQXPNULI.js} +1 -1
- package/dist/cdn/{AYBKCTTB.js → XT4NY5DN.js} +2 -2
- package/dist/cdn/{IDFWZFF5.js → XXMZR5G3.js} +1 -1
- package/dist/cdn/{72KOOVBA.js → Y62AFNGV.js} +2 -2
- package/dist/cdn/{7KBEEBMB.js → Y7GXXND2.js} +2 -2
- package/dist/cdn/{JNWG7WSY.js → YC5MPBUM.js} +2 -2
- package/dist/cdn/{47WHCZIM.js → YCUSWAJ3.js} +2 -2
- package/dist/cdn/{2Y7EB6IS.js → YDZXBSPS.js} +1 -1
- package/dist/cdn/{DHYYFX2C.js → YFTV5FQP.js} +1 -1
- package/dist/cdn/{UAP5F7JO.js → YNV6UHCS.js} +2 -2
- package/dist/cdn/{TKBHKV5M.js → YT2UVLBQ.js} +2 -2
- package/dist/cdn/{QZVDSGNQ.js → YZDPVYVB.js} +2 -2
- package/dist/cdn/{4ZM2K4B5.js → YZSZKD4O.js} +1 -1
- package/dist/cdn/ZAFJT72F.js +4 -0
- package/dist/cdn/{AJYMDWRR.js → ZBD6UXKS.js} +2 -2
- package/dist/cdn/{536426JP.js → ZBZY2YEI.js} +2 -2
- package/dist/cdn/{PPEC24ZV.js → ZHA5K55V.js} +2 -2
- package/dist/cdn/{CUFYPINX.js → ZHW2F3VO.js} +2 -2
- package/dist/cdn/{RM5MLMA4.js → ZOFTKF6J.js} +2 -2
- package/dist/cdn/{6KD4C6OL.js → ZZV2JD2S.js} +2 -2
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/common.js +1 -1
- package/dist/chunks/downloadUtils.js +1 -1
- package/dist/chunks/index.js +313 -405
- package/dist/chunks/interfaces.js +1 -1
- package/dist/chunks/loadModules.js +1 -1
- package/dist/chunks/mapViewUtils.js +1 -1
- package/dist/chunks/pciUtils.js +1 -1
- package/dist/chunks/popupUtils.js +1 -1
- package/dist/chunks/publicNotificationStore.js +1 -1
- package/dist/chunks/queryUtils.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/solution-store.js +1 -1
- package/dist/chunks/templates.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-solutions-assistant/customElement.d.ts +1 -1
- package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
- package/dist/components/basemap-gallery/customElement.js +1 -1
- package/dist/components/buffer-tools/customElement.js +1 -1
- package/dist/components/card-manager/customElement.d.ts +3 -3
- package/dist/components/card-manager/customElement.js +1 -1
- package/dist/components/consent-manager/customElement.js +1 -1
- package/dist/components/create-feature/customElement.d.ts +3 -3
- package/dist/components/create-feature/customElement.js +1 -1
- package/dist/components/create-related-feature/customElement.d.ts +2 -2
- package/dist/components/create-related-feature/customElement.js +1 -1
- package/dist/components/crowdsource-manager/customElement.d.ts +2 -2
- package/dist/components/crowdsource-manager/customElement.js +1 -1
- package/dist/components/crowdsource-reporter/customElement.js +1 -1
- package/dist/components/deduct-calculator/customElement.js +1 -1
- package/dist/components/delete-button/customElement.js +1 -1
- package/dist/components/delete-dialog/customElement.d.ts +1 -1
- package/dist/components/delete-dialog/customElement.js +1 -1
- package/dist/components/edit-card/customElement.d.ts +2 -2
- package/dist/components/edit-card/customElement.js +1 -1
- package/dist/components/feature-details/customElement.d.ts +2 -2
- package/dist/components/feature-details/customElement.js +1 -1
- package/dist/components/feature-list/customElement.js +1 -1
- package/dist/components/field-selection/customElement.js +1 -1
- package/dist/components/floor-filter/customElement.js +1 -1
- package/dist/components/info-card/customElement.d.ts +2 -2
- package/dist/components/info-card/customElement.js +1 -1
- package/dist/components/json-editor/customElement.js +1 -1
- package/dist/components/layer-list/customElement.js +1 -1
- package/dist/components/layer-table/customElement.d.ts +1 -1
- package/dist/components/layer-table/customElement.js +1 -1
- package/dist/components/map-card/customElement.d.ts +3 -3
- package/dist/components/map-card/customElement.js +1 -1
- package/dist/components/map-draw-tools/customElement.d.ts +2 -2
- package/dist/components/map-draw-tools/customElement.js +1 -1
- package/dist/components/map-fullscreen/customElement.js +1 -1
- package/dist/components/map-layer-picker/customElement.d.ts +1 -1
- package/dist/components/map-layer-picker/customElement.js +1 -1
- package/dist/components/map-legend/customElement.js +1 -1
- package/dist/components/map-picker/customElement.js +1 -1
- package/dist/components/map-search/customElement.js +1 -1
- package/dist/components/map-select-tools/customElement.js +1 -1
- package/dist/components/map-tools/customElement.js +1 -1
- package/dist/components/pci-calculator/customElement.js +1 -1
- package/dist/components/pdf-download/customElement.js +1 -1
- package/dist/components/public-notification/customElement.js +1 -1
- package/dist/components/refine-selection/customElement.js +1 -1
- package/dist/components/selection-tool/customElement.js +1 -1
- package/dist/components/solution-article-card/customElement.js +1 -1
- package/dist/components/solution-configuration/customElement.js +1 -1
- package/dist/components/solution-configure-panel/customElement.js +1 -1
- package/dist/components/solution-configure-titles/customElement.js +1 -1
- package/dist/components/solution-contents/customElement.js +1 -1
- package/dist/components/solution-delete-dialog/customElement.js +1 -1
- package/dist/components/solution-deploy-dialog/customElement.js +1 -1
- package/dist/components/solution-deploy-panel/customElement.js +1 -1
- package/dist/components/solution-deployed-card/customElement.js +1 -1
- package/dist/components/solution-deploying-panel/customElement.js +1 -1
- package/dist/components/solution-details-card/customElement.js +1 -1
- package/dist/components/solution-details-panel/customElement.js +1 -1
- package/dist/components/solution-item/customElement.js +1 -1
- package/dist/components/solution-item-accordion/customElement.js +1 -1
- package/dist/components/solution-item-details/customElement.js +1 -1
- package/dist/components/solution-item-icon/customElement.js +1 -1
- package/dist/components/solution-item-sharing/customElement.js +1 -1
- package/dist/components/solution-items-diagram/customElement.js +1 -1
- package/dist/components/solution-organization-variables/customElement.js +1 -1
- package/dist/components/solution-resource-item/customElement.js +1 -1
- package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
- package/dist/components/solution-spatial-ref/customElement.js +1 -1
- package/dist/components/solution-template-data/customElement.js +1 -1
- package/dist/components/solution-variables/customElement.js +1 -1
- package/dist/components/solutions-all-panel/customElement.js +1 -1
- package/dist/components/solutions-all-shell/customElement.js +1 -1
- package/dist/components/solutions-article-panel/customElement.js +1 -1
- package/dist/components/solutions-articles/customElement.js +1 -1
- package/dist/components/solutions-articles-shell/customElement.js +1 -1
- package/dist/components/solutions-deployed-panel/customElement.js +1 -1
- package/dist/components/solutions-deployed-shell/customElement.js +1 -1
- package/dist/components/solutions-filter-panel/customElement.js +1 -1
- package/dist/components/spatial-ref/customElement.js +1 -1
- package/dist/components/store-manager/customElement.js +1 -1
- package/dist/docs/api.json +27 -27
- package/dist/docs/docs.json +77 -77
- package/dist/docs/web-types.json +51 -51
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/package.json +2 -2
- package/dist/cdn/2QX2DZO7.js +0 -8
- package/dist/cdn/GHIWQFDY.js +0 -4
- package/dist/cdn/JYL4F373.js +0 -4
- package/dist/cdn/LT2FXISZ.js +0 -4
- package/dist/cdn/MYF2CGM2.js +0 -4
- package/dist/cdn/URRXFKCL.js +0 -4
- package/dist/cdn/XMB335P2.js +0 -4
- package/dist/cdn/YQNWPVUQ.js +0 -4
- package/dist/cdn/ZXAG7K3F.js +0 -4
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250513 */
|
4
|
-
import{a as w}from"./4YGER5QC.js";import{e as E}from"./UKMHZ5PP.js";import{B as y,C as b}from"./ZVRPCQAG.js";import"./2Y7EB6IS.js";import{a as F,c as l,d as C,e as x,f as m}from"./IRVZT2BS.js";import"./C44EKR3M.js";var L="instant-apps-filter-list calcite-mode-light",$="instant-apps-filter-list calcite-mode-dark",p=["feature","geojson","wfs","csv","scene","subtype-group","point-cloud","map-image","sublayer"];function g(e){return e.replaceAll("'","''")}function f(e,t=!1){if(e){let i=new Date(e),n=`${i.getFullYear()}-${i.getMonth()+1}-${i.getDate()}`;if(t){let s=`${i.getHours()}:${i.getMinutes()}:${i.getSeconds()}`;return`${n} ${s}`}else return n}}function D(e){if(e!=null){e.value=["",""];let t=e.shadowRoot?.querySelectorAll("calcite-input");if(t!=null)for(let i of t)i.value=""}}var S=":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}",k=S,u={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"},I=class{constructor(e){F(this,e),this.filterListReset=m(this,"filterListReset",7),this.filterUpdate=m(this,"filterUpdate",7),this.isLayerExpUpdated=!1,this.layerExpressions=void 0,this.autoUpdateUrl=!1,this.closeBtn=!1,this.closeBtnOnClick=void 0,this.comboboxOverlayPositioning="absolute",this.closeBtnText=void 0,this.openFilters=!1,this.extentSelector=!1,this.extentSelectorConfig=void 0,this.urlParams=void 0,this.filterCount=0,this.view=void 0,this.zoomBtn=!0,this.resetBtn=!0,this.resetFiltersOnDisconnect=!0,this.loading=void 0,this.filterLayerExpressions=void 0,this.messages=void 0,this.baseClass=L,this.initDefExpressions=void 0,this.initMapImageExpressions=void 0,this.initPointCloudFilters=void 0}watchViewHandler(){this.handleWhenView()}watchLayerExpressions(){this.resetAllFilters(),this.filterLayerExpressions=structuredClone(this.layerExpressions),this.handleLayerExpressionsUpdate()}async getFilterInitState(){return await Promise.resolve({initDefExpressions:this.initDefExpressions,initMapImageExpressions:this.initMapImageExpressions,initPointCloudFilters:this.initPointCloudFilters})}async forceReset(){return this.resetExpressions(),await Promise.resolve(!0)}async updateInitDefExpressions(e){return this.initDefExpressions=e.initDefExpressions,this.initMapImageExpressions=e.initMapImageExpressions,this.initPointCloudFilters=e.initPointCloudFilters,await Promise.resolve(!0)}async getCurrentLayerExpressions(){let e=structuredClone(this.filterLayerExpressions);return await Promise.resolve(e)}async handleUpdatingT9nData(e){return e==null?await Promise.resolve(!0):(this.filterLayerExpressions?.forEach(t=>{let i=e?.find(n=>n.id===t.id);i!=null&&(t.title=i.title,t.expressions?.forEach(n=>{let s=i.expressions?.find(a=>a.id===n.id);s!=null&&(n.name=s.name)}))}),await Promise.resolve(!0))}connectedCallback(){this.layerExpressions==null&&this.view==null||(this.isLayerExpUpdated=!0,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.handleLayerExpressionsUpdate())}async componentWillLoad(){this.baseClass=w(this.el)==="dark"?$:L,await this.initializeModules(),E(this),!this.isLayerExpUpdated&&(this.isLayerExpUpdated=!0,this.filterLayerExpressions=this.layerExpressions!=null?structuredClone(this.layerExpressions):[],this.view!=null&&this.handleLayerExpressionsUpdate())}componentDidRender(){this.resetBtnEl!=null&&(this.resetBtnEl.disabled=!(this.filterLayerExpressions&&this.filterLayerExpressions.length>0))}disconnectedCallback(){this.resetFiltersOnDisconnect&&(this.isLayerExpUpdated=!1,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.resetAllFilters())}async initializeModules(){let[e,t]=await Promise.all([b(),y()]);this.geometryJsonUtils=t,this.intl=e}render(){let e=this.loading?this.renderLoading():this.initFilterConfig(),t=this.renderFooter();return l(C,{key:"3db1b211528d0ebe2cc379b9dccbd59c38c2f7c4"},l("calcite-panel",{key:"e4b301eaea85bbe60ec088fbc09b261eb24037b7",class:this.baseClass,ref:i=>this.panelEl=i},l("slot",{key:"11f63da744e4256c860b7d381890b7573fd5d33c",slot:"header-content",name:"filter-header-content"}),l("slot",{key:"e3249343120aff984fed5c6cbda79330efcfc7b4",slot:"header-actions-end",name:"filter-header-actions-end"}),l("div",{key:"filter-container",class:u.filterContainer},e,t)))}renderLoading(){return l("calcite-loader",{label:"Loading filters..."})}renderFilter(e){let{id:t}=e;return e.expressions.map((i,n)=>i.type==="checkbox"||i.type==null?l("div",{key:`${t}-${n}`,class:u.filterItemContainer},l("div",{class:u.filterItemTitle},l("p",null,i.name)),l("div",{class:u.checkboxContainer},l("calcite-checkbox",{id:i.id.toString(),scale:"l",checked:i?.active,onCalciteCheckboxChange:this.handleCheckboxChange.bind(this,e,i)}))):this.initInput(e,i))}renderLayerBlock(){return this.filterLayerExpressions?.map(e=>this.renderFilterBlocks(e))}renderFilterBlocks(e){let t=this.renderFilter(e),{operator:i}=e,n=i?.trim()==="OR"?"orOperator":"andOperator",s=this.renderZoomTo(e);return l("calcite-block",{key:e.id,heading:e.title,description:this.messages?.[n],open:this.openFilters?!0:void 0,collapsible:!0},s,t)}renderCombobox(e,t){return l("label",{key:"combo-select",class:u.filterUIItemContainer},l("span",null,t.name),l("calcite-combobox",{id:t.id.toString(),onCalciteComboboxChange:this.handleComboSelect.bind(this,t,e),label:t.name,placeholder:t.placeholder,selectionMode:"multiple","max-items":"6",scale:"s",overlayPositioning:this.comboboxOverlayPositioning},t.fields?.map((i,n)=>this.renderComboboxItem(t,i,n))))}renderComboboxItem(e,t,i){let n=this.createLabel(e,t),a=e?.selectedFields?.includes(t)??!1;return l("calcite-combobox-item",{key:`${n}-${i}`,value:t,heading:`${n}`,selected:a})}initFilterConfig(){if(this.filterLayerExpressions&&this.filterLayerExpressions.length>0){if(this.filterLayerExpressions.length===1){let{operator:e}=this.filterLayerExpressions[0],t=e?.trim()==="OR"?"orOperator":"andOperator",i=this.renderZoomTo(this.filterLayerExpressions[0]);return l("calcite-block",{class:u.operatorDesc,heading:this.messages?.[t],open:!0},i,this.renderFilter(this.filterLayerExpressions[0]))}else if(this.filterLayerExpressions.length>1)return this.renderLayerBlock()}}renderNumberSlider(e,t){let i=t?.min,n=t?.max,s=t?.step?t.step:1,a=i!=null&&n!=null,r=t?.field??"",o=t?.range?.min!=null?t.range.min:i,c=t?.range?.max!=null?t.range.max:n,d=[o,c];return a?l("label",{key:t?.id.toString(),class:u.filterUIItemContainer},l("span",null,t?.name),l("div",{class:u.numberInputContainer},l("calcite-slider",{id:t?.id.toString(),onCalciteSliderChange:this.handleSliderChange.bind(this,t,e),min:i,max:n,minValue:i,maxValue:n,minLabel:this.messages?.minSlider?.replace("{field}",r),maxLabel:this.messages?.maxSlider?.replace("{field}",r),step:s,labelHandles:!0,snap:!0,value:d,"group-separator":t?.format?.digitSeparator,precise:!0}))):void 0}renderDatePicker(e,t){let{min:i,max:n}=t,s=[t?.range?.min,t?.range?.max];return i!=null&&n!=null?l("label",{class:u.filterUIItemContainer},l("span",null,t?.name),l("div",{class:u.dateInputContainer},l("calcite-input-date-picker",{id:t?.id.toString(),onCalciteInputDatePickerChange:this.handleDatePickerRangeChange.bind(this,t,e),min:i,max:n,"overlay-positioning":"fixed",lang:this.intl?.getLocale()??"en",layout:"vertical",value:s,range:!0}),l("calcite-action",{onClick:this.handleResetDatePicker.bind(this,t,e),icon:"reset",text:this.messages?.resetDatePicker,scale:"s"}))):null}renderFooter(){let e=this.closeBtnText??this.messages?.close,t=this.closeBtn&&this.resetBtn?"half":"full";return l("div",{class:u.footer,slot:"footer"},this.resetBtn?l("calcite-button",{appearance:"outline",width:t,ref:i=>this.resetBtnEl=i,onClick:this.handleResetFilter.bind(this)},this.messages?.resetFilter):void 0,this.closeBtn?l("calcite-button",{appearance:"solid",width:t,kind:"brand",onClick:this.closeBtnOnClick?.bind(this)},e):void 0)}renderZoomTo(e){let t=e?.sublayerId?`zoom-to-${e.id}-${e.sublayerId}`:`zoom-to-${e.id}`;return this.zoomBtn?l("div",{class:u.zoomTo},l("calcite-button",{id:t,appearance:"transparent",kind:"neutral",scale:"s",iconStart:"magnifying-glass-plus",onClick:this.handleZoomTo.bind(this,e)},this.messages?.zoomTo)):void 0}handleResetDatePicker(e,t){let i=this.panelEl.querySelector(`[id='${e.id}']`);D(i),e.active=!1,e.definitionExpression=void 0,e.range=void 0,this.generateOutput(t)}initInput(e,t){let{type:i,numDisplayOption:n,displayOption:s}=t;if(i==="string"||i==="coded-value"||(i==="number"||i==="range"||i==="date")&&(n==="drop-down"||s==="drop-down"))return this.renderCombobox(e,t);if(i==="number"||i==="range")return this.renderNumberSlider(e,t);if(i==="date")return this.renderDatePicker(e,t)}async initExpressions(){if(this.loading=!0,this.filterLayerExpressions==null||this.view==null){this.loading=!1;return}await this.processExpressions(),this.loading=!1}async processExpressions(){this.filterLayerExpressions&&await Promise.all(this.filterLayerExpressions.map(async e=>{await Promise.all((e.expressions||[]).map(async t=>await this.setInitExpression(e,t)))}))}handleResetFilter(){this.resetExpressions(),this.resetAllFilters(),this.generateURLParams(),this.filterListReset.emit()}resetExpressions(){this.filterLayerExpressions?.forEach(e=>{e.expressions?.forEach(t=>{let{type:i,numDisplayOption:n,displayOption:s}=t,a="";i==="string"||i==="coded-value"||i==="date"&&(n==="drop-down"||s==="drop-down")||(i==="number"||i==="range")&&(n==="drop-down"||s==="drop-down")?a="combobox":i==="date"?a="datePicker":(i==="number"||i==="range")&&(a="numberRange"),a?this.resetExpressionUI(a,t):this.resetCheckbox(t),t.active=!1})})}resetExpressionUI(e,t){let{id:i}=t;switch(e){case"combobox":{t.selectedFields=void 0;let n=this.panelEl.querySelector(`[id='${i}']`);n&&Array.from(n.children).forEach(s=>{s.selected=!1});break}case"datePicker":{t.range=void 0;let n=this.panelEl.querySelector(`[id='${i}']`);D(n);break}case"numberRange":{t.range=void 0;let n=this.panelEl.querySelector(`[id='${i}']`);n&&(n.minValue=t.min,n.maxValue=t.max);break}}}resetCheckbox(e){let{id:t}=e,i=this.panelEl.querySelector(`[id='${t}']`);i!=null&&(i.checked=!1)}resetAllFilters(){this.view?.map?.allLayers?.concat(this.view?.map?.allTables)?.forEach(t=>{if(!p.includes(t.type))return;let i=t;if(i.type==="point-cloud"){if(!this.initPointCloudFilters)return;i.filters=this.initPointCloudFilters[i.id]}else if(i.type==="map-image")i.allSublayers.forEach(n=>{n.definitionExpression=this.initMapImageExpressions?.[i.id]?.[n.id]??""});else{if(this.initDefExpressions==null)return;i.definitionExpression=this.initDefExpressions[i.id]}})}async updateStringExpression(e,t){let i=this.findFilterLayer(e);return await this.getFeatureAttributes(i,t),this.handleDateField(i,t),t?.selectedFields?(t.definitionExpression=this.createDefinitionExpression(t),!0):!1}handleDateField(e,t){t.type==="date"&&e.fields.find(({name:n})=>n===t.field)?.type==="date-only"&&(t.dateOnly=!0)}createDefinitionExpression(e){if(!e.selectedFields?.length)return"";let t=e.selectedFields.map(i=>typeof i=="number"?i:`'${g(i)}'`);return`${e.field} IN (${t.join(",")})`}async updateNumberExpression(e,t){if(!t?.min&&t?.min!==0||!t?.max&&t?.max!==0){let i=this.findFilterLayer(e),{field:n}=t;if(n!=null)if(this.setExpressionFormat(i,t,n),t?.numDisplayOption==="drop-down"||t?.displayOption==="drop-down")await this.getFeatureAttributes(i,t);else{let a=(await this.calculateMinMaxStatistics(i,n))?.[0]?.attributes;if(t.format?.places!=null?(t.min=this.roundMinNumberDown(a[`min${n}`],t.format.places),t.max=this.roundMaxNumberUp(a[`max${n}`],t.format.places)):(t.min=a[`min${n}`],t.max=a[`max${n}`]),t?.range&&Object.keys(t.range).length){let{min:r,max:o}=t.range;return t.definitionExpression=`${t.field} BETWEEN ${r} AND ${o}`,!0}}}return!1}async updateDateExpression(e,t){let{field:i,range:n}=t,s=this.findFilterLayer(e),r=(await this.calculateMinMaxStatistics(s,i))?.[0]?.attributes;if(t.min=f(r[`min${i}`]),t.max=f(r[`max${i}`]),n!=null&&(n?.max!=null||n?.min!=null)){let{min:o,max:c}=n;if(o=o?.replace("+"," "),c=c?.replace("+"," "),o||c){let d=c&&!o?"<":!c&&o?">":null;return d?t.definitionExpression=`${i} ${d} '${o??c}'`:t.definitionExpression=`${i} BETWEEN '${o}' AND '${c}'`,!0}}return!1}async updateCodedValueExpression(e,t,i){if(!i?.domain||i?.domain?.type!=="coded-value")return!1;let n=this.findFilterLayer(e);await this.getFeatureAttributes(n,t);let a=i.domain.codedValues.reduce((r,{code:o,name:c})=>(r[o]=c,r),{});if(t.codedValues=a,t.selectedFields?.length){let r=t.selectedFields.map(o=>typeof o=="number"?o:`'${g(o)}'`).join(",");return t.definitionExpression=`${t.field} IN (${r})`,!0}return!1}updateRangeExpression(e,t){if(!t?.domain||t?.domain?.type!=="range")return!1;let{field:i,range:n}=e;return e.min=t.domain.minValue,e.max=t.domain.maxValue,n&&Object.keys(n).length?(e.definitionExpression=`${i} BETWEEN ${n.min} AND ${n.max}`,!0):!1}async getFeatureAttributes(e,t){if(!this.isLayerSupported(e)){t.fields=[];return}let i=await this.getQueryLayer(e),{maxRecordCount:n,supportsMaxRecordCountFactor:s}=this.extractQueryCapabilities(e),a=await i.queryFeatureCount(),r=this.createQuery(i,t);await this.queryDistinctFeatures(i,r,t),this.shouldPaginate(n,a,s)&&this.handlePagination(i,r,n,s,a,t)}isLayerSupported(e){return e&&p.includes(e.type)}extractQueryCapabilities(e){return{maxRecordCount:e.capabilities?.query?.maxRecordCount??e.sourceJSON?.maxRecordCount,supportsMaxRecordCountFactor:e.capabilities?.query?.supportsMaxRecordCountFactor}}createQuery(e,t){let i=e.createQuery();this.applyCacheHint(e,i);let n=t?.field;if(n){let s=this.getInitDefExprFromLayer(e);i.where=s||"1=1",i.outFields=[n],i.orderByFields=[`${n} ASC`],i.returnDistinctValues=!0,i.returnGeometry=!1,i.maxRecordCountFactor=5,this.applyQueryGeometryFromExtentSelector(i)}return i}async queryDistinctFeatures(e,t,i){if(!t.outFields)return;let n=await this.queryForFeatures(e,t,t.outFields[0]);n?.length&&(i.fields=[...new Set(n)],i.type==="string"?i.fields=i.fields.sort((s,a)=>s.localeCompare(a)):i.type==="number"&&(i.fields=i.fields.sort((s,a)=>s-a)))}getQueryCount(e,t){return t?e*5:e}shouldPaginate(e,t,i){let n=this.getQueryCount(e,i);return e!=null&&t>n}async handlePagination(e,t,i,n,s,a){let r=this.getQueryCount(i,n),o=[];for(let c=r;c<s;c+=r){let d=t.clone();d.num=i,d.start=c,o.push(this.queryForFeatures(e,d,t?.outFields?.[0]??""))}Promise.all(o).then(c=>{c.forEach(d=>{d?.length&&a.fields&&a.fields.push(...d)}),a.type==="string"?a.fields=[...new Set(a.fields)].sort((d,h)=>d.localeCompare(h)):a.type==="number"?a.fields=[...new Set(a.fields)].sort((d,h)=>d-h):a.fields=[...new Set(a.fields)].sort()})}async queryForFeatures(e,t,i){return(await e.queryFeatures(t))?.features.filter(a=>a.attributes?.[i])?.map(a=>a.attributes?.[i])}async calculateMinMaxStatistics(e,t){if(!e||!p.includes(e.type)||!t)return[];let i=this.createStatisticsQuery(e,t);return(await e.queryFeatures(i))?.features||[]}createStatisticsQuery(e,t){let i=e.createQuery();return i.where=this.getInitDefExprFromLayer(e)||"1=1",this.applyCacheHint(e,i),i.outStatistics=[{onStatisticField:t,outStatisticFieldName:`max${t}`,statisticType:"max"},{onStatisticField:t,outStatisticFieldName:`min${t}`,statisticType:"min"}],this.applyQueryGeometryFromExtentSelector(i),i}getExtent(e,t){if(e&&t){let{constraints:i}=t,s={...i}?.geometry;if(s){let a="extent"in s?s:this.geometryJsonUtils.fromJSON(s);if(a?.type==="extent"||a?.type==="polygon")return a}}}async setInitExpression(e,t){if(!t.field||!t.type){await this.updateExpression(e,t,void 0);return}let i=this.findFilterLayer(e);i&&((i.loadStatus==="not-loaded"||i.loadStatus==="failed")&&await i.load(),await i.when(async()=>{let n=i.fields?.find(({name:a})=>a===t.field),s=n?.domain?.type;t.type=s==="coded-value"||s==="range"?s:t.type,await this.updateExpression(e,t,n)}))}async updateExpression(e,t,i){await this.handleExpressionType(e,t,i)&&this.generateOutput(e)}async handleExpressionType(e,t,i){switch(t.type){case"string":return await this.updateStringExpression(e,t);case"number":return await this.updateNumberExpression(e,t);case"date":return await this.updateDateExpressionBasedOnDisplayOption(e,t);case"coded-value":return await this.updateCodedValueExpression(e,t,i);case"range":return await this.updateRangeExpressionBasedOnDisplayOption(e,t,i);case"checkbox":case null:case void 0:return t.active??!1;default:return!1}}async updateDateExpressionBasedOnDisplayOption(e,t){return t.displayOption==="drop-down"?await this.updateStringExpression(e,t):await this.updateDateExpression(e,t)}async updateRangeExpressionBasedOnDisplayOption(e,t,i){return t.displayOption==="drop-down"?await this.updateStringExpression(e,t):this.updateRangeExpression(t,i)}updateRangeExpressions(e,t,i,n){let s=this.getInitDefExprFromLayerExpression(t);(n||n===0)&&(i||i===0)&&(n===e?.min&&i===e?.max?(e.definitionExpression=void 0,e.active=!1):(e.definitionExpression=s?`(${s}) AND ${e?.field} BETWEEN ${n} AND ${i}`:`${e?.field} BETWEEN ${n} AND ${i}`,e.active=!0)),e.range={min:n,max:i}}handleCheckboxChange(e,t,i){let n=i.target;t.active=n.checked,this.generateOutput(e)}handleSliderChange(e,t,i){let{maxValue:n,minValue:s}=i.target;this.updateRangeExpressions(e,t,n,s),this.generateOutput(t)}handleComboSelect(e,t,i){let s=i.target.selectedItems,{field:a,type:r}=e;if(e.selectedFields=s.map(({value:o})=>o),s.length){let o=s.map(({value:c})=>typeof c=="number"?c:`'${g(c)}'`);e.definitionExpression=r==="date"?o.map(c=>this.buildDateExpression(c,a)).join(" OR "):`${a} IN (${o.join(",")})`,e.active=!0}else e.definitionExpression=void 0,e.active=!1;this.generateOutput(t)}handleDatePickerRangeChange(e,t,i){let n=i.target,[s,a]=n.valueAsDate,r=s?f(Math.floor(s.getTime()),!0):void 0,o=a?f(Math.floor(a.getTime()),!0):void 0;(r||o)&&(e.definitionExpression=this.constructDefinitionExpression(e.field,r,o),e.range={min:r,max:o},e.active=!0,this.generateOutput(t))}constructDefinitionExpression(e,t,i){return t?i?`${e} BETWEEN '${t}' AND '${i}'`:`${e} > '${t}'`:`${e} < '${i}'`}handleURLParams(){if(!("URLSearchParams"in window))return;let t=new URLSearchParams(document.location.search).get("filter");if(!t){this.filterCount=0;return}let i=t.split(";").map(n=>JSON.parse(n));this.filterCount=this.applyFilters(i)}applyFilters(e){let t=0;return e.forEach(i=>{let n=this.filterLayerExpressions?.find(s=>s.id===i.layerId);n&&n.expressions?.forEach(s=>{s.id?.toString()===i.expressionId?.toString()&&(this.activateExpression(s,i),t++)})}),t}activateExpression(e,t){e.active=!0,t.type==="range"?e.range=t.range:t.type==="select"&&(e.selectedFields=t.selectedFields)}createURLParamExpression(e,t){let{id:i,range:n,selectedFields:s,type:a}=t;return a==="string"||a==="coded-value"||t?.numDisplayOption==="drop-down"||t?.displayOption==="drop-down"?{type:"select",layerId:e.id,expressionId:i.toString(),selectedFields:s}:a==="number"||a==="range"||a==="date"?{type:"range",layerId:e.id,expressionId:i.toString(),range:n}:{layerId:e.id,expressionId:i.toString()}}autoUpdateURLCheck(e){if(this.autoUpdateUrl){let t=e.toString()?`${window.location.pathname}?${e}`.trim():window.location.pathname;window.history.replaceState({},"",t)}}generateURLParams(){if(!("URLSearchParams"in window))return;let e=new URLSearchParams(window.location.search),t=this.filterLayerExpressions?.flatMap(i=>i?.expressions?.filter(n=>n.active).map(n=>JSON.stringify(this.createURLParamExpression(i,n)))||[])||[];this.filterCount=t.length,t.length>0?e.set("filter",t.join(";")):e.delete("filter"),this.autoUpdateURLCheck(e),this.urlParams=e}updateFilter(e,t,i){let{id:n}=e,s=this.view.map?.findLayerById(n)??this.view.map?.findTableById(n);if(s!=null)if(s.type==="point-cloud")this.updateFilterLayerPCLFilter(s,i);else if(s.type==="map-image"){let a=s.findSublayerById(e?.sublayerId);a!=null&&this.updateFilterLayerDefExpression(a,t,e)}else this.updateFilterLayerDefExpression(s,t,e)}updateFilterLayerDefExpression(e,t,i){let{operator:n}=i,s=this.getInitDefExprFromLayer(e),a=t?.length>0&&s!=null&&s!==""?`(${t.join(n)}) AND (${s})`:t.length>0?t.join(n):s;e.definitionExpression=a}updateFilterLayerPCLFilter(e,t){e.filters=t}async handleWhenView(){if(this.view==null)return;await this.view.map.loadAll(),this.handleLayerExpressionsUpdate()}async handleLayerExpressionsUpdate(){this.updateInitExpressions(),this.handleURLParams(),this.initExpressions()}async handleZoomTo(e){let t=e?.sublayerId?`#zoom-to-${e.id}-${e.sublayerId}`:`#zoom-to-${e.id}`,i=this.panelEl.querySelector(t),n=(s,a)=>{i&&(i.loading=s,i.disabled=a)};if(n(!0,!0),await this.getZoomToExtent(e),this.zoomToExtent){let s=this.zoomToExtent.type==="point"&&this.zoomToExtent.count===1?{target:this.zoomToExtent.extent,zoom:10}:this.zoomToExtent.extent;await this.view.goTo(s)}n(!1,!1)}async getZoomToExtent(e){let i=this.view.allLayerViews.find(({layer:s})=>s.id===e.id).layer,n=i.type==="map-image"?i.findSublayerById(e.sublayerId):i;if(n&&n.type!=="point-cloud"&&p.includes(n?.type)){let s=await this.getQueryLayer(n),a=s.createQuery();a.where=s.definitionExpression??"1=1";let r=await s.queryExtent(a);this.zoomToExtent={...r,type:s.geometryType}}}applyFilterToQuery(e,t){let i=this.view.allLayerViews.find(({layer:s})=>s.id===t.id),n=i?.featureEffect?.filter??i.filter;n&&["objectIds","distance","geometry","spatialRelationship","units","where","timeExtent"].forEach(a=>{n[a]!=null&&(e[a]=n[a])})}generateOutput(e){if(this.view==null)return;let t=[],i=[];if(e){for(let n of e.expressions){let{active:s,definitionExpression:a,pointCloudFilters:r}=n;s&&a&&t.push(`(${a})`),s&&r!=null&&r.length>0&&(i=i.concat(r))}this.updateFilter(e,t,i),this.generateURLParams(),this.filterUpdate.emit()}}numberWithCommas(e){return e.toLocaleString("en-US",{maximumFractionDigits:20})}scientificRounding(e,t,i){if(e==null)return;let n;if(!String(e).includes("e"))n=Math[i](e*Math.pow(10,t))/Math.pow(10,t);else{let[s,a]=String(e).split("e").map(c=>Number(c)),r=a+t;n=Math[i](+`${s}e${r}`)*Math.pow(10,-t)}return+n.toFixed(t)}roundMinNumberDown(e,t){return this.scientificRounding(e,t,"floor")}roundMaxNumberUp(e,t){return this.scientificRounding(e,t,"ceil")}roundNumber(e,t){return this.scientificRounding(e,t,"round")??e}setExpressionFormat(e,t,i){if(e?.popupTemplate!=null){let n=e?.popupTemplate.fieldInfos?.find(({fieldName:s})=>s===i);n?.format&&(t.format=n.format)}}getInitDefExprFromLayer(e){return e.type==="sublayer"?this.initMapImageExpressions?.[e?.layer?.id??""]?.[e.id]??"":this.initDefExpressions?.[e.id]??""}getInitDefExprFromLayerExpression(e){return e?.sublayerId!=null?this.initMapImageExpressions?.[e.id]?.[e.sublayerId]??"":this.initDefExpressions?.[e.id]??""}findFilterLayer(e){let i=this.view.map?.allLayers.concat(this.view.map?.allTables)?.find(({id:n})=>n===e.id);return i.type==="map-image"?i?.findSublayerById(e.sublayerId):i}createLabel(e,t){if(e.type==="coded-value")return e?.codedValues?.[t];if(e.type==="number"&&typeof t=="number"){let i=t;return e.format?.places!=null&&(i=this.roundNumber(t,e.format.places)),e.format?.digitSeparator?this.numberWithCommas(i):i}if(e.type==="date"&&!e.dateOnly){let i=this.intl.convertDateFormatToIntlOptions("short-date-long-time");return this.intl.formatDate(t,i)}return t}buildDateExpression(e,t){if(e){let i=new Date(e),n=new Date(e),s=new Date(n.setDate(i.getDate()+1)),a=`${i.getFullYear()}-${i.getMonth()+1}-${i.getDate()}`,r=`${i.getHours()}:${i.getMinutes()}:${i.getSeconds()}`,o=`${s.getHours()}:${s.getMinutes()}:${s.getSeconds()}`,c=`${s.getFullYear()}-${s.getMonth()+1}-${s.getDate()}`;return`${t} BETWEEN '${a} ${r}' AND '${c} ${o}'`}}async getQueryLayer(e){let t=e.type==="sublayer"?await e.createFeatureLayer():e;if(!t)throw new Error("Failed to create feature layer");return t}applyCacheHint(e,t){e?.capabilities?.query?.supportsCacheHint&&(t.cacheHint=!0)}applyQueryGeometryFromExtentSelector(e){if(!this.extentSelector||!this.extentSelectorConfig)return;let t=this.getExtent(this.extentSelector,this.extentSelectorConfig);t&&(e.geometry=t,e.spatialRelationship="intersects")}updateInitExpressions(){if(this.view==null)return;let e=this.view.map;this.initDefExpressions={},this.initPointCloudFilters={},this.initMapImageExpressions={},e.allLayers.concat(e.allTables).forEach(t=>{if(!p.includes(t.type))return;let i=t;if(i.type==="point-cloud")this.initPointCloudFilters||(this.initPointCloudFilters={}),this.initPointCloudFilters[i.id]=i.filters;else if(i.type==="map-image")this.initMapImageExpressions||(this.initMapImageExpressions={}),this.initMapImageExpressions[i.id]=i.allSublayers.reduce((n,s)=>(n[s.id]=s.definitionExpression??"",n),{});else{if(!this.initDefExpressions)return;this.initDefExpressions[i.id]=i.definitionExpression??""}})}get el(){return x(this)}static get watchers(){return{view:["watchViewHandler"],layerExpressions:["watchLayerExpressions"]}}};I.style=k;export{I as instant_apps_filter_list};
|
3
|
+
v1.0.0-next.20250513.1 */
|
4
|
+
import{a as w}from"./FW3OFREF.js";import{e as E}from"./UFMXTBV5.js";import{B as y,C as b}from"./WKEGSNNF.js";import"./YDZXBSPS.js";import{a as F,c as l,d as C,e as x,f as m}from"./T2ZDNBN5.js";import"./AZKYXX53.js";var L="instant-apps-filter-list calcite-mode-light",$="instant-apps-filter-list calcite-mode-dark",p=["feature","geojson","wfs","csv","scene","subtype-group","point-cloud","map-image","sublayer"];function g(e){return e.replaceAll("'","''")}function f(e,t=!1){if(e){let i=new Date(e),n=`${i.getFullYear()}-${i.getMonth()+1}-${i.getDate()}`;if(t){let s=`${i.getHours()}:${i.getMinutes()}:${i.getSeconds()}`;return`${n} ${s}`}else return n}}function D(e){if(e!=null){e.value=["",""];let t=e.shadowRoot?.querySelectorAll("calcite-input");if(t!=null)for(let i of t)i.value=""}}var S=":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}",k=S,u={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"},I=class{constructor(e){F(this,e),this.filterListReset=m(this,"filterListReset",7),this.filterUpdate=m(this,"filterUpdate",7),this.isLayerExpUpdated=!1,this.layerExpressions=void 0,this.autoUpdateUrl=!1,this.closeBtn=!1,this.closeBtnOnClick=void 0,this.comboboxOverlayPositioning="absolute",this.closeBtnText=void 0,this.openFilters=!1,this.extentSelector=!1,this.extentSelectorConfig=void 0,this.urlParams=void 0,this.filterCount=0,this.view=void 0,this.zoomBtn=!0,this.resetBtn=!0,this.resetFiltersOnDisconnect=!0,this.loading=void 0,this.filterLayerExpressions=void 0,this.messages=void 0,this.baseClass=L,this.initDefExpressions=void 0,this.initMapImageExpressions=void 0,this.initPointCloudFilters=void 0}watchViewHandler(){this.handleWhenView()}watchLayerExpressions(){this.resetAllFilters(),this.filterLayerExpressions=structuredClone(this.layerExpressions),this.handleLayerExpressionsUpdate()}async getFilterInitState(){return await Promise.resolve({initDefExpressions:this.initDefExpressions,initMapImageExpressions:this.initMapImageExpressions,initPointCloudFilters:this.initPointCloudFilters})}async forceReset(){return this.resetExpressions(),await Promise.resolve(!0)}async updateInitDefExpressions(e){return this.initDefExpressions=e.initDefExpressions,this.initMapImageExpressions=e.initMapImageExpressions,this.initPointCloudFilters=e.initPointCloudFilters,await Promise.resolve(!0)}async getCurrentLayerExpressions(){let e=structuredClone(this.filterLayerExpressions);return await Promise.resolve(e)}async handleUpdatingT9nData(e){return e==null?await Promise.resolve(!0):(this.filterLayerExpressions?.forEach(t=>{let i=e?.find(n=>n.id===t.id);i!=null&&(t.title=i.title,t.expressions?.forEach(n=>{let s=i.expressions?.find(a=>a.id===n.id);s!=null&&(n.name=s.name)}))}),await Promise.resolve(!0))}connectedCallback(){this.layerExpressions==null&&this.view==null||(this.isLayerExpUpdated=!0,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.handleLayerExpressionsUpdate())}async componentWillLoad(){this.baseClass=w(this.el)==="dark"?$:L,await this.initializeModules(),E(this),!this.isLayerExpUpdated&&(this.isLayerExpUpdated=!0,this.filterLayerExpressions=this.layerExpressions!=null?structuredClone(this.layerExpressions):[],this.view!=null&&this.handleLayerExpressionsUpdate())}componentDidRender(){this.resetBtnEl!=null&&(this.resetBtnEl.disabled=!(this.filterLayerExpressions&&this.filterLayerExpressions.length>0))}disconnectedCallback(){this.resetFiltersOnDisconnect&&(this.isLayerExpUpdated=!1,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.resetAllFilters())}async initializeModules(){let[e,t]=await Promise.all([b(),y()]);this.geometryJsonUtils=t,this.intl=e}render(){let e=this.loading?this.renderLoading():this.initFilterConfig(),t=this.renderFooter();return l(C,{key:"3db1b211528d0ebe2cc379b9dccbd59c38c2f7c4"},l("calcite-panel",{key:"e4b301eaea85bbe60ec088fbc09b261eb24037b7",class:this.baseClass,ref:i=>this.panelEl=i},l("slot",{key:"11f63da744e4256c860b7d381890b7573fd5d33c",slot:"header-content",name:"filter-header-content"}),l("slot",{key:"e3249343120aff984fed5c6cbda79330efcfc7b4",slot:"header-actions-end",name:"filter-header-actions-end"}),l("div",{key:"filter-container",class:u.filterContainer},e,t)))}renderLoading(){return l("calcite-loader",{label:"Loading filters..."})}renderFilter(e){let{id:t}=e;return e.expressions.map((i,n)=>i.type==="checkbox"||i.type==null?l("div",{key:`${t}-${n}`,class:u.filterItemContainer},l("div",{class:u.filterItemTitle},l("p",null,i.name)),l("div",{class:u.checkboxContainer},l("calcite-checkbox",{id:i.id.toString(),scale:"l",checked:i?.active,onCalciteCheckboxChange:this.handleCheckboxChange.bind(this,e,i)}))):this.initInput(e,i))}renderLayerBlock(){return this.filterLayerExpressions?.map(e=>this.renderFilterBlocks(e))}renderFilterBlocks(e){let t=this.renderFilter(e),{operator:i}=e,n=i?.trim()==="OR"?"orOperator":"andOperator",s=this.renderZoomTo(e);return l("calcite-block",{key:e.id,heading:e.title,description:this.messages?.[n],open:this.openFilters?!0:void 0,collapsible:!0},s,t)}renderCombobox(e,t){return l("label",{key:"combo-select",class:u.filterUIItemContainer},l("span",null,t.name),l("calcite-combobox",{id:t.id.toString(),onCalciteComboboxChange:this.handleComboSelect.bind(this,t,e),label:t.name,placeholder:t.placeholder,selectionMode:"multiple","max-items":"6",scale:"s",overlayPositioning:this.comboboxOverlayPositioning},t.fields?.map((i,n)=>this.renderComboboxItem(t,i,n))))}renderComboboxItem(e,t,i){let n=this.createLabel(e,t),a=e?.selectedFields?.includes(t)??!1;return l("calcite-combobox-item",{key:`${n}-${i}`,value:t,heading:`${n}`,selected:a})}initFilterConfig(){if(this.filterLayerExpressions&&this.filterLayerExpressions.length>0){if(this.filterLayerExpressions.length===1){let{operator:e}=this.filterLayerExpressions[0],t=e?.trim()==="OR"?"orOperator":"andOperator",i=this.renderZoomTo(this.filterLayerExpressions[0]);return l("calcite-block",{class:u.operatorDesc,heading:this.messages?.[t],open:!0},i,this.renderFilter(this.filterLayerExpressions[0]))}else if(this.filterLayerExpressions.length>1)return this.renderLayerBlock()}}renderNumberSlider(e,t){let i=t?.min,n=t?.max,s=t?.step?t.step:1,a=i!=null&&n!=null,r=t?.field??"",o=t?.range?.min!=null?t.range.min:i,c=t?.range?.max!=null?t.range.max:n,d=[o,c];return a?l("label",{key:t?.id.toString(),class:u.filterUIItemContainer},l("span",null,t?.name),l("div",{class:u.numberInputContainer},l("calcite-slider",{id:t?.id.toString(),onCalciteSliderChange:this.handleSliderChange.bind(this,t,e),min:i,max:n,minValue:i,maxValue:n,minLabel:this.messages?.minSlider?.replace("{field}",r),maxLabel:this.messages?.maxSlider?.replace("{field}",r),step:s,labelHandles:!0,snap:!0,value:d,"group-separator":t?.format?.digitSeparator,precise:!0}))):void 0}renderDatePicker(e,t){let{min:i,max:n}=t,s=[t?.range?.min,t?.range?.max];return i!=null&&n!=null?l("label",{class:u.filterUIItemContainer},l("span",null,t?.name),l("div",{class:u.dateInputContainer},l("calcite-input-date-picker",{id:t?.id.toString(),onCalciteInputDatePickerChange:this.handleDatePickerRangeChange.bind(this,t,e),min:i,max:n,"overlay-positioning":"fixed",lang:this.intl?.getLocale()??"en",layout:"vertical",value:s,range:!0}),l("calcite-action",{onClick:this.handleResetDatePicker.bind(this,t,e),icon:"reset",text:this.messages?.resetDatePicker,scale:"s"}))):null}renderFooter(){let e=this.closeBtnText??this.messages?.close,t=this.closeBtn&&this.resetBtn?"half":"full";return l("div",{class:u.footer,slot:"footer"},this.resetBtn?l("calcite-button",{appearance:"outline",width:t,ref:i=>this.resetBtnEl=i,onClick:this.handleResetFilter.bind(this)},this.messages?.resetFilter):void 0,this.closeBtn?l("calcite-button",{appearance:"solid",width:t,kind:"brand",onClick:this.closeBtnOnClick?.bind(this)},e):void 0)}renderZoomTo(e){let t=e?.sublayerId?`zoom-to-${e.id}-${e.sublayerId}`:`zoom-to-${e.id}`;return this.zoomBtn?l("div",{class:u.zoomTo},l("calcite-button",{id:t,appearance:"transparent",kind:"neutral",scale:"s",iconStart:"magnifying-glass-plus",onClick:this.handleZoomTo.bind(this,e)},this.messages?.zoomTo)):void 0}handleResetDatePicker(e,t){let i=this.panelEl.querySelector(`[id='${e.id}']`);D(i),e.active=!1,e.definitionExpression=void 0,e.range=void 0,this.generateOutput(t)}initInput(e,t){let{type:i,numDisplayOption:n,displayOption:s}=t;if(i==="string"||i==="coded-value"||(i==="number"||i==="range"||i==="date")&&(n==="drop-down"||s==="drop-down"))return this.renderCombobox(e,t);if(i==="number"||i==="range")return this.renderNumberSlider(e,t);if(i==="date")return this.renderDatePicker(e,t)}async initExpressions(){if(this.loading=!0,this.filterLayerExpressions==null||this.view==null){this.loading=!1;return}await this.processExpressions(),this.loading=!1}async processExpressions(){this.filterLayerExpressions&&await Promise.all(this.filterLayerExpressions.map(async e=>{await Promise.all((e.expressions||[]).map(async t=>await this.setInitExpression(e,t)))}))}handleResetFilter(){this.resetExpressions(),this.resetAllFilters(),this.generateURLParams(),this.filterListReset.emit()}resetExpressions(){this.filterLayerExpressions?.forEach(e=>{e.expressions?.forEach(t=>{let{type:i,numDisplayOption:n,displayOption:s}=t,a="";i==="string"||i==="coded-value"||i==="date"&&(n==="drop-down"||s==="drop-down")||(i==="number"||i==="range")&&(n==="drop-down"||s==="drop-down")?a="combobox":i==="date"?a="datePicker":(i==="number"||i==="range")&&(a="numberRange"),a?this.resetExpressionUI(a,t):this.resetCheckbox(t),t.active=!1})})}resetExpressionUI(e,t){let{id:i}=t;switch(e){case"combobox":{t.selectedFields=void 0;let n=this.panelEl.querySelector(`[id='${i}']`);n&&Array.from(n.children).forEach(s=>{s.selected=!1});break}case"datePicker":{t.range=void 0;let n=this.panelEl.querySelector(`[id='${i}']`);D(n);break}case"numberRange":{t.range=void 0;let n=this.panelEl.querySelector(`[id='${i}']`);n&&(n.minValue=t.min,n.maxValue=t.max);break}}}resetCheckbox(e){let{id:t}=e,i=this.panelEl.querySelector(`[id='${t}']`);i!=null&&(i.checked=!1)}resetAllFilters(){this.view?.map?.allLayers?.concat(this.view?.map?.allTables)?.forEach(t=>{if(!p.includes(t.type))return;let i=t;if(i.type==="point-cloud"){if(!this.initPointCloudFilters)return;i.filters=this.initPointCloudFilters[i.id]}else if(i.type==="map-image")i.allSublayers.forEach(n=>{n.definitionExpression=this.initMapImageExpressions?.[i.id]?.[n.id]??""});else{if(this.initDefExpressions==null)return;i.definitionExpression=this.initDefExpressions[i.id]}})}async updateStringExpression(e,t){let i=this.findFilterLayer(e);return await this.getFeatureAttributes(i,t),this.handleDateField(i,t),t?.selectedFields?(t.definitionExpression=this.createDefinitionExpression(t),!0):!1}handleDateField(e,t){t.type==="date"&&e.fields.find(({name:n})=>n===t.field)?.type==="date-only"&&(t.dateOnly=!0)}createDefinitionExpression(e){if(!e.selectedFields?.length)return"";let t=e.selectedFields.map(i=>typeof i=="number"?i:`'${g(i)}'`);return`${e.field} IN (${t.join(",")})`}async updateNumberExpression(e,t){if(!t?.min&&t?.min!==0||!t?.max&&t?.max!==0){let i=this.findFilterLayer(e),{field:n}=t;if(n!=null)if(this.setExpressionFormat(i,t,n),t?.numDisplayOption==="drop-down"||t?.displayOption==="drop-down")await this.getFeatureAttributes(i,t);else{let a=(await this.calculateMinMaxStatistics(i,n))?.[0]?.attributes;if(t.format?.places!=null?(t.min=this.roundMinNumberDown(a[`min${n}`],t.format.places),t.max=this.roundMaxNumberUp(a[`max${n}`],t.format.places)):(t.min=a[`min${n}`],t.max=a[`max${n}`]),t?.range&&Object.keys(t.range).length){let{min:r,max:o}=t.range;return t.definitionExpression=`${t.field} BETWEEN ${r} AND ${o}`,!0}}}return!1}async updateDateExpression(e,t){let{field:i,range:n}=t,s=this.findFilterLayer(e),r=(await this.calculateMinMaxStatistics(s,i))?.[0]?.attributes;if(t.min=f(r[`min${i}`]),t.max=f(r[`max${i}`]),n!=null&&(n?.max!=null||n?.min!=null)){let{min:o,max:c}=n;if(o=o?.replace("+"," "),c=c?.replace("+"," "),o||c){let d=c&&!o?"<":!c&&o?">":null;return d?t.definitionExpression=`${i} ${d} '${o??c}'`:t.definitionExpression=`${i} BETWEEN '${o}' AND '${c}'`,!0}}return!1}async updateCodedValueExpression(e,t,i){if(!i?.domain||i?.domain?.type!=="coded-value")return!1;let n=this.findFilterLayer(e);await this.getFeatureAttributes(n,t);let a=i.domain.codedValues.reduce((r,{code:o,name:c})=>(r[o]=c,r),{});if(t.codedValues=a,t.selectedFields?.length){let r=t.selectedFields.map(o=>typeof o=="number"?o:`'${g(o)}'`).join(",");return t.definitionExpression=`${t.field} IN (${r})`,!0}return!1}updateRangeExpression(e,t){if(!t?.domain||t?.domain?.type!=="range")return!1;let{field:i,range:n}=e;return e.min=t.domain.minValue,e.max=t.domain.maxValue,n&&Object.keys(n).length?(e.definitionExpression=`${i} BETWEEN ${n.min} AND ${n.max}`,!0):!1}async getFeatureAttributes(e,t){if(!this.isLayerSupported(e)){t.fields=[];return}let i=await this.getQueryLayer(e),{maxRecordCount:n,supportsMaxRecordCountFactor:s}=this.extractQueryCapabilities(e),a=await i.queryFeatureCount(),r=this.createQuery(i,t);await this.queryDistinctFeatures(i,r,t),this.shouldPaginate(n,a,s)&&this.handlePagination(i,r,n,s,a,t)}isLayerSupported(e){return e&&p.includes(e.type)}extractQueryCapabilities(e){return{maxRecordCount:e.capabilities?.query?.maxRecordCount??e.sourceJSON?.maxRecordCount,supportsMaxRecordCountFactor:e.capabilities?.query?.supportsMaxRecordCountFactor}}createQuery(e,t){let i=e.createQuery();this.applyCacheHint(e,i);let n=t?.field;if(n){let s=this.getInitDefExprFromLayer(e);i.where=s||"1=1",i.outFields=[n],i.orderByFields=[`${n} ASC`],i.returnDistinctValues=!0,i.returnGeometry=!1,i.maxRecordCountFactor=5,this.applyQueryGeometryFromExtentSelector(i)}return i}async queryDistinctFeatures(e,t,i){if(!t.outFields)return;let n=await this.queryForFeatures(e,t,t.outFields[0]);n?.length&&(i.fields=[...new Set(n)],i.type==="string"?i.fields=i.fields.sort((s,a)=>s.localeCompare(a)):i.type==="number"&&(i.fields=i.fields.sort((s,a)=>s-a)))}getQueryCount(e,t){return t?e*5:e}shouldPaginate(e,t,i){let n=this.getQueryCount(e,i);return e!=null&&t>n}async handlePagination(e,t,i,n,s,a){let r=this.getQueryCount(i,n),o=[];for(let c=r;c<s;c+=r){let d=t.clone();d.num=i,d.start=c,o.push(this.queryForFeatures(e,d,t?.outFields?.[0]??""))}Promise.all(o).then(c=>{c.forEach(d=>{d?.length&&a.fields&&a.fields.push(...d)}),a.type==="string"?a.fields=[...new Set(a.fields)].sort((d,h)=>d.localeCompare(h)):a.type==="number"?a.fields=[...new Set(a.fields)].sort((d,h)=>d-h):a.fields=[...new Set(a.fields)].sort()})}async queryForFeatures(e,t,i){return(await e.queryFeatures(t))?.features.filter(a=>a.attributes?.[i])?.map(a=>a.attributes?.[i])}async calculateMinMaxStatistics(e,t){if(!e||!p.includes(e.type)||!t)return[];let i=this.createStatisticsQuery(e,t);return(await e.queryFeatures(i))?.features||[]}createStatisticsQuery(e,t){let i=e.createQuery();return i.where=this.getInitDefExprFromLayer(e)||"1=1",this.applyCacheHint(e,i),i.outStatistics=[{onStatisticField:t,outStatisticFieldName:`max${t}`,statisticType:"max"},{onStatisticField:t,outStatisticFieldName:`min${t}`,statisticType:"min"}],this.applyQueryGeometryFromExtentSelector(i),i}getExtent(e,t){if(e&&t){let{constraints:i}=t,s={...i}?.geometry;if(s){let a="extent"in s?s:this.geometryJsonUtils.fromJSON(s);if(a?.type==="extent"||a?.type==="polygon")return a}}}async setInitExpression(e,t){if(!t.field||!t.type){await this.updateExpression(e,t,void 0);return}let i=this.findFilterLayer(e);i&&((i.loadStatus==="not-loaded"||i.loadStatus==="failed")&&await i.load(),await i.when(async()=>{let n=i.fields?.find(({name:a})=>a===t.field),s=n?.domain?.type;t.type=s==="coded-value"||s==="range"?s:t.type,await this.updateExpression(e,t,n)}))}async updateExpression(e,t,i){await this.handleExpressionType(e,t,i)&&this.generateOutput(e)}async handleExpressionType(e,t,i){switch(t.type){case"string":return await this.updateStringExpression(e,t);case"number":return await this.updateNumberExpression(e,t);case"date":return await this.updateDateExpressionBasedOnDisplayOption(e,t);case"coded-value":return await this.updateCodedValueExpression(e,t,i);case"range":return await this.updateRangeExpressionBasedOnDisplayOption(e,t,i);case"checkbox":case null:case void 0:return t.active??!1;default:return!1}}async updateDateExpressionBasedOnDisplayOption(e,t){return t.displayOption==="drop-down"?await this.updateStringExpression(e,t):await this.updateDateExpression(e,t)}async updateRangeExpressionBasedOnDisplayOption(e,t,i){return t.displayOption==="drop-down"?await this.updateStringExpression(e,t):this.updateRangeExpression(t,i)}updateRangeExpressions(e,t,i,n){let s=this.getInitDefExprFromLayerExpression(t);(n||n===0)&&(i||i===0)&&(n===e?.min&&i===e?.max?(e.definitionExpression=void 0,e.active=!1):(e.definitionExpression=s?`(${s}) AND ${e?.field} BETWEEN ${n} AND ${i}`:`${e?.field} BETWEEN ${n} AND ${i}`,e.active=!0)),e.range={min:n,max:i}}handleCheckboxChange(e,t,i){let n=i.target;t.active=n.checked,this.generateOutput(e)}handleSliderChange(e,t,i){let{maxValue:n,minValue:s}=i.target;this.updateRangeExpressions(e,t,n,s),this.generateOutput(t)}handleComboSelect(e,t,i){let s=i.target.selectedItems,{field:a,type:r}=e;if(e.selectedFields=s.map(({value:o})=>o),s.length){let o=s.map(({value:c})=>typeof c=="number"?c:`'${g(c)}'`);e.definitionExpression=r==="date"?o.map(c=>this.buildDateExpression(c,a)).join(" OR "):`${a} IN (${o.join(",")})`,e.active=!0}else e.definitionExpression=void 0,e.active=!1;this.generateOutput(t)}handleDatePickerRangeChange(e,t,i){let n=i.target,[s,a]=n.valueAsDate,r=s?f(Math.floor(s.getTime()),!0):void 0,o=a?f(Math.floor(a.getTime()),!0):void 0;(r||o)&&(e.definitionExpression=this.constructDefinitionExpression(e.field,r,o),e.range={min:r,max:o},e.active=!0,this.generateOutput(t))}constructDefinitionExpression(e,t,i){return t?i?`${e} BETWEEN '${t}' AND '${i}'`:`${e} > '${t}'`:`${e} < '${i}'`}handleURLParams(){if(!("URLSearchParams"in window))return;let t=new URLSearchParams(document.location.search).get("filter");if(!t){this.filterCount=0;return}let i=t.split(";").map(n=>JSON.parse(n));this.filterCount=this.applyFilters(i)}applyFilters(e){let t=0;return e.forEach(i=>{let n=this.filterLayerExpressions?.find(s=>s.id===i.layerId);n&&n.expressions?.forEach(s=>{s.id?.toString()===i.expressionId?.toString()&&(this.activateExpression(s,i),t++)})}),t}activateExpression(e,t){e.active=!0,t.type==="range"?e.range=t.range:t.type==="select"&&(e.selectedFields=t.selectedFields)}createURLParamExpression(e,t){let{id:i,range:n,selectedFields:s,type:a}=t;return a==="string"||a==="coded-value"||t?.numDisplayOption==="drop-down"||t?.displayOption==="drop-down"?{type:"select",layerId:e.id,expressionId:i.toString(),selectedFields:s}:a==="number"||a==="range"||a==="date"?{type:"range",layerId:e.id,expressionId:i.toString(),range:n}:{layerId:e.id,expressionId:i.toString()}}autoUpdateURLCheck(e){if(this.autoUpdateUrl){let t=e.toString()?`${window.location.pathname}?${e}`.trim():window.location.pathname;window.history.replaceState({},"",t)}}generateURLParams(){if(!("URLSearchParams"in window))return;let e=new URLSearchParams(window.location.search),t=this.filterLayerExpressions?.flatMap(i=>i?.expressions?.filter(n=>n.active).map(n=>JSON.stringify(this.createURLParamExpression(i,n)))||[])||[];this.filterCount=t.length,t.length>0?e.set("filter",t.join(";")):e.delete("filter"),this.autoUpdateURLCheck(e),this.urlParams=e}updateFilter(e,t,i){let{id:n}=e,s=this.view.map?.findLayerById(n)??this.view.map?.findTableById(n);if(s!=null)if(s.type==="point-cloud")this.updateFilterLayerPCLFilter(s,i);else if(s.type==="map-image"){let a=s.findSublayerById(e?.sublayerId);a!=null&&this.updateFilterLayerDefExpression(a,t,e)}else this.updateFilterLayerDefExpression(s,t,e)}updateFilterLayerDefExpression(e,t,i){let{operator:n}=i,s=this.getInitDefExprFromLayer(e),a=t?.length>0&&s!=null&&s!==""?`(${t.join(n)}) AND (${s})`:t.length>0?t.join(n):s;e.definitionExpression=a}updateFilterLayerPCLFilter(e,t){e.filters=t}async handleWhenView(){if(this.view==null)return;await this.view.map.loadAll(),this.handleLayerExpressionsUpdate()}async handleLayerExpressionsUpdate(){this.updateInitExpressions(),this.handleURLParams(),this.initExpressions()}async handleZoomTo(e){let t=e?.sublayerId?`#zoom-to-${e.id}-${e.sublayerId}`:`#zoom-to-${e.id}`,i=this.panelEl.querySelector(t),n=(s,a)=>{i&&(i.loading=s,i.disabled=a)};if(n(!0,!0),await this.getZoomToExtent(e),this.zoomToExtent){let s=this.zoomToExtent.type==="point"&&this.zoomToExtent.count===1?{target:this.zoomToExtent.extent,zoom:10}:this.zoomToExtent.extent;await this.view.goTo(s)}n(!1,!1)}async getZoomToExtent(e){let i=this.view.allLayerViews.find(({layer:s})=>s.id===e.id).layer,n=i.type==="map-image"?i.findSublayerById(e.sublayerId):i;if(n&&n.type!=="point-cloud"&&p.includes(n?.type)){let s=await this.getQueryLayer(n),a=s.createQuery();a.where=s.definitionExpression??"1=1";let r=await s.queryExtent(a);this.zoomToExtent={...r,type:s.geometryType}}}applyFilterToQuery(e,t){let i=this.view.allLayerViews.find(({layer:s})=>s.id===t.id),n=i?.featureEffect?.filter??i.filter;n&&["objectIds","distance","geometry","spatialRelationship","units","where","timeExtent"].forEach(a=>{n[a]!=null&&(e[a]=n[a])})}generateOutput(e){if(this.view==null)return;let t=[],i=[];if(e){for(let n of e.expressions){let{active:s,definitionExpression:a,pointCloudFilters:r}=n;s&&a&&t.push(`(${a})`),s&&r!=null&&r.length>0&&(i=i.concat(r))}this.updateFilter(e,t,i),this.generateURLParams(),this.filterUpdate.emit()}}numberWithCommas(e){return e.toLocaleString("en-US",{maximumFractionDigits:20})}scientificRounding(e,t,i){if(e==null)return;let n;if(!String(e).includes("e"))n=Math[i](e*Math.pow(10,t))/Math.pow(10,t);else{let[s,a]=String(e).split("e").map(c=>Number(c)),r=a+t;n=Math[i](+`${s}e${r}`)*Math.pow(10,-t)}return+n.toFixed(t)}roundMinNumberDown(e,t){return this.scientificRounding(e,t,"floor")}roundMaxNumberUp(e,t){return this.scientificRounding(e,t,"ceil")}roundNumber(e,t){return this.scientificRounding(e,t,"round")??e}setExpressionFormat(e,t,i){if(e?.popupTemplate!=null){let n=e?.popupTemplate.fieldInfos?.find(({fieldName:s})=>s===i);n?.format&&(t.format=n.format)}}getInitDefExprFromLayer(e){return e.type==="sublayer"?this.initMapImageExpressions?.[e?.layer?.id??""]?.[e.id]??"":this.initDefExpressions?.[e.id]??""}getInitDefExprFromLayerExpression(e){return e?.sublayerId!=null?this.initMapImageExpressions?.[e.id]?.[e.sublayerId]??"":this.initDefExpressions?.[e.id]??""}findFilterLayer(e){let i=this.view.map?.allLayers.concat(this.view.map?.allTables)?.find(({id:n})=>n===e.id);return i.type==="map-image"?i?.findSublayerById(e.sublayerId):i}createLabel(e,t){if(e.type==="coded-value")return e?.codedValues?.[t];if(e.type==="number"&&typeof t=="number"){let i=t;return e.format?.places!=null&&(i=this.roundNumber(t,e.format.places)),e.format?.digitSeparator?this.numberWithCommas(i):i}if(e.type==="date"&&!e.dateOnly){let i=this.intl.convertDateFormatToIntlOptions("short-date-long-time");return this.intl.formatDate(t,i)}return t}buildDateExpression(e,t){if(e){let i=new Date(e),n=new Date(e),s=new Date(n.setDate(i.getDate()+1)),a=`${i.getFullYear()}-${i.getMonth()+1}-${i.getDate()}`,r=`${i.getHours()}:${i.getMinutes()}:${i.getSeconds()}`,o=`${s.getHours()}:${s.getMinutes()}:${s.getSeconds()}`,c=`${s.getFullYear()}-${s.getMonth()+1}-${s.getDate()}`;return`${t} BETWEEN '${a} ${r}' AND '${c} ${o}'`}}async getQueryLayer(e){let t=e.type==="sublayer"?await e.createFeatureLayer():e;if(!t)throw new Error("Failed to create feature layer");return t}applyCacheHint(e,t){e?.capabilities?.query?.supportsCacheHint&&(t.cacheHint=!0)}applyQueryGeometryFromExtentSelector(e){if(!this.extentSelector||!this.extentSelectorConfig)return;let t=this.getExtent(this.extentSelector,this.extentSelectorConfig);t&&(e.geometry=t,e.spatialRelationship="intersects")}updateInitExpressions(){if(this.view==null)return;let e=this.view.map;this.initDefExpressions={},this.initPointCloudFilters={},this.initMapImageExpressions={},e.allLayers.concat(e.allTables).forEach(t=>{if(!p.includes(t.type))return;let i=t;if(i.type==="point-cloud")this.initPointCloudFilters||(this.initPointCloudFilters={}),this.initPointCloudFilters[i.id]=i.filters;else if(i.type==="map-image")this.initMapImageExpressions||(this.initMapImageExpressions={}),this.initMapImageExpressions[i.id]=i.allSublayers.reduce((n,s)=>(n[s.id]=s.definitionExpression??"",n),{});else{if(!this.initDefExpressions)return;this.initDefExpressions[i.id]=i.definitionExpression??""}})}get el(){return x(this)}static get watchers(){return{view:["watchViewHandler"],layerExpressions:["watchLayerExpressions"]}}};I.style=k;export{I as instant_apps_filter_list};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250513 */
|
4
|
-
import{a as G}from"./
|
3
|
+
v1.0.0-next.20250513.1 */
|
4
|
+
import{a as G}from"./L3CECNF2.js";import{a as j}from"./DUMJIXV7.js";import{b as V}from"./YDZXBSPS.js";import{a as q,c as p,d as M,e as Q,f as Z}from"./T2ZDNBN5.js";import"./AZKYXX53.js";var F=function(){return F=Object.assign||function(r){for(var t,a=1,i=arguments.length;a<i;a++){t=arguments[a];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(r[s]=t[s])}return r},F.apply(this,arguments)},W={exports:{}},h={},N={exports:{}},_={};function te(){var e={};return e["align-content"]=!1,e["align-items"]=!1,e["align-self"]=!1,e["alignment-adjust"]=!1,e["alignment-baseline"]=!1,e.all=!1,e["anchor-point"]=!1,e.animation=!1,e["animation-delay"]=!1,e["animation-direction"]=!1,e["animation-duration"]=!1,e["animation-fill-mode"]=!1,e["animation-iteration-count"]=!1,e["animation-name"]=!1,e["animation-play-state"]=!1,e["animation-timing-function"]=!1,e.azimuth=!1,e["backface-visibility"]=!1,e.background=!0,e["background-attachment"]=!0,e["background-clip"]=!0,e["background-color"]=!0,e["background-image"]=!0,e["background-origin"]=!0,e["background-position"]=!0,e["background-repeat"]=!0,e["background-size"]=!0,e["baseline-shift"]=!1,e.binding=!1,e.bleed=!1,e["bookmark-label"]=!1,e["bookmark-level"]=!1,e["bookmark-state"]=!1,e.border=!0,e["border-bottom"]=!0,e["border-bottom-color"]=!0,e["border-bottom-left-radius"]=!0,e["border-bottom-right-radius"]=!0,e["border-bottom-style"]=!0,e["border-bottom-width"]=!0,e["border-collapse"]=!0,e["border-color"]=!0,e["border-image"]=!0,e["border-image-outset"]=!0,e["border-image-repeat"]=!0,e["border-image-slice"]=!0,e["border-image-source"]=!0,e["border-image-width"]=!0,e["border-left"]=!0,e["border-left-color"]=!0,e["border-left-style"]=!0,e["border-left-width"]=!0,e["border-radius"]=!0,e["border-right"]=!0,e["border-right-color"]=!0,e["border-right-style"]=!0,e["border-right-width"]=!0,e["border-spacing"]=!0,e["border-style"]=!0,e["border-top"]=!0,e["border-top-color"]=!0,e["border-top-left-radius"]=!0,e["border-top-right-radius"]=!0,e["border-top-style"]=!0,e["border-top-width"]=!0,e["border-width"]=!0,e.bottom=!1,e["box-decoration-break"]=!0,e["box-shadow"]=!0,e["box-sizing"]=!0,e["box-snap"]=!0,e["box-suppress"]=!0,e["break-after"]=!0,e["break-before"]=!0,e["break-inside"]=!0,e["caption-side"]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e["clip-path"]=!1,e["clip-rule"]=!1,e.color=!0,e["color-interpolation-filters"]=!0,e["column-count"]=!1,e["column-fill"]=!1,e["column-gap"]=!1,e["column-rule"]=!1,e["column-rule-color"]=!1,e["column-rule-style"]=!1,e["column-rule-width"]=!1,e["column-span"]=!1,e["column-width"]=!1,e.columns=!1,e.contain=!1,e.content=!1,e["counter-increment"]=!1,e["counter-reset"]=!1,e["counter-set"]=!1,e.crop=!1,e.cue=!1,e["cue-after"]=!1,e["cue-before"]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e["display-inside"]=!0,e["display-list"]=!0,e["display-outside"]=!0,e["dominant-baseline"]=!1,e.elevation=!1,e["empty-cells"]=!1,e.filter=!1,e.flex=!1,e["flex-basis"]=!1,e["flex-direction"]=!1,e["flex-flow"]=!1,e["flex-grow"]=!1,e["flex-shrink"]=!1,e["flex-wrap"]=!1,e.float=!1,e["float-offset"]=!1,e["flood-color"]=!1,e["flood-opacity"]=!1,e["flow-from"]=!1,e["flow-into"]=!1,e.font=!0,e["font-family"]=!0,e["font-feature-settings"]=!0,e["font-kerning"]=!0,e["font-language-override"]=!0,e["font-size"]=!0,e["font-size-adjust"]=!0,e["font-stretch"]=!0,e["font-style"]=!0,e["font-synthesis"]=!0,e["font-variant"]=!0,e["font-variant-alternates"]=!0,e["font-variant-caps"]=!0,e["font-variant-east-asian"]=!0,e["font-variant-ligatures"]=!0,e["font-variant-numeric"]=!0,e["font-variant-position"]=!0,e["font-weight"]=!0,e.grid=!1,e["grid-area"]=!1,e["grid-auto-columns"]=!1,e["grid-auto-flow"]=!1,e["grid-auto-rows"]=!1,e["grid-column"]=!1,e["grid-column-end"]=!1,e["grid-column-start"]=!1,e["grid-row"]=!1,e["grid-row-end"]=!1,e["grid-row-start"]=!1,e["grid-template"]=!1,e["grid-template-areas"]=!1,e["grid-template-columns"]=!1,e["grid-template-rows"]=!1,e["hanging-punctuation"]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e["image-orientation"]=!1,e["image-resolution"]=!1,e["ime-mode"]=!1,e["initial-letters"]=!1,e["inline-box-align"]=!1,e["justify-content"]=!1,e["justify-items"]=!1,e["justify-self"]=!1,e.left=!1,e["letter-spacing"]=!0,e["lighting-color"]=!0,e["line-box-contain"]=!1,e["line-break"]=!1,e["line-grid"]=!1,e["line-height"]=!1,e["line-snap"]=!1,e["line-stacking"]=!1,e["line-stacking-ruby"]=!1,e["line-stacking-shift"]=!1,e["line-stacking-strategy"]=!1,e["list-style"]=!0,e["list-style-image"]=!0,e["list-style-position"]=!0,e["list-style-type"]=!0,e.margin=!0,e["margin-bottom"]=!0,e["margin-left"]=!0,e["margin-right"]=!0,e["margin-top"]=!0,e["marker-offset"]=!1,e["marker-side"]=!1,e.marks=!1,e.mask=!1,e["mask-box"]=!1,e["mask-box-outset"]=!1,e["mask-box-repeat"]=!1,e["mask-box-slice"]=!1,e["mask-box-source"]=!1,e["mask-box-width"]=!1,e["mask-clip"]=!1,e["mask-image"]=!1,e["mask-origin"]=!1,e["mask-position"]=!1,e["mask-repeat"]=!1,e["mask-size"]=!1,e["mask-source-type"]=!1,e["mask-type"]=!1,e["max-height"]=!0,e["max-lines"]=!1,e["max-width"]=!0,e["min-height"]=!0,e["min-width"]=!0,e["move-to"]=!1,e["nav-down"]=!1,e["nav-index"]=!1,e["nav-left"]=!1,e["nav-right"]=!1,e["nav-up"]=!1,e["object-fit"]=!1,e["object-position"]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e["outline-color"]=!1,e["outline-offset"]=!1,e["outline-style"]=!1,e["outline-width"]=!1,e.overflow=!1,e["overflow-wrap"]=!1,e["overflow-x"]=!1,e["overflow-y"]=!1,e.padding=!0,e["padding-bottom"]=!0,e["padding-left"]=!0,e["padding-right"]=!0,e["padding-top"]=!0,e.page=!1,e["page-break-after"]=!1,e["page-break-before"]=!1,e["page-break-inside"]=!1,e["page-policy"]=!1,e.pause=!1,e["pause-after"]=!1,e["pause-before"]=!1,e.perspective=!1,e["perspective-origin"]=!1,e.pitch=!1,e["pitch-range"]=!1,e["play-during"]=!1,e.position=!1,e["presentation-level"]=!1,e.quotes=!1,e["region-fragment"]=!1,e.resize=!1,e.rest=!1,e["rest-after"]=!1,e["rest-before"]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e["rotation-point"]=!1,e["ruby-align"]=!1,e["ruby-merge"]=!1,e["ruby-position"]=!1,e["shape-image-threshold"]=!1,e["shape-outside"]=!1,e["shape-margin"]=!1,e.size=!1,e.speak=!1,e["speak-as"]=!1,e["speak-header"]=!1,e["speak-numeral"]=!1,e["speak-punctuation"]=!1,e["speech-rate"]=!1,e.stress=!1,e["string-set"]=!1,e["tab-size"]=!1,e["table-layout"]=!1,e["text-align"]=!0,e["text-align-last"]=!0,e["text-combine-upright"]=!0,e["text-decoration"]=!0,e["text-decoration-color"]=!0,e["text-decoration-line"]=!0,e["text-decoration-skip"]=!0,e["text-decoration-style"]=!0,e["text-emphasis"]=!0,e["text-emphasis-color"]=!0,e["text-emphasis-position"]=!0,e["text-emphasis-style"]=!0,e["text-height"]=!0,e["text-indent"]=!0,e["text-justify"]=!0,e["text-orientation"]=!0,e["text-overflow"]=!0,e["text-shadow"]=!0,e["text-space-collapse"]=!0,e["text-transform"]=!0,e["text-underline-position"]=!0,e["text-wrap"]=!0,e.top=!1,e.transform=!1,e["transform-origin"]=!1,e["transform-style"]=!1,e.transition=!1,e["transition-delay"]=!1,e["transition-duration"]=!1,e["transition-property"]=!1,e["transition-timing-function"]=!1,e["unicode-bidi"]=!1,e["vertical-align"]=!1,e.visibility=!1,e["voice-balance"]=!1,e["voice-duration"]=!1,e["voice-family"]=!1,e["voice-pitch"]=!1,e["voice-range"]=!1,e["voice-rate"]=!1,e["voice-stress"]=!1,e["voice-volume"]=!1,e.volume=!1,e["white-space"]=!1,e.widows=!1,e.width=!0,e["will-change"]=!1,e["word-break"]=!0,e["word-spacing"]=!0,e["word-wrap"]=!0,e["wrap-flow"]=!1,e["wrap-through"]=!1,e["writing-mode"]=!1,e["z-index"]=!1,e}function ve(e,r,t){}function ye(e,r,t){}var be=/javascript\s*\:/img;function we(e,r){return be.test(r)?"":r}_.whiteList=te();_.getDefaultWhiteList=te;_.onAttr=ve;_.onIgnoreAttr=ye;_.safeAttrValue=we;var xe={indexOf:function(e,r){var t,a;if(Array.prototype.indexOf)return e.indexOf(r);for(t=0,a=e.length;t<a;t++)if(e[t]===r)return t;return-1},forEach:function(e,r,t){var a,i;if(Array.prototype.forEach)return e.forEach(r,t);for(a=0,i=e.length;a<i;a++)r.call(t,e[a],a,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}},C=xe;function _e(e,r){e=C.trimRight(e),e[e.length-1]!==";"&&(e+=";");var t=e.length,a=!1,i=0,s=0,l="";function o(){if(!a){var u=C.trim(e.slice(i,s)),f=u.indexOf(":");if(f!==-1){var d=C.trim(u.slice(0,f)),g=C.trim(u.slice(f+1));if(d){var m=r(i,l.length,d,g,u);m&&(l+=m+"; ")}}}i=s+1}for(;s<t;s++){var n=e[s];if(n==="/"&&e[s+1]==="*"){var c=e.indexOf("*/",s+2);if(c===-1)break;s=c+1,i=s+1,a=!1}else n==="("?a=!0:n===")"?a=!1:n===";"?a||o():n===`
|
5
5
|
`&&o()}return C.trim(l)}var Ae=_e,E=_,Te=Ae;function J(e){return e==null}function ke(e){var r={};for(var t in e)r[t]=e[t];return r}function re(e){e=ke(e||{}),e.whiteList=e.whiteList||E.whiteList,e.onAttr=e.onAttr||E.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||E.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||E.safeAttrValue,this.options=e}re.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var r=this,t=r.options,a=t.whiteList,i=t.onAttr,s=t.onIgnoreAttr,l=t.safeAttrValue,o=Te(e,function(n,c,u,f,d){var g=a[u],m=!1;if(g===!0?m=g:typeof g=="function"?m=g(f):g instanceof RegExp&&(m=g.test(f)),m!==!0&&(m=!1),f=l(u,f),!!f){var y={position:c,sourcePosition:n,source:d,isWhite:m};if(m){var v=i(u,f,y);return J(v)?u+":"+f:v}else{var v=s(u,f,y);if(!J(v))return v}}});return o};var Se=re;(function(e,r){var t=_,a=Se;function i(l,o){var n=new a(o);return n.process(l)}r=e.exports=i,r.FilterCSS=a;for(var s in t)r[s]=t[s]})(N,N.exports);var B=N.exports,U={indexOf:function(e,r){var t,a;if(Array.prototype.indexOf)return e.indexOf(r);for(t=0,a=e.length;t<a;t++)if(e[t]===r)return t;return-1},forEach:function(e,r,t){var a,i;if(Array.prototype.forEach)return e.forEach(r,t);for(a=0,i=e.length;a<i;a++)r.call(t,e[a],a,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var r=/\s|\n|\t/,t=r.exec(e);return t?t.index:-1}},Le=B.FilterCSS,Ce=B.getDefaultWhiteList,P=U;function ae(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}var ie=new Le;function Ie(e,r,t){}function Ee(e,r,t){}function Oe(e,r,t){}function He(e,r,t){}function se(e){return e.replace(Fe,"<").replace(Pe,">")}function ze(e,r,t,a){if(t=ce(t),r==="href"||r==="src"){if(t=P.trim(t),t==="#")return"#";if(!(t.substr(0,7)==="http://"||t.substr(0,8)==="https://"||t.substr(0,7)==="mailto:"||t.substr(0,4)==="tel:"||t.substr(0,11)==="data:image/"||t.substr(0,6)==="ftp://"||t.substr(0,2)==="./"||t.substr(0,3)==="../"||t[0]==="#"||t[0]==="/"))return""}else if(r==="background"){if(O.lastIndex=0,O.test(t))return""}else if(r==="style"){if(K.lastIndex=0,K.test(t)||(Y.lastIndex=0,Y.test(t)&&(O.lastIndex=0,O.test(t))))return"";a!==!1&&(a=a||ie,t=a.process(t))}return t=he(t),t}var Fe=/</g,Pe=/>/g,$e=/"/g,Re=/"/g,Ve=/&#([a-zA-Z0-9]*);?/gim,We=/:?/gim,Ne=/&newline;?/gim,O=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,K=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,Y=/u\s*r\s*l\s*\(.*/gi;function ne(e){return e.replace($e,""")}function oe(e){return e.replace(Re,'"')}function le(e){return e.replace(Ve,function(t,a){return a[0]==="x"||a[0]==="X"?String.fromCharCode(parseInt(a.substr(1),16)):String.fromCharCode(parseInt(a,10))})}function fe(e){return e.replace(We,":").replace(Ne," ")}function ue(e){for(var r="",t=0,a=e.length;t<a;t++)r+=e.charCodeAt(t)<32?" ":e.charAt(t);return P.trim(r)}function ce(e){return e=oe(e),e=le(e),e=fe(e),e=ue(e),e}function he(e){return e=ne(e),e=se(e),e}function Be(){return""}function Ue(e,r){typeof r!="function"&&(r=function(){});var t=!Array.isArray(e);function a(l){return t?!0:P.indexOf(e,l)!==-1}var i=[],s=!1;return{onIgnoreTag:function(l,o,n){if(a(l))if(n.isClosing){var c="[/removed]",u=n.position+c.length;return i.push([s!==!1?s:n.position,u]),s=!1,c}else return s||(s=n.position),"[removed]";else return r(l,o,n)},remove:function(l){var o="",n=0;return P.forEach(i,function(c){o+=l.slice(n,c[0]),n=c[1]}),o+=l.slice(n),o}}}function Xe(e){for(var r="",t=0;t<e.length;){var a=e.indexOf("<!--",t);if(a===-1){r+=e.slice(t);break}r+=e.slice(t,a);var i=e.indexOf("-->",a);if(i===-1)break;t=i+3}return r}function De(e){var r=e.split("");return r=r.filter(function(t){var a=t.charCodeAt(0);return a===127?!1:a<=31?a===10||a===13:!0}),r.join("")}h.whiteList=ae();h.getDefaultWhiteList=ae;h.onTag=Ie;h.onIgnoreTag=Ee;h.onTagAttr=Oe;h.onIgnoreTagAttr=He;h.safeAttrValue=ze;h.escapeHtml=se;h.escapeQuote=ne;h.unescapeQuote=oe;h.escapeHtmlEntities=le;h.escapeDangerHtml5Entities=fe;h.clearNonPrintableCharacter=ue;h.friendlyAttrValue=ce;h.escapeAttrValue=he;h.onIgnoreTagStripAll=Be;h.StripTagBody=Ue;h.stripCommentTag=Xe;h.stripBlankChar=De;h.cssFilter=ie;h.getDefaultCSSWhiteList=Ce;var $={},x=U;function Ge(e){var r=x.spaceIndex(e),t;return r===-1?t=e.slice(1,-1):t=e.slice(1,r+1),t=x.trim(t).toLowerCase(),t.slice(0,1)==="/"&&(t=t.slice(1)),t.slice(-1)==="/"&&(t=t.slice(0,-1)),t}function je(e){return e.slice(0,2)==="</"}function qe(e,r,t){var a="",i=0,s=!1,l=!1,o=0,n=e.length,c="",u="";e:for(o=0;o<n;o++){var f=e.charAt(o);if(s===!1){if(f==="<"){s=o;continue}}else if(l===!1){if(f==="<"){a+=t(e.slice(i,o)),s=o,i=o;continue}if(f===">"){a+=t(e.slice(i,s)),u=e.slice(s,o+1),c=Ge(u),a+=r(s,a.length,c,u,je(u)),i=o+1,s=!1;continue}if(f==='"'||f==="'")for(var d=1,g=e.charAt(o-d);g.trim()===""||g==="=";){if(g==="="){l=f;continue e}g=e.charAt(o-++d)}}else if(f===l){l=!1;continue}}return i<e.length&&(a+=t(e.substr(i))),a}var Me=/[^a-zA-Z0-9\\_:.-]/gim;function Qe(e,r){var t=0,a=0,i=[],s=!1,l=e.length;function o(d,g){if(d=x.trim(d),d=d.replace(Me,"").toLowerCase(),!(d.length<1)){var m=r(d,g||"");m&&i.push(m)}}for(var n=0;n<l;n++){var c=e.charAt(n),u,f;if(s===!1&&c==="="){s=e.slice(t,n),t=n+1,a=e.charAt(t)==='"'||e.charAt(t)==="'"?t:Je(e,n+1);continue}if(s!==!1&&n===a){if(f=e.indexOf(c,n+1),f===-1)break;u=x.trim(e.slice(a+1,f)),o(s,u),s=!1,n=f,t=n+1;continue}if(/\s|\n|\t/.test(c))if(e=e.replace(/\s|\n|\t/g," "),s===!1)if(f=Ze(e,n),f===-1){u=x.trim(e.slice(t,n)),o(u),s=!1,t=n+1;continue}else{n=f-1;continue}else if(f=Ke(e,n-1),f===-1){u=x.trim(e.slice(t,n)),u=ee(u),o(s,u),s=!1,t=n+1;continue}else continue}return t<e.length&&(s===!1?o(e.slice(t)):o(s,ee(x.trim(e.slice(t))))),x.trim(i.join(" "))}function Ze(e,r){for(;r<e.length;r++){var t=e[r];if(t!==" ")return t==="="?r:-1}}function Je(e,r){for(;r<e.length;r++){var t=e[r];if(t!==" ")return t==="'"||t==='"'?r:-1}}function Ke(e,r){for(;r>0;r--){var t=e[r];if(t!==" ")return t==="="?r:-1}}function Ye(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function ee(e){return Ye(e)?e.substr(1,e.length-2):e}$.parseTag=qe;$.parseAttr=Qe;var et=B.FilterCSS,w=h,de=$,tt=de.parseTag,rt=de.parseAttr,z=U;function H(e){return e==null}function at(e){var r=z.spaceIndex(e);if(r===-1)return{html:"",closing:e[e.length-2]==="/"};e=z.trim(e.slice(r+1,-1));var t=e[e.length-1]==="/";return t&&(e=z.trim(e.slice(0,-1))),{html:e,closing:t}}function it(e){var r={};for(var t in e)r[t]=e[t];return r}function st(e){var r={};for(var t in e)Array.isArray(e[t])?r[t.toLowerCase()]=e[t].map(function(a){return a.toLowerCase()}):r[t.toLowerCase()]=e[t];return r}function ge(e){e=it(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=w.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=st(e.whiteList||e.allowList):e.whiteList=w.whiteList,e.onTag=e.onTag||w.onTag,e.onTagAttr=e.onTagAttr||w.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||w.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||w.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||w.safeAttrValue,e.escapeHtml=e.escapeHtml||w.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new et(e.css))}ge.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var r=this,t=r.options,a=t.whiteList,i=t.onTag,s=t.onIgnoreTag,l=t.onTagAttr,o=t.onIgnoreTagAttr,n=t.safeAttrValue,c=t.escapeHtml,u=r.cssFilter;t.stripBlankChar&&(e=w.stripBlankChar(e)),t.allowCommentTag||(e=w.stripCommentTag(e));var f=!1;t.stripIgnoreTagBody&&(f=w.StripTagBody(t.stripIgnoreTagBody,s),s=f.onIgnoreTag);var d=tt(e,function(g,m,y,v,pe){var I={sourcePosition:g,position:m,isClosing:pe,isWhite:Object.prototype.hasOwnProperty.call(a,y)},S=i(y,v,I);if(!H(S))return S;if(I.isWhite){if(I.isClosing)return"</"+y+">";var X=at(v),me=a[y],D=rt(X.html,function(A,T){var R=z.indexOf(me,A)!==-1,L=l(y,A,T,R);return H(L)?R?(T=n(y,A,T,u),T?A+'="'+T+'"':A):(L=o(y,A,T,R),H(L)?void 0:L):L});return v="<"+y,D&&(v+=" "+D),X.closing&&(v+=" /"),v+=">",v}else return S=s(y,v,I),H(S)?c(v):S},c);return f&&(d=f.remove(d)),d};var nt=ge;(function(e,r){var t=h,a=$,i=nt;function s(o,n){var c=new i(n);return c.process(o)}r=e.exports=s,r.filterXSS=s,r.FilterXSS=i,function(){for(var o in t)r[o]=t[o];for(var n in a)r[n]=a[n]}();function l(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}l()&&(self.filterXSS=e.exports)})(W,W.exports);var k=W.exports,ot=function(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return!1;var r=Object.getPrototypeOf(e);if(r===null)return!0;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(e)===r},lt=function(){function e(r,t){var a=this;this.arcgisWhiteList={a:["href","style","target"],abbr:["title"],article:["style"],aside:["style"],audio:["autoplay","controls","loop","muted","preload"],b:[],blockquote:["style"],br:[],code:["style"],dd:["style"],del:["style"],details:["open","style"],div:["align","aria-hidden","aria-label","style"],dl:["style"],dt:["style"],em:[],figcaption:["style"],figure:["style"],font:["color","face","size","style"],footer:["style"],h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],header:["style"],hr:[],i:[],img:["alt","border","height","src","style","width"],li:[],main:["style"],mark:["style"],nav:["style"],ol:[],p:["style"],pre:["style"],section:["style"],source:["media","src","type"],span:["aria-hidden","aria-label","style"],strong:[],sub:["style"],summary:["style"],sup:["style"],table:["border","cellpadding","cellspacing","height","style","width"],tbody:[],tr:["align","height","style","valign"],td:["align","colspan","height","nowrap","rowspan","style","valign","width"],th:["align","colspan","height","nowrap","rowspan","style","valign","width"],time:["style"],u:[],ul:[],video:["autoplay","controls","height","loop","muted","poster","preload","width"]},this.arcgisCSSWhiteList=F(F({},k.getDefaultCSSWhiteList()),{"align-items":!0,"align-self":!0,flex:!0,"flex-basis":!0,"flex-direction":!0,"flex-flow":!0,"flex-grow":!0,"flex-shrink":!0,"flex-wrap":!0,float:!0,gap:!0,grid:!0,"grid-area":!0,"grid-auto-columns":!0,"grid-auto-flow":!0,"grid-auto-rows":!0,"grid-column":!0,"grid-column-end":!0,"grid-column-start":!0,"grid-row":!0,"grid-row-end":!0,"grid-row-start":!0,"grid-template":!0,"grid-template-areas":!0,"grid-template-columns":!0,"grid-template-rows":!0,"justify-content":!0,"justify-items":!0,"justify-self":!0,"line-height":!0,overflow:!0}),this.allowedProtocols=["http","https","mailto","iform","tel","flow","lfmobile","arcgis-navigator","arcgis-appstudio-player","arcgis-survey123","arcgis-collector","arcgis-workforce","arcgis-explorer","arcgis-trek2there","arcgis-quickcapture","mspbi","comgooglemaps","pdfefile","pdfehttp","pdfehttps","boxapp","boxemm","awb","awbs","gropen","radarscope"],this.arcgisFilterOptions={allowCommentTag:!0,safeAttrValue:function(s,l,o,n){return s==="a"&&l==="href"||(s==="img"||s==="source")&&l==="src"?a.sanitizeUrl(o):k.safeAttrValue(s,l,o,n)}},this._entityMap={"&":"8","<":"<",">":">",'"':""","'":"'","/":"/"};var i;r&&!t?i=r:r&&t?(i=Object.create(this.arcgisFilterOptions),i.css={whiteList:this.arcgisCSSWhiteList},Object.keys(r).forEach(function(s){if(s==="whiteList")i.whiteList=a._extendObjectOfArrays([a.arcgisWhiteList,r.whiteList||{}]);else if(s==="css"){var l=r.css.whiteList;l!=null&&r.css instanceof Object&&Object.keys(l).forEach(function(o){return i.css.whiteList[o]=l[o]})}else i[s]=r[s]})):(i=Object.create(this.arcgisFilterOptions),i.whiteList=this.arcgisWhiteList,i.css={whiteList:this.arcgisCSSWhiteList}),this.xssFilterOptions=i,this._xssFilter=new k.FilterXSS(i)}return e.prototype.sanitize=function(r,t){switch(t===void 0&&(t={}),typeof r){case"number":return isNaN(r)||!isFinite(r)?null:r;case"boolean":return r;case"string":return this._xssFilter.process(r);case"object":return this._iterateOverObject(r,t);default:return t.allowUndefined&&typeof r>"u"?void 0:null}},e.prototype.sanitizeUrl=function(r,t){var a=(t??{}).isProtocolRequired,i=a===void 0?!0:a,s=this._trim(r.substring(0,r.indexOf(":"))),l=r==="/",o=/^#/.test(r),n=s&&this.allowedProtocols.indexOf(s.toLowerCase())>-1;return l||o||n?k.escapeAttrValue(r):!s&&!i?k.escapeAttrValue("https://".concat(r)):""},e.prototype.sanitizeHTMLAttribute=function(r,t,a,i){return typeof this.xssFilterOptions.safeAttrValue=="function"?this.xssFilterOptions.safeAttrValue(r,t,a,i):k.safeAttrValue(r,t,a,i)},e.prototype.validate=function(r,t){t===void 0&&(t={});var a=this.sanitize(r,t);return{isValid:r===a,sanitized:a}},e.prototype.encodeHTML=function(r){var t=this;return String(r).replace(/[&<>"'\/]/g,function(a){return t._entityMap[a]})},e.prototype.encodeAttrValue=function(r){var t=/^[a-zA-Z0-9]$/;return String(r).replace(/[\x00-\xFF]/g,function(a,i){return t.test(a)?a:"&#x".concat(Number(r.charCodeAt(i)).toString(16),";")})},e.prototype._extendObjectOfArrays=function(r){var t={};return r.forEach(function(a){Object.keys(a).forEach(function(i){Array.isArray(a[i])&&Array.isArray(t[i])?t[i]=t[i].concat(a[i]):t[i]=a[i]})}),t},e.prototype._iterateOverObject=function(r,t){var a=this;t===void 0&&(t={});try{var i=!1,s=void 0;if(Array.isArray(r))s=r.reduce(function(o,n){var c=a.validate(n,t);return c.isValid?o.concat([n]):(i=!0,o.concat([c.sanitized]))},[]);else if(ot(r)){var l=Object.keys(r);s=l.reduce(function(o,n){var c=r[n],u=a.validate(c,t);return u.isValid?o[n]=c:(i=!0,o[n]=u.sanitized),o},{})}else return t.allowUndefined&&typeof r>"u"?void 0:null;return i?s:r}catch{return null}},e.prototype._trim=function(r){return String.prototype.trim?r.trim():r.replace(/(^\s*)|(\s*$)/g,"")},e}(),ft=":host{--instant-apps-header-height:auto;--instant-apps-header-min-height:50px;--instant-apps-header-title-text-link-decoration:underline;--instant-apps-header-height--logo-scale--s:55px;--instant-apps-header-logo-width--logo-scale--s:35px;--instant-apps-header-logo-height--logo-scale--s:35px;--instant-apps-header-height--logo-scale--m:70px;--instant-apps-header-logo-width--logo-scale--m:50px;--instant-apps-header-logo-height--logo-scale--m:50px;--instant-apps-header-height--logo-scale--l:80px;--instant-apps-header-logo-width--logo-scale--l:60px;--instant-apps-header-logo-height--logo-scale--l:60px;--instant-apps-header-actions-end-height:auto;width:100%}:host .image.image_resized img{width:100%}:host .instant-apps-header--standard{box-sizing:border-box;display:flex;align-items:center;justify-content:space-between;width:100%;height:var(--instant-apps-header-height);background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-1);font-family:var(--calcite-sans-family);min-height:var(--instant-apps-header-min-height)}:host .instant-apps-header--standard .instant-apps-header__header-container{display:flex;align-items:center;width:100%;height:inherit}:host .instant-apps-header--standard .instant-apps-header__header-container slot{display:flex;height:inherit}:host .instant-apps-header--standard .instant-apps-header__header-container ::slotted(*){display:flex;min-height:var(--instant-apps-header-min-height);height:var(--instant-apps-header-height)}:host .instant-apps-header--standard .instant-apps-header__header-container ::slotted(*) calcite-button{height:100%}:host .instant-apps-header--standard .instant-apps-header__header-content{box-sizing:border-box;display:flex;align-items:center;width:100%;min-width:0;height:inherit;padding:5px 10px}:host .instant-apps-header--standard .instant-apps-header__header-content a{display:flex;align-items:center;text-decoration:var(--instant-apps-header-title-text-link-decoration)}:host .instant-apps-header--standard .instant-apps-header__header-content a img{padding-right:0}:host .instant-apps-header--standard .instant-apps-header__header-content img{margin:10px}:host .instant-apps-header--standard .instant-apps-header__header-content h1{margin:0;font-size:1.25rem;color:var(--calcite-color-text-1);font-weight:430;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}:host .instant-apps-header--standard .instant-apps-header__header-content #infoButton{margin-inline-start:10px}:host .instant-apps-header--standard .instant-apps-header__header-content--center{justify-content:center}:host .instant-apps-header--standard .instant-apps-header__header-content--right{justify-content:end}:host .instant-apps-header__logo-height--s{height:var(--instant-apps-header-height--logo-scale--s)}:host .instant-apps-header__logo-height--s .instant-apps-header__header-content h1{font-size:1.125rem}:host .instant-apps-header__logo-scale--s{width:var(--instant-apps-header-logo-width--logo-scale--s);height:var(--instant-apps-header-logo-height--logo-scale--s)}:host .instant-apps-header__logo-height--m{height:var(--instant-apps-header-height--logo-scale--m)}:host .instant-apps-header__logo-scale--m{width:var(--instant-apps-header-logo-width--logo-scale--m);height:var(--instant-apps-header-logo-height--logo-scale--m)}:host .instant-apps-header__logo-height--l{height:var(--instant-apps-header-height--logo-scale--l)}:host .instant-apps-header__logo-height--l .instant-apps-header__header-content h1{font-size:1.375rem}:host .instant-apps-header__logo-scale--l{width:var(--instant-apps-header-logo-width--logo-scale--l);height:var(--instant-apps-header-logo-height--logo-scale--l)}:host .instant-apps-header__actions-end-container{height:var(--instant-apps-header-actions-end-height);display:flex}:host .instant-apps-header__sign-in-container{height:inherit;display:flex;align-items:center}:host .instant-apps-header__sign-in-container calcite-dropdown,:host .instant-apps-header__sign-in-container calcite-navigation-user{height:100%}:host .instant-apps-header__sign-in-container calcite-button{margin:0 10px}:host .instant-apps-header__sign-in-container calcite-dropdown-group{min-width:140px}",ut=ft,b={base:"instant-apps-header--standard",headerContainer:"instant-apps-header__header-container",headerContent:"instant-apps-header__header-content",flipRtl:"instant-apps-header--rtl",logoScale:"instant-apps-header__logo-scale--",logoHeight:"instant-apps-header__logo-height--",standardHeight:"instant-apps-header__standard-height",actionsEndContainer:"instant-apps-header__actions-end-container",alignment:{center:"instant-apps-header__header-content--center",right:"instant-apps-header__header-content--right"}},ct=class{constructor(e){q(this,e),this.infoIsOpenChanged=Z(this,"infoIsOpenChanged",6),this._sanitizer=new lt({whiteList:{h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],img:["style","src","width","height"],pre:["style"],p:["id","class","style"],div:["id","class","style","role"],span:["id","class","style","role"],figure:["class","style"],header:["id","class","style","role"]}},!0),this.dir=void 0,this.titleText="",this.titleTextLink=void 0,this.backgroundColor=void 0,this.textColor=void 0,this.logoImage=void 0,this.logoScale="m",this.logoImageAltText=void 0,this.logoLink=void 0,this.infoButton=!1,this.infoIsOpen=!1,this.infoTitleText=void 0,this.customHeaderHtml=void 0,this.headerAlignment="left",this.customHeaderCss=void 0,this.fontFamily="var(--calcite-sans-family);",this.mobileWidthBreakpoint=G.medium[1],this.initialScale="m"}sanitizeCustomHeaderHtml(){this.customHeaderHtml=this._sanitizer.sanitize(this.customHeaderHtml)}componentWillLoad(){this.dir=V(this.el),this.handleMobileBreakpoints(),this.dir=V(this.el),this.customHeaderHtml=this._sanitizer.sanitize(this.customHeaderHtml)}render(){let e=this.logoImage==="undefined"||this.logoImage?.split("?")?.[0]==="undefined"||this.logoImage?.split("?")?.[0]===""||!this.logoImage,r=this.renderLogo(e),t=this.renderTitle(),a=this.headerAlignment==="right"||this.headerAlignment==="center"?b.headerContent.concat(" ",b.alignment[this.headerAlignment]):b.headerContent,i=j(this.fontFamily);return p(M,{key:"67508c680a63356bffe44968e023768d34a3a8d1"},this.customHeaderHtml?[p("style",null,this.customHeaderCss),p("div",{id:"customHeader",innerHTML:this.customHeaderHtml})]:p("header",{class:`${b.base}${this.dir==="rtl"?` ${b.flipRtl}`:""}${this.logoImage&&!e?` ${b.logoHeight}${this.logoScale}`:` ${b.standardHeight}`}`,style:{backgroundColor:this.backgroundColor,fontFamily:i}},p("div",{class:b.headerContainer},p("span",{class:a},r,t,this.infoButton?p("calcite-button",{style:{"--calcite-color-text-1":this.textColor},id:"infoButton",alignment:"start",appearance:"transparent",kind:"neutral","icon-start":"information-f",scale:"s",label:this.infoTitleText,title:this.infoTitleText,onClick:this.toggleInfo.bind(this)}):null),p("div",{class:b.actionsEndContainer},p("slot",{name:"actions-end"})))))}renderLogo(e){return e?"":this.logoImage&&this.logoLink?p("a",{href:this.logoLink,target:"_blank"},p("img",{class:`${b.logoScale}${this.logoScale}`,src:this.logoImage,alt:this.logoImageAltText})):this.logoImage?p("img",{class:`${b.logoScale}${this.logoScale}`,src:this.logoImage,alt:this.logoImageAltText}):""}renderTitle(){return this.titleText&&this.titleTextLink?p("a",{style:{color:this.textColor},href:this.titleTextLink,rel:"noopener noreferrer",target:"_blank"},p("h1",{style:{color:this.textColor}},this.titleText)):p("h1",{style:{color:this.textColor}},this.titleText)}async toggleInfo(){return this.infoIsOpen=!this.infoIsOpen,this.infoIsOpenChanged.emit(this.infoIsOpen),void await Promise.resolve()}mqlCallback(){return e=>{let{matches:r}=e;if(r){this.logoScale="s";return}this.logoScale=this.initialScale}}handleMobileBreakpoints(){this.initialScale=this.logoScale;let e=`(max-width: ${this.mobileWidthBreakpoint}px)`,r=window.matchMedia(e);r.matches&&(this.logoScale="s"),r.addEventListener("change",this.mqlCallback())}get el(){return Q(this)}static get watchers(){return{customHeaderHtml:["sanitizeCustomHeaderHtml"]}}};ct.style=ut;export{ct as instant_apps_header};
|