@esri/solutions-components 1.1.0-next.20250918 → 1.1.0-next.20250919
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/{EXG2LWFP.js → 23PYPGNV.js} +2 -2
- package/dist/cdn/{TMHDYLCU.js → 25RSKNFE.js} +1 -1
- package/dist/cdn/{ZQBEJ3MF.js → 26MPYGIG.js} +2 -2
- package/dist/cdn/{TS2S5UD5.js → 2CYK7INL.js} +2 -2
- package/dist/cdn/2FRHPWIV.js +4 -0
- package/dist/cdn/{YWEGWOL6.js → 2FZTXLJF.js} +2 -2
- package/dist/cdn/{SBVCJO27.js → 2HHL5GDO.js} +2 -2
- package/dist/cdn/{AFXXIHHB.js → 2IATHBU2.js} +2 -2
- package/dist/cdn/{C3UFW4SD.js → 2JLY6GXH.js} +2 -2
- package/dist/cdn/{ACHXDMP2.js → 2RFUKAEH.js} +2 -2
- package/dist/cdn/{WUCKWIIK.js → 2SWWWDL6.js} +2 -2
- package/dist/cdn/{7CGSADF3.js → 2THMEY2A.js} +1 -1
- package/dist/cdn/{5M5WXY5D.js → 2UL3FVHJ.js} +2 -2
- package/dist/cdn/{4RG432JP.js → 2ZGO34ET.js} +2 -2
- package/dist/cdn/{MH67CIKF.js → 32ZWYM5U.js} +2 -2
- package/dist/cdn/{DP3BAPZ3.js → 3IKWHSM3.js} +1 -1
- package/dist/cdn/{TOATMX5G.js → 3LO2HODF.js} +2 -2
- package/dist/cdn/{TTOT3E4E.js → 3R3QLLTE.js} +2 -2
- package/dist/cdn/{WSVDVGIR.js → 3SQVIDB5.js} +1 -1
- package/dist/cdn/{TAGQ3DKZ.js → 3SYAT77C.js} +2 -2
- package/dist/cdn/{RM52RVBY.js → 432VI57E.js} +2 -2
- package/dist/cdn/{TOHRIUAY.js → 47YJBMJV.js} +2 -2
- package/dist/cdn/4AW7FNWE.js +4 -0
- package/dist/cdn/{K6NI3MV5.js → 4C2TWNV7.js} +2 -2
- package/dist/cdn/{HRBNLS4P.js → 4IAWWLSP.js} +2 -2
- package/dist/cdn/{2JHXJXBE.js → 4IQHWCQJ.js} +2 -2
- package/dist/cdn/{7APNF3CK.js → 4JSDFSS5.js} +2 -2
- package/dist/cdn/{DLOVBBP3.js → 4QU2JMD2.js} +2 -2
- package/dist/cdn/{WKKNCL3G.js → 4QVGUD3F.js} +2 -2
- package/dist/cdn/{SP6MBBO5.js → 4U5X6NU6.js} +2 -2
- package/dist/cdn/{C5S4VCT6.js → 4VCJMFAX.js} +2 -2
- package/dist/cdn/{WSZ3RAHC.js → 55LKJ2ER.js} +2 -2
- package/dist/cdn/{4G7JHOBE.js → 562AZEPG.js} +2 -2
- package/dist/cdn/{Q35FCICJ.js → 56UNA6ID.js} +2 -2
- package/dist/cdn/{FIFPIYRS.js → 5AQUM4X3.js} +2 -2
- package/dist/cdn/{RG7GGCLZ.js → 5H5VNAXA.js} +2 -2
- package/dist/cdn/{WTLKOIXV.js → 5HUKHE2P.js} +2 -2
- package/dist/cdn/{LQIO7OQK.js → 5JGZBRBO.js} +2 -2
- package/dist/cdn/{4PI3HRJ6.js → 5K55CNJH.js} +1 -1
- package/dist/cdn/{QZ7TGTUR.js → 5LJN7KVI.js} +2 -2
- package/dist/cdn/{XFXQJODU.js → 5NIHP2K2.js} +1 -1
- package/dist/cdn/{Y3TT3XZT.js → 5OZKEGRZ.js} +2 -2
- package/dist/cdn/{7PTFDMWD.js → 5QVK2VWY.js} +2 -2
- package/dist/cdn/{GDGFGQVP.js → 5TDJQGLS.js} +2 -2
- package/dist/cdn/{QCYE43LA.js → 5UQQ2RDV.js} +2 -2
- package/dist/cdn/{JHQ6T7YQ.js → 5YP4AERJ.js} +2 -2
- package/dist/cdn/{XCVUU4D2.js → 5YPAOQZ6.js} +1 -1
- package/dist/cdn/{HJALSQ2B.js → 64QGVYDL.js} +2 -2
- package/dist/cdn/{7TXL6ZXS.js → 6EP7EYXF.js} +2 -2
- package/dist/cdn/{NB7W646W.js → 6Q2D4LH4.js} +2 -2
- package/dist/cdn/{QSVVVRGK.js → 6U7GCOZ5.js} +2 -2
- package/dist/cdn/6UPSEFSF.js +18 -0
- package/dist/cdn/{TQGSPNPH.js → 6YNWD75J.js} +2 -2
- package/dist/cdn/{E7CWH6TZ.js → 72DHPFOS.js} +2 -2
- package/dist/cdn/{YJVNB2M3.js → 74AF7Q4V.js} +2 -2
- package/dist/cdn/7E7MOB3V.js +4 -0
- package/dist/cdn/{GZIJS2GU.js → 7EVMSXGI.js} +1 -1
- package/dist/cdn/{C6U6B3CU.js → 7MAKRCEP.js} +2 -2
- package/dist/cdn/{V4T2ETXO.js → 7POFPYPL.js} +2 -2
- package/dist/cdn/{MNBX566Z.js → 7WCO6UHS.js} +3 -3
- package/dist/cdn/{E3KVGF4L.js → 7Z73FBIK.js} +2 -2
- package/dist/cdn/{TZM4KKKJ.js → 7Z7DPYIV.js} +2 -2
- package/dist/cdn/{5L6DT27J.js → ADNYNIMK.js} +2 -2
- package/dist/cdn/{M2Z3HXZQ.js → AE6GZGAF.js} +2 -2
- package/dist/cdn/{I4W4K4MF.js → AF4N3OIS.js} +2 -2
- package/dist/cdn/{4ZLU7JSS.js → AFOJQ2IE.js} +2 -2
- package/dist/cdn/{UFZWSZKP.js → AJ5SJVVJ.js} +1 -1
- package/dist/cdn/{PIB7AAJI.js → ALVRVNPS.js} +2 -2
- package/dist/cdn/{KBEGFMPW.js → AN4LWKCH.js} +2 -2
- package/dist/cdn/{ZVCEA3AV.js → ARWKSZYZ.js} +2 -2
- package/dist/cdn/{MIQMPLJK.js → ATEIJZEP.js} +1 -1
- package/dist/cdn/{2UJVL4QQ.js → AUII4R6E.js} +2 -2
- package/dist/cdn/{2LYCBURA.js → AXIZYYOD.js} +1 -1
- package/dist/cdn/{W7KH3DOF.js → B2T3TKPT.js} +2 -2
- package/dist/cdn/{2CM55YDX.js → B5XKFTAI.js} +2 -2
- package/dist/cdn/{A2G2CVO3.js → BANPC5UN.js} +2 -2
- package/dist/cdn/BASOFVFN.js +18 -0
- package/dist/cdn/{VGPUNQ46.js → BB6FNZS2.js} +2 -2
- package/dist/cdn/{DXU2MDXQ.js → BIE7H7F2.js} +2 -2
- package/dist/cdn/{IXDPZDG7.js → BJ5ZJE23.js} +1 -1
- package/dist/cdn/{EL3AZ2TE.js → BU4X4WFA.js} +2 -2
- package/dist/cdn/{CNOZUDIC.js → CBE2FWWU.js} +2 -2
- package/dist/cdn/{XJHXUHBP.js → CC2LNAHG.js} +1 -1
- package/dist/cdn/{FJ3JMDO3.js → CCYIGVA2.js} +2 -2
- package/dist/cdn/{4YVCMLLQ.js → CH3ZEWSV.js} +2 -2
- package/dist/cdn/{NXSAOV4D.js → CI66WKOX.js} +2 -2
- package/dist/cdn/{3VFOCUIY.js → CJSVQ6LG.js} +2 -2
- package/dist/cdn/{SBULVRIS.js → CT5VPZ32.js} +2 -2
- package/dist/cdn/{FHJVCNBC.js → CTLPAA4F.js} +2 -2
- package/dist/cdn/{IJOXGPSG.js → CVEXPD4L.js} +2 -2
- package/dist/cdn/{FY7BQW5O.js → CZ3DHUQ3.js} +2 -2
- package/dist/cdn/{CF2GDYJF.js → D2I2ESY7.js} +3 -3
- package/dist/cdn/{W7B5L4CK.js → D3DQOXP7.js} +1 -1
- package/dist/cdn/{CAYGVNCE.js → D5EZNHFT.js} +2 -2
- package/dist/cdn/{GYVJCGWT.js → D6ZXJZNV.js} +2 -2
- package/dist/cdn/{NAXWZGD6.js → DA7EQQQU.js} +2 -2
- package/dist/cdn/{42FLSICQ.js → DCUZHEWF.js} +2 -2
- package/dist/cdn/{AORJT52X.js → DENX5YNF.js} +1 -1
- package/dist/cdn/{NX4AX3KO.js → DG3NCHON.js} +2 -2
- package/dist/cdn/{L7GVW7QX.js → DSTJEDHH.js} +2 -2
- package/dist/cdn/{UQSQ4VHS.js → E5GL7ZOO.js} +2 -2
- package/dist/cdn/{VIUPYQTS.js → E6QXIUK2.js} +2 -2
- package/dist/cdn/{YYGOSYSC.js → E7LSVQOS.js} +2 -2
- package/dist/cdn/{5OB5A7JZ.js → E7VUQI3W.js} +2 -2
- package/dist/cdn/{UW6BLDIL.js → EA7EXXPZ.js} +2 -2
- package/dist/cdn/{23S6EEJJ.js → EB3NEWYB.js} +2 -2
- package/dist/cdn/{NOZZ6JIN.js → EBWLV674.js} +2 -2
- package/dist/cdn/{ZJ6Q46KE.js → EI7LNKKF.js} +2 -2
- package/dist/cdn/{WEJZMSBP.js → EIBMPHPY.js} +1 -1
- package/dist/cdn/{JMNMXQC2.js → ESSLZVVZ.js} +2 -2
- package/dist/cdn/{MHKLL3MA.js → EU6EU6DN.js} +2 -2
- package/dist/cdn/{KBETDJ3V.js → EW5FRZQQ.js} +2 -2
- package/dist/cdn/{I544OLET.js → FA4AWNDK.js} +2 -2
- package/dist/cdn/{C7RBG54V.js → FE3NYFDU.js} +2 -2
- package/dist/cdn/{BZ4VVHFA.js → FE6WEO2D.js} +2 -2
- package/dist/cdn/{E2VWNKDB.js → FNFPOYOS.js} +2 -2
- package/dist/cdn/{CFXAWTUK.js → FNL2JJQX.js} +2 -2
- package/dist/cdn/{BCB4CHS5.js → FPUFZF74.js} +2 -2
- package/dist/cdn/{RWNIACAM.js → FQ5GITBB.js} +2 -2
- package/dist/cdn/{OK2VUH32.js → FQRFXUNP.js} +2 -2
- package/dist/cdn/{MC2YIBML.js → FRAOXURA.js} +2 -2
- package/dist/cdn/{7MPWUI3A.js → FRWWQJ2M.js} +2 -2
- package/dist/cdn/{I6QPTEL4.js → FT3M26O4.js} +2 -2
- package/dist/cdn/{I2JGJUCH.js → FU4RJFYP.js} +2 -2
- package/dist/cdn/{F7FYEDQY.js → FVOE74BK.js} +2 -2
- package/dist/cdn/{MYHIWH5I.js → FXUBY7ZI.js} +1 -1
- package/dist/cdn/{6TW6R4II.js → G3MLFCP4.js} +2 -2
- package/dist/cdn/{2KXD4HDZ.js → G7SMBZCG.js} +2 -2
- package/dist/cdn/GDU5C2F2.js +18 -0
- package/dist/cdn/{CB643KCV.js → GEMXWNPC.js} +2 -2
- package/dist/cdn/{BHOGCHDC.js → GG5SR2DN.js} +2 -2
- package/dist/cdn/{CYT3IRRK.js → GMP3K42J.js} +1 -1
- package/dist/cdn/{NTUGXWFS.js → GOWHF3XU.js} +2 -2
- package/dist/cdn/{L642BNGD.js → GQ4HJK47.js} +2 -2
- package/dist/cdn/{ZQVCE55H.js → GS2ZMY5L.js} +2 -2
- package/dist/cdn/{PY3L2YRP.js → GUCS3IQJ.js} +1 -1
- package/dist/cdn/{TNE2A2UZ.js → H7TNBG6I.js} +2 -2
- package/dist/cdn/{6TP52DHM.js → HAUOB7H3.js} +2 -2
- package/dist/cdn/{YTSY5IPE.js → HBIOS5LM.js} +2 -2
- package/dist/cdn/{7AFU26ST.js → HC6RX3Q6.js} +2 -2
- package/dist/cdn/{6JHAGIGY.js → HEA4GVJW.js} +2 -2
- package/dist/cdn/HEKH6UA4.js +18 -0
- package/dist/cdn/HINOYDAA.js +4 -0
- package/dist/cdn/{RN7COLOT.js → HJW6V57X.js} +2 -2
- package/dist/cdn/{GIMBZWRY.js → HN3XNEVJ.js} +2 -2
- package/dist/cdn/{GXEJURTW.js → HNF32GWL.js} +2 -2
- package/dist/cdn/{AD7JQFFW.js → HNQV5CFC.js} +2 -2
- package/dist/cdn/{Z6D7ZWHG.js → HOSXLV5P.js} +2 -2
- package/dist/cdn/{YAP4GEUM.js → HPDRWYXH.js} +2 -2
- package/dist/cdn/{DOI6UXL3.js → HXCLPF67.js} +1 -1
- package/dist/cdn/{BODQC5VO.js → HXQHIZRM.js} +2 -2
- package/dist/cdn/{7NFNHDZW.js → HYFTYDHW.js} +2 -2
- package/dist/cdn/{EGXFDWON.js → HYG2GVSK.js} +2 -2
- package/dist/cdn/{7N3YHDOZ.js → HZ3XYDCO.js} +2 -2
- package/dist/cdn/{BJO4PB2J.js → HZPUJDQL.js} +2 -2
- package/dist/cdn/{MYZBNHTG.js → I3IEGFQU.js} +2 -2
- package/dist/cdn/{KR2KJPAN.js → I4KIQZD5.js} +2 -2
- package/dist/cdn/{43HS5FLJ.js → IFFNZMC4.js} +2 -2
- package/dist/cdn/IHMGQ7TE.js +4 -0
- package/dist/cdn/{5GKUSQ6E.js → IQ5TNSK7.js} +2 -2
- package/dist/cdn/{IOQBPAW4.js → J753SYSS.js} +2 -2
- package/dist/cdn/{CTBD64ZT.js → JAWGITGA.js} +2 -2
- package/dist/cdn/{RHFEB5P3.js → JAWSSA66.js} +2 -2
- package/dist/cdn/{IKG4ESDZ.js → JG7WE5VY.js} +2 -2
- package/dist/cdn/{HYXUBDTL.js → JHFT7ED3.js} +2 -2
- package/dist/cdn/JJEPRKG5.js +18 -0
- package/dist/cdn/{5KFT2SWV.js → JNRRGIAL.js} +2 -2
- package/dist/cdn/{M5KF2LTL.js → K23NB7A3.js} +2 -2
- package/dist/cdn/{OG4GTXKF.js → KAVFVYGQ.js} +2 -2
- package/dist/cdn/{LO5JM2WU.js → KCOXJNV4.js} +2 -2
- package/dist/cdn/{S47ZMQFF.js → KE6H3BHJ.js} +2 -2
- package/dist/cdn/{H5MLZBXO.js → KELWC65W.js} +2 -2
- package/dist/cdn/{DGJMED3Y.js → KETZORZX.js} +2 -2
- package/dist/cdn/KIXKAXP2.js +4 -0
- package/dist/cdn/{6KE5L5X3.js → KPLHATSJ.js} +2 -2
- package/dist/cdn/{RFLYSZJY.js → KTFGWGKB.js} +2 -2
- package/dist/cdn/{QH2EQ6AB.js → KXIJTBOH.js} +2 -2
- package/dist/cdn/{UYXSHQJ6.js → L26VEW5I.js} +2 -2
- package/dist/cdn/L4NNDOQH.js +18 -0
- package/dist/cdn/{5RKIZ47W.js → L5NKIU4P.js} +2 -2
- package/dist/cdn/{DSTTPTV5.js → LA5337YO.js} +2 -2
- package/dist/cdn/LD2K4YDV.js +18 -0
- package/dist/cdn/{UP4YECDB.js → LG3XRLMB.js} +2 -2
- package/dist/cdn/{JE3Y33VM.js → LK7VF7MT.js} +2 -2
- package/dist/cdn/{PRQ3BN6D.js → LNY7QBOX.js} +2 -2
- package/dist/cdn/{ULS5MVPL.js → LSANVT5Q.js} +2 -2
- package/dist/cdn/{KWX75IDR.js → LWUXNH2Y.js} +2 -2
- package/dist/cdn/LY2B7R4M.js +18 -0
- package/dist/cdn/LYEKZJKW.js +18 -0
- package/dist/cdn/{OS2GJMH7.js → MCTZ4C5W.js} +2 -2
- package/dist/cdn/{YTDCQH3V.js → MHRZJSSA.js} +2 -2
- package/dist/cdn/{3WX42QWG.js → MMXXIBS5.js} +2 -2
- package/dist/cdn/{M5AP2JG7.js → MO6MKYJW.js} +2 -2
- package/dist/cdn/{PNFPRYIT.js → MQ7EBB2U.js} +2 -2
- package/dist/cdn/{4FXJXLF3.js → MWENB3XH.js} +1 -1
- package/dist/cdn/{57BWNUQN.js → MWUM2627.js} +2 -2
- package/dist/cdn/{MJNA3JR4.js → MYOX7NAJ.js} +2 -2
- package/dist/cdn/{2MT6SRIN.js → MZVKU4TZ.js} +2 -2
- package/dist/cdn/{UXZHHHLG.js → N2STUL4S.js} +1 -1
- package/dist/cdn/{CLI65JRJ.js → NEUTRLHU.js} +2 -2
- package/dist/cdn/{4JXYUHRY.js → NFQH774I.js} +2 -2
- package/dist/cdn/{AAWBBS2Z.js → NJW7I7SS.js} +2 -2
- package/dist/cdn/{55TRBFNW.js → NM2BHX26.js} +2 -2
- package/dist/cdn/NQP4VUTT.js +4 -0
- package/dist/cdn/{5ADHMROB.js → NR4A5JZV.js} +2 -2
- package/dist/cdn/{4BHQRR43.js → NU4UFWQN.js} +1 -1
- package/dist/cdn/{GHDED6RA.js → NWY6LVXU.js} +2 -2
- package/dist/cdn/{XDEQL5FG.js → O7KPE4S2.js} +2 -2
- package/dist/cdn/{AQXNG4JP.js → OHZPPS2Y.js} +2 -2
- package/dist/cdn/{L4LPFRHU.js → OIVD6L7F.js} +2 -2
- package/dist/cdn/{RVE3I7IB.js → OKM7IFJT.js} +2 -2
- package/dist/cdn/{FAC3FIXQ.js → OKPUOSNJ.js} +2 -2
- package/dist/cdn/ORMHAQB7.js +18 -0
- package/dist/cdn/{C5PS67BK.js → OSDOJ6EG.js} +2 -2
- package/dist/cdn/{HU2M2QL5.js → P4UQORJJ.js} +2 -2
- package/dist/cdn/{6KUNGOBE.js → PA4DS7UD.js} +2 -2
- package/dist/cdn/{5WJEMFP4.js → PCNIUE3B.js} +2 -2
- package/dist/cdn/{SDUBMK5P.js → PF35JCH7.js} +2 -2
- package/dist/cdn/{HEODNUCF.js → PFPNBDCQ.js} +2 -2
- package/dist/cdn/{7OKAR2WW.js → PGB5HKNC.js} +3 -3
- package/dist/cdn/{WOLUDKVM.js → PH6GKCBC.js} +2 -2
- package/dist/cdn/{OQU2M7TW.js → PJB6T3JY.js} +2 -2
- package/dist/cdn/{PR6GFK4E.js → PO2ONXW6.js} +1 -1
- package/dist/cdn/{N4TGQB52.js → PQVTEZTM.js} +1 -1
- package/dist/cdn/{C5CLRKXN.js → PS6GNZFQ.js} +2 -2
- package/dist/cdn/{73CASDEI.js → PUXC5C63.js} +2 -2
- package/dist/cdn/{WBGJSXJT.js → PV6TADBQ.js} +2 -2
- package/dist/cdn/{HGGBDR6W.js → PX67KWPD.js} +1 -1
- package/dist/cdn/{V6PVEI6X.js → PYH362OX.js} +2 -2
- package/dist/cdn/{2FPOATKA.js → PYJ724PJ.js} +1 -1
- package/dist/cdn/{XULVZZCR.js → PYZAQTM4.js} +2 -2
- package/dist/cdn/{VFLFL5RJ.js → Q2ZQ2IC7.js} +2 -2
- package/dist/cdn/{3RYVOOFK.js → QAGKIOBD.js} +2 -2
- package/dist/cdn/QBJU6IP5.js +18 -0
- package/dist/cdn/{P6QWU3HN.js → QDQJTLHQ.js} +1 -1
- package/dist/cdn/{523PAUYV.js → QGBTVRJY.js} +2 -2
- package/dist/cdn/{SOBKIHPD.js → QGJBCH3J.js} +2 -2
- package/dist/cdn/{MBLC5XEC.js → QJSJ4SPQ.js} +2 -2
- package/dist/cdn/{JAEOEKLB.js → QQN3GEXF.js} +2 -2
- package/dist/cdn/{XR4RMWBZ.js → QQW4IRIB.js} +2 -2
- package/dist/cdn/{LSVNZAPZ.js → QRDUEB4Y.js} +2 -2
- package/dist/cdn/{7WXOR2FW.js → QT2ICYK5.js} +1 -1
- package/dist/cdn/{JLOQF4OC.js → QTFRNZEA.js} +2 -2
- package/dist/cdn/{XIXZ3LRX.js → QU3FFVKQ.js} +2 -2
- package/dist/cdn/{EDGJP4IP.js → QZRPG5CX.js} +1 -1
- package/dist/cdn/{Q7WWCBUJ.js → R66SCXZQ.js} +1 -1
- package/dist/cdn/{GODZUS3A.js → RFSRITZ3.js} +2 -2
- package/dist/cdn/{3FLXGP5N.js → RI55VV32.js} +2 -2
- package/dist/cdn/{267ILKAW.js → RK2UE6FN.js} +2 -2
- package/dist/cdn/{WNRVYBAM.js → RLUV6QYP.js} +2 -2
- package/dist/cdn/RPM34J5M.js +4 -0
- package/dist/cdn/{LZOLHH3N.js → RQB6F4ZT.js} +1 -1
- package/dist/cdn/{EWAQ4SPD.js → RSM3GJKQ.js} +2 -2
- package/dist/cdn/{VJ26REKL.js → RUCBQVDF.js} +2 -2
- package/dist/cdn/{66KIM34X.js → RVQIOSL2.js} +2 -2
- package/dist/cdn/RXZDN6NU.js +18 -0
- package/dist/cdn/S27232YD.js +4 -0
- package/dist/cdn/{VOP3SI3L.js → S6KPAYGB.js} +2 -2
- package/dist/cdn/{EH3YDHP6.js → SGQEROKT.js} +2 -2
- package/dist/cdn/{N3TAKO2X.js → SIE7WLV5.js} +2 -2
- package/dist/cdn/SKPLZFNI.js +4 -0
- package/dist/cdn/{4XKIISXN.js → SL2LNMCO.js} +2 -2
- package/dist/cdn/{TYQUUGL4.js → SLKBOCZL.js} +2 -2
- package/dist/cdn/{OY3VJZ5U.js → SN3TXCGK.js} +2 -2
- package/dist/cdn/{47SWZ6TT.js → SQB5VJDS.js} +2 -2
- package/dist/cdn/{KRBS447Y.js → SXCP2T6E.js} +2 -2
- package/dist/cdn/{O65FO3OA.js → T2N7VC65.js} +2 -2
- package/dist/cdn/{NMJGXHJ5.js → TA35OO54.js} +1 -1
- package/dist/cdn/{YWTJP55I.js → TFMNN3QH.js} +2 -2
- package/dist/cdn/{6ZRMB6DD.js → THUK2QLB.js} +2 -2
- package/dist/cdn/{UEHLGNLF.js → TJZ2QWYE.js} +2 -2
- package/dist/cdn/{356U3AGS.js → TLOO6GT2.js} +2 -2
- package/dist/cdn/{HYCRM4CP.js → TNZZQREZ.js} +1 -1
- package/dist/cdn/{I3XLBATE.js → TRPCOGWZ.js} +2 -2
- package/dist/cdn/{JG4LPMWJ.js → U3M35BAO.js} +2 -2
- package/dist/cdn/U44AVH5Y.js +18 -0
- package/dist/cdn/{KJVS54S2.js → U4SIV6SN.js} +2 -2
- package/dist/cdn/{MFBGM4WK.js → U57PST54.js} +2 -2
- package/dist/cdn/{U2JYNV6E.js → UGC33LAX.js} +2 -2
- package/dist/cdn/{EDULPK3Y.js → UMOWAYHA.js} +2 -2
- package/dist/cdn/{WZE3AUQY.js → UNYTEEQV.js} +2 -2
- package/dist/cdn/{3P72MRKR.js → UR7TIUZF.js} +2 -2
- package/dist/cdn/{XS2IY2B5.js → UU6AAXJP.js} +2 -2
- package/dist/cdn/{F4GJWTGK.js → UUADKV5W.js} +2 -2
- package/dist/cdn/{CCJFC54C.js → UVWMFGUU.js} +4 -4
- package/dist/cdn/{QWPYDYAF.js → UYGXKJNM.js} +3 -3
- package/dist/cdn/{OIUFE5VJ.js → UZQZVSQD.js} +2 -2
- package/dist/cdn/{WMAGU74P.js → V3SNI5H2.js} +2 -2
- package/dist/cdn/{RLPBI3FM.js → V3ZOI4XV.js} +2 -2
- package/dist/cdn/{ZLA67MLJ.js → V4IDVZKR.js} +2 -2
- package/dist/cdn/{EL4DMLJ4.js → V5NNJMHK.js} +2 -2
- package/dist/cdn/{OCUWRCVO.js → V7E3LE7X.js} +2 -2
- package/dist/cdn/{57HVUMUV.js → V7KS5YMF.js} +2 -2
- package/dist/cdn/{KT4SWIVA.js → VG2ZP6YR.js} +2 -2
- package/dist/cdn/{GBO2INNV.js → VKTYC5RV.js} +2 -2
- package/dist/cdn/{HRBA3DQH.js → VM2ZXL7L.js} +2 -2
- package/dist/cdn/{6HPLUYFF.js → VUF6ZPJJ.js} +2 -2
- package/dist/cdn/{IYTM4DLE.js → VVUGVETI.js} +2 -2
- package/dist/cdn/{Q2EKFRJV.js → WGQ3BAPY.js} +2 -2
- package/dist/cdn/{GJC6WAZN.js → WHB6PGTX.js} +2 -2
- package/dist/cdn/{RSUBIG6G.js → WHQBQBQO.js} +2 -2
- package/dist/cdn/{ROPLCDMX.js → WJGQQRX2.js} +2 -2
- package/dist/cdn/{GMMMSDQP.js → WTHVFXJB.js} +2 -2
- package/dist/cdn/{MSXXA6RI.js → WTXX37R3.js} +2 -2
- package/dist/cdn/{DWNUQADA.js → WXICUJ23.js} +2 -2
- package/dist/cdn/{SBG5PBF4.js → X3XJ5ILF.js} +2 -2
- package/dist/cdn/{Z7S7GDD2.js → X4DPUBIL.js} +2 -2
- package/dist/cdn/{6DS6ZO67.js → XG4TIED2.js} +2 -2
- package/dist/cdn/{KVCKEWOB.js → XI7PHODP.js} +2 -2
- package/dist/cdn/{DUIQAQHS.js → XKGFKXIJ.js} +4 -4
- package/dist/cdn/{AVF4T5CW.js → XO5UMF4F.js} +2 -2
- package/dist/cdn/{2JYSDDCE.js → XPDIQAH2.js} +2 -2
- package/dist/cdn/{O7OKE2PN.js → XRZSNVB5.js} +2 -2
- package/dist/cdn/{FWASWMTC.js → XWWEONFO.js} +2 -2
- package/dist/cdn/{IVDBT5K6.js → XXR4BGO2.js} +2 -2
- package/dist/cdn/{PKLCZ6KE.js → XYPES4NY.js} +2 -2
- package/dist/cdn/{DJPFENB6.js → YBYKYXVG.js} +2 -2
- package/dist/cdn/{REYKTB7Z.js → YF4CPLBO.js} +2 -2
- package/dist/cdn/{OC42FDOJ.js → YGU5ONQK.js} +2 -2
- package/dist/cdn/{3X343PCD.js → YIJU3CFJ.js} +1 -1
- package/dist/cdn/{JD626743.js → YJDWVMSX.js} +2 -2
- package/dist/cdn/{H24P4PA2.js → YN6KNB56.js} +2 -2
- package/dist/cdn/{4DCSH5TV.js → YRCLQILQ.js} +2 -2
- package/dist/cdn/{DQB2TSI3.js → YS2IKZ3R.js} +2 -2
- package/dist/cdn/{IVYZCEOK.js → YSHTOQ6Z.js} +2 -2
- package/dist/cdn/{7L77O7JG.js → YXQJQV2U.js} +2 -2
- package/dist/cdn/{WCLO26J4.js → YZCOFSVF.js} +2 -2
- package/dist/cdn/{VBEI6EDT.js → Z2TDHXQC.js} +2 -2
- package/dist/cdn/{ZFUCUGNJ.js → Z4SA5HX7.js} +2 -2
- package/dist/cdn/{LDYIKFEJ.js → Z4TXATS4.js} +1 -1
- package/dist/cdn/{2UUZVX4N.js → Z6Z36OMO.js} +1 -1
- package/dist/cdn/{X6PGFPTQ.js → Z7DPN4Q7.js} +2 -2
- package/dist/cdn/{RCRAYSXU.js → ZDYHNNR5.js} +2 -2
- package/dist/cdn/{PD62IC7W.js → ZG5775EA.js} +1 -1
- package/dist/cdn/{K6A7A3JC.js → ZH3L7E5H.js} +2 -2
- package/dist/cdn/{XFIDAAZT.js → ZKNJZXGX.js} +2 -2
- package/dist/cdn/{OAEMMAHU.js → ZMAVDEDI.js} +1 -1
- package/dist/cdn/{CLP7WGVJ.js → ZNRHJ2RK.js} +2 -2
- package/dist/cdn/{GNBQIATI.js → ZORDTYNP.js} +2 -2
- package/dist/cdn/{YKEZROWG.js → ZTACEYD6.js} +2 -2
- package/dist/cdn/assets/crowdsource-manager/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/crowdsource-manager/t9n/messages.json +1 -1
- package/dist/cdn/assets/refine-selection/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/refine-selection/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/refine-selection/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/refine-selection/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/refine-selection/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/refine-selection/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/refine-selection/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/refine-selection/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/refine-selection/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/refine-selection/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/refine-selection/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/refine-selection/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/refine-selection/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/refine-selection/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/refine-selection/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/refine-selection/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/refine-selection/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/refine-selection/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/refine-selection/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/refine-selection/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/refine-selection/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/refine-selection/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/refine-selection/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/refine-selection/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/refine-selection/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/refine-selection/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/refine-selection/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/refine-selection/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/refine-selection/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/refine-selection/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/refine-selection/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/refine-selection/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/refine-selection/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/refine-selection/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/refine-selection/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/refine-selection/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/refine-selection/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/refine-selection/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/refine-selection/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/Auth.js +1 -1
- package/dist/chunks/CardsFetcher.js +1 -1
- package/dist/chunks/appConfig.js +1 -1
- package/dist/chunks/cardFetchingUtils.js +1 -1
- package/dist/chunks/cardsHelpers.js +1 -1
- package/dist/chunks/common.js +1 -1
- package/dist/chunks/deployAppContexts.js +1 -1
- package/dist/chunks/downloadUtils.js +1 -1
- package/dist/chunks/getItemIcon.js +1 -1
- package/dist/chunks/helpers.js +1 -1
- package/dist/chunks/interfaces.js +1 -1
- package/dist/chunks/loadModules.js +1 -1
- package/dist/chunks/mapViewUtils.js +1 -1
- package/dist/chunks/pciUtils.js +1 -1
- package/dist/chunks/popupUtils.js +1 -1
- package/dist/chunks/prepareDataForSolutionDisplay.js +1 -1
- package/dist/chunks/privilegeUtils.js +1 -1
- package/dist/chunks/publicNotificationContext.js +1 -1
- package/dist/chunks/queryUtils.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/solution-store.js +1 -1
- package/dist/chunks/templates.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
- package/dist/components/basemap-gallery/customElement.js +1 -1
- package/dist/components/buffer-tools/customElement.js +1 -1
- package/dist/components/card-manager/customElement.js +1 -1
- package/dist/components/consent-manager/customElement.js +1 -1
- package/dist/components/create-feature/customElement.js +1 -1
- package/dist/components/create-related-feature/customElement.js +1 -1
- package/dist/components/crowdsource-manager/customElement.js +32 -27
- package/dist/components/crowdsource-manager/index.d.ts +1 -0
- package/dist/components/crowdsource-manager/index.js +1 -0
- 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 +2 -2
- package/dist/components/floor-filter/customElement.js +1 -1
- package/dist/components/info-card/customElement.js +1 -1
- package/dist/components/json-editor/customElement.js +1 -1
- package/dist/components/layer-list/customElement.js +1 -1
- package/dist/components/layer-table/customElement.js +71 -51
- package/dist/components/map-card/customElement.js +52 -35
- 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 +29 -27
- package/dist/components/map-legend/customElement.js +1 -1
- package/dist/components/map-picker/customElement.js +28 -13
- 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.d.ts +2 -0
- package/dist/components/map-tools/customElement.js +46 -39
- package/dist/components/pci-calculator/customElement.js +1 -1
- package/dist/components/pdf-download/customElement.js +1 -1
- package/dist/components/public-notification/customElement.js +1 -1
- package/dist/components/refine-selection/customElement.js +1 -1
- package/dist/components/selection-tool/customElement.js +1 -1
- package/dist/components/solution-article-card/customElement.js +1 -1
- package/dist/components/solution-configuration/customElement.js +1 -1
- package/dist/components/solution-configure-dialog/customElement.js +1 -1
- package/dist/components/solution-configure-titles/customElement.js +1 -1
- package/dist/components/solution-contents/customElement.js +1 -1
- package/dist/components/solution-delete-dialog/customElement.js +79 -85
- package/dist/components/solution-deploy-dialog/customElement.js +1 -1
- package/dist/components/solution-deployed-card/customElement.js +1 -1
- package/dist/components/solution-deploying-dialog/customElement.js +1 -1
- package/dist/components/solution-details-card/customElement.js +3 -3
- 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 +9 -9
- package/dist/components/solution-item-details/customElement.js +1 -1
- package/dist/components/solution-item-diagram/customElement.js +1 -1
- package/dist/components/solution-item-icon/customElement.js +1 -1
- package/dist/components/solution-item-sharing/customElement.js +1 -1
- package/dist/components/solution-organization-variables/customElement.js +1 -1
- package/dist/components/solution-resource-item/customElement.js +1 -1
- package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
- package/dist/components/solution-social-share/customElement.js +1 -1
- package/dist/components/solution-spatial-ref/customElement.js +1 -1
- package/dist/components/solution-template-data/customElement.js +1 -1
- package/dist/components/solution-variables/customElement.js +1 -1
- package/dist/components/solutions-all-panel/customElement.d.ts +7 -0
- package/dist/components/solutions-all-panel/customElement.js +13 -10
- package/dist/components/solutions-all-shell/customElement.js +3 -4
- package/dist/components/solutions-article-panel/customElement.js +1 -1
- package/dist/components/solutions-articles/customElement.js +1 -1
- package/dist/components/solutions-articles-shell/customElement.js +1 -1
- package/dist/components/solutions-deploy-app/customElement.js +26 -25
- package/dist/components/solutions-deployed-filter-panel/customElement.js +7 -7
- package/dist/components/solutions-deployed-panel/customElement.d.ts +7 -0
- package/dist/components/solutions-deployed-panel/customElement.js +27 -42
- package/dist/components/solutions-deployed-shell/customElement.js +23 -20
- 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 +158 -2
- package/dist/docs/docs.json +134 -2
- package/dist/docs/vscode.html-custom-data.json +2 -2
- package/dist/docs/web-types.json +8 -3
- package/dist/index.js +1 -1
- package/dist/loader.js +4 -4
- package/dist/types/lumina.d.ts +1 -1
- package/dist/types/preact.d.ts +1 -1
- package/dist/types/preact10.d.ts +1 -1
- package/dist/types/react.d.ts +1 -1
- package/dist/types/stencil.d.ts +1 -1
- package/dist/utils/interfaces.d.ts +3 -1
- package/package.json +1 -1
- package/dist/cdn/2T5TODNM.js +0 -4
- package/dist/cdn/6RP2W573.js +0 -4
- package/dist/cdn/6ZCDFHVZ.js +0 -18
- package/dist/cdn/B2P4HZ4A.js +0 -18
- package/dist/cdn/BEVD4UPH.js +0 -18
- package/dist/cdn/E5TX56YC.js +0 -18
- package/dist/cdn/E66X45EE.js +0 -4
- package/dist/cdn/F4O4RVUG.js +0 -18
- package/dist/cdn/GNQRFWIP.js +0 -18
- package/dist/cdn/JE5SQDYP.js +0 -18
- package/dist/cdn/K3UXBGBS.js +0 -18
- package/dist/cdn/KOSABRPM.js +0 -18
- package/dist/cdn/L6ODTMSI.js +0 -18
- package/dist/cdn/N522EEE5.js +0 -18
- package/dist/cdn/NAKER4VF.js +0 -4
- package/dist/cdn/ODCDUFI4.js +0 -4
- package/dist/cdn/S47BFXRX.js +0 -18
- package/dist/cdn/TEHMT2LM.js +0 -18
- package/dist/cdn/VJPQYLWD.js +0 -4
- package/dist/cdn/VQNQGNNM.js +0 -4
- package/dist/cdn/WDSIGZKO.js +0 -4
- package/dist/cdn/XW4EUXBY.js +0 -4
- package/dist/cdn/ZUOT6FCM.js +0 -4
@@ -0,0 +1,18 @@
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
|
+
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
+
v1.1.0-next.20250919 */
|
4
|
+
import{b as A}from"./UVWMFGUU.js";import"./7WCO6UHS.js";import"./YSHTOQ6Z.js";import"./ATEIJZEP.js";import"./DG3NCHON.js";import"./YGU5ONQK.js";import"./5UQQ2RDV.js";import"./CC2LNAHG.js";import"./GUCS3IQJ.js";import"./6U7GCOZ5.js";import"./MWENB3XH.js";import"./PYJ724PJ.js";import"./TA35OO54.js";import"./56UNA6ID.js";import"./RUCBQVDF.js";import"./CI66WKOX.js";import"./PQVTEZTM.js";import"./QDQJTLHQ.js";import"./7POFPYPL.js";import"./NU4UFWQN.js";import"./ZG5775EA.js";import"./3SQVIDB5.js";import{a as C}from"./7E7MOB3V.js";import"./AJ5SJVVJ.js";import"./VM2ZXL7L.js";import{c as F,d as O,j as m}from"./QQN3GEXF.js";import{j as b}from"./Z6Z36OMO.js";import{c as S}from"./PX67KWPD.js";import{b as E}from"./HXCLPF67.js";import{a as x}from"./2SWWWDL6.js";import"./2HHL5GDO.js";import"./HZPUJDQL.js";import{b as v}from"./EI7LNKKF.js";import{C as u,D as g,E as T,G as f,h as w,i as o,l as c,o as p,r as I}from"./RQB6F4ZT.js";import"./FXUBY7ZI.js";var H=w`@layer{/** @license
|
5
|
+
* Copyright 2025 Esri
|
6
|
+
*
|
7
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
8
|
+
* you may not use this file except in compliance with the License.
|
9
|
+
* You may obtain a copy of the License at
|
10
|
+
*
|
11
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
12
|
+
*
|
13
|
+
* Unless required by applicable law or agreed to in writing, software
|
14
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
15
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
16
|
+
* See the License for the specific language governing permissions and
|
17
|
+
* limitations under the License.
|
18
|
+
*/:host{display:block}.height-full{height:100%}.height-full-adjusted{height:calc(100% - 20px)}.width-full{width:100%}.display-flex{display:flex}.display-none{display:none}.table-border{border:1px solid var(--calcite-color-border-2)}.border-end{border-inline-end:1px solid var(--calcite-color-border-2)}.border-bottom{border-bottom:1px solid var(--calcite-color-border-2)}.padding-5{padding:5px}.padding-end-1{padding-inline-end:1rem}.height-51-px{height:51px}.height-50-px{height:50px}.bottom-left{position:absolute;left:0;bottom:0;padding-left:5px}html[dir=rtl] .bottom-left{position:absolute;right:0;bottom:0;padding-right:5px}.height-19{height:19px}.background{background-color:var(--calcite-color-background)}.text-color{color:var(--calcite-color-text-1)}.align-center{align-items:center}.danger-color{color:var(--calcite-color-status-danger)}.esri-feature-table vaadin-grid{border:none!important}vaadin-grid-cell-content{font-size:14px!important;color:var(--calcite-color-text-3)!important}.absolute-right{position:absolute;right:0;left:unset}html[dir=rtl] .absolute-right{left:0;right:unset}.disabled{cursor:default!important;user-select:none;opacity:var(--calcite-opacity-disabled);pointer-events:none}.actions-end{height:50px!important;display:inline-flex}.border-top{border-top:1px solid var(--calcite-color-border-2)}.modal{--calcite-modal-content-padding: 0}.esri-feature-table__table-container{height:100%}.search-container{background-color:var(--calcite-color-foreground-1)!important}.search{--calcite-color-border-input: var(--calcite-color-border-3);width:60%;padding:10px}.delete-red{--calcite-icon-color: var(--calcite-color-status-danger);--calcite-color-text-1: var(--calcite-color-status-danger);--calcite-color-text-3: var(--calcite-color-status-danger)}.label-override{white-space:nowrap}.padding-start-1-4{padding-inline-start:.5rem}.panel-header-override{--calcite-panel-header-content-space: 0px}.danger-label-color{color:var(--calcite-color-status-danger)}.danger-icon-color{--calcite-icon-color: var(--calcite-color-status-danger)}.width-51{width:51px}.height-51{height:51px}}`,y=class extends T{constructor(){super(),this.defaultGlobalId=[],this.defaultLayerId="",this.defaultOid=[],this.enableAutoRefresh=!1,this.enableColumnReorder=!0,this.enableCSV=!1,this.enableInlineEdit=!1,this.enableShare=!1,this.featureSelectionMode="multiple",this.selectedRelatedIds=[],this.honorMapFieldSettings=!1,this.isMobile=!1,this.mapHidden=!1,this.showOnlyUpdatableLayers=!1,this.selectedIds=[],this.shareIncludeEmbed=!1,this.shareIncludeSocial=!1,this.showNewestFirst=!1,this.zoomAndScrollToSelected=!1,this._allIds=[],this._csvExporting=!1,this._fetchingData=!1,this._hideTable=!1,this._filterActive=!1,this._selectAllActive=!1,this._showHideOpen=!1,this._showOnlySelected=!1,this._toolInfos=[],this._translations=x({name:"layer-table",blocking:!0}),this._fullTextSearchInfo=[],this._searchPlaceHolder="",this._size=0,this._queryingData=!1,this._editEnabled=!1,this._enabledLayerIds=[],this._defaultFilterHonored=!1,this._defaultGlobalIdHonored=!1,this._defaultOidHonored=!1,this._definitionExpression="",this._deleteEnabled=!1,this._filterList=u(),this._floorExpression="",this._floorField="",this._floorFacility="",this._floorLevel="",this._floorSite="",this._layerExpressions=[],this._loaded=!1,this._shareNode=u(),this._toolbar=u(),this._searchExpression="",this._skipEditCheck=!1,this._tempSelectedIds=[],this._outOFExtentOids=[],this._shouldUpdateTableOnExtentChange=!0,this._creatingFeature=!1,this._searchNode=u(),this.featureSelectionChange=p(),this.toggleFilter=p(),this.showDelete=p(),this.relatedRecordToggled=p(),this.editMultipleFeatures=p(),this.listenOn(window,"beforeMapInfoChange",this.beforeMapInfoChange,{capture:!0}),this.listenOn(window,"editorInitialized",this.editorInitialized),this.listenOn(window,"closeEdit",this.closeEdit),this.listenOn(window,"selectionChanged",this.selectionChanged),this.listenOn(window,"beforeLayerSelectionChange",this.beforeLayerSelectionChange),this.listenOn(window,"layerSelectionChange",this.layerSelectionChange),this.listenOn(window,"editsComplete",this.editsComplete),this.listenOn(window,"facilityChanged",this.facilityChanged),this.listenOn(window,"levelChanged",this.levelChanged),this.listenOn(window,"siteChanged",this.siteChanged),this.listenOn(window,"noLayersFound",this.noLayersFound),this.listenOn(window,"clearSelection",this.clearSelection),this.listenOn(window,"mapChanged",this.mapChanged),this.listenOn(window,"featuresSelected",this.featuresSelected),this.listenOn(window,"createWorkFlowStarted",this.createWorkFlowStarted),this.listenOn(window,"backFromCreateWorkFlow",this.backFromCreateWorkFlow),C(window)}static{this.properties={appLayout:1,defaultGlobalId:0,defaultLayerId:1,defaultOid:0,enableAutoRefresh:5,enableColumnReorder:5,enableCSV:5,enableInlineEdit:5,enableShare:5,featureSelectionMode:1,selectedRelatedIds:0,honorMapFieldSettings:5,isMobile:5,mapHidden:5,mapInfo:0,mapView:0,showOnlyUpdatableLayers:5,selectedIds:0,shareIncludeEmbed:5,shareIncludeSocial:5,showNewestFirst:5,zoomAndScrollToSelected:5,zoomToScale:9,_allIds:16,_csvExporting:16,_fetchingData:16,_hideTable:16,_filterActive:16,_layer:16,_selectAllActive:16,_showHideOpen:16,_showOnlySelected:16,_toolInfos:16,_translations:16,_fullTextSearchInfo:16,_searchPlaceHolder:16,_size:16,_queryingData:16}}static{this.styles=H}static{this.shadowRootOptions=I}willUpdate(e){if(e.has("appLayout")&&this.appLayoutWatchHandler(),e.has("defaultOid")&&this.defaultOidWatchHandler(),e.has("defaultGlobalId")&&this.defaultGlobalIdWatchHandler(),e.has("enableCSV")&&this.enableCSVWatchHandler(),e.has("enableInlineEdit")&&this.enableInlineEditWatchHandler(),e.has("mapHidden")&&this.mapHiddenWatchHandler(),e.has("isMobile")&&this.isMobileWatchHandler(),e.has("mapInfo")&&this.mapInfoWatchHandler(),e.has("mapView")&&this.mapViewWatchHandler(),e.has("_layer")&&this._layerWatchHandler(),e.has("selectedIds")&&(this.hasUpdated||JSON.stringify(e.get("selectedIds"))!==JSON.stringify(this.selectedIds))&&this.selectedIdsWatchHandler(),e.has("selectedRelatedIds")&&(this.hasUpdated||JSON.stringify(e.get("selectedRelatedIds"))!==JSON.stringify(this.selectedRelatedIds))&&this.selectedRelatedIdsWatchHandler(),e.has("_translations")){let t=this._translations._lang,i=e.get("_translations")?._lang;t&&i&&t!==i&&this._initToolInfos()}}async appLayoutWatchHandler(){await this._initToolInfos(),this._updateShareUrl()}async defaultOidWatchHandler(){await this._handleDefaults()}async defaultGlobalIdWatchHandler(){await this._handleDefaults()}async enableCSVWatchHandler(){this._toolInfos?.length>0&&await this._initToolInfos()}enableInlineEditWatchHandler(){this._table&&(this._table.editingEnabled=this._editEnabled&&this.enableInlineEdit)}async mapHiddenWatchHandler(){this._toolInfos?.length>0&&await this._initToolInfos()}async isMobileWatchHandler(){!this._toolInfos&&!this.isMobile&&await this._initToolInfos()}async mapInfoWatchHandler(){this._enabledLayerIds=this.mapInfo?.layerOptions?.layers.map(e=>e.id)||[],this._table&&(this._resetColumnTemplates(),this._sortTable())}async mapViewWatchHandler(){this._mapClickHandle&&this._mapClickHandle.remove(),this.mapView&&(this._floorExpression="",this._searchExpression="undefined",this.mapView.highlights=[{name:"default",color:"#00FFFF"},{name:"current-selection",color:"#ff00ff"},{name:"temporary",color:"#FFFF00"}],this._updateShareUrl(),this._mapClickHandle=this.reactiveUtils?.on(()=>this.mapView,"click",e=>{this._creatingFeature||this._mapClicked(e)}))}async _layerWatchHandler(){if(this._hideTable=!1,this._fetchingData=!0,!this._layer){this._fetchingData=!1,this._hideTable=!0;return}try{await this._layer.when(),this._definitionExpression=this._layer.definitionExpression||"",this._floorField=this._layer.floorInfo?.floorField||"",this._updateFloorDefinitionExpression(),await this._resetTable(),this._updateShareUrl()}catch(e){console.error(e),this._hideTable=!0}finally{this._fetchingData=!1}}async selectedIdsWatchHandler(){this._updateShareUrl(),this._validateEnabledActions(),this._selectAllActive&&this.selectedIds.length!==this._allIds.length&&(this._selectAllActive=!1),this.selectedIds.length>0&&(this._table.rowHighlightIds.removeAll(),this._table.rowHighlightIds.add(this.selectedIds[0])),this.selectedIds.length===0&&setTimeout(()=>{this.featureSelectionChange.emit(this.selectedIds)},700)}async selectedRelatedIdsWatchHandler(){this._validateEnabledActions(),this.selectedRelatedIds.length>0&&(this._relatedFeatureTable?.rowHighlightIds.removeAll(),this._relatedFeatureTable?.rowHighlightIds.add(this.selectedRelatedIds[0]))}async closeFilter(){await this._closeFilter()}async filterReset(){this._filterByExtentHandle&&(this._table&&(this._table.filterGeometry=void 0),this._filterByExtentHandle.remove(),this._filterByExtentHandle=void 0),await this._handleFilterListReset()}async filterUpdate(e,t){await this._handleFilterUpdate(e),t?(this._shouldUpdateTableOnExtentChange=!0,this._handleTableOnMapExtent()):t===!1&&(this._table&&(this._table.filterGeometry=void 0),this._filterByExtentHandle?.remove(),this._filterByExtentHandle=void 0,await this._updateAllIds())}async validateTableUpdate(e){this._shouldUpdateTableOnExtentChange=e}async validateActiveEdits(){return this._validateActiveEdits([],this.selectedIds)}async refresh(){this._table&&await this._refresh()}async setColumnOrder(e){this._setColumnTemplates(e)}async beforeMapInfoChange(e){let t=e.detail.ref,i=e.detail.mapInfo;if(this._hasPendingEdits()){e.preventDefault();let s=await this._validateActiveEdits([],this.selectedIds);await t.setMapByID(s?i.id:e.detail.currentId,!s)}}async editorInitialized(e){this._shouldUpdateTableOnExtentChange=!1,this._editor=e.detail}async closeEdit(){this._shouldUpdateTableOnExtentChange=!0,this._filterByExtentHandle&&this._handleTableOnMapExtent()}async selectionChanged(e){let t=e.detail.selectedFeature[0],i=Number(t.getObjectId()),s=this._table;if(s.rowHighlightIds.length&&s.rowHighlightIds.removeAll(),s.rowHighlightIds.add(i),this._highlightFeatures(i),this.zoomAndScrollToSelected&&s&&this.mapView){let a=s.viewModel.getObjectIdIndex(i);s.scrollToIndex(a);let l=t.layer,n=this.mapView.allLayerViews.toArray(),h;n.some(async r=>r.layer.title===l?.title&&r.layer.type==="feature"?(h=r,this.mapView&&await m([i],h,this.mapView,!0,void 0,this.zoomToScale),!0):!1)}}async beforeLayerSelectionChange(e){if(this._hasPendingEdits()){e.preventDefault();let t=e.detail.ref,i=await this._validateActiveEdits([],this.selectedIds);return e.detail.selectedIds?await t.setLayerByIds(i?e.detail.newIds:e.detail.currentIds,!0):await t.setLayerById(i?e.detail.newId:e.detail.currentId,!0)}}async layerSelectionChange(e){await this._layerSelectionChanged(e)}async editsComplete(e){let t=e.detail;(t==="delete"||t==="add")&&(this._allIds=await this.queryAllIds()),await this._refresh()}async facilityChanged(e){this._floorFacility=e.detail,this._updateFloorDefinitionExpression()}async levelChanged(e){this._floorLevel=e.detail,this._updateFloorDefinitionExpression()}async siteChanged(e){this._floorSite=e.detail,this._updateFloorDefinitionExpression()}async noLayersFound(){this._layer=void 0,this._allIds=[],this._size=0,this._clearSelection()}async clearSelection(){await this._validateActiveEdits([],this.selectedIds)&&this._clearSelection()}async mapChanged(){this._queryingData=!1,this._creatingFeature=!1,this._clearSelection()}async featuresSelected(e){e.detail.forEach(t=>{let i=this._table?.highlightIds.indexOf(t);i&&i<0&&this._table?.highlightIds.add(t)})}createWorkFlowStarted(){this._creatingFeature=!0}backFromCreateWorkFlow(){this._creatingFeature=!1}async load(){await this._initModules(),await this._initToolInfos()}render(){let e=this._fetchingData||this._hideTable?"display-none":"",t=this._fetchingData?"":"display-none",i=this._queryingData?"":"display-none",s=this._size.toString(),a=this.selectedIds.length.toString(),l=this.isMobile?"height-full":"height-full-adjusted",n=this._canShowFullTextSearch();return this._validateActiveActions(),o`<div><calcite-scrim class=${f(i)} .loading=${this._queryingData}></calcite-scrim><calcite-shell><div class=${`width-full ${l}`}><calcite-panel class="height-full width-full panel-header-override">${this._getMapLayerPicker("header-actions-start")}${!this.isMobile&&o`${this._getTableControlRow("header-content")}${this._getActionsEnd("header-actions-end")}`||""}${n&&o`<div class="search-container border-bottom"><calcite-input class=search clearable icon=search @calciteInputChange=${h=>void this._searchTextChanged(h)} .placeholder=${this._searchPlaceHolder} title=${this._searchPlaceHolder??c} type=search ${g(this._searchNode)}></calcite-input></div>`||""}<calcite-loader class=${f(t)} .label=${this._translations.fetchingData} scale=l></calcite-loader><div class=${f(e)} ${g(this.onTableNodeCreate)}></div></calcite-panel></div>${this.isMobile?void 0:o`<div class="bottom-left text-color height-19" id=solutions-selected-count-div>${(this._translations.recordsTotal?.replace("{{total-number-of-records}}",s)+" | "+this._translations.recordsSelected.replace("{{selected-number-of-records}}",a)).replace("{{total}}",s).replace("{{selected}}",a)}</div>`}</calcite-shell></div>`}updated(){this._table&&this.updateRelatedAttachmentColumns()}async _initModules(){let[e,t,i,s]=await E(["esri/widgets/FeatureTable","esri/core/reactiveUtils","esri/widgets/FeatureTable/support/TableTemplate","esri/rest/support/RelationshipQuery"]);this.FeatureTable=e,this.reactiveUtils=t,this.TableTemplate=i,this.RelationshipQuery=s}async _searchTextChanged(e){this._fullTextSearchInfo.forEach(t=>{t.searchTerm=e.target.value}),this._searchFullText()}async _searchFullText(){let e=[],t=!1;if(this._showOnlySelected)e=this._tempSelectedIds,t=!0;else if(await this._validateActiveEdits([],this.selectedIds))this._clearSelection(),this._tempSelectedIds=[];else return;this._searchExpression&&this._clearSearchDefinitionExpression();let i=[];if(this._fullTextSearchInfo?.length&&this._fullTextSearchInfo[0].searchTerm){let s=this._layer?.createQuery();s.fullText=this._fullTextSearchInfo,i=this._layer?await this._layer.queryObjectIds(s):[],t&&e?.length&&(i=i.filter(a=>e.includes(a))),await this._updateSearchDefinitionExpression(i?.length?i:[-1])}t&&i?.length&&(this._showOnlySelected=!0,this._table?.highlightIds.addMany(i.reverse())),await new Promise(s=>setTimeout(s,800)),await this._updateAllIds()}_clearSearchDefinitionExpression(){let e=this._layer?.definitionExpression;this._searchExpression&&e&&e?.indexOf(this._searchExpression)>-1&&this._layer&&(e?.indexOf(" AND ("+this._searchExpression)>-1?this._layer.definitionExpression=e.replace(` AND (${this._searchExpression})`,""):this._layer.definitionExpression=e.replace(this._searchExpression,"")),this._searchExpression=""}async _updateSearchDefinitionExpression(e){let t=this._layer?.definitionExpression;if(this._layer)if(e?.length){let i=`objectId in(${e})`;this._layer.definitionExpression=this._searchExpression&&t&&t.includes(this._searchExpression)?t.replace(this._searchExpression,i):t?`${t} AND (${i})`:i,this._searchExpression=i}else this._clearSearchDefinitionExpression()}_canShowFullTextSearch(){return this._layer?.capabilities?.query?.supportsFullTextSearch&&this._layer.indexes.items.filter(e=>e.indexType=="FullText").length>0}_getFullTextSearchInfo(){if(this._fullTextSearchInfo=[],this._layer?.capabilities?.query?.supportsFullTextSearch){let e=this._layer.indexes?.filter(t=>t.indexType=="FullText");if(e?.length){let t=[];e.forEach(s=>{t.push(...s.fields.split(","))});let i=[];t.forEach(s=>{let a=this._layer?.getField(s.trim());a?.alias&&i.push(a.alias)}),this._searchPlaceHolder=this._translations.searchPlaceholder.replace("{{field_names}}",i.join(", ")),this._fullTextSearchInfo.push({onFields:["*"],searchTerm:"",searchType:"prefix"})}}}_getMapLayerPicker(e){let t=this.isMobile?"display-none":"";return o`<div class=${`border-end ${t}`} id=solutions-map-layer-picker-container slot=${e??c}><map-layer-picker appearance=transparent .defaultLayerId=${this.defaultLayerId} display=inline-flex .enabledLayerIds=${this._enabledLayerIds} height=50 .isMobile=${this.isMobile} .mapView=${this.mapView} .showOnlyUpdatableLayers=${this.showOnlyUpdatableLayers} placeholder-icon=layers scale=l .selectedIds=${this._layer?[this._layer?.id]:[]} show-single-layer-as-label show-tables type=dropdown></map-layer-picker></div>`}_getActionsEnd(e){let t=this._relatedFeatureTable?this._relatedFeatureTable.layer:this._layer,i=this._relatedFeatureTable||this._table;return o`<div class="display-flex" slot=${e??c}><field-selection .layer=${t} .mapView=${this.mapView} .table=${i} .tableRef=${this.el}></field-selection>${this.enableShare&&!this.isMobile?this._getShare("share"):void 0}</div>`}_getTableControlRow(e){return o`<div class=${"height-51-px width-full display-flex"} slot=${e??c} ${g(this._toolbar)}>${this._getActionBar()}</div>`}_getActionBar(){return o`<calcite-action-bar class=width-full expand-disabled id=${this._getId("bar")??c} layout=horizontal><calcite-action-group>${this.isMobile?void 0:this._getActions()}</calcite-action-group></calcite-action-bar>`}_getActions(){return this._toolInfos?.reduce((e,t)=>(t&&e.push(t.isDanger?this._getDangerAction(t.icon,t.label,t.func,t.disabled):this._getAction(t.active,t.icon,t.indicator,t.label,t.func,t.disabled,!!t.loading,t.toolTip)),e),[])}_validateEnabledActions(){let e=this._getIds().length,t=["zoom-to-object","pencil","trash","erase","selected-items-filter"];this._toolInfos?.forEach(i=>{i&&t.indexOf(i.icon)>-1&&(i.disabled=i.icon==="pencil"?e<2||e>b:e<1,i.toolTip=i.icon==="pencil"?e>b?this._translations.featureEditLimitNotice:this._translations.editMultiple:i.toolTip)})}_validateActiveActions(){let e=["filter","list-check-all","selected-items-filter"];this._toolInfos?.forEach(t=>{t&&e.indexOf(t.icon)>-1&&(t.icon==="filter"&&(t.indicator=this._filterActive),t.icon==="list-check-all"&&(t.active=this._selectAllActive),t.icon==="selected-items-filter"&&(t.active=this._showOnlySelected,t.label=this._showOnlySelected?this._translations.showAll:this._translations.showSelected))})}async _initToolInfos(){let e=this._getIds().length>0,t=this._relatedFeatureTable?this._relatedFeatureTable.layer.isTable:this._layer?.isTable,i=this.featureSelectionMode==="multiple"&&this._layer?.capabilities?.operations.supportsUpdate,s=this._getSelectedIds().length<2||this._getSelectedIds().length>b,a=!this.mapHidden&&!t,l=!this._relatedFeatureTable&&(!this._layer?.isTable||this._hasFilterExpressions()),n=this._featuresEmpty(),h=this.featureSelectionMode==="single",r=this.enableCSV;if(this._relatedFeatureTable){let _=await this._queryRelatedFeatures();r=_&&Object.keys(_).length>0}let d=[];l&&d.push({active:!1,icon:"filter",indicator:!1,label:this._translations.filters,func:()=>this.toggleFilter.emit(),disabled:!1,toolTip:this._translations.filters}),a&&d.push({active:!1,icon:"zoom-to-object",indicator:!1,label:this._translations.zoom,func:()=>this._zoom(),disabled:!e,toolTip:this._translations.zoom}),i&&d.push({active:!1,icon:"pencil",indicator:!1,label:this._translations.editMultiple,func:()=>this.editMultipleFeatures.emit(this._getSelectedIds()),disabled:s,toolTip:this._translations.editMultiple}),this._deleteEnabled&&d.push({active:!1,icon:"trash",indicator:!1,label:this._translations.delete,func:()=>this._showDelete(),disabled:!e,isDanger:!0,toolTip:this._translations.delete}),d.push({active:!1,icon:"erase",indicator:!1,label:this._translations.clearSelection,func:()=>void this.clearSelection(),disabled:!e,toolTip:this._translations.clearSelection}),this._relatedFeatureTable||d.push({active:!1,icon:"selected-items-filter",indicator:!1,label:this._showOnlySelected?this._translations.showAll:this._translations.showSelected,func:()=>this._toggleShowSelected(),disabled:!e,toolTip:this._showOnlySelected?this._translations.showAll:this._translations.showSelected}),!h&&!this._relatedFeatureTable&&d.push({active:!1,icon:"list-check-all",indicator:!1,func:async()=>await this._selectAll(),label:this._translations.selectAll,disabled:n,toolTip:this._translations.selectAll}),!h&&!this._relatedFeatureTable&&d.push({active:!1,icon:"compare",indicator:!1,func:async()=>await this._switchSelected(),label:this._translations.switchSelected,disabled:n,toolTip:this._translations.switchSelected}),d.push({active:!1,icon:"refresh",indicator:!1,func:()=>void this._refresh(),label:this._translations.refresh,disabled:!1,toolTip:this._translations.refresh}),r&&d.push({active:!1,icon:"export",indicator:!1,func:()=>void this._exportToCSV(),label:this._translations.exportCSV,loading:this._csvExporting,disabled:n,toolTip:this._translations.exportCSV}),this._toolInfos=[...d]}_updateFloorDefinitionExpression(){if(this._floorField&&this._floorLevel){let e=`${this._floorField} = '${this._floorLevel}'`,t=this._layer?.definitionExpression;this._layer&&(this._layer.definitionExpression=t&&this._floorExpression&&t?.indexOf(this._floorExpression)>-1?t.replace(this._floorExpression,e):t?`${t} AND (${e})`:e),this._floorExpression=e}}_featuresEmpty(){return this._allIds?.length===0}_hasFilterExpressions(){let e=[],t=this._layer?.id;return this.mapInfo?.filterConfig?.layerExpressions&&t!==void 0&&(e=this.mapInfo.filterConfig.layerExpressions.filter(i=>i.id===t)),e.length>0}_getAction(e,t,i,s,a,l,n,h){let r=this._layer===void 0?!0:l;return o`<calcite-action .active=${e} appearance=solid .disabled=${r} .icon=${t} .id=${`layer-table-${t}`} .indicator=${i} .label=${s} .loading=${n} @click=${a} text text-enabled><div class="display-flex"><span class="label-override padding-start-1-4">${s}</span></div></calcite-action>${this._getToolTip("auto",`layer-table-${t}`,h)}`}_showDelete(){this.showDelete.emit({ids:this._getIds()})}_getShare(e){return o`<div id=${this._getId(e)??c}><instant-apps-social-share class="height-51 width-51 display-flex" .embed=${this.shareIncludeEmbed} flip-rtl popover-button-icon-scale=s scale=m share-button-color=neutral share-button-type=action .socialMedia=${this.shareIncludeSocial} .view=${this.mapView} ${g(this._shareNode)}></instant-apps-social-share>${this._getToolTip("bottom",e,this._translations.share)}</div>`}_updateShareUrl(){let e=this._shareNode.value?.shareUrl;if(!e)return;let t=new URL(e);this.mapInfo?.id?t.searchParams.set("webmap",this.mapInfo.id):t.searchParams.delete("webmap"),this._layer?.id?t.searchParams.set("layer",this._layer.id):t.searchParams.delete("layer"),this.selectedIds?.length>0?t.searchParams.set("oid",this.selectedIds.join(",")):t.searchParams.delete("oid"),this.appLayout&&t.searchParams.set("applayout",this.appLayout),this.selectedRelatedIds?.length>0&&this._relatedFeatureTable?.layer?.id&&(t.searchParams.set("oid",this.selectedRelatedIds.join(",")),t.searchParams.set("layer",this._relatedFeatureTable?.layer?.id.toString())),this._shareNode.value&&(this._shareNode.value.autoUpdateShareUrl=!1,this._shareNode.value.shareUrl=t.href)}_getToolTip(e,t,i){return o`<calcite-tooltip .placement=${e} .referenceElement=${t}><span>${i}</span></calcite-tooltip>`}_getId(e){return`solutions-action-${e}`}_getDangerAction(e,t,i,s){let a=this._layer===void 0?!0:s;return o`<div class="display-flex" id=${this._getId(e)??c}>${o`<calcite-action appearance=solid .disabled=${a} .id=${`layer-table-${e}`} @click=${i} text><calcite-icon class="danger-icon-color" .icon=${e} scale=s></calcite-icon><span class="label-override padding-start-1-4 danger-label-color">${t}</span></calcite-action>`}${this._getToolTip("bottom",`layer-table-${e}`,t)}</div>`}_getIds(){let e=this._relatedFeatureTable??this._table;return this._relatedFeatureTable&&this._table&&this._table.highlightIds.getItemAt(0)!==this.selectedIds[0]&&(e=this._table),e?.highlightIds.map(t=>Number.parseInt(t.toString(),10)).toArray()??[]}onTableNodeCreate(e){this._tableNode=e}async _getTable(e,t){this._layer&&(await this._layer.when(()=>{this._table=this.FeatureTable&&new this.FeatureTable({autoRefreshEnabled:this.enableAutoRefresh,layer:this._layer,view:this.mapView,columnReorderingEnabled:this.enableColumnReorder,editingEnabled:this._editEnabled&&this.enableInlineEdit,relatedRecordsEnabled:!0,attachmentsEnabled:!0,highlightEnabled:!1,multiSortEnabled:!1,visibleElements:{columnDescriptions:!1,header:!1,menu:!1,progress:!1},tableTemplate:{columnTemplates:t},container:e})}),await this._table?.when(()=>{this._table?.viewModel.addHandles(this._table.highlightIds.on("change",i=>{this._handleOnChange(i)})),this._table?.viewModel.addHandles(this._table.on("cell-pointerover",this.tempHighlightOnHover.bind(this))),this._table?.viewModel.addHandles(this._table.on("cell-pointerout",this._removeTempHighlight.bind(this))),this.listenOn(this._tableNode,"mouseleave",this._removeTempHighlight),this.reactiveUtils&&this._table?.viewModel.addHandles(this.reactiveUtils.watch(()=>this._table.size,i=>{this._size=i})),this.reactiveUtils?.watch(()=>this._table?.relatedTable,async i=>{if(i){if(i.rowHighlightIds.length){let a={added:[i.rowHighlightIds.getItemAt(0)],removed:[]};this._handleOnChange(a)}let s=i.layer;if(this._layerEditHandle=s.on("edits",async()=>{await new Promise(a=>setTimeout(a,50)),await this._refresh(!0)}),this._checkEditEnabled(s),i.editingEnabled=this._editEnabled&&this.enableInlineEdit,this._relatedFeatureTable=i,typeof i.layer?.id=="string"&&i.layer?.fields){let a=i.layer.popupTemplate?.fieldInfos,l=this._getColumnTemplates(i.layer.id,i.layer.fields,a);this._relatedFeatureTable.tableTemplate=this.TableTemplate&&new this.TableTemplate({columnTemplates:l})}i.highlightIds.on("change",a=>{this._handleRelatedRecordsChange(a)})}else{this.selectedRelatedIds=[],this._relatedFeatureTable=void 0,this._layerEditHandle&&this._layerEditHandle.remove();let s=this._layer;this._refresh(),s&&this.relatedRecordToggled.emit(s),this._finishOnChange()}await this._initToolInfos()})}))}async _handleRelatedRecordsChange(e){await this._handleOnChange(e),this._updateShareUrl()}hasAttachmentsEnabled(e){if(!e?.capabilities)return!1;let{capabilities:{data:{supportsAttachment:t},operations:{supportsQueryAttachments:i}}}=e;return t&&i}async _handleOnChange(e){if(!await this._validateActiveEdits([...e.added],[...e.removed]))return;let t=[...this._getIds()],i=this._getSelectedLayer(t);this._relatedFeatureTable&&this._table?.highlightIds.getItemAt(0)!==this.selectedIds[0]&&(i=this._layer,await this._initToolInfos()),i&&this.relatedRecordToggled.emit(i),this.featureSelectionMode==="single"&&(this._relatedFeatureTable&&t.length>1?(this._relatedFeatureTable.highlightIds.remove(t[0]),t.shift()):t.length>1&&!this._selectAllActive&&(this._table?.highlightIds.remove(t[0]),t.shift())),!this._relatedFeatureTable||this._relatedFeatureTable&&this._table?.highlightIds.getItemAt(0)!==this.selectedIds[0]?(this.selectedRelatedIds=[],this.selectedIds=t.reverse(),this._tempSelectedIds=[...this.selectedIds],this._highlightFeatures(this.selectedIds[0])):this.selectedRelatedIds=t.reverse(),this._finishOnChange()}async _validateActiveEdits(e,t){let i=!0;if(this._editor&&!this._skipEditCheck){if(this._hasPendingEdits()){let s=!1;try{this._editor.viewModel.activeWorkflow&&await this._editor.viewModel.activeWorkflow.cancel({force:!1})}catch(a){s=a?.name==="workflow:cancel-denied"}if(s){let a=this._relatedFeatureTable&&this._relatedFeatureTable.highlightIds.length>0?this._relatedFeatureTable:this._table;i=!1,this._skipEditCheck=!0,e.length>0?a?.highlightIds.removeMany(e):t.length>0&&a?.highlightIds.addMany(t)}}}else i=!this._skipEditCheck,this._skipEditCheck=!1;return this._shouldUpdateTableOnExtentChange=i,i}_hasPendingEdits(){let e=this._editor?.viewModel?.hasPendingEdits,t=this._editor?.activeWorkflow?.activeWorkflow?.hasPendingEdits;return e||t}_finishOnChange(){this._showOnlySelected&&!this._relatedFeatureTable&&(this._table&&this._getSelectedIds().length>0?this._table.filterBySelectionEnabled=!0:this._toggleShowSelected());let e=this._getSelectedIds();setTimeout(()=>{this.featureSelectionChange.emit(e)},50)}tempHighlightOnHover(e){if(this._removeTempHighlight(),this._selectedLayerView){let t=e.feature;this._temporaryFeatureHandle=this._selectedLayerView?.highlight([t],{name:"temporary"})}}_removeTempHighlight(){this._temporaryFeatureHandle&&this._temporaryFeatureHandle.remove()}_highlightFeatures(e){if(this._clearHighlights(),this.selectedIds.length>0&&this._selectedLayerView&&(this._currentFeatureHighlightHandle=this._selectedLayerView?.highlight([e],{name:"current-selection"}),this.selectedIds.length>1)){let t=this.selectedIds.filter(i=>i!==e);this._defaultFeaturesHandle=this._selectedLayerView?.highlight(t,{name:"default"})}}_clearHighlights(){this._removeTempHighlight(),this._currentFeatureHighlightHandle&&this._currentFeatureHighlightHandle.remove(),this._defaultFeaturesHandle&&this._defaultFeaturesHandle.remove()}_resetColumnTemplates(){if(this._layer){let e=this._layer.popupTemplate?.fieldInfos,t=this._getColumnTemplates(this._layer.id,this._layer.fields,e);t?.length===0?this._tableNode?.classList.add("display-none"):this._tableNode?.classList.remove("display-none");let i=this._table?.tableTemplate?.columnTemplates,s=i&&t&&i.length!==t.length||t?.some((a,l)=>i&&i[l]?JSON.stringify(i[l])!==JSON.stringify(a):!1);if(this._table&&t&&(s||!this._columnsInfo)){this._table.tableTemplate=this.TableTemplate&&new this.TableTemplate({columnTemplates:t});let a=t.map(l=>l.fieldName);this._initColumnsInfo(a)}}}_setColumnTemplates(e){this._table&&e&&(this._table.tableTemplate=this.TableTemplate&&new this.TableTemplate({columnTemplates:e}))}async _resetTable(){if(this._loaded=!1,this._clearSelection(),this._allIds=await this.queryAllIds(),!this._table&&this._layer){let e=this._layer.popupTemplate?.fieldInfos,t=this._getColumnTemplates(this._layer.id,this._layer.fields,e);this._tableNode&&await this._getTable(this._tableNode,t)}else this._table&&(this._table.view=this.mapView,this._table.layer=this._layer);await this._initLayerRefresh(),this._checkEditEnabled(this._layer),this._table&&(this._table.editingEnabled=this._editEnabled&&this.enableInlineEdit,await this._table.when(),setTimeout(()=>{this._loaded||this.finishLoading()},1e3),await this.reactiveUtils?.once(()=>this._table?.state==="loaded").then(async()=>{await this.finishLoading()}))}async finishLoading(){try{this._loaded=!0,this._table?.highlightIds.removeAll(),this._table.objectIds.removeAll(),this._resetColumnTemplates(),this._showOnlySelected=!1,await this._handleDefaults(),await this._sortTable(),await this._initToolInfos(),["esri-feature-table","esri-widget"].forEach(e=>{this._tableNode&&!this._tableNode.classList.contains(e)&&this._tableNode.classList.add(e)})}catch(e){console.log(e)}}async _initLayerRefresh(){this._refreshHandle&&this._refreshHandle.remove(),this._layer&&(this._refreshHandle=this._layer.on("refresh",e=>{e.dataChanged&&this._updateAllIds()}))}async _updateAllIds(){let e=await this.queryAllIds(),t=this.selectedIds.filter(i=>this._allIds.indexOf(i)>-1);(JSON.stringify(e)!==JSON.stringify(this._allIds)||JSON.stringify(this.selectedIds)!==JSON.stringify(t))&&(this._allIds=e,this.selectedIds=t,await this._refresh())}async _handleDefaults(){if(!this._defaultOidHonored&&this.defaultOid?.length>0&&this.defaultOid[0]>-1&&this._table&&(await this._selectDefaultFeature(this.defaultOid),this._defaultOidHonored=!0,this.defaultOid=[],this._showOnlySelected=!1,this._toggleShowSelected()),!this._defaultGlobalIdHonored&&this.defaultGlobalId&&this.defaultGlobalId?.length>0&&this._table&&this._layer){let e=await S(this.defaultGlobalId,this._layer),t=e?.length>0?e.map(i=>Number(i.getObjectId())):void 0;t&&await this._selectDefaultFeature(t),this._defaultGlobalIdHonored=!0,this.defaultGlobalId=[],this._showOnlySelected=!1,this._toggleShowSelected()}}_initColumnsInfo(e){let t=this._table?.columns.reduce((s,a)=>((!e||e?.indexOf(a.name)>-1)&&(s[a.name]=!a.hidden),s),{}),i=this._table?.columns.map(s=>s.name);(e&&i?e.filter(s=>i.indexOf(s)<0):[]).forEach(s=>{t[s]=!0}),this._columnsInfo=e?e.reduce((s,a)=>(s[a]=t[a],s),{}):t}async _selectDefaultFeature(e){e.length>0&&this._table?.highlightIds.addMany(e)}_checkEditEnabled(e){this._editEnabled=!!(e?.editingEnabled&&e?.capabilities?.operations.supportsUpdate),this._deleteEnabled=!!(e?.editingEnabled&&e?.capabilities?.operations.supportsDelete)}async _sortTable(){let e=this._layer?.objectIdField,t="desc",i,s=this.mapInfo?.layerOptions?.layers,a=this._layer?.id;s&&s.length>0&&a!==void 0&&(i=s.filter(l=>l.id===a),i&&i.length>0&&(i=i[0],i.sortField&&i.fields?.includes(i.sortField)&&(e=i.sortField),t=i?.sortOrder?i.sortOrder:"desc")),this._table&&this._layer&&(await this._table.when(),await this._layer.when(()=>{e&&this._table?.sortColumn(e,t)}))}async _handleFilterListReset(){this._filterActive=!1,this._updateShareUrl(),await this._searchFullText()}async _handleFilterUpdate(e){if(this._floorExpression&&this._layer){let t=this._layer.definitionExpression,i=new RegExp(`${this._floorField} = ['].+[']`,"gm");this._layer.definitionExpression=t&&this._floorField&&t.indexOf(`${this._floorField} = '`)>-1?t.replace(i,this._floorExpression):t?`${t} AND (${this._floorExpression})`:this._floorExpression}this._filterActive=e,this._updateShareUrl(),await this._searchFullText()}_handleTableOnMapExtent(){this._table&&(this._filterByExtentHandle=this.reactiveUtils?.when(()=>this.mapView?.stationary,async()=>{if(this._shouldUpdateTableOnExtentChange&&this.appLayout==="splitView"){if(await new Promise(e=>setTimeout(e,800)),this._table&&this.mapView){this._table.filterGeometry=this.mapView.extent;let e={geometry:this.mapView.extent},t=this._layer&&await this._layer.queryObjectIds(e),i=this.selectedIds.filter(a=>!t?.includes(a)),s=this._outOFExtentOids.filter(a=>t?.includes(a));i.length>0&&(this._table&&this._table?.viewModel?.attachmentsViewOptions?.objectId&&this._table.viewModel.hideAttachmentsView(),this._table.highlightIds.removeMany(i),this._outOFExtentOids=[...this._outOFExtentOids,...i]),s.length>0&&(this.selectedIds=[...new Set([...this.selectedIds,...s])],this._table.highlightIds.removeAll(),this._table.highlightIds.addMany(this.selectedIds.reverse()),this._outOFExtentOids=this._outOFExtentOids.filter(a=>!s.includes(a)))}this._allIds=await this.queryAllIds()}},{initial:!0}))}async _closeFilter(){this._allIds=await this.queryAllIds()}async queryAllIds(){if(this._layer){let e=this._layer.createQuery();return e.geometry=this._filterByExtentHandle&&this.mapView?this.mapView.extent:null,e.where=this._layer.definitionExpression||"1=1",await this._layer.queryObjectIds(e)}else return[]}async _mapClicked(e){let t={include:this._layer},i=await this.mapView?.hitTest(e.screenPoint,t);if(i&&i.results.length>0){let s=i.results;if(this.featureSelectionMode==="single"){this._table?.highlightIds.removeAll();let a=s[0].graphic.getObjectId();if(a){let l=this._table?.highlightIds.indexOf(a);l!==void 0&&l<0&&this._table?.highlightIds.add(a)}}else s.forEach(a=>{let l=Number(a.graphic.getObjectId()),n=this._table?.highlightIds.indexOf(l);n&&n<0&&l&&this._table?.highlightIds.add(l)});this._showOnlySelected&&this._table&&(this._table.filterBySelectionEnabled=!0)}else await this.clearSelection()}async _selectAll(){let e=this._allIds,t=e.filter(i=>this.selectedIds.indexOf(i)<0);await this._validateActiveEdits(t,this.selectedIds)&&this._table?(this._table.highlightIds.removeAll(),this._table.highlightIds.addMany(e),this.selectedIds=e,this._finishOnChange(),this._selectAllActive=!0):this._skipEditCheck=!1}_toggleShowSelected(){this._showOnlySelected=!this._showOnlySelected,this._table&&(this._table.filterBySelectionEnabled=this._showOnlySelected)}_clearSelection(){this._relatedFeatureTable||(this.selectedIds=[],this._outOFExtentOids=[],this._table&&this._table?.viewModel?.attachmentsViewOptions?.objectId&&this._table.viewModel.hideAttachmentsView(),this._table?.highlightIds.removeAll(),this._clearHighlights(),this._table?.rowHighlightIds.removeAll()),this._relatedFeatureTable&&(this._relatedFeatureTable?.highlightIds.removeAll(),this.selectedRelatedIds=[]),this._finishOnChange()}async _switchSelected(){let e=[...this.selectedIds],t=this._allIds.reduce((i,s)=>(e.indexOf(s)<0&&i.push(s),i),[]).sort((i,s)=>i-s);await this._validateActiveEdits(t,e)&&this._table?(this._table.highlightIds.removeAll(),this._table.highlightIds.addMany(t),this.selectedIds=t,this._finishOnChange()):this._skipEditCheck=!1}async _exportToCSV(){let e=this._relatedFeatureTable?this._relatedFeatureTable.layer:this._layer;if(!e)return;let t={},i=this._getIds();if(this._relatedFeatureTable?.tableParent&&this._relatedFeatureTable.highlightIds.length===0){let l=this._relatedFeatureTable.tableParent.highlightIds?.getItemAt(0);if(l!==void 0){let n=await this._queryRelatedFeatures(),h=[];n&&n[l]?.features&&(n[l].features.forEach(r=>{r.attributes&&h.push(r.attributes[e.objectIdField])}),i=h.length>0?h:[])}}t[e.id]={selectionSetNames:[e.title||""],ids:i,layer:e};let s=this._relatedFeatureTable??this._table;if(!s)return;let a=s&&s.columns.toArray().reduce((l,n)=>{if(!n.hidden){let h=n?.name||n?.fieldName;h&&l.push(h.toLocaleLowerCase())}return l},[]);this._updateToolInfoLoading("export",!0),this._csvExporting=!0,this.mapView?.map&&await A(this.mapView.map,t,!1,!1,!0,a,!0,!0),this._updateToolInfoLoading("export",!1),this._csvExporting=!1}async _queryRelatedFeatures(){let e=this._relatedFeatureTable?this._relatedFeatureTable?this._relatedFeatureTable.layer:this._relatedFeatureTable.tableParent?.layer:this._layer,t=this._relatedFeatureTable?.tableParent?.highlightIds?.items[0],i=this._relatedFeatureTable?.tableParent?.layer,s=e?.relationships?.find(l=>i.relationships?.some(n=>n.id===l.id)),a=this.RelationshipQuery&&new this.RelationshipQuery({objectIds:[t],outFields:["*"],relationshipId:s?.id});return t&&a&&await i.queryRelatedFeatures(a).catch(async l=>{console.error(l)})}_updateToolInfoLoading(e,t){this._toolInfos.some(i=>i?.icon===e?(i.loading=t,!0):!1)}async _refresh(e){if(await this._validateActiveEdits([],this.selectedIds)){this._table&&await this._table.refresh(),this._relatedFeatureTable&&await this._relatedFeatureTable.refresh(),this._allIds=await this.queryAllIds();let t=this._getSelectedLayer(this.selectedRelatedIds);if(t&&this.relatedRecordToggled.emit(t),!e){let i=this._getSelectedIds();this.featureSelectionChange.emit(i)}}}_getSelectedIds(){let e;return this._relatedFeatureTable?this.selectedRelatedIds.length>0?e=this.selectedRelatedIds:e=this._relatedFeatureTable.tableParent?.highlightIds.toArray()??[]:e=this.selectedIds,e}_getSelectedLayer(e){let t;return this._relatedFeatureTable?e.length>0?t=this._relatedFeatureTable.layer:t=this._relatedFeatureTable.tableParent?.layer:t=this._layer,t}async _clearSearchText(){if(this._searchNode.value){this._searchNode.value.value="";let e={target:{value:""}};await this._searchTextChanged(e)}}async _zoom(){this._layer&&this.mapView&&await m(this.selectedIds,this._selectedLayerView,this.mapView,!0,void 0,this.zoomToScale)}async _layerSelectionChanged(e){let t=e.detail[0];if(t!==this._layer?.id||this._featuresEmpty()){this._fetchingData=!0,await this._clearSearchText();let i=this.mapView&&await O(this.mapView,t);i&&await i.when(async()=>{this._selectedLayerView=!i.isTable&&this.mapView?await F(this.mapView,i.id):null,this._table&&this._table?.viewModel?.attachmentsViewOptions?.objectId&&this._table.viewModel.hideAttachmentsView(),this._shouldUpdateTableOnExtentChange=!0,this._layer=i,await this._initToolInfos(),this._getFullTextSearchInfo()})}this._creatingFeature=!1,this._fetchingData=!1}_getColumnTemplates(e,t,i){let s;this.mapInfo?.layerOptions?.layers.some(r=>r.id===e?(s=r,!0):!1);let a=this._layer?.attributeTableTemplate?.elements,l=[];a?.length>0&&this.honorMapFieldSettings&&(l=a.map(r=>r.fieldName));let n=s?.fields&&s?.fieldOrder?s.fieldOrder.filter(r=>s?.fields&&s.fields.indexOf(r)>-1):l.length>0?l:void 0,h;return t&&(h=t.reduce((r,d)=>{let _={type:"field",fieldName:d.name,label:this.getFieldLabel(d,i),menuConfig:this._getMenuConfig(d.name)};return s&&s.fields&&s?.fields?.length>0?s.fields.indexOf(d.name)>-1&&r.push(_):l.length>0?l.indexOf(d.name)>-1&&r.push(_):r.push(_),r},[])),h?n?h?.sort(this._sortFields.bind(this,n)):h:[]}updateRelatedAttachmentColumns(){let e;this.mapInfo?.layerOptions?.layers.some(h=>h.id===this._layer?.id?(e=h,!0):!1);let t=this.hasAttachmentsEnabled(this._layer),i=!0,s=e?.fieldOrder||[],a=s.some(h=>h?.name==="attachments"),l=s.filter(h=>typeof h=="object"&&h.name?.startsWith("related:")).map(h=>h.name.split("related:")[1]),n=(e?.extraFields||[]).map(h=>h.startsWith("related:")?h.split("related:")[1]:h);e?.extraFields&&(t=!!(a&&n.includes("attachments")&&this.hasAttachmentsEnabled(this._layer)),i=l.length>0,this._table?.columns.forEach(h=>{h.fieldName.startsWith("EsriFeatureTableRelationshipColumn")&&(h.hidden=!n.includes(h.effectiveLabel))})),this._table.relatedRecordsEnabled=i,this._table.attachmentsEnabled=t}getFieldLabel(e,t){let i=e.alias?e.alias:e.name;return t?.some(s=>s.fieldName===e.name?(i=s.label,!0):!1),i||e.name}_sortFields(e,t,i){return e?.indexOf(t.fieldName)-e.indexOf(i.fieldName)}_getMenuConfig(e){return{items:[{label:this._translations.hideField,icon:"view-hide",autoCloseMenu:!0,clickFunction:()=>{this._handleHideClick(e)}}]}}_handleHideClick(e){this._columnsInfo&&this._table&&(this._columnsInfo[e]=!1,this._table.hideColumn(e),this._table.tableTemplate&&this._table.tableTemplate.columnTemplates.forEach(t=>{t.fieldName===e&&(t.visible=!1)}))}};v("layer-table",y);export{y as LayerTable};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{a}from"./
|
3
|
+
v1.1.0-next.20250919 */
|
4
|
+
import{a}from"./CC2LNAHG.js";import{a as d}from"./MWENB3XH.js";import{K as b,L as m}from"./CI66WKOX.js";import"./PQVTEZTM.js";import{a as l}from"./NU4UFWQN.js";import{a as i}from"./LA5337YO.js";import"./ALVRVNPS.js";import"./N2STUL4S.js";import"./E7VUQI3W.js";import"./5YPAOQZ6.js";import"./BJ5ZJE23.js";import"./XRZSNVB5.js";import"./ZG5775EA.js";import"./FNL2JJQX.js";import"./HJW6V57X.js";import"./5JGZBRBO.js";import"./J753SYSS.js";import"./DA7EQQQU.js";import"./2ZGO34ET.js";import"./XYPES4NY.js";import"./4JSDFSS5.js";import"./MO6MKYJW.js";import"./5AQUM4X3.js";import"./PA4DS7UD.js";import"./UNYTEEQV.js";import"./R66SCXZQ.js";import"./ZMAVDEDI.js";import"./PO2ONXW6.js";import"./FXUBY7ZI.js";function h(e,r){let t=l(r,"portal")||l(r,"authentication.portal")||"www.arcgis.com",n=`${d(t)}/sharing/rest`;return b(e,Object.assign(Object.assign({},r),{portal:n}))}var _=async(e,r,t)=>{var n,o;let s,p=`{{${e}.notice.message:translate}}`,g=[{ariaLabel:`{{${e}.notice.actions.goToOrg:translate}}`,label:`{{${e}.notice.actions.goToOrg:translate}}`,href:`${t.portalUrl}/home/organization.html?tab=general#settings`,target:"_blank"}],c=await C(t),y=!((n=c.informationalBanner)===null||n===void 0)&&n.enabled?`{{${e}.fields.infoBanner.helperText:translate}}`:`{{${e}.fields.infoBanner.helperTextWhenDisabled:translate}}`,O=`{{${e}.fields.infoBanner.goToBannerConfig:translate}}`,$=`<calcite-link href=${t.portalUrl}/home/organization.html?tab=security#settings target="_blank" icon-end="launch">${O}</calcite-link>`;if(t.communityOrgId||t.enterpriseOrgId){let f=t.enterpriseOrgId?"goToStaffOrg":"goToCommunityOrg",u=await S(t),w=t.enterpriseOrgId||t.communityOrgId;s=t.trustedOrgs.find(T=>T.to.orgId===w).to.name,p=t.enterpriseOrgId?`{{${e}.notice.staffMessage:translate}}: ${s}`:`{{${e}.notice.communityMessage:translate}}: ${s}`,u&&g.push({ariaLabel:`{{${e}.notice.actions.${f}:translate}}`,label:`{{${e}.notice.actions.${f}:translate}}`,href:u,target:"_blank"})}return{type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.userSettings`,elements:[{type:"Control",scope:"/properties/settings/properties/features/properties/workspace",labelKey:`${e}.fields.workspacePreview.label`,options:{type:"Control",control:"hub-field-input-switch",layout:"inline-space-between",helperText:{labelKey:`${e}.fields.workspacePreview.helperText`}}}]},{type:"Section",labelKey:`${e}.sections.orgSettings.label`,options:{helperText:{label:`${t.portal.name}`}},rules:[{effect:i.SHOW,conditions:[t.isOrgAdmin&&t.currentUser.orgId===t.portal.id]}],elements:[{type:"Notice",options:{notice:{configuration:{id:"user-org-settings-notice",noticeType:"notice",closable:!1,kind:"info",scale:"m"},title:`{{${e}.notice.title:translate}}`,message:p,autoShow:!0,actions:g}}},{type:"Section",labelKey:`${e}.sections.orgSettings.siteDefaults.label`,elements:[{type:"Control",scope:"/properties/hubOrgSettings/properties/showInformationalBanner",labelKey:`${e}.fields.infoBanner.label`,options:{type:"Control",control:"hub-field-input-switch",layout:"inline-space-between",helperText:{label:y}},rules:[{effect:i.DISABLE,conditions:[!(!((o=c.informationalBanner)===null||o===void 0)&&o.enabled)]}]},{type:"Control",scope:"/properties/hubOrgSettings/properties/showInformationalBanner",options:{control:"calcite-link",layout:"inline-space-between",helperText:{label:$}},rules:[{effect:i.SHOW,conditions:[t.isOrgAdmin]}]}]},{type:"Section",labelKey:`${e}.sections.orgSettings.signinSettings.label`,rules:[{effect:i.SHOW,conditions:[!!(t.isCommunityOrg&&t.isOrgAdmin)]}],options:{helperText:{labelKey:`${e}.sections.orgSettings.signinSettings.helperText`}},elements:[{type:"Control",scope:"/properties/hubOrgSettings/properties/enableTermsAndConditions",labelKey:`${e}.fields.enableTermsAndConditions.label`,options:{control:"hub-field-input-switch",layout:"inline-space-between"}},{type:"Control",scope:"/properties/hubOrgSettings/properties/termsAndConditions",labelKey:`${e}.fields.termsAndConditions.label`,options:{control:"hub-field-input-rich-text",type:"textarea"},rules:[{effect:i.SHOW,conditions:[{scope:"/properties/hubOrgSettings/properties/enableTermsAndConditions",schema:{const:!0}}]}]},{type:"Control",scope:"/properties/hubOrgSettings/properties/enableSignupText",labelKey:`${e}.fields.enableSignupText.label`,options:{control:"hub-field-input-switch",layout:"inline-space-between"}},{type:"Control",scope:"/properties/hubOrgSettings/properties/signupText",options:{control:"hub-field-input-rich-text",type:"textarea"},rules:[{effect:i.SHOW,conditions:[{scope:"/properties/hubOrgSettings/properties/enableSignupText",schema:{const:!0}}]}]}]}]}]}};async function S(e){let r=`${e.communityOrgUrl}/home/organization.html`;if(e.enterpriseOrgId){let n=await a(h,{})(e.enterpriseOrgId,e.requestOptions);n.urlKey?r=`https://${n.urlKey}.${n.customBaseUrl}/home/organization.html`:r=void 0}return r}async function C(e){return await a(m,{})(e.portal.id,{portal:e.sharingApiUrl})}export{C as _getPortalSettings,_ as buildUiSchema};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import"./
|
3
|
+
v1.1.0-next.20250919 */
|
4
|
+
import"./FXUBY7ZI.js";var s=async(e,t,o)=>({type:"Layout",elements:[{type:"Section",labelKey:"shared.sections.mapSettings.label",elements:[{type:"Control",scope:"/properties/view/properties/mapSettings",labelKey:`${e}.fields.mapSettings.label`,options:{type:"Control",control:"hub-composite-input-map-settings",visibleSettings:["gallery"],showPreview:!0}}]}]});export{s as buildUiSchema};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
3
|
+
v1.1.0-next.20250919 */
|
4
4
|
var e=["hub:user:settings"],t={type:"object",properties:{settings:{type:"object",properties:{features:{type:"object",properties:{workspace:{type:"boolean",default:!0}}}}},hubOrgSettings:{type:"object",properties:{showInformationalBanner:{type:"boolean",default:!1},enableTermsAndConditions:{type:"boolean",default:!1},termsAndConditions:{type:"string",default:""},enableSignupText:{type:"boolean",default:!1},signupText:{type:"string",default:""}}}}};export{e as a,t 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.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{a as l}from"./
|
3
|
+
v1.1.0-next.20250919 */
|
4
|
+
import{a as l}from"./3R3QLLTE.js";import{b as h}from"./VM2ZXL7L.js";import"./2HHL5GDO.js";import"./HZPUJDQL.js";import{E as r,G as n,h as i,i as a}from"./RQB6F4ZT.js";import"./FXUBY7ZI.js";var c=i`:host .instant-apps-keyboard-shortcuts__content{display:flex;flex-direction:column;font-family:var(--calcite-sans-family);font-size:.875rem;background-color:var(--calcite-color-background);color:var(--calcite-color-text-1);width:auto;padding:.5em;margin-bottom:0;overflow:auto}:host .instant-apps-keyboard-shortcuts__content table{border:none;border-collapse:collapse;width:100%;margin-bottom:1em}:host .instant-apps-keyboard-shortcuts__content table td,:host .instant-apps-keyboard-shortcuts__content table th{border:solid 1px var(--calcite-color-border-1);padding:.5rem .75rem;white-space:normal}:host .instant-apps-keyboard-shortcuts__content table td:lang(ja),:host .instant-apps-keyboard-shortcuts__content table td:lang(ja-JP),:host .instant-apps-keyboard-shortcuts__content table th:lang(ja-JP),:host .instant-apps-keyboard-shortcuts__content table th:lang(ja){white-space:nowrap}:host .instant-apps-keyboard-shortcuts__content tr:nth-child(2n){background-color:var(--calcite-color-foreground-2)}:host .instant-apps-keyboard-shortcuts__content tr th{padding:.5em .7em;font-weight:400}`,m={content:"instant-apps-keyboard-shortcuts__content"},o=class extends r{constructor(){super(...arguments),this._messages=l({name:"instant-apps-keyboard-shortcuts",blocking:!0})}static{this.properties={view:0}}static{this.styles=c}_getMapViewCommands(){let t=this.view?.type==="2d"&&this.view.constraints.rotationEnabled,e=this._messages?[{alias:this._messages.mapShortcuts.arrowKeys,title:this._messages.mapShortcuts.nudge,show:!0},{alias:"N",title:this._messages.mapShortcuts.N,show:t},{alias:"A",title:this._messages.mapShortcuts.A,show:t},{alias:"D",title:this._messages.mapShortcuts.D,show:t},{alias:"+",title:this._messages.mapShortcuts.plus,show:!0},{alias:"-",title:this._messages.mapShortcuts.minus,show:!0}]:[];return this._messages?e.filter(s=>s.show):[]}_getSceneViewCommands(){let t=this.view?.type==="3d"&&this.view.viewingMode==="global",e=this._messages?[{alias:this._messages.mapShortcuts.arrowKeys,title:this._messages.mapShortcuts.nudge,show:!!t},{alias:"P",title:this._messages.sceneShortcuts.P,show:!0},{alias:"N",title:this._messages.sceneShortcuts.N,show:!0},{alias:"W",title:this._messages.sceneShortcuts.W,show:!0},{alias:"A",title:this._messages.sceneShortcuts.A,show:!0},{alias:"D",title:this._messages.sceneShortcuts.D,show:!0},{alias:"S",title:this._messages.sceneShortcuts.S,show:!0},{alias:"J",title:this._messages.sceneShortcuts.globalCommands.J,show:!!t},{alias:"U",title:this._messages.sceneShortcuts.globalCommands.U,show:!!t}]:[];return this._messages?e.filter(s=>s.show):[]}_isMacLike(){return/(Mac)/iu.test(navigator.platform)}render(){let t=this.view?.type==="2d"||!this.view?this._getMapViewCommands():this._getSceneViewCommands(),e=this._isMacLike()?"Option":"Alt";return a`<calcite-block open class=${n(m.content)} .heading=${this._messages.generalShortcuts?.label}><table>${this.renderTableHeader()}<tr><td>${`${e} + M`}</td><td>${this._messages.generalShortcuts?.title}</td></tr></table><calcite-label>${this._messages.generalShortcuts?.title}</calcite-label><table>${this.renderTableHeader()}${t.map(s=>a`<tr><td>${s.alias}</td><td>${s.title}</td></tr>`)}</table></calcite-block>`}renderTableHeader(){return this._messages?a`<tr><th>${this._messages.generalShortcuts?.shortcut}</th><th>${this._messages.generalShortcuts?.action}</th></tr>`:null}};h("instant-apps-keyboard-shortcuts",o);export{o as InstantAppsKeyboardShortcuts};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{a as u}from"./
|
3
|
+
v1.1.0-next.20250919 */
|
4
|
+
import{a as u}from"./AJ5SJVVJ.js";import{a as m}from"./3R3QLLTE.js";import{b as d}from"./VM2ZXL7L.js";import"./2HHL5GDO.js";import"./HZPUJDQL.js";import{E as p,G as n,g as c,h as r,i,o as h}from"./RQB6F4ZT.js";import"./FXUBY7ZI.js";function f(s){return s==null||typeof s!="function"?null:new s({whiteList:{h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],img:["style","src","width","height"],pre:["style"],p:["id","class","style"],div:["id","class","style","role"],span:["id","class","style","role"],figure:["class","style"]}},!0)}function g(s){window?.localStorage.setItem(s,"false")}function b(s){return!!window?.localStorage?.getItem(s)}function _(s){window?.localStorage?.removeItem(s)}var x=r`:host{--instant-apps-splash-content-max-height: 100%;--instant-apps-splash-back-content-display: flex;display:block}:host .image.image_resized img{width:100%}:host .instant-apps-splash__back-content{display:var(--instant-apps-splash-back-content-display);align-items:center}:host .instant-apps-splash__back-content calcite-label{--calcite-label-margin-bottom: 0}:host .instant-apps-splash__content{max-height:var(--instant-apps-splash-content-max-height)}:host .instant-apps-splash__confirmation-tooltip{display:inline-block;max-width:200px;word-wrap:break-word}:host .instant-apps-splash__required{display:inline-block;margin-inline-start:var(--calcite-spacing-xxs);color:var(--calcite-color-status-danger)}:host .instant-apps-splash__footer{width:100%;display:flex;justify-content:space-between}:host .instant-apps-splash__button-container{display:flex}:host .instant-apps-splash__button-container calcite-button:not(:last-child){margin-inline-end:var(--calcite-spacing-sm)}@media (max-width: 816px){:host .instant-apps-splash__footer{justify-content:flex-start;flex-direction:column}:host .instant-apps-splash__back-content{margin-bottom:var(--calcite-spacing-sm)}:host .instant-apps-splash__back-content span{display:flex;align-items:center}:host .instant-apps-splash__button-container{width:100%;gap:var(--calcite-spacing-sm);justify-content:space-between}:host .instant-apps-splash__button-container calcite-button:not(:last-child){margin-inline-end:0}:host .instant-apps-splash__button-container>*{flex:1 1 0;min-width:0}}`,a={back:"instant-apps-splash__back-content",confirmationTooltip:"instant-apps-splash__confirmation-tooltip",requiredText:"instant-apps-splash__required",footer:"instant-apps-splash__footer",buttonContainer:"instant-apps-splash__button-container"},l=class extends p{constructor(){super(...arguments),this._messages=m({name:"instant-apps-splash"}),this._sanitizer=f(u),this.titleText="",this.content="",this.primaryButtonText="",this.open=!0,this.closeButtonDisabled=!1,this.outsideCloseDisabled=!1,this.secondaryButton=!1,this.closeBehavior="permanent-dismissal",this.confirmationText="",this.isConfirmed=!1,this.splashClose=h()}static{this.properties={localStorageKey:1,titleText:1,content:1,primaryButtonText:1,open:5,closeButtonDisabled:5,outsideCloseDisabled:5,secondaryButton:5,secondaryButtonText:1,secondaryButtonIcon:1,secondaryButtonCallback:0,closeBehavior:1,confirmationText:1,isConfirmed:32}}static{this.styles=x}load(){let t;if(this.closeBehavior==="confirmation"||this.closeBehavior==="dismissal")t=!0;else{let{localStorageKey:e}=this;e?t=this.open&&!b(e):t=this.open}this.el.open=t,this.content&&this._sanitizer&&this.sanitizeContent()}willUpdate(t){t.has("content")&&this.sanitizeContent()}sanitizeContent(){this.content=this._sanitizer.sanitize(this.content)}close(){this.open=!1,this.splashClose.emit()}getCheckboxText(){return this.closeBehavior==="confirmation"?this.confirmationText?this.confirmationText:`${this._messages.confirmationText}`:this._messages?.dontShowThisAgain}handleDontShowThisAgain(t){if(this.closeBehavior==="confirmation"){let e=t.target,{checked:o}=e;c(()=>{this.isConfirmed=o})}else if(this.closeBehavior==="permanent-dismissal"){let{localStorageKey:e}=this;if(!e)return;let o=t.target,{checked:y}=o;y?g(e):_(e)}}render(){return i`<calcite-dialog .open=${this.open} .focusTrapOptions=${{allowOutsideClick:!0}} modal .heading=${this.titleText} aria-describedby=description @calciteDialogClose=${this.close} .closeDisabled=${this.closeBehavior==="confirmation"||this.closeButtonDisabled} .outsideCloseDisabled=${this.closeBehavior==="confirmation"||this.outsideCloseDisabled} .escapeDisabled=${this.closeBehavior==="confirmation"}><div id=description .innerHTML=${this.content??""}></div><slot name=custom-action></slot><div class=${n(a.footer)} slot=footer>${this.localStorageKey&&this.closeBehavior==="permanent-dismissal"||this.closeBehavior==="confirmation"?this.renderCheckbox():null}<div class=${n(a.buttonContainer)}>${this.secondaryButton?this.renderSecondaryButton():null}${this.renderPrimaryButton()}</div>${this.closeBehavior==="confirmation"&&!this.isConfirmed&&i`<calcite-tooltip reference-element=primary-button overlay-positioning=fixed placement=top><span class=${n(a.confirmationTooltip)}>${this._messages?.confirmationTooltip}</span></calcite-tooltip>`||""}</div></calcite-dialog>`}renderCheckbox(){let{localStorageKey:t}=this,e=this.closeBehavior!=="confirmation"&&t&&b(t)?!0:null;return i`<div class=${n(a.back)}><calcite-label layout=inline><calcite-checkbox @calciteCheckboxChange=${this.handleDontShowThisAgain} .checked=${e??void 0}></calcite-checkbox><span>${this.getCheckboxText()}<span class=${n(a.requiredText)}>${this.closeBehavior==="confirmation"&&`(${this._messages?.required})`||""}</span></span></calcite-label></div>`}renderPrimaryButton(){let{primaryButtonText:t}=this;return i`<calcite-button id=primary-button @click=${this.close} slot=footer-end .disabled=${this.closeBehavior==="confirmation"?!this.isConfirmed:!1}>${t||this._messages?.enter}</calcite-button>`}renderSecondaryButton(){return i`<calcite-button @click=${this.secondaryButtonCallback} slot=footer-end .iconStart=${this.secondaryButtonIcon} appearance=outline>${this.secondaryButtonText}</calcite-button>`}};d("instant-apps-splash",l);export{l as InstantAppsSplash};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{b as c}from"./
|
3
|
+
v1.1.0-next.20250919 */
|
4
|
+
import{b as c}from"./HXCLPF67.js";import{a as u}from"./2SWWWDL6.js";import"./2HHL5GDO.js";import"./HZPUJDQL.js";import{b as o}from"./EI7LNKKF.js";import{C as r,D as h,E as l,h as n,i,o as s}from"./RQB6F4ZT.js";import"./FXUBY7ZI.js";var m=n`/** @license
|
5
5
|
* Copyright 2025 Esri
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{d as i}from"./
|
3
|
+
v1.1.0-next.20250919 */
|
4
|
+
import{d as i}from"./PQVTEZTM.js";import{a}from"./LA5337YO.js";async function n(r,t){let e=`${t.portal}/portals/${r}/categorySchema`;try{let{categorySchema:o}=await i(e,t);return s(o[0].categories,"/Categories")}catch{return[]}}function s(r,t){return r.map(e=>{var o;let c=`${t}/${e.title}`,l=e.title;return{value:c,label:l,children:!((o=e.categories)===null||o===void 0)&&o.length?s(e.categories,c):[]}})}async function h(r,t){let e=await n(t.portal.id,t.hubRequestOptions);return[{labelKey:"shared.fields.categories.label",scope:"/properties/categories",type:"Control",options:{control:"hub-field-input-combobox",items:e,allowCustomValues:!1,selectionMode:"ancestors",placeholderIcon:"select-category"},rules:[{effect:a.DISABLE,conditions:[!e.length]}]},{type:"Notice",options:{notice:{configuration:{id:"no-categories-notice",noticeType:"notice",closable:!1,icon:"exclamation-mark-triangle",kind:"warning",scale:"m"},message:"{{shared.fields.categories.noCategoriesNotice.body:translate}}",autoShow:!0,actions:[{label:"{{shared.fields.categories.noCategoriesNotice.link:translate}}",icon:"launch",href:"https://doc.arcgis.com/en/arcgis-online/reference/content-categories.htm",target:"_blank"}]}},rules:[{effect:a.SHOW,conditions:[!e.length]}]}]}export{h as a};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{b as p,d as n,e as h,f as R}from"./N4TGQB52.js";function a(r={}){return r.portal?R(r.portal):r.authentication&&typeof r.authentication!="string"?r.authentication.portal:"https://www.arcgis.com/sharing/rest"}function u(r){return r.owner?Promise.resolve(r.owner):r.item&&r.item.owner?Promise.resolve(r.item.owner):r.authentication&&r.authentication.getUsername?r.authentication.getUsername():Promise.reject(new Error("Could not determine the owner of this item. Pass the `owner`, `item.owner`, or `authentication` option."))}function U(r){return Array.isArray(r)&&Array.isArray(r[0])&&Array.isArray(r[1])}function j(r){return r.join(",")}function nr(r,t){let e=P(r,t),o=Object.assign({httpMethod:"GET"},t);return n(e,o)}var P=(r,t)=>`${typeof t=="string"?t:a(t)}/content/items/${r}`;function ar(r,t){let e=`${P(r,t)}/data`,o=Object.assign({httpMethod:"GET",params:{}},t);return o.file&&(o.params.f=null),n(e,o).catch(i=>{if(!RegExp(/The string did not match the expected pattern|(Unexpected end of (JSON input|data at line 1 column 1))/i).test(i.message))throw i})}function ir(r){let t=`${P(r.id,r)}/relatedItems`,e=Object.assign({httpMethod:"GET",params:{direction:r.direction}},r);return typeof r.relationshipType=="string"?e.params.relationshipType=r.relationshipType:e.params.relationshipTypes=r.relationshipType,delete e.direction,delete e.relationshipType,n(t,e)}function mr(r,t){let e=`${P(r,t)}/resources`,o=Object.assign({},t);return o.params=Object.assign({num:1e3},o.params),n(e,o)}function lr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/delete`;return n(e,r)})}function dr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/removeResources`;return r.params=Object.assign(Object.assign({},r.params),{resource:r.resource}),typeof r.deleteAll<"u"&&(r.params.deleteAll=r.deleteAll),n(e,r)})}function hr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${encodeURIComponent(t)}/${r.folderId}/delete`;return n(e,r)})}function xr(r,t){let e=r||"self",o=`${a(t)}/portals/${e}/settings`,i=Object.assign({httpMethod:"GET"},t);return n(o,i)}function W(r){return u(r).then(t=>{let e=r.folderId?`${a(r)}/content/users/${t}/${r.folderId}/items/${r.item.id}/update`:`${a(r)}/content/users/${t}/items/${r.item.id}/update`;return r.params=Object.assign(Object.assign({},r.params),r.item),r.params.extent&&U(r.params.extent)&&(r.params.extent=j(r.params.extent)),n(e,r)})}function Ur(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/updateResources`;return r.params=Object.assign({file:r.resource,fileName:r.name,resourcesPrefix:r.prefix,text:r.content},r.params),typeof r.private<"u"&&(r.params.access=r.private?"private":"inherit"),n(e,r)})}function jr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.itemId}/move`,o=r.folderId;return o||(o="/"),r.params=Object.assign({folder:o},r.params),n(e,r)})}function Cr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/addRelationship`,o=h(r,["originItemId","destinationItemId","relationshipType"],{params:Object.assign({},r.params)});return n(e,o)})}function Rr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/addResources`;return r.params=Object.assign({file:r.resource,fileName:r.name,resourcesPrefix:r.prefix,text:r.content,access:r.private?"private":"inherit"},r.params),n(e,r)})}function Dr(r){return u(r).then(t=>{let o=`${`${a(r)}/content/users/${t}`}/createFolder`;return r.params=Object.assign({title:r.title},r.params),n(o,r)})}function Y(r){return r.multipart&&!r.filename?Promise.reject(new Error("The filename is required for a multipart request.")):u(r).then(t=>{let e=`${a(r)}/content/users/${t}`,o=`${e}/addItem`;r.folderId&&(o=`${e}/${r.folderId}/addItem`),r.params=Object.assign(Object.assign({},r.params),r.item),r.params.extent&&U(r.params.extent)&&(r.params.extent=j(r.params.extent));let i=h(r,["owner","folderId","file","dataUrl","text","async","multipart","filename","overwrite"],{params:Object.assign({},r.params)});return n(o,i)})}function Wr(r){let t=Object.assign({folderId:null},r);return Y(t)}function Xr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/protect`;return n(e,r)})}function Zr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/unprotect`;return n(e,r)})}function E(r,t){let e=`${a(t)}/community/groups/${r}`,o=Object.assign({httpMethod:"GET"},t);return n(e,o)}function tt(r,t){let e=`${a(t)}/content/groups/${r}`,o=Object.assign(Object.assign({httpMethod:"GET"},{params:{start:1,num:100}}),t);return t&&t.paging&&(o.params=Object.assign({},t.paging)),n(e,o)}function M(r,t){let e=t||r.authentication.username,o=r.owner||e;return`${a(r)}/content/users/${encodeURIComponent(o)}/items/${r.id}/share`}function A(r,t){let e=t||r.authentication.username;return(r.owner||e)===e}function G(r){return r.authentication.getUser().then(t=>t&&t.role==="org_admin"&&!t.roleId)}function v(r){return E(r.groupId,r).then(t=>t.userMembership.memberType).catch(()=>"none")}var x=class r{constructor(t=""){this.termStack=[],this.rangeStack=[],this.openGroups=0,this.q=t}match(...t){return this.termStack=this.termStack.concat(t),this}in(t){let e=`\`in(${t?`"${t}"`:""})\``;return!this.hasRange&&!this.hasTerms?(p(`${e} was called with no call to \`match(...)\` or \`from(...)\`/\`to(...)\`. Your query was not modified.`),this):(t&&t!=="*"&&(this.q+=`${t}:`),this.commit())}startGroup(){return this.commit(),this.openGroups>0&&(this.q+=" "),this.openGroups++,this.q+="(",this}endGroup(){return this.openGroups<=0?(p("`endGroup(...)` was called without calling `startGroup(...)` first. Your query was not modified."),this):(this.commit(),this.openGroups--,this.q+=")",this)}and(){return this.addModifier("and")}or(){return this.addModifier("or")}not(){return this.addModifier("not")}from(t){return this.hasTerms?(p('`from(...)` is not allowed after `match(...)` try using `.from(...).to(...).in(...)`. Optionally, you may see this because dates are incorrectly formatted. Dates should be a primative Date value, aka a number in milliseconds or Date object, ie new Date("2020-01-01"). Your query was not modified.'),this):(this.rangeStack[0]=t,this)}to(t){return this.hasTerms?(p('`to(...)` is not allowed after `match(...)` try using `.from(...).to(...).in(...)`. Optionally, you may see this because dates are incorrectly formatted. Dates should be a primative Date value, aka a number in milliseconds or Date object, ie new Date("2020-01-01"). Your query was not modified.'),this):(this.rangeStack[1]=t,this)}boost(t){return this.commit(),this.q+=`^${t}`,this}toParam(){return this.commit(),this.cleanup(),this.q}clone(){return this.commit(),this.cleanup(),new r(this.q+"")}addModifier(t){return this.currentModifer?(p(`You have called \`${this.currentModifer}()\` after \`${t}()\`. Your current query was not modified.`),this):(this.commit(),this.q===""&&t!=="not"?(p(`You have called \`${t}()\` without calling another method to modify your query first. Try calling \`match()\` first.`),this):(this.currentModifer=t,this.q+=this.q===""?"":" ",this.q+=`${t.toUpperCase()} `,this))}hasWhiteSpace(t){return/\s/g.test(t)}formatTerm(t){return t instanceof Date?t.getTime():typeof t=="string"&&this.hasWhiteSpace(t)?`"${t}"`:t}commit(){return this.currentModifer=void 0,this.hasRange&&(this.q+=`[${this.formatTerm(this.rangeStack[0])} TO ${this.formatTerm(this.rangeStack[1])}]`,this.rangeStack=[void 0,void 0]),this.hasTerms&&(this.q+=this.termStack.map(t=>this.formatTerm(t)).join(" "),this.termStack=[]),this}get hasTerms(){return this.termStack.length>0}get hasRange(){return this.rangeStack.length&&this.rangeStack[0]&&this.rangeStack[1]}cleanup(){if(this.openGroups>0)for(p(`Automatically closing ${this.openGroups} group(s). You can use \`endGroup(...)\` to remove this warning.`);this.openGroups>0;)this.q+=")",this.openGroups--;let t=this.q;this.q=t.replace(/( AND ?| NOT ?| OR ?)*$/,""),t!==this.q&&p("`startGroup(...)` was called without calling `endGroup(...)` first. Your query was not modified."),this.q=this.q.replace(/(\(\))*/,"")}};function $(r,t){let e;typeof r=="string"||r instanceof x?e={httpMethod:"GET",params:{q:r}}:e=h(r,["q","num","start","sortField","sortOrder","searchUserAccess","searchUserName","filter","countFields","countSize","categories","categoryFilters"],{httpMethod:"GET"});let o;switch(t){case"item":o="/search";break;case"group":o="/community/groups";break;case"groupContent":if(typeof r!="string"&&!(r instanceof x)&&r.groupId)o=`/content/groups/${r.groupId}/search`;else return Promise.reject(new Error("you must pass a `groupId` option to `searchGroupContent`"));break;case"communityUser":o="/community/users";break;default:o="/portals/self/users/search";break}let i=a(e)+o;return n(i,e).then(m=>(m.nextStart&&m.nextStart!==-1&&(m.nextPage=function(){let c;return typeof r=="string"||r instanceof x?c={q:r,start:m.nextStart}:(c=r,c.start=m.nextStart),$(c,t)}),m))}function k(r){return $(r,"item")}function b(r,t){if(r.length===0)return[];let e=[];for(let o=0;o<r.length;o+=t)e.push(r.slice(o,o+t));return e}function F(r){let t=r.id,e=`${a(r)}/community/groups/${t}/addUsers`,o=Object.assign({},r,{admins:void 0,users:void 0}),m=[...N("users",r.users,o),...N("admins",r.admins,o)].map(c=>H(e,c));return Promise.all(m).then(J)}function N(r,t,e){return!t||t.length<1?[]:b(t,25).map(i=>z(r,i,e))}function z(r,t,e){return Object.assign({},e,{[r]:t,params:Object.assign(Object.assign({},e.params),{[r]:t})})}function H(r,t){return n(r,t).catch(e=>({errors:[e]}))}function J(r){let t=r.filter(i=>i.notAdded).reduce((i,m)=>i.concat(m.notAdded),[]),e=r.filter(i=>i.errors).reduce((i,m)=>i.concat(m.errors),[]),o={notAdded:t};return e.length>0&&(o.errors=e),o}function _(r){let{id:t,users:e}=r,o=`${a(r)}/community/groups/${t}/removeUsers`,i=c=>{let d=Object.assign(Object.assign({},r),{users:c,params:{users:c}});return n(o,d).catch(f=>({errors:[f]}))},m=b(e,25).map(c=>i(c));return Promise.all(m).then(c=>{let d=l=>c.filter(g=>g[l]).reduce((g,w)=>g.concat(w[l]),[]),f=d("errors"),s={notRemoved:d("notRemoved")};return f.length?Object.assign(Object.assign({},s),{errors:f}):s})}function Ft(r){let t=`${a(r)}/community/createGroup`;return r.params=Object.assign(Object.assign({},r.params),r.group),n(t,r)}function Ht(r){let t=`${a(r)}/community/groups/${r.id}/protect`;return n(t,r)}function Jt(r){let t=`${a(r)}/community/groups/${r.id}/unprotect`;return n(t,r)}function Kt(r){let t=`${a(r)}/community/groups/${r.id}/delete`,e=Object.assign({},r);return n(t,e)}function Ot(r){return $(r,"group")}function qt(r){return $(r,"groupContent")}function oe(r){let t=`${a(r)}/community/groups/${r.group.id}/update`;return r.params=Object.assign(Object.assign({},r.params),r.group),n(t,r)}function S(r){let t=`${a(r)}/community/groups/${r.id}/updateUsers`,e={authentication:r.authentication,params:{}};return r.newMemberType==="admin"?e.params.admins=r.users:e.params.users=r.users,n(t,e)}async function y(r){var t;if(r.username)return encodeURIComponent(r.username);if(!((t=r.authentication)===null||t===void 0)&&t.username)return encodeURIComponent(r.authentication.username);if(r.authentication)return r.authentication.getUsername().then(encodeURIComponent)}async function I(r){let t,e={httpMethod:"GET"};if(typeof r=="string")t=`https://www.arcgis.com/sharing/rest/community/users/${r}`;else{let o=await y(r);t=`${a(r)}/community/users/${o}`,e=Object.assign(Object.assign({},r),e)}return n(t,e)}async function Le(r){let t=await r.authentication.getUsername(),e=M(r,t);return A(r,t)?B(e,r):G(r).then(o=>{if(o)return B(e,r);throw Error(`This item can not be shared by ${t}. They are neither the item owner nor an organization admin.`)})}function B(r,t){return t.params=Object.assign({org:!1,everyone:!1},t.params),t.access==="private"&&(t.params.groups=" "),t.access==="org"&&(t.params.org=!0),t.access==="public"&&(t.params.account=!0,t.params.everyone=!0),n(r,t)}function T(r){let t={q:`id: ${r.id} AND group: ${r.groupId}`,start:1,num:10,sortField:"title",authentication:r.authentication,httpMethod:"POST"};return k(t).then(e=>{let o=!1;if(e.total>0)return o=e.results.some(i=>i.id===r.id),o})}async function ao(r){return T(r).then(async t=>{if(t)return{itemId:r.id,shortcut:!0,notSharedWith:[]};let{owner:e,confirmItemControl:o}=r,i=await r.authentication.getUsername(),m=e||i;if(m!==i){let c=!1,d=!1;return Promise.all([I({username:i,authentication:r.authentication}),I({username:m,authentication:r.authentication}),v(r)]).then(([f,s,l])=>{let g=!!o;return c=f.role==="org_admin"&&!f.roleId,d=f.orgId!==s.orgId,V(f,g,l,c,s,r)}).then(f=>{let[{revert:s}={promise:Promise.resolve({notAdded:[]}),revert:l=>Promise.resolve(l)}]=f;return Promise.all(f.map(({promise:l})=>l)).then(()=>D(r,c,d)).then(l=>s(l))})}return D(r)}).then(t=>{if(t.notSharedWith.length)throw Error(`Item ${r.id} could not be shared to group ${r.groupId}.`);return t})}function V(r,t,e,o,i,m){let c=[];if(m.groupId!==r.favGroupId){if(t){if(!o)throw Error(`This item can not be shared to shared editing group ${m.groupId} by ${r.username} as they not the item owner or org admin.`);c.push(C(r,r,!1,`Error adding ${r.username} as member to edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m),C(r,i,!0,e==="none"?`Error adding user ${i.username} to edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`:`Error promoting user ${i.username} to admin in edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m))}else if(o)c.push(C(r,r,!1,`Error adding ${r.username} as member to view group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m));else if(e==="none")throw new Error(`This item can not be shared by ${r.username} as they are not a member of the specified group ${m.groupId}.`)}return c}async function D(r,t=!1,e=!1){let o=await r.authentication.getUsername(),i=r.owner||o,m=`${a(r)}/content/items/${r.id}/share`;return(i===o||t&&!e)&&(m=`${a(r)}/content/users/${i}/items/${r.id}/share`),r.params={groups:r.groupId,confirmItemControl:r.confirmItemControl},n(m,r)}function C(r,t,e,o,i){let m=t.groups||[],c=m.find(s=>s.id===i.groupId);if(r.orgId!==t.orgId)throw Error(`User ${t.username} is not a member of the same org as ${r.username}. Consequently they can not be added added to group ${i.groupId} nor can item ${i.id} be shared to the group.`);if(!c&&m.length>511)throw Error(`User ${t.username} already has 512 groups, and can not be added to group ${i.groupId}. Consequently item ${i.id} can not be shared to the group.`);let d,f;if(c)e&&c.userMembership.memberType==="member"?(d=S({id:i.groupId,users:[t.username],newMemberType:"admin",authentication:i.authentication}).then(s=>{let l=s.results.reduce((g,w)=>(w.success||g.push(w.username),g),[]);return Promise.resolve({notAdded:l})}).catch(()=>({notAdded:[t.username]})),f=s=>S({id:i.groupId,users:[t.username],newMemberType:"member",authentication:i.authentication}).then(()=>s).catch(()=>s)):(d=Promise.resolve({notAdded:[]}),f=s=>Promise.resolve(s));else{let s=e?"admins":"users";d=F({id:i.groupId,[s]:[t.username],authentication:i.authentication}).then(l=>{if(l.errors&&l.errors.length)throw l.errors[0];return l}).catch(()=>({notAdded:[t.username]})),f=l=>_({id:i.groupId,users:[t.username],authentication:i.authentication}).then(()=>l)}return{promise:d.then(s=>{if(s.notAdded.length)throw new Error(o);return s}),revert:f}}function lo(r){return T(r).then(async t=>{if(!t)return Promise.resolve({itemId:r.id,shortcut:!0,notUnsharedFrom:[]});let{owner:e}=r,o=await r.authentication.getUsername();return Promise.all([v(r),I({username:o,authentication:r.authentication})]).then(([i,m])=>{let d=(e||o)===o,f=m.role==="org_admin"&&!m.roleId;if(!d&&!f&&["admin","owner"].indexOf(i)<0)throw Error(`This item can not be unshared from group ${r.groupId} by ${o} as they not the item owner, an org admin, group admin or group owner.`);return L(r)}).then(i=>{if(i.notUnsharedFrom.length)throw Error(`Item ${r.id} could not be unshared to group ${r.groupId}`);return i})})}async function L(r){let t=await r.authentication.getUsername(),e=r.owner||t,o=`${a(r)}/content/items/${r.id}/unshare`;return e===t&&(o=`${a(r)}/content/users/${e}/items/${r.id}/unshare`),r.params={groups:r.groupId},n(o,r)}function wo(r){return Q(null,r)}function Q(r,t){let e=r||"self",o=`${a(t)}/portals/${e}`,i=Object.assign({httpMethod:"GET"},t);return n(o,i)}export{a,u as b,W as c,Ur as d,jr as e,Cr as f,Rr as g,Dr as h,Y as i,Wr as j,nr as k,ar as l,ir as m,mr as n,Xr as o,Zr as p,E as q,tt as r,lr as s,dr as t,hr as u,x as v,k as w,_ as x,Ft as y,Ht as z,Jt as A,Kt as B,Ot as C,qt as D,oe as E,I as F,Le as G,ao as H,lo as I,wo as J,Q as K,xr as L};
|
3
|
+
v1.1.0-next.20250919 */
|
4
|
+
import{b as p,d as n,e as h,f as R}from"./PQVTEZTM.js";function a(r={}){return r.portal?R(r.portal):r.authentication&&typeof r.authentication!="string"?r.authentication.portal:"https://www.arcgis.com/sharing/rest"}function u(r){return r.owner?Promise.resolve(r.owner):r.item&&r.item.owner?Promise.resolve(r.item.owner):r.authentication&&r.authentication.getUsername?r.authentication.getUsername():Promise.reject(new Error("Could not determine the owner of this item. Pass the `owner`, `item.owner`, or `authentication` option."))}function U(r){return Array.isArray(r)&&Array.isArray(r[0])&&Array.isArray(r[1])}function j(r){return r.join(",")}function nr(r,t){let e=P(r,t),o=Object.assign({httpMethod:"GET"},t);return n(e,o)}var P=(r,t)=>`${typeof t=="string"?t:a(t)}/content/items/${r}`;function ar(r,t){let e=`${P(r,t)}/data`,o=Object.assign({httpMethod:"GET",params:{}},t);return o.file&&(o.params.f=null),n(e,o).catch(i=>{if(!RegExp(/The string did not match the expected pattern|(Unexpected end of (JSON input|data at line 1 column 1))/i).test(i.message))throw i})}function ir(r){let t=`${P(r.id,r)}/relatedItems`,e=Object.assign({httpMethod:"GET",params:{direction:r.direction}},r);return typeof r.relationshipType=="string"?e.params.relationshipType=r.relationshipType:e.params.relationshipTypes=r.relationshipType,delete e.direction,delete e.relationshipType,n(t,e)}function mr(r,t){let e=`${P(r,t)}/resources`,o=Object.assign({},t);return o.params=Object.assign({num:1e3},o.params),n(e,o)}function lr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/delete`;return n(e,r)})}function dr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/removeResources`;return r.params=Object.assign(Object.assign({},r.params),{resource:r.resource}),typeof r.deleteAll<"u"&&(r.params.deleteAll=r.deleteAll),n(e,r)})}function hr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${encodeURIComponent(t)}/${r.folderId}/delete`;return n(e,r)})}function xr(r,t){let e=r||"self",o=`${a(t)}/portals/${e}/settings`,i=Object.assign({httpMethod:"GET"},t);return n(o,i)}function W(r){return u(r).then(t=>{let e=r.folderId?`${a(r)}/content/users/${t}/${r.folderId}/items/${r.item.id}/update`:`${a(r)}/content/users/${t}/items/${r.item.id}/update`;return r.params=Object.assign(Object.assign({},r.params),r.item),r.params.extent&&U(r.params.extent)&&(r.params.extent=j(r.params.extent)),n(e,r)})}function Ur(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/updateResources`;return r.params=Object.assign({file:r.resource,fileName:r.name,resourcesPrefix:r.prefix,text:r.content},r.params),typeof r.private<"u"&&(r.params.access=r.private?"private":"inherit"),n(e,r)})}function jr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.itemId}/move`,o=r.folderId;return o||(o="/"),r.params=Object.assign({folder:o},r.params),n(e,r)})}function Cr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/addRelationship`,o=h(r,["originItemId","destinationItemId","relationshipType"],{params:Object.assign({},r.params)});return n(e,o)})}function Rr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/addResources`;return r.params=Object.assign({file:r.resource,fileName:r.name,resourcesPrefix:r.prefix,text:r.content,access:r.private?"private":"inherit"},r.params),n(e,r)})}function Dr(r){return u(r).then(t=>{let o=`${`${a(r)}/content/users/${t}`}/createFolder`;return r.params=Object.assign({title:r.title},r.params),n(o,r)})}function Y(r){return r.multipart&&!r.filename?Promise.reject(new Error("The filename is required for a multipart request.")):u(r).then(t=>{let e=`${a(r)}/content/users/${t}`,o=`${e}/addItem`;r.folderId&&(o=`${e}/${r.folderId}/addItem`),r.params=Object.assign(Object.assign({},r.params),r.item),r.params.extent&&U(r.params.extent)&&(r.params.extent=j(r.params.extent));let i=h(r,["owner","folderId","file","dataUrl","text","async","multipart","filename","overwrite"],{params:Object.assign({},r.params)});return n(o,i)})}function Wr(r){let t=Object.assign({folderId:null},r);return Y(t)}function Xr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/protect`;return n(e,r)})}function Zr(r){return u(r).then(t=>{let e=`${a(r)}/content/users/${t}/items/${r.id}/unprotect`;return n(e,r)})}function E(r,t){let e=`${a(t)}/community/groups/${r}`,o=Object.assign({httpMethod:"GET"},t);return n(e,o)}function tt(r,t){let e=`${a(t)}/content/groups/${r}`,o=Object.assign(Object.assign({httpMethod:"GET"},{params:{start:1,num:100}}),t);return t&&t.paging&&(o.params=Object.assign({},t.paging)),n(e,o)}function M(r,t){let e=t||r.authentication.username,o=r.owner||e;return`${a(r)}/content/users/${encodeURIComponent(o)}/items/${r.id}/share`}function A(r,t){let e=t||r.authentication.username;return(r.owner||e)===e}function G(r){return r.authentication.getUser().then(t=>t&&t.role==="org_admin"&&!t.roleId)}function v(r){return E(r.groupId,r).then(t=>t.userMembership.memberType).catch(()=>"none")}var x=class r{constructor(t=""){this.termStack=[],this.rangeStack=[],this.openGroups=0,this.q=t}match(...t){return this.termStack=this.termStack.concat(t),this}in(t){let e=`\`in(${t?`"${t}"`:""})\``;return!this.hasRange&&!this.hasTerms?(p(`${e} was called with no call to \`match(...)\` or \`from(...)\`/\`to(...)\`. Your query was not modified.`),this):(t&&t!=="*"&&(this.q+=`${t}:`),this.commit())}startGroup(){return this.commit(),this.openGroups>0&&(this.q+=" "),this.openGroups++,this.q+="(",this}endGroup(){return this.openGroups<=0?(p("`endGroup(...)` was called without calling `startGroup(...)` first. Your query was not modified."),this):(this.commit(),this.openGroups--,this.q+=")",this)}and(){return this.addModifier("and")}or(){return this.addModifier("or")}not(){return this.addModifier("not")}from(t){return this.hasTerms?(p('`from(...)` is not allowed after `match(...)` try using `.from(...).to(...).in(...)`. Optionally, you may see this because dates are incorrectly formatted. Dates should be a primative Date value, aka a number in milliseconds or Date object, ie new Date("2020-01-01"). Your query was not modified.'),this):(this.rangeStack[0]=t,this)}to(t){return this.hasTerms?(p('`to(...)` is not allowed after `match(...)` try using `.from(...).to(...).in(...)`. Optionally, you may see this because dates are incorrectly formatted. Dates should be a primative Date value, aka a number in milliseconds or Date object, ie new Date("2020-01-01"). Your query was not modified.'),this):(this.rangeStack[1]=t,this)}boost(t){return this.commit(),this.q+=`^${t}`,this}toParam(){return this.commit(),this.cleanup(),this.q}clone(){return this.commit(),this.cleanup(),new r(this.q+"")}addModifier(t){return this.currentModifer?(p(`You have called \`${this.currentModifer}()\` after \`${t}()\`. Your current query was not modified.`),this):(this.commit(),this.q===""&&t!=="not"?(p(`You have called \`${t}()\` without calling another method to modify your query first. Try calling \`match()\` first.`),this):(this.currentModifer=t,this.q+=this.q===""?"":" ",this.q+=`${t.toUpperCase()} `,this))}hasWhiteSpace(t){return/\s/g.test(t)}formatTerm(t){return t instanceof Date?t.getTime():typeof t=="string"&&this.hasWhiteSpace(t)?`"${t}"`:t}commit(){return this.currentModifer=void 0,this.hasRange&&(this.q+=`[${this.formatTerm(this.rangeStack[0])} TO ${this.formatTerm(this.rangeStack[1])}]`,this.rangeStack=[void 0,void 0]),this.hasTerms&&(this.q+=this.termStack.map(t=>this.formatTerm(t)).join(" "),this.termStack=[]),this}get hasTerms(){return this.termStack.length>0}get hasRange(){return this.rangeStack.length&&this.rangeStack[0]&&this.rangeStack[1]}cleanup(){if(this.openGroups>0)for(p(`Automatically closing ${this.openGroups} group(s). You can use \`endGroup(...)\` to remove this warning.`);this.openGroups>0;)this.q+=")",this.openGroups--;let t=this.q;this.q=t.replace(/( AND ?| NOT ?| OR ?)*$/,""),t!==this.q&&p("`startGroup(...)` was called without calling `endGroup(...)` first. Your query was not modified."),this.q=this.q.replace(/(\(\))*/,"")}};function $(r,t){let e;typeof r=="string"||r instanceof x?e={httpMethod:"GET",params:{q:r}}:e=h(r,["q","num","start","sortField","sortOrder","searchUserAccess","searchUserName","filter","countFields","countSize","categories","categoryFilters"],{httpMethod:"GET"});let o;switch(t){case"item":o="/search";break;case"group":o="/community/groups";break;case"groupContent":if(typeof r!="string"&&!(r instanceof x)&&r.groupId)o=`/content/groups/${r.groupId}/search`;else return Promise.reject(new Error("you must pass a `groupId` option to `searchGroupContent`"));break;case"communityUser":o="/community/users";break;default:o="/portals/self/users/search";break}let i=a(e)+o;return n(i,e).then(m=>(m.nextStart&&m.nextStart!==-1&&(m.nextPage=function(){let c;return typeof r=="string"||r instanceof x?c={q:r,start:m.nextStart}:(c=r,c.start=m.nextStart),$(c,t)}),m))}function k(r){return $(r,"item")}function b(r,t){if(r.length===0)return[];let e=[];for(let o=0;o<r.length;o+=t)e.push(r.slice(o,o+t));return e}function F(r){let t=r.id,e=`${a(r)}/community/groups/${t}/addUsers`,o=Object.assign({},r,{admins:void 0,users:void 0}),m=[...N("users",r.users,o),...N("admins",r.admins,o)].map(c=>H(e,c));return Promise.all(m).then(J)}function N(r,t,e){return!t||t.length<1?[]:b(t,25).map(i=>z(r,i,e))}function z(r,t,e){return Object.assign({},e,{[r]:t,params:Object.assign(Object.assign({},e.params),{[r]:t})})}function H(r,t){return n(r,t).catch(e=>({errors:[e]}))}function J(r){let t=r.filter(i=>i.notAdded).reduce((i,m)=>i.concat(m.notAdded),[]),e=r.filter(i=>i.errors).reduce((i,m)=>i.concat(m.errors),[]),o={notAdded:t};return e.length>0&&(o.errors=e),o}function _(r){let{id:t,users:e}=r,o=`${a(r)}/community/groups/${t}/removeUsers`,i=c=>{let d=Object.assign(Object.assign({},r),{users:c,params:{users:c}});return n(o,d).catch(f=>({errors:[f]}))},m=b(e,25).map(c=>i(c));return Promise.all(m).then(c=>{let d=l=>c.filter(g=>g[l]).reduce((g,w)=>g.concat(w[l]),[]),f=d("errors"),s={notRemoved:d("notRemoved")};return f.length?Object.assign(Object.assign({},s),{errors:f}):s})}function Ft(r){let t=`${a(r)}/community/createGroup`;return r.params=Object.assign(Object.assign({},r.params),r.group),n(t,r)}function Ht(r){let t=`${a(r)}/community/groups/${r.id}/protect`;return n(t,r)}function Jt(r){let t=`${a(r)}/community/groups/${r.id}/unprotect`;return n(t,r)}function Kt(r){let t=`${a(r)}/community/groups/${r.id}/delete`,e=Object.assign({},r);return n(t,e)}function Ot(r){return $(r,"group")}function qt(r){return $(r,"groupContent")}function oe(r){let t=`${a(r)}/community/groups/${r.group.id}/update`;return r.params=Object.assign(Object.assign({},r.params),r.group),n(t,r)}function S(r){let t=`${a(r)}/community/groups/${r.id}/updateUsers`,e={authentication:r.authentication,params:{}};return r.newMemberType==="admin"?e.params.admins=r.users:e.params.users=r.users,n(t,e)}async function y(r){var t;if(r.username)return encodeURIComponent(r.username);if(!((t=r.authentication)===null||t===void 0)&&t.username)return encodeURIComponent(r.authentication.username);if(r.authentication)return r.authentication.getUsername().then(encodeURIComponent)}async function I(r){let t,e={httpMethod:"GET"};if(typeof r=="string")t=`https://www.arcgis.com/sharing/rest/community/users/${r}`;else{let o=await y(r);t=`${a(r)}/community/users/${o}`,e=Object.assign(Object.assign({},r),e)}return n(t,e)}async function Le(r){let t=await r.authentication.getUsername(),e=M(r,t);return A(r,t)?B(e,r):G(r).then(o=>{if(o)return B(e,r);throw Error(`This item can not be shared by ${t}. They are neither the item owner nor an organization admin.`)})}function B(r,t){return t.params=Object.assign({org:!1,everyone:!1},t.params),t.access==="private"&&(t.params.groups=" "),t.access==="org"&&(t.params.org=!0),t.access==="public"&&(t.params.account=!0,t.params.everyone=!0),n(r,t)}function T(r){let t={q:`id: ${r.id} AND group: ${r.groupId}`,start:1,num:10,sortField:"title",authentication:r.authentication,httpMethod:"POST"};return k(t).then(e=>{let o=!1;if(e.total>0)return o=e.results.some(i=>i.id===r.id),o})}async function ao(r){return T(r).then(async t=>{if(t)return{itemId:r.id,shortcut:!0,notSharedWith:[]};let{owner:e,confirmItemControl:o}=r,i=await r.authentication.getUsername(),m=e||i;if(m!==i){let c=!1,d=!1;return Promise.all([I({username:i,authentication:r.authentication}),I({username:m,authentication:r.authentication}),v(r)]).then(([f,s,l])=>{let g=!!o;return c=f.role==="org_admin"&&!f.roleId,d=f.orgId!==s.orgId,V(f,g,l,c,s,r)}).then(f=>{let[{revert:s}={promise:Promise.resolve({notAdded:[]}),revert:l=>Promise.resolve(l)}]=f;return Promise.all(f.map(({promise:l})=>l)).then(()=>D(r,c,d)).then(l=>s(l))})}return D(r)}).then(t=>{if(t.notSharedWith.length)throw Error(`Item ${r.id} could not be shared to group ${r.groupId}.`);return t})}function V(r,t,e,o,i,m){let c=[];if(m.groupId!==r.favGroupId){if(t){if(!o)throw Error(`This item can not be shared to shared editing group ${m.groupId} by ${r.username} as they not the item owner or org admin.`);c.push(C(r,r,!1,`Error adding ${r.username} as member to edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m),C(r,i,!0,e==="none"?`Error adding user ${i.username} to edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`:`Error promoting user ${i.username} to admin in edit group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m))}else if(o)c.push(C(r,r,!1,`Error adding ${r.username} as member to view group ${m.groupId}. Consequently item ${m.id} was not shared to the group.`,m));else if(e==="none")throw new Error(`This item can not be shared by ${r.username} as they are not a member of the specified group ${m.groupId}.`)}return c}async function D(r,t=!1,e=!1){let o=await r.authentication.getUsername(),i=r.owner||o,m=`${a(r)}/content/items/${r.id}/share`;return(i===o||t&&!e)&&(m=`${a(r)}/content/users/${i}/items/${r.id}/share`),r.params={groups:r.groupId,confirmItemControl:r.confirmItemControl},n(m,r)}function C(r,t,e,o,i){let m=t.groups||[],c=m.find(s=>s.id===i.groupId);if(r.orgId!==t.orgId)throw Error(`User ${t.username} is not a member of the same org as ${r.username}. Consequently they can not be added added to group ${i.groupId} nor can item ${i.id} be shared to the group.`);if(!c&&m.length>511)throw Error(`User ${t.username} already has 512 groups, and can not be added to group ${i.groupId}. Consequently item ${i.id} can not be shared to the group.`);let d,f;if(c)e&&c.userMembership.memberType==="member"?(d=S({id:i.groupId,users:[t.username],newMemberType:"admin",authentication:i.authentication}).then(s=>{let l=s.results.reduce((g,w)=>(w.success||g.push(w.username),g),[]);return Promise.resolve({notAdded:l})}).catch(()=>({notAdded:[t.username]})),f=s=>S({id:i.groupId,users:[t.username],newMemberType:"member",authentication:i.authentication}).then(()=>s).catch(()=>s)):(d=Promise.resolve({notAdded:[]}),f=s=>Promise.resolve(s));else{let s=e?"admins":"users";d=F({id:i.groupId,[s]:[t.username],authentication:i.authentication}).then(l=>{if(l.errors&&l.errors.length)throw l.errors[0];return l}).catch(()=>({notAdded:[t.username]})),f=l=>_({id:i.groupId,users:[t.username],authentication:i.authentication}).then(()=>l)}return{promise:d.then(s=>{if(s.notAdded.length)throw new Error(o);return s}),revert:f}}function lo(r){return T(r).then(async t=>{if(!t)return Promise.resolve({itemId:r.id,shortcut:!0,notUnsharedFrom:[]});let{owner:e}=r,o=await r.authentication.getUsername();return Promise.all([v(r),I({username:o,authentication:r.authentication})]).then(([i,m])=>{let d=(e||o)===o,f=m.role==="org_admin"&&!m.roleId;if(!d&&!f&&["admin","owner"].indexOf(i)<0)throw Error(`This item can not be unshared from group ${r.groupId} by ${o} as they not the item owner, an org admin, group admin or group owner.`);return L(r)}).then(i=>{if(i.notUnsharedFrom.length)throw Error(`Item ${r.id} could not be unshared to group ${r.groupId}`);return i})})}async function L(r){let t=await r.authentication.getUsername(),e=r.owner||t,o=`${a(r)}/content/items/${r.id}/unshare`;return e===t&&(o=`${a(r)}/content/users/${e}/items/${r.id}/unshare`),r.params={groups:r.groupId},n(o,r)}function wo(r){return Q(null,r)}function Q(r,t){let e=r||"self",o=`${a(t)}/portals/${e}`,i=Object.assign({httpMethod:"GET"},t);return n(o,i)}export{a,u as b,W as c,Ur as d,jr as e,Cr as f,Rr as g,Dr as h,Y as i,Wr as j,nr as k,ar as l,ir as m,mr as n,Xr as o,Zr as p,E as q,tt as r,lr as s,dr as t,hr as u,x as v,k as w,_ as x,Ft as y,Ht as z,Jt as A,Kt as B,Ot as C,qt as D,oe as E,I as F,Le as G,ao as H,lo as I,wo as J,Q as K,xr as L};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{a as s}from"./
|
3
|
+
v1.1.0-next.20250919 */
|
4
|
+
import{a as s}from"./LA5337YO.js";import"./ALVRVNPS.js";import"./N2STUL4S.js";import"./E7VUQI3W.js";import"./5YPAOQZ6.js";import"./BJ5ZJE23.js";import"./XRZSNVB5.js";import"./ZG5775EA.js";import"./FNL2JJQX.js";import"./HJW6V57X.js";import"./5JGZBRBO.js";import"./J753SYSS.js";import"./DA7EQQQU.js";import"./2ZGO34ET.js";import"./XYPES4NY.js";import"./4JSDFSS5.js";import"./MO6MKYJW.js";import"./5AQUM4X3.js";import"./PA4DS7UD.js";import"./UNYTEEQV.js";import"./R66SCXZQ.js";import"./ZMAVDEDI.js";import"./PO2ONXW6.js";import"./FXUBY7ZI.js";var c=async(e,l,n)=>{let{isSharedUpdate:i,leavingDisallowed:t}=l;return{type:"Layout",elements:[{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.description:translate}}`,`{{${e}.fields.membershipAccess.collab.description:translate}}`,`{{${e}.fields.membershipAccess.any.description:translate}}`],rules:[[{effect:s.NONE}],[{effect:s.DISABLE,conditions:[t]}],[{effect:s.DISABLE,conditions:[t]},{effect:s.DISABLE,conditions:[i]}]]},rules:[{effect:s.RESET,conditions:[t]},{effect:s.RESET,conditions:[i,{scope:"/properties/membershipAccess",schema:{const:"anyone"}}]}]},{labelKey:`${e}.fields.contributeContent.label`,scope:"/properties/isViewOnly",type:"Control",options:{control:"hub-field-input-tile-select",labels:[`{{${e}.fields.contributeContent.members.description:translate}}`,`{{${e}.fields.contributeContent.admins.description:translate}}`]}}]}]}};export{c 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.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{d as g}from"./
|
3
|
+
v1.1.0-next.20250919 */
|
4
|
+
import{d as g}from"./QQN3GEXF.js";import"./Z6Z36OMO.js";import{b as m}from"./PX67KWPD.js";import{a as u}from"./2SWWWDL6.js";import"./2HHL5GDO.js";import"./HZPUJDQL.js";import{b as p}from"./EI7LNKKF.js";import{C as c,D as h,E as d,h as n,i,o as a,r as l}from"./RQB6F4ZT.js";import"./FXUBY7ZI.js";var C=n`@layer{/** @license
|
5
5
|
* Copyright 2025 Esri
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import"./MYHIWH5I.js";var{entries:Tt,setPrototypeOf:st,isFrozen:Bt,getPrototypeOf:Yt,getOwnPropertyDescriptor:Xt}=Object,{freeze:S,seal:L,create:Et}=Object,{apply:xe,construct:Pe}=typeof Reflect<"u"&&Reflect;S||(S=function(o){return o});L||(L=function(o){return o});xe||(xe=function(o,l){for(var a=arguments.length,c=new Array(a>2?a-2:0),O=2;O<a;O++)c[O-2]=arguments[O];return o.apply(l,c)});Pe||(Pe=function(o){for(var l=arguments.length,a=new Array(l>1?l-1:0),c=1;c<l;c++)a[c-1]=arguments[c];return new o(...a)});var le=R(Array.prototype.forEach),jt=R(Array.prototype.lastIndexOf),lt=R(Array.prototype.pop),$=R(Array.prototype.push),Vt=R(Array.prototype.splice),fe=R(String.prototype.toLowerCase),De=R(String.prototype.toString),Ne=R(String.prototype.match),q=R(String.prototype.replace),$t=R(String.prototype.indexOf),qt=R(String.prototype.trim),b=R(Object.prototype.hasOwnProperty),A=R(RegExp.prototype.test),K=Kt(TypeError);function R(s){return function(o){o instanceof RegExp&&(o.lastIndex=0);for(var l=arguments.length,a=new Array(l>1?l-1:0),c=1;c<l;c++)a[c-1]=arguments[c];return xe(s,o,a)}}function Kt(s){return function(){for(var o=arguments.length,l=new Array(o),a=0;a<o;a++)l[a]=arguments[a];return Pe(s,l)}}function r(s,o){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:fe;st&&st(s,null);let a=o.length;for(;a--;){let c=o[a];if(typeof c=="string"){let O=l(c);O!==c&&(Bt(o)||(o[a]=O),c=O)}s[c]=!0}return s}function Zt(s){for(let o=0;o<s.length;o++)b(s,o)||(s[o]=null);return s}function C(s){let o=Et(null);for(let[l,a]of Tt(s))b(s,l)&&(Array.isArray(a)?o[l]=Zt(a):a&&typeof a=="object"&&a.constructor===Object?o[l]=C(a):o[l]=a);return o}function Z(s,o){for(;s!==null;){let a=Xt(s,o);if(a){if(a.get)return R(a.get);if(typeof a.value=="function")return R(a.value)}s=Yt(s)}function l(){return null}return l}var ct=S(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ie=S(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","slot","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Me=S(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Jt=S(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Ce=S(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Qt=S(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ft=S(["#text"]),ut=S(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),we=S(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),mt=S(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ce=S(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),en=L(/\{\{[\w\W]*|[\w\W]*\}\}/gm),tn=L(/<%[\w\W]*|[\w\W]*%>/gm),nn=L(/\$\{[\w\W]*/gm),on=L(/^data-[\-\w.\u00B7-\uFFFF]+$/),an=L(/^aria-[\-\w]+$/),_t=L(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),rn=L(/^(?:\w+script|data):/i),sn=L(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),gt=L(/^html$/i),ln=L(/^[a-z][.\w]*(-[.\w]+)+$/i),pt=Object.freeze({__proto__:null,ARIA_ATTR:an,ATTR_WHITESPACE:sn,CUSTOM_ELEMENT:ln,DATA_ATTR:on,DOCTYPE_NAME:gt,ERB_EXPR:tn,IS_ALLOWED_URI:_t,IS_SCRIPT_OR_DATA:rn,MUSTACHE_EXPR:en,TMPLIT_EXPR:nn}),J={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},cn=function(){return typeof window>"u"?null:window},fn=function(o,l){if(typeof o!="object"||typeof o.createPolicy!="function")return null;let a=null,c="data-tt-policy-suffix";l&&l.hasAttribute(c)&&(a=l.getAttribute(c));let O="dompurify"+(a?"#"+a:"");try{return o.createPolicy(O,{createHTML(P){return P},createScriptURL(P){return P}})}catch{return console.warn("TrustedTypes policy "+O+" could not be created."),null}},dt=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function ht(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:cn(),o=i=>ht(i);if(o.version="3.2.7",o.removed=[],!s||!s.document||s.document.nodeType!==J.document||!s.Element)return o.isSupported=!1,o;let{document:l}=s,a=l,c=a.currentScript,{DocumentFragment:O,HTMLTemplateElement:P,Node:ue,Element:ve,NodeFilter:W,NamedNodeMap:At=s.NamedNodeMap||s.MozNamedAttrMap,HTMLFormElement:St,DOMParser:Rt,trustedTypes:Q}=s,B=ve.prototype,Ot=Z(B,"cloneNode"),yt=Z(B,"remove"),Lt=Z(B,"nextSibling"),bt=Z(B,"childNodes"),ee=Z(B,"parentNode");if(typeof P=="function"){let i=l.createElement("template");i.content&&i.content.ownerDocument&&(l=i.content.ownerDocument)}let g,Y="",{implementation:me,createNodeIterator:Dt,createDocumentFragment:Nt,getElementsByTagName:It}=l,{importNode:Mt}=a,h=dt();o.isSupported=typeof Tt=="function"&&typeof ee=="function"&&me&&me.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:pe,ERB_EXPR:de,TMPLIT_EXPR:Te,DATA_ATTR:Ct,ARIA_ATTR:wt,IS_SCRIPT_OR_DATA:xt,ATTR_WHITESPACE:ke,CUSTOM_ELEMENT:Pt}=pt,{IS_ALLOWED_URI:Ue}=pt,p=null,Fe=r({},[...ct,...Ie,...Me,...Ce,...ft]),T=null,He=r({},[...ut,...we,...mt,...ce]),u=Object.seal(Et(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),X=null,Ee=null,ze=!0,_e=!0,Ge=!1,We=!0,v=!1,te=!0,w=!1,ge=!1,he=!1,k=!1,ne=!1,oe=!1,Be=!0,Ye=!1,vt="user-content-",Ae=!0,j=!1,U={},F=null,Xe=r({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),je=null,Ve=r({},["audio","video","img","source","image","track"]),Se=null,$e=r({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ie="http://www.w3.org/1998/Math/MathML",ae="http://www.w3.org/2000/svg",N="http://www.w3.org/1999/xhtml",H=N,Re=!1,Oe=null,kt=r({},[ie,ae,N],De),re=r({},["mi","mo","mn","ms","mtext"]),se=r({},["annotation-xml"]),Ut=r({},["title","style","font","a","script"]),V=null,Ft=["application/xhtml+xml","text/html"],Ht="text/html",d=null,z=null,zt=l.createElement("form"),qe=function(e){return e instanceof RegExp||e instanceof Function},ye=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(z&&z===e)){if((!e||typeof e!="object")&&(e={}),e=C(e),V=Ft.indexOf(e.PARSER_MEDIA_TYPE)===-1?Ht:e.PARSER_MEDIA_TYPE,d=V==="application/xhtml+xml"?De:fe,p=b(e,"ALLOWED_TAGS")?r({},e.ALLOWED_TAGS,d):Fe,T=b(e,"ALLOWED_ATTR")?r({},e.ALLOWED_ATTR,d):He,Oe=b(e,"ALLOWED_NAMESPACES")?r({},e.ALLOWED_NAMESPACES,De):kt,Se=b(e,"ADD_URI_SAFE_ATTR")?r(C($e),e.ADD_URI_SAFE_ATTR,d):$e,je=b(e,"ADD_DATA_URI_TAGS")?r(C(Ve),e.ADD_DATA_URI_TAGS,d):Ve,F=b(e,"FORBID_CONTENTS")?r({},e.FORBID_CONTENTS,d):Xe,X=b(e,"FORBID_TAGS")?r({},e.FORBID_TAGS,d):C({}),Ee=b(e,"FORBID_ATTR")?r({},e.FORBID_ATTR,d):C({}),U=b(e,"USE_PROFILES")?e.USE_PROFILES:!1,ze=e.ALLOW_ARIA_ATTR!==!1,_e=e.ALLOW_DATA_ATTR!==!1,Ge=e.ALLOW_UNKNOWN_PROTOCOLS||!1,We=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,v=e.SAFE_FOR_TEMPLATES||!1,te=e.SAFE_FOR_XML!==!1,w=e.WHOLE_DOCUMENT||!1,k=e.RETURN_DOM||!1,ne=e.RETURN_DOM_FRAGMENT||!1,oe=e.RETURN_TRUSTED_TYPE||!1,he=e.FORCE_BODY||!1,Be=e.SANITIZE_DOM!==!1,Ye=e.SANITIZE_NAMED_PROPS||!1,Ae=e.KEEP_CONTENT!==!1,j=e.IN_PLACE||!1,Ue=e.ALLOWED_URI_REGEXP||_t,H=e.NAMESPACE||N,re=e.MATHML_TEXT_INTEGRATION_POINTS||re,se=e.HTML_INTEGRATION_POINTS||se,u=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&qe(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(u.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&qe(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(u.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(u.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),v&&(_e=!1),ne&&(k=!0),U&&(p=r({},ft),T=[],U.html===!0&&(r(p,ct),r(T,ut)),U.svg===!0&&(r(p,Ie),r(T,we),r(T,ce)),U.svgFilters===!0&&(r(p,Me),r(T,we),r(T,ce)),U.mathMl===!0&&(r(p,Ce),r(T,mt),r(T,ce))),e.ADD_TAGS&&(p===Fe&&(p=C(p)),r(p,e.ADD_TAGS,d)),e.ADD_ATTR&&(T===He&&(T=C(T)),r(T,e.ADD_ATTR,d)),e.ADD_URI_SAFE_ATTR&&r(Se,e.ADD_URI_SAFE_ATTR,d),e.FORBID_CONTENTS&&(F===Xe&&(F=C(F)),r(F,e.FORBID_CONTENTS,d)),Ae&&(p["#text"]=!0),w&&r(p,["html","head","body"]),p.table&&(r(p,["tbody"]),delete X.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw K('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw K('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');g=e.TRUSTED_TYPES_POLICY,Y=g.createHTML("")}else g===void 0&&(g=fn(Q,c)),g!==null&&typeof Y=="string"&&(Y=g.createHTML(""));S&&S(e),z=e}},Ke=r({},[...Ie,...Me,...Jt]),Ze=r({},[...Ce,...Qt]),Gt=function(e){let t=ee(e);(!t||!t.tagName)&&(t={namespaceURI:H,tagName:"template"});let n=fe(e.tagName),f=fe(t.tagName);return Oe[e.namespaceURI]?e.namespaceURI===ae?t.namespaceURI===N?n==="svg":t.namespaceURI===ie?n==="svg"&&(f==="annotation-xml"||re[f]):!!Ke[n]:e.namespaceURI===ie?t.namespaceURI===N?n==="math":t.namespaceURI===ae?n==="math"&&se[f]:!!Ze[n]:e.namespaceURI===N?t.namespaceURI===ae&&!se[f]||t.namespaceURI===ie&&!re[f]?!1:!Ze[n]&&(Ut[n]||!Ke[n]):!!(V==="application/xhtml+xml"&&Oe[e.namespaceURI]):!1},D=function(e){$(o.removed,{element:e});try{ee(e).removeChild(e)}catch{yt(e)}},x=function(e,t){try{$(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch{$(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is")if(k||ne)try{D(t)}catch{}else try{t.setAttribute(e,"")}catch{}},Je=function(e){let t=null,n=null;if(he)e="<remove></remove>"+e;else{let m=Ne(e,/^[\r\n\t ]+/);n=m&&m[0]}V==="application/xhtml+xml"&&H===N&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let f=g?g.createHTML(e):e;if(H===N)try{t=new Rt().parseFromString(f,V)}catch{}if(!t||!t.documentElement){t=me.createDocument(H,"template",null);try{t.documentElement.innerHTML=Re?Y:f}catch{}}let _=t.body||t.documentElement;return e&&n&&_.insertBefore(l.createTextNode(n),_.childNodes[0]||null),H===N?It.call(t,w?"html":"body")[0]:w?t.documentElement:_},Qe=function(e){return Dt.call(e.ownerDocument||e,e,W.SHOW_ELEMENT|W.SHOW_COMMENT|W.SHOW_TEXT|W.SHOW_PROCESSING_INSTRUCTION|W.SHOW_CDATA_SECTION,null)},Le=function(e){return e instanceof St&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof At)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},et=function(e){return typeof ue=="function"&&e instanceof ue};function I(i,e,t){le(i,n=>{n.call(o,e,t,z)})}let tt=function(e){let t=null;if(I(h.beforeSanitizeElements,e,null),Le(e))return D(e),!0;let n=d(e.nodeName);if(I(h.uponSanitizeElement,e,{tagName:n,allowedTags:p}),te&&e.hasChildNodes()&&!et(e.firstElementChild)&&A(/<[/\w!]/g,e.innerHTML)&&A(/<[/\w!]/g,e.textContent)||e.nodeType===J.progressingInstruction||te&&e.nodeType===J.comment&&A(/<[/\w]/g,e.data))return D(e),!0;if(!p[n]||X[n]){if(!X[n]&&ot(n)&&(u.tagNameCheck instanceof RegExp&&A(u.tagNameCheck,n)||u.tagNameCheck instanceof Function&&u.tagNameCheck(n)))return!1;if(Ae&&!F[n]){let f=ee(e)||e.parentNode,_=bt(e)||e.childNodes;if(_&&f){let m=_.length;for(let y=m-1;y>=0;--y){let M=Ot(_[y],!0);M.__removalCount=(e.__removalCount||0)+1,f.insertBefore(M,Lt(e))}}}return D(e),!0}return e instanceof ve&&!Gt(e)||(n==="noscript"||n==="noembed"||n==="noframes")&&A(/<\/no(script|embed|frames)/i,e.innerHTML)?(D(e),!0):(v&&e.nodeType===J.text&&(t=e.textContent,le([pe,de,Te],f=>{t=q(t,f," ")}),e.textContent!==t&&($(o.removed,{element:e.cloneNode()}),e.textContent=t)),I(h.afterSanitizeElements,e,null),!1)},nt=function(e,t,n){if(Be&&(t==="id"||t==="name")&&(n in l||n in zt))return!1;if(!(_e&&!Ee[t]&&A(Ct,t))){if(!(ze&&A(wt,t))){if(!T[t]||Ee[t]){if(!(ot(e)&&(u.tagNameCheck instanceof RegExp&&A(u.tagNameCheck,e)||u.tagNameCheck instanceof Function&&u.tagNameCheck(e))&&(u.attributeNameCheck instanceof RegExp&&A(u.attributeNameCheck,t)||u.attributeNameCheck instanceof Function&&u.attributeNameCheck(t,e))||t==="is"&&u.allowCustomizedBuiltInElements&&(u.tagNameCheck instanceof RegExp&&A(u.tagNameCheck,n)||u.tagNameCheck instanceof Function&&u.tagNameCheck(n))))return!1}else if(!Se[t]){if(!A(Ue,q(n,ke,""))){if(!((t==="src"||t==="xlink:href"||t==="href")&&e!=="script"&&$t(n,"data:")===0&&je[e])){if(!(Ge&&!A(xt,q(n,ke,"")))){if(n)return!1}}}}}}return!0},ot=function(e){return e!=="annotation-xml"&&Ne(e,Pt)},it=function(e){I(h.beforeSanitizeAttributes,e,null);let{attributes:t}=e;if(!t||Le(e))return;let n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:T,forceKeepAttr:void 0},f=t.length;for(;f--;){let _=t[f],{name:m,namespaceURI:y,value:M}=_,G=d(m),be=M,E=m==="value"?be:qt(be);if(n.attrName=G,n.attrValue=E,n.keepAttr=!0,n.forceKeepAttr=void 0,I(h.uponSanitizeAttribute,e,n),E=n.attrValue,Ye&&(G==="id"||G==="name")&&(x(m,e),E=vt+E),te&&A(/((--!?|])>)|<\/(style|title|textarea)/i,E)){x(m,e);continue}if(G==="attributename"&&Ne(E,"href")){x(m,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){x(m,e);continue}if(!We&&A(/\/>/i,E)){x(m,e);continue}v&&le([pe,de,Te],rt=>{E=q(E,rt," ")});let at=d(e.nodeName);if(!nt(at,G,E)){x(m,e);continue}if(g&&typeof Q=="object"&&typeof Q.getAttributeType=="function"&&!y)switch(Q.getAttributeType(at,G)){case"TrustedHTML":{E=g.createHTML(E);break}case"TrustedScriptURL":{E=g.createScriptURL(E);break}}if(E!==be)try{y?e.setAttributeNS(y,m,E):e.setAttribute(m,E),Le(e)?D(e):lt(o.removed)}catch{x(m,e)}}I(h.afterSanitizeAttributes,e,null)},Wt=function i(e){let t=null,n=Qe(e);for(I(h.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)I(h.uponSanitizeShadowNode,t,null),tt(t),it(t),t.content instanceof O&&i(t.content);I(h.afterSanitizeShadowDOM,e,null)};return o.sanitize=function(i){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=null,n=null,f=null,_=null;if(Re=!i,Re&&(i="<!-->"),typeof i!="string"&&!et(i))if(typeof i.toString=="function"){if(i=i.toString(),typeof i!="string")throw K("dirty is not a string, aborting")}else throw K("toString is not a function");if(!o.isSupported)return i;if(ge||ye(e),o.removed=[],typeof i=="string"&&(j=!1),j){if(i.nodeName){let M=d(i.nodeName);if(!p[M]||X[M])throw K("root node is forbidden and cannot be sanitized in-place")}}else if(i instanceof ue)t=Je("<!---->"),n=t.ownerDocument.importNode(i,!0),n.nodeType===J.element&&n.nodeName==="BODY"||n.nodeName==="HTML"?t=n:t.appendChild(n);else{if(!k&&!v&&!w&&i.indexOf("<")===-1)return g&&oe?g.createHTML(i):i;if(t=Je(i),!t)return k?null:oe?Y:""}t&&he&&D(t.firstChild);let m=Qe(j?i:t);for(;f=m.nextNode();)tt(f),it(f),f.content instanceof O&&Wt(f.content);if(j)return i;if(k){if(ne)for(_=Nt.call(t.ownerDocument);t.firstChild;)_.appendChild(t.firstChild);else _=t;return(T.shadowroot||T.shadowrootmode)&&(_=Mt.call(a,_,!0)),_}let y=w?t.outerHTML:t.innerHTML;return w&&p["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&A(gt,t.ownerDocument.doctype.name)&&(y="<!DOCTYPE "+t.ownerDocument.doctype.name+`>
|
3
|
+
v1.1.0-next.20250919 */
|
4
|
+
import"./FXUBY7ZI.js";var{entries:Tt,setPrototypeOf:st,isFrozen:Bt,getPrototypeOf:Yt,getOwnPropertyDescriptor:Xt}=Object,{freeze:S,seal:L,create:Et}=Object,{apply:xe,construct:Pe}=typeof Reflect<"u"&&Reflect;S||(S=function(o){return o});L||(L=function(o){return o});xe||(xe=function(o,l){for(var a=arguments.length,c=new Array(a>2?a-2:0),O=2;O<a;O++)c[O-2]=arguments[O];return o.apply(l,c)});Pe||(Pe=function(o){for(var l=arguments.length,a=new Array(l>1?l-1:0),c=1;c<l;c++)a[c-1]=arguments[c];return new o(...a)});var le=R(Array.prototype.forEach),jt=R(Array.prototype.lastIndexOf),lt=R(Array.prototype.pop),$=R(Array.prototype.push),Vt=R(Array.prototype.splice),fe=R(String.prototype.toLowerCase),De=R(String.prototype.toString),Ne=R(String.prototype.match),q=R(String.prototype.replace),$t=R(String.prototype.indexOf),qt=R(String.prototype.trim),b=R(Object.prototype.hasOwnProperty),A=R(RegExp.prototype.test),K=Kt(TypeError);function R(s){return function(o){o instanceof RegExp&&(o.lastIndex=0);for(var l=arguments.length,a=new Array(l>1?l-1:0),c=1;c<l;c++)a[c-1]=arguments[c];return xe(s,o,a)}}function Kt(s){return function(){for(var o=arguments.length,l=new Array(o),a=0;a<o;a++)l[a]=arguments[a];return Pe(s,l)}}function r(s,o){let l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:fe;st&&st(s,null);let a=o.length;for(;a--;){let c=o[a];if(typeof c=="string"){let O=l(c);O!==c&&(Bt(o)||(o[a]=O),c=O)}s[c]=!0}return s}function Zt(s){for(let o=0;o<s.length;o++)b(s,o)||(s[o]=null);return s}function C(s){let o=Et(null);for(let[l,a]of Tt(s))b(s,l)&&(Array.isArray(a)?o[l]=Zt(a):a&&typeof a=="object"&&a.constructor===Object?o[l]=C(a):o[l]=a);return o}function Z(s,o){for(;s!==null;){let a=Xt(s,o);if(a){if(a.get)return R(a.get);if(typeof a.value=="function")return R(a.value)}s=Yt(s)}function l(){return null}return l}var ct=S(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Ie=S(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","slot","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Me=S(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),Jt=S(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Ce=S(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Qt=S(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ft=S(["#text"]),ut=S(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),we=S(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),mt=S(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ce=S(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),en=L(/\{\{[\w\W]*|[\w\W]*\}\}/gm),tn=L(/<%[\w\W]*|[\w\W]*%>/gm),nn=L(/\$\{[\w\W]*/gm),on=L(/^data-[\-\w.\u00B7-\uFFFF]+$/),an=L(/^aria-[\-\w]+$/),_t=L(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),rn=L(/^(?:\w+script|data):/i),sn=L(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),gt=L(/^html$/i),ln=L(/^[a-z][.\w]*(-[.\w]+)+$/i),pt=Object.freeze({__proto__:null,ARIA_ATTR:an,ATTR_WHITESPACE:sn,CUSTOM_ELEMENT:ln,DATA_ATTR:on,DOCTYPE_NAME:gt,ERB_EXPR:tn,IS_ALLOWED_URI:_t,IS_SCRIPT_OR_DATA:rn,MUSTACHE_EXPR:en,TMPLIT_EXPR:nn}),J={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},cn=function(){return typeof window>"u"?null:window},fn=function(o,l){if(typeof o!="object"||typeof o.createPolicy!="function")return null;let a=null,c="data-tt-policy-suffix";l&&l.hasAttribute(c)&&(a=l.getAttribute(c));let O="dompurify"+(a?"#"+a:"");try{return o.createPolicy(O,{createHTML(P){return P},createScriptURL(P){return P}})}catch{return console.warn("TrustedTypes policy "+O+" could not be created."),null}},dt=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function ht(){let s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:cn(),o=i=>ht(i);if(o.version="3.2.7",o.removed=[],!s||!s.document||s.document.nodeType!==J.document||!s.Element)return o.isSupported=!1,o;let{document:l}=s,a=l,c=a.currentScript,{DocumentFragment:O,HTMLTemplateElement:P,Node:ue,Element:ve,NodeFilter:W,NamedNodeMap:At=s.NamedNodeMap||s.MozNamedAttrMap,HTMLFormElement:St,DOMParser:Rt,trustedTypes:Q}=s,B=ve.prototype,Ot=Z(B,"cloneNode"),yt=Z(B,"remove"),Lt=Z(B,"nextSibling"),bt=Z(B,"childNodes"),ee=Z(B,"parentNode");if(typeof P=="function"){let i=l.createElement("template");i.content&&i.content.ownerDocument&&(l=i.content.ownerDocument)}let g,Y="",{implementation:me,createNodeIterator:Dt,createDocumentFragment:Nt,getElementsByTagName:It}=l,{importNode:Mt}=a,h=dt();o.isSupported=typeof Tt=="function"&&typeof ee=="function"&&me&&me.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:pe,ERB_EXPR:de,TMPLIT_EXPR:Te,DATA_ATTR:Ct,ARIA_ATTR:wt,IS_SCRIPT_OR_DATA:xt,ATTR_WHITESPACE:ke,CUSTOM_ELEMENT:Pt}=pt,{IS_ALLOWED_URI:Ue}=pt,p=null,Fe=r({},[...ct,...Ie,...Me,...Ce,...ft]),T=null,He=r({},[...ut,...we,...mt,...ce]),u=Object.seal(Et(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),X=null,Ee=null,ze=!0,_e=!0,Ge=!1,We=!0,v=!1,te=!0,w=!1,ge=!1,he=!1,k=!1,ne=!1,oe=!1,Be=!0,Ye=!1,vt="user-content-",Ae=!0,j=!1,U={},F=null,Xe=r({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),je=null,Ve=r({},["audio","video","img","source","image","track"]),Se=null,$e=r({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ie="http://www.w3.org/1998/Math/MathML",ae="http://www.w3.org/2000/svg",N="http://www.w3.org/1999/xhtml",H=N,Re=!1,Oe=null,kt=r({},[ie,ae,N],De),re=r({},["mi","mo","mn","ms","mtext"]),se=r({},["annotation-xml"]),Ut=r({},["title","style","font","a","script"]),V=null,Ft=["application/xhtml+xml","text/html"],Ht="text/html",d=null,z=null,zt=l.createElement("form"),qe=function(e){return e instanceof RegExp||e instanceof Function},ye=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(z&&z===e)){if((!e||typeof e!="object")&&(e={}),e=C(e),V=Ft.indexOf(e.PARSER_MEDIA_TYPE)===-1?Ht:e.PARSER_MEDIA_TYPE,d=V==="application/xhtml+xml"?De:fe,p=b(e,"ALLOWED_TAGS")?r({},e.ALLOWED_TAGS,d):Fe,T=b(e,"ALLOWED_ATTR")?r({},e.ALLOWED_ATTR,d):He,Oe=b(e,"ALLOWED_NAMESPACES")?r({},e.ALLOWED_NAMESPACES,De):kt,Se=b(e,"ADD_URI_SAFE_ATTR")?r(C($e),e.ADD_URI_SAFE_ATTR,d):$e,je=b(e,"ADD_DATA_URI_TAGS")?r(C(Ve),e.ADD_DATA_URI_TAGS,d):Ve,F=b(e,"FORBID_CONTENTS")?r({},e.FORBID_CONTENTS,d):Xe,X=b(e,"FORBID_TAGS")?r({},e.FORBID_TAGS,d):C({}),Ee=b(e,"FORBID_ATTR")?r({},e.FORBID_ATTR,d):C({}),U=b(e,"USE_PROFILES")?e.USE_PROFILES:!1,ze=e.ALLOW_ARIA_ATTR!==!1,_e=e.ALLOW_DATA_ATTR!==!1,Ge=e.ALLOW_UNKNOWN_PROTOCOLS||!1,We=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,v=e.SAFE_FOR_TEMPLATES||!1,te=e.SAFE_FOR_XML!==!1,w=e.WHOLE_DOCUMENT||!1,k=e.RETURN_DOM||!1,ne=e.RETURN_DOM_FRAGMENT||!1,oe=e.RETURN_TRUSTED_TYPE||!1,he=e.FORCE_BODY||!1,Be=e.SANITIZE_DOM!==!1,Ye=e.SANITIZE_NAMED_PROPS||!1,Ae=e.KEEP_CONTENT!==!1,j=e.IN_PLACE||!1,Ue=e.ALLOWED_URI_REGEXP||_t,H=e.NAMESPACE||N,re=e.MATHML_TEXT_INTEGRATION_POINTS||re,se=e.HTML_INTEGRATION_POINTS||se,u=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&qe(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(u.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&qe(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(u.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(u.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),v&&(_e=!1),ne&&(k=!0),U&&(p=r({},ft),T=[],U.html===!0&&(r(p,ct),r(T,ut)),U.svg===!0&&(r(p,Ie),r(T,we),r(T,ce)),U.svgFilters===!0&&(r(p,Me),r(T,we),r(T,ce)),U.mathMl===!0&&(r(p,Ce),r(T,mt),r(T,ce))),e.ADD_TAGS&&(p===Fe&&(p=C(p)),r(p,e.ADD_TAGS,d)),e.ADD_ATTR&&(T===He&&(T=C(T)),r(T,e.ADD_ATTR,d)),e.ADD_URI_SAFE_ATTR&&r(Se,e.ADD_URI_SAFE_ATTR,d),e.FORBID_CONTENTS&&(F===Xe&&(F=C(F)),r(F,e.FORBID_CONTENTS,d)),Ae&&(p["#text"]=!0),w&&r(p,["html","head","body"]),p.table&&(r(p,["tbody"]),delete X.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!="function")throw K('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw K('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');g=e.TRUSTED_TYPES_POLICY,Y=g.createHTML("")}else g===void 0&&(g=fn(Q,c)),g!==null&&typeof Y=="string"&&(Y=g.createHTML(""));S&&S(e),z=e}},Ke=r({},[...Ie,...Me,...Jt]),Ze=r({},[...Ce,...Qt]),Gt=function(e){let t=ee(e);(!t||!t.tagName)&&(t={namespaceURI:H,tagName:"template"});let n=fe(e.tagName),f=fe(t.tagName);return Oe[e.namespaceURI]?e.namespaceURI===ae?t.namespaceURI===N?n==="svg":t.namespaceURI===ie?n==="svg"&&(f==="annotation-xml"||re[f]):!!Ke[n]:e.namespaceURI===ie?t.namespaceURI===N?n==="math":t.namespaceURI===ae?n==="math"&&se[f]:!!Ze[n]:e.namespaceURI===N?t.namespaceURI===ae&&!se[f]||t.namespaceURI===ie&&!re[f]?!1:!Ze[n]&&(Ut[n]||!Ke[n]):!!(V==="application/xhtml+xml"&&Oe[e.namespaceURI]):!1},D=function(e){$(o.removed,{element:e});try{ee(e).removeChild(e)}catch{yt(e)}},x=function(e,t){try{$(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch{$(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),e==="is")if(k||ne)try{D(t)}catch{}else try{t.setAttribute(e,"")}catch{}},Je=function(e){let t=null,n=null;if(he)e="<remove></remove>"+e;else{let m=Ne(e,/^[\r\n\t ]+/);n=m&&m[0]}V==="application/xhtml+xml"&&H===N&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let f=g?g.createHTML(e):e;if(H===N)try{t=new Rt().parseFromString(f,V)}catch{}if(!t||!t.documentElement){t=me.createDocument(H,"template",null);try{t.documentElement.innerHTML=Re?Y:f}catch{}}let _=t.body||t.documentElement;return e&&n&&_.insertBefore(l.createTextNode(n),_.childNodes[0]||null),H===N?It.call(t,w?"html":"body")[0]:w?t.documentElement:_},Qe=function(e){return Dt.call(e.ownerDocument||e,e,W.SHOW_ELEMENT|W.SHOW_COMMENT|W.SHOW_TEXT|W.SHOW_PROCESSING_INSTRUCTION|W.SHOW_CDATA_SECTION,null)},Le=function(e){return e instanceof St&&(typeof e.nodeName!="string"||typeof e.textContent!="string"||typeof e.removeChild!="function"||!(e.attributes instanceof At)||typeof e.removeAttribute!="function"||typeof e.setAttribute!="function"||typeof e.namespaceURI!="string"||typeof e.insertBefore!="function"||typeof e.hasChildNodes!="function")},et=function(e){return typeof ue=="function"&&e instanceof ue};function I(i,e,t){le(i,n=>{n.call(o,e,t,z)})}let tt=function(e){let t=null;if(I(h.beforeSanitizeElements,e,null),Le(e))return D(e),!0;let n=d(e.nodeName);if(I(h.uponSanitizeElement,e,{tagName:n,allowedTags:p}),te&&e.hasChildNodes()&&!et(e.firstElementChild)&&A(/<[/\w!]/g,e.innerHTML)&&A(/<[/\w!]/g,e.textContent)||e.nodeType===J.progressingInstruction||te&&e.nodeType===J.comment&&A(/<[/\w]/g,e.data))return D(e),!0;if(!p[n]||X[n]){if(!X[n]&&ot(n)&&(u.tagNameCheck instanceof RegExp&&A(u.tagNameCheck,n)||u.tagNameCheck instanceof Function&&u.tagNameCheck(n)))return!1;if(Ae&&!F[n]){let f=ee(e)||e.parentNode,_=bt(e)||e.childNodes;if(_&&f){let m=_.length;for(let y=m-1;y>=0;--y){let M=Ot(_[y],!0);M.__removalCount=(e.__removalCount||0)+1,f.insertBefore(M,Lt(e))}}}return D(e),!0}return e instanceof ve&&!Gt(e)||(n==="noscript"||n==="noembed"||n==="noframes")&&A(/<\/no(script|embed|frames)/i,e.innerHTML)?(D(e),!0):(v&&e.nodeType===J.text&&(t=e.textContent,le([pe,de,Te],f=>{t=q(t,f," ")}),e.textContent!==t&&($(o.removed,{element:e.cloneNode()}),e.textContent=t)),I(h.afterSanitizeElements,e,null),!1)},nt=function(e,t,n){if(Be&&(t==="id"||t==="name")&&(n in l||n in zt))return!1;if(!(_e&&!Ee[t]&&A(Ct,t))){if(!(ze&&A(wt,t))){if(!T[t]||Ee[t]){if(!(ot(e)&&(u.tagNameCheck instanceof RegExp&&A(u.tagNameCheck,e)||u.tagNameCheck instanceof Function&&u.tagNameCheck(e))&&(u.attributeNameCheck instanceof RegExp&&A(u.attributeNameCheck,t)||u.attributeNameCheck instanceof Function&&u.attributeNameCheck(t,e))||t==="is"&&u.allowCustomizedBuiltInElements&&(u.tagNameCheck instanceof RegExp&&A(u.tagNameCheck,n)||u.tagNameCheck instanceof Function&&u.tagNameCheck(n))))return!1}else if(!Se[t]){if(!A(Ue,q(n,ke,""))){if(!((t==="src"||t==="xlink:href"||t==="href")&&e!=="script"&&$t(n,"data:")===0&&je[e])){if(!(Ge&&!A(xt,q(n,ke,"")))){if(n)return!1}}}}}}return!0},ot=function(e){return e!=="annotation-xml"&&Ne(e,Pt)},it=function(e){I(h.beforeSanitizeAttributes,e,null);let{attributes:t}=e;if(!t||Le(e))return;let n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:T,forceKeepAttr:void 0},f=t.length;for(;f--;){let _=t[f],{name:m,namespaceURI:y,value:M}=_,G=d(m),be=M,E=m==="value"?be:qt(be);if(n.attrName=G,n.attrValue=E,n.keepAttr=!0,n.forceKeepAttr=void 0,I(h.uponSanitizeAttribute,e,n),E=n.attrValue,Ye&&(G==="id"||G==="name")&&(x(m,e),E=vt+E),te&&A(/((--!?|])>)|<\/(style|title|textarea)/i,E)){x(m,e);continue}if(G==="attributename"&&Ne(E,"href")){x(m,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){x(m,e);continue}if(!We&&A(/\/>/i,E)){x(m,e);continue}v&&le([pe,de,Te],rt=>{E=q(E,rt," ")});let at=d(e.nodeName);if(!nt(at,G,E)){x(m,e);continue}if(g&&typeof Q=="object"&&typeof Q.getAttributeType=="function"&&!y)switch(Q.getAttributeType(at,G)){case"TrustedHTML":{E=g.createHTML(E);break}case"TrustedScriptURL":{E=g.createScriptURL(E);break}}if(E!==be)try{y?e.setAttributeNS(y,m,E):e.setAttribute(m,E),Le(e)?D(e):lt(o.removed)}catch{x(m,e)}}I(h.afterSanitizeAttributes,e,null)},Wt=function i(e){let t=null,n=Qe(e);for(I(h.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)I(h.uponSanitizeShadowNode,t,null),tt(t),it(t),t.content instanceof O&&i(t.content);I(h.afterSanitizeShadowDOM,e,null)};return o.sanitize=function(i){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=null,n=null,f=null,_=null;if(Re=!i,Re&&(i="<!-->"),typeof i!="string"&&!et(i))if(typeof i.toString=="function"){if(i=i.toString(),typeof i!="string")throw K("dirty is not a string, aborting")}else throw K("toString is not a function");if(!o.isSupported)return i;if(ge||ye(e),o.removed=[],typeof i=="string"&&(j=!1),j){if(i.nodeName){let M=d(i.nodeName);if(!p[M]||X[M])throw K("root node is forbidden and cannot be sanitized in-place")}}else if(i instanceof ue)t=Je("<!---->"),n=t.ownerDocument.importNode(i,!0),n.nodeType===J.element&&n.nodeName==="BODY"||n.nodeName==="HTML"?t=n:t.appendChild(n);else{if(!k&&!v&&!w&&i.indexOf("<")===-1)return g&&oe?g.createHTML(i):i;if(t=Je(i),!t)return k?null:oe?Y:""}t&&he&&D(t.firstChild);let m=Qe(j?i:t);for(;f=m.nextNode();)tt(f),it(f),f.content instanceof O&&Wt(f.content);if(j)return i;if(k){if(ne)for(_=Nt.call(t.ownerDocument);t.firstChild;)_.appendChild(t.firstChild);else _=t;return(T.shadowroot||T.shadowrootmode)&&(_=Mt.call(a,_,!0)),_}let y=w?t.outerHTML:t.innerHTML;return w&&p["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&A(gt,t.ownerDocument.doctype.name)&&(y="<!DOCTYPE "+t.ownerDocument.doctype.name+`>
|
5
5
|
`+y),v&&le([pe,de,Te],M=>{y=q(y,M," ")}),g&&oe?g.createHTML(y):y},o.setConfig=function(){let i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ye(i),ge=!0},o.clearConfig=function(){z=null,ge=!1},o.isValidAttribute=function(i,e,t){z||ye({});let n=d(i),f=d(e);return nt(n,f,t)},o.addHook=function(i,e){typeof e=="function"&&$(h[i],e)},o.removeHook=function(i,e){if(e!==void 0){let t=jt(h[i],e);return t===-1?void 0:Vt(h[i],t,1)[0]}return lt(h[i])},o.removeHooks=function(i){h[i]=[]},o.removeAllHooks=function(){h=dt()},o}var un=ht();export{un as default};
|