@esri/solutions-components 1.1.0-next.20251007 → 1.1.0-next.20251007.2
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/{PHH3PQEX.js → 22YCD63R.js} +2 -2
- package/dist/cdn/{ELV7WOWP.js → 24A2C7XB.js} +2 -2
- package/dist/cdn/{Z5Z6E4RN.js → 26A5WXJA.js} +2 -2
- package/dist/cdn/{FPAZPLYR.js → 27IWMIXA.js} +2 -2
- package/dist/cdn/{BQMNOKC6.js → 2ADF4H4O.js} +2 -2
- package/dist/cdn/{CFXGE6YO.js → 2BCGP55H.js} +3 -3
- package/dist/cdn/{QZGBZQBD.js → 2BFIRXTI.js} +2 -2
- package/dist/cdn/{GK73RAPL.js → 2CNQTDSZ.js} +2 -2
- package/dist/cdn/{4SKANYNT.js → 2CXJV7H5.js} +2 -2
- package/dist/cdn/{EQRPJTSO.js → 2F675B52.js} +2 -2
- package/dist/cdn/{MP7U4YJC.js → 2GAMEN57.js} +2 -2
- package/dist/cdn/{JM7CE7BU.js → 2OSMNGF7.js} +2 -2
- package/dist/cdn/{HS7QACIV.js → 2T2E2UMS.js} +2 -2
- package/dist/cdn/{UEAFCV7D.js → 32XILUI2.js} +2 -2
- package/dist/cdn/{BLLH45ZM.js → 36GBDHPO.js} +2 -2
- package/dist/cdn/{AST3Y6YC.js → 37PCNJOT.js} +2 -2
- package/dist/cdn/{4FYNXGMO.js → 3B4AI2RC.js} +1 -1
- package/dist/cdn/{724RZCUJ.js → 3K2VHCK6.js} +2 -2
- package/dist/cdn/{WJNHOH6L.js → 3MDCQ7YR.js} +2 -2
- package/dist/cdn/{6NIL5WRG.js → 3MQ6ZRZE.js} +2 -2
- package/dist/cdn/{MRVFLAQW.js → 3MYJ6LVY.js} +1 -1
- package/dist/cdn/{MFCKBJNG.js → 3QPQ6XPF.js} +2 -2
- package/dist/cdn/3U7UEMW4.js +4 -0
- package/dist/cdn/{LRCHFOUM.js → 3V4RKRXX.js} +2 -2
- package/dist/cdn/{4AMDJJTG.js → 3XWQVEBM.js} +2 -2
- package/dist/cdn/{3AE5CIEW.js → 44GOFYMT.js} +2 -2
- package/dist/cdn/{OXGQ2TFX.js → 4APT6TV3.js} +2 -2
- package/dist/cdn/{7YL6B3NW.js → 4BBMBYZY.js} +2 -2
- package/dist/cdn/{OD3DDRK2.js → 4FCQ5LMD.js} +2 -2
- package/dist/cdn/{FV7PDAAZ.js → 4G5K63OS.js} +2 -2
- package/dist/cdn/{KFDMXZNX.js → 4HNC7MAX.js} +2 -2
- package/dist/cdn/{HML532KH.js → 4I3VLN3X.js} +2 -2
- package/dist/cdn/{5OCVXO44.js → 4KJUJFIH.js} +2 -2
- package/dist/cdn/{F55DVFGV.js → 4V7FRYAZ.js} +2 -2
- package/dist/cdn/{O3PEQLZQ.js → 55GWOV2F.js} +2 -2
- package/dist/cdn/{U3JDZKXZ.js → 5DZX5462.js} +2 -2
- package/dist/cdn/{62NQBYE5.js → 5JDYOT33.js} +2 -2
- package/dist/cdn/{EASJMMIP.js → 5OM5KDQB.js} +2 -2
- package/dist/cdn/{YBYPXRZ4.js → 5PRLPTRW.js} +2 -2
- package/dist/cdn/{6A2YLWRH.js → 5RZDWUNB.js} +2 -2
- package/dist/cdn/{XHHTWE2A.js → 5VDB6TIH.js} +2 -2
- package/dist/cdn/{YN4G6JAG.js → 5WJ5V4IX.js} +2 -2
- package/dist/cdn/{WZWHYIY6.js → 5ZYJ2VSP.js} +1 -1
- package/dist/cdn/{AKP7UG5M.js → 6AV5K45L.js} +2 -2
- package/dist/cdn/{LI6UY3BW.js → 6H3VNM3T.js} +2 -2
- package/dist/cdn/{UONZCNUI.js → 6HNWXGC5.js} +2 -2
- package/dist/cdn/{I6ICK7T2.js → 6JYEYEXG.js} +1 -1
- package/dist/cdn/{UWJF44VS.js → 6LELULON.js} +2 -2
- package/dist/cdn/{DMV2AUFK.js → 6R4F753U.js} +2 -2
- package/dist/cdn/{NNTXZQRZ.js → 6RT7QBIX.js} +2 -2
- package/dist/cdn/{F3CTFVF3.js → 6RVI3KN6.js} +2 -2
- package/dist/cdn/{NLQWW2KP.js → 6U3GLCV5.js} +2 -2
- package/dist/cdn/{IXL7MCZO.js → 6ULBHUFQ.js} +2 -2
- package/dist/cdn/{LWTAHQMO.js → 6V5FGUIB.js} +2 -2
- package/dist/cdn/{2WUZ5AWP.js → 6WJWGSXC.js} +2 -2
- package/dist/cdn/{S62BKUL2.js → 7FJRVBGP.js} +1 -1
- package/dist/cdn/{JFHBX5VG.js → 7LGFCTX3.js} +2 -2
- package/dist/cdn/{I7NYLB6M.js → 7NHOJEHI.js} +2 -2
- package/dist/cdn/{I5CZOAWC.js → 7OU55YEA.js} +2 -2
- package/dist/cdn/{NJXLJG26.js → 7P66PGUF.js} +2 -2
- package/dist/cdn/{LTO6ZYWH.js → 7X5SLXLA.js} +1 -1
- package/dist/cdn/{L6KEE7CO.js → A4ZLMN7Q.js} +2 -2
- package/dist/cdn/{4P2UVZOP.js → A6TYYYID.js} +2 -2
- package/dist/cdn/{JMOWBDNJ.js → AC3JRDHQ.js} +1 -1
- package/dist/cdn/{T3MQFEWY.js → ACW2OVTF.js} +2 -2
- package/dist/cdn/{W7I6VIPW.js → AGQJSJZ6.js} +2 -2
- package/dist/cdn/{5MLYUIJV.js → AJ5TQ2XO.js} +2 -2
- package/dist/cdn/{I7OLLWYU.js → ANYOMCB4.js} +2 -2
- package/dist/cdn/{IUNSTTVD.js → APYBTZVY.js} +2 -2
- package/dist/cdn/{RQNPHKAR.js → AWYPVGZI.js} +2 -2
- package/dist/cdn/{EW77BRVK.js → B5656UZM.js} +1 -1
- package/dist/cdn/{FCEPATIT.js → B62DQMTH.js} +2 -2
- package/dist/cdn/{WPDIZJFV.js → BEPNL6PV.js} +2 -2
- package/dist/cdn/{OMTBC3UI.js → BFZ2ZSPL.js} +2 -2
- package/dist/cdn/{BXE4FJZI.js → BIBOSWS5.js} +2 -2
- package/dist/cdn/{2IE4DIB2.js → BLQOF73O.js} +4 -4
- package/dist/cdn/{XP5L3PQ7.js → BM3ASCKM.js} +2 -2
- package/dist/cdn/{T6IO3EIO.js → BPDB6S3N.js} +2 -2
- package/dist/cdn/{ZKDDBMF4.js → C5U6PXBX.js} +2 -2
- package/dist/cdn/{EX2HZYXJ.js → C6VBDWCB.js} +2 -2
- package/dist/cdn/{NIRDZTE6.js → CDAVHEDS.js} +2 -2
- package/dist/cdn/{R4MJXBDO.js → CDH2BWSM.js} +1 -1
- package/dist/cdn/{4KSWM4IU.js → CGMQH46R.js} +1 -1
- package/dist/cdn/{GB7MQFMY.js → CGO6IH6W.js} +2 -2
- package/dist/cdn/{5UEORPAW.js → CM3HICNA.js} +2 -2
- package/dist/cdn/{IIZYYA4Y.js → CRBAIK6Y.js} +2 -2
- package/dist/cdn/{MATQ5XDV.js → CRKC2554.js} +2 -2
- package/dist/cdn/{Z23B54QX.js → CSEVFSR6.js} +2 -2
- package/dist/cdn/{YJYMJBBE.js → CTZPBYI4.js} +2 -2
- package/dist/cdn/{DFMOUEOY.js → CU2YXAXI.js} +2 -2
- package/dist/cdn/{B4Y6PC7M.js → CW2AUEXS.js} +2 -2
- package/dist/cdn/{ZCHDFFZT.js → CXARJRJW.js} +2 -2
- package/dist/cdn/{KS5KSXZN.js → D6GBEYPP.js} +2 -2
- package/dist/cdn/{RFBX4UEA.js → DG3MOC4V.js} +2 -2
- package/dist/cdn/{2DGFIZ2I.js → DGLCFVWJ.js} +2 -2
- package/dist/cdn/{NVFUKPQC.js → DGO242IG.js} +2 -2
- package/dist/cdn/{FTQ25G6S.js → DHRGBT52.js} +2 -2
- package/dist/cdn/DJJSMVAG.js +4 -0
- package/dist/cdn/{4AYDOLMC.js → DLIMT3CJ.js} +2 -2
- package/dist/cdn/{7ND4XYZX.js → DNCV6XUT.js} +2 -2
- package/dist/cdn/{74VOYCCN.js → DQDD2XFC.js} +2 -2
- package/dist/cdn/{GYX34AVR.js → DR2EP6W7.js} +2 -2
- package/dist/cdn/{ZS5DDGRG.js → DSLYRWDQ.js} +2 -2
- package/dist/cdn/{N34QDFSE.js → DSVQY5TD.js} +2 -2
- package/dist/cdn/{XV6T6WXW.js → DV76UKPC.js} +2 -2
- package/dist/cdn/{GSLNNZC3.js → DVQ35EGO.js} +2 -2
- package/dist/cdn/{ELNAGE56.js → E766FGF6.js} +2 -2
- package/dist/cdn/{F43I52D6.js → E7AINO6O.js} +2 -2
- package/dist/cdn/{QQR6XRGE.js → EBBWLHRX.js} +2 -2
- package/dist/cdn/{CZD47EV7.js → EEBXDRCX.js} +1 -1
- package/dist/cdn/{XDCP7UKX.js → EIAFG3AD.js} +2 -2
- package/dist/cdn/{KCJXM2WD.js → EIE73HUW.js} +2 -2
- package/dist/cdn/{JNN7O65D.js → EP5FEFKR.js} +2 -2
- package/dist/cdn/EPJ5CBIN.js +4 -0
- package/dist/cdn/{TF735JBT.js → EQ5W3AGT.js} +2 -2
- package/dist/cdn/{6PE6EXBN.js → EQLUQAGJ.js} +2 -2
- package/dist/cdn/{UE3LQPYK.js → ETWNOEBP.js} +2 -2
- package/dist/cdn/{YGMKDCD5.js → EX3GBVKY.js} +2 -2
- package/dist/cdn/{2VKLD4IL.js → F3FESR3J.js} +2 -2
- package/dist/cdn/{CNRCMRFR.js → F4C7TZVX.js} +2 -2
- package/dist/cdn/{4PTHWJYE.js → F5YJGXYI.js} +2 -2
- package/dist/cdn/{BD7NNCQC.js → F6ZSV3BW.js} +2 -2
- package/dist/cdn/FAB6LC4V.js +4 -0
- package/dist/cdn/{BLNKUEHQ.js → FEQGA7TK.js} +1 -1
- package/dist/cdn/{JUW3C22A.js → FFINWD2G.js} +2 -2
- package/dist/cdn/{H2O2MNSM.js → FGXBNDHV.js} +3 -3
- package/dist/cdn/{CK4F52TP.js → FK242YDL.js} +2 -2
- package/dist/cdn/{NT4MLHOA.js → FMPO2HQW.js} +2 -2
- package/dist/cdn/{LZON5NIK.js → FMY2ZXZQ.js} +1 -1
- package/dist/cdn/{QDU3LTAL.js → FOLOJ7IO.js} +1 -1
- package/dist/cdn/{XLL3XQZK.js → FRBQEAUJ.js} +2 -2
- package/dist/cdn/{VKS462PY.js → FRER6P64.js} +2 -2
- package/dist/cdn/{TMC7ITEQ.js → FRXS4ADG.js} +2 -2
- package/dist/cdn/{YW3FYUGE.js → FZBCSBMU.js} +2 -2
- package/dist/cdn/{2U3DF6YZ.js → G5HI3KYV.js} +2 -2
- package/dist/cdn/{MDXTMYXB.js → G7YFTABN.js} +1 -1
- package/dist/cdn/{LK2M24LA.js → GGGZDT3A.js} +2 -2
- package/dist/cdn/{ICUPL3P5.js → GQLRUNP7.js} +2 -2
- package/dist/cdn/{BDMZ6MAE.js → GXBQZDY5.js} +2 -2
- package/dist/cdn/{VI4HY6R4.js → GYFM6PEE.js} +2 -2
- package/dist/cdn/{VBVNASGD.js → H2JARZIC.js} +2 -2
- package/dist/cdn/{YWAQR3AZ.js → H2VVCIGV.js} +2 -2
- package/dist/cdn/{JN3EG3ZT.js → H5BA36WL.js} +2 -2
- package/dist/cdn/{552IHKX7.js → H5WVSE4F.js} +2 -2
- package/dist/cdn/{IXFIDBVV.js → H7AQXTUV.js} +2 -2
- package/dist/cdn/{L7OVTNBC.js → HA5V6WRW.js} +2 -2
- package/dist/cdn/{OHVE5E6B.js → HAHA5KMI.js} +2 -2
- package/dist/cdn/{5R4OBI65.js → HD7Q2QSN.js} +2 -2
- package/dist/cdn/{TA2EK6T7.js → HMBSACIC.js} +2 -2
- package/dist/cdn/{JTQIHMUV.js → HS5WDWI4.js} +2 -2
- package/dist/cdn/{FYEINK5S.js → HSF6BG4Z.js} +2 -2
- package/dist/cdn/{2JLIN4A5.js → HVXXP7CO.js} +2 -2
- package/dist/cdn/{N7BF6BJU.js → I6FQWMYO.js} +2 -2
- package/dist/cdn/{GVD6DTFG.js → IA5OEJJ4.js} +2 -2
- package/dist/cdn/{4SZS6G6P.js → IB3DAYJ5.js} +2 -2
- package/dist/cdn/{6E3RVZJ4.js → IBCNNRBO.js} +1 -1
- package/dist/cdn/{AXOXQ3L7.js → IMIKQJ6E.js} +2 -2
- package/dist/cdn/{X2OE5IJ7.js → IRR3HAZY.js} +2 -2
- package/dist/cdn/{2AZCARTQ.js → IZHYGLE4.js} +2 -2
- package/dist/cdn/{6VB2IJI6.js → J3QWY3JM.js} +1 -1
- package/dist/cdn/{UWRYA7O5.js → J43KTNAH.js} +2 -2
- package/dist/cdn/{R4DMQKY5.js → J4P2OVDV.js} +2 -2
- package/dist/cdn/{IUFITMZP.js → JFUGGJ4B.js} +1 -1
- package/dist/cdn/{AAZAJXP2.js → JJ76AJAN.js} +2 -2
- package/dist/cdn/{JFD6YYKC.js → JJQ6FGUS.js} +2 -2
- package/dist/cdn/{ZXKECFB4.js → JSYLPYZU.js} +2 -2
- package/dist/cdn/{CNTUKHXQ.js → JV2C5AGX.js} +2 -2
- package/dist/cdn/{EP4UGUEJ.js → JW5GPWPC.js} +2 -2
- package/dist/cdn/{WXJSXARO.js → K7MHRUTS.js} +2 -2
- package/dist/cdn/{6YKBF3PU.js → K7QD6KYM.js} +2 -2
- package/dist/cdn/{JGSUEUPR.js → KCU74TXF.js} +2 -2
- package/dist/cdn/{5F5MRFGZ.js → KDBMC76J.js} +2 -2
- package/dist/cdn/{BWDUQNHO.js → KE4IWLGO.js} +2 -2
- package/dist/cdn/{EKV3AXY4.js → KHLFAVYM.js} +1 -1
- package/dist/cdn/{QGDM34WJ.js → KOPD7UNP.js} +2 -2
- package/dist/cdn/{44QLJBVZ.js → KRZLK3F4.js} +2 -2
- package/dist/cdn/{WO2PPITE.js → KUVN2IA6.js} +2 -2
- package/dist/cdn/{WDCL4ZKI.js → KZDLF5CN.js} +2 -2
- package/dist/cdn/{JJFAXRVR.js → L3AKT74R.js} +2 -2
- package/dist/cdn/{HHWLPZBQ.js → L5L747ZM.js} +1 -1
- package/dist/cdn/{V6YG4AUN.js → LC4QJOAB.js} +1 -1
- package/dist/cdn/{AAYPYRT2.js → LJ3WKMEW.js} +2 -2
- package/dist/cdn/{M6JYAAPC.js → LL7VDDFZ.js} +2 -2
- package/dist/cdn/{BKC4PUJC.js → LPUGC74P.js} +2 -2
- package/dist/cdn/{YVS3ZHMD.js → LVOUP5TL.js} +2 -2
- package/dist/cdn/{V22EOT5F.js → LWTGGSX4.js} +2 -2
- package/dist/cdn/{CYTHT4IX.js → LZNJXXLW.js} +1 -1
- package/dist/cdn/{QOY37WXW.js → M3VZPYZ4.js} +2 -2
- package/dist/cdn/{PN5SJVDO.js → MBPFVCEE.js} +2 -2
- package/dist/cdn/{TCCDGCGW.js → MEC4WXAJ.js} +2 -2
- package/dist/cdn/{JCOW7FQV.js → ML6DRQQI.js} +2 -2
- package/dist/cdn/{BAT23MAG.js → MM4627YF.js} +1 -1
- package/dist/cdn/{CVMBXKS3.js → MMVXQRLD.js} +2 -2
- package/dist/cdn/{FZ2AHQWZ.js → MNJEOD4T.js} +2 -2
- package/dist/cdn/{E54PKNPS.js → MOZSEMDB.js} +2 -2
- package/dist/cdn/{FCTVPKTW.js → MTFV244W.js} +2 -2
- package/dist/cdn/{OUTJXFMV.js → MTZKPNJW.js} +2 -2
- package/dist/cdn/{LVYJOWFJ.js → MXNQOBQW.js} +2 -2
- package/dist/cdn/{XYTLVBPS.js → MZ4ZK62W.js} +2 -2
- package/dist/cdn/{BMVUH4BD.js → N2SYGDSV.js} +2 -2
- package/dist/cdn/{JKI3NFEX.js → N5FGXZ6T.js} +2 -2
- package/dist/cdn/{ZRYDIP3B.js → N6RJSSZB.js} +2 -2
- package/dist/cdn/{PVUL25OE.js → NBK5KX5G.js} +2 -2
- package/dist/cdn/{A7MIYW46.js → NEAIJ5TO.js} +2 -2
- package/dist/cdn/{WCFKEAUZ.js → NFN5NMUD.js} +2 -2
- package/dist/cdn/{U7WE2Z7A.js → NHVW3QXI.js} +2 -2
- package/dist/cdn/{AXHOADYB.js → NJPX3KUC.js} +2 -2
- package/dist/cdn/{THKAOBGP.js → NMRQEFFB.js} +2 -2
- package/dist/cdn/{EMKALPKM.js → NOU4IK27.js} +2 -2
- package/dist/cdn/{LQRN2ZYE.js → NSKPNLSF.js} +2 -2
- package/dist/cdn/{2QTCOEHJ.js → NTAR4TRI.js} +2 -2
- package/dist/cdn/{TASKYDNG.js → NTO2INTB.js} +2 -2
- package/dist/cdn/{2DSW6XTR.js → NTZKCUB3.js} +2 -2
- package/dist/cdn/{BGVSICH4.js → NVWNTZ5A.js} +1 -1
- package/dist/cdn/{7CXOISFN.js → O2EYFDON.js} +1 -1
- package/dist/cdn/{LP4CKVU6.js → O4QG67LI.js} +2 -2
- package/dist/cdn/O5MDIFEZ.js +4 -0
- package/dist/cdn/{TSNRAO3A.js → OAURW4KF.js} +2 -2
- package/dist/cdn/{5XKCPGRG.js → OCD2U2P5.js} +2 -2
- package/dist/cdn/{RRIYSYSG.js → OCVPRXIB.js} +2 -2
- package/dist/cdn/{DLPWOS2S.js → ODTROJXK.js} +2 -2
- package/dist/cdn/{MUT7LU6P.js → OE7ZS3FN.js} +2 -2
- package/dist/cdn/{K3CKPBR4.js → OFH5S424.js} +1 -1
- package/dist/cdn/{SLJBKYCZ.js → OG36LYNE.js} +2 -2
- package/dist/cdn/{C5MINTS6.js → ONKHLFPQ.js} +2 -2
- package/dist/cdn/{XO2DRFBA.js → OO3V5H6P.js} +1 -1
- package/dist/cdn/{RM2LIIIT.js → OTKLNSRD.js} +2 -2
- package/dist/cdn/{NFUTJQ6G.js → OU7RANCG.js} +2 -2
- package/dist/cdn/{YBH23QNV.js → OYXUJV4G.js} +2 -2
- package/dist/cdn/{T2PBTRJS.js → OZ6RN5TB.js} +2 -2
- package/dist/cdn/{ORVXY4O3.js → OZT3O3AR.js} +2 -2
- package/dist/cdn/{B2SSZL6Z.js → P2IVEOQC.js} +2 -2
- package/dist/cdn/{OG3R45SQ.js → P3HSFZCN.js} +2 -2
- package/dist/cdn/{HMPAG3DM.js → P4VUE672.js} +2 -2
- package/dist/cdn/{7I3HYIAM.js → P56KUAR6.js} +2 -2
- package/dist/cdn/{X6OAQ3ZM.js → PDRG2WQQ.js} +2 -2
- package/dist/cdn/{RYLCCGYQ.js → PEZ2V43W.js} +1 -1
- package/dist/cdn/{VZVGIZK3.js → PF2ZKWGJ.js} +2 -2
- package/dist/cdn/{P3MAJXHM.js → PHQIUZVD.js} +2 -2
- package/dist/cdn/{RYNRXDG4.js → PIEGJKY2.js} +2 -2
- package/dist/cdn/{3Q7NXF5W.js → PJ5NUDMJ.js} +1 -1
- package/dist/cdn/{SBJECNAA.js → PQFSKABH.js} +2 -2
- package/dist/cdn/{LTO6H6S4.js → PZI2S66G.js} +2 -2
- package/dist/cdn/{7PFJ3YB2.js → Q25TGDLH.js} +2 -2
- package/dist/cdn/{Z27W4IIG.js → Q35WFU4Q.js} +2 -2
- package/dist/cdn/{4FXA7VKS.js → Q3RHQ7FZ.js} +2 -2
- package/dist/cdn/{JUOGVLUN.js → QAV6KHM2.js} +2 -2
- package/dist/cdn/{RMV2E5QX.js → QD5QG4UO.js} +1 -1
- package/dist/cdn/{43IN6KPS.js → QETJU5AS.js} +2 -2
- package/dist/cdn/{CDAD7BAI.js → QHTAZWLQ.js} +2 -2
- package/dist/cdn/{EH5HZMS6.js → QLWTDB7L.js} +2 -2
- package/dist/cdn/{TRVXTU3X.js → QMMI5AYA.js} +2 -2
- package/dist/cdn/{N7BBRC6U.js → R4FRD36C.js} +1 -1
- package/dist/cdn/{TFYB2NTT.js → R4UZROQ4.js} +2 -2
- package/dist/cdn/{4KNF77QE.js → R7XKVCQQ.js} +2 -2
- package/dist/cdn/{YHMXVXND.js → R7YYXWG7.js} +2 -2
- package/dist/cdn/{N2655EZT.js → RCJQHYB6.js} +2 -2
- package/dist/cdn/{F4X5QO7H.js → RDQ6HJNV.js} +2 -2
- package/dist/cdn/{GXRV7RM3.js → RGFN7ICB.js} +2 -2
- package/dist/cdn/{3SWFP7GE.js → RN2N36UH.js} +2 -2
- package/dist/cdn/{D6A7FOI5.js → RN6ASPLR.js} +2 -2
- package/dist/cdn/{5EBIVKX5.js → RNAE3SRQ.js} +2 -2
- package/dist/cdn/{OQJZEYEF.js → RUMT22RX.js} +2 -2
- package/dist/cdn/{NQWWWUFD.js → RWNOOJSY.js} +1 -1
- package/dist/cdn/{M3TQIYRO.js → RXXNEAEN.js} +2 -2
- package/dist/cdn/{TH3X3X2I.js → S3COAP4D.js} +2 -2
- package/dist/cdn/{MGTW76LA.js → SCD7XWJA.js} +2 -2
- package/dist/cdn/{JLFITN4X.js → SEYYZQDP.js} +2 -2
- package/dist/cdn/{L3D5DBDG.js → SJD32L6O.js} +2 -2
- package/dist/cdn/{F7NK2ZDC.js → SJTVMX2D.js} +2 -2
- package/dist/cdn/{UTWWI3OJ.js → SUGGLQNX.js} +2 -2
- package/dist/cdn/{MUBJP6SD.js → T34JSXPM.js} +2 -2
- package/dist/cdn/{QOLVMCBA.js → T4BF45VL.js} +1 -1
- package/dist/cdn/{2QXNMQKP.js → T5HWRYMF.js} +2 -2
- package/dist/cdn/{E2BU666U.js → TB2UDWZN.js} +2 -2
- package/dist/cdn/{FYQCB2K2.js → TJATDZ2J.js} +2 -2
- package/dist/cdn/{EHHDW5VC.js → TKCF6KI7.js} +2 -2
- package/dist/cdn/{ZM5H24GH.js → TNFLX3O4.js} +2 -2
- package/dist/cdn/{JOHYSRVH.js → TODXKPMC.js} +2 -2
- package/dist/cdn/{7O3U25RG.js → TOTZU4L6.js} +2 -2
- package/dist/cdn/{MNSINQHA.js → TS5X5LQV.js} +2 -2
- package/dist/cdn/{RF62BZRX.js → TV5LMDU2.js} +2 -2
- package/dist/cdn/{ZB2JHEUH.js → TZOOPRZV.js} +2 -2
- package/dist/cdn/{NJFED6J6.js → TZWSOZ3U.js} +2 -2
- package/dist/cdn/{CBHX4NKW.js → U4SPJKAK.js} +2 -2
- package/dist/cdn/{Z3H3C4GI.js → UCBSIRNY.js} +2 -2
- package/dist/cdn/{WC36YPV6.js → UCVSW3E2.js} +2 -2
- package/dist/cdn/{WIRDBZL6.js → UGL6SXAC.js} +2 -2
- package/dist/cdn/{ZGIPZ5JM.js → UR77OOPK.js} +2 -2
- package/dist/cdn/{SBY3SKOO.js → UXZ5EXMN.js} +2 -2
- package/dist/cdn/{HWIHOVWP.js → V2LDDPI2.js} +1 -1
- package/dist/cdn/{TAEUWCES.js → V2QIIKRG.js} +2 -2
- package/dist/cdn/{W3T35GGA.js → V3AUJGMQ.js} +1 -1
- package/dist/cdn/{IWXUAUTV.js → VDIJVIMA.js} +1 -1
- package/dist/cdn/VF4ZNF4J.js +4 -0
- package/dist/cdn/{NPYBNSXS.js → VGTJZ2TY.js} +2 -2
- package/dist/cdn/{BREEDTFR.js → VIVI2JT3.js} +2 -2
- package/dist/cdn/{ZMZFEE2N.js → VKEQYWIX.js} +2 -2
- package/dist/cdn/{Q7MFBOXJ.js → VKZPBOPS.js} +2 -2
- package/dist/cdn/{EE43NZUC.js → VNZ5JJ4A.js} +2 -2
- package/dist/cdn/{7C73YP73.js → VPW2TXOP.js} +2 -2
- package/dist/cdn/{GPJSSBQP.js → VSNWERSC.js} +2 -2
- package/dist/cdn/{47GF2SJ2.js → VT554TSV.js} +2 -2
- package/dist/cdn/{NH6ZOURV.js → VYXE55MD.js} +2 -2
- package/dist/cdn/{ACKJ6HLJ.js → VZT6CM2A.js} +2 -2
- package/dist/cdn/{LKLS7OZC.js → W4Q7LIFW.js} +2 -2
- package/dist/cdn/{DEYL3KKC.js → W5N2GMZV.js} +2 -2
- package/dist/cdn/{WNKXFWQB.js → WHYK5A34.js} +2 -2
- package/dist/cdn/{IZYSIC5H.js → WJD6OHPD.js} +2 -2
- package/dist/cdn/{RD5GHVVI.js → WNO7UAWB.js} +2 -2
- package/dist/cdn/{VJFYA5FL.js → WOKWY5GT.js} +2 -2
- package/dist/cdn/{Y6RANQUU.js → WOZDANIF.js} +2 -2
- package/dist/cdn/{ZQ4ZO3HK.js → WPIKIIIU.js} +2 -2
- package/dist/cdn/{ROGD6PQR.js → WSDYBUUJ.js} +2 -2
- package/dist/cdn/{I4KZ4IWL.js → WVXRS3KL.js} +1 -1
- package/dist/cdn/{S3DZVORH.js → WXDFVWQ4.js} +2 -2
- package/dist/cdn/{RIAK55ZE.js → X2NFA2TU.js} +2 -2
- package/dist/cdn/{FLBZR6QM.js → X3FM7B2T.js} +2 -2
- package/dist/cdn/{N3JFMD3Z.js → X3PN5CIR.js} +2 -2
- package/dist/cdn/{QXZRXM75.js → X5CV5TPX.js} +2 -2
- package/dist/cdn/{57TOCQVV.js → XGCWDR6O.js} +2 -2
- package/dist/cdn/{JN7MS6OE.js → XGR4ELEN.js} +2 -2
- package/dist/cdn/{ZHHO3JI4.js → XHGM7JLO.js} +2 -2
- package/dist/cdn/{RNNWRYA6.js → XKN63CTE.js} +2 -2
- package/dist/cdn/{DKWP73ZB.js → XML3AITH.js} +2 -2
- package/dist/cdn/{FDYYIPGA.js → XP5MJXHR.js} +2 -2
- package/dist/cdn/{LEK4SKDC.js → XV4FW3K5.js} +2 -2
- package/dist/cdn/{LQZH56WC.js → XXR2XZUC.js} +2 -2
- package/dist/cdn/{IT53LSQJ.js → Y6ZPA5SJ.js} +1 -1
- package/dist/cdn/YENOBA4Z.js +4 -0
- package/dist/cdn/{VEF3UNRW.js → YF55QH6F.js} +2 -2
- package/dist/cdn/{YWQ54Y2X.js → YHA3BGB7.js} +2 -2
- package/dist/cdn/{XXAXGA6T.js → YMAHWPK2.js} +2 -2
- package/dist/cdn/{LMYIKSSZ.js → YOIROMMO.js} +2 -2
- package/dist/cdn/{FSOQTW3R.js → YVJZFL4X.js} +2 -2
- package/dist/cdn/{ZSKHTLM5.js → Z4HDSEO7.js} +1 -1
- package/dist/cdn/{FZEGBYLU.js → ZBW6XK7P.js} +2 -2
- package/dist/cdn/ZCXMXDQ6.js +4 -0
- package/dist/cdn/{Y6AAHDG7.js → ZD6TXVNV.js} +2 -2
- package/dist/cdn/{N5GDMYKC.js → ZHWXR6EI.js} +2 -2
- package/dist/cdn/{KMRBYQO7.js → ZKVFE2V5.js} +2 -2
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/Auth.js +1 -1
- package/dist/chunks/CardsFetcher.js +1 -1
- package/dist/chunks/appConfig.js +1 -1
- package/dist/chunks/cardFetchingUtils.js +1 -1
- package/dist/chunks/cardsHelpers.js +1 -1
- package/dist/chunks/common.js +1 -1
- package/dist/chunks/deployAppContexts.js +1 -1
- package/dist/chunks/downloadUtils.js +1 -1
- package/dist/chunks/getItemIcon.js +1 -1
- package/dist/chunks/helpers.js +1 -1
- 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/prepareDataForSolutionDisplay.js +1 -1
- package/dist/chunks/privilegeUtils.js +1 -1
- package/dist/chunks/publicNotificationContext.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.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.js +1 -1
- package/dist/components/consent-manager/customElement.js +1 -1
- package/dist/components/create-feature/customElement.js +1 -1
- package/dist/components/create-related-feature/customElement.js +1 -1
- 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.js +1 -1
- package/dist/components/edit-card/customElement.js +1 -1
- 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.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.js +2 -2
- package/dist/components/map-card/customElement.js +1 -1
- 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.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-dialog/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-deployed-card/customElement.js +1 -1
- package/dist/components/solution-deploying-dialog/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-diagram/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-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-social-share/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-deploy-app/customElement.js +1 -1
- package/dist/components/solutions-deploy-app-nav/customElement.js +1 -1
- package/dist/components/solutions-deployed-filter-panel/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 +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/package.json +1 -1
- package/dist/cdn/2D6HJBXC.js +0 -4
- package/dist/cdn/A2YPGMU7.js +0 -4
- package/dist/cdn/ILRFSKWK.js +0 -4
- package/dist/cdn/JAJO3XWS.js +0 -4
- package/dist/cdn/KFHQ56GV.js +0 -4
- package/dist/cdn/QULVZRVY.js +0 -4
- package/dist/cdn/R7HVAULO.js +0 -4
- package/dist/cdn/TTOD54DS.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.1/esri/copyright.txt for details.
|
|
3
|
-
v1.1.0-next.20251007 */
|
|
4
|
-
import{a as f}from"./Y6AAHDG7.js";import{a as D}from"./QOLVMCBA.js";import{a as L}from"./WCFKEAUZ.js";import{B as S,C as I}from"./ZSKHTLM5.js";import{b as k}from"./X2OE5IJ7.js";import"./UONZCNUI.js";import"./JLFITN4X.js";import{C as $,D as b,E as F,G as p,h as C,i as l,l as m,o as E}from"./MDXTMYXB.js";import"./IWXUAUTV.js";var _="instant-apps-filter-list calcite-mode-light",P="instant-apps-filter-list calcite-mode-dark",x=["feature","geojson","wfs","csv","scene","subtype-group","point-cloud","map-image","sublayer"];function v(h){return h.replaceAll("'","''")}function y(h,e=!1){if(h){let t=new Date(h),i=`${t.getFullYear()}-${t.getMonth()+1}-${t.getDate()}`;if(e){let s=`${t.getHours()}:${t.getMinutes()}:${t.getSeconds()}`;return`${i} ${s}`}else return i}}function T(h){if(h!=null){h.value=["",""];let e=h.shadowRoot?.querySelectorAll("calcite-input");if(e!=null)for(let t of e)t.value=""}}var O=C`: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:400}.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:65px;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__time-picker-input-container{display:grid;grid-template-columns:auto 32px;width:100%}.instant-apps-filter-list__time-picker-input-container calcite-input-time-picker:first-child{grid-column:1;grid-row:1}.instant-apps-filter-list__time-picker-input-container calcite-input-time-picker:last-child{grid-column:1;grid-row:2}.instant-apps-filter-list__time-picker-input-container calcite-action{grid-column:2;grid-row:1/span 2;height:64px;width:33px;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:400;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 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: .6s }}.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}`,d={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",timeInputContainer:"instant-apps-filter-list__time-picker-input-container",operatorDesc:"instant-apps-filter-list__operator-description"},w=class extends F{constructor(){super(...arguments),this._messages=L({name:"instant-apps-filter-list",blocking:!0}),this.resetBtnEl=$(),this.panelEl=$(),this.isLayerExpUpdated=!1,this.baseClass=_,this.autoUpdateUrl=!1,this.closeBtn=!1,this.comboboxOverlayPositioning="absolute",this.openFilters=!1,this.extentSelector=!1,this.filterCount=0,this.zoomBtn=!0,this.resetBtn=!0,this.resetFiltersOnDisconnect=!0,this.filterListReset=E(),this.filterUpdate=E()}static{this.properties={loading:16,filterLayerExpressions:16,baseClass:16,initDefExpressions:16,initMapImageExpressions:16,initPointCloudFilters:16,layerExpressions:0,autoUpdateUrl:5,closeBtn:5,closeBtnOnClick:0,comboboxOverlayPositioning:1,closeBtnText:1,openFilters:5,extentSelector:5,extentSelectorConfig:0,urlParams:0,filterCount:9,view:0,zoomBtn:5,resetBtn:5,resetFiltersOnDisconnect:5}}static{this.styles=O}async forceReset(){return this.resetExpressions(),await Promise.resolve(!0)}async getCurrentLayerExpressions(){let e=structuredClone(this.filterLayerExpressions);return await Promise.resolve(e)}async getFilterInitState(){return await Promise.resolve({initDefExpressions:this.initDefExpressions,initMapImageExpressions:this.initMapImageExpressions,initPointCloudFilters:this.initPointCloudFilters})}async handleUpdatingT9nData(e){return e==null?await Promise.resolve(!0):(this.filterLayerExpressions?.forEach(t=>{let i=e?.find(s=>s.id===t.id);i!=null&&(t.title=i.title,t.expressions?.forEach(s=>{let n=i.expressions?.find(a=>a.id===s.id);n!=null&&(s.name=n.name)}))}),await Promise.resolve(!0))}async updateInitDefExpressions(e){return this.initDefExpressions=e.initDefExpressions,this.initMapImageExpressions=e.initMapImageExpressions,this.initPointCloudFilters=e.initPointCloudFilters,await Promise.resolve(!0)}connectedCallback(){super.connectedCallback(),!(this.layerExpressions==null&&this.view==null)&&(this.isLayerExpUpdated=!0,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.handleLayerExpressionsUpdate())}async load(){this.baseClass=D(this.el)==="dark"?P:_,await this.initializeModules(),!this.isLayerExpUpdated&&(this.isLayerExpUpdated=!0,this.filterLayerExpressions=this.layerExpressions!=null?structuredClone(this.layerExpressions):[],this.view!=null&&this.handleLayerExpressionsUpdate())}willUpdate(e){e.has("view")&&this.handleWhenView(),e.has("layerExpressions")&&(this.resetAllFilters(),this.filterLayerExpressions=structuredClone(this.layerExpressions),this.handleLayerExpressionsUpdate())}updated(){this.resetBtnEl.value!=null&&(this.resetBtnEl.value.disabled=!(this.filterLayerExpressions&&this.filterLayerExpressions.length>0))}disconnectedCallback(){super.disconnectedCallback(),this.resetFiltersOnDisconnect&&(this.isLayerExpUpdated=!1,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.resetAllFilters())}async initializeModules(){let[e,t]=await Promise.all([I(),S()]);this.geometryJsonUtils=t,this.intl=e}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=${p(d.operatorDesc)} .heading=${this._messages[t]} expanded>${i}${this.renderFilter(this.filterLayerExpressions[0])}</calcite-block>`}else if(this.filterLayerExpressions.length>1)return this.renderLayerBlock()}}handleResetDatePicker(e,t){let i=this.panelEl.value?.querySelector(`[id='${e.id}']`);i&&(T(i),e.active=!1,e.definitionExpression=void 0,e.range=void 0,this.generateOutput(t))}handleResetTimePicker(e,t){this.resetTimePicker(e),e.active=!1,e.definitionExpression=void 0,e.range=void 0,this.generateOutput(t)}resetTimePicker(e){let t=this.panelEl.value?.querySelector(`[id='${e.id}-min']`),i=this.panelEl.value?.querySelector(`[id='${e.id}-max']`);!t||!i||(t.value=e.min,i.value=e.max)}initInput(e,t){let{type:i,numDisplayOption:s,displayOption:n}=t;if(i==="string"||i==="coded-value"||(i==="number"||i==="range"||i==="date"||i==="time-only")&&(s==="drop-down"||n==="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);if(i==="time-only")return this.renderTimePicker(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:s,displayOption:n}=t,a="";i==="string"||i==="coded-value"||(i==="number"||i==="range"||i==="date"||i==="time-only")&&(s==="drop-down"||n==="drop-down")?a="combobox":i==="date"?a="datePicker":i==="number"||i==="range"?a="numberRange":i==="time-only"&&(a="timePicker"),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 s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&Array.from(s.children).forEach(n=>{n.selected=!1});break}case"datePicker":{t.range=void 0;let s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&T(s);break}case"numberRange":{t.range=void 0;let s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&(s.minValue=t.min,s.maxValue=t.max);break}case"timePicker":t.range=void 0,this.resetTimePicker(t)}}resetCheckbox(e){let{id:t}=e,i=this.panelEl.value?.querySelector(`[id='${t}']`);i&&(i.checked=!1)}resetAllFilters(){this.view?.map?.allLayers?.concat(this.view?.map?.allTables.toArray()??[])?.forEach(e=>{if(!x.includes(e.type))return;let t=e;if(t.type==="point-cloud"){if(!this.initPointCloudFilters)return;t.filters=this.initPointCloudFilters[t.id]}else if(t.type==="map-image")t.allSublayers.forEach(i=>{i.definitionExpression=this.initMapImageExpressions?.[t.id]?.[i.id]??""});else{if(this.initDefExpressions==null)return;t.definitionExpression=this.initDefExpressions[t.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:i})=>i===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:`'${v(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:s}=t;if(s!=null)if(this.setExpressionFormat(i,t,s),t?.numDisplayOption==="drop-down"||t?.displayOption==="drop-down")await this.getFeatureAttributes(i,t);else{let n=(await this.calculateMinMaxStatistics(i,s))?.[0]?.attributes;if(t.format?.places!=null?(t.min=this.roundMinNumberDown(n[`min${s}`],t.format.places),t.max=this.roundMaxNumberUp(n[`max${s}`],t.format.places)):(t.min=n[`min${s}`],t.max=n[`max${s}`]),t?.range&&Object.keys(t.range).length){let{min:a,max:r}=t.range;return t.definitionExpression=`${t.field} BETWEEN ${a} AND ${r}`,!0}}}return!1}async updateDateExpression(e,t){let{field:i,range:s}=t,n=this.findFilterLayer(e),a=(await this.calculateMinMaxStatistics(n,i))?.[0]?.attributes;if(t.min=y(a[`min${i}`]),t.max=y(a[`max${i}`]),s!=null&&(s?.max!=null||s?.min!=null)){let{min:r,max:o}=s;if(r=r?.replace("+"," "),o=o?.replace("+"," "),r||o){let c=o&&!r?"<":!o&&r?">":null;return c?t.definitionExpression=`${i} ${c} '${r??o}'`:t.definitionExpression=`${i} BETWEEN '${r}' AND '${o}'`,!0}}return!1}async updateTimeExpression(e,t){let{field:i,range:s}=t,n=this.findFilterLayer(e),a=(await this.calculateMinMaxStatistics(n,i))?.[0]?.attributes;if(t.min=a[`min${i}`],t.max=a[`max${i}`],s!=null&&(s?.max!=null||s?.min!=null)){let{min:r,max:o}=s;if(r||o){let c=o&&!r?"<":!o&&r?">":null;return c?t.definitionExpression=`${i} ${c} TIME '${r??o}'`:t.definitionExpression=`${i} BETWEEN TIME '${r}' AND TIME '${o}'`,!0}}return!1}async updateCodedValueExpression(e,t,i){if(!i?.domain||i?.domain?.type!=="coded-value")return!1;let s=this.findFilterLayer(e);await this.getFeatureAttributes(s,t);let n=i.domain.codedValues.reduce((a,{code:r,name:o})=>(a[r]=o,a),{});if(t.codedValues=n,this.sortCodedValues(t),t.selectedFields?.length){let a=t.selectedFields.map(r=>typeof r=="number"?r:`'${v(r)}'`).join(",");return t.definitionExpression=`${t.field} IN (${a})`,!0}return!1}updateRangeExpression(e,t){if(!t?.domain||t?.domain?.type!=="range")return!1;let{field:i,range:s}=e;return e.min=t.domain.minValue,e.max=t.domain.maxValue,s&&Object.keys(s).length?(e.definitionExpression=`${i} BETWEEN ${s.min} AND ${s.max}`,!0):!1}async getFeatureAttributes(e,t){if(!this.isLayerSupported(e)){t.fields=[];return}let i=await this.getQueryLayer(e),{maxRecordCount:s,supportsMaxRecordCountFactor:n}=this.extractQueryCapabilities(e),a=await i.queryFeatureCount(),r=this.createQuery(i,t);await this.queryDistinctFeatures(i,r,t),this.shouldPaginate(s,a,n)&&this.handlePagination(i,r,s,n,a,t)}isLayerSupported(e){return e&&x.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 s=t?.field;if(s){let n=this.getInitDefExprFromLayer(e);i.where=n||"1=1",i.outFields=[s],i.orderByFields=[`${s} 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 s=await this.queryForFeatures(e,t,t.outFields[0]);s?.length&&(i.fields=[...new Set(s)],i.type==="string"?i.fields=i.fields.sort((n,a)=>n.localeCompare(a)):i.type==="number"&&(i.fields=i.fields.sort((n,a)=>n-a)))}getQueryCount(e,t){return t?e*5:e}shouldPaginate(e,t,i){let s=this.getQueryCount(e,i);return e!=null&&t>s}async handlePagination(e,t,i,s,n,a){let r=this.getQueryCount(i,s),o=[];for(let c=r;c<n;c+=r){let u=t.clone();u.num=i,u.start=c,o.push(this.queryForFeatures(e,u,t?.outFields?.[0]??""))}Promise.all(o).then(c=>{c.forEach(u=>{u?.length&&a.fields&&a.fields.push(...u)}),a.type==="string"?a.fields=[...new Set(a.fields)].sort((u,g)=>u.localeCompare(g)):a.type==="number"?a.fields=[...new Set(a.fields)].sort((u,g)=>u-g):a.type==="coded-value"&&a.codedValues?this.sortCodedValues(a):a.fields=[...new Set(a.fields)].sort()})}async queryForFeatures(e,t,i){return(await e.queryFeatures(t))?.features.filter(s=>{let n=s.attributes?.[i];return n!=null&&n!==""})?.map(s=>s.attributes?.[i])}async calculateMinMaxStatistics(e,t){if(!e||!x.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 n="extent"in s?s:this.geometryJsonUtils.fromJSON(s);if(n?.type==="extent"||n?.type==="polygon")return n}}}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 s=i.fields?.find(({name:a})=>a===t.field),n=s?.domain?.type;t.type=n==="coded-value"||n==="range"?n:t.type,await this.updateExpression(e,t,s)}))}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"time-only":return await this.updateTimeExpressionBasedOnDisplayOption(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 updateTimeExpressionBasedOnDisplayOption(e,t){return t.displayOption==="drop-down"?await this.updateStringExpression(e,t):await this.updateTimeExpression(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,s){let n=this.getInitDefExprFromLayerExpression(t);(s||s===0)&&(i||i===0)&&(s===e?.min&&i===e?.max?(e.definitionExpression=void 0,e.active=!1):(e.definitionExpression=n?`(${n}) AND ${e?.field} BETWEEN ${s} AND ${i}`:`${e?.field} BETWEEN ${s} AND ${i}`,e.active=!0)),e.range={min:s,max:i}}handleCheckboxChange(e,t,i){let s=i.target;t.active=s.checked,this.generateOutput(e)}handleSliderChange(e,t,i){let{maxValue:s,minValue:n}=i.target;this.updateRangeExpressions(e,t,s,n),this.generateOutput(t)}handleComboSelect(e,t,i){let s=i.target.selectedItems,{field:n,type:a}=e;if(e.selectedFields=s.map(({value:r})=>r),s.length){let r=s.map(({value:o})=>typeof o=="number"?o:`'${v(o)}'`);e.definitionExpression=a==="date"?r.map(o=>this.buildDateExpression(o,n)).join(" OR "):a==="time-only"?`${n} IN (${r.map(o=>`TIME ${o}`).join(",")})`:`${n} IN (${r.join(",")})`,e.active=!0}else e.definitionExpression=void 0,e.active=!1;this.generateOutput(t)}handleDatePickerRangeChange(e,t,i){let s=i.target,[n,a]=s.valueAsDate,r=n?y(Math.floor(n.getTime()),!0):void 0,o=a?y(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))}handleTimePickerRangeChange(e,t,i,s){let n=s.target,a=n.value;e.range==null&&(e.range={min:void 0,max:void 0}),i?e.max&&a>e.max?(e.range.min=e.max,n.value=e.range.min):e.min&&a<e.min?(e.range.min=e.min,n.value=e.range.min):e.range.min=a:e.max&&a>e.max?(e.range.max=e.max,n.value=e.range.max):e.min&&a<e.min?(e.range.max=e.min,n.value=e.range.max):e.range.max=a,(e.range.min||e.range.max)&&(e.definitionExpression=this.constructTimeDefinitionExpression(e.field,e.range.min,e.range.max),e.active=!0,this.generateOutput(t))}constructDefinitionExpression(e,t,i){return t?i?`${e} BETWEEN '${t}' AND '${i}'`:`${e} > '${t}'`:`${e} < '${i}'`}constructTimeDefinitionExpression(e,t,i){return t?i?`${e} BETWEEN TIME '${t}' AND TIME '${i}'`:`${e} > TIME '${t}'`:`${e} < TIME '${i}'`}handleURLParams(){if(!("URLSearchParams"in window))return;let e=new URLSearchParams(document.location.search).get("filter");if(!e){this.filterCount=0;return}let t=e.split(";").map(i=>JSON.parse(i));this.filterCount=this.applyFilters(t)}applyFilters(e){let t=0;return e.forEach(i=>{let s=this.filterLayerExpressions?.find(n=>n.id===i.layerId);s&&s.expressions?.forEach(n=>{n.id?.toString()===i.expressionId?.toString()&&(this.activateExpression(n,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:s,selectedFields:n,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:n}:a==="number"||a==="range"||a==="date"||a==="time-only"?{type:"range",layerId:e.id,expressionId:i.toString(),range:s}:{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(s=>s.active).map(s=>JSON.stringify(this.createURLParamExpression(i,s)))||[])||[];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:s}=e,n=this.view.map?.findLayerById(s)??this.view.map?.findTableById(s);if(n!=null)if(n.type==="point-cloud")this.updateFilterLayerPCLFilter(n,i);else if(n.type==="map-image"){let a=n.findSublayerById(e?.sublayerId);a!=null&&this.updateFilterLayerDefExpression(a,t,e)}else this.updateFilterLayerDefExpression(n,t,e)}updateFilterLayerDefExpression(e,t,i){let{operator:s}=i,n=this.getInitDefExprFromLayer(e),a=t?.length>0&&n!=null&&n!==""?`(${t.join(s)}) AND (${n})`:t.length>0?t.join(s):n;e.definitionExpression=a}updateFilterLayerPCLFilter(e,t){e.filters=t}async handleWhenView(){this.view!=null&&(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.value?.querySelector(t),s=(n,a)=>{i&&(i.loading=n,i.disabled=a)};if(s(!0,!0),await this.getZoomToExtent(e),this.zoomToExtent){let n=this.zoomToExtent.type==="point"&&this.zoomToExtent.count===1?{target:this.zoomToExtent.extent,zoom:10}:this.zoomToExtent.extent;await this.view.goTo(n)}s(!1,!1)}async getZoomToExtent(e){let t=this.view.allLayerViews.find(({layer:s})=>s.id===e.id).layer,i=t.type==="map-image"?t.findSublayerById(e.sublayerId):t;if(i&&i.type!=="point-cloud"&&x.includes(i?.type)){let s=await this.getQueryLayer(i),n=s.createQuery();n.where=s.definitionExpression??"1=1";let a=await s.queryExtent(n);this.zoomToExtent={...a,type:s.geometryType}}}generateOutput(e){if(this.view==null)return;let t=[],i=[];if(e){for(let s of e.expressions){let{active:n,definitionExpression:a,pointCloudFilters:r}=s;n&&a&&t.push(`(${a})`),n&&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 s;if(!String(e).includes("e"))s=Math[i](e*Math.pow(10,t))/Math.pow(10,t);else{let[n,a]=String(e).split("e").map(o=>Number(o)),r=a+t;s=Math[i](+`${n}e${r}`)*Math.pow(10,-t)}return+s.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 s=e?.popupTemplate.fieldInfos?.find(({fieldName:n})=>n===i);s?.format&&(t.format=s.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 t=this.view.map?.allLayers.concat(this.view.map?.allTables.toArray()??[])?.find(({id:i})=>i===e.id);return t.type==="map-image"?t?.findSublayerById(e.sublayerId):t}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)}if(e.type==="time-only"){let i=this.intl.convertDateFormatToIntlOptions("long-time");return this.intl.formatTimeOnly(t,i)}return t}buildDateExpression(e,t){if(e){let i=new Date(e),s=new Date(e),n=new Date(s.setDate(i.getDate()+1)),a=`${i.getFullYear()}-${i.getMonth()+1}-${i.getDate()}`,r=`${i.getHours()}:${i.getMinutes()}:${i.getSeconds()}`,o=`${n.getHours()}:${n.getMinutes()}:${n.getSeconds()}`,c=`${n.getFullYear()}-${n.getMonth()+1}-${n.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.toArray()??[]).forEach(t=>{if(!x.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((s,n)=>(s[n.id]=n.definitionExpression??"",s),{});else{if(!this.initDefExpressions)return;this.initDefExpressions[i.id]=i.definitionExpression??""}})}sortCodedValues(e){typeof e.fields?.[0]=="number"?e.fields=[...new Set(e.fields)].sort((t,i)=>{let s=e.codedValues?.[t],n=e.codedValues?.[i];return s-n}):e.fields=[...new Set(e.fields)].sort((t,i)=>{let s=e.codedValues?.[t],n=e.codedValues?.[i];return s.localeCompare(n)})}render(){let e=this.loading?this.renderLoading():this.initFilterConfig(),t=this.renderFooter();return l`<calcite-panel class=${p(this.baseClass)} ${b(this.panelEl)}><slot slot=header-content name=filter-header-content></slot><slot slot=header-actions-end name=filter-header-actions-end></slot>${f("filter-container",l`<div class=${p(d.filterContainer)}>${e}${t}</div>`)}</calcite-panel>`}renderLoading(){return l`<calcite-loader label="Loading filters..."></calcite-loader>`}renderFilter(e){let{id:t}=e;return e.expressions.map((i,s)=>i.type==="checkbox"||i.type==null?f(`${t}-${s}`,l`<div class=${p(d.filterItemContainer)}><div class=${p(d.filterItemTitle)}><p>${i.name}</p></div><div class=${p(d.checkboxContainer)}><calcite-checkbox id=${i.id.toString()??m} scale=l .checked=${i?.active} @calciteCheckboxChange=${this.handleCheckboxChange.bind(this,e,i)}></calcite-checkbox></div></div>`):this.initInput(e,i))}renderLayerBlock(){return this.filterLayerExpressions?.map(e=>this.renderFilterBlocks(e))}renderFilterBlocks(e){let t=this.renderFilter(e),{operator:i}=e,s=i?.trim()==="OR"?"orOperator":"andOperator",n=this.renderZoomTo(e);return f(e.id,l`<calcite-block .heading=${e.title} .description=${this._messages[s]} .expanded=${this.openFilters?!0:void 0} collapsible>${n}${t}</calcite-block>`)}renderCombobox(e,t){return f("combo-select",l`<label class=${p(d.filterUIItemContainer)}><span>${t.name}</span><calcite-combobox id=${t.id.toString()??m} @calciteComboboxChange=${this.handleComboSelect.bind(this,t,e)} .label=${t.name} .placeholder=${t.placeholder} selection-mode=multiple max-items=6 scale=s .overlayPositioning=${this.comboboxOverlayPositioning}>${t.fields?.map((i,s)=>this.renderComboboxItem(t,i,s))}</calcite-combobox></label>`)}renderComboboxItem(e,t,i){let s=this.createLabel(e,t),n=e?.selectedFields?.includes(t)??!1;return f(`${s}-${i}`,l`<calcite-combobox-item .value=${t} .heading=${`${s}`} .selected=${n}></calcite-combobox-item>`)}renderNumberSlider(e,t){let i=t?.min,s=t?.max,n=t?.step?t.step:1,a=i!=null&&s!=null,r=t?.field??"",o=t?.range?.min!=null?t.range.min:i,c=t?.range?.max!=null?t.range.max:s,u=[o,c];return a?f(t?.id.toString(),l`<label class=${p(d.filterUIItemContainer)}><span>${t?.name}</span><div class=${p(d.numberInputContainer)}><calcite-slider id=${t?.id.toString()??m} @calciteSliderChange=${this.handleSliderChange.bind(this,t,e)} .min=${i} .max=${s} .minValue=${i} .maxValue=${s} .minLabel=${this._messages.minSlider?.replace("{field}",r)} .maxLabel=${this._messages.maxSlider?.replace("{field}",r)} .step=${n} label-handles snap .value=${u} .groupSeparator=${t?.format?.digitSeparator} precise></calcite-slider></div></label>`):void 0}renderDatePicker(e,t){let{min:i,max:s}=t,n=[t?.range?.min,t?.range?.max];return i!=null&&s!=null?l`<label class=${p(d.filterUIItemContainer)}><span>${t?.name}</span><div class=${p(d.dateInputContainer)}><calcite-input-date-picker id=${t?.id.toString()??m} @calciteInputDatePickerChange=${this.handleDatePickerRangeChange.bind(this,t,e)} .min=${i} .max=${s} calendars=1 overlay-positioning=fixed lang=${this.intl?.getLocale()??"en"??m} layout=vertical .value=${n} range></calcite-input-date-picker><calcite-action @click=${this.handleResetDatePicker.bind(this,t,e)} icon=reset .text=${this._messages.resetDatePicker} title=${this._messages.resetDatePicker??m} scale=s></calcite-action></div></label>`:void 0}renderTimePicker(e,t){let{min:i,max:s,range:n}=t,a=i!=null&&s!=null,r=n?.min!=null?n.min:i,o=n?.max!=null?n.max:s;return a?l`<label class=${p(d.filterUIItemContainer)}><span>${t?.name}</span><div class=${p(d.timeInputContainer)}><calcite-input-time-picker .id=${`${t?.id.toString()}-min`} .value=${r} overlay-positioning=fixed lang=${this.intl?.getLocale()??"en"??m} @calciteInputTimePickerChange=${this.handleTimePickerRangeChange.bind(this,t,e,!0)}></calcite-input-time-picker><calcite-input-time-picker .id=${`${t?.id.toString()}-max`} .value=${o} overlay-positioning=fixed lang=${this.intl?.getLocale()??"en"??m} @calciteInputTimePickerChange=${this.handleTimePickerRangeChange.bind(this,t,e,!1)}></calcite-input-time-picker><calcite-action @click=${this.handleResetTimePicker.bind(this,t,e)} icon=reset .text=${this._messages.resetTimePicker} title=${this._messages.resetTimePicker??m} scale=s></calcite-action></div></label>`:void 0}renderFooter(){let e=this.closeBtnText??this._messages.close,t=this.closeBtn&&this.resetBtn?"half":"full";return l`<div class=${p(d.footer)} slot=footer>${this.resetBtn?l`<calcite-button appearance=outline .width=${t} @click=${this.handleResetFilter} ${b(this.resetBtnEl)}>${this._messages.resetFilter}</calcite-button>`:void 0}${this.closeBtn?l`<calcite-button appearance=solid .width=${t} kind=brand @click=${this.closeBtnOnClick}>${e}</calcite-button>`:void 0}</div>`}renderZoomTo(e){let t=e?.sublayerId?`zoom-to-${e.id}-${e.sublayerId}`:`zoom-to-${e.id}`;return this.zoomBtn?l`<calcite-action id=${t??m} slot=actions-end appearance=transparent .text=${this._messages.zoomTo} title=${this._messages.zoomTo??m} scale=s icon=magnifying-glass-plus @click=${this.handleZoomTo.bind(this,e)}></calcite-action>`:void 0}};k("instant-apps-filter-list",w);export{w as InstantAppsFilterList};
|
|
3
|
+
v1.1.0-next.20251007.2 */
|
|
4
|
+
import{a as f}from"./ZD6TXVNV.js";import{a as D}from"./T4BF45VL.js";import{a as L}from"./NFN5NMUD.js";import{B as S,C as I}from"./Z4HDSEO7.js";import{b as k}from"./IRR3HAZY.js";import"./6HNWXGC5.js";import"./SEYYZQDP.js";import{C as $,D as b,E as F,G as p,h as C,i as l,l as m,o as E}from"./G7YFTABN.js";import"./VDIJVIMA.js";var _="instant-apps-filter-list calcite-mode-light",P="instant-apps-filter-list calcite-mode-dark",x=["feature","geojson","wfs","csv","scene","subtype-group","point-cloud","map-image","sublayer"];function v(h){return h.replaceAll("'","''")}function y(h,e=!1){if(h){let t=new Date(h),i=`${t.getFullYear()}-${t.getMonth()+1}-${t.getDate()}`;if(e){let s=`${t.getHours()}:${t.getMinutes()}:${t.getSeconds()}`;return`${i} ${s}`}else return i}}function T(h){if(h!=null){h.value=["",""];let e=h.shadowRoot?.querySelectorAll("calcite-input");if(e!=null)for(let t of e)t.value=""}}var O=C`: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:400}.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:65px;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__time-picker-input-container{display:grid;grid-template-columns:auto 32px;width:100%}.instant-apps-filter-list__time-picker-input-container calcite-input-time-picker:first-child{grid-column:1;grid-row:1}.instant-apps-filter-list__time-picker-input-container calcite-input-time-picker:last-child{grid-column:1;grid-row:2}.instant-apps-filter-list__time-picker-input-container calcite-action{grid-column:2;grid-row:1/span 2;height:64px;width:33px;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:400;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 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: .6s }}.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}`,d={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",timeInputContainer:"instant-apps-filter-list__time-picker-input-container",operatorDesc:"instant-apps-filter-list__operator-description"},w=class extends F{constructor(){super(...arguments),this._messages=L({name:"instant-apps-filter-list",blocking:!0}),this.resetBtnEl=$(),this.panelEl=$(),this.isLayerExpUpdated=!1,this.baseClass=_,this.autoUpdateUrl=!1,this.closeBtn=!1,this.comboboxOverlayPositioning="absolute",this.openFilters=!1,this.extentSelector=!1,this.filterCount=0,this.zoomBtn=!0,this.resetBtn=!0,this.resetFiltersOnDisconnect=!0,this.filterListReset=E(),this.filterUpdate=E()}static{this.properties={loading:16,filterLayerExpressions:16,baseClass:16,initDefExpressions:16,initMapImageExpressions:16,initPointCloudFilters:16,layerExpressions:0,autoUpdateUrl:5,closeBtn:5,closeBtnOnClick:0,comboboxOverlayPositioning:1,closeBtnText:1,openFilters:5,extentSelector:5,extentSelectorConfig:0,urlParams:0,filterCount:9,view:0,zoomBtn:5,resetBtn:5,resetFiltersOnDisconnect:5}}static{this.styles=O}async forceReset(){return this.resetExpressions(),await Promise.resolve(!0)}async getCurrentLayerExpressions(){let e=structuredClone(this.filterLayerExpressions);return await Promise.resolve(e)}async getFilterInitState(){return await Promise.resolve({initDefExpressions:this.initDefExpressions,initMapImageExpressions:this.initMapImageExpressions,initPointCloudFilters:this.initPointCloudFilters})}async handleUpdatingT9nData(e){return e==null?await Promise.resolve(!0):(this.filterLayerExpressions?.forEach(t=>{let i=e?.find(s=>s.id===t.id);i!=null&&(t.title=i.title,t.expressions?.forEach(s=>{let n=i.expressions?.find(a=>a.id===s.id);n!=null&&(s.name=n.name)}))}),await Promise.resolve(!0))}async updateInitDefExpressions(e){return this.initDefExpressions=e.initDefExpressions,this.initMapImageExpressions=e.initMapImageExpressions,this.initPointCloudFilters=e.initPointCloudFilters,await Promise.resolve(!0)}connectedCallback(){super.connectedCallback(),!(this.layerExpressions==null&&this.view==null)&&(this.isLayerExpUpdated=!0,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.handleLayerExpressionsUpdate())}async load(){this.baseClass=D(this.el)==="dark"?P:_,await this.initializeModules(),!this.isLayerExpUpdated&&(this.isLayerExpUpdated=!0,this.filterLayerExpressions=this.layerExpressions!=null?structuredClone(this.layerExpressions):[],this.view!=null&&this.handleLayerExpressionsUpdate())}willUpdate(e){e.has("view")&&this.handleWhenView(),e.has("layerExpressions")&&(this.resetAllFilters(),this.filterLayerExpressions=structuredClone(this.layerExpressions),this.handleLayerExpressionsUpdate())}updated(){this.resetBtnEl.value!=null&&(this.resetBtnEl.value.disabled=!(this.filterLayerExpressions&&this.filterLayerExpressions.length>0))}disconnectedCallback(){super.disconnectedCallback(),this.resetFiltersOnDisconnect&&(this.isLayerExpUpdated=!1,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.resetAllFilters())}async initializeModules(){let[e,t]=await Promise.all([I(),S()]);this.geometryJsonUtils=t,this.intl=e}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=${p(d.operatorDesc)} .heading=${this._messages[t]} expanded>${i}${this.renderFilter(this.filterLayerExpressions[0])}</calcite-block>`}else if(this.filterLayerExpressions.length>1)return this.renderLayerBlock()}}handleResetDatePicker(e,t){let i=this.panelEl.value?.querySelector(`[id='${e.id}']`);i&&(T(i),e.active=!1,e.definitionExpression=void 0,e.range=void 0,this.generateOutput(t))}handleResetTimePicker(e,t){this.resetTimePicker(e),e.active=!1,e.definitionExpression=void 0,e.range=void 0,this.generateOutput(t)}resetTimePicker(e){let t=this.panelEl.value?.querySelector(`[id='${e.id}-min']`),i=this.panelEl.value?.querySelector(`[id='${e.id}-max']`);!t||!i||(t.value=e.min,i.value=e.max)}initInput(e,t){let{type:i,numDisplayOption:s,displayOption:n}=t;if(i==="string"||i==="coded-value"||(i==="number"||i==="range"||i==="date"||i==="time-only")&&(s==="drop-down"||n==="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);if(i==="time-only")return this.renderTimePicker(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:s,displayOption:n}=t,a="";i==="string"||i==="coded-value"||(i==="number"||i==="range"||i==="date"||i==="time-only")&&(s==="drop-down"||n==="drop-down")?a="combobox":i==="date"?a="datePicker":i==="number"||i==="range"?a="numberRange":i==="time-only"&&(a="timePicker"),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 s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&Array.from(s.children).forEach(n=>{n.selected=!1});break}case"datePicker":{t.range=void 0;let s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&T(s);break}case"numberRange":{t.range=void 0;let s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&(s.minValue=t.min,s.maxValue=t.max);break}case"timePicker":t.range=void 0,this.resetTimePicker(t)}}resetCheckbox(e){let{id:t}=e,i=this.panelEl.value?.querySelector(`[id='${t}']`);i&&(i.checked=!1)}resetAllFilters(){this.view?.map?.allLayers?.concat(this.view?.map?.allTables.toArray()??[])?.forEach(e=>{if(!x.includes(e.type))return;let t=e;if(t.type==="point-cloud"){if(!this.initPointCloudFilters)return;t.filters=this.initPointCloudFilters[t.id]}else if(t.type==="map-image")t.allSublayers.forEach(i=>{i.definitionExpression=this.initMapImageExpressions?.[t.id]?.[i.id]??""});else{if(this.initDefExpressions==null)return;t.definitionExpression=this.initDefExpressions[t.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:i})=>i===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:`'${v(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:s}=t;if(s!=null)if(this.setExpressionFormat(i,t,s),t?.numDisplayOption==="drop-down"||t?.displayOption==="drop-down")await this.getFeatureAttributes(i,t);else{let n=(await this.calculateMinMaxStatistics(i,s))?.[0]?.attributes;if(t.format?.places!=null?(t.min=this.roundMinNumberDown(n[`min${s}`],t.format.places),t.max=this.roundMaxNumberUp(n[`max${s}`],t.format.places)):(t.min=n[`min${s}`],t.max=n[`max${s}`]),t?.range&&Object.keys(t.range).length){let{min:a,max:r}=t.range;return t.definitionExpression=`${t.field} BETWEEN ${a} AND ${r}`,!0}}}return!1}async updateDateExpression(e,t){let{field:i,range:s}=t,n=this.findFilterLayer(e),a=(await this.calculateMinMaxStatistics(n,i))?.[0]?.attributes;if(t.min=y(a[`min${i}`]),t.max=y(a[`max${i}`]),s!=null&&(s?.max!=null||s?.min!=null)){let{min:r,max:o}=s;if(r=r?.replace("+"," "),o=o?.replace("+"," "),r||o){let c=o&&!r?"<":!o&&r?">":null;return c?t.definitionExpression=`${i} ${c} '${r??o}'`:t.definitionExpression=`${i} BETWEEN '${r}' AND '${o}'`,!0}}return!1}async updateTimeExpression(e,t){let{field:i,range:s}=t,n=this.findFilterLayer(e),a=(await this.calculateMinMaxStatistics(n,i))?.[0]?.attributes;if(t.min=a[`min${i}`],t.max=a[`max${i}`],s!=null&&(s?.max!=null||s?.min!=null)){let{min:r,max:o}=s;if(r||o){let c=o&&!r?"<":!o&&r?">":null;return c?t.definitionExpression=`${i} ${c} TIME '${r??o}'`:t.definitionExpression=`${i} BETWEEN TIME '${r}' AND TIME '${o}'`,!0}}return!1}async updateCodedValueExpression(e,t,i){if(!i?.domain||i?.domain?.type!=="coded-value")return!1;let s=this.findFilterLayer(e);await this.getFeatureAttributes(s,t);let n=i.domain.codedValues.reduce((a,{code:r,name:o})=>(a[r]=o,a),{});if(t.codedValues=n,this.sortCodedValues(t),t.selectedFields?.length){let a=t.selectedFields.map(r=>typeof r=="number"?r:`'${v(r)}'`).join(",");return t.definitionExpression=`${t.field} IN (${a})`,!0}return!1}updateRangeExpression(e,t){if(!t?.domain||t?.domain?.type!=="range")return!1;let{field:i,range:s}=e;return e.min=t.domain.minValue,e.max=t.domain.maxValue,s&&Object.keys(s).length?(e.definitionExpression=`${i} BETWEEN ${s.min} AND ${s.max}`,!0):!1}async getFeatureAttributes(e,t){if(!this.isLayerSupported(e)){t.fields=[];return}let i=await this.getQueryLayer(e),{maxRecordCount:s,supportsMaxRecordCountFactor:n}=this.extractQueryCapabilities(e),a=await i.queryFeatureCount(),r=this.createQuery(i,t);await this.queryDistinctFeatures(i,r,t),this.shouldPaginate(s,a,n)&&this.handlePagination(i,r,s,n,a,t)}isLayerSupported(e){return e&&x.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 s=t?.field;if(s){let n=this.getInitDefExprFromLayer(e);i.where=n||"1=1",i.outFields=[s],i.orderByFields=[`${s} 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 s=await this.queryForFeatures(e,t,t.outFields[0]);s?.length&&(i.fields=[...new Set(s)],i.type==="string"?i.fields=i.fields.sort((n,a)=>n.localeCompare(a)):i.type==="number"&&(i.fields=i.fields.sort((n,a)=>n-a)))}getQueryCount(e,t){return t?e*5:e}shouldPaginate(e,t,i){let s=this.getQueryCount(e,i);return e!=null&&t>s}async handlePagination(e,t,i,s,n,a){let r=this.getQueryCount(i,s),o=[];for(let c=r;c<n;c+=r){let u=t.clone();u.num=i,u.start=c,o.push(this.queryForFeatures(e,u,t?.outFields?.[0]??""))}Promise.all(o).then(c=>{c.forEach(u=>{u?.length&&a.fields&&a.fields.push(...u)}),a.type==="string"?a.fields=[...new Set(a.fields)].sort((u,g)=>u.localeCompare(g)):a.type==="number"?a.fields=[...new Set(a.fields)].sort((u,g)=>u-g):a.type==="coded-value"&&a.codedValues?this.sortCodedValues(a):a.fields=[...new Set(a.fields)].sort()})}async queryForFeatures(e,t,i){return(await e.queryFeatures(t))?.features.filter(s=>{let n=s.attributes?.[i];return n!=null&&n!==""})?.map(s=>s.attributes?.[i])}async calculateMinMaxStatistics(e,t){if(!e||!x.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 n="extent"in s?s:this.geometryJsonUtils.fromJSON(s);if(n?.type==="extent"||n?.type==="polygon")return n}}}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 s=i.fields?.find(({name:a})=>a===t.field),n=s?.domain?.type;t.type=n==="coded-value"||n==="range"?n:t.type,await this.updateExpression(e,t,s)}))}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"time-only":return await this.updateTimeExpressionBasedOnDisplayOption(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 updateTimeExpressionBasedOnDisplayOption(e,t){return t.displayOption==="drop-down"?await this.updateStringExpression(e,t):await this.updateTimeExpression(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,s){let n=this.getInitDefExprFromLayerExpression(t);(s||s===0)&&(i||i===0)&&(s===e?.min&&i===e?.max?(e.definitionExpression=void 0,e.active=!1):(e.definitionExpression=n?`(${n}) AND ${e?.field} BETWEEN ${s} AND ${i}`:`${e?.field} BETWEEN ${s} AND ${i}`,e.active=!0)),e.range={min:s,max:i}}handleCheckboxChange(e,t,i){let s=i.target;t.active=s.checked,this.generateOutput(e)}handleSliderChange(e,t,i){let{maxValue:s,minValue:n}=i.target;this.updateRangeExpressions(e,t,s,n),this.generateOutput(t)}handleComboSelect(e,t,i){let s=i.target.selectedItems,{field:n,type:a}=e;if(e.selectedFields=s.map(({value:r})=>r),s.length){let r=s.map(({value:o})=>typeof o=="number"?o:`'${v(o)}'`);e.definitionExpression=a==="date"?r.map(o=>this.buildDateExpression(o,n)).join(" OR "):a==="time-only"?`${n} IN (${r.map(o=>`TIME ${o}`).join(",")})`:`${n} IN (${r.join(",")})`,e.active=!0}else e.definitionExpression=void 0,e.active=!1;this.generateOutput(t)}handleDatePickerRangeChange(e,t,i){let s=i.target,[n,a]=s.valueAsDate,r=n?y(Math.floor(n.getTime()),!0):void 0,o=a?y(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))}handleTimePickerRangeChange(e,t,i,s){let n=s.target,a=n.value;e.range==null&&(e.range={min:void 0,max:void 0}),i?e.max&&a>e.max?(e.range.min=e.max,n.value=e.range.min):e.min&&a<e.min?(e.range.min=e.min,n.value=e.range.min):e.range.min=a:e.max&&a>e.max?(e.range.max=e.max,n.value=e.range.max):e.min&&a<e.min?(e.range.max=e.min,n.value=e.range.max):e.range.max=a,(e.range.min||e.range.max)&&(e.definitionExpression=this.constructTimeDefinitionExpression(e.field,e.range.min,e.range.max),e.active=!0,this.generateOutput(t))}constructDefinitionExpression(e,t,i){return t?i?`${e} BETWEEN '${t}' AND '${i}'`:`${e} > '${t}'`:`${e} < '${i}'`}constructTimeDefinitionExpression(e,t,i){return t?i?`${e} BETWEEN TIME '${t}' AND TIME '${i}'`:`${e} > TIME '${t}'`:`${e} < TIME '${i}'`}handleURLParams(){if(!("URLSearchParams"in window))return;let e=new URLSearchParams(document.location.search).get("filter");if(!e){this.filterCount=0;return}let t=e.split(";").map(i=>JSON.parse(i));this.filterCount=this.applyFilters(t)}applyFilters(e){let t=0;return e.forEach(i=>{let s=this.filterLayerExpressions?.find(n=>n.id===i.layerId);s&&s.expressions?.forEach(n=>{n.id?.toString()===i.expressionId?.toString()&&(this.activateExpression(n,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:s,selectedFields:n,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:n}:a==="number"||a==="range"||a==="date"||a==="time-only"?{type:"range",layerId:e.id,expressionId:i.toString(),range:s}:{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(s=>s.active).map(s=>JSON.stringify(this.createURLParamExpression(i,s)))||[])||[];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:s}=e,n=this.view.map?.findLayerById(s)??this.view.map?.findTableById(s);if(n!=null)if(n.type==="point-cloud")this.updateFilterLayerPCLFilter(n,i);else if(n.type==="map-image"){let a=n.findSublayerById(e?.sublayerId);a!=null&&this.updateFilterLayerDefExpression(a,t,e)}else this.updateFilterLayerDefExpression(n,t,e)}updateFilterLayerDefExpression(e,t,i){let{operator:s}=i,n=this.getInitDefExprFromLayer(e),a=t?.length>0&&n!=null&&n!==""?`(${t.join(s)}) AND (${n})`:t.length>0?t.join(s):n;e.definitionExpression=a}updateFilterLayerPCLFilter(e,t){e.filters=t}async handleWhenView(){this.view!=null&&(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.value?.querySelector(t),s=(n,a)=>{i&&(i.loading=n,i.disabled=a)};if(s(!0,!0),await this.getZoomToExtent(e),this.zoomToExtent){let n=this.zoomToExtent.type==="point"&&this.zoomToExtent.count===1?{target:this.zoomToExtent.extent,zoom:10}:this.zoomToExtent.extent;await this.view.goTo(n)}s(!1,!1)}async getZoomToExtent(e){let t=this.view.allLayerViews.find(({layer:s})=>s.id===e.id).layer,i=t.type==="map-image"?t.findSublayerById(e.sublayerId):t;if(i&&i.type!=="point-cloud"&&x.includes(i?.type)){let s=await this.getQueryLayer(i),n=s.createQuery();n.where=s.definitionExpression??"1=1";let a=await s.queryExtent(n);this.zoomToExtent={...a,type:s.geometryType}}}generateOutput(e){if(this.view==null)return;let t=[],i=[];if(e){for(let s of e.expressions){let{active:n,definitionExpression:a,pointCloudFilters:r}=s;n&&a&&t.push(`(${a})`),n&&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 s;if(!String(e).includes("e"))s=Math[i](e*Math.pow(10,t))/Math.pow(10,t);else{let[n,a]=String(e).split("e").map(o=>Number(o)),r=a+t;s=Math[i](+`${n}e${r}`)*Math.pow(10,-t)}return+s.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 s=e?.popupTemplate.fieldInfos?.find(({fieldName:n})=>n===i);s?.format&&(t.format=s.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 t=this.view.map?.allLayers.concat(this.view.map?.allTables.toArray()??[])?.find(({id:i})=>i===e.id);return t.type==="map-image"?t?.findSublayerById(e.sublayerId):t}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)}if(e.type==="time-only"){let i=this.intl.convertDateFormatToIntlOptions("long-time");return this.intl.formatTimeOnly(t,i)}return t}buildDateExpression(e,t){if(e){let i=new Date(e),s=new Date(e),n=new Date(s.setDate(i.getDate()+1)),a=`${i.getFullYear()}-${i.getMonth()+1}-${i.getDate()}`,r=`${i.getHours()}:${i.getMinutes()}:${i.getSeconds()}`,o=`${n.getHours()}:${n.getMinutes()}:${n.getSeconds()}`,c=`${n.getFullYear()}-${n.getMonth()+1}-${n.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.toArray()??[]).forEach(t=>{if(!x.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((s,n)=>(s[n.id]=n.definitionExpression??"",s),{});else{if(!this.initDefExpressions)return;this.initDefExpressions[i.id]=i.definitionExpression??""}})}sortCodedValues(e){typeof e.fields?.[0]=="number"?e.fields=[...new Set(e.fields)].sort((t,i)=>{let s=e.codedValues?.[t],n=e.codedValues?.[i];return s-n}):e.fields=[...new Set(e.fields)].sort((t,i)=>{let s=e.codedValues?.[t],n=e.codedValues?.[i];return s.localeCompare(n)})}render(){let e=this.loading?this.renderLoading():this.initFilterConfig(),t=this.renderFooter();return l`<calcite-panel class=${p(this.baseClass)} ${b(this.panelEl)}><slot slot=header-content name=filter-header-content></slot><slot slot=header-actions-end name=filter-header-actions-end></slot>${f("filter-container",l`<div class=${p(d.filterContainer)}>${e}${t}</div>`)}</calcite-panel>`}renderLoading(){return l`<calcite-loader label="Loading filters..."></calcite-loader>`}renderFilter(e){let{id:t}=e;return e.expressions.map((i,s)=>i.type==="checkbox"||i.type==null?f(`${t}-${s}`,l`<div class=${p(d.filterItemContainer)}><div class=${p(d.filterItemTitle)}><p>${i.name}</p></div><div class=${p(d.checkboxContainer)}><calcite-checkbox id=${i.id.toString()??m} scale=l .checked=${i?.active} @calciteCheckboxChange=${this.handleCheckboxChange.bind(this,e,i)}></calcite-checkbox></div></div>`):this.initInput(e,i))}renderLayerBlock(){return this.filterLayerExpressions?.map(e=>this.renderFilterBlocks(e))}renderFilterBlocks(e){let t=this.renderFilter(e),{operator:i}=e,s=i?.trim()==="OR"?"orOperator":"andOperator",n=this.renderZoomTo(e);return f(e.id,l`<calcite-block .heading=${e.title} .description=${this._messages[s]} .expanded=${this.openFilters?!0:void 0} collapsible>${n}${t}</calcite-block>`)}renderCombobox(e,t){return f("combo-select",l`<label class=${p(d.filterUIItemContainer)}><span>${t.name}</span><calcite-combobox id=${t.id.toString()??m} @calciteComboboxChange=${this.handleComboSelect.bind(this,t,e)} .label=${t.name} .placeholder=${t.placeholder} selection-mode=multiple max-items=6 scale=s .overlayPositioning=${this.comboboxOverlayPositioning}>${t.fields?.map((i,s)=>this.renderComboboxItem(t,i,s))}</calcite-combobox></label>`)}renderComboboxItem(e,t,i){let s=this.createLabel(e,t),n=e?.selectedFields?.includes(t)??!1;return f(`${s}-${i}`,l`<calcite-combobox-item .value=${t} .heading=${`${s}`} .selected=${n}></calcite-combobox-item>`)}renderNumberSlider(e,t){let i=t?.min,s=t?.max,n=t?.step?t.step:1,a=i!=null&&s!=null,r=t?.field??"",o=t?.range?.min!=null?t.range.min:i,c=t?.range?.max!=null?t.range.max:s,u=[o,c];return a?f(t?.id.toString(),l`<label class=${p(d.filterUIItemContainer)}><span>${t?.name}</span><div class=${p(d.numberInputContainer)}><calcite-slider id=${t?.id.toString()??m} @calciteSliderChange=${this.handleSliderChange.bind(this,t,e)} .min=${i} .max=${s} .minValue=${i} .maxValue=${s} .minLabel=${this._messages.minSlider?.replace("{field}",r)} .maxLabel=${this._messages.maxSlider?.replace("{field}",r)} .step=${n} label-handles snap .value=${u} .groupSeparator=${t?.format?.digitSeparator} precise></calcite-slider></div></label>`):void 0}renderDatePicker(e,t){let{min:i,max:s}=t,n=[t?.range?.min,t?.range?.max];return i!=null&&s!=null?l`<label class=${p(d.filterUIItemContainer)}><span>${t?.name}</span><div class=${p(d.dateInputContainer)}><calcite-input-date-picker id=${t?.id.toString()??m} @calciteInputDatePickerChange=${this.handleDatePickerRangeChange.bind(this,t,e)} .min=${i} .max=${s} calendars=1 overlay-positioning=fixed lang=${this.intl?.getLocale()??"en"??m} layout=vertical .value=${n} range></calcite-input-date-picker><calcite-action @click=${this.handleResetDatePicker.bind(this,t,e)} icon=reset .text=${this._messages.resetDatePicker} title=${this._messages.resetDatePicker??m} scale=s></calcite-action></div></label>`:void 0}renderTimePicker(e,t){let{min:i,max:s,range:n}=t,a=i!=null&&s!=null,r=n?.min!=null?n.min:i,o=n?.max!=null?n.max:s;return a?l`<label class=${p(d.filterUIItemContainer)}><span>${t?.name}</span><div class=${p(d.timeInputContainer)}><calcite-input-time-picker .id=${`${t?.id.toString()}-min`} .value=${r} overlay-positioning=fixed lang=${this.intl?.getLocale()??"en"??m} @calciteInputTimePickerChange=${this.handleTimePickerRangeChange.bind(this,t,e,!0)}></calcite-input-time-picker><calcite-input-time-picker .id=${`${t?.id.toString()}-max`} .value=${o} overlay-positioning=fixed lang=${this.intl?.getLocale()??"en"??m} @calciteInputTimePickerChange=${this.handleTimePickerRangeChange.bind(this,t,e,!1)}></calcite-input-time-picker><calcite-action @click=${this.handleResetTimePicker.bind(this,t,e)} icon=reset .text=${this._messages.resetTimePicker} title=${this._messages.resetTimePicker??m} scale=s></calcite-action></div></label>`:void 0}renderFooter(){let e=this.closeBtnText??this._messages.close,t=this.closeBtn&&this.resetBtn?"half":"full";return l`<div class=${p(d.footer)} slot=footer>${this.resetBtn?l`<calcite-button appearance=outline .width=${t} @click=${this.handleResetFilter} ${b(this.resetBtnEl)}>${this._messages.resetFilter}</calcite-button>`:void 0}${this.closeBtn?l`<calcite-button appearance=solid .width=${t} kind=brand @click=${this.closeBtnOnClick}>${e}</calcite-button>`:void 0}</div>`}renderZoomTo(e){let t=e?.sublayerId?`zoom-to-${e.id}-${e.sublayerId}`:`zoom-to-${e.id}`;return this.zoomBtn?l`<calcite-action id=${t??m} slot=actions-end appearance=transparent .text=${this._messages.zoomTo} title=${this._messages.zoomTo??m} scale=s icon=magnifying-glass-plus @click=${this.handleZoomTo.bind(this,e)}></calcite-action>`:void 0}};k("instant-apps-filter-list",w);export{w as InstantAppsFilterList};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
|
3
|
-
v1.1.0-next.20251007 */
|
|
4
|
-
import{e as c}from"./
|
|
3
|
+
v1.1.0-next.20251007.2 */
|
|
4
|
+
import{e as c}from"./BLQOF73O.js";import{b as l}from"./PEZ2V43W.js";var u=class{async getPopupTitle(t,p){this.arcade||await this._initModules();let r={};for(let[e,o]of Object.entries(t.attributes))r={...r,[`{${e.toUpperCase()}}`]:o};let a=t.layer,n=this._removeTags(a?.popupTemplate?.title);if(n.includes("{expression/expr")&&a?.popupTemplate?.expressionInfos!=null)for(let e=0;e<a.popupTemplate?.expressionInfos.length;e++){let o=a.popupTemplate.expressionInfos[e],i=this.arcade.createArcadeProfile("popup");try{let s=await(await this.arcade.createArcadeExecutor(o.expression,i)).executeAsync({$feature:t,$layer:a,$map:p});(s!=null||s!=="")&&(r[`{expression/${o.name}}`.toUpperCase()]=s)}catch(s){console.error(s);continue}}return a.popupTemplate?.fieldInfos&&a.fields.forEach(e=>{let o=t.attributes[e.name],i=(a?.popupTemplate?.fieldInfos||[]).find(f=>f.fieldName.toLowerCase()===e.name.toLowerCase()),s=c(o,e.type,e?.domain,i?.format,this.intl);r[`{${e.name.toUpperCase()}}`]=s??o}),n?.replace(/{.*?}/g,e=>r[e.toUpperCase()]!=null?r[e.toUpperCase()]:"")}_removeTags(t){return t==null||t===""?"":t.toString().replace(/(<([^>]+)>)/gi,"")}async _initModules(){let[t,p]=await l(["esri/arcade","esri/intl"]);this.arcade=t,this.intl=p}};export{u as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
|
3
|
-
v1.1.0-next.20251007 */
|
|
4
|
-
import{a,b}from"./
|
|
3
|
+
v1.1.0-next.20251007.2 */
|
|
4
|
+
import{a,b}from"./TODXKPMC.js";import"./HD7Q2QSN.js";import"./O2EYFDON.js";import"./V2LDDPI2.js";import"./VDIJVIMA.js";export{a as SiteEditorTypes,b as getSiteSchema};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
|
3
|
-
v1.1.0-next.20251007 */
|
|
4
|
-
import{a as _}from"./
|
|
3
|
+
v1.1.0-next.20251007.2 */
|
|
4
|
+
import{a as _}from"./UCVSW3E2.js";import{a as m}from"./NFN5NMUD.js";import{b as p}from"./IRR3HAZY.js";import"./6HNWXGC5.js";import"./SEYYZQDP.js";import{C as h,D as b,E as d,h as o,i as c}from"./G7YFTABN.js";import"./VDIJVIMA.js";export default $arcgis.t(([g,D,{watch:w},a,B,x])=>{var v=o`:host{--label-padding-inline: 12px;--calcite-action-bar-items-space: 8px}calcite-label span,.checkbox-wrapper{padding-inline:var(--label-padding-inline)}`,n={style:"solid",color:[100,100,100,.5],outline:{color:[255,255,255,255],width:.75}};function M(f,e){return new x({geometry:f,symbol:e})}async function C({graphic:f,distance:e,unit:t,isGeodesic:r}){r&&!a.isLoaded()&&await a.load();let i=r?a:B;try{let s={unit:t},l=i.execute(f.geometry,e,s);if(!l)throw new Error("buffer failed");return l}catch(s){console.error(String(s))}}var y=["meters","kilometers","miles","yards","feet","us-feet"],u=class extends d{constructor(){super(),this._bufferDistance=1,this._bufferMinDistance=.1,this._bufferMaxDistance=1e6,this._bufferInputStep=1,this._bufferUnit="miles",this._messages=m({name:"instant-apps-buffer",blocking:!0}),this._readyToBuffer=!1,this._firstFocusableElement=h(),this.geodesicBufferEnabled=!1,this.disabled=!1,this.bufferColor=n.color,this.bufferStyle=n.style,this.bufferOutlineColor=n.outline.color,this.bufferOutlineWidth=n.outline.width,this.bufferLayer=new g}static{this.properties={bufferLayer:0,inputGraphics:0,view:0,bufferUnit:3,bufferInputStep:11,bufferDistance:11,bufferMinDistance:11,bufferMaxDistance:11,geodesicBufferEnabled:7,disabled:7,readyToBuffer:32,bufferColor:1,bufferStyle:1,bufferOutlineColor:1,bufferOutlineWidth:9,bufferGraphicSymbol:32}}static{this.styles=v}get bufferUnit(){return this._bufferUnit}set bufferUnit(e){if(y.includes(e))this._bufferUnit=e;else throw Error("bufferDistance must be a valid length unit type")}get bufferInputStep(){return this._bufferInputStep}set bufferInputStep(e){this._validateBufferNumber(e,"bufferInputStep"),this._bufferInputStep=e}get bufferDistance(){return this._bufferDistance}set bufferDistance(e){if(this._validateBufferNumber(e,"bufferDistance"),e<this.bufferMinDistance)throw new Error("bufferDistance must be greater than bufferMinDistance");if(e>this.bufferMaxDistance)throw new Error("bufferDistance must be less than bufferMaxDistance");this._bufferDistance=e}get bufferMinDistance(){return this._bufferMinDistance}set bufferMinDistance(e){if(this._validateBufferNumber(e,"bufferMinDistance"),e>this.bufferMaxDistance)throw new Error("bufferMinDistance must be less than bufferMaxDistance");this._bufferMinDistance=e}get bufferMaxDistance(){return this._bufferMaxDistance}set bufferMaxDistance(e){if(this._validateBufferNumber(e,"bufferMaxDistance"),e<this.bufferMinDistance)throw new Error("bufferMaxDistance must be greater than bufferMinDistance");this._bufferMaxDistance=e}get readyToBuffer(){return this._readyToBuffer}get bufferGraphicSymbol(){let e=typeof this.bufferOutlineWidth=="number"&&this.bufferOutlineWidth>0,t=typeof this.bufferOutlineColor<"u"&&e;return new D({color:this.bufferColor,style:this.bufferStyle,outline:t?{color:this.bufferOutlineColor,width:this.bufferOutlineWidth}:null})}async clearBufferLayer(){this._clearBufferLayer()}async setFocus(){await this._firstFocusableElement.value?.setFocus()}async willUpdate(e){(e.has("view")||e.has("inputGraphics")||e.has("bufferLayer"))&&this._validateBufferCapability()}disconnectedCallback(){super.disconnectedCallback(),this._inputGraphicsWatchHandle?.remove()}_clearBufferLayer(){this.bufferLayer?.removeAll()}async _onCreateBufferClick(){this._readyToBuffer&&await this._bufferInputGraphics()}_onRemoveBufferClick(){this._clearBufferLayer()}_onBufferDistanceChange(e){let t=Number(e.target.value);t>=this.bufferMinDistance&&t<=this.bufferMaxDistance&&(this.bufferDistance=t)}_onBufferUnitChange(e){let t=e.target.value;this.bufferUnit=t}_onGeodesicBufferChange(e){let t=e.target.checked;this.geodesicBufferEnabled=t}_validateBufferNumber(e,t){if(typeof e!="number"||Number.isNaN(e))throw new Error(`${t} must be a valid number`);if(e<=0)throw new Error(`${t} must be > 0`)}_validateBufferCapability(){let e=!!this.view,t=!!this.inputGraphics,r=!!this.bufferLayer;e&&t&&r?(this._inputGraphicsWatchHandle?.remove(),this._inputGraphicsWatchHandle=w(()=>this.inputGraphics?.length,i=>{i&&i>0?this._readyToBuffer=!0:this._readyToBuffer=!1},{initial:!0})):(this._readyToBuffer=!1,this._inputGraphicsWatchHandle?.remove())}async _bufferInputGraphics(){if(!this.bufferLayer||!this.view||!this.inputGraphics)return;this.view.map?.layers.indexOf(this.bufferLayer)===-1?this.view.map.add(this.bufferLayer):this.bufferLayer.removeAll();let e=[];for(let i of this.inputGraphics){let s=C({graphic:i,distance:this.bufferDistance,unit:this.bufferUnit,isGeodesic:this.geodesicBufferEnabled});e.push(s)}let t=this.bufferGraphicSymbol,r=(await Promise.all(e)).filter(i=>!!i).map(i=>M(i,t));this.bufferLayer.addMany(r)}render(){return c`<calcite-action-bar expand-disabled expanded><calcite-action-group><calcite-action .text=${this._messages.labels.draw} icon=circle text-enabled .disabled=${this.disabled} @click=${this._onCreateBufferClick} ${b(this._firstFocusableElement)}></calcite-action><calcite-action .text=${this._messages.labels.remove} icon=trash text-enabled .disabled=${this.disabled} @click=${this._onRemoveBufferClick}></calcite-action></calcite-action-group><calcite-action-group><calcite-label><span>${this._messages.labels.distance}</span><calcite-input-number .value=${`${this.bufferDistance}`} .step=${this.bufferInputStep} .min=${this.bufferMinDistance} .max=${this.bufferMaxDistance} .disabled=${this.disabled} @calciteInputNumberChange=${this._onBufferDistanceChange}></calcite-input-number></calcite-label><calcite-label><span>${this._messages.labels.unit}</span><calcite-select .label=${this._messages.labels.unit} @calciteSelectChange=${this._onBufferUnitChange} .disabled=${this.disabled}>${_(y,e=>e,e=>c`<calcite-option .value=${e} .selected=${this.bufferUnit===e}>${this._messages.units[e]}</calcite-option>`)}</calcite-select></calcite-label><div class="checkbox-wrapper"><calcite-label layout=inline><calcite-checkbox .checked=${this.geodesicBufferEnabled} .disabled=${this.disabled} @calciteCheckboxChange=${this._onGeodesicBufferChange}></calcite-checkbox>${this._messages.labels.toggleGeodesic}</calcite-label></div></calcite-action-group></calcite-action-bar>`}};p("instant-apps-buffer",u);return u},"layers/GraphicsLayer","symbols/SimpleFillSymbol","core/reactiveUtils","geometry/operators/geodesicBufferOperator","geometry/operators/bufferOperator","Graphic")
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
|
3
|
-
v1.1.0-next.20251007 */
|
|
4
|
-
import"./
|
|
3
|
+
v1.1.0-next.20251007.2 */
|
|
4
|
+
import"./VDIJVIMA.js";var a="Neturite pakankamai kredit\u0173 atlikti \u0161\u012F veiksm\u0105. Kreipkit\u0117s pagalbos \u012F savo ArcGIS sistemos administratori\u0173.",i="\u0160is \u012Frankis publikuotas i\u0161 u\u017Era\u0161in\u0117s. J\u016Bs\u0173 organizacijos prieiga prie ArcGIS Notebooks u\u017Eblokuota. Nor\u0117dami koreguoti nustatym\u0105 susisiekite su savo administratoriumi.",e="${ dataPath } negali sudaryti ${ additionalProperty }.",t="${ dataPath } turi sutapti su viena i\u0161 \u0161i\u0173 schem\u0173: ${ schemaOptions }.",r="Bandykite \u012Fra\u0161yti \u017Eem\u0117lap\u012F i\u0161 naujo.",s="Kredit\u0173 \u012Fvertinimas nepavyko. Slinkite \u017Eemyn, i\u0161taisykite klaidas ir dar kart\u0105 \u012Fvertinkite kreditus.",o="Vykdant analiz\u0119 \u012Fvyko klaida.",n="${ dataPath } turi b\u016Bti lygus vienai i\u0161 \u0161i\u0173 leid\u017Eiam\u0173 reik\u0161mi\u0173: ${ allowedValues }.",l="Nepavyko \u012Fra\u0161yti analiz\u0117s istorijos",u="Istorijos saugykla pilna. Pa\u0161alinkite kelet\u0105 element\u0173 i\u0161 analiz\u0117s istorijos ir bandykite \u012Fra\u0161yti dar kart\u0105.",k="Paslaugos pavadinime yra vienas arba daugiau neleistin\u0173 simboli\u0173.",d="Laikinojo sluoksnio i\u0161saugojimas kaip talpinam\u0173 element\u0173 sluoksnis nebuvo baigtas.",m="Nepavyko gauti pagrindini\u0173 ypatybi\u0173.",p="Sluoksnio \u012Fkelti nepavyko.",y="Sluoksnis nepasiekiamas.",v="${ dataPath } negali tur\u0117ti daugiau negu ${ limit } element\u0173.",c="\u012Era\u0161ant model\u012F \u012Fvyko klaida. Bandykite \u012Fra\u0161yti i\u0161 naujo.",g="${ dataPath } negali tur\u0117ti ma\u017Eiau negu ${ limit } element\u0173.",b="${ dataPath } negali b\u016Bti trumpesnis negu ${ limit } simb.",E="Nepavyko \u012Fkelti modelio elemento. \u012Esitikinkite, kad modelis egzistuoja ir suteikta prieiga.",P="Nepavyko u\u017Ebaigti u\u017Eklausos.",h="Neturite leidimo vykdyti \u0161io \u012Frankio. <calcite-link target='_blank' href='${ docLink }'>Su\u017Einokite daugiau </calcite-link>",S="Nepavyko prisijungti prie portalo.",N="Nepavyko nuskaityti \u012Fvesties duomen\u0173.",$="${ dataPath } tr\u016Bksta savyb\u0117s pavadinimu ${ missingProperty }.",j="Rezultat\u0173 sluoksnis tokiu pavadinimu jau yra. Rezultat\u0173 sluoksni\u0173 pavadinimai turi b\u016Bti unikal\u016Bs visoje organizacijoje. Naudokite kit\u0105 pavadinim\u0105.",I="I\u0161vesties pavadinime yra vienas ar daugiau neleistini\u0173 simboli\u0173. <a href='${docLink}' target='_blank'>Su\u017Einokite daugiau.</a>",f="Nepavyko publikuoti laikinojo sluoksnio kaip talpinamo sluoksnio d\u0117l vieno ar daugiau netinkam\u0173 lauk\u0173. Paleiskite \u012Frank\u012F i\u0161 naujo, kad sukurtum\u0117te sluoksn\u012F su tinkamais laukais.",F="Nepavyko pateikti u\u017Eduoties. Slinkite \u017Eemyn, i\u0161taisykite klaidas ir dar kart\u0105 paleiskite analiz\u0119.",L="${ dataPath } turi sudaryti bent vienas simbolis, kuris n\u0117ra tarpas.",T={InsufficientCreditsError:a,accessBlocked:i,additionalProperty:e,anyOfValues:t,cannotWriteToItemResource:r,creditEstimationError:s,defaultError:o,enumValues:n,failedToSaveHistory:l,fullSessionStorage:u,hostedFeatureServiceInvalidTitle:k,hostedFeatureServicePublishDidNotComplete:d,keyPropertiesError:m,layerLoadFailure:p,layerUnavailable:y,maxItems:v,mbFailedToSave:c,minItems:g,minLength:b,modelNotFound:E,networkError:P,noPermissionToAccessTool:h,portalLoadError:S,queryFeaturesError:N,requiredProperty:$,serviceNameExistsError:j,specialCharactersInServiceNameError:I,temporaryLayerFieldsError:f,toolValidationError:F,whiteSpacePattern:L};export{a as InsufficientCreditsError,i as accessBlocked,e as additionalProperty,t as anyOfValues,r as cannotWriteToItemResource,s as creditEstimationError,T as default,o as defaultError,n as enumValues,l as failedToSaveHistory,u as fullSessionStorage,k as hostedFeatureServiceInvalidTitle,d as hostedFeatureServicePublishDidNotComplete,m as keyPropertiesError,p as layerLoadFailure,y as layerUnavailable,v as maxItems,c as mbFailedToSave,g as minItems,b as minLength,E as modelNotFound,P as networkError,h as noPermissionToAccessTool,S as portalLoadError,N as queryFeaturesError,$ as requiredProperty,j as serviceNameExistsError,I as specialCharactersInServiceNameError,f as temporaryLayerFieldsError,F as toolValidationError,L as whiteSpacePattern};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
|
3
|
-
v1.1.0-next.20251007 */
|
|
4
|
-
import{a,b}from"./
|
|
3
|
+
v1.1.0-next.20251007.2 */
|
|
4
|
+
import{a,b}from"./5OM5KDQB.js";import"./HD7Q2QSN.js";import"./O2EYFDON.js";import"./V2LDDPI2.js";import"./VDIJVIMA.js";export{a as InitiativeTemplateEditorTypes,b as InitiativeTemplateSchema};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
|
3
|
-
v1.1.0-next.20251007 */
|
|
4
|
-
import{a as o}from"./
|
|
3
|
+
v1.1.0-next.20251007.2 */
|
|
4
|
+
import{a as o}from"./FEQGA7TK.js";function r(n,t){let e;t.authentication&&(e=t.authentication.token);let a=t.authentication?`?token=${e}`:"";return n&&o(`${n}${a}`)}export{r as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
|
3
|
-
v1.1.0-next.20251007 */
|
|
4
|
-
import"./
|
|
3
|
+
v1.1.0-next.20251007.2 */
|
|
4
|
+
import"./VDIJVIMA.js";var e="\u3053\u306E\u64CD\u4F5C\u306E\u5B9F\u884C\u306B\u5FC5\u8981\u306A\u30AF\u30EC\u30B8\u30C3\u30C8\u304C\u4E0D\u8DB3\u3057\u3066\u3044\u307E\u3059\u3002 ArcGIS \u30B7\u30B9\u30C6\u30E0\u7BA1\u7406\u8005\u306B\u304A\u554F\u3044\u5408\u308F\u305B\u304F\u3060\u3055\u3044\u3002",a="\u3053\u306E\u30C4\u30FC\u30EB\u306F\u30CE\u30FC\u30C8\u30D6\u30C3\u30AF\u304B\u3089\u516C\u958B\u3055\u308C\u307E\u3057\u305F\u3002 \u7D44\u7E54\u3067\u306F\u3001ArcGIS Notebooks \u3078\u306E\u30A2\u30AF\u30BB\u30B9\u304C\u30D6\u30ED\u30C3\u30AF\u3055\u308C\u3066\u3044\u307E\u3059\u3002 \u8A2D\u5B9A\u3092\u8ABF\u6574\u3059\u308B\u306B\u306F\u3001\u7BA1\u7406\u8005\u306B\u304A\u554F\u3044\u5408\u308F\u305B\u304F\u3060\u3055\u3044\u3002",r="${ dataPath } \u304C ${ additionalProperty } \u3092\u6301\u3064\u3053\u3068\u306F\u3067\u304D\u307E\u305B\u3093\u3002",t="${ dataPath } \u306F\u3001\u6B21\u306E\u3044\u305A\u308C\u304B\u306E\u30B9\u30AD\u30FC\u30DE\u3068\u4E00\u81F4\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059: ${ schemaOptions }",o="\u30DE\u30C3\u30D7\u3092\u3082\u3046\u4E00\u5EA6\u4FDD\u5B58\u3057\u3066\u307F\u3066\u304F\u3060\u3055\u3044\u3002",s="\u30AF\u30EC\u30B8\u30C3\u30C8\u306E\u63A8\u5B9A\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002 \u4E0B\u306B\u30B9\u30AF\u30ED\u30FC\u30EB\u3057\u3001\u30A8\u30E9\u30FC\u3092\u4FEE\u6B63\u3057\u3066\u3001\u30AF\u30EC\u30B8\u30C3\u30C8\u3092\u3082\u3046\u4E00\u5EA6\u63A8\u5B9A\u3057\u307E\u3059\u3002",i="\u89E3\u6790\u306E\u5B9F\u884C\u4E2D\u306B\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002",l="${ dataPath } \u306F\u3001\u6B21\u306E\u3044\u305A\u308C\u304B\u306E\u8A31\u53EF\u3055\u308C\u305F\u5024\u3068\u7B49\u3057\u3044\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059: ${ allowedValues }",d="\u89E3\u6790\u5C65\u6B74\u3092\u4FDD\u5B58\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F",n="\u5C65\u6B74\u30B9\u30C8\u30EC\u30FC\u30B8\u304C\u3044\u3063\u3071\u3044\u3067\u3059\u3002 \u89E3\u6790\u5C65\u6B74\u304B\u3089\u3044\u304F\u3064\u304B\u306E\u30A2\u30A4\u30C6\u30E0\u3092\u524A\u9664\u3057\u3066\u3001\u3082\u3046\u4E00\u5EA6\u4FDD\u5B58\u3057\u3066\u307F\u3066\u304F\u3060\u3055\u3044\u3002",c="\u30B5\u30FC\u30D3\u30B9\u540D\u306B\u7121\u52B9\u306A\u6587\u5B57\u304C 1 \u3064\u4EE5\u4E0A\u542B\u307E\u308C\u3066\u3044\u307E\u3059\u3002",m="\u30DB\u30B9\u30C8 \u30D5\u30A3\u30FC\u30C1\u30E3 \u30EC\u30A4\u30E4\u30FC\u3068\u3057\u3066\u306E\u30C6\u30F3\u30DD\u30E9\u30EA \u30EC\u30A4\u30E4\u30FC\u306E\u4FDD\u5B58\u3092\u5B8C\u4E86\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",u="\u30AD\u30FC \u30D7\u30ED\u30D1\u30C6\u30A3\u3092\u53D6\u5F97\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",E="\u30EC\u30A4\u30E4\u30FC\u3092\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F\u3002",h="\u30EC\u30A4\u30E4\u30FC\u3092\u4F7F\u7528\u3067\u304D\u307E\u305B\u3093\u3002",y="${ dataPath } \u306E\u30A2\u30A4\u30C6\u30E0\u306F ${ limit } \u4EE5\u4E0B\u306B\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002",P="\u30E2\u30C7\u30EB\u306E\u4FDD\u5B58\u4E2D\u306B\u30A8\u30E9\u30FC\u304C\u767A\u751F\u3057\u307E\u3057\u305F\u3002 \u3082\u3046\u4E00\u5EA6\u4FDD\u5B58\u3057\u3066\u307F\u3066\u304F\u3060\u3055\u3044\u3002",p="${ dataPath } \u306E\u30A2\u30A4\u30C6\u30E0\u306F ${ limit } \u4EE5\u4E0A\u306B\u3059\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002",S="${ dataPath } \u306F ${ limit } \u6587\u5B57\u4EE5\u4E0A\u3067\u3042\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002",$="\u30E2\u30C7\u30EB \u30A2\u30A4\u30C6\u30E0\u3092\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F\u3002 \u30E2\u30C7\u30EB\u304C\u5B58\u5728\u3057\u3001\u30A2\u30AF\u30BB\u30B9\u6A29\u9650\u304C\u4ED8\u4E0E\u3055\u308C\u3066\u3044\u308B\u3053\u3068\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002",v="\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u5B8C\u4E86\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",f="\u3053\u306E\u30C4\u30FC\u30EB\u3092\u5B9F\u884C\u3059\u308B\u6A29\u9650\u304C\u3042\u308A\u307E\u305B\u3093\u3002 <calcite-link target='_blank' href='${ docLink }'>\u8A73\u7D30</calcite-link>",F="\u30DD\u30FC\u30BF\u30EB\u306B\u30ED\u30B0\u30A4\u30F3\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002",I="\u5165\u529B\u30C7\u30FC\u30BF\u3092\u8AAD\u307F\u53D6\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002",k="${ dataPath } \u306B ${ missingProperty } \u3068\u3044\u3046\u30D7\u30ED\u30D1\u30C6\u30A3\u30FC\u304C\u3042\u308A\u307E\u305B\u3093\u3002",T="\u3053\u306E\u540D\u524D\u306E\u7D50\u679C\u30EC\u30A4\u30E4\u30FC\u306F\u3059\u3067\u306B\u5B58\u5728\u3057\u307E\u3059\u3002 \u7D50\u679C\u30EC\u30A4\u30E4\u30FC\u540D\u306F\u7D44\u7E54\u30B5\u30A4\u30C8\u5168\u4F53\u3067\u4E00\u610F\u3067\u306A\u3051\u308C\u3070\u306A\u308A\u307E\u305B\u3093\u3002 \u5225\u306E\u540D\u524D\u3092\u4F7F\u7528\u3057\u3066\u304F\u3060\u3055\u3044\u3002",L="\u51FA\u529B\u540D\u306B\u7121\u52B9\u306A\u6587\u5B57\u304C 1 \u3064\u4EE5\u4E0A\u542B\u307E\u308C\u3066\u3044\u307E\u3059\u3002 <a href='${docLink}' target='_blank'>\u8A73\u7D30\u3092\u898B\u308B\u3002</a>",b="1 \u3064\u4EE5\u4E0A\u306E\u30D5\u30A3\u30FC\u30EB\u30C9\u304C\u7121\u52B9\u306A\u305F\u3081\u3001\u30DB\u30B9\u30C8 \u30EC\u30A4\u30E4\u30FC\u3068\u3057\u3066\u30C6\u30F3\u30DD\u30E9\u30EA \u30EC\u30A4\u30E4\u30FC\u3092\u516C\u958B\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002 \u30C4\u30FC\u30EB\u3092\u518D\u5B9F\u884C\u3057\u3001\u6709\u52B9\u306A\u30D5\u30A3\u30FC\u30EB\u30C9\u3092\u4F7F\u7528\u3057\u3066\u30EC\u30A4\u30E4\u30FC\u3092\u4F5C\u6210\u3057\u307E\u3059\u3002",N="\u30B8\u30E7\u30D6\u3092\u9001\u4FE1\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002 \u4E0B\u306B\u30B9\u30AF\u30ED\u30FC\u30EB\u3057\u3001\u30A8\u30E9\u30FC\u3092\u4FEE\u6B63\u3057\u3066\u3001\u89E3\u6790\u3092\u3082\u3046\u4E00\u5EA6\u5B9F\u884C\u3057\u307E\u3059\u3002",g="${ dataPath } \u306B\u306F\u7A7A\u767D\u4EE5\u5916\u306E\u6587\u5B57\u304C 1 \u3064\u4EE5\u4E0A\u542B\u307E\u308C\u3066\u3044\u308B\u5FC5\u8981\u304C\u3042\u308A\u307E\u3059\u3002",V={InsufficientCreditsError:e,accessBlocked:a,additionalProperty:r,anyOfValues:t,cannotWriteToItemResource:o,creditEstimationError:s,defaultError:i,enumValues:l,failedToSaveHistory:d,fullSessionStorage:n,hostedFeatureServiceInvalidTitle:c,hostedFeatureServicePublishDidNotComplete:m,keyPropertiesError:u,layerLoadFailure:E,layerUnavailable:h,maxItems:y,mbFailedToSave:P,minItems:p,minLength:S,modelNotFound:$,networkError:v,noPermissionToAccessTool:f,portalLoadError:F,queryFeaturesError:I,requiredProperty:k,serviceNameExistsError:T,specialCharactersInServiceNameError:L,temporaryLayerFieldsError:b,toolValidationError:N,whiteSpacePattern:g};export{e as InsufficientCreditsError,a as accessBlocked,r as additionalProperty,t as anyOfValues,o as cannotWriteToItemResource,s as creditEstimationError,V as default,i as defaultError,l as enumValues,d as failedToSaveHistory,n as fullSessionStorage,c as hostedFeatureServiceInvalidTitle,m as hostedFeatureServicePublishDidNotComplete,u as keyPropertiesError,E as layerLoadFailure,h as layerUnavailable,y as maxItems,P as mbFailedToSave,p as minItems,S as minLength,$ as modelNotFound,v as networkError,f as noPermissionToAccessTool,F as portalLoadError,I as queryFeaturesError,k as requiredProperty,T as serviceNameExistsError,L as specialCharactersInServiceNameError,b as temporaryLayerFieldsError,N as toolValidationError,g as whiteSpacePattern};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
|
3
|
-
v1.1.0-next.20251007 */
|
|
3
|
+
v1.1.0-next.20251007.2 */
|
|
4
4
|
var e="UserSession",o="isMobile",t="Auth",i="localDebug";export{e as a,o as b,t as c,i as d};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
|
3
|
-
v1.1.0-next.20251007 */
|
|
4
|
-
import c from"./
|
|
3
|
+
v1.1.0-next.20251007.2 */
|
|
4
|
+
import c from"./CGO6IH6W.js";import a from"./4G5K63OS.js";import{b as $}from"./IRR3HAZY.js";import"./SEYYZQDP.js";import{C as S,D as L,E as b,G as o,I as _,h as m,i as n,o as I,r as f}from"./G7YFTABN.js";import"./VDIJVIMA.js";export default $arcgis.t(([,{f:l,h:v}])=>{var y=m`@layer{:host{display:block;position:relative}:host .instant-apps-language-translator-search__input{width:235.5px}:host .instant-apps-language-translator-search__suggestion-list{position:absolute;margin:0;padding:0;width:100%;max-height:30vh;overflow:auto;border-left:none;background-color:var(--calcite-color-foreground-1);border:1px solid #c0c0c0;z-index:702}:host .instant-apps-language-translator-search__suggestion-list-item:first-child{border:none}:host .instant-apps-language-translator-search__suggestion-list-item{margin-top:0;padding:.8em 1em;border-top:solid 1px rgba(110,110,110,.3);display:flex;flex-direction:column;cursor:pointer;word-break:break-word}:host .instant-apps-language-translator-search__suggestion-list-item:hover{background-color:var(--calcite-color-foreground-2)}}`,h="instant-apps-language-translator-search",p={input:`${h}__input`,suggestionList:`${h}__suggestion-list`,suggestionListItem:`${h}__suggestion-list-item`},d=class extends b{constructor(){super(...arguments),this.searchInput=S(),this.results=[],this.suggestionSelected=I()}static{this.properties={results:16,t9nPlaceholder:1}}static{this.styles=y}static{this.shadowRootOptions=f}handleSearch(t){let e=t.target.value?.toLowerCase()?.trim(),s=l.get("uiData"),u=v(),a=l.get("portalItemResourceT9n"),r=l.get("currentLanguage"),g=a?.[r]??{},c=this.getSettingDataItems(u).filter(this.matchedResultsCallback(s,g,e,r));this.results=[...c.map(i=>({fieldName:i,...s.get(i)}))]}matchedResultsCallback(t,e,s,u){return a=>{let r=t.get(a),{label:g}=r.userLocaleData,{value:c}=r.userLocaleData,i=t.get("translatedLanguageLabels")?.[u]?.[a],w=e?.[a],x=this.testUserInput(g,s),k=this.testUserInput(c,s),D=this.testUserInput(i,s),R=this.testUserInput(w,s);return x||k||D||R}}getSettingDataItems(t){return t.filter(e=>e!=="locales"&&e!=="translatedLanguageLabels")}testUserInput(t,e){return!!t?.trim()&&!!e?.trim()&&t?.toLowerCase()?.search(e)!==-1}selectSuggestion(t){let e=t.target.getAttribute("data-field-name");this.suggestionSelected.emit(e),this.resetSearchInput()}resetSearchInput(){this.searchInput.value&&(this.searchInput.value.value=""),this.results=[]}render(){return n`${this.renderSearchInput()}${this.renderSuggestions()}`}renderSearchInput(){return n`<calcite-input class=${o(p.input)} @calciteInputInput=${this.handleSearch} type=search .placeholder=${this.t9nPlaceholder} icon=search ${L(this.searchInput)}></calcite-input>`}renderSuggestions(){return this.results.length>0?this.renderSuggestionList():null}renderSuggestionList(){return n`<ul class=${o(p.suggestionList)}>${this.results.map(t=>this.renderSuggestionListItem(t))}</ul>`}renderSuggestionListItem(t){return n`<li @click=${this.selectSuggestion} class=${o(p.suggestionListItem)} data-field-name=${t.fieldName??_}>${t.userLocaleData.label}</li>`}};$("instant-apps-language-translator-search",d);return d},a,c)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
|
3
|
-
v1.1.0-next.20251007 */
|
|
4
|
-
import{a as i}from"./
|
|
3
|
+
v1.1.0-next.20251007.2 */
|
|
4
|
+
import{a as i}from"./RGFN7ICB.js";import"./NTZKCUB3.js";import"./F4C7TZVX.js";import"./B5656UZM.js";import"./OU7RANCG.js";import"./R7XKVCQQ.js";import"./PZI2S66G.js";import"./LC4QJOAB.js";import"./CGMQH46R.js";import"./Q35WFU4Q.js";import"./EEBXDRCX.js";import"./NVWNTZ5A.js";import"./FEQGA7TK.js";import"./W4Q7LIFW.js";import"./AWYPVGZI.js";import"./GQLRUNP7.js";import"./OFH5S424.js";import"./R4FRD36C.js";import"./36GBDHPO.js";import"./FOLOJ7IO.js";import"./FMY2ZXZQ.js";import"./LZNJXXLW.js";import{a as v}from"./TV5LMDU2.js";import"./6HNWXGC5.js";import"./SEYYZQDP.js";import{b as u}from"./QLWTDB7L.js";import{E as p,G as a,h as r,i as h,l as c,r as d}from"./G7YFTABN.js";import"./VDIJVIMA.js";var g=r`@layer{/** @license
|
|
5
5
|
* Copyright 2025 Esri
|
|
6
6
|
*
|
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
|
3
|
-
v1.1.0-next.20251007 */
|
|
4
|
-
import{a as v}from"./
|
|
3
|
+
v1.1.0-next.20251007.2 */
|
|
4
|
+
import{a as v}from"./J3QWY3JM.js";import{b as f}from"./CM3HICNA.js";import{a as w,b as I,d as y}from"./MXNQOBQW.js";import"./LZNJXXLW.js";import"./WVXRS3KL.js";import{a as L}from"./TV5LMDU2.js";import"./6HNWXGC5.js";import"./SEYYZQDP.js";import{b as u}from"./QLWTDB7L.js";import{C as o,D as d,E as g,G as p,H as c,h as b,i as a,l,o as h,r as _}from"./G7YFTABN.js";import"./VDIJVIMA.js";var $=b`@layer{/** @license
|
|
5
5
|
* Copyright 2025 Esri
|
|
6
6
|
*
|
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
|
3
|
-
v1.1.0-next.20251007 */
|
|
4
|
-
import a from"./
|
|
3
|
+
v1.1.0-next.20251007.2 */
|
|
4
|
+
import a from"./EP5FEFKR.js";import{m as i,o as c}from"./LZNJXXLW.js";export default $arcgis.t(([{c:d}])=>{async function I(r,s,o,e,t=c,a="created",l="desc",u=!1,f=[],g=[],m){if(!r?.IsSignedIn)return;let n={q:t,filter:"type:Solution",sortField:a,sortOrder:l,delay:u,categories:f};return n.q+=p(r,m),await y(s,n,e,g)}function p(r,s){let o="",e=r.PortalUserOrg,t=r.PortalUserName;return e&&(o+=" orgid:"+e),s!==i.ORGANIZATION&&t&&(o+=" owner:"+t),o}async function y(r,s,o,e){let t=await o.requestDeployedSolutionCards(s,r),a=d(t.cards,e);return{cards:t.cards,relatedSolutions:a}}return I},a)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
|
3
|
-
v1.1.0-next.20251007 */
|
|
4
|
-
import{a as n}from"./
|
|
3
|
+
v1.1.0-next.20251007.2 */
|
|
4
|
+
import{a as n}from"./CDH2BWSM.js";import{a as s}from"./MMVXQRLD.js";import"./Q35WFU4Q.js";import"./EEBXDRCX.js";import"./NVWNTZ5A.js";import"./FEQGA7TK.js";import{a as r,b as i}from"./2T2E2UMS.js";import"./3QPQ6XPF.js";import"./W4Q7LIFW.js";import"./AWYPVGZI.js";import{a as o}from"./IB3DAYJ5.js";import{a}from"./PIEGJKY2.js";import"./GQLRUNP7.js";import"./OFH5S424.js";import"./R4FRD36C.js";import"./36GBDHPO.js";import"./FOLOJ7IO.js";import"./NHVW3QXI.js";import"./LJ3WKMEW.js";import"./AC3JRDHQ.js";import"./3MQ6ZRZE.js";import"./JFUGGJ4B.js";import"./3MYJ6LVY.js";import"./2OSMNGF7.js";import"./FMY2ZXZQ.js";import"./TODXKPMC.js";import"./NOU4IK27.js";import"./3K2VHCK6.js";import"./4FCQ5LMD.js";import"./TZOOPRZV.js";import"./BPDB6S3N.js";import"./5OM5KDQB.js";import"./UXZ5EXMN.js";import"./NSKPNLSF.js";import"./IZHYGLE4.js";import"./FRXS4ADG.js";import"./HD7Q2QSN.js";import"./O2EYFDON.js";import"./V2LDDPI2.js";import"./3B4AI2RC.js";import"./VDIJVIMA.js";var d=async(e,t,l)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,options:{helperText:{labelKey:`${e}.sections.basicInfo.helperText`}},elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:`${e}.fields.name.maxLengthError`},{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.name.entityTitleValidatorError`}]}},n(e),{labelKey:`${e}.fields.summary.label`,scope:"/properties/summary",type:"Control",options:{control:"hub-field-input-input",type:"textarea",rows:4,messages:[{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.summary.maxLengthError"}]}},...s(e,t.thumbnail,t.thumbnailUrl,"page",l.requestOptions),{type:"Section",labelKey:`${e}.sections.description.label`,options:{section:"block"},elements:[{labelKey:`${e}.fields.description.label`,scope:"/properties/description",type:"Control",options:{control:"hub-field-input-rich-text",type:"textarea"}}]},{type:"Section",labelKey:`${e}.sections.discoverability.label`,options:{section:"block",helperText:{labelKey:`${e}.sections.discoverability.helperText`}},elements:[{labelKey:`${e}.fields.tags.label`,scope:"/properties/tags",type:"Control",options:{control:"hub-field-input-combobox",items:await a(t.tags,l.portal.id,l.hubRequestOptions),allowCustomValues:!0,selectionMode:"multiple",placeholderIcon:"label"}},...await o(e,l)]}]},{type:"Section",labelKey:`${e}.sections.location.label`,elements:[{scope:"/properties/location",type:"Control",options:{control:"hub-field-input-location-picker",extent:await r(t.location,l.hubRequestOptions),options:await i(t.id,t.type,t.location,l.portal.name,l.hubRequestOptions),noticeTitleElementAriaLevel:3}}]}]});export{d as buildUiSchema};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
|
3
|
-
v1.1.0-next.20251007 */
|
|
3
|
+
v1.1.0-next.20251007.2 */
|
|
4
4
|
var n="'Avenir Next','Avenir','Helvetica Neue',sans-serif";function t(e){return e||n}export{t as a};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
|
3
|
-
v1.1.0-next.20251007 */
|
|
4
|
-
import{b as e}from"./
|
|
3
|
+
v1.1.0-next.20251007.2 */
|
|
4
|
+
import{b as e}from"./AC3JRDHQ.js";import{a as r}from"./3MQ6ZRZE.js";import{a as t}from"./V2LDDPI2.js";var o=["hub:event:create","hub:event:edit","hub:event:registrants"],m=()=>{let{startDate:a}=e();return{$async:!0,required:["name","startDate","endDate"],properties:{name:t,startDate:{type:"string",format:"date",formatMinimum:a},startTime:{type:"string"},endTime:{type:"string"},isAllDay:{type:"boolean",default:!1}},allOf:[r]}};export{o as a,m as b};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
|
3
|
-
v1.1.0-next.20251007 */
|
|
4
|
-
import{a as E,c as I}from"./
|
|
3
|
+
v1.1.0-next.20251007.2 */
|
|
4
|
+
import{a as E,c as I}from"./QHTAZWLQ.js";import{a as A}from"./OZT3O3AR.js";import c from"./D6GBEYPP.js";import a from"./5PRLPTRW.js";import{a as k,c as L}from"./KHLFAVYM.js";import{b as f}from"./CM3HICNA.js";import{J as g,L as _,M,ra as P}from"./NTZKCUB3.js";import"./F4C7TZVX.js";import"./B5656UZM.js";import"./OU7RANCG.js";import"./R7XKVCQQ.js";import"./PZI2S66G.js";import"./LC4QJOAB.js";import"./CGMQH46R.js";import"./Q35WFU4Q.js";import"./EEBXDRCX.js";import"./NVWNTZ5A.js";import"./FEQGA7TK.js";import"./W4Q7LIFW.js";import"./AWYPVGZI.js";import{k as R}from"./GQLRUNP7.js";import"./OFH5S424.js";import"./R4FRD36C.js";import"./36GBDHPO.js";import"./FOLOJ7IO.js";import"./FMY2ZXZQ.js";import"./LZNJXXLW.js";import{a as $}from"./TV5LMDU2.js";import"./6HNWXGC5.js";import"./SEYYZQDP.js";import{b as x}from"./QLWTDB7L.js";import{C as d,D as h,E as w,G as p,H as b,I as u,h as y,i as s,o as m}from"./G7YFTABN.js";import"./VDIJVIMA.js";export default $arcgis.t(([,{b:S,c:C}])=>{var T=y`/** @license
|
|
5
5
|
* Copyright 2025 Esri
|
|
6
6
|
*
|
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
|
3
|
-
v1.1.0-next.20251007 */
|
|
4
|
-
import{a as r}from"./
|
|
3
|
+
v1.1.0-next.20251007.2 */
|
|
4
|
+
import{a as r}from"./RGFN7ICB.js";import"./NTZKCUB3.js";import"./F4C7TZVX.js";import"./B5656UZM.js";import"./OU7RANCG.js";import"./R7XKVCQQ.js";import"./PZI2S66G.js";import"./LC4QJOAB.js";import"./CGMQH46R.js";import"./Q35WFU4Q.js";import"./EEBXDRCX.js";import"./NVWNTZ5A.js";import"./FEQGA7TK.js";import"./W4Q7LIFW.js";import"./AWYPVGZI.js";import"./GQLRUNP7.js";import"./OFH5S424.js";import"./R4FRD36C.js";import"./36GBDHPO.js";import"./FOLOJ7IO.js";import"./FMY2ZXZQ.js";import"./LZNJXXLW.js";import{a as c}from"./TV5LMDU2.js";import"./6HNWXGC5.js";import"./SEYYZQDP.js";import{b as n}from"./QLWTDB7L.js";import{E as l,H as a,h as s,i,r as o}from"./G7YFTABN.js";import"./VDIJVIMA.js";var b=s`@layer{/** @license
|
|
5
5
|
* Copyright 2025 Esri
|
|
6
6
|
*
|
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
|
3
|
-
v1.1.0-next.20251007 */
|
|
4
|
-
import c from"./
|
|
3
|
+
v1.1.0-next.20251007.2 */
|
|
4
|
+
import c from"./S3COAP4D.js";import b from"./TOTZU4L6.js";import"./OTKLNSRD.js";import a from"./4G5K63OS.js";import{a as m}from"./ZD6TXVNV.js";import"./Z4HDSEO7.js";import{b as h}from"./IRR3HAZY.js";import"./SEYYZQDP.js";import{C as r,D as o,E as p,G as i,h as d,i as t}from"./G7YFTABN.js";import"./VDIJVIMA.js";export default $arcgis.t(([,{b:c},{r:y}])=>{var f=d`:host{display:block}:host .esri-legend__layer-table,:host .instant-apps-interactive-legend__nested-unique-symbol{margin:0}:host .hide{display:none}`,e={layerTableSizeRamp:"esri-legend__layer-table--size-ramp",layerChildTable:"esri-legend__layer-child-table",layerTable:"esri-legend__layer-table",nestedUniqueSymbol:"instant-apps-interactive-legend__nested-unique-symbol",nonInteractive:"instant-apps-interactive-legend__non-interactive"},n=class extends p{constructor(){super(),this.legendLayerCaption=r(),this.expanded=!0,this.titleText="",this.listenOn(window,"legendLayerExpandUpdated",this.legendLayerExpandUpdatedEmitted)}static{this.properties={expanded:16,activeLayerInfo:0,isSizeRamp:5,isChild:5,isColorRamp:5,isRelationshipRamp:5,isInteractive:5,zoomTo:5,legendElement:0,titleText:1,legendvm:0,legendElementIndex:9}}static{this.styles=f}legendLayerExpandUpdatedEmitted(){this.legendLayerCaption.value&&(this.expanded=this.legendLayerCaption.value.expanded)}render(){let g=this.isChild?e.layerChildTable:e.layerTable,a=this.legendElement?.infos?.length===1&&!this.activeLayerInfo?.layer?.renderer?.field,v=(this.isSizeRamp||!this.isChild)&&!this.isColorRamp?` ${e.layerTableSizeRamp}`:"",$=this.isInteractive?"":` ${e.nonInteractive}`,x=y(this.activeLayerInfo)?` ${e.nestedUniqueSymbol}`:"",s=a&&!this.expanded&&!this.zoomTo?!0:this.expanded;if(this.isRelationshipRamp){let l=c.get("relationshipRampExpandStates")[this.activeLayerInfo.layer.id];s=l===void 0?!0:l}return t`<div class=${`${g}${v}${$}${x}`}><div .id=${`${this.activeLayerInfo?.layer?.id}-legend-element-caption`} class=${i(this.isRelationshipRamp||!this.titleText&&!this.zoomTo&&a?"hide":"show")}><instant-apps-interactive-legend-legend-element-caption .legendvm=${this.legendvm} .activeLayerInfo=${this.activeLayerInfo} .layer=${this.activeLayerInfo.layer} .titleText=${this.titleText} .legendElement=${this.legendElement} .legendElementIndex=${this.legendElementIndex} .zoomTo=${this.zoomTo} .isInteractive=${this.isInteractive} ${o(this.legendLayerCaption)}></instant-apps-interactive-legend-legend-element-caption></div>${m("content",t`<div .id=${`${this.activeLayerInfo?.layer?.id}-legend-element-content-${this.legendElementIndex}`} class=${i(s?"show":"hide")}><slot name=content></slot></div>`)}</div>`}};h("instant-apps-interactive-legend-legend-element",n);return n},a,b,c)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
|
3
|
-
v1.1.0-next.20251007 */
|
|
4
|
-
import{b as d}from"./
|
|
3
|
+
v1.1.0-next.20251007.2 */
|
|
4
|
+
import{b as d}from"./QLWTDB7L.js";import{D as c,E as l,G as h,h as o,i as a,o as r}from"./G7YFTABN.js";import"./VDIJVIMA.js";var u=o`:host{display:block}.chat-container{display:flex;flex-direction:column;gap:10px;max-width:400px;background-color:#d3d3d3;border-radius:10px;padding:10px}.chat-panel{--calcite-panel-background-color: "blue"}.chat-messages{display:flex;flex-direction:column;gap:8px;padding:10px;min-height:300px;max-height:300px;overflow-y:auto}.user-message{align-self:flex-end;background:var(--calcite-ui-brand);border-radius:8px;width:90%;--calcite-card-background-color: "blue";--calcite-card-border-color: "blue";color:#fff}.system-message{align-self:flex-start;background:var(--calcite-ui-foreground-1);border-radius:8px;width:90%;--calcite-card-background-color: "white";--calcite-card-border-color: "white"}.message-content{padding:0}.chat-input{display:flex;gap:8px}`,n=class extends l{constructor(){super(...arguments),this.handleSendMessage=async()=>{if(!this.inputRef?.value.trim())return;this._isLoading=!0;let e=this.inputRef.value.trim(),i={message:e};if(this.conversationStore.conversationId!==null){if(i={message:e,conversationId:this.conversationStore.conversationId},this.token){let s=await this.requestAIServer(i,this.token);this.loopRequest(s,this.token)}}else if(this.token){let s=await this.requestAIServer(i,this.token);this.conversationStore.conversationId=s.conversationId,this.conversationStore.inquiryId=s.inquiryId,this.conversationStore.ackSequenceNumber=s.sequenceNumber,this.loopRequest(s,this.token)}this.inputRef.value=""},this.loopRequest=async(e,i)=>{let s={conversationId:e.conversationId,ackSequenceNumber:e.sequenceNumber,inquiryId:e.inquiryId},t=await this.requestAIServer(s,i);t.hasMore?(t.message&&t.message!==null&&(this._isValidJson(t.message)!==!1?(this.jsonMessage=this._isValidJson(t.message),t.context?.intent==="inspection"?this.messages=[...this.messages,{text:this.jsonMessage,sender:t.context.author,format:"json",inquiryId:t.inquiryId}]:t.context&&(this.jsonMessage.response&&this.jsonMessage.response==="no"?(this._resetConversation(),this.messages=[...this.messages,{text:"What else can I help you with?",sender:t.context.author,format:"text",inquiryId:t.inquiryId}]):this.messages=[...this.messages,{text:this.jsonMessage.message,sender:t.context.author,format:"text",inquiryId:t.inquiryId}])):t.context&&(this.messages=[...this.messages,{text:t.message,sender:t.context.author,format:"text",inquiryId:t.inquiryId}])),this.loopRequest(t,i)):this._isLoading=!1},this.requestAIServer=async(e,i)=>await fetch(this.AIServerUrl,{method:"POST",headers:{"Content-Type":"application/json",token:i},body:JSON.stringify(e)}).then(async s=>await s.json()).then(s=>s||"error").catch(s=>s),this.resetChat=()=>{this._resetConversation(),this.messages=[],this.inputRef&&(this.inputRef.value="")},this._isValidJson=e=>{try{return JSON.parse(e)}catch{return!1}},this._resetConversation=()=>{this.conversationStore.conversationId=null,this.conversationStore.inquiryId=null,this.conversationStore.ackSequenceNumber=null},this._setRef=e=>{this.inputRef=e},this.conversationStore={conversationId:null,inquiryId:null,ackSequenceNumber:null},this.jsonMessage={},this.messages=[],this._isLoading=!1,this.AIServerUrl="http://localhost:8080/skills/solution_deployment/chat",this.token=null,this.arcgisCreateSolutionEvent=r()}static{this.properties={conversationStore:16,jsonMessage:16,messages:16,_isLoading:16,AIServerUrl:1,token:1}}static{this.styles=u}emitCreateSolutionEvent(e){return console.log(e),this.arcgisCreateSolutionEvent.emit()}render(){return a`<div class="chat-container"><calcite-panel class="chat-panel" heading="Solution Assistant">${this.messages.length>0?a`<calcite-button @click=${this.resetChat} slot=header-actions-end appearance=transparent>Reset</calcite-button>`:""}<div class="chat-messages">${this.messages.map(e=>a`<calcite-card class=${h(e.sender==="human"?"user-message":"system-message")}><div class="message-content"><strong>${e.sender==="human"?"You:":"AI:"}</strong>${e.format==="json"?this.renderExtraInformation(e.text):e.text}</div></calcite-card>`)}</div></calcite-panel><div class="chat-input"><calcite-text-area placeholder="Type your message..." auto-grow value="I would like to assess and capture the condition of bus stops in our city?" ${c(this._setRef)}></calcite-text-area><calcite-button @click=${this.handleSendMessage} .disabled=${!!this._isLoading}>${this._isLoading?a`<calcite-loader label=processing... inline></calcite-loader>`:"Send"}</calcite-button></div></div>`}renderExtraInformation(e){return a`<calcite-accordion><calcite-accordion-item description="View the JSON schema" heading="View Schema"><calcite-card><calcite-button @click=${()=>this.emitCreateSolutionEvent(e)}>Create Solution</calcite-button></calcite-card><calcite-card><pre>${JSON.stringify(e,null,2)}</pre></calcite-card></calcite-accordion-item></calcite-accordion>`}};d("arcgis-solutions-assistant",n);export{n as ArcgisSolutionsAssistant};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
|
3
|
-
v1.1.0-next.20251007 */
|
|
3
|
+
v1.1.0-next.20251007.2 */
|
|
4
4
|
var e=(a=>(a.GRID="GRID",a.HORIZONTAL="HORIZONTAL",a.VERTICAL="VERTICAL",a))(e||{}),o=(a=>(a[a.Add=0]="Add",a[a.Update=1]="Update",a[a.Remove=2]="Remove",a[a.None=3]="None",a[a.Obsolete=4]="Obsolete",a))(o||{}),E=(a=>(a[a.LIST=0]="LIST",a[a.SELECT=1]="SELECT",a[a.EXPORT=2]="EXPORT",a[a.REFINE=3]="REFINE",a))(E||{}),t=(a=>(a.ADD="ADD",a.REMOVE="REMOVE",a))(t||{});var i=(a=>(a.SEARCH="SEARCH",a.SELECT="SELECT",a.SKETCH="SKETCH",a.REFINE="REFINE",a))(i||{}),n=(a=>(a.CSV="CSV",a.PDF="PDF",a))(n||{}),r=(a=>(a.SKETCH="SKETCH",a.REFINE="REFINE",a))(r||{}),I="{{params.wkid||",N="}}",u=500,l=(a=>(a.AEC="Architecture, Engineering, and Construction (AEC)",a.AIRPORTPORTRAIL="Airports, Ports, and Rails",a.BUSINESS="Business",a.CONSERVATION="Conservation",a.DEFENSE="Defense",a.FACILITIES="Facilities",a.HEALTHANDHUMANSERVICES="Health and Human Services",a.PIPELINE="Pipeline",a.PUBLICSAFETY="Public Safety",a.RENEWABLES="Renewables",a.STATEANDLOCALGOVERNMENT="State and Local Government",a.TELECOMMUNICATIONS="Telecommunications",a.UTILITIES="Utilities",a))(l||{}),A=(a=>(a.AIRPORT="Airports",a.AGRICULTURE="Agriculture",a.ASSESSMENTANDTAXATION="Assessment and Taxation",a.DISTRICTENERGY="District Energy",a.ELECTIONS="Elections",a.ELECTRIC="Electric",a.EMERGENCYMANAGEMENT="Emergency Management",a.ENVIRONMENTANDNATURALRESOURCES="Environment and Natural Resources",a.FIRESERVICE="Fire Service",a.FISHANDWILDLIFE="Fish and Wildlife",a.GAS="Gas",a.HEALTHANDHUMANSERVICES="Health and Human Services",a.LAWENFORCEMENT="Law Enforcement",a.NATURALRESOURCES="Natural Resources",a.PARKS="Parks",a.PLANNINGANDDEVELOPMENT="Planning and Development",a.PROTECTEDAREAS="Protected Areas",a.PUBLICWORKS="Public Works",a.SEWER="Sewer",a.STORMWATER="Stormwater",a.TELECOMMUNICATIONS="Telecommunications",a.TRANSPORTATION="Transportation",a.WATER="Water Distribution",a))(A||{});var T=(a=>(a.OWNER="My solutions",a.ORGANIZATION="My organization's solutions",a))(T||{}),R=(a=>(a.HUBPREMIUM="solutions:hubPremium",a.NOTEBOOK="solutions:notebook",a.TRACKINGBASE="solutions:locationtracking",a.TRACKING="solutions:locationtracking:tracking",a.TRACKINGADMIN="solutions:locationtracking:admin",a.TRACKINGADMINANDTRACKING="solutions:locationtracking:admin:tracking",a.VELOCITY="solutions:velocity",a.WORKFLOW="solutions:workflowManager",a))(R||{});var S='((typekeywords:Solution,Deployed,"ArcGIS Solution") OR ((typekeywords:Solution,Deployed) AND (created:[1577862000000 TO 1622576880000])))',s="(typekeywords:Solution,Template)",c="(typekeywords:Solution,Display Only)",C="portal:user:addExternalMembersToGroup",O="portal:user:createItem",p="portal:user:createGroup",L="portal:publisher:publishBigDataAnalytics",D="portal:publisher:publishFeatures",d="portal:publisher:publishFeeds",P="portal:publisher:publishServerGPServices",m="portal:publisher:publishRealTimeAnalytics",b="portal:user:shareToGroup",g="solutions:hubPremium",G="solutions:notebook",M="solutions:locationtracking:admin:tracking",h="solutions:locationtracking:tracking",F="solutions:locationtracking:admin",k="solutions:velocity",y="solutions:workflowManager",H=250;export{e as a,o as b,E as c,t as d,i as e,n as f,r as g,I as h,N as i,u as j,l as k,A as l,T as m,R as n,S as o,s as p,c as q,C as r,O as s,p as t,L as u,D as v,d as w,P as x,m as y,b as z,g as A,G as B,M as C,h as D,F as E,k as F,y as G,H};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
|
3
|
-
v1.1.0-next.20251007 */
|
|
4
|
-
import e from"./
|
|
3
|
+
v1.1.0-next.20251007.2 */
|
|
4
|
+
import e from"./S3COAP4D.js";import c from"./TOTZU4L6.js";import"./OTKLNSRD.js";import b from"./4G5K63OS.js";import"./Z4HDSEO7.js";import{b as l}from"./IRR3HAZY.js";import"./SEYYZQDP.js";import{C as i,D as n,E as r,G as o,H as d,h as s,i as a}from"./G7YFTABN.js";import"./VDIJVIMA.js";export default $arcgis.t(([,,{t:p}])=>{var c=s`:host{display:block}:host .esri-legend__service{margin:0;padding:0}:host .hide{display:none}`,e={service:"esri-legend__service",groupLayer:"esri-legend__group-layer",groupContent:"esri-legend__group-content"},t=class extends r{constructor(){super(),this.layerCaption=i(),this.expanded=!0,this.isChild=!1,this.listenOn(window,"layerCaptionElementExpandUpdated",this.layerCaptionElementExpandUpdatedEmitted)}static{this.properties={expanded:16,legendvm:0,featureCount:5,activeLayerInfo:0,isChild:5}}static{this.styles=c}load(){new MutationObserver(()=>{this.requestUpdate()}).observe(this.el,{attributes:!0})}layerCaptionElementExpandUpdatedEmitted(){this.expanded=!!this.layerCaption.value?.expanded}render(){return a`<div style=${d({borderLeft:"1px solid var(--calcite-color-border-3)"})} class=${`${e.service} ${e.groupLayer}`}><instant-apps-interactive-legend-layer-element-caption class=${o(p(this.el))} .legendvm=${this.legendvm} .featureCount=${this.featureCount} .activeLayerInfo=${this.activeLayerInfo} .isChild=${this.isChild} ${n(this.layerCaption)}></instant-apps-interactive-legend-layer-element-caption><div class=${`${e.groupContent} ${this.expanded?"show":"hide"}`}><slot name=content></slot></div></div>`}};l("instant-apps-interactive-legend-group-legend-element",t);return t},b,c,e)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
|
3
|
-
v1.1.0-next.20251007 */
|
|
4
|
-
import{a as f,c as g,e as I}from"./
|
|
3
|
+
v1.1.0-next.20251007.2 */
|
|
4
|
+
import{a as f,c as g,e as I}from"./MXNQOBQW.js";import"./LZNJXXLW.js";import"./WVXRS3KL.js";import{a as w,b as c}from"./PEZ2V43W.js";import{a as u}from"./TV5LMDU2.js";import"./6HNWXGC5.js";import"./SEYYZQDP.js";import{b as L}from"./QLWTDB7L.js";import{E as m,h as d,i as r,o as h,r as p}from"./G7YFTABN.js";import"./VDIJVIMA.js";async function _(o,e){let{api:s=4,type:t="decimal",places:i=2}=e||{};if(s===4){let[a]=await c(["esri/intl"]),l=a.convertNumberFormatToIntlOptions({places:i,type:t,digitSeparator:!0});return a.formatNumber(o,l)}let[n]=await c(["dojo/number"]);return n.format(o,{type:t,places:i})}var x=d`@layer{/** @license
|
|
5
5
|
* Copyright 2025 Esri
|
|
6
6
|
*
|
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|