@arcgis/map-components 6.0.0-next.2 → 6.0.0-next.20
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/{OJIYHIGC.js → 23L5GSFN.js} +1 -1
- package/dist/cdn/{SIFBGT4D.js → 27HLXBPP.js} +1 -1
- package/dist/cdn/2C4EHM32.js +2 -0
- package/dist/cdn/2CV4EHYO.js +2 -0
- package/dist/cdn/2JOUXCA5.js +2 -0
- package/dist/cdn/{S6BPBG7D.js → 2T3ALADJ.js} +1 -1
- package/dist/cdn/2ZNQABOI.js +2 -0
- package/dist/cdn/35EYUDTJ.js +2 -0
- package/dist/cdn/{YDZZPLVB.js → 3ND2HQVC.js} +1 -1
- package/dist/cdn/3POODM7N.js +2 -0
- package/dist/cdn/3SX4JMXA.js +2 -0
- package/dist/cdn/{ZAUG5MSY.js → 3SZ3FE66.js} +1 -1
- package/dist/cdn/3TGVVG6M.js +2 -0
- package/dist/cdn/3VB6M2GX.js +2 -0
- package/dist/cdn/3XEUTP6J.js +2 -0
- package/dist/cdn/3YQDH3QT.js +2 -0
- package/dist/cdn/{TKILR2SM.js → 3ZFHZPWM.js} +1 -1
- package/dist/cdn/454VHWQQ.js +2 -0
- package/dist/cdn/4CLSMFD2.js +2 -0
- package/dist/cdn/4EGKJPJ2.js +2 -0
- package/dist/cdn/{H7NR6B6S.js → 4EHW2LXW.js} +1 -1
- package/dist/cdn/4IJC4V6Z.js +2 -0
- package/dist/cdn/{V2YPYCU6.js → 4IQJMQQZ.js} +1 -1
- package/dist/cdn/4JL3FLRV.js +2 -0
- package/dist/cdn/{WSHG4LV7.js → 4NW2V4RQ.js} +1 -1
- package/dist/cdn/4XEZYOW7.js +2 -0
- package/dist/cdn/5EBCPTE5.js +2 -0
- package/dist/cdn/{PPAFKBPN.js → 5FA37EZ6.js} +1 -1
- package/dist/cdn/5JRZJANG.js +2 -0
- package/dist/cdn/5P7WPXOY.js +2 -0
- package/dist/cdn/5RCFYMHK.js +2 -0
- package/dist/cdn/{HQWUQFN5.js → 5T4TPTPA.js} +1 -1
- package/dist/cdn/5UF6YKFN.js +2 -0
- package/dist/cdn/5VXEMMLV.js +2 -0
- package/dist/cdn/5Y45LLBY.js +2 -0
- package/dist/cdn/{2UKSCGYU.js → 64TOY3PA.js} +1 -1
- package/dist/cdn/66RQ6K6J.js +2 -0
- package/dist/cdn/6BMZP72L.js +2 -0
- package/dist/cdn/6DDIOOI6.js +2 -0
- package/dist/cdn/6IF5KBOJ.js +2 -0
- package/dist/cdn/{7DM32WQP.js → 6LUCQLB7.js} +1 -1
- package/dist/cdn/6NCZTAOF.js +2 -0
- package/dist/cdn/6S6CZJKN.js +2 -0
- package/dist/cdn/6XODSQWR.js +2 -0
- package/dist/cdn/{ZSPYPXBY.js → 7465ANAR.js} +1 -1
- package/dist/cdn/7CHCF6IX.js +2 -0
- package/dist/cdn/7EIWYGE2.js +2 -0
- package/dist/cdn/7FA44B44.js +2 -0
- package/dist/cdn/7IGSTLKW.js +4 -0
- package/dist/cdn/7NB627L5.js +2 -0
- package/dist/cdn/{EMXGW73P.js → 7QA26M4F.js} +1 -1
- package/dist/cdn/{RVIHQZ44.js → 7SDUVBEL.js} +1 -1
- package/dist/cdn/AA4RF7H6.js +2 -0
- package/dist/cdn/{ESOCZAMZ.js → AB74IWXX.js} +1 -1
- package/dist/cdn/AD2IA3IS.js +2 -0
- package/dist/cdn/AFYLXNX3.js +2 -0
- package/dist/cdn/{HI7BF3DL.js → AI3ETXGZ.js} +1 -1
- package/dist/cdn/{JRCEICO2.js → AKAOYYJ7.js} +1 -1
- package/dist/cdn/{FHHVGI4H.js → ALZFPS2D.js} +1 -1
- package/dist/cdn/ASHCHM4V.js +2 -0
- package/dist/cdn/ATLQSGEK.js +2 -0
- package/dist/cdn/{FZAQZSRA.js → AVLV4PPI.js} +1 -1
- package/dist/cdn/AWB7XOHF.js +2 -0
- package/dist/cdn/AXJE2SZV.js +2 -0
- package/dist/cdn/B7D5ZTB2.js +2 -0
- package/dist/cdn/{EK7Y6JBZ.js → BE5M3N7T.js} +1 -1
- package/dist/cdn/BK2UM27Y.js +2 -0
- package/dist/cdn/BKSKZ6W6.js +2 -0
- package/dist/cdn/{OAYNZFL2.js → BNZFCSS2.js} +1 -1
- package/dist/cdn/{AO6ONNIJ.js → BP7H6IBX.js} +1 -1
- package/dist/cdn/{Z6AVJWLP.js → BPNUA7MC.js} +1 -1
- package/dist/cdn/BRGIHQI3.js +2 -0
- package/dist/cdn/{6VO7G2UX.js → BSTT6ICQ.js} +1 -1
- package/dist/cdn/{EV7IIQBP.js → BT755NSP.js} +1 -1
- package/dist/cdn/BWM4ZVN7.js +2 -0
- package/dist/cdn/C2YP473B.js +2 -0
- package/dist/cdn/C6XAWMZK.js +2 -0
- package/dist/cdn/{VTCE3YQW.js → CBAI4VLY.js} +1 -1
- package/dist/cdn/{5TKSFDKY.js → CD2XIXN5.js} +1 -1
- package/dist/cdn/{WBBTZNZU.js → CESPPRYQ.js} +1 -1
- package/dist/cdn/{YQV2OMBS.js → CEVISDMV.js} +1 -1
- package/dist/cdn/CEW6QJGT.js +2 -0
- package/dist/cdn/CG7BTPM3.js +2 -0
- package/dist/cdn/CI6VWQ63.js +2 -0
- package/dist/cdn/{CKS5ACAB.js → CUFP5Q3Z.js} +1 -1
- package/dist/cdn/{DUMHDAYP.js → CYH72IDQ.js} +1 -1
- package/dist/cdn/CYUO2UNT.js +2 -0
- package/dist/cdn/CYXNSUYF.js +2 -0
- package/dist/cdn/{FSBLGH6E.js → D6GJRZJV.js} +1 -1
- package/dist/cdn/D7T33U5Z.js +2 -0
- package/dist/cdn/{P2I63WVL.js → DAZLYCHV.js} +1 -1
- package/dist/cdn/DE4OSJG5.js +2 -0
- package/dist/cdn/{VUAYNF3K.js → DIXSGC2P.js} +1 -1
- package/dist/cdn/{CAC3OOFR.js → DQDUD556.js} +1 -1
- package/dist/cdn/{A6H4JIO7.js → DQRQZK5Y.js} +1 -1
- package/dist/cdn/DQSP4RFL.js +2 -0
- package/dist/cdn/{2BUURGFL.js → DRD2FAEC.js} +1 -1
- package/dist/cdn/DSIYRWN2.js +2 -0
- package/dist/cdn/DUKK2PHD.js +2 -0
- package/dist/cdn/{2DAGREZP.js → DWQQDLIU.js} +1 -1
- package/dist/cdn/{PIDNZKSJ.js → DYUFBVXE.js} +1 -1
- package/dist/cdn/{XP74F2F6.js → EBQ537XN.js} +1 -1
- package/dist/cdn/{DN2EFA4T.js → EGD2CSA7.js} +1 -1
- package/dist/cdn/ELAKAKPE.js +2 -0
- package/dist/cdn/{SQEKT3GV.js → ENHMLZOY.js} +1 -1
- package/dist/cdn/EPNWPJZ6.js +2 -0
- package/dist/cdn/{ZO7TUIUE.js → ERULVBEV.js} +1 -1
- package/dist/cdn/EVJFKABL.js +4 -0
- package/dist/cdn/{PBHNO4J7.js → EVQL7FMR.js} +1 -1
- package/dist/cdn/EWM5PERI.js +2 -0
- package/dist/cdn/EXSZCSCL.js +2 -0
- package/dist/cdn/F2EOAAKS.js +2 -0
- package/dist/cdn/F2QSG3HU.js +2 -0
- package/dist/cdn/{RUYAWRPV.js → F4AJCUZ6.js} +1 -1
- package/dist/cdn/FFVPO4JB.js +2 -0
- package/dist/cdn/{R5TXJ5FN.js → FIYZBOAN.js} +1 -1
- package/dist/cdn/FNJBBQT5.js +2 -0
- package/dist/cdn/FTFHL3EA.js +2 -0
- package/dist/cdn/FUJYJKDU.js +2 -0
- package/dist/cdn/FUSAMFLS.js +2 -0
- package/dist/cdn/GBJY4A36.js +2 -0
- package/dist/cdn/GCTF7CS7.js +2 -0
- package/dist/cdn/{HTC4LCZQ.js → GD4XR5XA.js} +1 -1
- package/dist/cdn/{M7AFSV3C.js → GE4QV5JC.js} +1 -1
- package/dist/cdn/{UUHCMLK6.js → GGUWUNUA.js} +1 -1
- package/dist/cdn/GIBXI44G.js +2 -0
- package/dist/cdn/GWXQ6CHV.js +2 -0
- package/dist/cdn/{GNSNEUMI.js → H22SGLVH.js} +1 -1
- package/dist/cdn/{W3TSTSES.js → H6KJMGY6.js} +1 -1
- package/dist/cdn/{Z2UUXST4.js → H6SIAY6D.js} +1 -1
- package/dist/cdn/H7QBBTTP.js +2 -0
- package/dist/cdn/HJZRNUBU.js +2 -0
- package/dist/cdn/HKB7SRFI.js +2 -0
- package/dist/cdn/{26URLKXD.js → HS2TQPAG.js} +1 -1
- package/dist/cdn/HWRPCOVE.js +2 -0
- package/dist/cdn/I3FQUA77.js +2 -0
- package/dist/cdn/IAIVTB2Q.js +2 -0
- package/dist/cdn/ID3UU7QE.js +2 -0
- package/dist/cdn/{2SO5S66J.js → IEZGQ2LC.js} +1 -1
- package/dist/cdn/{QKZ552KI.js → IQ4ADF3I.js} +1 -1
- package/dist/cdn/{M3FI4K44.js → ITRBNYSS.js} +1 -1
- package/dist/cdn/IU5QHF6T.js +2 -0
- package/dist/cdn/IU7BOICX.js +2 -0
- package/dist/cdn/{ZHSESERJ.js → IZKG2DP3.js} +1 -1
- package/dist/cdn/J7VECW7F.js +2 -0
- package/dist/cdn/{XDU23V37.js → JAH2AKJ5.js} +1 -1
- package/dist/cdn/JB6WQEFJ.js +2 -0
- package/dist/cdn/JCCTYIZ2.js +2 -0
- package/dist/cdn/JPFLHUNR.js +2 -0
- package/dist/cdn/JSHCS4Y6.js +2 -0
- package/dist/cdn/JVC5XNYJ.js +2 -0
- package/dist/cdn/K7OB5AHB.js +2 -0
- package/dist/cdn/KIFEVB5D.js +2 -0
- package/dist/cdn/{KBA5OIES.js → KLY36SOM.js} +1 -1
- package/dist/cdn/KM7PWRG2.js +2 -0
- package/dist/cdn/{M6YVO33A.js → KQDXSX5Y.js} +1 -1
- package/dist/cdn/KQZYGYQO.js +2 -0
- package/dist/cdn/KRJCOTGC.js +2 -0
- package/dist/cdn/KV5K3ATE.js +2 -0
- package/dist/cdn/KWPVYPJ5.js +2 -0
- package/dist/cdn/KZUUBMYO.js +2 -0
- package/dist/cdn/{YZJKSAQ5.js → L4HKKYNC.js} +1 -1
- package/dist/cdn/{F5IHFPKA.js → L726CUBZ.js} +1 -1
- package/dist/cdn/LB52TH7O.js +2 -0
- package/dist/cdn/LDC5FSWA.js +2 -0
- package/dist/cdn/{HY2JY2TT.js → LFSVKJXI.js} +1 -1
- package/dist/cdn/LKMQHTBY.js +2 -0
- package/dist/cdn/LL3DXDKE.js +2 -0
- package/dist/cdn/LMI7MLKS.js +2 -0
- package/dist/cdn/LOF4XAJZ.js +2 -0
- package/dist/cdn/LPXSF4M6.js +2 -0
- package/dist/cdn/{MYLIX42T.js → LXLZB2JC.js} +1 -1
- package/dist/cdn/LXME6MU5.js +2 -0
- package/dist/cdn/{5DY7GHBN.js → M2HYKS62.js} +1 -1
- package/dist/cdn/{WO26ZR5Z.js → M4M3QTI4.js} +1 -1
- package/dist/cdn/M6COQWFB.js +2 -0
- package/dist/cdn/M6CSJLXC.js +2 -0
- package/dist/cdn/{FQSHLYKX.js → M76PF7SP.js} +1 -1
- package/dist/cdn/{WNWTWPV6.js → MGE3J5KE.js} +1 -1
- package/dist/cdn/MGQA3G43.js +2 -0
- package/dist/cdn/{HKVIWCPL.js → MPIIQAQO.js} +1 -1
- package/dist/cdn/MRCZ6R25.js +2 -0
- package/dist/cdn/MWFZNICV.js +2 -0
- package/dist/cdn/NEQJAZLZ.js +2 -0
- package/dist/cdn/NHGQ7T4H.js +2 -0
- package/dist/cdn/NIMNZJJZ.js +2 -0
- package/dist/cdn/{OAMA6SL3.js → NR2RFSZB.js} +1 -1
- package/dist/cdn/NU75HQA2.js +2 -0
- package/dist/cdn/NY7PPWFQ.js +2 -0
- package/dist/cdn/O7ZXS622.js +2 -0
- package/dist/cdn/OBQUHPHJ.js +2 -0
- package/dist/cdn/OFBCNFBW.js +2 -0
- package/dist/cdn/{BQBWXR6P.js → OISNNHIG.js} +1 -1
- package/dist/cdn/OLEUR4YB.js +2 -0
- package/dist/cdn/{4IU5R6VO.js → ONSMVZAM.js} +1 -1
- package/dist/cdn/OT43XHBV.js +2 -0
- package/dist/cdn/{2ZMXUAQZ.js → P3ZJLVKC.js} +1 -1
- package/dist/cdn/{N3DTZRST.js → P7XX5RSZ.js} +1 -1
- package/dist/cdn/{DSD2SY73.js → PBXO27K2.js} +1 -1
- package/dist/cdn/{UVJWDKLK.js → PSD74QRS.js} +1 -1
- package/dist/cdn/{IQEEQOMD.js → PST64E7E.js} +1 -1
- package/dist/cdn/{TDZIH5OK.js → PVAKLYII.js} +1 -1
- package/dist/cdn/{FPPWXIBA.js → QABRDQFJ.js} +1 -1
- package/dist/cdn/QCYQNVPL.js +2 -0
- package/dist/cdn/QE7SN2DZ.js +2 -0
- package/dist/cdn/QFWFBHIF.js +2 -0
- package/dist/cdn/{SAOLD6MH.js → QMH2OBF6.js} +1 -1
- package/dist/cdn/QPHKPPYM.js +2 -0
- package/dist/cdn/{MA7GBKLW.js → QYOTQQAL.js} +1 -1
- package/dist/cdn/QYYYQIAI.js +2 -0
- package/dist/cdn/R2KMEDRH.js +2 -0
- package/dist/cdn/R3VD3PEO.js +2 -0
- package/dist/cdn/{53OXTCE6.js → R5DBF7SZ.js} +1 -1
- package/dist/cdn/RLYKTTAI.js +2 -0
- package/dist/cdn/ROHGHCK6.js +2 -0
- package/dist/cdn/RQ2MM3DQ.js +2 -0
- package/dist/cdn/RQT2PVDJ.js +2 -0
- package/dist/cdn/RSNXBYXL.js +2 -0
- package/dist/cdn/{PWHXRRFU.js → RTZG4WTI.js} +1 -1
- package/dist/cdn/RUMWDBIU.js +2 -0
- package/dist/cdn/{E54VGGFM.js → RVJKTOGT.js} +1 -1
- package/dist/cdn/RYQW6GPV.js +2 -0
- package/dist/cdn/{JS3IKVKM.js → S5MD2X3H.js} +1 -1
- package/dist/cdn/SBYVR52H.js +2 -0
- package/dist/cdn/{DY2EOHFD.js → SDMJGSR7.js} +1 -1
- package/dist/cdn/{ZDMSSGIM.js → SFMD5PPC.js} +1 -1
- package/dist/cdn/{SMVLPJDD.js → SIIF27TS.js} +1 -1
- package/dist/cdn/SIXKHDVJ.js +2 -0
- package/dist/cdn/SMRY445Z.js +2 -0
- package/dist/cdn/{IAWXCNTX.js → SNEMD7IN.js} +1 -1
- package/dist/cdn/{PGUZODKZ.js → SNGKRGPF.js} +1 -1
- package/dist/cdn/{QEPANMVK.js → SQI6CU3W.js} +1 -1
- package/dist/cdn/SQXGDXHV.js +2 -0
- package/dist/cdn/{OUC5HWPQ.js → STOPSNWH.js} +1 -1
- package/dist/cdn/{MICLX7QW.js → SW6UOJIE.js} +1 -1
- package/dist/cdn/T2ONRGQX.js +2 -0
- package/dist/cdn/T2UN4CJT.js +2 -0
- package/dist/cdn/{Q4L65YE5.js → T5XVILYA.js} +1 -1
- package/dist/cdn/TFXSKVB7.js +2 -0
- package/dist/cdn/{3ONY25MG.js → THIUS6HZ.js} +1 -1
- package/dist/cdn/TIUFHDP2.js +2 -0
- package/dist/cdn/TJC7VHRZ.js +2 -0
- package/dist/cdn/{D7FBQECJ.js → TT57O767.js} +1 -1
- package/dist/cdn/TTDOASDI.js +2 -0
- package/dist/cdn/TTGQ4Y7X.js +2 -0
- package/dist/cdn/TWPVYHJG.js +2 -0
- package/dist/cdn/U7FYQAUZ.js +2 -0
- package/dist/cdn/{HPWF3IQV.js → U7WRQCRV.js} +1 -1
- package/dist/cdn/UBCDF55B.js +2 -0
- package/dist/cdn/UHP6ZS6H.js +2 -0
- package/dist/cdn/{3GHQZCMV.js → UJLIKFS6.js} +1 -1
- package/dist/cdn/UJYW2LBF.js +2 -0
- package/dist/cdn/UKB45JOM.js +2 -0
- package/dist/cdn/{Z2WYULU3.js → UN65FKRA.js} +1 -1
- package/dist/cdn/{VDEMMP33.js → UQLRFL2S.js} +1 -1
- package/dist/cdn/{6MCDOI5M.js → V3HQQ6TJ.js} +1 -1
- package/dist/cdn/{MTFIK3F4.js → V7OBQRSG.js} +1 -1
- package/dist/cdn/VBSWB2VR.js +2 -0
- package/dist/cdn/{VLPNB2Z3.js → VCJ6M3PX.js} +1 -1
- package/dist/cdn/VHYR3UPY.js +2 -0
- package/dist/cdn/{52CUDGKY.js → VIMOA3H7.js} +1 -1
- package/dist/cdn/{J3FRSWZD.js → VLGRGILZ.js} +1 -1
- package/dist/cdn/VQDXE456.js +2 -0
- package/dist/cdn/{65MI3MW2.js → VTER7AQ2.js} +1 -1
- package/dist/cdn/{J6HOUEVT.js → VWHNYGBM.js} +1 -1
- package/dist/cdn/VYM3TR3Q.js +2 -0
- package/dist/cdn/W472ZYUY.js +2 -0
- package/dist/cdn/{ZIBQTNB6.js → WALR7J3I.js} +1 -1
- package/dist/cdn/{3C6FN5WT.js → WD4TPDI6.js} +1 -1
- package/dist/cdn/WNRWNZGL.js +2 -0
- package/dist/cdn/WQF3SS53.js +2 -0
- package/dist/cdn/{LYT35TNY.js → WQIIAMYV.js} +1 -1
- package/dist/cdn/WTRZ6OZV.js +2 -0
- package/dist/cdn/{PZZU36OG.js → WV2GLDRQ.js} +1 -1
- package/dist/cdn/{PCOXR45L.js → X5RVRRKO.js} +1 -1
- package/dist/cdn/X5WMEO4X.js +2 -0
- package/dist/cdn/XCHCC6HT.js +2 -0
- package/dist/cdn/XDQ6UHVN.js +2 -0
- package/dist/cdn/XFPFS6PS.js +2 -0
- package/dist/cdn/XNHTHY3W.js +2 -0
- package/dist/cdn/{OAMPGCZF.js → XOOSPWUF.js} +1 -1
- package/dist/cdn/XSEDC76K.js +2 -0
- package/dist/cdn/XX6G24PV.js +2 -0
- package/dist/cdn/XYEUSNMJ.js +2 -0
- package/dist/cdn/XYQWC4QA.js +2 -0
- package/dist/cdn/Y3S6WJN2.js +2 -0
- package/dist/cdn/Y6WTYXVP.js +2 -0
- package/dist/cdn/{QT7GRA34.js → Y7ILKQZU.js} +1 -1
- package/dist/cdn/YAVRBZ5C.js +2 -0
- package/dist/cdn/YCQWS3JT.js +2 -0
- package/dist/cdn/{5RAIBYCT.js → YECZWYQZ.js} +1 -1
- package/dist/cdn/{WS46QSWM.js → YFYFQWXG.js} +1 -1
- package/dist/cdn/{RRSU6QD4.js → YMAEN7NR.js} +1 -1
- package/dist/cdn/YNMIPIKK.js +2 -0
- package/dist/cdn/YR4YEJ2N.js +2 -0
- package/dist/cdn/YSE67FR2.js +2 -0
- package/dist/cdn/Z24QDG3E.js +3 -0
- package/dist/cdn/{B32GNMHD.js → Z66I2FAE.js} +1 -1
- package/dist/cdn/ZDLHDQCX.js +2 -0
- package/dist/cdn/ZIQRARXE.js +2 -0
- package/dist/cdn/ZMXN6PZS.js +2 -0
- package/dist/cdn/ZN52ACGS.js +2 -0
- package/dist/cdn/ZNAOFUAU.js +2 -0
- package/dist/cdn/{FACY5XHG.js → ZO5WNVFD.js} +1 -1
- package/dist/cdn/ZOLOOVHX.js +2 -0
- package/dist/cdn/ZPA5JUPD.js +2 -0
- package/dist/cdn/{HBWEW6R7.js → ZQL4CTJK.js} +1 -1
- package/dist/cdn/{EPAR65ZP.js → ZUYPKJYL.js} +1 -1
- package/dist/cdn/assets/bookmarks/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/feature-form-next/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/feature-next/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/features-next/t9n/messages.en.json +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/chunks/attachment-utils.js +5 -5
- package/dist/chunks/dateUtils.js +1 -1
- package/dist/chunks/esri-main.js +1 -1
- package/dist/chunks/loader-utils.js +43 -0
- package/dist/chunks/resources.js +10 -4
- package/dist/chunks/slots.js +3 -3
- package/dist/chunks/useArcgisViewReadyError.js +224 -158
- package/dist/components/arcgis-add-attachment-view/customElement.d.ts +42 -9
- package/dist/components/arcgis-area-measurement-2d/customElement.d.ts +8 -3
- package/dist/components/arcgis-area-measurement-3d/customElement.d.ts +8 -3
- package/dist/components/arcgis-attachment-detail-view/customElement.d.ts +200 -0
- package/dist/components/arcgis-attachment-detail-view/customElement.js +126 -0
- package/dist/components/arcgis-attachment-detail-view/index.d.ts +1 -0
- package/dist/components/arcgis-attachment-detail-view/index.js +8 -0
- package/dist/components/arcgis-attachment-preview/customElement.d.ts +47 -9
- package/dist/components/arcgis-attachment-preview/customElement.js +12 -10
- package/dist/components/arcgis-attachment-thumbnail/customElement.d.ts +42 -9
- package/dist/components/arcgis-attachment-validation-view/customElement.d.ts +42 -9
- package/dist/components/arcgis-basemap-gallery/customElement.d.ts +4 -4
- package/dist/components/arcgis-basemap-gallery/customElement.js +10 -10
- package/dist/components/arcgis-building-level-item/customElement.js +1 -1
- package/dist/components/arcgis-catalog-layer-list-next/customElement.d.ts +3 -3
- package/dist/components/arcgis-coordinate-conversion-next/customElement.js +29 -29
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.d.ts +8 -3
- package/dist/components/arcgis-distance-measurement-2d/customElement.d.ts +8 -3
- package/dist/components/arcgis-editor/customElement.d.ts +26 -21
- package/dist/components/arcgis-editor/customElement.js +19 -14
- package/dist/components/arcgis-elevation-profile/customElement.d.ts +15 -7
- package/dist/components/arcgis-elevation-profile/customElement.js +93 -89
- package/dist/components/arcgis-exploratory-analysis/customElement.d.ts +7 -0
- package/dist/components/arcgis-exploratory-analysis/customElement.js +51 -51
- package/dist/components/arcgis-feature-fields/customElement.js +20 -20
- package/dist/components/arcgis-feature-form-field/customElement.d.ts +42 -9
- package/dist/components/arcgis-feature-next/customElement.js +21 -14
- package/dist/components/arcgis-feature-table/customElement.d.ts +58 -39
- package/dist/components/arcgis-features/customElement.d.ts +1 -1
- package/dist/components/arcgis-features/customElement.js +12 -11
- package/dist/components/arcgis-features-next/customElement.d.ts +10 -4
- package/dist/components/arcgis-features-next/customElement.js +171 -141
- package/dist/components/arcgis-fullscreen/customElement.js +4 -4
- package/dist/components/arcgis-layer-list-next/customElement.d.ts +1 -1
- package/dist/components/arcgis-legend/customElement.d.ts +2 -0
- package/dist/components/arcgis-line-of-sight/customElement.d.ts +15 -3
- package/dist/components/arcgis-line-of-sight/customElement.js +1 -1
- package/dist/components/arcgis-link-chart/customElement.d.ts +27 -20
- package/dist/components/arcgis-link-chart/customElement.js +28 -28
- package/dist/components/arcgis-locate/customElement.js +6 -6
- package/dist/components/arcgis-map/customElement.d.ts +44 -36
- package/dist/components/arcgis-map/customElement.js +21 -21
- package/dist/components/arcgis-measurement-content/customElement.js +6 -6
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.d.ts +10 -2
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +8 -5
- package/dist/components/arcgis-popup/customElement.d.ts +10 -4
- package/dist/components/arcgis-popup/customElement.js +32 -28
- package/dist/components/arcgis-print-datum-transformation-input/customElement.js +17 -17
- package/dist/components/arcgis-scene/customElement.d.ts +27 -20
- package/dist/components/arcgis-scene/customElement.js +19 -19
- package/dist/components/arcgis-search/customElement.d.ts +1 -2
- package/dist/components/arcgis-selection-list/customElement.js +1 -1
- package/dist/components/arcgis-sketch/customElement.d.ts +19 -10
- package/dist/components/arcgis-sketch/customElement.js +146 -178
- package/dist/components/arcgis-slice/customElement.js +24 -24
- package/dist/components/arcgis-slider-scale-range/customElement.d.ts +12 -4
- package/dist/components/arcgis-slider-scale-range/customElement.js +5 -5
- package/dist/components/arcgis-slider-scale-range/spriteSheetsUtils.d.ts +8 -3
- package/dist/components/arcgis-swipe/customElement.d.ts +10 -9
- package/dist/components/arcgis-swipe/customElement.js +246 -46
- package/dist/components/arcgis-swipe/types.d.ts +3 -0
- package/dist/components/arcgis-table-list-next/customElement.d.ts +1 -1
- package/dist/components/arcgis-time-bar/TimeBarViewModel.d.ts +2 -4
- package/dist/components/arcgis-time-bar/customElement.js +122 -120
- package/dist/components/arcgis-time-bar-date/customElement.js +10 -10
- package/dist/components/arcgis-time-bar-extent/customElement.js +9 -9
- package/dist/components/arcgis-time-bar-slider/customElement.js +49 -54
- package/dist/components/arcgis-track/customElement.d.ts +3 -3
- package/dist/components/arcgis-track/types.d.ts +1 -1
- package/dist/components/arcgis-utility-network-trace-aggregated-geometry-result-item/customElement.d.ts +100 -20
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.d.ts +9 -5
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +61 -68
- package/dist/components/arcgis-utility-network-trace-elements-result-item/customElement.d.ts +117 -29
- package/dist/components/arcgis-utility-network-trace-elements-result-item/customElement.js +10 -10
- package/dist/components/arcgis-utility-network-trace-functions-result-item/customElement.d.ts +56 -9
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.d.ts +26 -3
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +53 -50
- package/dist/components/arcgis-utility-network-trace-results/customElement.d.ts +237 -33
- package/dist/components/arcgis-utility-network-validate-network-topology/customElement.js +1 -1
- package/dist/components/arcgis-version-management/customElement.js +37 -37
- package/dist/components/arcgis-video/customElement.js +6 -6
- package/dist/components/arcgis-video-player/VideoPlayerViewModel.d.ts +2 -1
- package/dist/components/arcgis-video-player/customElement.d.ts +2 -6
- package/dist/components/arcgis-video-player/types.d.ts +6 -0
- package/dist/components/arcgis-volume-measurement/customElement.d.ts +30 -10
- package/dist/components/arcgis-volume-measurement/customElement.js +62 -62
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.css-custom-data.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 +16 -0
- package/dist/loader.js +8 -7
- package/dist/types/lumina.d.ts +14 -5
- package/dist/types/preact.d.ts +15 -5
- package/dist/types/react.d.ts +16 -5
- package/dist/types/stencil.d.ts +14 -5
- package/package.json +9 -9
- package/dist/cdn/2BGZVOT3.js +0 -2
- package/dist/cdn/2F4IGA4W.js +0 -2
- package/dist/cdn/2KPCMM7D.js +0 -2
- package/dist/cdn/2S7DLLA7.js +0 -2
- package/dist/cdn/2TY3T3GH.js +0 -2
- package/dist/cdn/2U3VASQT.js +0 -2
- package/dist/cdn/3N5MWYUQ.js +0 -2
- package/dist/cdn/3UMLR76Y.js +0 -4
- package/dist/cdn/3VCGDZEU.js +0 -2
- package/dist/cdn/4432P7Z5.js +0 -2
- package/dist/cdn/44CQCIZB.js +0 -2
- package/dist/cdn/4B2TLORL.js +0 -2
- package/dist/cdn/4IWYFG2G.js +0 -2
- package/dist/cdn/4KQA2GRX.js +0 -2
- package/dist/cdn/4O3HLHQQ.js +0 -2
- package/dist/cdn/4PI54LJH.js +0 -2
- package/dist/cdn/4WKWYFIH.js +0 -2
- package/dist/cdn/4XJ6RYYC.js +0 -2
- package/dist/cdn/4ZLIA5OM.js +0 -2
- package/dist/cdn/5AMF6NZN.js +0 -2
- package/dist/cdn/5ESNA4SF.js +0 -2
- package/dist/cdn/62IE7RFR.js +0 -2
- package/dist/cdn/67PT3A4A.js +0 -2
- package/dist/cdn/6A2OF3TO.js +0 -2
- package/dist/cdn/6QH2NH2Z.js +0 -2
- package/dist/cdn/6UYEO5Q7.js +0 -2
- package/dist/cdn/77U2VO5P.js +0 -2
- package/dist/cdn/7DFCYS72.js +0 -2
- package/dist/cdn/7FCZLFJD.js +0 -2
- package/dist/cdn/7FFBCPVE.js +0 -2
- package/dist/cdn/7TULU5QF.js +0 -2
- package/dist/cdn/7VDBR3SK.js +0 -2
- package/dist/cdn/7VJQVX42.js +0 -2
- package/dist/cdn/A3DPMZWE.js +0 -2
- package/dist/cdn/A4VK42OW.js +0 -2
- package/dist/cdn/A7RLC6ZT.js +0 -2
- package/dist/cdn/AL3PLZEE.js +0 -2
- package/dist/cdn/ALVAGE57.js +0 -2
- package/dist/cdn/AS4FG6IT.js +0 -2
- package/dist/cdn/BI2SI2HK.js +0 -2
- package/dist/cdn/BLOQ2AJ5.js +0 -2
- package/dist/cdn/BM4TS2RT.js +0 -2
- package/dist/cdn/BQGY4YCS.js +0 -2
- package/dist/cdn/BTVNXUZQ.js +0 -2
- package/dist/cdn/BVTEQMDF.js +0 -2
- package/dist/cdn/CBVICP6P.js +0 -2
- package/dist/cdn/CHL5VZJQ.js +0 -3
- package/dist/cdn/CNYZSE22.js +0 -2
- package/dist/cdn/COCGWEUR.js +0 -2
- package/dist/cdn/CP5JALYQ.js +0 -2
- package/dist/cdn/CPYVZPJ7.js +0 -2
- package/dist/cdn/CR6PVUCT.js +0 -2
- package/dist/cdn/DDSIQO4G.js +0 -2
- package/dist/cdn/DK7HXJSX.js +0 -2
- package/dist/cdn/DLWQZHNA.js +0 -2
- package/dist/cdn/DTORO2OE.js +0 -2
- package/dist/cdn/DYUCS5QP.js +0 -2
- package/dist/cdn/DYWCAORU.js +0 -2
- package/dist/cdn/E5L3MOIC.js +0 -2
- package/dist/cdn/EHEWQ23K.js +0 -2
- package/dist/cdn/EOAVDNBZ.js +0 -2
- package/dist/cdn/EPH5BN6X.js +0 -2
- package/dist/cdn/EZCHUWDK.js +0 -2
- package/dist/cdn/F34QQ4DO.js +0 -2
- package/dist/cdn/FDJGQHUA.js +0 -2
- package/dist/cdn/FF7BSRYW.js +0 -2
- package/dist/cdn/FIZMK7GS.js +0 -1
- package/dist/cdn/G26V76WA.js +0 -2
- package/dist/cdn/GCEBFEZ5.js +0 -2
- package/dist/cdn/GFNCEZSN.js +0 -2
- package/dist/cdn/GHVT7W4O.js +0 -2
- package/dist/cdn/GII4POXM.js +0 -2
- package/dist/cdn/GIIYVCKT.js +0 -2
- package/dist/cdn/GJKFDTVX.js +0 -2
- package/dist/cdn/GK47522P.js +0 -2
- package/dist/cdn/GS2HJTMU.js +0 -2
- package/dist/cdn/GUHSWQMF.js +0 -2
- package/dist/cdn/GUZYCRYS.js +0 -2
- package/dist/cdn/HDHWPKJ4.js +0 -2
- package/dist/cdn/HKLBQ7JD.js +0 -2
- package/dist/cdn/HQSY7TKA.js +0 -2
- package/dist/cdn/IDIAWXUO.js +0 -2
- package/dist/cdn/IFR4IYSI.js +0 -2
- package/dist/cdn/IITDAOGZ.js +0 -2
- package/dist/cdn/ILQDA7LL.js +0 -2
- package/dist/cdn/IQOQTYRR.js +0 -2
- package/dist/cdn/JBK5HTJ2.js +0 -2
- package/dist/cdn/JF7VJGL4.js +0 -2
- package/dist/cdn/K23R26AN.js +0 -2
- package/dist/cdn/K7ELALW4.js +0 -2
- package/dist/cdn/K7XSWKZ2.js +0 -2
- package/dist/cdn/KCLVDXWB.js +0 -2
- package/dist/cdn/KFTFKI6A.js +0 -2
- package/dist/cdn/KGUALNRF.js +0 -4
- package/dist/cdn/KLVBRTYU.js +0 -2
- package/dist/cdn/KPUEQZ7O.js +0 -2
- package/dist/cdn/KVYBIOH5.js +0 -2
- package/dist/cdn/L2F4HQYY.js +0 -2
- package/dist/cdn/L46JLXJT.js +0 -2
- package/dist/cdn/LC37F7HF.js +0 -2
- package/dist/cdn/LKAJVIS2.js +0 -2
- package/dist/cdn/M2LKA37F.js +0 -2
- package/dist/cdn/M42QFFPZ.js +0 -2
- package/dist/cdn/M5KYBYZT.js +0 -2
- package/dist/cdn/MA2GVVQJ.js +0 -2
- package/dist/cdn/MCMACXJV.js +0 -2
- package/dist/cdn/MDWBYUFG.js +0 -2
- package/dist/cdn/MFWSWLBW.js +0 -2
- package/dist/cdn/MMYODAC2.js +0 -2
- package/dist/cdn/MQYTZX24.js +0 -2
- package/dist/cdn/MUNSXJ5X.js +0 -2
- package/dist/cdn/MWIDHMQZ.js +0 -2
- package/dist/cdn/NFCFPU7K.js +0 -2
- package/dist/cdn/NJPPZJ3L.js +0 -2
- package/dist/cdn/NQOS7L2J.js +0 -2
- package/dist/cdn/NY7RHFLZ.js +0 -2
- package/dist/cdn/O5YJPUFM.js +0 -2
- package/dist/cdn/O6HYZKBU.js +0 -2
- package/dist/cdn/OPNJGHML.js +0 -2
- package/dist/cdn/OSDGWHZZ.js +0 -2
- package/dist/cdn/P3PXDT5V.js +0 -2
- package/dist/cdn/PBYHBRG7.js +0 -2
- package/dist/cdn/PDH2DA3L.js +0 -2
- package/dist/cdn/PGK2ZJCX.js +0 -2
- package/dist/cdn/PGSBUAGV.js +0 -2
- package/dist/cdn/PGXNWDD3.js +0 -2
- package/dist/cdn/PJ5OUPGO.js +0 -2
- package/dist/cdn/PMRI66RQ.js +0 -2
- package/dist/cdn/PZSKFFTG.js +0 -2
- package/dist/cdn/PZUVKZGQ.js +0 -2
- package/dist/cdn/QOIURU47.js +0 -2
- package/dist/cdn/QPSAD5DG.js +0 -2
- package/dist/cdn/QTB5YKHB.js +0 -2
- package/dist/cdn/QWIDIEXY.js +0 -2
- package/dist/cdn/R5QMO5FY.js +0 -2
- package/dist/cdn/R5TCWJ6V.js +0 -2
- package/dist/cdn/R5YW65AI.js +0 -2
- package/dist/cdn/R67ZOCIR.js +0 -2
- package/dist/cdn/RGTUSH6U.js +0 -2
- package/dist/cdn/RVEUCXT4.js +0 -2
- package/dist/cdn/RZGWZ2FJ.js +0 -2
- package/dist/cdn/S7ORGB5E.js +0 -2
- package/dist/cdn/SEY3WDK2.js +0 -2
- package/dist/cdn/SG55TVJ5.js +0 -2
- package/dist/cdn/SHU4AE2X.js +0 -2
- package/dist/cdn/SIZZ3BQA.js +0 -2
- package/dist/cdn/SK5CTCTZ.js +0 -2
- package/dist/cdn/SLAFIIZU.js +0 -2
- package/dist/cdn/SLSGW7B6.js +0 -2
- package/dist/cdn/SNNAV3AS.js +0 -2
- package/dist/cdn/SR4V2CUQ.js +0 -2
- package/dist/cdn/TA723HWT.js +0 -2
- package/dist/cdn/THJMCEEO.js +0 -2
- package/dist/cdn/TIBX6CCV.js +0 -2
- package/dist/cdn/TJQ3GP5V.js +0 -2
- package/dist/cdn/TO6SOEDF.js +0 -2
- package/dist/cdn/TPVHN6P2.js +0 -2
- package/dist/cdn/TSNUOFL7.js +0 -2
- package/dist/cdn/U5DIWFPP.js +0 -2
- package/dist/cdn/UTV2A7J4.js +0 -2
- package/dist/cdn/UUNHAVGJ.js +0 -2
- package/dist/cdn/VDKEQI3H.js +0 -2
- package/dist/cdn/VZ6UFS6H.js +0 -2
- package/dist/cdn/W6PA72LV.js +0 -2
- package/dist/cdn/WK4TNKKC.js +0 -2
- package/dist/cdn/WQI5PKS4.js +0 -2
- package/dist/cdn/WUTCKBNC.js +0 -2
- package/dist/cdn/X7BOBKIH.js +0 -2
- package/dist/cdn/XCTPKDKL.js +0 -2
- package/dist/cdn/XYF36P2O.js +0 -2
- package/dist/cdn/Y42K6IOP.js +0 -2
- package/dist/cdn/YCHVPSSP.js +0 -2
- package/dist/cdn/YFTQR2WS.js +0 -2
- package/dist/cdn/YTLRTUMD.js +0 -2
- package/dist/cdn/YZUSPKNF.js +0 -2
- package/dist/cdn/Z2ABUIL3.js +0 -2
- package/dist/cdn/Z3W7LQ5M.js +0 -2
- package/dist/cdn/Z7H4V2JZ.js +0 -2
- package/dist/cdn/ZF4DFDLT.js +0 -2
- package/dist/cdn/ZFO3PVZQ.js +0 -2
- package/dist/cdn/ZGOAZB5L.js +0 -2
- package/dist/cdn/ZKWI43WZ.js +0 -2
- /package/dist/cdn/{ND3V4Z4F.js → 33LESQ6T.js} +0 -0
package/dist/cdn/GFNCEZSN.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import i from"./NB7O2TXG.js";import{a as b}from"./PIDNZKSJ.js";import h from"./HU57LQOA.js";import g from"./RUYAWRPV.js";import"./WJQUE4DR.js";import f from"./BQBWXR6P.js";import{a as oe}from"./ZSPYPXBY.js";import e from"./ALVAGE57.js";import c from"./HPWF3IQV.js";import{h as se}from"./IFR4IYSI.js";import"./7VDBR3SK.js";import a from"./QPSAD5DG.js";import"./FIZMK7GS.js";import"./ZKWI43WZ.js";import{N as V,O as D,P as ee,R as te,S as N,U as ie,X as ae,a as Y,b as d,c as R,x as E}from"./3UMLR76Y.js";import"./TAVTDQ6S.js";export default $arcgis.t(([{property:r,subclass:F},Z,B,{getApplicationClipboard:Fe},Ce,j,{getFullTemplate:de,isSharedTemplate:pe,getCreationAttributes:_e,isSharedTemplateOrMetadata:ue},{createApplySetModifyItem:W,createApplySet:J,createFeatureStateProvider:Q,createApplySetAddItem:q,writeApplySetToService:xe},{whenOnce:ge,watch:X},{getRendererFields:he,getFeatureEditFields:Pe},$e,{substitute:y},{createGraphicsMover:Ae},,,,le,,{g:re,i:U},{a:ne,b:ce}])=>{var Ee=Y`.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__heading{word-break:break-word}.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{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))}.merge-feature-form{padding-left:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));padding-right:var(--arcgis-paste-blocks-padding, var(--calcite-spacing-md));padding-bottom: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 Ie(e,t={}){if(e?.type==="subtype-group"){if(!e.subtypeField)return[];let i=t[e.subtypeField];if(!ye(i))return[];let a=e.findSublayerForSubtypeCode(i);return a?a.renderer&&a.fieldsIndex?await he(a.renderer,e.fieldsIndex):[]:[]}return e?e.renderer&&e.fieldsIndex?await he(e.renderer,e.fieldsIndex):[]:[]}function ke(e,t,i,a,s,o){let l={...a},h=Se(o),p=Te(o),m="";(o.type==="subtype-group"||o.type==="subtype-sublayer")&&(m=o.subtypeField??"");let v=o.objectIdField??"";return e.forEach(u=>{if(u.name!==v&&!h.includes(u.name)&&!p.includes(u.name)&&!s.includes(u.name)&&u.type!=="global-id"&&(m===""||m!==u.name)){let w=Oe(u,t);w.match&&w.targetField&&(l[w.targetField?.name]=i[u.name])}}),l}function Se(e){return e&&"relationships"in e?(e.relationships??[]).filter(t=>t.role==="origin").map(t=>t.keyField):[]}function Te(e){return e?.type==="subtype-sublayer"&&(e=e.parent),e?Pe(e):[]}function He(e,t){if(e.type===t.type)return t.type==="string"?e.length<=t.length:!0;switch(e.type){case"small-integer":return["integer","big-integer"].includes(t.type);case"integer":return t.type==="big-integer";case"single":return t.type==="double";default:return!1}}function Oe(e,t){let i={match:!1,sourceField:null,targetField:null};for(let a of t)if(He(e,a)){let s=e.name.replace(/\s/gu,"").toLowerCase();if(a.name.replace(/\s/gu,"").toLowerCase()===s)return i.match=!0,i.sourceField=e,i.targetField=a,i}return i}async function ve(e,t,i,a){let s=!0,o={hasAsyncArcadeExpressions:!1},l=e.items.filter(h=>h.type==="add");for(let h of l){let p=h.graphic.clone(),m=Ge(h.graphic,h.layer);if(!m){s=!1;continue}let v=!await Le(t,h.graphic,m,i,o);if(o.hasAsyncArcadeExpressions&&l.length>a)return!1;let u=W({graphic:h.graphic,layer:h.layer,originalGraphic:p});if(e.push(u),!v)return!1}return s}function Ge(e,t){return t.type==="feature"||t.type==="subtype-sublayer"?t:t.findSublayerForFeature(e)||null}async function Le(e,t,i,a,s){let o=i.formTemplate,l=i.fields.filter(w=>{let z=t.attributes[w.name],Me=z===null||z===""||z===void 0;return w.editable&&!w.nullable&&Me});if(!o)return l.length!==0;let h=new Set;be(o.elements??[],h);let p=new Set;if(we(o.elements??[],p),h.size===0&&p.size===0)return l.length>0;let m=t.clone();m.layer=i,delete m.attributes[i.objectIdField],a.has(i)||a.set(i,new $e({map:e.map,editType:"INSERT"}));let v=a.get(i);if(v.features=new j([m]),await ge(()=>(v.status==="loaded"||v.status==="failed")&&!v.updating),v.hasAsyncArcadeExpressions&&(s.hasAsyncArcadeExpressions=!0),v.status==="failed")return!0;let u=v.getValues(m)??{};if(i.objectIdField&&u[i.objectIdField]!==void 0){let{[i.objectIdField]:w,...z}=u;u=z}return Object.keys(u).forEach(w=>{i.fieldsIndex.has(w)&&(t.attributes[w]=Ve(u[w],w,i.fieldsIndex))}),v.invalidFeatures.length>0}function we(e,t){for(let i of e)i.type==="group"?we(i.elements,t):i.type==="field"&&i.valueExpression&&t.add(i.fieldName)}function be(e,t){for(let i of e)i.type==="group"?be(i.elements,t):i.type==="field"&&i.requiredExpression&&t.add(i.fieldName)}function ye(e){return typeof e=="number"}function ze(e){return typeof e=="number"&&window.isFinite(e)&&Math.floor(e)===e}function Ve(e,t,i){if(e==null)return null;switch(i.get(t).type){case"big-integer":case"long":case"oid":case"integer":case"small-integer":return ze(e)?e:window.parseInt(e);case"single":case"double":return ye(e)?e:window.parseFloat(e);case"global-id":case"guid":return e===""?null:e;case"date":break;case"date-only":case"time-only":case"timestamp-offset":return e===""?null:e;case"string":return e===""?null:e}return e}function De(e){return e&&"layer"in e?e.layer:void 0}function I(e){if(!e)return null;let t=De(e.origin)??e.layer??e?.sourceLayer??null;if(t&&t.type==="subtype-sublayer")return t.parent;switch(t?.type){case"csv":case"feature":case"geojson":case"ogc-feature":case"subtype-group":case"wfs":return t;default:return null}}var Be=Object.defineProperty,je=Object.getOwnPropertyDescriptor,A=(e,t,i,a)=>{for(var s=a>1?void 0:a?je(t,i):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(s=(a?l(t,i,s):l(s))||s);return a&&s&&Be(t,i,s),s},fe={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"},g=class extends Z{constructor(e){super(e)}get mustShowOnCommandPage(){return!0}get icon(){}get id(){return""}label(e,t){return""}description(e,t){return""}get commandEnabled(){return!1}commandDisabledReason(e,t){return""}get immediate(){return!1}async initiate(e,t){}async execute(){throw new Error("arcgis-paste: Paste command does not support execute")}async runPasteCommand(e,t,i){try{this.viewModel.applying=!0;let a=await this.prepareCopy(t);if(!a||a.items.length===0){this.viewModel.lastPasteError={errorCode:"noPasteItems",errorMessage:"No items to paste",localizedErrorMessage:"noPasteItemsError"},e.onPasteError(this.viewModel.lastPasteError);return}let s=a.items.length>this.viewModel.maximumFeatureCount||this.viewModel.alwaysShowFeatureForm||i?.showFeatureForm===!0||!await ve(a,this.viewModel.view,this.viewModel.formViewModelMap,this.viewModel.maximumFeatureCountWithComplexForms);if(this.viewModel.alwaysShowFeatureForm||s||i?.showFeatureForm===!0)this.viewModel.bauActiveFeatureIndex=0,this.viewModel.bauApplySet=a,this.viewModel.activeCommand=t,this.viewModel.bauOriginalGraphics=a.items.map(o=>o.type==="add"?{layer:o.layer,graphic:o.graphic}:null).filter(o=>o!==null),this.viewModel.bauFeatures=new j,this.viewModel.activeFlowPage="form-page",await new Promise(o=>{setTimeout(o,100)}),this.viewModel.bauFeatures=new j(this.viewModel.bauOriginalGraphics.map(o=>{if(re(o.layer)){let l=o.layer.findSublayerForFeature(o.graphic);if(l)return o.graphic.layer=l,o.graphic}return o.graphic.layer=o.layer,o.graphic})),this.viewModel.updateIndividualMultiFeatureFormHighlight();else try{let o=await e.onApply({command:"paste",applySet:a});if(o.success){this.viewModel.resetHome(),this.viewModel.closeOnApply&&e.closeAfterApply();return}this.viewModel.handleApplyError(o,e.onPasteError)}catch(o){this.viewModel.lastPasteError={errorCode:"unexpectedError",errorMessage:o.message,localizedErrorMessage:"unexpectedError"},e.onPasteError(this.viewModel.lastPasteError);return}finally{a?.featureState?.clearAll()}}finally{this.viewModel.applying=!1}}async prepareCopy(e){let t=e==="paste"||e==="paste-as"&&this.viewModel.pasteWithAttributes||e==="paste-merge"&&this.viewModel.pasteWithAttributes,i=t&&e==="paste-merge"?this.viewModel.clipboard.items.getItemAt(this.viewModel.selectedClipboardItemIndex):null,a=J();if(a.featureState=Q(this.viewModel.view),e==="paste-merge"){let s=this.viewModel.pasteTemplate?.template?await de(this.viewModel.view,this.viewModel.pasteTemplate.template):null;if(!s)return null;let o=pe(this.viewModel.pasteTemplate.template)?s.layer:this.viewModel.pasteTemplate.layer,l=await this.createMergedClipboardGeom(),h=await this.constructFeatureAttributesCopy(s,o,i),p=new B({geometry:l,attributes:h});this.removeGraphicIdentifierFields(p,o),a.push(q({graphic:p,layer:o}))}else if(e==="paste")for(let s of this.viewModel.clipboardFeatures){let o=s.graphic.clone();this.removeGraphicIdentifierFields(o,s.layer),a.push(q({graphic:o,layer:s.layer}))}else if(e==="paste-as"){let s=this.viewModel.pasteTemplate?.template?await de(this.viewModel.view,this.viewModel.pasteTemplate.template):null;if(!s)return null;let o=pe(s)?s.layer:this.viewModel.pasteTemplate.layer;for(let l of this.viewModel.clipboardFeatures){let h=await this.constructFeatureAttributesCopy(s,o,t?l:null),p=new B({geometry:l.graphic?.geometry?.clone()??null,attributes:h});this.removeGraphicIdentifierFields(p,o),a.push(q({graphic:p,layer:o}))}}return a}async constructFeatureAttributesCopy(e,t,i){let a=_e(e,{});if(i){let s=i.layer?.fields;if(s){let o=t.fields,l=i.graphic.attributes??{},h=await Ie(t,a);a=ke(s,o,l,a,h,t)}}return a}async createMergedClipboardGeom(){let e=this.viewModel.clipboardFeatures.map(i=>i.graphic?.geometry).filter(i=>i!=null).toArray();if(e.length===0)return null;if(e.length===1)return e[0].clone();let{unionExecuteMany:t}=await $arcgis.t(m=>m[0],"geometry/operators/unionOperator");return t(e)??null}removeGraphicIdentifierFields(e,t){t.objectIdField&&delete e.attributes[t.objectIdField],t.globalIdField&&delete e.attributes[t.globalIdField]}};A([r()],g.prototype,"viewModel",2);A([r()],g.prototype,"mustShowOnCommandPage",1);A([r()],g.prototype,"icon",1);A([r()],g.prototype,"id",1);A([r()],g.prototype,"commandEnabled",1);A([r()],g.prototype,"commandDisabledReason",1);A([r()],g.prototype,"immediate",1);g=A([F("components.paste.commands.PasteCommand")],g);var We=Object.defineProperty,Re=Object.getOwnPropertyDescriptor,T=(e,t,i,a)=>{for(var s=a>1?void 0:a?Re(t,i):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(s=(a?l(t,i,s):l(s))||s);return a&&s&&We(t,i,s),s},C=class extends g{get id(){return"paste-append"}get icon(){return"reshape-add-geometry"}get immediate(){return!0}get mustShowOnCommandPage(){return!0}get commandEnabled(){return this.viewModel.clipboardFeatures.length>0&&this.viewModel.selectedFeature!==void 0&&this.viewModel.layerPermissionsCheck.canUpdate(I(this.viewModel.selectedFeature))&&this.viewModel.selectedFeature?.geometry!==null&&(this.viewModel.selectedFeature?.geometry?.type==="multipoint"||this.viewModel.selectedFeature?.geometry?.type==="polyline"||this.viewModel.selectedFeature?.geometry?.type==="polygon")&&this.viewModel.clipboard.singleGeometryType===this.viewModel.selectedFeature?.geometry?.type}async initiate(e){let t=null;try{this.viewModel.applying=!0;let i=await this.prepareAppend();if(i.applySet&&(t=i.applySet),!i.success){this.viewModel.lastPasteError={errorCode:i.failReason,errorMessage:fe[i.failReason],localizedErrorMessage:i.failReason},e.onPasteError(this.viewModel.lastPasteError);return}let a=await e.onApply({command:"paste-append",applySet:i.applySet});if(a.success){this.viewModel.resetHome(),this.viewModel.closeOnApply&&e.closeAfterApply();return}this.viewModel.handleApplyError(a,e.onPasteError)}catch(i){this.viewModel.lastPasteError={errorCode:"unexpectedError",errorMessage:i.message,localizedErrorMessage:"unexpectedError"},e.onPasteError(this.viewModel.lastPasteError);return}finally{this.viewModel.applying=!1,t&&(t.featureState?.clearAll(),t.featureState=null)}}async execute(){let e=await this.prepareAppend();if(!e.success)throw new Error(`arcgis-paste: Paste append failed. ${e.failReason}`);return{success:!0,userInputRequired:!1,applySet:e.applySet}}async prepareAppend(){let e=J();if(e.featureState=Q(this.viewModel.view),!this.viewModel.selectedFeature)return{success:!1,failReason:"noSelectedError"};let[{unionExecute:t},{equalsExecute:i}]=await Promise.all([$arcgis.t(m=>m[0],"geometry/operators/unionOperator"),$arcgis.t(m=>m[0],"geometry/operators/equalsOperator")]),a=this.viewModel.selectedFeature.geometry,s=!1;for(let l of this.viewModel.clipboardFeatures){let h=l?.graphic?.geometry??null;if(!h)continue;if(a===null){a=l?.graphic?.geometry??null,a&&(a=a.clone(),s=!0);continue}let p=t(a,h);i(a,p)||(a=p,s=!0)}if(!s)return{success:!1,failReason:"noChangeError"};let o=this.viewModel.selectedFeature.clone();return o.geometry=a,e.push(W({graphic:o,layer:I(this.viewModel.selectedFeature),originalGraphic:this.viewModel.selectedFeature})),{success:!0,applySet:e}}description(e,t){return e.pasteAppendDesc}label(e,t){return e.pasteAppendTitle}};T([r()],C.prototype,"id",1);T([r()],C.prototype,"icon",1);T([r()],C.prototype,"immediate",1);T([r()],C.prototype,"mustShowOnCommandPage",1);T([r()],C.prototype,"commandEnabled",1);C=T([F("components.paste.commands.PasteAppendCommand")],C);var Ne=Object.defineProperty,Ue=Object.getOwnPropertyDescriptor,H=(e,t,i,a)=>{for(var s=a>1?void 0:a?Ue(t,i):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(s=(a?l(t,i,s):l(s))||s);return a&&s&&Ne(t,i,s),s},_=class extends g{get id(){return"paste-subtract"}get icon(){return"reshape-subtract-geometry"}get immediate(){return!0}get mustShowOnCommandPage(){return!0}get commandEnabled(){return this.viewModel.clipboardFeatures.length>0&&this.viewModel.selectedFeature!==void 0&&this.viewModel.layerPermissionsCheck.canUpdate(I(this.viewModel.selectedFeature))&&this.viewModel.selectedFeature?.geometry!==null&&(this.viewModel.selectedFeature?.geometry?.type==="multipoint"||this.viewModel.selectedFeature?.geometry?.type==="polyline"||this.viewModel.selectedFeature?.geometry?.type==="polygon")&&(this.viewModel.clipboard.singleGeometryType===this.viewModel.selectedFeature?.geometry?.type||this.viewModel.clipboard.singleGeometryType==="polygon")}async prepareSubtract(){let e=J();if(e.featureState=Q(this.viewModel.view),!this.viewModel.selectedFeature)return{success:!1,failReason:"noSelectedError",applySet:e};let[{differenceExecute:t},{equalsExecute:i}]=await Promise.all([$arcgis.t(m=>m[0],"geometry/operators/differenceOperator"),$arcgis.t(m=>m[0],"geometry/operators/equalsOperator")]),a=this.viewModel.selectedFeature.geometry;if(!a)return{success:!1,failReason:"noGeometryError",applySet:e};let s=!1;for(let l of this.viewModel.clipboardFeatures){let h=l?.graphic?.geometry;if(!h)continue;let p=t(a,h);if(!p)return{success:!1,failReason:"deletesGeometryError",applySet:e};i(a,p)||(a=p,s=!0)}if(!s)return{success:!1,failReason:"noChangeError",applySet:e};let o=this.viewModel.selectedFeature.clone();return o.geometry=a,e.push(W({graphic:o,layer:I(this.viewModel.selectedFeature),originalGraphic:this.viewModel.selectedFeature})),{success:!0,applySet:e}}async execute(){let e=await this.prepareSubtract();if(!e.success)throw new Error(`arcgis-paste: Paste subtract failed. ${e.failReason}`);return{success:!0,userInputRequired:!1,applySet:e.applySet}}async initiate(e){let t=null;try{this.viewModel.applying=!0;let i=await this.prepareSubtract();if(i.applySet&&(t=i.applySet),!i.success){this.viewModel.lastPasteError={errorCode:i.failReason,errorMessage:fe[i.failReason],localizedErrorMessage:i.failReason},e.onPasteError(this.viewModel.lastPasteError);return}let a=await e.onApply({command:"paste-subtract",applySet:i.applySet});if(a.success){this.viewModel.resetHome(),this.viewModel.closeOnApply&&e.closeAfterApply();return}this.viewModel.handleApplyError(a,e.onPasteError)}catch(i){this.viewModel.lastPasteError={errorCode:"unexpectedError",errorMessage:i.message,localizedErrorMessage:"unexpectedError"},e.onPasteError(this.viewModel.lastPasteError);return}finally{this.viewModel.applying=!1,t&&(t.featureState?.clearAll(),t.featureState=null)}}description(e,t){return e.pasteSubtractDesc}label(e,t){return e.pasteSubtractTitle}};H([r()],_.prototype,"id",1);H([r()],_.prototype,"icon",1);H([r()],_.prototype,"immediate",1);H([r()],_.prototype,"mustShowOnCommandPage",1);H([r()],_.prototype,"commandEnabled",1);_=H([F("components.paste.commands.PasteSubtractCommand")],_);var qe=Object.defineProperty,Xe=Object.getOwnPropertyDescriptor,O=(e,t,i,a)=>{for(var s=a>1?void 0:a?Xe(t,i):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(s=(a?l(t,i,s):l(s))||s);return a&&s&&qe(t,i,s),s},x=class extends g{get id(){return"paste-as"}get icon(){return"templates"}get immediate(){return!1}get mustShowOnCommandPage(){return!1}get commandEnabled(){return(this.viewModel.clipboardFeatures.length===1||this.viewModel.clipboardFeatures.length>0&&this.viewModel.pasteWithMultipleFeaturesEnabled)&&this.viewModel.clipboard.singleGeometryType!==void 0}async initiate(e){this.viewModel.activeFlowPage="gallery-page",this.viewModel.activeCommand="paste-as"}description(e,t){return e.pasteAsDesc}label(e,t){return e.pasteAsTitle}};O([r()],x.prototype,"id",1);O([r()],x.prototype,"icon",1);O([r()],x.prototype,"immediate",1);O([r()],x.prototype,"mustShowOnCommandPage",1);O([r()],x.prototype,"commandEnabled",1);x=O([F("components.paste.commands.PasteAsCommand")],x);var Ke=Object.defineProperty,Ze=Object.getOwnPropertyDescriptor,G=(e,t,i,a)=>{for(var s=a>1?void 0:a?Ze(t,i):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(s=(a?l(t,i,s):l(s))||s);return a&&s&&Ke(t,i,s),s},P=class extends g{get id(){return"paste"}get icon(){return"duplicate"}get immediate(){return!0}get mustShowOnCommandPage(){return!0}get commandEnabled(){let e=this.viewModel.clipboardFeatures.length===1,t=this.viewModel.clipboardFeatures.length>0&&this.viewModel.clipboardItemLayers.length===1&&this.viewModel.pasteWithMultipleFeaturesEnabled,i=this.viewModel.clipboardFeatures.length>0&&this.viewModel.pasteWithMultipleFeaturesEnabled&&this.viewModel.pasteWithMultipleLayersEnabled;return this.viewModel.clipboardFeatures.length>0&&this.viewModel.canCreateOnAllLayers&&(e||t||i)}async initiate(e,t){await this.runPasteCommand(e,"paste",t)}async execute(){let e=await this.prepareCopy("paste");if(!e||e.items.length===0)throw new Error("arcgis-paste: No items to paste");return e.items.length>this.viewModel.maximumFeatureCount||!await ve(e,this.viewModel.view,this.viewModel.formViewModelMap,this.viewModel.maximumFeatureCountWithComplexForms)?{success:!1,userInputRequired:!0}:{success:!0,userInputRequired:!1,applySet:e}}description(e,t){return e.pasteDesc}label(e,t){return e.pasteTitle}};G([r()],P.prototype,"id",1);G([r()],P.prototype,"icon",1);G([r()],P.prototype,"immediate",1);G([r()],P.prototype,"mustShowOnCommandPage",1);G([r()],P.prototype,"commandEnabled",1);P=G([F("components.paste.commands.PasteSetCommand")],P);var Je=Object.defineProperty,Qe=Object.getOwnPropertyDescriptor,L=(e,t,i,a)=>{for(var s=a>1?void 0:a?Qe(t,i):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(s=(a?l(t,i,s):l(s))||s);return a&&s&&Je(t,i,s),s},$=class extends g{get id(){return"paste-merge"}get icon(){return"merge"}get immediate(){return!1}get mustShowOnCommandPage(){return!0}get commandEnabled(){return this.viewModel.clipboardFeatures.length>1&&this.viewModel.clipboard.singleGeometryType!==void 0}async initiate(e){this.viewModel.activeFlowPage="gallery-page",this.viewModel.activeCommand="paste-merge";for(let t=0;t<this.viewModel.clipboard.items.length;t++)if(this.viewModel.clipboard.items.getItemAt(t).type==="feature"){this.viewModel.selectedClipboardItemIndex=t;break}}description(e,t){return e.pasteMergeDesc}label(e,t){return e.pasteMergeTitle}};L([r()],$.prototype,"id",1);L([r()],$.prototype,"icon",1);L([r()],$.prototype,"immediate",1);L([r()],$.prototype,"mustShowOnCommandPage",1);L([r()],$.prototype,"commandEnabled",1);$=L([F("components.paste.commands.PasteMergeCommand")],$);var Ye=Object.defineProperty,et=Object.getOwnPropertyDescriptor,k=(e,t,i,a)=>{for(var s=a>1?void 0:a?et(t,i):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(s=(a?l(t,i,s):l(s))||s);return a&&s&&Ye(t,i,s),s},f=class extends g{constructor(e){super(e)}get id(){return this.customCommand.id}get icon(){return this.customCommand.icon}get immediate(){return!0}get mustShowOnCommandPage(){return!0}get commandEnabled(){return this.customCommand.commandEnabled(this.viewModel.clipboard,this.viewModel.selectedFeature)}async initiate(e){try{this.viewModel.applying=!0;let t=await e.onApply({command:this.id});if(t.success){this.viewModel.resetHome(),this.viewModel.closeOnApply&&e.closeAfterApply();return}this.viewModel.handleApplyError(t,e.onPasteError)}catch(t){this.viewModel.lastPasteError={errorCode:"unexpectedError",errorMessage:t.message,localizedErrorMessage:"unexpectedError"},e.onPasteError(this.viewModel.lastPasteError);return}finally{this.viewModel.applying=!1}}description(e,t){return this.customCommand.description(e,t)}label(e,t){return this.customCommand.label(e,t)}};k([r()],f.prototype,"customCommand",2);k([r()],f.prototype,"id",1);k([r()],f.prototype,"icon",1);k([r()],f.prototype,"immediate",1);k([r()],f.prototype,"mustShowOnCommandPage",1);k([r()],f.prototype,"commandEnabled",1);f=k([F("components.paste.commands.PasteCustomCommand")],f);var tt=Object.defineProperty,it=Object.getOwnPropertyDescriptor,c=(e,t,i,a)=>{for(var s=a>1?void 0:a?it(t,i):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(s=(a?l(t,i,s):l(s))||s);return a&&s&&tt(t,i,s),s};function me(e){return!ue(e)||e.type==="feature"}var n=class extends Z{constructor(e){super(e),this.customPasteCommands=new j,this.bauInvalidFeatures=[],this.bauFormValid=!0,this.bauFormUpdating=!1,this.bauActiveFeatureIndex=-1,this.bauHasTooManyFeatures=!1,this.bauHasTooManyComplexFeatures=!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.disableTemplatesMode="never",this._activeFlowPage="commands-page",this.showClipboardItems=!1,this.hideTooltips=!1,this.hideFooter=!1,this.hideFooterCancelButton=!1,this.hideHeaderCloseButton=!1,this.hideViewClipboard=!1,this.hideErrorNotice=!1,this.highlightGroup="temporary",this._hoverHighlightHandle=null,this.maximumFeatureCount=200,this.maximumFeatureCountWithComplexForms=50,this.layerPermissionsCheck={canCreate:t=>t?!!t.effectiveCapabilities?.operations.supportsAdd:!1,canUpdate:t=>{if(!t)return!1;let i=t.effectiveCapabilities,a=!!i?.operations.supportsUpdate,s=!!i?.editing.supportsGeometryUpdate&&a;return!t.isTable&&!s?!1:a}},this.applying=!1}get bauActiveGraphic(){return this.bauActiveFeatureIndex===-1?void 0:this.bauFeatures?.getItemAt(this.bauActiveFeatureIndex)}get hasTooManyPasteCreateFeatures(){return this.clipboardFeatures.length>this.maximumFeatureCount&&["paste","paste-as"].includes(this.activeCommand??"")}get bauActiveLayer(){if(this.bauActiveFeatureIndex!==-1&&this.bauFeatures)return I(this.bauFeatures.getItemAt(this.bauActiveFeatureIndex))??void 0}get pasteTemplateIsValid(){return this.pasteTemplate?this.pasteTemplate.layer?!!this.workingLayers.includes(this.pasteTemplate.layer.type==="subtype-sublayer"?this.pasteTemplate.layer.parent:this.pasteTemplate.layer):!1:!0}get clipboardAndTemplateSupportAttributes(){if(this.clipboardFeatures.length===0||!this.pasteTemplate?.layer)return!1;let e=this.pasteTemplate.template;if(!me(e))return!1;for(let t of this.clipboardFeatures){let i=t.layer;if(!i)return!1;let a=i.type==="subtype-sublayer"?i.parent:i;if(a.type==="subtype-group"){let s=a.fieldsIndex.get(a.subtypeField).name,o=e.prototype?.[s];if(o==null||o!==t.graphic.attributes[s])return!1}}return!0}get hasClipboardItemMatchingTemplate(){let e=this.pasteTemplate?.layer;if(!e||this.clipboardFeatures.length===0)return!1;let t=this.pasteTemplate.template;if(!me(t))return!1;for(let i of this.clipboardFeatures){let a=i.layer;if(!a)return!1;let s=a.type==="subtype-sublayer"?a.parent:a;if(e===a){if(s.type==="subtype-group"){let o=s.fieldsIndex.get(s.subtypeField).name,l=t.prototype?.[o];if(l==null||l!==i.graphic.attributes[o])continue}return!0}}return!1}get activeFlowPage(){return this._activeFlowPage}set activeFlowPage(e){e==="clipboard"&&this.beforeClipboard===void 0?this.beforeClipboard=this.activeFlowPage:e!=="clipboard"&&(this.beforeClipboard=void 0),e==="form-page"&&this.beforeForm===void 0?this.beforeForm=this.activeFlowPage:e!=="form-page"&&(this.beforeForm=void 0),this._activeFlowPage=e,this.checkAndSuspendMove()}get updating(){return this.applying}formFeatureValuesChanged(e,t){if(!t)return;let i=e.graphic.clone();for(let s of Object.keys(t))i.attributes[s]=t[s];let a=W({graphic:i,originalGraphic:e.graphic.clone(),layer:e.layer});this.bauApplySet?.push(a)}highlightSelectedGraphicOnMap(e){if(this.clearHighlightSelectedGraphic(),!e.graphic?.geometry||!this.view)return;let t=new B({geometry:e.graphic.geometry,symbol:ce(e.graphic.geometry.type)});this.view.graphics.add(t),this._hoverHighlightHandle={remove:()=>{this.view.graphics.remove(t)}}}clearHighlightSelectedGraphic(){this._hoverHighlightHandle?.remove(),this._hoverHighlightHandle=null}updateIndividualMultiFeatureFormHighlight(){if(this.activeFlowPage!=="form-page"){this.clearIndividualFeatureFormHighlight();return}if(this.view)if(this.bauActiveGraphic&&this.bauActiveLayer){if(this.bauIndividualHighlight?.graphic!==this.bauActiveGraphic&&this.clearIndividualFeatureFormHighlight(),!this.bauIndividualHighlight){let e=U(this.view,this.bauActiveLayer);if(!e)return;this.bauIndividualHighlight={graphic:this.bauActiveGraphic,handle:e.highlight(this.bauActiveGraphic,{name:this.highlightGroup})}}}else this.clearIndividualFeatureFormHighlight()}clearIndividualFeatureFormHighlight(){this.bauIndividualHighlight?.handle?.remove(),this.bauIndividualHighlight=void 0}highlightMultiFeatureFormFeature(e,t){this.bauHighlight&&this.clearMultiFeatureFormHighlights();let i=this.view?U(this.view,e.layer):void 0;i&&(this.bauHighlight=i.highlight(e,{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 Ce({listMode:"hide"}),this.view.map?.layers.add(this.clipboardGraphicsLayer));let e=this.clipboard.items;this.clipboardGraphicsLayer.removeAll();let t=-1;for(let i of e){if(t++,i.type!=="feature"||!i.graphic.geometry)continue;let a=new B({geometry:i.graphic.geometry.clone(),attributes:{clipboardIdx:t},symbol:ne(i.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 e=this.activeFlowPage==="form-page";this.clipboardGraphicsLayer&&(this.clipboardGraphicsLayer.visible=!e),this.clipboardMover&&(this.clipboardMover.suspended=e)}get clipboard(){return Fe()}get clipboardFeatures(){return this.clipboard.items.filter(e=>e.type==="feature")}get hasPasteCommandsPage(){return this.availableCommands.length>1||!!this.availableCommands.at(0)?.mustShowOnCommandPage}_clearActiveCommand(){this.activeCommand=void 0,this.lastPasteError=void 0}resetHome(){let e=this.activeFlowPage;this.hasPasteCommandsPage?(e="commands-page",this._clearActiveCommand(),this.selectedClipboardItemIndex=-1):this.clipboard.items.length===0?(e="clipboard-empty-page",this._clearActiveCommand(),this.selectedClipboardItemIndex=-1):this.availableCommands.length===0?(e="no-command-page",this._clearActiveCommand()):this.availableCommands[0].commandEnabled?(e="gallery-page",this.activeCommand=this.availableCommands[0].id,this.lastPasteError=void 0):(e="no-command-page",this._clearActiveCommand(),this.selectedClipboardItemIndex=-1),this.activeFlowPage==="clipboard"&&this.hideViewClipboard?(this.activeFlowPage=e,this.beforeClipboard=void 0):this.activeFlowPage==="clipboard"&&!this.hideViewClipboard?this.beforeClipboard=e:(this.activeFlowPage=e,this.beforeClipboard=void 0),this.resetFormPage()}get workingLayers(){return(this.view?.map?.allLayers?.toArray()??[]).filter(e=>e.type==="feature"||e.type==="subtype-group").filter(e=>{let t=this.clipboard.singleGeometryType;return this.activeCommand==="paste-merge"&&this.clipboard.singleGeometryType==="point"&&(t="multipoint"),!(e.geometryType!==t||!this.layerPermissionsCheck.canCreate(e))}).slice(0).reverse()}get clipboardItemLayers(){let e=new Set;for(let t of this.clipboard.items)t.layer&&e.add(t.layer.type==="subtype-sublayer"?t.layer.parent:t.layer);return[...e]}get canCreateOnAllLayers(){if(this.clipboardItemLayers.length===0)return!1;for(let e of this.clipboardItemLayers)if(!e||!this.layerPermissionsCheck.canCreate(e))return!1;return!0}get availableCommands(){let e=new Set(this.supportedCommands);return this.allCommands.filter(t=>e.has(t.id))}get allCommands(){let e=[];e.push(...[P,x,$,C,_].map(t=>new t({viewModel:this})));for(let t of this.customPasteCommands)e.push(new f({viewModel:this,customCommand:t}));return e}get pasteCommandsState(){return this.allCommands.map(e=>({id:e.id,disabled:!e.commandEnabled,available:this.supportedCommands.includes(e.id)}))}nextActiveFeature(){this.bauActiveFeatureIndex++,this.updateIndividualMultiFeatureFormHighlight()}previousActiveFeature(){this.bauActiveFeatureIndex--,this.updateIndividualMultiFeatureFormHighlight()}resetFormPage(){this.bauApplySet?.featureState?.clearAll(),this.bauApplySet=void 0,this.clearIndividualFeatureFormHighlight(),this.clearMultiFeatureFormHighlights(),this.bauFeatures=void 0,this.bauOriginalGraphics=[]}getPasteCommandById(e){return this.allCommands.find(t=>t.id===e)}async runPasteFormCommand(e){try{this.applying=!0;let t=this.bauApplySet,i=await e.onApply({command:this.activeCommand,applySet:t});if(i.success){this.resetHome(),this.closeOnApply&&e.closeAfterApply();return}this.handleApplyError(i,e.onPasteError)}catch(t){this.lastPasteError={errorCode:"unexpectedError",errorMessage:t.message,localizedErrorMessage:"unexpectedError"},e.onPasteError(this.lastPasteError);return}finally{this.applying=!1}}handleApplyError(e,t){e.success||e.errorCode!=="cancelled"&&(this.lastPasteError={errorCode:e.errorCode??"unexpectedError",errorMessage:e.errorMessage??"",localizedErrorMessage:e.errorMessage?void 0:"unexpectedError"},t(this.lastPasteError))}async writeChanges(e){return await xe(e,this.view)}};c([r()],n.prototype,"customPasteCommands",2);c([r()],n.prototype,"bauInvalidFeatures",2);c([r()],n.prototype,"bauFormValid",2);c([r()],n.prototype,"bauFormUpdating",2);c([r()],n.prototype,"bauActiveFeatureIndex",2);c([r()],n.prototype,"bauHasTooManyFeatures",2);c([r()],n.prototype,"bauHasTooManyComplexFeatures",2);c([r()],n.prototype,"bauActiveGraphic",1);c([r()],n.prototype,"hasTooManyPasteCreateFeatures",1);c([r()],n.prototype,"bauActiveLayer",1);c([r()],n.prototype,"bauFeatures",2);c([r()],n.prototype,"bauApplySet",2);c([r()],n.prototype,"bauOriginalGraphics",2);c([r()],n.prototype,"formViewModelMap",2);c([r()],n.prototype,"bauHighlight",2);c([r()],n.prototype,"bauIndividualHighlight",2);c([r()],n.prototype,"view",2);c([r()],n.prototype,"supportedCommands",2);c([r()],n.prototype,"selectedFeature",2);c([r()],n.prototype,"pasteWithMultipleLayersEnabled",2);c([r()],n.prototype,"pasteWithMultipleFeaturesEnabled",2);c([r()],n.prototype,"alwaysShowFeatureForm",2);c([r()],n.prototype,"pasteTemplate",2);c([r()],n.prototype,"pasteTemplateIsValid",1);c([r()],n.prototype,"selectedClipboardItemIndex",2);c([r()],n.prototype,"clipboardAndTemplateSupportAttributes",1);c([r()],n.prototype,"hasClipboardItemMatchingTemplate",1);c([r()],n.prototype,"pasteWithAttributes",2);c([r()],n.prototype,"closeOnApply",2);c([r()],n.prototype,"currentPasteOperation",2);c([r()],n.prototype,"disableTemplatesMode",2);c([r()],n.prototype,"activeFlowPage",1);c([r()],n.prototype,"_activeFlowPage",2);c([r()],n.prototype,"beforeClipboard",2);c([r()],n.prototype,"beforeForm",2);c([r()],n.prototype,"showClipboardItems",2);c([r()],n.prototype,"updating",1);c([r()],n.prototype,"hideTooltips",2);c([r()],n.prototype,"hideFooter",2);c([r()],n.prototype,"hideFooterCancelButton",2);c([r()],n.prototype,"hideHeaderCloseButton",2);c([r()],n.prototype,"hideViewClipboard",2);c([r()],n.prototype,"hideErrorNotice",2);c([r()],n.prototype,"clipboardGraphicsLayer",2);c([r()],n.prototype,"clipboardMover",2);c([r()],n.prototype,"highlightGroup",2);c([r()],n.prototype,"clipboard",1);c([r()],n.prototype,"clipboardFeatures",1);c([r()],n.prototype,"hasPasteCommandsPage",1);c([r()],n.prototype,"activeCommand",2);c([r()],n.prototype,"maximumFeatureCount",2);c([r()],n.prototype,"maximumFeatureCountWithComplexForms",2);c([r()],n.prototype,"workingLayers",1);c([r()],n.prototype,"layerPermissionsCheck",2);c([r()],n.prototype,"clipboardItemLayers",1);c([r()],n.prototype,"canCreateOnAllLayers",1);c([r()],n.prototype,"applying",2);c([r()],n.prototype,"lastPasteError",2);c([r()],n.prototype,"availableCommands",1);c([r()],n.prototype,"allCommands",1);c([r()],n.prototype,"pasteCommandsState",1);n=c([F("components.paste.PasteViewModel")],n);var at=Object.defineProperty,st=Object.getOwnPropertyDescriptor,S=(e,t,i,a)=>{for(var s=a>1?void 0:a?st(t,i):t,o=e.length-1,l;o>=0;o--)(l=e[o])&&(s=(a?l(t,i,s):l(s))||s);return a&&s&&at(t,i,s),s},M=class extends Z{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=Ae({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 e of this.graphicsLayer.graphics)this.clipboard.items.getItemAt(e.attributes.clipboardIdx).graphic.geometry=e.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(e){e!==this._suspended&&(e?(this._destroyMover(),this.stateChanged?.("suspended")):(this.start(),this.stateChanged?.("suspended")),this._suspended=e)}_destroyMover(){this._mover?.destroy(),this._mover=null}};S([r()],M.prototype,"view",2);S([r()],M.prototype,"continuous",2);S([r()],M.prototype,"clipboard",2);S([r()],M.prototype,"graphicsLayer",2);S([r()],M.prototype,"suspended",1);S([r()],M.prototype,"_suspended",2);M=S([F("components.paste.ClipboardMove")],M);var rt=le(n),K=class extends ee{constructor(){super(),this._featureFormElement=V(),this._floatingChoiceContainer=V(),this._bauForm=V(),this._templateGallery=V(),this._messages=oe(),this.viewModel=rt(this),this.hasPasteCommandsPage=this.viewModel.hasPasteCommandsPage,this.activeCommand=this.viewModel.activeCommand,this.availableCommands=this.viewModel.availableCommands,this._showFloatingChoice=!1,this.activeFlowPage=this.viewModel.activeFlowPage,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.hideFooter=this.viewModel.hideFooter,this.hideHeaderCloseButton=this.viewModel.hideHeaderCloseButton,this.hideTooltips=this.viewModel.hideTooltips,this.hideViewClipboard=this.viewModel.hideViewClipboard,this.maximumFeatureCount=this.viewModel.maximumFeatureCount,this.maximumFeatureCountWithComplexForms=this.viewModel.maximumFeatureCountWithComplexForms,this.layerPermissionsCheck=this.viewModel.layerPermissionsCheck,this.pasteCommandsState=this.viewModel.pasteCommandsState,this.disableTemplatesMode=this.viewModel.disableTemplatesMode,this.arcgisApplyPasteCommand=E(),this.arcgisApplyPasteError=E(),this.arcgisBeforeClipboardMove=E(),this.arcgisClipboardMoveStateChanged=E(),this.arcgisClose=E(),this.arcgisPropertyChange=se()("pasteCommandsState","activeFlowPage"),this.arcgisReady=E(),this.listenOn(window,"click",this._handleClickAway),this.listenOn(window,"keydown",this._handleKeyDown)}static{this.properties={hasPasteCommandsPage:16,activeCommand:16,availableCommands:16,_showFloatingChoice:16,activeFlowPage:32,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,hideFooter:5,hideHeaderCloseButton:5,hideTooltips:5,hideViewClipboard:5,maximumFeatureCount:9,maximumFeatureCountWithComplexForms:9,layerPermissionsCheck:0,pasteCommandsState:0,disableTemplatesMode:1}}static{this.styles=Ee}get supportedCommands(){return this.viewModel.supportedCommands}set supportedCommands(t){if(!Array.isArray(t)){this.viewModel.supportedCommands=t.split(",");return}this.viewModel.supportedCommands=t.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 executePasteCommand(t,i){let a=this.viewModel.getPasteCommandById(t);if(!a)throw new Error("arcgis-paste: Paste command not found");if(!a.commandEnabled)throw new Error("arcgis-paste: Paste command is not enabled");if(!i?.silent){if(!this.availableCommands.includes(a))throw new Error("arcgis-paste: Paste command is not available");return this.viewModel.resetHome(),await this._runPasteCommand(a,i),{userInputRequired:!1,success:!0}}return await a.execute()}async registerPasteCommand(t){this.viewModel.customPasteCommands.add(t)}async reset(){this.viewModel.activeFlowPage==="clipboard"&&(this.viewModel.activeFlowPage=this.viewModel.beforeClipboard),this.viewModel.resetHome()}async showClipboardItems(t){this.viewModel.showClipboardItems=t,this.viewModel.updateClipboardGraphicsLayer()}async startMoveClipboard(t){if(!this.viewModel.showClipboardItems)throw new Error("arcgis-paste: 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 M({view:this.view,continuous:t,clipboard:this.clipboard,graphicsLayer:this.viewModel.clipboardGraphicsLayer,stateChanged:i=>{i==="contents-moved"&&this.viewModel.updateClipboardGraphicsLayer(),this.arcgisClipboardMoveStateChanged.emit({change:i})}}),this.viewModel.clipboardMover.start())}async writeChanges(t){return await this.viewModel.writeChanges(t)}updated(){this._featureFormElement.value&&(this._featureFormElement.value.hideReadOnlyNotice=!0,this._featureFormElement.value.disabled=!0),this._checkAndUpdateInitialPasteTemplate()}loaded(){this.manager.onLifecycle(()=>[this.viewModel.clipboard.items.on("change",()=>{this.viewModel.updateClipboardGraphicsLayer(),this.activeFlowPage==="form-page"&&this.viewModel.resetHome()}),X(()=>this.clipboard.version,()=>{this.viewModel.resetHome(),this.viewModel.updateClipboardGraphicsLayer(),this.viewModel.clipboardMover?.clipboardContentsChanged()}),X(()=>this.closed,()=>{this.closed&&this.viewModel.formViewModelMap.clear(),this.viewModel.updateClipboardGraphicsLayer()}),X(()=>[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(t){this.viewModel.bauActiveFeatureIndex=t.activeFeatureIndex,this.viewModel.bauInvalidFeatures=t.invalidFeatures,this.viewModel.bauFormValid=t.valid,this.viewModel.bauFormUpdating=t.updating,this.viewModel.bauHasTooManyComplexFeatures=t.hasTooManyComplexFeatures,this.viewModel.bauHasTooManyFeatures=t.hasTooManyFeatures}_copyAcrossValidMultiFormFieldValues(){try{if(this._bauForm.value?.status!=="loaded")return;let t=this._bauForm.value,i=0;for(let a of this.viewModel.bauFeatures?.toArray()??[]){let s=this.viewModel.bauOriginalGraphics[i];this.viewModel.formFeatureValuesChanged(s,t.getValues(a)),i++}}catch{}}_handleClickAway(t){!this._showFloatingChoice||!this._floatingChoiceContainer.value||t.composedPath().find(i=>i===this._floatingChoiceContainer.value)||(this._showFloatingChoice=!1)}_handleKeyDown(t){!this._showFloatingChoice||!this._floatingChoiceContainer.value||t.composedPath().find(i=>i===this._floatingChoiceContainer.value)||(this._showFloatingChoice=!1)}async _runPasteCommand(t,i){try{this.viewModel.lastPasteError=void 0,await t.initiate({closeAfterApply:()=>{this._handleCloseAfterApply()},onPasteError:a=>{this.arcgisApplyPasteError.emit({command:t.id,errorMessage:a.errorMessage,errorCode:a.errorCode})},onApply:async a=>{try{await this.beforeApply?.();let s={...a};return this.arcgisApplyPasteCommand.emit(s).defaultPrevented?{success:!1,errorCode:"cancelled"}:s.completionCallback?await s.completionCallback??{success:!0}:{success:!0}}catch{return{success:!1}}}},i)}catch{}}_checkAndUpdateInitialPasteTemplate(){requestAnimationFrame(()=>{if(!this._templateGallery.value||this.viewModel.activeFlowPage!=="gallery-page")return;let t=this._templateGallery.value;if(this.viewModel.pasteTemplateIsValid||(this.viewModel.pasteTemplate=void 0),this.viewModel.pasteTemplate!==void 0){t.selectedTemplateId!==this.viewModel.pasteTemplate.id&&(t.selectedTemplateId=this.viewModel.pasteTemplate.id);return}if(t.effectiveTemplates?.length===0)return;let i=t.effectiveTemplates?.[0].templates[0];i&&(this.viewModel.pasteTemplate=i,t.selectedTemplateId=i.id)})}_renderFlowCommandStart(t){return t?d`<slot name=home-header-actions-start slot=header-actions-start></slot>`:null}_renderCloseCommand(t){return d`${this.hideHeaderCloseButton?null:d`<calcite-action slot=header-actions-end icon=x .text=${this._messages.close??""} @click=${()=>{this.reset(),this.closed=!0,this.arcgisClose.emit()}}></calcite-action>`}${t?d`<slot name=header-actions-end slot=header-actions-end></slot>`:null}`}_renderClipboardCommand(t){return d`<calcite-action slot=header-actions-end icon=clipboard .hidden=${this.viewModel.hideViewClipboard} .text=${this._messages.clipboardTooltip??""} .id=${`arcgis-clipboard-show-${t}`} .disabled=${this.viewModel.updating} @click=${()=>{this.viewModel.activeFlowPage="clipboard"}}>${this.hideTooltips?null:d`<calcite-tooltip .referenceElement=${`arcgis-clipboard-show-${t}`} placement=bottom><span>${this._messages.clipboardTooltip}</span></calcite-tooltip>`}</calcite-action>`}_renderNoClipboardData(t){return b("no-data",d`<calcite-flow-item .selected=${t} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${i=>{i.preventDefault()}}>${this._renderClipboardCommand("no-data")}${this._renderCloseCommand(t)}<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=${N({strokeWidth:"0.1px",fill:"var(--calcite-color-text-2)"})} viewBox="0 0 64 64">${R`<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(t){let i=this._messages.noPasteCommandsAvailable,a=this.availableCommands.at(0);return a?.commandDisabledReason&&(i=a.commandDisabledReason(this._messages,this._messages._lang),i||(i=this._messages.noPasteCommandsAvailable)),b("no-command",d`<calcite-flow-item .selected=${t} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${s=>{s.preventDefault()}}>${this._renderClipboardCommand("no-command")}${this._renderCloseCommand(t)}<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=${N({strokeWidth:"0.1px",fill:"var(--calcite-color-text-2)"})} viewBox="0 0 64 64">${R`<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">${i}</p></div></calcite-panel></calcite-flow-item>`)}_renderAttributeCheckbox(t){return d`<calcite-label class="bold">${this._messages.attributesSubtitle}</calcite-label><calcite-label layout=inline><calcite-checkbox .disabled=${t} .checked=${this.viewModel.pasteWithAttributes} @calciteCheckboxChange=${i=>{this.viewModel.pasteWithAttributes=i.target.checked}}></calcite-checkbox>${this._messages.pasteWithAttributesLabel}</calcite-label>`}_renderFlowPasteAs(t){return t?b("paste-gallery",d`<calcite-flow-item .selected=${t} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${i=>{i.preventDefault(),this.viewModel.hasPasteCommandsPage&&(this.viewModel.activeFlowPage="commands-page")}}>${this._renderFlowCommandStart(!this.viewModel.hasPasteCommandsPage)}${this._renderClipboardCommand("paste-as")}${this._renderCloseCommand(t)}<calcite-panel>${this.hideFooter?null:d`<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||this.viewModel.hasTooManyPasteCreateFeatures} kind=brand appearance=solid .width=${this.viewModel.hideFooterCancelButton?"full":"half"} @click=${()=>{try{this.viewModel.lastPasteError=void 0,this.viewModel.getPasteCommandById(this.viewModel.activeCommand).runPasteCommand({closeAfterApply:()=>{this._handleCloseAfterApply()},onPasteError:i=>{this.arcgisApplyPasteError.emit({command:this.activeCommand??"paste-as",errorMessage:i.errorMessage,errorCode:i.errorCode})},onApply:async i=>{try{await this.beforeApply?.();let a={...i};return this.arcgisApplyPasteCommand.emit(a).defaultPrevented?{success:!1,errorCode:"cancelled"}:a.completionCallback?await a.completionCallback??{success:!0}:{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>`}${this.viewModel.hasTooManyPasteCreateFeatures?d`<div class="pad-start-end gallery-content"><calcite-notice open icon=exclamation-point kind=warning><div slot=message>${y(this._messages.tooManyCreateFeatures??"",{num:this.maximumFeatureCount})}</div></calcite-notice></div>`:null}<slot name=gallery-page-message></slot><div class="pad-start-end gallery-content"><div>${!this.viewModel.clipboardAndTemplateSupportAttributes&&this.viewModel.pasteTemplate?d`<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?d`<calcite-link slot=link @click=${()=>{this.viewModel.activeFlowPage="merge-page"}} title=${this._messages.seeMergeOptions??ie}>${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.viewModel.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>${this.viewModel.workingLayers.length>0?d`<arcgis-feature-templates show-filter template-sort-by=system .disableTemplatesMode=${this.disableTemplatesMode} .applicationDisabledFunction=${i=>!!(i.template&&ue(i.template)&&i.template.type!=="feature")} class="paste-feature-templates" .layers=${this.viewModel.workingLayers} @arcgisTemplatesChanged=${()=>{this._checkAndUpdateInitialPasteTemplate()}} @arcgisSelectTemplate=${i=>{this.viewModel.pasteTemplate=i.detail.template}} .view=${this.viewModel.view} .referenceElement=${this.referenceElement} ${D(this._templateGallery)}></arcgis-feature-templates>`:d`<calcite-notice open icon=exclamation-point kind=warning><div slot=message>${y(this._messages.noMatchingEditableLayers??"",{num:this.maximumFeatureCount})}</div></calcite-notice>`}</div></div></calcite-panel>${this._renderApplying()}</calcite-flow-item>`):b("paste-gallery",d`<calcite-flow-item .selected=${t} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${i=>{i.preventDefault(),this.viewModel.hasPasteCommandsPage&&(this.viewModel.activeFlowPage="commands-page")}}>${this._renderFlowCommandStart(!this.viewModel.hasPasteCommandsPage)}</calcite-flow-item>`)}_renderFlowPasteMerge(t){if(!t)return b("paste-merge",d`<calcite-flow-item .selected=${t} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${a=>{a.preventDefault(),this.viewModel.activeFlowPage="gallery-page"}}></calcite-flow-item>`);let i=this.viewModel.selectedClipboardItemIndex===-1?null:this.viewModel.clipboard.items.getItemAt(this.viewModel.selectedClipboardItemIndex);return b("paste-merge",d`<calcite-flow-item .selected=${t} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${a=>{a.preventDefault(),this.viewModel.activeFlowPage="gallery-page"}}>${this._renderClipboardCommand("merge")}${this._renderCloseCommand(t)}<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=>d`<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?d`<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?d`<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?d`<div></div>`:d`<div class="merge-feature-form"><arcgis-feature-form heading-level=5 .feature=${i.graphic} .formTemplate=${i.layer.formTemplate?i.layer.formTemplate:null} .layer=${i.layer} ${D(this._featureFormElement)}></arcgis-feature-form></div>`}</div></div></calcite-panel>${this._renderApplying()}</calcite-flow-item>`)}_renderFlowPasteForm(t){if(!t)return b("paste-form",d`<calcite-flow-item .selected=${t} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${p=>{p.preventDefault(),this.viewModel.activeFlowPage=this.viewModel.beforeForm,this.viewModel.resetFormPage()}}></calcite-flow-item>`);let i=(this.viewModel.bauFeatures?.length??0)>1&&!this.viewModel.bauHasTooManyFeatures&&!this.viewModel.bauHasTooManyComplexFeatures,a=this.viewModel.updating,s=this.viewModel.bauActiveFeatureIndex>0,o=this.viewModel.bauActiveFeatureIndex!==-1&&this.viewModel.bauActiveFeatureIndex<(this.viewModel.bauFeatures?.length??0)-1,l=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 b("paste-form",d`<calcite-flow-item .selected=${t} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${p=>{p.preventDefault(),this.viewModel.activeFlowPage=this.viewModel.beforeForm,this.viewModel.resetFormPage()}}>${this._renderCloseCommand(t)}<calcite-panel>${this.hideFooter?null:d`<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||this.viewModel.bauHasTooManyFeatures||this.viewModel.bauHasTooManyComplexFeatures} kind=brand appearance=solid .width=${this.viewModel.hideFooterCancelButton?"full":"half"} @click=${async()=>{try{if(await ge(()=>!this.viewModel.bauFormUpdating),!this.viewModel.bauFormValid){this._bauForm.value?.goToFirstError();return}this._copyAcrossValidMultiFormFieldValues(),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 m={...p};return this.arcgisApplyPasteCommand.emit(m).defaultPrevented?{success:!1,errorCode:"cancelled"}:m.completionCallback?await m.completionCallback??{success:!0}:{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>`}${i?d`<calcite-action-bar overflow-mode=none slot=action-bar layout=horizontal scale=s expand-toggle-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">${l}${h?d`<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||!i} @click=${()=>{this.viewModel.previousActiveFeature()}}></calcite-action><calcite-action slot=actions-end icon=chevron-right icon-flip-rtl scale=s .text=${this._messages.next??""} .disabled=${!o||a||!i} @click=${()=>{this.viewModel.nextActiveFeature()}}></calcite-action></calcite-action-bar>${this._renderFloatingUIChoice(i)}`:""}<div class=${te(this.viewModel.bauHasTooManyComplexFeatures||this.viewModel.bauHasTooManyFeatures?"hidden":void 0)}>${this._renderPasteFormBreadcrumb()}<arcgis-multi-feature-form edit-type=INSERT submit-has-been-attempted .view=${this.view} .referenceElement=${this.referenceElement} .hidden=${this.viewModel.bauHasTooManyComplexFeatures||this.viewModel.bauHasTooManyFeatures} .disabled=${this.viewModel.updating} .maximumFeatureCount=${this.maximumFeatureCount} .maximumFeatureCountWithComplexForms=${this.maximumFeatureCountWithComplexForms} .features=${this.viewModel.bauFeatures} .activeFeatureIndex=${this.viewModel.bauActiveFeatureIndex} @arcgisPropertyChange=${p=>{this._updateBauViewModelFields(p.target),p.detail.name==="status"&&p.target.status==="loaded"&&this._copyAcrossValidMultiFormFieldValues()}} @arcgisValueChange=${p=>{let m=0;for(let v of this.viewModel.bauFeatures?.toArray()??[]){let u=this.viewModel.bauOriginalGraphics[m];this.viewModel.formFeatureValuesChanged(u,p.target.getValues(v)),m++}}} ${D(this._bauForm)}></arcgis-multi-feature-form></div>${this.viewModel.bauHasTooManyComplexFeatures||this.viewModel.bauHasTooManyFeatures?d`<div class="pad-start-end gallery-content"><calcite-notice open icon=exclamation-point kind=warning><div slot=message>${this.viewModel.bauHasTooManyFeatures?y(this._messages.tooManyCreateFeatures??"",{num:this.maximumFeatureCount}):y(this._messages.tooManyCreateComplexFeatures??"",{num:this.maximumFeatureCountWithComplexForms})}</div></calcite-notice></div>`:null}</calcite-panel>${this.renderPasteErrorFooter()}${this._renderApplying()}</calcite-flow-item>`)}_renderPasteFormBreadcrumb(){return d`<calcite-list .label=${this._messages.breadcrumb??""} selection-appearance=border scale=s selection-mode=none><calcite-list-item>${this.viewModel.bauActiveFeatureIndex===-1?d`<calcite-icon scale=s slot=content-start icon=group-form></calcite-icon>`:I(this.viewModel.bauActiveGraphic)?.isTable?d`<calcite-icon scale=s slot=content-start icon=table></calcite-icon>`:d`<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?d`<span slot=content>${y(this._messages.multipleFeaturesX??"",{total:this.viewModel.bauFeatures?.length??0})}</span>`:d`<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(t){if(!this._showFloatingChoice||!t)return d`<div></div>`;let i=!1;this.viewModel.bauInvalidFeatures.length>0&&(i=!0);let a=new Set(this.viewModel.bauInvalidFeatures);return d`<div class="choose-feature" slot=action-bar ${D(this._floatingChoiceContainer)}><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,o)=>d`<calcite-list-item .disabled=${this.viewModel.updating} @pointerenter=${l=>{this.viewModel.highlightMultiFeatureFormFeature(s,o)}} @pointerleave=${l=>{this.viewModel.clearMultiFeatureFormHighlights()}} .selected=${this.viewModel.bauActiveFeatureIndex===o} @calciteListItemSelect=${l=>{let h=window.parseInt(l.currentTarget.value);this.viewModel.bauActiveFeatureIndex=h,this.viewModel.updateIndividualMultiFeatureFormHighlight(),this.viewModel.clearMultiFeatureFormHighlights(),this._showFloatingChoice=!1}} .value=${o}><arcgis-feature-title is-new-feature slot=content .graphic=${s} .layer=${s.layer}></arcgis-feature-title>${I(s)?.isTable?d`<calcite-icon scale=s icon=table slot=content-start class="feature-choose-listitem"></calcite-icon>`:d`<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)&&i?d`<calcite-icon slot=content-end icon=exclamation-mark-triangle scale=s class="danger-icon-warning"></calcite-icon>`:""}</calcite-list-item>`)}</calcite-list></div>`}_renderClipboard(t){return t?b("paste-form",d`<calcite-flow-item .selected=${t} .heading=${this._messages.clipboardContents} @calciteFlowItemBack=${i=>{i.preventDefault(),this.viewModel.activeFlowPage=this.viewModel.beforeClipboard}}>${this._renderCloseCommand(t)}<calcite-panel><arcgis-clipboard .view=${this.view} .referenceElement=${this.referenceElement} .hideTooltips=${this.hideTooltips}></arcgis-clipboard></calcite-panel></calcite-flow-item>`):b("paste-form",d`<calcite-flow-item .selected=${t} .heading=${this._messages.clipboardContents} @calciteFlowItemBack=${i=>{i.preventDefault(),this.viewModel.activeFlowPage=this.viewModel.beforeClipboard}}></calcite-flow-item>`)}_renderPasteCommands(t){if(!t)return b("paste-commands",d`<calcite-flow-item .selected=${t} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${a=>{a.preventDefault(),this.viewModel.activeFlowPage="commands-page"}}>${this._renderFlowCommandStart(this.viewModel.hasPasteCommandsPage)}</calcite-flow-item>`);let i=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 b("paste-commands",d`<calcite-flow-item .selected=${t} .heading=${this._messages.componentLabel} @calciteFlowItemBack=${a=>{a.preventDefault(),this.viewModel.activeFlowPage="commands-page"}}>${this._renderFlowCommandStart(this.viewModel.hasPasteCommandsPage)}${this._renderClipboardCommand("commands")}${this._renderCloseCommand(t)}<calcite-panel><calcite-list .label=${this._messages.clipboardContents??""} selection-mode=none selection-appearance=border><calcite-list-item .description=${i}></calcite-list-item></calcite-list><slot name=commands-page-message></slot><div class="pad-contents"><calcite-list .label=${this._messages.pasteCommandChoices??""} selection-mode=none selection-appearance=border>${this.availableCommands.map(a=>d`<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()=>{await this._runPasteCommand(a)}}><calcite-icon slot=content-start .icon=${a.icon}></calcite-icon>${a.immediate?"":d`<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:d`<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?d`<calcite-scrim><calcite-loader scale=s .label=${this._messages.updating??""}></calcite-loader></calcite-scrim>`:""}render(){return this.activeFlowPage==="clipboard-empty-page"?d`<calcite-flow class="arcgis-paste" .hidden=${this.closed}>${this._renderNoClipboardData(this.activeFlowPage==="clipboard-empty-page")}</calcite-flow>`:this.activeFlowPage==="no-command-page"?d`<calcite-flow class="arcgis-paste" .hidden=${this.closed}>${this._renderNoCommandPage(this.activeFlowPage==="no-command-page")}</calcite-flow>`:d`<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==="form-page")}${this._renderClipboard(this.activeFlowPage==="clipboard")}</calcite-flow>`}};ae("arcgis-paste",K);return K},"core/accessorSupport/decorators","core/Accessor","Graphic","applications/Components/clipboard","layers/GraphicsLayer","core/Collection","applications/Components/templateUtils","applications/Components/applySetUtils","core/reactiveUtils","layers/support/fieldUtils","widgets/BatchAttributeForm/BatchAttributeFormViewModel","intl","applications/Components/editUtils",a,c,e,f,g,h,i)
|
package/dist/cdn/GHVT7W4O.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import a from"./LH2T4TMP.js";import"./GDLDEHUJ.js";import{a as h}from"./ZSPYPXBY.js";import"./IFR4IYSI.js";import"./7VDBR3SK.js";import"./FIZMK7GS.js";import"./ZKWI43WZ.js";import{P as o,X as m,a as r,b as i,x as d}from"./3UMLR76Y.js";import"./TAVTDQ6S.js";export default $arcgis.t(([{b:p}])=>{var $=r`.container{display:flex;flex-direction:column;gap:var(--calcite-space-sm)}`,n=class extends o{constructor(){super(...arguments),this._messages=h({name:"feature-form-next"}),this.formDisabled=!1,this.arcgisFilesSelect=d()}static{this.properties={_effectiveDisabled:16,input:0,attachment:0,formDisabled:5,messageOverrides:0}}static{this.styles=$}get _effectiveDisabled(){return this.formDisabled?!0:this.attachment?!this.input?.editable:this.input?.addDisabled!==!1}get _multipleEnabled(){if(this.attachment)return!1;if(!this.input)return!0;let{maxAttachmentCount:t,effectiveAttachmentCount:e}=this.input;return t==null?!0:e<t-1}_handleFilesSelect(t){t.stopPropagation(),this.arcgisFilesSelect.emit({files:t.detail.files})}render(){let{_effectiveDisabled:t,input:e,_multipleEnabled:f,attachment:a}=this;if(!e)return;let{units:l}=this._messages,s=this._messages.components?.attachments?.["add-attachment-view"],c=!!this.attachment,u=c&&a?i`<calcite-label>${s?.fileToBeReplaced}<calcite-card><div slot=heading>${a.name}</div><div slot=description>${l?.bytes?p(l,a.size):""}</div></calcite-card></calcite-label>`:void 0,g=c?"refresh":"upload",v=!c,b=e.isCaptureOnly?i`<calcite-notice data-testid=notice icon kind=warning open scale=s width=full><div slot=message>${s?.captureMethodNotSupported}</div></calcite-notice>`:i`<arcgis-file-picker data-testid=filepicker .disabled=${t} .fileTypeCategories=${e.categories} .heading=${a?s?.heading:void 0} .icon=${g} .multipleEnabled=${f} @arcgisFilesSelect=${this._handleFilesSelect}></arcgis-file-picker><arcgis-attachment-validation-view data-testid=validations .includeCountCriteria=${v} .input=${e}></arcgis-attachment-validation-view>${u}`;return i`<div class="container" data-testid=add-attachment-view-root>${b}</div>`}};m("arcgis-add-attachment-view",n);return n},a)
|
package/dist/cdn/GII4POXM.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{a as M}from"./ZIBQTNB6.js";import e from"./BQBWXR6P.js";import{a as $}from"./ZSPYPXBY.js";import{a as f}from"./L5IRXOCJ.js";import c from"./ALVAGE57.js";import b from"./HPWF3IQV.js";import{h as S}from"./IFR4IYSI.js";import"./7VDBR3SK.js";import a from"./QPSAD5DG.js";import"./FIZMK7GS.js";import{e as m}from"./ZKWI43WZ.js";import{P as z,R as p,S as u,U as g,X as R,a as k,b as d,x as B}from"./3UMLR76Y.js";import"./TAVTDQ6S.js";export default $arcgis.t(([{watch:E,whenOnce:C},{getBasemapThumbnailUrl:j},{basemapEnsureType:v,findSpatialReference:D,isProjectionEngineLoaded:V,projectionEngineCanBeSkipped:H,loadProjectionEngine:q},A,{property:c,subclass:I},,,,T])=>{var U=k`.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__heading{word-break:break-word}.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}.root{box-shadow:none;background-color:var(--calcite-color-transparent)}.root calcite-button{flex-direction:row;justify-content:center;align-items:center;width:69px;height:69px;display:flex;position:relative;overflow:visible}.container,.image{width:64px;height:64px;position:absolute;top:0;left:0;overflow:hidden}.container{box-shadow:0 1px 2px #0000004d}.image{background-color:var(--calcite-color-foreground-1);background-image:url("data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2064%2064'%3e%3cpath%20fill='%236E6E6E'%20d='M16%2016v32h32V16H16zm17.028%2011.947l.022.106c.175.863.272%201.67-.46%202.066-.52.28-.792.764-1.014%201.155-.28.497-.414.684-.715.684-.158%200-.283-.085-.486-.24-.25-.192-.558-.426-1.03-.426-.692%200-1.255.606-1.255%201.35%200%20.475-.422%201.353-1.022%201.353-.49%200-.652-.172-.763-.37-.296-.53-.665-1.193-1.51-1.193-.85%200-1.542.735-1.542%201.635%200%20.286.06.508.11.702.044.165.083.31.083.478%200%20.244-.102.428-.23.666-.152.278-.34.62-.34%201.09%200%20.613.563%201.113%201.255%201.113.393%200%20.654-.104.865-.186.195-.078.332-.125.56-.103.103.01.21.3.21.5%200%20.323-.274.598-.59.914-.514.512-1.22%201.212-.638%202.368.22.444.758.57%201.277.69.24.057.416.095.56.132%200%200%20.254.34.318.536a.616.616%200%2000.013.23.92.92%200%2001-.17.506c-.253.382-.548.597-.862.825-.623.458-1.14.536-1.156%201.47H18V18h21.48c.03.578-.903%201.22-.903%201.22l-.98.58c-1.054.672-2.254%201.703-2.254%202.56%200%20.377.15.646.27.86.1.177.157.283.157.417%200%20.19-.126.316-.41.56-.25.215-.534.453-.663.84a1.27%201.27%200%2000-.064.4c0%20.138.03.307.063.488.028.153.09.472.042.547%200%200-.054.04-.258.04l-.174-.006c-.37%200-.75.303-.98.582-.172.206-.363.528-.298.86zM46%2046h-9.23c-.207-1.22-1.35-1.258-2.168-1.556-.288-.107-.585-.213-.858-.353-.354-.184-.35-.585-.296-.89%200%200%20.102-.303.09-.37l.003-.002c-.006-.036-.013-.067-.013-.11%200-.23.213-.34.7-.574.507-.25%201.2-.577%201.2-1.39%200-.293-.13-.488-.216-.62-.053-.08-.07-.11-.07-.132%200-.172.068-.286.332-.524.283-.253.628-.6.628-1.19v-.93c0-.092.27-.195.605-.03.165.078.41.188.715.188.672%200%201.04-.494%201.3-.853.24-.332.33-.516.565-.48.235.042.15.05.324.41.12.25.26.538.52.763.454.397.98.528%201.506.57a6.126%206.126%200%20001.996.005l.168-.027a4.14%204.14%200%2001.98-.067s.09.022.14.006c.39.044.717.177.98.458l.1.248c.003.005-.003.01%200%20.015V46z'/%3e%3cpath%20clip-rule='evenodd'%20fill='none'%20d='M16%2016h32v32H16z'/%3e%3cpath%20fill='none'%20d='M0%200h64v64H0z'/%3e%3c/svg%3e");background-position:50%;background-repeat:no-repeat;background-size:cover}.image-loading{background-image:unset;justify-content:center;align-items:center;display:flex}.image-secondary{margin-top:5px;margin-left:5px;animation:2s ease-in-out esri-basemap-slide;box-shadow:0 1px 2px #0000004d}@media(prefers-reduced-motion){.image-secondary{animation-duration:0s;animation-name:none}.overlay{transition-duration:0s}}.overlay-scrim{--calcite-scrim-background: #00000080;color:var(--calcite-color-text-inverse)}.overlay{background-color:var(--calcite-color-transparent);justify-content:center;align-items:flex-end;width:100%;height:100%;transition:background-color .125s ease-in-out;display:flex;position:absolute}.overlay .root:hover{background-color:var(--calcite-color-background)}.title{text-align:center;background-color:var(--calcite-color-transparent-tint);flex:1 0 100%;height:auto;padding:.5em;font-size:var(--calcite-font-size-xs);font-weight:var(--calcite-font-weight-medium);line-height:var(--calcite-font-line-height-relative-tight)}.title-wrap{text-wrap:wrap}`,Z=Object.defineProperty,N=Object.getOwnPropertyDescriptor,l=(e,t,a,i)=>{for(var r=i>1?void 0:i?N(t,a):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(r=(i?o(t,a,r):o(r))||r);return i&&r&&Z(t,a,r),r},s=class extends A{constructor(e){super(e),this._loadingProjectionEngine=!1,this.nextBasemap=v("hybrid")}initialize(){E(()=>this.nextBasemap,e=>{e&&!e.loaded&&e.load().catch(()=>{})},{initial:!0})}destroy(){this.view=void 0}get _nextBasemapSpatialReferenceTask(){return D(this.view,this.nextBasemap)}get _viewSpatialReferenceLocked(){let{view:e}=this;return e&&"spatialReferenceLocked"in e?e.spatialReferenceLocked:!0}get activeBasemap(){return v(this.view?.map?.basemap??"topo-vector")}get nextBasemap(){return this._get("nextBasemap")}set nextBasemap(e){this._set("nextBasemap",v(e))}get state(){let{view:e}=this;if(!e?.ready||this._nextBasemapSpatialReferenceTask.updating)return"disabled";let{spatialReference:t}=this._nextBasemapSpatialReferenceTask;return this._viewSpatialReferenceLocked&&t!=null&&!e.spatialReference.equals(t)?"incompatible-next-basemap":this._loadingProjectionEngine?"loading":"ready"}async toggle(){let{activeBasemap:e,nextBasemap:t,state:a,view:i}=this;if(!i||a==="disabled"||a==="incompatible-next-basemap")return;let r=this._viewSpatialReferenceLocked;if(!r){if(await C(()=>!this._nextBasemapSpatialReferenceTask.updating),t!==this.nextBasemap||e!==this.activeBasemap)return;let{spatialReference:o}=this._nextBasemapSpatialReferenceTask;if(o!=null&&!i.spatialReference.equals(o)&&!V()&&!H(i.spatialReference,o)&&(this._loadingProjectionEngine=!0,await q(),this._loadingProjectionEngine=!1),t!==this.nextBasemap||e!==this.activeBasemap)return}let{map:n}=i;n&&(n.basemap=t,!r&&this._nextBasemapSpatialReferenceTask.spatialReference!=null&&!i.spatialReference.equals(this._nextBasemapSpatialReferenceTask.spatialReference)&&(i.spatialReference=this._nextBasemapSpatialReferenceTask.spatialReference),this.nextBasemap=e)}static getThumbnailUrl(e){return j(e)}};l([c()],s.prototype,"_loadingProjectionEngine",2);l([c({readOnly:!0})],s.prototype,"_nextBasemapSpatialReferenceTask",1);l([c({readOnly:!0})],s.prototype,"_viewSpatialReferenceLocked",1);l([c({readOnly:!0})],s.prototype,"activeBasemap",1);l([c()],s.prototype,"nextBasemap",1);l([c({readOnly:!0})],s.prototype,"state",1);l([c()],s.prototype,"view",2);l([c()],s.prototype,"toggle",1);s=l([I("components.basemap-toggle.BasemapToggleViewModel")],s);var G=T(s),b=class extends z{constructor(){super(...arguments),this.messages=$(),this.viewModel=G(this),this.view=this.viewModel.view,this.activeBasemap=this.viewModel.activeBasemap,this.autoDestroyDisabled=!1,this.icon="layer-basemap",this.nextBasemap=this.viewModel.nextBasemap,this.showTitle=!1,this.state=this.viewModel.state,this.arcgisPropertyChange=S()("activeBasemap","nextBasemap","state"),this.arcgisReady=B()}static{this.properties={_basemapSelectedMessage:16,view:0,activeBasemap:32,autoDestroyDisabled:5,icon:1,label:1,messageOverrides:0,nextBasemap:1,referenceElement:1,showTitle:5,state:32}}static{this.styles=[U,M]}async destroy(){await this.manager.destroy()}async toggle(){return await this.viewModel.toggle()}loaded(){this.manager.onLifecycle(()=>[E(()=>this.activeBasemap?.title,(t,a)=>{!t||!a||(this._basemapSelectedMessage=t?this.messages.basemapSelected?.replace("{activeBasemap.title}",t):void 0)})])}_getThumbnailStyles(t){let a=j(t);return a?{backgroundImage:`url(${a})`}:{backgroundImage:""}}render(){let t=this.viewModel,a=t.state==="disabled"?null:t.activeBasemap,i=t.state==="disabled"?null:t.nextBasemap,r=t.state==="loading",n=t.state==="incompatible-next-basemap",o=i?.title??"",_=i&&i.loadStatus!=="loaded",w,x=this.showTitle&&o,y=n,P=x||y,L=this._getThumbnailStyles(a),O=this._getThumbnailStyles(i);P&&(w=d`<div class="overlay">${x?d`<span class=${p(m("title","title-wrap"))} title=${o??g}>${o}</span>`:null}${y?d`<calcite-scrim class="overlay-scrim" title=${this.messages.incompatibleSpatialReference??g}><calcite-icon icon=exclamation-mark-triangle></calcite-icon></calcite-scrim>`:null}</div>`);let h=this.label??this.messages.componentLabel;return d`<div class=${p(m("root",f.widget))}>${this._basemapSelectedMessage?d`<div class="sr-only" aria-live=polite>${this._basemapSelectedMessage}</div>`:null}<calcite-button appearance=transparent data-basemap-id=${(i?i.id:"")??g} .disabled=${n} kind=neutral .label=${h} @click=${()=>{this.toggle()}} title=${h??g}><span class="sr-only">${h}</span><div class=${p(m("container","image-secondary"))}><div class="image" style=${u(L)}></div></div><div class="container"><div class=${p(m("image",_?"image-loading":null))} style=${u(O)}>${_||r?d`<calcite-scrim><span aria-hidden=true class=${p(f.loaderAnimation)} role=presentation></span></calcite-scrim>`:null}</div>${w}</div></calcite-button></div>`}};R("arcgis-basemap-toggle",b);return b},"core/reactiveUtils","applications/Components/basemapUtils","applications/Components/basemapToggleUtils","core/Accessor","core/accessorSupport/decorators",a,b,c,e)
|
package/dist/cdn/GIIYVCKT.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import f from"./OAYNZFL2.js";import e from"./ALVAGE57.js";import b from"./HPWF3IQV.js";import"./IFR4IYSI.js";import"./7VDBR3SK.js";import a from"./QPSAD5DG.js";import"./FIZMK7GS.js";import"./ZKWI43WZ.js";import{P as d,X as g,a as n,t as c,x as l}from"./3UMLR76Y.js";import"./TAVTDQ6S.js";export default $arcgis.t(([p,,,,h])=>{var m=n`@keyframes esri-basemap-slide{0%{opacity:0;margin-top:0;margin-left:0}75%{opacity:0;margin-top:0;margin-left:0}to{opacity:1;margin-top:5px;margin-left:5px}}@keyframes esri-docking-animation{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes popup-intro-animation-down{0%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes popup-intro-animation-up{0%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@supports (-ms-ime-align: auto){.esri-slider__anchor:focus{outline:1px dotted #000}}@keyframes esri-spinner--start-animation{0%{opacity:0;transform:scale(0)}to{opacity:1;transform:scale(1)}}@keyframes esri-spinner--finish-animation{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(0)}}@keyframes esri-spinner--rotate-animation{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@media(prefers-reduced-motion){.esri-utility-network-trace__reset-prompt{animation:none!important}}@media(prefers-reduced-motion){.esri-popup--aligned-top-center,.esri-popup--aligned-top-left,.esri-popup--aligned-top-right,.esri-popup--aligned-bottom-center,.esri-popup--aligned-bottom-left,.esri-popup--aligned-bottom-right,.esri-popup--is-docked{animation:none!important}}@media(prefers-reduced-motion:reduce){.esri-fov-overlay{animation:none!important}}@keyframes esri-fade-in-down{0%{opacity:0;transform:translateY(-5px)}25%{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in-up{0%{opacity:0;transform:translateY(5px)}25%{opacity:0;transform:translateY(5px)}to{opacity:1;transform:translate(0)}}@keyframes esri-fade-in{0%{opacity:0}25%{opacity:0}to{opacity:1}}@keyframes esri-fade-in-scale{0%{opacity:0;transform:scale(.95)}to{opacity:1;transform:scale(1)}}@keyframes looping-progresss-bar-ani{0%{width:0;left:0}20%{width:20%;left:0}80%{width:20%;left:80%}to{width:0;left:100%}}@keyframes esri-rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes panel-advance{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-advance--rtl{0%{opacity:0;transform:translate(-50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}@keyframes panel-retreat--rtl{0%{opacity:0;transform:translate(50px) scale(.99)}to{opacity:1;transform:translate(0) scale(1)}}.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__heading{word-break:break-word}.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}.esri-utility-network-association-list__feature-observer{z-index:2;text-align:center;position:relative;bottom:20px}.esri-utility-network-association-list__filter-container{z-index:1;margin-bottom:var(--calcite-spacing-md);top:var(--calcite-spacing-md)}.esri-utility-network-association-list__limit-notice-container{margin-bottom:var(--calcite-spacing-md)}.esri-utility-network-association-list__loading-container{justify-content:center;width:100%;padding:var(--calcite-spacing-md) 0;display:flex}.esri-un-associations__action{height:48px}.esri-un-associations__action-refresh{--calcite-color-icon-color: var(--calcite-color-brand)}.esri-un-associations__block-content{border-bottom:none;margin:0}.esri-un-associations__block-section-settings{border-style:none;padding:0}.esri-un-associations__combobox,.esri-un-associations__combobox-item{max-width:300px}.esri-un-associations__div-controls-main{background:var(--calcite-color-foreground-1);gap:.5rem;padding:.5rem 0;display:grid}.esri-un-associations__div-controls-symbol-picker{margin-top:.75rem}.esri-un-associations__dropdown{border:1px solid var(--calcite-color-border-input)}.esri-un-associations__dropdown-item-line-cap{background-position:50%;background-repeat:no-repeat;height:10px}.esri-un-associations__dropdown-item-line-pattern{height:3px}.esri-un-associations__dropdown-selected-item-line-cap{background-position:50%;background-repeat:no-repeat;background-size:275px 10px;width:100%;height:10px}.esri-un-associations__dropdown-selected-item-line-pattern{width:100%;height:3px}.esri-un-associations__dropdown-trigger{align-items:center;width:100%;height:24px;margin:0 6px;display:flex}.esri-un-associations__label{height:1rem}.esri-un-associations__label-and-combobox,.esri-un-associations__label-and-slider{flex-direction:column;display:flex}.esri-un-associations__label-and-toggle{width:inherit;flex-direction:row;justify-content:space-between;padding-right:.25rem;display:flex}.esri-un-associations__panel{max-height:calc(100vh - 48px - .5rem)}.esri-un-associations__slider{padding:0 .5rem}.esri-un-associations__status-icon-container{width:48px;height:48px}.esri-un-associations__status-icon-warning{--calcite-color-icon-color: var(--calcite-color-status-warning);padding:16px}.esri-un-associations__switch{align-self:center;padding:.5rem}.esri-un-associations__switch-container{width:48px;height:48px;display:flex}.esri-un-associations__widget-container{border-bottom:none;width:350px;margin:0}`,u=h(p),a=class extends d{constructor(){super(...arguments),this.widget=u(this),this.viewModel=this.widget.viewModel,this.view=this.widget.view,this.autoDestroyDisabled=!1,this.autoRefreshAssociationsDisabled=this.widget.autoRefreshAssociations,this.connectivityAssociationsLineSymbol=this.widget.connectivityAssociationsLineSymbol,this.includeConnectivityAssociationsDisabled=this.widget.includeConnectivityAssociations,this.includeStructuralAttachmentAssociationsDisabled=this.widget.includeStructuralAttachmentAssociations,this.maxAllowableAssociations=this.widget.maxAllowableAssociations,this.maxAllowableAssociationsSliderMax=this.widget.maxAllowableAssociationsSliderMax,this.maxAllowableAssociationsSliderMin=this.widget.maxAllowableAssociationsSliderMin,this.maxAllowableAssociationsSliderStep=this.widget.maxAllowableAssociationsSliderStep,this.showArrowsConnectivity=this.widget.showArrowsConnectivity,this.showArrowsStructuralAttachment=this.widget.showArrowsStructuralAttachment,this.showAssociationsEnabled=this.widget.showAssociationsEnabled,this.structuralAttachmentAssociationsLineSymbol=this.widget.structuralAttachmentAssociationsLineSymbol,this.utilityNetwork=this.widget.utilityNetwork,this.showConnectivityAssociationsSettingsArrowsToggle=this.widget.visibleElements.connectivityAssociationsSettings.arrowsToggle,this.showConnectivityAssociationsSettingsCapSelect=this.widget.visibleElements.connectivityAssociationsSettings.capSelect,this.hideConnectivityAssociationsSettingsColorPicker=this.widget.visibleElements.connectivityAssociationsSettings.colorPicker,this.hideConnectivityAssociationsSettingsStylePicker=this.widget.visibleElements.connectivityAssociationsSettings.stylePicker,this.hideConnectivityAssociationsSettingsWidthInput=this.widget.visibleElements.connectivityAssociationsSettings.widthInput,this.showMaxAllowableAssociationsSlider=this.widget.visibleElements.maxAllowableAssociationsSlider,this.showStructuralAttachmentAssociationsSettingsArrowsToggle=this.widget.visibleElements.structuralAttachmentAssociationsSettings.arrowsToggle,this.showStructuralAttachmentAssociationsSettingsCapSelect=this.widget.visibleElements.structuralAttachmentAssociationsSettings.capSelect,this.hideStructuralAttachmentAssociationsSettingsColorPicker=this.widget.visibleElements.structuralAttachmentAssociationsSettings.colorPicker,this.hideStructuralAttachmentAssociationsSettingsStylePicker=this.widget.visibleElements.structuralAttachmentAssociationsSettings.stylePicker,this.hideStructuralAttachmentAssociationsSettingsWidthInput=this.widget.visibleElements.structuralAttachmentAssociationsSettings.widthInput,this.icon=this.widget.icon,this.label=this.widget.label,this.arcgisReady=l()}static{this.properties={view:0,autoDestroyDisabled:5,autoRefreshAssociationsDisabled:5,connectivityAssociationsLineSymbol:0,includeConnectivityAssociationsDisabled:5,includeStructuralAttachmentAssociationsDisabled:5,maxAllowableAssociations:9,maxAllowableAssociationsSliderMax:9,maxAllowableAssociationsSliderMin:9,maxAllowableAssociationsSliderStep:9,referenceElement:1,showArrowsConnectivity:5,showArrowsStructuralAttachment:5,showAssociationsEnabled:5,structuralAttachmentAssociationsLineSymbol:0,utilityNetwork:0,showConnectivityAssociationsSettingsArrowsToggle:5,showConnectivityAssociationsSettingsCapSelect:5,hideConnectivityAssociationsSettingsColorPicker:5,hideConnectivityAssociationsSettingsStylePicker:5,hideConnectivityAssociationsSettingsWidthInput:5,showMaxAllowableAssociationsSlider:5,showStructuralAttachmentAssociationsSettingsArrowsToggle:5,showStructuralAttachmentAssociationsSettingsCapSelect:5,hideStructuralAttachmentAssociationsSettingsColorPicker:5,hideStructuralAttachmentAssociationsSettingsStylePicker:5,hideStructuralAttachmentAssociationsSettingsWidthInput:5,icon:1,label:1}}static{this.styles=m}async destroy(){await this.manager.destroy()}async load(){if(this.el.view?.map&&this.el.view.map.portalItem){await this.el.view.map.load();let t=this.el.view.map.utilityNetworks?.getItemAt(0);await t?.load(),this.utilityNetwork=t}}willUpdate(t){this._handleVisibilityChange(t,"ConnectivityAssociationsSettingsArrowsToggle"),this._handleVisibilityChange(t,"ConnectivityAssociationsSettingsCapSelect"),this._handleVisibilityChange(t,"ConnectivityAssociationsSettingsColorPicker"),this._handleVisibilityChange(t,"ConnectivityAssociationsSettingsStylePicker"),this._handleVisibilityChange(t,"ConnectivityAssociationsSettingsWidthInput"),this._handleVisibilityChange(t,"MaxAllowableAssociationsSlider"),this._handleVisibilityChange(t,"StructuralAttachmentAssociationsSettingsArrowsToggle"),this._handleVisibilityChange(t,"StructuralAttachmentAssociationsSettingsCapSelect"),this._handleVisibilityChange(t,"StructuralAttachmentAssociationsSettingsStylePicker"),this._handleVisibilityChange(t,"StructuralAttachmentAssociationsSettingsWidthInput")}_handleVisibilityChange(t,r){let e=`show${r}`,s=`hide${r}`,o=`visibleElements${r}`,i=this;t.has(e)?i[o]=!!i[e]:t.has(s)?i[o]=!i[s]:t.has(o)&&(c(this,o,e in i?e:s),e in i?i[e]=!!i[o]:s in i&&(i[s]=!i[o]))}};g("arcgis-utility-network-associations",a);return a},"widgets/UtilityNetworkAssociations",a,b,e,f)
|
package/dist/cdn/GJKFDTVX.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import b from"./4XERPOOU.js";import a from"./SZ3T7YEB.js";import{P,R as k,S as g,X as A,a as N,b as v}from"./3UMLR76Y.js";import"./TAVTDQ6S.js";export default $arcgis.t(([,{c:C,e:I,f:R}])=>{var B=N`.size-ramp-container{display:flex;align-items:center;justify-content:center}.size-ramp-vertical-container{display:flex;flex-direction:column;align-items:center;justify-content:center}.size-ramp-label{margin:0 .5em;white-space:nowrap}.size-ramp-vertical-ramp{display:flex;flex-direction:column;align-items:center}.size-ramp-ramp{display:flex;flex-direction:row-reverse;align-items:center}.size-ramp-preview{display:flex}`,O="#ddd";function X(e){if(!e)return;if(e.type.includes("3d")){if(!("symbolLayers"in e)||!e.symbolLayers?.length)return;let s=e.symbolLayers.at(-1),i=s&&"resource"in s?s.resource?.primitive:void 0;return i==="circle"||i==="cross"||i==="kite"||i==="sphere"||i==="cube"||i==="diamond"}let n="style"in e?e.style:void 0;return n==="circle"||n==="diamond"||n==="cross"}function Y(e){if(e){if(e.type.includes("3d")){if(!("symbolLayers"in e)||!e.symbolLayers?.length)return;let n=e.symbolLayers.at(-1),s=n&&"resource"in n?n.resource?.primitive:void 0;return s==="triangle"||s==="cone"||s==="tetrahedron"}return"style"in e&&e.style==="triangle"}}var j=class extends P{constructor(){super(...arguments),this.hasIndicators=!1,this.legendElement=null,this.opacity=1}static{this.properties={hasIndicators:5,legendElement:0,opacity:9,messages:0}}static{this.styles=B}render(){if(this.legendElement.theme==="spike")return v`<div style=${g({display:"flex",flex:"1",justifyContent:"center"})}><arcgis-legend-spike-ramp .legendElement=${this.legendElement} .messages=${this.messages}></arcgis-legend-spike-ramp></div>`;let{legendElement:n,hasIndicators:s,opacity:i}=this,o=n.infos,d=o.at(0),m=o.at(-1);if(!d||!m)return null;let{label:y,...z}=d,{label:f,...x}=m,r=z.preview,t=x.preview;if(!r||!t)return null;r=r.cloneNode(!0),r.style.display="flex",R(r,I(this.messages,y)),t=t.cloneNode(!0),t.style.display="flex",R(t,I(this.messages,f));let l={opacity:`${i??""}`};return v`<div class=${k(s?"size-ramp-vertical-container":"size-ramp-container")}><div class="size-ramp-label">${s?y:f}</div><div class=${k(s?"size-ramp-vertical-ramp":"size-ramp-ramp")}><div class="size-ramp-preview" style=${g(l)}>${r}</div>${this._renderSizeRampLines(n)}<div class="size-ramp-preview" style=${g(l)}>${t}</div></div><div class="size-ramp-label">${s?f:y}</div></div>`}_renderSizeRampLines(n){let s=n.infos,i=s.at(0),o=s.at(-1);if(!i||!o)return null;let d=i.symbol,m=this.hasIndicators,y=i.size&&typeof i.size=="number"?i.size:0,z=o.size&&typeof o.size=="number"?o.size:0,f=i.outlineSize||0,x=o.outlineSize||0,r=C(y+f),t=C(z+x),l=m?r:r+50,p=m?r/2+50:r,u=Y(d),h=X(d),c=document.createElement("canvas");c.width=l,c.height=p,c.style.width=`${c.width}px`,c.style.height=`${c.height}px`;let a=c.getContext("2d");if(m){a.beginPath();let $=0,b=0,w=l/2-t/2,M=p;a.moveTo($,b),a.lineTo(w,M);let L=l,T=0,E=l/2+t/2,S=p;a.moveTo(L,T),a.lineTo(E,S)}else{a.beginPath();let $=0,b=p/2-t/2,w=l;a.moveTo($,b),a.lineTo(w,0);let L=0,T=p/2+t/2,E=l,S=p;a.moveTo(L,T),a.lineTo(E,S)}return a.strokeStyle=O,a.stroke(),v`<div style=${g(m?{display:"flex",marginTop:`-${u?0:h?r/2:0}px`,marginBottom:`-${u?t:h?t/2:0}px`}:{display:"flex",marginRight:`-${u?0:h?r/2:0}px`,marginLeft:`-${u?0:h?t/2:0}px`})}>${c}</div>`}};A("arcgis-legend-card-size-ramp",j);return j},a,b)
|
package/dist/cdn/GK47522P.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{g as R}from"./J4CHCFLS.js";import"./XHOI3WNI.js";import b from"./HU57LQOA.js";import a from"./RUYAWRPV.js";import"./WJQUE4DR.js";import{a as D}from"./ZSPYPXBY.js";import{h as $}from"./IFR4IYSI.js";import"./7VDBR3SK.js";import"./FIZMK7GS.js";import"./ZKWI43WZ.js";import{O as F,P as E,X as k,a as v,b as m,n as o,p as u,r as g,x as y}from"./3UMLR76Y.js";import"./TAVTDQ6S.js";export default $arcgis.t(([{getOrCreateMapValue:C},{a:f,b:c,c:p,d:A},{c:S,d:I,e:P,g:w}])=>{var N=v`arcgis-features-next{height:100%}.elements-list-item{border:solid 1px var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-sm)}.features-hidden{color:var(--calcite-color-text-3);font-size:var(--calcite-font-size);overflow-wrap:anywhere}`,b=class extends E{constructor(){super(...arguments),this._messages=D({blocking:!0}),this.#o=!0,this.#i=[],this.#t=[],this.#r=new Map,this.#a=new Map,this.#n=!1,this.#l=new Map,this.#h=new Map,this.#e=[],this._isFeaturesSelected=!1,this.autoDestroyDisabled=!1,this.disableHighlight=!1,this.emitsArcgisResultReady=!0,this.features=[],this.hideActionBar=!1,this.hideFeatureResults=!1,this.hidePlaceholder=!1,this.includeDefaultActionsDisabled=!1,this.layers=[],this.state="ready",this.arcgisPropertyChange=$()("features","isFeaturesListShown","selectedResultFeature","state"),this.arcgisResultReady=y(),this.arcgisTriggerAction=y()}static{this.properties={_featuresComponentElement:16,_isFeaturesSelected:16,actions:0,autoDestroyDisabled:5,disableHighlight:5,emitsArcgisResultReady:32,features:32,heading:1,hideActionBar:5,hideFeatureResults:5,hidePlaceholder:5,includeDefaultActionsDisabled:5,isFeaturesListShown:32,layers:0,messageOverrides:0,numResults:32,referenceElement:1,selectedResultFeature:32,state:32,traceResult:32,utilityNetwork:32,view:32}}static{this.styles=N}#o;#i;get#m(){if(!this.traceResult)return!1;let{elements:e,globalFunctionResults:t,aggregatedGeometry:s}=this.traceResult;return e.length>0&&!t?.length&&!s}#t;#r;#a;#s;#n;#l;#h;get#c(){let{parentElement:e}=this.el;if(e&&R(e))return e;let t=this.el.getRootNode();if(t instanceof ShadowRoot&&R(t.host))return t.host}#e;get isFeaturesListShown(){return this._isFeaturesSelected&&!this.hideFeatureResults}get numResults(){return this.features.length+this.#i.length}get selectedResultFeature(){return this._featuresComponentElement?.selectedDrillInFeature??this._featuresComponentElement?.selectedFeature??void 0}clearResult(){this._isFeaturesSelected=!1,this.#s?.abort(),this.#y(),o(()=>this.features=[]),this.#e=[],this.#i=[],this.#r.clear(),this.#a.clear(),this.#h.clear(),this.#l.clear(),o(()=>this.state="ready")}async destroy(){this.clearResult(),await this.manager.destroy(),await this._featuresComponentElement?.destroy()}load(){this.manager.onLifecycle(()=>{let e=this.#c;if(!e){u("warn",this,"This component must be used as a child of `arcgis-utility-network-trace-results`.");return}let t=s=>this.#g(s);return e.addEventListener("arcgisPropertyChange",t),o(()=>{this.traceResult=e.traceResult,this.utilityNetwork=e.utilityNetwork,this.view=e.view}),()=>{e.removeEventListener("arcgisPropertyChange",t)}}),this.traceResult&&this.#d()}willUpdate(e){e.has("traceResult")&&this.#d(),e.has("disableHighlight")&&this.#u();let t=this.isFeaturesListShown;t!==this.#n&&this.arcgisPropertyChange.emit({name:"isFeaturesListShown"}),this.#n=t}loaded(){this.traceResult&&(this.traceResult.elements||u("error",this,g("traceResult.elements")),this.utilityNetwork||u("error",this,g("utilityNetwork")))}#g(e){if(e.target!==this.#c)return;let{target:t}=e;switch(e.detail.name){case"traceResult":o(()=>this.traceResult=t.traceResult);break;case"utilityNetwork":o(()=>this.utilityNetwork=t.utilityNetwork);break;case"view":o(()=>this.view=t.view);break}}#y(){this.#t.forEach(({handle:e})=>e?.remove()),this.#t=[]}#u(){this.#t.forEach(e=>{this.disableHighlight?(e.handle?.remove(),e.handle=void 0):e.handle=e.layerView.highlight(e.objectIds)})}#f(e){e&&(this._featuresComponentElement=e)}#p(e){return Array.from(new Map(e.map(t=>[t.globalId,t])).values())}#w(e){if(e==null||!this.#e.length)return;let t=this.#a.get(e);if(t)return t;let s=this.#e.find(a=>"layerId"in a&&a.layerId===e);return s&&this.#a.set(e,s),s}#R(){let{traceResult:e,utilityNetwork:t,view:s}=this;if(!t||!e?.elements?.length||!s)return;let a=r=>(P(r.layer)||w(r.layer))&&t.isUtilityLayer(r.layer),h=t.getObjectIdsFromElements(e.elements),i=s.allLayerViews.filter(a);h.forEach(({layerUrl:r,objectIds:n})=>{let l=Number(r.split("/").pop()),d=i.find(({layer:L})=>L.layerId===l);d&&this.#t.push({layerView:d,objectIds:n})}),this.#u()}async#b(e){let{layers:t,utilityNetwork:s,view:a}=this;if(!a||!s)return;try{s.loaded||await s.load({signal:e})}catch(i){if(p(i))throw i;f(i,this,"Error while loading the selected utility network")}c(e),this.#e=t.length?t.filter(i=>s.isUtilityLayer(i)):S(a,s);let h=this.#e.filter(i=>!i.loaded).map(i=>i.load({signal:e}));if(h.length>0){let i=await Promise.allSettled(h);c(e),i.forEach(r=>{r.status==="rejected"&&u("error",this,`Failed to load layer. Reason: ${r.reason}`)})}}async#d(){this.clearResult(),this._isFeaturesSelected=this.#m;let e=()=>{o(()=>this.state="ready"),this.arcgisResultReady.emit()},t=A(async s=>{let a=this.traceResult?.elements;if(!a?.length){e();return}o(()=>this.state="loading"),this.#E(a),await this.#b(s),await this.#F(s),c(s),this.#R(),e()});this.#s=t;try{await t.promise}catch(s){p(s)||(f(s,this,"Error while loading trace result"),this.#s===t&&e())}finally{this.#s===t&&(this.#s=void 0,o(()=>this.state="ready"))}}async#v([e,t],s){c(s);let a=this.utilityNetwork?.getLayerIdBySourceId(e),h=this.#w(a),i=this.#p(t);if(a==null||!h){this.#i.push(...i);return}let r=h.createQuery();r.gdbVersion=this.utilityNetwork?.gdbVersion,r.objectIds=i.map(l=>l.objectId),r.outFields=["*"];let{features:n}=await I(h,r,{signal:s});c(s),n.forEach(l=>{let d=l.layer;l.getEffectivePopupTemplate(this.#o)||(l.popupTemplate=d.createPopupTemplate())}),w(h)?n.forEach(l=>{C(this.#h,l.layer.subtypeCode,()=>[]).push(l)}):this.#r.set(a,n)}async#F(e){let t=Array.from(this.#l.entries());if(!t.length)return;let s=t.map(r=>this.#v(r,e)),a=await Promise.allSettled(s);c(e),a.forEach((r,n)=>{if(r.status==="rejected"){let[l]=t[n];u("error",this,`Failed to query features for source ${l}. Reason: ${r.reason}`)}});let h=Array.from(this.#r.values()),i=Array.from(this.#h.values());o(()=>this.features=h.concat(i).flat())}#E(e){this.#l=Map.groupBy(e,({networkSourceId:t})=>t)}#k(e){let{detail:t}=e;(t.name==="selectedDrillInFeature"||t.name==="selectedFeature")&&(e.stopPropagation(),this.arcgisPropertyChange.emit({name:"selectedResultFeature"}))}#$(e){e.stopPropagation(),this.arcgisTriggerAction.emit(e.detail)}#A(){return m`<div class="features-hidden">${this._messages.resultFeaturesAreHidden}</div>`}#S(){let{heading:e,_messages:t}=this;return m`<calcite-list .label=${t.headings.features}><calcite-list-item class="elements-list-item" .label=${e||t.headings.features} @calciteListItemSelect=${()=>this._isFeaturesSelected=!0}><calcite-chip .label=${t.labels.numFeatures} scale=s slot=content-end>${this.numResults}</calcite-chip><calcite-icon icon=chevron-right slot=content-end></calcite-icon></calcite-list-item></calcite-list>`}render(){return!this.traceResult?.elements.length||this.manager.destroyed?null:this.hideFeatureResults?this.hidePlaceholder?null:this.#A():this.isFeaturesListShown?m`<arcgis-features-next .actions=${this.actions} .autoDestroyDisabled=${this.autoDestroyDisabled} .defaultPopupTemplateEnabled=${this.#o} .features=${this.features} .hideActionBar=${this.hideActionBar} hide-select-feature .includeDefaultActionsDisabled=${this.includeDefaultActionsDisabled} initial-display-mode=list .messageOverrides=${this.messageOverrides} open .referenceElement=${this.referenceElement} .view=${this.view} @arcgisClose=${()=>this._isFeaturesSelected=!1} @arcgisPropertyChange=${this.#k} @arcgisTriggerAction=${this.#$} ${F(this.#f)}></arcgis-features-next>`:this.#S()}};k("arcgis-utility-network-trace-elements-result-item",b);return b},"applications/Components/featureUtils",a,b)
|
package/dist/cdn/GS2HJTMU.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{g as c}from"./J4CHCFLS.js";import"./XHOI3WNI.js";import{a as R}from"./ZSPYPXBY.js";import{h as d}from"./IFR4IYSI.js";import"./7VDBR3SK.js";import"./FIZMK7GS.js";import"./ZKWI43WZ.js";import{P as g,X as m,a as n,b as i,n as a,p as l,s as u,x as h}from"./3UMLR76Y.js";import"./TAVTDQ6S.js";var v=n`calcite-table{--calcite-table-border-color: none}calcite-table-row{--calcite-table-row-border-color: var(--calcite-color-border-3)}.functions-heading{margin:0 0 var(--calcite-spacing-xxs);font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size);color:var(--calcite-color-text-1)}`,o=class extends g{constructor(){super(...arguments),this._messages=R({blocking:!0}),this.autoDestroyDisabled=!1,this.emitsArcgisResultReady=!0,this.state="ready",this.arcgisPropertyChange=d()("state"),this.arcgisResultReady=h()}static{this.properties={autoDestroyDisabled:5,emitsArcgisResultReady:32,heading:1,messageOverrides:0,state:32,traceResult:32}}static{this.styles=v}get#t(){let{parentElement:t}=this.el;if(t&&c(t))return t;let e=this.el.getRootNode();if(e instanceof ShadowRoot&&c(e.host))return e.host}clearResult(){}async destroy(){await this.manager.destroy()}load(){this.manager.onLifecycle(()=>{let t=this.#t;if(!t){l("warn",this,"This component must be used as a child of `arcgis-utility-network-trace-results`.");return}let e=r=>this.#s(r);return t.addEventListener("arcgisPropertyChange",e),a(()=>{this.traceResult=t.traceResult}),()=>{t.removeEventListener("arcgisPropertyChange",e)}}),this.traceResult&&this.#e()}willUpdate(t){t.has("traceResult")&&this.#e()}loaded(){this.traceResult&&!this.traceResult.globalFunctionResults.length&&l("warn",this,u("traceResult.globalFunctionResults"))}#s(t){if(t.target!==this.#t)return;let{target:e}=t;t.detail.name==="traceResult"&&a(()=>this.traceResult=e.traceResult)}#e(){a(()=>this.state="ready"),this.arcgisResultReady.emit()}render(){if(!this.traceResult?.globalFunctionResults.length)return null;let{heading:t,_messages:e}=this,{globalFunctionResults:r}=this.traceResult;return i`<div class="functions-heading">${t||e.functions}</div><calcite-table .caption=${e.labels.functionResults}>${r.filter(s=>s.networkAttributeName!=null&&s.result!=null&&s.functionType!=null).map(s=>{let{functionName:f,networkAttributeName:b,functionType:p,result:y}=s,w=f||`${b} ${p}`;return i`<calcite-table-row><calcite-table-cell>${w}</calcite-table-cell><calcite-table-cell>${y}</calcite-table-cell></calcite-table-row>`})}</calcite-table>`}};m("arcgis-utility-network-trace-functions-result-item",o);export{o as ArcgisUtilityNetworkTraceFunctionsResultItem};
|
package/dist/cdn/GUHSWQMF.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{a as t,b as a,c as u}from"./IM6IDWYR.js";import{a as h}from"./ZSPYPXBY.js";import"./IFR4IYSI.js";import"./7VDBR3SK.js";import"./FIZMK7GS.js";import"./ZKWI43WZ.js";import{P as d,X as m,a as l,b as s,x as r}from"./3UMLR76Y.js";import"./TAVTDQ6S.js";var p=l`:host{--calcite-label-margin-bottom: initial;display:block;inline-size:100%}.time-zone-options{display:flex;flex-direction:column}.time-zone-indent{margin-inline-start:calc(var(--calcite-spacing-lg) * 1.5)}.time-zone-input{inline-size:100%;max-inline-size:100%;&:not([calcite-hydrated]){visibility:hidden}}.status{display:grid;grid-template-columns:min-content 1fr;align-items:start;gap:var(--calcite-spacing-sm);box-sizing:border-box;padding:var(--calcite-spacing-sm);border-radius:var(--calcite-corner-radius-sm);background-color:var(--calcite-color-foreground-2);color:var(--calcite-color-text-2)}.status-text{margin:0}`,g=["device","data","specific"],n=class extends d{constructor(){super(...arguments),this._messages=h({blocking:!0}),this.disabled=!1,this.timeZone=t,this.visualScale="m",this.arcgisInternalTimeZoneChange=r({bubbles:!1,composed:!1})}static{this.properties={disabled:5,timeZone:1,visualScale:1}}static{this.styles=p}#e;get#a(){return this.timeZone===t?"device":this.timeZone===a?"data":"specific"}get#t(){return this.timeZone!==t&&this.timeZone!==a?this.timeZone:this.#e??u}willUpdate(i){i.has("timeZone")&&this.timeZone!==t&&this.timeZone!==a&&(this.#e=this.timeZone)}#i(i){i!==this.timeZone&&(this.timeZone=i,this.arcgisInternalTimeZoneChange.emit(i))}#s(i){switch(i.currentTarget.selectedItem?.value){case"device":this.#i(t);break;case"specific":this.#i(this.#t);break;case"data":this.#i(a);break}}#c(i){let e=i.currentTarget.value;e&&this.#i(e)}render(){let{_messages:i}=this,e=this.#a,o=e==="data"?i.dataStatus:e==="device"?i.deviceStatus:void 0;return s`<div class="time-zone-options"><calcite-radio-button-group .ariaLabel=${i.timeZone} .disabled=${this.disabled} layout=vertical name=time-zone-mode .scale=${this.visualScale} @calciteRadioButtonGroupChange=${this.#s}>${g.map(c=>s`<calcite-label layout=inline .scale=${this.visualScale}><calcite-radio-button .checked=${e===c} .disabled=${this.disabled} .value=${c}></calcite-radio-button>${i[c]}</calcite-label>`)}</calcite-radio-button-group><div class="time-zone-indent" .hidden=${e!=="specific"}><calcite-input-time-zone .ariaLabel=${i.specificTimeZone} class="time-zone-input" data-testid=time-zone-input .disabled=${this.disabled} mode=region overlay-positioning=fixed .scale=${this.visualScale} .value=${this.#t} @calciteInputTimeZoneChange=${this.#c}></calcite-input-time-zone></div>${o?s`<div class="status" aria-live=polite><calcite-icon aria-hidden icon=time-zone scale=s></calcite-icon><p class="status-text">${o}</p></div>`:void 0}</div>`}};m("arcgis-time-zone-selector",n);export{n as ArcgisTimeZoneSelector};
|
package/dist/cdn/GUZYCRYS.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{g as p}from"./J4CHCFLS.js";import{a as g}from"./XHOI3WNI.js";import a from"./HU57LQOA.js";import{a as $}from"./ZSPYPXBY.js";import{h as C}from"./IFR4IYSI.js";import"./7VDBR3SK.js";import"./FIZMK7GS.js";import"./ZKWI43WZ.js";import{B as w,N as v,O as f,P as G,U as R,X as b,a as y,b as l,n as s,p as o,r as h,x as u}from"./3UMLR76Y.js";import"./TAVTDQ6S.js";export default $arcgis.t(([c,k,x,S,z,E,{b:n,f:L}])=>{var M=y`.aggregated-geometry-container{display:flex;align-items:center;justify-content:space-between}.geometry-heading{margin:0 0 var(--calcite-spacing-xxs);font-weight:var(--calcite-font-weight-medium);font-size:var(--calcite-font-size);color:var(--calcite-color-text-1)}`,m=class extends G{constructor(){super(...arguments),this._messages=$({blocking:!0}),this.#r=`aggregated-geometry-graphics-${w()}`,this.#e=v(),this.autoDestroyDisabled=!1,this.emitsArcgisResultReady=!0,this.geometryGraphics=[],this.graphicsColor=new c(g),this.hideGraphics=!1,this.selectionSize=12,this.state="ready",this.arcgisPropertyChange=C()("hideGraphics","geometryGraphics","graphicsColor","selectionSize","state"),this.arcgisResultReady=u()}static{this.properties={autoDestroyDisabled:5,emitsArcgisResultReady:32,geometryGraphics:32,graphicsColor:[1,{converter:{fromAttribute:e=>c.fromString(e)??new c(g)}}],graphicsLayer:0,heading:1,hideGraphics:5,messageOverrides:0,selectionSize:9,state:32,traceResult:32,view:32}}static{this.styles=M}#r;#t;#e;get#a(){let{parentElement:e}=this.el;if(e&&p(e))return e;let t=this.el.getRootNode();if(t instanceof ShadowRoot&&p(t.host))return t.host}clearResult(){this.#e.value&&(this.#e.value.open=!1);let{graphicsLayer:e}=this;e&&(e.removeMany(this.geometryGraphics),e===this.#t&&(this.view?.map?.remove(e),this.graphicsLayer=void 0,this.#t=void 0)),s(()=>this.geometryGraphics=[]),s(()=>this.state="ready")}async destroy(){try{this.clearResult()}finally{await this.manager.destroy()}}connectedCallback(){super.connectedCallback(),this.view&&this.graphicsLayer&&n(this.view,this.graphicsLayer)}load(){this.manager.onLifecycle(()=>{let e=this.#a;if(!e){o("warn",this,"This component must be used as a child of `arcgis-utility-network-trace-results`.");return}let t=i=>this.#h(i);return e.addEventListener("arcgisPropertyChange",t),s(()=>{this.traceResult=e.traceResult,this.view=e.view}),()=>{e.removeEventListener("arcgisPropertyChange",t)}}),this.traceResult&&this.#s()}willUpdate(e){if(e.has("traceResult")&&this.#s(),e.has("view")){let t=e.get("view");t?.map&&this.graphicsLayer&&t.map.remove(this.graphicsLayer),this.#s()}e.has("graphicsLayer")&&this.#p(e.get("graphicsLayer")),e.has("hideGraphics")&&this.#g(),(e.has("graphicsColor")||e.has("selectionSize"))&&this.#m()}loaded(){this.traceResult&&(this.traceResult.aggregatedGeometry||o("warn",this,h("traceResult.aggregatedGeometry")),this.view?this.view.map||o("error",this,h("The property `view` was provided, but `view.map` is null. Cannot draw aggregated geometry.")):o("error",this,h("view")))}#i(){if(!this.graphicsLayer)return;let e=this.geometryGraphics.filter(t=>!this.graphicsLayer.graphics.includes(t));this.graphicsLayer.addMany(e)}#h(e){if(e.target!==this.#a)return;let{target:t}=e;switch(e.detail.name){case"traceResult":s(()=>this.traceResult=t.traceResult);break;case"view":s(()=>this.view=t.view);break}}#c(e){let{line:t,multipoint:i,polygon:r}=e;s(()=>{this.geometryGraphics=[t,i,r].filter(a=>a!=null).map(a=>this.#n(a))})}#l(e){let t=this.#r,i=e.map?.findLayerById(t);return i&&L(i)?i:new x({id:t,listMode:"hide",title:t})}#n(e){return new k({geometry:e,symbol:this.#o(e)})}#o(e){let{selectionSize:t,graphicsColor:i}=this;switch(e.type){case"multipoint":return new E({color:i,size:t,outline:{color:i,width:0}});case"polygon":return new S({color:i,outline:{color:i,width:t}});case"polyline":return new z({color:i,width:t})}}#g(){this.hideGraphics?(this.graphicsLayer?.removeMany(this.geometryGraphics),this.#e.value?.open&&(this.#e.value.open=!1)):this.#i()}#p(e){e?.removeMany(this.geometryGraphics),this.hideGraphics||this.#i()}#s(){this.clearResult();let e=()=>{s(()=>this.state="ready"),this.arcgisResultReady.emit()};if(!this.traceResult?.aggregatedGeometry||!this.view?.map){e();return}s(()=>this.state="loading"),this.#c(this.traceResult.aggregatedGeometry),this.graphicsLayer||(this.graphicsLayer=this.#l(this.view),this.#t=this.graphicsLayer,n(this.view,this.graphicsLayer)),this.hideGraphics||this.#i(),e()}#m(){this.geometryGraphics.forEach(e=>{let t=e.geometry;e.symbol=this.#o(t)})}render(){if(!this.traceResult?.aggregatedGeometry)return null;let{graphicsColor:e,heading:t,hideGraphics:i,_messages:r}=this;return l`${t&&l`<div class="geometry-heading">${t}</div>`||""}<div class="aggregated-geometry-container"><calcite-switch .checked=${!i} .label=${r.labels.showGraphicsToggle} label-text-end=${r.showGraphics??R} @calciteSwitchChange=${()=>this.hideGraphics=!this.hideGraphics}></calcite-switch><calcite-swatch .color=${e.toCss()} .disabled=${i} id=geometry-color-swatch .label=${r.labels.aggregatedGeometryGraphicsColor}></calcite-swatch><calcite-popover closable .heading=${r.headings.setColor} .label=${r.headings.setColor} reference-element=geometry-color-swatch ${f(this.#e)}><calcite-color-picker alpha-channel channels-disabled clearable .disabled=${i} hex-disabled saved-disabled .value=${e.toCss(!0)} @calciteColorPickerChange=${a=>{let d=a.target.value;d&&(this.graphicsColor=new c(d))}}></calcite-color-picker></calcite-popover></div>`}};b("arcgis-utility-network-trace-aggregated-geometry-result-item",m);return m},"Color","Graphic","layers/GraphicsLayer","symbols/SimpleFillSymbol","symbols/SimpleLineSymbol","symbols/SimpleMarkerSymbol",a)
|
package/dist/cdn/HDHWPKJ4.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{a as u,b as g}from"./ZGOAZB5L.js";import{a as o}from"./ZSPYPXBY.js";import"./IFR4IYSI.js";import"./7VDBR3SK.js";import"./FIZMK7GS.js";import"./ZKWI43WZ.js";import{P as c,R as h,U as a,X as m,a as l,b as i}from"./3UMLR76Y.js";import"./TAVTDQ6S.js";var v=l`:host{display:contents;--arcgis-internal-attachment-thumbnail-size: 32px}img{object-fit:contain;width:var(--arcgis-internal-attachment-thumbnail-size);height:var(--arcgis-internal-attachment-thumbnail-size)}.icon-xl{scale:2;translate:50%}.icon-xl:dir(rtl){translate:-50%}.container{box-sizing:border-box;display:flex;align-items:center;justify-items:center;border-radius:var(--calcite-corner-radius-xs);overflow:clip;width:var(--arcgis-internal-attachment-thumbnail-size);height:var(--arcgis-internal-attachment-thumbnail-size)}.scale-s{--arcgis-internal-attachment-thumbnail-size: 16px}.scale-m{--arcgis-internal-attachment-thumbnail-size: 32px}.scale-l{--arcgis-internal-attachment-thumbnail-size: 64px}`,n=class extends c{constructor(){super(...arguments),this._messages=o({blocking:!0,name:"feature-form-next"}),this._attachment=void 0,this._input=void 0,this._iconOnly=!1,this._hasImageError=!1,this._resolvedImageUrl=void 0,this.skipFilenameAlt=!1,this.visualScale="m"}static{this.properties={_hasImageError:16,_resolvedImageUrl:16,_iconName:16,attachment:0,input:0,skipFilenameAlt:5,messageOverrides:0,visualScale:1,iconOnly:5}}static{this.styles=v}get _effectiveScale(){return this.visualScale==="s"?"s":"l"}get _imageDimensions(){switch(this.visualScale){case"l":return 64;case"s":return 16;default:return 32}}get _altText(){if(this.skipFilenameAlt)return"";let t=this._messages?.components?.attachments?.thumbnail?.fileTypes?.[this._iconName??"file"];return this.input?.displayFilename!==!1?this.attachment?.name??t:t}set attachment(t){this._attachment!==t&&(this._attachment=t,this._reprocessThumbnail())}get attachment(){return this._attachment}set input(t){t!==this._input&&(this._input=t,this._reprocessThumbnail())}get input(){return this._input}get iconOnly(){return this._iconOnly}set iconOnly(t){t!==this._iconOnly&&(this._iconOnly=t,this._reprocessThumbnail())}_reprocessThumbnail(){this._hasImageError=!1;let{_attachment:t,_input:e}=this;if(!t||!e){this._resolvedImageUrl=void 0,this._iconName=void 0;return}this._iconName=g(t.contentType),!this.iconOnly&&u(t.contentType)?this._resolvedImageUrl=this.input?.getAttachmentPreviewUrl(t,this._imageDimensions*2)??void 0:this._resolvedImageUrl=""}_handleImageError(t){t.stopPropagation(),this._hasImageError=!0}render(){let{_hasImageError:t,_resolvedImageUrl:e,_altText:s,_iconName:_,visualScale:r,_effectiveScale:p}=this,d=t||!e;return i`<div data-testid=thumbnail-container class=${`container scale-${r}`}>${d?i`<calcite-icon class=${h({"icon-xl":r==="l"})} data-testid=thumbnail-icon .icon=${_??"file"} .scale=${p} .textLabel=${s}></calcite-icon>`:i`<img alt=${s??a} title=${s??a} src=${e??a} @error=${this._handleImageError}>`}</div>`}};m("arcgis-attachment-thumbnail",n);export{n as ArcgisAttachmentThumbnail};
|
package/dist/cdn/HKLBQ7JD.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{a as o,b as m,c as b}from"./IM6IDWYR.js";import{a as h}from"./ZSPYPXBY.js";import"./IFR4IYSI.js";import"./7VDBR3SK.js";import"./FIZMK7GS.js";import"./ZKWI43WZ.js";import{B as a,P as p,U as i,X as d,a as c,b as n,x as r}from"./3UMLR76Y.js";import"./TAVTDQ6S.js";export default $arcgis.t(([{substitute:u}])=>{var $=c`:host{display:inline-block;max-inline-size:100%}.container{--arcgis-internal-time-zone-popover-inline-size: min(20rem, calc(100vw - var(--calcite-spacing-xl)));max-inline-size:100%;.trigger{display:block;inline-size:fit-content;max-inline-size:100%;padding:0;border:0;background:transparent;color:inherit;cursor:pointer;&:focus-visible{outline:var(--calcite-border-width-md) solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:2px}&:disabled{cursor:not-allowed}&[aria-expanded=true] calcite-chip{--calcite-chip-background-color: var(--calcite-color-foreground-3);--calcite-chip-border-color: var(--calcite-color-text-3)}}calcite-chip{--calcite-chip-icon-color: var(--calcite-color-text-2);max-inline-size:100%;pointer-events:none}.chip-label{display:block;overflow:hidden;max-inline-size:calc(6 * var(--calcite-size-md));text-overflow:ellipsis;white-space:nowrap}calcite-popover{--calcite-popover-max-size-x: var(--arcgis-internal-time-zone-popover-inline-size)}.popover-content{box-sizing:border-box;inline-size:var(--arcgis-internal-time-zone-popover-inline-size);padding:var(--calcite-spacing-md)}}`,s=class extends p{constructor(){super(...arguments),this._messages=h({blocking:!0}),this.#e=a(),this.#i=a(),this._open=!1,this.disabled=!1,this.timeZone=o,this.visualScale="m",this.arcgisInternalTimeZoneChange=r({bubbles:!1,composed:!1})}static{this.properties={_open:16,disabled:5,timeZone:1,visualScale:1}}static{this.styles=$}#e;#i;willUpdate(e){e.has("disabled")&&this.disabled&&(this._open=!1)}#t(e){this.timeZone=e.detail,this.arcgisInternalTimeZoneChange.emit(e.detail)}render(){let{_messages:e}=this,t=this.timeZone===o?b:this.timeZone===m?"UTC":this.timeZone,v=(t.split("/").at(-1)??t).replaceAll("_"," "),g=`\u2068${t}\u2069`,l=u(e.chipLabel,{timeZone:g});return n`<div class="container"><button aria-controls=${this.#e??i} aria-expanded=${this._open??i} aria-haspopup=dialog aria-label=${l??i} class="trigger" .disabled=${this.disabled} id=${this.#i??i} title=${t??i} type=button @click=${()=>this._open=!this._open}><calcite-chip aria-hidden appearance=outline-fill .disabled=${this.disabled} icon=time-zone .label=${l} .scale=${this.visualScale}><span class="chip-label"><bdi>${v}</bdi></span></calcite-chip></button><calcite-popover auto-close id=${this.#e??i} .label=${e.popoverLabel} .open=${this._open} overlay-positioning=fixed placement=top-start .referenceElement=${this.#i} trigger-disabled @calcitePopoverClose=${()=>this._open=!1} @calcitePopoverOpen=${()=>this._open=!0}><div class="popover-content"><arcgis-time-zone-selector .disabled=${this.disabled} .timeZone=${this.timeZone} .visualScale=${this.visualScale} @arcgisInternalTimeZoneChange=${this.#t}></arcgis-time-zone-selector></div></calcite-popover></div>`}};d("arcgis-time-zone-chip",s);return s},"intl")
|
package/dist/cdn/HQSY7TKA.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
-
import{a as _}from"./GUL7EIJ4.js";import c from"./WBBTZNZU.js";import b from"./HU57LQOA.js";import a from"./RUYAWRPV.js";import"./WJQUE4DR.js";import"./IFR4IYSI.js";import"./7VDBR3SK.js";import"./FIZMK7GS.js";import{e as L}from"./ZKWI43WZ.js";import{N as O,O as S,P as j,R,V as f,X as Q,a as N,b as o,n as M}from"./3UMLR76Y.js";import"./TAVTDQ6S.js";export default $arcgis.t(([{templateHasKey:V,stripHTML:T},{renderingSanitizer:H},{isRelatableFeatureSupportedLayer:J,findRelatedLayer:U},{substitute:X,formatNumber:k},{watch:p,on:Y},K,Z,{ignoreAbortErrors:P},ee,,,{h:B}])=>{var te=N`:host{position:relative;flex:1 1 auto}:host([empty]){display:none}.list{min-height:var(--calcite-spacing-xxxl)}.list-item-hidden{display:none}.feature-observer{position:relative;bottom:var(--calcite-spacing-xxl);z-index:2;text-align:center}.sticky-loading-container{display:flex;position:sticky;bottom:var(--calcite-spacing-sm);align-items:center;justify-content:center;z-index:2;margin:0;padding:0;height:var(--calcite-spacing-xxxl);pointer-events:none}`,ie=u=>{let e=[];if(u.formTemplate){let{description:t,title:i}=u.formTemplate;u.fields?.forEach(r=>{let s=i&&V(i,r.name),a=t&&V(t,r.name);(s||a)&&e.push(r.name)})}return e},D=100;function re(u){return typeof u=="string"&&u.trim().length>0}var E=class extends j{constructor(){super(...arguments),this._increaseFeaturePage=()=>{let{state:e,showAllEnabled:t,relatedFeatures:i,featuresPerPage:r,featurePage:s}=this;e==="ready"&&t&&i.length>=r*s&&this.featurePage++},this._relatedFeatureIntersectionObserver=new IntersectionObserver(([e])=>{e?.isIntersecting&&this._increaseFeaturePage()},{root:window.document}),this._featurePage=1,this._cancelQuery=()=>{let{_queryAbortController:e}=this;e&&e.abort(),this._queryAbortController=null},this._cancelQueryFeatureCount=()=>{let{_queryFeatureCountAbortController:e}=this;e&&e.abort(),this._queryFeatureCountAbortController=null},this._cancelQueryPage=()=>{let{_queryPageAbortController:e}=this;e&&e.abort(),this._queryPageAbortController=null},this._queryController=async()=>{this._cancelQuery();let e=new AbortController;this._queryAbortController=e,await P(this._query()),this._queryAbortController===e&&(this._queryAbortController=null)},this._queryFeatureCountController=async()=>{this._loaded=!1,this._cancelQueryFeatureCount();let e=new AbortController;this._queryFeatureCountAbortController=e,await P(this._queryFeatureCount()),this._queryFeatureCountAbortController===e&&(this._queryFeatureCountAbortController=null),this._loaded=!0},this._queryPageController=async()=>{let e=new AbortController;this._queryPageAbortController=e,await P(this._queryPage()),this._queryPageAbortController===e&&(this._queryPageAbortController=null)},this._queryDebounced=_(this._queryController,D),this._queryFeatureCountDebounced=_(this._queryFeatureCountController,D),this._queryPageDebounced=_(this._queryPageController,D),this._query=async()=>{let{_queryAbortController:e,relatedFeatures:t}=this;!this.featureCount||this.relatedLayer?.type==="subtype-group"&&!this.activeCategory||(this.relatedFeatureViewModels.destroyAll(),this.featurePage=1,t.destroyAll(),t.addMany(this._sliceFeatures(await this._queryRelatedFeatures({signal:e?.signal}))))},this._addFlowItem=e=>{e&&this.flowItems?.push(e)},this._relatedFeatureIntersectionObserverNode=O(),this.relatedFeatures=new K,this._queryAbortController=null,this._queryPageAbortController=null,this._queryFeatureCountAbortController=null,this.featureCount=0,this._loaded=!1,this.relatedFeatureViewModels=new K,this.autoDestroyDisabled=!1,this.featuresPerPage=10,this.useFeatureNextFlowItem=!1,this.includeDefaultActions=!1,this.flowType="feature-relationship",this.headingLevel=2,this.hideHeading=!1,this.hideDescription=!1,this.hideEmptyRelationshipContent=!1,this.empty=!1,this.showAllEnabled=!1}static{this.properties={allCategories:16,_queryAbortController:16,_queryPageAbortController:16,_queryFeatureCountAbortController:16,featureCount:16,_loaded:16,canLoad:16,canQuery:16,displayShowAllButton:16,displayListItems:16,categories:16,itemDescriptionFieldName:16,relatedFeatureViewModels:16,state:16,autoDestroyDisabled:5,allItemsDescription:32,featurePage:9,featuresPerPage:9,flowItems:0,useFeatureNextFlowItem:5,actions:0,includeDefaultActions:5,flowType:1,headingLevel:9,messages:0,heading:1,description:1,values:0,activeCategory:0,hideHeading:5,hideDescription:5,hideEmptyRelationshipContent:5,empty:39,displayCount:9,graphic:0,layer:0,map:0,view:0,spatialReference:0,timeZone:1,orderByFields:0,relationshipId:9,showAllEnabled:5,label:3}}static{this.styles=te}get orderByFieldsFixedCasing(){let{orderByFields:e,relatedLayer:t}=this;return e&&t?.loaded?e.map(i=>{let r=i.clone();return r.field=B(i.field,t),r}):e??[]}get supportsCacheHint(){return!!this.layer?.capabilities?.queryRelated?.supportsCacheHint}get allCategoriesCount(){return this.allCategories?.length??0}get objectId(){return(this.objectIdField&&this.graphic?.attributes?.[this.objectIdField])??null}get objectIdField(){return this.layer?.objectIdField||null}get relatedLayer(){let{layer:e,map:t,relationship:i}=this;if(!e?.loaded||!t||!i)return null;let r=e.type==="subtype-sublayer"&&e.parent&&J(e.parent)?e.parent:e;return U(t,r,i)??null}get relatedLayerKeyField(){let{relatedLayer:e,relationshipId:t}=this;return e?.loaded&&t!=null?e.relationships?.find(i=>i.id===t)?.keyField:null}get relatedLayerKeyFields(){let{relatedLayer:e}=this;return e?.loaded?e.relationships?.map(t=>t.keyField).filter(t=>t!=null)??[]:[]}get relationship(){let{relationshipId:e,layer:t}=this;return e!=null&&t?.loaded?t.relationships?.find(({id:i})=>i===e)??null:null}get relationshipKey(){let{relationshipKeyField:e}=this;return(e&&this.graphic?.attributes?.[e])??null}get relationshipKeyField(){return this.relationship?.keyField||null}get canLoad(){return!!this.map&&this.relationshipId!=null&&typeof this.objectId=="number"}get canQuery(){let e=this.layer?.capabilities?.queryRelated;return!!this.relatedLayer&&!!this.relationship&&this.relationshipId!=null&&this.objectId!=null&&!!e?.supportsCount&&e?.supportsPagination}get displayShowAllButton(){let{showAllEnabled:e,featureCount:t,displayCount:i,state:r,allCategoriesCount:s}=this,a=!!s&&(s>i||i===0),n=!!t&&(t>i||i===0);return!e&&r==="ready"&&(a||n)}get displayListItems(){let{relatedFeatures:e,allCategoriesCount:t}=this;return this.displayShowAllButton||!!e.length||!!t}get categories(){let{allCategories:e}=this;return this.showAllEnabled?e:e?.slice(0,this.displayCount)??null}get itemDescriptionFieldName(){return this.orderByFieldsFixedCasing[0]?.field||null}get state(){let{_queryAbortController:e,_queryFeatureCountAbortController:t,_queryPageAbortController:i,canQuery:r,_loaded:s,canLoad:a}=this;return t||a&&!s?"loading":e||i?"querying":r?"ready":"disabled"}get allItemsDescription(){let{messages:e,featureCount:t,allCategories:i,allCategoriesCount:r}=this;return X(e?.numberRecords??"",{number:k(i?r:t)})}get featurePage(){return this._featurePage}set featurePage(e){let{featuresPerPage:t,featureCount:i}=this,r=1,s=Math.ceil(i/t)||1;this._featurePage=Math.min(Math.max(e,r),s)}get heading(){let{activeCategory:e}=this;return this._heading??e?.name}set heading(e){this._heading=e}get _empty(){let{displayListItems:e,hideEmptyRelationshipContent:t,state:i}=this;return t&&i==="ready"&&!e}get displayCount(){return this._displayCount??3}set displayCount(e){this._displayCount=Math.min(Math.max(e??3,0),10)}async destroy(){await this.manager.destroy()}loaded(){this.manager.onLifecycle(()=>[p(()=>[this.displayCount,this.graphic,this.layer,this.layer?.loaded,this.map,this.orderByFields,this.relationshipId,this.featuresPerPage,this.showAllEnabled,this.canQuery,this.featureCount,this.activeCategory],()=>this._queryDebounced(),{initial:!0}),p(()=>[this.featurePage,this.showAllEnabled],()=>this._queryPageDebounced()),p(()=>[this.layer,this.relationshipId,this.objectId,this.canQuery,this.activeCategory],()=>this._queryFeatureCountDebounced(),{initial:!0}),p(()=>[this.state,this.showAllEnabled,this._relatedFeatureIntersectionObserverNode],()=>this._handleRelatedFeatureObserverChange()),p(()=>[this.displayListItems,this.hideEmptyRelationshipContent,this.state],()=>this._setEmpty(this._empty),{initial:!0}),Y(()=>this.relatedFeatures,"change",()=>this._setRelatedFeaturesViewModels())]),this.manager.onDestroy(()=>{this.relatedFeatureViewModels.destroyAll(),this.relatedFeatures.destroyAll(),this._cancelQuery(),this._cancelQueryFeatureCount(),this._cancelQueryPage(),this._unobserveRelatedFeatureObserver()})}_setEmpty(e){M(()=>this.empty=e)}async _queryFeatureCount(){let{layer:e,relatedLayer:t}=this;await e?.load(),await t?.load();let{_queryFeatureCountAbortController:i,activeCategory:r,canQuery:s,objectId:a,relatedLayerKeyField:n,relationshipId:l,relationshipKey:g,supportsCacheHint:C}=this;if(!s||!e||!t||a==null){this.featureCount=0,this.allCategories=void 0;return}if(t?.type==="subtype-group"&&!r){if(this.featureCount=0,this.relatedFeatureViewModels.destroyAll(),this.featurePage=1,this.relatedFeatures.destroyAll(),n&&g!=null){let{default:v}=await $arcgis.t(m=>m[0],"smartMapping/statistics/uniqueValues"),{uniqueValueInfos:I}=await v({layer:t,sqlWhere:`${n} = '${g}'`,field:t.subtypeField??void 0,signal:i?.signal}),$=I.map(({count:h,value:y})=>{let b=t.subtypes?.find(A=>A.code===y)?.name;return y!=null&&b?{count:h,value:y,name:b}:void 0}).filter(h=>h!=null);this.allCategories=$}return}let{historicMoment:m,gdbVersion:F}=e,w=new Z({cacheHint:C,gdbVersion:F,historicMoment:m,relationshipId:l,returnGeometry:!1,objectIds:[a],where:this._getRelationshipWhereClause(t)}),c=await e.queryRelatedFeaturesCount(w,{signal:i?.signal});this.allCategories=void 0,this.featureCount=c[a]||0}_getRelationshipWhereClause(e){let{activeCategory:t}=this,i=e.createQuery(),r="subtypeField"in e?e.subtypeField:void 0,s=t&&r?`${r} = ${t.value}`:void 0,a=i.where;return a&&s?`(${a}) AND (${s})`:a??s}_sliceFeatures(e){let{showAllEnabled:t,displayCount:i}=this;return t?e:i?e.slice(0,i):[]}async _queryPage(){let{relatedFeatures:e,featurePage:t,showAllEnabled:i,_queryPageAbortController:r,featureCount:s}=this;!i||t<2||!s||this.relatedLayer?.type==="subtype-group"&&!this.activeCategory||e.addMany(await this._queryRelatedFeatures({signal:r?.signal}))}async _queryRelatedFeatures(e){let{displayCount:t,featureCount:i,featurePage:r,featuresPerPage:s,layer:a,orderByFieldsFixedCasing:n,relatedLayer:l,relatedLayerKeyFields:g,relationshipId:C,showAllEnabled:m,supportsCacheHint:F}=this,{canQuery:w,objectId:c}=this;if(!w||!a||!l||c==null)return[];let v=m?((r-1)*s+i)%i:0,I=m?s:t,$=l.objectIdField,h="subtypeField"in l?l.subtypeField:void 0,y=[...n.map(d=>d.field),...ie(l),...g,$,h].filter(re),b=n.map(d=>`${d.field} ${d.order}`),{historicMoment:A,gdbVersion:z}=a,W=new Z({orderByFields:b,start:v,num:I,outFields:y,cacheHint:F,historicMoment:A,gdbVersion:z,relationshipId:C,returnGeometry:!1,objectIds:[c],where:this._getRelationshipWhereClause(l)}),q=(await a.queryRelatedFeatures(W,{signal:e?.signal}))[c]?.features||[];return l.type==="subtype-group"&&h?q.forEach(d=>{let G=d.attributes[h],x=l.findSublayerForSubtypeCode?.(G);d.sourceLayer=x,d.layer=x}):q.forEach(d=>{d.sourceLayer=l,d.layer=l}),q}_selectCategory(e){let{flowItems:t}=this;t&&this._addRelationshipFlowItem({showAllEnabled:!0,activeCategory:e})}_selectRecord(e){let{flowItems:t}=this;if(!t)return;let i=this.useFeatureNextFlowItem?f(o`<arcgis-feature-next .actions=${this.actions} .autoDestroyDisabled=${this.autoDestroyDisabled} .flowItems=${t} .flowType=${this.flowType} .graphic=${e.graphic} .includeDefaultActions=${this.includeDefaultActions} .hideEmptyRelationshipContent=${this.hideEmptyRelationshipContent} .map=${this.map} show-relationship-content .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature-next>`):f(o`<arcgis-feature .autoDestroyDisabled=${this.autoDestroyDisabled} .flowItems=${t} .flowType=${this.flowType} .graphic=${e.graphic} .map=${this.map} show-relationship-content .spatialReference=${this.spatialReference} .timeZone=${this.timeZone} .view=${this.view}></arcgis-feature>`);this._addFlowItem(i)}_addRelationshipFlowItem({showAllEnabled:e=!1,activeCategory:t}){this._addFlowItem(f(o`<arcgis-feature-relationship .actions=${this.actions} .autoDestroyDisabled=${this.autoDestroyDisabled} .messages=${this.messages} .activeCategory=${t} .displayCount=${this.displayCount} .flowItems=${this.flowItems} .flowType=${this.flowType} .graphic=${this.graphic} .heading=${this.heading} .includeDefaultActions=${this.includeDefaultActions} hide-description .hideEmptyRelationshipContent=${this.hideEmptyRelationshipContent} .showAllEnabled=${e} hide-heading .layer=${this.layer} .map=${this.map} .orderByFields=${this.orderByFields} .relationshipId=${this.relationshipId} .spatialReference=${this.spatialReference} .useFeatureNextFlowItem=${this.useFeatureNextFlowItem} .values=${this.values} .view=${this.view}></arcgis-feature-relationship>`))}_showAllRecords(){let{flowItems:e}=this;e&&this._addRelationshipFlowItem({showAllEnabled:!0})}_handleRelatedFeatureObserverChange(){this._unobserveRelatedFeatureObserver();let{state:e,showAllEnabled:t}=this;this._relatedFeatureIntersectionObserverNode.value&&e==="ready"&&t&&this._relatedFeatureIntersectionObserver.observe(this._relatedFeatureIntersectionObserverNode.value)}_unobserveRelatedFeatureObserver(){this._relatedFeatureIntersectionObserverNode.value&&this._relatedFeatureIntersectionObserver.unobserve(this._relatedFeatureIntersectionObserverNode.value)}_matchesFeature(e,t){let i=e?.graphic?.getObjectId(),r=t?.getObjectId();return i!=null&&r!=null&&i===r}_setRelatedFeaturesViewModels(){let{relatedFeatures:e,relatedFeatureViewModels:t,map:i,view:r,spatialReference:s,timeZone:a}=this;e?.filter(Boolean).forEach(n=>{t.some(l=>this._matchesFeature(l,n))||t.add(new ee({abilities:{relationshipContent:!1},map:i,view:r,spatialReference:s,timeZone:a,graphic:n}))}),t.forEach(n=>{e?.find(l=>this._matchesFeature(n,l))||t.remove(n)})}render(){let{state:e}=this;return o`<div class="root"><arcgis-feature-element-info .heading=${this.heading} .headingLevel=${this.headingLevel} .description=${this.description}></arcgis-feature-element-info>${e==="loading"?this._renderLoading():e==="disabled"?this._renderRelationshipNotFound():this._renderRelatedFeatures()}</div>`}_renderStickyLoading(){return this.state==="querying"?o`<div class="sticky-loading-container">${this._renderLoadingIcon()}</div>`:null}_renderLoadingIcon(){return o`<calcite-loader inline label></calcite-loader>`}_renderLoading(){return o`<div class="loading-container">${this._renderLoadingIcon()}</div>`}_renderShowAllIconNode(){return o`<calcite-icon icon=list scale=s slot=content-end></calcite-icon>`}_renderChevronIconNode(){return o`<calcite-icon flip-rtl icon=chevron-right scale=s slot=content-end></calcite-icon>`}_renderCategory(e){let{count:t,name:i}=e,r=k(t);return o`<calcite-list-item class="list-item" .disabled=${!t} .label=${i} @calciteListItemSelect=${()=>this._selectCategory(e)}><calcite-chip .label=${r} scale=s slot=content-end>${r}</calcite-chip>${this._renderChevronIconNode()}</calcite-list-item>`}_renderRelatedFeature(e){let{itemDescriptionFieldName:t,values:i}=this,{formattedAttributes:r,state:s,heading:a}=e,n={...i,...r?.global},l=(t&&n?.[t])??"";return o`<calcite-list-item class=${R(L("list-item",{"list-item-hidden":s==="loading"}))} .description=${T(l.toString())} .label=${T(a)} @calciteListItemSelect=${()=>this._selectRecord(e)}><div slot=heading><div .innerHTML=${H.sanitize(a??"")??""}></div></div><div slot=description><div .innerHTML=${H.sanitize(l??"")??""}></div></div>${this._renderChevronIconNode()}</calcite-list-item>`}_renderShowAllListItem(){return this.displayShowAllButton?o`<calcite-list-item .description=${this.allItemsDescription} .label=${this.messages?.showAll} @calciteListItemSelect=${()=>this._showAllRecords()}>${this._renderShowAllIconNode()}</calcite-list-item>`:null}_renderNoRelatedFeaturesMessage(){return o`<calcite-notice icon=information kind=brand open scale=s width=full><div slot=message>${this.messages?.noRelatedFeatures}</div></calcite-notice>`}_renderFeatureObserver(){return o`<div class="feature-observer" ${S(this._relatedFeatureIntersectionObserverNode)}></div>`}_renderList(){let{relatedFeatureViewModels:e,categories:t}=this;return o`<calcite-list display-mode=flat .label=${this.messages?.relatedFeaturesList??""}>${t?.map(i=>this._renderCategory(i))??e.toArray().map(i=>this._renderRelatedFeature(i))}${this._renderShowAllListItem()}</calcite-list>`}_renderRelatedFeatures(){let{displayListItems:e}=this,{state:t}=this;return o`<div class=${R(L("list",{"list-querying":t==="querying"}))}>${e?this._renderList():t==="ready"?this._renderNoRelatedFeaturesMessage():null}${this._renderStickyLoading()}${this._renderFeatureObserver()}</div>`}_renderRelationshipNotFound(){return o`<calcite-notice icon=exclamation-mark-triangle kind=danger open scale=s width=full><div slot=message>${this.messages?.relationshipNotFound}</div></calcite-notice>`}};Q("arcgis-feature-relationship",E);return E},"applications/Components/stringUtils","applications/Components/sanitizerUtils","applications/Components/featureUtils","intl","core/reactiveUtils","core/Collection","rest/support/RelationshipQuery","core/promiseUtils","popup/FeatureModel",a,b,c)
|