@esri/solutions-components 1.1.0-next.20250815 → 1.1.0-next.20250818
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/{VTZ2ZWLV.js → 235XLQAM.js} +4 -4
- package/dist/cdn/{PISE6C5K.js → 23TMCFRN.js} +1 -1
- package/dist/cdn/{65SLMV27.js → 25UOXMDB.js} +2 -2
- package/dist/cdn/{2ARFKQYA.js → 26VSVB7G.js} +2 -2
- package/dist/cdn/{SAXQNX3E.js → 2B2N2WJX.js} +1 -1
- package/dist/cdn/{BIFJWEGT.js → 2BCOKAO7.js} +2 -2
- package/dist/cdn/{B5XW62UJ.js → 2CPXQ3XO.js} +2 -2
- package/dist/cdn/2IAXWN6T.js +4 -0
- package/dist/cdn/{FH6FZK7W.js → 2LTH7RJS.js} +2 -2
- package/dist/cdn/{VEXXHCVL.js → 2YRCAX6G.js} +2 -2
- package/dist/cdn/{R72XZLYM.js → 333HWSMJ.js} +1 -1
- package/dist/cdn/{C2LJQG3Q.js → 3B3A5TS3.js} +2 -2
- package/dist/cdn/{Z7SHIC4B.js → 3BVUEJ3Z.js} +2 -2
- package/dist/cdn/{4KLZCSZT.js → 3G3U5DAY.js} +2 -2
- package/dist/cdn/{CBB7A3AU.js → 3PRN6OLE.js} +2 -2
- package/dist/cdn/3QKRY7AN.js +18 -0
- package/dist/cdn/{7REB5YFW.js → 3SPNSK2M.js} +2 -2
- package/dist/cdn/{5GBUXTAG.js → 3WYMKLFQ.js} +2 -2
- package/dist/cdn/4KH3V75Z.js +4 -0
- package/dist/cdn/{RJQ7FAWD.js → 4LE4JATK.js} +2 -2
- package/dist/cdn/{WOUNP7CD.js → 4MTMZVF5.js} +2 -2
- package/dist/cdn/{2VROFSSM.js → 4MTWHCFA.js} +2 -2
- package/dist/cdn/{W2AL4J2S.js → 4OFQDJ6A.js} +2 -2
- package/dist/cdn/{SJHVU2TJ.js → 4UE66F3J.js} +2 -2
- package/dist/cdn/{2ACSYRE6.js → 4Y3ESBVN.js} +2 -2
- package/dist/cdn/{7MQULQBP.js → 53H4O4KK.js} +2 -2
- package/dist/cdn/{XIDJM47C.js → 5BZ3RNAC.js} +2 -2
- package/dist/cdn/{O2ADEHEI.js → 5E4GIVQX.js} +2 -2
- package/dist/cdn/{RF6BRNT4.js → 5IEZZPUO.js} +2 -2
- package/dist/cdn/5INUHIM3.js +4 -0
- package/dist/cdn/{IXWP62CT.js → 5SIXJEJI.js} +2 -2
- package/dist/cdn/{NFLORG7T.js → 5UGF2RMZ.js} +2 -2
- package/dist/cdn/{L4F4ICSP.js → 5WWQIU6C.js} +2 -2
- package/dist/cdn/{BNDH7DJ4.js → 62NOWEZE.js} +2 -2
- package/dist/cdn/{Q7WB6ARM.js → 62UEKGMB.js} +2 -2
- package/dist/cdn/{3SCTVV5V.js → 65UAYDBN.js} +1 -1
- package/dist/cdn/{KFHDLQ4N.js → 67EYEWRI.js} +1 -1
- package/dist/cdn/{ZSEI5RSC.js → 6CFB563X.js} +1 -1
- package/dist/cdn/{5GSU5Q3A.js → 6EKR2ASQ.js} +2 -2
- package/dist/cdn/{DCQWYHFI.js → 6LNJ4H2K.js} +2 -2
- package/dist/cdn/{JIKAOXY7.js → 6Q63AOMU.js} +2 -2
- package/dist/cdn/{3APRWDB5.js → 6TDGLMGN.js} +2 -2
- package/dist/cdn/{5UWMW4LC.js → 7BASGBL3.js} +2 -2
- package/dist/cdn/{IO6BJTEY.js → 7FPBQA7H.js} +2 -2
- package/dist/cdn/{HUFFSCY7.js → 7QA2XWHF.js} +2 -2
- package/dist/cdn/{HXSFGHXJ.js → 7S2VPPXW.js} +2 -2
- package/dist/cdn/{TMO7U5HG.js → A3WZDLWT.js} +2 -2
- package/dist/cdn/{JCBVJ5SW.js → ADH4AX7Q.js} +2 -2
- package/dist/cdn/{BTYX4Q5L.js → AEHWVDBQ.js} +2 -2
- package/dist/cdn/{7GYNJ6QO.js → AVAQFCMA.js} +2 -2
- package/dist/cdn/{EH5Q3QVP.js → AVCRNRY7.js} +2 -2
- package/dist/cdn/{S4KTRO4X.js → AWSF3FLP.js} +2 -2
- package/dist/cdn/{OR4TROLT.js → AXH7MWTJ.js} +1 -1
- package/dist/cdn/{7MOYCP6M.js → AYNLOBV4.js} +2 -2
- package/dist/cdn/{CC62255Q.js → AYTVFDPL.js} +2 -2
- package/dist/cdn/{KYJBLZWV.js → B3EYCFHY.js} +2 -2
- package/dist/cdn/{VIAOSFKI.js → BA2GSOLJ.js} +2 -2
- package/dist/cdn/{NGQNRGLE.js → BA3EUAIL.js} +2 -2
- package/dist/cdn/{MZD64NYC.js → BBOFQYSI.js} +2 -2
- package/dist/cdn/{K6J5UV76.js → BCCYBMSW.js} +1 -1
- package/dist/cdn/{O5MIRZG4.js → BD4EMRO4.js} +2 -2
- package/dist/cdn/{EGQ5A6HA.js → BIE43IGH.js} +2 -2
- package/dist/cdn/{7Q3BPIIY.js → BJYA7WKW.js} +1 -1
- package/dist/cdn/{3TJW2FOV.js → BLGTW3P7.js} +2 -2
- package/dist/cdn/{6CXWPWTQ.js → BN4BZNL3.js} +2 -2
- package/dist/cdn/{M4G7D2JU.js → BNC6L2YK.js} +2 -2
- package/dist/cdn/{QIEWADMK.js → BQOJWWEZ.js} +2 -2
- package/dist/cdn/{XLT3R6PW.js → BTE46Y5Q.js} +2 -2
- package/dist/cdn/{2BSCJY6H.js → BUG336RI.js} +2 -2
- package/dist/cdn/{QVWXK4N2.js → BXYYFFJR.js} +2 -2
- package/dist/cdn/{Q6PH6YZW.js → C33FC7RC.js} +2 -2
- package/dist/cdn/{SNQRHLBA.js → C5VCROIZ.js} +2 -2
- package/dist/cdn/{5CVMZFE2.js → CAHIXJAC.js} +1 -1
- package/dist/cdn/{XXOFBYMX.js → CBKG3TN3.js} +2 -2
- package/dist/cdn/{SG3I3BVR.js → CCUURDN3.js} +1 -1
- package/dist/cdn/{2PIO4UB6.js → CFFP3TGO.js} +2 -2
- package/dist/cdn/{MJD3VGP3.js → COZZW6V3.js} +2 -2
- package/dist/cdn/{2P3ODD4H.js → CVWDWQZG.js} +2 -2
- package/dist/cdn/{USVU75S5.js → CXU36IAR.js} +2 -2
- package/dist/cdn/{3F7AZTXH.js → D3RNWLZZ.js} +2 -2
- package/dist/cdn/{J3Y7ENAJ.js → DHERKA4G.js} +2 -2
- package/dist/cdn/{XPCWYH6T.js → DL6IDDDM.js} +2 -2
- package/dist/cdn/{GMB5YWAG.js → DLATCFHU.js} +2 -2
- package/dist/cdn/{EHRG3P4A.js → DMXP3IHB.js} +2 -2
- package/dist/cdn/{LZVOPEFK.js → DT6EEEKP.js} +2 -2
- package/dist/cdn/{4LXMVIWS.js → DUBPN4RS.js} +2 -2
- package/dist/cdn/{QRNKCW6S.js → DUGVJ3DH.js} +2 -2
- package/dist/cdn/{YGRRQ64K.js → DUNYDQAY.js} +2 -2
- package/dist/cdn/{GYNVIHME.js → E4ETWC64.js} +2 -2
- package/dist/cdn/{XP5S366J.js → E6D2PGYQ.js} +2 -2
- package/dist/cdn/EB64EA6V.js +4 -0
- package/dist/cdn/{7A27PIVW.js → ENUR7R4D.js} +2 -2
- package/dist/cdn/{QO54BLLR.js → EOXVRJW6.js} +2 -2
- package/dist/cdn/{MTO5Q5HN.js → EQAQHKCK.js} +2 -2
- package/dist/cdn/{YXNGYSMG.js → ETWLI3UW.js} +1 -1
- package/dist/cdn/{WUMV4GRB.js → EVRJVAJE.js} +2 -2
- package/dist/cdn/{P6U5F5YW.js → F4ZZRUWR.js} +2 -2
- package/dist/cdn/{7ATSFN2Q.js → FD4NI5CR.js} +2 -2
- package/dist/cdn/{EFF5HM4F.js → FJHYTGL3.js} +2 -2
- package/dist/cdn/{XHHM7WRB.js → FPZJX6ZR.js} +1 -1
- package/dist/cdn/{4E7IAOL6.js → FQOP3IHB.js} +2 -2
- package/dist/cdn/{X4RKMWOI.js → FUCVRAVQ.js} +2 -2
- package/dist/cdn/{Y4LLUPJ4.js → FZQAN6YM.js} +2 -2
- package/dist/cdn/{MTUWIJJX.js → G6KEW64X.js} +2 -2
- package/dist/cdn/{QSNTZEVL.js → GFEGTT65.js} +2 -2
- package/dist/cdn/{HEIEIXYZ.js → GMSO7XSN.js} +2 -2
- package/dist/cdn/{SPN442VG.js → GOQGQPLA.js} +1 -1
- package/dist/cdn/{373MVXFL.js → GV4WSWWJ.js} +1 -1
- package/dist/cdn/{6XZ6AQM3.js → GW5PRU3X.js} +2 -2
- package/dist/cdn/{OJRNLIHO.js → H2QTIFW6.js} +2 -2
- package/dist/cdn/{LX3CIHRP.js → H4P4SOOU.js} +2 -2
- package/dist/cdn/{B6V3FZMS.js → HAWBRFO4.js} +2 -2
- package/dist/cdn/{GLP6MIWB.js → HCY45Z6P.js} +2 -2
- package/dist/cdn/{ZNDVVXJV.js → HH54FB6Q.js} +2 -2
- package/dist/cdn/{ZCSXNNNE.js → HIG6WAET.js} +2 -2
- package/dist/cdn/{VVGAWSJE.js → HJ6GYEOT.js} +2 -2
- package/dist/cdn/{QRVZLEG7.js → HLAUGMQ2.js} +2 -2
- package/dist/cdn/{FQDGFBRY.js → HXMEN564.js} +2 -2
- package/dist/cdn/{VOLPH3TZ.js → HYT7WWQL.js} +2 -2
- package/dist/cdn/{BABLK2FR.js → HZIODVWR.js} +2 -2
- package/dist/cdn/{6TNQR5ZZ.js → I2K4QP6G.js} +2 -2
- package/dist/cdn/{SP6JOJNB.js → I3W5HGYT.js} +2 -2
- package/dist/cdn/{ITRRLAGE.js → ICW3CQ5K.js} +2 -2
- package/dist/cdn/{UGRPKRXZ.js → IDBGIPXB.js} +1 -1
- package/dist/cdn/{LEO6R7M7.js → IGSK5BG4.js} +2 -2
- package/dist/cdn/{FZ5B72B6.js → INBZA4PD.js} +2 -2
- package/dist/cdn/{P77RI7MD.js → INGTJOFW.js} +2 -2
- package/dist/cdn/{QTYDBQQ4.js → IQHSSVKC.js} +2 -2
- package/dist/cdn/{FL7X4EW4.js → ISECMQZA.js} +2 -2
- package/dist/cdn/{2XGTWAXZ.js → IYILGYBJ.js} +2 -2
- package/dist/cdn/{CQ22Q6F6.js → IYZLWG7W.js} +2 -2
- package/dist/cdn/{ZBMOD4UQ.js → IZUBTNJH.js} +1 -1
- package/dist/cdn/{CFB2JIFI.js → J23SUAVE.js} +2 -2
- package/dist/cdn/{WZB7VHMS.js → J6UNPK46.js} +2 -2
- package/dist/cdn/{RSTE37Y6.js → J76MNH4M.js} +2 -2
- package/dist/cdn/{S7RGQP6Q.js → JAM34U3G.js} +1 -1
- package/dist/cdn/{BVCIQYS4.js → JBJSL4N4.js} +2 -2
- package/dist/cdn/{753GYI2V.js → JCLNCFM3.js} +2 -2
- package/dist/cdn/JIWLPRYN.js +4 -0
- package/dist/cdn/{T6DVJJA5.js → JM3ZPWGY.js} +2 -2
- package/dist/cdn/{WWZAAQL7.js → JPJYYNWV.js} +2 -2
- package/dist/cdn/{WSIZYEL6.js → JU42ZLID.js} +2 -2
- package/dist/cdn/{55C4OZSK.js → JUCP6VJN.js} +2 -2
- package/dist/cdn/{YIU4RUM7.js → KD7R6SE5.js} +2 -2
- package/dist/cdn/{P6LITD7G.js → KEBMEHQB.js} +2 -2
- package/dist/cdn/{MMVMR4CD.js → KIQ7MTLX.js} +2 -2
- package/dist/cdn/{Z6U7AKR4.js → KKHZBUFB.js} +2 -2
- package/dist/cdn/{KOVBSK5N.js → KKV4AQ4S.js} +2 -2
- package/dist/cdn/{XONQMW52.js → KPEP6OST.js} +2 -2
- package/dist/cdn/{INZ4E7JC.js → KUKTXMSX.js} +2 -2
- package/dist/cdn/{GUJQ72VR.js → KVGTI5QA.js} +2 -2
- package/dist/cdn/{QVGWI7BH.js → KX7NEVCY.js} +2 -2
- package/dist/cdn/{T3LKRCPT.js → L5VLMTR2.js} +2 -2
- package/dist/cdn/{LEGOR3KT.js → LBW4QNC4.js} +2 -2
- package/dist/cdn/{AAQ7TMV6.js → LEYZSHPB.js} +2 -2
- package/dist/cdn/{N4NSA6LQ.js → LMSKXNKA.js} +2 -2
- package/dist/cdn/{XPUM7UXM.js → LPI2REVF.js} +2 -2
- package/dist/cdn/{TLURR24J.js → LQ2HAAUQ.js} +2 -2
- package/dist/cdn/{U62E5D2W.js → LSY2W6B3.js} +2 -2
- package/dist/cdn/{UNDPQUM5.js → LXGML76O.js} +2 -2
- package/dist/cdn/{R6WAH5Y3.js → M5UQNDPQ.js} +2 -2
- package/dist/cdn/{3MJONNJ7.js → MARG7OKX.js} +2 -2
- package/dist/cdn/{UIVIH2JN.js → MAW34AAC.js} +2 -2
- package/dist/cdn/{NPJIXRI3.js → MBGN7PRL.js} +2 -2
- package/dist/cdn/{RP5O4R4Q.js → MCRN33XB.js} +2 -2
- package/dist/cdn/{LVK6HFBV.js → ME3AJWAA.js} +2 -2
- package/dist/cdn/{55FH2YE4.js → MGYKS4CA.js} +2 -2
- package/dist/cdn/{7G3F2NKE.js → MJHDVXB5.js} +2 -2
- package/dist/cdn/{NZ34CHFA.js → ML4IONJI.js} +2 -2
- package/dist/cdn/{CY4VLS3L.js → MM6KIAWC.js} +2 -2
- package/dist/cdn/{EDM4AY7G.js → MMYJSIWO.js} +1 -1
- package/dist/cdn/{JD2LCA3A.js → MNTW36LR.js} +2 -2
- package/dist/cdn/{OLORFY6S.js → MRKES3TY.js} +2 -2
- package/dist/cdn/{DVFLQMVJ.js → MVM4NLH6.js} +2 -2
- package/dist/cdn/{YRPKNK6P.js → N3HPXKNC.js} +1 -1
- package/dist/cdn/{UC76MY6A.js → N3UZMVOV.js} +2 -2
- package/dist/cdn/{7GF2QS2Z.js → N5O6ZEGZ.js} +2 -2
- package/dist/cdn/{F4GMI7UW.js → NEAWOVAT.js} +2 -2
- package/dist/cdn/{BGEHQBN5.js → NGSZCEKR.js} +1 -1
- package/dist/cdn/{JW4HSEDN.js → NMPXEPPL.js} +2 -2
- package/dist/cdn/{ULQGQTU5.js → NSCSVPLE.js} +2 -2
- package/dist/cdn/{RXHIXE4I.js → NTMHPTFP.js} +1 -1
- package/dist/cdn/{GYPMG4AG.js → NVTUQPZC.js} +1 -1
- package/dist/cdn/{4E7Q4S3L.js → O3J7UQKM.js} +3 -3
- package/dist/cdn/{LHPPTRV3.js → O5NQYW4S.js} +2 -2
- package/dist/cdn/{63XCFOCE.js → OF6E54NK.js} +2 -2
- package/dist/cdn/{KKOUGJZ3.js → OFIZBJGO.js} +2 -2
- package/dist/cdn/{7SY4BRZV.js → OISZDHT5.js} +2 -2
- package/dist/cdn/{EZ67V244.js → ORAWEOF6.js} +2 -2
- package/dist/cdn/{SPTLBRGM.js → OSBOGUD2.js} +1 -1
- package/dist/cdn/{STAZFWK4.js → OT5TS4TQ.js} +2 -2
- package/dist/cdn/{TXDOADWV.js → OY5THM4A.js} +2 -2
- package/dist/cdn/{WQWWVJ6Y.js → P27EQTXP.js} +1 -1
- package/dist/cdn/{LRMCH3HQ.js → PCNVSKMW.js} +2 -2
- package/dist/cdn/{GYCCV2BC.js → PCWDJAJI.js} +2 -2
- package/dist/cdn/{WMC7HFYJ.js → PCYKZD5L.js} +2 -2
- package/dist/cdn/{XMKDFJEI.js → PDK2DEEN.js} +2 -2
- package/dist/cdn/{3M43ZGL4.js → PEH22CAL.js} +2 -2
- package/dist/cdn/{D2WQUGXN.js → PEODTGHZ.js} +2 -2
- package/dist/cdn/{V4RD2TOQ.js → PHXMOTDV.js} +1 -1
- package/dist/cdn/{WO2OLP6R.js → PJG2WCDK.js} +2 -2
- package/dist/cdn/{MTPSVAYA.js → Q2KYLW44.js} +2 -2
- package/dist/cdn/{NBQOQX3B.js → Q5LB4FH4.js} +2 -2
- package/dist/cdn/{TPAJAUQ7.js → QHOEROKY.js} +2 -2
- package/dist/cdn/{QDMVTLGB.js → QLQ5MXCS.js} +2 -2
- package/dist/cdn/{4NFTXSFW.js → QP2GTGLR.js} +2 -2
- package/dist/cdn/{AUIDXQWK.js → QVZSFAEQ.js} +2 -2
- package/dist/cdn/{Z2FDJVKJ.js → QX44EA3W.js} +2 -2
- package/dist/cdn/{J6NX7SB6.js → QZ7ACKEY.js} +2 -2
- package/dist/cdn/{YPAK67G7.js → R2HQSEAY.js} +2 -2
- package/dist/cdn/{QZIHEYLI.js → R2PG52G4.js} +2 -2
- package/dist/cdn/{TXLD3HTX.js → R7NXQS2H.js} +1 -1
- package/dist/cdn/{T6TUYLFG.js → REJEFRE4.js} +2 -2
- package/dist/cdn/{YC34Y3D7.js → RIVJQEZV.js} +2 -2
- package/dist/cdn/{YHTJPECZ.js → RM6O54I7.js} +2 -2
- package/dist/cdn/{WCGAPOG7.js → RMMB2BCE.js} +2 -2
- package/dist/cdn/{6TMUW6FN.js → RPEKDGLF.js} +2 -2
- package/dist/cdn/{MTNYXAMF.js → RRDR2763.js} +2 -2
- package/dist/cdn/{GSOAXW2C.js → RWMTRFMU.js} +2 -2
- package/dist/cdn/{RMQ7DGV6.js → S3WVR6DZ.js} +2 -2
- package/dist/cdn/{A6TJ43SY.js → S4CH3KVO.js} +2 -2
- package/dist/cdn/{LEGWW7SW.js → SDHMDRBG.js} +2 -2
- package/dist/cdn/{C3CQPITQ.js → SE7FWOIT.js} +2 -2
- package/dist/cdn/{RYUXHMB6.js → SGWTQLXQ.js} +2 -2
- package/dist/cdn/{UBY64AYO.js → SIUTUIBK.js} +2 -2
- package/dist/cdn/{P6ZOYFLQ.js → SMYPLT36.js} +2 -2
- package/dist/cdn/{UKMX74FI.js → SNREOFIS.js} +2 -2
- package/dist/cdn/{NPILEPIB.js → SPI5UOFW.js} +2 -2
- package/dist/cdn/{2AMQDK5P.js → SSKFDLNA.js} +2 -2
- package/dist/cdn/{EBCZJVZD.js → SXJLK5RU.js} +2 -2
- package/dist/cdn/{VW7GR7XC.js → SXU5EP2Q.js} +2 -2
- package/dist/cdn/{LQ5QP2NN.js → SYDMVCSS.js} +2 -2
- package/dist/cdn/{PIJGR7YJ.js → SZ4ULADV.js} +2 -2
- package/dist/cdn/{TABFXZLH.js → TBYYM43L.js} +1 -1
- package/dist/cdn/{UW7TK7IN.js → TCX2HCL4.js} +2 -2
- package/dist/cdn/{QEGPKXH5.js → TDD3NYSA.js} +2 -2
- package/dist/cdn/{NFFANNF6.js → TDRPNFQG.js} +2 -2
- package/dist/cdn/TIIH4KX4.js +4 -0
- package/dist/cdn/{NCHZK4VU.js → TK2VN4M6.js} +2 -2
- package/dist/cdn/{D63R7E62.js → TSHP6LR6.js} +2 -2
- package/dist/cdn/{T3EZV3I7.js → TUZJGYK3.js} +2 -2
- package/dist/cdn/{DZJZLLFO.js → TWEAJRSR.js} +2 -2
- package/dist/cdn/{UCPBOOCL.js → TX4YE4H7.js} +2 -2
- package/dist/cdn/{VZSZYLGB.js → TXQ5AKTD.js} +2 -2
- package/dist/cdn/{5KZOOCNV.js → TYEXQ25P.js} +2 -2
- package/dist/cdn/{RUYHLRTB.js → U3JJMI52.js} +2 -2
- package/dist/cdn/{WSRLB25S.js → UEVH4ZIG.js} +1 -1
- package/dist/cdn/UGBEJX6A.js +4 -0
- package/dist/cdn/{GDRFM65R.js → UICHQ5XS.js} +2 -2
- package/dist/cdn/{WSQ4SDXE.js → UIRBSZJJ.js} +2 -2
- package/dist/cdn/{YIJ4PX2R.js → UJMBIDYA.js} +2 -2
- package/dist/cdn/{6T5TGQVX.js → UK7WAVOZ.js} +2 -2
- package/dist/cdn/{P4QXKHJD.js → UOA2YAXC.js} +1 -1
- package/dist/cdn/{65BFHCFZ.js → UOEISUZB.js} +1 -1
- package/dist/cdn/{UIRBREW2.js → UPWRM3QA.js} +2 -2
- package/dist/cdn/{TL3SGMXL.js → UQEGIZ4V.js} +2 -2
- package/dist/cdn/{AEMZJWR3.js → URRT3KMU.js} +2 -2
- package/dist/cdn/{V52WO4IY.js → UUDJYULL.js} +2 -2
- package/dist/cdn/{J4TGWZQP.js → UWUTEATX.js} +2 -2
- package/dist/cdn/{BW7HJGUE.js → UYNFGAMY.js} +2 -2
- package/dist/cdn/{4SHIHRI6.js → UYPERMZC.js} +1 -1
- package/dist/cdn/{C4W6ZPLF.js → UZNINYDJ.js} +2 -2
- package/dist/cdn/{5FOVVNQB.js → V7N4SGEA.js} +1 -1
- package/dist/cdn/VEVWVLSN.js +4 -0
- package/dist/cdn/{PTDMGHOW.js → VOTU75AB.js} +2 -2
- package/dist/cdn/{56APFWY2.js → VSRZDUZU.js} +1 -1
- package/dist/cdn/{47AI6GVS.js → VXJKSC6F.js} +2 -2
- package/dist/cdn/{72AX53JS.js → W2EHLCS7.js} +2 -2
- package/dist/cdn/{5IOUK6U7.js → WFIE3NVJ.js} +2 -2
- package/dist/cdn/{2CYGYVSW.js → WIXP6VK5.js} +2 -2
- package/dist/cdn/{OWJ64LTS.js → WJPPWAOI.js} +1 -1
- package/dist/cdn/{J2XAG6XE.js → WLTGE5IP.js} +2 -2
- package/dist/cdn/{RE6254B2.js → WTLEVLOM.js} +2 -2
- package/dist/cdn/{WEEGLWK2.js → WUKYRBFW.js} +2 -2
- package/dist/cdn/{MMJ6OWRV.js → X5W7YYAG.js} +1 -1
- package/dist/cdn/{YO34Q6VS.js → X7KJN7BB.js} +2 -2
- package/dist/cdn/{WKRDZB5Y.js → XBSJRLOR.js} +1 -1
- package/dist/cdn/{OZOV3BXJ.js → XLYSANTE.js} +2 -2
- package/dist/cdn/{WQBVFBYJ.js → XQF5WBLB.js} +2 -2
- package/dist/cdn/{AX3QFNZU.js → XRKZLEW4.js} +1 -1
- package/dist/cdn/{ANQYJYU3.js → XX32FBMH.js} +2 -2
- package/dist/cdn/{UCWFPZHR.js → XXYUKCG6.js} +2 -2
- package/dist/cdn/{2PFRKBKP.js → XYP4MM7Y.js} +2 -2
- package/dist/cdn/{ULJ3L776.js → Y2IKSIPY.js} +2 -2
- package/dist/cdn/{S45UXB6P.js → Y36ZRJKA.js} +2 -2
- package/dist/cdn/{2IH2SIFN.js → Y5VRLGRE.js} +1 -1
- package/dist/cdn/{5U3ANZSH.js → YIGNOL2J.js} +2 -2
- package/dist/cdn/{64UDM5WE.js → YL66GN2Y.js} +2 -2
- package/dist/cdn/{UD37ZTZQ.js → YP6HMNUN.js} +2 -2
- package/dist/cdn/{PBNKVK4U.js → YRUUAQCT.js} +2 -2
- package/dist/cdn/{6CS66UKI.js → Z7Q74DHT.js} +2 -2
- package/dist/cdn/{S7LHDN35.js → ZBLOJL6N.js} +2 -2
- package/dist/cdn/{WZMK4MMI.js → ZGDVZBA6.js} +2 -2
- package/dist/cdn/{JTIENAFY.js → ZHNSAXID.js} +2 -2
- package/dist/cdn/{JUXNODXX.js → ZMGI6JKK.js} +2 -2
- package/dist/cdn/assets/solution-deployed-card/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/solution-deployed-card/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/solution-deployed-card/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/solution-deployed-card/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/solution-deployed-card/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/solution-deployed-card/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/solution-deployed-card/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/solution-deployed-card/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/solution-deployed-card/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/solution-deployed-card/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/solution-deployed-card/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/solution-deployed-card/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/solution-deployed-card/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/solution-deployed-card/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/solution-deployed-card/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/solution-deployed-card/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/solution-deployed-card/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/solution-deployed-card/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/solution-deployed-card/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/solution-deployed-card/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/solution-deployed-card/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/solution-deployed-card/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/solution-deployed-card/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/solution-deployed-card/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/solution-deployed-card/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/solution-deployed-card/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/solution-deployed-card/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/solution-deployed-card/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/solution-deployed-card/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/solution-deployed-card/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/solution-deployed-card/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/solution-deployed-card/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/solution-deployed-card/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/solution-deployed-card/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/solution-deployed-card/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/solution-deployed-card/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/solution-deployed-card/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/solution-deployed-card/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/solution-deployed-card/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.ar.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.bg.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.bs.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.ca.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.cs.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.da.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.de.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.el.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.es.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.et.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.fi.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.fr.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.he.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.hr.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.hu.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.id.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.it.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.ja.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.ko.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.lt.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.lv.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.nl.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.no.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.pl.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.pt-BR.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.pt-PT.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.ro.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.ru.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.sk.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.sl.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.sr.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.sv.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.th.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.tr.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.uk.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.vi.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.zh-CN.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.zh-HK.json +1 -1
- package/dist/cdn/assets/solution-deploying-dialog/t9n/messages.zh-TW.json +1 -1
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/Auth.js +1 -1
- package/dist/chunks/appConfig.js +1 -1
- package/dist/chunks/cardFetchingUtils.js +1 -1
- package/dist/chunks/common.js +1 -1
- package/dist/chunks/deployAppContexts.js +1 -1
- package/dist/chunks/downloadUtils.js +1 -1
- package/dist/chunks/getItemIcon.js +1 -1
- package/dist/chunks/helpers.js +1 -1
- package/dist/chunks/index.js +1 -1
- package/dist/chunks/interfaces.js +1 -1
- package/dist/chunks/loadModules.js +1 -1
- package/dist/chunks/mapViewUtils.js +1 -1
- package/dist/chunks/pciUtils.js +1 -1
- package/dist/chunks/popupUtils.js +1 -1
- package/dist/chunks/prepareDataForSolutionDisplay.js +1 -1
- package/dist/chunks/privilegeUtils.js +1 -1
- package/dist/chunks/publicNotificationStore.js +1 -1
- package/dist/chunks/queryUtils.js +1 -1
- package/dist/chunks/runtime.js +1 -1
- package/dist/chunks/solution-store.js +1 -1
- package/dist/chunks/templates.js +1 -1
- package/dist/chunks/useT9n.js +1 -1
- package/dist/components/arcgis-solutions-assistant/customElement.js +1 -1
- package/dist/components/basemap-gallery/customElement.js +1 -1
- package/dist/components/buffer-tools/customElement.js +1 -1
- package/dist/components/card-manager/customElement.js +1 -1
- package/dist/components/consent-manager/customElement.js +1 -1
- package/dist/components/create-feature/customElement.js +1 -1
- package/dist/components/create-related-feature/customElement.js +1 -1
- package/dist/components/crowdsource-manager/customElement.js +1 -1
- package/dist/components/crowdsource-reporter/customElement.js +1 -1
- package/dist/components/deduct-calculator/customElement.js +1 -1
- package/dist/components/delete-button/customElement.js +1 -1
- package/dist/components/delete-dialog/customElement.js +1 -1
- package/dist/components/edit-card/customElement.js +1 -1
- package/dist/components/feature-details/customElement.js +1 -1
- package/dist/components/feature-list/customElement.js +1 -1
- package/dist/components/field-selection/customElement.js +1 -1
- package/dist/components/floor-filter/customElement.js +1 -1
- package/dist/components/info-card/customElement.js +1 -1
- package/dist/components/json-editor/customElement.js +1 -1
- package/dist/components/layer-list/customElement.js +1 -1
- package/dist/components/layer-table/customElement.js +1 -1
- package/dist/components/map-card/customElement.js +1 -1
- package/dist/components/map-draw-tools/customElement.js +1 -1
- package/dist/components/map-fullscreen/customElement.js +1 -1
- package/dist/components/map-layer-picker/customElement.js +1 -1
- package/dist/components/map-legend/customElement.js +1 -1
- package/dist/components/map-picker/customElement.js +1 -1
- package/dist/components/map-search/customElement.js +1 -1
- package/dist/components/map-select-tools/customElement.js +1 -1
- package/dist/components/map-tools/customElement.js +1 -1
- package/dist/components/pci-calculator/customElement.js +1 -1
- package/dist/components/pdf-download/customElement.js +1 -1
- package/dist/components/public-notification/customElement.js +1 -1
- package/dist/components/refine-selection/customElement.js +1 -1
- package/dist/components/selection-tool/customElement.js +1 -1
- package/dist/components/solution-article-card/customElement.js +1 -1
- package/dist/components/solution-configuration/customElement.js +1 -1
- package/dist/components/solution-configure-dialog/customElement.js +1 -1
- package/dist/components/solution-configure-titles/customElement.js +1 -1
- package/dist/components/solution-contents/customElement.js +1 -1
- package/dist/components/solution-delete-dialog/customElement.js +1 -1
- package/dist/components/solution-deploy-dialog/customElement.js +1 -1
- package/dist/components/solution-deployed-card/customElement.js +1 -1
- package/dist/components/solution-deploying-dialog/customElement.js +1 -1
- package/dist/components/solution-details-card/customElement.js +1 -1
- package/dist/components/solution-details-panel/customElement.js +1 -1
- package/dist/components/solution-item/customElement.js +1 -1
- package/dist/components/solution-item-accordion/customElement.js +1 -1
- package/dist/components/solution-item-details/customElement.js +1 -1
- package/dist/components/solution-item-diagram/customElement.js +1 -1
- package/dist/components/solution-item-icon/customElement.js +1 -1
- package/dist/components/solution-item-sharing/customElement.js +1 -1
- package/dist/components/solution-organization-variables/customElement.js +1 -1
- package/dist/components/solution-resource-item/customElement.js +1 -1
- package/dist/components/solution-snapshot-gallery/customElement.js +1 -1
- package/dist/components/solution-social-share/customElement.js +1 -1
- package/dist/components/solution-spatial-ref/customElement.js +1 -1
- package/dist/components/solution-template-data/customElement.js +1 -1
- package/dist/components/solution-variables/customElement.js +1 -1
- package/dist/components/solutions-all-panel/customElement.js +1 -1
- package/dist/components/solutions-all-shell/customElement.js +1 -1
- package/dist/components/solutions-article-panel/customElement.js +1 -1
- package/dist/components/solutions-articles/customElement.js +1 -1
- package/dist/components/solutions-articles-shell/customElement.js +1 -1
- package/dist/components/solutions-deployed-panel/customElement.js +1 -1
- package/dist/components/solutions-deployed-shell/customElement.js +6 -6
- package/dist/components/solutions-filter-panel/customElement.js +1 -1
- package/dist/components/spatial-ref/customElement.js +1 -1
- package/dist/components/store-manager/customElement.js +1 -1
- package/dist/docs/api.json +2 -2
- package/dist/docs/docs.json +2 -2
- package/dist/docs/web-types.json +1 -1
- package/dist/index.js +1 -1
- package/dist/loader.js +1 -1
- package/package.json +1 -1
- package/dist/cdn/6JRE2N3F.js +0 -4
- package/dist/cdn/D54CFOJO.js +0 -4
- package/dist/cdn/E2THKIQY.js +0 -4
- package/dist/cdn/F5Y3ZOZL.js +0 -4
- package/dist/cdn/MGAL6MZ5.js +0 -4
- package/dist/cdn/OJOO3PAW.js +0 -4
- package/dist/cdn/SKPY6EQZ.js +0 -4
- package/dist/cdn/WPCKEGGG.js +0 -4
- package/dist/cdn/YRWVZN3U.js +0 -18
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{a as G}from"./C4W6ZPLF.js";import{a as L}from"./FZ5B72B6.js";import{c as K,d as _,e as U}from"./Z2FDJVKJ.js";import"./56APFWY2.js";import{l as j,p as P}from"./QZIHEYLI.js";import"./T6DVJJA5.js";import"./TXLD3HTX.js";import"./WSQ4SDXE.js";import"./V4RD2TOQ.js";import{a as S}from"./UGRPKRXZ.js";import"./ZBMOD4UQ.js";import"./AUIDXQWK.js";import"./CQ22Q6F6.js";import"./BABLK2FR.js";import{w}from"./S7LHDN35.js";import"./YRPKNK6P.js";import"./EDM4AY7G.js";import"./WEEGLWK2.js";import"./P4QXKHJD.js";import"./SPN442VG.js";import{b as A}from"./SPTLBRGM.js";import{a as c,b as p}from"./373MVXFL.js";import"./R72XZLYM.js";function b(){return["orgId","description","id","tags","categories","timeZone","summary","notifyAttendees","allowRegistration","startDate","startTime","endDate","endTime","thumbnailUrl"].reduce((t,o)=>[...t,{entityKey:o,storeKey:o}],[{entityKey:"isAllDay",storeKey:"allDay"},{entityKey:"name",storeKey:"title"},{entityKey:"owner",storeKey:"creator.username"},{entityKey:"canEdit",storeKey:"permission.canEdit"},{entityKey:"canDelete",storeKey:"permission.canDelete"},{entityKey:"canChangeAccessOrg",storeKey:"permission.canSetAccessToOrg"},{entityKey:"canChangeAccessPrivate",storeKey:"permission.canSetAccessToPrivate"},{entityKey:"canChangeAccessPublic",storeKey:"permission.canSetAccessToPublic"},{entityKey:"canChangeStatusCancelled",storeKey:"permission.canSetStatusToCancelled"},{entityKey:"canChangeStatusRemoved",storeKey:"permission.canSetStatusToRemoved"},{entityKey:"readGroupIds",storeKey:"readGroups"},{entityKey:"editGroupIds",storeKey:"editGroups"},{entityKey:"inPersonRegistrationCount",storeKey:"registrationCount.inPerson"},{entityKey:"onlineRegistrationCount",storeKey:"registrationCount.virtual"}])}function k(){return"https://hubcdn.arcgis.com/opendata-ui/assets/ember-arcgis-opendata-components/assets/images/placeholders/event.png"}function g(e){let{token:t,authentication:o}=e;return o?o.getToken(o.portal):Promise.resolve(t)}async function v(e,t){let{url:o,method:a,data:n}=e,{mode:r,cache:i,credentials:d}=t,{headers:m,params:E}=de(e,t),s=`${le(t.hubApiUrl)}${o}?${new URLSearchParams(E)}`,T={headers:m,method:a,cache:i,credentials:d,mode:r};n&&(T.body=JSON.stringify(n));let y=await fetch(s,T),{statusText:R,status:re}=y;if(y.ok)return y.json();let ce=await y.json();throw new x(R,s,re,JSON.stringify(ce.message))}function le(e="https://hub.arcgis.com"){return e.replace(/\/$/,"")}function de(e,t){let o=new Headers(Object.assign(Object.assign({},e.headers),t.headers));t.token&&o.set("Authorization",t.token);let a=Object.assign(Object.assign({},e.params),t.params);return{headers:o,params:a}}var x=class extends Error{constructor(t,o,a,n){super(t),this.status=a,this.url=o,this.error=n}};var M;(function(e){e.createdAt="createdAt",e.updatedAt="updatedAt",e.firstName="firstName",e.lastName="lastName",e.username="username"})(M||(M={}));var H;(function(e){e.asc="asc",e.desc="desc"})(H||(H={}));var B;(function(e){e.title="title",e.startDateTime="startDateTime",e.createdAt="createdAt",e.updatedAt="updatedAt"})(B||(B={}));var V;(function(e){e.associations="associations",e.creator="creator",e.location="location",e.onlineMeeting="onlineMeeting",e.registrations="registrations"})(V||(V={}));var $;(function(e){e.csv="csv",e.json="json"})($||($={}));var Z;(function(e){e.PENDING="PENDING",e.ACCEPTED="ACCEPTED",e.DECLINED="DECLINED",e.BLOCKED="BLOCKED"})(Z||(Z={}));var F;(function(e){e.OWNER="OWNER",e.ORGANIZER="ORGANIZER",e.ATTENDEE="ATTENDEE"})(F||(F={}));var u;(function(e){e.PLANNED="PLANNED",e.CANCELED="CANCELED",e.REMOVED="REMOVED"})(u||(u={}));var q;(function(e){e.none="none",e.custom="custom",e.org="org",e.item="item"})(q||(q={}));var l;(function(e){e.VIRTUAL="VIRTUAL",e.IN_PERSON="IN_PERSON"})(l||(l={}));var W;(function(e){e.Hub_Site_Application="Hub Site Application",e.Hub_Initiative="Hub Initiative",e.Hub_Project="Hub Project"})(W||(W={}));var f;(function(e){e.PRIVATE="PRIVATE",e.ORG="ORG",e.PUBLIC="PUBLIC"})(f||(f={}));var J=(e,t)=>v({url:"/api/events/v1/events",method:"POST",headers:{"Content-Type":"application/json"},data:e},t);var z=(e,t,o)=>v({url:`/api/events/v1/events/${e}`,method:"PATCH",headers:{"Content-Type":"application/json"},data:t},o),Q=(e,t)=>v({url:`/api/events/v1/events/${e}`,method:"DELETE"},t),X=(e,t)=>v({url:"/api/events/v1/registrations",method:"POST",headers:{"Content-Type":"application/json"},data:e},t);var Y=(e,t)=>v({url:`/api/events/v1/registrations/${e}`,method:"DELETE"},t);async function ee(e){return e.token=await g(e),J(e.data,e)}async function te(e){return e.token=await g(e),z(e.eventId,e.data,e)}async function ne(e){return e.token=await g(e),Q(e.eventId,e)}function C(e){return[j(e.title),e.id].join("-").split("-").filter(Boolean).join("-")}function ae(e){var t;let o=P("event",C(e));return{self:o,siteRelative:o,siteRelativeEntityType:P("event"),workspaceRelative:L("Event",e.id),thumbnail:(t=e.thumbnailUrl)!==null&&t!==void 0?t:k()}}function ie(e){return e.location?{type:e.location.type,spatialReference:e.location.spatialReference,extent:e.location.extent,geometries:e.location.geometries,name:e.location.placeName}:{type:"none"}}async function se(e){return e.token=await g(e),X(e.data,e)}async function oe(e){return e.token=await g(e),Y(e.registrationId,e)}function I(){let e=A();return Object.assign(Object.assign({access:"private",allowRegistration:!0,attendanceType:c.InPerson,categories:[],inPersonCapacity:null,inPersonCapacityType:p.Unlimited,isAllDay:!1,isCanceled:!1,isDiscussable:!0,isPlanned:!0,isRemoved:!1,name:"",notifyAttendees:!0,onlineCapacity:null,onlineCapacityType:p.Unlimited,onlineDetails:null,onlineUrl:null,referencedContentIds:[],referencedContentIdsByType:[],schemaVersion:1,tags:[],readGroupIds:[],editGroupIds:[]},e),{view:{heroActions:[],showMap:!1},location:{type:"none"},catalogs:[]})}function N(){let{startDateTime:e,endDateTime:t}=A();return{access:f.PRIVATE,allDay:!1,allowRegistration:!0,associations:[],attendanceType:[l.IN_PERSON],categories:[],inPersonCapacity:null,editGroups:[],endDateTime:t.toISOString(),notifyAttendees:!0,readGroups:[],startDateTime:e.toISOString(),status:u.PLANNED,tags:[],title:"",location:null}}var h=class extends K{storeToEntity(t,o){var a,n,r,i,d,m,E,D;let s=U(t,o,this.mappings);s.type="Event";let T=t.access.toLowerCase();return T==="private"&&(t.readGroups.length>0||t.editGroups.length>0)?s.access="shared":s.access=T,s.isCanceled=t.status===u.CANCELED,s.isPlanned=t.status===u.PLANNED,s.isRemoved=t.status===u.REMOVED,t.attendanceType.includes(l.IN_PERSON)&&t.attendanceType.includes(l.VIRTUAL)?s.attendanceType=c.Both:t.attendanceType.includes(l.IN_PERSON)?s.attendanceType=c.InPerson:s.attendanceType=c.Online,s.onlineCapacity=(n=(a=t.onlineMeeting)===null||a===void 0?void 0:a.capacity)!==null&&n!==void 0?n:null,s.onlineCapacityType=!((r=t.onlineMeeting)===null||r===void 0)&&r.capacity?p.Fixed:p.Unlimited,s.inPersonCapacity=(i=t.inPersonCapacity)!==null&&i!==void 0?i:null,s.inPersonCapacityType=t.inPersonCapacity?p.Fixed:p.Unlimited,s.onlineDetails=(m=(d=t.onlineMeeting)===null||d===void 0?void 0:d.details)!==null&&m!==void 0?m:null,s.onlineUrl=(D=(E=t.onlineMeeting)===null||E===void 0?void 0:E.url)!==null&&D!==void 0?D:null,s.canChangeAccess=[t.permission.canSetAccessToPublic,t.permission.canSetAccessToOrg,t.permission.canSetAccessToPrivate].every(Boolean),s.canChangeStatus=[t.permission.canSetStatusToCancelled,t.permission.canSetStatusToRemoved].some(Boolean),s.referencedContentIds=t.associations.map(({entityId:y})=>y),s.referencedContentIdsByType=t.associations.map(({entityId:y,entityType:R})=>({entityId:y,entityType:R})),s.createdDate=new Date(t.createdAt),s.startDateTime=new Date(t.startDateTime),s.endDateTime=new Date(t.endDateTime),s.isPast=s.endDateTime<new Date,s.createdDateSource="createdAt",s.updatedDate=new Date(t.updatedAt),s.updatedDateSource="updatedAt",s.catalog=G(s.catalog||{}),s.links=ae(t),s.slug=C(t),s.view={showMap:!!t.location},s.location=ie(t),s}entityToStore(t,o){let a=S(t),n=_(a,o,this.mappings),r=a.access;return r==="shared"?n.access=f.PRIVATE:n.access=r.toUpperCase(),a.isRemoved?n.status=u.REMOVED:a.isCanceled?n.status=u.CANCELED:n.status=u.PLANNED,a.attendanceType===c.Both?n.attendanceType=[l.IN_PERSON,l.VIRTUAL]:a.attendanceType===c.InPerson?n.attendanceType=[l.IN_PERSON]:n.attendanceType=[l.VIRTUAL],[c.Online,c.Both].includes(a.attendanceType)&&(n.onlineMeeting={details:a.onlineDetails,capacity:a.onlineCapacityType===p.Fixed?a.onlineCapacity:null,url:a.onlineUrl}),[c.InPerson,c.Both].includes(a.attendanceType)?n.inPersonCapacity=a.inPersonCapacityType===p.Fixed?a.inPersonCapacity:null:n.inPersonCapacity=null,a.isAllDay&&(a.startTime="00:00:00",a.endTime="23:59:59"),n.location=a.location&&a.location.type!=="none"?{type:a.location.type,spatialReference:a.location.spatialReference,extent:a.location.extent,geometries:a.location.geometries,placeName:a.location.name}:null,n}};async function O(e,t,o){let a=e.filter(({entityId:r})=>t.includes(r)),n=t.filter(r=>!a.find(({entityId:i})=>i===r));if(n.length){let{results:r}=await w({q:n.map(d=>`id:${d}`).join(" OR "),num:n.length,authentication:o.authentication}),i=r.map(({id:d,type:m})=>({entityId:d,entityType:m}));a.push(...i)}return a}async function at(e,t){let o=Object.assign(Object.assign({},I()),e);o.endDate=o.startDate;let a=new h(b()),n=a.entityToStore(o,N()),r=await O(e.referencedContentIdsByType,e.referencedContentIds,t),i={access:n.access,allDay:n.allDay,allowRegistration:n.allowRegistration,associations:r,attendanceType:n.attendanceType,categories:n.categories,description:n.description,editGroups:n.editGroups,endDate:n.endDate,endTime:n.endTime,inPersonCapacity:n.inPersonCapacity,notifyAttendees:n.notifyAttendees,onlineMeeting:n.onlineMeeting,readGroups:n.readGroups,startDate:n.startDate,startTime:n.startTime,summary:n.summary,tags:n.tags,timeZone:n.timeZone,title:n.title,location:n.location};return n=await ee(Object.assign({data:i},t)),a.storeToEntity(n,{})}async function it(e,t){var o,a;let n=Object.assign(Object.assign({},I()),e),r=new h(b()),i=r.entityToStore(n,N()),d=await O(e.referencedContentIdsByType,e.referencedContentIds,t),m={access:i.access,allDay:i.allDay,allowRegistration:i.allowRegistration,associations:d,attendanceType:i.attendanceType,categories:i.categories,description:((o=i.description)===null||o===void 0?void 0:o.trim())||null,editGroups:i.editGroups,endDate:i.endDate,endTime:i.endTime,inPersonCapacity:i.inPersonCapacity,notifyAttendees:i.notifyAttendees,onlineMeeting:i.onlineMeeting,readGroups:i.readGroups,startDate:i.startDate,startTime:i.startTime,status:i.status,summary:((a=i.summary)===null||a===void 0?void 0:a.trim())||null,tags:i.tags,thumbnailUrl:i.thumbnailUrl||null,timeZone:i.timeZone,title:i.title,location:i.location};return i=await te(Object.assign({eventId:i.id,data:m},t)),r.storeToEntity(i,{})}async function st(e,t){await ne(Object.assign({eventId:e},t))}function ot(e,t){return se(Object.assign({data:e},t))}async function rt(e,t){await oe(Object.assign({registrationId:e},t))}export{at as createHubEvent,ot as createHubEventRegistration,st as deleteHubEvent,rt as deleteHubEventRegistration,it as updateHubEvent};
|
3
|
+
v1.1.0-next.20250818 */
|
4
|
+
import{a as G}from"./UZNINYDJ.js";import{a as L}from"./INBZA4PD.js";import{c as K,d as _,e as U}from"./QX44EA3W.js";import"./VSRZDUZU.js";import{l as j,p as P}from"./R2PG52G4.js";import"./JM3ZPWGY.js";import"./R7NXQS2H.js";import"./UIRBSZJJ.js";import"./PHXMOTDV.js";import{a as S}from"./IDBGIPXB.js";import"./IZUBTNJH.js";import"./QVZSFAEQ.js";import"./IYZLWG7W.js";import"./HZIODVWR.js";import{w}from"./ZBLOJL6N.js";import"./N3HPXKNC.js";import"./MMYJSIWO.js";import"./WUKYRBFW.js";import"./UOA2YAXC.js";import"./GOQGQPLA.js";import{b as A}from"./OSBOGUD2.js";import{a as c,b as p}from"./GV4WSWWJ.js";import"./333HWSMJ.js";function b(){return["orgId","description","id","tags","categories","timeZone","summary","notifyAttendees","allowRegistration","startDate","startTime","endDate","endTime","thumbnailUrl"].reduce((t,o)=>[...t,{entityKey:o,storeKey:o}],[{entityKey:"isAllDay",storeKey:"allDay"},{entityKey:"name",storeKey:"title"},{entityKey:"owner",storeKey:"creator.username"},{entityKey:"canEdit",storeKey:"permission.canEdit"},{entityKey:"canDelete",storeKey:"permission.canDelete"},{entityKey:"canChangeAccessOrg",storeKey:"permission.canSetAccessToOrg"},{entityKey:"canChangeAccessPrivate",storeKey:"permission.canSetAccessToPrivate"},{entityKey:"canChangeAccessPublic",storeKey:"permission.canSetAccessToPublic"},{entityKey:"canChangeStatusCancelled",storeKey:"permission.canSetStatusToCancelled"},{entityKey:"canChangeStatusRemoved",storeKey:"permission.canSetStatusToRemoved"},{entityKey:"readGroupIds",storeKey:"readGroups"},{entityKey:"editGroupIds",storeKey:"editGroups"},{entityKey:"inPersonRegistrationCount",storeKey:"registrationCount.inPerson"},{entityKey:"onlineRegistrationCount",storeKey:"registrationCount.virtual"}])}function k(){return"https://hubcdn.arcgis.com/opendata-ui/assets/ember-arcgis-opendata-components/assets/images/placeholders/event.png"}function g(e){let{token:t,authentication:o}=e;return o?o.getToken(o.portal):Promise.resolve(t)}async function v(e,t){let{url:o,method:a,data:n}=e,{mode:r,cache:i,credentials:d}=t,{headers:m,params:E}=de(e,t),s=`${le(t.hubApiUrl)}${o}?${new URLSearchParams(E)}`,T={headers:m,method:a,cache:i,credentials:d,mode:r};n&&(T.body=JSON.stringify(n));let y=await fetch(s,T),{statusText:R,status:re}=y;if(y.ok)return y.json();let ce=await y.json();throw new x(R,s,re,JSON.stringify(ce.message))}function le(e="https://hub.arcgis.com"){return e.replace(/\/$/,"")}function de(e,t){let o=new Headers(Object.assign(Object.assign({},e.headers),t.headers));t.token&&o.set("Authorization",t.token);let a=Object.assign(Object.assign({},e.params),t.params);return{headers:o,params:a}}var x=class extends Error{constructor(t,o,a,n){super(t),this.status=a,this.url=o,this.error=n}};var M;(function(e){e.createdAt="createdAt",e.updatedAt="updatedAt",e.firstName="firstName",e.lastName="lastName",e.username="username"})(M||(M={}));var H;(function(e){e.asc="asc",e.desc="desc"})(H||(H={}));var B;(function(e){e.title="title",e.startDateTime="startDateTime",e.createdAt="createdAt",e.updatedAt="updatedAt"})(B||(B={}));var V;(function(e){e.associations="associations",e.creator="creator",e.location="location",e.onlineMeeting="onlineMeeting",e.registrations="registrations"})(V||(V={}));var $;(function(e){e.csv="csv",e.json="json"})($||($={}));var Z;(function(e){e.PENDING="PENDING",e.ACCEPTED="ACCEPTED",e.DECLINED="DECLINED",e.BLOCKED="BLOCKED"})(Z||(Z={}));var F;(function(e){e.OWNER="OWNER",e.ORGANIZER="ORGANIZER",e.ATTENDEE="ATTENDEE"})(F||(F={}));var u;(function(e){e.PLANNED="PLANNED",e.CANCELED="CANCELED",e.REMOVED="REMOVED"})(u||(u={}));var q;(function(e){e.none="none",e.custom="custom",e.org="org",e.item="item"})(q||(q={}));var l;(function(e){e.VIRTUAL="VIRTUAL",e.IN_PERSON="IN_PERSON"})(l||(l={}));var W;(function(e){e.Hub_Site_Application="Hub Site Application",e.Hub_Initiative="Hub Initiative",e.Hub_Project="Hub Project"})(W||(W={}));var f;(function(e){e.PRIVATE="PRIVATE",e.ORG="ORG",e.PUBLIC="PUBLIC"})(f||(f={}));var J=(e,t)=>v({url:"/api/events/v1/events",method:"POST",headers:{"Content-Type":"application/json"},data:e},t);var z=(e,t,o)=>v({url:`/api/events/v1/events/${e}`,method:"PATCH",headers:{"Content-Type":"application/json"},data:t},o),Q=(e,t)=>v({url:`/api/events/v1/events/${e}`,method:"DELETE"},t),X=(e,t)=>v({url:"/api/events/v1/registrations",method:"POST",headers:{"Content-Type":"application/json"},data:e},t);var Y=(e,t)=>v({url:`/api/events/v1/registrations/${e}`,method:"DELETE"},t);async function ee(e){return e.token=await g(e),J(e.data,e)}async function te(e){return e.token=await g(e),z(e.eventId,e.data,e)}async function ne(e){return e.token=await g(e),Q(e.eventId,e)}function C(e){return[j(e.title),e.id].join("-").split("-").filter(Boolean).join("-")}function ae(e){var t;let o=P("event",C(e));return{self:o,siteRelative:o,siteRelativeEntityType:P("event"),workspaceRelative:L("Event",e.id),thumbnail:(t=e.thumbnailUrl)!==null&&t!==void 0?t:k()}}function ie(e){return e.location?{type:e.location.type,spatialReference:e.location.spatialReference,extent:e.location.extent,geometries:e.location.geometries,name:e.location.placeName}:{type:"none"}}async function se(e){return e.token=await g(e),X(e.data,e)}async function oe(e){return e.token=await g(e),Y(e.registrationId,e)}function I(){let e=A();return Object.assign(Object.assign({access:"private",allowRegistration:!0,attendanceType:c.InPerson,categories:[],inPersonCapacity:null,inPersonCapacityType:p.Unlimited,isAllDay:!1,isCanceled:!1,isDiscussable:!0,isPlanned:!0,isRemoved:!1,name:"",notifyAttendees:!0,onlineCapacity:null,onlineCapacityType:p.Unlimited,onlineDetails:null,onlineUrl:null,referencedContentIds:[],referencedContentIdsByType:[],schemaVersion:1,tags:[],readGroupIds:[],editGroupIds:[]},e),{view:{heroActions:[],showMap:!1},location:{type:"none"},catalogs:[]})}function N(){let{startDateTime:e,endDateTime:t}=A();return{access:f.PRIVATE,allDay:!1,allowRegistration:!0,associations:[],attendanceType:[l.IN_PERSON],categories:[],inPersonCapacity:null,editGroups:[],endDateTime:t.toISOString(),notifyAttendees:!0,readGroups:[],startDateTime:e.toISOString(),status:u.PLANNED,tags:[],title:"",location:null}}var h=class extends K{storeToEntity(t,o){var a,n,r,i,d,m,E,D;let s=U(t,o,this.mappings);s.type="Event";let T=t.access.toLowerCase();return T==="private"&&(t.readGroups.length>0||t.editGroups.length>0)?s.access="shared":s.access=T,s.isCanceled=t.status===u.CANCELED,s.isPlanned=t.status===u.PLANNED,s.isRemoved=t.status===u.REMOVED,t.attendanceType.includes(l.IN_PERSON)&&t.attendanceType.includes(l.VIRTUAL)?s.attendanceType=c.Both:t.attendanceType.includes(l.IN_PERSON)?s.attendanceType=c.InPerson:s.attendanceType=c.Online,s.onlineCapacity=(n=(a=t.onlineMeeting)===null||a===void 0?void 0:a.capacity)!==null&&n!==void 0?n:null,s.onlineCapacityType=!((r=t.onlineMeeting)===null||r===void 0)&&r.capacity?p.Fixed:p.Unlimited,s.inPersonCapacity=(i=t.inPersonCapacity)!==null&&i!==void 0?i:null,s.inPersonCapacityType=t.inPersonCapacity?p.Fixed:p.Unlimited,s.onlineDetails=(m=(d=t.onlineMeeting)===null||d===void 0?void 0:d.details)!==null&&m!==void 0?m:null,s.onlineUrl=(D=(E=t.onlineMeeting)===null||E===void 0?void 0:E.url)!==null&&D!==void 0?D:null,s.canChangeAccess=[t.permission.canSetAccessToPublic,t.permission.canSetAccessToOrg,t.permission.canSetAccessToPrivate].every(Boolean),s.canChangeStatus=[t.permission.canSetStatusToCancelled,t.permission.canSetStatusToRemoved].some(Boolean),s.referencedContentIds=t.associations.map(({entityId:y})=>y),s.referencedContentIdsByType=t.associations.map(({entityId:y,entityType:R})=>({entityId:y,entityType:R})),s.createdDate=new Date(t.createdAt),s.startDateTime=new Date(t.startDateTime),s.endDateTime=new Date(t.endDateTime),s.isPast=s.endDateTime<new Date,s.createdDateSource="createdAt",s.updatedDate=new Date(t.updatedAt),s.updatedDateSource="updatedAt",s.catalog=G(s.catalog||{}),s.links=ae(t),s.slug=C(t),s.view={showMap:!!t.location},s.location=ie(t),s}entityToStore(t,o){let a=S(t),n=_(a,o,this.mappings),r=a.access;return r==="shared"?n.access=f.PRIVATE:n.access=r.toUpperCase(),a.isRemoved?n.status=u.REMOVED:a.isCanceled?n.status=u.CANCELED:n.status=u.PLANNED,a.attendanceType===c.Both?n.attendanceType=[l.IN_PERSON,l.VIRTUAL]:a.attendanceType===c.InPerson?n.attendanceType=[l.IN_PERSON]:n.attendanceType=[l.VIRTUAL],[c.Online,c.Both].includes(a.attendanceType)&&(n.onlineMeeting={details:a.onlineDetails,capacity:a.onlineCapacityType===p.Fixed?a.onlineCapacity:null,url:a.onlineUrl}),[c.InPerson,c.Both].includes(a.attendanceType)?n.inPersonCapacity=a.inPersonCapacityType===p.Fixed?a.inPersonCapacity:null:n.inPersonCapacity=null,a.isAllDay&&(a.startTime="00:00:00",a.endTime="23:59:59"),n.location=a.location&&a.location.type!=="none"?{type:a.location.type,spatialReference:a.location.spatialReference,extent:a.location.extent,geometries:a.location.geometries,placeName:a.location.name}:null,n}};async function O(e,t,o){let a=e.filter(({entityId:r})=>t.includes(r)),n=t.filter(r=>!a.find(({entityId:i})=>i===r));if(n.length){let{results:r}=await w({q:n.map(d=>`id:${d}`).join(" OR "),num:n.length,authentication:o.authentication}),i=r.map(({id:d,type:m})=>({entityId:d,entityType:m}));a.push(...i)}return a}async function at(e,t){let o=Object.assign(Object.assign({},I()),e);o.endDate=o.startDate;let a=new h(b()),n=a.entityToStore(o,N()),r=await O(e.referencedContentIdsByType,e.referencedContentIds,t),i={access:n.access,allDay:n.allDay,allowRegistration:n.allowRegistration,associations:r,attendanceType:n.attendanceType,categories:n.categories,description:n.description,editGroups:n.editGroups,endDate:n.endDate,endTime:n.endTime,inPersonCapacity:n.inPersonCapacity,notifyAttendees:n.notifyAttendees,onlineMeeting:n.onlineMeeting,readGroups:n.readGroups,startDate:n.startDate,startTime:n.startTime,summary:n.summary,tags:n.tags,timeZone:n.timeZone,title:n.title,location:n.location};return n=await ee(Object.assign({data:i},t)),a.storeToEntity(n,{})}async function it(e,t){var o,a;let n=Object.assign(Object.assign({},I()),e),r=new h(b()),i=r.entityToStore(n,N()),d=await O(e.referencedContentIdsByType,e.referencedContentIds,t),m={access:i.access,allDay:i.allDay,allowRegistration:i.allowRegistration,associations:d,attendanceType:i.attendanceType,categories:i.categories,description:((o=i.description)===null||o===void 0?void 0:o.trim())||null,editGroups:i.editGroups,endDate:i.endDate,endTime:i.endTime,inPersonCapacity:i.inPersonCapacity,notifyAttendees:i.notifyAttendees,onlineMeeting:i.onlineMeeting,readGroups:i.readGroups,startDate:i.startDate,startTime:i.startTime,status:i.status,summary:((a=i.summary)===null||a===void 0?void 0:a.trim())||null,tags:i.tags,thumbnailUrl:i.thumbnailUrl||null,timeZone:i.timeZone,title:i.title,location:i.location};return i=await te(Object.assign({eventId:i.id,data:m},t)),r.storeToEntity(i,{})}async function st(e,t){await ne(Object.assign({eventId:e},t))}function ot(e,t){return se(Object.assign({data:e},t))}async function rt(e,t){await oe(Object.assign({registrationId:e},t))}export{at as createHubEvent,ot as createHubEventRegistration,st as deleteHubEvent,rt as deleteHubEventRegistration,it as updateHubEvent};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{a as S}from"./
|
3
|
+
v1.1.0-next.20250818 */
|
4
|
+
import{a as S}from"./OFIZBJGO.js";import"./235XLQAM.js";import"./3SPNSK2M.js";import"./JAM34U3G.js";import"./UZNINYDJ.js";import"./IYILGYBJ.js";import"./R2PG52G4.js";import"./JM3ZPWGY.js";import"./UEVH4ZIG.js";import"./UYPERMZC.js";import"./UIRBSZJJ.js";import"./PHXMOTDV.js";import"./IDBGIPXB.js";import"./IZUBTNJH.js";import"./IYZLWG7W.js";import"./HZIODVWR.js";import"./ZBLOJL6N.js";import"./N3HPXKNC.js";import"./MMYJSIWO.js";import"./WUKYRBFW.js";import"./UOA2YAXC.js";import"./GOQGQPLA.js";import"./65UAYDBN.js";import"./UOEISUZB.js";import{c as d,d as g,g as v}from"./SSKFDLNA.js";import"./XBSJRLOR.js";import"./67EYEWRI.js";import{b}from"./NGSZCEKR.js";import{a as F}from"./HIG6WAET.js";import"./KUKTXMSX.js";import"./TWEAJRSR.js";import{b as L}from"./NMPXEPPL.js";import{A as x,B as I,h as m,i as r,k as y,n as p,q as _,w as u,x as c,y as w}from"./FPZJX6ZR.js";import"./333HWSMJ.js";var $=m`@layer{/** @license
|
5
5
|
* Copyright 2025 Esri
|
6
6
|
*
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import e from"./
|
3
|
+
v1.1.0-next.20250818 */
|
4
|
+
import e from"./KKHZBUFB.js";import c from"./COZZW6V3.js";import"./SDHMDRBG.js";import b from"./MRKES3TY.js";import"./CCUURDN3.js";import{b as l}from"./KX7NEVCY.js";import"./TWEAJRSR.js";import{A as o,B as d,h as s,i as a,w as i,x as n,y as r}from"./FPZJX6ZR.js";import"./333HWSMJ.js";export default $arcgis.t(([,,{t:p}])=>{var c=s`:host{display:block}:host .esri-legend__service{margin:0;padding:0}:host .hide{display:none}`,e={service:"esri-legend__service",groupLayer:"esri-legend__group-layer",groupContent:"esri-legend__group-content"},t=class extends r{constructor(){super(),this.layerCaption=i(),this.expanded=!0,this.isChild=!1,this.listenOn(window,"layerCaptionElementExpandUpdated",this.layerCaptionElementExpandUpdatedEmitted)}static{this.properties={expanded:16,legendvm:0,featureCount:5,activeLayerInfo:0,isChild:5}}static{this.styles=c}load(){new MutationObserver(()=>{this.requestUpdate()}).observe(this.el,{attributes:!0})}layerCaptionElementExpandUpdatedEmitted(){this.expanded=!!this.layerCaption.value?.expanded}render(){return a`<div style=${d({borderLeft:"1px solid var(--calcite-color-border-3)"})} class=${`${e.service} ${e.groupLayer}`}><instant-apps-interactive-legend-layer-element-caption class=${o(p(this.el))} .legendvm=${this.legendvm} .featureCount=${this.featureCount} .activeLayerInfo=${this.activeLayerInfo} .isChild=${this.isChild} ${n(this.layerCaption)}></instant-apps-interactive-legend-layer-element-caption><div class=${`${e.groupContent} ${this.expanded?"show":"hide"}`}><slot name=content></slot></div></div>`}};l("instant-apps-interactive-legend-group-legend-element",t);return t},b,c,e)
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
3
|
+
v1.1.0-next.20250818 */
|
4
4
|
var c=["Application","City Engine Web Scene","CityEngine Web Scene","Dashboard","Insights Page","Insights Workbook","Operation View","Web Mapping Application","StoryMap","Web Experience","Urban Model"],s=["CSV Collection","CSV","Feature Collection Template","Feature Collection","Feature Layer","Feature Service","File Geodatabase","GeoJSON","GeoJson","KML Collection","KML","Microsoft Excel","Raster Layer","Shapefile","Stream Service","Table"],l=["CAD Drawing","Document Link","Hub Page","Site Page","Image","iWork Keynote","iWork Numbers","iWork Pages","Microsoft Powerpoint","Microsoft Visio","Microsoft Word","Notebook","PDF","Pro Map","Report Template"],p=["Hub Event"],g=["Form","Quick Capture Project"],d=["Hub Initiative"],u=["Solution"],S=["Hub Initiative Template"],k=["Image Collection","Image Service","Map Service Layer","Map Service","Scene Service","Scene Layer","Vector Tile Service","Web Map Service","Web Map Tile Service","Web Map","Web Scene","WFS","WMS","WMTS"],b=["360 VR Experience","3DTiles Package","3DTiles Service","API Key","Activity","Addin Package","Administrative Report","AllSource Project","Analysis Model","Apache Parquet","App Bundle","AppBuilder Extension","AppBuilder Widget Package","Application Configuration","Application SDK","ArcGIS Pro Add In","ArcGIS Pro Configuration","ArcPad Package","Arcade Module","Basemap Package","Big Data Analytic","Big Data File Share","Code Attachment","Code Sample","Color Set","Compact Tile Package","Content Category Set","Data Package Collection","Data Pipeline","Data Store","Deep Learning Package","Deep Learning Studio Project","Desktop Add In","Desktop Application","Desktop Application Template","Desktop Style","Earth Configuration","Esri Classification Schema","Esri Classifier Definition","Excalibur Imagery Project","Experience Builder Widget","Experience Builder Widget Package","Explorer Add In","Explorer Layer","Explorer Map","Export Package","Featured Items","Feed","GML","GeoBIM Application","GeoBIM Project","GeoPackage","Geocoding Service","Geodata Service","Geoenrichment Service","Geometry Service","Geoprocessing Package","Geoprocessing Sample","Geoprocessing Service","Globe Document","Globe Service","Group Layer","IPS Configuration","Indoors Map Configuration","Insights Data Engineering Model","Insights Data Engineering Workbook","Insights Model","Insights Script","Insights Theme","Insights Workbook Package","Kernel Gateway Connection","Knowledge Graph","Knowledge Graph Layer","Knowledge Graph Web Investigation","Knowledge Studio Project","Layer","Layer File","Layer Package","Layer Template","Layout","Legend","Living Atlas Export Package","Locator Package","Map Area","Map Document","Map Package","Map Service Definition","Map Template","Media Layer","Mission","Mission Report","Mission Template","Mobile Application","Mobile Basemap Package","Mobile Map Package","Mobile Scene Package","Native Application","Native Application Installer","Native Application Template","Network Analysis Service","Notebook Code Snippet Library","Notebook Code Snippets","OGCFeatureServer","Operations Dashboard Add In","Operations Dashboard Extension","Oriented Imagery Catalog","Ortho Mapping Project","Ortho Mapping Template","Pro Presentation","Pro Project","Pro Report","Pro Report Template","Project Package","Project Template","Published Map","QuickCapture Project","Raster Function Template","Real Time Analytic","Reality Mapping Project","Reality Studio Project","Relational Database Connection","Replication Package","Rule Package","SMX Item","SMX Map","SMX Theme","SQLite Geodatabase","Scene Document","Scene Package","Scene Package Part","Server","Service Definition","Statistical Data Collection","StoryMap Theme","Style","Suitability Model","Survey123 Add In","Symbol Service","Symbol Set","Task File","Tile Package","Urban Project","User License Type Extension","Vector Tile Package","Video Service","Viewer Configuration","Visio Document","WCS","Web AppBuilder Widget","Web Experience Template","Web Link Chart","Windows Mobile Package","Windows Viewer Add In","Workflow","Workflow Manager Package","Workflow Manager Service","Workforce Project","netCDF"],m=["Hub Site Application","Site Application"],r=a=>{if(!a)return;let e=a.toLocaleLowerCase();return Object.keys(i).find(t=>i[t].some(n=>n.toLocaleLowerCase()===e))},o=a=>{if(!a)return;let e=a.toLocaleLowerCase();return i[e]},i={app:c,dataset:s,document:l,event:p,feedback:g,initiative:d,template:S,solution:u,map:k,other:b,site:m};function P(a){return{other:"content",solution:"template"}[a]||a}function y(a){let e;switch(a.toLowerCase()){case"image service":e="dataset";break;case"feature service":case"raster layer":e="map";break;case"microsoft excel":e="document";break;case"cad drawing":case"feature collection template":case"report template":e="content";break;case"hub project":e="project";break;case"discussion":e="discussion";break;case"event":e="event";break;case"hub initiative":e="initiative";break;case"organization":e="organization";break;default:e=P(r(a))}return e}function A(a){let e;switch(a.toLowerCase()){case"content":e=o("other"),e=e.concat(["CAD Drawing","Feature Collection Template","Report Template"]);break;case"template":e=[...o("template"),...o("solution")];break;case"dataset":e=o(a.toLowerCase()).filter(t=>t!=="Feature Collection Template"&&t!=="Raster Layer"&&t!=="Microsoft Excel"),e=e.concat("Image Service");break;case"map":e=o(a.toLowerCase()).filter(t=>t!=="Image Service"),e=e.concat(["Raster Layer"]);break;case"document":e=o(a.toLowerCase()).filter(t=>t!=="CAD Drawing"&&t!=="Report Template"),e=e.concat("Microsoft Excel");break;case"project":e=["Hub Project"];break;case"discussion":e=["Discussion"];break;case"initiative":e=["Hub Initiative"];break;default:e=o(a.toLowerCase())}return e}export{y as a,A as b};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{a as O}from"./T3LKRCPT.js";import{A as H,C as M,D as F,d as B,e as L}from"./SG3I3BVR.js";import{b as U}from"./QVGWI7BH.js";import"./INZ4E7JC.js";import"./DZJZLLFO.js";import{A as a,B as b,C,h as T,i as n,j as w,v as S,w as m,x as h,y as I}from"./XHHM7WRB.js";import"./R72XZLYM.js";var ee=T`:host{display:block;--instant-apps-social-share-action-width: initial;--instant-apps-social-share-width--s: 200px;--instant-apps-social-share-width--m: 280px;--instant-apps-social-share-width--l: 320px;--instant-apps-social-share-width-horizontal--s: 300px;--instant-apps-social-share-width-horizontal--m: 380px;--instant-apps-social-share-width-horizontal--l: 420px;--instant-apps-social-share-background-color: var(--calcite-color-foreground-1);--instant-apps-social-share-popover-button-background-color: transparent;--instant-apps-social-share-popover-button-icon-color: var(--calcite-ui-icon-color);--instant-apps-social-share-embed-border: 1px solid $border;--instant-apps-social-share-embed-text-area-text: #468540}:host .instant-apps-social-share__popover-button{background-color:var(--instant-apps-social-share-popover-button-background-color)}:host .instant-apps-social-share__popover-button calcite-icon{color:var(--instant-apps-social-share-popover-button-icon-color)}:host .instant-apps-social-share__dialog,:host .instant-apps-social-share__dialog-embed{background-color:var(--instant-apps-social-share-background-color);border:var(--instant-apps-social-share-embed-border)}:host .instant-apps-social-share__dialog{box-sizing:border-box;height:auto;padding:10px 0;border-radius:5px;color:var(--calcite-color-text-1)}:host .instant-apps-social-share__options{margin:0;padding:1% 0 0;list-style-type:none}:host .instant-apps-social-share__options li{box-sizing:border-box;display:flex;align-items:center;width:100%;padding:5%;transition:background-color .15s ease-out 0s}:host .instant-apps-social-share__options li .instant-apps-social-share__icon,:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{display:inline-block}:host .instant-apps-social-share__options li .instant-apps-social-share__icon{display:flex;align-items:center}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{width:85%;margin-left:10px;word-break:break-word}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text--rtl{margin-left:0;margin-right:10px}:host .instant-apps-social-share__options li:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2)}:host .instant-apps-social-share__options__x-logo--light path{fill:#000}:host .instant-apps-social-share__options__x-logo--dark path{fill:#fff}:host .instant-apps-social-share__tip{box-sizing:border-box;padding:0 5% 1%}:host .instant-apps-social-share__tip-header{display:flex;align-items:center;color:#007ac2;margin:8px 0 5px}:host .instant-apps-social-share__tip-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__tip-content{line-height:17px;margin:0;padding-top:2%}:host .instant-apps-social-share__success{display:flex;flex-direction:column;padding:15px}:host .instant-apps-social-share__success-header{display:flex;align-items:center;font-weight:700;margin-bottom:10px}:host .instant-apps-social-share__success-icon{display:flex;align-items:center;margin-right:5px}:host .instant-apps-social-share__success-icon calcite-icon{color:var(--calcite-color-status-success)}:host .instant-apps-social-share__success-message{line-height:16px}:host .instant-apps-social-share__embed{box-sizing:border-box;width:100%;padding:5%;margin-bottom:10px;border-top:1px solid #d3d3d3}:host .instant-apps-social-share__embed-header{display:flex;align-items:center;margin-bottom:5px}:host .instant-apps-social-share__embed-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__embed-code-text-area{border:1px solid #d3d3d3}:host .instant-apps-social-share__embed-code-text-area textarea{box-sizing:border-box;padding:4%;border:none;resize:none;background:transparent;width:100%;font-family:var(--calcite-sans-family);color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button{display:flex;align-items:center;text-align:start;width:100%;border:none;border-top:1px solid #d3d3d3;background-color:transparent;line-height:16px;font-weight:400;padding:3%;color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button calcite-icon{color:#007ac2;margin-right:3px}:host .instant-apps-social-share__embed-code-text-area button:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2);transition:background-color .15s ease-out 0s}:host .instant-apps-social-share__embed-text-area-text{display:inline-block;padding-block-start:var(--calcite-spacing-md);font-weight:600;color:var(--instant-apps-social-share-embed-text-area-text)}:host .instant-apps-social-share__embed .instant-apps-social-share__text-area--rtl{text-align:left;direction:ltr}:host .instant-apps-social-share__embed-dimensions{display:flex;justify-content:space-between;margin-top:10px}:host .instant-apps-social-share__embed-dimensions-input{width:47%;box-sizing:border-box}:host .instant-apps-social-share__embed-dimensions-input input{border:1px solid #d3d3d3;width:100%;height:25px;font-family:var(--calcite-sans-family)}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options{display:flex;justify-content:space-around;margin-bottom:8%}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li{flex-direction:column;padding:0}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li .instant-apps-social-share__option-text{word-break:break-word;margin-left:0;margin-top:10px;text-align:center}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li:hover{background-color:unset}:host .instant-apps-social-share__icon-container{display:flex;align-items:center}:host calcite-action{width:var(--instant-apps-social-share-action-width)}:host([scale=s]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--s)}:host([scale=s]) .instant-apps-social-share__icon{width:16px;height:16px}:host([scale=s]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size--1)}:host([scale=s]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--s)}:host([scale=s]) .instant-apps-social-share__tip-header,:host([scale=s]) .instant-apps-social-share__tip-content,:host([scale=s]) .instant-apps-social-share__embed-header,:host([scale=s]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--2)}:host([scale=m]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--m)}:host([scale=m]) .instant-apps-social-share__icon{width:24px;height:24px}:host([scale=m]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-0)}:host([scale=m]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--m)}:host([scale=m]) .instant-apps-social-share__tip-header,:host([scale=m]) .instant-apps-social-share__tip-content,:host([scale=m]) .instant-apps-social-share__embed-header,:host([scale=m]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--1)}:host([scale=l]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--l)}:host([scale=l]) .instant-apps-social-share__icon{width:32px;height:32px}:host([scale=l]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-1)}:host([scale=l]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--l)}:host([scale=l]) .instant-apps-social-share__tip-header,:host([scale=l]) .instant-apps-social-share__tip-content,:host([scale=l]) .instant-apps-social-share__embed-header,:host([scale=l]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size-0)}`,i="instant-apps-social-share",N=".calcite-mode-dark",t={dialog:`${i}__dialog`,dialogContent:`${i}__dialog-content`,options:`${i}__options`,tipContainer:`${i}__tip`,tipHeader:`${i}__tip-header`,tipContent:`${i}__tip-content`,icon:`${i}__icon`,iconContainer:`${i}__icon-container`,optionText:`${i}__option-text`,popoverButton:`${i}__popover-button`,layout:{vertical:`${i}__layout--vertical`,horizontal:`${i}__layout--horizontal`},xLogo:{light:`${i}__x-logo--light`,dark:`${i}__x-logo--dark`},success:{container:`${i}__success`,header:`${i}__success-header`,message:`${i}__success-message`,icon:`${i}__success-icon`},embed:{container:`${i}__embed`,header:`${i}__embed-header`,embedCode:{container:`${i}__embed-code`,textArea:`${i}__embed-code-text-area`,copyButton:`${i}__embed-code-copy-button`},textAreaText:`${i}__embed-text-area-text`,dimensions:{container:`${i}__embed-dimensions`,input:`${i}__embed-dimensions-input`}},rtl:{optionText:`${i}__option-text--rtl`,textArea:`${i}__text-area--rtl`}},te={facebook:"https://www.facebook.com/sharer/sharer.php?u={url}",x:"https://x.com/intent/post?url={url}",linkedIn:"https://www.linkedin.com/sharing/share-offsite/?text={url}",bluesky:"https://bsky.app/intent/compose?text={url}"},E=1,z=class extends I{constructor(){super(...arguments),this._messages=O({name:"instant-apps-social-share"}),this.popoverRef=m(),this.embedWidthRef=m(),this.embedHeightRef=m(),this.embedCodeRef=m(),this.copyLinkPopoverRef=m(),this.copyEmbedPopoverRef=m(),this.dialogContentRef=m(),this.shareListRef=m(),this.popoverButtonRef=m(),this.handlePopoverRefKeyDown=async e=>{if(!this.isNativeShareEnabled)if(e.code==="Tab"){if(!this.shareListRef.value)return;let s=e.target,o=this.shareListRef.value.children[0],r=this.shareListRef.value.children[this.shareListRef.value.children.length-1];e.shiftKey&&s===o?(e.preventDefault(),r.focus()):!e.shiftKey&&s===r&&(e.preventDefault(),o.focus())}else e.code==="Escape"&&(this.closePopover(),await this.popoverButtonRef.value?.setFocus())},this.stopEventPropagation=e=>{e.stopPropagation()},this.autoCloseCallback=()=>{this.mode==="popover"&&this.popoverRef.value?(this.isPopoverOpen=!1,this.popoverRef.value.open=this.isPopoverOpen):(this.copyLinkPopoverRef.value&&(this.copyLinkPopoverRef.value.open=!1),this.inlineCopyLinkOpened=!1,this.copyEmbedPopoverRef.value&&(this.copyEmbedPopoverRef.value.open=!1),this.inlineCopyEmbedOpened=!1)},this.resetPopoverCopyState=async()=>{await this.popoverButtonRef.value?.setFocus(),setTimeout(()=>{this.isLinkCopiedToClipboard=!1},200)},this.isPopoverOpen=!1,this.isLinkCopiedToClipboard=!1,this.inlineCopyLinkOpened=!1,this.inlineCopyEmbedOpened=!1,this.embedWidth=400,this.embedHeight=600,this.mode="popover",this.shareUrl=window.location.href,this.autoUpdateShareUrl=!0,this.shareText="",this.embed=!1,this.shareButtonColor="neutral",this.shareButtonType="button",this.shareButtonScale="m",this.iframeInnerText="",this.popoverButtonIconScale="m",this.displayTipText=!0,this.shortenShareUrl=!0,this.socialMedia=!0,this.shareIconsLayout="vertical",this.scale="m",this.successMessage="",this.flipRtl=!1,this.defaultUrlParams=null,this.inlineSuccessPopoverPlacement="trailing",this.popoverPositioning="absolute",this.removePopoverOffset=!1,this.useNativeShare=!1,this.isNativeShareEnabled=!1}static{this.properties={isPopoverOpen:16,isLinkCopiedToClipboard:16,inlineCopyLinkOpened:16,inlineCopyEmbedOpened:16,embedWidth:16,embedHeight:16,mode:3,shareUrl:1,autoUpdateShareUrl:5,shareText:3,embed:7,shareButtonColor:3,shareButtonType:3,shareButtonScale:3,iframeInnerText:3,popoverButtonIconScale:3,view:0,displayTipText:7,shortenShareUrl:7,socialMedia:7,shareIconsLayout:3,scale:3,successMessage:3,flipRtl:7,defaultUrlParams:0,inlineSuccessPopoverPlacement:3,popoverPositioning:3,removePopoverOffset:7,useNativeShare:7,isNativeShareEnabled:7}}static{this.styles=ee}load(){document.documentElement.addEventListener("click",this.autoCloseCallback),this.isNativeShareEnabled=this.useNativeShare&&this.isMobileDevice}disconnectedCallback(){super.disconnectedCallback(),document.documentElement.removeEventListener("click",this.autoCloseCallback)}makeOptionKeyDownHandler(e){return async s=>{let o=s.code;(o==="Space"||o==="Enter")&&await this.handleShareItem(e)}}makeEmbedResizeHandler(e){let s=e==="width"?this.embedWidthRef.value:this.embedHeightRef.value;return()=>{if(!(!this.embed||this.isNativeShareEnabled)&&s){let o=Math.max(s.valueAsNumber??0,E);this[e==="width"?"embedWidth":"embedHeight"]=o}}}togglePopoverVisibility(e){e.stopPropagation(),this.isPopoverOpen=!this.isPopoverOpen,this.popoverRef.value&&(this.popoverRef.value.open=this.isPopoverOpen)}closePopover(){this.isPopoverOpen=!1,this.popoverRef.value&&(this.popoverRef.value.open=this.isPopoverOpen)}async handleShareItem(e){this.shareUrl=await this.generateShareUrl();let s=null,o=navigator?.userAgent?.includes("Chrome")??!1,r=(navigator?.userAgent?.includes("Safari")??!1)&&!o;!r&&this.shortenShareUrl&&(s=await this.shortenUrl(this.shareUrl));let l=s||this.shareUrl;switch(e){case"link":await navigator.clipboard.writeText(l),this.embed&&this.copyEmbedPopoverRef.value&&(this.copyEmbedPopoverRef.value.open=!1,this.inlineCopyEmbedOpened=!1),this.mode==="inline"&&this.copyLinkPopoverRef.value&&(this.copyLinkPopoverRef.value.open=!0,setTimeout(()=>{this.copyLinkPopoverRef.value&&(this.copyLinkPopoverRef.value.open=!1)},3e3)),this.inlineCopyLinkOpened=!0,this.isLinkCopiedToClipboard=!0,this.mode==="popover"&&setTimeout(()=>this.closePopover(),2e3);return;case"facebook":case"bluesky":case"x":case"linkedIn":{let p;r&&(p=window.open("","_blank"),this.shortenShareUrl&&(l=await this.shortenUrl(this.shareUrl)||l));let d={url:encodeURI(l)},f=e==="x"?{...d,text:this.shareText}:d,k=(await M()).substitute(te[e],f);this.mode==="popover"&&this.closePopover(),r&&p?(p.location=k,p.focus()):window.open(encodeURI(k),"_blank")}break;case"native-share":let v={title:this._messages.share?.label||"Share",text:this.shareText,url:encodeURI(l)};navigator?.canShare?.(v)?navigator.share(v).catch(p=>{console.error("Error using native share:",p)}):console.warn("Native share is not supported or the provided data is not shareable.");return}}async shortenUrl(e){let s=(await(await F())("https://arcg.is/prod/shorten",{query:{longUrl:e,f:"json"}}))?.data?.data?.url;if(s)return s.replace("http://","https://")}getEmbedCode(){return`<iframe src="${this.shareUrl}" width="${this.embedWidth}" height="${this.embedHeight}" frameborder="0" style="border:0" allowfullscreen>${this.iframeInnerText}</iframe>`}async copyEmbedCode(){await navigator.clipboard.writeText(this.getEmbedCode()),this.copyLinkPopoverRef.value&&(this.copyLinkPopoverRef.value.open=!1),this.inlineCopyLinkOpened=!1,this.copyEmbedPopoverRef.value&&(this.copyEmbedPopoverRef.value.open=!0,setTimeout(()=>{this.copyEmbedPopoverRef.value&&(this.copyEmbedPopoverRef.value.open=!1)},3e3)),this.inlineCopyEmbedOpened=!0}async generateShareUrl(){if(this.autoUpdateShareUrl&&(this.shareUrl=window.location.href),!this.view?.ready)return this.shareUrl;let{x:e,y:s}=this.view.center,{spatialReference:o}=this.view,r=await L({...o.toJSON()}),l=await B({x:e,y:s,spatialReference:r}),v=await this.processPoint(l),{isWGS84:p,isWebMercator:d}=v.spatialReference,f=p||d;return this.generateShareUrlParams(v,f)}async processPoint(e){let{isWGS84:s,isWebMercator:o}=e.spatialReference;if(s||o)return e;let r=await H(),l=await L({wkid:4326}),v=this.view?.spatialReference??l;try{return await r.load(),r.execute(e,v)}catch(p){console.error("Failed to project point to outSpatialReference",p);try{let d=r.execute(e,l);return Promise.resolve(d)}catch(d){return console.error("Failed to project point to fallbackOutSpatialReference",d),await Promise.reject(new Error("Failed to project point to both spatial references"))}}}generateShareUrlParams(e,s){let{longitude:o,latitude:r,x:l,y:v}=e;if(o===void 0||r===void 0||!this.view)return this.shareUrl;let p=this.roundValue(s?o:l),d=this.roundValue(s?r:v),{zoom:f}=this.view,k=this.roundValue(f),P=this.view?.popup?.selectedFeature,D=this.view?.popup?.visible,$,x;if(P&&D&&P?.layer?.type==="feature"){let _=P?.layer;$=_?.id,x=P.attributes[_.objectIdField]}let R=this.view.map?.allLayers.filter(_=>!_.visible).toArray().map(_=>_.id).toString().replaceAll(",",";"),{type:A}=this.view,{defaultUrlParams:g}=this,c=new URL(this.shareUrl),{searchParams:u}=c;if(u.get("center")&&u.delete("center"),u.get("level")&&u.delete("level"),u.get("selectedFeature")&&u.delete("selectedFeature"),u.get("hiddenLayers")&&u.delete("hiddenLayers"),u.get("viewpoint")&&u.delete("viewpoint"),A==="3d"){let{camera:_}=this.view,{heading:V,position:W,tilt:j}=_,{longitude:K,latitude:Z,x:G,y:X,z:q}=W,J=s?K:G,Q=s?Z:X,y={longitude:this.roundValue(J,8),latitude:this.roundValue(Q,8),z:this.roundValue(q,3),heading:this.roundValue(V,3),tilt:this.roundValue(j,3)},Y=`cam:${y.longitude},${y.latitude},${y.z}${!s&&this.view?.spatialReference?.wkid?`,${this.view?.spatialReference?.wkid}`:""};${y.heading},${y.tilt}`;return g?.viewpoint!==!1&&c.searchParams.set("viewpoint",Y),$&&x&&g?.selectedFeature!==!1&&c.searchParams.set("selectedFeature",`${$};${x}`),R&&g?.hiddenLayers!==!1&&c.searchParams.set("hiddenLayers",R),c.search=decodeURIComponent(c.search),c.href}return g?.center!==!1&&c.searchParams.set("center",`${p};${d}`),g?.level!==!1&&c.searchParams.set("level",`${k}`),$&&x&&g?.selectedFeature!==!1&&c.searchParams.set("selectedFeature",`${$};${x}`),R&&g?.hiddenLayers!==!1&&c.searchParams.set("hiddenLayers",R),c.search=decodeURIComponent(c.search),c.href}roundValue(e,s=4){return Number.parseFloat(e.toFixed(s))}get isMobileDevice(){return/Mobi|Android|iPhone|iPad|iPod/iu.test(navigator.userAgent)}render(){let e=this.isLinkCopiedToClipboard&&this.mode==="popover"?this.renderSuccess():n`<div class=${a(t.dialogContent)}>${this.renderMenuOptions()}${this.displayTipText?this.renderTip():null}${this.embed?this.renderEmbed():null}</div>`,s=this.shareIconsLayout==="vertical"?` ${t.layout.vertical}`:` ${t.layout.horizontal}`,o=` calcite-mode-${this.el.closest(N)?"dark":"light"}`,r=n`<div class=${`${t.dialog}${s}${o}`} @click=${this.stopEventPropagation} ${h(this.dialogContentRef)}>${e}</div>`,l=this.removePopoverOffset?0:6;return this.isNativeShareEnabled?this.renderShareButton():this.mode==="popover"?[n`<calcite-popover .open=${this.isPopoverOpen} .label=${this._messages.share?.label??""} reference-element=shareButton placement=bottom-start .scale=${this.scale} .overlayPositioning=${this.popoverPositioning} .offsetDistance=${l} .pointerDisabled=${this.removePopoverOffset} @calcitePopoverOpen=${()=>{!this.shareListRef.value||this.isNativeShareEnabled||this.shareListRef.value.children[0].focus()}} @calcitePopoverBeforeClose=${this.resetPopoverCopyState} @click=${this.stopEventPropagation} @keydown=${this.handlePopoverRefKeyDown} ${h(this.popoverRef)}>${r}</calcite-popover>`,this.renderShareButton()]:[r,n`<calcite-popover .label=${this._messages.share?.label??""} reference-element=copyToClipboard .placement=${this.inlineSuccessPopoverPlacement} .scale=${this.scale} overlay-positioning=fixed ${h(this.copyLinkPopoverRef)}>${this.renderSuccess()}</calcite-popover>`,this.embed?n`<calcite-popover .label=${this._messages.share?.label??""} reference-element=copyEmbedToClipboard .placement=${this.inlineSuccessPopoverPlacement} .scale=${this.scale} overlay-positioning=fixed ${h(this.copyEmbedPopoverRef)}>${this.renderEmbedSuccess()}</calcite-popover>`:null]}renderShareButton(){let e=this.shareButtonScale??this.scale,s=async r=>{this.isNativeShareEnabled?(r.stopPropagation(),await this.handleShareItem("native-share")):this.togglePopoverVisibility(r)},o=n`<div class=${a(t.iconContainer)}><calcite-icon icon=share .scale=${this.popoverButtonIconScale}></calcite-icon></div>`;return this.shareButtonType==="button"?n`<calcite-button id=shareButton class=${a(t.popoverButton)} .label=${this._messages.share?.label} title=${this._messages.share?.label??C} .scale=${e} @click=${s} .kind=${this.shareButtonColor} appearance=transparent ${h(this.isNativeShareEnabled?void 0:this.popoverButtonRef)}>${o}</calcite-button>`:n`<calcite-action id=shareButton class=${a(t.popoverButton)} .label=${this._messages.share?.label} title=${this._messages.share?.label??C} .scale=${e} @click=${s} appearance=transparent text alignment=center ${h(this.isNativeShareEnabled?void 0:this.popoverButtonRef)}>${o}</calcite-action>`}renderSuccess(){let e=this._messages.success;return n`<div class=${a(t.success.container)}><span class=${a(t.success.header)}><span class=${a(t.success.icon)}><calcite-icon icon=check-circle-f .scale=${this.scale}></calcite-icon></span>${e?.label}</span><span class=${a(t.success.message)}>${this.successMessage||e?.url}</span></div>`}renderEmbedSuccess(){let e=this._messages.success;return n`<div class=${a(t.success.container)}><span class=${a(t.success.header)}><span class=${a(t.success.icon)}><calcite-icon icon=check-circle-f .scale=${this.scale}></calcite-icon></span>${e?.label}</span><span class=${a(t.success.message)}>${e?.embed}</span></div>`}renderMenuOptions(){let e=this._messages.options,s=document.dir==="rtl"?` ${t.rtl.optionText}`:"";return n`<ul class=${a(t.options)} role=menu ${h(this.shareListRef)}><li id=copyToClipboard @click=${this.handleShareItem.bind(this,"link")} @keydown=${this.makeOptionKeyDownHandler("link")} role=menuitem tabindex=0><span class=${a(t.icon)}><calcite-icon icon=link .scale=${this.scale}></calcite-icon></span><span class=${`${t.optionText}${s}`}>${e?.link?.label}</span></li>${this.socialMedia?[n`<li @click=${this.handleShareItem.bind(this,"facebook")} @keydown=${this.makeOptionKeyDownHandler("facebook")} role=menuitem tabindex=0><span class=${a(t.icon)}>${this.renderFacebookIcon()}</span><span class=${`${t.optionText}${s}`}>${e?.facebook?.label}</span></li>`,n`<li @click=${this.handleShareItem.bind(this,"x")} @keydown=${this.makeOptionKeyDownHandler("x")} role=menuitem tabindex=0><span class=${a(t.icon)}>${this.renderXIcon()}</span><span class=${`${t.optionText}${s}`}>X</span></li>`,n`<li @click=${this.handleShareItem.bind(this,"linkedIn")} @keydown=${this.makeOptionKeyDownHandler("linkedIn")} role=menuitem tabindex=0><span class=${a(t.icon)}>${this.renderLinkedInIcon()}</span><span class=${`${t.optionText}${s}`}>${e?.linkedIn?.label}</span></li>`,n`<li @click=${this.handleShareItem.bind(this,"bluesky")} @keydown=${this.makeOptionKeyDownHandler("bluesky")} role=menuitem tabindex=0><span class=${a(t.icon)}>${this.renderBlueSkyIcon()}</span><span class=${`${t.optionText}${s}`}>${e?.blueSky?.label}</span></li>`]:null}</ul>`}renderFacebookIcon(){return n`<svg height=100% style=${b({fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"})} version=1.1 viewBox="0 0 512 512" width=100% xmlns=http://www.w3.org/2000/svg>${w`<g><path d="M512,256c0,-141.385 -114.615,-256 -256,-256c-141.385,0 -256,114.615 -256,256c0,127.777 93.616,233.685 216,252.89l0,-178.89l-65,0l0,-74l65,0l0,-56.4c0,-64.16 38.219,-99.6 96.695,-99.6c28.009,0 57.305,5 57.305,5l0,63l-32.281,0c-31.801,0 -41.719,19.733 -41.719,39.978l0,48.022l71,0l-11.35,74l-59.65,0l0,178.89c122.385,-19.205 216,-125.113 216,-252.89Z" style=${b({fill:"#1877f2",fillRule:"nonzero"})} /><path d="M355.65,330l11.35,-74l-71,0l0,-48.022c0,-20.245 9.917,-39.978 41.719,-39.978l32.281,0l0,-63c0,0 -29.297,-5 -57.305,-5c-58.476,0 -96.695,35.44 -96.695,99.6l0,56.4l-65,0l0,74l65,0l0,178.89c13.033,2.045 26.392,3.11 40,3.11c13.608,0 26.966,-1.065 40,-3.11l0,-178.89l59.65,0Z" style=${b({fill:"#fff",fillRule:"nonzero"})} /></g>`}</svg>`}renderXIcon(){let e=!!this.el.closest(N);return n`<svg height=100% class=${a(e?t.xLogo.dark:t.xLogo.light)} viewBox="0 0 1200 1227" fill=none xmlns=http://www.w3.org/2000/svg>${w`<rect height=400 style=${b({fill:"none"})} width=400 x=56 y=56 /><path d="M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z" fill=${e?"white":"black"} />`}</svg>`}renderBlueSkyIcon(){return n`<svg height=100% fill=#0f85fe xmlns=http://www.w3.org/2000/svg viewBox="0 0 512 512">${w`<path d="M111.8 62.2C170.2 105.9 233 194.7 256 242.4c23-47.6 85.8-136.4 144.2-180.2c42.1-31.6 110.3-56 110.3 21.8c0 15.5-8.9 130.5-14.1 149.2C478.2 298 412 314.6 353.1 304.5c102.9 17.5 129.1 75.5 72.5 133.5c-107.4 110.2-154.3-27.6-166.3-62.9l0 0c-1.7-4.9-2.6-7.8-3.3-7.8s-1.6 3-3.3 7.8l0 0c-12 35.3-59 173.1-166.3 62.9c-56.5-58-30.4-116 72.5-133.5C100 314.6 33.8 298 15.7 233.1C10.4 214.4 1.5 99.4 1.5 83.9c0-77.8 68.2-53.4 110.3-21.8z" />`}</svg>`}renderLinkedInIcon(){return n`<svg height=100% style=${b({fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"})} version=1.1 viewBox="0 0 512 512" width=100% xmlns=http://www.w3.org/2000/svg>${w`<g id=g5891><path d="M512,64c0,-35.323 -28.677,-64 -64,-64l-384,0c-35.323,0 -64,28.677 -64,64l0,384c0,35.323 28.677,64 64,64l384,0c35.323,0 64,-28.677 64,-64l0,-384Z" id=background style=${b({fill:"#2867b2"})} /><g id=shapes><rect height=257.962 id=rect11 style=${b({fill:"#fff"})} width=85.76 x=61.053 y=178.667 /><path d="M104.512,54.28c-29.341,0 -48.512,19.29 -48.512,44.573c0,24.752 18.588,44.574 47.377,44.574l0.554,0c29.903,0 48.516,-19.822 48.516,-44.574c-0.555,-25.283 -18.611,-44.573 -47.935,-44.573Z" id=path13-0 style=${b({fill:"#fff",fillRule:"nonzero"})} /><path d="M357.278,172.601c-45.49,0 -65.866,25.017 -77.276,42.589l0,-36.523l-85.738,0c1.137,24.197 0,257.961 0,257.961l85.737,0l0,-144.064c0,-7.711 0.554,-15.42 2.827,-20.931c6.188,-15.4 20.305,-31.352 43.993,-31.352c31.012,0 43.436,23.664 43.436,58.327l0,138.02l85.741,0l0,-147.93c0,-79.237 -42.305,-116.097 -98.72,-116.097Z" id=path15 style=${b({fill:"#fff",fillRule:"nonzero"})} /></g></g>`}</svg>`}renderTip(){let e=this._messages.info;return n`<div class=${a(t.tipContainer)}><span class=${a(t.tipHeader)}><calcite-icon icon=lightbulb .scale=${this.scale}></calcite-icon><span>${e?.label}</span></span><p class=${a(t.tipContent)}>${e?.tooltip}</p></div>`}renderEmbed(){let e=this._messages.embed,s=document.dir==="rtl"?` ${t.rtl.textArea}`:"";return n`<div class=${a(t.embed.container)}><span class=${a(t.embed.header)}><calcite-icon icon=code .scale=${this.scale}></calcite-icon><span>${this._messages.embed?.label}</span></span><div class=${a(t.embed.embedCode.container)}><div class=${a(t.embed.embedCode.textArea)}><textarea cols=30 rows=5 readonly class=${a(s)} .value=${S(this.getEmbedCode()??"")} ${h(this.embedCodeRef)}></textarea><button id=copyEmbedToClipboard @click=${this.copyEmbedCode} class=${a(t.embed.embedCode.copyButton)}><calcite-icon icon=copy .scale=${this.scale}></calcite-icon><span>${e?.copy}</span></button></div><span class=${a(t.embed.textAreaText)}><slot name=text-area-text></slot></span><div class=${a(t.embed.dimensions.container)}><label class=${a(t.embed.dimensions.input)}><span>${e?.width}</span><input type=number @keydown=${o=>["e","E","+","-"].includes(o.key)&&o.preventDefault()} @change=${this.makeEmbedResizeHandler("width")} .value=${S(this.embedWidth??"")} min=${E} ${h(this.embedWidthRef)}></label><label class=${a(t.embed.dimensions.input)}><span>${e?.height}</span><input type=number @keydown=${o=>["e","E","+","-"].includes(o.key)&&o.preventDefault()} @change=${this.makeEmbedResizeHandler("height")} .value=${S(this.embedHeight??"")} min=${E} ${h(this.embedHeightRef)}></label></div></div></div>`}};U("instant-apps-social-share",z);export{z as InstantAppsSocialShare};
|
3
|
+
v1.1.0-next.20250818 */
|
4
|
+
import{a as O}from"./L5VLMTR2.js";import{A as H,C as M,D as F,d as B,e as L}from"./CCUURDN3.js";import{b as U}from"./KX7NEVCY.js";import"./KUKTXMSX.js";import"./TWEAJRSR.js";import{A as a,B as b,C,h as T,i as n,j as w,v as S,w as m,x as h,y as I}from"./FPZJX6ZR.js";import"./333HWSMJ.js";var ee=T`:host{display:block;--instant-apps-social-share-action-width: initial;--instant-apps-social-share-width--s: 200px;--instant-apps-social-share-width--m: 280px;--instant-apps-social-share-width--l: 320px;--instant-apps-social-share-width-horizontal--s: 300px;--instant-apps-social-share-width-horizontal--m: 380px;--instant-apps-social-share-width-horizontal--l: 420px;--instant-apps-social-share-background-color: var(--calcite-color-foreground-1);--instant-apps-social-share-popover-button-background-color: transparent;--instant-apps-social-share-popover-button-icon-color: var(--calcite-ui-icon-color);--instant-apps-social-share-embed-border: 1px solid $border;--instant-apps-social-share-embed-text-area-text: #468540}:host .instant-apps-social-share__popover-button{background-color:var(--instant-apps-social-share-popover-button-background-color)}:host .instant-apps-social-share__popover-button calcite-icon{color:var(--instant-apps-social-share-popover-button-icon-color)}:host .instant-apps-social-share__dialog,:host .instant-apps-social-share__dialog-embed{background-color:var(--instant-apps-social-share-background-color);border:var(--instant-apps-social-share-embed-border)}:host .instant-apps-social-share__dialog{box-sizing:border-box;height:auto;padding:10px 0;border-radius:5px;color:var(--calcite-color-text-1)}:host .instant-apps-social-share__options{margin:0;padding:1% 0 0;list-style-type:none}:host .instant-apps-social-share__options li{box-sizing:border-box;display:flex;align-items:center;width:100%;padding:5%;transition:background-color .15s ease-out 0s}:host .instant-apps-social-share__options li .instant-apps-social-share__icon,:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{display:inline-block}:host .instant-apps-social-share__options li .instant-apps-social-share__icon{display:flex;align-items:center}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text{width:85%;margin-left:10px;word-break:break-word}:host .instant-apps-social-share__options li .instant-apps-social-share__option-text--rtl{margin-left:0;margin-right:10px}:host .instant-apps-social-share__options li:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2)}:host .instant-apps-social-share__options__x-logo--light path{fill:#000}:host .instant-apps-social-share__options__x-logo--dark path{fill:#fff}:host .instant-apps-social-share__tip{box-sizing:border-box;padding:0 5% 1%}:host .instant-apps-social-share__tip-header{display:flex;align-items:center;color:#007ac2;margin:8px 0 5px}:host .instant-apps-social-share__tip-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__tip-content{line-height:17px;margin:0;padding-top:2%}:host .instant-apps-social-share__success{display:flex;flex-direction:column;padding:15px}:host .instant-apps-social-share__success-header{display:flex;align-items:center;font-weight:700;margin-bottom:10px}:host .instant-apps-social-share__success-icon{display:flex;align-items:center;margin-right:5px}:host .instant-apps-social-share__success-icon calcite-icon{color:var(--calcite-color-status-success)}:host .instant-apps-social-share__success-message{line-height:16px}:host .instant-apps-social-share__embed{box-sizing:border-box;width:100%;padding:5%;margin-bottom:10px;border-top:1px solid #d3d3d3}:host .instant-apps-social-share__embed-header{display:flex;align-items:center;margin-bottom:5px}:host .instant-apps-social-share__embed-header calcite-icon{margin-right:5px}:host .instant-apps-social-share__embed-code-text-area{border:1px solid #d3d3d3}:host .instant-apps-social-share__embed-code-text-area textarea{box-sizing:border-box;padding:4%;border:none;resize:none;background:transparent;width:100%;font-family:var(--calcite-sans-family);color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button{display:flex;align-items:center;text-align:start;width:100%;border:none;border-top:1px solid #d3d3d3;background-color:transparent;line-height:16px;font-weight:400;padding:3%;color:var(--calcite-color-text-1)}:host .instant-apps-social-share__embed-code-text-area button calcite-icon{color:#007ac2;margin-right:3px}:host .instant-apps-social-share__embed-code-text-area button:hover{cursor:pointer;background-color:var(--calcite-color-foreground-2);transition:background-color .15s ease-out 0s}:host .instant-apps-social-share__embed-text-area-text{display:inline-block;padding-block-start:var(--calcite-spacing-md);font-weight:600;color:var(--instant-apps-social-share-embed-text-area-text)}:host .instant-apps-social-share__embed .instant-apps-social-share__text-area--rtl{text-align:left;direction:ltr}:host .instant-apps-social-share__embed-dimensions{display:flex;justify-content:space-between;margin-top:10px}:host .instant-apps-social-share__embed-dimensions-input{width:47%;box-sizing:border-box}:host .instant-apps-social-share__embed-dimensions-input input{border:1px solid #d3d3d3;width:100%;height:25px;font-family:var(--calcite-sans-family)}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options{display:flex;justify-content:space-around;margin-bottom:8%}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li{flex-direction:column;padding:0}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li .instant-apps-social-share__option-text{word-break:break-word;margin-left:0;margin-top:10px;text-align:center}:host .instant-apps-social-share__layout--horizontal .instant-apps-social-share__options li:hover{background-color:unset}:host .instant-apps-social-share__icon-container{display:flex;align-items:center}:host calcite-action{width:var(--instant-apps-social-share-action-width)}:host([scale=s]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--s)}:host([scale=s]) .instant-apps-social-share__icon{width:16px;height:16px}:host([scale=s]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size--1)}:host([scale=s]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--s)}:host([scale=s]) .instant-apps-social-share__tip-header,:host([scale=s]) .instant-apps-social-share__tip-content,:host([scale=s]) .instant-apps-social-share__embed-header,:host([scale=s]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--2)}:host([scale=m]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--m)}:host([scale=m]) .instant-apps-social-share__icon{width:24px;height:24px}:host([scale=m]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-0)}:host([scale=m]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--m)}:host([scale=m]) .instant-apps-social-share__tip-header,:host([scale=m]) .instant-apps-social-share__tip-content,:host([scale=m]) .instant-apps-social-share__embed-header,:host([scale=m]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size--1)}:host([scale=l]) .instant-apps-social-share__dialog{width:var(--instant-apps-social-share-width--l)}:host([scale=l]) .instant-apps-social-share__icon{width:32px;height:32px}:host([scale=l]) .instant-apps-social-share__option-text{font-size:var(--calcite-font-size-1)}:host([scale=l]) .instant-apps-social-share__dialog.instant-apps-social-share__layout--horizontal{width:var(--instant-apps-social-share-width-horizontal--l)}:host([scale=l]) .instant-apps-social-share__tip-header,:host([scale=l]) .instant-apps-social-share__tip-content,:host([scale=l]) .instant-apps-social-share__embed-header,:host([scale=l]) .instant-apps-social-share__embed-dimensions-input{font-size:var(--calcite-font-size-0)}`,i="instant-apps-social-share",N=".calcite-mode-dark",t={dialog:`${i}__dialog`,dialogContent:`${i}__dialog-content`,options:`${i}__options`,tipContainer:`${i}__tip`,tipHeader:`${i}__tip-header`,tipContent:`${i}__tip-content`,icon:`${i}__icon`,iconContainer:`${i}__icon-container`,optionText:`${i}__option-text`,popoverButton:`${i}__popover-button`,layout:{vertical:`${i}__layout--vertical`,horizontal:`${i}__layout--horizontal`},xLogo:{light:`${i}__x-logo--light`,dark:`${i}__x-logo--dark`},success:{container:`${i}__success`,header:`${i}__success-header`,message:`${i}__success-message`,icon:`${i}__success-icon`},embed:{container:`${i}__embed`,header:`${i}__embed-header`,embedCode:{container:`${i}__embed-code`,textArea:`${i}__embed-code-text-area`,copyButton:`${i}__embed-code-copy-button`},textAreaText:`${i}__embed-text-area-text`,dimensions:{container:`${i}__embed-dimensions`,input:`${i}__embed-dimensions-input`}},rtl:{optionText:`${i}__option-text--rtl`,textArea:`${i}__text-area--rtl`}},te={facebook:"https://www.facebook.com/sharer/sharer.php?u={url}",x:"https://x.com/intent/post?url={url}",linkedIn:"https://www.linkedin.com/sharing/share-offsite/?text={url}",bluesky:"https://bsky.app/intent/compose?text={url}"},E=1,z=class extends I{constructor(){super(...arguments),this._messages=O({name:"instant-apps-social-share"}),this.popoverRef=m(),this.embedWidthRef=m(),this.embedHeightRef=m(),this.embedCodeRef=m(),this.copyLinkPopoverRef=m(),this.copyEmbedPopoverRef=m(),this.dialogContentRef=m(),this.shareListRef=m(),this.popoverButtonRef=m(),this.handlePopoverRefKeyDown=async e=>{if(!this.isNativeShareEnabled)if(e.code==="Tab"){if(!this.shareListRef.value)return;let s=e.target,o=this.shareListRef.value.children[0],r=this.shareListRef.value.children[this.shareListRef.value.children.length-1];e.shiftKey&&s===o?(e.preventDefault(),r.focus()):!e.shiftKey&&s===r&&(e.preventDefault(),o.focus())}else e.code==="Escape"&&(this.closePopover(),await this.popoverButtonRef.value?.setFocus())},this.stopEventPropagation=e=>{e.stopPropagation()},this.autoCloseCallback=()=>{this.mode==="popover"&&this.popoverRef.value?(this.isPopoverOpen=!1,this.popoverRef.value.open=this.isPopoverOpen):(this.copyLinkPopoverRef.value&&(this.copyLinkPopoverRef.value.open=!1),this.inlineCopyLinkOpened=!1,this.copyEmbedPopoverRef.value&&(this.copyEmbedPopoverRef.value.open=!1),this.inlineCopyEmbedOpened=!1)},this.resetPopoverCopyState=async()=>{await this.popoverButtonRef.value?.setFocus(),setTimeout(()=>{this.isLinkCopiedToClipboard=!1},200)},this.isPopoverOpen=!1,this.isLinkCopiedToClipboard=!1,this.inlineCopyLinkOpened=!1,this.inlineCopyEmbedOpened=!1,this.embedWidth=400,this.embedHeight=600,this.mode="popover",this.shareUrl=window.location.href,this.autoUpdateShareUrl=!0,this.shareText="",this.embed=!1,this.shareButtonColor="neutral",this.shareButtonType="button",this.shareButtonScale="m",this.iframeInnerText="",this.popoverButtonIconScale="m",this.displayTipText=!0,this.shortenShareUrl=!0,this.socialMedia=!0,this.shareIconsLayout="vertical",this.scale="m",this.successMessage="",this.flipRtl=!1,this.defaultUrlParams=null,this.inlineSuccessPopoverPlacement="trailing",this.popoverPositioning="absolute",this.removePopoverOffset=!1,this.useNativeShare=!1,this.isNativeShareEnabled=!1}static{this.properties={isPopoverOpen:16,isLinkCopiedToClipboard:16,inlineCopyLinkOpened:16,inlineCopyEmbedOpened:16,embedWidth:16,embedHeight:16,mode:3,shareUrl:1,autoUpdateShareUrl:5,shareText:3,embed:7,shareButtonColor:3,shareButtonType:3,shareButtonScale:3,iframeInnerText:3,popoverButtonIconScale:3,view:0,displayTipText:7,shortenShareUrl:7,socialMedia:7,shareIconsLayout:3,scale:3,successMessage:3,flipRtl:7,defaultUrlParams:0,inlineSuccessPopoverPlacement:3,popoverPositioning:3,removePopoverOffset:7,useNativeShare:7,isNativeShareEnabled:7}}static{this.styles=ee}load(){document.documentElement.addEventListener("click",this.autoCloseCallback),this.isNativeShareEnabled=this.useNativeShare&&this.isMobileDevice}disconnectedCallback(){super.disconnectedCallback(),document.documentElement.removeEventListener("click",this.autoCloseCallback)}makeOptionKeyDownHandler(e){return async s=>{let o=s.code;(o==="Space"||o==="Enter")&&await this.handleShareItem(e)}}makeEmbedResizeHandler(e){let s=e==="width"?this.embedWidthRef.value:this.embedHeightRef.value;return()=>{if(!(!this.embed||this.isNativeShareEnabled)&&s){let o=Math.max(s.valueAsNumber??0,E);this[e==="width"?"embedWidth":"embedHeight"]=o}}}togglePopoverVisibility(e){e.stopPropagation(),this.isPopoverOpen=!this.isPopoverOpen,this.popoverRef.value&&(this.popoverRef.value.open=this.isPopoverOpen)}closePopover(){this.isPopoverOpen=!1,this.popoverRef.value&&(this.popoverRef.value.open=this.isPopoverOpen)}async handleShareItem(e){this.shareUrl=await this.generateShareUrl();let s=null,o=navigator?.userAgent?.includes("Chrome")??!1,r=(navigator?.userAgent?.includes("Safari")??!1)&&!o;!r&&this.shortenShareUrl&&(s=await this.shortenUrl(this.shareUrl));let l=s||this.shareUrl;switch(e){case"link":await navigator.clipboard.writeText(l),this.embed&&this.copyEmbedPopoverRef.value&&(this.copyEmbedPopoverRef.value.open=!1,this.inlineCopyEmbedOpened=!1),this.mode==="inline"&&this.copyLinkPopoverRef.value&&(this.copyLinkPopoverRef.value.open=!0,setTimeout(()=>{this.copyLinkPopoverRef.value&&(this.copyLinkPopoverRef.value.open=!1)},3e3)),this.inlineCopyLinkOpened=!0,this.isLinkCopiedToClipboard=!0,this.mode==="popover"&&setTimeout(()=>this.closePopover(),2e3);return;case"facebook":case"bluesky":case"x":case"linkedIn":{let p;r&&(p=window.open("","_blank"),this.shortenShareUrl&&(l=await this.shortenUrl(this.shareUrl)||l));let d={url:encodeURI(l)},f=e==="x"?{...d,text:this.shareText}:d,k=(await M()).substitute(te[e],f);this.mode==="popover"&&this.closePopover(),r&&p?(p.location=k,p.focus()):window.open(encodeURI(k),"_blank")}break;case"native-share":let v={title:this._messages.share?.label||"Share",text:this.shareText,url:encodeURI(l)};navigator?.canShare?.(v)?navigator.share(v).catch(p=>{console.error("Error using native share:",p)}):console.warn("Native share is not supported or the provided data is not shareable.");return}}async shortenUrl(e){let s=(await(await F())("https://arcg.is/prod/shorten",{query:{longUrl:e,f:"json"}}))?.data?.data?.url;if(s)return s.replace("http://","https://")}getEmbedCode(){return`<iframe src="${this.shareUrl}" width="${this.embedWidth}" height="${this.embedHeight}" frameborder="0" style="border:0" allowfullscreen>${this.iframeInnerText}</iframe>`}async copyEmbedCode(){await navigator.clipboard.writeText(this.getEmbedCode()),this.copyLinkPopoverRef.value&&(this.copyLinkPopoverRef.value.open=!1),this.inlineCopyLinkOpened=!1,this.copyEmbedPopoverRef.value&&(this.copyEmbedPopoverRef.value.open=!0,setTimeout(()=>{this.copyEmbedPopoverRef.value&&(this.copyEmbedPopoverRef.value.open=!1)},3e3)),this.inlineCopyEmbedOpened=!0}async generateShareUrl(){if(this.autoUpdateShareUrl&&(this.shareUrl=window.location.href),!this.view?.ready)return this.shareUrl;let{x:e,y:s}=this.view.center,{spatialReference:o}=this.view,r=await L({...o.toJSON()}),l=await B({x:e,y:s,spatialReference:r}),v=await this.processPoint(l),{isWGS84:p,isWebMercator:d}=v.spatialReference,f=p||d;return this.generateShareUrlParams(v,f)}async processPoint(e){let{isWGS84:s,isWebMercator:o}=e.spatialReference;if(s||o)return e;let r=await H(),l=await L({wkid:4326}),v=this.view?.spatialReference??l;try{return await r.load(),r.execute(e,v)}catch(p){console.error("Failed to project point to outSpatialReference",p);try{let d=r.execute(e,l);return Promise.resolve(d)}catch(d){return console.error("Failed to project point to fallbackOutSpatialReference",d),await Promise.reject(new Error("Failed to project point to both spatial references"))}}}generateShareUrlParams(e,s){let{longitude:o,latitude:r,x:l,y:v}=e;if(o===void 0||r===void 0||!this.view)return this.shareUrl;let p=this.roundValue(s?o:l),d=this.roundValue(s?r:v),{zoom:f}=this.view,k=this.roundValue(f),P=this.view?.popup?.selectedFeature,D=this.view?.popup?.visible,$,x;if(P&&D&&P?.layer?.type==="feature"){let _=P?.layer;$=_?.id,x=P.attributes[_.objectIdField]}let R=this.view.map?.allLayers.filter(_=>!_.visible).toArray().map(_=>_.id).toString().replaceAll(",",";"),{type:A}=this.view,{defaultUrlParams:g}=this,c=new URL(this.shareUrl),{searchParams:u}=c;if(u.get("center")&&u.delete("center"),u.get("level")&&u.delete("level"),u.get("selectedFeature")&&u.delete("selectedFeature"),u.get("hiddenLayers")&&u.delete("hiddenLayers"),u.get("viewpoint")&&u.delete("viewpoint"),A==="3d"){let{camera:_}=this.view,{heading:V,position:W,tilt:j}=_,{longitude:K,latitude:Z,x:G,y:X,z:q}=W,J=s?K:G,Q=s?Z:X,y={longitude:this.roundValue(J,8),latitude:this.roundValue(Q,8),z:this.roundValue(q,3),heading:this.roundValue(V,3),tilt:this.roundValue(j,3)},Y=`cam:${y.longitude},${y.latitude},${y.z}${!s&&this.view?.spatialReference?.wkid?`,${this.view?.spatialReference?.wkid}`:""};${y.heading},${y.tilt}`;return g?.viewpoint!==!1&&c.searchParams.set("viewpoint",Y),$&&x&&g?.selectedFeature!==!1&&c.searchParams.set("selectedFeature",`${$};${x}`),R&&g?.hiddenLayers!==!1&&c.searchParams.set("hiddenLayers",R),c.search=decodeURIComponent(c.search),c.href}return g?.center!==!1&&c.searchParams.set("center",`${p};${d}`),g?.level!==!1&&c.searchParams.set("level",`${k}`),$&&x&&g?.selectedFeature!==!1&&c.searchParams.set("selectedFeature",`${$};${x}`),R&&g?.hiddenLayers!==!1&&c.searchParams.set("hiddenLayers",R),c.search=decodeURIComponent(c.search),c.href}roundValue(e,s=4){return Number.parseFloat(e.toFixed(s))}get isMobileDevice(){return/Mobi|Android|iPhone|iPad|iPod/iu.test(navigator.userAgent)}render(){let e=this.isLinkCopiedToClipboard&&this.mode==="popover"?this.renderSuccess():n`<div class=${a(t.dialogContent)}>${this.renderMenuOptions()}${this.displayTipText?this.renderTip():null}${this.embed?this.renderEmbed():null}</div>`,s=this.shareIconsLayout==="vertical"?` ${t.layout.vertical}`:` ${t.layout.horizontal}`,o=` calcite-mode-${this.el.closest(N)?"dark":"light"}`,r=n`<div class=${`${t.dialog}${s}${o}`} @click=${this.stopEventPropagation} ${h(this.dialogContentRef)}>${e}</div>`,l=this.removePopoverOffset?0:6;return this.isNativeShareEnabled?this.renderShareButton():this.mode==="popover"?[n`<calcite-popover .open=${this.isPopoverOpen} .label=${this._messages.share?.label??""} reference-element=shareButton placement=bottom-start .scale=${this.scale} .overlayPositioning=${this.popoverPositioning} .offsetDistance=${l} .pointerDisabled=${this.removePopoverOffset} @calcitePopoverOpen=${()=>{!this.shareListRef.value||this.isNativeShareEnabled||this.shareListRef.value.children[0].focus()}} @calcitePopoverBeforeClose=${this.resetPopoverCopyState} @click=${this.stopEventPropagation} @keydown=${this.handlePopoverRefKeyDown} ${h(this.popoverRef)}>${r}</calcite-popover>`,this.renderShareButton()]:[r,n`<calcite-popover .label=${this._messages.share?.label??""} reference-element=copyToClipboard .placement=${this.inlineSuccessPopoverPlacement} .scale=${this.scale} overlay-positioning=fixed ${h(this.copyLinkPopoverRef)}>${this.renderSuccess()}</calcite-popover>`,this.embed?n`<calcite-popover .label=${this._messages.share?.label??""} reference-element=copyEmbedToClipboard .placement=${this.inlineSuccessPopoverPlacement} .scale=${this.scale} overlay-positioning=fixed ${h(this.copyEmbedPopoverRef)}>${this.renderEmbedSuccess()}</calcite-popover>`:null]}renderShareButton(){let e=this.shareButtonScale??this.scale,s=async r=>{this.isNativeShareEnabled?(r.stopPropagation(),await this.handleShareItem("native-share")):this.togglePopoverVisibility(r)},o=n`<div class=${a(t.iconContainer)}><calcite-icon icon=share .scale=${this.popoverButtonIconScale}></calcite-icon></div>`;return this.shareButtonType==="button"?n`<calcite-button id=shareButton class=${a(t.popoverButton)} .label=${this._messages.share?.label} title=${this._messages.share?.label??C} .scale=${e} @click=${s} .kind=${this.shareButtonColor} appearance=transparent ${h(this.isNativeShareEnabled?void 0:this.popoverButtonRef)}>${o}</calcite-button>`:n`<calcite-action id=shareButton class=${a(t.popoverButton)} .label=${this._messages.share?.label} title=${this._messages.share?.label??C} .scale=${e} @click=${s} appearance=transparent text alignment=center ${h(this.isNativeShareEnabled?void 0:this.popoverButtonRef)}>${o}</calcite-action>`}renderSuccess(){let e=this._messages.success;return n`<div class=${a(t.success.container)}><span class=${a(t.success.header)}><span class=${a(t.success.icon)}><calcite-icon icon=check-circle-f .scale=${this.scale}></calcite-icon></span>${e?.label}</span><span class=${a(t.success.message)}>${this.successMessage||e?.url}</span></div>`}renderEmbedSuccess(){let e=this._messages.success;return n`<div class=${a(t.success.container)}><span class=${a(t.success.header)}><span class=${a(t.success.icon)}><calcite-icon icon=check-circle-f .scale=${this.scale}></calcite-icon></span>${e?.label}</span><span class=${a(t.success.message)}>${e?.embed}</span></div>`}renderMenuOptions(){let e=this._messages.options,s=document.dir==="rtl"?` ${t.rtl.optionText}`:"";return n`<ul class=${a(t.options)} role=menu ${h(this.shareListRef)}><li id=copyToClipboard @click=${this.handleShareItem.bind(this,"link")} @keydown=${this.makeOptionKeyDownHandler("link")} role=menuitem tabindex=0><span class=${a(t.icon)}><calcite-icon icon=link .scale=${this.scale}></calcite-icon></span><span class=${`${t.optionText}${s}`}>${e?.link?.label}</span></li>${this.socialMedia?[n`<li @click=${this.handleShareItem.bind(this,"facebook")} @keydown=${this.makeOptionKeyDownHandler("facebook")} role=menuitem tabindex=0><span class=${a(t.icon)}>${this.renderFacebookIcon()}</span><span class=${`${t.optionText}${s}`}>${e?.facebook?.label}</span></li>`,n`<li @click=${this.handleShareItem.bind(this,"x")} @keydown=${this.makeOptionKeyDownHandler("x")} role=menuitem tabindex=0><span class=${a(t.icon)}>${this.renderXIcon()}</span><span class=${`${t.optionText}${s}`}>X</span></li>`,n`<li @click=${this.handleShareItem.bind(this,"linkedIn")} @keydown=${this.makeOptionKeyDownHandler("linkedIn")} role=menuitem tabindex=0><span class=${a(t.icon)}>${this.renderLinkedInIcon()}</span><span class=${`${t.optionText}${s}`}>${e?.linkedIn?.label}</span></li>`,n`<li @click=${this.handleShareItem.bind(this,"bluesky")} @keydown=${this.makeOptionKeyDownHandler("bluesky")} role=menuitem tabindex=0><span class=${a(t.icon)}>${this.renderBlueSkyIcon()}</span><span class=${`${t.optionText}${s}`}>${e?.blueSky?.label}</span></li>`]:null}</ul>`}renderFacebookIcon(){return n`<svg height=100% style=${b({fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"})} version=1.1 viewBox="0 0 512 512" width=100% xmlns=http://www.w3.org/2000/svg>${w`<g><path d="M512,256c0,-141.385 -114.615,-256 -256,-256c-141.385,0 -256,114.615 -256,256c0,127.777 93.616,233.685 216,252.89l0,-178.89l-65,0l0,-74l65,0l0,-56.4c0,-64.16 38.219,-99.6 96.695,-99.6c28.009,0 57.305,5 57.305,5l0,63l-32.281,0c-31.801,0 -41.719,19.733 -41.719,39.978l0,48.022l71,0l-11.35,74l-59.65,0l0,178.89c122.385,-19.205 216,-125.113 216,-252.89Z" style=${b({fill:"#1877f2",fillRule:"nonzero"})} /><path d="M355.65,330l11.35,-74l-71,0l0,-48.022c0,-20.245 9.917,-39.978 41.719,-39.978l32.281,0l0,-63c0,0 -29.297,-5 -57.305,-5c-58.476,0 -96.695,35.44 -96.695,99.6l0,56.4l-65,0l0,74l65,0l0,178.89c13.033,2.045 26.392,3.11 40,3.11c13.608,0 26.966,-1.065 40,-3.11l0,-178.89l59.65,0Z" style=${b({fill:"#fff",fillRule:"nonzero"})} /></g>`}</svg>`}renderXIcon(){let e=!!this.el.closest(N);return n`<svg height=100% class=${a(e?t.xLogo.dark:t.xLogo.light)} viewBox="0 0 1200 1227" fill=none xmlns=http://www.w3.org/2000/svg>${w`<rect height=400 style=${b({fill:"none"})} width=400 x=56 y=56 /><path d="M714.163 519.284L1160.89 0H1055.03L667.137 450.887L357.328 0H0L468.492 681.821L0 1226.37H105.866L515.491 750.218L842.672 1226.37H1200L714.137 519.284H714.163ZM569.165 687.828L521.697 619.934L144.011 79.6944H306.615L611.412 515.685L658.88 583.579L1055.08 1150.3H892.476L569.165 687.854V687.828Z" fill=${e?"white":"black"} />`}</svg>`}renderBlueSkyIcon(){return n`<svg height=100% fill=#0f85fe xmlns=http://www.w3.org/2000/svg viewBox="0 0 512 512">${w`<path d="M111.8 62.2C170.2 105.9 233 194.7 256 242.4c23-47.6 85.8-136.4 144.2-180.2c42.1-31.6 110.3-56 110.3 21.8c0 15.5-8.9 130.5-14.1 149.2C478.2 298 412 314.6 353.1 304.5c102.9 17.5 129.1 75.5 72.5 133.5c-107.4 110.2-154.3-27.6-166.3-62.9l0 0c-1.7-4.9-2.6-7.8-3.3-7.8s-1.6 3-3.3 7.8l0 0c-12 35.3-59 173.1-166.3 62.9c-56.5-58-30.4-116 72.5-133.5C100 314.6 33.8 298 15.7 233.1C10.4 214.4 1.5 99.4 1.5 83.9c0-77.8 68.2-53.4 110.3-21.8z" />`}</svg>`}renderLinkedInIcon(){return n`<svg height=100% style=${b({fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:"2"})} version=1.1 viewBox="0 0 512 512" width=100% xmlns=http://www.w3.org/2000/svg>${w`<g id=g5891><path d="M512,64c0,-35.323 -28.677,-64 -64,-64l-384,0c-35.323,0 -64,28.677 -64,64l0,384c0,35.323 28.677,64 64,64l384,0c35.323,0 64,-28.677 64,-64l0,-384Z" id=background style=${b({fill:"#2867b2"})} /><g id=shapes><rect height=257.962 id=rect11 style=${b({fill:"#fff"})} width=85.76 x=61.053 y=178.667 /><path d="M104.512,54.28c-29.341,0 -48.512,19.29 -48.512,44.573c0,24.752 18.588,44.574 47.377,44.574l0.554,0c29.903,0 48.516,-19.822 48.516,-44.574c-0.555,-25.283 -18.611,-44.573 -47.935,-44.573Z" id=path13-0 style=${b({fill:"#fff",fillRule:"nonzero"})} /><path d="M357.278,172.601c-45.49,0 -65.866,25.017 -77.276,42.589l0,-36.523l-85.738,0c1.137,24.197 0,257.961 0,257.961l85.737,0l0,-144.064c0,-7.711 0.554,-15.42 2.827,-20.931c6.188,-15.4 20.305,-31.352 43.993,-31.352c31.012,0 43.436,23.664 43.436,58.327l0,138.02l85.741,0l0,-147.93c0,-79.237 -42.305,-116.097 -98.72,-116.097Z" id=path15 style=${b({fill:"#fff",fillRule:"nonzero"})} /></g></g>`}</svg>`}renderTip(){let e=this._messages.info;return n`<div class=${a(t.tipContainer)}><span class=${a(t.tipHeader)}><calcite-icon icon=lightbulb .scale=${this.scale}></calcite-icon><span>${e?.label}</span></span><p class=${a(t.tipContent)}>${e?.tooltip}</p></div>`}renderEmbed(){let e=this._messages.embed,s=document.dir==="rtl"?` ${t.rtl.textArea}`:"";return n`<div class=${a(t.embed.container)}><span class=${a(t.embed.header)}><calcite-icon icon=code .scale=${this.scale}></calcite-icon><span>${this._messages.embed?.label}</span></span><div class=${a(t.embed.embedCode.container)}><div class=${a(t.embed.embedCode.textArea)}><textarea cols=30 rows=5 readonly class=${a(s)} .value=${S(this.getEmbedCode()??"")} ${h(this.embedCodeRef)}></textarea><button id=copyEmbedToClipboard @click=${this.copyEmbedCode} class=${a(t.embed.embedCode.copyButton)}><calcite-icon icon=copy .scale=${this.scale}></calcite-icon><span>${e?.copy}</span></button></div><span class=${a(t.embed.textAreaText)}><slot name=text-area-text></slot></span><div class=${a(t.embed.dimensions.container)}><label class=${a(t.embed.dimensions.input)}><span>${e?.width}</span><input type=number @keydown=${o=>["e","E","+","-"].includes(o.key)&&o.preventDefault()} @change=${this.makeEmbedResizeHandler("width")} .value=${S(this.embedWidth??"")} min=${E} ${h(this.embedWidthRef)}></label><label class=${a(t.embed.dimensions.input)}><span>${e?.height}</span><input type=number @keydown=${o=>["e","E","+","-"].includes(o.key)&&o.preventDefault()} @change=${this.makeEmbedResizeHandler("height")} .value=${S(this.embedHeight??"")} min=${E} ${h(this.embedHeightRef)}></label></div></div></div>`}};U("instant-apps-social-share",z);export{z as InstantAppsSocialShare};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{a as E}from"./
|
3
|
+
v1.1.0-next.20250818 */
|
4
|
+
import{a as E}from"./TWEAJRSR.js";import{l as m,m as h,p as v}from"./FPZJX6ZR.js";export default $arcgis.t(([{on:W,watch:f},{createObservable:x,trackAccess:w},{property:C,subclass:b},g])=>{var u=class extends v{constructor(t,n){super(t),this.Y=new Map,this.A=void 0,this.#o=x();let e=this;e.#e=n,e.Z(),e.setProvisionalExports(P(t,new WeakRef(e),t.M.length-1,e.instance,e.Y),!1),m(t,o=>{if(o){let c=f(()=>t[o],r=>{if(r===e.instance)return;let i=e.instance;e.exports=r,e.instance=r,e.Y.forEach((a,l)=>t.requestUpdate(a,i[l])),e.#t&&i.destroy(),e.#t=!1},{sync:!0});e.onDestroy(c.remove)}},e.exports)}#t;#o;#e;get exports(){return w(this.#o),super.exports}set exports(t){super.exports=t,this.#o.notify()}Z(){let t=this;t.instance="prototype"in t.#e&&"declaredClass"in t.#e.prototype?new t.#e:t.#e(),t.#t=!0}hostConnected(){this.exports=this.instance}hostDestroy(){this.#t&&this.instance.destroy?.()}},U=E(u),P=(s,t,n,e,o)=>new Proxy(e,{get:(c,r)=>{let i=c[r];if(typeof r=="symbol"||o.has(r))return i;let a=s.M[n];return a.A=r,h(s,l=>{if(a.A=void 0,l!==void 0){let p=l.key;o.set(r,p);let d=s.constructor.getPropertyOptions(p),y=r!==p&&p.toLowerCase().includes("disable");k(t,d,r,p,y),d.i===void 0&&A(d,n,r,y)}},i)}}),k=(s,t,n,e,o,c)=>c=f(()=>{let r=s.deref();return r===void 0||r.component.manager.destroyed?c=c.remove():r.exports[n]},(r,i)=>{if(!c)return;s.deref().component?.requestUpdate(e,o?!i:i),t.c=!1},{sync:!0}),A=(s,t,n,e)=>{s.d.get=function(){let o=this.M[t]?.exports[n];return e?!o:o},s.d.set=function(o){let c=this.M[t];c.A!==n&&(c.exports[n]=e?!o:o)}};var O=s=>{let t=class extends g{},n=typeof s=="function"?s():s,e=Object.getOwnPropertyDescriptors(n);for(let[c,r]of Object.entries(e))Object.defineProperty(t.prototype,c,r),C()(t.prototype,c);let o=b()(t);return new o},V=s=>{let t=typeof s=="function"?s():s,n=O(t);return{state:n,get:e=>n[e],set:(e,o)=>n.set(e,o),onChange:(e,o)=>f(()=>n[e],c=>o(c),{sync:!0}).remove}};return V},"core/reactiveUtils","applications/Components/reactiveUtils","core/accessorSupport/decorators","core/Accessor")
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{a as s}from"./
|
3
|
+
v1.1.0-next.20250818 */
|
4
|
+
import{a as s}from"./LSY2W6B3.js";import"./MAW34AAC.js";import"./GOQGQPLA.js";import"./N3UZMVOV.js";import"./5UGF2RMZ.js";import"./ZMGI6JKK.js";import"./6LNJ4H2K.js";import"./6EKR2ASQ.js";import"./Y36ZRJKA.js";import"./WIXP6VK5.js";import"./OSBOGUD2.js";import"./GMSO7XSN.js";import"./GV4WSWWJ.js";import"./2B2N2WJX.js";import"./F4ZZRUWR.js";import"./RWMTRFMU.js";import"./LMSKXNKA.js";import"./V7N4SGEA.js";import"./UPWRM3QA.js";import"./QP2GTGLR.js";import"./N5O6ZEGZ.js";import"./23TMCFRN.js";import"./CAHIXJAC.js";import"./333HWSMJ.js";var c=async(e,l,n)=>{let{isSharedUpdate:i,leavingDisallowed:t}=l;return{type:"Layout",elements:[{type:"Section",labelKey:`${e}.sections.membershipAccess.label`,elements:[{labelKey:`${e}.fields.membershipAccess.label`,scope:"/properties/membershipAccess",type:"Control",options:{control:"hub-field-input-tile-select",labels:[`{{${e}.fields.membershipAccess.org.description:translate}}`,`{{${e}.fields.membershipAccess.collab.description:translate}}`,`{{${e}.fields.membershipAccess.any.description:translate}}`],rules:[[{effect:s.NONE}],[{effect:s.DISABLE,conditions:[t]}],[{effect:s.DISABLE,conditions:[t]},{effect:s.DISABLE,conditions:[i]}]]},rules:[{effect:s.RESET,conditions:[t]},{effect:s.RESET,conditions:[i,{scope:"/properties/membershipAccess",schema:{const:"anyone"}}]}]},{labelKey:`${e}.fields.contributeContent.label`,scope:"/properties/isViewOnly",type:"Control",options:{control:"hub-field-input-tile-select",labels:[`{{${e}.fields.contributeContent.members.description:translate}}`,`{{${e}.fields.contributeContent.admins.description:translate}}`]}}]}]}};export{c as buildUiSchema};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
3
|
+
v1.1.0-next.20250818 */
|
4
4
|
function V(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]]);return t}function F(r){return Object.keys(r).some(e=>{let t=r[e];if(!t)return!1;switch(t&&t.toParam&&(t=t.toParam()),t.constructor.name){case"Array":return!1;case"Object":return!1;case"Date":return!1;case"Function":return!1;case"Boolean":return!1;case"String":return!1;case"Number":return!1;default:return!0}})}function M(r){let e={};return Object.keys(r).forEach(t=>{var n,o;let s=r[t];if(s&&s.toParam&&(s=s.toParam()),!s&&s!==0&&typeof s!="boolean"&&typeof s!="string")return;let i=s.constructor.name,a;switch(i){case"Array":let u=(o=(n=s[0])===null||n===void 0?void 0:n.constructor)===null||o===void 0?void 0:o.name;a=u==="Array"?s:u==="Object"?JSON.stringify(s):s.join(",");break;case"Object":a=JSON.stringify(s);break;case"Date":a=s.valueOf();break;case"Function":a=null;break;case"Boolean":a=s+"";break;default:a=s;break}(a||a===0||typeof a=="string"||Array.isArray(a))&&(e[t]=a)}),e}function Q(r,e){return Array.isArray(e)&&e[0]&&Array.isArray(e[0])?e.map(t=>Q(r,t)).join("&"):encodeURIComponent(r)+"="+encodeURIComponent(e)}function T(r){let e=M(r);return Object.keys(e).map(t=>Q(t,e[t])).join("&")}var X=globalThis.FormData,Oe=globalThis.File,Re=globalThis.Blob;function Y(r,e){let t=F(r)||e,n=M(r);if(t){let o=new X;return Object.keys(n).forEach(s=>{if(typeof Blob<"u"&&n[s]instanceof Blob){let i=n.fileName||n[s].name||s;o.append(s,n[s],i)}else o.append(s,n[s])}),o}else return T(r)}var k=class extends Error{constructor(e,t,n,o,s){super(e);let i=new.target.prototype;Object.setPrototypeOf(this,i),e=e||"UNKNOWN_ERROR",t=t||"UNKNOWN_ERROR_CODE",this.name="ArcGISRequestError",this.message=t==="UNKNOWN_ERROR_CODE"?e:`${t}: ${e}`,this.originalMessage=e,this.code=t,this.response=n,this.url=o,this.options=s}};var de={noCorsDomains:[],crossOriginNoCorsDomains:{},pendingNoCorsRequests:{}},G="ARCGIS_REST_JS_NO_CORS";globalThis[G]||(globalThis[G]=Object.assign({},de));var g=globalThis[G];function B(r){let e=new URL(r);r=e.origin+e.pathname,e.search.includes("f=json")&&(r+="?f=json");let t=e.origin;return g.pendingNoCorsRequests[t]?g.pendingNoCorsRequests[t]:(g.pendingNoCorsRequests[t]=fetch(r,{mode:"no-cors",credentials:"include",cache:"no-store"}).then(n=>{g.noCorsDomains.indexOf(t)===-1&&g.noCorsDomains.push(t),g.crossOriginNoCorsDomains[t.toLowerCase()]=Date.now(),delete g.pendingNoCorsRequests[t]}).catch(n=>(delete g.pendingNoCorsRequests[t],Promise.reject(new Error(`no-cors request to ${t} failed`)))),g.pendingNoCorsRequests[t])}function Z(r){r.forEach(e=>{e=e.toLowerCase(),/^https?:\/\//.test(e)?L(e):(L("http://"+e),L("https://"+e))})}function L(r){let t=new URL(r).origin;g.noCorsDomains.indexOf(t)===-1&&g.noCorsDomains.push(t)}function z(r){let e=!1;if(g.noCorsDomains.length){let t=new URL(r).origin.toLowerCase();e=g.noCorsDomains.some(n=>t.includes(n))}return e}function ee(r){let e=!1;if(z(r)){let t=new URL(r).origin.toLowerCase(),n=g.crossOriginNoCorsDomains[t]||0;Date.now()-60*6e4>n&&(e=!0)}return e}function te(r){console&&console.warn&&console.warn.apply(console,[r])}function re(){return Promise.resolve({fetch:globalThis.fetch,Headers:globalThis.Headers,Response:globalThis.Response,Request:globalThis.Request})}function ne(r,e){var t;if(!e&&!window||!r)return!1;{e=e||window;let n=(t=e.location)===null||t===void 0?void 0:t.origin;return r.startsWith(n)}}var J="@esri/arcgis-rest-js";function me(){return globalThis.DEFAULT_ARCGIS_REQUEST_OPTIONS||{httpMethod:"POST",params:{f:"json"}}}var A=class extends k{constructor(e="AUTHENTICATION_ERROR",t="AUTHENTICATION_ERROR_CODE",n,o,s){super(e,t,n,o,s),this.name="ArcGISAuthError",this.message=t==="AUTHENTICATION_ERROR_CODE"?e:`${t}: ${e}`;let i=new.target.prototype;Object.setPrototypeOf(this,i)}retry(e,t=1){let n=0,o=(s,i)=>{n=n+1,e(this.url,this.options).then(a=>{let u=Object.assign(Object.assign({},this.options),{authentication:a});return oe(this.url,u)}).then(a=>{s(a)}).catch(a=>{a.name==="ArcGISAuthError"&&n<t?o(s,i):a.name===this.name&&a.message===this.message&&n>=t?i(this):i(a)})};return new Promise((s,i)=>{o(s,i)})}};function ge(r,e,t,n,o){if(r.code>=400){let{message:s,code:i}=r;throw new k(s,i,r,e,n)}if(r.error){let{message:s,code:i,messageCode:a}=r.error,u=a||i||"UNKNOWN_ERROR_CODE";throw i===498||i===499?o||new A(s,u,r,e,n):new k(s,u,r,e,n)}if(r.status==="failed"||r.status==="failure"){let s,i="UNKNOWN_ERROR_CODE";try{s=JSON.parse(r.statusMessage).message,i=JSON.parse(r.statusMessage).code}catch{s=r.statusMessage||r.message}throw new k(s,i,r,e,n)}return r}function oe(r,e){let t=me(),n=Object.assign(Object.assign(Object.assign({httpMethod:"POST"},t),e),{params:Object.assign(Object.assign({},t.params),e.params),headers:Object.assign(Object.assign({},t.headers),e.headers)}),{httpMethod:o,rawResponse:s}=n,i=Object.assign({f:"json"},n.params),a=null,u={method:o,signal:n.signal,credentials:n.credentials||"same-origin"};z(r)&&(u.credentials="include"),n.headers&&n.headers["X-Esri-Auth-Client-Id"]&&r.indexOf("/oauth2/platformSelf")>-1&&(u.credentials="include");let E;if(typeof n.authentication=="string"){let c=n.authentication;E={portal:"https://www.arcgis.com/sharing/rest",getToken:()=>Promise.resolve(c)},!n.authentication.startsWith("AAPK")&&!n.authentication.startsWith("AATK")&&!n.suppressWarnings&&!globalThis.ARCGIS_REST_JS_SUPPRESS_TOKEN_WARNING&&(te("Using an oAuth 2.0 access token directly in the token option is discouraged. Consider using ArcGISIdentityManager or Application session. See https://esriurl.com/arcgis-rest-js-direct-token-warning for more information."),globalThis.ARCGIS_REST_JS_SUPPRESS_TOKEN_WARNING=!0)}else E=n.authentication;let p=r,d=!1;typeof window<"u"&&(d=ne(r));let R=!d&&ee(r);n.headers&&n.headers["X-Esri-Auth-Client-Id"]&&r.indexOf("/oauth2/platformSelf")>-1&&(u.credentials="include");let S=Promise.resolve();return R&&(u.credentials="include",S=B(r)),S.then(()=>E?E.getToken(r).catch(c=>(c.url=r,c.options=n,a=c,Promise.resolve(""))):Promise.resolve("")).then(c=>{c.length&&(i.token=c),E&&E.getDomainCredentials&&(u.credentials=E.getDomainCredentials(r));let l={};if(u.method==="GET"){i.token&&n.hideToken&&typeof window>"u"&&(l["X-Esri-Authorization"]=`Bearer ${i.token}`,delete i.token);let b=T(i)===""?r:r+"?"+T(i);n.maxUrlLength&&b.length>n.maxUrlLength||!n.maxUrlLength&&b.length>2e3||i.token&&n.hideToken?(u.method="POST",c.length&&n.hideToken&&(i.token=c,delete l["X-Esri-Authorization"])):r=b}let m=new RegExp("/items/.+/updateResources").test(r);return u.method==="POST"&&(u.body=Y(i,m)),u.headers=Object.assign(Object.assign({},l),n.headers),(typeof window>"u"||window&&typeof window.document>"u")&&!u.headers.referer&&(u.headers.referer=J),!F(i)&&!m&&(u.headers["Content-Type"]="application/x-www-form-urlencoded"),globalThis.fetch?globalThis.fetch(r,u):re().then(({fetch:h})=>h(r,u))}).then(c=>{if(!c.ok)return c.json().then(l=>{let{status:m,statusText:h}=c,{message:b,details:D}=l.error,v=`${b}. ${D?D.join(" "):""}`.trim();throw new k(v,`HTTP ${m} ${h}`,l,r,n)}).catch(l=>{if(l.name==="ArcGISRequestError")throw l;let{status:m,statusText:h}=c;throw new k(h,`HTTP ${m}`,c,r,n)});if(s)return c;switch(i.f){case"json":return c.json();case"geojson":return c.json();case"html":return c.text();case"text":return c.text();default:return c.blob()}}).then(c=>{if((i.f==="json"||i.f==="geojson")&&!s){let l=ge(c,p,i,n,a);if(c&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(r)&&Array.isArray(c.authorizedCrossOriginNoCorsDomains)&&Z(c.authorizedCrossOriginNoCorsDomains),a){let m=r.toLowerCase().split(/\/rest(\/admin)?\/services\//)[0];n.authentication.federatedServers[m]={token:[],expires:new Date(Date.now()+86400*1e3)},a=null}return l}else return c})}function f(r,e={params:{f:"json"}}){let{request:t}=e,n=V(e,["request"]);return t?t(r,n):oe(r,n).catch(o=>o instanceof A&&e.authentication&&typeof e.authentication!="string"&&e.authentication.canRefresh&&e.authentication.refreshCredentials?o.retry(()=>e.authentication.refreshCredentials(),1):Promise.reject(o))}function we(r){let[e,t]=r.split("=");return{key:decodeURIComponent(e),value:decodeURIComponent(t)}}function se(r){return!r||r.length<=0?{}:r.replace(/^#/,"").replace(/^\?/,"").split("&").reduce((e,t)=>{let{key:n,value:o}=we(t);return e[n]=o,e},{})}var ie=300*1e3;function C(r,e){let t=e;return t.rawResponse=!1,f(r,t).then(n=>{if("token"in n&&"expires"in n)return{token:n.token,username:e.params.username,expires:new Date(n.expires)};let o={token:n.access_token,username:n.username,expires:new Date(Date.now()+n.expires_in*1e3-ie),ssl:n.ssl===!0};return n.refresh_token&&(o.refreshToken=n.refresh_token),n.refresh_token_expires_in&&(o.refreshTokenExpires=new Date(Date.now()+n.refresh_token_expires_in*1e3-ie)),o})}function w(r){return typeof r!="string"||(r=r.trim(),r[r.length-1]==="/"&&(r=r.slice(0,-1))),r}var q=/^https?:\/\/(\S+)\.arcgis\.com.+/;function ae(r){return q.test(r)}function Ee(r){if(!q.test(r))return r;switch(H(r)){case"dev":return"https://devext.arcgis.com/sharing/rest";case"qa":return"https://qaext.arcgis.com/sharing/rest";default:return"https://www.arcgis.com/sharing/rest"}}function H(r){if(!q.test(r))return null;let t=r.match(q)[1].split(".").pop();return t.includes("dev")?"dev":t.includes("qa")?"qa":"production"}function ce(r,e){let t=w(Ee(e)).replace(/https?:\/\//,""),n=w(r).replace(/https?:\/\//,"");return new RegExp(n,"i").test(t)}function ue(r,e){let t=ae(r),n=ae(e),o=H(r),s=H(e);return!!(t&&n&&o===s)}function le(r,e,t="https://www.arcgis.com/sharing/rest"){let n=`${t}/oauth2/validateAppAccess`;return f(n,{method:"POST",params:{f:"json",client_id:e,token:r}})}function rt(r,e,t){let n=["params","httpMethod","rawResponse","authentication","hideToken","portal","credentials","maxUrlLength","headers","signal","suppressWarnings","request"],o=Object.assign(Object.assign({params:{}},t),r);return o.params=e.reduce((s,i)=>((r[i]||typeof r[i]=="boolean"||typeof r[i]=="number"&&r[i]===0)&&(s[i]=r[i]),s),o.params),n.reduce((s,i)=>(o[i]&&(s[i]=o[i]),s),{})}var x;(function(r){r.TOKEN_REFRESH_FAILED="TOKEN_REFRESH_FAILED",r.GENERATE_TOKEN_FOR_SERVER_FAILED="GENERATE_TOKEN_FOR_SERVER_FAILED",r.REFRESH_TOKEN_EXCHANGE_FAILED="REFRESH_TOKEN_EXCHANGE_FAILED",r.NOT_FEDERATED="NOT_FEDERATED",r.UNKNOWN_ERROR_CODE="UNKNOWN_ERROR_CODE"})(x||(x={}));var y=class extends Error{constructor(e="UNKNOWN_ERROR",t=x.UNKNOWN_ERROR_CODE,n,o,s){super(e);let i=new.target.prototype;Object.setPrototypeOf(this,i),this.name="ArcGISTokenRequestError",this.message=`${t}: ${e}`,this.originalMessage=e,this.code=t,this.response=n,this.url=o,this.options=s}};var N=class extends Error{constructor(){super("The user has denied your authorization request.");let t=new.target.prototype;Object.setPrototypeOf(this,t),this.name="ArcGISAccessDeniedError"}};var he;(function(r){r.ArcGISRequestError="ArcGISRequestError",r.ArcGISAuthError="ArcGISAuthError",r.ArcGISAccessDeniedError="ArcGISAccessDeniedError",r.ArcGISTokenRequestError="ArcGISTokenRequestError"})(he||(he={}));var P=class{constructor(e){this.portal=e.portal?w(e.portal):"https://www.arcgis.com/sharing/rest",this._username=e.username}get username(){if(this._username)return this._username;if(this._user&&this._user.username)return this._user.username}getUsername(){return this.username?Promise.resolve(this.username):this.getUser().then(e=>e.username)}getUser(e){if(this._pendingUserRequest)return this._pendingUserRequest;if(this._user)return Promise.resolve(this._user);{let t=`${this.portal}/community/self`,n=Object.assign(Object.assign({httpMethod:"GET",authentication:this},e),{rawResponse:!1});return this._pendingUserRequest=f(t,n).then(o=>(this._user=o,this._pendingUserRequest=null,o)),this._pendingUserRequest}}clearCachedUserInfo(){this._user=null}};var K;(function(r){r.Success="Succeeded",r.Failed="Failed",r.Waiting="Waiting",r.Cancelled="Cancelled",r.Cancelling="Cancelling",r.New="New",r.Executing="Executing",r.Submitted="Submitted",r.Failure="Failure",r.TimedOut="TimedOut",r.Error="Error",r.Status="Etatus",r.Unknown="Unknown"})(K||(K={}));function fe(r){let e=`${w(r.portal||"https://www.arcgis.com/sharing/rest")}/oauth2/revokeToken/`,t=r.token,n=r.clientId;delete r.portal,delete r.clientId,delete r.token;let o=Object.assign(Object.assign({},r),{httpMethod:"POST",params:{client_id:n,auth_token:t}});return f(e,o).then(s=>{if(!s.success)throw new k("Unable to revoke token",500,s,e,o);return s})}function $(r,e=window){return!e&&window&&(e=window),e.btoa(String.fromCharCode.apply(null,r)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function pe(r,e=window){if(!e&&window&&(e=window),r&&e.isSecureContext&&e.crypto&&e.crypto.subtle){let n=new e.TextEncoder().encode(r);return e.crypto.subtle.digest("SHA-256",n).then(o=>$(new Uint8Array(o),e))}return Promise.resolve(null)}function W(r){!r&&window&&(r=window);let e=r.crypto.getRandomValues(new Uint8Array(32));return $(e)}function _e(r){return typeof r.userId=="string"||typeof r.expires=="number"}var O=class r extends P{constructor(e){if(super(e),this.clientId=e.clientId,this._refreshToken=e.refreshToken,this._refreshTokenExpires=e.refreshTokenExpires,this.password=e.password,this._token=e.token,this._tokenExpires=e.tokenExpires,this.portal=e.portal?w(e.portal):"https://www.arcgis.com/sharing/rest",this.ssl=e.ssl,this.provider=e.provider||"arcgis",this.tokenDuration=e.tokenDuration||20160,this.redirectUri=e.redirectUri,this.server=e.server,this.referer=e.referer,this.federatedServers={},this.trustedDomains=[],e.server){let t=this.getServerRootUrl(e.server);this.federatedServers[t]={token:e.token,expires:e.tokenExpires}}this._pendingTokenRequests={}}get token(){return this._token}get tokenExpires(){return this._tokenExpires}get refreshToken(){return this._refreshToken}get refreshTokenExpires(){return this._refreshTokenExpires}get canRefresh(){return!!(this.username&&this.password||this.clientId&&this.refreshToken&&this.redirectUri)}static beginOAuth2(e,t){!t&&window&&(t=window);let{portal:n,provider:o,clientId:s,expiration:i,redirectUri:a,popup:u,popupWindowFeatures:E,locale:p,params:d,style:R,pkce:S,state:c}=Object.assign({portal:"https://www.arcgis.com/sharing/rest",provider:"arcgis",expiration:20160,popup:!0,popupWindowFeatures:"height=400,width=600,menubar=no,location=yes,resizable=yes,scrollbars=yes,status=yes",locale:"",style:"",pkce:!0},e),l=c||W(t),m=`ARCGIS_REST_JS_AUTH_STATE_${s}`;t.localStorage.setItem(m,l);let h=`${w(n)}/oauth2/authorize`,b={client_id:s,response_type:S?"code":"token",expiration:i,redirect_uri:a,state:JSON.stringify({id:l,originalUrl:t.location.href}),locale:p,style:R};o!=="arcgis"&&(h=`${w(n)}/oauth2/social/authorize`,b.socialLoginProviderName=o,b.autoAccountCreateForSocial=!0);let D;if(S){let v=W(t),U=`ARCGIS_REST_JS_CODE_VERIFIER_${s}`;t.localStorage.setItem(U,v),D=pe(v,t).then(function(_){b.code_challenge_method=_?"S256":"plain",b.code_challenge=_||v})}else D=Promise.resolve();return D.then(()=>{if(h=`${h}?${T(b)}`,d&&(h=`${h}&${T(d)}`),u)return new Promise((v,U)=>{t.addEventListener(`arcgis-rest-js-popup-auth-${s}`,_=>{if(_.detail.error==="access_denied"){let j=new N;return U(j),j}if(_.detail.errorMessage){let j=new A(_.detail.errorMessage,_.detail.error);return U(j),j}v(new r({clientId:s,portal:n,ssl:_.detail.ssl,token:_.detail.token,tokenExpires:_.detail.expires,username:_.detail.username,refreshToken:_.detail.refreshToken,refreshTokenExpires:_.detail.refreshTokenExpires,redirectUri:a}))},{once:!0}),t.open(h,"oauth-window",E),t.dispatchEvent(new CustomEvent("arcgis-rest-js-popup-auth-start"))});t.location.href=h})}static completeOAuth2(e,t){!t&&window&&(t=window);let{portal:n,clientId:o,popup:s,pkce:i,redirectUri:a}=Object.assign({portal:"https://www.arcgis.com/sharing/rest",popup:!0,pkce:!0},e),u=`ARCGIS_REST_JS_AUTH_STATE_${o}`,E=t.localStorage.getItem(u),p=se(i?t.location.search.replace(/^\?/,""):t.location.hash.replace(/^#/,"")),d=p&&p.state?JSON.parse(p.state):void 0;function R(c,l,m){if(t.localStorage.removeItem(u),s&&t.opener){t.opener.dispatchEvent(new CustomEvent(`arcgis-rest-js-popup-auth-${o}`,{detail:{error:l,errorMessage:c}})),t.close();return}return m&&t.history.replaceState(t.history.state,"",m),l==="access_denied"?Promise.reject(new N):Promise.reject(new A(c,l))}function S(c,l){if(t.localStorage.removeItem(u),s&&t.opener){t.opener.dispatchEvent(new CustomEvent(`arcgis-rest-js-popup-auth-${o}`,{detail:Object.assign({},c)})),t.close();return}return t.history.replaceState(t.history.state,"",l),new r({clientId:o,portal:n,ssl:c.ssl,token:c.token,tokenExpires:c.expires,username:c.username,refreshToken:c.refreshToken,refreshTokenExpires:c.refreshTokenExpires,redirectUri:a||location.href.replace(location.search,"")})}if(!E||!d)return R("No authentication state was found, call `ArcGISIdentityManager.beginOAuth2(...)` to start the authentication process.","no-auth-state");if(d.id!==E)return R("Saved client state did not match server sent state.","mismatched-auth-state");if(p.error){let c=p.error,l=p.error_description||"Unknown error";return R(l,c,d.originalUrl)}if(i&&p.code){let c=w(`${n}/oauth2/token/`),l=`ARCGIS_REST_JS_CODE_VERIFIER_${o}`,m=t.localStorage.getItem(l);return t.localStorage.removeItem(l),C(c,{httpMethod:"POST",params:{client_id:o,code_verifier:m,grant_type:"authorization_code",redirect_uri:a||location.href.replace(location.search,""),code:p.code}}).then(h=>S(Object.assign(Object.assign({},h),d),d.originalUrl)).catch(h=>R(h.originalMessage,h.code,d.originalUrl))}return!i&&p.access_token?Promise.resolve(S(Object.assign({token:p.access_token,expires:new Date(Date.now()+parseInt(p.expires_in,10)*1e3),ssl:p.ssl==="true",username:p.username},d),d.originalUrl)):R("Unknown error","oauth-error",d.originalUrl)}static fromParent(e,t){!t&&window&&(t=window);let n;return new Promise((o,s)=>{n=i=>{if(i.source===t.parent&&i.data)try{return o(r.parentMessageHandler(i))}catch(a){return s(a)}},t.addEventListener("message",n,!1),t.parent.postMessage({type:"arcgis:auth:requestCredential"},e)}).then(o=>(t.removeEventListener("message",n,!1),o))}static authorize(e,t){let{portal:n,clientId:o,expiration:s,redirectUri:i,state:a}=Object.assign({portal:"https://arcgis.com/sharing/rest",expiration:20160},e),u={client_id:o,expiration:s,response_type:"code",redirect_uri:i};a&&(u.state=a);let E=`${n}/oauth2/authorize?${T(u)}`;t.writeHead(301,{Location:E}),t.end()}static exchangeAuthorizationCode(e,t){let{portal:n,clientId:o,redirectUri:s}=Object.assign({portal:"https://www.arcgis.com/sharing/rest"},e);return C(`${n}/oauth2/token`,{params:{grant_type:"authorization_code",client_id:o,redirect_uri:s,code:t}}).then(i=>new r({clientId:o,portal:n,ssl:i.ssl,redirectUri:s,refreshToken:i.refreshToken,refreshTokenExpires:i.refreshTokenExpires,token:i.token,tokenExpires:i.expires,username:i.username})).catch(i=>{throw new y(i.message,x.REFRESH_TOKEN_EXCHANGE_FAILED,i.response,i.url,i.options)})}static deserialize(e){let t=JSON.parse(e);return new r({clientId:t.clientId,refreshToken:t.refreshToken,refreshTokenExpires:t.refreshTokenExpires?new Date(t.refreshTokenExpires):void 0,username:t.username,password:t.password,token:t.token,tokenExpires:t.tokenExpires?new Date(t.tokenExpires):void 0,portal:t.portal,ssl:t.ssl,tokenDuration:t.tokenDuration,redirectUri:t.redirectUri,server:t.server})}static fromCredential(e,t){let n=typeof e.ssl<"u"?e.ssl:!0,o=e.expires||Date.now()+72e5;return t.hasServer?new r({server:e.server,ssl:n,token:e.token,username:e.userId,tokenExpires:new Date(o)}):new r({portal:w(e.server.includes("sharing/rest")?e.server:e.server+"/sharing/rest"),ssl:n,token:e.token,username:e.userId,tokenExpires:new Date(o)})}static parentMessageHandler(e){if(e.data.type==="arcgis:auth:credential"){let t=e.data.credential;return _e(t)?r.fromCredential(t,{hasPortal:!0,hasServer:!1,server:t.server}):new r(t)}if(e.data.type==="arcgis:auth:error"){let t=new Error(e.data.error.message);throw t.name=e.data.error.name,t}else throw new Error("Unknown message type.")}static destroy(e){return fe({clientId:e.clientId,portal:e.portal,token:e.refreshToken||e.token})}static fromToken(e){let t=new r(e);return t.getUser().then(()=>t)}static signIn(e){let t=new r(e);return t.getUser().then(()=>t)}toCredential(){return{expires:this.tokenExpires.getTime(),server:this.server||this.portal,ssl:this.ssl,token:this.token,userId:this.username}}getPortal(e){if(this._pendingPortalRequest)return this._pendingPortalRequest;if(this._portalInfo)return Promise.resolve(this._portalInfo);{let t=`${this.portal}/portals/self`,n=Object.assign(Object.assign({httpMethod:"GET",authentication:this},e),{rawResponse:!1});return this._pendingPortalRequest=f(t,n).then(o=>(this._portalInfo=o,this._pendingPortalRequest=null,o)),this._pendingPortalRequest}}getToken(e,t){return ue(this.portal,e)?this.getFreshToken(t):new RegExp(this.portal,"i").test(e)?this.getFreshToken(t):this.getTokenForServer(e,t)}validateAppAccess(e){return this.getToken(this.portal).then(t=>le(t,e))}toJSON(){return{type:"ArcGISIdentityManager",clientId:this.clientId,refreshToken:this.refreshToken,refreshTokenExpires:this.refreshTokenExpires||void 0,username:this.username,password:this.password,token:this.token,tokenExpires:this.tokenExpires||void 0,portal:this.portal,ssl:this.ssl,tokenDuration:this.tokenDuration,redirectUri:this.redirectUri,server:this.server}}serialize(){return JSON.stringify(this)}enablePostMessageAuth(e,t){!t&&window&&(t=window),this._hostHandler=this.createPostMessageHandler(e),t.addEventListener("message",this._hostHandler,!1)}disablePostMessageAuth(e){!e&&window&&(e=window),e.removeEventListener("message",this._hostHandler,!1)}refreshCredentials(e){return this.clearCachedUserInfo(),this.username&&this.password?this.refreshWithUsernameAndPassword(e):this.clientId&&this.refreshToken?this.refreshWithRefreshToken():Promise.reject(new y("Unable to refresh token. No refresh token or password present.",x.TOKEN_REFRESH_FAILED))}getServerRootUrl(e){let[t]=w(e).split(/\/rest(\/admin)?\/services(?:\/|#|\?|$)/),[n,o,s]=t.match(/(https?:\/\/)(.+)/),[i,...a]=s.split("/");return`${o}${i.toLowerCase()}/${a.join("/")}`}getDomainCredentials(e){return!this.trustedDomains||!this.trustedDomains.length?"same-origin":(e=e.toLowerCase(),this.trustedDomains.some(t=>e.startsWith(t.toLowerCase()))?"include":"same-origin")}signOut(){return r.destroy(this)}createPostMessageHandler(e){return t=>{let n=e.indexOf(t.origin)>-1,o=t.data.type==="arcgis:auth:requestCredential",s=this.tokenExpires.getTime()>Date.now();if(n&&o){let i={};if(s){let a=this.toCredential();a.server=a.server.replace("/sharing/rest",""),i={type:"arcgis:auth:credential",credential:a}}else i={type:"arcgis:auth:error",error:{name:"tokenExpiredError",message:"Token was expired, and not returned to the child application"}};t.source.postMessage(i,t.origin)}}}getTokenForServer(e,t){let n=this.getServerRootUrl(e),o=this.federatedServers[n];return o&&o.expires&&o.expires.getTime()>Date.now()?Promise.resolve(o.token):this._pendingTokenRequests[n]?this._pendingTokenRequests[n]:(this._pendingTokenRequests[n]=this.fetchAuthorizedDomains().then(()=>f(`${n}/rest/info`,{credentials:this.getDomainCredentials(e)}).then(s=>{if(s.owningSystemUrl){if(ce(s.owningSystemUrl,this.portal))return f(`${s.owningSystemUrl}/sharing/rest/info`,t);throw new y(`${e} is not federated with ${this.portal}.`,x.NOT_FEDERATED)}else{if(s.authInfo&&this.federatedServers[n]!==void 0)return Promise.resolve({authInfo:s.authInfo});throw new y(`${e} is not federated with any portal and is not explicitly trusted.`,x.NOT_FEDERATED)}}).then(s=>this.token&&this.tokenExpires.getTime()<Date.now()?this.server?this.refreshCredentials().then(()=>({token:this.token,expires:this.tokenExpires})):this.refreshCredentials().then(()=>this.generateTokenForServer(s.authInfo.tokenServicesUrl,n)):this.generateTokenForServer(s.authInfo.tokenServicesUrl,n)).then(s=>(this.federatedServers[n]=s,delete this._pendingTokenRequests[n],s.token))),this._pendingTokenRequests[n])}generateTokenForServer(e,t){return f(e,{params:{token:this.token,serverUrl:t,expiration:this.tokenDuration}}).then(n=>({token:n.token,expires:new Date(n.expires-1e3*60*5)})).catch(n=>{throw new y(n.message,x.GENERATE_TOKEN_FOR_SERVER_FAILED,n.response,n.url,n.options)})}getFreshToken(e){return this.token&&!this.tokenExpires?Promise.resolve(this.token):this.token&&this.tokenExpires&&this.tokenExpires.getTime()>Date.now()?Promise.resolve(this.token):(this._pendingTokenRequests[this.portal]||(this._pendingTokenRequests[this.portal]=this.refreshCredentials(e).then(()=>(this._pendingTokenRequests[this.portal]=null,this.token))),this._pendingTokenRequests[this.portal])}refreshWithUsernameAndPassword(e){let t={username:this.username,password:this.password,expiration:this.tokenDuration,client:"referer",referer:this.referer?this.referer:typeof window<"u"&&typeof window.document<"u"&&window.location&&window.location.origin?window.location.origin:J};return(this.server?f(`${this.getServerRootUrl(this.server)}/rest/info`).then(n=>f(n.authInfo.tokenServicesUrl,Object.assign({params:t},e))):f(`${this.portal}/generateToken`,Object.assign({params:t},e))).then(n=>(this.updateToken(n.token,new Date(n.expires)),this)).catch(n=>{throw new y(n.message,x.TOKEN_REFRESH_FAILED,n.response,n.url,n.options)})}refreshWithRefreshToken(e){if(this.refreshToken&&this.refreshTokenExpires&&this.refreshTokenExpires.getTime()-864e5<Date.now())return this.exchangeRefreshToken(e);let n=Object.assign({params:{client_id:this.clientId,refresh_token:this.refreshToken,grant_type:"refresh_token"}},e);return C(`${this.portal}/oauth2/token`,n).then(o=>this.updateToken(o.token,o.expires)).catch(o=>{throw new y(o.message,x.TOKEN_REFRESH_FAILED,o.response,o.url,o.options)})}updateToken(e,t){return this._token=e,this._tokenExpires=t,this}exchangeRefreshToken(e){let t=Object.assign({params:{client_id:this.clientId,refresh_token:this.refreshToken,redirect_uri:this.redirectUri,grant_type:"exchange_refresh_token"}},e);return C(`${this.portal}/oauth2/token`,t).then(n=>(this._token=n.token,this._tokenExpires=n.expires,this._refreshToken=n.refreshToken,this._refreshTokenExpires=n.refreshTokenExpires,this)).catch(n=>{throw new y(n.message,x.REFRESH_TOKEN_EXCHANGE_FAILED,n.response,n.url,n.options)})}fetchAuthorizedDomains(){return this.server||!this.portal?Promise.resolve(this):this.getPortal().then(e=>(e.authorizedCrossOriginDomains&&e.authorizedCrossOriginDomains.length&&(this.trustedDomains=e.authorizedCrossOriginDomains.filter(t=>!t.startsWith("http://")).map(t=>t.startsWith("https://")?t:`https://${t}`)),this))}};function I(r){return console.log("DEPRECATED:, 'UserSession' is deprecated. Use 'ArcGISIdentityManager' instead."),new O(r)}I.beginOAuth2=function(...r){return console.warn("DEPRECATED:, 'UserSession.beginOAuth2' is deprecated. Use 'ArcGISIdentityManager.beginOAuth2' instead."),O.beginOAuth2(...r)};I.completeOAuth2=function(...r){return console.warn("DEPRECATED:, 'UserSession.completeOAuth2()' is deprecated. Use 'ArcGISIdentityManager.completeOAuth2()' instead."),r.length<=1&&console.warn("WARNING:, 'UserSession.completeOAuth2()' is now async and returns a promise the resolves to an instance of `ArcGISIdentityManager`."),O.completeOAuth2(...r)};I.fromParent=function(...r){return console.warn("DEPRECATED:, 'UserSession.fromParent' is deprecated. Use 'ArcGISIdentityManager.fromParent' instead."),O.fromParent(...r)};I.authorize=function(...r){return console.warn("DEPRECATED:, 'UserSession.authorize' is deprecated. Use 'ArcGISIdentityManager.authorize' instead."),O.authorize(...r)};I.exchangeAuthorizationCode=function(...r){return console.warn("DEPRECATED:, 'UserSession.exchangeAuthorizationCode' is deprecated. Use 'ArcGISIdentityManager.exchangeAuthorizationCode' instead."),O.exchangeAuthorizationCode(...r)};I.fromCredential=function(...r){return console.log("DEPRECATED:, 'UserSession.fromCredential' is deprecated. Use 'ArcGISIdentityManager.fromCredential' instead."),console.warn("WARNING:, 'UserSession.fromCredential' now requires a `ServerInfo` object from the JS API as a second parameter."),O.fromCredential(...r)};I.deserialize=function(...r){return console.log("DEPRECATED:, 'UserSession.deserialize' is deprecated. Use 'ArcGISIdentityManager.deserialize' instead."),O.deserialize(...r)};export{Y as a,te as b,A as c,f as d,rt as e,w as f,O as g};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{a as e}from"./
|
3
|
+
v1.1.0-next.20250818 */
|
4
|
+
import{a as e}from"./N5O6ZEGZ.js";var s=["hub:page:edit","hub:page:create"],a=Object.assign(Object.assign({},e),{properties:Object.assign({},e.properties)});export{s as a,a as b};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{c as t}from"./
|
3
|
+
v1.1.0-next.20250818 */
|
4
|
+
import{c as t}from"./23TMCFRN.js";import{a,c as i,d as e,e as o,f as n,g as s,h as E,i as p,j as c,k as r,l as T,n as _}from"./CAHIXJAC.js";var m={$async:!0,type:"object",required:["name"],properties:{name:a,summary:i,description:{type:"string"},access:e,location:p,tags:o,categories:n,isDiscussable:s,_thumbnail:r,_followers:{type:"object",properties:{groupAccess:Object.assign(Object.assign({},e),{enum:["private","org","public"]}),showFollowAction:{type:"boolean",default:!0},isDiscussable:s}},_associations:{type:"object",properties:{groupAccess:Object.assign(Object.assign({},e),{enum:["private","org","public"],default:"private"}),membershipAccess:{type:"string",enum:["organization","collaborators","anyone"],default:"organization"}}},view:{type:"object",properties:{embeds:{type:"array"},featuredContentIds:E,featuredImage:r,featuredImageAltText:{type:"string"},featuredImageName:{type:"string"},mapSettings:c,timeline:T,hero:{type:"string",default:t.map,enum:Object.keys(t)},heroActions:{type:"array"}}},_slug:_}};export{m as a};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{c as a}from"./
|
3
|
+
v1.1.0-next.20250818 */
|
4
|
+
import{c as a}from"./V7N4SGEA.js";import"./333HWSMJ.js";export{a as MetricSchema};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
3
|
+
v1.1.0-next.20250818 */
|
4
4
|
var E=typeof window<"u",l={Promise:E?window.Promise:void 0},m="4.25",u="next";function p(r){if(r.toLowerCase()===u)return u;var e=r&&r.match(/^(\d)\.(\d+)/);return e&&{major:parseInt(e[1],10),minor:parseInt(e[2],10)}}function w(r){return r===void 0&&(r=m),"https://js.arcgis.com/".concat(r,"/")}function g(r){r===void 0&&(r=m);var e=w(r),t=p(r);if(t!==u&&t.major===3){var n=t.minor<=10?"js/":"";return"".concat(e).concat(n,"esri/css/esri.css")}else return"".concat(e,"esri/themes/light/main.css")}function A(r){var e=document.createElement("link");return e.rel="stylesheet",e.href=r,e}function P(r,e){if(e){var t=document.querySelector(e);t.parentNode.insertBefore(r,t)}else document.head.appendChild(r)}function S(r){return document.querySelector('link[href*="'.concat(r,'"]'))}function q(r){return!r||p(r)?g(r):r}function I(r,e){var t=q(r),n=S(t);return n||(n=A(t),P(n,e)),n}var L={};function b(r){var e=document.createElement("script");return e.type="text/javascript",e.src=r,e.setAttribute("data-esri-loader","loading"),e}function f(r,e,t){var n;t&&(n=j(r,t));var o=function(){e(r),r.removeEventListener("load",o,!1),n&&r.removeEventListener("error",n,!1)};r.addEventListener("load",o,!1)}function j(r,e){var t=function(n){e(n.error||new Error("There was an error attempting to load ".concat(r.src))),r.removeEventListener("error",t,!1)};return r.addEventListener("error",t,!1),t}function h(){return document.querySelector("script[data-esri-loader]")}function s(){var r=window.require;return r&&r.on}function C(r){r===void 0&&(r={});var e={};[L,r].forEach(function(o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])});var t=e.version,n=e.url||w(t);return new l.Promise(function(o,i){var a=h();if(a){var d=a.getAttribute("src");d!==n?i(new Error("The ArcGIS API for JavaScript is already loaded (".concat(d,")."))):s()?o(a):f(a,o,i)}else if(s())i(new Error("The ArcGIS API for JavaScript is already loaded."));else{var c=e.css;if(c){var y=c===!0;I(y?t:c,e.insertCssBefore)}a=b(n),f(a,function(){a.setAttribute("data-esri-loader","loaded"),o(a)},i),document.body.appendChild(a)}})}function v(r){return new l.Promise(function(e,t){var n=window.require.on("error",t);window.require(r,function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];n.remove(),e(o)})})}function T(r,e){if(e===void 0&&(e={}),s())return v(r);var t=h(),n=t&&t.getAttribute("src");return!e.url&&n&&(e.url=n),C(e).then(function(){return v(r)})}var k=async(r,e)=>(await T(r,e)).map(t=>t.__esModule&&t.default?t.default:t);export{T as a,k as b};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{z as s}from"./
|
3
|
+
v1.1.0-next.20250818 */
|
4
|
+
import{z as s}from"./FPZJX6ZR.js";var t=s({defaultAssetPath:"https://jsdev.arcgis.com/next/solutions-components/",hydratedAttribute:"hydrated"}),{customElement:n,getAssetPath:i,setAssetPath:d}=t;t.t=void 0;t.o=void 0;t.c=void 0;t.r=void 0;export{t as a,n as b,i as c};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
4
|
-
import{f as C}from"./
|
3
|
+
v1.1.0-next.20250818 */
|
4
|
+
import{f as C}from"./SSKFDLNA.js";import"./XBSJRLOR.js";import"./67EYEWRI.js";import{b}from"./NGSZCEKR.js";import{b as g}from"./NMPXEPPL.js";import{h as u,i as r,n as h,q as _,w as d,x as p,y as m}from"./FPZJX6ZR.js";import"./333HWSMJ.js";var F=u`@layer{/**
|
5
5
|
* @license
|
6
6
|
* Copyright 2025 Esri
|
7
7
|
*
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
3
|
+
v1.1.0-next.20250818 */
|
4
4
|
function r(o){return o.reduce((n,e)=>{var i;let t=e.capabilities.includes("updateitemcontrol"),a=(i=e.userMembership)===null||i===void 0?void 0:i.memberType;return(!e.isViewOnly||e.isViewOnly&&["owner","admin"].includes(a))&&n.push({value:e.id,label:e.title,icon:t?"unlock":"view-mixed"}),n},[])}export{r as a};
|
@@ -1,4 +1,4 @@
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
2
2
|
See https://js.arcgis.com/1.1/esri/copyright.txt for details.
|
3
|
-
v1.1.0-next.
|
3
|
+
v1.1.0-next.20250818 */
|
4
4
|
var v={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,formAssociated:!1,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0,experimentalSlotFixes:!1},be=Object.defineProperty,Ne=(e,t)=>{for(var s in t)be(e,s,{get:t[s],enumerable:!0})},we=new WeakMap,xe=e=>we.get(e),I=(e,t)=>t in e,z=(e,t)=>(0,console.error)(e,t),X="http://www.w3.org/1999/xlink",re=typeof window<"u"?window:{},A=re.document||{head:{}},N={$flags$:0,$resourcesUrl$:"",jmp:e=>e(),raf:e=>requestAnimationFrame(e),ael:(e,t,s,n)=>e.addEventListener(t,s,n),rel:(e,t,s,n)=>e.removeEventListener(t,s,n),ce:(e,t)=>new CustomEvent(e,t)},Te=e=>Promise.resolve(e),P=!1,G=[],$e=[],Re=(e,t)=>s=>{e.push(s),P||(P=!0,t&&N.$flags$&4?Se(U):N.raf(U))},J=e=>{for(let t=0;t<e.length;t++)try{e[t](performance.now())}catch(s){z(s)}e.length=0},U=()=>{J(G),J($e),(P=G.length>0)&&N.raf(U)},Se=e=>Te().then(e),ke=Re($e,!0),V={},Ee="http://www.w3.org/2000/svg",Ce="http://www.w3.org/1999/xhtml",Ae=e=>e!=null,ae=e=>(e=typeof e,e==="object"||e==="function"),Le={};Ne(Le,{err:()=>ie,map:()=>Oe,ok:()=>W,unwrap:()=>De,unwrapErr:()=>Me});var W=e=>({isOk:!0,isErr:!1,value:e}),ie=e=>({isOk:!1,isErr:!0,value:e});function Oe(e,t){if(e.isOk){let s=t(e.value);return s instanceof Promise?s.then(n=>W(n)):W(s)}if(e.isErr){let s=e.value;return ie(s)}throw"should never get here"}var De=e=>{if(e.isOk)return e.value;throw e.value},Me=e=>{if(e.isErr)return e.value;throw e.value},L=(e,t="")=>()=>{},Fe=(e,t,...s)=>{let n=null,o=null,l=null,a=!1,i=!1,c=[],p=d=>{for(let $=0;$<d.length;$++)n=d[$],Array.isArray(n)?p(n):n!=null&&typeof n!="boolean"&&((a=!ae(n))&&(n=String(n)),a&&i?c[c.length-1].$text$+=n:c.push(a?B(null,n):n),i=a)};p(s);let u=B(e,null);return u.$attrs$=t,c.length>0&&(u.$children$=c),u.$key$=o,u.$name$=l,u},B=(e,t)=>{let s={$flags$:0,$tag$:e,$text$:t,$elm$:null,$children$:null};return s.$attrs$=null,s.$key$=null,s.$name$=null,s},je={},Pe=e=>e&&e.$tag$===je,Y=(e,t,s,n,o,l)=>{if(s!==n){let a=I(e,t),i=t.toLowerCase();if(t==="class"){let c=e.classList,p=Z(s),u=Z(n);c.remove(...p.filter(d=>d&&!u.includes(d))),c.add(...u.filter(d=>d&&!p.includes(d)))}else if(t==="style"){for(let c in s)(!n||n[c]==null)&&(c.includes("-")?e.style.removeProperty(c):e.style[c]="");for(let c in n)(!s||n[c]!==s[c])&&(c.includes("-")?e.style.setProperty(c,n[c]):e.style[c]=n[c])}else if(t!=="key")if(t==="ref")n&&n(e);else if(!e.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n"){if(t[2]==="-"?t=t.slice(3):I(re,i)?t=i.slice(2):t=i[2]+t.slice(3),s||n){let c=t.endsWith(ce);t=t.replace(We,""),s&&N.rel(e,t,s,c),n&&N.ael(e,t,n,c)}}else{let c=ae(n);if((a||c&&n!==null)&&!o)try{if(e.tagName.includes("-"))e[t]=n;else{let u=n??"";t==="list"?a=!1:(s==null||e[t]!=u)&&(e[t]=u)}}catch{}let p=!1;i!==(i=i.replace(/^xlink\:?/,""))&&(t=i,p=!0),n==null||n===!1?(n!==!1||e.getAttribute(t)==="")&&(p?e.removeAttributeNS(X,t):e.removeAttribute(t)):(!a||l&4||o)&&!c&&(n=n===!0?"":n,p?e.setAttributeNS(X,t,n):e.setAttribute(t,n))}}},Ue=/\s/,Z=e=>e?e.split(Ue):[],ce="Capture",We=new RegExp(ce+"$"),de=(e,t,s)=>{let n=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,o=e&&e.$attrs$||V,l=t.$attrs$||V;for(let a of ee(Object.keys(o)))a in l||Y(n,a,o[a],void 0,s,t.$flags$);for(let a of ee(Object.keys(l)))Y(n,a,o[a],l[a],s,t.$flags$)};function ee(e){return e.includes("ref")?[...e.filter(t=>t!=="ref"),"ref"]:e}var T,H,k,O=!1,D=!1,q=!1,g=!1,M=(e,t,s,n)=>{var o;let l=t.$children$[s],a=0,i,c,p;if(O||(q=!0,l.$tag$==="slot"&&(T&&n.classList.add(T+"-s"),l.$flags$|=l.$children$?2:1)),l.$text$!==null)i=l.$elm$=A.createTextNode(l.$text$);else if(l.$flags$&1)i=l.$elm$=A.createTextNode("");else{if(g||(g=l.$tag$==="svg"),i=l.$elm$=A.createElementNS(g?Ee:Ce,!O&&v.slotRelocation&&l.$flags$&2?"slot-fb":l.$tag$),g&&l.$tag$==="foreignObject"&&(g=!1),de(null,l,g),i.getRootNode().querySelector("body")&&v.scoped&&Ae(T)&&i["s-si"]!==T&&i.classList.add(i["s-si"]=T),Q(i,n),l.$children$)for(a=0;a<l.$children$.length;++a)c=M(e,l,a,i),c&&i.appendChild(c);l.$tag$==="svg"?g=!1:i.tagName==="foreignObject"&&(g=!0)}return i["s-hn"]=k,l.$flags$&3&&(i["s-sr"]=!0,i["s-cr"]=H,i["s-sn"]=l.$name$||"",i["s-rf"]=(o=l.$attrs$)==null?void 0:o.ref,p=e&&e.$children$&&e.$children$[s],p&&p.$tag$===l.$tag$&&e.$elm$&&E(e.$elm$,!1)),i},E=(e,t)=>{N.$flags$|=1;let s=Array.from(e.childNodes);e["s-sr"]&&v.experimentalSlotFixes;for(let n=s.length-1;n>=0;n--){let o=s[n];o["s-hn"]!==k&&o["s-ol"]&&(w(pe(o),o,K(o)),o["s-ol"].remove(),o["s-ol"]=void 0,o["s-sh"]=void 0,q=!0),t&&E(o,t)}N.$flags$&=-2},fe=(e,t,s,n,o,l)=>{let a=e["s-cr"]&&e["s-cr"].parentNode||e,i;for(a.shadowRoot&&a.tagName===k&&(a=a.shadowRoot);o<=l;++o)n[o]&&(i=M(null,s,o,e),i&&(n[o].$elm$=i,w(a,i,K(t))))},ue=(e,t,s)=>{for(let n=t;n<=s;++n){let o=e[n];if(o){let l=o.$elm$;ge(o),l&&(D=!0,l["s-ol"]?l["s-ol"].remove():E(l,!0),l.remove())}}},Be=(e,t,s,n,o=!1)=>{let l=0,a=0,i=0,c=0,p=t.length-1,u=t[0],d=t[p],$=n.length-1,r=n[0],f=n[$],h,y;for(;l<=p&&a<=$;)if(u==null)u=t[++l];else if(d==null)d=t[--p];else if(r==null)r=n[++a];else if(f==null)f=n[--$];else if(C(u,r,o))R(u,r,o),u=t[++l],r=n[++a];else if(C(d,f,o))R(d,f,o),d=t[--p],f=n[--$];else if(C(u,f,o))(u.$tag$==="slot"||f.$tag$==="slot")&&E(u.$elm$.parentNode,!1),R(u,f,o),w(e,u.$elm$,d.$elm$.nextSibling),u=t[++l],f=n[--$];else if(C(d,r,o))(u.$tag$==="slot"||f.$tag$==="slot")&&E(d.$elm$.parentNode,!1),R(d,r,o),w(e,d.$elm$,u.$elm$),d=t[--p],r=n[++a];else{for(i=-1,c=l;c<=p;++c)if(t[c]&&t[c].$key$!==null&&t[c].$key$===r.$key$){i=c;break}i>=0?(y=t[i],y.$tag$!==r.$tag$?h=M(t&&t[a],s,i,e):(R(y,r,o),t[i]=void 0,h=y.$elm$),r=n[++a]):(h=M(t&&t[a],s,a,e),r=n[++a]),h&&w(pe(u.$elm$),h,K(u.$elm$))}l>p?fe(e,n[$+1]==null?null:n[$+1].$elm$,s,n,a,$):a>$&&ue(t,l,p)},C=(e,t,s=!1)=>e.$tag$===t.$tag$?e.$tag$==="slot"?"$nodeId$"in e&&s&&e.$elm$.nodeType!==8?!1:e.$name$===t.$name$:s?!0:e.$key$===t.$key$:!1,K=e=>e&&e["s-ol"]||e,pe=e=>(e["s-ol"]?e["s-ol"]:e).parentNode,R=(e,t,s=!1)=>{let n=t.$elm$=e.$elm$,o=e.$children$,l=t.$children$,a=t.$tag$,i=t.$text$,c;i===null?(g=a==="svg"?!0:a==="foreignObject"?!1:g,a==="slot"&&!O||de(e,t,g),o!==null&&l!==null?Be(n,o,t,l,s):l!==null?(e.$text$!==null&&(n.textContent=""),fe(n,null,t,l,0,l.length-1)):!s&&v.updatable&&o!==null&&ue(o,0,o.length-1),g&&a==="svg"&&(g=!1)):(c=n["s-cr"])?c.parentNode.textContent=i:e.$text$!==i&&(n.data=i)},he=e=>{let t=e.childNodes;for(let s of t)if(s.nodeType===1){if(s["s-sr"]){let n=s["s-sn"];s.hidden=!1;for(let o of t)if(o!==s){if(o["s-hn"]!==s["s-hn"]||n!==""){if(o.nodeType===1&&(n===o.getAttribute("slot")||n===o["s-sn"])||o.nodeType===3&&n===o["s-sn"]){s.hidden=!0;break}}else if(o.nodeType===1||o.nodeType===3&&o.textContent.trim()!==""){s.hidden=!0;break}}}he(s)}},b=[],me=e=>{let t,s,n;for(let o of e.childNodes){if(o["s-sr"]&&(t=o["s-cr"])&&t.parentNode){s=t.parentNode.childNodes;let l=o["s-sn"];for(n=s.length-1;n>=0;n--)if(t=s[n],!t["s-cn"]&&!t["s-nr"]&&t["s-hn"]!==o["s-hn"])if(te(t,l)){let a=b.find(i=>i.$nodeToRelocate$===t);D=!0,t["s-sn"]=t["s-sn"]||l,a?(a.$nodeToRelocate$["s-sh"]=o["s-hn"],a.$slotRefNode$=o):(t["s-sh"]=o["s-hn"],b.push({$slotRefNode$:o,$nodeToRelocate$:t})),t["s-sr"]&&b.map(i=>{te(i.$nodeToRelocate$,t["s-sn"])&&(a=b.find(c=>c.$nodeToRelocate$===t),a&&!i.$slotRefNode$&&(i.$slotRefNode$=a.$slotRefNode$))})}else b.some(a=>a.$nodeToRelocate$===t)||b.push({$nodeToRelocate$:t})}o.nodeType===1&&me(o)}},te=(e,t)=>e.nodeType===1?e.getAttribute("slot")===null&&t===""||e.getAttribute("slot")===t:e["s-sn"]===t?!0:t==="",ge=e=>{e.$attrs$&&e.$attrs$.ref&&e.$attrs$.ref(null),e.$children$&&e.$children$.map(ge)},w=(e,t,s)=>{let n=e?.insertBefore(t,s);return Q(t,e),n},ye=e=>{let t=[];return e&&t.push(...e["s-scs"]||[],e["s-si"],e["s-sc"],...ye(e.parentElement)),t},Q=(e,t,s=!1)=>{var n;if(e&&t&&e.nodeType===1){let o=new Set(ye(t).filter(Boolean));if(o.size&&((n=e.classList)==null||n.add(...e["s-scs"]=[...o]),e["s-ol"]||s))for(let l of Array.from(e.childNodes))Q(l,e,!0)}},He=(e,t,s=!1)=>{var n,o,l,a,i;let c=e.$hostElement$,p=e.$cmpMeta$,u=e.$vnode$||B(null,null),d=Pe(t)?t:Fe(null,null,t);if(k=c.tagName,p.$attrsToReflect$&&(d.$attrs$=d.$attrs$||{},p.$attrsToReflect$.map(([$,r])=>d.$attrs$[r]=c[$])),s&&d.$attrs$)for(let $ of Object.keys(d.$attrs$))c.hasAttribute($)&&!["key","ref","style","class"].includes($)&&(d.$attrs$[$]=c[$]);d.$tag$=null,d.$flags$|=4,e.$vnode$=d,d.$elm$=u.$elm$=c.shadowRoot||c,T=c["s-sc"],O=(p.$flags$&1)!==0,H=c["s-cr"],D=!1,R(u,d,s);{if(N.$flags$|=1,q){me(d.$elm$);for(let $ of b){let r=$.$nodeToRelocate$;if(!r["s-ol"]){let f=A.createTextNode("");f["s-nr"]=r,w(r.parentNode,r["s-ol"]=f,r)}}for(let $ of b){let r=$.$nodeToRelocate$,f=$.$slotRefNode$;if(f){let h=f.parentNode,y=f.nextSibling;{let x=(n=r["s-ol"])==null?void 0:n.previousSibling;for(;x;){let m=(o=x["s-nr"])!=null?o:null;if(m&&m["s-sn"]===r["s-sn"]&&h===m.parentNode){for(m=m.nextSibling;m===r||m?.["s-sr"];)m=m?.nextSibling;if(!m||!m["s-nr"]){y=m;break}}x=x.previousSibling}}(!y&&h!==r.parentNode||r.nextSibling!==y)&&r!==y&&(!r["s-hn"]&&r["s-ol"]&&(r["s-hn"]=r["s-ol"].parentNode.nodeName),w(h,r,y),r.nodeType===1&&(r.hidden=(l=r["s-ih"])!=null?l:!1)),r&&typeof f["s-rf"]=="function"&&f["s-rf"](r)}else r.nodeType===1&&(s&&(r["s-ih"]=(a=r.hidden)!=null?a:!1),r.hidden=!0)}}D&&he(d.$elm$),N.$flags$&=-2,b.length=0}if(v.experimentalScopedSlotChanges&&p.$flags$&2)for(let $ of d.$elm$.childNodes)$["s-hn"]!==k&&!$["s-sh"]&&(s&&$["s-ih"]==null&&($["s-ih"]=(i=$.hidden)!=null?i:!1),$.hidden=!0);H=void 0},_e=(e,t)=>{},ze=(e,t)=>(e.$flags$|=16,_e(e,e.$ancestorComponent$),ke(()=>qe(e,t))),qe=(e,t)=>{let s=e.$hostElement$,n=L("scheduleUpdate",e.$cmpMeta$.$tagName$),o=s;if(!o)throw new Error(`Can't render component <${s.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`);let l;return l=S(o,"componentWillUpdate"),l=ne(l,()=>S(o,"componentWillRender")),n(),ne(l,()=>Qe(e,o,t))},ne=(e,t)=>Ke(e)?e.then(t).catch(s=>{console.error(s),t()}):t(),Ke=e=>e instanceof Promise||e&&e.then&&typeof e.then=="function",Qe=async(e,t,s)=>{let n=e.$hostElement$,o=L("update",e.$cmpMeta$.$tagName$);n["s-rc"];let l=L("render",e.$cmpMeta$.$tagName$);Ie(e,t,n,s),l(),o(),Xe(e)},_=null,Ie=(e,t,s,n)=>{try{_=t,t=t.render&&t.render(),e.$flags$&=-17,e.$flags$|=2,(v.hasRenderFn||v.reflect)&&(v.vdomRender||v.reflect)&&(v.hydrateServerSide||He(e,t,n))}catch(o){z(o,e.$hostElement$)}return _=null,null},se=()=>_,Xe=e=>{let t=e.$cmpMeta$.$tagName$,s=e.$hostElement$,n=L("postUpdate",t),o=s;e.$ancestorComponent$,S(o,"componentDidRender"),e.$flags$&64?(S(o,"componentDidUpdate"),n()):(e.$flags$|=64,S(o,"componentDidLoad"),n())},oe=e=>{{let t=xe(e),s=t.$hostElement$.isConnected;return s&&(t.$flags$&18)===2&&ze(t,!1),s}},S=(e,t,s)=>{if(e&&e[t])try{return e[t](s)}catch(n){z(n)}},Ge=(e,t,s)=>{let n=e.get(t);n?n.includes(s)||n.push(s):e.set(t,[s])},Je=(e,t)=>{let s;return(...n)=>{s&&clearTimeout(s),s=setTimeout(()=>{s=0,e(...n)},t)}},Ve=e=>!("isConnected"in e)||e.isConnected,le=Je(e=>{for(let t of e.keys())e.set(t,e.get(t).filter(Ve))},2e3),Ye=()=>{if(typeof se!="function")return{};let e=new Map;return{dispose:()=>e.clear(),get:t=>{let s=se();s&&Ge(e,t,s)},set:t=>{let s=e.get(t);s&&e.set(t,s.filter(oe)),le(e)},reset:()=>{e.forEach(t=>t.forEach(oe)),le(e)}}},F=e=>typeof e=="function"?e():e,Ze=(e,t=(s,n)=>s!==n)=>{let s=F(e),n=new Map(Object.entries(s??{})),o={dispose:[],get:[],set:[],reset:[]},l=new Map,a=()=>{n=new Map(Object.entries(F(e)??{})),o.reset.forEach($=>$())},i=()=>{o.dispose.forEach($=>$()),a()},c=$=>(o.get.forEach(r=>r($)),n.get($)),p=($,r)=>{let f=n.get($);t(r,f,$)&&(n.set($,r),o.set.forEach(h=>h($,r,f)))},u=typeof Proxy>"u"?{}:new Proxy(s,{get($,r){return c(r)},ownKeys($){return Array.from(n.keys())},getOwnPropertyDescriptor(){return{enumerable:!0,configurable:!0}},has($,r){return n.has(r)},set($,r,f){return p(r,f),!0}}),d=($,r)=>(o[$].push(r),()=>{j(o[$],r)});return{state:u,get:c,set:p,on:d,onChange:($,r)=>{let f=(m,ve)=>{m===$&&r(ve)},h=()=>r(F(e)[$]),y=d("set",f),x=d("reset",h);return l.set(r,{setHandler:f,resetHandler:h,propName:$}),()=>{y(),x(),l.delete(r)}},use:(...$)=>{let r=$.reduce((f,h)=>(h.set&&f.push(d("set",h.set)),h.get&&f.push(d("get",h.get)),h.reset&&f.push(d("reset",h.reset)),h.dispose&&f.push(d("dispose",h.dispose)),f),[]);return()=>r.forEach(f=>f())},dispose:i,reset:a,forceUpdate:$=>{let r=n.get($);o.set.forEach(f=>f($,r,r))},removeListener:($,r)=>{let f=l.get(r);f&&f.propName===$&&(j(o.set,f.setHandler),j(o.reset,f.resetHandler),l.delete(r))}}},j=(e,t)=>{let s=e.indexOf(t);s>=0&&(e[s]=e[e.length-1],e.length--)},et=(e,t)=>{let s=Ze(e,t);return s.use(Ye()),s};export{et as a};
|