@arcgis/map-components 5.0.0-next.141 → 5.0.0-next.142
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/{VWO3QAJ5.js → 22CZLAEM.js} +2 -2
- package/dist/cdn/{5WZCN6OO.js → 2EBLGAWT.js} +1 -1
- package/dist/cdn/{WJUPZHJH.js → 2FMOZWJM.js} +2 -2
- package/dist/cdn/{NM6MYUC3.js → 2OBZ3VK6.js} +2 -2
- package/dist/cdn/{3USYKZEF.js → 2P4OAW3B.js} +2 -2
- package/dist/cdn/{UW4KTHLS.js → 2P5D4L5A.js} +2 -2
- package/dist/cdn/{N6SOTMSX.js → 2VTXKQ5K.js} +2 -2
- package/dist/cdn/{S2O6PLOP.js → 2YAQSIH2.js} +2 -2
- package/dist/cdn/{KUSIIAG5.js → 33ARRZVS.js} +2 -2
- package/dist/cdn/{3LIZB624.js → 36W2DPLC.js} +2 -2
- package/dist/cdn/{Z7JHK7W5.js → 3C6LXCKD.js} +2 -2
- package/dist/cdn/{JUZC3WCC.js → 3DBJC5H7.js} +2 -2
- package/dist/cdn/{YJHJFMMV.js → 3DJ3DOIE.js} +2 -2
- package/dist/cdn/{BN5DCK5L.js → 3MAZ66M6.js} +2 -2
- package/dist/cdn/{WY35KJM5.js → 3N5OQDZ3.js} +2 -2
- package/dist/cdn/{RSHKTNHR.js → 3NOSNCSC.js} +2 -2
- package/dist/cdn/{L2NDU42E.js → 3P6MVXER.js} +2 -2
- package/dist/cdn/{EIVSXUI7.js → 3TEV62U7.js} +2 -2
- package/dist/cdn/{2CBKONFW.js → 3UQENHA7.js} +2 -2
- package/dist/cdn/{MJML43JN.js → 4HCCE56K.js} +2 -2
- package/dist/cdn/{X4XCHJQJ.js → 4IC2H2NV.js} +2 -2
- package/dist/cdn/{KAZ56XFS.js → 4UVSVND6.js} +2 -2
- package/dist/cdn/{FIHMM6SE.js → 53QED3IM.js} +2 -2
- package/dist/cdn/{HQ2P4MPG.js → 56IKOG3V.js} +2 -2
- package/dist/cdn/{N67ZWM7A.js → 5RBEQUEU.js} +2 -2
- package/dist/cdn/{MKCMZRRY.js → 5WAA4JMX.js} +2 -2
- package/dist/cdn/{SVQJ3CP7.js → 6B3J6F6V.js} +2 -2
- package/dist/cdn/{QC2COLA3.js → 6ELHZPIJ.js} +2 -2
- package/dist/cdn/{5QAQJX6O.js → 6IYKLL4K.js} +2 -2
- package/dist/cdn/{YGD56ZLD.js → 6LQKZA2B.js} +1 -1
- package/dist/cdn/{CMW72M5S.js → 6NUPEJ6N.js} +2 -2
- package/dist/cdn/{HJTBO77O.js → 6VVJODW3.js} +2 -2
- package/dist/cdn/{WPBGQIWQ.js → 6W7JDGHT.js} +2 -2
- package/dist/cdn/{HUPEXSXP.js → 6YM5QBYI.js} +2 -2
- package/dist/cdn/{5PW5XG6D.js → 6ZID7XVU.js} +2 -2
- package/dist/cdn/{P2JEUVIP.js → 74FB7OQT.js} +2 -2
- package/dist/cdn/{JVII3YXV.js → 75TLVZLA.js} +2 -2
- package/dist/cdn/{6OCGQWLX.js → 76SITM2G.js} +2 -2
- package/dist/cdn/{YZ4KWIZS.js → 776FWWUU.js} +2 -2
- package/dist/cdn/{EOFJBSYD.js → 7GU747FF.js} +2 -2
- package/dist/cdn/{GD2HA656.js → 7HNHM7IC.js} +2 -2
- package/dist/cdn/{TMP6U4EQ.js → 7J5OCOPD.js} +2 -2
- package/dist/cdn/{RJHMGVL5.js → 7M4B3NVY.js} +2 -2
- package/dist/cdn/{6KMNOSWL.js → 7MD3L7YJ.js} +2 -2
- package/dist/cdn/{5DI4WELZ.js → 7Q2YI3IA.js} +2 -2
- package/dist/cdn/7QQYXUTS.js +4 -0
- package/dist/cdn/{LR2RH2HP.js → 7TA2OQKO.js} +2 -2
- package/dist/cdn/{BVKT33K6.js → 7U5INN3W.js} +2 -2
- package/dist/cdn/{WVP7K5JY.js → 7WE2HANQ.js} +2 -2
- package/dist/cdn/{Y5QF3G5T.js → 7XF3VBZN.js} +2 -2
- package/dist/cdn/{3YMJJFBA.js → A5EE5EP4.js} +2 -2
- package/dist/cdn/{LMO3PUFV.js → ADV42HI2.js} +1 -1
- package/dist/cdn/{SLFCMXLD.js → AKDCZWJR.js} +1 -1
- package/dist/cdn/{ULJ33HIG.js → ALEAKGXV.js} +2 -2
- package/dist/cdn/{VOI5UPLM.js → AN226CHR.js} +2 -2
- package/dist/cdn/{XPSIHFHX.js → AQWFM5DB.js} +2 -2
- package/dist/cdn/{IPDO66VJ.js → B7JI5XWC.js} +2 -2
- package/dist/cdn/{L4GIJIWP.js → BFOWCZJF.js} +2 -2
- package/dist/cdn/{PTCRKVKL.js → BG77GFWC.js} +2 -2
- package/dist/cdn/{HBFMUAG7.js → BH4TMA6Y.js} +2 -2
- package/dist/cdn/{QCYP4YAV.js → BNCIPXJO.js} +2 -2
- package/dist/cdn/{2V5LZVSZ.js → BR5BMR3W.js} +2 -2
- package/dist/cdn/{X74HDPJT.js → BSUTODWD.js} +2 -2
- package/dist/cdn/{7MKR7PPZ.js → C2RAYB3P.js} +2 -2
- package/dist/cdn/{4JARMDXC.js → C33NXUNI.js} +2 -2
- package/dist/cdn/{DH3RM4ER.js → C7AHHDLW.js} +2 -2
- package/dist/cdn/{EFF2ERMR.js → CGV7A5ZG.js} +2 -2
- package/dist/cdn/{25GTRBYR.js → CMZQVTZU.js} +1 -1
- package/dist/cdn/{KE6S5ING.js → CNB32K4U.js} +2 -2
- package/dist/cdn/{F5KGGCSS.js → CWI7W5M2.js} +2 -2
- package/dist/cdn/{Y2CGE3U4.js → D47AJJHP.js} +2 -2
- package/dist/cdn/{QPLKD246.js → D4XKEUDI.js} +1 -1
- package/dist/cdn/{6J4T4NRJ.js → DAJE4YUU.js} +2 -2
- package/dist/cdn/{AR3PJ5V2.js → DCNI6XLZ.js} +2 -2
- package/dist/cdn/{NIYWOSX2.js → DTFTIXYH.js} +2 -2
- package/dist/cdn/{KAGQ64PY.js → DYMUYEND.js} +2 -2
- package/dist/cdn/{WG5LGRIC.js → DYVCXSPY.js} +2 -2
- package/dist/cdn/{WT7RV2AA.js → E5UAOPM4.js} +2 -2
- package/dist/cdn/{KUTRBYJG.js → E7ZAT3OW.js} +2 -2
- package/dist/cdn/{2SYBAPTW.js → EBW7WZLA.js} +2 -2
- package/dist/cdn/{TH7YVYKH.js → F2HJAK2X.js} +2 -2
- package/dist/cdn/{WEMJCGY3.js → FAIWBQNC.js} +2 -2
- package/dist/cdn/{CP2NZSPK.js → FB46D345.js} +2 -2
- package/dist/cdn/{NY3MUIS6.js → FEPS33GO.js} +1 -1
- package/dist/cdn/{BPPG36OL.js → FKR7TA3J.js} +2 -2
- package/dist/cdn/{ED5D5JJ3.js → FVTGB7EQ.js} +2 -2
- package/dist/cdn/{P3JAQDGU.js → FWPMWGTC.js} +2 -2
- package/dist/cdn/{AU5ZSXKQ.js → G3QWEHJY.js} +2 -2
- package/dist/cdn/{IWOI33YI.js → G4NIJ44B.js} +2 -2
- package/dist/cdn/{KCNUVCJ5.js → GGXTZA5V.js} +2 -2
- package/dist/cdn/{LN3COJBC.js → GL6YH6RT.js} +2 -2
- package/dist/cdn/{ETVEZAUL.js → GMNX5UIH.js} +2 -2
- package/dist/cdn/{E2D4Y3T2.js → GNNXSQXI.js} +2 -2
- package/dist/cdn/{Y4BWWCEW.js → GQ22WP3N.js} +2 -2
- package/dist/cdn/{5GGGC4R3.js → GQXEXP2G.js} +2 -2
- package/dist/cdn/{X4B7ZMK2.js → GUSHQXBL.js} +2 -2
- package/dist/cdn/{OMJZVLGU.js → H4SIW4BD.js} +2 -2
- package/dist/cdn/{GSSNHWUV.js → HI7TYDHA.js} +2 -2
- package/dist/cdn/{VEYAVWGR.js → HVKTXMYZ.js} +2 -2
- package/dist/cdn/{A42Q7F43.js → HXRSJIDZ.js} +2 -2
- package/dist/cdn/{565OYKJQ.js → HZVM5A25.js} +2 -2
- package/dist/cdn/{MKLJMLFS.js → I6N7O7AI.js} +2 -2
- package/dist/cdn/{7L26JTI7.js → I7QCJQMW.js} +2 -2
- package/dist/cdn/{BS5WLLO7.js → IE6CR4OZ.js} +2 -2
- package/dist/cdn/{55HEFEGU.js → INDQWDIL.js} +2 -2
- package/dist/cdn/{TL7LSZXO.js → ISALACQ6.js} +2 -2
- package/dist/cdn/{TKAYGN47.js → IUC4C3MO.js} +2 -2
- package/dist/cdn/{HSZ7BM2P.js → IV3JTVUM.js} +2 -2
- package/dist/cdn/{WLOVKRY4.js → IW7FKOUU.js} +2 -2
- package/dist/cdn/{6TTMWSEF.js → J2RGONDI.js} +2 -2
- package/dist/cdn/{GDPVYXDT.js → J3YMIFRC.js} +2 -2
- package/dist/cdn/{AKVK5TTJ.js → JCPRN2PQ.js} +2 -2
- package/dist/cdn/{IY7S5TYH.js → JDH34JTX.js} +2 -2
- package/dist/cdn/{NVIB7ZBM.js → JEDBWVS3.js} +2 -2
- package/dist/cdn/{BCANX7RB.js → JHUJXMKN.js} +2 -2
- package/dist/cdn/{6R3MMYAF.js → JKODGLZH.js} +2 -2
- package/dist/cdn/{PL5M6MRM.js → JQPRX5IN.js} +2 -2
- package/dist/cdn/{Q2Y4GWXY.js → JTP2GGUE.js} +2 -2
- package/dist/cdn/JYTEMI76.js +4 -0
- package/dist/cdn/{SR7PKMUN.js → K22MSV4G.js} +2 -2
- package/dist/cdn/{YYDXOYLE.js → K6B2ETLN.js} +2 -2
- package/dist/cdn/{ESO2S7Z3.js → KCKQY6M4.js} +2 -2
- package/dist/cdn/{UADTVQRQ.js → KCOQH7QA.js} +2 -2
- package/dist/cdn/{BJVICXWB.js → KDTNA6IP.js} +2 -2
- package/dist/cdn/{RRFQRWLP.js → KFFW3WCH.js} +2 -2
- package/dist/cdn/{D4KETUSR.js → KJRZG42K.js} +1 -1
- package/dist/cdn/{Z7J2RIWF.js → KO53FICH.js} +2 -2
- package/dist/cdn/{25U2BS6A.js → KP7OYET2.js} +2 -2
- package/dist/cdn/{SO2OWS55.js → KP7TINGD.js} +2 -2
- package/dist/cdn/{WWRQ5N5L.js → KQET3K77.js} +2 -2
- package/dist/cdn/{2JC3OUPK.js → KRKXVMOM.js} +2 -2
- package/dist/cdn/{YJE3NQ5R.js → KRUOABI2.js} +1 -1
- package/dist/cdn/{SWWW47BG.js → L5JUECMK.js} +2 -2
- package/dist/cdn/{7PKTQV3C.js → LDXQPQ3F.js} +2 -2
- package/dist/cdn/{USOIDBL7.js → LDYWDVEQ.js} +2 -2
- package/dist/cdn/{SBZPZ35O.js → LKU2CBNI.js} +2 -2
- package/dist/cdn/{LJYZNFY4.js → LL5U32JB.js} +2 -2
- package/dist/cdn/{W34RW2ZY.js → LMVATOIF.js} +2 -2
- package/dist/cdn/{G6QDQFSO.js → LMVI22Q6.js} +1 -1
- package/dist/cdn/{NB5DHUQP.js → LN37YYVQ.js} +2 -2
- package/dist/cdn/{6OXHCAHE.js → LQOVCP3V.js} +2 -2
- package/dist/cdn/{V5446NN4.js → LR2LXKUZ.js} +2 -2
- package/dist/cdn/{FBUGR3IF.js → LRB5UHJA.js} +2 -2
- package/dist/cdn/{6YBGBDAX.js → LRVLRKSS.js} +2 -2
- package/dist/cdn/{FLZARD2V.js → LSY2NNYO.js} +2 -2
- package/dist/cdn/{CBIPLHJA.js → LVAZEF7S.js} +2 -2
- package/dist/cdn/{AQKS7E4U.js → LVTLITLU.js} +2 -2
- package/dist/cdn/{2KRXNDWR.js → LXQLPH56.js} +2 -2
- package/dist/cdn/{LZXSHLIZ.js → MBOFHJRZ.js} +1 -1
- package/dist/cdn/MCAYPJMH.js +4 -0
- package/dist/cdn/{ENIUWF26.js → ME5LNRUZ.js} +2 -2
- package/dist/cdn/{4AUW5KUD.js → MFFTCR7V.js} +2 -2
- package/dist/cdn/{DXD4ERIN.js → MLKRM3DC.js} +2 -2
- package/dist/cdn/{JXVFEUIB.js → N4C6OHVD.js} +2 -2
- package/dist/cdn/{MKYFPKPI.js → NCQPXAMC.js} +2 -2
- package/dist/cdn/{CKFRBSC3.js → NFKKDRVH.js} +2 -2
- package/dist/cdn/{VRM6KMX5.js → NVTJ6TNY.js} +2 -2
- package/dist/cdn/{FP5OMKPM.js → NWYVN5CX.js} +2 -2
- package/dist/cdn/{RZ5UXGPD.js → O3OD7QNW.js} +2 -2
- package/dist/cdn/{PTGSGVZ6.js → O3VKUI24.js} +2 -2
- package/dist/cdn/{SKTIIEOI.js → O5MMQFMI.js} +1 -1
- package/dist/cdn/{XWNZRCIH.js → O6IHYEMG.js} +2 -2
- package/dist/cdn/{4I74Q6MA.js → O6V4CFVZ.js} +1 -1
- package/dist/cdn/{EWTZF3IK.js → ODPSGZKS.js} +2 -2
- package/dist/cdn/{FY2JPSCV.js → OXZZY455.js} +2 -2
- package/dist/cdn/{GOW4WUOC.js → P2QC6U4J.js} +2 -2
- package/dist/cdn/{TNSBFVQH.js → P3H5RXT5.js} +2 -2
- package/dist/cdn/{UUWFYBSW.js → P3SMWDGN.js} +2 -2
- package/dist/cdn/{ONRZXUX6.js → P5GU7DSO.js} +2 -2
- package/dist/cdn/{DNDKPHQ3.js → P654UX7O.js} +2 -2
- package/dist/cdn/{YLTQTGDY.js → PAC3KZEM.js} +2 -2
- package/dist/cdn/{DGSRCKHS.js → PFWSDEAN.js} +2 -2
- package/dist/cdn/{LUWJI6FO.js → PLKFY6US.js} +2 -2
- package/dist/cdn/{M4UTYGBF.js → PMROIMHX.js} +2 -2
- package/dist/cdn/{6H7MK26H.js → PNFKE4BO.js} +2 -2
- package/dist/cdn/{T347TQ6J.js → PWLKWE44.js} +2 -2
- package/dist/cdn/{NIP76HXY.js → PXKCI2F4.js} +2 -2
- package/dist/cdn/{XYTLBJ3U.js → PZVQ7BZZ.js} +2 -2
- package/dist/cdn/{KOM7K5Z5.js → Q335463L.js} +1 -1
- package/dist/cdn/{TRFXJTQM.js → Q6WFHZCZ.js} +2 -2
- package/dist/cdn/{ECLH572I.js → QARQZOL4.js} +2 -2
- package/dist/cdn/{D47RZ2J7.js → QGAB6GTV.js} +2 -2
- package/dist/cdn/{VPL5MY6Z.js → QGMWQVBK.js} +2 -2
- package/dist/cdn/{PV4D42YK.js → QKJ2JMJD.js} +2 -2
- package/dist/cdn/{HHICQPDC.js → QLZJRSXI.js} +2 -2
- package/dist/cdn/{5WHTC46G.js → QQFWYRXA.js} +1 -1
- package/dist/cdn/{MGAZZVKF.js → QTZVJ2CO.js} +2 -2
- package/dist/cdn/{USQDVUCE.js → QVQNCXBR.js} +2 -2
- package/dist/cdn/{RPAAVNPK.js → R2WRRKIK.js} +2 -2
- package/dist/cdn/{PQOXOI4Y.js → R4MUXQ3B.js} +2 -2
- package/dist/cdn/{PLKJZHAL.js → R6JXMXB4.js} +2 -2
- package/dist/cdn/{42MA4456.js → RAUOUQVH.js} +2 -2
- package/dist/cdn/{P6BHOM5I.js → RLOWQOXB.js} +2 -2
- package/dist/cdn/{FMDLSLYA.js → RMBEPP77.js} +2 -2
- package/dist/cdn/{DCRWSUSY.js → RORXYURS.js} +2 -2
- package/dist/cdn/{UIOPVLEJ.js → RRRPNTMF.js} +2 -2
- package/dist/cdn/{GJSQAGF6.js → RVF4SIU2.js} +2 -2
- package/dist/cdn/{O3UEG43W.js → S26DCPLI.js} +2 -2
- package/dist/cdn/{RIE6B7NE.js → S5DGXE3H.js} +1 -1
- package/dist/cdn/{456UILRB.js → SBQR7VOQ.js} +2 -2
- package/dist/cdn/{ONEADE4Y.js → SFKJ6JGZ.js} +2 -2
- package/dist/cdn/{4P75IJ3U.js → SFTKLPSS.js} +2 -2
- package/dist/cdn/{NSUTG7LY.js → SJZCZXSD.js} +2 -2
- package/dist/cdn/{VK2HOHJH.js → SNDW3R6P.js} +2 -2
- package/dist/cdn/{ODSSIMCT.js → SOVPB3ZN.js} +2 -2
- package/dist/cdn/{W2LATDTV.js → SPOOETYS.js} +2 -2
- package/dist/cdn/{HCJJ5AUU.js → SZXDZGW3.js} +2 -2
- package/dist/cdn/{2CKDXVPR.js → T22ABQIW.js} +2 -2
- package/dist/cdn/{QPISUFLM.js → TB6XPFIC.js} +2 -2
- package/dist/cdn/{R5IXN7K6.js → TLFXMUAF.js} +2 -2
- package/dist/cdn/{MA4I6TIJ.js → TOB4L4EE.js} +2 -2
- package/dist/cdn/{UBAVWHGD.js → TPSXSPCJ.js} +2 -2
- package/dist/cdn/{BDY7JOHA.js → TRLJXRC4.js} +2 -2
- package/dist/cdn/{4E6FNOIL.js → TTSEDEYI.js} +2 -2
- package/dist/cdn/{TXU2I7GM.js → U3INY2AK.js} +2 -2
- package/dist/cdn/{KCCKUKFL.js → UC2XLNX5.js} +2 -2
- package/dist/cdn/{GNEFXGFX.js → UJ52LGQ5.js} +2 -2
- package/dist/cdn/{RO33GY6K.js → UNANWBAI.js} +2 -2
- package/dist/cdn/{JNZWTPZ5.js → UY7H2KHM.js} +2 -2
- package/dist/cdn/{WPVTWYUB.js → UYNZPTUH.js} +2 -2
- package/dist/cdn/{25PBYG5Z.js → UZ5XLSQP.js} +3 -3
- package/dist/cdn/{7EOBLYYI.js → W2LPTLXR.js} +2 -2
- package/dist/cdn/{LFDLU75I.js → W4DOURIV.js} +2 -2
- package/dist/cdn/{LGKEIMOE.js → W6W24PKB.js} +2 -2
- package/dist/cdn/{ANXOU4U2.js → W77ENKMN.js} +1 -1
- package/dist/cdn/{AHELT752.js → WD3LMZHA.js} +2 -2
- package/dist/cdn/{4LNVJZBH.js → WFWO7PI7.js} +1 -1
- package/dist/cdn/{TG6O7MAB.js → WJ4ZAYNI.js} +2 -2
- package/dist/cdn/{MJWU2ZCE.js → WJIR64NW.js} +2 -2
- package/dist/cdn/{AX6ZVH36.js → WJSZ6BTN.js} +2 -2
- package/dist/cdn/{OALNFMVL.js → WW5DNDHT.js} +2 -2
- package/dist/cdn/{KAICOGWP.js → WW7VXMDS.js} +2 -2
- package/dist/cdn/{Y3HMFZWK.js → WZIJ6RXP.js} +2 -2
- package/dist/cdn/{IAUHRFCO.js → XABOFWXR.js} +2 -2
- package/dist/cdn/{EUR6TJN7.js → XB7LTY2Q.js} +2 -2
- package/dist/cdn/{2ZGR3FN6.js → XBJ74COY.js} +2 -2
- package/dist/cdn/{NKMJO7YR.js → XHFT5P7Y.js} +2 -2
- package/dist/cdn/{ZXERWTEX.js → XONBYSHA.js} +2 -2
- package/dist/cdn/{G664RYG5.js → XPDF63LL.js} +2 -2
- package/dist/cdn/{F3MVV5J5.js → XPITGDPO.js} +2 -2
- package/dist/cdn/{W6QUTUJ3.js → XVZBNX4M.js} +2 -2
- package/dist/cdn/{J76LCH2O.js → XZLCT462.js} +1 -1
- package/dist/cdn/{FA2BSJOA.js → Y3OVFD2J.js} +2 -2
- package/dist/cdn/{SRJ7WF57.js → YCSM4OON.js} +2 -2
- package/dist/cdn/{EFW2F27N.js → YEYFMBYK.js} +2 -2
- package/dist/cdn/YIZZNFUQ.js +4 -0
- package/dist/cdn/{MODLK6YB.js → YMN25VIM.js} +2 -2
- package/dist/cdn/{X6KD7UT7.js → YMUSKVWZ.js} +2 -2
- package/dist/cdn/{QQWEAZY7.js → YOL7KVAE.js} +2 -2
- package/dist/cdn/{OWFKWQIV.js → YOYMQZ65.js} +2 -2
- package/dist/cdn/{MPOKZG5K.js → YR7KDD2X.js} +2 -2
- package/dist/cdn/{EFJYG73V.js → YRTVLUDF.js} +2 -2
- package/dist/cdn/{V66FGHZ5.js → Z2NJMMGK.js} +2 -2
- package/dist/cdn/{NIHLANDU.js → ZKEHTOSG.js} +1 -1
- package/dist/cdn/{5IX5D7MB.js → ZN2B4JSY.js} +2 -2
- package/dist/cdn/{5IZ5ZEEQ.js → ZV2CCOGP.js} +2 -2
- package/dist/cdn/{ODQ5UILC.js → ZZHYM5LZ.js} +2 -2
- package/dist/cdn/index.js +2 -2
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/AnalysisViewModel.js +1 -1
- package/dist/chunks/action-utils.js +1 -1
- package/dist/chunks/async-utils.js +1 -1
- package/dist/chunks/basemap-gallery-resources.js +1 -1
- package/dist/chunks/building-layer-utils.js +1 -1
- package/dist/chunks/chart-utils.js +1 -1
- package/dist/chunks/chartCommon.js +1 -1
- package/dist/chunks/clipoardSymbolHelper.js +1 -1
- package/dist/chunks/component-utils.js +1 -1
- package/dist/chunks/component-wrapper.js +1 -1
- package/dist/chunks/constants.js +1 -1
- package/dist/chunks/esri-main.js +1 -1
- package/dist/chunks/feature-utils.js +1 -1
- package/dist/chunks/globalCss.js +1 -1
- package/dist/chunks/goTo.js +1 -1
- package/dist/chunks/handle.js +1 -1
- package/dist/chunks/heading.js +1 -1
- package/dist/chunks/layer-list.js +1 -1
- package/dist/chunks/layer-utils.js +1 -1
- package/dist/chunks/legacyIcon.js +1 -1
- package/dist/chunks/maybe.js +1 -1
- package/dist/chunks/measurementUtils.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/screenLocation.js +1 -1
- package/dist/chunks/slots.js +1 -1
- package/dist/chunks/svgUtils.js +1 -1
- package/dist/chunks/time-utils.js +1 -1
- package/dist/chunks/univariateUtils.js +1 -1
- package/dist/chunks/useArcgisViewReadyError.js +1 -1
- package/dist/chunks/useCloseEvent.js +1 -1
- package/dist/chunks/useHandles.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/useView.js +1 -1
- package/dist/chunks/useViewModel.js +1 -1
- package/dist/chunks/useWidget.js +1 -1
- package/dist/chunks/utils.js +1 -1
- package/dist/chunks/utils2.js +1 -1
- package/dist/chunks/visible-element.js +1 -1
- package/dist/components/arcgis-area-measurement-2d/customElement.js +1 -1
- package/dist/components/arcgis-area-measurement-3d/customElement.js +1 -1
- package/dist/components/arcgis-attachments/customElement.js +1 -1
- package/dist/components/arcgis-basemap-gallery/customElement.js +1 -1
- package/dist/components/arcgis-basemap-gallery-item/customElement.js +1 -1
- package/dist/components/arcgis-basemap-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-basemap-toggle/customElement.js +1 -1
- package/dist/components/arcgis-bookmarks/customElement.js +1 -1
- package/dist/components/arcgis-building-discipline-tree/customElement.d.ts +14 -0
- package/dist/components/arcgis-building-discipline-tree/customElement.js +1 -1
- package/dist/components/arcgis-building-discipline-tree/index.d.ts +1 -0
- package/dist/components/arcgis-building-explorer/building-filter/BuildingLevel.d.ts +20 -0
- package/dist/components/arcgis-building-explorer/building-filter/BuildingNumericFilterViewModel.d.ts +94 -0
- package/dist/components/arcgis-building-explorer/building-filter/BuildingPhase.d.ts +24 -0
- package/dist/components/arcgis-building-explorer/customElement.js +1 -1
- package/dist/components/arcgis-building-explorer/support/types.d.ts +11 -0
- package/dist/components/arcgis-building-level-item/customElement.d.ts +1 -0
- package/dist/components/arcgis-building-level-item/customElement.js +1 -1
- package/dist/components/arcgis-building-level-picker/customElement.d.ts +20 -0
- package/dist/components/arcgis-building-level-picker/customElement.js +1 -1
- package/dist/components/arcgis-building-level-picker/index.d.ts +1 -0
- package/dist/components/arcgis-building-phase-picker/customElement.d.ts +19 -0
- package/dist/components/arcgis-building-phase-picker/customElement.js +1 -1
- package/dist/components/arcgis-building-phase-picker/index.d.ts +1 -0
- package/dist/components/arcgis-catalog-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-clipboard/customElement.js +1 -1
- package/dist/components/arcgis-color-select/customElement.js +1 -1
- package/dist/components/arcgis-compass/customElement.js +1 -1
- package/dist/components/arcgis-coordinate-conversion/customElement.js +1 -1
- package/dist/components/arcgis-daylight/customElement.js +1 -1
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +1 -1
- package/dist/components/arcgis-directional-pad/customElement.js +1 -1
- package/dist/components/arcgis-directions/customElement.js +1 -1
- package/dist/components/arcgis-distance-measurement-2d/customElement.js +1 -1
- package/dist/components/arcgis-editor/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-legend/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-legend-item/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-settings/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-statistics/customElement.js +1 -1
- package/dist/components/arcgis-expand/customElement.js +1 -1
- package/dist/components/arcgis-feature/customElement.js +1 -1
- package/dist/components/arcgis-feature-attachments/customElement.js +1 -1
- package/dist/components/arcgis-feature-content/customElement.js +1 -1
- package/dist/components/arcgis-feature-element-info/customElement.js +1 -1
- package/dist/components/arcgis-feature-expression/customElement.js +1 -1
- package/dist/components/arcgis-feature-fields/customElement.js +1 -1
- package/dist/components/arcgis-feature-form/customElement.js +1 -1
- package/dist/components/arcgis-feature-image/customElement.js +1 -1
- package/dist/components/arcgis-feature-media/customElement.js +1 -1
- package/dist/components/arcgis-feature-relationship/customElement.js +1 -1
- package/dist/components/arcgis-feature-table/customElement.js +1 -1
- package/dist/components/arcgis-feature-templates/customElement.js +1 -1
- package/dist/components/arcgis-feature-title/customElement.js +1 -1
- package/dist/components/arcgis-feature-utility-network-association-list/customElement.js +1 -1
- package/dist/components/arcgis-feature-utility-network-associations/customElement.js +1 -1
- package/dist/components/arcgis-features/customElement.js +1 -1
- package/dist/components/arcgis-floor-filter/customElement.js +1 -1
- package/dist/components/arcgis-fullscreen/customElement.js +1 -1
- package/dist/components/arcgis-grid-controls/customElement.js +1 -1
- package/dist/components/arcgis-histogram-range-slider/customElement.js +1 -1
- package/dist/components/arcgis-home/customElement.js +1 -1
- package/dist/components/arcgis-labeled-switch/customElement.js +1 -1
- package/dist/components/arcgis-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-layer-list-item/customElement.js +1 -1
- package/dist/components/arcgis-legend/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-color-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-element/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-size-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-univariate-above-and-below-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-univariate-color-size-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-view/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-color-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-element/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-size-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-univariate-above-and-below-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-univariate-color-size-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-view/customElement.js +1 -1
- package/dist/components/arcgis-legend-relationship-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-spike-ramp/customElement.js +1 -1
- package/dist/components/arcgis-line-of-sight/customElement.js +1 -1
- package/dist/components/arcgis-link-chart/customElement.js +2 -2
- package/dist/components/arcgis-link-chart-layout-switcher/customElement.js +1 -1
- package/dist/components/arcgis-link-chart-nonspatial-visibility-toggle/customElement.js +1 -1
- package/dist/components/arcgis-locate/customElement.js +1 -1
- package/dist/components/arcgis-map/customElement.js +2 -2
- package/dist/components/arcgis-measurement/customElement.js +1 -1
- package/dist/components/arcgis-measurement-content/customElement.js +1 -1
- package/dist/components/arcgis-multi-feature-form/customElement.js +1 -1
- package/dist/components/arcgis-navigation-toggle/customElement.js +1 -1
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +1 -1
- package/dist/components/arcgis-paste/customElement.js +1 -1
- package/dist/components/arcgis-popup/customElement.js +1 -1
- package/dist/components/arcgis-presentation/customElement.js +1 -1
- package/dist/components/arcgis-print/customElement.js +1 -1
- package/dist/components/arcgis-print-custom-text-elements/customElement.js +1 -1
- package/dist/components/arcgis-print-dpi-input/customElement.js +1 -1
- package/dist/components/arcgis-print-export-button/customElement.js +1 -1
- package/dist/components/arcgis-print-exports-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-format-select/customElement.js +1 -1
- package/dist/components/arcgis-print-layout-advanced-options/customElement.js +1 -1
- package/dist/components/arcgis-print-layout-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-main-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-map-only-advanced-options/customElement.js +1 -1
- package/dist/components/arcgis-print-map-only-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-out-spatial-reference-input/customElement.js +1 -1
- package/dist/components/arcgis-print-preview-input/customElement.js +1 -1
- package/dist/components/arcgis-print-scale-section/customElement.js +1 -1
- package/dist/components/arcgis-print-template-select/customElement.js +1 -1
- package/dist/components/arcgis-print-template-selector/customElement.js +1 -1
- package/dist/components/arcgis-scale-bar/customElement.js +1 -1
- package/dist/components/arcgis-scale-range-slider/customElement.js +1 -1
- package/dist/components/arcgis-scene/customElement.d.ts +2 -2
- package/dist/components/arcgis-scene/customElement.js +2 -2
- package/dist/components/arcgis-search/customElement.js +1 -1
- package/dist/components/arcgis-search-result-renderer/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast/customElement.d.ts +35 -26
- package/dist/components/arcgis-shadow-cast/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast-discrete-config/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast-min-duration-config/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast-total-duration-config/customElement.js +1 -1
- package/dist/components/arcgis-sketch/customElement.js +1 -1
- package/dist/components/arcgis-slice/customElement.js +1 -1
- package/dist/components/arcgis-slider-binary-color-size-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-classed-color-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-classed-size-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-color-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-color-size-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-heatmap-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-opacity-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-size-legacy/customElement.js +1 -1
- package/dist/components/arcgis-spinner/customElement.js +1 -1
- package/dist/components/arcgis-swipe/customElement.js +1 -1
- package/dist/components/arcgis-table-list/customElement.js +1 -1
- package/dist/components/arcgis-time-of-day-slider/customElement.js +1 -1
- package/dist/components/arcgis-time-slider/customElement.js +1 -1
- package/dist/components/arcgis-time-zone-label/customElement.js +1 -1
- package/dist/components/arcgis-track/customElement.js +1 -1
- package/dist/components/arcgis-unit-select/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-association-list/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-associations/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-subnetwork-info/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-location/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-location-list/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-validate-topology/customElement.js +1 -1
- package/dist/components/arcgis-value-picker/customElement.js +1 -1
- package/dist/components/arcgis-version-management/customElement.js +1 -1
- package/dist/components/arcgis-version-management-service-item/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-list/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-properties/customElement.js +1 -1
- package/dist/components/arcgis-video/customElement.js +2 -2
- package/dist/components/arcgis-video-player/customElement.js +1 -1
- package/dist/components/arcgis-video-player-action-bar/customElement.js +1 -1
- package/dist/components/arcgis-video-player-actions-group/customElement.js +1 -1
- package/dist/components/arcgis-video-player-controls-group/customElement.js +1 -1
- package/dist/components/arcgis-video-player-metadata/customElement.js +1 -1
- package/dist/components/arcgis-video-player-settings/customElement.js +1 -1
- package/dist/components/arcgis-video-player-slider/customElement.js +1 -1
- package/dist/components/arcgis-volume-measurement/customElement.d.ts +30 -13
- package/dist/components/arcgis-volume-measurement/customElement.js +1 -1
- package/dist/components/arcgis-weather/customElement.js +1 -1
- package/dist/components/arcgis-webgl-error/customElement.js +1 -1
- package/dist/components/arcgis-zoom/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/index.d.ts +24 -0
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/dist/types/lumina.d.ts +17 -0
- package/dist/types/preact.d.ts +20 -0
- package/dist/types/react.d.ts +23 -0
- package/dist/types/stencil.d.ts +17 -0
- package/package.json +6 -6
- package/dist/cdn/CUN4WNYH.js +0 -4
- package/dist/cdn/EQHEJAWU.js +0 -4
- package/dist/cdn/IYV2IRYY.js +0 -4
- package/dist/cdn/WMA7IST3.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/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import f from"./EOFJBSYD.js";import e from"./4LNVJZBH.js";import"./5WHTC46G.js";import{b as E}from"./5WZCN6OO.js";import{a as u}from"./4JARMDXC.js";import d from"./G664RYG5.js";import c from"./6KMNOSWL.js";import{a as D}from"./VEYAVWGR.js";import b from"./IY7S5TYH.js";import a from"./P3JAQDGU.js";import"./SVQJ3CP7.js";import"./5QAQJX6O.js";import"./QPLKD246.js";import"./KOM7K5Z5.js";import{L as A,M as P,N as O,P as I,Q as V,T as B,a as z,b as n,c as $,x as w}from"./25GTRBYR.js";import"./LMO3PUFV.js";export default $arcgis.t(([{property:o,subclass:J},K,_,{getApplicationClipboard:ie},ae,k,{getFullTemplate:R,isSharedTemplate:U,getCreationAttributes:X,isSharedTemplateOrMetadata:se},{createApplySetModifyItem:x,createApplySet:S,createFeatureStateProvider:G,createApplySetAddItem:H,writeApplySetToService:re},{whenOnce:Q,watch:L},oe,{substitute:y},{createGraphicsMover:le},,,W,,{a:j,b:N}])=>{var ce=z`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{max-width:fit-content;display:flex}.arcgis-paste{height:var(--arcgis-paste-height, 300px);width:var(--arcgis-paste-width, 300px);flex:1}.hidden{display:none}.flex-row{flex-direction:row}.justify-center{justify-content:center}.h-full{height:100%}.w-full{width:100%}.flex{display:flex}.text-center{text-align:center}.pad-contents{padding:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md))}.pad-start-end{padding-left:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));padding-right:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md))}.gallery-content{padding-top:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));padding-bottom:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));display:flex;row-gap:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));flex-direction:column}.chip-indent{margin-left:5px;margin-right:5px}.merge-split-view-container{display:flex;flex-direction:column;height:100%}.merge-split-view-items{flex:0 1 auto;max-height:50%;overflow-y:scroll}.merge-split-view-attributes{flex:1;overflow-y:scroll}.choose-feature{position:absolute;width:100%;max-height:100%;z-index:2;overflow-y:auto}.bau-pick{display:flex;flex-direction:row;align-items:center;gap:4px}.danger-icon-warning{--calcite-icon-color: var(--calcite-color-status-danger)}.paste-feature-templates{--arcgis-feature-templates-max-list-height: 100%}`;async function ne(t,i,e,a=new Map){let s=!0;for(let r of t.items){if(r.type!=="add")continue;let d=r.graphic.clone(),h=de(r.graphic,r.layer);if(!h){s=!1;continue}let p=!await pe(e,r.graphic,h,a,i),g=x({graphic:r.graphic,layer:r.layer,originalGraphic:d});t.push(g),p||(s=!1)}return s}function de(t,i){return i.type==="feature"||i.type==="subtype-sublayer"?i:i.findSublayerForFeature(t)||null}async function pe(t,i,e,a,s){let r=e.formTemplate,d=e.fields.filter(m=>{let M=i.attributes[m.name],te=M===null||M===""||M===void 0;return m.editable&&!m.nullable&&te});if(!r)return d.length!==0;let h=new Set;if(ee(r.elements??[],h),d.length===0&&h.size===0&&!s)return!1;let p=new Set;if(Y(r.elements??[],p),[...h].filter(m=>p.has(m)).length===0&&!s)return!1;let g=i.clone();delete g.attributes[e.objectIdField],a.set(e,new oe({layer:e,map:t.map,formTemplate:r,editType:"INSERT",feature:g}));let F=a.get(e);await new Promise(m=>{setTimeout(m,5)}),await Q(()=>F.state==="ready"&&!F.updating);let b=F.getValues()??{};if(e.objectIdField&&b[e.objectIdField]!==void 0){let{[e.objectIdField]:m,...M}=b;b=M}return Object.keys(b).forEach(m=>{e.fieldsIndex.has(m)&&(i.attributes[m]=ue(b[m],m,e.fieldsIndex))}),!F.valid}function Y(t,i){for(let e of t)e.type==="group"?Y(e.elements,i):e.type==="field"&&e.valueExpression&&i.add(e.fieldName)}function ee(t,i){for(let e of t)e.type==="group"?ee(e.elements,i):e.type==="field"&&e.requiredExpression&&i.add(e.fieldName)}function he(t){return typeof t=="number"}function me(t){return typeof t=="number"&&window.isFinite(t)&&Math.floor(t)===t}function ue(t,i,e){if(t==null)return null;switch(e.get(i).type){case"big-integer":case"long":case"oid":case"integer":case"small-integer":return me(t)?t:window.parseInt(t);case"single":case"double":return he(t)?t:window.parseFloat(t);case"global-id":case"guid":return t===""?null:t;case"date":break;case"date-only":case"time-only":case"timestamp-offset":return t===""?null:t;case"string":return t===""?null:t}return t}function ge(t){return t&&"layer"in t?t.layer:void 0}function C(t){if(!t)return null;let i=ge(t.origin)??t.layer??t?.sourceLayer??null;if(i&&i.type==="subtype-sublayer")return i.parent;switch(i?.type){case"csv":case"feature":case"geojson":case"ogc-feature":case"subtype-group":case"wfs":return i;default:return null}}var ve=Object.defineProperty,be=Object.getOwnPropertyDescriptor,c=(t,i,e,a)=>{for(var s=a>1?void 0:a?be(i,e):i,r=t.length-1,d;r>=0;r--)(d=t[r])&&(s=(a?d(i,e,s):d(s))||s);return a&&s&&ve(i,e,s),s},q={noChangeError:"Operation has not made any changes",noSelectedError:"Operation requires a selected feature",deletesGeometryError:"Operation would result in a null geometry",noGeometryError:"The selected feature has not geometry"};function Z(t){return!se(t)||t.type!=="feature"}var l=class extends K{constructor(t){super(t),this.customPasteCommands=new k,this.bauInvalidFeatures=[],this.bauFormValid=!0,this.bauFormUpdating=!1,this.bauActiveFeatureIndex=-1,this.bauSubmitHasBeenAttempted=!1,this.bauOriginalGraphics=[],this.formViewModelMap=new Map,this.supportedCommands=["paste-append","paste-as","paste-subtract","paste","paste-merge"],this.pasteWithMultipleLayersEnabled=!1,this.pasteWithMultipleFeaturesEnabled=!1,this.alwaysShowFeatureForm=!1,this.selectedClipboardItemIndex=-1,this.pasteWithAttributes=!0,this.closeOnApply=!1,this.currentPasteOperation="",this._activeFlowPage="commands-page",this.showClipboardItems=!1,this.hideFooterCancelButton=!1,this.hideViewClipboard=!1,this.hideErrorNotice=!1,this.highlightGroup="temporary",this._hoverHighlightHandle=null,this.layerPermissionsCheck={canCreate:i=>i?!!i.effectiveCapabilities?.operations.supportsAdd:!1,canUpdate:i=>{if(!i)return!1;let e=i.effectiveCapabilities,a=!!e?.operations.supportsUpdate,s=!!e?.editing.supportsGeometryUpdate&&a;return!i.isTable&&!s?!1:a}},this.applying=!1}get bauActiveGraphic(){return this.bauActiveFeatureIndex===-1?void 0:this.bauFeatures?.getItemAt(this.bauActiveFeatureIndex)}get bauActiveLayer(){if(this.bauActiveFeatureIndex!==-1&&this.bauFeatures)return C(this.bauFeatures.getItemAt(this.bauActiveFeatureIndex))??void 0}get clipboardAndTemplateSupportAttributes(){if(this.clipboard.items.length===0||!this.pasteTemplate?.layer)return!1;let t=this.pasteTemplate.template;if(!Z(t))return!1;for(let i of this.clipboard.items){let e=i.layer;if(!e)return!1;let a=e.type==="subtype-sublayer"?e.parent:e;if(a.type==="subtype-group"){let s=a.fieldsIndex.get(a.subtypeField).name,r=t.prototype?.[s];if(r==null||r!==i.graphic.attributes[s])return!1}}return!0}get hasClipboardItemMatchingTemplate(){let t=this.pasteTemplate?.layer;if(!t||this.clipboard.items.length===0)return!1;let i=this.pasteTemplate.template;if(!Z(i))return!1;for(let e of this.clipboard.items){let a=e.layer;if(!a)return!1;let s=a.type==="subtype-sublayer"?a.parent:a;if(t===a){if(s.type==="subtype-group"){let r=s.fieldsIndex.get(s.subtypeField).name,d=i.prototype?.[r];if(d==null||d!==e.graphic.attributes[r])continue}return!0}}return!1}get activeFlowPage(){return this._activeFlowPage}set activeFlowPage(t){t==="clipboard"&&this.beforeClipboard===void 0?this.beforeClipboard=this.activeFlowPage:t!=="clipboard"&&(this.beforeClipboard=void 0),t==="paste-form"&&this.beforeForm===void 0?this.beforeForm=this.activeFlowPage:t!=="paste-form"&&(this.beforeForm=void 0),this._activeFlowPage=t,this.checkAndSuspendMove()}get updating(){return this.applying}formFeatureValuesChanged(t,i){if(!i)return;let e=t.graphic.clone();for(let s of Object.keys(i))e.attributes[s]=i[s];let a=x({graphic:e,originalGraphic:t.graphic.clone(),layer:t.layer});this.bauApplySet?.push(a)}highlightSelectedGraphicOnMap(t){if(this.clearHighlightSelectedGraphic(),!t.graphic?.geometry||!this.view)return;let i=new _({geometry:t.graphic.geometry,symbol:N(t.graphic.geometry.type)});this.view.graphics.add(i),this._hoverHighlightHandle={remove:()=>{this.view.graphics.remove(i)}}}clearHighlightSelectedGraphic(){this._hoverHighlightHandle?.remove(),this._hoverHighlightHandle=null}updateIndividualMultiFeatureFormHighlight(){if(this.activeFlowPage!=="paste-form"){this.clearIndividualFeatureFormHighlight();return}if(this.view)if(this.bauActiveGraphic&&this.bauActiveLayer){if(this.bauIndividualHighlight?.graphic!==this.bauActiveGraphic&&this.clearIndividualFeatureFormHighlight(),!this.bauIndividualHighlight){let t=E(this.view,this.bauActiveLayer);if(!t)return;this.bauIndividualHighlight={graphic:this.bauActiveGraphic,handle:t.highlight(this.bauActiveGraphic,{name:this.highlightGroup})}}}else this.clearIndividualFeatureFormHighlight()}clearIndividualFeatureFormHighlight(){this.bauIndividualHighlight?.handle?.remove(),this.bauIndividualHighlight=void 0}highlightMultiFeatureFormFeature(t,i){this.bauHighlight&&this.clearMultiFeatureFormHighlights();let e=this.view?E(this.view,t.layer):void 0;e&&(this.bauHighlight=e.highlight(t,{name:this.highlightGroup}))}clearMultiFeatureFormHighlights(){this.bauHighlight?.remove(),this.bauHighlight=void 0}updateClipboardGraphicsLayer(){if(!this.showClipboardItems){if(this.clipboardMover?.cancel(),this.clipboardMover=void 0,this.clipboardGraphicsLayer&&this.view)try{this.view.map?.remove(this.clipboardGraphicsLayer),this.clipboardGraphicsLayer=void 0}catch{}return}if(this.showClipboardItems&&this.view){this.clipboardGraphicsLayer||(this.clipboardGraphicsLayer=new ae,this.view.map?.layers.add(this.clipboardGraphicsLayer));let t=this.clipboard.items;this.clipboardGraphicsLayer.removeAll();let i=-1;for(let e of t){if(i++,!e.graphic.geometry)continue;let a=new _({geometry:e.graphic.geometry.clone(),attributes:{clipboardIdx:i},symbol:j(e.graphic.geometry.type)});this.clipboardGraphicsLayer.add(a)}}else if(!this.showClipboardItems&&this.view&&this.clipboardGraphicsLayer)try{this.view.map?.remove(this.clipboardGraphicsLayer),this.clipboardGraphicsLayer=void 0}catch{}this.checkAndSuspendMove()}checkAndSuspendMove(){let t=this.activeFlowPage==="paste-form";this.clipboardGraphicsLayer&&(this.clipboardGraphicsLayer.visible=!t),this.clipboardMover&&(this.clipboardMover.suspended=t)}get clipboard(){return ie()}get clipboardFeatures(){return this.clipboard.items.filter(t=>t.type==="feature")}get hasPasteCommandsPage(){return this.availableCommands.length>1||!!this.availableCommands.at(0)?.mustShowOnCommandPage}_clearActiveCommand(){this.activeCommand=void 0,this.pasteTemplate=void 0,this.lastPasteError=void 0}resetHome(){let t=this.activeFlowPage;this.hasPasteCommandsPage?(t="commands-page",this._clearActiveCommand(),this.selectedClipboardItemIndex=-1):this.clipboard.items.length===0?(t="nodata-page",this._clearActiveCommand(),this.selectedClipboardItemIndex=-1):this.availableCommands.length===0?(t="no-command-page",this._clearActiveCommand()):this.availableCommands[0].commandEnabled?(this.pasteTemplate=void 0,t="gallery-page",this.activeCommand=this.availableCommands[0].id,this.lastPasteError=void 0):(t="no-command-page",this._clearActiveCommand(),this.selectedClipboardItemIndex=-1),this.activeFlowPage==="clipboard"&&this.hideViewClipboard?(this.activeFlowPage=t,this.beforeClipboard=void 0):this.activeFlowPage==="clipboard"&&!this.hideViewClipboard?this.beforeClipboard=t:(this.activeFlowPage=t,this.beforeClipboard=void 0),this.resetFormPage()}get workingLayers(){return(this.view?.map?.allLayers?.toArray()??[]).filter(t=>t.type==="feature").filter(t=>{let i=this.clipboard.singleGeometryType;return this.activeCommand==="paste-merge"&&this.clipboard.singleGeometryType==="point"&&(i="multipoint"),!(t.geometryType!==i||!this.layerPermissionsCheck.canCreate(t))})}get clipboardItemLayers(){let t=new Set;for(let i of this.clipboard.items)i.layer&&t.add(i.layer.type==="subtype-sublayer"?i.layer.parent:i.layer);return[...t]}get canCreateOnAllLayers(){if(this.clipboardItemLayers.length===0)return!1;for(let t of this.clipboardItemLayers)if(!t||!this.layerPermissionsCheck.canCreate(t))return!1;return!0}get availableCommands(){let t=[],i=new Set(this.supportedCommands);if(i.has("paste")){let e=this.clipboard.items.length===1,a=this.clipboard.items.length>0&&this.clipboardItemLayers.length===1&&this.pasteWithMultipleFeaturesEnabled,s=this.clipboard.items.length>0&&this.pasteWithMultipleFeaturesEnabled&&this.pasteWithMultipleLayersEnabled;t.push({id:"paste",icon:"duplicate",immediate:!0,initiate:async r=>{await this.runPasteCommand(r,"paste")},mustShowOnCommandPage:!0,commandEnabled:this.clipboard.items.length>0&&this.canCreateOnAllLayers&&(e||a||s),description:(r,d)=>r.pasteDesc,label:(r,d)=>r.pasteTitle})}i.has("paste-as")&&t.push({id:"paste-as",icon:"templates",initiate:async e=>{this.activeFlowPage="gallery-page",this.activeCommand="paste-as"},commandDisabledReason:(e,a)=>{if(this.clipboard.items.length===0)return e.noClipboardData;if(this.clipboard.items.length>1){if(!this.pasteWithMultipleFeaturesEnabled)return e.pasteMultipleNotSupported;if(this.clipboard.geometryTypes.size>1)return e.mixedGeometriesNotSupported}return this.clipboard.singleGeometryType?"":e.pasteAsMustHaveGeometry},immediate:!1,mustShowOnCommandPage:!1,commandEnabled:(this.clipboard.items.length===1||this.clipboard.items.length>0&&this.pasteWithMultipleFeaturesEnabled)&&this.clipboard.singleGeometryType!==void 0,description:(e,a)=>e.pasteAsDesc,label:(e,a)=>e.pasteAsTitle}),i.has("paste-merge")&&t.push({id:"paste-merge",icon:"merge",immediate:!1,initiate:async e=>{this.activeFlowPage="gallery-page",this.activeCommand="paste-merge";for(let a=0;a<this.clipboard.items.length;a++)if(this.clipboard.items.getItemAt(a).type==="feature"){this.selectedClipboardItemIndex=a;break}},mustShowOnCommandPage:!0,commandEnabled:this.clipboard.items.length>1&&this.clipboard.singleGeometryType!==void 0,description:(e,a)=>e.pasteMergeDesc,label:(e,a)=>e.pasteMergeTitle}),i.has("paste-append")&&t.push({id:"paste-append",icon:"reshape-add-geometry",immediate:!0,initiate:async e=>{await this.runPasteAppendCommand(e)},mustShowOnCommandPage:!0,commandEnabled:this.clipboard.items.length>0&&this.selectedFeature!==void 0&&this.layerPermissionsCheck.canUpdate(C(this.selectedFeature))&&this.selectedFeature?.geometry!==null&&(this.selectedFeature?.geometry?.type==="multipoint"||this.selectedFeature?.geometry?.type==="polyline"||this.selectedFeature?.geometry?.type==="polygon")&&this.clipboard.singleGeometryType===this.selectedFeature?.geometry?.type,description:(e,a)=>e.pasteAppendDesc,label:(e,a)=>e.pasteAppendTitle}),i.has("paste-subtract")&&t.push({id:"paste-subtract",icon:"reshape-subtract-geometry",immediate:!0,initiate:async e=>{await this.runPasteSubtractCommand(e)},mustShowOnCommandPage:!0,commandEnabled:this.clipboard.items.length>0&&this.selectedFeature!==void 0&&this.layerPermissionsCheck.canUpdate(C(this.selectedFeature))&&this.selectedFeature?.geometry!==null&&(this.selectedFeature?.geometry?.type==="multipoint"||this.selectedFeature?.geometry?.type==="polyline"||this.selectedFeature?.geometry?.type==="polygon")&&(this.clipboard.singleGeometryType===this.selectedFeature?.geometry?.type||this.clipboard.singleGeometryType==="polygon"),description:(e,a)=>e.pasteSubtractDesc,label:(e,a)=>e.pasteSubtractTitle});for(let e of this.customPasteCommands)i.has(e.id)&&t.push({id:e.id,icon:e.icon,immediate:!0,initiate:async a=>{try{this.applying=!0,(await a.onApply({command:e.id})).success&&(this.resetHome(),this.closeOnApply&&a.closeAfterApply())}finally{this.applying=!1}},mustShowOnCommandPage:!0,commandEnabled:e.commandEnabled(this.clipboard,this.selectedFeature),description:(a,s)=>e.description(a,s),label:(a,s)=>e.label(a,s)});return t}async createMergedClipboardGeom(){let t=this.clipboard.items.map(i=>i.graphic?.geometry).filter(i=>i!=null).toArray();return t.length===0?null:t.length===1?t[0].clone():(await $arcgis.t(m=>m[0],"geometry/operators/unionOperator")).executeMany(t)??null}removeGraphicIdentifierFields(t,i){i.objectIdField&&delete t.attributes[i.objectIdField],i.globalIdField&&delete t.attributes[i.globalIdField]}nextActiveFeature(){this.bauActiveFeatureIndex++,this.updateIndividualMultiFeatureFormHighlight()}previousActiveFeature(){this.bauActiveFeatureIndex--,this.updateIndividualMultiFeatureFormHighlight()}async runPasteAppendCommand(t){let i=null;try{this.applying=!0;let e=await this.prepareAppend();if(e.applySet&&(i=e.applySet),!e.success){this.lastPasteError={errorCode:e.failReason,errorMessage:q[e.failReason],localizedErrorMessage:e.failReason},t.onPasteError(this.lastPasteError);return}(await t.onApply({command:"paste-append",applySet:e.applySet})).success&&(this.resetHome(),this.closeOnApply&&t.closeAfterApply())}catch(e){this.lastPasteError={errorCode:"unexpectedError",errorMessage:e.message,localizedErrorMessage:"unexpectedError"},t.onPasteError(this.lastPasteError);return}finally{this.applying=!1,i&&(i.featureState?.clearAll(),i.featureState=null)}}async prepareAppend(){let t=S();if(t.featureState=G(this.view),!this.selectedFeature)return{success:!1,failReason:"noSelectedError"};let[i,e]=await Promise.all([$arcgis.t(m=>m[0],"geometry/operators/unionOperator"),$arcgis.t(m=>m[0],"geometry/operators/equalsOperator")]),a=this.selectedFeature.geometry,s=!1;for(let d of this.clipboard.items){let h=d?.graphic?.geometry??null;if(!h)continue;if(a===null){a=d?.graphic?.geometry??null,a&&(a=a.clone(),s=!0);continue}let p=i.execute(a,h);e.execute(a,p)||(a=p,s=!0)}if(!s)return{success:!1,failReason:"noChangeError"};let r=this.selectedFeature.clone();return r.geometry=a,t.push(x({graphic:r,layer:this.selectedFeature.origin,originalGraphic:this.selectedFeature})),{success:!0,applySet:t}}resetFormPage(){this.bauApplySet?.featureState?.clearAll(),this.bauApplySet=void 0,this.clearIndividualFeatureFormHighlight(),this.clearMultiFeatureFormHighlights(),this.bauFeatures=void 0,this.bauOriginalGraphics=[],this.bauSubmitHasBeenAttempted=!1}async runPasteSubtractCommand(t){let i=null;try{this.applying=!0;let e=await this.prepareSubtract();if(e.applySet&&(i=e.applySet),!e.success){this.lastPasteError={errorCode:e.failReason,errorMessage:q[e.failReason],localizedErrorMessage:e.failReason},t.onPasteError(this.lastPasteError);return}(await t.onApply({command:"paste-subtract",applySet:e.applySet})).success&&(this.resetHome(),this.closeOnApply&&t.closeAfterApply())}catch(e){this.lastPasteError={errorCode:"unexpectedError",errorMessage:e.message,localizedErrorMessage:"unexpectedError"},t.onPasteError(this.lastPasteError);return}finally{this.applying=!1,i&&(i.featureState?.clearAll(),i.featureState=null)}}async prepareSubtract(){let t=S();if(t.featureState=G(this.view),!this.selectedFeature)return{success:!1,failReason:"noSelectedError",applySet:t};let[i,e]=await Promise.all([$arcgis.t(m=>m[0],"geometry/operators/differenceOperator"),$arcgis.t(m=>m[0],"geometry/operators/equalsOperator")]),a=this.selectedFeature.geometry;if(!a)return{success:!1,failReason:"noGeometryError",applySet:t};let s=!1;for(let d of this.clipboard.items){let h=d?.graphic?.geometry;if(!h)continue;let p=i.execute(a,h);if(!p)return{success:!1,failReason:"deletesGeometryError",applySet:t};e.execute(a,p)||(a=p,s=!0)}if(!s)return{success:!1,failReason:"noChangeError",applySet:t};let r=this.selectedFeature.clone();return r.geometry=a,t.push(x({graphic:r,layer:this.selectedFeature.origin,originalGraphic:this.selectedFeature})),{success:!0,applySet:t}}async runPasteFormCommand(t){try{this.applying=!0;let i=this.bauApplySet;(await t.onApply({command:this.activeCommand,applySet:i})).success&&(this.resetHome(),this.closeOnApply&&t.closeAfterApply())}catch(i){this.lastPasteError={errorCode:"unexpectedError",errorMessage:i.message,localizedErrorMessage:"unexpectedError"},t.onPasteError(this.lastPasteError);return}finally{this.applying=!1}}async runPasteCommand(t,i){try{this.applying=!0;let e=await this.prepareCopy(i);if(!e||e.items.length===0){this.lastPasteError={errorCode:"noPasteItems",errorMessage:"No items to paste",localizedErrorMessage:"noPasteItemsError"},t.onPasteError(this.lastPasteError);return}let a=!await ne(e,this.alwaysShowFeatureForm,this.view,this.formViewModelMap);if(this.alwaysShowFeatureForm||a)this.bauActiveFeatureIndex=0,this.bauApplySet=e,this.activeCommand=i,this.bauOriginalGraphics=e.items.map(s=>s.type==="add"?{layer:s.layer,graphic:s.graphic}:null).filter(s=>s!==null),this.bauFeatures=new k,this.activeFlowPage="paste-form",await new Promise(s=>{setTimeout(s,100)}),this.bauFeatures=new k(this.bauOriginalGraphics.map(s=>(s.graphic.origin=s.layer,s.graphic.layer=s.layer,s.graphic))),this.updateIndividualMultiFeatureFormHighlight();else try{(await t.onApply({command:"paste",applySet:e})).success&&(this.resetHome(),this.closeOnApply&&t.closeAfterApply())}finally{e?.featureState?.clearAll()}}finally{this.applying=!1}}async prepareCopy(t){let i=t==="paste"||t==="paste-as"&&this.pasteWithAttributes||t==="paste-merge"&&this.pasteWithAttributes,e=i&&t==="paste-merge"?this.clipboard.items.getItemAt(this.selectedClipboardItemIndex):null,a=S();if(a.featureState=G(this.view),t==="paste-merge"){let s=this.pasteTemplate?.template?await R(this.view,this.pasteTemplate.template):null;if(!s)return null;let r=U(this.pasteTemplate.template)?s.layer:this.pasteTemplate.layer,d=await this.createMergedClipboardGeom(),h=X(s,e?{...e.graphic.attributes}:{}),p=new _({geometry:d,attributes:h});this.removeGraphicIdentifierFields(p,r),a.push(H({graphic:p,layer:r}))}else if(t==="paste"){for(let s of this.clipboard.items)if(s.type==="feature"){let r=s.graphic.clone();this.removeGraphicIdentifierFields(r,s.layer),a.push(H({graphic:r,layer:s.layer}))}}else if(t==="paste-as"){let s=this.pasteTemplate?.template?await R(this.view,this.pasteTemplate.template):null,r=U(s)?s.layer:this.pasteTemplate.layer;for(let d of this.clipboard.items){let h=X(s,i?{...d.graphic.attributes??{}}:{}),p=new _({geometry:d.graphic?.geometry?.clone()??null,attributes:h});this.removeGraphicIdentifierFields(p,r),a.push(H({graphic:p,layer:r}))}}return a}async writeChanges(t){return await re(t,this.view)}};c([o()],l.prototype,"customPasteCommands",2);c([o()],l.prototype,"bauInvalidFeatures",2);c([o()],l.prototype,"bauFormValid",2);c([o()],l.prototype,"bauFormUpdating",2);c([o()],l.prototype,"bauActiveFeatureIndex",2);c([o()],l.prototype,"bauSubmitHasBeenAttempted",2);c([o()],l.prototype,"bauActiveGraphic",1);c([o()],l.prototype,"bauActiveLayer",1);c([o()],l.prototype,"bauFeatures",2);c([o()],l.prototype,"bauApplySet",2);c([o()],l.prototype,"bauOriginalGraphics",2);c([o()],l.prototype,"formViewModelMap",2);c([o()],l.prototype,"bauHighlight",2);c([o()],l.prototype,"bauIndividualHighlight",2);c([o()],l.prototype,"view",2);c([o()],l.prototype,"supportedCommands",2);c([o()],l.prototype,"selectedFeature",2);c([o()],l.prototype,"pasteWithMultipleLayersEnabled",2);c([o()],l.prototype,"pasteWithMultipleFeaturesEnabled",2);c([o()],l.prototype,"alwaysShowFeatureForm",2);c([o()],l.prototype,"pasteTemplate",2);c([o()],l.prototype,"selectedClipboardItemIndex",2);c([o()],l.prototype,"clipboardAndTemplateSupportAttributes",1);c([o()],l.prototype,"hasClipboardItemMatchingTemplate",1);c([o()],l.prototype,"pasteWithAttributes",2);c([o()],l.prototype,"closeOnApply",2);c([o()],l.prototype,"currentPasteOperation",2);c([o()],l.prototype,"activeFlowPage",1);c([o()],l.prototype,"_activeFlowPage",2);c([o()],l.prototype,"beforeClipboard",2);c([o()],l.prototype,"beforeForm",2);c([o()],l.prototype,"showClipboardItems",2);c([o()],l.prototype,"updating",1);c([o()],l.prototype,"hideFooterCancelButton",2);c([o()],l.prototype,"hideViewClipboard",2);c([o()],l.prototype,"hideErrorNotice",2);c([o()],l.prototype,"clipboardGraphicsLayer",2);c([o()],l.prototype,"clipboardMover",2);c([o()],l.prototype,"highlightGroup",2);c([o()],l.prototype,"clipboard",1);c([o()],l.prototype,"clipboardFeatures",1);c([o()],l.prototype,"hasPasteCommandsPage",1);c([o()],l.prototype,"activeCommand",2);c([o()],l.prototype,"workingLayers",1);c([o()],l.prototype,"layerPermissionsCheck",2);c([o()],l.prototype,"clipboardItemLayers",1);c([o()],l.prototype,"canCreateOnAllLayers",1);c([o()],l.prototype,"applying",2);c([o()],l.prototype,"lastPasteError",2);c([o()],l.prototype,"availableCommands",1);l=c([J("components.paste.PasteViewModel")],l);var we=Object.defineProperty,ye=Object.getOwnPropertyDescriptor,f=(t,i,e,a)=>{for(var s=a>1?void 0:a?ye(i,e):i,r=t.length-1,d;r>=0;r--)(d=t[r])&&(s=(a?d(i,e,s):d(s))||s);return a&&s&&we(i,e,s),s},v=class extends K{constructor(){super(...arguments),this.continuous=!1,this._mover=null,this.stateChanged=null,this._suspended=!1}clipboardContentsChanged(){this._destroyMover(),this.stateChanged?.("clipboard-contents-changed"),this.continuous&&this.start()}start(){this._destroyMover(),this._mover=le({view:this.view,graphics:this.graphicsLayer.graphics.toArray(),indicatorsEnabled:!0,highlightsEnabled:!0,enableMoveAllGraphics:!0,callbacks:{onGraphicPointerOver:()=>{"cursor"in this.view&&(this.view.cursor="move")},onGraphicPointerOut:()=>{"cursor"in this.view&&(this.view.cursor="default")},onGraphicMoveStop:async()=>{"cursor"in this.view&&(this.view.cursor="default");for(let t of this.graphicsLayer.graphics)this.clipboard.items.getItemAt(t.attributes.clipboardIdx).graphic.geometry=t.geometry;this._destroyMover(),this.stateChanged?.("contents-moved"),this.continuous&&setTimeout(()=>{this.start()},100)}}})}cancel(){this.continuous=!1,this._destroyMover(),this.stateChanged?.("completed")}get suspended(){return this._suspended}set suspended(t){t!==this._suspended&&(t?(this._destroyMover(),this.stateChanged?.("suspended")):(this.start(),this.stateChanged?.("suspended")),this._suspended=t)}_destroyMover(){this._mover?.destroy(),this._mover=null}};f([o()],v.prototype,"view",2);f([o()],v.prototype,"continuous",2);f([o()],v.prototype,"clipboard",2);f([o()],v.prototype,"graphicsLayer",2);f([o()],v.prototype,"suspended",1);f([o()],v.prototype,"_suspended",2);v=f([J("components.paste.ClipboardMove")],v);var fe=W(l),T=class extends O{constructor(){super(...arguments),this._featureFormElement=A(),this._bauForm=A(),this._messages=D(),this.viewModel=fe(this),this.activeFlowPage=this.viewModel.activeFlowPage,this.hasPasteCommandsPage=this.viewModel.hasPasteCommandsPage,this.activeCommand=this.viewModel.activeCommand,this.availableCommands=this.viewModel.availableCommands,this._showFloatingChoice=!1,this.autoDestroyDisabled=!1,this.view=this.viewModel.view,this.selectedFeature=this.viewModel.selectedFeature,this.closed=!1,this.highlightGroup=this.viewModel.highlightGroup,this.pasteWithMultipleLayersEnabled=this.viewModel.pasteWithMultipleLayersEnabled,this.pasteWithMultipleFeaturesEnabled=this.viewModel.pasteWithMultipleFeaturesEnabled,this.alwaysShowFeatureForm=this.viewModel.alwaysShowFeatureForm,this.closeOnApply=this.viewModel.closeOnApply,this.hideErrorNotice=this.viewModel.hideErrorNotice,this.hideFooterCancelButton=this.viewModel.hideFooterCancelButton,this.hideViewClipboard=this.viewModel.hideViewClipboard,this.layerPermissionsCheck=this.viewModel.layerPermissionsCheck,this.arcgisApplyPasteCommand=w(),this.arcgisApplyPasteError=w(),this.arcgisBeforeClipboardMove=w(),this.arcgisClipboardMoveStateChanged=w(),this.arcgisClose=w(),this.arcgisReady=w()}static{this.properties={activeFlowPage:16,hasPasteCommandsPage:16,activeCommand:16,availableCommands:16,_showFloatingChoice:16,autoDestroyDisabled:5,referenceElement:1,view:0,selectedFeature:0,closed:7,highlightGroup:1,supportedCommands:1,pasteWithMultipleLayersEnabled:5,pasteWithMultipleFeaturesEnabled:5,alwaysShowFeatureForm:5,beforeApply:0,clipboard:32,closeOnApply:5,hideErrorNotice:5,hideFooterCancelButton:5,hideViewClipboard:5,layerPermissionsCheck:0}}static{this.styles=ce}get supportedCommands(){return this.viewModel.supportedCommands}set supportedCommands(i){if(!Array.isArray(i)){this.viewModel.supportedCommands=i.split(",");return}this.viewModel.supportedCommands=i.slice(0)}get clipboard(){return this.viewModel.clipboard}async cancelMoveClipboard(){this.viewModel.clipboardMover?.cancel(),this.viewModel.clipboardMover=void 0}async destroy(){await this.manager.destroy()}async registerPasteCommand(i){this.viewModel.customPasteCommands.add(i)}async showClipboardItems(i){this.viewModel.showClipboardItems=i,this.viewModel.updateClipboardGraphicsLayer()}async startMoveClipboard(i){if(!this.viewModel.showClipboardItems)throw new Error("Cannot move clipboard. Clipboard items must be visible first.");this.arcgisBeforeClipboardMove.emit().defaultPrevented||(this.viewModel.clipboardMover&&(this.viewModel.clipboardMover.stateChanged=null,this.viewModel.clipboardMover.cancel(),this.viewModel.clipboardMover=void 0),this.viewModel.clipboardMover=new v({view:this.view,continuous:i,clipboard:this.clipboard,graphicsLayer:this.viewModel.clipboardGraphicsLayer,stateChanged:e=>{e==="contents-moved"&&this.viewModel.updateClipboardGraphicsLayer(),this.arcgisClipboardMoveStateChanged.emit({change:e})}}),this.viewModel.clipboardMover.start())}async writeChanges(i){return await this.viewModel.writeChanges(i)}updated(){this._featureFormElement.value&&(this._featureFormElement.value.hideReadOnlyNotice=!0,this._featureFormElement.value.disabled=!0)}loaded(){this.manager.onLifecycle(()=>[this.viewModel.clipboard.items.on("change",()=>{this.viewModel.updateClipboardGraphicsLayer(),this.activeFlowPage==="paste-form"&&this.viewModel.resetHome()}),L(()=>this.clipboard.version,()=>{this.viewModel.resetHome(),this.viewModel.updateClipboardGraphicsLayer(),this.viewModel.clipboardMover?.clipboardContentsChanged()}),L(()=>this.closed,()=>{this.closed&&this.viewModel.formViewModelMap.clear(),this.viewModel.updateClipboardGraphicsLayer()}),L(()=>[this.viewModel?.supportedCommands.join(","),this.pasteWithMultipleFeaturesEnabled,this.viewModel?.hideViewClipboard,this.pasteWithMultipleLayersEnabled].join(","),()=>{this.viewModel.resetHome()},{initial:!0})])}_handleCloseAfterApply(){this.closed=!0,this.arcgisClose.emit()}_updateBauViewModelFields(i){this.viewModel.bauActiveFeatureIndex=i.activeFeatureIndex,this.viewModel.bauInvalidFeatures=i.invalidFeatures,this.viewModel.bauSubmitHasBeenAttempted=i.submitHasBeenAttempted,this.viewModel.bauFormValid=i.valid,this.viewModel.bauFormUpdating=i.updating}_renderCloseCommand(){return n`<calcite-action slot=header-actions-end icon=x text @click=${()=>{this.viewModel.resetHome(),this.closed=!0,this.arcgisClose.emit()}}></calcite-action>`}_renderClipboardCommand(){return n`<calcite-action slot=header-actions-end icon=clipboard .hidden=${this.viewModel.hideViewClipboard} text .disabled=${this.viewModel.updating} @click=${()=>{this.viewModel.activeFlowPage="clipboard"}}></calcite-action>`}_renderNoClipboardData(i){return u("no-data",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${e=>{e.preventDefault()}}>${this._renderClipboardCommand()}${this._renderCloseCommand()}<calcite-panel><div class="pad-contents"><div class="flex flex-row justify-center"><svg xmlns=http://www.w3.org/2000/svg height=92 width=92 style=${I({strokeWidth:"0.1px",fill:"var(--calcite-color-text-2)"})} viewBox="0 0 64 64">${$`<path d="M21 18h-1v-3h1zm24-3h-1v3h1zm0 5h-1v3h1zm-24 0h-1v3h1zm9.84 13.71l.3.954 3.02-.954-.3-.953zm-6.04 1.908l.3.953 3.02-.953-.3-.953zm-3.8 1.2V35h-1v3.182l2.08-.657-.3-.953zM21 30h-1v3h1zm0-5h-1v3h1zm27.816 5.896l-4.746.015 2.294 4.575-3.071 1.535-2.358-4.668-2.835 3.886V23.036zm-6.04-.78l3.607-.012-7.483-5.49v9.17l2.16-2.96 2.587 5.126 1.643-.821zM60.9 10.874v41.25a1.777 1.777 0 0 1-1.775 1.775H4.875A1.777 1.777 0 0 1 3.1 52.125v-41.25A1.777 1.777 0 0 1 4.875 9.1h54.25a1.777 1.777 0 0 1 1.775 1.775zm-.8 24.54l-24.2 7.641V53.1h23.225a.976.976 0 0 0 .975-.975zm0-24.54a.976.976 0 0 0-.975-.975H45V13h-1V9.9H21V13h-1V9.9H4.875a.976.976 0 0 0-.975.975V32.1H18v.8H3.9v19.225a.976.976 0 0 0 .975.975H35.1V35.51l.8-.252v6.96l24.2-7.643z" />`}</svg></div><p class="text-center">${this._messages.noClipboardData}</p></div></calcite-panel></calcite-flow-item>`)}_renderNoCommandPage(i){let e=this._messages.noPasteCommandsAvailable,a=this.availableCommands.at(0);return a?.commandDisabledReason&&(e=a.commandDisabledReason(this._messages,this._messages._lang),e||(e=this._messages.noPasteCommandsAvailable)),u("no-command",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${s=>{s.preventDefault()}}>${this._renderClipboardCommand()}${this._renderCloseCommand()}<calcite-panel><div class="pad-contents"><div class="flex flex-row justify-center"><svg xmlns=http://www.w3.org/2000/svg height=92 width=92 style=${I({strokeWidth:"0.1px",fill:"var(--calcite-color-text-2)"})} viewBox="0 0 64 64">${$`<path d="M21 18h-1v-3h1zm24-3h-1v3h1zm0 5h-1v3h1zm-24 0h-1v3h1zm9.84 13.71l.3.954 3.02-.954-.3-.953zm-6.04 1.908l.3.953 3.02-.953-.3-.953zm-3.8 1.2V35h-1v3.182l2.08-.657-.3-.953zM21 30h-1v3h1zm0-5h-1v3h1zm27.816 5.896l-4.746.015 2.294 4.575-3.071 1.535-2.358-4.668-2.835 3.886V23.036zm-6.04-.78l3.607-.012-7.483-5.49v9.17l2.16-2.96 2.587 5.126 1.643-.821zM60.9 10.874v41.25a1.777 1.777 0 0 1-1.775 1.775H4.875A1.777 1.777 0 0 1 3.1 52.125v-41.25A1.777 1.777 0 0 1 4.875 9.1h54.25a1.777 1.777 0 0 1 1.775 1.775zm-.8 24.54l-24.2 7.641V53.1h23.225a.976.976 0 0 0 .975-.975zm0-24.54a.976.976 0 0 0-.975-.975H45V13h-1V9.9H21V13h-1V9.9H4.875a.976.976 0 0 0-.975.975V32.1H18v.8H3.9v19.225a.976.976 0 0 0 .975.975H35.1V35.51l.8-.252v6.96l24.2-7.643z" />`}</svg></div><p class="text-center">${e}</p></div></calcite-panel></calcite-flow-item>`)}_renderAttributeCheckbox(i){return n`<calcite-label class="bold">${this._messages.attributesSubtitle}</calcite-label><calcite-label layout=inline><calcite-checkbox .disabled=${i} .checked=${this.viewModel.pasteWithAttributes} @calciteCheckboxChange=${e=>{this.viewModel.pasteWithAttributes=e.target.checked}}></calcite-checkbox>${this._messages.pasteWithAttributesLabel}</calcite-label>`}_renderFlowPasteAs(i){return i?u("paste-gallery",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${e=>{e.preventDefault(),this.viewModel.hasPasteCommandsPage&&(this.activeFlowPage="commands-page")}}>${this._renderClipboardCommand()}${this._renderCloseCommand()}<calcite-panel><div class="w-full" slot=footer><div class="w-full flex"><calcite-button .disabled=${this.viewModel.updating} width=half .hidden=${this.viewModel.hideFooterCancelButton} kind=brand appearance=outline @click=${()=>{this.viewModel.resetHome(),this.closed=!0,this.arcgisClose.emit()}}>${this._messages.cancel}</calcite-button><calcite-button .disabled=${this.viewModel.updating||!this.viewModel.pasteTemplate} kind=brand appearance=solid width=half @click=${()=>{try{this.viewModel.lastPasteError=void 0,this.viewModel.runPasteCommand({closeAfterApply:()=>{this._handleCloseAfterApply()},onPasteError:e=>{this.arcgisApplyPasteError.emit({command:this.activeCommand??"paste-as",errorMessage:e.errorMessage,errorCode:e.errorCode})},onApply:async e=>{try{await this.beforeApply?.();let a={...e};return this.arcgisApplyPasteCommand.emit(a).defaultPrevented?{success:!1}:(a.completionCallback&&await a.completionCallback,{success:!0})}catch{return{success:!1}}}},this.viewModel.activeCommand??"paste-as")}catch{}}}>${this.viewModel.alwaysShowFeatureForm?this._messages.next:(this.viewModel.clipboardFeatures.length??0)>1&&this.activeCommand!=="paste-merge"?y(this._messages.pasteMany??"",{num:this.viewModel.clipboardFeatures.length}):this._messages.paste}</calcite-button></div></div><div class="pad-start-end gallery-content"><div>${!this.viewModel.clipboardAndTemplateSupportAttributes&&this.viewModel.pasteTemplate?n`<div class="pad-contents"><calcite-notice open icon=exclamation-point kind=info><div slot=message>${this._messages.attributesNotCopied}</div>${this.activeCommand==="paste-merge"&&this.viewModel.hasClipboardItemMatchingTemplate?n`<calcite-link slot=link @click=${()=>{this.activeFlowPage="merge-page"}} title=${this._messages.seeMergeOptions??V}>${this._messages.seeMergeOptions}</calcite-link>`:null}</calcite-notice></div>`:null}${this.viewModel.clipboardAndTemplateSupportAttributes&&this.viewModel.pasteTemplate?this._renderAttributeCheckbox(!this.viewModel.clipboardAndTemplateSupportAttributes):null}${this.viewModel.clipboardAndTemplateSupportAttributes?null:this._renderAttributeCheckbox(!1)}</div><calcite-list .hidden=${this.viewModel.activeCommand!=="paste-merge"} .label=${this._messages.pasteCommandChoices??""} selection-mode=none selection-appearance=border><calcite-list-item .label=${this._messages.mergeOptionsTitle} .description=${this._messages.mergeOptionsDesc} .disabled=${this.viewModel.updating} @click=${()=>{this.activeFlowPage="merge-page"}}><calcite-icon slot=content-start icon=configure></calcite-icon><calcite-icon slot=content-end icon=chevron-right></calcite-icon></calcite-list-item></calcite-list><div><arcgis-feature-templates class="paste-feature-templates" .layers=${this.viewModel.workingLayers} selection-mode=single .disabledItemFunction=${()=>!1} @arcgisSelect=${e=>{this.viewModel.pasteTemplate=e.detail.item}} .referenceElement=${this.referenceElement}></arcgis-feature-templates></div></div></calcite-panel>${this._renderApplying()}</calcite-flow-item>`):u("paste-gallery",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${e=>{e.preventDefault(),this.viewModel.hasPasteCommandsPage&&(this.activeFlowPage="commands-page")}}></calcite-flow-item>`)}_renderFlowPasteMerge(i){if(!i)return u("paste-merge",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${a=>{a.preventDefault(),this.activeFlowPage="gallery-page"}}></calcite-flow-item>`);let e=this.viewModel.selectedClipboardItemIndex===-1?null:this.viewModel.clipboard.items.getItemAt(this.viewModel.selectedClipboardItemIndex);return u("paste-merge",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${a=>{a.preventDefault(),this.activeFlowPage="gallery-page"}}>${this._renderClipboardCommand()}${this._renderCloseCommand()}<calcite-panel><div class="merge-split-view-container"><div class="pad-contents merge-split-view-items"><calcite-label>${this._messages.selectionLabel}<calcite-list .label=${this._messages.features??""} selection-mode=single selection-appearance=border>${this.clipboard.items.toArray().map((a,s)=>({id:s,item:a})).filter(a=>a.item.type==="feature"&&a.item.layer&&a.item.graphic).map(a=>n`<calcite-list-item .disabled=${this.viewModel.updating} .selected=${a.id===this.viewModel.selectedClipboardItemIndex} @calciteListItemSelect=${()=>{this.viewModel.selectedClipboardItemIndex=a.id}} @pointerenter=${s=>{this.viewModel.highlightSelectedGraphicOnMap(a.item),s.target.classList.add("hovering")}} @pointerleave=${s=>{s.target.classList.remove("hovering"),this.viewModel.clearHighlightSelectedGraphic()}} .value=${a.id}><arcgis-feature-title slot=content .graphic=${a.item.graphic} .layer=${a.item.layer}></arcgis-feature-title><arcgis-feature-image width-in-pixels=16 height-in-pixels=16 use-true-shape slot=content-start .graphic=${a.item.graphic} .layer=${a.item.layer}></arcgis-feature-image>${this.viewModel.selectedClipboardItemIndex!==a.id?n`<calcite-chip slot=content-end .label=${this._messages.preservethis??""} class="chip-indent only-on-hover item-candidate" scale=s .value=${a.id}>${this._messages.preservethis??""}</calcite-chip>`:""}${this.viewModel.selectedClipboardItemIndex===a.id?n`<calcite-chip icon=check .label=${this._messages.preserved??""} class="item-preserved chip-indent" scale=s slot=content-end .value=${a.id}>${this._messages.preserved}</calcite-chip>`:""}</calcite-list-item>`)}</calcite-list></calcite-label></div><div class=" merge-split-view-attributes">${this.viewModel.selectedClipboardItemIndex===-1?n`<div></div>`:n`<div><arcgis-feature-form .feature=${e.graphic} .formTemplate=${e.layer.formTemplate?e.layer.formTemplate:null} .layer=${e.layer} ${P(this._featureFormElement)}></arcgis-feature-form></div>`}</div></div></calcite-panel>${this._renderApplying()}</calcite-flow-item>`)}_renderFlowPasteForm(i){if(!i)return u("paste-form",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${p=>{p.preventDefault(),this.activeFlowPage=this.viewModel.beforeForm,this.viewModel.resetFormPage()}}></calcite-flow-item>`);let e=(this.viewModel.bauFeatures?.length??0)>1,a=this.viewModel.updating,s=this.viewModel.bauActiveFeatureIndex>0,r=this.viewModel.bauActiveFeatureIndex!==-1&&this.viewModel.bauActiveFeatureIndex<(this.viewModel.bauFeatures?.length??0)-1,d=this.viewModel.bauActiveFeatureIndex===-1?y(this._messages.multipleFeaturesX??"",{total:this.viewModel.bauFeatures?.length??0}):y(this._messages.range??"",{current:this.viewModel.bauActiveFeatureIndex+1,total:this.viewModel.bauFeatures?.length??0}),h=(this.viewModel.bauInvalidFeatures?.length??0)>0;return u("paste-form",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${p=>{p.preventDefault(),this.activeFlowPage=this.viewModel.beforeForm,this.viewModel.resetFormPage()}}>${this._renderCloseCommand()}<calcite-panel><div class="w-full" slot=footer><div class="w-full flex"><calcite-button .disabled=${this.viewModel.updating} width=half .hidden=${this.viewModel.hideFooterCancelButton} kind=brand appearance=outline @click=${()=>{this.viewModel.resetHome(),this.closed=!0,this.arcgisClose.emit()}}>${this._messages.cancel}</calcite-button><calcite-button .disabled=${this.viewModel.updating||this.viewModel.bauFormUpdating} kind=brand appearance=solid width=half @click=${async()=>{try{if(await Q(()=>!this.viewModel.bauFormUpdating),!this.viewModel.bauFormValid){this._bauForm.value?.goToFirstError();return}this.viewModel.lastPasteError=void 0,this.viewModel.runPasteFormCommand({closeAfterApply:()=>{this._handleCloseAfterApply()},onPasteError:p=>{this.arcgisApplyPasteError.emit({command:this.activeCommand??"paste-as",errorMessage:p.errorMessage,errorCode:p.errorCode})},onApply:async p=>{try{await this.beforeApply?.();let g={...p};return this.arcgisApplyPasteCommand.emit(g).defaultPrevented?{success:!1}:(g.completionCallback&&await g.completionCallback,{success:!0})}catch{return{success:!1}}}})}catch{}}}>${(this.viewModel.bauFeatures?.length??0)>1?y(this._messages.pasteMany??"",{num:this.viewModel.bauFeatures.length}):this._messages.paste}</calcite-button></div></div>${e?n`<calcite-action-bar overflow-actions-disabled slot=action-bar layout=horizontal scale=s expand-disabled class="carousel-bar"><calcite-button .disabled=${this.viewModel.updating} @click=${p=>{this._showFloatingChoice=!this._showFloatingChoice,p.stopPropagation()}} scale=s appearance=transparent icon-start=legend icon-end=chevron-down kind=neutral><span class="bau-pick">${d}${h?n`<calcite-icon scale=s icon=exclamation-mark-triangle class="danger-icon-warning"></calcite-icon>`:""}</span></calcite-button><calcite-action slot=actions-end icon=chevron-left icon-flip-rtl scale=s .text=${this._messages.back??""} .disabled=${!s||a||!e} @click=${()=>{this.viewModel.previousActiveFeature()}}></calcite-action><calcite-action slot=actions-end icon=chevron-right icon-flip-rtl scale=s .text=${this._messages.next??""} .disabled=${!r||a||!e} @click=${()=>{this.viewModel.nextActiveFeature()}}></calcite-action></calcite-action-bar>${this._renderFloatingUIChoice(e)}`:""}<div>${this._renderPasteFormBreadcrumb()}<arcgis-multi-feature-form edit-type=INSERT .disabled=${this.viewModel.updating} .features=${this.viewModel.bauFeatures} .activeFeatureIndex=${this.viewModel.bauActiveFeatureIndex} @arcgisPropertyChange=${p=>{this._updateBauViewModelFields(p.target)}} @arcgisValueChange=${p=>{let g=0;for(let F of this.viewModel.bauFeatures?.toArray()??[]){let b=this.viewModel.bauOriginalGraphics[g];this.viewModel.formFeatureValuesChanged(b,p.target.getValues(F)),g++}}} ${P(this._bauForm)}></arcgis-multi-feature-form></div></calcite-panel>${this.renderPasteErrorFooter()}${this._renderApplying()}</calcite-flow-item>`)}_renderPasteFormBreadcrumb(){return n`<calcite-list .label=${this._messages.breadcrumb??""} selection-appearance=border scale=s selection-mode=none><calcite-list-item>${this.viewModel.bauActiveFeatureIndex===-1?n`<calcite-icon scale=s slot=content-start icon=group-form></calcite-icon>`:C(this.viewModel.bauActiveGraphic)?.isTable?n`<calcite-icon scale=s slot=content-start icon=table></calcite-icon>`:n`<arcgis-feature-image width-in-pixels=16 height-in-pixels=16 use-true-shape slot=content-start .graphic=${this.viewModel.bauActiveGraphic} .layer=${this.viewModel.bauActiveLayer}></arcgis-feature-image>`}${this.viewModel.bauActiveFeatureIndex===-1?n`<span slot=content>${y(this._messages.multipleFeaturesX??"",{total:this.viewModel.bauFeatures?.length??0})}</span>`:n`<arcgis-feature-title is-new-feature slot=content .graphic=${this.viewModel.bauActiveGraphic} .layer=${this.viewModel.bauActiveLayer}></arcgis-feature-title>`}</calcite-list-item></calcite-list>`}_renderFloatingUIChoice(i){if(!this._showFloatingChoice||!i)return n`<div></div>`;let e=!1;this.viewModel.bauInvalidFeatures.length>0&&(e=!0);let a=new Set(this.viewModel.bauInvalidFeatures);return n`<div class="choose-feature"><calcite-list .label=${this._messages.choosefeature??""} selection-mode=single selection-appearance=border><calcite-list-item .disabled=${this.viewModel.updating} @calciteListItemSelect=${s=>{this.viewModel.bauActiveFeatureIndex!==-1&&(this.viewModel.bauActiveFeatureIndex=-1,this.viewModel.updateIndividualMultiFeatureFormHighlight()),this.viewModel.clearMultiFeatureFormHighlights(),this._showFloatingChoice=!1}} .label=${y(this._messages.multipleFeaturesX??"",{total:this.viewModel.bauFeatures.length})} .selected=${this.viewModel.bauActiveFeatureIndex===-1} value=shared><calcite-icon scale=s icon=group-form class="feature-choose-listitem" slot=content-start></calcite-icon></calcite-list-item>${this.viewModel.bauFeatures.map((s,r)=>n`<calcite-list-item .disabled=${this.viewModel.updating} @pointerenter=${d=>{this.viewModel.highlightMultiFeatureFormFeature(s,r)}} @pointerleave=${d=>{this.viewModel.clearMultiFeatureFormHighlights()}} .selected=${this.viewModel.bauActiveFeatureIndex===r} @calciteListItemSelect=${d=>{let h=window.parseInt(d.currentTarget.value);this.viewModel.bauActiveFeatureIndex=h,this.viewModel.updateIndividualMultiFeatureFormHighlight(),this.viewModel.clearMultiFeatureFormHighlights(),this._showFloatingChoice=!1}} .value=${r}><arcgis-feature-title is-new-feature slot=content .graphic=${s} .layer=${s.layer}></arcgis-feature-title>${C(s)?.isTable?n`<calcite-icon scale=s icon=table slot=content-start class="feature-choose-listitem"></calcite-icon>`:n`<arcgis-feature-image slot=content-start class="feature-choose-listitem" .graphic=${s} width-in-pixels=16 height-in-pixels=16 use-true-shape .layer=${s.layer}></arcgis-feature-image>`}${a.has(s)&&e?n`<calcite-icon slot=content-end icon=exclamation-mark-triangle scale=s class="danger-icon-warning"></calcite-icon>`:""}</calcite-list-item>`)}</calcite-list></div>`}_renderClipboard(i){return i?u("paste-form",n`<calcite-flow-item .selected=${i} .heading=${this._messages.clipboardContents} @calciteFlowItemBack=${e=>{e.preventDefault(),this.activeFlowPage=this.viewModel.beforeClipboard}}>${this._renderCloseCommand()}<calcite-panel><arcgis-clipboard .view=${this.view} .referenceElement=${this.referenceElement}></arcgis-clipboard></calcite-panel></calcite-flow-item>`):u("paste-form",n`<calcite-flow-item .selected=${i} .heading=${this._messages.clipboardContents} @calciteFlowItemBack=${e=>{e.preventDefault(),this.activeFlowPage=this.viewModel.beforeClipboard}}></calcite-flow-item>`)}_renderPasteCommands(i){if(!i)return u("paste-commands",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${a=>{a.preventDefault(),this.activeFlowPage="commands-page"}}></calcite-flow-item>`);let e=this.viewModel.clipboard.items.length===0?this._messages.clipboardEmpty??"":this.viewModel.clipboard.items.length>1?y(this._messages.clipboardContentsMany??"",{num:this.viewModel.clipboard.items.length}):this._messages.clipboardContentsSingle??"";return u("paste-commands",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${a=>{a.preventDefault(),this.activeFlowPage="commands-page"}}>${this._renderClipboardCommand()}${this._renderCloseCommand()}<calcite-panel><calcite-list .label=${this._messages.clipboardContents??""} selection-mode=none selection-appearance=border><calcite-list-item .description=${e}></calcite-list-item></calcite-list><div class="pad-contents"><calcite-notice open icon=move><div slot=message>${this._messages.moveClipboardFeatures}</div></calcite-notice></div><div class="pad-contents"><calcite-list .label=${this._messages.pasteCommandChoices??""} selection-mode=none selection-appearance=border>${this.availableCommands.map(a=>n`<calcite-list-item .label=${a.label(this._messages,this._messages._lang)} .description=${a.description(this._messages,this._messages._lang)} .value=${a.id} .disabled=${!a.commandEnabled||this.viewModel.updating} @click=${async()=>{try{this.viewModel.lastPasteError=void 0,await a.initiate({closeAfterApply:()=>{this._handleCloseAfterApply()},onPasteError:s=>{this.arcgisApplyPasteError.emit({command:a.id,errorMessage:s.errorMessage,errorCode:s.errorCode})},onApply:async s=>{try{await this.beforeApply?.();let r={...s};return this.arcgisApplyPasteCommand.emit(r).defaultPrevented?{success:!1}:(r.completionCallback&&await r.completionCallback,{success:!0})}catch{return{success:!1}}}})}catch{}}}><calcite-icon slot=content-start .icon=${a.icon}></calcite-icon>${a.immediate?"":n`<calcite-icon slot=content-end icon=chevron-right flip-rtl></calcite-icon>`}</calcite-list-item>`)}</calcite-list></div></calcite-panel>${this.renderPasteErrorFooter()}${this._renderApplying()}</calcite-flow-item>`)}renderPasteErrorFooter(){return!this.viewModel.lastPasteError||this.viewModel.hideErrorNotice?null:n`<calcite-notice slot=footer open kind=danger icon=exclamation-mark-triangle closable @calciteNoticeClose=${()=>{this.viewModel.lastPasteError=void 0}}><div slot=title>${this._messages.errorNoticeTitle??""}</div><div slot=message>${this.viewModel.lastPasteError.localizedErrorMessage?this._messages[this.viewModel.lastPasteError.localizedErrorMessage]:this._messages.errorNoticeMessage??""}</div></calcite-notice>`}_renderApplying(){return this.viewModel.applying?n`<calcite-scrim><calcite-loader scale=s .label=${this._messages.updating??""}></calcite-loader></calcite-scrim>`:""}render(){return this.activeFlowPage==="nodata-page"?n`<calcite-flow class="arcgis-paste" .hidden=${this.closed}>${this._renderNoClipboardData(this.activeFlowPage==="nodata-page")}</calcite-flow>`:this.activeFlowPage==="no-command-page"?n`<calcite-flow class="arcgis-paste" .hidden=${this.closed}>${this._renderNoCommandPage(this.activeFlowPage==="no-command-page")}</calcite-flow>`:n`<calcite-flow class="arcgis-paste" .hidden=${this.closed}>${this.hasPasteCommandsPage&&this._renderPasteCommands(this.activeFlowPage==="commands-page")||""}${this._renderFlowPasteAs(this.activeFlowPage==="gallery-page")}${this._renderFlowPasteMerge(this.activeFlowPage==="merge-page")}${this._renderFlowPasteForm(this.activeFlowPage==="paste-form")}${this._renderClipboard(this.activeFlowPage==="clipboard")}</calcite-flow>`}};B("arcgis-paste",T);return T},"core/accessorSupport/decorators","core/Accessor","Graphic","applications/Components/clipboard","layers/GraphicsLayer","core/Collection","applications/Components/templateUtils","applications/Components/applySetUtils","core/reactiveUtils","widgets/FeatureForm/FeatureFormViewModel","intl","applications/Components/editUtils",a,b,c,d,e,f)
|
|
3
|
+
v5.0.0-next.142 */
|
|
4
|
+
import f from"./7GU747FF.js";import e from"./WFWO7PI7.js";import"./QQFWYRXA.js";import{b as E}from"./2EBLGAWT.js";import{a as u}from"./C33NXUNI.js";import d from"./XPDF63LL.js";import c from"./7MD3L7YJ.js";import{a as D}from"./HVKTXMYZ.js";import b from"./JDH34JTX.js";import a from"./FWPMWGTC.js";import"./6B3J6F6V.js";import"./6IYKLL4K.js";import"./D4XKEUDI.js";import"./Q335463L.js";import{L as A,M as P,N as O,P as I,Q as V,T as B,a as z,b as n,c as $,x as w}from"./CMZQVTZU.js";import"./ADV42HI2.js";export default $arcgis.t(([{property:o,subclass:J},K,_,{getApplicationClipboard:ie},ae,k,{getFullTemplate:R,isSharedTemplate:U,getCreationAttributes:X,isSharedTemplateOrMetadata:se},{createApplySetModifyItem:x,createApplySet:S,createFeatureStateProvider:G,createApplySetAddItem:H,writeApplySetToService:re},{whenOnce:Q,watch:L},oe,{substitute:y},{createGraphicsMover:le},,,W,,{a:j,b:N}])=>{var ce=z`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{max-width:fit-content;display:flex}.arcgis-paste{height:var(--arcgis-paste-height, 300px);width:var(--arcgis-paste-width, 300px);flex:1}.hidden{display:none}.flex-row{flex-direction:row}.justify-center{justify-content:center}.h-full{height:100%}.w-full{width:100%}.flex{display:flex}.text-center{text-align:center}.pad-contents{padding:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md))}.pad-start-end{padding-left:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));padding-right:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md))}.gallery-content{padding-top:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));padding-bottom:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));display:flex;row-gap:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));flex-direction:column}.chip-indent{margin-left:5px;margin-right:5px}.merge-split-view-container{display:flex;flex-direction:column;height:100%}.merge-split-view-items{flex:0 1 auto;max-height:50%;overflow-y:scroll}.merge-split-view-attributes{flex:1;overflow-y:scroll}.choose-feature{position:absolute;width:100%;max-height:100%;z-index:2;overflow-y:auto}.bau-pick{display:flex;flex-direction:row;align-items:center;gap:4px}.danger-icon-warning{--calcite-icon-color: var(--calcite-color-status-danger)}.paste-feature-templates{--arcgis-feature-templates-max-list-height: 100%}`;async function ne(t,i,e,a=new Map){let s=!0;for(let r of t.items){if(r.type!=="add")continue;let d=r.graphic.clone(),h=de(r.graphic,r.layer);if(!h){s=!1;continue}let p=!await pe(e,r.graphic,h,a,i),g=x({graphic:r.graphic,layer:r.layer,originalGraphic:d});t.push(g),p||(s=!1)}return s}function de(t,i){return i.type==="feature"||i.type==="subtype-sublayer"?i:i.findSublayerForFeature(t)||null}async function pe(t,i,e,a,s){let r=e.formTemplate,d=e.fields.filter(m=>{let M=i.attributes[m.name],te=M===null||M===""||M===void 0;return m.editable&&!m.nullable&&te});if(!r)return d.length!==0;let h=new Set;if(ee(r.elements??[],h),d.length===0&&h.size===0&&!s)return!1;let p=new Set;if(Y(r.elements??[],p),[...h].filter(m=>p.has(m)).length===0&&!s)return!1;let g=i.clone();delete g.attributes[e.objectIdField],a.set(e,new oe({layer:e,map:t.map,formTemplate:r,editType:"INSERT",feature:g}));let F=a.get(e);await new Promise(m=>{setTimeout(m,5)}),await Q(()=>F.state==="ready"&&!F.updating);let b=F.getValues()??{};if(e.objectIdField&&b[e.objectIdField]!==void 0){let{[e.objectIdField]:m,...M}=b;b=M}return Object.keys(b).forEach(m=>{e.fieldsIndex.has(m)&&(i.attributes[m]=ue(b[m],m,e.fieldsIndex))}),!F.valid}function Y(t,i){for(let e of t)e.type==="group"?Y(e.elements,i):e.type==="field"&&e.valueExpression&&i.add(e.fieldName)}function ee(t,i){for(let e of t)e.type==="group"?ee(e.elements,i):e.type==="field"&&e.requiredExpression&&i.add(e.fieldName)}function he(t){return typeof t=="number"}function me(t){return typeof t=="number"&&window.isFinite(t)&&Math.floor(t)===t}function ue(t,i,e){if(t==null)return null;switch(e.get(i).type){case"big-integer":case"long":case"oid":case"integer":case"small-integer":return me(t)?t:window.parseInt(t);case"single":case"double":return he(t)?t:window.parseFloat(t);case"global-id":case"guid":return t===""?null:t;case"date":break;case"date-only":case"time-only":case"timestamp-offset":return t===""?null:t;case"string":return t===""?null:t}return t}function ge(t){return t&&"layer"in t?t.layer:void 0}function C(t){if(!t)return null;let i=ge(t.origin)??t.layer??t?.sourceLayer??null;if(i&&i.type==="subtype-sublayer")return i.parent;switch(i?.type){case"csv":case"feature":case"geojson":case"ogc-feature":case"subtype-group":case"wfs":return i;default:return null}}var ve=Object.defineProperty,be=Object.getOwnPropertyDescriptor,c=(t,i,e,a)=>{for(var s=a>1?void 0:a?be(i,e):i,r=t.length-1,d;r>=0;r--)(d=t[r])&&(s=(a?d(i,e,s):d(s))||s);return a&&s&&ve(i,e,s),s},q={noChangeError:"Operation has not made any changes",noSelectedError:"Operation requires a selected feature",deletesGeometryError:"Operation would result in a null geometry",noGeometryError:"The selected feature has not geometry"};function Z(t){return!se(t)||t.type!=="feature"}var l=class extends K{constructor(t){super(t),this.customPasteCommands=new k,this.bauInvalidFeatures=[],this.bauFormValid=!0,this.bauFormUpdating=!1,this.bauActiveFeatureIndex=-1,this.bauSubmitHasBeenAttempted=!1,this.bauOriginalGraphics=[],this.formViewModelMap=new Map,this.supportedCommands=["paste-append","paste-as","paste-subtract","paste","paste-merge"],this.pasteWithMultipleLayersEnabled=!1,this.pasteWithMultipleFeaturesEnabled=!1,this.alwaysShowFeatureForm=!1,this.selectedClipboardItemIndex=-1,this.pasteWithAttributes=!0,this.closeOnApply=!1,this.currentPasteOperation="",this._activeFlowPage="commands-page",this.showClipboardItems=!1,this.hideFooterCancelButton=!1,this.hideViewClipboard=!1,this.hideErrorNotice=!1,this.highlightGroup="temporary",this._hoverHighlightHandle=null,this.layerPermissionsCheck={canCreate:i=>i?!!i.effectiveCapabilities?.operations.supportsAdd:!1,canUpdate:i=>{if(!i)return!1;let e=i.effectiveCapabilities,a=!!e?.operations.supportsUpdate,s=!!e?.editing.supportsGeometryUpdate&&a;return!i.isTable&&!s?!1:a}},this.applying=!1}get bauActiveGraphic(){return this.bauActiveFeatureIndex===-1?void 0:this.bauFeatures?.getItemAt(this.bauActiveFeatureIndex)}get bauActiveLayer(){if(this.bauActiveFeatureIndex!==-1&&this.bauFeatures)return C(this.bauFeatures.getItemAt(this.bauActiveFeatureIndex))??void 0}get clipboardAndTemplateSupportAttributes(){if(this.clipboard.items.length===0||!this.pasteTemplate?.layer)return!1;let t=this.pasteTemplate.template;if(!Z(t))return!1;for(let i of this.clipboard.items){let e=i.layer;if(!e)return!1;let a=e.type==="subtype-sublayer"?e.parent:e;if(a.type==="subtype-group"){let s=a.fieldsIndex.get(a.subtypeField).name,r=t.prototype?.[s];if(r==null||r!==i.graphic.attributes[s])return!1}}return!0}get hasClipboardItemMatchingTemplate(){let t=this.pasteTemplate?.layer;if(!t||this.clipboard.items.length===0)return!1;let i=this.pasteTemplate.template;if(!Z(i))return!1;for(let e of this.clipboard.items){let a=e.layer;if(!a)return!1;let s=a.type==="subtype-sublayer"?a.parent:a;if(t===a){if(s.type==="subtype-group"){let r=s.fieldsIndex.get(s.subtypeField).name,d=i.prototype?.[r];if(d==null||d!==e.graphic.attributes[r])continue}return!0}}return!1}get activeFlowPage(){return this._activeFlowPage}set activeFlowPage(t){t==="clipboard"&&this.beforeClipboard===void 0?this.beforeClipboard=this.activeFlowPage:t!=="clipboard"&&(this.beforeClipboard=void 0),t==="paste-form"&&this.beforeForm===void 0?this.beforeForm=this.activeFlowPage:t!=="paste-form"&&(this.beforeForm=void 0),this._activeFlowPage=t,this.checkAndSuspendMove()}get updating(){return this.applying}formFeatureValuesChanged(t,i){if(!i)return;let e=t.graphic.clone();for(let s of Object.keys(i))e.attributes[s]=i[s];let a=x({graphic:e,originalGraphic:t.graphic.clone(),layer:t.layer});this.bauApplySet?.push(a)}highlightSelectedGraphicOnMap(t){if(this.clearHighlightSelectedGraphic(),!t.graphic?.geometry||!this.view)return;let i=new _({geometry:t.graphic.geometry,symbol:N(t.graphic.geometry.type)});this.view.graphics.add(i),this._hoverHighlightHandle={remove:()=>{this.view.graphics.remove(i)}}}clearHighlightSelectedGraphic(){this._hoverHighlightHandle?.remove(),this._hoverHighlightHandle=null}updateIndividualMultiFeatureFormHighlight(){if(this.activeFlowPage!=="paste-form"){this.clearIndividualFeatureFormHighlight();return}if(this.view)if(this.bauActiveGraphic&&this.bauActiveLayer){if(this.bauIndividualHighlight?.graphic!==this.bauActiveGraphic&&this.clearIndividualFeatureFormHighlight(),!this.bauIndividualHighlight){let t=E(this.view,this.bauActiveLayer);if(!t)return;this.bauIndividualHighlight={graphic:this.bauActiveGraphic,handle:t.highlight(this.bauActiveGraphic,{name:this.highlightGroup})}}}else this.clearIndividualFeatureFormHighlight()}clearIndividualFeatureFormHighlight(){this.bauIndividualHighlight?.handle?.remove(),this.bauIndividualHighlight=void 0}highlightMultiFeatureFormFeature(t,i){this.bauHighlight&&this.clearMultiFeatureFormHighlights();let e=this.view?E(this.view,t.layer):void 0;e&&(this.bauHighlight=e.highlight(t,{name:this.highlightGroup}))}clearMultiFeatureFormHighlights(){this.bauHighlight?.remove(),this.bauHighlight=void 0}updateClipboardGraphicsLayer(){if(!this.showClipboardItems){if(this.clipboardMover?.cancel(),this.clipboardMover=void 0,this.clipboardGraphicsLayer&&this.view)try{this.view.map?.remove(this.clipboardGraphicsLayer),this.clipboardGraphicsLayer=void 0}catch{}return}if(this.showClipboardItems&&this.view){this.clipboardGraphicsLayer||(this.clipboardGraphicsLayer=new ae,this.view.map?.layers.add(this.clipboardGraphicsLayer));let t=this.clipboard.items;this.clipboardGraphicsLayer.removeAll();let i=-1;for(let e of t){if(i++,!e.graphic.geometry)continue;let a=new _({geometry:e.graphic.geometry.clone(),attributes:{clipboardIdx:i},symbol:j(e.graphic.geometry.type)});this.clipboardGraphicsLayer.add(a)}}else if(!this.showClipboardItems&&this.view&&this.clipboardGraphicsLayer)try{this.view.map?.remove(this.clipboardGraphicsLayer),this.clipboardGraphicsLayer=void 0}catch{}this.checkAndSuspendMove()}checkAndSuspendMove(){let t=this.activeFlowPage==="paste-form";this.clipboardGraphicsLayer&&(this.clipboardGraphicsLayer.visible=!t),this.clipboardMover&&(this.clipboardMover.suspended=t)}get clipboard(){return ie()}get clipboardFeatures(){return this.clipboard.items.filter(t=>t.type==="feature")}get hasPasteCommandsPage(){return this.availableCommands.length>1||!!this.availableCommands.at(0)?.mustShowOnCommandPage}_clearActiveCommand(){this.activeCommand=void 0,this.pasteTemplate=void 0,this.lastPasteError=void 0}resetHome(){let t=this.activeFlowPage;this.hasPasteCommandsPage?(t="commands-page",this._clearActiveCommand(),this.selectedClipboardItemIndex=-1):this.clipboard.items.length===0?(t="nodata-page",this._clearActiveCommand(),this.selectedClipboardItemIndex=-1):this.availableCommands.length===0?(t="no-command-page",this._clearActiveCommand()):this.availableCommands[0].commandEnabled?(this.pasteTemplate=void 0,t="gallery-page",this.activeCommand=this.availableCommands[0].id,this.lastPasteError=void 0):(t="no-command-page",this._clearActiveCommand(),this.selectedClipboardItemIndex=-1),this.activeFlowPage==="clipboard"&&this.hideViewClipboard?(this.activeFlowPage=t,this.beforeClipboard=void 0):this.activeFlowPage==="clipboard"&&!this.hideViewClipboard?this.beforeClipboard=t:(this.activeFlowPage=t,this.beforeClipboard=void 0),this.resetFormPage()}get workingLayers(){return(this.view?.map?.allLayers?.toArray()??[]).filter(t=>t.type==="feature").filter(t=>{let i=this.clipboard.singleGeometryType;return this.activeCommand==="paste-merge"&&this.clipboard.singleGeometryType==="point"&&(i="multipoint"),!(t.geometryType!==i||!this.layerPermissionsCheck.canCreate(t))})}get clipboardItemLayers(){let t=new Set;for(let i of this.clipboard.items)i.layer&&t.add(i.layer.type==="subtype-sublayer"?i.layer.parent:i.layer);return[...t]}get canCreateOnAllLayers(){if(this.clipboardItemLayers.length===0)return!1;for(let t of this.clipboardItemLayers)if(!t||!this.layerPermissionsCheck.canCreate(t))return!1;return!0}get availableCommands(){let t=[],i=new Set(this.supportedCommands);if(i.has("paste")){let e=this.clipboard.items.length===1,a=this.clipboard.items.length>0&&this.clipboardItemLayers.length===1&&this.pasteWithMultipleFeaturesEnabled,s=this.clipboard.items.length>0&&this.pasteWithMultipleFeaturesEnabled&&this.pasteWithMultipleLayersEnabled;t.push({id:"paste",icon:"duplicate",immediate:!0,initiate:async r=>{await this.runPasteCommand(r,"paste")},mustShowOnCommandPage:!0,commandEnabled:this.clipboard.items.length>0&&this.canCreateOnAllLayers&&(e||a||s),description:(r,d)=>r.pasteDesc,label:(r,d)=>r.pasteTitle})}i.has("paste-as")&&t.push({id:"paste-as",icon:"templates",initiate:async e=>{this.activeFlowPage="gallery-page",this.activeCommand="paste-as"},commandDisabledReason:(e,a)=>{if(this.clipboard.items.length===0)return e.noClipboardData;if(this.clipboard.items.length>1){if(!this.pasteWithMultipleFeaturesEnabled)return e.pasteMultipleNotSupported;if(this.clipboard.geometryTypes.size>1)return e.mixedGeometriesNotSupported}return this.clipboard.singleGeometryType?"":e.pasteAsMustHaveGeometry},immediate:!1,mustShowOnCommandPage:!1,commandEnabled:(this.clipboard.items.length===1||this.clipboard.items.length>0&&this.pasteWithMultipleFeaturesEnabled)&&this.clipboard.singleGeometryType!==void 0,description:(e,a)=>e.pasteAsDesc,label:(e,a)=>e.pasteAsTitle}),i.has("paste-merge")&&t.push({id:"paste-merge",icon:"merge",immediate:!1,initiate:async e=>{this.activeFlowPage="gallery-page",this.activeCommand="paste-merge";for(let a=0;a<this.clipboard.items.length;a++)if(this.clipboard.items.getItemAt(a).type==="feature"){this.selectedClipboardItemIndex=a;break}},mustShowOnCommandPage:!0,commandEnabled:this.clipboard.items.length>1&&this.clipboard.singleGeometryType!==void 0,description:(e,a)=>e.pasteMergeDesc,label:(e,a)=>e.pasteMergeTitle}),i.has("paste-append")&&t.push({id:"paste-append",icon:"reshape-add-geometry",immediate:!0,initiate:async e=>{await this.runPasteAppendCommand(e)},mustShowOnCommandPage:!0,commandEnabled:this.clipboard.items.length>0&&this.selectedFeature!==void 0&&this.layerPermissionsCheck.canUpdate(C(this.selectedFeature))&&this.selectedFeature?.geometry!==null&&(this.selectedFeature?.geometry?.type==="multipoint"||this.selectedFeature?.geometry?.type==="polyline"||this.selectedFeature?.geometry?.type==="polygon")&&this.clipboard.singleGeometryType===this.selectedFeature?.geometry?.type,description:(e,a)=>e.pasteAppendDesc,label:(e,a)=>e.pasteAppendTitle}),i.has("paste-subtract")&&t.push({id:"paste-subtract",icon:"reshape-subtract-geometry",immediate:!0,initiate:async e=>{await this.runPasteSubtractCommand(e)},mustShowOnCommandPage:!0,commandEnabled:this.clipboard.items.length>0&&this.selectedFeature!==void 0&&this.layerPermissionsCheck.canUpdate(C(this.selectedFeature))&&this.selectedFeature?.geometry!==null&&(this.selectedFeature?.geometry?.type==="multipoint"||this.selectedFeature?.geometry?.type==="polyline"||this.selectedFeature?.geometry?.type==="polygon")&&(this.clipboard.singleGeometryType===this.selectedFeature?.geometry?.type||this.clipboard.singleGeometryType==="polygon"),description:(e,a)=>e.pasteSubtractDesc,label:(e,a)=>e.pasteSubtractTitle});for(let e of this.customPasteCommands)i.has(e.id)&&t.push({id:e.id,icon:e.icon,immediate:!0,initiate:async a=>{try{this.applying=!0,(await a.onApply({command:e.id})).success&&(this.resetHome(),this.closeOnApply&&a.closeAfterApply())}finally{this.applying=!1}},mustShowOnCommandPage:!0,commandEnabled:e.commandEnabled(this.clipboard,this.selectedFeature),description:(a,s)=>e.description(a,s),label:(a,s)=>e.label(a,s)});return t}async createMergedClipboardGeom(){let t=this.clipboard.items.map(i=>i.graphic?.geometry).filter(i=>i!=null).toArray();return t.length===0?null:t.length===1?t[0].clone():(await $arcgis.t(m=>m[0],"geometry/operators/unionOperator")).executeMany(t)??null}removeGraphicIdentifierFields(t,i){i.objectIdField&&delete t.attributes[i.objectIdField],i.globalIdField&&delete t.attributes[i.globalIdField]}nextActiveFeature(){this.bauActiveFeatureIndex++,this.updateIndividualMultiFeatureFormHighlight()}previousActiveFeature(){this.bauActiveFeatureIndex--,this.updateIndividualMultiFeatureFormHighlight()}async runPasteAppendCommand(t){let i=null;try{this.applying=!0;let e=await this.prepareAppend();if(e.applySet&&(i=e.applySet),!e.success){this.lastPasteError={errorCode:e.failReason,errorMessage:q[e.failReason],localizedErrorMessage:e.failReason},t.onPasteError(this.lastPasteError);return}(await t.onApply({command:"paste-append",applySet:e.applySet})).success&&(this.resetHome(),this.closeOnApply&&t.closeAfterApply())}catch(e){this.lastPasteError={errorCode:"unexpectedError",errorMessage:e.message,localizedErrorMessage:"unexpectedError"},t.onPasteError(this.lastPasteError);return}finally{this.applying=!1,i&&(i.featureState?.clearAll(),i.featureState=null)}}async prepareAppend(){let t=S();if(t.featureState=G(this.view),!this.selectedFeature)return{success:!1,failReason:"noSelectedError"};let[i,e]=await Promise.all([$arcgis.t(m=>m[0],"geometry/operators/unionOperator"),$arcgis.t(m=>m[0],"geometry/operators/equalsOperator")]),a=this.selectedFeature.geometry,s=!1;for(let d of this.clipboard.items){let h=d?.graphic?.geometry??null;if(!h)continue;if(a===null){a=d?.graphic?.geometry??null,a&&(a=a.clone(),s=!0);continue}let p=i.execute(a,h);e.execute(a,p)||(a=p,s=!0)}if(!s)return{success:!1,failReason:"noChangeError"};let r=this.selectedFeature.clone();return r.geometry=a,t.push(x({graphic:r,layer:this.selectedFeature.origin,originalGraphic:this.selectedFeature})),{success:!0,applySet:t}}resetFormPage(){this.bauApplySet?.featureState?.clearAll(),this.bauApplySet=void 0,this.clearIndividualFeatureFormHighlight(),this.clearMultiFeatureFormHighlights(),this.bauFeatures=void 0,this.bauOriginalGraphics=[],this.bauSubmitHasBeenAttempted=!1}async runPasteSubtractCommand(t){let i=null;try{this.applying=!0;let e=await this.prepareSubtract();if(e.applySet&&(i=e.applySet),!e.success){this.lastPasteError={errorCode:e.failReason,errorMessage:q[e.failReason],localizedErrorMessage:e.failReason},t.onPasteError(this.lastPasteError);return}(await t.onApply({command:"paste-subtract",applySet:e.applySet})).success&&(this.resetHome(),this.closeOnApply&&t.closeAfterApply())}catch(e){this.lastPasteError={errorCode:"unexpectedError",errorMessage:e.message,localizedErrorMessage:"unexpectedError"},t.onPasteError(this.lastPasteError);return}finally{this.applying=!1,i&&(i.featureState?.clearAll(),i.featureState=null)}}async prepareSubtract(){let t=S();if(t.featureState=G(this.view),!this.selectedFeature)return{success:!1,failReason:"noSelectedError",applySet:t};let[i,e]=await Promise.all([$arcgis.t(m=>m[0],"geometry/operators/differenceOperator"),$arcgis.t(m=>m[0],"geometry/operators/equalsOperator")]),a=this.selectedFeature.geometry;if(!a)return{success:!1,failReason:"noGeometryError",applySet:t};let s=!1;for(let d of this.clipboard.items){let h=d?.graphic?.geometry;if(!h)continue;let p=i.execute(a,h);if(!p)return{success:!1,failReason:"deletesGeometryError",applySet:t};e.execute(a,p)||(a=p,s=!0)}if(!s)return{success:!1,failReason:"noChangeError",applySet:t};let r=this.selectedFeature.clone();return r.geometry=a,t.push(x({graphic:r,layer:this.selectedFeature.origin,originalGraphic:this.selectedFeature})),{success:!0,applySet:t}}async runPasteFormCommand(t){try{this.applying=!0;let i=this.bauApplySet;(await t.onApply({command:this.activeCommand,applySet:i})).success&&(this.resetHome(),this.closeOnApply&&t.closeAfterApply())}catch(i){this.lastPasteError={errorCode:"unexpectedError",errorMessage:i.message,localizedErrorMessage:"unexpectedError"},t.onPasteError(this.lastPasteError);return}finally{this.applying=!1}}async runPasteCommand(t,i){try{this.applying=!0;let e=await this.prepareCopy(i);if(!e||e.items.length===0){this.lastPasteError={errorCode:"noPasteItems",errorMessage:"No items to paste",localizedErrorMessage:"noPasteItemsError"},t.onPasteError(this.lastPasteError);return}let a=!await ne(e,this.alwaysShowFeatureForm,this.view,this.formViewModelMap);if(this.alwaysShowFeatureForm||a)this.bauActiveFeatureIndex=0,this.bauApplySet=e,this.activeCommand=i,this.bauOriginalGraphics=e.items.map(s=>s.type==="add"?{layer:s.layer,graphic:s.graphic}:null).filter(s=>s!==null),this.bauFeatures=new k,this.activeFlowPage="paste-form",await new Promise(s=>{setTimeout(s,100)}),this.bauFeatures=new k(this.bauOriginalGraphics.map(s=>(s.graphic.origin=s.layer,s.graphic.layer=s.layer,s.graphic))),this.updateIndividualMultiFeatureFormHighlight();else try{(await t.onApply({command:"paste",applySet:e})).success&&(this.resetHome(),this.closeOnApply&&t.closeAfterApply())}finally{e?.featureState?.clearAll()}}finally{this.applying=!1}}async prepareCopy(t){let i=t==="paste"||t==="paste-as"&&this.pasteWithAttributes||t==="paste-merge"&&this.pasteWithAttributes,e=i&&t==="paste-merge"?this.clipboard.items.getItemAt(this.selectedClipboardItemIndex):null,a=S();if(a.featureState=G(this.view),t==="paste-merge"){let s=this.pasteTemplate?.template?await R(this.view,this.pasteTemplate.template):null;if(!s)return null;let r=U(this.pasteTemplate.template)?s.layer:this.pasteTemplate.layer,d=await this.createMergedClipboardGeom(),h=X(s,e?{...e.graphic.attributes}:{}),p=new _({geometry:d,attributes:h});this.removeGraphicIdentifierFields(p,r),a.push(H({graphic:p,layer:r}))}else if(t==="paste"){for(let s of this.clipboard.items)if(s.type==="feature"){let r=s.graphic.clone();this.removeGraphicIdentifierFields(r,s.layer),a.push(H({graphic:r,layer:s.layer}))}}else if(t==="paste-as"){let s=this.pasteTemplate?.template?await R(this.view,this.pasteTemplate.template):null,r=U(s)?s.layer:this.pasteTemplate.layer;for(let d of this.clipboard.items){let h=X(s,i?{...d.graphic.attributes??{}}:{}),p=new _({geometry:d.graphic?.geometry?.clone()??null,attributes:h});this.removeGraphicIdentifierFields(p,r),a.push(H({graphic:p,layer:r}))}}return a}async writeChanges(t){return await re(t,this.view)}};c([o()],l.prototype,"customPasteCommands",2);c([o()],l.prototype,"bauInvalidFeatures",2);c([o()],l.prototype,"bauFormValid",2);c([o()],l.prototype,"bauFormUpdating",2);c([o()],l.prototype,"bauActiveFeatureIndex",2);c([o()],l.prototype,"bauSubmitHasBeenAttempted",2);c([o()],l.prototype,"bauActiveGraphic",1);c([o()],l.prototype,"bauActiveLayer",1);c([o()],l.prototype,"bauFeatures",2);c([o()],l.prototype,"bauApplySet",2);c([o()],l.prototype,"bauOriginalGraphics",2);c([o()],l.prototype,"formViewModelMap",2);c([o()],l.prototype,"bauHighlight",2);c([o()],l.prototype,"bauIndividualHighlight",2);c([o()],l.prototype,"view",2);c([o()],l.prototype,"supportedCommands",2);c([o()],l.prototype,"selectedFeature",2);c([o()],l.prototype,"pasteWithMultipleLayersEnabled",2);c([o()],l.prototype,"pasteWithMultipleFeaturesEnabled",2);c([o()],l.prototype,"alwaysShowFeatureForm",2);c([o()],l.prototype,"pasteTemplate",2);c([o()],l.prototype,"selectedClipboardItemIndex",2);c([o()],l.prototype,"clipboardAndTemplateSupportAttributes",1);c([o()],l.prototype,"hasClipboardItemMatchingTemplate",1);c([o()],l.prototype,"pasteWithAttributes",2);c([o()],l.prototype,"closeOnApply",2);c([o()],l.prototype,"currentPasteOperation",2);c([o()],l.prototype,"activeFlowPage",1);c([o()],l.prototype,"_activeFlowPage",2);c([o()],l.prototype,"beforeClipboard",2);c([o()],l.prototype,"beforeForm",2);c([o()],l.prototype,"showClipboardItems",2);c([o()],l.prototype,"updating",1);c([o()],l.prototype,"hideFooterCancelButton",2);c([o()],l.prototype,"hideViewClipboard",2);c([o()],l.prototype,"hideErrorNotice",2);c([o()],l.prototype,"clipboardGraphicsLayer",2);c([o()],l.prototype,"clipboardMover",2);c([o()],l.prototype,"highlightGroup",2);c([o()],l.prototype,"clipboard",1);c([o()],l.prototype,"clipboardFeatures",1);c([o()],l.prototype,"hasPasteCommandsPage",1);c([o()],l.prototype,"activeCommand",2);c([o()],l.prototype,"workingLayers",1);c([o()],l.prototype,"layerPermissionsCheck",2);c([o()],l.prototype,"clipboardItemLayers",1);c([o()],l.prototype,"canCreateOnAllLayers",1);c([o()],l.prototype,"applying",2);c([o()],l.prototype,"lastPasteError",2);c([o()],l.prototype,"availableCommands",1);l=c([J("components.paste.PasteViewModel")],l);var we=Object.defineProperty,ye=Object.getOwnPropertyDescriptor,f=(t,i,e,a)=>{for(var s=a>1?void 0:a?ye(i,e):i,r=t.length-1,d;r>=0;r--)(d=t[r])&&(s=(a?d(i,e,s):d(s))||s);return a&&s&&we(i,e,s),s},v=class extends K{constructor(){super(...arguments),this.continuous=!1,this._mover=null,this.stateChanged=null,this._suspended=!1}clipboardContentsChanged(){this._destroyMover(),this.stateChanged?.("clipboard-contents-changed"),this.continuous&&this.start()}start(){this._destroyMover(),this._mover=le({view:this.view,graphics:this.graphicsLayer.graphics.toArray(),indicatorsEnabled:!0,highlightsEnabled:!0,enableMoveAllGraphics:!0,callbacks:{onGraphicPointerOver:()=>{"cursor"in this.view&&(this.view.cursor="move")},onGraphicPointerOut:()=>{"cursor"in this.view&&(this.view.cursor="default")},onGraphicMoveStop:async()=>{"cursor"in this.view&&(this.view.cursor="default");for(let t of this.graphicsLayer.graphics)this.clipboard.items.getItemAt(t.attributes.clipboardIdx).graphic.geometry=t.geometry;this._destroyMover(),this.stateChanged?.("contents-moved"),this.continuous&&setTimeout(()=>{this.start()},100)}}})}cancel(){this.continuous=!1,this._destroyMover(),this.stateChanged?.("completed")}get suspended(){return this._suspended}set suspended(t){t!==this._suspended&&(t?(this._destroyMover(),this.stateChanged?.("suspended")):(this.start(),this.stateChanged?.("suspended")),this._suspended=t)}_destroyMover(){this._mover?.destroy(),this._mover=null}};f([o()],v.prototype,"view",2);f([o()],v.prototype,"continuous",2);f([o()],v.prototype,"clipboard",2);f([o()],v.prototype,"graphicsLayer",2);f([o()],v.prototype,"suspended",1);f([o()],v.prototype,"_suspended",2);v=f([J("components.paste.ClipboardMove")],v);var fe=W(l),T=class extends O{constructor(){super(...arguments),this._featureFormElement=A(),this._bauForm=A(),this._messages=D(),this.viewModel=fe(this),this.activeFlowPage=this.viewModel.activeFlowPage,this.hasPasteCommandsPage=this.viewModel.hasPasteCommandsPage,this.activeCommand=this.viewModel.activeCommand,this.availableCommands=this.viewModel.availableCommands,this._showFloatingChoice=!1,this.autoDestroyDisabled=!1,this.view=this.viewModel.view,this.selectedFeature=this.viewModel.selectedFeature,this.closed=!1,this.highlightGroup=this.viewModel.highlightGroup,this.pasteWithMultipleLayersEnabled=this.viewModel.pasteWithMultipleLayersEnabled,this.pasteWithMultipleFeaturesEnabled=this.viewModel.pasteWithMultipleFeaturesEnabled,this.alwaysShowFeatureForm=this.viewModel.alwaysShowFeatureForm,this.closeOnApply=this.viewModel.closeOnApply,this.hideErrorNotice=this.viewModel.hideErrorNotice,this.hideFooterCancelButton=this.viewModel.hideFooterCancelButton,this.hideViewClipboard=this.viewModel.hideViewClipboard,this.layerPermissionsCheck=this.viewModel.layerPermissionsCheck,this.arcgisApplyPasteCommand=w(),this.arcgisApplyPasteError=w(),this.arcgisBeforeClipboardMove=w(),this.arcgisClipboardMoveStateChanged=w(),this.arcgisClose=w(),this.arcgisReady=w()}static{this.properties={activeFlowPage:16,hasPasteCommandsPage:16,activeCommand:16,availableCommands:16,_showFloatingChoice:16,autoDestroyDisabled:5,referenceElement:1,view:0,selectedFeature:0,closed:7,highlightGroup:1,supportedCommands:1,pasteWithMultipleLayersEnabled:5,pasteWithMultipleFeaturesEnabled:5,alwaysShowFeatureForm:5,beforeApply:0,clipboard:32,closeOnApply:5,hideErrorNotice:5,hideFooterCancelButton:5,hideViewClipboard:5,layerPermissionsCheck:0}}static{this.styles=ce}get supportedCommands(){return this.viewModel.supportedCommands}set supportedCommands(i){if(!Array.isArray(i)){this.viewModel.supportedCommands=i.split(",");return}this.viewModel.supportedCommands=i.slice(0)}get clipboard(){return this.viewModel.clipboard}async cancelMoveClipboard(){this.viewModel.clipboardMover?.cancel(),this.viewModel.clipboardMover=void 0}async destroy(){await this.manager.destroy()}async registerPasteCommand(i){this.viewModel.customPasteCommands.add(i)}async showClipboardItems(i){this.viewModel.showClipboardItems=i,this.viewModel.updateClipboardGraphicsLayer()}async startMoveClipboard(i){if(!this.viewModel.showClipboardItems)throw new Error("Cannot move clipboard. Clipboard items must be visible first.");this.arcgisBeforeClipboardMove.emit().defaultPrevented||(this.viewModel.clipboardMover&&(this.viewModel.clipboardMover.stateChanged=null,this.viewModel.clipboardMover.cancel(),this.viewModel.clipboardMover=void 0),this.viewModel.clipboardMover=new v({view:this.view,continuous:i,clipboard:this.clipboard,graphicsLayer:this.viewModel.clipboardGraphicsLayer,stateChanged:e=>{e==="contents-moved"&&this.viewModel.updateClipboardGraphicsLayer(),this.arcgisClipboardMoveStateChanged.emit({change:e})}}),this.viewModel.clipboardMover.start())}async writeChanges(i){return await this.viewModel.writeChanges(i)}updated(){this._featureFormElement.value&&(this._featureFormElement.value.hideReadOnlyNotice=!0,this._featureFormElement.value.disabled=!0)}loaded(){this.manager.onLifecycle(()=>[this.viewModel.clipboard.items.on("change",()=>{this.viewModel.updateClipboardGraphicsLayer(),this.activeFlowPage==="paste-form"&&this.viewModel.resetHome()}),L(()=>this.clipboard.version,()=>{this.viewModel.resetHome(),this.viewModel.updateClipboardGraphicsLayer(),this.viewModel.clipboardMover?.clipboardContentsChanged()}),L(()=>this.closed,()=>{this.closed&&this.viewModel.formViewModelMap.clear(),this.viewModel.updateClipboardGraphicsLayer()}),L(()=>[this.viewModel?.supportedCommands.join(","),this.pasteWithMultipleFeaturesEnabled,this.viewModel?.hideViewClipboard,this.pasteWithMultipleLayersEnabled].join(","),()=>{this.viewModel.resetHome()},{initial:!0})])}_handleCloseAfterApply(){this.closed=!0,this.arcgisClose.emit()}_updateBauViewModelFields(i){this.viewModel.bauActiveFeatureIndex=i.activeFeatureIndex,this.viewModel.bauInvalidFeatures=i.invalidFeatures,this.viewModel.bauSubmitHasBeenAttempted=i.submitHasBeenAttempted,this.viewModel.bauFormValid=i.valid,this.viewModel.bauFormUpdating=i.updating}_renderCloseCommand(){return n`<calcite-action slot=header-actions-end icon=x text @click=${()=>{this.viewModel.resetHome(),this.closed=!0,this.arcgisClose.emit()}}></calcite-action>`}_renderClipboardCommand(){return n`<calcite-action slot=header-actions-end icon=clipboard .hidden=${this.viewModel.hideViewClipboard} text .disabled=${this.viewModel.updating} @click=${()=>{this.viewModel.activeFlowPage="clipboard"}}></calcite-action>`}_renderNoClipboardData(i){return u("no-data",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${e=>{e.preventDefault()}}>${this._renderClipboardCommand()}${this._renderCloseCommand()}<calcite-panel><div class="pad-contents"><div class="flex flex-row justify-center"><svg xmlns=http://www.w3.org/2000/svg height=92 width=92 style=${I({strokeWidth:"0.1px",fill:"var(--calcite-color-text-2)"})} viewBox="0 0 64 64">${$`<path d="M21 18h-1v-3h1zm24-3h-1v3h1zm0 5h-1v3h1zm-24 0h-1v3h1zm9.84 13.71l.3.954 3.02-.954-.3-.953zm-6.04 1.908l.3.953 3.02-.953-.3-.953zm-3.8 1.2V35h-1v3.182l2.08-.657-.3-.953zM21 30h-1v3h1zm0-5h-1v3h1zm27.816 5.896l-4.746.015 2.294 4.575-3.071 1.535-2.358-4.668-2.835 3.886V23.036zm-6.04-.78l3.607-.012-7.483-5.49v9.17l2.16-2.96 2.587 5.126 1.643-.821zM60.9 10.874v41.25a1.777 1.777 0 0 1-1.775 1.775H4.875A1.777 1.777 0 0 1 3.1 52.125v-41.25A1.777 1.777 0 0 1 4.875 9.1h54.25a1.777 1.777 0 0 1 1.775 1.775zm-.8 24.54l-24.2 7.641V53.1h23.225a.976.976 0 0 0 .975-.975zm0-24.54a.976.976 0 0 0-.975-.975H45V13h-1V9.9H21V13h-1V9.9H4.875a.976.976 0 0 0-.975.975V32.1H18v.8H3.9v19.225a.976.976 0 0 0 .975.975H35.1V35.51l.8-.252v6.96l24.2-7.643z" />`}</svg></div><p class="text-center">${this._messages.noClipboardData}</p></div></calcite-panel></calcite-flow-item>`)}_renderNoCommandPage(i){let e=this._messages.noPasteCommandsAvailable,a=this.availableCommands.at(0);return a?.commandDisabledReason&&(e=a.commandDisabledReason(this._messages,this._messages._lang),e||(e=this._messages.noPasteCommandsAvailable)),u("no-command",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${s=>{s.preventDefault()}}>${this._renderClipboardCommand()}${this._renderCloseCommand()}<calcite-panel><div class="pad-contents"><div class="flex flex-row justify-center"><svg xmlns=http://www.w3.org/2000/svg height=92 width=92 style=${I({strokeWidth:"0.1px",fill:"var(--calcite-color-text-2)"})} viewBox="0 0 64 64">${$`<path d="M21 18h-1v-3h1zm24-3h-1v3h1zm0 5h-1v3h1zm-24 0h-1v3h1zm9.84 13.71l.3.954 3.02-.954-.3-.953zm-6.04 1.908l.3.953 3.02-.953-.3-.953zm-3.8 1.2V35h-1v3.182l2.08-.657-.3-.953zM21 30h-1v3h1zm0-5h-1v3h1zm27.816 5.896l-4.746.015 2.294 4.575-3.071 1.535-2.358-4.668-2.835 3.886V23.036zm-6.04-.78l3.607-.012-7.483-5.49v9.17l2.16-2.96 2.587 5.126 1.643-.821zM60.9 10.874v41.25a1.777 1.777 0 0 1-1.775 1.775H4.875A1.777 1.777 0 0 1 3.1 52.125v-41.25A1.777 1.777 0 0 1 4.875 9.1h54.25a1.777 1.777 0 0 1 1.775 1.775zm-.8 24.54l-24.2 7.641V53.1h23.225a.976.976 0 0 0 .975-.975zm0-24.54a.976.976 0 0 0-.975-.975H45V13h-1V9.9H21V13h-1V9.9H4.875a.976.976 0 0 0-.975.975V32.1H18v.8H3.9v19.225a.976.976 0 0 0 .975.975H35.1V35.51l.8-.252v6.96l24.2-7.643z" />`}</svg></div><p class="text-center">${e}</p></div></calcite-panel></calcite-flow-item>`)}_renderAttributeCheckbox(i){return n`<calcite-label class="bold">${this._messages.attributesSubtitle}</calcite-label><calcite-label layout=inline><calcite-checkbox .disabled=${i} .checked=${this.viewModel.pasteWithAttributes} @calciteCheckboxChange=${e=>{this.viewModel.pasteWithAttributes=e.target.checked}}></calcite-checkbox>${this._messages.pasteWithAttributesLabel}</calcite-label>`}_renderFlowPasteAs(i){return i?u("paste-gallery",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${e=>{e.preventDefault(),this.viewModel.hasPasteCommandsPage&&(this.activeFlowPage="commands-page")}}>${this._renderClipboardCommand()}${this._renderCloseCommand()}<calcite-panel><div class="w-full" slot=footer><div class="w-full flex"><calcite-button .disabled=${this.viewModel.updating} width=half .hidden=${this.viewModel.hideFooterCancelButton} kind=brand appearance=outline @click=${()=>{this.viewModel.resetHome(),this.closed=!0,this.arcgisClose.emit()}}>${this._messages.cancel}</calcite-button><calcite-button .disabled=${this.viewModel.updating||!this.viewModel.pasteTemplate} kind=brand appearance=solid width=half @click=${()=>{try{this.viewModel.lastPasteError=void 0,this.viewModel.runPasteCommand({closeAfterApply:()=>{this._handleCloseAfterApply()},onPasteError:e=>{this.arcgisApplyPasteError.emit({command:this.activeCommand??"paste-as",errorMessage:e.errorMessage,errorCode:e.errorCode})},onApply:async e=>{try{await this.beforeApply?.();let a={...e};return this.arcgisApplyPasteCommand.emit(a).defaultPrevented?{success:!1}:(a.completionCallback&&await a.completionCallback,{success:!0})}catch{return{success:!1}}}},this.viewModel.activeCommand??"paste-as")}catch{}}}>${this.viewModel.alwaysShowFeatureForm?this._messages.next:(this.viewModel.clipboardFeatures.length??0)>1&&this.activeCommand!=="paste-merge"?y(this._messages.pasteMany??"",{num:this.viewModel.clipboardFeatures.length}):this._messages.paste}</calcite-button></div></div><div class="pad-start-end gallery-content"><div>${!this.viewModel.clipboardAndTemplateSupportAttributes&&this.viewModel.pasteTemplate?n`<div class="pad-contents"><calcite-notice open icon=exclamation-point kind=info><div slot=message>${this._messages.attributesNotCopied}</div>${this.activeCommand==="paste-merge"&&this.viewModel.hasClipboardItemMatchingTemplate?n`<calcite-link slot=link @click=${()=>{this.activeFlowPage="merge-page"}} title=${this._messages.seeMergeOptions??V}>${this._messages.seeMergeOptions}</calcite-link>`:null}</calcite-notice></div>`:null}${this.viewModel.clipboardAndTemplateSupportAttributes&&this.viewModel.pasteTemplate?this._renderAttributeCheckbox(!this.viewModel.clipboardAndTemplateSupportAttributes):null}${this.viewModel.clipboardAndTemplateSupportAttributes?null:this._renderAttributeCheckbox(!1)}</div><calcite-list .hidden=${this.viewModel.activeCommand!=="paste-merge"} .label=${this._messages.pasteCommandChoices??""} selection-mode=none selection-appearance=border><calcite-list-item .label=${this._messages.mergeOptionsTitle} .description=${this._messages.mergeOptionsDesc} .disabled=${this.viewModel.updating} @click=${()=>{this.activeFlowPage="merge-page"}}><calcite-icon slot=content-start icon=configure></calcite-icon><calcite-icon slot=content-end icon=chevron-right></calcite-icon></calcite-list-item></calcite-list><div><arcgis-feature-templates class="paste-feature-templates" .layers=${this.viewModel.workingLayers} selection-mode=single .disabledItemFunction=${()=>!1} @arcgisSelect=${e=>{this.viewModel.pasteTemplate=e.detail.item}} .referenceElement=${this.referenceElement}></arcgis-feature-templates></div></div></calcite-panel>${this._renderApplying()}</calcite-flow-item>`):u("paste-gallery",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${e=>{e.preventDefault(),this.viewModel.hasPasteCommandsPage&&(this.activeFlowPage="commands-page")}}></calcite-flow-item>`)}_renderFlowPasteMerge(i){if(!i)return u("paste-merge",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${a=>{a.preventDefault(),this.activeFlowPage="gallery-page"}}></calcite-flow-item>`);let e=this.viewModel.selectedClipboardItemIndex===-1?null:this.viewModel.clipboard.items.getItemAt(this.viewModel.selectedClipboardItemIndex);return u("paste-merge",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${a=>{a.preventDefault(),this.activeFlowPage="gallery-page"}}>${this._renderClipboardCommand()}${this._renderCloseCommand()}<calcite-panel><div class="merge-split-view-container"><div class="pad-contents merge-split-view-items"><calcite-label>${this._messages.selectionLabel}<calcite-list .label=${this._messages.features??""} selection-mode=single selection-appearance=border>${this.clipboard.items.toArray().map((a,s)=>({id:s,item:a})).filter(a=>a.item.type==="feature"&&a.item.layer&&a.item.graphic).map(a=>n`<calcite-list-item .disabled=${this.viewModel.updating} .selected=${a.id===this.viewModel.selectedClipboardItemIndex} @calciteListItemSelect=${()=>{this.viewModel.selectedClipboardItemIndex=a.id}} @pointerenter=${s=>{this.viewModel.highlightSelectedGraphicOnMap(a.item),s.target.classList.add("hovering")}} @pointerleave=${s=>{s.target.classList.remove("hovering"),this.viewModel.clearHighlightSelectedGraphic()}} .value=${a.id}><arcgis-feature-title slot=content .graphic=${a.item.graphic} .layer=${a.item.layer}></arcgis-feature-title><arcgis-feature-image width-in-pixels=16 height-in-pixels=16 use-true-shape slot=content-start .graphic=${a.item.graphic} .layer=${a.item.layer}></arcgis-feature-image>${this.viewModel.selectedClipboardItemIndex!==a.id?n`<calcite-chip slot=content-end .label=${this._messages.preservethis??""} class="chip-indent only-on-hover item-candidate" scale=s .value=${a.id}>${this._messages.preservethis??""}</calcite-chip>`:""}${this.viewModel.selectedClipboardItemIndex===a.id?n`<calcite-chip icon=check .label=${this._messages.preserved??""} class="item-preserved chip-indent" scale=s slot=content-end .value=${a.id}>${this._messages.preserved}</calcite-chip>`:""}</calcite-list-item>`)}</calcite-list></calcite-label></div><div class=" merge-split-view-attributes">${this.viewModel.selectedClipboardItemIndex===-1?n`<div></div>`:n`<div><arcgis-feature-form .feature=${e.graphic} .formTemplate=${e.layer.formTemplate?e.layer.formTemplate:null} .layer=${e.layer} ${P(this._featureFormElement)}></arcgis-feature-form></div>`}</div></div></calcite-panel>${this._renderApplying()}</calcite-flow-item>`)}_renderFlowPasteForm(i){if(!i)return u("paste-form",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${p=>{p.preventDefault(),this.activeFlowPage=this.viewModel.beforeForm,this.viewModel.resetFormPage()}}></calcite-flow-item>`);let e=(this.viewModel.bauFeatures?.length??0)>1,a=this.viewModel.updating,s=this.viewModel.bauActiveFeatureIndex>0,r=this.viewModel.bauActiveFeatureIndex!==-1&&this.viewModel.bauActiveFeatureIndex<(this.viewModel.bauFeatures?.length??0)-1,d=this.viewModel.bauActiveFeatureIndex===-1?y(this._messages.multipleFeaturesX??"",{total:this.viewModel.bauFeatures?.length??0}):y(this._messages.range??"",{current:this.viewModel.bauActiveFeatureIndex+1,total:this.viewModel.bauFeatures?.length??0}),h=(this.viewModel.bauInvalidFeatures?.length??0)>0;return u("paste-form",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${p=>{p.preventDefault(),this.activeFlowPage=this.viewModel.beforeForm,this.viewModel.resetFormPage()}}>${this._renderCloseCommand()}<calcite-panel><div class="w-full" slot=footer><div class="w-full flex"><calcite-button .disabled=${this.viewModel.updating} width=half .hidden=${this.viewModel.hideFooterCancelButton} kind=brand appearance=outline @click=${()=>{this.viewModel.resetHome(),this.closed=!0,this.arcgisClose.emit()}}>${this._messages.cancel}</calcite-button><calcite-button .disabled=${this.viewModel.updating||this.viewModel.bauFormUpdating} kind=brand appearance=solid width=half @click=${async()=>{try{if(await Q(()=>!this.viewModel.bauFormUpdating),!this.viewModel.bauFormValid){this._bauForm.value?.goToFirstError();return}this.viewModel.lastPasteError=void 0,this.viewModel.runPasteFormCommand({closeAfterApply:()=>{this._handleCloseAfterApply()},onPasteError:p=>{this.arcgisApplyPasteError.emit({command:this.activeCommand??"paste-as",errorMessage:p.errorMessage,errorCode:p.errorCode})},onApply:async p=>{try{await this.beforeApply?.();let g={...p};return this.arcgisApplyPasteCommand.emit(g).defaultPrevented?{success:!1}:(g.completionCallback&&await g.completionCallback,{success:!0})}catch{return{success:!1}}}})}catch{}}}>${(this.viewModel.bauFeatures?.length??0)>1?y(this._messages.pasteMany??"",{num:this.viewModel.bauFeatures.length}):this._messages.paste}</calcite-button></div></div>${e?n`<calcite-action-bar overflow-actions-disabled slot=action-bar layout=horizontal scale=s expand-disabled class="carousel-bar"><calcite-button .disabled=${this.viewModel.updating} @click=${p=>{this._showFloatingChoice=!this._showFloatingChoice,p.stopPropagation()}} scale=s appearance=transparent icon-start=legend icon-end=chevron-down kind=neutral><span class="bau-pick">${d}${h?n`<calcite-icon scale=s icon=exclamation-mark-triangle class="danger-icon-warning"></calcite-icon>`:""}</span></calcite-button><calcite-action slot=actions-end icon=chevron-left icon-flip-rtl scale=s .text=${this._messages.back??""} .disabled=${!s||a||!e} @click=${()=>{this.viewModel.previousActiveFeature()}}></calcite-action><calcite-action slot=actions-end icon=chevron-right icon-flip-rtl scale=s .text=${this._messages.next??""} .disabled=${!r||a||!e} @click=${()=>{this.viewModel.nextActiveFeature()}}></calcite-action></calcite-action-bar>${this._renderFloatingUIChoice(e)}`:""}<div>${this._renderPasteFormBreadcrumb()}<arcgis-multi-feature-form edit-type=INSERT .disabled=${this.viewModel.updating} .features=${this.viewModel.bauFeatures} .activeFeatureIndex=${this.viewModel.bauActiveFeatureIndex} @arcgisPropertyChange=${p=>{this._updateBauViewModelFields(p.target)}} @arcgisValueChange=${p=>{let g=0;for(let F of this.viewModel.bauFeatures?.toArray()??[]){let b=this.viewModel.bauOriginalGraphics[g];this.viewModel.formFeatureValuesChanged(b,p.target.getValues(F)),g++}}} ${P(this._bauForm)}></arcgis-multi-feature-form></div></calcite-panel>${this.renderPasteErrorFooter()}${this._renderApplying()}</calcite-flow-item>`)}_renderPasteFormBreadcrumb(){return n`<calcite-list .label=${this._messages.breadcrumb??""} selection-appearance=border scale=s selection-mode=none><calcite-list-item>${this.viewModel.bauActiveFeatureIndex===-1?n`<calcite-icon scale=s slot=content-start icon=group-form></calcite-icon>`:C(this.viewModel.bauActiveGraphic)?.isTable?n`<calcite-icon scale=s slot=content-start icon=table></calcite-icon>`:n`<arcgis-feature-image width-in-pixels=16 height-in-pixels=16 use-true-shape slot=content-start .graphic=${this.viewModel.bauActiveGraphic} .layer=${this.viewModel.bauActiveLayer}></arcgis-feature-image>`}${this.viewModel.bauActiveFeatureIndex===-1?n`<span slot=content>${y(this._messages.multipleFeaturesX??"",{total:this.viewModel.bauFeatures?.length??0})}</span>`:n`<arcgis-feature-title is-new-feature slot=content .graphic=${this.viewModel.bauActiveGraphic} .layer=${this.viewModel.bauActiveLayer}></arcgis-feature-title>`}</calcite-list-item></calcite-list>`}_renderFloatingUIChoice(i){if(!this._showFloatingChoice||!i)return n`<div></div>`;let e=!1;this.viewModel.bauInvalidFeatures.length>0&&(e=!0);let a=new Set(this.viewModel.bauInvalidFeatures);return n`<div class="choose-feature"><calcite-list .label=${this._messages.choosefeature??""} selection-mode=single selection-appearance=border><calcite-list-item .disabled=${this.viewModel.updating} @calciteListItemSelect=${s=>{this.viewModel.bauActiveFeatureIndex!==-1&&(this.viewModel.bauActiveFeatureIndex=-1,this.viewModel.updateIndividualMultiFeatureFormHighlight()),this.viewModel.clearMultiFeatureFormHighlights(),this._showFloatingChoice=!1}} .label=${y(this._messages.multipleFeaturesX??"",{total:this.viewModel.bauFeatures.length})} .selected=${this.viewModel.bauActiveFeatureIndex===-1} value=shared><calcite-icon scale=s icon=group-form class="feature-choose-listitem" slot=content-start></calcite-icon></calcite-list-item>${this.viewModel.bauFeatures.map((s,r)=>n`<calcite-list-item .disabled=${this.viewModel.updating} @pointerenter=${d=>{this.viewModel.highlightMultiFeatureFormFeature(s,r)}} @pointerleave=${d=>{this.viewModel.clearMultiFeatureFormHighlights()}} .selected=${this.viewModel.bauActiveFeatureIndex===r} @calciteListItemSelect=${d=>{let h=window.parseInt(d.currentTarget.value);this.viewModel.bauActiveFeatureIndex=h,this.viewModel.updateIndividualMultiFeatureFormHighlight(),this.viewModel.clearMultiFeatureFormHighlights(),this._showFloatingChoice=!1}} .value=${r}><arcgis-feature-title is-new-feature slot=content .graphic=${s} .layer=${s.layer}></arcgis-feature-title>${C(s)?.isTable?n`<calcite-icon scale=s icon=table slot=content-start class="feature-choose-listitem"></calcite-icon>`:n`<arcgis-feature-image slot=content-start class="feature-choose-listitem" .graphic=${s} width-in-pixels=16 height-in-pixels=16 use-true-shape .layer=${s.layer}></arcgis-feature-image>`}${a.has(s)&&e?n`<calcite-icon slot=content-end icon=exclamation-mark-triangle scale=s class="danger-icon-warning"></calcite-icon>`:""}</calcite-list-item>`)}</calcite-list></div>`}_renderClipboard(i){return i?u("paste-form",n`<calcite-flow-item .selected=${i} .heading=${this._messages.clipboardContents} @calciteFlowItemBack=${e=>{e.preventDefault(),this.activeFlowPage=this.viewModel.beforeClipboard}}>${this._renderCloseCommand()}<calcite-panel><arcgis-clipboard .view=${this.view} .referenceElement=${this.referenceElement}></arcgis-clipboard></calcite-panel></calcite-flow-item>`):u("paste-form",n`<calcite-flow-item .selected=${i} .heading=${this._messages.clipboardContents} @calciteFlowItemBack=${e=>{e.preventDefault(),this.activeFlowPage=this.viewModel.beforeClipboard}}></calcite-flow-item>`)}_renderPasteCommands(i){if(!i)return u("paste-commands",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${a=>{a.preventDefault(),this.activeFlowPage="commands-page"}}></calcite-flow-item>`);let e=this.viewModel.clipboard.items.length===0?this._messages.clipboardEmpty??"":this.viewModel.clipboard.items.length>1?y(this._messages.clipboardContentsMany??"",{num:this.viewModel.clipboard.items.length}):this._messages.clipboardContentsSingle??"";return u("paste-commands",n`<calcite-flow-item .selected=${i} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${a=>{a.preventDefault(),this.activeFlowPage="commands-page"}}>${this._renderClipboardCommand()}${this._renderCloseCommand()}<calcite-panel><calcite-list .label=${this._messages.clipboardContents??""} selection-mode=none selection-appearance=border><calcite-list-item .description=${e}></calcite-list-item></calcite-list><div class="pad-contents"><calcite-notice open icon=move><div slot=message>${this._messages.moveClipboardFeatures}</div></calcite-notice></div><div class="pad-contents"><calcite-list .label=${this._messages.pasteCommandChoices??""} selection-mode=none selection-appearance=border>${this.availableCommands.map(a=>n`<calcite-list-item .label=${a.label(this._messages,this._messages._lang)} .description=${a.description(this._messages,this._messages._lang)} .value=${a.id} .disabled=${!a.commandEnabled||this.viewModel.updating} @click=${async()=>{try{this.viewModel.lastPasteError=void 0,await a.initiate({closeAfterApply:()=>{this._handleCloseAfterApply()},onPasteError:s=>{this.arcgisApplyPasteError.emit({command:a.id,errorMessage:s.errorMessage,errorCode:s.errorCode})},onApply:async s=>{try{await this.beforeApply?.();let r={...s};return this.arcgisApplyPasteCommand.emit(r).defaultPrevented?{success:!1}:(r.completionCallback&&await r.completionCallback,{success:!0})}catch{return{success:!1}}}})}catch{}}}><calcite-icon slot=content-start .icon=${a.icon}></calcite-icon>${a.immediate?"":n`<calcite-icon slot=content-end icon=chevron-right flip-rtl></calcite-icon>`}</calcite-list-item>`)}</calcite-list></div></calcite-panel>${this.renderPasteErrorFooter()}${this._renderApplying()}</calcite-flow-item>`)}renderPasteErrorFooter(){return!this.viewModel.lastPasteError||this.viewModel.hideErrorNotice?null:n`<calcite-notice slot=footer open kind=danger icon=exclamation-mark-triangle closable @calciteNoticeClose=${()=>{this.viewModel.lastPasteError=void 0}}><div slot=title>${this._messages.errorNoticeTitle??""}</div><div slot=message>${this.viewModel.lastPasteError.localizedErrorMessage?this._messages[this.viewModel.lastPasteError.localizedErrorMessage]:this._messages.errorNoticeMessage??""}</div></calcite-notice>`}_renderApplying(){return this.viewModel.applying?n`<calcite-scrim><calcite-loader scale=s .label=${this._messages.updating??""}></calcite-loader></calcite-scrim>`:""}render(){return this.activeFlowPage==="nodata-page"?n`<calcite-flow class="arcgis-paste" .hidden=${this.closed}>${this._renderNoClipboardData(this.activeFlowPage==="nodata-page")}</calcite-flow>`:this.activeFlowPage==="no-command-page"?n`<calcite-flow class="arcgis-paste" .hidden=${this.closed}>${this._renderNoCommandPage(this.activeFlowPage==="no-command-page")}</calcite-flow>`:n`<calcite-flow class="arcgis-paste" .hidden=${this.closed}>${this.hasPasteCommandsPage&&this._renderPasteCommands(this.activeFlowPage==="commands-page")||""}${this._renderFlowPasteAs(this.activeFlowPage==="gallery-page")}${this._renderFlowPasteMerge(this.activeFlowPage==="merge-page")}${this._renderFlowPasteForm(this.activeFlowPage==="paste-form")}${this._renderClipboard(this.activeFlowPage==="clipboard")}</calcite-flow>`}};B("arcgis-paste",T);return T},"core/accessorSupport/decorators","core/Accessor","Graphic","applications/Components/clipboard","layers/GraphicsLayer","core/Collection","applications/Components/templateUtils","applications/Components/applySetUtils","core/reactiveUtils","widgets/FeatureForm/FeatureFormViewModel","intl","applications/Components/editUtils",a,b,c,d,e,f)
|