@esri/hub-web-components 0.32.1 → 0.32.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cdn/23XWDPK4.js +4 -0
- package/dist/cdn/27KDCN5U.js +4 -0
- package/dist/cdn/2CQQJKXU.js +4 -0
- package/dist/cdn/2CYZTGXM.js +4 -0
- package/dist/cdn/2F6PVVOP.js +4 -0
- package/dist/cdn/2GZOTYXK.js +4 -0
- package/dist/cdn/2HAYMGYC.js +4 -0
- package/dist/cdn/2I2XRKZ5.js +4 -0
- package/dist/cdn/2LKLR573.js +4 -0
- package/dist/cdn/2NHSOGQB.js +4 -0
- package/dist/cdn/2OKQ6BLU.js +4 -0
- package/dist/cdn/2QPU7XUT.js +4 -0
- package/dist/cdn/2QQGVT3J.js +5 -0
- package/dist/cdn/2RMQLAQJ.js +4 -0
- package/dist/cdn/2ZTJHITH.js +4 -0
- package/dist/cdn/327UUWS5.js +4 -0
- package/dist/cdn/34R2ZMFF.js +4 -0
- package/dist/cdn/377WZC66.js +4 -0
- package/dist/cdn/3A7J5HQ7.js +4 -0
- package/dist/cdn/3EFA2VO4.js +4 -0
- package/dist/cdn/3H2FOLDY.js +4 -0
- package/dist/cdn/3KXECBQG.js +4 -0
- package/dist/cdn/3LOP5RUG.js +4 -0
- package/dist/cdn/3NECY2LT.js +4 -0
- package/dist/cdn/3NGKHZMR.js +4 -0
- package/dist/cdn/3O5E4DN5.js +4 -0
- package/dist/cdn/3PIEJ42Q.js +4 -0
- package/dist/cdn/3SBDYK5X.js +4 -0
- package/dist/cdn/3SVTJL4A.js +52 -0
- package/dist/cdn/3TIPC4VW.js +4 -0
- package/dist/cdn/3VBJ6Q4P.js +4 -0
- package/dist/cdn/3VUD6CFD.js +4 -0
- package/dist/cdn/3W4Y4GKE.js +4 -0
- package/dist/cdn/43ZMSR7Y.js +4 -0
- package/dist/cdn/4BYWJM5M.js +4 -0
- package/dist/cdn/4CT6JXBR.js +4 -0
- package/dist/cdn/4EHJDEB7.js +4 -0
- package/dist/cdn/4FAN6ISR.js +4 -0
- package/dist/cdn/4FMEOT4K.js +4 -0
- package/dist/cdn/4HKRH4ZE.js +4 -0
- package/dist/cdn/4I6HKASO.js +6 -0
- package/dist/cdn/4ICTKLYH.js +4 -0
- package/dist/cdn/4IZR4QQQ.js +4 -0
- package/dist/cdn/4KYGAE6X.js +4 -0
- package/dist/cdn/4MBOBQJP.js +4 -0
- package/dist/cdn/4NJPVJOB.js +4 -0
- package/dist/cdn/4OGJ3VCQ.js +4 -0
- package/dist/cdn/4QACFKA6.js +4 -0
- package/dist/cdn/4QPU3MIO.js +4 -0
- package/dist/cdn/4RXMKBIY.js +4 -0
- package/dist/cdn/4SWGIAH7.js +4 -0
- package/dist/cdn/4UH3KQNE.js +4 -0
- package/dist/cdn/4VGHRRJ4.js +4 -0
- package/dist/cdn/4ZGSSI5T.js +4 -0
- package/dist/cdn/4ZL3UCVW.js +4 -0
- package/dist/cdn/544TXLOO.js +4 -0
- package/dist/cdn/577VYQZA.js +4 -0
- package/dist/cdn/5AF6L7VH.js +4 -0
- package/dist/cdn/5CZNXHWB.js +4 -0
- package/dist/cdn/5FUDM7W2.js +4 -0
- package/dist/cdn/5GHZH2SJ.js +4 -0
- package/dist/cdn/5GISWZLR.js +4 -0
- package/dist/cdn/5HL7N6S3.js +4 -0
- package/dist/cdn/5J6RVEDS.js +4 -0
- package/dist/cdn/5KORXT7P.js +4 -0
- package/dist/cdn/5NTU3TKH.js +4 -0
- package/dist/cdn/5OKIAJ3O.js +4 -0
- package/dist/cdn/5ONJIXUA.js +4 -0
- package/dist/cdn/5OUKNC5U.js +4 -0
- package/dist/cdn/5PLMSYR4.js +4 -0
- package/dist/cdn/5PNAFCSN.js +4 -0
- package/dist/cdn/5SOLQGF6.js +4 -0
- package/dist/cdn/5SR4EYA4.js +4 -0
- package/dist/cdn/5TCWEK2X.js +4 -0
- package/dist/cdn/5U7LLLHH.js +4 -0
- package/dist/cdn/623VYKXU.js +4 -0
- package/dist/cdn/62M5ASHJ.js +4 -0
- package/dist/cdn/64PZA474.js +4 -0
- package/dist/cdn/656TMIOD.js +4 -0
- package/dist/cdn/65KNZZAM.js +4 -0
- package/dist/cdn/6AQQLEOG.js +4 -0
- package/dist/cdn/6B7H2QXV.js +4 -0
- package/dist/cdn/6BELD4M4.js +4 -0
- package/dist/cdn/6BW2QSJF.js +4 -0
- package/dist/cdn/6E56PNG7.js +4 -0
- package/dist/cdn/6IFJZRXQ.js +4 -0
- package/dist/cdn/6J3JZGCQ.js +4 -0
- package/dist/cdn/6KGVXTT5.js +4 -0
- package/dist/cdn/6LXRO3QF.js +4 -0
- package/dist/cdn/6NSEZF5F.js +4 -0
- package/dist/cdn/6OVTX7CL.js +4 -0
- package/dist/cdn/6PNSTEDO.js +4 -0
- package/dist/cdn/6UDTDR5A.js +4 -0
- package/dist/cdn/6VID7TZL.js +4 -0
- package/dist/cdn/6VZDRSGX.js +4 -0
- package/dist/cdn/6WDVSVGW.js +4 -0
- package/dist/cdn/6XTOFD2P.js +4 -0
- package/dist/cdn/6ZBSUFKE.js +4 -0
- package/dist/cdn/75B44T4C.js +4 -0
- package/dist/cdn/76NAA2IE.js +4 -0
- package/dist/cdn/773SDT2F.js +4 -0
- package/dist/cdn/77MR2M7Y.js +4 -0
- package/dist/cdn/7ABFRZGV.js +4 -0
- package/dist/cdn/7BCHHUE4.js +4 -0
- package/dist/cdn/7BGMRGQN.js +4 -0
- package/dist/cdn/7EAX5XIM.js +4 -0
- package/dist/cdn/7GYBADTZ.js +4 -0
- package/dist/cdn/7H56JNAW.js +4 -0
- package/dist/cdn/7IS3FIQG.js +4 -0
- package/dist/cdn/7LFBNUMZ.js +4 -0
- package/dist/cdn/7LL3OEPM.js +4 -0
- package/dist/cdn/7LSNHWHN.js +4 -0
- package/dist/cdn/7MCKUUEY.js +4 -0
- package/dist/cdn/7MFWVC2G.js +4 -0
- package/dist/cdn/7NBZMMQ5.js +4 -0
- package/dist/cdn/7NKFEP4B.js +4 -0
- package/dist/cdn/7OYQF6BX.js +41 -0
- package/dist/cdn/7PNLKFFQ.js +4 -0
- package/dist/cdn/7Q3DYPTV.js +4 -0
- package/dist/cdn/7RCGIOBD.js +4 -0
- package/dist/cdn/7SCRRIED.js +4 -0
- package/dist/cdn/7ULZUZEN.js +4 -0
- package/dist/cdn/7VUN2F7P.js +4 -0
- package/dist/cdn/7WYL3WE4.js +4 -0
- package/dist/cdn/7XHG53ZX.js +4 -0
- package/dist/cdn/7ZQL4BGW.js +4 -0
- package/dist/cdn/A2EE73O7.js +4 -0
- package/dist/cdn/A2IPMDT5.js +4 -0
- package/dist/cdn/A3NLGO5N.js +4 -0
- package/dist/cdn/A4OIWX35.js +4 -0
- package/dist/cdn/A6EA6EYZ.js +4 -0
- package/dist/cdn/A6JVRNAQ.js +4 -0
- package/dist/cdn/A6UBAVGJ.js +4 -0
- package/dist/cdn/A7JTQFR2.js +4 -0
- package/dist/cdn/A7O7WIHN.js +4 -0
- package/dist/cdn/A7SF7PQ4.js +4 -0
- package/dist/cdn/AGYJGQNT.js +4 -0
- package/dist/cdn/AJ4F4KI7.js +4 -0
- package/dist/cdn/AJMIX4L5.js +4 -0
- package/dist/cdn/ALWK4YFG.js +4 -0
- package/dist/cdn/ANG7ZYVB.js +4 -0
- package/dist/cdn/APEMGCL2.js +4 -0
- package/dist/cdn/ARGXE7D2.js +4 -0
- package/dist/cdn/ARZA3O7U.js +4 -0
- package/dist/cdn/ASCUNZA6.js +4 -0
- package/dist/cdn/AWOXQW27.js +4 -0
- package/dist/cdn/AWW4C3WL.js +4 -0
- package/dist/cdn/AZW7Y3P5.js +4 -0
- package/dist/cdn/B3VQ2ZU7.js +4 -0
- package/dist/cdn/B4KYBBFV.js +4 -0
- package/dist/cdn/B4V5PM7A.js +4 -0
- package/dist/cdn/B5JNSN5L.js +4 -0
- package/dist/cdn/B6OPAWOK.js +4 -0
- package/dist/cdn/BAWSEWCV.js +4 -0
- package/dist/cdn/BBQW5G3J.js +4 -0
- package/dist/cdn/BE5C7NO4.js +4 -0
- package/dist/cdn/BFGY66OH.js +4 -0
- package/dist/cdn/BGFJDNHF.js +4 -0
- package/dist/cdn/BGHKJV3E.js +4 -0
- package/dist/cdn/BGSHVR4G.js +4 -0
- package/dist/cdn/BGVA2TXC.js +4 -0
- package/dist/cdn/BITRK55U.js +4 -0
- package/dist/cdn/BIYDKFNV.js +4 -0
- package/dist/cdn/BKGRM33E.js +4 -0
- package/dist/cdn/BL3IZWMO.js +4 -0
- package/dist/cdn/BL3PKT7I.js +4 -0
- package/dist/cdn/BLO2SZ3O.js +4 -0
- package/dist/cdn/BRNQOE6M.js +9 -0
- package/dist/cdn/BRX4FKGX.js +4 -0
- package/dist/cdn/BTWEOJ7N.js +4 -0
- package/dist/cdn/BUOPSPML.js +4 -0
- package/dist/cdn/BV2LPZO4.js +4 -0
- package/dist/cdn/BV7MNLHB.js +4 -0
- package/dist/cdn/BXWSNP7O.js +4 -0
- package/dist/cdn/C26VGI6X.js +4 -0
- package/dist/cdn/C4E4AHV6.js +4 -0
- package/dist/cdn/C5PRVJKH.js +4 -0
- package/dist/cdn/CB42BGG2.js +5 -0
- package/dist/cdn/CH2NWUER.js +25 -0
- package/dist/cdn/CJFTAJTN.js +4 -0
- package/dist/cdn/COPPT3QY.js +4 -0
- package/dist/cdn/CQGFORCG.js +4 -0
- package/dist/cdn/CQMSE7ET.js +4 -0
- package/dist/cdn/CT7YCSFD.js +4 -0
- package/dist/cdn/D32TM57H.js +4 -0
- package/dist/cdn/D7L6SYTD.js +4 -0
- package/dist/cdn/DA7MDJXH.js +4 -0
- package/dist/cdn/DAGWLEZQ.js +4 -0
- package/dist/cdn/DB6T4JMZ.js +4 -0
- package/dist/cdn/DBS2WWXZ.js +4 -0
- package/dist/cdn/DEEAGLAL.js +4 -0
- package/dist/cdn/DEILDH46.js +4 -0
- package/dist/cdn/DG7SIV3U.js +4 -0
- package/dist/cdn/DJWHV3NB.js +4 -0
- package/dist/cdn/DMXGYZEB.js +4 -0
- package/dist/cdn/DN7ISJL2.js +4 -0
- package/dist/cdn/DP2MWBGN.js +4 -0
- package/dist/cdn/DQA7MC64.js +4 -0
- package/dist/cdn/DRKSEUNZ.js +4 -0
- package/dist/cdn/DRY7KMLN.js +4 -0
- package/dist/cdn/DSECRDV4.js +4 -0
- package/dist/cdn/DSJYJUTO.js +4 -0
- package/dist/cdn/DUPGRJ2A.js +4 -0
- package/dist/cdn/DUTL7PLX.js +4 -0
- package/dist/cdn/DV6TSFEC.js +4 -0
- package/dist/cdn/DVDNN4ID.js +4 -0
- package/dist/cdn/DX2GLZPZ.js +4 -0
- package/dist/cdn/DYTKICSM.js +4 -0
- package/dist/cdn/E2R2PH55.js +4 -0
- package/dist/cdn/E4QAO3G4.js +4 -0
- package/dist/cdn/E4T3RHPK.js +4 -0
- package/dist/cdn/E6UYPNJ3.js +4 -0
- package/dist/cdn/E7CFHVUH.js +4 -0
- package/dist/cdn/EALLJKNH.js +4 -0
- package/dist/cdn/EARRMW5L.js +4 -0
- package/dist/cdn/EBG7Z65M.js +4 -0
- package/dist/cdn/EBUZKYNP.js +4 -0
- package/dist/cdn/EC3CNVJG.js +4 -0
- package/dist/cdn/EFTM7OCO.js +4 -0
- package/dist/cdn/EGFFO6N4.js +4 -0
- package/dist/cdn/EGYRLIK3.js +4 -0
- package/dist/cdn/EIL7V26B.js +59 -0
- package/dist/cdn/EKT5GH4C.js +4 -0
- package/dist/cdn/ELJYCYUO.js +4 -0
- package/dist/cdn/ELUGCZ2W.js +4 -0
- package/dist/cdn/EMLZORMH.js +4 -0
- package/dist/cdn/EORYXF4D.js +4 -0
- package/dist/cdn/ER64A4V3.js +4 -0
- package/dist/cdn/ERTAIVSZ.js +4 -0
- package/dist/cdn/ES5DQMKP.js +4 -0
- package/dist/cdn/ET5XLRYZ.js +4 -0
- package/dist/cdn/ETW2GQTK.js +4 -0
- package/dist/cdn/EUNQXUHN.js +4 -0
- package/dist/cdn/EW2VAFSZ.js +4 -0
- package/dist/cdn/EWK464VZ.js +4 -0
- package/dist/cdn/EY7YNOF7.js +4 -0
- package/dist/cdn/F3GP6HX4.js +4 -0
- package/dist/cdn/F5LGGN3Q.js +4 -0
- package/dist/cdn/F5O5MKTJ.js +4 -0
- package/dist/cdn/F5PP5ZNZ.js +4 -0
- package/dist/cdn/F6M36JJ3.js +4 -0
- package/dist/cdn/F6NTG7IN.js +4 -0
- package/dist/cdn/FB4JEEZQ.js +4 -0
- package/dist/cdn/FBAO4COO.js +4 -0
- package/dist/cdn/FCSBHZU7.js +4 -0
- package/dist/cdn/FDKAWVJO.js +4 -0
- package/dist/cdn/FEW2TV4J.js +4 -0
- package/dist/cdn/FHMUTZGX.js +4 -0
- package/dist/cdn/FIKZLQUM.js +4 -0
- package/dist/cdn/FJ2ZSYZ6.js +4 -0
- package/dist/cdn/FP3DE5KI.js +4 -0
- package/dist/cdn/FRTVPAVS.js +4 -0
- package/dist/cdn/FUQAOUCQ.js +4 -0
- package/dist/cdn/FUVWCLBF.js +4 -0
- package/dist/cdn/FWTILN5X.js +4 -0
- package/dist/cdn/FWVL4M3D.js +5 -0
- package/dist/cdn/FWZJOYWT.js +4 -0
- package/dist/cdn/FYO3WMW4.js +4 -0
- package/dist/cdn/FYPOKVFP.js +4 -0
- package/dist/cdn/FZW6GENR.js +4 -0
- package/dist/cdn/G2EHOH7I.js +4 -0
- package/dist/cdn/G32SXD6P.js +4 -0
- package/dist/cdn/G34BCPV3.js +4 -0
- package/dist/cdn/G3X5PJBU.js +4 -0
- package/dist/cdn/G4ZBUVBC.js +4 -0
- package/dist/cdn/G5BSE2YX.js +4 -0
- package/dist/cdn/G67FPLAV.js +4 -0
- package/dist/cdn/G6P2IPOV.js +4 -0
- package/dist/cdn/G7VOASX7.js +4 -0
- package/dist/cdn/GAJYVHIS.js +4 -0
- package/dist/cdn/GBMXCZSI.js +4 -0
- package/dist/cdn/GCIVWN5G.js +4 -0
- package/dist/cdn/GFVB5WCA.js +4 -0
- package/dist/cdn/GHCMHRLN.js +4 -0
- package/dist/cdn/GICJLERO.js +4 -0
- package/dist/cdn/GJWK5ONN.js +4 -0
- package/dist/cdn/GKWNKRTT.js +4 -0
- package/dist/cdn/GNQZZ6Q5.js +4 -0
- package/dist/cdn/GSTP2BF4.js +4 -0
- package/dist/cdn/GTXDHJNF.js +4 -0
- package/dist/cdn/GUK5APOJ.js +4 -0
- package/dist/cdn/GVR4ORYJ.js +4 -0
- package/dist/cdn/GYC7KWI3.js +4 -0
- package/dist/cdn/GZTHTXSS.js +4 -0
- package/dist/cdn/H276AKKN.js +4 -0
- package/dist/cdn/H2YZRZNV.js +4 -0
- package/dist/cdn/H6VPBYCI.js +4 -0
- package/dist/cdn/H7E2DNED.js +4 -0
- package/dist/cdn/HAMH3TRR.js +5470 -0
- package/dist/cdn/HHMSR6IA.js +4 -0
- package/dist/cdn/HHTTO5AJ.js +4 -0
- package/dist/cdn/HK4MY7MU.js +4 -0
- package/dist/cdn/HKIW62MP.js +4 -0
- package/dist/cdn/HKOLBMBT.js +4 -0
- package/dist/cdn/HO43CSE3.js +4 -0
- package/dist/cdn/HOHFM77H.js +4 -0
- package/dist/cdn/HP5KMK3A.js +4 -0
- package/dist/cdn/HQCFUBSN.js +4 -0
- package/dist/cdn/HQJCO4YI.js +4 -0
- package/dist/cdn/HSTEZPIP.js +4 -0
- package/dist/cdn/HWPNEVGI.js +4 -0
- package/dist/cdn/HXXAWSX6.js +4 -0
- package/dist/cdn/HY2YLTEX.js +4 -0
- package/dist/cdn/HY7S4ZHU.js +4 -0
- package/dist/cdn/I2OQHIH2.js +4 -0
- package/dist/cdn/I4KK4ZLU.js +4 -0
- package/dist/cdn/I6M2EW4R.js +4 -0
- package/dist/cdn/IDJ3T3BU.js +4 -0
- package/dist/cdn/IGB5OXGL.js +4 -0
- package/dist/cdn/IGKKSXPB.js +4 -0
- package/dist/cdn/IIUVHSOM.js +4 -0
- package/dist/cdn/IJFNEDSU.js +4 -0
- package/dist/cdn/INUGFLOY.js +4 -0
- package/dist/cdn/IPCSNAUF.js +4 -0
- package/dist/cdn/IRNCLHXS.js +4 -0
- package/dist/cdn/ISGYZUH5.js +4 -0
- package/dist/cdn/ITHMCU4U.js +4 -0
- package/dist/cdn/IV2AHFDA.js +4 -0
- package/dist/cdn/IVE5FVJ4.js +4 -0
- package/dist/cdn/IWM2ES42.js +4 -0
- package/dist/cdn/J2QHKRZC.js +4 -0
- package/dist/cdn/J4GXDCBP.js +4 -0
- package/dist/cdn/J5SGIU2N.js +4 -0
- package/dist/cdn/JAUFSYFI.js +4 -0
- package/dist/cdn/JBYNDJFK.js +59 -0
- package/dist/cdn/JCFC6LJP.js +4 -0
- package/dist/cdn/JDFUIKMI.js +4 -0
- package/dist/cdn/JFYQXOQ6.js +4 -0
- package/dist/cdn/JG53KGYL.js +4 -0
- package/dist/cdn/JGSDUR3D.js +4 -0
- package/dist/cdn/JHKBDXWR.js +4 -0
- package/dist/cdn/JLITWA6U.js +4 -0
- package/dist/cdn/JMYKSBE6.js +4 -0
- package/dist/cdn/JPOV2TOZ.js +4 -0
- package/dist/cdn/JQGWJZLV.js +4 -0
- package/dist/cdn/JQMP3DDM.js +4 -0
- package/dist/cdn/JWTFBP7C.js +4 -0
- package/dist/cdn/JXLZPII7.js +4 -0
- package/dist/cdn/JZAMIVKF.js +4 -0
- package/dist/cdn/K2FQLLSH.js +4 -0
- package/dist/cdn/K3B2FEZU.js +4 -0
- package/dist/cdn/K6UUFPHW.js +4 -0
- package/dist/cdn/K7FOZAFP.js +4 -0
- package/dist/cdn/K7SQT3HJ.js +4 -0
- package/dist/cdn/KAS6K32H.js +4 -0
- package/dist/cdn/KBAJAY3Q.js +4 -0
- package/dist/cdn/KDSLNBRX.js +24 -0
- package/dist/cdn/KEFQESGA.js +4 -0
- package/dist/cdn/KF6PXT2R.js +6 -0
- package/dist/cdn/KFDS2UKJ.js +4 -0
- package/dist/cdn/KG62KFST.js +4 -0
- package/dist/cdn/KJDRCUPK.js +4 -0
- package/dist/cdn/KKOIYDC7.js +4 -0
- package/dist/cdn/KLP6HSWP.js +4 -0
- package/dist/cdn/KMXAS4HH.js +4 -0
- package/dist/cdn/KOWHPG4A.js +4 -0
- package/dist/cdn/KPPV67XZ.js +4 -0
- package/dist/cdn/KQE7F6VA.js +4 -0
- package/dist/cdn/KUIT6PMP.js +4 -0
- package/dist/cdn/KYTKAE3Y.js +4 -0
- package/dist/cdn/KZEUCZGF.js +4 -0
- package/dist/cdn/L2FZL2BM.js +8 -0
- package/dist/cdn/L3PBG44A.js +4 -0
- package/dist/cdn/L3Z6MSWR.js +4 -0
- package/dist/cdn/L76XUP7F.js +4 -0
- package/dist/cdn/LAMOKFKS.js +4 -0
- package/dist/cdn/LB6IODBM.js +4 -0
- package/dist/cdn/LCSQ5RO3.js +4 -0
- package/dist/cdn/LEZU5ZZ3.js +4 -0
- package/dist/cdn/LGF4RNXN.js +4 -0
- package/dist/cdn/LGTFGREQ.js +4 -0
- package/dist/cdn/LH3AI2UU.js +4 -0
- package/dist/cdn/LHDE2SK3.js +4 -0
- package/dist/cdn/LHPYGLTT.js +4 -0
- package/dist/cdn/LHQIU77J.js +4 -0
- package/dist/cdn/LLQ5ZSQ7.js +4 -0
- package/dist/cdn/LM5JTMJ3.js +4 -0
- package/dist/cdn/LMSHPSTN.js +4 -0
- package/dist/cdn/LO76LP7K.js +4 -0
- package/dist/cdn/LRB3RB5B.js +4 -0
- package/dist/cdn/LRDOGIG6.js +4 -0
- package/dist/cdn/LSJA5FBS.js +4 -0
- package/dist/cdn/LX6SKS4J.js +4 -0
- package/dist/cdn/LYRURE76.js +4 -0
- package/dist/cdn/M4EAIX7J.js +4 -0
- package/dist/cdn/M4LQGDRM.js +4 -0
- package/dist/cdn/M6TE3QFV.js +4 -0
- package/dist/cdn/M7S5CA5N.js +4 -0
- package/dist/cdn/MAJ3BYED.js +4 -0
- package/dist/cdn/MARB2KPP.js +4 -0
- package/dist/cdn/MBHVPNIN.js +4 -0
- package/dist/cdn/MCISHNKU.js +4 -0
- package/dist/cdn/MEPXMOTE.js +4 -0
- package/dist/cdn/MF2462WC.js +4 -0
- package/dist/cdn/MKLPYHCN.js +4 -0
- package/dist/cdn/MM5G62MJ.js +5 -0
- package/dist/cdn/MQEIQHLV.js +4 -0
- package/dist/cdn/MRJAIJEU.js +4 -0
- package/dist/cdn/MX7OVGEN.js +4 -0
- package/dist/cdn/MXDQNYPS.js +4 -0
- package/dist/cdn/N4HJDKQP.js +4 -0
- package/dist/cdn/N5FF22TV.js +4 -0
- package/dist/cdn/N6XDSY46.js +4 -0
- package/dist/cdn/N7TUF3VY.js +4 -0
- package/dist/cdn/NCJIBH42.js +4 -0
- package/dist/cdn/NGUGLN6F.js +4 -0
- package/dist/cdn/NHML7J5F.js +4 -0
- package/dist/cdn/NIAF77HW.js +4 -0
- package/dist/cdn/NKQ7IDSF.js +4 -0
- package/dist/cdn/NLZRAFDS.js +4 -0
- package/dist/cdn/NMUWS6IZ.js +4 -0
- package/dist/cdn/NNS3E3VF.js +4 -0
- package/dist/cdn/NOKL74EQ.js +4 -0
- package/dist/cdn/NQN7DTRL.js +4 -0
- package/dist/cdn/NR75SE4S.js +4 -0
- package/dist/cdn/NT5L6C5T.js +4 -0
- package/dist/cdn/NWCQJX55.js +4 -0
- package/dist/cdn/NYYURULS.js +4 -0
- package/dist/cdn/NZE2WNTF.js +4 -0
- package/dist/cdn/O2LWPI5O.js +4 -0
- package/dist/cdn/O4ADFWUC.js +4 -0
- package/dist/cdn/O4TARAW2.js +4 -0
- package/dist/cdn/O5SCMEG4.js +4 -0
- package/dist/cdn/OAXOIY5K.js +4 -0
- package/dist/cdn/OJ2SZGQV.js +4 -0
- package/dist/cdn/OMTJUW3Y.js +4 -0
- package/dist/cdn/ONOYYIW2.js +4 -0
- package/dist/cdn/ONYQJI7H.js +4 -0
- package/dist/cdn/OPUXRGPB.js +4 -0
- package/dist/cdn/OPYHRPEO.js +4 -0
- package/dist/cdn/OQXZ7VYO.js +4 -0
- package/dist/cdn/OTKT5IMB.js +4 -0
- package/dist/cdn/OU4BKKK6.js +4 -0
- package/dist/cdn/OVFCU2OA.js +4 -0
- package/dist/cdn/OXSR665Z.js +4 -0
- package/dist/cdn/OY5JRQB7.js +4 -0
- package/dist/cdn/OYITJCZB.js +4 -0
- package/dist/cdn/OZ3U4754.js +4 -0
- package/dist/cdn/P3FYAYNY.js +4 -0
- package/dist/cdn/P3OMJWY5.js +4 -0
- package/dist/cdn/P3Q3C5J4.js +4 -0
- package/dist/cdn/P547KTMP.js +4 -0
- package/dist/cdn/P54DHZC5.js +4 -0
- package/dist/cdn/P5J2EZET.js +4 -0
- package/dist/cdn/P5KCI7NK.js +4 -0
- package/dist/cdn/PF7DB2OB.js +4 -0
- package/dist/cdn/PFG5DAY2.js +4 -0
- package/dist/cdn/PHR2JAD6.js +4 -0
- package/dist/cdn/PHYAUBHF.js +4 -0
- package/dist/cdn/PJ6IXFN3.js +4 -0
- package/dist/cdn/PLSZVDWP.js +4 -0
- package/dist/cdn/PMXFQH5J.js +4 -0
- package/dist/cdn/PPALU6ZB.js +4 -0
- package/dist/cdn/PQKFVHXI.js +4 -0
- package/dist/cdn/PQZ3LY7A.js +4 -0
- package/dist/cdn/PRU6UJDX.js +4 -0
- package/dist/cdn/PTSA5DJ7.js +4 -0
- package/dist/cdn/PVV2EWHT.js +4 -0
- package/dist/cdn/PWBD74AP.js +4 -0
- package/dist/cdn/PWOQFVYA.js +12 -0
- package/dist/cdn/PWTPKLAK.js +4 -0
- package/dist/cdn/PXG4LKUH.js +4 -0
- package/dist/cdn/PXGQBIEO.js +4 -0
- package/dist/cdn/PYE6RZZ5.js +4 -0
- package/dist/cdn/Q2EOVSFZ.js +4 -0
- package/dist/cdn/Q2RBMMWK.js +4 -0
- package/dist/cdn/Q4DRZ7RV.js +4 -0
- package/dist/cdn/Q4UCVCJO.js +4 -0
- package/dist/cdn/Q5B5X272.js +4 -0
- package/dist/cdn/Q64UGY6C.js +4 -0
- package/dist/cdn/Q6QBCYLR.js +4 -0
- package/dist/cdn/QBCHP22G.js +16 -0
- package/dist/cdn/QGOASJPQ.js +4 -0
- package/dist/cdn/QHKUKHNX.js +4 -0
- package/dist/cdn/QJO24RUF.js +4 -0
- package/dist/cdn/QMTPJVSI.js +4 -0
- package/dist/cdn/QOR2X655.js +4 -0
- package/dist/cdn/QTRSYCGA.js +5 -0
- package/dist/cdn/QUMGLFSR.js +4 -0
- package/dist/cdn/QWRZVZ7U.js +4 -0
- package/dist/cdn/QX6R654Q.js +4 -0
- package/dist/cdn/QYJ7HMJA.js +4 -0
- package/dist/cdn/QYQSDD22.js +4 -0
- package/dist/cdn/QZAGUBD3.js +4 -0
- package/dist/cdn/QZDKMH6C.js +4 -0
- package/dist/cdn/R26LVT4B.js +4 -0
- package/dist/cdn/R3O3IQ2C.js +4 -0
- package/dist/cdn/RDRM3OS6.js +4 -0
- package/dist/cdn/RDXM6XNX.js +4 -0
- package/dist/cdn/RE6RJMEZ.js +4 -0
- package/dist/cdn/RFQMDI2U.js +4 -0
- package/dist/cdn/RHKKW2LO.js +4 -0
- package/dist/cdn/RK222BYK.js +4 -0
- package/dist/cdn/RMPV3TWJ.js +4 -0
- package/dist/cdn/ROICXNGM.js +4 -0
- package/dist/cdn/ROKVX73E.js +4 -0
- package/dist/cdn/RRYGZ6ZW.js +11 -0
- package/dist/cdn/RS2FFBQ2.js +4 -0
- package/dist/cdn/RT4BJCDX.js +4 -0
- package/dist/cdn/RTCHHTJH.js +4 -0
- package/dist/cdn/RUESGWG3.js +4 -0
- package/dist/cdn/RXXNMLMU.js +4 -0
- package/dist/cdn/RXYWG4RO.js +4 -0
- package/dist/cdn/RZ7YXHFT.js +4 -0
- package/dist/cdn/S3GCTZ32.js +4 -0
- package/dist/cdn/S3HQP2TL.js +4 -0
- package/dist/cdn/S4XUMRN7.js +4 -0
- package/dist/cdn/S5356PWW.js +4 -0
- package/dist/cdn/S5ADQIOS.js +4 -0
- package/dist/cdn/S6IWTOGV.js +4 -0
- package/dist/cdn/S777QLJL.js +4 -0
- package/dist/cdn/SA7D3VV4.js +4 -0
- package/dist/cdn/SAFVTC52.js +4 -0
- package/dist/cdn/SBIVB2TA.js +4 -0
- package/dist/cdn/SDQWGANT.js +4 -0
- package/dist/cdn/SEACVVKB.js +4 -0
- package/dist/cdn/SECT4XUS.js +4 -0
- package/dist/cdn/SEPX63BD.js +4 -0
- package/dist/cdn/SI4CQ4VS.js +4 -0
- package/dist/cdn/SKLLD2EB.js +4 -0
- package/dist/cdn/SRRNBAJU.js +4 -0
- package/dist/cdn/SSVQXIFA.js +4 -0
- package/dist/cdn/SWGJIGRX.js +4 -0
- package/dist/cdn/SYKBQNHH.js +4 -0
- package/dist/cdn/SYZMKW2C.js +4 -0
- package/dist/cdn/SZR2BOLG.js +4 -0
- package/dist/cdn/SZYBAUOE.js +4 -0
- package/dist/cdn/T5FUF3GE.js +4 -0
- package/dist/cdn/T5U47K3Y.js +4 -0
- package/dist/cdn/T6D3ZYPX.js +4 -0
- package/dist/cdn/T7GP6XNG.js +4 -0
- package/dist/cdn/TA3P5TV4.js +4 -0
- package/dist/cdn/TCBZPADL.js +4 -0
- package/dist/cdn/TFL3M7Y5.js +4 -0
- package/dist/cdn/THKL7OST.js +4 -0
- package/dist/cdn/TJIT4F7F.js +4 -0
- package/dist/cdn/TLFVEBKN.js +4 -0
- package/dist/cdn/TPKEW5I5.js +4 -0
- package/dist/cdn/TPLXFAAB.js +4 -0
- package/dist/cdn/TQCAASGP.js +4 -0
- package/dist/cdn/TQVBTOHR.js +4 -0
- package/dist/cdn/TYJIOEX6.js +4 -0
- package/dist/cdn/TYWA5DJK.js +4 -0
- package/dist/cdn/U23AA3CL.js +4 -0
- package/dist/cdn/U2ACEA2S.js +4 -0
- package/dist/cdn/U6UND6S2.js +4 -0
- package/dist/cdn/U7J5DSUK.js +4 -0
- package/dist/cdn/UDK2APTZ.js +4 -0
- package/dist/cdn/UDO3FUT4.js +4 -0
- package/dist/cdn/UFFGUFYR.js +4 -0
- package/dist/cdn/UFNHW664.js +51 -0
- package/dist/cdn/UKGDG3OG.js +4 -0
- package/dist/cdn/UKH7H7MU.js +4 -0
- package/dist/cdn/UMHNHMIL.js +4 -0
- package/dist/cdn/UT3SH2UY.js +4 -0
- package/dist/cdn/UUCEZCI3.js +4 -0
- package/dist/cdn/UV2DATWV.js +4 -0
- package/dist/cdn/UVZRCQF4.js +4 -0
- package/dist/cdn/UWWEPHK7.js +4 -0
- package/dist/cdn/UYUN7LOC.js +4 -0
- package/dist/cdn/UZCMX3E6.js +4 -0
- package/dist/cdn/V2GDKEGG.js +4 -0
- package/dist/cdn/V5FYZAZW.js +4 -0
- package/dist/cdn/VB2SZ7TZ.js +4 -0
- package/dist/cdn/VBL5YNNI.js +4 -0
- package/dist/cdn/VBXQYILB.js +4 -0
- package/dist/cdn/VCOKMU7P.js +4 -0
- package/dist/cdn/VENDCOLA.js +4 -0
- package/dist/cdn/VFJXRIRH.js +4 -0
- package/dist/cdn/VIL7PMKS.js +4 -0
- package/dist/cdn/VK4UGQ5A.js +4 -0
- package/dist/cdn/VM5KW3SC.js +4 -0
- package/dist/cdn/VMAUS53U.js +4 -0
- package/dist/cdn/VN37EODI.js +4 -0
- package/dist/cdn/VPL3LSPU.js +4 -0
- package/dist/cdn/VQPLJUFN.js +4 -0
- package/dist/cdn/VR2V2IHW.js +4 -0
- package/dist/cdn/VSP6I44H.js +4 -0
- package/dist/cdn/VUBNLKGZ.js +4 -0
- package/dist/cdn/VUQP57FB.js +6 -0
- package/dist/cdn/VVONJFXC.js +4 -0
- package/dist/cdn/VVXAOYNQ.js +4 -0
- package/dist/cdn/VWTSYMUX.js +4 -0
- package/dist/cdn/W3OKPEZV.js +4 -0
- package/dist/cdn/W3QQLZLF.js +4 -0
- package/dist/cdn/W4F4UOTR.js +4 -0
- package/dist/cdn/W5XA6A5L.js +4 -0
- package/dist/cdn/W6PKTNE3.js +4 -0
- package/dist/cdn/W76RJ523.js +4 -0
- package/dist/cdn/WEHD5LUO.js +4 -0
- package/dist/cdn/WEWV2CAZ.js +4 -0
- package/dist/cdn/WMUWYXLQ.js +5 -0
- package/dist/cdn/WQPJ7RGC.js +4 -0
- package/dist/cdn/WRVW4DUL.js +4 -0
- package/dist/cdn/WXE3P52G.js +4 -0
- package/dist/cdn/WZ4VBMAZ.js +4 -0
- package/dist/cdn/X3FKKDWI.js +4 -0
- package/dist/cdn/X5JH6LI6.js +4 -0
- package/dist/cdn/X75DEBFM.js +4 -0
- package/dist/cdn/X7ONKRZU.js +4 -0
- package/dist/cdn/X7TO6UV4.js +4 -0
- package/dist/cdn/XBPDDS6L.js +4 -0
- package/dist/cdn/XBPFZJ3C.js +4 -0
- package/dist/cdn/XD6BY3RV.js +4 -0
- package/dist/cdn/XEHPMASD.js +4 -0
- package/dist/cdn/XHCAWPIQ.js +4 -0
- package/dist/cdn/XHQG6OOX.js +4 -0
- package/dist/cdn/XM6LAYQV.js +4 -0
- package/dist/cdn/XM7K5DKH.js +4 -0
- package/dist/cdn/XMBTSTTB.js +4 -0
- package/dist/cdn/XOBUDULM.js +4 -0
- package/dist/cdn/XPALNHQ5.js +4 -0
- package/dist/cdn/XQ5T3NPQ.js +42 -0
- package/dist/cdn/XRQK3Z3Z.js +4 -0
- package/dist/cdn/XRSNCL4S.js +4 -0
- package/dist/cdn/Y4KTCRRG.js +4 -0
- package/dist/cdn/Y4OMF47Y.js +4 -0
- package/dist/cdn/Y7ZTG6IV.js +4 -0
- package/dist/cdn/YAUDRDAQ.js +4 -0
- package/dist/cdn/YB3RR4ZX.js +4 -0
- package/dist/cdn/YE2BV74E.js +4 -0
- package/dist/cdn/YGNVZHFH.js +4 -0
- package/dist/cdn/YHMUDRR7.js +4 -0
- package/dist/cdn/YI6FLGMF.js +4 -0
- package/dist/cdn/YIOFUKJ6.js +4 -0
- package/dist/cdn/YIYTWWXY.js +4 -0
- package/dist/cdn/YJB3H4SX.js +4 -0
- package/dist/cdn/YKNBYBRF.js +4 -0
- package/dist/cdn/YLC4XO7Z.js +4 -0
- package/dist/cdn/YLKNFSLW.js +4 -0
- package/dist/cdn/YNHCSWIL.js +4 -0
- package/dist/cdn/YP2YKWME.js +4 -0
- package/dist/cdn/YQFR3NJN.js +4 -0
- package/dist/cdn/YSRCWZZ7.js +4 -0
- package/dist/cdn/YWC2JRJV.js +4 -0
- package/dist/cdn/YXZRNRJT.js +4 -0
- package/dist/cdn/Z224U4AA.js +4 -0
- package/dist/cdn/Z2GBEJGZ.js +4 -0
- package/dist/cdn/Z3CHPAWA.js +4 -0
- package/dist/cdn/Z3KRTHRQ.js +4 -0
- package/dist/cdn/Z4RYAXAN.js +4 -0
- package/dist/cdn/Z5DFE6ZN.js +8 -0
- package/dist/cdn/Z7M2ZJVY.js +4 -0
- package/dist/cdn/Z7NMKSI5.js +4 -0
- package/dist/cdn/Z7T46DNO.js +4 -0
- package/dist/cdn/ZAPTXHFS.js +4 -0
- package/dist/cdn/ZCDCUPLB.js +4 -0
- package/dist/cdn/ZH22RCNU.js +4 -0
- package/dist/cdn/ZKRKK37N.js +12 -0
- package/dist/cdn/ZLLS2KN6.js +4 -0
- package/dist/cdn/ZOT5QA53.js +4 -0
- package/dist/cdn/ZOTY5OWR.js +4 -0
- package/dist/cdn/ZPCNGWJZ.js +4 -0
- package/dist/cdn/ZPJ667DU.js +4 -0
- package/dist/cdn/ZRCXZLI4.js +4 -0
- package/dist/cdn/ZRL4ZHSW.js +4 -0
- package/dist/cdn/ZUAFRV2T.js +4 -0
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/findColumnAndNodeIndex.js +1 -1
- package/dist/chunks/getResponsiveClasses.js +1 -1
- package/dist/chunks/interpolate-translations.js +1 -1
- package/dist/chunks/isNodeVisible.js +1 -1
- package/dist/chunks/layoutContext.js +1 -1
- package/dist/chunks/migrateTextCard.js +1 -1
- package/dist/chunks/processLayout.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/state.js +1 -1
- package/dist/chunks/typeGuards.js +1 -1
- package/dist/chunks/useGlobalContext.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/chunks/util.js +1 -1
- package/dist/components/arcgis-chat-shell/customElement.js +1 -1
- package/dist/components/arcgis-chat-ui/customElement.js +1 -1
- package/dist/components/arcgis-chat-ui/functional/chat-action/customElement.js +1 -1
- package/dist/components/arcgis-chat-ui/functional/chat-response/customElement.js +1 -1
- package/dist/components/arcgis-hub-ai-assistant/customElement.js +1 -1
- package/dist/components/arcgis-hub-entity-associations-card/customElement.js +1 -1
- package/dist/components/arcgis-hub-entity-metrics-card/customElement.js +1 -1
- package/dist/components/arcgis-hub-entity-status-card/customElement.js +1 -1
- package/dist/components/arcgis-hub-entity-view-layout/customElement.js +1 -1
- package/dist/components/arcgis-layout/customElement.js +1 -1
- package/dist/components/arcgis-layout-column/customElement.js +1 -1
- package/dist/components/arcgis-layout-container/customElement.js +10 -10
- package/dist/components/arcgis-layout-editor-toolbar/customElement.js +1 -1
- package/dist/components/arcgis-layout-node-controls/customElement.js +1 -1
- package/dist/components/arcgis-layout-node-editor/customElement.js +1 -1
- package/dist/components/arcgis-layout-node-editor/layout-node-editor-dynamic-tag/customElement.js +1 -1
- package/dist/components/arcgis-layout-node-wrapper/customElement.js +1 -1
- package/dist/components/arcgis-layout-row/customElement.js +1 -1
- package/dist/components/arcgis-layout-section/customElement.js +1 -1
- package/dist/components/arcgis-nav-card/customElement.js +1 -1
- package/dist/components/arcgis-text-card/customElement.js +1 -1
- package/dist/components/layouts/components/layout-node/customElement.js +1 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/dist/embed-config.js +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/package.json +1 -1
- package/dist/cdn/23DFNR5W.js +0 -4
- package/dist/cdn/247YX6UX.js +0 -4
- package/dist/cdn/24NKSYZ5.js +0 -4
- package/dist/cdn/252COTYJ.js +0 -4
- package/dist/cdn/2BI3SA4J.js +0 -4
- package/dist/cdn/2BYNNHUG.js +0 -4
- package/dist/cdn/2HG74B2C.js +0 -4
- package/dist/cdn/2IMBSFAO.js +0 -4
- package/dist/cdn/2Q66MLVY.js +0 -4
- package/dist/cdn/2TIRNDKV.js +0 -4
- package/dist/cdn/2TPGZZC5.js +0 -4
- package/dist/cdn/2W6SOTVM.js +0 -4
- package/dist/cdn/2WJGYC77.js +0 -4
- package/dist/cdn/2WLQ5JOM.js +0 -4
- package/dist/cdn/327AQL24.js +0 -4
- package/dist/cdn/32ZTR2P2.js +0 -4
- package/dist/cdn/342YESPX.js +0 -4
- package/dist/cdn/35CFLCYL.js +0 -4
- package/dist/cdn/35YB27OZ.js +0 -4
- package/dist/cdn/366PKAWJ.js +0 -6
- package/dist/cdn/36EWRCSE.js +0 -4
- package/dist/cdn/37TIBIX4.js +0 -4
- package/dist/cdn/37U3OBY7.js +0 -4
- package/dist/cdn/3AL42NLL.js +0 -4
- package/dist/cdn/3BT5AIOF.js +0 -4
- package/dist/cdn/3BYTDTWJ.js +0 -4
- package/dist/cdn/3FJQIHVV.js +0 -4
- package/dist/cdn/3FNBXQN5.js +0 -8
- package/dist/cdn/3G6G5HAR.js +0 -4
- package/dist/cdn/3GM6RSP7.js +0 -4
- package/dist/cdn/3J3ANGYP.js +0 -4
- package/dist/cdn/3JVI3EMD.js +0 -4
- package/dist/cdn/3P4PSFF5.js +0 -4
- package/dist/cdn/3PPJLNK2.js +0 -4
- package/dist/cdn/3SIWBUIC.js +0 -4
- package/dist/cdn/3SQ5XCI4.js +0 -4
- package/dist/cdn/3TJHWYKF.js +0 -4
- package/dist/cdn/3TNKSJG6.js +0 -4
- package/dist/cdn/3TQBGZY4.js +0 -4
- package/dist/cdn/3UE7MFMJ.js +0 -4
- package/dist/cdn/3WFWVXXU.js +0 -4
- package/dist/cdn/3WI2PJW7.js +0 -4
- package/dist/cdn/3WNPRJTI.js +0 -4
- package/dist/cdn/3WPKLKTH.js +0 -4
- package/dist/cdn/42QT6XKL.js +0 -4
- package/dist/cdn/43S4ZRZ6.js +0 -4
- package/dist/cdn/44KTYE4A.js +0 -4
- package/dist/cdn/44OMQG7R.js +0 -4
- package/dist/cdn/45JKNTZK.js +0 -4
- package/dist/cdn/45KKLUEZ.js +0 -4
- package/dist/cdn/45OXTPWH.js +0 -4
- package/dist/cdn/466H3MKY.js +0 -4
- package/dist/cdn/4AGMEFOG.js +0 -4
- package/dist/cdn/4CUKWN6A.js +0 -4
- package/dist/cdn/4DVFCVIO.js +0 -4
- package/dist/cdn/4ELRJZLG.js +0 -4
- package/dist/cdn/4GZNYIY4.js +0 -4
- package/dist/cdn/4JIUEVZH.js +0 -4
- package/dist/cdn/4PVSTR2O.js +0 -4
- package/dist/cdn/4Q3ZYBX6.js +0 -4
- package/dist/cdn/4VWZHITG.js +0 -4
- package/dist/cdn/4X7GWMFQ.js +0 -4
- package/dist/cdn/4YB5ISE5.js +0 -4
- package/dist/cdn/4ZOYDV66.js +0 -4
- package/dist/cdn/54D5PXK2.js +0 -4
- package/dist/cdn/54R46NPN.js +0 -4
- package/dist/cdn/55UU2L6W.js +0 -4
- package/dist/cdn/55Y6CTHN.js +0 -4
- package/dist/cdn/56QTPUMN.js +0 -4
- package/dist/cdn/56Y6TBYP.js +0 -5
- package/dist/cdn/5BLZQU6M.js +0 -4
- package/dist/cdn/5DEVZOSH.js +0 -4
- package/dist/cdn/5FA6T4S2.js +0 -4
- package/dist/cdn/5GVREOSA.js +0 -4
- package/dist/cdn/5IJ5WNSY.js +0 -4
- package/dist/cdn/5JDUFSFB.js +0 -4
- package/dist/cdn/5LXLEFL4.js +0 -4
- package/dist/cdn/5NAVVZVB.js +0 -4
- package/dist/cdn/5NWMKQK2.js +0 -4
- package/dist/cdn/5T7UUDPW.js +0 -4
- package/dist/cdn/5UMWZA4S.js +0 -4
- package/dist/cdn/5XNCOTKW.js +0 -4
- package/dist/cdn/5XV75OID.js +0 -5470
- package/dist/cdn/5YU5IZMA.js +0 -4
- package/dist/cdn/5Z3R62BW.js +0 -5
- package/dist/cdn/5ZL3QTV2.js +0 -4
- package/dist/cdn/62ETDWQS.js +0 -4
- package/dist/cdn/62LCUMR6.js +0 -6
- package/dist/cdn/62V6QHFS.js +0 -4
- package/dist/cdn/65J7VCGP.js +0 -4
- package/dist/cdn/65XKDHPE.js +0 -4
- package/dist/cdn/6BQDGFDG.js +0 -4
- package/dist/cdn/6CINOQI6.js +0 -4
- package/dist/cdn/6CNLUO5M.js +0 -4
- package/dist/cdn/6DM5QBLU.js +0 -4
- package/dist/cdn/6ENTXYOW.js +0 -4
- package/dist/cdn/6H3O76X6.js +0 -4
- package/dist/cdn/6JZDKCVR.js +0 -4
- package/dist/cdn/6MV6VE72.js +0 -4
- package/dist/cdn/6NY5NHJT.js +0 -4
- package/dist/cdn/6OPHIPTA.js +0 -4
- package/dist/cdn/6OZG2QCE.js +0 -4
- package/dist/cdn/6QFJ6EQM.js +0 -4
- package/dist/cdn/6UPBWZEV.js +0 -4
- package/dist/cdn/6UWGYV4A.js +0 -4
- package/dist/cdn/6W3F5A57.js +0 -4
- package/dist/cdn/6XQF2BY7.js +0 -4
- package/dist/cdn/75Z6PQX2.js +0 -4
- package/dist/cdn/76ODF2ZC.js +0 -4
- package/dist/cdn/7A6NLQYN.js +0 -4
- package/dist/cdn/7D3W7VKD.js +0 -4
- package/dist/cdn/7DHC3YHM.js +0 -4
- package/dist/cdn/7EOT2YM3.js +0 -12
- package/dist/cdn/7FIH2D6H.js +0 -4
- package/dist/cdn/7FRQ2S2C.js +0 -4
- package/dist/cdn/7G4IAOAB.js +0 -4
- package/dist/cdn/7IGMDG46.js +0 -4
- package/dist/cdn/7JVGCLDR.js +0 -4
- package/dist/cdn/7L6FNHMS.js +0 -4
- package/dist/cdn/7LUAK6BW.js +0 -4
- package/dist/cdn/7NQGNPJS.js +0 -4
- package/dist/cdn/7OBIU5SN.js +0 -4
- package/dist/cdn/7OS65ZA3.js +0 -4
- package/dist/cdn/7STSSL3L.js +0 -4
- package/dist/cdn/7TIUDTMH.js +0 -4
- package/dist/cdn/7W4GYEEZ.js +0 -4
- package/dist/cdn/7W6UKQVI.js +0 -4
- package/dist/cdn/7Y2TS73H.js +0 -4
- package/dist/cdn/7YOSSFCF.js +0 -4
- package/dist/cdn/7ZX5YCR7.js +0 -4
- package/dist/cdn/A32ZRAT4.js +0 -4
- package/dist/cdn/A46VYNTH.js +0 -4
- package/dist/cdn/A6UO3BBZ.js +0 -4
- package/dist/cdn/AAUTFXPX.js +0 -4
- package/dist/cdn/AAXBTTYR.js +0 -4
- package/dist/cdn/ABBZZXDD.js +0 -4
- package/dist/cdn/ADMMRW2D.js +0 -4
- package/dist/cdn/AFPIUXCW.js +0 -4
- package/dist/cdn/AH62BJBM.js +0 -4
- package/dist/cdn/AH6DDGMA.js +0 -4
- package/dist/cdn/AJUT46CH.js +0 -51
- package/dist/cdn/ALTLWY54.js +0 -4
- package/dist/cdn/AMEYWY3Z.js +0 -4
- package/dist/cdn/ANUSZH4J.js +0 -4
- package/dist/cdn/AO5HXIOZ.js +0 -4
- package/dist/cdn/AOG5VV33.js +0 -4
- package/dist/cdn/APMYQ4Q3.js +0 -4
- package/dist/cdn/ASUOEJLX.js +0 -4
- package/dist/cdn/AVHDXXXK.js +0 -4
- package/dist/cdn/AW4DJ36U.js +0 -4
- package/dist/cdn/AWIR4TZZ.js +0 -4
- package/dist/cdn/AX3YAAEU.js +0 -4
- package/dist/cdn/AYTUTBBZ.js +0 -4
- package/dist/cdn/B7P4TNAK.js +0 -4
- package/dist/cdn/B7Q26C6A.js +0 -4
- package/dist/cdn/B7XHYF74.js +0 -4
- package/dist/cdn/BGRKJZ36.js +0 -4
- package/dist/cdn/BJQ53UKX.js +0 -4
- package/dist/cdn/BLDCAMYI.js +0 -6
- package/dist/cdn/BMDWL7UA.js +0 -4
- package/dist/cdn/BMV7SNOQ.js +0 -4
- package/dist/cdn/BRDPZA7U.js +0 -4
- package/dist/cdn/BRY5NATQ.js +0 -4
- package/dist/cdn/BYVZ453Z.js +0 -4
- package/dist/cdn/BYZKRA6W.js +0 -4
- package/dist/cdn/BZHL7RAH.js +0 -4
- package/dist/cdn/C4I34NZZ.js +0 -4
- package/dist/cdn/CAF6ZJB5.js +0 -4
- package/dist/cdn/CASVVB3L.js +0 -4
- package/dist/cdn/CCGHGMMC.js +0 -4
- package/dist/cdn/CCU7QSTL.js +0 -4
- package/dist/cdn/CDLNJVAX.js +0 -4
- package/dist/cdn/CDWZ4S7J.js +0 -4
- package/dist/cdn/CE7LGM7B.js +0 -4
- package/dist/cdn/CFKHHYAD.js +0 -4
- package/dist/cdn/CGSL553A.js +0 -4
- package/dist/cdn/CH6SCBPW.js +0 -4
- package/dist/cdn/CHUYMD7P.js +0 -4
- package/dist/cdn/CIN4W6UB.js +0 -4
- package/dist/cdn/CJJISNUW.js +0 -4
- package/dist/cdn/CJO6EL34.js +0 -4
- package/dist/cdn/CK4UKNUI.js +0 -4
- package/dist/cdn/CKYCLHIG.js +0 -4
- package/dist/cdn/CLNOQM5R.js +0 -4
- package/dist/cdn/CPJUJP3G.js +0 -4
- package/dist/cdn/CS6MGJQO.js +0 -4
- package/dist/cdn/CSTIUTYZ.js +0 -4
- package/dist/cdn/CUKFO4UO.js +0 -4
- package/dist/cdn/CZBPQLN5.js +0 -4
- package/dist/cdn/D3ATGTTM.js +0 -4
- package/dist/cdn/D7A5TOJK.js +0 -4
- package/dist/cdn/DBCTANFI.js +0 -4
- package/dist/cdn/DCUK3QGK.js +0 -4
- package/dist/cdn/DDRJ3E47.js +0 -5
- package/dist/cdn/DEGVUDKH.js +0 -4
- package/dist/cdn/DF2JQJ47.js +0 -4
- package/dist/cdn/DFUXY44J.js +0 -4
- package/dist/cdn/DG6NH42E.js +0 -4
- package/dist/cdn/DGLGW5E5.js +0 -4
- package/dist/cdn/DIKA5NN7.js +0 -4
- package/dist/cdn/DL23JAVM.js +0 -4
- package/dist/cdn/DMATKBWY.js +0 -4
- package/dist/cdn/DOKOZ6AO.js +0 -4
- package/dist/cdn/DP5LRGRE.js +0 -4
- package/dist/cdn/DPIFEGCA.js +0 -4
- package/dist/cdn/DQG3R2ON.js +0 -4
- package/dist/cdn/DRILUTHB.js +0 -4
- package/dist/cdn/DSWH3BSZ.js +0 -4
- package/dist/cdn/DV7YVTBM.js +0 -4
- package/dist/cdn/DW2VE6RB.js +0 -4
- package/dist/cdn/E4S3VMJ4.js +0 -4
- package/dist/cdn/E4VKNN7Z.js +0 -4
- package/dist/cdn/E55PIZTP.js +0 -59
- package/dist/cdn/E5WTEMI4.js +0 -4
- package/dist/cdn/E5ZRBHF6.js +0 -4
- package/dist/cdn/E7EC6IY6.js +0 -4
- package/dist/cdn/EAYJYAVD.js +0 -4
- package/dist/cdn/EBZ2LG2B.js +0 -4
- package/dist/cdn/EEIFQP4J.js +0 -4
- package/dist/cdn/EGN5K4R5.js +0 -4
- package/dist/cdn/EK24XXPC.js +0 -4
- package/dist/cdn/EL3KJKD4.js +0 -4
- package/dist/cdn/ELJW6376.js +0 -4
- package/dist/cdn/EMIMWH6T.js +0 -4
- package/dist/cdn/ETE7XFXI.js +0 -4
- package/dist/cdn/EUAXXENR.js +0 -4
- package/dist/cdn/EVRWTMYM.js +0 -4
- package/dist/cdn/EWNXAGVT.js +0 -4
- package/dist/cdn/EWWZKLPK.js +0 -9
- package/dist/cdn/EX7PGREB.js +0 -4
- package/dist/cdn/EXF5JSJO.js +0 -4
- package/dist/cdn/F2VAPLVS.js +0 -4
- package/dist/cdn/F4A7BCAB.js +0 -4
- package/dist/cdn/F4CHQB7A.js +0 -4
- package/dist/cdn/F4LZ6RO6.js +0 -4
- package/dist/cdn/F5G6TONB.js +0 -4
- package/dist/cdn/F7A7SLF4.js +0 -4
- package/dist/cdn/F7TPJBS3.js +0 -4
- package/dist/cdn/FAQU7HTI.js +0 -4
- package/dist/cdn/FBV3NDOE.js +0 -4
- package/dist/cdn/FDT6EODX.js +0 -4
- package/dist/cdn/FFH3GE5N.js +0 -4
- package/dist/cdn/FGOBZCPD.js +0 -4
- package/dist/cdn/FH7RLODQ.js +0 -4
- package/dist/cdn/FMO5ZJZY.js +0 -4
- package/dist/cdn/FO5HNNQK.js +0 -4
- package/dist/cdn/FRYBR3OJ.js +0 -4
- package/dist/cdn/FT3DWPUV.js +0 -4
- package/dist/cdn/FTKWZI5L.js +0 -4
- package/dist/cdn/FU63GIO4.js +0 -59
- package/dist/cdn/FUVW45UR.js +0 -4
- package/dist/cdn/FW6UYUEH.js +0 -4
- package/dist/cdn/FXAJIOWF.js +0 -4
- package/dist/cdn/FYBK6DCU.js +0 -4
- package/dist/cdn/G2B6TAF6.js +0 -4
- package/dist/cdn/G4WCZJVY.js +0 -4
- package/dist/cdn/G4ZPDJ3Y.js +0 -4
- package/dist/cdn/G5J2F7BI.js +0 -4
- package/dist/cdn/G7B5OTNU.js +0 -4
- package/dist/cdn/G7EB7CWF.js +0 -4
- package/dist/cdn/G7GL66AO.js +0 -4
- package/dist/cdn/G7N3K5AN.js +0 -4
- package/dist/cdn/GADY4YUN.js +0 -4
- package/dist/cdn/GC6CE3CY.js +0 -4
- package/dist/cdn/GC7WLTET.js +0 -4
- package/dist/cdn/GLR3J25Y.js +0 -4
- package/dist/cdn/GMKBHQWV.js +0 -4
- package/dist/cdn/GNLVP4IJ.js +0 -4
- package/dist/cdn/GNWX56CS.js +0 -4
- package/dist/cdn/GNYEHBW4.js +0 -4
- package/dist/cdn/GOCIVQUH.js +0 -4
- package/dist/cdn/GRAT6OTK.js +0 -4
- package/dist/cdn/GTMNMLKM.js +0 -4
- package/dist/cdn/GUVKV5M3.js +0 -4
- package/dist/cdn/GXU5XVLA.js +0 -4
- package/dist/cdn/GYBCKIDG.js +0 -4
- package/dist/cdn/GYVUDB4U.js +0 -4
- package/dist/cdn/GZNZKB6P.js +0 -4
- package/dist/cdn/GZUT4DFD.js +0 -4
- package/dist/cdn/H3SWYVNN.js +0 -4
- package/dist/cdn/H7OT62WA.js +0 -4
- package/dist/cdn/HALJ7WMY.js +0 -4
- package/dist/cdn/HB7EZ2ZP.js +0 -4
- package/dist/cdn/HDENKLHA.js +0 -4
- package/dist/cdn/HDLBWUYW.js +0 -4
- package/dist/cdn/HFNLNZH6.js +0 -4
- package/dist/cdn/HH6U56OQ.js +0 -4
- package/dist/cdn/HIZH425Y.js +0 -4
- package/dist/cdn/HLEUL3UB.js +0 -4
- package/dist/cdn/HM664JSM.js +0 -4
- package/dist/cdn/HMDWP2DJ.js +0 -4
- package/dist/cdn/HMHP7ZZG.js +0 -4
- package/dist/cdn/HN7UDL4V.js +0 -4
- package/dist/cdn/HOLPAUC5.js +0 -4
- package/dist/cdn/HP6ORTCD.js +0 -4
- package/dist/cdn/HPJDMA7O.js +0 -4
- package/dist/cdn/HSVEEM3Y.js +0 -4
- package/dist/cdn/HTD3KYFP.js +0 -4
- package/dist/cdn/HVZR3ZJ4.js +0 -4
- package/dist/cdn/HYBGRFWL.js +0 -4
- package/dist/cdn/I2N2WBWH.js +0 -4
- package/dist/cdn/I55YHPN2.js +0 -4
- package/dist/cdn/I5LZZ22S.js +0 -4
- package/dist/cdn/I6BHGMP2.js +0 -4
- package/dist/cdn/I7OBGBIS.js +0 -4
- package/dist/cdn/ICFH6C3K.js +0 -4
- package/dist/cdn/IDUOUPGE.js +0 -4
- package/dist/cdn/IGBBNK7E.js +0 -4
- package/dist/cdn/IGEJG5RK.js +0 -4
- package/dist/cdn/IGNZWKJ4.js +0 -4
- package/dist/cdn/IHS6H6EM.js +0 -4
- package/dist/cdn/IKIWWVFN.js +0 -4
- package/dist/cdn/ILNQM4AV.js +0 -4
- package/dist/cdn/ILOMSOVO.js +0 -4
- package/dist/cdn/IMIUUVYJ.js +0 -4
- package/dist/cdn/IQDGKBPB.js +0 -4
- package/dist/cdn/IQR2QBLV.js +0 -4
- package/dist/cdn/IRR2H653.js +0 -4
- package/dist/cdn/ITAC6FCQ.js +0 -4
- package/dist/cdn/ITEKAOCD.js +0 -4
- package/dist/cdn/IU3W6AZH.js +0 -4
- package/dist/cdn/IUB4NLTX.js +0 -4
- package/dist/cdn/IXLF7OFC.js +0 -4
- package/dist/cdn/IXQ2D2UD.js +0 -4
- package/dist/cdn/IZAXN2RG.js +0 -4
- package/dist/cdn/IZJRDP5O.js +0 -4
- package/dist/cdn/J24HGSWW.js +0 -4
- package/dist/cdn/J5RLAHD6.js +0 -4
- package/dist/cdn/J5URYDSE.js +0 -4
- package/dist/cdn/JDJ3QCJQ.js +0 -4
- package/dist/cdn/JDOO34KU.js +0 -4
- package/dist/cdn/JE3BJVEU.js +0 -4
- package/dist/cdn/JGSGXI45.js +0 -4
- package/dist/cdn/JHSIBMAJ.js +0 -4
- package/dist/cdn/JIC2PYUZ.js +0 -4
- package/dist/cdn/JIOD2AHM.js +0 -4
- package/dist/cdn/JKVJOSHJ.js +0 -4
- package/dist/cdn/JRVQSAOH.js +0 -4
- package/dist/cdn/JSRL36VR.js +0 -4
- package/dist/cdn/JSXYXVK4.js +0 -4
- package/dist/cdn/JULJQFML.js +0 -4
- package/dist/cdn/K3AAT7NV.js +0 -4
- package/dist/cdn/K4HN3KFS.js +0 -4
- package/dist/cdn/K5R53VRG.js +0 -4
- package/dist/cdn/K6J2TWAV.js +0 -4
- package/dist/cdn/K7RE2Z5G.js +0 -4
- package/dist/cdn/KATZZYL2.js +0 -4
- package/dist/cdn/KIYW4AKB.js +0 -4
- package/dist/cdn/KKYQVYK2.js +0 -4
- package/dist/cdn/KMB72W5K.js +0 -4
- package/dist/cdn/KNCQUAJ5.js +0 -42
- package/dist/cdn/KNFSQOWX.js +0 -4
- package/dist/cdn/KNQ5JMOP.js +0 -4
- package/dist/cdn/KOQ54Y7Q.js +0 -4
- package/dist/cdn/KQR4Y6QS.js +0 -4
- package/dist/cdn/KS65KGU5.js +0 -4
- package/dist/cdn/KTMJJFZ4.js +0 -4
- package/dist/cdn/KXDOQU35.js +0 -4
- package/dist/cdn/KYIP52BY.js +0 -4
- package/dist/cdn/L3FBVXJL.js +0 -4
- package/dist/cdn/L4C3AP4D.js +0 -4
- package/dist/cdn/L52RSGDN.js +0 -8
- package/dist/cdn/L6KLIJST.js +0 -4
- package/dist/cdn/L6SIN7UD.js +0 -4
- package/dist/cdn/L7ASKEHG.js +0 -4
- package/dist/cdn/LA5MMRNU.js +0 -4
- package/dist/cdn/LAQUDDOG.js +0 -4
- package/dist/cdn/LDUYUOPE.js +0 -16
- package/dist/cdn/LGMKLR7F.js +0 -4
- package/dist/cdn/LGTQBWCT.js +0 -4
- package/dist/cdn/LHD62QUH.js +0 -4
- package/dist/cdn/LHQX5AWC.js +0 -4
- package/dist/cdn/LII6ONKK.js +0 -4
- package/dist/cdn/LIIBFABL.js +0 -4
- package/dist/cdn/LLJXXMNP.js +0 -4
- package/dist/cdn/LNFHZJH3.js +0 -4
- package/dist/cdn/LNKBILYM.js +0 -4
- package/dist/cdn/LOEG2TI2.js +0 -4
- package/dist/cdn/LOQOFLZB.js +0 -4
- package/dist/cdn/LP4MDOEZ.js +0 -4
- package/dist/cdn/LPNDWNQJ.js +0 -4
- package/dist/cdn/LRHNAS3G.js +0 -4
- package/dist/cdn/LRXECYNW.js +0 -4
- package/dist/cdn/LSAJV7KC.js +0 -4
- package/dist/cdn/LU73QQW4.js +0 -4
- package/dist/cdn/LVUBOFWG.js +0 -4
- package/dist/cdn/LWBK57H4.js +0 -4
- package/dist/cdn/LYFJLDBD.js +0 -4
- package/dist/cdn/LYVPE2BC.js +0 -4
- package/dist/cdn/M4YKTLXP.js +0 -4
- package/dist/cdn/M5NHZHXV.js +0 -4
- package/dist/cdn/M6672E2H.js +0 -4
- package/dist/cdn/M7DGT7SE.js +0 -4
- package/dist/cdn/M7P7THKQ.js +0 -4
- package/dist/cdn/M7W2SEWL.js +0 -4
- package/dist/cdn/MBBVJV2V.js +0 -4
- package/dist/cdn/MEHA3ILA.js +0 -4
- package/dist/cdn/MEZ65IM7.js +0 -4
- package/dist/cdn/MJCTD5AB.js +0 -4
- package/dist/cdn/MJXIG5KL.js +0 -4
- package/dist/cdn/MK3CK6XL.js +0 -4
- package/dist/cdn/MQRPFNQC.js +0 -4
- package/dist/cdn/MRIT4ZFO.js +0 -4
- package/dist/cdn/MRQVGHUZ.js +0 -4
- package/dist/cdn/MSWRIF6L.js +0 -4
- package/dist/cdn/MUNIECVM.js +0 -4
- package/dist/cdn/MYEVNCFH.js +0 -4
- package/dist/cdn/N2CHHVFR.js +0 -4
- package/dist/cdn/N6NZ7K4K.js +0 -4
- package/dist/cdn/N6PFLNQS.js +0 -4
- package/dist/cdn/NC2GGDLV.js +0 -4
- package/dist/cdn/NCJ7QKG4.js +0 -4
- package/dist/cdn/NESZ3TYE.js +0 -4
- package/dist/cdn/NFR4ZUEZ.js +0 -4
- package/dist/cdn/NHKBEWKI.js +0 -4
- package/dist/cdn/NINBHAEI.js +0 -4
- package/dist/cdn/NKIHCRTJ.js +0 -4
- package/dist/cdn/NO4AHNTD.js +0 -5
- package/dist/cdn/NT4QZKOK.js +0 -4
- package/dist/cdn/NXA6ZM5K.js +0 -4
- package/dist/cdn/NXMH4A6X.js +0 -4
- package/dist/cdn/O5GQL67D.js +0 -4
- package/dist/cdn/O6XP6BHD.js +0 -4
- package/dist/cdn/O7EOIHD5.js +0 -4
- package/dist/cdn/OCOIXZXA.js +0 -4
- package/dist/cdn/OD6Y5IVF.js +0 -4
- package/dist/cdn/OE55LWYT.js +0 -4
- package/dist/cdn/OFLLJHDT.js +0 -4
- package/dist/cdn/OG43NUGK.js +0 -4
- package/dist/cdn/OIDEW6LG.js +0 -4
- package/dist/cdn/OK4ZSC25.js +0 -4
- package/dist/cdn/OLBI36R6.js +0 -4
- package/dist/cdn/OLGSCCZR.js +0 -4
- package/dist/cdn/OLTFXO7V.js +0 -4
- package/dist/cdn/OMFIN33Z.js +0 -4
- package/dist/cdn/ONUSJCRL.js +0 -4
- package/dist/cdn/OPI2CQER.js +0 -4
- package/dist/cdn/OQNCPY3N.js +0 -4
- package/dist/cdn/OQUWYOIZ.js +0 -4
- package/dist/cdn/OVCTD2ZC.js +0 -4
- package/dist/cdn/OW7EGHSJ.js +0 -4
- package/dist/cdn/OWR2YYD7.js +0 -4
- package/dist/cdn/P2MZ5IXH.js +0 -4
- package/dist/cdn/P5Z2YMSD.js +0 -4
- package/dist/cdn/P64QV7C6.js +0 -4
- package/dist/cdn/PAFJLXFP.js +0 -4
- package/dist/cdn/PAWYSE7W.js +0 -4
- package/dist/cdn/PC3U5BGI.js +0 -4
- package/dist/cdn/PCUVGHQ3.js +0 -4
- package/dist/cdn/PDRPQO6H.js +0 -4
- package/dist/cdn/PEWPPQQG.js +0 -4
- package/dist/cdn/PFDRKKKZ.js +0 -4
- package/dist/cdn/PGVRIAKH.js +0 -4
- package/dist/cdn/PGWNWCUQ.js +0 -4
- package/dist/cdn/PKCUGT56.js +0 -4
- package/dist/cdn/PKLZBVN3.js +0 -4
- package/dist/cdn/PNOPNBV4.js +0 -4
- package/dist/cdn/POHH4676.js +0 -4
- package/dist/cdn/POHNPGIZ.js +0 -4
- package/dist/cdn/POHSLDON.js +0 -4
- package/dist/cdn/PP2EQVFL.js +0 -4
- package/dist/cdn/PPCS2V56.js +0 -4
- package/dist/cdn/PPJ2YHT5.js +0 -4
- package/dist/cdn/PSA33SOU.js +0 -4
- package/dist/cdn/PTNS7HWG.js +0 -41
- package/dist/cdn/PUABOGG5.js +0 -4
- package/dist/cdn/PUEU7Y25.js +0 -4
- package/dist/cdn/PXCFYH7E.js +0 -4
- package/dist/cdn/PXTN457H.js +0 -11
- package/dist/cdn/Q23GP2NU.js +0 -4
- package/dist/cdn/Q2H6P3CC.js +0 -4
- package/dist/cdn/Q5TRJROO.js +0 -4
- package/dist/cdn/QBLRS3AA.js +0 -4
- package/dist/cdn/QGF3HN2H.js +0 -4
- package/dist/cdn/QH7NCZ4B.js +0 -4
- package/dist/cdn/QLDHDEW2.js +0 -4
- package/dist/cdn/QMEG6ZKK.js +0 -4
- package/dist/cdn/QPLAZYYT.js +0 -4
- package/dist/cdn/QREEMF5D.js +0 -4
- package/dist/cdn/QTWUVEZS.js +0 -4
- package/dist/cdn/QVQ3ZPSE.js +0 -4
- package/dist/cdn/QVSOEAWI.js +0 -4
- package/dist/cdn/QVUFHY4S.js +0 -4
- package/dist/cdn/QWDXDXJ3.js +0 -12
- package/dist/cdn/QWU7QSFG.js +0 -4
- package/dist/cdn/R7KFMCVR.js +0 -4
- package/dist/cdn/R7YZCTEY.js +0 -4
- package/dist/cdn/RBYJDMRP.js +0 -4
- package/dist/cdn/RCKCIQDI.js +0 -25
- package/dist/cdn/RIA2PZE3.js +0 -4
- package/dist/cdn/RIUBYOWD.js +0 -4
- package/dist/cdn/RN557Y64.js +0 -4
- package/dist/cdn/RNDB4PKC.js +0 -4
- package/dist/cdn/RR5LJSZV.js +0 -4
- package/dist/cdn/RUG6Z742.js +0 -4
- package/dist/cdn/RVGFE4XI.js +0 -4
- package/dist/cdn/RYRO2DQI.js +0 -4
- package/dist/cdn/RZGRQQZV.js +0 -4
- package/dist/cdn/S46V4AHT.js +0 -4
- package/dist/cdn/S57TLAGR.js +0 -4
- package/dist/cdn/S6DA3GKU.js +0 -4
- package/dist/cdn/S77RSIBX.js +0 -4
- package/dist/cdn/SAEJJISK.js +0 -5
- package/dist/cdn/SBETABLY.js +0 -4
- package/dist/cdn/SBZ5VCWI.js +0 -4
- package/dist/cdn/SEJFQJFQ.js +0 -4
- package/dist/cdn/SGG5LMGG.js +0 -4
- package/dist/cdn/SIL6OYQD.js +0 -4
- package/dist/cdn/SJMYYOPS.js +0 -4
- package/dist/cdn/SLYQALM6.js +0 -4
- package/dist/cdn/SNJFT42L.js +0 -4
- package/dist/cdn/STR3HZLS.js +0 -4
- package/dist/cdn/SUEJFOY6.js +0 -4
- package/dist/cdn/SUTC2XG5.js +0 -4
- package/dist/cdn/SVC4BPOE.js +0 -4
- package/dist/cdn/SWM3B4XJ.js +0 -4
- package/dist/cdn/SXCNLMR2.js +0 -4
- package/dist/cdn/SYD7L3CC.js +0 -4
- package/dist/cdn/T3EL4CTE.js +0 -4
- package/dist/cdn/T3FDRTDQ.js +0 -4
- package/dist/cdn/T4MW57S7.js +0 -4
- package/dist/cdn/T4TW42FV.js +0 -4
- package/dist/cdn/T5YOZX7F.js +0 -4
- package/dist/cdn/T6RLOBJQ.js +0 -4
- package/dist/cdn/T6ZJO7HL.js +0 -4
- package/dist/cdn/T7LHQQW2.js +0 -4
- package/dist/cdn/TA6DBTVN.js +0 -4
- package/dist/cdn/TAY33M4C.js +0 -4
- package/dist/cdn/TCBCDJ6A.js +0 -4
- package/dist/cdn/TEER57FE.js +0 -4
- package/dist/cdn/TGTCPBAF.js +0 -4
- package/dist/cdn/TJGPF56P.js +0 -4
- package/dist/cdn/TKRDRBTD.js +0 -4
- package/dist/cdn/TNMOAVG5.js +0 -4
- package/dist/cdn/TRFZO2XZ.js +0 -4
- package/dist/cdn/TS7DOFA6.js +0 -4
- package/dist/cdn/TSZ6P4FZ.js +0 -4
- package/dist/cdn/TU7RR222.js +0 -4
- package/dist/cdn/TUVBYQLR.js +0 -4
- package/dist/cdn/TVIRVLDE.js +0 -4
- package/dist/cdn/TVOHHVVE.js +0 -4
- package/dist/cdn/TVQB6BDH.js +0 -4
- package/dist/cdn/TWZVZAKS.js +0 -4
- package/dist/cdn/U2OE324N.js +0 -4
- package/dist/cdn/U5OWLFVR.js +0 -4
- package/dist/cdn/U5QWHDJY.js +0 -4
- package/dist/cdn/U6CSXDNJ.js +0 -4
- package/dist/cdn/UBNS3HZH.js +0 -4
- package/dist/cdn/UCFCJ6DG.js +0 -4
- package/dist/cdn/UD7NMQBC.js +0 -4
- package/dist/cdn/UFDUUCXW.js +0 -4
- package/dist/cdn/UG5V3SJV.js +0 -4
- package/dist/cdn/UGR5VKH7.js +0 -4
- package/dist/cdn/UH7GBDT6.js +0 -4
- package/dist/cdn/UNLDFK4A.js +0 -4
- package/dist/cdn/UOPZ5P3Q.js +0 -4
- package/dist/cdn/UOSKPENQ.js +0 -4
- package/dist/cdn/UPC4I723.js +0 -4
- package/dist/cdn/UX555NPM.js +0 -4
- package/dist/cdn/UXCRRIGA.js +0 -4
- package/dist/cdn/UXFL2V5Y.js +0 -4
- package/dist/cdn/UYNLDE4Y.js +0 -4
- package/dist/cdn/UZ5S5XWU.js +0 -4
- package/dist/cdn/V2BPJS26.js +0 -4
- package/dist/cdn/V2NOB4TW.js +0 -4
- package/dist/cdn/V2PC3OYU.js +0 -4
- package/dist/cdn/V3NBT5GS.js +0 -4
- package/dist/cdn/V6R6D6QQ.js +0 -4
- package/dist/cdn/VDEQ46HP.js +0 -4
- package/dist/cdn/VHEKHIQN.js +0 -4
- package/dist/cdn/VIJIBCKZ.js +0 -4
- package/dist/cdn/VKF3GOUM.js +0 -4
- package/dist/cdn/VLAFJ5ZC.js +0 -4
- package/dist/cdn/VMYMXW5C.js +0 -4
- package/dist/cdn/VNEYYIET.js +0 -4
- package/dist/cdn/VSF47BVN.js +0 -4
- package/dist/cdn/VZR2VCW7.js +0 -4
- package/dist/cdn/VZRDWOH2.js +0 -4
- package/dist/cdn/W2WYUGL4.js +0 -4
- package/dist/cdn/W3PHOWGH.js +0 -4
- package/dist/cdn/W47ZO4CP.js +0 -4
- package/dist/cdn/W4AWVUWG.js +0 -4
- package/dist/cdn/WBGQXLBE.js +0 -4
- package/dist/cdn/WEACU77L.js +0 -4
- package/dist/cdn/WHWZW6KB.js +0 -4
- package/dist/cdn/WIDOLHKR.js +0 -4
- package/dist/cdn/WIPNSKYW.js +0 -24
- package/dist/cdn/WO5INMBQ.js +0 -4
- package/dist/cdn/WOHWJV3J.js +0 -4
- package/dist/cdn/WPLHORUT.js +0 -4
- package/dist/cdn/WTT3ZDJX.js +0 -4
- package/dist/cdn/WURT5OGC.js +0 -4
- package/dist/cdn/WUVRXUWC.js +0 -4
- package/dist/cdn/WXVNWE3D.js +0 -4
- package/dist/cdn/WZNS34V3.js +0 -4
- package/dist/cdn/X4L5R3G7.js +0 -4
- package/dist/cdn/X7QRLL2S.js +0 -4
- package/dist/cdn/X7TTRCUD.js +0 -4
- package/dist/cdn/X7YZL33H.js +0 -4
- package/dist/cdn/X7ZEAWTB.js +0 -4
- package/dist/cdn/XECQTVWI.js +0 -4
- package/dist/cdn/XFNRSGDF.js +0 -4
- package/dist/cdn/XFYO5IG3.js +0 -4
- package/dist/cdn/XG4XM57U.js +0 -4
- package/dist/cdn/XILBQDJI.js +0 -4
- package/dist/cdn/XJ7VU5JR.js +0 -4
- package/dist/cdn/XOMLRIJN.js +0 -4
- package/dist/cdn/XPDBNQPQ.js +0 -4
- package/dist/cdn/XQBCWDJT.js +0 -4
- package/dist/cdn/XQK5ICNM.js +0 -4
- package/dist/cdn/XS46CDNM.js +0 -4
- package/dist/cdn/XS7Y2NVM.js +0 -4
- package/dist/cdn/XTE6GBGM.js +0 -4
- package/dist/cdn/XVBQWDJQ.js +0 -4
- package/dist/cdn/XVGUXLF6.js +0 -4
- package/dist/cdn/XXKJLL2J.js +0 -4
- package/dist/cdn/XZII3L3G.js +0 -4
- package/dist/cdn/Y3M3MYJJ.js +0 -4
- package/dist/cdn/Y7DEAI7Z.js +0 -4
- package/dist/cdn/YA5DNHSO.js +0 -4
- package/dist/cdn/YAWTZOWY.js +0 -4
- package/dist/cdn/YBE6NAAI.js +0 -4
- package/dist/cdn/YDUSDQWH.js +0 -5
- package/dist/cdn/YEXIF5NM.js +0 -4
- package/dist/cdn/YHECU4IW.js +0 -4
- package/dist/cdn/YJHPR3QZ.js +0 -4
- package/dist/cdn/YK3UCJX4.js +0 -4
- package/dist/cdn/YLL5F7KE.js +0 -4
- package/dist/cdn/YMKXFTWA.js +0 -4
- package/dist/cdn/YNT7SH3A.js +0 -4
- package/dist/cdn/YODUQ6TL.js +0 -4
- package/dist/cdn/YOFVXHL5.js +0 -4
- package/dist/cdn/YOTP7O64.js +0 -4
- package/dist/cdn/YQHKDZLO.js +0 -4
- package/dist/cdn/YWORZWTI.js +0 -4
- package/dist/cdn/YXBTWL75.js +0 -4
- package/dist/cdn/YY5R4RCR.js +0 -4
- package/dist/cdn/YYRM35JP.js +0 -4
- package/dist/cdn/YYSDOYB2.js +0 -4
- package/dist/cdn/YZNI5Y24.js +0 -4
- package/dist/cdn/YZVYDZAR.js +0 -4
- package/dist/cdn/Z35U3PWM.js +0 -4
- package/dist/cdn/Z476O47D.js +0 -4
- package/dist/cdn/Z5TTLQKA.js +0 -4
- package/dist/cdn/ZBWIRPOV.js +0 -4
- package/dist/cdn/ZDG53UDI.js +0 -4
- package/dist/cdn/ZEUNNVPD.js +0 -4
- package/dist/cdn/ZFKHD4BS.js +0 -4
- package/dist/cdn/ZK3HFZBZ.js +0 -52
- package/dist/cdn/ZL2JWPGP.js +0 -4
- package/dist/cdn/ZLKRUFIB.js +0 -4
- package/dist/cdn/ZN3OHNQU.js +0 -4
- package/dist/cdn/ZOV6MR3C.js +0 -4
- package/dist/cdn/ZSKG4N3O.js +0 -4
- package/dist/cdn/ZSU5ZYAA.js +0 -4
- package/dist/cdn/ZY2ZCZL7.js +0 -4
- package/dist/cdn/ZYACMKQM.js +0 -4
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.32/esri/copyright.txt for details.
|
|
3
|
+
v0.32.2 */
|
|
4
|
+
import{a as S}from"./N5FF22TV.js";import{a as _}from"./BAWSEWCV.js";import{a as z}from"./QGOASJPQ.js";import{a as f}from"./NQN7DTRL.js";import{a as m}from"./E2R2PH55.js";import{c as W}from"./377WZC66.js";import{a as D}from"./ETW2GQTK.js";import{a as k}from"./M7S5CA5N.js";import{g as A}from"./BV2LPZO4.js";import"./EORYXF4D.js";import"./NZE2WNTF.js";import"./2OKQ6BLU.js";import"./IGKKSXPB.js";import"./FWVL4M3D.js";import"./QTRSYCGA.js";import"./UT3SH2UY.js";import"./SRRNBAJU.js";import"./DRY7KMLN.js";import"./A6UBAVGJ.js";import"./FWTILN5X.js";import"./OMTJUW3Y.js";import"./L3Z6MSWR.js";import"./TFL3M7Y5.js";import"./U23AA3CL.js";import"./SEPX63BD.js";import"./KOWHPG4A.js";import"./JQGWJZLV.js";import"./Q4DRZ7RV.js";import"./MARB2KPP.js";import"./7ABFRZGV.js";import"./DSJYJUTO.js";import"./RFQMDI2U.js";import"./LHQIU77J.js";import"./KKOIYDC7.js";import"./3H2FOLDY.js";import"./P5KCI7NK.js";import"./W6PKTNE3.js";import"./327UUWS5.js";import"./OZ3U4754.js";import"./S5ADQIOS.js";import"./NMUWS6IZ.js";import"./ROKVX73E.js";import{J as P}from"./W5XA6A5L.js";import"./S3HQP2TL.js";import"./4HKRH4ZE.js";import"./AZW7Y3P5.js";import{H as T,I as x}from"./N7TUF3VY.js";import"./PHR2JAD6.js";import"./7ULZUZEN.js";import"./W3OKPEZV.js";import"./HY7S4ZHU.js";import"./34R2ZMFF.js";import"./MQEIQHLV.js";import"./7IS3FIQG.js";import"./ZKRKK37N.js";import"./LM5JTMJ3.js";import"./NKQ7IDSF.js";import"./2RMQLAQJ.js";import"./F5PP5ZNZ.js";import"./JXLZPII7.js";import"./JMYKSBE6.js";import"./R26LVT4B.js";import"./6XTOFD2P.js";import"./U6UND6S2.js";import{m as M,n as b,o as U}from"./RZ7YXHFT.js";import"./Z4RYAXAN.js";import"./O4ADFWUC.js";import"./ALWK4YFG.js";import"./PQKFVHXI.js";import"./SDQWGANT.js";import"./3TIPC4VW.js";import"./C5PRVJKH.js";import"./P54DHZC5.js";import"./6E56PNG7.js";import"./HK4MY7MU.js";import"./WXE3P52G.js";import"./AWOXQW27.js";import"./UZCMX3E6.js";import"./75B44T4C.js";import"./NHML7J5F.js";import"./JLITWA6U.js";import{c as H,g as u}from"./5HL7N6S3.js";import"./XRSNCL4S.js";import"./M6TE3QFV.js";import"./FUVWCLBF.js";import"./YWC2JRJV.js";import"./ER64A4V3.js";import"./7VUN2F7P.js";import{a as h}from"./2ZTJHITH.js";import{o as C}from"./ARGXE7D2.js";import"./EFTM7OCO.js";import"./4ZGSSI5T.js";import"./PF7DB2OB.js";import{a as R}from"./DX2GLZPZ.js";import{a as O}from"./CH2NWUER.js";import"./QYJ7HMJA.js";import"./3VUD6CFD.js";import{a as n}from"./BIYDKFNV.js";import"./XEHPMASD.js";import{b as o,c as j,d as F,e as v,i as I}from"./YKNBYBRF.js";import{a as p}from"./NOKL74EQ.js";import{a as d}from"./PXG4LKUH.js";import"./JWTFBP7C.js";import"./BXWSNP7O.js";import"./2NHSOGQB.js";export default $arcgis.t(([])=>{var B={type:"object",properties:{catalog:A}},N=t=>{let{license:e,entityType:i,targetEntity:a,allowAppearanceEditing:s,callbacks:r}=t,l=i==="site"&&a==="event",g=i==="site"&&a==="item",c;g&&(c=z.filter(q=>!["contentstatus","group"].includes(q)));let L=i==="unmigrated-site"?K(a):{scopes:{item:{filters:Object.assign({max:e==="hub-premium"&&i!=="site"?void 0:1},i==="site"&&{predicates:{group:{operators:[S("isAny","group")]}}})},event:{filters:{max:1}}},collections:{allowConfig:!l,allowAdd:!0,allowDelete:!0,max:e==="hub-premium"?10:4,collectionPredicateProperties:c,scope:{allowConfig:!0,filters:{max:e==="hub-premium"&&a!=="event"?void 0:1}},display:{allowConfig:s}},display:{allowConfig:s&&!l}};return{type:"Layout",elements:[{scope:"/properties/catalog",type:"Control",options:{control:"arcgis-hub-catalog-builder",callbacks:r,targetEntity:a,uiOptions:L}}]}};function K(t){return{scopes:{item:{filters:{max:1,predicates:{group:{operators:[S("isAny","group")]}}}},event:{filters:{max:1}}},collections:{allowConfig:t!=="event",allowAdd:!1,allowDelete:!1,max:4,scope:{allowConfig:!1}}}}var $=8,Y=9,G=["item"],Z=["event"],Q=(t,e)=>{let i=d(t);return e&&e.filters&&(i.filters=[...t.filters,...e.filters]),E(i)},E=(t={})=>{let e=t.targetEntity,i=0;if(G.includes(e)&&t&&t.filters){let a=M(t),s=U(a),r=P(s).q;i=b(r)}else Z.includes(e)&&t&&(i=b(JSON.stringify(t)));return i},J=t=>{let e={},i=t?.scopes;i&&Object.values(i).forEach(s=>{e[s.targetEntity]=E(s)});let a=t?.collections||[];return a.length&&a.forEach(s=>{let r=i?i[s.targetEntity]:{};e[s.key]=Q(s.scope,r)}),e},V=(t,e,i,a)=>{let s=d(t);return s[i]=E(a),e?.forEach(r=>{r.targetEntity===i&&(s[r.key]=Q(r.scope,a))}),s},X=(t,e)=>{let i=d(t);return e.forEach(a=>{delete i[a]}),i},tt="arcgis-configuration-form{--arcgis-configuration-form-footer-negative-margin:0.75rem;--arcgis-configuration-form-footer-bg-color:var(--calcite-color-background)}arcgis-hub-notice{margin:0.5rem}.catalog-container{display:flex;flex-direction:column}.configure-catalog-button{width:-moz-fit-content;width:fit-content}.catalog-button-container{display:flex;flex-direction:row}.catalog-button-container>:not([hidden])~:not([hidden]){--tw-space-x-reverse:0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.reharvest-catalog-button{align-self:center;margin-inline-end:0.25rem}.reharvest-modal-body{display:flex;flex-direction:column;gap:0.5rem}.required-field-helper-text{padding-left:0.75rem}#sr-character-counter{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0}#delete-catalog{--calcite-dropdown-item-icon-color-hover:var(--calcite-color-status-danger);--calcite-dropdown-item-icon-color-press:var(--calcite-color-status-danger);--calcite-dropdown-item-text-color-press:var(--calcite-color-status-danger);--calcite-dropdown-item-text-color:var(--calcite-color-status-danger)}:host([is-mobile]) calcite-flow{width:var(--workspace-pane-width, auto)}",et=tt,w=function(t,e,i,a){var s=arguments.length,r=s<3?e:a===null?a=Object.getOwnPropertyDescriptor(e,i):a,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,e,i,a);else for(var g=t.length-1;g>=0;g--)(l=t[g])&&(r=(s<3?l(r):s>3?l(e,i,r):l(e,i))||r);return s>3&&r&&Object.defineProperty(e,i,r),r},y=class{constructor(t){I(this,t),this.arcgisHubWorkspaceEntityChange=v(this,"arcgisHubWorkspaceEntityChange",7),this.hubTelemetry=v(this,"hubTelemetry",7),this.handleResize=()=>{this.element&&(this.element.parentElement&&this.element.parentElement.offsetWidth<=340?this.element.style.setProperty("--workspace-pane-width",`${this.element.parentElement.offsetWidth}px`):this.element.style.removeProperty("--workspace-pane-width"))},this.translationFunc=(e,i,a)=>this._intl.t(e,i,a),this.closePanel=()=>{this.hubTelemetry.emit(Object.assign(Object.assign({},n.dictionary.category.interaction.action.close.label.panel),{details:"Catalog configuration"})),this._isConfigurationPanelOpen&&this._configureCatalogButtonRef&&this._configureCatalogButtonRef.setFocus&&this._configureCatalogButtonRef.setFocus(),this._isConfigurationPanelOpen=!1},this.getCalciteFlowRef=()=>this._calciteFlowRef,this.setPanelRef=e=>{e&&e.setFocus&&(this._panelRef=e,e.setFocus())},this.setConfigureButtonRef=e=>{e&&(this._configureCatalogButtonRef=e)},this.setCalciteFlowRef=e=>{e&&(this._calciteFlowRef=e)},this.setRenderedCollectionKey=e=>{this._renderedCollectionKey=e.detail},this.handlePanelOpen=()=>{this._isConfigurationPanelOpen=!0,this.hubTelemetry.emit(Object.assign(Object.assign({},n.dictionary.category.interaction.action.open.label.panel),{details:"Catalog configuration"})),this._panelRef&&this._panelRef.setFocus&&this._panelRef.setFocus()},this.handlePanelClose=()=>{this._hasUnsavedChanges?this._isDirtyStateModalOpen=!0:this.closePanel()},this.handleCollectionsRemoved=e=>{this._currentQuerySizes=X(this._currentQuerySizes,e)},this.handleCatalogScopeChange=(e,i)=>{var a;let s=d(this._catalog.scopes)||{};s[i]=e,this._currentQuerySizes=V(this._currentQuerySizes,(a=this._catalog)===null||a===void 0?void 0:a.collections,i,e)},this.handleDirtyStateModalAction=e=>{this._isDirtyStateModalOpen=!1,!e.detail&&(this._hasUnsavedChanges=!1,this.closePanel(),this.arcgisHubWorkspaceEntityChange.emit({isDirty:!1,entity:this.entity}))},this.handleCatalogChange=e=>{let{values:i,isValid:a}=e.detail;if(this._hasUnsavedChanges=!0,this._isTargetEntityScopeConfigured=f(this._targetEntity,i.catalog),a){let s=i.catalog;Object.keys(s.scopes).forEach(r=>{let l=s.scopes[r];l.filters=l.filters||[]}),this._catalog=s}this.arcgisHubWorkspaceEntityChange.emit({entity:i,isDirty:!0})},this.handleCatalogSave=async e=>{let i=h(this.entity),a=d(this.entity);a.catalog=e||this._catalog,await k(i,a,this._context),this.arcgisHubWorkspaceEntityChange.emit({entity:a,isDirty:!1}),this._hasUnsavedChanges=!1},this.handleConfigurationFormSave=async()=>{try{await this.handleCatalogSave(),u({title:this._intl.t("shared.publish.success.title"),message:"",configuration:{noticeType:"alert",autoClose:!0,autoCloseDuration:"fast",icon:!0,kind:"success",label:this._intl.t("shared.publish.success.title")}}),this.hubTelemetry.emit(Object.assign(Object.assign({},n.dictionary.category.content.action.update.label.catalog),{details:this._targetEntity,response:n.constants.response.SUCCESS}))}catch(e){p.error("Error saving catalog",e),u({title:this._intl.t("shared.publish.error.title"),message:"",configuration:{noticeType:"alert",autoClose:!0,autoCloseDuration:"fast",icon:!0,kind:"danger",label:this._intl.t("shared.publish.error.title")}}),this.hubTelemetry.emit(Object.assign(Object.assign({},n.dictionary.category.content.action.update.label.catalog),{details:this._targetEntity,response:n.constants.response.FAILURE}))}},this.handleResetCatalog=async()=>{this.toggleDeleteCatalogModal();let e=this._defaultCatalog();try{await this.handleCatalogSave(e),u({title:this._intl.t("deleteCatalog.deleteCatalogSuccess"),message:"",configuration:{noticeType:"alert",autoClose:!0,autoCloseDuration:"fast",icon:!0,kind:"success",label:this._intl.t("deleteCatalog.deleteCatalogSuccess")}}),this.hubTelemetry.emit(Object.assign(Object.assign({},n.dictionary.category.content.action.delete.label.catalog),{response:n.constants.response.SUCCESS}))}catch(i){p.error("Error resetting catalog",i),u({title:this._intl.t("deleteCatalog.deleteCatalogError"),message:"",configuration:{noticeType:"alert",autoClose:!0,autoCloseDuration:"fast",icon:!0,kind:"danger",label:this._intl.t("deleteCatalog.deleteCatalogError")}}),this.hubTelemetry.emit(Object.assign(Object.assign({},n.dictionary.category.content.action.delete.label.catalog),{response:n.constants.response.FAILURE}))}},this.entity=void 0,this.pane=void 0,this.isMobile=!1,this._catalog=void 0,this._isConfigurationPanelOpen=!1,this.footerSlotEl=void 0,this._editedCollectionKey=void 0,this._hasUnsavedChanges=!1,this._currentQuerySizes={},this._querySizeLimitReached=!1,this._isDirtyStateModalOpen=!1,this.isReharvestRequestLoading=!1,this.showReharvestWarningModal=!1,this.showDeleteCatalogWarningModal=!1,this.isSiteCatalogUpgradeModalOpen=!1,this._isUpgradingSiteCatalog=!1,R(this,"handleArcgisHubGalleryExecutedQuerySize","handleArcgisHubCollectionsBuilderEditedCollectionKeyChange","handleRebuildIndexClicked","openReharvestWarningModal","closeReharvestWarningModal","handleReharvestWarningModalClosed","handleReharvestCatalogConfirmed","toggleDeleteCatalogModal","openSiteCatalogUpgradeModal")}async componentWillLoad(){await this.loadTranslations(),this.init(),this.maybeOpenSiteCatalogUpgradeModal()}async loadTranslations(){this._intl=await O.loadIntlForComponent(this.element)}connectedCallback(){_.addHandler(this.element.parentElement,this.handleResize)}disconnectedCallback(){_.unobserve(this.element.parentElement)}maybeOpenSiteCatalogUpgradeModal(){this.showSiteCatalogUpgradeUi&&this.openSiteCatalogUpgradeModal()}init(){var t,e,i;this._catalog=(t=this.entity)===null||t===void 0?void 0:t.catalog,this._catalog&&(this._catalog.collections=(i=(e=this._catalog)===null||e===void 0?void 0:e.collections)===null||i===void 0?void 0:i.reduce((a,s)=>(!s.label&&T.includes(s.key)&&(s.label=this._intl.t(`defaultCollections.${s.key}`)),a.push(s),a),[])),this._currentQuerySizes=J(this._catalog),this._isTargetEntityScopeConfigured=f(this._targetEntity,this._catalog),this._editedCollectionKey=null,this._renderedCollectionKey=null,this._isConfigurationPanelOpen=!1,this._hasUnsavedChanges=!1}handleArcgisHubGalleryExecutedQuerySize(t){this._currentQuerySizes=Object.assign(Object.assign({},this._currentQuerySizes),{[this._renderedCollectionKey]:t.detail})}handleSiteCatalogUpgradeDialogClose(){this.isSiteCatalogUpgradeModalOpen&&(this.isSiteCatalogUpgradeModalOpen=!1,this.hubTelemetry.emit(Object.assign({},n.dictionary.category.interaction.action.close.label.modal.details.upgradeCatalog)))}handleSiteCatalogUpgradeStart(){this._isUpgradingSiteCatalog=!0}handleSiteCatalogUpgradeComplete(t){this._isUpgradingSiteCatalog=!1,this.hubTelemetry.emit(Object.assign(Object.assign({},n.dictionary.category.content.action.update.label.catalog.details.upgrade),{respose:n.constants.response.SUCCESS})),this.arcgisHubWorkspaceEntityChange.emit({entity:t.detail,isDirty:!1})}handleSiteCatalogUpgradeError(){this._isUpgradingSiteCatalog=!1,this.hubTelemetry.emit(Object.assign(Object.assign({},n.dictionary.category.content.action.update.label.catalog.details.upgrade),{response:n.constants.response.FAILURE}))}get _context(){return H()}get _entityType(){return h(this.entity)}get _hasCatalog(){return!!this._catalog}get _catalogBuilderUiSchema(){return N({license:this._context.hubLicense,entityType:this.showSiteCatalogUpgradeUi?"unmigrated-site":this._entityType,targetEntity:this._targetEntity,allowAppearanceEditing:C("hub:feature:catalogs:edit:appearance",this._context,this.entity).access,callbacks:{onCatalogScopeChangeCallback:this.handleCatalogScopeChange,onCollectionsRemovedCallback:this.handleCollectionsRemoved,onCollectionEditedKeyChange:this.handleArcgisHubCollectionsBuilderEditedCollectionKeyChange,calciteFlowRefCallback:this.getCalciteFlowRef}})}get _targetEntity(){let t;switch(this.pane){case"catalog-events":t="event";break;case"catalog-content":default:t="item";break}return t}get _catalogs(){return[this._catalog]}get _facets(){return[...W]}get _layoutOptions(){let t=["list","grid","table","map","compact"];return this._targetEntity==="event"&&t.push("calendar"),t}get showReharvestUi(){let t=h(this.entity),e=this.entity.catalog;return t==="site"&&this._targetEntity==="item"&&!this._context.isPortal&&f("item",e)}get showAddContentTemplatesDropdown(){return!window.location.origin.startsWith(this._context.hubHomeUrl)&&this.entity.type==="Hub Site Application"}async handleArcgisHubCollectionsBuilderEditedCollectionKeyChange(t){this._editedCollectionKey=t}handleRebuildIndexClicked(){this.isReharvestRequestLoading?this.triggerOperationAlert({message:this._intl.t("reharvestCatalogAlert.inProgress"),kind:"brand"}):this.openReharvestWarningModal()}openReharvestWarningModal(){this.hubTelemetry.emit(Object.assign({},n.dictionary.category.interaction.action.open.label.modal.details.rebuildIndex)),this.showReharvestWarningModal=!0}closeReharvestWarningModal(){this.showReharvestWarningModal=!1}handleReharvestWarningModalClosed(){this.showReharvestWarningModal=!1,this.hubTelemetry.emit(Object.assign({},n.dictionary.category.interaction.action.close.label.modal.details.rebuildIndex))}async handleReharvestCatalogConfirmed(){this.closeReharvestWarningModal(),this.isReharvestRequestLoading=!0;try{this.triggerOperationAlert({message:this._intl.t("reharvestCatalogAlert.preparing"),kind:"brand"});let t=await D(this.entity.id,this._context);t.error&&t.error.cause=="TIME_LOCK"?this.triggerOperationAlert({message:this._intl.t("reharvestCatalogAlert.inProgress"),kind:"brand"}):t.error?(this.triggerOperationAlert({message:this._intl.t("reharvestCatalogAlert.queueFailure"),kind:"danger"}),this.hubTelemetry.emit(Object.assign(Object.assign({},n.dictionary.category.content.action.update.label.index),{response:n.constants.response.FAILURE}))):(this.triggerOperationAlert({message:this._intl.t("reharvestCatalogAlert.queueSuccess"),kind:"brand"}),this.hubTelemetry.emit(Object.assign({},n.dictionary.category.content.action.update.label.index)))}catch{this.triggerOperationAlert({message:this._intl.t("reharvestCatalogAlert.queueFailure"),kind:"danger"}),this.hubTelemetry.emit(Object.assign(Object.assign({},n.dictionary.category.content.action.update.label.index),{response:n.constants.response.FAILURE}))}finally{this.isReharvestRequestLoading=!1}}async triggerOperationAlert(t){let{kind:e,message:i}=t;u({message:i,configuration:{noticeType:"alert",autoClose:e!=="danger",autoCloseDuration:"fast",icon:!0,kind:e,label:this._intl.t("formAlert")}})}_defaultCatalog(){let t=d(this._catalog),e=h(this.entity)==="site"?x().filter(a=>a.targetEntity===this._targetEntity):[],i=t.collections.filter(a=>a.targetEntity!==this._targetEntity);return t.collections=[...e,...i],t.scopes[this._targetEntity].filters=[],t.title=h(this.entity)==="site"?"Default Site Catalog":"Default Catalog",t}toggleDeleteCatalogModal(){this.showDeleteCatalogWarningModal=!this.showDeleteCatalogWarningModal,this.showDeleteCatalogWarningModal?this.hubTelemetry.emit(Object.assign({},n.dictionary.category.interaction.action.open.label.modal.details.deleteCatalog)):this.hubTelemetry.emit(Object.assign({},n.dictionary.category.interaction.action.close.label.modal.details.deleteCatalog))}renderReharvestWarningModal(){return this.showReharvestUi&&o("calcite-dialog",{heading:this._intl.t("reharvestWarningModal.title"),modal:!0,onCalciteDialogClose:this.handleReharvestWarningModalClosed,open:this.showReharvestWarningModal,width:"s"},o("div",{class:"reharvest-modal-body"},o("div",null,this._intl.t("reharvestWarningModal.body1")),o("div",null,this._intl.t("reharvestWarningModal.body2"))),o("calcite-button",{appearance:"outline",onClick:this.closeReharvestWarningModal,slot:"footer-end"},this._intl.t("reharvestWarningModal.secondaryButton")),o("calcite-button",{onClick:this.handleReharvestCatalogConfirmed,slot:"footer-end"},this._intl.t("reharvestWarningModal.primaryButton")))}renderDeleteCatalogWarningModal(){return o("calcite-dialog",{heading:this._intl.t("deleteCatalog.deleteModalHeader"),modal:!0,onCalciteDialogClose:this.toggleDeleteCatalogModal,open:this.showDeleteCatalogWarningModal},o("p",null,this._intl.t("deleteCatalog.deleteModalMessage")),o("calcite-button",{appearance:"outline",onClick:this.toggleDeleteCatalogModal,round:!0,slot:"footer-end"},this._intl.t("deleteCatalog.cancel")),o("calcite-button",{kind:"danger",onClick:this.handleResetCatalog,round:!0,slot:"footer-end"},this._intl.t("deleteCatalog.delete")))}renderMoreButton(){return o("calcite-dropdown",null,o("calcite-button",{appearance:"outline","icon-start":"ellipsis",label:this._intl.t("moreActions"),round:!0,scale:"m",slot:"trigger"}),o("calcite-dropdown-group",{"group-title":this._intl.t("moreActions"),"selection-mode":"none"},o("calcite-dropdown-item",{iconStart:"trash",id:"delete-catalog",label:this._intl.t("deleteCatalog.delete"),onClick:this.toggleDeleteCatalogModal},this._intl.t("deleteCatalog.delete")),this.showReharvestUi&&o("calcite-dropdown-item",{iconStart:"package",onClick:this.handleRebuildIndexClicked},this._intl.t("reharvestCatalogButton"))))}get addContentProps(){if(["event"].includes(this._targetEntity))return{buttonText:this._intl.t(`add.${this._targetEntity}.buttonText`),addExistingTitle:this._intl.t(`add.${this._targetEntity}.existingTitle`),addExistingDescription:this._intl.t(`add.${this._targetEntity}.existingDescription`)}}get showSiteCatalogUpgradeUi(){return this.pane==="catalog-content"&&C("hub:site:workspace:catalog:upgrade",this._context,this.entity).access}openSiteCatalogUpgradeModal(){this.isSiteCatalogUpgradeModalOpen=!0,this.hubTelemetry.emit(Object.assign({},n.dictionary.category.interaction.action.open.label.modal.details.upgradeCatalog))}renderCatalogs(){if(this._hasCatalog&&this._isTargetEntityScopeConfigured)return o("div",{class:"catalog-container"},o("div",{class:"catalog-button-container"},o("calcite-button",{class:"configure-catalog-button",id:"button.configure-catalog",onClick:this.handlePanelOpen,ref:this.setConfigureButtonRef,round:!0},this._intl.t("configureCatalog")),this.showSiteCatalogUpgradeUi&&o("calcite-button",{appearance:"outline",disabled:this._hasUnsavedChanges||this._isUpgradingSiteCatalog,"icon-start":"folder-move",label:this._intl.t("upgradeCatalog"),loading:this._isUpgradingSiteCatalog,onClick:this.openSiteCatalogUpgradeModal,round:!0},this._intl.t("upgradeCatalog")),this.renderMoreButton()),this.showReharvestUi&&this.renderReharvestWarningModal(),this.showDeleteCatalogWarningModal&&this.renderDeleteCatalogWarningModal(),o("arcgis-hub-catalog",{activeCollectionKey:this._editedCollectionKey,addContentProps:this.addContentProps,catalogs:this._catalogs,entity:this.entity,facets:this._facets,isMobile:this.isMobile,layout:this.isMobile?"compact":void 0,layoutOptions:this._layoutOptions,linkTarget:"siteRelative",onArcgisHubCatalogActiveCollectionChange:this.setRenderedCollectionKey,"show-add-content-templates-dropdown":this.showAddContentTemplatesDropdown,showAddContent:!0,showAllCollectionFacet:!0,showLayoutSwitcher:!0,showSearch:!0,targetEntity:this._targetEntity}))}renderQuerySizeNotices(){let t=[],e=!1;return Object.entries(this._currentQuerySizes).forEach(([i,a])=>{let s=i===this._targetEntity,r=s?null:this._catalog.collections.find(l=>l.key===i&&l.targetEntity===this._targetEntity);if(s||r){let l=s?i:r.targetEntity,g,c;a>=Y?(c="danger",e=!0):a>=$&&(c="warning"),c&&(g=s?this._intl.t(`detailsPanel.querySizeNotice.${c}.catalogSourceMessage.${l}`):this._intl.t(`detailsPanel.querySizeNotice.${c}.collectionSourceMessage.${l}`,{collectionName:r.label})),c&&t.push(o("arcgis-hub-notice",{notice:{id:`query-size-${c}-${i}`,title:this._intl.t(`detailsPanel.querySizeNotice.${c}.title`),message:g,configuration:{noticeType:"notice",icon:!0,kind:c,closable:!1,scale:"m"}}}))}else p.info(`Could not find collection or catalog with correct target entity for query size key: ${i}`),delete this._currentQuerySizes[i]}),this._querySizeLimitReached=e,t}renderCatalogNotice(){let t;return this._targetEntity==="item"?t="content":this._targetEntity==="event"&&(t="events"),o("arcgis-hub-notice",{notice:{id:"catalog-notice",title:this._intl.t("catalogNotice.title"),message:this._intl.t("catalogNotice.message",{entityType:t}),configuration:{noticeType:"notice",closable:!1,scale:"m"}}})}renderHelpState(){if(!this._isTargetEntityScopeConfigured&&this._isConfigurationPanelOpen)return this.renderEmptyScopeState();if(!this._hasCatalog||!this._isTargetEntityScopeConfigured)return this.renderEmptyCatalogState()}renderEmptyCatalogState(){return o("arcgis-hub-help-state",{icon:"file-magnifying-glass",message:this._intl.t("emptyState.message"),slot:"help-state"},o("calcite-button",{onClick:this.handlePanelOpen,round:!0,slot:"actions"},this._intl.t("emptyState.action")))}renderEmptyScopeState(){return o("arcgis-hub-help-state",{icon:"file-magnifying-glass",message:this._intl.t("emptyScopeState.message"),slot:"help-state"})}renderDirtyStateModal(){return o("arcgis-hub-workspace-dirty-state-modal",{isOpen:this._isDirtyStateModalOpen,onArcgisHubWorkspaceDirtyStateModalClosed:this.handleDirtyStateModalAction})}renderDetailsPanel(){return o("calcite-flow",{ref:this.setCalciteFlowRef},o("calcite-flow-item",null,o("calcite-panel",{beforeClose:this.handlePanelClose,heading:this._intl.t("detailsPanel.heading"),messageOverrides:{close:this._intl.t("detailsPanel.close")},ref:this.setPanelRef},this.renderQuerySizeNotices(),this.renderCatalogNotice(),o("p",{class:"required-field-helper-text"},this._intl.t("requiredFieldHelperText")),this.footerSlotEl&&o("arcgis-configuration-form",{footerSlotRef:this.footerSlotEl,isDisabled:this._querySizeLimitReached||this._isUpgradingSiteCatalog,isMobile:this.isMobile,messageOverrides:{save:this._intl.t("shared.publish.label")},onArcgisConfigurationFormChanged:this.handleCatalogChange,onArcgisConfigurationFormSaved:this.handleConfigurationFormSave,schema:d(B),t:this.translationFunc,uiSchema:d(this._catalogBuilderUiSchema),values:{catalog:this._catalog}}),o("calcite-action",{icon:"x",label:this._intl.t("detailsPanel.close"),onClick:this.handlePanelClose,slot:"header-actions-end"})),o("div",{ref:t=>{this.footerSlotEl=t},slot:"footer"})))}renderConfigurationShellPanel(){return o("calcite-shell-panel",{collapsed:!this._isConfigurationPanelOpen,position:"end",resizable:!0,slot:"shell-panel-end",width:"m"},this._isConfigurationPanelOpen&&this.renderDetailsPanel())}renderSiteCatalogUpgradeModal(){return this.showSiteCatalogUpgradeUi&&o("arcgis-hub-site-catalog-upgrade",{open:this.isSiteCatalogUpgradeModalOpen,site:this.entity})}render(){return o(j,{key:"f994db6b9af311b0979db97df5c47fe893daa82b","data-element":"entity-catalog"},o("arcgis-hub-workspace-pane",{key:"a0297a819f707d7abd29e5d1026bd4e1621fec91",isMobile:this.isMobile},o("h1",{key:"b6044f15b08b3ef8e547fa88f4c8e23fbebe44a3",slot:"title"},this._intl.t(`${this.pane}`)),this.renderHelpState(),this.renderCatalogs(),this.renderConfigurationShellPanel()),this.renderDirtyStateModal(),this.renderSiteCatalogUpgradeModal())}static get assetsDirs(){return["locales"]}get element(){return F(this)}static get watchers(){return{pane:["maybeOpenSiteCatalogUpgradeModal","init"],entity:["init"]}}};w([m("_catalog")],y.prototype,"_catalogs",null);w([m("_catalog")],y.prototype,"_facets",null);w([m("_catalog")],y.prototype,"_layoutOptions",null);y.style=et;return y},"config")
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.32/esri/copyright.txt for details.
|
|
3
|
+
v0.32.2 */
|
|
4
|
+
import{a as l}from"./M7S5CA5N.js";import"./SRRNBAJU.js";import"./DRY7KMLN.js";import"./A6UBAVGJ.js";import"./FWTILN5X.js";import"./OMTJUW3Y.js";import"./L3Z6MSWR.js";import"./TFL3M7Y5.js";import"./U23AA3CL.js";import"./KOWHPG4A.js";import"./JQGWJZLV.js";import"./Q4DRZ7RV.js";import"./MARB2KPP.js";import"./7ABFRZGV.js";import"./DSJYJUTO.js";import"./RFQMDI2U.js";import"./LHQIU77J.js";import"./KKOIYDC7.js";import"./3H2FOLDY.js";import"./P5KCI7NK.js";import"./W6PKTNE3.js";import"./327UUWS5.js";import"./OZ3U4754.js";import"./S5ADQIOS.js";import"./NMUWS6IZ.js";import"./ROKVX73E.js";import"./W5XA6A5L.js";import"./S3HQP2TL.js";import"./4HKRH4ZE.js";import"./AZW7Y3P5.js";import"./N7TUF3VY.js";import"./PHR2JAD6.js";import"./7ULZUZEN.js";import"./W3OKPEZV.js";import"./HY7S4ZHU.js";import"./34R2ZMFF.js";import"./MQEIQHLV.js";import"./7IS3FIQG.js";import"./ZKRKK37N.js";import"./LM5JTMJ3.js";import"./NKQ7IDSF.js";import"./2RMQLAQJ.js";import"./F5PP5ZNZ.js";import"./JXLZPII7.js";import"./JMYKSBE6.js";import"./R26LVT4B.js";import"./6XTOFD2P.js";import"./U6UND6S2.js";import"./RZ7YXHFT.js";import"./Z4RYAXAN.js";import"./O4ADFWUC.js";import"./ALWK4YFG.js";import"./PQKFVHXI.js";import"./SDQWGANT.js";import"./3TIPC4VW.js";import"./C5PRVJKH.js";import"./P54DHZC5.js";import"./6E56PNG7.js";import"./HK4MY7MU.js";import"./WXE3P52G.js";import"./AWOXQW27.js";import"./UZCMX3E6.js";import"./75B44T4C.js";import"./NHML7J5F.js";import"./JLITWA6U.js";import{c as g,g as e}from"./5HL7N6S3.js";import"./XRSNCL4S.js";import"./M6TE3QFV.js";import"./FUVWCLBF.js";import"./YWC2JRJV.js";import"./ER64A4V3.js";import"./7VUN2F7P.js";import"./2ZTJHITH.js";import"./ARGXE7D2.js";import"./EFTM7OCO.js";import"./4ZGSSI5T.js";import"./PF7DB2OB.js";import{a as s}from"./DX2GLZPZ.js";import{a as p}from"./CH2NWUER.js";import"./QYJ7HMJA.js";import"./3VUD6CFD.js";import"./BIYDKFNV.js";import"./XEHPMASD.js";import{b as t,c,d as m,e as a,i as n}from"./YKNBYBRF.js";import{a as r}from"./NOKL74EQ.js";import{a as o}from"./PXG4LKUH.js";import"./JWTFBP7C.js";import"./BXWSNP7O.js";import"./2NHSOGQB.js";var u=":host{display:block}.p1{margin-top:0px;margin-bottom:0px}.inaccessible-list{margin:0px}",b=u,f=class{constructor(i){n(this,i),this.arcgisHubSiteCatalogUpgradeDialogClose=a(this,"arcgisHubSiteCatalogUpgradeDialogClose",7),this.arcgisHubSiteCatalogUpgradeStart=a(this,"arcgisHubSiteCatalogUpgradeStart",7),this.arcgisHubSiteCatalogUpgradeComplete=a(this,"arcgisHubSiteCatalogUpgradeComplete",7),this.arcgisHubSiteCatalogUpgradeError=a(this,"arcgisHubSiteCatalogUpgradeError",7),this.open=!1,this.site=void 0,s(this,"notifyDialogClose","handleUpgradeButtonClicked")}async componentWillLoad(){this.intl=await p.loadIntlForComponent(this.element)}notifyDialogClose(){this.arcgisHubSiteCatalogUpgradeDialogClose.emit()}async handleUpgradeButtonClicked(){this.arcgisHubSiteCatalogUpgradeStart.emit(),this.notifyDialogClose();try{let i=o(this.site);i.isCatalogV1Enabled=!1;let d=await l("site",i,g());this.arcgisHubSiteCatalogUpgradeComplete.emit(d),e({title:"",message:this.intl.t("upgradeSuccess"),configuration:{noticeType:"alert",autoClose:!0,autoCloseDuration:"fast",icon:!0,kind:"success",label:this.intl.t("formAlert")}})}catch(i){r.error("Error during catalog upgrade",i),this.arcgisHubSiteCatalogUpgradeError.emit(),e({title:"",message:this.intl.t("upgradeFailed"),configuration:{noticeType:"alert",autoClose:!0,autoCloseDuration:"fast",icon:!0,kind:"danger",label:this.intl.t("formAlert")}})}}render(){return t(c,{key:"7c22d88a63b34b03795d325404dce9ca307afa38","data-element":"site-catalog-upgrade"},t("calcite-dialog",{key:"c82937ded8e1e62cdad8e6676789fa2ce931532c",heading:this.intl.t("upgradeCatalog"),modal:!0,onCalciteDialogClose:this.notifyDialogClose,open:this.open,widthScale:"s"},t("p",{key:"ed5cca5bbb4af973cc2acd9490a0571927ff13aa",class:"p1"},this.intl.t("upgradeModal.p1",{calciteLink:(...i)=>t("calcite-link",{href:"https://community.esri.com/t5/arcgis-hub-blog/unlock-expanded-functionality-in-arcgis-hub/ba-p/1664762","icon-end":"launch",target:"_blank"},i)})),t("p",{key:"9fbf47a29aa70ae4cbc350a42ce271be806aeb65"},this.intl.t("upgradeModal.p2")),t("ul",{key:"797f4a1d2c0a44f125bade50118e161d494f4177",class:"inaccessible-list"},t("li",{key:"2aa4f900b40a12c851f607f48174cee2f85b44b7"},this.intl.t("upgradeModal.listItems.groupsManager")),t("li",{key:"e4acce19d5b863457a76c7dc26377c7500e2fa99"},this.intl.t("upgradeModal.listItems.feedsConfiguration")),t("li",{key:"abfce52607cd3f5c0440029a2e060c91e24cf163"},this.intl.t("upgradeModal.listItems.contentLibrary")),t("li",{key:"11bc7f10b3013cc91c69bf2870eb070ab7e77b69"},this.intl.t("upgradeModal.listItems.feedback"))),t("p",{key:"1b94616599acf7caa3f8bad08f32c8ae19325e4e"},this.intl.t("upgradeModal.p3")),t("calcite-button",{key:"1fb4352a3022d0118a77ca338eca25973fcff7f1",appearance:"outline",onClick:this.notifyDialogClose,round:!0,slot:"footer-end"},this.intl.t("upgradeModal.cancel")),t("calcite-button",{key:"f71640070b5f0071e6ac3c680c160040785a0b79",appearance:"solid",onClick:this.handleUpgradeButtonClicked,round:!0,slot:"footer-end"},this.intl.t("upgradeModal.confirm"))))}static get assetsDirs(){return["locales"]}get element(){return m(this)}};f.style=b;export{f as arcgis_hub_site_catalog_upgrade};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.32/esri/copyright.txt for details.
|
|
3
|
+
v0.32.2 */
|
|
4
|
+
import"./2NHSOGQB.js";var i={chart:"Kaavio",barChart:"Palkkikaavio",lineChart:"Viivakaavio",pieChart:"Ympyr\xE4kaavio",histogram:"Histogrammi",scatterplot:"Pistekaavio",boxPlot:"Laatikkojana"},a={mean:"Keskiarvo",median:"Mediaani",sum:"Summa",discretePercentile:"Irrallinen prosenttipiste",minimum:"V\xE4himm\xE4isarvo",maximum:"Enimm\xE4isarvo",variance:"Varianssi",count:"M\xE4\xE4r\xE4",aggregation:"${ statistics }/${ fieldName }",noAggregation:"Ei koostetta"},e="Kaavio",t="Laske sarjat",s="X-akseli",n="Ei k\xE4ytett\xE4viss\xE4",o={start:"Kiinnit\xE4 ensimm\xE4iseen aineistopisteeseen",end:"Kiinnit\xE4 viimeiseen aineistopisteeseen"},r={chartType:i,statistics:a,defaultTitle:e,countSeries:t,xAxis:s,notAvailable:n,timeAggregationTypes:o};export{i as chartType,t as countSeries,r as default,e as defaultTitle,n as notAvailable,a as statistics,o as timeAggregationTypes,s as xAxis};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.32/esri/copyright.txt for details.
|
|
3
|
+
v0.32.2 */
|
|
4
|
+
import{b as n}from"./64PZA474.js";import"./NZE2WNTF.js";import"./2OKQ6BLU.js";import"./IGKKSXPB.js";import"./FWVL4M3D.js";import"./QTRSYCGA.js";import"./UT3SH2UY.js";import{c as h}from"./5HL7N6S3.js";import"./XRSNCL4S.js";import{a}from"./2ZTJHITH.js";import{o as e}from"./ARGXE7D2.js";import"./EFTM7OCO.js";import"./4ZGSSI5T.js";import"./PF7DB2OB.js";import{a as s}from"./CH2NWUER.js";import"./QYJ7HMJA.js";import"./3VUD6CFD.js";import"./BIYDKFNV.js";import"./XEHPMASD.js";import{b as t,c as r,d as o,e as l,i as c}from"./YKNBYBRF.js";import"./NOKL74EQ.js";import"./PXG4LKUH.js";import"./JWTFBP7C.js";import"./BXWSNP7O.js";import"./2NHSOGQB.js";export default $arcgis.t(([])=>{var d=".sc-arcgis-hub-entity-assistant-h{display:block;height:100%}h1[slot='title'].sc-arcgis-hub-entity-assistant{margin:0px;font-size:var(--calcite-font-size-3);line-height:2rem;font-weight:var(--calcite-font-weight-bold);color:var(--calcite-color-text-1)}arcgis-hub-workspace-pane.sc-arcgis-hub-entity-assistant{--arcgis-hub-workspace-pane-max-width:var(--arcgis-hub-workspace-pane-max-width-value, 55rem);--arcgis-configuration-form-footer-max-width:800px;--arcgis-configuration-form-footer-scalable-padding:0.5rem}arcgis-hub-entity-editor.sc-arcgis-hub-entity-assistant{width:100%}",p=d,m=class{constructor(i){c(this,i),this.arcgisHubWorkspaceEntityChange=l(this,"arcgisHubWorkspaceEntityChange",7),this.entity=void 0,this.pane=void 0,this.isMobile=!1,this.values=void 0,this.footerSlotEl=void 0}async componentWillLoad(){this.intl=await s.loadIntlForComponent(this.element)}get _context(){return h()}get entityType(){return a(this.entity)}get isDisabled(){return!e(`hub:${this.entityType}:workspace:assistant`,this._context,this.entity).access}get messageOverrides(){return Object.assign({},this.isDisabled&&{primaryBtnTooltip:this.intl.t("disabledTooltip",{type:this.entityType})})}handleEditorChanged(i){i.preventDefault(),this.arcgisHubWorkspaceEntityChange.emit({entity:i.detail.values,isDirty:!0})}handleEditorSaved(i){i.preventDefault(),this.arcgisHubWorkspaceEntityChange.emit({entity:i.detail.entity,isDirty:!i.detail.isSuccess})}renderNotice(){return t("div",{slot:"primary-actions",style:{display:"block"}},t("calcite-notice",{icon:"information",kind:"info",open:!0,width:"full"},t("div",{slot:"title"},this.intl.t("notice.title")),t("div",{slot:"message"},this.intl.t("notice.message",{trustedAiInArcgisLink:(...i)=>t("calcite-link",{href:"https://links.esri.com/agol-help/trustworthy-ai",iconEnd:"launch",target:"_blank"},i),aiTransparencyCardLink:(...i)=>t("calcite-link",{href:"https://links.esri.com/agol-help/ai-assistants",iconEnd:"launch",target:"_blank"},i)})),t("calcite-link",{href:"https://doc.arcgis.com/en/hub/get-started/hub-assistant.htm",iconEnd:"launch",slot:"link",target:"_blank",title:this.intl.t("notice.linkText")},this.intl.t("notice.linkText"))),t("br",null),t("calcite-notice",{icon:"information",kind:"info",open:!0,width:"full"},t("div",{slot:"title"},this.intl.t("noticeEAC.title")),t("div",{slot:"message"},this.intl.t("noticeEAC.message")),t("calcite-link",{href:"https://earlyadopter.esri.com/key/ArcGISHubAssistantBeta",iconEnd:"launch",slot:"link",target:"_blank",title:this.intl.t("noticeEAC.linkText")},this.intl.t("noticeEAC.linkText"))))}render(){return t(r,{key:"bbd60b9dd286811ceff07949e2787aa6ed52e31a","data-element":"entity-assistant"},t("arcgis-hub-workspace-pane",{key:"e3e8ad70e2f12a8b4f20208eed6d3025497d1b03",isMobile:this.isMobile,stickyFooter:!0},t("h1",{key:"f454ed877f86cfe70e90c029aa23ebcca3eb8055",slot:"title"},this.intl.t("assistant")),this.renderNotice(),this.footerSlotEl&&t("arcgis-hub-entity-editor",{editorType:`hub:${this.entityType}:assistant`,entity:this.entity,footerSlotRef:this.footerSlotEl,isDisabled:this.isDisabled,messageOverrides:this.messageOverrides,variant:n.workspace}),t("div",{key:"1fa75f8f25d2eaa5288b7cbc8d9137ed20898f2a",ref:i=>{this.footerSlotEl=i},slot:"footer"})))}static get assetsDirs(){return["locales"]}get element(){return o(this)}};m.style=p;return m},"config")
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.32/esri/copyright.txt for details.
|
|
3
|
+
v0.32.2 */
|
|
4
|
+
import{d as r,e as n,f as d,g as _}from"./M6TE3QFV.js";function l(i){let u=!1;return i&&d(i)&&!r(i)&&!_(i)&&!n(i)&&(u=!0),u}function E(i,u){return Array.isArray(i)?i.reduce((f,s)=>{if(u(s))if(l(s)){let e=E(s,u);f=[...f,e]}else f=[...f,s];return f},[]):l(i)?Object.keys(i).reduce((f,s)=>{if(u(i[s]))if(l(i[s]))if(typeof Blob<"u"&&i[s]instanceof Blob)f[s]=i[s];else{let e=E(i[s],u);f[s]=e}else f[s]=i[s];return f},{}):void 0}export{l as a,E as b};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.32/esri/copyright.txt for details.
|
|
3
|
+
v0.32.2 */
|
|
4
|
+
import{a as b}from"./Y7ZTG6IV.js";import{a}from"./P5KCI7NK.js";import{b as p}from"./PHR2JAD6.js";import{b as m}from"./HK4MY7MU.js";import{g as i,h as u}from"./UZCMX3E6.js";function O(e){return`hubVersion_${e}`}var f="version.json",g=["created","creator","description","id","name","parent","updated"];function j(e){return O(`${e}/${f}`)}async function R(e,s,r){return u(e,Object.assign(Object.assign({},r),{fileName:j(s),readAs:"json"}))}function V(e){let{access:s,resource:r,size:t}=e,o,n=e.properties||"{}";try{o=JSON.parse(n)}catch{o={}}return Object.assign(Object.assign({},o),{access:s,path:r,size:t})}async function N(e,s){return(await i(e,Object.assign(Object.assign({},s),{params:{sortField:"created",sortOrder:"desc"}}))).resources.filter(t=>t.resource.match(/^hubVersion_[a-zA-Z0-9_\s]*\/version.json/)).map(V)}async function S(e,s,r,t){let o=O(s.id),n=a(s,{},g),c=await R(e,s.id,t);a(s,c,g);let d=b(c);return await m(Object.assign(Object.assign({},t),{id:e,name:f,owner:r,params:{properties:n},prefix:o,resource:d})),s}async function y(e,s,r,t){return p(Object.assign(Object.assign({},t),{id:e,owner:r,resource:j(s)}))}export{O as a,f as b,g as c,R as d,N as e,S as f,y as g};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.32/esri/copyright.txt for details.
|
|
3
|
+
v0.32.2 */
|
|
4
|
+
import{a as et,c as It,d as Ct,e as Pt}from"./Z224U4AA.js";import"./Y4OMF47Y.js";import{b as Dt}from"./BRNQOE6M.js";import{a as tt}from"./5SOLQGF6.js";import{a as X}from"./DEILDH46.js";import{a as $}from"./BAWSEWCV.js";import{a as Z}from"./KG62KFST.js";import{a as J}from"./AJ4F4KI7.js";import b from"./O2LWPI5O.js";import"./ZCDCUPLB.js";import{a as wt}from"./P3Q3C5J4.js";import{a as Y,b as _}from"./SKLLD2EB.js";import a from"./QHKUKHNX.js";import"./CJFTAJTN.js";import"./G34BCPV3.js";import{b as yt}from"./LGF4RNXN.js";import{a as V}from"./7BGMRGQN.js";import{a as mt}from"./SAFVTC52.js";import{h as gt}from"./DAGWLEZQ.js";import{b as bt}from"./5GISWZLR.js";import"./Q5B5X272.js";import{b as B}from"./C26VGI6X.js";import"./HQJCO4YI.js";import{b as dt}from"./64PZA474.js";import"./NZE2WNTF.js";import"./2OKQ6BLU.js";import"./IGKKSXPB.js";import"./FWVL4M3D.js";import"./QTRSYCGA.js";import"./UT3SH2UY.js";import{n as pt}from"./Z7M2ZJVY.js";import"./A7JTQFR2.js";import"./PTSA5DJ7.js";import"./KOWHPG4A.js";import"./JQGWJZLV.js";import"./Q4DRZ7RV.js";import"./MARB2KPP.js";import"./7ABFRZGV.js";import"./DSJYJUTO.js";import"./RFQMDI2U.js";import"./LHQIU77J.js";import"./RXYWG4RO.js";import"./KKOIYDC7.js";import"./2HAYMGYC.js";import"./IJFNEDSU.js";import"./YNHCSWIL.js";import{N as ht,O as K,X as ut,o as ct}from"./3H2FOLDY.js";import"./P5KCI7NK.js";import"./W6PKTNE3.js";import"./327UUWS5.js";import"./OZ3U4754.js";import"./S5ADQIOS.js";import"./NMUWS6IZ.js";import"./ROKVX73E.js";import"./W5XA6A5L.js";import"./S3HQP2TL.js";import"./4HKRH4ZE.js";import"./AZW7Y3P5.js";import"./N7TUF3VY.js";import"./PHR2JAD6.js";import"./7ULZUZEN.js";import{f as z,k as U}from"./W3OKPEZV.js";import{d as q}from"./HY7S4ZHU.js";import"./34R2ZMFF.js";import"./MQEIQHLV.js";import"./7IS3FIQG.js";import"./ZKRKK37N.js";import"./LM5JTMJ3.js";import"./NKQ7IDSF.js";import"./2RMQLAQJ.js";import"./F5PP5ZNZ.js";import"./JXLZPII7.js";import"./JMYKSBE6.js";import"./R26LVT4B.js";import"./6XTOFD2P.js";import"./U6UND6S2.js";import{h as lt}from"./RZ7YXHFT.js";import"./Z4RYAXAN.js";import"./O4ADFWUC.js";import"./ALWK4YFG.js";import"./PQKFVHXI.js";import"./SDQWGANT.js";import"./3TIPC4VW.js";import"./C5PRVJKH.js";import"./P54DHZC5.js";import"./6E56PNG7.js";import"./HK4MY7MU.js";import"./WXE3P52G.js";import"./AWOXQW27.js";import"./UZCMX3E6.js";import"./75B44T4C.js";import"./NHML7J5F.js";import"./JLITWA6U.js";import{c as N,g as Tt,j as it}from"./5HL7N6S3.js";import"./XRSNCL4S.js";import"./M6TE3QFV.js";import"./FUVWCLBF.js";import"./YWC2JRJV.js";import"./ER64A4V3.js";import"./7VUN2F7P.js";import{j as rt}from"./2ZTJHITH.js";import{o as ot}from"./ARGXE7D2.js";import"./EFTM7OCO.js";import"./4ZGSSI5T.js";import"./PF7DB2OB.js";import{a as k}from"./DX2GLZPZ.js";import{a as j}from"./CH2NWUER.js";import"./QYJ7HMJA.js";import"./3VUD6CFD.js";import{a as h}from"./BIYDKFNV.js";import"./XEHPMASD.js";import{b as s,c as A,d as L,e as d,h as F,i as G}from"./YKNBYBRF.js";import"./NOKL74EQ.js";import"./PXG4LKUH.js";import"./JWTFBP7C.js";import"./BXWSNP7O.js";import"./2NHSOGQB.js";export default $arcgis.t(([,{n:ft,o:vt,s:W},{b:Q}])=>{var _t='.sc-arcgis-hub-discussions-h{display:block;max-height:100%;overflow:auto;background-color:var(--calcite-color-foreground-1);--arcgis-hub-layout-list-gap:0rem}calcite-panel.sc-arcgis-hub-discussions{height:max-content}section.sc-arcgis-hub-discussions{margin-top:1rem;margin-bottom:1rem;margin-left:0.75rem;margin-right:0.75rem;display:grid;gap:0.75rem;border-radius:0.25rem;padding:0.75rem;--tw-shadow:0 2px 8px 0 rgba(0, 0, 0, 0.12);--tw-shadow-colored:0 2px 8px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}header.sc-arcgis-hub-discussions{margin:0px;font-size:var(--calcite-font-size-1);line-height:1.5rem;font-weight:var(--calcite-font-weight-bold)}p.sc-arcgis-hub-discussions{margin:0px;font-size:var(--calcite-font-size-0);line-height:1.375rem}section.sc-arcgis-hub-discussions calcite-button.sc-arcgis-hub-discussions{width:-moz-fit-content;width:fit-content}calcite-button[icon-start="speech-bubble-plus"].sc-arcgis-hub-discussions{margin-left:1rem;margin-right:1rem;margin-bottom:0.5rem;display:block}arcgis-hub-subscription.sc-arcgis-hub-discussions{margin-left:1rem;margin-right:1rem;margin-bottom:1.5rem;display:block}arcgis-hub-discussions-blocked-notice.sc-arcgis-hub-discussions{margin-left:1rem;margin-right:1rem;margin-bottom:1.5rem}calcite-notice[slot="list-before"].sc-arcgis-hub-discussions{margin-left:1rem;margin-right:1rem;margin-bottom:1.5rem}.empty.sc-arcgis-hub-discussions arcgis-hub-discussions-blocked-notice.sc-arcgis-hub-discussions{margin:0px;margin-top:0.25rem}.empty.sc-arcgis-hub-discussions calcite-notice.sc-arcgis-hub-discussions{width:100%}arcgis-hub-discussions-thread.sc-arcgis-hub-discussions{overflow:hidden;padding-top:1rem;padding-bottom:1rem}arcgis-hub-discussions-post-list.sc-arcgis-hub-discussions{background-color:var(--calcite-color-foreground-1);padding-top:1.5rem}arcgis-hub-discussions-post-list.location-list.sc-arcgis-hub-discussions{padding-top:0.25rem;padding-bottom:0.25rem}[data-element="discussions-options-panel"].sc-arcgis-hub-discussions>div.sc-arcgis-hub-discussions{background-color:var(--calcite-color-foreground-1);padding:1rem}[data-element="discussions-options-panel"].sc-arcgis-hub-discussions>div.sc-arcgis-hub-discussions div.sc-arcgis-hub-discussions{display:flex;justify-content:flex-end;padding-top:0.5rem}[data-element="discussions-options-panel"].sc-arcgis-hub-discussions>div.sc-arcgis-hub-discussions div.sc-arcgis-hub-discussions+calcite-notice.sc-arcgis-hub-discussions{margin-top:1rem;width:100%}.discussions-options.sc-arcgis-hub-discussions:active .discussions-options-icon.sc-arcgis-hub-discussions{--tw-text-opacity:1;color:rgb(21 21 21 / var(--tw-text-opacity))}.discussions-go-to.sc-arcgis-hub-discussions:active .discussions-go-to-icon.sc-arcgis-hub-discussions{--tw-text-opacity:1;color:rgb(21 21 21 / var(--tw-text-opacity))}.discussions-back.sc-arcgis-hub-discussions{border-width:0px;border-right-width:1px;border-style:solid;border-right-color:var(--calcite-color-border-3)}.discussions-back.sc-arcgis-hub-discussions:active .discussions-back-icon.sc-arcgis-hub-discussions{--tw-text-opacity:1;color:rgb(21 21 21 / var(--tw-text-opacity))}arcgis-hub-discussions-post-editor[slot="list-before"].sc-arcgis-hub-discussions{margin-top:1.5rem;margin-bottom:1.5rem;margin-left:0.75rem;margin-right:0.75rem}',kt=_t,st=function(t,e,i,n){var a=arguments.length,o=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(l=t[r])&&(o=(a<3?l(o):a>3?l(e,i,o):l(e,i))||o);return a>3&&o&&Object.defineProperty(e,i,o),o},M=class{constructor(t){G(this,t),this.arcgisHubPostEditorReady=d(this,"arcgisHubPostEditorReady",7),this.arcgisHubGeometryGoTo=d(this,"arcgisHubGeometryGoTo",7),this.arcgisHubDiscussionsFeature=d(this,"arcgisHubDiscussionsFeature",7),this.arcgisHubDiscussionsFeatureDeleted=d(this,"arcgisHubDiscussionsFeatureDeleted",7),this.arcgisHubGeometryFeatureSelect=d(this,"arcgisHubGeometryFeatureSelect",7),this.arcgisHubGeometryFeatureHover=d(this,"arcgisHubGeometryFeatureHover",7),this.arcgisHubGeometryDrawCreate=d(this,"arcgisHubGeometryDrawCreate",7),this.arcgisHubGeometryDrawTypeSelect=d(this,"arcgisHubGeometryDrawTypeSelect",7),this.arcgisHubGeometryDrawEdit=d(this,"arcgisHubGeometryDrawEdit",7),this.arcgisHubGeometryDrawEditCancel=d(this,"arcgisHubGeometryDrawEditCancel",7),this.arcgisHubGeometryDrawReset=d(this,"arcgisHubGeometryDrawReset",7),this.arcgisHubGeometrySelect=d(this,"arcgisHubGeometrySelect",7),this.arcgisHubGeometryDeselect=d(this,"arcgisHubGeometryDeselect",7),this.arcgisHubDiscussionsViewThread=d(this,"arcgisHubDiscussionsViewThread",7),this.arcgisHubDiscussionsDismiss=d(this,"arcgisHubDiscussionsDismiss",7),this.arcgisHubDiscussionsClose=d(this,"arcgisHubDiscussionsClose",7),this.arcgisHubFeatureRemove=d(this,"arcgisHubFeatureRemove",7),this.arcgisHubGeometryClearAll=d(this,"arcgisHubGeometryClearAll",7),this.arcgisAppIdentityStartSignIn=d(this,"arcgisAppIdentityStartSignIn",7),this.hubTelemetry=d(this,"hubTelemetry",7),this.handleSignInClicked=e=>{e.preventDefault(),this.arcgisAppIdentityStartSignIn.emit()},this.discussion=void 0,this.parentId=void 0,this.postId=void 0,this.channelId=void 0,this.locationId=void 0,this.unsavedFeatures=[],this.unsavedRelatedFeatures=[],this.unsavedExistingFeatures=[],this.hasMap=void 0,this.isHub=void 0,this.showChannelAvatar=void 0,this.showChannelName=void 0,this.dismissible=void 0,this.enableGoTo=void 0,this.disableNavigation=void 0,this.entityId=void 0,this.entityType=void 0,this.entity=void 0,this.discussionSettings=void 0,this.threadScrollTarget=void 0,this._context=N(),this.postListProps=void 0,this.threadProps=void 0,this.listScrollTarget=void 0,this._loading=!0,this.displayFieldValid=void 0,this.displayFieldValue=void 0,this.displayFieldKey=void 0,this.error=null,this.optionsError=null,this.optionsSaving=!1,this.showPostEditor=!1,this.isMobile=void 0,this.showOptions=!1,this.numPostableChannels=null,k(this,"handleCheckStatus","handleBackToList","handleBackToThread","handleGeometryGoTo","handleNewPost","renderLoading","renderAddOrCreatePostButton","renderPostEditor","renderThread","renderPostList","renderError","handleDiscussionOptionsClick","handleDiscussionsDownloadClick","handleOptionsBack","checkIsMobile","handleSaveOptions","handleResetOptionsError","handlePostListUpdated","renderRequiresAuth","handleThreadReady","handlePostListReady")}async componentWillLoad(){this.initialize()}componentDidLoad(){this.observe()}connectedCallback(){it(this),this.observe()}disconnectedCallback(){this.disconnect(),this.disconnectContext()}async loadDependencies(){return this._loading=!0,this.fetchDependencies().then(t=>{Object.assign(this,t),this.threadProps=this.channelId&&this.parentId?{channelId:this.channelId,parentId:this.parentId,postId:this.postId}:null}).catch(t=>{this.error=t}).finally(()=>{this._loading=!1})}async initialize(){this.loadTranslations(),this._context&&this.loadDependencies()}async loadTranslations(){this.intl=await j.loadIntlForComponent(this.element)}async fetchDependencies(){return this._fetchDependencies()}async _fetchDependencies(){var t;let[e,i]=await Promise.all([J({isHub:this.isHub},this._context.hubRequestOptions),Q({discussion:this.discussion,entityId:this.entityId,entityType:this.entityType,entity:this.entity,locationId:this.locationId},this._context.hubRequestOptions,!0)]),{total:n}=await W({allowedChannelIds:(t=i.discussionSettings)===null||t===void 0?void 0:t.allowedChannelIds,requestOptions:this._context.hubRequestOptions,num:1});return Object.assign(Object.assign(Object.assign({},e),i),{numPostableChannels:n})}handleContextChanged(t,e){var i,n;((i=t?.currentUser)===null||i===void 0?void 0:i.username)!==((n=e?.currentUser)===null||n===void 0?void 0:n.username)&&(this.resetState(),this.loadDependencies())}resetState(){this.error=null,this._loading=!1,this.threadScrollTarget=null,this.listScrollTarget=null,this.optionsError=null,this.optionsSaving=!1,this.showPostEditor=!1,this.showOptions=!1,this.entity=void 0,this.displayFieldValid=void 0,this.displayFieldValue=void 0,this.displayFieldKey=void 0,this.postListProps=null,this.threadProps=null}async handleBackToList(){let{thread:t}=this;this.hubTelemetry.emit(Object.assign(Object.assign({},h.dictionary.category.interaction.action.close.label.thread),{postId:t.postId,parentId:t.parentId,channelId:t.channelId,channelAccess:t.channel?U(t.channel):void 0})),this.threadScrollTarget=null,this.threadProps=null,this.channelId=null,this.parentId=null,this.postId=null,this.arcgisHubDiscussionsViewThread.emit({parentId:null,channelId:null})}observe(){$.addHandler(window.document.body,this.checkIsMobile)}disconnect(){$.removeHandler(window.document.body,this.checkIsMobile)}scrollToTarget(t){this.element.scrollTo({behavior:"smooth",left:t.offsetLeft,top:t.offsetTop})}async scrollToThreadTarget(){var t,e;let i;this.threadScrollTarget==="list"?i=await((t=this.thread)===null||t===void 0?void 0:t.getPostListRef()):this.threadScrollTarget==="editor"&&(i=await((e=this.thread)===null||e===void 0?void 0:e.getPostEditorRef())),i&&(this.threadScrollTarget=null,this.scrollToTarget(i))}async scrollToListTarget(){var t;let e=await((t=this.postListEl)===null||t===void 0?void 0:t.getPostRefByPostId(this.listScrollTarget));e&&(this.listScrollTarget=null,this.scrollToTarget(e))}handleNewPost(){this.hubTelemetry.emit(h.dictionary.category.interaction.action.open.label.editor),this.showPostEditor=!0}handlePostListUpdated(t){let e=t.target,{nextStart:i,start:n,total:a,items:o}=e;this.postListProps={nextStart:i,start:n,total:a,items:o}}handlePostEditorReady(t){let{detail:e}=t;t.stopPropagation(),this.arcgisHubPostEditorReady.emit(e)}handlePostCanceled(t){t.stopPropagation(),this.showPostEditor=!1}handlePostCreate(t){this.arcgisHubDiscussionsFeature.emit({post:t.detail,create:!0})}handleThreadReady(){setTimeout(()=>this.scrollToThreadTarget(),500)}handlePostListReady(){setTimeout(()=>this.scrollToListTarget(),500)}async handlePostDeleted(t){var e,i;let{postListProps:n,threadProps:a}=this,o=({id:l})=>l===t.detail.id;!((e=this.postListProps)===null||e===void 0)&&e.items.find(o)&&(this.postListProps=Object.assign(Object.assign({},n),{items:n.items.filter(l=>!o(l)),nextStart:n.nextStart>-1?n.nextStart-1:n.nextStart,total:n.total-1})),t.detail.id===((i=a?.parent)===null||i===void 0?void 0:i.id)&&(this.threadProps=Object.assign(Object.assign({},a),{parent:null})),this.arcgisHubDiscussionsFeatureDeleted.emit(t.detail)}async handlePostEdited(t){var e,i;let{postListProps:n,threadProps:a}=this,o=({id:l})=>l===t.detail.id;!((e=this.postListProps)===null||e===void 0)&&e.items.find(o)&&(this.postListProps=Object.assign(Object.assign({},n),{items:n.items.map(l=>o(l)?t.detail:l)})),t.detail.id===((i=a?.parent)===null||i===void 0?void 0:i.id)&&(this.threadProps=Object.assign(Object.assign({},a),{parent:t.detail})),this.arcgisHubDiscussionsFeature.emit({post:t.detail,create:!1})}handlePostSelect(t){let{parentId:e,channelId:i,channel:n,channelGroups:a,parent:o,parentCreator:l,parentCreatorOrg:r,scrollTarget:f,postId:b,post:v,postCreator:w,postCreatorOrg:D}=t.detail;Object.assign(this,{parentId:e,channelId:i,threadScrollTarget:f,listScrollTarget:e,postId:b,showPostEditor:!1,threadProps:e?{channelId:i,channel:n,channelGroups:a,parentId:e,parent:o,parentCreator:l,parentCreatorOrg:r,postId:b,post:v,postCreator:w,postCreatorOrg:D}:null}),this.arcgisHubDiscussionsViewThread.emit({parentId:e,channelId:i})}handleBackToThread(){let{thread:{channel:t},threadProps:{postId:e,parentId:i,channelId:n}}=this;this.hubTelemetry.emit(Object.assign(Object.assign({},h.dictionary.category.interaction.action.open.label.thread),{postId:e,parentId:i,channelId:n,channelAccess:t?U(t):void 0})),this.postId=null,this.threadProps=Object.assign(Object.assign({},this.threadProps),{postId:null}),this.arcgisHubDiscussionsViewThread.emit({parentId:i,channelId:n})}handleGeometryGoTo(){let{thread:t}=this;this.arcgisHubGeometryGoTo.emit(t?.parent)}handleGeometryFeatureSelect(t){t.stopPropagation(),this.arcgisHubGeometryFeatureSelect.emit(t.detail)}handleGeometryFeatureHover(t){t.stopPropagation(),this.arcgisHubGeometryFeatureHover.emit(t.detail)}handleGeometryDrawCreate(t){t.stopPropagation(),this.arcgisHubGeometryDrawCreate.emit(t.detail)}handleGeometryDrawTypeSelect(t){t.stopPropagation(),this.arcgisHubGeometryDrawTypeSelect.emit(t.detail)}handleGeometryDrawEdit(t){t.stopPropagation(),this.arcgisHubGeometryDrawEdit.emit(t.detail)}handleGeometryDrawEditCancel(t){t.stopPropagation(),this.arcgisHubGeometryDrawEditCancel.emit()}handleGeometryDrawReset(t){t.stopPropagation(),this.arcgisHubGeometryDrawReset.emit()}handleGeometrySelect(t){t.stopPropagation(),this.arcgisHubGeometrySelect.emit(t.detail)}handleGeometryDeselect(t){t.stopPropagation(),this.arcgisHubGeometryDeselect.emit()}handleFeatureRemove(t){t.stopPropagation(),this.arcgisHubFeatureRemove.emit(t.detail)}handleGeometryClearAll(t){t.stopPropagation(),this.arcgisHubGeometryClearAll.emit()}handleCalcitePanelDismissedChange(t){t.stopPropagation(),this.arcgisHubDiscussionsDismiss.emit()}handleCalcitePanelDismissChange(t){t.stopPropagation(),this.arcgisHubDiscussionsClose.emit()}captureEmptyListImpression(){this.hubTelemetry.emit(h.dictionary.category.interaction.action.viewed.label.empty)}handleCheckStatus(t){t.preventDefault();let e=t.target;this.hubTelemetry.emit(h.dictionary.category.navigation.action.external.label.hubStatus),setTimeout(()=>rt(e.href),250)}checkIsMobile(){this._checkIsMobile(globalThis.document.body)}_checkIsMobile(t){this.isMobile=t.clientWidth<768}handleDiscussionOptionsClick(){this.showOptions=!0,this.showPostEditor=!1,this.hubTelemetry.emit(h.dictionary.category.interaction.action.open.label.panel.details.discussionOptions)}async handleDiscussionsDownloadClick(){try{let{size:t,count:e,duration:i}=await vt({entityTitle:this.entity.title,discussion:this.discussion,channels:this.areChannelsConfigured?this.discussionSettings.allowedChannelIds:void 0,requestOptions:this._context.hubRequestOptions});this.hubTelemetry.emit(Object.assign(Object.assign({},h.dictionary.category.interaction.action.download.label.csv.details.export),{size:t,count:e,duration:i,response:h.constants.response.SUCCESS}))}catch{this.hubTelemetry.emit(Object.assign(Object.assign({},h.dictionary.category.interaction.action.download.label.csv.details.export),{response:h.constants.response.FAILURE})),Tt({title:this.intl.t("download.error"),message:"",configuration:{autoClose:!0,autoCloseDuration:"fast",icon:!0,noticeType:"alert",kind:"danger",label:this.intl.t("notice.label")}})}this.discussionOptionsPopoverEl.open=!1}handleOptionsBack(){this.showOptions=!1}async handleSaveOptions(t){this.entity=Object.assign(Object.assign({},this.entity),{typeKeywords:t.detail.typeKeywords}),this.discussionSettings=t.detail.discussionSettings,this.optionsSaving=!1}handleResetOptionsError(){this.optionsError=null}get loading(){return!this.intl||this._loading}get areChannelsConfigured(){var t,e;return!!(!((e=(t=this.discussionSettings)===null||t===void 0?void 0:t.allowedChannelIds)===null||e===void 0)&&e.length)}get discussionSettingsWorkspaceUrl(){return(this.isHub?"":this._context.hubHomeUrl)+q(this.entity.type,this.entityId,"settings-discussions")}get isRtl(){return this.intl.direction==="rtl"}get view(){let{error:t,loading:e,showOptions:i,threadProps:n}=this,a;return t?a=this.renderError:e?a=this.renderLoading:i?a=this.renderOptions:n?a=this.renderThread:a=this.renderPostList,a}get shouldRenderOptions(){let t=!1;return this.dismissible||(t=this.entityType===mt.CONTENT?this.canEditEntity:!1),t}get isDiscussable(){return!!this.entity&&z(this.entity)}get canEditEntity(){return!!this._context.currentUser&&B(this.entity.item,this._context.currentUser)}get hubEntityType(){return yt(Dt(this.entityType))}get shouldRenderSubscribe(){var t,e;let i=ot("hub:feature:discussions:subscription",this._context).access;return((t=this._context)===null||t===void 0?void 0:t.currentUser)&&((e=this.postListProps)===null||e===void 0?void 0:e.total)>0&&!this.locationId&&i}renderRequiresAuth(){let{intl:t}=this;if(t)return s("section",{class:"requires-auth"},s("calcite-icon",{icon:"frown",scale:"l"}),s("header",null,t.t("auth.title")),s("p",null,t.t("auth.text")))}renderEmpty(){var t;if(((t=this.postListProps)===null||t===void 0?void 0:t.total)===0&&!this.showPostEditor)return this.deletedDuringSession||this.captureEmptyListImpression(),s("section",{class:"empty",slot:"empty"},s("calcite-icon",{flipRtl:this.isRtl,icon:"speech-bubble",scale:"l"}),s("header",null,this.intl.t("emptyHeading")),s("p",null,this.intl.t("emptyMessage")),this._context.currentUser&&s("calcite-button",{disabled:!this.isDiscussable||!this.numPostableChannels,label:this.intl.t("addPost"),onClick:this.handleNewPost,round:!0,scale:"l"},this.intl.t("addPost")),this.renderNotice())}renderOptions(){let{entity:t,optionsSaving:e,intl:i,optionsError:n}=this;return s("calcite-panel",{"data-element":"discussions-options-panel",description:t.title,disabled:e,heading:i.t("options.heading")},s("calcite-action",{class:"discussions-back",onClick:this.handleOptionsBack,scale:"s",slot:"header-actions-start",text:this.intl.t("back")},s("calcite-icon",{class:"discussions-back-icon",flipRtl:this.isRtl,icon:"chevron-left",scale:"s"})),s("div",null,s("arcgis-hub-discussions-options",{entityId:t.id,entityType:this.hubEntityType,onArcgisHubDiscussionsOptionsEntitySaved:this.handleSaveOptions}),n&&s("calcite-notice",{closable:!0,kind:"danger",onCalciteNoticeClose:this.handleResetOptionsError,open:!0},s("header",{slot:"title"},i.t("options.failure.title")),s("p",{slot:"message"},i.t("options.failure.message")))))}renderPostEditor(){return s(F,null,s("arcgis-hub-discussions-post-editor",{discussion:this.discussion,discussionSettings:this.discussionSettings,entity:this.entity,entityId:this.entityId,entityType:this.entityType,hasMap:this.hasMap,isHub:this.isHub,isMobile:this.isMobile,locationId:this.locationId,showHeader:!0,showLocations:!0,slot:"list-before",unsavedExistingFeatures:this.unsavedExistingFeatures,unsavedFeatures:this.unsavedFeatures,unsavedRelatedFeatures:this.unsavedRelatedFeatures}))}renderAddOrCreatePostButton(){var t;if(((t=this.postListProps)===null||t===void 0?void 0:t.total)===void 0)return null;if(this.postListProps.total)return s(F,null,this._context.currentUser&&s("calcite-button",{appearance:"outline",disabled:!this.isDiscussable||!this.numPostableChannels,iconFlipRtl:"start",iconStart:"speech-bubble-plus",kind:"brand",label:this.intl.t("addPost"),onClick:this.handleNewPost,scale:"l",slot:"list-before",type:"button",width:"auto"},this.intl.t("addPost")),this.renderNotice("list-before"))}renderNotice(t){let e;return this.isDiscussable?this._context.currentUser?this.numPostableChannels||(e=this.renderParticipationUnavailableNotice(t)):e=this.renderSignInNotice(t):e=this.renderBlockedNotice(t),e}renderParticipationUnavailableNotice(t){return s("calcite-notice",{icon:"exclamation-mark-triangle",kind:"warning",open:!0,scale:"m",slot:t},s("div",{slot:"title"},this.intl.t("participationUnavailable.title")),s("div",{slot:"message"},this.intl.t(this.areChannelsConfigured?"participationUnavailable.allowed":"participationUnavailable.any")),this.areChannelsConfigured&&this.canEditEntity&&this._context.hubLicense==="hub-premium"&&s("calcite-link",{href:this.discussionSettingsWorkspaceUrl,slot:"link"},this.intl.t("participationUnavailable.action")))}renderSignInNotice(t){return s("calcite-notice",{icon:"information",kind:"info",open:!0,scale:"m",slot:t},s("div",{slot:"title"},this.intl.t("signIn.title")),s("calcite-link",{onClick:this.handleSignInClicked,slot:"link"},this.intl.t("signIn.action")))}renderBlockedNotice(t){return s("arcgis-hub-discussions-blocked-notice",{slot:t,variant:this.entityType==="group"?_.Group:_.Item})}renderGoToAction(){let{enableGoTo:t,intl:e}=this;if(t)return s("calcite-action",{class:"discussions-go-to",onClick:this.handleGeometryGoTo,slot:"header-actions-end",text:e.t("showFullDiscussion")},s("calcite-icon",{class:"discussions-go-to-icon",icon:"extent",scale:"s"}))}renderSubscribeButton(){return s("arcgis-hub-subscription",{entityId:this.entityId,entityType:this.hubEntityType,slot:"list-before",subscribeButtonProps:{scale:"l",round:!1,width:"full"},types:[wt.DISCUSSION]})}renderPostList(){let{discussion:t,entity:e,entityId:i,entityType:n,displayFieldKey:a,displayFieldValid:o,displayFieldValue:l,showChannelAvatar:r,showChannelName:f,hasMap:b,isHub:v,unsavedFeatures:w,unsavedRelatedFeatures:D,unsavedExistingFeatures:C,showPostEditor:P,locationId:u,intl:g,shouldRenderOptions:T,isMobile:I,dismissible:y,postListProps:c,discussionSettings:m,handlePostListUpdated:O,handlePostListReady:p}=this,R={"location-list":!!u},x=u&&l?l:g.t("list.heading"),S=u?g.t("location.summary"):e.title;return s("calcite-panel",{closable:y,description:S,heading:x},this.renderGoToAction(),s(F,null,s("calcite-action",{class:"discussions-options",ref:E=>{this.discussionOptionsActionEl=E},scale:"m",slot:"header-actions-end",text:g.t("options")},s("calcite-icon",{class:"discussions-options-icon",icon:"ellipsis",scale:"s"})),s("calcite-popover",{autoClose:!0,flipPlacements:["top-end","bottom-end"],offsetDistance:0,overlayPositioning:"absolute",placement:"bottom-end",pointerDisabled:!0,ref:E=>{this.discussionOptionsPopoverEl=E},referenceElement:this.discussionOptionsActionEl},s("calcite-action-group",{layout:"vertical"},s("calcite-action",{alignment:"center",disabled:!c?.total,onClick:this.handleDiscussionsDownloadClick,scale:"m",text:g.t("download"),textEnabled:!0}),T&&s("calcite-action",{alignment:"left",onClick:this.handleDiscussionOptionsClick,scale:"m",text:g.t("settings"),textEnabled:!0})))),s("arcgis-hub-discussions-post-list",{channelIds:m?.allowedChannelIds,class:R,discussion:u?`${t}%?id=%${u}`:`${t}`,discussionSettings:m,displayFieldKey:a,displayFieldValid:o,displayFieldValue:l,entity:e,entityId:i,entityType:n,hasMap:b,isHub:v,isMobile:I,items:c?.items,locationId:u,nextStart:c?.nextStart,onArcgisHubDiscussionsPostListReady:p,onArcgisHubDiscussionsPostListUpdated:O,parentIds:!u&&[],ref:E=>{this.postListEl=E},showChannelAvatar:r,showChannelName:f,showLocations:!0,start:c?.start,total:c?.total,unsavedExistingFeatures:C,unsavedFeatures:w,unsavedRelatedFeatures:D},!u&&(P?this.renderPostEditor():this.renderAddOrCreatePostButton()),this.shouldRenderSubscribe&&this.renderSubscribeButton(),this.renderEmpty()))}renderLoading(){return null}renderError(){let{intl:t}=this;return s("section",null,s("calcite-icon",{icon:"frown",scale:"l"}),s("header",null,t.t("error.title")),s("p",null,t.t("error.text")),s("calcite-button",{appearance:"transparent",href:"https://hubstatus.arcgis.com/",kind:"error",onClick:this.handleCheckStatus,round:!0,scale:"l"},t.t("error.button")))}renderThread(){let{hasMap:t,isHub:e,unsavedFeatures:i,unsavedRelatedFeatures:n,unsavedExistingFeatures:a,discussion:o,entity:l,entityId:r,entityType:f,discussionSettings:b,dismissible:v,displayFieldKey:w,displayFieldValid:D,displayFieldValue:C,showChannelAvatar:P,showChannelName:u,intl:g,handleBackToList:T,locationId:I,handleBackToThread:y,handleThreadReady:c,disableNavigation:m,isMobile:O,threadProps:p}=this,R="generic.heading",x="thread.summary",S=T;return p.postId?(R="reply.heading",x="reply.summary",S=y):I&&(R="location.heading"),m&&(R="list.heading"),s("calcite-panel",{closable:v,description:g.t(x),heading:g.t(R)},!m&&s("calcite-action",{class:"discussions-back",onClick:S,scale:"s",slot:"header-actions-start",text:g.t("back")},s("calcite-icon",{class:"discussions-back-icon",icon:"chevron-left",scale:"s"})),this.renderGoToAction(),s("arcgis-hub-discussions-thread",{channel:p.channel,channelGroups:p.channelGroups,channelId:p.channelId,discussion:o,discussionSettings:b,displayFieldKey:w,displayFieldValid:D,displayFieldValue:C,entity:l,entityId:r,entityType:f,hasMap:t,isHub:e,isMobile:O,locationId:I,onArcgisHubDiscussionsThreadReady:c,parent:p.parent,parentCreator:p.parentCreator,parentCreatorOrg:p.parentCreatorOrg,parentId:p.parentId,post:p.post,postCreator:p.postCreator,postCreatorOrg:p.postCreatorOrg,postId:p.postId,ref:E=>{this.thread=E},showChannelAvatar:P,showChannelName:u,showLocations:!0,unsavedExistingFeatures:a,unsavedFeatures:i,unsavedRelatedFeatures:n}))}render(){return s(A,{key:"4748fbfecea4988f6a628bce1c2aeb3e182dbe9d","data-element":"discussions"},this.view())}static get assetsDirs(){return["locales"]}get element(){return L(this)}static get watchers(){return{_context:["handleContextChanged"]}}};st([Y({delay:300})],M.prototype,"fetchDependencies",null);st([tt()],M.prototype,"captureEmptyListImpression",null);st([V({timeout:250})],M.prototype,"checkIsMobile",null);M.style=kt;var At=':host{left:50%;width:auto;display:var(--display);transform:translate(-50%, 0)}:host([aria-hidden="true"]){display:none}div{border-bottom-right-radius:0.75rem;border-bottom-left-radius:0.75rem;padding-left:0.75rem;padding-right:0.75rem;padding-top:0.75rem;padding-bottom:0.75rem;text-align:center;--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity));background-color:var(--hub-map-outline);font-weight:var(--calcite-font-weight-bold);font-size:var(--calcite-font-size--1)}calcite-button{margin-left:1rem}',Lt=At,Ht=function(t,e,i,n){var a=arguments.length,o=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(l=t[r])&&(o=(a<3?l(o):a>3?l(e,i,o):l(e,i))||o);return a>3&&o&&Object.defineProperty(e,i,o),o},Rt="#9747FF",nt=class{constructor(t){G(this,t),this.arcgisHubDrawDone=d(this,"arcgisHubDrawDone",7),this.activeStyles={outline:`.25rem solid ${Rt}`,padding:".25rem",outlineOffset:"-.25rem"},this.view=void 0,this.isConnected=void 0,k(this,"handleDone")}async componentWillLoad(){this.intl=await j.loadIntlForComponent(this.el)}connectedCallback(){this._connect()}disconnectedCallback(){this._disconnect()}_connect(){let{view:t,el:e,activeStyles:i}=this,n=a=>t.ui.container.style[a]=i[a];Object.keys(i).forEach(n),t.ui.add(e),setTimeout(()=>{this.isConnected=!0},50)}_disconnect(){let{view:t,activeStyles:e,el:i}=this,n=a=>t.ui.container.style.removeProperty(a);Object.keys(e).forEach(n),t.ui.remove(i),this.isConnected=!1}handleDone(){this.arcgisHubDrawDone.emit()}get hasViewUI(){let{view:t}=this;return!!(t&&t.ui)}get styles(){let{isConnected:t}=this;return{"--display":t?"block":"none","--hub-map-outline":Rt}}render(){let{intl:t,styles:e,isConnected:i}=this;return s(A,{key:"ae82736952f2c980dc72663d763460924414be67","aria-hidden":i,"data-element":"discussions-map-action-notice",style:e,tabindex:0},s("div",{key:"508f112b133fd28a9754f464781a9fac2cfbdeb8"},s("span",{key:"80c7ec9cb87a46a856caf4e2acf8e46de5af5034"},t.t("adding.notice")),s("calcite-button",{key:"14efbdfc5d47ab0b2dc859d19b6b3c379a4900b6",appearance:"outline-fill",kind:"neutral",onClick:this.handleDone,round:!0,scale:"s"},t.t("adding.action"))))}static get assetsDirs(){return["locales"]}get el(){return L(this)}};Ht([V({timeout:100}),Z({when(){return this.hasViewUI&&!this.isConnected}})],nt.prototype,"_connect",null);Ht([Z({when(){return this.hasViewUI&&this.isConnected}})],nt.prototype,"_disconnect",null);nt.style=Lt;var Gt=":host{display:block;background-color:var(--calcite-color-foreground-1);padding:1rem;padding-bottom:0.5rem;--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}address{margin-bottom:0.125rem;display:grid;font-size:var(--calcite-font-size--1);font-style:normal;line-height:1.25rem;grid-template-columns:minmax(0, max-content) 1rem minmax(0, max-content)}address b{font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-bold);color:var(--calcite-color-text-1)}address span{display:flex;justify-content:center;color:var(--calcite-color-text-2)}address arcgis-relative-date{color:var(--calcite-color-text-2)}arcgis-multiline-ellipsis{font-size:var(--calcite-font-size-0);line-height:1.375}calcite-action-group{margin-left:2.75rem}.avatars{position:relative;grid-row:span 2 / span 2;float:left;margin-right:1.25rem;display:flex}.avatars:has(calcite-avatar:only-child){margin-right:0.5rem}.avatars calcite-avatar+calcite-avatar{position:absolute;top:1rem;left:1rem;z-index:10;border-radius:9999px;border:3px solid var(--calcite-color-foreground-1)}.avatars calcite-avatar:only-child{block-size:2.5rem;inline-size:2.5rem}@media only screen and (max-width: 640px){:host{border-radius:1.75rem}}@media only screen and (min-width: 640px){:host{border-radius:1.75rem 1.75rem 1.75rem 0}}",jt=Gt,Ut=function(t,e,i,n){var a=arguments.length,o=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(l=t[r])&&(o=(a<3?l(o):a>3?l(e,i,o):l(e,i))||o);return a>3&&o&&Object.defineProperty(e,i,o),o},Ot=class{constructor(t){G(this,t),this.arcgisHubDiscussionsViewFull=d(this,"arcgisHubDiscussionsViewFull",7),this.arcgisHubDiscussionsGeometryZoomTo=d(this,"arcgisHubDiscussionsGeometryZoomTo",7),this.arcgisHubDiscussionsPreviewDidRender=d(this,"arcgisHubDiscussionsPreviewDidRender",7),this.arcgisHubDiscussionsPreviewDismiss=d(this,"arcgisHubDiscussionsPreviewDismiss",7),this.hubTelemetry=d(this,"hubTelemetry",7),this.locationId=void 0,this.postId=void 0,this.parentId=void 0,this.channelId=void 0,this.discussion=void 0,this.showChannelAvatar=void 0,this.loading=!0,this.post=void 0,this.postCreator=void 0,this.channel=void 0,k(this,"handleViewFullThread","handleZoomTo","handleDismiss")}get _context(){return N()}get creatorFullName(){let{intl:t,post:e,postCreator:i}=this,n=t.t("anonymous");return(i||e?.creator)&&(n=i?.fullName||t.t("privateUser")),n}async componentWillLoad(){this.intl=await j.loadIntlForComponent(this.element),this.initialize()}componentDidRender(){this.arcgisHubDiscussionsPreviewDidRender.emit(this.element.offsetHeight)}async initialize(){this._initialize()}async _initialize(){let{channelId:t,postId:e,parentId:i,locationId:n}=this;if(t&&(i||e||n)){this.loading=!0;let a=n&&!i?await this.fetchDetailsByLocationId():await this.fetchDetails(e);Object.assign(this,a,{loading:!1}),this.emitHubTelemetry(h.dictionary.category.interaction.action.open.label.popUp.details.post)}}async fetchDetailsByLocationId(){let{locationId:t,_context:e,discussion:i}=this,{items:[n]}=await ut(Object.assign({data:{discussion:`${i}%?id=%${t}%`,num:1,sortBy:ht.UPDATED_AT,sortOrder:ct.DESC,start:1,relations:[K.CHANNEL,K.CHANNEL_ACL]}},e.hubRequestOptions));return this.fetchDetails(n.id,n)}async fetchDetails(t,e){let{_context:i}=this,n=await et({postId:t,post:e},i.hubRequestOptions),[a,o]=await Promise.all([X(n,i.hubRequestOptions),It(n,i.hubRequestOptions)]);return Object.assign(Object.assign(Object.assign({},n),a),o)}emitHubTelemetry(t){let{postId:e,parentId:i,channelId:n,channel:a}=this;this.hubTelemetry.emit(Object.assign(Object.assign({},t),{postId:e,parentId:i,channelId:n,channelAccess:U(a)}))}handleViewFullThread(){this.emitHubTelemetry(h.dictionary.category.interaction.action.open.label.thread.details[this.locationId?"location":"post"]),this.arcgisHubDiscussionsViewFull.emit()}handleZoomTo(){this.emitHubTelemetry(h.dictionary.category.interaction.action.zoom.label.in),this.arcgisHubDiscussionsGeometryZoomTo.emit(this.post)}handleDismiss(){this.emitHubTelemetry(h.dictionary.category.interaction.action.close.label.popUp.details.post),this.arcgisHubDiscussionsPreviewDismiss.emit()}renderAvatars(){var t;let{_context:e,channel:i,postCreator:n,post:a,showChannelAvatar:o,intl:l}=this,r=!n&&a?{username:a.creator}:n;return s(F,null,s("calcite-avatar",{"full-name":r?.fullName,scale:"m",thumbnail:r?.thumbnail&<(e.hubRequestOptions.portal,r,(t=e.hubRequestOptions.authentication)===null||t===void 0?void 0:t.token),"user-id":r?.id,username:r?.username}),o&&s("calcite-avatar",{"full-name":ft(i,l.t("unnamedChannel")),scale:"s"}))}renderContent(){let{post:t}=this;return s(F,null,s("div",{class:"avatars"},this.renderAvatars()),s("address",null,s("b",null,this.creatorFullName),s("span",null,"\xB7"),s("arcgis-relative-date",{dateTime:t.createdAt,formatStyle:"short"})),s("arcgis-multiline-ellipsis",{innerHTML:t.body,lines:2}),s("calcite-action-group",{layout:"horizontal"},s("calcite-action",{onClick:this.handleViewFullThread,scale:"s",text:this.intl.t("view"),textEnabled:!0}),!1,s("calcite-action",{onClick:this.handleDismiss,scale:"s",text:this.intl.t("dismiss"),textEnabled:!0})))}renderLoading(){return s("arcgis-hub-discussions-post-skeleton",null)}render(){return s(A,{key:"a2b6cdd27fe230cdcf980c6bc82f4f1ee8dfabb3","data-element":"discussions-map-preview"},this.loading?this.renderLoading():this.renderContent())}static get assetsDirs(){return["locales"]}get element(){return L(this)}static get watchers(){return{channelId:["initialize"],parentId:["initialize"],locationId:["initialize"],postId:["initialize"]}}};Ut([V({timeout:0})],Ot.prototype,"initialize",null);Ot.style=jt;var Nt=":host{display:block}",Vt=Nt,Mt={content:"hub:content:settings:discussions:compact"},Bt=class{constructor(t){G(this,t),this.arcgisHubDiscussionsOptionsEntitySaved=d(this,"arcgisHubDiscussionsOptionsEntitySaved",7),this.entityId=void 0,this.entityType=void 0,this.entity=void 0,k(this,"handleEntityEditorSaved")}get _context(){return N()}async componentWillLoad(){await this.initialize()}async initialize(){!this.entity&&this.entityId&&this.entityType&&(this.entity=await pt(this.entityType,this.entityId,this._context))}get editorType(){return Mt[this.entityType]||null}handleEntityEditorSaved(t){this.arcgisHubDiscussionsOptionsEntitySaved.emit(t.detail.entity)}get isValidEditorType(){return gt.includes(this.editorType)}renderEntityEditor(){if(this.isValidEditorType)return s("arcgis-hub-entity-editor",{editorType:this.editorType,entity:this.entity,onArcgisHubEntityEditorSaved:this.handleEntityEditorSaved,variant:dt.workspace})}render(){return s(A,{key:"fa955ff196da9daf90a4c80310cc654c16713241","data-element":"discussions-options"},this.renderEntityEditor())}get element(){return L(this)}};Bt.style=Vt;var zt=".sc-arcgis-hub-discussions-thread-h{--arcgis-hub-layout-list-gap:0;display:block;overflow:hidden;background-color:var(--calcite-color-foreground-1);padding-top:0.75rem;padding-bottom:0.75rem}arcgis-hub-discussions-post-editor.sc-arcgis-hub-discussions-thread{margin-top:1.5rem;margin-bottom:1.5rem;padding-left:0.75rem;padding-right:0.75rem}arcgis-hub-discussions-post-list.sc-arcgis-hub-discussions-thread{margin-left:1rem;margin-right:1rem}arcgis-hub-discussions-post.loading.sc-arcgis-hub-discussions-thread:not([parent-id]){margin-left:1rem;margin-right:1rem;margin-bottom:1rem}arcgis-hub-discussions-post[parent-id].sc-arcgis-hub-discussions-thread{padding-left:1rem;padding-right:1rem}arcgis-hub-discussions-post.sc-arcgis-hub-discussions-thread:not([parent-id])+arcgis-hub-discussions-post[parent-id].sc-arcgis-hub-discussions-thread{margin-top:1.5rem;margin-bottom:1.5rem}calcite-notice.sc-arcgis-hub-discussions-thread{margin-top:1.5rem;margin-bottom:1.5rem;padding-left:1rem;padding-right:1rem}calcite-notice.sc-arcgis-hub-discussions-thread:first-child{margin-top:0px}arcgis-hub-discussions-blocked-notice.sc-arcgis-hub-discussions-thread,arcgis-hub-notice.sc-arcgis-hub-discussions-thread{margin-top:1.5rem;margin-bottom:1.5rem;margin-left:1rem;margin-right:1rem}",qt=zt,xt=function(t,e,i,n){var a=arguments.length,o=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,i):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,n);else for(var r=t.length-1;r>=0;r--)(l=t[r])&&(o=(a<3?l(o):a>3?l(e,i,o):l(e,i))||o);return a>3&&o&&Object.defineProperty(e,i,o),o},H;(function(t){t.Loading="loading",t.ParentAndReply="parent_and_reply",t.ParentAndReplies="parent_and_replies",t.ThreadDeleted="thread_deleted",t.ChannelDeleted="channel_deleted"})(H||(H={}));var at=class{constructor(t){G(this,t),this.arcgisHubDiscussionsPostSelect=d(this,"arcgisHubDiscussionsPostSelect",7),this.arcgisAppIdentityStartSignIn=d(this,"arcgisAppIdentityStartSignIn",7),this.hubTelemetry=d(this,"hubTelemetry",7),this.arcgisHubDiscussionsThreadReady=d(this,"arcgisHubDiscussionsThreadReady",7),this.hasMap=void 0,this.isHub=void 0,this.unsavedFeatures=void 0,this.unsavedRelatedFeatures=void 0,this.unsavedExistingFeatures=[],this.postId=void 0,this.post=void 0,this.postCreator=void 0,this.postCreatorOrg=void 0,this.parent=void 0,this.parentId=void 0,this.parentCreator=void 0,this.parentCreatorOrg=void 0,this.channelId=void 0,this.channel=void 0,this.channelGroups=void 0,this.discussion=void 0,this.entityId=void 0,this.entityType=void 0,this.discussionSettings=void 0,this.entity=void 0,this.displayFieldValid=void 0,this.displayFieldValue=void 0,this.displayFieldKey=void 0,this.isMobile=void 0,this.locationId=void 0,this.showLocations=void 0,this.disableSelectExistingLocation=void 0,this.locationDescriptionText=void 0,this.showChannelAvatar=void 0,this.showChannelName=void 0,this._context=N(),this.intl=void 0,this._loading=void 0,this.parentReady=!1,this.postReady=!1,this.postListReady=!1,this.postEditorReady=!1,this.ready=!1,this.numPostableChannels=null,k(this,"renderParentAndReply","renderParentAndReplies","renderThreadDeleted","renderChannelInaccessible","handleViewAllReplies","handleViewAllPosts","renderLoading","handleParentReady","handlePostReady","handlePostListReady","handlePostEditorReady","handleSignInClicked")}componentWillLoad(){this.initialize()}connectedCallback(){it(this)}disconnectedCallback(){this.disconnectContext()}async initialize(){this.loadTranslations(),this._context&&this.loadDependencies()}async loadTranslations(){this.intl=await j.loadIntlForComponent(this.element)}async loadDependencies(){return this._loading=!0,this.fetchDependencies().then(t=>{Object.assign(this,t),this._loading=!1})}fetchDependencies(){return this._fetchDependencies()}handleContextChanged(t,e){var i,n;((i=t?.currentUser)===null||i===void 0?void 0:i.username)!==((n=e?.currentUser)===null||n===void 0?void 0:n.username)&&this.loadDependencies()}handleParentReady(){this.parentReady=!0,this.updateReady()}handlePostReady(){this.postReady=!0,this.updateReady()}handlePostEditorReady(){this.postEditorReady=!0,this.updateReady()}handlePostListReady(){this.postListReady=!0,this.updateReady()}handleReadyChange(t){t&&this.arcgisHubDiscussionsThreadReady.emit()}updateReady(){let t=[[this.postEditorRef,this.postEditorReady],[this.parentRef,this.parentReady],[this.postRef,this.postReady],[this.postListRef,this.postListReady]];this.ready=t.filter(([e])=>!!e).every(([e,i])=>i)}async getPostEditorRef(){return this.postEditorRef}async getPostListRef(){return this.postListRef}async _fetchDependencies(){let{isHub:t,_context:e,postId:i,post:n,parent:a,parentId:o,discussion:l,entityId:r,entityType:f,discussionSettings:b,entity:v,locationId:w,parentCreator:D,channelId:C,channel:P,channelGroups:u,displayFieldKey:g,displayFieldValid:T,displayFieldValue:I}=this,[y,c]=await Promise.all([et({postId:i,post:n},e.hubRequestOptions),J({isHub:t},e.hubRequestOptions)]),m=await Ct(Object.assign({parentId:o,parent:a},y),e.hubRequestOptions),[O,p,R]=await Promise.all([Pt(Object.assign({parentCreator:D},m),e.hubRequestOptions),Q(Object.assign(Object.assign({discussion:l,entityId:r,entityType:f,entity:v,locationId:w,displayFieldKey:g,displayFieldValid:T,displayFieldValue:I,discussionSettings:b},y),m),e.hubRequestOptions),X(Object.assign(Object.assign({channelId:C,channel:P,channelGroups:u},y),m),e.hubRequestOptions)]),{total:x}=await W({allowedChannelIds:[this.channelId],requestOptions:this._context.hubRequestOptions,num:1});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},y),m),O),c),p),R),{numPostableChannels:x})}get loading(){let{intl:t,_loading:e,_context:i,channel:n}=this;return!t||!i||e||n===void 0}get areChannelsConfigured(){var t,e;return!!(!((e=(t=this.discussionSettings)===null||t===void 0?void 0:t.allowedChannelIds)===null||e===void 0)&&e.length)}get canEditEntity(){return!!this._context.currentUser&&B(this.entity.item,this._context.currentUser)}get discussionSettingsWorkspaceUrl(){return(this.isHub?"":this._context.hubHomeUrl)+q(this.entity.type,this.entityId,"settings-discussions")}handlePostOrReplyDeleted(t){let{parent:e,post:i}=this;(t.detail.id===e?.id||t.detail.id===i?.id)&&(t.detail.id===e?.id?this.parent=null:this.post=null,this.deletedDuringSession=!0)}handleViewAllReplies(){let{channelId:t,channel:e,channelGroups:i,parent:n,parentId:a,postId:o,parentCreator:l,parentCreatorOrg:r}=this;this.arcgisHubDiscussionsPostSelect.emit({channel:e,channelId:t,channelGroups:i,parentId:a,parent:n,parentCreator:l,parentCreatorOrg:r}),this.emitHubTelemetry(Object.assign(Object.assign({},h.dictionary.category.interaction.action.open.label.thread),{postId:o,parentId:a}))}handleViewAllPosts(){let{parentId:t,postId:e}=this;this.arcgisHubDiscussionsPostSelect.emit({channelId:null,channel:null,channelGroups:null,parent:null,parentId:null,parentCreator:null,parentCreatorOrg:null}),this.emitHubTelemetry(Object.assign(Object.assign({},h.dictionary.category.interaction.action.close.label.thread),{postId:e,parentId:t}))}emitHubTelemetry(t){let{channelId:e,channel:i}=this;this.hubTelemetry.emit(Object.assign({channelId:e,channelAccess:i?U(i):void 0},t))}get views(){let{renderLoading:t,renderParentAndReply:e,renderParentAndReplies:i,renderThreadDeleted:n,renderChannelInaccessible:a}=this;return{[H.Loading]:{render:t},[H.ParentAndReply]:{render:e},[H.ParentAndReplies]:{render:i},[H.ThreadDeleted]:{render:n},[H.ChannelDeleted]:{render:a}}}get view(){let{views:t,parentId:e,postId:i,parent:n,post:a,loading:o,channel:l}=this,r;return o?r=H.Loading:l===null?r=H.ChannelDeleted:e&&i&&n===null&&a===null?r=H.ThreadDeleted:i?r=H.ParentAndReply:r=H.ParentAndReplies,t[r]}handleHubTelemetry(t){let e=[{from:h.dictionary.category.interaction.action.viewed.label.post.details.postList,to:h.dictionary.category.interaction.action.viewed.label.post.details.thread},{from:h.dictionary.category.interaction.action.open.label.postList,to:null}],i=a=>Object.entries(a).every(([o,l])=>{var r;return((r=t.detail)===null||r===void 0?void 0:r[o])===l}),n=e.find(({from:a})=>i(a));n&&(n.to?Object.assign(t.detail,n.to):t.stopPropagation())}handleSignInClicked(t){t.preventDefault(),this.arcgisAppIdentityStartSignIn.emit()}captureThreadDeletedImpression(){let{postId:t,parentId:e}=this;this.emitHubTelemetry(Object.assign(Object.assign({},h.dictionary.category.interaction.action.viewed.label.post.details.thread),{postId:t,parentId:e,response:h.constants.response.FAILURE}))}get blockedNotice(){let t=bt(this.channel,this._context.currentUser),e=!z(this.entity),i;return t&&e?i=_.Reply:t?i=_.Group:e&&(i=this.entityType==="group"?_.Group:_.Item),i}renderChannelInaccessible(){return this._context.currentUser?s("calcite-notice",{icon:"exclamation-mark-triangle",kind:"warning",open:!0,scale:"m"},s("div",{slot:"title"},this.intl.t("thread.inaccessible.title")),s("div",{slot:"message"},this.intl.t("thread.inaccessible.message")),s("calcite-link",{onClick:this.handleViewAllPosts,slot:"link"},this.intl.t("thread.inaccessible.action"))):this.renderSignInNotice()}renderParent(){let{channel:t,channelGroups:e,channelId:i,discussion:n,displayFieldKey:a,displayFieldValid:o,displayFieldValue:l,showChannelAvatar:r,showChannelName:f,entity:b,entityId:v,entityType:w,hasMap:D,isHub:C,isMobile:P,locationDescriptionText:u,locationId:g,parentId:T,parent:I,unsavedExistingFeatures:y,unsavedFeatures:c,unsavedRelatedFeatures:m,parentCreator:O,parentCreatorOrg:p,handleParentReady:R,showLocations:x}=this;return s("arcgis-hub-discussions-post",{channel:t,channelGroups:e,channelId:i,discussion:n,displayFieldKey:a,displayFieldValid:o,displayFieldValue:l,entity:b,entityId:v,entityType:w,hasMap:D,isHub:C,isMobile:P,locationDescriptionText:u,locationId:g,onArcgisHubDiscussionsPostReady:R,parentCreatorOrg:p,post:I,postCreator:O,postId:T,ref:S=>{this.parentRef=S},showChannelAvatar:r,showChannelName:f,showLocations:x,unsavedExistingFeatures:y,unsavedFeatures:c,unsavedRelatedFeatures:m})}renderReplyEditor(){let{hasMap:t,unsavedFeatures:e,unsavedRelatedFeatures:i,unsavedExistingFeatures:n,isHub:a,discussion:o,parentId:l,parent:r,entity:f,entityId:b,entityType:v,discussionSettings:w,channelId:D,channel:C,channelGroups:P,isMobile:u,locationId:g,handlePostEditorReady:T,showLocations:I,disableSelectExistingLocation:y,blockedNotice:c,numPostableChannels:m}=this;if(r&&!c&&m)return s("arcgis-hub-discussions-post-editor",{channel:C,channelGroups:P,channelId:D,disableSelectExistingLocation:y,discussion:o,discussionSettings:w,entity:f,entityId:b,entityType:v,hasMap:t,isHub:a,isMobile:u,locationId:g,onArcgisHubDiscussionsPostEditorReady:T,parent:r,parentId:l,ref:O=>{this.postEditorRef=O},showLocations:I,unsavedExistingFeatures:n,unsavedFeatures:e,unsavedRelatedFeatures:i})}renderNotice(){let{blockedNotice:t,_context:e}=this,i;return t?i=s("arcgis-hub-discussions-blocked-notice",{variant:t}):e.currentUser?this.numPostableChannels||(i=this.renderParticipationUnavailableNotice()):i=this.renderSignInNotice(),i}renderParticipationUnavailableNotice(){return s("calcite-notice",{icon:"exclamation-mark-triangle",kind:"warning",open:!0,scale:"m"},s("div",{slot:"title"},this.intl.t("participationUnavailable.title")),s("div",{slot:"message"},this.intl.t(this.areChannelsConfigured?"participationUnavailable.allowed":"participationUnavailable.any")),this.areChannelsConfigured&&this.canEditEntity&&this._context.hubLicense==="hub-premium"&&s("calcite-link",{href:this.discussionSettingsWorkspaceUrl,slot:"link"},this.intl.t("participationUnavailable.action")))}renderSignInNotice(){return s("calcite-notice",{icon:"information",kind:"info",open:!0,scale:"m"},s("div",{slot:"title"},this.intl.t("signInTitle")),s("calcite-link",{onClick:this.handleSignInClicked,slot:"link"},this.intl.t("signInAction")))}renderParentAndReplies(){let{hasMap:t,unsavedFeatures:e,unsavedRelatedFeatures:i,unsavedExistingFeatures:n,displayFieldKey:a,displayFieldValid:o,displayFieldValue:l,intl:r,isHub:f,discussion:b,parentId:v,entity:w,entityId:D,entityType:C,discussionSettings:P,isMobile:u,locationDescriptionText:g,locationId:T,handlePostListReady:I,showLocations:y}=this;return s(F,null,this.renderParent(),this.renderReplyEditor(),this.renderNotice(),s("arcgis-hub-discussions-post-list",{discussion:b,discussionSettings:P,displayFieldKey:a,displayFieldValid:o,displayFieldValue:l,entity:w,entityId:D,entityType:C,hasMap:t,isHub:f,isMobile:u,locationDescriptionText:g,locationId:T,onArcgisHubDiscussionsPostListReady:I,parentIds:[v],ref:c=>{this.postListRef=c},showLocations:y,unsavedExistingFeatures:n,unsavedFeatures:e,unsavedRelatedFeatures:i},s("calcite-notice",{kind:"danger",open:!0,scale:"m",slot:"error"},s("div",{slot:"title"},r.t("error")),s("div",{slot:"message"},r.t("repliesFailure")))))}renderParentAndReply(){let{intl:t,handleViewAllReplies:e,post:i,postCreator:n,postCreatorOrg:a,unsavedFeatures:o,hasMap:l,isHub:r,unsavedRelatedFeatures:f,unsavedExistingFeatures:b,channel:v,channelGroups:w,channelId:D,isMobile:C,locationId:P,discussion:u,displayFieldKey:g,displayFieldValid:T,displayFieldValue:I,showChannelAvatar:y,showChannelName:c,entity:m,entityId:O,entityType:p,parentId:R,parent:x,parentCreator:S,parentCreatorOrg:E,postId:Et,handlePostReady:St}=this;return s(F,null,this.renderParent(),!!i&&s("calcite-notice",{open:!0,scale:"s"},s("div",{slot:"title"},t.t("reply.single.title")),s("calcite-link",{onClick:e,slot:"link"},t.t("reply.single.link"))),s("arcgis-hub-discussions-post",{channel:v,channelGroups:w,channelId:D,discussion:u,displayFieldKey:g,displayFieldValid:T,displayFieldValue:I,entity:m,entityId:O,entityType:p,hasMap:l,isHub:r,isMobile:C,locationDescriptionText:this.locationDescriptionText,locationId:P,onArcgisHubDiscussionsPostReady:St,parent:x,parentCreator:S,parentCreatorOrg:E,parentId:R,post:i,postCreator:n,postCreatorOrg:a,postId:Et,ref:Ft=>{this.postRef=Ft},showChannelAvatar:y,showChannelName:c,showLocations:this.showLocations,unsavedExistingFeatures:b,unsavedFeatures:o,unsavedRelatedFeatures:f}))}renderThreadDeleted(){let{intl:t,deletedDuringSession:e}=this;return e||this.captureThreadDeletedImpression(),s("calcite-notice",{kind:"danger",open:!0,scale:"m"},s("div",{slot:"title"},t.t("thread.deleted.title")),s("div",{slot:"message"},t.t("thread.deleted.message")),s("calcite-link",{onClick:this.handleViewAllPosts,slot:"link"},t.t("thread.deleted.action")))}renderLoading(){return null}render(){let{view:t}=this;return s(A,{key:"725a9c3f718ae5178c7ad5258befa329b55e62d6","data-element":"discussions-thread"},t.render())}static get assetsDirs(){return["locales"]}get element(){return L(this)}static get watchers(){return{_context:["handleContextChanged"],ready:["handleReadyChange"]}}};xt([Y({delay:300})],at.prototype,"fetchDependencies",null);xt([tt()],at.prototype,"captureThreadDeletedImpression",null);at.style=qt;return{arcgis_hub_discussions:M,arcgis_hub_discussions_map_action_notice:nt,arcgis_hub_discussions_map_preview:Ot,arcgis_hub_discussions_options:Bt,arcgis_hub_discussions_thread:at}},"config",a,b)
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.32/esri/copyright.txt for details.
|
|
3
|
+
v0.32.2 */
|
|
4
|
+
import{a as f}from"./BUOPSPML.js";import{a as m,b as u,c as g,d as C}from"./MM5G62MJ.js";import{a as p}from"./DX2GLZPZ.js";import{a as r}from"./CH2NWUER.js";import"./QYJ7HMJA.js";import"./3VUD6CFD.js";import{a as l}from"./BIYDKFNV.js";import"./XEHPMASD.js";import{b as t,c as o,d as h,e as c,h as b,i as d}from"./YKNBYBRF.js";import"./NOKL74EQ.js";import{g as y}from"./PXG4LKUH.js";import"./JWTFBP7C.js";import"./BXWSNP7O.js";import"./2NHSOGQB.js";var S=":host([type='textarea']) .copy-button{flex-shrink:1;align-self:flex-end;min-width:7rem}:host([type='textarea']) calcite-label{display:flex;flex-direction:column;min-width:-moz-fit-content;min-width:fit-content}.copy-button{height:2rem}",v=S,k=class{constructor(e){d(this,e),this.arcgisHubCopyButtonClicked=c(this,"arcgisHubCopyButtonClicked",7),this.type="text",this.label=void 0,this.placeholder=void 0,this.buttonText=void 0,this.value=void 0,this.readonly=!1,this.disabled=!1,p(this,"onCopyButtonClick","handleCalciteInputInput")}async componentWillLoad(){this.intl=await r.loadIntlForComponent(this.element),this.type==="textarea"&&(this.buttonText=this.buttonText||this.intl.t("copyCode"))}handleCalciteInputInput(e){this.value=e.target.value}onCopyButtonClick(){this.arcgisHubCopyButtonClicked.emit(this.value),f(this.value)}renderCopyButton(e,a,s){return t("calcite-button",{class:"copy-button",disabled:this.disabled,iconStart:a,label:this.intl.t("copyButtonLabel"),onClick:this.onCopyButtonClick,slot:s},e)}render(){let e=this.type==="text";return t(o,{key:"131fa5fc36d2695f859e628f2faf34440c95e453"},t("calcite-label",{key:"9e6f329492ee924ee0eb859aaea0fd53ec582a96"},t("slot",{key:"acdbbda35025c054f46daedc14830bd4c95b024a",name:"label"},this.label),e?t("calcite-input",{disabled:this.disabled,onCalciteInputInput:this.handleCalciteInputInput,placeholder:this.placeholder,readOnly:this.readonly,type:this.type,value:this.value},this.renderCopyButton(null,"copy-to-clipboard","action")):t(b,null,t("calcite-input",{disabled:this.disabled,placeholder:this.placeholder,readOnly:this.readonly,scale:"l",type:this.type,value:this.value}),this.renderCopyButton(this.buttonText))))}static get assetsDirs(){return["locales"]}get element(){return h(this)}};k.style=v;var B="5.409.0",x=":host{display:block}",I=x,R=class{get linkUrl(){let e=new URL(location.href),{origin:a,pathname:s,search:n,hash:i}=this;return a&&(e=new URL(a)),s&&(e.pathname=s,e.search=""),n&&(e.search=n),e.hash=i??"",e.href}async getCardState(){let e=this.referenceElement;return e.getState?await e.getState():m(this.referenceElement)}getSnippetByVal(e){if(this.referenceElement&&this.shareableByValue){let{domId:a,referenceElement:s}=this,n=u(B),i=g(s,Object.assign(Object.assign({},e),{id:a}));return`${n}
|
|
5
|
+
${i}`}}getSnippetByRef(){let{referenceElement:e}=this;if(e&&this.shareableByReference){let a=u(B),s=C(e);return`${a}
|
|
6
|
+
${s}>`}}async updateSnippets(){let{referenceElement:e}=this;if(e&&(this.shareableByReference||this.shareableByValue)){await customElements.whenDefined(e.tagName.toLowerCase());let a=await this.getCardState();this.snippetByVal=this.getSnippetByVal(a),this.snippetByRef=this.getSnippetByRef()}}constructor(e){d(this,e),this.hubTelemetry=c(this,"hubTelemetry",7),this.origin=void 0,this.pathname=void 0,this.search=void 0,this.hash=void 0,this.shareable=!1,this.shareableByValue=!1,this.shareableByReference=!1,this.referenceElement=void 0,this.domId=void 0,this.snippetByVal=void 0,this.snippetByRef=void 0,this.domId=y()}async componentWillLoad(){this.intl=await r.loadIntlForComponent(this.element)}componentWillRender(){this.updateSnippets()}onCopyButtonClicked(e){e.stopPropagation();let a=Object.assign(Object.assign({},l.dictionary.category.interaction.action.share.label.link),{details:e.detail});this.hubTelemetry.emit(a)}render(){return t(o,{key:"b77b2047b9185c6eb068a5640184a455bfeabda9","data-element":"share"},this.shareable&&t("arcgis-copyable-input",{label:this.intl.t("copyLinkLabel"),readonly:!0,type:"text",value:this.linkUrl}),this.shareableByValue&&t("arcgis-copyable-input",{label:this.intl.t("copySnippetByValLabel"),readonly:!0,type:"textarea",value:this.snippetByVal}),this.shareableByReference&&t("arcgis-copyable-input",{label:this.intl.t("copySnippetByRefLabel"),readonly:!0,type:"textarea",value:this.snippetByRef}))}static get assetsDirs(){return["locales"]}get element(){return h(this)}};R.style=I;var E=':host{display:flex;height:100%;flex-direction:column}calcite-fab{justify-content:flex-end}:host([shareable-on-hover]){position:relative}:host([shareable-on-hover]) calcite-fab{pointer-events:none;position:absolute;top:100%;right:0px;left:0px;z-index:10;opacity:0;transition:opacity 150ms ease-out 2000ms}:host([shareable-on-hover]:hover) calcite-fab,:host([shareable-on-hover]:focus) calcite-fab{pointer-events:auto;opacity:1;transition:opacity 250ms ease-in 100ms}calcite-tooltip[aria-hidden="true"]{pointer-events:none}',O=E,w=class{get isShareable(){let{shareable:e,referenceElement:a}=this;return e&&!!a?.id}get shouldRender(){let{isShareable:e,shareableByValue:a,shareableByReference:s}=this;return e||a||s}get _messageOverrides(){return{close:this.intl.t("modalClose")}}onModalClose(){this.modalIsOpen=!1;let e=Object.assign({},l.dictionary.category.interaction.action.close.label.modal.details.share);this.hubTelemetry.emit(e)}onOpenModalButtonClick(){this.modalIsOpen=!0;let e=Object.assign({},l.dictionary.category.interaction.action.open.label.popover.details.share);this.hubTelemetry.emit(e)}constructor(e){d(this,e),this.hubTelemetry=c(this,"hubTelemetry",7),this.shareable=!1,this.shareableByValue=!1,this.shareableByReference=!1,this.referenceElement=void 0,this.shareableOnHover=!1,this.showShareUi=!0,this.modalIsOpen=!1,p(this,"onModalClose","onOpenModalButtonClick")}async componentWillLoad(){this.intl=await r.loadIntlForComponent(this.element)}componentDidLoad(){if(!this.referenceElement){let e=this.element.shadowRoot.querySelector("slot");this.referenceElement=e.assignedElements()[0]}}renderSharingUi(){if(this.shouldRender)return t(b,null,t("calcite-fab",{appearance:"outline-fill",icon:"share",kind:"brand",label:this.intl.t("shareableTooltip"),onClick:this.onOpenModalButtonClick,text:this.intl.t("shareableTooltip"),textEnabled:!0}),t("arcgis-wormhole",null,t("calcite-dialog",{heading:this.intl.t("modalHeading"),messageOverrides:this._messageOverrides,modal:!0,onCalciteDialogClose:this.onModalClose,open:this.modalIsOpen,scale:"s"},this.modalIsOpen&&t("arcgis-share",{hash:this.referenceElement&&this.referenceElement.id,referenceElement:this.referenceElement,shareable:this.shareable,shareableByReference:this.shareableByReference,shareableByValue:this.shareableByValue}))))}render(){return t(o,{key:"190deda4c3edc1f6b8fa6fe192e7b560e2e8eba5","data-element":"shareable-card",tabindex:this.shouldRender&&this.shareableOnHover?"0":void 0},t("slot",{key:"909fcaa4dc7b98054787a2d1a52e841d4cb12522"}),this.showShareUi&&this.renderSharingUi())}static get assetsDirs(){return["locales"]}get element(){return h(this)}};w.style=O;export{k as arcgis_copyable_input,R as arcgis_share,w as arcgis_shareable_card};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.32/esri/copyright.txt for details.
|
|
3
|
+
v0.32.2 */
|
|
4
|
+
import{a as r}from"./DX2GLZPZ.js";import{b as e,e as s,i as t}from"./YKNBYBRF.js";import"./2NHSOGQB.js";var h=class{constructor(a){t(this,a),this.arcgisConfigurationEditorFieldInputChange=s(this,"arcgisConfigurationEditorFieldInputChange",7),this.params=void 0,r(this,"handleArcgisHubInputColorChange")}handleArcgisHubInputColorChange(a){this.arcgisConfigurationEditorFieldInputChange.emit(a.target.value)}render(){var a,i;let o=this.params.schema;return e("arcgis-hub-input-color",{key:"bfb58f0c6e0c75791c16a836ab6bdf49ff4c079e",disabled:this.params.disabled,label:o.title,onArcgisHubInputColorChange:this.handleArcgisHubInputColorChange,savedColors:(i=(a=this.params.uiSchema)===null||a===void 0?void 0:a.options)===null||i===void 0?void 0:i.savedColors,value:this.params.value})}};export{h as hub_field_input_color};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.32/esri/copyright.txt for details.
|
|
3
|
+
v0.32.2 */
|
|
4
|
+
import{a as _,b as F}from"./PFG5DAY2.js";import{b as z,c as q}from"./B4KYBBFV.js";import{b as R}from"./BRNQOE6M.js";import{a as x}from"./KG62KFST.js";import{a as v}from"./E2R2PH55.js";import a from"./4SWGIAH7.js";import"./JXLZPII7.js";import"./WXE3P52G.js";import"./AWOXQW27.js";import"./75B44T4C.js";import"./NHML7J5F.js";import"./JLITWA6U.js";import"./5HL7N6S3.js";import"./XRSNCL4S.js";import"./2ZTJHITH.js";import"./ARGXE7D2.js";import"./EFTM7OCO.js";import"./4ZGSSI5T.js";import"./PF7DB2OB.js";import{a as k}from"./DX2GLZPZ.js";import{a as B}from"./CH2NWUER.js";import"./QYJ7HMJA.js";import"./3VUD6CFD.js";import{a as g}from"./BIYDKFNV.js";import"./XEHPMASD.js";import{b as l,c as E,d as O,e as y,h as S,i as P}from"./YKNBYBRF.js";import"./NOKL74EQ.js";import"./PXG4LKUH.js";import"./JWTFBP7C.js";import"./BXWSNP7O.js";import"./2NHSOGQB.js";export default $arcgis.t(([D,{intersects:ee,buffer:te},X,{watch:j},I,J,ie,G,{project:se},ne,re,oe,ae,le,,{h:V,o:K,p:Y,u:U}])=>{var $=(e,t)=>{let{height:i,width:s}=t,n=e.y<i/2?"top":"bottom",r=e.x<s/2?"left":"right";return`${n}-${r}`},ce=(e,t)=>{let{xmin:i,ymin:s,xmax:n,ymax:r,spatialReference:o}=e,a=t.includes("top")?s:r;return{x:t.includes("left")?n:i,y:a,spatialReference:o}},de=(e,t)=>{let{x:i,y:s}=e,{x:n,y:r}=t,o=n-i,a=r-s;return Math.sqrt(o**2+a**2)},he=(e,t)=>{let{spatialReference:i}=t,s=1/0,n=0,r=(t.type==="polygon"?t.rings.flat(1/0):t.paths.flat(1/0)).reduce((c,d,h)=>{let p=Math.floor(h/2);return c[p]||(c[p]=[]),c[p].push(d),c},[]);r.forEach((c,d)=>{let[h,p]=c,m=de({x:h,y:p,spatialReference:i},e);m<s&&(s=m,n=d)});let[o,a]=r[n];return{x:o,y:a,spatialReference:i}},pe=":host{position:absolute;z-index:1;width:max-content;--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);top:var(--top-offset);left:var(--left-offset);transform:var(--transform)}calcite-action{border-width:0px;border-top-width:1px;border-style:solid;border-color:var(--calcite-color-border-1)}calcite-action:first-of-type{border-width:0px}calcite-action-pad>calcite-action{border-width:0px}calcite-action-group{border-width:0px;border-bottom-width:1px;border-style:solid;border-color:var(--calcite-color-border-1)}calcite-action-group>calcite-action{border-style:none}",ue=pe,fe=function(e,t,i,s){var n=arguments.length,r=n<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,i):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n<3?o(r):n>3?o(t,i,r):o(t,i))||r);return n>3&&r&&Object.defineProperty(t,i,r),r},Z=class{constructor(e){P(this,e),this.target=void 0,this.unthemed=!1,this.x=void 0,this.y=void 0,this.quadrant=void 0,this.content=void 0}handlePopoverOpen(e){e.stopPropagation();let{detail:t}=e,i=t.view,s=t.geometry,{left:n,top:r,height:o,width:a}=i.container.getBoundingClientRect();if(s.type==="polygon"||s.type==="polyline"||s.type==="extent"){let c=s.extent,d=i.toScreen(c.center);this.quadrant=$(d,i);let h=ce(c,this.quadrant),p=s.type==="extent"?X.fromExtent(s):s,m=he(h,p),b=i.toScreen(m);if(b.x<0||b.y<0||b.x>a||b.y>o)if(ee(i.extent,s)){let C=i.toScreen(i.center);this.quadrant=$(C,i),this.x=C.x+n,this.y=C.y+r}else{this.content=null;return}else this.x=b.x+n,this.y=b.y+r}else if(s.type==="point"){let c=i.toScreen(s);this.quadrant=$(c,i),this.x=c.x+n,this.y=c.y+r}if(this.x<n||this.x>n+a||this.y<r||this.y>r+o){this.content=null;return}this.content=t.render(s.type)}handlePopoverClear(e){e.stopPropagation(),this.content=null}get styles(){let{quadrant:e,x:t,y:i}=this,s=e?.includes("right")?"translateX(-110%)":"translateX(10%)",n=e?.includes("top")?"translateY(-25%)":"translateY(-75%)";return{"--top-offset":`${i+window.scrollY}px`,"--left-offset":`${t}px`,transform:`${s} ${n}`}}render(){let{styles:e,content:t,unthemed:i}=this;return l(E,{key:"5049152a87f0226decc8dcb22b1f0ddd61a01078",style:e,unthemed:i},t)}get el(){return O(this)}};fe([x({when(e){let{target:t}=this,{detail:{source:i}}=e;return!t&&!i||t?.toLowerCase()===i?.toLowerCase()}})],Z.prototype,"handlePopoverOpen",null);Z.style=ue;var ge=":host{display:block}span{margin:0px;width:auto;border-radius:0.5rem;--tw-bg-opacity:1;background-color:rgb(151 71 255 / var(--tw-bg-opacity));padding:0.5rem;font-size:var(--calcite-font-size--1);line-height:1rem;font-weight:var(--calcite-font-weight-medium);--tw-text-opacity:1;color:rgb(255 255 255 / var(--tw-text-opacity));--tw-drop-shadow:drop-shadow(0 4px 3px rgb(0 0 0 / 0.07)) drop-shadow(0 2px 2px rgb(0 0 0 / 0.06));filter:var(--tw-filter)}span.danger{background-color:var(--calcite-color-status-danger)}span.brand{background-color:var(--calcite-color-brand)}span.info{background-color:var(--calcite-color-status-info)}span.warning{background-color:var(--calcite-color-status-warning)}span.success{background-color:var(--calcite-color-status-success)}calcite-icon{margin-right:0.5rem;vertical-align:sub}",ye=ge,be=class{constructor(e){P(this,e),this.text=void 0,this.kind=void 0,this.icon=void 0}render(){let{text:e,kind:t,icon:i}=this;return l(E,{key:"061c3b09539bf0091107c2c53c1ccac02af3bf38","data-element":"map-tip"},l("span",{key:"559f75f45d2085b3b15e15f3c7419e12cccf6929",class:t},i&&l("calcite-icon",{icon:i,scale:"s"}),e))}};be.style=ye;var me=":host{display:flex;justify-content:flex-end;--tw-shadow:0 6px 20px -4px rgba(0, 0, 0, 0.1), 0 4px 12px -2px rgba(0, 0, 0, 0.08);--tw-shadow-colored:0 6px 20px -4px var(--tw-shadow-color), 0 4px 12px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host-context(div.esri-ui-inner-container.esri-ui-corner-container){box-shadow:none !important}",we=me,ve=class{get position(){return this.viewPosition.includes("right")?"end":"start"}constructor(e){P(this,e),this.expandDisabled=void 0,this.viewPosition="top-right",this.view=void 0,this.scale="m",this.expanded=void 0,k(this,"toggleExpanded")}componentWillLoad(){let{view:e,el:t,viewPosition:i}=this;e&&e.ui&&e.ui.add(t,i)}disconnectedCallback(){let{view:e,el:t}=this;e&&e.ui&&e.ui.remove(t)}addWidgetToView(e,t){e&&e.ui&&e!==t&&this.view.ui.add(this.el,this.viewPosition)}toggleExpanded(){this.expanded=!this.expanded}render(){let{expandDisabled:e,expanded:t,position:i,scale:s}=this;return l(E,{key:"42a47641f505a696e1c8de55ad93062812905b6b"},this.view&&l("calcite-action-pad",{expandDisabled:e,expanded:t,onCalciteActionPadToggle:this.toggleExpanded,position:i,scale:s},l("slot",null)))}get el(){return O(this)}static get watchers(){return{view:["addWidgetToView"]}}};ve.style=we;var T;(function(e){e.START="start",e.ACTIVE="active",e.COMPLETE="complete",e.CANCEL="cancel"})(T||(T={}));var w;(function(e){e.START="start",e.ACTIVE="active",e.INACTIVE="inactive"})(w||(w={}));var xe=":host{display:block}.hub-widget-draw{min-width:none !important;max-width:none !important;padding:0px}.draw-popover{width:max-content}.draw-popover>p{margin:0px;padding:0.75rem}@media only screen and (min-width: 640px){.hub-widget-draw.top{position:absolute}.hub-widget-draw.top{width:25rem}.hub-widget-draw.top{padding:0px}.hub-widget-draw.right{right:100%}.hub-widget-draw.right{margin-right:1rem}.hub-widget-draw.left{left:100%}.hub-widget-draw.left{margin-left:1rem}.hub-widget-draw.bottom.left{margin-left:0.5rem}.hub-widget-draw.bottom.right{margin-right:0.5rem}}@media only screen and (max-width: 640px){.hub-widget-draw.top{position:absolute}.hub-widget-draw.top{z-index:50}.hub-widget-draw.top{padding:0px}.hub-widget-draw.top{top:calc(var(--top-offset) + var(--bottom-offset));width:calc(var(--view-width) + 1px);display:var(--mobile-display)}.hub-widget-draw.right{right:-1rem}.hub-widget-draw.left{left:-1rem}}",Ce=xe,f=function(e,t,i,s){var n=arguments.length,r=n<3?t:s===null?s=Object.getOwnPropertyDescriptor(t,i):s,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(e,t,i,s);else for(var a=e.length-1;a>=0;a--)(o=e[a])&&(r=(n<3?o(r):n>3?o(t,i,r):o(t,i))||r);return n>3&&r&&Object.defineProperty(t,i,r),r},Q=["select","point","polyline","polygon","rectangle"],N={select:{icon:"select"},point:{icon:"pin"},polyline:{icon:"freehand"},polygon:{icon:"freehand-area"},rectangle:{icon:"rectangle-area"},circle:{icon:"circle"}},u=class{constructor(e){P(this,e),this.arcgisHubMapDrawGraphicsChange=y(this,"arcgisHubMapDrawGraphicsChange",7),this.arcgisHubMapDrawGraphicsClear=y(this,"arcgisHubMapDrawGraphicsClear",7),this.arcgisHubMapDrawSelect=y(this,"arcgisHubMapDrawSelect",7),this.arcgisHubDrawCancel=y(this,"arcgisHubDrawCancel",7),this.arcgisHubDrawActiveToolChange=y(this,"arcgisHubDrawActiveToolChange",7),this.arcgisHubMapPopoverOpen=y(this,"arcgisHubMapPopoverOpen",7),this.arcgisHubMapPopoverClear=y(this,"arcgisHubMapPopoverClear",7),this.arcgisHubMapTooltipUpdated=y(this,"arcgisHubMapTooltipUpdated",7),this.hubTelemetry=y(this,"hubTelemetry",7),this.handles=[],this.boundaries=void 0,this.geometry=void 0,this.mode="hybrid",this.scale="m",this.tools=Q,this.view=void 0,this.disablePrimaryOptions=void 0,this.disableEditOptions=void 0,this.color=[0,0,0],this.buffer=void 0,this.condensed=void 0,this.resetOnDisconnect=!0,this.enableMapTips=void 0,this.drawTip=void 0,this.unthemed=!1,this.disabled=!1,this.enableInvalidGeometryWarning=!1,this.hideDrawTooltip=!1,this.geometryIsSelfIntersecting=void 0,this.activeTool=void 0,this.isEditing=void 0,this.isFiltered=void 0,this.geometryIsInvalid=void 0,this.bufferDetails=void 0,this.bufferPanelVisible=void 0,this.bottomOffset=0,this.topOffset=0,this.viewWidth=void 0,this.open=void 0,this.optionsEl=void 0,this.mapTipState=w.INACTIVE,k(this,"applyFilter","cancelEdits","clearFilter","deleteDrawing","handleSetBufferWidgetRef","handleSketchOnCreate","handleSketchOnUpdate","handleViewClick","handleViewEscape","handleViewExtentChange","handleViewPointerMove","handleViewPointerMoveOrDown","renderPrimaryOptions","renderEditOptions","renderEditingOptions","renderMapTip","setPanelHeight","startEditing","saveEdits","setOptionsEl")}async componentWillLoad(){let{el:e}=this;this.intl=await B.loadIntlForComponent(e),this.createGraphicsLayers(),await this.connectViewModel(),this.addWatchHandles(),this.setViewPosition(),K()}connectedCallback(){this.addWatchHandles()}disconnectedCallback(){this.resetOnDisconnect&&this.reset(),U(this.handles)}handleMapDrawFilter(e){let{hubTelemetry:t,isFiltered:i}=this,{detail:{graphics:[s],save:n}}=e;if(s&&n&&i){let{geometry:{type:r}}=s;t.emit(Object.assign(Object.assign({},g.dictionary.category.interaction.action.search.label.filter),{details:R(r)}))}}handleWidgetSelected(e){let{activeTool:t,isEditing:i}=this,{target:s}=e,{icon:n}=s,r=([,a])=>a.icon===n,o=n==="minus-circle"?t:Object.entries(N).find(r)[0];o!=="select"?this.reset():i&&this.cancelEdits(),this.activeTool=t===o?void 0:o,this.open=!1}handleWidgetDrawBufferChanged(e){let{detail:t}=e;this.bufferDetails=t}handleWidgetDrawBufferReset(){let{bufferGraphicsLayer:e}=this;e&&(this.bufferDetails=void 0,e.removeAll())}handleWidgetDrawBufferClosed(){this.bufferPanelVisible=!1}handleWidgetPanelToggled(e){let{target:t,detail:i}=e,{bufferWidgetEl:s}=this;t!==s&&!i?this.bufferPanelVisible=!1:t===s&&!i&&setTimeout(()=>{this.setPanelHeight()},0)}focusView(){let{view:e}=this;setTimeout(()=>{e?.focus()},250)}handleActiveToolChange(e,t){let{hubTelemetry:i,sketchViewModel:s,isEditing:n}=this;s&&(s.cancel(),e&&e!=="select"&&!n?(s.create(e),this.arcgisHubDrawActiveToolChange.emit(e)):e||(this.isEditing=!1));let r=e==="select"?"select":"draw";this.mapTipState=this.activeTool?w.ACTIVE:w.INACTIVE,e&&this.focusView(),this.arcgisHubMapPopoverClear.emit(),i.emit(Object.assign(Object.assign({},g.dictionary.category.interaction.action[e?"enable":"disable"].label[r]),{details:R(e||t)}))}handleBoundariesChange(e,t){let i=s=>JSON.stringify(s?.map(n=>n.toJSON()));i(e)!==i(t)&&this.addGeometryToBoundariesLayer()}handleGraphicsChange(){let{geometry:e,bufferWidgetEl:t}=this;e?(this.addGeometryToGraphicsLayer(),this.startEditing()):(this.reset(),t?.forceReset(),this.activeTool=void 0)}handleIsEditingChange(){let{isEditing:e}=this;e||(this.activeTool=void 0),this.setBufferPanelVisible()}handleIsFilteredChange(){let{isFiltered:e,graphicsLayer:{graphics:t}}=this,i=t.getItemAt(0);if(e&&i){let{geometry:{type:s}}=i,n=V(s),r=this[`${n}Symbol`];i.symbol=r}this.setBufferPanelVisible()}handleViewChange(e,t){e&&e!==t&&(U(this.handles),this.connectViewModel().then(()=>{this.addWatchHandles()}))}handleBufferDetailsChanged(){let{arcgisHubMapDrawGraphicsChange:e,bufferPolygonSymbol:t,graphicsLayer:i,bufferGraphicsLayer:s,bufferDetails:n,isEditing:r}=this,{graphics:o}=i,[a]=o,{graphics:c}=s;if(!n||!a)return;let{distance:d,unit:h}=n,p=te(a?.geometry,d,h.split(" ").join("-"),!0),m=new G({geometry:p,symbol:t});s.removeAll(),s.add(m),e.emit({graphics:o.clone(),bufferGraphics:c.clone(),save:!r})}async forceReset(){this.reset()}async setActiveTool(e){this.activeTool=e}handleSetBufferWidgetRef(e){e&&(this.bufferWidgetEl=e)}createGraphicsLayers(){let{graphicsLayer:e,bufferGraphicsLayer:t,boundariesGroupLayer:i}=this;I&&(e||(this.graphicsLayer=new I({elevationInfo:{mode:"on-the-ground"},listMode:"hide"}),this.reset(),this.addGeometryToGraphicsLayer()),t||(this.bufferGraphicsLayer=new I({elevationInfo:{mode:"on-the-ground"},listMode:"hide"})),i||(this.boundariesLayer=new I({elevationInfo:{mode:"on-the-ground"},listMode:"hide"}),this.boundariesMaskLayer=new I({elevationInfo:{mode:"on-the-ground"},graphics:[new G({geometry:new X({rings:[[[-180,90],[180,90],[180,-90],[-180,-90]]]}),symbol:this.maskSymbol})],listMode:"hide"}),this.boundariesGroupLayer=new ie({blendMode:"destination-in",layers:[this.boundariesMaskLayer,this.boundariesLayer],listMode:"hide",visible:!1}),this.boundariesOutlineLayer=new I({effect:"drop-shadow(1px, 1px, 2px)",elevationInfo:{mode:"on-the-ground"},listMode:"hide",visible:!1}),this.addGeometryToBoundariesLayer()))}handleSketchOnCreate(e){var t;let{state:i,graphic:s,tool:n,toolEventInfo:r}=e,{activeTool:o,arcgisHubMapPopoverOpen:a,bufferGraphicsLayer:c,graphicsLayer:d,boundariesLayer:h,sketchViewModel:p,hubTelemetry:m,view:b}=this;if(i!==T.CANCEL)switch(this.geometryIsSelfIntersecting=this.isGeometrySelfIntersecting(s.geometry),(t=s.geometry)===null||t===void 0?void 0:t.type){case"polygon":e.graphic.symbol=this.geometryIsSelfIntersecting?F():this.polygonSymbol;break;case"polyline":e.graphic.symbol=this.geometryIsSelfIntersecting?_():this.polylineSymbol;break}if(this.boundaries&&this.boundaries.length){if(r?.type==="vertex-add"){let C=new ae({x:r.vertices[0].coordinates[0],y:r.vertices[0].coordinates[1],spatialReference:b.spatialReference});h.graphics.toArray().find(L=>D.within(C,L.geometry))||(n==="point"?setTimeout(()=>{this.activeTool="point"}):setTimeout(()=>{p.canUndo()&&p.undo()},0))}if(i===T.COMPLETE&&!h.graphics.toArray().find(H=>D.within(s.geometry,H.geometry))){this.deleteDrawing();return}}i===T.START&&(m.emit(g.dictionary.category.interaction.action.draw.label.start.details[o]),this.mapTipState=w.ACTIVE),i===T.COMPLETE&&(this.activeTool==="rectangle"&&(s.geometry=s.geometry.extent),b.map.reorder(d,99),b.map.reorder(c,100),this.isEditing=!1,this.activeTool=void 0,setTimeout(()=>{a.emit({source:"options",geometry:s?.geometry,view:b,render:this.renderPrimaryOptions})},150),m.emit(g.dictionary.category.interaction.action.draw.label.complete.details[o]),this.disableEditOptions&&this.disablePrimaryOptions&&this.arcgisHubMapDrawGraphicsChange.emit({graphics:d.graphics.clone(),unsaved:!0}),this.mapTipState=w.INACTIVE),i===T.CANCEL&&n===o&&(this.isEditing=!1,this.activeTool=void 0,this.disabled=!1,this.el.querySelector("arcgis-hub-map-widget-generic").setFocus(),this.arcgisHubDrawCancel.emit())}handleSketchOnUpdate(e){var t;let{state:i,graphics:[s],toolEventInfo:n}=e,{arcgisHubMapPopoverClear:r,arcgisHubMapDrawGraphicsChange:o,graphicsLayer:{graphics:a},bufferGraphicsLayer:{graphics:c},sketchViewModel:d}=this;switch(this.geometryIsSelfIntersecting=this.isGeometrySelfIntersecting(s.geometry),s.geometry.type){case"polygon":s.symbol=this.geometryIsSelfIntersecting?F():this.polygonSymbol;break;case"polyline":s.symbol=this.geometryIsSelfIntersecting?_():this.polylineSymbol;break}this.boundaries&&this.boundaries.length&&(!((t=n?.type)===null||t===void 0)&&t.includes("stop"))&&(this.boundariesLayer.graphics.toArray().find(p=>D.within(s.geometry,p.geometry))||setTimeout(()=>{d.canUndo()&&d.undo()},0)),i===T.ACTIVE&&(this.hideDrawTooltip||r.emit(),o.emit({graphics:a.clone(),bufferGraphics:c.clone()}),this.handleBufferDetailsChanged())}handleViewClick(e){let{activeTool:t,arcgisHubMapPopoverClear:i,hubTelemetry:s,mapTipState:n}=this;t!=="polyline"&&t!=="polygon"&&n!==w.ACTIVE&&i.emit(),t==="select"?(s.emit(g.dictionary.category.interaction.action.select.label.content.details.selectTool),this.arcgisHubMapDrawSelect.emit(e)):s.emit(g.dictionary.category.interaction.action.select.label.content)}handleViewPointerMove(e){let{view:t,arcgisHubMapPopoverOpen:i,isScene:s}=this,n=t.toMap(e);if(!(s&&!n)){if(this.boundaries&&this.boundaries.length){let r=this.boundariesLayer.graphics.toArray().find(o=>D.contains(o.geometry,n));this.geometryIsInvalid=!r}this.hideDrawTooltip||i.emit({source:"tips",geometry:n,view:t,render:this.renderMapTip}),this.arcgisHubMapTooltipUpdated.emit({text:this.helperText,isGeometryValid:!this.geometryIsInvalid&&!this.geometryIsSelfIntersecting})}}handleViewPointerMoveOrDown(e){let{view:t,graphicsLayer:i}=this;t.hitTest(e,{include:i}).then(s=>{var n;let{isFiltered:r,isEditing:o,arcgisHubMapPopoverOpen:a}=this,c=Y(s.results);if(s.results.length){if(e.type==="pointer-down"&&this.sketchViewModel.state==="ready"){this.startEditing();return}let d=this.renderPrimaryOptions;r&&!o?d=this.renderEditOptions:o&&(d=this.renderEditingOptions),a.emit({source:"options",geometry:(n=c.graphic)===null||n===void 0?void 0:n.geometry,view:t,render:d})}})}handleViewExtentChange(){let{arcgisHubMapPopoverClear:e}=this;e.emit()}handleToolsOpened(){this.open=!0,this.hubTelemetry.emit(g.dictionary.category.interaction.action.open.label.popover.details.options)}handleToolsClosed(){this.open=!1,this.hubTelemetry.emit(g.dictionary.category.interaction.action.close.label.popover.details.options)}async connectViewModel(){let{bufferGraphicsLayer:e,graphicsLayer:t,mode:i,sketchViewModel:s,view:n,pointSymbol:r,polygonSymbol:o,polylineSymbol:a}=this;n&&!s&&J&&(await n.when(),n.map.addMany([t,e,this.boundariesGroupLayer,this.boundariesOutlineLayer],0),this.sketchViewModel=new J({view:n,layer:t,defaultCreateOptions:{mode:i},updateOnGraphicClick:!1,polygonSymbol:o,polylineSymbol:a,pointSymbol:r}),j(()=>n.size,this.setPanelHeight))}handleViewEscape(e){this.activeTool=void 0}addWatchHandles(){let{handles:e,sketchViewModel:t,view:i}=this;i&&j&&t&&e.push(i.on("key-down",["Escape"],this.handleViewEscape),i.on("pointer-down",this.handleViewClick),i.on(["pointer-move","pointer-down"],this.handleViewPointerMoveOrDown),i.on("pointer-move",this.handleViewPointerMove),j(()=>i.extent,this.handleViewExtentChange),t.on("create",this.handleSketchOnCreate),t.on("update",this.handleSketchOnUpdate))}addGeometryToBoundariesLayer(){var e;let{boundaries:t,boundariesLayer:i,boundariesOutlineLayer:s}=this;if(!((e=i.graphics)===null||e===void 0)&&e.length&&(i.removeAll(),s.removeAll()),t&&t.length){let n=t.map(this.processGeometry,this),r=n.map(a=>new G({geometry:a,symbol:this.boundarySymbol}));this.boundariesLayer.addMany(r);let o=n.map(a=>new G({geometry:a,symbol:this.boundaryOutlineSymbol}));this.boundariesOutlineLayer.addMany(o),this.boundariesGroupLayer.visible=!0,this.boundariesGroupLayer.opacity=this.isScene?0:1,this.boundariesOutlineLayer.visible=!0,this.view.container.style.backgroundColor="#ffffff",this.view.goTo(this.boundariesLayer.graphics)}else this.boundariesGroupLayer.visible=!1,this.boundariesOutlineLayer.visible=!1}addGeometryToGraphicsLayer(){let{geometry:e,graphicsLayer:t,sketchViewModel:i}=this;if(!e||!t||!this.sketchViewModel)return;this.isFiltered=!0;let s=this.processGeometry(e),n=s.type==="extent"?"polygon":s.type,r=new G({geometry:s,symbol:i[`${n}Symbol`]});t.add(r)}applyFilter(){let{arcgisHubMapDrawGraphicsChange:e,arcgisHubMapPopoverClear:t,graphicsLayer:{graphics:i},bufferGraphicsLayer:{graphics:s}}=this;this.isFiltered=!0,e.emit({graphics:i.clone(),bufferGraphics:s.clone(),save:!0}),t.emit()}deleteDrawing(){let{graphicsLayer:{graphics:[e]},hubTelemetry:t,bufferWidgetEl:i}=this;if(!e)return;let{geometry:{type:s}}=e;t.emit(Object.assign(Object.assign({},g.dictionary.category.interaction.action.draw.label.delete.details[s]),{response:"Success"})),this.reset(),this.activeTool=void 0,i?.forceReset()}clearFilter(){let{arcgisHubMapDrawGraphicsClear:e,hubTelemetry:t}=this;this.deleteDrawing(),e.emit(),t.emit(g.dictionary.category.interaction.action.search.label.filter.details.clear)}startEditing(){let{arcgisHubMapPopoverClear:e,graphicsLayer:{graphics:t},bufferGraphicsLayer:{graphics:i},hubTelemetry:s,sketchViewModel:n,geometryIsExtent:r}=this;e.emit(),this.isEditing=!0,this.cachedGraphics=t.clone(),this.cachedBufferGraphics=i.clone();let a=t.getItemAt(0).geometry.type;this.activeTool=V(a);let c=a==="extent"?"transform":"reshape",d=!0,h=!0;r&&(c="transform",d=!1,h=!1),n.update(t.getItemAt(0),{tool:c,enableRotation:d,toggleToolOnClick:h}),s.emit(g.dictionary.category.interaction.action.enable.label.draw.details.update)}cancelEdits(){let{arcgisHubMapPopoverClear:e,arcgisHubMapDrawGraphicsChange:t,cachedGraphics:i,cachedBufferGraphics:s,graphicsLayer:{graphics:n},bufferGraphicsLayer:{graphics:r},hubTelemetry:o}=this;i&&s&&(this.graphicsLayer.graphics=i.clone(),this.cachedGraphics=null,this.bufferGraphicsLayer.graphics=s.clone(),this.cachedBufferGraphics=null),this.isEditing=!1,e.emit(),t.emit({graphics:n.clone(),bufferGraphics:r.clone(),canceled:!0}),o.emit(g.dictionary.category.interaction.action.disable.label.draw.details.update)}saveEdits(){let{activeTool:e,arcgisHubMapDrawGraphicsChange:t,arcgisHubMapPopoverClear:i,graphicsLayer:{graphics:s},bufferGraphicsLayer:{graphics:n},hubTelemetry:r,sketchViewModel:o}=this;o.complete(),t.emit({graphics:s.clone(),bufferGraphics:n.clone(),save:!0}),i.emit(),this.isEditing=!1,r.emit(g.dictionary.category.interaction.action.draw.label.update.details[e]),this.open=!1}reset(){let{bufferGraphicsLayer:e,graphicsLayer:t,arcgisHubMapPopoverClear:i,bufferWidgetEl:s}=this;!t||!e||(this.isEditing=!1,this.isFiltered=!1,this.cachedGraphics=null,this.cachedBufferGraphics=null,this.geometry=null,this.geometryIsInvalid=!1,this.geometryIsSelfIntersecting=!1,t.removeAll(),e.removeAll(),i.emit(),s?.forceReset())}processGeometry(e){let{view:t}=this,i=e.clone?e:e.type==="extent"?re.fromJSON(e):ne.fromJSON(e);return i.spatialReference!==t.spatialReference&&(i=se(i,t.spatialReference)),i}setBufferPanelVisible(){let{isEditing:e,isFiltered:t}=this;this.bufferPanelVisible=e||t}setPanelHeight(){let{bufferWidgetEl:e,view:{size:t,container:i}}=this;if(!e||!i)return;let[s]=t;this.viewWidth=s;let{top:n,bottom:r}=i.getBoundingClientRect(),{top:o,bottom:a}=e.getBoundingClientRect();this.topOffset=o-n,this.bottomOffset=r-a}setViewPosition(){let{el:e}=this,t=e&&e.closest("arcgis-hub-map-widget-container");this.viewPosition=t?.viewPosition}setOptionsEl(e){this.optionsEl=e}get geometryIsExtent(){var e;return((e=this.geometry)===null||e===void 0?void 0:e.type)==="extent"}get isScene(){var e;return((e=this.view)===null||e===void 0?void 0:e.type)==="3d"}get pointSymbol(){let{color:e}=this;return{type:"text",color:[...e,.9],text:"\uE61D",font:{size:24,family:"CalciteWebCoreIcons"}}}get polylineSymbol(){let{lineStyle:e,color:t}=this;return{style:e,color:[...t,1],width:2,type:"simple-line"}}get polygonSymbol(){let{color:e,lineStyle:t}=this;return{type:"simple-fill",style:"solid",color:[0,0,0,0],outline:{style:t,color:[...e,1],width:2}}}get maskSymbol(){return{type:"simple-fill",style:"solid",color:[0,0,0,.25],outline:{style:"solid",color:[0,0,0,1],width:0}}}get boundarySymbol(){return{type:"simple-fill",style:"solid",color:[0,0,0,1],outline:{style:"solid",color:[0,0,0,0],width:0}}}get boundaryOutlineSymbol(){return{type:"simple-fill",style:"solid",color:[0,0,0,0],outline:{style:"solid",color:[0,0,0,1],width:2}}}get rectangleSymbol(){return this.polygonSymbol}get lineStyle(){let{isFiltered:e}=this;return e?"solid":"short-dash"}get bufferPolygonSymbol(){let{color:e}=this;return{type:"simple-fill",style:"cross",color:[...e,.25],outline:{style:"short-dash",color:[...e,1],width:2}}}get positionClass(){let{viewPosition:e}=this;if(e)return`hub-widget-draw ${e.split("-").join(" ")}`}get styles(){let{viewWidth:e,bottomOffset:t,topOffset:i,bufferPanelVisible:s}=this;return{"--view-width":`${e??0}px`,"--bottom-offset":`${t??0}px`,"--top-offset":`${i??0}px`,"--mobile-display":s?"flex":"none"}}get helperText(){let{activeTool:e,mapTipState:t,sketchViewModel:{createGraphic:i},intl:s,isEditing:n}=this;if(!n&&!i&&e!=="select")return;let r=e==="select"?s.t("tip.select"):s.t("tip.edit");if(i&&!n){let{geometry:o}=i,a="start",c=["polygon","polyline"].includes(e);if(t===w.ACTIVE&&c){let d=e==="polygon"?o&&o.rings[0].length-2:o&&o.paths[0].length-1;d===1?a="point":d>1&&(a="end")}r=s.t(`tip.${e}.${a}`)}return this.geometryIsInvalid&&(r=this.intl.t("invalid.boundary.warning")),this.enableInvalidGeometryWarning&&this.geometryIsSelfIntersecting&&(r=this.intl.t("invalid.selfIntersecting.warning")),r}renderPrimaryOptions(e="polygon"){let{disablePrimaryOptions:t}=this,i=V(e),s=this.intl.t(`filter.${i}`),n=this.intl.t("delete");return t?this.renderEditOptions():l(S,null,l("calcite-action",{icon:"selection-filter",onClick:this.applyFilter,text:s,"text-enabled":!0}),l("calcite-action",{icon:"trash",onClick:this.deleteDrawing,text:n,"text-enabled":!0}))}renderEditOptions(){let e=this.intl.t("update"),t=this.intl.t("delete");return l("calcite-action-pad",{"expand-disabled":!0,layout:"horizontal"},l("calcite-action",{icon:"pencil",onClick:this.startEditing,text:e}),l("calcite-action",{icon:"trash",onClick:this.clearFilter,text:t}))}renderEditingOptions(){let e=this.intl.t("cancel"),t=this.intl.t("save");return l(S,null,l("calcite-action",{icon:"undo",onClick:this.cancelEdits,text:e,"text-enabled":!0}),l("calcite-action",{icon:"check",onClick:this.saveEdits,text:t,"text-enabled":!0}))}renderMapTip(){let{helperText:e,geometryIsInvalid:t,geometryIsSelfIntersecting:i}=this,s,n;return(t||i)&&(s="exclamation-mark-triangle-f",n="danger"),e?l("arcgis-hub-map-tip",{icon:s,kind:n,text:e}):null}renderDrawBuffer(){let{buffer:e,positionClass:t,handleSetBufferWidgetRef:i,bufferPanelVisible:s}=this;if(e)return l("arcgis-hub-map-widget-draw-buffer",{class:t,ref:i,visible:s})}renderDrawToolWidgets(e=!1){let{tools:t,activeTool:i,scale:s}=this;return Q.reduce((n,r)=>t.includes(r)?[...n,l("arcgis-hub-map-widget-generic",{active:i===r,disabled:this.disabled,icon:N[r].icon,key:r,scale:s,text:this.intl.t(r),textEnabled:e})]:n,[])}renderDrawingOptionsAction(){let{open:e,isEditing:t,activeTool:i,intl:s}=this,n=e||t,r;t?r="pencil":i?r=N[i].icon:r="pencil-mark-plus";let o;return t?o=s.t("updating"):e?o=s.t("close"):o=s.t("open"),l("calcite-action",{active:n,icon:r,ref:this.setOptionsEl,text:o})}renderDrawingOptionsPopoverContent(){let{isEditing:e,open:t,activeTool:i,intl:s}=this;return e?l("calcite-action",{onClick:this.saveEdits,text:s.t("finish"),"text-enabled":!0}):l(S,null,this.renderDrawToolWidgets(!0),i&&t&&l("arcgis-hub-map-widget-generic",{icon:"minus-circle",text:s.t("stop"),"text-enabled":!0}))}renderCondensedDrawTools(){let{open:e,intl:t,optionsEl:i}=this;return l(S,null,this.renderDrawingOptionsAction(),this.renderDrawBuffer(),l("calcite-popover",{"auto-close":!0,"disable-pointer":!0,label:t.t("options"),offsetDistance:15,open:e,placement:"left-start",referenceElement:i},this.renderDrawingOptionsPopoverContent()))}renderDrawTools(){return l(S,null,this.renderDrawBuffer(),this.renderDrawToolWidgets())}isGeometrySelfIntersecting(e){if(!this.enableInvalidGeometryWarning)return!1;switch(e?.type){case"polygon":return z(e);case"polyline":return q(e,oe,le)}return!1}renderPopovers(){let{unthemed:e}=this;return l("arcgis-wormhole",{styles:{position:"absolute",top:0,left:0}},l("arcgis-hub-map-popover",{style:{pointerEvents:"none"},target:"tips",unthemed:e}),l("arcgis-hub-map-popover",{target:"options",unthemed:e}),l("arcgis-hub-map-popover",{target:"action",unthemed:e}))}renderDrawPopover(){let{el:e,drawTip:t}=this;return l("calcite-popover",{autoClose:!0,class:"draw-popover",label:t,open:!0,placement:"left",referenceElement:e,triggerDisabled:!0},l("p",null,t))}render(){return l(E,{key:"68b0c53ec694d3b292879750426de3d9c2273ebe","data-element":"map-widget-draw",style:this.styles},this.renderDrawPopover(),this.condensed?this.renderCondensedDrawTools():this.renderDrawTools(),this.renderPopovers())}static get assetsDirs(){return["locales"]}get el(){return O(this)}static get watchers(){return{activeTool:["handleActiveToolChange"],boundaries:["handleBoundariesChange"],geometry:["handleGraphicsChange"],isEditing:["handleIsEditingChange"],isFiltered:["handleIsFilteredChange"],view:["handleViewChange"],bufferDetails:["handleBufferDetailsChanged"]}}};f([x({when(){return this.enableMapTips&&(this.mapTipState!==w.INACTIVE||this.isEditing&&this.activeTool!=="point")}})],u.prototype,"handleViewPointerMove",null);f([x({when(){return this.activeTool==="select"}})],u.prototype,"handleViewEscape",null);f([x({when(){return this.boundariesGroupLayer}})],u.prototype,"addGeometryToBoundariesLayer",null);f([v()],u.prototype,"pointSymbol",null);f([v()],u.prototype,"polylineSymbol",null);f([v()],u.prototype,"polygonSymbol",null);f([v()],u.prototype,"maskSymbol",null);f([v()],u.prototype,"boundarySymbol",null);f([v()],u.prototype,"boundaryOutlineSymbol",null);f([v()],u.prototype,"rectangleSymbol",null);f([v()],u.prototype,"bufferPolygonSymbol",null);f([x({when(){return!this.disableEditOptions}})],u.prototype,"renderEditOptions",null);f([x({when(){return!this.disableEditOptions}})],u.prototype,"renderEditingOptions",null);f([x({when(){return this.view}})],u.prototype,"renderPopovers",null);f([x({when(){return this.drawTip&&this.drawTip.length}})],u.prototype,"renderDrawPopover",null);u.style=Ce;var M;(function(e){e.Imperial="imperial",e.Metric="metric"})(M||(M={}));var W;(function(e){e.Feet="feet",e.Miles="miles",e.NauticalMiles="nautical miles"})(W||(W={}));var A;(function(e){e.Meters="meters",e.Kilometers="kilometers"})(A||(A={}));var Te="calcite-panel div{display:grid;gap:0.25rem;padding:1rem;background-color:var(--calcite-color-foreground-1)}calcite-panel[closed]{display:none}",Me=Te,Ee=class{constructor(e){P(this,e),this.arcgisHubMapWidgetDrawBufferChanged=y(this,"arcgisHubMapWidgetDrawBufferChanged",7),this.arcgisHubMapWigetDrawBufferReset=y(this,"arcgisHubMapWigetDrawBufferReset",7),this.arcgisHubMapWidgetDrawBufferPanelClosed=y(this,"arcgisHubMapWidgetDrawBufferPanelClosed",7),this.arcgisHubWidgetPanelToggled=y(this,"arcgisHubWidgetPanelToggled",7),this.visible=void 0,this.unit=this.defaultUnitOfMeasurement,this.distance=0,this.status="idle",k(this,"handleInputKeyUp","handleSetPanelRef","handleSetSelectRef","handleSetInputRef","reset")}async componentWillLoad(){let{el:e}=this;this.intl=await B.loadIntlForComponent(e),this.handleVisibleChange()}handleUnitDistanceChanged(){let{arcgisHubMapWidgetDrawBufferChanged:e,unit:t,distance:i}=this;e.emit({distance:i,unit:t})}handleCalciteSelectChange(){let{selectEl:{selectedOption:{value:e}}}=this;this.unit=e.toLowerCase()}handleCalciteInputInput(){let{inputEl:{value:e}}=this;this.distance=+e,this.validateDistance()}handleCalcitePanelDismissedChange(){let{panelEl:{closed:e},arcgisHubMapWidgetDrawBufferPanelClosed:t}=this;e&&t.emit()}handleVisibleChange(){let{visible:e,panelEl:t,arcgisHubWidgetPanelToggled:i}=this;if(t){let s=!e;i.emit(s)}}async forceReset(){this.reset()}reset(){let{arcgisHubMapWigetDrawBufferReset:e}=this;this.distance=0,this.unit=this.defaultUnitOfMeasurement,e.emit()}validateDistance(){let{inputEl:{value:e}}=this;this.status=e?"idle":"invalid"}handleInputKeyUp(){this.validateDistance()}handleSetSelectRef(e){e&&(this.selectEl=e)}handleSetInputRef(e){e&&(this.inputEl=e)}handleSetPanelRef(e){e&&(this.panelEl=e)}get defaultSystemOfMesasurement(){let[,e]=window.navigator.language.toLowerCase().split("-");return["us","lr","mm"].includes(e)?M.Imperial:M.Metric}get defaultUnitOfMeasurement(){let{defaultSystemOfMesasurement:e}=this;return e===M.Imperial?W.Feet:A.Meters}get canReset(){let{distance:e,unit:t,defaultUnitOfMeasurement:i}=this;return!!e||t!==i}get distanceIsInvalid(){let{status:e}=this;return e==="invalid"}renderOptionsGroup(e,t){let{unit:i,intl:s}=this;return l("calcite-option-group",{label:s.t(`system.${e}`)},t.map(n=>{let r=s.t(`units.${n.replace(" ","")}`);return l("calcite-option",{key:n,label:r,selected:i===n,value:n},r)}))}render(){let{distance:e,distanceIsInvalid:t,intl:i,canReset:s,status:n,visible:r,handleInputKeyUp:o,handleSetSelectRef:a,handleSetInputRef:c,handleSetPanelRef:d,reset:h}=this,p=i.t("panel.heading"),m=i.t("panel.reset"),b=i.t("distance.title"),C=i.t("distance.placeholder"),H=i.t("distance.message"),L=i.t("units.title");return l(E,{key:"ec424a9b9d8f290485086827615f250cb46c95e1","data-element":"widget-draw-buffer"},l("calcite-panel",{key:"089334382955a7559bbdded48e0c03ca7c9e022e",closable:!0,closed:!r,heading:p,ref:d},l("calcite-action",{key:"acfaffe4715f35e3fca3561418bfac85f7973435",disabled:!s,icon:"reset",onClick:h,slot:"header-actions-end",text:m}),l("div",{key:"4bbeaccbce3b20ccd71164496d1954ed56fa5a56",class:"location-filter"},l("calcite-label",{key:"981df55060865da10b0f598feed86fa658169798",scale:"l"},b,l("calcite-input",{key:"ff4ad9b79fea4aabd05dd3b5652ad431e67bf06e",onKeyUp:o,placeholder:C,ref:c,scale:"l",status:n,type:"number",value:e.toString()}),l("calcite-input-message",{key:"d3e806275cf03a0ee7bd6fceb999b40e3c5cafdb",hidden:!t},H)),l("calcite-label",{key:"e0fedc2e30410e224236c34220a26a953c1fe81e",scale:"l"},L,l("calcite-select",{key:"b3f677335e074d60844fe6314121227062c9df2b",label:L,ref:a,scale:"l"},this.renderOptionsGroup(M.Metric,Object.values(A)),this.renderOptionsGroup(M.Imperial,Object.values(W)))))))}static get assetsDirs(){return["locales"]}get el(){return O(this)}static get watchers(){return{unit:["handleUnitDistanceChanged"],distance:["handleUnitDistanceChanged"],visible:["handleVisibleChange"]}}};Ee.style=Me;return{arcgis_hub_map_popover:Z,arcgis_hub_map_tip:be,arcgis_hub_map_widget_container:ve,arcgis_hub_map_widget_draw:u,arcgis_hub_map_widget_draw_buffer:Ee}},"geometry/geometryEngine","geometry/geometryEngine","geometry/Polygon","core/reactiveUtils","layers/GraphicsLayer","widgets/Sketch/SketchViewModel","layers/GroupLayer","Graphic","geometry/support/webMercatorUtils","geometry/Geometry","geometry/Extent","geometry/Polyline","geometry/Point","geometry/operators/crossesOperator","config",a)
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.32/esri/copyright.txt for details.
|
|
3
|
+
v0.32.2 */
|
|
4
|
+
import{a as m}from"./UZCMX3E6.js";import{b as o}from"./NHML7J5F.js";import{h as n}from"./JLITWA6U.js";function $(r){return m(r).then(t=>{let e=`${o(r)}/content/users/${t}/items/${r.id}/protect`;return n(e,r)})}function f(r){return m(r).then(t=>{let e=`${o(r)}/content/users/${t}/items/${r.id}/unprotect`;return n(e,r)})}export{$ as a,f as b};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.32/esri/copyright.txt for details.
|
|
3
|
+
v0.32.2 */
|
|
4
|
+
import{b as I}from"./34R2ZMFF.js";import{a as l}from"./YWC2JRJV.js";import{a as A}from"./ER64A4V3.js";import{a as b,k as R}from"./PXG4LKUH.js";import{a as i}from"./JWTFBP7C.js";var O="cannotDiscuss",z="data-mention",g;(function(e){e.ANONYMOUS_USER="anonymousUser",e.AUTHENTICATED_USER="authenticatedUser",e.GROUP="group",e.ORG="org",e.USER="user"})(g||(g={}));var f;(function(e){e.PUBLIC="public",e.ORG="org",e.PRIVATE="private"})(f||(f={}));var m;(function(e){e.ADMIN="admin",e.MEMBER="member"})(m||(m={}));function w(e){let t=!1;return e&&(t=!(e.typeKeywords||[]).includes(O)),t}function F(e,t){let s=(e||[]).filter(r=>r!==O);return t||s.push(O),s}function E(e){return e.channelAcl?e.channelAcl.some(({category:t})=>[g.AUTHENTICATED_USER,g.ANONYMOUS_USER].includes(t)):e.access===f.PUBLIC}function D(e){return e.channelAcl?!E(e)&&e.channelAcl.some(({category:t,subCategory:s})=>t===g.ORG&&s===m.MEMBER):e.access===f.ORG}function H(e){return!E(e)&&!D(e)}function P(e){let t=f.PRIVATE;return E(e)?t=f.PUBLIC:D(e)&&(t=f.ORG),t}function $(e){return e.channelAcl?e.channelAcl.reduce((t,s)=>s.category===g.ORG&&[m.MEMBER,m.ADMIN].includes(s.subCategory)&&!t.includes(s.key)?[...t,s.key]:t,[]):e.orgs}function q(e){return e.channelAcl?e.channelAcl.reduce((t,s)=>s.category===g.GROUP&&[m.MEMBER,m.ADMIN].includes(s.subCategory)&&!t.includes(s.key)?[...t,s.key]:t,[]):e.groups}async function Q(e,t,s,r){let o=(n,a)=>a.channelAcl.reduce((c,d)=>d.category===n&&!c[d.subCategory].includes(d.key)?Object.assign(Object.assign({},c),{[d.subCategory]:[...c[d.subCategory],d.key]}):c,{member:[],admin:[]}),u=[];if(E(t))u.push({operation:"AND",predicates:[{orgid:{from:"0",to:"{"}}]});else{let n={operation:"OR",predicates:[]},a=o(g.ORG,t);a.member.length&&n.predicates.push({orgid:a.member}),a.admin.length&&n.predicates.push({orgid:a.admin,role:"org_admin"});let c=o(g.GROUP,t);if(c.member.length&&n.predicates.push({group:c.member}),c.admin.length){let d=c.admin.filter(h=>!c.member.includes(h));d.length&&(await Promise.all(d.map(y=>I(y,r).catch(C=>null)))).forEach((y,C)=>{y&&n.predicates.push({group:d[C],username:[y.owner,...y.admins].filter(R)})})}u.push(n)}s&&u.push({operation:"AND",predicates:[{username:{not:s}}]});let p=e.reduce((n,a)=>a?Object.assign(Object.assign({},n),{predicates:[...n.predicates,{username:a},{fullname:a}]}):n,{operation:"OR",predicates:[]});return p.predicates.length&&u.push(p),{targetEntity:"communityUser",filters:u}}var J=(e,t)=>Object.assign(Object.assign({},e),{id:e.id,name:e.name,createdDate:new Date(e.createdAt),createdDateSource:"channel",updatedDate:new Date(e.updatedAt),updatedDateSource:"channel",type:"channel",access:P(e),family:"channel",owner:e.creator,links:{thumbnail:null,self:null,siteRelative:null},includes:{groups:t},rawResult:e});function W(e){let t=e,s=`_${new Date(Date.now()).toISOString().replace(/[^a-z0-9]/gi,"-")}.csv`;return[t.toLowerCase().replace(/[^a-z0-9]/g,"-").replace(/-{2,}/g,"-").replace(/^-/,"").substring(0,250-s.length).replace(/-$/,""),s].join("")}var S=class{constructor(t){this.mappings=t}storeToEntity(t,s){let r=U(t,s,this.mappings);if(i(t,"item")){let o=i(t,"item");l("canEdit",["admin","update"].includes(o.itemControl),r),l("canDelete",o.itemControl==="admin",r),l("canRecycle",o.canRecycle||!1,r),l("protected",o.protected,r)}return r}entityToStore(t,s){return N(t,s,this.mappings)}};function N(e,t,s){if(i(t,"item")){let r=i(t,"item");r.typeKeywords&&(r.typeKeywords=i(e,"isDiscussable")?r.typeKeywords.filter(o=>o!==O):[...r.typeKeywords,O],l("item.typeKeywords",r.typeKeywords,t))}return T(e,"entityKey",t,"storeKey",s)}function U(e,t,s){if(i(e,"item")){let r=i(e,"item");l("isDiscussable",w(r),t)}return T(e,"storeKey",t,"entityKey",s)}function T(e,t,s,r,o){let u=b(s);return o.forEach(p=>{let n=i(p,t),a=i(p,r),c=i(e,n);c!=null&&A(u,a,c,!0)}),u}function X(e){if(typeof e=="string"){let t=e.trim().toLowerCase().replace(/['"]/g,"").replace(/[^a-z0-9-]+/g,"-").replace(/-+/g,"-").replace(/^-+|-+$/g,"");return t===""||t==="-"?"":t}else return e}var j=1,G=e=>[{orgid:[e]},{type:{not:["Code Attachment"]}}],M=e=>[{orgId:e}],_=e=>[{orgid:e}],K=e=>[{orgid:e}],B={item:G,event:M,group:_,user:K};function Z(e){if(i(e,"schemaVersion")===j)return e;{let t=b(e);return t=v(t),t}}function v(e){if(i(e,"schemaVersion")>1)return e;{let t={schemaVersion:1,title:"Default Catalog",scopes:{item:{targetEntity:"item",filters:[]},event:{targetEntity:"event",filters:[]}},collections:[]},s=i(e,"groups")||[],r=[];Array.isArray(s)&&s.length?r=s:typeof s=="string"&&(r=[s]),r.length&&(t.scopes=Object.entries(t.scopes).reduce((u,p)=>Object.assign(Object.assign({},u),{[p[0]]:Object.assign(Object.assign({},p[1]),{filters:[{predicates:[{group:r}]}]})}),{}));let o=i(e,"orgId");return o&&(t.scopes.item={targetEntity:"item",filters:[]},t.scopes.event={targetEntity:"event",filters:[]},t.scopes.group={targetEntity:"group",filters:[]},t.scopes.user={targetEntity:"user",filters:[]},t.scopes=Object.entries(t.scopes).reduce((u,p)=>{let n=p[0],a=p[1];return Object.assign(Object.assign({},u),{[n]:Object.assign(Object.assign({},a),{filters:[{operation:"AND",predicates:B[n](o)}]})})},{})),t}}export{O as a,z as b,g as c,f as d,m as e,w as f,F as g,E as h,D as i,H as j,P as k,$ as l,q as m,Q as n,J as o,W as p,S as q,N as r,U as s,X as t,j as u,Z as v};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.32/esri/copyright.txt for details.
|
|
3
|
+
v0.32.2 */
|
|
4
|
+
import{b as s,j as e}from"./UT3SH2UY.js";import{b as t,c as i,d as a,i as l}from"./YKNBYBRF.js";import"./2NHSOGQB.js";var h=":host{display:block}arcgis-hub-gallery-layout-list{margin-top:1rem}",n=h,o=class{constructor(r){l(this,r),this.searchResults=[],this.loading=!1,this.baseUrl=void 0,this.linkTarget="self",this.limit=10,this.newTab=!1,this.showAdditionalInfo=!0,this.showEmptyState=!0,this.showLinkButton=!1,this.showBadges=!0,this.showType=!0,this.showOwner=!0,this.cardActionLinks=[],this.hasError=!1,this.callback=void 0,this.shouldShowResults=!1,this.showThumbnail=!0,this.corners=s.square,this.shadow=void 0,this.selectedIds=[],this.selectionMode="none",this.linkButtonText=void 0,this.linkButtonStyle=void 0,this.cardTitleTag=void 0,this.lastSearchResultsCount=void 0,this.imageType=e.thumbnail,this.lazy=!1,this.disableTelemetry=!1}get shouldRenderEmptyState(){return!this.searchResults.length&&this.showEmptyState||this.hasError}_renderLoading(){return t("div",{class:"card-container"},t("calcite-loader",{active:!0}))}_renderCalendar(){return t("div",{class:"card-container","data-test":"result-container"},t("arcgis-hub-calendar",{interactable:!1,searchResults:this.searchResults}))}_renderList(){return t("arcgis-hub-gallery-layout-list",{baseUrl:this.baseUrl,callback:this.callback,cardActionLinks:this.cardActionLinks,cardTitleTag:this.cardTitleTag,corners:this.corners,disableTelemetry:this.disableTelemetry,imageType:this.imageType,lastSearchResultsCount:this.lastSearchResultsCount,layout:"grid",lazy:this.lazy,limit:this.limit,linkButtonStyle:this.linkButtonStyle,linkButtonText:this.linkButtonText,linkTarget:this.linkTarget,loading:!1,newTab:this.newTab,searchResults:this.searchResults,selectedIds:this.selectedIds,selectionMode:this.selectionMode,shadow:this.shadow,showAdditionalInfo:this.showAdditionalInfo,showBadges:this.showBadges,showEmptyState:this.showEmptyState,showLinkButton:this.showLinkButton,showOwner:this.showOwner,showThumbnail:this.showThumbnail,showType:this.showType})}render(){return t(i,{key:"7368ed966ae0f93b7c078a657133920e95bcb558","data-element":"gallery-layout-calendar"},this.loading?this._renderLoading():this._renderCalendar(),this.shouldShowResults&&this._renderList())}get element(){return a(this)}};o.style=n;export{o as arcgis_hub_gallery_layout_calendar};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.32/esri/copyright.txt for details.
|
|
3
|
+
v0.32.2 */
|
|
4
|
+
import{a as j,b as Bt}from"./7NKFEP4B.js";import{e as Yt}from"./LMSHPSTN.js";import{e as p,j as v}from"./KDSLNBRX.js";import{a as M}from"./RDXM6XNX.js";import{a as U,b as x}from"./SECT4XUS.js";import{a as D}from"./J5SGIU2N.js";import{a as $t}from"./ONYQJI7H.js";import{c as g}from"./Z7T46DNO.js";import{c as d}from"./JFYQXOQ6.js";import{a as zt}from"./SEACVVKB.js";import{a as k,b as q}from"./XBPFZJ3C.js";import{a as Wt,b as Vt}from"./KZEUCZGF.js";import{a as wt,b as Et,c as vt,d as Ot,e as jt,f as Dt,g as Ct,h as Tt,i as Ut,j as xt,k as It,l as _t,m as At,n as Kt,o as Jt,p as Mt,r as kt}from"./SRRNBAJU.js";import{a as qt,b as Ht,c as Pt,d as Nt}from"./DRY7KMLN.js";import{a as it}from"./A6UBAVGJ.js";import{a as tt,c as et,e as st}from"./OMTJUW3Y.js";import{e as b}from"./IRNCLHXS.js";import{a as Ft,e as Rt,h as c,i as St,l as J,m as Gt}from"./Z7M2ZJVY.js";import{a as Lt}from"./A7JTQFR2.js";import{h as Z}from"./KOWHPG4A.js";import{h as pt,i as bt}from"./Q4DRZ7RV.js";import{a as K}from"./RFQMDI2U.js";import{b as X}from"./LHQIU77J.js";import{a as m}from"./2HAYMGYC.js";import{B as mt,C as gt,z as ft}from"./3H2FOLDY.js";import{r as yt}from"./S5ADQIOS.js";import{a as nt}from"./ROKVX73E.js";import{L as dt,Q as ht,i as ot,l as at,m as rt,n as ct,o as lt,s as ut}from"./W5XA6A5L.js";import{a as Y}from"./AZW7Y3P5.js";import{k as Q}from"./N7TUF3VY.js";import{c as u,e as E}from"./W3OKPEZV.js";import{a as z}from"./34R2ZMFF.js";import{x as T}from"./C5PRVJKH.js";import{h as _}from"./JLITWA6U.js";import{a as w}from"./YWC2JRJV.js";import{a as $}from"./2ZTJHITH.js";import{e as y,f,j as B}from"./ARGXE7D2.js";import{a as A}from"./EFTM7OCO.js";import{c as C}from"./PF7DB2OB.js";import{a as l}from"./PXG4LKUH.js";import{a as I}from"./JWTFBP7C.js";var ne={[f.channelRead]:m.READ,[f.channelWrite]:m.WRITE,[f.channelReadWrite]:m.READWRITE,[f.channelManage]:m.MANAGE,[f.channelModerate]:m.MODERATE,[f.channelOwner]:m.OWNER},oe={[c.anonymous]:{category:u.ANONYMOUS_USER,subCategory:null},[c.authenticated]:{category:u.AUTHENTICATED_USER,subCategory:null},[c.group]:{category:u.GROUP,subCategory:E.MEMBER},[c.groupAdmin]:{category:u.GROUP,subCategory:E.ADMIN},[c.org]:{category:u.ORG,subCategory:E.MEMBER},[c.orgAdmin]:{category:u.ORG,subCategory:E.ADMIN},[c.owner]:{category:u.USER,subCategory:null},[c.user]:{category:u.USER,subCategory:null}};function Xt(i){function t(e,s){let n=oe[s.collaborationType];return n?[...e,Object.assign(Object.assign({},n),{key:s.collaborationId||null,role:ne[s.permission]})]:e}return{name:i.name,blockWords:i.blockWords,allowAsAnonymous:i.allowAsAnonymous,channelAclDefinition:i.permissions.reduce(t,[])}}async function ae(i,t){let e=Xt(i),s=await ft(Object.assign({data:e},t.hubRequestOptions));return J(s,t.currentUser)}async function re(i,t){let e=Xt(i),s=await mt(Object.assign({channelId:i.id,data:e},t.hubRequestOptions));return J(s,t.currentUser)}async function ce(i,t){await gt(Object.assign({channelId:i},t.hubRequestOptions))}function le(i){return{name:"",blockWords:[],allowAsAnonymous:!1,canEdit:!0,canDelete:!0,permissions:[St({category:u.ORG,subCategory:E.ADMIN,role:m.OWNER,key:i})]}}var ue=i=>{let t=i.find(({collaborationType:s})=>s===c.anonymous),e=i.find(({collaborationType:s})=>s===c.authenticated);return[{key:"public",roles:{anonymous:{value:t?.permission||y,id:t?.id},authenticated:{value:e?.permission||y,id:e?.id}}}]},de=i=>{let t=i.reduce((e,s)=>[c.group,c.groupAdmin].includes(s.collaborationType)?Object.assign(Object.assign({},e),{[s.collaborationId]:Object.assign(Object.assign({},e[s.collaborationId]),{[s.collaborationType]:s})}):e,{});return Object.entries(t).reduce((e,[s,{group:n,["group-admin"]:o}])=>[...e,{key:s,entityId:s,entityType:"group",roles:{member:{value:n?.permission||y,id:n?.id},admin:{value:o?.permission||y,id:o?.id}}}],[])},he=(i,t)=>{let e=i.reduce((n,o)=>[c.org,c.orgAdmin].includes(o.collaborationType)?Object.assign(Object.assign({},n),{[o.collaborationId]:Object.assign(Object.assign({},n[o.collaborationId]),{[o.collaborationType]:o})}):n,{}),s=Object.entries(e).reduce((n,[o,{org:a,["org-admin"]:r}])=>[...n,{key:o,entityId:o,entityType:"organization",roles:{member:{value:a?.permission||y,id:a?.id},admin:{value:r?.permission||y,id:r?.id}}}],[]);return s.length||s.push({key:t,entityId:t,entityType:"organization",roles:{member:{value:y,id:void 0},admin:{value:f.channelOwner,id:void 0}}}),s},ye=i=>i.reduce((t,e)=>e.collaborationType===c.user?[...t,{key:e.collaborationId,entityId:e.collaborationId,entityType:"user",roles:{user:{value:e.permission,id:e.id}}}]:t,[]);function fe(i,t){return{id:i.id,name:i.name,blockWords:(i.blockWords||[]).join(","),allowAsAnonymous:i.allowAsAnonymous,publicConfigs:ue(i.permissions),orgConfigs:he(i.permissions,t.currentUser.orgId),groupConfigs:de(i.permissions),userConfigs:ye(i.permissions)}}function me(i){return i.reduce((t,e)=>Object.entries(e.roles).reduce((s,[n,o])=>{if(o.value===y)return s;let a;return e.key==="public"?a={collaborationType:n==="authenticated"?c.authenticated:c.anonymous,collaborationId:null}:e.entityType==="group"?a={collaborationType:n==="admin"?c.groupAdmin:c.group,collaborationId:e.entityId}:e.entityType==="organization"?a={collaborationType:n==="admin"?c.orgAdmin:c.org,collaborationId:e.entityId}:e.entityType==="user"&&(a={collaborationType:c.user,collaborationId:e.entityId}),a?[...s,Object.assign(Object.assign({},a),{permission:o.value,id:o.id})]:s},t),[])}function ge(i){let t=[...i.publicConfigs,...i.orgConfigs,...i.groupConfigs,...i.userConfigs];return{name:i.name,blockWords:i.blockWords.split(",").map(e=>e.trim()),allowAsAnonymous:i.allowAsAnonymous,permissions:me(t)}}var H=class i{constructor(t,e){this.isDestroyed=!1,this.context=e,this.entity=t}static fromJson(t,e){let s=this.applyDefaults(t,e);return new i(s,e)}static async create(t,e,s=!1){let n=this.applyDefaults(t,e),o=i.fromJson(n,e);return s&&await o.save(),o}static async fetch(t,e){try{let s=await Gt(t,e);return i.fromJson(s,e)}catch{throw new Error("Channel not found.")}}static applyDefaults(t,e){return Object.assign(Object.assign({},le(e.currentUser.orgId)),t)}get canEdit(){return this.entity.canEdit}get canDelete(){return this.entity.canDelete}get orgId(){return this.entity.orgId}toJson(){if(this.isDestroyed)throw new Error("HubChannel is already destroyed.");return l(this.entity)}update(t){if(this.isDestroyed)throw new Error("HubChannel is already destroyed.");this.entity=Object.assign(Object.assign({},this.entity),t)}async save(){if(this.isDestroyed)throw new Error("HubChannel is already destroyed.");this.entity.id?this.entity=await re(this.entity,this.context):this.entity=await ae(this.entity,this.context)}async delete(){if(this.isDestroyed)throw new Error("HubChannel is already destroyed.");this.isDestroyed=!0,await ce(this.entity.id,this.context)}convertToCardModel(t){throw new Error("not implemented")}async getEditorConfig(t,e){return d(t,e,this.entity,this.context)}async toEditor(t,e){return Promise.resolve(fe(this.entity,this.context))}async fromEditor(t){return this.entity=Object.assign(Object.assign({},this.entity),ge(t)),await this.save(),this.entity}};function pe(i){let t=st(i),e=t.flowType,s=t.formats;!e&&["Feature Service","Map Service"].includes(i.type)&&(s=et().map(a=>({key:a.format,hidden:!1}))),X(i)&&e!=="createReplica"&&(s=tt(i).map(a=>({key:a.format,hidden:!1})));let n=I(i,"extendedProps.additionalResources")||[];return s.map(o=>Wt(o)?we(o,n):be(o))}function be(i){return Object.assign({label:`{{shared.fields.download.format.${i.key}:translate}}`},i)}function we(i,t){let e=Vt(i),{name:s,isDataSource:n}=t[e],o;return s?o=`{{shared.fields.download.additionalResource|resourceName=${encodeURIComponent(s)}:translate}}`:n?o="{{shared.fields.download.dataSourceResource:translate}}":o="{{shared.fields.download.noTitleResource:translate}}",Object.assign({label:o},i)}var P=class i extends p{constructor(t,e){super(t,e)}static fromJson(t,e){let s=t;return new i(s,e)}async save(){this._checkDestroyed(),this.entity.id?this.entity=await Et(this.entity,this.context.hubRequestOptions):this.entity=await wt(this.entity,this.context.hubRequestOptions),await super.afterSave()}update(t){this._checkDestroyed(),this.entity=Object.assign(Object.assign({},this.entity),t)}async delete(){this._checkDestroyed(),this.isDestroyed=!0,await vt(this.entity.id,this.context.hubRequestOptions)}async getEditorConfig(t,e){return d(t,e,this.entity,this.context)}async toEditor(t={},e=[]){let s=e.length?await g(l(this.entity),e,this.context.hubRequestOptions):l(this.entity);return it(this.entity)&&(s.downloadFormats=pe(this.entity)),s}async fromEditor(t){var e,s;let n=!t.id;if(t._thumbnail){let a=t._thumbnail;a.blob?this.thumbnailCache={file:a.blob,filename:a.fileName,clear:!1}:this.thumbnailCache={clear:!0}}delete t._thumbnail;let o=Ot(t);if(o.extent=(s=(e=t.location)===null||e===void 0?void 0:e.extent)!==null&&s!==void 0?s:[],n)throw new Error("Cannot create content using the Editor.");return this.entity=o,await this.save(),this.entity}_checkDestroyed(){if(this.isDestroyed)throw new Error("HubContent is already destroyed.")}},N=class i extends p{static fromJson(t,e){let s=this.applyDefaults(t,e);return new i(s,e)}static async create(t,e,s=!1){let n=this.applyDefaults(t,e),o=i.fromJson(n,e);return s&&await o.save(),o}static async fetch(t,e){try{let s=await Ft(t,e.hubRequestOptions);return i.fromJson(s,e)}catch(s){throw s.message==="CONT_0001: Item does not exist or is inaccessible."?new Error("Discussion not found."):s}}static applyDefaults(t,e){return t.orgUrlKey||(t.orgUrlKey=e.portal.urlKey),Object.assign(Object.assign({},Z),t)}update(t){if(this.isDestroyed)throw new Error("HubDiscussion is already destroyed.");this.entity=Object.assign(Object.assign({},this.entity),t)}async save(){if(this.isDestroyed)throw new Error("HubDiscussion is already destroyed.");this.entity.id?this.entity=await Dt(this.entity,this.context.hubRequestOptions):this.entity=await jt(this.entity,this.context.hubRequestOptions),await super.afterSave()}async delete(){if(this.isDestroyed)throw new Error("HubDiscussion is already destroyed.");this.isDestroyed=!0,await Ct(this.entity.id,this.context.hubRequestOptions)}async getEditorConfig(t,e){return d(t,e,this.entity,this.context)}async toEditor(t={},e=[]){let s=e.length?await g(l(this.entity),e,this.context.hubRequestOptions):l(this.entity);return s._slug=j(this.entity),s}async fromEditor(t){var e;let s=t._thumbnail,n=t._slug;delete t._thumbnail,delete t._slug;let o=l(t);return o.orgUrlKey=t.orgUrlKey?t.orgUrlKey:this.context.portal.urlKey||"",o.orgUrlKey&&(o.orgUrlKey=o.orgUrlKey.toLowerCase()),o.extent=(e=t.location)===null||e===void 0?void 0:e.extent,n?o.slug=Q(n,o.orgUrlKey):o.slug="",s&&(s.blob?this.thumbnailCache={file:s.blob,filename:s.fileName,clear:!1}:this.thumbnailCache={clear:!0}),this.entity=o,await this.save(),this.entity}},Ee=(i,t,e)=>{let{actionLinks:s=[],baseUrl:n="",locale:o="en-US",target:a="self"}=e||{},r=x(i,t,a,n);return Object.assign(Object.assign(Object.assign({},Zt(i,o)),{actionLinks:s,titleUrl:r}),i.thumbnailUrl&&{thumbnailUrl:i.thumbnailUrl})},ms=(i,t)=>{let{actionLinks:e=[],baseUrl:s="",locale:n="en-US",target:o="self"}=t||{},a=U(i,o,s);return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Zt(i,n)),{actionLinks:e}),!isNaN(i.index)&&{index:i.index}),{titleUrl:a}),i.links.thumbnail&&{thumbnailUrl:i.links.thumbnail})},Zt=(i,t)=>{var e,s;let n=[{i18nKey:"type",value:i.type},{i18nKey:"dateUpdated",value:i.updatedDate.toLocaleDateString(t)},...!((e=i.tags)===null||e===void 0)&&e.length?[{i18nKey:"tags",value:i.tags.join(", ")}]:[],...!((s=i.categories)===null||s===void 0)&&s.length?[{i18nKey:"categories",value:T(i.categories).join(", ")}]:[],{i18nKey:"dateCreated",value:i.createdDate.toLocaleDateString(t)}];return{access:i.access,badges:[],id:i.id,family:C(i.type),source:i.owner,summary:i.summary,title:i.name,type:i.type,additionalInfo:n}};function te(i,t){let{allowExpressionSet:e,expressionSet:s,fieldType:n,itemId:o}=t,a=nt(t,["allowExpressionSet","expressionSet","fieldType","itemId"]),r=Object.assign({},a);if(i&&i.source)switch(i.source.type||""){case"service-query":r=Object.assign(Object.assign({type:"dynamic",dynamicMetric:Object.assign(Object.assign({},i.source),{itemId:o,expressionSet:s,allowExpressionSet:e,fieldType:n,sourceLink:t.sourceLink,sourceTitle:t.sourceTitle})},r),{sourceLink:void 0,sourceTitle:void 0});break;case"static-value":r=Object.assign({type:"static",value:i.source.value,valueType:i.source.valueType},r);break}return r}var L=class i extends p{constructor(t,e){super(t,e),this._catalog=b.fromJson(t.catalog,this.context)}get catalog(){return this._catalog}static fromJson(t,e){let s=this.applyDefaults(t,e);return new i(s,e)}static async create(t,e,s=!1){let n=this.applyDefaults(t,e),o=i.fromJson(n,e);return s&&await o.save(),o}static async fetch(t,e){try{let s=await ct(t,e.requestOptions);return i.fromJson(s,e)}catch(s){throw s.message==="CONT_0001: Item does not exist or is inaccessible."?new Error("Initiative not found."):s}}static applyDefaults(t,e){return t.orgUrlKey||(t.orgUrlKey=e.portal.urlKey),Object.assign(Object.assign({},ot),t)}update(t){if(this.isDestroyed)throw new Error("HubInitiative is already destroyed.");this.entity=Object.assign(Object.assign({},this.entity),t),t.catalog&&(this._catalog=b.fromJson(this.entity.catalog,this.context))}async save(){if(this.isDestroyed)throw new Error("HubInitiative is already destroyed.");this.entity.catalog=this._catalog.toJson(),this.entity.id?this.entity=await rt(this.entity,this.context.userRequestOptions):this.entity=await at(this.entity,this.context.userRequestOptions),await super.afterSave()}async delete(){if(this.isDestroyed)throw new Error("HubInitiative is already destroyed.");this.isDestroyed=!0,await lt(this.entity.id,this.context.userRequestOptions)}resolveMetric(t){let s=D(this.entity).find(n=>n.id===t);if(s)return M(s,this.context);throw new Error(`Metric ${t} not found.`)}convertToCardModel(t){return Ee(this.entity,this.context,t)}async getEditorConfig(t,e){return d(t,e,this.entity,this.context)}async toEditor(t={},e=[]){let s=e.length?await g(l(this.entity),e,this.context.hubRequestOptions):l(this.entity),o=D(this.entity).find(O=>O.id===t.metricId),r=A(this.entity,"view.metricDisplays",[]).find(O=>O.metricId===t.metricId)||{};s._metric=te(o,r);let h=I(this.entity,"associations.groupId");if(h){let O=await z(h,this.context.requestOptions),V=bt(O,null,this.context.userRequestOptions),ie={groupAccess:V.access,membershipAccess:V.membershipAccess};s._associations=ie}return s._slug=j(this.entity),s}async fromEditor(t){var e;let s=t._associations;delete t._associations;let n=await v(t,this.context),o=n.entity;Object.entries(n).forEach(([r,h])=>{w(r,h,this)});let a=(e=o.associations)===null||e===void 0?void 0:e.groupId;if(a&&s){let r=pt(s);s.groupAccess&&await K({group:{id:a,access:s.groupAccess},authentication:this.context.hubRequestOptions.authentication}),s.membershipAccess&&await K({group:{id:a,membershipAccess:r.membershipAccess,clearEmptyFields:!0},authentication:this.context.hubRequestOptions.authentication})}return this.entity=o,await this.save(),this.entity}},ve=(i,t,e)=>{let{actionLinks:s=[],baseUrl:n="",locale:o="en-US",target:a="self"}=e||{},r=x(i,t,a,n);return Object.assign(Object.assign(Object.assign({},ee(i,o)),{actionLinks:s,titleUrl:r}),i.thumbnailUrl&&{thumbnailUrl:i.thumbnailUrl})},gs=(i,t)=>{let{actionLinks:e=[],baseUrl:s="",locale:n="en-US",target:o="self"}=t||{},a=U(i,o,s);return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ee(i,n)),{actionLinks:e}),!isNaN(i.index)&&{index:i.index}),{titleUrl:a}),i.links.thumbnail&&{thumbnailUrl:i.links.thumbnail})},ee=(i,t)=>{var e,s;let n=[{i18nKey:"type",value:i.type},{i18nKey:"dateUpdated",value:i.updatedDate.toLocaleDateString(t)},...!((e=i.tags)===null||e===void 0)&&e.length?[{i18nKey:"tags",value:i.tags.join(", ")}]:[],...!((s=i.categories)===null||s===void 0)&&s.length?[{i18nKey:"categories",value:T(i.categories).join(", ")}]:[],{i18nKey:"dateCreated",value:i.createdDate.toLocaleDateString(t)}];return{access:i.access,badges:[],id:i.id,family:C(i.type),source:i.owner,summary:i.summary,title:i.name,type:i.type,additionalInfo:n}},F=class i extends p{constructor(t,e){super(t,e),this._catalog=b.fromJson(t.catalog,this.context)}get catalog(){return this._catalog}static fromJson(t,e){let s=this.applyDefaults(t,e);return new i(s,e)}static async create(t,e,s=!1){let n=this.applyDefaults(t,e),o=i.fromJson(n,e);return s&&await o.save(),o}static async fetch(t,e){try{let s=await ht(t,e.requestOptions);return i.fromJson(s,e)}catch(s){throw s.message==="CONT_0001: Item does not exist or is inaccessible."?new Error("Project not found."):s}}static applyDefaults(t,e){return t.orgUrlKey||(t.orgUrlKey=e.portal.urlKey),t.orgUrlKey=t.orgUrlKey.toLowerCase(),Object.assign(Object.assign({},ut),t)}convertToCardModel(t){return ve(this.entity,this.context,t)}async getEditorConfig(t,e){return d(t,e,this.entity,this.context)}async toEditor(t={},e=[]){let s=e.length?await g(l(this.entity),e,this.context.hubRequestOptions):l(this.entity);s._groups=[];let o=D(this.entity).find(h=>h.id===t.metricId),r=A(this.entity,"view.metricDisplays",[]).find(h=>h.metricId===t.metricId)||{};return s._metric=te(o,r),s._slug=j(this.entity),s}async fromEditor(t,e){let s=await v(t,this.context);return Object.entries(s).forEach(([n,o])=>{w(n,o,this)}),await this.save(),this.entity}update(t){if(this.isDestroyed)throw new Error("HubProject is already destroyed.");this.entity=Object.assign(Object.assign({},this.entity),t),t.catalog&&(this._catalog=b.fromJson(this.entity.catalog,this.context))}async save(){if(this.isDestroyed)throw new Error("HubProject is already destroyed.");this.entity.catalog=this._catalog.toJson(),this.entity.id?this.entity=await Ut(this.entity,this.context.userRequestOptions):this.entity=await Tt(this.entity,this.context.userRequestOptions),await super.afterSave()}async delete(){if(this.isDestroyed)throw new Error("HubProject is already destroyed.");this.isDestroyed=!0,await xt(this.entity.id,this.context.userRequestOptions)}resolveMetric(t){let s=D(this.entity).find(n=>n.id===t);if(s)return M(s,this.context);throw new Error(`Metric ${t} not found.`)}},R=class i extends p{static fromJson(t,e){let s=this.applyDefaults(t,e);return new i(s,e)}static async fetch(t,e){try{let s=await Lt(t,e.hubRequestOptions);return i.fromJson(s,e)}catch{throw new Error("Event not found.")}}static applyDefaults(t,e){var s;return t.orgUrlKey||(t.orgUrlKey=(s=e.portal)===null||s===void 0?void 0:s.urlKey),t.orgUrlKey&&(t.orgUrlKey=t.orgUrlKey.toLowerCase()),Object.assign(Object.assign({},qt()),t)}update(t){if(this.isDestroyed)throw new Error("HubEvent is already destroyed.");this.entity=Object.assign(Object.assign({},this.entity),t)}async save(){if(this.isDestroyed)throw new Error("HubEvent is already destroyed.");this.entity.id?this.entity=await Pt(this.entity,this.context.hubRequestOptions):this.entity=await Ht(this.entity,this.context.hubRequestOptions)}async delete(){if(this.isDestroyed)throw new Error("HubEvent is already destroyed.");await Nt(this.entity.id,this.context.hubRequestOptions),this.isDestroyed=!0}async shareWithGroup(t){if(!this.context.currentUser)throw new Y("Share Event With Group","Cannot share event with group when no user is logged in.");this.entity=await k([t],this.entity,this.context)}async shareWithGroups(t){this.entity=await k(t,this.entity,this.context)}async unshareWithGroup(t){this.entity=await q([t],this.entity,this.context)}async unshareWithGroups(t){this.entity=await q(t,this.entity,this.context)}async setAccess(t){await yt(Object.assign({eventId:this.entity.id,data:{access:t.toUpperCase()}},this.context.hubRequestOptions)),this.entity.access=t}async sharedWith(){return zt(this.entity.id,this.context)}async getEditorConfig(t,e){return d(t,e,this.entity,this.context)}async toEditor(t={},e=[]){let s=l(this.entity);return Promise.resolve(s)}async fromEditor(t){let e=t._thumbnail,s=await v(t,this.context),n=s.entity;return Object.entries(s).forEach(([o,a])=>{w(o,a,this)}),e&&(n.thumbnailUrl=e.url||null),this.entity=n,await this.save(),this.entity}},Oe={};async function je(i,t){if(!t.currentUser)throw new Error("User is not authenticated");if(!t.isCommunityOrg||!t.isOrgAdmin)throw new Error("User is not an org admin in the current community org");let{termsAndConditions:e,signupText:s}=i,o=`${t.portalUrl}/sharing/rest/portals/self/setSigninSettings?f=json`;return _(o,{httpMethod:"POST",params:{termsAndConditions:e,signupText:s,clearEmptyFields:!s||!e,token:t.hubRequestOptions.authentication.token}})}async function De(i,t){if(!t.currentUser)throw new Error("User is not authenticated");if(!t.isOrgAdmin)throw new Error("User is not an org admin in the current org");let e=l(t.portal.portalProperties),{showInformationalBanner:s}=i;e.hub.settings.informationalBanner=s;let o=`${t.portalUrl}/sharing/rest/portals/self/update?f=json`;return _(o,{httpMethod:"POST",params:{portalProperties:JSON.stringify(e),token:t.hubRequestOptions.authentication.token}})}var S=class i{constructor(t,e){this.isDestroyed=!1,this.entity=t,this.context=e}static fromJson(t,e){let s=this.applyDefaults(t);return new i(s,e)}static applyDefaults(t){return Object.assign(Object.assign({},Oe),t)}toJson(){return l(this.entity)}async save(){if(this.isDestroyed)throw new Error("HubUser is already destroyed.");if(await this.context.updateUserHubSettings(this.entity.settings),this.context.isCommunityOrg&&this.context.isOrgAdmin&&this.entity.hubOrgSettings){let{hubOrgSettings:t}=this.entity,e={signupText:t.enableSignupText&&t.signupText?t.signupText:"",termsAndConditions:t.enableTermsAndConditions&&t.termsAndConditions?t.termsAndConditions:""};await je(e,this.context)}this.context.isOrgAdmin&&this.entity.hubOrgSettings&&Object.prototype.hasOwnProperty.call(this.entity.hubOrgSettings,"showInformationalBanner")&&await De(this.entity.hubOrgSettings,this.context)}async delete(){if(this.isDestroyed)throw new Error("HubUser is already destroyed.");this.isDestroyed=!0}async getEditorConfig(t,e){return d(t,e,this.entity,this.context)}async toEditor(t={},e=[]){return e.length?await g(l(this.entity),e,this.context.hubRequestOptions):l(this.entity)}async fromEditor(t){let e=l(t);return this.entity=e,await this.save(),this.entity}},Ce=(i,t,e)=>{let{actionLinks:s=[],baseUrl:n="",locale:o="en-US",target:a="self"}=e||{},r=x(i,t,a,n);return Object.assign(Object.assign(Object.assign({},se(i,o)),{actionLinks:s,titleUrl:r}),i.thumbnailUrl&&{thumbnailUrl:i.thumbnailUrl})},ps=(i,t)=>{let{actionLinks:e=[],baseUrl:s="",locale:n="en-US",target:o="self"}=t||{},a=U(i,o,s);return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},se(i,n)),{actionLinks:e}),!isNaN(i.index)&&{index:i.index}),{titleUrl:a}),i.links.thumbnail&&{thumbnailUrl:i.links.thumbnail})},se=(i,t)=>{var e,s;let n=[{i18nKey:"type",value:i.type},{i18nKey:"dateUpdated",value:i.updatedDate.toLocaleDateString(t)},...!((e=i.tags)===null||e===void 0)&&e.length?[{i18nKey:"tags",value:i.tags.join(", ")}]:[],...!((s=i.categories)===null||s===void 0)&&s.length?[{i18nKey:"categories",value:T(i.categories).join(", ")}]:[],{i18nKey:"dateCreated",value:i.createdDate.toLocaleDateString(t)}];return{access:i.access,badges:[],id:i.id,family:C(i.type),source:i.owner,summary:i.summary,title:i.name,type:i.type,additionalInfo:n}},G=class i extends p{constructor(t,e){super(t,e),this._catalog=b.fromJson(t.catalog,this.context)}get catalog(){return this._catalog}static fromJson(t,e){let s=this.applyDefaults(t,e);return new i(s,e)}static async create(t,e,s=!1){let n=this.applyDefaults(t,e),o=i.fromJson(n,e);return s&&await o.save(),o}static async fetch(t,e){try{let s=await Rt(t,e.requestOptions);return i.fromJson(s,e)}catch(s){throw s.message==="CONT_0001: Item does not exist or is inaccessible."?new Error("Initiative Template not found."):s}}static applyDefaults(t,e){return t.orgUrlKey||(t.orgUrlKey=e.portal.urlKey),t.orgUrlKey=t.orgUrlKey.toLowerCase(),Object.assign(Object.assign({},It),t)}convertToCardModel(t){return Ce(this.entity,this.context,t)}async getEditorConfig(t,e){return d(t,e,this.entity,this.context)}async toEditor(t={},e=[]){let s=e.length?await g(l(this.entity),e,this.context.hubRequestOptions):l(this.entity);return s._slug=j(this.entity),s}async fromEditor(t){let e=await v(t,this.context);return Object.entries(e).forEach(([s,n])=>{w(s,n,this)}),await this.save(),this.entity}update(t){if(this.isDestroyed)throw new Error("HubInitiativeTemplate is already destroyed.");this.entity=Object.assign(Object.assign({},this.entity),t),t.catalog&&(this._catalog=b.fromJson(this.entity.catalog,this.context))}async save(){if(this.isDestroyed)throw new Error("HubInitiativeTemplate is already destroyed.");this.entity.catalog=this._catalog.toJson(),this.entity.id?this.entity=await At(this.entity,this.context.userRequestOptions):this.entity=await _t(this.entity,this.context.userRequestOptions),await super.afterSave()}async delete(){if(this.isDestroyed)throw new Error("HubInitiativeTemplate is already destroyed.");this.isDestroyed=!0,await Kt(this.entity.id,this.context.userRequestOptions)}},Te="Solution",Ue={schemaVersion:1,catalog:{schemaVersion:0},name:"",tags:[],typeKeywords:[Te],view:{},permissions:[],features:B},W=class i extends p{constructor(t,e){super(t,e)}static fromJson(t,e){let s=this.applyDefaults(t,e);return new i(s,e)}static async create(t,e,s=!1){let n=this.applyDefaults(t,e),o=i.fromJson(n,e);return s&&await o.save(),o}static async fetch(t,e){try{let s=await dt(t,e.requestOptions);return i.fromJson(s,e)}catch(s){throw s.message==="CONT_0001: Item does not exist or is inaccessible."?new Error(`Template ${t} not found.`):s}}static applyDefaults(t,e){return t.orgUrlKey||(t.orgUrlKey=e.portal.urlKey),t.orgUrlKey=t.orgUrlKey.toLowerCase(),Object.assign(Object.assign({},Ue),t)}async getEditorConfig(t,e){return d(t,e,this.entity,this.context)}async toEditor(t={},e=[]){return e.length?await g(l(this.entity),e,this.context.hubRequestOptions):l(this.entity)}async fromEditor(t){let e=await v(t,this.context);return Object.entries(e).forEach(([s,n])=>{w(s,n,this)}),await this.save(),this.entity}update(t){if(this.isDestroyed)throw new Error("HubTemplate is already destroyed.");this.entity=Object.assign(Object.assign({},this.entity),t)}async save(){if(this.isDestroyed)throw new Error("HubTemplate is already destroyed.");this.entity=this.entity.id?await Mt(this.entity,this.context.userRequestOptions):await Jt(),await super.afterSave()}async delete(){if(this.isDestroyed)throw new Error("HubTemplate is already destroyed.");this.isDestroyed=!0,await kt(this.entity.id,this.context.userRequestOptions)}},Qt=class i{constructor(t){this.instance=t}static fromEntity(t,e){let s=$(t),n;if(s==="project"&&(n=F.fromJson(t,e)),s==="initiative"&&(n=L.fromJson(t,e)),s==="content"&&(n=P.fromJson(t,e)),s==="site"&&(n=Yt.fromJson(t,e)),s==="page"&&(n=Bt.fromJson(t,e)),s==="discussion"&&(n=N.fromJson(t,e)),s==="template"&&(n=W.fromJson(t,e)),s==="channel"&&(n=H.fromJson(t,e)),s==="event"&&(n=R.fromJson(t,e)),s==="group"&&(n=$t.fromJson(t,e)),s==="initiativeTemplate"&&(n=G.fromJson(t,e)),s==="user"&&(n=S.fromJson(t,e)),n)return new i(n);throw new Error(`Unsupported entity type: ${t.type}`)}async getConfig(t,e){return this.instance.getEditorConfig(t,e)}toEditor(t={},e=[]){return this.instance.toEditor(t,e)}async save(t,e){return this.instance.fromEditor(t,e)}};export{ae as a,re as b,ce as c,H as d,P as e,N as f,Ee as g,ms as h,L as i,ve as j,gs as k,F as l,R as m,Ce as n,ps as o,G as p,W as q,Qt as r};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/0.32/esri/copyright.txt for details.
|
|
3
|
+
v0.32.2 */
|
|
4
|
+
import{b as Ie}from"./S3HQP2TL.js";import{a as Ae}from"./4HKRH4ZE.js";import{a as we}from"./AZW7Y3P5.js";import{c as K,d as E,e as z,f as B,g as G,i as W,j as T,k as Y,ka as X,m as Ke,n as J,o as b,p as D,q as Ee,r as A,s as I}from"./N7TUF3VY.js";import{a as Q}from"./PHR2JAD6.js";import{g as C,q as p,t as Pe,v as H}from"./W3OKPEZV.js";import{d as Se}from"./HY7S4ZHU.js";import{b as Te}from"./MQEIQHLV.js";import{c as De}from"./7IS3FIQG.js";import{f as w}from"./ZKRKK37N.js";import{b as S,e as be}from"./2RMQLAQJ.js";import{a as M}from"./R26LVT4B.js";import{e as fe,f as ye,m as me,n as V,o as ge}from"./RZ7YXHFT.js";import{k as h,n as O}from"./C5PRVJKH.js";import{b as pe}from"./P54DHZC5.js";import{c as x}from"./WXE3P52G.js";import{a as v}from"./AWOXQW27.js";import{d as y}from"./UZCMX3E6.js";import{a as he}from"./7VUN2F7P.js";import{a as $,b as le,g as ue,j as de,n as m}from"./ARGXE7D2.js";import{c as g}from"./PF7DB2OB.js";import{a as f,k as d,s as ce}from"./PXG4LKUH.js";import{a as u}from"./JWTFBP7C.js";function Re(e,t=""){let n=Pe(e);return n?Y(n,t.toLowerCase(),4):""}function Ye(e,t){let r=e.filter(n=>!n.startsWith(`${T}|`));return r.push([T,t.toLowerCase()].join("|")),r}function ee(e,t){let r=W(e);return _({slug:r},t).then(n=>n.length?y(n[0].id,t):null)}async function _(e,t){if(!e.slug)return[];let n={filter:`typekeywords:"${e.slug.startsWith(`${T}|`)?e.slug:[T,e.slug].join("|")}"`};return t.authentication?n.authentication=t.authentication:t.portal&&(n.portal=t.portal),e.exclude&&(n.q=`NOT id:${e.exclude}`),(await x(n)).results}function Ue(e,t,r=0){let n=r?[e.slug,r].join("-"):e.slug;return _({slug:n,exclude:e.existingId},t).then(s=>s.length?Ue(e,t,r+1):n).catch(s=>{throw Error(`Error in getUniqueSlug ${s}`)})}var F=async(e,t)=>{let r=e.slug,n=e.orgUrlKey.toLowerCase();r&&!r.startsWith(`${n}|`)&&(r=Y(r,n));let{id:s}=e,a=s?{slug:r,existingId:s}:{slug:r};return e.slug=await Ue(a,t),e.typeKeywords=Ye(e.typeKeywords,e.slug),e},k;(function(e){e.map="map",e.image="image"})(k||(k={}));var P;(function(e){e.notStarted="notStarted",e.inProgress="inProgress",e.onHold="onHold",e.complete="complete"})(P||(P={}));var Je="Hub Initiative",$e=2.2,Xe={name:"",tags:[],typeKeywords:["hubInitiativeV2"],catalog:{schemaVersion:0},permissions:[],schemaVersion:$e,status:P.notStarted,features:$,view:{featuredContentIds:[],hero:k.map,metricDisplays:[]}},Ze={item:{type:Je,title:"",description:"",snippet:"",tags:[],typeKeywords:["hubInitiativeV2"],properties:{slug:"",schemaVersion:$e}},data:{catalog:{schemaVersion:0},status:P.notStarted,view:{featuredContentIds:[],hero:k.map,metricDisplays:[]}}};function te(){let e=K();return e.push({entityKey:"status",storeKey:"data.status"}),e.push({entityKey:"catalog",storeKey:"data.catalog"}),e.push({entityKey:"permissions",storeKey:"data.permissions"}),e.push({entityKey:"contacts",storeKey:"data.contacts"}),e.push({entityKey:"timeline",storeKey:"data.timeline"}),e.push({entityKey:"content",storeKey:"data.content"}),e.push({entityKey:"events",storeKey:"data.events"}),e.push({entityKey:"metrics",storeKey:"item.properties.metrics"}),e.push({entityKey:"followersGroupId",storeKey:"item.properties.followersGroupId"}),e.push({entityKey:"features",storeKey:"data.settings.features"}),e}function ve(e,t){return A(e,t)}function re(e,t,r){var n,s;let a;return r.authentication&&(a=r.authentication.token),t=E(e.item,t),t.thumbnailUrl=S(e.item,r,a),t.view=Object.assign(Object.assign({},e.data.view),{featuredImageUrl:(n=e.data.view)===null||n===void 0?void 0:n.featuredImageUrl}),t.catalog=H(t.catalog||{}),t.features=D(((s=e.data.settings)===null||s===void 0?void 0:s.features)||{},$),t.links=ve(e.item,r),t}function qe(e){if(!e)return;let t=ye(e);return t.filters.forEach(r=>{r.predicates.forEach(n=>{n.group&&(n.group.not=[...n.group.any||[],...n.group.all||[]],n.group.any=[],n.group.all=[])})}),t}function xe(e,t){let r=e.filter(n=>!n.startsWith("status|"));return r.push(`status|${t}`),r}async function Kr(e,t){let r=Object.assign(Object.assign({},Xe),e);r.orgUrlKey=r.orgUrlKey.toLowerCase(),r.slug||(r.slug=Re(r.name,r.orgUrlKey)),await F(r,t),r.typeKeywords=xe(r.typeKeywords,r.status),r.typeKeywords=C(r.typeKeywords,r.isDiscussable);let n=new p(te()),s=n.entityToStore(r,f(Ze));s=await B(s,t);let a=n.storeToEntity(s,{});return a=re(s,a,t),a}async function Er(e,t){await F(e,t),e.typeKeywords=xe(e.typeKeywords,e.status),e.typeKeywords=C(e.typeKeywords,e.isDiscussable);let r=await z(e.id,t),n=new p(te()),s=n.entityToStore(e,r),a=await G(s,t),o=n.storeToEntity(a,e);return o=re(r,o,t),o}function Tr(e,t){let r;return v(e)?r=y(e,t):r=ee(e,t),r.then(n=>n?et(n,t):null)}async function Dr(e,t){let r=Object.assign(Object.assign({},t),{id:e});await Q(r)}async function et(e,t){let r=await I(e,t),s=new p(te()).storeToEntity(r,{});return re(r,s,t)}async function tt(e,t,r){let n={access:e.access,id:e.id,type:e.type,name:e.title,owner:e.owner,typeKeywords:e.typeKeywords,summary:e.snippet||e.description,createdDate:new Date(e.created),createdDateSource:"item.created",updatedDate:new Date(e.modified),updatedDateSource:"item.modified",family:g(e.type),links:{self:"not-implemented",siteRelative:"not-implemented",thumbnail:"not-implemented",workspaceRelative:"not-implemented"},location:h(e),rawResult:e};t=[...[],...t].filter(d);let a=t.map(b),o=m("enrichment",a).filter(d),i={};return o.length&&(i=await w(e,o,r)),a.forEach(c=>{n[c.prop]=u(i,c.path)}),n.links=ve(e,r),n}function Ar(e){let t=Ie("Hub Project",`initiative|${e.id}`),r=u(e,"catalog.scopes.item");return t=Ae([t,qe(r)]),t}var q="Hub Project",ne=1.2,Ir={catalog:{schemaVersion:0},name:"",permissions:[],schemaVersion:ne,status:P.notStarted,tags:[],typeKeywords:[q],view:{contacts:[],featuredContentIds:[],showMap:!0,metricDisplays:[]},features:$},Rr={item:{type:q,title:"",description:"",snippet:"",tags:[],typeKeywords:[q],properties:{slug:"",schemaVersion:ne}},data:{display:"about",permissions:[],catalog:{schemaVersion:0},status:P.notStarted,view:{contacts:[],featuredContentIds:[],showMap:!0,metricDisplays:[]}}};function _e(e,t){return A(e,t)}function rt(e){if(e.schemaVersion>=1.2)return e;let t=f(e);return t.view&&t.view.timeline&&t.view.timeline.stages&&Array.isArray(t.view.timeline.stages)&&(t.view.timeline.stages=t.view.timeline.stages.filter(r=>!!r.title)),t.schemaVersion=1.2,t}function nt(e){if(e.schemaVersion>=1.1)return e;let t=f(e),{slug:r,orgUrlKey:n,typeKeywords:s}=J(t.slug||"",t.orgUrlKey||"",t.typeKeywords||[]);return t.slug=r,t.orgUrlKey=n,t.typeKeywords=s,t.schemaVersion=1.1,t}function st(e){if(e.schemaVersion===ne)return e;let t=nt(e);return t=rt(t),t}function at(e,t,r){var n,s;let a;return r.authentication&&(a=r.authentication.token),t=E(e.item,t),t.thumbnailUrl=S(e.item,r,a),t.view=Object.assign(Object.assign({},e.data.view),{featuredImageUrl:(n=e.data.view)===null||n===void 0?void 0:n.featuredImageUrl}),t.catalog=H(t.catalog||{}),t.features=D(((s=e.data.settings)===null||s===void 0?void 0:s.features)||{},le),t.links=_e(e.item,r),t=st(t),t}function ot(){let e=K();return e.push({entityKey:"status",storeKey:"data.status"}),e.push({entityKey:"catalog",storeKey:"data.catalog"}),e.push({entityKey:"content",storeKey:"data.content"}),e.push({entityKey:"events",storeKey:"data.events"}),e.push({entityKey:"permissions",storeKey:"data.permissions"}),e.push({entityKey:"features",storeKey:"data.settings.features"}),e.push({entityKey:"metrics",storeKey:"item.properties.metrics"}),e}function se(){let e=K();return["headContent","layout"].forEach(r=>{e.push({entityKey:r,storeKey:`data.values.${r}`})}),e}function ke(e,t){let r=A(e,t),n=O(e.type,Ee(e,!0),e.typeKeywords);return Object.assign(Object.assign({},r),{siteRelative:n,layoutRelative:`/pages/${e.id}/edit`})}var it="Hub Page",Ur="Site Page",Ne="hubPage",ae=1.1,ct={name:"",permissions:[],schemaVersion:ae,tags:[],typeKeywords:[Ne],view:{contacts:[],featuredContentIds:[],showMap:!0},layout:{sections:[]}},lt={item:{type:it,title:"",description:"",snippet:"",tags:[],typeKeywords:[Ne],properties:{slug:"",schemaVersion:ae}},data:{values:{layout:{}}}};function ut(e){if(e.schemaVersion>=1.1)return e;let t=f(e),{slug:r,orgUrlKey:n,typeKeywords:s}=J(t.slug||"",t.orgUrlKey||"",t.typeKeywords||[]);return t.slug=r,t.orgUrlKey=n,t.typeKeywords=s,t.schemaVersion=1.1,t}function dt(e){return e.schemaVersion===ae?e:ut(e)}function oe(e,t,r){var n;let s;r.authentication&&(s=r.authentication.token),t=E(e.item,t);let a=S(e.item,r,s);return t.thumbnailUrl=a,t.links=ke(e.item,r),t.features=D(((n=e.data.settings)===null||n===void 0?void 0:n.features)||{},ue),t=dt(t),t}function pt(e,t){let{id:r,slug:n,orgKey:s}=Ke(e);if(r)return y(r,t);let a=De(n,s||t.siteOrgKey),o=W(a);return _({slug:o},t).then(i=>{if(i.length)return i;{let c=o.split("|").slice(1).join("|");return _({slug:c},t)}}).then(i=>i.length?y(i[0].id,t):null)}async function $r(e,t){let r=Object.assign(Object.assign({},ct),e);r.orgUrlKey=r.orgUrlKey.toLowerCase(),r.slug||(r.slug=Re(r.name,r.orgUrlKey)),await F(r,t);let n=new p(se()),s=n.entityToStore(r,f(lt));s=await B(s,t);let a=n.storeToEntity(s,{});return a=oe(s,a,t),a}async function vr(e,t){await F(e,t);let r=await z(e.id,t),n=new p(se()),s=n.entityToStore(e,r),a=await G(s,t),o=n.storeToEntity(a,e);return o=oe(r,o,t),o}async function xr(e,t){let r=await pt(e,t);return r?yt(r,t):null}function ft(e,t){let n=new p(se()).storeToEntity(e,{});return oe(e,n,t)}async function yt(e,t){let r=await I(e,t);return ft(r,t)}async function _r(e,t){let r=Object.assign(Object.assign({},t),{id:e});await Q(r)}async function mt(e,t,r){let n={access:e.access,id:e.id,type:e.type,name:e.title,owner:e.owner,typeKeywords:e.typeKeywords,tags:e.tags,categories:e.categories,summary:e.snippet||e.description,createdDate:new Date(e.created),createdDateSource:"item.created",updatedDate:new Date(e.modified),updatedDateSource:"item.modified",family:g(e.type),links:{self:"not-implemented",siteRelative:"not-implemented",thumbnail:"not-implemented"},location:h(e),rawResult:e};t=[...[],...t].filter(d);let a=t.map(b),o=m("enrichment",a).filter(d),i={};return o.length&&(i=await w(e,o,r)),a.forEach(c=>{n[c.prop]=u(i,c.path)}),n.links=ke(e,r),n}function gt(){let e=K();return e.push({entityKey:"previewUrl",storeKey:"item.properties.previewUrl"}),e}function je(e,t){var r;let n=A(e,t),s=(r=e.typeKeywords)===null||r===void 0?void 0:r.includes("Deployed"),{self:a,siteRelative:o,workspaceRelative:i}=n,c=`${o.split("/").slice(0,-1).join("/")}/edit/advanced`;return Object.assign(Object.assign({},n),{workspaceRelative:s?a:i,advancedEditRelative:c})}var Fe=e=>{let t="Solution",r=e.typeKeywords.find(n=>n.startsWith("hubSolutionType|"));if(r){let n=r.split("|")[1];t=he(n).split("-").map(a=>ce(a)).join(" ");let s={storyMap:"StoryMap"};s[n]&&(t=s[n])}return t};function ht(e,t,r){return t=E(e.item,t),t.links=je(e.item,r),t.thumbnailUrl=t.links.thumbnail,t.features=D(u(e,"data.settings.features")||{},de),t.isDeployed=(u(e,"item.typeKeywords")||[]).includes("Deployed"),t.deployedType=Fe(e.item),t}function N(e){return e==null||e===""}function R(e,t){let r=null,n=t.filter(s=>s.predicates.find(a=>!N(a[e])));if(n.length>1)throw new Error(`Only 1 IFilter can have a '${e}' predicate but ${n.length} were detected`);if(n.length){let s=n[0],a=s.predicates.filter(l=>!N(l[e]));if(a.length>1)throw new Error(`Only 1 '${e}' predicate is allowed but ${a.length} were detected`);if(s.operation!=="AND"&&s.predicates.length>1)throw new Error(`'${e}' predicates cannot be OR'd to other predicates`);let o=a[0],i=o[e];if(!(typeof i=="string"||typeof i=="boolean"))throw new Error(`'${e}' predicate must be a string or boolean primitive. string[] and IMatchOptions are not allowed.`);r=o}return r}function wt(e){let r=e.filters.map(bt).filter(Le),n=ie(r,"AND"),s=R("bbox",e.filters);return s&&(n.params={bbox:s.bbox}),n}function Le(e){return!(typeof e>"u"||e===null||e==="")}function ie(e,t){return e.reduce((n,s)=>(Object.entries(s).forEach(([a,o])=>{n[a]&&o!==""?n[a]=`${n[a]} ${t} ${o}`:o!==""&&(n[a]=o)}),n),{q:""})}function bt(e){let t=e.operation||"AND",r=e.predicates.map(fe),n=r.map(Pt).filter(a=>a!=null),s=ie(n,t);return r.length>1&&(s.q=`(${s.q})`),s}function Pt(e){let t=["created","modified"],r=["isopendata","isviewonly"],n=["searchUserAccess","searchUserName","memberType","name","categoriesAsParam","categoryFilter","bbox","joined"],s=["filterType","term",...t,...r,...n],a=["access","capabilities","created","categories","categoriesAsParam","categoryFilter","contentstatus","description","disabled","email","emailstatus","firstname","fullname","group","id","isInvitationOnly","isopendata","joined","lastlogin","lastname","memberType","modified","name","orgid","orgIds","owner","provider","role","searchUserAccess","searchUserName","snippet","tags","term","title","type","typekeywords","userlicensetype","username","isviewonly"],o=Object.entries(e).map(([i,c])=>{if(a.includes(i)){let l={q:""};return!s.includes(i)&&i!=="term"&&(l.q=St(i,c)),(t.includes(i)||Et(c))&&(l.q=Kt(i,c)),r.includes(i)&&(l.q=`${i}:${c}`),n.includes(i)&&(i==="joined"?l[i]=`${c.from},${c.to}`:l[i]=c),i==="term"&&(l.q=c),l}}).filter(Le);if(o.length){let i=ie(o,"AND");return i.q&&(i.q=`(${i.q})`),i}else return null}function St(e,t){var r,n,s;let a="";return!((r=t.any)===null||r===void 0)&&r.length&&(a=`${Z("OR",e,t.any)}`),!((n=t.all)===null||n===void 0)&&n.length&&(a=(a?a+" AND ":"")+`${Z("AND",e,t.all)}`),!((s=t.not)===null||s===void 0)&&s.length&&(a=(a?a+" AND ":"")+`${Z("OR",`-${e}`,t.not)}`),a}function Kt(e,t){return`${e}:[${t.from} TO ${t.to}]`}function Z(e,t,r){let n="";return Array.isArray(r)&&r.length?(n=`${t}:"${r.join(`" ${e} ${t}:"`)}"`,r.length>1&&(n=`(${n})`)):n=`${t}:"${r}"`,n}function Et(e){return typeof e=="object"&&e!==null&&["from","to"].every(t=>typeof e[t]<"u")}function Me(e,t,r,n){let s=f(e);return e.authentication&&(s.authentication=M.deserialize(e.authentication.serialize())),u(e,"requestOptions.authentication")&&(s.requestOptions.authentication=M.deserialize(e.requestOptions.authentication.serialize())),s.start=t>-1?t:r+1,()=>n(s)}async function kr(e,t){let r;return v(e)?r=y(e,t):r=ee(e,t),r.then(n=>n?Tt(n,t):null)}async function Tt(e,t){let r=await I(e,t),s=new p(gt()).storeToEntity(r,{});return ht(r,s,t)}async function Dt(e,t,r){let n={access:e.access,id:e.id,type:e.type,name:e.title,owner:e.owner,typeKeywords:e.typeKeywords,tags:e.tags,categories:e.categories,summary:e.snippet||e.description,createdDate:new Date(e.created),createdDateSource:"item.created",updatedDate:new Date(e.modified),updatedDateSource:"item.modified",family:g(e.type),links:{self:"not-implemented",siteRelative:"not-implemented",thumbnail:"not-implemented",workspaceRelative:"not-implemented"},location:h(e),rawResult:e};t=[...[],...t].filter(d);let a=t.map(b),o=m("enrichment",a).filter(d),i={};return o.length&&(i=await w(e,o,r)),a.forEach(c=>{n[c.prop]=u(i,c.path)}),n.links=je(e,r),n.deployedType=Fe(e),n}function Oe(e){var t;return!((t=e.aggregations)===null||t===void 0)&&t.counts?e.aggregations.counts.map(r=>({mode:"terms",field:r.fieldName,values:r.fieldValues})):[]}async function Ve(e,t,r){let n={access:e.access,id:e.id,type:e.type,name:e.title,owner:e.owner,tags:e.tags,typeKeywords:e.typeKeywords,categories:e.categories,summary:e.snippet||e.description,createdDate:new Date(e.created),createdDateSource:"item.created",updatedDate:new Date(e.modified),updatedDateSource:"item.modified",family:g(e.type),links:{self:"not-implemented",siteRelative:"not-implemented",thumbnail:"not-implemented"},location:h(e),rawResult:e};t=[...[],...t].filter(d);let a=t.map(b),o=m("enrichment",a).filter(d),i={};return o.length&&(i=await w(e,o,r)),a.forEach(c=>{n[c.prop]=u(i,c.path)}),n.links.thumbnail=S(e,r),n.links.self=pe(n.id,r),n.links.siteRelative=O(n.type,n.id,e.typeKeywords),n.links.workspaceRelative=Se(n.type,n.id),n}async function At(e,t,r){let n=await Ve(e,t,r),s=be(e,r);return n.links.thumbnail||(n.links.thumbnail=s),n}async function Nr(e,t){let r;return v(e)?r=y(e,t):r=ee(e,t),r.then(n=>n?It(n,t):null)}async function It(e,t){let r=await I(e,t),s=new p(ot()).storeToEntity(r,{});return at(r,s,t)}async function Rt(e,t,r){let n={access:e.access,id:e.id,type:e.type,name:e.title,owner:e.owner,typeKeywords:e.typeKeywords,tags:e.tags,categories:e.categories,summary:e.snippet||e.description,createdDate:new Date(e.created),createdDateSource:"item.created",updatedDate:new Date(e.modified),updatedDateSource:"item.modified",family:g(e.type),links:{self:"not-implemented",siteRelative:"not-implemented",thumbnail:"not-implemented",workspaceRelative:"not-implemented"},location:h(e),rawResult:e};t=[...[],...t].filter(d);let a=t.map(b),o=m("enrichment",a).filter(d),i={};return o.length&&(i=await w(e,o,r)),a.forEach(c=>{n[c.prop]=u(i,c.path)}),n.links=_e(e,r),n}async function jr(e,t){let r=me(e),n=Ce(t,r);return Qe(n)}function Fr(e,t){let r=Ce(t,e);return He(r)}function Ce(e,t){var r;if(!e.requestOptions)throw new we("portalSearchItems","options.requestOptions is required.");let n=ge(t),s=wt(n);return["num","sortField","sortOrder","include","start","httpMethod","requestOptions"].forEach(o=>{Object.prototype.hasOwnProperty.call(e,o)&&(s[o]=e[o])}),e.requestOptions.authentication?s.authentication=e.requestOptions.authentication:s.portal=e.requestOptions.portal,!((r=e.aggFields)===null||r===void 0)&&r.length&&(s.countFields=e.aggFields.join(","),s.countSize=e.aggLimit||10),s}async function He(e){let t=await x(e),r=Oe(t);return{total:t.total,results:t.results,aggregations:r,hasNext:t.nextStart>-1,next:Me(e,t.nextStart,t.total,He),executedQuerySize:V(e.q)}}async function Qe(e){let t=await x(e),r=a=>ze(a,e.include,e.requestOptions),n=await Promise.all(t.results.map(r)),s=Oe(t);return{total:t.total,results:n,aggregations:s,hasNext:t.nextStart>-1,next:Me(e,t.nextStart,t.total,Qe),executedQuerySize:V(e.q)}}async function ze(e,t=[],r){let n=Ve;switch(e.type){case"Hub Site Application":case"Site Application":n=X;break;case"Hub Page":case"Site Page":n=mt;break;case"Hub Project":n=Rt;break;case"Hub Initiative":n=tt;break;case"Solution":n=Dt;break;case"Web Mapping Application":e.typeKeywords.includes("hubSite")&&(n=X);break;case"Image":n=At;break}return n(e,t,r)}function Lr(e,t){let r=new URL(t.requestOptions.hubApiUrl).hostname;return e.targetEntity==="discussionPost"?`https://${r}/api/search/v2/collections/discussion-post`:`https://${r}/api/search/v1/collections/all`}function Ut(e){return e.filters.map($t).filter(Be).join(" AND ")}function $t(e){let t=e.operation||"OR";return`(${e.predicates.map(vt).filter(Be).join(` ${t} `)})`}function vt(e){return`(${Object.entries(e).filter(([r,n])=>r!=="term"&&r!=="bbox"&&r!=="fields"&&r!=="flatten"&&!N(n)).reduce((r,[n,s])=>{let a;return typeof s=="string"||typeof s=="boolean"?a=j(n,s):Array.isArray(s)?a=kt(n,s):xt(s)?a=_t(n,s):a=Nt(n,s),r.push(a),r},[]).join(" AND ")})`}function xt(e){return Number.isInteger(e.from)&&Number.isInteger(e.to)}function _t(e,t){return`${e} BETWEEN ${t.from} AND ${t.to}`}function j(e,t){let r=typeof t=="string"?L(t):t;return`${e}=${r.toString()}`}function kt(e,t){let r=t.map(L);return`${e} IN (${r.join(", ")})`}function Nt(e,t){let r=jt(e,t.any),n=Ft(e,t.all),s=Lt(e,t.not);return[r,n,s].filter(a=>!!a).join(" AND ")}function jt(e,t){let r;if(Array.isArray(t)){let n=t.map(L);r=`${e} IN (${n.join(", ")})`}else t&&(r=j(e,t));return r}function Ft(e,t){let r;return Array.isArray(t)?r=t.map(n=>j(e,n)).join(" AND "):t&&(r=j(e,t)),r}function Lt(e,t){let r;if(t){let s=(Array.isArray(t)?t:[t]).map(L);r=`${e} NOT IN (${s.join(", ")})`}return r}function L(e){return/\s/.test(e)?`'${e}'`:e}function Be(e){return e!=="()"}function Mt(e){let t=R("term",e.filters);return t?.term}function Ot(e){let t=R("bbox",e.filters);return t?.bbox}function Vt(e){let t=Object.entries(e).filter(([r,n])=>!N(n)).map(([r,n])=>`${r}=${encodeURIComponent(n)}`).join("&");return t&&`?${t}`}async function Ct(e,t,r){let n=f(t),s=e+Vt(n),o=await(r.requestOptions.fetch||fetch)(s,{method:"GET"});if(!o.ok)throw new Te(o.statusText,s,o.status);return o.json()}function Ht(e){let t=R("fields",e.filters);return t?.fields}function Qt(e){let t=R("flatten",e.filters);return t?.flatten}function zt(e){let{sortField:t,sortOrder:r}=e,n;return t&&(n=r==="desc"?`-properties.${t}`:`properties.${t}`),n}function Bt(e,t){let r=Ut(e),n=u(t,"requestOptions.authentication.token"),s=t.num,a=t.start,o=Mt(e),i=zt(t),c=Ot(e),l=Qt(e),We=Ht(e);return{filter:r,token:n,limit:s,startindex:a,q:o,sortBy:i,bbox:c,flatten:l,fields:We}}async function Gt(e,t,r){let n=e.properties,s=await ze(n,t,r);return s.source=e.properties.source,s.license=e.properties.license,s}function Wt(e){return Promise.resolve({id:e.id,name:e.properties.title,summary:e.properties.body,createdDate:new Date(e.properties.createdAt),createdDateSource:"properties.createdAt",updatedDate:new Date(e.properties.updatedAt),updatedDateSource:"properties.updatedAt",type:"post",owner:e.properties.creator,location:null,created:new Date(e.properties.createdAt),modified:new Date(e.properties.updatedAt),title:e.properties.title,rawResult:e,access:null,family:null})}var U={searchOgcItems:Yt,formatOgcItemsResponse:Jt,formatDiscussionPostTargetEntityResponse:Xt,formatItemTargetEntityResponse:Ge,getNextOgcCallback:Zt};async function Yt(e,t,r){let n=Bt(t,r),s=await Ct(e,n,r);return U.formatOgcItemsResponse(s,e,t,r)}async function Jt(e,t,r,n){return r.targetEntity==="discussionPost"?U.formatDiscussionPostTargetEntityResponse(e,t,r,n):Ge(e,t,r,n)}async function Xt(e,t,r,n){let s=await Promise.all(e.features.map(i=>Wt(i))),a=U.getNextOgcCallback(e,t,r,n),o=e.links.find(i=>i.rel==="next");return{total:e.numberMatched,results:s,hasNext:!!o,next:a}}async function Ge(e,t,r,n){let s=await Promise.all(e.features.map(i=>Gt(i,n.include,n.requestOptions))),a=U.getNextOgcCallback(e,t,r,n),o=e.links.find(i=>i.rel==="next");return{total:e.numberMatched,results:s,hasNext:!!o,next:a}}function Zt(e,t,r,n){let s=e.links.find(o=>o.rel==="next"),a=()=>null;return s&&(a=()=>{let i=+new URL(s.href).searchParams.get("startindex"),c=Object.assign(Object.assign({},n),{start:i});return U.searchOgcItems(t,r,c)}),a}export{Re as a,Ye as b,ee as c,_ as d,Ue as e,F as f,k as g,P as h,Xe as i,qe as j,xe as k,Kr as l,Er as m,Tr as n,Dr as o,et as p,tt as q,Ar as r,Ir as s,Rr as t,at as u,ot as v,it as w,Ur as x,ct as y,pt as z,$r as A,vr as B,xr as C,ft as D,yt as E,_r as F,mt as G,gt as H,ht as I,wt as J,Me as K,kr as L,Tt as M,Dt as N,Ve as O,At as P,Nr as Q,It as R,Rt as S,jr as T,Fr as U,Lr as V,Ut as W,Mt as X,Ot as Y,Ct as Z,Yt as _};
|