@arcgis/map-components 6.0.0-next.1 → 6.0.0-next.10
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/{ZWN6DXNO.js → 22I5XGTS.js} +2 -2
- package/dist/cdn/{J657IBDC.js → 24KCDMDH.js} +2 -2
- package/dist/cdn/{5CER2N5T.js → 24MLXKMZ.js} +2 -2
- package/dist/cdn/{DMYMCGHJ.js → 26URLKXD.js} +2 -2
- package/dist/cdn/{AAMRTS35.js → 2CEJU3YF.js} +2 -2
- package/dist/cdn/{3A3DGDW5.js → 2CGIS34C.js} +2 -2
- package/dist/cdn/{RPHJDEZH.js → 2KBLNC6Y.js} +2 -2
- package/dist/cdn/{IJLCJVC4.js → 2KPCMM7D.js} +2 -2
- package/dist/cdn/{PYTZ3YBE.js → 2U3VASQT.js} +1 -1
- package/dist/cdn/{XTPRVANS.js → 2UKSCGYU.js} +2 -2
- package/dist/cdn/{7N4V2IN6.js → 366GLQ5R.js} +1 -1
- package/dist/cdn/{43IOCYG5.js → 36ZT6IRE.js} +2 -2
- package/dist/cdn/{CX45KI3X.js → 3C6FN5WT.js} +2 -2
- package/dist/cdn/{GV3IXBBT.js → 3GHQZCMV.js} +2 -2
- package/dist/cdn/{4F2ZWXO2.js → 3ONY25MG.js} +2 -2
- package/dist/cdn/{EKR2SAT2.js → 3UMLR76Y.js} +2 -2
- package/dist/cdn/{OHLJ6POC.js → 3VCGDZEU.js} +2 -2
- package/dist/cdn/{UCTJVPYB.js → 3X4TCM6A.js} +2 -2
- package/dist/cdn/{BLYJE76S.js → 42G6XTIG.js} +2 -2
- package/dist/cdn/42LHTN2R.js +2 -0
- package/dist/cdn/{27MP6TEF.js → 4657ONKJ.js} +2 -2
- package/dist/cdn/4B2TLORL.js +2 -0
- package/dist/cdn/{JCR7S6RP.js → 4EO2342P.js} +2 -2
- package/dist/cdn/{BZR4MSO5.js → 4ER6YIYW.js} +2 -2
- package/dist/cdn/{SXQRPAPL.js → 4HNRKSQ2.js} +2 -2
- package/dist/cdn/{YHKTMUY7.js → 4IWYFG2G.js} +2 -2
- package/dist/cdn/{FMIWBKT4.js → 4KQA2GRX.js} +2 -2
- package/dist/cdn/{JCRPP54Z.js → 4L43F7HU.js} +1 -1
- package/dist/cdn/{XAD4PUBU.js → 4O3HLHQQ.js} +2 -2
- package/dist/cdn/{OUXE3CSQ.js → 4O6FFXUV.js} +2 -2
- package/dist/cdn/4UDLUCTE.js +2 -0
- package/dist/cdn/{DOEKV7G3.js → 4WKWYFIH.js} +2 -2
- package/dist/cdn/{DL57EVZ4.js → 4XERPOOU.js} +2 -2
- package/dist/cdn/{JPKB745U.js → 52CUDGKY.js} +2 -2
- package/dist/cdn/{4TTVVGYW.js → 53OXTCE6.js} +2 -2
- package/dist/cdn/{GQ6SYNZS.js → 54GFXFK4.js} +2 -2
- package/dist/cdn/{RQLMXLJC.js → 5AMF6NZN.js} +2 -2
- package/dist/cdn/{6BLFYSDN.js → 5DY7GHBN.js} +2 -2
- package/dist/cdn/{SFSWQGLY.js → 5ESNA4SF.js} +2 -2
- package/dist/cdn/5ITYFVDX.js +2 -0
- package/dist/cdn/{FFJCCMDZ.js → 5RAIBYCT.js} +2 -2
- package/dist/cdn/{I5ZESLWO.js → 5WKEDXRT.js} +2 -2
- package/dist/cdn/{CQQM24VF.js → 5YHHJ5ZE.js} +2 -2
- package/dist/cdn/{3HS3DM5B.js → 62IE7RFR.js} +2 -2
- package/dist/cdn/{YPNGSV66.js → 65MI3MW2.js} +2 -2
- package/dist/cdn/{BQKVSKYK.js → 677OZNT4.js} +2 -2
- package/dist/cdn/{TC6HL72N.js → 67B7TPGQ.js} +2 -2
- package/dist/cdn/{ELYDZHP5.js → 67PT3A4A.js} +2 -2
- package/dist/cdn/{PRTHX6OC.js → 6A2OF3TO.js} +2 -2
- package/dist/cdn/{POKO37D3.js → 6J3KSMFG.js} +1 -1
- package/dist/cdn/{ITRD7ZY4.js → 6N7GPFZ4.js} +2 -2
- package/dist/cdn/{CORNSRXU.js → 6UYEO5Q7.js} +2 -2
- package/dist/cdn/{GXRPNW37.js → 6VO7G2UX.js} +2 -2
- package/dist/cdn/{AYJQLWX4.js → 75UV3NKU.js} +2 -2
- package/dist/cdn/77U2VO5P.js +2 -0
- package/dist/cdn/{ECNRW3D5.js → 7DFCYS72.js} +2 -2
- package/dist/cdn/{TPC2FJJX.js → 7FFBCPVE.js} +2 -2
- package/dist/cdn/{VWN2LORT.js → 7FGOCFTQ.js} +2 -2
- package/dist/cdn/7HS2SX6W.js +2 -0
- package/dist/cdn/{ZFHHY72B.js → 7JVPR5EI.js} +2 -2
- package/dist/cdn/{Z5C6UBYP.js → 7VDBR3SK.js} +2 -2
- package/dist/cdn/{T4V5O3FK.js → 7VJQVX42.js} +2 -2
- package/dist/cdn/7YHGGHJY.js +2 -0
- package/dist/cdn/{UWKXYCO3.js → A7RLC6ZT.js} +2 -2
- package/dist/cdn/{VCRVQMYT.js → A7SZYQDH.js} +2 -2
- package/dist/cdn/ABOTJ6RE.js +2 -0
- package/dist/cdn/{N2HG34QB.js → AFP64NRH.js} +2 -2
- package/dist/cdn/{RQG75Q2X.js → AIMWEMBX.js} +2 -2
- package/dist/cdn/{TN5C3MSL.js → AL3PLZEE.js} +1 -1
- package/dist/cdn/AN7R3DP5.js +2 -0
- package/dist/cdn/{3LOGBSQP.js → BHCAFGIA.js} +1 -1
- package/dist/cdn/{2CWTV6TC.js → BI2SI2HK.js} +2 -2
- package/dist/cdn/BJWJ6E3L.js +2 -0
- package/dist/cdn/{R2IBOCMY.js → BVTEQMDF.js} +2 -2
- package/dist/cdn/{MW6AOK5D.js → BZQIIXMP.js} +2 -2
- package/dist/cdn/{CF4OY56S.js → C5N4AOB6.js} +2 -2
- package/dist/cdn/{UINNR6FV.js → C5XAFXEL.js} +2 -2
- package/dist/cdn/CF54A7MK.js +2 -0
- package/dist/cdn/{BSTO7TGD.js → CKS5ACAB.js} +2 -2
- package/dist/cdn/{5L5UYV3H.js → CKZBNHMD.js} +1 -1
- package/dist/cdn/CNYZSE22.js +2 -0
- package/dist/cdn/{PLVTYVUG.js → CP5JALYQ.js} +2 -2
- package/dist/cdn/CPYVZPJ7.js +2 -0
- package/dist/cdn/{QPFX5XH3.js → CUVRESLH.js} +2 -2
- package/dist/cdn/CVJOD6H3.js +2 -0
- package/dist/cdn/{IMPFB7YV.js → CWA47RNK.js} +2 -2
- package/dist/cdn/CZVI23H5.js +2 -0
- package/dist/cdn/{VDTRRLON.js → DFUR3C3D.js} +1 -1
- package/dist/cdn/{4T2A7PAO.js → DK7HXJSX.js} +2 -2
- package/dist/cdn/{7FVXPOAG.js → DNE47HSP.js} +2 -2
- package/dist/cdn/DPNB5GBY.js +2 -0
- package/dist/cdn/{XPIX7Z2Q.js → DPVRHPHQ.js} +2 -2
- package/dist/cdn/DTORO2OE.js +2 -0
- package/dist/cdn/{XAADUJ74.js → DUMHDAYP.js} +2 -2
- package/dist/cdn/{VCSX4G2U.js → DY2EOHFD.js} +2 -2
- package/dist/cdn/{3SG4AC5C.js → DYWCAORU.js} +2 -2
- package/dist/cdn/{CGN2BQTU.js → E54VGGFM.js} +2 -2
- package/dist/cdn/{T2DT5I33.js → EH4CBZNF.js} +1 -1
- package/dist/cdn/{B476G3EX.js → EJKAIZAE.js} +2 -2
- package/dist/cdn/{N4MW5VBL.js → EK7Y6JBZ.js} +2 -2
- package/dist/cdn/{YOUMOTN3.js → EMXGW73P.js} +2 -2
- package/dist/cdn/{ZPH7M75T.js → ENDFTFEF.js} +2 -2
- package/dist/cdn/{HZX7MSQG.js → ESOCZAMZ.js} +2 -2
- package/dist/cdn/{TILA2OKK.js → ET4UP4EQ.js} +2 -2
- package/dist/cdn/{FNSGB45I.js → EV7IIQBP.js} +2 -2
- package/dist/cdn/F4S2DPYN.js +2 -0
- package/dist/cdn/{PEH4U3YV.js → F5IHFPKA.js} +2 -2
- package/dist/cdn/{3WTBTYMS.js → F5JYYT42.js} +1 -1
- package/dist/cdn/F6CXHAHU.js +2 -0
- package/dist/cdn/{YPNJ5V4R.js → FBV5KXOY.js} +2 -2
- package/dist/cdn/{J23DTKII.js → FF7BSRYW.js} +2 -2
- package/dist/cdn/{IZ46HAUJ.js → FH3WFF5O.js} +1 -1
- package/dist/cdn/{LHFB44QW.js → FHBTVQHP.js} +2 -2
- package/dist/cdn/{7EQZKGJN.js → FHHVGI4H.js} +2 -2
- package/dist/cdn/FIZMK7GS.js +1 -0
- package/dist/cdn/{IRZGEFF5.js → FPPWXIBA.js} +2 -2
- package/dist/cdn/{6J55YK5V.js → FQSHLYKX.js} +2 -2
- package/dist/cdn/{3MQPSWL6.js → FSBLGH6E.js} +2 -2
- package/dist/cdn/{TZ2LE7KS.js → FTCHTEUY.js} +2 -2
- package/dist/cdn/{BAOWXZTE.js → FXUZU52U.js} +1 -1
- package/dist/cdn/FYR4QVEY.js +2 -0
- package/dist/cdn/{GVZKVOM7.js → FZAQZSRA.js} +2 -2
- package/dist/cdn/{2COOBXHG.js → G72ISZDZ.js} +2 -2
- package/dist/cdn/{GU3M4JMW.js → GDLDEHUJ.js} +1 -1
- package/dist/cdn/{A4U2PDJP.js → GHVT7W4O.js} +2 -2
- package/dist/cdn/{CZOM5NWO.js → GJKFDTVX.js} +2 -2
- package/dist/cdn/GJTUYTTG.js +2 -0
- package/dist/cdn/{SBIOND5K.js → GK47522P.js} +2 -2
- package/dist/cdn/{7DAQGPGD.js → GLQMCCUM.js} +2 -2
- package/dist/cdn/{RZQNEEP6.js → GNSNEUMI.js} +2 -2
- package/dist/cdn/{CJ4KIA26.js → GNWRCB5F.js} +2 -2
- package/dist/cdn/{MKCJXRXB.js → GS2HJTMU.js} +2 -2
- package/dist/cdn/{2DKTF2EL.js → GSVPPSX6.js} +2 -2
- package/dist/cdn/{VWFQCWGB.js → GUHSWQMF.js} +2 -2
- package/dist/cdn/{XEK22IDA.js → GUL7EIJ4.js} +1 -1
- package/dist/cdn/{EDTGV4YF.js → GUZCA62E.js} +2 -2
- package/dist/cdn/{HCN3UC4W.js → GUZYCRYS.js} +2 -2
- package/dist/cdn/{276JOEH5.js → H4LMELM2.js} +2 -2
- package/dist/cdn/{OX55WUIT.js → H7NR6B6S.js} +2 -2
- package/dist/cdn/HA4XWZH4.js +2 -0
- package/dist/cdn/{SFFTE3TG.js → HDHWPKJ4.js} +2 -2
- package/dist/cdn/{4WP4DUBT.js → HEIKRBJK.js} +2 -2
- package/dist/cdn/{MEZHGYCH.js → HGP7GVZU.js} +2 -2
- package/dist/cdn/{RKTSSP3O.js → HI7BF3DL.js} +2 -2
- package/dist/cdn/HIBFGEAJ.js +2 -0
- package/dist/cdn/{UPZVIKOH.js → HJVHORPG.js} +2 -2
- package/dist/cdn/{N6VSP7BU.js → HKLBQ7JD.js} +2 -2
- package/dist/cdn/{JBHRVHGS.js → HPWF3IQV.js} +2 -2
- package/dist/cdn/{DPPZZO5W.js → HQDOPV3Q.js} +2 -2
- package/dist/cdn/HQSY7TKA.js +2 -0
- package/dist/cdn/{UMHGXP3S.js → HQWUQFN5.js} +2 -2
- package/dist/cdn/{TMJX7DFH.js → HU57LQOA.js} +1 -1
- package/dist/cdn/{YWS5RHVM.js → HWKMLOOG.js} +2 -2
- package/dist/cdn/{KKP7ZZUD.js → HYMCX7JZ.js} +2 -2
- package/dist/cdn/{5763ZV75.js → HZTF3LOF.js} +2 -2
- package/dist/cdn/{BIWQEPK4.js → I4AEBGQM.js} +2 -2
- package/dist/cdn/{VEAJ52RN.js → IAWXCNTX.js} +2 -2
- package/dist/cdn/{FMBY3L4S.js → IBN4TKBI.js} +2 -2
- package/dist/cdn/{JAZGNQRP.js → IFR4IYSI.js} +2 -2
- package/dist/cdn/{27GJE7OY.js → IHUJKT47.js} +2 -2
- package/dist/cdn/IITDAOGZ.js +2 -0
- package/dist/cdn/{O7RSAJOS.js → IM6IDWYR.js} +1 -1
- package/dist/cdn/{I2A6UYGZ.js → IQOSVEZ5.js} +2 -2
- package/dist/cdn/{4PGC5LTJ.js → J3FRSWZD.js} +2 -2
- package/dist/cdn/{QX33OCXB.js → J3IDFYN3.js} +2 -2
- package/dist/cdn/{Y4WOZJQX.js → J4CHCFLS.js} +2 -2
- package/dist/cdn/{WBI4RS3V.js → JQ4K46KY.js} +2 -2
- package/dist/cdn/{54CLZESW.js → JQ7MMDQT.js} +2 -2
- package/dist/cdn/{IDKRMHDS.js → JXQEGZDB.js} +1 -1
- package/dist/cdn/{3YXCLF3K.js → JXU37SH6.js} +2 -2
- package/dist/cdn/{MUWOF7W4.js → JZHZCJTJ.js} +2 -2
- package/dist/cdn/{I23AZWQL.js → K23R26AN.js} +2 -2
- package/dist/cdn/{5UOXHOVU.js → K7ELALW4.js} +2 -2
- package/dist/cdn/{H77SMV46.js → K7XSWKZ2.js} +2 -2
- package/dist/cdn/{HLGU3U73.js → KBA5OIES.js} +2 -2
- package/dist/cdn/{XPGC5GAG.js → KCLVDXWB.js} +2 -2
- package/dist/cdn/KKLTZBSE.js +2 -0
- package/dist/cdn/{SP73K22L.js → KRMN6HAV.js} +2 -2
- package/dist/cdn/{5SL2HI4G.js → KVYBIOH5.js} +2 -2
- package/dist/cdn/{ALROLX35.js → L46JLXJT.js} +2 -2
- package/dist/cdn/{JD74LG7K.js → L5IRXOCJ.js} +1 -1
- package/dist/cdn/{QOQRNYM5.js → L7DFXEAX.js} +2 -2
- package/dist/cdn/{YKSVOTDV.js → LBSIU6XT.js} +2 -2
- package/dist/cdn/{M7LDGJG6.js → LC37F7HF.js} +2 -2
- package/dist/cdn/{JE6NC2E6.js → LH2T4TMP.js} +2 -2
- package/dist/cdn/{V2GMDCVJ.js → LKAJVIS2.js} +2 -2
- package/dist/cdn/LOOJWRCW.js +2 -0
- package/dist/cdn/{3JCF73F4.js → LUTUHOKB.js} +2 -2
- package/dist/cdn/{BEFZSVBT.js → LW4IDPBB.js} +2 -2
- package/dist/cdn/{6NWR2Z4F.js → LY6LSUSY.js} +2 -2
- package/dist/cdn/LZVMUNZC.js +2 -0
- package/dist/cdn/M3ZQGUYQ.js +2 -0
- package/dist/cdn/{RFSBZHJD.js → M4D5WUVD.js} +2 -2
- package/dist/cdn/{SQYMNL75.js → MA2GVVQJ.js} +2 -2
- package/dist/cdn/MA7GBKLW.js +2 -0
- package/dist/cdn/MBGCAZPS.js +4 -0
- package/dist/cdn/{GQXUCZYM.js → MCMACXJV.js} +2 -2
- package/dist/cdn/{7VVOJSSE.js → MDWBYUFG.js} +2 -2
- package/dist/cdn/{4WXSFT6G.js → MGBFC5IV.js} +2 -2
- package/dist/cdn/{3O4SVNIK.js → MICLX7QW.js} +2 -2
- package/dist/cdn/{RHNZWKZV.js → MMYODAC2.js} +2 -2
- package/dist/cdn/{VSDQVSOV.js → MNSGXIJP.js} +2 -2
- package/dist/cdn/{HX4CSRAB.js → MWIDHMQZ.js} +2 -2
- package/dist/cdn/{AYNGSZAL.js → N3DTZRST.js} +2 -2
- package/dist/cdn/{3NL42TBJ.js → N5KEEUBQ.js} +2 -2
- package/dist/cdn/{CEUIFOR6.js → NB7O2TXG.js} +1 -1
- package/dist/cdn/{DJTW52JH.js → ND7BSIVO.js} +1 -1
- package/dist/cdn/{QWOOD63Q.js → NDCZFJEK.js} +3 -3
- package/dist/cdn/{3A7S62FX.js → NFCFPU7K.js} +2 -2
- package/dist/cdn/NWFGMNGG.js +2 -0
- package/dist/cdn/{45JO7F4Y.js → NWRWQZGL.js} +2 -2
- package/dist/cdn/{2AQYGR7K.js → NY7RHFLZ.js} +2 -2
- package/dist/cdn/{ISIH65JW.js → O5YJPUFM.js} +2 -2
- package/dist/cdn/{TU6ZG6ZI.js → O6HYZKBU.js} +2 -2
- package/dist/cdn/{MPKC74OS.js → OAMA6SL3.js} +2 -2
- package/dist/cdn/{5XVK5ZBK.js → OAMPGCZF.js} +2 -2
- package/dist/cdn/{COKGOKO2.js → OCFIQBYK.js} +2 -2
- package/dist/cdn/{QMYL4UM7.js → OCQXPA57.js} +2 -2
- package/dist/cdn/{IXWGGAVX.js → OICQWHES.js} +2 -2
- package/dist/cdn/{XAMLHDWZ.js → ONFKLY6Q.js} +2 -2
- package/dist/cdn/{4RMVG2NH.js → OP3APZ4U.js} +2 -2
- package/dist/cdn/{H5AYEQ6D.js → OUC5HWPQ.js} +2 -2
- package/dist/cdn/{OCLOCCB6.js → OX3WBUBR.js} +2 -2
- package/dist/cdn/{HX4CDWS4.js → P2I63WVL.js} +2 -2
- package/dist/cdn/{7DDCU3NB.js → P35MNXU2.js} +2 -2
- package/dist/cdn/{Q22KIHFH.js → PBHNO4J7.js} +2 -2
- package/dist/cdn/{2GDB3C5I.js → PBYHBRG7.js} +2 -2
- package/dist/cdn/{XURL7UVF.js → PDH2DA3L.js} +2 -2
- package/dist/cdn/{7MOL5GJB.js → PGSBUAGV.js} +2 -2
- package/dist/cdn/{WJZZ7SZO.js → PGUZODKZ.js} +2 -2
- package/dist/cdn/{KBHLE7HT.js → PIDNZKSJ.js} +2 -2
- package/dist/cdn/{NBHZZ4E6.js → PKMTOHZH.js} +2 -2
- package/dist/cdn/{AW3C3DKA.js → PPAFKBPN.js} +2 -2
- package/dist/cdn/{WCEDE4CZ.js → PPVXOP43.js} +2 -2
- package/dist/cdn/{5M56ZA46.js → PS3KSP2J.js} +2 -2
- package/dist/cdn/{NRJ6LV6O.js → PWHXRRFU.js} +2 -2
- package/dist/cdn/{3XEPXV4Q.js → PY5VGH7F.js} +2 -2
- package/dist/cdn/PZUVKZGQ.js +2 -0
- package/dist/cdn/Q3B3NI7P.js +2 -0
- package/dist/cdn/QCVMDYJD.js +2 -0
- package/dist/cdn/{RAOEF6YV.js → QEPANMVK.js} +2 -2
- package/dist/cdn/{OGAUCGGG.js → QKZ552KI.js} +2 -2
- package/dist/cdn/{BKVCAAPF.js → QLXQ4L2R.js} +2 -2
- package/dist/cdn/{CESFJ6AD.js → QNBNH7ME.js} +2 -2
- package/dist/cdn/{CL2NYK7A.js → QOIURU47.js} +2 -2
- package/dist/cdn/{7V7IKYJG.js → QPSAD5DG.js} +2 -2
- package/dist/cdn/QSZL5NEG.js +2 -0
- package/dist/cdn/{6IVEAPNI.js → QT7GRA34.js} +2 -2
- package/dist/cdn/{KO7RD6SS.js → QVAB57VJ.js} +2 -2
- package/dist/cdn/{3PVLBFNC.js → QWIDIEXY.js} +2 -2
- package/dist/cdn/{EAM45WZP.js → R2D2TXL4.js} +2 -2
- package/dist/cdn/{RYYBMDGS.js → R2P5JM7G.js} +2 -2
- package/dist/cdn/{TNFZHEWD.js → R4FDXNHP.js} +2 -2
- package/dist/cdn/{6GFUBVBL.js → R5QMO5FY.js} +2 -2
- package/dist/cdn/{S6M66TIN.js → R5YW65AI.js} +2 -2
- package/dist/cdn/{Y2UYA3OR.js → R6C6U6JB.js} +2 -2
- package/dist/cdn/{Q73T55TC.js → R6X7LUKH.js} +2 -2
- package/dist/cdn/{LQ76PRWK.js → REGHMH6D.js} +2 -2
- package/dist/cdn/RLXUS2AY.js +2 -0
- package/dist/cdn/RNF5KVNY.js +2 -0
- package/dist/cdn/{F5WKI5HZ.js → RQ2YV64E.js} +2 -2
- package/dist/cdn/{YLC4L2QV.js → RRSU6QD4.js} +2 -2
- package/dist/cdn/{AZ73DBU3.js → RUW7CDCH.js} +2 -2
- package/dist/cdn/{DSDPDMLP.js → RUYAWRPV.js} +2 -2
- package/dist/cdn/{AAUN23S6.js → RVEUCXT4.js} +2 -2
- package/dist/cdn/{3L2J4JFP.js → RZGWZ2FJ.js} +2 -2
- package/dist/cdn/{WVRJQQKH.js → S6BPBG7D.js} +2 -2
- package/dist/cdn/{55AW5TTI.js → SAOLD6MH.js} +2 -2
- package/dist/cdn/{ZUAR3LO3.js → SCYBJTZA.js} +2 -2
- package/dist/cdn/{DMYAI77Y.js → SG55TVJ5.js} +2 -2
- package/dist/cdn/{YAEJKOYY.js → SIFBGT4D.js} +2 -2
- package/dist/cdn/SKP3TGF4.js +2 -0
- package/dist/cdn/{4MJJOPAL.js → SOZWCZ7A.js} +1 -1
- package/dist/cdn/SQPX5U3U.js +2 -0
- package/dist/cdn/{YU5BTZEI.js → SZ3T7YEB.js} +1 -1
- package/dist/cdn/{Z4WS2RBO.js → TA723HWT.js} +2 -2
- package/dist/cdn/{H6RQVSYM.js → TAVTDQ6S.js} +1 -1
- package/dist/cdn/{IU22RA7Z.js → TDGAGI7B.js} +2 -2
- package/dist/cdn/{4WAV5GOL.js → TEOOLQG2.js} +2 -2
- package/dist/cdn/TFADSF2R.js +2 -0
- package/dist/cdn/{JBR3FYAN.js → THJMCEEO.js} +2 -2
- package/dist/cdn/{3DUIQTNG.js → TKILR2SM.js} +2 -2
- package/dist/cdn/{4RGFCQOB.js → TMTFZSJS.js} +1 -1
- package/dist/cdn/{OBMM7WJD.js → TPVHN6P2.js} +2 -2
- package/dist/cdn/{VTCM7AV2.js → TSNUOFL7.js} +2 -2
- package/dist/cdn/{GT6FFZHJ.js → TYHCB472.js} +2 -2
- package/dist/cdn/{E5JCJOB3.js → U5DIWFPP.js} +2 -2
- package/dist/cdn/{VABVK3ZN.js → UFRX7JW5.js} +2 -2
- package/dist/cdn/{H4FH2RBM.js → UHI54OG6.js} +2 -2
- package/dist/cdn/{J6MU74RO.js → UMOO7WYM.js} +2 -2
- package/dist/cdn/{QTDJVI5F.js → UTV2A7J4.js} +2 -2
- package/dist/cdn/{BIU6VS3K.js → UZLEFNJL.js} +1 -1
- package/dist/cdn/{LL7R6ETJ.js → V2YPYCU6.js} +2 -2
- package/dist/cdn/{ZW2ZBNX2.js → V3BFPL23.js} +2 -2
- package/dist/cdn/{E4NTQBM3.js → V4JEBKPJ.js} +2 -2
- package/dist/cdn/{QMQV37ML.js → V62TVP3T.js} +2 -2
- package/dist/cdn/{CROCDACG.js → VDEMMP33.js} +2 -2
- package/dist/cdn/{B4CANXID.js → VKRAWBPC.js} +2 -2
- package/dist/cdn/{XYNRLVTU.js → VTCE3YQW.js} +2 -2
- package/dist/cdn/{ZVZVHZYX.js → VUAYNF3K.js} +2 -2
- package/dist/cdn/{24DOFGMG.js → VYOH4T4L.js} +2 -2
- package/dist/cdn/{26LWK3XB.js → VZ6UFS6H.js} +2 -2
- package/dist/cdn/{TZ6WQV6O.js → W275EQEJ.js} +2 -2
- package/dist/cdn/{IFMBHZHX.js → WBBTZNZU.js} +2 -2
- package/dist/cdn/{D3LYSFXK.js → WEOKELJE.js} +2 -2
- package/dist/cdn/{VJVKFKSG.js → WJQUE4DR.js} +1 -1
- package/dist/cdn/WK4TNKKC.js +2 -0
- package/dist/cdn/{5V2DO6ZW.js → WS46QSWM.js} +2 -2
- package/dist/cdn/{D47546HM.js → XHOI3WNI.js} +1 -1
- package/dist/cdn/XKCB2DEP.js +2 -0
- package/dist/cdn/{VJE33ARY.js → XP74F2F6.js} +2 -2
- package/dist/cdn/{3E56Q4ZY.js → XPC6K7AE.js} +2 -2
- package/dist/cdn/XSE3E4FM.js +2 -0
- package/dist/cdn/{PXAY7IM4.js → XULIO6Y3.js} +2 -2
- package/dist/cdn/{4W35GLNO.js → Y37UMTGV.js} +2 -2
- package/dist/cdn/{X3DQNCTZ.js → Y6764PBB.js} +2 -2
- package/dist/cdn/{CIUI5B52.js → Y6ZXMGO2.js} +2 -2
- package/dist/cdn/{3ZXNGXHC.js → Y77AVOAH.js} +1 -1
- package/dist/cdn/{CUF7GCDT.js → YCHVPSSP.js} +2 -2
- package/dist/cdn/{B5GJ5JEW.js → YDZZPLVB.js} +2 -2
- package/dist/cdn/{OJXNUBIA.js → YHPASRFL.js} +2 -2
- package/dist/cdn/{R3IITUG6.js → YODE6QAO.js} +2 -2
- package/dist/cdn/{E53ARLWV.js → YTLRTUMD.js} +2 -2
- package/dist/cdn/{XJ6DZ6AN.js → Z2UUXST4.js} +2 -2
- package/dist/cdn/{EESGZV4K.js → Z6AVJWLP.js} +2 -2
- package/dist/cdn/{JIQ4P34C.js → Z7H4V2JZ.js} +2 -2
- package/dist/cdn/{GF7RZ4IH.js → ZAUG5MSY.js} +2 -2
- package/dist/cdn/{5SLLYIWJ.js → ZBC5RBCD.js} +2 -2
- package/dist/cdn/{FCNNRX3Q.js → ZCFWKPXL.js} +1 -1
- package/dist/cdn/{KT7MEZHJ.js → ZF4DFDLT.js} +2 -2
- package/dist/cdn/{YWC5AUFV.js → ZGOAZB5L.js} +1 -1
- package/dist/cdn/{QJWFZYU4.js → ZHSESERJ.js} +2 -2
- package/dist/cdn/{EOTKZ4F3.js → ZIBQTNB6.js} +2 -2
- package/dist/cdn/{WQMZ7BDQ.js → ZKWI43WZ.js} +2 -2
- package/dist/cdn/{SREWXCMU.js → ZO7TUIUE.js} +2 -2
- package/dist/cdn/ZSPYPXBY.js +2 -0
- package/dist/cdn/assets/bookmarks/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 +2 -2
- package/dist/chunks/AnalysisViewModel.js +1 -1
- package/dist/chunks/GeolocationPositioning.js +1 -1
- package/dist/chunks/action-utils.js +1 -1
- package/dist/chunks/async-utils.js +1 -1
- package/dist/chunks/attachment-utils.js +1 -1
- package/dist/chunks/chart-utils.js +1 -1
- package/dist/chunks/chartCommon.js +1 -1
- package/dist/chunks/clipoardSymbolHelper.js +1 -1
- package/dist/chunks/component-utils.js +1 -1
- package/dist/chunks/component-wrapper.js +1 -1
- package/dist/chunks/constants.js +1 -1
- package/dist/chunks/constants2.js +1 -1
- package/dist/chunks/css.js +1 -1
- package/dist/chunks/dateUtils.js +2 -2
- package/dist/chunks/earth-utils.js +1 -1
- package/dist/chunks/esri-main.js +2 -2
- package/dist/chunks/feature-utils.js +1 -1
- package/dist/chunks/field.js +1 -1
- package/dist/chunks/formattingUtils.js +1 -1
- package/dist/chunks/globalCss.js +1 -1
- package/dist/chunks/goTo.js +1 -1
- package/dist/chunks/graphicsLayerController.js +1 -1
- package/dist/chunks/handle.js +1 -1
- package/dist/chunks/heading.js +1 -1
- package/dist/chunks/keyboard-utils.js +1 -1
- package/dist/chunks/layer-list-next.js +1 -1
- package/dist/chunks/layer-list-utils.js +1 -1
- package/dist/chunks/layer-utils.js +1 -1
- package/dist/chunks/layer-utils2.js +1 -1
- package/dist/chunks/legacyIcon.js +1 -1
- package/dist/chunks/maybe.js +1 -1
- package/dist/chunks/measurementUtils.js +1 -1
- package/dist/chunks/print-exports-panel-item-popover.js +1 -1
- package/dist/chunks/resources.js +1 -1
- package/dist/chunks/runtime.js +2 -2
- package/dist/chunks/screenLocation.js +1 -1
- package/dist/chunks/slots.js +2 -2
- package/dist/chunks/sr.js +1 -1
- package/dist/chunks/svgUtils.js +1 -1
- package/dist/chunks/time-utils.js +1 -1
- package/dist/chunks/titleUtils.js +1 -1
- package/dist/chunks/types.js +1 -1
- package/dist/chunks/univariateUtils.js +1 -1
- package/dist/chunks/urlUtils.js +1 -1
- package/dist/chunks/useArcgisViewReadyError.js +121 -107
- package/dist/chunks/useCloseEvent.js +1 -1
- package/dist/chunks/useLayerById.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/useView.js +1 -1
- package/dist/chunks/useViewModel.js +1 -1
- package/dist/chunks/useWidget.js +1 -1
- package/dist/chunks/utils.js +1 -1
- package/dist/chunks/utils2.js +1 -1
- package/dist/chunks/utils3.js +1 -1
- package/dist/chunks/utils4.js +1 -1
- package/dist/chunks/utils5.js +1 -1
- package/dist/chunks/utils6.js +1 -1
- package/dist/chunks/video-utils.js +1 -1
- package/dist/chunks/visible-element.js +1 -1
- package/dist/chunks/zoom.js +1 -1
- package/dist/components/arcgis-add-attachment-view/customElement.js +1 -1
- package/dist/components/arcgis-aggregated-features/customElement.js +1 -1
- package/dist/components/arcgis-area-measurement-2d/customElement.d.ts +8 -3
- package/dist/components/arcgis-area-measurement-2d/customElement.js +14 -14
- package/dist/components/arcgis-area-measurement-3d/customElement.d.ts +8 -3
- package/dist/components/arcgis-area-measurement-3d/customElement.js +1 -1
- package/dist/components/arcgis-attachment-preview/customElement.js +1 -1
- package/dist/components/arcgis-attachment-thumbnail/customElement.js +1 -1
- package/dist/components/arcgis-attachment-validation-view/customElement.js +1 -1
- package/dist/components/arcgis-attachments/customElement.js +1 -1
- package/dist/components/arcgis-basemap-gallery/customElement.d.ts +4 -4
- package/dist/components/arcgis-basemap-gallery/customElement.js +11 -11
- package/dist/components/arcgis-basemap-gallery-item/customElement.js +1 -1
- package/dist/components/arcgis-basemap-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-basemap-layer-list-next/customElement.js +1 -1
- package/dist/components/arcgis-basemap-toggle/customElement.js +1 -1
- package/dist/components/arcgis-bookmarks/customElement.js +1 -1
- package/dist/components/arcgis-building-discipline-tree/customElement.js +1 -1
- package/dist/components/arcgis-building-explorer/customElement.js +1 -1
- package/dist/components/arcgis-building-level-item/customElement.js +2 -2
- package/dist/components/arcgis-building-level-picker/customElement.js +1 -1
- package/dist/components/arcgis-building-phase-picker/customElement.js +1 -1
- package/dist/components/arcgis-catalog-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-catalog-layer-list-next/customElement.d.ts +3 -3
- package/dist/components/arcgis-catalog-layer-list-next/customElement.js +1 -1
- package/dist/components/arcgis-clipboard/customElement.js +1 -1
- package/dist/components/arcgis-color-select/customElement.js +1 -1
- package/dist/components/arcgis-compass/customElement.js +1 -1
- package/dist/components/arcgis-coordinate-conversion/customElement.js +1 -1
- package/dist/components/arcgis-coordinate-conversion-next/customElement.js +1 -1
- package/dist/components/arcgis-daylight/customElement.js +1 -1
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.d.ts +8 -3
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +1 -1
- package/dist/components/arcgis-directional-pad/customElement.js +1 -1
- package/dist/components/arcgis-directions/customElement.js +1 -1
- package/dist/components/arcgis-distance-measurement-2d/customElement.d.ts +8 -3
- package/dist/components/arcgis-distance-measurement-2d/customElement.js +27 -27
- package/dist/components/arcgis-editor/customElement.d.ts +18 -5
- package/dist/components/arcgis-editor/customElement.js +4 -1
- package/dist/components/arcgis-elevation-profile/customElement.d.ts +15 -7
- package/dist/components/arcgis-elevation-profile/customElement.js +94 -90
- package/dist/components/arcgis-elevation-profile-legend/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-legend-item/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-settings/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-statistics/customElement.js +1 -1
- package/dist/components/arcgis-expand/customElement.js +1 -1
- package/dist/components/arcgis-exploratory-analysis/customElement.d.ts +7 -0
- package/dist/components/arcgis-exploratory-analysis/customElement.js +52 -52
- package/dist/components/arcgis-feature/customElement.js +1 -1
- package/dist/components/arcgis-feature-attachments/customElement.js +1 -1
- package/dist/components/arcgis-feature-content/customElement.js +1 -1
- package/dist/components/arcgis-feature-element-info/customElement.js +1 -1
- package/dist/components/arcgis-feature-expression/customElement.js +1 -1
- package/dist/components/arcgis-feature-fields/customElement.js +21 -21
- package/dist/components/arcgis-feature-form/customElement.js +1 -1
- package/dist/components/arcgis-feature-form-field/customElement.js +1 -1
- package/dist/components/arcgis-feature-form-field-number/customElement.js +1 -1
- package/dist/components/arcgis-feature-form-text/customElement.js +1 -1
- package/dist/components/arcgis-feature-form-utility-network-association-list/customElement.js +1 -1
- package/dist/components/arcgis-feature-form-utility-network-association-settings/customElement.js +1 -1
- package/dist/components/arcgis-feature-image/customElement.js +1 -1
- package/dist/components/arcgis-feature-media/customElement.js +1 -1
- package/dist/components/arcgis-feature-next/customElement.js +1 -1
- package/dist/components/arcgis-feature-relationship/customElement.js +1 -1
- package/dist/components/arcgis-feature-table/customElement.js +1 -1
- package/dist/components/arcgis-feature-templates/customElement.js +1 -1
- package/dist/components/arcgis-feature-templates-legacy/customElement.js +1 -1
- package/dist/components/arcgis-feature-title/customElement.js +1 -1
- package/dist/components/arcgis-feature-utility-network-association-list/customElement.js +1 -1
- package/dist/components/arcgis-feature-utility-network-associations/customElement.js +1 -1
- package/dist/components/arcgis-features/customElement.d.ts +1 -1
- package/dist/components/arcgis-features/customElement.js +1 -1
- package/dist/components/arcgis-features-next/customElement.d.ts +2 -2
- package/dist/components/arcgis-features-next/customElement.js +103 -93
- package/dist/components/arcgis-file-picker/customElement.js +1 -1
- package/dist/components/arcgis-filter-builder/customElement.js +1 -1
- package/dist/components/arcgis-floor-filter/customElement.js +1 -1
- package/dist/components/arcgis-fullscreen/customElement.js +1 -1
- package/dist/components/arcgis-grid-controls/customElement.js +1 -1
- package/dist/components/arcgis-histogram-range-slider/customElement.js +1 -1
- package/dist/components/arcgis-home/customElement.js +1 -1
- package/dist/components/arcgis-labeled-switch/customElement.js +1 -1
- package/dist/components/arcgis-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-layer-list-item-indicator/customElement.js +1 -1
- package/dist/components/arcgis-layer-list-item-panel/customElement.js +1 -1
- package/dist/components/arcgis-layer-list-next/customElement.d.ts +1 -1
- package/dist/components/arcgis-layer-list-next/customElement.js +1 -1
- package/dist/components/arcgis-layer-list-next/layer-list-item/customElement.js +1 -1
- package/dist/components/arcgis-legend/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-color-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-element/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-size-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-univariate-above-and-below-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-univariate-color-size-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-view/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-color-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-element/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-size-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-univariate-above-and-below-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-univariate-color-size-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-view/customElement.js +1 -1
- package/dist/components/arcgis-legend-relationship-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-spike-ramp/customElement.js +1 -1
- package/dist/components/arcgis-line-of-sight/customElement.d.ts +3 -0
- package/dist/components/arcgis-line-of-sight/customElement.js +2 -2
- package/dist/components/arcgis-link-chart/customElement.d.ts +24 -20
- package/dist/components/arcgis-link-chart/customElement.js +6 -6
- package/dist/components/arcgis-link-chart-layout-switcher/customElement.js +1 -1
- package/dist/components/arcgis-link-chart-nonspatial-visibility-toggle/customElement.js +1 -1
- package/dist/components/arcgis-locate/customElement.js +1 -1
- package/dist/components/arcgis-map/customElement.d.ts +41 -36
- package/dist/components/arcgis-map/customElement.js +10 -10
- package/dist/components/arcgis-measurement-content/customElement.js +7 -7
- package/dist/components/arcgis-multi-feature-form/customElement.js +1 -1
- package/dist/components/arcgis-navigation-toggle/customElement.js +1 -1
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.d.ts +10 -2
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +9 -6
- package/dist/components/arcgis-oriented-imagery-viewer-non-panoramic-viewer/customElement.js +1 -1
- package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer/customElement.js +1 -1
- package/dist/components/arcgis-oriented-imagery-viewer-panoramic-viewer-zoom/customElement.js +1 -1
- package/dist/components/arcgis-oriented-imagery-viewer-video-controls/customElement.js +1 -1
- package/dist/components/arcgis-paste/customElement.js +1 -1
- package/dist/components/arcgis-popup/customElement.d.ts +2 -2
- package/dist/components/arcgis-popup/customElement.js +33 -29
- package/dist/components/arcgis-presentation/customElement.js +1 -1
- package/dist/components/arcgis-presentation-captions/customElement.js +1 -1
- package/dist/components/arcgis-presentation-slide-list/customElement.js +1 -1
- package/dist/components/arcgis-print/customElement.js +1 -1
- package/dist/components/arcgis-print-custom-text-elements/customElement.js +1 -1
- package/dist/components/arcgis-print-datum-transformation-input/customElement.js +18 -18
- package/dist/components/arcgis-print-dpi-input/customElement.js +1 -1
- package/dist/components/arcgis-print-export-button/customElement.js +1 -1
- package/dist/components/arcgis-print-exports-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-exports-panel-item-popover/customElement.js +1 -1
- package/dist/components/arcgis-print-format-select/customElement.js +1 -1
- package/dist/components/arcgis-print-layout-advanced-options/customElement.js +1 -1
- package/dist/components/arcgis-print-layout-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-main-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-map-only-advanced-options/customElement.js +1 -1
- package/dist/components/arcgis-print-map-only-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-out-spatial-reference-input/customElement.js +1 -1
- package/dist/components/arcgis-print-preview-input/customElement.js +1 -1
- package/dist/components/arcgis-print-scale-section/customElement.js +1 -1
- package/dist/components/arcgis-print-template-select/customElement.js +1 -1
- package/dist/components/arcgis-print-template-selector/customElement.js +1 -1
- package/dist/components/arcgis-reverse-geocode-list/customElement.js +1 -1
- package/dist/components/arcgis-scale-bar/customElement.js +1 -1
- package/dist/components/arcgis-scale-range-slider/customElement.js +1 -1
- package/dist/components/arcgis-scene/customElement.d.ts +24 -20
- package/dist/components/arcgis-scene/customElement.js +10 -10
- package/dist/components/arcgis-search/customElement.js +1 -1
- package/dist/components/arcgis-search-result-renderer/customElement.js +1 -1
- package/dist/components/arcgis-selection-list/customElement.d.ts +0 -1
- package/dist/components/arcgis-selection-list/customElement.js +1 -1
- package/dist/components/arcgis-selection-toolbar/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast-discrete-config/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast-min-duration-config/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast-total-duration-config/customElement.js +1 -1
- package/dist/components/arcgis-sketch/customElement.d.ts +18 -7
- package/dist/components/arcgis-sketch/customElement.js +1 -1
- package/dist/components/arcgis-sketch-tooltip-controls/customElement.js +1 -1
- package/dist/components/arcgis-slice/customElement.js +25 -25
- package/dist/components/arcgis-slider-binary-color-size-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-classed-color-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-classed-size-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-color-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-color-size-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-heatmap-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-opacity-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-scale-range/customElement.js +1 -1
- package/dist/components/arcgis-slider-size-legacy/customElement.js +1 -1
- package/dist/components/arcgis-snapping-controls/customElement.js +1 -1
- package/dist/components/arcgis-spinner/customElement.js +1 -1
- package/dist/components/arcgis-swipe/customElement.js +1 -1
- package/dist/components/arcgis-table-list/customElement.js +1 -1
- package/dist/components/arcgis-table-list-next/customElement.d.ts +1 -1
- package/dist/components/arcgis-table-list-next/customElement.js +1 -1
- package/dist/components/arcgis-template-image/customElement.js +1 -1
- package/dist/components/arcgis-time-bar/customElement.js +25 -26
- package/dist/components/arcgis-time-bar-date/customElement.js +1 -1
- package/dist/components/arcgis-time-bar-extent/customElement.js +1 -1
- package/dist/components/arcgis-time-bar-settings/customElement.js +1 -1
- package/dist/components/arcgis-time-bar-slider/customElement.js +47 -46
- package/dist/components/arcgis-time-of-day-slider/customElement.js +1 -1
- package/dist/components/arcgis-time-slider/customElement.js +1 -1
- package/dist/components/arcgis-time-zone-chip/customElement.js +1 -1
- package/dist/components/arcgis-time-zone-label/customElement.js +1 -1
- package/dist/components/arcgis-time-zone-selector/customElement.js +1 -1
- package/dist/components/arcgis-track/customElement.d.ts +1 -1
- package/dist/components/arcgis-track/customElement.js +1 -1
- package/dist/components/arcgis-unit-radio-button-group/customElement.js +1 -1
- package/dist/components/arcgis-unit-select/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-association-list/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-associations/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-picker/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-aggregated-geometry-result-item/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +17 -17
- package/dist/components/arcgis-utility-network-trace-configuration-picker/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-elements-result-item/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-functions-result-item/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-locations/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-results-pane/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-validate-network-topology/customElement.js +2 -2
- package/dist/components/arcgis-utility-network-validate-topology/customElement.js +1 -1
- package/dist/components/arcgis-value-picker-legacy/customElement.js +1 -1
- package/dist/components/arcgis-version-management/customElement.js +38 -38
- package/dist/components/arcgis-version-management-service-item/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-list/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-list-item/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-properties/customElement.js +1 -1
- package/dist/components/arcgis-video/customElement.js +7 -7
- 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/customElement.js +1 -1
- package/dist/components/arcgis-video-player/types.d.ts +6 -0
- package/dist/components/arcgis-video-player-action-bar/customElement.js +1 -1
- package/dist/components/arcgis-video-player-actions-group/customElement.js +1 -1
- package/dist/components/arcgis-video-player-controls-group/customElement.js +1 -1
- package/dist/components/arcgis-video-player-metadata/customElement.js +1 -1
- package/dist/components/arcgis-video-player-settings/customElement.js +1 -1
- package/dist/components/arcgis-video-player-slider/customElement.js +1 -1
- package/dist/components/arcgis-view-popover/customElement.js +1 -1
- package/dist/components/arcgis-volume-measurement/customElement.d.ts +30 -10
- package/dist/components/arcgis-volume-measurement/customElement.js +63 -63
- package/dist/components/arcgis-weather/customElement.js +1 -1
- package/dist/components/arcgis-webgl-error/customElement.js +1 -1
- package/dist/components/arcgis-zoom/customElement.js +1 -1
- package/dist/components/feature-form-next/customElement.js +1 -1
- 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.js +1 -1
- package/dist/loader.js +7 -7
- package/dist/types/lumina.d.ts +4 -4
- package/dist/types/preact.d.ts +4 -4
- package/dist/types/react.d.ts +4 -4
- package/dist/types/stencil.d.ts +4 -4
- package/package.json +7 -7
- package/dist/cdn/3DSZKELU.js +0 -2
- package/dist/cdn/3KZAH5OY.js +0 -2
- package/dist/cdn/4GRP4KX3.js +0 -2
- package/dist/cdn/5K54VOLZ.js +0 -2
- package/dist/cdn/63FA3UEL.js +0 -2
- package/dist/cdn/7UWE25UH.js +0 -2
- package/dist/cdn/AENNGCAE.js +0 -2
- package/dist/cdn/AI5PXN2E.js +0 -2
- package/dist/cdn/AN3BGKZP.js +0 -2
- package/dist/cdn/DBA7NSTP.js +0 -2
- package/dist/cdn/EZCNI254.js +0 -2
- package/dist/cdn/F46CTQWP.js +0 -2
- package/dist/cdn/F4O7DFPZ.js +0 -2
- package/dist/cdn/FZWFKZLW.js +0 -2
- package/dist/cdn/GIOUZTHM.js +0 -2
- package/dist/cdn/GP3PLD2F.js +0 -2
- package/dist/cdn/GTRQNPQ7.js +0 -2
- package/dist/cdn/HH5GEJCC.js +0 -2
- package/dist/cdn/IETZFE3P.js +0 -2
- package/dist/cdn/JRQYT5SI.js +0 -2
- package/dist/cdn/K6D2JHC4.js +0 -2
- package/dist/cdn/KM2GXXBO.js +0 -4
- package/dist/cdn/KY3ND2AY.js +0 -2
- package/dist/cdn/LE373OSG.js +0 -2
- package/dist/cdn/LGW5AS6R.js +0 -2
- package/dist/cdn/NBDQBLRI.js +0 -2
- package/dist/cdn/O57LOC52.js +0 -2
- package/dist/cdn/P5HSMYWG.js +0 -2
- package/dist/cdn/PLTLRYBF.js +0 -2
- package/dist/cdn/QKON7YGO.js +0 -2
- package/dist/cdn/QTOA5MBN.js +0 -2
- package/dist/cdn/QUZTFUWM.js +0 -1
- package/dist/cdn/R6HUY6QI.js +0 -2
- package/dist/cdn/S62FQUEJ.js +0 -2
- package/dist/cdn/TZHXSIXK.js +0 -2
- package/dist/cdn/W3ENDJ6U.js +0 -2
- package/dist/cdn/WEAGLY7B.js +0 -2
- package/dist/cdn/WYNLO2MH.js +0 -2
- package/dist/cdn/XKHGN6LQ.js +0 -2
- package/dist/cdn/Y2LELW5Y.js +0 -2
- package/dist/cdn/YDB2XJRU.js +0 -2
- package/dist/cdn/YY45XUPP.js +0 -2
- package/dist/cdn/YYCBU2CG.js +0 -2
- package/dist/cdn/Z42QB2QP.js +0 -2
- package/dist/cdn/ZEKQYUW3.js +0 -2
- package/dist/cdn/ZOHGLZNV.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
2
|
-
import a from"./TMJX7DFH.js";import{a as E}from"./WEAGLY7B.js";import{P as I,X as S,a as M,b as p,p as l,r as m,x as b}from"./EKR2SAT2.js";export default $arcgis.t(([k,{cutExecute:A},{lengthExecute:L},{projectIsLoaded:j,projectLoad:B,projectExecute:N},{proximityGetNearestCoordinate:U},D,F,R,x,$,O,G,{substitute:W},{b:P,e:v,g:C,h:_}])=>{var H=M`calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}.add-location-button{--calcite-button-border-color: var(--calcite-color-border-1);--calcite-button-icon-color: var(--calcite-color-text-1);--calcite-button-text-color: var(--calcite-color-text-1)}.button-container{display:flex;justify-content:center}calcite-list{margin:0 var(--calcite-space-sm) var(--calcite-space-sm);background-color:var(--calcite-color-surface-2);border:solid 1px var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-sm);overflow:hidden}calcite-list-item[selected] [slot=content-bottom]{display:block}.warning{color:var(--calcite-color-status-danger)}.terminals{padding:var(--calcite-space-sm) var(--calcite-space-md);display:flex;flex-direction:column}.filter-barrier{display:flex;justify-content:space-between;align-items:center;width:100%}`,V=`utility-network-trace-locations-sketch-${Date.now()}`,T=class q extends I{constructor(){super(...arguments),this._messages=E({blocking:!0}),this._isSelectWaiting=!1,this.traceLocationType="starting-point",this.traceLocations=new k,this.filterLayers=new k,this.spatialTolerance=.05,this.autoDestroyDisabled=!1,this.arcgisTraceLocationSelectEnd=b(),this.arcgisTraceLocationSelectStart=b(),this.arcgisError=b()}static{this.properties={_isSelectWaiting:16,beforeMapInteraction:0,afterMapInteraction:0,messageOverrides:0,view:0,traceLocationType:1,traceLocations:0,filterLayers:0,spatialTolerance:9,error:1,autoDestroyDisabled:5,utilityNetwork:0,heading:1,sketchViewModel:32}}static{this.styles=H}static{this.sketchViewModelMap=new Map}static getSketchViewModel(t){if(!this.sketchViewModelMap.has(t)){let e=this.#a(t,V);e&&this.sketchViewModelMap.set(t,new O({view:t,layer:e}))}return this.sketchViewModelMap.get(t)??null}static#a(t,e){if(!t?.map)return null;let i=t.map.findLayerById(e);if(!i){let r=new R({id:e,listMode:"hide",title:e});return P(t,r),r}return i}static removeSketchGraphicsLayer(t){if(t?.map){let e=t.map.findLayerById(V);e&&t.map.remove(e),this.sketchViewModelMap.delete(t)}}#i;get sketchViewModel(){return this.view?q.getSketchViewModel(this.view):null}async destroy(){try{this.#r()}finally{await this.manager.destroy()}}async load(){j()||await B()}willUpdate(t){t.has("filterLayers")&&this.#o()}#t(t,e){this.error=e,l(t,this,e),this.arcgisError.emit()}#s(t){let{traceLocations:e,view:i}=this;t.spatialProperties.flagGraphic&&i&&i.graphics.remove(t.spatialProperties.flagGraphic),e?.remove(t)}#o(){if(!this.sketchViewModel)return;let t=new k;this.filterLayers?.forEach(e=>{C(e)?e.sublayers.forEach(i=>{t.add(new G({layer:i,enabled:!0}))}):t.add(new G({layer:e,enabled:!0}))}),this.sketchViewModel.snappingOptions={enabled:!1,featureSources:t}}#n(t,e){let i=t.clone(),r=i.spatialReference,s=e.spatialReference;if(!r||!s)return l("warn",this,"Unable to calculate percent along because geometry is missing a spatial reference."),-1;let o=e;if(!r.equals(s)){let y=N(e,r);if(!y)return l("warn",this,"Unable to project flag point to source geometry spatial reference."),-1;o=y}let n=U(i,o);if(n.isEmpty)return l("warn",this,"Unable to compute nearest coordinate for polyline flag."),-1;let a=n.coordinate,c=a.x-.5,h=a.y-.5,d=a.x+.5,u=a.y+.5,f=new D({hasZ:!1,hasM:!0,paths:[[[c,h],[d,u]]],spatialReference:i.spatialReference}),g=A(i,f);if(g.length>0){let y=L(i,{unit:"feet"}),w;return g[0].paths[0][0][0]===i.paths[0][0][0]?w=L(g[0],{unit:"feet"}):g.length>1?w=L(g[1],{unit:"feet"}):w=0,w/y}return l("warn",this,"Unable to cut the source geometry with the flag geometry."),-1}get#c(){let t=this.utilityNetwork?.dataElement?.domainNetworks;return t?t.flatMap(e=>e.edgeSources).map(e=>e.layerId).filter(Boolean):[]}async#l(){let{view:t,sketchViewModel:e}=this;if(!(t&&e)){l("error",this,"Cannot add trace location."),e||l("error",this,m("sketchViewModel")),t||l("error",this,m("view"));return}if(this.beforeMapInteraction){this._isSelectWaiting=!0;try{await this.beforeMapInteraction()}finally{this._isSelectWaiting=!1}}await this.#e(t,e)}async#e(t,e){this.arcgisTraceLocationSelectStart.emit({cancelSelect:()=>e.cancel()}).defaultPrevented||(this.#i?.remove(),this.#i=e.on("create",i=>this.#h(i,t,e)),"acquireCursor"in t&&t.acquireCursor("crosshair"),e.snappingOptions.enabled=!0,e.create("point"))}#h(t,e,i){if(t.state==="complete"&&t.graphic){i.layer.remove(t.graphic),this.#p(t,e,i);return}t.state==="cancel"&&(this.#r(),this.arcgisTraceLocationSelectEnd.emit())}async#p(t,e,i){let{utilityNetwork:r}=this,{graphic:s}=t;if(!r){l("error",this,m("utilityNetwork")),this.#r(),this.arcgisTraceLocationSelectEnd.emit();return}if(s?.geometry?.type!=="point"){this.#t("warn",this._messages.errors.noHitResult),this.#e(e,i);return}let o=s.geometry,n=e.toScreen(o);if(!n){this.#t("warn",this._messages.errors.noHitResult),this.#e(e,i);return}let a=(await e.hitTest(n,{include:this.filterLayers})).results.filter(c=>c.type==="graphic"&&c?.layer&&c.graphic);if(!a.length){this.#t("info",this._messages.errors.noHitResult),this.#e(e,i);return}this.#r(),await this.#d(a,o,e)?this.arcgisTraceLocationSelectEnd.emit():this.#e(e,i)}#r(){let{view:t,sketchViewModel:e}=this;if(!t){l("error",this,m("view"));return}e&&(e.snappingOptions.enabled=!1),this.#i?.remove(),this.#i=void 0,"acquireCursor"in t&&t.acquireCursor("default")}async#d(t,e,i){if(!t.length)return this.#t("error",this._messages.errors.noHitResult),!1;let r=t[0].graphic;if(this.afterMapInteraction){let o=t.map(n=>{let a=n,c=a.graphic;return c.origin=a.layer,c.sourceLayer=a.layer,c});try{r=await this.afterMapInteraction(o)}catch{r=null}}if(!r)return l("error",this,"No graphic available from hit test results."),this.arcgisTraceLocationSelectEnd.emit(),!0;let s=await this.#u(r);return s?await this.#g(s,e,i):(this.#t("error",this._messages.errors.missingAttributes),this.arcgisTraceLocationSelectEnd.emit(),!0)}async#u(t){let e=(v(t.layer),t.layer),i=e.geometryType===null,r=e.fieldsIndex?.get("assetgroup")??!1,s=e.fieldsIndex?.get("assetgroup")?.name??"assetgroup",o=e.fieldsIndex?.get("assettype")??!1,n=e.fieldsIndex?.get("assettype")?.name??"assettype",a=t.getGlobalId(),c=t.getObjectId(),h=r?!!t.getAttribute(s):!0,d=o?!!t.getAttribute(n):!0,u=!!t.geometry;if(a&&c&&h&&d&&(u||i))return t;let f=e.createQuery();return f.objectIds=[c],(await e.queryFeatures(f)).features[0]||null}async#g(t,e,i){let{traceLocations:r}=this,s=t.getGlobalId()??"",o=t.geometry?.type,n=await this.#m(t,e);if(!n)return this.#t("error",this._messages.errors.errorGeneratingTraceLocationDetails),!1;let a=r?.filter(h=>h.spatialProperties.mapGraphic?.getGlobalId()===s)??[];if(a.length>0){if(o!=="polyline")return this.#t("warn",this._messages.errors.duplicateTraceLocationDetails),!1;if(a.some(h=>Math.abs(h.traceLocation.percentAlong-n.traceLocation.percentAlong)<=this.spatialTolerance))return this.#t("warn",this._messages.errors.duplicateTraceLocationDetailsWithinTolerance),!1}let c=this.#y(t,e,i);return c?(n.spatialProperties.flagGraphic=c,r?.add(n),!0):(this.#t("warn",this._messages.errors.errorAdding),!1)}async#m(t,e){let{traceLocationType:i,utilityNetwork:r}=this,s=t.getGlobalId()??"",o=t.geometry?.type,n=await this.#f(t);if(o==="point"||o==="polygon"){let a=r?.getTerminalConfiguration(t),c=a?a.terminals[0].id:1;return{traceLocation:new x({type:i,isFilterBarrier:!1,globalId:s,terminalId:c}),flagProperties:{title:n,expanded:!1,terminalConfiguration:a??void 0,selectedTerminals:a?new Set([c]):void 0},spatialProperties:{mapPoint:e,mapGraphic:t}}}else if(o==="polyline"){let a=this.#n(t.geometry,e);return a<0?(l("warn",this,"Unable to calculate percent along for polyline flag."),null):{traceLocation:new x({type:i,isFilterBarrier:!1,globalId:s,percentAlong:a}),flagProperties:{title:n,expanded:!1,terminalConfiguration:void 0,selectedTerminals:void 0},spatialProperties:{mapPoint:e,mapGraphic:t}}}else if(!o){let a=_(t.layer)?t.layer.parent:t.layer,c=a&&this.#c.includes(a.layerId),h=r?.getTerminalConfiguration(t),d=h?h.terminals[0].id:c?-1:1,u=c?.5:-1;return{traceLocation:new x({type:i,isFilterBarrier:!1,globalId:s,terminalId:d,percentAlong:u}),flagProperties:{title:n,expanded:!1,terminalConfiguration:h??void 0,selectedTerminals:h?new Set([d]):void 0},spatialProperties:{mapPoint:e,mapGraphic:t}}}return null}async#f(t){let e=(v(t.layer),t.layer);return("getFeatureTitle"in e?await e.getFeatureTitle(t):null)||t.getObjectId()?.toString()||this._messages.unknown}#y(t,e,i){let r=t.geometry?t.geometry.type==="point"?t.geometry:e:null,s=this.#w(),o=new F({geometry:r,symbol:s,attributes:t.attributes});return i.graphics.add(o),o}#w(){let{traceLocationType:t}=this,e=[244,21,21,.6],i=[21,244,21,.6];return t==="stopping-point"?new $({color:e,style:"x",size:12,outline:{color:e,width:2}}):t==="barrier"?new $({color:e,style:"square",size:12,outline:{color:e,width:0}}):new $({color:i,style:"circle",size:12,outline:{color:i,width:0}})}#b(){let{view:t,traceLocations:e}=this;e?.forEach(i=>{i.spatialProperties.flagGraphic&&t&&t.graphics.remove(i.spatialProperties.flagGraphic)}),e?.removeAll()}#v(t,e){let{flagProperties:i}=t,{selectedTerminals:r}=i,{name:s,id:o}=e,n=r?.has(o)??!1;return p`<calcite-label layout=inline><calcite-checkbox .value=${o} .checked=${n} @calciteCheckboxChange=${a=>{a.target.checked?r?.add(o):r?.delete(o),this.requestUpdate()}}></calcite-checkbox>${s}</calcite-label>`}#k(){return p`<calcite-notice kind=danger open scale=s width=auto><div slot=message>${this._messages.errors.noTerminalSelected}</div></calcite-notice>`}#L(t){let{traceLocation:e}=t;return p`<calcite-label layout=inline><div class="filter-barrier">${this._messages.labels.filterBarrier}<calcite-switch .checked=${e.isFilterBarrier} @calciteSwitchChange=${i=>{e.isFilterBarrier=i.target.checked}}></calcite-switch></div></calcite-label>`}#x(t){let{flagProperties:e}=t,{terminalConfiguration:i,selectedTerminals:r}=e,s=t.traceLocation.type==="barrier",o=i&&i.terminals.length>0&&r?.size===0;return p`<calcite-action .icon=${e.expanded?"chevron-up":"chevron-down"} slot=actions-end scale=s text @click=${()=>{e.expanded=!e.expanded,this.requestUpdate()}}></calcite-action>${o&&p`<calcite-icon class="warning" icon=exclamation-mark-triangle scale=s slot=content-start></calcite-icon>`||""}${e.expanded&&p`<div class="terminals" slot=content-bottom>${s&&this.#L(t)||""}${i&&this.#$(t)||""}${o&&this.#k()||""}</div>`||""}`}#$(t){let{flagProperties:e}=t,{terminalConfiguration:i}=e;if(!i)return l("warn",this,"One or more locations are missing the required flag property `terminalConfiguration`."),[];let r=i.terminals;return r.length?r.length===1?[]:r.map(s=>this.#v(t,s)):(l("warn",this,"`terminalConfiguration.terminals` is required but either missing or empty.`"),[])}#T(t){let{flagProperties:e}=t,{terminalConfiguration:i,expanded:r,title:s}=e,o=i&&i.id!==0,n=t.traceLocation.type==="barrier",a=o||n,c=i?.name??void 0;return p`<calcite-list-item .label=${s} .description=${c} .value=${s} .expanded=${r}>${a?this.#x(t):p`<div slot=content-bottom></div>`}<calcite-action icon=x slot=actions-end scale=s text @click=${()=>this.#s(t)}></calcite-action></calcite-list-item>`}#M(t){if(!t.length)return null;let{traceLocationType:e}=this,i=t.map(s=>this.#T(s)).toArray(),r=W(this._messages.labels.list,{type:e});return p`<div><calcite-list interaction-mode=static selection-mode=none .label=${r}>${i}</calcite-list></div>`}#I(){let{traceLocationType:t,_messages:e,traceLocations:i,heading:r}=this,s=t==="starting-point"?e.types.startingPoint:t==="barrier"?e.types.barrier:e.types.stoppingPoint,o=r??s.heading,n=s.description,a=s.buttonText;return p`<calcite-block .heading=${o} .label=${o} expanded .description=${n}>${i?.length?p`<calcite-button slot=actions-end appearance=transparent .label=${e.buttons.clear} @click=${()=>this.#b()}>${e.buttons.clear}</calcite-button>${this.#M(i)}`:null}<div class="button-container"><calcite-button .loading=${this._isSelectWaiting} class="add-location-button" icon-start=select appearance=outline .label=${a} @click=${()=>this.#l()}>${a}</calcite-button></div></calcite-block>`}render(){return this.#I()}};S("arcgis-utility-network-trace-locations",T);return T},"core/Collection","geometry/operators/cutOperator","geometry/operators/lengthOperator","geometry/operators/projectOperator","geometry/operators/proximityOperator","geometry/Polyline","Graphic","layers/GraphicsLayer","rest/networks/support/TraceLocation","symbols/SimpleMarkerSymbol","widgets/Sketch/SketchViewModel","views/interactive/snapping/FeatureSnappingLayerSource","intl",a)
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import a from"./HU57LQOA.js";import{a as E}from"./ZSPYPXBY.js";import{P as I,X as S,a as M,b as p,p as l,r as m,x as b}from"./3UMLR76Y.js";export default $arcgis.t(([k,{cutExecute:A},{lengthExecute:L},{projectIsLoaded:j,projectLoad:B,projectExecute:N},{proximityGetNearestCoordinate:U},D,F,R,x,$,O,G,{substitute:W},{b:P,e:v,g:C,h:_}])=>{var H=M`calcite-block{--calcite-block-content-space: 0;--calcite-block-border-color: transparent;margin:0}.add-location-button{--calcite-button-border-color: var(--calcite-color-border-1);--calcite-button-icon-color: var(--calcite-color-text-1);--calcite-button-text-color: var(--calcite-color-text-1)}.button-container{display:flex;justify-content:center}calcite-list{margin:0 var(--calcite-space-sm) var(--calcite-space-sm);background-color:var(--calcite-color-surface-2);border:solid 1px var(--calcite-color-border-3);border-radius:var(--calcite-corner-radius-sm);overflow:hidden}calcite-list-item[selected] [slot=content-bottom]{display:block}.warning{color:var(--calcite-color-status-danger)}.terminals{padding:var(--calcite-space-sm) var(--calcite-space-md);display:flex;flex-direction:column}.filter-barrier{display:flex;justify-content:space-between;align-items:center;width:100%}`,V=`utility-network-trace-locations-sketch-${Date.now()}`,T=class q extends I{constructor(){super(...arguments),this._messages=E({blocking:!0}),this._isSelectWaiting=!1,this.traceLocationType="starting-point",this.traceLocations=new k,this.filterLayers=new k,this.spatialTolerance=.05,this.autoDestroyDisabled=!1,this.arcgisTraceLocationSelectEnd=b(),this.arcgisTraceLocationSelectStart=b(),this.arcgisError=b()}static{this.properties={_isSelectWaiting:16,beforeMapInteraction:0,afterMapInteraction:0,messageOverrides:0,view:0,traceLocationType:1,traceLocations:0,filterLayers:0,spatialTolerance:9,error:1,autoDestroyDisabled:5,utilityNetwork:0,heading:1,sketchViewModel:32}}static{this.styles=H}static{this.sketchViewModelMap=new Map}static getSketchViewModel(t){if(!this.sketchViewModelMap.has(t)){let e=this.#a(t,V);e&&this.sketchViewModelMap.set(t,new O({view:t,layer:e}))}return this.sketchViewModelMap.get(t)??null}static#a(t,e){if(!t?.map)return null;let i=t.map.findLayerById(e);if(!i){let r=new R({id:e,listMode:"hide",title:e});return P(t,r),r}return i}static removeSketchGraphicsLayer(t){if(t?.map){let e=t.map.findLayerById(V);e&&t.map.remove(e),this.sketchViewModelMap.delete(t)}}#i;get sketchViewModel(){return this.view?q.getSketchViewModel(this.view):null}async destroy(){try{this.#r()}finally{await this.manager.destroy()}}async load(){j()||await B()}willUpdate(t){t.has("filterLayers")&&this.#o()}#t(t,e){this.error=e,l(t,this,e),this.arcgisError.emit()}#s(t){let{traceLocations:e,view:i}=this;t.spatialProperties.flagGraphic&&i&&i.graphics.remove(t.spatialProperties.flagGraphic),e?.remove(t)}#o(){if(!this.sketchViewModel)return;let t=new k;this.filterLayers?.forEach(e=>{C(e)?e.sublayers.forEach(i=>{t.add(new G({layer:i,enabled:!0}))}):t.add(new G({layer:e,enabled:!0}))}),this.sketchViewModel.snappingOptions={enabled:!1,featureSources:t}}#n(t,e){let i=t.clone(),r=i.spatialReference,s=e.spatialReference;if(!r||!s)return l("warn",this,"Unable to calculate percent along because geometry is missing a spatial reference."),-1;let o=e;if(!r.equals(s)){let y=N(e,r);if(!y)return l("warn",this,"Unable to project flag point to source geometry spatial reference."),-1;o=y}let n=U(i,o);if(n.isEmpty)return l("warn",this,"Unable to compute nearest coordinate for polyline flag."),-1;let a=n.coordinate,c=a.x-.5,h=a.y-.5,d=a.x+.5,u=a.y+.5,f=new D({hasZ:!1,hasM:!0,paths:[[[c,h],[d,u]]],spatialReference:i.spatialReference}),g=A(i,f);if(g.length>0){let y=L(i,{unit:"feet"}),w;return g[0].paths[0][0][0]===i.paths[0][0][0]?w=L(g[0],{unit:"feet"}):g.length>1?w=L(g[1],{unit:"feet"}):w=0,w/y}return l("warn",this,"Unable to cut the source geometry with the flag geometry."),-1}get#c(){let t=this.utilityNetwork?.dataElement?.domainNetworks;return t?t.flatMap(e=>e.edgeSources).map(e=>e.layerId).filter(Boolean):[]}async#l(){let{view:t,sketchViewModel:e}=this;if(!(t&&e)){l("error",this,"Cannot add trace location."),e||l("error",this,m("sketchViewModel")),t||l("error",this,m("view"));return}if(this.beforeMapInteraction){this._isSelectWaiting=!0;try{await this.beforeMapInteraction()}finally{this._isSelectWaiting=!1}}await this.#e(t,e)}async#e(t,e){this.arcgisTraceLocationSelectStart.emit({cancelSelect:()=>e.cancel()}).defaultPrevented||(this.#i?.remove(),this.#i=e.on("create",i=>this.#h(i,t,e)),"acquireCursor"in t&&t.acquireCursor("crosshair"),e.snappingOptions.enabled=!0,e.create("point"))}#h(t,e,i){if(t.state==="complete"&&t.graphic){i.layer.remove(t.graphic),this.#p(t,e,i);return}t.state==="cancel"&&(this.#r(),this.arcgisTraceLocationSelectEnd.emit())}async#p(t,e,i){let{utilityNetwork:r}=this,{graphic:s}=t;if(!r){l("error",this,m("utilityNetwork")),this.#r(),this.arcgisTraceLocationSelectEnd.emit();return}if(s?.geometry?.type!=="point"){this.#t("warn",this._messages.errors.noHitResult),this.#e(e,i);return}let o=s.geometry,n=e.toScreen(o);if(!n){this.#t("warn",this._messages.errors.noHitResult),this.#e(e,i);return}let a=(await e.hitTest(n,{include:this.filterLayers})).results.filter(c=>c.type==="graphic"&&c?.layer&&c.graphic);if(!a.length){this.#t("info",this._messages.errors.noHitResult),this.#e(e,i);return}this.#r(),await this.#d(a,o,e)?this.arcgisTraceLocationSelectEnd.emit():this.#e(e,i)}#r(){let{view:t,sketchViewModel:e}=this;if(!t){l("error",this,m("view"));return}e&&(e.snappingOptions.enabled=!1),this.#i?.remove(),this.#i=void 0,"acquireCursor"in t&&t.acquireCursor("default")}async#d(t,e,i){if(!t.length)return this.#t("error",this._messages.errors.noHitResult),!1;let r=t[0].graphic;if(this.afterMapInteraction){let o=t.map(n=>{let a=n,c=a.graphic;return c.origin=a.layer,c.sourceLayer=a.layer,c});try{r=await this.afterMapInteraction(o)}catch{r=null}}if(!r)return l("error",this,"No graphic available from hit test results."),this.arcgisTraceLocationSelectEnd.emit(),!0;let s=await this.#u(r);return s?await this.#g(s,e,i):(this.#t("error",this._messages.errors.missingAttributes),this.arcgisTraceLocationSelectEnd.emit(),!0)}async#u(t){let e=(v(t.layer),t.layer),i=e.geometryType===null,r=e.fieldsIndex?.get("assetgroup")??!1,s=e.fieldsIndex?.get("assetgroup")?.name??"assetgroup",o=e.fieldsIndex?.get("assettype")??!1,n=e.fieldsIndex?.get("assettype")?.name??"assettype",a=t.getGlobalId(),c=t.getObjectId(),h=r?!!t.getAttribute(s):!0,d=o?!!t.getAttribute(n):!0,u=!!t.geometry;if(a&&c&&h&&d&&(u||i))return t;let f=e.createQuery();return f.objectIds=[c],(await e.queryFeatures(f)).features[0]||null}async#g(t,e,i){let{traceLocations:r}=this,s=t.getGlobalId()??"",o=t.geometry?.type,n=await this.#m(t,e);if(!n)return this.#t("error",this._messages.errors.errorGeneratingTraceLocationDetails),!1;let a=r?.filter(h=>h.spatialProperties.mapGraphic?.getGlobalId()===s)??[];if(a.length>0){if(o!=="polyline")return this.#t("warn",this._messages.errors.duplicateTraceLocationDetails),!1;if(a.some(h=>Math.abs(h.traceLocation.percentAlong-n.traceLocation.percentAlong)<=this.spatialTolerance))return this.#t("warn",this._messages.errors.duplicateTraceLocationDetailsWithinTolerance),!1}let c=this.#y(t,e,i);return c?(n.spatialProperties.flagGraphic=c,r?.add(n),!0):(this.#t("warn",this._messages.errors.errorAdding),!1)}async#m(t,e){let{traceLocationType:i,utilityNetwork:r}=this,s=t.getGlobalId()??"",o=t.geometry?.type,n=await this.#f(t);if(o==="point"||o==="polygon"){let a=r?.getTerminalConfiguration(t),c=a?a.terminals[0].id:1;return{traceLocation:new x({type:i,isFilterBarrier:!1,globalId:s,terminalId:c}),flagProperties:{title:n,expanded:!1,terminalConfiguration:a??void 0,selectedTerminals:a?new Set([c]):void 0},spatialProperties:{mapPoint:e,mapGraphic:t}}}else if(o==="polyline"){let a=this.#n(t.geometry,e);return a<0?(l("warn",this,"Unable to calculate percent along for polyline flag."),null):{traceLocation:new x({type:i,isFilterBarrier:!1,globalId:s,percentAlong:a}),flagProperties:{title:n,expanded:!1,terminalConfiguration:void 0,selectedTerminals:void 0},spatialProperties:{mapPoint:e,mapGraphic:t}}}else if(!o){let a=_(t.layer)?t.layer.parent:t.layer,c=a&&this.#c.includes(a.layerId),h=r?.getTerminalConfiguration(t),d=h?h.terminals[0].id:c?-1:1,u=c?.5:-1;return{traceLocation:new x({type:i,isFilterBarrier:!1,globalId:s,terminalId:d,percentAlong:u}),flagProperties:{title:n,expanded:!1,terminalConfiguration:h??void 0,selectedTerminals:h?new Set([d]):void 0},spatialProperties:{mapPoint:e,mapGraphic:t}}}return null}async#f(t){let e=(v(t.layer),t.layer);return("getFeatureTitle"in e?await e.getFeatureTitle(t):null)||t.getObjectId()?.toString()||this._messages.unknown}#y(t,e,i){let r=t.geometry?t.geometry.type==="point"?t.geometry:e:null,s=this.#w(),o=new F({geometry:r,symbol:s,attributes:t.attributes});return i.graphics.add(o),o}#w(){let{traceLocationType:t}=this,e=[244,21,21,.6],i=[21,244,21,.6];return t==="stopping-point"?new $({color:e,style:"x",size:12,outline:{color:e,width:2}}):t==="barrier"?new $({color:e,style:"square",size:12,outline:{color:e,width:0}}):new $({color:i,style:"circle",size:12,outline:{color:i,width:0}})}#b(){let{view:t,traceLocations:e}=this;e?.forEach(i=>{i.spatialProperties.flagGraphic&&t&&t.graphics.remove(i.spatialProperties.flagGraphic)}),e?.removeAll()}#v(t,e){let{flagProperties:i}=t,{selectedTerminals:r}=i,{name:s,id:o}=e,n=r?.has(o)??!1;return p`<calcite-label layout=inline><calcite-checkbox .value=${o} .checked=${n} @calciteCheckboxChange=${a=>{a.target.checked?r?.add(o):r?.delete(o),this.requestUpdate()}}></calcite-checkbox>${s}</calcite-label>`}#k(){return p`<calcite-notice kind=danger open scale=s width=auto><div slot=message>${this._messages.errors.noTerminalSelected}</div></calcite-notice>`}#L(t){let{traceLocation:e}=t;return p`<calcite-label layout=inline><div class="filter-barrier">${this._messages.labels.filterBarrier}<calcite-switch .checked=${e.isFilterBarrier} @calciteSwitchChange=${i=>{e.isFilterBarrier=i.target.checked}}></calcite-switch></div></calcite-label>`}#x(t){let{flagProperties:e}=t,{terminalConfiguration:i,selectedTerminals:r}=e,s=t.traceLocation.type==="barrier",o=i&&i.terminals.length>0&&r?.size===0;return p`<calcite-action .icon=${e.expanded?"chevron-up":"chevron-down"} slot=actions-end scale=s text @click=${()=>{e.expanded=!e.expanded,this.requestUpdate()}}></calcite-action>${o&&p`<calcite-icon class="warning" icon=exclamation-mark-triangle scale=s slot=content-start></calcite-icon>`||""}${e.expanded&&p`<div class="terminals" slot=content-bottom>${s&&this.#L(t)||""}${i&&this.#$(t)||""}${o&&this.#k()||""}</div>`||""}`}#$(t){let{flagProperties:e}=t,{terminalConfiguration:i}=e;if(!i)return l("warn",this,"One or more locations are missing the required flag property `terminalConfiguration`."),[];let r=i.terminals;return r.length?r.length===1?[]:r.map(s=>this.#v(t,s)):(l("warn",this,"`terminalConfiguration.terminals` is required but either missing or empty.`"),[])}#T(t){let{flagProperties:e}=t,{terminalConfiguration:i,expanded:r,title:s}=e,o=i&&i.id!==0,n=t.traceLocation.type==="barrier",a=o||n,c=i?.name??void 0;return p`<calcite-list-item .label=${s} .description=${c} .value=${s} .expanded=${r}>${a?this.#x(t):p`<div slot=content-bottom></div>`}<calcite-action icon=x slot=actions-end scale=s text @click=${()=>this.#s(t)}></calcite-action></calcite-list-item>`}#M(t){if(!t.length)return null;let{traceLocationType:e}=this,i=t.map(s=>this.#T(s)).toArray(),r=W(this._messages.labels.list,{type:e});return p`<div><calcite-list interaction-mode=static selection-mode=none .label=${r}>${i}</calcite-list></div>`}#I(){let{traceLocationType:t,_messages:e,traceLocations:i,heading:r}=this,s=t==="starting-point"?e.types.startingPoint:t==="barrier"?e.types.barrier:e.types.stoppingPoint,o=r??s.heading,n=s.description,a=s.buttonText;return p`<calcite-block .heading=${o} .label=${o} expanded .description=${n}>${i?.length?p`<calcite-button slot=actions-end appearance=transparent .label=${e.buttons.clear} @click=${()=>this.#b()}>${e.buttons.clear}</calcite-button>${this.#M(i)}`:null}<div class="button-container"><calcite-button .loading=${this._isSelectWaiting} class="add-location-button" icon-start=select appearance=outline .label=${a} @click=${()=>this.#l()}>${a}</calcite-button></div></calcite-block>`}render(){return this.#I()}};S("arcgis-utility-network-trace-locations",T);return T},"core/Collection","geometry/operators/cutOperator","geometry/operators/lengthOperator","geometry/operators/projectOperator","geometry/operators/proximityOperator","geometry/Polyline","Graphic","layers/GraphicsLayer","rest/networks/support/TraceLocation","symbols/SimpleMarkerSymbol","widgets/Sketch/SketchViewModel","views/interactive/snapping/FeatureSnappingLayerSource","intl",a)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
2
|
-
import"./
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import"./TAVTDQ6S.js";var o={_decimalSeparator:".",_thousandSeparator:",",_percentPrefix:null,_percentSuffix:"%",_big_number_suffix_3:"k",_big_number_suffix_6:"M",_big_number_suffix_9:"G",_big_number_suffix_12:"T",_big_number_suffix_15:"P",_big_number_suffix_18:"E",_big_number_suffix_21:"Z",_big_number_suffix_24:"Y",_small_number_suffix_3:"m",_small_number_suffix_6:"\u03BC",_small_number_suffix_9:"n",_small_number_suffix_12:"p",_small_number_suffix_15:"f",_small_number_suffix_18:"a",_small_number_suffix_21:"z",_small_number_suffix_24:"y",_byte_suffix_B:"B",_byte_suffix_KB:"KB",_byte_suffix_MB:"MB",_byte_suffix_GB:"GB",_byte_suffix_TB:"TB",_byte_suffix_PB:"PB",_date:"yyyy-MM-dd",_date_millisecond:"mm:ss SSS",_date_millisecond_full:"HH:mm:ss SSS",_date_second:"HH:mm:ss",_date_second_full:"HH:mm:ss",_date_minute:"HH:mm",_date_minute_full:"HH:mm - MMM dd, yyyy",_date_hour:"HH:mm",_date_hour_short:"HH",_date_hour_full:"HH:mm - MMM dd, yyyy",_date_day:"MMM dd",_date_day_full:"MMM dd, yyyy",_date_week:"ww",_date_week_full:"MMM dd, yyyy",_date_month:"MMM",_date_month_full:"MMM, yyyy",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_millisecond_second:"ss.SSS",_duration_millisecond_minute:"mm:ss SSS",_duration_millisecond_hour:"hh:mm:ss SSS",_duration_millisecond_day:"d'd' mm:ss SSS",_duration_millisecond_week:"d'd' mm:ss SSS",_duration_millisecond_month:"M'm' dd'd' mm:ss SSS",_duration_millisecond_year:"y'y' MM'm' dd'd' mm:ss SSS",_duration_second:"ss",_duration_second_minute:"mm:ss",_duration_second_hour:"hh:mm:ss",_duration_second_day:"d'd' hh:mm:ss",_duration_second_week:"d'd' hh:mm:ss",_duration_second_month:"M'm' dd'd' hh:mm:ss",_duration_second_year:"y'y' MM'm' dd'd' hh:mm:ss",_duration_minute:"mm",_duration_minute_hour:"hh:mm",_duration_minute_day:"d'd' hh:mm",_duration_minute_week:"d'd' hh:mm",_duration_minute_month:"M'm' dd'd' hh:mm",_duration_minute_year:"y'y' MM'm' dd'd' hh:mm",_duration_hour:"hh'h'",_duration_hour_day:"d'd' hh'h'",_duration_hour_week:"d'd' hh'h'",_duration_hour_month:"M'm' dd'd' hh'h'",_duration_hour_year:"y'y' MM'm' dd'd' hh'h'",_duration_day:"d'd'",_duration_day_week:"d'd'",_duration_day_month:"M'm' dd'd'",_duration_day_year:"y'y' MM'm' dd'd'",_duration_week:"w'w'",_duration_week_month:"w'w'",_duration_week_year:"w'w'",_duration_month:"M'm'",_duration_month_year:"y'y' MM'm'",_duration_year:"y'y'",_era_ad:"AD",_era_bc:"BC",A:"AM",P:"PM",AM:"AM",PM:"PM","A.M.":"\uC624\uC804","P.M.":"\uC624\uD6C4",January:"1\uC6D4",February:"2\uC6D4",March:"3\uC6D4",April:"4\uC6D4",May:"5\uC6D4",June:"6\uC6D4",July:"7\uC6D4",August:"8\uC6D4",September:"9\uC6D4",October:"10\uC6D4",November:"11\uC6D4",December:"12\uC6D4",Jan:"1\uC6D4",Feb:"2\uC6D4",Mar:"3\uC6D4",Apr:"4\uC6D4","May(short)":"5\uC6D4",Jun:"6\uC6D4",Jul:"7\uC6D4",Aug:"8\uC6D4",Sep:"9\uC6D4",Oct:"10\uC6D4",Nov:"11\uC6D4",Dec:"12\uC6D4",Sunday:"\uC77C\uC694\uC77C",Monday:"\uC6D4\uC694\uC77C",Tuesday:"\uD654\uC694\uC77C",Wednesday:"\uC218\uC694\uC77C",Thursday:"\uBAA9\uC694\uC77C",Friday:"\uAE08\uC694\uC77C",Saturday:"\uD1A0\uC694\uC77C",Sun:"\uC77C",Mon:"\uC6D4",Tue:"\uD654",Wed:"\uC218",Thu:"\uBAA9",Fri:"\uAE08",Sat:"\uD1A0",_dateOrd:function(_){let e="\uC77C";if(_<11||_>13)switch(_%10){case 1:e="\uC77C";break;case 2:e="\uC77C";break;case 3:e="\uC77C";break}return e},"Zoom Out":"\uCD95\uC18C",Play:"\uC2DC\uC791",Stop:"\uC815\uC9C0",Legend:"\uBC94\uB840","Press ENTER to toggle":"\uCF1C\uACE0 \uB044\uB824\uBA74 \uD074\uB9AD, \uD0ED \uD639\uC740 \uC5D4\uD130\uB97C \uB20C\uB7EC\uC8FC\uC138\uC694.",Loading:"\uBD88\uB7EC\uC624\uB294 \uC911",Home:"\uD648",Chart:"\uCC28\uD2B8","Serial chart":"\uC2DC\uB9AC\uC5BC \uCC28\uD2B8","X/Y chart":"X/Y \uCC28\uD2B8","Pie chart":"\uD30C\uC774 \uCC28\uD2B8","Gauge chart":"\uAC8C\uC774\uC9C0 \uCC28\uD2B8","Radar chart":"\uB808\uC774\uB354 \uCC28\uD2B8","Sankey diagram":"\uC0DD\uD0A4 \uB2E4\uC774\uC5B4\uADF8\uB7A8","Flow diagram":"\uD50C\uB85C\uC6B0 \uB2E4\uC774\uC5B4\uADF8\uB7A8","Chord diagram":"\uCF54\uB4DC \uB2E4\uC774\uC5B4\uADF8\uB7A8","TreeMap chart":"\uD2B8\uB9AC\uB9F5 \uCC28\uD2B8","Force directed tree":"\uD3EC\uC2A4 \uB514\uB809\uD2F0\uB4DC \uD2B8\uB9AC","Sliced chart":"\uC2AC\uB77C\uC774\uC2A4 \uCC28\uD2B8",Series:"\uC2DC\uB9AC\uC988","Candlestick Series":"\uCE94\uB4E4\uC2A4\uD2F1 \uC2DC\uB9AC\uC988","OHLC Series":"OHLC \uC2DC\uB9AC\uC988","Column Series":"\uCEEC\uB7FC \uC2DC\uB9AC\uC988","Line Series":"\uB77C\uC778 \uC2DC\uB9AC\uC988","Pie Slice Series":"\uD30C\uC774 \uC2AC\uB77C\uC774\uC2A4 \uC2DC\uB9AC\uC988","Funnel Series":"\uD37C\uB110 \uC2DC\uB9AC\uC988","Pyramid Series":"\uD53C\uB77C\uBBF8\uB4DC \uC2DC\uB9AC\uC988","X/Y Series":"X/Y \uC2DC\uB9AC\uC988",Map:"\uB9F5","Press ENTER to zoom in":"\uD655\uB300\uD558\uB824\uBA74 \uC5D4\uD130\uB97C \uB204\uB974\uC138\uC694.","Press ENTER to zoom out":"\uCD95\uC18C\uD558\uB824\uBA74 \uC5D4\uD130\uB97C \uB204\uB974\uC138\uC694.","Use arrow keys to zoom in and out":"\uD655\uB300 \uD639\uC740 \uCD95\uC18C\uD558\uB824\uBA74 \uBC29\uD5A5\uD0A4\uB97C \uC774\uC6A9\uD558\uC138\uC694.","Use plus and minus keys on your keyboard to zoom in and out":"\uD655\uB300 \uD639\uC740 \uCD95\uC18C\uD558\uB824\uBA74 \uD0A4\uBCF4\uB4DC\uC758 +/- \uD0A4\uB97C \uC774\uC6A9\uD558\uC138\uC694.",Export:"\uB0B4\uBCF4\uB0B4\uAE30",Image:"\uC774\uBBF8\uC9C0",Data:"\uB370\uC774\uD130",Print:"\uC778\uC1C4","Press ENTER to open":"\uC5F4\uB824\uBA74, \uD074\uB9AD, \uD0ED \uB610\uB294 \uC5D4\uD130\uB97C \uB204\uB974\uC138\uC694.","Press ENTER to print.":"\uCD9C\uB825\uD558\uB824\uBA74, \uD074\uB9AD, \uD0ED \uB610\uB294 \uC5D4\uD130\uB97C \uB204\uB974\uC138\uC694.","Press ENTER to export as %1.":"%1(\uC73C)\uB85C \uB0B4\uBCF4\uB0B4\uB824\uBA74 \uD074\uB9AD, \uD0ED \uB610\uB294 \uC5D4\uD130\uB97C \uB204\uB974\uC138\uC694.","(Press ESC to close this message)":"(\uC774 \uBA54\uC2DC\uC9C0\uB97C \uB044\uB824\uBA74 ESC\uB97C \uB204\uB974\uC138\uC694.)","Image Export Complete":"\uC774\uBBF8\uC9C0 \uB0B4\uBCF4\uB0B4\uAE30 \uC644\uB8CC","Export operation took longer than expected. Something might have gone wrong.":"\uB0B4\uBCF4\uB0B4\uAE30\uAC00 \uC9C0\uC5F0\uB418\uACE0 \uC788\uC2B5\uB2C8\uB2E4. \uBB38\uC81C\uAC00 \uC5C6\uB294\uC9C0 \uD655\uC778\uC774 \uD544\uC694\uD569\uB2C8\uB2E4.","Saved from":"\uB2E4\uC74C\uC73C\uB85C\uBD80\uD130 \uC800\uC7A5\uB428: ",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"",HTML:"","Use TAB to select grip buttons or left and right arrows to change selection":"\uC120\uD0DD \uBC94\uC704\uB97C \uBCC0\uACBD\uD558\uB824\uBA74 \uC120\uD0DD \uBC84\uD2BC\uC774\uB098 \uC88C\uC6B0 \uD654\uC0B4\uD45C\uB97C \uC774\uC6A9\uD558\uC138\uC694.","Use left and right arrows to move selection":"\uC120\uD0DD \uBC94\uC704\uB97C \uC6C0\uC9C1\uC774\uB824\uBA74 \uC88C\uC6B0 \uD654\uC0B4\uD45C\uB97C \uC774\uC6A9\uD558\uC138\uC694.","Use left and right arrows to move left selection":"\uC67C\uCABD \uC120\uD0DD \uBC94\uC704\uB97C \uC6C0\uC9C1\uC774\uB824\uBA74 \uC88C\uC6B0 \uD654\uC0B4\uD45C\uB97C \uC774\uC6A9\uD558\uC138\uC694.","Use left and right arrows to move right selection":"\uC624\uB978\uCABD \uC120\uD0DD \uBC94\uC704\uB97C \uC6C0\uC9C1\uC774\uB824\uBA74 \uC88C\uC6B0 \uD654\uC0B4\uD45C\uB97C \uC774\uC6A9\uD558\uC138\uC694.","Use TAB select grip buttons or up and down arrows to change selection":"\uC120\uD0DD \uBC94\uC704\uB97C \uBCC0\uACBD\uD558\uB824\uBA74 \uC120\uD0DD \uBC84\uD2BC\uC774\uB098 \uC0C1\uD558 \uD654\uC0B4\uD45C\uB97C \uC774\uC6A9\uD558\uC138\uC694.","Use up and down arrows to move selection":"\uC120\uD0DD \uBC94\uC704\uB97C \uC6C0\uC9C1\uC774\uB824\uBA74 \uC0C1\uD558 \uD654\uC0B4\uD45C\uB97C \uC774\uC6A9\uD558\uC138\uC694.","Use up and down arrows to move lower selection":"\uD558\uB2E8 \uC120\uD0DD \uBC94\uC704\uB97C \uC6C0\uC9C1\uC774\uB824\uBA74 \uC0C1\uD558 \uD654\uC0B4\uD45C\uB97C \uC774\uC6A9\uD558\uC138\uC694.","Use up and down arrows to move upper selection":"\uC0C1\uB2E8 \uC120\uD0DD \uBC94\uC704\uB97C \uC6C0\uC9C1\uC774\uB824\uBA74 \uC0C1\uD558 \uD654\uC0B4\uD45C\uB97C \uC774\uC6A9\uD558\uC138\uC694.","From %1 to %2":"%1 \uBD80\uD130 %2 \uAE4C\uC9C0","From %1":"%1 \uBD80\uD130","To %1":"%1 \uAE4C\uC9C0","No parser available for file: %1":"\uD30C\uC77C \uD30C\uC2F1 \uBD88\uAC00\uB2A5: %1","Error parsing file: %1":"\uD30C\uC77C \uD30C\uC2F1 \uC624\uB958: %1","Unable to load file: %1":"\uD30C\uC77C \uB85C\uB4DC \uBD88\uAC00\uB2A5: %1","Invalid date":"\uB0A0\uC9DC \uC62C\uBC14\uB974\uC9C0 \uC54A\uC74C",Close:"",Minimize:"",Confirm:"",OK:"\uD655\uC778",Cancel:"\uCDE8\uC18C",Delete:"\uC0AD\uC81C",Settings:"\uC124\uC815",Expand:"\uD655\uC7A5","Move Up":"\uC704\uB85C \uC774\uB3D9","Move Down":"\uC544\uB798\uB85C \uC774\uB3D9"};export{o as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import{a}from"./53OXTCE6.js";import"./4L43F7HU.js";import"./ZCFWKPXL.js";import"./IFR4IYSI.js";import"./7VDBR3SK.js";import"./FIZMK7GS.js";import"./ZKWI43WZ.js";import"./3UMLR76Y.js";import"./TAVTDQ6S.js";export{a as ArcgisLayerListItemIndicator};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
2
|
-
import"./
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import"./JXQEGZDB.js";import{a as v}from"./GDLDEHUJ.js";import{a as o}from"./PIDNZKSJ.js";import{f as u}from"./IFR4IYSI.js";import"./7VDBR3SK.js";import"./FIZMK7GS.js";import"./ZKWI43WZ.js";import{P as h,R as s,U as d,X as p,a as n,b as a,x as l}from"./3UMLR76Y.js";import"./TAVTDQ6S.js";export default $arcgis.t(([{when:f,watch:w}])=>{var x=n`:host{--num-phases: 7;--container-width: 100cqw;--phase-size: 24px;--arrow-width: var(--calcite-size-md);--padding: var(--calcite-spacing-xxs);--divider-width-min: var(--calcite-spacing-base);--divider-width-max: var(--calcite-spacing-xl);--divider-width: calc( (var(--container-width) - (var(--phase-size) * var(--num-phases)) - (var(--arrow-width) * 2) - (var(--padding) * 2) ) / (var(--num-phases) - 1) );container-type:inline-size}.phase-picker,.phases-container{display:flex;flex-direction:row;align-items:center}.phases-container{position:relative;flex-shrink:1;padding:var(--calcite-spacing-xxs);overflow:hidden}.phase-button{appearance:none;display:flex;flex-shrink:0;align-items:center;justify-content:center;border:solid var(--calcite-border-width-sm) var(--calcite-color-border-2);border-radius:var(--calcite-corner-radius-pill);background:var(--arcgis-internal-building-explorer-button-background-color, var(--calcite-color-background));cursor:pointer;padding:1px 0 0;width:var(--phase-size);height:var(--phase-size);color:var(--arcgis-internal-building-explorer-button-text-color);font-family:var(--calcite-sans-family);font-size:var(--calcite-font-size);font-weight:var(--calcite-font-weight-regular)}.phase-button:hover{border-width:var(--calcite-border-width-md);border-color:var(--calcite-color-brand)}.phase-button:focus-visible{outline:var(--calcite-border-width-md) solid var(--calcite-color-brand);outline-offset:var(--calcite-border-width-md)}.phase-button.active{border-color:var(--calcite-color-brand);background-color:var(--arcgis-internal-building-explorer-button-background-color, var(--calcite-color-transparent))}.phase-button.current{border-color:var(--arcgis-internal-building-explorer-selected-button-background-color);background-color:var(--arcgis-internal-building-explorer-selected-button-background-color);color:var(--arcgis-internal-building-explorer-selected-button-text-color)}.arrow-left,.arrow-right{flex-shrink:0;inline-size:var(--arrow-width)}.divider{flex:0;background:var(--calcite-color-border-1);min-width:clamp(var(--divider-width-min),var(--divider-width),var(--divider-width-max));height:var(--calcite-border-width-sm)}.divider.active{background-color:var(--calcite-color-brand)}`,c=class extends h{constructor(){super(...arguments),this.#r=u(),this.#e=!0,this.#i=!1,this.arcgisBuildingPhaseChange=l({bubbles:!0,composed:!0})}static{this.properties={messages:0,phase:0,numberOfPhases:32,phaseHeight:32}}static{this.styles=x}get phases(){return this.phase?.allowedValues??[]}#r;#e;#i;get numberOfPhases(){return this.phases.length}get phaseHeight(){let e=14,t=e*2/Math.sqrt(this.numberOfPhases);return Math.round(v(t,2,e))}loaded(){this.listen("keydown",e=>{switch(e.key){case"ArrowDown":case"ArrowLeft":e.stopPropagation(),e.preventDefault(),this.#s(),this.#i=!0;break;case"ArrowUp":case"ArrowRight":e.stopPropagation(),e.preventDefault(),this.#t(),this.#i=!0;break}}),this.manager.onLifecycle(()=>[f(()=>this.phase?.state==="ready",()=>{requestAnimationFrame(()=>{this.#e=!0,this.#a()})},{initial:!0}),w(()=>this.phase?.value,()=>{this.#e=!0,this.requestUpdate()})])}updated(){this.#a()}#a(){let e=this.renderRoot.querySelector("button.current");e&&(this.#e&&(e.scrollIntoView({block:"nearest",inline:"center"}),this.#e=!1),this.#i&&(e.focus(),this.#i=!1))}#t(){this.phase&&(this.phase.next(),this.arcgisBuildingPhaseChange.emit())}#s(){this.phase&&(this.phase.previous(),this.arcgisBuildingPhaseChange.emit())}#o(e){this.phase!=null&&this.phase?.value!==e&&(this.phase?.select(e),this.arcgisBuildingPhaseChange.emit())}render(){let e=this.phase,t=this.messages;return!t||e==null?null:a`<div class="phase-picker">${g({className:"arrow-left",disabled:this.phases.length===0||!e.hasPrevious,icon:this.#r==="rtl"?"chevron-right":"chevron-left",onClick:()=>this.#s(),text:t.previousPhase})}<div class="phases-container">${this.phases.map((r,b)=>a`${b>0&&a`<span class=${s({divider:!0,active:e.value>=r})}></span>`||""}${o(r,a`<button class=${s({"phase-button":!0,active:e.value>=r,current:e.value===r})} @click=${()=>{this.#o(r)}}>${r}</button>`)}`)}</div>${g({className:"arrow-right",disabled:this.phases.length===0||!e.hasNext,icon:this.#r==="rtl"?"chevron-left":"chevron-right",onClick:()=>this.#t(),text:t.nextPhase})}</div>`}};function g(i){return o(i.className,a`<calcite-action class=${s(i.className)} .disabled=${i.disabled} .icon=${i.icon} icon-flip-rtl @click=${i.onClick} .text=${i.text} title=${i.text??d}></calcite-action>`)}p("arcgis-building-phase-picker",c);return c},"core/reactiveUtils")
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
2
|
-
import{a as T}from"./KBHLE7HT.js";import{a as w}from"./WEAGLY7B.js";import c from"./JBHRVHGS.js";import{h as L}from"./JAZGNQRP.js";import"./Z5C6UBYP.js";import a from"./7V7IKYJG.js";import"./QUZTFUWM.js";import"./WQMZ7BDQ.js";import{N as g,O as v,P as M,R as f,S as u,U as y,X as $,Y as b,a as _,b as r,x as S}from"./EKR2SAT2.js";import"./H6RQVSYM.js";export default $arcgis.t(([{watch:p},k,,{a:R}])=>{var o=new Set(["ar-iq","ar-kw","bg-bg","cs-cz","da-dk","da-gl","de-at","de-ch","de-de","de-li","el-gr","en-ae","en-au","en-ca","en-eg","en-gb","en-hk","en-id","en-ie","en-il","en-in","en-iq","en-ke","en-lu","en-mo","en-my","en-nz","en-rw","en-sg","en-us","en-vi","en-wo","en-za","es-ar","es-bo","es-cl","es-co","es-cr","es-es","es-gt","es-mx","es-ni","es-pe","es-pr","es-sv","es-ve","et-ee","fi-fi","fr-ci","fr-fr","fr-ma","fr-mg","fr-ml","fr-tn","is-is","it-it","ja-jp","ko-kr","lt-lt","lv-lv","nl-be","nl-nl","nl-sr","nn-no","pl-pl","pt-br","pt-pt","ro-ro","ru-ru","sk-sk","sv-se","th-th","zh-cn","zh-tw"]),I={ar:"iq",bg:"bg",cs:"cz",da:"dk",de:"de",el:"gr",en:"us",es:"es",et:"ee",fi:"fi",fr:"fr",is:"is",it:"it",ja:"jp",ko:"kr",lt:"lt",lv:"lv",nl:"nl",nn:"no",pl:"pl",pt:"br",ro:"ro",ru:"ru",sk:"sk",sv:"se",th:"th",zh:"cn"},P=_`:host{display:block;width:310px;max-width:100%}.slider{height:50px}.scale-indicator-container{position:relative;width:100%;margin-top:2px}.scale-indicator-container[slot=track-overlay]{position:absolute;inset:0;pointer-events:none;margin-top:0}.scale-indicator-icon{left:var(--arcgis-internal-scale-indicator-offset);transform:scale(.8,1.7);margin-left:-6px;width:1px;--calcite-icon-color: var(--calcite-color-text-3)}.scale-indicator-range{top:-1px;left:var(--arcgis-internal-scale-indicator-left);width:calc(var(--arcgis-internal-scale-indicator-right) - var(--arcgis-internal-scale-indicator-left));height:4px;background-color:var(--calcite-color-brand);mask-image:linear-gradient(to right,transparent 0%,black 30%,black 70%,transparent 100%);pointer-events:none}.scale-menu-list{max-height:220px;overflow-y:auto}.scale-menu-input{max-width:120px}.scale-menu-button-container{display:flex;direction:ltr;justify-content:space-between}.scale-menu-button{min-width:0}:dir(rtl) .scale-menu-button-container>*{direction:rtl}.preview-container{padding:6px;background-color:var(--calcite-color-foreground-1);box-shadow:0 1px 2px #0000004d}`,l=[{id:"world",scale:147914382,minScale:147914382,maxScale:1e8},{id:"continent",scale:5e7,minScale:99999999,maxScale:35e6},{id:"countriesBig",scale:25e6,minScale:34999999,maxScale:15e6},{id:"countriesSmall",scale:12e6,minScale:14999999,maxScale:7e6},{id:"statesProvinces",scale:6e6,minScale:6999999,maxScale:4e6},{id:"stateProvince",scale:3e6,minScale:3999999,maxScale:2e6},{id:"counties",scale:15e5,minScale:1999999,maxScale:1e6},{id:"county",scale:75e4,minScale:999999,maxScale:5e5},{id:"metropolitanArea",scale:32e4,minScale:499999,maxScale:25e4},{id:"cities",scale:16e4,minScale:249999,maxScale:12e4},{id:"city",scale:8e4,minScale:119999,maxScale:6e4},{id:"town",scale:4e4,minScale:59999,maxScale:3e4},{id:"neighborhood",scale:2e4,minScale:29999,maxScale:15e3},{id:"streets",scale:1e4,minScale:14999,maxScale:7500},{id:"street",scale:5e3,minScale:7499,maxScale:4e3},{id:"buildings",scale:2500,minScale:3999,maxScale:2e3},{id:"building",scale:1250,minScale:1999,maxScale:801},{id:"smallBuilding",scale:800,minScale:800,maxScale:401},{id:"rooms",scale:400,minScale:400,maxScale:101},{id:"room",scale:100,minScale:100,maxScale:0}],x=class extends M{constructor(){super(...arguments),this.messages=w(),this._sliderRef=g(),this._activeMenu=null,this._customScaleSelected=null,this._portalRegion=null,this._layerMaxScaleLimit=l[l.length-1].maxScale,this._layerMinScaleLimit=l[0].minScale,this.autoDestroyDisabled=!1,this.disabled=!1,this.hidePreview=!1,this.hideMaxScaleMenu=!1,this.hideMinScaleMenu=!1,this.icon="actual-size",this.maxScale=0,this.maxScaleLimit=l[l.length-1].maxScale,this.minScale=0,this.minScaleLimit=l[0].minScale,this.mode="range",this.showScaleRangeIndicator=!1,this.showWorldValue=!1,this.view=R(this),this.arcgisChange=S(),this.arcgisInput=S(),this.arcgisPropertyChange=L()("state","minScale","maxScale"),this.arcgisReady=S()}static{this.properties={_activeMenu:16,_customScaleSelected:16,_portalRegion:16,_layerMaxScaleLimit:16,_layerMinScaleLimit:16,autoDestroyDisabled:5,disabled:7,hidePreview:5,hideMaxScaleMenu:5,hideMinScaleMenu:5,icon:1,label:1,layer:0,maxScale:9,maxScaleLimit:9,minScale:9,minScaleLimit:9,mode:1,referenceElement:1,region:1,showScaleRangeIndicator:5,showWorldValue:5,state:32,view:0}}static{this.styles=P}get state(){let{view:e,layer:a}=this;return!e&&!a||!e&&a?.loadStatus==="loaded"||!a&&e?.ready||e?.ready&&a?.loadStatus==="loaded"?"ready":"disabled"}async destroy(){await this.manager.destroy()}willUpdate(e){if((e.has("maxScaleLimit")||e.has("minScaleLimit"))&&(this.minScaleLimit===0&&(this.minScaleLimit=l[0].minScale),this.maxScaleLimit===0&&(this.maxScaleLimit=l[l.length-1].maxScale),this.minScaleLimit=Math.min(this.minScaleLimit,l[0].minScale),this.maxScaleLimit=Math.max(this.maxScaleLimit,l[l.length-1].maxScale),this.minScale!==0&&(this.minScale=Math.min(this.minScale,this._interactiveMinScale)),this.maxScale!==0&&(this.maxScale=Math.max(this.maxScale,this._interactiveMaxScale)),this.hasUpdated&&this._syncLayerScale()),e.has("maxScale")||e.has("minScale")){if(this.minScale!==0){let a=this._clampScale("min",this.minScale);this.minScale=a===this.minScaleLimit?0:a}if(this.maxScale!==0){let a=this._clampScale("max",this.maxScale);this.maxScale=a===this.maxScaleLimit?0:a}}e.has("layer")&&(this.layer?this.layer.load().catch(()=>{}):(this._layerMinScaleLimit=l[0].minScale,this._layerMaxScaleLimit=l[l.length-1].maxScale)),e.has("mode")&&(this.mode==="max-scale-only"?this.minScale=0:this.mode==="min-scale-only"&&(this.maxScale=0),e.get("mode")!==void 0&&this._syncLayerScale())}loaded(){k.getDefault().load().then(e=>{let a=e.user?.culture??e.culture;a&&(this._portalRegion=a.split("-")[1]?.toLowerCase()??null)}).catch(()=>{}),this.manager.onLifecycle(()=>[p(()=>this.view?.scale,()=>this.requestUpdate(),{initial:!0}),p(()=>this.view?.type==="3d"?this.view.camera?.tilt:void 0,()=>{this.showScaleRangeIndicator&&this.requestUpdate()},{initial:!0}),p(()=>({loaded:this.layer?.loadStatus==="loaded",ready:this.view?.ready}),({loaded:e,ready:a})=>{if(!e||!a||!this.layer)return;this._layerMinScaleLimit=l[0].minScale,this._layerMaxScaleLimit=l[l.length-1].maxScale;let t=this.layer.type==="wcs"||this.layer.type==="imagery-tile"&&this.layer.raster?.tileType==="Raster"?null:"tileInfo"in this.layer?this.layer.tileInfo?.lods:null;if(t)!("resampling"in this.layer)||this.layer.resampling||(this._layerMinScaleLimit=t[0].scale===0?l[0].minScale:Math.min(l[0].minScale,t[0].scale),this._layerMaxScaleLimit=t[t.length-1].scale);else{let s=this.layer&&"maxScaleRange"in this.layer?this.layer.maxScaleRange:null,c=0,n=0;s&&(c=s.minScale,n=s.maxScale),n!==0&&(this._layerMaxScaleLimit=n),c!==0&&(this._layerMinScaleLimit=c)}let i=this.layer;i&&"minScale"in i&&"maxScale"in i&&(i.minScale!==0&&this.minScale===0&&(this.minScale=Math.min(i.minScale,this._interactiveMinScale)),i.maxScale!==0&&this.maxScale===0&&(this.maxScale=Math.max(i.maxScale,this._interactiveMaxScale)))},{initial:!0})])}get _interactiveMinScale(){return Math.min(this.minScaleLimit,this._layerMinScaleLimit)}get _interactiveMaxScale(){return Math.max(this.maxScaleLimit,this._layerMaxScaleLimit)}get _effectiveMinScale(){return this.minScale===0?this._interactiveMinScale:this.minScale}get _effectiveMaxScale(){return this.maxScale===0?this._interactiveMaxScale:this.maxScale}get _sliderFullRangeMin(){return this._mapScaleToSlider(this.minScaleLimit)}get _sliderFullRangeMax(){return this._mapScaleToSlider(this.maxScaleLimit)}_clampScale(e,a){return e==="min"?Math.min(Math.max(a,this._effectiveMaxScale+1),this._interactiveMinScale):Math.max(Math.min(a,this._effectiveMinScale-1),this._interactiveMaxScale)}_getDropdownLabel(e){let a=e==="min"?this._effectiveMinScale:this._effectiveMaxScale,t=Math.floor(this._mapScaleToSlider(a)),i=this.messages.scaleRangeLabels;return i?i[l[t].id]:""}_getScaleRangeIndicatorWidth(){let e=this.view?.type==="3d"?this.view.camera?.tilt??0:0,a=e<=90?e:180-e;return Math.min(33+a/90*30,60)}_getSpriteSheetFile(){if(this.region){let t=this.region.toLowerCase(),i=`${this.messages._t9nLocale}-${t}`;if(o.has(i))return i;for(let s of o)if(s.endsWith(`-${t}`))return s}let e=this.messages._lang.toLowerCase();if(o.has(e))return e;if(this._portalRegion){let t=`${this.messages._t9nLocale}-${this._portalRegion}`;if(o.has(t))return t}let a=I[this.messages._t9nLocale];if(a){let t=`${this.messages._t9nLocale}-${a}`;if(o.has(t))return t}for(let t of o)if(t.startsWith(`${this.messages._t9nLocale}-`))return t;return"en-wo"}_handleCustomScaleInput(e,a){let t=Number.parseFloat(a);this._setScale(e,t)}_handleSliderThumbDrag(){let e=this._sliderRef.value;if(e){if(this.mode==="max-scale-only"){let a=Math.max(this._mapSliderToScale(e.values[0]),this._interactiveMaxScale);this.maxScale=a===this._interactiveMaxScale?0:a}else if(this.mode==="min-scale-only"){let a=Math.min(this._mapSliderToScale(e.values[0]),this._interactiveMinScale);this.minScale=a===this._interactiveMinScale?0:a}else{let a=Math.min(this._mapSliderToScale(e.values[0]),this._interactiveMinScale),t=Math.max(this._mapSliderToScale(e.values[1]),this._interactiveMaxScale);this.minScale=a===this._interactiveMinScale?0:a,this.maxScale=t===this._interactiveMaxScale?0:t}this._syncLayerScale()}}_mapScaleToSlider(e){let a=Math.min(l[0].minScale,Math.max(l[l.length-1].maxScale,e)),t=l.findIndex(n=>a>=n.maxScale&&a<=n.minScale),i=l[t],s=t,c=t+.9999;return i?s+(a-i.minScale)*(c-s)/(i.maxScale-i.minScale):0}_mapSliderToScale(e){let a=Math.min(l.length-1,Math.max(0,Math.floor(e))),{maxScale:t,minScale:i}=l[a],s=a,c=s+.9999;return i+(e-s)*(t-i)/(c-s)}_setScale(e,a){e==="min"?this.minScale=a===0?0:this._clampScale("min",a):this.maxScale=a===0?0:this._clampScale("max",a),this._syncLayerScale(),this._activeMenu=null}_syncLayerScale(){this.layer&&"minScale"in this.layer&&"maxScale"in this.layer&&(this.layer.minScale=this.mode==="max-scale-only"?0:this._effectiveMinScale,this.layer.maxScale=this.mode==="min-scale-only"?0:this._effectiveMaxScale)}_renderScalePreviewPopover(){let e=this._renderScalePreview();return this.hidePreview||!e?null:r`<div slot=popover>${e}</div>`}render(){let e=this._mapScaleToSlider(this._interactiveMinScale),a=this._mapScaleToSlider(this._interactiveMaxScale),t=this._sliderFullRangeMin,i=this._sliderFullRangeMax;return r`<div><arcgis-slider class="slider" .disabled=${this.disabled} layout=horizontal .fillPlacement=${this.mode==="max-scale-only"?"start":this.mode==="min-scale-only"?"end":void 0} .fullRangeMin=${t<e?t:void 0} .fullRangeMax=${i>a?i:void 0} .max=${a} .min=${e} .labelFormatter=${(s,c,n)=>n(Math.round(this._mapSliderToScale(s)))} .values=${this.mode==="max-scale-only"?[this._mapScaleToSlider(this._effectiveMaxScale)]:this.mode==="min-scale-only"?[this._mapScaleToSlider(this._effectiveMinScale)]:[this._mapScaleToSlider(this._effectiveMinScale),this._mapScaleToSlider(this._effectiveMaxScale)]} @arcgisInput=${this._handleSliderThumbDrag} ${v(this._sliderRef)}>${this._renderScalePreviewPopover()}${this.view?.scale!=null&&this._renderCurrentScaleIndicator(this.view.scale)||""}</arcgis-slider><div class="scale-menu-button-container" slot=content-end>${this.mode!=="max-scale-only"&&!this.hideMinScaleMenu?[this._renderScaleMenuButtons("min"),this._renderScaleMenuPopover("min")]:r`<div></div>`}${this.mode!=="min-scale-only"&&!this.hideMaxScaleMenu&&[this._renderScaleMenuButtons("max"),this._renderScaleMenuPopover("max")]||""}</div></div>`}_renderCurrentScaleIndicator(e){let a=this._sliderFullRangeMin,t=this._sliderFullRangeMax-a,i=this.view?.type==="3d"&&this.showScaleRangeIndicator,s=Math.min(100,Math.max(0,(this._mapScaleToSlider(e)-a)/t*100));return T("scale-indicator",r`<div class="scale-indicator-container" .slot=${i?"track-overlay":"content-end"}><div class=${f(i?"scale-indicator-range":"scale-indicator-icon")} style=${u({position:"absolute","--arcgis-internal-scale-indicator-offset":`${s}%`,...i?{"--arcgis-internal-scale-indicator-left":`max(0%, calc(${s}% - ${this._getScaleRangeIndicatorWidth()/2}px))`,"--arcgis-internal-scale-indicator-right":`min(100%, calc(${s}% + ${this._getScaleRangeIndicatorWidth()/2}px))`}:{}})} .title=${`${this.messages.currentScale} 1:${Math.round(e).toLocaleString(this.messages._t9nLocale)}`}>${i?null:r`<calcite-icon icon=caret-up scale=s></calcite-icon>`}</div></div>`)}_renderCustomScaleValue(e,a){let t=Math.round(a).toString();return r`<calcite-list-item .label=${this.messages?.featuredScaleLabels?.custom} .selected=${this._customScaleSelected===e} @calciteListItemSelect=${i=>{let s=i.target.querySelector("calcite-input-number");this._handleCustomScaleInput(e,s?.value??""),this._customScaleSelected=e}}><calcite-input-number dir=ltr class="scale-menu-input" slot=content-end group-separator inputmode=numeric .max=${l[0].minScale} .min=${l[l.length-1].maxScale} number-button-type=none .placeholder=${this.messages?.customScaleInputTooltip} prefix-text=1: scale=s step=1 .value=${t} @click=${i=>i.stopPropagation()} @keydown=${i=>{i.key==="Enter"&&(this._handleCustomScaleInput(e,i.target.value),this._customScaleSelected=e,i.stopPropagation())}}></calcite-input-number></calcite-list-item>`}_renderScaleMenuButtons(e){return r`<calcite-button .disabled=${this.disabled} class="scale-menu-button" .id=${`scale-menu-button-${e}`} icon-end=chevron-down scale=s .appearance=${this._activeMenu===e?"outline":"transparent"}>${this._getDropdownLabel(e)}</calcite-button>`}_renderScaleMenuPopover(e){return r`<calcite-popover auto-close .label=${`${e==="min"?"Min":"Max"} scale menu`} .referenceElement=${`scale-menu-button-${e}`} .placement=${e==="max"?"bottom-end":"bottom-start"} .open=${this._activeMenu===e} scale=s @calcitePopoverOpen=${()=>this._activeMenu=e} @calcitePopoverClose=${()=>{this._activeMenu===e&&(this._activeMenu=null)}}>${this._renderScaleMenu(e)}</calcite-popover>`}_renderScaleMenu(e){let a=Math.floor(this._mapScaleToSlider(this._effectiveMaxScale)),t=Math.floor(this._mapScaleToSlider(this._effectiveMinScale)),i=e==="min"?this._effectiveMinScale:this._effectiveMaxScale,s=this.messages.featuredScaleLabels;if(!s)return;let c=Math.floor(this._mapScaleToSlider(this._interactiveMaxScale)),n=Math.floor(this._mapScaleToSlider(this._interactiveMinScale)),d=l.filter((h,m)=>e==="min"?m<a&&m>=n:m>t&&m<=c).map(h=>this._renderScaleMenuItem({scaleLabel:s[h.id],scaleValue:h.scale,isSelected:i===h.scale,valueVisible:h.id!=="world"||this.showWorldValue,type:e}));return r`<calcite-list label="Scale Menu List" scale=s class="scale-menu-list" selection-appearance=icon selection-mode=single-persist>${this._renderCustomScaleValue(e,i)}${this.view?.scale!=null?this._renderScaleMenuItem({scaleValue:this.view.scale,scaleLabel:s.current,isSelected:i===this.view.scale,valueVisible:!0,type:e}):null}${d}</calcite-list>`}_renderScaleMenuItem(e){let{scaleValue:a,scaleLabel:t,isSelected:i,valueVisible:s}=e,c=a===l[0].scale?` ${this.messages.aboveSuffix}`:a===l[l.length-1].scale?` ${this.messages.belowSuffix}`:"";return r`<calcite-list-item .label=${t} .selected=${i&&this._customScaleSelected!==e.type} .description=${s?`1:${Math.round(a).toLocaleString(this.messages._t9nLocale)}${c}`:void 0} @calciteListItemSelect=${()=>{this._setScale(e.type,a),this._customScaleSelected=null}}></calcite-list-item>`}_renderScalePreview(){let e=this._sliderRef.value?.activeValue;if(typeof e!="number")return null;let a=Math.min(l.length-1,Math.max(0,Math.floor(e))),t=5,i=128,s=i*(a%t),c=i*Math.floor(a/t),n=`-${s}px -${c}px`,d=this._getSpriteSheetFile();return r`<div class="preview-container"><img src=${b(`./assets/slider-scale-range/images/${d}.avif`)??y} style=${u({display:"block",height:`${i}px`,width:`${i}px`,objectPosition:n,objectFit:"none"})}></div>`}};$("arcgis-slider-scale-range",x);return x},"core/reactiveUtils","portal/Portal",a,c)
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import{a as T}from"./PIDNZKSJ.js";import{a as w}from"./ZSPYPXBY.js";import c from"./HPWF3IQV.js";import{h as L}from"./IFR4IYSI.js";import"./7VDBR3SK.js";import a from"./QPSAD5DG.js";import"./FIZMK7GS.js";import"./ZKWI43WZ.js";import{N as g,O as v,P as M,R as f,S as u,U as y,X as $,Y as b,a as _,b as r,x as S}from"./3UMLR76Y.js";import"./TAVTDQ6S.js";export default $arcgis.t(([{watch:p},k,,{a:R}])=>{var o=new Set(["ar-iq","ar-kw","bg-bg","cs-cz","da-dk","da-gl","de-at","de-ch","de-de","de-li","el-gr","en-ae","en-au","en-ca","en-eg","en-gb","en-hk","en-id","en-ie","en-il","en-in","en-iq","en-ke","en-lu","en-mo","en-my","en-nz","en-rw","en-sg","en-us","en-vi","en-wo","en-za","es-ar","es-bo","es-cl","es-co","es-cr","es-es","es-gt","es-mx","es-ni","es-pe","es-pr","es-sv","es-ve","et-ee","fi-fi","fr-ci","fr-fr","fr-ma","fr-mg","fr-ml","fr-tn","is-is","it-it","ja-jp","ko-kr","lt-lt","lv-lv","nl-be","nl-nl","nl-sr","nn-no","pl-pl","pt-br","pt-pt","ro-ro","ru-ru","sk-sk","sv-se","th-th","zh-cn","zh-tw"]),I={ar:"iq",bg:"bg",cs:"cz",da:"dk",de:"de",el:"gr",en:"us",es:"es",et:"ee",fi:"fi",fr:"fr",is:"is",it:"it",ja:"jp",ko:"kr",lt:"lt",lv:"lv",nl:"nl",nn:"no",pl:"pl",pt:"br",ro:"ro",ru:"ru",sk:"sk",sv:"se",th:"th",zh:"cn"},P=_`:host{display:block;width:310px;max-width:100%}.slider{height:50px}.scale-indicator-container{position:relative;width:100%;margin-top:2px}.scale-indicator-container[slot=track-overlay]{position:absolute;inset:0;pointer-events:none;margin-top:0}.scale-indicator-icon{left:var(--arcgis-internal-scale-indicator-offset);transform:scale(.8,1.7);margin-left:-6px;width:1px;--calcite-icon-color: var(--calcite-color-text-3)}.scale-indicator-range{top:-1px;left:var(--arcgis-internal-scale-indicator-left);width:calc(var(--arcgis-internal-scale-indicator-right) - var(--arcgis-internal-scale-indicator-left));height:4px;background-color:var(--calcite-color-brand);mask-image:linear-gradient(to right,transparent 0%,black 30%,black 70%,transparent 100%);pointer-events:none}.scale-menu-list{max-height:220px;overflow-y:auto}.scale-menu-input{max-width:120px}.scale-menu-button-container{display:flex;direction:ltr;justify-content:space-between}.scale-menu-button{min-width:0}:dir(rtl) .scale-menu-button-container>*{direction:rtl}.preview-container{padding:6px;background-color:var(--calcite-color-foreground-1);box-shadow:0 1px 2px #0000004d}`,l=[{id:"world",scale:147914382,minScale:147914382,maxScale:1e8},{id:"continent",scale:5e7,minScale:99999999,maxScale:35e6},{id:"countriesBig",scale:25e6,minScale:34999999,maxScale:15e6},{id:"countriesSmall",scale:12e6,minScale:14999999,maxScale:7e6},{id:"statesProvinces",scale:6e6,minScale:6999999,maxScale:4e6},{id:"stateProvince",scale:3e6,minScale:3999999,maxScale:2e6},{id:"counties",scale:15e5,minScale:1999999,maxScale:1e6},{id:"county",scale:75e4,minScale:999999,maxScale:5e5},{id:"metropolitanArea",scale:32e4,minScale:499999,maxScale:25e4},{id:"cities",scale:16e4,minScale:249999,maxScale:12e4},{id:"city",scale:8e4,minScale:119999,maxScale:6e4},{id:"town",scale:4e4,minScale:59999,maxScale:3e4},{id:"neighborhood",scale:2e4,minScale:29999,maxScale:15e3},{id:"streets",scale:1e4,minScale:14999,maxScale:7500},{id:"street",scale:5e3,minScale:7499,maxScale:4e3},{id:"buildings",scale:2500,minScale:3999,maxScale:2e3},{id:"building",scale:1250,minScale:1999,maxScale:801},{id:"smallBuilding",scale:800,minScale:800,maxScale:401},{id:"rooms",scale:400,minScale:400,maxScale:101},{id:"room",scale:100,minScale:100,maxScale:0}],x=class extends M{constructor(){super(...arguments),this.messages=w(),this._sliderRef=g(),this._activeMenu=null,this._customScaleSelected=null,this._portalRegion=null,this._layerMaxScaleLimit=l[l.length-1].maxScale,this._layerMinScaleLimit=l[0].minScale,this.autoDestroyDisabled=!1,this.disabled=!1,this.hidePreview=!1,this.hideMaxScaleMenu=!1,this.hideMinScaleMenu=!1,this.icon="actual-size",this.maxScale=0,this.maxScaleLimit=l[l.length-1].maxScale,this.minScale=0,this.minScaleLimit=l[0].minScale,this.mode="range",this.showScaleRangeIndicator=!1,this.showWorldValue=!1,this.view=R(this),this.arcgisChange=S(),this.arcgisInput=S(),this.arcgisPropertyChange=L()("state","minScale","maxScale"),this.arcgisReady=S()}static{this.properties={_activeMenu:16,_customScaleSelected:16,_portalRegion:16,_layerMaxScaleLimit:16,_layerMinScaleLimit:16,autoDestroyDisabled:5,disabled:7,hidePreview:5,hideMaxScaleMenu:5,hideMinScaleMenu:5,icon:1,label:1,layer:0,maxScale:9,maxScaleLimit:9,minScale:9,minScaleLimit:9,mode:1,referenceElement:1,region:1,showScaleRangeIndicator:5,showWorldValue:5,state:32,view:0}}static{this.styles=P}get state(){let{view:e,layer:a}=this;return!e&&!a||!e&&a?.loadStatus==="loaded"||!a&&e?.ready||e?.ready&&a?.loadStatus==="loaded"?"ready":"disabled"}async destroy(){await this.manager.destroy()}willUpdate(e){if((e.has("maxScaleLimit")||e.has("minScaleLimit"))&&(this.minScaleLimit===0&&(this.minScaleLimit=l[0].minScale),this.maxScaleLimit===0&&(this.maxScaleLimit=l[l.length-1].maxScale),this.minScaleLimit=Math.min(this.minScaleLimit,l[0].minScale),this.maxScaleLimit=Math.max(this.maxScaleLimit,l[l.length-1].maxScale),this.minScale!==0&&(this.minScale=Math.min(this.minScale,this._interactiveMinScale)),this.maxScale!==0&&(this.maxScale=Math.max(this.maxScale,this._interactiveMaxScale)),this.hasUpdated&&this._syncLayerScale()),e.has("maxScale")||e.has("minScale")){if(this.minScale!==0){let a=this._clampScale("min",this.minScale);this.minScale=a===this.minScaleLimit?0:a}if(this.maxScale!==0){let a=this._clampScale("max",this.maxScale);this.maxScale=a===this.maxScaleLimit?0:a}}e.has("layer")&&(this.layer?this.layer.load().catch(()=>{}):(this._layerMinScaleLimit=l[0].minScale,this._layerMaxScaleLimit=l[l.length-1].maxScale)),e.has("mode")&&(this.mode==="max-scale-only"?this.minScale=0:this.mode==="min-scale-only"&&(this.maxScale=0),e.get("mode")!==void 0&&this._syncLayerScale())}loaded(){k.getDefault().load().then(e=>{let a=e.user?.culture??e.culture;a&&(this._portalRegion=a.split("-")[1]?.toLowerCase()??null)}).catch(()=>{}),this.manager.onLifecycle(()=>[p(()=>this.view?.scale,()=>this.requestUpdate(),{initial:!0}),p(()=>this.view?.type==="3d"?this.view.camera?.tilt:void 0,()=>{this.showScaleRangeIndicator&&this.requestUpdate()},{initial:!0}),p(()=>({loaded:this.layer?.loadStatus==="loaded",ready:this.view?.ready}),({loaded:e,ready:a})=>{if(!e||!a||!this.layer)return;this._layerMinScaleLimit=l[0].minScale,this._layerMaxScaleLimit=l[l.length-1].maxScale;let t=this.layer.type==="wcs"||this.layer.type==="imagery-tile"&&this.layer.raster?.tileType==="Raster"?null:"tileInfo"in this.layer?this.layer.tileInfo?.lods:null;if(t)!("resampling"in this.layer)||this.layer.resampling||(this._layerMinScaleLimit=t[0].scale===0?l[0].minScale:Math.min(l[0].minScale,t[0].scale),this._layerMaxScaleLimit=t[t.length-1].scale);else{let s=this.layer&&"maxScaleRange"in this.layer?this.layer.maxScaleRange:null,c=0,n=0;s&&(c=s.minScale,n=s.maxScale),n!==0&&(this._layerMaxScaleLimit=n),c!==0&&(this._layerMinScaleLimit=c)}let i=this.layer;i&&"minScale"in i&&"maxScale"in i&&(i.minScale!==0&&this.minScale===0&&(this.minScale=Math.min(i.minScale,this._interactiveMinScale)),i.maxScale!==0&&this.maxScale===0&&(this.maxScale=Math.max(i.maxScale,this._interactiveMaxScale)))},{initial:!0})])}get _interactiveMinScale(){return Math.min(this.minScaleLimit,this._layerMinScaleLimit)}get _interactiveMaxScale(){return Math.max(this.maxScaleLimit,this._layerMaxScaleLimit)}get _effectiveMinScale(){return this.minScale===0?this._interactiveMinScale:this.minScale}get _effectiveMaxScale(){return this.maxScale===0?this._interactiveMaxScale:this.maxScale}get _sliderFullRangeMin(){return this._mapScaleToSlider(this.minScaleLimit)}get _sliderFullRangeMax(){return this._mapScaleToSlider(this.maxScaleLimit)}_clampScale(e,a){return e==="min"?Math.min(Math.max(a,this._effectiveMaxScale+1),this._interactiveMinScale):Math.max(Math.min(a,this._effectiveMinScale-1),this._interactiveMaxScale)}_getDropdownLabel(e){let a=e==="min"?this._effectiveMinScale:this._effectiveMaxScale,t=Math.floor(this._mapScaleToSlider(a)),i=this.messages.scaleRangeLabels;return i?i[l[t].id]:""}_getScaleRangeIndicatorWidth(){let e=this.view?.type==="3d"?this.view.camera?.tilt??0:0,a=e<=90?e:180-e;return Math.min(33+a/90*30,60)}_getSpriteSheetFile(){if(this.region){let t=this.region.toLowerCase(),i=`${this.messages._t9nLocale}-${t}`;if(o.has(i))return i;for(let s of o)if(s.endsWith(`-${t}`))return s}let e=this.messages._lang.toLowerCase();if(o.has(e))return e;if(this._portalRegion){let t=`${this.messages._t9nLocale}-${this._portalRegion}`;if(o.has(t))return t}let a=I[this.messages._t9nLocale];if(a){let t=`${this.messages._t9nLocale}-${a}`;if(o.has(t))return t}for(let t of o)if(t.startsWith(`${this.messages._t9nLocale}-`))return t;return"en-wo"}_handleCustomScaleInput(e,a){let t=Number.parseFloat(a);this._setScale(e,t)}_handleSliderThumbDrag(){let e=this._sliderRef.value;if(e){if(this.mode==="max-scale-only"){let a=Math.max(this._mapSliderToScale(e.values[0]),this._interactiveMaxScale);this.maxScale=a===this._interactiveMaxScale?0:a}else if(this.mode==="min-scale-only"){let a=Math.min(this._mapSliderToScale(e.values[0]),this._interactiveMinScale);this.minScale=a===this._interactiveMinScale?0:a}else{let a=Math.min(this._mapSliderToScale(e.values[0]),this._interactiveMinScale),t=Math.max(this._mapSliderToScale(e.values[1]),this._interactiveMaxScale);this.minScale=a===this._interactiveMinScale?0:a,this.maxScale=t===this._interactiveMaxScale?0:t}this._syncLayerScale()}}_mapScaleToSlider(e){let a=Math.min(l[0].minScale,Math.max(l[l.length-1].maxScale,e)),t=l.findIndex(n=>a>=n.maxScale&&a<=n.minScale),i=l[t],s=t,c=t+.9999;return i?s+(a-i.minScale)*(c-s)/(i.maxScale-i.minScale):0}_mapSliderToScale(e){let a=Math.min(l.length-1,Math.max(0,Math.floor(e))),{maxScale:t,minScale:i}=l[a],s=a,c=s+.9999;return i+(e-s)*(t-i)/(c-s)}_setScale(e,a){e==="min"?this.minScale=a===0?0:this._clampScale("min",a):this.maxScale=a===0?0:this._clampScale("max",a),this._syncLayerScale(),this._activeMenu=null}_syncLayerScale(){this.layer&&"minScale"in this.layer&&"maxScale"in this.layer&&(this.layer.minScale=this.mode==="max-scale-only"?0:this._effectiveMinScale,this.layer.maxScale=this.mode==="min-scale-only"?0:this._effectiveMaxScale)}_renderScalePreviewPopover(){let e=this._renderScalePreview();return this.hidePreview||!e?null:r`<div slot=popover>${e}</div>`}render(){let e=this._mapScaleToSlider(this._interactiveMinScale),a=this._mapScaleToSlider(this._interactiveMaxScale),t=this._sliderFullRangeMin,i=this._sliderFullRangeMax;return r`<div><arcgis-slider class="slider" .disabled=${this.disabled} layout=horizontal .fillPlacement=${this.mode==="max-scale-only"?"start":this.mode==="min-scale-only"?"end":void 0} .fullRangeMin=${t<e?t:void 0} .fullRangeMax=${i>a?i:void 0} .max=${a} .min=${e} .labelFormatter=${(s,c,n)=>n(Math.round(this._mapSliderToScale(s)))} .values=${this.mode==="max-scale-only"?[this._mapScaleToSlider(this._effectiveMaxScale)]:this.mode==="min-scale-only"?[this._mapScaleToSlider(this._effectiveMinScale)]:[this._mapScaleToSlider(this._effectiveMinScale),this._mapScaleToSlider(this._effectiveMaxScale)]} @arcgisInput=${this._handleSliderThumbDrag} ${v(this._sliderRef)}>${this._renderScalePreviewPopover()}${this.view?.scale!=null&&this._renderCurrentScaleIndicator(this.view.scale)||""}</arcgis-slider><div class="scale-menu-button-container" slot=content-end>${this.mode!=="max-scale-only"&&!this.hideMinScaleMenu?[this._renderScaleMenuButtons("min"),this._renderScaleMenuPopover("min")]:r`<div></div>`}${this.mode!=="min-scale-only"&&!this.hideMaxScaleMenu&&[this._renderScaleMenuButtons("max"),this._renderScaleMenuPopover("max")]||""}</div></div>`}_renderCurrentScaleIndicator(e){let a=this._sliderFullRangeMin,t=this._sliderFullRangeMax-a,i=this.view?.type==="3d"&&this.showScaleRangeIndicator,s=Math.min(100,Math.max(0,(this._mapScaleToSlider(e)-a)/t*100));return T("scale-indicator",r`<div class="scale-indicator-container" .slot=${i?"track-overlay":"content-end"}><div class=${f(i?"scale-indicator-range":"scale-indicator-icon")} style=${u({position:"absolute","--arcgis-internal-scale-indicator-offset":`${s}%`,...i?{"--arcgis-internal-scale-indicator-left":`max(0%, calc(${s}% - ${this._getScaleRangeIndicatorWidth()/2}px))`,"--arcgis-internal-scale-indicator-right":`min(100%, calc(${s}% + ${this._getScaleRangeIndicatorWidth()/2}px))`}:{}})} .title=${`${this.messages.currentScale} 1:${Math.round(e).toLocaleString(this.messages._t9nLocale)}`}>${i?null:r`<calcite-icon icon=caret-up scale=s></calcite-icon>`}</div></div>`)}_renderCustomScaleValue(e,a){let t=Math.round(a).toString();return r`<calcite-list-item .label=${this.messages?.featuredScaleLabels?.custom} .selected=${this._customScaleSelected===e} @calciteListItemSelect=${i=>{let s=i.target.querySelector("calcite-input-number");this._handleCustomScaleInput(e,s?.value??""),this._customScaleSelected=e}}><calcite-input-number dir=ltr class="scale-menu-input" slot=content-end group-separator inputmode=numeric .max=${l[0].minScale} .min=${l[l.length-1].maxScale} number-button-type=none .placeholder=${this.messages?.customScaleInputTooltip} prefix-text=1: scale=s step=1 .value=${t} @click=${i=>i.stopPropagation()} @keydown=${i=>{i.key==="Enter"&&(this._handleCustomScaleInput(e,i.target.value),this._customScaleSelected=e,i.stopPropagation())}}></calcite-input-number></calcite-list-item>`}_renderScaleMenuButtons(e){return r`<calcite-button .disabled=${this.disabled} class="scale-menu-button" .id=${`scale-menu-button-${e}`} icon-end=chevron-down scale=s .appearance=${this._activeMenu===e?"outline":"transparent"}>${this._getDropdownLabel(e)}</calcite-button>`}_renderScaleMenuPopover(e){return r`<calcite-popover auto-close .label=${`${e==="min"?"Min":"Max"} scale menu`} .referenceElement=${`scale-menu-button-${e}`} .placement=${e==="max"?"bottom-end":"bottom-start"} .open=${this._activeMenu===e} scale=s @calcitePopoverOpen=${()=>this._activeMenu=e} @calcitePopoverClose=${()=>{this._activeMenu===e&&(this._activeMenu=null)}}>${this._renderScaleMenu(e)}</calcite-popover>`}_renderScaleMenu(e){let a=Math.floor(this._mapScaleToSlider(this._effectiveMaxScale)),t=Math.floor(this._mapScaleToSlider(this._effectiveMinScale)),i=e==="min"?this._effectiveMinScale:this._effectiveMaxScale,s=this.messages.featuredScaleLabels;if(!s)return;let c=Math.floor(this._mapScaleToSlider(this._interactiveMaxScale)),n=Math.floor(this._mapScaleToSlider(this._interactiveMinScale)),d=l.filter((h,m)=>e==="min"?m<a&&m>=n:m>t&&m<=c).map(h=>this._renderScaleMenuItem({scaleLabel:s[h.id],scaleValue:h.scale,isSelected:i===h.scale,valueVisible:h.id!=="world"||this.showWorldValue,type:e}));return r`<calcite-list label="Scale Menu List" scale=s class="scale-menu-list" selection-appearance=icon selection-mode=single-persist>${this._renderCustomScaleValue(e,i)}${this.view?.scale!=null?this._renderScaleMenuItem({scaleValue:this.view.scale,scaleLabel:s.current,isSelected:i===this.view.scale,valueVisible:!0,type:e}):null}${d}</calcite-list>`}_renderScaleMenuItem(e){let{scaleValue:a,scaleLabel:t,isSelected:i,valueVisible:s}=e,c=a===l[0].scale?` ${this.messages.aboveSuffix}`:a===l[l.length-1].scale?` ${this.messages.belowSuffix}`:"";return r`<calcite-list-item .label=${t} .selected=${i&&this._customScaleSelected!==e.type} .description=${s?`1:${Math.round(a).toLocaleString(this.messages._t9nLocale)}${c}`:void 0} @calciteListItemSelect=${()=>{this._setScale(e.type,a),this._customScaleSelected=null}}></calcite-list-item>`}_renderScalePreview(){let e=this._sliderRef.value?.activeValue;if(typeof e!="number")return null;let a=Math.min(l.length-1,Math.max(0,Math.floor(e))),t=5,i=128,s=i*(a%t),c=i*Math.floor(a/t),n=`-${s}px -${c}px`,d=this._getSpriteSheetFile();return r`<div class="preview-container"><img src=${b(`./assets/slider-scale-range/images/${d}.avif`)??y} style=${u({display:"block",height:`${i}px`,width:`${i}px`,objectPosition:n,objectFit:"none"})}></div>`}};$("arcgis-slider-scale-range",x);return x},"core/reactiveUtils","portal/Portal",a,c)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
2
|
-
import"./
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import"./TAVTDQ6S.js";var i={_decimalSeparator:",",_thousandSeparator:" ",_percentPrefix:null,_percentSuffix:"%",_date_millisecond:"mm:ss SSS",_date_millisecond_full:"HH:mm:ss SSS",_date_second:"HH:mm:ss",_date_second_full:"HH:mm:ss",_date_minute:"HH:mm",_date_minute_full:"HH:mm - yyyy-MM-dd",_date_hour:"HH:mm",_date_hour_short:"HH",_date_hour_full:"HH:mm - yyyy-MM-dd",_date_day:"MMM dd",_date_day_full:"yyyy-MM-dd",_date_week:"ww",_date_week_full:"yyyy-MM-dd",_date_month:"MMM",_date_month_full:"MMM, yyyy",_date_year:"yyyy",_duration_millisecond:"SSS",_duration_second:"ss",_duration_minute:"mm",_duration_hour:"hh",_duration_day:"dd",_duration_week:"ww",_duration_month:"MM",_duration_year:"yyyy",_era_ad:"m.e.",_era_bc:"p.m.e.",A:"R",P:"V",AM:"ryto",PM:"vakaro","A.M.":"ryto","P.M.":"vakaro",January:"Sausio",February:"Vasario",March:"Kovo",April:"Baland\u017Eio",May:"Gegu\u017E\u0117s",June:"Bir\u017Eelio",July:"Liepos",August:"Rugpj\u016B\u010Dio",September:"Rugs\u0117jo",October:"Spalio",November:"Lapkri\u010Dio",December:"Gruod\u017Eio",Jan:"Sau",Feb:"Vas",Mar:"Kov",Apr:"Bal","May(short)":"Geg",Jun:"Bir",Jul:"Lie",Aug:"Rgp",Sep:"Rgs",Oct:"Spa",Nov:"Lap",Dec:"Gru",Sunday:"sekmadienis",Monday:"pirmadienis",Tuesday:"antradienis",Wednesday:"tre\u010Diadienis",Thursday:"ketvirtadienis",Friday:"penktadienis",Saturday:"\u0161e\u0161tadienis",Sun:"sekm.",Mon:"pirm.",Tue:"antr.",Wed:"tre\u010D.",Thu:"ketv.",Fri:"penk.",Sat:"\u0161e\u0161t.",_dateOrd:function(a){return"-a"},"Zoom Out":"Rodyti visk\u0105",Play:"Paleisti",Stop:"Sustabdyti",Legend:"Legenda","Press ENTER to toggle":"Spragtelkite, palieskite arba spauskite ENTER, kad perjungtum\u0117te",Loading:"Kraunama",Home:"Prad\u017Eia",Chart:"Grafikas","Serial chart":"Serijinis grafikas","X/Y chart":"X/Y grafikas","Pie chart":"Pyrago tipo grafikas","Gauge chart":"Daviklio tipo grafikas","Radar chart":"Radaro tipo grafikas","Sankey diagram":"Sankey diagrama","Chord diagram":"Chord diagrama","Flow diagram":"Flow diagrama","TreeMap chart":"TreeMap grafikas",Series:"Serija","Candlestick Series":'"Candlestick" tipo grafiko serija',"Column Series":"Stulpelinio grafiko serija","Line Series":"Linijinio grafiko serija","Pie Slice Series":"Pyrago tipo serija","X/Y Series":"X/Y serija",Map:"\u017Dem\u0117lapis","Press ENTER to zoom in":"Spauskite ENTER, kad pritrauktum\u0117te vaizd\u0105","Press ENTER to zoom out":"Spauskite ENTER, kad atitolintum\u0117te vaizd\u0105","Use arrow keys to zoom in and out":"Naudokit\u0117s roykl\u0117mis vaizdo pritraukimui ar atitolinimui","Use plus and minus keys on your keyboard to zoom in and out":"Spauskite pliuso arba minuso klavi\u0161us ant klaviat\u016Bros, kad pritrautum\u0117te arba atitolintum\u0117te vaizd\u0105",Export:"Eksportuoti",Image:"Vaizdas",Data:"Duomenys",Print:"Spausdinti","Press ENTER to open":"Spragtelkite arba spauskite ENTER, kad atidarytum\u0117te","Press ENTER to print.":"Spragtelkite arba spauskite ENTER, kad spausdintum\u0117te.","Press ENTER to export as %1.":"Spragtelkite arba spauskite ENTER, kad eksportuotum\u0117te kaip %1.","Image Export Complete":"Paveiksliuko eksportas baigtas","Export operation took longer than expected. Something might have gone wrong.":"Eksportas u\u017Etruko ilgiau negu tur\u0117t\u0173. Grei\u010Diausiai \u012Fvyko klaida.","Saved from":"I\u0161saugota i\u0161",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"",HTML:"","Use TAB to select grip buttons or left and right arrows to change selection":"Spauskite TAB klavi\u0161\u0105, kad pasirinktum\u0117te \u017Eymeklius, arba kair\u0117/de\u0161in\u0117 klavi\u0161us, kad pakeistum\u0117te pasirinkim\u0105","Use left and right arrows to move selection":"Naudokit\u0117s klavi\u0161ais kair\u0117/de\u0161in\u0117, kad pajudintum\u0117te pasirinkim\u0105","Use left and right arrows to move left selection":"Naudokit\u0117s klavi\u0161ais kair\u0117/de\u0161in\u0117, kad pajudintum\u0117te kair\u012F \u017Eymekl\u012F","Use left and right arrows to move right selection":"Naudokit\u0117s klavi\u0161ais kair\u0117/de\u0161in\u0117, kad pajudintum\u0117te de\u0161in\u012F \u017Eymekl\u012F","Use TAB select grip buttons or up and down arrows to change selection":"Spauskite TAB klavi\u0161\u0105, kad pasirinktum\u0117te \u017Eymeklius, arba auk\u0161tyn/\u017Eemyn klavi\u0161us, kad pakeistum\u0117te pasirinkim\u0105","Use up and down arrows to move selection":"Naudokit\u0117s klavi\u0161ais auk\u0161tyn/\u017Eemyn, kad pajudintum\u0117te pasirinkim\u0105","Use up and down arrows to move lower selection":"Naudokit\u0117s klavi\u0161ais auk\u0161tyn/\u017Eemyn, kad pajudintum\u0117te apatin\u012F \u017Eymekl\u012F","Use up and down arrows to move upper selection":"Naudokit\u0117s klavi\u0161ais auk\u0161tyn/\u017Eemyn, kad pajudintum\u0117te vir\u0161utin\u012F \u017Eymekl\u012F","From %1 to %2":"Nuo %1 iki %2","From %1":"Nuo %1","To %1":"Iki %1","No parser available for file: %1":"Failui %1 neturime tinkamo de\u0161ifruotojo","Error parsing file: %1":"Skaitant fail\u0105 %1 \u012Fvyko klaida","Unable to load file: %1":"Nepavyko u\u017Ekrauti failo %1","Invalid date":"Klaidinga data",Close:"U\u017Edaryti",Minimize:"Suma\u017Einti",Confirm:"Patvirtinti",OK:"Gerai",Cancel:"At\u0161aukti",Delete:"I\u0161trinti",Settings:"Nustatymai",Expand:"I\u0161skleisti","Move Up":"Perkelti auk\u0161tyn","Move Down":"Perkelti \u017Eemyn"};export{i as default};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import{f as w}from"./IFR4IYSI.js";import"./7VDBR3SK.js";import"./FIZMK7GS.js";import"./ZKWI43WZ.js";import{O as m,P as u,R as h,U as g,X as v,a as d,b as a}from"./3UMLR76Y.js";import"./TAVTDQ6S.js";export default $arcgis.t(([l])=>{var p=d`:host{background-color:var(--calcite-color-surface-2);block-size:var(--calcite-size-fixed-xxxl);color:var(--calcite-color-text-1);display:flex;flex:1 0 auto;font-family:var(--calcite-font-family);font-size:var(--calcite-font-size-sm);inline-size:auto;--arcgis-internal-time-bar-slider-tick-gap: 100}.root{align-items:center;block-size:100%;display:flex;inline-size:100%}slot[name=max],slot[name=min]{display:flex}.slider{padding-inline:var(--calcite-spacing-xl);--arcgis-internal-slider-track-size: var(--calcite-size-px);--arcgis-slider-track-background-color: var(--calcite-color-border-1);--labels-container-width: 100%}.slider-container{flex:1 1 auto;min-inline-size:calc(var(--calcite-spacing-md) * 15)}.slider--has-ticks{margin-top:calc(var(--calcite-spacing-md) * -1)}.hidden,.max-date,.min-date{flex:0 0 auto}.hidden{inline-size:0}.popover{padding:var(--calcite-spacing-xxs) var(--calcite-spacing-xs) var(--calcite-spacing-xs)}.ticks-container{flex:1;position:relative;width:100%;arcgis-ticks,>slot::slotted(arcgis-ticks){inset:0;position:absolute;white-space:nowrap;--arcgis-internal-ticks-color: var(--calcite-color-text-1);--arcgis-ticks-font-weight: var(--calcite-font-weight-normal);--arcgis-ticks-label-width: auto;--arcgis-ticks-tick-color: var(--calcite-color-border-1);--arcgis-ticks-tick-transform: unset;--arcgis-ticks-tick-width: var(--calcite-size-px)}}.slider.slider--out-of-range{--arcgis-internal-slider-handle-color: var(--calcite-color-status-danger);--arcgis-internal-slider-track-range-background-color: var(--calcite-color-status-danger)}.lock-time-window{--arcgis-internal-time-bar-slider-border-margin: calc(var(--calcite-spacing-base) + 1px);border-image:linear-gradient(transparent var(--arcgis-internal-time-bar-slider-border-margin),var(--calcite-action-group-border-color, var(--calcite-color-border-3)) var(--arcgis-internal-time-bar-slider-border-margin),var(--calcite-action-group-border-color, var(--calcite-color-border-3)) calc(100% - var(--arcgis-internal-time-bar-slider-border-margin)),transparent var(--arcgis-internal-time-bar-slider-border-margin));border-image-slice:1}:dir(ltr){.lock-time-window{border-inline-end-style:solid;border-inline-end-width:var(--calcite-border-width-sm);margin-inline-end:var(--calcite-spacing-sm);padding-inline-end:var(--calcite-spacing-sm)}}:dir(rtl){.lock-time-window{border-inline-start-style:solid;border-inline-start-width:var(--calcite-border-width-sm);margin-inline-start:var(--calcite-spacing-sm);padding-inline-start:var(--calcite-spacing-sm)}}`,c=class extends u{constructor(){super(...arguments),this._direction=w(),this.#t=new ResizeObserver(([e])=>{this._sliderWidth=e.contentRect.width}),this.#a=100,this.#r=100,this.#o=(e,i)=>i==="value"?this.viewModel?.formatDateTime(new Date(e)):void 0,this.autoDestroyDisabled=!1,this.lockTimeWindow=!1,this.popoverDisplay="none",this.showLockTimeWindow=!1,this.showMax=!1,this.showMin=!1,this.showTicks=!1}static{this.properties={_activeValue:16,_sliderFillPlacement:16,_sliderWidth:16,_timeExtentEpochValues:16,activeValue:32,autoDestroyDisabled:5,lockTimeWindow:5,messages:0,popoverDisplay:1,showLockTimeWindow:5,showMax:5,showMin:5,showTicks:5,viewModel:0}}static{this.styles=p}#t;#i;#s;#e;#a;#r;#o;get _sliderFillPlacement(){switch(this.viewModel?.mode){case"cumulative-from-end":return"end";case"cumulative-from-start":return"start";case"instant":return"none";default:return}}get _timeExtentEpochValues(){let{viewModel:e}=this;if(!e)return;let{fullTimeExtent:i}=e;if(!i)return;let{start:t,end:s}=i;if(!t||!s)return;let{timeExtent:r}=e;if(!r)switch(e.mode){case"cumulative-from-end":case"instant":return[t.getTime()];case"cumulative-from-start":return[s.getTime()];case"time-window":return[t.getTime(),s.getTime()]}let{start:o,end:n}=r;switch(e.mode){case"cumulative-from-end":case"instant":return o?o.getTime()<t.getTime()?[t.getTime()]:o.getTime()>s.getTime()?[s.getTime()]:[o.getTime()]:void 0;case"cumulative-from-start":return n?n.getTime()<t.getTime()?[t.getTime()]:n.getTime()>s.getTime()?[s.getTime()]:[n.getTime()]:void 0;case"time-window":return o&&n?[o.getTime(),n.getTime()]:void 0}}get activeValue(){switch(this.popoverDisplay){case"none":return;case"always":return this.viewModel?.timeExtent;case"auto":switch(this._activeValue){case void 0:return;case"all":return this.viewModel?.timeExtent;default:return new Date(this._activeValue)}}}async destroy(){await this.manager.destroy()}#m(){return e=>{if(e){this.#e=e,this.#t.observe(e);return}this.#e&&(this.#t.unobserve(this.#e),this.#e=void 0)}}#u(){let e=Number.parseInt(window.getComputedStyle(this.el).getPropertyValue("--arcgis-internal-time-bar-slider-tick-gap"),10);return Number.isFinite(e)&&e>0?e:this.#a}#h(e,i){let{viewModel:t}=this,{start:s,end:r}=e;if(!t||!s||!r)return;let o=(r.getTime()-s.getTime())/i;return t.tickFormats.find(({duration:n})=>n>this.#u()*o)??t.tickFormats.at(-1)}#g(){this.lockTimeWindow=!this.lockTimeWindow}#v(e){this._activeValue=e.target.activeValue}#w(e){let{viewModel:i}=this,t=i?.mode;t&&(i.timeExtent=this.#p(e.target.values,t),this._activeValue=e.target.activeValue)}#p([e,i],t){switch(t){case"cumulative-from-end":return new l({start:new Date(e),end:null});case"cumulative-from-start":return new l({start:null,end:new Date(e)});case"instant":return new l({start:new Date(e),end:new Date(e)});case"time-window":return new l({start:new Date(e),end:new Date(i??e)})}}#n(){let{messages:e,showLockTimeWindow:i,viewModel:t}=this;if(!e||!i||!t)return null;let s=this.lockTimeWindow?"lock":"unlock",r=this.lockTimeWindow?e.unlockTimeWindow:e.lockTimeWindow;return a`<calcite-action .active=${this.lockTimeWindow} class="lock-time-window" .disabled=${t.disabled||t.mode!=="time-window"} .icon=${s} @click=${this.#g} .text=${r} title=${r??g}></calcite-action>`}#l(){let e=this.viewModel?.fullTimeExtent?.end;return this.showMax&&e?a`<slot name=max><arcgis-time-bar-date .autoDestroyDisabled=${this.autoDestroyDisabled} class="max-date" .date=${e} .viewModel=${this.viewModel}></arcgis-time-bar-date></slot>`:a`<div class="hidden"></div>`}#c(){let e=this.viewModel?.fullTimeExtent?.start;return this.showMin&&e?a`<slot name=min><arcgis-time-bar-date .autoDestroyDisabled=${this.autoDestroyDisabled} class="min-date" .date=${e} .viewModel=${this.viewModel}></arcgis-time-bar-date></slot>`:a`<div class="hidden"></div>`}#b(){return this.popoverDisplay!=="none"?a`<div class="popover" slot=popover><slot name=popover>${this.#f()}</slot></div>`:null}#f(){let{activeValue:e,messages:i,viewModel:t}=this;if(!e||!i||!t)return null;switch(t.mode){case"cumulative-from-end":case"instant":let s=t.timeExtent?.start;return s?a`<arcgis-time-bar-date .autoDestroyDisabled=${this.autoDestroyDisabled} .date=${s} .viewModel=${t}></arcgis-time-bar-date>`:null;case"cumulative-from-start":let r=t.timeExtent?.end;return r?a`<arcgis-time-bar-date .autoDestroyDisabled=${this.autoDestroyDisabled} .date=${r} .viewModel=${t}></arcgis-time-bar-date>`:null;case"time-window":return e instanceof Date?a`<arcgis-time-bar-date .autoDestroyDisabled=${this.autoDestroyDisabled} .date=${e} .viewModel=${t}></arcgis-time-bar-date>`:a`<arcgis-time-bar-extent .autoDestroyDisabled=${this.autoDestroyDisabled} .messages=${i} .viewModel=${t}></arcgis-time-bar-extent>`}}#d(){let{messages:e,viewModel:i}=this;if(!i?.fullTimeExtent?.start||!i?.fullTimeExtent?.end||!e)return null;let t=this.#h(i.fullTimeExtent,this._sliderWidth??this.#r);if(!t)return null;(!this.#i||!this.#s||this.#i!==t)&&(this.#i=t,this.#s=i.getTickValues(t.timeInterval),i.tickFormat=t.format);let s=i.fullTimeExtent.start.getTime(),r=i.fullTimeExtent.end.getTime();return a`<div class="slider-container" ${m(this.#m())}><arcgis-slider allow-values-overlap .autoDestroyDisabled=${this.autoDestroyDisabled} class=${h({slider:!0,"slider--has-ticks":this.showTicks,"slider--out-of-range":i.isOutOfRange})} .disabled=${!i.interactive} .fillPlacement=${this._sliderFillPlacement} .labelFormatter=${this.#o} .max=${r} .min=${s} @arcgisActiveValueChange=${this.#v} @arcgisInput=${this.#w} .popoverLabel=${e.timeExtent} .popoverDisplay=${this.popoverDisplay==="none"?"auto":this.popoverDisplay} precision=0 .steps=${i.effectiveStopsEpoch} .values=${this._timeExtentEpochValues} .valuesDraggingDisabled=${this.lockTimeWindow}>${this.#b()}${this.#k(i,s,r)}</arcgis-slider></div>`}#k(e,i,t){return this.showTicks?a`<div slot=content-end class="ticks-container"><slot name=content-end><arcgis-ticks .autoDestroyDisabled=${this.autoDestroyDisabled} .labelFormatter=${e.tickFormatter} .max=${t} .min=${i} mode=value show-labels .values=${this.#s}></arcgis-ticks></slot></div>`:null}render(){return a`<div class="root">${this._direction==="ltr"?a`${this.#n()}${this.#c()}${this.#d()}${this.#l()}`:a`${this.#l()}${this.#d()}${this.#c()}${this.#n()}`}</div>`}};v("arcgis-time-bar-slider",c);return c},"time/TimeExtent")
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
2
|
-
import{b as te}from"./TN5C3MSL.js";import{a as ee}from"./IZ46HAUJ.js";import{a as f}from"./POKO37D3.js";import g from"./DSDPDMLP.js";import"./VJVKFKSG.js";import e from"./CQQM24VF.js";import{a as Y}from"./WEAGLY7B.js";import d from"./AN3BGKZP.js";import c from"./FZWFKZLW.js";import b from"./JBHRVHGS.js";import{d as J,h as Q}from"./JAZGNQRP.js";import"./Z5C6UBYP.js";import a from"./7V7IKYJG.js";import"./QUZTFUWM.js";import"./WQMZ7BDQ.js";import{D as U,E as H,M as z,N as S,O as E,P as q,Q as N,U as A,X as j,a as W,b as u,e as k,x as F}from"./EKR2SAT2.js";import"./H6RQVSYM.js";export default $arcgis.t(([{substitute:ge},ue,me,{watch:m,on:ve,whenOnce:ye},Ce,{getOrCreateMapValue:se,createReactiveMap:be},fe,{property:h,subclass:Te},{ignoreAbortErrors:C},we,Se,,,,y,Z,{f:X}])=>{var T=N({defaultAssetPath:"https://jsdev.arcgis.com/5.2.0-next/common-components/",hydratedAttribute:"hydrated"}),{customElement:Ie,getAssetPath:de,setAssetPath:pe}=T;T.t=void 0;T.o=void 0;T.c=void 0;T.r=void 0;var v={ForceCollapse:0,Default:1,Medium:100,High:200,Max:300,NeverCollapse:1e3};var Ee=["bottom-end","bottom-start","bottom-left","bottom-right","top-end","top-start","top-left","top-right"],_e=new Set(Ee);function ie(i,e){let t=e;for(let o of i.split(".")){if(typeof t!="object"||t===null)return;t=Reflect.get(t,o)}return typeof t=="string"?t:void 0}var Me=W`.editing-controls-panel{min-inline-size:100px;max-inline-size:400px;-webkit-user-select:none;user-select:none;pointer-events:initial;padding:var(--calcite-space-sm);arcgis-sketch-tooltip-controls+arcgis-snapping-controls{border-block-start:1px solid var(--calcite-color-border-3)}}:host{pointer-events:none}`,Pe={point:"pin",polyline:"line",polygon:"polygon",rectangle:"rectangle",circle:"circle",multipoint:"pins",mesh:"i3d-building",freehandPolygon:"freehand-area",freehandPolyline:"freehand",text:"text"},ke={selectionTools:{defaultPriority:v.Default,groupKind:"split-button",overflowLabel:"selection"},selectionSet:{defaultPriority:v.High,groupKind:"actions"},createTools:{defaultPriority:v.High,groupKind:"more-button",overflowLabel:"drawing"},undoRedo:{defaultPriority:v.Medium,groupKind:"split-button",overflowLabel:"action"},settings:{defaultPriority:v.Max,groupKind:"more-button",overflowLabel:"action"},geometrySimplification:{defaultPriority:v.Default,groupKind:"actions"}},Ae=500,Oe=1e3;function Le({getLoading:i,setEffectiveLoading:e}){let t,o;function s(){clearTimeout(o),o=void 0}function c(l){t=l?Date.now():void 0,e(l)}function p(l,g){if(l<=0){c(g);return}o=setTimeout(()=>{s(),c(g)},l)}c(i());let d=m(i,l=>{s(),l?p(Ae,!0):p(t==null?0:Oe-(Date.now()-t),!1)},{sync:!0});return ee(()=>{d.remove(),s()})}var Ge=Object.defineProperty,$e=Object.getOwnPropertyDescriptor,r=(i,e,t,o)=>{for(var s=o>1?void 0:o?$e(e,t):e,c=i.length-1,p;c>=0;c--)(p=i[c])&&(s=(o?p(e,t,s):p(s))||s);return o&&s&&Ge(e,t,s),s},a=class extends fe{constructor(i){super(i),this._effectiveRenderStateCache=new Map,this._effectiveGeometrySimplificationInProgress=!1,this.visibleElements=new we,this.settingsPopoverOpen=!1,this.availableCreateTools=["point","polyline","freehandPolyline","polygon","freehandPolygon","rectangle","circle"]}initialize(){this.selectionViewModel??=new Se({persistSelection:!1}),this.addHandles([m(()=>this.sketchViewModel,(i,e)=>{i!==e&&this._effectiveRenderStateCache.clear()},{sync:!0}),Le({getLoading:()=>this.sketchViewModel?.geometrySimplificationInProgress??!1,setEffectiveLoading:i=>{this._effectiveGeometrySimplificationInProgress=i}}),m(()=>this.view,i=>{this.selectionViewModel.view=i},{initial:!0,sync:!0}),m(()=>this.sketchViewModel?.layer,i=>this.selectionViewModel.sources=i?[i]:[],{initial:!0,sync:!0}),this.selectionViewModel.on("complete",({selection:i})=>{i.length&&this.update(i)}),m(()=>this.selectionViewModel.activeOperation,i=>{i&&(this.sketchViewModel?.cancel(),this._activeCustomToolOptions=void 0)},{sync:!0}),ve(()=>this.sketchViewModel,"create",i=>{i.state==="complete"&&this.sketchViewModel?.creationMode!=="continuous"&&(this._activeCustomToolOptions=void 0)}),m(()=>this.visibleElements.settingsMenu,i=>{i||(this.settingsPopoverOpen=!1)},{sync:!0})])}destroy(){this._pendingCommandAbortController?.abort(),this.selectionViewModel.destroy(),this.sketchViewModel=void 0}get _isEffectiveRenderStateFrozen(){let{sketchViewModel:i}=this;return!!(i?.toolTransitionInProgress||i?.geometrySimplificationInProgress)}_getEffectiveValue(i,e){if(!this._isEffectiveRenderStateFrozen||!this._effectiveRenderStateCache.has(i)){let t=e();return this._effectiveRenderStateCache.set(i,t),t}return this._effectiveRenderStateCache.get(i)}get _state(){return this.sketchViewModel?.state??"disabled"}get test(){return{activeCustomToolOptions:this._activeCustomToolOptions,activeSelectionTool:this._activeSelectionTool,selectionViewModel:this.selectionViewModel}}get _activeSelectionTool(){switch(this.selectionViewModel.activeOperation?.toolName){case"lasso":return"lasso-selection";case"rectangle":return"rectangle-selection";default:return}}get _activePluginUniqueIds(){let i=this.sketchViewModel?.activePluginConfigurations.filter(e=>!e.hidden).map(e=>e.uniqueId);return new Set(i??[])}get _createToolActions(){let{sketchViewModel:i}=this;if(!i)return[];let e=i.effectiveAvailablePlugins,t=this.state==="disabled",o=this.visibleElements.createTools,s=this.activeTool,c=this._activeCustomToolOptions,p=c||!i.firstPluginWithSwappableLeaf?this._customToolOptions:[],d=i.rootPlugins,l=p?.map(n=>({active:n===c,disabled:t,icon:n.icon,labelKey:n.label,onClick:n===c?()=>this._cancelActiveOperation():()=>this._activateLegacyDrawTool(n.toolName,n.createOptions,n)}))??[];if(c&&d)return[...this._pluginsToActions(d),...l];if(e?.length&&this.view?.type!=="3d")return[...this._pluginsToActions(e),...l];let g=this.view?.type==="3d";return[...this.availableCreateTools?.filter(n=>g&&n==="multipoint"?!1:n==="mesh"?!0:o[n])?.map(n=>({active:n===s,disabled:t,icon:Pe[n],labelKey:`draw.${n}`,onClick:n===s?()=>this._cancelActiveOperation():()=>this._activateLegacyDrawTool(n)}))??[],...l]}get _shouldShowBackButton(){let i=this.sketchViewModel?.firstPluginWithSwappableLeaf,e=this.sketchViewModel?.rootPlugins,t=this._activeCustomToolOptions;return!!(this.sketchViewModel?.multiplePluginsActive&&i&&e&&!(e.length<2&&e.includes(i)&&!this.visibleElements.singlePluginBackButton)&&!t)}get _selectionToolActions(){return this._shouldShowBackButton?[{active:!1,disabled:this.state==="disabled",icon:"chevron-left",iconFlipRTL:!0,labelKey:"back",onClick:()=>this._cancelActiveOperation()}]:this._selectionCommands}get _settingsActions(){let i=this._customActions?.get("settings-before"),e=this._customActions?.get("settings-after"),t=this.visibleElements.settingsMenu,o=[];return!i?.length&&!e?.length&&!t||(i&&o.push(...this._customActionsToSketchActions(i)),t&&o.push({icon:"gear",active:this.settingsPopoverOpen,disabled:this.state==="disabled",labelKey:"settings.heading",tooltipKey:"settings.heading",refKey:"settings",onClick:()=>this.toggleSettingsPopover()}),e&&o.push(...this._customActionsToSketchActions(e))),o}get _activeTool(){let i=this.selectionViewModel.activeOperation;if(i)switch(i.toolName){case"lasso":return"lasso-selection";case"rectangle":return"rectangle-selection";case"default":return"custom-selection"}if(!this.sketchViewModel)return;let{availableCreateTools:e}=this,{activeTool:t,activeCreateToolDrawMode:o}=this.sketchViewModel;return t==="polygon"&&o==="freehand"&&e?.includes("freehandPolygon")?"freehandPolygon":t==="polyline"&&o==="freehand"&&e?.includes("freehandPolyline")?"freehandPolyline":t??void 0}get _selectionCommands(){let{state:i,visibleElements:e,_activeSelectionTool:t,_customActions:o}=this,s=this.state==="disabled",c=[];this.sketchViewModel?.updateOnGraphicClick!==!1&&c.push({active:i==="ready"&&this._activeSelectionTool==null,disabled:s,icon:"cursor",labelKey:"selectFeature",onClick:()=>this._activateDefaultSelectionTool()});let p=e.selectionTools;p["rectangle-selection"]&&c.push({active:t==="rectangle-selection",disabled:s,icon:"cursor-marquee",labelKey:"rectangleSelection",onClick:()=>this._activateSelectionTool("rectangle-selection")}),p["lasso-selection"]&&c.push({active:t==="lasso-selection",disabled:s,icon:"lasso-select",labelKey:"lassoSelection",onClick:()=>this._activateSelectionTool("lasso-selection")});let d=o?.get("selection-toolbar");return d&&c.push(...this._customActionsToSketchActions(d)),c}get _selectionSetActions(){let i=this.sketchViewModel?.updateGraphics.length??0;if(!i)return[];let e=this.state==="disabled",t=[],o=this._customActions?.get("before-selection-set"),s=this._customActions?.get("after-selection-set");return this.visibleElements.selectionCountLabel&&t.push({active:!1,appearance:"outline",disabled:e,icon:"selection-x",kind:"brand",labelKey:"deselectCount",labelParameters:{count:i},textEnabled:!0,renderAsAction:!0,onClick:()=>this._cancelSketchOperation()}),o&&t.push(...this._customActionsToSketchActions(o)),this.visibleElements.duplicateButton&&t.push({active:!1,disabled:e,icon:"copy",renderAsAction:!0,labelKey:i>1?"duplicateFeatures":"duplicateFeature",onClick:()=>this._duplicate()}),this.visibleElements.deleteButton&&t.push({active:!1,disabled:e,icon:"trash",kind:"danger",renderAsAction:!0,labelKey:i>1?"deleteFeatures":"deleteFeature",onClick:()=>this._delete()}),s&&t.push(...this._customActionsToSketchActions(s)),t}get _undoRedoActions(){return this.visibleElements.undoRedoMenu?[{active:!1,disabled:this.state==="disabled"||!this.sketchViewModel?.canUndo(),icon:"undo",labelKey:"undo",iconFlipRTL:!0,onClick:()=>this._undo()},{active:!1,disabled:this.state==="disabled"||!this.sketchViewModel?.canRedo(),icon:"redo",labelKey:"redo",iconFlipRTL:!0,onClick:()=>this._redo()}]:[]}get state(){return this._getEffectiveValue("state",()=>this._state)}get activeTool(){return this._getEffectiveValue("activeTool",()=>this._activeTool)}get activePluginIds(){return this._getEffectiveValue("activePluginId",()=>this._activePluginUniqueIds)}get groupedActions(){let i=this._getEffectiveValue("availableCommandGroups",()=>[["selectionTools",this._selectionToolActions],["createTools",this._createToolActions],["undoRedo",this._undoRedoActions],["settings",this._settingsActions],["selectionSet",this._selectionSetActions]].map(([t,o])=>({name:t,commands:o,visible:o.length>0}))),e=this._effectiveGeometrySimplificationInProgress?i.map(t=>({...t,commands:t.commands.map(o=>({...o,disabled:!0}))})):i;return!this.visibleElements.geometrySimplificationActivityIndicator||!this._effectiveGeometrySimplificationInProgress?e:[...e,{name:"geometrySimplification",commands:[{active:!1,appearance:"transparent",disabled:!0,kind:"warning",labelKey:"processing",loading:!0,onClick:()=>{},renderAsAction:!0}],visible:!0}]}async create(i,e){await this._executeWhenReady(async()=>{this.cancelAll();let t=this.sketchViewModel;t&&await C(t.create(i,e))})}async _executeWhenReady(i){this._pendingCommandAbortController?.abort();let e=new AbortController;this._pendingCommandAbortController=e;try{await C((async()=>{this.sketchViewModel?.geometrySimplificationInProgress&&await ye(()=>!this.sketchViewModel?.geometrySimplificationInProgress,e.signal),e.signal.aborted||await i()})())}finally{this._pendingCommandAbortController===e&&(this._pendingCommandAbortController=void 0)}}toggleSettingsPopover(){this.settingsPopoverOpen=!this.settingsPopoverOpen}setCustomTools(i,e){this._customToolOptions=i??void 0;let t=this._activeCustomToolOptions;if(t){let o=this._customToolOptions?.find(s=>s.toolKey===t.toolKey);o?this._activeCustomToolOptions=o:this.cancelAll()}if(e?.length){let o=new Map;for(let s of e)se(o,s.position,()=>[]).push(s);this._customActions=o}else this._customActions=void 0}cancelAll(){this._pendingCommandAbortController?.abort(),this._cancelSupportingOperations(),this.sketchViewModel?.cancel()}async update(i,e){await this._executeWhenReady(async()=>{let t=this.sketchViewModel;t&&await C(t.update(i,e))})}_activateDefaultSelectionTool(){this._executeWhenReady(()=>{this.cancelAll(),this.view?.focus()})}_cancelActiveOperation(){this._executeWhenReady(()=>this.cancelAll())}_cancelSketchOperation(){this._executeWhenReady(()=>this.sketchViewModel?.cancel())}_cancelSupportingOperations(){this.selectionViewModel.cancel(),this._activeCustomToolOptions=void 0}_activatePlugin(i){this._executeWhenReady(()=>{let e=this._activeCustomToolOptions!=null;this._cancelSupportingOperations();let t=this.sketchViewModel;if(t){if(e){t.cancel(),C(t.create(i));return}t.firstPluginWithSwappableLeaf?(t.replaceLeaf(i),this.view?.focus()):C(t.create(i))}})}_activateLegacyDrawTool(i,e,t){this._executeWhenReady(()=>{this._cancelSupportingOperations();let o=this.sketchViewModel;o&&(this._activeCustomToolOptions=t,C(o.create(i,e)))})}_activateSelectionTool(i){this._executeWhenReady(()=>{if(this._activeSelectionTool===i){this.selectionViewModel.cancel();return}this.cancelAll();let e={createTool:i==="lasso-selection"?"polygon":"rectangle",...i==="lasso-selection"?{mode:"hybrid",toolName:"lasso"}:{toolName:"rectangle"},type:"replace",selectOnComplete:!0};this.selectionViewModel.activate(e)&&this.view?.focus()})}_delete(){this._executeWhenReady(()=>this.sketchViewModel?.delete())}_duplicate(){this._executeWhenReady(()=>{this.sketchViewModel?.duplicate()})}_executeCustomAction(i){this._executeWhenReady(()=>i.onclick?.())}_redo(){this._executeWhenReady(()=>{this.sketchViewModel?.redo()})}_undo(){this._executeWhenReady(()=>{this.sketchViewModel?.undo()})}_customActionsToSketchActions(i){let e=this.state==="disabled";return i.map(t=>({active:t.active??!1,afterCreate:t.afterCreate,afterRemoved:t.afterRemoved,afterUpdate:t.afterUpdate,disabled:e||(t.disabled??!1),icon:t.icon,iconFlipRTL:t.flipRTL,id:t.id,labelKey:t.text,onClick:()=>this._executeCustomAction(t)}))}_pluginsToActions(i){let e=this.activePluginIds,t=this._activeCustomToolOptions,o=this.state==="disabled";return i.map(s=>({active:(e?.has(s.uniqueId)??!1)&&!t,icon:s.icon,disabled:o,labelKey:`digitizers.${s.localizationKey}`,onClick:()=>this._activatePlugin([s])}))}};r([h()],a.prototype,"_isEffectiveRenderStateFrozen",1);r([h()],a.prototype,"_effectiveGeometrySimplificationInProgress",2);r([h()],a.prototype,"_state",1);r([h()],a.prototype,"_customToolOptions",2);r([h()],a.prototype,"_activeCustomToolOptions",2);r([h()],a.prototype,"_customActions",2);r([h()],a.prototype,"selectionViewModel",2);r([h()],a.prototype,"_activeSelectionTool",1);r([h()],a.prototype,"_activePluginUniqueIds",1);r([h()],a.prototype,"_createToolActions",1);r([h()],a.prototype,"_shouldShowBackButton",1);r([h()],a.prototype,"_selectionToolActions",1);r([h()],a.prototype,"_settingsActions",1);r([h()],a.prototype,"_activeTool",1);r([h()],a.prototype,"_selectionCommands",1);r([h()],a.prototype,"_selectionSetActions",1);r([h()],a.prototype,"_undoRedoActions",1);r([h()],a.prototype,"sketchViewModel",2);r([h()],a.prototype,"visibleElements",2);r([h()],a.prototype,"view",2);r([h()],a.prototype,"settingsPopoverOpen",2);r([h()],a.prototype,"availableCreateTools",2);r([h()],a.prototype,"state",1);r([h()],a.prototype,"activeTool",1);r([h()],a.prototype,"activePluginIds",1);r([h()],a.prototype,"groupedActions",1);a=r([Te("components.sketch.SketchComponentViewModel")],a);var O=class extends z{#t;#e=!1;#i;constructor(e){if(super(e),e.type!==U.ELEMENT)throw new Error("nodeHooks() can only be used on elements")}render(e){return k}update(e,[t]){let o=e.element;if(!(o instanceof HTMLElement))throw new TypeError("nodeHooks() can only be used on HTMLElements");let s=this.#e?t.afterUpdate:t.afterCreate;return this.#t=o,this.#e=!0,this.#i=t,queueMicrotask(()=>{o.isConnected&&s?.(o)}),k}disconnected(){let e=this.#t,t=this.#i?.afterRemoved;!e||!t||queueMicrotask(()=>{e.isConnected||X(()=>t(e),{timeout:16})})}},oe=H(O),Re=Z(i=>new Ce({...i,cancelUpdateOnClickAway:!0,creationMode:"continuous",textSymbol:new me({text:"hello world"}),useLegacyCreateTools:!1})),L=class extends q{constructor(){super(),this.#t=new a,this.#o=S(),this.#s=S(),this._defaultGraphicsLayer=null,this._messages=Y(),this.test={componentViewModel:this.#t},this._groupLayoutPriorityOverrides=new Map,this._contextualToolLocation="separate",this._refMap=be(),this.viewModel=Re(this),this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.createGraphic=this.viewModel.createGraphic,this.creationMode=this.viewModel.creationMode,this.defaultCreateOptions=this.viewModel.defaultCreateOptions,this.defaultGraphicsLayerDisabled=!1,this.defaultUpdateOptions=this.viewModel.defaultUpdateOptions,this.geometrySimplificationInProgress=this.viewModel.geometrySimplificationInProgress,this.icon="pencil",this.label=this._messages?.componentLabel,this.labelOptions=this.viewModel.labelOptions,this.layer=this.viewModel.layer,this.layout="horizontal",this.pointSymbol=this.viewModel.pointSymbol,this.polygonSymbol=this.viewModel.polygonSymbol,this.polylineSymbol=this.viewModel.polylineSymbol,this.visualScale="m",this.snappingOptions=this.viewModel.snappingOptions,this.textSymbol=this.viewModel.textSymbol,this.toolbarKind="floating",this.tooltipOptions=this.viewModel.tooltipOptions,this.useViewOptions=this.viewModel.useViewOptions,this.valueOptions=this.viewModel.valueOptions,this.useLegacyCreateTools=this.viewModel.useLegacyCreateTools,this.updateOnGraphicClickDisabled=this.viewModel.updateOnGraphicClick,this.updateGraphics=this.viewModel.updateGraphics,this.arcgisCreate=y(()=>this.viewModel,"create"),this.arcgisDelete=y(()=>this.viewModel,"delete"),this.arcgisDuplicate=y(()=>this.viewModel,"duplicate"),this.arcgisPropertyChange=Q()("activeTool","geometrySimplificationInProgress","state"),this.arcgisReady=F(),this.arcgisRedo=y(()=>this.viewModel,"redo"),this.arcgisUndo=y(()=>this.viewModel,"undo"),this.arcgisUpdate=y(()=>this.viewModel,"update"),J(["slot"],()=>{this.requestUpdate()}),this.manager.onLifecycle(()=>[m(()=>this.el.view?.map,(e,t)=>{let o=this._defaultGraphicsLayer;o&&(t?.allLayers.includes(o)&&t.remove(o),o&&!e?.allLayers.includes(o)&&e?.add(o))}),m(()=>this.el.view,e=>{this.viewModel.view=e,this.#t.view=e??void 0},{initial:!0}),m(()=>this.viewModel,e=>{this.#t.sketchViewModel=e,this.viewModel.pluginManager.sketch=this},{initial:!0}),m(()=>this.#t.state,(e,t)=>{this.requestUpdate("state",t)},{initial:!0}),m(()=>this.#t.activeTool,()=>this.arcgisPropertyChange.emit({name:"activeTool"}),{sync:!0})]),this.manager.onDestroy(()=>{this._defaultGraphicsLayer&&this.el.view?.map?.allLayers.includes(this._defaultGraphicsLayer)&&this.el.view?.map?.remove(this._defaultGraphicsLayer),this._defaultGraphicsLayer?.destroy(),this._defaultGraphicsLayer=null,this.#t.destroy()})}static{this.properties={_groupLayoutPriorityOverrides:16,_contextualToolLocation:16,_refMap:16,viewModel:0,view:0,activeTool:32,autoDestroyDisabled:5,visibleElements:0,availableCreateTools:0,createGraphic:32,creationMode:1,defaultCreateOptions:0,defaultGraphicsLayerDisabled:5,defaultUpdateOptions:0,geometrySimplificationInProgress:36,hideCreateToolsCircle:5,hideCreateToolsMultipoint:5,hideCreateToolsPoint:5,hideCreateToolsPolygon:5,hideCreateToolsPolyline:5,hideCreateToolsRectangle:5,hideDuplicateButton:5,hideDeleteButton:5,hideSelectionCountLabel:5,hideLabelsToggle:5,hideSelectionToolsLassoSelection:5,hideSelectionToolsRectangleSelection:5,hideSettingsMenu:5,hideSinglePluginBackButton:5,hideSnappingControls:5,hideSnappingControlsElementsEnabledToggle:5,hideSnappingControlsElementsFeatureEnabledToggle:5,hideSnappingControlsElementsLayerList:5,hideSnappingControlsElementsSelfEnabledToggle:5,hideSnappingControlsElementsGridEnabledToggle:5,hideSnappingControlsElementsGridControls:5,hideSnappingControlsElementsGridControlsElementsColorSelection:5,hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle:5,hideSnappingControlsElementsGridControlsElementsLineIntervalInput:5,hideSnappingControlsElementsGridControlsElementsNumericInputs:5,hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning:5,hideSnappingControlsElementsGridControlsElementsPlacementButtons:5,hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle:5,hideTooltipsToggle:5,hideUndoRedoMenu:5,icon:1,label:1,labelOptions:0,layer:0,layout:1,pointSymbol:0,polygonSymbol:0,polylineSymbol:0,referenceElement:1,relativePosition:1,scale:1,visualScale:1,showSnappingControlsElementsHeader:5,showCreateToolsFreehandPolygon:5,showCreateToolsFreehandPolyline:5,showCreateToolsText:5,hideGeometrySimplificationActivityIndicator:5,snappingOptions:0,state:32,textSymbol:0,toolbarKind:1,tooltipOptions:0,useViewOptions:5,valueOptions:0,useLegacyCreateTools:5,updateOnGraphicClickDisabled:5,cancelUpdateOnClickAwayDisabled:5,updateGraphics:32}}static{this.styles=Me}#t;get#e(){return this.#t.visibleElements}#i;#o;#s;get activeTool(){return this.#t.activeTool}get visibleElements(){return this.#t.visibleElements}set visibleElements(e){this.#t.visibleElements=e}get availableCreateTools(){return this.#t.availableCreateTools}set availableCreateTools(e){this.#t.availableCreateTools=e}get hideCreateToolsCircle(){return!this.#e.createTools.circle}set hideCreateToolsCircle(e){this.#e.createTools.circle=!e}get hideCreateToolsMultipoint(){return!this.#e.createTools.multipoint}set hideCreateToolsMultipoint(e){this.#e.createTools.multipoint=!e}get hideCreateToolsPoint(){return!this.#e.createTools.point}set hideCreateToolsPoint(e){this.#e.createTools.point=!e}get hideCreateToolsPolygon(){return!this.#e.createTools.polygon}set hideCreateToolsPolygon(e){this.#e.createTools.polygon=!e}get hideCreateToolsPolyline(){return!this.#e.createTools.polyline}set hideCreateToolsPolyline(e){this.#e.createTools.polyline=!e}get hideCreateToolsRectangle(){return!this.#e.createTools.rectangle}set hideCreateToolsRectangle(e){this.#e.createTools.rectangle=!e}get hideDuplicateButton(){return!this.#e.duplicateButton}set hideDuplicateButton(e){this.#e.duplicateButton=!e}get hideDeleteButton(){return!this.#e.deleteButton}set hideDeleteButton(e){this.#e.deleteButton=!e}get hideSelectionCountLabel(){return!this.#e.selectionCountLabel}set hideSelectionCountLabel(e){this.#e.selectionCountLabel=!e}get hideLabelsToggle(){return!this.#e.labelsToggle}set hideLabelsToggle(e){this.#e.labelsToggle=!e}get hideSelectionToolsLassoSelection(){return!this.#e.selectionTools["lasso-selection"]}set hideSelectionToolsLassoSelection(e){this.#e.selectionTools["lasso-selection"]=!e}get hideSelectionToolsRectangleSelection(){return!this.#e.selectionTools["rectangle-selection"]}set hideSelectionToolsRectangleSelection(e){this.#e.selectionTools["rectangle-selection"]=!e}get hideSettingsMenu(){return!this.#e.settingsMenu}set hideSettingsMenu(e){this.#e.settingsMenu=!e}get hideSinglePluginBackButton(){return!this.#e.singlePluginBackButton}set hideSinglePluginBackButton(e){this.#e.singlePluginBackButton=!e}get hideSnappingControls(){return!this.#e.snappingControls}set hideSnappingControls(e){this.#e.snappingControls=!e}get hideSnappingControlsElementsEnabledToggle(){return!this.#e.snappingControlsElements.enabledToggle}set hideSnappingControlsElementsEnabledToggle(e){this.#e.snappingControlsElements.enabledToggle=!e}get hideSnappingControlsElementsFeatureEnabledToggle(){return!this.#e.snappingControlsElements.featureEnabledToggle}set hideSnappingControlsElementsFeatureEnabledToggle(e){this.#e.snappingControlsElements.featureEnabledToggle=!e}get hideSnappingControlsElementsLayerList(){return!this.#e.snappingControlsElements.layerList}set hideSnappingControlsElementsLayerList(e){this.#e.snappingControlsElements.layerList=!e}get hideSnappingControlsElementsSelfEnabledToggle(){return!this.#e.snappingControlsElements.selfEnabledToggle}set hideSnappingControlsElementsSelfEnabledToggle(e){this.#e.snappingControlsElements.selfEnabledToggle=!e}get hideSnappingControlsElementsGridEnabledToggle(){return!this.#e.snappingControlsElements.gridEnabledToggle}set hideSnappingControlsElementsGridEnabledToggle(e){this.#e.snappingControlsElements.gridEnabledToggle=!e}get hideSnappingControlsElementsGridControls(){return!this.#e.snappingControlsElements.gridControls}set hideSnappingControlsElementsGridControls(e){this.#e.snappingControlsElements.gridControls=!e}get hideSnappingControlsElementsGridControlsElementsColorSelection(){return!this.#e.snappingControlsElements.gridControlsElements.colorSelection}set hideSnappingControlsElementsGridControlsElementsColorSelection(e){this.#e.snappingControlsElements.gridControlsElements.colorSelection=!e}get hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle(){return!this.#e.snappingControlsElements.gridControlsElements.dynamicScaleToggle}set hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle(e){this.#e.snappingControlsElements.gridControlsElements.dynamicScaleToggle=!e}get hideSnappingControlsElementsGridControlsElementsLineIntervalInput(){return!this.#e.snappingControlsElements.gridControlsElements.lineIntervalInput}set hideSnappingControlsElementsGridControlsElementsLineIntervalInput(e){this.#e.snappingControlsElements.gridControlsElements.lineIntervalInput=!e}get hideSnappingControlsElementsGridControlsElementsNumericInputs(){return!this.#e.snappingControlsElements.gridControlsElements.numericInputs}set hideSnappingControlsElementsGridControlsElementsNumericInputs(e){this.#e.snappingControlsElements.gridControlsElements.numericInputs=!e}get hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning(){return!this.#e.snappingControlsElements.gridControlsElements.outOfScaleWarning}set hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning(e){this.#e.snappingControlsElements.gridControlsElements.outOfScaleWarning=!e}get hideSnappingControlsElementsGridControlsElementsPlacementButtons(){return!this.#e.snappingControlsElements.gridControlsElements.placementButtons}set hideSnappingControlsElementsGridControlsElementsPlacementButtons(e){this.#e.snappingControlsElements.gridControlsElements.placementButtons=!e}get hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle(){return!this.#e.snappingControlsElements.gridControlsElements.rotateWithMapToggle}set hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle(e){this.#e.snappingControlsElements.gridControlsElements.rotateWithMapToggle=!e}get hideTooltipsToggle(){return!this.#e.tooltipsToggle}set hideTooltipsToggle(e){this.#e.tooltipsToggle=!e}get hideUndoRedoMenu(){return!this.#e.undoRedoMenu}set hideUndoRedoMenu(e){this.#e.undoRedoMenu=!e}get relativePosition(){let e=this.el.slot;return this.#i??(_e.has(e)?e:te.topRight)}set relativePosition(e){this.#i=e}get scale(){return this.visualScale}set scale(e){this.visualScale=e}get showSnappingControlsElementsHeader(){return this.#e.snappingControlsElements.header}set showSnappingControlsElementsHeader(e){this.#e.snappingControlsElements.header=e}get showCreateToolsFreehandPolygon(){return this.#e.createTools.freehandPolygon}set showCreateToolsFreehandPolygon(e){this.#e.createTools.freehandPolygon=e}get showCreateToolsFreehandPolyline(){return this.#e.createTools.freehandPolyline}set showCreateToolsFreehandPolyline(e){this.#e.createTools.freehandPolyline=e}get showCreateToolsText(){return this.#e.createTools.text}set showCreateToolsText(e){this.#e.createTools.text=e}get hideGeometrySimplificationActivityIndicator(){return!this.#e.geometrySimplificationActivityIndicator}set hideGeometrySimplificationActivityIndicator(e){this.#e.geometrySimplificationActivityIndicator=!e}get state(){return this.#t.state}get cancelUpdateOnClickAwayDisabled(){return!this.viewModel.cancelUpdateOnClickAway}set cancelUpdateOnClickAwayDisabled(e){this.viewModel.cancelUpdateOnClickAway=!e}async cancel(){this.#t.cancelAll()}async complete(){this.viewModel.complete()}async create(e,t){await this.#t.create(e,t)}async delete(){this.viewModel.delete()}async destroy(){await this.manager.destroy()}async dismissFloatingElements(){this.#t.settingsPopoverOpen=!1}async duplicate(){this.viewModel.duplicate()}async redo(){this.viewModel.redo()}async setContextualToolLocation(e){this._contextualToolLocation=e}async setCustomTools(e,t){this.#t.setCustomTools(e,t)}async setGroupCollapsePriorities(e){this._groupLayoutPriorityOverrides=e||new Map}async triggerUpdate(e,t){await this.#t.update(e,t)}async undo(){this.#t.sketchViewModel?.undo()}connectedCallback(){super.connectedCallback(),this.defaultGraphicsLayerDisabled||(this._defaultGraphicsLayer?.destroyed&&(this._defaultGraphicsLayer=null),this._defaultGraphicsLayer??=new ue({title:"Sketch Layer"}),this.layer=this._defaultGraphicsLayer,this.view?.map?.add(this.layer),this.viewModel.layer=this._defaultGraphicsLayer)}disconnectedCallback(){this._defaultGraphicsLayer&&this.view?.map?.allLayers.includes(this._defaultGraphicsLayer)&&this.view?.map?.remove(this._defaultGraphicsLayer),super.disconnectedCallback()}render(){let e=this._refMap.get("settings")?.value?.actionElement,t=this.#t.groupedActions,{visualScale:o,layout:s,toolbarKind:c,relativePosition:p,_contextualToolLocation:d}=this,l=t.find(({name:n})=>n==="selectionSet"),g=t.filter(({name:n})=>n!=="selectionSet");return u`<div class="toolbar-container"><arcgis-toolbar-stack .layout=${s} .toolbarKind=${c} .relativePosition=${p} .scale=${o} tooltip-appearance=calcite><arcgis-toolbar ${E(this.#o)}>${f({hidden:!l?.visible||d!=="inline",children:this._renderActionGroup(l)})}${g.map(n=>this._renderActionGroup(n))}${f({hidden:!l?.visible||d!=="inline-end",children:this._renderActionGroup(l)})}</arcgis-toolbar>${f({hidden:!l?.visible||d!=="separate",children:u`<arcgis-toolbar>${this._renderActionGroup(l)}</arcgis-toolbar>`})}</arcgis-toolbar-stack></div>${f({hidden:this.hideSettingsMenu,children:u`<arcgis-view-popover .open=${this.#t.settingsPopoverOpen} closable .heading=${this._messages.settings?.heading} .label=${this._messages.settings?.heading} .anchorElement=${e} .visualScale=${o} .actionBarElement=${this.#o.value?.barElement} @arcgisPropertyChange=${n=>this.#t.settingsPopoverOpen=n.target.open??!1} .view=${this.view??void 0}>${this._renderSettings()}</arcgis-view-popover>`})}`}_renderSettings(){let{autoDestroyDisabled:e,hideLabelsToggle:t,hideSnappingControls:o,hideTooltipsToggle:s,showSnappingControlsElementsHeader:c,useViewOptions:p,view:d,viewModel:l}=this;return u`<div class="editing-controls-panel"><arcgis-sketch-tooltip-controls .hideLabelsToggle=${t} .hideTooltipsToggle=${p||s} .directionMode=${l.valueOptions.directionMode} .labelsEnabled=${l.labelOptions.enabled} .tooltipsEnabled=${l.tooltipOptions.enabled} @arcgisPropertyChange=${g=>{g.stopPropagation();let{labelsEnabled:n,tooltipsEnabled:w,directionMode:_}=g.currentTarget,b=this.viewModel;switch(g.detail.name){case"labelsEnabled":b.labelOptions.enabled=n;break;case"directionMode":b.valueOptions.directionMode=_;break;case"tooltipsEnabled":b.tooltipOptions.enabled=w;break}}}></arcgis-sketch-tooltip-controls>${!p&&!o?u`<arcgis-snapping-controls .autoDestroyDisabled=${e} .view=${d} .visibleElements=${this.#e.snappingControlsElements} .snappingOptions=${l.snappingOptions} .showHeader=${c} @arcgisPropertyChange=${g=>g.stopPropagation()}></arcgis-snapping-controls>`:void 0}</div>`}_renderActionGroup({visible:e,commands:t,name:o}){if(!e||!t.length)return;let{defaultPriority:s,groupKind:c,overflowLabel:p}=ke[o],d=(o==="geometrySimplification"?void 0:this._groupLayoutPriorityOverrides.get(o))??s,l=t.map(n=>this._renderCommand(n)),g=ie(`more.${p}`,this._messages);switch(c){case"more-button":return u`<arcgis-toolbar-group .priority=${d}><arcgis-toolbar-more-button .overflowActionLabel=${g} .priority=${d}>${l}</arcgis-toolbar-more-button></arcgis-toolbar-group>`;case"split-button":return u`<arcgis-toolbar-group .priority=${d}><arcgis-toolbar-split-button .overflowActionLabel=${g} .priority=${d}>${l}</arcgis-toolbar-split-button></arcgis-toolbar-group>`;case"actions":return u`<arcgis-toolbar-group .priority=${d}>${l}</arcgis-toolbar-group>`}}_renderCommand({active:e,afterCreate:t,afterRemoved:o,afterUpdate:s,appearance:c,icon:p,disabled:d,id:l,kind:g,labelKey:n,labelParameters:w,loading:_,tooltipKey:b,iconFlipRTL:G,onClick:$,refKey:R,textEnabled:V,renderAsAction:ne}){let{_messages:x,_refMap:le,layout:I}=this,M=ie(n,x),P=M===void 0?n:w?ge(M,w):M,D=x?.[b]??P,B=R?se(le,R,S):this.#s,K={afterCreate:t,afterRemoved:o,afterUpdate:s};return ne?u`<arcgis-toolbar-action .active=${e} .appearance=${c} .disabled=${d} .icon=${p} .iconFlipRtl=${G} id=${l??A} .kind=${g} .loading=${_} .labelText=${I==="horizontal"?P:""} .textEnabled=${V} .tooltipText=${I==="horizontal"&&V?"":D} @arcgisToolbarItemSelected=${$} ${oe(K)} ${E(B)}></arcgis-toolbar-action>`:u`<arcgis-toolbar-item .active=${e} .disabled=${d} .icon=${p} id=${l??A} .iconFlipRtl=${G} .labelText=${P} .tooltipText=${D} @arcgisItemSelected=${$} ${oe(K)} ${E(B)}></arcgis-toolbar-item>`}};j("arcgis-sketch",L);return L},"intl","layers/GraphicsLayer","symbols/TextSymbol","core/reactiveUtils","widgets/Sketch/SketchViewModel","applications/Components/featureUtils","core/Accessor","core/accessorSupport/decorators","core/promiseUtils","widgets/Sketch/VisibleElements","widgets/support/SelectionToolbar/SelectionToolbarViewModel",a,b,c,d,e,g)
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import{b as te}from"./AL3PLZEE.js";import{a as ee}from"./FH3WFF5O.js";import{a as f}from"./6J3KSMFG.js";import g from"./RUYAWRPV.js";import"./WJQUE4DR.js";import e from"./5YHHJ5ZE.js";import{a as Y}from"./ZSPYPXBY.js";import d from"./M3ZQGUYQ.js";import c from"./HA4XWZH4.js";import b from"./HPWF3IQV.js";import{d as J,h as Q}from"./IFR4IYSI.js";import"./7VDBR3SK.js";import a from"./QPSAD5DG.js";import"./FIZMK7GS.js";import"./ZKWI43WZ.js";import{D as U,E as H,M as z,N as S,O as E,P as q,Q as N,U as A,X as j,a as W,b as u,e as k,x as F}from"./3UMLR76Y.js";import"./TAVTDQ6S.js";export default $arcgis.t(([{substitute:ge},ue,me,{watch:m,on:ve,whenOnce:ye},Ce,{getOrCreateMapValue:se,createReactiveMap:be},fe,{property:h,subclass:Te},{ignoreAbortErrors:C},we,Se,,,,y,Z,{f:X}])=>{var T=N({defaultAssetPath:"https://jsdev.arcgis.com/6.0.0-next/common-components/",hydratedAttribute:"hydrated"}),{customElement:Ie,getAssetPath:de,setAssetPath:pe}=T;T.t=void 0;T.o=void 0;T.c=void 0;T.r=void 0;var v={ForceCollapse:0,Default:1,Medium:100,High:200,Max:300,NeverCollapse:1e3};var Ee=["bottom-end","bottom-start","bottom-left","bottom-right","top-end","top-start","top-left","top-right"],_e=new Set(Ee);function ie(i,e){let t=e;for(let o of i.split(".")){if(typeof t!="object"||t===null)return;t=Reflect.get(t,o)}return typeof t=="string"?t:void 0}var Me=W`.editing-controls-panel{min-inline-size:100px;max-inline-size:400px;-webkit-user-select:none;user-select:none;pointer-events:initial;padding:var(--calcite-space-sm);arcgis-sketch-tooltip-controls+arcgis-snapping-controls{border-block-start:1px solid var(--calcite-color-border-3)}}:host{pointer-events:none}`,Pe={point:"pin",polyline:"line",polygon:"polygon",rectangle:"rectangle",circle:"circle",multipoint:"pins",mesh:"i3d-building",freehandPolygon:"freehand-area",freehandPolyline:"freehand",text:"text"},ke={selectionTools:{defaultPriority:v.Default,groupKind:"split-button",overflowLabel:"selection"},selectionSet:{defaultPriority:v.High,groupKind:"actions"},createTools:{defaultPriority:v.High,groupKind:"more-button",overflowLabel:"drawing"},undoRedo:{defaultPriority:v.Medium,groupKind:"split-button",overflowLabel:"action"},settings:{defaultPriority:v.Max,groupKind:"more-button",overflowLabel:"action"},geometrySimplification:{defaultPriority:v.Default,groupKind:"actions"}},Ae=500,Oe=1e3;function Le({getLoading:i,setEffectiveLoading:e}){let t,o;function s(){clearTimeout(o),o=void 0}function c(l){t=l?Date.now():void 0,e(l)}function p(l,g){if(l<=0){c(g);return}o=setTimeout(()=>{s(),c(g)},l)}c(i());let d=m(i,l=>{s(),l?p(Ae,!0):p(t==null?0:Oe-(Date.now()-t),!1)},{sync:!0});return ee(()=>{d.remove(),s()})}var Ge=Object.defineProperty,$e=Object.getOwnPropertyDescriptor,r=(i,e,t,o)=>{for(var s=o>1?void 0:o?$e(e,t):e,c=i.length-1,p;c>=0;c--)(p=i[c])&&(s=(o?p(e,t,s):p(s))||s);return o&&s&&Ge(e,t,s),s},a=class extends fe{constructor(i){super(i),this._effectiveRenderStateCache=new Map,this._effectiveGeometrySimplificationInProgress=!1,this.visibleElements=new we,this.settingsPopoverOpen=!1,this.availableCreateTools=["point","polyline","freehandPolyline","polygon","freehandPolygon","rectangle","circle"]}initialize(){this.selectionViewModel??=new Se({persistSelection:!1}),this.addHandles([m(()=>this.sketchViewModel,(i,e)=>{i!==e&&this._effectiveRenderStateCache.clear()},{sync:!0}),Le({getLoading:()=>this.sketchViewModel?.geometrySimplificationInProgress??!1,setEffectiveLoading:i=>{this._effectiveGeometrySimplificationInProgress=i}}),m(()=>this.view,i=>{this.selectionViewModel.view=i},{initial:!0,sync:!0}),m(()=>this.sketchViewModel?.layer,i=>this.selectionViewModel.sources=i?[i]:[],{initial:!0,sync:!0}),this.selectionViewModel.on("complete",({selection:i})=>{i.length&&this.update(i)}),m(()=>this.selectionViewModel.activeOperation,i=>{i&&(this.sketchViewModel?.cancel(),this._activeCustomToolOptions=void 0)},{sync:!0}),ve(()=>this.sketchViewModel,"create",i=>{i.state==="complete"&&this.sketchViewModel?.creationMode!=="continuous"&&(this._activeCustomToolOptions=void 0)}),m(()=>this.visibleElements.settingsMenu,i=>{i||(this.settingsPopoverOpen=!1)},{sync:!0})])}destroy(){this._pendingCommandAbortController?.abort(),this.selectionViewModel.destroy(),this.sketchViewModel=void 0}get _isEffectiveRenderStateFrozen(){let{sketchViewModel:i}=this;return!!(i?.toolTransitionInProgress||i?.geometrySimplificationInProgress)}_getEffectiveValue(i,e){if(!this._isEffectiveRenderStateFrozen||!this._effectiveRenderStateCache.has(i)){let t=e();return this._effectiveRenderStateCache.set(i,t),t}return this._effectiveRenderStateCache.get(i)}get _state(){return this.sketchViewModel?.state??"disabled"}get test(){return{activeCustomToolOptions:this._activeCustomToolOptions,activeSelectionTool:this._activeSelectionTool,selectionViewModel:this.selectionViewModel}}get _activeSelectionTool(){switch(this.selectionViewModel.activeOperation?.toolName){case"lasso":return"lasso-selection";case"rectangle":return"rectangle-selection";default:return}}get _activePluginUniqueIds(){let i=this.sketchViewModel?.activePluginConfigurations.filter(e=>!e.hidden).map(e=>e.uniqueId);return new Set(i??[])}get _createToolActions(){let{sketchViewModel:i}=this;if(!i)return[];let e=i.effectiveAvailablePlugins,t=this.state==="disabled",o=this.visibleElements.createTools,s=this.activeTool,c=this._activeCustomToolOptions,p=c||!i.firstPluginWithSwappableLeaf?this._customToolOptions:[],d=i.rootPlugins,l=p?.map(n=>({active:n===c,disabled:t,icon:n.icon,labelKey:n.label,onClick:n===c?()=>this._cancelActiveOperation():()=>this._activateLegacyDrawTool(n.toolName,n.createOptions,n)}))??[];if(c&&d)return[...this._pluginsToActions(d),...l];if(e?.length&&this.view?.type!=="3d")return[...this._pluginsToActions(e),...l];let g=this.view?.type==="3d";return[...this.availableCreateTools?.filter(n=>g&&n==="multipoint"?!1:n==="mesh"?!0:o[n])?.map(n=>({active:n===s,disabled:t,icon:Pe[n],labelKey:`draw.${n}`,onClick:n===s?()=>this._cancelActiveOperation():()=>this._activateLegacyDrawTool(n)}))??[],...l]}get _shouldShowBackButton(){let i=this.sketchViewModel?.firstPluginWithSwappableLeaf,e=this.sketchViewModel?.rootPlugins,t=this._activeCustomToolOptions;return!!(this.sketchViewModel?.multiplePluginsActive&&i&&e&&!(e.length<2&&e.includes(i)&&!this.visibleElements.singlePluginBackButton)&&!t)}get _selectionToolActions(){return this._shouldShowBackButton?[{active:!1,disabled:this.state==="disabled",icon:"chevron-left",iconFlipRTL:!0,labelKey:"back",onClick:()=>this._cancelActiveOperation()}]:this._selectionCommands}get _settingsActions(){let i=this._customActions?.get("settings-before"),e=this._customActions?.get("settings-after"),t=this.visibleElements.settingsMenu,o=[];return!i?.length&&!e?.length&&!t||(i&&o.push(...this._customActionsToSketchActions(i)),t&&o.push({icon:"gear",active:this.settingsPopoverOpen,disabled:this.state==="disabled",labelKey:"settings.heading",tooltipKey:"settings.heading",refKey:"settings",onClick:()=>this.toggleSettingsPopover()}),e&&o.push(...this._customActionsToSketchActions(e))),o}get _activeTool(){let i=this.selectionViewModel.activeOperation;if(i)switch(i.toolName){case"lasso":return"lasso-selection";case"rectangle":return"rectangle-selection";case"default":return"custom-selection"}if(!this.sketchViewModel)return;let{availableCreateTools:e}=this,{activeTool:t,activeCreateToolDrawMode:o}=this.sketchViewModel;return t==="polygon"&&o==="freehand"&&e?.includes("freehandPolygon")?"freehandPolygon":t==="polyline"&&o==="freehand"&&e?.includes("freehandPolyline")?"freehandPolyline":t??void 0}get _selectionCommands(){let{state:i,visibleElements:e,_activeSelectionTool:t,_customActions:o}=this,s=this.state==="disabled",c=[];this.sketchViewModel?.updateOnGraphicClick!==!1&&c.push({active:i==="ready"&&this._activeSelectionTool==null,disabled:s,icon:"cursor",labelKey:"selectFeature",onClick:()=>this._activateDefaultSelectionTool()});let p=e.selectionTools;p["rectangle-selection"]&&c.push({active:t==="rectangle-selection",disabled:s,icon:"cursor-marquee",labelKey:"rectangleSelection",onClick:()=>this._activateSelectionTool("rectangle-selection")}),p["lasso-selection"]&&c.push({active:t==="lasso-selection",disabled:s,icon:"lasso-select",labelKey:"lassoSelection",onClick:()=>this._activateSelectionTool("lasso-selection")});let d=o?.get("selection-toolbar");return d&&c.push(...this._customActionsToSketchActions(d)),c}get _selectionSetActions(){let i=this.sketchViewModel?.updateGraphics.length??0;if(!i)return[];let e=this.state==="disabled",t=[],o=this._customActions?.get("before-selection-set"),s=this._customActions?.get("after-selection-set");return this.visibleElements.selectionCountLabel&&t.push({active:!1,appearance:"outline",disabled:e,icon:"selection-x",kind:"brand",labelKey:"deselectCount",labelParameters:{count:i},textEnabled:!0,renderAsAction:!0,onClick:()=>this._cancelSketchOperation()}),o&&t.push(...this._customActionsToSketchActions(o)),this.visibleElements.duplicateButton&&t.push({active:!1,disabled:e,icon:"copy",renderAsAction:!0,labelKey:i>1?"duplicateFeatures":"duplicateFeature",onClick:()=>this._duplicate()}),this.visibleElements.deleteButton&&t.push({active:!1,disabled:e,icon:"trash",kind:"danger",renderAsAction:!0,labelKey:i>1?"deleteFeatures":"deleteFeature",onClick:()=>this._delete()}),s&&t.push(...this._customActionsToSketchActions(s)),t}get _undoRedoActions(){return this.visibleElements.undoRedoMenu?[{active:!1,disabled:this.state==="disabled"||!this.sketchViewModel?.canUndo(),icon:"undo",labelKey:"undo",iconFlipRTL:!0,onClick:()=>this._undo()},{active:!1,disabled:this.state==="disabled"||!this.sketchViewModel?.canRedo(),icon:"redo",labelKey:"redo",iconFlipRTL:!0,onClick:()=>this._redo()}]:[]}get state(){return this._getEffectiveValue("state",()=>this._state)}get activeTool(){return this._getEffectiveValue("activeTool",()=>this._activeTool)}get activePluginIds(){return this._getEffectiveValue("activePluginId",()=>this._activePluginUniqueIds)}get groupedActions(){let i=this._getEffectiveValue("availableCommandGroups",()=>[["selectionTools",this._selectionToolActions],["createTools",this._createToolActions],["undoRedo",this._undoRedoActions],["settings",this._settingsActions],["selectionSet",this._selectionSetActions]].map(([t,o])=>({name:t,commands:o,visible:o.length>0}))),e=this._effectiveGeometrySimplificationInProgress?i.map(t=>({...t,commands:t.commands.map(o=>({...o,disabled:!0}))})):i;return!this.visibleElements.geometrySimplificationActivityIndicator||!this._effectiveGeometrySimplificationInProgress?e:[...e,{name:"geometrySimplification",commands:[{active:!1,appearance:"transparent",disabled:!0,kind:"warning",labelKey:"processing",loading:!0,onClick:()=>{},renderAsAction:!0}],visible:!0}]}async create(i,e){await this._executeWhenReady(async()=>{this.cancelAll();let t=this.sketchViewModel;t&&await C(t.create(i,e))})}async _executeWhenReady(i){this._pendingCommandAbortController?.abort();let e=new AbortController;this._pendingCommandAbortController=e;try{await C((async()=>{this.sketchViewModel?.geometrySimplificationInProgress&&await ye(()=>!this.sketchViewModel?.geometrySimplificationInProgress,e.signal),e.signal.aborted||await i()})())}finally{this._pendingCommandAbortController===e&&(this._pendingCommandAbortController=void 0)}}toggleSettingsPopover(){this.settingsPopoverOpen=!this.settingsPopoverOpen}setCustomTools(i,e){this._customToolOptions=i??void 0;let t=this._activeCustomToolOptions;if(t){let o=this._customToolOptions?.find(s=>s.toolKey===t.toolKey);o?this._activeCustomToolOptions=o:this.cancelAll()}if(e?.length){let o=new Map;for(let s of e)se(o,s.position,()=>[]).push(s);this._customActions=o}else this._customActions=void 0}cancelAll(){this._pendingCommandAbortController?.abort(),this._cancelSupportingOperations(),this.sketchViewModel?.cancel()}async update(i,e){await this._executeWhenReady(async()=>{let t=this.sketchViewModel;t&&await C(t.update(i,e))})}_activateDefaultSelectionTool(){this._executeWhenReady(()=>{this.cancelAll(),this.view?.focus()})}_cancelActiveOperation(){this._executeWhenReady(()=>this.cancelAll())}_cancelSketchOperation(){this._executeWhenReady(()=>this.sketchViewModel?.cancel())}_cancelSupportingOperations(){this.selectionViewModel.cancel(),this._activeCustomToolOptions=void 0}_activatePlugin(i){this._executeWhenReady(()=>{let e=this._activeCustomToolOptions!=null;this._cancelSupportingOperations();let t=this.sketchViewModel;if(t){if(e){t.cancel(),C(t.create(i));return}t.firstPluginWithSwappableLeaf?(t.replaceLeaf(i),this.view?.focus()):C(t.create(i))}})}_activateLegacyDrawTool(i,e,t){this._executeWhenReady(()=>{this._cancelSupportingOperations();let o=this.sketchViewModel;o&&(this._activeCustomToolOptions=t,C(o.create(i,e)))})}_activateSelectionTool(i){this._executeWhenReady(()=>{if(this._activeSelectionTool===i){this.selectionViewModel.cancel();return}this.cancelAll();let e={createTool:i==="lasso-selection"?"polygon":"rectangle",...i==="lasso-selection"?{mode:"hybrid",toolName:"lasso"}:{toolName:"rectangle"},type:"replace",selectOnComplete:!0};this.selectionViewModel.activate(e)&&this.view?.focus()})}_delete(){this._executeWhenReady(()=>this.sketchViewModel?.delete())}_duplicate(){this._executeWhenReady(()=>{this.sketchViewModel?.duplicate()})}_executeCustomAction(i){this._executeWhenReady(()=>i.onclick?.())}_redo(){this._executeWhenReady(()=>{this.sketchViewModel?.redo()})}_undo(){this._executeWhenReady(()=>{this.sketchViewModel?.undo()})}_customActionsToSketchActions(i){let e=this.state==="disabled";return i.map(t=>({active:t.active??!1,afterCreate:t.afterCreate,afterRemoved:t.afterRemoved,afterUpdate:t.afterUpdate,disabled:e||(t.disabled??!1),icon:t.icon,iconFlipRTL:t.flipRTL,id:t.id,labelKey:t.text,onClick:()=>this._executeCustomAction(t)}))}_pluginsToActions(i){let e=this.activePluginIds,t=this._activeCustomToolOptions,o=this.state==="disabled";return i.map(s=>({active:(e?.has(s.uniqueId)??!1)&&!t,icon:s.icon,disabled:o,labelKey:`digitizers.${s.localizationKey}`,onClick:()=>this._activatePlugin([s])}))}};r([h()],a.prototype,"_isEffectiveRenderStateFrozen",1);r([h()],a.prototype,"_effectiveGeometrySimplificationInProgress",2);r([h()],a.prototype,"_state",1);r([h()],a.prototype,"_customToolOptions",2);r([h()],a.prototype,"_activeCustomToolOptions",2);r([h()],a.prototype,"_customActions",2);r([h()],a.prototype,"selectionViewModel",2);r([h()],a.prototype,"_activeSelectionTool",1);r([h()],a.prototype,"_activePluginUniqueIds",1);r([h()],a.prototype,"_createToolActions",1);r([h()],a.prototype,"_shouldShowBackButton",1);r([h()],a.prototype,"_selectionToolActions",1);r([h()],a.prototype,"_settingsActions",1);r([h()],a.prototype,"_activeTool",1);r([h()],a.prototype,"_selectionCommands",1);r([h()],a.prototype,"_selectionSetActions",1);r([h()],a.prototype,"_undoRedoActions",1);r([h()],a.prototype,"sketchViewModel",2);r([h()],a.prototype,"visibleElements",2);r([h()],a.prototype,"view",2);r([h()],a.prototype,"settingsPopoverOpen",2);r([h()],a.prototype,"availableCreateTools",2);r([h()],a.prototype,"state",1);r([h()],a.prototype,"activeTool",1);r([h()],a.prototype,"activePluginIds",1);r([h()],a.prototype,"groupedActions",1);a=r([Te("components.sketch.SketchComponentViewModel")],a);var O=class extends z{#t;#e=!1;#i;constructor(e){if(super(e),e.type!==U.ELEMENT)throw new Error("nodeHooks() can only be used on elements")}render(e){return k}update(e,[t]){let o=e.element;if(!(o instanceof HTMLElement))throw new TypeError("nodeHooks() can only be used on HTMLElements");let s=this.#e?t.afterUpdate:t.afterCreate;return this.#t=o,this.#e=!0,this.#i=t,queueMicrotask(()=>{o.isConnected&&s?.(o)}),k}disconnected(){let e=this.#t,t=this.#i?.afterRemoved;!e||!t||queueMicrotask(()=>{e.isConnected||X(()=>t(e),{timeout:16})})}},oe=H(O),Re=Z(i=>new Ce({...i,cancelUpdateOnClickAway:!0,creationMode:"continuous",textSymbol:new me({text:"hello world"}),useLegacyCreateTools:!1})),L=class extends q{constructor(){super(),this.#t=new a,this.#o=S(),this.#s=S(),this._defaultGraphicsLayer=null,this._messages=Y(),this.test={componentViewModel:this.#t},this._groupLayoutPriorityOverrides=new Map,this._contextualToolLocation="separate",this._refMap=be(),this.viewModel=Re(this),this.view=this.viewModel.view,this.autoDestroyDisabled=!1,this.createGraphic=this.viewModel.createGraphic,this.creationMode=this.viewModel.creationMode,this.defaultCreateOptions=this.viewModel.defaultCreateOptions,this.defaultGraphicsLayerDisabled=!1,this.defaultUpdateOptions=this.viewModel.defaultUpdateOptions,this.geometrySimplificationInProgress=this.viewModel.geometrySimplificationInProgress,this.icon="pencil",this.label=this._messages?.componentLabel,this.labelOptions=this.viewModel.labelOptions,this.layer=this.viewModel.layer,this.layout="horizontal",this.pointSymbol=this.viewModel.pointSymbol,this.polygonSymbol=this.viewModel.polygonSymbol,this.polylineSymbol=this.viewModel.polylineSymbol,this.visualScale="m",this.snappingOptions=this.viewModel.snappingOptions,this.textSymbol=this.viewModel.textSymbol,this.toolbarKind="floating",this.tooltipOptions=this.viewModel.tooltipOptions,this.useViewOptions=this.viewModel.useViewOptions,this.valueOptions=this.viewModel.valueOptions,this.useLegacyCreateTools=this.viewModel.useLegacyCreateTools,this.updateOnGraphicClickDisabled=this.viewModel.updateOnGraphicClick,this.updateGraphics=this.viewModel.updateGraphics,this.arcgisCreate=y(()=>this.viewModel,"create"),this.arcgisDelete=y(()=>this.viewModel,"delete"),this.arcgisDuplicate=y(()=>this.viewModel,"duplicate"),this.arcgisPropertyChange=Q()("activeTool","geometrySimplificationInProgress","state"),this.arcgisReady=F(),this.arcgisRedo=y(()=>this.viewModel,"redo"),this.arcgisUndo=y(()=>this.viewModel,"undo"),this.arcgisUpdate=y(()=>this.viewModel,"update"),J(["slot"],()=>{this.requestUpdate()}),this.manager.onLifecycle(()=>[m(()=>this.el.view?.map,(e,t)=>{let o=this._defaultGraphicsLayer;o&&(t?.allLayers.includes(o)&&t.remove(o),o&&!e?.allLayers.includes(o)&&e?.add(o))}),m(()=>this.el.view,e=>{this.viewModel.view=e,this.#t.view=e??void 0},{initial:!0}),m(()=>this.viewModel,e=>{this.#t.sketchViewModel=e,this.viewModel.pluginManager.sketch=this},{initial:!0}),m(()=>this.#t.state,(e,t)=>{this.requestUpdate("state",t)},{initial:!0}),m(()=>this.#t.activeTool,()=>this.arcgisPropertyChange.emit({name:"activeTool"}),{sync:!0})]),this.manager.onDestroy(()=>{this._defaultGraphicsLayer&&this.el.view?.map?.allLayers.includes(this._defaultGraphicsLayer)&&this.el.view?.map?.remove(this._defaultGraphicsLayer),this._defaultGraphicsLayer?.destroy(),this._defaultGraphicsLayer=null,this.#t.destroy()})}static{this.properties={_groupLayoutPriorityOverrides:16,_contextualToolLocation:16,_refMap:16,viewModel:0,view:0,activeTool:32,autoDestroyDisabled:5,visibleElements:0,availableCreateTools:0,createGraphic:32,creationMode:1,defaultCreateOptions:0,defaultGraphicsLayerDisabled:5,defaultUpdateOptions:0,geometrySimplificationInProgress:36,hideCreateToolsCircle:5,hideCreateToolsMultipoint:5,hideCreateToolsPoint:5,hideCreateToolsPolygon:5,hideCreateToolsPolyline:5,hideCreateToolsRectangle:5,hideDuplicateButton:5,hideDeleteButton:5,hideSelectionCountLabel:5,hideLabelsToggle:5,hideSelectionToolsLassoSelection:5,hideSelectionToolsRectangleSelection:5,hideSettingsMenu:5,hideSinglePluginBackButton:5,hideSnappingControls:5,hideSnappingControlsElementsEnabledToggle:5,hideSnappingControlsElementsFeatureEnabledToggle:5,hideSnappingControlsElementsLayerList:5,hideSnappingControlsElementsSelfEnabledToggle:5,hideSnappingControlsElementsGridEnabledToggle:5,hideSnappingControlsElementsGridControls:5,hideSnappingControlsElementsGridControlsElementsColorSelection:5,hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle:5,hideSnappingControlsElementsGridControlsElementsLineIntervalInput:5,hideSnappingControlsElementsGridControlsElementsNumericInputs:5,hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning:5,hideSnappingControlsElementsGridControlsElementsPlacementButtons:5,hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle:5,hideTooltipsToggle:5,hideUndoRedoMenu:5,icon:1,label:1,labelOptions:0,layer:0,layout:1,pointSymbol:0,polygonSymbol:0,polylineSymbol:0,referenceElement:1,relativePosition:1,scale:1,visualScale:1,showSnappingControlsElementsHeader:5,showCreateToolsFreehandPolygon:5,showCreateToolsFreehandPolyline:5,showCreateToolsText:5,hideGeometrySimplificationActivityIndicator:5,snappingOptions:0,state:32,textSymbol:0,toolbarKind:1,tooltipOptions:0,useViewOptions:5,valueOptions:0,useLegacyCreateTools:5,updateOnGraphicClickDisabled:5,cancelUpdateOnClickAwayDisabled:5,updateGraphics:32}}static{this.styles=Me}#t;get#e(){return this.#t.visibleElements}#i;#o;#s;get activeTool(){return this.#t.activeTool}get visibleElements(){return this.#t.visibleElements}set visibleElements(e){this.#t.visibleElements=e}get availableCreateTools(){return this.#t.availableCreateTools}set availableCreateTools(e){this.#t.availableCreateTools=e}get hideCreateToolsCircle(){return!this.#e.createTools.circle}set hideCreateToolsCircle(e){this.#e.createTools.circle=!e}get hideCreateToolsMultipoint(){return!this.#e.createTools.multipoint}set hideCreateToolsMultipoint(e){this.#e.createTools.multipoint=!e}get hideCreateToolsPoint(){return!this.#e.createTools.point}set hideCreateToolsPoint(e){this.#e.createTools.point=!e}get hideCreateToolsPolygon(){return!this.#e.createTools.polygon}set hideCreateToolsPolygon(e){this.#e.createTools.polygon=!e}get hideCreateToolsPolyline(){return!this.#e.createTools.polyline}set hideCreateToolsPolyline(e){this.#e.createTools.polyline=!e}get hideCreateToolsRectangle(){return!this.#e.createTools.rectangle}set hideCreateToolsRectangle(e){this.#e.createTools.rectangle=!e}get hideDuplicateButton(){return!this.#e.duplicateButton}set hideDuplicateButton(e){this.#e.duplicateButton=!e}get hideDeleteButton(){return!this.#e.deleteButton}set hideDeleteButton(e){this.#e.deleteButton=!e}get hideSelectionCountLabel(){return!this.#e.selectionCountLabel}set hideSelectionCountLabel(e){this.#e.selectionCountLabel=!e}get hideLabelsToggle(){return!this.#e.labelsToggle}set hideLabelsToggle(e){this.#e.labelsToggle=!e}get hideSelectionToolsLassoSelection(){return!this.#e.selectionTools["lasso-selection"]}set hideSelectionToolsLassoSelection(e){this.#e.selectionTools["lasso-selection"]=!e}get hideSelectionToolsRectangleSelection(){return!this.#e.selectionTools["rectangle-selection"]}set hideSelectionToolsRectangleSelection(e){this.#e.selectionTools["rectangle-selection"]=!e}get hideSettingsMenu(){return!this.#e.settingsMenu}set hideSettingsMenu(e){this.#e.settingsMenu=!e}get hideSinglePluginBackButton(){return!this.#e.singlePluginBackButton}set hideSinglePluginBackButton(e){this.#e.singlePluginBackButton=!e}get hideSnappingControls(){return!this.#e.snappingControls}set hideSnappingControls(e){this.#e.snappingControls=!e}get hideSnappingControlsElementsEnabledToggle(){return!this.#e.snappingControlsElements.enabledToggle}set hideSnappingControlsElementsEnabledToggle(e){this.#e.snappingControlsElements.enabledToggle=!e}get hideSnappingControlsElementsFeatureEnabledToggle(){return!this.#e.snappingControlsElements.featureEnabledToggle}set hideSnappingControlsElementsFeatureEnabledToggle(e){this.#e.snappingControlsElements.featureEnabledToggle=!e}get hideSnappingControlsElementsLayerList(){return!this.#e.snappingControlsElements.layerList}set hideSnappingControlsElementsLayerList(e){this.#e.snappingControlsElements.layerList=!e}get hideSnappingControlsElementsSelfEnabledToggle(){return!this.#e.snappingControlsElements.selfEnabledToggle}set hideSnappingControlsElementsSelfEnabledToggle(e){this.#e.snappingControlsElements.selfEnabledToggle=!e}get hideSnappingControlsElementsGridEnabledToggle(){return!this.#e.snappingControlsElements.gridEnabledToggle}set hideSnappingControlsElementsGridEnabledToggle(e){this.#e.snappingControlsElements.gridEnabledToggle=!e}get hideSnappingControlsElementsGridControls(){return!this.#e.snappingControlsElements.gridControls}set hideSnappingControlsElementsGridControls(e){this.#e.snappingControlsElements.gridControls=!e}get hideSnappingControlsElementsGridControlsElementsColorSelection(){return!this.#e.snappingControlsElements.gridControlsElements.colorSelection}set hideSnappingControlsElementsGridControlsElementsColorSelection(e){this.#e.snappingControlsElements.gridControlsElements.colorSelection=!e}get hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle(){return!this.#e.snappingControlsElements.gridControlsElements.dynamicScaleToggle}set hideSnappingControlsElementsGridControlsElementsDynamicScaleToggle(e){this.#e.snappingControlsElements.gridControlsElements.dynamicScaleToggle=!e}get hideSnappingControlsElementsGridControlsElementsLineIntervalInput(){return!this.#e.snappingControlsElements.gridControlsElements.lineIntervalInput}set hideSnappingControlsElementsGridControlsElementsLineIntervalInput(e){this.#e.snappingControlsElements.gridControlsElements.lineIntervalInput=!e}get hideSnappingControlsElementsGridControlsElementsNumericInputs(){return!this.#e.snappingControlsElements.gridControlsElements.numericInputs}set hideSnappingControlsElementsGridControlsElementsNumericInputs(e){this.#e.snappingControlsElements.gridControlsElements.numericInputs=!e}get hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning(){return!this.#e.snappingControlsElements.gridControlsElements.outOfScaleWarning}set hideSnappingControlsElementsGridControlsElementsOutOfScaleWarning(e){this.#e.snappingControlsElements.gridControlsElements.outOfScaleWarning=!e}get hideSnappingControlsElementsGridControlsElementsPlacementButtons(){return!this.#e.snappingControlsElements.gridControlsElements.placementButtons}set hideSnappingControlsElementsGridControlsElementsPlacementButtons(e){this.#e.snappingControlsElements.gridControlsElements.placementButtons=!e}get hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle(){return!this.#e.snappingControlsElements.gridControlsElements.rotateWithMapToggle}set hideSnappingControlsElementsGridControlsElementsRotateWithMapToggle(e){this.#e.snappingControlsElements.gridControlsElements.rotateWithMapToggle=!e}get hideTooltipsToggle(){return!this.#e.tooltipsToggle}set hideTooltipsToggle(e){this.#e.tooltipsToggle=!e}get hideUndoRedoMenu(){return!this.#e.undoRedoMenu}set hideUndoRedoMenu(e){this.#e.undoRedoMenu=!e}get relativePosition(){let e=this.el.slot;return this.#i??(_e.has(e)?e:te.topRight)}set relativePosition(e){this.#i=e}get scale(){return this.visualScale}set scale(e){this.visualScale=e}get showSnappingControlsElementsHeader(){return this.#e.snappingControlsElements.header}set showSnappingControlsElementsHeader(e){this.#e.snappingControlsElements.header=e}get showCreateToolsFreehandPolygon(){return this.#e.createTools.freehandPolygon}set showCreateToolsFreehandPolygon(e){this.#e.createTools.freehandPolygon=e}get showCreateToolsFreehandPolyline(){return this.#e.createTools.freehandPolyline}set showCreateToolsFreehandPolyline(e){this.#e.createTools.freehandPolyline=e}get showCreateToolsText(){return this.#e.createTools.text}set showCreateToolsText(e){this.#e.createTools.text=e}get hideGeometrySimplificationActivityIndicator(){return!this.#e.geometrySimplificationActivityIndicator}set hideGeometrySimplificationActivityIndicator(e){this.#e.geometrySimplificationActivityIndicator=!e}get state(){return this.#t.state}get cancelUpdateOnClickAwayDisabled(){return!this.viewModel.cancelUpdateOnClickAway}set cancelUpdateOnClickAwayDisabled(e){this.viewModel.cancelUpdateOnClickAway=!e}async cancel(){this.#t.cancelAll()}async complete(){this.viewModel.complete()}async create(e,t){await this.#t.create(e,t)}async delete(){this.viewModel.delete()}async destroy(){await this.manager.destroy()}async dismissFloatingElements(){this.#t.settingsPopoverOpen=!1}async duplicate(){this.viewModel.duplicate()}async redo(){this.viewModel.redo()}async setContextualToolLocation(e){this._contextualToolLocation=e}async setCustomTools(e,t){this.#t.setCustomTools(e,t)}async setGroupCollapsePriorities(e){this._groupLayoutPriorityOverrides=e||new Map}async triggerUpdate(e,t){await this.#t.update(e,t)}async undo(){this.#t.sketchViewModel?.undo()}connectedCallback(){super.connectedCallback(),this.defaultGraphicsLayerDisabled||(this._defaultGraphicsLayer?.destroyed&&(this._defaultGraphicsLayer=null),this._defaultGraphicsLayer??=new ue({title:"Sketch Layer"}),this.layer=this._defaultGraphicsLayer,this.view?.map?.add(this.layer),this.viewModel.layer=this._defaultGraphicsLayer)}disconnectedCallback(){this._defaultGraphicsLayer&&this.view?.map?.allLayers.includes(this._defaultGraphicsLayer)&&this.view?.map?.remove(this._defaultGraphicsLayer),super.disconnectedCallback()}render(){let e=this._refMap.get("settings")?.value?.actionElement,t=this.#t.groupedActions,{visualScale:o,layout:s,toolbarKind:c,relativePosition:p,_contextualToolLocation:d}=this,l=t.find(({name:n})=>n==="selectionSet"),g=t.filter(({name:n})=>n!=="selectionSet");return u`<div class="toolbar-container"><arcgis-toolbar-stack .layout=${s} .toolbarKind=${c} .relativePosition=${p} .scale=${o} tooltip-appearance=calcite><arcgis-toolbar ${E(this.#o)}>${f({hidden:!l?.visible||d!=="inline",children:this._renderActionGroup(l)})}${g.map(n=>this._renderActionGroup(n))}${f({hidden:!l?.visible||d!=="inline-end",children:this._renderActionGroup(l)})}</arcgis-toolbar>${f({hidden:!l?.visible||d!=="separate",children:u`<arcgis-toolbar>${this._renderActionGroup(l)}</arcgis-toolbar>`})}</arcgis-toolbar-stack></div>${f({hidden:this.hideSettingsMenu,children:u`<arcgis-view-popover .open=${this.#t.settingsPopoverOpen} closable .heading=${this._messages.settings?.heading} .label=${this._messages.settings?.heading} .anchorElement=${e} .visualScale=${o} .actionBarElement=${this.#o.value?.barElement} @arcgisPropertyChange=${n=>this.#t.settingsPopoverOpen=n.target.open??!1} .view=${this.view??void 0}>${this._renderSettings()}</arcgis-view-popover>`})}`}_renderSettings(){let{autoDestroyDisabled:e,hideLabelsToggle:t,hideSnappingControls:o,hideTooltipsToggle:s,showSnappingControlsElementsHeader:c,useViewOptions:p,view:d,viewModel:l}=this;return u`<div class="editing-controls-panel"><arcgis-sketch-tooltip-controls .hideLabelsToggle=${t} .hideTooltipsToggle=${p||s} .directionMode=${l.valueOptions.directionMode} .labelsEnabled=${l.labelOptions.enabled} .tooltipsEnabled=${l.tooltipOptions.enabled} @arcgisPropertyChange=${g=>{g.stopPropagation();let{labelsEnabled:n,tooltipsEnabled:w,directionMode:_}=g.currentTarget,b=this.viewModel;switch(g.detail.name){case"labelsEnabled":b.labelOptions.enabled=n;break;case"directionMode":b.valueOptions.directionMode=_;break;case"tooltipsEnabled":b.tooltipOptions.enabled=w;break}}}></arcgis-sketch-tooltip-controls>${!p&&!o?u`<arcgis-snapping-controls .autoDestroyDisabled=${e} .view=${d} .visibleElements=${this.#e.snappingControlsElements} .snappingOptions=${l.snappingOptions} .showHeader=${c} @arcgisPropertyChange=${g=>g.stopPropagation()}></arcgis-snapping-controls>`:void 0}</div>`}_renderActionGroup({visible:e,commands:t,name:o}){if(!e||!t.length)return;let{defaultPriority:s,groupKind:c,overflowLabel:p}=ke[o],d=(o==="geometrySimplification"?void 0:this._groupLayoutPriorityOverrides.get(o))??s,l=t.map(n=>this._renderCommand(n)),g=ie(`more.${p}`,this._messages);switch(c){case"more-button":return u`<arcgis-toolbar-group .priority=${d}><arcgis-toolbar-more-button .overflowActionLabel=${g} .priority=${d}>${l}</arcgis-toolbar-more-button></arcgis-toolbar-group>`;case"split-button":return u`<arcgis-toolbar-group .priority=${d}><arcgis-toolbar-split-button .overflowActionLabel=${g} .priority=${d}>${l}</arcgis-toolbar-split-button></arcgis-toolbar-group>`;case"actions":return u`<arcgis-toolbar-group .priority=${d}>${l}</arcgis-toolbar-group>`}}_renderCommand({active:e,afterCreate:t,afterRemoved:o,afterUpdate:s,appearance:c,icon:p,disabled:d,id:l,kind:g,labelKey:n,labelParameters:w,loading:_,tooltipKey:b,iconFlipRTL:G,onClick:$,refKey:R,textEnabled:V,renderAsAction:ne}){let{_messages:x,_refMap:le,layout:I}=this,M=ie(n,x),P=M===void 0?n:w?ge(M,w):M,D=x?.[b]??P,B=R?se(le,R,S):this.#s,K={afterCreate:t,afterRemoved:o,afterUpdate:s};return ne?u`<arcgis-toolbar-action .active=${e} .appearance=${c} .disabled=${d} .icon=${p} .iconFlipRtl=${G} id=${l??A} .kind=${g} .loading=${_} .labelText=${I==="horizontal"?P:""} .textEnabled=${V} .tooltipText=${I==="horizontal"&&V?"":D} @arcgisToolbarItemSelected=${$} ${oe(K)} ${E(B)}></arcgis-toolbar-action>`:u`<arcgis-toolbar-item .active=${e} .disabled=${d} .icon=${p} id=${l??A} .iconFlipRtl=${G} .labelText=${P} .tooltipText=${D} @arcgisItemSelected=${$} ${oe(K)} ${E(B)}></arcgis-toolbar-item>`}};j("arcgis-sketch",L);return L},"intl","layers/GraphicsLayer","symbols/TextSymbol","core/reactiveUtils","widgets/Sketch/SketchViewModel","applications/Components/featureUtils","core/Accessor","core/accessorSupport/decorators","core/promiseUtils","widgets/Sketch/VisibleElements","widgets/support/SelectionToolbar/SelectionToolbarViewModel",a,b,c,d,e,g)
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
2
|
-
import{f as i,i as g}from"./
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import{f as i,i as g}from"./ZKWI43WZ.js";import{p as l}from"./3UMLR76Y.js";var h=n=>{let o=g(n,"lang",globalThis.navigator?.language||c);return{lang:o,t9nLocale:d(o)}},C=(n,o,a,e)=>{let t,s=()=>L(n,o(),e).then(r=>{(t?.lang!==r.lang||t.t9nLocale!==r.t9nLocale||t.t9nStrings!==r.t9nStrings)&&a(r),t=r}).catch(r=>{l("error","intl","Error updating component locale state",{detail:{error:r}})});return queueMicrotask(s),i(n,["lang"],s)},L=async(n,o,a=n.localName.split("-").slice(1).join("-"))=>{let{lang:e,t9nLocale:t}=h(n),s=`${o}/${a}/t9n`,f=a===null?{}:await m(t,s,"messages.");return{lang:e,t9nLocale:t,t9nStrings:f}};var $="ar,bg,bs,ca,cs,da,de,el,en,es,et,fi,fr,he,hr,hu,id,it,ja,ko,lt,lv,nl,nb,no,pl,pt-BR,pt-PT,ro,ru,sk,sl,sr,sv,th,tr,uk,vi,zh-CN,zh-HK,zh-TW".split(","),b=new Set($),c="en",v={pt:"pt-BR",nb:"no",nn:"no",zh:"zh-CN"},m=async(n,o,a="")=>{let e=`${o}/${a}`,t=`${e}${n}.json`;return u[t]??=p(n,e),await u[t]},u={},p=async(n,o)=>{let a=`${o}${n}.json`;try{let e=await fetch(a);if(e.ok)return await e.json()}catch(e){return l("error","intl",`An unknown error occurred while fetching localization strings at ${a}`,{detail:{error:e}}),{}}return n===c?{}:await p(c,o)},d=n=>{let[o,a]=n.split("-"),e=o.toLowerCase(),t=e;return a&&(t=`${e}-${a.toUpperCase()}`),t=v[t]??t,b.has(t)?t:a?d(e):c};export{h as a,C as b};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* COPYRIGHT Esri - https://js.arcgis.com/
|
|
2
|
-
import e from"./
|
|
1
|
+
/* COPYRIGHT Esri - https://js.arcgis.com/6.0/LICENSE.txt */
|
|
2
|
+
import e from"./3ONY25MG.js";import d from"./4XERPOOU.js";import b from"./SZ3T7YEB.js";import{f as F}from"./IFR4IYSI.js";import"./7VDBR3SK.js";import"./FIZMK7GS.js";import{e as c}from"./ZKWI43WZ.js";import{P as C,R as m,S as f,U as a,X as A,a as H,b as h,c as W}from"./3UMLR76Y.js";import"./TAVTDQ6S.js";export default $arcgis.t(([{getBoundingBox:O,computeBBox:P,getTransformMatrix:D},,,{a:U,b:X,c:Y,d:j}])=>{var Q=H`.diamond-container{display:flex;font-size:var(--calcite-font-size-sm)}.diamond-left-column{align-self:center;padding-inline-end:5px;max-width:85px;text-align:right}.diamond-right-column{align-self:center;padding-inline-start:5px;max-width:85px;text-align:left}.diamond-middle-column{display:flex;flex-direction:column;text-align:center}.diamond-middle-column-label{align-self:center;max-width:85px}.diamond-middle-column-ramp{width:85px;height:85px}.square-table{display:table;font-size:var(--calcite-font-size-sm)}.square-table-row{display:table-row}.square-table-cell{display:table-cell}.square-table-label{max-width:95px}.square-table-label-left-bottom{vertical-align:bottom;text-align:left}.square-table-label-right-bottom{vertical-align:bottom;text-align:right}.square-table-label-left-top{vertical-align:top;text-align:left}.square-table-label-right-top{vertical-align:top;text-align:right}`,Z="http://www.w3.org/2000/svg",v=class extends C{constructor(){super(...arguments),this._direction=F(),this.legendElement=null}static{this.properties={cssEffectFilter:1,legendElement:0,opacity:9,messages:0}}static{this.styles=Q}_getLineMarkers(n,r){let e="arrowStart",i="arrowEnd",s=n==="left",t={markerStart:null,markerEnd:null};switch(r){case"HL":s?t.markerStart=`url(#${i})`:t.markerEnd=`url(#${e})`;break;case"LL":t.markerStart=`url(#${i})`;break;case"LH":s?t.markerEnd=`url(#${e})`:t.markerStart=`url(#${i})`;break;default:t.markerEnd=`url(#${e})`;break}return t}render(){let n=this.legendElement,{focus:r,labels:e}=n,i=!!r,s=this._renderRamp(n),t={justifyContent:"center"},l=this._direction==="rtl";return i?h`<div class="diamond-container" style=${f(t)}><div class="diamond-left-column">${l?e.right:e.left}</div><div class="diamond-middle-column"><div class="diamond-middle-column-label">${e.top}</div>${s}<div class="diamond-middle-column-label">${e.bottom}</div></div><div class="diamond-right-column">${l?e.left:e.right}</div></div>`:h`<div class="square-table"><div class="square-table-row"><div class=${m(c("square-table-cell","square-table-label","square-table-label-right-bottom"))}>${l?e.top:e.left}</div><div class="square-table-cell"></div><div class=${m(c("square-table-cell","square-table-label","square-table-label-left-bottom"))}>${l?e.left:e.top}</div></div><div class="square-table-row"><div class="square-table-cell"></div>${s}<div class="square-table-cell"></div></div><div class="square-table-row"><div class=${m(c("square-table-cell","square-table-label","square-table-label-right-top"))}>${l?e.right:e.bottom}</div><div class="square-table-cell"></div><div class=${m(c("square-table-cell","square-table-label","square-table-label-left-top"))}>${l?e.bottom:e.right}</div></div></div>`}_renderRamp(n){let{focus:r,numClasses:e,colors:i,rotation:s}=n,t=this.opacity,l=this.messages.previewRelationshipRampAriaLabel,o=60,u=!!r,d=Math.sqrt(o**2+o**2)+(u?0:5),$=[],k=[],x=[],b=o/e;for(let p=0;p<e;p++){let J=p*b;for(let g=0;g<e;g++){let K=g*b,_=X(i[p][g]),N=Y(null),R={type:"rect",x:K,y:J,width:b,height:b},z=U(_);z&&$.push(z);let B=j(R,_.fill,N,null);B&&k.push(B),x.push(O(R))}}let q=15,w=15,y=10,E;u||(E="margin: -15px -15px -18px -15px");let L=this._getLineMarkers("left",r),S=this._getLineMarkers("right",r),M=P(x),T=D(M,d,d,0,!1,s,!1),G=D(M,d,d,0,!1,u?-45:null,!1),I={filter:this.cssEffectFilter,opacity:t==null?"":`${t}`};return h`<div class=${m(u?"diamond-middle-column-ramp":"square-table-cell")} style=${f(I)}><svg .ariaLabel=${l} height=${d??a} role=img style=${f(E)} width=${d??a} xmlns=${Z}>${W`<defs><marker .id=${"arrowStart"} markerHeight=10 markerUnits=strokeWidth markerWidth=10 orient=auto refX=5 refY=5><polyline fill=none points="0,0 5,5 0,10" stroke=#555555 stroke-width=1 /></marker><marker .id=${"arrowEnd"} markerHeight=10 markerUnits=strokeWidth markerWidth=10 orient=auto refX=0 refY=5><polyline fill=none points="5,0 0,5 5,10" stroke=#555555 stroke-width=1 /></marker>${$}</defs><g transform=${T??a}>${k}</g><g transform=${G??a}><line fill=none marker-end=${L.markerEnd??void 0??a} marker-start=${L.markerStart??void 0??a} stroke=#555555 stroke-width=1 x1=${-10} x2=${-10} y1=${o-q} y2=${q} /><line fill=none marker-end=${S.markerEnd??void 0??a} marker-start=${S.markerStart??void 0??a} stroke=#555555 stroke-width=1 x1=${w} x2=${o-w} y1=${o+y} y2=${o+y} /></g>`}</svg></div>`}};A("arcgis-legend-relationship-ramp",v);return v},"applications/Components/svgUtils",b,d,e)
|