@esri/solutions-components 1.1.0-next.20250917.1 → 1.1.0-next.20250917.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/{BYKHJKXV.js → 2B5CG2GD.js} +2 -2
- package/dist/cdn/{FYY3S3Z5.js → 2EA73XDR.js} +2 -2
- package/dist/cdn/{LHUGR2M5.js → 2QHVM3G6.js} +2 -2
- package/dist/cdn/{EHWB6OZE.js → 2QVYKDOY.js} +2 -2
- package/dist/cdn/{OGCCPNWE.js → 2VSRLXUY.js} +2 -2
- package/dist/cdn/{MLTILQN4.js → 2Z6NX74R.js} +2 -2
- package/dist/cdn/{54Q55Y2U.js → 364JWRQF.js} +1 -1
- package/dist/cdn/3LQXDEB2.js +18 -0
- package/dist/cdn/{QC7NZJ3S.js → 3MM3SVPX.js} +2 -2
- package/dist/cdn/{VL4YBUCG.js → 3N7UFINZ.js} +2 -2
- package/dist/cdn/{UK2A3ONQ.js → 3PQ6EUV4.js} +2 -2
- package/dist/cdn/{YOELOUHA.js → 3PW5DARS.js} +2 -2
- package/dist/cdn/{5C5B4QKH.js → 3QEWJZIQ.js} +2 -2
- package/dist/cdn/{7RMVNXMR.js → 3RGRK6P3.js} +2 -2
- package/dist/cdn/{AETEXDRE.js → 3RUQ23S5.js} +2 -2
- package/dist/cdn/{O5C3YLJE.js → 3TER7WEM.js} +2 -2
- package/dist/cdn/{3RJOS4SB.js → 3UEA2SYR.js} +2 -2
- package/dist/cdn/{MB6SBDLQ.js → 3WHGO3ZA.js} +2 -2
- package/dist/cdn/{CWBGX5QX.js → 3ZYMEGLW.js} +2 -2
- package/dist/cdn/{PU5PZCL4.js → 47KB6BYP.js} +2 -2
- package/dist/cdn/{SKXF2EYJ.js → 4BEHIGCI.js} +2 -2
- package/dist/cdn/{U42WTSOS.js → 4FHKDLPJ.js} +2 -2
- package/dist/cdn/{G7COFGFO.js → 4FQ37C6P.js} +2 -2
- package/dist/cdn/{VZU32GLR.js → 4G5LWBKJ.js} +2 -2
- package/dist/cdn/{2SIN3G2L.js → 4HTYWSQQ.js} +2 -2
- package/dist/cdn/{EFAUQO4F.js → 4KG7VSZG.js} +2 -2
- package/dist/cdn/{ZBI4IGN5.js → 4KOZTOAL.js} +2 -2
- package/dist/cdn/{442YTJO3.js → 4NAXIMZF.js} +1 -1
- package/dist/cdn/{S2Y4WEKE.js → 4UYVA735.js} +2 -2
- package/dist/cdn/{SIN56QR7.js → 4VANEFYM.js} +2 -2
- package/dist/cdn/{RIIZ7QQZ.js → 4WDBDOQO.js} +2 -2
- package/dist/cdn/{F4QOXYGH.js → 4ZOYEYVR.js} +2 -2
- package/dist/cdn/{FFK53NKE.js → 56ND6ZYU.js} +2 -2
- package/dist/cdn/{FG24QZWE.js → 5A7D3CA7.js} +2 -2
- package/dist/cdn/{ZSRLOM3Q.js → 5BNR6F5K.js} +1 -1
- package/dist/cdn/{BXXJOB4H.js → 5DHHLHGR.js} +1 -1
- package/dist/cdn/{OHUDAWEX.js → 5JHMWKAW.js} +2 -2
- package/dist/cdn/{X5KH75KH.js → 5MHB3R3D.js} +2 -2
- package/dist/cdn/{QWOKTIQO.js → 5NJOBWLB.js} +2 -2
- package/dist/cdn/{H7PCNI2B.js → 5XMWJOTF.js} +1 -1
- package/dist/cdn/{ZOCHMKIS.js → 5Y7WXVHS.js} +1 -1
- package/dist/cdn/{POH5W7N2.js → 644I76PJ.js} +2 -2
- package/dist/cdn/{CXA2GZLV.js → 6CI4ALIL.js} +2 -2
- package/dist/cdn/{TFOR5IN2.js → 6EZSKLB2.js} +2 -2
- package/dist/cdn/{UPCU2YNO.js → 6HYMAUUI.js} +2 -2
- package/dist/cdn/{77ZJA5MA.js → 6K5TTZTE.js} +2 -2
- package/dist/cdn/{QTWUBF6E.js → 6OSBEOJF.js} +2 -2
- package/dist/cdn/{LEAZKVUV.js → 6SIXYVLD.js} +2 -2
- package/dist/cdn/{E2OUIXA6.js → 6TEMQ7YL.js} +2 -2
- package/dist/cdn/6TLZ3BWO.js +4 -0
- package/dist/cdn/{KW323Y7Z.js → 6TWXYM4J.js} +2 -2
- package/dist/cdn/{NBDKGDQ3.js → 6UL2R6AK.js} +2 -2
- package/dist/cdn/{AV6ZHPKI.js → 6WGSMUQ7.js} +1 -1
- package/dist/cdn/{6GRO6IWG.js → 6XI3ZWVO.js} +2 -2
- package/dist/cdn/{Q7Z5NYII.js → 73DD3JCD.js} +2 -2
- package/dist/cdn/{33TP7LEP.js → 77DPBKCQ.js} +2 -2
- package/dist/cdn/{LJE5RVH3.js → 7BMLAK67.js} +2 -2
- package/dist/cdn/{7BTE7YBI.js → 7EAHMYUF.js} +2 -2
- package/dist/cdn/{KF2ZU65S.js → 7I3P7TY2.js} +2 -2
- package/dist/cdn/{KSDERO45.js → 7K2TNI3E.js} +2 -2
- package/dist/cdn/{LQYMUUF3.js → 7KAD4UDG.js} +2 -2
- package/dist/cdn/{LJH64QDF.js → 7M5E3WSJ.js} +2 -2
- package/dist/cdn/{6R5GRVZ2.js → 7PBGZACY.js} +2 -2
- package/dist/cdn/{4YMGDWGC.js → 7WZG5VVX.js} +2 -2
- package/dist/cdn/{DMHRAMQR.js → A2MIDTEE.js} +2 -2
- package/dist/cdn/{ATIGVK4O.js → A3YNNKL2.js} +2 -2
- package/dist/cdn/{SAANCWI3.js → A7GJMBGB.js} +2 -2
- package/dist/cdn/{V6KV2EKM.js → ABKCL6AL.js} +2 -2
- package/dist/cdn/{EX3YIW6I.js → ASS23JJR.js} +2 -2
- package/dist/cdn/{OMJEC7PI.js → B2VUGJOL.js} +1 -1
- package/dist/cdn/{ETXJCKXM.js → BIBUPVTN.js} +2 -2
- package/dist/cdn/{LK7J2IL4.js → BNAWO3YV.js} +2 -2
- package/dist/cdn/BPFOLUSE.js +4 -0
- package/dist/cdn/{PL5JEDPA.js → BRNR7JPO.js} +2 -2
- package/dist/cdn/{LOUWTCCR.js → BWM233Y2.js} +2 -2
- package/dist/cdn/{UACNTGZ7.js → C3EO7W5Z.js} +2 -2
- package/dist/cdn/{57LAOXA6.js → CD7W6EWW.js} +2 -2
- package/dist/cdn/{RZDRPSVM.js → CIWVFWA4.js} +2 -2
- package/dist/cdn/{XWLRY4IU.js → CLPOEIEB.js} +2 -2
- package/dist/cdn/{WBOFE34I.js → CMNI7HPB.js} +2 -2
- package/dist/cdn/{OEI42XVX.js → CNTZINRU.js} +2 -2
- package/dist/cdn/{2I2YENHT.js → CRW7KHCH.js} +2 -2
- package/dist/cdn/{2TCRQXKW.js → CS3ELQBP.js} +2 -2
- package/dist/cdn/{Z6JQQJT2.js → CTRA7MHN.js} +2 -2
- package/dist/cdn/{QUOUTJQ3.js → CVDVS2RY.js} +2 -2
- package/dist/cdn/{ZN5AXSHK.js → CWYLLJLY.js} +2 -2
- package/dist/cdn/{DTO23XEP.js → D4YO2FEB.js} +2 -2
- package/dist/cdn/{NJIUK7EX.js → DBJLRGJJ.js} +2 -2
- package/dist/cdn/{4B26SMKT.js → DCQ5JJZJ.js} +2 -2
- package/dist/cdn/DSZPIEVW.js +4 -0
- package/dist/cdn/{DM4LW6Q4.js → DUG5IBHI.js} +2 -2
- package/dist/cdn/{EWVUFFYM.js → DZSLREXG.js} +2 -2
- package/dist/cdn/{EQN33NBW.js → E27L3DFH.js} +2 -2
- package/dist/cdn/{BEWLFFYT.js → E6V536IL.js} +2 -2
- package/dist/cdn/{H7A7RVWX.js → E7PKMOWQ.js} +2 -2
- package/dist/cdn/{2SSFOKDJ.js → ECTFRVKR.js} +2 -2
- package/dist/cdn/{MSQ4QY3M.js → EEC2Q3EB.js} +2 -2
- package/dist/cdn/{PFJJL3K3.js → EHB34ID2.js} +1 -1
- package/dist/cdn/{2SHTW2ZI.js → ELWGKPRP.js} +2 -2
- package/dist/cdn/{Q5GYBZ6S.js → EPMWOCNQ.js} +2 -2
- package/dist/cdn/{PBZRZP7G.js → ERSWMNMV.js} +1 -1
- package/dist/cdn/{Q6WUDFS6.js → EVAI3Q2L.js} +2 -2
- package/dist/cdn/{PEXKY6QE.js → EVECCODA.js} +1 -1
- package/dist/cdn/{D6YOAMN6.js → F2N342KC.js} +2 -2
- package/dist/cdn/{CLNHIIST.js → F7WG54DG.js} +2 -2
- package/dist/cdn/{6H4R6H26.js → FB46LTBK.js} +2 -2
- package/dist/cdn/{YFRFTNM4.js → FEILRWIA.js} +2 -2
- package/dist/cdn/{M3RQ6YB2.js → FFTR3U3E.js} +2 -2
- package/dist/cdn/{WB6EVTKB.js → FJHVSYVF.js} +2 -2
- package/dist/cdn/{U4JBG65X.js → FLL54BR7.js} +2 -2
- package/dist/cdn/{JV5TACGL.js → FLTWVQZV.js} +2 -2
- package/dist/cdn/{Z7BHSA4E.js → FO62AJU7.js} +2 -2
- package/dist/cdn/{EE6BRKTG.js → FQJZZBZS.js} +2 -2
- package/dist/cdn/{UBFQBYB3.js → FQK4E4GI.js} +2 -2
- package/dist/cdn/{6RNO7D3E.js → FQQNEBBN.js} +2 -2
- package/dist/cdn/{7KOGLZ6A.js → FR4VRKHF.js} +2 -2
- package/dist/cdn/{Q4KC5E7I.js → FUZVGEL7.js} +2 -2
- package/dist/cdn/{X7BVJ3FT.js → FV5IMMS5.js} +2 -2
- package/dist/cdn/{PKB6JNV7.js → G7BJA3UA.js} +2 -2
- package/dist/cdn/{YQTNI3UI.js → G7M6V4S3.js} +2 -2
- package/dist/cdn/{RGS23LVD.js → GA33CY3H.js} +2 -2
- package/dist/cdn/{HZ655FWN.js → GAOAQ2JQ.js} +2 -2
- package/dist/cdn/{2BHPIU3V.js → GBVNK6OA.js} +2 -2
- package/dist/cdn/{LHZ3XERP.js → GG3L4SLA.js} +2 -2
- package/dist/cdn/{E3IGEKXX.js → GGMEKIRZ.js} +2 -2
- package/dist/cdn/{MIRER6VJ.js → GH4WMKRH.js} +2 -2
- package/dist/cdn/GJXQQW4E.js +4 -0
- package/dist/cdn/{2KZEQYTV.js → GM4FBMYT.js} +1 -1
- package/dist/cdn/{254J2BPV.js → GNIFB7S5.js} +2 -2
- package/dist/cdn/{NNC5D3XW.js → GNKDENVD.js} +2 -2
- package/dist/cdn/{RSTLLF3I.js → GOX7VJIW.js} +2 -2
- package/dist/cdn/{5WTH4MKL.js → GUCMGX23.js} +2 -2
- package/dist/cdn/{KS6K3G5I.js → GVLKKIOI.js} +2 -2
- package/dist/cdn/{DX6YFVFJ.js → GVLZQUYW.js} +2 -2
- package/dist/cdn/{HJ7JZJMY.js → GVRSW7VY.js} +2 -2
- package/dist/cdn/{TYOYY3PQ.js → GX6ITGNV.js} +2 -2
- package/dist/cdn/GYDQY6XU.js +4 -0
- package/dist/cdn/{GX6IUGMJ.js → GZ5UYHJX.js} +2 -2
- package/dist/cdn/{FC7NSA73.js → HFJY5BRG.js} +2 -2
- package/dist/cdn/{CI2DTN6B.js → HK7CKWPF.js} +2 -2
- package/dist/cdn/{KOKAXSJ3.js → HS3MYU7P.js} +2 -2
- package/dist/cdn/{ZIGUL6LU.js → HU5FMHBP.js} +2 -2
- package/dist/cdn/HUFFP3HX.js +4 -0
- package/dist/cdn/{D2WEMOK5.js → HV7ZJUG4.js} +2 -2
- package/dist/cdn/{STCGIBGD.js → HYSCDQ3E.js} +2 -2
- package/dist/cdn/{DGTWF7ZS.js → I4IPULFF.js} +2 -2
- package/dist/cdn/{6ICUBXEZ.js → I5ADP6VE.js} +2 -2
- package/dist/cdn/{5S44Y56N.js → I7PLVVOZ.js} +2 -2
- package/dist/cdn/{7UP5RDKM.js → IC7ENO6V.js} +2 -2
- package/dist/cdn/{RYT2CJ6F.js → IE3HP3EO.js} +1 -1
- package/dist/cdn/{3DWQM643.js → INBSPLL4.js} +2 -2
- package/dist/cdn/{TD5NAM5H.js → IQB4H7PN.js} +2 -2
- package/dist/cdn/{63NOZPVZ.js → IQSZDJM4.js} +2 -2
- package/dist/cdn/{DZPVXGGI.js → IUZ6DIDP.js} +2 -2
- package/dist/cdn/{GNIUPKE6.js → JAUS7SF3.js} +2 -2
- package/dist/cdn/{UOHDOMRU.js → JAVKV3H2.js} +2 -2
- package/dist/cdn/{J7RBVELL.js → JCFME7P2.js} +2 -2
- package/dist/cdn/{5DJFJXBS.js → JDDACJ7C.js} +1 -1
- package/dist/cdn/{XKSN7OZN.js → JEG56LTH.js} +2 -2
- package/dist/cdn/{PRTIGOIB.js → JHKP4KD4.js} +4 -4
- package/dist/cdn/{UX2L75ED.js → JIAFVTZG.js} +2 -2
- package/dist/cdn/{V4YQJNMY.js → JKHTYESY.js} +2 -2
- package/dist/cdn/{YVQHAXE6.js → JKYYOJDP.js} +2 -2
- package/dist/cdn/{7DVQAKKA.js → JUG4HSUL.js} +1 -1
- package/dist/cdn/{RM6OJ6CC.js → JVT4AG2K.js} +2 -2
- package/dist/cdn/{NYQRE3PP.js → JWJ2B5P3.js} +2 -2
- package/dist/cdn/{U3D5OGPP.js → JWXJCQRW.js} +2 -2
- package/dist/cdn/{6ZGYZNIG.js → JXRTTEWP.js} +2 -2
- package/dist/cdn/{NXUG2Y4D.js → K2JT6JLT.js} +2 -2
- package/dist/cdn/{VA4HF6BT.js → K4WZH4AR.js} +2 -2
- package/dist/cdn/{EHO67FFU.js → KA5XTDOF.js} +1 -1
- package/dist/cdn/{YOTK7QJY.js → KEN6S3GR.js} +2 -2
- package/dist/cdn/{PVWKBRMD.js → KJ4JCHPZ.js} +2 -2
- package/dist/cdn/{DAHTXMBD.js → KJ4ZKCPD.js} +2 -2
- package/dist/cdn/{DHMOLLBL.js → KM2TMD56.js} +2 -2
- package/dist/cdn/{JB65YU3U.js → KMF7IHAP.js} +1 -1
- package/dist/cdn/{N3YIDTVI.js → KQF6ZJVA.js} +2 -2
- package/dist/cdn/{RYYQGQBV.js → KQGJICCT.js} +2 -2
- package/dist/cdn/{TP6Q7Q5F.js → KTMUT3IN.js} +2 -2
- package/dist/cdn/{6NI3ICUC.js → KUTCEKBO.js} +2 -2
- package/dist/cdn/{BL3TWZBW.js → KV6IJ7C5.js} +2 -2
- package/dist/cdn/{EPWJ5MH5.js → KVMIVMVI.js} +2 -2
- package/dist/cdn/{AKYRMP2F.js → KVMVCMLG.js} +1 -1
- package/dist/cdn/{5TISSUZK.js → KVPBNPPS.js} +1 -1
- package/dist/cdn/{AFKJO6CL.js → KVREUTJS.js} +2 -2
- package/dist/cdn/{RDLASZQL.js → KWZSQEVY.js} +2 -2
- package/dist/cdn/{D4NG2DKH.js → L2WRZ7RC.js} +2 -2
- package/dist/cdn/{3XYB36Q3.js → L4TFZRVM.js} +1 -1
- package/dist/cdn/{C5ODWBYI.js → L63PGZD5.js} +2 -2
- package/dist/cdn/{Z7HUXWT7.js → L7LYQVLL.js} +2 -2
- package/dist/cdn/{EE6ZBEFP.js → LARLSPAP.js} +2 -2
- package/dist/cdn/{2JOMSPJR.js → LJF6NBPP.js} +2 -2
- package/dist/cdn/{HYDLFNWZ.js → LMJYFTA4.js} +2 -2
- package/dist/cdn/{4YCVI3FS.js → LNYBWLFL.js} +2 -2
- package/dist/cdn/{DAMQCKMB.js → LOHRDCER.js} +2 -2
- package/dist/cdn/{7LI47G6Q.js → LWLRHORI.js} +2 -2
- package/dist/cdn/{RHJUIQ6M.js → M5CETFR7.js} +2 -2
- package/dist/cdn/{MS4KAGNH.js → M77NQ22F.js} +2 -2
- package/dist/cdn/{O5OZCLSF.js → M7EDLQZ6.js} +2 -2
- package/dist/cdn/{ZII5BUBB.js → MAUETEHW.js} +2 -2
- package/dist/cdn/{KHZSF3FD.js → MAXS7B5Q.js} +2 -2
- package/dist/cdn/{Z7IEGCD6.js → MELI5KJV.js} +2 -2
- package/dist/cdn/{P72YRSGB.js → MFCMYLCX.js} +2 -2
- package/dist/cdn/{NQ3M6L4H.js → MI5QJ6G4.js} +1 -1
- package/dist/cdn/{SGKKUBUH.js → MITKDSQJ.js} +2 -2
- package/dist/cdn/{TV3E3QAW.js → MK3LG2TU.js} +2 -2
- package/dist/cdn/{22IQZT6J.js → MNGTSGG3.js} +2 -2
- package/dist/cdn/{LNW7XNYY.js → MTKZNDJI.js} +2 -2
- package/dist/cdn/{2734ABSH.js → N67FXIF6.js} +1 -1
- package/dist/cdn/{3UJYMJ4M.js → NAIZ62OD.js} +2 -2
- package/dist/cdn/{IGHDZ6NM.js → NDMJIBFT.js} +2 -2
- package/dist/cdn/{4MF7IEUO.js → NDQ5G5H4.js} +2 -2
- package/dist/cdn/{65HGLJRC.js → NGRKIQVV.js} +2 -2
- package/dist/cdn/{7BISYZUI.js → NOMZO53Y.js} +2 -2
- package/dist/cdn/{XGDUNKJK.js → NVZ35ESS.js} +2 -2
- package/dist/cdn/{GTAD2V3J.js → NZNQYGTL.js} +2 -2
- package/dist/cdn/{ZD4PAHDV.js → O2V3XVMF.js} +2 -2
- package/dist/cdn/{ZHL4Y2JO.js → O56CDWBR.js} +2 -2
- package/dist/cdn/{KBZMR6Y4.js → O6FZLO4X.js} +2 -2
- package/dist/cdn/{HQCO6V6Y.js → O7NHLOYI.js} +2 -2
- package/dist/cdn/{2MEEZ5ZM.js → OD5DMLZU.js} +2 -2
- package/dist/cdn/{6M6B4G2D.js → OL4LL6OB.js} +2 -2
- package/dist/cdn/{RPXT2OKO.js → OMNYDQM5.js} +2 -2
- package/dist/cdn/{B44JDUZ2.js → OQL2LCUX.js} +2 -2
- package/dist/cdn/{T6G5VVOC.js → OSSY4LR3.js} +2 -2
- package/dist/cdn/{XYD5LQZ7.js → P2XRN2UF.js} +2 -2
- package/dist/cdn/{D7MXZOLT.js → P5XN5L7G.js} +2 -2
- package/dist/cdn/PCFZO3PT.js +4 -0
- package/dist/cdn/{VB6LKF6E.js → PL4QMZJO.js} +2 -2
- package/dist/cdn/{Z4FRBC4G.js → PLRMXXZL.js} +1 -1
- package/dist/cdn/{NOXDRDHJ.js → PQ5DJQDQ.js} +2 -2
- package/dist/cdn/{KRCQW7YP.js → PSJSGIKL.js} +1 -1
- package/dist/cdn/{JLI2QLLS.js → PWS5IY4G.js} +2 -2
- package/dist/cdn/{FSHGBGA7.js → PXSKVKAL.js} +2 -2
- package/dist/cdn/{7RZYECSQ.js → PYIFC4SW.js} +2 -2
- package/dist/cdn/{BSK2FSTE.js → Q2I5BRLB.js} +2 -2
- package/dist/cdn/{PD62JJHH.js → Q3DDNXCC.js} +2 -2
- package/dist/cdn/{CLYISB65.js → Q6QQOQ7G.js} +2 -2
- package/dist/cdn/{C6ZJEKKF.js → QBLSFSCZ.js} +2 -2
- package/dist/cdn/{Y6OFLOPT.js → QJGLGCY6.js} +2 -2
- package/dist/cdn/{C434YNG2.js → QR4Z5GNL.js} +1 -1
- package/dist/cdn/{JHDFGAEX.js → QTERT7PX.js} +2 -2
- package/dist/cdn/{LWGB5XJM.js → QYA24OPS.js} +2 -2
- package/dist/cdn/{A7TK3HI4.js → R363TCFE.js} +2 -2
- package/dist/cdn/{S4YZPPXH.js → R6PONLTE.js} +2 -2
- package/dist/cdn/{MDWAUWKR.js → R7OEKBBB.js} +2 -2
- package/dist/cdn/{BB7Q2E6F.js → RCFOFAZ4.js} +2 -2
- package/dist/cdn/{6F5NYMCK.js → RDHAX76P.js} +2 -2
- package/dist/cdn/{RJJG2Z2Z.js → REG256EB.js} +2 -2
- package/dist/cdn/{PJISEH5O.js → RFMEIINM.js} +1 -1
- package/dist/cdn/{UHUBSPUI.js → RGUHJTI3.js} +2 -2
- package/dist/cdn/{MKZ36QS2.js → RJIINRDD.js} +2 -2
- package/dist/cdn/{DTK3LA3J.js → RKVFICOU.js} +2 -2
- package/dist/cdn/{KSN3IAEH.js → RKYKO75J.js} +2 -2
- package/dist/cdn/ROQFTEXJ.js +4 -0
- package/dist/cdn/{Q7HZZP5B.js → RQ2NI2FI.js} +2 -2
- package/dist/cdn/{IWRWVYE2.js → S2LHNHIF.js} +2 -2
- package/dist/cdn/{MEIAZRM6.js → S33EWYS4.js} +1 -1
- package/dist/cdn/{MSNUWHZX.js → S5CO7PQO.js} +2 -2
- package/dist/cdn/{GPOQA3W5.js → S5FOL33Z.js} +2 -2
- package/dist/cdn/{J5LUGGEM.js → S6ZT67A3.js} +1 -1
- package/dist/cdn/{OAONHDB7.js → SFT4N6SF.js} +2 -2
- package/dist/cdn/{55Y3NPXC.js → SGD4CC4F.js} +2 -2
- package/dist/cdn/{C6FCTU5X.js → SHPZJTK6.js} +2 -2
- package/dist/cdn/{KXKAKCTY.js → SMKH74K5.js} +2 -2
- package/dist/cdn/{BZLBIIMX.js → STNTU6EO.js} +2 -2
- package/dist/cdn/{MXLDJIIW.js → STZJPJD4.js} +2 -2
- package/dist/cdn/{FZFTTC2N.js → SVJ4SIAD.js} +2 -2
- package/dist/cdn/{QVIZVET7.js → SWVG7YKC.js} +1 -1
- package/dist/cdn/{C37BWQGL.js → T2DKTUJA.js} +2 -2
- package/dist/cdn/{74NSWBXK.js → T4HKMZJG.js} +2 -2
- package/dist/cdn/{QOFZ275H.js → T6QYT2XT.js} +2 -2
- package/dist/cdn/{OAGFAKNI.js → T7SAKDYY.js} +2 -2
- package/dist/cdn/{G5FMCRUO.js → TAPF7CTQ.js} +2 -2
- package/dist/cdn/{PAH2YDTS.js → TEDQIKUH.js} +2 -2
- package/dist/cdn/{ZU6MGOIO.js → TIF2B4CA.js} +2 -2
- package/dist/cdn/{2BJ3YAJW.js → TKVCIAOS.js} +2 -2
- package/dist/cdn/{2LPFG2CT.js → TN6WYWNC.js} +2 -2
- package/dist/cdn/{7S4DT77X.js → TSUHAYI3.js} +2 -2
- package/dist/cdn/{2RPEDXDL.js → TX26EX7S.js} +2 -2
- package/dist/cdn/{WLSSLUAO.js → TX2UBOOT.js} +2 -2
- package/dist/cdn/{HO6FTZFW.js → TY5UJ3OB.js} +2 -2
- package/dist/cdn/{VSK4SSCO.js → TZZ5PQA7.js} +1 -1
- package/dist/cdn/{R26GJTBL.js → U2LSLXGD.js} +2 -2
- package/dist/cdn/{GTPJDWLZ.js → U45HRSAX.js} +2 -2
- package/dist/cdn/{FSOOQC6X.js → UAOFOFNN.js} +2 -2
- package/dist/cdn/{CGMQBOCQ.js → UBDAOBJS.js} +2 -2
- package/dist/cdn/{26G745RA.js → UG3S34JP.js} +2 -2
- package/dist/cdn/{H2G4MMVN.js → UJVVCUUN.js} +2 -2
- package/dist/cdn/{OAGQFGAF.js → UNDJ7YPO.js} +2 -2
- package/dist/cdn/{DUPUWAGJ.js → URL2ELNV.js} +2 -2
- package/dist/cdn/{5OQXQNJT.js → URZWYRCE.js} +2 -2
- package/dist/cdn/{TLGYR64Y.js → UTFBB7GM.js} +1 -1
- package/dist/cdn/{N5R7QFQV.js → UXLATTSW.js} +2 -2
- package/dist/cdn/{277XJSTT.js → UZMSG222.js} +2 -2
- package/dist/cdn/{SXVHHNRC.js → UZQEPAMF.js} +2 -2
- package/dist/cdn/{F4JVAFDH.js → V22KW5OE.js} +2 -2
- package/dist/cdn/{DSIQEKMO.js → V2MTM47E.js} +2 -2
- package/dist/cdn/{J46JZ3HC.js → VBD55LG4.js} +2 -2
- package/dist/cdn/{4QTP52XH.js → VC7L3DS6.js} +1 -1
- package/dist/cdn/{ZKFVGATQ.js → VDABGJEZ.js} +2 -2
- package/dist/cdn/{OHYLULSL.js → VFQXFSDH.js} +2 -2
- package/dist/cdn/{26KCPR7N.js → VK6WKVHH.js} +1 -1
- package/dist/cdn/{ITVEADGM.js → VK7YT7NV.js} +2 -2
- package/dist/cdn/{HDHARZ7G.js → VKRJ44MY.js} +2 -2
- package/dist/cdn/{JK77IEXN.js → VSND7BYN.js} +2 -2
- package/dist/cdn/{NX25NZSD.js → VSUIMUF4.js} +1 -1
- package/dist/cdn/{NN3GLANP.js → VXFTGIAM.js} +2 -2
- package/dist/cdn/{L4JMVIN2.js → W3UGQPJ5.js} +2 -2
- package/dist/cdn/{V7AWXEB3.js → WDK6RFPZ.js} +2 -2
- package/dist/cdn/{TOGKYXTE.js → WJ2VSIQ7.js} +2 -2
- package/dist/cdn/{HS6FHZDV.js → WMEZR7FC.js} +2 -2
- package/dist/cdn/{EBFEJ3UW.js → WSMEWPMH.js} +2 -2
- package/dist/cdn/{S64JEF4E.js → WV2JLUYH.js} +1 -1
- package/dist/cdn/{KY7MCT5Q.js → WX6O5RBN.js} +1 -1
- package/dist/cdn/{BNUMYUKI.js → WZUJS345.js} +2 -2
- package/dist/cdn/{SEBUGPQK.js → X4AT6KUX.js} +3 -3
- package/dist/cdn/{NCADJUKG.js → XC3CRRDY.js} +2 -2
- package/dist/cdn/{FBGSINKC.js → XGJY7EVA.js} +2 -2
- package/dist/cdn/{QN33I7LZ.js → XGKUAYPI.js} +2 -2
- package/dist/cdn/{5NQ7V4XP.js → XHM3CEQL.js} +2 -2
- package/dist/cdn/{3EYWSHHH.js → XI4HJZZE.js} +2 -2
- package/dist/cdn/{GOWTEL4L.js → XJH4WLRE.js} +1 -1
- package/dist/cdn/{FR7FDRQG.js → XN2ZCMXI.js} +2 -2
- package/dist/cdn/{P5QKOX7P.js → XQJOZDDY.js} +2 -2
- package/dist/cdn/{LP2V3LHC.js → XSMTBFNA.js} +2 -2
- package/dist/cdn/{3IDRBBTI.js → XUWSQORW.js} +2 -2
- package/dist/cdn/{UJOAAHPG.js → Y25NPDNV.js} +2 -2
- package/dist/cdn/{LQQNPFDP.js → Y2W6WNR6.js} +2 -2
- package/dist/cdn/{L4YIXDS2.js → Y67Y5ZEF.js} +2 -2
- package/dist/cdn/{FQD3MPL2.js → YFM5I7KQ.js} +2 -2
- package/dist/cdn/{UMCRNTVU.js → YPBKQIYH.js} +2 -2
- package/dist/cdn/{KKFYYIMR.js → ZAXKRRWG.js} +2 -2
- package/dist/cdn/{C6UJS3U4.js → ZB6AOMBI.js} +2 -2
- package/dist/cdn/{7AWMALHG.js → ZKNZ73HF.js} +2 -2
- package/dist/cdn/{E6VNYFTK.js → ZLOG23DX.js} +2 -2
- package/dist/cdn/{RJ5O3HFW.js → ZVADDIZU.js} +2 -2
- package/dist/cdn/{UF6K5ZJL.js → ZVSX6TBK.js} +1 -1
- package/dist/cdn/{54VN5OXT.js → ZZ34FKLA.js} +1 -1
- package/dist/cdn/{3BGTO2BG.js → ZZQSBWOF.js} +2 -2
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/Auth.js +1 -1
- package/dist/chunks/CardsFetcher.js +1 -1
- package/dist/chunks/appConfig.js +1 -1
- package/dist/chunks/cardFetchingUtils.js +1 -1
- package/dist/chunks/cardsHelpers.js +1 -1
- package/dist/chunks/common.js +1 -1
- package/dist/chunks/deployAppContexts.js +1 -1
- package/dist/chunks/downloadUtils.js +1 -1
- package/dist/chunks/getItemIcon.js +1 -1
- package/dist/chunks/helpers.js +1 -1
- package/dist/chunks/interfaces.js +1 -1
- package/dist/chunks/loadModules.js +1 -1
- package/dist/chunks/mapViewUtils.js +1 -1
- package/dist/chunks/pciUtils.js +1 -1
- package/dist/chunks/popupUtils.js +1 -1
- package/dist/chunks/prepareDataForSolutionDisplay.js +1 -1
- package/dist/chunks/privilegeUtils.js +1 -1
- package/dist/chunks/publicNotificationContext.js +1 -1
- package/dist/chunks/queryUtils.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/solution-store.js +1 -1
- package/dist/chunks/templates.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
- package/dist/components/basemap-gallery/customElement.js +1 -1
- package/dist/components/buffer-tools/customElement.js +1 -1
- package/dist/components/card-manager/customElement.js +1 -1
- package/dist/components/consent-manager/customElement.js +1 -1
- package/dist/components/create-feature/customElement.js +1 -1
- package/dist/components/create-related-feature/customElement.js +1 -1
- package/dist/components/crowdsource-manager/customElement.js +1 -1
- package/dist/components/crowdsource-reporter/customElement.js +1 -1
- package/dist/components/deduct-calculator/customElement.js +1 -1
- package/dist/components/delete-button/customElement.js +1 -1
- package/dist/components/delete-dialog/customElement.js +1 -1
- package/dist/components/edit-card/customElement.js +1 -1
- package/dist/components/feature-details/customElement.js +1 -1
- package/dist/components/feature-list/customElement.js +1 -1
- package/dist/components/field-selection/customElement.js +1 -1
- package/dist/components/floor-filter/customElement.js +1 -1
- package/dist/components/info-card/customElement.js +1 -1
- package/dist/components/json-editor/customElement.js +1 -1
- package/dist/components/layer-list/customElement.js +1 -1
- package/dist/components/layer-table/customElement.js +1 -1
- package/dist/components/map-card/customElement.js +1 -1
- package/dist/components/map-draw-tools/customElement.js +1 -1
- package/dist/components/map-fullscreen/customElement.js +1 -1
- package/dist/components/map-layer-picker/customElement.js +1 -1
- package/dist/components/map-legend/customElement.js +1 -1
- package/dist/components/map-picker/customElement.js +1 -1
- package/dist/components/map-search/customElement.js +1 -1
- package/dist/components/map-select-tools/customElement.js +1 -1
- package/dist/components/map-tools/customElement.js +1 -1
- package/dist/components/pci-calculator/customElement.js +1 -1
- package/dist/components/pdf-download/customElement.js +1 -1
- package/dist/components/public-notification/customElement.js +1 -1
- package/dist/components/refine-selection/customElement.js +1 -1
- package/dist/components/selection-tool/customElement.js +1 -1
- package/dist/components/solution-article-card/customElement.js +1 -1
- package/dist/components/solution-configuration/customElement.js +1 -1
- package/dist/components/solution-configure-dialog/customElement.js +1 -1
- package/dist/components/solution-configure-titles/customElement.js +1 -1
- package/dist/components/solution-contents/customElement.js +1 -1
- package/dist/components/solution-delete-dialog/customElement.js +1 -1
- package/dist/components/solution-deploy-dialog/customElement.js +1 -1
- package/dist/components/solution-deployed-card/customElement.js +1 -1
- package/dist/components/solution-deploying-dialog/customElement.js +1 -1
- package/dist/components/solution-details-card/customElement.js +1 -1
- package/dist/components/solution-details-panel/customElement.js +1 -1
- package/dist/components/solution-item/customElement.js +1 -1
- package/dist/components/solution-item-accordion/customElement.js +1 -1
- package/dist/components/solution-item-details/customElement.js +1 -1
- package/dist/components/solution-item-diagram/customElement.js +1 -1
- package/dist/components/solution-item-icon/customElement.js +1 -1
- package/dist/components/solution-item-sharing/customElement.js +1 -1
- package/dist/components/solution-organization-variables/customElement.js +1 -1
- package/dist/components/solution-resource-item/customElement.js +1 -1
- package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
- package/dist/components/solution-social-share/customElement.js +1 -1
- package/dist/components/solution-spatial-ref/customElement.js +1 -1
- package/dist/components/solution-template-data/customElement.js +1 -1
- package/dist/components/solution-variables/customElement.js +1 -1
- package/dist/components/solutions-all-panel/customElement.js +1 -1
- package/dist/components/solutions-all-shell/customElement.d.ts +1 -1
- package/dist/components/solutions-all-shell/customElement.js +2 -2
- 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.d.ts +1 -1
- package/dist/components/solutions-deploy-app/customElement.js +44 -33
- package/dist/components/solutions-deployed-filter-panel/customElement.js +1 -1
- package/dist/components/solutions-deployed-panel/customElement.js +1 -1
- package/dist/components/solutions-deployed-shell/customElement.d.ts +1 -1
- package/dist/components/solutions-deployed-shell/customElement.js +2 -2
- 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 +21 -35
- package/dist/docs/docs.json +13 -23
- package/dist/docs/vscode.html-custom-data.json +3 -3
- package/dist/docs/web-types.json +4 -4
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/package.json +1 -1
- package/dist/cdn/EJ5MXJ4L.js +0 -4
- package/dist/cdn/MT6GA5XY.js +0 -18
- package/dist/cdn/NAGICQWY.js +0 -4
- package/dist/cdn/QLFISHK2.js +0 -4
- package/dist/cdn/QZFQNFNX.js +0 -4
- package/dist/cdn/RFZSMTAS.js +0 -4
- package/dist/cdn/RJK57CKL.js +0 -4
- package/dist/cdn/VJFEHP5L.js +0 -4
- package/dist/cdn/WUVU4M3M.js +0 -4
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.20250917.
|
4
|
-
import{e as c}from"./
|
3
|
+
v1.1.0-next.20250917.2 */
|
4
|
+
import{e as c}from"./JHKP4KD4.js";import{b as l}from"./IE3HP3EO.js";var u=class{async getPopupTitle(t,p){this.arcade||await this._initModules();let r={};for(let[e,o]of Object.entries(t.attributes))r={...r,[`{${e.toUpperCase()}}`]:o};let a=t.layer,n=this._removeTags(a?.popupTemplate?.title);if(n.includes("{expression/expr")&&a?.popupTemplate?.expressionInfos!=null)for(let e=0;e<a.popupTemplate?.expressionInfos.length;e++){let o=a.popupTemplate.expressionInfos[e],i=this.arcade.createArcadeProfile("popup");try{let s=await(await this.arcade.createArcadeExecutor(o.expression,i)).executeAsync({$feature:t,$layer:a,$map:p});(s!=null||s!=="")&&(r[`{expression/${o.name}}`.toUpperCase()]=s)}catch(s){console.error(s);continue}}return a.popupTemplate?.fieldInfos&&a.fields.forEach(e=>{let o=t.attributes[e.name],i=(a?.popupTemplate?.fieldInfos||[]).find(f=>f.fieldName.toLowerCase()===e.name.toLowerCase()),s=c(o,e.type,e?.domain,i?.format,this.intl);r[`{${e.name.toUpperCase()}}`]=s??o}),n?.replace(/{.*?}/g,e=>r[e.toUpperCase()]!=null?r[e.toUpperCase()]:"")}_removeTags(t){return t==null||t===""?"":t.toString().replace(/(<([^>]+)>)/gi,"")}async _initModules(){let[t,p]=await l(["esri/arcade","esri/intl"]);this.arcade=t,this.intl=p}};export{u as a};
|
@@ -1,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.20250917.
|
4
|
-
import{$ as oe,$a as nr,$b as $r,A as C,Aa as Wt,Ab as wr,B as lt,Ba as pe,Bb as xr,C as je,Ca as Fo,Cb as Sr,D as Pe,Da as Nt,Db as re,E as w,Ea as Lt,Eb as Er,F as wo,Fa as Vt,Fb as br,G as It,Ga as $t,Gb as Tr,H as p,Ha as Bt,Hb as vr,I as gt,Ia as zt,Ib as Fr,Ja as Gt,Jb as _r,K as we,Ka as jt,Kb as Or,L as E,La as Kt,Lb as Rr,M as xe,Ma as Ht,Mb as kr,N as ht,Na as qt,Nb as Ar,O as xo,Oa as Jt,Ob as Cr,P as So,Pa as Dt,Pb as Mr,Q as Ke,Qa as Zt,Qb as Ur,R as H,Ra as _o,Rb as Wr,S as yt,Sa as Ze,Sb as Nr,T as Pt,Ta as Qt,Tb as ko,U as wt,Ua as Yt,Ub as Ye,V as $,Va as Xt,Vb as Ao,W as xt,Wa as te,Wb as Ee,X as G,Xa as er,Xb as Xe,Y as He,Ya as or,Yb as Lr,Z as St,Za as tr,Zb as Vr,_ as Eo,_a as rr,a as Ce,aa as x,ab as sr,ac as Br,ba as T,bb as ir,c as z,ca as Z,cb as mr,cc as zr,d as X,da as qe,db as ar,ea as Et,eb as cr,f as u,fa as bt,fb as Se,fc as Gr,g as yo,ga as bo,gb as _,gc as be,h as ie,ha as Tt,hb as Qe,hc as eo,i as Ne,ia as vt,ic as oo,j as ae,ja as Ft,jc as jr,k as Le,ka as _t,kb as dr,kc as to,l as Ve,la as Ot,lb as pr,lc as Kr,m as Po,ma as Rt,mb as B,n as ct,na as A,nb as fr,o as $e,oa as de,ob as fe,p as dt,pa as q,pb as J,q as Be,qa as Je,qb as ur,r as ze,ra as De,rb as Oo,s as ee,sa as kt,sb as lr,tb as Ro,u as ce,ua as At,ub as Ir,v as pt,va as Ct,vb as gr,w as g,wa as Mt,wb as hr,x as ft,xa as To,xb as yr,y as ut,ya as vo,z as Ge,za as Ut,zb as Pr}from"./SAANCWI3.js";import{a as me,g as ye}from"./NBDKGDQ3.js";import{a as W}from"./EHO67FFU.js";import{a as K,b as Me,c as Ue,d as We}from"./J5LUGGEM.js";import{e as j,f as it,j as Re,l as ke,o as mt,s as Ae}from"./RGS23LVD.js";import{a as st}from"./S64JEF4E.js";import{a as at}from"./EE6BRKTG.js";import{a as V}from"./Z4FRBC4G.js";import{c as U}from"./UF6K5ZJL.js";function ue(e,o="application/octet-stream"){if(typeof Blob<"u"){let r=[];for(let n=0;n<e.length;n++)r[n]=e.charCodeAt(n);let t=new Uint8Array(r);return new Blob([t],{type:o})}else throw new Error("stringToBlob is not currently supported on Node")}function Hr(e){if(typeof Blob<"u")return new Blob([JSON.stringify(e)],{type:"application/json"});throw new Error("objectToJsonBlob is not currently supported on Node")}var ro={};U(ro,{_mostRecentlyEditedLayer:()=>Co,convertItemToTemplate:()=>Fs,createItemFromTemplate:()=>_s,postProcess:()=>Os});function Fs(e,o,r,t){return new Promise((n,s)=>{let i=G(e);ar(e.groupDesignations)?Vt(i,r).then(a=>n(a),a=>s(w(a))):(i.estimatedDeploymentCostFactor=10,q(i.item.id,r).then(a=>{i.data=a,sr(i,r).then(c=>{c.item.modified=Math.max(c.item.modified,Co(i.properties.layers),Co(i.properties.tables)),tr(c,r).then(d=>{c.dependencies=d.map(f=>f.id),n(Ut(c,d,!1,t))},d=>s(w(d)))},c=>s(w(c)))}))})}function _s(e,o,r,t){return new Promise(n=>{if(!t(e.itemId,u.Started,0)){t(e.itemId,u.Ignored,0),n(g(e.type));return}let s=C(e);s=x(s,o),delete s.item.thumbnail,je(s,"properties.service.size");let i=Wt(s.data);Xt(s,r,o).then(m=>{m.success?t(e.itemId,u.Created,e.estimatedDeploymentCostFactor/2,m.serviceItemId)?(s=Fo(s,o,m),zt(s,o,i,r).then(()=>{s=Fo(s,o,m),fe({...s.item,url:void 0},s.data,r,e.item.thumbnail,void 0,o).then(()=>{t(e.itemId,u.Finished,e.estimatedDeploymentCostFactor/2,m.serviceItemId)?A(s.itemId,r).then(a=>{s.item=a,p(s,"item.url")&&!s.item.url.endsWith("/")&&(s.item.url+="/"),n({item:s,id:m.serviceItemId,type:s.type,postProcess:oe({item:s.item,data:s.data})||_o(s)})},()=>{t(e.itemId,u.Failed,0),_(m.serviceItemId,r).then(()=>n(g(e.type)),()=>n(g(e.type)))}):(t(e.itemId,u.Cancelled,0),_(m.serviceItemId,r).then(()=>n(g(e.type)),()=>n(g(e.type))))},()=>{t(e.itemId,u.Failed,0),_(m.serviceItemId,r).then(()=>n(g(e.type)),()=>n(g(e.type)))})},()=>{t(e.itemId,u.Failed,0),_(m.serviceItemId,r).then(()=>n(g(e.type)),()=>n(g(e.type)))})):(t(e.itemId,u.Cancelled,0),_(m.serviceItemId,r).then(()=>n(g(e.type)),()=>n(g(e.type)))):(t(e.itemId,u.Failed,0),n(g(e.type)))},()=>{t(e.itemId,u.Failed,0),n(g(e.type))})})}function Os(e,o,r,t,n,s,i){return new Promise((m,a)=>{J(e,s,i).then(c=>{_o(t)?(t=x(t,s),Ze(t,i,t.item.url,s).then(m,a)):m(c)},a)})}function Co(e){let o=0;return e.forEach(r=>{o=r.editingInfo?.lastEditDate?Math.max(o,r.editingInfo.lastEditDate):o}),o}var l={};U(l,{convertItemToTemplate:()=>Rs,createItemFromTemplate:()=>ks});function Rs(e,o,r){return new Promise(t=>{let n=G(e);n.item.id=T(n.item.id,n.item.id,".itemId");let s=new Promise(m=>{de(n.itemId,n.item.name,r).then(a=>{!a||a.size===0?m(null):m(a)})}),i=Promise.resolve({});Promise.all([s,i]).then(m=>{let[a]=m;if(a){let c=Lr(a,n.item.name);n.properties[c.filename]=c.mimeType;let d=Xe(n.itemId,c.blob.name,1,c.blob.name===c.filename?Ee.data:Ee.fakezip),f={itemId:n.itemId,file:c.blob,folder:d.folder,filename:d.filename};n.dataFile=f,n.resources.push(d.folder+"/"+d.filename),t(n)}else t(n)})})}function ks(e,o,r,t){return new Promise(n=>{if(!t(e.itemId,u.Started,0)){t(e.itemId,u.Ignored,0),n(g(e.type));return}let s=C(e);s=x(s,o),e.item.thumbnail&&(s.item.thumbnail=e.item.thumbnail),te(s.item,s.data,r,o.folderId).then(i=>{t(e.itemId,u.Created,e.estimatedDeploymentCostFactor/2,i.id)?(s.itemId=i.id,o[e.itemId]={itemId:i.id},t(e.itemId,u.Finished,e.estimatedDeploymentCostFactor/2,i.id),n({item:s,id:i.id,type:s.type,postProcess:!1})):(t(e.itemId,u.Cancelled,0),_(i.id,r).then(()=>n(g(e.type)),()=>n(g(e.type))))},()=>{t(e.itemId,u.Failed,0),n(g(e.type))})})}var Do={};U(Do,{_getFormDataFilename:()=>kn,_replaceFeatureServiceURLs:()=>bn,_replaceItemIds:()=>Tn,_replacePortalBaseUrls:()=>vn,_replaceWorkflowManagerBaseUrls:()=>Fn,_updateZipObjectTextContent:()=>_n,convertItemToTemplate:()=>ui,createItemFromTemplate:()=>li,postProcess:()=>Rn,postProcessFormItems:()=>gi,swizzleFormObject:()=>qo,templatizeFormData:()=>Jo});function Dr(e,o){return As(e,o)}function As(e,o){return["data.desktopView.header","data.desktopView.headerPanel.selectors","data.desktopView.leftPanel.selectors","data.desktopView.sidebar","data.desktopView.urlParameters","data.desktopView.widgets","data.header","data.headerPanel.selectors","data.leftPanel.selectors","data.mobileView.header","data.mobileView.headerPanel.selectors","data.mobileView.leftPanel.selectors","data.mobileView.sidebar","data.mobileView.urlParameters","data.mobileView.widgets","data.sidebar","data.urlParameters","data.widgets"].forEach(t=>{let n=p(e,t);Array.isArray(n)&&n.forEach(s=>{s.type==="mapWidget"&&(e.dependencies.indexOf(s.itemId)<0&&e.dependencies.push(s.itemId),s.itemId=T(s.itemId,s.itemId,".itemId")),Array.isArray(s.datasets)&&Cs(s,e,o)})}),e}function Cs(e,o,r){e.datasets.forEach(t=>{if(p(t,"dataSource.type")!=="arcadeDataSource"){let s=p(t,"dataSource.itemId");if(s){o.dependencies.indexOf(s)<0&&o.dependencies.push(s);let i=p(t,"dataSource.layerId");pe(i?.toString(),s,"",r),t.dataSource.itemId=T(s,s,".itemId")}}})}function Zr(e,o){let r=["data.desktopView.header","data.desktopView.headerPanel.selectors","data.desktopView.leftPanel.selectors","data.desktopView.sidebar","data.desktopView.urlParameters","data.desktopView.widgets","data.header","data.headerPanel.selectors","data.leftPanel.selectors","data.mobileView.header","data.mobileView.headerPanel.selectors","data.mobileView.leftPanel.selectors","data.mobileView.sidebar","data.mobileView.urlParameters","data.mobileView.widgets","data.sidebar","data.urlParameters","data.widgets"];return r.forEach(t=>{let n=p(e,t);Ms(n,o)}),r.forEach(t=>{Us(e,t,o)}),e}function Ms(e,o){e&&Array.isArray(e)&&e.forEach(r=>{Array.isArray(r.datasets)&&r.datasets.forEach(t=>{let n=xo(p(t,"dataSource.itemId"));if(n){let s=So(p(t,"dataSource.layerId"));o.some(i=>i.itemId===n&&i.layerId===s?(Jr(i,r.id),!0):!1)}else{let s=p(t,"dataSource.id");if(s){let i=s.split("#")[1];o.some(m=>m.ids.indexOf(i)>-1?(Jr(m,r.id),!0):!1)}}})})}function Us(e,o,r){let t=p(e,o);t&&E(e,o,Ws(t,r))}function Ws(e,o){return Array.isArray(e)?e.map(r=>{let t=r;return Array.isArray(t.events)&&(t.events=t.events.map(n=>{let s=n;return Array.isArray(s.actions)&&(s.actions=s.actions.map(i=>{let m=i;if(m.fieldMap&&m.targetId&&m.targetId.indexOf("#")>-1){let a=qr(m,o);if(a){let c=p(a,"fields"),d=p(a,"basePath");Array.isArray(c)&&d&&(m.fieldMap=m.fieldMap.map(f=>{let I=f;return I.targetName=Z(I.targetName,c,d),I}))}}return m})),s})),Array.isArray(t.datasets)&&(t.datasets=t.datasets.map(n=>{let s=n;if(s.type==="serviceDataset"){let i=qr(n,o);if(i){let m=p(i,"fields"),a=p(i,"basePath");Array.isArray(m)&&a&&(t=Z(t,m,a),s=Z(s,m,a))}}return s})),t}):e}function qr(e,o){let r,t=p(e,"dataSource.id")||p(e,"targetId");if(t){let n=t.split("#")[1];if(!o.some(s=>(r=s.ids.indexOf(n)>-1?s:r,s.ids.indexOf(n)>-1))){let s=t.split("#")[0];o.some(i=>{let a=(i.references||[]).indexOf(s)>-1;return r=a?i:r,a})}}else{let n=xo(p(e,"dataSource.itemId")),s=So(p(e,"dataSource.layerId"));n&&o.some(i=>{let m=n===i.itemId&&s===i.layerId;return r=m?i:r,m})}return r}function Jr(e,o){e.references=Array.isArray(e.references)?e.references:[],e.references.indexOf(o)<0&&e.references.push(o)}var le={};U(le,{convertItemToTemplate:()=>Hs,convertNotebookToTemplate:()=>Go,createItemFromTemplate:()=>qs,deleteProps:()=>an,fineTuneCreatedItem:()=>zo,postProcess:()=>Ds,postProcessNotebookTemplates:()=>Js});function Xr(e,o,r,t){return new Promise((n,s)=>{let i="";if(e.item.url){let m=e.item.url,a=m.indexOf("//");e.item.url=$(H)+m.substring(m.indexOf("/",a+2),m.lastIndexOf("=")+1)+e.item.id,i=m.replace(m.substring(m.indexOf("/",a+2)),"")}e.dependencies=Vs(e),E(e,"data.folderId","{{folderId}}"),zs(e,["data.map.itemId","data.map.appProxy.mapItemId","data.values.webmap","data.values.group"]),on(e,"data.appItemId",e.itemId),$o(e,["data.logo","data.map.portalUrl","data.portalUrl","data.httpProxy.url"],$(H)),E(e,"data.geometryService",$(yt)),Ns(e,r,i,t).then(()=>{Yr(e,r,i,"data.widgetPool.widgets").then(m=>{Yr(m,r,i,"data.widgetOnScreen.widgets",!0).then(a=>{Ls(a,r,i,"data.values").then(c=>{n(c)},c=>s(w(c)))},a=>s(w(a)))},m=>s(w(m)))},m=>s(w(m)))})}function Ns(e,o,r,t){return new Promise((n,s)=>{let i=p(e,"data.dataSource.dataSources");if(i&&Object.keys(i).length>0){let m=new Array;Object.keys(i).forEach(a=>{let c=i[a];E(c,"portalUrl",$(H));let d=p(c,"itemId");if(p(c,"url")){if(d){let I=c.url.substr(c.url.lastIndexOf("/")+1);pe(I.toString(),d,c.url,t),c.itemId=T(d,d,".layer"+I+".itemId")}let f=Vo(c.url,r,[],[],o);m.push(new Promise((I,h)=>{Lo(f.serviceRequests,f.requestUrls,f.testString).then(P=>{c.url=P,I()},P=>h(w(P)))}))}else d&&(c.itemId=T(d,d,".itemId"))}),Promise.all(m).then(()=>n(e),a=>s(w(a)))}else n(e)})}function Yr(e,o,r,t,n=!1){return new Promise((s,i)=>{let m=p(e,t)||[],a=[],c=[];if(m.forEach(d=>{!n&&p(d,"icon")&&$o(d,["icon"],$(H));let f=d.config;if(f){let I=JSON.stringify(f),h=Vo(I,r,c,a,o);d.config=JSON.parse(h.testString),a=h.serviceRequests,c=h.requestUrls}}),a.length>0){let d=JSON.stringify(m);Lo(a,c,d).then(f=>{E(e,t,JSON.parse(f)),s(e)},f=>i(w(f)))}else s(e)})}function Ls(e,o,r,t){return new Promise((n,s)=>{let i=p(e,t),m=[],a=[];if(i){p(i,"icon")&&$o(i,["icon"],$(H));let c=JSON.stringify(i),d=Vo(c,r,a,m,o);i=JSON.parse(d.testString),m=d.serviceRequests,a=d.requestUrls}if(m.length>0){let c=JSON.stringify(i);Lo(m,a,c).then(d=>{E(e,t,JSON.parse(d)),n(e)},d=>s(w(d)))}else n(e)})}function Lo(e,o,r){return new Promise((t,n)=>{if(e&&e.length>0){let s=0;Promise.all(e).then(i=>{i.forEach(m=>{if(p(m,"serviceItemId")){let a="{{"+m.serviceItemId+(m.hasOwnProperty("id")?".layer"+m.id:"")+".url}}";r=no(r,o[s],a,!0)}s++}),t(r)},i=>n(w(i)))}else t(r)})}function Vo(e,o,r,t,n){let s={f:"json",authentication:n},i=e.match(/(\bhttps?:\/\/[-A-Z0-9/._]*)/gim);return i&&i.length&&i.forEach(m=>{m.indexOf("NAServer")>-1?e=no(e,m,$(wt)):m.indexOf("GeocodeServer")>-1?e=no(e,m,$(Pt)):o&&m.indexOf(o)>-1?e=no(e,o,$(H)):m.indexOf("FeatureServer")>-1&&r.indexOf(m)===-1&&(r.push(m),t.push(z(m,s)))}),{testString:e,requestUrls:r,serviceRequests:t}}function no(e,o,r,t=!1){let n=t&&e.indexOf('"')>-1,s=new RegExp(n?'"'+o+'"':o,"gmi");return e.replace(s,n?'"'+r+'"':r)}function $o(e,o,r){o.forEach(t=>{let n=p(e,t);if(n){let s=n.substring(n.indexOf("/",n.indexOf("//")+2));E(e,t,s!==n?r+s:r)}})}function en(e,o,r,t){return new Promise(n=>{if(xe(e,["WAB2D","WAB3D","Web AppBuilder"])){let s={id:o.itemId,url:o.item.url,data:o.data},i=B(s,t),m={tags:e.item.tags,title:e.item.title,type:"Code Attachment",typeKeywords:["Code","Javascript","Web Mapping Application"],relationshipType:"WMA2Code",originItemId:o.itemId,url:ze(x($(H),r))+"sharing/rest/content/items/"+o.itemId+"/package"},a=te(m,{},t,r.folderId);Promise.all([i,a]).then(()=>n(null),()=>n(null))}else n(null)})}function Vs(e){let o=$s;return xe(e,["WAB2D","WAB3D","Web AppBuilder"])&&(o=Bs),o(e)}function $s(e){return gt(e,["data.values.webmap","data.values.group"])}function Bs(e){let o=[],r=p(e,"data.map.itemId");r&&o.push(r);let t=p(e,"data.dataSource.dataSources");return t&&Object.keys(t).forEach(n=>{let s=t[n];s.itemId&&o.push(s.itemId)}),o}function zs(e,o){o.forEach(r=>{let t=p(e,r);on(e,r,t)})}function on(e,o,r){E(e,o,T(r,r,".itemId"))}function tn(e,o){let r=p(e,"data.dataSource.dataSources");r&&Object.keys(r).length>0&&(Object.keys(r).forEach(s=>{let i=r[s];r[s]=Wo(i,o)}),E(e,"data.dataSource.dataSources",r)),["data.widgetPool.widgets","data.widgetOnScreen.widgets"].forEach(s=>{let i=p(e,s);i&&E(e,s,Gs(i,o))});let n=p(e,"data.values");return n&&E(e,"data.values",Wo(n,o)),e}function Wo(e,o,r=!1){return e=Ks(e,o,r),js(e,o).forEach(n=>{e=Z(e,n.fields,n.basePath,r)}),e}function Gs(e,o){let r=["SmartEditor","Screening"];return e.map(t=>{if(t.config){let n=r.indexOf(t.name)>-1;t.config=Wo(t.config,o,n)}return t})}function js(e,o){let r=JSON.stringify(e);return o.filter(n=>Uo(n,r)<4).sort((n,s)=>Uo(n,r)-Uo(s,r))}function Uo(e,o){let r=e.url,t=e.itemId,n=e.layerId,s;return r&&!isNaN(n)&&(s=new RegExp(r.replace(/[.]/,".layer"+n+"."),"gm")),s&&s.test(o)||e.ids.length>0&&e.ids.some(i=>new RegExp(i,"gm").test(o))?1:r&&new RegExp(r,"gm").test(o)?2:t&&new RegExp(t,"gm").test(o)?3:4}function Ks(e,o,r){let t=JSON.stringify(e),n=o.filter(s=>{let i;s.url&&!isNaN(s.layerId)&&(i=new RegExp(s.url.replace(/[.]/,".layer"+s.layerId+"."),"gm"));let m=!1;if(s.ids.length>0&&(m=s.ids.some(a=>new RegExp(a,"gm").test(t))),m||i&&i.test(t))return s});return n.length>0&&n.forEach(s=>{e=No(e,s,r),s.ids.length>0&&s.ids.forEach(i=>{e=so(e,s,i,r)})}),e}function No(e,o,r){let t={},n=o.url,s=o.layerId,i;if(n&&!isNaN(s)&&(i=new RegExp(n.replace(/[.]/,".layer"+s+"."),"gm")),Array.isArray(e))t=e.map(m=>No(m,o,r));else if(typeof e=="object")for(let m in e)e[m]!=null&&typeof e[m]=="object"?t[m]=No(e[m],o,r):(i&&i.test(e[m])&&(e=Z(e,o.fields,o.basePath,r)),t[m]=e[m]);else t=e;return t}function so(e,o,r,t){let n={},s=new RegExp(r,"gm");if(Array.isArray(e))n=e.map(i=>so(i,o,r,t));else if(typeof e=="object")for(let i in e)if(e[i]!==null){let m;try{m=JSON.parse(e[i])}catch{m=void 0}m&&typeof m=="object"?n[i]=JSON.stringify(so(m,o,r,t)):typeof e[i]=="object"?(s.test(i)&&t&&(e[i]=Z(e[i],o.fields,o.basePath,t)),n[i]=so(e[i],o,r,t)):(s.test(e[i])&&(e=Z(e,o.fields,o.basePath,t)),n[i]=e[i])}else n[i]=e[i];else n=e;return n}function rn(e,o,r,t){return Zt(e,r,t)}function nn(e,o,r){return Ze(e,o,"",r)}function D(e,o,r,t,n){return new Promise((s,i)=>{function m(){n&&n.signal.aborted&&i(new Error("Operation was cancelled"))}if(m(),!t(e.itemId,u.Started,0))t(e.itemId,u.Ignored,0),s(g(e.type));else{let a=C(e);a=x(a,o);let c;e.type==="Web Mapping Application"&&e.data?a=JSON.parse(x(JSON.stringify(a),o)):e.type==="QuickCapture Project"&&e.data&&(c=JSON.stringify(a.data.application),delete a.data),e.item.thumbnail&&(a.item.thumbnail=e.item.thumbnail),te(a.item,a.data,r,o.folderId).then(d=>{if(m(),!t(e.itemId,u.Created,e.estimatedDeploymentCostFactor/2,d.id))t(e.itemId,u.Cancelled,0),_(d.id,r).then(()=>s(g(e.type)),()=>s(g(e.type)));else{o[e.itemId]={itemId:d.id,itemUrl:o.portalBaseUrl+"/sharing/rest/content/items/"+d.id},a.itemId=d.id,a.type==="Web Mapping Application"&&e.data&&E(a,"data.appItemId",d.id);let f=oe(a.data),I=a.item.url;a=x(a,o),m();let h=Promise.resolve([]);if(a.relatedItems){let S=x(qe(a.relatedItems),o);h=Qt(a.itemId,S,r)}m();let P;if(e.type==="Web Mapping Application"&&e.data&&xe(e,["WAB2D","WAB3D","Web AppBuilder"]))P=en(e,a,o,r);else if(e.type==="Workforce Project")P=nn(a,r,o);else if(e.type==="QuickCapture Project"){if(c){let S=Ge(x(JSON.parse(c),o),"qc.project.json");P=Gr(S,a.itemId,"",S.name,r)}}else e.type==="Notebook"?P=zo(e,a,o,r):I!==a.item.url?(m(),P=new Promise((S,y)=>{ur(d.id,a.item.url,r).then(()=>S(),y)})):P=Promise.resolve(null);m(),Promise.all([h,P]).then(()=>{t(e.itemId,u.Finished,e.estimatedDeploymentCostFactor/2,d.id)?s({item:a,id:d.id,type:a.type,postProcess:f}):(t(e.itemId,u.Cancelled,0),_(d.id,r).then(()=>s(g(e.type)),()=>s(g(e.type))))},()=>{t(e.itemId,u.Failed,0),s(g(e.type))})}},()=>{t(e.itemId,u.Failed,0),s(g(e.type))})}})}function Hs(e,o,r,t){return Q(e,o,r,t)}function qs(e,o,r,t){return D(e,o,r,t)}function Go(e){return new Promise(o=>{an(e.data),o(e)})}function Js(e,o){if(e.some(t=>t.type==="Notebook")){let t=Object.keys(o).filter(s=>s.indexOf("FeatureServer")>-1).sort().reverse(),n=e.reduce((s,i)=>(s=[...new Set([...s,...i.dependencies,i.itemId])],s),[]);e=e.map(s=>{if(s.type==="Notebook"){let i=s.data&&JSON.stringify(s.data);return n.forEach(m=>{new RegExp(m,"gim").test(i)&&(i=i.replace(m,"{{"+m+".itemId}}"),s.dependencies.indexOf(m)<0&&s.dependencies.push(m))}),t.forEach(m=>{let a=new RegExp(m,"gim");if(a.test(i)){let c=o[m];i=i.replace(a,c);let d=/[0-9A-F]{32}/gim,f=c.match(d)[0];s.dependencies.indexOf(f)<0&&s.dependencies.push(f)}}),s.data=JSON.parse(i),s}})}return e}function an(e){if(e){let o=["metadata.interpreter","metadata.papermill"];Pe(e,o),(e.cells||[]).forEach(r=>{Pe(r,o)})}}function zo(e,o,r,t){return new Promise((n,s)=>{let i={id:o.itemId,url:o.item.url,data:Ge(o.data,o.itemId+".ipynb")};B(i,t).then(()=>n(null),s)})}function Ds(e,o,r,t,n,s,i){return J(e,s,i)}function dn(e,o,r){return new Promise((t,n)=>{Zs(e,r).then(s=>{e.dependencies=s.dependencies,e.data?.properties&&(e.data.properties.ServiceURL=cn(e.data.properties.ServiceURL,s.urlHash),e.data.properties.OverviewURL=cn(e.data.properties.OverviewURL,s.urlHash)),t(e)},s=>n(w(s)))})}function Zs(e,o){return new Promise((r,t)=>{let n=[];if(e.data?.properties){let s=[];e.data.properties.ServiceURL&&s.push(e.data.properties.ServiceURL),e.data.properties.OverviewURL&&e.data.properties.OverviewURL!==e.data.properties.ServiceURL&&s.push(e.data.properties.OverviewURL),Qs(s,n,o).then(i=>{r(i)},i=>t(w(i)))}else r({dependencies:n,urlHash:{}})})}function Qs(e,o,r){return new Promise((t,n)=>{let s={},i={f:"json",authentication:r},m=[],a={},c=e.filter(d=>{if(d){let f=/.+FeatureServer/g.exec(d),I=Array.isArray(f)&&f.length>0?f[0]:void 0;return I?(Object.keys(a).indexOf(I)<0&&(a[I]=z(d,i)),m.push(a[I]),!0):!1}else return!1});m.length>0?Promise.all(m).then(d=>{d.forEach((f,I)=>{if(p(f,"serviceItemId")){let h=f.serviceItemId;o.indexOf(h)<0&&o.push(h),s[c[I]]=h}}),t({dependencies:o,urlHash:s})},d=>n(w(d))):t({dependencies:o,urlHash:s})})}function cn(e,o){let r=e;if(e){let t=o[e];if(t){let n=e.substr(e.lastIndexOf("/")+1);r=T(t,t,".layer"+n+".url")}r=qe(r.replace(/.+?(?=\/home)/,"{{portalBaseUrl}}"))}return r}var Te={};U(Te,{_templatizeAdminEmail:()=>un,_templatizeApplication:()=>fn,_templatizeId:()=>jo,_templatizeUrl:()=>In,_updateDependencies:()=>ln,convertItemToTemplate:()=>Xs,convertQuickCaptureToTemplate:()=>Ko,createItemFromTemplate:()=>ei});function Xs(e,o,r,t){return Q(e,o,r,t)}function Ko(e){return E(e,"data.application",fn(e.data.application,e)),e}function fn(e,o){jo(e,"itemId"),un(e);let r=e?.dataSources;return r&&Array.isArray(r)&&r.forEach(t=>{let n=t.featureServiceItemId;n&&(ln(n,o),In(t,"featureServiceItemId","url"),jo(t,"featureServiceItemId"))}),e}function un(e){p(e,"preferences.adminEmail")&&E(e,"preferences.adminEmail","{{user.email}}")}function ln(e,o){o.dependencies.indexOf(e)===-1&&o.dependencies.push(e)}function In(e,o,r){let t=p(e,o),n=p(e,r);if(n){let s=n.substr(n.lastIndexOf("/")+1);E(e,r,T(t,t,".layer"+s+".url"))}}function jo(e,o){let r=p(e,o);r&&E(e,o,T(r,r,".itemId"))}function ei(e,o,r,t){return D(e,o,r,t)}var oi="home/webmap/viewer.html?webmap=";function gn(e,o,r,t){return new Promise((n,s)=>{e.type!=="Vector Tile Service"&&(e.item.url=e.item.url?ze($(H))+oi+e.item.id:e.item.url),ti(e,r).then(i=>{e.dependencies=i.dependencies,e.data&&(e.data.baseMap?.baseMapLayers&&Ho(e.data.baseMap.baseMapLayers,i.urlHash,t),e.data.operationalLayers&&Ho(e.data.operationalLayers,i.urlHash,t),Ho(e.data.tables,i.urlHash,t),ri(e.data)),n(e)},i=>s(w(i)))})}function ti(e,o){return new Promise((r,t)=>{let n=[];if(e.data){let s=e.data.baseMap?.baseMapLayers||[],i=e.data.operationalLayers||[],m=e.data.tables||[],a=s.concat(i).concat(m);ni(a,n,o).then(c=>{r(c)},c=>t(w(c)))}else r({dependencies:n,urlHash:{}})})}function ri(e){je(e,"initialState")}function ni(e,o,r){return new Promise((t,n)=>{let s={},i={f:"json",authentication:r},m=[],a={},c=e.filter(d=>{if(d.itemId&&d.layerType==="VectorTileLayer")return m.push(A(d.itemId,r)),!0;if(d.url&&d.url.indexOf("{{velocityUrl}}")<0){let f=/.+FeatureServer/g.exec(d.url),I=Array.isArray(f)&&f.length>0?f[0]:void 0;return I?(Object.keys(a).indexOf(I)<0&&(a[I]=z(d.url,i)),m.push(a[I]),!0):!1}else return!1});m.length>0?Promise.all(m).then(d=>{d.forEach((f,I)=>{if(c[I].layerType==="VectorTileLayer"){let h=p(f,"typeKeywords");if(h&&h.includes("Vector Tile Style Editor")){o.indexOf(f.id)<0&&o.push(f.id),c[I].templatizeId=!0;let P=c[I].styleUrl.indexOf(f.id)+f.id.length;c[I].styleUrl=T(c[I].styleUrl.replace(c[I].styleUrl.substring(0,P),f.id),f.id,".itemUrl")}}else if(p(f,"serviceItemId")){let h=f.serviceItemId;o.indexOf(h)<0&&o.push(h),s[c[I].url]=h}}),t({dependencies:o,urlHash:s})},d=>n(w(d))):t({dependencies:o,urlHash:s})})}function Ho(e=[],o,r){e.forEach(t=>{if(t.itemId&&t.layerType==="VectorTileLayer")t.templatizeId&&(t.itemId=T(t.itemId,t.itemId,".itemId"),delete t.templatizeId);else if(t.url){let n=t.url.substr(t.url.lastIndexOf("/")+1),s=Object.keys(o).indexOf(t.url)>-1?o[t.url]:void 0;s&&(pe(n,s,t.url,r),t.url=T(s,s,".layer"+n+".url"),t.itemId=T(s,s,".layer"+n+".itemId"))}})}function hn(e,o){return["data.operationalLayers","data.tables","data.applicationProperties.viewing.search.layers"].forEach(t=>si(e,o,t)),e}function si(e,o,r){let t=p(e,r);t&&E(e,r,ii(t,o))}function ii(e,o){return e.forEach(r=>{let t=mi(r,o);if(t){let n=t.fields.map(i=>i.name);Kt(r,t,t.basePath,t.itemId,n),qt(r,t.basePath,n),r.layerDefinition&&(Dt(r.layerDefinition,t.basePath,n),Jt(r.layerDefinition,t.basePath,n));let s=p(r,"field.name");s&&E(r,"field.name",Ht(s,r,t.itemId,t.basePath))}}),e}function mi(e,o){let r;return o.some(t=>t.ids.indexOf(e.id)>-1?(r=t,!0):!1),r}function Q(e,o,r,t){return new Promise((n,s)=>{let i=G(e);i.item.id=T(i.item.id,i.item.id,".itemId");let m=Je(i.itemId,"forward",r),a=Promise.resolve({}),c=Promise.resolve([]);switch(e.type){case"Dashboard":case"Data Pipeline":case"Feature Collection":case"Feature Service":case"Hub Initiative":case"Hub Page":case"Hub Site Application":case"Insights Model":case"Oriented Imagery Catalog":case"Project Package":case"Style":case"Workforce Project":case"Web Map":case"Web Mapping Application":case"Web Scene":case"Notebook":a=new Promise(d=>{q(i.itemId,r).then(f=>d(f))});break;case"Form":a=de(i.itemId,i.item.name,r);break;case"QuickCapture Project":c=De(i.itemId,r);break}Promise.all([a,m,c]).then(d=>{let[f,I,h]=d;Kr(i,t),i.data=to(f,e.type,t);let P=I;i.dependencies=[],i.relatedItems=[],P.forEach(y=>{y.relationshipType!=="WMA2Code"&&(i.relatedItems.push(y),y.relatedItemIds.forEach(v=>{i.dependencies.indexOf(v)<0&&i.dependencies.push(v)}))}),e.type==="Data Pipeline"&&(i.dependencies=i.dependencies.concat(ai(f)));let S=Promise.resolve(i);switch(e.type){case"Dashboard":Dr(i,t);break;case"Notebook":S=Go(i);break;case"Oriented Imagery Catalog":S=dn(i,o,r);break;case"QuickCapture Project":i.resources=h,S=new Promise(async y=>{let v=null,b=-1;h&&(h.some((ne,Oe)=>{let M=ne.name==="qc.project.json";return M&&(v=ne,b=Oe),M}),b>=0&&h.splice(b,1)),v&&(i.data={application:{...await Be(v)},name:"qc.project.json"}),i.data.application?.basemap?.type==="Web Map"&&i.dependencies.push(i.data.application.basemap.itemId);let N=Ko(i);y(N)});break;case"Vector Tile Service":case"Web Map":case"Web Scene":S=gn(i,o,r,t);break;case"Web Mapping Application":f&&(S=Xr(i,o,r,t));break;case"Workforce Project":S=rn(i,o,r,t);break}S.then(n,y=>s(w(y)))})})}function ai(e){let o=[];return(e?.inputs??[]).concat(e?.outputs??[]).forEach(t=>{if(t.type==="FeatureServiceSource"||t.type==="FeatureServiceSink"){let n=p(t,"parameters.layer.value.itemId");n&&o.push(n)}}),o}var O={};U(O,{convertItemToTemplate:()=>ci,createItemFromTemplate:()=>di,postProcess:()=>fi,postProcessFieldReferences:()=>pi});function ci(e,o,r,t){return Q(e,o,r,t)}function di(e,o,r,t,n){return n?D(e,o,r,t,n):D(e,o,r,t)}function pi(e,o,r){switch(r){case"Web Mapping Application":tn(e,o);break;case"Dashboard":Zr(e,o);break;case"Web Map":hn(e,o);break}return e}function fi(e,o,r,t,n,s,i){return J(e,s,i)}function ui(e,o,r,t){return O.convertItemToTemplate(e,o,r,t)}function io(e){return!!p(e,"properties.services")}function wn(e,o="https://survey123.arcgis.com"){let r=`${o}/api/survey/create`,t={credentials:"same-origin",method:"POST",body:st({f:"json",...e},!0)};return fetch(r,t).then(n=>n.json()).then(n=>{if(!n.success)throw new Error(`Failed to create survey: ${n.error.message}`);return{formId:n.id,featureServiceId:n.featureService.source.itemId,folderId:n.formItemInfo.ownerFolder}})}var xn=function(o){let r=C(o),t=[["header","content"],["subHeader","content"],["footer","content"],["settings","thankYouScreenContent"]],n=(i,m)=>(i&&i[m]&&(i[m]=encodeURIComponent(i[m])),i);t.forEach(([i,m])=>n(r[i],m));let s=i=>n(i,"description");return r.questions=(r.questions||[]).map(i=>i.questions?{...i,questions:i.questions.map(s)}:s(i)),r};function Sn(e,o,r){let{item:{title:t,description:n,tags:s,typeKeywords:i},properties:{form:m}}=e,{user:{username:a},portalBaseUrl:c,organization:{basemapGalleryGroupQuery:d,defaultBasemap:{title:f}}}=o,{token:I}=r.toCredential();return At(d,f,r).then(h=>{let P="Survey-",S=ht(`${P}${t}`,o,"user.folders").replace(P,"");if(m.questions){let v=b=>(b.maps&&(b.maps=b.maps.map(N=>({...N,itemId:h.id}))),b);m.questions=m.questions.map(b=>b.questions?{...b,questions:b.questions.map(v)}:v(b))}let y=xn(m);return{description:n,form:y,portalUrl:c,tags:s,title:S,token:I,typeKeywords:i,username:a}})}function En(e,o,r,t){let n=x(e,o),{survey123Url:s}=o;return Sn(n,o,r).then(i=>wn(i,s)).then(i=>{let{formId:m,featureServiceId:a}=i,c=Promise.resolve(null);return e.item.thumbnail&&(c=fe({id:m},null,r,e.item.thumbnail)),c.then(()=>A(m,r)).then(d=>(o[n.itemId]={itemId:m},o[n.properties.info.serviceInfo.itemId]={itemId:a},t(n.itemId,u.Finished,n.estimatedDeploymentCostFactor,m),{item:{...e,item:d,itemId:m},id:m,type:"Form",postProcess:!0}))}).catch(i=>{throw t(n.itemId,u.Failed,0),i})}function li(e,o,r,t){return io(e)?En(e,o,r,t):O.createItemFromTemplate(e,o,r,t)}async function qo(e,o){let r=await Ro(e),t=new Date;return t=new Date(t.valueOf()-864e5-t.getTimezoneOffset()*1e3*60),r.forEach(n=>{if(typeof n.content=="string"){let s=_n(n,o);e.file(n.file,s,{date:t})}else n.file.endsWith(".xlsx")&&e.file(n.file,n.content,{date:t})}),Promise.resolve(e)}async function Jo(e,o){return(await Ro(e)).forEach(t=>{if(t.file.endsWith(".info")||t.file.endsWith(".itemInfo")||t.file.endsWith(".json")||t.file.endsWith(".webform")||t.file.endsWith(".xml")){let n=t.content,s=/\b([0-9A-Fa-f]){32}_type/g;n=Tn(n,o,s),n=bn(n,o,s),n=vn(n,o),n=Fn(n,o),e.file(t.file,n)}}),Promise.resolve(e)}function bn(e,o,r){let t=e;return Object.keys(o).filter(s=>s.match(r)&&o[s].type==="Feature Service").forEach(s=>{let i=o[s].url,m=o[i];m&&(t=t.replace(new RegExp(i,"g"),m))}),t}function Tn(e,o,r){let t=e;return Object.keys(o).filter(s=>s.match(r)&&o[s].type!=="Feature Service").map(s=>s.replace("_type","")).forEach(s=>{t=t.replace(new RegExp(s,"g"),`{{${s}.itemId}}`)}),t}function vn(e,o){let r=e;return o.portalBaseUrl&&(r=r.replace(new RegExp(o.portalBaseUrl,"g"),"{{portalBaseUrl}}")),r}function Fn(e,o){let r=e;return o.workflowBaseUrl&&(r=r.replace(new RegExp(o.workflowBaseUrl,"g"),"{{workflowBaseUrl}}")),r}function _n(e,o){let r=ft(),t=e.content;return t=x(e.content,o),ce(t.match(r)??[]).forEach(s=>{let i=o[s];typeof i?.itemId=="string"&&(t=t.replace(new RegExp(s,"g"),`${i.itemId}`))}),t}function On(e,o,r,t,n,s,i){let m=t.properties.info.serviceInfo.itemId,{itemId:a}=s[m],c=x(t,s);return A(a,i).then(d=>{let f=[{id:e,title:c.item.title,snippet:c.item.snippet,extent:c.item.extent,culture:c.item.culture},{id:a,extent:c.item.extent,typeKeywords:[`source-${m}`].concat(d.typeKeywords)}],I=P=>B(P,i),h=f.map(I);return Promise.all(h).then(()=>{let P=[e,a],S=v=>j({itemId:v,folderId:s.folderId,authentication:i}),y=P.map(S);return Promise.all(y)}).then(()=>cr(d.ownerFolder,i)).then(()=>{let P=G(d);return n.push(P),t.dependencies.push(d.id),!0})})}async function Rn(e,o,r,t,n,s,i){let m=await de(e,"Form",i);if(m){let a=await Oo(m),c=await qo(a,s);Ye(c,e,i)}else return await pt(5e3),Rn(e,o,r,t,n,s,i);return io(t)?On(e,o,r,t,n,s,i):J(e,s,i)}async function gi(e,o){for(let r of e)if(r.type==="Form"){let t=r.data;if(r.data=null,t){let n=await Oo(t);n=await Jo(n,o),r.item.name=kn(r.item.name,t.name,`${r.itemId}.zip`);let s=await Ir(n,r.item.name),i=Xe(r.itemId,r.item.name,1,Ee.data),m={itemId:r.itemId,file:s,folder:i.folder,filename:r.item.name};r.dataFile=m,r.resources.push(i.folder+"/"+i.filename)}}return Promise.resolve(e)}function kn(e,o,r){let t=e||o;return t&&t!=="undefined"?t:r}var Zo={};U(Zo,{_initializeNewGroup:()=>An,convertItemToTemplate:()=>hi,createItemFromTemplate:()=>yi,postProcess:()=>Pi});function hi(e,o,r){return new Promise(t=>{let n=xt(e);n.item.id=T(n.item.id,n.item.id,".itemId"),Rt(e.id,r).then(s=>{n.type="Group",Ot(e.id,r).then(i=>{i.id=n.item.id,n.item={...i,type:"Group"},n.dependencies=s.concat(It(i.tags)),t(n)},()=>t(n))},()=>t(n))})}function yi(e,o,r,t){return new Promise(n=>{if(!t(e.itemId,u.Started,0)){t(e.itemId,u.Ignored,0),n(g(e.type));return}let s=C(e);s=x(s,o),s.item.thumbnail=e.item.thumbnail;let i=An(s.item);or(i.title,i,o,r,vo(s)?o.locationTracking.owner:void 0).then(m=>{if(m.success)if(!t(e.itemId,u.Created,e.estimatedDeploymentCostFactor/2,m.group.id))t(e.itemId,u.Cancelled,0),Se(m.group.id,r).then(()=>n(g(e.type)),()=>n(g(e.type)));else if(s.itemId=m.group.id,o[e.itemId]={itemId:m.group.id},s=x(s,o),o[e.itemId].itemId=m.group.id,!t(e.itemId,u.Finished,e.estimatedDeploymentCostFactor/2,m.group.id))t(e.itemId,u.Cancelled,0),Se(m.group.id,r).then(()=>n(g(e.type)),()=>n(g(e.type)));else if(vo(s)){let a=o.locationTracking.owner;dr(m.group.id,a,r).then(c=>{c.success?t(e.itemId,u.Created,e.estimatedDeploymentCostFactor/2,m.group.id)?pr(m.group.id,[r.username],r).then(d=>{Array.isArray(d.notRemoved)&&d.notRemoved.length===0?t(e.itemId,u.Created,e.estimatedDeploymentCostFactor/2,m.group.id)?n({item:s,id:m.group.id,type:s.type,postProcess:oe(s)}):(t(e.itemId,u.Cancelled,0),Se(m.group.id,r).then(()=>n(g(e.type)),()=>n(g(e.type)))):(t(e.itemId,u.Failed,0),n(g(e.type)))}):(t(e.itemId,u.Cancelled,0),Se(m.group.id,r).then(()=>n(g(e.type)),()=>n(g(e.type)))):(t(e.itemId,u.Failed,0),n(g(e.type)))})}else n({item:s,id:m.group.id,type:s.type,postProcess:oe(s)});else t(e.itemId,u.Failed,0),n(g(e.type))},()=>{t(e.itemId,u.Failed,0),n(g(e.type))})})}function Pi(e,o,r,t,n,s,i){let m=Promise.resolve({success:!0});return r.some(a=>{if(a.id===e){let c=a.item.item;return oe(c)&&(c=x(c,s),m=fr(c,i)),!0}}),m}function An(e){let o={access:"private",description:e.description,owner:e.owner,snippet:e.snippet,tags:e.tags,thumbnail:e.thumbnail,title:e.title||"",typeKeywords:e.typeKeywords};return["autoJoin","displaySettings","isInvitationOnly","isOpenData","isViewOnly","membershipAccess","properties","sortField","sortOrder"].forEach(t=>{e.hasOwnProperty(t)&&(o[t]=e[t])}),o}var ve={};U(ve,{convertItemToTemplate:()=>wi,createItemFromTemplate:()=>xi,isAPage:()=>Ei,postProcess:()=>Si});function Cn(e,o,r,t){return e=ae(e,r,{}),Tr(e,{...t,allowList:[]}).then(()=>!0)}function mo(e){let o=K(e);return(e.dependencies||[]).forEach(t=>{let n=new RegExp(t,"g"),s=`{{${t}.itemId}}`;o.item=ie(o.item,n,s),o.data=ie(o.data,n,s),e.properties&&(o.properties=ie(o.properties,n,s))}),o}function ao(e,o,r){let t=W(j,{success:!0}),n=[t({itemId:e.item.id,folderId:o,authentication:r})];return V(e,"item.properties.parentInitiativeId")&&n.push(t({itemId:e.item.properties.parentInitiativeId,folderId:o,authentication:r})),Promise.all(n)}function wi(e,o,r=null){let t=0,n=0;return Promise.all([ye(e.id,{authentication:o}),re(o)]).then(([s,i])=>(t=s.item.created,n=s.item.modified,Fr(s,i))).then(s=>(s.item.created=t,s.item.modified=n,s.item.typeKeywords=Me(s.item.typeKeywords,"doNotDelete"),s.groups=[],s.estimatedDeploymentCostFactor=2,s.resources=[],V(s,"properties")||(s.properties={}),s=mo(s),s))}function xi(e,o,r,t){if(!t(e.itemId,u.Started,0))return Promise.resolve(g(e.type));if(e.assets&&e.resources&&delete e.assets,o.solutionItemExtent){let c=o.solutionItemExtent.split(",");o.organization.defaultExtentBBox=[[c[0],c[1]],[c[2],c[3]]]}let s={},i,m,a=e.item.thumbnail;return re(r,o).then(c=>(m=c,_r(e,o,s,m))).then(c=>{let d=c,f={assets:d.assets||[]};return vr(d,f,m)}).then(c=>(i=c,ao(c,o.folderId,r))).then(()=>{let c={item:{id:i.item.id},params:{thumbnail:a},authentication:r};return X(c)}).then(()=>{if(o[e.itemId]={itemId:i.item.id},t(e.itemId,u.Finished,e.estimatedDeploymentCostFactor||2,i.item.id)){let d={item:{...e,...ee(i)},id:i.item.id,type:e.type,postProcess:!0};return d.item.itemId=i.item.id,d}else return W(br,{success:!0})(i,m).then(()=>Promise.resolve(g(e.type)))}).catch(c=>{throw t(e.itemId,u.Failed,0),c})}function Si(e,o,r,t,n,s,i){let m;return re(i).then(a=>(m=a,ye(e,{authentication:i}))).then(a=>Cn(a,r,s,m))}function Ei(e){let o=!1;return(e==="Hub Page"||e==="Site Page")&&(o=!0),o}var Fe={};U(Fe,{convertItemToTemplate:()=>bi,createItemFromTemplate:()=>Ti,isASite:()=>Fi,postProcess:()=>vi});function Mn(e,o,r){let t=o.filter(n=>n.type.indexOf("Page")>-1).map(n=>n.id);return Promise.all(t.map(n=>ye(n,r))).then(n=>Wr(e,n,r))}function Un(e,o,r,t){let n=o.filter(a=>a.id!==e.item.id),s=n.map(a=>({item:{id:a.id,type:a.type}})),i=[];i=i.concat(Ur(e,s,t)),i=i.concat(Mn(e,n,t));let m=n.map(a=>a.id);return e.item.properties.children=m,e=Ar(e,r,{}),i.push(Or(e,{...t,allowList:void 0})),Promise.all(i).then(()=>!0)}function bi(e,o,r=null){let t=0,n=0,s,i,m;return re(o).then(a=>(m=a,Po(e.id,m))).then(a=>(t=a.item.created,n=a.item.modified,s=a.item.title,i=a.data.values.title,Mr(a,m))).then(a=>(a.item.created=t,a.item.modified=n,a.item.title=s,a.item.typeKeywords=Me(a.item.typeKeywords,"doNotDelete"),a.data.values.title=i,a.groups=[],a.estimatedDeploymentCostFactor=2,a.resources=[],p(a,"properties")||(a.properties={}),a.dependencies=ce(a.dependencies),a=mo(a),a))}function Ti(e,o,r,t){if(!t(e.itemId,u.Started,0))return Promise.resolve(g(e.type));e.assets&&e.resources&&delete e.assets,o.solution||(o.solution={}),o.solution.title=o.title;let s={},i,m,a=e.item.thumbnail;return re(r,o).then(c=>(m=c,Cr(e,o,s,m))).then(c=>{let d={assets:c.assets||[]};return kr(c,d,m)}).then(c=>(i=c,ao(c,o.folderId,r))).then(()=>{let c={item:{id:i.item.id},params:{thumbnail:a},authentication:r};return X(c)}).then(()=>{if(o[e.itemId]={itemId:i.item.id},t(e.itemId,u.Finished,e.estimatedDeploymentCostFactor||2,i.item.id)){let d={item:{...e,...ee(i)},id:i.item.id,type:e.type,postProcess:!0};return d.item.itemId=i.item.id,d}else return W(Rr,{success:!0})(i,m).then(()=>Promise.resolve(g(e.type)))}).catch(c=>{throw t(e.itemId,u.Failed,0),c})}function vi(e,o,r,t,n,s,i){let m;return re(i,s).then(a=>(m=a,Po(e,m))).then(a=>Un(a,r,s,m)).then(()=>Promise.resolve(!0))}function Fi(e){let o=!1;return(e==="Hub Site Application"||e==="Site Application")&&(o=!0),o}var po={};U(po,{convertItemToTemplate:()=>Ri,createItemFromTemplate:()=>ki,isAStoryMap:()=>Ai});function Wn(e={}){let o=0;return Object.keys(e).reduce((r,t)=>(V(e,`${t}.type`)==="webmap"&&t!==`webmap${o}`&&(r.push({original:t,updated:`webmap${o}`}),o++),r),[])}function Nn(e){let o=V(e,"data.resources")||{};return Object.keys(o).reduce((r,t)=>(V(o,`${t}.type`)==="webmap"&&r.push(V(o,`${t}.data.itemId`)),r),[])}function Vn(e){let o=He(e.item.id,e.item.type);o.key=`${Ne(e.item.title)}_${Ue("i")}`;let r=K(e);o.data=r.data;let t=r.item.created,n=r.item.modified;return o.item=Ve(r.item),o.item.created=t,o.item.modified=n,o.item.url="{{storyMapTemplateUrl}}",Wn(o.data.resources).forEach(m=>{o.data.resources[m.updated]=K(o.data.resources[m.original]),delete o.data.resources[m.original],o.data.nodes=ie(o.data.nodes,m.original,m.updated)}),o.item.typeKeywords.indexOf(Ln)!==-1&&(o.item.typeKeywords=[_i].concat(o.item.typeKeywords.filter(m=>m!==Ln))),o.properties={},o.properties.draftFileName="draft_{{timestamp}}.json",Object.assign(o.properties,Oi),o.dependencies=Nn(e),Promise.resolve(o)}var Ln="smstatusunpublishedchanges",_i="smstatuspublished",Oi={oembed:{version:"1.0",type:"rich",title:"Example StoryMap",url:"{{storyMapTemplateUrl}}",provider_name:"ArcGIS StoryMaps",provider_url:"{{storyMapBaseUrl}}",width:800,height:600,thumbnail_url:"{{storyMapThumbnailUrl}}",thumbnail_height:"100.5",thumbnail_width:"400",html:'<iframe src="{{storyMapTemplateUrl}}" width="800" height="600" scrolling="yes" frameborder="0" allowfullscreen></iframe>',cache_age:86400},oembedXML:`<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
3
|
+
v1.1.0-next.20250917.2 */
|
4
|
+
import{$ as oe,$a as nr,$b as $r,A as C,Aa as Wt,Ab as wr,B as lt,Ba as pe,Bb as xr,C as je,Ca as Fo,Cb as Sr,D as Pe,Da as Nt,Db as re,E as w,Ea as Lt,Eb as Er,F as wo,Fa as Vt,Fb as br,G as It,Ga as $t,Gb as Tr,H as p,Ha as Bt,Hb as vr,I as gt,Ia as zt,Ib as Fr,Ja as Gt,Jb as _r,K as we,Ka as jt,Kb as Or,L as E,La as Kt,Lb as Rr,M as xe,Ma as Ht,Mb as kr,N as ht,Na as qt,Nb as Ar,O as xo,Oa as Jt,Ob as Cr,P as So,Pa as Dt,Pb as Mr,Q as Ke,Qa as Zt,Qb as Ur,R as H,Ra as _o,Rb as Wr,S as yt,Sa as Ze,Sb as Nr,T as Pt,Ta as Qt,Tb as ko,U as wt,Ua as Yt,Ub as Ye,V as $,Va as Xt,Vb as Ao,W as xt,Wa as te,Wb as Ee,X as G,Xa as er,Xb as Xe,Y as He,Ya as or,Yb as Lr,Z as St,Za as tr,Zb as Vr,_ as Eo,_a as rr,a as Ce,aa as x,ab as sr,ac as Br,ba as T,bb as ir,c as z,ca as Z,cb as mr,cc as zr,d as X,da as qe,db as ar,ea as Et,eb as cr,f as u,fa as bt,fb as Se,fc as Gr,g as yo,ga as bo,gb as _,gc as be,h as ie,ha as Tt,hb as Qe,hc as eo,i as Ne,ia as vt,ic as oo,j as ae,ja as Ft,jc as jr,k as Le,ka as _t,kb as dr,kc as to,l as Ve,la as Ot,lb as pr,lc as Kr,m as Po,ma as Rt,mb as B,n as ct,na as A,nb as fr,o as $e,oa as de,ob as fe,p as dt,pa as q,pb as J,q as Be,qa as Je,qb as ur,r as ze,ra as De,rb as Oo,s as ee,sa as kt,sb as lr,tb as Ro,u as ce,ua as At,ub as Ir,v as pt,va as Ct,vb as gr,w as g,wa as Mt,wb as hr,x as ft,xa as To,xb as yr,y as ut,ya as vo,z as Ge,za as Ut,zb as Pr}from"./A7GJMBGB.js";import{a as me,g as ye}from"./6UL2R6AK.js";import{a as W}from"./KA5XTDOF.js";import{a as K,b as Me,c as Ue,d as We}from"./S6ZT67A3.js";import{e as j,f as it,j as Re,l as ke,o as mt,s as Ae}from"./GA33CY3H.js";import{a as st}from"./WV2JLUYH.js";import{a as at}from"./FQJZZBZS.js";import{a as V}from"./PLRMXXZL.js";import{c as U}from"./ZVSX6TBK.js";function ue(e,o="application/octet-stream"){if(typeof Blob<"u"){let r=[];for(let n=0;n<e.length;n++)r[n]=e.charCodeAt(n);let t=new Uint8Array(r);return new Blob([t],{type:o})}else throw new Error("stringToBlob is not currently supported on Node")}function Hr(e){if(typeof Blob<"u")return new Blob([JSON.stringify(e)],{type:"application/json"});throw new Error("objectToJsonBlob is not currently supported on Node")}var ro={};U(ro,{_mostRecentlyEditedLayer:()=>Co,convertItemToTemplate:()=>Fs,createItemFromTemplate:()=>_s,postProcess:()=>Os});function Fs(e,o,r,t){return new Promise((n,s)=>{let i=G(e);ar(e.groupDesignations)?Vt(i,r).then(a=>n(a),a=>s(w(a))):(i.estimatedDeploymentCostFactor=10,q(i.item.id,r).then(a=>{i.data=a,sr(i,r).then(c=>{c.item.modified=Math.max(c.item.modified,Co(i.properties.layers),Co(i.properties.tables)),tr(c,r).then(d=>{c.dependencies=d.map(f=>f.id),n(Ut(c,d,!1,t))},d=>s(w(d)))},c=>s(w(c)))}))})}function _s(e,o,r,t){return new Promise(n=>{if(!t(e.itemId,u.Started,0)){t(e.itemId,u.Ignored,0),n(g(e.type));return}let s=C(e);s=x(s,o),delete s.item.thumbnail,je(s,"properties.service.size");let i=Wt(s.data);Xt(s,r,o).then(m=>{m.success?t(e.itemId,u.Created,e.estimatedDeploymentCostFactor/2,m.serviceItemId)?(s=Fo(s,o,m),zt(s,o,i,r).then(()=>{s=Fo(s,o,m),fe({...s.item,url:void 0},s.data,r,e.item.thumbnail,void 0,o).then(()=>{t(e.itemId,u.Finished,e.estimatedDeploymentCostFactor/2,m.serviceItemId)?A(s.itemId,r).then(a=>{s.item=a,p(s,"item.url")&&!s.item.url.endsWith("/")&&(s.item.url+="/"),n({item:s,id:m.serviceItemId,type:s.type,postProcess:oe({item:s.item,data:s.data})||_o(s)})},()=>{t(e.itemId,u.Failed,0),_(m.serviceItemId,r).then(()=>n(g(e.type)),()=>n(g(e.type)))}):(t(e.itemId,u.Cancelled,0),_(m.serviceItemId,r).then(()=>n(g(e.type)),()=>n(g(e.type))))},()=>{t(e.itemId,u.Failed,0),_(m.serviceItemId,r).then(()=>n(g(e.type)),()=>n(g(e.type)))})},()=>{t(e.itemId,u.Failed,0),_(m.serviceItemId,r).then(()=>n(g(e.type)),()=>n(g(e.type)))})):(t(e.itemId,u.Cancelled,0),_(m.serviceItemId,r).then(()=>n(g(e.type)),()=>n(g(e.type)))):(t(e.itemId,u.Failed,0),n(g(e.type)))},()=>{t(e.itemId,u.Failed,0),n(g(e.type))})})}function Os(e,o,r,t,n,s,i){return new Promise((m,a)=>{J(e,s,i).then(c=>{_o(t)?(t=x(t,s),Ze(t,i,t.item.url,s).then(m,a)):m(c)},a)})}function Co(e){let o=0;return e.forEach(r=>{o=r.editingInfo?.lastEditDate?Math.max(o,r.editingInfo.lastEditDate):o}),o}var l={};U(l,{convertItemToTemplate:()=>Rs,createItemFromTemplate:()=>ks});function Rs(e,o,r){return new Promise(t=>{let n=G(e);n.item.id=T(n.item.id,n.item.id,".itemId");let s=new Promise(m=>{de(n.itemId,n.item.name,r).then(a=>{!a||a.size===0?m(null):m(a)})}),i=Promise.resolve({});Promise.all([s,i]).then(m=>{let[a]=m;if(a){let c=Lr(a,n.item.name);n.properties[c.filename]=c.mimeType;let d=Xe(n.itemId,c.blob.name,1,c.blob.name===c.filename?Ee.data:Ee.fakezip),f={itemId:n.itemId,file:c.blob,folder:d.folder,filename:d.filename};n.dataFile=f,n.resources.push(d.folder+"/"+d.filename),t(n)}else t(n)})})}function ks(e,o,r,t){return new Promise(n=>{if(!t(e.itemId,u.Started,0)){t(e.itemId,u.Ignored,0),n(g(e.type));return}let s=C(e);s=x(s,o),e.item.thumbnail&&(s.item.thumbnail=e.item.thumbnail),te(s.item,s.data,r,o.folderId).then(i=>{t(e.itemId,u.Created,e.estimatedDeploymentCostFactor/2,i.id)?(s.itemId=i.id,o[e.itemId]={itemId:i.id},t(e.itemId,u.Finished,e.estimatedDeploymentCostFactor/2,i.id),n({item:s,id:i.id,type:s.type,postProcess:!1})):(t(e.itemId,u.Cancelled,0),_(i.id,r).then(()=>n(g(e.type)),()=>n(g(e.type))))},()=>{t(e.itemId,u.Failed,0),n(g(e.type))})})}var Do={};U(Do,{_getFormDataFilename:()=>kn,_replaceFeatureServiceURLs:()=>bn,_replaceItemIds:()=>Tn,_replacePortalBaseUrls:()=>vn,_replaceWorkflowManagerBaseUrls:()=>Fn,_updateZipObjectTextContent:()=>_n,convertItemToTemplate:()=>ui,createItemFromTemplate:()=>li,postProcess:()=>Rn,postProcessFormItems:()=>gi,swizzleFormObject:()=>qo,templatizeFormData:()=>Jo});function Dr(e,o){return As(e,o)}function As(e,o){return["data.desktopView.header","data.desktopView.headerPanel.selectors","data.desktopView.leftPanel.selectors","data.desktopView.sidebar","data.desktopView.urlParameters","data.desktopView.widgets","data.header","data.headerPanel.selectors","data.leftPanel.selectors","data.mobileView.header","data.mobileView.headerPanel.selectors","data.mobileView.leftPanel.selectors","data.mobileView.sidebar","data.mobileView.urlParameters","data.mobileView.widgets","data.sidebar","data.urlParameters","data.widgets"].forEach(t=>{let n=p(e,t);Array.isArray(n)&&n.forEach(s=>{s.type==="mapWidget"&&(e.dependencies.indexOf(s.itemId)<0&&e.dependencies.push(s.itemId),s.itemId=T(s.itemId,s.itemId,".itemId")),Array.isArray(s.datasets)&&Cs(s,e,o)})}),e}function Cs(e,o,r){e.datasets.forEach(t=>{if(p(t,"dataSource.type")!=="arcadeDataSource"){let s=p(t,"dataSource.itemId");if(s){o.dependencies.indexOf(s)<0&&o.dependencies.push(s);let i=p(t,"dataSource.layerId");pe(i?.toString(),s,"",r),t.dataSource.itemId=T(s,s,".itemId")}}})}function Zr(e,o){let r=["data.desktopView.header","data.desktopView.headerPanel.selectors","data.desktopView.leftPanel.selectors","data.desktopView.sidebar","data.desktopView.urlParameters","data.desktopView.widgets","data.header","data.headerPanel.selectors","data.leftPanel.selectors","data.mobileView.header","data.mobileView.headerPanel.selectors","data.mobileView.leftPanel.selectors","data.mobileView.sidebar","data.mobileView.urlParameters","data.mobileView.widgets","data.sidebar","data.urlParameters","data.widgets"];return r.forEach(t=>{let n=p(e,t);Ms(n,o)}),r.forEach(t=>{Us(e,t,o)}),e}function Ms(e,o){e&&Array.isArray(e)&&e.forEach(r=>{Array.isArray(r.datasets)&&r.datasets.forEach(t=>{let n=xo(p(t,"dataSource.itemId"));if(n){let s=So(p(t,"dataSource.layerId"));o.some(i=>i.itemId===n&&i.layerId===s?(Jr(i,r.id),!0):!1)}else{let s=p(t,"dataSource.id");if(s){let i=s.split("#")[1];o.some(m=>m.ids.indexOf(i)>-1?(Jr(m,r.id),!0):!1)}}})})}function Us(e,o,r){let t=p(e,o);t&&E(e,o,Ws(t,r))}function Ws(e,o){return Array.isArray(e)?e.map(r=>{let t=r;return Array.isArray(t.events)&&(t.events=t.events.map(n=>{let s=n;return Array.isArray(s.actions)&&(s.actions=s.actions.map(i=>{let m=i;if(m.fieldMap&&m.targetId&&m.targetId.indexOf("#")>-1){let a=qr(m,o);if(a){let c=p(a,"fields"),d=p(a,"basePath");Array.isArray(c)&&d&&(m.fieldMap=m.fieldMap.map(f=>{let I=f;return I.targetName=Z(I.targetName,c,d),I}))}}return m})),s})),Array.isArray(t.datasets)&&(t.datasets=t.datasets.map(n=>{let s=n;if(s.type==="serviceDataset"){let i=qr(n,o);if(i){let m=p(i,"fields"),a=p(i,"basePath");Array.isArray(m)&&a&&(t=Z(t,m,a),s=Z(s,m,a))}}return s})),t}):e}function qr(e,o){let r,t=p(e,"dataSource.id")||p(e,"targetId");if(t){let n=t.split("#")[1];if(!o.some(s=>(r=s.ids.indexOf(n)>-1?s:r,s.ids.indexOf(n)>-1))){let s=t.split("#")[0];o.some(i=>{let a=(i.references||[]).indexOf(s)>-1;return r=a?i:r,a})}}else{let n=xo(p(e,"dataSource.itemId")),s=So(p(e,"dataSource.layerId"));n&&o.some(i=>{let m=n===i.itemId&&s===i.layerId;return r=m?i:r,m})}return r}function Jr(e,o){e.references=Array.isArray(e.references)?e.references:[],e.references.indexOf(o)<0&&e.references.push(o)}var le={};U(le,{convertItemToTemplate:()=>Hs,convertNotebookToTemplate:()=>Go,createItemFromTemplate:()=>qs,deleteProps:()=>an,fineTuneCreatedItem:()=>zo,postProcess:()=>Ds,postProcessNotebookTemplates:()=>Js});function Xr(e,o,r,t){return new Promise((n,s)=>{let i="";if(e.item.url){let m=e.item.url,a=m.indexOf("//");e.item.url=$(H)+m.substring(m.indexOf("/",a+2),m.lastIndexOf("=")+1)+e.item.id,i=m.replace(m.substring(m.indexOf("/",a+2)),"")}e.dependencies=Vs(e),E(e,"data.folderId","{{folderId}}"),zs(e,["data.map.itemId","data.map.appProxy.mapItemId","data.values.webmap","data.values.group"]),on(e,"data.appItemId",e.itemId),$o(e,["data.logo","data.map.portalUrl","data.portalUrl","data.httpProxy.url"],$(H)),E(e,"data.geometryService",$(yt)),Ns(e,r,i,t).then(()=>{Yr(e,r,i,"data.widgetPool.widgets").then(m=>{Yr(m,r,i,"data.widgetOnScreen.widgets",!0).then(a=>{Ls(a,r,i,"data.values").then(c=>{n(c)},c=>s(w(c)))},a=>s(w(a)))},m=>s(w(m)))},m=>s(w(m)))})}function Ns(e,o,r,t){return new Promise((n,s)=>{let i=p(e,"data.dataSource.dataSources");if(i&&Object.keys(i).length>0){let m=new Array;Object.keys(i).forEach(a=>{let c=i[a];E(c,"portalUrl",$(H));let d=p(c,"itemId");if(p(c,"url")){if(d){let I=c.url.substr(c.url.lastIndexOf("/")+1);pe(I.toString(),d,c.url,t),c.itemId=T(d,d,".layer"+I+".itemId")}let f=Vo(c.url,r,[],[],o);m.push(new Promise((I,h)=>{Lo(f.serviceRequests,f.requestUrls,f.testString).then(P=>{c.url=P,I()},P=>h(w(P)))}))}else d&&(c.itemId=T(d,d,".itemId"))}),Promise.all(m).then(()=>n(e),a=>s(w(a)))}else n(e)})}function Yr(e,o,r,t,n=!1){return new Promise((s,i)=>{let m=p(e,t)||[],a=[],c=[];if(m.forEach(d=>{!n&&p(d,"icon")&&$o(d,["icon"],$(H));let f=d.config;if(f){let I=JSON.stringify(f),h=Vo(I,r,c,a,o);d.config=JSON.parse(h.testString),a=h.serviceRequests,c=h.requestUrls}}),a.length>0){let d=JSON.stringify(m);Lo(a,c,d).then(f=>{E(e,t,JSON.parse(f)),s(e)},f=>i(w(f)))}else s(e)})}function Ls(e,o,r,t){return new Promise((n,s)=>{let i=p(e,t),m=[],a=[];if(i){p(i,"icon")&&$o(i,["icon"],$(H));let c=JSON.stringify(i),d=Vo(c,r,a,m,o);i=JSON.parse(d.testString),m=d.serviceRequests,a=d.requestUrls}if(m.length>0){let c=JSON.stringify(i);Lo(m,a,c).then(d=>{E(e,t,JSON.parse(d)),n(e)},d=>s(w(d)))}else n(e)})}function Lo(e,o,r){return new Promise((t,n)=>{if(e&&e.length>0){let s=0;Promise.all(e).then(i=>{i.forEach(m=>{if(p(m,"serviceItemId")){let a="{{"+m.serviceItemId+(m.hasOwnProperty("id")?".layer"+m.id:"")+".url}}";r=no(r,o[s],a,!0)}s++}),t(r)},i=>n(w(i)))}else t(r)})}function Vo(e,o,r,t,n){let s={f:"json",authentication:n},i=e.match(/(\bhttps?:\/\/[-A-Z0-9/._]*)/gim);return i&&i.length&&i.forEach(m=>{m.indexOf("NAServer")>-1?e=no(e,m,$(wt)):m.indexOf("GeocodeServer")>-1?e=no(e,m,$(Pt)):o&&m.indexOf(o)>-1?e=no(e,o,$(H)):m.indexOf("FeatureServer")>-1&&r.indexOf(m)===-1&&(r.push(m),t.push(z(m,s)))}),{testString:e,requestUrls:r,serviceRequests:t}}function no(e,o,r,t=!1){let n=t&&e.indexOf('"')>-1,s=new RegExp(n?'"'+o+'"':o,"gmi");return e.replace(s,n?'"'+r+'"':r)}function $o(e,o,r){o.forEach(t=>{let n=p(e,t);if(n){let s=n.substring(n.indexOf("/",n.indexOf("//")+2));E(e,t,s!==n?r+s:r)}})}function en(e,o,r,t){return new Promise(n=>{if(xe(e,["WAB2D","WAB3D","Web AppBuilder"])){let s={id:o.itemId,url:o.item.url,data:o.data},i=B(s,t),m={tags:e.item.tags,title:e.item.title,type:"Code Attachment",typeKeywords:["Code","Javascript","Web Mapping Application"],relationshipType:"WMA2Code",originItemId:o.itemId,url:ze(x($(H),r))+"sharing/rest/content/items/"+o.itemId+"/package"},a=te(m,{},t,r.folderId);Promise.all([i,a]).then(()=>n(null),()=>n(null))}else n(null)})}function Vs(e){let o=$s;return xe(e,["WAB2D","WAB3D","Web AppBuilder"])&&(o=Bs),o(e)}function $s(e){return gt(e,["data.values.webmap","data.values.group"])}function Bs(e){let o=[],r=p(e,"data.map.itemId");r&&o.push(r);let t=p(e,"data.dataSource.dataSources");return t&&Object.keys(t).forEach(n=>{let s=t[n];s.itemId&&o.push(s.itemId)}),o}function zs(e,o){o.forEach(r=>{let t=p(e,r);on(e,r,t)})}function on(e,o,r){E(e,o,T(r,r,".itemId"))}function tn(e,o){let r=p(e,"data.dataSource.dataSources");r&&Object.keys(r).length>0&&(Object.keys(r).forEach(s=>{let i=r[s];r[s]=Wo(i,o)}),E(e,"data.dataSource.dataSources",r)),["data.widgetPool.widgets","data.widgetOnScreen.widgets"].forEach(s=>{let i=p(e,s);i&&E(e,s,Gs(i,o))});let n=p(e,"data.values");return n&&E(e,"data.values",Wo(n,o)),e}function Wo(e,o,r=!1){return e=Ks(e,o,r),js(e,o).forEach(n=>{e=Z(e,n.fields,n.basePath,r)}),e}function Gs(e,o){let r=["SmartEditor","Screening"];return e.map(t=>{if(t.config){let n=r.indexOf(t.name)>-1;t.config=Wo(t.config,o,n)}return t})}function js(e,o){let r=JSON.stringify(e);return o.filter(n=>Uo(n,r)<4).sort((n,s)=>Uo(n,r)-Uo(s,r))}function Uo(e,o){let r=e.url,t=e.itemId,n=e.layerId,s;return r&&!isNaN(n)&&(s=new RegExp(r.replace(/[.]/,".layer"+n+"."),"gm")),s&&s.test(o)||e.ids.length>0&&e.ids.some(i=>new RegExp(i,"gm").test(o))?1:r&&new RegExp(r,"gm").test(o)?2:t&&new RegExp(t,"gm").test(o)?3:4}function Ks(e,o,r){let t=JSON.stringify(e),n=o.filter(s=>{let i;s.url&&!isNaN(s.layerId)&&(i=new RegExp(s.url.replace(/[.]/,".layer"+s.layerId+"."),"gm"));let m=!1;if(s.ids.length>0&&(m=s.ids.some(a=>new RegExp(a,"gm").test(t))),m||i&&i.test(t))return s});return n.length>0&&n.forEach(s=>{e=No(e,s,r),s.ids.length>0&&s.ids.forEach(i=>{e=so(e,s,i,r)})}),e}function No(e,o,r){let t={},n=o.url,s=o.layerId,i;if(n&&!isNaN(s)&&(i=new RegExp(n.replace(/[.]/,".layer"+s+"."),"gm")),Array.isArray(e))t=e.map(m=>No(m,o,r));else if(typeof e=="object")for(let m in e)e[m]!=null&&typeof e[m]=="object"?t[m]=No(e[m],o,r):(i&&i.test(e[m])&&(e=Z(e,o.fields,o.basePath,r)),t[m]=e[m]);else t=e;return t}function so(e,o,r,t){let n={},s=new RegExp(r,"gm");if(Array.isArray(e))n=e.map(i=>so(i,o,r,t));else if(typeof e=="object")for(let i in e)if(e[i]!==null){let m;try{m=JSON.parse(e[i])}catch{m=void 0}m&&typeof m=="object"?n[i]=JSON.stringify(so(m,o,r,t)):typeof e[i]=="object"?(s.test(i)&&t&&(e[i]=Z(e[i],o.fields,o.basePath,t)),n[i]=so(e[i],o,r,t)):(s.test(e[i])&&(e=Z(e,o.fields,o.basePath,t)),n[i]=e[i])}else n[i]=e[i];else n=e;return n}function rn(e,o,r,t){return Zt(e,r,t)}function nn(e,o,r){return Ze(e,o,"",r)}function D(e,o,r,t,n){return new Promise((s,i)=>{function m(){n&&n.signal.aborted&&i(new Error("Operation was cancelled"))}if(m(),!t(e.itemId,u.Started,0))t(e.itemId,u.Ignored,0),s(g(e.type));else{let a=C(e);a=x(a,o);let c;e.type==="Web Mapping Application"&&e.data?a=JSON.parse(x(JSON.stringify(a),o)):e.type==="QuickCapture Project"&&e.data&&(c=JSON.stringify(a.data.application),delete a.data),e.item.thumbnail&&(a.item.thumbnail=e.item.thumbnail),te(a.item,a.data,r,o.folderId).then(d=>{if(m(),!t(e.itemId,u.Created,e.estimatedDeploymentCostFactor/2,d.id))t(e.itemId,u.Cancelled,0),_(d.id,r).then(()=>s(g(e.type)),()=>s(g(e.type)));else{o[e.itemId]={itemId:d.id,itemUrl:o.portalBaseUrl+"/sharing/rest/content/items/"+d.id},a.itemId=d.id,a.type==="Web Mapping Application"&&e.data&&E(a,"data.appItemId",d.id);let f=oe(a.data),I=a.item.url;a=x(a,o),m();let h=Promise.resolve([]);if(a.relatedItems){let S=x(qe(a.relatedItems),o);h=Qt(a.itemId,S,r)}m();let P;if(e.type==="Web Mapping Application"&&e.data&&xe(e,["WAB2D","WAB3D","Web AppBuilder"]))P=en(e,a,o,r);else if(e.type==="Workforce Project")P=nn(a,r,o);else if(e.type==="QuickCapture Project"){if(c){let S=Ge(x(JSON.parse(c),o),"qc.project.json");P=Gr(S,a.itemId,"",S.name,r)}}else e.type==="Notebook"?P=zo(e,a,o,r):I!==a.item.url?(m(),P=new Promise((S,y)=>{ur(d.id,a.item.url,r).then(()=>S(),y)})):P=Promise.resolve(null);m(),Promise.all([h,P]).then(()=>{t(e.itemId,u.Finished,e.estimatedDeploymentCostFactor/2,d.id)?s({item:a,id:d.id,type:a.type,postProcess:f}):(t(e.itemId,u.Cancelled,0),_(d.id,r).then(()=>s(g(e.type)),()=>s(g(e.type))))},()=>{t(e.itemId,u.Failed,0),s(g(e.type))})}},()=>{t(e.itemId,u.Failed,0),s(g(e.type))})}})}function Hs(e,o,r,t){return Q(e,o,r,t)}function qs(e,o,r,t){return D(e,o,r,t)}function Go(e){return new Promise(o=>{an(e.data),o(e)})}function Js(e,o){if(e.some(t=>t.type==="Notebook")){let t=Object.keys(o).filter(s=>s.indexOf("FeatureServer")>-1).sort().reverse(),n=e.reduce((s,i)=>(s=[...new Set([...s,...i.dependencies,i.itemId])],s),[]);e=e.map(s=>{if(s.type==="Notebook"){let i=s.data&&JSON.stringify(s.data);return n.forEach(m=>{new RegExp(m,"gim").test(i)&&(i=i.replace(m,"{{"+m+".itemId}}"),s.dependencies.indexOf(m)<0&&s.dependencies.push(m))}),t.forEach(m=>{let a=new RegExp(m,"gim");if(a.test(i)){let c=o[m];i=i.replace(a,c);let d=/[0-9A-F]{32}/gim,f=c.match(d)[0];s.dependencies.indexOf(f)<0&&s.dependencies.push(f)}}),s.data=JSON.parse(i),s}})}return e}function an(e){if(e){let o=["metadata.interpreter","metadata.papermill"];Pe(e,o),(e.cells||[]).forEach(r=>{Pe(r,o)})}}function zo(e,o,r,t){return new Promise((n,s)=>{let i={id:o.itemId,url:o.item.url,data:Ge(o.data,o.itemId+".ipynb")};B(i,t).then(()=>n(null),s)})}function Ds(e,o,r,t,n,s,i){return J(e,s,i)}function dn(e,o,r){return new Promise((t,n)=>{Zs(e,r).then(s=>{e.dependencies=s.dependencies,e.data?.properties&&(e.data.properties.ServiceURL=cn(e.data.properties.ServiceURL,s.urlHash),e.data.properties.OverviewURL=cn(e.data.properties.OverviewURL,s.urlHash)),t(e)},s=>n(w(s)))})}function Zs(e,o){return new Promise((r,t)=>{let n=[];if(e.data?.properties){let s=[];e.data.properties.ServiceURL&&s.push(e.data.properties.ServiceURL),e.data.properties.OverviewURL&&e.data.properties.OverviewURL!==e.data.properties.ServiceURL&&s.push(e.data.properties.OverviewURL),Qs(s,n,o).then(i=>{r(i)},i=>t(w(i)))}else r({dependencies:n,urlHash:{}})})}function Qs(e,o,r){return new Promise((t,n)=>{let s={},i={f:"json",authentication:r},m=[],a={},c=e.filter(d=>{if(d){let f=/.+FeatureServer/g.exec(d),I=Array.isArray(f)&&f.length>0?f[0]:void 0;return I?(Object.keys(a).indexOf(I)<0&&(a[I]=z(d,i)),m.push(a[I]),!0):!1}else return!1});m.length>0?Promise.all(m).then(d=>{d.forEach((f,I)=>{if(p(f,"serviceItemId")){let h=f.serviceItemId;o.indexOf(h)<0&&o.push(h),s[c[I]]=h}}),t({dependencies:o,urlHash:s})},d=>n(w(d))):t({dependencies:o,urlHash:s})})}function cn(e,o){let r=e;if(e){let t=o[e];if(t){let n=e.substr(e.lastIndexOf("/")+1);r=T(t,t,".layer"+n+".url")}r=qe(r.replace(/.+?(?=\/home)/,"{{portalBaseUrl}}"))}return r}var Te={};U(Te,{_templatizeAdminEmail:()=>un,_templatizeApplication:()=>fn,_templatizeId:()=>jo,_templatizeUrl:()=>In,_updateDependencies:()=>ln,convertItemToTemplate:()=>Xs,convertQuickCaptureToTemplate:()=>Ko,createItemFromTemplate:()=>ei});function Xs(e,o,r,t){return Q(e,o,r,t)}function Ko(e){return E(e,"data.application",fn(e.data.application,e)),e}function fn(e,o){jo(e,"itemId"),un(e);let r=e?.dataSources;return r&&Array.isArray(r)&&r.forEach(t=>{let n=t.featureServiceItemId;n&&(ln(n,o),In(t,"featureServiceItemId","url"),jo(t,"featureServiceItemId"))}),e}function un(e){p(e,"preferences.adminEmail")&&E(e,"preferences.adminEmail","{{user.email}}")}function ln(e,o){o.dependencies.indexOf(e)===-1&&o.dependencies.push(e)}function In(e,o,r){let t=p(e,o),n=p(e,r);if(n){let s=n.substr(n.lastIndexOf("/")+1);E(e,r,T(t,t,".layer"+s+".url"))}}function jo(e,o){let r=p(e,o);r&&E(e,o,T(r,r,".itemId"))}function ei(e,o,r,t){return D(e,o,r,t)}var oi="home/webmap/viewer.html?webmap=";function gn(e,o,r,t){return new Promise((n,s)=>{e.type!=="Vector Tile Service"&&(e.item.url=e.item.url?ze($(H))+oi+e.item.id:e.item.url),ti(e,r).then(i=>{e.dependencies=i.dependencies,e.data&&(e.data.baseMap?.baseMapLayers&&Ho(e.data.baseMap.baseMapLayers,i.urlHash,t),e.data.operationalLayers&&Ho(e.data.operationalLayers,i.urlHash,t),Ho(e.data.tables,i.urlHash,t),ri(e.data)),n(e)},i=>s(w(i)))})}function ti(e,o){return new Promise((r,t)=>{let n=[];if(e.data){let s=e.data.baseMap?.baseMapLayers||[],i=e.data.operationalLayers||[],m=e.data.tables||[],a=s.concat(i).concat(m);ni(a,n,o).then(c=>{r(c)},c=>t(w(c)))}else r({dependencies:n,urlHash:{}})})}function ri(e){je(e,"initialState")}function ni(e,o,r){return new Promise((t,n)=>{let s={},i={f:"json",authentication:r},m=[],a={},c=e.filter(d=>{if(d.itemId&&d.layerType==="VectorTileLayer")return m.push(A(d.itemId,r)),!0;if(d.url&&d.url.indexOf("{{velocityUrl}}")<0){let f=/.+FeatureServer/g.exec(d.url),I=Array.isArray(f)&&f.length>0?f[0]:void 0;return I?(Object.keys(a).indexOf(I)<0&&(a[I]=z(d.url,i)),m.push(a[I]),!0):!1}else return!1});m.length>0?Promise.all(m).then(d=>{d.forEach((f,I)=>{if(c[I].layerType==="VectorTileLayer"){let h=p(f,"typeKeywords");if(h&&h.includes("Vector Tile Style Editor")){o.indexOf(f.id)<0&&o.push(f.id),c[I].templatizeId=!0;let P=c[I].styleUrl.indexOf(f.id)+f.id.length;c[I].styleUrl=T(c[I].styleUrl.replace(c[I].styleUrl.substring(0,P),f.id),f.id,".itemUrl")}}else if(p(f,"serviceItemId")){let h=f.serviceItemId;o.indexOf(h)<0&&o.push(h),s[c[I].url]=h}}),t({dependencies:o,urlHash:s})},d=>n(w(d))):t({dependencies:o,urlHash:s})})}function Ho(e=[],o,r){e.forEach(t=>{if(t.itemId&&t.layerType==="VectorTileLayer")t.templatizeId&&(t.itemId=T(t.itemId,t.itemId,".itemId"),delete t.templatizeId);else if(t.url){let n=t.url.substr(t.url.lastIndexOf("/")+1),s=Object.keys(o).indexOf(t.url)>-1?o[t.url]:void 0;s&&(pe(n,s,t.url,r),t.url=T(s,s,".layer"+n+".url"),t.itemId=T(s,s,".layer"+n+".itemId"))}})}function hn(e,o){return["data.operationalLayers","data.tables","data.applicationProperties.viewing.search.layers"].forEach(t=>si(e,o,t)),e}function si(e,o,r){let t=p(e,r);t&&E(e,r,ii(t,o))}function ii(e,o){return e.forEach(r=>{let t=mi(r,o);if(t){let n=t.fields.map(i=>i.name);Kt(r,t,t.basePath,t.itemId,n),qt(r,t.basePath,n),r.layerDefinition&&(Dt(r.layerDefinition,t.basePath,n),Jt(r.layerDefinition,t.basePath,n));let s=p(r,"field.name");s&&E(r,"field.name",Ht(s,r,t.itemId,t.basePath))}}),e}function mi(e,o){let r;return o.some(t=>t.ids.indexOf(e.id)>-1?(r=t,!0):!1),r}function Q(e,o,r,t){return new Promise((n,s)=>{let i=G(e);i.item.id=T(i.item.id,i.item.id,".itemId");let m=Je(i.itemId,"forward",r),a=Promise.resolve({}),c=Promise.resolve([]);switch(e.type){case"Dashboard":case"Data Pipeline":case"Feature Collection":case"Feature Service":case"Hub Initiative":case"Hub Page":case"Hub Site Application":case"Insights Model":case"Oriented Imagery Catalog":case"Project Package":case"Style":case"Workforce Project":case"Web Map":case"Web Mapping Application":case"Web Scene":case"Notebook":a=new Promise(d=>{q(i.itemId,r).then(f=>d(f))});break;case"Form":a=de(i.itemId,i.item.name,r);break;case"QuickCapture Project":c=De(i.itemId,r);break}Promise.all([a,m,c]).then(d=>{let[f,I,h]=d;Kr(i,t),i.data=to(f,e.type,t);let P=I;i.dependencies=[],i.relatedItems=[],P.forEach(y=>{y.relationshipType!=="WMA2Code"&&(i.relatedItems.push(y),y.relatedItemIds.forEach(v=>{i.dependencies.indexOf(v)<0&&i.dependencies.push(v)}))}),e.type==="Data Pipeline"&&(i.dependencies=i.dependencies.concat(ai(f)));let S=Promise.resolve(i);switch(e.type){case"Dashboard":Dr(i,t);break;case"Notebook":S=Go(i);break;case"Oriented Imagery Catalog":S=dn(i,o,r);break;case"QuickCapture Project":i.resources=h,S=new Promise(async y=>{let v=null,b=-1;h&&(h.some((ne,Oe)=>{let M=ne.name==="qc.project.json";return M&&(v=ne,b=Oe),M}),b>=0&&h.splice(b,1)),v&&(i.data={application:{...await Be(v)},name:"qc.project.json"}),i.data.application?.basemap?.type==="Web Map"&&i.dependencies.push(i.data.application.basemap.itemId);let N=Ko(i);y(N)});break;case"Vector Tile Service":case"Web Map":case"Web Scene":S=gn(i,o,r,t);break;case"Web Mapping Application":f&&(S=Xr(i,o,r,t));break;case"Workforce Project":S=rn(i,o,r,t);break}S.then(n,y=>s(w(y)))})})}function ai(e){let o=[];return(e?.inputs??[]).concat(e?.outputs??[]).forEach(t=>{if(t.type==="FeatureServiceSource"||t.type==="FeatureServiceSink"){let n=p(t,"parameters.layer.value.itemId");n&&o.push(n)}}),o}var O={};U(O,{convertItemToTemplate:()=>ci,createItemFromTemplate:()=>di,postProcess:()=>fi,postProcessFieldReferences:()=>pi});function ci(e,o,r,t){return Q(e,o,r,t)}function di(e,o,r,t,n){return n?D(e,o,r,t,n):D(e,o,r,t)}function pi(e,o,r){switch(r){case"Web Mapping Application":tn(e,o);break;case"Dashboard":Zr(e,o);break;case"Web Map":hn(e,o);break}return e}function fi(e,o,r,t,n,s,i){return J(e,s,i)}function ui(e,o,r,t){return O.convertItemToTemplate(e,o,r,t)}function io(e){return!!p(e,"properties.services")}function wn(e,o="https://survey123.arcgis.com"){let r=`${o}/api/survey/create`,t={credentials:"same-origin",method:"POST",body:st({f:"json",...e},!0)};return fetch(r,t).then(n=>n.json()).then(n=>{if(!n.success)throw new Error(`Failed to create survey: ${n.error.message}`);return{formId:n.id,featureServiceId:n.featureService.source.itemId,folderId:n.formItemInfo.ownerFolder}})}var xn=function(o){let r=C(o),t=[["header","content"],["subHeader","content"],["footer","content"],["settings","thankYouScreenContent"]],n=(i,m)=>(i&&i[m]&&(i[m]=encodeURIComponent(i[m])),i);t.forEach(([i,m])=>n(r[i],m));let s=i=>n(i,"description");return r.questions=(r.questions||[]).map(i=>i.questions?{...i,questions:i.questions.map(s)}:s(i)),r};function Sn(e,o,r){let{item:{title:t,description:n,tags:s,typeKeywords:i},properties:{form:m}}=e,{user:{username:a},portalBaseUrl:c,organization:{basemapGalleryGroupQuery:d,defaultBasemap:{title:f}}}=o,{token:I}=r.toCredential();return At(d,f,r).then(h=>{let P="Survey-",S=ht(`${P}${t}`,o,"user.folders").replace(P,"");if(m.questions){let v=b=>(b.maps&&(b.maps=b.maps.map(N=>({...N,itemId:h.id}))),b);m.questions=m.questions.map(b=>b.questions?{...b,questions:b.questions.map(v)}:v(b))}let y=xn(m);return{description:n,form:y,portalUrl:c,tags:s,title:S,token:I,typeKeywords:i,username:a}})}function En(e,o,r,t){let n=x(e,o),{survey123Url:s}=o;return Sn(n,o,r).then(i=>wn(i,s)).then(i=>{let{formId:m,featureServiceId:a}=i,c=Promise.resolve(null);return e.item.thumbnail&&(c=fe({id:m},null,r,e.item.thumbnail)),c.then(()=>A(m,r)).then(d=>(o[n.itemId]={itemId:m},o[n.properties.info.serviceInfo.itemId]={itemId:a},t(n.itemId,u.Finished,n.estimatedDeploymentCostFactor,m),{item:{...e,item:d,itemId:m},id:m,type:"Form",postProcess:!0}))}).catch(i=>{throw t(n.itemId,u.Failed,0),i})}function li(e,o,r,t){return io(e)?En(e,o,r,t):O.createItemFromTemplate(e,o,r,t)}async function qo(e,o){let r=await Ro(e),t=new Date;return t=new Date(t.valueOf()-864e5-t.getTimezoneOffset()*1e3*60),r.forEach(n=>{if(typeof n.content=="string"){let s=_n(n,o);e.file(n.file,s,{date:t})}else n.file.endsWith(".xlsx")&&e.file(n.file,n.content,{date:t})}),Promise.resolve(e)}async function Jo(e,o){return(await Ro(e)).forEach(t=>{if(t.file.endsWith(".info")||t.file.endsWith(".itemInfo")||t.file.endsWith(".json")||t.file.endsWith(".webform")||t.file.endsWith(".xml")){let n=t.content,s=/\b([0-9A-Fa-f]){32}_type/g;n=Tn(n,o,s),n=bn(n,o,s),n=vn(n,o),n=Fn(n,o),e.file(t.file,n)}}),Promise.resolve(e)}function bn(e,o,r){let t=e;return Object.keys(o).filter(s=>s.match(r)&&o[s].type==="Feature Service").forEach(s=>{let i=o[s].url,m=o[i];m&&(t=t.replace(new RegExp(i,"g"),m))}),t}function Tn(e,o,r){let t=e;return Object.keys(o).filter(s=>s.match(r)&&o[s].type!=="Feature Service").map(s=>s.replace("_type","")).forEach(s=>{t=t.replace(new RegExp(s,"g"),`{{${s}.itemId}}`)}),t}function vn(e,o){let r=e;return o.portalBaseUrl&&(r=r.replace(new RegExp(o.portalBaseUrl,"g"),"{{portalBaseUrl}}")),r}function Fn(e,o){let r=e;return o.workflowBaseUrl&&(r=r.replace(new RegExp(o.workflowBaseUrl,"g"),"{{workflowBaseUrl}}")),r}function _n(e,o){let r=ft(),t=e.content;return t=x(e.content,o),ce(t.match(r)??[]).forEach(s=>{let i=o[s];typeof i?.itemId=="string"&&(t=t.replace(new RegExp(s,"g"),`${i.itemId}`))}),t}function On(e,o,r,t,n,s,i){let m=t.properties.info.serviceInfo.itemId,{itemId:a}=s[m],c=x(t,s);return A(a,i).then(d=>{let f=[{id:e,title:c.item.title,snippet:c.item.snippet,extent:c.item.extent,culture:c.item.culture},{id:a,extent:c.item.extent,typeKeywords:[`source-${m}`].concat(d.typeKeywords)}],I=P=>B(P,i),h=f.map(I);return Promise.all(h).then(()=>{let P=[e,a],S=v=>j({itemId:v,folderId:s.folderId,authentication:i}),y=P.map(S);return Promise.all(y)}).then(()=>cr(d.ownerFolder,i)).then(()=>{let P=G(d);return n.push(P),t.dependencies.push(d.id),!0})})}async function Rn(e,o,r,t,n,s,i){let m=await de(e,"Form",i);if(m){let a=await Oo(m),c=await qo(a,s);Ye(c,e,i)}else return await pt(5e3),Rn(e,o,r,t,n,s,i);return io(t)?On(e,o,r,t,n,s,i):J(e,s,i)}async function gi(e,o){for(let r of e)if(r.type==="Form"){let t=r.data;if(r.data=null,t){let n=await Oo(t);n=await Jo(n,o),r.item.name=kn(r.item.name,t.name,`${r.itemId}.zip`);let s=await Ir(n,r.item.name),i=Xe(r.itemId,r.item.name,1,Ee.data),m={itemId:r.itemId,file:s,folder:i.folder,filename:r.item.name};r.dataFile=m,r.resources.push(i.folder+"/"+i.filename)}}return Promise.resolve(e)}function kn(e,o,r){let t=e||o;return t&&t!=="undefined"?t:r}var Zo={};U(Zo,{_initializeNewGroup:()=>An,convertItemToTemplate:()=>hi,createItemFromTemplate:()=>yi,postProcess:()=>Pi});function hi(e,o,r){return new Promise(t=>{let n=xt(e);n.item.id=T(n.item.id,n.item.id,".itemId"),Rt(e.id,r).then(s=>{n.type="Group",Ot(e.id,r).then(i=>{i.id=n.item.id,n.item={...i,type:"Group"},n.dependencies=s.concat(It(i.tags)),t(n)},()=>t(n))},()=>t(n))})}function yi(e,o,r,t){return new Promise(n=>{if(!t(e.itemId,u.Started,0)){t(e.itemId,u.Ignored,0),n(g(e.type));return}let s=C(e);s=x(s,o),s.item.thumbnail=e.item.thumbnail;let i=An(s.item);or(i.title,i,o,r,vo(s)?o.locationTracking.owner:void 0).then(m=>{if(m.success)if(!t(e.itemId,u.Created,e.estimatedDeploymentCostFactor/2,m.group.id))t(e.itemId,u.Cancelled,0),Se(m.group.id,r).then(()=>n(g(e.type)),()=>n(g(e.type)));else if(s.itemId=m.group.id,o[e.itemId]={itemId:m.group.id},s=x(s,o),o[e.itemId].itemId=m.group.id,!t(e.itemId,u.Finished,e.estimatedDeploymentCostFactor/2,m.group.id))t(e.itemId,u.Cancelled,0),Se(m.group.id,r).then(()=>n(g(e.type)),()=>n(g(e.type)));else if(vo(s)){let a=o.locationTracking.owner;dr(m.group.id,a,r).then(c=>{c.success?t(e.itemId,u.Created,e.estimatedDeploymentCostFactor/2,m.group.id)?pr(m.group.id,[r.username],r).then(d=>{Array.isArray(d.notRemoved)&&d.notRemoved.length===0?t(e.itemId,u.Created,e.estimatedDeploymentCostFactor/2,m.group.id)?n({item:s,id:m.group.id,type:s.type,postProcess:oe(s)}):(t(e.itemId,u.Cancelled,0),Se(m.group.id,r).then(()=>n(g(e.type)),()=>n(g(e.type)))):(t(e.itemId,u.Failed,0),n(g(e.type)))}):(t(e.itemId,u.Cancelled,0),Se(m.group.id,r).then(()=>n(g(e.type)),()=>n(g(e.type)))):(t(e.itemId,u.Failed,0),n(g(e.type)))})}else n({item:s,id:m.group.id,type:s.type,postProcess:oe(s)});else t(e.itemId,u.Failed,0),n(g(e.type))},()=>{t(e.itemId,u.Failed,0),n(g(e.type))})})}function Pi(e,o,r,t,n,s,i){let m=Promise.resolve({success:!0});return r.some(a=>{if(a.id===e){let c=a.item.item;return oe(c)&&(c=x(c,s),m=fr(c,i)),!0}}),m}function An(e){let o={access:"private",description:e.description,owner:e.owner,snippet:e.snippet,tags:e.tags,thumbnail:e.thumbnail,title:e.title||"",typeKeywords:e.typeKeywords};return["autoJoin","displaySettings","isInvitationOnly","isOpenData","isViewOnly","membershipAccess","properties","sortField","sortOrder"].forEach(t=>{e.hasOwnProperty(t)&&(o[t]=e[t])}),o}var ve={};U(ve,{convertItemToTemplate:()=>wi,createItemFromTemplate:()=>xi,isAPage:()=>Ei,postProcess:()=>Si});function Cn(e,o,r,t){return e=ae(e,r,{}),Tr(e,{...t,allowList:[]}).then(()=>!0)}function mo(e){let o=K(e);return(e.dependencies||[]).forEach(t=>{let n=new RegExp(t,"g"),s=`{{${t}.itemId}}`;o.item=ie(o.item,n,s),o.data=ie(o.data,n,s),e.properties&&(o.properties=ie(o.properties,n,s))}),o}function ao(e,o,r){let t=W(j,{success:!0}),n=[t({itemId:e.item.id,folderId:o,authentication:r})];return V(e,"item.properties.parentInitiativeId")&&n.push(t({itemId:e.item.properties.parentInitiativeId,folderId:o,authentication:r})),Promise.all(n)}function wi(e,o,r=null){let t=0,n=0;return Promise.all([ye(e.id,{authentication:o}),re(o)]).then(([s,i])=>(t=s.item.created,n=s.item.modified,Fr(s,i))).then(s=>(s.item.created=t,s.item.modified=n,s.item.typeKeywords=Me(s.item.typeKeywords,"doNotDelete"),s.groups=[],s.estimatedDeploymentCostFactor=2,s.resources=[],V(s,"properties")||(s.properties={}),s=mo(s),s))}function xi(e,o,r,t){if(!t(e.itemId,u.Started,0))return Promise.resolve(g(e.type));if(e.assets&&e.resources&&delete e.assets,o.solutionItemExtent){let c=o.solutionItemExtent.split(",");o.organization.defaultExtentBBox=[[c[0],c[1]],[c[2],c[3]]]}let s={},i,m,a=e.item.thumbnail;return re(r,o).then(c=>(m=c,_r(e,o,s,m))).then(c=>{let d=c,f={assets:d.assets||[]};return vr(d,f,m)}).then(c=>(i=c,ao(c,o.folderId,r))).then(()=>{let c={item:{id:i.item.id},params:{thumbnail:a},authentication:r};return X(c)}).then(()=>{if(o[e.itemId]={itemId:i.item.id},t(e.itemId,u.Finished,e.estimatedDeploymentCostFactor||2,i.item.id)){let d={item:{...e,...ee(i)},id:i.item.id,type:e.type,postProcess:!0};return d.item.itemId=i.item.id,d}else return W(br,{success:!0})(i,m).then(()=>Promise.resolve(g(e.type)))}).catch(c=>{throw t(e.itemId,u.Failed,0),c})}function Si(e,o,r,t,n,s,i){let m;return re(i).then(a=>(m=a,ye(e,{authentication:i}))).then(a=>Cn(a,r,s,m))}function Ei(e){let o=!1;return(e==="Hub Page"||e==="Site Page")&&(o=!0),o}var Fe={};U(Fe,{convertItemToTemplate:()=>bi,createItemFromTemplate:()=>Ti,isASite:()=>Fi,postProcess:()=>vi});function Mn(e,o,r){let t=o.filter(n=>n.type.indexOf("Page")>-1).map(n=>n.id);return Promise.all(t.map(n=>ye(n,r))).then(n=>Wr(e,n,r))}function Un(e,o,r,t){let n=o.filter(a=>a.id!==e.item.id),s=n.map(a=>({item:{id:a.id,type:a.type}})),i=[];i=i.concat(Ur(e,s,t)),i=i.concat(Mn(e,n,t));let m=n.map(a=>a.id);return e.item.properties.children=m,e=Ar(e,r,{}),i.push(Or(e,{...t,allowList:void 0})),Promise.all(i).then(()=>!0)}function bi(e,o,r=null){let t=0,n=0,s,i,m;return re(o).then(a=>(m=a,Po(e.id,m))).then(a=>(t=a.item.created,n=a.item.modified,s=a.item.title,i=a.data.values.title,Mr(a,m))).then(a=>(a.item.created=t,a.item.modified=n,a.item.title=s,a.item.typeKeywords=Me(a.item.typeKeywords,"doNotDelete"),a.data.values.title=i,a.groups=[],a.estimatedDeploymentCostFactor=2,a.resources=[],p(a,"properties")||(a.properties={}),a.dependencies=ce(a.dependencies),a=mo(a),a))}function Ti(e,o,r,t){if(!t(e.itemId,u.Started,0))return Promise.resolve(g(e.type));e.assets&&e.resources&&delete e.assets,o.solution||(o.solution={}),o.solution.title=o.title;let s={},i,m,a=e.item.thumbnail;return re(r,o).then(c=>(m=c,Cr(e,o,s,m))).then(c=>{let d={assets:c.assets||[]};return kr(c,d,m)}).then(c=>(i=c,ao(c,o.folderId,r))).then(()=>{let c={item:{id:i.item.id},params:{thumbnail:a},authentication:r};return X(c)}).then(()=>{if(o[e.itemId]={itemId:i.item.id},t(e.itemId,u.Finished,e.estimatedDeploymentCostFactor||2,i.item.id)){let d={item:{...e,...ee(i)},id:i.item.id,type:e.type,postProcess:!0};return d.item.itemId=i.item.id,d}else return W(Rr,{success:!0})(i,m).then(()=>Promise.resolve(g(e.type)))}).catch(c=>{throw t(e.itemId,u.Failed,0),c})}function vi(e,o,r,t,n,s,i){let m;return re(i,s).then(a=>(m=a,Po(e,m))).then(a=>Un(a,r,s,m)).then(()=>Promise.resolve(!0))}function Fi(e){let o=!1;return(e==="Hub Site Application"||e==="Site Application")&&(o=!0),o}var po={};U(po,{convertItemToTemplate:()=>Ri,createItemFromTemplate:()=>ki,isAStoryMap:()=>Ai});function Wn(e={}){let o=0;return Object.keys(e).reduce((r,t)=>(V(e,`${t}.type`)==="webmap"&&t!==`webmap${o}`&&(r.push({original:t,updated:`webmap${o}`}),o++),r),[])}function Nn(e){let o=V(e,"data.resources")||{};return Object.keys(o).reduce((r,t)=>(V(o,`${t}.type`)==="webmap"&&r.push(V(o,`${t}.data.itemId`)),r),[])}function Vn(e){let o=He(e.item.id,e.item.type);o.key=`${Ne(e.item.title)}_${Ue("i")}`;let r=K(e);o.data=r.data;let t=r.item.created,n=r.item.modified;return o.item=Ve(r.item),o.item.created=t,o.item.modified=n,o.item.url="{{storyMapTemplateUrl}}",Wn(o.data.resources).forEach(m=>{o.data.resources[m.updated]=K(o.data.resources[m.original]),delete o.data.resources[m.original],o.data.nodes=ie(o.data.nodes,m.original,m.updated)}),o.item.typeKeywords.indexOf(Ln)!==-1&&(o.item.typeKeywords=[_i].concat(o.item.typeKeywords.filter(m=>m!==Ln))),o.properties={},o.properties.draftFileName="draft_{{timestamp}}.json",Object.assign(o.properties,Oi),o.dependencies=Nn(e),Promise.resolve(o)}var Ln="smstatusunpublishedchanges",_i="smstatuspublished",Oi={oembed:{version:"1.0",type:"rich",title:"Example StoryMap",url:"{{storyMapTemplateUrl}}",provider_name:"ArcGIS StoryMaps",provider_url:"{{storyMapBaseUrl}}",width:800,height:600,thumbnail_url:"{{storyMapThumbnailUrl}}",thumbnail_height:"100.5",thumbnail_width:"400",html:'<iframe src="{{storyMapTemplateUrl}}" width="800" height="600" scrolling="yes" frameborder="0" allowfullscreen></iframe>',cache_age:86400},oembedXML:`<?xml version="1.0" encoding="utf-8" standalone="yes"?>
|
5
5
|
<oembed>
|
6
6
|
<version>1.0</version>
|
7
7
|
<type>rich</type>
|
@@ -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.20250917.
|
4
|
-
import{a as c,b as n,c as y}from"./
|
3
|
+
v1.1.0-next.20250917.2 */
|
4
|
+
import{a as c,b as n,c as y}from"./GM4FBMYT.js";import{b as d}from"./P5XN5L7G.js";import{C as a,D as s,E as m,h as u,i as t,o as p}from"./ERSWMNMV.js";import"./ZVSX6TBK.js";var h=u`/** @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.20250917.
|
4
|
-
import"./
|
3
|
+
v1.1.0-next.20250917.2 */
|
4
|
+
import"./ZVSX6TBK.js";var e="Du har ikke nok credits til \xE5 utf\xF8re denne operasjonen. Kontakt ArcGIS-systemadministratoren for \xE5 f\xE5 hjelp.",r="Dette verkt\xF8yet ble publisert fra en notisbok. Tilgang til ArcGIS Notebooks er blokkert for din organisasjon. Kontakt administratoren din for \xE5 justere innstillingen.",t="${ dataPath } kan ikke ha ${ additionalProperty }.",a="${ dataPath } m\xE5 samsvare med skjemaet for \xE9n av f\xF8lgende: ${ schemaOptions }.",n="Pr\xF8v \xE5 lagre kartet p\xE5 nytt.",i="Creditestimering mislyktes. Rull nedover, korriger feilene, og estimer creditene p\xE5 nytt.",l="Det oppstod en feil under kj\xF8ring av analysen.",o="${ dataPath } m\xE5 v\xE6re lik \xE9n av f\xF8lgende tillatte verdier: ${ allowedValues }.",s="Kunne ikke lagre analysehistorikken",d="Historikklageret er fullt. Fjern noen elementer fra analysehistorikken og pr\xF8ve \xE5 lagre p\xE5 nytt.",k="Tjenestenavnet inneholder ett eller flere ugyldige tegn.",g="Lagringen av det midlertidige laget som et hostet geoobjektlag ble ikke fullf\xF8rt.",m="Kan ikke hente n\xF8kkelegenskaper.",u="Kan ikke laste inn laget.",f="Laget er ikke tilgjengelig.",c="${ limit } kan ikke inneholde flere enn ${ dataPath } elementer.",p="Det oppstod en feil under lagring av modellen. Pr\xF8v \xE5 lagre p\xE5 nytt.",y="${ dataPath } kan ikke inneholde f\xE6rre enn ${ limit } elementer.",v="${ dataPath } m\xE5 ikke v\xE6re kortere enn ${ limit } tegn.",h="Kan ikke laste inn modellelementet. S\xF8rg for at modellen eksisterer og at tilgangstillatelser er gitt.",E="Kan ikke fullf\xF8re foresp\xF8rselen.",P="Du har ikke tilgang til \xE5 kj\xF8re dette verkt\xF8yet. <calcite-link target='_blank' href='${ docLink }'>Mer informasjon</calcite-link>",S="Kan ikke logge inn p\xE5 portalen.",b="Kan ikke lese inndata.",$="${ dataPath } mangler en egenskap ved navn ${ missingProperty }.",j="Det finnes allerede et resultatlag med dette navnet. Navn p\xE5 resultatlag m\xE5 v\xE6re unike innenfor organisasjonen. Bruk en annen tittel.",F="Utdatanavnet inneholder ett eller flere ugyldige tegn. <a href='${docLink}' target='_blank'>L\xE6r mer.</a>",I="Publiseringen av det midlertidige laget som et hostet lag mislyktes p\xE5 grunn av ett eller flere ugyldige felter. Kj\xF8r verkt\xF8yet p\xE5 nytt for \xE5 opprette et lag med gyldige felter.",T="Jobbinnsendingen mislyktes. Rull nedover, korriger feilene, og kj\xF8r analysen p\xE5 nytt.",L="${ dataPath } m\xE5 inneholde minst ett tegn som ikke er mellomrom.",K={InsufficientCreditsError:e,accessBlocked:r,additionalProperty:t,anyOfValues:a,cannotWriteToItemResource:n,creditEstimationError:i,defaultError:l,enumValues:o,failedToSaveHistory:s,fullSessionStorage:d,hostedFeatureServiceInvalidTitle:k,hostedFeatureServicePublishDidNotComplete:g,keyPropertiesError:m,layerLoadFailure:u,layerUnavailable:f,maxItems:c,mbFailedToSave:p,minItems:y,minLength:v,modelNotFound:h,networkError:E,noPermissionToAccessTool:P,portalLoadError:S,queryFeaturesError:b,requiredProperty:$,serviceNameExistsError:j,specialCharactersInServiceNameError:F,temporaryLayerFieldsError:I,toolValidationError:T,whiteSpacePattern:L};export{e as InsufficientCreditsError,r as accessBlocked,t as additionalProperty,a as anyOfValues,n as cannotWriteToItemResource,i as creditEstimationError,K as default,l as defaultError,o as enumValues,s as failedToSaveHistory,d as fullSessionStorage,k as hostedFeatureServiceInvalidTitle,g as hostedFeatureServicePublishDidNotComplete,m as keyPropertiesError,u as layerLoadFailure,f as layerUnavailable,c as maxItems,p as mbFailedToSave,y as minItems,v as minLength,h as modelNotFound,E as networkError,P as noPermissionToAccessTool,S as portalLoadError,b as queryFeaturesError,$ as requiredProperty,j as serviceNameExistsError,F as specialCharactersInServiceNameError,I as temporaryLayerFieldsError,T as toolValidationError,L as whiteSpacePattern};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.20250917.
|
4
|
-
import{a,b}from"./
|
3
|
+
v1.1.0-next.20250917.2 */
|
4
|
+
import{a,b}from"./UG3S34JP.js";import"./UZQEPAMF.js";import"./KVPBNPPS.js";import"./KMF7IHAP.js";import"./ZVSX6TBK.js";export{a as DiscussionEditorTypes,b as DiscussionSchema};
|
@@ -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.20250917.
|
4
|
-
import c from"./
|
3
|
+
v1.1.0-next.20250917.2 */
|
4
|
+
import c from"./CIWVFWA4.js";import a from"./7BMLAK67.js";import{b as $}from"./TN6WYWNC.js";import"./4G5LWBKJ.js";import{C as S,D as L,E as b,G as o,I as _,h as m,i as n,o as I,r as f}from"./ERSWMNMV.js";import"./ZVSX6TBK.js";export default $arcgis.t(([,{f:l,h:v}])=>{var y=m`@layer{:host{display:block;position:relative}:host .instant-apps-language-translator-search__input{width:235.5px}:host .instant-apps-language-translator-search__suggestion-list{position:absolute;margin:0;padding:0;width:100%;max-height:30vh;overflow:auto;border-left:none;background-color:var(--calcite-color-foreground-1);border:1px solid #c0c0c0;z-index:702}:host .instant-apps-language-translator-search__suggestion-list-item:first-child{border:none}:host .instant-apps-language-translator-search__suggestion-list-item{margin-top:0;padding:.8em 1em;border-top:solid 1px rgba(110,110,110,.3);display:flex;flex-direction:column;cursor:pointer;word-break:break-word}:host .instant-apps-language-translator-search__suggestion-list-item:hover{background-color:var(--calcite-color-foreground-2)}}`,h="instant-apps-language-translator-search",p={input:`${h}__input`,suggestionList:`${h}__suggestion-list`,suggestionListItem:`${h}__suggestion-list-item`},d=class extends b{constructor(){super(...arguments),this.searchInput=S(),this.results=[],this.suggestionSelected=I()}static{this.properties={results:16,t9nPlaceholder:1}}static{this.styles=y}static{this.shadowRootOptions=f}handleSearch(t){let e=t.target.value?.toLowerCase()?.trim(),s=l.get("uiData"),u=v(),a=l.get("portalItemResourceT9n"),r=l.get("currentLanguage"),g=a?.[r]??{},c=this.getSettingDataItems(u).filter(this.matchedResultsCallback(s,g,e,r));this.results=[...c.map(i=>({fieldName:i,...s.get(i)}))]}matchedResultsCallback(t,e,s,u){return a=>{let r=t.get(a),{label:g}=r.userLocaleData,{value:c}=r.userLocaleData,i=t.get("translatedLanguageLabels")?.[u]?.[a],w=e?.[a],x=this.testUserInput(g,s),k=this.testUserInput(c,s),D=this.testUserInput(i,s),R=this.testUserInput(w,s);return x||k||D||R}}getSettingDataItems(t){return t.filter(e=>e!=="locales"&&e!=="translatedLanguageLabels")}testUserInput(t,e){return!!t?.trim()&&!!e?.trim()&&t?.toLowerCase()?.search(e)!==-1}selectSuggestion(t){let e=t.target.getAttribute("data-field-name");this.suggestionSelected.emit(e),this.resetSearchInput()}resetSearchInput(){this.searchInput.value&&(this.searchInput.value.value=""),this.results=[]}render(){return n`${this.renderSearchInput()}${this.renderSuggestions()}`}renderSearchInput(){return n`<calcite-input class=${o(p.input)} @calciteInputInput=${this.handleSearch} type=search .placeholder=${this.t9nPlaceholder} icon=search ${L(this.searchInput)}></calcite-input>`}renderSuggestions(){return this.results.length>0?this.renderSuggestionList():null}renderSuggestionList(){return n`<ul class=${o(p.suggestionList)}>${this.results.map(t=>this.renderSuggestionListItem(t))}</ul>`}renderSuggestionListItem(t){return n`<li @click=${this.selectSuggestion} class=${o(p.suggestionListItem)} data-field-name=${t.fieldName??_}>${t.userLocaleData.label}</li>`}};$("instant-apps-language-translator-search",d);return d},a,c)
|
@@ -0,0 +1,4 @@
|
|
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.20250917.2 */
|
4
|
+
import{a,b}from"./HV7ZJUG4.js";import"./7K2TNI3E.js";import"./UZQEPAMF.js";import"./KVPBNPPS.js";import"./KMF7IHAP.js";import"./VSUIMUF4.js";import"./ZVSX6TBK.js";export{a as ProjectEditorTypes,b as ProjectSchema};
|
@@ -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.20250917.
|
4
|
-
import{d as w,e as L}from"./
|
3
|
+
v1.1.0-next.20250917.2 */
|
4
|
+
import{d as w,e as L}from"./Q6QQOQ7G.js";import"./QR4Z5GNL.js";import"./SWVG7YKC.js";import{b}from"./IE3HP3EO.js";import{a as V}from"./EVAI3Q2L.js";import"./7KAD4UDG.js";import"./4G5LWBKJ.js";import{b as v}from"./P5XN5L7G.js";import{C as c,D as p,E as M,G as m,h as y,i as l,o as h,r as f}from"./ERSWMNMV.js";import"./ZVSX6TBK.js";var S=y`@layer{/** @license
|
5
5
|
* Copyright 2025 Esri
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.20250917.
|
4
|
-
import{a as s}from"./
|
3
|
+
v1.1.0-next.20250917.2 */
|
4
|
+
import{a as s}from"./QJGLGCY6.js";import"./XUWSQORW.js";import"./KVMVCMLG.js";import"./WMEZR7FC.js";import"./RFMEIINM.js";import"./PSJSGIKL.js";import"./QYA24OPS.js";import"./UTFBB7GM.js";import"./UNDJ7YPO.js";import"./UG3S34JP.js";import"./GGMEKIRZ.js";import"./6EZSKLB2.js";import"./M77NQ22F.js";import"./VDABGJEZ.js";import"./NDMJIBFT.js";import"./NDQ5G5H4.js";import"./HV7ZJUG4.js";import"./CRW7KHCH.js";import"./7K2TNI3E.js";import"./UZQEPAMF.js";import"./KVPBNPPS.js";import"./KMF7IHAP.js";import"./VSUIMUF4.js";import"./ZVSX6TBK.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,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.20250917.
|
4
|
-
import"./
|
3
|
+
v1.1.0-next.20250917.2 */
|
4
|
+
import"./ZVSX6TBK.js";var e="Nincs elegend\u0151 kreditje a m\u0171velet elv\xE9gz\xE9s\xE9hez. Seg\xEDts\xE9g\xE9rt forduljon az ArcGIS rendszergazd\xE1j\xE1hoz.",a="Ez az eszk\xF6z egy jegyzetf\xFCzetb\u0151l lett k\xF6zz\xE9t\xE9ve. AzArcGIS Notebooks-hoz val\xF3 hozz\xE1f\xE9r\xE9s blokkolva van a szervezet sz\xE1m\xE1ra. A be\xE1ll\xEDt\xE1s m\xF3dos\xEDt\xE1s\xE1hoz vegye fel a kapcsolatot a rendszergazd\xE1val.",t="${ dataPath } nem rendelkezhet ezzel: ${ additionalProperty }.",r="A(z) ${ dataPath } \xE9rt\xE9k\xE9nek egyeznie kell a k\xF6vetkez\u0151k egyik\xE9nek s\xE9m\xE1j\xE1val: ${ schemaOptions }.",l="Pr\xF3b\xE1lkozzon \xFAjra a t\xE9rk\xE9p ment\xE9s\xE9vel.",s="A kreditbecsl\xE9s nem siker\xFClt. G\xF6rgessen le, jav\xEDtsa ki a hib\xE1kat, majd v\xE9gezze el ism\xE9t a kreditbecsl\xE9st.",o="Hiba t\xF6rt\xE9nt az elemz\xE9s futtat\xE1sa k\xF6zben.",n="${ dataPath } \xE9rt\xE9k\xE9nek egyeznie kell a k\xF6vetkez\u0151 megengedett \xE9rt\xE9kek egyik\xE9vel: ${ allowedValues }.",i="Az elemz\xE9sel\u0151zm\xE9nyek ment\xE9se nem siker\xFClt.",k="Az el\u0151zm\xE9nyt\xE1rhely megtelt. T\xE1vol\xEDtson el n\xE9h\xE1ny elemet az elemz\xE9sel\u0151zm\xE9nyekb\u0151l, \xE9s pr\xF3b\xE1lkozzon \xFAjb\xF3l a ment\xE9ssel.",z="A szolg\xE1ltat\xE1s neve egy vagy t\xF6bb \xE9rv\xE9nytelen karaktert tartalmaz.",m="Az ideiglenes r\xE9teg t\xE1rolt vektoros r\xE9tegk\xE9nt t\xF6rt\xE9n\u0151 ment\xE9se nem fejez\u0151d\xF6tt be.",d="Nem siker\xFClt beolvasni a kulcs tulajdons\xE1gait.",g="Nem siker\xFClt bet\xF6lteni a r\xE9teget.",v="A r\xE9teg nem \xE9rhet\u0151 el.",y="A(z) ${ dataPath } elemeinek sz\xE1ma legfeljebb ${ limit } lehet.",b="Hiba t\xF6rt\xE9nt a modell ment\xE9se k\xF6zben. Pr\xF3b\xE1lkozzon \xFAjra a ment\xE9ssel.",c="A(z) ${ dataPath } elemeinek sz\xE1ma legal\xE1bb ${ limit } kell legyen.",h="A(z) ${ dataPath } hossza legal\xE1bb ${ limit } karakter kell legyen.",u="Nem siker\xFClt bet\xF6lteni a modellelemet. Gy\u0151z\u0151dj\xF6n meg arr\xF3l, hogy a modell l\xE9tezik, \xE9s hogy a hozz\xE1f\xE9r\xE9si enged\xE9lyt megadt\xE1k.",f="A k\xE9r\xE9s v\xE9grehajt\xE1sa nem siker\xFClt.",E="Nincs jogosults\xE1ga az eszk\xF6z futtat\xE1s\xE1hoz. <calcite-link target='_blank' href='${ docLink }'>Tov\xE1bbi inform\xE1ci\xF3</calcite-link>",p="Nem siker\xFClt bejelentkezni a port\xE1lra.",P="Nem siker\xFClt beolvasni a bemeneti adatokat.",j="A(z) ${ dataPath } eset\xE9ben hi\xE1nyzik a(z) ${ missingProperty } nev\u0171 tulajdons\xE1g.",A="Ilyen nev\u0171 eredm\xE9nyr\xE9teg m\xE1r l\xE9tezik. Az eredm\xE9nyr\xE9tegeknek egyedieknek kell lenni\xFCk az eg\xE9sz szervezetben. Haszn\xE1ljon m\xE1sik nevet.",S="A kimenet neve egy vagy t\xF6bb \xE9rv\xE9nytelen karaktert tartalmaz. <a href='${docLink}' target='_blank'>Tov\xE1bbi inform\xE1ci\xF3.</a>",$="Az ideiglenes r\xE9teg hosztolt r\xE9tegk\xE9nt val\xF3 k\xF6zz\xE9t\xE9tele egy vagy t\xF6bb \xE9rv\xE9nytelen mez\u0151 miatt sikertelen volt. Ind\xEDtsa \xFAjra az eszk\xF6zt az \xE9rv\xE9nyes mez\u0151kkel rendelkez\u0151 r\xE9teg l\xE9trehoz\xE1s\xE1hoz.",I="A feladat bek\xFCld\xE9se nem siker\xFClt. G\xF6rgessen le, jav\xEDtsa ki a hib\xE1kat, majd futtassa \xFAjra az elemz\xE9st.",N="A k\xF6vetkez\u0151nek legal\xE1bb egy nem-whitespace karaktert kell tartalmaznia: ${ dataPath }",T={InsufficientCreditsError:e,accessBlocked:a,additionalProperty:t,anyOfValues:r,cannotWriteToItemResource:l,creditEstimationError:s,defaultError:o,enumValues:n,failedToSaveHistory:i,fullSessionStorage:k,hostedFeatureServiceInvalidTitle:z,hostedFeatureServicePublishDidNotComplete:m,keyPropertiesError:d,layerLoadFailure:g,layerUnavailable:v,maxItems:y,mbFailedToSave:b,minItems:c,minLength:h,modelNotFound:u,networkError:f,noPermissionToAccessTool:E,portalLoadError:p,queryFeaturesError:P,requiredProperty:j,serviceNameExistsError:A,specialCharactersInServiceNameError:S,temporaryLayerFieldsError:$,toolValidationError:I,whiteSpacePattern:N};export{e as InsufficientCreditsError,a as accessBlocked,t as additionalProperty,r as anyOfValues,l as cannotWriteToItemResource,s as creditEstimationError,T as default,o as defaultError,n as enumValues,i as failedToSaveHistory,k as fullSessionStorage,z as hostedFeatureServiceInvalidTitle,m as hostedFeatureServicePublishDidNotComplete,d as keyPropertiesError,g as layerLoadFailure,v as layerUnavailable,y as maxItems,b as mbFailedToSave,c as minItems,h as minLength,u as modelNotFound,f as networkError,E as noPermissionToAccessTool,p as portalLoadError,P as queryFeaturesError,j as requiredProperty,A as serviceNameExistsError,S as specialCharactersInServiceNameError,$ as temporaryLayerFieldsError,I as toolValidationError,N as whiteSpacePattern};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.20250917.
|
4
|
-
import{A as y,k as P,t as k,u as w,v as V,w as m,x as h,y as A,z as D}from"./
|
3
|
+
v1.1.0-next.20250917.2 */
|
4
|
+
import{A as y,k as P,t as k,u as w,v as V,w as m,x as h,y as A,z as D}from"./ERSWMNMV.js";var b=(s,f,c)=>{let p=new Map;for(let e=f;e<=c;e++)p.set(s[e],e);return p},I=w(class extends V{constructor(s){if(super(s),s.type!==k.CHILD)throw Error("repeat() can only be used in text expressions")}dt(s,f,c){let p;c===void 0?c=f:f!==void 0&&(p=f);let e=[],n=[],o=0;for(let a of s)e[o]=p?p(a,o):o,n[o]=c(a,o),o++;return{values:n,keys:e}}render(s,f,c){return this.dt(s,f,c).values}update(s,[f,c,p]){let e=D(s),{values:n,keys:o}=this.dt(f,c,p);if(!Array.isArray(e))return this.ut=o,n;let a=this.ut??=[],u=[],v,g,t=0,l=e.length-1,r=0,i=n.length-1;for(;t<=l&&r<=i;)if(e[t]===null)t++;else if(e[l]===null)l--;else if(a[t]===o[r])u[r]=h(e[t],n[r]),t++,r++;else if(a[l]===o[i])u[i]=h(e[l],n[i]),l--,i--;else if(a[t]===o[i])u[i]=h(e[t],n[i]),m(s,u[i+1],e[t]),t++,i--;else if(a[l]===o[r])u[r]=h(e[l],n[r]),m(s,e[t],e[l]),l--,r++;else if(v===void 0&&(v=b(o,r,i),g=b(a,t,l)),v.has(a[t]))if(v.has(a[l])){let d=g.get(o[r]),x=d!==void 0?e[d]:null;if(x===null){let C=m(s,e[t]);h(C,n[r]),u[r]=C}else u[r]=h(x,n[r]),m(s,e[t],x),e[d]=null;r++}else y(e[l]),l--;else y(e[t]),t++;for(;r<=i;){let d=m(s,u[i+1]);h(d,n[r]),u[r++]=d}for(;t<=l;){let d=e[t++];d!==null&&y(d)}return this.ut=o,A(s,u),P}});export{I 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.20250917.
|
4
|
-
import e from"./
|
3
|
+
v1.1.0-next.20250917.2 */
|
4
|
+
import e from"./E6V536IL.js";import b from"./CMNI7HPB.js";import"./2EA73XDR.js";import a from"./7BMLAK67.js";import{a as p}from"./DZSLREXG.js";import"./MI5QJ6G4.js";import{b as l}from"./TN6WYWNC.js";import"./7KAD4UDG.js";import"./4G5LWBKJ.js";import{E as o,G as d,I as c,h as s,i as t,o as r}from"./ERSWMNMV.js";import"./ZVSX6TBK.js";export default $arcgis.t(([,{b:h},{i:g,t:v}])=>{var x=s`:host{display:block;--instant-apps-interactive-legend-heading-font-size: 1rem;--instant-apps-interactive-legend-heading-font-weight: 500;--instant-apps-interactive-legend-secondary-color: var(--calcite-color-text-1);--instant-apps-interactive-legend-ui-padding: 15px 10px}:host .instant-apps-interactive-legend__header--compact .esri-widget__heading{font-size:.9rem}:host .esri-widget__heading{overflow:hidden;margin:0;display:inline-block;font-size:var(--calcite-font-size-1);font-weight:var(--instant-apps-interactive-legend-heading-font-weight)}:host header{display:flex;text-align:left;padding:var(--instant-apps-interactive-legend-ui-padding);background-color:var(--instant-apps-interactive-legend-secondary-background-color);color:var(--instant-apps-interactive-legend-secondary-color)}:host header h3{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;line-height:normal;color:var(--instant-apps-interactive-legend-secondary-color);margin-bottom:5px}:host header .instant-apps-interactive-legend__heading-text--group-item{-webkit-line-clamp:2;line-clamp:2}:host header span{width:100%;font-size:var(--instant-apps-interactive-legend-total-feature-count-font-size);color:var(--instant-apps-interactive-legend-secondary-color)}:host header .instant-apps-interactive-legend__header-action-container{display:flex;align-items:center}:host .esri-widget__heading header{padding:var(--instant-apps-interactive-legend-ui-padding)}:host .esri-widget--panel{margin:0}:host(.calcite-mode-dark) .instant-apps-interactive-legend__header{background-color:#242424;color:var(--calcite-color-text-1)}:host(.calcite-mode-light) .instant-apps-interactive-legend__header{background-color:#fff;color:var(--calcite-color-text-1)}`,e={label:"esri-legend__service-label",header:"esri-widget__heading",interacitveLegendHeader:"instant-apps-interactive-legend__header",headerActionContainer:"instant-apps-interactive-legend__header-action-container",compact:"instant-apps-interactive-legend__header--compact"},a=class extends o{constructor(){super(...arguments),this._messages=p({name:"instant-apps-interactive-legend"}),this.isChild=!1,this.expanded=!0,this.layerCaptionElementExpandUpdated=r()}static{this.properties={legendvm:0,featureCount:5,activeLayerInfo:0,isChild:5,expanded:5}}static{this.styles=x}toggleExpanded(){return()=>{this.expanded=!this.expanded,this.layerCaptionElementExpandUpdated.emit(this.expanded)}}render(){let m=g(this.activeLayerInfo),{expanded:n}=this,i=n?this._messages?.collapse:this._messages?.expand,f=this.isChild?" instant-apps-interactive-legend__heading-text--group-item":"",_=h.get("compact")?` ${e.compact}`:"";return t`<header class=${`${e.interacitveLegendHeader} ${v(this.el)}${_}`}><calcite-action @click=${this.toggleExpanded()} .icon=${n?"chevron-down":"chevron-up"} appearance=transparent .text=${i??""} .label=${i} scale=s></calcite-action><span><span class=${d(e.headerActionContainer)}><h3 class=${`${e.header} ${e.label}${f}`} title=${this.activeLayerInfo?.title??""??c}>${this.activeLayerInfo?.title}</h3></span>${this.featureCount&&m?t`<instant-apps-interactive-legend-count .activeLayerInfo=${this.activeLayerInfo} show-total .legendvm=${this.legendvm}></instant-apps-interactive-legend-count>`:null}</span></header>`}};l("instant-apps-interactive-legend-layer-element-caption",a);return a},a,b,e)
|
@@ -0,0 +1,4 @@
|
|
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.20250917.2 */
|
4
|
+
import{a}from"./SGD4CC4F.js";import"./S33EWYS4.js";import"./O7NHLOYI.js";import"./5BNR6F5K.js";import"./FQJZZBZS.js";import"./PLRMXXZL.js";import"./UTFBB7GM.js";import"./ZVSX6TBK.js";export{a 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.20250917.
|
4
|
-
import{a as o,b as s,c as i,d as p}from"./
|
3
|
+
v1.1.0-next.20250917.2 */
|
4
|
+
import{a as o,b as s,c as i,d as p}from"./7K2TNI3E.js";import{a as e}from"./UZQEPAMF.js";import{b as t}from"./KVPBNPPS.js";import{c as r}from"./VSUIMUF4.js";var E=["hub:project:create","hub:project:create2","hub:project:edit","hub:project:metrics","hub:project:settings"],b=Object.assign(Object.assign({},e),{properties:Object.assign(Object.assign({},e.properties),{_groups:{type:"array",items:{type:"string"}},status:{type:"string",default:t.notStarted,enum:Object.keys(t)},_metric:{type:"object",required:["cardTitle"],properties:r.properties}}),allOf:[s,o,p,i]});export{E as a,b};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.20250917.
|
4
|
-
import{a as f}from"./PAH2YDTS.js";import{a as _}from"./3XYB36Q3.js";import{a as S}from"./EWVUFFYM.js";import{B as D,C as I}from"./NQ3M6L4H.js";import{b as L}from"./2LPFG2CT.js";import"./LQYMUUF3.js";import"./VZU32GLR.js";import{C as b,D as $,E as C,G as p,h as v,i as l,l as m,o as E}from"./PBZRZP7G.js";import"./UF6K5ZJL.js";var k="instant-apps-filter-list calcite-mode-light",O="instant-apps-filter-list calcite-mode-dark",x=["feature","geojson","wfs","csv","scene","subtype-group","point-cloud","map-image","sublayer"];function w(h){return h.replaceAll("'","''")}function y(h,t=!1){if(h){let e=new Date(h),i=`${e.getFullYear()}-${e.getMonth()+1}-${e.getDate()}`;if(t){let s=`${e.getHours()}:${e.getMinutes()}:${e.getSeconds()}`;return`${i} ${s}`}else return i}}function P(h){if(h!=null){h.value=["",""];let t=h.shadowRoot?.querySelectorAll("calcite-input");if(t!=null)for(let e of t)e.value=""}}var R=v`:host{display:block}.instant-apps-filter-list *{box-sizing:border-box}.instant-apps-filter-list__container{height:100%}.instant-apps-filter-list__container calcite-block:last-of-type{margin-bottom:0}.instant-apps-filter-list__footer{padding:12px;display:flex}.instant-apps-filter-list__footer calcite-button:nth-child(2){margin-left:6px}.instant-apps-filter-list__item-container,.instant-apps-filter-list__item-container--user-input{display:flex;justify-content:space-between;align-items:center}.instant-apps-filter-list__item-container:not(:last-child),.instant-apps-filter-list__item-container--user-input:not(:last-child){padding-bottom:20px}.instant-apps-filter-list__item-container--user-input{margin:0;display:flex;flex-direction:column;align-items:flex-start}.instant-apps-filter-list__item-container--user-input>span{margin:0 0 6px;font-size:14px;font-weight:400}.instant-apps-filter-list__item-container--user-input calcite-combobox{width:100%;font-size:16px;--calcite-combobox-input-height: 24px}.instant-apps-filter-list__number-input-container{width:100%;display:flex;justify-content:center}.instant-apps-filter-list__number-input-container calcite-slider{width:90%}.instant-apps-filter-list__date-picker-input-container{display:flex;align-items:center;justify-content:unset;width:100%}.instant-apps-filter-list__date-picker-input-container calcite-action{height:65px;border-top:1px solid var(--calcite-color-border-input);border-right:1px solid var(--calcite-color-border-input);border-bottom:1px solid var(--calcite-color-border-input)}.instant-apps-filter-list__title{margin-right:20px}.instant-apps-filter-list__title>p{font-size:14px;font-weight:400;margin:0}.instant-apps-filter-list__checkbox-container{display:flex}.instant-apps-filter-list__checkbox-container calcite-checkbox{height:18px}.instant-apps-filter-list__operator-description{margin:0;--calcite-font-size--1: 12px}.instant-apps-filter-list calcite-input-date-picker{--calcite-font-size--1: 16px}@media (prefers-reduced-motion){.instant-apps-filter-list calcite-loader{--calcite-internal-duration-factor: 2;--calcite-internal-animation-timing-slow: .6s }}.instant-apps-filter-list.calcite-mode-dark .instant-apps-filter-list__header-container{background:#2b2b2b;color:#fff}.instant-apps-filter-list.calcite-mode-dark .instant-apps-filter-list__operator-description{background:#353535}`,u={filterContainer:"instant-apps-filter-list__container",footer:"instant-apps-filter-list__footer",filterItemTitle:"instant-apps-filter-list__title",filterItemContainer:"instant-apps-filter-list__item-container",filterUIItemContainer:"instant-apps-filter-list__item-container--user-input",checkboxContainer:"instant-apps-filter-list__checkbox-container",numberInputContainer:"instant-apps-filter-list__number-input-container",dateInputContainer:"instant-apps-filter-list__date-picker-input-container",operatorDesc:"instant-apps-filter-list__operator-description"},F=class extends C{constructor(){super(...arguments),this._messages=S({name:"instant-apps-filter-list",blocking:!0}),this.resetBtnEl=b(),this.panelEl=b(),this.isLayerExpUpdated=!1,this.baseClass=k,this.autoUpdateUrl=!1,this.closeBtn=!1,this.comboboxOverlayPositioning="absolute",this.openFilters=!1,this.extentSelector=!1,this.filterCount=0,this.zoomBtn=!0,this.resetBtn=!0,this.resetFiltersOnDisconnect=!0,this.filterListReset=E(),this.filterUpdate=E()}static{this.properties={loading:16,filterLayerExpressions:16,baseClass:16,initDefExpressions:16,initMapImageExpressions:16,initPointCloudFilters:16,layerExpressions:0,autoUpdateUrl:5,closeBtn:5,closeBtnOnClick:0,comboboxOverlayPositioning:1,closeBtnText:1,openFilters:5,extentSelector:5,extentSelectorConfig:0,urlParams:0,filterCount:9,view:0,zoomBtn:5,resetBtn:5,resetFiltersOnDisconnect:5}}static{this.styles=R}async forceReset(){return this.resetExpressions(),await Promise.resolve(!0)}async getCurrentLayerExpressions(){let t=structuredClone(this.filterLayerExpressions);return await Promise.resolve(t)}async getFilterInitState(){return await Promise.resolve({initDefExpressions:this.initDefExpressions,initMapImageExpressions:this.initMapImageExpressions,initPointCloudFilters:this.initPointCloudFilters})}async handleUpdatingT9nData(t){return t==null?await Promise.resolve(!0):(this.filterLayerExpressions?.forEach(e=>{let i=t?.find(s=>s.id===e.id);i!=null&&(e.title=i.title,e.expressions?.forEach(s=>{let n=i.expressions?.find(a=>a.id===s.id);n!=null&&(s.name=n.name)}))}),await Promise.resolve(!0))}async updateInitDefExpressions(t){return this.initDefExpressions=t.initDefExpressions,this.initMapImageExpressions=t.initMapImageExpressions,this.initPointCloudFilters=t.initPointCloudFilters,await Promise.resolve(!0)}connectedCallback(){super.connectedCallback(),!(this.layerExpressions==null&&this.view==null)&&(this.isLayerExpUpdated=!0,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.handleLayerExpressionsUpdate())}async load(){this.baseClass=_(this.el)==="dark"?O:k,await this.initializeModules(),!this.isLayerExpUpdated&&(this.isLayerExpUpdated=!0,this.filterLayerExpressions=this.layerExpressions!=null?structuredClone(this.layerExpressions):[],this.view!=null&&this.handleLayerExpressionsUpdate())}willUpdate(t){t.has("view")&&this.handleWhenView(),t.has("layerExpressions")&&(this.resetAllFilters(),this.filterLayerExpressions=structuredClone(this.layerExpressions),this.handleLayerExpressionsUpdate())}updated(){this.resetBtnEl.value!=null&&(this.resetBtnEl.value.disabled=!(this.filterLayerExpressions&&this.filterLayerExpressions.length>0))}disconnectedCallback(){super.disconnectedCallback(),this.resetFiltersOnDisconnect&&(this.isLayerExpUpdated=!1,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.resetAllFilters())}async initializeModules(){let[t,e]=await Promise.all([I(),D()]);this.geometryJsonUtils=e,this.intl=t}initFilterConfig(){if(this.filterLayerExpressions&&this.filterLayerExpressions.length>0){if(this.filterLayerExpressions.length===1){let{operator:t}=this.filterLayerExpressions[0],e=t?.trim()==="OR"?"orOperator":"andOperator",i=this.renderZoomTo(this.filterLayerExpressions[0]);return l`<calcite-block class=${p(u.operatorDesc)} .heading=${this._messages[e]} expanded>${i}${this.renderFilter(this.filterLayerExpressions[0])}</calcite-block>`}else if(this.filterLayerExpressions.length>1)return this.renderLayerBlock()}}handleResetDatePicker(t,e){let i=this.panelEl.value?.querySelector(`[id='${t.id}']`);i&&(P(i),t.active=!1,t.definitionExpression=void 0,t.range=void 0,this.generateOutput(e))}initInput(t,e){let{type:i,numDisplayOption:s,displayOption:n}=e;if(i==="string"||i==="coded-value"||(i==="number"||i==="range"||i==="date")&&(s==="drop-down"||n==="drop-down"))return this.renderCombobox(t,e);if(i==="number"||i==="range")return this.renderNumberSlider(t,e);if(i==="date")return this.renderDatePicker(t,e)}async initExpressions(){if(this.loading=!0,this.filterLayerExpressions==null||this.view==null){this.loading=!1;return}await this.processExpressions(),this.loading=!1}async processExpressions(){this.filterLayerExpressions&&await Promise.all(this.filterLayerExpressions.map(async t=>{await Promise.all((t.expressions||[]).map(async e=>await this.setInitExpression(t,e)))}))}handleResetFilter(){this.resetExpressions(),this.resetAllFilters(),this.generateURLParams(),this.filterListReset.emit()}resetExpressions(){this.filterLayerExpressions?.forEach(t=>{t.expressions?.forEach(e=>{let{type:i,numDisplayOption:s,displayOption:n}=e,a="";i==="string"||i==="coded-value"||i==="date"&&(s==="drop-down"||n==="drop-down")||(i==="number"||i==="range")&&(s==="drop-down"||n==="drop-down")?a="combobox":i==="date"?a="datePicker":(i==="number"||i==="range")&&(a="numberRange"),a?this.resetExpressionUI(a,e):this.resetCheckbox(e),e.active=!1})})}resetExpressionUI(t,e){let{id:i}=e;switch(t){case"combobox":{e.selectedFields=void 0;let s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&Array.from(s.children).forEach(n=>{n.selected=!1});break}case"datePicker":{e.range=void 0;let s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&P(s);break}case"numberRange":{e.range=void 0;let s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&(s.minValue=e.min,s.maxValue=e.max);break}}}resetCheckbox(t){let{id:e}=t,i=this.panelEl.value?.querySelector(`[id='${e}']`);i&&(i.checked=!1)}resetAllFilters(){this.view?.map?.allLayers?.concat(this.view?.map?.allTables.toArray()??[])?.forEach(t=>{if(!x.includes(t.type))return;let e=t;if(e.type==="point-cloud"){if(!this.initPointCloudFilters)return;e.filters=this.initPointCloudFilters[e.id]}else if(e.type==="map-image")e.allSublayers.forEach(i=>{i.definitionExpression=this.initMapImageExpressions?.[e.id]?.[i.id]??""});else{if(this.initDefExpressions==null)return;e.definitionExpression=this.initDefExpressions[e.id]}})}async updateStringExpression(t,e){let i=this.findFilterLayer(t);return await this.getFeatureAttributes(i,e),this.handleDateField(i,e),e?.selectedFields?(e.definitionExpression=this.createDefinitionExpression(e),!0):!1}handleDateField(t,e){e.type==="date"&&t.fields.find(({name:i})=>i===e.field)?.type==="date-only"&&(e.dateOnly=!0)}createDefinitionExpression(t){if(!t.selectedFields?.length)return"";let e=t.selectedFields.map(i=>typeof i=="number"?i:`'${w(i)}'`);return`${t.field} IN (${e.join(",")})`}async updateNumberExpression(t,e){if(!e?.min&&e?.min!==0||!e?.max&&e?.max!==0){let i=this.findFilterLayer(t),{field:s}=e;if(s!=null)if(this.setExpressionFormat(i,e,s),e?.numDisplayOption==="drop-down"||e?.displayOption==="drop-down")await this.getFeatureAttributes(i,e);else{let n=(await this.calculateMinMaxStatistics(i,s))?.[0]?.attributes;if(e.format?.places!=null?(e.min=this.roundMinNumberDown(n[`min${s}`],e.format.places),e.max=this.roundMaxNumberUp(n[`max${s}`],e.format.places)):(e.min=n[`min${s}`],e.max=n[`max${s}`]),e?.range&&Object.keys(e.range).length){let{min:a,max:r}=e.range;return e.definitionExpression=`${e.field} BETWEEN ${a} AND ${r}`,!0}}}return!1}async updateDateExpression(t,e){let{field:i,range:s}=e,n=this.findFilterLayer(t),a=(await this.calculateMinMaxStatistics(n,i))?.[0]?.attributes;if(e.min=y(a[`min${i}`]),e.max=y(a[`max${i}`]),s!=null&&(s?.max!=null||s?.min!=null)){let{min:r,max:o}=s;if(r=r?.replace("+"," "),o=o?.replace("+"," "),r||o){let c=o&&!r?"<":!o&&r?">":null;return c?e.definitionExpression=`${i} ${c} '${r??o}'`:e.definitionExpression=`${i} BETWEEN '${r}' AND '${o}'`,!0}}return!1}async updateCodedValueExpression(t,e,i){if(!i?.domain||i?.domain?.type!=="coded-value")return!1;let s=this.findFilterLayer(t);await this.getFeatureAttributes(s,e);let n=i.domain.codedValues.reduce((a,{code:r,name:o})=>(a[r]=o,a),{});if(e.codedValues=n,e.selectedFields?.length){let a=e.selectedFields.map(r=>typeof r=="number"?r:`'${w(r)}'`).join(",");return e.definitionExpression=`${e.field} IN (${a})`,!0}return!1}updateRangeExpression(t,e){if(!e?.domain||e?.domain?.type!=="range")return!1;let{field:i,range:s}=t;return t.min=e.domain.minValue,t.max=e.domain.maxValue,s&&Object.keys(s).length?(t.definitionExpression=`${i} BETWEEN ${s.min} AND ${s.max}`,!0):!1}async getFeatureAttributes(t,e){if(!this.isLayerSupported(t)){e.fields=[];return}let i=await this.getQueryLayer(t),{maxRecordCount:s,supportsMaxRecordCountFactor:n}=this.extractQueryCapabilities(t),a=await i.queryFeatureCount(),r=this.createQuery(i,e);await this.queryDistinctFeatures(i,r,e),this.shouldPaginate(s,a,n)&&this.handlePagination(i,r,s,n,a,e)}isLayerSupported(t){return t&&x.includes(t.type)}extractQueryCapabilities(t){return{maxRecordCount:t.capabilities?.query?.maxRecordCount??t.sourceJSON?.maxRecordCount,supportsMaxRecordCountFactor:t.capabilities?.query?.supportsMaxRecordCountFactor}}createQuery(t,e){let i=t.createQuery();this.applyCacheHint(t,i);let s=e?.field;if(s){let n=this.getInitDefExprFromLayer(t);i.where=n||"1=1",i.outFields=[s],i.orderByFields=[`${s} ASC`],i.returnDistinctValues=!0,i.returnGeometry=!1,i.maxRecordCountFactor=5,this.applyQueryGeometryFromExtentSelector(i)}return i}async queryDistinctFeatures(t,e,i){if(!e.outFields)return;let s=await this.queryForFeatures(t,e,e.outFields[0]);s?.length&&(i.fields=[...new Set(s)],i.type==="string"?i.fields=i.fields.sort((n,a)=>n.localeCompare(a)):i.type==="number"&&(i.fields=i.fields.sort((n,a)=>n-a)))}getQueryCount(t,e){return e?t*5:t}shouldPaginate(t,e,i){let s=this.getQueryCount(t,i);return t!=null&&e>s}async handlePagination(t,e,i,s,n,a){let r=this.getQueryCount(i,s),o=[];for(let c=r;c<n;c+=r){let d=e.clone();d.num=i,d.start=c,o.push(this.queryForFeatures(t,d,e?.outFields?.[0]??""))}Promise.all(o).then(c=>{c.forEach(d=>{d?.length&&a.fields&&a.fields.push(...d)}),a.type==="string"?a.fields=[...new Set(a.fields)].sort((d,g)=>d.localeCompare(g)):a.type==="number"?a.fields=[...new Set(a.fields)].sort((d,g)=>d-g):a.fields=[...new Set(a.fields)].sort()})}async queryForFeatures(t,e,i){return(await t.queryFeatures(e))?.features.filter(s=>s.attributes?.[i])?.map(s=>s.attributes?.[i])}async calculateMinMaxStatistics(t,e){if(!t||!x.includes(t.type)||!e)return[];let i=this.createStatisticsQuery(t,e);return(await t.queryFeatures(i))?.features||[]}createStatisticsQuery(t,e){let i=t.createQuery();return i.where=this.getInitDefExprFromLayer(t)||"1=1",this.applyCacheHint(t,i),i.outStatistics=[{onStatisticField:e,outStatisticFieldName:`max${e}`,statisticType:"max"},{onStatisticField:e,outStatisticFieldName:`min${e}`,statisticType:"min"}],this.applyQueryGeometryFromExtentSelector(i),i}getExtent(t,e){if(t&&e){let{constraints:i}=e,s={...i}.geometry;if(s){let n="extent"in s?s:this.geometryJsonUtils.fromJSON(s);if(n?.type==="extent"||n?.type==="polygon")return n}}}async setInitExpression(t,e){if(!e.field||!e.type){await this.updateExpression(t,e,void 0);return}let i=this.findFilterLayer(t);i&&((i.loadStatus==="not-loaded"||i.loadStatus==="failed")&&await i.load(),await i.when(async()=>{let s=i.fields?.find(({name:a})=>a===e.field),n=s?.domain?.type;e.type=n==="coded-value"||n==="range"?n:e.type,await this.updateExpression(t,e,s)}))}async updateExpression(t,e,i){await this.handleExpressionType(t,e,i)&&this.generateOutput(t)}async handleExpressionType(t,e,i){switch(e.type){case"string":return await this.updateStringExpression(t,e);case"number":return await this.updateNumberExpression(t,e);case"date":return await this.updateDateExpressionBasedOnDisplayOption(t,e);case"coded-value":return await this.updateCodedValueExpression(t,e,i);case"range":return await this.updateRangeExpressionBasedOnDisplayOption(t,e,i);case"checkbox":case null:case void 0:return e.active??!1;default:return!1}}async updateDateExpressionBasedOnDisplayOption(t,e){return e.displayOption==="drop-down"?await this.updateStringExpression(t,e):await this.updateDateExpression(t,e)}async updateRangeExpressionBasedOnDisplayOption(t,e,i){return e.displayOption==="drop-down"?await this.updateStringExpression(t,e):this.updateRangeExpression(e,i)}updateRangeExpressions(t,e,i,s){let n=this.getInitDefExprFromLayerExpression(e);(s||s===0)&&(i||i===0)&&(s===t?.min&&i===t?.max?(t.definitionExpression=void 0,t.active=!1):(t.definitionExpression=n?`(${n}) AND ${t?.field} BETWEEN ${s} AND ${i}`:`${t?.field} BETWEEN ${s} AND ${i}`,t.active=!0)),t.range={min:s,max:i}}handleCheckboxChange(t,e,i){let s=i.target;e.active=s.checked,this.generateOutput(t)}handleSliderChange(t,e,i){let{maxValue:s,minValue:n}=i.target;this.updateRangeExpressions(t,e,s,n),this.generateOutput(e)}handleComboSelect(t,e,i){let s=i.target.selectedItems,{field:n,type:a}=t;if(t.selectedFields=s.map(({value:r})=>r),s.length){let r=s.map(({value:o})=>typeof o=="number"?o:`'${w(o)}'`);t.definitionExpression=a==="date"?r.map(o=>this.buildDateExpression(o,n)).join(" OR "):`${n} IN (${r.join(",")})`,t.active=!0}else t.definitionExpression=void 0,t.active=!1;this.generateOutput(e)}handleDatePickerRangeChange(t,e,i){let s=i.target,[n,a]=s.valueAsDate,r=n?y(Math.floor(n.getTime()),!0):void 0,o=a?y(Math.floor(a.getTime()),!0):void 0;(r||o)&&(t.definitionExpression=this.constructDefinitionExpression(t.field,r,o),t.range={min:r,max:o},t.active=!0,this.generateOutput(e))}constructDefinitionExpression(t,e,i){return e?i?`${t} BETWEEN '${e}' AND '${i}'`:`${t} > '${e}'`:`${t} < '${i}'`}handleURLParams(){if(!("URLSearchParams"in window))return;let t=new URLSearchParams(document.location.search).get("filter");if(!t){this.filterCount=0;return}let e=t.split(";").map(i=>JSON.parse(i));this.filterCount=this.applyFilters(e)}applyFilters(t){let e=0;return t.forEach(i=>{let s=this.filterLayerExpressions?.find(n=>n.id===i.layerId);s&&s.expressions?.forEach(n=>{n.id?.toString()===i.expressionId?.toString()&&(this.activateExpression(n,i),e++)})}),e}activateExpression(t,e){t.active=!0,e.type==="range"?t.range=e.range:e.type==="select"&&(t.selectedFields=e.selectedFields)}createURLParamExpression(t,e){let{id:i,range:s,selectedFields:n,type:a}=e;return a==="string"||a==="coded-value"||e?.numDisplayOption==="drop-down"||e?.displayOption==="drop-down"?{type:"select",layerId:t.id,expressionId:i.toString(),selectedFields:n}:a==="number"||a==="range"||a==="date"?{type:"range",layerId:t.id,expressionId:i.toString(),range:s}:{layerId:t.id,expressionId:i.toString()}}autoUpdateURLCheck(t){if(this.autoUpdateUrl){let e=t.toString()?`${window.location.pathname}?${t}`.trim():window.location.pathname;window.history.replaceState({},"",e)}}generateURLParams(){if(!("URLSearchParams"in window))return;let t=new URLSearchParams(window.location.search),e=this.filterLayerExpressions?.flatMap(i=>i?.expressions?.filter(s=>s.active).map(s=>JSON.stringify(this.createURLParamExpression(i,s)))||[])||[];this.filterCount=e.length,e.length>0?t.set("filter",e.join(";")):t.delete("filter"),this.autoUpdateURLCheck(t),this.urlParams=t}updateFilter(t,e,i){let{id:s}=t,n=this.view.map?.findLayerById(s)??this.view.map?.findTableById(s);if(n!=null)if(n.type==="point-cloud")this.updateFilterLayerPCLFilter(n,i);else if(n.type==="map-image"){let a=n.findSublayerById(t?.sublayerId);a!=null&&this.updateFilterLayerDefExpression(a,e,t)}else this.updateFilterLayerDefExpression(n,e,t)}updateFilterLayerDefExpression(t,e,i){let{operator:s}=i,n=this.getInitDefExprFromLayer(t),a=e?.length>0&&n!=null&&n!==""?`(${e.join(s)}) AND (${n})`:e.length>0?e.join(s):n;t.definitionExpression=a}updateFilterLayerPCLFilter(t,e){t.filters=e}async handleWhenView(){this.view!=null&&(await this.view.map.loadAll(),this.handleLayerExpressionsUpdate())}async handleLayerExpressionsUpdate(){this.updateInitExpressions(),this.handleURLParams(),this.initExpressions()}async handleZoomTo(t){let e=t?.sublayerId?`#zoom-to-${t.id}-${t.sublayerId}`:`#zoom-to-${t.id}`,i=this.panelEl.value?.querySelector(e),s=(n,a)=>{i&&(i.loading=n,i.disabled=a)};if(s(!0,!0),await this.getZoomToExtent(t),this.zoomToExtent){let n=this.zoomToExtent.type==="point"&&this.zoomToExtent.count===1?{target:this.zoomToExtent.extent,zoom:10}:this.zoomToExtent.extent;await this.view.goTo(n)}s(!1,!1)}async getZoomToExtent(t){let e=this.view.allLayerViews.find(({layer:s})=>s.id===t.id).layer,i=e.type==="map-image"?e.findSublayerById(t.sublayerId):e;if(i&&i.type!=="point-cloud"&&x.includes(i?.type)){let s=await this.getQueryLayer(i),n=s.createQuery();n.where=s.definitionExpression??"1=1";let a=await s.queryExtent(n);this.zoomToExtent={...a,type:s.geometryType}}}generateOutput(t){if(this.view==null)return;let e=[],i=[];if(t){for(let s of t.expressions){let{active:n,definitionExpression:a,pointCloudFilters:r}=s;n&&a&&e.push(`(${a})`),n&&r!=null&&r.length>0&&(i=i.concat(r))}this.updateFilter(t,e,i),this.generateURLParams(),this.filterUpdate.emit()}}numberWithCommas(t){return t.toLocaleString("en-US",{maximumFractionDigits:20})}scientificRounding(t,e,i){if(t==null)return;let s;if(!String(t).includes("e"))s=Math[i](t*Math.pow(10,e))/Math.pow(10,e);else{let[n,a]=String(t).split("e").map(o=>Number(o)),r=a+e;s=Math[i](+`${n}e${r}`)*Math.pow(10,-e)}return+s.toFixed(e)}roundMinNumberDown(t,e){return this.scientificRounding(t,e,"floor")}roundMaxNumberUp(t,e){return this.scientificRounding(t,e,"ceil")}roundNumber(t,e){return this.scientificRounding(t,e,"round")??t}setExpressionFormat(t,e,i){if(t?.popupTemplate!=null){let s=t?.popupTemplate.fieldInfos?.find(({fieldName:n})=>n===i);s?.format&&(e.format=s.format)}}getInitDefExprFromLayer(t){return t.type==="sublayer"?this.initMapImageExpressions?.[t?.layer?.id??""]?.[t.id]??"":this.initDefExpressions?.[t.id]??""}getInitDefExprFromLayerExpression(t){return t?.sublayerId!=null?this.initMapImageExpressions?.[t.id]?.[t.sublayerId]??"":this.initDefExpressions?.[t.id]??""}findFilterLayer(t){let e=this.view.map?.allLayers.concat(this.view.map?.allTables.toArray()??[])?.find(({id:i})=>i===t.id);return e.type==="map-image"?e?.findSublayerById(t.sublayerId):e}createLabel(t,e){if(t.type==="coded-value")return t?.codedValues?.[e];if(t.type==="number"&&typeof e=="number"){let i=e;return t.format?.places!=null&&(i=this.roundNumber(e,t.format.places)),t.format?.digitSeparator?this.numberWithCommas(i):i}if(t.type==="date"&&!t.dateOnly){let i=this.intl.convertDateFormatToIntlOptions("short-date-long-time");return this.intl.formatDate(e,i)}return e}buildDateExpression(t,e){if(t){let i=new Date(t),s=new Date(t),n=new Date(s.setDate(i.getDate()+1)),a=`${i.getFullYear()}-${i.getMonth()+1}-${i.getDate()}`,r=`${i.getHours()}:${i.getMinutes()}:${i.getSeconds()}`,o=`${n.getHours()}:${n.getMinutes()}:${n.getSeconds()}`,c=`${n.getFullYear()}-${n.getMonth()+1}-${n.getDate()}`;return`${e} BETWEEN '${a} ${r}' AND '${c} ${o}'`}}async getQueryLayer(t){let e=t.type==="sublayer"?await t.createFeatureLayer():t;if(!e)throw new Error("Failed to create feature layer");return e}applyCacheHint(t,e){t?.capabilities?.query?.supportsCacheHint&&(e.cacheHint=!0)}applyQueryGeometryFromExtentSelector(t){if(!this.extentSelector||!this.extentSelectorConfig)return;let e=this.getExtent(this.extentSelector,this.extentSelectorConfig);e&&(t.geometry=e,t.spatialRelationship="intersects")}updateInitExpressions(){if(this.view==null)return;let t=this.view.map;this.initDefExpressions={},this.initPointCloudFilters={},this.initMapImageExpressions={},t.allLayers.concat(t.allTables.toArray()??[]).forEach(e=>{if(!x.includes(e.type))return;let i=e;if(i.type==="point-cloud")this.initPointCloudFilters||(this.initPointCloudFilters={}),this.initPointCloudFilters[i.id]=i.filters;else if(i.type==="map-image")this.initMapImageExpressions||(this.initMapImageExpressions={}),this.initMapImageExpressions[i.id]=i.allSublayers.reduce((s,n)=>(s[n.id]=n.definitionExpression??"",s),{});else{if(!this.initDefExpressions)return;this.initDefExpressions[i.id]=i.definitionExpression??""}})}render(){let t=this.loading?this.renderLoading():this.initFilterConfig(),e=this.renderFooter();return l`<calcite-panel class=${p(this.baseClass)} ${$(this.panelEl)}><slot slot=header-content name=filter-header-content></slot><slot slot=header-actions-end name=filter-header-actions-end></slot>${f("filter-container",l`<div class=${p(u.filterContainer)}>${t}${e}</div>`)}</calcite-panel>`}renderLoading(){return l`<calcite-loader label="Loading filters..."></calcite-loader>`}renderFilter(t){let{id:e}=t;return t.expressions.map((i,s)=>i.type==="checkbox"||i.type==null?f(`${e}-${s}`,l`<div class=${p(u.filterItemContainer)}><div class=${p(u.filterItemTitle)}><p>${i.name}</p></div><div class=${p(u.checkboxContainer)}><calcite-checkbox id=${i.id.toString()??m} scale=l .checked=${i?.active} @calciteCheckboxChange=${this.handleCheckboxChange.bind(this,t,i)}></calcite-checkbox></div></div>`):this.initInput(t,i))}renderLayerBlock(){return this.filterLayerExpressions?.map(t=>this.renderFilterBlocks(t))}renderFilterBlocks(t){let e=this.renderFilter(t),{operator:i}=t,s=i?.trim()==="OR"?"orOperator":"andOperator",n=this.renderZoomTo(t);return f(t.id,l`<calcite-block .heading=${t.title} .description=${this._messages[s]} .expanded=${this.openFilters?!0:void 0} collapsible>${n}${e}</calcite-block>`)}renderCombobox(t,e){return f("combo-select",l`<label class=${p(u.filterUIItemContainer)}><span>${e.name}</span><calcite-combobox id=${e.id.toString()??m} @calciteComboboxChange=${this.handleComboSelect.bind(this,e,t)} .label=${e.name} .placeholder=${e.placeholder} selection-mode=multiple max-items=6 scale=s .overlayPositioning=${this.comboboxOverlayPositioning}>${e.fields?.map((i,s)=>this.renderComboboxItem(e,i,s))}</calcite-combobox></label>`)}renderComboboxItem(t,e,i){let s=this.createLabel(t,e),n=t?.selectedFields?.includes(e)??!1;return f(`${s}-${i}`,l`<calcite-combobox-item .value=${e} .heading=${`${s}`} .selected=${n}></calcite-combobox-item>`)}renderNumberSlider(t,e){let i=e?.min,s=e?.max,n=e?.step?e.step:1,a=i!=null&&s!=null,r=e?.field??"",o=e?.range?.min!=null?e.range.min:i,c=e?.range?.max!=null?e.range.max:s,d=[o,c];return a?f(e?.id.toString(),l`<label class=${p(u.filterUIItemContainer)}><span>${e?.name}</span><div class=${p(u.numberInputContainer)}><calcite-slider id=${e?.id.toString()??m} @calciteSliderChange=${this.handleSliderChange.bind(this,e,t)} .min=${i} .max=${s} .minValue=${i} .maxValue=${s} .minLabel=${this._messages.minSlider?.replace("{field}",r)} .maxLabel=${this._messages.maxSlider?.replace("{field}",r)} .step=${n} label-handles snap .value=${d} .groupSeparator=${e?.format?.digitSeparator} precise></calcite-slider></div></label>`):void 0}renderDatePicker(t,e){let{min:i,max:s}=e,n=[e?.range?.min,e?.range?.max];return i!=null&&s!=null?l`<label class=${p(u.filterUIItemContainer)}><span>${e?.name}</span><div class=${p(u.dateInputContainer)}><calcite-input-date-picker id=${e?.id.toString()??m} @calciteInputDatePickerChange=${this.handleDatePickerRangeChange.bind(this,e,t)} .min=${i} .max=${s} overlay-positioning=fixed lang=${this.intl?.getLocale()??"en"??m} layout=vertical .value=${n} range></calcite-input-date-picker><calcite-action @click=${this.handleResetDatePicker.bind(this,e,t)} icon=reset .text=${this._messages.resetDatePicker} title=${this._messages.resetDatePicker??m} scale=s></calcite-action></div></label>`:void 0}renderFooter(){let t=this.closeBtnText??this._messages.close,e=this.closeBtn&&this.resetBtn?"half":"full";return l`<div class=${p(u.footer)} slot=footer>${this.resetBtn?l`<calcite-button appearance=outline .width=${e} @click=${this.handleResetFilter} ${$(this.resetBtnEl)}>${this._messages.resetFilter}</calcite-button>`:void 0}${this.closeBtn?l`<calcite-button appearance=solid .width=${e} kind=brand @click=${this.closeBtnOnClick}>${t}</calcite-button>`:void 0}</div>`}renderZoomTo(t){let e=t?.sublayerId?`zoom-to-${t.id}-${t.sublayerId}`:`zoom-to-${t.id}`;return this.zoomBtn?l`<calcite-action id=${e??m} slot=actions-end appearance=transparent .text=${this._messages.zoomTo} title=${this._messages.zoomTo??m} scale=s icon=magnifying-glass-plus @click=${this.handleZoomTo.bind(this,t)}></calcite-action>`:void 0}};L("instant-apps-filter-list",F);export{F as InstantAppsFilterList};
|
3
|
+
v1.1.0-next.20250917.2 */
|
4
|
+
import{a as f}from"./TEDQIKUH.js";import{a as _}from"./L4TFZRVM.js";import{a as S}from"./DZSLREXG.js";import{B as D,C as I}from"./MI5QJ6G4.js";import{b as L}from"./TN6WYWNC.js";import"./7KAD4UDG.js";import"./4G5LWBKJ.js";import{C as b,D as $,E as C,G as p,h as v,i as l,l as m,o as E}from"./ERSWMNMV.js";import"./ZVSX6TBK.js";var k="instant-apps-filter-list calcite-mode-light",O="instant-apps-filter-list calcite-mode-dark",x=["feature","geojson","wfs","csv","scene","subtype-group","point-cloud","map-image","sublayer"];function w(h){return h.replaceAll("'","''")}function y(h,t=!1){if(h){let e=new Date(h),i=`${e.getFullYear()}-${e.getMonth()+1}-${e.getDate()}`;if(t){let s=`${e.getHours()}:${e.getMinutes()}:${e.getSeconds()}`;return`${i} ${s}`}else return i}}function P(h){if(h!=null){h.value=["",""];let t=h.shadowRoot?.querySelectorAll("calcite-input");if(t!=null)for(let e of t)e.value=""}}var R=v`:host{display:block}.instant-apps-filter-list *{box-sizing:border-box}.instant-apps-filter-list__container{height:100%}.instant-apps-filter-list__container calcite-block:last-of-type{margin-bottom:0}.instant-apps-filter-list__footer{padding:12px;display:flex}.instant-apps-filter-list__footer calcite-button:nth-child(2){margin-left:6px}.instant-apps-filter-list__item-container,.instant-apps-filter-list__item-container--user-input{display:flex;justify-content:space-between;align-items:center}.instant-apps-filter-list__item-container:not(:last-child),.instant-apps-filter-list__item-container--user-input:not(:last-child){padding-bottom:20px}.instant-apps-filter-list__item-container--user-input{margin:0;display:flex;flex-direction:column;align-items:flex-start}.instant-apps-filter-list__item-container--user-input>span{margin:0 0 6px;font-size:14px;font-weight:400}.instant-apps-filter-list__item-container--user-input calcite-combobox{width:100%;font-size:16px;--calcite-combobox-input-height: 24px}.instant-apps-filter-list__number-input-container{width:100%;display:flex;justify-content:center}.instant-apps-filter-list__number-input-container calcite-slider{width:90%}.instant-apps-filter-list__date-picker-input-container{display:flex;align-items:center;justify-content:unset;width:100%}.instant-apps-filter-list__date-picker-input-container calcite-action{height:65px;border-top:1px solid var(--calcite-color-border-input);border-right:1px solid var(--calcite-color-border-input);border-bottom:1px solid var(--calcite-color-border-input)}.instant-apps-filter-list__title{margin-right:20px}.instant-apps-filter-list__title>p{font-size:14px;font-weight:400;margin:0}.instant-apps-filter-list__checkbox-container{display:flex}.instant-apps-filter-list__checkbox-container calcite-checkbox{height:18px}.instant-apps-filter-list__operator-description{margin:0;--calcite-font-size--1: 12px}.instant-apps-filter-list calcite-input-date-picker{--calcite-font-size--1: 16px}@media (prefers-reduced-motion){.instant-apps-filter-list calcite-loader{--calcite-internal-duration-factor: 2;--calcite-internal-animation-timing-slow: .6s }}.instant-apps-filter-list.calcite-mode-dark .instant-apps-filter-list__header-container{background:#2b2b2b;color:#fff}.instant-apps-filter-list.calcite-mode-dark .instant-apps-filter-list__operator-description{background:#353535}`,u={filterContainer:"instant-apps-filter-list__container",footer:"instant-apps-filter-list__footer",filterItemTitle:"instant-apps-filter-list__title",filterItemContainer:"instant-apps-filter-list__item-container",filterUIItemContainer:"instant-apps-filter-list__item-container--user-input",checkboxContainer:"instant-apps-filter-list__checkbox-container",numberInputContainer:"instant-apps-filter-list__number-input-container",dateInputContainer:"instant-apps-filter-list__date-picker-input-container",operatorDesc:"instant-apps-filter-list__operator-description"},F=class extends C{constructor(){super(...arguments),this._messages=S({name:"instant-apps-filter-list",blocking:!0}),this.resetBtnEl=b(),this.panelEl=b(),this.isLayerExpUpdated=!1,this.baseClass=k,this.autoUpdateUrl=!1,this.closeBtn=!1,this.comboboxOverlayPositioning="absolute",this.openFilters=!1,this.extentSelector=!1,this.filterCount=0,this.zoomBtn=!0,this.resetBtn=!0,this.resetFiltersOnDisconnect=!0,this.filterListReset=E(),this.filterUpdate=E()}static{this.properties={loading:16,filterLayerExpressions:16,baseClass:16,initDefExpressions:16,initMapImageExpressions:16,initPointCloudFilters:16,layerExpressions:0,autoUpdateUrl:5,closeBtn:5,closeBtnOnClick:0,comboboxOverlayPositioning:1,closeBtnText:1,openFilters:5,extentSelector:5,extentSelectorConfig:0,urlParams:0,filterCount:9,view:0,zoomBtn:5,resetBtn:5,resetFiltersOnDisconnect:5}}static{this.styles=R}async forceReset(){return this.resetExpressions(),await Promise.resolve(!0)}async getCurrentLayerExpressions(){let t=structuredClone(this.filterLayerExpressions);return await Promise.resolve(t)}async getFilterInitState(){return await Promise.resolve({initDefExpressions:this.initDefExpressions,initMapImageExpressions:this.initMapImageExpressions,initPointCloudFilters:this.initPointCloudFilters})}async handleUpdatingT9nData(t){return t==null?await Promise.resolve(!0):(this.filterLayerExpressions?.forEach(e=>{let i=t?.find(s=>s.id===e.id);i!=null&&(e.title=i.title,e.expressions?.forEach(s=>{let n=i.expressions?.find(a=>a.id===s.id);n!=null&&(s.name=n.name)}))}),await Promise.resolve(!0))}async updateInitDefExpressions(t){return this.initDefExpressions=t.initDefExpressions,this.initMapImageExpressions=t.initMapImageExpressions,this.initPointCloudFilters=t.initPointCloudFilters,await Promise.resolve(!0)}connectedCallback(){super.connectedCallback(),!(this.layerExpressions==null&&this.view==null)&&(this.isLayerExpUpdated=!0,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.handleLayerExpressionsUpdate())}async load(){this.baseClass=_(this.el)==="dark"?O:k,await this.initializeModules(),!this.isLayerExpUpdated&&(this.isLayerExpUpdated=!0,this.filterLayerExpressions=this.layerExpressions!=null?structuredClone(this.layerExpressions):[],this.view!=null&&this.handleLayerExpressionsUpdate())}willUpdate(t){t.has("view")&&this.handleWhenView(),t.has("layerExpressions")&&(this.resetAllFilters(),this.filterLayerExpressions=structuredClone(this.layerExpressions),this.handleLayerExpressionsUpdate())}updated(){this.resetBtnEl.value!=null&&(this.resetBtnEl.value.disabled=!(this.filterLayerExpressions&&this.filterLayerExpressions.length>0))}disconnectedCallback(){super.disconnectedCallback(),this.resetFiltersOnDisconnect&&(this.isLayerExpUpdated=!1,this.filterLayerExpressions=structuredClone(this.layerExpressions),this.resetAllFilters())}async initializeModules(){let[t,e]=await Promise.all([I(),D()]);this.geometryJsonUtils=e,this.intl=t}initFilterConfig(){if(this.filterLayerExpressions&&this.filterLayerExpressions.length>0){if(this.filterLayerExpressions.length===1){let{operator:t}=this.filterLayerExpressions[0],e=t?.trim()==="OR"?"orOperator":"andOperator",i=this.renderZoomTo(this.filterLayerExpressions[0]);return l`<calcite-block class=${p(u.operatorDesc)} .heading=${this._messages[e]} expanded>${i}${this.renderFilter(this.filterLayerExpressions[0])}</calcite-block>`}else if(this.filterLayerExpressions.length>1)return this.renderLayerBlock()}}handleResetDatePicker(t,e){let i=this.panelEl.value?.querySelector(`[id='${t.id}']`);i&&(P(i),t.active=!1,t.definitionExpression=void 0,t.range=void 0,this.generateOutput(e))}initInput(t,e){let{type:i,numDisplayOption:s,displayOption:n}=e;if(i==="string"||i==="coded-value"||(i==="number"||i==="range"||i==="date")&&(s==="drop-down"||n==="drop-down"))return this.renderCombobox(t,e);if(i==="number"||i==="range")return this.renderNumberSlider(t,e);if(i==="date")return this.renderDatePicker(t,e)}async initExpressions(){if(this.loading=!0,this.filterLayerExpressions==null||this.view==null){this.loading=!1;return}await this.processExpressions(),this.loading=!1}async processExpressions(){this.filterLayerExpressions&&await Promise.all(this.filterLayerExpressions.map(async t=>{await Promise.all((t.expressions||[]).map(async e=>await this.setInitExpression(t,e)))}))}handleResetFilter(){this.resetExpressions(),this.resetAllFilters(),this.generateURLParams(),this.filterListReset.emit()}resetExpressions(){this.filterLayerExpressions?.forEach(t=>{t.expressions?.forEach(e=>{let{type:i,numDisplayOption:s,displayOption:n}=e,a="";i==="string"||i==="coded-value"||i==="date"&&(s==="drop-down"||n==="drop-down")||(i==="number"||i==="range")&&(s==="drop-down"||n==="drop-down")?a="combobox":i==="date"?a="datePicker":(i==="number"||i==="range")&&(a="numberRange"),a?this.resetExpressionUI(a,e):this.resetCheckbox(e),e.active=!1})})}resetExpressionUI(t,e){let{id:i}=e;switch(t){case"combobox":{e.selectedFields=void 0;let s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&Array.from(s.children).forEach(n=>{n.selected=!1});break}case"datePicker":{e.range=void 0;let s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&P(s);break}case"numberRange":{e.range=void 0;let s=this.panelEl.value?.querySelector(`[id='${i}']`);s&&(s.minValue=e.min,s.maxValue=e.max);break}}}resetCheckbox(t){let{id:e}=t,i=this.panelEl.value?.querySelector(`[id='${e}']`);i&&(i.checked=!1)}resetAllFilters(){this.view?.map?.allLayers?.concat(this.view?.map?.allTables.toArray()??[])?.forEach(t=>{if(!x.includes(t.type))return;let e=t;if(e.type==="point-cloud"){if(!this.initPointCloudFilters)return;e.filters=this.initPointCloudFilters[e.id]}else if(e.type==="map-image")e.allSublayers.forEach(i=>{i.definitionExpression=this.initMapImageExpressions?.[e.id]?.[i.id]??""});else{if(this.initDefExpressions==null)return;e.definitionExpression=this.initDefExpressions[e.id]}})}async updateStringExpression(t,e){let i=this.findFilterLayer(t);return await this.getFeatureAttributes(i,e),this.handleDateField(i,e),e?.selectedFields?(e.definitionExpression=this.createDefinitionExpression(e),!0):!1}handleDateField(t,e){e.type==="date"&&t.fields.find(({name:i})=>i===e.field)?.type==="date-only"&&(e.dateOnly=!0)}createDefinitionExpression(t){if(!t.selectedFields?.length)return"";let e=t.selectedFields.map(i=>typeof i=="number"?i:`'${w(i)}'`);return`${t.field} IN (${e.join(",")})`}async updateNumberExpression(t,e){if(!e?.min&&e?.min!==0||!e?.max&&e?.max!==0){let i=this.findFilterLayer(t),{field:s}=e;if(s!=null)if(this.setExpressionFormat(i,e,s),e?.numDisplayOption==="drop-down"||e?.displayOption==="drop-down")await this.getFeatureAttributes(i,e);else{let n=(await this.calculateMinMaxStatistics(i,s))?.[0]?.attributes;if(e.format?.places!=null?(e.min=this.roundMinNumberDown(n[`min${s}`],e.format.places),e.max=this.roundMaxNumberUp(n[`max${s}`],e.format.places)):(e.min=n[`min${s}`],e.max=n[`max${s}`]),e?.range&&Object.keys(e.range).length){let{min:a,max:r}=e.range;return e.definitionExpression=`${e.field} BETWEEN ${a} AND ${r}`,!0}}}return!1}async updateDateExpression(t,e){let{field:i,range:s}=e,n=this.findFilterLayer(t),a=(await this.calculateMinMaxStatistics(n,i))?.[0]?.attributes;if(e.min=y(a[`min${i}`]),e.max=y(a[`max${i}`]),s!=null&&(s?.max!=null||s?.min!=null)){let{min:r,max:o}=s;if(r=r?.replace("+"," "),o=o?.replace("+"," "),r||o){let c=o&&!r?"<":!o&&r?">":null;return c?e.definitionExpression=`${i} ${c} '${r??o}'`:e.definitionExpression=`${i} BETWEEN '${r}' AND '${o}'`,!0}}return!1}async updateCodedValueExpression(t,e,i){if(!i?.domain||i?.domain?.type!=="coded-value")return!1;let s=this.findFilterLayer(t);await this.getFeatureAttributes(s,e);let n=i.domain.codedValues.reduce((a,{code:r,name:o})=>(a[r]=o,a),{});if(e.codedValues=n,e.selectedFields?.length){let a=e.selectedFields.map(r=>typeof r=="number"?r:`'${w(r)}'`).join(",");return e.definitionExpression=`${e.field} IN (${a})`,!0}return!1}updateRangeExpression(t,e){if(!e?.domain||e?.domain?.type!=="range")return!1;let{field:i,range:s}=t;return t.min=e.domain.minValue,t.max=e.domain.maxValue,s&&Object.keys(s).length?(t.definitionExpression=`${i} BETWEEN ${s.min} AND ${s.max}`,!0):!1}async getFeatureAttributes(t,e){if(!this.isLayerSupported(t)){e.fields=[];return}let i=await this.getQueryLayer(t),{maxRecordCount:s,supportsMaxRecordCountFactor:n}=this.extractQueryCapabilities(t),a=await i.queryFeatureCount(),r=this.createQuery(i,e);await this.queryDistinctFeatures(i,r,e),this.shouldPaginate(s,a,n)&&this.handlePagination(i,r,s,n,a,e)}isLayerSupported(t){return t&&x.includes(t.type)}extractQueryCapabilities(t){return{maxRecordCount:t.capabilities?.query?.maxRecordCount??t.sourceJSON?.maxRecordCount,supportsMaxRecordCountFactor:t.capabilities?.query?.supportsMaxRecordCountFactor}}createQuery(t,e){let i=t.createQuery();this.applyCacheHint(t,i);let s=e?.field;if(s){let n=this.getInitDefExprFromLayer(t);i.where=n||"1=1",i.outFields=[s],i.orderByFields=[`${s} ASC`],i.returnDistinctValues=!0,i.returnGeometry=!1,i.maxRecordCountFactor=5,this.applyQueryGeometryFromExtentSelector(i)}return i}async queryDistinctFeatures(t,e,i){if(!e.outFields)return;let s=await this.queryForFeatures(t,e,e.outFields[0]);s?.length&&(i.fields=[...new Set(s)],i.type==="string"?i.fields=i.fields.sort((n,a)=>n.localeCompare(a)):i.type==="number"&&(i.fields=i.fields.sort((n,a)=>n-a)))}getQueryCount(t,e){return e?t*5:t}shouldPaginate(t,e,i){let s=this.getQueryCount(t,i);return t!=null&&e>s}async handlePagination(t,e,i,s,n,a){let r=this.getQueryCount(i,s),o=[];for(let c=r;c<n;c+=r){let d=e.clone();d.num=i,d.start=c,o.push(this.queryForFeatures(t,d,e?.outFields?.[0]??""))}Promise.all(o).then(c=>{c.forEach(d=>{d?.length&&a.fields&&a.fields.push(...d)}),a.type==="string"?a.fields=[...new Set(a.fields)].sort((d,g)=>d.localeCompare(g)):a.type==="number"?a.fields=[...new Set(a.fields)].sort((d,g)=>d-g):a.fields=[...new Set(a.fields)].sort()})}async queryForFeatures(t,e,i){return(await t.queryFeatures(e))?.features.filter(s=>s.attributes?.[i])?.map(s=>s.attributes?.[i])}async calculateMinMaxStatistics(t,e){if(!t||!x.includes(t.type)||!e)return[];let i=this.createStatisticsQuery(t,e);return(await t.queryFeatures(i))?.features||[]}createStatisticsQuery(t,e){let i=t.createQuery();return i.where=this.getInitDefExprFromLayer(t)||"1=1",this.applyCacheHint(t,i),i.outStatistics=[{onStatisticField:e,outStatisticFieldName:`max${e}`,statisticType:"max"},{onStatisticField:e,outStatisticFieldName:`min${e}`,statisticType:"min"}],this.applyQueryGeometryFromExtentSelector(i),i}getExtent(t,e){if(t&&e){let{constraints:i}=e,s={...i}.geometry;if(s){let n="extent"in s?s:this.geometryJsonUtils.fromJSON(s);if(n?.type==="extent"||n?.type==="polygon")return n}}}async setInitExpression(t,e){if(!e.field||!e.type){await this.updateExpression(t,e,void 0);return}let i=this.findFilterLayer(t);i&&((i.loadStatus==="not-loaded"||i.loadStatus==="failed")&&await i.load(),await i.when(async()=>{let s=i.fields?.find(({name:a})=>a===e.field),n=s?.domain?.type;e.type=n==="coded-value"||n==="range"?n:e.type,await this.updateExpression(t,e,s)}))}async updateExpression(t,e,i){await this.handleExpressionType(t,e,i)&&this.generateOutput(t)}async handleExpressionType(t,e,i){switch(e.type){case"string":return await this.updateStringExpression(t,e);case"number":return await this.updateNumberExpression(t,e);case"date":return await this.updateDateExpressionBasedOnDisplayOption(t,e);case"coded-value":return await this.updateCodedValueExpression(t,e,i);case"range":return await this.updateRangeExpressionBasedOnDisplayOption(t,e,i);case"checkbox":case null:case void 0:return e.active??!1;default:return!1}}async updateDateExpressionBasedOnDisplayOption(t,e){return e.displayOption==="drop-down"?await this.updateStringExpression(t,e):await this.updateDateExpression(t,e)}async updateRangeExpressionBasedOnDisplayOption(t,e,i){return e.displayOption==="drop-down"?await this.updateStringExpression(t,e):this.updateRangeExpression(e,i)}updateRangeExpressions(t,e,i,s){let n=this.getInitDefExprFromLayerExpression(e);(s||s===0)&&(i||i===0)&&(s===t?.min&&i===t?.max?(t.definitionExpression=void 0,t.active=!1):(t.definitionExpression=n?`(${n}) AND ${t?.field} BETWEEN ${s} AND ${i}`:`${t?.field} BETWEEN ${s} AND ${i}`,t.active=!0)),t.range={min:s,max:i}}handleCheckboxChange(t,e,i){let s=i.target;e.active=s.checked,this.generateOutput(t)}handleSliderChange(t,e,i){let{maxValue:s,minValue:n}=i.target;this.updateRangeExpressions(t,e,s,n),this.generateOutput(e)}handleComboSelect(t,e,i){let s=i.target.selectedItems,{field:n,type:a}=t;if(t.selectedFields=s.map(({value:r})=>r),s.length){let r=s.map(({value:o})=>typeof o=="number"?o:`'${w(o)}'`);t.definitionExpression=a==="date"?r.map(o=>this.buildDateExpression(o,n)).join(" OR "):`${n} IN (${r.join(",")})`,t.active=!0}else t.definitionExpression=void 0,t.active=!1;this.generateOutput(e)}handleDatePickerRangeChange(t,e,i){let s=i.target,[n,a]=s.valueAsDate,r=n?y(Math.floor(n.getTime()),!0):void 0,o=a?y(Math.floor(a.getTime()),!0):void 0;(r||o)&&(t.definitionExpression=this.constructDefinitionExpression(t.field,r,o),t.range={min:r,max:o},t.active=!0,this.generateOutput(e))}constructDefinitionExpression(t,e,i){return e?i?`${t} BETWEEN '${e}' AND '${i}'`:`${t} > '${e}'`:`${t} < '${i}'`}handleURLParams(){if(!("URLSearchParams"in window))return;let t=new URLSearchParams(document.location.search).get("filter");if(!t){this.filterCount=0;return}let e=t.split(";").map(i=>JSON.parse(i));this.filterCount=this.applyFilters(e)}applyFilters(t){let e=0;return t.forEach(i=>{let s=this.filterLayerExpressions?.find(n=>n.id===i.layerId);s&&s.expressions?.forEach(n=>{n.id?.toString()===i.expressionId?.toString()&&(this.activateExpression(n,i),e++)})}),e}activateExpression(t,e){t.active=!0,e.type==="range"?t.range=e.range:e.type==="select"&&(t.selectedFields=e.selectedFields)}createURLParamExpression(t,e){let{id:i,range:s,selectedFields:n,type:a}=e;return a==="string"||a==="coded-value"||e?.numDisplayOption==="drop-down"||e?.displayOption==="drop-down"?{type:"select",layerId:t.id,expressionId:i.toString(),selectedFields:n}:a==="number"||a==="range"||a==="date"?{type:"range",layerId:t.id,expressionId:i.toString(),range:s}:{layerId:t.id,expressionId:i.toString()}}autoUpdateURLCheck(t){if(this.autoUpdateUrl){let e=t.toString()?`${window.location.pathname}?${t}`.trim():window.location.pathname;window.history.replaceState({},"",e)}}generateURLParams(){if(!("URLSearchParams"in window))return;let t=new URLSearchParams(window.location.search),e=this.filterLayerExpressions?.flatMap(i=>i?.expressions?.filter(s=>s.active).map(s=>JSON.stringify(this.createURLParamExpression(i,s)))||[])||[];this.filterCount=e.length,e.length>0?t.set("filter",e.join(";")):t.delete("filter"),this.autoUpdateURLCheck(t),this.urlParams=t}updateFilter(t,e,i){let{id:s}=t,n=this.view.map?.findLayerById(s)??this.view.map?.findTableById(s);if(n!=null)if(n.type==="point-cloud")this.updateFilterLayerPCLFilter(n,i);else if(n.type==="map-image"){let a=n.findSublayerById(t?.sublayerId);a!=null&&this.updateFilterLayerDefExpression(a,e,t)}else this.updateFilterLayerDefExpression(n,e,t)}updateFilterLayerDefExpression(t,e,i){let{operator:s}=i,n=this.getInitDefExprFromLayer(t),a=e?.length>0&&n!=null&&n!==""?`(${e.join(s)}) AND (${n})`:e.length>0?e.join(s):n;t.definitionExpression=a}updateFilterLayerPCLFilter(t,e){t.filters=e}async handleWhenView(){this.view!=null&&(await this.view.map.loadAll(),this.handleLayerExpressionsUpdate())}async handleLayerExpressionsUpdate(){this.updateInitExpressions(),this.handleURLParams(),this.initExpressions()}async handleZoomTo(t){let e=t?.sublayerId?`#zoom-to-${t.id}-${t.sublayerId}`:`#zoom-to-${t.id}`,i=this.panelEl.value?.querySelector(e),s=(n,a)=>{i&&(i.loading=n,i.disabled=a)};if(s(!0,!0),await this.getZoomToExtent(t),this.zoomToExtent){let n=this.zoomToExtent.type==="point"&&this.zoomToExtent.count===1?{target:this.zoomToExtent.extent,zoom:10}:this.zoomToExtent.extent;await this.view.goTo(n)}s(!1,!1)}async getZoomToExtent(t){let e=this.view.allLayerViews.find(({layer:s})=>s.id===t.id).layer,i=e.type==="map-image"?e.findSublayerById(t.sublayerId):e;if(i&&i.type!=="point-cloud"&&x.includes(i?.type)){let s=await this.getQueryLayer(i),n=s.createQuery();n.where=s.definitionExpression??"1=1";let a=await s.queryExtent(n);this.zoomToExtent={...a,type:s.geometryType}}}generateOutput(t){if(this.view==null)return;let e=[],i=[];if(t){for(let s of t.expressions){let{active:n,definitionExpression:a,pointCloudFilters:r}=s;n&&a&&e.push(`(${a})`),n&&r!=null&&r.length>0&&(i=i.concat(r))}this.updateFilter(t,e,i),this.generateURLParams(),this.filterUpdate.emit()}}numberWithCommas(t){return t.toLocaleString("en-US",{maximumFractionDigits:20})}scientificRounding(t,e,i){if(t==null)return;let s;if(!String(t).includes("e"))s=Math[i](t*Math.pow(10,e))/Math.pow(10,e);else{let[n,a]=String(t).split("e").map(o=>Number(o)),r=a+e;s=Math[i](+`${n}e${r}`)*Math.pow(10,-e)}return+s.toFixed(e)}roundMinNumberDown(t,e){return this.scientificRounding(t,e,"floor")}roundMaxNumberUp(t,e){return this.scientificRounding(t,e,"ceil")}roundNumber(t,e){return this.scientificRounding(t,e,"round")??t}setExpressionFormat(t,e,i){if(t?.popupTemplate!=null){let s=t?.popupTemplate.fieldInfos?.find(({fieldName:n})=>n===i);s?.format&&(e.format=s.format)}}getInitDefExprFromLayer(t){return t.type==="sublayer"?this.initMapImageExpressions?.[t?.layer?.id??""]?.[t.id]??"":this.initDefExpressions?.[t.id]??""}getInitDefExprFromLayerExpression(t){return t?.sublayerId!=null?this.initMapImageExpressions?.[t.id]?.[t.sublayerId]??"":this.initDefExpressions?.[t.id]??""}findFilterLayer(t){let e=this.view.map?.allLayers.concat(this.view.map?.allTables.toArray()??[])?.find(({id:i})=>i===t.id);return e.type==="map-image"?e?.findSublayerById(t.sublayerId):e}createLabel(t,e){if(t.type==="coded-value")return t?.codedValues?.[e];if(t.type==="number"&&typeof e=="number"){let i=e;return t.format?.places!=null&&(i=this.roundNumber(e,t.format.places)),t.format?.digitSeparator?this.numberWithCommas(i):i}if(t.type==="date"&&!t.dateOnly){let i=this.intl.convertDateFormatToIntlOptions("short-date-long-time");return this.intl.formatDate(e,i)}return e}buildDateExpression(t,e){if(t){let i=new Date(t),s=new Date(t),n=new Date(s.setDate(i.getDate()+1)),a=`${i.getFullYear()}-${i.getMonth()+1}-${i.getDate()}`,r=`${i.getHours()}:${i.getMinutes()}:${i.getSeconds()}`,o=`${n.getHours()}:${n.getMinutes()}:${n.getSeconds()}`,c=`${n.getFullYear()}-${n.getMonth()+1}-${n.getDate()}`;return`${e} BETWEEN '${a} ${r}' AND '${c} ${o}'`}}async getQueryLayer(t){let e=t.type==="sublayer"?await t.createFeatureLayer():t;if(!e)throw new Error("Failed to create feature layer");return e}applyCacheHint(t,e){t?.capabilities?.query?.supportsCacheHint&&(e.cacheHint=!0)}applyQueryGeometryFromExtentSelector(t){if(!this.extentSelector||!this.extentSelectorConfig)return;let e=this.getExtent(this.extentSelector,this.extentSelectorConfig);e&&(t.geometry=e,t.spatialRelationship="intersects")}updateInitExpressions(){if(this.view==null)return;let t=this.view.map;this.initDefExpressions={},this.initPointCloudFilters={},this.initMapImageExpressions={},t.allLayers.concat(t.allTables.toArray()??[]).forEach(e=>{if(!x.includes(e.type))return;let i=e;if(i.type==="point-cloud")this.initPointCloudFilters||(this.initPointCloudFilters={}),this.initPointCloudFilters[i.id]=i.filters;else if(i.type==="map-image")this.initMapImageExpressions||(this.initMapImageExpressions={}),this.initMapImageExpressions[i.id]=i.allSublayers.reduce((s,n)=>(s[n.id]=n.definitionExpression??"",s),{});else{if(!this.initDefExpressions)return;this.initDefExpressions[i.id]=i.definitionExpression??""}})}render(){let t=this.loading?this.renderLoading():this.initFilterConfig(),e=this.renderFooter();return l`<calcite-panel class=${p(this.baseClass)} ${$(this.panelEl)}><slot slot=header-content name=filter-header-content></slot><slot slot=header-actions-end name=filter-header-actions-end></slot>${f("filter-container",l`<div class=${p(u.filterContainer)}>${t}${e}</div>`)}</calcite-panel>`}renderLoading(){return l`<calcite-loader label="Loading filters..."></calcite-loader>`}renderFilter(t){let{id:e}=t;return t.expressions.map((i,s)=>i.type==="checkbox"||i.type==null?f(`${e}-${s}`,l`<div class=${p(u.filterItemContainer)}><div class=${p(u.filterItemTitle)}><p>${i.name}</p></div><div class=${p(u.checkboxContainer)}><calcite-checkbox id=${i.id.toString()??m} scale=l .checked=${i?.active} @calciteCheckboxChange=${this.handleCheckboxChange.bind(this,t,i)}></calcite-checkbox></div></div>`):this.initInput(t,i))}renderLayerBlock(){return this.filterLayerExpressions?.map(t=>this.renderFilterBlocks(t))}renderFilterBlocks(t){let e=this.renderFilter(t),{operator:i}=t,s=i?.trim()==="OR"?"orOperator":"andOperator",n=this.renderZoomTo(t);return f(t.id,l`<calcite-block .heading=${t.title} .description=${this._messages[s]} .expanded=${this.openFilters?!0:void 0} collapsible>${n}${e}</calcite-block>`)}renderCombobox(t,e){return f("combo-select",l`<label class=${p(u.filterUIItemContainer)}><span>${e.name}</span><calcite-combobox id=${e.id.toString()??m} @calciteComboboxChange=${this.handleComboSelect.bind(this,e,t)} .label=${e.name} .placeholder=${e.placeholder} selection-mode=multiple max-items=6 scale=s .overlayPositioning=${this.comboboxOverlayPositioning}>${e.fields?.map((i,s)=>this.renderComboboxItem(e,i,s))}</calcite-combobox></label>`)}renderComboboxItem(t,e,i){let s=this.createLabel(t,e),n=t?.selectedFields?.includes(e)??!1;return f(`${s}-${i}`,l`<calcite-combobox-item .value=${e} .heading=${`${s}`} .selected=${n}></calcite-combobox-item>`)}renderNumberSlider(t,e){let i=e?.min,s=e?.max,n=e?.step?e.step:1,a=i!=null&&s!=null,r=e?.field??"",o=e?.range?.min!=null?e.range.min:i,c=e?.range?.max!=null?e.range.max:s,d=[o,c];return a?f(e?.id.toString(),l`<label class=${p(u.filterUIItemContainer)}><span>${e?.name}</span><div class=${p(u.numberInputContainer)}><calcite-slider id=${e?.id.toString()??m} @calciteSliderChange=${this.handleSliderChange.bind(this,e,t)} .min=${i} .max=${s} .minValue=${i} .maxValue=${s} .minLabel=${this._messages.minSlider?.replace("{field}",r)} .maxLabel=${this._messages.maxSlider?.replace("{field}",r)} .step=${n} label-handles snap .value=${d} .groupSeparator=${e?.format?.digitSeparator} precise></calcite-slider></div></label>`):void 0}renderDatePicker(t,e){let{min:i,max:s}=e,n=[e?.range?.min,e?.range?.max];return i!=null&&s!=null?l`<label class=${p(u.filterUIItemContainer)}><span>${e?.name}</span><div class=${p(u.dateInputContainer)}><calcite-input-date-picker id=${e?.id.toString()??m} @calciteInputDatePickerChange=${this.handleDatePickerRangeChange.bind(this,e,t)} .min=${i} .max=${s} overlay-positioning=fixed lang=${this.intl?.getLocale()??"en"??m} layout=vertical .value=${n} range></calcite-input-date-picker><calcite-action @click=${this.handleResetDatePicker.bind(this,e,t)} icon=reset .text=${this._messages.resetDatePicker} title=${this._messages.resetDatePicker??m} scale=s></calcite-action></div></label>`:void 0}renderFooter(){let t=this.closeBtnText??this._messages.close,e=this.closeBtn&&this.resetBtn?"half":"full";return l`<div class=${p(u.footer)} slot=footer>${this.resetBtn?l`<calcite-button appearance=outline .width=${e} @click=${this.handleResetFilter} ${$(this.resetBtnEl)}>${this._messages.resetFilter}</calcite-button>`:void 0}${this.closeBtn?l`<calcite-button appearance=solid .width=${e} kind=brand @click=${this.closeBtnOnClick}>${t}</calcite-button>`:void 0}</div>`}renderZoomTo(t){let e=t?.sublayerId?`zoom-to-${t.id}-${t.sublayerId}`:`zoom-to-${t.id}`;return this.zoomBtn?l`<calcite-action id=${e??m} slot=actions-end appearance=transparent .text=${this._messages.zoomTo} title=${this._messages.zoomTo??m} scale=s icon=magnifying-glass-plus @click=${this.handleZoomTo.bind(this,t)}></calcite-action>`:void 0}};L("instant-apps-filter-list",F);export{F as InstantAppsFilterList};
|
@@ -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.20250917.
|
4
|
-
import b from"./
|
3
|
+
v1.1.0-next.20250917.2 */
|
4
|
+
import b from"./L63PGZD5.js";import{a as y}from"./JUG4HSUL.js";import{b as T}from"./4HTYWSQQ.js";import{mb as x,nb as $}from"./A7GJMBGB.js";import"./KVMIVMVI.js";import"./5DHHLHGR.js";import"./6UL2R6AK.js";import"./E7PKMOWQ.js";import"./BIBUPVTN.js";import"./KA5XTDOF.js";import"./EHB34ID2.js";import"./MTKZNDJI.js";import"./N67FXIF6.js";import"./S6ZT67A3.js";import"./TZZ5PQA7.js";import"./3QEWJZIQ.js";import"./LOHRDCER.js";import"./GA33CY3H.js";import"./WV2JLUYH.js";import"./5BNR6F5K.js";import"./FQJZZBZS.js";import"./PLRMXXZL.js";import"./UTFBB7GM.js";import{H as _}from"./QR4Z5GNL.js";import{a as g}from"./EVAI3Q2L.js";import"./7KAD4UDG.js";import"./4G5LWBKJ.js";import{b as m}from"./P5XN5L7G.js";import{C as d,D as c,E as f,G as n,h,i as a,o as r}from"./ERSWMNMV.js";import"./ZVSX6TBK.js";export default $arcgis.t(([{d:p}])=>{var N=h`/** @license
|
5
5
|
* Copyright 2025 Esri
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|