@esri/solutions-components 1.2.0-next.13 → 1.2.0-next.15
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/{OM4UKQNZ.js → 2IH37O57.js} +2 -2
- package/dist/cdn/{UCQ5Y3GX.js → 2OB2SIIL.js} +2 -2
- package/dist/cdn/{JLNLIHGB.js → 2P5JJYFC.js} +2 -2
- package/dist/cdn/{IBB7QBCT.js → 2TO3D4JP.js} +2 -2
- package/dist/cdn/{EFUTSJBL.js → 2WF74AVG.js} +2 -2
- package/dist/cdn/{R4WW5CCG.js → 2XUD6P3Z.js} +2 -2
- package/dist/cdn/{GDKA6GQ6.js → 2Z3T6T5H.js} +2 -2
- package/dist/cdn/{G2HMKJU3.js → 2ZIVJI5H.js} +2 -2
- package/dist/cdn/{ISEVSKNV.js → 32UM7SZK.js} +1 -1
- package/dist/cdn/{UCG52BCL.js → 33TAMAB5.js} +3 -3
- package/dist/cdn/{22DI4MLQ.js → 3AFMP6IW.js} +2 -2
- package/dist/cdn/{POWA43LB.js → 3DMMKZP2.js} +2 -2
- package/dist/cdn/{OCYZRDAE.js → 3FC3AFQC.js} +2 -2
- package/dist/cdn/{2Z5HA7D5.js → 3INN5FQP.js} +2 -2
- package/dist/cdn/{66KC2NXW.js → 3LOI7YAT.js} +2 -2
- package/dist/cdn/{QETK5HEL.js → 3OK4D7RH.js} +2 -2
- package/dist/cdn/{SF3MI2B2.js → 3R547FCL.js} +2 -2
- package/dist/cdn/{3GJ7UGOW.js → 3Z34HOVN.js} +2 -2
- package/dist/cdn/{NLLWLHBU.js → 3ZHWDZ4U.js} +2 -2
- package/dist/cdn/{RAV53JFJ.js → 42XR3L6J.js} +2 -2
- package/dist/cdn/{TZBJLNXJ.js → 47LQUUSU.js} +2 -2
- package/dist/cdn/{XBZDU3YA.js → 4BD445J4.js} +2 -2
- package/dist/cdn/{XKQKAGOM.js → 4CY43SAF.js} +2 -2
- package/dist/cdn/{SSXAOZJ5.js → 4D5I5M3O.js} +2 -2
- package/dist/cdn/{555TJYQH.js → 4GRPOGJP.js} +2 -2
- package/dist/cdn/4J4LPB3C.js +4 -0
- package/dist/cdn/{NQMRDDCN.js → 4JAUYJ6Q.js} +2 -2
- package/dist/cdn/{QTNQ6E24.js → 4K2FRDTX.js} +2 -2
- package/dist/cdn/{SCJ2RD5L.js → 4P77U55T.js} +2 -2
- package/dist/cdn/{CKH5YBMU.js → 4TNONTZ6.js} +2 -2
- package/dist/cdn/{TDTBNJ5F.js → 4UC3TN7N.js} +2 -2
- package/dist/cdn/{BQ7CXSHY.js → 52ZNWMHQ.js} +2 -2
- package/dist/cdn/{E5JZ5Z2I.js → 547VLGRK.js} +2 -2
- package/dist/cdn/{SRVRHHIV.js → 57ZXUILQ.js} +2 -2
- package/dist/cdn/{4RPHWQJR.js → 5E626VLW.js} +2 -2
- package/dist/cdn/{3N2YHBI5.js → 5EAGIGD7.js} +2 -2
- package/dist/cdn/{GXHFJX3X.js → 5EHF5GZY.js} +2 -2
- package/dist/cdn/{6XLS7PCQ.js → 5HGZYOVA.js} +1 -1
- package/dist/cdn/{O2GEFWLI.js → 5IMIFIYK.js} +2 -2
- package/dist/cdn/{YXWR4LGR.js → 5JODT3O3.js} +2 -2
- package/dist/cdn/{Y6LO3REZ.js → 5KES3XBG.js} +2 -2
- package/dist/cdn/{ZKHKSH45.js → 5LIV5MBV.js} +2 -2
- package/dist/cdn/{4ADOOMTH.js → 5MQH5SRJ.js} +2 -2
- package/dist/cdn/{5YOZB2R2.js → 5NZGINBU.js} +1 -1
- package/dist/cdn/{TLY64OYB.js → 5OHLT44P.js} +2 -2
- package/dist/cdn/{XNQ6DBW6.js → 64XG2WEQ.js} +2 -2
- package/dist/cdn/{QBT6IQTV.js → 64ZV2TNG.js} +2 -2
- package/dist/cdn/{E5QWGIJK.js → 6624PMRO.js} +2 -2
- package/dist/cdn/{LOHXXUG6.js → 6A6WPUSP.js} +2 -2
- package/dist/cdn/{ILJ2CM7J.js → 6DFODGMW.js} +2 -2
- package/dist/cdn/{2W3PXN6A.js → 6POBHKBS.js} +2 -2
- package/dist/cdn/{LXW2GAAY.js → 6TPJXOGA.js} +2 -2
- package/dist/cdn/{4DJFOTO3.js → 6WQSDPWU.js} +2 -2
- package/dist/cdn/{4362MOZ7.js → 7EMBWSJE.js} +2 -2
- package/dist/cdn/{OREJNY5T.js → 7FVSKZFW.js} +2 -2
- package/dist/cdn/{TGA357DA.js → 7ML2KUOH.js} +2 -2
- package/dist/cdn/{533OGL7O.js → 7N5X4EHS.js} +2 -2
- package/dist/cdn/{UR5O5JWE.js → 7TAHV6UW.js} +2 -2
- package/dist/cdn/{7DVUJMYC.js → 7WA3VJRZ.js} +2 -2
- package/dist/cdn/{MXL375F4.js → A4X6C6ZX.js} +2 -2
- package/dist/cdn/A7RE5JAW.js +4 -0
- package/dist/cdn/{CDGFD3UK.js → AEHCAEA2.js} +2 -2
- package/dist/cdn/{PXIMWP5D.js → AGXLBLDE.js} +2 -2
- package/dist/cdn/AJ7HY5IA.js +18 -0
- package/dist/cdn/{4C7Y2IWS.js → AJZFV73U.js} +2 -2
- package/dist/cdn/{EGJPBCZR.js → AK2G7GWK.js} +2 -2
- package/dist/cdn/{OFZUHTRM.js → ANABZWEW.js} +2 -2
- package/dist/cdn/{JM7YFJWW.js → ATBZIXUI.js} +2 -2
- package/dist/cdn/{MCTAC35U.js → AVWH7V2G.js} +1 -1
- package/dist/cdn/{SICWCCBR.js → AXAHVJFX.js} +2 -2
- package/dist/cdn/{4JNGRSAC.js → AXRO5Y2Q.js} +1 -1
- package/dist/cdn/B3ZRPFZO.js +18 -0
- package/dist/cdn/{BXOZYAJQ.js → BDODIJBN.js} +2 -2
- package/dist/cdn/{UAD3Z7G6.js → BE4OEXWO.js} +2 -2
- package/dist/cdn/{AZIEZPYO.js → BK7VE3UH.js} +1 -1
- package/dist/cdn/{RHKI3HOF.js → BMH6UZYX.js} +2 -2
- package/dist/cdn/{X5C4AZW2.js → BPVXWSKC.js} +2 -2
- package/dist/cdn/BTAPRURT.js +18 -0
- package/dist/cdn/{OHBUH6XG.js → BURGOM4O.js} +2 -2
- package/dist/cdn/BXPQHUII.js +4 -0
- package/dist/cdn/{5QB7S4ZH.js → C4FAIF5Q.js} +2 -2
- package/dist/cdn/{S35QUYH6.js → C675SGIU.js} +2 -2
- package/dist/cdn/{IV3H2HEK.js → CGNU4GRB.js} +2 -2
- package/dist/cdn/{TOWCBV67.js → CH34UBEQ.js} +2 -2
- package/dist/cdn/{CKKF4HOA.js → CIWXA5ZN.js} +2 -2
- package/dist/cdn/CKPZEWWK.js +4 -0
- package/dist/cdn/CL3PGX2V.js +18 -0
- package/dist/cdn/CPK4BEBA.js +18 -0
- package/dist/cdn/{2HWHSNQH.js → CTJAA3HW.js} +2 -2
- package/dist/cdn/{N3MCXAZD.js → CUJ4QEUB.js} +2 -2
- package/dist/cdn/{ABV7A3TM.js → CUWST5O6.js} +2 -2
- package/dist/cdn/{YO533QFL.js → CV77ODA7.js} +2 -2
- package/dist/cdn/{JBGL4JKZ.js → CZ6K44RV.js} +1 -1
- package/dist/cdn/{5OKDP5DK.js → D2G4PIVE.js} +2 -2
- package/dist/cdn/{AQOTRYZM.js → DAFCUVTS.js} +2 -2
- package/dist/cdn/{QL2DC6OE.js → DAGLKPSW.js} +2 -2
- package/dist/cdn/{3EOM2MFQ.js → DH77AVTG.js} +2 -2
- package/dist/cdn/{RRQMNUDN.js → DHYN3VIT.js} +2 -2
- package/dist/cdn/{MX3WCXNM.js → DK3FWHR6.js} +3 -3
- package/dist/cdn/{OO6WR2YI.js → DOBSL5W5.js} +1 -1
- package/dist/cdn/E6BFGCQU.js +18 -0
- package/dist/cdn/{554YPOFT.js → E7N7FA3W.js} +2 -2
- package/dist/cdn/{CO3K5ZRL.js → EAZ7C25W.js} +2 -2
- package/dist/cdn/EL2JSV5A.js +4 -0
- package/dist/cdn/{62BBD2YR.js → EODDH2JP.js} +2 -2
- package/dist/cdn/{2WL2CX5A.js → ETYP3VBN.js} +2 -2
- package/dist/cdn/{CQKWXPD2.js → EVPTRQ6A.js} +1 -1
- package/dist/cdn/F2BY3DDZ.js +4 -0
- package/dist/cdn/{44CIVCB6.js → F2TCHWET.js} +2 -2
- package/dist/cdn/{RKSQHCLI.js → F3QXUPCO.js} +2 -2
- package/dist/cdn/{PZDHZUMS.js → F3VL5J4Q.js} +2 -2
- package/dist/cdn/{FS57RN34.js → F7DK7MGG.js} +1 -1
- package/dist/cdn/{ZKADU2PQ.js → FCPV4UOF.js} +2 -2
- package/dist/cdn/{XQJGWD7F.js → FCWBHJAR.js} +2 -2
- package/dist/cdn/{VC5VGOUO.js → FEICSWFI.js} +1 -1
- package/dist/cdn/{37NQHUK5.js → FFCZMKPH.js} +2 -2
- package/dist/cdn/{UKTZGR5H.js → FHDHYSK6.js} +2 -2
- package/dist/cdn/{2K763HQO.js → FJENF6BR.js} +2 -2
- package/dist/cdn/{RB6DOS5Z.js → FNV3BY4N.js} +2 -2
- package/dist/cdn/{XK3SNODM.js → FUVBSL52.js} +2 -2
- package/dist/cdn/{YM6SKW7B.js → FWT5BW6G.js} +2 -2
- package/dist/cdn/{TKKIU5DK.js → G36LZ2WH.js} +2 -2
- package/dist/cdn/{YHGLE6WS.js → G6VABLAG.js} +2 -2
- package/dist/cdn/{PWZHR4OS.js → GG2IDWQS.js} +2 -2
- package/dist/cdn/{NCYTPCR2.js → GIZDZBX3.js} +2 -2
- package/dist/cdn/{MZ3GB6EK.js → GNVNOTR5.js} +2 -2
- package/dist/cdn/{D5WGUMCY.js → GVHPHDSK.js} +1 -1
- package/dist/cdn/{RDKNMWCS.js → GY3S4QPM.js} +2 -2
- package/dist/cdn/{B7WUGBLY.js → GYCQ3AJ4.js} +2 -2
- package/dist/cdn/{6BSZB4T2.js → HA6QXFEE.js} +2 -2
- package/dist/cdn/{3ZD35GYW.js → HBKZAODT.js} +2 -2
- package/dist/cdn/{HDGNDHWN.js → HD274UTP.js} +2 -2
- package/dist/cdn/{EEE5US3J.js → HECNXLJ5.js} +2 -2
- package/dist/cdn/{WLP4EB7V.js → HFD37KVH.js} +2 -2
- package/dist/cdn/{J6NONFBS.js → HIEPRI6M.js} +1 -1
- package/dist/cdn/{G2DGDDPX.js → HLVEN4KS.js} +3 -3
- package/dist/cdn/{YPTKKUQT.js → HOSSCUTA.js} +2 -2
- package/dist/cdn/{TWNSH3OD.js → HSM2426M.js} +1 -1
- package/dist/cdn/{NGPU46XL.js → HT7C5PDZ.js} +2 -2
- package/dist/cdn/{AOYCH2P3.js → HVNRLHU5.js} +2 -2
- package/dist/cdn/{AZUSEICT.js → HY5QYWAN.js} +2 -2
- package/dist/cdn/{O2EZB4WB.js → I37NGC7B.js} +2 -2
- package/dist/cdn/{QBLSQMGQ.js → IARZLOE2.js} +2 -2
- package/dist/cdn/{ROHOQMWQ.js → IDPWCQHW.js} +2 -2
- package/dist/cdn/{34NMKZ4Y.js → IE5JSK7J.js} +2 -2
- package/dist/cdn/ILDBRYJS.js +4 -0
- package/dist/cdn/{NFFXMGV3.js → IMGIW7HO.js} +2 -2
- package/dist/cdn/{OJXGKKGT.js → IOFTT6HJ.js} +2 -2
- package/dist/cdn/{5KJ2N6Y6.js → IVDSMHU5.js} +2 -2
- package/dist/cdn/{BHKNTKZ7.js → IW3M3BRW.js} +2 -2
- package/dist/cdn/{W4MD3F6R.js → J32P3IUF.js} +2 -2
- package/dist/cdn/{G6U42YTA.js → J4QBWJSM.js} +2 -2
- package/dist/cdn/{666PNIZR.js → J66N75YM.js} +2 -2
- package/dist/cdn/{Y55OXV6Y.js → JA5E3ZS4.js} +2 -2
- package/dist/cdn/{CQ6WSEAJ.js → JDFPU4OZ.js} +2 -2
- package/dist/cdn/{VID2UZG4.js → JDTYU4V7.js} +2 -2
- package/dist/cdn/{OX5SNROI.js → JJEP2YGO.js} +2 -2
- package/dist/cdn/{2XAZ3RTK.js → JMPK7FSJ.js} +2 -2
- package/dist/cdn/{NQBEYMGR.js → JNWSIBXG.js} +2 -2
- package/dist/cdn/{L7LPWUMH.js → JPPIOFJI.js} +2 -2
- package/dist/cdn/{JD6EFQ6S.js → JQQF365S.js} +2 -2
- package/dist/cdn/{HPZC3A57.js → JUQF2PB3.js} +2 -2
- package/dist/cdn/{EGXYKGYI.js → JVQDTAZM.js} +2 -2
- package/dist/cdn/{NP2V2NOI.js → JYXITI3J.js} +2 -2
- package/dist/cdn/{M56EPKQ7.js → K4KSJJUE.js} +2 -2
- package/dist/cdn/{4MCZLOOB.js → K4PSBA7S.js} +2 -2
- package/dist/cdn/{T5PVRJMO.js → K7LR3C67.js} +1 -1
- package/dist/cdn/{VBNUDSSG.js → KFTUSILZ.js} +2 -2
- package/dist/cdn/{OKH2UKNB.js → KJC4PHVN.js} +2 -2
- package/dist/cdn/{CX3A6KA3.js → KJYAWRR4.js} +2 -2
- package/dist/cdn/{D33N2HTW.js → KMRNWHZU.js} +2 -2
- package/dist/cdn/{N2M3Q7OL.js → KNM2DOZ5.js} +2 -2
- package/dist/cdn/{FSP7SPX2.js → KQRHQKTT.js} +1 -1
- package/dist/cdn/{J7NOQ4JL.js → KYJTZ7GN.js} +2 -2
- package/dist/cdn/{74VIRFHE.js → L33Y3EXU.js} +1 -1
- package/dist/cdn/L733W7AD.js +4 -0
- package/dist/cdn/{AYPV6SOA.js → L75WH54D.js} +2 -2
- package/dist/cdn/{WUAYRTXU.js → LAGBD4ZG.js} +2 -2
- package/dist/cdn/{EJSHS63C.js → LBH23R6B.js} +2 -2
- package/dist/cdn/{T6BC4NP5.js → LBNDFMBU.js} +2 -2
- package/dist/cdn/{LI5JOVXC.js → LGLORLPA.js} +2 -2
- package/dist/cdn/{3VAHLUQ4.js → LH4J7BX2.js} +2 -2
- package/dist/cdn/{X556NDQM.js → LMO3OIUV.js} +2 -2
- package/dist/cdn/{MFAP3QSG.js → LQCKHLC4.js} +2 -2
- package/dist/cdn/{7HE7J72C.js → LRQUFI2D.js} +1 -1
- package/dist/cdn/{2U7YXCJZ.js → LUAMSNKZ.js} +2 -2
- package/dist/cdn/{PZEXCL57.js → LYUK5J5Q.js} +2 -2
- package/dist/cdn/{PERMCVQL.js → M5CZTKXX.js} +2 -2
- package/dist/cdn/{F56KK6GE.js → M7AF2VXD.js} +2 -2
- package/dist/cdn/{MMAHFIB4.js → MATLMRNC.js} +2 -2
- package/dist/cdn/{N53S6LBM.js → MMLBUMFZ.js} +2 -2
- package/dist/cdn/{UDPQ4ROC.js → MPYJWTZZ.js} +1 -1
- package/dist/cdn/{JCGX73CW.js → MTMG3GRR.js} +2 -2
- package/dist/cdn/{K5WH7A5V.js → MYLIJELV.js} +2 -2
- package/dist/cdn/{RUP3N6FQ.js → N3UWRM33.js} +2 -2
- package/dist/cdn/{TZHAIY5U.js → N45LPVOM.js} +2 -2
- package/dist/cdn/{3CBSLNB4.js → N65CEPTA.js} +2 -2
- package/dist/cdn/{XPNCU35H.js → N7FPVL7S.js} +2 -2
- package/dist/cdn/{4VSXNGPH.js → NBWRB4UV.js} +1 -1
- package/dist/cdn/{JC73ZWM4.js → NCS6AM2F.js} +2 -2
- package/dist/cdn/{GEOJT5HE.js → NGAOJITT.js} +2 -2
- package/dist/cdn/{QVON44ZD.js → NH4CFBFD.js} +1 -1
- package/dist/cdn/{3RO3BXDV.js → NQWAECHR.js} +2 -2
- package/dist/cdn/{ZLWPGFJV.js → NSRQUUHT.js} +4 -4
- package/dist/cdn/{B4F5VQMS.js → NTUKSOX6.js} +2 -2
- package/dist/cdn/{WXX3JVS7.js → NWYDTXHU.js} +2 -2
- package/dist/cdn/{Z4GZ7VCW.js → NWZXSIOF.js} +1 -1
- package/dist/cdn/{WGQUTVDW.js → NXUIVAQT.js} +2 -2
- package/dist/cdn/O6AHHEEE.js +18 -0
- package/dist/cdn/{DSWPPG73.js → OCG3XDCT.js} +2 -2
- package/dist/cdn/{5IFJ723U.js → OD6CCAY7.js} +2 -2
- package/dist/cdn/{PW4JQUZM.js → OEOAXQIR.js} +2 -2
- package/dist/cdn/{LVDQBRPQ.js → OEVW7652.js} +2 -2
- package/dist/cdn/{2CSZLHQK.js → OGJDKKVD.js} +2 -2
- package/dist/cdn/{NL2ZCSNM.js → OPK4XF2Q.js} +1 -1
- package/dist/cdn/{RP3IBMYT.js → OSQ5RHZM.js} +2 -2
- package/dist/cdn/{XLUDDUX2.js → OTKMTGZQ.js} +2 -2
- package/dist/cdn/{JQMG7XAE.js → OTWOMOOS.js} +2 -2
- package/dist/cdn/{K2I34C5P.js → P2Q2QECR.js} +2 -2
- package/dist/cdn/{VS7KGOXE.js → P4ZT2VNI.js} +2 -2
- package/dist/cdn/{K7DE43V5.js → P5NCQEHT.js} +2 -2
- package/dist/cdn/{7WUQL7OH.js → P7GYHQIB.js} +2 -2
- package/dist/cdn/{IIH6CLH2.js → P7IHCCPN.js} +2 -2
- package/dist/cdn/{3WIONUEL.js → PGH6RCLO.js} +2 -2
- package/dist/cdn/{KBHGTYPO.js → PP7YJVFK.js} +2 -2
- package/dist/cdn/{ASXFRSKX.js → PRPAKA53.js} +2 -2
- package/dist/cdn/{R7232VZW.js → PTH4VZ5J.js} +1 -1
- package/dist/cdn/{X43BLFIH.js → PUDP2PNI.js} +2 -2
- package/dist/cdn/{ZWZKBEYE.js → PVGBJQAD.js} +2 -2
- package/dist/cdn/PW3GGNPY.js +4 -0
- package/dist/cdn/{V6OSHRQM.js → PXZ3HDAQ.js} +2 -2
- package/dist/cdn/{NSESHKON.js → PY5GGBEE.js} +2 -2
- package/dist/cdn/{6ICMW2XL.js → Q753LUMJ.js} +2 -2
- package/dist/cdn/{2ZUELHRU.js → QA6BAR3L.js} +2 -2
- package/dist/cdn/{4DYJLPDZ.js → QAMFDK44.js} +2 -2
- package/dist/cdn/{WG4X43JN.js → QCVFWRQ3.js} +2 -2
- package/dist/cdn/{DCQ7GLZI.js → QIJJMLMA.js} +2 -2
- package/dist/cdn/{YRVDWBVN.js → QKKZMTRI.js} +2 -2
- package/dist/cdn/{CFYDKX3C.js → QNJKL7SK.js} +2 -2
- package/dist/cdn/{AF45E6DN.js → QQ7DWVMW.js} +2 -2
- package/dist/cdn/{PZTUREPY.js → QVPAC4JU.js} +2 -2
- package/dist/cdn/{TZJ2HEJQ.js → QXJF7X7C.js} +2 -2
- package/dist/cdn/{UJFJN4KW.js → R2SZJCZZ.js} +2 -2
- package/dist/cdn/{XEYWQFQ5.js → R5QNGLWD.js} +2 -2
- package/dist/cdn/{7K3Y26XM.js → R5RGPHNY.js} +2 -2
- package/dist/cdn/{5FXBCVIZ.js → RF3I2OVH.js} +2 -2
- package/dist/cdn/{W3HTFD5Y.js → RFGEXOGL.js} +2 -2
- package/dist/cdn/{5MKFPVBN.js → RHWRSJAG.js} +2 -2
- package/dist/cdn/{3OAMWWCL.js → RJDGVBOH.js} +2 -2
- package/dist/cdn/{3O5VSR67.js → RL2Q4UFY.js} +2 -2
- package/dist/cdn/{U3X4JOWT.js → RTFAFC47.js} +2 -2
- package/dist/cdn/{K5AAAN6G.js → RTIEUEZS.js} +2 -2
- package/dist/cdn/{RHNY7QXI.js → RTNFT7R7.js} +1 -1
- package/dist/cdn/{EIWKHVBY.js → SBZZ4K52.js} +2 -2
- package/dist/cdn/{GGC45SFJ.js → SGYTO5Q3.js} +2 -2
- package/dist/cdn/{KQY6F6TC.js → SIAJA5J4.js} +2 -2
- package/dist/cdn/{UORERW5B.js → SJ7KLP57.js} +2 -2
- package/dist/cdn/{46R75UZS.js → SQ3WIIXR.js} +2 -2
- package/dist/cdn/{4ATL3D6V.js → SSCSISSJ.js} +1 -1
- package/dist/cdn/{WSK33HZC.js → SUZ4YNXZ.js} +2 -2
- package/dist/cdn/{B2KIFSSU.js → T5AJ3VNL.js} +2 -2
- package/dist/cdn/{YCA4LRXE.js → T5N4USHO.js} +2 -2
- package/dist/cdn/{MSH52ZAT.js → T76KLUH7.js} +2 -2
- package/dist/cdn/{MSWWPD5H.js → TBOJZDNR.js} +2 -2
- package/dist/cdn/{5RDTSHLH.js → TC6GRMDI.js} +1 -1
- package/dist/cdn/{JN23XJLY.js → TD24BI5O.js} +2 -2
- package/dist/cdn/{CNV5CX2O.js → TFNUF2ZS.js} +2 -2
- package/dist/cdn/{ZG2AHKGG.js → TGRQ3LJY.js} +2 -2
- package/dist/cdn/{AKL67LTE.js → THIUOJJT.js} +2 -2
- package/dist/cdn/{NRSYVSYQ.js → TK65KBA3.js} +2 -2
- package/dist/cdn/{NR3CW5TL.js → TN2PGFEW.js} +2 -2
- package/dist/cdn/{P4IG3MVJ.js → TOSLUXOS.js} +2 -2
- package/dist/cdn/{MGTUFHO4.js → TUZ25PBB.js} +2 -2
- package/dist/cdn/{2AR77FHR.js → TVEY6INM.js} +1 -1
- package/dist/cdn/{XSUH5ZWN.js → U2IDJDV3.js} +2 -2
- package/dist/cdn/{VWVYEBDH.js → U62Y5B5E.js} +2 -2
- package/dist/cdn/U6LFOJY4.js +4 -0
- package/dist/cdn/{YBRSEZ67.js → UE6HX53N.js} +2 -2
- package/dist/cdn/{BOSS7OMS.js → UENIFZ42.js} +8 -6
- package/dist/cdn/{O466Y44Q.js → UIHIMUAM.js} +2 -2
- package/dist/cdn/{THJAL2CV.js → UIXND4RG.js} +2 -2
- package/dist/cdn/{YJMNTY3L.js → UK3DTFAX.js} +1 -1
- package/dist/cdn/UL2XIT3X.js +4 -0
- package/dist/cdn/{QLVC7ZPZ.js → URFFUWLH.js} +2 -2
- package/dist/cdn/{BTVB74DT.js → URVMNZHN.js} +2 -2
- package/dist/cdn/{XT5JYDSP.js → US7G3FCP.js} +2 -2
- package/dist/cdn/{IFOH36K3.js → USJVL6GN.js} +2 -2
- package/dist/cdn/{XUAIYIQ2.js → UWKPNCNO.js} +2 -2
- package/dist/cdn/{264FY26S.js → UXSWM34Y.js} +2 -2
- package/dist/cdn/{P5PCO4JO.js → VGD3ACHA.js} +2 -2
- package/dist/cdn/{M224VK7H.js → VKEAPFNA.js} +2 -2
- package/dist/cdn/{EJAMRCQS.js → VLEM3TR7.js} +2 -2
- package/dist/cdn/{ERNEEJXE.js → VNFRWFAW.js} +2 -2
- package/dist/cdn/{EUH67UW5.js → VPI6KWYG.js} +2 -2
- package/dist/cdn/{YYHJHXNM.js → VPK4ZAZF.js} +2 -2
- package/dist/cdn/{SB2EYKVI.js → VR5TPQG5.js} +1 -1
- package/dist/cdn/VRDTBEBN.js +4 -0
- package/dist/cdn/{33SJC5CJ.js → VXS22IEQ.js} +2 -2
- package/dist/cdn/{OPU7UG63.js → VYIVYXUJ.js} +2 -2
- package/dist/cdn/{WXRMP3RF.js → VYLL3I6K.js} +2 -2
- package/dist/cdn/{VLPI3GRM.js → VZDK2UMF.js} +2 -2
- package/dist/cdn/{J6423EDC.js → VZXWZRZ2.js} +2 -2
- package/dist/cdn/{UZAHM4E4.js → W2UXZ3VQ.js} +1 -1
- package/dist/cdn/{Q46P3XZX.js → WDIJJJAX.js} +2 -2
- package/dist/cdn/{WNXG3ZCI.js → WHRW3IB5.js} +2 -2
- package/dist/cdn/{X4JROJKB.js → WMIBYGQF.js} +2 -2
- package/dist/cdn/{KKUITPWU.js → WPCD65VV.js} +2 -2
- package/dist/cdn/{QZUTRMW6.js → WR5CZS6Z.js} +2 -2
- package/dist/cdn/{6HD5QOMC.js → WT4VJX6N.js} +2 -2
- package/dist/cdn/{WUUFD7I3.js → WTIIL4Z5.js} +2 -2
- package/dist/cdn/{EUE3LP5B.js → WVPA4RIC.js} +1 -1
- package/dist/cdn/{X2HCZOFT.js → WXO3ZL5M.js} +2 -2
- package/dist/cdn/{45W7YE6A.js → XHTNNEII.js} +2 -2
- package/dist/cdn/{7JLC7H3K.js → XINPX7UY.js} +2 -2
- package/dist/cdn/{M63VDRSQ.js → XIU6KDAI.js} +1 -1
- package/dist/cdn/{GW27RGOK.js → XJV2IHQU.js} +2 -2
- package/dist/cdn/XKFBIOP5.js +18 -0
- package/dist/cdn/{CFMJKVXR.js → XL3MO46G.js} +1 -1
- package/dist/cdn/XM6GFHKW.js +4 -0
- package/dist/cdn/{VTXQOB7L.js → XQJCGYXO.js} +1 -1
- package/dist/cdn/{JRZKK7MA.js → XS5PMVOE.js} +2 -2
- package/dist/cdn/{GAEULQXJ.js → XSASM2S7.js} +2 -2
- package/dist/cdn/{PPDJ32JJ.js → XTNPOADE.js} +2 -2
- package/dist/cdn/{EC2IHLSY.js → XWO35XMC.js} +2 -2
- package/dist/cdn/{ICFQB2ET.js → Y5MQB5IG.js} +1 -1
- package/dist/cdn/{4XAMBKX4.js → YACUVAZK.js} +3 -3
- package/dist/cdn/{Z66C7X2A.js → YBOWQKWT.js} +2 -2
- package/dist/cdn/{GENBEWQD.js → YHY4R3U6.js} +1 -1
- package/dist/cdn/{52TMIUZW.js → YKJ6JXET.js} +1 -1
- package/dist/cdn/{ZFIDAXHF.js → YLSH4YUB.js} +2 -2
- package/dist/cdn/{ZP3Z6SIG.js → YNCV66VN.js} +2 -2
- package/dist/cdn/{O4KKRMWS.js → YQH4NZVR.js} +2 -2
- package/dist/cdn/{GAJHTV7P.js → YQM3ZN4J.js} +2 -2
- package/dist/cdn/{CYX3TOXQ.js → YUKEOO45.js} +2 -2
- package/dist/cdn/{RAJJT4B3.js → YWPBUNRL.js} +2 -2
- package/dist/cdn/{NKSKFR6W.js → YYCNS5A5.js} +2 -2
- package/dist/cdn/Z3E6GUUX.js +18 -0
- package/dist/cdn/{RDOMCTUL.js → ZCRJFSKJ.js} +2 -2
- package/dist/cdn/{7ZRSM52L.js → ZE26QR3I.js} +1 -1
- package/dist/cdn/{MRGIGMEJ.js → ZP24UQVP.js} +2 -2
- package/dist/cdn/{EGJY2AK7.js → ZPG53QLG.js} +2 -2
- package/dist/cdn/{NSUKDWLQ.js → ZSJQNSIY.js} +2 -2
- package/dist/cdn/{TB44WXEK.js → ZYG6OTLK.js} +2 -2
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.en.json +1 -1
- package/dist/cdn/assets/arcgis-solutions-assistant/t9n/messages.json +1 -1
- package/dist/cdn/index.js +2 -2
- package/dist/chunks/Auth.js +1 -1
- package/dist/chunks/CardsFetcher.js +1 -1
- package/dist/chunks/appConfig.js +1 -1
- package/dist/chunks/cardFetchingUtils.js +1 -1
- package/dist/chunks/cardsHelpers.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/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/publicNotificationContext.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.d.ts +0 -23
- package/dist/components/arcgis-solutions-assistant/customElement.js +97 -68
- package/dist/components/arcgis-solutions-assistant/index.d.ts +3 -3
- package/dist/components/arcgis-solutions-assistant/index.js +3 -3
- package/dist/components/arcgis-solutions-assistant/utils/querySolutions.d.ts +16 -0
- 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 +3 -3
- 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-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 +2 -2
- 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-card/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 +14 -14
- package/dist/components/solutions-all-panel/index.d.ts +1 -1
- package/dist/components/solutions-all-panel/index.js +1 -1
- package/dist/components/solutions-all-shell/customElement.js +23 -23
- package/dist/components/solutions-deploy-app/customElement.js +14 -14
- package/dist/components/solutions-deploy-app-nav/customElement.js +4 -4
- package/dist/components/solutions-deployed-filter-panel/customElement.js +1 -1
- package/dist/components/solutions-deployed-panel/customElement.js +34 -35
- package/dist/components/solutions-deployed-shell/customElement.js +11 -11
- package/dist/components/solutions-filter-panel/customElement.js +20 -20
- package/dist/components/solutions-resource-panel/customElement.js +1 -1
- package/dist/components/solutions-resources/customElement.js +1 -1
- package/dist/components/solutions-resources-shell/customElement.js +11 -11
- package/dist/components/solutions-searchsort-toolbar/customElement.js +2 -2
- 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/4ENQBAQD.js +0 -4
- package/dist/cdn/5GDSQ7SZ.js +0 -18
- package/dist/cdn/5X4CMXBT.js +0 -4
- package/dist/cdn/B3QOZGKK.js +0 -18
- package/dist/cdn/D3K4ITIF.js +0 -4
- package/dist/cdn/DHEB777B.js +0 -4
- package/dist/cdn/EF5AJQH3.js +0 -18
- package/dist/cdn/FQY7OKCX.js +0 -4
- package/dist/cdn/IJVQHYFH.js +0 -4
- package/dist/cdn/JNL2IBVR.js +0 -18
- package/dist/cdn/LX5BVFDE.js +0 -4
- package/dist/cdn/MKKM47E4.js +0 -18
- package/dist/cdn/O7Q6YMZH.js +0 -4
- package/dist/cdn/QDOG42JX.js +0 -18
- package/dist/cdn/QEKRYT2T.js +0 -18
- package/dist/cdn/RY5ANV6A.js +0 -4
- package/dist/cdn/SLU6KLLC.js +0 -4
- package/dist/cdn/SLXWBGDY.js +0 -4
- package/dist/cdn/VGMWPYEH.js +0 -4
- package/dist/cdn/VGXU7I7U.js +0 -4
- package/dist/cdn/VYGWWP54.js +0 -18
- package/dist/cdn/WRG3LT22.js +0 -18
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import{b as h}from"./
|
|
3
|
+
v1.2.0-next.15 */
|
|
4
|
+
import{b as h}from"./KJC4PHVN.js";import{E as d,h as n,i as s,l as c,o as l,r as o}from"./OPK4XF2Q.js";import"./YHY4R3U6.js";var p=n`@layer{/** @license
|
|
5
5
|
* Copyright 2025 Esri
|
|
6
6
|
*
|
|
7
7
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import{b as c}from"./
|
|
3
|
+
v1.2.0-next.15 */
|
|
4
|
+
import{b as c}from"./LYUK5J5Q.js";import{E as n,h as s,i as r,o as i,r as o}from"./OPK4XF2Q.js";import"./YHY4R3U6.js";var h=`
|
|
5
5
|
.ck.ck-reset.ck-editor.ck-rounded-corners {
|
|
6
6
|
margin-top: 10px !important;
|
|
7
7
|
margin-left: 55px !important;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import{a as e}from"./
|
|
3
|
+
v1.2.0-next.15 */
|
|
4
|
+
import{a as e}from"./3Z34HOVN.js";var i=["hub:template:edit"],r=Object.assign(Object.assign({},e),{properties:Object.assign(Object.assign({},e.properties),{previewUrl:{type:"string",if:{minLength:1},then:{format:"url"}}})});export{i as a,r as b};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import{a as r}from"./
|
|
3
|
+
v1.2.0-next.15 */
|
|
4
|
+
import{a as r}from"./RL2Q4UFY.js";import"./HLVEN4KS.js";import"./UWKPNCNO.js";import"./TVEY6INM.js";import"./6TPJXOGA.js";import"./N45LPVOM.js";import"./TFNUF2ZS.js";import"./EVPTRQ6A.js";import"./YKJ6JXET.js";import"./5JODT3O3.js";import"./WVPA4RIC.js";import"./SSCSISSJ.js";import"./UK3DTFAX.js";import"./7WA3VJRZ.js";import"./QVPAC4JU.js";import"./HD274UTP.js";import"./XQJCGYXO.js";import"./XIU6KDAI.js";import"./G6VABLAG.js";import"./32UM7SZK.js";import"./NWZXSIOF.js";import"./HIEPRI6M.js";import{a as d}from"./MMLBUMFZ.js";import"./L733W7AD.js";import"./BE4OEXWO.js";import{b as p}from"./KJC4PHVN.js";import{E as l,h,i as n,l as a}from"./OPK4XF2Q.js";import"./YHY4R3U6.js";var g=h`/** @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.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import"./
|
|
3
|
+
v1.2.0-next.15 */
|
|
4
|
+
import"./YHY4R3U6.js";var e="Du har ikke nok credits til \xE5 utf\xF8re denne operasjonen. Kontakt ArcGIS-systemadministratoren for \xE5 f\xE5 hjelp.",r="Dette verkt\xF8yet ble publisert fra en notisbok. Tilgang til ArcGIS Notebooks er blokkert for din organisasjon. Kontakt administratoren din for \xE5 justere innstillingen.",t="${ dataPath } kan ikke ha ${ additionalProperty }.",a="${ dataPath } m\xE5 samsvare med skjemaet for \xE9n av f\xF8lgende: ${ schemaOptions }.",n="Pr\xF8v \xE5 lagre kartet p\xE5 nytt.",i="Creditestimering mislyktes. Rull nedover, korriger feilene, og estimer creditene p\xE5 nytt.",l="Det oppstod en feil under kj\xF8ring av analysen.",o="${ dataPath } m\xE5 v\xE6re lik \xE9n av f\xF8lgende tillatte verdier: ${ allowedValues }.",s="Kunne ikke lagre analysehistorikken",d="Historikklageret er fullt. Fjern noen elementer fra analysehistorikken og pr\xF8ve \xE5 lagre p\xE5 nytt.",k="Tjenestenavnet inneholder ett eller flere ugyldige tegn.",g="Lagringen av det midlertidige laget som et hostet geoobjektlag ble ikke fullf\xF8rt.",m="Kan ikke hente n\xF8kkelegenskaper.",u="Kan ikke laste inn laget.",f="Laget er ikke tilgjengelig.",c="${ limit } kan ikke inneholde flere enn ${ dataPath } elementer.",p="Det oppstod en feil under lagring av modellen. Pr\xF8v \xE5 lagre p\xE5 nytt.",y="${ dataPath } kan ikke inneholde f\xE6rre enn ${ limit } elementer.",v="${ dataPath } m\xE5 ikke v\xE6re kortere enn ${ limit } tegn.",h="Kan ikke laste inn modellelementet. S\xF8rg for at modellen eksisterer og at tilgangstillatelser er gitt.",E="Kan ikke fullf\xF8re foresp\xF8rselen.",P="Du har ikke tilgang til \xE5 kj\xF8re dette verkt\xF8yet. <calcite-link target='_blank' href='${ docLink }'>Mer informasjon</calcite-link>",S="Kan ikke logge inn p\xE5 portalen.",b="Kan ikke lese inndata.",$="${ dataPath } mangler en egenskap ved navn ${ missingProperty }.",j="Det finnes allerede et resultatlag med dette navnet. Navn p\xE5 resultatlag m\xE5 v\xE6re unike innenfor organisasjonen. Bruk en annen tittel.",F="Utdatanavnet inneholder ett eller flere ugyldige tegn. <a href='${docLink}' target='_blank'>L\xE6r mer.</a>",I="Publiseringen av det midlertidige laget som et hostet lag mislyktes p\xE5 grunn av ett eller flere ugyldige felter. Kj\xF8r verkt\xF8yet p\xE5 nytt for \xE5 opprette et lag med gyldige felter.",T="Jobbinnsendingen mislyktes. Rull nedover, korriger feilene, og kj\xF8r analysen p\xE5 nytt.",L="${ dataPath } m\xE5 inneholde minst ett tegn som ikke er mellomrom.",K={InsufficientCreditsError:e,accessBlocked:r,additionalProperty:t,anyOfValues:a,cannotWriteToItemResource:n,creditEstimationError:i,defaultError:l,enumValues:o,failedToSaveHistory:s,fullSessionStorage:d,hostedFeatureServiceInvalidTitle:k,hostedFeatureServicePublishDidNotComplete:g,keyPropertiesError:m,layerLoadFailure:u,layerUnavailable:f,maxItems:c,mbFailedToSave:p,minItems:y,minLength:v,modelNotFound:h,networkError:E,noPermissionToAccessTool:P,portalLoadError:S,queryFeaturesError:b,requiredProperty:$,serviceNameExistsError:j,specialCharactersInServiceNameError:F,temporaryLayerFieldsError:I,toolValidationError:T,whiteSpacePattern:L};export{e as InsufficientCreditsError,r as accessBlocked,t as additionalProperty,a as anyOfValues,n as cannotWriteToItemResource,i as creditEstimationError,K as default,l as defaultError,o as enumValues,s as failedToSaveHistory,d as fullSessionStorage,k as hostedFeatureServiceInvalidTitle,g as hostedFeatureServicePublishDidNotComplete,m as keyPropertiesError,u as layerLoadFailure,f as layerUnavailable,c as maxItems,p as mbFailedToSave,y as minItems,v as minLength,h as modelNotFound,E as networkError,P as noPermissionToAccessTool,S as portalLoadError,b as queryFeaturesError,$ as requiredProperty,j as serviceNameExistsError,F as specialCharactersInServiceNameError,I as temporaryLayerFieldsError,T as toolValidationError,L as whiteSpacePattern};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import{a as b}from"./
|
|
3
|
+
v1.2.0-next.15 */
|
|
4
|
+
import{a as b}from"./MMLBUMFZ.js";import"./L733W7AD.js";import"./BE4OEXWO.js";import{b as w}from"./KJC4PHVN.js";import{C as n,D as r,E as g,G as m,H as i,I as h,h as f,i as e,j as p}from"./OPK4XF2Q.js";import"./YHY4R3U6.js";var R=f`/** @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.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
3
|
+
v1.2.0-next.15 */
|
|
4
4
|
function s(n,r){return Object.keys(n).reduce(function(i,t){return i[t]=r(n[t],t,n),i},{})}function o(n,r,e){if(e=e||"",Array.isArray(n))return n.map(u);return n&&c(n)&&!a(n)&&!x(n)&&!p(n)?Object.assign({},n,s(n,u)):r(n,e);function u(i,t){let f=""+(e?e+"."+t:t);return o(i,r,f)}}function l(n){return typeof n=="string"||n instanceof String}function a(n){return n instanceof Date}function p(n){return typeof n=="function"}function c(n){return typeof n=="object"}function x(n){return n instanceof RegExp}export{o as a,l as b,c,x as d};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import{a as s}from"./
|
|
3
|
+
v1.2.0-next.15 */
|
|
4
|
+
import{a as s}from"./3Z34HOVN.js";var t=["hub:discussion:edit","hub:discussion:create","hub:discussion:settings","hub:discussion:settings:discussions"],i=Object.assign(Object.assign({},s),{required:["name"],properties:Object.assign(Object.assign({},s.properties),{prompt:{type:"string",default:"",maxLength:150},discussionSettings:{type:"object",properties:{allowedChannelIds:{type:"array",items:{type:"string"}},allowedLocations:{type:"array",items:{type:"object"}}}}})});export{t as a,i 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.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import{a as l}from"./
|
|
3
|
+
v1.2.0-next.15 */
|
|
4
|
+
import{a as l}from"./GVHPHDSK.js";import{b as t,c as u}from"./NWZXSIOF.js";import"./YHY4R3U6.js";var m=o=>{let i=o.find(({collaborationType:n})=>n===l.anonymous),e=o.find(({collaborationType:n})=>n===l.authenticated);return[{key:"public",roles:{anonymous:{value:i?.permission||t,id:i?.id},authenticated:{value:e?.permission||t,id:e?.id}}}]},c=o=>{let i=o.reduce((e,n)=>[l.group,l.groupAdmin].includes(n.collaborationType)&&n.permission!==u.channelOwner?Object.assign(Object.assign({},e),{[n.collaborationId]:Object.assign(Object.assign({},e[n.collaborationId]),{[n.collaborationType]:n})}):e,{});return Object.entries(i).reduce((e,[n,{group:r,["group-admin"]:s}])=>[...e,{key:n,entityId:n,entityType:"group",roles:{member:{value:r?.permission||t,id:r?.id},admin:{value:s?.permission||t,id:s?.id}}}],[])},v=(o,i)=>{let e=o.reduce((r,s)=>[l.org,l.orgAdmin].includes(s.collaborationType)?Object.assign(Object.assign({},r),{[s.collaborationId]:Object.assign(Object.assign({},r[s.collaborationId]),{[s.collaborationType]:s})}):r,{}),n=Object.entries(e).reduce((r,[s,{org:a,["org-admin"]:d}])=>[...r,{key:s,entityId:s,entityType:"organization",roles:{member:{value:a?.permission||t,id:a?.id},admin:{value:d?.permission||t,id:d?.id}}}],[]);return n.length||n.push({key:i,entityId:i,entityType:"organization",roles:{member:{value:t,id:void 0},admin:{value:u.channelOwner,id:void 0}}}),n},b=o=>o.reduce((i,e)=>e.collaborationType===l.user?[...i,{key:e.collaborationId,entityId:e.collaborationId,entityType:"user",roles:{user:{value:e.permission,id:e.id}}}]:i,[]);function p(o,i){return{id:o.id,name:o.name,blockWords:o.blockWords.join(","),allowAsAnonymous:o.allowAsAnonymous,publicConfigs:m(o.permissions),orgConfigs:v(o.permissions,i.currentUser.orgId),groupConfigs:c(o.permissions),userConfigs:b(o.permissions)}}export{p as transformEntityToEditor};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
+
v1.2.0-next.15 */
|
|
4
|
+
import{a as $}from"./MMLBUMFZ.js";import"./L733W7AD.js";import"./BE4OEXWO.js";import{b as w}from"./KJC4PHVN.js";import{D as h,E as _,G as y,I as d,h as g,i as a,k as m,l as u,o as v,t as f,u as b,v as x}from"./OPK4XF2Q.js";import"./YHY4R3U6.js";var c=class extends x{constructor(e){if(super(e),this.it=u,e.type!==f.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===u||e==null)return this._t=void 0,this.it=e;if(e===m)return e;if(typeof e!="string")throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;let t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}};c.directiveName="unsafeHTML",c.resultType=1;var S=b(c);var I=g`:host{display:block;height:100%}.display-flex-row{display:flex;flex-direction:row}.padding-left-10{padding-left:10px}.chat-container{display:flex;flex-direction:column;gap:0px;max-width:600px;height:75%;background-color:var(--calcite-color-foreground-3);padding:1px}.chat-container_expanded{display:flex;flex-direction:column;gap:0px;max-width:100%;height:95%;background-color:var(--calcite-color-background);border-radius:10px;padding:10px}.chat-panel{--calcite-panel-header-background-color: var(--calcite-color-brand);--calcite-panel-action-background-color: var(--calcite-color-brand);--calcite-panel-heading-text-color: var(--calcite-color-background);--calcite-dialog-min-size-y: 90vh;--calcite-dialog-max-size-y: 90vh}.chat-panel-heading{font-size:var(--calcite-font-size-0);font-weight:var(--calcite-font-weight-medium);color:var(--calcite-panel-heading-text-color, var(--calcite-color-text-1))}.chat-messages{display:flex;flex-direction:column;gap:20px;padding:4px;height:100%;overflow-y:auto}.user-message{align-self:flex-end;background:var(--calcite-ui-brand);border-radius:8px;max-width:90%;--calcite-card-corner-radius: 8px;--calcite-card-background-color: var(--calcite-color-brand);--calcite-card-border-color: var(--calcite-color-brand);color:var(--calcite-color-background);text-align:left}.system-message{align-self:flex-start;background:var(--calcite-color-foreground-2);border-radius:8px;max-width:90%;--calcite-card-corner-radius: 8px;--calcite-card-background-color: var(--calcite-color-foreground-3);--calcite-card-border-color: var(--calcite-color-foreground-3);text-align:left}.loader-message{align-self:flex-start;background:var(--calcite-color-foreground-3);border-radius:8px;--calcite-card-corner-radius: 8px;--calcite-card-background-color: var(--calcite-color-foreground-3);--calcite-card-border-color: var(--calcite-color-foreground-3)}.message-content{padding:0;font-size:14px}.message-content p{margin-top:0}.message-content-pad{padding-bottom:10px;font-size:14px}.message-content-summary{padding-bottom:14px}.message-content-alignment{display:flex;align-items:center;gap:var(--calcite-spacing-md);font-size:var(--calcite-font-size--1);color:var(--calcite-color-text-1)}.padding-top-10{padding-top:10px}.padding-right-8{padding-right:8px}.chip-content{padding:5px 5px 5px 0}.chat-input{display:flex;flex-direction:row;flex-grow:1}.table-cell{--calcite-table-cell-background: var(--calcite-color-foreground-3)}.cursor-pointer{cursor:pointer}.notice-border-color{--temp-initial-brand: var(--calcite-color-brand)}.notice-border-color calcite-notice{--calcite-color-brand: #ddd;--calcite-icon-color: var(--temp-initial-brand)}.notice-border-color calcite-notice *{--calcite-color-brand: var(--temp-initial-brand)}.solution-card{padding:5px 0;text-decoration:none;display:block;width:100%;cursor:pointer}.solution-card calcite-card{display:flex;flex-direction:column;max-height:132px;overflow:hidden;--calcite-card-corner-radius: var(--calcite-corner-radius-round) !important;--calcite-card-shadow: var(--calcite-shadow-sm);--calcite-card-background-color: var(--calcite-card-background-color) }.solution-card div[slot=thumbnail]{max-height:100%;width:100%;position:relative;&:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;transition:all .15s ease-in-out}}.solution-card div[slot=thumbnail] img{max-height:100%;width:100%;object-fit:cover}.solution-card span[slot=description]{padding-top:10px}.solution-card calcite-chip{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);visibility:hidden;pointer-events:none;opacity:0;transition:all .15s ease-in-out;z-index:9999}.solution-card:hover calcite-chip{visibility:visible;opacity:1}.solution-card:hover div[slot=thumbnail]:after{background-color:#00000080}.solution-card:hover h3{text-decoration:underline}.references-container{padding-top:10px;display:block}.references-container.collapsed{display:none}.width-100{width:100%}.disclaimer-div{display:flex;gap:var(--calcite-spacing-sm);font-size:var(--calcite-font-size--0);color:var(--calcite-color-text-1)}`;var k="https://www.arcgis.com/sharing/rest/content/items/";async function T(r){return await q(r)}async function q(r){let e=k+r+"?f=json";try{let t=await fetch(e,{method:"GET"});if(!t.ok)throw new Error(`HTTP error! Status: ${t.status}`);return await t.json()}catch(t){return{error:t.message}}}var p=class extends _{constructor(){super(),this.serverRoot="https://aiservices-beta.arcgis.com/",this.solutionAIurl=`${this.serverRoot}skills/solution_deployment/chat`,this.docAIurl=`${this.serverRoot}skills/doc_ai_assistant/chat`,this.token=null,this.open=!1,this.conversationStore={conversationId:null,inquiryId:null,ackSequenceNumber:null},this._isLoading=!1,this._isLoadingText="",this.messages=[],this._translations=$({name:"arcgis-solutions-assistant",blocking:!0}),this.closeAssistant=v(),this._resetConversation=()=>{this.conversationStore.conversationId=null,this.conversationStore.inquiryId=null,this.conversationStore.ackSequenceNumber=null},this._setMessageContainerRef=e=>{this._chatContainer=e},this._setInputRef=e=>{this._inputRef=e,this._inputRef.addEventListener("keydown",t=>{t.key==="Enter"&&!t.shiftKey&&(t.preventDefault(),this.handleSendMessage())}),setTimeout(()=>{this._inputRef?.focus()},100)},this._submitQuestion=e=>{this._inputRef&&(this._inputRef.value=e,this.handleSendMessage())},this.listenOn(window,"submitQuestion",e=>{this._submitQuestion(e.detail)})}static{this.properties={serverRoot:1,solutionAIurl:1,docAIurl:1,token:1,open:5,conversationStore:16,_isLoading:16,_isLoadingText:16,messages:16,_translations:16}}static{this.styles=I}async handleSendMessage(){if(!this._inputRef?.value.trim())return;this._isLoading=!0;let e=this._inputRef.value.trim();this._inputRef.value="";let t={message:e,context:{debug:!1,kind:"SolutionRequest"}};if(this.conversationStore.conversationId!==null){if(t.conversationId=this.conversationStore.conversationId,this.token){let i={author:"human",inquiryId:this.conversationStore.inquiryId?this.conversationStore.inquiryId:"",message:e,render:this._renderSimpleTextMessage(e,"human")};this.messages=[...this.messages,i];let s=await this.requestAIServer(t,this.token,this.solutionAIurl);this.loopRequest(s,this.token,this.solutionAIurl)}}else if(this.token){let i={author:"human",inquiryId:"",message:e,render:this._renderSimpleTextMessage(e,"human")};this.messages=[...this.messages,i];let s=await this.requestAIServer(t,this.token,this.solutionAIurl);this.conversationStore.conversationId=s.conversationId,this.conversationStore.inquiryId=s.inquiryId,this.conversationStore.ackSequenceNumber=s.sequenceNumber,this.loopRequest(s,this.token,this.solutionAIurl)}}async loopRequest(e,t,i){let s=e;for(this._isLoading=!0;s.hasMore;){let o={conversationId:s.conversationId,ackSequenceNumber:s.sequenceNumber,inquiryId:s.inquiryId};if(s=await this.requestAIServer(o,t,i),s.context)if(this.conversationStore.context=s.context,s.context.intent)switch(s.context.intent){case"Solution question":this.messages.push({message:s.message??"",author:"ai",inquiryId:s.inquiryId});let n={message:s.message,conversationId:o.conversationId,context:{kind:"DocAIAssistantRequest",filters:{products:"ArcGIS Solutions"}}};s=await this.requestAIServer(n,t,this.docAIurl);break;case"Recommend solution":if(s.context.results&&s.context.results?.length>0){let l={message:s.message??"",author:"ai",inquiryId:s.inquiryId,render:this._renderSuggestedSolutions(s.message??"",s.context.results)};this.messages.push(l)}break;default:this.messages.push({author:"ai",inquiryId:s.inquiryId,message:s.message??"",render:this._renderSimpleTextMessage(s.message??"","ai")});break}else if(s.context.results)for(let n of s.context.results)n.reply!==""&&(this._isLoadingText="",this.messages.push({message:n.reply,author:"ai",inquiryId:s.inquiryId,render:this._renderDocAssistantResults(n.reply,n.ref,n.followupQuestions)}));else{this.messages.push({author:"ai",inquiryId:s.inquiryId,message:s.message??"",render:this._renderSimpleTextMessage(s.message??"","ai")});break}}this._isLoading=!1}async requestAIServer(e,t,i){try{let s=await(await fetch(i,{method:"POST",headers:{"Content-Type":"application/json",token:t},body:JSON.stringify(e)})).json();if(s)return s;throw new Error("No data returned")}catch(s){throw new Error(`Request failed: ${s}`)}}resetChat(){let e=this.messages[this.messages.length-1];if(e.author!=="system"&&e.inquiryId!=="-1"){this._resetConversation();let t={author:"system",inquiryId:"-1",message:this._translations.newConversationStarted,render:this._renderSimpleTextMessage(this._translations.newConversationStarted,"system","speech-bubble-plus")};this.messages=[...this.messages,t],this._inputRef&&(this._inputRef.value="")}}willUpdate(e){this.messages.length===0&&this._translations.defaultStartUpMessage&&(this.messages=[{author:"ai",inquiryId:"",message:this._translations.defaultStartUpMessage,render:this._renderSimpleTextMessage(this._translations.defaultStartUpMessage,"ai")}])}updated(e){(e.size||this._isLoading)&&this._scrollToBottom()}_renderSolutionQuestionReferences(e){return e.map(t=>a`<div class="message-content-pad"><a href=${t.url??d} target=_blank>${t.title}</a></div>`)}_renderSolutionQuestionFollowup(e){return e.map(t=>a`<calcite-chip class="chip-content cursor-pointer" kind=brand .label=${t} @click=${()=>{this._submitFollowupQuestion(t)}}>${t}</calcite-chip>`)}_renderSolutionsQuestionTable(e,t,i){let s=this._renderSolutionQuestionReferences(t),o=this._renderSolutionQuestionFollowup(i);return a`<div><div slot=description class="message-content">${S(this._markdownToHTML(e))}<div style="display: flex; justify-content: flex-start;"><calcite-button appearance=outline icon-end=chevron-down icon-start=link @click=${n=>{let l=n.currentTarget.parentElement?.nextElementSibling;l.classList.toggle("collapsed"),n.currentTarget.setAttribute("icon-end",l.classList.contains("collapsed")?"chevron-down":"chevron-up")}}>${`${t.length} ${t.length===1?this._translations.solutionsDocReference:this._translations.solutionsDocReferences}`}</calcite-button></div><div class="references-container collapsed">${s}</div></div><div class="padding-top-10">${o}</div></div>`}_renderSolutionCard(e,t){return a`<a class="solution-card" id=${t??d} @click=${()=>{this._emitItemIdFromAI(t)}}>${a`<calcite-card thumbnail-position=inline-start><div slot=thumbnail><img src=${e.thumbnail??d} alt=Thumbnail><calcite-chip icon=launch label="View solution">${this._translations.viewSolutionInApp}</calcite-chip></div><h3 slot=heading><b>${e.title}</b></h3><span slot=description>${e.snippet}</span></calcite-card>`}</a>`}_renderExistingSolutionsTable(e,t){let i=t.map(s=>{let o=s.thumbnail.match(/\/items\/([a-f0-9]+)\//);return o?this._renderSolutionCard(s,o[1]):null}).filter(s=>s!==null);return a`<div><div slot=description class="message-content"><div class="message-content-summary">${e}</div>${i}</div></div>`}_renderSimpleTextMessage(e,t,i){return t==="system"?a`<div class="message-content message-content-alignment">${i&&a`<calcite-icon .icon=${i}></calcite-icon>`||""}${e}</div>`:a`<calcite-card class=${y(t==="human"?"user-message":"system-message")}><div class="message-content">${e}</div></calcite-card>`}_renderDocAssistantResults(e,t,i){return a`<calcite-card class="system-message"><div class="message-content">${this._renderSolutionsQuestionTable(e,t,i)}</div></calcite-card>`}_renderSuggestedSolutions(e,t){return a`<calcite-card class="system-message"><div class="message-content">${this._renderExistingSolutionsTable(e,t)}</div></calcite-card>`}render(){return a`<calcite-dialog class="chat-panel" .open=${this.open} resizable .heading=${this._translations.solutionAssistantTitle} id=example-dialog placement=bottom-start @calciteDialogClose=${()=>{this.closeAssistant.emit(!0),this.open=!1}}><span class="chat-panel-heading" slot=header-content><span class="padding-right-8">${this._translations.solutionAssistantTitle}</span><calcite-chip .label=${this._translations.betaTag} .value=${this._translations.betaTag}>${this._translations.betaTag}</calcite-chip></span>${this.messages.length>1?a`<calcite-button @click=${this.resetChat} slot=header-actions-end appearance=transparent icon-end=speech-bubble-plus label="New conversation" kind=neutral></calcite-button>`:""}<div class="chat-messages" ${h(this._setMessageContainerRef)}>${this.messages.map(e=>e.render)}${this._isLoading&&a`<calcite-card class="loader-message"><div class="message-content display-flex-row"><calcite-loader .label=${this._isLoadingText} inline scale=s></calcite-loader>${this._isLoadingText!=""&&a`<div class="padding-left-10">${this._isLoadingText}</div>`||""}</div></calcite-card>`||""}</div><div slot=footer class="width-100"><div class="chat-input"><calcite-text-area resize=none rows=3 .placeholder=${this._translations.sendMessage} value ${h(this._setInputRef)}></calcite-text-area><calcite-button icon-start=send appearance=outline kind=neutral @click=${this.handleSendMessage} .disabled=${!!this._isLoading}></calcite-button></div><div class="disclaimer-div padding-top-10" slot=footer><calcite-icon icon=information scale=s></calcite-icon>${this._translations.disclaimerMessage}<a href=https://trust.arcgis.com/en/security-concern/ target=_blank>${this._translations.reportConcern}</a></div></div></calcite-dialog>`}_scrollToBottom(){this._chatContainer&&setTimeout(()=>{this._chatContainer&&(this._chatContainer.scrollTop=this._chatContainer.scrollHeight)},100)}_markdownToHTML(e){return e=e.replace(/###### (.*)/gu,"<h6>$1</h6>"),e=e.replace(/##### (.*)/gu,"<h5>$1</h5>"),e=e.replace(/#### (.*)/gu,"<h4>$1</h4>"),e=e.replace(/### (.*)/gu,"<h3>$1</h3>"),e=e.replace(/## (.*)/gu,"<h2>$1</h2>"),e=e.replace(/# (.*)/gu,"<h1>$1</h1>"),e=e.replace(/\*\*(.*?)\*\*/gu,"<strong>$1</strong>"),e=e.replace(/\*(.*?)\*/gu,"<em>$1</em>"),e=e.replace(/^\s*\*\s+(.*)/gmu,"<li>$1</li>"),e=e.replace(/(<li>.*<\/li>)/gu,"<ul>$1</ul>"),e=e.replace(/\[\[(\d+)\]\]\((.*?)\)/gu,'<a href="$2" target="_blank" rel="noopener noreferrer">[$1]</a>'),e=e.replace(/\n\n+/gu,"</p><p>"),e=e.replace(/^(?!<h|<ul|<li|<p>)(.*)$/gmu,"<p>$1</p>"),e}_emitItemIdFromAI(e){this._querySolutions(e).then(t=>{let i=t.typeKeywords.filter(o=>o.includes("solutionid")),s=new CustomEvent("solutionIDFromAssistant",{detail:i.length>0?i[0]:e,bubbles:!0,composed:!0});window.dispatchEvent(s)})}_submitFollowupQuestion(e){let t=new CustomEvent("submitQuestion",{detail:e,bubbles:!0,composed:!0});window.dispatchEvent(t)}async _querySolutions(e){let t=await T(e);if("error"in t)throw new Error(t.error);return t}};w("arcgis-solutions-assistant",p);export{p as ArcgisSolutionsAssistant};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import{a,b}from"./
|
|
3
|
+
v1.2.0-next.15 */
|
|
4
|
+
import{a,b}from"./U2IDJDV3.js";import"./3Z34HOVN.js";import"./AXRO5Y2Q.js";import"./VR5TPQG5.js";import"./YHY4R3U6.js";export{a as DiscussionEditorTypes,b as DiscussionSchema};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import{a as yt}from"./V6OSHRQM.js";import{a as L}from"./FS57RN34.js";import{a as G}from"./RAJJT4B3.js";import{c as J,n as X,t as K,z as Q}from"./TWNSH3OD.js";import{b as j}from"./PZEXCL57.js";import"./LX5BVFDE.js";import"./UAD3Z7G6.js";import{C as m,D as d,E as z,G as h,h as V,i as c,l as I,o as q}from"./NL2ZCSNM.js";import{d as vt}from"./GENBEWQD.js";function Y(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;let i=document.implementation.createHTMLDocument(),n=i.createElement("base"),r=i.createElement("a");return i.head.appendChild(n),i.body.appendChild(r),t&&(n.href=t),r.href=e,r.href}var Z=(()=>{let e=0,t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function w(e){let t=[];for(let i=0,n=e.length;i<n;i++)t.push(e[i]);return t}var v=null;function T(e={}){return v||(e.includeStyleProperties?(v=e.includeStyleProperties,v):(v=w(window.getComputedStyle(document.documentElement)),v))}function S(e,t){let n=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return n?parseFloat(n.replace("px","")):0}function bt(e){let t=S(e,"border-left-width"),i=S(e,"border-right-width");return e.clientWidth+t+i}function Et(e){let t=S(e,"border-top-width"),i=S(e,"border-bottom-width");return e.clientHeight+t+i}function F(e,t={}){let i=t.width||bt(e),n=t.height||Et(e);return{width:i,height:n}}function N(){let e,t;try{t=process}catch{}let i=t&&t.env?t.env.devicePixelRatio:null;return i&&(e=parseInt(i,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}var g=16384;function tt(e){(e.width>g||e.height>g)&&(e.width>g&&e.height>g?e.width>e.height?(e.height*=g/e.width,e.width=g):(e.width*=g/e.height,e.height=g):e.width>g?(e.height*=g/e.width,e.width=g):(e.width*=g/e.height,e.height=g))}function y(e){return new Promise((t,i)=>{let n=new Image;n.onload=()=>{n.decode().then(()=>{requestAnimationFrame(()=>t(n))})},n.onerror=i,n.crossOrigin="anonymous",n.decoding="async",n.src=e})}async function _t(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function et(e,t,i){let n="http://www.w3.org/2000/svg",r=document.createElementNS(n,"svg"),s=document.createElementNS(n,"foreignObject");return r.setAttribute("width",`${t}`),r.setAttribute("height",`${i}`),r.setAttribute("viewBox",`0 0 ${t} ${i}`),s.setAttribute("width","100%"),s.setAttribute("height","100%"),s.setAttribute("x","0"),s.setAttribute("y","0"),s.setAttribute("externalResourcesRequired","true"),r.appendChild(s),s.appendChild(e),_t(r)}var u=(e,t)=>{if(e instanceof t)return!0;let i=Object.getPrototypeOf(e);return i===null?!1:i.constructor.name===t.name||u(i,t)};function Ct(e){let t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function Pt(e,t){return T(t).map(i=>{let n=e.getPropertyValue(i),r=e.getPropertyPriority(i);return`${i}: ${n}${r?" !important":""};`}).join(" ")}function St(e,t,i,n){let r=`.${e}:${t}`,s=i.cssText?Ct(i):Pt(i,n);return document.createTextNode(`${r}{${s}}`)}function it(e,t,i,n){let r=window.getComputedStyle(e,i),s=r.getPropertyValue("content");if(s===""||s==="none")return;let a=Z();try{t.className=`${t.className} ${a}`}catch{return}let o=document.createElement("style");o.appendChild(St(a,i,r,n)),t.appendChild(o)}function nt(e,t,i){it(e,t,":before",i),it(e,t,":after",i)}var rt="application/font-woff",st="image/jpeg",Tt={woff:rt,woff2:rt,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:st,jpeg:st,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function kt(e){let t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function b(e){let t=kt(e).toLowerCase();return Tt[t]||""}function $t(e){return e.split(/,/)[1]}function C(e){return e.search(/^(data:)/)!==-1}function R(e,t){return`data:${t};base64,${e}`}async function D(e,t,i){let n=await fetch(e,t);if(n.status===404)throw new Error(`Resource "${n.url}" not found`);let r=await n.blob();return new Promise((s,a)=>{let o=new FileReader;o.onerror=a,o.onloadend=()=>{try{s(i({res:n,result:o.result}))}catch(p){a(p)}},o.readAsDataURL(r)})}var M={};function It(e,t,i){let n=e.replace(/\?.*/,"");return i&&(n=e),/ttf|otf|eot|woff2?/i.test(n)&&(n=n.replace(/.*\//,"")),t?`[${t}]${n}`:n}async function E(e,t,i){let n=It(e,t,i.includeQueryParams);if(M[n]!=null)return M[n];i.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let r;try{let s=await D(e,i.fetchRequestInit,({res:a,result:o})=>(t||(t=a.headers.get("Content-Type")||""),$t(o)));r=R(s,t)}catch(s){r=i.imagePlaceholder||"";let a=`Failed to fetch resource: ${e}`;s&&(a=typeof s=="string"?s:s.message),a&&console.warn(a)}return M[n]=r,r}async function Lt(e){let t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):y(t)}async function Ft(e,t){if(e.currentSrc){let s=document.createElement("canvas"),a=s.getContext("2d");s.width=e.clientWidth,s.height=e.clientHeight,a?.drawImage(e,0,0,s.width,s.height);let o=s.toDataURL();return y(o)}let i=e.poster,n=b(i),r=await E(i,n,t);return y(r)}async function Mt(e,t){var i;try{if(!((i=e?.contentDocument)===null||i===void 0)&&i.body)return await P(e.contentDocument.body,t,!0)}catch{}return e.cloneNode(!1)}async function Rt(e,t){return u(e,HTMLCanvasElement)?Lt(e):u(e,HTMLVideoElement)?Ft(e,t):u(e,HTMLIFrameElement)?Mt(e,t):e.cloneNode(at(e))}var Dt=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT",at=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SVG";async function At(e,t,i){var n,r;if(at(t))return t;let s=[];return Dt(e)&&e.assignedNodes?s=w(e.assignedNodes()):u(e,HTMLIFrameElement)&&(!((n=e.contentDocument)===null||n===void 0)&&n.body)?s=w(e.contentDocument.body.childNodes):s=w(((r=e.shadowRoot)!==null&&r!==void 0?r:e).childNodes),s.length===0||u(e,HTMLVideoElement)||await s.reduce((a,o)=>a.then(()=>P(o,i)).then(p=>{p&&t.appendChild(p)}),Promise.resolve()),t}function Bt(e,t,i){let n=t.style;if(!n)return;let r=window.getComputedStyle(e);r.cssText?(n.cssText=r.cssText,n.transformOrigin=r.transformOrigin):T(i).forEach(s=>{let a=r.getPropertyValue(s);s==="font-size"&&a.endsWith("px")&&(a=`${Math.floor(parseFloat(a.substring(0,a.length-2)))-.1}px`),u(e,HTMLIFrameElement)&&s==="display"&&a==="inline"&&(a="block"),s==="d"&&t.getAttribute("d")&&(a=`path(${t.getAttribute("d")})`),n.setProperty(s,a,r.getPropertyPriority(s))})}function Ut(e,t){u(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),u(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function Ht(e,t){if(u(e,HTMLSelectElement)){let i=t,n=Array.from(i.children).find(r=>e.value===r.getAttribute("value"));n&&n.setAttribute("selected","")}}function Ot(e,t,i){return u(t,Element)&&(Bt(e,t,i),nt(e,t,i),Ut(e,t),Ht(e,t)),t}async function Wt(e,t){let i=e.querySelectorAll?e.querySelectorAll("use"):[];if(i.length===0)return e;let n={};for(let s=0;s<i.length;s++){let o=i[s].getAttribute("xlink:href");if(o){let p=e.querySelector(o),f=document.querySelector(o);!p&&f&&!n[o]&&(n[o]=await P(f,t,!0))}}let r=Object.values(n);if(r.length){let s="http://www.w3.org/1999/xhtml",a=document.createElementNS(s,"svg");a.setAttribute("xmlns",s),a.style.position="absolute",a.style.width="0",a.style.height="0",a.style.overflow="hidden",a.style.display="none";let o=document.createElementNS(s,"defs");a.appendChild(o);for(let p=0;p<r.length;p++)o.appendChild(r[p]);e.appendChild(a)}return e}async function P(e,t,i){return!i&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(n=>Rt(n,t)).then(n=>At(e,n,t)).then(n=>Ot(e,n,t)).then(n=>Wt(n,t))}var ot=/url\((['"]?)([^'"]+?)\1\)/g,Vt=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,qt=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function zt(e){let t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function jt(e){let t=[];return e.replace(ot,(i,n,r)=>(t.push(r),i)),t.filter(i=>!C(i))}async function Gt(e,t,i,n,r){try{let s=i?Y(t,i):t,a=b(t),o;if(r){let p=await r(s);o=R(p,a)}else o=await E(s,a,n);return e.replace(zt(t),`$1${o}$3`)}catch{}return e}function Jt(e,{preferredFontFormat:t}){return t?e.replace(qt,i=>{for(;;){let[n,,r]=Vt.exec(i)||[];if(!r)return"";if(r===t)return`src: ${n};`}}):e}function A(e){return e.search(ot)!==-1}async function k(e,t,i){if(!A(e))return e;let n=Jt(e,i);return jt(n).reduce((s,a)=>s.then(o=>Gt(o,a,t,i)),Promise.resolve(n))}async function _(e,t,i){var n;let r=(n=t.style)===null||n===void 0?void 0:n.getPropertyValue(e);if(r){let s=await k(r,null,i);return t.style.setProperty(e,s,t.style.getPropertyPriority(e)),!0}return!1}async function Xt(e,t){await _("background",e,t)||await _("background-image",e,t),await _("mask",e,t)||await _("-webkit-mask",e,t)||await _("mask-image",e,t)||await _("-webkit-mask-image",e,t)}async function Kt(e,t){let i=u(e,HTMLImageElement);if(!(i&&!C(e.src))&&!(u(e,SVGImageElement)&&!C(e.href.baseVal)))return;let n=i?e.src:e.href.baseVal,r=await E(n,b(n),t);await new Promise((s,a)=>{e.onload=s,e.onerror=t.onImageErrorHandler?(...p)=>{try{s(t.onImageErrorHandler(...p))}catch(f){a(f)}}:a;let o=e;o.decode&&(o.decode=s),o.loading==="lazy"&&(o.loading="eager"),i?(e.srcset="",e.src=r):e.href.baseVal=r})}async function Qt(e,t){let n=w(e.childNodes).map(r=>B(r,t));await Promise.all(n).then(()=>e)}async function B(e,t){u(e,Element)&&(await Xt(e,t),await Kt(e,t),await Qt(e,t))}function pt(e,t){let{style:i}=e;t.backgroundColor&&(i.backgroundColor=t.backgroundColor),t.width&&(i.width=`${t.width}px`),t.height&&(i.height=`${t.height}px`);let n=t.style;return n!=null&&Object.keys(n).forEach(r=>{i[r]=n[r]}),e}var lt={};async function ct(e){let t=lt[e];if(t!=null)return t;let n=await(await fetch(e)).text();return t={url:e,cssText:n},lt[e]=t,t}async function ht(e,t){let i=e.cssText,n=/url\(["']?([^"')]+)["']?\)/g,s=(i.match(/url\([^)]+\)/g)||[]).map(async a=>{let o=a.replace(n,"$1");return o.startsWith("https://")||(o=new URL(o,e.url).href),D(o,t.fetchRequestInit,({result:p})=>(i=i.replace(a,`url(${p})`),[a,p]))});return Promise.all(s).then(()=>i)}function dt(e){if(e==null)return[];let t=[],i=/(\/\*[\s\S]*?\*\/)/gi,n=e.replace(i,""),r=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){let p=r.exec(n);if(p===null)break;t.push(p[0])}n=n.replace(r,"");let s=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,a="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",o=new RegExp(a,"gi");for(;;){let p=s.exec(n);if(p===null){if(p=o.exec(n),p===null)break;s.lastIndex=o.lastIndex}else o.lastIndex=s.lastIndex;t.push(p[0])}return t}async function Yt(e,t){let i=[],n=[];return e.forEach(r=>{if("cssRules"in r)try{w(r.cssRules||[]).forEach((s,a)=>{if(s.type===CSSRule.IMPORT_RULE){let o=a+1,p=s.href,f=ct(p).then(x=>ht(x,t)).then(x=>dt(x).forEach($=>{try{r.insertRule($,$.startsWith("@import")?o+=1:r.cssRules.length)}catch(xt){console.error("Error inserting rule from remote css",{rule:$,error:xt})}})).catch(x=>{console.error("Error loading remote css",x.toString())});n.push(f)}})}catch(s){let a=e.find(o=>o.href==null)||document.styleSheets[0];r.href!=null&&n.push(ct(r.href).then(o=>ht(o,t)).then(o=>dt(o).forEach(p=>{a.insertRule(p,a.cssRules.length)})).catch(o=>{console.error("Error loading remote stylesheet",o)})),console.error("Error inlining remote css file",s)}}),Promise.all(n).then(()=>(e.forEach(r=>{if("cssRules"in r)try{w(r.cssRules||[]).forEach(s=>{i.push(s)})}catch(s){console.error(`Error while reading CSS rules from ${r.href}`,s)}}),i))}function Zt(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>A(t.style.getPropertyValue("src")))}async function Nt(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");let i=w(e.ownerDocument.styleSheets),n=await Yt(i,t);return Zt(n)}function ut(e){return e.trim().replace(/["']/g,"")}function te(e){let t=new Set;function i(n){(n.style.fontFamily||getComputedStyle(n).fontFamily).split(",").forEach(s=>{t.add(ut(s))}),Array.from(n.children).forEach(s=>{s instanceof HTMLElement&&i(s)})}return i(e),t}async function mt(e,t){let i=await Nt(e,t),n=te(e);return(await Promise.all(i.filter(s=>n.has(ut(s.style.fontFamily))).map(s=>{let a=s.parentStyleSheet?s.parentStyleSheet.href:null;return k(s.cssText,a,t)}))).join(`
|
|
5
|
-
`)}async function gt(e,t){let i=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await mt(e,t);if(i){let n=document.createElement("style"),r=document.createTextNode(i);n.appendChild(r),e.firstChild?e.insertBefore(n,e.firstChild):e.appendChild(n)}}async function ee(e,t={}){let{width:i,height:n}=
|
|
3
|
+
v1.2.0-next.15 */
|
|
4
|
+
import{a as yt}from"./PXZ3HDAQ.js";import{a as F}from"./F7DK7MGG.js";import{a as G}from"./YWPBUNRL.js";import{c as J,n as X,t as K,z as Q}from"./HSM2426M.js";import{b as j}from"./LYUK5J5Q.js";import"./L733W7AD.js";import"./BE4OEXWO.js";import{C as m,D as d,E as q,G as h,h as z,i as c,l as I,o as L}from"./OPK4XF2Q.js";import{d as vt}from"./YHY4R3U6.js";function Y(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;let i=document.implementation.createHTMLDocument(),n=i.createElement("base"),r=i.createElement("a");return i.head.appendChild(n),i.body.appendChild(r),t&&(n.href=t),r.href=e,r.href}var Z=(()=>{let e=0,t=()=>`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4);return()=>(e+=1,`u${t()}${e}`)})();function x(e){let t=[];for(let i=0,n=e.length;i<n;i++)t.push(e[i]);return t}var v=null;function T(e={}){return v||(e.includeStyleProperties?(v=e.includeStyleProperties,v):(v=x(window.getComputedStyle(document.documentElement)),v))}function S(e,t){let n=(e.ownerDocument.defaultView||window).getComputedStyle(e).getPropertyValue(t);return n?parseFloat(n.replace("px","")):0}function bt(e){let t=S(e,"border-left-width"),i=S(e,"border-right-width");return e.clientWidth+t+i}function Et(e){let t=S(e,"border-top-width"),i=S(e,"border-bottom-width");return e.clientHeight+t+i}function M(e,t={}){let i=t.width||bt(e),n=t.height||Et(e);return{width:i,height:n}}function N(){let e,t;try{t=process}catch{}let i=t&&t.env?t.env.devicePixelRatio:null;return i&&(e=parseInt(i,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}var g=16384;function tt(e){(e.width>g||e.height>g)&&(e.width>g&&e.height>g?e.width>e.height?(e.height*=g/e.width,e.width=g):(e.width*=g/e.height,e.height=g):e.width>g?(e.height*=g/e.width,e.width=g):(e.width*=g/e.height,e.height=g))}function y(e){return new Promise((t,i)=>{let n=new Image;n.onload=()=>{n.decode().then(()=>{requestAnimationFrame(()=>t(n))})},n.onerror=i,n.crossOrigin="anonymous",n.decoding="async",n.src=e})}async function _t(e){return Promise.resolve().then(()=>new XMLSerializer().serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)}async function et(e,t,i){let n="http://www.w3.org/2000/svg",r=document.createElementNS(n,"svg"),s=document.createElementNS(n,"foreignObject");return r.setAttribute("width",`${t}`),r.setAttribute("height",`${i}`),r.setAttribute("viewBox",`0 0 ${t} ${i}`),s.setAttribute("width","100%"),s.setAttribute("height","100%"),s.setAttribute("x","0"),s.setAttribute("y","0"),s.setAttribute("externalResourcesRequired","true"),r.appendChild(s),s.appendChild(e),_t(r)}var u=(e,t)=>{if(e instanceof t)return!0;let i=Object.getPrototypeOf(e);return i===null?!1:i.constructor.name===t.name||u(i,t)};function Ct(e){let t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}function Pt(e,t){return T(t).map(i=>{let n=e.getPropertyValue(i),r=e.getPropertyPriority(i);return`${i}: ${n}${r?" !important":""};`}).join(" ")}function St(e,t,i,n){let r=`.${e}:${t}`,s=i.cssText?Ct(i):Pt(i,n);return document.createTextNode(`${r}{${s}}`)}function it(e,t,i,n){let r=window.getComputedStyle(e,i),s=r.getPropertyValue("content");if(s===""||s==="none")return;let a=Z();try{t.className=`${t.className} ${a}`}catch{return}let o=document.createElement("style");o.appendChild(St(a,i,r,n)),t.appendChild(o)}function nt(e,t,i){it(e,t,":before",i),it(e,t,":after",i)}var rt="application/font-woff",st="image/jpeg",Tt={woff:rt,woff2:rt,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:st,jpeg:st,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function kt(e){let t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}function b(e){let t=kt(e).toLowerCase();return Tt[t]||""}function $t(e){return e.split(/,/)[1]}function C(e){return e.search(/^(data:)/)!==-1}function D(e,t){return`data:${t};base64,${e}`}async function A(e,t,i){let n=await fetch(e,t);if(n.status===404)throw new Error(`Resource "${n.url}" not found`);let r=await n.blob();return new Promise((s,a)=>{let o=new FileReader;o.onerror=a,o.onloadend=()=>{try{s(i({res:n,result:o.result}))}catch(p){a(p)}},o.readAsDataURL(r)})}var R={};function It(e,t,i){let n=e.replace(/\?.*/,"");return i&&(n=e),/ttf|otf|eot|woff2?/i.test(n)&&(n=n.replace(/.*\//,"")),t?`[${t}]${n}`:n}async function E(e,t,i){let n=It(e,t,i.includeQueryParams);if(R[n]!=null)return R[n];i.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+new Date().getTime());let r;try{let s=await A(e,i.fetchRequestInit,({res:a,result:o})=>(t||(t=a.headers.get("Content-Type")||""),$t(o)));r=D(s,t)}catch(s){r=i.imagePlaceholder||"";let a=`Failed to fetch resource: ${e}`;s&&(a=typeof s=="string"?s:s.message),a&&console.warn(a)}return R[n]=r,r}async function Lt(e){let t=e.toDataURL();return t==="data:,"?e.cloneNode(!1):y(t)}async function Ft(e,t){if(e.currentSrc){let s=document.createElement("canvas"),a=s.getContext("2d");s.width=e.clientWidth,s.height=e.clientHeight,a?.drawImage(e,0,0,s.width,s.height);let o=s.toDataURL();return y(o)}let i=e.poster,n=b(i),r=await E(i,n,t);return y(r)}async function Mt(e,t){var i;try{if(!((i=e?.contentDocument)===null||i===void 0)&&i.body)return await P(e.contentDocument.body,t,!0)}catch{}return e.cloneNode(!1)}async function Rt(e,t){return u(e,HTMLCanvasElement)?Lt(e):u(e,HTMLVideoElement)?Ft(e,t):u(e,HTMLIFrameElement)?Mt(e,t):e.cloneNode(at(e))}var Dt=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SLOT",at=e=>e.tagName!=null&&e.tagName.toUpperCase()==="SVG";async function At(e,t,i){var n,r;if(at(t))return t;let s=[];return Dt(e)&&e.assignedNodes?s=x(e.assignedNodes()):u(e,HTMLIFrameElement)&&(!((n=e.contentDocument)===null||n===void 0)&&n.body)?s=x(e.contentDocument.body.childNodes):s=x(((r=e.shadowRoot)!==null&&r!==void 0?r:e).childNodes),s.length===0||u(e,HTMLVideoElement)||await s.reduce((a,o)=>a.then(()=>P(o,i)).then(p=>{p&&t.appendChild(p)}),Promise.resolve()),t}function Bt(e,t,i){let n=t.style;if(!n)return;let r=window.getComputedStyle(e);r.cssText?(n.cssText=r.cssText,n.transformOrigin=r.transformOrigin):T(i).forEach(s=>{let a=r.getPropertyValue(s);s==="font-size"&&a.endsWith("px")&&(a=`${Math.floor(parseFloat(a.substring(0,a.length-2)))-.1}px`),u(e,HTMLIFrameElement)&&s==="display"&&a==="inline"&&(a="block"),s==="d"&&t.getAttribute("d")&&(a=`path(${t.getAttribute("d")})`),n.setProperty(s,a,r.getPropertyPriority(s))})}function Ut(e,t){u(e,HTMLTextAreaElement)&&(t.innerHTML=e.value),u(e,HTMLInputElement)&&t.setAttribute("value",e.value)}function Ht(e,t){if(u(e,HTMLSelectElement)){let i=t,n=Array.from(i.children).find(r=>e.value===r.getAttribute("value"));n&&n.setAttribute("selected","")}}function Ot(e,t,i){return u(t,Element)&&(Bt(e,t,i),nt(e,t,i),Ut(e,t),Ht(e,t)),t}async function Wt(e,t){let i=e.querySelectorAll?e.querySelectorAll("use"):[];if(i.length===0)return e;let n={};for(let s=0;s<i.length;s++){let o=i[s].getAttribute("xlink:href");if(o){let p=e.querySelector(o),f=document.querySelector(o);!p&&f&&!n[o]&&(n[o]=await P(f,t,!0))}}let r=Object.values(n);if(r.length){let s="http://www.w3.org/1999/xhtml",a=document.createElementNS(s,"svg");a.setAttribute("xmlns",s),a.style.position="absolute",a.style.width="0",a.style.height="0",a.style.overflow="hidden",a.style.display="none";let o=document.createElementNS(s,"defs");a.appendChild(o);for(let p=0;p<r.length;p++)o.appendChild(r[p]);e.appendChild(a)}return e}async function P(e,t,i){return!i&&t.filter&&!t.filter(e)?null:Promise.resolve(e).then(n=>Rt(n,t)).then(n=>At(e,n,t)).then(n=>Ot(e,n,t)).then(n=>Wt(n,t))}var ot=/url\((['"]?)([^'"]+?)\1\)/g,Vt=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,zt=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function qt(e){let t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}function jt(e){let t=[];return e.replace(ot,(i,n,r)=>(t.push(r),i)),t.filter(i=>!C(i))}async function Gt(e,t,i,n,r){try{let s=i?Y(t,i):t,a=b(t),o;if(r){let p=await r(s);o=D(p,a)}else o=await E(s,a,n);return e.replace(qt(t),`$1${o}$3`)}catch{}return e}function Jt(e,{preferredFontFormat:t}){return t?e.replace(zt,i=>{for(;;){let[n,,r]=Vt.exec(i)||[];if(!r)return"";if(r===t)return`src: ${n};`}}):e}function B(e){return e.search(ot)!==-1}async function k(e,t,i){if(!B(e))return e;let n=Jt(e,i);return jt(n).reduce((s,a)=>s.then(o=>Gt(o,a,t,i)),Promise.resolve(n))}async function _(e,t,i){var n;let r=(n=t.style)===null||n===void 0?void 0:n.getPropertyValue(e);if(r){let s=await k(r,null,i);return t.style.setProperty(e,s,t.style.getPropertyPriority(e)),!0}return!1}async function Xt(e,t){await _("background",e,t)||await _("background-image",e,t),await _("mask",e,t)||await _("-webkit-mask",e,t)||await _("mask-image",e,t)||await _("-webkit-mask-image",e,t)}async function Kt(e,t){let i=u(e,HTMLImageElement);if(!(i&&!C(e.src))&&!(u(e,SVGImageElement)&&!C(e.href.baseVal)))return;let n=i?e.src:e.href.baseVal,r=await E(n,b(n),t);await new Promise((s,a)=>{e.onload=s,e.onerror=t.onImageErrorHandler?(...p)=>{try{s(t.onImageErrorHandler(...p))}catch(f){a(f)}}:a;let o=e;o.decode&&(o.decode=s),o.loading==="lazy"&&(o.loading="eager"),i?(e.srcset="",e.src=r):e.href.baseVal=r})}async function Qt(e,t){let n=x(e.childNodes).map(r=>U(r,t));await Promise.all(n).then(()=>e)}async function U(e,t){u(e,Element)&&(await Xt(e,t),await Kt(e,t),await Qt(e,t))}function pt(e,t){let{style:i}=e;t.backgroundColor&&(i.backgroundColor=t.backgroundColor),t.width&&(i.width=`${t.width}px`),t.height&&(i.height=`${t.height}px`);let n=t.style;return n!=null&&Object.keys(n).forEach(r=>{i[r]=n[r]}),e}var lt={};async function ct(e){let t=lt[e];if(t!=null)return t;let n=await(await fetch(e)).text();return t={url:e,cssText:n},lt[e]=t,t}async function ht(e,t){let i=e.cssText,n=/url\(["']?([^"')]+)["']?\)/g,s=(i.match(/url\([^)]+\)/g)||[]).map(async a=>{let o=a.replace(n,"$1");return o.startsWith("https://")||(o=new URL(o,e.url).href),A(o,t.fetchRequestInit,({result:p})=>(i=i.replace(a,`url(${p})`),[a,p]))});return Promise.all(s).then(()=>i)}function dt(e){if(e==null)return[];let t=[],i=/(\/\*[\s\S]*?\*\/)/gi,n=e.replace(i,""),r=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){let p=r.exec(n);if(p===null)break;t.push(p[0])}n=n.replace(r,"");let s=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,a="((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})",o=new RegExp(a,"gi");for(;;){let p=s.exec(n);if(p===null){if(p=o.exec(n),p===null)break;s.lastIndex=o.lastIndex}else o.lastIndex=s.lastIndex;t.push(p[0])}return t}async function Yt(e,t){let i=[],n=[];return e.forEach(r=>{if("cssRules"in r)try{x(r.cssRules||[]).forEach((s,a)=>{if(s.type===CSSRule.IMPORT_RULE){let o=a+1,p=s.href,f=ct(p).then(w=>ht(w,t)).then(w=>dt(w).forEach($=>{try{r.insertRule($,$.startsWith("@import")?o+=1:r.cssRules.length)}catch(wt){console.error("Error inserting rule from remote css",{rule:$,error:wt})}})).catch(w=>{console.error("Error loading remote css",w.toString())});n.push(f)}})}catch(s){let a=e.find(o=>o.href==null)||document.styleSheets[0];r.href!=null&&n.push(ct(r.href).then(o=>ht(o,t)).then(o=>dt(o).forEach(p=>{a.insertRule(p,a.cssRules.length)})).catch(o=>{console.error("Error loading remote stylesheet",o)})),console.error("Error inlining remote css file",s)}}),Promise.all(n).then(()=>(e.forEach(r=>{if("cssRules"in r)try{x(r.cssRules||[]).forEach(s=>{i.push(s)})}catch(s){console.error(`Error while reading CSS rules from ${r.href}`,s)}}),i))}function Zt(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>B(t.style.getPropertyValue("src")))}async function Nt(e,t){if(e.ownerDocument==null)throw new Error("Provided element is not within a Document");let i=x(e.ownerDocument.styleSheets),n=await Yt(i,t);return Zt(n)}function ut(e){return e.trim().replace(/["']/g,"")}function te(e){let t=new Set;function i(n){(n.style.fontFamily||getComputedStyle(n).fontFamily).split(",").forEach(s=>{t.add(ut(s))}),Array.from(n.children).forEach(s=>{s instanceof HTMLElement&&i(s)})}return i(e),t}async function mt(e,t){let i=await Nt(e,t),n=te(e);return(await Promise.all(i.filter(s=>n.has(ut(s.style.fontFamily))).map(s=>{let a=s.parentStyleSheet?s.parentStyleSheet.href:null;return k(s.cssText,a,t)}))).join(`
|
|
5
|
+
`)}async function gt(e,t){let i=t.fontEmbedCSS!=null?t.fontEmbedCSS:t.skipFonts?null:await mt(e,t);if(i){let n=document.createElement("style"),r=document.createTextNode(i);n.appendChild(r),e.firstChild?e.insertBefore(n,e.firstChild):e.appendChild(n)}}async function ee(e,t={}){let{width:i,height:n}=M(e,t),r=await P(e,t,!0);return await gt(r,t),await U(r,t),pt(r,t),await et(r,i,n)}async function ft(e,t={}){let{width:i,height:n}=M(e,t),r=await ee(e,t),s=await y(r),a=document.createElement("canvas"),o=a.getContext("2d"),p=t.pixelRatio||N(),f=t.canvasWidth||i,w=t.canvasHeight||n;return a.width=f*p,a.height=w*p,t.skipAutoScale||tt(a),a.style.width=`${f}`,a.style.height=`${w}`,t.backgroundColor&&(o.fillStyle=t.backgroundColor,o.fillRect(0,0,a.width,a.height)),o.drawImage(s,0,0,a.width,a.height),a}async function xt(e,t={}){return(await ft(e,t)).toDataURL()}async function H(e,t={}){return(await ft(e,t)).toDataURL("image/jpeg",t.quality||1)}var W=vt(yt(),1);var ie=`
|
|
6
6
|
@media print {
|
|
7
7
|
@page {
|
|
8
8
|
size: Portrait;
|
|
@@ -21,7 +21,7 @@ import{a as yt}from"./V6OSHRQM.js";import{a as L}from"./FS57RN34.js";import{a as
|
|
|
21
21
|
width: 100%;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
body > *:not(.instant-apps-export-print) { display: none; }
|
|
24
|
+
body > *:not(.instant-apps-export-print) { display: none !important; }
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
* {
|
|
@@ -108,6 +108,7 @@ import{a as yt}from"./V6OSHRQM.js";import{a as L}from"./FS57RN34.js";import{a as
|
|
|
108
108
|
|
|
109
109
|
.instant-apps-export-print__popup-container {
|
|
110
110
|
height: min-content;
|
|
111
|
+
min-width: 275px;
|
|
111
112
|
max-width: 325px;
|
|
112
113
|
display: none;
|
|
113
114
|
color: #323232;
|
|
@@ -162,7 +163,7 @@ import{a as yt}from"./V6OSHRQM.js";import{a as L}from"./FS57RN34.js";import{a as
|
|
|
162
163
|
color: #323232;
|
|
163
164
|
}
|
|
164
165
|
|
|
165
|
-
.instant-apps-export-print__popup-content *,
|
|
166
|
+
.instant-apps-export-print__popup-content *, .instant-apps-export-print .esri-feature.esri-widget * {
|
|
166
167
|
color: #323232;
|
|
167
168
|
}
|
|
168
169
|
|
|
@@ -349,6 +350,7 @@ import{a as yt}from"./V6OSHRQM.js";import{a as L}from"./FS57RN34.js";import{a as
|
|
|
349
350
|
align-items: center;
|
|
350
351
|
justify-content: center;
|
|
351
352
|
position: absolute;
|
|
353
|
+
z-index: 1;
|
|
352
354
|
top: 0;
|
|
353
355
|
left: 0;
|
|
354
356
|
right: 0;
|
|
@@ -382,4 +384,4 @@ import{a as yt}from"./V6OSHRQM.js";import{a as L}from"./FS57RN34.js";import{a as
|
|
|
382
384
|
|
|
383
385
|
.screenshot-img-container calcite-button {
|
|
384
386
|
margin: 5px;
|
|
385
|
-
}`,re=V`:host{display:block;--instant-apps-export-action-background: var(--calcite-color-foreground-1);--instant-apps-export-action-background-hover: var(--calcite-color-foreground-2);--instant-apps-export-action-background-press: var(--calcite-color-foreground-3);--instant-apps-export-action-height: 100%;--instant-apps-export-action-width: fit-content;--instant-apps-export-action-icon-color: var(--calcite-color-text-3);--instant-apps-export-action-icon-hover-color: var(--calcite-color-text-1);--instant-apps-export-background: var(--calcite-color-foreground-1);--instant-apps-export-text-color: var(--calcite-color-text-1);--instant-apps-export-popover-width: 250px;--instant-apps-export-button-text-dark-hover-color: #fff}.instant-apps-export{height:100%}.instant-apps-export *{box-sizing:border-box}.instant-apps-export__popover-container,.instant-apps-export__inline-container{padding:12px;background:var(--instant-apps-export-background);--calcite-color-text-1: var(--instant-apps-export-text-color)}.instant-apps-export__popover-container{width:var(--instant-apps-export-popover-width)}.instant-apps-export calcite-action{height:var(--instant-apps-export-action-height);width:var(--instant-apps-export-action-width);--calcite-color-foreground-1: var(--instant-apps-export-action-background);--calcite-color-foreground-2: var(--instant-apps-export-action-background-hover);--calcite-color-foreground-3: var(--instant-apps-export-action-background-press);--calcite-color-text-3: var(--instant-apps-export-action-icon-color);--calcite-color-text-1: var(--instant-apps-export-action-icon-hover-color)}.instant-apps-export .instant-apps-export-print{display:none}.instant-apps-export .instant-apps-export-print_img{display:flex;flex-flow:row wrap}.instant-apps-export__visually-hidden{position:absolute;top:0;z-index:-1;visibility:hidden}.instant-apps-export calcite-input{--calcite-color-foreground-1: var(--instant-apps-export-background);--calcite-color-text-1: var(--instant-apps-export-text-color)}.instant-apps-export calcite-popover{--calcite-color-foreground-1: var(--instant-apps-export-background)}.instant-apps-export calcite-switch{--calcite-color-foreground-1: #fff;--calcite-color-foreground-2: #f3f3f3}.instant-apps-export calcite-button:last-of-type{margin-top:.5rem}.calcite-mode-dark.instant-apps-export .instant-apps-export__set-map-area{--calcite-color-brand-hover: #fff}.calcite-mode-dark.instant-apps-export calcite-switch{--calcite-color-foreground-1: #2b2b2b;--calcite-color-foreground-2: #202020}.instant-apps-export__compass-container.esri-widget{background:#fff;box-shadow:0 1px 2px #0000004d}.instant-apps-export__compass-container.esri-widget .esri-compass__icon.esri-icon-compass{color:#6e6e6e}.hide{display:none}.screenshotCursor{cursor:crosshair}`,l={baseDark:"instant-apps-export calcite-mode-dark",baseLight:"instant-apps-export calcite-mode-light",inlineContainer:"instant-apps-export__inline-container",popoverContainer:"instant-apps-export__popover-container",hidden:"instant-apps-export__visually-hidden",setMapArea:"instant-apps-export__set-map-area",print:{pdfBase:"instant-apps-export-print instant-apps-export-print__pdf",imgBase:"instant-apps-export-print instant-apps-export-print__img",imgExtraContent:"instant-apps-export-print__img--extra-content",contentContainer:"instant-apps-export-print__content-container",extraContainer:"instant-apps-export-print__extra-container",legendContainer:"instant-apps-export-print__legend-container",compassContainer:"instant-apps-export-print__compass-container",scaleBarContainer:"instant-apps-export-print__scale-bar-container",popupContainer:"instant-apps-export-print__popup-container",popupContent:"instant-apps-export-print__popup-content",popupTitle:"instant-apps-export-print__popup-title",view:"instant-apps-export-print__view",viewContainer:"instant-apps-export-print__view-container",viewWrapper:"instant-apps-export-print__view-wrapper",attribution:"instant-apps-export-print__attribution"}},H="instant-app-export-drag",W=class extends z{constructor(){super(...arguments),this._messages=G({name:"instant-apps-export",blocking:!0}),this.compassContainerEl=m(),this.extraContainerEl=m(),this.legendContainerEl=m(),this.popoverEl=m(),this.popupContainerEl=m(),this.popupContentEl=m(),this.popupTitleEl=m(),this.printContainerEl=m(),this.printEl=m(),this.scaleBarContainerEl=m(),this.viewWrapperEl=m(),this.viewContainerEl=m(),this.viewEl=m(),this.attributionEl=m(),this.baseClass=l.baseLight,this.exportIsLoading=void 0,this.allowedFileTypes=["PDF","JPG","PNG"],this.beforeExport=async()=>await Promise.resolve(),this.popoverIcon="export",this.headerTitle="",this.logoImage="",this.mapAltText="",this.includeExtraContent=!0,this.showExtraContentInImg=!1,this.includeLegend=!0,this.includeMap=!0,this.includePopup=!1,this.includeFileFormat=!0,this.mode="popover",this.popoverPositioning="absolute",this.popoverPlacement="auto",this.scale="m",this.showHeaderTitle=!0,this.showIncludeLegend=!0,this.showIncludeMap=!1,this.showIncludePopup=!0,this.showScaleBar=!1,this.maskBackground="rgba(255, 51, 0, 0.1)",this.maskBorder="2px dashed rgb(255, 51, 0)",this.exportOutputUpdated=q()}static{this.properties={baseClass:16,exportIsLoading:16,selectedFileType:16,allowedFileTypes:0,output:0,beforeExport:0,popoverIcon:1,extraContent:0,extraContentLabel:1,headerTitle:1,logoImage:1,logoAltText:1,mapAltText:1,includeExtraContent:5,showExtraContentInImg:5,includeLegend:5,includeMap:5,includePopup:5,includeFileFormat:5,mode:3,popoverPositioning:1,popoverPlacement:1,scale:1,showHeaderTitle:5,showIncludeLegend:5,showIncludeMap:5,showIncludePopup:5,showScaleBar:5,view:0,maskBackground:1,maskBorder:1,defaultFileType:1}}static{this.styles=re}async load(){this.selectedFileType=this.getDefaultFileType(),this.pdfIncludeMap=this.includeMap,this.baseClass=L(this.el)==="dark"?l.baseDark:l.baseLight,await this.initializeModules()}willUpdate(t){t.has("view")?this.handleIncludePopup():t.has("allowedFileTypes")&&(this.allowedFileTypes?.length||(this.allowedFileTypes=["PDF","JPG","PNG"]),this.selectedFileType=this.getDefaultFileType())}loaded(){this.printEl.value&&(this.printContainerEl.value?.prepend(this.printEl.value),this.handleIncludePopup())}getDefaultFileType(){return this.defaultFileType??this.allowedFileTypes?.[0]??"PDF"}async initializeModules(){let t=await Q();this.handles=await J(),this.reactiveUtils=t}optionOnChange(t){let i=t.target,n=i.value;this[n]=i.checked,this.updateExportOutput()}updateHeaderTitle(t){let i=t.target;this.headerTitle=i.value,this.updateExportOutput()}async exportOnClick(){this.removeScreenshotElements(),await this.beforeExport(),this.popoverEl.value&&(this.popoverEl.value.open=!1),this.viewWrapperEl.value&&this.compassContainerEl.value&&!this.viewWrapperEl.value.contains(this.compassContainerEl.value)&&this.viewWrapperEl.value.append(this.compassContainerEl.value),this.handleViewExportOnClick()}async exportPreviewOnClick(){this.selectedFileType==="PDF"?await this.exportPDF():this.exportImg()}async exportPDF(){this.removeScreenshotElements(),await this.beforeExport(),this.viewWrapperEl.value&&this.compassContainerEl.value&&!this.viewWrapperEl.value.contains(this.compassContainerEl.value)&&this.viewWrapperEl.value.append(this.compassContainerEl.value),this.handleViewExportOnClick()}exportImg(){if(this.resetPopupVisibility(),!this.dataUrl)return;let t=document.createElement("a");t.id="download-link",t.href=this.dataUrl;let i=this.headerTitle??document.title,n=this.selectedFileType?.toLowerCase()??"jpg";t.download=`${i}.${n}`,t.click(),this.dataUrl=null,this.exportIsLoading=!1,this.removeScreenshotElements(),this.resetPrintContent()}async handleViewExportOnClick(){this.updateExportOutput(),this.view?(this.addPrintStyling(),this.printEl.value&&document.body.prepend(this.printEl.value),this.handleExtraContent(),this.includeMap?(this.updateAttribution(),this.updateScaleBar(),this.viewScreenshot(),this.requestUpdate(),this.handleImgLoaded()):(this.requestUpdate(),this.handleImgLoaded())):this.popoverEl.value&&(this.popoverEl.value.open=!1)}addPrintStyling(){this.printStyleEl||(this.printStyleEl=document.createElement("style"),this.printStyleEl.innerHTML=ie,document.body.prepend(this.printStyleEl))}handleImgLoaded(){this.exportIsLoading=!0,setTimeout(()=>{this.selectedFileType==="PDF"&&(this.exportIsLoading=!1),this.setupViewPrintElements()},1500)}handleExtraContent(){if(!this.printEl.value)return;let t=this.printEl.value.querySelector("#export-content");if(t){t.innerHTML="";let i=this.extraContent&&this.includeExtraContent,n=this.selectedFileType!=="PDF"&&this.showExtraContentInImg&&i;this.printEl.value.classList.toggle(l.print.imgExtraContent,n),i?(t.style.display="block",t.append(this.extraContent.cloneNode(!0))):t.style.display="none"}else this.showExtraContentInImg&&this.selectedFileType!=="PDF"&&!this.includeExtraContent&&this.printEl.value.classList.toggle(l.print.imgExtraContent,!1)}resetPrintContent(){if(!this.view||!this.printEl.value)return;this.screenshot=null,this.printContainerEl.value?.prepend(this.printEl.value),this.printStyleEl?.remove(),this.tmpPopupTitleEl?.remove(),this.printStyleEl=void 0;let t=this.printEl.value.querySelector("#export-content");t&&(t.innerHTML="")}async updatePopupToPrint(){if(!this.view||!this.popupContainerEl.value||!this.printEl.value)return;this.popupContainerEl.value.style.display=this.includePopup&&this.view?.popup?.visible?"block":"none",this.checkPopupOpen();let t=this.includePopup&&(this.view?.popup?.visible||this.popupHiddenByMapArea)&&this.view?.popup?.selectedFeature;if(this.printEl.value.classList.toggle(l.print.imgExtraContent,this.selectedFileType!=="PDF"&&!!t),t){let i=document.createElement(`h${this.view?.popup?.headingLevel??2}`);i.innerHTML=this.view?.popup?.title??"",i.className="esri-widget__heading esri-popup__header-title",this.popupTitleEl.value?(this.popupTitleEl.value.style.display=this.view?.popup?.title?"block":"none",this.popupTitleEl.value.innerHTML="",this.popupTitleEl.value.prepend(i)):(this.tmpPopupTitleEl=document.createElement("div"),this.tmpPopupTitleEl.prepend(i),this.tmpPopupTitleEl.style.display=this.view?.popup?.title?"block":"none",this.popupContainerEl.value.prepend(this.tmpPopupTitleEl))}}updateExportOutput(){this.output={},this.showHeaderTitle&&(this.output.headerTitle=this.headerTitle),this.showIncludeLegend&&(this.output.includeLegend=this.includeLegend),this.showIncludeMap&&(this.output.includeMap=this.includeMap),this.showIncludePopup&&(this.output.includePopup=this.includePopup),this.exportOutputUpdated.emit()}setupViewPrintElements(){if(this.view)if(this.handleLegendSetup(),this.selectedFileType==="PDF"){let t=document.title;this.showHeaderTitle&&this.headerTitle&&(document.title=this.headerTitle),window.print(),document.title=t,setTimeout(()=>{this.resetPrintContent()},1e3)}else this.convertToImage()}async convertToImage(){/^((?!chrome|android).)*safari/iu.test(navigator?.userAgent)?await this.handleSafariToImage():await this.handleToImage()}async handleSafariToImage(){if(!this.printEl.value)return;let t={allowTaint:!0,logging:!1},i=this.selectedFileType==="PNG"?"image/png":"image/jpeg",n="";try{n=(await(0,O.default)(this.printEl.value,t)).toDataURL(i)}catch{this.logoImage=void 0;let r=500;await new Promise(s=>setTimeout(s,r)),n=(await(0,O.default)(this.printEl.value,t)).toDataURL(i)}finally{this.handleSetupImage(n)}}async handleToImage(){if(!this.printEl.value)return;let t={backgroundColor:"#FFF",skipFonts:!0},i="";try{this.selectedFileType==="JPG"?i=await U(this.printEl.value,t):i=await wt(this.printEl.value,t)}catch{this.logoImage=void 0;let n=500;await new Promise(r=>setTimeout(r,n)),i=await U(this.printEl.value,t)}finally{this.handleSetupImage(i)}}handleSetupImage(t){this.resetPrintContent(),t&&(this.dataUrl=t,this.setMapAreaOnClick(!1),this.showPreview(t),this.view?.container?.classList.remove("screenshot-cursor"),this.setMaskPosition(null))}handleLegendSetup(){if(this.showIncludeLegend&&this.view&&this.includeMap&&this.legendContainerEl.value){let t=this.legend&&this.legend.activeLayerInfos?.length>0;this.legendContainerEl.value.style.display=this.includeLegend&&t?"block":"none"}}handleWidgetCreation(){this.includeMap&&(this.handleLegendCreation(),this.handleCompassCreation(),this.updatePopupToPrint())}handleIncludePopup(){if(!this.handles||!this.reactiveUtils||!this.view||!this.showIncludePopup)return;let t="includePopup";this.handles.remove(t),this.reactiveUtils.whenOnce(()=>this.view?.ready).then(()=>{!this.reactiveUtils||!this.handles||this.handles.add(this.reactiveUtils.watch(()=>this.view?.popup?.visible===!0,i=>{this.settingMapArea||(this.includePopup=i)}),t)})}handleLegendCreation(){this.view&&this.showIncludeLegend&&this.legendContainerEl&&this.updateLegend()}updateLegend(){this.view?.when(async t=>{if(!this.legendContainerEl.value)return;this.legend?.destroy(),this.legend=null,this.legendContainerEl.value.innerHTML="";let i=document.createElement("div");this.legendContainerEl.value.append(i),this.legend=await K({container:i,view:t,respectLayerDefinitionExpression:!0,style:{type:"card",layout:"side-by-side"}})})}handleCompassCreation(){if(this.view&&this.compassContainerEl.value){let t=this.view.map,i=this.compass?.view?.map;t?.portalItem?.id===i?.portalItem?.id||this.updateCompass()}}updateCompass(){this.view?.when(async t=>{this.compass&&(this.compass.destroy(),this.compass=null);let i=document.createElement("div");this.compassContainerEl.value?.append(i),this.compass=await X({container:i,view:t})})}updateScaleBar(){if(this.scaleBarContainerEl.value&&this.view&&(this.scaleBarContainerEl.value.innerHTML="",this.showScaleBar)){let t=this.view?.ui?.getComponents()?.find(({container:i})=>i?.className?.includes("esri-scale-bar"));t?.container&&typeof t.container!="string"&&this.scaleBarContainerEl.value.append(t.container.cloneNode(!0))}}updateAttribution(){if(!this.attributionEl.value||!this.view)return;this.attributionEl.value.innerHTML="";let t=this.view.ui.find("attribution");if(!t?.attributionText)return;let i=t.viewModel.items.map(r=>this.getAttributionText(r)).filter((r,s,a)=>!!r&&a.indexOf(r)===s),n=" | ";this.attributionEl.value.innerHTML=i.join(n)}getAttributionText(t){if(!t.text)return"";let i=t.text,n=t.layerView.layer,r="copyright"in n&&n.copyright?n.copyright:"";if("portalItem"in n&&n.portalItem!=null){let s=n.portalItem;if(s.accessInformation&&i===s.accessInformation)return i.replace(s.accessInformation,r)}return i}async viewScreenshot(){if(this.view&&this.includeMap&&(this.screenshot||(this.scaleBarContainerEl.value?.classList.toggle("instant-apps-export-print__scale-bar-container--position",this.view.width>1e3),this.screenshot=await this.view.takeScreenshot({width:this.view.width*2,height:this.view.height*2})),this.handleScaleBarSize(),this.viewEl.value&&this.viewWrapperEl.value)){let{height:t,width:i}=this.screenshot.data;t>i?this.setMaxRowHeightOnViewContainer():this.setMaxWidthOnViewContainer(),this.viewEl.value.src=this.screenshot.dataUrl}}setMaxRowHeightOnViewContainer(){this.selectedFileType==="PDF"&&this.printEl.value&&(this.printEl.value.style.gridTemplateRows="minmax(auto, 70%)"),this.viewEl.value&&(this.viewEl.value.style.height="100%",this.viewEl.value.style.width=""),this.viewWrapperEl.value&&(this.viewWrapperEl.value.style.height="100%",this.viewWrapperEl.value.style.width="fit-content")}setMaxWidthOnViewContainer(){this.printEl.value&&(this.printEl.value.style.gridTemplateRows=""),this.viewEl.value&&(this.viewEl.value.style.width="100%",this.viewEl.value.style.height=""),this.viewWrapperEl.value&&(this.viewWrapperEl.value.style.height="fit-content",this.viewWrapperEl.value.style.width="100%")}checkPopupOpen(){if(this.view){let t=this.view?.popup?.container?.querySelector(".esri-popup .esri-feature__main-container");if(t&&this.popupContentEl.value){let i=t.querySelectorAll("canvas");this.popupContentEl.value.innerHTML="",this.popupContentEl.value.append(t.cloneNode(!0));let n=this.popupContentEl.value.querySelectorAll("canvas");i.forEach((r,s)=>{let a=r.toDataURL(),o=document.createElement("img");o.src=a;let p=r.getAttribute("style");p&&o.setAttribute("style",p);let f=n[s];f&&(f.replaceWith(o),L(this.el)==="dark"&&o.parentElement?.parentElement&&(o.parentElement.style.background="#242424",o.parentElement.parentElement.style.background="#242424"))})}}}createScreenshot(){if(this.view){this.screenshotPreview=document.createElement("div"),this.screenshotPreview.className="screenshot-preview hide",this.screenshotImgContainer=document.createElement("div"),this.screenshotImgContainer.className="screenshot-img-container",this.screenshotImg=document.createElement("img"),this.screenshotImg.alt=this.mapAltText||"";let t=document.createElement("div"),i=document.createElement("calcite-button"),n=document.createElement("calcite-button");i.innerHTML=this.selectedFileType==="PDF"?this._messages.export:this._messages.downloadImage,n.innerHTML=this._messages.returnToMap,n.appearance="outline-fill",i.onclick=this.exportPreviewOnClick.bind(this),n.onclick=this.screenshotReturn.bind(this),t.append(n,i),this.screenshotImgContainer.append(this.screenshotImg,t),this.screenshotPreview.append(this.screenshotImgContainer),this.view?.container?.append(this.screenshotPreview)}}createMaskDiv(){this.view&&(this.maskDivEl=document.createElement("div"),this.maskDivEl.id="screenshot-mask",this.maskDivEl.className="hide screenshot-cursor",this.maskDivEl.style.setProperty("--instant-apps-screenshot-mask-background",this.maskBackground),this.maskDivEl.style.setProperty("--instant-apps-screenshot-mask-border",this.maskBorder),this.screenshotStyle=document.createElement("style"),this.screenshotStyle.innerHTML=ne,this.view?.container?.append(this.screenshotStyle),this.view?.container?.append(this.maskDivEl))}screenshotReturn(){this.removeScreenshotElements(),this.exportIsLoading=!1,this.screenshot=null,this.resetPopupVisibility()}setMapAreaOnClick(t){if(this.view){if(this.settingMapArea=!0,t&&this.view?.popup?.visible){this.popupHiddenByMapArea=!0;let i=this.view?.popup?.container;i&&(i.style.display="none")}this.exportIsLoading=!0,this.createMaskDiv(),this.createScreenshot(),this.view?.container?.classList.add("screenshot-cursor","relative"),this.popoverEl.value&&(this.popoverEl.value.open=!1),this.view.addHandles(this.view.on("drag",i=>{this.view&&(i.stopPropagation(),i.action!=="end"?this.updateMaskSize(i):this.maskScreenshot())}),H)}}updateMaskSize(t){if(this.view){let i=this.clamp(Math.min(t.origin.x,t.x),0,this.view.width),n=this.clamp(Math.max(t.origin.x,t.x),0,this.view.width),r=this.clamp(Math.min(t.origin.y,t.y),0,this.view.height),s=this.clamp(Math.max(t.origin.y,t.y),0,this.view.height);this.area={x:i,y:r,width:n-i,height:s-r},this.setMaskPosition(this.area)}}maskScreenshot(){if(this.view&&this.area){this.view.removeHandles(H);let t=this.area.height,i=this.area.width;if(this.showScaleBar){let n=this.view.width>1e3&&this.view.width*.75<i;this.scaleBarContainerEl.value?.classList.toggle("instant-apps-export-print__scale-bar-container--position",n)}this.view.takeScreenshot({area:this.area,width:i*2,height:t*2,format:"jpg"}).then(n=>{this.screenshot=n,this.view?.container?.classList.remove("screenshot-cursor"),this.setMaskPosition(null),this.selectedFileType==="PDF"?(this.showPreview(n?.dataUrl),this.resetPopupVisibility()):(this.viewWrapperEl.value&&this.compassContainerEl.value&&!this.viewWrapperEl.value.contains(this.compassContainerEl.value)&&this.viewWrapperEl.value.append(this.compassContainerEl.value),this.handleViewExportOnClick())})}}setMaskPosition(t){this.maskDivEl&&(t?(this.maskDivEl.classList.remove("hide"),this.maskDivEl.style.left=`${t.x}px`,this.maskDivEl.style.top=`${t.y}px`,this.maskDivEl.style.width=`${t.width}px`,this.maskDivEl.style.height=`${t.height}px`):this.maskDivEl.remove())}clamp(t,i,n){return t<i?i:t>n?n:t}showPreview(t){t&&(this.screenshotPreview?.classList.remove("hide"),this.screenshotImg&&(this.screenshotImg.src=t))}handleScaleBarSize(){if(this.showScaleBar&&this.view?.type==="2d"&&this.scaleBarContainerEl.value){let t=this.scaleBarContainerEl.value.querySelector(".esri-scale-bar__line--top"),i=this.scaleBarContainerEl.value.querySelector(".esri-scale-bar__line--bottom");this.setScaleBarWidth(t,"top"),this.setScaleBarWidth(i,"bottom")}}setScaleBarWidth(t,i){if(t&&this.screenshot){let n=this.screenshot.data.width/2,r=Number(t.style.width.replace("px",""))/n*100;this.scaleBarContainerEl.value?.style.setProperty(`--instant-apps-scale-bar-${i}`,`${r}%`)}}removeScreenshotElements(){this.view?.removeHandles(H),this.screenshotPreview?.remove(),this.screenshotStyle?.remove()}resetPopupVisibility(){if(this.view&&this.settingMapArea&&this.popupHiddenByMapArea){let t=this.view?.popup?.container;t&&(t.style.display="")}this.settingMapArea=!1,this.popupHiddenByMapArea=!1}handleSelectFileType(t){let i=t.target;this.selectedFileType=i.value,this.selectedFileType==="PDF"?(this.includeMap=this.pdfIncludeMap,this.showExtraContentInImg||(this.includeExtraContent=this.pdfIncludeExtraContent)):(this.pdfIncludeMap=this.includeMap,this.includeMap=!0,this.showExtraContentInImg||(this.pdfIncludeExtraContent=this.includeExtraContent,this.includeMap=!0,this.includeExtraContent=!1))}render(){let t=this.mode==="popover"?this.renderPopover():this.renderPanel(),i=this.renderCompass();return c`<div class=${h(this.baseClass)} @mouseenter=${this.handleWidgetCreation} @focusin=${this.handleWidgetCreation}>${t}<div class=${h(l.hidden)}>${i}</div></div>`}renderPopover(){let t=this.renderPanel();return[c`<calcite-popover reference-element=export-popover-btn .label=${this._messages.exportPopover} .overlayPositioning=${this.popoverPositioning} .placement=${this.popoverPlacement} auto-close ${d(this.popoverEl)}>${t}</calcite-popover>`,c`<calcite-action id=export-popover-btn alignment=center .icon=${this.popoverIcon} .scale=${this.scale} title=${this._messages.exportBtn??I} .text=${this._messages.exportBtn}></calcite-action>`]}renderPanel(){let t=this.showHeaderTitle?this.renderTitle():null,i=this.extraContent?this.renderSwitch("includeExtraContent",this.extraContentLabel,this.selectedFileType!=="PDF"&&!this.showExtraContentInImg):null,n=this.showIncludeMap?this.renderSwitch("includeMap",void 0,this.selectedFileType!=="PDF"):null,r=this.includeMap?this.renderMapOptions():null,s=this.includeFileFormat?this.renderSelectFileType():null,a=this.selectedFileType==="PDF"?this.renderPrint():this.renderImg(),o=this.mode==="inline"?l.inlineContainer:l.popoverContainer;return c`<div class=${h(o)}>${t}${i}${n}${r}${s}${this.includeMap?c`<calcite-button class=${h(l.setMapArea)} appearance=transparent width=full @click=${this.setMapAreaOnClick.bind(this,!0)} .disabled=${this.exportIsLoading}>${this._messages.setMapArea}</calcite-button>`:null}<calcite-button width=full @click=${this.exportOnClick} .disabled=${this.exportIsLoading}>${this.selectedFileType==="PDF"?this._messages.export:this._messages.preview}</calcite-button>${a}</div>`}renderTitle(){return c`<calcite-label>${this._messages.title}<calcite-input .value=${this.headerTitle} @calciteInputInput=${this.updateHeaderTitle}></calcite-input></calcite-label>`}renderSwitch(t,i,n){let r=this[t],s=t,a=i||this._messages[s];return c`<calcite-label layout=inline-space-between>${a}<calcite-switch .checked=${r} .value=${t} @calciteSwitchChange=${this.optionOnChange} .disabled=${n}></calcite-switch></calcite-label>`}renderSelectFileType(){return c`<calcite-label>${this._messages.fileType}<calcite-select label @calciteSelectChange=${this.handleSelectFileType}>${this.allowedFileTypes.map(t=>c`<calcite-option .value=${t} .selected=${t===this.selectedFileType}>${t}</calcite-option>`)}</calcite-select></calcite-label>`}renderMapOptions(){let t=this.showIncludeLegend?this.renderSwitch("includeLegend"):null,i=this.showIncludePopup?this.renderSwitch("includePopup"):null;return c`<div>${t}${i}</div>`}renderPrint(){let t=this.includeMap?this.renderPrintMap():null,i=this.renderExtraContent(),n=this.includeMap&&this.showIncludeLegend?this.renderLegend():null,r=this.includeMap&&this.showIncludePopup?this.renderPopup():null;return c`<div ${d(this.printContainerEl)}><div class=${h(l.print.pdfBase)} ${d(this.printEl)}>${t}${n}<div class=${h(l.print.contentContainer)}>${r}${i}</div></div></div>`}renderPrintMap(){return c`<div class=${h(l.print.viewContainer)} ${d(this.viewContainerEl)}><div class=${h(l.print.viewWrapper)} ${d(this.viewWrapperEl)}>${this.headerTitle?c`<instant-apps-header .logoImage=${this.logoImage} .logoImageAltText=${this.logoAltText} logo-scale=s .titleText=${this.headerTitle} background-color=#fff text-color=#323232></instant-apps-header>`:null}<img class=${h(l.print.view)} alt=${this.mapAltText??I} ${d(this.viewEl)}><div class=${h(l.print.scaleBarContainer)} ${d(this.scaleBarContainerEl)}></div></div>${this.renderAttribution()}</div>`}renderAttribution(){return c`<div class=${h(l.print.attribution)} ${d(this.attributionEl)}></div>`}renderLegend(){return c`<div class=${h(l.print.legendContainer)} ${d(this.legendContainerEl)}></div>`}renderCompass(){return c`<div class=${h(l.print.compassContainer)} ${d(this.compassContainerEl)}></div>`}renderPopup(){return c`<div class=${h(l.print.popupContainer)} ${d(this.popupContainerEl)}><div class=${h(l.print.popupTitle)} ${d(this.popupTitleEl)}></div><div class=${h(l.print.popupContent)} ${d(this.popupContentEl)}></div></div>`}renderExtraContent(){return c`<div class=${h(l.print.extraContainer)} id=export-content ${d(this.extraContainerEl)}></div>`}renderImg(){let t=this.includeMap?this.renderPrintMap():null,i=this.includeMap&&this.showIncludeLegend?this.renderLegend():null,n;return this.includeMap&&this.showIncludePopup?n=this.renderPopup():this.showExtraContentInImg&&this.extraContent&&this.includeExtraContent&&(n=this.renderExtraContent()),c`<div ${d(this.printContainerEl)}><div class=${h(l.print.imgBase)} ${d(this.printEl)}>${t}${i}${n}</div></div>`}};j("instant-apps-export",W);export{W as InstantAppsExport};
|
|
387
|
+
}`,re=z`:host{display:block;--instant-apps-export-action-background: var(--calcite-color-foreground-1);--instant-apps-export-action-background-hover: var(--calcite-color-foreground-2);--instant-apps-export-action-background-press: var(--calcite-color-foreground-3);--instant-apps-export-action-height: 100%;--instant-apps-export-action-width: fit-content;--instant-apps-export-action-icon-color: var(--calcite-color-text-3);--instant-apps-export-action-icon-hover-color: var(--calcite-color-text-1);--instant-apps-export-background: var(--calcite-color-foreground-1);--instant-apps-export-text-color: var(--calcite-color-text-1);--instant-apps-export-popover-width: 250px;--instant-apps-export-button-text-dark-hover-color: #fff}.instant-apps-export{height:100%}.instant-apps-export *{box-sizing:border-box}.instant-apps-export__popover-container,.instant-apps-export__inline-container{padding:12px;background:var(--instant-apps-export-background);--calcite-color-text-1: var(--instant-apps-export-text-color)}.instant-apps-export__popover-container{width:var(--instant-apps-export-popover-width)}.instant-apps-export calcite-action{height:var(--instant-apps-export-action-height);width:var(--instant-apps-export-action-width);--calcite-color-foreground-1: var(--instant-apps-export-action-background);--calcite-color-foreground-2: var(--instant-apps-export-action-background-hover);--calcite-color-foreground-3: var(--instant-apps-export-action-background-press);--calcite-color-text-3: var(--instant-apps-export-action-icon-color);--calcite-color-text-1: var(--instant-apps-export-action-icon-hover-color)}.instant-apps-export .instant-apps-export-print{display:none}.instant-apps-export .instant-apps-export-print_img{display:flex;flex-flow:row wrap}.instant-apps-export__visually-hidden{position:absolute;top:0;z-index:-1;visibility:hidden}.instant-apps-export calcite-input{--calcite-color-foreground-1: var(--instant-apps-export-background);--calcite-color-text-1: var(--instant-apps-export-text-color)}.instant-apps-export calcite-popover{--calcite-color-foreground-1: var(--instant-apps-export-background)}.instant-apps-export calcite-switch{--calcite-color-foreground-1: #fff;--calcite-color-foreground-2: #f3f3f3}.instant-apps-export calcite-button:last-of-type{margin-top:.5rem}.calcite-mode-dark.instant-apps-export .instant-apps-export__set-map-area{--calcite-color-brand-hover: #fff}.calcite-mode-dark.instant-apps-export calcite-switch{--calcite-color-foreground-1: #2b2b2b;--calcite-color-foreground-2: #202020}.instant-apps-export__compass-container.esri-widget{background:#fff;box-shadow:0 1px 2px #0000004d}.instant-apps-export__compass-container.esri-widget .esri-compass__icon.esri-icon-compass{color:#6e6e6e}.hide{display:none}.screenshotCursor{cursor:crosshair}`,l={baseDark:"instant-apps-export calcite-mode-dark",baseLight:"instant-apps-export calcite-mode-light",inlineContainer:"instant-apps-export__inline-container",popoverContainer:"instant-apps-export__popover-container",hidden:"instant-apps-export__visually-hidden",setMapArea:"instant-apps-export__set-map-area",print:{pdfBase:"instant-apps-export-print instant-apps-export-print__pdf",imgBase:"instant-apps-export-print instant-apps-export-print__img",imgExtraContent:"instant-apps-export-print__img--extra-content",contentContainer:"instant-apps-export-print__content-container",extraContainer:"instant-apps-export-print__extra-container",legendContainer:"instant-apps-export-print__legend-container",compassContainer:"instant-apps-export-print__compass-container",scaleBarContainer:"instant-apps-export-print__scale-bar-container",popupContainer:"instant-apps-export-print__popup-container",popupContent:"instant-apps-export-print__popup-content",popupTitle:"instant-apps-export-print__popup-title",view:"instant-apps-export-print__view",viewContainer:"instant-apps-export-print__view-container",viewWrapper:"instant-apps-export-print__view-wrapper",attribution:"instant-apps-export-print__attribution"}},O="instant-app-export-drag",V=class extends q{constructor(){super(...arguments),this._messages=G({name:"instant-apps-export",blocking:!0}),this.compassContainerEl=m(),this.extraContainerEl=m(),this.legendContainerEl=m(),this.popoverEl=m(),this.popupContainerEl=m(),this.popupContentEl=m(),this.popupTitleEl=m(),this.printContainerEl=m(),this.printEl=m(),this.scaleBarContainerEl=m(),this.viewWrapperEl=m(),this.viewContainerEl=m(),this.viewEl=m(),this.attributionEl=m(),this.baseClass=l.baseLight,this.exportIsLoading=void 0,this.allowedFileTypes=["PDF","JPG","PNG"],this.beforeExport=async()=>await Promise.resolve(),this.popoverIcon="export",this.headerTitle="",this.logoImage="",this.mapAltText="",this.includeExtraContent=!0,this.showExtraContentInImg=!1,this.includeLegend=!0,this.includeMap=!0,this.includePopup=!1,this.includeFileFormat=!0,this.mode="popover",this.popoverPositioning="absolute",this.popoverPlacement="auto",this.scale="m",this.showHeaderTitle=!0,this.showIncludeLegend=!0,this.showIncludeMap=!1,this.showIncludePopup=!0,this.showScaleBar=!1,this.maskBackground="rgba(255, 51, 0, 0.1)",this.maskBorder="2px dashed rgb(255, 51, 0)",this.cloneExtraContent=!0,this.exportOutputUpdated=L(),this.afterExport=L()}static{this.properties={baseClass:16,exportIsLoading:16,selectedFileType:16,allowedFileTypes:0,output:0,beforeExport:0,popoverIcon:1,extraContent:0,extraContentLabel:1,headerTitle:1,logoImage:1,logoAltText:1,mapAltText:1,includeExtraContent:5,showExtraContentInImg:5,includeLegend:5,includeMap:5,includePopup:5,includeFileFormat:5,mode:3,popoverPositioning:1,popoverPlacement:1,scale:1,showHeaderTitle:5,showIncludeLegend:5,showIncludeMap:5,showIncludePopup:5,showScaleBar:5,view:0,maskBackground:1,maskBorder:1,defaultFileType:1,cloneExtraContent:5}}static{this.styles=re}async load(){this.selectedFileType=this.getDefaultFileType(),this.pdfIncludeMap=this.includeMap,this.baseClass=F(this.el)==="dark"?l.baseDark:l.baseLight,await this.initializeModules()}willUpdate(t){t.has("view")?this.handleIncludePopup():t.has("allowedFileTypes")&&(this.allowedFileTypes?.length||(this.allowedFileTypes=["PDF","JPG","PNG"]),this.selectedFileType=this.getDefaultFileType())}loaded(){this.printEl.value&&(this.printContainerEl.value?.prepend(this.printEl.value),this.handleIncludePopup())}getDefaultFileType(){return this.defaultFileType??this.allowedFileTypes?.[0]??"PDF"}async initializeModules(){let t=await Q();this.handles=await J(),this.reactiveUtils=t}optionOnChange(t){let i=t.target,n=i.value;this[n]=i.checked,this.updateExportOutput()}updateHeaderTitle(t){let i=t.target;this.headerTitle=i.value,this.updateExportOutput()}async exportOnClick(){this.removeScreenshotElements(),await this.beforeExport(),this.popoverEl.value&&(this.popoverEl.value.open=!1),this.viewWrapperEl.value&&this.compassContainerEl.value&&!this.viewWrapperEl.value.contains(this.compassContainerEl.value)&&this.viewWrapperEl.value.append(this.compassContainerEl.value),this.handleViewExportOnClick()}async exportPreviewOnClick(){this.selectedFileType==="PDF"?await this.exportPDF():this.exportImg()}async exportPDF(){this.removeScreenshotElements(),await this.beforeExport(),this.viewWrapperEl.value&&this.compassContainerEl.value&&!this.viewWrapperEl.value.contains(this.compassContainerEl.value)&&this.viewWrapperEl.value.append(this.compassContainerEl.value),this.handleViewExportOnClick()}exportImg(){if(this.resetPopupVisibility(),!this.dataUrl)return;let t=document.createElement("a");t.id="download-link",t.href=this.dataUrl;let i=this.headerTitle??document.title,n=this.selectedFileType?.toLowerCase()??"jpg";t.download=`${i}.${n}`,t.click(),this.dataUrl=null,this.exportIsLoading=!1,this.removeScreenshotElements(),this.resetPrintContent()}async handleViewExportOnClick(){this.updateExportOutput(),this.view?(this.addPrintStyling(),this.printEl.value&&document.body.prepend(this.printEl.value),this.handleExtraContent(),this.includeMap?(this.updateAttribution(),this.updateScaleBar(),this.viewScreenshot(),this.requestUpdate(),this.handleImgLoaded()):(this.requestUpdate(),this.handleImgLoaded())):this.popoverEl.value&&(this.popoverEl.value.open=!1)}addPrintStyling(){this.printStyleEl||(this.printStyleEl=document.createElement("style"),this.printStyleEl.innerHTML=ie,document.body.prepend(this.printStyleEl))}handleImgLoaded(){this.exportIsLoading=!0,setTimeout(()=>{this.selectedFileType==="PDF"&&(this.exportIsLoading=!1),this.setupViewPrintElements()},1500)}handleExtraContent(){if(!this.printEl.value)return;let t=this.printEl.value.querySelector("#export-content");if(t){t.innerHTML="";let i=this.extraContent&&this.includeExtraContent,n=this.selectedFileType!=="PDF"&&this.showExtraContentInImg&&i;this.printEl.value.classList.toggle(l.print.imgExtraContent,n),i?(t.style.display="block",this.cloneExtraContent?t.append(this.extraContent.cloneNode(!0)):t.append(this.extraContent)):t.style.display="none"}else this.showExtraContentInImg&&this.selectedFileType!=="PDF"&&!this.includeExtraContent&&this.printEl.value.classList.toggle(l.print.imgExtraContent,!1)}resetPrintContent(){if(!this.view||!this.printEl.value)return;this.screenshot=null,this.printContainerEl.value?.prepend(this.printEl.value),this.printStyleEl?.remove(),this.tmpPopupTitleEl?.remove(),this.printStyleEl=void 0;let t=this.printEl.value.querySelector("#export-content");t&&(t.innerHTML="")}async updatePopupToPrint(){if(!this.view||!this.popupContainerEl.value||!this.printEl.value)return;this.popupContainerEl.value.style.display=this.includePopup&&this.view?.popup?.visible?"block":"none",this.checkPopupOpen();let t=this.includePopup&&(this.view?.popup?.visible||this.popupHiddenByMapArea)&&this.view?.popup?.selectedFeature;if(this.printEl.value.classList.toggle(l.print.imgExtraContent,this.selectedFileType!=="PDF"&&!!t),t){let i=document.createElement(`h${this.view?.popup?.headingLevel??2}`);i.innerHTML=this.view?.popup?.title??"",i.className="esri-widget__heading esri-popup__header-title",this.popupTitleEl.value?(this.popupTitleEl.value.style.display=this.view?.popup?.title?"block":"none",this.popupTitleEl.value.innerHTML="",this.popupTitleEl.value.prepend(i)):(this.tmpPopupTitleEl=document.createElement("div"),this.tmpPopupTitleEl.prepend(i),this.tmpPopupTitleEl.style.display=this.view?.popup?.title?"block":"none",this.popupContainerEl.value.prepend(this.tmpPopupTitleEl))}}updateExportOutput(){this.output={},this.showHeaderTitle&&(this.output.headerTitle=this.headerTitle),this.showIncludeLegend&&(this.output.includeLegend=this.includeLegend),this.showIncludeMap&&(this.output.includeMap=this.includeMap),this.showIncludePopup&&(this.output.includePopup=this.includePopup),this.exportOutputUpdated.emit()}setupViewPrintElements(){if(this.view)if(this.handleLegendSetup(),this.selectedFileType==="PDF"){let t=document.title;this.showHeaderTitle&&this.headerTitle&&(document.title=this.headerTitle),window.print(),document.title=t,setTimeout(()=>{this.resetPrintContent(),this.afterExport.emit()},1e3)}else this.convertToImage()}async convertToImage(){/^((?!chrome|android).)*safari/iu.test(navigator?.userAgent)?await this.handleSafariToImage():await this.handleToImage()}async handleSafariToImage(){if(!this.printEl.value)return;let t={allowTaint:!0,logging:!1},i=this.selectedFileType==="PNG"?"image/png":"image/jpeg",n="";try{n=(await(0,W.default)(this.printEl.value,t)).toDataURL(i)}catch{this.logoImage=void 0;let r=500;await new Promise(s=>setTimeout(s,r)),n=(await(0,W.default)(this.printEl.value,t)).toDataURL(i)}finally{this.handleSetupImage(n)}}async handleToImage(){if(!this.printEl.value)return;let t={backgroundColor:"#FFF",skipFonts:!0},i="";try{this.selectedFileType==="JPG"?i=await H(this.printEl.value,t):i=await xt(this.printEl.value,t)}catch{this.logoImage=void 0;let n=500;await new Promise(r=>setTimeout(r,n)),i=await H(this.printEl.value,t)}finally{this.handleSetupImage(i)}}handleSetupImage(t){this.resetPrintContent(),t&&(this.dataUrl=t,this.setMapAreaOnClick(!1),this.showPreview(t),this.view?.container?.classList.remove("screenshot-cursor"),this.setMaskPosition(null),this.afterExport.emit())}handleLegendSetup(){if(this.showIncludeLegend&&this.view&&this.includeMap&&this.legendContainerEl.value){let t=this.legend&&this.legend.activeLayerInfos?.length>0;this.legendContainerEl.value.style.display=this.includeLegend&&t?"block":"none"}}handleWidgetCreation(){this.includeMap&&(this.handleLegendCreation(),this.handleCompassCreation(),this.updatePopupToPrint())}handleIncludePopup(){if(!this.handles||!this.reactiveUtils||!this.view||!this.showIncludePopup)return;let t="includePopup";this.handles.remove(t),this.reactiveUtils.whenOnce(()=>this.view?.ready).then(()=>{!this.reactiveUtils||!this.handles||this.handles.add(this.reactiveUtils.watch(()=>this.view?.popup?.visible===!0,i=>{this.settingMapArea||(this.includePopup=i)}),t)})}handleLegendCreation(){this.view&&this.showIncludeLegend&&this.legendContainerEl&&this.updateLegend()}updateLegend(){this.view?.when(async t=>{if(!this.legendContainerEl.value)return;this.legend?.destroy(),this.legend=null,this.legendContainerEl.value.innerHTML="";let i=document.createElement("div");this.legendContainerEl.value.append(i),this.legend=await K({container:i,view:t,respectLayerDefinitionExpression:!0,style:{type:"card",layout:"side-by-side"}})})}handleCompassCreation(){if(this.view&&this.compassContainerEl.value){let t=this.view.map,i=this.compass?.view?.map;t?.portalItem?.id===i?.portalItem?.id||this.updateCompass()}}updateCompass(){this.view?.when(async t=>{this.compass&&(this.compass.destroy(),this.compass=null);let i=document.createElement("div");this.compassContainerEl.value?.append(i),this.compass=await X({container:i,view:t})})}updateScaleBar(){if(this.scaleBarContainerEl.value&&this.view&&(this.scaleBarContainerEl.value.innerHTML="",this.showScaleBar)){let t=this.view?.ui?.getComponents()?.find(({container:i})=>i?.className?.includes("esri-scale-bar"));t?.container&&typeof t.container!="string"&&this.scaleBarContainerEl.value.append(t.container.cloneNode(!0))}}updateAttribution(){if(!this.attributionEl.value||!this.view)return;this.attributionEl.value.innerHTML="";let t=this.view.ui.find("attribution");if(!t?.attributionText)return;let i=t.viewModel.items.map(r=>this.getAttributionText(r)).filter((r,s,a)=>!!r&&a.indexOf(r)===s),n=" | ";this.attributionEl.value.innerHTML=i.join(n)}getAttributionText(t){if(!t.text)return"";let i=t.text,n=t.layerView.layer,r="copyright"in n&&n.copyright?n.copyright:"";if("portalItem"in n&&n.portalItem!=null){let s=n.portalItem;if(s.accessInformation&&i===s.accessInformation)return i.replace(s.accessInformation,r)}return i}async viewScreenshot(){if(this.view&&this.includeMap&&(this.screenshot||(this.scaleBarContainerEl.value?.classList.toggle("instant-apps-export-print__scale-bar-container--position",this.view.width>1e3),this.screenshot=await this.view.takeScreenshot({width:this.view.width*2,height:this.view.height*2})),this.handleScaleBarSize(),this.viewEl.value&&this.viewWrapperEl.value)){let{height:t,width:i}=this.screenshot.data;t>i?this.setMaxRowHeightOnViewContainer():this.setMaxWidthOnViewContainer(),this.viewEl.value.src=this.screenshot.dataUrl}}setMaxRowHeightOnViewContainer(){this.selectedFileType==="PDF"&&this.printEl.value&&(this.printEl.value.style.gridTemplateRows="minmax(auto, 70%)"),this.viewEl.value&&(this.viewEl.value.style.height="100%",this.viewEl.value.style.width=""),this.viewWrapperEl.value&&(this.viewWrapperEl.value.style.height="100%",this.viewWrapperEl.value.style.width="fit-content")}setMaxWidthOnViewContainer(){this.printEl.value&&(this.printEl.value.style.gridTemplateRows=""),this.viewEl.value&&(this.viewEl.value.style.width="100%",this.viewEl.value.style.height=""),this.viewWrapperEl.value&&(this.viewWrapperEl.value.style.height="fit-content",this.viewWrapperEl.value.style.width="100%")}checkPopupOpen(){if(this.view){let t=this.view?.popup?.container?.querySelector(".esri-popup .esri-feature__main-container");if(t&&this.popupContentEl.value){let i=t.querySelectorAll("canvas");this.popupContentEl.value.innerHTML="",this.popupContentEl.value.append(t.cloneNode(!0));let n=this.popupContentEl.value.querySelectorAll("canvas");i.forEach((r,s)=>{let a=r.toDataURL(),o=document.createElement("img");o.src=a;let p=r.getAttribute("style");p&&o.setAttribute("style",p);let f=n[s];f&&(f.replaceWith(o),F(this.el)==="dark"&&o.parentElement?.parentElement&&(o.parentElement.style.background="#242424",o.parentElement.parentElement.style.background="#242424"))})}}}createScreenshot(){if(this.view){this.screenshotPreview=document.createElement("div"),this.screenshotPreview.className="screenshot-preview hide",this.screenshotImgContainer=document.createElement("div"),this.screenshotImgContainer.className="screenshot-img-container",this.screenshotImg=document.createElement("img"),this.screenshotImg.alt=this.mapAltText||"";let t=document.createElement("div"),i=document.createElement("calcite-button"),n=document.createElement("calcite-button");i.innerHTML=this.selectedFileType==="PDF"?this._messages.export:this._messages.downloadImage,n.innerHTML=this._messages.returnToMap,n.appearance="outline-fill",i.onclick=this.exportPreviewOnClick.bind(this),n.onclick=this.screenshotReturn.bind(this),t.append(n,i),this.screenshotImgContainer.append(this.screenshotImg,t),this.screenshotPreview.append(this.screenshotImgContainer),this.view?.container?.append(this.screenshotPreview)}}createMaskDiv(){this.view&&(this.maskDivEl=document.createElement("div"),this.maskDivEl.id="screenshot-mask",this.maskDivEl.className="hide screenshot-cursor",this.maskDivEl.style.setProperty("--instant-apps-screenshot-mask-background",this.maskBackground),this.maskDivEl.style.setProperty("--instant-apps-screenshot-mask-border",this.maskBorder),this.screenshotStyle=document.createElement("style"),this.screenshotStyle.innerHTML=ne,this.view?.container?.append(this.screenshotStyle),this.view?.container?.append(this.maskDivEl))}screenshotReturn(){this.removeScreenshotElements(),this.exportIsLoading=!1,this.screenshot=null,this.resetPopupVisibility()}setMapAreaOnClick(t){if(this.view){if(this.settingMapArea=!0,t&&this.view?.popup?.visible){this.popupHiddenByMapArea=!0;let i=this.view?.popup?.container;i&&(i.style.display="none")}this.exportIsLoading=!0,this.createMaskDiv(),this.createScreenshot(),this.view?.container?.classList.add("screenshot-cursor","relative"),this.popoverEl.value&&(this.popoverEl.value.open=!1),this.view.addHandles(this.view.on("drag",i=>{this.view&&(i.stopPropagation(),i.action!=="end"?this.updateMaskSize(i):this.maskScreenshot())}),O)}}updateMaskSize(t){if(this.view){let i=this.clamp(Math.min(t.origin.x,t.x),0,this.view.width),n=this.clamp(Math.max(t.origin.x,t.x),0,this.view.width),r=this.clamp(Math.min(t.origin.y,t.y),0,this.view.height),s=this.clamp(Math.max(t.origin.y,t.y),0,this.view.height);this.area={x:i,y:r,width:n-i,height:s-r},this.setMaskPosition(this.area)}}maskScreenshot(){if(this.view&&this.area){this.view.removeHandles(O);let t=this.area.height,i=this.area.width;if(this.showScaleBar){let n=this.view.width>1e3&&this.view.width*.75<i;this.scaleBarContainerEl.value?.classList.toggle("instant-apps-export-print__scale-bar-container--position",n)}this.view.takeScreenshot({area:this.area,width:i*2,height:t*2,format:"jpg"}).then(n=>{this.screenshot=n,this.view?.container?.classList.remove("screenshot-cursor"),this.setMaskPosition(null),this.selectedFileType==="PDF"?(this.showPreview(n?.dataUrl),this.resetPopupVisibility()):(this.viewWrapperEl.value&&this.compassContainerEl.value&&!this.viewWrapperEl.value.contains(this.compassContainerEl.value)&&this.viewWrapperEl.value.append(this.compassContainerEl.value),this.handleViewExportOnClick())})}}setMaskPosition(t){this.maskDivEl&&(t?(this.maskDivEl.classList.remove("hide"),this.maskDivEl.style.left=`${t.x}px`,this.maskDivEl.style.top=`${t.y}px`,this.maskDivEl.style.width=`${t.width}px`,this.maskDivEl.style.height=`${t.height}px`):this.maskDivEl.remove())}clamp(t,i,n){return t<i?i:t>n?n:t}showPreview(t){t&&(this.screenshotPreview?.classList.remove("hide"),this.screenshotImg&&(this.screenshotImg.src=t))}handleScaleBarSize(){if(this.showScaleBar&&this.view?.type==="2d"&&this.scaleBarContainerEl.value){let t=this.scaleBarContainerEl.value.querySelector(".esri-scale-bar__line--top"),i=this.scaleBarContainerEl.value.querySelector(".esri-scale-bar__line--bottom");this.setScaleBarWidth(t,"top"),this.setScaleBarWidth(i,"bottom")}}setScaleBarWidth(t,i){if(t&&this.screenshot){let n=this.screenshot.data.width/2,r=Number(t.style.width.replace("px",""))/n*100;this.scaleBarContainerEl.value?.style.setProperty(`--instant-apps-scale-bar-${i}`,`${r}%`)}}removeScreenshotElements(){this.view?.removeHandles(O),this.screenshotPreview?.remove(),this.screenshotStyle?.remove()}resetPopupVisibility(){if(this.view&&this.settingMapArea&&this.popupHiddenByMapArea){let t=this.view?.popup?.container;t&&(t.style.display="")}this.settingMapArea=!1,this.popupHiddenByMapArea=!1}handleSelectFileType(t){let i=t.target;this.selectedFileType=i.value,this.selectedFileType==="PDF"?(this.includeMap=this.pdfIncludeMap,this.showExtraContentInImg||(this.includeExtraContent=this.pdfIncludeExtraContent)):(this.pdfIncludeMap=this.includeMap,this.includeMap=!0,this.showExtraContentInImg||(this.pdfIncludeExtraContent=this.includeExtraContent,this.includeMap=!0,this.includeExtraContent=!1))}render(){let t=this.mode==="popover"?this.renderPopover():this.renderPanel(),i=this.renderCompass();return c`<div class=${h(this.baseClass)} @mouseenter=${this.handleWidgetCreation} @focusin=${this.handleWidgetCreation}>${t}<div class=${h(l.hidden)}>${i}</div></div>`}renderPopover(){let t=this.renderPanel();return[c`<calcite-popover reference-element=export-popover-btn .label=${this._messages.exportPopover} .overlayPositioning=${this.popoverPositioning} .placement=${this.popoverPlacement} auto-close ${d(this.popoverEl)}>${t}</calcite-popover>`,c`<calcite-action id=export-popover-btn alignment=center .icon=${this.popoverIcon} .scale=${this.scale} title=${this._messages.exportBtn??I} .text=${this._messages.exportBtn}></calcite-action>`]}renderPanel(){let t=this.showHeaderTitle?this.renderTitle():null,i=this.extraContent?this.renderSwitch("includeExtraContent",this.extraContentLabel,this.selectedFileType!=="PDF"&&!this.showExtraContentInImg):null,n=this.showIncludeMap?this.renderSwitch("includeMap",void 0,this.selectedFileType!=="PDF"):null,r=this.includeMap?this.renderMapOptions():null,s=this.includeFileFormat?this.renderSelectFileType():null,a=this.selectedFileType==="PDF"?this.renderPrint():this.renderImg(),o=this.mode==="inline"?l.inlineContainer:l.popoverContainer;return c`<div class=${h(o)}>${t}${i}${n}${r}${s}${this.includeMap?c`<calcite-button class=${h(l.setMapArea)} appearance=transparent width=full @click=${this.setMapAreaOnClick.bind(this,!0)} .disabled=${this.exportIsLoading}>${this._messages.setMapArea}</calcite-button>`:null}<calcite-button width=full @click=${this.exportOnClick} .disabled=${this.exportIsLoading}>${this.selectedFileType==="PDF"?this._messages.export:this._messages.preview}</calcite-button>${a}</div>`}renderTitle(){return c`<calcite-label>${this._messages.title}<calcite-input .value=${this.headerTitle} @calciteInputInput=${this.updateHeaderTitle}></calcite-input></calcite-label>`}renderSwitch(t,i,n){let r=this[t],s=t,a=i||this._messages[s];return c`<calcite-label layout=inline-space-between>${a}<calcite-switch .checked=${r} .value=${t} @calciteSwitchChange=${this.optionOnChange} .disabled=${n}></calcite-switch></calcite-label>`}renderSelectFileType(){return c`<calcite-label>${this._messages.fileType}<calcite-select label @calciteSelectChange=${this.handleSelectFileType}>${this.allowedFileTypes.map(t=>c`<calcite-option .value=${t} .selected=${t===this.selectedFileType}>${t}</calcite-option>`)}</calcite-select></calcite-label>`}renderMapOptions(){let t=this.showIncludeLegend?this.renderSwitch("includeLegend"):null,i=this.showIncludePopup?this.renderSwitch("includePopup"):null;return c`<div>${t}${i}</div>`}renderPrint(){let t=this.includeMap?this.renderPrintMap():null,i=this.renderExtraContent(),n=this.includeMap&&this.showIncludeLegend?this.renderLegend():null,r=this.includeMap&&this.showIncludePopup?this.renderPopup():null;return c`<div ${d(this.printContainerEl)}><div class=${h(l.print.pdfBase)} ${d(this.printEl)}>${t}${n}<div class=${h(l.print.contentContainer)}>${r}${i}</div></div></div>`}renderPrintMap(){return c`<div class=${h(l.print.viewContainer)} ${d(this.viewContainerEl)}><div class=${h(l.print.viewWrapper)} ${d(this.viewWrapperEl)}>${this.headerTitle?c`<instant-apps-header .logoImage=${this.logoImage} .logoImageAltText=${this.logoAltText} logo-scale=s .titleText=${this.headerTitle} background-color=#fff text-color=#323232></instant-apps-header>`:null}<img class=${h(l.print.view)} alt=${this.mapAltText??I} ${d(this.viewEl)}><div class=${h(l.print.scaleBarContainer)} ${d(this.scaleBarContainerEl)}></div></div>${this.renderAttribution()}</div>`}renderAttribution(){return c`<div class=${h(l.print.attribution)} ${d(this.attributionEl)}></div>`}renderLegend(){return c`<div class=${h(l.print.legendContainer)} ${d(this.legendContainerEl)}></div>`}renderCompass(){return c`<div class=${h(l.print.compassContainer)} ${d(this.compassContainerEl)}></div>`}renderPopup(){return c`<div class=${h(l.print.popupContainer)} ${d(this.popupContainerEl)}><div class=${h(l.print.popupTitle)} ${d(this.popupTitleEl)}></div><div class=${h(l.print.popupContent)} ${d(this.popupContentEl)}></div></div>`}renderExtraContent(){return c`<div class=${h(l.print.extraContainer)} id=export-content ${d(this.extraContainerEl)}></div>`}renderImg(){let t=this.includeMap?this.renderPrintMap():null,i=this.includeMap&&this.showIncludeLegend?this.renderLegend():null,n;return this.includeMap&&this.showIncludePopup?n=this.renderPopup():this.showExtraContentInImg&&this.extraContent&&this.includeExtraContent&&(n=this.renderExtraContent()),c`<div ${d(this.printContainerEl)}><div class=${h(l.print.imgBase)} ${d(this.printEl)}>${t}${i}${n}</div></div>`}};j("instant-apps-export",V);export{V as InstantAppsExport};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import{b as o}from"./
|
|
3
|
+
v1.2.0-next.15 */
|
|
4
|
+
import{b as o}from"./K7LR3C67.js";import{b as d}from"./KJC4PHVN.js";import{C as n,D as a,E as r,h as t,i as s}from"./OPK4XF2Q.js";import"./YHY4R3U6.js";var h=t`/**
|
|
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.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import"./
|
|
3
|
+
v1.2.0-next.15 */
|
|
4
|
+
import"./YHY4R3U6.js";var e="Vous ne disposez pas de suffisamment de cr\xE9dits pour effectuer cette op\xE9ration. Contactez votre administrateur syst\xE8me ArcGIS pour obtenir de l\u2019aide.",r="Cet outil a \xE9t\xE9 publi\xE9 \xE0 partir d\u2019un notebook. L\u2019acc\xE8s \xE0 ArcGIS Notebooks est bloqu\xE9 pour votre organisation. Contactez votre administrateur pour lui demander de modifier ce param\xE8tre.",a="${ dataPath } ne doit pas comporter la propri\xE9t\xE9 suivante\xA0: ${ additionalProperty }.",t="${ dataPath } doit correspondre \xE0 l\u2019une des structures suivantes\xA0: ${ schemaOptions }.",s="R\xE9essayez d\u2019enregistrer la carte.",o="\xC9chec de l\u2019estimation des cr\xE9dits. Faites d\xE9filer vers le bas, corrigez les erreurs et relancez l\u2019estimation des cr\xE9dits.",i="Une erreur s\u2019est produite lors de l\u2019ex\xE9cution de l\u2019analyse.",n="${ dataPath } doit correspondre \xE0 l\u2019une des valeurs autoris\xE9es suivantes\xA0: ${ allowedValues }.",c="\xC9chec de l\u2019enregistrement de l\u2019historique d\u2019analyse",l="L\u2019espace de stockage de l\u2019historique est satur\xE9. Supprimez certains \xE9l\xE9ments de l\u2019historique d\u2019analyse et r\xE9essayez d\u2019enregistrer.",d="Le nom du service contient un ou plusieurs caract\xE8res non valides.",u="L\u2019enregistrement de la couche temporaire en tant que couche d\u2019entit\xE9s h\xE9berg\xE9e a \xE9chou\xE9.",m="\xC9chec de l\u2019obtention des propri\xE9t\xE9s cl\xE9s.",p="\xC9chec du chargement de la couche.",h="La couche n\u2019est pas disponible.",v="${ dataPath } ne doit pas comporter plus de ${ limit }\xA0\xE9l\xE9ments.",y="Une erreur est survenue lors de l\u2019enregistrement du mod\xE8le. R\xE9essayez d\u2019enregistrer.",E="${ dataPath } ne doit pas comporter moins de ${ limit }\xA0\xE9l\xE9ments.",f="${ dataPath } ne doit pas comporter moins de ${ limit }\xA0caract\xE8res.",g="\xC9chec du chargement de l\u2019\xE9l\xE9ment de mod\xE8le. Assurez-vous que le mod\xE8le existe et que l\u2019autorisation d\u2019acc\xE8s a \xE9t\xE9 accord\xE9e.",P="\xC9chec du traitement de la requ\xEAte.",b="Vous n\u2019\xEAtes pas autoris\xE9 \xE0 ex\xE9cuter cet outil. <calcite-link target='_blank' href='${ docLink }'>En savoir plus</calcite-link>",S="\xC9chec de la connexion au portail.",L="\xC9chec de la lecture des donn\xE9es en entr\xE9e.",$="${ dataPath } ne comporte pas la propri\xE9t\xE9 suivante\xA0: ${ missingProperty }.",F="Une couche de r\xE9sultat portant ce nom existe d\xE9j\xE0. Les couches de r\xE9sultat doivent porter des noms uniques au sein de l\u2019organisation. Utilisez un autre nom.",k="Le nom en sortie contient un ou plusieurs caract\xE8res non valides. <a href='${docLink}' target='_blank'>En savoir plus.</a>",q="La publication de la couche temporaire en tant que couche h\xE9berg\xE9e a \xE9chou\xE9 car un ou plusieurs champs ne sont pas valides. Relancez l\u2019outil pour cr\xE9er une couche avec des champs valides.",z="\xC9chec de l\u2019envoi de la t\xE2che. Faites d\xE9filer vers le bas, corrigez les erreurs et r\xE9ex\xE9cutez l\u2019analyse.",I="${ dataPath } doit comporter au moins un caract\xE8re autre qu\u2019un espace.",x={InsufficientCreditsError:e,accessBlocked:r,additionalProperty:a,anyOfValues:t,cannotWriteToItemResource:s,creditEstimationError:o,defaultError:i,enumValues:n,failedToSaveHistory:c,fullSessionStorage:l,hostedFeatureServiceInvalidTitle:d,hostedFeatureServicePublishDidNotComplete:u,keyPropertiesError:m,layerLoadFailure:p,layerUnavailable:h,maxItems:v,mbFailedToSave:y,minItems:E,minLength:f,modelNotFound:g,networkError:P,noPermissionToAccessTool:b,portalLoadError:S,queryFeaturesError:L,requiredProperty:$,serviceNameExistsError:F,specialCharactersInServiceNameError:k,temporaryLayerFieldsError:q,toolValidationError:z,whiteSpacePattern:I};export{e as InsufficientCreditsError,r as accessBlocked,a as additionalProperty,t as anyOfValues,s as cannotWriteToItemResource,o as creditEstimationError,x as default,i as defaultError,n as enumValues,c as failedToSaveHistory,l as fullSessionStorage,d as hostedFeatureServiceInvalidTitle,u as hostedFeatureServicePublishDidNotComplete,m as keyPropertiesError,p as layerLoadFailure,h as layerUnavailable,v as maxItems,y as mbFailedToSave,E as minItems,f as minLength,g as modelNotFound,P as networkError,b as noPermissionToAccessTool,S as portalLoadError,L as queryFeaturesError,$ as requiredProperty,F as serviceNameExistsError,k as specialCharactersInServiceNameError,q as temporaryLayerFieldsError,z as toolValidationError,I as whiteSpacePattern};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
3
|
+
v1.2.0-next.15 */
|
|
4
4
|
var i=(e,t="v")=>{if(!e)return e;let n=e.indexOf("?")>-1?"&":"?";return e+=`${n}${t}=${new Date().getTime()}`,e};export{i as a};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
|
+
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
+
v1.2.0-next.15 */
|
|
4
|
+
import{a,b}from"./DAFCUVTS.js";import"./VR5TPQG5.js";import"./YHY4R3U6.js";export{a as GroupEditorTypes,b as GroupSchema};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import{a as t}from"./
|
|
3
|
+
v1.2.0-next.15 */
|
|
4
|
+
import{a as t}from"./HECNXLJ5.js";import"./WR5CZS6Z.js";import"./URVMNZHN.js";import{a as r}from"./W2UXZ3VQ.js";import"./2Z3T6T5H.js";import"./AVWH7V2G.js";import"./KQRHQKTT.js";import"./VPI6KWYG.js";import"./NWZXSIOF.js";import"./YLSH4YUB.js";import"./F2TCHWET.js";import"./U2IDJDV3.js";import"./LAGBD4ZG.js";import"./TBOJZDNR.js";import"./TK65KBA3.js";import"./DAFCUVTS.js";import"./GIZDZBX3.js";import"./4GRPOGJP.js";import"./J32P3IUF.js";import"./3Z34HOVN.js";import"./AXRO5Y2Q.js";import"./VR5TPQG5.js";import"./XL3MO46G.js";import"./YHY4R3U6.js";var n=async(e,l,o)=>{let i=r(new Date,l.timeZone);return{type:"Layout",elements:[{labelKey:`${e}.fields.name.label`,scope:"/properties/name",type:"Control",options:{messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.name.requiredError`},{type:"ERROR",keyword:"maxLength",icon:!0,labelKey:"shared.fields.title.maxLengthError"}]}},{labelKey:`${e}.fields.date.label`,scope:"/properties/startDate",type:"Control",options:{control:"hub-field-input-date",min:i,messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.date.requiredError`},{type:"ERROR",keyword:"formatMinimum",icon:!0,labelKey:`${e}.fields.date.minDateError`}]}},{labelKey:`${e}.fields.allDay.label`,type:"Control",scope:"/properties/isAllDay",options:{control:"hub-field-input-switch"}},{labelKey:`${e}.fields.startTime.label`,scope:"/properties/startTime",type:"Control",rule:{condition:{scope:"/properties/isAllDay",schema:{const:!1}},effect:t.SHOW},options:{control:"hub-field-input-time",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.startTime.requiredError`}]}},{labelKey:`${e}.fields.endTime.label`,scope:"/properties/endTime",type:"Control",rule:{condition:{scope:"/properties/isAllDay",schema:{const:!1}},effect:t.SHOW},options:{control:"hub-field-input-time",messages:[{type:"ERROR",keyword:"required",icon:!0,labelKey:`${e}.fields.endTime.requiredError`},{type:"ERROR",keyword:"formatExclusiveMinimum",icon:!0,labelKey:`${e}.fields.endTime.minTimeError`}]}}]}};export{n 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.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import{b as e}from"./
|
|
3
|
+
v1.2.0-next.15 */
|
|
4
|
+
import{b as e}from"./W2UXZ3VQ.js";import{a as r}from"./2Z3T6T5H.js";import{a as t}from"./VR5TPQG5.js";var o=["hub:event:create","hub:event:edit","hub:event:registrants"],m=()=>{let{startDate:a}=e();return{$async:!0,required:["name","startDate","endDate"],properties:{name:t,startDate:{type:"string",format:"date",formatMinimum:a},startTime:{type:"string"},endTime:{type:"string"},isAllDay:{type:"boolean",default:!1}},allOf:[r]}};export{o as a,m as b};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
|
|
2
2
|
See https://js.arcgis.com/1.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import{b as I,c as b,d as v}from"./
|
|
3
|
+
v1.2.0-next.15 */
|
|
4
|
+
import{b as I,c as b,d as v}from"./UXSWM34Y.js";import{a as i}from"./RL2Q4UFY.js";import"./HLVEN4KS.js";import"./UWKPNCNO.js";import"./TVEY6INM.js";import"./6TPJXOGA.js";import"./N45LPVOM.js";import"./TFNUF2ZS.js";import"./EVPTRQ6A.js";import"./YKJ6JXET.js";import"./5JODT3O3.js";import"./WVPA4RIC.js";import"./SSCSISSJ.js";import"./UK3DTFAX.js";import"./7WA3VJRZ.js";import"./QVPAC4JU.js";import"./HD274UTP.js";import{g as a}from"./XQJCGYXO.js";import"./XIU6KDAI.js";import"./G6VABLAG.js";import"./32UM7SZK.js";import"./NWZXSIOF.js";import{a as n}from"./JMPK7FSJ.js";import"./HIEPRI6M.js";import{a as g}from"./MMLBUMFZ.js";import"./L733W7AD.js";import"./BE4OEXWO.js";import{b as _}from"./KJC4PHVN.js";import{C as d,D as p,E as f,G as m,h,i as o,l as c,r as u}from"./OPK4XF2Q.js";import"./YHY4R3U6.js";var y=h`@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.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import a from"./
|
|
3
|
+
v1.2.0-next.15 */
|
|
4
|
+
import a from"./HA6QXFEE.js";export default $arcgis.t(([{k:i}])=>{function h(e,t){let r=[];return e.forEach(n=>{t.has(n.id)&&r.push(n)}),r}function g(e,t,r){if(t<1||e.length<t)return{cards:[],paging:{start:t,num:0,nextStart:-1,total:e.length}};let n=Math.min(t+r,e.length+1),s=n<e.length?n:-1;return{cards:e.slice(t-1,n-1),paging:{start:t,num:n-t,nextStart:s,total:e.length}}}function w(e,t){let r=l(e);return u(r,t)}function u(e,t){let r=[];return t.forEach(n=>{let s=c(n);s&&e.indexOf(s)>=0&&n.relatedSolutions&&(r=r.concat(n.relatedSolutions))}),new Set(r)}function c(e){let t="solutionid-",r=e.typeKeywords.filter(s=>s.startsWith(t)),n=null;return Array.isArray(r)&&r.length>0&&(n=r[0].substring(t.length)),n}function l(e){let t=[];return e.forEach(r=>{let n=c(r);n&&t.push(n)}),t=Array.from(new Set(t)),t}function m(e,t,r){let n,s=r==="asc"?1:-1;switch(t){case"created":n=(a,o)=>s*(a.createdMs<o.createdMs?-1:a.createdMs>o.createdMs?1:0);break;case"numviews":n=(a,o)=>s*(a.numViews<o.numViews?-1:a.numViews>o.numViews?1:0);break;case"title":n=(a,o)=>s*(a.title.toLowerCase()<o.title.toLowerCase()?-1:a.title.toLowerCase()>o.title.toLowerCase()?1:0);break;default:n=()=>0;break}return e.sort(n),e}function f(e){return e.toLowerCase().replace(/\s+/g,"-")}function p(e,t){return e.find(r=>f(r.title)===t||t===r.id)}function y(e,t){let r="solutionid-";return e.find(n=>i(n.typeKeywords,r)===t)}return{a:h,b:g,c:w,d:m,e:f,f:p,g:y}},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.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import{a as p}from"./
|
|
3
|
+
v1.2.0-next.15 */
|
|
4
|
+
import{a as p}from"./SSCSISSJ.js";import{a as n}from"./32UM7SZK.js";var l=1,f=e=>[{orgid:[e]},{type:{not:["Code Attachment"]}}],u=e=>[{orgId:e}],O={item:f,event:u};function j(e){if(n(e,"schemaVersion")===l)return e;{let t=p(e);return t=d(t),t}}function d(e){if(n(e,"schemaVersion")>1)return e;{let t={schemaVersion:1,title:"Default Catalog",scopes:{item:{targetEntity:"item",filters:[]},event:{targetEntity:"event",filters:[]}},collections:[]},s=n(e,"groups")||[],c=[];Array.isArray(s)&&s.length?c=s:typeof s=="string"&&(c=[s]),c.length&&(t.scopes=Object.entries(t.scopes).reduce((o,r)=>Object.assign(Object.assign({},o),{[r[0]]:Object.assign(Object.assign({},r[1]),{filters:[{predicates:[{group:c}]}]})}),{}));let i=n(e,"orgId");return i&&(t.scopes=Object.entries(t.scopes).reduce((o,r)=>{let a=r[0],g=r[1];return Object.assign(Object.assign({},o),{[a]:Object.assign(Object.assign({},g),{filters:[...g.filters,{operation:"AND",predicates:O[a](i)}]})})},{})),t}}export{j 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.2/esri/copyright.txt for details.
|
|
3
|
-
v1.2.0-next.
|
|
4
|
-
import{J as l,L as I}from"./
|
|
3
|
+
v1.2.0-next.15 */
|
|
4
|
+
import{J as l,L as I}from"./HLVEN4KS.js";import{h}from"./HIEPRI6M.js";function w(i){return i.reduce((r,n)=>{let t=n.item.title||n.item.name;if(n.type==="Feature Service"&&(n.item.typeKeywords||[]).indexOf("View Service")<0&&r.indexOf(t)<0){let e=l(n,"properties.service.spatialReference.wkid");r.push({id:n.itemId,name:t,enabled:e.toString().startsWith(h),wkid:e})}return r},[])}function b(i){let r=x(i),n=r.reduce((t,e)=>(t.push(e.id),t),[]);return i.reduce((t,e)=>{if(n.indexOf(e.itemId)>-1){let d=r.filter(o=>o.id===e.itemId);t.push(y(e,i,d[0].dependencies))}return t},[])}function x(i){let r=[];function n(s,c){let u=s.findIndex(a=>c===a.itemId);return u>=0?s[u]:null}function t(s,c,u=[]){let a=n(i,s);if(a){let p={id:s,dependencies:[]};u.indexOf(s)<0&&(u.push(s),a.dependencies.forEach(m=>{let f=e.indexOf(m);f>=0&&e.splice(f,1),t(m,p.dependencies,u)})),c.push(p)}}let e=$(i),d=i.filter(s=>e.indexOf(s.itemId)<0).sort((s,c)=>c.dependencies.length-s.dependencies.length);e=e.concat(d.map(s=>s.itemId));let o=e.shift();for(;typeof o<"u";)t(o,r),o=e.shift();return r}function S(i){return[{id:"",title:i.geocodeUrl,value:"{{organization.helperServices.geocode:getDefaultLocatorURL}}"},{id:"",title:i.geometryUrl,value:"{{organization.helperServices.geometry.url}}"},{id:"",title:i.portalBaseUrl,value:"{{portalBaseUrl}}"},{id:"",title:i.routeUrl,value:"{{organization.helperServices.route.url}}"},{id:"",title:i.solutionItemExtent,value:"{{solutionItemExtent}}"}]}function U(i,r){let n=[];return i.forEach(t=>{let e={id:t.itemId,title:t.item.title||t.item.name,type:t.type,value:void 0,dependencies:[{id:t.itemId,title:r.itemId,value:`{{${t.itemId}.itemId}}`}]};t.item.url&&e.dependencies.push({id:t.itemId,title:r.url,value:`{{${t.itemId}.url}}`}),t.type==="Feature Service"&&(e.dependencies.push({id:t.itemId,title:r.solutionExtent,value:`{{${t.itemId}.solutionExtent}}`}),v(t.properties.layers||[],e,t,r),v(t.properties.tables||[],e,t,r)),n.push(e)}),n}function k(i,r){let n={};i.forEach(d=>{n[d.id]=d.enabled});let t=l(r,"params.wkid.default"),e=I(r,"params.wkid.attributes.required",!1);return t?{enabled:e,default:t,services:n}:{enabled:e,services:n}}function v(i,r,n,t){i.forEach(e=>{let d=e.name&&e.name.indexOf("||")>-1?e.name.split("||")[1].replace("}}","").trim():e.name;r.dependencies.push({id:n.itemId,title:`${d} (${t.id})`,value:`{{${n.itemId}.layer${e.id}.id}}`}),r.dependencies.push({id:n.itemId,title:`${d} (${t.name})`,value:`{{${n.itemId}.layer${e.id}.name||${d}}}`})})}function y(i,r,n){return{id:i.itemId||"",title:i.item.title||"",dependencies:g(n,r),type:i.item.type||"",typeKeywords:i.item.typeKeywords||[]}}function g(i,r){let n=[],t=i.reduce((e,d)=>(e.push(d.id),n.push(d),e),[]);return r.reduce((e,d)=>{let o=t.indexOf(d.itemId);return o>-1&&e.push(y(d,r,n[o].dependencies)),e},[])}function $(i){let r=i.map(n=>n.itemId);return i.forEach(n=>{(n.dependencies||[]).forEach(t=>{let e=r.indexOf(t);e>=0&&r.splice(e,1)})}),r}export{w as a,b,S as c,U as d,k as e};
|