@arcgis/map-components 5.0.0-next.134 → 5.0.0-next.135
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/{4RSJEFSZ.js → 23PY7CVN.js} +2 -2
- package/dist/cdn/{BUNNNCMI.js → 27EVR7OV.js} +2 -2
- package/dist/cdn/{MH7NCIFP.js → 2A4FCCOP.js} +2 -2
- package/dist/cdn/{H3JTCC7L.js → 2HU7IL3Y.js} +2 -2
- package/dist/cdn/{NQR6XYYO.js → 2N6BHSPM.js} +2 -2
- package/dist/cdn/{TFRIJLDA.js → 2O5ZKD3N.js} +1 -1
- package/dist/cdn/{CXEN7SES.js → 344NAS3Y.js} +2 -2
- package/dist/cdn/{H23PF2X2.js → 3IBWMGON.js} +2 -2
- package/dist/cdn/{DG6CZVHG.js → 3JQAQRJ2.js} +1 -1
- package/dist/cdn/{PSVUNQDX.js → 3RBB42JW.js} +2 -2
- package/dist/cdn/{BDLSLXN5.js → 3ROVO3N4.js} +2 -2
- package/dist/cdn/{GAYWZEF7.js → 3SOJ4AQM.js} +2 -2
- package/dist/cdn/{2DRFCWH5.js → 3SXFHLW7.js} +2 -2
- package/dist/cdn/{QQVZHVGS.js → 3XFUOTMP.js} +2 -2
- package/dist/cdn/{EBSAPUJA.js → 4I6C4VGN.js} +2 -2
- package/dist/cdn/{ZLDCBYTA.js → 4LCLXV63.js} +2 -2
- package/dist/cdn/{5DBEXCFU.js → 4R2TIAV6.js} +2 -2
- package/dist/cdn/{HM2C3ES6.js → 53RYSLGE.js} +2 -2
- package/dist/cdn/{L62CHRMK.js → 5F2PRYYD.js} +1 -1
- package/dist/cdn/{WZBMS2MW.js → 5FTB4NPD.js} +2 -2
- package/dist/cdn/{UPGWQ3HK.js → 5L4WSSIP.js} +2 -2
- package/dist/cdn/{QRHKV76Y.js → 5MS2VUXK.js} +2 -2
- package/dist/cdn/{76HDKYOO.js → 5QNATMUH.js} +2 -2
- package/dist/cdn/{PGXT6S3I.js → 5QXPQNQH.js} +2 -2
- package/dist/cdn/{ITSEHZCA.js → 5UOJHR6S.js} +2 -2
- package/dist/cdn/{HBTXDUGP.js → 5VLSATEN.js} +2 -2
- package/dist/cdn/{4NO72KHC.js → 5Z2QK75J.js} +1 -1
- package/dist/cdn/{MNIJLLTZ.js → 6BQKACGB.js} +2 -2
- package/dist/cdn/{RPRHSAQY.js → 6FAYVNHN.js} +2 -2
- package/dist/cdn/{WW2Q6TAF.js → 6FT3CTZK.js} +2 -2
- package/dist/cdn/{WUI6RC4B.js → 6NQ4K356.js} +2 -2
- package/dist/cdn/{ZEOQH46K.js → 6QZYWE4M.js} +2 -2
- package/dist/cdn/{AWNBYWTM.js → 6YDISVG7.js} +2 -2
- package/dist/cdn/{VOCFPSV6.js → 6YSJAMTU.js} +2 -2
- package/dist/cdn/{UPEFWXBT.js → 73JBE6E7.js} +2 -2
- package/dist/cdn/{BG736JIN.js → 74FZTIBX.js} +2 -2
- package/dist/cdn/{6UWEMX62.js → 764YVPPV.js} +2 -2
- package/dist/cdn/{XPQA7OLT.js → 76TJC24F.js} +2 -2
- package/dist/cdn/{W3O7XCOU.js → 7DD64Z7Z.js} +2 -2
- package/dist/cdn/{BDRPIKNC.js → 7PZIBN2B.js} +2 -2
- package/dist/cdn/{7ASMHD5L.js → 7VCZAUUF.js} +2 -2
- package/dist/cdn/{IOWSQB3Q.js → 7VJWEF6O.js} +2 -2
- package/dist/cdn/{P3PJCE3H.js → A47PCNIA.js} +2 -2
- package/dist/cdn/{4WDM4INR.js → A6U3TQZT.js} +2 -2
- package/dist/cdn/{3RCP3SKH.js → ANFDZFFB.js} +2 -2
- package/dist/cdn/{T6LMR6G6.js → ARDHJCRS.js} +2 -2
- package/dist/cdn/{G7VWGNCH.js → AXGU3RLK.js} +2 -2
- package/dist/cdn/{RSFKVA2U.js → B2SXNWBP.js} +2 -2
- package/dist/cdn/{YIII2EBS.js → B4AWHHRL.js} +2 -2
- package/dist/cdn/{PGHTLD46.js → B6VKLWXV.js} +2 -2
- package/dist/cdn/{EGDYBFIB.js → BEFNFR2T.js} +2 -2
- package/dist/cdn/{JARAUMIS.js → BFX4IYWZ.js} +1 -1
- package/dist/cdn/{WQETU4ET.js → BIHUIWOJ.js} +2 -2
- package/dist/cdn/{AWXXVSVM.js → BJNLYH4X.js} +2 -2
- package/dist/cdn/{BVMSDJJN.js → BK6R4NEM.js} +2 -2
- package/dist/cdn/{QFV37QXS.js → BNMYU7IF.js} +2 -2
- package/dist/cdn/{ACUDDTLX.js → BPBUMZDQ.js} +2 -2
- package/dist/cdn/{DYU7WWWE.js → BPJCNKEU.js} +2 -2
- package/dist/cdn/{ZK3A7ESR.js → BPYAMWIQ.js} +2 -2
- package/dist/cdn/{I7A5MW6Q.js → BRTXHJ4E.js} +2 -2
- package/dist/cdn/{WHK7GLGR.js → C3GKOU46.js} +2 -2
- package/dist/cdn/{FZQ5FCND.js → C3T5PKMS.js} +2 -2
- package/dist/cdn/{ZT4AMEU2.js → C3UNJFE7.js} +1 -1
- package/dist/cdn/CASMSIDZ.js +4 -0
- package/dist/cdn/{XJC7TGGV.js → CFTYXLFB.js} +2 -2
- package/dist/cdn/{YXCANMRH.js → CHNO6ZKR.js} +2 -2
- package/dist/cdn/{LAAN5ETI.js → CSA5NUPQ.js} +2 -2
- package/dist/cdn/{PDBSIZPZ.js → CUZMU2KV.js} +2 -2
- package/dist/cdn/{PPYGQUP6.js → CZTLXH4D.js} +2 -2
- package/dist/cdn/{ULMC4P77.js → D73PIX2J.js} +2 -2
- package/dist/cdn/{SABOKBT4.js → DKX5M3DU.js} +2 -2
- package/dist/cdn/{O4KKYGZJ.js → E4BMX7SR.js} +2 -2
- package/dist/cdn/{SMGZSQGK.js → E5EXZ45Z.js} +2 -2
- package/dist/cdn/{BT6M43OB.js → E6BENEC5.js} +2 -2
- package/dist/cdn/{G2DVC7WB.js → E7VJQVME.js} +2 -2
- package/dist/cdn/{VD2WQCLG.js → ELYQQJY7.js} +2 -2
- package/dist/cdn/{XZ5XRTBH.js → ER5KAUGV.js} +2 -2
- package/dist/cdn/{VP7VYXB7.js → EWSBIJJ7.js} +2 -2
- package/dist/cdn/{CWLXWCYB.js → EWT6NG36.js} +2 -2
- package/dist/cdn/{3QYEQD6C.js → FA7BTFSY.js} +2 -2
- package/dist/cdn/{B4RMFZ7O.js → FG25LSCE.js} +2 -2
- package/dist/cdn/{H4BXWJFS.js → FKHDIOZ5.js} +2 -2
- package/dist/cdn/{TZQ2HDFN.js → FNY7EFBZ.js} +1 -1
- package/dist/cdn/{VAWMJ42Q.js → FZLXGAKG.js} +2 -2
- package/dist/cdn/{YMVDREOH.js → G2Q6XB3Y.js} +2 -2
- package/dist/cdn/{KV3HFUGO.js → G5FQXDZR.js} +2 -2
- package/dist/cdn/{3NDJNDTA.js → G5JS7J7P.js} +2 -2
- package/dist/cdn/{6SSMBVW5.js → GC62AKAG.js} +2 -2
- package/dist/cdn/{QPGLRWWF.js → GD4HRNGB.js} +2 -2
- package/dist/cdn/{QD46UDMI.js → GKXB4XZC.js} +2 -2
- package/dist/cdn/{GXPR6NE2.js → GN2DCHOL.js} +2 -2
- package/dist/cdn/{ESQPPJZX.js → GQNFLFOJ.js} +2 -2
- package/dist/cdn/{JD6IWEAF.js → GZSPAVGU.js} +2 -2
- package/dist/cdn/{EDC625PD.js → H2PB5D7D.js} +2 -2
- package/dist/cdn/{AL4RIHQ2.js → H54PSCX5.js} +2 -2
- package/dist/cdn/{RAYW6INS.js → H5TZETYE.js} +1 -1
- package/dist/cdn/{67C65X34.js → HEWWKOBJ.js} +1 -1
- package/dist/cdn/{YN5UWHVB.js → HQKLGFQO.js} +2 -2
- package/dist/cdn/{QGZPGGCK.js → HYMBR7WI.js} +2 -2
- package/dist/cdn/{XDSQ6YXU.js → I3SZ7XZE.js} +2 -2
- package/dist/cdn/{FEKEXQHA.js → I4RKVMR4.js} +2 -2
- package/dist/cdn/{VKC5KMEW.js → IELV2ZML.js} +2 -2
- package/dist/cdn/{7LIOZAMZ.js → IGNC3BRH.js} +2 -2
- package/dist/cdn/{YOIRMQRZ.js → IKQHNZFD.js} +2 -2
- package/dist/cdn/{3OV6YU6G.js → IV2VRUIP.js} +2 -2
- package/dist/cdn/{QL5RV57A.js → IZD4GURZ.js} +2 -2
- package/dist/cdn/{DXWFZM6K.js → J2Q7EF2T.js} +2 -2
- package/dist/cdn/{3ADQISAX.js → J3TDVSS7.js} +2 -2
- package/dist/cdn/{EBSFRLYG.js → JEK6CJ4M.js} +2 -2
- package/dist/cdn/{YLA6MOSY.js → JGW7ULQ4.js} +1 -1
- package/dist/cdn/{YVFNCWXE.js → JUPEWCHO.js} +1 -1
- package/dist/cdn/{SO7F7AR4.js → K2Y6HZNF.js} +2 -2
- package/dist/cdn/{NLEF3WF7.js → KGOTJM3M.js} +2 -2
- package/dist/cdn/{QKEGC4BD.js → KHW3OTUO.js} +2 -2
- package/dist/cdn/{NBAISKV2.js → KKFMOQFA.js} +2 -2
- package/dist/cdn/{FULVEK4C.js → KNWNUWMD.js} +2 -2
- package/dist/cdn/{4GBXT7BL.js → KPJC5MZD.js} +2 -2
- package/dist/cdn/{OESCQWVD.js → KRALQ6ZS.js} +2 -2
- package/dist/cdn/{EDKEDKNH.js → KVN2I45D.js} +2 -2
- package/dist/cdn/{6TDM64BT.js → KVO6TTGH.js} +2 -2
- package/dist/cdn/{K7PDWCDH.js → L62KQI6W.js} +2 -2
- package/dist/cdn/{HRKZIPCK.js → L7SFB2K5.js} +2 -2
- package/dist/cdn/{MR342Z6A.js → LJXXOMOP.js} +2 -2
- package/dist/cdn/{OWPRE3SC.js → LPPBJYER.js} +2 -2
- package/dist/cdn/{B5SSFYOA.js → LRAAR644.js} +1 -1
- package/dist/cdn/{EFIZ6BHY.js → LRB5KKCB.js} +2 -2
- package/dist/cdn/{CZLDMVUY.js → LSN4YYCV.js} +2 -2
- package/dist/cdn/{XDBMVPVD.js → LXGGYUD5.js} +2 -2
- package/dist/cdn/{BDA4CYXI.js → LZ3KSU6M.js} +2 -2
- package/dist/cdn/{HPXOVGP6.js → M3QQP2U6.js} +2 -2
- package/dist/cdn/{76VTWTYQ.js → M7NAIGVG.js} +2 -2
- package/dist/cdn/{FBBWK54U.js → MKT7QGRC.js} +2 -2
- package/dist/cdn/{TNU45BLA.js → MKUGPRUS.js} +2 -2
- package/dist/cdn/{T3DMELIN.js → MOHTRHBD.js} +2 -2
- package/dist/cdn/{HBHPSCRU.js → MUUEGL32.js} +2 -2
- package/dist/cdn/{L25RAGUV.js → NAS6G5R4.js} +2 -2
- package/dist/cdn/{VVIFADGZ.js → NCHP6POG.js} +2 -2
- package/dist/cdn/{BZLWTWT5.js → NE2GXZII.js} +2 -2
- package/dist/cdn/{5I57TYSZ.js → NGJFTHMT.js} +2 -2
- package/dist/cdn/{L5HV54ES.js → NIGAFVTS.js} +2 -2
- package/dist/cdn/{ZLYWIOFV.js → NIISXSEZ.js} +2 -2
- package/dist/cdn/{36XBJUA2.js → NIRW5ECV.js} +2 -2
- package/dist/cdn/{WU43DFQZ.js → NKG3ZWOD.js} +2 -2
- package/dist/cdn/{ONFIYODB.js → NQDWVVEO.js} +2 -2
- package/dist/cdn/{LGV6TXR7.js → NS4TN5CJ.js} +2 -2
- package/dist/cdn/{AW3AAMJG.js → NWWDEDDP.js} +2 -2
- package/dist/cdn/{WHK6USHK.js → O2KO2LVK.js} +2 -2
- package/dist/cdn/{LVYHTQCC.js → O3YNWCSZ.js} +2 -2
- package/dist/cdn/{XNVW5O6U.js → OJ5BZLYO.js} +2 -2
- package/dist/cdn/{JB346F6C.js → OKT4O7MO.js} +2 -2
- package/dist/cdn/{XWF656ZR.js → P25IEZ6P.js} +2 -2
- package/dist/cdn/{WBSAYXKU.js → P2JE3AOK.js} +2 -2
- package/dist/cdn/{32DQAMFV.js → P57E5ZZC.js} +2 -2
- package/dist/cdn/{AEYCK3DU.js → PA2SUTC3.js} +2 -2
- package/dist/cdn/{FYYCPKMB.js → PCYLIUNF.js} +2 -2
- package/dist/cdn/{Z7L3SITF.js → PD6YZTOT.js} +2 -2
- package/dist/cdn/{YZF3JCFA.js → PFBS5S3N.js} +2 -2
- package/dist/cdn/{XA3CS3CY.js → PHLOZEAM.js} +2 -2
- package/dist/cdn/{V5QAI5MW.js → PND73GEN.js} +2 -2
- package/dist/cdn/{FMPHF6BA.js → PPI7QE57.js} +2 -2
- package/dist/cdn/{RXSXOPZL.js → PRGEZ5TN.js} +2 -2
- package/dist/cdn/{46FH4NDN.js → Q46KRYO2.js} +2 -2
- package/dist/cdn/{A35UNAEU.js → Q7OOE2OP.js} +2 -2
- package/dist/cdn/{FAT4WINT.js → QANNPKCC.js} +2 -2
- package/dist/cdn/{YX2UPMOA.js → QBTVE6WF.js} +2 -2
- package/dist/cdn/{HLOZ4WUN.js → QHGYRHZZ.js} +2 -2
- package/dist/cdn/{KNZQJL2X.js → QHPCIFDH.js} +2 -2
- package/dist/cdn/{62VHY5ZF.js → QPE56KD6.js} +2 -2
- package/dist/cdn/{PWKN675Z.js → QSZ2CGPJ.js} +2 -2
- package/dist/cdn/{66PCNHTE.js → QVSDTPUG.js} +2 -2
- package/dist/cdn/{O4VZZXI5.js → QWB7XXRJ.js} +2 -2
- package/dist/cdn/{R6PLOQJA.js → R2ULFD7Q.js} +2 -2
- package/dist/cdn/{ENC3XE2A.js → R4UZXNWE.js} +2 -2
- package/dist/cdn/{OLIXYYBG.js → R5Q5FIU7.js} +2 -2
- package/dist/cdn/{SIGSGHOC.js → RD5CKVJB.js} +2 -2
- package/dist/cdn/{XFM6MDSU.js → RNF7RZCH.js} +1 -1
- package/dist/cdn/{TJ5UOAG6.js → ROAEWSXR.js} +2 -2
- package/dist/cdn/{4AFS62LN.js → RQ6I2QTT.js} +2 -2
- package/dist/cdn/{WQQETGDG.js → RRNA7N4F.js} +2 -2
- package/dist/cdn/{U7LGK2IF.js → RTZ5GL6U.js} +2 -2
- package/dist/cdn/{SFGVEAG5.js → RYHCN6MW.js} +2 -2
- package/dist/cdn/{ZL3CFXPE.js → S4JTYGI3.js} +2 -2
- package/dist/cdn/{TRSNVRRO.js → S62X7SCB.js} +2 -2
- package/dist/cdn/{LOJRYTR6.js → S7MFLXUY.js} +1 -1
- package/dist/cdn/{CD2FOLXT.js → SHRXLKWY.js} +2 -2
- package/dist/cdn/SI54OWMI.js +4 -0
- package/dist/cdn/{EEW2UJZI.js → SNIAHV4A.js} +2 -2
- package/dist/cdn/{22WDUX3W.js → SOR6TD5Y.js} +2 -2
- package/dist/cdn/{AS3FLLSD.js → SPXFEVXH.js} +2 -2
- package/dist/cdn/{YUARD5BT.js → T3P7G37P.js} +2 -2
- package/dist/cdn/{VEMMPY62.js → T42WGY33.js} +2 -2
- package/dist/cdn/{E5O3H62V.js → TGJCY7HA.js} +2 -2
- package/dist/cdn/{4JSHHLOE.js → TITDMQW4.js} +1 -1
- package/dist/cdn/{GB6D2FKV.js → TSHTWAP2.js} +2 -2
- package/dist/cdn/{S4IVGAM2.js → TTI3G5LG.js} +2 -2
- package/dist/cdn/{JLYJPRZG.js → U4VRPMSN.js} +2 -2
- package/dist/cdn/{KIDXJTXF.js → U7AUP646.js} +2 -2
- package/dist/cdn/{V3QLTXRL.js → UBIVNOPC.js} +2 -2
- package/dist/cdn/{EJLLJBIR.js → UBYQQDZJ.js} +2 -2
- package/dist/cdn/{U7BBKL6I.js → UHLZSQLZ.js} +2 -2
- package/dist/cdn/{BC64D6UR.js → UHVYHEDA.js} +2 -2
- package/dist/cdn/{RKHY4ZL6.js → UI2QJQEU.js} +2 -2
- package/dist/cdn/{U73W7GBZ.js → UIP4PIBV.js} +2 -2
- package/dist/cdn/{73I4KCYA.js → UKFUJHMZ.js} +2 -2
- package/dist/cdn/{T76AR4P3.js → UVZUYN2E.js} +2 -2
- package/dist/cdn/{KCTTMVL3.js → V2Y3Y6O2.js} +2 -2
- package/dist/cdn/{WZBCIEHC.js → V2Y5PFC5.js} +2 -2
- package/dist/cdn/{DDZ4YMO6.js → V3NV722A.js} +2 -2
- package/dist/cdn/{UL5XEZHM.js → VFKDS634.js} +2 -2
- package/dist/cdn/{X6TJRQF5.js → VGSEL7GU.js} +2 -2
- package/dist/cdn/{OQGSGQSS.js → VGZK74VR.js} +2 -2
- package/dist/cdn/{QZSIZGLE.js → VK5R445V.js} +2 -2
- package/dist/cdn/{YJVHFXGR.js → VOFQAO7R.js} +2 -2
- package/dist/cdn/{T622UXKG.js → VQ673EI7.js} +2 -2
- package/dist/cdn/{3EVY4IDD.js → VUXTY7NJ.js} +2 -2
- package/dist/cdn/{KE5O3AR5.js → VWPY4XAO.js} +2 -2
- package/dist/cdn/{5MONK2IS.js → VXVCOJ42.js} +2 -2
- package/dist/cdn/{HI5NRFED.js → VYBAYZAI.js} +2 -2
- package/dist/cdn/{N2O2KZTC.js → W4DH3PT2.js} +2 -2
- package/dist/cdn/{I63F3DFQ.js → WADVBELC.js} +2 -2
- package/dist/cdn/{VF5HJEDW.js → WC3FPN3K.js} +2 -2
- package/dist/cdn/{ZHGMLGPQ.js → WJKBVDYI.js} +2 -2
- package/dist/cdn/{753EXQIE.js → WOYKKJJD.js} +1 -1
- package/dist/cdn/{BBTQPMGE.js → WWL4XCIP.js} +2 -2
- package/dist/cdn/{CBZOZA67.js → XCVNEISF.js} +2 -2
- package/dist/cdn/{PHWB4MGO.js → XDBT563Q.js} +2 -2
- package/dist/cdn/{RBB5AGFG.js → XE72MKKY.js} +2 -2
- package/dist/cdn/{7L3LF4YU.js → XIO5PA6R.js} +2 -2
- package/dist/cdn/{UG4ESI3I.js → XLV2VHAG.js} +2 -2
- package/dist/cdn/{E6HYICAT.js → XMLTDQJJ.js} +2 -2
- package/dist/cdn/{NOTCFE2R.js → XT6SI4BB.js} +3 -3
- package/dist/cdn/{TSDSGGX5.js → XXTSQL6N.js} +2 -2
- package/dist/cdn/{36MANN77.js → YEBBYCG5.js} +1 -1
- package/dist/cdn/{BJIKHRU3.js → YKUSVR5R.js} +2 -2
- package/dist/cdn/{XNR5NGRK.js → YQHKRAAN.js} +2 -2
- package/dist/cdn/{5LLFISED.js → YSMTULRK.js} +2 -2
- package/dist/cdn/YSQQSXGX.js +4 -0
- package/dist/cdn/{FEATJUF3.js → YVLXLFP4.js} +2 -2
- package/dist/cdn/{6EGLSCNW.js → YXQYBNVH.js} +2 -2
- package/dist/cdn/{6OMBM4MS.js → ZB45BS6W.js} +1 -1
- package/dist/cdn/{P5QJPHQH.js → ZDPHWKQT.js} +2 -2
- package/dist/cdn/{3QP7HPLQ.js → ZEC5OC3T.js} +2 -2
- package/dist/cdn/{4RTP2XD6.js → ZHPLTJ7A.js} +2 -2
- package/dist/cdn/{3OAAHTQW.js → ZIDCSQIW.js} +2 -2
- package/dist/cdn/{HLDTZY72.js → ZIKT54VW.js} +2 -2
- package/dist/cdn/{7II5QNNN.js → ZIYEJIYS.js} +2 -2
- package/dist/cdn/{FN63WJ7Z.js → ZN7IEK7U.js} +2 -2
- package/dist/cdn/{A3Q5S256.js → ZS4DA3JL.js} +2 -2
- package/dist/cdn/{EPPGQRTR.js → ZZK2N357.js} +2 -2
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/AnalysisViewModel.js +1 -1
- package/dist/chunks/action-utils.js +1 -1
- package/dist/chunks/async-utils.js +1 -1
- package/dist/chunks/basemap-gallery-resources.js +1 -1
- package/dist/chunks/building-layer-utils.js +1 -1
- package/dist/chunks/chart-utils.js +1 -1
- package/dist/chunks/chartCommon.js +1 -1
- package/dist/chunks/component-utils.js +1 -1
- package/dist/chunks/component-wrapper.js +1 -1
- package/dist/chunks/constants.js +1 -1
- package/dist/chunks/esri-main.js +1 -1
- package/dist/chunks/feature-utils.js +1 -1
- package/dist/chunks/globalCss.js +1 -1
- package/dist/chunks/goTo.js +1 -1
- package/dist/chunks/handle.js +1 -1
- package/dist/chunks/heading.js +1 -1
- package/dist/chunks/layer-list.js +1 -1
- package/dist/chunks/legacyIcon.js +1 -1
- package/dist/chunks/maybe.js +1 -1
- package/dist/chunks/measurementUtils.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/screenLocation.js +1 -1
- package/dist/chunks/slots.js +1 -1
- package/dist/chunks/svgUtils.js +1 -1
- package/dist/chunks/time-utils.js +1 -1
- package/dist/chunks/univariateUtils.js +1 -1
- package/dist/chunks/useArcgisViewReadyError.js +1 -1
- package/dist/chunks/useCloseEvent.js +1 -1
- package/dist/chunks/useHandles.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/useView.js +1 -1
- package/dist/chunks/useViewModel.js +1 -1
- package/dist/chunks/useWidget.js +1 -1
- package/dist/chunks/utils.js +1 -1
- package/dist/chunks/utils2.js +1 -1
- package/dist/chunks/visible-element.js +1 -1
- package/dist/components/arcgis-area-measurement-2d/customElement.js +1 -1
- package/dist/components/arcgis-area-measurement-3d/customElement.js +1 -1
- package/dist/components/arcgis-attachments/customElement.js +1 -1
- package/dist/components/arcgis-basemap-gallery/customElement.js +1 -1
- package/dist/components/arcgis-basemap-gallery-item/customElement.js +1 -1
- package/dist/components/arcgis-basemap-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-basemap-toggle/customElement.js +1 -1
- package/dist/components/arcgis-bookmarks/customElement.js +1 -1
- package/dist/components/arcgis-building-discipline-tree/customElement.js +1 -1
- package/dist/components/arcgis-building-explorer/customElement.js +1 -1
- package/dist/components/arcgis-building-level-item/customElement.js +1 -1
- 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-color-select/customElement.js +1 -1
- package/dist/components/arcgis-compass/customElement.js +1 -1
- package/dist/components/arcgis-coordinate-conversion/customElement.js +1 -1
- package/dist/components/arcgis-daylight/customElement.js +1 -1
- package/dist/components/arcgis-direct-line-measurement-3d/customElement.js +1 -1
- package/dist/components/arcgis-directional-pad/customElement.js +1 -1
- package/dist/components/arcgis-directions/customElement.js +1 -1
- package/dist/components/arcgis-distance-measurement-2d/customElement.js +1 -1
- package/dist/components/arcgis-editor/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-legend/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-legend-item/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-settings/customElement.js +1 -1
- package/dist/components/arcgis-elevation-profile-statistics/customElement.js +1 -1
- package/dist/components/arcgis-expand/customElement.js +1 -1
- package/dist/components/arcgis-feature/customElement.js +1 -1
- package/dist/components/arcgis-feature-attachments/customElement.js +1 -1
- package/dist/components/arcgis-feature-content/customElement.js +1 -1
- package/dist/components/arcgis-feature-element-info/customElement.js +1 -1
- package/dist/components/arcgis-feature-expression/customElement.js +1 -1
- package/dist/components/arcgis-feature-fields/customElement.js +1 -1
- package/dist/components/arcgis-feature-form/customElement.js +1 -1
- package/dist/components/arcgis-feature-media/customElement.js +1 -1
- package/dist/components/arcgis-feature-relationship/customElement.js +1 -1
- package/dist/components/arcgis-feature-table/customElement.js +1 -1
- package/dist/components/arcgis-feature-templates/customElement.js +1 -1
- package/dist/components/arcgis-feature-utility-network-association-list/customElement.js +1 -1
- package/dist/components/arcgis-feature-utility-network-associations/customElement.js +1 -1
- package/dist/components/arcgis-features/customElement.js +1 -1
- package/dist/components/arcgis-floor-filter/customElement.js +1 -1
- package/dist/components/arcgis-fullscreen/customElement.js +1 -1
- package/dist/components/arcgis-grid-controls/customElement.js +1 -1
- package/dist/components/arcgis-histogram-range-slider/customElement.js +1 -1
- package/dist/components/arcgis-home/customElement.js +1 -1
- package/dist/components/arcgis-labeled-switch/customElement.js +1 -1
- package/dist/components/arcgis-layer-list/customElement.js +1 -1
- package/dist/components/arcgis-layer-list-item/customElement.js +1 -1
- package/dist/components/arcgis-legend/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-color-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-element/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-size-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-univariate-above-and-below-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-univariate-color-size-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-card-view/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-color-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-element/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-size-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-univariate-above-and-below-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-univariate-color-size-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-classic-view/customElement.js +1 -1
- package/dist/components/arcgis-legend-relationship-ramp/customElement.js +1 -1
- package/dist/components/arcgis-legend-spike-ramp/customElement.js +1 -1
- package/dist/components/arcgis-line-of-sight/customElement.js +1 -1
- package/dist/components/arcgis-link-chart/customElement.js +1 -1
- package/dist/components/arcgis-link-chart-layout-switcher/customElement.js +1 -1
- package/dist/components/arcgis-link-chart-nonspatial-visibility-toggle/customElement.js +1 -1
- package/dist/components/arcgis-locate/customElement.js +1 -1
- package/dist/components/arcgis-map/customElement.js +1 -1
- package/dist/components/arcgis-measurement/customElement.js +1 -1
- package/dist/components/arcgis-measurement-content/customElement.js +1 -1
- package/dist/components/arcgis-navigation-toggle/customElement.js +1 -1
- package/dist/components/arcgis-oriented-imagery-viewer/customElement.js +1 -1
- package/dist/components/arcgis-popup/customElement.js +1 -1
- package/dist/components/arcgis-presentation/customElement.js +1 -1
- package/dist/components/arcgis-print/customElement.js +1 -1
- package/dist/components/arcgis-print-custom-text-elements/customElement.js +1 -1
- package/dist/components/arcgis-print-dpi-input/customElement.js +1 -1
- package/dist/components/arcgis-print-export-button/customElement.js +1 -1
- package/dist/components/arcgis-print-exports-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-format-select/customElement.js +1 -1
- package/dist/components/arcgis-print-layout-advanced-options/customElement.js +1 -1
- package/dist/components/arcgis-print-layout-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-main-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-map-only-advanced-options/customElement.js +1 -1
- package/dist/components/arcgis-print-map-only-panel/customElement.js +1 -1
- package/dist/components/arcgis-print-out-spatial-reference-input/customElement.js +1 -1
- package/dist/components/arcgis-print-preview-input/customElement.js +1 -1
- package/dist/components/arcgis-print-scale-section/customElement.js +1 -1
- package/dist/components/arcgis-print-template-select/customElement.js +1 -1
- package/dist/components/arcgis-print-template-selector/customElement.js +1 -1
- package/dist/components/arcgis-scale-bar/customElement.js +1 -1
- package/dist/components/arcgis-scale-range-slider/customElement.js +1 -1
- package/dist/components/arcgis-scene/customElement.js +1 -1
- package/dist/components/arcgis-search/customElement.js +1 -1
- package/dist/components/arcgis-search-result-renderer/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast-discrete-config/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast-min-duration-config/customElement.js +1 -1
- package/dist/components/arcgis-shadow-cast-total-duration-config/customElement.js +1 -1
- package/dist/components/arcgis-sketch/customElement.js +1 -1
- package/dist/components/arcgis-slice/customElement.js +1 -1
- package/dist/components/arcgis-slider-binary-color-size-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-classed-color-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-classed-size-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-color-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-color-size-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-heatmap-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-opacity-legacy/customElement.js +1 -1
- package/dist/components/arcgis-slider-size-legacy/customElement.js +1 -1
- package/dist/components/arcgis-spinner/customElement.js +1 -1
- package/dist/components/arcgis-swipe/customElement.js +1 -1
- package/dist/components/arcgis-table-list/customElement.js +1 -1
- package/dist/components/arcgis-time-of-day-slider/customElement.js +1 -1
- package/dist/components/arcgis-time-slider/customElement.js +1 -1
- package/dist/components/arcgis-time-zone-label/customElement.js +1 -1
- package/dist/components/arcgis-track/customElement.js +1 -1
- package/dist/components/arcgis-unit-select/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-association-list/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-associations/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-subnetwork-info/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-analysis/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-inputs/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-location/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-location-list/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-trace-results/customElement.js +1 -1
- package/dist/components/arcgis-utility-network-validate-topology/customElement.js +1 -1
- package/dist/components/arcgis-value-picker/customElement.js +1 -1
- package/dist/components/arcgis-version-management/customElement.js +1 -1
- package/dist/components/arcgis-version-management-service-item/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-list/customElement.js +1 -1
- package/dist/components/arcgis-version-management-version-properties/customElement.js +1 -1
- package/dist/components/arcgis-video/customElement.js +1 -1
- package/dist/components/arcgis-video-player/customElement.js +1 -1
- package/dist/components/arcgis-video-player-action-bar/customElement.js +1 -1
- package/dist/components/arcgis-video-player-actions-group/customElement.js +1 -1
- package/dist/components/arcgis-video-player-controls-group/customElement.js +1 -1
- package/dist/components/arcgis-video-player-metadata/customElement.js +1 -1
- package/dist/components/arcgis-video-player-settings/customElement.js +1 -1
- package/dist/components/arcgis-video-player-slider/customElement.js +1 -1
- package/dist/components/arcgis-volume-measurement/customElement.js +1 -1
- package/dist/components/arcgis-weather/customElement.js +1 -1
- package/dist/components/arcgis-webgl-error/customElement.js +1 -1
- package/dist/components/arcgis-zoom/customElement.js +1 -1
- package/dist/docs/api.json +2 -2
- package/dist/docs/docs.json +2 -2
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/package.json +4 -4
- package/dist/cdn/4ERNKJFL.js +0 -4
- package/dist/cdn/HM6PX3ZM.js +0 -4
- package/dist/cdn/RYMROF2G.js +0 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import{a as j}from"./TZQ2HDFN.js";import{a as q}from"./EFIZ6BHY.js";import{a as R}from"./FEKEXQHA.js";import"./QKEGC4BD.js";import c from"./ZLDCBYTA.js";import{a as V}from"./EGDYBFIB.js";import"./YLA6MOSY.js";import b from"./4RSJEFSZ.js";import a from"./66PCNHTE.js";import{g as N}from"./TJ5UOAG6.js";import"./ULMC4P77.js";import"./DG6CZVHG.js";import{b as L}from"./753EXQIE.js";import{B as O,M as v,N as M,O as l,Q as y,T as z,a as A,b as n,x as E}from"./6OMBM4MS.js";import"./ZT4AMEU2.js";export default $arcgis.t(([{watch:S},{isHTTPSProtocol:x,isDataProtocol:C},{formatDate:H,convertDateFormatToIntlOptions:Z},W,,X,T,{EventedAccessor:Y},{property:m,cast:ee,subclass:J},te,K,ie,,,P])=>{var oe=Object.defineProperty,re=Object.getOwnPropertyDescriptor,w=(r,e,t,i)=>{for(var o=i>1?void 0:i?re(e,t):e,a=r.length-1,s;a>=0;a--)(s=r[a])&&(o=(i?s(e,t,o):s(o))||o);return i&&o&&oe(e,t,o),o},Q=X.ofType(K),ae={width:128,height:128,format:"png"},I={takeScreenshot:!0,captureViewpoint:!0,captureRotation:!0,captureScale:!0,captureTimeExtent:!0},G={time:!0},p=class extends Y{constructor(r){super(r),this._defaultBookmarks=new Q,this.capabilities={...G}}destroy(){this._set("activeBookmark",null)}castCapabilities(r){return{...G,...r}}get bookmarks(){return this.view?.map?.bookmarks??this._defaultBookmarks}set bookmarks(r){this._set("bookmarks",r??this._defaultBookmarks)}set defaultCreateOptions(r){this._set("defaultCreateOptions",{...I,...r})}get defaultCreateOptions(){return I}set defaultEditOptions(r){this._set("defaultEditOptions",{...I,...r})}get defaultEditOptions(){return I}get state(){let{view:r}=this;return r&&!r.ready?"loading":"ready"}async createBookmark(r){let{view:e,defaultCreateOptions:t,capabilities:i}=this;if(!e)throw new T("create-bookmark:invalid-view","Cannot create a bookmark without a view.");let{takeScreenshot:o,screenshotSettings:a,captureViewpoint:s,captureRotation:d,captureScale:g,captureTimeExtent:b}={...t,...r},h=o?await this._createThumbnail(a):void 0,$=i.time&&b&&e.timeExtent!=null?e.timeExtent.clone():void 0;return new K({...h&&{thumbnail:h},...b&&{timeExtent:$},...s&&{viewpoint:this._createViewpoint({view:e,captureScale:g,captureRotation:d})}})}async editBookmark(r,e){if(!r)return r;let{view:t,defaultEditOptions:i}=this;if(!t)throw new T("edit-bookmark:invalid-view","Cannot edit a bookmark without a view.");let{takeScreenshot:o,screenshotSettings:a,captureViewpoint:s,captureRotation:d,captureScale:g,captureTimeExtent:b}={...i,...e},h=o?await this._createThumbnail(a):void 0;return h&&(r.thumbnail=h),s&&(r.viewpoint=this._createViewpoint({view:t,captureScale:g,captureRotation:d})),b&&t.timeExtent!=null&&(r.timeExtent=t.timeExtent.clone()),this.emit("bookmark-edit",{bookmark:r}),r}goTo(r){let{capabilities:e,view:t}=this;if(!t)throw new T("go-to:invalid-view","Cannot go to a bookmark without a view");let i=r?.viewpoint;if(!i)throw new T("go-to:invalid-bookmark","Cannot go to a bookmark that does not contain a 'viewpoint'.",{bookmark:r});this._set("activeBookmark",r);let o=j({target:i},t,this.goToOverride),a=r?.timeExtent;return e.time&&a&&(t.timeExtent=a),this.emit("bookmark-select",{bookmark:r}),o.catch().then(()=>this._set("activeBookmark",null)),o}async _createThumbnail(r){let{view:e}=this;if(!e)throw new T("bookmark:invalid-view","Cannot create slide thumbnail without a view");let t=await e.takeScreenshot({...ae,...r});return new te({url:t.dataUrl})}_createViewpoint({view:r,captureRotation:e,captureScale:t}){let i=r.viewpoint?.clone();return new W({targetGeometry:r.extent?.clone(),rotation:(e?i?.rotation:null)??0,scale:(t?i?.scale:null)??0})}};w([m()],p.prototype,"goToOverride",2);w([m()],p.prototype,"capabilities",2);w([ee("capabilities")],p.prototype,"castCapabilities",1);w([m({readOnly:!0})],p.prototype,"activeBookmark",2);w([m({type:Q})],p.prototype,"bookmarks",1);w([m()],p.prototype,"defaultCreateOptions",1);w([m()],p.prototype,"defaultEditOptions",1);w([m({readOnly:!0})],p.prototype,"state",1);w([m()],p.prototype,"view",2);p=w([J("esri.widgets.Bookmarks.BookmarksViewModel")],p);var ne=A`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{display:flex}.arcgis-bookmarks{width:100%;overflow:hidden auto;transition:max-height .25s ease-in-out}:host([closed]) .arcgis-bookmarks{display:none}.arcgis-bookmarks__empty{display:flex;flex-flow:column wrap;align-items:center;padding:var(--calcite-spacing-md) var(--calcite-spacing-lg);text-align:center;color:var(--calcite-color-text-1)}.arcgis-bookmarks .arcgis-widget__content--empty{background-color:var(--calcite-color-foreground-2)}.arcgis-bookmarks calcite-flow-item[loading]{min-height:150px}.arcgis-bookmarks__loader{margin-inline-end:0}.arcgis-bookmarks__filter-no-results{padding:var(--calcite-spacing-md) var(--calcite-spacing-lg)}.arcgis-bookmarks__bookmark-image-container{display:flex;position:relative;margin:0;margin-inline-start:var(--calcite-spacing-xs);min-width:16px;min-height:16px}.arcgis-bookmarks__bookmark-image-container .arcgis-bookmarks__image{max-width:64px;overflow:hidden}.arcgis-bookmarks--drag-enabled .arcgis-bookmarks__bookmark-image-container{margin-inline-start:0}.arcgis-bookmarks__no-bookmarks-heading{margin:0;margin-block-start:var(--calcite-spacing-md);font-size:var(--calcite-font-size-md);line-height:var(--calcite-font-line-height-relative-tight);font-weight:var(--calcite-font-weight-regular)}.arcgis-bookmarks__authoring{display:flex;flex-direction:column}.arcgis-bookmarks__authoring-image-container{display:flex;align-items:middle;justify-content:center;margin-block-end:var(--calcite-spacing-md);margin-inline-end:var(--calcite-spacing-lg);background-image:repeating-conic-gradient(#ccc 0% 25%,#fff 0% 50%);background-position:0 0,10px 10px;background-size:20px 20px;background-color:#fff;width:128px;height:128px;text-align:center}.arcgis-bookmarks__authoring-image-container .arcgis-bookmarks__image{max-width:128px;max-height:128px}.arcgis-bookmarks__form{display:flex;height:100%}.arcgis-bookmarks__form-content{padding-block:var(--calcite-spacing-md);padding-inline:var(--calcite-spacing-lg)}.arcgis-bookmarks__authoring-refresh-thumbnail-button{margin-block-end:var(--calcite-spacing-md)}.arcgis-bookmarks__bookmark-content-label{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-sm);line-height:var(--calcite-font-line-height-relative-normal)}.arcgis-bookmarks__bookmark-content calcite-table{margin-inline-start:-.25rem}.arcgis-bookmarks__bookmark-content calcite-table,.arcgis-bookmarks__bookmark-content calcite-table-row{--calcite-table-border-color: transparent;--calcite-color-text-1: var(--calcite-color-text-3);--calcite-table-row-background-color: transparent;pointer-events:none}`,u="arcgis-bookmarks",F=`${u}__authoring`,D=`${u}__bookmark`,c={base:u,empty:`${u}__empty`,noBookmarksHeader:`${u}__no-bookmarks-heading`,noBookmarksDescription:`${u}__no-bookmarks-description`,form:`${u}__form`,list:`${u}__list`,loader:`${u}__loader`,filterNoResults:`${u}__filter-no-results`,formContent:`${u}__form-content`,addBookmarkButton:`${u}__add-bookmark-button`,editBookmarkInput:`${u}__edit-bookmark-input`,addBookmarkInput:`${u}__add-bookmark-input`,dragEnabled:`${u}--drag-enabled`,bookmarkImage:`${u}__image`,bookmarkImageContainer:`${D}-image-container`,bookmarkContent:`${D}-content`,bookmarkContentLabel:`${D}-content-label`,authoring:F,authoringImageContainer:`${F}-image-container`,authoringRefreshThumbnailButton:`${F}-refresh-thumbnail-button`},se=Object.defineProperty,le=Object.getOwnPropertyDescriptor,_=(r,e,t,i)=>{for(var o=i>1?void 0:i?le(e,t):e,a=r.length-1,s;a>=0;a--)(s=r[a])&&(o=(i?s(e,t,o):s(o))||o);return i&&o&&se(e,t,o),o},k=class extends ie{constructor(r){super(r)}get editedBookmark(){let{bookmark:r}=this;return r?this._get("editedBookmark")||r.clone():null}get customUrl(){if(this._customUrl)return this._customUrl;let r=this.editedBookmark?.thumbnail?.url??"";return r??(x(r)?r:null)}set customUrl(r){this._customUrl=r}get screenshotUrl(){if(this._screenshotUrl)return this._screenshotUrl;let r=this.editedBookmark?.thumbnail?.url??"";return r??(C(r)?r:null)}set screenshotUrl(r){this._screenshotUrl=r}get state(){return this._get("state")}set state(r){this.validationState=void 0,this.creatingBookmark=void 0,this._set("state",r)}get thumbnailState(){if(this._thumbnailState)return this._thumbnailState;let r=this.editedBookmark?.thumbnail?.url;return r?x(r)?"url":"screenshot":"none"}set thumbnailState(r){this._thumbnailState=r}};_([m()],k.prototype,"bookmark",2);_([m({readOnly:!0})],k.prototype,"editedBookmark",1);_([m()],k.prototype,"_customUrl",2);_([m()],k.prototype,"customUrl",1);_([m()],k.prototype,"_screenshotUrl",2);_([m()],k.prototype,"screenshotUrl",1);_([m()],k.prototype,"state",1);_([m()],k.prototype,"_thumbnailState",2);_([m()],k.prototype,"thumbnailState",1);_([m()],k.prototype,"validationState",2);_([m()],k.prototype,"creatingBookmark",2);k=_([J("UserState")],k);var ce=P(p),U=class extends M{constructor(){super(...arguments),this._guid=O(),this._addInputNode=null,this._editInputNode=null,this._urlEditInputNode=null,this._lastDragDetail=null,this.messages=V({}),this.viewModel=ce(this),this._storeEditFlowItemNode=e=>{this._editFlowItemEl=e},this._storeRootFlowItem=e=>{this._rootFlowItemEl=e},this._storeAddFlowItemNode=e=>{this._addFlowItemEl=e},this._userState=null,this._userCreatingBookmark=!1,this.editIncludeTimeExtent=!1,this.view=this.viewModel.view,this.icon="bookmark",this.closed=!1,this.defaultCreateOptions=this.viewModel.defaultCreateOptions,this.defaultEditOptions=this.viewModel.defaultEditOptions,this.bookmarks=this.viewModel.bookmarks,this.disabled=!1,this.dragEnabled=!1,this.filterPlaceholder="",this.filterText="",this.headingLevel=2,this.goToOverride=this.viewModel.goToOverride,this.showAddBookmarkButton=!1,this.showCloseButton=!1,this.showCollapseButton=!1,this.showEditBookmarkButton=!1,this.showFilter=!1,this.hideFlow=!1,this.showHeading=!1,this.hideThumbnail=!1,this.hideTime=!1,this.timeDisabled=this.viewModel.capabilities.time,this.autoDestroyDisabled=!1,this.state=this.viewModel.state,this.arcgisBookmarkEdit=E(),this.arcgisBookmarkSelect=E(),this.arcgisPropertyChange=N()("state"),this.arcgisReady=E(),this.arcgisClose=E()}static{this.properties={_userState:16,_userStateValue:16,_userValidationState:16,_userThumbnailState:16,_userCreatingBookmark:16,editIncludeTimeExtent:16,view:0,referenceElement:1,icon:0,closed:7,defaultCreateOptions:0,defaultEditOptions:0,bookmarks:0,disabled:5,dragEnabled:5,filterPlaceholder:1,filterText:1,headingLevel:9,goToOverride:0,showAddBookmarkButton:5,showCloseButton:5,showCollapseButton:5,showEditBookmarkButton:5,showFilter:5,hideFlow:5,showHeading:5,hideThumbnail:5,hideTime:5,timeDisabled:5,autoDestroyDisabled:5,messageOverrides:0,label:1,state:32}}static{this.styles=ne}async destroy(){await this.manager.destroy()}goTo(e){return this.viewModel.goTo(e)}loaded(){this.manager.onLifecycle(()=>[this.viewModel.on("bookmark-select",this.arcgisBookmarkSelect.emit),this.viewModel.on("bookmark-edit",this.arcgisBookmarkEdit.emit),S(()=>this._userState?.state,e=>this._userStateValue=e,{initial:!0}),S(()=>this._userState?.validationState,e=>this._userValidationState=e,{initial:!0}),S(()=>this._userState?.thumbnailState,e=>this._userThumbnailState=e,{initial:!0}),S(()=>this._userState?.creatingBookmark,e=>this._userCreatingBookmark=!!e,{initial:!0})])}_handleClose(){this.closed=!0,this.arcgisClose.emit()}startAddBookmark(){this._userState=new k({state:"add"}),requestAnimationFrame(()=>{this._addFlowItemEl?.setFocus()})}_clearState(){this._userState=null}_getTimeExtentStrings(e){let{hideTime:t}=this,{timeExtent:i}=e;if(!i)return{};let{start:o,end:a}=i,s=a!=null&&(o==null||o.getTime()!==a.getTime()),d=o?this._formatDate(o):"",g=o&&!t?this._formatTime(o):"";if(!s)return{startDate:d,startTime:g};let b=this._formatDate(a),h=t?"":this._formatTime(a);return{startDate:d,startTime:g,endDate:b,endTime:h}}_handleUrlEditInputChange(){let{_userState:e,_urlEditInputNode:t}=this,i=t?.value;if(!e?.editedBookmark||!i)return;e.validationState=void 0,C(e.editedBookmark.thumbnail?.url??"")&&(e.screenshotUrl=e.editedBookmark.thumbnail?.url);let o={url:i};x(o.url)&&(e.customUrl=i,e.editedBookmark.thumbnail=o)}_getBookmarkTitle(e){return(e?.name||this.messages.untitled)??""}_formatDate(e){if(!e)return"";let t=this.viewModel.view,i=t&&"timeZone"in t?t.timeZone:"system";return H(e,{...Z("short-date"),timeZone:i})}_formatTime(e){if(!e)return"";let t=this.viewModel.view,i=t&&"timeZone"in t?t.timeZone:"system";return H(e,{...Z("long-time"),timeZone:i})}_onCalciteListOrderChange(e){let{_lastDragDetail:t,bookmarks:i}=this,{toEl:o,fromEl:a,dragEl:s,newIndex:d}=e;if(!i.length)return;let g=t?.newIndex===d&&t?.dragEl===s&&t?.toEl===o&&t?.fromEl===a;if(!a||!o||g)return;this._lastDragDetail=e;let b=Array.from(a.children).filter(h=>h?.matches("calcite-list-item")).map(h=>h.value);i.sort((h,$)=>{let B=b.indexOf(h.uid),f=b.indexOf($.uid);return B>f?1:B<f?-1:0})}_endAddBookmark(){this._clearState(),this._focusRootFlowItem()}_showEditBookmarkForm(e){e&&(this.editIncludeTimeExtent=!!e.timeExtent,this._userState=new k({bookmark:e,state:"edit"}),requestAnimationFrame(()=>{this._editFlowItemEl?.setFocus()}),this.viewModel.goTo(e))}async _createNewScreenshotUrl(){return(await this.viewModel.createBookmark()).thumbnail?.url??null}_storeCurrentUrl(){let{_userState:e}=this,t=e?.editedBookmark?.thumbnail?.url;t&&(x(t)?e.customUrl=t:C(t)&&(e.screenshotUrl=t))}async _handleThumbnailTypeSelect(e){let{_userState:t}=this;if(!t)return;let{screenshotUrl:i,customUrl:o,editedBookmark:a}=t,s=e==="screenshot"?i??await this._createNewScreenshotUrl():e==="url"&&o?o:null;this._storeCurrentUrl(),a&&s&&(a.thumbnail={url:s}),t.validationState=void 0,t.thumbnailState=e}_focusRootFlowItem(){requestAnimationFrame(()=>{this._rootFlowItemEl?.setFocus()})}_closeEditBookmarkForm(){this._clearState(),this._focusRootFlowItem()}_addBookmarkSubmitClick(e){e.preventDefault(),this._addBookmarkSubmit()}async _addBookmarkSubmit(){let{_addInputNode:e,_userState:t,viewModel:i,viewModel:{bookmarks:o}}=this;if(!t)return;let a=e?e.value.trim():null;if(!a){t.validationState="name-required";return}t.creatingBookmark=!0;let s=await i.createBookmark();s.name=a,o.add(s),this._endAddBookmark()}async _editBookmarkAndClose(e,t){let{viewModel:i,viewModel:{defaultEditOptions:o}}=this;await i.editBookmark(e,{...o,...t}),this._closeEditBookmarkForm()}_editBookmarkSubmit(e){e.preventDefault();let{_userState:t,_editInputNode:i,editIncludeTimeExtent:o,_urlEditInputNode:a}=this;if(!t?.bookmark||!t.editedBookmark)return;t.validationState=void 0,t.customUrl=void 0,t.screenshotUrl=void 0;let s=i?.value.trim();if(!s){t.validationState="name-required";return}if(t.bookmark.name=s,t.bookmark.thumbnail=t.editedBookmark.thumbnail,o||(t.bookmark.timeExtent=null),t.thumbnailState==="url"&&a){let d={url:a.value};if(!x(d.url)){t.validationState="absolute-url-required";return}t.bookmark.thumbnail=d}else t.thumbnailState==="none"&&(t.bookmark.thumbnail=null);this._editBookmarkAndClose(t.bookmark,{takeScreenshot:!1,captureTimeExtent:o})}_storeEditInput(e){this._editInputNode=e}_storeAddInput(e){this._addInputNode=e}_storeUrlEditInput(e){this._urlEditInputNode=e}_deleteBookmark(e){this._closeEditBookmarkForm(),e&&(this.viewModel.bookmarks.remove(e),e.destroy())}_goToBookmark(e){this._clearState(),this.viewModel.goTo(e)}async _updateThumbnail(){let{_userState:e,viewModel:t}=this;e&&(e.validationState=void 0,await t.editBookmark(e.editedBookmark,{takeScreenshot:!0,captureViewpoint:!1,captureRotation:!1,captureScale:!1,captureTimeExtent:!1}))}_handleCalciteListDragEnd(e){let{fromEl:t,dragEl:i,oldIndex:o}=e;t.insertBefore(i,t.children[o])}render(){return n`<div class=${l(c.base)}>${this._renderBookmarksContainer()}</div>`}_renderNoBookmarksContainer(e){let{messages:t,viewModel:{state:i}}=this;return!e.length&&i!=="loading"?n`<div class=${l(c.empty)}><calcite-icon .icon=${this.icon} scale=l></calcite-icon>${R({class:c.noBookmarksHeader,level:this.headingLevel,children:t.noBookmarksHeading})}<p class=${l(c.noBookmarksDescription)}>${t.noBookmarksDescription}</p></div>`:null}_renderEditBookmarkFlowItems(){let e=this._userStateValue==="edit",t=this._userState?.editedBookmark;return!t||!e?[]:this._renderEditingBookmark(t)}_renderBookmarkItems(e){return e?e.toArray().map(t=>this._renderBookmark(t)):[]}_renderBookmarksContainer(){let{viewModel:{state:e,bookmarks:t},dragEnabled:i,messages:o,disabled:a,filterPlaceholder:s,filterText:d,closed:g,headingLevel:b}=this,h=t.filter(f=>f!=null),$=h.length?n`<calcite-list class=${l(c.list)} display-mode=flat .dragEnabled=${i} .filterEnabled=${this.showFilter} .filterPlaceholder=${s} .filterProps=${["label","description","metadata"]} .filterText=${d} .group=${`bookmarks-${this._guid}`} .label=${o.componentLabel??""} selection-appearance=border selection-mode=none @calciteListDragEnd=${f=>this._handleCalciteListDragEnd(f.detail)} @calciteListFilter=${f=>this.filterText=f.currentTarget?.filterText??""} @calciteListOrderChange=${f=>this._onCalciteListOrderChange(f.detail)}>${this._renderBookmarkItems(h)}${this.showFilter?n`<div class=${l(c.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full><div slot=message>${o.noBookmarksHeading}</div>;</calcite-notice></div>`:null}</calcite-list>`:null,B=[n`<calcite-flow-item .closable=${this.showCloseButton} .closed=${g} .collapsible=${this.showCollapseButton} .disabled=${a} .heading=${this.showHeading?o.componentLabel:void 0} .headingLevel=${b} .loading=${e==="loading"} .selected=${!this._userStateValue} @calciteFlowItemClose=${this._handleClose} ${v(this._storeRootFlowItem)}>${this._renderNoBookmarksContainer(h)}${$}${this._renderAddBookmarkButton()}</calcite-flow-item>`,this._renderAddingBookmark(),this._renderEditBookmarkFlowItems()];return g?null:this.hideFlow?B:n`<calcite-flow>${B}</calcite-flow>`}_renderAddBookmarkButton(){let{messages:e,disabled:t,viewModel:{view:i,state:o}}=this,a=this._userCreatingBookmark;return i&&o!=="loading"&&this.showAddBookmarkButton?n`<calcite-fab appearance=outline-fill class=${l(c.addBookmarkButton)} .disabled=${t||a} icon=plus kind=neutral .loading=${a} @click=${this.startAddBookmark} slot=fab .text=${e.addBookmark} text-enabled title=${e.addBookmark??y}></calcite-fab>`:null}_renderEditContainer(e){let{messages:t}=this,i=`${t.edit} ${this._getBookmarkTitle(e)}`;return this.showEditBookmarkButton?n`<calcite-action icon=pencil @click=${()=>this._showEditBookmarkForm(e)} slot=actions-end .text=${i} title=${i??y}></calcite-action>`:null}_renderBookmarkImage(e,t){return t?n`<img alt class=${l(c.bookmarkImage)} src=${e.thumbnail?.url??y}>`:null}_renderBookmarkTimeSwitch(e){let{messages:t,viewModel:{view:i}}=this,{timeExtent:o}=e;return i?.timeExtent??o?n`<calcite-label layout=inline-space-between>${t.includeTimeExtent}<calcite-switch .checked=${!!o} @calciteSwitchChange=${a=>{this.editIncludeTimeExtent=a.currentTarget.checked}}></calcite-switch></calcite-label>`:null}_renderEditBookmarkTimeExtent(e){return this.editIncludeTimeExtent?this._renderBookmarkTimeExtent(e):null}_renderTimeExtentDescription(e){let{startDate:t,startTime:i,endDate:o,endTime:a}=this._getTimeExtentStrings(e);if(!t)return"";let s=`${t} ${i}`,d=`${o} ${a}`;return o?`${s} - ${d}`:s}_renderBookmarkTimeExtent(e,t=!1){let{messages:i}=this,{startDate:o,startTime:a,endDate:s,endTime:d}=this._getTimeExtentStrings(e),g=t?null:n`<calcite-table-row slot=table-header><calcite-table-header .heading=${i.startDate}></calcite-table-header>${s?n`<calcite-table-header .heading=${i.endDate}></calcite-table-header>`:null}</calcite-table-row>`;return o?n`<calcite-table .caption=${i.timeExtent??""} scale=s>${g}<calcite-table-row><calcite-table-cell>${o} ${a?[n`<br>`,a]:null}</calcite-table-cell>${s?n`<calcite-table-cell>${s}${d?[n`<br>`,d]:null}</calcite-table-cell>`:null}</calcite-table-row></calcite-table>`:null}_renderBookmarkActiveScrim(e,t){return this.viewModel.activeBookmark===e&&t?n`<calcite-scrim loading></calcite-scrim>`:null}_renderBookmarkActiveLoader(e,t){return this.viewModel.activeBookmark===e&&!t?n`<calcite-loader class=${l(c.loader)} inline .label=${this.messages.loading??""}></calcite-loader>`:null}_renderBookmarkImageIcon(e,t){return this.viewModel.activeBookmark!==e&&!t?n`<calcite-icon icon=bookmark scale=s></calcite-icon>`:null}_renderBookmarkThumbnail(e){let t=!this.hideThumbnail&&!!e.thumbnail?.url;return n`<div class=${l(c.bookmarkImageContainer)} slot=content-start>${this._renderBookmarkActiveScrim(e,t)}${this._renderBookmarkImage(e,t)}${this._renderBookmarkActiveLoader(e,t)}${this._renderBookmarkImageIcon(e,t)}</div>`}_renderBookmark(e){return q(e.uid,n`<calcite-list-item class=${l(L({[c.dragEnabled]:this.dragEnabled}))} .description=${this._renderTimeExtentDescription(e)} .label=${this._getBookmarkTitle(e)} .value=${e.uid} @calciteListItemSelect=${()=>this._goToBookmark(e)}>${this._renderBookmarkThumbnail(e)}${this._renderBookmarkContent(e)}${this._renderEditContainer(e)}</calcite-list-item>`)}_renderBookmarkContent(e){return n`<div class=${l(c.bookmarkContent)} slot=content><span class=${l(c.bookmarkContentLabel)}>${this._getBookmarkTitle(e)}</span>${this._renderBookmarkTimeExtent(e,!0)}</div>`}_renderEditingBookmarkName(e){let{messages:t}=this,i=this._userValidationState==="name-required";return n`<calcite-label>${t.title}<calcite-input class=${l(c.editBookmarkInput)} name=bookmark-name .placeholder=${t.titlePlaceholder} required type=text .value=${e.name} ${v(this._storeEditInput)}></calcite-input>${i?n`<calcite-input-message icon=exclamation-mark-triangle status=invalid>${t.invalidTitle}</calcite-input-message>`:null}</calcite-label>`}_renderEditingBookmarkActions(){let{messages:e,_userState:t}=this,i=t?.bookmark;return[n`<calcite-button appearance=transparent kind=danger @click=${()=>this._deleteBookmark(i)} slot=footer type=button width=full>${e.delete}</calcite-button>`,n`<calcite-button appearance=outline @click=${this._closeEditBookmarkForm} slot=footer type=button width=full>${e.cancel}</calcite-button>`,n`<calcite-button slot=footer type=submit width=full>${e.save}</calcite-button>`]}_renderEditingTimeExtent(e){let{capabilities:t,view:i}=this.viewModel,{timeExtent:o}=e;return t.time&&(i?.timeExtent??o)?n`<div>${this._renderBookmarkTimeSwitch(e)}${this._renderEditBookmarkTimeExtent(e)}</div>`:null}_renderEditingBookmarkImage(e){let{_userThumbnailState:t}=this,i=e.thumbnail?.url??"",o=x(i)?t==="url":C(i)?t==="screenshot":null;if(o)return this._renderBookmarkImage(e,o)}_renderEditingThumbnail(e){let{_userThumbnailState:t,hideThumbnail:i}=this;return!i&&t!=="none"?n`<div class=${l(c.authoringImageContainer)}>${this._renderEditingBookmarkImage(e)}</div>`:null}_renderUpdateThumbnailButton(){let{hideThumbnail:e,messages:t,_userThumbnailState:i}=this;return!e&&i==="screenshot"?n`<calcite-button appearance=outline class=${l(c.authoringRefreshThumbnailButton)} icon-start=refresh kind=neutral @click=${()=>void this._updateThumbnail()} width=full>${t.updateThumbnail}</calcite-button>`:null}_renderEditingBookmarkUrlInput(e){let{messages:t,_userValidationState:i,_userThumbnailState:o}=this,a=e.thumbnail?.url??"",s=x(a)?a:void 0,d=a&&i==="absolute-url-required";return o==="url"?n`<calcite-label><calcite-input name=bookmark-thumbnail-url pattern=https://.* .placeholder=${t?`https://<${t.imageUrlPlaceholder}>`:void 0} required title=${t.imageUrlTooltip??y} type=text .value=${s} @calciteInputChange=${this._handleUrlEditInputChange} @calciteInputInput=${this._handleUrlEditInputChange} ${v(this._storeUrlEditInput)}></calcite-input>${d?n`<calcite-input-message icon=exclamation-mark-triangle status=invalid>${t.invalidImageUrl}</calcite-input-message>`:null}</calcite-label>`:null}_renderThumbnailSelector(){let{hideThumbnail:e,messages:t,_userThumbnailState:i}=this;return e?null:n`<calcite-label>${t.thumbnail}<calcite-chip-group .label=${t.thumbnail??""} selection-mode=single-persist @calciteChipGroupSelect=${o=>this._handleThumbnailTypeSelect(o.currentTarget.selectedItems[0].value)}><calcite-chip .label=${t.screenshot??""} .selected=${i==="screenshot"} value=screenshot>${t.screenshot}</calcite-chip><calcite-chip .label=${t.url??""} .selected=${i==="url"} value=url>${t.url}</calcite-chip><calcite-chip .label=${t.none??""} .selected=${i==="none"} value=none>${t.none}</calcite-chip></calcite-chip-group></calcite-label>`}_renderEditingBookmark(e){let{disabled:t,messages:i,headingLevel:o}=this;return e?n`<form class=${l(c.form)} @submit=${this._editBookmarkSubmit}><calcite-flow-item .disabled=${t} .heading=${i.edit??""} .headingLevel=${o} .selected=${this._userStateValue==="edit"} @calciteFlowItemBack=${a=>{a.preventDefault(),this._closeEditBookmarkForm()}} ${v(this._storeEditFlowItemNode)}><div class=${l(c.formContent)}><div class=${l(c.authoring)}>${this._renderEditingBookmarkName(e)}${this._renderThumbnailSelector()}${this._renderEditingThumbnail(e)}${this._renderEditingBookmarkUrlInput(e)}${this._renderUpdateThumbnailButton()}${this._renderEditingTimeExtent(e)}</div></div>${this._renderEditingBookmarkActions()}</calcite-flow-item></form>`:null}_renderAddingBookmarkName(){let{messages:e}=this,t=this._userValidationState==="name-required";return n`<calcite-label>${e.title}<calcite-input class=${l(c.addBookmarkInput)} name=bookmark-name .placeholder=${e.titlePlaceholder} required type=text value ${v(this._storeAddInput)}></calcite-input>${t?n`<calcite-input-message icon=exclamation-mark-triangle status=invalid>${e.invalidTitle}</calcite-input-message>`:null}</calcite-label>`}_renderAddingBookmarkActions(){let{messages:e}=this;return[n`<calcite-button appearance=outline @click=${this._endAddBookmark} slot=footer type=button width=full>${e.cancel}</calcite-button>`,n`<calcite-button slot=footer type=submit width=full>${e.add}</calcite-button>`]}_renderAddingBookmark(){let{disabled:e,messages:t,headingLevel:i,_userStateValue:o}=this;return o==="add"?n`<form class=${l(c.form)} @submit=${this._addBookmarkSubmitClick}><calcite-flow-item .disabled=${e} .heading=${t.addBookmark} .headingLevel=${i} selected @calciteFlowItemBack=${a=>{a.preventDefault(),this._endAddBookmark()}} ${v(this._storeAddFlowItemNode)}><div class=${l(c.formContent)}>${this._renderAddingBookmarkName()}</div>${this._renderAddingBookmarkActions()}</calcite-flow-item></form>`:null}};z("arcgis-bookmarks",U);return U},"core/reactiveUtils","core/urlUtils","intl","Viewpoint","WebMap","core/Collection","core/Error","core/Evented","core/accessorSupport/decorators","webdoc/support/SlideThumbnail","webmap/Bookmark","core/Accessor",a,b,c)
|
|
3
|
+
v5.0.0-next.135 */
|
|
4
|
+
import{a as j}from"./FNY7EFBZ.js";import{a as q}from"./LRB5KKCB.js";import{a as R}from"./I4RKVMR4.js";import"./KHW3OTUO.js";import c from"./4LCLXV63.js";import{a as V}from"./BEFNFR2T.js";import"./JGW7ULQ4.js";import b from"./23PY7CVN.js";import a from"./QVSDTPUG.js";import{g as N}from"./ROAEWSXR.js";import"./D73PIX2J.js";import"./3JQAQRJ2.js";import{b as L}from"./WOYKKJJD.js";import{B as O,M as v,N as M,O as l,Q as y,T as z,a as A,b as n,x as E}from"./ZB45BS6W.js";import"./C3UNJFE7.js";export default $arcgis.t(([{watch:S},{isHTTPSProtocol:x,isDataProtocol:C},{formatDate:H,convertDateFormatToIntlOptions:Z},W,,X,T,{EventedAccessor:Y},{property:m,cast:ee,subclass:J},te,K,ie,,,P])=>{var oe=Object.defineProperty,re=Object.getOwnPropertyDescriptor,w=(r,e,t,i)=>{for(var o=i>1?void 0:i?re(e,t):e,a=r.length-1,s;a>=0;a--)(s=r[a])&&(o=(i?s(e,t,o):s(o))||o);return i&&o&&oe(e,t,o),o},Q=X.ofType(K),ae={width:128,height:128,format:"png"},I={takeScreenshot:!0,captureViewpoint:!0,captureRotation:!0,captureScale:!0,captureTimeExtent:!0},G={time:!0},p=class extends Y{constructor(r){super(r),this._defaultBookmarks=new Q,this.capabilities={...G}}destroy(){this._set("activeBookmark",null)}castCapabilities(r){return{...G,...r}}get bookmarks(){return this.view?.map?.bookmarks??this._defaultBookmarks}set bookmarks(r){this._set("bookmarks",r??this._defaultBookmarks)}set defaultCreateOptions(r){this._set("defaultCreateOptions",{...I,...r})}get defaultCreateOptions(){return I}set defaultEditOptions(r){this._set("defaultEditOptions",{...I,...r})}get defaultEditOptions(){return I}get state(){let{view:r}=this;return r&&!r.ready?"loading":"ready"}async createBookmark(r){let{view:e,defaultCreateOptions:t,capabilities:i}=this;if(!e)throw new T("create-bookmark:invalid-view","Cannot create a bookmark without a view.");let{takeScreenshot:o,screenshotSettings:a,captureViewpoint:s,captureRotation:d,captureScale:g,captureTimeExtent:b}={...t,...r},h=o?await this._createThumbnail(a):void 0,$=i.time&&b&&e.timeExtent!=null?e.timeExtent.clone():void 0;return new K({...h&&{thumbnail:h},...b&&{timeExtent:$},...s&&{viewpoint:this._createViewpoint({view:e,captureScale:g,captureRotation:d})}})}async editBookmark(r,e){if(!r)return r;let{view:t,defaultEditOptions:i}=this;if(!t)throw new T("edit-bookmark:invalid-view","Cannot edit a bookmark without a view.");let{takeScreenshot:o,screenshotSettings:a,captureViewpoint:s,captureRotation:d,captureScale:g,captureTimeExtent:b}={...i,...e},h=o?await this._createThumbnail(a):void 0;return h&&(r.thumbnail=h),s&&(r.viewpoint=this._createViewpoint({view:t,captureScale:g,captureRotation:d})),b&&t.timeExtent!=null&&(r.timeExtent=t.timeExtent.clone()),this.emit("bookmark-edit",{bookmark:r}),r}goTo(r){let{capabilities:e,view:t}=this;if(!t)throw new T("go-to:invalid-view","Cannot go to a bookmark without a view");let i=r?.viewpoint;if(!i)throw new T("go-to:invalid-bookmark","Cannot go to a bookmark that does not contain a 'viewpoint'.",{bookmark:r});this._set("activeBookmark",r);let o=j({target:i},t,this.goToOverride),a=r?.timeExtent;return e.time&&a&&(t.timeExtent=a),this.emit("bookmark-select",{bookmark:r}),o.catch().then(()=>this._set("activeBookmark",null)),o}async _createThumbnail(r){let{view:e}=this;if(!e)throw new T("bookmark:invalid-view","Cannot create slide thumbnail without a view");let t=await e.takeScreenshot({...ae,...r});return new te({url:t.dataUrl})}_createViewpoint({view:r,captureRotation:e,captureScale:t}){let i=r.viewpoint?.clone();return new W({targetGeometry:r.extent?.clone(),rotation:(e?i?.rotation:null)??0,scale:(t?i?.scale:null)??0})}};w([m()],p.prototype,"goToOverride",2);w([m()],p.prototype,"capabilities",2);w([ee("capabilities")],p.prototype,"castCapabilities",1);w([m({readOnly:!0})],p.prototype,"activeBookmark",2);w([m({type:Q})],p.prototype,"bookmarks",1);w([m()],p.prototype,"defaultCreateOptions",1);w([m()],p.prototype,"defaultEditOptions",1);w([m({readOnly:!0})],p.prototype,"state",1);w([m()],p.prototype,"view",2);p=w([J("esri.widgets.Bookmarks.BookmarksViewModel")],p);var ne=A`.esri-widget__heading{color:var(--calcite-color-text-2);margin:0 0 .5rem;font-weight:var(--calcite-font-weight-semibold)}h1.esri-widget__heading{font-size:var(--calcite-font-size-xl)}h2.esri-widget__heading{font-size:var(--calcite-font-size-md)}h3.esri-widget__heading,h4.esri-widget__heading,h5.esri-widget__heading,h6.esri-widget__heading{font-size:var(--calcite-font-size)}.esri-widget{box-sizing:border-box;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);font-size:var(--calcite-font-size);line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget *,.esri-widget :before,.esri-widget :after{box-sizing:inherit}.esri-widget.esri-widget--disabled>*{opacity:.4;pointer-events:none}.esri-widget.esri-widget--compact{--esri-widget-padding-y: 0;--esri-widget-padding-x: 0}.esri-widget__anchor{color:var(--calcite-color-text-2)}.esri-widget__anchor:hover{color:var(--calcite-color-text-3)}.esri-widget__anchor:hover,.esri-widget__anchor:focus{text-decoration:underline}.esri-widget__anchor--disabled{opacity:.4;pointer-events:none}.esri-widget__header{background-color:var(--calcite-color-foreground-1);flex:1 0 100%;justify-content:space-between;align-items:center;width:100%;min-height:48px;padding:12px 0 12px 15px;display:flex}.esri-widget__header .esri-widget__heading{width:calc(100% - 48px);text-align:initial;color:var(--calcite-color-text-1);align-items:center;margin:0;padding:0;display:flex}.esri-widget__header-button{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background-color:var(--calcite-color-foreground-1);border:none;flex:0 0 48px;justify-content:center;align-self:stretch;align-items:center;width:48px;padding:0;display:flex}.esri-widget__footer{background-color:var(--calcite-color-foreground-1);justify-content:center;align-items:center;width:100%;min-height:48px;display:flex}.esri-widget__footer-pagination{color:var(--calcite-color-text-2);justify-content:space-between;align-items:center;display:flex}.esri-widget__footer-pagination-previous-button,.esri-widget__footer-pagination-next-button{cursor:pointer;background-color:var(--calcite-color-foreground-1);border:0;margin:0 7px;padding:12px 15px;transition:background-color .125s ease-in-out}.esri-widget__footer-pagination-previous-button:hover,.esri-widget__footer-pagination-previous-button:focus,.esri-widget__footer-pagination-next-button:hover,.esri-widget__footer-pagination-next-button:focus{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1)}.esri-menu{visibility:hidden;z-index:1;background-clip:padding;background-color:var(--calcite-color-foreground-1);background-clip:padding-box;width:100%;max-height:0;margin:2px 0 0;padding:0;font-size:var(--calcite-font-size);line-height:var(--calcite-spacing-xl);position:absolute;top:100%;left:0;overflow:hidden;box-shadow:0 1px 2px #0000004d}.esri-menu .esri-menu__header{color:var(--calcite-color-text-inverse);background-color:var(--calcite-color-inverse);padding:6px 12px}.esri-menu__list{margin:0;padding:0;list-style:none}.esri-menu__list-item{cursor:pointer;border-top:1px solid #adadad4d;border-left:3px solid #0000;padding:.8em 1em}.esri-menu__list-item [class^=esri-icon-],.esri-menu__list-item [class*=" esri-icon-"]{padding-right:2.8px}.esri-menu__list-item:first-child{border-top:none}.esri-menu__list-item--focus,.esri-menu__list-item:hover,.esri-menu__list-item:focus{background-color:var(--calcite-color-foreground-1)}.esri-menu__list-item:active{background-color:var(--calcite-color-foreground-current)}.esri-menu__list-item--active,.esri-menu__list-item--active:hover,.esri-menu__list-item--active:focus{background-color:var(--calcite-color-foreground-1);border-left-color:var(--calcite-color-brand)}.esri-widget__table{border-collapse:collapse;color:var(--calcite-color-text-1);border:none;width:100%;line-height:var(--calcite-font-line-height-relative-tight)}.esri-widget__table tr:nth-child(odd){background-color:var(--calcite-color-transparent)}.esri-widget__table tr:nth-child(2n){background-color:var(--calcite-color-transparent-press)}.esri-widget__table tr a{color:var(--calcite-color-text-2)}.esri-widget__table tr a:hover,.esri-widget__table tr a:focus{color:var(--calcite-color-text-1)}.esri-widget__table tr td,.esri-widget__table tr th{vertical-align:top;word-break:break-word;padding:.5em .7em;font-size:var(--calcite-font-size-sm);font-weight:var(--calcite-font-weight-regular)}.esri-widget__table tr th{text-align:left;border-right:3px solid #0000000d;width:50%}.esri-widget__table tr td{width:50%}.esri-input{color:var(--calcite-color-text-1);background-color:var(--calcite-color-foreground-1);border:1px solid #959595;font-size:var(--calcite-font-size)}.esri-input::-ms-clear{display:none}.esri-input::placeholder{opacity:1;color:var(--calcite-color-text-2)}.esri-input:placeholder-shown{text-overflow:ellipsis}.esri-input[type=text],.esri-input[type=password],.esri-input[type=number]{height:32px;padding:0 .5em}calcite-combobox.esri-input{border:none}.esri-widget__content--empty{text-align:center;color:var(--calcite-color-border-input);flex-flow:column wrap;align-items:center;padding:18px 22px;display:flex}.esri-widget__content--empty h1.esri-widget__heading,.esri-widget__content--empty h2.esri-widget__heading,.esri-widget__content--empty h3.esri-widget__heading,.esri-widget__content--empty h4.esri-widget__heading,.esri-widget__content--empty h5.esri-widget__heading{font-weight:var(--calcite-font-weight-regular)}.esri-widget__content-illustration--empty{width:128px;padding:1rem 0}.esri-widget__content-icon--empty{width:32px;padding:.5rem 0}.esri-select{appearance:none;cursor:pointer;color:var(--calcite-color-text-2);background:var(--calcite-color-foreground-1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-8 -8 32 32' width='32' height='32'%3E%3Cpath d='M8 11.207l-4-4V5.793l4 4 4-4v1.414z' fill='%23adadad' fillrule='nonzero'/%3E%3C/svg%3E") 100% no-repeat;border:1px solid #959595;border-radius:0;width:100%;height:32px;margin:0;padding:0 .5em;font-family:inherit;font-size:.85em;display:block}.esri-select[disabled]{cursor:auto}.esri-select::-ms-expand{display:none}.esri-disabled a,.esri-disabled [role=menu],.esri-disabled [role=checkbox],.esri-disabled [class^=esri-icon-],.esri-disabled [class*=" esri-icon-"]{color:var(--calcite-color-text-3)}.keynav-mode .esri-widget:focus,.keynav-mode .esri-widget :focus{z-index:1;outline-offset:2px;outline:2px solid #adadad}.esri-widget__loader-animation{border:.15em solid #adadad4d;border-top-color:var(--calcite-color-border-input);border-radius:100%;width:1em;height:1em;font-size:var(--calcite-font-size-md);animation:1.25s linear infinite esri-rotate;display:block;transform:translateZ(0)}:dir(rtl) .esri-widget__table th{text-align:right;border-left:3px solid #0000000d;border-right:none}:dir(rtl) .esri-select{background-position:0}:dir(rtl) .esri-menu__list-item{border-left:none;border-right:3px solid #0000}:dir(rtl) .esri-menu__list-item [class^=esri-icon-],:dir(rtl) .esri-menu__list-item [class*=" esri-icon-"]{padding-left:2px;padding-right:0}:dir(rtl) .esri-menu__list-item--active{border-right-color:var(--calcite-color-brand)}.esri-icon-font-fallback-text{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.esri-rotating{animation:1.25s linear infinite esri-rotate;transform:translateZ(0)}.esri-clearfix:before,.esri-clearfix:after{content:" ";display:table}.esri-clearfix:after{clear:both}.esri-interactive{cursor:pointer}.esri-hidden{display:none!important}.esri-invisible{visibility:hidden!important}.esri-offscreen{position:absolute;top:-999em;left:-999em}.esri-match-height{flex-direction:column;flex:auto;display:flex;overflow:hidden}:host{display:flex}.arcgis-bookmarks{width:100%;overflow:hidden auto;transition:max-height .25s ease-in-out}:host([closed]) .arcgis-bookmarks{display:none}.arcgis-bookmarks__empty{display:flex;flex-flow:column wrap;align-items:center;padding:var(--calcite-spacing-md) var(--calcite-spacing-lg);text-align:center;color:var(--calcite-color-text-1)}.arcgis-bookmarks .arcgis-widget__content--empty{background-color:var(--calcite-color-foreground-2)}.arcgis-bookmarks calcite-flow-item[loading]{min-height:150px}.arcgis-bookmarks__loader{margin-inline-end:0}.arcgis-bookmarks__filter-no-results{padding:var(--calcite-spacing-md) var(--calcite-spacing-lg)}.arcgis-bookmarks__bookmark-image-container{display:flex;position:relative;margin:0;margin-inline-start:var(--calcite-spacing-xs);min-width:16px;min-height:16px}.arcgis-bookmarks__bookmark-image-container .arcgis-bookmarks__image{max-width:64px;overflow:hidden}.arcgis-bookmarks--drag-enabled .arcgis-bookmarks__bookmark-image-container{margin-inline-start:0}.arcgis-bookmarks__no-bookmarks-heading{margin:0;margin-block-start:var(--calcite-spacing-md);font-size:var(--calcite-font-size-md);line-height:var(--calcite-font-line-height-relative-tight);font-weight:var(--calcite-font-weight-regular)}.arcgis-bookmarks__authoring{display:flex;flex-direction:column}.arcgis-bookmarks__authoring-image-container{display:flex;align-items:middle;justify-content:center;margin-block-end:var(--calcite-spacing-md);margin-inline-end:var(--calcite-spacing-lg);background-image:repeating-conic-gradient(#ccc 0% 25%,#fff 0% 50%);background-position:0 0,10px 10px;background-size:20px 20px;background-color:#fff;width:128px;height:128px;text-align:center}.arcgis-bookmarks__authoring-image-container .arcgis-bookmarks__image{max-width:128px;max-height:128px}.arcgis-bookmarks__form{display:flex;height:100%}.arcgis-bookmarks__form-content{padding-block:var(--calcite-spacing-md);padding-inline:var(--calcite-spacing-lg)}.arcgis-bookmarks__authoring-refresh-thumbnail-button{margin-block-end:var(--calcite-spacing-md)}.arcgis-bookmarks__bookmark-content-label{color:var(--calcite-color-text-1);font-size:var(--calcite-font-size-sm);line-height:var(--calcite-font-line-height-relative-normal)}.arcgis-bookmarks__bookmark-content calcite-table{margin-inline-start:-.25rem}.arcgis-bookmarks__bookmark-content calcite-table,.arcgis-bookmarks__bookmark-content calcite-table-row{--calcite-table-border-color: transparent;--calcite-color-text-1: var(--calcite-color-text-3);--calcite-table-row-background-color: transparent;pointer-events:none}`,u="arcgis-bookmarks",F=`${u}__authoring`,D=`${u}__bookmark`,c={base:u,empty:`${u}__empty`,noBookmarksHeader:`${u}__no-bookmarks-heading`,noBookmarksDescription:`${u}__no-bookmarks-description`,form:`${u}__form`,list:`${u}__list`,loader:`${u}__loader`,filterNoResults:`${u}__filter-no-results`,formContent:`${u}__form-content`,addBookmarkButton:`${u}__add-bookmark-button`,editBookmarkInput:`${u}__edit-bookmark-input`,addBookmarkInput:`${u}__add-bookmark-input`,dragEnabled:`${u}--drag-enabled`,bookmarkImage:`${u}__image`,bookmarkImageContainer:`${D}-image-container`,bookmarkContent:`${D}-content`,bookmarkContentLabel:`${D}-content-label`,authoring:F,authoringImageContainer:`${F}-image-container`,authoringRefreshThumbnailButton:`${F}-refresh-thumbnail-button`},se=Object.defineProperty,le=Object.getOwnPropertyDescriptor,_=(r,e,t,i)=>{for(var o=i>1?void 0:i?le(e,t):e,a=r.length-1,s;a>=0;a--)(s=r[a])&&(o=(i?s(e,t,o):s(o))||o);return i&&o&&se(e,t,o),o},k=class extends ie{constructor(r){super(r)}get editedBookmark(){let{bookmark:r}=this;return r?this._get("editedBookmark")||r.clone():null}get customUrl(){if(this._customUrl)return this._customUrl;let r=this.editedBookmark?.thumbnail?.url??"";return r??(x(r)?r:null)}set customUrl(r){this._customUrl=r}get screenshotUrl(){if(this._screenshotUrl)return this._screenshotUrl;let r=this.editedBookmark?.thumbnail?.url??"";return r??(C(r)?r:null)}set screenshotUrl(r){this._screenshotUrl=r}get state(){return this._get("state")}set state(r){this.validationState=void 0,this.creatingBookmark=void 0,this._set("state",r)}get thumbnailState(){if(this._thumbnailState)return this._thumbnailState;let r=this.editedBookmark?.thumbnail?.url;return r?x(r)?"url":"screenshot":"none"}set thumbnailState(r){this._thumbnailState=r}};_([m()],k.prototype,"bookmark",2);_([m({readOnly:!0})],k.prototype,"editedBookmark",1);_([m()],k.prototype,"_customUrl",2);_([m()],k.prototype,"customUrl",1);_([m()],k.prototype,"_screenshotUrl",2);_([m()],k.prototype,"screenshotUrl",1);_([m()],k.prototype,"state",1);_([m()],k.prototype,"_thumbnailState",2);_([m()],k.prototype,"thumbnailState",1);_([m()],k.prototype,"validationState",2);_([m()],k.prototype,"creatingBookmark",2);k=_([J("UserState")],k);var ce=P(p),U=class extends M{constructor(){super(...arguments),this._guid=O(),this._addInputNode=null,this._editInputNode=null,this._urlEditInputNode=null,this._lastDragDetail=null,this.messages=V({}),this.viewModel=ce(this),this._storeEditFlowItemNode=e=>{this._editFlowItemEl=e},this._storeRootFlowItem=e=>{this._rootFlowItemEl=e},this._storeAddFlowItemNode=e=>{this._addFlowItemEl=e},this._userState=null,this._userCreatingBookmark=!1,this.editIncludeTimeExtent=!1,this.view=this.viewModel.view,this.icon="bookmark",this.closed=!1,this.defaultCreateOptions=this.viewModel.defaultCreateOptions,this.defaultEditOptions=this.viewModel.defaultEditOptions,this.bookmarks=this.viewModel.bookmarks,this.disabled=!1,this.dragEnabled=!1,this.filterPlaceholder="",this.filterText="",this.headingLevel=2,this.goToOverride=this.viewModel.goToOverride,this.showAddBookmarkButton=!1,this.showCloseButton=!1,this.showCollapseButton=!1,this.showEditBookmarkButton=!1,this.showFilter=!1,this.hideFlow=!1,this.showHeading=!1,this.hideThumbnail=!1,this.hideTime=!1,this.timeDisabled=this.viewModel.capabilities.time,this.autoDestroyDisabled=!1,this.state=this.viewModel.state,this.arcgisBookmarkEdit=E(),this.arcgisBookmarkSelect=E(),this.arcgisPropertyChange=N()("state"),this.arcgisReady=E(),this.arcgisClose=E()}static{this.properties={_userState:16,_userStateValue:16,_userValidationState:16,_userThumbnailState:16,_userCreatingBookmark:16,editIncludeTimeExtent:16,view:0,referenceElement:1,icon:0,closed:7,defaultCreateOptions:0,defaultEditOptions:0,bookmarks:0,disabled:5,dragEnabled:5,filterPlaceholder:1,filterText:1,headingLevel:9,goToOverride:0,showAddBookmarkButton:5,showCloseButton:5,showCollapseButton:5,showEditBookmarkButton:5,showFilter:5,hideFlow:5,showHeading:5,hideThumbnail:5,hideTime:5,timeDisabled:5,autoDestroyDisabled:5,messageOverrides:0,label:1,state:32}}static{this.styles=ne}async destroy(){await this.manager.destroy()}goTo(e){return this.viewModel.goTo(e)}loaded(){this.manager.onLifecycle(()=>[this.viewModel.on("bookmark-select",this.arcgisBookmarkSelect.emit),this.viewModel.on("bookmark-edit",this.arcgisBookmarkEdit.emit),S(()=>this._userState?.state,e=>this._userStateValue=e,{initial:!0}),S(()=>this._userState?.validationState,e=>this._userValidationState=e,{initial:!0}),S(()=>this._userState?.thumbnailState,e=>this._userThumbnailState=e,{initial:!0}),S(()=>this._userState?.creatingBookmark,e=>this._userCreatingBookmark=!!e,{initial:!0})])}_handleClose(){this.closed=!0,this.arcgisClose.emit()}startAddBookmark(){this._userState=new k({state:"add"}),requestAnimationFrame(()=>{this._addFlowItemEl?.setFocus()})}_clearState(){this._userState=null}_getTimeExtentStrings(e){let{hideTime:t}=this,{timeExtent:i}=e;if(!i)return{};let{start:o,end:a}=i,s=a!=null&&(o==null||o.getTime()!==a.getTime()),d=o?this._formatDate(o):"",g=o&&!t?this._formatTime(o):"";if(!s)return{startDate:d,startTime:g};let b=this._formatDate(a),h=t?"":this._formatTime(a);return{startDate:d,startTime:g,endDate:b,endTime:h}}_handleUrlEditInputChange(){let{_userState:e,_urlEditInputNode:t}=this,i=t?.value;if(!e?.editedBookmark||!i)return;e.validationState=void 0,C(e.editedBookmark.thumbnail?.url??"")&&(e.screenshotUrl=e.editedBookmark.thumbnail?.url);let o={url:i};x(o.url)&&(e.customUrl=i,e.editedBookmark.thumbnail=o)}_getBookmarkTitle(e){return(e?.name||this.messages.untitled)??""}_formatDate(e){if(!e)return"";let t=this.viewModel.view,i=t&&"timeZone"in t?t.timeZone:"system";return H(e,{...Z("short-date"),timeZone:i})}_formatTime(e){if(!e)return"";let t=this.viewModel.view,i=t&&"timeZone"in t?t.timeZone:"system";return H(e,{...Z("long-time"),timeZone:i})}_onCalciteListOrderChange(e){let{_lastDragDetail:t,bookmarks:i}=this,{toEl:o,fromEl:a,dragEl:s,newIndex:d}=e;if(!i.length)return;let g=t?.newIndex===d&&t?.dragEl===s&&t?.toEl===o&&t?.fromEl===a;if(!a||!o||g)return;this._lastDragDetail=e;let b=Array.from(a.children).filter(h=>h?.matches("calcite-list-item")).map(h=>h.value);i.sort((h,$)=>{let B=b.indexOf(h.uid),f=b.indexOf($.uid);return B>f?1:B<f?-1:0})}_endAddBookmark(){this._clearState(),this._focusRootFlowItem()}_showEditBookmarkForm(e){e&&(this.editIncludeTimeExtent=!!e.timeExtent,this._userState=new k({bookmark:e,state:"edit"}),requestAnimationFrame(()=>{this._editFlowItemEl?.setFocus()}),this.viewModel.goTo(e))}async _createNewScreenshotUrl(){return(await this.viewModel.createBookmark()).thumbnail?.url??null}_storeCurrentUrl(){let{_userState:e}=this,t=e?.editedBookmark?.thumbnail?.url;t&&(x(t)?e.customUrl=t:C(t)&&(e.screenshotUrl=t))}async _handleThumbnailTypeSelect(e){let{_userState:t}=this;if(!t)return;let{screenshotUrl:i,customUrl:o,editedBookmark:a}=t,s=e==="screenshot"?i??await this._createNewScreenshotUrl():e==="url"&&o?o:null;this._storeCurrentUrl(),a&&s&&(a.thumbnail={url:s}),t.validationState=void 0,t.thumbnailState=e}_focusRootFlowItem(){requestAnimationFrame(()=>{this._rootFlowItemEl?.setFocus()})}_closeEditBookmarkForm(){this._clearState(),this._focusRootFlowItem()}_addBookmarkSubmitClick(e){e.preventDefault(),this._addBookmarkSubmit()}async _addBookmarkSubmit(){let{_addInputNode:e,_userState:t,viewModel:i,viewModel:{bookmarks:o}}=this;if(!t)return;let a=e?e.value.trim():null;if(!a){t.validationState="name-required";return}t.creatingBookmark=!0;let s=await i.createBookmark();s.name=a,o.add(s),this._endAddBookmark()}async _editBookmarkAndClose(e,t){let{viewModel:i,viewModel:{defaultEditOptions:o}}=this;await i.editBookmark(e,{...o,...t}),this._closeEditBookmarkForm()}_editBookmarkSubmit(e){e.preventDefault();let{_userState:t,_editInputNode:i,editIncludeTimeExtent:o,_urlEditInputNode:a}=this;if(!t?.bookmark||!t.editedBookmark)return;t.validationState=void 0,t.customUrl=void 0,t.screenshotUrl=void 0;let s=i?.value.trim();if(!s){t.validationState="name-required";return}if(t.bookmark.name=s,t.bookmark.thumbnail=t.editedBookmark.thumbnail,o||(t.bookmark.timeExtent=null),t.thumbnailState==="url"&&a){let d={url:a.value};if(!x(d.url)){t.validationState="absolute-url-required";return}t.bookmark.thumbnail=d}else t.thumbnailState==="none"&&(t.bookmark.thumbnail=null);this._editBookmarkAndClose(t.bookmark,{takeScreenshot:!1,captureTimeExtent:o})}_storeEditInput(e){this._editInputNode=e}_storeAddInput(e){this._addInputNode=e}_storeUrlEditInput(e){this._urlEditInputNode=e}_deleteBookmark(e){this._closeEditBookmarkForm(),e&&(this.viewModel.bookmarks.remove(e),e.destroy())}_goToBookmark(e){this._clearState(),this.viewModel.goTo(e)}async _updateThumbnail(){let{_userState:e,viewModel:t}=this;e&&(e.validationState=void 0,await t.editBookmark(e.editedBookmark,{takeScreenshot:!0,captureViewpoint:!1,captureRotation:!1,captureScale:!1,captureTimeExtent:!1}))}_handleCalciteListDragEnd(e){let{fromEl:t,dragEl:i,oldIndex:o}=e;t.insertBefore(i,t.children[o])}render(){return n`<div class=${l(c.base)}>${this._renderBookmarksContainer()}</div>`}_renderNoBookmarksContainer(e){let{messages:t,viewModel:{state:i}}=this;return!e.length&&i!=="loading"?n`<div class=${l(c.empty)}><calcite-icon .icon=${this.icon} scale=l></calcite-icon>${R({class:c.noBookmarksHeader,level:this.headingLevel,children:t.noBookmarksHeading})}<p class=${l(c.noBookmarksDescription)}>${t.noBookmarksDescription}</p></div>`:null}_renderEditBookmarkFlowItems(){let e=this._userStateValue==="edit",t=this._userState?.editedBookmark;return!t||!e?[]:this._renderEditingBookmark(t)}_renderBookmarkItems(e){return e?e.toArray().map(t=>this._renderBookmark(t)):[]}_renderBookmarksContainer(){let{viewModel:{state:e,bookmarks:t},dragEnabled:i,messages:o,disabled:a,filterPlaceholder:s,filterText:d,closed:g,headingLevel:b}=this,h=t.filter(f=>f!=null),$=h.length?n`<calcite-list class=${l(c.list)} display-mode=flat .dragEnabled=${i} .filterEnabled=${this.showFilter} .filterPlaceholder=${s} .filterProps=${["label","description","metadata"]} .filterText=${d} .group=${`bookmarks-${this._guid}`} .label=${o.componentLabel??""} selection-appearance=border selection-mode=none @calciteListDragEnd=${f=>this._handleCalciteListDragEnd(f.detail)} @calciteListFilter=${f=>this.filterText=f.currentTarget?.filterText??""} @calciteListOrderChange=${f=>this._onCalciteListOrderChange(f.detail)}>${this._renderBookmarkItems(h)}${this.showFilter?n`<div class=${l(c.filterNoResults)} slot=filter-no-results><calcite-notice kind=info open width=full><div slot=message>${o.noBookmarksHeading}</div>;</calcite-notice></div>`:null}</calcite-list>`:null,B=[n`<calcite-flow-item .closable=${this.showCloseButton} .closed=${g} .collapsible=${this.showCollapseButton} .disabled=${a} .heading=${this.showHeading?o.componentLabel:void 0} .headingLevel=${b} .loading=${e==="loading"} .selected=${!this._userStateValue} @calciteFlowItemClose=${this._handleClose} ${v(this._storeRootFlowItem)}>${this._renderNoBookmarksContainer(h)}${$}${this._renderAddBookmarkButton()}</calcite-flow-item>`,this._renderAddingBookmark(),this._renderEditBookmarkFlowItems()];return g?null:this.hideFlow?B:n`<calcite-flow>${B}</calcite-flow>`}_renderAddBookmarkButton(){let{messages:e,disabled:t,viewModel:{view:i,state:o}}=this,a=this._userCreatingBookmark;return i&&o!=="loading"&&this.showAddBookmarkButton?n`<calcite-fab appearance=outline-fill class=${l(c.addBookmarkButton)} .disabled=${t||a} icon=plus kind=neutral .loading=${a} @click=${this.startAddBookmark} slot=fab .text=${e.addBookmark} text-enabled title=${e.addBookmark??y}></calcite-fab>`:null}_renderEditContainer(e){let{messages:t}=this,i=`${t.edit} ${this._getBookmarkTitle(e)}`;return this.showEditBookmarkButton?n`<calcite-action icon=pencil @click=${()=>this._showEditBookmarkForm(e)} slot=actions-end .text=${i} title=${i??y}></calcite-action>`:null}_renderBookmarkImage(e,t){return t?n`<img alt class=${l(c.bookmarkImage)} src=${e.thumbnail?.url??y}>`:null}_renderBookmarkTimeSwitch(e){let{messages:t,viewModel:{view:i}}=this,{timeExtent:o}=e;return i?.timeExtent??o?n`<calcite-label layout=inline-space-between>${t.includeTimeExtent}<calcite-switch .checked=${!!o} @calciteSwitchChange=${a=>{this.editIncludeTimeExtent=a.currentTarget.checked}}></calcite-switch></calcite-label>`:null}_renderEditBookmarkTimeExtent(e){return this.editIncludeTimeExtent?this._renderBookmarkTimeExtent(e):null}_renderTimeExtentDescription(e){let{startDate:t,startTime:i,endDate:o,endTime:a}=this._getTimeExtentStrings(e);if(!t)return"";let s=`${t} ${i}`,d=`${o} ${a}`;return o?`${s} - ${d}`:s}_renderBookmarkTimeExtent(e,t=!1){let{messages:i}=this,{startDate:o,startTime:a,endDate:s,endTime:d}=this._getTimeExtentStrings(e),g=t?null:n`<calcite-table-row slot=table-header><calcite-table-header .heading=${i.startDate}></calcite-table-header>${s?n`<calcite-table-header .heading=${i.endDate}></calcite-table-header>`:null}</calcite-table-row>`;return o?n`<calcite-table .caption=${i.timeExtent??""} scale=s>${g}<calcite-table-row><calcite-table-cell>${o} ${a?[n`<br>`,a]:null}</calcite-table-cell>${s?n`<calcite-table-cell>${s}${d?[n`<br>`,d]:null}</calcite-table-cell>`:null}</calcite-table-row></calcite-table>`:null}_renderBookmarkActiveScrim(e,t){return this.viewModel.activeBookmark===e&&t?n`<calcite-scrim loading></calcite-scrim>`:null}_renderBookmarkActiveLoader(e,t){return this.viewModel.activeBookmark===e&&!t?n`<calcite-loader class=${l(c.loader)} inline .label=${this.messages.loading??""}></calcite-loader>`:null}_renderBookmarkImageIcon(e,t){return this.viewModel.activeBookmark!==e&&!t?n`<calcite-icon icon=bookmark scale=s></calcite-icon>`:null}_renderBookmarkThumbnail(e){let t=!this.hideThumbnail&&!!e.thumbnail?.url;return n`<div class=${l(c.bookmarkImageContainer)} slot=content-start>${this._renderBookmarkActiveScrim(e,t)}${this._renderBookmarkImage(e,t)}${this._renderBookmarkActiveLoader(e,t)}${this._renderBookmarkImageIcon(e,t)}</div>`}_renderBookmark(e){return q(e.uid,n`<calcite-list-item class=${l(L({[c.dragEnabled]:this.dragEnabled}))} .description=${this._renderTimeExtentDescription(e)} .label=${this._getBookmarkTitle(e)} .value=${e.uid} @calciteListItemSelect=${()=>this._goToBookmark(e)}>${this._renderBookmarkThumbnail(e)}${this._renderBookmarkContent(e)}${this._renderEditContainer(e)}</calcite-list-item>`)}_renderBookmarkContent(e){return n`<div class=${l(c.bookmarkContent)} slot=content><span class=${l(c.bookmarkContentLabel)}>${this._getBookmarkTitle(e)}</span>${this._renderBookmarkTimeExtent(e,!0)}</div>`}_renderEditingBookmarkName(e){let{messages:t}=this,i=this._userValidationState==="name-required";return n`<calcite-label>${t.title}<calcite-input class=${l(c.editBookmarkInput)} name=bookmark-name .placeholder=${t.titlePlaceholder} required type=text .value=${e.name} ${v(this._storeEditInput)}></calcite-input>${i?n`<calcite-input-message icon=exclamation-mark-triangle status=invalid>${t.invalidTitle}</calcite-input-message>`:null}</calcite-label>`}_renderEditingBookmarkActions(){let{messages:e,_userState:t}=this,i=t?.bookmark;return[n`<calcite-button appearance=transparent kind=danger @click=${()=>this._deleteBookmark(i)} slot=footer type=button width=full>${e.delete}</calcite-button>`,n`<calcite-button appearance=outline @click=${this._closeEditBookmarkForm} slot=footer type=button width=full>${e.cancel}</calcite-button>`,n`<calcite-button slot=footer type=submit width=full>${e.save}</calcite-button>`]}_renderEditingTimeExtent(e){let{capabilities:t,view:i}=this.viewModel,{timeExtent:o}=e;return t.time&&(i?.timeExtent??o)?n`<div>${this._renderBookmarkTimeSwitch(e)}${this._renderEditBookmarkTimeExtent(e)}</div>`:null}_renderEditingBookmarkImage(e){let{_userThumbnailState:t}=this,i=e.thumbnail?.url??"",o=x(i)?t==="url":C(i)?t==="screenshot":null;if(o)return this._renderBookmarkImage(e,o)}_renderEditingThumbnail(e){let{_userThumbnailState:t,hideThumbnail:i}=this;return!i&&t!=="none"?n`<div class=${l(c.authoringImageContainer)}>${this._renderEditingBookmarkImage(e)}</div>`:null}_renderUpdateThumbnailButton(){let{hideThumbnail:e,messages:t,_userThumbnailState:i}=this;return!e&&i==="screenshot"?n`<calcite-button appearance=outline class=${l(c.authoringRefreshThumbnailButton)} icon-start=refresh kind=neutral @click=${()=>void this._updateThumbnail()} width=full>${t.updateThumbnail}</calcite-button>`:null}_renderEditingBookmarkUrlInput(e){let{messages:t,_userValidationState:i,_userThumbnailState:o}=this,a=e.thumbnail?.url??"",s=x(a)?a:void 0,d=a&&i==="absolute-url-required";return o==="url"?n`<calcite-label><calcite-input name=bookmark-thumbnail-url pattern=https://.* .placeholder=${t?`https://<${t.imageUrlPlaceholder}>`:void 0} required title=${t.imageUrlTooltip??y} type=text .value=${s} @calciteInputChange=${this._handleUrlEditInputChange} @calciteInputInput=${this._handleUrlEditInputChange} ${v(this._storeUrlEditInput)}></calcite-input>${d?n`<calcite-input-message icon=exclamation-mark-triangle status=invalid>${t.invalidImageUrl}</calcite-input-message>`:null}</calcite-label>`:null}_renderThumbnailSelector(){let{hideThumbnail:e,messages:t,_userThumbnailState:i}=this;return e?null:n`<calcite-label>${t.thumbnail}<calcite-chip-group .label=${t.thumbnail??""} selection-mode=single-persist @calciteChipGroupSelect=${o=>this._handleThumbnailTypeSelect(o.currentTarget.selectedItems[0].value)}><calcite-chip .label=${t.screenshot??""} .selected=${i==="screenshot"} value=screenshot>${t.screenshot}</calcite-chip><calcite-chip .label=${t.url??""} .selected=${i==="url"} value=url>${t.url}</calcite-chip><calcite-chip .label=${t.none??""} .selected=${i==="none"} value=none>${t.none}</calcite-chip></calcite-chip-group></calcite-label>`}_renderEditingBookmark(e){let{disabled:t,messages:i,headingLevel:o}=this;return e?n`<form class=${l(c.form)} @submit=${this._editBookmarkSubmit}><calcite-flow-item .disabled=${t} .heading=${i.edit??""} .headingLevel=${o} .selected=${this._userStateValue==="edit"} @calciteFlowItemBack=${a=>{a.preventDefault(),this._closeEditBookmarkForm()}} ${v(this._storeEditFlowItemNode)}><div class=${l(c.formContent)}><div class=${l(c.authoring)}>${this._renderEditingBookmarkName(e)}${this._renderThumbnailSelector()}${this._renderEditingThumbnail(e)}${this._renderEditingBookmarkUrlInput(e)}${this._renderUpdateThumbnailButton()}${this._renderEditingTimeExtent(e)}</div></div>${this._renderEditingBookmarkActions()}</calcite-flow-item></form>`:null}_renderAddingBookmarkName(){let{messages:e}=this,t=this._userValidationState==="name-required";return n`<calcite-label>${e.title}<calcite-input class=${l(c.addBookmarkInput)} name=bookmark-name .placeholder=${e.titlePlaceholder} required type=text value ${v(this._storeAddInput)}></calcite-input>${t?n`<calcite-input-message icon=exclamation-mark-triangle status=invalid>${e.invalidTitle}</calcite-input-message>`:null}</calcite-label>`}_renderAddingBookmarkActions(){let{messages:e}=this;return[n`<calcite-button appearance=outline @click=${this._endAddBookmark} slot=footer type=button width=full>${e.cancel}</calcite-button>`,n`<calcite-button slot=footer type=submit width=full>${e.add}</calcite-button>`]}_renderAddingBookmark(){let{disabled:e,messages:t,headingLevel:i,_userStateValue:o}=this;return o==="add"?n`<form class=${l(c.form)} @submit=${this._addBookmarkSubmitClick}><calcite-flow-item .disabled=${e} .heading=${t.addBookmark} .headingLevel=${i} selected @calciteFlowItemBack=${a=>{a.preventDefault(),this._endAddBookmark()}} ${v(this._storeAddFlowItemNode)}><div class=${l(c.formContent)}>${this._renderAddingBookmarkName()}</div>${this._renderAddingBookmarkActions()}</calcite-flow-item></form>`:null}};z("arcgis-bookmarks",U);return U},"core/reactiveUtils","core/urlUtils","intl","Viewpoint","WebMap","core/Collection","core/Error","core/Evented","core/accessorSupport/decorators","webdoc/support/SlideThumbnail","webmap/Bookmark","core/Accessor",a,b,c)
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import"./
|
|
3
|
+
v5.0.0-next.135 */
|
|
4
|
+
import"./C3UNJFE7.js";var _={_decimalSeparator:",",_thousandSeparator:"\xA0",_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_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:"\u043D. \u0435.",_era_bc:"\u0434\u043E \u043D. \u0435.",A:"\u0434\u043F",P:"\u043F\u043F",AM:"\u0434\u043F",PM:"\u043F\u043F","A.M.":"\u0434\u043F","P.M.":"\u043F\u043F",January:"\u0441\u0456\u0447\u043D\u044F",February:"\u043B\u044E\u0442\u043E\u0433\u043E",March:"\u0431\u0435\u0440\u0435\u0437\u043D\u044F",April:"\u043A\u0432\u0456\u0442\u043D\u044F",May:"\u0442\u0440\u0430\u0432\u043D\u044F",June:"\u0447\u0435\u0440\u0432\u043D\u044F",July:"\u043B\u0438\u043F\u043D\u044F",August:"\u0441\u0435\u0440\u043F\u043D\u044F",September:"\u0432\u0435\u0440\u0435\u0441\u043D\u044F",October:"\u0436\u043E\u0432\u0442\u043D\u044F",November:"\u043B\u0438\u0441\u0442\u043E\u043F\u0430\u0434\u0430",December:"\u0433\u0440\u0443\u0434\u043D\u044F",Jan:"\u0441\u0456\u0447.",Feb:"\u043B\u044E\u0442.",Mar:"\u0431\u0435\u0440.",Apr:"\u043A\u0432\u0456\u0442.","May(short)":"\u0442\u0440\u0430\u0432.",Jun:"\u0447\u0435\u0440\u0432.",Jul:"\u043B\u0438\u043F.",Aug:"\u0441\u0435\u0440\u043F.",Sep:"\u0432\u0435\u0440.",Oct:"\u0436\u043E\u0432\u0442.",Nov:"\u043B\u0438\u0441\u0442.",Dec:"\u0433\u0440\u0443\u0434.",Sunday:"\u043D\u0435\u0434\u0456\u043B\u044F",Monday:"\u043F\u043E\u043D\u0435\u0434\u0456\u043B\u043E\u043A",Tuesday:"\u0432\u0456\u0432\u0442\u043E\u0440\u043E\u043A",Wednesday:"\u0441\u0435\u0440\u0435\u0434\u0430",Thursday:"\u0447\u0435\u0442\u0432\u0435\u0440",Friday:"\u043F\u02BC\u044F\u0442\u043D\u0438\u0446\u044F",Saturday:"\u0441\u0443\u0431\u043E\u0442\u0430",Sun:"\u043D\u0434",Mon:"\u043F\u043D",Tue:"\u0432\u0442",Wed:"\u0441\u0440",Thu:"\u0447\u0442",Fri:"\u043F\u0442",Sat:"\u0441\u0431",_dateOrd:function(e){return""},"Zoom Out":"\u041C\u0430\u0441\u0448\u0442\u0430\u0431\u0443\u0432\u0430\u043D\u043D\u044F",Play:"\u0412\u0456\u0434\u0442\u0432\u043E\u0440\u044E\u0432\u0430\u0442\u0438",Stop:"\u0417\u0443\u043F\u0438\u043D\u043A\u0430",Legend:"\u041B\u0435\u0433\u0435\u043D\u0434\u0430","Press ENTER to toggle":"",Loading:"\u0417\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0443\u0454\u0442\u044C\u0441\u044F",Home:"\u0413\u043E\u043B\u043E\u0432\u043D\u0430 \u0441\u0442\u043E\u0440\u0456\u043D\u043A\u0430",Chart:"","Serial chart":"","X/Y chart":"","Pie chart":"","Gauge chart":"","Radar chart":"","Sankey diagram":"","Flow diagram":"","Chord diagram":"","TreeMap chart":"","Sliced chart":"",Series:"","Candlestick Series":"","OHLC Series":"","Column Series":"","Line Series":"","Pie Slice Series":"","Funnel Series":"","Pyramid Series":"","X/Y Series":"",Map:"\u043A\u0430\u0440\u0442\u0430","Press ENTER to zoom in":"","Press ENTER to zoom out":"","Use arrow keys to zoom in and out":"","Use plus and minus keys on your keyboard to zoom in and out":"",Export:"\u0414\u0440\u0443\u043A",Image:"\u0417\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u043D\u044F",Data:"\u0414\u0430\u043D\u0456",Print:"\u0414\u0440\u0443\u043A","Press ENTER to open":"","Press ENTER to print.":"","Press ENTER to export as %1.":"","(Press ESC to close this message)":"","Image Export Complete":"","Export operation took longer than expected. Something might have gone wrong.":"","Saved from":"",PNG:"",JPG:"",GIF:"",SVG:"",PDF:"",JSON:"",CSV:"",XLSX:"",HTML:"","Use TAB to select grip buttons or left and right arrows to change selection":"","Use left and right arrows to move selection":"","Use left and right arrows to move left selection":"","Use left and right arrows to move right selection":"","Use TAB select grip buttons or up and down arrows to change selection":"","Use up and down arrows to move selection":"","Use up and down arrows to move lower selection":"","Use up and down arrows to move upper selection":"","From %1 to %2":"\u0412\u0456\u0434 %1 \u0434\u043E %2","From %1":"\u0412\u0456\u0434 %1","To %1":"\u0414\u043E %1","No parser available for file: %1":"","Error parsing file: %1":"","Unable to load file: %1":"","Invalid date":"",Close:"",Minimize:"",Confirm:""};export{_ as default};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/5.0/esri/copyright.txt for details.
|
|
3
|
-
v5.0.0-next.
|
|
4
|
-
import b from"./
|
|
3
|
+
v5.0.0-next.135 */
|
|
4
|
+
import b from"./VGZK74VR.js";import a from"./XDBT563Q.js";import"./H5TZETYE.js";import{N as f,Q as v,T as w,a as m,b as y}from"./ZB45BS6W.js";import"./C3UNJFE7.js";export default $arcgis.t(([g,$,{property:n,subclass:E},{watch:V,on:D},{c:C},{a:L,b:S}])=>{var k=Object.defineProperty,N=Object.getOwnPropertyDescriptor,d=(e,t,i,r)=>{for(var s=r>1?void 0:r?N(t,i):t,l=e.length-1,a;l>=0;l--)(a=e[l])&&(s=(r?a(t,i,s):a(s))||s);return r&&s&&k(t,i,s),s},o=class extends ${constructor(e){super(e),this.id="root",this.children=new g,this.layers=new g,this.level=0,this.childIds=new Set,this.layerUniqueIds=new Set}initialize(){this.addHandles([this.layers.on("before-add",e=>{this.layerUniqueIds.has(e.item.uid)?e.preventDefault():this.layerUniqueIds.add(e.item.uid)}),this.layers.on("after-add",({item:e})=>{this.addHandles([V(()=>e.visible,()=>this.notifyChange("visible"),{initial:!0}),V(()=>e.title,()=>this.notifyChange("title"),{initial:!0})],e.uid)}),this.layers.on("before-remove",({item:e})=>{this.removeHandles(e.uid),this.notifyChange("title"),this.notifyChange("visible")}),this.children.on("before-add",e=>{this.childIds.has(e.item.id)?e.preventDefault():(e.item._set("parent",this),this.childIds.add(e.item.id))})])}destroy(){this.children.forEach(e=>e.destroy())}get hasChildren(){return this.children.length>0}get isDiscipline(){return this.level===1}get visible(){return O(this.layers,e=>e.visible)}get title(){return O(this.layers,e=>e.title)||this.layers.map(e=>e.title).join(", ")||null}toggleVisibility(e){let t=e===void 0?!this.visible:e;this.layers.forEach(i=>{i.visible=t}),t&&this.parent!=null&&this.parent.toggleVisibility(!0)}toggleAllSiblingsVisibility(e){let t=e===void 0?!this.visible:e;this.toggleVisibility(t),this.parent!=null&&(this.parent.toggleVisibility(t),this.parent.children.forEach(i=>i.toggleVisibility(t)))}};d([n({})],o.prototype,"id",2);d([n()],o.prototype,"parent",2);d([n({readOnly:!0})],o.prototype,"children",2);d([n({readOnly:!0})],o.prototype,"layers",2);d([n({})],o.prototype,"level",2);d([n({readOnly:!0})],o.prototype,"hasChildren",1);d([n({readOnly:!0})],o.prototype,"isDiscipline",1);d([n({readOnly:!0})],o.prototype,"visible",1);d([n({readOnly:!0})],o.prototype,"title",1);o=d([E("esri.widgets.BuildingExplorer.support.LayerTreeNode")],o);function O(e,t){let i=null;for(let r of e){let s=t(r);if(i!=null&&i!==s)return null;i=s}return i}var A=Object.defineProperty,I=Object.getOwnPropertyDescriptor,_=e=>{throw TypeError(e)},p=(e,t,i,r)=>{for(var s=r>1?void 0:r?I(t,i):t,l=e.length-1,a;l>=0;l--)(a=e[l])&&(s=(r?a(t,i,s):a(s))||s);return r&&s&&A(t,i,s),s},T=(e,t,i)=>t.has(e)||_("Cannot "+i),u=(e,t,i)=>(T(e,t,"read from private field"),i?i.call(e):t.get(e)),F=(e,t,i)=>t.has(e)?_("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,i),c,h=class extends ${constructor(e){super(e),this.root=new o,F(this,c,new g),this.state="disabled",this.loadLayers=L()}initialize(){this.addHandles(D(()=>this.layers,"change",()=>void this._onLayersChange(),{onListenerAdd:()=>void this._onLayersChange(),onListenerRemove:()=>void this._onLayersChange()})),this._onLayersChange()}destroy(){this._set("state","disabled"),this.root.destroy()}get layers(){return u(this,c)}set layers(e){u(this,c).removeAll(),u(this,c).addMany(e)}updateLayerTree(){this.root.destroy(),this._set("root",new o);let e=new Map,t=this.layers.length>1?"modelName":"id";return this.layers.forEach(i=>{let r=S(i);this.addNodesForSublayers(r??i,this.root,e,t)}),this}addNodeForLayer(e,t,i,r){let s=String(e[r]).toLowerCase();if(s==null||e.isEmpty)return;let l=`${t.id}/${s}`,a=i.get(l);a||(a=new o({id:s,level:t.level+1}),i.set(l,a)),a.layers.push(e),t.children.push(a),this.addNodesForSublayers(e,a,i,r)}addNodesForSublayers(e,t,i,r){(e.type==="building-scene"||e.type==="building-group"&&!e.isEmpty)&&e.sublayers.forEach(s=>this.addNodeForLayer(s,t,i,r))}async _onLayersChange(){if(this._set("state","loading"),this.layers.length!==0)try{await this.loadLayers(this.layers),this.updateLayerTree(),this._set("state","ready")}catch(e){C(e)||this._set("state","failed")}}};c=new WeakMap;p([n()],h.prototype,"root",2);p([n()],h.prototype,"layers",1);p([n()],h.prototype,"state",2);h=p([E("esri.components.BuildingExplorer.BuildingDisciplinesViewModel")],h);var P=m`.label{--calcite-label-margin-bottom: 0}`,b=class extends f{constructor(){super(...arguments),this.#e=new h,this.toggleSiblingsVisibility=!1}static{this.properties={layers:0,messages:0,toggleSiblingsVisibility:5}}static{this.styles=P}#e;get layers(){return this.#e.layers.toArray()}set layers(t){this.#e.layers=new g(t)}render(){let t=this.messages,i=this.#e;return t==null?null:y`<calcite-tree lines selection-mode=none>${x({node:i.root,messages:t})}</calcite-tree>`}};function j(e){let t=e.node,i=t.visible===!0,r=t.visible===null,s=i?e.messages.hideSublayer:e.messages.showSublayer;return y`<calcite-tree-item><calcite-label class="label" layout=inline><calcite-checkbox .checked=${i} .indeterminate=${r} .label=${s} @click=${l=>{l.stopPropagation(),(l.metaKey||l.ctrlKey)&&e.toggleSiblingsVisibility&&(t.toggleVisibility(),t.toggleAllSiblingsVisibility())}} title=${s??v} @calciteCheckboxChange=${l=>{t.toggleVisibility(l.currentTarget.checked)}}></calcite-checkbox>${e.node.title}</calcite-label>${e.node.hasChildren?y`<calcite-tree lines selection-mode=none slot=children>${x({node:e.node,messages:e.messages})}</calcite-tree>`:null}</calcite-tree-item>`}function x(e){return e.node.children.toArray().reverse().map(t=>j({node:t,messages:e.messages,toggleSiblingsVisibility:e.toggleSiblingsVisibility}))}w("arcgis-building-discipline-tree",b);return b},"core/Collection","core/Accessor","core/accessorSupport/decorators","core/reactiveUtils",a,b)
|