@esri/solutions-components 1.0.0-next.20250528.1 → 1.0.0-next.20250528.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/{OGZ3UIZT.js → 27LQAQ6Y.js} +2 -2
- package/dist/cdn/{25PBJJQW.js → 2BECX5WX.js} +2 -2
- package/dist/cdn/{AYFLC652.js → 2HAFNSIE.js} +2 -2
- package/dist/cdn/{LVMAXE6W.js → 2IDGPQJR.js} +2 -2
- package/dist/cdn/{O6HZLBPG.js → 2MMQZII3.js} +2 -2
- package/dist/cdn/{OXNEUTDS.js → 2OOMOXGH.js} +2 -2
- package/dist/cdn/{GUKAJOM3.js → 2TF5G4JI.js} +1 -1
- package/dist/cdn/{YQFC4GG5.js → 2XZSJ6JD.js} +2 -2
- package/dist/cdn/{VMYRQS35.js → 35BOYRXZ.js} +2 -2
- package/dist/cdn/{VJF4PI5U.js → 3LMFSQQR.js} +2 -2
- package/dist/cdn/{QTWHZ3DL.js → 3PIEW24G.js} +2 -2
- package/dist/cdn/{B7PLQJPS.js → 3S4FG2ZZ.js} +2 -2
- package/dist/cdn/{MEJKJ4M5.js → 3SGIDV3I.js} +2 -2
- package/dist/cdn/{ZIB46UQF.js → 3WC22OVN.js} +2 -2
- package/dist/cdn/{JFW3ETMX.js → 3XJKMZHA.js} +1 -1
- package/dist/cdn/{LGMAK23W.js → 455HDVF4.js} +2 -2
- package/dist/cdn/{GPPR5STT.js → 4KGZBVTB.js} +2 -2
- package/dist/cdn/{4BCOHKBU.js → 4ME5QMIF.js} +2 -2
- package/dist/cdn/{3I4NEFH6.js → 4QWQA7SP.js} +2 -2
- package/dist/cdn/{TNVAHKZK.js → 4S2I2R2Q.js} +1 -1
- package/dist/cdn/{XYAE4MT5.js → 54NDBS5W.js} +2 -2
- package/dist/cdn/{6CNRWGJ4.js → 5APFWJZZ.js} +2 -2
- package/dist/cdn/{PEAUVPGM.js → 5BKTEPSJ.js} +2 -2
- package/dist/cdn/{BQJ4XZB4.js → 5IZBEDEU.js} +1 -1
- package/dist/cdn/{EMLYZ2SS.js → 5NIDGVLZ.js} +2 -2
- package/dist/cdn/{4FJ6YIEW.js → 5P6SZW5B.js} +2 -2
- package/dist/cdn/{BTD7DMX5.js → 5PENO4BC.js} +2 -2
- package/dist/cdn/{CDAJFWOQ.js → 5USKOL72.js} +2 -2
- package/dist/cdn/{WVH5MJSX.js → 5ZAVVIAH.js} +2 -2
- package/dist/cdn/{43IF6RVS.js → 64XCUKMX.js} +2 -2
- package/dist/cdn/{JU2E7OJJ.js → 66IB2PZE.js} +2 -2
- package/dist/cdn/{PW6BCLMM.js → 6APCAUUT.js} +2 -2
- package/dist/cdn/{RHIPAMD6.js → 6CPKRUI3.js} +1 -1
- package/dist/cdn/{BQWBXINS.js → 6GVJGNRK.js} +2 -2
- package/dist/cdn/{2GFLPWN7.js → 6PWODZF3.js} +2 -2
- package/dist/cdn/{WFWVO6JC.js → 6QWS7JEN.js} +2 -2
- package/dist/cdn/{NQ4GJ2EY.js → 6RHP2Y7C.js} +1 -1
- package/dist/cdn/{OYGGU32Q.js → 6WQKENE2.js} +4 -4
- package/dist/cdn/{LDUWYS5W.js → 6WXHOI6Z.js} +2 -2
- package/dist/cdn/{LDBZTZKY.js → 6XYU4BZS.js} +2 -2
- package/dist/cdn/{AK7RIEHS.js → 72HLVTY7.js} +2 -2
- package/dist/cdn/{GOJUA34O.js → 73NJ4RPV.js} +1 -1
- package/dist/cdn/{KNTNR7IZ.js → 7GY7BTPK.js} +2 -2
- package/dist/cdn/{O5KMAS35.js → 7OZTZCPH.js} +2 -2
- package/dist/cdn/{F53ZDM22.js → A2WX4D7A.js} +1 -1
- package/dist/cdn/{KGCLTR2S.js → A3JKO4I4.js} +1 -1
- package/dist/cdn/{M3IHDXDC.js → A4JM6VWA.js} +2 -2
- package/dist/cdn/{NDIWTIWO.js → ABYMP2JA.js} +2 -2
- package/dist/cdn/{R73PDU63.js → AF3RJAL5.js} +1 -1
- package/dist/cdn/{JQ2FK77O.js → AGRD4ULC.js} +2 -2
- package/dist/cdn/{QB3JQLSH.js → AH5AIEIN.js} +1 -1
- package/dist/cdn/{GBW3TB6N.js → AHEWCN4W.js} +2 -2
- package/dist/cdn/{IYU2EMNF.js → AJUGJQUJ.js} +1 -1
- package/dist/cdn/{4EEFLJ7L.js → ARQHAHK5.js} +2 -2
- package/dist/cdn/{JSGP47F6.js → ARYFWYUR.js} +1 -1
- package/dist/cdn/{4KQPYQDK.js → AT3MTRQS.js} +1 -1
- package/dist/cdn/{AJGIKTXY.js → B4HONVWZ.js} +1 -1
- package/dist/cdn/{SJXIUCRN.js → BACSZ2Z7.js} +1 -1
- package/dist/cdn/{77Q75LZE.js → BANL5YR3.js} +2 -2
- package/dist/cdn/{HQRVKXX3.js → BB7RJW6E.js} +2 -2
- package/dist/cdn/BGVU5VPJ.js +18 -0
- package/dist/cdn/{SJRG6HSF.js → BKQVXWB7.js} +2 -2
- package/dist/cdn/{JV6ZPBUH.js → BZFFNFXK.js} +2 -2
- package/dist/cdn/{PMGGZDUN.js → C2XKMOX2.js} +2 -2
- package/dist/cdn/{HRPJRXCN.js → C3A3SGFC.js} +2 -2
- package/dist/cdn/{OC7VO4DN.js → C7TWT6K2.js} +2 -2
- package/dist/cdn/{7TRQSZUN.js → CLZ42RFU.js} +1 -1
- package/dist/cdn/{KIFEL7BK.js → COLHBQ5X.js} +2 -2
- package/dist/cdn/{7EPNN646.js → CPB7DXI3.js} +2 -2
- package/dist/cdn/{ZYKXXCGE.js → CQ6SIDRV.js} +2 -2
- package/dist/cdn/{RCJYMJC7.js → CQMNR2XZ.js} +1 -1
- package/dist/cdn/{CJWTSXB2.js → CR3NXOPF.js} +2 -2
- package/dist/cdn/{ZYGUTXA6.js → CRYN5SYR.js} +2 -2
- package/dist/cdn/CSTT6IAN.js +4 -0
- package/dist/cdn/{VSZYFVFD.js → CXW7Q33E.js} +2 -2
- package/dist/cdn/{XIE4A7B3.js → D6KVYJKN.js} +2 -2
- package/dist/cdn/{CQDWK2WT.js → DCP6AHDZ.js} +2 -2
- package/dist/cdn/{W5Y6RZM3.js → DJI7J3C3.js} +2 -2
- package/dist/cdn/{KIBBTGLB.js → DMRVOPBM.js} +2 -2
- package/dist/cdn/{T6F66PP6.js → DT2GGHBN.js} +2 -2
- package/dist/cdn/{UZTDCPJS.js → DUOJYQGU.js} +2 -2
- package/dist/cdn/{FJFCA3JN.js → DWBMQBAB.js} +2 -2
- package/dist/cdn/{DTGGAA3W.js → DZXTVGRQ.js} +2 -2
- package/dist/cdn/{WWUUOJSY.js → ELBSRAMH.js} +2 -2
- package/dist/cdn/{ND675HM5.js → ETSCX6UD.js} +1 -1
- package/dist/cdn/{KSS3APGW.js → EU3TXNP2.js} +2 -2
- package/dist/cdn/{W3GEDPI3.js → EXWX56R4.js} +2 -2
- package/dist/cdn/F7YKY2OF.js +4 -0
- package/dist/cdn/{G5U4WJ6F.js → FATTGIYI.js} +2 -2
- package/dist/cdn/{CY46FXGX.js → FCHOLYNH.js} +2 -2
- package/dist/cdn/{VPZ5SZQL.js → FEWEA7AN.js} +2 -2
- package/dist/cdn/{KRGDTQIC.js → FF7R4YTO.js} +2 -2
- package/dist/cdn/{PIIJOLSO.js → FNHXNPPV.js} +2 -2
- package/dist/cdn/{MV7WFJWQ.js → FPWLAJBO.js} +1 -1
- package/dist/cdn/{YYNAOG7P.js → FTCXP7FD.js} +2 -2
- package/dist/cdn/FY5WSCFM.js +4 -0
- package/dist/cdn/{QBAOABKC.js → GA7L2IWK.js} +2 -2
- package/dist/cdn/{O3VZ3S2D.js → GLCP6BKS.js} +2 -2
- package/dist/cdn/{ZWADX6AH.js → GLL5XNBZ.js} +2 -2
- package/dist/cdn/{D7KUWDF4.js → GOHA6HJP.js} +2 -2
- package/dist/cdn/{G2LRWQIG.js → GPKFZD7B.js} +2 -2
- package/dist/cdn/{BUFXQMR4.js → GR5ID3PD.js} +1 -1
- package/dist/cdn/{XTBY6TYN.js → GUP4UK2N.js} +2 -2
- package/dist/cdn/{2XJALQPT.js → GVI4R5J2.js} +2 -2
- package/dist/cdn/{KONDPSKH.js → HJJD6V2O.js} +2 -2
- package/dist/cdn/{CHQTMB53.js → HM7CZ2CI.js} +2 -2
- package/dist/cdn/{DWC5BEDO.js → HM7JZP3A.js} +1 -1
- package/dist/cdn/{LLDUTJLC.js → HOYA4JWQ.js} +2 -2
- package/dist/cdn/{LIA4W3XJ.js → HOYVNZRK.js} +2 -2
- package/dist/cdn/{TILTEUIM.js → HTYN6WXU.js} +2 -2
- package/dist/cdn/{IFDRGA6G.js → HYTRDNUE.js} +2 -2
- package/dist/cdn/{WIUOXWKD.js → I4KZ2A5P.js} +2 -2
- package/dist/cdn/{NRKV4EJ5.js → IBDFSTWX.js} +2 -2
- package/dist/cdn/{ZGCS2MUQ.js → IBEMOISL.js} +2 -2
- package/dist/cdn/{JPKSZ5IW.js → IE24UY4O.js} +2 -2
- package/dist/cdn/{6GZ3P7MW.js → IIPLB2RS.js} +2 -2
- package/dist/cdn/{VQ6Q6POM.js → IIX655ZM.js} +1 -1
- package/dist/cdn/{GE7Z77AB.js → IJBFY7JW.js} +2 -2
- package/dist/cdn/{TE37N2QX.js → INDADVJP.js} +2 -2
- package/dist/cdn/{4ICGVS3H.js → INY65VHN.js} +2 -2
- package/dist/cdn/{OFT4RWEQ.js → IP6ATOM6.js} +2 -2
- package/dist/cdn/{TJ7USYVU.js → IPIQ52KV.js} +2 -2
- package/dist/cdn/{KH77SOOF.js → IUBGSA3I.js} +1 -1
- package/dist/cdn/{ZRSXDUMU.js → IVXXAKCK.js} +2 -2
- package/dist/cdn/{FGXWHEON.js → J5LWWUIP.js} +2 -2
- package/dist/cdn/{NXSWGBEL.js → J62YOWFC.js} +2 -2
- package/dist/cdn/{KCERPNOX.js → JATAGG24.js} +2 -2
- package/dist/cdn/{LAMCTX2N.js → JBDNXDLS.js} +2 -2
- package/dist/cdn/{3WNIWICF.js → JBG5SAVM.js} +1 -1
- package/dist/cdn/{VOA4OGLR.js → JBZH2KKN.js} +2 -2
- package/dist/cdn/{2BKLFFV3.js → JDSGIOVR.js} +2 -2
- package/dist/cdn/{ZXNSOMLE.js → JFVYQIUH.js} +2 -2
- package/dist/cdn/{GWZZSWGD.js → JHFAVQVG.js} +2 -2
- package/dist/cdn/{UU7VMXV4.js → JKB6LYON.js} +2 -2
- package/dist/cdn/{KTBOVBO5.js → JSDNVCX7.js} +2 -2
- package/dist/cdn/{SXA34E2S.js → JY7KFFEJ.js} +2 -2
- package/dist/cdn/{D47MDJ3H.js → K6SJCTAS.js} +1 -1
- package/dist/cdn/K72NRGFR.js +4 -0
- package/dist/cdn/{LUEDPLY5.js → KETC3CAC.js} +2 -2
- package/dist/cdn/{NYVDHE7E.js → KFFWCZKY.js} +2 -2
- package/dist/cdn/{TZMAAM5M.js → KOQOMT46.js} +2 -2
- package/dist/cdn/{E4W6U2SB.js → KPKDVL2J.js} +2 -2
- package/dist/cdn/{6NZPPYBU.js → KSMEO6R5.js} +2 -2
- package/dist/cdn/{OLCSJ76K.js → KZWHC2ST.js} +2 -2
- package/dist/cdn/{72HVUAV7.js → L32HIJPV.js} +2 -2
- package/dist/cdn/{CBDBYDEC.js → L3IX5SCS.js} +2 -2
- package/dist/cdn/{Y5PUS34W.js → LBJE5BZD.js} +1 -1
- package/dist/cdn/{ETIBVIWV.js → LWBDG7UH.js} +2 -2
- package/dist/cdn/{I6S2QECH.js → LYQL4O5M.js} +2 -2
- package/dist/cdn/{AICVPUBP.js → LYWU4RZH.js} +2 -2
- package/dist/cdn/{JLOUT5MX.js → M3OFPTT3.js} +2 -2
- package/dist/cdn/{PDSHIJNC.js → MHSBM4WB.js} +2 -2
- package/dist/cdn/{LGDOEW7U.js → MRMD4H7O.js} +2 -2
- package/dist/cdn/{KHX3R2Z4.js → MRUWYVHI.js} +2 -2
- package/dist/cdn/{LSN7P2WQ.js → MVN27KOI.js} +2 -2
- package/dist/cdn/{7B4R56TM.js → N2MZJBHS.js} +2 -2
- package/dist/cdn/{CQVD5CBU.js → N324UTZ5.js} +2 -2
- package/dist/cdn/{FRFEDLSJ.js → N4OHCK66.js} +2 -2
- package/dist/cdn/{XT622WJC.js → N5UBRYXZ.js} +2 -2
- package/dist/cdn/{RV2K4TCT.js → NGO6CV3G.js} +2 -2
- package/dist/cdn/{L3QLTAE7.js → NNQAPUKF.js} +1 -1
- package/dist/cdn/{JKUIOQXV.js → NZCTTZQJ.js} +2 -2
- package/dist/cdn/{7O72W7MF.js → O4UWY4LV.js} +2 -2
- package/dist/cdn/O4YIZH4Y.js +4 -0
- package/dist/cdn/{Z2PPSD4G.js → OC334CIK.js} +2 -2
- package/dist/cdn/{QJF7KQWQ.js → OC44744D.js} +2 -2
- package/dist/cdn/{S6W7RXCG.js → OI3SHZPE.js} +2 -2
- package/dist/cdn/{3VARNN3H.js → OPD73MSN.js} +2 -2
- package/dist/cdn/{XGZWD23R.js → OW7E6OZU.js} +2 -2
- package/dist/cdn/{Y35URT5Q.js → PGFLUWJN.js} +2 -2
- package/dist/cdn/{3UDIIW5C.js → PLAM4ZSV.js} +2 -2
- package/dist/cdn/{UN6AJVDX.js → POG7OHTN.js} +2 -2
- package/dist/cdn/{WWYCJLBB.js → PP63JUSI.js} +2 -2
- package/dist/cdn/{UREM6GTN.js → PRB7DA6V.js} +2 -2
- package/dist/cdn/PTLSWZZ2.js +4 -0
- package/dist/cdn/{IS7TFPZJ.js → PZFNMBVW.js} +2 -2
- package/dist/cdn/{CKS2TCJA.js → Q5HH7VHO.js} +2 -2
- package/dist/cdn/{35V32ZGG.js → QBYJ6PX6.js} +2 -2
- package/dist/cdn/{AUPBYR3G.js → QDFSCCOX.js} +2 -2
- package/dist/cdn/{MKKLL5ZS.js → QDMUSM3I.js} +2 -2
- package/dist/cdn/{MIYEYP2E.js → QIVTK7HW.js} +2 -2
- package/dist/cdn/{O5J4RJ7B.js → QO56HLQG.js} +2 -2
- package/dist/cdn/{FCUG4KCK.js → QOPQPJ6E.js} +1 -1
- package/dist/cdn/{MD4FE2CK.js → QPNL4XAH.js} +1 -1
- package/dist/cdn/{JR76OCEB.js → QPRN44LY.js} +2 -2
- package/dist/cdn/{OH2C77EU.js → QZVIZAH5.js} +2 -2
- package/dist/cdn/{NLEAVUXF.js → R53BLRMX.js} +2 -2
- package/dist/cdn/{VUPD7KXT.js → RFYBQIXD.js} +2 -2
- package/dist/cdn/{5R67XATC.js → RIQZUFV2.js} +2 -2
- package/dist/cdn/{ZGLNJWEU.js → RJJHXXVX.js} +2 -2
- package/dist/cdn/{VWG7PXDE.js → ROR6SI6U.js} +2 -2
- package/dist/cdn/{ECUWZTYK.js → RR3GDG64.js} +1 -1
- package/dist/cdn/{NG7TRKJC.js → RS6TXCOP.js} +2 -2
- package/dist/cdn/{FU7XT4WQ.js → RTTXS2RX.js} +2 -2
- package/dist/cdn/{CFAG2FSB.js → RVNPJNAS.js} +2 -2
- package/dist/cdn/{ATD6DCLS.js → RVOILI7H.js} +2 -2
- package/dist/cdn/{KLOTZOBR.js → S56UY63G.js} +2 -2
- package/dist/cdn/{JXE3ERND.js → SDKQPMU5.js} +2 -2
- package/dist/cdn/{OWFH5BT6.js → SFJHXT65.js} +1 -1
- package/dist/cdn/{TWC3U47D.js → SFS5GEDR.js} +2 -2
- package/dist/cdn/{MLUU7VQW.js → SGX5RQ3B.js} +2 -2
- package/dist/cdn/{HSQGDLNP.js → SGXJZQ4L.js} +2 -2
- package/dist/cdn/{ZEXSMSCH.js → SLKM4GXK.js} +2 -2
- package/dist/cdn/{6EP7M7XJ.js → SMLBVO43.js} +2 -2
- package/dist/cdn/{C6CUID27.js → T2DUZEDU.js} +1 -1
- package/dist/cdn/{ZQ3NC6T5.js → TCDUH4QD.js} +2 -2
- package/dist/cdn/{Q5XIIJWU.js → TCRWJTPW.js} +2 -2
- package/dist/cdn/{43OPIVHU.js → TKILZGVC.js} +2 -2
- package/dist/cdn/{ZZOPKSTN.js → TMXXOYO3.js} +2 -2
- package/dist/cdn/{BZAHWVGQ.js → TQ24PIOH.js} +1 -1
- package/dist/cdn/{XTJG5DFS.js → TSB43IHY.js} +2 -2
- package/dist/cdn/{Z3IGCQ5P.js → TWFIXUDH.js} +2 -2
- package/dist/cdn/{T7CCQFVO.js → TWGLV5JH.js} +2 -2
- package/dist/cdn/{5P7OI5M3.js → U2EADFOW.js} +2 -2
- package/dist/cdn/{J6V5STA2.js → U4N25UBP.js} +2 -2
- package/dist/cdn/{QAYAJ4FV.js → UBUVKOMA.js} +2 -2
- package/dist/cdn/{VSHIFJKY.js → UFQAANOF.js} +2 -2
- package/dist/cdn/{MZR4QIPT.js → UHBAUGQ4.js} +1 -1
- package/dist/cdn/{OTBCJJWT.js → UKDRKFWF.js} +2 -2
- package/dist/cdn/{WFZTAET5.js → UOL6LQRJ.js} +2 -2
- package/dist/cdn/{RTK3SRIT.js → UOWOGIE5.js} +2 -2
- package/dist/cdn/{EEPQSN7Q.js → UQBMV5BY.js} +2 -2
- package/dist/cdn/{PQYDJLKT.js → UZVRS2XU.js} +1 -1
- package/dist/cdn/{FHO5VR6B.js → V5UFRWYB.js} +2 -2
- package/dist/cdn/{U4QTERGW.js → VGPMZBNK.js} +2 -2
- package/dist/cdn/{EBAAUYON.js → VUHZ6YXM.js} +2 -2
- package/dist/cdn/{V6HLBAH2.js → VXCG5LEV.js} +2 -2
- package/dist/cdn/{GEXPP6OZ.js → VYMYL6JP.js} +2 -2
- package/dist/cdn/{GWBHN5NX.js → WO7YGQFB.js} +2 -2
- package/dist/cdn/{F3PTGHYO.js → WVVZ4CLC.js} +2 -2
- package/dist/cdn/{XUB7T7AY.js → WX4ZUMZN.js} +2 -2
- package/dist/cdn/{EEA33WZI.js → WYRW7PJT.js} +2 -2
- package/dist/cdn/{YHLJU5F5.js → X4W4ZZ7O.js} +2 -2
- package/dist/cdn/{7PBXJUEO.js → X6GE3EIS.js} +2 -2
- package/dist/cdn/{PTJY6HJV.js → XA34OFHO.js} +2 -2
- package/dist/cdn/{JLDFHYKB.js → XCO35G7O.js} +2 -2
- package/dist/cdn/{LEPBL2Y4.js → XEO56VFL.js} +2 -2
- package/dist/cdn/{B3LCPBNL.js → XFDA7NEB.js} +2 -2
- package/dist/cdn/{U7UDQUDH.js → XFZL2VCD.js} +2 -2
- package/dist/cdn/{SDZEVUAE.js → XHZTR3BJ.js} +2 -2
- package/dist/cdn/{WPS526RU.js → XIJFQNOB.js} +2 -2
- package/dist/cdn/{W7L5ZB6Y.js → XL4TPC5B.js} +2 -2
- package/dist/cdn/{MXWAIEZD.js → XN5WML6J.js} +2 -2
- package/dist/cdn/{IPQ4FLYZ.js → XOHNTOVE.js} +2 -2
- package/dist/cdn/{I6XJAIFC.js → XQKIPHIH.js} +2 -2
- package/dist/cdn/{ATVPQHJY.js → XQNKJT3W.js} +2 -2
- package/dist/cdn/{XA42UGQ7.js → XSNJZI7M.js} +2 -2
- package/dist/cdn/XY544Q64.js +4 -0
- package/dist/cdn/Y236OPC4.js +4 -0
- package/dist/cdn/{JTR2SH4G.js → Y3MVHWDO.js} +2 -2
- package/dist/cdn/{N25XK6FN.js → Y4M5KS3M.js} +1 -1
- package/dist/cdn/{KQUX7BEF.js → Y5QDB3GF.js} +2 -2
- package/dist/cdn/{RPFPO2CV.js → YAK6SM64.js} +2 -2
- package/dist/cdn/{C2QYX64L.js → YFG6Q4W4.js} +2 -2
- package/dist/cdn/{WVBNKWGH.js → YOSMKTOJ.js} +2 -2
- package/dist/cdn/{P3YM6KJZ.js → YQHRK3AQ.js} +2 -2
- package/dist/cdn/{GMXEQORB.js → YTSZZUYS.js} +2 -2
- package/dist/cdn/{PRJAT3UX.js → YUOGYP2W.js} +2 -2
- package/dist/cdn/{V52IJEN4.js → YVBTB4PY.js} +2 -2
- package/dist/cdn/{XZIMLV7H.js → YXUMTVRG.js} +1 -1
- package/dist/cdn/{CSHPIQ5D.js → YZCPJ5JI.js} +2 -2
- package/dist/cdn/{5GTGLHQA.js → Z2MJRFIE.js} +2 -2
- package/dist/cdn/{KANXN4TE.js → Z3T7XWKC.js} +2 -2
- package/dist/cdn/{6HHL5FY3.js → Z6TJZJH7.js} +2 -2
- package/dist/cdn/{XKK7HJBO.js → ZA4R3KFB.js} +2 -2
- package/dist/cdn/{KREDNK7J.js → ZEIIGNWR.js} +2 -2
- package/dist/cdn/{PWAKHJK5.js → ZEZCVFYU.js} +2 -2
- package/dist/cdn/{NX52APT5.js → ZGO54R7R.js} +2 -2
- package/dist/cdn/{O6O3MX2S.js → ZHXAH2ZO.js} +2 -2
- package/dist/cdn/{UPK424CD.js → ZJKJXFXC.js} +2 -2
- package/dist/cdn/{6CDGGVGE.js → ZJXXAWMH.js} +1 -1
- package/dist/cdn/{YI5CBQRZ.js → ZLNLCCC6.js} +1 -1
- package/dist/cdn/{IE537KVP.js → ZOPBEUAZ.js} +2 -2
- package/dist/cdn/{YJSQANUI.js → ZUGYY22V.js} +2 -2
- package/dist/cdn/{ANGZ4WNK.js → ZWGDNNV7.js} +2 -2
- package/dist/cdn/{G24GFGOQ.js → ZZAKVFN7.js} +2 -2
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/Auth.js +1 -1
- package/dist/chunks/cardFetchingUtils.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/index.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/publicNotificationStore.js +1 -1
- package/dist/chunks/queryUtils.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/solution-store.js +1 -1
- package/dist/chunks/templates.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-solutions-assistant/customElement.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 +3 -3
- 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 +1 -1
- 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-panel/customElement.js +1 -1
- package/dist/components/solution-configure-titles/customElement.js +1 -1
- package/dist/components/solution-contents/customElement.js +1 -1
- package/dist/components/solution-delete-dialog/customElement.js +1 -1
- package/dist/components/solution-deploy-dialog/customElement.js +1 -1
- package/dist/components/solution-deploy-panel/customElement.js +1 -1
- package/dist/components/solution-deployed-card/customElement.js +1 -1
- package/dist/components/solution-deploying-panel/customElement.js +1 -1
- package/dist/components/solution-details-card/customElement.js +1 -1
- package/dist/components/solution-details-panel/customElement.js +1 -1
- package/dist/components/solution-item/customElement.js +1 -1
- package/dist/components/solution-item-accordion/customElement.js +1 -1
- package/dist/components/solution-item-details/customElement.js +1 -1
- package/dist/components/solution-item-icon/customElement.js +1 -1
- package/dist/components/solution-item-sharing/customElement.js +1 -1
- package/dist/components/solution-items-diagram/customElement.js +1 -1
- package/dist/components/solution-organization-variables/customElement.js +1 -1
- package/dist/components/solution-resource-item/customElement.js +1 -1
- package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
- package/dist/components/solution-spatial-ref/customElement.js +1 -1
- package/dist/components/solution-template-data/customElement.js +1 -1
- package/dist/components/solution-variables/customElement.js +1 -1
- package/dist/components/solutions-all-panel/customElement.js +1 -1
- package/dist/components/solutions-all-shell/customElement.js +1 -1
- package/dist/components/solutions-article-panel/customElement.js +1 -1
- package/dist/components/solutions-articles/customElement.js +1 -1
- package/dist/components/solutions-articles-shell/customElement.js +1 -1
- package/dist/components/solutions-deployed-panel/customElement.js +1 -1
- package/dist/components/solutions-deployed-shell/customElement.js +1 -1
- package/dist/components/solutions-filter-panel/customElement.js +1 -1
- package/dist/components/spatial-ref/customElement.js +1 -1
- package/dist/components/store-manager/customElement.js +1 -1
- package/dist/docs/api.json +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/4CZ6KARN.js +0 -4
- package/dist/cdn/BYQMGQYW.js +0 -4
- package/dist/cdn/CSLY3NAJ.js +0 -4
- package/dist/cdn/GFGFGTPN.js +0 -18
- package/dist/cdn/H2B7HOSC.js +0 -4
- package/dist/cdn/IOMQBKLV.js +0 -4
- package/dist/cdn/JDNXYCIG.js +0 -4
- package/dist/cdn/NHLCW2BL.js +0 -4
- package/dist/cdn/ZIBR3KWF.js +0 -4
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250528.
|
3
|
+
v1.0.0-next.20250528.2 */
|
4
4
|
function L(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]]);return t}function C(r){return Object.keys(r).some(e=>{let t=r[e];if(!t)return!1;switch(t&&t.toParam&&(t=t.toParam()),t.constructor.name){case"Array":return!1;case"Object":return!1;case"Date":return!1;case"Function":return!1;case"Boolean":return!1;case"String":return!1;case"Number":return!1;default:return!0}})}function N(r){let e={};return Object.keys(r).forEach(t=>{var n,o;let s=r[t];if(s&&s.toParam&&(s=s.toParam()),!s&&s!==0&&typeof s!="boolean"&&typeof s!="string")return;let i=s.constructor.name,a;switch(i){case"Array":let u=(o=(n=s[0])===null||n===void 0?void 0:n.constructor)===null||o===void 0?void 0:o.name;a=u==="Array"?s:u==="Object"?JSON.stringify(s):s.join(",");break;case"Object":a=JSON.stringify(s);break;case"Date":a=s.valueOf();break;case"Function":a=null;break;case"Boolean":a=s+"";break;default:a=s;break}(a||a===0||typeof a=="string"||Array.isArray(a))&&(e[t]=a)}),e}function J(r,e){return Array.isArray(e)&&e[0]&&Array.isArray(e[0])?e.map(t=>J(r,t)).join("&"):encodeURIComponent(r)+"="+encodeURIComponent(e)}function O(r){let e=N(r);return Object.keys(e).map(t=>J(t,e[t])).join("&")}var K=globalThis.FormData,me=globalThis.File,ge=globalThis.Blob;function W(r,e){let t=C(r)||e,n=N(r);if(t){let o=new K;return Object.keys(n).forEach(s=>{if(typeof Blob<"u"&&n[s]instanceof Blob){let i=n.fileName||n[s].name||s;o.append(s,n[s],i)}else o.append(s,n[s])}),o}else return O(r)}var b=class extends Error{constructor(e,t,n,o,s){super(e);let i=new.target.prototype;Object.setPrototypeOf(this,i),e=e||"UNKNOWN_ERROR",t=t||"UNKNOWN_ERROR_CODE",this.name="ArcGISRequestError",this.message=t==="UNKNOWN_ERROR_CODE"?e:`${t}: ${e}`,this.originalMessage=e,this.code=t,this.response=n,this.url=o,this.options=s}};function V(r){console&&console.warn&&console.warn.apply(console,[r])}function Q(){return Promise.resolve({fetch:globalThis.fetch,Headers:globalThis.Headers,Response:globalThis.Response,Request:globalThis.Request})}var q="@esri/arcgis-rest-js";function ie(){return globalThis.DEFAULT_ARCGIS_REQUEST_OPTIONS||{httpMethod:"POST",params:{f:"json"}}}var R=class extends b{constructor(e="AUTHENTICATION_ERROR",t="AUTHENTICATION_ERROR_CODE",n,o,s){super(e,t,n,o,s),this.name="ArcGISAuthError",this.message=t==="AUTHENTICATION_ERROR_CODE"?e:`${t}: ${e}`;let i=new.target.prototype;Object.setPrototypeOf(this,i)}retry(e,t=1){let n=0,o=(s,i)=>{n=n+1,e(this.url,this.options).then(a=>{let u=Object.assign(Object.assign({},this.options),{authentication:a});return X(this.url,u)}).then(a=>{s(a)}).catch(a=>{a.name==="ArcGISAuthError"&&n<t?o(s,i):a.name===this.name&&a.message===this.message&&n>=t?i(this):i(a)})};return new Promise((s,i)=>{o(s,i)})}};function ae(r,e,t,n,o){if(r.code>=400){let{message:s,code:i}=r;throw new b(s,i,r,e,n)}if(r.error){let{message:s,code:i,messageCode:a}=r.error,u=a||i||"UNKNOWN_ERROR_CODE";throw i===498||i===499?o||new R(s,u,r,e,n):new b(s,u,r,e,n)}if(r.status==="failed"||r.status==="failure"){let s,i="UNKNOWN_ERROR_CODE";try{s=JSON.parse(r.statusMessage).message,i=JSON.parse(r.statusMessage).code}catch{s=r.statusMessage||r.message}throw new b(s,i,r,e,n)}return r}function X(r,e){let t=ie(),n=Object.assign(Object.assign(Object.assign({httpMethod:"POST"},t),e),{params:Object.assign(Object.assign({},t.params),e.params),headers:Object.assign(Object.assign({},t.headers),e.headers)}),{httpMethod:o,rawResponse:s}=n,i=Object.assign({f:"json"},n.params),a=null,u={method:o,signal:n.signal,credentials:n.credentials||"same-origin"};n.headers&&n.headers["X-Esri-Auth-Client-Id"]&&r.indexOf("/oauth2/platformSelf")>-1&&(u.credentials="include");let g;if(typeof n.authentication=="string"){let c=n.authentication;g={portal:"https://www.arcgis.com/sharing/rest",getToken:()=>Promise.resolve(c)},!n.authentication.startsWith("AAPK")&&!n.authentication.startsWith("AATK")&&!n.suppressWarnings&&!globalThis.ARCGIS_REST_JS_SUPPRESS_TOKEN_WARNING&&(V("Using an oAuth 2.0 access token directly in the token option is discouraged. Consider using ArcGISIdentityManager or Application session. See https://esriurl.com/arcgis-rest-js-direct-token-warning for more information."),globalThis.ARCGIS_REST_JS_SUPPRESS_TOKEN_WARNING=!0)}else g=n.authentication;let d=r;return(g?g.getToken(r).catch(c=>(c.url=r,c.options=n,a=c,Promise.resolve(""))):Promise.resolve("")).then(c=>{c.length&&(i.token=c),g&&g.getDomainCredentials&&(u.credentials=g.getDomainCredentials(r));let h={};if(u.method==="GET"){i.token&&n.hideToken&&typeof window>"u"&&(h["X-Esri-Authorization"]=`Bearer ${i.token}`,delete i.token);let f=O(i)===""?r:r+"?"+O(i);n.maxUrlLength&&f.length>n.maxUrlLength||!n.maxUrlLength&&f.length>2e3||i.token&&n.hideToken?(u.method="POST",c.length&&n.hideToken&&(i.token=c,delete h["X-Esri-Authorization"])):r=f}let E=new RegExp("/items/.+/updateResources").test(r);return u.method==="POST"&&(u.body=W(i,E)),u.headers=Object.assign(Object.assign({},h),n.headers),(typeof window>"u"||window&&typeof window.document>"u")&&!u.headers.referer&&(u.headers.referer=q),!C(i)&&!E&&(u.headers["Content-Type"]="application/x-www-form-urlencoded"),globalThis.fetch?globalThis.fetch(r,u):Q().then(({fetch:l})=>l(r,u))}).then(c=>{if(!c.ok)return c.json().then(h=>{let{status:E,statusText:l}=c,{message:f,details:T}=h.error,w=`${f}. ${T?T.join(" "):""}`.trim();throw new b(w,`HTTP ${E} ${l}`,h,r,n)}).catch(h=>{if(h.name==="ArcGISRequestError")throw h;let{status:E,statusText:l}=c;throw new b(l,`HTTP ${E}`,c,r,n)});if(s)return c;switch(i.f){case"json":return c.json();case"geojson":return c.json();case"html":return c.text();case"text":return c.text();default:return c.blob()}}).then(c=>{if((i.f==="json"||i.f==="geojson")&&!s){let h=ae(c,d,i,n,a);if(a){let E=r.toLowerCase().split(/\/rest(\/admin)?\/services\//)[0];n.authentication.federatedServers[E]={token:[],expires:new Date(Date.now()+86400*1e3)},a=null}return h}else return c})}function p(r,e={params:{f:"json"}}){let{request:t}=e,n=L(e,["request"]);return t?t(r,n):X(r,n).catch(o=>o instanceof R&&e.authentication&&typeof e.authentication!="string"&&e.authentication.canRefresh&&e.authentication.refreshCredentials?o.retry(()=>e.authentication.refreshCredentials(),1):Promise.reject(o))}function ce(r){let[e,t]=r.split("=");return{key:decodeURIComponent(e),value:decodeURIComponent(t)}}function Y(r){return!r||r.length<=0?{}:r.replace(/^#/,"").replace(/^\?/,"").split("&").reduce((e,t)=>{let{key:n,value:o}=ce(t);return e[n]=o,e},{})}var B=5*60*1e3;function v(r,e){let t=e;return t.rawResponse=!1,p(r,t).then(n=>{if("token"in n&&"expires"in n)return{token:n.token,username:e.params.username,expires:new Date(n.expires)};let o={token:n.access_token,username:n.username,expires:new Date(Date.now()+n.expires_in*1e3-B),ssl:n.ssl===!0};return n.refresh_token&&(o.refreshToken=n.refresh_token),n.refresh_token_expires_in&&(o.refreshTokenExpires=new Date(Date.now()+n.refresh_token_expires_in*1e3-B)),o})}function m(r){return typeof r!="string"||(r=r.trim(),r[r.length-1]==="/"&&(r=r.slice(0,-1))),r}var F=/^https?:\/\/(\S+)\.arcgis\.com.+/;function Z(r){return F.test(r)}function ue(r){if(!F.test(r))return r;switch(G(r)){case"dev":return"https://devext.arcgis.com/sharing/rest";case"qa":return"https://qaext.arcgis.com/sharing/rest";default:return"https://www.arcgis.com/sharing/rest"}}function G(r){if(!F.test(r))return null;let t=r.match(F)[1].split(".").pop();return t.includes("dev")?"dev":t.includes("qa")?"qa":"production"}function ee(r,e){let t=m(ue(e)).replace(/https?:\/\//,""),n=m(r).replace(/https?:\/\//,"");return new RegExp(n,"i").test(t)}function te(r,e){let t=Z(r),n=Z(e),o=G(r),s=G(e);return!!(t&&n&&o===s)}function re(r,e,t="https://www.arcgis.com/sharing/rest"){let n=`${t}/oauth2/validateAppAccess`;return p(n,{method:"POST",params:{f:"json",client_id:e,token:r}})}function Ge(r,e,t){let n=["params","httpMethod","rawResponse","authentication","hideToken","portal","credentials","maxUrlLength","headers","signal","suppressWarnings","request"],o=Object.assign(Object.assign({params:{}},t),r);return o.params=e.reduce((s,i)=>((r[i]||typeof r[i]=="boolean"||typeof r[i]=="number"&&r[i]===0)&&(s[i]=r[i]),s),o.params),n.reduce((s,i)=>(o[i]&&(s[i]=o[i]),s),{})}var x;(function(r){r.TOKEN_REFRESH_FAILED="TOKEN_REFRESH_FAILED",r.GENERATE_TOKEN_FOR_SERVER_FAILED="GENERATE_TOKEN_FOR_SERVER_FAILED",r.REFRESH_TOKEN_EXCHANGE_FAILED="REFRESH_TOKEN_EXCHANGE_FAILED",r.NOT_FEDERATED="NOT_FEDERATED",r.UNKNOWN_ERROR_CODE="UNKNOWN_ERROR_CODE"})(x||(x={}));var y=class extends Error{constructor(e="UNKNOWN_ERROR",t=x.UNKNOWN_ERROR_CODE,n,o,s){super(e);let i=new.target.prototype;Object.setPrototypeOf(this,i),this.name="ArcGISTokenRequestError",this.message=`${t}: ${e}`,this.originalMessage=e,this.code=t,this.response=n,this.url=o,this.options=s}};var D=class extends Error{constructor(){super("The user has denied your authorization request.");let t=new.target.prototype;Object.setPrototypeOf(this,t),this.name="ArcGISAccessDeniedError"}};var ne;(function(r){r.ArcGISRequestError="ArcGISRequestError",r.ArcGISAuthError="ArcGISAuthError",r.ArcGISAccessDeniedError="ArcGISAccessDeniedError",r.ArcGISTokenRequestError="ArcGISTokenRequestError"})(ne||(ne={}));var A=class{constructor(e){this.portal=e.portal?m(e.portal):"https://www.arcgis.com/sharing/rest",this._username=e.username}get username(){if(this._username)return this._username;if(this._user&&this._user.username)return this._user.username}getUsername(){return this.username?Promise.resolve(this.username):this.getUser().then(e=>e.username)}getUser(e){if(this._pendingUserRequest)return this._pendingUserRequest;if(this._user)return Promise.resolve(this._user);{let t=`${this.portal}/community/self`,n=Object.assign(Object.assign({httpMethod:"GET",authentication:this},e),{rawResponse:!1});return this._pendingUserRequest=p(t,n).then(o=>(this._user=o,this._pendingUserRequest=null,o)),this._pendingUserRequest}}clearCachedUserInfo(){this._user=null}};var H;(function(r){r.Success="Succeeded",r.Failed="Failed",r.Waiting="Waiting",r.Cancelled="Cancelled",r.Cancelling="Cancelling",r.New="New",r.Executing="Executing",r.Submitted="Submitted",r.Failure="Failure",r.TimedOut="TimedOut",r.Error="Error",r.Status="Etatus",r.Unknown="Unknown"})(H||(H={}));function oe(r){let e=`${m(r.portal||"https://www.arcgis.com/sharing/rest")}/oauth2/revokeToken/`,t=r.token,n=r.clientId;delete r.portal,delete r.clientId,delete r.token;let o=Object.assign(Object.assign({},r),{httpMethod:"POST",params:{client_id:n,auth_token:t}});return p(e,o).then(s=>{if(!s.success)throw new b("Unable to revoke token",500,s,e,o);return s})}function M(r,e=window){return!e&&window&&(e=window),e.btoa(String.fromCharCode.apply(null,r)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function se(r,e=window){if(!e&&window&&(e=window),r&&e.isSecureContext&&e.crypto&&e.crypto.subtle){let n=new e.TextEncoder().encode(r);return e.crypto.subtle.digest("SHA-256",n).then(o=>M(new Uint8Array(o),e))}return Promise.resolve(null)}function z(r){!r&&window&&(r=window);let e=r.crypto.getRandomValues(new Uint8Array(32));return M(e)}function le(r){return typeof r.userId=="string"||typeof r.expires=="number"}var k=class r extends A{constructor(e){if(super(e),this.clientId=e.clientId,this._refreshToken=e.refreshToken,this._refreshTokenExpires=e.refreshTokenExpires,this.password=e.password,this._token=e.token,this._tokenExpires=e.tokenExpires,this.portal=e.portal?m(e.portal):"https://www.arcgis.com/sharing/rest",this.ssl=e.ssl,this.provider=e.provider||"arcgis",this.tokenDuration=e.tokenDuration||20160,this.redirectUri=e.redirectUri,this.server=e.server,this.referer=e.referer,this.federatedServers={},this.trustedDomains=[],e.server){let t=this.getServerRootUrl(e.server);this.federatedServers[t]={token:e.token,expires:e.tokenExpires}}this._pendingTokenRequests={}}get token(){return this._token}get tokenExpires(){return this._tokenExpires}get refreshToken(){return this._refreshToken}get refreshTokenExpires(){return this._refreshTokenExpires}get canRefresh(){return!!(this.username&&this.password||this.clientId&&this.refreshToken&&this.redirectUri)}static beginOAuth2(e,t){!t&&window&&(t=window);let{portal:n,provider:o,clientId:s,expiration:i,redirectUri:a,popup:u,popupWindowFeatures:g,locale:d,params:c,style:h,pkce:E,state:l}=Object.assign({portal:"https://www.arcgis.com/sharing/rest",provider:"arcgis",expiration:20160,popup:!0,popupWindowFeatures:"height=400,width=600,menubar=no,location=yes,resizable=yes,scrollbars=yes,status=yes",locale:"",style:"",pkce:!0},e),f=l||z(t),T=`ARCGIS_REST_JS_AUTH_STATE_${s}`;t.localStorage.setItem(T,f);let w=`${m(n)}/oauth2/authorize`,I={client_id:s,response_type:E?"code":"token",expiration:i,redirect_uri:a,state:JSON.stringify({id:f,originalUrl:t.location.href}),locale:d,style:h};o!=="arcgis"&&(w=`${m(n)}/oauth2/social/authorize`,I.socialLoginProviderName=o,I.autoAccountCreateForSocial=!0);let $;if(E){let P=z(t),U=`ARCGIS_REST_JS_CODE_VERIFIER_${s}`;t.localStorage.setItem(U,P),$=se(P,t).then(function(_){I.code_challenge_method=_?"S256":"plain",I.code_challenge=_||P})}else $=Promise.resolve();return $.then(()=>{if(w=`${w}?${O(I)}`,c&&(w=`${w}&${O(c)}`),u)return new Promise((P,U)=>{t.addEventListener(`arcgis-rest-js-popup-auth-${s}`,_=>{if(_.detail.error==="access_denied"){let j=new D;return U(j),j}if(_.detail.errorMessage){let j=new R(_.detail.errorMessage,_.detail.error);return U(j),j}P(new r({clientId:s,portal:n,ssl:_.detail.ssl,token:_.detail.token,tokenExpires:_.detail.expires,username:_.detail.username,refreshToken:_.detail.refreshToken,refreshTokenExpires:_.detail.refreshTokenExpires,redirectUri:a}))},{once:!0}),t.open(w,"oauth-window",g),t.dispatchEvent(new CustomEvent("arcgis-rest-js-popup-auth-start"))});t.location.href=w})}static completeOAuth2(e,t){!t&&window&&(t=window);let{portal:n,clientId:o,popup:s,pkce:i,redirectUri:a}=Object.assign({portal:"https://www.arcgis.com/sharing/rest",popup:!0,pkce:!0},e),u=`ARCGIS_REST_JS_AUTH_STATE_${o}`,g=t.localStorage.getItem(u),d=Y(i?t.location.search.replace(/^\?/,""):t.location.hash.replace(/^#/,"")),c=d&&d.state?JSON.parse(d.state):void 0;function h(l,f,T){if(t.localStorage.removeItem(u),s&&t.opener){t.opener.dispatchEvent(new CustomEvent(`arcgis-rest-js-popup-auth-${o}`,{detail:{error:f,errorMessage:l}})),t.close();return}return T&&t.history.replaceState(t.history.state,"",T),f==="access_denied"?Promise.reject(new D):Promise.reject(new R(l,f))}function E(l,f){if(t.localStorage.removeItem(u),s&&t.opener){t.opener.dispatchEvent(new CustomEvent(`arcgis-rest-js-popup-auth-${o}`,{detail:Object.assign({},l)})),t.close();return}return t.history.replaceState(t.history.state,"",f),new r({clientId:o,portal:n,ssl:l.ssl,token:l.token,tokenExpires:l.expires,username:l.username,refreshToken:l.refreshToken,refreshTokenExpires:l.refreshTokenExpires,redirectUri:a||location.href.replace(location.search,"")})}if(!g||!c)return h("No authentication state was found, call `ArcGISIdentityManager.beginOAuth2(...)` to start the authentication process.","no-auth-state");if(c.id!==g)return h("Saved client state did not match server sent state.","mismatched-auth-state");if(d.error){let l=d.error,f=d.error_description||"Unknown error";return h(f,l,c.originalUrl)}if(i&&d.code){let l=m(`${n}/oauth2/token/`),f=`ARCGIS_REST_JS_CODE_VERIFIER_${o}`,T=t.localStorage.getItem(f);return t.localStorage.removeItem(f),v(l,{httpMethod:"POST",params:{client_id:o,code_verifier:T,grant_type:"authorization_code",redirect_uri:a||location.href.replace(location.search,""),code:d.code}}).then(w=>E(Object.assign(Object.assign({},w),c),c.originalUrl)).catch(w=>h(w.originalMessage,w.code,c.originalUrl))}return!i&&d.access_token?Promise.resolve(E(Object.assign({token:d.access_token,expires:new Date(Date.now()+parseInt(d.expires_in,10)*1e3),ssl:d.ssl==="true",username:d.username},c),c.originalUrl)):h("Unknown error","oauth-error",c.originalUrl)}static fromParent(e,t){!t&&window&&(t=window);let n;return new Promise((o,s)=>{n=i=>{if(i.source===t.parent&&i.data)try{return o(r.parentMessageHandler(i))}catch(a){return s(a)}},t.addEventListener("message",n,!1),t.parent.postMessage({type:"arcgis:auth:requestCredential"},e)}).then(o=>(t.removeEventListener("message",n,!1),o))}static authorize(e,t){let{portal:n,clientId:o,expiration:s,redirectUri:i,state:a}=Object.assign({portal:"https://arcgis.com/sharing/rest",expiration:20160},e),u={client_id:o,expiration:s,response_type:"code",redirect_uri:i};a&&(u.state=a);let g=`${n}/oauth2/authorize?${O(u)}`;t.writeHead(301,{Location:g}),t.end()}static exchangeAuthorizationCode(e,t){let{portal:n,clientId:o,redirectUri:s}=Object.assign({portal:"https://www.arcgis.com/sharing/rest"},e);return v(`${n}/oauth2/token`,{params:{grant_type:"authorization_code",client_id:o,redirect_uri:s,code:t}}).then(i=>new r({clientId:o,portal:n,ssl:i.ssl,redirectUri:s,refreshToken:i.refreshToken,refreshTokenExpires:i.refreshTokenExpires,token:i.token,tokenExpires:i.expires,username:i.username})).catch(i=>{throw new y(i.message,x.REFRESH_TOKEN_EXCHANGE_FAILED,i.response,i.url,i.options)})}static deserialize(e){let t=JSON.parse(e);return new r({clientId:t.clientId,refreshToken:t.refreshToken,refreshTokenExpires:t.refreshTokenExpires?new Date(t.refreshTokenExpires):void 0,username:t.username,password:t.password,token:t.token,tokenExpires:t.tokenExpires?new Date(t.tokenExpires):void 0,portal:t.portal,ssl:t.ssl,tokenDuration:t.tokenDuration,redirectUri:t.redirectUri,server:t.server})}static fromCredential(e,t){let n=typeof e.ssl<"u"?e.ssl:!0,o=e.expires||Date.now()+72e5;return t.hasServer?new r({server:e.server,ssl:n,token:e.token,username:e.userId,tokenExpires:new Date(o)}):new r({portal:m(e.server.includes("sharing/rest")?e.server:e.server+"/sharing/rest"),ssl:n,token:e.token,username:e.userId,tokenExpires:new Date(o)})}static parentMessageHandler(e){if(e.data.type==="arcgis:auth:credential"){let t=e.data.credential;return le(t)?r.fromCredential(t,{hasPortal:!0,hasServer:!1,server:t.server}):new r(t)}if(e.data.type==="arcgis:auth:error"){let t=new Error(e.data.error.message);throw t.name=e.data.error.name,t}else throw new Error("Unknown message type.")}static destroy(e){return oe({clientId:e.clientId,portal:e.portal,token:e.refreshToken||e.token})}static fromToken(e){let t=new r(e);return t.getUser().then(()=>t)}static signIn(e){let t=new r(e);return t.getUser().then(()=>t)}toCredential(){return{expires:this.tokenExpires.getTime(),server:this.server||this.portal,ssl:this.ssl,token:this.token,userId:this.username}}getPortal(e){if(this._pendingPortalRequest)return this._pendingPortalRequest;if(this._portalInfo)return Promise.resolve(this._portalInfo);{let t=`${this.portal}/portals/self`,n=Object.assign(Object.assign({httpMethod:"GET",authentication:this},e),{rawResponse:!1});return this._pendingPortalRequest=p(t,n).then(o=>(this._portalInfo=o,this._pendingPortalRequest=null,o)),this._pendingPortalRequest}}getToken(e,t){return te(this.portal,e)?this.getFreshToken(t):new RegExp(this.portal,"i").test(e)?this.getFreshToken(t):this.getTokenForServer(e,t)}validateAppAccess(e){return this.getToken(this.portal).then(t=>re(t,e))}toJSON(){return{clientId:this.clientId,refreshToken:this.refreshToken,refreshTokenExpires:this.refreshTokenExpires||void 0,username:this.username,password:this.password,token:this.token,tokenExpires:this.tokenExpires||void 0,portal:this.portal,ssl:this.ssl,tokenDuration:this.tokenDuration,redirectUri:this.redirectUri,server:this.server}}serialize(){return JSON.stringify(this)}enablePostMessageAuth(e,t){!t&&window&&(t=window),this._hostHandler=this.createPostMessageHandler(e),t.addEventListener("message",this._hostHandler,!1)}disablePostMessageAuth(e){!e&&window&&(e=window),e.removeEventListener("message",this._hostHandler,!1)}refreshCredentials(e){return this.clearCachedUserInfo(),this.username&&this.password?this.refreshWithUsernameAndPassword(e):this.clientId&&this.refreshToken?this.refreshWithRefreshToken():Promise.reject(new y("Unable to refresh token. No refresh token or password present.",x.TOKEN_REFRESH_FAILED))}getServerRootUrl(e){let[t]=m(e).split(/\/rest(\/admin)?\/services(?:\/|#|\?|$)/),[n,o,s]=t.match(/(https?:\/\/)(.+)/),[i,...a]=s.split("/");return`${o}${i.toLowerCase()}/${a.join("/")}`}getDomainCredentials(e){return!this.trustedDomains||!this.trustedDomains.length?"same-origin":(e=e.toLowerCase(),this.trustedDomains.some(t=>e.startsWith(t.toLowerCase()))?"include":"same-origin")}signOut(){return r.destroy(this)}createPostMessageHandler(e){return t=>{let n=e.indexOf(t.origin)>-1,o=t.data.type==="arcgis:auth:requestCredential",s=this.tokenExpires.getTime()>Date.now();if(n&&o){let i={};if(s){let a=this.toCredential();a.server=a.server.replace("/sharing/rest",""),i={type:"arcgis:auth:credential",credential:a}}else i={type:"arcgis:auth:error",error:{name:"tokenExpiredError",message:"Token was expired, and not returned to the child application"}};t.source.postMessage(i,t.origin)}}}getTokenForServer(e,t){let n=this.getServerRootUrl(e),o=this.federatedServers[n];return o&&o.expires&&o.expires.getTime()>Date.now()?Promise.resolve(o.token):this._pendingTokenRequests[n]?this._pendingTokenRequests[n]:(this._pendingTokenRequests[n]=this.fetchAuthorizedDomains().then(()=>p(`${n}/rest/info`,{credentials:this.getDomainCredentials(e)}).then(s=>{if(s.owningSystemUrl){if(ee(s.owningSystemUrl,this.portal))return p(`${s.owningSystemUrl}/sharing/rest/info`,t);throw new y(`${e} is not federated with ${this.portal}.`,x.NOT_FEDERATED)}else{if(s.authInfo&&this.federatedServers[n]!==void 0)return Promise.resolve({authInfo:s.authInfo});throw new y(`${e} is not federated with any portal and is not explicitly trusted.`,x.NOT_FEDERATED)}}).then(s=>this.token&&this.tokenExpires.getTime()<Date.now()?this.server?this.refreshCredentials().then(()=>({token:this.token,expires:this.tokenExpires})):this.refreshCredentials().then(()=>this.generateTokenForServer(s.authInfo.tokenServicesUrl,n)):this.generateTokenForServer(s.authInfo.tokenServicesUrl,n)).then(s=>(this.federatedServers[n]=s,delete this._pendingTokenRequests[n],s.token))),this._pendingTokenRequests[n])}generateTokenForServer(e,t){return p(e,{params:{token:this.token,serverUrl:t,expiration:this.tokenDuration}}).then(n=>({token:n.token,expires:new Date(n.expires-1e3*60*5)})).catch(n=>{throw new y(n.message,x.GENERATE_TOKEN_FOR_SERVER_FAILED,n.response,n.url,n.options)})}getFreshToken(e){return this.token&&!this.tokenExpires?Promise.resolve(this.token):this.token&&this.tokenExpires&&this.tokenExpires.getTime()>Date.now()?Promise.resolve(this.token):(this._pendingTokenRequests[this.portal]||(this._pendingTokenRequests[this.portal]=this.refreshCredentials(e).then(()=>(this._pendingTokenRequests[this.portal]=null,this.token))),this._pendingTokenRequests[this.portal])}refreshWithUsernameAndPassword(e){let t={username:this.username,password:this.password,expiration:this.tokenDuration,client:"referer",referer:this.referer?this.referer:typeof window<"u"&&typeof window.document<"u"&&window.location&&window.location.origin?window.location.origin:q};return(this.server?p(`${this.getServerRootUrl(this.server)}/rest/info`).then(n=>p(n.authInfo.tokenServicesUrl,Object.assign({params:t},e))):p(`${this.portal}/generateToken`,Object.assign({params:t},e))).then(n=>(this.updateToken(n.token,new Date(n.expires)),this)).catch(n=>{throw new y(n.message,x.TOKEN_REFRESH_FAILED,n.response,n.url,n.options)})}refreshWithRefreshToken(e){if(this.refreshToken&&this.refreshTokenExpires&&this.refreshTokenExpires.getTime()-864e5<Date.now())return this.exchangeRefreshToken(e);let n=Object.assign({params:{client_id:this.clientId,refresh_token:this.refreshToken,grant_type:"refresh_token"}},e);return v(`${this.portal}/oauth2/token`,n).then(o=>this.updateToken(o.token,o.expires)).catch(o=>{throw new y(o.message,x.TOKEN_REFRESH_FAILED,o.response,o.url,o.options)})}updateToken(e,t){return this._token=e,this._tokenExpires=t,this}exchangeRefreshToken(e){let t=Object.assign({params:{client_id:this.clientId,refresh_token:this.refreshToken,redirect_uri:this.redirectUri,grant_type:"exchange_refresh_token"}},e);return v(`${this.portal}/oauth2/token`,t).then(n=>(this._token=n.token,this._tokenExpires=n.expires,this._refreshToken=n.refreshToken,this._refreshTokenExpires=n.refreshTokenExpires,this)).catch(n=>{throw new y(n.message,x.REFRESH_TOKEN_EXCHANGE_FAILED,n.response,n.url,n.options)})}fetchAuthorizedDomains(){return this.server||!this.portal?Promise.resolve(this):this.getPortal().then(e=>(e.authorizedCrossOriginDomains&&e.authorizedCrossOriginDomains.length&&(this.trustedDomains=e.authorizedCrossOriginDomains.filter(t=>!t.startsWith("http://")).map(t=>t.startsWith("https://")?t:`https://${t}`)),this))}};function S(r){return console.log("DEPRECATED:, 'UserSession' is deprecated. Use 'ArcGISIdentityManager' instead."),new k(r)}S.beginOAuth2=function(...r){return console.warn("DEPRECATED:, 'UserSession.beginOAuth2' is deprecated. Use 'ArcGISIdentityManager.beginOAuth2' instead."),k.beginOAuth2(...r)};S.completeOAuth2=function(...r){return console.warn("DEPRECATED:, 'UserSession.completeOAuth2()' is deprecated. Use 'ArcGISIdentityManager.completeOAuth2()' instead."),r.length<=1&&console.warn("WARNING:, 'UserSession.completeOAuth2()' is now async and returns a promise the resolves to an instance of `ArcGISIdentityManager`."),k.completeOAuth2(...r)};S.fromParent=function(...r){return console.warn("DEPRECATED:, 'UserSession.fromParent' is deprecated. Use 'ArcGISIdentityManager.fromParent' instead."),k.fromParent(...r)};S.authorize=function(...r){return console.warn("DEPRECATED:, 'UserSession.authorize' is deprecated. Use 'ArcGISIdentityManager.authorize' instead."),k.authorize(...r)};S.exchangeAuthorizationCode=function(...r){return console.warn("DEPRECATED:, 'UserSession.exchangeAuthorizationCode' is deprecated. Use 'ArcGISIdentityManager.exchangeAuthorizationCode' instead."),k.exchangeAuthorizationCode(...r)};S.fromCredential=function(...r){return console.log("DEPRECATED:, 'UserSession.fromCredential' is deprecated. Use 'ArcGISIdentityManager.fromCredential' instead."),console.warn("WARNING:, 'UserSession.fromCredential' now requires a `ServerInfo` object from the JS API as a second parameter."),k.fromCredential(...r)};S.deserialize=function(...r){return console.log("DEPRECATED:, 'UserSession.deserialize' is deprecated. Use 'ArcGISIdentityManager.deserialize' instead."),k.deserialize(...r)};export{V as a,p as b,Ge as c,m as d,k as e};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250528.
|
4
|
-
import{a as e,b as i,c as l,d as s,e as t}from"./
|
3
|
+
v1.0.0-next.20250528.2 */
|
4
|
+
import{a as e,b as i,c as l,d as s,e as t}from"./YUOGYP2W.js";import{a as r}from"./COLHBQ5X.js";import"./ZJXXAWMH.js";import"./XEO56VFL.js";import"./UHBAUGQ4.js";import"./BB7RJW6E.js";import"./4ME5QMIF.js";import"./R53BLRMX.js";import"./XFDA7NEB.js";import"./JDSGIOVR.js";import"./6XYU4BZS.js";import"./IP6ATOM6.js";import"./RIQZUFV2.js";import"./SFJHXT65.js";import"./RVOILI7H.js";import"./AH5AIEIN.js";import"./GUP4UK2N.js";import"./X6GE3EIS.js";import"./Z2MJRFIE.js";import"./T2DUZEDU.js";import"./N324UTZ5.js";import"./MVN27KOI.js";import"./Y4M5KS3M.js";import"./A3JKO4I4.js";import"./B4HONVWZ.js";var d=async(o,p,a)=>({type:"Layout",elements:[{type:"Notice",options:{notice:{id:"metric-editor-preview-notice",title:"{{shared.notices.metrics.preview.label:translate}}",message:"{{shared.notices.metrics.preview.message:translate}}",configuration:{noticeType:"notice",icon:!0,kind:"info",closable:!1,scale:"s"}}}},{type:"Section",labelKey:"shared.sections.metrics.basic.label",elements:[{labelKey:"shared.fields.metrics.cardTitle.label",scope:"/properties/_metric/properties/cardTitle",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.cardTitle.message.required",icon:!0}]}}]},{type:"Section",labelKey:"shared.sections.metrics.source.label",elements:[{labelKey:"shared.fields.metrics.type.label",scope:"/properties/_metric/properties/type",type:"Control",options:{control:"hub-field-input-tile-select",rules:[[],[],[{effect:r.SHOW,conditions:[!1]}]],enum:{i18nScope:"shared.fields.metrics.type.enum"}}},{scope:"/properties/_metric/properties/valueType",type:"Control",labelKey:"shared.fields.metrics.valueType.label",rule:e,options:{control:"hub-field-input-tile-select",layout:"horizontal",helperText:{labelKey:"shared.fields.metrics.valueType.helperText",placement:"top"},enum:{i18nScope:"shared.fields.metrics.valueType.enum"}}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[i],options:{control:"hub-field-input-input",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[l],options:{control:"hub-field-input-input",clearOnHidden:!0,type:"number",messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{labelKey:"shared.fields.metrics.value.label",scope:"/properties/_metric/properties/value",type:"Control",rules:[s],options:{control:"hub-field-input-date",clearOnHidden:!0,messages:[{type:"ERROR",keyword:"required",labelKey:"shared.fields.metrics.value.message.required",icon:!0}]}},{scope:"/properties/_metric/properties/dynamicMetric",type:"Control",labelKey:"shared.fields.metrics.dynamicMetric.label",rule:t,options:{control:"hub-composite-input-service-query-metric"}},{labelKey:"shared.fields.metrics.unit.label",scope:"/properties/_metric/properties/unit",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.unit.helperText",placement:"top"}}},{labelKey:"shared.fields.metrics.unitPosition.label",scope:"/properties/_metric/properties/unitPosition",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.unitPosition.helperText",placement:"bottom"},control:"hub-field-input-select",enum:{i18nScope:"shared.fields.metrics.unitPosition.enum"}}}]},{type:"Section",labelKey:"shared.sections.metrics.formatting.label",elements:[{labelKey:"shared.fields.metrics.trailingText.label",scope:"/properties/_metric/properties/trailingText",type:"Control",options:{helperText:{labelKey:"shared.fields.metrics.trailingText.helperText",placement:"bottom"}}},{labelKey:"shared.fields.metrics.sourceLink.label",scope:"/properties/_metric/properties/sourceLink",type:"Control",rule:e,options:{placeholder:"https://esri.com",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:"shared.fields.metrics.sourceLink.message.required",allowShowBeforeInteract:!0},{type:"ERROR",keyword:"format",icon:!0,labelKey:"shared.errors.urlFormat"},{type:"ERROR",keyword:"if",hidden:!0}]}},{labelKey:"shared.fields.metrics.sourceTitle.label",scope:"/properties/_metric/properties/sourceTitle",type:"Control",rule:e},{type:"Control",scope:"/properties/_metric/properties/allowDynamicLink",labelKey:"shared.fields.metrics.allowDynamicLink.label",rule:t,options:{layout:"inline-space-between",control:"hub-field-input-switch"}}]}]}),u=async(o,p,a)=>({_metric:{cardTitle:"{{shared.fields.metrics.cardTitle.label:translate}}"}});export{u as buildDefaults,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.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250528.
|
4
|
-
import{a as w}from"./KH77SOOF.js";import{e as E}from"./WFWVO6JC.js";import{B as y,C as b}from"./7TRQSZUN.js";import"./RHIPAMD6.js";import{a as F,c as l,d as C,e as x,f as m}from"./OLCSJ76K.js";import"./AJGIKTXY.js";var L="instant-apps-filter-list calcite-mode-light",$="instant-apps-filter-list calcite-mode-dark",p=["feature","geojson","wfs","csv","scene","subtype-group","point-cloud","map-image","sublayer"];function g(e){return e.replaceAll("'","''")}function f(e,t=!1){if(e){let i=new Date(e),n=`${i.getFullYear()}-${i.getMonth()+1}-${i.getDate()}`;if(t){let s=`${i.getHours()}:${i.getMinutes()}:${i.getSeconds()}`;return`${n} ${s}`}else return n}}function D(e){if(e!=null){e.value=["",""];let t=e.shadowRoot?.querySelectorAll("calcite-input");if(t!=null)for(let i of t)i.value=""}}var S=":host{display:block}.instant-apps-filter-list *{box-sizing:border-box}.instant-apps-filter-list__container{height:100%}.instant-apps-filter-list__container calcite-block:last-of-type{margin-bottom:0}.instant-apps-filter-list__footer{padding:12px;display:flex}.instant-apps-filter-list__footer calcite-button:nth-child(2){margin-left:6px}.instant-apps-filter-list__item-container,.instant-apps-filter-list__item-container--user-input{display:flex;justify-content:space-between;align-items:center}.instant-apps-filter-list__item-container:not(:last-child),.instant-apps-filter-list__item-container--user-input:not(:last-child){padding-bottom:20px}.instant-apps-filter-list__item-container--user-input{margin:0;display:flex;flex-direction:column;align-items:flex-start}.instant-apps-filter-list__item-container--user-input>span{margin:0 0 6px;font-size:14px;font-weight:normal}.instant-apps-filter-list__item-container--user-input calcite-combobox{width:100%;font-size:16px;--calcite-combobox-input-height:24px}.instant-apps-filter-list__number-input-container{width:100%;display:flex;justify-content:center}.instant-apps-filter-list__number-input-container calcite-slider{width:90%}.instant-apps-filter-list__date-picker-input-container{display:flex;align-items:center;justify-content:unset;width:100%}.instant-apps-filter-list__date-picker-input-container calcite-action{height:64px;border-top:1px solid var(--calcite-color-border-input);border-right:1px solid var(--calcite-color-border-input);border-bottom:1px solid var(--calcite-color-border-input)}.instant-apps-filter-list__title{margin-right:20px}.instant-apps-filter-list__title>p{font-size:14px;font-weight:normal;margin:0}.instant-apps-filter-list__checkbox-container{display:flex}.instant-apps-filter-list__checkbox-container calcite-checkbox{height:18px}.instant-apps-filter-list__operator-description{margin:0;--calcite-font-size--1:12px}.instant-apps-filter-list__zoom-to{display:flex;justify-content:flex-end;margin:8px 0 20px}.instant-apps-filter-list__zoom-to calcite-action{width:min-content}.instant-apps-filter-list calcite-input-date-picker{--calcite-font-size--1:16px}@media (prefers-reduced-motion){.instant-apps-filter-list calcite-loader{--calcite-internal-duration-factor:2;--calcite-internal-animation-timing-slow:calc(300ms * 2)}}.instant-apps-filter-list.calcite-mode-dark .instant-apps-filter-list__header-container{background:#2b2b2b;color:#fff}.instant-apps-filter-list.calcite-mode-dark .instant-apps-filter-list__operator-description{background:#353535}",k=S,u={base:"instant-apps-filter-list",filterContainer:"instant-apps-filter-list__container",footer:"instant-apps-filter-list__footer",filterItemTitle:"instant-apps-filter-list__title",filterItemContainer:"instant-apps-filter-list__item-container",filterUIItemContainer:"instant-apps-filter-list__item-container--user-input",checkboxContainer:"instant-apps-filter-list__checkbox-container",numberInputContainer:"instant-apps-filter-list__number-input-container",dateInputContainer:"instant-apps-filter-list__date-picker-input-container",operatorDesc:"instant-apps-filter-list__operator-description",zoomTo:"instant-apps-filter-list__zoom-to"},I=class{constructor(e){F(this,e),this.filterListReset=m(this,"filterListReset",7),this.filterUpdate=m(this,"filterUpdate",7),this.isLayerExpUpdated=!1,this.layerExpressions=void 0,this.autoUpdateUrl=!1,this.closeBtn=!1,this.closeBtnOnClick=void 0,this.comboboxOverlayPositioning="absolute",this.closeBtnText=void 0,this.openFilters=!1,this.extentSelector=!1,this.extentSelectorConfig=void 0,this.urlParams=void 0,this.filterCount=0,this.view=void 0,this.zoomBtn=!0,this.resetBtn=!0,this.resetFiltersOnDisconnect=!0,this.loading=void 0,this.filterLayerExpressions=void 0,this.messages=void 0,this.baseClass=L,this.initDefExpressions=void 0,this.initMapImageExpressions=void 0,this.initPointCloudFilters=void 0}watchViewHandler(){this.handleWhenView()}watchLayerExpressions(){this.resetAllFilters(),this.filterLayerExpressions=structuredClone(this.layerExpressions),this.handleLayerExpressionsUpdate()}async getFilterInitState(){return await Promise.resolve({initDefExpressions:this.initDefExpressions,initMapImageExpressions:this.initMapImageExpressions,initPointCloudFilters:this.initPointCloudFilters})}async forceReset(){return this.resetExpressions(),await Promise.resolve(!0)}async updateInitDefExpressions(e){return this.initDefExpressions=e.initDefExpressions,this.initMapImageExpressions=e.initMapImageExpressions,this.initPointCloudFilters=e.initPointCloudFilters,await Promise.resolve(!0)}async getCurrentLayerExpressions(){let e=structuredClone(this.filterLayerExpressions);return await Promise.resolve(e)}async handleUpdatingT9nData(e){return e==null?await Promise.resolve(!0):(this.filterLayerExpressions?.forEach(t=>{let i=e?.find(n=>n.id===t.id);i!=null&&(t.title=i.title,t.expressions?.forEach(n=>{let s=i.expressions?.find(a=>a.id===n.id);s!=null&&(n.name=s.name)}))}),await Promise.resolve(!0))}connectedCallback(){this.layerExpressions==null&&this.view==null||(this.isLayerExpUpdated=!0,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.handleLayerExpressionsUpdate())}async componentWillLoad(){this.baseClass=w(this.el)==="dark"?$:L,await this.initializeModules(),E(this),!this.isLayerExpUpdated&&(this.isLayerExpUpdated=!0,this.filterLayerExpressions=this.layerExpressions!=null?structuredClone(this.layerExpressions):[],this.view!=null&&this.handleLayerExpressionsUpdate())}componentDidRender(){this.resetBtnEl!=null&&(this.resetBtnEl.disabled=!(this.filterLayerExpressions&&this.filterLayerExpressions.length>0))}disconnectedCallback(){this.resetFiltersOnDisconnect&&(this.isLayerExpUpdated=!1,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.resetAllFilters())}async initializeModules(){let[e,t]=await Promise.all([b(),y()]);this.geometryJsonUtils=t,this.intl=e}render(){let e=this.loading?this.renderLoading():this.initFilterConfig(),t=this.renderFooter();return l(C,{key:"3db1b211528d0ebe2cc379b9dccbd59c38c2f7c4"},l("calcite-panel",{key:"b46732d02815e1ccd7f9355daf5470b0e5080918",class:this.baseClass,ref:i=>this.panelEl=i},l("slot",{key:"0b6b2021c89c4aa78f8a23d34363520a1ebdf21c",slot:"header-content",name:"filter-header-content"}),l("slot",{key:"70bd30b6dc8d0eada179abf13b713e8df852f059",slot:"header-actions-end",name:"filter-header-actions-end"}),l("div",{key:"filter-container",class:u.filterContainer},e,t)))}renderLoading(){return l("calcite-loader",{label:"Loading filters..."})}renderFilter(e){let{id:t}=e;return e.expressions.map((i,n)=>i.type==="checkbox"||i.type==null?l("div",{key:`${t}-${n}`,class:u.filterItemContainer},l("div",{class:u.filterItemTitle},l("p",null,i.name)),l("div",{class:u.checkboxContainer},l("calcite-checkbox",{id:i.id.toString(),scale:"l",checked:i?.active,onCalciteCheckboxChange:this.handleCheckboxChange.bind(this,e,i)}))):this.initInput(e,i))}renderLayerBlock(){return this.filterLayerExpressions?.map(e=>this.renderFilterBlocks(e))}renderFilterBlocks(e){let t=this.renderFilter(e),{operator:i}=e,n=i?.trim()==="OR"?"orOperator":"andOperator",s=this.renderZoomTo(e);return l("calcite-block",{key:e.id,heading:e.title,description:this.messages?.[n],open:this.openFilters?!0:void 0,collapsible:!0},s,t)}renderCombobox(e,t){return l("label",{key:"combo-select",class:u.filterUIItemContainer},l("span",null,t.name),l("calcite-combobox",{id:t.id.toString(),onCalciteComboboxChange:this.handleComboSelect.bind(this,t,e),label:t.name,placeholder:t.placeholder,selectionMode:"multiple","max-items":"6",scale:"s",overlayPositioning:this.comboboxOverlayPositioning},t.fields?.map((i,n)=>this.renderComboboxItem(t,i,n))))}renderComboboxItem(e,t,i){let n=this.createLabel(e,t),a=e?.selectedFields?.includes(t)??!1;return l("calcite-combobox-item",{key:`${n}-${i}`,value:t,heading:`${n}`,selected:a})}initFilterConfig(){if(this.filterLayerExpressions&&this.filterLayerExpressions.length>0){if(this.filterLayerExpressions.length===1){let{operator:e}=this.filterLayerExpressions[0],t=e?.trim()==="OR"?"orOperator":"andOperator",i=this.renderZoomTo(this.filterLayerExpressions[0]);return l("calcite-block",{class:u.operatorDesc,heading:this.messages?.[t],open:!0},i,this.renderFilter(this.filterLayerExpressions[0]))}else if(this.filterLayerExpressions.length>1)return this.renderLayerBlock()}}renderNumberSlider(e,t){let i=t?.min,n=t?.max,s=t?.step?t.step:1,a=i!=null&&n!=null,r=t?.field??"",o=t?.range?.min!=null?t.range.min:i,c=t?.range?.max!=null?t.range.max:n,d=[o,c];return a?l("label",{key:t?.id.toString(),class:u.filterUIItemContainer},l("span",null,t?.name),l("div",{class:u.numberInputContainer},l("calcite-slider",{id:t?.id.toString(),onCalciteSliderChange:this.handleSliderChange.bind(this,t,e),min:i,max:n,minValue:i,maxValue:n,minLabel:this.messages?.minSlider?.replace("{field}",r),maxLabel:this.messages?.maxSlider?.replace("{field}",r),step:s,labelHandles:!0,snap:!0,value:d,"group-separator":t?.format?.digitSeparator,precise:!0}))):void 0}renderDatePicker(e,t){let{min:i,max:n}=t,s=[t?.range?.min,t?.range?.max];return i!=null&&n!=null?l("label",{class:u.filterUIItemContainer},l("span",null,t?.name),l("div",{class:u.dateInputContainer},l("calcite-input-date-picker",{id:t?.id.toString(),onCalciteInputDatePickerChange:this.handleDatePickerRangeChange.bind(this,t,e),min:i,max:n,"overlay-positioning":"fixed",lang:this.intl?.getLocale()??"en",layout:"vertical",value:s,range:!0}),l("calcite-action",{onClick:this.handleResetDatePicker.bind(this,t,e),icon:"reset",text:this.messages?.resetDatePicker,scale:"s"}))):null}renderFooter(){let e=this.closeBtnText??this.messages?.close,t=this.closeBtn&&this.resetBtn?"half":"full";return l("div",{class:u.footer,slot:"footer"},this.resetBtn?l("calcite-button",{appearance:"outline",width:t,ref:i=>this.resetBtnEl=i,onClick:this.handleResetFilter.bind(this)},this.messages?.resetFilter):void 0,this.closeBtn?l("calcite-button",{appearance:"solid",width:t,kind:"brand",onClick:this.closeBtnOnClick?.bind(this)},e):void 0)}renderZoomTo(e){let t=e?.sublayerId?`zoom-to-${e.id}-${e.sublayerId}`:`zoom-to-${e.id}`;return this.zoomBtn?l("div",{class:u.zoomTo},l("calcite-button",{id:t,appearance:"transparent",kind:"neutral",scale:"s",iconStart:"magnifying-glass-plus",onClick:this.handleZoomTo.bind(this,e)},this.messages?.zoomTo)):void 0}handleResetDatePicker(e,t){let i=this.panelEl.querySelector(`[id='${e.id}']`);D(i),e.active=!1,e.definitionExpression=void 0,e.range=void 0,this.generateOutput(t)}initInput(e,t){let{type:i,numDisplayOption:n,displayOption:s}=t;if(i==="string"||i==="coded-value"||(i==="number"||i==="range"||i==="date")&&(n==="drop-down"||s==="drop-down"))return this.renderCombobox(e,t);if(i==="number"||i==="range")return this.renderNumberSlider(e,t);if(i==="date")return this.renderDatePicker(e,t)}async initExpressions(){if(this.loading=!0,this.filterLayerExpressions==null||this.view==null){this.loading=!1;return}await this.processExpressions(),this.loading=!1}async processExpressions(){this.filterLayerExpressions&&await Promise.all(this.filterLayerExpressions.map(async e=>{await Promise.all((e.expressions||[]).map(async t=>await this.setInitExpression(e,t)))}))}handleResetFilter(){this.resetExpressions(),this.resetAllFilters(),this.generateURLParams(),this.filterListReset.emit()}resetExpressions(){this.filterLayerExpressions?.forEach(e=>{e.expressions?.forEach(t=>{let{type:i,numDisplayOption:n,displayOption:s}=t,a="";i==="string"||i==="coded-value"||i==="date"&&(n==="drop-down"||s==="drop-down")||(i==="number"||i==="range")&&(n==="drop-down"||s==="drop-down")?a="combobox":i==="date"?a="datePicker":(i==="number"||i==="range")&&(a="numberRange"),a?this.resetExpressionUI(a,t):this.resetCheckbox(t),t.active=!1})})}resetExpressionUI(e,t){let{id:i}=t;switch(e){case"combobox":{t.selectedFields=void 0;let n=this.panelEl.querySelector(`[id='${i}']`);n&&Array.from(n.children).forEach(s=>{s.selected=!1});break}case"datePicker":{t.range=void 0;let n=this.panelEl.querySelector(`[id='${i}']`);D(n);break}case"numberRange":{t.range=void 0;let n=this.panelEl.querySelector(`[id='${i}']`);n&&(n.minValue=t.min,n.maxValue=t.max);break}}}resetCheckbox(e){let{id:t}=e,i=this.panelEl.querySelector(`[id='${t}']`);i!=null&&(i.checked=!1)}resetAllFilters(){this.view?.map?.allLayers?.concat(this.view?.map?.allTables)?.forEach(t=>{if(!p.includes(t.type))return;let i=t;if(i.type==="point-cloud"){if(!this.initPointCloudFilters)return;i.filters=this.initPointCloudFilters[i.id]}else if(i.type==="map-image")i.allSublayers.forEach(n=>{n.definitionExpression=this.initMapImageExpressions?.[i.id]?.[n.id]??""});else{if(this.initDefExpressions==null)return;i.definitionExpression=this.initDefExpressions[i.id]}})}async updateStringExpression(e,t){let i=this.findFilterLayer(e);return await this.getFeatureAttributes(i,t),this.handleDateField(i,t),t?.selectedFields?(t.definitionExpression=this.createDefinitionExpression(t),!0):!1}handleDateField(e,t){t.type==="date"&&e.fields.find(({name:n})=>n===t.field)?.type==="date-only"&&(t.dateOnly=!0)}createDefinitionExpression(e){if(!e.selectedFields?.length)return"";let t=e.selectedFields.map(i=>typeof i=="number"?i:`'${g(i)}'`);return`${e.field} IN (${t.join(",")})`}async updateNumberExpression(e,t){if(!t?.min&&t?.min!==0||!t?.max&&t?.max!==0){let i=this.findFilterLayer(e),{field:n}=t;if(n!=null)if(this.setExpressionFormat(i,t,n),t?.numDisplayOption==="drop-down"||t?.displayOption==="drop-down")await this.getFeatureAttributes(i,t);else{let a=(await this.calculateMinMaxStatistics(i,n))?.[0]?.attributes;if(t.format?.places!=null?(t.min=this.roundMinNumberDown(a[`min${n}`],t.format.places),t.max=this.roundMaxNumberUp(a[`max${n}`],t.format.places)):(t.min=a[`min${n}`],t.max=a[`max${n}`]),t?.range&&Object.keys(t.range).length){let{min:r,max:o}=t.range;return t.definitionExpression=`${t.field} BETWEEN ${r} AND ${o}`,!0}}}return!1}async updateDateExpression(e,t){let{field:i,range:n}=t,s=this.findFilterLayer(e),r=(await this.calculateMinMaxStatistics(s,i))?.[0]?.attributes;if(t.min=f(r[`min${i}`]),t.max=f(r[`max${i}`]),n!=null&&(n?.max!=null||n?.min!=null)){let{min:o,max:c}=n;if(o=o?.replace("+"," "),c=c?.replace("+"," "),o||c){let d=c&&!o?"<":!c&&o?">":null;return d?t.definitionExpression=`${i} ${d} '${o??c}'`:t.definitionExpression=`${i} BETWEEN '${o}' AND '${c}'`,!0}}return!1}async updateCodedValueExpression(e,t,i){if(!i?.domain||i?.domain?.type!=="coded-value")return!1;let n=this.findFilterLayer(e);await this.getFeatureAttributes(n,t);let a=i.domain.codedValues.reduce((r,{code:o,name:c})=>(r[o]=c,r),{});if(t.codedValues=a,t.selectedFields?.length){let r=t.selectedFields.map(o=>typeof o=="number"?o:`'${g(o)}'`).join(",");return t.definitionExpression=`${t.field} IN (${r})`,!0}return!1}updateRangeExpression(e,t){if(!t?.domain||t?.domain?.type!=="range")return!1;let{field:i,range:n}=e;return e.min=t.domain.minValue,e.max=t.domain.maxValue,n&&Object.keys(n).length?(e.definitionExpression=`${i} BETWEEN ${n.min} AND ${n.max}`,!0):!1}async getFeatureAttributes(e,t){if(!this.isLayerSupported(e)){t.fields=[];return}let i=await this.getQueryLayer(e),{maxRecordCount:n,supportsMaxRecordCountFactor:s}=this.extractQueryCapabilities(e),a=await i.queryFeatureCount(),r=this.createQuery(i,t);await this.queryDistinctFeatures(i,r,t),this.shouldPaginate(n,a,s)&&this.handlePagination(i,r,n,s,a,t)}isLayerSupported(e){return e&&p.includes(e.type)}extractQueryCapabilities(e){return{maxRecordCount:e.capabilities?.query?.maxRecordCount??e.sourceJSON?.maxRecordCount,supportsMaxRecordCountFactor:e.capabilities?.query?.supportsMaxRecordCountFactor}}createQuery(e,t){let i=e.createQuery();this.applyCacheHint(e,i);let n=t?.field;if(n){let s=this.getInitDefExprFromLayer(e);i.where=s||"1=1",i.outFields=[n],i.orderByFields=[`${n} ASC`],i.returnDistinctValues=!0,i.returnGeometry=!1,i.maxRecordCountFactor=5,this.applyQueryGeometryFromExtentSelector(i)}return i}async queryDistinctFeatures(e,t,i){if(!t.outFields)return;let n=await this.queryForFeatures(e,t,t.outFields[0]);n?.length&&(i.fields=[...new Set(n)],i.type==="string"?i.fields=i.fields.sort((s,a)=>s.localeCompare(a)):i.type==="number"&&(i.fields=i.fields.sort((s,a)=>s-a)))}getQueryCount(e,t){return t?e*5:e}shouldPaginate(e,t,i){let n=this.getQueryCount(e,i);return e!=null&&t>n}async handlePagination(e,t,i,n,s,a){let r=this.getQueryCount(i,n),o=[];for(let c=r;c<s;c+=r){let d=t.clone();d.num=i,d.start=c,o.push(this.queryForFeatures(e,d,t?.outFields?.[0]??""))}Promise.all(o).then(c=>{c.forEach(d=>{d?.length&&a.fields&&a.fields.push(...d)}),a.type==="string"?a.fields=[...new Set(a.fields)].sort((d,h)=>d.localeCompare(h)):a.type==="number"?a.fields=[...new Set(a.fields)].sort((d,h)=>d-h):a.fields=[...new Set(a.fields)].sort()})}async queryForFeatures(e,t,i){return(await e.queryFeatures(t))?.features.filter(a=>a.attributes?.[i])?.map(a=>a.attributes?.[i])}async calculateMinMaxStatistics(e,t){if(!e||!p.includes(e.type)||!t)return[];let i=this.createStatisticsQuery(e,t);return(await e.queryFeatures(i))?.features||[]}createStatisticsQuery(e,t){let i=e.createQuery();return i.where=this.getInitDefExprFromLayer(e)||"1=1",this.applyCacheHint(e,i),i.outStatistics=[{onStatisticField:t,outStatisticFieldName:`max${t}`,statisticType:"max"},{onStatisticField:t,outStatisticFieldName:`min${t}`,statisticType:"min"}],this.applyQueryGeometryFromExtentSelector(i),i}getExtent(e,t){if(e&&t){let{constraints:i}=t,s={...i}?.geometry;if(s){let a="extent"in s?s:this.geometryJsonUtils.fromJSON(s);if(a?.type==="extent"||a?.type==="polygon")return a}}}async setInitExpression(e,t){if(!t.field||!t.type){await this.updateExpression(e,t,void 0);return}let i=this.findFilterLayer(e);i&&((i.loadStatus==="not-loaded"||i.loadStatus==="failed")&&await i.load(),await i.when(async()=>{let n=i.fields?.find(({name:a})=>a===t.field),s=n?.domain?.type;t.type=s==="coded-value"||s==="range"?s:t.type,await this.updateExpression(e,t,n)}))}async updateExpression(e,t,i){await this.handleExpressionType(e,t,i)&&this.generateOutput(e)}async handleExpressionType(e,t,i){switch(t.type){case"string":return await this.updateStringExpression(e,t);case"number":return await this.updateNumberExpression(e,t);case"date":return await this.updateDateExpressionBasedOnDisplayOption(e,t);case"coded-value":return await this.updateCodedValueExpression(e,t,i);case"range":return await this.updateRangeExpressionBasedOnDisplayOption(e,t,i);case"checkbox":case null:case void 0:return t.active??!1;default:return!1}}async updateDateExpressionBasedOnDisplayOption(e,t){return t.displayOption==="drop-down"?await this.updateStringExpression(e,t):await this.updateDateExpression(e,t)}async updateRangeExpressionBasedOnDisplayOption(e,t,i){return t.displayOption==="drop-down"?await this.updateStringExpression(e,t):this.updateRangeExpression(t,i)}updateRangeExpressions(e,t,i,n){let s=this.getInitDefExprFromLayerExpression(t);(n||n===0)&&(i||i===0)&&(n===e?.min&&i===e?.max?(e.definitionExpression=void 0,e.active=!1):(e.definitionExpression=s?`(${s}) AND ${e?.field} BETWEEN ${n} AND ${i}`:`${e?.field} BETWEEN ${n} AND ${i}`,e.active=!0)),e.range={min:n,max:i}}handleCheckboxChange(e,t,i){let n=i.target;t.active=n.checked,this.generateOutput(e)}handleSliderChange(e,t,i){let{maxValue:n,minValue:s}=i.target;this.updateRangeExpressions(e,t,n,s),this.generateOutput(t)}handleComboSelect(e,t,i){let s=i.target.selectedItems,{field:a,type:r}=e;if(e.selectedFields=s.map(({value:o})=>o),s.length){let o=s.map(({value:c})=>typeof c=="number"?c:`'${g(c)}'`);e.definitionExpression=r==="date"?o.map(c=>this.buildDateExpression(c,a)).join(" OR "):`${a} IN (${o.join(",")})`,e.active=!0}else e.definitionExpression=void 0,e.active=!1;this.generateOutput(t)}handleDatePickerRangeChange(e,t,i){let n=i.target,[s,a]=n.valueAsDate,r=s?f(Math.floor(s.getTime()),!0):void 0,o=a?f(Math.floor(a.getTime()),!0):void 0;(r||o)&&(e.definitionExpression=this.constructDefinitionExpression(e.field,r,o),e.range={min:r,max:o},e.active=!0,this.generateOutput(t))}constructDefinitionExpression(e,t,i){return t?i?`${e} BETWEEN '${t}' AND '${i}'`:`${e} > '${t}'`:`${e} < '${i}'`}handleURLParams(){if(!("URLSearchParams"in window))return;let t=new URLSearchParams(document.location.search).get("filter");if(!t){this.filterCount=0;return}let i=t.split(";").map(n=>JSON.parse(n));this.filterCount=this.applyFilters(i)}applyFilters(e){let t=0;return e.forEach(i=>{let n=this.filterLayerExpressions?.find(s=>s.id===i.layerId);n&&n.expressions?.forEach(s=>{s.id?.toString()===i.expressionId?.toString()&&(this.activateExpression(s,i),t++)})}),t}activateExpression(e,t){e.active=!0,t.type==="range"?e.range=t.range:t.type==="select"&&(e.selectedFields=t.selectedFields)}createURLParamExpression(e,t){let{id:i,range:n,selectedFields:s,type:a}=t;return a==="string"||a==="coded-value"||t?.numDisplayOption==="drop-down"||t?.displayOption==="drop-down"?{type:"select",layerId:e.id,expressionId:i.toString(),selectedFields:s}:a==="number"||a==="range"||a==="date"?{type:"range",layerId:e.id,expressionId:i.toString(),range:n}:{layerId:e.id,expressionId:i.toString()}}autoUpdateURLCheck(e){if(this.autoUpdateUrl){let t=e.toString()?`${window.location.pathname}?${e}`.trim():window.location.pathname;window.history.replaceState({},"",t)}}generateURLParams(){if(!("URLSearchParams"in window))return;let e=new URLSearchParams(window.location.search),t=this.filterLayerExpressions?.flatMap(i=>i?.expressions?.filter(n=>n.active).map(n=>JSON.stringify(this.createURLParamExpression(i,n)))||[])||[];this.filterCount=t.length,t.length>0?e.set("filter",t.join(";")):e.delete("filter"),this.autoUpdateURLCheck(e),this.urlParams=e}updateFilter(e,t,i){let{id:n}=e,s=this.view.map?.findLayerById(n)??this.view.map?.findTableById(n);if(s!=null)if(s.type==="point-cloud")this.updateFilterLayerPCLFilter(s,i);else if(s.type==="map-image"){let a=s.findSublayerById(e?.sublayerId);a!=null&&this.updateFilterLayerDefExpression(a,t,e)}else this.updateFilterLayerDefExpression(s,t,e)}updateFilterLayerDefExpression(e,t,i){let{operator:n}=i,s=this.getInitDefExprFromLayer(e),a=t?.length>0&&s!=null&&s!==""?`(${t.join(n)}) AND (${s})`:t.length>0?t.join(n):s;e.definitionExpression=a}updateFilterLayerPCLFilter(e,t){e.filters=t}async handleWhenView(){if(this.view==null)return;await this.view.map.loadAll(),this.handleLayerExpressionsUpdate()}async handleLayerExpressionsUpdate(){this.updateInitExpressions(),this.handleURLParams(),this.initExpressions()}async handleZoomTo(e){let t=e?.sublayerId?`#zoom-to-${e.id}-${e.sublayerId}`:`#zoom-to-${e.id}`,i=this.panelEl.querySelector(t),n=(s,a)=>{i&&(i.loading=s,i.disabled=a)};if(n(!0,!0),await this.getZoomToExtent(e),this.zoomToExtent){let s=this.zoomToExtent.type==="point"&&this.zoomToExtent.count===1?{target:this.zoomToExtent.extent,zoom:10}:this.zoomToExtent.extent;await this.view.goTo(s)}n(!1,!1)}async getZoomToExtent(e){let i=this.view.allLayerViews.find(({layer:s})=>s.id===e.id).layer,n=i.type==="map-image"?i.findSublayerById(e.sublayerId):i;if(n&&n.type!=="point-cloud"&&p.includes(n?.type)){let s=await this.getQueryLayer(n),a=s.createQuery();a.where=s.definitionExpression??"1=1";let r=await s.queryExtent(a);this.zoomToExtent={...r,type:s.geometryType}}}applyFilterToQuery(e,t){let i=this.view.allLayerViews.find(({layer:s})=>s.id===t.id),n=i?.featureEffect?.filter??i.filter;n&&["objectIds","distance","geometry","spatialRelationship","units","where","timeExtent"].forEach(a=>{n[a]!=null&&(e[a]=n[a])})}generateOutput(e){if(this.view==null)return;let t=[],i=[];if(e){for(let n of e.expressions){let{active:s,definitionExpression:a,pointCloudFilters:r}=n;s&&a&&t.push(`(${a})`),s&&r!=null&&r.length>0&&(i=i.concat(r))}this.updateFilter(e,t,i),this.generateURLParams(),this.filterUpdate.emit()}}numberWithCommas(e){return e.toLocaleString("en-US",{maximumFractionDigits:20})}scientificRounding(e,t,i){if(e==null)return;let n;if(!String(e).includes("e"))n=Math[i](e*Math.pow(10,t))/Math.pow(10,t);else{let[s,a]=String(e).split("e").map(c=>Number(c)),r=a+t;n=Math[i](+`${s}e${r}`)*Math.pow(10,-t)}return+n.toFixed(t)}roundMinNumberDown(e,t){return this.scientificRounding(e,t,"floor")}roundMaxNumberUp(e,t){return this.scientificRounding(e,t,"ceil")}roundNumber(e,t){return this.scientificRounding(e,t,"round")??e}setExpressionFormat(e,t,i){if(e?.popupTemplate!=null){let n=e?.popupTemplate.fieldInfos?.find(({fieldName:s})=>s===i);n?.format&&(t.format=n.format)}}getInitDefExprFromLayer(e){return e.type==="sublayer"?this.initMapImageExpressions?.[e?.layer?.id??""]?.[e.id]??"":this.initDefExpressions?.[e.id]??""}getInitDefExprFromLayerExpression(e){return e?.sublayerId!=null?this.initMapImageExpressions?.[e.id]?.[e.sublayerId]??"":this.initDefExpressions?.[e.id]??""}findFilterLayer(e){let i=this.view.map?.allLayers.concat(this.view.map?.allTables)?.find(({id:n})=>n===e.id);return i.type==="map-image"?i?.findSublayerById(e.sublayerId):i}createLabel(e,t){if(e.type==="coded-value")return e?.codedValues?.[t];if(e.type==="number"&&typeof t=="number"){let i=t;return e.format?.places!=null&&(i=this.roundNumber(t,e.format.places)),e.format?.digitSeparator?this.numberWithCommas(i):i}if(e.type==="date"&&!e.dateOnly){let i=this.intl.convertDateFormatToIntlOptions("short-date-long-time");return this.intl.formatDate(t,i)}return t}buildDateExpression(e,t){if(e){let i=new Date(e),n=new Date(e),s=new Date(n.setDate(i.getDate()+1)),a=`${i.getFullYear()}-${i.getMonth()+1}-${i.getDate()}`,r=`${i.getHours()}:${i.getMinutes()}:${i.getSeconds()}`,o=`${s.getHours()}:${s.getMinutes()}:${s.getSeconds()}`,c=`${s.getFullYear()}-${s.getMonth()+1}-${s.getDate()}`;return`${t} BETWEEN '${a} ${r}' AND '${c} ${o}'`}}async getQueryLayer(e){let t=e.type==="sublayer"?await e.createFeatureLayer():e;if(!t)throw new Error("Failed to create feature layer");return t}applyCacheHint(e,t){e?.capabilities?.query?.supportsCacheHint&&(t.cacheHint=!0)}applyQueryGeometryFromExtentSelector(e){if(!this.extentSelector||!this.extentSelectorConfig)return;let t=this.getExtent(this.extentSelector,this.extentSelectorConfig);t&&(e.geometry=t,e.spatialRelationship="intersects")}updateInitExpressions(){if(this.view==null)return;let e=this.view.map;this.initDefExpressions={},this.initPointCloudFilters={},this.initMapImageExpressions={},e.allLayers.concat(e.allTables).forEach(t=>{if(!p.includes(t.type))return;let i=t;if(i.type==="point-cloud")this.initPointCloudFilters||(this.initPointCloudFilters={}),this.initPointCloudFilters[i.id]=i.filters;else if(i.type==="map-image")this.initMapImageExpressions||(this.initMapImageExpressions={}),this.initMapImageExpressions[i.id]=i.allSublayers.reduce((n,s)=>(n[s.id]=s.definitionExpression??"",n),{});else{if(!this.initDefExpressions)return;this.initDefExpressions[i.id]=i.definitionExpression??""}})}get el(){return x(this)}static get watchers(){return{view:["watchViewHandler"],layerExpressions:["watchLayerExpressions"]}}};I.style=k;export{I as instant_apps_filter_list};
|
3
|
+
v1.0.0-next.20250528.2 */
|
4
|
+
import{a as w}from"./IUBGSA3I.js";import{e as E}from"./6QWS7JEN.js";import{B as y,C as b}from"./CLZ42RFU.js";import"./6CPKRUI3.js";import{a as F,c as l,d as C,e as x,f as m}from"./KZWHC2ST.js";import"./B4HONVWZ.js";var L="instant-apps-filter-list calcite-mode-light",$="instant-apps-filter-list calcite-mode-dark",p=["feature","geojson","wfs","csv","scene","subtype-group","point-cloud","map-image","sublayer"];function g(e){return e.replaceAll("'","''")}function f(e,t=!1){if(e){let i=new Date(e),n=`${i.getFullYear()}-${i.getMonth()+1}-${i.getDate()}`;if(t){let s=`${i.getHours()}:${i.getMinutes()}:${i.getSeconds()}`;return`${n} ${s}`}else return n}}function D(e){if(e!=null){e.value=["",""];let t=e.shadowRoot?.querySelectorAll("calcite-input");if(t!=null)for(let i of t)i.value=""}}var S=":host{display:block}.instant-apps-filter-list *{box-sizing:border-box}.instant-apps-filter-list__container{height:100%}.instant-apps-filter-list__container calcite-block:last-of-type{margin-bottom:0}.instant-apps-filter-list__footer{padding:12px;display:flex}.instant-apps-filter-list__footer calcite-button:nth-child(2){margin-left:6px}.instant-apps-filter-list__item-container,.instant-apps-filter-list__item-container--user-input{display:flex;justify-content:space-between;align-items:center}.instant-apps-filter-list__item-container:not(:last-child),.instant-apps-filter-list__item-container--user-input:not(:last-child){padding-bottom:20px}.instant-apps-filter-list__item-container--user-input{margin:0;display:flex;flex-direction:column;align-items:flex-start}.instant-apps-filter-list__item-container--user-input>span{margin:0 0 6px;font-size:14px;font-weight:normal}.instant-apps-filter-list__item-container--user-input calcite-combobox{width:100%;font-size:16px;--calcite-combobox-input-height:24px}.instant-apps-filter-list__number-input-container{width:100%;display:flex;justify-content:center}.instant-apps-filter-list__number-input-container calcite-slider{width:90%}.instant-apps-filter-list__date-picker-input-container{display:flex;align-items:center;justify-content:unset;width:100%}.instant-apps-filter-list__date-picker-input-container calcite-action{height:64px;border-top:1px solid var(--calcite-color-border-input);border-right:1px solid var(--calcite-color-border-input);border-bottom:1px solid var(--calcite-color-border-input)}.instant-apps-filter-list__title{margin-right:20px}.instant-apps-filter-list__title>p{font-size:14px;font-weight:normal;margin:0}.instant-apps-filter-list__checkbox-container{display:flex}.instant-apps-filter-list__checkbox-container calcite-checkbox{height:18px}.instant-apps-filter-list__operator-description{margin:0;--calcite-font-size--1:12px}.instant-apps-filter-list__zoom-to{display:flex;justify-content:flex-end;margin:8px 0 20px}.instant-apps-filter-list__zoom-to calcite-action{width:min-content}.instant-apps-filter-list calcite-input-date-picker{--calcite-font-size--1:16px}@media (prefers-reduced-motion){.instant-apps-filter-list calcite-loader{--calcite-internal-duration-factor:2;--calcite-internal-animation-timing-slow:calc(300ms * 2)}}.instant-apps-filter-list.calcite-mode-dark .instant-apps-filter-list__header-container{background:#2b2b2b;color:#fff}.instant-apps-filter-list.calcite-mode-dark .instant-apps-filter-list__operator-description{background:#353535}",k=S,u={base:"instant-apps-filter-list",filterContainer:"instant-apps-filter-list__container",footer:"instant-apps-filter-list__footer",filterItemTitle:"instant-apps-filter-list__title",filterItemContainer:"instant-apps-filter-list__item-container",filterUIItemContainer:"instant-apps-filter-list__item-container--user-input",checkboxContainer:"instant-apps-filter-list__checkbox-container",numberInputContainer:"instant-apps-filter-list__number-input-container",dateInputContainer:"instant-apps-filter-list__date-picker-input-container",operatorDesc:"instant-apps-filter-list__operator-description",zoomTo:"instant-apps-filter-list__zoom-to"},I=class{constructor(e){F(this,e),this.filterListReset=m(this,"filterListReset",7),this.filterUpdate=m(this,"filterUpdate",7),this.isLayerExpUpdated=!1,this.layerExpressions=void 0,this.autoUpdateUrl=!1,this.closeBtn=!1,this.closeBtnOnClick=void 0,this.comboboxOverlayPositioning="absolute",this.closeBtnText=void 0,this.openFilters=!1,this.extentSelector=!1,this.extentSelectorConfig=void 0,this.urlParams=void 0,this.filterCount=0,this.view=void 0,this.zoomBtn=!0,this.resetBtn=!0,this.resetFiltersOnDisconnect=!0,this.loading=void 0,this.filterLayerExpressions=void 0,this.messages=void 0,this.baseClass=L,this.initDefExpressions=void 0,this.initMapImageExpressions=void 0,this.initPointCloudFilters=void 0}watchViewHandler(){this.handleWhenView()}watchLayerExpressions(){this.resetAllFilters(),this.filterLayerExpressions=structuredClone(this.layerExpressions),this.handleLayerExpressionsUpdate()}async getFilterInitState(){return await Promise.resolve({initDefExpressions:this.initDefExpressions,initMapImageExpressions:this.initMapImageExpressions,initPointCloudFilters:this.initPointCloudFilters})}async forceReset(){return this.resetExpressions(),await Promise.resolve(!0)}async updateInitDefExpressions(e){return this.initDefExpressions=e.initDefExpressions,this.initMapImageExpressions=e.initMapImageExpressions,this.initPointCloudFilters=e.initPointCloudFilters,await Promise.resolve(!0)}async getCurrentLayerExpressions(){let e=structuredClone(this.filterLayerExpressions);return await Promise.resolve(e)}async handleUpdatingT9nData(e){return e==null?await Promise.resolve(!0):(this.filterLayerExpressions?.forEach(t=>{let i=e?.find(n=>n.id===t.id);i!=null&&(t.title=i.title,t.expressions?.forEach(n=>{let s=i.expressions?.find(a=>a.id===n.id);s!=null&&(n.name=s.name)}))}),await Promise.resolve(!0))}connectedCallback(){this.layerExpressions==null&&this.view==null||(this.isLayerExpUpdated=!0,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.handleLayerExpressionsUpdate())}async componentWillLoad(){this.baseClass=w(this.el)==="dark"?$:L,await this.initializeModules(),E(this),!this.isLayerExpUpdated&&(this.isLayerExpUpdated=!0,this.filterLayerExpressions=this.layerExpressions!=null?structuredClone(this.layerExpressions):[],this.view!=null&&this.handleLayerExpressionsUpdate())}componentDidRender(){this.resetBtnEl!=null&&(this.resetBtnEl.disabled=!(this.filterLayerExpressions&&this.filterLayerExpressions.length>0))}disconnectedCallback(){this.resetFiltersOnDisconnect&&(this.isLayerExpUpdated=!1,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.resetAllFilters())}async initializeModules(){let[e,t]=await Promise.all([b(),y()]);this.geometryJsonUtils=t,this.intl=e}render(){let e=this.loading?this.renderLoading():this.initFilterConfig(),t=this.renderFooter();return l(C,{key:"3db1b211528d0ebe2cc379b9dccbd59c38c2f7c4"},l("calcite-panel",{key:"b46732d02815e1ccd7f9355daf5470b0e5080918",class:this.baseClass,ref:i=>this.panelEl=i},l("slot",{key:"0b6b2021c89c4aa78f8a23d34363520a1ebdf21c",slot:"header-content",name:"filter-header-content"}),l("slot",{key:"70bd30b6dc8d0eada179abf13b713e8df852f059",slot:"header-actions-end",name:"filter-header-actions-end"}),l("div",{key:"filter-container",class:u.filterContainer},e,t)))}renderLoading(){return l("calcite-loader",{label:"Loading filters..."})}renderFilter(e){let{id:t}=e;return e.expressions.map((i,n)=>i.type==="checkbox"||i.type==null?l("div",{key:`${t}-${n}`,class:u.filterItemContainer},l("div",{class:u.filterItemTitle},l("p",null,i.name)),l("div",{class:u.checkboxContainer},l("calcite-checkbox",{id:i.id.toString(),scale:"l",checked:i?.active,onCalciteCheckboxChange:this.handleCheckboxChange.bind(this,e,i)}))):this.initInput(e,i))}renderLayerBlock(){return this.filterLayerExpressions?.map(e=>this.renderFilterBlocks(e))}renderFilterBlocks(e){let t=this.renderFilter(e),{operator:i}=e,n=i?.trim()==="OR"?"orOperator":"andOperator",s=this.renderZoomTo(e);return l("calcite-block",{key:e.id,heading:e.title,description:this.messages?.[n],open:this.openFilters?!0:void 0,collapsible:!0},s,t)}renderCombobox(e,t){return l("label",{key:"combo-select",class:u.filterUIItemContainer},l("span",null,t.name),l("calcite-combobox",{id:t.id.toString(),onCalciteComboboxChange:this.handleComboSelect.bind(this,t,e),label:t.name,placeholder:t.placeholder,selectionMode:"multiple","max-items":"6",scale:"s",overlayPositioning:this.comboboxOverlayPositioning},t.fields?.map((i,n)=>this.renderComboboxItem(t,i,n))))}renderComboboxItem(e,t,i){let n=this.createLabel(e,t),a=e?.selectedFields?.includes(t)??!1;return l("calcite-combobox-item",{key:`${n}-${i}`,value:t,heading:`${n}`,selected:a})}initFilterConfig(){if(this.filterLayerExpressions&&this.filterLayerExpressions.length>0){if(this.filterLayerExpressions.length===1){let{operator:e}=this.filterLayerExpressions[0],t=e?.trim()==="OR"?"orOperator":"andOperator",i=this.renderZoomTo(this.filterLayerExpressions[0]);return l("calcite-block",{class:u.operatorDesc,heading:this.messages?.[t],open:!0},i,this.renderFilter(this.filterLayerExpressions[0]))}else if(this.filterLayerExpressions.length>1)return this.renderLayerBlock()}}renderNumberSlider(e,t){let i=t?.min,n=t?.max,s=t?.step?t.step:1,a=i!=null&&n!=null,r=t?.field??"",o=t?.range?.min!=null?t.range.min:i,c=t?.range?.max!=null?t.range.max:n,d=[o,c];return a?l("label",{key:t?.id.toString(),class:u.filterUIItemContainer},l("span",null,t?.name),l("div",{class:u.numberInputContainer},l("calcite-slider",{id:t?.id.toString(),onCalciteSliderChange:this.handleSliderChange.bind(this,t,e),min:i,max:n,minValue:i,maxValue:n,minLabel:this.messages?.minSlider?.replace("{field}",r),maxLabel:this.messages?.maxSlider?.replace("{field}",r),step:s,labelHandles:!0,snap:!0,value:d,"group-separator":t?.format?.digitSeparator,precise:!0}))):void 0}renderDatePicker(e,t){let{min:i,max:n}=t,s=[t?.range?.min,t?.range?.max];return i!=null&&n!=null?l("label",{class:u.filterUIItemContainer},l("span",null,t?.name),l("div",{class:u.dateInputContainer},l("calcite-input-date-picker",{id:t?.id.toString(),onCalciteInputDatePickerChange:this.handleDatePickerRangeChange.bind(this,t,e),min:i,max:n,"overlay-positioning":"fixed",lang:this.intl?.getLocale()??"en",layout:"vertical",value:s,range:!0}),l("calcite-action",{onClick:this.handleResetDatePicker.bind(this,t,e),icon:"reset",text:this.messages?.resetDatePicker,scale:"s"}))):null}renderFooter(){let e=this.closeBtnText??this.messages?.close,t=this.closeBtn&&this.resetBtn?"half":"full";return l("div",{class:u.footer,slot:"footer"},this.resetBtn?l("calcite-button",{appearance:"outline",width:t,ref:i=>this.resetBtnEl=i,onClick:this.handleResetFilter.bind(this)},this.messages?.resetFilter):void 0,this.closeBtn?l("calcite-button",{appearance:"solid",width:t,kind:"brand",onClick:this.closeBtnOnClick?.bind(this)},e):void 0)}renderZoomTo(e){let t=e?.sublayerId?`zoom-to-${e.id}-${e.sublayerId}`:`zoom-to-${e.id}`;return this.zoomBtn?l("div",{class:u.zoomTo},l("calcite-button",{id:t,appearance:"transparent",kind:"neutral",scale:"s",iconStart:"magnifying-glass-plus",onClick:this.handleZoomTo.bind(this,e)},this.messages?.zoomTo)):void 0}handleResetDatePicker(e,t){let i=this.panelEl.querySelector(`[id='${e.id}']`);D(i),e.active=!1,e.definitionExpression=void 0,e.range=void 0,this.generateOutput(t)}initInput(e,t){let{type:i,numDisplayOption:n,displayOption:s}=t;if(i==="string"||i==="coded-value"||(i==="number"||i==="range"||i==="date")&&(n==="drop-down"||s==="drop-down"))return this.renderCombobox(e,t);if(i==="number"||i==="range")return this.renderNumberSlider(e,t);if(i==="date")return this.renderDatePicker(e,t)}async initExpressions(){if(this.loading=!0,this.filterLayerExpressions==null||this.view==null){this.loading=!1;return}await this.processExpressions(),this.loading=!1}async processExpressions(){this.filterLayerExpressions&&await Promise.all(this.filterLayerExpressions.map(async e=>{await Promise.all((e.expressions||[]).map(async t=>await this.setInitExpression(e,t)))}))}handleResetFilter(){this.resetExpressions(),this.resetAllFilters(),this.generateURLParams(),this.filterListReset.emit()}resetExpressions(){this.filterLayerExpressions?.forEach(e=>{e.expressions?.forEach(t=>{let{type:i,numDisplayOption:n,displayOption:s}=t,a="";i==="string"||i==="coded-value"||i==="date"&&(n==="drop-down"||s==="drop-down")||(i==="number"||i==="range")&&(n==="drop-down"||s==="drop-down")?a="combobox":i==="date"?a="datePicker":(i==="number"||i==="range")&&(a="numberRange"),a?this.resetExpressionUI(a,t):this.resetCheckbox(t),t.active=!1})})}resetExpressionUI(e,t){let{id:i}=t;switch(e){case"combobox":{t.selectedFields=void 0;let n=this.panelEl.querySelector(`[id='${i}']`);n&&Array.from(n.children).forEach(s=>{s.selected=!1});break}case"datePicker":{t.range=void 0;let n=this.panelEl.querySelector(`[id='${i}']`);D(n);break}case"numberRange":{t.range=void 0;let n=this.panelEl.querySelector(`[id='${i}']`);n&&(n.minValue=t.min,n.maxValue=t.max);break}}}resetCheckbox(e){let{id:t}=e,i=this.panelEl.querySelector(`[id='${t}']`);i!=null&&(i.checked=!1)}resetAllFilters(){this.view?.map?.allLayers?.concat(this.view?.map?.allTables)?.forEach(t=>{if(!p.includes(t.type))return;let i=t;if(i.type==="point-cloud"){if(!this.initPointCloudFilters)return;i.filters=this.initPointCloudFilters[i.id]}else if(i.type==="map-image")i.allSublayers.forEach(n=>{n.definitionExpression=this.initMapImageExpressions?.[i.id]?.[n.id]??""});else{if(this.initDefExpressions==null)return;i.definitionExpression=this.initDefExpressions[i.id]}})}async updateStringExpression(e,t){let i=this.findFilterLayer(e);return await this.getFeatureAttributes(i,t),this.handleDateField(i,t),t?.selectedFields?(t.definitionExpression=this.createDefinitionExpression(t),!0):!1}handleDateField(e,t){t.type==="date"&&e.fields.find(({name:n})=>n===t.field)?.type==="date-only"&&(t.dateOnly=!0)}createDefinitionExpression(e){if(!e.selectedFields?.length)return"";let t=e.selectedFields.map(i=>typeof i=="number"?i:`'${g(i)}'`);return`${e.field} IN (${t.join(",")})`}async updateNumberExpression(e,t){if(!t?.min&&t?.min!==0||!t?.max&&t?.max!==0){let i=this.findFilterLayer(e),{field:n}=t;if(n!=null)if(this.setExpressionFormat(i,t,n),t?.numDisplayOption==="drop-down"||t?.displayOption==="drop-down")await this.getFeatureAttributes(i,t);else{let a=(await this.calculateMinMaxStatistics(i,n))?.[0]?.attributes;if(t.format?.places!=null?(t.min=this.roundMinNumberDown(a[`min${n}`],t.format.places),t.max=this.roundMaxNumberUp(a[`max${n}`],t.format.places)):(t.min=a[`min${n}`],t.max=a[`max${n}`]),t?.range&&Object.keys(t.range).length){let{min:r,max:o}=t.range;return t.definitionExpression=`${t.field} BETWEEN ${r} AND ${o}`,!0}}}return!1}async updateDateExpression(e,t){let{field:i,range:n}=t,s=this.findFilterLayer(e),r=(await this.calculateMinMaxStatistics(s,i))?.[0]?.attributes;if(t.min=f(r[`min${i}`]),t.max=f(r[`max${i}`]),n!=null&&(n?.max!=null||n?.min!=null)){let{min:o,max:c}=n;if(o=o?.replace("+"," "),c=c?.replace("+"," "),o||c){let d=c&&!o?"<":!c&&o?">":null;return d?t.definitionExpression=`${i} ${d} '${o??c}'`:t.definitionExpression=`${i} BETWEEN '${o}' AND '${c}'`,!0}}return!1}async updateCodedValueExpression(e,t,i){if(!i?.domain||i?.domain?.type!=="coded-value")return!1;let n=this.findFilterLayer(e);await this.getFeatureAttributes(n,t);let a=i.domain.codedValues.reduce((r,{code:o,name:c})=>(r[o]=c,r),{});if(t.codedValues=a,t.selectedFields?.length){let r=t.selectedFields.map(o=>typeof o=="number"?o:`'${g(o)}'`).join(",");return t.definitionExpression=`${t.field} IN (${r})`,!0}return!1}updateRangeExpression(e,t){if(!t?.domain||t?.domain?.type!=="range")return!1;let{field:i,range:n}=e;return e.min=t.domain.minValue,e.max=t.domain.maxValue,n&&Object.keys(n).length?(e.definitionExpression=`${i} BETWEEN ${n.min} AND ${n.max}`,!0):!1}async getFeatureAttributes(e,t){if(!this.isLayerSupported(e)){t.fields=[];return}let i=await this.getQueryLayer(e),{maxRecordCount:n,supportsMaxRecordCountFactor:s}=this.extractQueryCapabilities(e),a=await i.queryFeatureCount(),r=this.createQuery(i,t);await this.queryDistinctFeatures(i,r,t),this.shouldPaginate(n,a,s)&&this.handlePagination(i,r,n,s,a,t)}isLayerSupported(e){return e&&p.includes(e.type)}extractQueryCapabilities(e){return{maxRecordCount:e.capabilities?.query?.maxRecordCount??e.sourceJSON?.maxRecordCount,supportsMaxRecordCountFactor:e.capabilities?.query?.supportsMaxRecordCountFactor}}createQuery(e,t){let i=e.createQuery();this.applyCacheHint(e,i);let n=t?.field;if(n){let s=this.getInitDefExprFromLayer(e);i.where=s||"1=1",i.outFields=[n],i.orderByFields=[`${n} ASC`],i.returnDistinctValues=!0,i.returnGeometry=!1,i.maxRecordCountFactor=5,this.applyQueryGeometryFromExtentSelector(i)}return i}async queryDistinctFeatures(e,t,i){if(!t.outFields)return;let n=await this.queryForFeatures(e,t,t.outFields[0]);n?.length&&(i.fields=[...new Set(n)],i.type==="string"?i.fields=i.fields.sort((s,a)=>s.localeCompare(a)):i.type==="number"&&(i.fields=i.fields.sort((s,a)=>s-a)))}getQueryCount(e,t){return t?e*5:e}shouldPaginate(e,t,i){let n=this.getQueryCount(e,i);return e!=null&&t>n}async handlePagination(e,t,i,n,s,a){let r=this.getQueryCount(i,n),o=[];for(let c=r;c<s;c+=r){let d=t.clone();d.num=i,d.start=c,o.push(this.queryForFeatures(e,d,t?.outFields?.[0]??""))}Promise.all(o).then(c=>{c.forEach(d=>{d?.length&&a.fields&&a.fields.push(...d)}),a.type==="string"?a.fields=[...new Set(a.fields)].sort((d,h)=>d.localeCompare(h)):a.type==="number"?a.fields=[...new Set(a.fields)].sort((d,h)=>d-h):a.fields=[...new Set(a.fields)].sort()})}async queryForFeatures(e,t,i){return(await e.queryFeatures(t))?.features.filter(a=>a.attributes?.[i])?.map(a=>a.attributes?.[i])}async calculateMinMaxStatistics(e,t){if(!e||!p.includes(e.type)||!t)return[];let i=this.createStatisticsQuery(e,t);return(await e.queryFeatures(i))?.features||[]}createStatisticsQuery(e,t){let i=e.createQuery();return i.where=this.getInitDefExprFromLayer(e)||"1=1",this.applyCacheHint(e,i),i.outStatistics=[{onStatisticField:t,outStatisticFieldName:`max${t}`,statisticType:"max"},{onStatisticField:t,outStatisticFieldName:`min${t}`,statisticType:"min"}],this.applyQueryGeometryFromExtentSelector(i),i}getExtent(e,t){if(e&&t){let{constraints:i}=t,s={...i}?.geometry;if(s){let a="extent"in s?s:this.geometryJsonUtils.fromJSON(s);if(a?.type==="extent"||a?.type==="polygon")return a}}}async setInitExpression(e,t){if(!t.field||!t.type){await this.updateExpression(e,t,void 0);return}let i=this.findFilterLayer(e);i&&((i.loadStatus==="not-loaded"||i.loadStatus==="failed")&&await i.load(),await i.when(async()=>{let n=i.fields?.find(({name:a})=>a===t.field),s=n?.domain?.type;t.type=s==="coded-value"||s==="range"?s:t.type,await this.updateExpression(e,t,n)}))}async updateExpression(e,t,i){await this.handleExpressionType(e,t,i)&&this.generateOutput(e)}async handleExpressionType(e,t,i){switch(t.type){case"string":return await this.updateStringExpression(e,t);case"number":return await this.updateNumberExpression(e,t);case"date":return await this.updateDateExpressionBasedOnDisplayOption(e,t);case"coded-value":return await this.updateCodedValueExpression(e,t,i);case"range":return await this.updateRangeExpressionBasedOnDisplayOption(e,t,i);case"checkbox":case null:case void 0:return t.active??!1;default:return!1}}async updateDateExpressionBasedOnDisplayOption(e,t){return t.displayOption==="drop-down"?await this.updateStringExpression(e,t):await this.updateDateExpression(e,t)}async updateRangeExpressionBasedOnDisplayOption(e,t,i){return t.displayOption==="drop-down"?await this.updateStringExpression(e,t):this.updateRangeExpression(t,i)}updateRangeExpressions(e,t,i,n){let s=this.getInitDefExprFromLayerExpression(t);(n||n===0)&&(i||i===0)&&(n===e?.min&&i===e?.max?(e.definitionExpression=void 0,e.active=!1):(e.definitionExpression=s?`(${s}) AND ${e?.field} BETWEEN ${n} AND ${i}`:`${e?.field} BETWEEN ${n} AND ${i}`,e.active=!0)),e.range={min:n,max:i}}handleCheckboxChange(e,t,i){let n=i.target;t.active=n.checked,this.generateOutput(e)}handleSliderChange(e,t,i){let{maxValue:n,minValue:s}=i.target;this.updateRangeExpressions(e,t,n,s),this.generateOutput(t)}handleComboSelect(e,t,i){let s=i.target.selectedItems,{field:a,type:r}=e;if(e.selectedFields=s.map(({value:o})=>o),s.length){let o=s.map(({value:c})=>typeof c=="number"?c:`'${g(c)}'`);e.definitionExpression=r==="date"?o.map(c=>this.buildDateExpression(c,a)).join(" OR "):`${a} IN (${o.join(",")})`,e.active=!0}else e.definitionExpression=void 0,e.active=!1;this.generateOutput(t)}handleDatePickerRangeChange(e,t,i){let n=i.target,[s,a]=n.valueAsDate,r=s?f(Math.floor(s.getTime()),!0):void 0,o=a?f(Math.floor(a.getTime()),!0):void 0;(r||o)&&(e.definitionExpression=this.constructDefinitionExpression(e.field,r,o),e.range={min:r,max:o},e.active=!0,this.generateOutput(t))}constructDefinitionExpression(e,t,i){return t?i?`${e} BETWEEN '${t}' AND '${i}'`:`${e} > '${t}'`:`${e} < '${i}'`}handleURLParams(){if(!("URLSearchParams"in window))return;let t=new URLSearchParams(document.location.search).get("filter");if(!t){this.filterCount=0;return}let i=t.split(";").map(n=>JSON.parse(n));this.filterCount=this.applyFilters(i)}applyFilters(e){let t=0;return e.forEach(i=>{let n=this.filterLayerExpressions?.find(s=>s.id===i.layerId);n&&n.expressions?.forEach(s=>{s.id?.toString()===i.expressionId?.toString()&&(this.activateExpression(s,i),t++)})}),t}activateExpression(e,t){e.active=!0,t.type==="range"?e.range=t.range:t.type==="select"&&(e.selectedFields=t.selectedFields)}createURLParamExpression(e,t){let{id:i,range:n,selectedFields:s,type:a}=t;return a==="string"||a==="coded-value"||t?.numDisplayOption==="drop-down"||t?.displayOption==="drop-down"?{type:"select",layerId:e.id,expressionId:i.toString(),selectedFields:s}:a==="number"||a==="range"||a==="date"?{type:"range",layerId:e.id,expressionId:i.toString(),range:n}:{layerId:e.id,expressionId:i.toString()}}autoUpdateURLCheck(e){if(this.autoUpdateUrl){let t=e.toString()?`${window.location.pathname}?${e}`.trim():window.location.pathname;window.history.replaceState({},"",t)}}generateURLParams(){if(!("URLSearchParams"in window))return;let e=new URLSearchParams(window.location.search),t=this.filterLayerExpressions?.flatMap(i=>i?.expressions?.filter(n=>n.active).map(n=>JSON.stringify(this.createURLParamExpression(i,n)))||[])||[];this.filterCount=t.length,t.length>0?e.set("filter",t.join(";")):e.delete("filter"),this.autoUpdateURLCheck(e),this.urlParams=e}updateFilter(e,t,i){let{id:n}=e,s=this.view.map?.findLayerById(n)??this.view.map?.findTableById(n);if(s!=null)if(s.type==="point-cloud")this.updateFilterLayerPCLFilter(s,i);else if(s.type==="map-image"){let a=s.findSublayerById(e?.sublayerId);a!=null&&this.updateFilterLayerDefExpression(a,t,e)}else this.updateFilterLayerDefExpression(s,t,e)}updateFilterLayerDefExpression(e,t,i){let{operator:n}=i,s=this.getInitDefExprFromLayer(e),a=t?.length>0&&s!=null&&s!==""?`(${t.join(n)}) AND (${s})`:t.length>0?t.join(n):s;e.definitionExpression=a}updateFilterLayerPCLFilter(e,t){e.filters=t}async handleWhenView(){if(this.view==null)return;await this.view.map.loadAll(),this.handleLayerExpressionsUpdate()}async handleLayerExpressionsUpdate(){this.updateInitExpressions(),this.handleURLParams(),this.initExpressions()}async handleZoomTo(e){let t=e?.sublayerId?`#zoom-to-${e.id}-${e.sublayerId}`:`#zoom-to-${e.id}`,i=this.panelEl.querySelector(t),n=(s,a)=>{i&&(i.loading=s,i.disabled=a)};if(n(!0,!0),await this.getZoomToExtent(e),this.zoomToExtent){let s=this.zoomToExtent.type==="point"&&this.zoomToExtent.count===1?{target:this.zoomToExtent.extent,zoom:10}:this.zoomToExtent.extent;await this.view.goTo(s)}n(!1,!1)}async getZoomToExtent(e){let i=this.view.allLayerViews.find(({layer:s})=>s.id===e.id).layer,n=i.type==="map-image"?i.findSublayerById(e.sublayerId):i;if(n&&n.type!=="point-cloud"&&p.includes(n?.type)){let s=await this.getQueryLayer(n),a=s.createQuery();a.where=s.definitionExpression??"1=1";let r=await s.queryExtent(a);this.zoomToExtent={...r,type:s.geometryType}}}applyFilterToQuery(e,t){let i=this.view.allLayerViews.find(({layer:s})=>s.id===t.id),n=i?.featureEffect?.filter??i.filter;n&&["objectIds","distance","geometry","spatialRelationship","units","where","timeExtent"].forEach(a=>{n[a]!=null&&(e[a]=n[a])})}generateOutput(e){if(this.view==null)return;let t=[],i=[];if(e){for(let n of e.expressions){let{active:s,definitionExpression:a,pointCloudFilters:r}=n;s&&a&&t.push(`(${a})`),s&&r!=null&&r.length>0&&(i=i.concat(r))}this.updateFilter(e,t,i),this.generateURLParams(),this.filterUpdate.emit()}}numberWithCommas(e){return e.toLocaleString("en-US",{maximumFractionDigits:20})}scientificRounding(e,t,i){if(e==null)return;let n;if(!String(e).includes("e"))n=Math[i](e*Math.pow(10,t))/Math.pow(10,t);else{let[s,a]=String(e).split("e").map(c=>Number(c)),r=a+t;n=Math[i](+`${s}e${r}`)*Math.pow(10,-t)}return+n.toFixed(t)}roundMinNumberDown(e,t){return this.scientificRounding(e,t,"floor")}roundMaxNumberUp(e,t){return this.scientificRounding(e,t,"ceil")}roundNumber(e,t){return this.scientificRounding(e,t,"round")??e}setExpressionFormat(e,t,i){if(e?.popupTemplate!=null){let n=e?.popupTemplate.fieldInfos?.find(({fieldName:s})=>s===i);n?.format&&(t.format=n.format)}}getInitDefExprFromLayer(e){return e.type==="sublayer"?this.initMapImageExpressions?.[e?.layer?.id??""]?.[e.id]??"":this.initDefExpressions?.[e.id]??""}getInitDefExprFromLayerExpression(e){return e?.sublayerId!=null?this.initMapImageExpressions?.[e.id]?.[e.sublayerId]??"":this.initDefExpressions?.[e.id]??""}findFilterLayer(e){let i=this.view.map?.allLayers.concat(this.view.map?.allTables)?.find(({id:n})=>n===e.id);return i.type==="map-image"?i?.findSublayerById(e.sublayerId):i}createLabel(e,t){if(e.type==="coded-value")return e?.codedValues?.[t];if(e.type==="number"&&typeof t=="number"){let i=t;return e.format?.places!=null&&(i=this.roundNumber(t,e.format.places)),e.format?.digitSeparator?this.numberWithCommas(i):i}if(e.type==="date"&&!e.dateOnly){let i=this.intl.convertDateFormatToIntlOptions("short-date-long-time");return this.intl.formatDate(t,i)}return t}buildDateExpression(e,t){if(e){let i=new Date(e),n=new Date(e),s=new Date(n.setDate(i.getDate()+1)),a=`${i.getFullYear()}-${i.getMonth()+1}-${i.getDate()}`,r=`${i.getHours()}:${i.getMinutes()}:${i.getSeconds()}`,o=`${s.getHours()}:${s.getMinutes()}:${s.getSeconds()}`,c=`${s.getFullYear()}-${s.getMonth()+1}-${s.getDate()}`;return`${t} BETWEEN '${a} ${r}' AND '${c} ${o}'`}}async getQueryLayer(e){let t=e.type==="sublayer"?await e.createFeatureLayer():e;if(!t)throw new Error("Failed to create feature layer");return t}applyCacheHint(e,t){e?.capabilities?.query?.supportsCacheHint&&(t.cacheHint=!0)}applyQueryGeometryFromExtentSelector(e){if(!this.extentSelector||!this.extentSelectorConfig)return;let t=this.getExtent(this.extentSelector,this.extentSelectorConfig);t&&(e.geometry=t,e.spatialRelationship="intersects")}updateInitExpressions(){if(this.view==null)return;let e=this.view.map;this.initDefExpressions={},this.initPointCloudFilters={},this.initMapImageExpressions={},e.allLayers.concat(e.allTables).forEach(t=>{if(!p.includes(t.type))return;let i=t;if(i.type==="point-cloud")this.initPointCloudFilters||(this.initPointCloudFilters={}),this.initPointCloudFilters[i.id]=i.filters;else if(i.type==="map-image")this.initMapImageExpressions||(this.initMapImageExpressions={}),this.initMapImageExpressions[i.id]=i.allSublayers.reduce((n,s)=>(n[s.id]=s.definitionExpression??"",n),{});else{if(!this.initDefExpressions)return;this.initDefExpressions[i.id]=i.definitionExpression??""}})}get el(){return x(this)}static get watchers(){return{view:["watchViewHandler"],layerExpressions:["watchLayerExpressions"]}}};I.style=k;export{I as instant_apps_filter_list};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250528.
|
4
|
-
import"./
|
3
|
+
v1.0.0-next.20250528.2 */
|
4
|
+
import"./B4HONVWZ.js";var l=async(e,r,o)=>{let t=r.orgUrlKey;return{type:"Layout",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.siteEntityTitleValidatorError`}]}},{scope:"/properties/_urlInfo",type:"Control",options:{type:"Control",control:"hub-composite-input-site-url",orgUrlKey:t,messages:[{type:"ERROR",keyword:"isUniqueDomain",labelKey:`${e}.fields.siteUrl.isUniqueError`,icon:!0}]}}]}};export{l 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.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250528.
|
4
|
-
import{a as t}from"./
|
3
|
+
v1.0.0-next.20250528.2 */
|
4
|
+
import{a as t}from"./COLHBQ5X.js";import"./ZJXXAWMH.js";import"./XEO56VFL.js";import"./UHBAUGQ4.js";import"./BB7RJW6E.js";import"./4ME5QMIF.js";import"./R53BLRMX.js";import"./XFDA7NEB.js";import"./JDSGIOVR.js";import"./6XYU4BZS.js";import"./IP6ATOM6.js";import"./RIQZUFV2.js";import{a as r}from"./SFJHXT65.js";import"./RVOILI7H.js";import"./AH5AIEIN.js";import"./GUP4UK2N.js";import"./X6GE3EIS.js";import"./Z2MJRFIE.js";import"./T2DUZEDU.js";import"./N324UTZ5.js";import"./MVN27KOI.js";import"./Y4M5KS3M.js";import"./A3JKO4I4.js";import"./B4HONVWZ.js";var n=async(e,l,o)=>{let i=r(new Date,l.timeZone);return{type:"Layout",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:"shared.fields.title.maxLengthError"}]}},{labelKey:`${e}.fields.date.label`,scope:"/properties/startDate",type:"Control",options:{control:"hub-field-input-date",min:i,messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.date.requiredError`},{type:"ERROR",keyword:"formatMinimum",icon:!0,labelKey:`${e}.fields.date.minDateError`}]}},{labelKey:`${e}.fields.allDay.label`,type:"Control",scope:"/properties/isAllDay",options:{control:"hub-field-input-switch"}},{labelKey:`${e}.fields.startTime.label`,scope:"/properties/startTime",type:"Control",rule:{condition:{scope:"/properties/isAllDay",schema:{const:!1}},effect:t.SHOW},options:{control:"hub-field-input-time",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.startTime.requiredError`}]}},{labelKey:`${e}.fields.endTime.label`,scope:"/properties/endTime",type:"Control",rule:{condition:{scope:"/properties/isAllDay",schema:{const:!1}},effect:t.SHOW},options:{control:"hub-field-input-time",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.endTime.requiredError`},{type:"ERROR",keyword:"formatExclusiveMinimum",icon:!0,labelKey:`${e}.fields.endTime.minTimeError`}]}}]}};export{n as buildUiSchema};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250528.
|
4
|
-
import{a as r}from"./
|
3
|
+
v1.0.0-next.20250528.2 */
|
4
|
+
import{a as r}from"./YFG6Q4W4.js";import{D as n,I as o,c as i,d as t,q as s}from"./NNQAPUKF.js";import"./B4HONVWZ.js";var a=i`@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.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250528.
|
4
|
-
import{a as d}from"./
|
3
|
+
v1.0.0-next.20250528.2 */
|
4
|
+
import{a as d}from"./YFG6Q4W4.js";import{D as a,I as o,c as l,d as e,g as n,o as t}from"./NNQAPUKF.js";import"./B4HONVWZ.js";var r=l`/** @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.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250528.
|
4
|
-
import{a as t}from"./
|
3
|
+
v1.0.0-next.20250528.2 */
|
4
|
+
import{a as t}from"./TQ24PIOH.js";import{a}from"./HTYN6WXU.js";import{b as o}from"./UHBAUGQ4.js";var m=async(e,l,s)=>{let r={label:`{{${e}.sections.group.picker.facets.label:translate}}`,key:"groups",display:"single-select",operation:"OR",options:[{label:`{{${e}.sections.group.picker.facets.myGroups.label:translate}}`,key:"my-group",selected:!0,predicates:[{owner:s.currentUser.username,typekeywords:{not:t}}]},{label:`{{${e}.sections.group.picker.facets.myOrganization.label:translate}}`,key:"my-organization",selected:!1,predicates:[{orgid:s.currentUser.orgId,searchUserAccess:"groupMember",searchUserName:s.currentUser.username,typekeywords:{not:t}}]}]};return s.communityOrgId&&r.options.push({label:`{{${e}.sections.group.picker.facets.myCommunity.label:translate}}`,key:"my-community",selected:!1,predicates:[{orgid:s.communityOrgId,searchUserAccess:"groupMember",searchUserName:s.currentUser.username,typekeywords:{not:t}}]}),{type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,options:{headerTag:"h3"},elements:[{labelKey:`${e}.fields.name.label`,type:"Control",scope:"/properties/name",options:{control:"hub-field-input-input",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.channelNameRequiredError`,allowShowBeforeInteract:!0}]}}]},{type:"Section",labelKey:`${e}.sections.settings.label`,options:{headerTag:"h3"},elements:[{type:"Control",scope:"/properties/allowAsAnonymous",labelKey:`${e}.fields.allowAsAnonymous.label`,options:{control:"hub-field-input-switch",helperText:{labelKey:`${e}.fields.allowAsAnonymous.helperText`}}},{type:"Control",scope:"/properties/blockWords",label:"Blocked words",labelKey:`${e}.fields.blockWords.label`,options:{control:"hub-field-input-input",type:"textarea",helperText:{labelKey:`${e}.fields.blockWords.helperText`},messages:[{type:"ERROR",keyword:"format",icon:!0,labelKey:`${e}.fields.blockWords.formatError`}]}}]},{type:"Section",labelKey:`${e}.sections.permissions.label`,options:{headerTag:"h3"},elements:[{type:"Section",labelKey:`${e}.sections.public.label`,options:{headerTag:"h4"},elements:[{type:"Control",scope:"/properties/publicConfigs",options:{control:"hub-field-permissions",roles:[{roleType:"anonymous",description:`{{${e}.fields.public.anonymous.description:translate}}`,label:`{{${e}.fields.public.anonymous.label:translate}}`,permissionLabels:[`{{${e}.sections.permissions.options.noAccess:translate}}`,`{{${e}.sections.permissions.options.view:translate}}`]},{roleType:"authenticated",description:`{{${e}.fields.public.authenticated.description:translate}}`,label:`{{${e}.fields.public.authenticated.label:translate}}`,permissionLabels:[`{{${e}.sections.permissions.options.noAccess:translate}}`,`{{${e}.sections.permissions.options.view:translate}}`,`{{${e}.sections.permissions.options.participate:translate}}`]}]}}]},{type:"Section",labelKey:`${e}.sections.organization.label`,options:{headerTag:"h4",variant:"variant-layout-editor"},elements:[{type:"Control",scope:"/properties/orgConfigs",options:{control:"hub-field-permissions",roles:[{roleType:"member",description:`{{${e}.fields.organization.member.description:translate}}`,label:`{{${e}.fields.organization.member.label:translate}}`,permissionLabels:[`{{${e}.sections.permissions.options.noAccess:translate}}`,`{{${e}.sections.permissions.options.view:translate}}`,`{{${e}.sections.permissions.options.participate:translate}}`]},{roleType:"admin",description:`{{${e}.fields.organization.admin.description:translate}}`,label:`{{${e}.fields.organization.admin.label:translate}}`,disabled:!0,permissionLabels:[`{{${e}.sections.permissions.options.owner:translate}}`]}]}}]},{type:"Section",labelKey:`${e}.sections.group.label`,options:{headerTag:"h4",variant:"variant-layout-editor"},elements:[{type:"Control",scope:"/properties/groupConfigs",options:{control:"hub-field-permissions",actions:[{label:`{{${e}.sections.group.picker.button:translate}}`,type:"add",options:{label:`{{${e}.sections.group.picker.title:translate}}`,entityType:"group",catalogs:[a(e,"allGroups","group",{user:s.currentUser})],facets:[r],defaultValues:{member:o,admin:o}}},{ariaLabel:`{{${e}.sections.group.remove.button:translate}}`,buttonStyle:"outline",buttonKind:"neutral",type:"remove",icon:"x"}],roles:[{roleType:"member",description:`{{${e}.fields.group.member.description:translate}}`,label:`{{${e}.fields.group.member.label:translate}}`,permissionLabels:[`{{${e}.sections.permissions.options.noAccess:translate}}`,`{{${e}.sections.permissions.options.view:translate}}`,`{{${e}.sections.permissions.options.participate:translate}}`]},{roleType:"admin",description:`{{${e}.fields.group.admin.description:translate}}`,label:`{{${e}.fields.group.admin.label:translate}}`,permissionLabels:[`{{${e}.sections.permissions.options.noAccess:translate}}`,`{{${e}.sections.permissions.options.view:translate}}`,`{{${e}.sections.permissions.options.participate:translate}}`,`{{${e}.sections.permissions.options.manage:translate}}`]}]}}]}]}]}};export{m as a};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250528.
|
4
|
-
import"./
|
3
|
+
v1.0.0-next.20250528.2 */
|
4
|
+
import"./AT3MTRQS.js";import{b as C}from"./6WQKENE2.js";import"./HJJD6V2O.js";import"./XN5WML6J.js";import"./FPWLAJBO.js";import"./5BKTEPSJ.js";import"./UZVRS2XU.js";import"./3XJKMZHA.js";import"./4S2I2R2Q.js";import{a as O}from"./FEWEA7AN.js";import"./KZWHC2ST.js";import{c as S,d as F,j as b}from"./RS6TXCOP.js";import"./LBJE5BZD.js";import{c as E}from"./BACSZ2Z7.js";import{a as p,b as g}from"./SGXJZQ4L.js";import{b as T}from"./IIX655ZM.js";import{a as x}from"./YFG6Q4W4.js";import{D as I,E as _,I as v,c as m,d,g as o,o as c,q as w}from"./NNQAPUKF.js";import"./B4HONVWZ.js";var $=m`@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.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250528.
|
4
|
-
import{a as g,b as m}from"./
|
3
|
+
v1.0.0-next.20250528.2 */
|
4
|
+
import{a as g,b as m}from"./7OZTZCPH.js";import{h as I}from"./N2MZJBHS.js";import"./MRMD4H7O.js";import{a as u,c as L,f as b}from"./6QWS7JEN.js";import{C as w,D as f,m as p}from"./CLZ42RFU.js";import"./6CPKRUI3.js";import{a as D,c as d,e as v,f as S}from"./KZWHC2ST.js";import"./B4HONVWZ.js";var y=":host{display:block;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-1);min-width:200px}:host calcite-dropdown{width:100%}:host calcite-button{--calcite-color-brand:var(--calcite-color-text-3);--calcite-color-brand-hover:var(--calcite-color-text-3)}",E=y,A=class{constructor(e){D(this,e),this.selectedLanguageUpdated=S(this,"selectedLanguageUpdated",7),this.icon="language",this.portalItem=void 0,this.view=void 0,this.locales=[],this.defaultLocale=void 0,this.selectedLanguage=null,this.calciteDropdownOverlayPositioning="absolute",this.messages=void 0,this.t9nData=null}async componentWillLoad(){let[e,a]=await Promise.all([w(),f()]);this.intl=e,this.request=a,this.messages=await I(document.createElement("instant-apps-language-translator"));try{this.portalItemResource=await m(this.portalItem);let t=await g(this.portalItemResource);this.t9nData=t??{}}catch{this.t9nData={},console.error("NO PORTAL ITEM RESOURCE AVAILABLE.")}finally{this.userLocale=this.defaultLocale;let c=new URLSearchParams(window.location.search).get("locale"),h=this.locales?.map(s=>s?.locale)?.filter(s=>s===c)?.length>0,o=L(e,this.portalItem.portal),r=this.locales?.map(s=>s?.locale)?.filter(s=>s===o)?.length>0;this.selectedLanguage=h?c:r?o:this.userLocale;let i=this.selectedLanguage;if(i!==this.userLocale&&(this.calciteDropdownItemSelectCallback(i)(),this.selectedLanguageUpdated.emit({locale:i,data:this.t9nData?.[i]??null})),this.view){let s=this.view.map;this.defaultWebMapId=s?.portalItem?.id??"";let n=this.locales?.filter(l=>l?.webmap&&l?.webmap!==this.defaultWebMapId&&l?.locale===this.selectedLanguage)?.[0]?.webmap;n&&(this.view.map=await p({portalItem:{id:n}}))}}}render(){let e=this.renderTrigger(),a=this.renderDropdownItems(),t=this.renderDefaultLocale();return d("calcite-dropdown",{key:"d48e5831173767a89033b16b2a33b7a234927fd5",onCalciteDropdownBeforeOpen:()=>this.trigger.iconEnd="chevron-up",onCalciteDropdownBeforeClose:()=>this.trigger.iconEnd="chevron-down","overlay-positioning":this.calciteDropdownOverlayPositioning,"width-scale":"m"},e,d("calcite-dropdown-group",{key:"fce55304c7a8b8b52b57b919a83aa81d9c1901ba"},t,a))}renderDefaultLocale(){let{userLocale:e}=this;return d("calcite-dropdown-item",{key:`default-${e}`,onCalciteDropdownItemSelect:this.calciteDropdownItemSelectCallback(e),selected:this.selectedLanguage===this.userLocale},this.getSelectedLanguageText(e))}renderTrigger(){return d("calcite-button",{ref:e=>this.trigger=e,slot:"trigger","icon-start":this.icon,"icon-end":"chevron-down",width:"full",appearance:"outline"},this.getSelectedLanguageText(this.selectedLanguage))}renderDropdownItems(){return this.locales?.map(e=>e.locale)?.map(e=>this.renderDropdownItem(e))}renderDropdownItem(e){let a=this.getSelectedLanguageText(e),t=e===this.selectedLanguage;return d("calcite-dropdown-item",{key:e,selected:t,onCalciteDropdownItemSelect:this.calciteDropdownItemSelectCallback(e)},a)}calciteDropdownItemSelectCallback(e){return async()=>{this.selectedLanguage=e;let{intl:a,selectedLanguage:t,t9nData:c,userLocale:h}=this,o=this.locales.find(n=>n.locale===t);c&&o&&t!==h&&(o.data=c[e]);let r=new URLSearchParams(window.location.search),i=await b(this.selectedLanguage);if(a.setLocale(i),r.set("locale",i),this.view){let n=this.locales.filter(l=>l.locale===t)?.[0]?.webmap;if(n)this.view.map=await p({portalItem:{id:n}});else{let l=this.view?.map?.portalItem?.id;l&&this.defaultWebMapId!==l&&(this.view.map=await p({portalItem:{id:this.defaultWebMapId}}))}}document.documentElement.setAttribute("lang",i),this.intl.prefersRTL()?document.documentElement.setAttribute("dir","rtl"):document.documentElement.setAttribute("dir","ltr"),window.history.replaceState({},"",decodeURIComponent(`${window.location.pathname}?${r}`)),this.selectedLanguageUpdated.emit(o)}}getSelectedLanguageText(e){let c=Object.keys(u.partial).includes(e)?"partial":"full",h=u[c],{language:o,translated:r}=h[e];return`${o} - ${r}`}async refresh(){try{let e=await m(this.portalItem),a=await g(e);this.t9nData=a;let t={locale:this.selectedLanguage,data:a[this.selectedLanguage]};this.selectedLanguageUpdated.emit(t)}catch{}}get el(){return v(this)}};A.style=E;export{A as instant_apps_language_switcher};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250528.
|
4
|
-
import{a as k}from"./
|
3
|
+
v1.0.0-next.20250528.2 */
|
4
|
+
import{a as k}from"./EU3TXNP2.js";import"./2TF5G4JI.js";import{g as s}from"./LBJE5BZD.js";import{a as g,b as m}from"./SGXJZQ4L.js";import{b as y}from"./IIX655ZM.js";import{a as w}from"./YFG6Q4W4.js";import{D as n,E as o,I as p,c,d as l,o as a,q as d}from"./NNQAPUKF.js";import"./B4HONVWZ.js";var _=c`@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.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250528.
|
4
|
-
import{a as r,b as s,c as a,d as n}from"./
|
3
|
+
v1.0.0-next.20250528.2 */
|
4
|
+
import{a as r,b as s,c as a,d as n}from"./Z2MJRFIE.js";import{c as e}from"./T2DUZEDU.js";import{a as i}from"./MVN27KOI.js";import{b as t}from"./Y4M5KS3M.js";var m=["hub:initiative:edit","hub:initiative:create","hub:initiative:create2","hub:initiative:metrics","hub:initiative:associations","hub:initiative:settings"],b=Object.assign(Object.assign({},i),{properties:Object.assign(Object.assign({},i.properties),{_groups:{type:"array",items:{type:"string"}},status:{type:"string",default:t.notStarted,enum:Object.keys(t)},_metric:{type:"object",required:["cardTitle"],properties:e.properties}}),allOf:[s,r,n,a]});export{m as a,b};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250528.
|
4
|
-
import{c as n}from"./
|
3
|
+
v1.0.0-next.20250528.2 */
|
4
|
+
import{c as n}from"./Y3MVHWDO.js";var A;(function(r){r.ASC="ASC",r.DESC="DESC"})(A||(A={}));var E;(function(r){r.CLAPPING_HANDS="clapping_hands",r.CONFUSED="confused",r.DOWN_ARROW="down_arrow",r.EYES="eyes",r.FACE_WITH_TEARS_OF_JOY="face_with_tears_of_joy",r.FIRE="fire",r.GRINNING="grinning",r.HEART="heart",r.LAUGH="laugh",r.ONE_HUNDRED="one_hundred",r.PARTYING="partying",r.PARTY_POPPER="party_popper",r.RAISING_HANDS="raising_hands",r.ROCKET="rocket",r.SAD="sad",r.SLIGHTLY_SMILING="slightly_smiling",r.SURPRISED="surprised",r.THINKING="thinking",r.THUMBS_UP="thumbs_up",r.THUMBS_DOWN="thumbs_down",r.TROPHY="trophy",r.UP_ARROW="up_arrow",r.WAVING_HAND="waving_hand",r.WINKING="winking",r.WORLD_MAP="world_map"})(E||(E={}));var p;(function(r){r.PUBLIC="public",r.ORG="org",r.PRIVATE="private"})(p||(p={}));var a;(function(r){r.PENDING="pending",r.APPROVED="approved",r.REJECTED="rejected",r.DELETED="deleted",r.HIDDEN="hidden",r.BLOCKED="blocked"})(a||(a={}));var T;(function(r){r.GROUP="group",r.CONTENT="content",r.BOARD="board"})(T||(T={}));var i;(function(r){r.HUB="hub",r.AGO="ago",r.URBAN="urban"})(i||(i={}));var u;(function(r){r.REPLIES="replies",r.REACTIONS="reactions",r.PARENT="parent",r.CHANNEL="channel",r.CHANNEL_ACL="channelAcl"})(u||(u={}));var _;(function(r){r.POST="post"})(_||(_={}));var d;(function(r){r.HAS_USER_POSTS="has_user_posts"})(d||(d={}));var N;(function(r){r.CREATED_AT="createdAt",r.CREATOR="creator",r.EDITOR="editor",r.ID="id",r.UPDATED_AT="updatedAt"})(N||(N={}));var D;(function(r){r.CSV="csv",r.JSON="json"})(D||(D={}));var I;(function(r){r.READ="read",r.WRITE="write",r.READWRITE="readWrite",r.MODERATE="moderate",r.MANAGE="manage",r.OWNER="owner"})(I||(I={}));var t;(function(r){r.BODY="body",r.CHANNEL_ID="channelId",r.CREATED_AT="createdAt",r.CREATOR="creator",r.DISCUSSION="discussion",r.EDITOR="editor",r.ID="id",r.PARENT_ID="parentId",r.STATUS="status",r.TITLE="title",r.UPDATED_AT="updatedAt"})(t||(t={}));var c;(function(r){r.Text="text",r.Announcement="announcement",r.Poll="poll",r.Question="question"})(c||(c={}));var O;(function(r){r.ACCESS="access",r.CREATED_AT="createdAt",r.CREATOR="creator",r.EDITOR="editor",r.ID="id",r.LAST_ACTIVITY="last_activity",r.UPDATED_AT="updatedAt"})(O||(O={}));var f;(function(r){r.CHANNEL_ACL="channelAcl"})(f||(f={}));var U;(function(r){r.ANONYMOUS_USER="anonymousUser",r.AUTHENTICATED_USER="authenticatedUser",r.GROUP="group",r.ORG="org",r.USER="user"})(U||(U={}));var h;(function(r){r.ADMIN="admin",r.MEMBER="member"})(h||(h={}));var v;(function(r){r.CONTENT="content"})(v||(v={}));function R(r){let e;return r.match(/(qaext|\.mapsqa)\.arcgis.com/)?e="https://hubqa.arcgis.com":r.match(/(devext|\.mapsdevext)\.arcgis.com/)?e="https://hubdev.arcgis.com":r.match(/(www|\.maps)\.arcgis.com/)&&(e="https://hub.arcgis.com"),e}function C(r){let e=r&&r.hubApiUrl;return e||R(n(r))}export{C as a,D as b,I as c,f as d,U as e,h as f,v as g};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250528.
|
4
|
-
import{a as o}from"./
|
3
|
+
v1.0.0-next.20250528.2 */
|
4
|
+
import{a as o}from"./INY65VHN.js";import{a as r}from"./QPRN44LY.js";import"./5IZBEDEU.js";import"./LYQL4O5M.js";import"./3XJKMZHA.js";import{a as s}from"./COLHBQ5X.js";import"./ZJXXAWMH.js";import"./XEO56VFL.js";import"./UHBAUGQ4.js";import"./BB7RJW6E.js";import"./4ME5QMIF.js";import"./R53BLRMX.js";import"./XFDA7NEB.js";import"./JDSGIOVR.js";import"./6XYU4BZS.js";import"./IP6ATOM6.js";import"./RIQZUFV2.js";import"./SFJHXT65.js";import"./RVOILI7H.js";import"./AH5AIEIN.js";import"./GUP4UK2N.js";import"./X6GE3EIS.js";import"./Z2MJRFIE.js";import"./T2DUZEDU.js";import"./N324UTZ5.js";import"./MVN27KOI.js";import"./Y4M5KS3M.js";import"./A3JKO4I4.js";import"./B4HONVWZ.js";var p=async(e,l,t)=>({type:"Layout",elements:[{type:"Section",options:{section:"stepper",scale:"l"},elements:[{type:"Section",labelKey:`${e}.sections.details.label`,options:{section:"step"},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`}]}},{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:`${e}.fields.summary.maxLengthError`}]}}]},{type:"Section",labelKey:`${e}.sections.membershipAccess.label`,options:{section:"step"},rule:{effect:s.DISABLE,condition:{scope:"/properties/name",schema:{const:""}}},elements:[{scope:"/properties/isSharedUpdate",type:"Control",rule:{effect:s.HIDE,condition:{scope:"/properties/isSharedUpdate",schema:{const:!1}}}},{labelKey:`${e}.fields.membershipAccess.label`,scope:"/properties/membershipAccess",type:"Control",options:{control:"hub-field-input-radio",labels:[`{{${e}.fields.membershipAccess.org.description:translate}}`,`{{${e}.fields.membershipAccess.collab.description:translate}}`,`{{${e}.fields.membershipAccess.createAssociation.any:translate}}`],disabled:[!1,!r("platform:portal:user:addExternalMembersToGroup",t).access,!r("platform:portal:user:addExternalMembersToGroup",t).access]}},{labelKey:`${e}.fields.contributeContent.label`,scope:"/properties/isViewOnly",type:"Control",options:{control:"hub-field-input-radio",labels:[`{{${e}.fields.contributeContent.members.description:translate}}`,`{{${e}.fields.contributeContent.createAssociation.admins:translate}}`]}}]}]}]}),c=async(e,l,t)=>Object.assign({},o("hubAssociationsGroup",t));export{c as buildDefaults,p 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.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250528.
|
4
|
-
import{b as t,c as e}from"./
|
3
|
+
v1.0.0-next.20250528.2 */
|
4
|
+
import{b as t,c as e}from"./UHBAUGQ4.js";var r=["hub:channel:create","hub:channel:edit"],p={type:"object",properties:{name:{type:"string"},blockWords:{type:"string",format:"blockWords"},publicConfigs:{type:"array",items:{type:"object",properties:{key:{type:"string"},entityId:{type:"string"},entityType:{type:"string"},roles:{type:"object",properties:{anonymous:{type:"object",properties:{value:{type:"string",enum:[t,e.channelRead],default:t},id:{type:"string"}}},authenticated:{type:"object",properties:{value:{type:"string",enum:[t,e.channelRead,e.channelReadWrite],default:t},id:{type:"string"}}}}}}}},orgConfigs:{type:"array",items:{type:"object",properties:{key:{type:"string"},entityId:{type:"string"},entityType:{type:"string"},roles:{type:"object",properties:{member:{type:"object",properties:{value:{type:"string",enum:[t,e.channelRead,e.channelReadWrite],default:t},id:{type:"string"}}},admin:{type:"object",properties:{value:{type:"string",enum:[e.channelOwner],default:e.channelOwner},id:{type:"string"}}}}}}}},groupConfigs:{type:"array",items:{type:"object",properties:{key:{type:"string"},entityId:{type:"string"},entityType:{type:"string"},roles:{type:"object",properties:{member:{type:"object",properties:{value:{type:"string",enum:[t,e.channelRead,e.channelReadWrite],default:t},id:{type:"string"}}},admin:{type:"object",properties:{value:{type:"string",enum:[t,e.channelRead,e.channelReadWrite,e.channelManage],default:t},id:{type:"string"}}}}}}}},userConfigs:{type:"array",items:{type:"object",properties:{key:{type:"string"},entityId:{type:"string"},entityType:{type:"string"},roles:{type:"object",properties:{user:{type:"object",properties:{value:{type:"string",enum:[t,e.channelRead,e.channelReadWrite],default:t},id:{type:"string"}}}}}}}},allowAsAnonymous:{type:"boolean",default:!1}},required:["name"]};export{r as a,p as b};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250528.
|
4
|
-
import{a as e}from"./
|
3
|
+
v1.0.0-next.20250528.2 */
|
4
|
+
import{a as e}from"./MVN27KOI.js";var i=["hub:template:edit"],r=Object.assign(Object.assign({},e),{properties:Object.assign(Object.assign({},e.properties),{previewUrl:{type:"string",if:{minLength:1},then:{format:"url"}}})});export{i as a,r as b};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250528.
|
4
|
-
import{a,b}from"./
|
3
|
+
v1.0.0-next.20250528.2 */
|
4
|
+
import{a,b}from"./N324UTZ5.js";import"./MVN27KOI.js";import"./Y4M5KS3M.js";import"./A3JKO4I4.js";import"./B4HONVWZ.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.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250528.
|
4
|
-
import{a}from"./
|
3
|
+
v1.0.0-next.20250528.2 */
|
4
|
+
import{a}from"./INY65VHN.js";import{a as l}from"./QPRN44LY.js";import"./5IZBEDEU.js";import"./LYQL4O5M.js";import{a as i}from"./3XJKMZHA.js";import{a as s}from"./COLHBQ5X.js";import"./ZJXXAWMH.js";import"./XEO56VFL.js";import"./UHBAUGQ4.js";import"./BB7RJW6E.js";import"./4ME5QMIF.js";import"./R53BLRMX.js";import"./XFDA7NEB.js";import"./JDSGIOVR.js";import"./6XYU4BZS.js";import"./IP6ATOM6.js";import"./RIQZUFV2.js";import"./SFJHXT65.js";import"./RVOILI7H.js";import"./AH5AIEIN.js";import"./GUP4UK2N.js";import"./X6GE3EIS.js";import"./Z2MJRFIE.js";import"./T2DUZEDU.js";import"./N324UTZ5.js";import"./MVN27KOI.js";import"./Y4M5KS3M.js";import"./A3JKO4I4.js";import"./B4HONVWZ.js";var d=async(e,r,t)=>({type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.basicInfo.label`,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`}]}},{labelKey:`${e}.fields.access.label`,scope:"/properties/access",type:"Control",options:{control:"hub-field-input-tile-select",descriptions:[`{{${e}.fields.access.private.description:translate}}`,`{{${e}.fields.access.org.description:translate}}`,`{{${e}.fields.access.public.description:translate}}`],icons:["users","organization","globe"],labels:[`{{${e}.fields.access.private.label:translate}}`,`{{${e}.fields.access.org.label:translate}}`,`{{${e}.fields.access.public.label:translate}}`],rules:[{effect:s.NONE},{effect:s.ENABLE,conditions:[l("platform:portal:user:shareGroupToOrg",t).access]},{effect:s.ENABLE,conditions:[l("platform:portal:user:shareGroupToPublic",t).access]}]}}]},{type:"Section",labelKey:`${e}.sections.capabilities.label`,elements:[{labelKey:`${e}.fields.isSharedUpdate.label`,scope:"/properties/isSharedUpdate",type:"Control",options:{control:"hub-field-input-switch",helperText:{labelKey:`${e}.fields.isSharedUpdate.helperText`}},rule:{effect:s.ENABLE,conditions:[l("platform:portal:admin:createUpdateCapableGroup",t).access]}},{labelKey:`${e}.fields.isAdmin.label`,scope:"/properties/leavingDisallowed",type:"Control",options:{control:"hub-field-input-switch",helperText:{labelKey:`${e}.fields.isAdmin.helperText`}},rules:[{effect:s.ENABLE,conditions:[l("platform:portal:admin:createLeavingDisallowedGroup",t).access]}]},{labelKey:`${e}.fields.isOpenData.label`,scope:"/properties/isOpenData",type:"Control",options:{control:"hub-field-input-switch",helperText:{labelKey:`${e}.fields.isOpenData.helperText`},messages:[{type:"ERROR",keyword:"const",icon:!0,labelKey:`${e}.fields.isOpenData.constError`}]},rules:[{effect:s.ENABLE,conditions:[{scope:"/properties/access",schema:{const:"public"}},l("platform:opendata:user:designateGroup",t).access]},{effect:s.RESET,conditions:[{scope:"/properties/access",schema:{not:{const:"public"}}}]},{effect:s.SHOW,conditions:[!!i(t,"portal.portalProperties.openData.enabled")]}]}]},{type:"Section",labelKey:`${e}.sections.membershipAccess.label`,elements:[{labelKey:`${e}.fields.membershipAccess.label`,scope:"/properties/membershipAccess",type:"Control",options:{control:"hub-field-input-tile-select",labels:[`{{${e}.fields.membershipAccess.org.label:translate}}`,`{{${e}.fields.membershipAccess.collab.label:translate}}`,`{{${e}.fields.membershipAccess.any.label:translate}}`],descriptions:[`{{${e}.fields.membershipAccess.org.description:translate}}`,`{{${e}.fields.membershipAccess.collab.description:translate}}`,`{{${e}.fields.membershipAccess.any.description:translate}}`],rules:[[{effect:s.NONE}],[{effect:s.DISABLE,conditions:[{scope:"/properties/leavingDisallowed",schema:{const:!0}}]}],[{effect:s.DISABLE,conditions:[{scope:"/properties/leavingDisallowed",schema:{const:!0}}]},{effect:s.DISABLE,conditions:[{scope:"/properties/isSharedUpdate",schema:{const:!0}}]}]],messages:[{type:"ERROR",keyword:"pattern",icon:!0,labelKey:`${e}.fields.membershipAccess.patternError`},{type:"ERROR",keyword:"const",icon:!0,labelKey:`${e}.fields.membershipAccess.constError`}]},rules:[{effect:s.RESET,conditions:[{scope:"/properties/leavingDisallowed",schema:{const:!0}}]},{effect:s.RESET,conditions:[{scope:"/properties/isSharedUpdate",schema:{const:!0}},{scope:"/properties/membershipAccess",schema:{const:"anyone"}}]}]},{labelKey:`${e}.fields.join.label`,scope:"/properties/_join",type:"Control",options:{control:"hub-field-input-tile-select",labels:[`{{${e}.fields.join.invite.label:translate}}`,`{{${e}.fields.join.request.label:translate}}`,`{{${e}.fields.join.auto.label:translate}}`],descriptions:[`{{${e}.fields.join.invite.description:translate}}`,`{{${e}.fields.join.request.description:translate}}`,`{{${e}.fields.join.auto.description:translate}}`],rules:[[{effect:s.NONE}],[{effect:s.DISABLE,conditions:[{scope:"/properties/access",schema:{const:"private"}}]}],[{effect:s.DISABLE,conditions:[{scope:"/properties/access",schema:{const:"private"}}]},{effect:s.DISABLE,conditions:[{scope:"/properties/leavingDisallowed",schema:{const:!0}}]},{effect:s.DISABLE,conditions:[{scope:"/properties/isSharedUpdate",schema:{const:!0}}]}]],messages:[{type:"ERROR",keyword:"const",icon:!0,labelKey:`${e}.fields.join.constError`},{type:"ERROR",keyword:"pattern",icon:!0,labelKey:`${e}.fields.join.patternError`}]},rules:[{effect:s.RESET,conditions:[{scope:"/properties/access",schema:{const:"private"}}]},{effect:s.RESET,conditions:[{scope:"/properties/leavingDisallowed",schema:{const:!0}},{scope:"/properties/_join",schema:{const:"auto"}}]},{effect:s.RESET,conditions:[{scope:"/properties/isSharedUpdate",schema:{const:!0}},{scope:"/properties/_join",schema:{const:"auto"}}]}]},{labelKey:`${e}.fields.hiddenMembers.label`,scope:"/properties/hiddenMembers",type:"Control",options:{control:"hub-field-input-tile-select",labels:[`{{${e}.fields.hiddenMembers.members.label:translate}}`,`{{${e}.fields.hiddenMembers.admins.label:translate}}`],descriptions:[`{{${e}.fields.hiddenMembers.members.description:translate}}`,`{{${e}.fields.hiddenMembers.admins.description:translate}}`]}},{labelKey:`${e}.fields.contributeContent.label`,scope:"/properties/isViewOnly",type:"Control",options:{control:"hub-field-input-tile-select",labels:[`{{${e}.fields.contributeContent.members.label:translate}}`,`{{${e}.fields.contributeContent.admins.label:translate}}`],descriptions:[`{{${e}.fields.contributeContent.members.description:translate}}`,`{{${e}.fields.contributeContent.admins.description:translate}}`]}}]}]}),f=async(e,r,t)=>Object.assign(Object.assign({},a("hubGroup",t)),r);export{f as buildDefaults,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.0/esri/copyright.txt for details.
|
3
|
-
v1.0.0-next.20250528.
|
4
|
-
import{a as o}from"./
|
3
|
+
v1.0.0-next.20250528.2 */
|
4
|
+
import{a as o}from"./INY65VHN.js";import{a as r}from"./QPRN44LY.js";import"./5IZBEDEU.js";import"./LYQL4O5M.js";import"./3XJKMZHA.js";import{a as s}from"./COLHBQ5X.js";import"./ZJXXAWMH.js";import"./XEO56VFL.js";import"./UHBAUGQ4.js";import"./BB7RJW6E.js";import"./4ME5QMIF.js";import"./R53BLRMX.js";import"./XFDA7NEB.js";import"./JDSGIOVR.js";import"./6XYU4BZS.js";import"./IP6ATOM6.js";import"./RIQZUFV2.js";import"./SFJHXT65.js";import"./RVOILI7H.js";import"./AH5AIEIN.js";import"./GUP4UK2N.js";import"./X6GE3EIS.js";import"./Z2MJRFIE.js";import"./T2DUZEDU.js";import"./N324UTZ5.js";import"./MVN27KOI.js";import"./Y4M5KS3M.js";import"./A3JKO4I4.js";import"./B4HONVWZ.js";var p=async(e,l,t)=>({type:"Layout",elements:[{type:"Section",options:{section:"stepper",scale:"l"},elements:[{type:"Section",labelKey:`${e}.sections.details.label`,options:{section:"step"},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`}]}},{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:`${e}.fields.summary.maxLengthError`}]}}]},{type:"Section",labelKey:`${e}.sections.membershipAccess.label`,options:{section:"step"},rule:{effect:s.DISABLE,condition:{scope:"/properties/name",schema:{const:""}}},elements:[{scope:"/properties/isSharedUpdate",type:"Control",rule:{effect:s.HIDE,condition:{scope:"/properties/isSharedUpdate",schema:{const:!1}}}},{labelKey:`${e}.fields.membershipAccess.label`,scope:"/properties/membershipAccess",type:"Control",options:{control:"hub-field-input-radio",labels:[`{{${e}.fields.membershipAccess.org.description:translate}}`,`{{${e}.fields.membershipAccess.collab.description:translate}}`,`{{${e}.fields.membershipAccess.any.description:translate}}`],disabled:[!1,!r("platform:portal:user:addExternalMembersToGroup",t).access,!r("platform:portal:user:addExternalMembersToGroup",t).access]}},{labelKey:`${e}.fields.contributeContent.label`,scope:"/properties/isViewOnly",type:"Control",options:{control:"hub-field-input-radio",labels:[`{{${e}.fields.contributeContent.members.description:translate}}`,`{{${e}.fields.contributeContent.admins.description:translate}}`]}}]}]}]}),m=async(e,l,t)=>Object.assign({},o("hubViewGroup",t));export{m as buildDefaults,p as buildUiSchema};
|